diff options
author | Simon Josefsson <simon@josefsson.org> | 2009-09-03 12:09:32 +0200 |
---|---|---|
committer | Simon Josefsson <simon@josefsson.org> | 2009-09-03 12:09:32 +0200 |
commit | d9633bbdfc9a244078d251ea62625909d5bfd794 (patch) | |
tree | df0f4b7b1d93f3f8a0d9c1902f4db9be56f0170e /lib | |
parent | b0b7f5a655fcbc530534eb6bc2362b4ab5a4e8d6 (diff) | |
download | gnutls-d9633bbdfc9a244078d251ea62625909d5bfd794.tar.gz |
Update gnulib files.
Diffstat (limited to 'lib')
-rw-r--r-- | lib/gl/Makefile.am | 5 | ||||
-rw-r--r-- | lib/gl/m4/sys_stat_h.m4 | 5 | ||||
-rw-r--r-- | lib/gl/sys_stat.in.h | 4 | ||||
-rw-r--r-- | lib/gl/unistd.in.h | 16 |
4 files changed, 15 insertions, 15 deletions
diff --git a/lib/gl/Makefile.am b/lib/gl/Makefile.am index c5f48d65bb..ff97cc3544 100644 --- a/lib/gl/Makefile.am +++ b/lib/gl/Makefile.am @@ -669,7 +669,7 @@ BUILT_SOURCES += $(SYS_SOCKET_H) # We need the following in order to create <sys/socket.h> when the system # doesn't have one that works with the given compiler. sys/socket.h: sys_socket.in.h - $(AM_V_at)@MKDIR_P@ sys + $(AM_V_at)$(MKDIR_P) sys $(AM_V_GEN)rm -f $@-t $@ && \ { echo '/* DO NOT EDIT! GENERATED AUTOMATICALLY! */'; \ sed -e 's|@''INCLUDE_NEXT''@|$(INCLUDE_NEXT)|g' \ @@ -715,7 +715,7 @@ BUILT_SOURCES += $(SYS_STAT_H) # We need the following in order to create <sys/stat.h> when the system # has one that is incomplete. sys/stat.h: sys_stat.in.h - $(AM_V_at)@MKDIR_P@ sys + $(AM_V_at)$(MKDIR_P) sys $(AM_V_GEN)rm -f $@-t $@ && \ { echo '/* DO NOT EDIT! GENERATED AUTOMATICALLY! */'; \ sed -e 's|@''INCLUDE_NEXT''@|$(INCLUDE_NEXT)|g' \ @@ -727,6 +727,7 @@ sys/stat.h: sys_stat.in.h -e 's|@''HAVE_LSTAT''@|$(HAVE_LSTAT)|g' \ -e 's|@''REPLACE_LSTAT''@|$(REPLACE_LSTAT)|g' \ -e 's|@''REPLACE_MKDIR''@|$(REPLACE_MKDIR)|g' \ + -e 's|@''REPLACE_FCHDIR''@|$(REPLACE_FCHDIR)|g' \ -e '/definition of GL_LINK_WARNING/r $(LINK_WARNING_H)' \ < $(srcdir)/sys_stat.in.h; \ } > $@-t && \ diff --git a/lib/gl/m4/sys_stat_h.m4 b/lib/gl/m4/sys_stat_h.m4 index 20c82edf93..5113e55380 100644 --- a/lib/gl/m4/sys_stat_h.m4 +++ b/lib/gl/m4/sys_stat_h.m4 @@ -1,5 +1,5 @@ -# sys_stat_h.m4 serial 10 -*- Autoconf -*- -dnl Copyright (C) 2006-2008 Free Software Foundation, Inc. +# sys_stat_h.m4 serial 11 -*- Autoconf -*- +dnl Copyright (C) 2006-2009 Free Software Foundation, Inc. dnl This file is free software; the Free Software Foundation dnl gives unlimited permission to copy and/or distribute it, dnl with or without modifications, as long as this notice is preserved. @@ -50,6 +50,7 @@ AC_DEFUN([gl_SYS_STAT_MODULE_INDICATOR], AC_DEFUN([gl_SYS_STAT_H_DEFAULTS], [ + AC_REQUIRE([gl_UNISTD_H_DEFAULTS]) dnl for REPLACE_FCHDIR GNULIB_LCHMOD=0; AC_SUBST([GNULIB_LCHMOD]) GNULIB_LSTAT=0; AC_SUBST([GNULIB_LSTAT]) dnl Assume proper GNU behavior unless another module says otherwise. diff --git a/lib/gl/sys_stat.in.h b/lib/gl/sys_stat.in.h index c20df22bd1..e8b0c84cee 100644 --- a/lib/gl/sys_stat.in.h +++ b/lib/gl/sys_stat.in.h @@ -302,6 +302,10 @@ extern int rpl_lstat (const char *name, struct stat *buf); lstat (p, b)) #endif +#if @REPLACE_FCHDIR@ +# define fstat rpl_fstat +extern int fstat (int fd, struct stat *buf); +#endif #if @REPLACE_MKDIR@ # undef mkdir diff --git a/lib/gl/unistd.in.h b/lib/gl/unistd.in.h index a259483292..9730aff4b5 100644 --- a/lib/gl/unistd.in.h +++ b/lib/gl/unistd.in.h @@ -248,11 +248,11 @@ extern int fchdir (int /*fd*/); # define dup rpl_dup extern int dup (int); -# if @REPLACE_DUP2@ -# undef dup2 -# endif -# define dup2 rpl_dup2_fchdir -extern int dup2 (int, int); +/* Gnulib internal hooks needed to maintain the fchdir metadata. */ +extern int _gl_register_fd (int fd, const char *filename); +extern void _gl_unregister_fd (int fd); +extern int _gl_register_dup (int oldfd, int newfd); +extern const char *_gl_directory_name (int fd); # endif #elif defined GNULIB_POSIXCHECK @@ -621,12 +621,6 @@ extern ssize_t write (int fd, const void *buf, size_t count); #endif -#ifdef FCHDIR_REPLACEMENT -/* gnulib internal function. */ -extern void _gl_unregister_fd (int fd); -#endif - - #ifdef __cplusplus } #endif |