Searched defs:rlimit (Results 1 - 23 of 23) sorted by relevance

/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/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/uts/common/exec/elf/
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
H A Delf_notes.c170 rlim64_t rlimit, cred_t *credp, core_content_t content)
237 (caddr_t)&bigwad->psinfo, rlimit, credp);
264 (caddr_t)&bigwad->pstatus, rlimit, credp);
269 platform, rlimit, credp);
279 (caddr_t)bigwad->auxv, rlimit, credp);
289 (caddr_t)&bigwad->uts, rlimit, credp);
295 (caddr_t)&bigwad->psecflags, rlimit, credp);
308 (caddr_t)&bigwad->pcred, rlimit, credp);
313 (caddr_t)&content, rlimit, credp);
320 (caddr_t)&bigwad->ppriv, rlimit, cred
169 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 Delf.c1554 rlim64_t rlimit, cred_t *credp)
1576 sizeof (note), rlimit, credp))
1582 note.nhdr.n_descsz, rlimit, credp))
1594 void *buf, size_t size, cred_t *credp, rlim64_t rlimit)
1606 buf, len - resid, rlimit, credp) != 0) {
1636 Shdr *v, int nv, rlim64_t rlimit, Off *doffsetp, int *nshdrsp)
1760 rlimit);
1838 rlimit);
1856 rlimit);
1906 data, v[i].sh_size, rlimit, cred
1553 elfnote(vnode_t *vp, offset_t *offsetp, int type, int descsz, void *desc, rlim64_t rlimit, cred_t *credp) argument
1593 copy_scn(Shdr *src, vnode_t *src_vp, Shdr *dst, vnode_t *dst_vp, Off *doffset, void *buf, size_t size, cred_t *credp, rlim64_t rlimit) argument
1635 process_scns(core_content_t content, proc_t *p, cred_t *credp, vnode_t *vp, Shdr *v, int nv, rlim64_t rlimit, Off *doffsetp, int *nshdrsp) argument
1919 elfcore(vnode_t *vp, proc_t *p, cred_t *credp, rlim64_t rlimit, int sig, core_content_t content) argument
[all...]
/illumos-gate/usr/src/cmd/ttymon/
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/lib/libbc/inc/include/sys/
H A Dresource.h85 struct rlimit { struct
/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/uts/common/os/
H A Dinst_sync.c211 rlim64_t rlimit = *vo + count + 1; local
214 UIO_SYSSPACE, 0, rlimit, CRED(), &resid);
H A Dcore.c331 rlim64_t rlimit; local
345 rlimit = cg->core_rlimit;
348 rlimit = rctl_enforced_value(rctlproc_legacy[RLIMIT_CORE],
354 if (rlimit == 0)
444 error = eswp->exec_core(vp, p, credp, rlimit, sig,
570 dump_one_core(int sig, rlim64_t rlimit, enum core_types core_type, argument
607 if (rlimit == 0)
608 core_log(cg, 0, "core rlimit is zero, core not dumped",
611 core_log(cg, 0, "core rlimit exceeded, core truncated",
646 rlim64_t rlimit; local
796 core_seg(proc_t *p, vnode_t *vp, offset_t offset, caddr_t addr, size_t size, rlim64_t rlimit, cred_t *credp) argument
844 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...]
H A Ddevcache.c559 rlim64_t rlimit; local
571 rlimit = bufsiz + 1;
574 UIO_SYSSPACE, FSYNC, rlimit, kcred, &resid);
/illumos-gate/usr/src/uts/common/io/scsi/adapters/pmcs/
H A Dpmcs_fwlog.c1188 rlim64_t rlimit; local
1210 rlimit = data_len + 1;
1213 UIO_SYSSPACE, FSYNC, rlimit, CRED(), &resid);
/illumos-gate/usr/src/cmd/plimit/
H A Dplimit.c58 static struct rlimit64 rlimit[RLIM_NLIMITS]; variable in typeref:struct:rlimit64
322 struct rlimit64 *rp = &rlimit[which];
461 (void) sprintf(buf, " rlimit #%d\t", resource);
597 if (set_one_limit(Pr, which, rlimit[which].rlim_cur,
598 rlimit[which].rlim_max) != 0)
/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/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/uts/intel/io/intel_nhm/
H A Dintel_nhm.h290 uint64_t rlimit; member in struct:rir_way
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/fs/nfs/
H A Dnfs_srv.c924 rlim64_t rlimit; local
1039 rlimit = uio.uio_llimit - wa->wa_offset;
1040 if (rlimit < (rlim64_t)uio.uio_resid)
1041 uio.uio_resid = (uint_t)rlimit;
1082 rlimit = uio.uio_llimit - wa->wa_offset;
1083 if (rlimit < (rlim64_t)uio.uio_resid)
1084 uio.uio_resid = (uint_t)rlimit;
1174 rlim64_t rlimit; local
1573 rlimit = uio.uio_llimit - rp->wa->wa_offset;
1574 if (rlimit < (rlim64_
[all...]
H A Dnfs3_srv.c1264 u_offset_t rlimit; local
1414 rlimit = uio.uio_llimit - args->offset;
1415 if (rlimit < (u_offset_t)uio.uio_resid)
1416 uio.uio_resid = (int)rlimit;
H A Dnfs4_srv.c5476 u_offset_t rlimit; local
5614 rlimit = uio.uio_llimit - args->offset;
5615 if (rlimit < (u_offset_t)uio.uio_resid)
5616 uio.uio_resid = (int)rlimit;
/illumos-gate/usr/src/uts/common/io/
H A Ddevinfo.c3720 rlim64_t rlimit; local
3725 rlimit = RLIM64_INFINITY;
3730 UIO_SYSSPACE, FSYNC, rlimit, kcred, &resid);
/illumos-gate/usr/src/cmd/truss/
H A Dexpound.c3394 struct rlimit32 rlimit; local
3397 Pread(Proc, &rlimit, sizeof (rlimit), offset) == sizeof (rlimit)) {
3399 switch (rlimit.rlim_cur) {
3410 (void) printf("cur = %lu", (long)rlimit.rlim_cur);
3413 switch (rlimit.rlim_max) {
3424 (void) printf(" max = %lu\n", (long)rlimit.rlim_max);
3433 struct rlimit64 rlimit; local
3436 Pread(Proc, &rlimit, sizeo
[all...]

Completed in 296 milliseconds