1 #include "config.h" 2 #ifdef HAVE_UNISTD_H 3 #include <unistd.h> 4 #endif 5 #include <sys/types.h> 6 #include <sys/stat.h> 7 #ifdef HAVE_FCNTL_H 8 #include <fcntl.h> 9 #endif 10 11 #define RDWRMODE (O_RDWR) 12 #define RDMODE (O_RDONLY) 13 14 15 int doread(int handle,void * buf,ssize_t len, const char * name); 16 int dowrite(int handle, const void * buf, ssize_t len,const char *name,const char *name2=""); 17 int doopen(int &handle,const char * name,int access,int mode=0); 18 19 20 #ifndef HAVE_STRERROR 21 const char * strerror(int err); 22 #endif 23