]> git.ipfire.org Git - thirdparty/man-pages.git/log
thirdparty/man-pages.git
15 years agoReady for 3.11 man-pages-3.11
Michael Kerrisk [Tue, 7 Oct 2008 08:59:28 +0000 (10:59 +0200)] 
Ready for 3.11

15 years agoRemoved trailing white space at end of lines
Michael Kerrisk [Tue, 7 Oct 2008 08:58:44 +0000 (10:58 +0200)] 
Removed trailing white space at end of lines

15 years agoExpanded tabs
Michael Kerrisk [Tue, 7 Oct 2008 08:58:35 +0000 (10:58 +0200)] 
Expanded tabs

15 years agoChanges: Minor cleanups
Michael Kerrisk [Tue, 7 Oct 2008 08:54:13 +0000 (10:54 +0200)] 
Changes: Minor cleanups

15 years agoChanges: update version number in heading line
Michael Kerrisk [Tue, 7 Oct 2008 07:41:53 +0000 (09:41 +0200)] 
Changes: update version number in heading line

15 years agoChanges: this is the Changelog for 3.11
Michael Kerrisk [Tue, 7 Oct 2008 07:33:36 +0000 (09:33 +0200)] 
Changes: this is the Changelog for 3.11

15 years agoumount2.2: Change link to point to new umount.2
Michael Kerrisk [Mon, 6 Oct 2008 14:41:08 +0000 (16:41 +0200)] 
umount2.2: Change link to point to new umount.2

The umount2() material migrated from mount.2 to umount.2

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
15 years agotstamp
Michael Kerrisk [Mon, 6 Oct 2008 14:39:20 +0000 (16:39 +0200)] 
tstamp

15 years agotstamp
Michael Kerrisk [Mon, 6 Oct 2008 14:26:23 +0000 (16:26 +0200)] 
tstamp

15 years agopause.2: Small rewordings of DESCRIPTION.
Michael Kerrisk [Mon, 6 Oct 2008 14:25:46 +0000 (16:25 +0200)] 
pause.2: Small rewordings of DESCRIPTION.

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
15 years agofallocate.2: Note lack of glibc wrapper; caller must use syscall(2)
Michael Kerrisk [Mon, 6 Oct 2008 13:29:45 +0000 (15:29 +0200)] 
fallocate.2: Note lack of glibc wrapper; caller must use syscall(2)

Glibc doesn't (and quite probably won't) include a wrapper for this
system call.  Therefore, point out that potential callers will need
to use syscall(2), and rewrite the RETURN VALUE text to show things
as they would be if syscall() is used.

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
15 years agofallocate: Refer reader to posix_fallocate(3) for portable interface
Michael Kerrisk [Mon, 6 Oct 2008 13:08:21 +0000 (15:08 +0200)] 
fallocate: Refer reader to posix_fallocate(3) for portable interface

Add a para to start of page that points out that this is the
low-level, Linux-specific API, and point the reader to posix_fallocate(3)
for the portable API.

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
15 years agoproc.5: tstamp
Michael Kerrisk [Mon, 6 Oct 2008 13:07:03 +0000 (15:07 +0200)] 
proc.5: tstamp

15 years agoproc.5: rewrite and simplify description of /proc/mounts
Michael Kerrisk [Mon, 6 Oct 2008 12:23:00 +0000 (14:23 +0200)] 
proc.5: rewrite and simplify description of /proc/mounts

Most of the relevant discussion is now under /proc/PID/mounts;
all that needs to be here is a mention of the pre-2.4.19
system-wide namespace situation, and a reference to the
discussion under /proc/PID/mounts.

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
15 years agomount.2: srcfix: remove outdated FIXME.
Michael Kerrisk [Mon, 6 Oct 2008 12:18:16 +0000 (14:18 +0200)] 
mount.2: srcfix: remove outdated FIXME.

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
15 years agoproc.5: Add description of /proc/PID/mounts
Michael Kerrisk [Mon, 6 Oct 2008 12:16:16 +0000 (14:16 +0200)] 
proc.5: Add description of /proc/PID/mounts

