Move the lchmod() declaration to <sys/stat.h>.
[gnulib.git] / ChangeLog
index bb3c53d..d2f0bc9 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,109 @@
 2008-10-18  Bruno Haible  <bruno@clisp.org>
 
+       * lib/dirchownmod.c: Don't include lchmod.h.
+
+       Move the lchmod() declaration to <sys/stat.h>.
+       * 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 <sys/stat.h> 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  <bruno@clisp.org>
+
+       * 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 <dirent.h>.
+       * lib/dirfd.h: Remove file.
+       * lib/dirent.in.h: Add placeholder for GL_LINK_WARNING.
+       (dirfd): New declaration.
+       * lib/dirfd.c: Include <dirent.h> 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 <dirent.h> 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  <bruno@clisp.org>
+
+       Move the euidaccess() declaration to <unistd.h>.
+       * 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 <unistd.h> instead of euidaccess.h.
+       * modules/unistd (Makefile.am): Substitute GNULIB_EUIDACCESS and
+       HAVE_EUIDACCESS.
+       * NEWS: Mention the change.
+
+2008-10-18  Bruno Haible  <bruno@clisp.org>
+
+       * lib/xgetdomainname.c: Include <unistd.h> instead of getdomainname.h.
+
+       Move the getdomainname() declaration to <unistd.h>.
+       * lib/getdomainname.h: Remove file.
+       * lib/unistd.in.h (getdomainname): New declaration.
+       * lib/getdomainname.c: Include <unistd.h> 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 <unistd.h> instead of getdomainname.h.
+       * modules/unistd (Makefile.am): Substitute GNULIB_GETDOMAINNAME and
+       HAVE_GETDOMAINNAME.
+       * NEWS: Mention the change.
+
+2008-10-18  Bruno Haible  <bruno@clisp.org>
+
+       * 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  <bruno@clisp.org>
+
+       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  <bruno@clisp.org>
+
        * 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'.