/dports/japanese/ebnetd/ebnetd-1.0/lib/ |
H A D | openmax.c | 65 int open_max; in get_open_max() local 68 open_max = getdtablesize(); in get_open_max() 75 open_max = limit.rlim_cur; in get_open_max() 79 open_max = sysconf(_SC_OPEN_MAX); in get_open_max() 82 open_max = NOFILE; in get_open_max() 84 open_max = DEFAULT_OPEN_MAX; in get_open_max() 90 return open_max; in get_open_max()
|
/dports/misc/findutils/findutils-4.8.0/lib/ |
H A D | fdleak.c | 112 long open_max; in get_max_fd() local 114 open_max = get_proc_max_fd (); in get_max_fd() 115 if (open_max >= 0) in get_max_fd() 116 return open_max; in get_max_fd() 118 open_max = sysconf (_SC_OPEN_MAX); in get_max_fd() 119 if (open_max == -1) in get_max_fd() 120 open_max = _POSIX_OPEN_MAX; /* underestimate */ in get_max_fd() 129 return open_max; in get_max_fd() 136 return open_max; in get_max_fd()
|
/dports/sysutils/entr/entr-5.0/ |
H A D | entr.c | 116 unsigned open_max; in main() local 164 if (open_max == 0) in main() 165 open_max = 65536; in main() 170 open_max = min(65536, (unsigned)rl.rlim_cur); in main() 171 if (open_max == 0) in main() 172 open_max = 65536; in main() 176 open_max = (unsigned)rl.rlim_max; in main() 177 rl.rlim_cur = (rlim_t)open_max; in main() 183 fprintf(stderr, "open_max: %d\n", open_max); in main() 192 files = calloc(open_max+1, sizeof(WatchFile *)); in main() [all …]
|
/dports/x11-toolkits/vte3/vte-0.64.2/src/ |
H A D | missing.cc | 218 auto const open_max = getrlimit_NOFILE_max(); in fdwalk() local 219 if (open_max == RLIM_INFINITY || open_max > G_MAXINT) { in fdwalk() 227 for (fd = 0; fd < int(open_max); fd++) in fdwalk()
|
/dports/astro/siril/siril/src/core/ |
H A D | OS_utils.c | 450 int open_max, maxfile, MAX_NO_FILE_CFITSIO, MAX_NO_FILE; in allow_to_open_files() local 460 open_max = _getmaxstdio(); in allow_to_open_files() 461 if (open_max < MAX_NO_FILE) { in allow_to_open_files() 465 open_max = _getmaxstdio(); in allow_to_open_files() 477 open_max = rlp.rlim_cur; in allow_to_open_files() 479 if (open_max < MAX_NO_FILE) { in allow_to_open_files() 485 open_max = rlp.rlim_cur; in allow_to_open_files() 489 open_max = MAX_NO_FILE; in allow_to_open_files() 492 open_max = sysconf(_SC_OPEN_MAX); // if no success with getrlimit, try with sysconf in allow_to_open_files() 496 maxfile = min(open_max, MAX_NO_FILE); in allow_to_open_files()
|
/dports/irc/irc/irc2.11.2p3/contrib/ircdwatch/ |
H A D | ircdwatch.c | 73 int open_max; 85 open_max = MAX_OPEN_FILEDESCRIPTORS_WILD_GUESS; 88 open_max = rlim.rlim_max; 93 open_max = MAX_OPEN_FILEDESCRIPTORS_WILD_GUESS; 112 for (i=0; i < open_max; i++) {
|
/dports/sysutils/cmogstored/cmogstored-1.8.1/test/ |
H A D | fdmap-1.c | 10 int open_max = (int)sysconf(_SC_OPEN_MAX); in main() local 20 for (i = 0; i < open_max; i++) { in main()
|
/dports/devel/gamin/gamin-0.1.10/libgamin/ |
H A D | gam_fork.c | 143 long open_max; in gamin_fork_server() local 154 open_max = sysconf (_SC_OPEN_MAX); in gamin_fork_server() 155 for (i = 0; i < open_max; i++) in gamin_fork_server()
|
/dports/graphics/GraphicsMagick/GraphicsMagick-1.3.36/magick/ |
H A D | resource.c | 659 open_max, in InitializeMagickResources() local 664 open_max=sysconf(_SC_OPEN_MAX); in InitializeMagickResources() 667 (unsigned long) open_max); in InitializeMagickResources() 668 if (open_max < target) in InitializeMagickResources() 670 if (open_max > margin*2) in InitializeMagickResources() 671 max_files=open_max-margin; in InitializeMagickResources() 673 max_files=open_max/2; in InitializeMagickResources()
|
/dports/net-mgmt/dhcp_probe/dhcp_probe-1.3.1/src/ |
H A D | Makefile.am | 7 daemonize.c open_max.c report.c utils.c \ 11 daemonize.h open_max.h report.h utils.h
|
/dports/shells/ksh93-devel/ast-cc1bca27/src/lib/libcmd/ |
H A D | fds.c | 167 int open_max; in b_fds() local 213 if ((open_max = getconf("OPEN_MAX")) <= 0) in b_fds() 214 open_max = OPEN_MAX; in b_fds() 219 for (i = 0; i <= open_max; i++) in b_fds()
|
/dports/shells/ksh93/ast-93u/src/lib/libcmd/ |
H A D | fds.c | 167 int open_max; in b_fds() local 213 if ((open_max = getconf("OPEN_MAX")) <= 0) in b_fds() 214 open_max = OPEN_MAX; in b_fds() 219 for (i = 0; i <= open_max; i++) in b_fds()
|
/dports/net-mgmt/nagios-plugins/nagios-plugins-2.3.3/plugins/ |
H A D | popen.c | 81 int open_max (void); /* {Prog openmax} */ 190 maxfd = open_max (); /* allocate zeroed out array for child pids */ in spopen() 196 maxfd = open_max (); /* allocate zeroed out array for child pids */ in spopen() 319 open_max (void) in open_max() function
|
/dports/shells/ast-ksh/ast-ksh93v/src/lib/libcmd/ |
H A D | fds.c | 164 int open_max; in b_fds() local 210 if ((open_max = getconf("OPEN_MAX")) <= 0) in b_fds() 211 open_max = OPEN_MAX; in b_fds() 216 for (i = 0; i <= open_max; i++) in b_fds()
|
/dports/databases/sharedance/sharedance-0.6/src/ |
H A D | daemonize.c | 9 static unsigned int open_max(void) in open_max() function 65 i = open_max(); in dodaemonize()
|
/dports/x11-wm/xfce4-session/xfce4-session-4.16.0/xfce4-session/ |
H A D | xfsm-compat-gnome.c | 75 gint open_max; in child_setup() local 80 open_max = sysconf (_SC_OPEN_MAX); in child_setup() 81 for (fd = 3; fd < open_max; fd++) in child_setup()
|
/dports/devel/ORBit2/ORBit2-2.14.19/linc2/src/ |
H A D | cleanup.c | 156 int open_max; in clean_dir() local 160 open_max = sysconf (_SC_OPEN_MAX); in clean_dir() 188 while (pending >= open_max) in clean_dir()
|
/dports/net/ucarp/UCarp-4f339d4/src/ |
H A D | daemonize.c | 10 static unsigned int open_max(void) in open_max() function 76 i = open_max(); in dodaemonize()
|
/dports/textproc/sgmls/sgmls/ |
H A D | unixproc.c | 61 int open_max = (int)sysconf(_SC_OPEN_MAX); local 63 for (i = 3; i < open_max; i++)
|
/dports/textproc/linuxdoc-tools/linuxdoc-tools-0.9.82/sgmls-1.1/ |
H A D | unixproc.c | 61 int open_max = (int)sysconf(_SC_OPEN_MAX); local 63 for (i = 3; i < open_max; i++)
|
/dports/sysutils/watchman/watchman-4.5.0/ |
H A D | main.c | 95 long open_max = 0; in close_random_fds() local 110 open_max = sysconf(_SC_OPEN_MAX); in close_random_fds() 112 if (open_max <= 0) { in close_random_fds() 113 open_max = 36; /* POSIX_OPEN_MAX (20) + some padding */ in close_random_fds() 120 if (limit.rlim_cur > (rlim_t)open_max) { in close_random_fds() 121 open_max = limit.rlim_cur; in close_random_fds() 124 for (max_fd = open_max; max_fd > STDERR_FILENO; --max_fd) { in close_random_fds()
|
/dports/sysutils/py-pywatchman/watchman-4.9.0/ |
H A D | main.cpp | 200 long open_max = 0; in close_random_fds() local 215 open_max = sysconf(_SC_OPEN_MAX); in close_random_fds() 217 if (open_max <= 0) { in close_random_fds() 218 open_max = 36; /* POSIX_OPEN_MAX (20) + some padding */ in close_random_fds() 225 if (limit.rlim_cur > (rlim_t)open_max) { in close_random_fds() 226 open_max = limit.rlim_cur; in close_random_fds() 229 for (max_fd = open_max; max_fd > STDERR_FILENO; --max_fd) { in close_random_fds()
|
/dports/textproc/uim-el/uim-d1ac9d9/uim/ |
H A D | uim-ipc.c | 179 int open_max; in uim_ipc_open_command_with_option() local 182 open_max = sysconf (_SC_OPEN_MAX); in uim_ipc_open_command_with_option() 183 for (i = 3; i < open_max; i++) { in uim_ipc_open_command_with_option()
|
/dports/textproc/uim-gtk/uim-d1ac9d9/uim/ |
H A D | uim-ipc.c | 179 int open_max; in uim_ipc_open_command_with_option() local 182 open_max = sysconf (_SC_OPEN_MAX); in uim_ipc_open_command_with_option() 183 for (i = 3; i < open_max; i++) { in uim_ipc_open_command_with_option()
|
/dports/textproc/uim-qt5/uim-d1ac9d9/uim/ |
H A D | uim-ipc.c | 179 int open_max; in uim_ipc_open_command_with_option() local 182 open_max = sysconf (_SC_OPEN_MAX); in uim_ipc_open_command_with_option() 183 for (i = 3; i < open_max; i++) { in uim_ipc_open_command_with_option()
|