Commit Graph

3657 Commits

Author SHA1 Message Date
Michael Kerrisk aefd6f899d select_tut.2, dlopen.3, err.3, printf.3: Stylistic changes to code example
For ease of reading, don't embed assignments inside if().

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2014-01-02 11:49:15 +13:00
Michael Kerrisk 17068fad8c utimensat.2: Small wording improvement for times!=NULL case
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2014-01-02 11:49:15 +13:00
Michael Kerrisk 79e20ac183 utimensat.2: srcfix
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2014-01-02 11:49:15 +13:00
Mike Frysinger 5e16419235 syscall.2: Fix ia64 registers
The original list of registers was created by confusing strace
source code--this is for parsing legacy 32-bit code (which is
dead and no one cares). Update the list to reflect native ia64
syscall interface.

Signed-off-by: Mike Frysinger <vapier@gentoo.org>
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2014-01-02 11:49:15 +13:00
Michael Kerrisk 4cead6db49 reboot.2: ffix
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2014-01-02 11:49:15 +13:00
Michael Kerrisk 3b95429be2 reboot.2: Add RB_SW_SUSPEND synonym
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2014-01-02 11:49:15 +13:00
Michael Kerrisk d1d5d51c06 reboot.2: Add RB_KEXEC synonym
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2014-01-02 11:49:15 +13:00
Elie De Brauwer 2d37a9603b reboot.2: Document LINUX_REBOOT_SW_SUSPEND
Signed-off-by: Elie De Brauwer <eliedebrauwer@gmail.com>
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2014-01-02 11:49:15 +13:00
Elie De Brauwer 0b23bb07a3 reboot.2: Add "Linux" to kernel version numbers
Signed-off-by: Elie De Brauwer <eliedebrauwer@gmail.com>
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2014-01-02 11:49:15 +13:00
Elie De Brauwer c2e32bfe27 reboot.2: Mention RB_POWER_OFF
The manpage did not mention RB_POWER_OFF which is the glibc
symbolic name for LINUX_REBOOT_CMD_POWER_OFF.

$ cd /usr/include
$ cat x86_64-linux-gnu/sys/reboot.h | grep POWER_OFF
 define RB_POWER_OFF	0x4321fedc

Signed-off-by: Elie De Brauwer <eliedebrauwer@gmail.com>
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2014-01-02 11:49:15 +13:00
Michael Kerrisk 2fd2c35cc6 clock_getres.2: Improve description of CLOCK_PROCESS_CPUTIME_ID
See https://bugzilla.kernel.org/show_bug.cgi?id=67291

Reported-by:  Nadav Har'El <nyh@math.technion.ac.il>
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2014-01-02 11:49:15 +13:00
David Prévot cd7c700a16 perf_event_open.2: ffix
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2014-01-02 11:49:14 +13:00
Michael Kerrisk 7607f23546 perf_event_open.2: tstamp
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2014-01-02 11:49:14 +13:00
Vince Weaver 406650db6b perf_event_open.2: Clarify issues with the disabled bit
Clarify the perf_event_open behavior with respect to the disabled
bit and creating event groups.

Reported-by: Sudhanshu Goswami <Sudhanshu.Goswami@emc.com>
Signed-off-by: Vince Weaver <vincent.weaver@maine.edu>
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2014-01-02 11:49:08 +13:00
Vince Weaver bea10c8c40 perf_event_open.2. Clarify issues with the exclusive bit
Warn that using the perf_event_open "exclusive" bit, while it might seem
like a good idea, might lead to all 0 results in some common usage cases.

Reported-by: Sudhanshu Goswami <Sudhanshu.Goswami@emc.com>
Signed-off-by: Vince Weaver <vincent.weaver@maine.edu>
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2013-12-27 07:31:46 +13:00
Michael Kerrisk b8efc3ed61 Removed trailing white space at end of lines 2013-12-12 20:42:43 +13:00
Michael Kerrisk 42f05d6438 futex.2, send.2, setreuid.2, malloc.3, tcp.7: tstamp
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2013-12-12 20:40:15 +13:00
Michael Kerrisk f2d15dc910 perf_event_open.2: ffix + tstamp
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2013-12-12 16:45:03 +13:00
Vince Weaver 75ee11e514 perf_event_open.2: Update description for mmap_data bit
Here's an updated version of [David Ahern's] patch that
expands the "mmap" definition as well as that of "mmap_data".
Also some manpage related formatting improvements from the
original patch.

Link: https://lkml.org/lkml/2013/11/11/505

Signed-off-by: Vince Weaver <vincent.weaver@maine.edu>
Acked-by: David Ahern <dsahern@gmail.com>
Cc: Arnaldo Carvalho de Melo <acme@redhat.com>
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2013-12-12 16:42:03 +13:00
Vince Weaver a02a1737af perf_event_open.2: cpu/pid argument cleanup
This patch attempts to clarify the pid and cpu options to
perf_event_open().

It does two things:
  1.  Tries to make clear that the "pid" argument can mean
      process *or* thread.  This is made confusing by
      how Linux uses the terms mostly interchangeably.
  2.  The cpu/pid documentation was confusing because of
      how the parameters are interdependent.  Since there
      are only 6 possible combinations I broke out the
      possibilities into a table.

Reported-by: Manuel Selva <selva.manuel@gmail.com>
Signed-off-by: Vince Weaver <vincent.weaver@maine.edu>
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2013-12-12 16:41:47 +13:00
Michael Kerrisk 7af75ade78 sigpending.2: Note treatment of signals that are blocked *and* ignored
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2013-12-12 16:16:08 +13:00
Michael Kerrisk 827edbd201 stat.2: wspfix
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2013-12-12 16:16:08 +13:00
Trevor Bramwell 25505615fe pipe.2: Fix error in example program
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2013-12-12 16:16:08 +13:00
David Prévot 7205b8dfd8 perf_event_open.2: wfix
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2013-12-12 16:16:08 +13:00
David Prévot 8859d3a9e2 perf_event_open.2: ffix
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2013-12-12 16:16:08 +13:00
David Prévot 27f52b5209 perf_event_open.2: tfix
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2013-12-12 16:16:08 +13:00
Michael Kerrisk 6add864cd4 kcmp.2: wfix
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2013-12-12 16:16:08 +13:00
Shawn Landden df2f284e48 kcmp.3: Reword slightly awkward section
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2013-12-12 16:16:08 +13:00
Peng Haitao 6ab6b8e2f9 capget.2: wfix
Signed-off-by: Peng Haitao <penght@cn.fujitsu.com>
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2013-12-12 16:16:07 +13:00
Michael Kerrisk 210cded680 poll.2: Clarify meaning of events==0
events==0 does not mean that revents is always returned as
zero. The "output only" events (POLLHUP, POLLERR, POLLNVAL)
can still be returned.

See https://bugzilla.kernel.org/show_bug.cgi?id=61911

Reported-by: Paolo Bonzini <bonzini@gnu.org>
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2013-11-08 07:13:19 +13:00
Michael Kerrisk 82f955d28a ioctl.2: 'request' argument is typed as 'unsigned long' in glibc
See https://bugzilla.kernel.org/show_bug.cgi?id=42705

Reported-by: KOSAKI Motohiro <kosaki.motohiro@jp.fujitsu.com>
Reported-by: David Gibson <david@gibson.dropbear.id.au>
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2013-11-08 06:43:47 +13:00
Michael Kerrisk e9bd9b2ca9 perf_event_open.2: tstamp + white space fixes
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2013-11-08 06:43:46 +13:00
Vince Weaver 135cba8b70 perf_event_open.2: Linux 3.12 rdpmc/mmap
It turns out that the perf_event mmap page rdpmc/time setting was
broken, dating back to the introduction of the feature.  Due
to a mistake with a bitfield, two different values mapped to
the same feature bit.

A new somewhat backwards compatible interface was introduced
in Linux 3.12.  A much longer report on the issue can be found
here:
   https://lwn.net/Articles/567894/

Signed-off-by: Vince Weaver <vincent.weaver@maine.edu>
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2013-11-08 06:43:46 +13:00
Vince Weaver a0dcc8dd16 perf_event_open.2: Linux 3.12 adds PERF_EVENT_IOC_ID
A new perf_event related ioctl, PERF_EVENT_IOC_ID, was added
in Linux 3.12.

Signed-off-by: Vince Weaver <vincent.weaver@maine.edu>
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2013-11-08 06:43:46 +13:00
Vince Weaver 7480dabbeb perf_event_open.2: Linux 3.12 adds PERF_SAMPLE_IDENTIFIER
A new PERF_SAMPLE_IDENTIFIER sample type was added in Linux 3.12.

Signed-off-by: Vince Weaver <vincent.weaver@maine.edu>
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2013-11-08 06:43:46 +13:00
Vince Weaver dab3845542 perf_event_open.2: PERF_COUNT_SW_DUMMY support
Support for the PERF_COUNT_SW_DUMMY event type was added in
Linux 3.12.

Signed-off-by: Vince Weaver <vincent.weaver@maine.edu>
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2013-11-08 06:43:46 +13:00
Michael Kerrisk 4d4cecd6fa fallocate.2: tfix + tstamp
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2013-11-08 06:43:46 +13:00
Christoph Hellwig c166fac5cb fallocate.2: Clarify the zeroing behavior
fallocate() zeroes only space that did not previously contain
data, but leaves existing data untouched.

Signed-off-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2013-11-08 06:43:39 +13:00
Michael Kerrisk 4eec160988 send.2: RETURN VALUE: these calls return number of bytes (not characters) sent
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2013-11-04 18:58:07 +13:00
Michael Kerrisk 4256bf84e5 recv.2: Remove out-of-date statement that UNIX domain does not support MSG_TRUNC
Should have removed that sentence as part of
commit a25601b48b

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2013-11-04 17:14:07 +13:00
Michael Kerrisk bcd49f31a8 symlink.2: Further fine tuning of argument names
Follow-up to f2ae6dde0c
See https://sourceware.org/bugzilla/show_bug.cgi?id=16073

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2013-10-30 14:53:01 +13:00
David Prévot d6af98f849 perf_event_open.2: tfix
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2013-10-30 14:46:19 +13:00
Vince Weaver e6cf569408 perf_event_open.2: PERF_EVENT_IOC_PERIOD update
The PERF_EVENT_IOC_PERIOD ioctl was broken until 2.6.36,
and it turns out that the ARM architecture has some
differing behavior too.

Reported-by: Andreas Sandberg <andreas.sandberg@it.uu.se>
Signed-off-by: Vince Weaver <vincent.weaver@maine.edu>
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2013-10-30 14:45:11 +13:00
Michael Kerrisk 297c144f01 setreuid.2: Small clarification to description of when saved set-user-ID is set
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2013-10-29 00:25:41 +13:00
Vince Weaver 82b09254af perf_event_open.2: E2BIG documentation
The following documents the E2BIG error return for
perf_event_open().

I actually ran into this error the hard way and it took me
half a day to figure out why my ->size value was changing.

Signed-off-by: Vince Weaver <vincent.weaver@maine.edu>
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2013-10-26 11:21:38 +13:00
Maxin B. John fa9efa8632 flock.2: tfix
Signed-off-by: Maxin B. John <maxin.john@enea.com>
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2013-10-26 11:04:52 +13:00
Michael Kerrisk 3468b312bc readlink.2: Fix typo in eror message in example program
Reported-by: Yuanhang Zheng <zhengyhn@gmail.com>
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2013-10-26 11:00:05 +13:00
Michael Kerrisk f2ae6dde0c symlink.2: Give arguments of symlink() more meaningful names
Reported-by:  Fabrice Bauzac <libnoon@gmail.com>
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2013-10-26 10:53:02 +13:00
Rodrigo Campos a605264d16 futex.2: Fix link to Rusty's futex example library
When I asked to webmaster@kernel.org, Konstantin Ryabitsev
answered that the ".nl." is "an obsolete scheme and really
should be changed to just ftp.kernel.org".

