]> git.ipfire.org Git - thirdparty/man-pages.git/log
thirdparty/man-pages.git
7 years agonamespaces.7: ffix
Michael Kerrisk [Sun, 11 Dec 2016 18:26:21 +0000 (19:26 +0100)] 
namespaces.7: ffix

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
7 years agonamespaces.7: Tweaks to text on ioctl() operations
Michael Kerrisk [Sun, 11 Dec 2016 18:23:50 +0000 (19:23 +0100)] 
namespaces.7: Tweaks to text on ioctl() operations

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
7 years agomount_namespaces.7: Minor clean-up (note a forward reference in the text)
Michael Kerrisk [Sun, 11 Dec 2016 15:16:36 +0000 (16:16 +0100)] 
mount_namespaces.7: Minor clean-up (note a forward reference in the text)

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
7 years agomount_namespaces.7, user_namespaces.7: Migrate subsection on mount restrictions to...
Michael Kerrisk [Sun, 11 Dec 2016 15:13:14 +0000 (16:13 +0100)] 
mount_namespaces.7, user_namespaces.7: Migrate subsection on mount restrictions to mount_namespaces(7)

This section material in the user_namespaces(7) page was written
before the creation of the mount_namespaces(7) manual page.
Nowadays, this material properly belongs in the newer page.

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
7 years agomount_namespaces.7: SEE ALSO: add user_namespaces(7)
Michael Kerrisk [Sun, 11 Dec 2016 14:58:54 +0000 (15:58 +0100)] 
mount_namespaces.7: SEE ALSO: add user_namespaces(7)

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
7 years agouser_namespaces.7: Add reference to namespaces(7) for NS_GET_USERNS operation
Michael Kerrisk [Sun, 11 Dec 2016 14:56:08 +0000 (15:56 +0100)] 
user_namespaces.7: Add reference to namespaces(7) for NS_GET_USERNS operation

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
7 years agouser_namespaces.7: Add reference to namespaces(7) for NS_GET_PARENT operation
Michael Kerrisk [Sun, 11 Dec 2016 14:52:06 +0000 (15:52 +0100)] 
user_namespaces.7: Add reference to namespaces(7) for NS_GET_PARENT operation

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
7 years agopid_namespaces.7: Refer to namespaces(7) for information about NS_GET_PARENT
Michael Kerrisk [Sun, 11 Dec 2016 14:49:29 +0000 (15:49 +0100)] 
pid_namespaces.7: Refer to namespaces(7) for information about NS_GET_PARENT

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
7 years agonamespaces.7: Document the NS_GET_USERNS and NS_GET_PARENT ioctl() operations
Michael Kerrisk [Sun, 11 Dec 2016 11:59:04 +0000 (12:59 +0100)] 
namespaces.7: Document the NS_GET_USERNS and NS_GET_PARENT ioctl() operations

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
7 years agoprctl.2: Minor tweaks to Eugene Syromyatnikov's patch
Michael Kerrisk [Mon, 12 Dec 2016 06:21:41 +0000 (07:21 +0100)] 
prctl.2: Minor tweaks to Eugene Syromyatnikov's patch

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
7 years agoprctl.2: Some additional details regarding PR_GET_UNALIGNED operation
Eugene Syromyatnikov [Mon, 12 Dec 2016 03:54:18 +0000 (06:54 +0300)] 
prctl.2: Some additional details regarding PR_GET_UNALIGNED operation

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
7 years agoprctl.2: Minor tweaks to Eugene Syromyatnikov's patch
Michael Kerrisk [Mon, 12 Dec 2016 06:17:48 +0000 (07:17 +0100)] 
prctl.2: Minor tweaks to Eugene Syromyatnikov's patch

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
7 years agoprctl.2: Note the output buffer size for PR_GET_TID_ADDRESS operation on x32/n32
Eugene Syromyatnikov [Mon, 12 Dec 2016 03:54:41 +0000 (06:54 +0300)] 
prctl.2: Note the output buffer size for PR_GET_TID_ADDRESS operation on x32/n32

Add note regarding the size of the output user space buffer
for PR_GET_TID_ADDRESS operation on x32/n32.

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
7 years agoexecve.2: tfix
Michael Kerrisk [Sun, 11 Dec 2016 18:24:25 +0000 (19:24 +0100)] 
execve.2: tfix

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
7 years agopid_namespaces.7: tfix
Michael Kerrisk [Sun, 11 Dec 2016 14:45:08 +0000 (15:45 +0100)] 
pid_namespaces.7: tfix

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
7 years agouser_namespaces.7: ffix
Michael Kerrisk [Sun, 11 Dec 2016 10:07:19 +0000 (11:07 +0100)] 
user_namespaces.7: ffix

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
7 years agonamespaces.7: ffix
Michael Kerrisk [Sun, 11 Dec 2016 10:06:24 +0000 (11:06 +0100)] 
namespaces.7: ffix

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
7 years agosetjmp.3: _BSD_SOURCE must be *explicitly* defined to get BSD setjmp() semantics
Michael Kerrisk [Sun, 11 Dec 2016 07:29:19 +0000 (08:29 +0100)] 
setjmp.3: _BSD_SOURCE must be *explicitly* defined to get BSD setjmp() semantics

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
7 years agosetjmp.3: Repair changes to description of pre-2.19 glibc default behavior
Michael Kerrisk [Sun, 11 Dec 2016 07:27:24 +0000 (08:27 +0100)] 
setjmp.3: Repair changes to description of pre-2.19 glibc default behavior

The changes in commit 2ae4c26dec0497 were a mistake.
The System V behavior was always the default for setjmp(3).

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
7 years agofeature_test_macros.7: Further tweaks to _REENTRANT description
Michael Kerrisk [Sat, 10 Dec 2016 11:58:31 +0000 (12:58 +0100)] 
feature_test_macros.7: Further tweaks to _REENTRANT description

Reviewed-by: Zack Weinberg <zackw@panix.com>
Reported-by: Zack Weinberg <zackw@panix.com>
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
7 years agofeature_test_macros.7: Note that "cc -pthread" defines _REENTRANT
Michael Kerrisk [Fri, 9 Dec 2016 12:34:05 +0000 (13:34 +0100)] 
feature_test_macros.7: Note that "cc -pthread" defines _REENTRANT

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
7 years agofeature_test_macros.7: Improve the text on _REENTRANT/_THREAD_SAFE deprecation
Michael Kerrisk [Fri, 9 Dec 2016 10:22:08 +0000 (11:22 +0100)] 
feature_test_macros.7: Improve the text on _REENTRANT/_THREAD_SAFE deprecation

[mtk] I did a little code spelunking and found the following:

1. In glibc 1.09 (tagged 1995-03-02 in the git history),
   __USE_REENTRANT, _THREAD_SAFE, and _REENTRANT do not appear.

2. In glibc-1.93 (tagged 1996-08-29 in the git history),
   __USE_REENTRANT governs the exposure of some "_r()"
   functions from about a dozen header files.  However, it is
   defined in <features.h> via

        #if defined (__USE_GNU) || defined (__USE_MISC)
        #define __USE_REENTRANT 1
        #endif

   _REENTRANT and _THREAD_SAFE solely govern declarations in
   <stdio.h>, where they expose declarations of a few "unlocked"
   stdio functions and use #define to redirect a few stdio
   function names to "locked" versions.

3. THREAD_SAFE and _REENTRANT first appear in the git logs
   1996-05-09.

4. About 9 months later, glibc 2.0.1 arrives on 1997-02-04
   (timestamp and tarball taken from
   https://ftp.gnu.org/gnu/libc/, since there is no tag in the
   git history; casual inspection of the logs suggests the
   glibc 2.0 release was about a week earlier.

   By now we have the following in <features.h>:

        #if defined _REENTRANT || defined _THREAD_SAFE
        #define __USE_REENTRANT 1
        #endif

   And _THREAD_SAFE, and _REENTRANT do not appear appear in
   other headers. However, by now, __USE_REENTRANT governs only
   the declarations of tmpnam_r() and getlogin_r()

In other words, the window of time where _REENTRANT and
_THREAD_SAFE did anything much in glibc was quite short, IIUC.

Cowritten-by: Zack Weinberg <zackw@panix.com>
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
7 years agogetlogin.3: Remove deprecated _REENTRANT from FTM requirements for getlogin_r()
Michael Kerrisk [Thu, 8 Dec 2016 08:54:06 +0000 (09:54 +0100)] 
getlogin.3: Remove deprecated _REENTRANT from FTM requirements for getlogin_r()

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
7 years agofeature_test_macros.7: Note that _REENTRANT and _THREAD_SAFE are now deprecated
Michael Kerrisk [Thu, 8 Dec 2016 08:52:38 +0000 (09:52 +0100)] 
feature_test_macros.7: Note that _REENTRANT and _THREAD_SAFE are now deprecated

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
7 years agosched_setscheduler.2: Mention SCHED_DEADLINE
Michael Kerrisk [Sat, 10 Dec 2016 09:34:46 +0000 (10:34 +0100)] 
sched_setscheduler.2: Mention SCHED_DEADLINE

Give the reader a clue that there is another policy()
available that can't be set via sched_setscheduler(2).

See https://bugzilla.redhat.com/show_bug.cgi?id=1390546

Reported-by: Daniel Berrange <berrange@redhat.com>
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
7 years agosyscall.2: Minor fix in example program
Michael Kerrisk [Sat, 10 Dec 2016 09:06:24 +0000 (10:06 +0100)] 
syscall.2: Minor fix in example program

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
7 years agosetjmp.3: tfix
Michael Kerrisk [Sat, 10 Dec 2016 08:59:39 +0000 (09:59 +0100)] 
setjmp.3: tfix

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
7 years agosignal.2: wfix
Michael Kerrisk [Sat, 10 Dec 2016 08:57:14 +0000 (09:57 +0100)] 
signal.2: wfix

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
7 years agosyscalls.2: Add ppc_swapcontext(2)
Michael Kerrisk [Sat, 10 Dec 2016 11:21:39 +0000 (12:21 +0100)] 
syscalls.2: Add ppc_swapcontext(2)

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
7 years agowrite.2: wfix
Michael Kerrisk [Sat, 10 Dec 2016 10:33:46 +0000 (11:33 +0100)] 
write.2: wfix

See https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=574041

Reported-by: Daniel Baluta <daniel.baluta@gmail.com>
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
7 years agostat.2: ffix
Michael Kerrisk [Sat, 10 Dec 2016 10:28:09 +0000 (11:28 +0100)] 
stat.2: ffix

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
7 years agoenviron.7: tfix
Michael Kerrisk [Sat, 10 Dec 2016 10:23:42 +0000 (11:23 +0100)] 
environ.7: tfix

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
7 years agomdoc.7: Add a cross-reference to groff_mdoc(7)
Michael Kerrisk [Sat, 10 Dec 2016 10:12:44 +0000 (11:12 +0100)] 
mdoc.7: Add a cross-reference to groff_mdoc(7)

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
7 years agomdoc.7: wfix
Michael Kerrisk [Sat, 10 Dec 2016 10:11:28 +0000 (11:11 +0100)] 
mdoc.7: wfix

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
7 years agofsync.2: SEE ALSO: add fflush(3)
Michael Kerrisk [Sat, 10 Dec 2016 09:58:51 +0000 (10:58 +0100)] 
fsync.2: SEE ALSO: add fflush(3)

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
7 years agofsync.2: SEE ALSO: add fileno(3)
Michael Kerrisk [Sat, 10 Dec 2016 09:57:02 +0000 (10:57 +0100)] 
fsync.2: SEE ALSO: add fileno(3)

fileno(3) is useful if one is combining fflush(3)/fclose(3)
and fsync(2).

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
7 years agofclose.3, fflush.3: SEE ALSO: add fileno(2)
Michael Kerrisk [Sat, 10 Dec 2016 09:56:12 +0000 (10:56 +0100)] 
fclose.3, fflush.3: SEE ALSO: add fileno(2)

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
7 years agofclose.3: tfix
Michael Kerrisk [Sat, 10 Dec 2016 09:47:56 +0000 (10:47 +0100)] 
fclose.3: tfix

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
7 years agoclone.2: Remove ancient libc5 details
Michael Kerrisk [Fri, 9 Dec 2016 12:12:43 +0000 (13:12 +0100)] 
clone.2: Remove ancient libc5 details

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
7 years agoinsque.3: Remove mention of ancient systems (libc4 and libc5)
Michael Kerrisk [Fri, 9 Dec 2016 12:06:43 +0000 (13:06 +0100)] 
insque.3: Remove mention of ancient systems (libc4 and libc5)

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
7 years agoreboot.2: Remove mention of ancient libc4 and lib5
Michael Kerrisk [Fri, 9 Dec 2016 12:05:29 +0000 (13:05 +0100)] 
reboot.2: Remove mention of ancient libc4 and lib5

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
7 years agoreboot.2: wfix
Michael Kerrisk [Fri, 9 Dec 2016 12:03:59 +0000 (13:03 +0100)] 
reboot.2: wfix

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
7 years agoaccept.2: Simplify the discussion of 'socklen_t'
Michael Kerrisk [Fri, 9 Dec 2016 12:00:46 +0000 (13:00 +0100)] 
accept.2: Simplify the discussion of 'socklen_t'

We don't really need to list the old OSes in this discussion.

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
7 years agobind.2, connect.2, getpeername.2, getsockname.2, getsockopt.2: Replace discussion...
Michael Kerrisk [Fri, 9 Dec 2016 11:51:23 +0000 (12:51 +0100)] 
bind.2, connect.2, getpeername.2, getsockname.2, getsockopt.2: Replace discussion of 'socklen_t' with reference to accept(2)

The discussion of 'socklen_t' editorializes and is repeated
across several pages. Replace it with a reference to accept(2),
where some details about this type are provided.

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
7 years agolibc.7: wfix
Michael Kerrisk [Fri, 9 Dec 2016 12:14:26 +0000 (13:14 +0100)] 
libc.7: wfix

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
7 years agolibc.7: wfix
Michael Kerrisk [Fri, 9 Dec 2016 11:43:15 +0000 (12:43 +0100)] 
libc.7: wfix

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
7 years agolibc.7: Add a note on why glibc 2.x uses the soname libc.so.6
Michael Kerrisk [Fri, 9 Dec 2016 11:41:04 +0000 (12:41 +0100)] 
libc.7: Add a note on why glibc 2.x uses the soname libc.so.6

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
7 years agolibc.7: Add a few historical details on Linux libc4 and libc5
Michael Kerrisk [Fri, 9 Dec 2016 11:39:28 +0000 (12:39 +0100)] 
libc.7: Add a few historical details on Linux libc4 and libc5

Just for historical interest. Details taken from
http://www.linux-m68k.org/faq/glibcinfo.html.

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
7 years agosetjmp.3: srcfix
Michael Kerrisk [Fri, 9 Dec 2016 08:33:26 +0000 (09:33 +0100)] 
setjmp.3: srcfix

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
7 years agosetjmp.3: tfix
Michael Kerrisk [Fri, 9 Dec 2016 08:28:51 +0000 (09:28 +0100)] 
setjmp.3: tfix

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
7 years agosetjmp.3: Improve description of pre-2.19 glibc default behavior
Michael Kerrisk [Fri, 9 Dec 2016 08:25:49 +0000 (09:25 +0100)] 
setjmp.3: Improve description of pre-2.19 glibc default behavior

Make it clearer that the default FTM settings result in
BSD semantics for setjmp().

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
7 years agobasename.3: wfix
Michael Kerrisk [Fri, 9 Dec 2016 08:06:11 +0000 (09:06 +0100)] 
basename.3: wfix

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
7 years agomq_close.3: DESCRIPTION: add reference to mq_notify(3)
Michael Kerrisk [Thu, 8 Dec 2016 13:06:34 +0000 (14:06 +0100)] 
mq_close.3: DESCRIPTION: add reference to mq_notify(3)

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
7 years agotmpnam.3: wfix
Michael Kerrisk [Thu, 8 Dec 2016 13:06:02 +0000 (14:06 +0100)] 
tmpnam.3: wfix

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
7 years agoclose.2: Place discussion of error handling under a subheading in NOTES
Michael Kerrisk [Thu, 8 Dec 2016 09:07:50 +0000 (10:07 +0100)] 
close.2: Place discussion of error handling under a subheading in NOTES

No content changes.

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
7 years agofeature_test_macros.7: ffix
Michael Kerrisk [Thu, 8 Dec 2016 08:59:23 +0000 (09:59 +0100)] 
feature_test_macros.7: ffix

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
7 years agotmpnam.3: Properly document tmpnam_r(3)
Michael Kerrisk [Thu, 8 Dec 2016 08:38:08 +0000 (09:38 +0100)] 
tmpnam.3: Properly document tmpnam_r(3)

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
7 years agostrtod.3: SEE ALSO: add strfromd(3)
Wainer dos Santos Moschetta [Wed, 7 Dec 2016 12:54:54 +0000 (10:54 -0200)] 
strtod.3: SEE ALSO: add strfromd(3)

Signed-off-by: Wainer dos Santos Moschetta <wainersm@linux.vnet.ibm.com>
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
7 years agoprintf.3: SEE ALSO: add strfromd(3)
Wainer dos Santos Moschetta [Wed, 7 Dec 2016 12:54:53 +0000 (10:54 -0200)] 
printf.3: SEE ALSO: add strfromd(3)

Signed-off-by: Wainer dos Santos Moschetta <wainersm@linux.vnet.ibm.com>
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
7 years agoatof.3: SEE ALSO: add strfromd(3)
Wainer dos Santos Moschetta [Wed, 7 Dec 2016 12:54:52 +0000 (10:54 -0200)] 
atof.3: SEE ALSO: add strfromd(3)

Signed-off-by: Wainer dos Santos Moschetta <wainersm@linux.vnet.ibm.com>
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
7 years agostrfroml.3: New link to strfromd(3)
Wainer dos Santos Moschetta [Wed, 7 Dec 2016 12:54:51 +0000 (10:54 -0200)] 
strfroml.3: New link to strfromd(3)

Signed-off-by: Wainer dos Santos Moschetta <wainersm@linux.vnet.ibm.com>
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
7 years agostrfromf.3: New link to strfromd(3)
Wainer dos Santos Moschetta [Wed, 7 Dec 2016 12:54:50 +0000 (10:54 -0200)] 
strfromf.3: New link to strfromd(3)

Signed-off-by: Wainer dos Santos Moschetta <wainersm@linux.vnet.ibm.com>
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
7 years agostrfromd.3: Minor tweaks to Wainer dos Santos Moschetta's page
Michael Kerrisk [Wed, 7 Dec 2016 15:36:22 +0000 (16:36 +0100)] 
strfromd.3: Minor tweaks to Wainer dos Santos Moschetta's page

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
7 years agostrfromd.3: New page documenting strfromd(3), strfromf(3), and strfroml(3)
Wainer dos Santos Moschetta [Wed, 7 Dec 2016 12:54:49 +0000 (10:54 -0200)] 
strfromd.3: New page documenting strfromd(3), strfromf(3), and strfroml(3)

The ISO/IEC TS 18661-1 specifies the strfrom() class
of functions that convert a float-point value to string.

The strfromd(), strfromf(), and strfroml() functions are
introduced (commit 6962682ffe5e) in GNU C Library 2.25.

Signed-off-by: Wainer dos Santos Moschetta <wainersm@linux.vnet.ibm.com>
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
7 years agosock_diag.7: tfix
Michael Kerrisk [Wed, 7 Dec 2016 15:03:07 +0000 (16:03 +0100)] 
sock_diag.7: tfix

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
7 years agosock_diag.7: More minor fixes to Dmitry's patch
Michael Kerrisk [Wed, 7 Dec 2016 14:50:47 +0000 (15:50 +0100)] 
sock_diag.7: More minor fixes to Dmitry's patch

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
7 years agosock_diag.7: ffix: better hanging lists
Michael Kerrisk [Wed, 7 Dec 2016 14:50:04 +0000 (15:50 +0100)] 
sock_diag.7: ffix: better hanging lists

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
7 years agosock_diag.7: ffix
Michael Kerrisk [Wed, 7 Dec 2016 14:43:47 +0000 (15:43 +0100)] 
sock_diag.7: ffix

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
7 years agosock_diag.7: Tweaks to Dmitry Levin's page
Michael Kerrisk [Wed, 7 Dec 2016 14:40:29 +0000 (15:40 +0100)] 
sock_diag.7: Tweaks to Dmitry Levin's page

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
7 years agosock_diag.7: ffix: white space tweaks in example program
Michael Kerrisk [Wed, 7 Dec 2016 14:23:33 +0000 (15:23 +0100)] 
sock_diag.7: ffix: white space tweaks in example program

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
7 years agosock_diag.7: srcfix: rewrap long lines
Michael Kerrisk [Wed, 7 Dec 2016 14:18:48 +0000 (15:18 +0100)] 
sock_diag.7: srcfix: rewrap long lines

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
7 years agonetlink.7: Rework position of NETLINK_SOCK_DIAG in list
Michael Kerrisk [Wed, 7 Dec 2016 14:15:53 +0000 (15:15 +0100)] 
netlink.7: Rework position of NETLINK_SOCK_DIAG in list

Essentially to fix a formatting issue, where the list head
item wrapped past the 80-column limit when rendered.

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
7 years agonetlink.7: Add references to sock_diag(7)
Dmitry V. Levin [Wed, 7 Dec 2016 14:00:15 +0000 (17:00 +0300)] 
netlink.7: Add references to sock_diag(7)

Signed-off-by: Dmitry V. Levin <ldv@altlinux.org>
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
7 years agonetlink.7: Document NETLINK_INET_DIAG rename to NETLINK_SOCK_DIAG
Dmitry V. Levin [Wed, 7 Dec 2016 13:59:58 +0000 (16:59 +0300)] 
netlink.7: Document NETLINK_INET_DIAG rename to NETLINK_SOCK_DIAG

Signed-off-by: Dmitry V. Levin <ldv@altlinux.org>
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
7 years agosock_diag.7: New page documenting NETLINK_SOCK_DIAG interface
Pavel Emelyanov [Wed, 7 Dec 2016 13:59:43 +0000 (16:59 +0300)] 
sock_diag.7: New page documenting NETLINK_SOCK_DIAG interface

Co-authored-by: Dmitry V. Levin <ldv@altlinux.org>
Signed-off-by: Pavel Emelyanov <xemul@virtuozzo.com>
Signed-off-by: Dmitry V. Levin <ldv@altlinux.org>
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
7 years agonetlink.7: ffix
Dmitry V. Levin [Wed, 7 Dec 2016 14:04:24 +0000 (17:04 +0300)] 
netlink.7: ffix

Signed-off-by: Dmitry V. Levin <ldv@altlinux.org>
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
7 years agoclose.2: Note that future POSIX plans to require that the FD is closed on error
Michael Kerrisk [Wed, 7 Dec 2016 07:28:29 +0000 (08:28 +0100)] 
close.2: Note that future POSIX plans to require that the FD is closed on error

See http://austingroupbugs.net/view.php?id=529#c1200.

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
7 years agoclose.2: Further reworking of discussion of error return from close()
Michael Kerrisk [Wed, 7 Dec 2016 07:26:44 +0000 (08:26 +0100)] 
close.2: Further reworking of discussion of error return from close()

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
7 years agoclose.2: srcfix: FIXME
Michael Kerrisk [Tue, 6 Dec 2016 15:29:39 +0000 (16:29 +0100)] 
close.2: srcfix: FIXME

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
7 years agoclose.2: Further clarify how to treat an error return
Michael Kerrisk [Tue, 6 Dec 2016 15:23:33 +0000 (16:23 +0100)] 
close.2: Further clarify how to treat an error return

Further clarify that an error return should be used only
for diagnostic or remedial purposes.

Lifting Linus's words freely from
http://lkml.iu.edu/hypermail/linux/kernel/0207.2/0409.html
Re: close return value (was Re: [ANNOUNCE] Ext3 vs Reiserfs benchmarks)
Date: Wed Jul 17 2002 - 12:43:57 EST

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
7 years agoclose.2: Other UNIX implementations also close the FD, even if reporting an error
Michael Kerrisk [Tue, 6 Dec 2016 15:03:51 +0000 (16:03 +0100)] 
close.2: Other UNIX implementations also close the FD, even if reporting an error

Looking at some historical source code (mostly from [1]) suggests
that the "close() always closes regardless of error return"
behavior has a long history, predating even POSIX.1-1990.

For example, in SVR4 for x86 (from the file sysvr4.tar.bz2 at
[1]), we see the following:

        int
        close(uap, rvp)
                register struct closea *uap;
                rval_t *rvp;
        {
                file_t *fp;
                register int error;

                if (error = getf(uap->fdes, &fp))
                        return error;
                error = closef(fp);
                setf(uap->fdes, NULLFP);
                return error;
        }

In the above, getf() can return EBADF. The other errors are
returned by closef(), but the file descriptor is deallocated
regardless of errors by setf().

A similar pattern seems to have been preserved into at least late
OpenSolaris days (verified from looking at the initial commit of
the illumos source code). There we find the following in
closeandsetf() (called by close()):

        error = closef(fp);

        setf(fd, newfp);

        return (error);

Looking at the code of closef() in AIX 4.1.3 suggests that, as on
on Linux and FreeBSD, the open file is always released, regardless
of errors.

For Irix, 6.5.5, I'm not sure (the code is not so easy to quickly
read); it may be that it does return errors while leaving the FD
open.

[1] https://archive.org/download/various_operating_system_source_code

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
7 years agoclose.2: Minor text reworking
Michael Kerrisk [Tue, 6 Dec 2016 14:48:54 +0000 (15:48 +0100)] 
close.2: Minor text reworking

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
7 years agoclose.2: ffix
Michael Kerrisk [Tue, 6 Dec 2016 14:45:24 +0000 (15:45 +0100)] 
close.2: ffix

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
7 years agoclose.2: Minor text relocation
Michael Kerrisk [Tue, 6 Dec 2016 14:42:36 +0000 (15:42 +0100)] 
close.2: Minor text relocation

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
7 years agoclose.2: Clarify the variation in EINTR behavior per POSIX and other systems
Michael Kerrisk [Tue, 6 Dec 2016 14:40:05 +0000 (15:40 +0100)] 
close.2: Clarify the variation in EINTR behavior per POSIX and other systems

See also https://news.ycombinator.com/item?id=3363819
and http://www.daemonology.net/blog/2011-12-17-POSIX-close-is-broken.html

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
7 years agoclose.2: wfix
Michael Kerrisk [Tue, 6 Dec 2016 14:13:21 +0000 (15:13 +0100)] 
close.2: wfix

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
7 years agoclose.2: Rework initial paragraph in NOTES on checking close() errors
Michael Kerrisk [Tue, 6 Dec 2016 14:09:55 +0000 (15:09 +0100)] 
close.2: Rework initial paragraph in NOTES on checking close() errors

As Daniel Wagner noted, saying on the one hand that failing
to check the return value of close() is a "serious error"
seems contradicted by the next paragraph that notes that
the return value should be used for "just diagnostics".
Rework the text to resolve the apparent contradiction.

Reported-by: Daniel Wagner <wagi@monom.org>
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
7 years agoclose.2: wfix
Michael Kerrisk [Tue, 6 Dec 2016 14:00:59 +0000 (15:00 +0100)] 
close.2: wfix

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
7 years agoresolv.conf.5: Timeout does not map to resolver API calls
Carlos O'Donell [Mon, 5 Dec 2016 16:09:54 +0000 (11:09 -0500)] 
resolv.conf.5: Timeout does not map to resolver API calls

I'm posting this patch to clarify the timeout behaviour because
there have been developers who expect this timeout to mean
something it is not.

The timeout (and by proxy attempts) does not map to resolver API
calls.  For example a single call to getent might involve multiple
resolution requests to the resolvers listed in resolv.conf and
each request will use TIMEOUT and be attempted at least ATTEMPT
times. A developer using the resolver API cannot easily compute
any given timeout because the implementation may change e.g. A and
AAAA queries made in parallel.  A system administrator uses this
setting to ensure there is a desirable timeout on any request to
any of the nameservers listed in resolv.conf, but no guarantees
exist beyond that.

Reviewed-by: Florian Weimer <fweimer@redhat.com>
Signed-off-by: Carlos O'Donell <carlos@redhat.com>
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
7 years agommap.2: srcfix: FIXME
Michael Kerrisk [Mon, 5 Dec 2016 15:07:12 +0000 (16:07 +0100)] 
mmap.2: srcfix: FIXME

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
7 years agostrerror.3: srcfix: FIXME
Michael Kerrisk [Mon, 5 Dec 2016 14:59:38 +0000 (15:59 +0100)] 
strerror.3: srcfix: FIXME

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
7 years agoopen.2: srcfix: FIXME
Michael Kerrisk [Mon, 5 Dec 2016 14:57:37 +0000 (15:57 +0100)] 
open.2: srcfix: FIXME

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
7 years agoptsname.3: Note that ptsname_r() is proposed for future inclusion in POSIX.1
Michael Kerrisk [Mon, 5 Dec 2016 14:54:59 +0000 (15:54 +0100)] 
ptsname.3: Note that ptsname_r() is proposed for future inclusion in POSIX.1

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
7 years agoptsname.3: CONFORMING TO:: clarify that only ptsname() is standardized (so far)
Michael Kerrisk [Mon, 5 Dec 2016 14:52:20 +0000 (15:52 +0100)] 
ptsname.3: CONFORMING TO:: clarify that only ptsname() is standardized (so far)

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
7 years agoclose.2: Further clarify that close() should not be retried after an error
Michael Kerrisk [Mon, 5 Dec 2016 13:23:20 +0000 (14:23 +0100)] 
close.2: Further clarify that close() should not be retried after an error

See Linus ancient comments re EINTR in
    https://lkml.org/lkml/headers/2005/9/10/129
    Date Sat, 10 Sep 2005 12:00:01 -0700 (PDT)
    From Linus Torvalds <>
    Subject Re: [patch 7/7] uml: retry host close() on EINTR

The FreeBSD 11.0 close() man page says similar:

    In case of any error except EBADF, the supplied file
    descriptor is deallocated and therefore is no longer valid.

For AIX:
http://publib16.boulder.ibm.com/doc_link/en_US/a_doc_lib/libs/basetrf1/close.htm

    If the FileDescriptor parameter refers to a device and the
    close subroutine actually results in a device close, and the
    device close routine returns an error, the error is returned
    to the application. However, the FileDescriptor parameter is
    considered closed and it may not be used in any subsequent
    calls.

See also:
http://austingroupbugs.net/view.php?id=529
and in particular:
http://austingroupbugs.net/view.php?id=529#c1200

Reported-by: Daniel Wagner <wagi@monom.org>
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
7 years agosymlink.7: SEE ALSO: add namei(1)
Michael Kerrisk [Mon, 5 Dec 2016 11:31:37 +0000 (12:31 +0100)] 
symlink.7: SEE ALSO: add namei(1)

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
7 years agocredentials.7: SEE ALSO: add shadow(5)
Michael Kerrisk [Mon, 5 Dec 2016 11:28:21 +0000 (12:28 +0100)] 
credentials.7: SEE ALSO: add shadow(5)

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
7 years agonice.2: Move discussion of handling the -1 success return to RETURN VALUE
Michael Kerrisk [Mon, 5 Dec 2016 08:18:40 +0000 (09:18 +0100)] 
nice.2: Move discussion of handling the -1 success return to RETURN VALUE

This detail was rather hidden in NOTES. Also, rework the text
a little.

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
7 years agonice.2: CONFORMING TO: Remove an ancient SVr4 detail on errno values
Michael Kerrisk [Mon, 5 Dec 2016 08:16:00 +0000 (09:16 +0100)] 
nice.2: CONFORMING TO: Remove an ancient SVr4 detail on errno values

At this stage, vague details (when does EINVAL get returned?) of
ancient implementations are little more than noise in the page.

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
7 years agonice.2: Rework discussion of nice() return value and standards conformance
Michael Kerrisk [Mon, 5 Dec 2016 08:13:52 +0000 (09:13 +0100)] 
nice.2: Rework discussion of nice() return value and standards conformance

Make the text a little clearer. In particular, clarify that the
raw system call (still) returns 0 on success.

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>