diff options
author | joe <joe@jerkface.net> | 2015-05-08 23:07:47 -0400 |
---|---|---|
committer | joe <joe@jerkface.net> | 2015-05-08 23:07:47 -0400 |
commit | 220534453eecc2c07ad710d72268aafd20b83138 (patch) | |
tree | 469bd5db135e31b7ea908152aa3389b9b1e06d5b /open_append.c |
initial commit
Diffstat (limited to 'open_append.c')
-rw-r--r-- | open_append.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/open_append.c b/open_append.c new file mode 100644 index 0000000..d1b241b --- /dev/null +++ b/open_append.c | |||
@@ -0,0 +1,8 @@ | |||
1 | /* Public domain. */ | ||
2 | |||
3 | #include <sys/types.h> | ||
4 | #include <fcntl.h> | ||
5 | #include "open.h" | ||
6 | |||
7 | int open_append(const char *fn) | ||
8 | { return open(fn,O_WRONLY | O_NDELAY | O_APPEND | O_CREAT,0600); } | ||