fehQlibs 26
Qlibs
Loading...
Searching...
No Matches
open.c
Go to the documentation of this file.
1#include <sys/types.h>
2#include <fcntl.h>
3#include "open.h"
4
12int open_append(const char *fn)
13{ return open(fn,O_WRONLY | O_NDELAY | O_APPEND | O_CREAT,0600); }
14
15int open_excl(const char *fn)
16{ return open(fn,O_WRONLY | O_EXCL | O_CREAT,0644); }
17
18int open_read(const char *fn)
19{ return open(fn,O_RDONLY | O_NDELAY); }
20
21int open_trunc(const char *fn)
22{ return open(fn,O_WRONLY | O_NDELAY | O_TRUNC | O_CREAT,0644); }
23
24int open_write(const char *fn)
25{ return open(fn,O_WRONLY | O_NDELAY); }
int open_excl(const char *fn)
Definition: open.c:15
int open_write(const char *fn)
Definition: open.c:24
int open_append(const char *fn)
Definition: open.c:12
int open_read(const char *fn)
Definition: open.c:18
int open_trunc(const char *fn)
Definition: open.c:21