mirror of
https://github.com/Zenithsiz/ftmemsim-valgrind.git
synced 2026-02-03 18:13:01 +00:00
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
18 lines
401 B
C
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;
|
|
}
|
|
|