Commit Graph

4179 Commits

Author SHA1 Message Date
Michael Kerrisk 2ff76b2c7c bcopy.3: Reformat thread-safety information
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2015-02-27 13:57:10 +01:00
Michael Kerrisk 8e6ca3c38e bcmp.3: Reformat thread-safety information
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2015-02-27 13:57:10 +01:00
Michael Kerrisk a1eceea551 basename.3: Reformat thread-safety information
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2015-02-27 13:57:10 +01:00
Michael Kerrisk a88fecfcf0 atan.3: Reformat thread-safety information
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2015-02-27 13:57:10 +01:00
Michael Kerrisk 3d90310b27 asinh.3: Reformat thread-safety information
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2015-02-27 13:57:10 +01:00
Michael Kerrisk b02f43176c alloca.3: Reformat thread-safety information
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2015-02-27 13:57:10 +01:00
Michael Kerrisk 4bdf6cc97d aio_return.3: Reformat thread-safety information
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2015-02-27 13:57:10 +01:00
Michael Kerrisk 37e166e8ed aio_error.3: Reformat thread-safety information
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2015-02-27 13:57:10 +01:00
Michael Kerrisk ebea5af99a adjtime.3: Reformat thread-safety information
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2015-02-27 13:57:10 +01:00
Michael Kerrisk 86d2e199af atof.3: Remove crufty text
Reported-by: Peng Haitao <penght@cn.fujitsu.com>
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2015-02-27 13:57:10 +01:00
Michael Kerrisk f385a71d08 pthread_setcancelstate.3: Add async-signal-safety information
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2015-02-27 13:57:09 +01:00
Michael Kerrisk dfa2186c1b pthread_setcancelstate.3: Reformat thread-safety information
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2015-02-27 13:57:09 +01:00
Michael Kerrisk f4328c6b36 fenv.3: Reformat thread-safety information
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2015-02-27 13:57:09 +01:00
Michael Kerrisk 485507b755 drand48.3: Reformat thread-safety information
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2015-02-27 13:57:09 +01:00
Michael Kerrisk 1ff0c44502 bindresvport.3: Reformat thread-safety information
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2015-02-27 13:57:09 +01:00
Michael Kerrisk 929a50b5d6 atof.3: Reformat thread-safety information
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2015-02-27 13:57:09 +01:00
Michael Kerrisk 9baacb3908 abs.3: Reformat thread-safety information
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2015-02-27 13:57:09 +01:00
Michael Kerrisk 74a70e340a abort.3: Reformat thread-safety information
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2015-02-27 13:57:09 +01:00
Michael Kerrisk a73e75e298 a64l.3: Reformat thread-safety information
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2015-02-27 13:57:09 +01:00
Michael Kerrisk 6d322d5fc7 time.1, access.2, arch_prctl.2, cacheflush.2, capget.2, clone.2, execve.2, fcntl.2, fork.2, getpid.2, getxattr.2, ioctl.2, ioctl_fat.2, killpg.2, listxattr.2, madvise.2, migrate_pages.2, modify_ldt.2, mprotect.2, msgget.2, msgop.2, perf_event_open.2, ptrace.2, sched_setattr.2, semget.2, semop.2, sendfile.2, set_thread_area.2, setxattr.2, stat.2, statfs.2, wait.2, wait4.2, encrypt.3, mktemp.3, pthread_attr_setschedparam.3, resolver.3, statvfs.3, syslog.3, tzset.3, core.5, host.conf.5, intro.5, proc.5, resolv.conf.5, pthreads.7, socket.7, unix.7, ld.so.8, ldconfig.8: tstamp
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2015-02-21 09:26:52 +01:00
Michael Kerrisk f019cbb450 statvfs.3: statvfs() now populates 'f_flag' from statfs()'s f_flag field
These changes came with glibc 2.13, and the kernel's addition of
a 'f_flags' field in Linux 2.6.36.

Reported-by: Jan Chaloupka <jchaloup@redhat.com>
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2015-02-21 08:32:15 +01:00
Michael Kerrisk 12fcbd0bfb statvfs.3: wfix
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2015-02-21 08:32:15 +01:00
Michael Kerrisk aaf116b8b7 statvfs.3: Minor wording fix
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2015-02-21 08:32:15 +01:00
Michael Kerrisk 5408344938 statvfs.3: Document missing 'f_flag' bit values
And reorganize information relating to which flags are in
POSIX.1.

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2015-02-21 08:32:15 +01:00
Michael Kerrisk a7a5d641c0 statvfs.3: tfix
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2015-02-21 08:32:15 +01:00
Michael Kerrisk df7a395044 statvfs.3: wfix
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>

Conflicts:
	man3/statvfs.3