Largely cribbed from existing /proc/mounts discussion, which is
about to be rewritten.

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
15 years agomount.2: Add description of namespace
Michael Kerrisk [Mon, 6 Oct 2008 12:07:03 +0000 (14:07 +0200)] 
mount.2: Add description of namespace

Describe per-process namespaces, including discussion
of clone() and unshare CLONE_NEWNS, and /proc/PID/mounts.

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
15 years agomount.2: List a few other file systems that we may see in /proc/filesystems
Michael Kerrisk [Mon, 6 Oct 2008 11:19:51 +0000 (13:19 +0200)] 
mount.2: List a few other file systems that we may see in /proc/filesystems

Add some modern file systems to that list (xfs, jfs, ext3, reiserfs).

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
15 years agomount.2: wfix: remove redundant "Linux Notes" subheading
Michael Kerrisk [Mon, 6 Oct 2008 11:18:33 +0000 (13:18 +0200)] 
mount.2: wfix: remove redundant "Linux Notes" subheading

15 years agomount.2, umount.2: split umoun*() out into a separate page
Michael Kerrisk [Mon, 6 Oct 2008 11:09:26 +0000 (13:09 +0200)] 
mount.2, umount.2: split umoun*() out into a separate page

The length of this page means that it's becoming difficult to parse
which info is specific to mount() versus umount()/umount2(), so split
the umount material out into its own page.

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
15 years agospfix
Michael Kerrisk [Mon, 6 Oct 2008 09:49:27 +0000 (11:49 +0200)] 
spfix

15 years agosignal.7: improve description in NAME section
Michael Kerrisk [Mon, 6 Oct 2008 08:12:00 +0000 (10:12 +0200)] 
signal.7: improve description in NAME section

Reported-by: Gergely Soos <sogerc1@gmail.com>
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
15 years agoproc.5: wfix
Pavel Heimlich [Mon, 6 Oct 2008 08:02:53 +0000 (10:02 +0200)] 
proc.5: wfix

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
15 years agosignal.7: Add mention of sigaltstack(2).
Michael Kerrisk [Sun, 5 Oct 2008 05:46:09 +0000 (07:46 +0200)] 
signal.7: Add mention of sigaltstack(2).

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
15 years agosignal.7: Describe syscalls that synchronously wait for a signal,
Michael Kerrisk [Sun, 5 Oct 2008 05:41:29 +0000 (07:41 +0200)] 
signal.7: Describe syscalls that synchronously wait for a signal,

(sigwait(), sigwaitinfo(), sigtimedwait(), signalfd)

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
15 years agosignal.7: Give overview of syscalls that block until a signal is caught
Michael Kerrisk [Sun, 5 Oct 2008 05:30:24 +0000 (07:30 +0200)] 
signal.7: Give overview of syscalls that block until a signal is caught

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
15 years agosignal.7: ffix
Michael Kerrisk [Sun, 5 Oct 2008 05:29:00 +0000 (07:29 +0200)] 
signal.7: ffix

15 years agosignal.7: Add overview of interfaces for sending signals.
Michael Kerrisk [Sun, 5 Oct 2008 05:23:58 +0000 (07:23 +0200)] 
signal.7: Add overview of interfaces for sending signals.

(kill(), killpg(), tgkill(), sigqueue(), raise(), etc.)

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
15 years agopause.2: remove mention of words "library function"
Michael Kerrisk [Sun, 5 Oct 2008 05:20:58 +0000 (07:20 +0200)] 
pause.2: remove mention of words "library function"

This really is a system call.

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
15 years agoacct.5: wfix (remove duplicate word)
Michael Kerrisk [Sun, 5 Oct 2008 04:52:21 +0000 (06:52 +0200)] 
acct.5: wfix (remove duplicate word)

