Functions | |
int | _close (int fd) |
Close a file, device or socket. | |
long | _filelength (int fd) |
Return the length of a file. | |
int | _ioctl (int fd, int cmd, void *buffer) |
Perform device specific control functions. | |
int | _open (CONST char *name, int mode) |
Open a file. | |
int | _read (int fd, void *buffer, unsigned int count) |
Read data from a file, device or socket. | |
int | _write (int fd, CONST void *buffer, unsigned int count) |
Write data to a file, device or socket. | |
int | _write_P (int fd, PGM_P buffer, unsigned int count) |
Writes data from program space to a file, device or socket. |
#include <io.h>
Standard C runtime file interface to Nut/OS devices.
|
Close a file, device or socket. The calling thread may be suspended until all buffered output data has been written.
|
|
Return the length of a file.
|
|
Perform device specific control functions.
|
|
Open a file.
|
|
Read data from a file, device or socket.
|
|
Write data to a file, device or socket.
|
|
Writes data from program space to a file, device or socket. Similar to _write() except that the data is located in program memory.
|