Home
last modified time | relevance | path

Searched refs:rlimit (Results 1 – 25 of 120) sorted by relevance

12345

/titanic_50/usr/src/lib/libbc/libc/compat/common/
H A Dulimit.c36 struct rlimit rlimit; in ulimit() local
41 if (getrlimit(RLIMIT_FSIZE, &rlimit) < 0) in ulimit()
43 return (rlimit.rlim_cur / 512); in ulimit()
46 rlimit.rlim_cur = rlimit.rlim_max = newlimit * 512; in ulimit()
47 return (setrlimit(RLIMIT_FSIZE, &rlimit)); in ulimit()
50 if (getrlimit(RLIMIT_DATA, &rlimit) < 0) in ulimit()
52 return (rlimit.rlim_cur); in ulimit()
/titanic_50/usr/src/cmd/sh/
H A Dulimit.c69 struct rlimit rlimit; in sysulimit() local
147 if (getrlimit(res, &rlimit) < 0) { in sysulimit()
158 if (rlimit.rlim_cur == RLIM_INFINITY) { in sysulimit()
161 prull_buff(rlimit.rlim_cur / in sysulimit()
169 if (rlimit.rlim_max == RLIM_INFINITY) { in sysulimit()
172 prull_buff(rlimit.rlim_max / in sysulimit()
223 if (getrlimit(res, &rlimit) < 0) { in sysulimit()
233 rlimit.rlim_max = limit; in sysulimit()
236 rlimit.rlim_cur = limit; in sysulimit()
239 if (setrlimit(res, &rlimit) < 0) { in sysulimit()
/titanic_50/usr/src/uts/common/exec/elf/
H A Delf_notes.c168 rlim64_t rlimit, cred_t *credp, core_content_t content) in write_elfnotes() argument
234 (caddr_t)&bigwad->psinfo, rlimit, credp); in write_elfnotes()
261 (caddr_t)&bigwad->pstatus, rlimit, credp); in write_elfnotes()
266 platform, rlimit, credp); in write_elfnotes()
276 (caddr_t)bigwad->auxv, rlimit, credp); in write_elfnotes()
286 (caddr_t)&bigwad->uts, rlimit, credp); in write_elfnotes()
299 (caddr_t)&bigwad->pcred, rlimit, credp); in write_elfnotes()
304 (caddr_t)&content, rlimit, credp); in write_elfnotes()
311 (caddr_t)&bigwad->ppriv, rlimit, credp); in write_elfnotes()
317 (caddr_t)prii, rlimit, credp); in write_elfnotes()
[all …]
H A Dold_notes.c104 rlim64_t rlimit, cred_t *credp) in write_old_elfnotes() argument
138 (caddr_t)&bigwad->psinfo, rlimit, credp); in write_old_elfnotes()
143 platform, rlimit, credp); in write_old_elfnotes()
153 (caddr_t)bigwad->auxv, rlimit, credp); in write_old_elfnotes()
193 rlimit, credp); in write_old_elfnotes()
201 rlimit, credp); in write_old_elfnotes()
220 rlimit, credp); in write_old_elfnotes()
230 xregsize, bigwad->xregs, rlimit, credp); in write_old_elfnotes()
H A Delf.c1389 rlim64_t rlimit, cred_t *credp) in elfnote() argument
1411 sizeof (note), rlimit, credp)) in elfnote()
1417 note.nhdr.n_descsz, rlimit, credp)) in elfnote()
1429 void *buf, size_t size, cred_t *credp, rlim64_t rlimit) in copy_scn() argument
1441 buf, len - resid, rlimit, credp) != 0) { in copy_scn()
1471 Shdr *v, int nv, rlim64_t rlimit, Off *doffsetp, int *nshdrsp) in process_scns() argument
1595 rlimit); in process_scns()
1673 rlimit); in process_scns()
1691 rlimit); in process_scns()
1741 data, v[i].sh_size, rlimit, credp)) != 0) in process_scns()
[all …]
/titanic_50/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; in getdtablesize()
/titanic_50/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 *);
/titanic_50/usr/src/ucbhead/sys/
H A Dresource.h79 struct rlimit { struct
87 extern int setrlimit(int, const struct rlimit *); argument
88 extern int getrlimit(int, struct rlimit *);
/titanic_50/usr/src/uts/common/os/
H A Dcore.c330 rlim64_t rlimit; in do_core() local
344 rlimit = cg->core_rlimit; in do_core()
347 rlimit = rctl_enforced_value(rctlproc_legacy[RLIMIT_CORE], in do_core()
353 if (rlimit == 0) in do_core()
443 error = eswp->exec_core(vp, p, credp, rlimit, sig, in do_core()
569 dump_one_core(int sig, rlim64_t rlimit, enum core_types core_type, in dump_one_core() argument
606 if (rlimit == 0) in dump_one_core()
645 rlim64_t rlimit; in core() local
692 rlimit = rctl_enforced_value(rctlproc_legacy[RLIMIT_CORE], p->p_rctls, in core()
746 error2 = dump_one_core(sig, rlimit, CORE_ZONE, my_cg, in core()
[all …]
H A Dinst_sync.c211 rlim64_t rlimit = *vo + count + 1; in in_write() local
214 UIO_SYSSPACE, 0, rlimit, CRED(), &resid); in in_write()
/titanic_50/usr/src/cmd/ttymon/
H A Dttymon.c157 struct rlimit rlimit; in initialize() local
158 extern struct rlimit Rlimit; in initialize()
201 rlimit.rlim_cur = rlimit.rlim_max = Rlimit.rlim_max; in initialize()
202 if (setrlimit(RLIMIT_NOFILE, &rlimit) == -1) in initialize()
207 Maxfiles = rlimit.rlim_cur; in initialize()
H A Dtmglobal.c89 struct rlimit Rlimit;
/titanic_50/usr/src/cmd/fs.d/ufs/fsck/
H A Dmain.c184 struct rlimit rlimit; in main() local
296 if (getrlimit(RLIMIT_DATA, &rlimit) == 0) { in main()
297 rlimit.rlim_cur = rlimit.rlim_max; in main()
298 (void) setrlimit(RLIMIT_DATA, &rlimit); in main()
/titanic_50/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};
/titanic_50/usr/src/uts/intel/io/intel_nhm/
H A Dmem_addr.c413 uint64_t rlimit; in dimm_to_addr() local
433 rlimit = rir[node][channel][i].way[way].rlimit; in dimm_to_addr()
434 if (rlimit && rank_addr >= rlimit) in dimm_to_addr()
879 rir[socket][channel][k].way[l].rlimit == 0) { in set_rank()
880 rir[socket][channel][k].way[l].rlimit = in set_rank()
891 rir[socket][channel][k].way[l].rlimit == 0) { in set_rank()
892 rir[socket][channel][k].way[l].rlimit = rank_addr; in set_rank()
997 rir[i][j][k].way[l].rlimit = 0; in mem_reg_init()
/titanic_50/usr/src/cmd/plimit/
H A Dplimit.c57 static struct rlimit64 rlimit[RLIM_NLIMITS]; variable
321 struct rlimit64 *rp = &rlimit[which]; in parse_limits()
596 if (set_one_limit(Pr, which, rlimit[which].rlim_cur, in set_limits()
597 rlimit[which].rlim_max) != 0) in set_limits()
/titanic_50/usr/src/ucblib/libucb/port/sys/
H A Dgetdtblsize.c56 struct rlimit rip; in getdtablesize()
/titanic_50/usr/src/lib/libc/port/gen/
H A Dgetdtblsize.c51 struct rlimit rip; in getdtablesize()
/titanic_50/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, in aoutcore() argument
346 return (elf32core(vp, pp, credp, rlimit, sig, content)); in aoutcore()
/titanic_50/usr/src/lib/libproc/common/
H A Dpr_getrlimit.c42 int resource, struct rlimit *rlp) in pr_getrlimit()
90 int resource, const struct rlimit *rlp) in pr_setrlimit()
/titanic_50/usr/src/lib/libbc/libc/compat/4.1/
H A Dvlimit.c50 struct rlimit rlim; in vlimit()
/titanic_50/usr/src/test/zfs-tests/tests/functional/libzfs/
H A Dmany_fds.c43 struct rlimit limit; in main()
/titanic_50/usr/src/lib/libbc/inc/include/sys/
H A Dresource.h85 struct rlimit { struct
/titanic_50/usr/src/cmd/svc/startd/
H A Dwait.c68 static struct rlimit init_fd_rlimit;
358 struct rlimit fd_new; in wait_init()

12345