open_excl.c
changeset 0 c045670f36e9
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/open_excl.c	Thu Nov 01 14:46:11 2007 +0100
@@ -0,0 +1,6 @@
+#include <sys/types.h>
+#include <fcntl.h>
+#include "open.h"
+
+int open_excl(fn) char *fn;
+{ return open(fn,O_WRONLY | O_EXCL | O_CREAT,0644); }