/usr/include/skalibs/iobuffer.h is in skalibs-dev 0.47-1.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 | /* Public domain. */
#ifndef IOBUFFER_H
#define IOBUFFER_H
#include "buffer.h"
typedef struct iobuffer iobuffer, *iobuffer_ref ;
struct iobuffer
{
buffer in ;
buffer out ;
} ;
#define IOBUFFER_INIT(fdin, fdout, buf, len) {BUFFER_INIT(&buffer_unixread, (fdin), (buf), (len)), BUFFER_INIT(&buffer_unixwrite, (fdout), (buf), (len))}
extern void iobuffer_init (iobuffer_ref, int, int, char *, unsigned int) ;
extern int iobuffer_fill (iobuffer_ref) ;
extern int iobuffer_flush (iobuffer_ref) ;
#define iobuffer_len(b) buffer_len(&(b)->in)
#define iobuffer_isempty(b) buffer_isempty(&(b)->in)
#define iobuffer_available(b) buffer_available(&(b)->out)
#define iobuffer_isfull(b) buffer_isfull(&(b)->out)
#endif
|