Commit Graph

4179 Commits

Author SHA1 Message Date
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
Michael Kerrisk 3db3ecf0ff drand48.3: Remove crufty text about SVID 3 marking drand48() obsolete
See http://bugs.debian.org/758293

drand48() is in current POSIX. It's unclear why SVID 3 would
have marked it obsolete, but that's crufty information that
only serves to pointlessly worry people.

Reported-by: Lorenzo Beretta <lory.fulgi@infinito.it>
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2014-09-13 20:14:06 -07:00
Michael Kerrisk f35f30b86c clock.3: The switch to the use of clock_gettime() was to improve *accuracy*
Quoting Vincent Lefevre:

    In glibc 2.17 and earlier, clock() was implemented on top of
    times(2).  For improved precision, since glibc 2.18, it is
                      ^^^^^^^^^^^^^^^^^^
    implemented on top of clock_gettime(2) (using the
    CLOCK_PROCESS_CPUTIME_ID clock).

This looks strange. The user doesn't seek improved precision, but
improved accuracy: if one gets more digits but the value itself is
less accurate (i.e. the error against the ideal value is larger),
this is bad. Perhaps changing "precision" to "accuracy" would be
correct (I assume that the real goal of the change was not just
improved precision, but more importantly the resulting improved
accuracy). I've reported a bug about the glibc documentation:

  https://sourceware.org/bugzilla/show_bug.cgi?id=17383

Reported-by: Vincent Lefevre <vincent@vinc17.net>
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2014-09-13 19:35:37 -07:00
Michael Kerrisk 62c76ace78 memusage.1, memusagestat.1, connect.2, fcntl.2, poll.2, errno.3, rtnetlink.3, inotify.7: tstamp
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2014-09-07 05:03:19 -07:00
Holger Hans Peter Freyther cb7c2ea700 rtnetlink.3: Fix parameters for the send() call in the example
Signed-off-by: Holger Hans Peter Freyther <holger@moiji-mobile.com>
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2014-09-01 19:47:32 +02:00
Michael Kerrisk 9af134cdeb getrlimit.2, mmap.2, stat.2, unimplemented.2, dbopen.3, ecvt_r.3, fopen.3, fts.3, getcontext.3, qecvt.3, ip.7, ld.so.8: grfix: Add Oxford comma
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2014-09-01 17:57:07 +02:00
Michael Kerrisk c8624d68b2 malloc.3: grfix
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2014-09-01 17:30:53 +02:00
Michael Kerrisk 00f3b66d62 errno.3: SEE ALSO: add errno(1)
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2014-08-25 18:40:57 +02:00
Mike Frysinger ae57731070 getpwnam(3): ffix
Signed-off-by: Mike Frysinger <vapier@gentoo.org>
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2014-08-22 17:53:25 -05:00
Michael Kerrisk bea08fec7e adjtimex.2, bind.2, cacheflush.2, clone.2, fallocate.2, fanotify_init.2, fanotify_mark.2, flock.2, futex.2, getdents.2, getpriority.2, getrlimit.2, gettid.2, gettimeofday.2, ioprio_set.2, kexec_load.2, migrate_pages.2, modify_ldt.2, mount.2, move_pages.2, mprotect.2, msgop.2, nfsservctl.2, perf_event_open.2, pread.2, ptrace.2, recvmmsg.2, rename.2, restart_syscall.2, sched_setattr.2, send.2, shmop.2, shutdown.2, sigaction.2, signalfd.2, syscalls.2, timer_create.2, timerfd_create.2, tkill.2, vmsplice.2, wait.2, aio_init.3, confstr.3, exit.3, fmemopen.3, fopen.3, getaddrinfo.3, getauxval.3, getspnam.3, isalpha.3, isatty.3, mallinfo.3, malloc.3, mallopt.3, psignal.3, pthread_attr_setinheritsched.3, qecvt.3, queue.3, rtnetlink.3, strerror.3, strftime.3, toupper.3, towlower.3, towupper.3, initrd.4, locale.5, proc.5, bootparam.7, capabilities.7, ddp.7, fanotify.7, icmp.7, inotify.7, ip.7, ipv6.7, netdevice.7, netlink.7, path_resolution.7, rtld-audit.7, rtnetlink.7, sched.7, signal.7, socket.7, svipc.7, tcp.7, unix.7, ld.so.8: srcfix: Update FIXMEs
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2014-08-21 16:47:44 -05:00
Michael Kerrisk ef4f4031ca Removed trailing white space at end of lines 2014-08-19 12:01:21 -05:00
Michael Kerrisk 8980a50087 access.2, bdflush.2, bind.2, brk.2, chmod.2, chown.2, clone.2, epoll_wait.2, execve.2, fsync.2, getgroups.2, gethostname.2, getpagesize.2, getpriority.2, getrlimit.2, ioperm.2, kexec_load.2, link.2, mkdir.2, mmap.2, msgop.2, perf_event_open.2, process_vm_readv.2, ptrace.2, readlink.2, readv.2, recv.2, rename.2, sched_setaffinity.2, select.2, send.2, seteuid.2, signal.2, sigwaitinfo.2, stat.2, symlink.2, sync.2, sync_file_range.2, sysinfo.2, timer_create.2, uname.2, unlink.2, utime.2, wait.2, abs.3, atoi.3, catopen.3, cerf.3, cexp2.3, clearenv.3, clog2.3, ctime.3, des_crypt.3, ecvt.3, fgetgrent.3, flockfile.3, fseeko.3, ftime.3, ftok.3, ftw.3, getauxval.3, getcwd.3, getdtablesize.3, getgrent.3, getgrent_r.3, getgrnam.3, getgrouplist.3, getline.3, getpass.3, getutent.3, glob.3, insque.3, lseek64.3, memmem.3, mkstemp.3, mktemp.3, on_exit.3, openpty.3, putenv.3, qecvt.3, realpath.3, remove.3, setbuf.3, sigpause.3, strftime.3, strptime.3, strstr.3, strtod.3, tzset.3, updwtmp.3, xcrypt.3, core.5, utmp.5, capabilities.7, charsets.7, environ.7, ipv6.7, man-pages.7, packet.7, vdso.7: tstamp
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2014-08-19 11:55:41 -05:00
Michael Kerrisk af81e9cd97 isfdtype.3: New page documenting isfdtype(3)
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2014-08-18 17:24:32 -05:00
Michael Kerrisk 94ed3bb9c6 getgrouplist.3: SEE ALSO: add group_member(3)
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2014-08-18 17:20:49 -05:00
Michael Kerrisk 701f91bd92 group_member.3: New page documenting group_member(3)
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2014-08-18 17:20:49 -05:00
Michael Kerrisk 165b96384d putenv.3: Minor rewording
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2014-08-18 17:01:51 -05:00
Michael Kerrisk 99c4073b93 putenv.3: Remove ancient Linux libc details
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2014-08-18 17:01:51 -05:00
Michael Kerrisk 07fc376582 getutent.3: Remove ancient Linux libc details
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2014-08-18 17:01:51 -05:00
Michael Kerrisk a6cc92e394 getpass.3: Remove ancient Linux libc details
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2014-08-18 17:01:51 -05:00
Michael Kerrisk 5479edd39c updwtmp.3: Replace AVAILABILITY section with note to link logwtmp() using -lutil
Linux libc details are no longer needed these days.

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2014-08-18 17:01:50 -05:00
Michael Kerrisk 0fbb147d10 tzset.3: wfix
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2014-08-18 17:01:50 -05:00
Michael Kerrisk 503ad3d495 tzset.3: grfix
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2014-08-18 17:01:50 -05:00
Michael Kerrisk 7c4777066f tzset.3: ffix
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2014-08-18 17:01:50 -05:00
Michael Kerrisk 8e6dc8dc6c tzset.3: Remove ancient Linux libc details
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2014-08-18 17:01:50 -05:00
Michael Kerrisk 3f731493d6 sigpause.3: Remove ancient Linux libc details
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2014-08-18 17:01:50 -05:00
Michael Kerrisk f5ccb6a757 remove.3: Remove ancient Linux libc details
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2014-08-18 17:01:50 -05:00
Michael Kerrisk 788b19a299 realpath.3: Remove ancient Linux libc details
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2014-08-18 17:01:50 -05:00
Michael Kerrisk 875aad4841 qecvt.3: Remove ancient Linux libc details
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2014-08-18 17:01:50 -05:00
Michael Kerrisk 09d8ec93d1 putenv.3: Remove ancient Linux libc details
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2014-08-18 17:01:50 -05:00
Michael Kerrisk b86c469aed openpty.3: Remove ancient Linux libc details
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2014-08-18 17:01:50 -05:00
Michael Kerrisk 4ccc3a148e on_exit.3: Minor wording fix
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2014-08-18 17:01:50 -05:00
Michael Kerrisk a4b636a055 on_exit.3: Remove ancient Linux libc details
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2014-08-18 17:01:50 -05:00
Michael Kerrisk c6baa019d7 mktemp.3: Remove ancient Linux libc/glibc1 details
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2014-08-18 17:01:50 -05:00
Michael Kerrisk e38998b116 mkstemp.3: Remove ancient Linux libc details
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2014-08-18 17:01:50 -05:00
Michael Kerrisk 4558b2b07f lseek64.3: Remove ancient Linux libc details
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2014-08-18 17:01:50 -05:00
Michael Kerrisk 4260479914 xcrypt.3: Remove ancient Linux libc details
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2014-08-18 17:01:50 -05:00
Michael Kerrisk 7fbe05e407 strptime.3: Remove ancient Linux libc details
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2014-08-18 17:01:50 -05:00
Michael Kerrisk eb0eae100b setbuf.3: Remove ancient Linux libc and 4.x BSD details
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2014-08-18 17:01:50 -05:00
Michael Kerrisk da9b56b212 realpath.3: Remove ancient Linux libc details
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2014-08-18 17:01:50 -05:00
Michael Kerrisk 6e76df0d35 memmem.3: Rewrite text of glibc 2.0 bug
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2014-08-18 17:01:50 -05:00
Michael Kerrisk b5a620f81f memmem.3: Remove ancient Linux libc details
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2014-08-18 17:01:49 -05:00
Michael Kerrisk 79f341e34a getline.3: Remove ancient Linux libc details
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2014-08-18 17:01:49 -05:00
Michael Kerrisk fa47e1fb39 des_crypt.3: Remove ancient Linux libc details
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2014-08-18 17:01:49 -05:00
Michael Kerrisk 800a076a9e ctime.3: Remove ancient Linux libc details
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2014-08-18 17:01:49 -05:00
Michael Kerrisk 0efb1d6fee strftime.3: Remove ancient Linux libc details
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2014-08-18 17:01:49 -05:00
Michael Kerrisk 3f378fb07a flockfile.3: Remove ancient Linux libc details
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2014-08-18 17:01:49 -05:00
Michael Kerrisk fe9025574c insque.3: ffix
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2014-08-18 17:01:49 -05:00
Michael Kerrisk 2e0a702427 insque.3: Remove ancient Linux libc details
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2014-08-18 17:01:49 -05:00
Michael Kerrisk f51d8d4d4a glob.3: Remove ancient Linux libc details
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2014-08-18 17:01:49 -05:00
Michael Kerrisk af3253cac7 getpass.3: Remove ancient Linux libc details
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2014-08-18 17:01:49 -05:00
Michael Kerrisk 7e693a49ad getdtablesize.3: Remove ancient Linux libc details
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2014-08-18 17:01:49 -05:00
Michael Kerrisk acd67de490 getcwd.3: Remove ancient Linux libc details
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2014-08-18 17:01:49 -05:00
Michael Kerrisk 0b15830007 ftw.3: Add VERSIONS section
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2014-08-18 17:01:49 -05:00
Michael Kerrisk c346cee465 ftw.3: Remove ancient Linux libc details
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2014-08-18 17:01:49 -05:00
Michael Kerrisk 88ba465160 ftok.3: grfix
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2014-08-18 17:01:49 -05:00
Michael Kerrisk 2c3a7aa1a5 ftok.3: Remove ancient Linux libc details
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2014-08-18 17:01:49 -05:00
Michael Kerrisk eb4a2faa88 ftime.3: Remove ancient Linux libc details
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2014-08-18 17:01:49 -05:00
Michael Kerrisk 04e1cdc964 fseeko.3: Add VERSIONS section
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2014-08-18 17:01:49 -05:00
Michael Kerrisk 504acd7023 fseeko.3: Remove ancient Linux libc details
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2014-08-18 17:01:49 -05:00
Michael Kerrisk d9737a3c15 ecvt.3: Remove ancient Linux libc details
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2014-08-18 17:01:49 -05:00
Michael Kerrisk 5d612d3cd4 clearenv.3: Remove ancient Linux libc details
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2014-08-18 17:01:49 -05:00
Michael Kerrisk 3ef5eb1237 catopen.3: Remove ancient Linux libc details
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2014-08-18 17:01:49 -05:00
Michael Kerrisk ee5f0bfd2a atoi.3: Remove ancient Linux libc details
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2014-08-18 17:01:49 -05:00
Michael Kerrisk 47aa42e7ca atoi.3: Downgrade discussion of atoq()
Remove most references to atoq() in this page, since this function
was present only in Linux libc (not glibc).

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2014-08-18 17:01:49 -05:00
Michael Kerrisk 2de012be8b abs.3: Remove ancient Linux libc details
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2014-08-18 17:01:49 -05:00
Michael Kerrisk 0c2d0a66b8 strstr.3: Remove discussion of Linux libc bugs
Linux libc is old enough that we needn't care any longer.

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2014-08-18 17:01:48 -05:00
Simon Paillard 03518b195e pthread_create.3: wfix
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2014-08-15 20:22:06 +02:00
Simon Paillard 298f72af97 pthread_attr_setschedparam.3: tfix
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2014-08-15 20:21:55 +02:00
Simon Paillard 3e2cae49c3 pthread_attr_setinheritsched.3: ffix
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2014-08-15 20:20:40 +02:00
Rahul Bedarkar 481d41f264 getline.3: Close opened file at end of example program
Signed-off-by: Rahul Bedarkar <rahulbedarkar89@gmail.com>
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2014-08-01 21:56:01 +02:00
Michael Kerrisk f078c3fa6a printf.3: Update with some SUSv3 details
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2014-08-01 15:29:17 +02:00
Michael Kerrisk c271056c86 printf.3: Note use of 'j', 'z', and 't' length modifiers for '%n'
See http://bugs.debian.org/756602

Reported-by: Jakub Wilk <jwilk@debian.org>
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2014-08-01 15:06:39 +02:00
Michael Kerrisk 9cc5e8b790 strtod.3: ffix
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2014-08-01 08:57:00 +02:00
Michael Kerrisk 145fb1b49a strtod.3: Explain NAN(n-char-sequence)
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2014-08-01 08:57:00 +02:00
Michael Kerrisk 9b944b8d95 strtod.3: SEE ALSO: add nan(3), nanf(3), NANL(3)
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2014-08-01 08:57:00 +02:00
Michael Kerrisk aacd17b1c1 printf.3: Clarify details of the %n conversion specifier
See http://bugs.debian.org/756602

Reported-by: Jakub Wilk <jwilk@debian.org>
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2014-08-01 08:57:00 +02:00
Peng Haitao 9a2b1ecac4 puts.3: tfix
Signed-off-by: Peng Haitao <penght@cn.fujitsu.com>
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2014-07-29 06:48:23 +02:00
Michael Kerrisk f3d2d8bd2b cerf.3, cexp2.3, clog2.3: Update version number on "Not yet in glibc" sentence
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2014-07-28 13:40:27 +02:00
Michael Kerrisk 61100fc051 system.3: tfix
Reported-by: Damir Nedzibovic <d.nedzibovic@anoxtech.com>
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2014-07-28 13:40:24 +02:00
Michael Kerrisk 89c1cb59ab getauxval.3: Document ENOENT error
And add an entry to BUGS explaining the ambiguity that was
present before the addition of this error.

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2014-07-28 13:40:21 +02:00
Michael Kerrisk e0def8f50f pthread_getcpuclockid.3: ffix
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2014-07-20 09:22:47 +02:00
Michael Kerrisk b7800b443e fgetgrent.3, getgrent.3, getgrent_r.3, getgrnam.3: Clarify that 'gr_mem' is a NULL-terminated array of pointers
Reported-by: Rob Landley <rob@landley.net>
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2014-07-20 09:22:35 +02:00
Michael Kerrisk 5e333b1bf1 getgrent.3, getgrent_r.3, getgrnam.3: ffix
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2014-07-14 21:23:39 +02:00
Michael Kerrisk c77eace5b1 iconv.1, ldd.1, connect.2, dup.2, epoll_ctl.2, eventfd.2, fallocate.2, fcntl.2, getitimer.2, inotify_add_watch.2, open.2, pipe.2, poll.2, sendmmsg.2, set_tid_address.2, shmop.2, signalfd.2, splice.2, syscalls.2, syslog.2, tee.2, vmsplice.2, ether_aton.3, mallopt.3, printf.3, profil.3, charmap.5, proc.5, epoll.7, inotify.7, libc.7, pipe.7, sched.7, socket.7, udplite.7, iconvconfig.8, ld.so.8: tstamp
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2014-07-08 16:14:48 +02:00
Michael Kerrisk 5f97eb3b5b profil.3: SEE ALSO: add sprof(1)
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2014-07-08 16:07:48 +02:00
Michael Kerrisk 2460ac0e19 mallopt.3: MALLOC_MMAP_THRESHOLD_ and MALLOC_MMAP_MAX_ *do* work in setgid programs
My testing on this point was bogus, overlooking details of
strace(1)'s behavior with setuid programs.

See https://sourceware.org/bugzilla/show_bug.cgi?id=12155

Reported-by: Florian Weimer <fweimer@redhat.com>
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2014-07-01 08:16:37 +02:00
Michael Kerrisk 812040568c printf.3: Update references to standards for C and S conversion specifiers
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2014-06-29 09:49:08 +02:00
Michael Kerrisk 5afad698ec printf.3: Remove some old text about glibc 2.0 changes
We probably don't now need such ancient info.

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2014-06-29 09:49:08 +02:00
Michael Kerrisk f835f2c4d9 printf.3: wfix
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2014-06-29 09:49:08 +02:00
Michael Kerrisk fb307ec732 getpass.3: wfix
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2014-06-29 09:49:08 +02:00
Michael Kerrisk c2b5a65ea5 cmsg.3: wfix
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2014-06-29 09:49:08 +02:00
Michael Kerrisk 7905872b28 printf.3: Remove libc4 and libc5 details
Rich Felker noted that "scare text" in the man page warned about
the use of snprintf() on libc, and that some people had cited
this as a reason not to use snprintf().  Linux libc is now
ancient history, so there is no real need to keep that text.
But, while we're at it, we may as well clear out all of the
other ancient libc4 and libc5 pieces in the page. They are
nowadays more clutter than help.

