odds and sods
[tridge/junkcode.git] / open.c
1 #include <stdlib.h>
2 #include <fcntl.h>
3
4 int main()
5 {
6         int i;
7
8         for (i=0; ; i++)
9                 if (open("/dev/null", O_RDONLY) == -1) break;
10
11         printf("opened %d files\n", i);
12         sleep(100);
13 }