1. 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
  2. 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
  3. 01 Jan, 2014 1 commit
  4. 01 Jan, 2013 1 commit
  5. 30 Nov, 2012 1 commit
    • Paul Eggert's avatar
      dup, execute, fatal-signal, etc.: no 'static inline' · bdaf232d
      Paul Eggert authored
      * lib/dup.c (dup_nothrow):
      * lib/execute.c (nonintr_close, nonintr_open):
      * lib/fatal-signal.c (uninstall_handlers, install_handlers):
      * lib/fopen.c (orig_fopen):
      * lib/freadseek.c (freadptrinc):
      * lib/freopen.c (orig_freopen):
      * lib/fstat.c (orig_fstat, fstat_nothrow):
      * lib/get-rusage-as.c (get_rusage_as_via_setrlimit)
      (get_rusage_as_via_iterator):
      * lib/get-rusage-data.c (get_rusage_data_via_setrlimit):
      * lib/getdtablesize.c (_setmaxstdio_nothrow):
      * lib/isatty.c (_isatty_nothrow):
      * lib/open.c (orig_open):
      * lib/read.c (read_nothrow):
      * lib/sigprocmask.c (signal_nothrow):
      * lib/spawn-pipe.c (nonintr_close, nonintr_open):
      * lib/vasnprintf.c (MAX_ROOM_NEEDED):
      * lib/wait-process.c (unregister_slave_subprocess):
      * lib/write.c (write_nothrow):
      Now static, not static inline.
      * lib/spawn-pipe.c (nonintr_open): Define only if
      (defined _WIN32 || defined __WIN32__) && ! defined __CYGWIN__.
      * m4/dup.m4 (gl_PREREQ_DUP):
      * m4/execute.m4 (gl_EXECUTE):
      * m4/fatal-signal.m4 (gl_FATAL_SIGNAL):
      * m4/fopen.m4 (gl_PREREQ_FOPEN):
      * m4/freadseek.m4 (gl_FUNC_FREADSEEK):
      * m4/freopen.m4 (gl_PREREQ_FREOPEN):
      * m4/fstat.m4 (gl_PREREQ_FSTAT):
      * m4/getdtablesize.m4 (gl_PREREQ_GETDTABLESIZE):
      * m4/isatty.m4 (gl_PREREQ_ISATTY):
      * m4/open.m4 (gl_PREREQ_OPEN):
      * m4/read.m4 (gl_PREREQ_READ):
      * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK):
      * m4/spawn-pipe.m4 (gl_SPAWN_PIPE):
      * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF):
      * m4/wait-process.m4 (gl_WAIT_PROCESS):
      * m4/write.m4 (gl_PREREQ_WRITE):
      * modules/get-rusage-as, modules/get-rusage-data (configure.ac):
      Do not require AC_C_INLINE.
      bdaf232d
  6. 01 Jan, 2012 1 commit
  7. 07 Sep, 2011 1 commit
    • Bruno Haible's avatar
      openat: Work around compilation error with OSF/1 5.1 DTK cc. · 6563cd76
      Bruno Haible authored
      * lib/fopen.c: Use different syntax for include of <stdio.h>.
      * lib/freopen.c: Likewise.
      * lib/fstatat.c: Use different syntax for include of <sys/stat.h>.
      * lib/lstat.c: Likewise.
      * lib/stat.c: Likewise.
      * lib/open.c: Use different syntax for include of <fcntl.h>.
      * lib/openat.c: Include fcntl.h again, explicitly.
      6563cd76
  8. 30 Aug, 2011 1 commit
    • Bruno Haible's avatar
      Avoid endless recursions if config.h includes some header files. · c29a7464
      Bruno Haible authored
      * lib/fopen.c (__need_FILE): Define already before including config.h.
      * lib/freopen.c (__need_FILE): Likewise.
      * lib/open.c (__need_system_fcntl_h): Likewise.
      * lib/stat.c (__need_system_sys_stat_h): Likewise.
      * lib/lstat.c (__need_system_sys_stat_h): Likewise.
      Reported by Michael Goffioul <michael.goffioul@gmail.com>.
      c29a7464
  9. 08 Apr, 2011 1 commit
    • Eric Blake's avatar
      nonblocking: provide O_NONBLOCK for mingw · 70a72e0f
      Eric Blake authored
      Mingw is the only known platform that lacks O_NONBLOCK (possibly
      via the alternate spelling O_NDELAY).  But mingw also lacks any
      files where open() needs to enforce non-blocking behavior, and
      lacks openat(), so it is relatively simple to provide a non-zero
      flag.  A future patches will make use of O_NONBLOCK for pipe2.
      
      * modules/nonblocking (Depends-on): Add open.
      (configure.ac): Set new witness macro.
      * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Provide default for it.
      * modules/fcntl-h (Makefile.am): Substitute it.
      * lib/fcntl.in.h (O_NONBLOCK): Guarantee non-zero definition when
      nonblocking module is in use.
      * lib/nonblocking.c: Adjust portability test.
      * lib/open.c (open): Don't let native open see gnulib flag.
      * tests/test-fcntl-h.c (main): Enhance test.
      * tests/test-open.h (test_open): Likewise.
      * doc/posix-headers/fcntl.texi (fcntl.h): Document the replacement.
      Signed-off-by: default avatarEric Blake <eblake@redhat.com>
      70a72e0f
  10. 01 Jan, 2011 1 commit
  11. 10 Sep, 2010 1 commit
    • Paul Eggert's avatar
      fcntl-h: define O_CLOEXEC and O_EXEC if not defined; use new defines · ffb0b299
      Paul Eggert authored
      * doc/posix-headers/fcntl.texi (fcntl.h): Document that
      O_CLOEXEC is now defined to 0 if it is not defined, like other flags.
      Also, O_EXEC is now defined to be O_RDONLY if O_EXEC is not defined.
      Similarly for O_SEARCH; this last was already true, but not documented.
      * lib/fcntl.in.h (O_CLOEXEC): Define to 0 if not defined.
      * lib/dup-safer-flag.c (O_CLOEXEC): Remove now-useless #define.
      * lib/dup3.c, lib/pipe2.c, tests/test-dup-safer.c, tests/test-fcntl.c:
      Likewise.
      * lib/popen-safer.c (open_noinherit): Check whether O_CLOEXEC
      is zero, not whether it is defined.
      * tests/test-dup3.c, tests/test-pipe2.c (main): Likewise.
      * lib/progreloc.c (find_executable): Use O_EXEC rather than O_RDONLY.
      * lib/open.c (open): Check for O_SEARCH as well as for O_RDONLY.
      ffb0b299
  12. 01 Jan, 2010 1 commit
  13. 10 Dec, 2009 1 commit
  14. 03 Oct, 2009 1 commit
  15. 22 Sep, 2009 1 commit
  16. 03 Sep, 2009 2 commits
    • Eric Blake's avatar
      fchdir: use more consistent macro convention · dd66a62c
      Eric Blake authored
      * lib/fcntl.in.h (_gl_register_fd): Move declaration to unistd.
      * lib/sys_stat.in.h (rpl_fstat): Declare via make-time
      REPLACE_FCHDIR, rather than relying on config.h macros.
      * lib/unistd.in.h (fchdir): Move all fchdir internal declarations
      inside a single make-time REPLACE_FCHDIR block, rather than using
      the config.h FCHDIR_REPLACEMENT.
      * m4/fchdir.m4 (gl_FUNC_FCHDIR): REPLACE_FCHDIR was already
      AC_SUBST'd, also AC_DEFINE it.  Don't define FCHDIR_REPLACEMENT.
      Manage fstat replacement.
      * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Pick up
      REPLACE_FCHDIR.
      * modules/sys_stat (Files): Add m4/unistd_h.m4.
      (Makefile.am): Substitute REPLACE_FCHDIR.
      * lib/close.c (rpl_close): Use REPLACE_FCHDIR, not
      FCHDIR_REPLACEMENT.
      * lib/dup-safer.c (dup_safer): Likewise.
      * lib/dup2.c (rpl_dup2): Likewise.
      * lib/dup3.c (rpl_dup3): Likewise.
      * lib/open.c (rpl_open): Likewise.
      Signed-off-by: default avatarEric Blake <ebb9@byu.net>
      dd66a62c
    • Eric Blake's avatar
      fchdir: simplify error handling, and support dup3 · 4475e25b
      Eric Blake authored
      * modules/fchdir (Depends-on): Use strdup-posix, not strdup.  Add
      stdbool, malloc-posix, realloc-posix.
      * lib/fchdir.c (struct dir_info_t): Delete saved_errno.
      (ensure_dirs_slot): Return false on allocation failure.
      (rpl_dup2): Delete.
      (_gl_register_dup): New function.
      (_gl_unregister_fd, rpl_opendir, rpl_dup): Update callers.
      (_gl_register_fd): Close fd on allocation failure.
      * lib/fcntl.in.h (_gl_register_fd): Update signature.
      * lib/unistd.in.h (_gl_register_dup) [FCHDIR_REPLACEMENT]: New
      prototype.
      (rpl_dup2_fchdir): Delete prototype.
      * lib/open.c (open): Update caller.
      * lib/dup2.c (dup2): Track fchdir metadata.
      * lib/dup3.c (dup3): Likewise.
      * m4/dup2.m4 (gl_REPLACE_DUP2): New macro.
      * m4/fchdir.m4 (gl_FUNC_FCHDIR): Use it.
      Signed-off-by: default avatarEric Blake <ebb9@byu.net>
      4475e25b
  17. 01 Sep, 2009 1 commit
    • Eric Blake's avatar
      fchdir: port to mingw · 8fc864a0
      Eric Blake authored
      * m4/fchdir.m4 (gl_FUNC_FCHDIR): Check for mingw bug.
      * lib/open.c (open) [FCHDIR_REPLACEMENT]: If directories can't be
      opened, then use a substitute.
      * lib/sys_stat.in.h (fstat) [REPLACE_OPEN_DIRECTORY]: Declare
      replacement.
      * lib/fchdir.c (fstat) [REPLACE_OPEN_DIRECTORY]: Implement it.
      (_gl_register_fd): No need to check stat if open already filters
      all directories.
      (fchdir): Fix error condition to match POSIX.
      * modules/fchdir (Depends-on): Add sys_stat.
      * doc/posix-functions/open.texi (open): Document the limitation.
      * modules/fchdir-tests: New file.
      * tests/test-fchdir.c: Likewise.
      Signed-off-by: default avatarEric Blake <ebb9@byu.net>
      8fc864a0
  18. 22 May, 2009 1 commit
  19. 09 Oct, 2008 1 commit
  20. 28 Sep, 2008 1 commit
  21. 24 Sep, 2008 2 commits
  22. 12 Jun, 2008 3 commits
  23. 07 Oct, 2007 2 commits