Searched defs:rlimit (Results 1 - 24 of 24) 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.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 Delf.c1496 rlim64_t rlimit, cred_t *credp)
1518 sizeof (note), rlimit, credp))
1524 note.nhdr.n_descsz, rlimit, credp))
1536 void *buf, size_t size, cred_t *credp, rlim64_t rlimit)
1548 buf, len - resid, rlimit, credp) != 0) {
1578 Shdr *v, int nv, rlim64_t rlimit, Off *doffsetp, int *nshdrsp)
1702 rlimit);
1780 rlimit);
1798 rlimit);
1848 data, v[i].sh_size, rlimit, cred
1495 elfnote(vnode_t *vp, offset_t *offsetp, int type, int descsz, void *desc, rlim64_t rlimit, cred_t *credp) argument
1535 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
1577 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
1861 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/lib/libbc/inc/include/sys/
H A Dresource.h85 struct rlimit { struct
/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 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/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.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...]
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/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/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/uts/common/fs/nfs/
H A Dnfs_srv.c923 rlim64_t rlimit; local
1038 rlimit = uio.uio_llimit - wa->wa_offset;
1039 if (rlimit < (rlim64_t)uio.uio_resid)
1040 uio.uio_resid = (uint_t)rlimit;
1081 rlimit = uio.uio_llimit - wa->wa_offset;
1082 if (rlimit < (rlim64_t)uio.uio_resid)
1083 uio.uio_resid = (uint_t)rlimit;
1173 rlim64_t rlimit; local
1572 rlimit = uio.uio_llimit - rp->wa->wa_offset;
1573 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.c5551 u_offset_t rlimit; local
5689 rlimit = uio.uio_llimit - args->offset;
5690 if (rlimit < (u_offset_t)uio.uio_resid)
5691 uio.uio_resid = (int)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/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 143 milliseconds