libowfat/open/open_excl.c
leitner 82a4ae868d broken lose32 port using mingw (don't use!!!)
initial Solaris /dev/poll port
2003-11-06 20:47:59 +00:00

12 lines
213 B
C

#include <unistd.h>
#include <fcntl.h>
#include "open.h"
#ifndef O_NDELAY
#define O_NDELAY 0
#endif
int open_excl(const char *filename) {
return open(filename,O_WRONLY|O_NDELAY|O_TRUNC|O_CREAT|O_EXCL,0600);
}