Low Level I/O
[C Runtime Library.]


Detailed Description

Low level input and output operations.

 #include <io.h> 

Standard C runtime file interface to Nut/OS devices.


Defines

#define _O_APPEND   0x0008
#define _O_BINARY   0x8000
#define _O_CREAT   0x0100
#define _O_EXCL   0x0400
#define _O_RDONLY   0x0000
#define _O_RDWR   0x0002
#define _O_TEXT   0x4000
#define _O_TRUNC   0x0200
#define _O_WRONLY   0x0001
#define IOCTL_FLUSHOUTBUF   0x0009
 Flush the output buffer.
#define IOCTL_GETBUFFERMODE   0x0004
#define IOCTL_GETFILESIZE   0x000A
 Return the number of bytes currently available in the input buffer.
#define IOCTL_GETINBUFCOUNT   0x000C
 Return the number of bytes currently available in the output buffer.
#define IOCTL_GETINBUFSIZE   0x0007
#define IOCTL_GETOUTBUFCOUNT   0x000B
 Return the number of bytes currently available in the input buffer.
#define IOCTL_GETOUTBUFSIZE   0x0005
#define IOCTL_GETSTATUS   0x0001
#define IOCTL_SETBUFFERMODE   0x0003
#define IOCTL_SETINBUFSIZE   0x0008
#define IOCTL_SETOUTBUFSIZE   0x0006
#define IOCTL_SETSTATUS   0x0002


Define Documentation

#define _O_APPEND   0x0008

Start writing at the end.

#define _O_BINARY   0x8000

Raw mode.

#define _O_CREAT   0x0100

Create file if it does not exist.

#define _O_EXCL   0x0400

Open only if it does not exist.

#define _O_RDONLY   0x0000

Read only.

#define _O_RDWR   0x0002

Read and write.

#define _O_TEXT   0x4000

EOL translation.

#define _O_TRUNC   0x0200

Truncate file if it exists.

#define _O_WRONLY   0x0001

Write only.

#define IOCTL_FLUSHOUTBUF   0x0009

Flush the output buffer.

Currently not provided by any known device.


Generated on Wed Apr 29 11:12:31 2009 for BTnut System Software by doxygen 1.5.1
!!! Dieses Dokument stammt aus dem ETH Web-Archiv und wird nicht mehr gepflegt !!!
!!! This document is stored in the ETH Web archive and is no longer maintained !!!