X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~ian/git?p=chiark-utils.git;a=blobdiff_plain;f=cprogs%2Frwbuffer.h;h=f49b30b874c37b7ddf84110898f7aab95557edb9;hp=3684c397ff5f0d880950e2b4e0fbb56eaf19201e;hb=b075ddbfbdbf7d15d9f0c43d7316533cf9ed6229;hpb=737b84851cd8b3dd1d9f1920201127eac693dffb diff --git a/cprogs/rwbuffer.h b/cprogs/rwbuffer.h index 3684c39..f49b30b 100644 --- a/cprogs/rwbuffer.h +++ b/cprogs/rwbuffer.h @@ -13,7 +13,7 @@ * * This is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as - * published by the Free Software Foundation; either version 2, + * published by the Free Software Foundation; either version 3, * or (at your option) any later version. * * This is distributed in the hope that it will be useful, but @@ -22,24 +22,56 @@ * GNU General Public License for more details. * * You should have received a copy of the GNU General Public - * License along with this file; if not, write to the Free Software - * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. + * License along with this file; if not, consult the Free Software + * Foundation's website at www.fsf.org, or the GNU Project website at + * www.gnu.org. * */ #ifndef RWBUFFER_H #define RWBUFFER_H +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include + +#include "dlist.h" + + int min(int a, int b); void callselect(void); void startup(const char *const *argv); +void startupcore(void); +void *xmalloc(size_t sz); +void nonblock(int fd, int yesno); extern const char *progname; /* must be defined by main .c file */ extern unsigned char *buf, *wp, *rp; -extern int used, seeneof; +extern int used, seeneof, maxselfd; extern size_t buffersize; extern fd_set readfds; extern fd_set writefds; + +void wrbufcore_startup(void); +void wrbufcore_prepselect(int rdfd, int wrfd); +void wrbufcore_afterselect(int rdfd, int wrfd); +void fdsetset(int fd, fd_set *set); +void wrbuf_report(const char *m); + + #endif /*RWBUFFER_H*/