xref: /aosp_15_r20/external/e2fsprogs/include/nonunix/unistd.h (revision 6a54128f25917bfc36a8a6e9d722c04a0b4641b6)
1*6a54128fSAndroid Build Coastguard Worker 
2*6a54128fSAndroid Build Coastguard Worker 
3*6a54128fSAndroid Build Coastguard Worker #pragma once
4*6a54128fSAndroid Build Coastguard Worker 
5*6a54128fSAndroid Build Coastguard Worker #include <stdlib.h>
6*6a54128fSAndroid Build Coastguard Worker #include <process.h>
7*6a54128fSAndroid Build Coastguard Worker #include <io.h>
8*6a54128fSAndroid Build Coastguard Worker 
9*6a54128fSAndroid Build Coastguard Worker #define EOPNOTSUPP  95
10*6a54128fSAndroid Build Coastguard Worker 
11*6a54128fSAndroid Build Coastguard Worker #define O_NONBLOCK  0
12*6a54128fSAndroid Build Coastguard Worker #define O_RDONLY    _O_RDONLY
13*6a54128fSAndroid Build Coastguard Worker #define O_RDWR      _O_RDWR
14*6a54128fSAndroid Build Coastguard Worker 
15*6a54128fSAndroid Build Coastguard Worker #define popen   _popen
16*6a54128fSAndroid Build Coastguard Worker #define pclose  _pclose
17*6a54128fSAndroid Build Coastguard Worker #define sleep   _sleep
18*6a54128fSAndroid Build Coastguard Worker #define stat    _stat
19*6a54128fSAndroid Build Coastguard Worker #define open    _open
20*6a54128fSAndroid Build Coastguard Worker #define close   _close
21*6a54128fSAndroid Build Coastguard Worker #define fstat   _fstat
22*6a54128fSAndroid Build Coastguard Worker #define read    _read
23*6a54128fSAndroid Build Coastguard Worker #define write   _write
24*6a54128fSAndroid Build Coastguard Worker #define off_t   _off_t
25*6a54128fSAndroid Build Coastguard Worker #define lseek   _lseek
26*6a54128fSAndroid Build Coastguard Worker #define putenv  _putenv
27*6a54128fSAndroid Build Coastguard Worker #define getpid  _getpid
28*6a54128fSAndroid Build Coastguard Worker #define utimbuf _utimbuf
29*6a54128fSAndroid Build Coastguard Worker #define sys_nerr _sys_nerr
30*6a54128fSAndroid Build Coastguard Worker #define sys_errlist _sys_errlist
31*6a54128fSAndroid Build Coastguard Worker #define isatty _isatty
32*6a54128fSAndroid Build Coastguard Worker #define getch _getch
33*6a54128fSAndroid Build Coastguard Worker 
34*6a54128fSAndroid Build Coastguard Worker #include <grp.h>
35*6a54128fSAndroid Build Coastguard Worker #include <pwd.h>
36*6a54128fSAndroid Build Coastguard Worker 
37*6a54128fSAndroid Build Coastguard Worker 
38*6a54128fSAndroid Build Coastguard Worker // no-oped sync
sync(void)39*6a54128fSAndroid Build Coastguard Worker __inline void sync(void){};
40*6a54128fSAndroid Build Coastguard Worker 
41*6a54128fSAndroid Build Coastguard Worker 
42*6a54128fSAndroid Build Coastguard Worker 
43*6a54128fSAndroid Build Coastguard Worker #define gettimeofday(p, v) ((p)->tv_sec = (p)->tv_usec = 0)
44*6a54128fSAndroid Build Coastguard Worker 
45*6a54128fSAndroid Build Coastguard Worker 
46*6a54128fSAndroid Build Coastguard Worker #define strcasecmp _stricmp
47*6a54128fSAndroid Build Coastguard Worker 
48*6a54128fSAndroid Build Coastguard Worker 
49*6a54128fSAndroid Build Coastguard Worker 
50