• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 // This is an incomplete & imprecice implementation of the Posix
2 // standard file by the same name
3 
4 #ifndef __MINGW_UNISTD__
5 #define __MINGW_UNISTD__
6 
7 #ifdef MINGW // Only for cross compilation to mingw
8 
9 #include <stdio.h>
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 
23 int          getpagesize(void);
24 // mingw have these
25 // int          close(int);
26 // int          open(const char *, int, ...);
27 // ssize_t      read(int fd, void *buf, size_t count);
28 // ssize_t      write(int, const void *, size_t);
29 
30 // read write is here
31 #include <io.h>
32 
33 #endif // MINGW
34 #endif