blob: d5f7e9cb73bea7ea27d18221e37dface1c7871c3 (
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
|
/**
* SPDX-License-Identifier: Apache-2.0
*
* @file file-util.h
* @brief file utility functions
*/
#ifndef REFOP_FILE_UTIL_H
#define REFOP_FILE_UTIL_H
//-----------------------------------------------------------------------------
#include <unistd.h>
//-----------------------------------------------------------------------------
#ifdef __cplusplus
extern "C" {
#endif
//-----------------------------------------------------------------------------
ssize_t safe_read(int fd, void *buf, size_t count);
ssize_t safe_write(int fd, void *buf, size_t count);
//-----------------------------------------------------------------------------
#ifdef __cplusplus
}
#endif
//-----------------------------------------------------------------------------
#endif //#ifndef REFOP_FILE_UTIL_H
|