view doc/inet_ntoa.texi @ 8998:442682a45bcd

* m4/fchdir.m4 (gl_FUNC_FCHDIR): Likewise. * m4/iconv_h.m4 (gl_ICONV_H): Likewise. * m4/locale_h.m4 (gl_LOCALE_H): Likewise. * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Likewise. * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise. * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise. * m4/sysexits.m4 (gl_SYSEXITS): Likewise. SCALAR(0x828a248) * lib/dirent_.h: Likewise. * lib/iconv_.h: Likewise. * lib/locale_.h: Likewise. * lib/netinet_in_.h: Likewise. * lib/sys_select_.h: Likewise. * lib/sys_socket_.h: Likewise. * lib/sysexits_.h: Likewise. * modules/fchdir: Likewise. * modules/iconv_open: Likewise. * modules/locale: Likewise. * modules/netinet_in: Likewise. * modules/sys_select: Likewise. * modules/sys_socket: Likewise. * modules/sysexits: Likewise.
author Paul Eggert <eggert@cs.ucla.edu>
date Thu, 21 Jun 2007 17:08:44 +0000
parents adb21c293305
children d67664a4e01c
line wrap: on
line source

@node inet_ntoa
@section inet_ntoa
@findex inet_ntoa

@c Copyright (C) 2005 Free Software Foundation, Inc.

@c Permission is granted to copy, distribute and/or modify this document
@c under the terms of the GNU Free Documentation License, Version 1.2 or
@c any later version published by the Free Software Foundation; with no
@c Invariant Sections, with no Front-Cover Texts, and with no Back-Cover
@c Texts.  A copy of the license is included in the ``GNU Free
@c Documentation License'' file as part of this distribution.

The @code{inet_ntoa} function need not be reentrant, and consequently
is not required to be thread safe.  Implementations of
@code{inet_ntoa} typically write the time stamp into static buffer.
If two threads call @code{inet_ntoa} at roughly the same time, you
might end up with the wrong date in one of the threads, or some
undefined string.  Further, @code{inet_ntoa} is specific for
@acronym{IPv4} addresses.

A protocol independent function is @code{inet_ntop}.