Mirror of :pserver:cvs@cvs.fefe.de:/cvs libowfat https://www.fefe.de/libowfat/
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
315 B

  1. #include <unistd.h>
  2. #include "buffer.h"
  3. static int b0read(int fd,char* buf, unsigned int len) {
  4. if (buffer_flush(buffer_1small)<0) return -1;
  5. return read(fd,buf,len);
  6. }
  7. char buffer_0_space[128];
  8. static buffer it = BUFFER_INIT_READ(b0read,0,buffer_0_space,sizeof buffer_0_space);
  9. buffer *buffer_0small = &it;