summaryrefslogtreecommitdiff
path: root/doc/glibc-functions
Commit message (Collapse)AuthorAgeFilesLines
* doc: Update for Solaris 11.4.Bruno Haible2018-10-14394-401/+401
| | | | | | | | | | | | | | | * doc/**/*.texi: For bugs that exist in both Solaris 11.3 and 11.4, mention Solaris 11.4. * m4/printf.m4: Update comments about Solaris. * m4/log.m4: Likewise. * m4/log10.m4: Likewise. * m4/logb.m4: Likewise. * m4/logbf.m4: Likewise. * m4/logbl.m4: Likewise. * m4/rename.m4: Likewise. * m4/wcrtomb.m4: Likewise. * m4/hostent.m4: Likewise. * m4/servent.m4: Likewise.
* mkostemp, mkostemps: Update documentation.Bruno Haible2018-10-022-0/+8
| | | | | * doc/glibc-functions/mkostemp.texi: Mention the Mac OS X issue. * doc/glibc-functions/mkostemps.texi: Likewise.
* strstr, strcasestr: Add workaround against glibc-2.28 bug.Bruno Haible2018-09-151-2/+3
| | | | | | | | | | | Reported by Michael Brunnbauer via Siddhesh Poyarekar and Eric Blake. * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE): Set gl_cv_func_strstr_works_always to 'no' on glibc 2.28. * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Set gl_cv_func_strcasestr_works_always to 'no' on glibc 2.28. * doc/posix-functions/strstr.texi: Document the glibc 2.28 bug. * doc/glibc-functions/strcasestr.texi: Likewise.
* getpass: Move declaration to <unistd.h>.Bruno Haible2018-08-191-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | * lib/unistd.in.h (getpass): New declaration. * lib/getpass.h: Replace with a stub that just includes <unistd.h>. * m4/getpass.m4 (gl_FUNC_GETPASS): Declare through AC_DEFUN_ONCE. Require gl_UNISTD_H_DEFAULTS. Don't test whether getpass is declared. (gl_FUNC_GETPASS_GNU): Require gl_UNISTD_H_DEFAULTS and gl_FUNC_GETPASS. On glibc systems, don't set REPLACE_GETPASS to 1. * modules/getpass (Depends-on): Add 'unistd'. (configure.ac): Test also REPLACE_GETPASS. Define a module indicator. (Include): Specify <unistd.h> instead of "getpass.h". * modules/getpass-gnu (Depends-on): Merely depend on 'getpass'. (configure.ac): Sync with the configure.ac section of modules/getpass. (Include): Specify <unistd.h> instead of "getpass.h". * m4/unistd_h.m4 (gl_UNISTD_H): Test whether getpass is declared. (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETPASS, HAVE_GETPASS, REPLACE_GETPASS. * modules/unistd (Makefile.am): Substitute GNULIB_GETPASS, HAVE_GETPASS, REPLACE_GETPASS. * tests/test-unistd-c++.cc: Test also the declaration of 'getpass'. * doc/glibc-functions/getpass.texi: A length limit exists also on uClibc and musl. * NEWS: Mention the change.
* doc: For module names, use texinfo markup @code{} or @samp{}.Bruno Haible2018-07-243-3/+3
| | | | | | | | | | | | | | | | | | | | | * doc/alloca.texi: Mark gnulib module names with @code. * doc/alloca-opt.texi: Likewise. * doc/quote.texi: Likewise. * doc/posix-functions/freopen.texi: Likewise. * doc/posix-functions/open.texi: Likewise. * doc/posix-functions/readlink.texi: Likewise. * doc/posix-functions/readlinkat.texi: Likewise. * doc/posix-functions/stdout.texi: Likewise. * doc/posix-functions/stderr.texi: Likewise. * doc/posix-functions/unlink.texi: Likewise. * doc/posix-functions/unlinkat.texi: Likewise. * doc/posix-functions/utime.texi: Likewise. * doc/posix-functions/utimensat.texi: Likewise. * doc/posix-functions/utimes.texi: Likewise. * doc/posix-headers/stdint.texi: Likewise. * doc/glibc-functions/futimesat.texi: Likewise. * doc/glibc-functions/lutimes.texi: Likewise. * doc/glibc-functions/memmem.texi: Likewise.
* doc: Avoid some overfull lines in the TeX output.Werner LEMBERG2018-07-241-2/+7
| | | | | | | | | | * doc/glibc-functions/futimesat.texi: Replace a long @code with a @example. * doc/pastposix-functions/pthread_attr_getstackaddr.texi: Insert a newline before the long URL. * doc/pastposix-functions/pthread_attr_setstackaddr.texi: Likewise. * doc/relocatable-maint.texi: Use @smallexample instead of @example. Add line breaks in code snippets.
* doc: Add info about Android versions 2.0 to 8.1.Bruno Haible2018-05-13134-147/+149
| | | | | * doc/**/*.texi: Add info about functions in all released versions of Bionic.
* doc: Add partial info about Android 4.3.Bruno Haible2018-05-1092-111/+92
| | | | | * doc/*-functions/*.texi: Add info about functions that were added to Bionic between Android 4.3 and Android 9.0.
* doc: More tweaks for Android 9.0.Bruno Haible2018-05-1031-31/+31
|
* doc: Add info about Android 9.0.Bruno Haible2018-05-10611-611/+611
| | | | | * doc/**/*.texi: Add info about functions and headers in Bionic from Android 9.0.
* ptsname_r: Don't expect that this function sets errno.Bruno Haible2018-02-241-0/+4
| | | | | | * tests/test-ptsname_r.c (test_errors): Don't test errno after return from ptsname_r(). * doc/glibc-functions/ptsname_r.texi: Mention the issue.
* Port better to CentOS 5Paul Eggert2017-11-281-0/+7
| | | | | | | | | | | | | Problems reported by Tom G. Christensen in: https://lists.gnu.org/r/bug-gnulib/2017-11/msg00053.html * doc/glibc-functions/strverscmp.texi (strverscmp): Document strverscmp bug with glibc 2.9 and earlier. * doc/posix-functions/tzset.texi (tzset): Document that TZ with angle brackets is POSIX-2001 and later. * tests/test-nstrftime.c: Include unistd.h. (TZ_ANGLE_BRACKETS_SHOULD_WORK): New macro. (TZ): Use it to skip tests with angle brackets in TZ, for older systems.
* random, random_r: Mention different prototypes on Haiku.Bruno Haible2017-10-293-0/+12
| | | | | | | * doc/posix-functions/random.texi: Mention different prototype on Haiku. * doc/glibc-functions/random_r.texi: Likewise. * doc/glibc-functions/initstate_r.texi: Likewise. * doc/glibc-functions/setstate_r.texi: Likewise.
* doc: Update for Solaris 11.3.Bruno Haible2017-10-12420-427/+427
| | | | | | | | | | * doc/**/*.texi: For bugs that exist in both Solaris 11.0 and 11.3, mention Solaris 11.3. * m4/log2.m4: Fix comments. * m4/log2f.m4: Likewise. * m4/printf.m4: Update comments. * m4/rename.m4: Likewise. * m4/strncat.m4: Likewise.
* all: Write "Solaris 11.0" instead of "Solaris 11 2011-11".Bruno Haible2017-10-12425-440/+440
|
* reallocarray: minor fixesPaul Eggert2017-08-131-3/+3
| | | | | | | | * doc/glibc-functions/reallocarray.texi: Update version numbers. * m4/reallocarray.m4 (gl_FUNC_REALLOCARRAY): Don't trust _cv_ contents. * modules/reallocarray (License): Change from GPL to LGPL. * tests/test-reallocarray.c (main): Fix ENOMEM typo. Indent properly and don't use tabs.
* reallocarray: New moduleDarshit Shah2017-08-131-0/+22
| | | | | | | | | | | | | | | reallocarray is a new function in glibc 2.26 to safely allocate an array of memory locations with integer overflow protection. * MODULES.html.sh: Add reallocarray. * doc/glibc-functions/reallocarray.texi: Documentation for reallocarray. * lib/reallocarray.c: New file to implement module reallocarray. * lib/stdlib.in.h: Add function declarations for reallocarray. * m4/reallocarray.m4: New file. * m4/stdlib_h.m4: Declare reallocarray. * modules/reallocarray: New file. * modules/reallocarray-test: New file. * modules/stdlib: Coerce stdlib.h to export reallocarray. * tests/test-reallocarray.c: New test.
* explicit_bzero: new modulePaul Eggert2017-07-161-0/+29
| | | | | | | | | | | | The explicit_bzero function has been added to glibc. This module is intended to supports its use in GNU programs. * doc/glibc-functions/explicit_bzero.texi, lib/explicit_bzero.c: * m4/explicit_bzero.m4, modules/explicit_bzero: New files. * doc/gnulib.texi (Glibc string.h): Link to new doc. * lib/string.in.h (explicit_bzero): Declare. * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Add defaults for it. * modules/string (string.h): Substitute its vars.
* getdtablesize: Add minimal support for OpenVMS.Bruno Haible2017-07-151-0/+6
| | | | | | | | | | | Reported by John E. Malmberg <wb8tyw@qsl.net>. * modules/getdtablesize (Description): Fix. * lib/getdtablesize.c: Fix comment. * m4/getdtablesize.m4 (gl_FUNC_GETDTABLESIZE): Don't replace the getdtablesize() function, even though the test fails. * doc/glibc-functions/getdtablesize.texi: Reference SUSv2. Describe limitation on OpenVMS.
* doc: Update for MSVC 14.Bruno Haible2017-07-06832-854/+854
| | | | | | | | * doc/posix-headers/*.texi: Add info about MSVC 14. * doc/posix-functions/*.texi: Likewise. * doc/pastposix-functions/*.texi: Likewise. * doc/glibc-headers/*.texi: Likewise. * doc/glibc-functions/*.texi: Likewise.
* *printf: Work around rounding bug on Mac OS X.Bruno Haible2017-04-224-0/+16
| | | | | | | * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Test for Mac OS X 10.12 bug. * doc/posix-functions/*printf.texi: Mention the rounding bugs of Mac OS X and FreeBSD. * doc/glibc-functions/*printf.texi: Likewise.
* sethostname: Update doc.Bruno Haible2017-04-221-3/+5
| | | | | * doc/glibc-functions/sethostname.texi: Mention differing prototype on Mac OS X.
* sys_types: fix Texinfo typosPaul Eggert2016-10-263-0/+3
| | | | | | * doc/glibc-functions/gnu_dev_major.texi: * doc/glibc-functions/gnu_dev_makedev.texi: * doc/glibc-functions/gnu_dev_minor.texi: Fix typos.
* sys_types: avoid glibc 2.25 warnings about major()Eric Blake2016-09-153-0/+12
| | | | | | | | | | | | | | | | | | | | | | | | glibc 2.25 is deprecating the namespace pollution of <sys/types.h> injecting major(), minor(), and makedev() into the compilation environment, with a warning that insists that users include <sys/sysmacros.h> instead. However, because the expansion of AC_HEADER_MAJOR didn't bother checking sys/sysmacros.h until after probing whether sys/types.h pollutes the namespace, it was not defining MAJOR_IN_SYSMACROS, with the result that code compiled with -Werror chokes on the deprecation warnings because it was not including sysmacros.h. Backport the autoconf fix (see autoconf commit e17a30e98), so that gnulib projects avoid the warnings even when using older autoconf. * m4/sys_types_h.m4 (AC_HEADER_MAJOR): Replace broken version in older autoconf. * doc/posix-headers/sys_types.texi (sys/types.h): Document fix. * doc/glibc-functions/gnu_dev_major.texi (gnu_dev_major): Likewise. * doc/glibc-functions/gnu_dev_makedev.texi (gnu_dev_makedev): Likewise. * doc/glibc-functions/gnu_dev_minor.texi (gnu_dev_minor): Likewise. Signed-off-by: Eric Blake <eblake@redhat.com>
* secure_getenv: Port to many more platforms.Bruno Haible2016-05-291-4/+0
| | | | | | | | | * m4/secure_getenv.m4 (gl_PREREQ_SECURE_GETENV): Also check for get*id functions. * lib/secure_getenv.c (secure_getenv): Add alternate implementations for non-BSD Unix platforms and for native Windows. * doc/glibc-functions/secure_getenv.texi: Remove known issue. Prompted by a request from Nikos Mavrogiannopoulos.
* accept4-tests: fix to avoid non portable flagsPino Toscano2015-10-121-0/+3
| | | | | | | | * tests/test-accept4.c (main): Pass only SOCK_* flags to accept4(), as they are the only documented ones, and passing others may trigger EINVAL (seen on FreeBSD 10.1-RELEASE). * doc/glibc-functions/accept4.texi: Mention that we don't provide the SOCK_CLOEXEC or SOCK_NONBLOCK defines.
* mgetgroups: port to strict OS XPaul Eggert2015-06-291-0/+4
| | | | | | | | | | * doc/glibc-functions/getgrouplist.texi (getgrouplist): Document the getgrouplist problem. * lib/mgetgroups.c (getgrouplist_gids) [HAVE_GETGROUPLIST]: New macro. (mgetgroups): Use it. * m4/mgetgroups.m4 (gl_MGETGROUPS): Check for OS X signature for getgrouplist.
* file-has-acl: fix build on Mac OS X 10Pádraig Brady2015-06-022-0/+6
| | | | | | | | | | | | This reverts commit f1b37e3a which doesn't work on Mac OS X >= 10.4 which has an incompatible 6 parameter getxattr() call. * doc/glibc-functions/getxattr.texi: Mention the divergent getxattr() call on Mac OS X >= 10.4. * doc/glibc-functions/fgetxattr.texi: Likewise. * lib/file-has-acl.c: Revert to more complete combined check. * m4/acl.m4 (gl_FILE_HAS_ACL): Likewise. Reported by Jack Howarth.
* error: document all entry points providedEric Blake2015-03-094-4/+4
| | | | | | | | | | | | | | | Based on a report by Mohammad Akhlaghi. * doc/glibc-functions/error_print_progname.texi (error_print_progname): Mention the error module. * doc/glibc-functions/error_at_line.texi (error_at_line): Likewise. * doc/glibc-functions/error_message_count.texi (error_message_count): Likewise. * doc/glibc-functions/error_one_per_line.texi (error_one_per_line): Likewise. Signed-off-by: Eric Blake <eblake@redhat.com>
* getdtablesize: port better for AndroidPaul Eggert2015-02-201-1/+1
| | | | | | | | | | Problem reported by Kevin Cernekee in: http://lists.gnu.org/archive/html/bug-gnulib/2015-02/msg00112.html * doc/glibc-functions/getdtablesize.texi (getdtablesize): Mention bug. * lib/getdtablesize.c (getdtablesize): Don't fall back on _SC_OPEN_MAX. Instead, just use getrlimit, taking care to avoid Cygwin bug. dup2, fcntl: cross-compile better for Android
* getdtablesize, dup2, fcntl: port to AndroidPaul Eggert2015-02-161-1/+5
| | | | | | | | | | | | | | | | | Problem reported by Kevin Cernekee in: http://lists.gnu.org/archive/html/bug-gnulib/2015-02/msg00092.html * doc/glibc-functions/getdtablesize.texi (getdtablesize): Mention that getdtablesize doesn't work on Android. * lib/getdtablesize.c: Use getrlimit substitute only if getdtablesize is declared. This should suffice for Cygwin while not breaking Android. * m4/dup2.m4 (gl_FUNC_DUP2): * m4/fcntl.m4 (gl_FUNC_FCNTL): Prefer sysconf (_SC_OPEN_MAX) to getdtablesize, as the former is standardized but the latter is not, and sysconf works on Android. * m4/getdtablesize.m4 (gl_FUNC_GETDTABLESIZE): Also check that getdtablesize is declared. This removes the need for a special case for Android.
* qsort_r: new module, for GNU-style qsort_rPaul Eggert2014-08-291-3/+6
| | | | | | | | | | | | | | | This works even on FreeBSD, which has an incompatible qsort_r API. * MODULES.html.sh: Add it. * doc/glibc-functions/qsort_r.texi: It's now supported. * lib/qsort.c: New file, taken from glibc with minor changes inside "#ifndef _LIBC" and with an unnecessary "#include <alloca.h>" removed. * lib/qsort_r.c: New file, compiled only on FreeBSD. * lib/stdlib.in.h (qsort_r): Declare in the usual way. * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): * modules/qsort_r, modules/qsort_r-tests: New files. * modules/stdlib (Makefile): Set up its defaults. * tests/test-qsort_r.c: New file.
* dup2, dup3: work around another cygwin crasherEric Blake2013-09-261-0/+4
| | | | | | | | | | | | | | | | | | | | | | | Cygwin 1.7.25 can crash due to an off-by-one bug on an attempt to duplicate a file into the current RLIMIT_NOFILE soft limit, when that limit is smaller than the hard limit. The intent in the cygwin code was to allow the dup and auto-increase the soft limit, which is itself questionable (and which we work around in the gnulib getdtablesize module); but avoiding the crash is worth doing even if the soft limit semantics are wrong. http://cygwin.com/ml/cygwin/2013-09/msg00397.html http://cygwin.com/ml/cygwin-developers/2013-q3/msg00010.html * m4/dup2.m4 (gl_FUNC_DUP2): Expose the bug. * m4/dup3.m4 (gl_FUNC_DUP3): Likewise. * tests/test-dup2.c (main): Likewise. * lib/dup2.c (rpl_dup2): Use setdtablesize to avoid it. * lib/dup3.c (dup3): Likewise. * doc/posix-functions/dup2.texi (dup2): Document it. * doc/glibc-functions/dup3.texi (dup3): Likewise. Signed-off-by: Eric Blake <eblake@redhat.com>
* getdtablesize: work around cygwin issueEric Blake2013-09-261-0/+5
| | | | | | | | | | | | | | | | | | | | | Cygwin 1.7.25 has a bug that even though it claims to support RLIMIT_NOFILE inheritance, there is no enforcement of the soft limit, and getdtablesize() automatically grows until it reaches the hard limit which cannot be changed by setrlimit(). Best is to just treat things as an invariant limit, as several other modules assume that getdtablesize() will not change without an intervening setrlimit(). * m4/getdtablesize.m4 (gl_FUNC_GETDTABLESIZE): Detect problem. * modules/getdtablesize (configure.ac): Build replacement. * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set up a witness. * modules/unistd (Makefile.am): Expose the witness. * lib/unistd.in.h (getdtablesize): Declare replacement. * lib/getdtablesize.c (rpl_getdtablesize): Work around it. * tests/test-getdtablesize.c (main): Test it. * doc/glibc-functions/getdtablesize.texi (getdtablesize): Document it. Signed-off-by: Eric Blake <eblake@redhat.com>
* getgroups: document portability issuesEric Blake2013-05-222-0/+7
| | | | | | | | | | | | | | | | | | | Because I actually managed to hit deadlock in libvirt's child process due to glibc's mutex use in user database lookup, I figured it is worth documenting the issue for others to be aware of when writing a privileged multithreaded parent app that spawns child processes owned by non-privileged ids. * doc/glibc-functions/initgroups.texi (initgroups): Mention multithread safety. * doc/posix-functions/getpwuid.texi (getpwuid): Likewise. * doc/posix-functions/getpwuid_r.texi (getpwuid_r): Likewise. * doc/glibc-functions/getgrouplist.texi (getgrouplist): Mention getugroups. * doc/posix-functions/getgroups.texi (getgroups): Mention multithread safety and mgetgroups. Signed-off-by: Eric Blake <eblake@redhat.com>
* secure_getenv: new modulePaul Eggert2013-02-041-0/+22
| | | | | | | | | | | | | * MODULES.html.sh (Extra functions based on ANSI C 89): Add secure_getenv. * doc/glibc-functions/secure_getenv.texi: New file. * doc/gnulib.texi: Include it. * lib/secure_getenv.c, m4/secure_getenv.m4, modules/secure_getenv: New files. * lib/stdlib.in.h (secure_getenv): New decl. * m4/stdlib_h.m4 (gl_STDLIB_H, gl_STDLIB_H_DEFAULTS): * modules/stdlib (stdlib.h): Add secure_getenv checks.
* Write "Mac OS X" instead of "MacOS X".Bruno Haible2012-06-22590-606/+606
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * README: Write "Mac OS X" instead of "MacOS X". * build-aux/bootstrap: Likewise. * build-aux/install-reloc: Likewise. * lib/acl-internal.h: Likewise. * lib/acl_entries.c: Likewise. * lib/argp-ba.c: Likewise. * lib/argp-pv.c: Likewise. * lib/config.charset: Likewise. * lib/copy-acl.c: Likewise. * lib/csharpexec.c: Likewise. * lib/euidaccess.c: Likewise. * lib/fbufmode.c: Likewise. * lib/fflush.c: Likewise. * lib/file-has-acl.c: Likewise. * lib/filemode.h: Likewise. * lib/fpurge.c: Likewise. * lib/freadable.c: Likewise. * lib/freadahead.c: Likewise. * lib/freading.c: Likewise. * lib/freadptr.c: Likewise. * lib/freadseek.c: Likewise. * lib/fseeko.c: Likewise. * lib/fseterr.c: Likewise. * lib/fsusage.c: Likewise. * lib/fwritable.c: Likewise. * lib/fwriting.c: Likewise. * lib/get-rusage-as.c: Likewise. * lib/get-rusage-data.c: Likewise. * lib/getdomainname.c: Likewise. * lib/idpriv-drop.c: Likewise. * lib/idpriv-droptemp.c: Likewise. * lib/localcharset.c: Likewise. * lib/locale.in.h: Likewise. * lib/localename.c: Likewise. * lib/mbsrtowcs-state.c: Likewise. * lib/nproc.c: Likewise. * lib/passfd.c: Likewise. * lib/posix_openpt.c: Likewise. * lib/printf-parse.c: Likewise. * lib/progreloc.c: Likewise. * lib/safe-read.h: Likewise. * lib/safe-write.h: Likewise. * lib/sched.in.h: Likewise. * lib/set-mode-acl.c: Likewise. * lib/signal.in.h: Likewise. * lib/stdint.in.h: Likewise. * lib/stdio-impl.h: Likewise. * lib/stdlib.in.h: Likewise. * lib/strtod.c: Likewise. * lib/sys_select.in.h: Likewise. * lib/tcgetsid.c: Likewise. * lib/unistd.in.h: Likewise. * lib/unlockpt.c: Likewise. * lib/vasnprintf.c: Likewise. * lib/vma-iter.c: Likewise. * lib/wcsrtombs-state.c: Likewise. * m4/acl.m4: Likewise. * m4/acosl.m4: Likewise. * m4/asinl.m4: Likewise. * m4/atanl.m4: Likewise. * m4/c-stack.m4: Likewise. * m4/cosl.m4: Likewise. * m4/expl.m4: Likewise. * m4/extensions.m4: Likewise. * m4/fdatasync.m4: Likewise. * m4/fmal.m4: Likewise. * m4/frexp.m4: Likewise. * m4/frexpf.m4: Likewise. * m4/frexpl.m4: Likewise. * m4/fsusage.m4: Likewise. * m4/getdomainname.m4: Likewise. * m4/getloadavg.m4: Likewise. * m4/getopt.m4: Likewise. * m4/gettext.m4: Likewise. * m4/gnulib-common.m4: Likewise. * m4/intdiv0.m4: Likewise. * m4/intlmacosx.m4: Likewise. * m4/largefile.m4: Likewise. * m4/ldexpl.m4: Likewise. * m4/link-follow.m4: Likewise. * m4/locale-ar.m4: Likewise. * m4/locale-fr.m4: Likewise. * m4/locale-ja.m4: Likewise. * m4/locale-tr.m4: Likewise. * m4/locale-zh.m4: Likewise. * m4/locale_h.m4: Likewise. * m4/lock.m4: Likewise. * m4/logl.m4: Likewise. * m4/mathfunc.m4: Likewise. * m4/minus-zero.m4: Likewise. * m4/mktime.m4: Likewise. * m4/mmap-anon.m4: Likewise. * m4/multiarch.m4: Likewise. * m4/nanosleep.m4: Likewise. * m4/nocrash.m4: Likewise. * m4/poll.m4: Likewise. * m4/printf-frexpl.m4: Likewise. * m4/printf.m4: Likewise. * m4/signbit.m4: Likewise. * m4/sinl.m4: Likewise. * m4/sqrtl.m4: Likewise. * m4/strerror_r.m4: Likewise. * m4/tanl.m4: Likewise. * m4/threadlib.m4: Likewise. * m4/ttyname_r.m4: Likewise. * m4/unlink.m4: Likewise. * m4/visibility.m4: Likewise. * m4/wcwidth.m4: Likewise. * tests/minus-zero.h: Likewise. * tests/test-alloca-opt.c: Likewise. * tests/test-copy-acl.sh: Likewise. * tests/test-copy-file.sh: Likewise. * tests/test-fdatasync.c: Likewise. * tests/test-file-has-acl.sh: Likewise. * tests/test-flock.c: Likewise. * tests/test-fsync.c: Likewise. * tests/test-localename.c: Likewise. * tests/test-malloca.c: Likewise. * tests/test-nonblocking-pipe.h: Likewise. * tests/test-nonblocking-socket.h: Likewise. * tests/test-openpty.c: Likewise. * tests/test-posix_openpt.c: Likewise. * tests/test-ptsname.c: Likewise. * tests/test-ptsname_r.c: Likewise. * tests/test-sameacls.c: Likewise. * tests/test-select.h: Likewise. * tests/test-set-mode-acl.sh: Likewise. * tests/test-snprintf-posix.h: Likewise. * tests/test-sprintf-posix.h: Likewise. * tests/test-strtod.c: Likewise. * tests/test-time.c: Likewise. * tests/test-vasnprintf-posix.c: Likewise. * tests/test-vasprintf-posix.c: Likewise. * doc/acl-resources.txt: Likewise. * doc/**/*.texi: Likewise. Reported by Max Horn <max@quendi.de>.
* docs: update cygwin progressEric Blake2012-02-2917-26/+26
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Now that cygwin 1.7.11 is released, it's time to update some docs. Not listed: cygwin 1.7.10 added __fpurge; but the fpurge module properly uses it. * doc/posix-functions/llround.texi (llround): Added in cygwin 1.7.8. * doc/posix-functions/llroundf.texi (llroundf): Likewise. * doc/glibc-functions/program_invocation_name.texi (program_invocation_name): Likewise. * doc/glibc-functions/program_invocation_short_name.texi (program_invocation_short_name): Likewise. * doc/glibc-functions/madvise.texi (madvise): Likewise. * doc/glibc-functions/pthread_yield.texi (pthread_yield): Likewise. * doc/posix-functions/pthread_spin_destroy.texi (pthread_spin_destroy): Added in cygwin 1.7.10. * doc/posix-functions/pthread_spin_init.texi (pthread_spin_init): Likewise. * doc/posix-functions/pthread_spin_lock.texi (pthread_spin_lock): Likewise. * doc/posix-functions/pthread_spin_trylock.texi (pthread_spin_trylock): Likewise. * doc/posix-functions/pthread_spin_unlock.texi (pthread_spin_unlock): Likewise. * doc/posix-functions/pthread_setschedprio.texi (pthread_setschedprio): Likewise. * doc/posix-functions/pthread_attr_getstack.texi (pthread_attr_getstack): Likewise. * doc/pastposix-functions/pthread_attr_getstackaddr.texi (pthread_attr_getstackaddr): Likewise. * doc/glibc-functions/pthread_getattr_np.texi (pthread_getattr_np): Likewise. * doc/glibc-functions/sys_siglist.texi (sys_siglist): Likewise. * doc/glibc-functions/sysinfo.texi (sysinfo): Likewise. * doc/posix-functions/clock_settime.texi (clock_settime): Likewise. * doc/posix-functions/pthread_attr_getguardsize.texi (pthread_attr_getguardsize): Likewise. * doc/posix-functions/pthread_attr_setguardsize.texi (pthread_attr_setguardsize): Likewise. * doc/posix-functions/pthread_attr_setstack.texi (pthread_attr_setstack): Likewise. * doc/pastposix-functions/pthread_attr_setstackaddr.texi (pthread_attr_setstackaddr): Likewise. * doc/posix-functions/clock_getcpuclockid.texi (clock_getcpuclockid): Likewise. * doc/posix-functions/pthread_getcpuclockid.texi (pthread_getcpuclockid): Likewise. * doc/glibc-functions/error.texi (error): Likewise. * doc/glibc-functions/error_at_line.texi (error_at_line): Likewise. * doc/glibc-functions/error_message_count.texi (error_message_count): Likewise. * doc/glibc-functions/error_one_per_line.texi (error_one_per_line): Likewise. * doc/glibc-functions/error_print_progname.texi (error_print_progname): Likewise. * doc/posix-functions/pthread_condattr_getclock.texi (pthread_condattr_getclock): Likewise. * doc/posix-functions/pthread_condattr_setclock.texi (pthread_condattr_setclock): Likewise. * doc/posix-functions/clock_nanosleep.texi (clock_nanosleep): Likewise. * doc/glibc-functions/getgrouplist.texi (getgrouplist): Likewise. * doc/glibc-functions/getpt.texi (getpt): Likewise. * doc/glibc-functions/get_current_dir_name.texi (get_current_dir_name): Likewise. * doc/glibc-functions/pthread_sigqueue.texi (pthread_sigqueue): Likewise. * doc/posix-functions/tcgetsid.texi (tcgetsid): Likewise, but with wrong return type. * doc/glibc-functions/scandirat.texi (scandirat): Added in cygwin 1.7.11. Signed-off-by: Eric Blake <eblake@redhat.com>
* doc: Move ISO C11 feature notes into POSIX chapters.Bruno Haible2012-02-296-96/+0
| | | | | | | | | | | | | | | | | | | | * doc/posix-functions/aligned_alloc.texi: Renamed from doc/glibc-functions/aligned_alloc.texi. * doc/posix-functions/quick_exit.texi: Renamed from doc/glibc-functions/quick_exit.texi. * doc/posix-headers/uchar.texi: Renamed from doc/glibc-headers/uchar.texi. * doc/posix-functions/c16rtomb.texi: Renamed from doc/glibc-functions/c16rtomb.texi. * doc/posix-functions/c32rtomb.texi: Renamed from doc/glibc-functions/c32rtomb.texi. * doc/posix-functions/mbrtoc16.texi: Renamed from doc/glibc-functions/mbrtoc16.texi. * doc/posix-functions/mbrtoc32.texi: Renamed from doc/glibc-functions/mbrtoc32.texi. * doc/gnulib.texi: Update. (Glibc uchar.h): Remove section. Suggested by Eric Blake.
* doc: Mention new glibc headers and functions.Bruno Haible2012-02-2833-0/+528
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * doc/glibc-headers/uchar.texi: New file. * doc/glibc-functions/aligned_alloc.texi: New file. * doc/glibc-functions/c16rtomb.texi: New file. * doc/glibc-functions/c32rtomb.texi: New file. * doc/glibc-functions/clock_adjtime.texi: New file. * doc/glibc-functions/fanotify_init.texi: New file. * doc/glibc-functions/fanotify_mark.texi: New file. * doc/glibc-functions/inet6_opt_append.texi: New file. * doc/glibc-functions/inet6_opt_find.texi: New file. * doc/glibc-functions/inet6_opt_finish.texi: New file. * doc/glibc-functions/inet6_opt_get_val.texi: New file. * doc/glibc-functions/inet6_opt_init.texi: New file. * doc/glibc-functions/inet6_opt_next.texi: New file. * doc/glibc-functions/inet6_opt_set_val.texi: New file. * doc/glibc-functions/inet6_rth_add.texi: New file. * doc/glibc-functions/inet6_rth_getaddr.texi: New file. * doc/glibc-functions/inet6_rth_init.texi: New file. * doc/glibc-functions/inet6_rth_reverse.texi: New file. * doc/glibc-functions/inet6_rth_segments.texi: New file. * doc/glibc-functions/inet6_rth_space.texi: New file. * doc/glibc-functions/login.texi: New file. * doc/glibc-functions/mbrtoc16.texi: New file. * doc/glibc-functions/mbrtoc32.texi: New file. * doc/glibc-functions/name_to_handle_at.texi: New file. * doc/glibc-functions/ntp_gettimex.texi: New file. * doc/glibc-functions/open_by_handle_at.texi: New file. * doc/glibc-functions/prlimit.texi: New file. * doc/glibc-functions/process_vm_readv.texi: New file. * doc/glibc-functions/process_vm_writev.texi: New file. * doc/glibc-functions/recvmmsg.texi: New file. * doc/glibc-functions/scandirat.texi: New file. * doc/glibc-functions/sendmmsg.texi: New file. * doc/glibc-functions/setns.texi: New file. * doc/glibc-functions/timespec_get.texi: New file. * doc/gnulib.texi: Include them. (Glibc sys/fanotify.h, Glibc sys/resource.h, Glibc uchar.h): New sections. Reported by Eric Blake.
* pipe2: refine doc about thread-safetyBruno Haible2012-01-262-2/+4
| | | | | | * doc/glibc-functions/pipe2.texi: Clarify the extent of the multithread-safety problem. * doc/glibc-functions/accept4.texi: Likewise.
* pipe2, assign4: document lack of thread-safety in replacementEric Blake2012-01-262-0/+2
| | | | | | | * doc/glibc-functions/pipe2.texi (pipe2): Mention thread safety issue in replacement. * doc/glibc-functions/accept4.texi (accept4): Likewise. Based on a report by Eric Wong.
* random_r: Override incompatible API on AIX, OSF/1.Bruno Haible2012-01-123-0/+9
| | | | | | | | | | | | | * lib/stdlib.in.h (random_r, srandom_r, initstate_r, setstate_r): Override the system function if REPLACE_RANDOM_R is 1. * m4/random_r.m4 (gl_FUNC_RANDOM_R): Require AC_CANONICAL_HOST. On AIX and OSF/1, set REPLACE_RANDOM_R. * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_RANDOM_R. * modules/stdlib (Makefile.am): Substitute REPLACE_RANDOM_R. * modules/random_r (configure.ac): Test REPLACE_RANDOM_R. * doc/glibc-functions/initstate_r.texi: Mention the AIX, OSF/1 problem. * doc/glibc-functions/random_r.texi: Likewise. * doc/glibc-functions/setstate_r.texi: Likewise.
* doc: Update for Solaris 11 2011-11.Bruno Haible2012-01-08411-426/+426
| | | | | * doc/*/*.texi: Mention Solaris 11 2011-11 where appropriate. * m4/printf.m4: Update comments.
* sethostname: Fix documentation.Bruno Haible2011-12-041-4/+4
| | | | | * doc/glibc-functions/sethostname.texi: Move the Solaris problem to the "not fixed" section.
* Tweak last commit.Bruno Haible2011-12-031-2/+1
| | | | | | | | | | | * lib/sethostname.c: Don't include <string.h>. (sethostname): No need to copy the argument string to the stack. Don't call clearerr. Preserve errno when fprintf failed. * m4/sethostname.m4 (gl_FUNC_SETHOSTNAME): Comment about HOST_NAME_MAX. Don't invoke AC_REPLACE_FUNCS. * modules/sethostname (Link): Remove empty section. * doc/glibc-functions/sethostname.texi: Gnulib does not fix the ENOSYS failure problem.
* Add a new sethostname moduleBen Walton2011-12-031-5/+11
| | | | | | | | | | | | | | | Define sethostname on platforms that do not provide the declaration. Provide a function for platforms that lack it. The general handling of the provided function is to simply return -1 and set errno to ENOSYS. A specific handler is provided for Minix. * lib/sethostname.c (sethostname): New file. Provide sethostname for systems that lack it. * m4/sethostname.m4 (gl_FUNC_SETHOSTNAME): New file. Detection of sethostname declaration and function. * modules/sethostname: New file. Define the sethostname module. Signed-off-by: Ben Walton <bwalton@artsci.utoronto.ca>
* sethostname: Fix doc about AIX.Bruno Haible2011-11-201-1/+1
| | | | | * doc/glibc-functions/sethostname.texi: Drop mention that AIX 5.1 lacks sethostname; it has it.
* sethostname: Mention more portability problems.Bruno Haible2011-11-201-0/+3
| | | | | | * doc/glibc-functions/sethostname.texi: Mention the missing declaration problem. Reported by Ben Walton <bwalton@artsci.utoronto.ca>.
* ptsname_r: Avoid compilation error on OSF/1 5.1.Bruno Haible2011-11-101-0/+7
| | | | | | | | | | * lib/stdlib.in.h (ptsname_r): Override if REPLACE_PTSNAME_R is 1. * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_PTSNAME_R. * m4/ptsname_r.m4 (gl_FUNC_PTSNAME_R): Set REPLACE_PTSNAME_R if the function is not declared or incompatibly declared. * modules/stdlib (Makefile.am): Substitute REPLACE_PTSNAME_R. * modules/ptsname_r (Depends-on, configure.ac): Update. * doc/glibc-functions/ptsname_r.texi: Mention the OSF/1 problems.