| Issue |
124637
|
| Summary |
[libc][unistd] provide STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO
|
| Labels |
good first issue,
libc
|
| Assignees |
|
| Reporter |
nickdesaulniers
|
building clang against llvm-libc fails with:
```
In file included from /llvm-project-main/llvm/lib/Support/Process.cpp:122:
/llvm-project-main/llvm/lib/Support/Unix/Process.inc:231:30: error: use of undeclared identifier 'STDIN_FILENO'
231 | const int StandardFDs[] = {STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO};
| ^
/llvm-project-main/llvm/lib/Support/Unix/Process.inc:231:44: error: use of undeclared identifier 'STDOUT_FILENO'
231 | const int StandardFDs[] = {STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO};
| ^
/llvm-project-main/llvm/lib/Support/Unix/Process.inc:231:59: error: use of undeclared identifier 'STDERR_FILENO'
231 | const int StandardFDs[] = {STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO};
| ^
```
We should define these in include/llvm-libc-macros/linux/unistd-macros.h with the values of 0, 1, 2 respectively.
_______________________________________________
llvm-bugs mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs