Home
last modified time | relevance | path

Searched refs:rlim (Results 1 – 25 of 30) sorted by relevance

12

/titanic_41/usr/src/cmd/plimit/
H A Dplimit.c390 struct rlimit64 rlim; in show_limits() local
398 if (pr_getrlimit64(Pr, resource, &rlim) != 0) in show_limits()
408 limit_adjust(&rlim, 1024); in show_limits()
411 limit_adjust(&rlim, 1024 * 1024); in show_limits()
414 limit_adjust(&rlim, 512); in show_limits()
420 limit_adjust(&rlim, 1024 * 1024); in show_limits()
423 limit_adjust(&rlim, 1024); in show_limits()
429 limit_adjust(&rlim, 1024 * 1024); in show_limits()
432 limit_adjust(&rlim, 1024); in show_limits()
438 limit_adjust(&rlim, 1024); in show_limits()
[all …]
/titanic_41/usr/src/lib/libbc/libc/compat/4.1/
H A Dvlimit.c50 struct rlimit rlim; in vlimit() local
55 if (getrlimit(limit - 1, &rlim) < 0) in vlimit()
57 return (rlim.rlim_cur); in vlimit()
59 rlim.rlim_cur = value; in vlimit()
60 rlim.rlim_max = RLIM_INFINITY; in vlimit()
61 return (setrlimit(limit - 1, &rlim)); in vlimit()
/titanic_41/usr/src/cmd/fm/fmd/common/
H A Dfmd_main.c84 struct rlimit rlim; in daemonize_init() local
98 rlim.rlim_cur = RLIM_INFINITY; in daemonize_init()
99 rlim.rlim_max = RLIM_INFINITY; in daemonize_init()
101 (void) setrlimit(RLIMIT_CORE, &rlim); in daemonize_init()
106 if (getrlimit(RLIMIT_NOFILE, &rlim) == 0) { in daemonize_init()
107 rlim.rlim_cur = rlim.rlim_max; in daemonize_init()
108 (void) setrlimit(RLIMIT_NOFILE, &rlim); in daemonize_init()
/titanic_41/usr/src/cmd/prstat/
H A Dprutil.c250 struct rlimit rlim; in Setrlimit() local
252 if (getrlimit(RLIMIT_NOFILE, &rlim) == -1) in Setrlimit()
254 fd_limit = rlim.rlim_cur; in Setrlimit()
255 rlim.rlim_max = MIN(rlim.rlim_max, RLIMIT_NOFILE_MAX); in Setrlimit()
256 rlim.rlim_cur = rlim.rlim_max; in Setrlimit()
258 if (setrlimit(RLIMIT_NOFILE, &rlim) == -1) in Setrlimit()
261 return (rlim.rlim_cur); in Setrlimit()
/titanic_41/usr/src/cmd/ptools/pldd/
H A Dpldd.c49 struct rlimit rlim; in main() local
89 if (getrlimit(RLIMIT_NOFILE, &rlim) == 0) { in main()
90 rlim.rlim_cur = rlim.rlim_max; in main()
91 (void) setrlimit(RLIMIT_NOFILE, &rlim); in main()
/titanic_41/usr/src/cmd/lp/cmd/lpsched/
H A Dlpsched.c92 struct rlimit rlim; in main() local
154 rlim.rlim_max = rlim.rlim_cur = fd_limit; in main()
155 setrlimit(RLIMIT_NOFILE, &rlim); in main()
156 getrlimit(RLIMIT_NOFILE, &rlim); in main()
159 rlim.rlim_cur, (rlim.rlim_cur - 12)/ 2); in main()
/titanic_41/usr/src/cmd/ptools/pwait/
H A Dpwait.c55 struct rlimit rlim; in main() local
83 if (getrlimit(RLIMIT_NOFILE, &rlim) == 0) { in main()
86 if (rlim.rlim_cur < argc + nfiles + SLOP) { in main()
87 rlim.rlim_cur = argc + nfiles + SLOP; in main()
88 if (setrlimit(RLIMIT_NOFILE, &rlim) != 0) { in main()
/titanic_41/usr/src/cmd/gcore/
H A Dgcore.c160 struct rlimit rlim; in main() local
231 if (getrlimit(RLIMIT_NOFILE, &rlim) == 0) { in main()
232 rlim.rlim_cur = rlim.rlim_max; in main()
233 (void) setrlimit(RLIMIT_NOFILE, &rlim); in main()
/titanic_41/usr/src/cmd/vntsd/
H A Dvntsd.c332 struct rlimit rlim; in main() local
353 (void) getrlimit(RLIMIT_NOFILE, &rlim); in main()
354 if (rlim.rlim_cur < rlim.rlim_max) in main()
355 rlim.rlim_cur = rlim.rlim_max; in main()
356 if (setrlimit(RLIMIT_NOFILE, &rlim) < 0) in main()
/titanic_41/usr/src/cmd/ptools/pcred/
H A Dpcred.c71 struct rlimit rlim; in main() local
128 if (getrlimit(RLIMIT_NOFILE, &rlim) == 0) { in main()
129 rlim.rlim_cur = rlim.rlim_max; in main()
130 (void) setrlimit(RLIMIT_NOFILE, &rlim); in main()
/titanic_41/usr/src/cmd/ptools/psig/
H A Dpsig.c62 struct rlimit rlim; in main() local
90 if (getrlimit(RLIMIT_NOFILE, &rlim) == 0) { in main()
91 rlim.rlim_cur = rlim.rlim_max; in main()
92 (void) setrlimit(RLIMIT_NOFILE, &rlim); in main()
/titanic_41/usr/src/cmd/csh/
H A Dsh.func.c1485 struct rlimit rlim; in plim() local
1494 (void) getrlimit(lp->limconst, &rlim); in plim()
1495 limit = hard ? rlim.rlim_max : rlim.rlim_cur; in plim()
1545 struct rlimit rlim; in setlim() local
1550 (void) getrlimit(lp->limconst, &rlim); in setlim()
1552 rlim.rlim_max = limit; in setlim()
1554 rlim.rlim_cur = rlim.rlim_max; in setlim()
1556 rlim.rlim_cur = limit; in setlim()
1558 if (setrlimit(lp->limconst, &rlim) < 0) { in setlim()
/titanic_41/usr/src/cmd/utmpd/
H A Dutmpd.c191 struct rlimit rlim; in main() local
289 if (getrlimit(RLIMIT_NOFILE, &rlim) == 0) { in main()
290 rlim.rlim_cur = Max_fds + EXTRA_MARGIN + 1; in main()
291 rlim.rlim_max = Max_fds + EXTRA_MARGIN + 1; in main()
292 if (setrlimit(RLIMIT_NOFILE, &rlim) != 0) { in main()
/titanic_41/usr/src/cmd/ptools/pflags/
H A Dpflags.c82 struct rlimit rlim; in main() local
116 if (getrlimit(RLIMIT_NOFILE, &rlim) == 0) { in main()
117 rlim.rlim_cur = rlim.rlim_max; in main()
118 (void) setrlimit(RLIMIT_NOFILE, &rlim); in main()
/titanic_41/usr/src/cmd/ptools/ppriv/
H A Dppriv.c75 struct rlimit rlim; in main() local
141 if (getrlimit(RLIMIT_NOFILE, &rlim) == 0) { in main()
142 rlim.rlim_cur = rlim.rlim_max; in main()
143 (void) setrlimit(RLIMIT_NOFILE, &rlim); in main()
/titanic_41/usr/src/cmd/ypcmd/yppasswd/
H A Dyppasswdd.c658 struct rlimit rlim; in unlimit() local
659 rlim.rlim_cur = rlim.rlim_max = RLIM_INFINITY; in unlimit()
660 setrlimit(lim, &rlim); in unlimit()
/titanic_41/usr/src/cmd/ptools/pstack/
H A Dpstack.c159 struct rlimit rlim; in main() local
200 if (getrlimit(RLIMIT_NOFILE, &rlim) == 0) { in main()
201 rlim.rlim_cur = rlim.rlim_max; in main()
202 (void) setrlimit(RLIMIT_NOFILE, &rlim); in main()
/titanic_41/usr/src/lib/lvm/libmeta/common/
H A Dmeta_setup.c411 struct rlimit rlim; in md_daemonize() local
422 if (getrlimit(RLIMIT_NOFILE, &rlim) != 0) { in md_daemonize()
447 if (rlim.rlim_cur != RLIM_INFINITY) { in md_daemonize()
452 for (i = 0; (i < rlim.rlim_cur); ++i) { in md_daemonize()
/titanic_41/usr/src/cmd/fm/notify/snmp-notify/common/
H A Dsnmp-notify.c544 struct rlimit rlim; in main() local
607 rlim.rlim_cur = RLIM_INFINITY; in main()
608 rlim.rlim_max = RLIM_INFINITY; in main()
609 (void) setrlimit(RLIMIT_CORE, &rlim); in main()
/titanic_41/usr/src/cmd/fm/notify/smtp-notify/common/
H A Dsmtp-notify.c777 struct rlimit rlim; in main() local
841 rlim.rlim_cur = RLIM_INFINITY; in main()
842 rlim.rlim_max = RLIM_INFINITY; in main()
843 (void) setrlimit(RLIMIT_CORE, &rlim); in main()
/titanic_41/usr/src/cmd/ssh/ssh/
H A Dssh.c259 struct rlimit rlim; local
260 rlim.rlim_cur = rlim.rlim_max = 0;
261 if (setrlimit(RLIMIT_CORE, &rlim) < 0)
/titanic_41/usr/src/cmd/ptools/pmap/
H A Dpmap.c200 struct rlimit rlim; in main() local
300 if (getrlimit(RLIMIT_NOFILE, &rlim) == 0) { in main()
301 rlim.rlim_cur = rlim.rlim_max; in main()
302 (void) setrlimit(RLIMIT_NOFILE, &rlim); in main()
/titanic_41/usr/src/cmd/ptools/pfiles/
H A Dpfiles.c318 struct rlimit rlim; in show_files() local
320 if (pr_getrlimit(Pr, RLIMIT_NOFILE, &rlim) == 0) { in show_files()
321 ulong_t nfd = rlim.rlim_cur; in show_files()
/titanic_41/usr/src/cmd/ssh/ssh-agent/
H A Dssh-agent.c936 struct rlimit rlim; local
1157 rlim.rlim_cur = rlim.rlim_max = 0;
1158 if (setrlimit(RLIMIT_CORE, &rlim) < 0) {
/titanic_41/usr/src/cmd/truss/
H A Dmain.c254 struct rlimit rlim; in main() local
533 rlim.rlim_cur = 1024 * 1024; in main()
534 rlim.rlim_max = 1024 * 1024; in main()
535 if ((Euid != 0 || setrlimit(RLIMIT_NOFILE, &rlim) != 0) && in main()
536 getrlimit(RLIMIT_NOFILE, &rlim) == 0) { in main()
541 rlim.rlim_cur = rlim.rlim_max; in main()
542 (void) setrlimit(RLIMIT_NOFILE, &rlim); in main()

12