Signed-off-by: Rodrigo Campos <rodrigo@sdfg.com.ar>
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2013-10-26 10:41:37 +13:00
Michael Kerrisk a2954fe6ed execve.2: 'arg...' for interpreter scripts starts with argv[1]
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2013-10-26 06:45:46 +13:00
Michael Kerrisk 1ef5b28054 stat.2: Cosmetic reworking of timestamp discussion in NOTES
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2013-10-25 15:42:26 +13:00
Michael Kerrisk 96f92a7cb6 stat.2: Not filesystem support for nanosecond timestamps
Add some detail on which native filesystems do and don't
support nanosecond timestamps.

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2013-10-25 15:39:02 +13:00
Michael Kerrisk e9e9e87ecf stat.2: Update discussion of nanosecond timestamps
The existing text describes the timestamp fields as 'time_t'
and delegates discussion of nanosecond timestamps under NOTES.
Nanosecond timestamps have been around for a while now,
and are in POSIX.1-2008, so reverse the orientation of the
discussion, putting the nanosecond fields into DESCRIPTION
and detailing the historical situation under NOTES.

Reported-by: Yang Yang <yangyang.gnu@gmail.com>
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2013-10-25 15:39:02 +13:00
Michael Kerrisk d2fc9a713e getgroups.2: Document /proc/sys/kernel/ngroups_max
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2013-10-18 11:40:30 +13:00
Michael Kerrisk b146454a96 getgroups.2: Clarify that sysconf(_SC_NGROUPS_MAX) is a run-time technique
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2013-10-18 11:40:29 +13:00
Michael Kerrisk 1f9e80f0e9 getgroups.2: Note that NGROUPS_MAX is defined in <limits.h>
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2013-10-18 11:35:21 +13:00
Michael Kerrisk 4d66746f31 sched_setscheduler.2: srcfix: note commit for SCHED_BATCH
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2013-09-23 07:26:40 +02:00
Michael Kerrisk 4f56bc07cd sched_get_priority_max.2: Add SCHED_IDLE to discussion
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2013-09-23 07:22:58 +02:00
Michael Kerrisk 11256884de Removed trailing white space at end of lines 2013-09-17 08:27:46 +02:00
Michael Kerrisk 48b6f08669 ioctl_list.2, kill.2, nfsservctl.2, sched_setaffinity.2, sched_setparam.2, sched_setscheduler.2, syscall.2, fma.3, fmax.3, fmin.3, ip.7: tstamp
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2013-09-17 08:27:30 +02:00
Michael Kerrisk 4047bc6cfb perf_event_open.2: Reorder text describing fields of 'perf_event_header' structure
Place the fields with the shorter descriptions first, to make the
information easier to read.

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2013-09-13 09:02:20 +02:00
Michael Kerrisk 2b538c3e53 perf_event_open.2: Minor formatting fixes
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2013-09-13 09:01:14 +02:00
Michael Kerrisk 33d6e2c74a perf_event_open.2: Minor fixes
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2013-09-13 06:39:45 +02:00
Vince Weaver e3c9782b1a perf_event_open.2: PERF_SAMPLE_BRANCH_STACK updates
This started out as just adding the new perf_event_open features
from Linux 3.11 (which was the addition of transactional memory
defines for PERF_SAMPLE_BRANCH_STACK samples) but turned into a
general cleanup of the PERF_SAMPLE_BRANCH_STACK documentation.

The main clarification is that at least one of the non-privilege values
must be set or else perf_event_open will return an EINVAL error.

Signed-off-by: Vince Weaver <vincent.weaver@maine.edu>
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2013-09-13 06:33:02 +02:00
Simon Paillard 50b25c38db clock_getres.2: wfix
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2013-09-13 06:32:08 +02:00
Simon Paillard 28955f1570 cpuset.7, initrd.7, pipe.7, symlink.2: wfix: make "filesystem" one word
More s/file system/filesystem/ but multiline (see 9ee4a2b6)

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2013-09-13 06:31:29 +02:00
J. Bruce Fields 1a7d4eb74c access.2: Fix outdated NFS information
Note that NFS versions since version 3 support an "access" call
so that the client doesn't have to guess permissions or ID
mapping on its own.

(See RFC 1813 sections 1.7 and 3.3.4.)

Signed-off-by: J. Bruce Fields <bfields@redhat.com>
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2013-09-13 06:29:06 +02:00
Zsbán Ambrus 237565c981 ioctl_list.2: Document FAT_IOCTL_GET_ATTRIBUTES
The attached patch adds four ioctls from linux/msdos_fs.h to the
ioctl_list(2) manpage.

The ioctl FAT_IOCTL_GET_ATTRIBUTES reads FAT attributes of a
file a mounted vfat file system.  I tested this on Linux
2.6.33, an example script can be found at
http://www.perlmonks.com/?node_id=832623

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2013-09-08 07:57:45 +02:00
Simon Paillard 5c977011c1 ptrace.2, setns.2, glob.7, ld.so.8: ffix: hyphen-used-as-minus-sign
See http://lintian.debian.org/tags/hyphen-used-as-minus-sign.html

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2013-09-05 13:09:41 +02:00
Michael Kerrisk 78638aae30 clock_getres.2: Note circumstances in which "SMP" note applies.
Reported-by: Rodrigo Campos <rodrigo@sdfg.com.ar>
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2013-09-05 12:55:47 +02:00
Michael Kerrisk 783d6cb454 clock_getres.2: Add kernel version for CLOCK_*_CPUTIME_ID
CLOCK_PROCESS_CPUTIME_ID and CLOCK_THREAD_CPUTIME_ID
appeared in 2.6.12.

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2013-09-04 16:45:44 +02:00
Michael Kerrisk d8b13fb4d9 wait.2: Add details on the fifth argument provided by raw waitid() system call
See https://bugzilla.kernel.org/show_bug.cgi?id=60744

Reported-by: Hannes Landeholm <hannes@jumpstarter.io>
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2013-09-04 15:06:22 +02:00
Michael Kerrisk e272bb60c6 clock_getres.2: Add VERSIONS section
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2013-09-04 14:27:59 +02:00
Michael Kerrisk 072c0d379e sigwaitinfo.2: Clarify wording of 'timeout' as a "minimum" interval
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2013-09-04 10:39:34 +02:00
Michael Kerrisk 0d9101c438 poll.2: Clarify wording of 'timeout' as a "minimum" interval
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2013-09-04 10:39:34 +02:00
Michael Kerrisk 82a6092b03 futex.2: The 'timeout' can be rounded upwards by clock granularity and also overrun
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2013-09-04 10:39:34 +02:00
Michael Kerrisk 2785cd6cee epoll_wait.2: ffix
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2013-09-04 10:39:34 +02:00
Michael Kerrisk 073f0240a4 select.2: Clarify wording of 'timeout' as a "minimum" interval
Reported-by: G.raud <graud@gmx.com>
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2013-09-04 10:39:34 +02:00
David Prévot 7290621523 ptrace.2: ffix
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2013-09-04 08:18:07 +02:00
David Prévot c576d0b3f2 ptrace.2: pfix
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2013-09-04 08:17:56 +02:00
Michael Kerrisk e49b8d6737 mmap2.2: wfix
Reported-by: Magnus Reftel <magnus.reftel@gmail.com>
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2013-09-04 08:16:24 +02:00
David Prévot 699893d8f9 perf_event_open.2: ffix
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2013-09-04 08:12:56 +02:00
D. Barbier 61a9bcb381 linkat.2: tfix
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2013-09-02 07:50:45 +02:00
Doug Goldstein ef4901931a open.2: Add EINVAL to errors list
EINVAL can be returned by open(2) when the underlying filesystem
doesn't support O_DIRECT. It is documented in the NOTES section
but this patch adds it to the list of possible errors.

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2013-09-02 07:49:45 +02:00
Zdenek Pavlas 7d082baba6 sigaction.2: tfix
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2013-09-02 07:40:27 +02:00
Simon Paillard 40f7562094 fstatat.2: wfix
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2013-08-22 09:06:31 +02:00
Johan Erlandsson aa60c0d2b2 syscall.2: Correct registers for arm/EABI
Registers was off by one.

Reference:
http://www.arm.linux.org.uk/developer/patches/viewpatch.php?id=3105/4

See also:
http://peterdn.com/post/e28098Hello-World!e28099-in-ARM-assembly.aspx
https://wiki.debian.org/ArmEabiPort
http://en.wikipedia.org/wiki/Calling_convention#ARM

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2013-08-09 10:13:22 +02:00
Robert Harris 2510e4e5a1 open.2: Add mmap(2) to list of calls that fail when given an O_PATH descriptor
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2013-08-09 09:49:22 +02:00
Johan Erlandsson 415f7e6317 syscall.2: Add missing argument in example
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2013-08-09 09:33:51 +02:00
Michael Kerrisk 6ace3248f2 setfsgid.2: Refer to setfsuid(2) for an explanation of why setfsgid() is obsolete
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2013-08-09 09:28:35 +02:00
Michael Kerrisk 4069bc44a6 setfsgid.2: Wording improvements
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2013-08-09 09:28:35 +02:00
Michael Kerrisk 2ec26c2b30 setfsuid.2: Wording improvements
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2013-08-09 09:28:35 +02:00
Michael Kerrisk 68f2e81eda setfsuid.2: Correct header file in SYNOPSIS
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2013-08-09 09:28:35 +02:00
Michael Kerrisk 0070a62d0a setfsgid.2: Correct header file in SYNOPSIS
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2013-08-09 09:28:35 +02:00
Michael Kerrisk 18cc659761 setfsuid.2: Clarify historical details and note that setfsuid() is obsolete
Reported-by: Chen Gang <gang.chen@asianux.com>
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2013-08-09 09:27:07 +02:00
Michael Kerrisk 9e3859ed2b kill.2: Small improvements to text on historical rules for permissions
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2013-08-09 08:41:53 +02:00
Michael Kerrisk ff4739ceab setfsgid.2: Clarify description of return value
More clearly describe the weirdness in the return value of this
system call, and ote the problems it creates in in BUGS

Reported-by: Oleg Nesterov <oleg@redhat.com>

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2013-08-08 15:44:17 +02:00
Michael Kerrisk 06e4308972 setfsuid.2: Clarify description of return value
More clearly describe the weirdness in the return value of this
system call, and ote the problems it creates in in BUGS