15 years agogetcwd.3: wfix (remove duplicate word)
Michael Kerrisk [Sun, 5 Oct 2008 04:50:51 +0000 (06:50 +0200)] 
getcwd.3: wfix (remove duplicate word)

15 years agogetrlimit.2: refer to execve(2) for RLIMIT_STACK's effect on ARG_MAX
Michael Kerrisk [Sun, 5 Oct 2008 04:24:36 +0000 (06:24 +0200)] 
getrlimit.2: refer to execve(2) for RLIMIT_STACK's effect on ARG_MAX

Refer the reader to new text in execve(2) that describes how
(since Linux 2.6.23) RLIMIT_STACK determines the value of ARG_MAX.

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
15 years agoexecve.2: _SC_ARG_MAX is no longer necessarily constant
Michael Kerrisk [Sun, 5 Oct 2008 03:59:32 +0000 (05:59 +0200)] 
execve.2: _SC_ARG_MAX is no longer necessarily constant

POSIX.1-2001 says that the values returned by sysconf()
are constant for the life of the process.
But the fact that, since Linux 2.6.23, ARG_MAX is settable
via RLIMIT_STACK means _SC_ARG_MAX is no longer constant,
since it can change at each execve().

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
15 years agoexecve.2: Linux now imposes a floor on the ARG_MAX limit
Michael Kerrisk [Sun, 5 Oct 2008 03:57:52 +0000 (05:57 +0200)] 
execve.2: Linux now imposes a floor on the ARG_MAX limit

Starting with Linux 2.6.23, the ARG_MAX limit became settable via
(1/4 of) RLIMIT_STACK.  This broke ABI compatibility if RLIMIT_STACK
was set such that ARG_MAX was < 32 pages.  Document the fact that
since 2.6.25 Linux imposes a floor on ARG_MAX, so that the old limit
of 32 pages is guaranteed.

For some background on the changes to ARG_MAX in kernels 2.6.23 and
2.6.25, see:
    http://sourceware.org/bugzilla/show_bug.cgi?id=5786
    http://bugzilla.kernel.org/show_bug.cgi?id=10095
    http://thread.gmane.org/gmane.linux.kernel/646709/focus=648101,
    checked into 2.6.25 as commit a64e715fc74b1a7dcc5944f848acc38b2c4d4ee2.

Also some reordering/rewording of the discussion of ARG_MAX.

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
15 years agogetrlimit.2: Reword/relocate discussion of BSD's historical RLIMIT_OFILE
Michael Kerrisk [Sun, 5 Oct 2008 03:42:32 +0000 (05:42 +0200)] 
getrlimit.2: Reword/relocate discussion of BSD's historical RLIMIT_OFILE

The old sentence sat on its own in an odd place, and anyway the
modern BSDs use the name RLIMIT_NOFILE.

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
15 years agosrcfix
Michael Kerrisk [Sun, 5 Oct 2008 01:29:35 +0000 (03:29 +0200)] 
srcfix

15 years agosignal.7: describe semantics w.r.t. fork() and execve()
Michael Kerrisk [Sat, 4 Oct 2008 06:33:53 +0000 (08:33 +0200)] 
signal.7: describe semantics w.r.t. fork() and execve()

Include text describing semantics of fork() and execve() for
signal dispositions, signal mask, and pending signal set.

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
15 years agosigaction.2: wfix
Michael Kerrisk [Sat, 4 Oct 2008 06:27:56 +0000 (08:27 +0200)] 
sigaction.2: wfix

15 years agosigaction.2: refer reader to signal(7) for an overview of signals
Michael Kerrisk [Sat, 4 Oct 2008 06:01:49 +0000 (08:01 +0200)] 
sigaction.2: refer reader to signal(7) for an overview of signals

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
Reported-by: Gergely Soos <sogerc1@gmail.com>
15 years agosigaction.2: explain semantics of signal disposition during fork() and execve()
Michael Kerrisk [Sat, 4 Oct 2008 05:49:53 +0000 (07:49 +0200)] 
sigaction.2: explain semantics of signal disposition during fork() and execve()

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
15 years agosigwaitinfo.2: distinguish per-thread and process-wide signals
Michael Kerrisk [Sat, 4 Oct 2008 05:39:50 +0000 (07:39 +0200)] 
sigwaitinfo.2: distinguish per-thread and process-wide signals

