Skip to content

[libc] provide sysexits.h #124640

@nickdesaulniers

Description

@nickdesaulniers

FWICT, sysexits.h is a BSD extension. It's used in llvm when building clang:

In file included from /llvm-project-main/llvm/lib/Support/Signals.cpp:277:
In file included from /llvm-project-main/llvm/lib/Support/Unix/Signals.inc:39:
/llvm-project-main/llvm/include/llvm/Support/ExitCodes.h:30:2: error: Exit code EX_IOERR not available
   30 | #error Exit code EX_IOERR not available
      |  ^

FWICT, it's because llvm-libc doesn't provide sysexits.h. LLVM only cares about EX_IOERR (I think I was involved in this code, a lifetime ago, for detecting writes to broken pipes...)

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions