Commit e0413757 e04137579d087ee12c5930bda13f073a7f8c6334 by Sergey Poznyakoff

Update

1 parent 4dbde7f5
2006-06-27 Sergey Poznyakoff <gray@gnu.org.ua>
* gnulib.modules (mailutils): Add sha1
* lib/Makefile.am: Update
* mailbox/Makefile.am: Update
* m4/gnulib.m4: Update
* sql/mysql.c: Implement verification against mysql v4 passwords.
Update by gnulib-sync.
* lib/allocsa.c: Updated
* lib/allocsa.h: Updated
* lib/allocsa.valgrind: Updated
* lib/asprintf.c: Updated
* lib/error.c: Updated
* lib/error.h: Updated
* lib/exit.h: Updated
* lib/exitfail.c: Updated
* lib/exitfail.h: Updated
* lib/getpass.c: Updated
* lib/getpass.h: Updated
* lib/mbswidth.c: Updated
* lib/mbswidth.h: Updated
* lib/obstack.c: Updated
* lib/obstack.h: Updated
* lib/realloc.c: Updated
* lib/setenv.c: Updated
* lib/setenv.h: Updated
* lib/snprintf.c: Updated
* lib/snprintf.h: Updated
* lib/unsetenv.c: Updated
* lib/vasprintf.c: Updated
* lib/vasprintf.h: Updated
* lib/xalloc-die.c: Updated
* lib/xalloc.h: Updated
* lib/xmalloc.c: Updated
* lib/xsize.h: Updated
* m4/alloca.m4: Updated
* m4/allocsa.m4: Updated
* m4/argp.m4: Updated
* m4/d-type.m4: Updated
* m4/eealloc.m4: Updated
* m4/eoverflow.m4: Updated
* m4/error.m4: Updated
* m4/exitfail.m4: Updated
* m4/extensions.m4: Updated
* m4/fnmatch.m4: Updated
* m4/full-header-path.m4: Added to the repository
* m4/getdelim.m4: Updated
* m4/getline.m4: Updated
* m4/getlogin_r.m4: Updated
* m4/getopt.m4: Updated
* m4/getpass.m4: Updated
* m4/glob.m4: Updated
* m4/intmax_t.m4: Updated
* m4/inttostr.m4: Updated
* m4/inttypes_h_gl.m4: Updated
* m4/inttypes_h_gl.m4: Updated
* m4/longdouble.m4: Updated
* m4/longdouble.m4: Updated
* m4/longlong_gl.m4: Updated
* m4/longlong_gl.m4: Updated
* m4/mbchar.m4: Updated
* m4/mbiter.m4: Updated
* m4/mbrtowc.m4: Updated
* m4/mbrtowc.m4: Updated
* m4/mbstate_t.m4: Updated
* m4/mbstate_t.m4: Updated
* m4/mbswidth.m4: Updated
* m4/md5.m4: Updated
* m4/memchr.m4: Updated
* m4/mempcpy.m4: Updated
* m4/minmax.m4: Updated
* m4/obstack.m4: Updated
* m4/onceonly.m4: Updated
* m4/onceonly.m4: Updated
* m4/regex.m4: Updated
* m4/restrict.m4: Updated
* m4/setenv.m4: Updated
* m4/sha1.m4: Added to the repository
* m4/signed.m4: Updated
* m4/size_max.m4: Updated
* m4/snprintf.m4: Updated
* m4/ssize_t.m4: Updated
* m4/stat-macros.m4: Updated
* m4/stdbool.m4: Updated
* m4/stdint.m4: Updated
* m4/stdint_h_gl.m4: Updated
* m4/stdint_h_gl.m4: Updated
* m4/strcase.m4: Updated
* m4/strchrnul.m4: Updated
* m4/strdup.m4: Updated
* m4/strerror_r.m4: Updated
* m4/strndup.m4: Updated
* m4/strnlen.m4: Updated
* m4/strtok_r.m4: Updated
* m4/sysexits.m4: Updated
* m4/uintmax_t_gl.m4: Updated
* m4/uintmax_t_gl.m4: Updated
* m4/ulonglong_gl.m4: Updated
* m4/ulonglong_gl.m4: Updated
* m4/unistd_h.m4: Added to the repository
* m4/vasnprintf.m4: Updated
* m4/vasprintf.m4: Updated
* m4/vsnprintf.m4: Updated
* m4/wchar_t.m4: Updated
* m4/wint_t.m4: Updated
* m4/xalloc.m4: Updated
* m4/xsize.m4: Updated
* m4/xsize.m4: Updated
* mailbox/alloca.c: Updated
* mailbox/alloca_.h: Updated
* mailbox/argp-ba.c: Updated
* mailbox/argp-eexst.c: Updated
* mailbox/argp-fmtstream.c: Updated
* mailbox/argp-fmtstream.h: Updated
* mailbox/argp-fs-xinl.c: Updated
* mailbox/argp-help.c: Updated
* mailbox/argp-namefrob.h: Updated
* mailbox/argp-parse.c: Updated
* mailbox/argp-pin.c: Updated
* mailbox/argp-pv.c: Updated
* mailbox/argp-pvh.c: Updated
* mailbox/argp-xinl.c: Updated
* mailbox/argp.h: Updated
* mailbox/asnprintf.c: Updated
* mailbox/fnmatch.c: Updated
* mailbox/fnmatch_.h: Updated
* mailbox/fnmatch_loop.c: Updated
* mailbox/getdelim.c: Updated
* mailbox/getdelim.h: Updated
* mailbox/getline.c: Updated
* mailbox/getline.h: Updated
* mailbox/getlogin_r.c: Updated
* mailbox/getlogin_r.h: Updated
* mailbox/getopt.c: Updated
* mailbox/getopt1.c: Updated
* mailbox/getopt_.h: Updated
* mailbox/getopt_int.h: Updated
* mailbox/gettext.h: Updated
* mailbox/glob-libc.h: Updated
* mailbox/glob.c: Updated
* mailbox/glob_.h: Updated
* mailbox/imaxtostr.c: Updated
* mailbox/intprops.h: Updated
* mailbox/inttostr.c: Updated
* mailbox/inttostr.h: Updated
* mailbox/malloc.c: Updated
* mailbox/mbchar.c: Updated
* mailbox/mbchar.h: Updated
* mailbox/mbuiter.h: Updated
* mailbox/md5.c: Updated
* mailbox/md5.h: Updated
* mailbox/memchr.c: Updated
* mailbox/mempcpy.c: Updated
* mailbox/mempcpy.h: Updated
* mailbox/minmax.h: Updated
* mailbox/offtostr.c: Updated
* mailbox/printf-args.c: Updated
* mailbox/printf-args.h: Updated
* mailbox/printf-parse.c: Updated
* mailbox/printf-parse.h: Updated
* mailbox/regcomp.c: Updated
* mailbox/regex.c: Updated
* mailbox/regex.h: Updated
* mailbox/regex_internal.c: Updated
* mailbox/regex_internal.h: Updated
* mailbox/regexec.c: Updated
* mailbox/sha1.c: Added to the repository
* mailbox/sha1.h: Added to the repository
* mailbox/size_max.h: Updated
* mailbox/stat-macros.h: Updated
* mailbox/stdbool_.h: Updated
* mailbox/stdint_.h: Updated
* mailbox/strcase.h: Updated
* mailbox/strcasecmp.c: Updated
* mailbox/strchrnul.c: Updated
* mailbox/strchrnul.h: Updated
* mailbox/strdup.c: Updated
* mailbox/strdup.h: Updated
* mailbox/strncasecmp.c: Updated
* mailbox/strndup.c: Updated
* mailbox/strndup.h: Updated
* mailbox/strnlen.c: Updated
* mailbox/strnlen.h: Updated
* mailbox/strnlen1.c: Updated
* mailbox/strnlen1.h: Updated
* mailbox/strtok_r.c: Updated
* mailbox/strtok_r.h: Updated
* mailbox/sysexit_.h: Updated
* mailbox/umaxtostr.c: Updated
* mailbox/vasnprintf.c: Updated
* mailbox/vasnprintf.h: Updated
* mailbox/vsnprintf.c: Updated
* mailbox/vsnprintf.h: Updated
* mailbox/xsize.h: Updated
End of update
* auth/sql.c: Minor fixes to get rid of the spurious gcc warnings.
* libsieve/actions.c: Likewise
* libsieve/prog.c: Likewise
......
......@@ -13,6 +13,7 @@ strtok_r
md5
glob
inttostr
sha1
:muaux
xalloc
......
......@@ -59,7 +59,6 @@ libmuaux_la_SOURCES += snprintf.h
libmuaux_la_SOURCES += vasprintf.h
libmuaux_la_SOURCES += xalloc-die.c
libmuaux_la_SOURCES += xsize.h
......
......@@ -72,6 +72,9 @@ gl_GLOB
# inttostr
gl_INTTOSTR
# sha1
gl_SHA1
# extensions
dnl gl_USE_SYSTEM_EXTENSIONS must be added quite early to configure.ac.
......@@ -89,6 +92,8 @@ gl_GETOPT
# gettext-h
# intprops
# malloc
AC_FUNC_MALLOC
......@@ -113,6 +118,9 @@ gl_C_RESTRICT
# size_max
gl_SIZE_MAX
# ssize_t
gt_TYPE_SSIZE_T
# stat-macros
gl_STAT_MACROS
......@@ -142,6 +150,9 @@ gl_FUNC_STRNLEN
# sysexits
gl_SYSEXITS
# unistd
gl_HEADER_UNISTD
# vasnprintf
gl_FUNC_VASNPRINTF
......
......@@ -142,6 +142,7 @@ MOSTLYCLEANFILES += glob.h glob.h-t
EXTRA_DIST += inttostr.c
BUILT_SOURCES += $(FNMATCH_H)
EXTRA_DIST += fnmatch_.h fnmatch_loop.c
......@@ -166,6 +167,8 @@ MOSTLYCLEANFILES += getopt.h getopt.h-t
libmailutils_la_SOURCES += gettext.h
EXTRA_DIST += intprops.h
libmailutils_la_SOURCES += mbchar.h
......@@ -179,6 +182,7 @@ libmailutils_la_SOURCES += minmax.h
libmailutils_la_SOURCES += size_max.h
BUILT_SOURCES += $(STDBOOL_H)
EXTRA_DIST += stdbool_.h
......@@ -195,7 +199,91 @@ EXTRA_DIST += stdint_.h
# We need the following in order to create <stdint.h> when the system
# doesn't have one that works with the given compiler.
stdint.h: stdint_.h
sed -e 's/@''HAVE_LONG_64BIT''@/$(HAVE_LONG_64BIT)/g;s/@''HAVE_LONG_LONG_64BIT@/$(HAVE_LONG_LONG_64BIT)/g' < $(srcdir)/stdint_.h > $@-t
sed -e 's/@''HAVE_WCHAR_H''@/$(HAVE_WCHAR_H)/g' \
-e 's/@''HAVE_STDINT_H''@/$(HAVE_STDINT_H)/g' \
-e 's|@''FULL_PATH_STDINT_H''@|$(FULL_PATH_STDINT_H)|g' \
-e 's/@''HAVE_INTTYPES_H''@/$(HAVE_INTTYPES_H)/g' \
-e 's|@''FULL_PATH_INTTYPES_H''@|$(FULL_PATH_INTTYPES_H)|g' \
-e 's/@''HAVE_SYS_INTTYPES_H''@/$(HAVE_SYS_INTTYPES_H)/g' \
-e 's/@''HAVE_SYS_BITYPES_H''@/$(HAVE_SYS_BITYPES_H)/g' \
-e 's/@''HAVE_LONG_64BIT''@/$(HAVE_LONG_64BIT)/g' \
-e 's/@''HAVE_LONG_LONG_64BIT''@/$(HAVE_LONG_LONG_64BIT)/g' \
-e 's/@''HAVE_INT8_T''@/$(HAVE_INT8_T)/g' \
-e 's/@''HAVE_INT16_T''@/$(HAVE_INT16_T)/g' \
-e 's/@''HAVE_INT32_T''@/$(HAVE_INT32_T)/g' \
-e 's/@''HAVE_INT64_T''@/$(HAVE_INT64_T)/g' \
-e 's/@''HAVE_UINT8_T''@/$(HAVE_UINT8_T)/g' \
-e 's/@''HAVE_UINT16_T''@/$(HAVE_UINT16_T)/g' \
-e 's/@''HAVE_UINT32_T''@/$(HAVE_UINT32_T)/g' \
-e 's/@''HAVE_UINT64_T''@/$(HAVE_UINT64_T)/g' \
-e 's/@''HAVE_INT_LEAST8_T''@/$(HAVE_INT_LEAST8_T)/g' \
-e 's/@''HAVE_INT_LEAST16_T''@/$(HAVE_INT_LEAST16_T)/g' \
-e 's/@''HAVE_INT_LEAST32_T''@/$(HAVE_INT_LEAST32_T)/g' \
-e 's/@''HAVE_INT_LEAST64_T''@/$(HAVE_INT_LEAST64_T)/g' \
-e 's/@''HAVE_UINT_LEAST8_T''@/$(HAVE_UINT_LEAST8_T)/g' \
-e 's/@''HAVE_UINT_LEAST16_T''@/$(HAVE_UINT_LEAST16_T)/g' \
-e 's/@''HAVE_UINT_LEAST32_T''@/$(HAVE_UINT_LEAST32_T)/g' \
-e 's/@''HAVE_UINT_LEAST64_T''@/$(HAVE_UINT_LEAST64_T)/g' \
-e 's/@''HAVE_INT_FAST8_T''@/$(HAVE_INT_FAST8_T)/g' \
-e 's/@''HAVE_INT_FAST16_T''@/$(HAVE_INT_FAST16_T)/g' \
-e 's/@''HAVE_INT_FAST32_T''@/$(HAVE_INT_FAST32_T)/g' \
-e 's/@''HAVE_INT_FAST64_T''@/$(HAVE_INT_FAST64_T)/g' \
-e 's/@''HAVE_UINT_FAST8_T''@/$(HAVE_UINT_FAST8_T)/g' \
-e 's/@''HAVE_UINT_FAST16_T''@/$(HAVE_UINT_FAST16_T)/g' \
-e 's/@''HAVE_UINT_FAST32_T''@/$(HAVE_UINT_FAST32_T)/g' \
-e 's/@''HAVE_UINT_FAST64_T''@/$(HAVE_UINT_FAST64_T)/g' \
-e 's/@''HAVE_INTPTR_T''@/$(HAVE_INTPTR_T)/g' \
-e 's/@''HAVE_UINTPTR_T''@/$(HAVE_UINTPTR_T)/g' \
-e 's/@''HAVE_INTMAX_T''@/$(HAVE_INTMAX_T)/g' \
-e 's/@''HAVE_UINTMAX_T''@/$(HAVE_UINTMAX_T)/g' \
-e 's/@''BITSIZEOF_UNSIGNED_INT''@/$(BITSIZEOF_UNSIGNED_INT)/g' \
-e 's/@''BITSIZEOF_LONG''@/$(BITSIZEOF_LONG)/g' \
-e 's/@''BITSIZEOF_UNSIGNED_LONG''@/$(BITSIZEOF_UNSIGNED_LONG)/g' \
-e 's/@''BITSIZEOF_INT8_T''@/$(BITSIZEOF_INT8_T)/g' \
-e 's/@''BITSIZEOF_INT16_T''@/$(BITSIZEOF_INT16_T)/g' \
-e 's/@''BITSIZEOF_INT32_T''@/$(BITSIZEOF_INT32_T)/g' \
-e 's/@''BITSIZEOF_INT64_T''@/$(BITSIZEOF_INT64_T)/g' \
-e 's/@''BITSIZEOF_UINT8_T''@/$(BITSIZEOF_UINT8_T)/g' \
-e 's/@''BITSIZEOF_UINT16_T''@/$(BITSIZEOF_UINT16_T)/g' \
-e 's/@''BITSIZEOF_UINT32_T''@/$(BITSIZEOF_UINT32_T)/g' \
-e 's/@''BITSIZEOF_UINT64_T''@/$(BITSIZEOF_UINT64_T)/g' \
-e 's/@''BITSIZEOF_INT_LEAST8_T''@/$(BITSIZEOF_INT_LEAST8_T)/g' \
-e 's/@''BITSIZEOF_INT_LEAST16_T''@/$(BITSIZEOF_INT_LEAST16_T)/g' \
-e 's/@''BITSIZEOF_INT_LEAST32_T''@/$(BITSIZEOF_INT_LEAST32_T)/g' \
-e 's/@''BITSIZEOF_INT_LEAST64_T''@/$(BITSIZEOF_INT_LEAST64_T)/g' \
-e 's/@''BITSIZEOF_UINT_LEAST8_T''@/$(BITSIZEOF_UINT_LEAST8_T)/g' \
-e 's/@''BITSIZEOF_UINT_LEAST16_T''@/$(BITSIZEOF_UINT_LEAST16_T)/g' \
-e 's/@''BITSIZEOF_UINT_LEAST32_T''@/$(BITSIZEOF_UINT_LEAST32_T)/g' \
-e 's/@''BITSIZEOF_UINT_LEAST64_T''@/$(BITSIZEOF_UINT_LEAST64_T)/g' \
-e 's/@''BITSIZEOF_INT_FAST8_T''@/$(BITSIZEOF_INT_FAST8_T)/g' \
-e 's/@''BITSIZEOF_INT_FAST16_T''@/$(BITSIZEOF_INT_FAST16_T)/g' \
-e 's/@''BITSIZEOF_INT_FAST32_T''@/$(BITSIZEOF_INT_FAST32_T)/g' \
-e 's/@''BITSIZEOF_INT_FAST64_T''@/$(BITSIZEOF_INT_FAST64_T)/g' \
-e 's/@''BITSIZEOF_UINT_FAST8_T''@/$(BITSIZEOF_UINT_FAST8_T)/g' \
-e 's/@''BITSIZEOF_UINT_FAST16_T''@/$(BITSIZEOF_UINT_FAST16_T)/g' \
-e 's/@''BITSIZEOF_UINT_FAST32_T''@/$(BITSIZEOF_UINT_FAST32_T)/g' \
-e 's/@''BITSIZEOF_UINT_FAST64_T''@/$(BITSIZEOF_UINT_FAST64_T)/g' \
-e 's/@''BITSIZEOF_INTPTR_T''@/$(BITSIZEOF_INTPTR_T)/g' \
-e 's/@''BITSIZEOF_UINTPTR_T''@/$(BITSIZEOF_UINTPTR_T)/g' \
-e 's/@''BITSIZEOF_INTMAX_T''@/$(BITSIZEOF_INTMAX_T)/g' \
-e 's/@''BITSIZEOF_UINTMAX_T''@/$(BITSIZEOF_UINTMAX_T)/g' \
-e 's/@''BITSIZEOF_PTRDIFF_T''@/$(BITSIZEOF_PTRDIFF_T)/g' \
-e 's/@''SAME_TYPE_PTRDIFF_T_LONG''@/$(SAME_TYPE_PTRDIFF_T_LONG)/g' \
-e 's/@''BITSIZEOF_SIG_ATOMIC_T''@/$(BITSIZEOF_SIG_ATOMIC_T)/g' \
-e 's/@''HAVE_SIGNED_SIG_ATOMIC_T''@/$(HAVE_SIGNED_SIG_ATOMIC_T)/g' \
-e 's/@''SAME_TYPE_SIG_ATOMIC_T_LONG''@/$(SAME_TYPE_SIG_ATOMIC_T_LONG)/g' \
-e 's/@''SAME_TYPE_SIG_ATOMIC_T_UNSIGNED_LONG''@/$(SAME_TYPE_SIG_ATOMIC_T_UNSIGNED_LONG)/g' \
-e 's/@''BITSIZEOF_SIZE_T''@/$(BITSIZEOF_SIZE_T)/g' \
-e 's/@''SAME_TYPE_SIZE_T_UNSIGNED_LONG''@/$(SAME_TYPE_SIZE_T_UNSIGNED_LONG)/g' \
-e 's/@''BITSIZEOF_WCHAR_T''@/$(BITSIZEOF_WCHAR_T)/g' \
-e 's/@''HAVE_SIGNED_WCHAR_T''@/$(HAVE_SIGNED_WCHAR_T)/g' \
-e 's/@''SAME_TYPE_WCHAR_T_LONG''@/$(SAME_TYPE_WCHAR_T_LONG)/g' \
-e 's/@''SAME_TYPE_WCHAR_T_UNSIGNED_LONG''@/$(SAME_TYPE_WCHAR_T_UNSIGNED_LONG)/g' \
-e 's/@''BITSIZEOF_WINT_T''@/$(BITSIZEOF_WINT_T)/g' \
-e 's/@''HAVE_SIGNED_WINT_T''@/$(HAVE_SIGNED_WINT_T)/g' \
-e 's/@''SAME_TYPE_WINT_T_LONG''@/$(SAME_TYPE_WINT_T_LONG)/g' \
-e 's/@''SAME_TYPE_WINT_T_UNSIGNED_LONG''@/$(SAME_TYPE_WINT_T_UNSIGNED_LONG)/g' \
< $(srcdir)/stdint_.h > $@-t
mv $@-t $@
MOSTLYCLEANFILES += stdint.h stdint.h-t
......@@ -218,10 +306,18 @@ sysexits.h: sysexit_.h
mv sysexits.h-t sysexits.h
MOSTLYCLEANFILES += sysexits.h sysexits.h-t
BUILT_SOURCES += $(UNISTD_H)
# We need the following in order to create an empty placeholder for
# <unistd.h> when the system doesn't have one.
unistd.h:
echo '/* Empty placeholder for $@. */' >$@
MOSTLYCLEANFILES += unistd.h
libmailutils_la_SOURCES += printf-args.h printf-parse.h vasnprintf.h
libmailutils_la_SOURCES += vsnprintf.h
libmailutils_la_SOURCES += xsize.h
EXTRA_DIST += unlocked-io.h getndelim2.c fnmatch.c getdelim.c getdelim.h getdelim.c getopt.c getopt1.c mbchar.c mempcpy.c mempcpy.h mempcpy.c regex.c strcasecmp.c strncasecmp.c getlogin_r.c getlogin_r.c inttostr.c inttostr.h intprops.h imaxtostr.c offtostr.c umaxtostr.c imaxtostr.c offtostr.c umaxtostr.c strchrnul.c strdup.c strdup.h strdup.c strndup.c strndup.h strndup.c strnlen.c strnlen.h strnlen.c strtok_r.c vasnprintf.c printf-args.c printf-parse.c asnprintf.c vsnprintf.c getline.c getline.c getline.h getline.c glob.c glob_.h glob-libc.h glob.c md5.c md5.h md5.c memchr.c stat-macros.h
EXTRA_DIST += inttostr.c inttostr.h intprops.h imaxtostr.c offtostr.c umaxtostr.c imaxtostr.c offtostr.c umaxtostr.c getopt.c getopt1.c regex.c fnmatch.c getdelim.c getdelim.h getdelim.c getline.c getline.c getline.h getline.c md5.c md5.h md5.c getndelim2.c mempcpy.c mempcpy.h mempcpy.c strcasecmp.c strncasecmp.c strchrnul.c strndup.c strndup.h strndup.c strnlen.c strnlen.h strnlen.c strtok_r.c vsnprintf.c unlocked-io.h memchr.c glob.c glob_.h glob-libc.h glob.c mbchar.c stat-macros.h strdup.c strdup.h strdup.c sha1.c sha1.h sha1.c vasnprintf.c printf-args.c printf-parse.c asnprintf.c getlogin_r.c getlogin_r.c
......
/* Memory allocation on the stack.
Copyright (C) 1995, 1999, 2001, 2002, 2003, 2004 Free Software
Copyright (C) 1995, 1999, 2001, 2002, 2003, 2004, 2006 Free Software
Foundation, Inc.
This program is free software; you can redistribute it and/or modify it
......@@ -34,19 +34,21 @@
request, the program just crashes.
*/
#ifdef __GNUC__
#ifndef alloca
# ifdef __GNUC__
# define alloca __builtin_alloca
#elif defined _AIX
# elif defined _AIX
# define alloca __alloca
#elif defined _MSC_VER
# elif defined _MSC_VER
# include <malloc.h>
# define alloca _alloca
#else
# else
# include <stddef.h>
# ifdef __cplusplus
extern "C"
# endif
void *alloca (size_t);
# endif
#endif
#endif /* _GNULIB_ALLOCA_H */
......