[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#265245: acknowledged by developer (Re: Bug#265245: glibc-doc: htonl/ntohl belong in arpa/inet.h)



reopen 265245
quit

On Thu, Jan 13, 2005 at 08:34:53PM -0800, Debian Bug Tracking System wrote:
> 
> At Thu, 12 Aug 2004 21:08:42 +1000,
> <herbert@gondor.apana.org.au> wrote:
> > According to POSIX, htonl/ntohl are declared in arpa/inet.h.  So
> > the info text should be modified to refer to that file instead of
> > netinet/in.h.
> 
> Exactly POSIX says it should be arpa/inet.h.  However glibc put such
> definitions in netinet/in.h.  But don't worry because arpa/inet.h
> always includes netinet/in.h, so we don't violate POSIX definition.  I
> close this report.

Sorry I think you didn't get my point.  What I mean is that the
documentation should refer the user to the POSIX standard location
either by itself or in addition to where glibc actually puts it.

Otherwise someone referring to the glibc documentation may unwittingly
produce programs that don't work on other POSIX platforms.

Cheers,
-- 
Visit Openswan at http://www.openswan.org/
Email: Herbert Xu ~{PmV>HI~} <herbert@gondor.apana.org.au>
Home Page: http://gondor.apana.org.au/~herbert/
PGP Key: http://gondor.apana.org.au/~herbert/pubkey.txt



Reply to: