HomeSort by: relevance | last modified time | path
    Searched defs:rlimit (Results 1 - 3 of 3) sorted by relevancy

  /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...]
  /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 *);

Completed in 13 milliseconds