Reported-by: Oleg Nesterov <oleg@redhat.com>
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2013-08-08 15:42:28 +02:00
Michael Kerrisk fd524ab98b sched_setparam.2: Clarify that this system call applies to threads (not processes)
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2013-08-08 15:19:00 +02:00
Michael Kerrisk 81bd66daf4 sched_setscheduler.2: Clarify that this system call applies to threads (not processes)
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2013-08-08 15:02:24 +02:00
Michael Kerrisk 6a7fcf3ccf sched_setaffinity.2: Clarify that these system calls affect a per-thread attribute
Reported-by: Christos Tsopokis <christos@tsopokis.gr>
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2013-08-08 15:02:21 +02:00
Michael Kerrisk 282c1a35d0 msgctl.2, semctl.2, shmctl.2, cciss.4: ffix
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2013-08-08 10:27:55 +02:00
Michael Kerrisk 9ee4a2b6ec intro.1, time.1, access.2, acct.2, alloc_hugepages.2, bind.2, chdir.2, chmod.2, chown.2, chroot.2, clone.2, close.2, execve.2, fallocate.2, fcntl.2, getdents.2, getrusage.2, getxattr.2, init_module.2, inotify_add_watch.2, ioprio_set.2, kcmp.2, link.2, listxattr.2, lseek.2, madvise.2, mkdir.2, mknod.2, mmap.2, mount.2, move_pages.2, msgctl.2, nfsservctl.2, open.2, pivot_root.2, quotactl.2, read.2, readlink.2, removexattr.2, rename.2, rmdir.2, semctl.2, setfsgid.2, setfsuid.2, setresuid.2, setuid.2, setup.2, setxattr.2, shmctl.2, splice.2, spu_create.2, stat.2, statfs.2, swapon.2, symlink.2, sync.2, sync_file_range.2, sysfs.2, truncate.2, umount.2, unlink.2, unshare.2, ustat.2, utime.2, utimensat.2, write.2, btree.3, errno.3, fexecve.3, ftw.3, futimes.3, get_nprocs_conf.3, getcwd.3, getdirentries.3, getmntent.3, glob.3, mkfifo.3, mq_open.3, readdir.3, realpath.3, recno.3, remove.3, sem_open.3, shm_open.3, statvfs.3, sysconf.3, telldir.3, tmpfile.3, cciss.4, initrd.4, pts.4, sk98lin.4, vcs.4, core.5, filesystems.5, proc.5, boot.7, bootparam.7, capabilities.7, cpuset.7, credentials.7, feature_test_macros.7, fifo.7, hier.7, inotify.7, intro.7, mq_overview.7, path_resolution.7, pipe.7, sem_overview.7, shm_overview.7, spufs.7, symlink.7, unix.7, uri.7, sync.8: Global fix: s/file system/filesystem/
Notwithstanding 24d01c530c,
"filesystem" is the form used by the great majority of man pages
outside the man-pages project and in a number of other sources,
so let's go with that.

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2013-08-08 10:07:57 +02:00
Michael Kerrisk 3ad8d7a2b7 nfsservctl.2: Note commands that were only in Linux 2.4.x and earlier
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2013-08-08 09:49:03 +02:00
Michael Kerrisk d59eaecdeb nfsservctl.2: tfix
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2013-08-08 09:48:13 +02:00
Michael Kerrisk 58d0a2034a nfsservctl.2: Minor wording fix
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2013-08-08 09:45:41 +02:00
Michael Kerrisk 8699159874 nfsservctl.2: tfix
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2013-08-08 09:43:32 +02:00
Michael Kerrisk bd6416540a adjtimex.2: SEE ALSO: Add adjtimex(8)
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2013-08-07 09:16:39 +02:00
Michael Kerrisk 95dadb392f fcntl.2: ffix
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2013-08-01 11:52:12 +02:00
Michael Kerrisk 8a94e783a9 Removed trailing white space at end of lines 2013-07-31 08:45:42 +02:00
Michael Kerrisk f80a7a348b readlinkat.2, setpgid.2, resolv.conf.5, udp.7: tstamp
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2013-07-31 08:45:18 +02:00
Michael Kerrisk d806bc0518 clock_nanosleep.2, futex.2, nanosleep.2, poll.2, sigaction.2, sigreturn.2, signal.7: SEE ALSO: add restart_syscall(2)
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2013-07-30 05:21:20 +02:00
Michael Kerrisk 92f30072c8 restart_syscall.2: New page for restart_syscall(2) system call
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2013-07-30 05:08:16 +02:00
Vince Weaver 98f3e7ccfa perf_event_open.2: Fix indentation of the MMAP layout section
The indentation of the MMAP layout section wasn't quite right.
I think this improves things but I admit I'm not an expert at the
low-level indentation directives.

Signed-off-by: Vince Weaver <vincent.weaver@maine.edu>
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2013-07-27 12:15:20 +02:00
David Prévot bc4fc8e0d5 perf_event_open.2: cfix
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2013-07-27 12:14:31 +02:00
David Prévot 460e3d7a3e perf_event_open.2: ffix
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2013-07-23 13:25:15 +02:00
Peter Schiffer 13a082cb40 open.2: tfix
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2013-07-22 12:44:48 +02:00
Michael Kerrisk ab5deaea0d fchownat.2, fstatat.2, linkat.2, capabilities.7: tstamp
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2013-07-20 23:12:07 +02:00
Michael Kerrisk a3041a5894 open.2: Remove warning that O_DIRECTORY is only for use with opendir(3)
O_DIRECTORY can also be used with, for example, O_PATH.

Reorted-by: Geoffrey Thomas <gthomas@mokafive.com>
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2013-07-20 23:11:03 +02:00
Michael Kerrisk 09f677a344 open.2: Note that fcntl(F_GETFL) can also be used on O_PATH descriptor
Reported-by: Al Viro <viro@ZenIV.linux.org.uk>
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2013-07-20 23:11:03 +02:00
Michael Kerrisk f22e7f8016 open.2: srcfix: remove FIXME
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2013-07-20 23:11:03 +02:00
Michael Kerrisk 1135dbe188 open.2: Document O_PATH
See also https://bugzilla.redhat.com/show_bug.cgi?id=885740

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2013-07-20 23:11:02 +02:00
Michael Kerrisk fd53da3318 fchownat.2: Document AT_EMPTY_PATH
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2013-07-20 23:11:02 +02:00
Michael Kerrisk 3fd3e05413 fstatat.2: Document AT_EMPTY_PATH
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2013-07-20 23:11:02 +02:00
Michael Kerrisk 5ad04066f7 linkat.2: Document AT_EMPTY_PATH
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2013-07-20 23:11:02 +02:00
Michael Kerrisk 80b0c433c5 readlinkat.2: Document use of empty 'pathname' argument
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2013-07-20 23:11:02 +02:00
Andrey Vagin ff01b23214 ptrace.2: Place GETSIGINFO and SETSIGINFO near each other
Signed-off-by: Andrey Vagin <avagin@openvz.org>
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2013-07-18 03:13:13 +02:00
Chuck Coffing c1de8e3e30 Fix possible race condition in readlink.2 example
I noticed that the example in the readlink.2 man pages does error
checking for a race condition that would cause the value of the
symbolic link to get larger.  However, it doesn't handle the
opposite case, in which the value gets shorter.  (The NULL
terminator is always set at the old, longer offset.)  This could
cause the program to operate on uninitialized data.

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2013-07-18 02:11:35 +02:00
Michael Kerrisk 4b80b37c54 readlink.2: Change error check in example program from "< 0" to "== -1"
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2013-07-18 02:11:35 +02:00
Vince Weaver e30dc77f5c perf_event_open.2: Improve sysfs files documentation
This improves the documentation of the various
perf_event_open()-related sysfs files.

Signed-off-by: Vince Weaver <vincent.weaver@maine.edu>
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2013-07-18 02:11:35 +02:00
Vince Weaver dbc01ecdff perf_event_open.2: Update PERF_IOC_FLAG_GROUP info
It turns out PERF_IOC_FLAG_GROUP was broken from 75f937f24bd9
(in Linux 2.6.31, the initial perf_event release) until
724b6daa1 (Linux 3.4).

I've done some extensive kernel source code digging plus
running tests of various kernels and I hope the info
presented is accurate now.

