diff options
author | 2022-07-04 07:21:07 +0900 | |
---|---|---|
committer | 2022-07-28 21:58:03 +0900 | |
commit | e5f52b7e2305019651fe4b6351d3466638af3488 (patch) | |
tree | 70c70da1b8190873c6b05dbc6ed9fe145bd0e106 /lib/file-util.h | |
parent | 33313647b4898746c212fd0ad8372252f226f8dc (diff) |
Initial commit for libredundancyfileop source
This patch add initial source code registration to repository.
Bug-AGL: SPEC-4500
Signed-off-by: Naoto Yamaguchi <naoto.yamaguchi@aisin.co.jp>
Change-Id: I2b7331030f69e1d4cc396db9821f88e87e5b49a2
Diffstat (limited to 'lib/file-util.h')
-rw-r--r-- | lib/file-util.h | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/lib/file-util.h b/lib/file-util.h new file mode 100644 index 0000000..d5f7e9c --- /dev/null +++ b/lib/file-util.h @@ -0,0 +1,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 |