/
kipitix
/
gracedown
Обзор
Документация
Войти
/
kipitix
/
gracedown
Код
Запросы
0
Задачи
Вики
Пакеты
0
Релизы
0
CI/CD
Аналитика
Безопасность
path
exitcodes.go
27 строк
1 KB
kipitix
upgrade
24 апр 2026, 00:54
24 апр 2026, 00:54
3842512
Код
Авторство
О чём код?
package gracedown // Standard exit codes based on sysexits.h const ( ExitSuccess = 0 // successful exit ExitFailure = 1 // general error (catchall) // sysexits.h codes (range 64–78) ExitUsage = 64 // command line usage error (invalid arguments, etc.) ExitDataErr = 65 // data format error (invalid format, incorrect data) ExitNoInput = 66 // input file does not exist or is unreadable ExitNoUser = 67 // specified user does not exist ExitNoHost = 68 // specified host does not exist ExitUnavailable = 69 // service unavailable (e.g. cannot connect to database) ExitSoftware = 70 // internal software error (logic bug) ExitOSErr = 71 // OS error (cannot create file, out of memory, etc.) ExitOSFile = 72 // critical OS file error (corrupted file, bad header) ExitCannotCreate = 73 // cannot create output file ExitIOErr = 74 // I/O error ExitTempFail = 75 // temporary failure (retry later) ExitProtocol = 76 // remote protocol error ExitNoPerm = 77 // insufficient permissions ExitConfig = 78 // configuration error // Non-standard but widely used ExitInterrupted = 130 // interrupted by Ctrl+C (SIGINT) )