1 /* creat() "system call" (copied from libc/posix/creat.c) */ 2 3 #include <fcntl.h> 4 5 int creat(const char * path,mode_t mode)6 creat (const char *path, mode_t mode) 7 { 8 return open (path, O_WRONLY | O_CREAT | O_TRUNC, mode); 9 } 10