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.