2015-02-21 08:32:15 +01:00
Simon Paillard 0921ce4ab0 resolver.3, host.conf.5: host.conf 'order' option deprecated, replaced by nsswitch.conf(5)
http://www.sourceware.org/bugzilla/show_bug.cgi?id=2389
b9c65d0902

Reported at http://bugs.debian.org/270368,
http://bugs.debian.org/396633, and http://bugs.debian.org/344233.

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2015-02-21 08:32:15 +01:00
Luke Faraone fcf4536c62 mktemp.3: DESCRIPTION reference to BUGS corrected
mktemp(3)'s DESCRIPTION referenced NOTES, but no such
section exists. Corrected to refer to BUGS.

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2015-02-21 08:32:13 +01:00
J William Piggott feb9265db8 tzset.3: ffix
Signed-off-by: J William Piggott <elseifthen@gmx.com>
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2015-02-21 08:32:12 +01:00
JWP 036ea82541 tzset.3: Add offset format
tzset.3 does not illustrate the POSIX offset format.
Specifically, there is no indication in the manual
what the optional components of it are.

Signed-off-by: J William Piggott <elseifthen@gmx.com>
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2015-02-21 08:32:12 +01:00
Michael Kerrisk 39b23549b8 syslog.3: Remove unneeded <stdarg.h>
vsyslog() does not need this.

Reported-by: Doug Goldstein <cardoe@gentoo.org>

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2015-02-21 08:32:11 +01:00
Michael Kerrisk ca12634681 pthread_attr_setschedparam.3: tfix
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2015-02-21 08:32:11 +01:00
Tobias Herzke 3f6dadab7b pthread_attr_setschedparam.3: Describe EINVAL in ERRORS
The following example proves that the man page
pthread_attr_setschedparam.3 is incorrect when it claims that the
pthread_attr_setschedparam function always succeeds on linux:

int main() {
   pthread_attr_t attr;
   struct sched_param p = {-1}; /* invalid priority */
   if (pthread_attr_init(&attr) == 0)
     if (pthread_attr_setschedpolicy(&attr, SCHED_OTHER) == 0)
       if (pthread_attr_setschedparam(&attr, &p) == EINVAL)
	return 1;
   return 0;
}

The program exits with exit code 1, therefore
pthread_attr_setschedparam() has returned error code EINVAL.

I could evoke this error on ubuntu 14.04, and verify it by
examining the eglibc-2.19 source code. The function is
implemented in file fbtl/pthread_attr_setschedparam.c. For
error checking, it calls the helper function
check_sched_priority_attr which is implemented inline in
file ./fbtl/pthreadP.h. This function returns EINVAL if a
range check fails.

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2015-02-21 08:32:11 +01:00
Rob Somers ec5308ca6e encrypt.3: Improve code example
I (and some others) found that the original example code
did not seem to work as advertised.  The new code (used by
permission of the original author, Jens Thoms Toerring)
was found on comp.os.linux.development.

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2015-02-21 08:32:11 +01:00
Michael Kerrisk 60569afd98 getnameinfo.3: tfix
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2015-02-21 07:58:28 +01:00
Michael Kerrisk c49a8e2a02 getutent.3: tfix
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2015-02-21 07:58:28 +01:00
Michael Kerrisk a288791dc7 tzset.3: ffix
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2015-02-02 07:37:31 +01:00
J William Piggott 09e421f1aa tzset.3: ffix
Fix tzset.3 regression, dst is optional.

$ date
Sun Feb  1 15:14:33 EST 2015
$ TZ=NZST-12 date
Mon Feb  2 08:14:38 NZST 2015
$ TZ=EST5 date
Sun Feb  1 15:15:02 EST 2015

Signed-off-by: J William Piggott <elseifthen@gmx.com>
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2015-02-02 07:32:59 +01:00
Michael Kerrisk 9dc53e71c2 kexec_load.2, personality.2, prctl.2, reboot.2, socket.2, fflush.3, getopt.3, random.3, termios.3, random.4, passwd.5, capabilities.7, signal.7: tstamp
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2015-02-01 17:14:12 +01:00
Michael Kerrisk dbc45ff182 tzset.3: ffix
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2015-02-01 17:04:21 +01:00
J William Piggott 343d131418 tzset.3: typos and version bump
Signed-off-by: J William Piggott <elseifthen@gmx.com>
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2015-02-01 16:30:36 +01:00
J William Piggott 411dded247 tzset.3: There are only two TZ formats
tzset(3) currently states that there are three TZ formats. The
first two it lists are actually variations of the POSIX-style
TZ format, of which there are at least five variations.

This patch corrects this to match the POSIX specification of
TZ having only two formats.

http://pubs.opengroup.org/onlinepubs/9699919799/basedefs/V1_chap08.html

Signed-off-by: J William Piggott <elseifthen@gmx.com>
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2015-02-01 16:29:49 +01:00
J William Piggott a321c9154c tzset.3: Fix incorrect TZ string representation
The TZ string representation indicates that the start/end
rules are required; this is incorrect.

