summaryrefslogtreecommitdiff
path: root/open_trunc.c
blob: 77b99ef1f5dcc888e04fe06ad7c6da1e728f55ca (plain)
1
2
3
4
5
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); }