blob: 94f6d5a96490cc958718a73bf87e187472a7989d [file] [log] [blame]
Willy Tu40553242022-11-14 09:27:39 -08001// clang-format off
Mohaimen Alsamarai35c1ac42021-04-20 13:16:42 -05002/********************************************************************************
3* HON HAI Precision IND.Co., LTD. *
4* Personal Computer & Enterprise Product Business Group *
Avenash Asai Thambida2cf0d2021-08-26 15:51:47 -05005* Enterprise Product Business Group *
Mohaimen Alsamarai35c1ac42021-04-20 13:16:42 -05006* *
7* Copyright (c) 2010 by FOXCONN/CESBG/CABG/SRD. All rights reserved. *
8* All data and information contained in this document is confidential *
9* and proprietary information of FOXCONN/CESBG/CABG/SRD and all rights *
10* are reserved. By accepting this material the recipient agrees that *
11* the information contained therein is held in confidence and in trust *
12* and will not be used, copied, reproduced in whole or in part, nor its *
13* contents revealed in any manner to others without the express written *
14* permission of FOXCONN/CESBG/CABG/SRD. *
15* *
16********************************************************************************/
Willy Tu40553242022-11-14 09:27:39 -080017// clang-format on
Mohaimen Alsamarai35c1ac42021-04-20 13:16:42 -050018#include <unistd.h>
Mohaimen Alsamarai35c1ac42021-04-20 13:16:42 -050019
Willy Tu40553242022-11-14 09:27:39 -080020#include <system_error>
21
Avenash Asai Thambida2cf0d2021-08-26 15:51:47 -050022std::system_error errnoException(const std::string& message);
Mohaimen Alsamarai35c1ac42021-04-20 13:16:42 -050023
Avenash Asai Thambida2cf0d2021-08-26 15:51:47 -050024int sysopen(const std::string& path);
25
26void sysclose(int fd_);
27
28void lseeker(int fd_, size_t offset);
29
Willy Tu40553242022-11-14 09:27:39 -080030void readBin(int fd_, size_t offset, void* ptr, size_t size);
Avenash Asai Thambida2cf0d2021-08-26 15:51:47 -050031
Willy Tu40553242022-11-14 09:27:39 -080032void writeBin(int fd_, size_t offset, void* ptr, size_t size);