X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~ian/git?p=chiark-utils.git;a=blobdiff_plain;f=cprogs%2Frwbuffer.h;h=1cab7959e937db5e9e069d4517043ba89f37bc8e;hp=3684c397ff5f0d880950e2b4e0fbb56eaf19201e;hb=a1706a81f2118c0a1d08cb54d9f4ef2b5932e4e1;hpb=737b84851cd8b3dd1d9f1920201127eac693dffb diff --git a/cprogs/rwbuffer.h b/cprogs/rwbuffer.h index 3684c39..1cab795 100644 --- a/cprogs/rwbuffer.h +++ b/cprogs/rwbuffer.h @@ -30,16 +30,47 @@ #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*/