dnscrypto-proxy: Update to release 1.3.0
[tomato.git] / release / src / router / dnscrypt / src / proxy / safe_rw.h
blob2f54c88314fc6a8c570b96df0c5f14ab51192af1
2 #ifndef __SAFE_RW_H__
3 #define __SAFE_RW_H__ 1
5 #include <sys/types.h>
7 ssize_t safe_write(const int fd, const void * const buf_, size_t count,
8 const int timeout);
10 ssize_t safe_read(const int fd, void * const buf_, size_t count);
12 ssize_t safe_read_partial(const int fd, void * const buf_,
13 const size_t max_count);
15 #endif