Updated the TZ string format to the POSIX specification and
improve its readability by having only the optional parts in
italics.

http://pubs.opengroup.org/onlinepubs/9699919799/basedefs/V1_chap08.html

Signed-off-by: J William Piggott <elseifthen@gmx.com>
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2015-02-01 16:28:59 +01:00
Michael Kerrisk 35d82b2596 getopt.3: SEE ALSO: add getopt(1)
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2015-02-01 09:27:24 +01:00
Michael Kerrisk c04700fb25 termios.3: SEE ALSO: add reset(1), setterm(1), tput(1)
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2015-02-01 09:26:38 +01:00
J William Piggott 1cec674c72 tzset.3: Add description for posixrules file
Based upon reviewing the glibc source, the posixrules file is being used
for very specific TZ strings that can be represented as:

[:]stdoffsetdst[offset][,]

If anything follows the above string, even invalid data, posixrules will
not be used. Below is some shell output demonstrating this.

$ TZ="NZST-12:00:00NZDT-13:00:00,ANYTHING" \
strace -eopen date 2>&1 | grep -Ei 'posixrules|jan'
Thu Jan 29 06:53:35 NZDT 2015

$ TZ="NZST-12:00:00NZDT-13:00:00," \
strace -eopen date 2>&1 | grep -Ei 'posixrules|jan'
open("/usr/share/zoneinfo/posixrules", O_RDONLY|O_CLOEXEC) = 3
Thu Jan 29 05:54:58 NZST 2015

Signed-off-by: J William Piggott <elseifthen@gmx.com>
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2015-01-29 23:19:19 +01:00
J William Piggott c1e90e15d3 tzset.3: Add ENVIRONMENT section + other rearrangements
FILES section was overly verbose and included
environment variables.  Added ENVIRONMENT section,
removing ENV VARS from the FILES section.

As stated in commit 2c7f200, /usr/share/zoneinfo/localtime
is not used, nor recommended by glibc.

Signed-off-by: J William Piggott <elseifthen@gmx.com>
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2015-01-29 23:16:58 +01:00
Heinrich Schuchardt d929b8016b random.3: SEE ALSO: add getrandom(2)
Signed-off-by: Heinrich Schuchardt <xypron.glpk@gmx.de>
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2015-01-29 09:02:40 +01:00
Michael Kerrisk 0647fa15ee strcmp.3: wfix
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2015-01-28 10:08:11 +01:00
Michael Kerrisk 035ecf0a03 fmemopen.3: wfix
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2015-01-28 10:04:45 +01:00
Michael Kerrisk 7908afeac2 pow.3: wfix
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2015-01-28 10:04:40 +01:00
Michael Kerrisk f3f1456fde fclose.3: wfix
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2015-01-28 09:59:58 +01:00
Michael Kerrisk fb8d1da088 addseverity.3: wfix
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2015-01-28 09:57:23 +01:00
Michael Kerrisk 1c70978670 fflush.3: wfix
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2015-01-28 09:54:23 +01:00
Michael Kerrisk 7603353762 fflush.3: srcfix
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2015-01-28 09:52:50 +01:00
Michael Kerrisk 199431b631 fflush.3: tfix
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2015-01-28 09:45:46 +01:00
Michael Kerrisk 6db34ce89f fflush.3: POSIX.1-2008 specifies the behavior when flushing input streams
POSIX.1-2001 did not have a specification for input streams,
but POSIX.1-2008 added one.

Reported-by: Sergey V. Zubkov <cubbi@cubbi.com>
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2015-01-28 09:44:44 +01:00
Michael Kerrisk 099263cea7 fflush.3: Clarify that flushing of input streams occurs only for seekable files
See https://bugzilla.kernel.org/show_bug.cgi?id=91931

Reported-by: Sergey V. Zubkov <cubbi@cubbi.com>
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2015-01-28 09:24:47 +01:00
Michael Kerrisk 520d6ed08e tzset.3: Clarify that first timezone format does not contain spaces
Reported-by: J William Piggott <elseifthen@gmx.com>
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2015-01-25 15:19:09 +01:00
JWP 2c7f2006a9 tzset.3: Correct system timezone file path
The manual incorrectly states the system timezone
path as /usr/share/zoneinfo/localtime. Glibc does
not use that file for anything, it uses
$(prefix)/etc/localtime.

There is an ambiguous reference in the man-page to
/etc/localtime, but it does not indicate that it
will be used. It states clearly that
/usr/share/zoneinfo/localtime is used.

A comment in the glibc Makeconfig even says that
file should not exist:

> ... relative to $(zonedir).  It is a good idea
> to put this somewhere other than there, so the
> zoneinfo directory contains only universal data,
> localizing the configuration data elsewhere.

