1. 15 Jan, 2016 1 commit
    • KO Myung-Hun's avatar
      opendir, closedir, dirfd, fdopendir: port to OS/2 kLIBC · 7524d610
      KO Myung-Hun authored
      * lib/closedir.c (closedir): Unregister fd if closedir() succeeds.
      * lib/dirent.in.h (_gl_register_dirp_fd, _gl_unregister_dirp_fd):
      Declare on kLIBC.
      * lib/dirfd.c (struct dirp_fd_list): New. Structures to keep track of
      fd associated with dirp.
      (_gl_register_dirp_fd): New. Register fd associated with dirp to
      dirp_fd_list.
      (_gl_unregister_dirp_fd): New. Unregister fd with closing it.
      (dirfd): Implemented for kLIBC.
      * lib/fdopendir.c (fdopendir): Implemented for kLIBC.
      * lib/opendir.c (opendir): New. Register fd and dirp pair if open()
      succeeds.
      * m4/closedir.m4 (gl_FUNC_CLOSEDIR): Replace if OS/2.
      * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
      (REPLACE_DIRFD): Define to 1 if replaced.
      * m4/opendir.m4 (gl_FUNC_OPENDIR): Likewise.
      * modules/closedir (Depends-on): Add dirfd.
      * modules/dirfd (Depends-on): Add 'test $REPLACE_DIRFD = 1' to errno
      condition.
      (configure.ac): Add dirfd to LIBOBJS if $REPLACE_DIRFD = 1 as well.
      * modules/opendir (Depends-on): Add dirfd.
      7524d610
  2. 01 Jan, 2016 1 commit
    • Paul Eggert's avatar
      version-etc: new year · 71090a2a
      Paul Eggert authored
      * build-aux/gendocs.sh (version):
      * doc/gendocs_template:
      * doc/gendocs_template_min:
      * doc/gnulib.texi:
      * lib/version-etc.c (COPYRIGHT_YEAR):
      Update copyright dates by hand in templates and the like.
      * all files: Run 'make update-copyright'.
      71090a2a
  3. 25 Feb, 2015 1 commit
    • Paul Eggert's avatar
      glob, etc.: port to MSVC v18 on MS-Windows 8.1 · ecc5d3e1
      Paul Eggert authored
      * lib/dirent--.h (GNULIB_defined_opendir):
      * lib/dirent.in.h (GNULIB_defined_opendir)
      (GNULIB_defined_closedir):
      * lib/getcwd.c, lib/glob.c, lib/mountlist.c (opendir, closedir):
      #undef only if Gnulib defined it.
      ecc5d3e1
  4. 01 Jan, 2015 1 commit
    • Paul Eggert's avatar
      version-etc: new year · b9bfe784
      Paul Eggert authored
      * doc/gnulib.texi:
      * lib/version-etc.c (COPYRIGHT_YEAR): Update copyright date.
      * all files: Run 'make update-copyright'.
      b9bfe784
  5. 01 Jan, 2014 1 commit
  6. 01 Jan, 2013 1 commit
  7. 25 Mar, 2012 1 commit
    • Bruno Haible's avatar
      Enable common subexpression optimization in GCC. · 64a8db09
      Bruno Haible authored
      * lib/dirent.in.h (_GL_ATTRIBUTE_PURE): Define, like in string.in.h.
      (alphasort): Declare with GCC attribute 'pure'.
      * lib/stdlib.in.h (_GL_ATTRIBUTE_PURE): Define, like in string.in.h.
      (atoll): Declare with GCC attribute 'pure'.
      * lib/string.in.h (mbslen, mbsnlen, mbschr, mbsrchr, mbsstr,
      mbscasecmp, mbsncasecmp, mbspcasecmp, mbscasestr, mbscspn, mbspbrk,
      mbsspn, strverscmp): Declare with GCC attribute 'pure'.
      * lib/wchar.in.h (_GL_ATTRIBUTE_PURE): Define, like in string.in.h.
      (btowc, wctob, wcwidth, wmemchr, wmemcmp, wcslen, wcsnlen, wcscmp,
      wcsncmp, wcscasecmp, wcsncasecmp, wcschr, wcsrchr, wcscspn, wcsspn,
      wcspbrk, wcsstr, wcswidth): Declare with GCC attribute 'pure'.
      64a8db09
  8. 01 Jan, 2012 1 commit
  9. 12 Sep, 2011 1 commit
    • Bruno Haible's avatar
      New modules 'opendir', 'readdir', 'rewinddir', 'closedir'. · 994c21f3
      Bruno Haible authored
      * lib/dirent.in.h (struct dirent): New type.
      (DT_UNKNOWN, DT_FIFO, DT_CHR, DT_DIR, DT_BLK, DT_REG, DT_LNK, DT_SOCK,
      DT_WHT): New macros.
      (DIR): New type.
      (opendir, closedir): Declare only if the module 'opendir' is enabled.
      (readdir, rewinddir): New declarations.
      * lib/dirent-private.h: New file.
      * lib/opendir.c: New file.
      * lib/readdir.c: New file.
      * lib/rewinddir.c: New file.
      * lib/closedir.c: New file.
      * lib/fchdir.c (rpl_closedir, rpl_opendir): Remove functions.
      * m4/opendir.m4: New file.
      * m4/readdir.m4: New file.
      * m4/rewinddir.m4: New file.
      * m4/closedir.m4: New file.
      * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't set REPLACE_OPENDIR,
      REPLACE_CLOSEDIR here.
      * m4/dirent_h.m4 (gl_DIRENT_H): Also check whether closedir, opendir,
      readdir, rewinddir are declared.
      (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_OPENDIR, GNULIB_READDIR,
      GNULIB_REWINDDIR, GNULIB_CLOSEDIR, HAVE_OPENDIR, HAVE_READDIR,
      HAVE_REWINDDIR, HAVE_CLOSEDIR.
      * modules/dirent (Makefile.am): Substitute GNULIB_OPENDIR,
      GNULIB_READDIR, GNULIB_REWINDDIR, GNULIB_CLOSEDIR, HAVE_OPENDIR,
      HAVE_READDIR, HAVE_REWINDDIR, HAVE_CLOSEDIR.
      * modules/opendir: New file.
      * modules/readdir: New file.
      * modules/rewinddir: New file.
      * modules/closedir: New file.
      * doc/posix-functions/opendir.texi: Mention the 'opendir' module.
      * doc/posix-functions/readdir.texi: Mention the 'readdir' module.
      * doc/posix-functions/rewinddir.texi: Mention the 'rewinddir' module.
      * doc/posix-functions/closedir.texi: Mention the 'closedir' module.
      * NEWS: Mention the 'fchdir' change.
      994c21f3
  10. 11 Sep, 2011 1 commit
    • Bruno Haible's avatar
      dirent: Don't assume <dirent.h> exists. · 28d57000
      Bruno Haible authored
      * lib/dirent.in.h: Include <dirent.h> only if HAVE_DIRENT_H is 1.
      * m4/dirent_h.m4 (gl_DIRENT_H): Set HAVE_DIRENT_H.
      * modules/dirent (Makefile.am): Substitute HAVE_DIRENT_H.
      * doc/posix-headers/dirent.texi: Mention the MSVC problem.
      28d57000
  11. 29 May, 2011 1 commit
    • Bruno Haible's avatar
      Allow multiple gnulib generated include files to be combined. · 0ab583c0
      Bruno Haible authored
      * gnulib-tool (func_compute_include_guard_prefix): New function.
      (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Resolve also
      ${gl_include_guard_prefix} references.
      (func_import, func_create_testdir): Invoke
      func_compute_include_guard_prefix.
      * lib/arpa_inet.in.h: Use the @GUARD_PREFIX@ placeholder.
      * lib/ctype.in.h: Likewise.
      * lib/dirent.in.h: Likewise.
      * lib/errno.in.h: Likewise.
      * lib/fcntl.in.h: Likewise.
      * lib/float.in.h: Likewise.
      * lib/getopt.in.h: Likewise.
      * lib/iconv.in.h: Likewise.
      * lib/langinfo.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/poll.in.h: Likewise.
      * lib/pthread.in.h: Likewise.
      * lib/pty.in.h: Likewise.
      * lib/sched.in.h: Likewise.
      * lib/se-selinux.in.h: Likewise.
      * lib/search.in.h: Likewise.
      * lib/signal.in.h: Likewise.
      * lib/spawn.in.h: Likewise.
      * lib/stdarg.in.h: Likewise.
      * lib/stddef.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/sys_times.in.h: Likewise.
      * lib/sys_uio.in.h: Likewise.
      * lib/sys_utsname.in.h: Likewise.
      * lib/sys_wait.in.h: Likewise.
      * lib/sysexits.in.h: Likewise.
      * lib/termios.in.h: Likewise.
      * lib/time.in.h: Likewise.
      * lib/unistd.in.h: Likewise.
      * lib/wchar.in.h: Likewise.
      * lib/wctype.in.h: Likewise.
      * modules/arpa_inet (Makefile.am): Substitute @GUARD_PREFIX@.
      * modules/ctype (Makefile.am): Likewise.
      * modules/dirent (Makefile.am): Likewise.
      * modules/errno (Makefile.am): Likewise.
      * modules/fcntl-h (Makefile.am): Likewise.
      * modules/float (Makefile.am): Likewise.
      * modules/getopt-posix (Makefile.am): Likewise.
      * modules/iconv-h (Makefile.am): Likewise.
      * modules/langinfo (Makefile.am): Likewise.
      * modules/locale (Makefile.am): Likewise.
      * modules/math (Makefile.am): Likewise.
      * modules/netdb (Makefile.am): Likewise.
      * modules/netinet_in (Makefile.am): Likewise.
      * modules/poll-h (Makefile.am): Likewise.
      * modules/pthread (Makefile.am): Likewise.
      * modules/pty (Makefile.am): Likewise.
      * modules/sched (Makefile.am): Likewise.
      * modules/search (Makefile.am): Likewise.
      * modules/selinux-h (Makefile.am): Likewise.
      * modules/signal (Makefile.am): Likewise.
      * modules/spawn (Makefile.am): Likewise.
      * modules/stdarg (Makefile.am): Likewise.
      * modules/stddef (Makefile.am): Likewise.
      * modules/stdint (Makefile.am): Likewise.
      * modules/stdio (Makefile.am): Likewise.
      * modules/stdlib (Makefile.am): Likewise.
      * modules/string (Makefile.am): Likewise.
      * modules/strings (Makefile.am): Likewise.
      * modules/sys_file (Makefile.am): Likewise.
      * modules/sys_ioctl (Makefile.am): Likewise.
      * modules/sys_select (Makefile.am): Likewise.
      * modules/sys_socket (Makefile.am): Likewise.
      * modules/sys_stat (Makefile.am): Likewise.
      * modules/sys_time (Makefile.am): Likewise.
      * modules/sys_times (Makefile.am): Likewise.
      * modules/sys_uio (Makefile.am): Likewise.
      * modules/sys_utsname (Makefile.am): Likewise.
      * modules/sys_wait (Makefile.am): Likewise.
      * modules/sysexits (Makefile.am): Likewise.
      * modules/termios (Makefile.am): Likewise.
      * modules/time (Makefile.am): Likewise.
      * modules/unistd (Makefile.am): Likewise.
      * modules/wchar (Makefile.am): Likewise.
      * modules/wctype-h (Makefile.am): Likewise.
      * modules/assert-h (Makefile.am): Replace _GL_VERIFY_H specially.
      0ab583c0
  12. 01 Jan, 2011 1 commit
  13. 04 Oct, 2010 1 commit
    • Bruno Haible's avatar
      Avoid line length limitation from HP NonStop system header files. · 968e74c2
      Bruno Haible authored
      * m4/include_next.m4 (gl_INCLUDE_NEXT): Define also PRAGMA_COLUMNS.
      * lib/arpa_inet.in.h: Use PRAGMA_COLUMNS.
      * lib/ctype.in.h: Likewise.
      * lib/dirent.in.h: Likewise.
      * lib/errno.in.h: Likewise.
      * lib/fcntl.in.h: Likewise.
      * lib/float.in.h: Likewise.
      * lib/getopt.in.h: Likewise.
      * lib/iconv.in.h: Likewise.
      * lib/inttypes.in.h: Likewise.
      * lib/langinfo.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/poll.in.h: Likewise.
      * lib/pthread.in.h: Likewise.
      * lib/pty.in.h: Likewise.
      * lib/sched.in.h: Likewise.
      * lib/se-selinux.in.h: Likewise.
      * lib/search.in.h: Likewise.
      * lib/signal.in.h: Likewise.
      * lib/spawn.in.h: Likewise.
      * lib/stdarg.in.h: Likewise.
      * lib/stddef.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/sys_times.in.h: Likewise.
      * lib/sys_utsname.in.h: Likewise.
      * lib/sys_wait.in.h: Likewise.
      * lib/sysexits.in.h: Likewise.
      * lib/termios.in.h: Likewise.
      * lib/time.in.h: Likewise.
      * lib/unistd.in.h: Likewise.
      * lib/wchar.in.h: Likewise.
      * lib/wctype.in.h: Likewise.
      * modules/arpa_inet (Makefile.am): Substitute PRAGMA_COLUMNS.
      * modules/ctype (Makefile.am): Likewise.
      * modules/dirent (Makefile.am): Likewise.
      * modules/errno (Makefile.am): Likewise.
      * modules/fcntl-h (Makefile.am): Likewise.
      * modules/float (Makefile.am): Likewise.
      * modules/getopt-posix (Makefile.am): Likewise.
      * modules/iconv-h (Makefile.am): Likewise.
      * modules/inttypes (Makefile.am): Likewise.
      * modules/langinfo (Makefile.am): Likewise.
      * modules/locale (Makefile.am): Likewise.
      * modules/math (Makefile.am): Likewise.
      * modules/netdb (Makefile.am): Likewise.
      * modules/netinet_in (Makefile.am): Likewise.
      * modules/poll-h (Makefile.am): Likewise.
      * modules/pthread (Makefile.am): Likewise.
      * modules/pty (Makefile.am): Likewise.
      * modules/sched (Makefile.am): Likewise.
      * modules/search (Makefile.am): Likewise.
      * modules/selinux-h (Makefile.am): Likewise.
      * modules/signal (Makefile.am): Likewise.
      * modules/spawn (Makefile.am): Likewise.
      * modules/stdarg (Makefile.am): Likewise.
      * modules/stddef (Makefile.am): Likewise.
      * modules/stdint (Makefile.am): Likewise.
      * modules/stdio (Makefile.am): Likewise.
      * modules/stdlib (Makefile.am): Likewise.
      * modules/string (Makefile.am): Likewise.
      * modules/strings (Makefile.am): Likewise.
      * modules/sys_file (Makefile.am): Likewise.
      * modules/sys_ioctl (Makefile.am): Likewise.
      * modules/sys_select (Makefile.am): Likewise.
      * modules/sys_socket (Makefile.am): Likewise.
      * modules/sys_stat (Makefile.am): Likewise.
      * modules/sys_time (Makefile.am): Likewise.
      * modules/sys_times (Makefile.am): Likewise.
      * modules/sys_utsname (Makefile.am): Likewise.
      * modules/sys_wait (Makefile.am): Likewise.
      * modules/sysexits (Makefile.am): Likewise.
      * modules/termios (Makefile.am): Likewise.
      * modules/time (Makefile.am): Likewise.
      * modules/unistd (Makefile.am): Likewise.
      * modules/wchar (Makefile.am): Likewise.
      * modules/wctype (Makefile.am): Likewise.
      968e74c2
  14. 04 Sep, 2010 1 commit
  15. 30 Jul, 2010 1 commit
  16. 30 Mar, 2010 2 commits
  17. 25 Mar, 2010 1 commit
    • Eric Blake's avatar
      maint: use pragma consistently across replacement headers · 40aa4775
      Eric Blake authored
      Several headers set #pragma GCC system_header prior to checking
      any multiple inclusion guards; maintenance is easiest if all
      replacement headers follow the same paradigm.
      
      * lib/ctype.in.h (system_header): Hoist for consistent placement.
      * lib/dirent.in.h (system_header): Likewise.
      * lib/errno.in.h (system_header): Likewise.
      * lib/float.in.h (system_header): Likewise.
      * lib/getopt.in.h (system_header): Likewise.
      * lib/iconv.in.h (system_header): Likewise.
      * lib/inttypes.in.h (system_header): Likewise.
      * lib/langinfo.in.h (system_header): Likewise.
      * lib/locale.in.h (system_header): Likewise.
      * lib/math.in.h (system_header): Likewise.
      * lib/netdb.in.h (system_header): Likewise.
      * lib/netinet_in.in.h (system_header): Likewise.
      * lib/pty.in.h (system_header): Likewise.
      * lib/sched.in.h (system_header): Likewise.
      * lib/se-selinux.in.h (system_header): Likewise.
      * lib/search.in.h (system_header): Likewise.
      * lib/spawn.in.h (system_header): Likewise.
      * lib/stdarg.in.h (system_header): Likewise.
      * lib/stdint.in.h (system_header): Likewise.
      * lib/string.in.h (system_header): Likewise.
      * lib/strings.in.h (system_header): Likewise.
      * lib/sys_file.in.h (system_header): Likewise.
      * lib/sys_ioctl.in.h (system_header): Likewise.
      * lib/sys_socket.in.h (system_header): Likewise.
      * lib/sys_times.in.h (system_header): Likewise.
      * lib/sys_utsname.in.h (system_header): Likewise.
      * lib/sys_wait.in.h (system_header): Likewise.
      * lib/sysexits.in.h (system_header): Likewise.
      * lib/unistd.in.h (system_header): Likewise.
      * lib/wctype.in.h (system_header): Likewise.
      Signed-off-by: default avatarEric Blake <eblake@redhat.com>
      40aa4775
  18. 08 Mar, 2010 1 commit
  19. 20 Jan, 2010 1 commit
    • Eric Blake's avatar
      warn-on-use: use instead of link-warning · cbd5934b
      Eric Blake authored
      Each *.in.h file serves two purposes - provide enough self-contained
      content to serve as a replacement for the system header regardless of
      the user's compiler, and offer the developer the ability to detect any
      gnulib modules that might have been inadvertantly excluded.  The
      former requires independence from config.h, and routes everything
      through a Makefile.am snippet that uses @@ substitution specific to
      the modules that were in use, with details learned at configure time.
      
      The latter works by poisoning anything that gnulib did not replace,
      but which the developer had natively available, explaining why their
      tests passed during development.  Poisoning relies on gcc features,
      and requires manual triggering by adding -DGNULIB_POSIXCHECK to
      CFLAGS; it assumes that <config.h> is properly included.  In fact, we
      do not want to use @@ substitution for HAVE_DECL_* during poisoning,
      because the warning is only relevant for the gnulib modules which were
      not included, and thus where the m4 macros to set proper @@ values
      have not been run.  Furthermore, we only need to poison interfaces
      that already have a declaration; if something is not declared, then
      the developer wouldn't have been able to link, so their code won't be
      using the problematic interface in the first place.
      
      * modules/stdio (Depends-on, Makefile.am): Drop link-warning.
      * modules/unistd (Depends-on, Makefile.am): Likewise.
      * modules/arpa_inet (Depends-on): Replace link-warning with
      warn-on-use.
      (Makefile.am): Update rules accordingly.
      * modules/ctype (Depends-on, Makefile.am): Likewise.
      * modules/dirent (Depends-on, Makefile.am): Likewise.
      * modules/fcntl-h (Depends-on, Makefile.am): Likewise.
      * modules/inttypes (Depends-on, Makefile.am): Likewise.
      * modules/langinfo (Depends-on, Makefile.am): Likewise.
      * modules/locale (Depends-on, Makefile.am): Likewise.
      * modules/math (Depends-on, Makefile.am): Likewise.
      * modules/search (Depends-on, Makefile.am): Likewise.
      * modules/signal (Depends-on, Makefile.am): Likewise.
      * modules/spawn (Depends-on, Makefile.am): Likewise.
      * modules/stdlib (Depends-on, Makefile.am): Likewise.
      * modules/string (Depends-on, Makefile.am): Likewise.
      * modules/strings (Depends-on, Makefile.am): Likewise.
      * modules/sys_file (Depends-on, Makefile.am): Likewise.
      * modules/sys_ioctl (Depends-on, Makefile.am): Likewise.
      * modules/sys_select (Depends-on, Makefile.am): Likewise.
      * modules/sys_socket (Depends-on, Makefile.am): Likewise.
      * modules/sys_stat (Depends-on, Makefile.am): Likewise.
      * modules/sys_times (Depends-on, Makefile.am): Likewise.
      * modules/sys_utsname (Depends-on, Makefile.am): Likewise.
      * modules/wchar (Depends-on, Makefile.am): Likewise.
      * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Check which functions
      should be poisoned.
      * m4/ctype.m4 (gl_CTYPE_H): Likewise.
      * m4/dirent_h.m4 (gl_DIRENT_H): Likewise.
      * m4/fcntl_h.m4 (gl_FCNTL_H): Likewise.
      * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
      * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
      * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
      * m4/math_h.m4 (gl_MATH_H): Likewise.
      * m4/search_h.m4 (gl_SEARCH_H): Likewise.
      * m4/signal_h.m4 (gl_SIGNAL_H): Likewise.
      * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
      * m4/stdio_h.m4 (gl_STDIO_H): Likewise.
      * m4/stdlib_h.m4 (gl_STDLIB_H): Likewise.
      * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Likewise.
      * m4/strings_h.m4 (gl_HEADER_STRINGS_H_BODY): Likewise.
      * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H_DEFAULTS): Likewise.
      * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Likewise.
      * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
      * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
      * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Likewise.
      * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
      * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
      * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
      * m4/wchar.m4 (gl_WCHAR_H): Likewise.
      * lib/arpa_inet.in.h: Use _GL_WARN_ON_USE instead of
      GL_LINK_WARNING.
      * lib/ctype.in.h: Likewise.
      * lib/dirent.in.h: Likewise.
      * lib/fcntl.in.h: Likewise.
      * lib/inttypes.in.h: Likewise.
      * lib/langinfo.in.h: Likewise.
      * lib/locale.in.h: Likewise.
      * lib/math.in.h: Likewise.
      * lib/search.in.h: Likewise.
      * lib/signal.in.h: Likewise.
      * lib/spawn.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_times.in.h: Likewise.
      * lib/sys_utsname.in.h: Likewise.
      * lib/unistd.in.h: Likewise.
      * lib/wchar.in.h: Likewise.
      Signed-off-by: default avatarEric Blake <ebb9@byu.net>
      cbd5934b
  20. 07 Jan, 2010 2 commits
  21. 01 Jan, 2010 1 commit
  22. 19 Dec, 2009 1 commit
  23. 11 Dec, 2009 1 commit
  24. 10 Dec, 2009 1 commit
  25. 07 Oct, 2009 1 commit
    • Eric Blake's avatar
      fdopendir: fix GNU/Hurd bug · dfbec8be
      Eric Blake authored
      fdopendir(open("file",O_RDONLY)) mistakenly succeeded, with
      subsequent readdir() failing with ENOTDIR.
      
      * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Check for Hurd bug in
      allowing non-directory fds.
      * lib/fdopendir.c (rpl_fdopendir): Work around it.
      * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): New witness.
      * modules/dirent (Makefile.am): Substitute it.
      * lib/dirent.in.h (fdopendir): Declare replacement.
      * doc/posix-functions/fdopendir.texi (fdopendir): Document this.
      * tests/test-fdopendir.c (main): Test something other than
      /dev/null, since on Hurd that behaves like a directory.
      Signed-off-by: default avatarEric Blake <ebb9@byu.net>
      dfbec8be
  26. 16 Sep, 2009 1 commit
    • Eric Blake's avatar
      fchdir: improve use of replacement functions · c9dd0005
      Eric Blake authored
      * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set appropriate witnesses.
      * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add REPLACE_FSTAT.
      * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Add REPLACE_OPENDIR,
      REPLACE_CLOSEDIR.
      * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add REPLACE_DUP.
      * modules/sys_stat (Makefile.am): Substitute correct witness.
      * modules/dirent (Makefile.am): Likewise.
      * modules/unistd (Makefile.am): Likewise.
      * lib/dirent.in.h (opendir, closedir): Use better witnesses.
      * lib/unistd.in.h (dup): Likewise.
      * lib/sys_stat.in.h (fstat): Likewise.
      Signed-off-by: default avatarEric Blake <ebb9@byu.net>
      c9dd0005
  27. 03 Sep, 2009 1 commit
    • Eric Blake's avatar
      fdopendir: split into its own module · d1aa3e40
      Eric Blake authored
      * lib/openat.c (fdopendir): Move...
      * lib/fdopendir.c: ...into new file.
      * modules/fdopendir: New module.
      * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): New file.
      * modules/openat (Depends-on): Add fdopendir.
      * m4/openat.m4 (gl_FUNC_OPENAT): No longer need to check for
      fdopendir here.
      * modules/savedir (Depends-on): Only need fdopendir, not full
      openat.
      * lib/savedir.c (include): Use <dirent.h>, not "openat.h".
      * lib/openat.h (fdopendir): Drop prototype.
      * lib/dirent.in.h (fdopendir): Provide prototype.
      * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Add replacements.
      * modules/dirent (Makefile.am): Substitute them.
      * MODULES.html.sh (File system functions): Mention it.
      * doc/posix-functions/fdopendir.texi (fdopendir): Likewise.
      * modules/fdopendir-tests: New file.
      * tests/test-fdopendir.c: Likewise.
      Signed-off-by: default avatarEric Blake <ebb9@byu.net>
      d1aa3e40
  28. 18 Jan, 2009 2 commits
  29. 19 Oct, 2008 1 commit
  30. 18 Oct, 2008 2 commits
  31. 30 Aug, 2008 1 commit
  32. 07 Oct, 2007 1 commit
  33. 01 Oct, 2007 1 commit
  34. 21 Jun, 2007 1 commit
    • Paul Eggert's avatar
      * m4/fchdir.m4 (gl_FUNC_FCHDIR): Likewise. · 73f2a1c0
      Paul Eggert authored
      * m4/iconv_h.m4 (gl_ICONV_H): Likewise.
      * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
      * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Likewise.
      * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
      * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
      * m4/sysexits.m4 (gl_SYSEXITS): Likewise.
      SCALAR(0x828a248)
      * lib/dirent_.h: Likewise.
      * lib/iconv_.h: Likewise.
      * lib/locale_.h: Likewise.
      * lib/netinet_in_.h: Likewise.
      * lib/sys_select_.h: Likewise.
      * lib/sys_socket_.h: Likewise.
      * lib/sysexits_.h: Likewise.
      * modules/fchdir: Likewise.
      * modules/iconv_open: Likewise.
      * modules/locale: Likewise.
      * modules/netinet_in: Likewise.
      * modules/sys_select: Likewise.
      * modules/sys_socket: Likewise.
      * modules/sysexits: Likewise.
      73f2a1c0
  35. 30 May, 2007 1 commit
  36. 17 May, 2007 1 commit
    • Paul Eggert's avatar
      * lib/dirent_.h: Prefer #include_next <foo.h> to #include · af36a1d1
      Paul Eggert authored
      @ABSOLUTE_FOO_H@ if @HAVE_INCLUDE_NEXT@.  This works better with
      GCC 4.2, which otherwise issues a lot of warnings.
      * lib/iconv_.h, lib/locale_.h, lib/netinet_in_.h, lib/sys_select_.h:
      * lib/sys_socket_.h, lib/sys_stat_.h, lib/sysexits_.h, lib/unistd_.h:
      Likewise.
      * modules/fchdir (dirent.h): Substitute @HAVE_INCLUDE_NEXT@.
      * modules/iconv_open (iconv.h): Likewise.
      * modules/locale (locale.h): Likewise.
      * modules/netinet_in (netinet/in.h): Likewise.
      * modules/sys_select (sys_select.h): Likewise.
      * modules/sys_socket (sys/socket.h): Likewise.
      * modules/sys_stat (sys/stat.h): Likewise.
      * modules/sysexits (sysexits.h): Likewise.
      * modules/unistd (unistd.h): Likewise.
      af36a1d1