A sentence clarifying that pending signal set is union of
per-thread and process-wide pending signal sets.

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
15 years agosigwaitinfo.2: these interfaces have per-thread semantics
Michael Kerrisk [Sat, 4 Oct 2008 05:36:18 +0000 (07:36 +0200)] 
sigwaitinfo.2: these interfaces have per-thread semantics

The page was previously fuzzy about whether the these interfaces
have process-wide or per-thread semantics.  (E.g., now the
page states that the calling *thread* (not process) is suspended
until the signal is delivered.)

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
15 years agosemop.2: wfix
Michael Kerrisk [Sat, 4 Oct 2008 05:14:34 +0000 (07:14 +0200)] 
semop.2: wfix

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
15 years agogetrusage.2: rusage measures are preserved across execve(2)
Michael Kerrisk [Sat, 4 Oct 2008 05:10:35 +0000 (07:10 +0200)] 
getrusage.2: rusage measures are preserved across execve(2)

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
15 years agosigaltstack.2: explain inheritance of alternate signal stack across fork(2)
Michael Kerrisk [Sat, 4 Oct 2008 04:58:36 +0000 (06:58 +0200)] 
sigaltstack.2: explain inheritance of alternate signal stack across fork(2)

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
15 years agosigpending.2: explain effect of fork() and execve() for pending signal set
Michael Kerrisk [Sat, 4 Oct 2008 04:38:30 +0000 (06:38 +0200)] 
sigpending.2: explain effect of fork() and execve() for pending signal set

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
15 years agosigpending.2: explain how thread's pending signal set is defined
Michael Kerrisk [Sat, 4 Oct 2008 04:34:38 +0000 (06:34 +0200)] 
sigpending.2: explain how thread's pending signal set is defined

The pending set is the union of per-thread pending signals and process-wide
pending signals.

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
15 years agosigprocmask.2: explain effects of fork() and execve() for signal mask
Michael Kerrisk [Sat, 4 Oct 2008 04:30:10 +0000 (06:30 +0200)] 
sigprocmask.2: explain effects of fork() and execve() for signal mask

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
15 years agosigaction.2: refer to signal(7) for more details on signal mask.
Michael Kerrisk [Sat, 4 Oct 2008 03:49:12 +0000 (05:49 +0200)] 
sigaction.2: refer to signal(7) for more details on signal mask.

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
15 years agoexecve.2: updated FIXME (for argv==NULL) in source comments
Michael Kerrisk [Fri, 3 Oct 2008 04:04:03 +0000 (06:04 +0200)] 
execve.2: updated FIXME (for argv==NULL) in source comments

15 years agoreaddir.2: The programmer must declare the old_linux_dirent structure
Michael Kerrisk [Thu, 2 Oct 2008 11:30:23 +0000 (13:30 +0200)] 
readdir.2: The programmer must declare the old_linux_dirent structure

Glibc does not provide a definition of this structure.

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
15 years agowspacefix
Michael Kerrisk [Thu, 2 Oct 2008 11:28:02 +0000 (13:28 +0200)] 
wspacefix

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
15 years agoreaddir.2: s/dirent/old_linux_dirent/
Michael Kerrisk [Thu, 2 Oct 2008 11:26:33 +0000 (13:26 +0200)] 
readdir.2: s/dirent/old_linux_dirent/

Nowadays, this is the name of the structure in the kernel sources.

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
15 years agoreaddir.2: remove words "which may change"
Michael Kerrisk [Thu, 2 Oct 2008 11:23:25 +0000 (13:23 +0200)] 
readdir.2: remove words "which may change"

These words are slightly bogus: although the interface is obsolete,
for ABI-compatibility reasons, the kernel folk should never be changing
this interface.

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
15 years agoreaddir.2: remove header files from SYNOPSIS
Michael Kerrisk [Thu, 2 Oct 2008 11:20:39 +0000 (13:20 +0200)] 
readdir.2: remove header files from SYNOPSIS

glibc doesn't provide any support for readdir(2),
so remove these header files (which otherwirse suggest
that glibc does provide the required pieces).

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
15 years agogetdents.2: Add an example program
Michael Kerrisk [Thu, 2 Oct 2008 11:15:42 +0000 (13:15 +0200)] 
getdents.2: Add an example program

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
15 years agogetdents.2: comment out linux_dirent fields with varying location
Michael Kerrisk [Thu, 2 Oct 2008 11:07:58 +0000 (13:07 +0200)] 
getdents.2: comment out linux_dirent fields with varying location

The location of the fields fater d_name varies according to
the size of d_name.  We can't properly declare them in C;
therefore, put those fields inside a comment.

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
15 years agogetdents.2: The DT_* constants are defined in <dirent.h>
Michael Kerrisk [Thu, 2 Oct 2008 09:35:50 +0000 (11:35 +0200)] 
getdents.2: The DT_* constants are defined in <dirent.h>

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
15 years agogetdents.2: emove header files from SYNOPSIS
Michael Kerrisk [Thu, 2 Oct 2008 09:33:34 +0000 (11:33 +0200)] 
getdents.2: emove header files from SYNOPSIS

None of the header files provides what is needed.
Calls are made via syscall(2).

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
15 years agogetdents.2: The programmer must define the linux_dirent structure
Michael Kerrisk [Thu, 2 Oct 2008 09:27:17 +0000 (11:27 +0200)] 
getdents.2: The programmer must define the linux_dirent structure

Point out that this structure is not defined in glibc headers.

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
15 years agogetdents.2: s/dirent/linux_dirent/
Michael Kerrisk [Thu, 2 Oct 2008 09:15:28 +0000 (11:15 +0200)] 
getdents.2: s/dirent/linux_dirent/

The structure isn't currently defined in glibc headers, and the kernel
name of the structure is 'linux_dirent' (as was already used in some,
but not all, places in this page).

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
15 years agotkill.2: EINVAL error can also occur for invalid TGID
Michael Kerrisk [Wed, 1 Oct 2008 14:46:11 +0000 (16:46 +0200)] 
tkill.2: EINVAL error can also occur for invalid TGID

The EINVAL error on an invalid TGID for tgkill() was
not documented; this change documents it.

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
15 years agoDocument MS_SILENT (and MS_VERBOSE)
Michael Kerrisk [Wed, 1 Oct 2008 13:17:47 +0000 (15:17 +0200)] 
Document MS_SILENT (and MS_VERBOSE)

Maxin suggested a patch, which I've rewritten and expanded.

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
Reported-by: Maxin B. John <maxin.john@ap.sony.com>
15 years agoreaddir.3: SEE ALSO: add getdents(2)
Michael Kerrisk [Mon, 29 Sep 2008 13:08:04 +0000 (15:08 +0200)] 
readdir.3: SEE ALSO: add getdents(2)

Because readdir() is implemented on top of getdents(2).

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
15 years agogetdents.2, readdir.3: d_type is currently only supported on ext[234]
Michael Kerrisk [Mon, 29 Sep 2008 13:06:36 +0000 (15:06 +0200)] 
getdents.2, readdir.3: d_type is currently only supported on ext[234]

As at kernel 2.6.27, only ext[234] support d_type.
On other file systems, d_type is always set to DT_UNKNOWN (0).

Reported-by: Ricardo Catalinas Jiménez <jimenezrick@gmail.com>
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
15 years agofma.3: Add some source code comments explaining two domain error cases.
Michael Kerrisk [Mon, 29 Sep 2008 11:42:58 +0000 (13:42 +0200)] 
fma.3: Add some source code comments explaining two domain error cases.

Two of the "domain error" cases described on this page are treated in
the same way on Linux, but POSIX.1 specifies some optional differences
for the two cases.  Make life easier for future page reviewers/editors
by adding some comments explaining that POSIX.1-2001 distinguishes
the two cases.

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
Reported-by: Nicolas François <nicolas.francois@centraliens.net>
15 years agowfix
Nicolas François [Mon, 29 Sep 2008 11:24:36 +0000 (13:24 +0200)] 
wfix

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
15 years agonextafter.3: Make description more precise: s/next/largest/
Nicolas François [Mon, 29 Sep 2008 11:22:21 +0000 (13:22 +0200)] 
nextafter.3: Make description more precise: s/next/largest/

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
15 years agofloor.3: Fix error in description: s/smallest/largest/
Nicolas François [Mon, 29 Sep 2008 11:21:55 +0000 (13:21 +0200)] 
floor.3: Fix error in description: s/smallest/largest/

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
15 years agoffix
Nicolas François [Mon, 29 Sep 2008 11:05:56 +0000 (13:05 +0200)] 
ffix

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
15 years agoatan2.3: Fix error in description of range or return value
Nicolas François [Mon, 29 Sep 2008 11:01:44 +0000 (13:01 +0200)] 
atan2.3: Fix error in description of range or return value

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
In recent changes to the man page, mtk accidentally cganged
the description of the return value range to -pi/2..pi/2;
the corect range is -pi..pi.

15 years agoutimensat.2: POSIX.1-2008 revision will likely affect FTMs for futimens()
Michael Kerrisk [Mon, 29 Sep 2008 10:52:30 +0000 (12:52 +0200)] 
utimensat.2: POSIX.1-2008 revision will likely affect FTMs for futimens()

Make it clear that the POSIX.1 revision that is likely
to affect the feature test macro requirements for futimens() is
POSIX.1-2008.

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
Reported-by: Nicolas François <nicolas.francois@centraliens.net>
15 years agoutimensat.2: Make various wordings a little more precise.
Nicolas François [Mon, 29 Sep 2008 10:42:09 +0000 (12:42 +0200)] 
utimensat.2: Make various wordings a little more precise.

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
The times argument point to *an array of* structures, and the
man-page should say that consistently.

15 years agosend.2: make kernel version for MSG_CONFIRM more precise
Michael Kerrisk [Mon, 29 Sep 2008 10:35:13 +0000 (12:35 +0200)] 
send.2: make kernel version for MSG_CONFIRM more precise

s/2.3+ only/Since Linux 2.3.15/

Reported-by: Nicolas François <nicolas.francois@centraliens.net>
15 years agomove_pages.2: Make a detail og EPERM error more precise
Nicolas François [Mon, 29 Sep 2008 10:20:39 +0000 (12:20 +0200)] 
move_pages.2: Make a detail og EPERM error more precise

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
15 years agostrcpy.3: Revert earlier change to example strncpy() calls
Marko Kreen [Mon, 29 Sep 2008 10:01:26 +0000 (12:01 +0200)] 
strcpy.3: Revert earlier change to example strncpy() calls

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
I browsed the changes there and found a buggy code snippet:

