]> git.sur5r.net Git - cc65/blob - include/fcntl.h
This commit was generated by cvs2svn to compensate for changes in r2,
[cc65] / include / fcntl.h
1 /*
2  * fcntl.h
3  *
4  * Ullrich von Bassewitz, 30.05.1998
5  *
6  */
7
8
9
10 #ifndef _FCNTL_H
11 #define _FCNTL_H
12
13
14
15 /* Flag values for the open() call */
16 #define O_RDONLY        0x01
17 #define O_WRONLY        0x02
18 #define O_RDWR          0x03
19 #define O_CREAT         0x10
20 #define O_TRUNC         0x20
21 #define O_APPEND        0x40
22
23
24
25 /* Functions */
26 int open (const char* name, int flags, ...);    /* May take a mode argument */
27 int close (int fd);
28 int write (int fd, const void* buf, unsigned count);
29 int read (int fd, void* buf, unsigned count);
30 int mkdir (const char* name, ...);              /* May take a mode argument */
31 int rmdir (const char* name);
32
33
34
35 /* End of fcntl.h */
36 #endif
37
38
39