summaryrefslogtreecommitdiff
path: root/src/include/skalibs/allreadwrite.h
blob: 6b2a0cf5bb67c51fa826114be718037b97ac05ff (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
/* ISC license. */

#ifndef ALLREADWRITE_H
#define ALLREADWRITE_H

#include <sys/types.h>
#include <sys/uio.h>
#include <skalibs/functypes.h>

extern int sanitize_read (int) ;
extern int unsanitize_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) ;

extern int fd_readv (int, struct iovec const *, unsigned int) ;
extern int fd_writev (int, struct iovec const *, unsigned int) ;

#endif