]> git.ipfire.org Git - thirdparty/gnutls.git/commitdiff
Update gnulib files.
authorSimon Josefsson <simon@josefsson.org>
Mon, 11 May 2009 11:36:44 +0000 (13:36 +0200)
committerSimon Josefsson <simon@josefsson.org>
Mon, 11 May 2009 11:36:44 +0000 (13:36 +0200)
13 files changed:
cfg.mk
gl/sys_socket.in.h
gl/tests/test-vc-list-files-git.sh
lib/gl/Makefile.am
lib/gl/m4/gnulib-cache.m4
lib/gl/m4/gnulib-comp.m4
lib/gl/sys_socket.in.h
lib/gl/tests/Makefile.am
lib/gl/tests/test-lseek.c
lib/gl/tests/test-lseek.sh
libextra/gl/gnulib.mk
libextra/gl/m4/gnulib-cache.m4
libextra/gl/m4/gnulib-comp.m4

diff --git a/cfg.mk b/cfg.mk
index ef71a0d15ec14c8c23d520ae224ea9455fcdef9c..1ceb691dbdeb50c2412dbd0ba7bbe2e37879088f 100644 (file)
--- a/cfg.mk
+++ b/cfg.mk
@@ -54,6 +54,11 @@ update-po: refresh-po
 bootstrap: autoreconf
        $(WFLAGS) ./configure $(CFGFLAGS)
 
+glimport:
+       gnulib-tool --m4-base gl/m4 --import
+       cd lib && gnulib-tool --m4-base gl/m4 --import
+       cd libextra && gnulib-tool --m4-base gl/m4 --import
+
 # Code Coverage
 
 pre-coverage:
index 87eed880ce5c6353b7a9ff953fc29b5b53d3769a..dadd56ac5845d4cd17c857038fe4768c38c408b5 100644 (file)
 #define _GL_SYS_SOCKET_H
 
 #if !@HAVE_STRUCT_SOCKADDR_STORAGE@
-#include <alignof.h>
+# include <alignof.h>
 /* Code taken from glibc sysdeps/unix/sysv/linux/bits/socket.h on
    2009-05-08, licensed under LGPLv2.1+, plus portability fixes. */
-#define __ss_aligntype  unsigned long int
-#define _SS_SIZE       256
-#define _SS_PADSIZE    (_SS_SIZE - (max (sizeof (sa_family_t),         \
-                                         alignof (__ss_aligntype))     \
-                                    + sizeof (__ss_aligntype)))
+# define __ss_aligntype unsigned long int
+# define _SS_SIZE 256
+# define _SS_PADSIZE \
+    (_SS_SIZE - ((sizeof (sa_family_t) >= alignof (__ss_aligntype)     \
+                 ? sizeof (sa_family_t)                                \
+                 : alignof (__ss_aligntype))                           \
+                + sizeof (__ss_aligntype)))
 
 struct sockaddr_storage
 {
index a42aec19a4259273315645f457bce4f017633dcc..f1627e7e503b2cf7160f3c12524600751b37117e 100755 (executable)
@@ -1,6 +1,6 @@
 #!/bin/sh
 # Unit tests for vc-list-files
-# Copyright (C) 2008 Free Software Foundation, Inc.
+# Copyright (C) 2008, 2009 Free Software Foundation, Inc.
 # This file is part of the GNUlib Library.
 #
 # This program is free software: you can redistribute it and/or modify
@@ -36,6 +36,8 @@ mkdir $tmpdir && cd $tmpdir &&
     || { echo "Skipping test: git not found in PATH"; (exit 77); exit 77; }; } &&
   mkdir d &&
   touch d/a b c &&
+  git config user.email "you@example.com"
+  git config user.name "Your Name"
   git add . > /dev/null &&
   git commit -q -a -m log &&
   printf '%s\n' b c d/a > expected &&
index 9a3565800d0fd814ef7735f85672c709408579a1..d179c75d5b6585c3b0a617daa576ffc791aa69ff 100644 (file)
@@ -9,7 +9,7 @@
 # the same distribution terms as the rest of that program.
 #
 # Generated by gnulib-tool.
