Lines Matching full:limit
7 /* set/get open file limit
11 /* int open_limit(int limit)
14 /* number of open files to the specified limit. Specify a null
16 /* limit for the current process. The number can be smaller or larger
17 /* than the requested limit.
57 /* open_limit - set/query file descriptor limit */
59 int open_limit(int limit) in open_limit() argument
65 if (limit < 0) { in open_limit()
72 if (limit > 0) { in open_limit()
76 * hard limit is finite and equals the kern.maxfilesperproc value. in open_limit()
85 if (limit > max_files_per_proc) in open_limit()
86 limit = max_files_per_proc; in open_limit()
88 if (limit > rl.rlim_max) in open_limit()
91 rl.rlim_cur = limit; in open_limit()