1. 19 Nov, 2011 1 commit
    • Bruno Haible's avatar
      Depend on module fcntl-h when AT_FDCWD is used. · e0009e0b
      Bruno Haible authored
      * modules/utimens (Depends-on): Add fcntl-h.
      * modules/areadlinkat (Depends-on): Likewise.
      * modules/areadlinkat-with-size (Depends-on): Likewise.
      * modules/faccessat (Depends-on): Likewise.
      * modules/fchmodat (Depends-on): Likewise.
      * modules/fchownat (Depends-on): Likewise.
      * modules/getcwd (Depends-on): Likewise.
      * modules/mkdirat (Depends-on): Likewise.
      * modules/mkfifoat (Depends-on): Likewise.
      * modules/readlinkat (Depends-on): Likewise.
      * modules/symlinkat (Depends-on): Likewise.
      * modules/dup2-tests (Depends-on): Likewise.
      * modules/fdutimensat-tests (Depends-on): Likewise.
      * modules/futimens-tests (Depends-on): Likewise.
      e0009e0b
  2. 05 Nov, 2011 1 commit
    • Bruno Haible's avatar
      New modules 'at-internal', 'openat-h', split off from module 'openat'. · 75000c49
      Bruno Haible authored
      * m4/openat.m4 (gl_FUNC_OPENAT): Don't set GNULIB_OPENAT. Don't
      invoke gl_PREREQ_OPENAT and gl_MODULE_INDICATOR.
      * modules/openat (Description): Add reference to POSIX function.
      (Files): Remove lib/openat.h, lib/openat-proc.c.
      (Depends-on): Add at-internal, openat-h. Remove fdopendir, gettext-h,
      intprops, unistd.
      (configure.ac): Remove AC_LIBOBJ of openat-proc. Invoke
      gl_PREREQ_OPENAT, gl_MODULE_INDICATOR here. Invoke
      gl_FCNTL_MODULE_INDICATOR.
      (Include): Remove unistd.h, openat.h.
      * modules/areadlinkat (Files): Add lib/at-func.c.
      (Depends-on): Add at-internal, dosname, errno, extensions, fchdir,
      openat-die, openat-h, save-cwd.
      * modules/areadlinkat-with-size (Files): Add lib/at-func.c.
      (Depends-on): Add at-internal, dosname, errno, extensions, fchdir,
      openat-die, openat-h, save-cwd, unistd.
      * modules/faccessat (Files): Add lib/at-func.c, lib/openat-priv.h.
      (Depends-on): Add at-internal, dosname, errno, fchdir, openat-die,
      openat-h, save-cwd. Remove fcntl-h, openat.
      * modules/fchmodat (Files): Remove lib/openat.h.
      (Depends-on): Add at-internal, openat-h. Remove dirent, fcntl-h,
      openat, stdbool, unistd.
      * modules/fchownat (Files): Remove lib/openat.h.
      (Depends-on): Add at-internal, openat-h. Remove dirent, fcntl-h,
      openat, stdbool, sys_stat.
      * modules/fdopendir (Files): Remove lib/openat-priv.h,
      lib/openat-proc.c.
      (Depends-on): Add at-internal.
      (condigure.ac): Remove AC_LIBOBJ of openat-proc.
      * modules/fstatat (Files): Remove lib/openat.h.
      (Depends-on): Add at-internal, openat-h. Remove dirent, openat,
      stdbool, unistd.
      * modules/fts (Depends-on): Add openat-h.
      * modules/linkat (Depends-on): Add at-internal, openat-h. Remove
      openat.
      * modules/mkdirat (Files): Remove lib/openat.h.
      (Depends-on): Add at-internal, openat-h. Remove dirent, fcntl-h,
      openat, stdbool, sys_stat.
      * modules/mkfifoat (Files): Add lib/at-func.c.
      (Depends-on): Add at-internal, dosname, errno, fchdir, openat-die,
      openat-h, save-cwd. Remove fcntl-h, openat.
      * modules/openat-die (Depends-on): Add openat-h. Remove openat.
      * modules/readlinkat (Files): Add lib/at-func.c.
      (Depends-on): Add at-internal, dosname, errno, fchdir, openat-die,
      openat-h, save-cwd. Remove fcntl-h, openat.
      * modules/renameat (Depends-on): Add at-internal, openat-h. Remove
      openat.
      * modules/selinux-at (Files): Add lib/at-func.c.
      (Depends-on): Add at-internal, dosname, errno, extensions, fchdir,
      fcntl-h, openat-die, openat-h, save-cwd, unistd. Remove openat.
      * modules/symlinkat (Files): Add lib/at-func.c.
      (Depends-on): Add at-internal, dosname, errno, fchdir, openat-die,
      openat-h, save-cwd. Remove fcntl-h, openat.
      * modules/unlinkat (Files): Remove lib/openat.h.
      (Depends-on): Add at-internal, openat-h. Remove dirent, openat,
      stdbool.
      * modules/utimensat (Files): Add lib/at-func.c.
      (Depends-on): Add at-internal, dosname, errno, fchdir, fcntl-h,
      openat-die, openat-h, save-cwd.
      * modules/fchownat-tests (Depends-on): Add openat-h. Remove openat.
      * modules/fdutimensat-tests (Depends-on): Add openat.
      * modules/fstatat-tests (Depends-on): Add openat-h.
      * modules/readlinkat-tests (Depends-on): Add openat.
      * modules/symlinkat-tests (Depends-on): Add openat.
      75000c49
  3. 09 Apr, 2011 1 commit
  4. 05 Apr, 2011 1 commit
    • Paul Eggert's avatar
      areadlink, areadlinkat: rewrite in terms of careadlinkat · 4266051a
      Paul Eggert authored
      * lib/areadlink.c, lib/areadlinkat.c: Include careadlinkat.h
      instead of errno.h, limits.h, stdint.h, stdlib.h, string.h, unistd.h.
      (SSIZE_MAX, INITIAL_BUF_SIZE): Remove.
      (malloc, realloc): Remove #undefs.
      (areadlink, areadlinkat): Rewrite in terms of careadlinkat.
      * modules/areadlink (Depends-on): Add careadlinkat.  Remove
      readlink, ssize_t, stdint, unistd.
      * modules/areadlinkat (Depends-on): Add careadlinkat.  Remove
      areadlink, stdint.
      
      careadlinkat: new module
      * lib/allocator.h, lib/careadlinkat.h, lib/careadlinkat.c:
      * modules/careadlinkat: New files, written by me with
      a review and feedback from Ben Pfaff in
      <http://lists.gnu.org/archive/html/bug-gnulib/2011-04/msg00008.html>.
      4266051a
  5. 09 Aug, 2010 1 commit
  6. 08 Oct, 2009 1 commit
    • Eric Blake's avatar
      areadlinkat: new module · 9d145640
      Eric Blake authored
      * lib/at-func.c (FUNC_FAIL): New define.
      (AT_FUNC_NAME, VALIDATE_FLAG): Use it rather than raw -1.
      * modules/areadlinkat: New module.
      * lib/linkat.c (areadlinkat): Move...
      * lib/areadlinkat.c (areadlinkat): ...to new file.
      * lib/areadlink.h (areadlinkat): Declare it.
      * modules/linkat (Depends-on): Add areadlinkat.
      * MODULES.html.sh (File system functions): Mention it.
      * modules/areadlinkat-tests: New test.
      * tests/test-areadlinkat.c: New file.
      Signed-off-by: default avatarEric Blake <ebb9@byu.net>
      9d145640