Advertisement
Guest User

Untitled

a guest
Jul 27th, 2017
61
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.46 KB | None | 0 0
  1. [arekm@t400 ~/test]$ cat b.c
  2. #include <stdio.h>
  3. #include <sys/time.h>
  4. #include <sys/resource.h>
  5. #include <stdlib.h>
  6.  
  7. int main() {
  8. struct rlimit r;
  9. r.rlim_cur = 11000000000;
  10. r.rlim_max = 11500000000;
  11. printf("%ld\n", atol("11000000000"));
  12. setrlimit(RLIMIT_AS, &r);
  13. }
  14. [arekm@t400 ~/test]$ gcc b.c
  15. [arekm@t400 ~/test]$ strace -f -F -s 200 ./a.out 2>&1 |grep RLIMIT_AS
  16. setrlimit(RLIMIT_AS, {rlim_cur=11000000000, rlim_max=11500000000}) = 0
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement