-
Notifications
You must be signed in to change notification settings - Fork 15.4k
Add sysexits.h header with BSD exit codes (total-18) #126112
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from 3 commits
d4d32a4
e46aba5
32f2156
d8c4e7b
cd7685a
539ee7a
dd9c51c
23023d7
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -321,3 +321,10 @@ add_macro_header( | |
| HDR | ||
| pthread-macros.h | ||
| ) | ||
|
|
||
| add_macro_header( | ||
| sysexits_macros | ||
| HDR | ||
| sysexits-macros.h | ||
| ) | ||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,23 @@ | ||
| #ifndef SYSEXITS_MACROS_H | ||
ajayrajsaini marked this conversation as resolved.
Show resolved
Hide resolved
|
||
| #define SYSEXITS_MACROS_H | ||
|
|
||
| #define EX_OK 0 // Successful termination | ||
| #define EX_USAGE 64 // Command line usage error | ||
| #define EX_DATAERR 65 // Data format error | ||
| #define EX_NOINPUT 66 // Cannot open input | ||
| #define EX_NOUSER 67 // Addressee unknown | ||
| #define EX_NOHOST 68 // Host name unknown | ||
| #define EX_UNAVAILABLE 69 // Service unavailable | ||
| #define EX_SOFTWARE 70 // Internal software error | ||
| #define EX_OSERR 71 // Operating system error | ||
| #define EX_OSFILE 72 // System file error | ||
| #define EX_CANTCREAT 73 // Cannot create (user) output file | ||
| #define EX_IOERR 74 // Input/output error | ||
| #define EX_TEMPFAIL 75 // Temporary failure, try again | ||
| #define EX_PROTOCOL 76 // Remote protocol error | ||
| #define EX_NOPERM 77 // Permission denied | ||
| #define EX_CONFIG 78 // Configuration error | ||
| #define EX_INTERNAL 80 // Internal error | ||
| #define EX_INVALIDARG 81 // Invalid argument | ||
|
||
|
|
||
| #endif // SYSEXITS_MACROS_H | ||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,17 @@ | ||
| //===-- POSIX header sysexits.h -----------------------------------------===// | ||
| // | ||
| // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. | ||
| // See https://llvm.org/LICENSE.txt for license information. | ||
| // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception | ||
| // | ||
| //===----------------------------------------------------------------------===// | ||
| #ifndef LLVM_LIBC_SYSEXITS_H | ||
| #define LLVM_LIBC_SYSEXITS_H | ||
|
|
||
| #include "__llvm-libc-common.h" | ||
| #include "llvm-libc-macros/sysexits-macros.h" | ||
|
|
||
| %%public_api() | ||
|
|
||
| #endif // LLVM_LIBC_SYSEXITS_H | ||
|
|
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,9 @@ | ||
| header: sysexits.h | ||
| header_template: sysexits.h.def | ||
| standards: | ||
| - POSIX | ||
ajayrajsaini marked this conversation as resolved.
Outdated
Show resolved
Hide resolved
|
||
| macros: [] | ||
| types: [] | ||
| enums: [] | ||
| objects: [] | ||
| functions: [] | ||
Uh oh!
There was an error while loading. Please reload this page.