Branch
Hash :
71fbdb50
Author :
Date :
2025-01-06T13:56:40
servent tests: Fix failure on 32-bit native Windows. * tests/test-servent.c (getservbyname, getservbyport) [_WIN64 && !__CYGWIN__]: Disable signature check. * doc/posix-functions/getservbyname.texi: Document the incompatible __stdcall function signature. * doc/posix-functions/getservbyport.texi: Likewise.
@node getservbyname
@subsection @code{getservbyname}
@findex getservbyname
POSIX specification:@* @url{https://pubs.opengroup.org/onlinepubs/9799919799/functions/getservbyname.html}
Gnulib module: servent
@mindex servent
Portability problems fixed by Gnulib:
@itemize
@item
This function is declared in @code{<winsock2.h>} instead of @code{<netdb.h>}
on some platforms:
mingw, MSVC 14.
@end itemize
Portability problems not fixed by Gnulib:
@itemize
@item
On Windows, in 32-bit mode, this function is defined with a calling
convention that is different from @code{cdecl}.
@end itemize