(Patch edited somewhat by mtk.)

Signed-off-by: Vince Weaver <vincent.weaver@maine.edu>
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2013-07-18 02:11:35 +02:00
Denys Vlasenko 29f9b8fb31 ptrace.2: If SEIZE was used, initial auto-attach stop is EVENT_STOP
For every PTRACE_O_TRACEfoo option, mention that old-style SIGSTOP
is replaced by PTRACE_EVENT_STOP if PTRACE_SEIZE attach was used.

Mention the same thing again in the description of
PTRACE_EVENT_STOP.

Acked-by: Oleg Nesterov <oleg@redhat.com>
Acked-by: Dmitry V. Levin <ldv@altlinux.org>
Signed-off-by: Denys Vlasenko <dvlasenk@redhat.com>
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2013-07-18 02:11:34 +02:00
Michael Kerrisk ad84c54302 ptrace.2: Minor fixes to patches from Denys Vlasenko
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2013-07-18 02:11:34 +02:00
Denys Vlasenko 8da59274b4 ptrace.2: Clarify PTRACE_INTERRUPT, PTRACE_LISTEN, and group-stop behavior
Signed-off-by: Denys Vlasenko <dvlasenk@redhat.com>
Acked-by: Oleg Nesterov <oleg@redhat.com>
Acked-by: Dmitry V. Levin <ldv@altlinux.org>
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2013-07-18 02:11:34 +02:00
Denys Vlasenko 78686915ae ptrace.2: Mention that PTRACE_PEEK* libc API and kernel API are different
Acked-by: Oleg Nesterov <oleg@redhat.com>
Acked-by: Dmitry V. Levin <ldv@altlinux.org>
Signed-off-by: Denys Vlasenko <dvlasenk@redhat.com>
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2013-07-18 02:11:34 +02:00
Simon Paillard 444f1c6c8e _syscall.2: tfix
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2013-07-18 02:11:33 +02:00
Vince Weaver 6061d29f3d perf_event_open.2: tfix
Signed-off-by: Vince Weaver <vincent.weaver@maine.edu>
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2013-07-18 02:11:33 +02:00
Michael Kerrisk baf7029bac perf_event_open.2: grfix
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2013-07-18 02:11:33 +02:00
Vince Weaver 045bf4d3db perf_event_open.2: Improve PERF_SAMPLE_BRANCH_STACK documentation
Signed-off-by: Vince Weaver <vincent.weaver@maine.edu>
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2013-07-18 02:11:25 +02:00
Michael Kerrisk 07bfe93f85 setpgid.2: s/SIGTSTP/SIGTTIN/ when discussing reads from terminal
See https://bugzilla.kernel.org/show_bug.cgi?id=60504

Reported-by: graud@gmx.com
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2013-07-09 02:20:12 +02:00
Michael Kerrisk 51700fd719 Removed trailing white space at end of lines 2013-07-04 12:53:51 +02:00
Michael Kerrisk ac9167ae16 execve.2, aio_error.3, aio_return.3, clock_getcpuclockid.3, ctermid.3, ecvt.3, ether_aton.3, rexec.3, signbit.3, timegm.3: tstamp
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2013-07-04 10:36:51 +02:00
Vince Weaver d1007d147c perf_event_open.2: Update to match the Linux 3.10 release
This patch updates the perf_event_open() documentation to include
new interfaces added in the 3.10 kernel.

It also documents a few [To be documented] instances left over
from the 3.7 kernel.

Signed-off-by: Vince Weaver <vincent.weaver@maine.edu>
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2013-07-02 06:12:11 +02:00
Michael Kerrisk af6e5ad89b perf_event_open.2: grfix
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2013-07-02 06:08:29 +02:00
Vince Weaver 8cc8b90de8 perf_event_open.2 Add PERF_IOC_FLAG_GROUP documentation
The perf_event_open() ENABLE/DISABLE/RESET ioctls can take an
argument, PERF_IOC_FLAG_GROUP.  This wasn't documented at all
until about a year ago (despite the support being there from
the beginning) so I missed this when initially writing
the man page.

Signed-off-by: Vince Weaver <vincent.weaver@maine.edu>
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2013-07-02 06:05:48 +02:00
Peter LaDow 0c42642f86 execve: Add envp to the Linux notes about NULL pointers
During the review of static analysis results, we discovered a
functional, but non-portable, use of execve().  For example:

    char *cmd[] = { "/path/to/some/file", NULL };
    execve(cmd[0], cmd, NULL);

The call succeeds.  Yet, the static analysis tool (rightly)
pointed out that envp could be dereferenced.  But digging into
glibc and the kernel, it appears that like argv, envp when NULL
is treated as if it were an empty list.

So, to clear things up, I'm submitting this patch to update the
man page to indicate that envp is treated like argv.

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2013-06-21 14:21:43 +02:00
Michael Kerrisk f9293d9857 io_setup.2, perf_event_open.2, readdir.2, syscall.2, a64l.3, abs.3, asprintf.3, bindresvport.3, catgets.3, ceil.3, cimag.3, conj.3, crypt.3, drand48.3, encrypt.3, ether_aton.3, fcloseall.3, ferror.3, fmtmsg.3, getdate.3, getgrent.3, getgrnam.3, getpass.3, getpwent.3, getpwnam.3, getttyent.3, getusershell.3, localeconv.3, mblen.3, mbrlen.3, mbrtowc.3, modf.3, pthread_attr_setschedparam.3, pthread_attr_setschedpolicy.3, pthread_setname_np.3, ptsname.3, qecvt.3, re_comp.3, readdir.3, rexec.3, round.3, scalbln.3, stdio_ext.3, strerror.3, tmpnam.3, trunc.3, ttyname.3, ttyslot.3, inotify.7, man-pages.7, socket.7, tcp.7, udp.7: tstamp
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2013-06-21 13:35:03 +02:00
Michael Kerrisk 2857d3ff8a pread.2: pread() and pwrite() are especially useful in multithreaded applications
Reported-by: Марк Коренберг <socketpair@gmail.com>
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2013-06-21 12:30:25 +02:00
Yuri Kozlov 276939a6b2 fallocate.2: wfix
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2013-06-12 15:00:52 +02:00
Michael Kerrisk 5049da5bef arch_prctl.2, getpeername.2, getrlimit.2, ioctl_list.2, mmap2.2, mremap.2, sched_setaffinity.2, setup.2, shmop.2, argz_add.3, exec.3, fenv.3, fmtmsg.3, gethostbyname.3, posix_memalign.3, printf.3, scanf.3, sigpause.3, wordexp.3, xdr.3, st.4, tty_ioctl.4: Formatting fix: prevent '*' in declaration or cast wrapping to next line
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2013-06-12 15:00:52 +02:00
Michael Kerrisk c994238936 ioctl_list.2, sched_yield.2, vm86.2, backtrace.3, catopen.3, daemon.3, dl_iterate_phdr.3, fnmatch.3, getfsent.3, glob.3, grantpt.3, infnan.3, putgrent.3, setaliasent.3, shm_open.3, stdin.3, ttyS.4: Convert inline formatting (\fX...\fP) to dot-directive formatting
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2013-06-12 15:00:52 +02:00
Michael Kerrisk 509e20562d msync.2, getusershell.3, full.4, pts.4: Convert inline formatting (\fX...\fP) to dot-directive formatting
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2013-06-12 14:56:28 +02:00
Michael Kerrisk c6fa0841a9 time.1, _syscall.2, acct.2, getsockname.2, nanosleep.2, pciconfig_read.2, sched_get_priority_max.2, umask.2, uname.2, ustat.2, INFINITY.3, argz_add.3, atexit.3, bsearch.3, byteorder.3, carg.3, closedir.3, dlopen.3, drand48.3, envz_add.3, errno.3, ether_aton.3, exp10.3, finite.3, flockfile.3, fseeko.3, getcontext.3, getmntent.3, getnetent.3, getprotoent.3, getrpcent.3, getservent.3, iconv_close.3, iconv_open.3, initgroups.3, login.3, longjmp.3, mbsinit.3, memccpy.3, memmem.3, mempcpy.3, offsetof.3, on_exit.3, pow10.3, pthread_cancel.3, pthread_cleanup_push.3, rpc.3, rpmatch.3, setenv.3, setjmp.3, setlogmask.3, sockatmark.3, strfmon.3, strptime.3, strverscmp.3, swab.3, tcgetpgrp.3, tmpfile.3, toascii.3, y0.3, null.4, tty.4, tty_ioctl.4, hosts.equiv.5, environ.7, path_resolution.7, tzselect.8: Convert inline formatting (\fX...\fP) to dot-directive formatting
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2013-06-12 14:56:28 +02:00
Michael Kerrisk 32398a624c semctl.2: 'sem_nsems' is 'unsigned long' since Linux 2.4
Reported-by: Simone Piccardi <piccardi@truelite.it>
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2013-06-03 18:44:45 +02:00
Vince Weaver 751c0f1a66 perf_event_open.2: Clarify the perf_event_open() wakeup_events/wakeup_watermark fields
Clarify the perf_event_open() wakeup_events/wakeup_watermark
fields a bit, based on info from kernel commit cfeb1d90a1b1.

Signed-off-by: Vince Weaver <vincent.weaver@maine.edu>
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2013-06-02 14:27:20 +02:00
Michael Kerrisk 7b6de6f689 prctl.2: Note equivalents of PR_SET_NAME
pthread_setname_np() and pthread_getname_np() and
/proc/self/task/TID/comm provide access to the same
attribute.

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2013-06-02 14:27:20 +02:00
Michael Kerrisk c420fde274 prctl.2: Minor wroding fix for PR_SET_NAME
Reported-by: Марк Коренберг <socketpair@gmail.com>
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2013-06-02 14:27:20 +02:00
Vince Weaver 08e325e8d5 perf_event_open.2: Small correction to description of 'flags' argument
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2013-06-02 14:27:20 +02:00
Mike Frysinger 202f5bfb9a syscall.2: Document s390/s390x calling convention
Signed-off-by: Mike Frysinger <vapier@gentoo.org>
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2013-05-19 20:04:01 +02:00
Michael Kerrisk f24e3a3ad9 readdir.2, asprintf.3, getline.3, getlogin.3, pthread_setname_np.3, readdir.3, strerror.3: Clarify that terminating null byte is '\0'
Reported-by: Jon Grant <jg@jguk.org>
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2013-05-19 19:59:06 +02:00
David Prévot 8b7a20f02f alarm.2: tfix
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2013-05-19 19:59:05 +02:00
David Prévot 15e540d94c io_destroy.2: tfix
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2013-05-19 19:59:05 +02:00
Cyril Hrubis 9c456b53a3 io_setup.2: Clarify the nr_events parameter
Currently the io_setup.2 man page describes what the kernel really
does, i.e., that the resulting context may be able to hold more
than the 'nr_event's operations because the memory allocated in
kernel is rounded to be multiple of page size.