Furthermore, the man page does not indicate the
reason this file is being used; which is because
it is the configured system timezone.

A later patch in this series addresses the
possibility that /etc/localtime could be changed
during glibc's compilation. The language changed
in this patch points to the FILE section which is
where the explanation will be. There is no reason
to repeat that information multiple times
throughout the man-page.

EVIDENCE:

glibc/Makeconfig:256: sysconfdir = $(prefix)/etc
glibc/Makeconfig:272: localtime-file = $(sysconfdir)/localtime

FROM INFO LIBC:
C.2 Installing the C Library
============================
   To configure the locally used timezone, set the `TZ' environment
variable.  The script `tzselect' helps you to select the right value.
As an example, for Germany, `tzselect' would tell you to use
`TZ='Europe/Berlin''.  For a system wide installation (the given paths
are for an installation with `--prefix=/usr'), link the timezone file
which is in `/usr/share/zoneinfo' to the file `/etc/localtime'.  For
Germany, you might execute `ln -s /usr/share/zoneinfo/Europe/Berlin
/etc/localtime'.

STEPS TO REPRODUCE:

cd /usr/share/zoneinfo/
cp Antarctica/South_Pole localtime
cp /US/Eastern /etc/localtime
cd
date
Sun Jan 18 12:06:36 EST 2015
TZ=:/usr/share/zoneinfo/localtime date
Mon Jan 19 06:06:54 NZDT 2015
rm /etc/localtime
date
Sun Jan 18 17:08:37 UTC 2015
TZ=:/usr/share/zoneinfo/localtime date
Mon Jan 19 06:08:41 NZDT 2015

Signed-off-by: J William Piggott <elseifthen@gmx.com>
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2015-01-25 15:19:09 +01:00
JWP 025812041f tzset.3: Document behavior when TZ filespec omits the colon
If the TZ filespec omits the leading colon, glibc will parse
it for any valid format, i.e., it will still work.

STEPS TO REPRODUCE:
TZ=:Europe/Kiev date
Sun Jan 18 20:19:13 EET 2015
TZ=Europe/Kiev date
Sun Jan 18 20:19:20 EET 2015

Signed-off-by: J William Piggott <elseifthen@gmx.com>
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2015-01-25 15:18:44 +01:00
JWP 4e00a0b860 tzset.3: Filespec omitted incorrect
Paragraph three of the DESCRIPTION section says
that when TZ is set, but empty, then UTC is used.

Later it says if the TZ filespec is omitted then the file
/usr/share/zoneinfo/localtime is used.  This is incorrect,
it will use UTC in that case as well.

Steps to reproduce:

cd /usr/share/zoneinfo/
cp Antarctica/South_Pole localtime
cd
date
Sun Jan 18 10:59:50 EST 2015
TZ=:Hongkong date
Sun Jan 18 23:59:56 HKT 2015
TZ=:/usr/share/zoneinfo/localtime date
Mon Jan 19 05:00:03 NZDT 2015
TZ=: date
Sun Jan 18 16:00:11 UTC 2015
TZ=":" date
Sun Jan 18 16:00:18 UTC 2015
TZ=':' date
Sun Jan 18 16:00:24 UTC 2015
TZ=:/ date
Sun Jan 18 16:00:34  2015
TZ=":/" date
Sun Jan 18 16:00:40  2015
TZ="" date
Sun Jan 18 16:00:45 UTC 2015

Signed-off-by: J William Piggott <elseifthen@gmx.com>
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2015-01-25 15:18:44 +01:00
Michael Kerrisk 8392a3b33f _exit.2, dup.2, execve.2, execveat.2, fallocate.2, fcntl.2, get_robust_list.2, getrlimit.2, mbind.2, memfd_create.2, mmap.2, open.2, ptrace.2, readv.2, select.2, sigaction.2, syscall.2, syscalls.2, truncate.2, utimensat.2, write.2, errno.3, exec.3, fclose.3, fexecve.3, fmemopen.3, fopencookie.3, getgrent_r.3, getline.3, getmntent.3, getpw.3, getpwent_r.3, getspnam.3, malloc_info.3, posix_fallocate.3, putgrent.3, shm_open.3, locale.5, proc.5: tstamp
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2015-01-22 23:29:25 +01:00
Michael Kerrisk c4d76cd9ab mmap.2, shmget.2, shm_open.3: SEE ALSO: add memfd_create(2)
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2015-01-19 10:35:32 +01:00
Michael Kerrisk 362374628b posix_fallocate.3: Note that posix_fallocate() is implemented using fallocate(2)
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2015-01-19 10:35:32 +01:00
Michael Kerrisk 8a11899c69 getpw.3: tfix
Reported-by: Carlos O'Donell <carlos@redhat.com>
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2015-01-16 23:20:00 +01:00
Michael Kerrisk 9a593da7ff fexecve.3: Rewrite the script+close-on-exec problem as a BUG
Also, add one or two details about this scenario.

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2015-01-16 15:07:43 +01:00
Michael Kerrisk 67fc42b56d fexecve.3: The natural idiom when using fexecve() is to use the close-on-exec flag
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2015-01-16 15:07:43 +01:00
Michael Kerrisk 9dabaedf87 fexecve.3: srcfix: Add FIXME
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2015-01-16 15:05:09 +01:00
Michael Kerrisk 6251424c35 exec.3: SEE ALSO: add execveat(2)
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2015-01-16 15:05:09 +01:00
Michael Kerrisk a940759fc0 execve.2, fexecve.3: SEE ALSO: add execveat(2)
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2015-01-16 15:05:09 +01:00
Michael Kerrisk f3ece15a52 towupper.3: ffix
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2015-01-16 07:56:01 +01:00
Michael Kerrisk 0645c780ad towlower.3: ffix
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2015-01-16 07:55:51 +01:00
Akihiro Motoki bafaef214c printf.3: ffix
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2015-01-16 07:54:02 +01:00
Michael Kerrisk 44517b7b3c getpw.3: Describe return value when 'uid' is not found
Reported-by: Carlos O'Donell <carlos@redhat.com>
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2015-01-16 07:54:02 +01:00
Carlos O'Donell b5606b276f getpwent_r.3: wfix
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2015-01-16 07:54:01 +01:00
Carlos O'Donell b33e5e8011 getgrent_r.3: wfix
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2015-01-16 07:54:01 +01:00
Michael Kerrisk 363b9dceab getline.3: Consistency fix: use "stream" as name for "FILE *" argument
Inspired by Carlos O'Donell's recent patches.

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2015-01-16 07:54:01 +01:00
Michael Kerrisk d41abf5dc6 fopencookie.3: Consistency fix: use "stream" as name for "FILE *" argument
Inspired by Carlos O'Donell's recent patches.

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2015-01-16 07:54:01 +01:00
Michael Kerrisk f518495150 fmemopen.3: Consistency fix: use "stream" as name for "FILE *" argument
Inspired by Carlos O'Donell's patches.

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2015-01-16 07:53:55 +01:00
Michael Kerrisk ef3d4efed1 getpwent_r.3: wfix
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2015-01-16 06:58:18 +01:00
Michael Kerrisk 0a3d50c666 getspnam.3: wfix
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2015-01-16 06:57:47 +01:00
Michael Kerrisk 43905c2844 getgrent_r.3: wfix
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2015-01-16 06:56:25 +01:00
Carlos O'Donell 7de6ef867c getmntent.3: Consistency fix: use "stream" as name for "FILE *" argument
Harmonize all the manual pages to use "stream" for FILE*
instead of randomly using "fp" or "stream." Choosing something
and being consistent helps users scan the man pages quickly
and understand what they are looking at.

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2015-01-16 06:53:27 +01:00
Carlos O'Donell 495604c308 getpwent_r.3: Consistency fix: use "stream" as name for "FILE *" argument
Harmonize all the manual pages to use "stream" for FILE*
instead of randomly using "fp" or "stream." Choosing something
and being consistent helps users scan the man pages quickly
and understand what they are looking at.

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2015-01-16 06:53:09 +01:00
Carlos O'Donell 865629543d getspnam.3: Consistency fix: use "stream" as name for "FILE *" argument
Harmonize all the manual pages to use "stream" for FILE*
instead of randomly using "fp" or "stream." Choosing something
and being consistent helps users scan the man pages quickly
and understand what they are looking at.

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2015-01-16 06:53:00 +01:00
Carlos O'Donell e164e983a1 getgrent_r.3: Consistency fix: use "stream" as name for "FILE *" argument
Harmonize all the manual pages to use "stream" for FILE*
instead of randomly using "fp" or "stream." Choosing something
and being consistent helps users scan the man pages quickly
and understand what they are looking at.

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2015-01-16 06:52:49 +01:00
Carlos O'Donell 91f8edd680 malloc_info.3: Consistency fix: use "stream" as name for "FILE *" argument
Harmonize all the manual pages to use "stream" for FILE*
instead of randomly using "fp" or "stream." Choosing something
and being consistent helps users scan the man pages quickly
and understand what they are looking at.

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2015-01-16 06:51:12 +01:00
Carlos O'Donell 2d70fb0d52 putgrent.3: Consistency fix: use "stream" as name for "FILE *" argument
Harmonize all the manual pages to use "stream" for FILE*
instead of randomly using "fp" or "stream." Choosing something
and being consistent helps users scan the man pages quickly
and understand what they are looking at.

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2015-01-16 06:51:02 +01:00
Carlos O'Donell 300791edae fclose.3: Consistency fix: use "stream" as name for "FILE *" argument
Harmonize all the manual pages to use "stream" for FILE*
instead of randomly using "fp" or "stream." Choosing something
and being consistent helps users scan the man pages quickly
and understand what they are looking at.

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2015-01-16 06:50:17 +01:00
Michael Kerrisk 0c38aa2cb6 errno.3: The RLIMIT_NOFILE resource limit is a common cause of EMFILE
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2015-01-13 10:24:17 +01:00
Michael Kerrisk 1ac80024c9 perf_event_open.2, seccomp.2, setns.2, shmget.2, memchr.3, pthread_tryjoin_np.3, strstr.3, random.4, epoll.7, netlink.7, pid_namespaces.7, tcp.7: tstamp
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2015-01-10 16:05:01 +01:00
Alexandre Bique 3924b70d3a memchr.3, strstr.3: Reference memmem (3) in SEE ALSO section
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2015-01-07 12:38:58 +01:00
Michael Kerrisk dc891cf9da pthread_tryjoin_np.3: tfix
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2015-01-07 12:34:17 +01:00
Michael Kerrisk 305965f51e pthread_tryjoin_np.3: Add some details to EINVAL error
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2015-01-07 12:34:02 +01:00
Jerome Pouiller e7e39a14c3 pthread_tryjoin_np.3: Document EINVAL error for pthread_timedjoin_np()
Signed-off-by: Jérôme Pouiller <jezz@sysmic.org>
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2015-01-07 12:29:28 +01:00
Michael Kerrisk 8d476c394a memcmp.3: tfix
Reported-by: Andre Majorel <aym-xunil@teaser.fr>
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2015-01-07 06:47:54 +01:00
Akihiro Motoki 8f9b158798 mq_getattr.3: tfix
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2015-01-06 08:07:37 +01:00
Akihiro Motoki a4e83a441e mq_getattr.3: tfix: fix section number of mq_overview
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2015-01-06 08:07:11 +01:00
Akihiro Motoki b5fafa0bee ilogb.3: tfix
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2015-01-06 08:06:05 +01:00
Michael Kerrisk 8b201be5ec memcmp.3: NOTES: add some detail on avoiding memcmp() of cryptographic data
Wording largely based on comments from Michael Haardt.

Reported-by: Michael Haardt <michael@moria.de>
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2015-01-03 15:51:28 +01:00
Michael Kerrisk 03417139d2 memcmp.3: wfix
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2015-01-03 07:29:49 +01:00
Michael Kerrisk 360d311681 Removed trailing white space at end of lines 2014-12-31 07:46:42 +01:00
Michael Kerrisk 0649afd45a localedef.1, adjtimex.2, clock_nanosleep.2, epoll_ctl.2, ioctl.2, madvise.2, open.2, posix_fadvise.2, prctl.2, restart_syscall.2, sched_setaffinity.2, select.2, semop.2, setsid.2, sgetmask.2, sigaction.2, sigreturn.2, splice.2, syscall.2, syscalls.2, tee.2, tkill.2, abort.3, cmsg.3, exp10.3, ftw.3, getopt.3, ilogb.3, memcmp.3, mq_open.3, pow.3, pthread_setschedparam.3, sigvec.3, sysconf.3, termios.3, tgamma.3, wordexp.3, locale.5, proc.5, resolv.conf.5, cp1251.7, credentials.7, fanotify.7, inotify.7, locale.7, man-pages.7, signal.7, unix.7, ld.so.8: tstamp
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2014-12-31 07:01:38 +01:00
Michael Haardt f70fe9d7cb memcmp.3: Warn against use of memcmp() for comparing security-critical data
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2014-12-30 22:10:20 +01:00
Michael Haardt 7f139a4512 memcmp.3: Document return value for n==0 case
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2014-12-30 22:04:08 +01:00
Rasmus Villemoes 95a456f51e isfdtype.3: wsfix
Signed-off-by: Rasmus Villemoes <rv@rasmusvillemoes.dk>
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2014-12-30 14:41:44 +01:00
Ma Shimiao b73ce08423 getpass.3: wsfix
Signed-off-by: Ma Shimiao <mashimiao.fnst@cn.fujitsu.com>
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2014-12-30 14:29:03 +01:00
Michael Kerrisk 26f418daaf getopt.3: Ensure that 'nsecs' is used
Reported-by: Jonny Grant <jg@jguk.org>
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2014-12-29 14:30:26 +01:00
Carlos O'Donell 62b1156b15 wordexp.3: Make it clear that WRDE_NOCMD prevents command substitution
The use of WRDE_NOCMD prevents command substitution. If the flag
WRDE_NOCMD is set then no command substitution shall occur and
the error WRDE_CMDSUB will be returned if such substitution is
requested when processing the words.

The manual page as-is makes it seem like the command substitution
occurs, and an error is returned *after* the substitution.
This patch clarifies that.

Signed-off-by: Carlos O'Donell <carlos@redhat.com>
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2014-12-26 07:35:25 +01:00
Simon Newton c420c4a13b pthread_setschedparam.3: Fix logic error in example program
The example program will crash if -A is used, since 'attr'
is uninitialized.

    $ ./a.out  -A
    *** Error in `./a.out': free(): invalid pointer: 0xb779c3c4 ***
    Aborted (core dumped)

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2014-12-26 07:35:25 +01:00
Michael Kerrisk 5587b44c90 sigvec.3: Starting with version 2.21, glibc no longer exports sigvec()
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2014-12-05 20:29:31 +01:00
Michael Kerrisk a00ca3d5a0 ftw.3: FTW_CHDIR has no effect on the 'fpath' argument passed to fn()
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2014-11-24 18:02:26 +01:00
Michael Kerrisk 24453ff068 sigsetops.3: wfix
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2014-11-18 21:14:41 +01:00
Andrea Balboni d11464ba58 pthread_attr_init.3: tfix
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2014-11-16 16:50:14 +01:00
Michael Kerrisk ca8c33fcdd termios.3: SEE ALSO: add tset(1)
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2014-11-13 11:08:55 +01:00
Michael Kerrisk ac5ba355d5 pow.3: srcfix
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2014-11-11 13:58:14 +01:00
Manuel López-Ibáñez 285d20e353 pow.3: Add note on performance characteristics of pow()
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2014-11-11 13:56:34 +01:00
David Wragg a7bd3dab97 cmsg.3: ensure buf is suitably aligned in sending example
Inspection of the definition of CMSG_FIRSTHDR (both in glibc and
the suggested definition in RFC3542) shows that it yields the
msg_control field.  So when sending, the pointer placed in
msg_control should be suitably aligned as a struct cmsghdr.
In the sending example, buf was declared as a bare char array,
and so is not necessarily suitably aligned.

The solution here involves placing buf inside a union, and is
based on the sockets/scm_rights_send.c sample from The Linux
Programming Interface "dist" source code collection.

Signed-off-by: David Wragg <david@wragg.org>
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2014-11-11 10:01:59 +01:00
Michael Kerrisk 34fcd227fb abort.3: Note that SIGABRT is raised as though raise(3) is called
Also note that abort is POSIX.1-2008 compliant.

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2014-11-09 19:52:34 +01:00
Michael Kerrisk d74f805937 mq_open.3: Document the O_CLOEXEC flag
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2014-11-08 13:49:54 +01:00
Michael Kerrisk 8d121cc5c1 mq_open.3: Place 'flags' constants in alphabetical order
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2014-11-08 13:37:10 +01:00
Michael Kerrisk 31e025bf45 tgamma.3: Since glibc 2.18, errno is correctly set to EDOM when (x == -infinity))
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2014-10-31 07:25:54 +01:00
Michael Kerrisk 8ee4373d37 ilogb.3: Since glibc 2.16, ilogb() does correctly diagnore domain errors
Reported-by: Will Newton <will.newton@linaro.org>
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2014-10-31 07:24:37 +01:00
Michael Kerrisk 0ba5517581 exp10.3: Before glibc 2.19, exp() did not give ERANGE error on underflow
http://sources.redhat.com/bugzilla/show_bug.cgi?id=6787

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2014-10-30 19:08:26 +01:00
Josh Triplett 4d300f4a48 sysconf.3: Document _SC_NGROUPS_MAX
Already documented in getgroups(2), but not in sysconf(3).

