summary refs log tree commit diff
path: root/src/open_trunc.c
blob: 6e0c4c2d86ee4d54a2ffb66528279105f58e68a6 (plain) (blame)
1
2
3
4
5
6
7
8
/* Public domain. */

#include <sys/types.h>
#include <fcntl.h>
#include "open.h"

int open_trunc(const char *fn)
{ return open(fn,O_WRONLY | O_NDELAY | O_TRUNC | O_CREAT,0644); }