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