Next: close
Up: open and close
Previous: open and close
- SYNOPSIS
int open( const char *pathname, int flags);
- DESCRIPTION
The open() is used to get a file descriptor
by passing pathname. The file descriptor will be used
for such as read and write system calls. The pathname
will be defined as " /dev/ppci0", " /dev/ppci1",
" /dev/ppci2"
and " /dev/ppci3". The flag is one of O_RDONLY,
O_WRONLY or O_RDWR while O_RDWR is
usually used and means
that the device can be read and written.
- RETURN VALUE
open() returns the new file descriptor, or -1 if an
error occurred, in which case, errno is set appropriately.
- ERRORS
Yoshiji Yasu
2002年08月06日 18時03分20秒