next up previous contents
Next: Error handling Up: The C++ API Previous: Destructor   Contents

Reading and writing cyclic logs

int read(char* buffer, int buflen);

int write(const char* buffer, int buflen);
read reads a block of bytes from the cyclic log. The return value is the number of bytes read. -1 is returned in the event of an error (errno will then be set).

write writes a block of bytes to the cyclic log. The return value is the number of bytes written.



Andrew Marlow 2004-01-01