Paul Floyd 53dd9bd255 FreeBSD support, patch 9
cachegrind callgrind dhat exp-bbv gdbserver_tests massif none mpi shared

Mostly these are just updates (and new testcases) under new/tests
The other directories have just #ifdef changes
2021-10-07 22:41:22 +02:00

20 lines
309 B
C

#include <stdio.h>
#include <stdlib.h>
#include <sys/types.h>
#include <sys/time.h>
#include <sys/resource.h>
#include <unistd.h>
int main(int argc, char **argv)
{
struct rlimit lim;
int fd;
getrlimit(RLIMIT_NOFILE, &lim);
for ( fd = 3; fd < lim.rlim_cur; fd++ )
close( fd );
exit( 0 );
}