~ubuntu-branches/ubuntu/trusty/pure-ftpd/trusty

1.2.8 by Stefan Hornburg (Racke)
Import upstream version 1.0.35
1
#ifndef __SAFE_RW_H__
2
#define __SAFE_RW_H__ 1
3
4
#include <sys/types.h>
5
6
ssize_t safe_write(const int fd, const void * const buf_, size_t count,
7
                   const int timeout);
8
9
ssize_t safe_read(const int fd, void * const buf_, size_t count);
10
11
ssize_t safe_read_partial(const int fd, void * const buf_,
12
                          const size_t max_count);
13
14
#endif
15