Skip to content

Commit 811642c

Browse files
committed
Add file descriptor type macros to stdlib.c
1 parent 580be57 commit 811642c

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

examples/stdlib.c

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -649,6 +649,15 @@ typedef int key_t;
649649
#define S_ISGID 02000
650650
#define S_ISVTX 01000
651651

652+
#define S_IFMT 0170000
653+
#define S_IFSOCK 0140000
654+
#define S_IFLNK 0120000
655+
#define S_IFREG 0100000
656+
#define S_IFBLK 0060000
657+
#define S_IFDIR 0040000
658+
#define S_IFCHR 0020000
659+
#define S_IFIFO 0010000
660+
652661
#define O_ACCMODE 00000003
653662
#define O_RDONLY 00000000
654663
#define O_WRONLY 00000001

0 commit comments

Comments
 (0)