The errno and signal codesets
Lassi Kortela
(13 Dec 2022 11:38 UTC)
|
Re: The errno and signal codesets
Lassi Kortela
(13 Dec 2022 11:48 UTC)
|
Re: The errno and signal codesets
John Cowan
(14 Dec 2022 05:58 UTC)
|
Re: The errno and signal codesets
Lassi Kortela
(14 Dec 2022 09:08 UTC)
|
Re: The errno and signal codesets
John Cowan
(14 Dec 2022 22:48 UTC)
|
Re: The errno and signal codesets
Lassi Kortela
(15 Dec 2022 09:10 UTC)
|
Re: The errno and signal codesets
John Cowan
(18 Dec 2022 07:56 UTC)
|
Re: The errno and signal codesets
Lassi Kortela
(20 Dec 2022 10:51 UTC)
|
Re: The errno and signal codesets Lassi Kortela (20 Dec 2022 11:53 UTC)
|
More examples with actual codesets. Maximum Windows API error code: (let ((set 'windows)) (fold max 0 (map (lambda (x) (codeset-number set x)) (codeset-symbols set)))) => 2250 Earliest 30 Windows error codes: (let ((set 'windows)) (take (list-sort (lambda (a b) (< (codeset-number set a) (codeset-number set b))) (codeset-symbols set)) 30)) => (ERROR_SUCCESS ERROR_INVALID_FUNCTION ERROR_FILE_NOT_FOUND ERROR_PATH_NOT_FOUND ERROR_TOO_MANY_OPEN_FILES ERROR_ACCESS_DENIED ERROR_INVALID_HANDLE ERROR_ARENA_TRASHED ERROR_NOT_ENOUGH_MEMORY ERROR_INVALID_BLOCK ERROR_BAD_ENVIRONMENT ERROR_BAD_FORMAT ERROR_INVALID_ACCESS ERROR_INVALID_DATA ERROR_OUTOFMEMORY ERROR_INVALID_DRIVE ERROR_CURRENT_DIRECTORY ERROR_NOT_SAME_DEVICE ERROR_NO_MORE_FILES ERROR_WRITE_PROTECT ERROR_BAD_UNIT ERROR_NOT_READY ERROR_BAD_COMMAND ERROR_CRC ERROR_BAD_LENGTH ERROR_SEEK ERROR_NOT_DOS_DISK ERROR_SECTOR_NOT_FOUND ERROR_OUT_OF_PAPER ERROR_WRITE_FAULT) HTTP 4xx codes: (let ((set 'http-status)) (map (lambda (code) (list (codeset-number set code) (codeset-message set code))) (list-sort (lambda (a b) (< (codeset-number set a) (codeset-number set b))) (filter (lambda (code) (<= 400 (codeset-number set code) 499)) (codeset-symbols set))))) => ((400 "Bad Request") (401 "Unauthorized") (402 "Payment Required") (403 "Forbidden") (404 "Not Found") (405 "Method Not Allowed") (406 "Not Acceptable") (407 "Proxy Authentication Required") (408 "Request Timeout") (409 "Conflict") (410 "Gone") (411 "Length Required") (412 "Precondition Failed") (413 "Request Entity Too Large") (414 "Request URI Too Long") (415 "Unsupported Media Type") (416 "Requested Range Not Satisfiable") (417 "Expectation Failed") (418 "I'm a teapot") (421 "Misdirected Request") (422 "Unprocessable Entity") (423 "Locked") (424 "Failed Dependency") (425 "Too Early") (426 "Upgrade Required") (428 "Precondition Required") (429 "Too Many Requests") (431 "Request Header Fields Too Large") (451 "Unavailable For Legal Reasons"))