1 // This is an incomplete & imprecice implementation of the Posix 2 // standard file by the same name 3 4 5 // Since this is only intended for VC++ compilers 6 // use #pragma once instead of guard macros 7 #pragma once 8 9 #ifdef _MSC_VER // Only for cross compilation to windows 10 11 #ifndef UNW_REMOTE_ONLY 12 // This is solely intended to enable compilation of libunwind 13 // for UNW_REMOTE_ONLY on windows 14 #error Cross compilation of libunwind on Windows can only support UNW_REMOTE_ONLY 15 #endif 16 17 #include <stddef.h> 18 #include <stdint.h> 19 #include <stdio.h> 20 #include <sys/types.h> 21 22 int close(int); 23 int getpagesize(void); 24 int open(const char *, int, ...); 25 ssize_t read(int fd, void *buf, size_t count); 26 ssize_t write(int, const void *, size_t); 27 28 #endif // _MSC_VER 29