libusual  0.1
Functions
usual/safeio.h File Reference

EINTR-safe I/O functions. More...

Functions

int safe_read (int fd, void *buf, int len) _MUSTCHECK
 read
int safe_write (int fd, const void *buf, int len) _MUSTCHECK
 write
int safe_recv (int fd, void *buf, int len, int flags) _MUSTCHECK
 recv
int safe_send (int fd, const void *buf, int len, int flags) _MUSTCHECK
 send
int safe_close (int fd)
 close
int safe_recvmsg (int fd, struct msghdr *msg, int flags) _MUSTCHECK
 recvmsg
int safe_sendmsg (int fd, const struct msghdr *msg, int flags) _MUSTCHECK
 sendmsg
int safe_connect (int fd, const struct sockaddr *sa, socklen_t sa_len) _MUSTCHECK
 connect
int safe_accept (int fd, struct sockaddr *sa, socklen_t *sa_len) _MUSTCHECK
 accept

Detailed Description

EINTR-safe I/O functions.


Function Documentation

int safe_read ( int  fd,
void *  buf,
int  len 
)

read

int safe_write ( int  fd,
const void *  buf,
int  len 
)

write

int safe_recv ( int  fd,
void *  buf,
int  len,
int  flags 
)

recv

int safe_send ( int  fd,
const void *  buf,
int  len,
int  flags 
)

send

int safe_close ( int  fd)

close

int safe_recvmsg ( int  fd,
struct msghdr *  msg,
int  flags 
)

recvmsg

int safe_sendmsg ( int  fd,
const struct msghdr *  msg,
int  flags 
)

sendmsg

int safe_connect ( int  fd,
const struct sockaddr *  sa,
socklen_t  sa_len 
)

connect

int safe_accept ( int  fd,
struct sockaddr *  sa,
socklen_t *  sa_len 
)

accept