diff options
author | Jim Meyering <jim@meyering.net> | 2006-08-15 19:17:30 +0000 |
---|---|---|
committer | Jim Meyering <jim@meyering.net> | 2006-08-15 19:17:30 +0000 |
commit | 2ee444b5fe414a627f8600cb3989b8eed1676b9f (patch) | |
tree | b109e89438ab841f4c23871d0ad242a9d4fcc3db /m4 | |
parent | d8139747b188a142f388716b431e180faecd4f68 (diff) | |
download | coreutils-2ee444b5fe414a627f8600cb3989b8eed1676b9f.tar.xz |
[./]
* .x-sc_require_config_h: Add lib/at-func.c.
[lib/]
* at-func.c: New file, with the logic of all emulated at-functions.
* openat-priv.h: Include <errno.h> and define ENOSYS,
in support of the EXPECTED_ERRNO macro.
* openat.c (fstatat, unlinkat, fchownat): Remove function definitions.
Instead, define the appropriate symbols and include "at-func.c".
* mkdirat.c (mkdirat): Likewise.
* fchmodat.c (fchmodat): Likewise.
(ENOSYS): Remove definition.
* openat.c: Don't include <errno.h>, now that "openat-priv.h" does it.
Don't include "unistd--.h" -- it wasn't ever used.
[m4/]
* openat.m4 (gl_FUNC_OPENAT): Add at-func.c via AC_LIBSOURCES.
Diffstat (limited to 'm4')
-rw-r--r-- | m4/ChangeLog | 4 | ||||
-rw-r--r-- | m4/openat.m4 | 4 |
2 files changed, 6 insertions, 2 deletions
diff --git a/m4/ChangeLog b/m4/ChangeLog index f5c55d13d..d225958c7 100644 --- a/m4/ChangeLog +++ b/m4/ChangeLog @@ -1,3 +1,7 @@ +2006-08-15 Jim Meyering <jim@meyering.net> + + * openat.m4 (gl_FUNC_OPENAT): Add at-func.c via AC_LIBSOURCES. + 2006-08-10 Jim Meyering <jim@meyering.net> Update from gnulib. diff --git a/m4/openat.m4 b/m4/openat.m4 index 9879a0112..0abb8c87d 100644 --- a/m4/openat.m4 +++ b/m4/openat.m4 @@ -1,4 +1,4 @@ -#serial 8 +#serial 9 # See if we need to use our replacement for Solaris' openat et al functions. dnl Copyright (C) 2004, 2005, 2006 Free Software Foundation, Inc. @@ -10,7 +10,7 @@ dnl with or without modifications, as long as this notice is preserved. AC_DEFUN([gl_FUNC_OPENAT], [ - AC_LIBSOURCES([openat.c, openat.h, openat-priv.h, openat-die.c]) + AC_LIBSOURCES([openat.c, openat.h, openat-priv.h, openat-die.c, at-func.c]) AC_LIBSOURCES([intprops.h]) AC_LIBSOURCES([mkdirat.c]) AC_LIBSOURCES([fchmodat.c]) |