Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- [arekm@t400 ~/test]$ cat b.c
- #include <stdio.h>
- #include <sys/time.h>
- #include <sys/resource.h>
- #include <stdlib.h>
- int main() {
- struct rlimit r;
- r.rlim_cur = 11000000000;
- r.rlim_max = 11500000000;
- printf("%ld\n", atol("11000000000"));
- setrlimit(RLIMIT_AS, &r);
- }
- [arekm@t400 ~/test]$ gcc b.c
- [arekm@t400 ~/test]$ strace -f -F -s 200 ./a.out 2>&1 |grep RLIMIT_AS
- setrlimit(RLIMIT_AS, {rlim_cur=11000000000, rlim_max=11500000000}) = 0
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement