Searched refs:rlimit (Results 1 - 25 of 118) sorted by relevance

12345

/illumos-gate/usr/src/lib/libbc/libc/compat/common/
H A Dulimit.c36 struct rlimit rlimit; local
41 if (getrlimit(RLIMIT_FSIZE, &rlimit) < 0)
43 return (rlimit.rlim_cur / 512);
46 rlimit.rlim_cur = rlimit.rlim_max = newlimit * 512;
47 return (setrlimit(RLIMIT_FSIZE, &rlimit));
50 if (getrlimit(RLIMIT_DATA, &rlimit) < 0)
52 return (rlimit.rlim_cur);
/illumos-gate/usr/src/ucbhead/sys/
H A Dresource.h79 struct rlimit { struct
87 extern int setrlimit(int, const struct rlimit *);
88 extern int getrlimit(int, struct rlimit *);
/illumos-gate/usr/src/lib/libbc/libc/sys/common/
H A Drlimit.c44 struct rlimit *rlp;
51 struct rlimit *rlp;
58 struct rlimit *rlp;
65 struct rlimit *rlp;
H A Dgetdtablesize.c43 struct rlimit rip;
/illumos-gate/usr/src/cmd/sh/
H A Dulimit.c69 struct rlimit rlimit; local
147 if (getrlimit(res, &rlimit) < 0) {
158 if (rlimit.rlim_cur == RLIM_INFINITY) {
161 prull_buff(rlimit.rlim_cur /
169 if (rlimit.rlim_max == RLIM_INFINITY) {
172 prull_buff(rlimit.rlim_max /
223 if (getrlimit(res, &rlimit) < 0) {
233 rlimit.rlim_max = limit;
236 rlimit
[all...]
/illumos-gate/usr/src/lib/libc/port/gen/
H A Dgetdtblsize.c51 struct rlimit rip;
H A Dclosefrom.c59 struct rlimit rl;
/illumos-gate/usr/src/ucblib/libucb/port/sys/
H A Dgetdtblsize.c56 struct rlimit rip;
/illumos-gate/usr/src/lib/libbc/libc/compat/4.1/
H A Dvlimit.c50 struct rlimit rlim;
/illumos-gate/usr/src/uts/common/sys/
H A Dresource.h132 struct rlimit { struct
242 #define rlimit rlimit64 macro
257 #define rlimit64 rlimit
261 extern int setrlimit(int, const struct rlimit *);
262 extern int getrlimit(int, struct rlimit *);
/illumos-gate/usr/src/lib/libbc/inc/include/sys/
H A Dresource.h85 struct rlimit { struct
/illumos-gate/usr/src/test/zfs-tests/tests/functional/libzfs/
H A Dmany_fds.c43 struct rlimit limit;
/illumos-gate/usr/src/uts/common/exec/elf/
H A Delf_notes.c169 rlim64_t rlimit, cred_t *credp, core_content_t content)
236 (caddr_t)&bigwad->psinfo, rlimit, credp);
263 (caddr_t)&bigwad->pstatus, rlimit, credp);
268 platform, rlimit, credp);
278 (caddr_t)bigwad->auxv, rlimit, credp);
288 (caddr_t)&bigwad->uts, rlimit, credp);
294 (caddr_t)&bigwad->psecflags, rlimit, credp);
307 (caddr_t)&bigwad->pcred, rlimit, credp);
312 (caddr_t)&content, rlimit, credp);
319 (caddr_t)&bigwad->ppriv, rlimit, cred
168 write_elfnotes(proc_t *p, int sig, vnode_t *vp, offset_t offset, rlim64_t rlimit, cred_t *credp, core_content_t content) argument
[all...]
H A Dold_notes.c104 rlim64_t rlimit, cred_t *credp)
138 (caddr_t)&bigwad->psinfo, rlimit, credp);
143 platform, rlimit, credp);
153 (caddr_t)bigwad->auxv, rlimit, credp);
193 rlimit, credp);
201 rlimit, credp);
220 rlimit, credp);
230 xregsize, bigwad->xregs, rlimit, credp);
103 write_old_elfnotes(proc_t *p, int sig, vnode_t *vp, offset_t offset, rlim64_t rlimit, cred_t *credp) argument
/illumos-gate/usr/src/cmd/lvm/rpc.metamhd/
H A Dmhd_init.c94 struct rlimit rlimit; local
116 (void) memset(&rlimit, 0, sizeof (rlimit));
117 if (getrlimit(RLIMIT_NOFILE, &rlimit) != 0)
119 rlimit.rlim_cur = rlimit.rlim_max = 1024;
120 if (setrlimit(RLIMIT_NOFILE, &rlimit) != 0)
/illumos-gate/usr/src/cmd/ttymon/
H A Dtmglobal.c88 /* original rlimit value */
89 struct rlimit Rlimit;
H A Dttymon.c157 struct rlimit rlimit; local
158 extern struct rlimit Rlimit;
201 rlimit.rlim_cur = rlimit.rlim_max = Rlimit.rlim_max;
202 if (setrlimit(RLIMIT_NOFILE, &rlimit) == -1)
207 Maxfiles = rlimit.rlim_cur;
/illumos-gate/usr/src/cmd/svr4pkg/libinst/
H A Ddoulimit.c53 static struct rlimit ulimit = {RLIM_INFINITY, RLIM_INFINITY};
54 static struct rlimit dblimit = {RLIM_INFINITY, RLIM_INFINITY};
/illumos-gate/usr/src/uts/common/os/
H A Dcore.c330 rlim64_t rlimit; local
344 rlimit = cg->core_rlimit;
347 rlimit = rctl_enforced_value(rctlproc_legacy[RLIMIT_CORE],
353 if (rlimit == 0)
443 error = eswp->exec_core(vp, p, credp, rlimit, sig,
569 dump_one_core(int sig, rlim64_t rlimit, enum core_types core_type, argument
606 if (rlimit == 0)
607 core_log(cg, 0, "core rlimit is zero, core not dumped",
610 core_log(cg, 0, "core rlimit exceeded, core truncated",
645 rlim64_t rlimit; local
795 core_seg(proc_t *p, vnode_t *vp, offset_t offset, caddr_t addr, size_t size, rlim64_t rlimit, cred_t *credp) argument
843 core_write(vnode_t *vp, enum uio_seg segflg, offset_t offset, const void *buf, size_t len, rlim64_t rlimit, cred_t *credp) argument
[all...]
/illumos-gate/usr/src/cmd/fs.d/ufs/fsck/
H A Dmain.c184 struct rlimit rlimit; local
296 if (getrlimit(RLIMIT_DATA, &rlimit) == 0) {
297 rlimit.rlim_cur = rlimit.rlim_max;
298 (void) setrlimit(RLIMIT_DATA, &rlimit);
/illumos-gate/usr/src/lib/libproc/common/
H A Dpr_getrlimit.c42 int resource, struct rlimit *rlp)
90 int resource, const struct rlimit *rlp)
/illumos-gate/usr/src/uts/intel/io/intel_nhm/
H A Dmem_addr.c413 uint64_t rlimit; local
433 rlimit = rir[node][channel][i].way[way].rlimit;
434 if (rlimit && rank_addr >= rlimit)
879 rir[socket][channel][k].way[l].rlimit == 0) {
880 rir[socket][channel][k].way[l].rlimit =
891 rir[socket][channel][k].way[l].rlimit == 0) {
892 rir[socket][channel][k].way[l].rlimit = rank_addr;
997 rir[i][j][k].way[l].rlimit
[all...]
/illumos-gate/usr/src/uts/common/exec/aout/
H A Daout.c61 rlim64_t rlimit, int sig, core_content_t content);
343 aoutcore(vnode_t *vp, proc_t *pp, struct cred *credp, rlim64_t rlimit, int sig, argument
346 return (elf32core(vp, pp, credp, rlimit, sig, content));
/illumos-gate/usr/src/cmd/ptools/pldd/
H A Dpldd.c49 struct rlimit rlim;
/illumos-gate/usr/src/cmd/ptools/pwait/
H A Dpwait.c55 struct rlimit rlim;

Completed in 118 milliseconds

12345