#
8d7a3f40 |
|
23-Sep-2016 |
Daniel Sabogal <dsabogalcc@gmail.com> |
fix getservby*_r result pointer value on error this is a clone of the fix to the gethostby*_r functions in commit fe82bb9b921be34370e6b71a1c6f062c20999ae0. the man pages document that the getservby*_r functions set this pointer to NULL if there was an error or if no record was found.
|
#
c63c98a6 |
|
07-Feb-2015 |
Rich Felker <dalias@aerifal.cx> |
make getaddrinfo support SOCK_RAW and other socket types all socket types are accepted at this point, but that may be changed at a later time if the behavior is not meaningful for other types. as before, omitting type (a value of 0) gives both UDP and TCP results, and SOCK_DGRAM or SOCK_STREAM restricts to UDP or TCP, respectively. for other socket types, the service name argument is required to be a null pointer, and the protocol number provided by the caller is used.
|
#
af7c308e |
|
31-May-2014 |
Rich Felker <dalias@aerifal.cx> |
improve getservbyname_r using new resolver backend now that host and service lookup have been separated in the backend, there's no need for service lookup functions to pull in the host lookup code. moreover, dynamic allocation is no longer needed, so this function should now be async-signal-safe. it's also significantly smaller. one change in getservbyname is also made: knowing that getservbyname_r needs only two character pointers in the caller-provided buffer, some wasted bss can be avoided.
|
#
75fff40b |
|
22-Jul-2012 |
Rich Felker <dalias@aerifal.cx> |
make getservby*_r return error code rather than -1 (and using errno) untested but should be correct..
|
#
06650b96 |
|
14-Jul-2012 |
Rich Felker <dalias@aerifal.cx> |
fix getservby*() with null pointer for protocol argument not sure this is the best fix but it should work
|
#
0b44a031 |
|
11-Feb-2011 |
Rich Felker <dalias@aerifal.cx> |
initial check-in, version 0.5.0
|