This commit was generated by cvs2svn to compensate for changes in r2,
which included commits to RCS files with non-trunk default branches. git-svn-id: svn://svn.cc65.org/cc65/trunk@3 b7a2c559-68d2-44c3-8de9-860c34a00d81
This commit is contained in:
39
include/fcntl.h
Normal file
39
include/fcntl.h
Normal file
@@ -0,0 +1,39 @@
|
||||
/*
|
||||
* fcntl.h
|
||||
*
|
||||
* Ullrich von Bassewitz, 30.05.1998
|
||||
*
|
||||
*/
|
||||
|
||||
|
||||
|
||||
#ifndef _FCNTL_H
|
||||
#define _FCNTL_H
|
||||
|
||||
|
||||
|
||||
/* Flag values for the open() call */
|
||||
#define O_RDONLY 0x01
|
||||
#define O_WRONLY 0x02
|
||||
#define O_RDWR 0x03
|
||||
#define O_CREAT 0x10
|
||||
#define O_TRUNC 0x20
|
||||
#define O_APPEND 0x40
|
||||
|
||||
|
||||
|
||||
/* Functions */
|
||||
int open (const char* name, int flags, ...); /* May take a mode argument */
|
||||
int close (int fd);
|
||||
int write (int fd, const void* buf, unsigned count);
|
||||
int read (int fd, void* buf, unsigned count);
|
||||
int mkdir (const char* name, ...); /* May take a mode argument */
|
||||
int rmdir (const char* name);
|
||||
|
||||
|
||||
|
||||
/* End of fcntl.h */
|
||||
#endif
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user