Signed-off-by: Josh Triplett <josh@joshtriplett.org>
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2014-10-28 15:27:16 +01:00
刘湃 78e369ff57 pthread_setschedparam.3: Small fixes to example program
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2014-10-28 15:02:47 +01:00
Yuri Kozlov d79f2e8c7e lseek64.3: tfix
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2014-10-16 13:41:41 +02:00
Simon Paillard ccde3aacfd tzset.3: grfix
The sentence is missing a word somewhere.

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2014-10-16 11:56:22 +02:00
Michael Kerrisk b8017cf527 Removed trailing white space at end of lines 2014-10-15 11:17:46 +02:00
Michael Kerrisk ad624ff433 readlink.2, readv.2, pthread_rwlockattr_setkind_np.3, signal.7, unix.7: tstamp
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2014-10-15 11:13:45 +02:00
Michael Kerrisk 3de09c0d9b pthread_rwlockattr_setkind_np.3: srcfix: Add license tag
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2014-10-15 11:13:11 +02:00
Michael Kerrisk a21a7c10ba pthread_rwlockattr_setkind_np.3: Edits my mtk
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2014-10-14 09:14:27 +02:00
Robert Schweikert 5072376a1b pthread_rwlockattr_getkind_np.3: New link to pthread_rwlockattr_setkind_np(3) 2014-10-14 09:11:44 +02:00
Robert Schweikert 88e15474bf pthread_rwlockattr_setkind_np.3: New page documenting pthread_rwlockattr_[sg]etkind_np(3)
Documents pthread_rwlockattr_setkind_np(3) and
pthread_rwlockattr_getkind_np(3).

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2014-10-14 09:10:26 +02:00
Michael Kerrisk 63fe502792 abs.3: wfix
Reported-by: Walter Harms <wharms@bfs.de>
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2014-10-10 22:13:11 +02:00
Michael Kerrisk 36ad6ae0b4 abs.3: wfix
Reported-by: Jonny Grant <jg@jguk.org>
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2014-10-10 22:11:56 +02:00
Michael Kerrisk e890609356 capget.2, ptrace.2, vhangup.2, wait.2, ttyslot.3, console.4, proc.5, utmp.5, boot.7: tfix: page xrefs for init 2014-10-03 08:47:03 +02:00
Michael Kerrisk bc65e77236 ldd.1, execve.2, fanotify_init.2, fanotify_mark.2, getrlimit.2, open.2, readlink.2, sched_setattr.2, sched_setscheduler.2, shmget.2, syscalls.2, vmsplice.2, dlopen.3, fseeko.3, getgrent.3, mq_getattr.3, mq_open.3, realpath.3, armscii-8.7, ascii.7, iso_8859-1.7, iso_8859-10.7, iso_8859-11.7, iso_8859-13.7, iso_8859-14.7, iso_8859-15.7, iso_8859-16.7, iso_8859-2.7, iso_8859-3.7, iso_8859-4.7, iso_8859-5.7, iso_8859-6.7, iso_8859-7.7, iso_8859-8.7, iso_8859-9.7, koi8-r.7, koi8-u.7, sched.7, ld.so.8: tstamp
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2014-10-02 23:47:51 +02:00
Michael Kerrisk 5d95b7d80a dlopen.3: SEE ALSO: add pldd(1)
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2014-10-02 23:10:41 +02:00
Michael Kerrisk 6c1eb6d237 mq_getattr.3: Add an example program
The example program can be used to discover the default
'mq_maxmsg' and 'mq_msgsize' values used to create a queue with
a mq_open(3) call in which 'attr' is NULL.

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2014-10-02 22:18:09 +02:00
Michael Kerrisk 98c2ef7bc4 mq_getattr.3: Fix: /proc files are described in mq_overview(7) not (mq_open(3))
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2014-10-02 22:18:09 +02:00
Michael Kerrisk d8e8fd1053 mq_open.3: Two /proc files control the defaults for the attrp==NULL case
Refer the reader to the discussion in mq_overview(7) for a
discussion of these files, which exist since Linux 3.5.

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2014-10-02 22:18:09 +02:00
Michael Kerrisk 09795f3425 mq_open.3: ffix
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2014-10-02 22:18:09 +02:00
Michael Kerrisk be7d49c178 strcat.3: wfix
Reported-by: Jonny Grant <jg@jguk.org>
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2014-10-01 11:56:48 +02:00
Michael Kerrisk 1f63d3ec81 fseeko.3: _FILE_OFFSET_BITS must be defined before including any header file
Reported-by: Thomas Mack <mack@ifis.cs.tu-bs.de>
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2014-10-01 11:56:47 +02:00
Michael Kerrisk 23ac32233b euidaccess.3: tfix
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2014-09-21 19:53:13 +02:00
Michael Kerrisk 9e4f79d4d3 realpath.3: SEE ALSO: add realpath(1)
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2014-09-21 19:51:48 +02:00
Carlos O'Donell 7109ed8103 getgrent.3: Add ENOENT and EAGAIN to error list
It's possible to get ENOENT returned from getgrent()
if the backend, for example say SSSD, isn't configured
or the daemon isn't running. The same can be said of any
of the NSS backend.

As POSIX does not list ENOENT, we can list it ourselves
and define it how we like.

I don't know how you handle errno values that are glibc
specific, but here is the patch that enhances getgrent(3)
to make users aware of what ENOENT is intended to mean
from glibc.

While I'm fixing one I might as well [add EAGAIN].

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2014-09-21 19:50:35 +02:00
Michael Kerrisk daf084cc33 clone.2, flock.2, getpid.2, getunwind.2, mount.2, reboot.2, semop.2, seteuid.2, setgid.2, setns.2, setresuid.2, setreuid.2, setuid.2, uname.2, unshare.2, clock.3, drand48.3, proc.5, capabilities.7, credentials.7, mq_overview.7, namespaces.7, pid_namespaces.7, svipc.7, user_namespaces.7: tstamp
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2014-09-21 11:23:07 +02:00