summaryrefslogtreecommitdiff
path: root/ucspi-tcp-0.88/open_write.c
diff options
context:
space:
mode:
Diffstat (limited to 'ucspi-tcp-0.88/open_write.c')
-rw-r--r--ucspi-tcp-0.88/open_write.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/ucspi-tcp-0.88/open_write.c b/ucspi-tcp-0.88/open_write.c
new file mode 100644
index 0000000..531b8fe
--- /dev/null
+++ b/ucspi-tcp-0.88/open_write.c
@@ -0,0 +1,6 @@
+#include <sys/types.h>
+#include <fcntl.h>
+#include "open.h"
+
+int open_write(char *fn)
+{ return open(fn,O_WRONLY | O_NDELAY); }