mc_translate.c: enable further uses of DLexpensive for scalar EQ/NE comparisons
[valgrind.git] / none / tests / closeall.c
blobfacf6a580c2974946d2ef58563b2d4cbc7a3113b
1 #include <stdio.h>
2 #include <stdlib.h>
3 #include <sys/resource.h>
4 #include <unistd.h>
6 int main(int argc, char **argv)
8 struct rlimit lim;
9 int fd;
11 getrlimit(RLIMIT_NOFILE, &lim);
13 for ( fd = 3; fd < lim.rlim_cur; fd++ )
14 close( fd );
16 exit( 0 );