FreeBSD: add file descriptor tracking for _umtx_op
[valgrind.git] / none / tests / darwin / rlimit.c
blobac5ac8248ac94d03717e7785646d347cf730d301
1 // Small test program to demonstrate Valgrind bug.
2 // https://bugs.kde.org/show_bug.cgi?id=191761
3 // Author: rohitrao@google.com
4 //
5 // Before the fix, it was printing 266. Now it prints 256.
7 #include <stdio.h>
8 #include <sys/resource.h>
10 int main(void)
12 struct rlimit rlp;
13 getrlimit(RLIMIT_NOFILE, &rlp);
14 fprintf(stderr, "RLIMIT_NOFILE is %lld\n", (long long)rlp.rlim_cur);
15 return 0;