Nicholas Nethercote 07045477ca Merge the DARWIN branch onto the trunk.
I tried using 'svn merge' to do the merge but it did a terrible job and
there were bazillions of conflicts.  So instead I just took the diff between
the branch and trunk  at r10155, applied the diff to the trunk, 'svn add'ed
the added files (no files needed to be 'svn remove'd) and committed.


git-svn-id: svn://svn.valgrind.org/valgrind/trunk@10156
2009-05-28 01:53:07 +00:00

18 lines
401 B
C

// Small test program to demonstrate Valgrind bug.
// https://bugs.kde.org/show_bug.cgi?id=191761
// Author: rohitrao@google.com
//
// Before the fix, it was printing 266. Now it prints 256.
#include <stdio.h>
#include <sys/resource.h>
int main(void)
{
struct rlimit rlp;
getrlimit(RLIMIT_NOFILE, &rlp);
fprintf(stderr, "RLIMIT_NOFILE is %lld\n", (long long)rlp.rlim_cur);
return 0;
}