-# Reproduce by: gnulib-tool --import --dir=. --local-dir=gl/override --lib=liblgnu --source-base=lib/gl --m4-base=lib/gl/m4 --doc-base=doc --tests-base=lib/gl/tests --aux-dir=build-aux --with-tests --lgpl=2 --libtool --macro-prefix=lgl --no-vc-files byteswap c-ctype fseeko func gettext memmem-simple memmove minmax netdb read-file snprintf sockets socklen stdint strcase strverscmp sys_socket sys_stat time_r unistd vasprintf
+# Reproduce by: gnulib-tool --import --dir=. --local-dir=gl/override --lib=liblgnu --source-base=gl --m4-base=gl/m4 --doc-base=doc --tests-base=gl/tests --aux-dir=build-aux --with-tests --lgpl=2 --libtool --macro-prefix=lgl --no-vc-files byteswap c-ctype fseeko func gettext memmem-simple memmove minmax netdb read-file snprintf sockets socklen stdint strcase strverscmp sys_socket sys_stat time_r unistd vasprintf
 
 AUTOMAKE_OPTIONS = 1.5 gnits
 
index e422fa283c8b369060cefac426e4dc7c370320d4..1a1547f5888f40f0a59f21e25627e4ccb1b02c3e 100644 (file)
@@ -15,7 +15,7 @@
 
 
 # Specification in the form of a command-line invocation:
-#   gnulib-tool --import --dir=. --local-dir=gl/override --lib=liblgnu --source-base=lib/gl --m4-base=lib/gl/m4 --doc-base=doc --tests-base=lib/gl/tests --aux-dir=build-aux --with-tests --lgpl=2 --libtool --macro-prefix=lgl --no-vc-files byteswap c-ctype fseeko func gettext memmem-simple memmove minmax netdb read-file snprintf sockets socklen stdint strcase strverscmp sys_socket sys_stat time_r unistd vasprintf
+#   gnulib-tool --import --dir=. --local-dir=gl/override --lib=liblgnu --source-base=gl --m4-base=gl/m4 --doc-base=doc --tests-base=gl/tests --aux-dir=build-aux --with-tests --lgpl=2 --libtool --macro-prefix=lgl --no-vc-files byteswap c-ctype fseeko func gettext memmem-simple memmove minmax netdb read-file snprintf sockets socklen stdint strcase strverscmp sys_socket sys_stat time_r unistd vasprintf
 
 # Specification in the form of a few gnulib-tool.m4 macro invocations:
 gl_LOCAL_DIR([gl/override])
@@ -43,11 +43,11 @@ gl_MODULES([
   vasprintf
 ])
 gl_AVOID([])
-gl_SOURCE_BASE([lib/gl])
-gl_M4_BASE([lib/gl/m4])
+gl_SOURCE_BASE([gl])
+gl_M4_BASE([gl/m4])
 gl_PO_BASE([])
 gl_DOC_BASE([doc])
-gl_TESTS_BASE([lib/gl/tests])
+gl_TESTS_BASE([gl/tests])
 gl_WITH_TESTS
 gl_LIB([liblgnu])
 gl_LGPL([2])
