The page already (by now) contains a reference to open(2)
for a discussion of open file descriptions. Leave it at that,
since the reader can then deduce how things work.
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
/proc/pid/environ reflects process environment at
*start* of program execution.
Signed-off-by: Mike Frysinger <vapier@gentoo.org>
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
Make the reader's life a little easier by saving them from
having to refer to mq_getattr(3).
Reported-by: Adam Martindale <adam.john.martindale@gmail.com>
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
See __send_signal() in kernel/signal.c:
if (sig >= SIGRTMIN && info->si_code != SI_USER) {
/*
* Queue overflow, abort. We may abort if the
* signal was rt and sent by user using something
* other than kill().
*/
result = TRACE_SIGNAL_OVERFLOW_FAIL;
ret = -EAGAIN;
goto ret;
}
(kill() uses SI_USER, but tkill() and tgkill() use SI_TKILL.)
Signed-off-by: Jann Horn <jannh@google.com>
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
The description of FAT_IOCTL_GET_VOLUME_ID references volume name,
when it really should be volume ID since the volume label is
different in the FAT filesystem. This patch renames the incorrect
volume name references to volume id.
This man page supplies an example display_fat_volume_id.c program
that can be used to read the volume ID (serial number) from a
filesystem. Here is an additional test showing that the volume ID
and volume name are two different entities:
$ dd if=/dev/zero of=fat_volume bs=1M count=1
$ mkfs.fat -v -n MASNEYB fat_volume
[snip]
Volume ID is da8cecf2, volume label MASNEYB .
$ sudo mount -o loop fat_volume /mnt
$ ./display_fat_volume_id /mnt/
Volume ID da8c-ecf2
Signed-off-by: Brian Masney <masneyb@onstation.org>
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
The statement that the default pipe capacity is 65536 bytes
is accurate only on systems where the page size is 4096B.
See the use of PIPE_DEF_BUFFERS in the kernel source.
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
Move the second call to va_end(ap) to above the if-block that
precedes it, so that the va_list 'ap' will be cleaned up in
all cases.
Reported-by: Erik Roland van der Meer <ervdmeer@gmail.com>
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
Add a hint which buffer size is needed for
strerror_r() and strerror_l().
Signed-off-by: Heinrich Schuchardt <xypron.glpk@gmx.de>
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
Also, reword the description of bzero somewhat.
By now, over time, I've completely rewritten the page,
so change the copyright as well.
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>