chiark / gitweb /
working on trivsoundd
[chiark-utils.git] / cprogs / rwbuffer.h
index 3684c397ff5f0d880950e2b4e0fbb56eaf19201e..fe308c18a6fa3f3de5a9a01364900839c261ee3c 100644 (file)
 #ifndef RWBUFFER_H
 #define RWBUFFER_H
 
+#include <sys/time.h>
+#include <sys/types.h>
+#include <unistd.h>
+#include <fcntl.h>
+#include <stdio.h>
+#include <assert.h>
+#include <ctype.h>
+#include <stdlib.h>
+#include <errno.h>
+#include <time.h>
+#include <sys/mman.h>
+#include <sys/socket.h>
+
+#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 */
 
@@ -42,4 +61,10 @@ 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);
+
+
 #endif /*RWBUFFER_H*/