+2013-02-06 Paul Eggert <eggert@cs.ucla.edu>
+
+ extensions: port better to MINUX 3, HP-UX, autoheader 2.62
+ Some of these changes are merged in from git Autoconf.
+ * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS):
+ When deciding whether to define _XOPEN_SOURCE, inspect the
+ preprocessor macro __hpux instead of the more-heavyweight
+ operation of requiring AC_CANONICAL_HOST. Define _NETBSD_HOST on
+ MINUX, for MINUX 3. Use USE_SYSTEM_EXTENSIONS, not __EXTENSIONS__,
+ as the key for __EXTENSIONS__.
+
+ unistd: avoid namespace pollution on non-glibc systems
+ * lib/unistd.in.h: #define __need_getopt before including <getopt.h>.
+ This avoids namespace pollution on non-glibc systems, by causing
+ gnulib unistd.h to behave more like glibc unistd.h. I also hope
+ that this fixes a bug on FreeBSD, reported by Mats Erik Andersson in
+ <http://lists.gnu.org/archive/html/bug-gnulib/2013-02/msg00027.html>.
+
+2013-02-04 Paul Eggert <eggert@cs.ucla.edu>
+
+ tmpdir: use secure_getenv
+ * lib/tmpdir.c (__secure_getenv) [!LIBC]:
+ Define to secure_getenv, not getenv.
+ * m4/tmpdir.m4 (gt_TMPDIR): Don't check for __secure_getenv,
+ as that's now secure_getenv's job.
+ * modules/tmpdir (Depends-on): Add secure_getenv.
+
+ tempname: use secure_getenv
+ * lib/tempname.c (__secure_getenv) [!_LIBC]:
+ Define to secure_getenv, not getenv.
+ * modules/tempname (Depends-on):
+ Add secure_getenv.
+
+ secure_getenv: new module
+ * MODULES.html.sh (Extra functions based on ANSI C 89):
+ Add secure_getenv.
+ * doc/glibc-functions/secure_getenv.texi: New file.
+ * doc/gnulib.texi: Include it.
+ * lib/secure_getenv.c, m4/secure_getenv.m4, modules/secure_getenv:
+ New files.
+ * lib/stdlib.in.h (secure_getenv): New decl.
+ * m4/stdlib_h.m4 (gl_STDLIB_H, gl_STDLIB_H_DEFAULTS):
+ * modules/stdlib (stdlib.h):
+ Add secure_getenv checks.
+
+2013-02-03 Paul Eggert <eggert@cs.ucla.edu>
+
+ getcwd: break fdopendir + save_cwd recursive loop (Bug#13516)
+ Reported for OS X 10.8.2 by Assaf Gordon in
+ <http://bugs.gnu.org/13516>.
+ * lib/getcwd.c (HAVE_OPENAT_SUPPORT): Do not define if
+ !HAVE_OPENAT && !HAVE_FDOPENDIR.
+ * m4/getcwd-abort-bug.m4: Reformat to match test-getcwd.c
+ so that they can be kept in sync more easily. Avoid PATH_MAX
+ test on the Hurd. Sync from test-getcwd.c for errno tests after
+ mkdir or chdir failure.
+ * tests/test-getcwd.c (HAVE_OPENAT_SUPPORT): New macro, from
+ lib/getcwd.c.
+ (test_abort_bug): Do not test for the deep directory bug unless we
+ have openat support. Avoid PATH_MAX test on the Hurd.
+
+ regex-tests, regex: fix bug: memset undeclared
+ * tests/test-regex.c: Don't include regex.h twice. Include
+ string.h, to declare memset. Christensen's report also mentioned
+ this issue.
+ * m4/regex.m4 (gl_REGEX): Keep test program more in sync with
+ test-regex.c, to avoid future problems like this. Remove
+ AC_INCLUDES_DEFAULT. Include <string.h>. Don't include <regex.h>
+ twice.
+
+ regex-tests: fix link errors on older Solaris
+ These need to link with @LIBINTL@ to get libintl_gettext.
+ Problem reported by Tom G. Christensen in
+ <http://lists.gnu.org/archive/html/bug-gnulib/2013-02/msg00003.html>.
+ * modules/regex-tests (test_regex_LDADD): New macro.
+
+2013-01-31 Paul Eggert <eggert@cs.ucla.edu>
+
+ regex-tests: new module
+ * modules/regex-tests, tests/test-regex.c: New files.
+
+ regex: fix off-by-one error in configure test
+ * m4/regex.m4 (gl_REGEX): Test should return 21, not 20.
+
+2013-01-31 Eric Blake <eblake@redhat.com>
+
+ regex: avoid infinite configure test
+ * m4/regex.m4 (gl_REGEX): Add an alarm escape hatch.
+
+2013-01-31 Reuben Thomas <rrt@sc3d.org>
+
+ openpty: fix bug where HAVE_OPENPTY wasn't defined
+ See the thread starting at:
+ http://lists.gnu.org/archive/html/bug-gnulib/2013-01/msg00185.html
+ * m4/pty.m4 (gl_FUNC_OPENPTY): Define HAVE_OPENPTY when the
+ openpty function exists, not merely when we intend to replace it.
+
+2013-01-30 Paul Eggert <eggert@cs.ucla.edu>
+
+ sys_time: port to Solaris 2.6
+ There is a circularity problem on Solaris 2.6, where <time.h> includes
+ <sys/time.h> for struct timespec. The include nesting is gnulib
+ <time.h>, system <time.h>, gnulib <sys/time.h>, system
+ <sys/time.h>, gnulib <sys/types.h>, system <sys/types.h>, gnulib
+ <sys/select.h>, gnulib <signal.h>, system <sys/signal.h>, system
+ <sys/siginfo.h>; the last, innermost file needs struct
+ timestruc_t, which is defined in <sys/time.h>, which has not been
+ fully parsed. Problem reported by Tom G. Christensen in
+ <http://lists.gnu.org/archive/html/bug-gnulib/2013-01/msg00113.html>.
+ * lib/sys_select.in.h: Treat Solaris 2.6's problem with
+ <sys/time.h> and <sys/types.h> like OSF/1's similar problem.
+ * lib/sys_time.in.h: Redo to resemble sys_select.in.h, which
+ uses split double-inclusion guards.
+
2013-01-29 Paul Eggert <eggert@cs.ucla.edu>
regex: test for buffer overrun