gethostbyaddr()

Rostislav Krasny rosti.bsd at gmail.com
Fri Mar 3 10:45:24 PST 2006


Hi,

IEEE Std 1003.1 has following gethostbyaddr() prototype:

struct hostent *gethostbyaddr(const void *addr, socklen_t len, int type);

http://www.opengroup.org/onlinepubs/009695399/functions/gethostbyaddr.html

However FreeBSD has differnet prototype of that function:

struct hostent *gethostbyaddr(const char *addr, int len, int type);

As you can see, types of first two arguments are different. Is there a
good reason for that and could the gethostbyaddr() prototype be adjusted?


More information about the freebsd-standards mailing list