Commit Graph

782 Commits

Author SHA1 Message Date
Michael Kerrisk 15740f8afd Added example program. 2005-12-09 14:24:10 +00:00
Michael Kerrisk 48afe71d57 Improvements after suggestions from Michael Haardt. 2005-12-09 14:23:53 +00:00
Michael Kerrisk be37f2c558 Added SEE ALSO for new pipe.7 page 2005-12-08 18:57:25 +00:00
Michael Kerrisk 2adb3bd6da New page providing overview of pipes and FIFOs. 2005-12-08 18:52:42 +00:00
Michael Kerrisk 7b5c3d0a78 Von: Urs Thuermann <urs@isnogud.escape.de>
An: "Michael Kerrisk" <mtk-manpages@gmx.net>
Betreff: Re: PATCH: man-pages-2.15, socket option SO_TIMESTAMP
Datum: 02 Dec 2005 08:00:11 +0100

Hello Michael,

> Okay -- let me know if your patch is still good to go after you've
> done your reading/testing.  Maybe I will try to do another 
> man-page release tomorrow, if you you can confirm the details in 2.6.

I have compared 2.4 and 2.6 src again and wrote two small test
programs (one sending udp packets, one receiving the packets and
calling SIOCGSTAMP w/ and w/o SO_TIMESTAMP).  Both, 2.4 and 2.6 have
the same behavior, which may be considered a bug.

When a packet is received its timestamp is stored in the sock
structure in kernel for SIOCGSTAMP to be retreived if SO_TIMESTAMP is
not set, otherwise it is written into a cmsg structure to be returned
with the recvmsg syscall.

Therefore, SIOCGSTAMP doesn't get the correct timestamp, when
SO_TIMESTAMP is set.  Instead, SIOCGSTAMP returns an ENOENT error, if
there has never been a packet reception while SO_TIMESTAMP unset,
since the field in the sock structure in the kernel is initialized to
"no timestamp" (0 in 2.4, -1 in 2.6).  Otherwise, SIOCGSTAMP returns
the timestamp found in the sock structure which is from the last
packet when SO_TIMESTAMP was not set, i.e. it may not be the timestamp
of the last packet received.

I have updated the man page socket(7) accordingly.  Patch is below.

urs
2005-12-08 16:36:30 +00:00
Michael Kerrisk 17d9609858 Added FIXMEs 2005-12-08 16:19:38 +00:00
Michael Kerrisk 86cfe9cb9e New documentation for the glibc specific fmemopen() and
open_memstream().
2005-12-08 16:15:17 +00:00
Michael Kerrisk a0aa388db9 Rearranged EAI_* list alphabetically. 2005-12-06 15:18:03 +00:00
Michael Kerrisk 6a7f0c48ab Formatting fix 2005-12-06 15:13:12 +00:00
Michael Kerrisk 7739f1d436 Removed BROWSER, since it seems not in fact to be common. 2005-12-06 13:13:48 +00:00
Michael Kerrisk 9b7116b18f Added GLIBC NOTES describing feature test macros required
to expose declaration of inet_aton().
2005-12-06 10:34:54 +00:00
Michael Kerrisk 2b185f9296 Added FIXME 2005-12-05 16:22:59 +00:00
Michael Kerrisk 7562c4e6f2 Added FIXME 2005-12-05 16:20:34 +00:00
Michael Kerrisk bf71d57c68 Added some FIXMEs 2005-12-05 16:16:07 +00:00
Michael Kerrisk 26905f6a55 Noted 200 millisecond celing imposed on TCP_CORK. 2005-12-05 13:38:18 +00:00
Michael Kerrisk fed1575042 Delete line that should have been deleted when applying
2.08 fix for this page.
2005-12-05 09:30:10 +00:00
Michael Kerrisk 67497d825e Start of 2.17 2005-12-05 09:25:01 +00:00
Michael Kerrisk ab4c694972 Start of 2.17 2005-12-05 09:23:16 +00:00
Michael Kerrisk bb9c42b967 Prepare for 2.16 2005-12-02 15:23:31 +00:00
Michael Kerrisk 2aeb02e015 Prepare for 2.16 2005-12-02 15:17:34 +00:00
Michael Kerrisk eeabb34e30 The -1 error return of shmat() should be cast "(void *)". 2005-12-02 08:09:44 +00:00
Michael Kerrisk c1164764b0 Added NOTES about INFTIM contant provided on some other implementations. 2005-12-01 16:03:36 +00:00
Michael Kerrisk f6179c2fbd Formatting fix 2005-12-01 14:05:11 +00:00
Michael Kerrisk 59e8f714bd Clarification: s%SOCK_PACKET%PF_INET/SOCK_PACKET% 2005-12-01 10:12:56 +00:00
Michael Kerrisk 1415e84202 Fix a typo: s/SOCK_RAW/SOCK_PACKET/ 2005-12-01 10:09:34 +00:00
Michael Kerrisk 42f4eb3871 Added Debian instructions for finding package maintainer 2005-12-01 09:29:44 +00:00
Michael Kerrisk 456107929b Some text that should have been a comment was not .\"-ed. 2005-12-01 09:10:11 +00:00
Michael Kerrisk ce9cd1fafc Start of 2.16 2005-11-30 16:46:59 +00:00
Michael Kerrisk 545903411a start of 2.16 2005-11-30 16:45:05 +00:00
Michael Kerrisk 7497dd9f2f Prepare for 2.15 2005-11-30 16:36:29 +00:00
Michael Kerrisk 4d094552cd prepare for 2.15 2005-11-30 16:31:38 +00:00
Michael Kerrisk af83a63726 Prepare for 2.15 2005-11-30 16:30:32 +00:00
Michael Kerrisk d994d57949 Added text noting that select()/poll() do no respect SO_RCVLOWAT. 2005-11-30 16:09:42 +00:00
Michael Kerrisk a14245c218 Add as new link to vm86.2 2005-11-30 15:24:52 +00:00
Michael Kerrisk ebe423512e Doc describing how to help with with man page maintenance. 2005-11-30 13:33:58 +00:00
Michael Kerrisk 500d7ebccb Various changes, notably more detail on FIXMEs 2005-11-30 13:33:11 +00:00
Michael Kerrisk ae67047c0c s/tcp_socket/udp_socket/ in example
Fixes Debian bug 340927
2005-11-30 08:38:58 +00:00
Michael Kerrisk ed149213f2 Minor changes 2005-11-29 17:59:53 +00:00
Michael Kerrisk 3bf6b2a437 Links to sigset.3 2005-11-29 17:42:57 +00:00
Michael Kerrisk 53191f2f12 New page describing Sysatem V signal API. 2005-11-29 17:40:16 +00:00
Michael Kerrisk 46c721e7b5 Added sigset(3) to SEE ALSO 2005-11-29 17:39:29 +00:00
Michael Kerrisk 0b321ee459 Added entries to SEE ALSO 2005-11-29 16:52:11 +00:00
Michael Kerrisk 9fe51d8dd9 Fixed SEE ALSO 2005-11-29 15:24:57 +00:00
Michael Kerrisk 40f5483976 Some minor wording fixes; clarified System V origins of
X/Open flavour of this function.
2005-11-29 15:13:21 +00:00
Michael Kerrisk 30ecea55d4 Changed SEE ALSO to reflect movement of sig* pages between sections. 2005-11-29 15:01:54 +00:00
Michael Kerrisk e3f86a1c91 Moved to section 3. 2005-11-29 14:58:23 +00:00
Michael Kerrisk 2368c06331 Links to sigvec.3 2005-11-29 14:54:39 +00:00
Michael Kerrisk 9c2866d728 New page describing BSD signal API. 2005-11-29 14:54:07 +00:00
Michael Kerrisk c7dd2834b5 These pages will be replaced by a new, better sigvec.3. 2005-11-29 14:46:00 +00:00
Michael Kerrisk c625361fea Noted that si_signo is unused on Linux. 2005-11-28 16:17:54 +00:00