Reported-by: Rich Felker <dalias@libc.org>
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2014-06-29 09:49:08 +02:00
Michael Kerrisk 57598eb158 printf.3: grfix
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2014-06-29 09:49:08 +02:00
Michael Kerrisk 588d27ea86 printf.3: SUSv3 and later agree with C99 for the snprintf() return value
Determined by inspection of the SUSv3 and SUSv4 specifications.

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2014-06-29 09:49:02 +02:00
Michael Kerrisk 053cd4306c ether_aton.3: Make description of ether_line() bug a little more informative
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2014-06-20 07:41:03 +02:00
Michael Kerrisk a53a30b714 encrypt.3: grfix
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2014-06-20 07:10:40 +02:00
Michael Kerrisk eb9a0b2f75 intro.1, gettimeofday.2, mkdir.2, nice.2, setresuid.2, stime.2, adjtime.3, getttyent.3, proc.5: tfix
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2014-06-18 15:38:13 +02:00
Michael Kerrisk ad5b45abe5 localedef.1, execve.2, fcntl.2, flock.2, lseek.2, open.2, open_by_handle_at.2, recvmmsg.2, sendmmsg.2, seteuid.2, setresuid.2, setreuid.2, setuid.2, statfs.2, syscalls.2, basename.3, catgets.3, getdate.3, getdirentries.3, getdtablesize.3, iconv.3, lockf.3, malloc_get_state.3, malloc_usable_size.3, matherr.3, mkdtemp.3, mkstemp.3, mq_close.3, mq_unlink.3, siginterrupt.3, system.3, locale.5, bootparam.7, environ.7, man-pages.7, signal.7, unicode.7, utf-8.7: tstamp
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2014-06-13 17:15:44 +02:00
Michael Kerrisk 054f9fb2fc iconv.3: SEE ALSO: add iconvconfig(8)
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2014-06-13 13:44:17 +02:00
Peng Haitao 2d89d613e2 getdtablesize.3: ATTRIBUTES: Note function that is thread-safe
The function getdtablesize() is thread safe.

Signed-off-by: Peng Haitao <penght@cn.fujitsu.com>
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2014-06-11 11:25:44 +02:00
Peng Haitao 09b46b1f85 mkstemp.3: ATTRIBUTES: Note functions that are thread-safe
The functions mkstemp(), mkostemp(), mkstemps() and mkostemps()
are thread safe.

Signed-off-by: Peng Haitao <penght@cn.fujitsu.com>
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2014-06-11 10:42:53 +02:00