15 years agorecv.2: Move kernel version number to first mention to MSG_ERRQUEUE.
Nicolas François [Mon, 29 Sep 2008 09:46:01 +0000 (11:46 +0200)] 
recv.2: Move kernel version number to first mention to MSG_ERRQUEUE.

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
15 years agocmsg.3: Add parentheses after macro names.
Nicolas François [Mon, 29 Sep 2008 09:33:04 +0000 (11:33 +0200)] 
cmsg.3: Add parentheses after macro names.

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
15 years agoRemove a line of junk text.
Nicolas François [Mon, 29 Sep 2008 09:30:57 +0000 (11:30 +0200)] 
Remove a line of junk text.

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
15 years agoTypo and whitespace fixes
Nicolas François [Mon, 29 Sep 2008 09:15:48 +0000 (11:15 +0200)] 
Typo and whitespace fixes

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
15 years agoMinor wording fixes
Nicolas François [Mon, 29 Sep 2008 09:09:52 +0000 (11:09 +0200)] 
Minor wording fixes

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
15 years agoTypo and wording fixes
Nicolas François [Mon, 29 Sep 2008 09:00:36 +0000 (11:00 +0200)] 
Typo and wording fixes

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
15 years agosemop.2: fix typo in example
Kirill A. Shutemov [Sun, 28 Sep 2008 17:41:42 +0000 (20:41 +0300)] 
semop.2: fix typo in example

(The '&' before sop in the semop() call is unneeded.)
Signed-off-by: Kirill A. Shutemov <kirill@shutemov.name>
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
15 years agogrfix
Michael Kerrisk [Mon, 29 Sep 2008 06:48:18 +0000 (08:48 +0200)] 
grfix

15 years agomq_overview.7: add mq_notify() to list of lib. functions and syscalls in MQ API
Michael Kerrisk [Mon, 29 Sep 2008 04:05:04 +0000 (06:05 +0200)] 
mq_overview.7: add mq_notify() to list of lib. functions and syscalls in MQ API

15 years agomg_getattr.3: mq_getattr() and mq_setattr() are layered on mq_getsetattr(2)
Michael Kerrisk [Mon, 29 Sep 2008 03:51:25 +0000 (05:51 +0200)] 
mg_getattr.3: mq_getattr() and mq_setattr() are layered on mq_getsetattr(2)

mq_getattr() and mq_setattr() are library functions layered on
top of the mq_getsetattr(2) system call.
(This is useful info for users of strace(1).)

15 years agomq_receive.3: mq_send() is a library function layered on mq_timedreceive() syscall
Michael Kerrisk [Mon, 29 Sep 2008 03:40:37 +0000 (05:40 +0200)] 
mq_receive.3: mq_send() is a library function layered on mq_timedreceive() syscall

This info is useful for users of strace(1).

15 years agomq_send.3: mq_send() is a library function layered on mq_timedsend() syscall
Michael Kerrisk [Mon, 29 Sep 2008 03:36:48 +0000 (05:36 +0200)] 
mq_send.3: mq_send() is a library function layered on mq_timedsend() syscall

This info is useful for users of strace(1).

15 years agowait4.2: wait3() is a library function layered on wait4().
Michael Kerrisk [Mon, 29 Sep 2008 01:51:49 +0000 (03:51 +0200)] 
wait4.2: wait3() is a library function layered on wait4().

On Linux wait3() is a library function implemented on top of wait4().
(Knowing this is useful when using strace(2), for example.)

15 years agosplice.2: note that SPLICE_F_MOVE is a no-op since kernel 2.6.21
Michael Kerrisk [Fri, 26 Sep 2008 05:31:14 +0000 (07:31 +0200)] 
splice.2: note that SPLICE_F_MOVE is a no-op since kernel 2.6.21

15 years agorealpath.3: clarify that returned pathname is NULL terminated
Michael Kerrisk [Fri, 26 Sep 2008 05:22:00 +0000 (07:22 +0200)] 
realpath.3: clarify that returned pathname is NULL terminated

Also clarify that null-byte is included in PATH_MAX limit.

15 years agogrfix: s/null terminated string/null-terminated string/
Michael Kerrisk [Fri, 26 Sep 2008 05:13:25 +0000 (07:13 +0200)] 
grfix: s/null terminated string/null-terminated string/

15 years agoctime.3: clarify mktime()'s use of tm_isdst
Michael Kerrisk [Fri, 26 Sep 2008 04:48:22 +0000 (06:48 +0200)] 
ctime.3: clarify mktime()'s use of tm_isdst

Describe use of tm_isdst for input to mktime();
explain how mktime() modifies this field.
(This field is left unchanged in case of error.)

