HomeSort by: relevance | last modified time | path
    Searched refs:rlimit (Results 1 - 25 of 70) sorted by relevancy

1 2 3

  /src/lib/libc/gen/
ulimit.c 46 struct rlimit rlimit; local in function:ulimit
54 if (getrlimit(RLIMIT_FSIZE, &rlimit) == 0)
55 result = (long int)(rlimit.rlim_cur / 512);
59 rlimit.rlim_cur = rlimit.rlim_max = (rlim_t)new_limit * 512;
60 if (setrlimit(RLIMIT_FSIZE, &rlimit) == 0)
  /src/tests/lib/libc/sys/
t_setrlimit.c 56 static const int rlimit[] = { variable in typeref:typename:const int[]
78 struct rlimit res;
82 buf = calloc(__arraycount(rlimit), sizeof(int));
87 for (i = lim = 0; i < __arraycount(rlimit); i++) {
89 (void)memset(&res, 0, sizeof(struct rlimit));
91 if (getrlimit(rlimit[i], &res) != 0)
103 if (setrlimit(rlimit[i], &res) != 0) {
104 lim = rlimit[i];
110 for (i = 0; i < __arraycount(rlimit); i++) {
112 (void)memset(&res, 0, sizeof(struct rlimit));
    [all...]
t_dup.c 170 struct rlimit res;
172 (void)memset(&res, 0, sizeof(struct rlimit));
236 struct rlimit res;
238 (void)memset(&res, 0, sizeof(struct rlimit));
283 struct rlimit res;
300 (void)memset(&res, 0, sizeof(struct rlimit));
t_revoke.c 56 struct rlimit res;
61 (void)memset(&res, 0, sizeof(struct rlimit));
t_wait.c 146 static const struct rlimit rl = { RLIM_INFINITY, RLIM_INFINITY };
183 static const struct rlimit rl = { 0, 0 };
249 static const struct rlimit rl = { 0, 0 };
t_clone.c 231 struct rlimit rl;
t_pipe2.c 127 struct rlimit rl;
  /src/sys/sys/
resource.h 126 /* 4.3BSD compatibility rlimit argument structure. */
133 struct rlimit { struct
149 int dosetrlimit(struct lwp *, struct proc *, int, struct rlimit *);
155 int getrlimit(int, struct rlimit *);
160 int setrlimit(int, const struct rlimit *);
resourcevar.h 81 struct rlimit pl_rlimit[RLIM_NLIMITS];
  /src/sys/compat/netbsd32/
netbsd32_rlimit.c 31 /* rlimit netbsd32 related code */
49 fixlimit(int which, struct rlimit *alim)
78 struct rlimit alim;
99 struct rlimit alim;
105 error = copyin(SCARG_P32(uap, rlp), &alim, sizeof(struct rlimit));
126 struct rlimit *rlim;
  /src/sys/compat/linux32/common/
linux32_resource.c 103 struct rlimit rl;
135 struct rlimit rl, nrl, orl;
136 struct rlimit *p;
  /src/tests/lib/libpthread/dlopen/
t_dso_pthread_create.c 69 struct rlimit rl;
  /src/tests/lib/libpthread/
t_siglongjmp.c 77 struct rlimit rlim;
t_sigmask.c 70 struct rlimit rlim;
  /src/sys/miscfs/procfs/
procfs_limit.c 92 struct rlimit rl[RLIM_NLIMITS];
135 struct rlimit rl, rlimits[RLIM_NLIMITS];
  /src/sys/compat/common/
kern_resource_43.c 100 struct rlimit lim;
  /src/tests/lib/libc/gen/
t_assert.c 49 struct rlimit limits;
t_arc4random.c 108 struct rlimit rlim, orlim;
357 struct rlimit rlim = {.rlim_cur = 0, .rlim_max = 0};
  /src/sys/external/bsd/compiler_rt/dist/lib/sanitizer_common/
sanitizer_posix_libcdep.cc 91 rlimit rlim;
97 struct rlimit rlim;
98 if (getrlimit(res, const_cast<struct rlimit *>(&rlim))) {
103 if (setrlimit(res, const_cast<struct rlimit *>(&rlim))) {
  /src/sys/kern/
kern_resource.c 107 struct rlimit *new_rlimit;
318 syscallarg(const struct rlimit *) rlp;
321 struct rlimit alim;
323 error = copyin(SCARG(uap, rlp), &alim, sizeof(struct rlimit));
331 dosetrlimit(struct lwp *l, struct proc *p, int which, struct rlimit *limp)
333 struct rlimit *alimp;
457 syscallarg(struct rlimit *) rlp;
461 struct rlimit rl;
691 sizeof(struct rlimit) * RLIM_NLIMITS);
1068 struct rlimit alim
    [all...]
  /src/bin/ksh/
c_ulimit.c 56 enum { RLIMIT, ULIMIT } which;
64 { "time(cpu-seconds)", RLIMIT, RLIMIT_CPU, RLIMIT_CPU, 1, 't' },
67 { "file(blocks)", RLIMIT, RLIMIT_FSIZE, RLIMIT_FSIZE, 512, 'f' },
80 { "coredump(blocks)", RLIMIT, RLIMIT_CORE, RLIMIT_CORE, 512, 'c' },
83 { "data(kbytes)", RLIMIT, RLIMIT_DATA, RLIMIT_DATA, 1024, 'd' },
86 { "stack(kbytes)", RLIMIT, RLIMIT_STACK, RLIMIT_STACK, 1024, 's' },
89 { "lockedmem(kbytes)", RLIMIT, RLIMIT_MEMLOCK, RLIMIT_MEMLOCK, 1024, 'l' },
92 { "memory(kbytes)", RLIMIT, RLIMIT_RSS, RLIMIT_RSS, 1024, 'm' },
95 { "nofiles(descriptors)", RLIMIT, RLIMIT_NOFILE, RLIMIT_NOFILE, 1, 'n' },
102 { "processes", RLIMIT, RLIMIT_NPROC, RLIMIT_NPROC, 1, 'p' }
    [all...]
  /src/sbin/cgdconfig/
argon2_utils.c 66 struct rlimit rlim;
  /src/sys/external/bsd/compiler_rt/dist/lib/safestack/
safestack.cc 73 /// size rlimit is set to infinity.
276 struct rlimit limit;
  /src/tests/fs/puffs/h_dtfs/
dtfs_vfsops.c 197 struct rlimit rlim;
207 * Use datasize rlimit as an _approximation_ for free size.
  /src/tests/lib/libc/regex/
t_exhaust.c 213 struct rlimit limit;

Completed in 19 milliseconds

1 2 3