Home | History | Annotate | Download | only in tests

Lines Matching refs:setrlimit

25    if (setrlimit(RLIMIT_NOFILE, &newrlim) == -1)
28 fprintf(stderr, "setrlimit exceeding hardlimit must set errno=EINVAL\n");
34 fprintf(stderr, "setrlimit exceeding hardlimit must return -1\n");
40 if (setrlimit(RLIMIT_NOFILE, &newrlim) == -1)
43 fprintf(stderr, "setrlimit changing hardlimit must set errno=EPERM\n");
49 fprintf(stderr, "setrlimit changing hardlimit must return -1\n");
56 if (setrlimit(RLIMIT_NOFILE, &newrlim) < 0)
58 perror("setrlimit");
101 if (setrlimit(RLIMIT_NOFILE, NULL) != -1 || errno != EFAULT)
103 fprintf(stderr, "setrlimit non addressable arg2 must set errno=EFAULT\n");