runit

Unnamed repository; edit this file 'description' to name the repository.
Log | Files | Refs | README

buffer.c (190B)


      1 /* Public domain. */
      2 
      3 #include "buffer.h"
      4 
      5 void buffer_init(buffer *s,buffer_op op,int fd,char *buf,unsigned int len)
      6 {
      7   s->x = buf;
      8   s->fd = fd;
      9   s->op = op;
     10   s->p = 0;
     11   s->n = len;
     12 }