Willy Tu | 4055324 | 2022-11-14 09:27:39 -0800 | [diff] [blame^] | 1 | // clang-format off |
Mohaimen Alsamarai | 35c1ac4 | 2021-04-20 13:16:42 -0500 | [diff] [blame] | 2 | /******************************************************************************** |
| 3 | * HON HAI Precision IND.Co., LTD. * |
| 4 | * Personal Computer & Enterprise Product Business Group * |
Avenash Asai Thambi | da2cf0d | 2021-08-26 15:51:47 -0500 | [diff] [blame] | 5 | * Enterprise Product Business Group * |
Mohaimen Alsamarai | 35c1ac4 | 2021-04-20 13:16:42 -0500 | [diff] [blame] | 6 | * * |
| 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 Tu | 4055324 | 2022-11-14 09:27:39 -0800 | [diff] [blame^] | 17 | // clang-format on |
Mohaimen Alsamarai | 35c1ac4 | 2021-04-20 13:16:42 -0500 | [diff] [blame] | 18 | #include <unistd.h> |
Mohaimen Alsamarai | 35c1ac4 | 2021-04-20 13:16:42 -0500 | [diff] [blame] | 19 | |
Willy Tu | 4055324 | 2022-11-14 09:27:39 -0800 | [diff] [blame^] | 20 | #include <system_error> |
| 21 | |
Avenash Asai Thambi | da2cf0d | 2021-08-26 15:51:47 -0500 | [diff] [blame] | 22 | std::system_error errnoException(const std::string& message); |
Mohaimen Alsamarai | 35c1ac4 | 2021-04-20 13:16:42 -0500 | [diff] [blame] | 23 | |
Avenash Asai Thambi | da2cf0d | 2021-08-26 15:51:47 -0500 | [diff] [blame] | 24 | int sysopen(const std::string& path); |
| 25 | |
| 26 | void sysclose(int fd_); |
| 27 | |
| 28 | void lseeker(int fd_, size_t offset); |
| 29 | |
Willy Tu | 4055324 | 2022-11-14 09:27:39 -0800 | [diff] [blame^] | 30 | void readBin(int fd_, size_t offset, void* ptr, size_t size); |
Avenash Asai Thambi | da2cf0d | 2021-08-26 15:51:47 -0500 | [diff] [blame] | 31 | |
Willy Tu | 4055324 | 2022-11-14 09:27:39 -0800 | [diff] [blame^] | 32 | void writeBin(int fd_, size_t offset, void* ptr, size_t size); |