index 9c1e56913423630d53060c7ba917ed1e9cca7d84..9b873f41dd2659f8761215a8510bd227682c5993 100644 (file)
@@ -41,7 +41,7 @@ AC_DEFUN([lgl_INIT],
   m4_pushdef([lgl_LIBSOURCES_LIST], [])
   m4_pushdef([lgl_LIBSOURCES_DIR], [])
   gl_COMMON
-  gl_source_base='lib/gl'
+  gl_source_base='gl'
   gl_FUNC_ALLOCA
   gl_BYTESWAP
   gl_HEADER_ERRNO_H
@@ -131,7 +131,7 @@ AC_DEFUN([lgl_INIT],
   m4_pushdef([lgltests_LIBSOURCES_LIST], [])
   m4_pushdef([lgltests_LIBSOURCES_DIR], [])
   gl_COMMON
-  gl_source_base='lib/gl/tests'
+  gl_source_base='gl/tests'
   gl_FUNC_UNGETC_WORKS
   gt_TYPE_WCHAR_T
   gt_TYPE_WINT_T
@@ -191,7 +191,7 @@ AC_DEFUN([lgl_REPLACE_FUNCS], [
 AC_DEFUN([lgl_LIBSOURCES], [
   m4_foreach([_gl_NAME], [$1], [
     m4_if(_gl_NAME, [alloca.c], [], [
-      m4_define([lgl_LIBSOURCES_DIR], [lib/gl])
+      m4_define([lgl_LIBSOURCES_DIR], [gl])
       m4_append([lgl_LIBSOURCES_LIST], _gl_NAME, [ ])
     ])
   ])
@@ -218,7 +218,7 @@ AC_DEFUN([lgltests_REPLACE_FUNCS], [
 AC_DEFUN([lgltests_LIBSOURCES], [
   m4_foreach([_gl_NAME], [$1], [
     m4_if(_gl_NAME, [alloca.c], [], [
-      m4_define([lgltests_LIBSOURCES_DIR], [lib/gl/tests])
+      m4_define([lgltests_LIBSOURCES_DIR], [gl/tests])
       m4_append([lgltests_LIBSOURCES_LIST], _gl_NAME, [ ])
     ])
   ])
index a11230b9d5c1f70dc5c6c38cb0c99defce57643f..efe5fff361c830c289ed262cc135f496101933c3 100644 (file)
 #define _GL_SYS_SOCKET_H
 
 #if !@HAVE_STRUCT_SOCKADDR_STORAGE@
-#include <alignof.h>
+# include <alignof.h>
 /* Code taken from glibc sysdeps/unix/sysv/linux/bits/socket.h on
    2009-05-08, licensed under LGPLv2.1+, plus portability fixes. */
-#define __ss_aligntype  unsigned long int
-#define _SS_SIZE       256
-#define _SS_PADSIZE    (_SS_SIZE - (max (sizeof (sa_family_t),         \
-                                         alignof (__ss_aligntype))     \
-                                    + sizeof (__ss_aligntype)))
+# define __ss_aligntype unsigned long int
+# define _SS_SIZE 256
+# define _SS_PADSIZE \
+    (_SS_SIZE - ((sizeof (sa_family_t) >= alignof (__ss_aligntype)     \
+                 ? sizeof (sa_family_t)                                \
+                 : alignof (__ss_aligntype))                           \
+                + sizeof (__ss_aligntype)))
 
 struct sockaddr_storage
 {
index cc663e90b1f31c80bd3993c087d958c868c560a4..8aad0909432e2e94070b70ea35852038d3299a2c 100644 (file)
@@ -31,10 +31,10 @@ MAINTAINERCLEANFILES =
 
 AM_CPPFLAGS = \
   -I. -I$(srcdir) \
-  -I../../.. -I$(srcdir)/../../.. \
-  -I../../../lib/gl -I$(srcdir)/../../../lib/gl
+  -I../.. -I$(srcdir)/../.. \
+  -I../../gl -I$(srcdir)/../../gl
 
-LDADD = libtests.a ../../../lib/gl/liblgnu.la libtests.a $(LIBTESTS_LIBDEPS)
+LDADD = libtests.a ../../gl/liblgnu.la libtests.a $(LIBTESTS_LIBDEPS)
 
 libtests_a_SOURCES =
 libtests_a_LIBADD = $(lgltests_LIBOBJS)
index 5d9b5c044e94af244548ea50c2c0f60168125009..ebba02ec6dc24350ef27a095d05efc88a8fc5092 100644 (file)
@@ -85,9 +85,9 @@ main (int argc, char **argv)
 
     case '2': /* closed */
       /* Explicitly close file descriptors 0 and 1.  The <&- and >&- in the
-         invoking shell are not enough on HP-UX.
-      close (0);     calling close fails on mingw -- simon@josefsson.org
-      close (1);  */
+         invoking shell are not enough on HP-UX.  */
+      close (0);
+      close (1);
       errno = 0;
       ASSERT (lseek (0, (off_t)0, SEEK_CUR) == -1);
       ASSERT (errno == EBADF);
index ae3b23e57e444cce7f98f687bc6cef5681ba3ff3..e84c2bb49347fa3403142fb3d737bc4331183902 100755 (executable)
@@ -11,8 +11,7 @@ tmpfiles=t-lseek.tmp
 echo hi | ./test-lseek${EXEEXT} 1 | cat || exit 1
 
 # closed descriptors
-# Doesn't work under mingw -- simon@josefsson.org
-#./test-lseek${EXEEXT} 2 <&- >&- || exit 1
+./test-lseek${EXEEXT} 2 <&- >&- || exit 1
 
 rm -rf $tmpfiles
 exit 0
index 7649765e4afdcbb741d20612cb95dcb7de503c22..09f301cbd99ddf98e0dbfaab81eef45d6f5804f5 100644 (file)
@@ -9,7 +9,7 @@
 # the same distribution terms as the rest of that program.
 #
 # Generated by gnulib-tool.
-# Reproduce by: gnulib-tool --import --dir=. --lib=libxgnu --source-base=libextra/gl --m4-base=libextra/gl/m4 --doc-base=doc --tests-base=libextra/gl/tests --aux-dir=build-aux --avoid=dummy --avoid=stdint --makefile-name=gnulib.mk --libtool --macro-prefix=xgl --no-vc-files crypto/hmac-md5 crypto/md5 extensions havelib
+# Reproduce by: gnulib-tool --import --dir=. --lib=libxgnu --source-base=gl --m4-base=gl/m4 --doc-base=doc --tests-base=gl/tests --aux-dir=build-aux --avoid=dummy --avoid=stdint --makefile-name=gnulib.mk --libtool --macro-prefix=xgl --no-vc-files crypto/hmac-md5 crypto/md5 extensions havelib
 
 
 MOSTLYCLEANFILES += core *.stackdump
index 433493061c56bdb52c9d1f87e635538714493432..21c1d855377cb99633e89fa0497a2187ebb6c91c 100644 (file)
@@ -15,7 +15,7 @@
 
 
 # Specification in the form of a command-line invocation:
-#   gnulib-tool --import --dir=. --lib=libxgnu --source-base=libextra/gl --m4-base=libextra/gl/m4 --doc-base=doc --tests-base=libextra/gl/tests --aux-dir=build-aux --avoid=dummy --avoid=stdint --makefile-name=gnulib.mk --libtool --macro-prefix=xgl --no-vc-files crypto/hmac-md5 crypto/md5 extensions havelib
+#   gnulib-tool --import --dir=. --lib=libxgnu --source-base=gl --m4-base=gl/m4 --doc-base=doc --tests-base=gl/tests --aux-dir=build-aux --avoid=dummy --avoid=stdint --makefile-name=gnulib.mk --libtool --macro-prefix=xgl --no-vc-files crypto/hmac-md5 crypto/md5 extensions havelib
 
 # Specification in the form of a few gnulib-tool.m4 macro invocations:
 gl_LOCAL_DIR([])
@@ -26,11 +26,11 @@ gl_MODULES([
   havelib
 ])
 gl_AVOID([dummy stdint])
-gl_SOURCE_BASE([libextra/gl])
-gl_M4_BASE([libextra/gl/m4])
+gl_SOURCE_BASE([gl])
+gl_M4_BASE([gl/m4])
 gl_PO_BASE([])
 gl_DOC_BASE([doc])
-gl_TESTS_BASE([libextra/gl/tests])
+gl_TESTS_BASE([gl/tests])
 gl_LIB([libxgnu])
 gl_MAKEFILE_NAME([gnulib.mk])
 gl_LIBTOOL
index 371c4bc3bafbe2c45b7b89776acc8e03a450bc8f..d4ea4cf75443cb5cc08a1b76c0dc15b9fc61f1d9 100644 (file)
@@ -40,7 +40,7 @@ AC_DEFUN([xgl_INIT],
   m4_pushdef([xgl_LIBSOURCES_LIST], [])
   m4_pushdef([xgl_LIBSOURCES_DIR], [])
   gl_COMMON
-  gl_source_base='libextra/gl'
+  gl_source_base='gl'
   gl_HMAC_MD5
   gl_MD5
   gl_MEMXOR
@@ -82,7 +82,7 @@ AC_DEFUN([xgl_INIT],
   m4_pushdef([xgltests_LIBSOURCES_LIST], [])
   m4_pushdef([xgltests_LIBSOURCES_DIR], [])
   gl_COMMON
-  gl_source_base='libextra/gl/tests'
+  gl_source_base='gl/tests'
   m4_ifval(xgltests_LIBSOURCES_LIST, [
     m4_syscmd([test ! -d ]m4_defn([xgltests_LIBSOURCES_DIR])[ ||
       for gl_file in ]xgltests_LIBSOURCES_LIST[ ; do
@@ -136,7 +136,7 @@ AC_DEFUN([xgl_REPLACE_FUNCS], [
 AC_DEFUN([xgl_LIBSOURCES], [
   m4_foreach([_gl_NAME], [$1], [
     m4_if(_gl_NAME, [alloca.c], [], [
-      m4_define([xgl_LIBSOURCES_DIR], [libextra/gl])
+      m4_define([xgl_LIBSOURCES_DIR], [gl])
       m4_append([xgl_LIBSOURCES_LIST], _gl_NAME, [ ])
     ])
   ])
@@ -163,7 +163,7 @@ AC_DEFUN([xgltests_REPLACE_FUNCS], [
 AC_DEFUN([xgltests_LIBSOURCES], [
   m4_foreach([_gl_NAME], [$1], [
     m4_if(_gl_NAME, [alloca.c], [], [
-      m4_define([xgltests_LIBSOURCES_DIR], [libextra/gl/tests])
+      m4_define([xgltests_LIBSOURCES_DIR], [gl/tests])
       m4_append([xgltests_LIBSOURCES_LIST], _gl_NAME, [ ])
     ])
   ])