summaryrefslogtreecommitdiff
path: root/open_append.c
diff options
context:
space:
mode:
Diffstat (limited to 'open_append.c')
-rw-r--r--open_append.c8
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
7int open_append(const char *fn)
8{ return open(fn,O_WRONLY | O_NDELAY | O_APPEND | O_CREAT,0600); }