[_WIN32] (S_IRUSR, S_IWUSR, S_IXUSR, S_IRWXU, S_IRGRP, S_IWGRP)
(S_IXGRP, S_IRWXG, S_IROTH, S_IWOTH, S_IXOTH, S_IRWXO): Move from include/misc.h to new src/lib/w32/unistd.h.
This commit is contained in:
parent
4bbc3f4286
commit
7bb0a04db2
2 changed files with 18 additions and 18 deletions
|
@ -56,24 +56,6 @@ typedef int pid_t;
|
||||||
|
|
||||||
#define random rand
|
#define random rand
|
||||||
#define srandom srand
|
#define srandom srand
|
||||||
#ifndef S_IRUSR
|
|
||||||
#define S_IRUSR _S_IREAD
|
|
||||||
#define S_IWUSR _S_IWRITE
|
|
||||||
#define S_IXUSR _S_IEXEC
|
|
||||||
#define S_IRWXU S_IRUSR | S_IWUSR | S_IXUSR
|
|
||||||
#endif
|
|
||||||
#ifndef S_IRGRP
|
|
||||||
#define S_IRGRP 0
|
|
||||||
#define S_IWGRP 0
|
|
||||||
#define S_IXGRP 0
|
|
||||||
#define S_IRWXG S_IRGRP | S_IWGRP | S_IXGRP
|
|
||||||
#endif
|
|
||||||
#ifndef S_IROTH
|
|
||||||
#define S_IROTH 0
|
|
||||||
#define S_IWOTH 0
|
|
||||||
#define S_IXOTH 0
|
|
||||||
#define S_IRWXO S_IROTH | S_IWOTH | S_IXOTH
|
|
||||||
#endif
|
|
||||||
#endif /* _WIN32 */
|
#endif /* _WIN32 */
|
||||||
|
|
||||||
#ifndef S_IRWUG
|
#ifndef S_IRWUG
|
||||||
|
|
|
@ -48,6 +48,24 @@ extern int posix_mkdir(const char *dirname, int perm);
|
||||||
/*
|
/*
|
||||||
* posixio.c
|
* posixio.c
|
||||||
*/
|
*/
|
||||||
|
#ifndef S_IRUSR
|
||||||
|
#define S_IRUSR _S_IREAD
|
||||||
|
#define S_IWUSR _S_IWRITE
|
||||||
|
#define S_IXUSR _S_IEXEC
|
||||||
|
#define S_IRWXU S_IRUSR | S_IWUSR | S_IXUSR
|
||||||
|
#endif
|
||||||
|
#ifndef S_IRGRP
|
||||||
|
#define S_IRGRP 0
|
||||||
|
#define S_IWGRP 0
|
||||||
|
#define S_IXGRP 0
|
||||||
|
#define S_IRWXG S_IRGRP | S_IWGRP | S_IXGRP
|
||||||
|
#endif
|
||||||
|
#ifndef S_IROTH
|
||||||
|
#define S_IROTH 0
|
||||||
|
#define S_IWOTH 0
|
||||||
|
#define S_IXOTH 0
|
||||||
|
#define S_IRWXO S_IROTH | S_IWOTH | S_IXOTH
|
||||||
|
#endif
|
||||||
|
|
||||||
typedef int socklen_t;
|
typedef int socklen_t;
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue