|
Registry of known foreign error collections
Lassi Kortela
(27 Jul 2020 07:45 UTC)
|
||
|
Re: Registry of known foreign error collections
Lassi Kortela
(27 Jul 2020 08:06 UTC)
|
||
|
(missing)
|
||
|
Re: Registry of known foreign error collections Lassi Kortela (27 Jul 2020 12:49 UTC)
|
||
|
Re: Registry of known foreign error collections
Arthur A. Gleckler
(27 Jul 2020 17:16 UTC)
|
||
|
Re: Registry of known foreign error collections
hga@xxxxxx
(27 Jul 2020 19:22 UTC)
|
||
|
Re: Registry of known foreign error collections
Arthur A. Gleckler
(27 Jul 2020 19:33 UTC)
|
||
|
Re: Registry of known foreign error collections
hga@xxxxxx
(27 Jul 2020 19:45 UTC)
|
||
|
(missing)
|
||
|
Re: Registry of known foreign error collections
Lassi Kortela
(27 Jul 2020 20:03 UTC)
|
||
|
Re: Registry of known foreign error collections
hga@xxxxxx
(27 Jul 2020 20:17 UTC)
|
||
|
Re: Registry of known foreign error collections
Lassi Kortela
(27 Jul 2020 20:31 UTC)
|
||
|
Re: Registry of known foreign error collections
Lassi Kortela
(27 Jul 2020 19:48 UTC)
|
||
|
Re: Registry of known foreign error collections
Lassi Kortela
(27 Jul 2020 20:23 UTC)
|
||
|
Re: Registry of known foreign error collections
hga@xxxxxx
(27 Jul 2020 22:58 UTC)
|
||
[Re-sending this reply to the correct mailing list - SRFI 198, not 189] > Aren’t there also the netdb error codes: > > SYNOPSIS > #include <netdb.h> > > int h_errno; > > [...] > void > herror(const char *string); > > const char * > hstrerror(int err); Good point. POSIX also has `const char *gai_strerror(int)` where "gai" stands for getaddrinfo and friends. herror() and hstrerror() are not mentioned in POSIX, and "The obsolescent h_errno external integer [is removed]". <https://pubs.opengroup.org/onlinepubs/9699919799/basedefs/netdb.h.html> lists the following errors. Apparently they are passed to the caller as return values from netdb functions. They also used to be stored in `h_errno` but POSIX dropped that. EAI_AGAIN EAI_BADFLAGS EAI_FAIL EAI_FAMILY EAI_MEMORY EAI_NONAME EAI_SERVICE EAI_SOCKTYPE EAI_SYSTEM EAI_OVERFLOW The error sets we have so far: 'errno C/POSIX/Unix errno values 'ftp File Transfer Protocol reply codes 'http Hypertext Transfer Protocol status codes 'libsodium The libsodium cryptography library 'mysql MySQL and MariaDB database errors 'netdb POSIX/Unix netdb.h error values 'postgresql PostgreSQL errors 'sqlite SQLite database result codes 'windows Microsoft Windows API (aka win32) 'winsock Microsoft Windows Sockets API