Home
last modified time | relevance | path

Searched refs:max_fds (Results 1 – 25 of 259) sorted by relevance

1234567891011

/dports/security/stunnel/stunnel-5.60/src/
H A Dfd.c58 static SOCKET max_fds; variable
67 if(max_fds<0) in get_limits()
68 max_fds=0; /* unlimited */ in get_limits()
74 max_fds=0; /* unlimited */ in get_limits()
78 max_fds=0; /* unlimited */ in get_limits()
83 if(!max_fds || max_fds>FD_SETSIZE) in get_limits()
88 if(max_fds && max_fds<16) in get_limits()
89 max_fds=16; in get_limits()
91 if(max_fds) { in get_limits()
92 max_clients=(int)(max_fds>=256 ? max_fds*125/256 : (max_fds-6)/2); in get_limits()
[all …]
/dports/benchmarks/stress-ng/stress-ng-0.13.09/
H A Dstress-poll.c36 size_t max_fds; in stress_set_poll_fds() local
103 size_t i, max_fds = MAX_PIPES; in stress_poll() local
112 args->name, max_fds); in stress_poll()
118 args->name, max_fds); in stress_poll()
123 for (i = 0; i < max_fds; i++) { in stress_poll()
159 for (i = 0; i < max_fds; i++) in stress_poll()
179 for (i = 0; i < max_fds; i++) in stress_poll()
195 for (i = 0; i < max_fds; i++) { in stress_poll()
292 for (i = 0; i < max_fds; i++) { in stress_poll()
328 for (i = 0; i < max_fds; i++) { in stress_poll()
[all …]
/dports/security/libassuan/libassuan-2.5.5/src/
H A Dsystem-posix.c181 int max_fds = -1; in get_max_fds() local
218 if (max_fds != -1) in get_max_fds()
219 return max_fds + 1; in get_max_fds()
236 if (max_fds == -1) in get_max_fds()
240 max_fds = scres; in get_max_fds()
245 if (max_fds == -1) in get_max_fds()
250 if (max_fds == -1) in get_max_fds()
251 max_fds = OPEN_MAX; in get_max_fds()
254 if (max_fds == -1) in get_max_fds()
261 max_fds = 256; in get_max_fds()
[all …]
/dports/www/grafana8/grafana-8.3.6/vendor/github.com/apache/thrift/lib/cpp/src/thrift/server/
H A DTServer.cpp38 int increase_max_fds(int max_fds = (1 << 24)) { in increase_max_fds() argument
41 for (fdmaxrl.rlim_cur = max_fds, fdmaxrl.rlim_max = max_fds; in increase_max_fds()
42 max_fds && (setrlimit(RLIMIT_NOFILE, &fdmaxrl) < 0); in increase_max_fds()
43 fdmaxrl.rlim_cur = max_fds, fdmaxrl.rlim_max = max_fds) { in increase_max_fds()
44 max_fds /= 2; in increase_max_fds()
/dports/net/storj/storj-1.45.3/vendor/github.com/apache/thrift/lib/cpp/src/thrift/server/
H A DTServer.cpp38 int increase_max_fds(int max_fds = (1 << 24)) { in increase_max_fds() argument
41 for (fdmaxrl.rlim_cur = max_fds, fdmaxrl.rlim_max = max_fds; in increase_max_fds()
42 max_fds && (setrlimit(RLIMIT_NOFILE, &fdmaxrl) < 0); in increase_max_fds()
43 fdmaxrl.rlim_cur = max_fds, fdmaxrl.rlim_max = max_fds) { in increase_max_fds()
44 max_fds /= 2; in increase_max_fds()
/dports/www/fabio/fabio-1.5.14/vendor/github.com/apache/thrift/thrift-da1169d75b15/lib/cpp/src/thrift/server/
H A DTServer.cpp38 int increase_max_fds(int max_fds = (1 << 24)) { in increase_max_fds() argument
41 for (fdmaxrl.rlim_cur = max_fds, fdmaxrl.rlim_max = max_fds; in increase_max_fds()
42 max_fds && (setrlimit(RLIMIT_NOFILE, &fdmaxrl) < 0); in increase_max_fds()
43 fdmaxrl.rlim_cur = max_fds, fdmaxrl.rlim_max = max_fds) { in increase_max_fds()
44 max_fds /= 2; in increase_max_fds()
/dports/devel/thrift-cpp/thrift-0.14.0/lib/cpp/src/thrift/server/
H A DTServer.cpp38 int increase_max_fds(int max_fds = (1 << 24)) { in increase_max_fds() argument
41 for (fdmaxrl.rlim_cur = max_fds, fdmaxrl.rlim_max = max_fds; in increase_max_fds()
42 max_fds && (setrlimit(RLIMIT_NOFILE, &fdmaxrl) < 0); in increase_max_fds()
43 fdmaxrl.rlim_cur = max_fds, fdmaxrl.rlim_max = max_fds) { in increase_max_fds()
44 max_fds /= 2; in increase_max_fds()
/dports/devel/thrift-c_glib/thrift-0.14.0/lib/cpp/src/thrift/server/
H A DTServer.cpp38 int increase_max_fds(int max_fds = (1 << 24)) { in increase_max_fds() argument
41 for (fdmaxrl.rlim_cur = max_fds, fdmaxrl.rlim_max = max_fds; in increase_max_fds()
42 max_fds && (setrlimit(RLIMIT_NOFILE, &fdmaxrl) < 0); in increase_max_fds()
43 fdmaxrl.rlim_cur = max_fds, fdmaxrl.rlim_max = max_fds) { in increase_max_fds()
44 max_fds /= 2; in increase_max_fds()
/dports/devel/thrift/thrift-0.14.0/lib/cpp/src/thrift/server/
H A DTServer.cpp38 int increase_max_fds(int max_fds = (1 << 24)) { in increase_max_fds() argument
41 for (fdmaxrl.rlim_cur = max_fds, fdmaxrl.rlim_max = max_fds; in increase_max_fds()
42 max_fds && (setrlimit(RLIMIT_NOFILE, &fdmaxrl) < 0); in increase_max_fds()
43 fdmaxrl.rlim_cur = max_fds, fdmaxrl.rlim_max = max_fds) { in increase_max_fds()
44 max_fds /= 2; in increase_max_fds()
/dports/misc/concourse/concourse-6.7.2/vendor/github.com/apache/thrift/lib/cpp/src/thrift/server/
H A DTServer.cpp38 int increase_max_fds(int max_fds = (1 << 24)) { in increase_max_fds() argument
41 for (fdmaxrl.rlim_cur = max_fds, fdmaxrl.rlim_max = max_fds; in increase_max_fds()
42 max_fds && (setrlimit(RLIMIT_NOFILE, &fdmaxrl) < 0); in increase_max_fds()
43 fdmaxrl.rlim_cur = max_fds, fdmaxrl.rlim_max = max_fds) { in increase_max_fds()
44 max_fds /= 2; in increase_max_fds()
/dports/devel/node-thrift/thrift-0.14.0/lib/cpp/src/thrift/server/
H A DTServer.cpp38 int increase_max_fds(int max_fds = (1 << 24)) { in increase_max_fds() argument
41 for (fdmaxrl.rlim_cur = max_fds, fdmaxrl.rlim_max = max_fds; in increase_max_fds()
42 max_fds && (setrlimit(RLIMIT_NOFILE, &fdmaxrl) < 0); in increase_max_fds()
43 fdmaxrl.rlim_cur = max_fds, fdmaxrl.rlim_max = max_fds) { in increase_max_fds()
44 max_fds /= 2; in increase_max_fds()
/dports/devel/py-thrift/thrift-0.14.0/lib/cpp/src/thrift/server/
H A DTServer.cpp38 int increase_max_fds(int max_fds = (1 << 24)) { in increase_max_fds() argument
41 for (fdmaxrl.rlim_cur = max_fds, fdmaxrl.rlim_max = max_fds; in increase_max_fds()
42 max_fds && (setrlimit(RLIMIT_NOFILE, &fdmaxrl) < 0); in increase_max_fds()
43 fdmaxrl.rlim_cur = max_fds, fdmaxrl.rlim_max = max_fds) { in increase_max_fds()
44 max_fds /= 2; in increase_max_fds()
/dports/net-mgmt/nagios4/nagios-4.4.6/lib/
H A Diobroker.c45 int max_fds; /* max number of sockets we can accept */ member
110 return iobs->max_fds; in iobroker_get_max_fds()
129 iobs->max_fds = iobroker_max_usable_fds(); in iobroker_create()
144 iobs->epfd = epoll_create(iobs->max_fds); in iobroker_create()
154 iobs->pfd = calloc(iobs->max_fds, sizeof(struct pollfd)); in iobroker_create()
182 if (fd < 0 || fd >= iobs->max_fds) in reg_one()
311 for (i = 0; i < iobs->max_fds; i++) { in iobroker_destroy()
347 if (fd < 0 || fd > iobs->max_fds) { in iobroker_poll()
370 for (i = 0; i < iobs->max_fds; i++) { in iobroker_poll()
389 for (i = 0; i < iobs->max_fds; i++) { in iobroker_poll()
[all …]
/dports/net/freerdp/freerdp-2.5.0/server/Mac/
H A Dmfreerdp.c50 int max_fds; in mf_server_main_loop() local
66 max_fds = 0; in mf_server_main_loop()
73 if (fds > max_fds) in mf_server_main_loop()
74 max_fds = fds; in mf_server_main_loop()
79 if (max_fds == 0) in mf_server_main_loop()
82 if (select(max_fds + 1, &rfds_set, NULL, NULL, NULL) == -1) in mf_server_main_loop()
/dports/multimedia/v4l_compat/linux-5.13-rc2/fs/
H A Dfile.c80 BUG_ON(nfdt->max_fds < ofdt->max_fds); in copy_fdtable()
83 set = (nfdt->max_fds - ofdt->max_fds) * sizeof(struct file *); in copy_fdtable()
119 fdt->max_fds = nr; in alloc_fdtable()
209 if (nr < fdt->max_fds) in expand_files()
278 max_fds = NR_OPEN_DEFAULT; in sane_fdtable_size()
396 if (i >= fdt->max_fds) in close_files()
484 if (fd < fdt->max_fds) in alloc_fd()
606 if (fd >= fdt->max_fds) in pick_file()
642 return fdt->max_fds - 1; in last_fd()
760 if (fd >= fdt->max_fds) in __close_fd_get_file()
[all …]
/dports/multimedia/libv4l/linux-5.13-rc2/fs/
H A Dfile.c80 BUG_ON(nfdt->max_fds < ofdt->max_fds); in copy_fdtable()
83 set = (nfdt->max_fds - ofdt->max_fds) * sizeof(struct file *); in copy_fdtable()
119 fdt->max_fds = nr; in alloc_fdtable()
209 if (nr < fdt->max_fds) in expand_files()
278 max_fds = NR_OPEN_DEFAULT; in sane_fdtable_size()
396 if (i >= fdt->max_fds) in close_files()
484 if (fd < fdt->max_fds) in alloc_fd()
606 if (fd >= fdt->max_fds) in pick_file()
642 return fdt->max_fds - 1; in last_fd()
760 if (fd >= fdt->max_fds) in __close_fd_get_file()
[all …]
/dports/multimedia/v4l-utils/linux-5.13-rc2/fs/
H A Dfile.c80 BUG_ON(nfdt->max_fds < ofdt->max_fds); in copy_fdtable()
83 set = (nfdt->max_fds - ofdt->max_fds) * sizeof(struct file *); in copy_fdtable()
119 fdt->max_fds = nr; in alloc_fdtable()
209 if (nr < fdt->max_fds) in expand_files()
278 max_fds = NR_OPEN_DEFAULT; in sane_fdtable_size()
396 if (i >= fdt->max_fds) in close_files()
484 if (fd < fdt->max_fds) in alloc_fd()
606 if (fd >= fdt->max_fds) in pick_file()
642 return fdt->max_fds - 1; in last_fd()
760 if (fd >= fdt->max_fds) in __close_fd_get_file()
[all …]
/dports/www/qt5-webengine/qtwebengine-everywhere-src-5.15.2/src/3rdparty/chromium/base/process/
H A Dprocess_metrics_ios.cc35 rlim_t max_fds; in GetMaxFds() local
39 max_fds = kSystemDefaultMaxFds; in GetMaxFds()
41 max_fds = nofile.rlim_cur; in GetMaxFds()
44 if (max_fds > INT_MAX) in GetMaxFds()
45 max_fds = INT_MAX; in GetMaxFds()
47 return static_cast<size_t>(max_fds); in GetMaxFds()
H A Dprocess_metrics_posix.cc61 rlim_t max_fds; in GetMaxFds() local
65 max_fds = kSystemDefaultMaxFds; in GetMaxFds()
68 max_fds = nofile.rlim_cur; in GetMaxFds()
71 if (max_fds > INT_MAX) in GetMaxFds()
72 max_fds = INT_MAX; in GetMaxFds()
74 return static_cast<size_t>(max_fds); in GetMaxFds()
/dports/security/libgpg-error/libgpg-error-1.43/src/
H A Dspawn-posix.c75 int max_fds = -1; in get_max_fds() local
111 if (max_fds != -1) in get_max_fds()
112 return max_fds + 1; in get_max_fds()
130 if (max_fds == -1) in get_max_fds()
134 max_fds = scres; in get_max_fds()
139 if (max_fds == -1) in get_max_fds()
144 if (max_fds == -1) in get_max_fds()
145 max_fds = OPEN_MAX; in get_max_fds()
148 if (max_fds == -1) in get_max_fds()
155 max_fds = 256; in get_max_fds()
[all …]
/dports/security/gnupg/gnupg-2.3.3/common/
H A Dexechelp-posix.c100 int max_fds = -1; in get_max_fds() local
135 if (max_fds != -1) in get_max_fds()
136 return max_fds + 1; in get_max_fds()
154 if (max_fds == -1) in get_max_fds()
158 max_fds = scres; in get_max_fds()
163 if (max_fds == -1) in get_max_fds()
168 if (max_fds == -1) in get_max_fds()
169 max_fds = OPEN_MAX; in get_max_fds()
172 if (max_fds == -1) in get_max_fds()
179 max_fds = 256; in get_max_fds()
[all …]
/dports/mail/thunderbird/thunderbird-91.8.0/comm/third_party/libgpg-error/src/
H A Dspawn-posix.c75 int max_fds = -1; in get_max_fds() local
111 if (max_fds != -1) in get_max_fds()
112 return max_fds + 1; in get_max_fds()
130 if (max_fds == -1) in get_max_fds()
134 max_fds = scres; in get_max_fds()
139 if (max_fds == -1) in get_max_fds()
144 if (max_fds == -1) in get_max_fds()
145 max_fds = OPEN_MAX; in get_max_fds()
148 if (max_fds == -1) in get_max_fds()
155 max_fds = 256; in get_max_fds()
[all …]
/dports/www/chromium-legacy/chromium-88.0.4324.182/base/process/
H A Dprocess_metrics_ios.cc37 rlim_t max_fds; in GetMaxFds() local
41 max_fds = kSystemDefaultMaxFds; in GetMaxFds()
43 max_fds = nofile.rlim_cur; in GetMaxFds()
46 if (max_fds > INT_MAX) in GetMaxFds()
47 max_fds = INT_MAX; in GetMaxFds()
49 return static_cast<size_t>(max_fds); in GetMaxFds()
H A Dprocess_metrics_posix.cc61 rlim_t max_fds; in GetMaxFds() local
65 max_fds = kSystemDefaultMaxFds; in GetMaxFds()
68 max_fds = nofile.rlim_cur; in GetMaxFds()
71 if (max_fds > INT_MAX) in GetMaxFds()
72 max_fds = INT_MAX; in GetMaxFds()
74 return static_cast<size_t>(max_fds); in GetMaxFds()
/dports/editors/emacs/emacs-27.2/src/
H A Dxgselect.c56 int n_gfds, retval = 0, our_fds = 0, max_fds = fds_lim - 1; in xg_select() local
95 if (gfds[i].fd > max_fds) max_fds = gfds[i].fd; in xg_select()
100 if (gfds[i].fd > max_fds) max_fds = gfds[i].fd; in xg_select()
116 fds_lim = max_fds + 1; in xg_select()

1234567891011