diff options
Diffstat (limited to 'ucspi-tcp-0.88/open_trunc.c')
-rw-r--r-- | ucspi-tcp-0.88/open_trunc.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/ucspi-tcp-0.88/open_trunc.c b/ucspi-tcp-0.88/open_trunc.c new file mode 100644 index 0000000..77b99ef --- /dev/null +++ b/ucspi-tcp-0.88/open_trunc.c @@ -0,0 +1,6 @@ +#include <sys/types.h> +#include <fcntl.h> +#include "open.h" + +int open_trunc(char *fn) +{ return open(fn,O_WRONLY | O_NDELAY | O_TRUNC | O_CREAT,0644); } |