/third_party/ltp/testcases/kernel/syscalls/pipe/ |
H A D | pipe06.c | 24 int max_fds; in setup() local 26 max_fds = getdtablesize(); in setup() 27 tst_res(TINFO, "getdtablesize() = %d", max_fds); in setup() 28 opened_fds = SAFE_MALLOC(max_fds * sizeof(int)); in setup() 34 } while (fds[1] < max_fds - 2); in setup()
|
H A D | pipe07.c | 53 int max_fds; in setup() local 55 max_fds = getdtablesize(); in setup() 56 tst_res(TINFO, "getdtablesize() = %d", max_fds); in setup() 57 pipe_fds = SAFE_MALLOC(max_fds * sizeof(int)); in setup() 59 exp_num_pipes = (max_fds - record_open_fds()) / 2; in setup()
|
/third_party/libwebsockets/lib/plat/unix/ |
H A D | unix-fds.c | 41 done = &p[context->max_fds]; in wsi_from_fd() 65 done = &p[context->max_fds]; in sanity_assert_no_wsi_traces() 105 done = &p[context->max_fds]; in sanity_assert_no_sockfd_traces() 144 done = &p[context->max_fds]; in insert_wsi() 188 done = &p[context->max_fds]; in delete_from_fd() 224 done = &p[context->max_fds]; in delete_from_fdwsi()
|
H A D | unix-init.c | 116 * - slow: allocate context->max_fds entries only (which can be in lws_plat_init() 131 context->max_fds, "lws_lookup"); in lws_plat_init() 135 context->max_fds); in lws_plat_init() 167 (unsigned long)(sizeof(struct lws *) * context->max_fds)); in lws_plat_init()
|
/third_party/node/deps/uvwasi/src/ |
H A D | poll_oneoff.c | 37 uvwasi_size_t max_fds in uvwasi__poll_oneoff_state_init() 50 state->max_fds = 0; in uvwasi__poll_oneoff_state_init() 59 if (max_fds > 0) { in uvwasi__poll_oneoff_state_init() 61 max_fds, in uvwasi__poll_oneoff_state_init() 69 max_fds, in uvwasi__poll_oneoff_state_init() 79 state->max_fds = max_fds; in uvwasi__poll_oneoff_state_init() 119 state->max_fds = 0; in uvwasi__poll_oneoff_state_cleanup()
|
H A D | poll_oneoff.h | 27 uvwasi_size_t max_fds; member 38 uvwasi_size_t max_fds
|
/third_party/libwebsockets/lib/plat/freertos/ |
H A D | freertos-init.c | 95 context->max_fds, "esp32 lws_lookup"); in lws_plat_init() 98 context->max_fds); in lws_plat_init() 103 (unsigned long)(sizeof(struct lws *) * context->max_fds)); in lws_plat_init()
|
/third_party/python/Lib/test/libregrtest/ |
H A D | setup.py | 147 fd_limit, max_fds = resource.getrlimit(RLIMIT_NOFILE) 152 if fd_limit < desired_fds and fd_limit < max_fds: 153 new_fd_limit = min(desired_fds, max_fds) 155 resource.setrlimit(RLIMIT_NOFILE, (new_fd_limit, max_fds))
|
/third_party/libwebsockets/lib/plat/optee/ |
H A D | lws-plat-optee.c | 203 context->max_fds, "lws_lookup"); in lws_plat_init() 206 context->max_fds); in lws_plat_init() 211 (long)sizeof(struct lws *) * context->max_fds); in lws_plat_init()
|
/third_party/NuttX/fs/inode/ |
H A D | fs_files.c | 679 sz = new_fdt->max_fds * sizeof(struct file_table_s); in copy_fds() 691 for (int i = 0; i < new_fdt->max_fds; i++) in copy_fd_table() 735 fdt->max_fds = numbers; in alloc_fd_table() 817 if((old_files == NULL) || (old_files->fdt == NULL) || (old_files->fdt->max_fds == 0)) in dup_fd() 836 new_fdt = alloc_fd_table(old_fdt->max_fds); in dup_fd() 883 for (int i = 0; i < files->fdt->max_fds; i++) in delete_files() 907 if ((old_files == NULL) || (old_files->fdt == NULL) || (old_files->fdt->max_fds == 0)) in create_files_snapshot() 926 new_fdt = alloc_fd_table(old_fdt->max_fds); in create_files_snapshot()
|
/third_party/libwebsockets/lib/core-net/ |
H A D | pollfd.c | 284 lwsl_cx_err(context, "Too many fds (%d vs %d)", context->max_fds, in __insert_wsi_socket_into_fds() 291 wsi->desc.sockfd - lws_plat_socket_offset() >= (int)context->max_fds) { in __insert_wsi_socket_into_fds() 293 wsi->desc.sockfd, context->max_fds, in __insert_wsi_socket_into_fds() 374 wsi->desc.sockfd - lws_plat_socket_offset() > (int)context->max_fds) { in __remove_wsi_socket_from_fds() 377 context->max_fds); in __remove_wsi_socket_from_fds()
|
/third_party/libwebsockets/lib/core/ |
H A D | context.c | 967 context->max_fds = (unsigned int)rt.rlim_cur; in lws_create_context() 970 context->max_fds = getdtablesize(); in lws_create_context() 975 context->max_fds = 2560; in lws_create_context() 981 context->max_fds = (unsigned int)l; in lws_create_context() 984 if ((int)context->max_fds < 0 || in lws_create_context() 993 * deal with any max_fds override, if it's reducing (setting it to in lws_create_context() 1000 if (mf < context->max_fds) { in lws_create_context() 1002 context->max_fds = mf; in lws_create_context() 1058 context->max_http_header_pool = context->max_fds; in lws_create_context() 1065 context->fd_limit_per_thread = context->max_fds / in lws_create_context() [all...] |
H A D | private-lib-core.h | 692 unsigned int max_fds; member
|
/third_party/libwebsockets/lib/plat/windows/ |
H A D | windows-init.c | 109 lws_zalloc(sizeof(struct lws*) * context->max_fds, in lws_plat_init()
|
/third_party/elfutils/debuginfod/ |
H A D | debuginfod.cxx | 1287 long max_fds; member in libarchive_fdcache 1361 this->limit(max_fds, max_mbs, max_prefetch_fds, max_prefetch_mbs); // age cache if required in intern() 1404 this->limit(max_fds, max_mbs, max_prefetch_fds, max_prefetch_mbs); // age cache if required in lookup() 1463 if (verbose > 3 && (this->max_fds != maxfds || this->max_mbs != maxmbs)) in limit() 1467 this->max_fds = maxfds; in limit() 1478 if (total_fd > this->max_fds || total_mb > this->max_mbs) in limit()
|