Commit Graph

101 Commits

Author SHA1 Message Date
Michael Kerrisk a917b0bb2c Small wording changes around discussion of SO_BSDCOMPAT.
Fixed a couple of wording errors elsewhere.
Reformatted some long lines.
2005-12-14 10:27:45 +00:00
Michael Kerrisk 514d7e5b92 Updated discussion of SO_BSDCOMPAT.
Reformatted some long lines.
2005-12-14 10:27:30 +00:00
Michael Kerrisk 9ae132041b Updated discussion of SO_BSDCOMPAT. 2005-12-14 10:27:10 +00:00
Michael Kerrisk 7199370f3a Further refinement of SO_TIMESTAMP from Urs Thuermann. 2005-12-13 10:46:50 +00:00
Michael Kerrisk 48afe71d57 Improvements after suggestions from Michael Haardt. 2005-12-09 14:23:53 +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 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 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 d994d57949 Added text noting that select()/poll() do no respect SO_RCVLOWAT. 2005-11-30 16:09:42 +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 0b321ee459 Added entries to SEE ALSO 2005-11-29 16:52:11 +00:00
Michael Kerrisk 67a99ba02c Added a few words to reflect the fact that several of the section
7 pages provide overviews of various topics.
2005-11-22 16:35:17 +00:00
Michael Kerrisk 4f62997d55 Added pthreads.7 to SEE ALSO. 2005-11-17 13:38:34 +00:00
Michael Kerrisk fb8959ea57 Added FIXME? 2005-11-15 15:00:12 +00:00
Michael Kerrisk bd12ab88af Formatting fixes 2005-11-03 12:47:27 +00:00
Michael Kerrisk 8478ee0279 Formatting fixes 2005-11-02 13:55:25 +00:00
Michael Kerrisk 197889d00b Formatting fixes 2005-11-02 10:53:26 +00:00
Michael Kerrisk 35fb7de5c5 Added comment 2005-10-31 09:48:53 +00:00
Michael Kerrisk 3dfe7e0ddd Reworked part of the discussion of exec() and capabilities.
Added sub-section "Effect of User ID Changes on Capabilities".
Reworked discussion of CAP_SYS_ADMIN and file-max.
2005-10-28 17:41:30 +00:00
Michael Kerrisk a749f870a8 s/XXX/FIXME/ 2005-10-26 11:27:52 +00:00
Michael Kerrisk 9bc4f5f8d9 Minor changes 2005-10-24 11:22:35 +00:00
Michael Kerrisk 1e32103455 Formatting fixes 2005-10-20 15:11:10 +00:00
Michael Kerrisk b5cc2ffbaa Formatting fixes 2005-10-19 14:48:35 +00:00
Michael Kerrisk 4a225b7a41 Formatting fixes 2005-10-19 14:16:57 +00:00
Michael Kerrisk 4009dcc539 formatting fix 2005-10-19 13:21:05 +00:00
Michael Kerrisk e1d6264d9f Manual fixes for parentheses formatting 2005-10-19 07:29:28 +00:00
Michael Kerrisk 63aa9df02f Automated unformatting of parentheses using unformat_parens.sh 2005-10-19 07:07:02 +00:00
Michael Kerrisk 5872bd2f1d Small changes to new page 2005-10-10 13:24:08 +00:00
Michael Kerrisk 1ae9f93747 Pseudo-terminals -- new page 2005-10-10 13:00:25 +00:00
Michael Kerrisk f8b8dd887d Update description of SO_RCVLOWAT and SO_SNDLOWAT.
(fix derived from Fedora man-pages-2.07-7).
2005-10-04 13:18:49 +00:00
Michael Kerrisk 70d015eeb6 Fix discussion of IPC_RECVTTL / IP_TTL 2005-09-19 12:18:24 +00:00
Michael Kerrisk b5188e9abb added fixme 2005-09-15 17:13:50 +00:00
Michael Kerrisk 479377fb38 Updated SEE ALSO to reflect splitting of sigaction.2 into
sigaction.2, sigsuspend.2, sigpending.2, sigprocmask.2
2005-09-15 09:20:05 +00:00
Michael Kerrisk 73b3a56860 Clarified details of use of SO_PEERCRED. 2005-08-16 17:17:16 +00:00
Michael Kerrisk 4528678725 Formatting fix 2005-08-16 15:14:36 +00:00
Michael Kerrisk 5eaee3d9f5 Added CAP_AUDIT_CONTROL and CAP_AUDIT_WRITE 2005-08-16 12:32:03 +00:00
Michael Kerrisk 97604d956d Added kerebl version number of UDP_CORK 2005-08-16 12:09:15 +00:00
Michael Kerrisk 74df8ba182 Added description of UDP_CORK 2005-08-16 12:08:07 +00:00
Michael Kerrisk d270596481 s/SOL_UDP/IPPROTO_UDP/
s/SOL_TCP/IPPROTO_TCP/
s/SOL_IP/IPPROTO_IP/
2005-08-16 11:47:35 +00:00
Michael Kerrisk 331da7c3a0 RFC references are now always writen as "RFC\ nnn" (not "RFC nnn" or
"RFCnnn").
2005-07-20 07:50:45 +00:00
Michael Kerrisk 3dbef8d0ef Clarify that port number is 16 bit; reformat long lines 2005-07-20 07:43:05 +00:00
Michael Kerrisk a5e0a0e427 Formatting fixes. 2005-07-19 15:36:19 +00:00
Michael Kerrisk e360c3a9cf s/pid/PID/ 2005-07-19 06:32:54 +00:00
Michael Kerrisk 1aa1268f29 s/super user/superuser/ 2005-07-18 17:13:06 +00:00