libowfat/open/open_append.c

12 lines
209 B
C
Raw Normal View History

2001-02-02 17:54:47 +00:00
#include <unistd.h>
2003-10-10 17:13:38 +00:00
#include <fcntl.h>
2001-02-02 17:54:47 +00:00
#include "open.h"
#ifndef O_NDELAY
#define O_NDELAY 0
#endif
int open_append(const char *filename) {
2001-02-02 17:54:47 +00:00
return open(filename,O_WRONLY|O_NDELAY|O_APPEND|O_CREAT,0600);
}