You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

13 lines
325 B

9 years ago
#include "readwrite.h"
#include "buffer.h"
ssize_t buffer_0_read(int32_t fd,char *buf,int32_t len)
{
if (buffer_flush(buffer_1) == -1) return -1;
return read(fd,buf,len);
}
char buffer_0_space[BUFFER_INSIZE];
static buffer it = BUFFER_INIT(buffer_0_read,0,buffer_0_space,sizeof buffer_0_space);
buffer *buffer_0 = ⁢