It is better not to expose this implementation detail and
simply state that the resulting context is suitable for
'nr_events' operations.

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
Signed-off-by: Cyril Hrubis <chrubis@suse.cz>
Acked-by: Jeff Moyer <jmoyer@redhat.com>
2013-05-19 19:58:38 +02:00
Michael Kerrisk 3944ae0c0d move_pages.2: ffix
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2013-05-11 22:19:52 +02:00
Michael Kerrisk d1ac81cf89 killpg.2: tfix
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2013-05-06 17:32:46 +02:00
Michael Kerrisk 89cc637cb5 move_pages.2: tfix
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2013-04-21 13:05:46 +02:00
Michael Kerrisk d4c528479e migrate_pages.2: tfix
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2013-04-21 13:05:42 +02:00
Michael Kerrisk e2ee112da1 umask.2: tfix
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2013-04-19 18:29:12 +02:00
Michael Kerrisk d038a74a3f sigsuspend.2: RETURN VALUE: mention that 'errno' is set on error
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2013-04-19 14:18:59 +02:00
Michael Kerrisk 2cbd0ac5b8 sigprocmask.2: RETURN VALUE: mention that 'errno' is set on error
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2013-04-19 14:18:59 +02:00
Michael Kerrisk 947683f353 sigpending.2: RETURN VALUE: mention that 'errno' is set on error
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2013-04-19 14:18:59 +02:00
Michael Kerrisk 125db7c1c1 signal.2: RETURN VALUE: mention that 'errno' is set on error
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2013-04-19 14:18:59 +02:00
Michael Kerrisk de86e93c28 sigaction.2: RETURN VALUE: mention that 'errno' is set on error
Reported-by: Brian Norris <computersforpeace@gmail.com>
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2013-04-19 14:18:59 +02:00
Michael Kerrisk 716c8c3f00 shmget.2: Rewrite RETURN VALUE and mention that 'errno' is set on error
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2013-04-19 14:18:59 +02:00
Michael Kerrisk eb20a4fb40 recv.2: RETURN VALUE: mention that 'errno' is set on error
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2013-04-19 14:18:59 +02:00
Michael Kerrisk 47a979088f fallocate.2: RETURN VALUE: mention that 'errno' is set on error
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2013-04-19 14:18:59 +02:00
Michael Kerrisk 7d2e6d7415 Removed trailing white space at end of lines 2013-04-19 13:57:07 +02:00
Michael Kerrisk 75268cdf44 semop.2, syscalls.2: tstamp
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2013-04-19 13:38:21 +02:00
Michael Kerrisk 9a86ff918e unshare.2, sched_getcpu.3, elf.5, capabilities.7: tstamp
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2013-04-19 13:36:54 +02:00
Michael Kerrisk d82b435b70 alarm.2: Correct the description of behavior when 'seconds' is 0
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2013-04-19 13:23:41 +02:00
Michael Kerrisk 0bf14b8799 mmap.2: Add pointers to relevant /proc files described in proc(5)
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2013-04-17 08:48:06 +02:00
Michael Kerrisk 251113d0f7 clone.2: Add short subsection noting that blackfin, m68k, and sparc are different
Reported-by: Mike Frysinger <vapier@gentoo.org>
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2013-04-17 07:18:13 +02:00
Michael Kerrisk 574c92b61a clone.2: Change subhead for ia64 discussion
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2013-04-17 07:15:23 +02:00
Michael Kerrisk 097a1f3b12 clone.2: Move clone2() text to subsection in description
The description of ia64 clone2() should follow the discussion
of the raw system call interface.

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2013-04-16 07:48:51 +02:00
Michael Kerrisk 51f1f5d957 clone.2: Clarify differences between clone2() syscall and wrapper function
Reported-by: Mike Frysinger <vapier@gentoo.org>
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2013-04-16 07:40:12 +02:00
Michael Kerrisk e585064bb9 clone.2: Replace "sys_clone" mentions with "the raw system call"
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2013-04-16 07:26:27 +02:00
Michael Kerrisk c787510f56 clone.2: Note those architectures where the sys_clone argument order differs
Reported-by: Mike Frysinger <vapier@gentoo.org>
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2013-04-16 07:26:27 +02:00
Michael Kerrisk 81f10dad47 clone.2: Add prototype for syscall to SYNOPSIS
And further clarify the distinction between the system call
and the wrapper function in the introductory text.

Reported-by: Peter Schiffer <pschiffe@redhat.com>
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2013-04-16 07:26:27 +02:00
Michael Kerrisk d49198240b unshare.2: Update feature test macro requirements
The requirements quietly changed changed in glibc 2.14

See also http://www.sourceware.org/bugzilla/show_bug.cgi?id=4749

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2013-04-16 07:26:27 +02:00
Michael Kerrisk e73b310329 clone.2: Update feature test macro requirements
The requirements quietly changed changed in glibc 2.14

See also http://www.sourceware.org/bugzilla/show_bug.cgi?id=4749

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2013-04-16 07:26:27 +02:00
Michael Kerrisk 72d34312e8 access.2: Clarify RETURN VALUE for F_OK
See http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=705293

Reported-by: The Wanderer <wanderer@fastmail.fm>
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2013-04-16 07:26:26 +02:00
Michael Kerrisk 2c28d337cb io_cancel.2: Improve description
Reported-by: Cyril Hrubis <chrubis@suse.cz>
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2013-04-16 07:26:26 +02:00
Jeff Moyer 9f621816bc io_cancel.2: Improve description
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2013-04-16 07:26:26 +02:00
Jeff Moyer 1d79f88e2e io_destroy.2: Improve description
The description was rather vague, citing a "list of I/O contexts"
and stating that it "can" cancel outstanding requests.  This
update makes things more concrete so that the reader knows exactly
what's going on.

Signed-off-by: Jeff Moyer <jmoyer@redhat.com>

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2013-04-16 07:26:26 +02:00
Jeff Moyer 3d083fa4de io_setup.2: Clarify nr_events
nr_events is technically the number of completion events that can
be stored in the completion ring.  The wording of the man page:
"capable of receiving at least nr_events" seems dubious to me,
only because I worry that folks might interpret that to mean
'nr_events' total, instead of 'nr_events' concurrently.

Further, I've added information on where to find the per-user
limit on 'nr_events', /proc/sys/fs/aio-max-nr.  Let me know if
you think that is not relevant.

Signed-off-by: Jeff Moyer <jmoyer@redhat.com>
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2013-04-16 07:26:15 +02:00
Jeff Moyer c102d780c0 io_getevents.2: The 'timeout' argument is not updated
I looked back through the kernel code, and the timeout was
never updated in any case.  I've submitted a patch upstream
to change the comment above io_getevents.

Signed-off-by: Jeff Moyer <jmoyer@redhat.com>
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2013-04-16 05:03:09 +02:00
Michael Kerrisk cc66e8b454 listxattr.2: Explain use of 'size' argument
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2013-04-16 05:03:09 +02:00
Michael Kerrisk a895613945 getcpu.2: Recommend that 'tcache' should be specified as NULL nowadays
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2013-04-16 05:03:09 +02:00
Michael Kerrisk 39b6689e36 syscall.2: tfix
Reported-by: Mike Frysinger <vapier@gentoo.org>
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2013-04-16 05:03:09 +02:00
Michael Kerrisk 08c9b3b9c8 syscall.2: Move "Architecture calling conventions" subsection
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2013-04-08 12:32:44 +02:00