|
sc68fordevelopers
2.2.1
|
file descriptor stream operation. More...
#include "file68/istream68.h"Go to the source code of this file.
Functions | |
| istream_t * | istream_fd_create (const char *fname, int fd, int mode) |
| Creates a stream for "UNIX" file descriptor. | |
file descriptor stream operation.
isteam68_fd implements istream_t for file descriptor.
| istream_t* istream_fd_create | ( | const char * | fname, |
| int | fd, | ||
| int | mode | ||
| ) |
Creates a stream for "UNIX" file descriptor.
If fd parameters is not -1, it is used to as file descriptor for the stream and fname is used for naming the stream. Else the file is open as a regular file with fname as path.
| fname | path of file or 0. |
| fd | file decriptor or -1. |
| mode | bit-0: read access, bit-1: write access. |
| 0 | on error |
1.7.5.1