GRASS GIS 8 Programmer's Manual  8.5.0dev(2025)-20906a4402
unistd.h
Go to the documentation of this file.
1 #ifndef GRASS_MSVC_UNISTD_H
2 #define GRASS_MSVC_UNISTD_H
3 
4 #include <io.h>
5 #define access _access
6 #define close _close
7 #define dup _dup
8 #define dup2 _dup2
9 #define unlink _unlink
10 #define isatty _isatty
11 
12 #include <direct.h>
13 #define rmdir _rmdir
14 #define getcwd _getcwd
15 #define chdir _chdir
16 
17 #include <process.h>
18 #define getpid _getpid
19 
20 #define F_OK 0 /* Test for existence. */
21 #define X_OK 1 /* Test for execute permission. */
22 #define W_OK 2 /* Test for write permission. */
23 #define R_OK 4 /* Test for read permission. */
24 
25 #define STDIN_FILENO 0 /* Standard input. */
26 #define STDOUT_FILENO 1 /* Standard output. */
27 #define STDERR_FILENO 2 /* Standard error output. */
28 
29 #endif
Header file for msvc/open.c and msvc/creat.c.