Skip to content

Commit 6489125

Browse files
authored
[libc] Add FILENO related macros to unistd.h. (#124688)
Closes #124637. This is necessary to build LLVM with LLVM-libc and align the behavior with other libc implementations. ref: https://pubs.opengroup.org/onlinepubs/9799919799/basedefs/unistd.h.html
1 parent 56a0a7f commit 6489125

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

libc/include/llvm-libc-macros/unistd-macros.h

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,4 +5,8 @@
55
#include "linux/unistd-macros.h"
66
#endif
77

8+
#define STDIN_FILENO 0
9+
#define STDOUT_FILENO 1
10+
#define STDERR_FILENO 2
11+
812
#endif // LLVM_LIBC_MACROS_UNISTD_MACROS_H

0 commit comments

Comments
 (0)