1 // Small test program to demonstrate Valgrind bug.
2 // https://bugs.kde.org/show_bug.cgi?id=191761
3 // Author: rohitrao@google.com
5 // Before the fix, it was printing 266. Now it prints 256.
8 #include <sys/resource.h>
13 getrlimit(RLIMIT_NOFILE
, &rlp
);
14 fprintf(stderr
, "RLIMIT_NOFILE is %lld\n", (long long)rlp
.rlim_cur
);