Reported-by: Eugene V. Lyubimkin <jackyf.devel@gmail.com>
Debian bug 500178

15 years agoctime.3 Minor rewording
Michael Kerrisk [Fri, 26 Sep 2008 04:05:54 +0000 (06:05 +0200)] 
ctime.3 Minor rewording

Clarify wording for ctime_r() and asctime_r() to indicate that
the bffer must be at least 26 *bytes*.

15 years agoctime.3: minor rewording of mktime() description.
Michael Kerrisk [Fri, 26 Sep 2008 04:02:10 +0000 (06:02 +0200)] 
ctime.3: minor rewording of mktime() description.

15 years agoffix
Michael Kerrisk [Fri, 26 Sep 2008 03:02:12 +0000 (05:02 +0200)] 
ffix

15 years agomlock.2: tweaks to Maxin John's patch
Michael Kerrisk [Thu, 25 Sep 2008 09:18:08 +0000 (11:18 +0200)] 
mlock.2: tweaks to Maxin John's patch

15 years agotstamp
Michael Kerrisk [Thu, 25 Sep 2008 09:11:53 +0000 (11:11 +0200)] 
tstamp

15 years agotstamp
Michael Kerrisk [Thu, 25 Sep 2008 09:11:08 +0000 (11:11 +0200)] 
tstamp

15 years agomlock.2: add EAGAIN error.
Maxin John [Wed, 24 Sep 2008 14:47:07 +0000 (20:17 +0530)] 
mlock.2: add EAGAIN error.

Summary from mtk: recent work on mlock caused Maxin to notice that
the EAGAIN error was not documented.  KOSAKI Motohiro noted
that this behavior is longstanding.
=====
Dear Michael,

    As per the mlock(2) implementation bugfix which is present in
Linux 2.6.27-rc2 git commit,
(http://git.kernel.org/?p=linux/kernel/git/torvalds/linux-2.6.git;a=commitdiff;h=a477097d9c37c1cf289c7f0257dffcfa42d50197),
the mlock(2) man page should be modified to reflect the latest changes
in the kernel.

See the LKML thread regarding this commit :
http://www.nabble.com/mlock()-return-value-issue-in-kernel-2.6.23.17-td18751601.html

This patch modifies the mlock(2) behaviour as per the SUSv3 specification.

[ENOMEM]
    Some or all of the address range specified by the addr and
    len arguments does not correspond to valid mapped pages
    in the address space of the process.

[EAGAIN]
    Some or all of the memory identified by the operation could not
    be locked when the call was made.

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
Signed-off-by: Maxin B. John <maxin.john@ap.sony.com>
=====
From: KOSAKI Motohiro <kosaki.motohiro@jp.fujitsu.com>
To: "Maxin John" <maxin.john@gmail.com>
Subject: Re: mlock(2) man page modifications
Cc: kosaki.motohiro@jp.fujitsu.com,
        "Michael Kerrisk" <mtk.manpages@googlemail.com>, man@vger.kernel.org
Date: Thu, 25 Sep 2008 15:04:49 +0900 (JST)

Hi Maxin,

Thank you for your attention.
I think your point and your patch are right.

However, my patch is trivial regression fix, not behavior change.
An older kernel can return EAGAIN at memory stavation.
my patch has following hunk.

> +++ b/mm/mlock.c
> @@ -78,8 +78,6 @@ success:
>
>         mm->locked_vm -= pages;
>  out:
> -       if (ret == -ENOMEM)
> -               ret = -EAGAIN;

In addition, 2.6.11 (oldest code of git repository) has following code.

static int mlock_fixup(struct vm_area_struct * vma,
        unsigned long start, unsigned long end, unsigned int newflags)
{
(snip)
        vma->vm_mm->locked_vm -= pages;
out:
        if (ret == -ENOMEM)
                ret = -EAGAIN;
        return ret;
}

that behavior is linux mlock's behavior for long long time.

Thanks!