Zhe Weng
d8da8dcc44
libc: Print error code for unknown errors in strerror/gai_strerror
...
Ref: Linux print unknown errors like "Unknown error nnn"
https://man7.org/linux/man-pages/man3/strerror.3.html#RETURN_VALUE
Note:
These interfaces are called at low freq, so a static buffer may be enough.
Signed-off-by: Zhe Weng <wengzhe@xiaomi.com>
2023-04-22 01:46:39 +08:00
Alin Jerpelea
c6252c9e32
libs: libc: update licenses to Apache
...
Gregory Nutt is the copyright holder for those files and he has submitted the
SGA as a result we can migrate the licenses to Apache.
Signed-off-by: Alin Jerpelea <alin.jerpelea@sony.com>
2021-05-27 08:07:25 +09:00
Xiang Xiao
dd0aca6822
libc/netdb: Make host and serv optional for getnameinfo
...
and fix other minor style
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
Change-Id: I107ee5b141f39e1e08967373b1ead4495bc55aa7
2020-03-30 09:47:28 -06:00
Xiang Xiao
68951e8d72
Remove exra whitespace from files ( #189 )
...
* Remove multiple newlines at the end of files
* Remove the whitespace from the end of lines
2020-01-31 09:24:49 -06:00
Juha Niskanen
1f4a1eab6d
libs/libc/netdb: Add getaddrinfo() and friends.
2018-06-08 07:07:21 -06:00