blob: bb4f7036fc403ed33148984dc0fca55a470944e8 [file] [log] [blame]
Mohaimen Alsamarai35c1ac42021-04-20 13:16:42 -05001/********************************************************************************
2* HON HAI Precision IND.Co., LTD. *
3* Personal Computer & Enterprise Product Business Group *
Avenash Asai Thambida2cf0d2021-08-26 15:51:47 -05004* Enterprise Product Business Group *
Mohaimen Alsamarai35c1ac42021-04-20 13:16:42 -05005* *
6* Copyright (c) 2010 by FOXCONN/CESBG/CABG/SRD. All rights reserved. *
7* All data and information contained in this document is confidential *
8* and proprietary information of FOXCONN/CESBG/CABG/SRD and all rights *
9* are reserved. By accepting this material the recipient agrees that *
10* the information contained therein is held in confidence and in trust *
11* and will not be used, copied, reproduced in whole or in part, nor its *
12* contents revealed in any manner to others without the express written *
13* permission of FOXCONN/CESBG/CABG/SRD. *
14* *
15********************************************************************************/
Mohaimen Alsamarai35c1ac42021-04-20 13:16:42 -050016#include <unistd.h>
Mohaimen Alsamarai35c1ac42021-04-20 13:16:42 -050017
Avenash Asai Thambida2cf0d2021-08-26 15:51:47 -050018std::system_error errnoException(const std::string& message);
Mohaimen Alsamarai35c1ac42021-04-20 13:16:42 -050019
Avenash Asai Thambida2cf0d2021-08-26 15:51:47 -050020int sysopen(const std::string& path);
21
22void sysclose(int fd_);
23
24void lseeker(int fd_, size_t offset);
25
26void readBin(int fd_, size_t offset, void *ptr, size_t size);
27
28void writeBin(int fd_, size_t offset, void *ptr, size_t size);
Mohaimen Alsamarai35c1ac42021-04-20 13:16:42 -050029