Skip to content

Commit

Permalink
Define S_IRWXU and others if not already defined.
Browse files Browse the repository at this point in the history
  • Loading branch information
staticfloat committed May 23, 2023
1 parent 0097e68 commit 4f92483
Showing 1 changed file with 17 additions and 0 deletions.
17 changes: 17 additions & 0 deletions src/win/fs.c
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,23 @@
#define UV_FS_FREE_PTR 0x0008
#define UV_FS_CLEANEDUP 0x0010

#ifndef S_IRWXU
#define S_IRWXU 0000700 /* RWX mask for owner */
#define S_IRUSR 0000400 /* R for owner */
#define S_IWUSR 0000200 /* W for owner */
#define S_IXUSR 0000100 /* X for owner */

#define S_IRWXG 0000070 /* RWX mask for group */
#define S_IRGRP 0000040 /* R for group */
#define S_IWGRP 0000020 /* W for group */
#define S_IXGRP 0000010 /* X for group */

#define S_IRWXO 0000007 /* RWX mask for other */
#define S_IROTH 0000004 /* R for other */
#define S_IWOTH 0000002 /* W for other */
#define S_IXOTH 0000001 /* X for other */
#endif

/* number of attempts to generate a unique directory name before declaring failure */
#define TMP_MAX 32767

Expand Down

0 comments on commit 4f92483

Please sign in to comment.