summaryrefslogtreecommitdiff
path: root/doc
Commit message (Collapse)AuthorAgeFilesLines
* Update some URLsPaul Eggert2019-09-221305-1308/+1308
| | | | | | This is a clerical change that mostly changes http: to https: in URLs where either will work. It also updates some URLs that have moved, removes some URLs that no longer work, and fixes related text.
* access: New module.Bruno Haible2019-09-151-1/+4
| | | | | | | | | | | | | * lib/unistd.in.h (access): New declaration. * lib/access.c: New file. * m4/access.m4: New file. * m4/unistd_h.m4 (gl_UNISTD_H): Test whether access is declared. (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_ACCESS, REPLACE_ACCESS. * modules/unistd (Makefile.am): Substitute GNULIB_ACCESS, REPLACE_ACCESS. * modules/access: New file. * tests/test-unistd-c++.cc (access): Check signature. * doc/posix-functions/access.texi: Mention the new module.
* creat: New module.Bruno Haible2019-09-151-5/+12
| | | | | | | | | | | | | | | | * lib/fcntl.in.h (creat): New declaration. * lib/creat.c: New file, based on lib/open.c. * m4/creat.m4: New file. * m4/open-slash.m4: New file, extracted from m4/open.m4. * m4/open.m4 (gl_FUNC_OPEN): Move trailing-slash test to open-slash.m4. Invoke gl_OPEN_TRAILING_SLASH_BUG. * modules/open (Files): Add m4/open-slash.m4. * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Initialize GNULIB_CREAT, REPLACE_CREAT. * modules/fcntl-h (Makefile.am): Substitute GNULIB_CREAT, REPLACE_CREAT. * modules/creat: New file. * tests/test-fcntl-h-c++.cc (creat): Check signature. * doc/posix-functions/creat.texi: Mention the new module.
* doc: Update for glibc 2.30.Bruno Haible2019-09-0712-5/+241
| | | | | | | | | | | | | | | * doc/glibc-functions/gettid.texi: New file. * doc/glibc-functions/pthread_cond_clockwait.texi: New file. * doc/glibc-functions/pthread_mutex_clocklock.texi: New file. * doc/glibc-functions/pthread_rwlock_clockrdlock.texi: New file. * doc/glibc-functions/pthread_rwlock_clockwrlock.texi: New file. * doc/glibc-functions/sem_clockwait.texi: New file. * doc/glibc-functions/tgkill.texi: New file. * doc/glibc-functions/twalk_r.texi: New file. * doc/gnulib.texi: Include them. (Glibc semaphore.h): New section. * doc/pastposix-functions/h_errno.texi: Update. * doc/posix-functions/*.texi: Likewise.
* doc: Document most of the files outside of modules.Bruno Haible2019-08-241-0/+233
| | | | | * doc/gnulib.texi (Build Infrastructure Files, Release Management Files): New chapters.
* autoupdatePaul Eggert2019-08-212-45/+157
|
* parse-datetime: fix military timezone lettersPaul Eggert2019-08-091-1/+3
| | | | | | | Problem and trivial fix reported by Neil Hoggarth in: https://lists.gnu.org/r/bug-gnulib/2019-08/msg00005.html * lib/parse-datetime.y (military_table): Do it the right way, not the RFC 822 way.
* doc: Update info about <pthread.h>.Bruno Haible2019-07-151-6/+7
| | | | | * doc/posix-headers/pthread.texi: Mention the module 'pthread-h' instead of 'pthread'.
* pthread-spin: New module.Bruno Haible2019-07-155-20/+30
| | | | | | | | | | | | | | * lib/pthread.in.h (pthread_spin_init, pthread_spin_destroy, pthread_spin_lock, pthread_spin_trylock, pthread_spin_unlock): Remove inline definitions. * lib/pthread-spin.c: New file. * m4/pthread-spin.m4: New file. * modules/pthread-spin: New file. * doc/posix-functions/pthread_spin_init.texi: Mention the new module. * doc/posix-functions/pthread_spin_lock.texi: Likewise. * doc/posix-functions/pthread_spin_trylock.texi: Likewise. * doc/posix-functions/pthread_spin_unlock.texi: Likewise. * doc/posix-functions/pthread_spin_destroy.texi: Likewise.
* pthread-tss: New module.Bruno Haible2019-07-154-16/+24
| | | | | | | | | | * lib/pthread-tss.c: New file. * m4/pthread-tss.m4: New file. * modules/pthread-tss: New file. * doc/posix-functions/pthread_key_create.texi: Mention the new module. * doc/posix-functions/pthread_setspecific.texi: Likewise. * doc/posix-functions/pthread_getspecific.texi: Likewise. * doc/posix-functions/pthread_key_delete.texi: Likewise.
* pthread-cond: New module.Bruno Haible2019-07-158-32/+48
| | | | | | | | | | | | | | | | * lib/pthread.in.h (pthread_cond_destroy, pthread_cond_init, pthread_cond_signal, pthread_cond_wait): Remove inline definitions. * lib/pthread-cond.c: New file. * m4/pthread-cond.m4: New file. * modules/pthread-cond: New file. * doc/posix-functions/pthread_cond_init.texi: Mention the new module. * doc/posix-functions/pthread_condattr_init.texi: Likewise. * doc/posix-functions/pthread_condattr_destroy.texi: Likewise. * doc/posix-functions/pthread_cond_wait.texi: Likewise. * doc/posix-functions/pthread_cond_timedwait.texi: Likewise. * doc/posix-functions/pthread_cond_signal.texi: Likewise. * doc/posix-functions/pthread_cond_broadcast.texi: Likewise. * doc/posix-functions/pthread_cond_destroy.texi: Likewise.
* pthread-rwlock: New module.Bruno Haible2019-07-1512-45/+67
| | | | | | | | | | | | | | | | | | * lib/pthread-rwlock.c: New file, based on lib/glthread/lock.c. * m4/pthread-rwlock.m4: New file. * modules/pthread-rwlock: New file. * doc/posix-functions/pthread_rwlock_init.texi: Mention the new module and the Android problem. * doc/posix-functions/pthread_rwlockattr_init.texi: Likewise. * doc/posix-functions/pthread_rwlockattr_destroy.texi: Likewise. * doc/posix-functions/pthread_rwlock_rdlock.texi: Likewise. * doc/posix-functions/pthread_rwlock_wrlock.texi: Likewise. * doc/posix-functions/pthread_rwlock_tryrdlock.texi: Likewise. * doc/posix-functions/pthread_rwlock_trywrlock.texi: Likewise. * doc/posix-functions/pthread_rwlock_timedrdlock.texi: Likewise. * doc/posix-functions/pthread_rwlock_timedwrlock.texi: Likewise. * doc/posix-functions/pthread_rwlock_unlock.texi: Likewise. * doc/posix-functions/pthread_rwlock_destroy.texi: Likewise.
* pthread-mutex: New module.Bruno Haible2019-07-1512-45/+65
| | | | | | | | | | | | | | | | | | | | | | * lib/pthread.in.h (pthread_mutexattr_destroy, pthread_mutexattr_init, pthread_mutexattr_settype, pthread_mutex_destroy, pthread_mutex_init, pthread_mutex_lock, pthread_mutex_trylock, pthread_mutex_timedlock, pthread_mutex_unlock): Remove inline definitions. * lib/pthread-mutex.c: New file. * m4/pthread-mutex.m4: New file. * modules/pthread-mutex: New file. * doc/posix-functions/pthread_mutex_init.texi: Mention the new module. * doc/posix-functions/pthread_mutexattr_init.texi: Likewise. * doc/posix-functions/pthread_mutexattr_gettype.texi: Likewise. * doc/posix-functions/pthread_mutexattr_settype.texi: Likewise. * doc/posix-functions/pthread_mutexattr_getrobust.texi: Likewise. * doc/posix-functions/pthread_mutexattr_setrobust.texi: Likewise. * doc/posix-functions/pthread_mutexattr_destroy.texi: Likewise. * doc/posix-functions/pthread_mutex_lock.texi: Likewise. * doc/posix-functions/pthread_mutex_trylock.texi: Likewise. * doc/posix-functions/pthread_mutex_timedlock.texi: Likewise. * doc/posix-functions/pthread_mutex_unlock.texi: Likewise. * doc/posix-functions/pthread_mutex_destroy.texi: Likewise.
* pthread-once: New module.Bruno Haible2019-07-151-4/+6
| | | | | | | * lib/pthread-once.c: New file. * m4/pthread-once.m4: New file. * modules/pthread-once: New file. * doc/posix-functions/pthread_once.texi: Mention the new module.
* pthread-thread: New module.Bruno Haible2019-07-1510-42/+68
| | | | | | | | | | | | | | | | | | * lib/pthread.in.h (pthread_create, pthread_exit, pthread_join): Remove inline definitions. * lib/pthread-thread.c: New file. * m4/pthread-thread.m4: New file. * modules/pthread-thread: New file. * doc/posix-functions/pthread_create.texi: Mention the new module. * doc/posix-functions/pthread_attr_init.texi: Likewise. * doc/posix-functions/pthread_attr_getdetachstate.texi: Likewise. * doc/posix-functions/pthread_attr_setdetachstate.texi: Likewise. * doc/posix-functions/pthread_attr_destroy.texi: Likewise. * doc/posix-functions/pthread_self.texi: Likewise. * doc/posix-functions/pthread_equal.texi: Likewise. * doc/posix-functions/pthread_detach.texi: Likewise. * doc/posix-functions/pthread_join.texi: Likewise. * doc/posix-functions/pthread_exit.texi: Likewise.
* sched_yield: New module.Bruno Haible2019-07-151-4/+6
| | | | | | | | | | | | | | | | | * lib/sched.in.h: Add _GL_FUNCDECL_RPL, _GL_WARN_ON_USE placeholders. (sched_yield): New declaration. * lib/sched_yield.c: New file. * m4/sched_yield.m4: New file. * m4/sched_h.m4 (gl_SCHED_H): Require gl_SCHED_H_DEFAULTS. Arrange to provide a replacement sched.h always. Test whether sched_yield is declared. (gl_SCHED_MODULE_INDICATOR, gl_SCHED_H_DEFAULTS): New macros. * modules/sched (Depends-on): Add snippet/c++defs, snippet/warn-on-use. (Makefile.am): Provide a replacement sched.h always. Substitute GNULIB_SCHED_YIELD, HAVE_SCHED_YIELD, REPLACE_SCHED_YIELD, _GL_FUNCDECL_RPL, _GL_WARN_ON_USE. * modules/sched_yield: New file. * doc/posix-functions/sched_yield.texi: Mention the new module.
* doc: Fix info about pthread API in HP-UX.Bruno Haible2019-07-1530-30/+30
| | | | * doc/posix-functions/pthread_*.texi: Fix info about HP-UX 11.
* error: Fix documentation.Bruno Haible2019-07-064-12/+12
| | | | | | | | * doc/glibc-functions/error_at_line.texi: Document what the 'error' module provides. * doc/glibc-functions/error_message_count.texi: Likewise. * doc/glibc-functions/error_one_per_line.texi: Likewise. * doc/glibc-functions/error_print_progname.texi: Likewise.
* doc: Remove documentation of glibc <= 2.1.x as a supported platform.Bruno Haible2019-07-063-2/+4
| | | | | | * doc/gnulib-intro.texi (Target Platforms): Mention that glibc 2.1.x and older is unsupported. * doc/**/*.texi: Update.
* doc: Remove documentation of Linux libc5 as a supported platform.Bruno Haible2019-07-0614-44/+0
| | | | | | | | | | | | | | | | | | * doc/posix-functions/iswalnum.texi: Don't mention workarounds specific to Linux libc5. * doc/posix-functions/iswalpha.texi: Likewise. * doc/posix-functions/iswblank.texi: Likewise. * doc/posix-functions/iswcntrl.texi: Likewise. * doc/posix-functions/iswdigit.texi: Likewise. * doc/posix-functions/iswgraph.texi: Likewise. * doc/posix-functions/iswlower.texi: Likewise. * doc/posix-functions/iswprint.texi: Likewise. * doc/posix-functions/iswpunct.texi: Likewise. * doc/posix-functions/iswspace.texi: Likewise. * doc/posix-functions/iswupper.texi: Likewise. * doc/posix-functions/iswxdigit.texi: Likewise. * doc/posix-functions/snprintf.texi: Likewise. * doc/posix-functions/vsnprintf.texi: Likewise.
* doc: Remove documentation of Tandem/NSK as a supported platform.Bruno Haible2019-07-066-8/+5
| | | | | | * doc/posix-headers/stdlib.texi: Don't mention workarounds specific to Tandem/NSK. * doc/**/*.texi: Update.
* doc: Remove documentation of Mac OS X <= 10.4 as a supported platform.Bruno Haible2019-07-06192-229/+181
| | | | | | | | | | | | | | | | | | | | * doc/gnulib-intro.texi (Target Platforms): Mention that Mac OS X 10.4 and older is unsupported. * doc/posix-functions/acosl.texi: Don't mention workarounds specific to Mac OS X 10.4 and older. * doc/posix-functions/asinl.texi: Likewise. * doc/posix-functions/atanl.texi: Likewise. * doc/posix-functions/cosl.texi: Likewise. * doc/posix-functions/expl.texi: Likewise. * doc/posix-functions/frexpl.texi: Likewise. * doc/posix-functions/gettimeofday.texi: Likewise. * doc/posix-functions/logl.texi: Likewise. * doc/posix-functions/mkstemp.texi: Likewise. * doc/posix-functions/sinl.texi: Likewise. * doc/posix-functions/sqrtl.texi: Likewise. * doc/posix-functions/tanl.texi: Likewise. * doc/posix-functions/wcswidth.texi: Likewise. * doc/**/*.texi: Update.
* doc: Remove documentation of AIX 4 as a supported platform.Bruno Haible2019-07-0659-68/+59
| | | | | | | | | | * doc/gnulib-intro.texi (Target Platforms): Mention that AIX 4 is unsupported. * doc/posix-functions/nanosleep.texi: Don't mention AIX 4 specific workarounds. * doc/posix-functions/strnlen.texi: Likewise. * doc/posix-headers/inttypes.texi: Likewise. * doc/**/*.texi: Update.
* doc: Remove documentation of HP-UX 10 as a supported platform.Bruno Haible2019-07-0618-55/+8
| | | | | | | | | | | * doc/gnulib-intro.texi (Target Platforms): Mention that HP-UX 10 is unsupported. * doc/*-functions/*printf.texi: Don't mention HP-UX 10 specific workarounds. * doc/posix-functions/gmtime_r.texi: Likewise. * doc/posix-functions/localtime_r.texi: Likewise. * doc/posix-functions/mkstemp.texi: Likewise. * doc/**/*.texi: Update.
* doc: Remove documentation of Interix 3.5 as a supported platform.Bruno Haible2019-07-067-20/+6
| | | | | | | | | * doc/gnulib-intro.texi (Target Platforms): Mention that Interix is unsupported. * doc/posix-functions/select.texi: Don't mention Interix specific workarounds. * doc/posix-headers/signal.texi: Likewise. * doc/**/*.texi: Update.
* doc: Remove documentation of IRIX 6.4 and older as supported platforms.Bruno Haible2019-07-06178-252/+149
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | * doc/gnulib-intro.texi (Target Platforms): Mention that IRIX <= 6.4 is unsupported. * doc/pastposix-functions/usleep.texi: Don't mention IRIX specific workarounds. * doc/posix-functions/nl_langinfo.texi: Likewise. * doc/posix-functions/remainder.texi: Likewise. * doc/posix-functions/towlower.texi: Likewise. * doc/posix-functions/towupper.texi: Likewise. * doc/posix-functions/vsnprintf.texi: Likewise. * doc/posix-functions/wcscat.texi: Likewise. * doc/posix-functions/wcschr.texi: Likewise. * doc/posix-functions/wcscmp.texi: Likewise. * doc/posix-functions/wcscpy.texi: Likewise. * doc/posix-functions/wcscspn.texi: Likewise. * doc/posix-functions/wcslen.texi: Likewise. * doc/posix-functions/wcsncat.texi: Likewise. * doc/posix-functions/wcsncmp.texi: Likewise. * doc/posix-functions/wcsncpy.texi: Likewise. * doc/posix-functions/wcspbrk.texi: Likewise. * doc/posix-functions/wcsrchr.texi: Likewise. * doc/posix-functions/wcsspn.texi: Likewise. * doc/posix-headers/langinfo.texi: Likewise. * doc/posix-headers/signal.texi: Likewise. * doc/posix-headers/wchar.texi: Likewise. * doc/posix-headers/wctype.texi: Likewise. * doc/**/*.texi: Update.
* doc: Remove documentation of OSF/1 as supported platform.Bruno Haible2019-07-061173-1426/+1231
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * doc/gnulib-intro.texi (Target Platforms): Mention that OSF/1 is unsupported. * doc/glibc-functions/getdomainname.texi: Don't mention OSF/1 specific workarounds. * doc/glibc-functions/pthread_setname_np.texi: Likewise. * doc/glibc-functions/ptsname_r.texi: Likewise. * doc/posix-functions/ceil.texi: Likewise. * doc/posix-functions/ceilf.texi: Likewise. * doc/posix-functions/ceill.texi: Likewise. * doc/posix-functions/fchdir.texi: Likewise. * doc/posix-functions/floor.texi: Likewise. * doc/posix-functions/floorf.texi: Likewise. * doc/posix-functions/fmod.texi: Likewise. * doc/posix-functions/fmodf.texi: Likewise. * doc/posix-functions/fmodl.texi: Likewise. * doc/posix-functions/log.texi: Likewise. * doc/posix-functions/logf.texi: Likewise. * doc/posix-functions/logl.texi: Likewise. * doc/posix-functions/log10.texi: Likewise. * doc/posix-functions/log10f.texi: Likewise. * doc/posix-functions/log10l.texi: Likewise. * doc/posix-functions/log2.texi: Likewise. * doc/posix-functions/log2f.texi: Likewise. * doc/posix-functions/log2l.texi: Likewise. * doc/posix-functions/mbrtowc.texi: Likewise. * doc/posix-functions/recv.texi: Likewise. * doc/posix-functions/recvfrom.texi: Likewise. * doc/posix-functions/remainder.texi: Likewise. * doc/posix-functions/remainderf.texi: Likewise. * doc/posix-functions/remainderl.texi: Likewise. * doc/posix-functions/round.texi: Likewise. * doc/posix-functions/roundf.texi: Likewise. * doc/posix-functions/roundl.texi: Likewise. * doc/posix-functions/send.texi: Likewise. * doc/posix-functions/sendto.texi: Likewise. * doc/posix-functions/setenv.texi: Likewise. * doc/posix-functions/snprintf.texi: Likewise. * doc/posix-functions/tcgetsid.texi: Likewise. * doc/posix-functions/trunc.texi: Likewise. * doc/posix-functions/truncf.texi: Likewise. * doc/posix-functions/truncl.texi: Likewise. * doc/posix-functions/ttyname_r.texi: Likewise. * doc/posix-functions/unsetenv.texi: Likewise. * doc/posix-functions/wcsrtombs.texi: Likewise. * doc/posix-headers/sys_select.texi: Likewise. * doc/posix-headers/wchar.texi: Likewise. * doc/posix-headers/wctype.texi: Likewise. * doc/**/*.texi: Update.
* doc: Remove documentation of Interix as a supported platform.Bruno Haible2019-07-062-4/+4
|
* doc: Remove documentation of BSDI and BSD/OS as supported platforms.Bruno Haible2019-07-066-15/+3
| | | | * doc/**/*.texi: Update.
* doc: Remove documentation of Solaris 8 and older as supported platforms.Bruno Haible2019-07-06273-306/+275
| | | | | | | | | | | | * doc/gnulib-intro.texi (Target Platforms): Mention that Solaris <= 8 is unsupported. * doc/posix-functions/mbrtowc.texi: Don't mention Solaris specific workarounds. * doc/posix-functions/memcmp.texi: Likewise. * doc/posix-functions/rename.texi: Likewise. * doc/posix-functions/tzset.texi: Likewise. * doc/posix-headers/wctype.texi: Likewise. * doc/**/*.texi: Update.
* doc: Remove documentation of Interix 3.5 as a supported platform.Bruno Haible2019-07-061338-1347/+1345
| | | | * doc/**/*.texi: Update.
* doc: Remove documentation of BeOS as a supported platform.Bruno Haible2019-07-061570-1699/+1637
| | | | | | | | * doc/gnulib-intro.texi (Target Platforms): Mention that BeOS is unsupported. * doc/*-functions/*printf.texi: Don't mention BeOS specific workarounds. * doc/posix-functions/getdelim.texi: Likewise. * doc/**/*.texi: Update.
* getcwd: Fix crash when invoked with size = 0 on MSVC.Bruno Haible2019-07-021-1/+4
| | | | | | | | | * lib/getcwd.c: Include msvc-inval.h. (getcwd_nothrow): New function/macro. (getcwd_system): New macro. (__getcwd): Use it instead of getcwd. * modules/getcwd (Depends-on): Add msvc-inval. * doc/posix-functions/getcwd.texi: Mention the MSVC issue.
* usleep: Implement with millisecond resolution on native Windows.Bruno Haible2019-07-021-1/+1
| | | | | * lib/usleep.c (usleep): On native Windows, implement using Sleep(). * doc/pastposix-functions/usleep.texi: Update accordingly.
* Document setvbuf _IOLBF problemPaul Eggert2019-06-231-0/+4
| | | | | * doc/posix-functions/setvbuf.texi (setvbuf): Document MS-Windows portability problem with _IOLBF.
* Document lseek SEEK_DATA/SEEK_HOLEPaul Eggert2019-06-231-0/+3
| | | | | * doc/posix-functions/lseek.texi (lseek): Document some systems that do not support SEEK_DATA and SEEK_HOLE.
* autoupdateKarl Berry2019-06-231-2/+2
|
* autoupdateKarl Berry2019-06-231-3/+2
|
* argmatch: put all the docs member last.Akim Demaille2019-06-221-1/+1
| | | | | | | Reported by Bruno Haible. * lib/argmatch.h (argmatch_##Name##_group_type): Put the args member before the docs done. * doc/argmatch.texi, tests/test-argmatch.c: Adjust.
* argmatch: add support to generate the usage messageAkim Demaille2019-06-212-0/+140
| | | | | | | | | | | | | | * lib/argmatch.c: Move some #includes and gettext support to... * lib/argmatch.h: here. (ARGMATCH_DEFINE_GROUP): New macro. * tests/test-argmatch.c (argmatch_backup_docs, argmatch_backup_args) (argmatch_backup_group): New. (CHECK): New. (main): Check argmatch_backup_value, argmatch_backup_xvalue, argmatch_backup_argument and argmatch_backup_usage. * modules/argmatch: We depend on c99. * doc/argmatch.texi (Recognizing Option Arguments): New. * doc/gnulib.texi: Use it.
* threads-h: Small doc correction.Bruno Haible2019-06-211-1/+3
|
* threads-h: Define 'thread_local' if and only it actually works.Bruno Haible2019-06-211-0/+14
| | | | | | | | | | | | | | | | | | | * m4/threads.m4 (gl_THREAD_LOCAL_DEFINITION): New macro. (gl_THREADS_H): Define _Thread_local to __thread also for ARM C, IBM C, Oracle Solaris Studio C. Compile a simple program, to see whether _Thread_local basically works. Set HAVE_THREAD_LOCAL and LIBTHREADLOCAL. (gl_THREADS_H_DEFAULTS): Initialize HAVE_THREAD_LOCAL. * lib/threads.in.h (thread_local): Undefine if it does not work. * modules/threads-h (Makefile.am): Substitute HAVE_THREAD_LOCAL. (Link): Mention LIBTHREADLOCAL. * tests/test-threads.c: Don't check that thread_local is defined. * tests/test-thread_local.c: New file. * modules/threads-h-tests (Files): Add it and macros.h. (Depends-on): Add thrd and stdint. (configure.ac): Test whether 'alarm' is declared. (Makefile.am): Arrange to build and link test-thread_local. * doc/posix-headers/threads.texi: Mention the platforms that don't support 'thread_local'.
* autoudpateKarl Berry2019-06-202-4/+5
|
* tss: New module.Bruno Haible2019-06-204-16/+16
| | | | | | | | | * lib/tss.c: New file. * modules/tss: New file. * doc/posix-functions/tss_create.texi: Mention the new module. * doc/posix-functions/tss_set.texi: Likewise. * doc/posix-functions/tss_get.texi: Likewise. * doc/posix-functions/tss_delete.texi: Likewise.
* cnd: New module.Bruno Haible2019-06-206-24/+24
| | | | | | | | | | | * lib/cnd.c: New file. * modules/cnd: New file. * doc/posix-functions/cnd_init.texi: Mention the new module. * doc/posix-functions/cnd_wait.texi: Likewise. * doc/posix-functions/cnd_timedwait.texi: Likewise. * doc/posix-functions/cnd_signal.texi: Likewise. * doc/posix-functions/cnd_broadcast.texi: Likewise. * doc/posix-functions/cnd_destroy.texi: Likewise.
* mtx: New module.Bruno Haible2019-06-207-28/+28
| | | | | | | | | | | | * lib/mtx.c: New file. * modules/mtx: New file. * doc/posix-functions/call_once.texi: Mention the new module. * doc/posix-functions/mtx_init.texi: Likewise. * doc/posix-functions/mtx_lock.texi: Likewise. * doc/posix-functions/mtx_trylock.texi: Likewise. * doc/posix-functions/mtx_timedlock.texi: Likewise. * doc/posix-functions/mtx_unlock.texi: Likewise. * doc/posix-functions/mtx_destroy.texi: Likewise.
* thrd: New module.Bruno Haible2019-06-208-32/+41
| | | | | | | | | | | | | | | | * lib/thrd.c: New file. * m4/thrd.m4: New file. * modules/thrd: New file. * doc/posix-functions/thrd_current.texi: Mention the new module. * doc/posix-functions/thrd_detach.texi: Likewise. * doc/posix-functions/thrd_equal.texi: Likewise. * doc/posix-functions/thrd_exit.texi: Likewise. * doc/posix-functions/thrd_sleep.texi: Likewise. * doc/posix-functions/thrd_yield.texi: Likewise. * doc/posix-functions/thrd_create.texi: Mention the new module and the AIX bug. * doc/posix-functions/thrd_join.texi: Mention the new module and the AIX and Solaris bugs.
* threads-h: New module.Bruno Haible2019-06-201-4/+10
| | | | | | | | | | * lib/threads.in.h: New file. * m4/threads.m4: New file. * m4/yield.m4 (gl_YIELD): Update comment. * modules/threads-h: New file. * modules/yields (configure.ac): Use AC_REQUIRE. * doc/posix-headers/threads.texi: Mention the new module and the AIX bugs.
* pthread_mutex_timedlock: New module.Bruno Haible2019-06-201-4/+6
| | | | | | | | | | | | | | | | | | * lib/pthread.in.h (pthread_mutex_timedlock): New dummy function and new declaration. * lib/pthread_mutex_timedlock.c: New file. * m4/pthread_mutex_timedlock.m4: New file. * m4/pthread.m4 (gl_PTHREAD_CHECK): Don't call AC_LIBOBJ here. Test whether pthread_mutex_timedlock is declared. (gl_PTHREAD_MODULE_INDICATOR): New macro. (gl_PTHREAD_DEFAULTS): Initialize GNULIB_PTHREAD_MUTEX_TIMEDLOCK, HAVE_PTHREAD_MUTEX_TIMEDLOCK. * modules/pthread (configure.ac): Call AC_LIBOBJ here. (Makefile.am): Substitute GNULIB_PTHREAD_MUTEX_TIMEDLOCK, HAVE_PTHREAD_MUTEX_TIMEDLOCK. * modules/pthread_mutex_timedlock: New file. * doc/posix-functions/pthread_mutex_timedlock.texi: Mention the new module.
* posix_spawn_file_actions_addfchdir: New module.Bruno Haible2019-06-103-6/+11
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | * lib/spawn.in.h (posix_spawn_file_actions_addfchdir): New declaration. * lib/spawn_int.h (struct __spawn_action): Add tag 'spawn_do_fchdir' and union member 'fchdir_action'. * lib/spawn_faction_addfchdir.c: New file. * lib/spawni.c (__spawni): Implement the spawn_do_fchdir action. * m4/posix_spawn_faction_addfchdir.m4: New file. * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): Test whether module 'posix_spawn_file_actions_addfchdir' is present and whether posix_spawn_file_actions_addfchdir_np exists. Set REPLACE_POSIX_SPAWN. * m4/spawn_h.m4 (gl_SPAWN_H): Test whether posix_spawn_file_actions_addfchdir is declared. (gl_SPAWN_H_DEFAULTS): Initialize GNULIB_POSIX_SPAWN_FILE_ACTIONS_ADDFCHDIR, HAVE_POSIX_SPAWN_FILE_ACTIONS_ADDFCHDIR, REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDFCHDIR. * modules/spawn (Makefile.am): Substitute GNULIB_POSIX_SPAWN_FILE_ACTIONS_ADDFCHDIR, HAVE_POSIX_SPAWN_FILE_ACTIONS_ADDFCHDIR, REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDFCHDIR. * modules/posix_spawn_file_actions_addfchdir: New file. * tests/test-spawn-c++.cc (posix_spawn_file_actions_addfchdir): Check signature. * doc/posix-functions/posix_spawn.texi: Mention the new module. * doc/posix-functions/posix_spawnp.texi: Likewise. * doc/glibc-functions/posix_spawn_file_actions_addfchdir_np.texi: Likewise.