MentOS
0.8.0
The Mentoring Operating System
|
Functions | |
int | sys_open (const char *pathname, int flags, mode_t mode) |
Given a pathname for a file, open() returns a file descriptor, a small, nonnegative integer for use in subsequent system calls. More... | |
int | sys_close (int fd) |
int sys_close | ( | int | fd | ) |
fd |
int sys_open | ( | const char * | pathname, |
int | flags, | ||
mode_t | mode | ||
) |
Given a pathname for a file, open() returns a file descriptor, a small, nonnegative integer for use in subsequent system calls.
pathname | A pathname for a file. |
flags | Used to set the file status flags and file access modes of the open file description. |
mode | Specifies the file mode bits be applied when a new file is created. |