Commit Graph

1263 Commits

Author SHA1 Message Date
Michael Kerrisk cd1aabe6b1 Remove statement that inet_pton() extends inet_ntoa();
that's not really true, since inet_pton() doesn't support
all of the string forms that are supported by inet_ntoa();
as per http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=482987.
Describe IPv6 address formats.
Describe dotted decimal format in more detail.
Add an example program.
Remove unneeded header files from SYNOPSIS.
Make NAME line more precise.
Make description of return value more precise.
SEE ALSO: Add inet(3), Add getaddrinfo(3).
2008-06-13 10:37:04 +00:00
Michael Kerrisk 3b26a174e5 Remove unneeded header files from SYNOPSIS.
SEE ALSO: Add inet(3) and getnameinfo(3).
Make NAME line more precise.
Move errors to an ERRORS section.
Add EXAMPLE section pointing to inet_pton(3).
2008-06-13 10:23:57 +00:00
Michael Kerrisk 054f5228c6 inet_aton() is *not* in POSIX.1.
Rewrite discussion of why inet_addr() is disfavored.
SEE ALSO: Add getaddrinfo(3).
as per http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=482979.
Describe the various address forms supported by inet_aton().
Rewrite description of inet_network().
Clarify discussion of inet_lnaof(), inet_netof(), and inet_makeaddr().
Add discussion of Classful Addressing, noting that it is obsolete.
Added an EXAMPLE program.
Relocate discussion of i386 byte order to NOTES.
Note that inet_aton() returns an address in network byte order.
SEE ALSO: Add byteorder(3) and getnameinfo(3).
2008-06-13 10:22:21 +00:00
Michael Kerrisk 444aa1ce8c DESCRIPTION: Add reference to inet_addr(3) for dotted notation.
SEE ALSO: add inet(3).
Added BUGS section noting that gethostbyname() does not
recognize hexadecimal components in dotted address strings;
See http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=482973
2008-06-13 10:14:55 +00:00
Michael Kerrisk a3edd71dc4 Improve description or 'hints' and 'res' arguments.
Add details on numeric strings that can be specified for 'node'.
Other fairly major restructrings and rewrites to improve
logical structure and clarity of the page.
2008-06-13 10:00:32 +00:00
Michael Kerrisk 481c58cae6 Remove mention of sa_len field from example code.
That field is a BSDism not present on Linux.
2008-06-13 09:54:52 +00:00
Michael Kerrisk cd117d4875 s/strcat/strncat/ (a typo that changed the semantics in DESCRIPTION). 2008-06-13 09:40:16 +00:00
Michael Kerrisk 2d50dd9efa Modify SYNOPSIS to show protoypes of both versions of strerror_r(),
and make other small clarifications of the description regarding
the two versions.
2008-06-13 09:10:47 +00:00
Michael Kerrisk a1d5601bee Removed trailing white space at end of lines 2008-06-12 11:52:08 +00:00
Michael Kerrisk 5c1decfcc2 Remove outdated FIXME. 2008-06-12 06:20:47 +00:00
Michael Kerrisk 8d2394ac80 Link to mkstemp.3 2008-06-12 06:20:27 +00:00
Michael Kerrisk 20523df7ef Wrap source lines so that new sentence starts on new line. 2008-06-12 06:09:19 +00:00
Michael Kerrisk 6cefc99668 Add description of mkostemp(), new in glibc 2.7.
Fix discussion of O_EXCL flag.
These functions may also fail for any of the errors described in open(2).
Various other rewordings.
2008-06-12 05:18:05 +00:00
Michael Kerrisk c81e8a4261 Various minor changes. 2008-06-12 05:16:43 +00:00
Michael Kerrisk ad22ad5568 ffix 2008-06-11 22:19:03 +00:00
Michael Kerrisk a9cfde1dbc SEE ALSO: add symlink.7 2008-06-11 21:50:53 +00:00
Michael Kerrisk 60435a752c SEE ALSO: Add hostname (7) 2008-06-11 21:31:42 +00:00
Michael Kerrisk 9d6299e824 Note that EEXIST applies, even if the pathname is a
(possibly dangling) symbolic link.
2008-06-11 15:26:41 +00:00
Michael Kerrisk 7f4d082329 Note that these functions are included in the next POSIX revision.
Remove editorial discussion about what the functions should have been named.
2008-06-11 13:52:05 +00:00
Michael Kerrisk c343e74cfd Added VERSIONS section. 2008-06-11 13:43:34 +00:00
Michael Kerrisk a93bcd70d8 Added FIXME 2008-06-11 09:55:35 +00:00
Michael Kerrisk 591e985663 tstamp update 2008-06-11 06:26:50 +00:00
Michael Kerrisk 7e8c232152 Remove statement that LSB deprecates the functions
"endmntent(), setmntent() [sic] and setmntent()".
This doesn't seem to be true (I can't find mention of
deprecation in any of the LSB specs).  Rather, LSB simply
doesn't specify these functions.  (LSB 1.3 had a spec of
setmntent(), but not getmntent() or endmntent(), and noted
that having a spec of setmntent() was of little use without
also having a spec of getmntent().)
See also https://lists.linux-foundation.org/pipermail/lsb-discuss/2006-October/003078.html
2008-06-11 06:23:44 +00:00
Michael Kerrisk aababe28d0 Recommend against drem(), in favor of remainder(). 2008-06-11 05:58:47 +00:00
Michael Kerrisk 8bb93cd4bb Control character names (^X) are writte boldface, without quotes. 2008-06-10 08:44:34 +00:00
Michael Kerrisk c45660d7d7 wrap long source lines 2008-06-09 21:12:25 +00:00
Michael Kerrisk 333a424b0e Try and bring some consistency to quotes. 2008-06-09 21:03:52 +00:00
Michael Kerrisk f81fb4445b s/\\'/\\(aq/ 2008-06-09 15:49:35 +00:00
Michael Kerrisk 84c517a450 Change use of quote characters to get better UTF-8 rendering. 2008-06-05 20:14:50 +00:00
Michael Kerrisk b8b45978b0 /'/\\'/ to produce better UTF rendering 2008-06-05 19:01:25 +00:00
Michael Kerrisk f8a07a2154 s/'/\\'/ to improve rendering in UTF-8. 2008-06-05 17:52:37 +00:00
Michael Kerrisk e9f6e8ea4c wfix 2008-06-03 12:25:15 +00:00
Michael Kerrisk 588ff0640b Update timestamp 2008-06-03 09:37:55 +00:00
Michael Kerrisk 7e56368006 Add ERRORS section referring to open(2). 2008-06-03 09:31:29 +00:00
Michael Kerrisk 23b98a4c61 Update timestamp 2008-05-29 08:02:43 +00:00
Michael Kerrisk 2aeec1f9c3 ffix 2008-05-14 11:49:22 +00:00
Michael Kerrisk 8d3d329b05 fix misplaced "Link with" text. 2008-05-14 11:47:44 +00:00
Michael Kerrisk 24a7082acb spfix 2008-05-12 20:23:12 +00:00
Michael Kerrisk 10ff70c578 spfix 2008-05-12 16:23:54 +00:00
Michael Kerrisk 95503bfb95 spfix 2008-05-09 21:18:49 +00:00
Michael Kerrisk 02770bac7c Fix bogus reference to variable 'strings': should be:
"the array of pointers".
2008-05-09 13:06:00 +00:00
Michael Kerrisk c841cb6b87 Update timestamp 2008-05-08 13:53:59 +00:00
Michael Kerrisk 7fb9948da8 Clarify description of 'rm_eo' field. 2008-05-06 11:21:26 +00:00
Michael Kerrisk 8a5a735634 SYNOPSIS: Fix declaration of valuep. 2008-05-06 07:47:45 +00:00
Michael Kerrisk 5744c9e140 Add more detail to the description of the fields in the
structure returned by dladdr().
2008-05-05 20:28:44 +00:00
Michael Kerrisk 22cddee1cd SEE ALSO: Add getgrouplist(3). 2008-05-04 18:31:25 +00:00
Michael Kerrisk 4d31e3eabf SEE ALSO: add ttyname(3). 2008-04-28 20:25:11 +00:00
Michael Kerrisk 7155eb96b8 Clarify wording describing range of values returned by rand(). 2008-04-28 20:24:52 +00:00
Michael Kerrisk f5f6fdda15 Point out that this function should be avoided in favour of posix_openpt(). 2008-04-26 21:15:52 +00:00
Michael Kerrisk dd67dce23c Describe treatment of close-on-exec flag by opendir() and fdopendir(). 2008-04-25 12:12:58 +00:00