| 1 | /*! \file structcmd.h |
| 2 | \brief A Documented file. |
| 3 | |
| 4 | Details. |
| 5 | */ |
| 6 | |
| 7 | /*! \def MAX_NUMBER(a,b) |
| 8 | \brief A macro that returns the maximum of \a a and \a b. |
| 9 | |
| 10 | Details. |
| 11 | */ |
| 12 | |
| 13 | /*! \var typedef unsigned int UINT32 |
| 14 | \brief A type definition for a . |
| 15 | |
| 16 | Details. |
| 17 | */ |
| 18 | |
| 19 | /*! \var int errno |
| 20 | \brief Contains the last error code. |
| 21 | |
| 22 | \warning Not thread safe! |
| 23 | */ |
| 24 | |
| 25 | /*! \fn int open(const char *pathname,int flags) |
| 26 | \brief Opens a file descriptor. |
| 27 | |
| 28 | Detailed description. |
| 29 | |
| 30 | \param pathname The name of the descriptor. |
| 31 | \param flags Opening flags. |
| 32 | */ |
| 33 | |
| 34 | /*! \fn int close(int fd) |
| 35 | \brief Closes the file descriptor \a fd. |
| 36 | \param fd The descriptor to close. |
| 37 | */ |
| 38 | |
| 39 | /*! \fn size_t write(int fd,const char *buf, size_t count) |
| 40 | \brief Writes \a count bytes from \a buf to the file descriptor \a fd. |
| 41 | \param fd The descriptor to write to. |
| 42 | \param buf The data buffer to write. |
| 43 | \param count The number of bytes to write. |
| 44 | */ |
| 45 | |
| 46 | /*! \fn int read(int fd,char *buf,size_t count) |
| 47 | \brief Read bytes from a file descriptor. |
| 48 | \param fd The descriptor to read from. |
| 49 | \param buf The buffer to read into. |
| 50 | \param count The number of bytes to read. |
| 51 | */ |
| 52 | |
| 53 | #define MAX_NUMBER(a,b) (((a)>(b))?(a):(b)) |
| 54 | typedef unsigned int UINT32; |
| 55 | int errno; |
| 56 | int open(const char *,int); |
| 57 | int close(int); |
| 58 | size_t write(int,const char *, size_t); |
| 59 | int read(int,char *,size_t); |