Go to the source code of this file.
|
#define | O_RDONLY 0 |
|
#define | O_WRONLY 1 |
|
#define | O_RDWR 2 |
|
#define | O_CREAT 0x0200 |
|
#define | O_EXCL 0x0800 |
|
#define | O_NONBLOCK 00004000 |
|
|
int | open (const char *pathname, int flags) |
| Open the file specified by the pathname. More...
|
|
◆ open()
int open |
( |
const char * |
pathname, |
|
|
int |
flags |
|
) |
| |
Open the file specified by the pathname.
- Parameters
-
pathname | The pathname of the file. |
flags | Flags for opening the file. |
- Return values
-
int | The function returns file descriptor number of the file on success and nonzero error number on error. |