diff options
Diffstat (limited to 'open_excl.c')
| -rw-r--r-- | open_excl.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/open_excl.c b/open_excl.c new file mode 100644 index 0000000..887e7c8 --- /dev/null +++ b/open_excl.c | |||
| @@ -0,0 +1,6 @@ | |||
| 1 | #include <sys/types.h> | ||
| 2 | #include <fcntl.h> | ||
| 3 | #include "open.h" | ||
| 4 | |||
| 5 | int open_excl(fn) char *fn; | ||
| 6 | { return open(fn,O_WRONLY | O_EXCL | O_CREAT,0644); } | ||
