diff options
author | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-04-07 15:49:25 +0000 |
---|---|---|
committer | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-04-07 15:49:25 +0000 |
commit | 464df1d5e5ab1322e2dd0a7796939fff1aeefa9a (patch) | |
tree | 6a403684e0978f0287d7f0ec0e5aab1fd31a59e1 /include/nonunix/unistd.h | |
parent | Initial commit. (diff) | |
download | e2fsprogs-464df1d5e5ab1322e2dd0a7796939fff1aeefa9a.tar.xz e2fsprogs-464df1d5e5ab1322e2dd0a7796939fff1aeefa9a.zip |
Adding upstream version 1.47.0.upstream/1.47.0upstream
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'include/nonunix/unistd.h')
-rw-r--r-- | include/nonunix/unistd.h | 49 |
1 files changed, 49 insertions, 0 deletions
diff --git a/include/nonunix/unistd.h b/include/nonunix/unistd.h new file mode 100644 index 0000000..5053587 --- /dev/null +++ b/include/nonunix/unistd.h @@ -0,0 +1,49 @@ + + +#pragma once + +#include <stdlib.h> +#include <process.h> +#include <io.h> + +#define EOPNOTSUPP 95 + +#define O_NONBLOCK 0 +#define O_RDONLY _O_RDONLY +#define O_RDWR _O_RDWR + +#define popen _popen +#define pclose _pclose +#define sleep _sleep +#define stat _stat +#define open _open +#define close _close +#define fstat _fstat +#define read _read +#define write _write +#define off_t _off_t +#define lseek _lseek +#define putenv _putenv +#define getpid _getpid +#define utimbuf _utimbuf +#define sys_nerr _sys_nerr +#define sys_errlist _sys_errlist +#define isatty _isatty +#define getch _getch + +#include <grp.h> +#include <pwd.h> + + +// no-oped sync +__inline void sync(void){}; + + + +#define gettimeofday(p, v) ((p)->tv_sec = (p)->tv_usec = 0) + + +#define strcasecmp _stricmp + + + |