4 * Copyright (c) 2008 James McKenzie <james@fishsoup.dhs.org>,
9 static char rcsid[] = "$Id$";
13 * Revision 1.1 2008/02/08 15:06:42 james
14 * *** empty log message ***
20 int ring_read(Ring *r,void *b,int n)
26 if (!ring_read_one(r,b))
36 int ring_write(Ring *r,void *b,int n)
42 if (!ring_write_one(r,b))
56 Ring *ret=(Ring *)malloc(sizeof(Ring));
57 ret->buf=(uint8_t *)malloc(n);
59 ret->wptr=ret->rptr=0;