X-Git-Url: https://erislabs.net/gitweb/?a=blobdiff_plain;f=ChangeLog;h=f1e189fcbab4440305defe46a65215d4b80693e3;hb=955a738535faaa329ab5cb7b1b960175ef5ad960;hp=052772a2310220fecc1309d605422574427b1108;hpb=e09edd140811395f660fb1e2bb50f8c58fd8f508;p=gnulib.git diff --git a/ChangeLog b/ChangeLog index 052772a23..f1e189fcb 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,1049 @@ +2008-10-22 Bruno Haible + + * users.txt: Update entry about pspp. + +2008-10-21 Bruno Haible + + Simplification. + * lib/sys_socket.in.h (_gl_close_fd_maybe_socket): Remove declaration. + * lib/close.c (_gl_close_fd_maybe_socket): Make static. + + Simplification. + * lib/ioctl.c (ioctl): Don't undefine. + * lib/socket.c (socket): Don't undefine. + + Remove unused module indicator macros. + * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Don't define + GNULIB_$1 as a C macro. + + * doc/posix-functions/close.texi: Undo last change. + * doc/posix-functions/ioctl.texi: Merge the two paragraphs about + Windows platforms. + +2008-10-21 Bruno Haible + + Add gethostname() declaration to . + * lib/unistd.in.h (gethostname): New declaration. + * lib/gethostname.c: Include . + * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Require + gl_UNISTD_H_DEFAULTS. Set HAVE_GETHOSTNAME. + * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETHOSTNAME + and HAVE_GETHOSTNAME. + * modules/gethostname (Depends-on): Add unistd. + (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR. + (Include): Specify . + * modules/unistd (Makefile.am): Substitute GNULIB_GETHOSTNAME and + HAVE_GETHOSTNAME. + * tests/test-gethostname.c: Include first. + +2008-10-21 Bruno Haible + + * modules/poll-tests (Depends-on): Add sys_ioctl, ioctl. + * modules/select-tests (Depends-on): Likewise. + Reported by Simon Josefsson. + +2008-10-21 Simon Josefsson + + * lib/close.c: Add _gl_close_fd_maybe_socket from winsock.c. + * lib/accept.c: New file, based on winsock.c. + * lib/bind.c: New file, based on winsock.c. + * lib/connect.c: New file, based on winsock.c. + * lib/getpeername.c: New file, based on winsock.c. + * lib/getsockname.c: New file, based on winsock.c. + * lib/getsockopt.c: New file, based on winsock.c. + * lib/ioctl.c: New file, based on winsock.c. + * lib/listen.c: New file, based on winsock.c. + * lib/recv.c: New file, based on winsock.c. + * lib/recvfrom.c: New file, based on winsock.c. + * lib/send.c: New file, based on winsock.c. + * lib/sendto.c: New file, based on winsock.c. + * lib/setsockopt.c: New file, based on winsock.c. + * lib/shutdown.c: New file, based on winsock.c. + * lib/socket.c: New file, based on winsock.c. + * lib/w32sock.h: New file, based on winsock.c. + * lib/winsock.c: Remove file. + * modules/accept: Likewise. + * modules/bind: Likewise. + * modules/connect: Likewise. + * modules/getpeername: Likewise. + * modules/getsockname: Likewise. + * modules/getsockopt: Likewise. + * modules/ioctl: Likewise. + * modules/listen: Likewise. + * modules/recv: Likewise. + * modules/recvfrom: Likewise. + * modules/send: Likewise. + * modules/sendto: Likewise. + * modules/setsockopt: Likewise. + * modules/shutdown: Likewise. + * modules/socket: Use socket.c instead of winsock.c. + * modules/sys_socket: Remove (unneeded?) dependency on winsock.c. + * doc/posix-functions/accept.texi: Doc fix. + * doc/posix-functions/bind.texi: Doc fix. + * doc/posix-functions/close.texi: Doc fix. + * doc/posix-functions/connect.texi: Doc fix. + * doc/posix-functions/getpeername.texi: Doc fix. + * doc/posix-functions/getsockname.texi: Doc fix. + * doc/posix-functions/getsockopt.texi: Doc fix. + * doc/posix-functions/ioctl.texi: Doc fix. + * doc/posix-functions/listen.texi: Doc fix. + * doc/posix-functions/recv.texi: Doc fix. + * doc/posix-functions/recvfrom.texi: Doc fix. + * doc/posix-functions/send.texi: Doc fix. + * doc/posix-functions/sendto.texi: Doc fix. + * doc/posix-functions/setsockopt.texi: Doc fix. + * doc/posix-functions/shutdown.texi: Doc fix. + * doc/posix-functions/socket.texi: Doc fix. + +2008-10-20 Bruno Haible + + Take into account the role of SIGABRT_COMPAT on Windows 2008. + * lib/sigprocmask.c (SIGABRT_COMPAT, SIGABRT_COMPAT_MASK): New macros. + (sigismember, sigaddset, sigdelset, sigfillset, rpl_signal): Handle it + as an alias for SIGABRT. + * lib/sigaction.c (SIGABRT_COMPAT): New macro. + (sigaction): Map it to SIGABRT. + Reported by Ramiro Polla via Eric Blake. + +2008-10-20 Bruno Haible + + * lib/fts.c: Don't include lstat.h. + * lib/openat.c: Include instead of lstat.h. + + Move the lstat() declaration to . + * lib/lstat.h: Remove file. + * lib/sys_stat.in.h: Add special invocation convention. + (lstat): New declaration. + * lib/lstat.c (orig_lstat): New function. + (rpl_lstat): Use orig_lstat instead of lstat. + * m4/lstat.m4 (gl_FUNC_LSTAT): Require gl_SYS_STAT_H_DEFAULTS and + AC_C_INLINE. Set REPLACE_LSTAT. + * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize GNULIB_LSTAT + and REPLACE_LSTAT. + * modules/lstat (Files): Remove lib/lstat.h. + (configure.ac): Invoke gl_SYS_STAT_MODULE_INDICATOR. + (Include): Specify instead of lstat.h. + * modules/sys_stat (Makefile.am): Substitute GNULIB_LSTAT and + REPLACE_LSTAT. + * NEWS: Mention the change. + +2008-10-20 Bruno Haible + + * modules/posix_spawn-tests: New file. + * tests/test-posix_spawn3.c: New file. + +2008-10-20 Bruno Haible + + * modules/posix_spawnp-tests (Depends-on): Add sys_wait. + * tests/test-posix_spawn1.c (WTERMSIG, WCOREDUMP, WEXITSTATUS, + WIFSIGNALED, WIFEXITED, WIFSTOPPED): Remove fallback definitions. + * tests/test-posix_spawn2.c (WTERMSIG, WCOREDUMP, WEXITSTATUS, + WIFSIGNALED, WIFEXITED, WIFSTOPPED): Likewise. + +2008-10-20 Bruno Haible + + * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Test against another bug + of posix_spawn on AIX 5.3. + +2008-10-20 Bruno Haible + + * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Make the check on MacOS X. + +2008-10-20 Bruno Haible + + * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Use AC_LANG_SOURCE instead + of AC_LANG_PROGRAM. + +2008-10-20 Simon Josefsson + + * lib/netdb.in.h: Don't define GNU specific constants until they + are supported or needed. Reported by Bruno Haible + . + +2008-10-20 Simon Josefsson + + * lib/canon-host.c: Include netdb.h instead of getaddrinfo.h. + +2008-10-20 Simon Josefsson + + * lib/getaddrinfo.h: Remove file. + * modules/getaddrinfo: Reflect move from getaddrinfo.h to netdb.h. + * m4/getaddrinfo.m4: Call gl_HEADER_NETDB. Don't check for netdb.h. + * lib/netdb.in.h: Add declarations from getaddrinfo.h. + * m4/netdb_h.m4: Initialize GNULIB_GETADDRINFO to 0. + * modules/netdb: Substitute GNULIB_GETADDRINFO. + * lib/getaddrinfo.c: Include netdb.h instead of getaddrinfo.h. + * tests/test-getaddrinfo.c: Likewise. + * lib/gai_strerror.c: Likewise. Also drop HAVE_NETDB_H check. + * NEWS: Mention change. + +2008-10-19 Bruno Haible + + * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Remove unneeded code. + +2008-10-19 Bruno Haible + + * lib/wait-process.c: Include simply . + (waitpid, WTERMSIG, WCOREDUMP, WEXITSTATUS, WIFSIGNALED, WIFEXITED, + WIFSTOPPED): Remove fallback definitions. + * modules/wait-process (Depends-on): Add sys_wait. + + New module 'sys_wait'. + * modules/sys_wait: New file. + * lib/sys_wait.in.h: New file, partially copied from + lib/wait-process.c. + * m4/sys_wait_h.m4: New file. + * doc/posix-headers/sys_wait.texi: Mention the new module. + +2008-10-19 Bruno Haible + + * m4/wait-process.m4 (gl_WAIT_PROCESS): Remove test for unistd.h. + +2008-10-19 Bruno Haible + + Assume that waitpid() fills an 'int' status, not a 'union wait'. + * lib/wait-process.c (WAIT_T): Remove type. + (WTERMSIG, WCOREDUMP, WEXITSTATUS): Define fallbacks using bit masks. + (wait_subprocess): Update. + +2008-10-19 Bruno Haible + + New module 'atoll'. + * modules/atoll: New file. + * lib/stdlib.in.h (atoll): New declaration. + * lib/atoll.c: New file, from glibc with modifications. + * m4/atoll.m4: New file. + * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_ATOLL, + HAVE_ATOLL. + * modules/stdlib (Makefile.am): Substitute GNULIB_ATOLL, HAVE_ATOLL. + * doc/posix-functions/atoll.texi: Mention the new module. + +2008-10-19 Bruno Haible + + Add strtoull() declaration to . + * lib/stdlib.in.h (strtoull): New declaration. + * m4/strtoull.m4 (gl_FUNC_STRTOLL): Require gl_STDLIB_H_DEFAULTS. + Set HAVE_STRTOULL. + * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_STRTOULL, + HAVE_STRTOULL. + * modules/strtoull (Depends-on): Add stdlib. + (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR. + * modules/stdlib (Makefile.am): Substitute GNULIB_STRTOULL, + HAVE_STRTOULL. + +2008-10-19 Bruno Haible + + Add strtoll() declaration to . + * lib/stdlib.in.h (strtoll): New declaration. + * m4/strtoll.m4 (gl_FUNC_STRTOLL): Require gl_STDLIB_H_DEFAULTS. + Set HAVE_STRTOLL. + * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_STRTOLL, + HAVE_STRTOLL. + * modules/strtoll (Depends-on): Add stdlib. + (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR. + * modules/stdlib (Makefile.am): Substitute GNULIB_STRTOLL, HAVE_STRTOLL. + +2008-10-19 Bruno Haible + + * modules/bcopy (Depends-on): Add strings. + (Include): Specify . + +2008-10-19 Bruno Haible + + * doc/posix-functions/atexit.texi: Update doc regarding mingw. + +2008-10-19 Bruno Haible + + * lib/openat-die.c (openat_save_fail, openat_restore_fail): Rename + the parameter from 'errno' to 'errnum'. Fixes a compilation error on + mingw. + +2008-10-19 Bruno Haible + + * lib/atanl.c: Don't include isnanl.h. + * lib/cosl.c: Likewise. + * lib/ldexpl.c: Likewise. + * lib/logl.c: Likewise. + * lib/sinl.c: Likewise. + * lib/sqrtl.c: Likewise. + * lib/tanl.c: Likewise. + + Move the isnanf(), isnand(), isnanl() declarations to . + * lib/isnanf.h: Remove file. + * lib/isnand.h: Remove file. + * lib/isnanl.h: Remove file. + * lib/math.in.h: Include the contents of lib/isnanf.h, lib/isnand.h, + lib/isnanl.h. Use HAVE_ISNANF, HAVE_ISNAND, HAVE_ISNANL as substituted + macros. + * m4/isnanf.m4 (gl_FUNC_ISNANF): Require gl_MATH_H_DEFAULTS. Set + HAVE_ISNANF, don't define it as a C macro. + * m4/isnand.m4 (gl_FUNC_ISNAND): Require gl_MATH_H_DEFAULTS. Set + HAVE_ISNAND, don't define it as a C macro. + * m4/isnanl.m4 (gl_FUNC_ISNANL): Require gl_MATH_H_DEFAULTS. Set + HAVE_ISNANL, don't define it as a C macro. + * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_ISNAN[FDL] and + HAVE_ISNAN[FDL]. + * modules/isnanf (Files): Remove lib/isnanf.h. + (Depends-on): Add math. + (configure.ac): Invoke gl_MATH_MODULE_INDICATOR. + (Include): Specify instead of isnanf.h. + * modules/isnand (Files): Remove lib/isnand.h. + (Depends-on): Add math. + (configure.ac): Invoke gl_MATH_MODULE_INDICATOR. + (Include): Specify instead of isnand.h. + * modules/isnanl (Files): Remove lib/isnanl.h. + (Depends-on): Add math. + (configure.ac): Invoke gl_MATH_MODULE_INDICATOR. + (Include): Specify instead of isnanl.h. + * modules/math (Makefile.am): Substitute GNULIB_ISNAN[FDL] and + HAVE_ISNAN[FDL]. + * tests/test-isnanf.c: Include instead of isnanf.h. + * tests/test-isnand.c: Include instead of isnand.h. + * tests/test-isnanl.c: Include instead of isnanl.h. + * NEWS: Mention the change. + +2008-10-18 Bruno Haible + + Add getusershell(), setusershell(), endusershell() declarations to + . + * lib/unistd.in.h (getusershell, setusershell, endusershell): New + declarations. + * lib/getusershell.c: Include unistd.h. + * m4/getusershell.m4 (gl_FUNC_GETUSERSHELL): Require + gl_UNISTD_H_DEFAULTS and AC_USE_SYSTEM_EXTENSIONS. Set + HAVE_GETUSERSHELL. + * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETUSERSHELL + and HAVE_GETUSERSHELL. + * modules/getusershell (Depends-on): Add unistd, extensions. + (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR. + (Include): Specify . + * modules/unistd (Makefile.am): Substitute GNULIB_GETUSERSHELL and + HAVE_GETUSERSHELL. + +2008-10-18 Bruno Haible + + Add a getloadavg() declaration to . + * lib/stdlib.in.h; Include when needed for the + getloadavg declaration. + (getloadavg): New declaration. + * lib/getloadavg.c: Include first. + * m4/getloadavg.m4 (gl_GETLOADAVG): Require gl_STDLIB_H_DEFAULTS and + AC_USE_SYSTEM_EXTENSIONS. Test whether sys/loadavg.h exists. Set + HAVE_SYS_LOADAVG_H and HAVE_DECL_GETLOADAVG. + * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_GETLOADAVG, + HAVE_SYS_LOADAVG_H, HAVE_DECL_GETLOADAVG. + * modules/getloadavg (Depends-on): Add stdlib, extensions. + (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR. + (Include): Specify . + * modules/stdlib (Makefile.am): Substitute GNULIB_GETLOADAVG, + HAVE_SYS_LOADAVG_H, HAVE_DECL_GETLOADAVG. + +2008-10-18 Bruno Haible + + * lib/dirchownmod.c: Don't include lchmod.h. + + Move the lchmod() declaration to . + * lib/lchmod.h: Remove file. + * lib/sys_stat.in.h: Add placeholder for GL_LINK_WARNING. + (lchmod): New declaration, moved here from lib/lchown.h. + * m4/lchmod.m4 (gl_FUNC_LCHMOD): Require gl_SYS_STAT_H_DEFAULTS and + AC_USE_SYSTEM_EXTENSIONS. Set HAVE_LCHMOD. + * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize GNULIB_LCHMOD + and HAVE_LCHMOD. + * modules/lchmod (Files): Remove lib/lchmod.h. + (Depends-on): Add sys_stat, extensions. + (configure.ac): Invoke gl_SYS_STAT_MODULE_INDICATOR. + (Include): Specify instead of lchmod.h. + * modules/sys_stat (Depends-on): Add link-warning. + (Makefile.am): Substitute GNULIB_LCHMOD, HAVE_LCHMOD, and the + definition of GL_LINK_WARNING. + * NEWS: Mention the change. + +2008-10-18 Bruno Haible + + * lib/fchdir.c: Don't include dirfd.h. + * lib/fts.c: Likewise. + * lib/getcwd.c: Likewise. + * lib/glob.c: Likewise. + + Move the dirfd() declaration to . + * lib/dirfd.h: Remove file. + * lib/dirent.in.h: Add placeholder for GL_LINK_WARNING. + (dirfd): New declaration. + * lib/dirfd.c: Include instead of dirfd.h. + * m4/dirfd.m4 (gl_FUNC_DIRFD): Require gl_DIRENT_H_DEFAULTS and + AC_USE_SYSTEM_EXTENSIONS. Invoke gl_REPLACE_DIRENT_H. Set + HAVE_DECL_DIRFD. + * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_DIRFD and + HAVE_DECL_DIRFD. + * modules/dirfd (Files): Remove lib/dirfd.h. + (Depends-on): Add dirent, extensions. + (configure.ac): Invoke gl_DIRENT_MODULE_INDICATOR. + (Include): Specify instead of dirfd.h. + * modules/dirent (Depends-on): Add link-warning. + (Makefile.am): Substitute GNULIB_DIRFD, HAVE_DECL_DIRFD, and + definition of GL_LINK_WARNING. + * NEWS: Mention the change. + +2008-10-18 Bruno Haible + + Move the euidaccess() declaration to . + * lib/euidaccess.h: Remove file. + * lib/unistd.in.h (euidaccess): New declaration. + * lib/euidaccess.c: Don't include euidaccess.h. + * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Require gl_UNISTD_H_DEFAULTS. + Don't check whether euidaccess is declared. Set HAVE_EUIDACCESS. + * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_EUIDACCESS + and HAVE_EUIDACCESS. + * modules/euidaccess (Files): Remove lib/euidaccess.h. + (Depends-on): Add unistd. + (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR. + (Include): Specify instead of euidaccess.h. + * modules/unistd (Makefile.am): Substitute GNULIB_EUIDACCESS and + HAVE_EUIDACCESS. + * NEWS: Mention the change. + +2008-10-18 Bruno Haible + + * lib/xgetdomainname.c: Include instead of getdomainname.h. + + Move the getdomainname() declaration to . + * lib/getdomainname.h: Remove file. + * lib/unistd.in.h (getdomainname): New declaration. + * lib/getdomainname.c: Include instead of getdomainname.h. + * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Require + gl_UNISTD_H_DEFAULTS and AC_USE_SYSTEM_EXTENSIONS. Set + HAVE_GETDOMAINNAME. + * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize + GNULIB_GETDOMAINNAME and HAVE_GETDOMAINNAME. + * modules/getdomainname (Files): Remove lib/getdomainname.h. + (Depends-on): Add unistd, extensions. + (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR. + (Includes): Specify instead of getdomainname.h. + * modules/unistd (Makefile.am): Substitute GNULIB_GETDOMAINNAME and + HAVE_GETDOMAINNAME. + * NEWS: Mention the change. + +2008-10-18 Bruno Haible + + * modules/dirent: New file. + * m4/dirent_h.m4: New file. + * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_DIRENT_H_DEFAULTS. + Invoke gl_REPLACE_DIRENT_H. Don't assign DIRENT_H directly. + * modules/fchdir (Files): Remove lib/dirent.in.h. + (Depends-on): Add dirent. + (Makefile.am): Move rules to modules/dirent. + * doc/posix-headers/dirent.texi: Mention the new module. + +2008-10-18 Bruno Haible + + Avoid -Wunused-parameter warnings in public gnulib header files. + * m4/gnulib-common.m4 (gl_COMMON_BODY): Define _UNUSED_PARAMETER_ as a + macro. + * lib/unistr.h (u32_mbtouc_unsafe, u32_mbtouc): Use it. + +2008-10-18 Bruno Haible + + * doc/glibc-functions/dirfd.texi: Mention the module 'dirfd'. + * doc/glibc-functions/error.texi: Mention the module 'error'. + * doc/glibc-functions/euidaccess.texi: Mention the module 'euidaccess'. + * doc/glibc-functions/getdomainname.texi: Mention the module + 'getdomainname'. + * doc/glibc-functions/getloadavg.texi: Mention the module 'getloadavg'. + * doc/glibc-functions/getpagesize.texi: Mention the module + 'getpagesize'. + * doc/glibc-functions/getusershell.texi: Mention the module + 'getusershell'. + * doc/glibc-functions/isnanl.texi: Mention the module 'isnanl'. + * doc/glibc-functions/lchmod.texi: Mention the module 'lchmod'. + * doc/glibc-functions/mempcpy.texi: Mention the module 'mempcpy'. + * doc/glibc-functions/memrchr.texi: Mention the module 'memrchr'. + * doc/glibc-functions/mkdtemp.texi: Mention the module 'mkdtemp'. + * doc/glibc-functions/rpmatch.texi: Mention the module 'rpmatch'. + * doc/glibc-functions/stpcpy.texi: Mention the module 'stpcpy'. + * doc/glibc-functions/stpncpy.texi: Mention the module 'stpncpy'. + * doc/glibc-functions/strchrnul.texi: Mention the module 'strchrnul'. + * doc/glibc-functions/strndup.texi: Mention the module 'strndup'. + * doc/glibc-functions/strnlen.texi: Mention the module 'strnlen'. + * doc/glibc-functions/strsep.texi: Mention the module 'strsep'. + * doc/glibc-functions/timegm.texi: Mention the module 'timegm'. + * doc/glibc-functions/vasprintf.texi: Mention the module 'vasprintf'. + +2008-10-17 Bruno Haible + + * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): On platforms other than + HP-UX and IRIX, use -0.0L. + * tests/test-ceill.c (minus_zero): Likewise. + * tests/test-floorl.c (minus_zero): Likewise. + * tests/test-frexpl.c (minus_zero): Likewise. + * tests/test-isnan.c (minus_zerol): Likewise. + * tests/test-isnanl.h (minus_zero): Likewise. + * tests/test-ldexpl.c (minus_zero): Likewise. + * tests/test-roundl.c (minus_zero): Likewise. + * tests/test-signbit.c (minus_zerol): Likewise. + * tests/test-snprintf-posix.h (minus_zerol): Likewise. + * tests/test-sprintf-posix.h (minus_zerol): Likewise. + * tests/test-truncl.c (minus_zero): Likewise. + * tests/test-vasnprintf-posix.c (minus_zerol): Likewise. + * tests/test-vasprintf-posix.c (minus_zerol): Likewise. + Reported by Markus Armbruster via Jim Meyering + and by Nelson H. F. Beebe via Eric Blake. + +2008-10-17 Bruno Haible + + Avoid gcc warnings because of #pragma GCC system_header on older gcc. + * lib/arpa_inet.in.h: Encloses reference to PRAGMA_SYSTEM_HEADER so + that it gets activated only for gcc >= 3.0. + * lib/dirent.in.h: Likewise. + * lib/errno.in.h: Likewise. + * lib/fcntl.in.h: Likewise. + * lib/float.in.h: Likewise. + * lib/iconv.in.h: Likewise. + * lib/inttypes.in.h: Likewise. + * lib/locale.in.h: Likewise. + * lib/math.in.h: Likewise. + * lib/netdb.in.h: Likewise. + * lib/netinet_in.in.h: Likewise. + * lib/search.in.h: Likewise. + * lib/signal.in.h: Likewise. + * lib/spawn.in.h: Likewise. + * lib/stdarg.in.h: Likewise. + * lib/stdint.in.h: Likewise. + * lib/stdio.in.h: Likewise. + * lib/stdlib.in.h: Likewise. + * lib/string.in.h: Likewise. + * lib/strings.in.h: Likewise. + * lib/sys_file.in.h: Likewise. + * lib/sys_ioctl.in.h: Likewise. + * lib/sys_select.in.h: Likewise. + * lib/sys_socket.in.h: Likewise. + * lib/sys_stat.in.h: Likewise. + * lib/sys_time.in.h: Likewise. + * lib/sysexits.in.h: Likewise. + * lib/time.in.h: Likewise. + * lib/unistd.in.h: Likewise. + * lib/wchar.in.h: Likewise. + * lib/wctype.in.h: Likewise. + Reported by Yoann Vandoorselaere . + +2008-10-17 Jim Meyering + + ignore-value: don't depend on inline module + * modules/ignore-value (Depends-on): Remove 'inline'. + (configure.ac): Instead, add AC_REQUIRE([AC_C_INLINE]) here. + Suggestion from Bruno Haible. + +2008-10-17 Bruno Haible + + New implementation of condition variables for Win32. + * lib/glthread/cond.h (struct gl_waitqueue_link): New type. + (gl_linked_waitqueue_t): New type. + (gl_cond_t): Use it. + * lib/glthread/cond.c (struct gl_waitqueue_element): New type. + (gl_waitqueue_init, gl_waitqueue_add, gl_waitqueue_remove, + gl_waitqueue_notify_first, gl_waitqueue_notify_all): New functions. + (glthread_cond_init_func, glthread_cond_wait_func, + glthread_cond_timedwait_func, glthread_cond_signal_func, + glthread_cond_broadcast_func, glthread_cond_destroy_func): + Reimplemented on the basis of gl_linked_waitqueue_t. + * lib/glthread/lock.h (gl_carray_waitqueue_t): Renamed from + gl_waitqueue_t. + (gl_rwlock_t): Update. + * lib/glthread/lock.c (gl_waitqueue_t): Alias to gl_carray_waitqueue_t. + +2008-10-17 Simon Josefsson + + * modules/recvfrom (Depends-on): Add dependency on getpeername. + Reported by Yoann Vandoorselaere . + +2008-10-17 Jim Meyering + + ignore-value: new module + * modules/ignore-value: New file. + * lib/ignore-value.h: New file. + * MODULES.html.sh (Compiler warning management): New section, + just for this module. More to come. + +2008-10-16 Paul Eggert + + open-safer.c: avoid 'signed and unsigned in conditional...' warning + * lib/open-safer.c (open_safer): Use an "if/else" statement in place + of the ternary operator. Reported by Reuben Thomas . + +2008-10-16 Jim Meyering + + openat-die.c: avoid 'no previous prototype' warning + * lib/openat-die.c: Include "openat.h". + Reported by Reuben Thomas . + +2008-10-16 Simon Josefsson + + * m4/netdb_h.m4: Assume that if netdb.h exists, it works. + * lib/netdb.in.h: Fix typo. + Reported by Bruno Haible + + * lib/netdb.in.h: Include sys/socket.h for platforms without + netdb.h, to get structures like hostent on MinGW. + * modules/netdb (Depends-on): Add sys_socket. + +2008-10-15 Simon Josefsson + + * modules/netdb, modules/netdb-tests: New file. + * m4/netdb_h.m4: New file. + * lib/netdb.in.h: Add, currently just an empty file pending + definitions. + * tests/test-netdb.c: New file. + * doc/posix-headers/netdb.texi: Mention that we replace it if + needed. + * MODULES.html.sh (Support for systems lacking POSIX:2001): Add + netdb. + +2008-10-15 Simon Josefsson + + * doc/gnulib.texi (Getaddrinfo and WINVER): Sync documentation + with code. + +2008-10-13 Bruno Haible + + * lib/glthread/cond.c (glthread_cond_wait_func, + glthread_cond_timedwait_func): Add a comment. + +2008-10-13 Yoann Vandoorselaere + + * tests/test-poll.c: Include , for ioctl(). + * tests/test-select.c: Likewise, + +2008-10-13 Bruno Haible + + * lib/glthread/cond.c (glthread_cond_wait_func, + glthread_cond_timedwait_func): Fix variable name. + Reported by Yoann Vandoorselaere . + +2008-10-13 Paolo Bonzini + + fix getaddrinfo emulation for systems with struct sockaddr.sa_len + * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Detect + struct sockaddr.sa_len. + * lib/getaddrinfo.c (getaddrinfo): Set it if appropriate. + +2008-10-13 Simon Josefsson + + * build-aux/pmccabe2html: Add css and css_url parameters. + +2008-10-12 Bruno Haible + + * tests/test-sameacls.c (main) [AIX]: Clear type argument before + calling aclx_get. + Reported by Rainer Tammer . + +2008-10-12 Bruno Haible + + Use msvcrt aware primitives for creation/termination of Win32 threads. + * lib/glthread/thread.c: Include . + (glthread_create_func): Use _beginthreadex instead of CreateThread. + (wrapper_func): Update signature. + (gl_thread_exit_func): Use _endthreadex instead of EndThread. + +2008-10-11 Yoann Vandoorselaere + Bruno Haible + + Provide a Win32 implementation of the 'cond' module. + * lib/glthread/cond.h [USE_WIN32]: New implementation. + * lib/glthread/cond.c (glthread_cond_init_func, + glthread_cond_wait_func, glthread_cond_timedwait_func, + glthread_cond_signal_func, glthread_cond_broadcast_func, + glthread_cond_destroy_func) [USE_WIN32]: New functions. + * modules/cond (Dependencies): Add gettimeofday. + +2008-10-11 Bruno Haible + + Make sleep work on older versions of mingw. + * m4/sleep.m4 (gl_FUNC_SLEEP): Test whether 'sleep' is declared, not + only whether it exists. + * doc/posix-functions/sleep.texi: Mention the problem with older + versions of mingw. + +2008-10-11 Bruno Haible + + New module 'shutdown'. + * modules/shutdown: New file. + * lib/sys_socket.in.h (shutdown): New declaration. + * lib/winsock.c (shutdown): New function. + * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Initialize + GNULIB_SHUTDOWN. + * modules/sys_socket (Makefile.am): Substitute GNULIB_SHUTDOWN. + * doc/posix-functions/shutdown.texi: Document the new module. + +2008-10-11 Jim Meyering + + * lib/fclose.c: Fix typo in comment: s/close/fclose/. + +2008-10-11 Bruno Haible + + New module 'fclose'. + * modules/fclose: New file. + * lib/stdio.in.h (fclose): New declaration. + * lib/fclose.c: New file. + * m4/fclose.m4: New file. + * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FCLOSE, + REPLACE_FCLOSE. + * m4/close.m4 (gl_REPLACE_CLOSE): Invoke gl_REPLACE_FCLOSE. + * modules/stdio (Makefile.am): Substitute GNULIB_FCLOSE, + REPLACE_FCLOSE. + * modules/close (Depends-on): fclose. + * doc/posix-functions/fclose.texi: Mention the problem on Windows. + +2008-10-11 Bruno Haible + + * lib/winsock.c (_gl_close_fd_maybe_socket): If closesocket fails, + set errno and don't call _close. + +2008-10-10 Bruno Haible + + * lib/copy-acl.c (qcopy_acl) [CYGWIN]: Call chmod before setting the + ACL, not afterwards. Fixes test failure on Cygwin. + +2008-10-09 Ben Pfaff + + * build-aux/announce-gen: Fix gnulib version related part of usage + message. Die with a useful error message if no tarballs are + found. + +2008-10-10 Jim Meyering + + bootstrap: use git's --depth=N option only if it's supported + * build-aux/bootstrap: Work with git-1.4.4.4, which does not + recognize the --depth option. Reported by Pádraig Brady. + +2008-10-09 Bruno Haible + + New module 'ioctl'. + * modules/ioctl: New file. + * lib/sys_socket.in.h (ioctl): Remove declaration. + * lib/winsock.c: Include . + (rpl_ioctl): Define only of the gnulib module 'ioctl' is present. + * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Require + gl_SYS_IOCTL_H_DEFAULTS. Set also SYS_IOCTL_H_HAVE_WINSOCK2_H. + * modules/sys_socket (Files): Add m4/sys_ioctl_h.m4. + * doc/posix-functions/ioctl.texi: Mention the new module. + +2008-10-09 Bruno Haible + + New module 'sys_ioctl'. + * lib/sys_ioctl.in.h: New file. + * m4/sys_ioctl_h.m4: New file. + * modules/sys_ioctl: New file. + * doc/glibc-headers/sys_ioctl.texi: Mention the new module. + +2008-10-09 Bruno Haible + + * lib/sys_socket.in.h (ioctl): Make signature POSIX compliant. + * lib/winsock.c: Include . + (rpl_ioctl): Change to second argument 'int' and then varargs. + +2008-10-09 Bruno Haible + + * m4/close.m4 (gl_FUNC_CLOSE): Arrange to replace the close() function + when the sys_socket module is present and the system has . + +2008-10-09 Bruno Haible + + * doc/posix-functions/close.texi: Mention module 'close' instead of + module 'sys_socket'. + +2008-10-09 Bruno Haible + + * doc/glibc-headers/sys_ioctl.texi: New file. + * doc/gnulib.texi: Include it. + +2008-10-09 Paolo Bonzini + Bruno Haible + + Combine the two replacements of 'close'. + * lib/sys_socket.in.h (close): Define to a reminder to include + . + (_gl_close_fd_maybe_socket): New declaration. + (HAVE__GL_CLOSE_FD_MAYBE_SOCKET): New macro. + * lib/winsock.c (close): Remove undefinition. + (_gl_close_fd_maybe_socket): Renamed from rpl_close. Define only when + needed for the gnulib module 'close'. + * lib/unistd.in.h (close): If the gnulib module 'close' is not used, + define to an error symbol or to a warning, if suitable. + * lib/close.c: Include . + (rpl_close): Invoke _gl_close_fd_maybe_socket when gnulib defines it. + * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Set also + UNISTD_H_HAVE_WINSOCK2_H. + (gl_SYS_SOCKET_H_DEFAULTS): Require gl_UNISTD_H_DEFAULTS. + * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize + UNISTD_H_HAVE_WINSOCK2_H. + * modules/sys_socket (Files): Add m4/unistd_h.m4. + (configure.ac): Set a module indicator. + (Makefile.am): Substitute GNULIB_CLOSE. + * modules/unistd (Makefile.am): Substitute UNISTD_H_HAVE_WINSOCK2_H. + * modules/poll-tests (Depends-on): Add close. + * modules/select-tests (Depends-on): Likewise. + +2008-10-09 Paolo Bonzini + Bruno Haible + + New module 'close'. + * modules/close: New file. + * lib/unistd.in.h (close): Move declaration out of the + FCHDIR_REPLACEMENT scope. + (_gl_unregister_fd): New declaration. + * lib/close.c: New file. + * lib/fchdir.c (rpl_close): Remove function. + * m4/close.m4: New file. + * m4/fchdir.m4 (gl_FUNC_FCHDIR): When replacing fchdir, also replace + close. + * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_CLOSE and + REPLACE_CLOSE. + * modules/unistd (Makefile.am): Substitute GNULIB_CLOSE and + REPLACE_CLOSE. + * modules/fchdir (Depends-on): Add close. + +2008-10-09 Paolo Bonzini + Bruno Haible + + * lib/fcntl.in.h (open): Simplify conditionals. + (_gl_register_fd): New declaration. + * lib/fchdir.c (rpl_open): Remove function. + * lib/open.c: When FCHDIR_REPLACEMENT is defined, compile the file + also. + (open): When FCHDIR_REPLACEMENT is defined, invoke _gl_register_fd. + * m4/fchdir.m4 (gl_FUNC_FCHDIR): When replacing fchdir, also replace + open. + +2008-10-09 Jim Meyering + + GNUmakefile: use the more name-space-friendly "_version" + * top/GNUmakefile (_dummy): Update. + (_version): Rename from "version". + +2008-10-09 Paolo Bonzini + Bruno Haible + + * lib/fchdir.c (_gl_unregister_fd): New functions, extracted from + rpl_close. + (_gl_register_fd): New function, extracted from rpl_open. + (rpl_close, rpl_closedir): Use _gl_unregister_fd. + (rpl_open, rpl_opendir): Use _gl_register_fd. + +2008-10-09 Paolo Bonzini + + Fix organization of 'open' replacement. + * m4/open.m4 (gl_REPLACE_OPEN): New macro. + (gl_FUNC_OPEN): Use it. + (gl_PREREQ_OPEN): Add a : to make the body non-empty. + +2008-10-08 Bruno Haible + + * modules/getdate-tests (test_getdata_LDADD): Add LIBINTL. + +2008-10-08 Simon Josefsson + + * m4/sys_socket_h.m4: Don't AC_LIBOBJ(winsock). The file is + AC_LIBOBJ'ed by each gnulib module that needs it (e.g., socket, + listen). + +2008-10-08 Eric Blake + + GNUmakefile: add 'make version' target + * top/GNUmakefile (_curr-ver): Split version update rules... + (version): ...into a target. + +2008-10-07 Bruno Haible + + Use a more portable replacement expression for -0.0L. + * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Use -LDBL_MIN * LDBL_MIN + instead of -0.0L. Fix m4 quotation. + + * tests/test-signbit.c: Include . + (minus_zero): New variable. + (test_signbitl): Use minus_zero instead of -zero. + * modules/signbit-tests (Depends-on): Add float. + + * tests/test-ceill.c: Include . + (zero): Remove variable. + (minus_zero): New variable. + (main): Use minus_zero instead of -zero. + * modules/ceill-tests (Depends-on): Add float. + + * tests/test-floorl.c: Include . + (zero): Remove variable. + (minus_zero): New variable. + (main): Use minus_zero instead of -zero. + * modules/floorl-tests (Depends-on): Add float. + + * tests/test-roundl.c: Include . + (zero): Remove variable. + (minus_zero): New variable. + (main): Use minus_zero instead of -zero. + * modules/roundl-tests (Depends-on): Add float. + + * tests/test-truncl.c: Include . + (zero): Remove variable. + (minus_zero): New variable. + (main): Use minus_zero instead of -zero. + * modules/truncl-tests (Depends-on): Add float. + + * tests/test-frexpl.c (zero): Remove variable. + (minus_zero): New variable. + (main): Use minus_zero instead of -zero. + * modules/frexpl-tests (Depends-on): Add float. + + * tests/test-isnan.c (zerol): Remove variable. + (minus_zerol): New variable. + (test_long_double): Use minus_zerol instead of -zerol. + * modules/isnan-tests (Depends-on): Add float. + + * tests/test-isnanl.h (zero): Remove variable. + (minus_zero): New variable. + (main): Use minus_zero instead of -zero. + * modules/isnanl-nolibm-tests (Depends-on): Add float. + * modules/isnanl-tests (Depends-on): Add float. + + * tests/test-ldexpl.c (zero): Remove variable. + (minus_zero): New variable. + (main): Use minus_zero instead of -zero. + * modules/ldexpl-tests (Depends-on): Add float. + + * tests/test-snprintf-posix.h (zerol): Remove variable. + (minus_zerol): New variable. + (test_function): Use minus_zerol instead of -zerol. + * modules/snprintf-posix-tests (Depends-on): Add float. + * modules/vsnprintf-posix-tests (Depends-on): Add float. + + * tests/test-sprintf-posix.h (zerol): Remove variable. + (minus_zerol): New variable. + (test_function): Use minus_zerol instead of -zerol. + * modules/sprintf-posix-tests (Depends-on): Add float. + * modules/vsprintf-posix-tests (Depends-on): Add float. + + * tests/test-vasnprintf-posix.c (zerol): Remove variable. + (minus_zerol): New variable. + (test_function): Use minus_zerol instead of -zerol. + * modules/vasnprintf-posix-tests (Depends-on): Add float. + + * tests/test-vasprintf-posix.c (zerol): Remove variable. + (minus_zerol): New variable. + (test_function): Use minus_zerol instead of -zerol. + * modules/vasprintf-posix-tests (Depends-on): Add float. + +2008-10-07 Simon Josefsson + + * MODULES.html.sh (Support for building documentation): Mention + pmccabe2html. Sort entries. + + Add pmccabe2html module, from gnupdf. + * build-aux/pmccabe.css: New file. + * build-aux/pmccabe2html: New file. + * m4/pmccabe2html.m4: New file. + * modules/pmccabe2html: New file. + +2008-10-07 Richard W.M. Jones + + flock: new module + * MODULES.html.sh: Add to list of modules. + * lib/flock.c: flock implementation for Windows and Unix systems + which have fcntl. + * doc/glibc-functions/flock.texi: Update documentation. + * lib/sys_file.in.h: header file. + * m4/flock.m4: M4 macros. + * m4/sys_file_h.m4: M4 macros for replacement sys/file.h. + * modules/flock: flock module. + * modules/flock-tests: flock tests module. + * modules/sys_file: sys/file.h module. + * tests/test-flock.c: test suite for flock. + +2008-10-06 Jim Meyering + + bootstrap: check for LT_INIT more portably still ;-) + * build-aux/bootstrap: Don't rely on \>, since it's not portable. + Spotted by Bruno Haible. + +2008-10-06 Eric Blake + + test-signbit: avoid tripping Irix cc bug on -0.0L + * tests/test-signbit.c (minus_zerol): Delete, and replace with + '-zerol'. This may break on HP-UX/hppa, but at least makes the + entire testsuite consistent and avoids an Irix 6.2 bug. + +2008-10-05 Bruno Haible + Jim Meyering + + Add an option for ignoring EPIPE during close_stdout. + * lib/closeout.h: Include . + (close_stdout_set_ignore_EPIPE): New declaration. + * lib/closeout.c: Include . + (ignore_EPIPE): New variable. + (close_stdout_set_ignore_EPIPE): New function. + (close_stdout): Ignore EPIPE error if ignore_EPIPE is set. + * lib/close-stream.c (close_stream): Mention the possible EPIPE + failure. + * modules/closeout (Depends-on): Add stdbool. + +2008-10-05 Bruno Haible + + * modules/accept: New file. + * modules/bind: New file. + * modules/connect: New file. + * modules/getpeername: New file. + * modules/getsockname: New file. + * modules/getsockopt: New file. + * modules/listen: New file. + * modules/recv: New file. + * modules/recvfrom: New file. + * modules/send: New file. + * modules/sendto: New file. + * modules/setsockopt: New file. + * modules/socket: New file. + * lib/sys_socket.in.h: Include the GL_LINK_WARNING definition. + (socket, connect, accept, bind, getpeername, getsockname, getsockopt, + listen, recv, send, recvfrom, sendto, setsockopt): Declare only when + the particular module is requested. Add a link warning when the + particular module is not requested. + * lib/winsock.c (rpl_socket, rpl_connect, rpl_accept, rpl_bind, + rpl_getpeername, rpl_getsockname, rpl_getsockopt, rpl_listen, rpl_recv, + rpl_send, rpl_recvfrom, rpl_sendto, rpl_setsockopt): Define only when + the particular module is requested. + * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR, + gl_SYS_SOCKET_H_DEFAULTS): New macros. + (gl_HEADER_SYS_SOCKET): Require gl_SYS_SOCKET_H_DEFAULTS. + * modules/sys_socket (Depends-on): Add link-warning. + (Makeifle.am): Substitute GNULIB_SOCKET, GNULIB_CONNECT, GNULIB_ACCEPT, + GNULIB_BIND, GNULIB_GETPEERNAME, GNULIB_GETSOCKNAME, GNULIB_GETSOCKOPT, + GNULIB_LISTEN, GNULIB_RECV, GNULIB_SEND, GNULIB_RECVFROM, + GNULIB_SENDTO, GNULIB_SETSOCKOPT, and the definition of + GL_LINK_WARNING. + * doc/posix-functions/accept.texi: Mention the new module 'accept'. + * doc/posix-functions/bind.texi: Mention the new module 'bind'. + * doc/posix-functions/connect.texi: Mention the new module 'connect'. + * doc/posix-functions/getpeername.texi: Mention the new module + 'getpeername'. + * doc/posix-functions/getsockname.texi: Mention the new module + 'getsockname'. + * doc/posix-functions/getsockopt.texi: Mention the new module + 'getsockopt'. + * doc/posix-functions/listen.texi: Mention the new module 'listen'. + * doc/posix-functions/recv.texi: Mention the new module 'recv'. + * doc/posix-functions/recvfrom.texi: Mention the new module 'recvfrom'. + * doc/posix-functions/send.texi: Mention the new module 'send'. + * doc/posix-functions/sendto.texi: Mention the new module 'sendto'. + * doc/posix-functions/setsockopt.texi: Mention the new module + 'setsockopt'. + * doc/posix-functions/socket.texi: Mention the new module 'socket'. + * modules/poll-tests (Depends-on): Add socket, bind, getsockopt, + listen, connect, accept. + * modules/select-tests (Depends-on): Likewise. + +2008-10-05 Bruno Haible + + * lib/winsock.c (strerror): Remove unused #undef. + (rpl_close): Remove unused local variable. + + * modules/sys_socket (Depends-on); Add errno. + 2008-10-05 Bruno Haible * lib/sys_select.in.h: Include the GL_LINK_WARNING definition. @@ -106,7 +1152,7 @@ Reported by Rainer Tammer . 2008-10-03 Paolo Bonzini - Bruno Haible + Bruno Haible * lib/errno.in.h (EWOULDBLOCK) [win32]: Define to EAGAIN. * lib/winsock.c (set_winsock_errno): Map WSAEWOULDBLOCK to EWOULDBLOCK.