Files
mosh/third/libstddjb/allreadwrite.h
T
Quentin Smith 77f3a9073f Import selfpipe code from skalibs 1.2.5
[andersk@mit.edu: Move code to new third/libstddjb directory]
2012-03-07 03:05:37 -05:00

26 lines
737 B
C

/* ISC license. */
#ifndef ALLREADWRITE_H
#define ALLREADWRITE_H
typedef int iofunc_t (int, char *, unsigned int) ;
typedef iofunc_t *iofunc_t_ref ;
typedef unsigned int alliofunc_t (int, char *, unsigned int) ;
typedef alliofunc_t *alliofunc_t_ref ;
extern int sanitize_read (int) ;
extern unsigned int allreadwrite (iofunc_t_ref, int, char *, unsigned int) ;
extern int fd_read (int, char *, unsigned int) ;
extern int fd_write (int, char const *, unsigned int) ;
extern int fd_recv (int, char *, unsigned int, unsigned int) ;
extern int fd_send (int, char const *, unsigned int, unsigned int) ;
extern unsigned int allread (int, char *, unsigned int) ;
extern unsigned int allwrite (int, char const *, unsigned int) ;
#endif