Macros | Typedefs | Functions | Variables
structcmd.h File Reference

A Documented file. More...

Go to the source code of this file.

Macros

#define MAX(a, b)   (((a)>(b))?(a):(b))
 A macro that returns the maximum of a and b. More...
 

Typedefs

typedef unsigned int UINT32
 A type definition for a . More...
 

Functions

int open (const char *, int)
 Opens a file descriptor. More...
 
int close (int)
 Closes the file descriptor fd. More...
 
size_t write (int, const char *, size_t)
 Writes count bytes from buf to the filedescriptor fd. More...
 
int read (int, char *, size_t)
 Read bytes from a file descriptor. More...
 

Variables

int errno
 Contains the last error code. More...
 

Detailed Description

A Documented file.

Details.

Definition in file structcmd.h.

Macro Definition Documentation

#define MAX (   a,
  b 
)    (((a)>(b))?(a):(b))

A macro that returns the maximum of a and b.

Details.

Definition at line 51 of file structcmd.h.

Typedef Documentation

typedef unsigned int UINT32

A type definition for a .

Details.

Definition at line 52 of file structcmd.h.

Function Documentation

int close ( int  fd)

Closes the file descriptor fd.

Parameters
fdThe descriptor to close.
int open ( const char *  pathname,
int  flags 
)

Opens a file descriptor.

Parameters
pathnameThe name of the descriptor.
flagsOpening flags.
int read ( int  fd,
char *  buf,
size_t  count 
)

Read bytes from a file descriptor.

Parameters
fdThe descriptor to read from.
bufThe buffer to read into.
countThe number of bytes to read.
size_t write ( int  fd,
const char *  buf,
size_t  count 
)

Writes count bytes from buf to the filedescriptor fd.

Parameters
fdThe descriptor to write to.
bufThe data buffer to write.
countThe number of bytes to write.

Variable Documentation

int errno

Contains the last error code.

Warning
Not thread safe!

Definition at line 53 of file structcmd.h.