#include #include int main (int argc, char *argv[]) { if (create ("test", 1)) { printf ("created file\n"); } else { printf ("couldn't create file\n"); } int fd = open ("test"); printf ("opened file with fd %d\n", fd); int fd2 = open ("test"); printf ("opened file with fd %d\n", fd2); int fd3 = open ("test"); printf ("opened file with fd %d\n", fd3); halt (); }