/titanic_41/usr/src/lib/libbc/libc/compat/common/ |
H A D | ulimit.c | 36 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_41/usr/src/cmd/sh/ |
H A D | ulimit.c | 69 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_41/usr/src/uts/common/exec/elf/ |
H A D | elf_notes.c | 168 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 D | old_notes.c | 104 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 D | elf.c | 1389 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_41/usr/src/lib/libbc/libc/sys/common/ |
H A D | rlimit.c | 44 struct rlimit *rlp; 51 struct rlimit *rlp; 58 struct rlimit *rlp; 65 struct rlimit *rlp;
|
H A D | getdtablesize.c | 43 struct rlimit rip; in getdtablesize()
|
/titanic_41/usr/src/cmd/lvm/rpc.metamhd/ |
H A D | mhd_init.c | 94 struct rlimit rlimit; in mhd_setup() local 116 (void) memset(&rlimit, 0, sizeof (rlimit)); in mhd_setup() 117 if (getrlimit(RLIMIT_NOFILE, &rlimit) != 0) in mhd_setup() 119 rlimit.rlim_cur = rlimit.rlim_max = 1024; in mhd_setup() 120 if (setrlimit(RLIMIT_NOFILE, &rlimit) != 0) in mhd_setup()
|
/titanic_41/usr/src/uts/common/sys/ |
H A D | resource.h | 132 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_41/usr/src/ucbhead/sys/ |
H A D | resource.h | 79 struct rlimit { struct 87 extern int setrlimit(int, const struct rlimit *); argument 88 extern int getrlimit(int, struct rlimit *);
|
/titanic_41/usr/src/uts/common/os/ |
H A D | core.c | 330 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 D | inst_sync.c | 211 rlim64_t rlimit = *vo + count + 1; in in_write() local 214 UIO_SYSSPACE, 0, rlimit, CRED(), &resid); in in_write()
|
/titanic_41/usr/src/cmd/ttymon/ |
H A D | ttymon.c | 157 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()
|
/titanic_41/usr/src/cmd/fs.d/ufs/fsck/ |
H A D | main.c | 184 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_41/usr/src/cmd/svr4pkg/libinst/ |
H A D | doulimit.c | 53 static struct rlimit ulimit = {RLIM_INFINITY, RLIM_INFINITY}; 54 static struct rlimit dblimit = {RLIM_INFINITY, RLIM_INFINITY};
|
/titanic_41/usr/src/uts/intel/io/intel_nhm/ |
H A D | mem_addr.c | 413 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_41/usr/src/cmd/plimit/ |
H A D | plimit.c | 57 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_41/usr/src/uts/common/exec/aout/ |
H A D | aout.c | 61 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_41/usr/src/lib/libc/port/gen/ |
H A D | getdtblsize.c | 51 struct rlimit rip; in getdtablesize()
|
/titanic_41/usr/src/ucblib/libucb/port/sys/ |
H A D | getdtblsize.c | 56 struct rlimit rip; in getdtablesize()
|
/titanic_41/usr/src/lib/libproc/common/ |
H A D | pr_getrlimit.c | 42 int resource, struct rlimit *rlp) in pr_getrlimit() 90 int resource, const struct rlimit *rlp) in pr_setrlimit()
|
/titanic_41/usr/src/lib/libbc/libc/compat/4.1/ |
H A D | vlimit.c | 50 struct rlimit rlim; in vlimit()
|
/titanic_41/usr/src/test/zfs-tests/tests/functional/libzfs/ |
H A D | many_fds.c | 43 struct rlimit limit; in main()
|
/titanic_41/usr/src/lib/libbc/inc/include/sys/ |
H A D | resource.h | 85 struct rlimit { struct
|
/titanic_41/usr/src/cmd/svc/startd/ |
H A D | wait.c | 68 static struct rlimit init_fd_rlimit; 358 struct rlimit fd_new; in wait_init()
|