blob: 31f4aa61b1b59f8e37cedc203a4fe87e342af17b (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
|
#ifndef safe_rw_H
#define safe_rw_H
#include <stdlib.h>
#include <sys/types.h>
ssize_t safe_write(const int fd, const void* const buf_, size_t count,
const int timeout);
ssize_t safe_read(const int fd, void* const buf_, size_t count);
ssize_t safe_read_partial(const int fd, void* const buf_,
const size_t max_count);
#endif
|