malloca: Silence a warning from clang's memory sanitizer.
[gnulib.git] / ChangeLog
blob0f0acdce3b1aa99c0e5a5e0faa59c324c3056bcb
1 2017-07-21  Tim Rühsen  <tim.ruehsen@gmx.de>
3         malloca: Silence a warning from clang's memory sanitizer.
4         * lib/malloca.c (NO_SANITIZE_MEMORY): New macro.
5         (freea): Use it.
7 2017-07-18  Bruno Haible  <bruno@clisp.org>
9         host-cpu-c-abi: Fix detection of MIPS ABI.
10         * m4/host-cpu-c-abi.m4 (gl_HOST_CPU_C_ABI): For MIPS, really test the
11         ABI, not the CPU instruction set.
13 2017-07-16  Paul Eggert  <eggert@cs.ucla.edu>
15         explicit_bzero: new module
16         The explicit_bzero function has been added to glibc.
17         This module is intended to supports its use in GNU programs.
18         * doc/glibc-functions/explicit_bzero.texi, lib/explicit_bzero.c:
19         * m4/explicit_bzero.m4, modules/explicit_bzero:
20         New files.
21         * doc/gnulib.texi (Glibc string.h): Link to new doc.
22         * lib/string.in.h (explicit_bzero): Declare.
23         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Add defaults for it.
24         * modules/string (string.h): Substitute its vars.
26 2017-07-16  Bruno Haible  <bruno@clisp.org>
28         threadlib: Support static linking.
29         * m4/threadlib.m4 (gl_THREADLIB_BODY): When static linking is in use,
30         set gl_cv_have_weak to 'no'.
32 2017-07-16  Bruno Haible  <bruno@clisp.org>
34         unicase/locale-language: Fix link dependencies.
35         * modules/unicase/locale-language (Link): New section.
36         * modules/unicase/locale-language-tests (Makefile.am): Link
37         test-locale-language program with $(LIBTHREAD).
39 2017-07-15  John E. Malmberg  <wb8tyw@gmail.com>
41         sys_socket: Add support for OpenVMS.
42         * lib/sys_socket.in.h [__VMS]: Define CMSG_SPACE, CMSG_LEN.
43         * doc/posix-headers/sys_socket.texi: Mention OpenVMS issues.
45 2017-07-15  John E. Malmberg  <wb8tyw@gmail.com>
47         sys_resource: Add support for OpenVMS.
48         * lib/resource.in.h [__VMS]: Define RUSAGE_SELF, RUSAGE_CHILDREN.
49         * doc/posix-headers/sys_resource.texi: Mention OpenVMS issues.
51 2017-07-15  John E. Malmberg  <wb8tyw@gmail.com>
52             Bruno Haible  <bruno@clisp.org>
54         math: Add support for OpenVMS.
55         * lib/math.in.h [__VMS]: Include <fp.h>.
56         * doc/posix-headers/math.texi: Mention OpenVMS issues.
58 2017-07-15  Bruno Haible  <bruno@clisp.org>
60         getdtablesize: Add minimal support for OpenVMS.
61         Reported by John E. Malmberg <wb8tyw@qsl.net>.
62         * modules/getdtablesize (Description): Fix.
63         * lib/getdtablesize.c: Fix comment.
64         * m4/getdtablesize.m4 (gl_FUNC_GETDTABLESIZE): Don't replace the
65         getdtablesize() function, even though the test fails.
66         * doc/glibc-functions/getdtablesize.texi: Reference SUSv2. Describe
67         limitation on OpenVMS.
69 2017-07-13  Bruno Haible  <bruno@clisp.org>
71         Revisit cross-compilation guesses.
72         * m4/wctype_h.m4 (gl_WCTYPE_H): Add comment.
74 2017-07-13  Bruno Haible  <bruno@clisp.org>
76         Improve cross-compilation guesses for native Windows.
77         * m4/btowc.m4 (gl_FUNC_BTOWC): Add cross-compilation guess for native
78         Windows.
79         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Likewise.
80         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Likewise.
81         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Likewise.
82         * m4/cbrtf.m4 (gl_FUNC_CBRTF_WORKS): Likewise.
83         * m4/cbrtl.m4 (gl_FUNC_CBRTL, gl_FUNC_CBRTL_WORKS): Likewise.
84         * m4/ceil.m4 (gl_FUNC_CEIL): Likewise.
85         * m4/ceilf.m4 (gl_FUNC_CEILF): Likewise.
86         * m4/ceill.m4 (gl_FUNC_CEILL): Likewise.
87         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Likewise.
88         * m4/dup.m4 (gl_FUNC_DUP): Likewise.
89         * m4/expl.m4 (gl_FUNC_EXPL): Likewise.
90         * m4/exp2.m4 (gl_FUNC_EXP2_WORKS): Likewise.
91         * m4/exp2l.m4 (gl_FUNC_EXP2L): Likewise.
92         * m4/expm1.m4 (gl_FUNC_EXPM1): Likewise.
93         * m4/expm1f.m4 (gl_FUNC_EXPM1F_WORKS): Likewise.
94         * m4/exponentl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Likewise.
95         * m4/fabsl.m4 (gl_FUNC_FABSL_WORKS): Likewise.
96         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Likewise.
97         * m4/fcntl-o.m4 (gl_FCNTL_O_FLAGS): Likewise.
98         * m4/float_h.m4 (gl_FLOAT_H): Likewise.
99         * m4/floor.m4 (gl_FUNC_FLOOR): Likewise.
100         * m4/floorf.m4 (gl_FUNC_FLOORF): Likewise.
101         * m4/fma.m4 (gl_FUNC_FMA_WORKS): Likewise.
102         * m4/fmaf.m4 (gl_FUNC_FMAF_WORKS): Likewise.
103         * m4/fmal.m4 (gl_FUNC_FMAL_WORKS): Likewise.
104         * m4/fmod.m4 (gl_FUNC_FMOD): Likewise.
105         * m4/fmodf.m4 (gl_FUNC_FMODF): Likewise.
106         * m4/fmodl.m4 (gl_FUNC_FMODL): Likewise.
107         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Likewise.
108         * m4/frexpf.m4 (gl_FUNC_FREXPF_WORKS): Likewise.
109         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
110         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY_CLOBBER): Likewise.
111         * m4/hypot.m4 (gl_FUNC_HYPOT): Likewise.
112         * m4/hypotf.m4 (gl_FUNC_HYPOTF, gl_FUNC_HYPOTF_WORKS): Likewise.
113         * m4/hypotl.m4 (gl_FUNC_HYPOTL, gl_FUNC_HYPOTL_WORKS): Likewise.
114         * m4/ilogb.m4 (gl_FUNC_ILOGB_WORKS): Likewise.
115         * m4/ilogbf.m4 (gl_FUNC_ILOGBF_WORKS): Likewise.
116         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
117         * m4/isinf.m4 (gl_ISINFL_WORKS): Likewise.
118         * m4/isnanf.m4 (gl_ISNANF_WORKS): Likewise.
119         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
120         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): Likewise.
121         * m4/log.m4 (gl_FUNC_LOG, gl_FUNC_LOG_WORKS): Likewise.
122         * m4/logf.m4 (gl_FUNC_LOGF, gl_FUNC_LOGF_WORKS): Likewise.
123         * m4/logl.m4 (gl_FUNC_LOGL_WORKS): Likewise.
124         * m4/log10.m4 (gl_FUNC_LOG10, gl_FUNC_LOG10_WORKS): Likewise.
125         * m4/log10f.m4 (gl_FUNC_LOG10F, gl_FUNC_LOG10F_WORKS): Likewise.
126         * m4/log10l.m4 (gl_FUNC_LOG10L_WORKS): Likewise.
127         * m4/log1p.m4 (gl_FUNC_LOG1P): Likewise.
128         * m4/log1pf.m4 (gl_FUNC_LOG1PF, gl_FUNC_LOG1PF_WORKS): Likewise.
129         * m4/log1pl.m4 (gl_FUNC_LOG1PL): Likewise.
130         * m4/log2.m4 (gl_FUNC_LOG2, gl_FUNC_LOG2_WORKS): Likewise.
131         * m4/log2f.m4 (gl_FUNC_LOG2F, gl_FUNC_LOG2F_WORKS): Likewise.
132         * m4/log2l.m4 (gl_FUNC_LOG2L_WORKS): Likewise.
133         * m4/logb.m4 (gl_FUNC_LOGB_WORKS): Likewise.
134         * m4/logbf.m4 (gl_FUNC_LOGBF_WORKS): Likewise.
135         * m4/logbl.m4 (gl_FUNC_LOGBL_WORKS): Likewise.
136         * m4/lstat.m4 (gl_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): Likewise.
137         * m4/mbrtowc.m4 (gl_MBRTOWC_EMPTY_INPUT, gl_MBRTOWC_C_LOCALE): Likewise.
138         * m4/mkdir.m4 (gl_FUNC_MKDIR): Likewise.
139         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Likewise.
140         * m4/mktime.m4 (gl_FUNC_MKTIME_WORKS): Likewise.
141         * m4/modf.m4 (gl_FUNC_MODF): Likewise.
142         * m4/modff.m4 (gl_FUNC_MODFF): Likewise.
143         * m4/modfl.m4 (gl_FUNC_MODFL): Likewise.
144         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
145         * m4/perror.m4 (gl_FUNC_PERROR): Likewise.
146         * m4/popen.m4 (gl_FUNC_POPEN): Likewise.
147         * m4/posix_spawn.m4 (gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSE,
148         gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDDUP2,
149         gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN): Likewise.
150         * m4/ptsname_r.m4 (gl_PREREQ_PTSNAME_R): Likewise.
151         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
152         * m4/regex.m4 (gl_REGEX): Likewise.
153         * m4/remainder.m4 (gl_FUNC_REMAINDER): Likewise.
154         * m4/remainderf.m4 (gl_FUNC_REMAINDERF,
155         gl_FUNC_REMAINDERF_WORKS): Likewise.
156         * m4/remainderl.m4 (gl_FUNC_REMAINDERL,
157         gl_FUNC_REMAINDERL_WORKS): Likewise.
158         * m4/rename.m4 (gl_FUNC_RENAME): Likewise.
159         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Likewise.
160         * m4/rmdir.m4 (gl_FUNC_RMDIR): Likewise.
161         * m4/round.m4 (gl_FUNC_ROUND): Likewise.
162         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
163         * m4/roundl.m4 (gl_FUNC_ROUNDL): Likewise.
164         * m4/signbit.m4 (gl_SIGNBIT): Likewise.
165         * m4/sleep.m4 (gl_FUNC_SLEEP): Likewise.
166         * m4/sqrtl.m4 (gl_FUNC_SQRTL_WORKS): Likewise.
167         * m4/stdint.m4 (gl_STDINT_H): Likewise.
168         * m4/strerror.m4 (gl_FUNC_STRERROR_0): Likewise.
169         * m4/strncat.m4 (gl_FUNC_STRNCAT): Likewise.
170         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
171         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Likewise.
172         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
173         * m4/trunc.m4 (gl_FUNC_TRUNC): Likewise.
174         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
175         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
176         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Likewise.
177         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Likewise.
178         * m4/ungetc.m4 (gl_FUNC_UNGETC_WORKS): Likewise.
179         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Likewise.
180         * m4/unlink.m4 (gl_FUNC_UNLINK): Likewise.
181         * m4/usleep.m4 (gl_FUNC_USLEEP): Likewise.
182         * m4/utimes.m4 (gl_FUNC_UTIMES): Likewise.
183         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise.
184         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_TERMINATION, gl_WCSRTOMBS_NULL):
185         Likewise.
186         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
187         * m4/chown.m4 (AC_FUNC_CHOWN): Add cross-compilation guess for native
188         Windows. Enable also on Autoconf 2.70.
189         * m4/printf.m4 (gl_PRINTF_SIZES_C99, gl_PRINTF_LONG_DOUBLE,
190         gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE,
191         gl_PRINTF_DIRECTIVE_A, gl_PRINTF_DIRECTIVE_F, gl_PRINTF_DIRECTIVE_N,
192         gl_PRINTF_DIRECTIVE_LS, gl_PRINTF_FLAG_LEFTADJUST, gl_PRINTF_FLAG_ZERO,
193         gl_SNPRINTF_TRUNCATION_C99, gl_SNPRINTF_RETVAL_C99,
194         gl_SNPRINTF_DIRECTIVE_N, gl_SNPRINTF_SIZE1): Add cross-compilation guess
195         for native Windows.
196         (gl_PRINTF_POSITIONS, gl_PRINTF_FLAG_GROUPING,
197         gl_VSNPRINTF_ZEROSIZE_C99): Add comment.
199 2017-07-13  Bruno Haible  <bruno@clisp.org>
201         Improve cross-compilation guesses for native Windows.
202         * m4/memchr.m4 (gl_FUNC_MEMCHR): Add cross-compilation guess for native
203         Windows.
204         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE): Don't use internals of
205         memchr.m4.
206         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Likewise.
208 2017-07-13  Bruno Haible  <bruno@clisp.org>
210         Improve cross-compilation guesses for native Windows.
211         * m4/fflush.m4 (gl_FUNC_FFLUSH_STDIN): Add cross-compilation guess for
212         native Windows.
213         (gl_FUNC_FFLUSH): Update accordingly.
214         * m4/fclose.m4 (gl_FUNC_FCLOSE): Likewise.
215         * m4/fseeko.m4 (gl_FUNC_FFLUSH_STDIN): Likewise.
217 2017-07-11  Bruno Haible  <bruno@clisp.org>
219         More systematic m4 quoting and indentation.
220         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Quote systematically.
221         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Likewise.
222         * m4/d-type.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Likewise.
223         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
224         * m4/host-os.m4 (gl_HOST_OS): Likewise.
225         * m4/jm-winsz1.m4 (gl_HEADER_TIOCGWINSZ_IN_TERMIOS_H,
226         gl_WINSIZE_IN_PTEM): Likewise.
227         * m4/mbrtowc.m4 (AC_FUNC_MBRTOWC): Likewise.
228         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): Likewise.
229         * m4/pselect.m4 (gl_FUNC_PSELECT): Likewise.
230         * m4/fchownat.m4 (gl_FUNC_FCHOWNAT_DEREF_BUG): Quote systematically.
231         Correct indentation.
232         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): Likewise.
233         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
234         * m4/jm-winsz2.m4 (gl_HEADER_TIOCGWINSZ_NEEDS_SYS_IOCTL): Likewise.
235         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Likewise.
236         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Likewise.
237         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Likewise.
239 2017-07-10  Bruno Haible  <bruno@clisp.org>
241         round, roundf: Avoid compiler warning in configure test.
242         * m4/round.m4 (gl_FUNC_ROUND): Use 'return' instead of exit().
243         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
245 2017-07-10  Bruno Haible  <bruno@clisp.org>
247         getlogin tests: Avoid #ifdefs when sharing code between modules.
248         * modules/getlogin_r-tests (Files): Add tests/test-getlogin.h.
249         * modules/getlogin-tests (Files): Likewise. Remove
250         tests/test-getlogin_r.c.
251         * tests/test-getlogin.h: Extracted from tests/test-getlogin_r.c.
252         * tests/test-getlogin.c: Extracted from tests/test-getlogin_r.c.
253         * tests/test-getlogin_r.c: Include test-getlogin.h. Omit code that tests
254         getlogin().
256 2017-07-10  Paul Eggert  <eggert@cs.ucla.edu>
258         getlogin: don’t assume one name per uid
259         Problem reported by Wolfgang F. Muthmann (Bug#27640).
260         * modules/getlogin-tests (Files): Add tests/test-getlogin_r.c.
261         (ttyname): Remove test.
262         * modules/getlogin_r-tests (ttyname): Remove test.
263         * tests/test-getlogin.c: Replace this near-clone of test-getlogin_r.c
264         with ‘#define TEST_LOGIN’ followed by ‘#include "test-getlogin_r.c"’.
265         * tests/test-getlogin_r.c: If TEST_GETLOGIN is defined, test
266         getlogin rather than getlogin_r.  This avoids code duplication.
267         (main): Use isatty and fstat rather than ttyname and stat.
268         Use getpwnam instead of getpwuid, to be portable to test platforms
269         that have multiple login names for the same uid.
271 2017-07-10  Tim Rühsen  <tim.ruehsen@gmx.de>
272             Bruno Haible  <bruno@clisp.org>
274         glob: Fix more memory leaks.
275         * lib/glob.c (glob): Use 'goto out' in order to free dirname before
276         returning.
277         Reported by Tim Rühsen.
279 2017-07-10  Bruno Haible  <bruno@clisp.org>
281         Make sure $host and $host_os are defined when used.
282         * m4/argz.m4 (gl_FUNC_ARGZ): Require AC_CANONICAL_HOST.
283         * m4/closedir.m4 (gl_FUNC_CLOSEDIR): Likewise.
284         * m4/csharpexec.m4 (gt_CSHARPEXEC): Likewise.
285         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
286         * m4/expl.m4 (gl_FUNC_EXPL): Likewise.
287         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Likewise.
288         * m4/lstat.m4 (gl_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): Likewise.
289         * m4/opendir.m4 (gl_FUNC_OPENDIR): Likewise.
290         * m4/poll.m4 (gl_FUNC_POLL): Likewise.
291         * m4/pselect.m4 (gl_FUNC_PSELECT): Likewise.
292         * m4/ptsname.m4 (gl_FUNC_PTSNAME): Likewise.
293         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): Likewise.
294         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Likewise.
295         * m4/ceill.m4 (gl_FUNC_CEILL): Require AC_CANONICAL_HOST outside the
296         m4_ifdef block.
298 2017-07-09  Bruno Haible  <bruno@clisp.org>
300         *printf: Fix cross-compilation guess for Solaris.
301         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_F): Fix copy-and-paste mistake from
302         2010-12-21.
304 2017-07-07  Paul Eggert  <eggert@cs.ucla.edu>
305             Bruno Haible  <bruno@clisp.org>
307         vasnprintf: port to macOS 10.13
308         Problem reported by comex in:
309         http://lists.gnu.org/archive/html/bug-gnulib/2017-07/msg00056.html
310         * lib/vasnprintf.c (VASNPRINTF): Don’t use %n on macOS.
312 2017-07-06  Bruno Haible  <bruno@clisp.org>
314         imaxdiv tests: Fix logic.
315         * tests/test-imaxdiv.c (main): Use == instead of =.
316         Reported by Coverity.
318 2017-07-06  Bruno Haible  <bruno@clisp.org>
320         uninorm/filter: Fix use-after-free bug.
321         * lib/uninorm/uninorm-filter.c (uninorm_filter_write): Maintain
322         sortbuf == filter->sortbuf invariant.
323         Reported by Coverity.
325 2017-07-06  Bruno Haible  <bruno@clisp.org>
327         glob: Fix more memory leaks.
328         * lib/glob.c (glob): Free dirname before returning.
329         Reported by Coverity and Tim Rühsen.
331 2017-07-06  Paul Eggert  <eggert@cs.ucla.edu>
333         parse-datetime: fix uninit var bug
334         Reported by Bruno Haible in:
335         http://lists.gnu.org/archive/html/bug-gnulib/2017-07/msg00038.html
336         * lib/parse-datetime.y (parse_datetime2): Do not use
337         uninitialized.
339 2017-07-05  Bruno Haible  <bruno@clisp.org>
341         doc: Update for MSVC 14.
342         * doc/posix-headers/*.texi: Add info about MSVC 14.
343         * doc/posix-functions/*.texi: Likewise.
344         * doc/pastposix-functions/*.texi: Likewise.
345         * doc/glibc-headers/*.texi: Likewise.
346         * doc/glibc-functions/*.texi: Likewise.
348 2017-07-05  Bruno Haible  <bruno@clisp.org>
350         sched: Fix build failure on native Windows (regression from 2017-06-19).
351         * m4/sched_h.m4 (gl_SCHED_H): Set HAVE_STRUCT_SCHED_PARAM always.
353 2017-07-03  John E. Malmberg  <wb8tyw@gmail.com>
355         stdioext: Port to OpenVMS.
356         * lib/stdio-impl.h: OpenVMS uses struct _iobuf for FILE information.
357         * lib/fpending.c (fpending): Remove non-working VMS specific code.
358         * lib/fbufmode.c (fbufmode): Fix _IOLBF test to use fp_ macro.
359         * lib/fflush.c (clear_ungetc_buffer): Add OpenVMS to comments.
360         * lib/fpurge.c (fpurge): Likewise.
361         * lib/freadable.c (freadable): Likewise.
362         * lib/freadahead.c (freadahead): Likewise.
363         * lib/freading.c (freading): Likewise.
364         * lib/freadptr.c (freadptr): Likewise.
365         * lib/freadseek.c (freadseek): Likewise.
366         * lib/fseeko.c (fseeko): Likewise.
367         * lib/fseterr.c (fseterr): Likewise.
368         * lib/fwritable.c (fwriteable): Likewise.
369         * lib/fwriting.c (fwriting): Likewise.
371 2017-07-01  Benno Schulenberg  <bensberg@telfort.nl>
373         glob: Declare variables at the very start of their scope.
374         * lib/glob.c (convert_dirent, convert_dirent64): Give each fragment
375         its separate scope, so the functions will compile on Haiku.
377 2017-07-01  Bruno Haible  <bruno@clisp.org>
379         logbl: Work around a glibc bug on PowerPC64LE.
380         * m4/logbl.m4 (gl_FUNC_LOGBL_WORKS): Test also negative subnormal
381         numbers.
382         * doc/posix-functions/logbl.texi: Update.
384 2017-06-29  Bruno Haible  <bruno@clisp.org>
386         stat, fstat: Compile stat-w32.c only on platforms that need it.
387         Suggested by Paul Eggert.
388         * modules/stat (configure.ac): Request stat-w32.o only on native
389         Windows.
390         * modules/fstat (configure.ac): Likewise.
392 2017-06-25  Bruno Haible  <bruno@clisp.org>
394         stat: Improve last change.
395         * lib/stat-w32.c: Revert last change. Use generic idiom instead.
397 2017-06-25  Paul Eggert  <eggert@cs.ucla.edu>
399         stat: port to xlc 12.01
400         * lib/stat-w32.c: Always include <sys/types.h>.  Otherwise, xlc
401         12.01 complains "Compilation unit is empty."
403 2017-06-24  Paul Eggert  <eggert@cs.ucla.edu>
405         xalloc-oversized: port to icc
406         * lib/xalloc-oversized.h (xalloc_oversized): Do not use
407         __builtin_mul_overflow if ICC is defined, as this results in
408         "undefined reference to `__builtin_mul_overflow'" with icc 17.0.2
409         20170213.
411 2017-06-19  Bruno Haible  <bruno@clisp.org>
413         classpath: Avoid including config.h twice, as it produces warnings.
414         Reported by John E. Malmberg <wb8tyw@gmail.com>.
415         * lib/classpath.h: Conditionalize the include of config.h.
417 2017-06-19  Bruno Haible  <bruno@clisp.org>
418             John E. Malmberg  <wb8tyw@gmail.com>  (tiny change)
420         sched: Fix compilation failure on OpenVMS.
421         * m4/sched_h.m4 (gl_SCHED_H): Require AC_CANONICAL_HOST. On OpenVMS,
422         test whether <pthread.h> exists and defines struct sched_param.
423         * lib/sched.in.h: On OpenVMS, include <pthread.h>.
425 2017-06-17  Paul Eggert  <eggert@cs.ucla.edu>
427         diffseq: port to GCC 7 with --enable-gcc-warnings
428         * lib/diffseq.h (diag): Use an if, not an ifdef, for most of the
429         heuristic check.  This way, GCC 7 with --enable-gcc-warnings does
430         not complain about big_snake being defined but not used.
432 2017-06-15  Bruno Haible  <bruno@clisp.org>
434         gettext-h: Update theoretical condition for use of variable size arrays.
435         Reported by Paul Eggert.
436         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Extend comment
437         to include the theoretical condition for availability of variable size
438         arrays, if we could trust the value of __STDC_VERSION__.
440 2017-06-12  Bruno Haible  <bruno@clisp.org>
442         Relicense some modules under LGPLv2+.
443         Daiki Ueno's approval is in
444         https://lists.gnu.org/archive/html/bug-gnulib/2017-06/msg00058.html.
445         * modules/uniwidth/base (License): Change to LGPLv2+.
446         * modules/uniwidth/width (License): Likewise.
448 2017-06-11  Bruno Haible  <bruno@clisp.org>
450         localename: Fix test failure on DragonFly BSD.
451         * lib/localename.c (gl_locale_name_thread_unsafe): Treat DragonFly BSD
452         like FreeBSD.
454 2017-06-11  Bruno Haible  <bruno@clisp.org>
456         float: Fix 'float' and 'isinf' failures on DragonFly BSD.
457         * m4/float_h.m4 (gl_FLOAT_H): Treat DragonFly BSD like FreeBSD.
458         * lib/float.in.h: Likewise.
459         * m4/fmal.m4, m4/frexpl.m4, m4/logbl.m4: Update accordingly.
461 2017-06-11  Bruno Haible  <bruno@clisp.org>
463         gnulib-tool: Clean up after autotools.
464         * gnulib-tool (func_create_testdir, func_create_megatestdir): Remove
465         useless directory left over by the Autotools.
467 2017-06-11  Paul Eggert  <eggert@cs.ucla.edu>
469         getopt-posix: port to glibc 2.25.90
470         Problem reported by Daniel P. Berrange in:
471         http://lists.gnu.org/archive/html/bug-gnulib/2017-06/msg00003.html
472         * lib/getopt-pfx-core.h (_GETOPT_CORE_H):
473         * lib/getopt-pfx-ext.h (_GETOPT_EXT_H):
474         #undef if __GETOPT_PREFIX is defined.
476 2017-06-11  Bruno Haible  <bruno@clisp.org>
478         strtod-obsolete: Fix license.
479         * modules/strtod-obsolete (License): Change to LGPL.
481 2017-06-10  Jim Meyering  <meyering@fb.com>
483         maint: update to work with GCC7's -Werror=implicit-fallthrough=
484         * lib/savewd.c (FALLTHROUGH): Define.
485         (savewd_save, savewd_restore): Use this, rather than a comment,
486         whenever one switch case falls through into the next.
488 2017-06-08  Bruno Haible  <bruno@clisp.org>
490         host-cpu-c-abi: Support for aarch64 ILP32 ABI.
491         * m4/host-cpu-c-abi.m4 (gl_HOST_CPU_C_ABI): Recognize the aarch64 ILP32
492         ABI. Set HOST_CPU_C_ABI=arm64-ilp32 and define __arm64_ilp32__ in this
493         case.
495 2017-06-08  Paul Eggert  <eggert@cs.ucla.edu>
497         doc: remove robots, add prereqs
498         * doc/build-automation.texi, doc/gnulib.texi: Mention prereqs for
499         builds.  Simon's robot site does not seem to be up, so remove
500         mentions of it for now.
502 2017-06-08  Bruno Haible  <bruno@clisp.org>
504         gnulib-tool: Fix bug in func_symlink_if_changed, from 2006-11-13.
505         * gnulib-tool (func_symlink_target): New function, extracted from
506         func_symlink.
507         (func_symlink, func_symlink_if_changed): Use it.
509 2017-06-08  Bruno Haible  <bruno@clisp.org>
511         gnulib-tool: Fix bug in func_ln_s, from 2016-01-15.
512         * gnulib-tool (func_ln_s): Determine cp_src correctly.
514 2017-06-07  Bruno Haible  <bruno@clisp.org>
516         canonicalize-lgpl: Avoid conflict with gnulib 'getcwd' module on VMS.
517         Reported by John E. Malmberg <wb8tyw@gmail.com> in
518         <https://lists.gnu.org/archive/html/bug-gnulib/2017-06/msg00029.html>.
519         * lib/canonicalize-lgpl.c (__getcwd): On VMS, when using gnulib's getcwd
520         override, pass 2 arguments to getcwd, not 3.
522 2017-06-04  Paul Eggert  <eggert@cs.ucla.edu>
524         same-inode: port better to VMS 8.2 and later
525         Problem reported by John E. Malmberg in:
526         http://lists.gnu.org/archive/html/bug-gnulib/2017-06/msg00005.html
527         * lib/same-inode.h (SAME_INODE) [__VMS && 80200000 <= __CRTL_VER]:
528         Use the usual POSIX definition.
529         * m4/sys_types_h.m4 (gl_SYS_TYPES_H): Define _USE_STD_STAT.
531 2017-06-01  Paul Eggert  <eggert@cs.ucla.edu>
533         error: fix POSIX violation for va_end
534         Problem reported by Bruno Haible in:
535         http://lists.gnu.org/archive/html/bug-gnulib/2017-06/msg00001.html
536         * lib/error.c (error_tail): Do not call va_end here.
537         (error, error_at_line): Call it here instead.
539 2017-05-28  Bruno Haible  <bruno@clisp.org>
541         c-strtod: Make it usable in C++ mode.
542         * lib/c-strtod.h: Add 'extern "C"' marker for C++.
544 2017-05-25  Jim Meyering  <meyering@fb.com>
546         quotearg: fix compilation failure due to FALLTHROUGH misuse
547         * lib/quotearg.c (quotearg_buffer_restyled): Revert one FALLTHROUGH
548         macro back to /* fall through */ comment.  The macro can apply only
549         to a following case statement.  Reported by Assaf Gordon.
551 2017-05-25  Paul Eggert  <eggert@cs.ucla.edu>
553         intprops: port to recent icc
554         Port to icc (ICC) 17.0.4 20170411, which defines __GNUC__ to be 5
555         but does not support __builtin_add_overflow etc.
556         * lib/intprops.h (_GL_HAS_BUILTIN_OVERFLOW) [__ICC]:
557         Define to 0.
559 2017-05-23  Karl Berry  <karl@freefriends.org>
561         * config/srclist.txt (iconv.m4): sync broken, comment out
562         until (hopefully) the next gettext release.
564 2017-05-22  Bjarni Ingi Gislason  <bjarniig@rhi.hi.is>
566         Remove repeated words in comments.
568 2017-05-22  Bernhard Voelker  <mail@bernhard-voelker.de>
570         fallthrough: reinstate a FALLTHROUGH instance in quotearg
571         quotearg.c: Reinstate this instance which is significant
572         when the if branch is not taken.
574 2017-05-21  Bruno Haible  <bruno@clisp.org>
576         gnulib-tool: Add options to create hard links.
577         * gnulib-tool (func_usage): Document options --hardlink,
578         --local-hardlink, --more-hardlinks.
579         (func_symlink): Renamed from func_ln.
580         (func_symlink_if_changed): Renamed from func_ln_if_changed.
581         (func_hardlink): New function.
582         (copymode, lcopymode): New variables.
583         (symbolic, lsymbolic): Remove variables.
584         (Options): Implement options --hardlink, --local-hardlink,
585         --more-hardlinks.
586         (func_should_link): Renamed from func_should_symlink. Set copyaction.
587         (func_add_file, func_update_file): Update invocation of
588         func_should_link. Invoke func_hardlink when appropriate.
589         (func_import): Update comments.
590         (func_create_testdir): Update invocation of func_should_link. Invoke
591         func_hardlink when appropriate.
592         Finally, invoke 'git update-index --refresh' to mitigate the effects of
593         the hard links on git.
595 2017-05-20  Bruno Haible  <bruno@clisp.org>
597         argp: Simplify bit manipulation.
598         * lib/argp-parse.c (parser_parse_opt): Use &, |, ~ instead of shifts
599         on a signed integer type.
601 2017-05-20  Bruno Haible  <bruno@clisp.org>
603         Avoid wrong configure results with gcc -fsanitize=address.
604         This completes the work done on 2016-02-06 on this topic.
605         * m4/memmem.m4 (gl_FUNC_MEMMEM): Free allocated memory before returning.
606         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Likewise.
607         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
608         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
609         * m4/fopen.m4 (gl_FUNC_FOPEN): Close allocated FILE streams before
610         returning.
611         * m4/fflush.m4 (gl_FUNC_FFLUSH_STDIN): Likewise.
612         * m4/fpurge.m4 (gl_FUNC_FPURGE): Likewise.
613         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
614         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Likewise.
615         * m4/signbit.m4 (gl_FLOATTYPE_SIGN_LOCATION): Likewise.
616         * m4/ungetc.m4 (gl_FUNC_UNGETC_WORKS): Likewise.
617         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Close allocated FILE streams and
618         free allocated memory before returning.
619         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
620         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Close allocated DIR
621         objects before returning.
622         * m4/iconv.m4 (AM_ICONV_LINK): Close allocated iconv_t handles before
623         returning.
625 2017-05-20  Bruno Haible  <bruno@clisp.org>
627         gnulib-tool: Don't create hard links between gnulib and its testdirs.
628         * gnulib-tool (func_create_testdir): Don't invoke 'ln'.
630 2017-05-20  Bruno Haible  <bruno@clisp.org>
632         argp, tsearch tests: Fix file list.
633         * modules/argp-tests (Files): Add tests/macros.h.
634         * modules/tsearch-tests (Files): Likewise.
636 2017-05-20  Bruno Haible  <bruno@clisp.org>
638         getopt-posix tests: Remove redundant include.
639         * tests/test-getopt.h: Don't include "macros.h". It's already included
640         by tests/test-getopt-main.h.
642 2017-05-19  Jim Meyering  <meyering@fb.com>
644         dfa: two small simplifications
645         * lib/dfa.c (build_state): Avoid repeating longer expressions.
647 2017-05-18  Jim Meyering  <meyering@fb.com>
649         fallthrough: update for GCC 7/8
650         * lib/quotearg.c (FALLTHROUGH): New macro.
651         Use it whenever one switch case falls through into the next,
652         replacing "/* Fall through */" comments.  This exposed one
653         instance of an unwarranted "fall through" comment: unwarranted
654         because it preceded a "goto" label not a case statement.
655         * lib/freopen-safer.c (freopen_safer): Likewise.
656         * lib/fts.c (leaf_optimization_applies): Likewise.
657         * lib/unistr/u8-uctomb-aux.c (u8_uctomb_aux): Likewise.
658         * tests/test-getopt_long.h (getopt_long_loop): Likewise.
659         * tests/test-tsearch.c (mangle_tree): Likewise.  Also include
660         tests/macros.h for the definition.
661         * tests/test-argp.c (group1_parser): Likewise.
662         * tests/test-getopt.h (getopt_loop): Likewise.
664 2017-05-19  Paul Eggert  <eggert@cs.ucla.edu>
666         argp: fix shift bug
667         * lib/argp-parse.c (parser_parse_opt): Rework to avoid undefined
668         behavior on shift overflow, caught by gcc -fsanitize=undefined.
670         argp: fix pointer-subtraction bug
671         * lib/argp-help.c (hol_append): Don’t subtract pointers to
672         different arrays, as this can run afoul of -fcheck-pointer-bounds.
673         See the thread containing Bruno Haible’s report in:
674         http://lists.gnu.org/archive/html/bug-gnulib/2017-05/msg00171.html
676 2017-05-19  Bruno Haible  <bruno@clisp.org>
678         printf-posix tests: Avoid test failure with "gcc --coverage".
679         Reported by Tim Rühsen <tim.ruehsen@gmx.de>.
680         * tests/test-printf-posix2.c (main): Test a width of 10000000 rather
681         than 5000000.
682         * tests/test-fprintf-posix2.c (main): Likewise.
684 2017-05-19  Paul Eggert  <eggert@cs.ucla.edu>
686         closeout: don’t close stderr when sanitizing
687         * NEWS: Document this.
688         * lib/closeout.c (__has_feature): New macro, if not already defined.
689         (SANITIZE_ADDRESS): New constant.
690         (close_stdout): Don’t close stderr if sanitizing addresses.
692 2017-05-19  Bruno Haible  <bruno@clisp.org>
694         get-rusage-data tests: Avoid failure on Linux/glibc.
695         * tests/test-get-rusage-data.c (main): Don't expect a strict increase
696         on glibc systems.
698 2017-05-18  Bruno Haible  <bruno@clisp.org>
700         localename: Include necessary header files on Cygwin.
701         * lib/localename.c [__CYGWIN__]: Include <langinfo.h>, since this is
702         where NL_LOCALE_NAME is defined.
704 2017-05-18  Bruno Haible  <bruno@clisp.org>
706         gettext: Update macros from gettext git.
707         * m4/intldir.m4: Require Autoconf >= 2.60.
708         * m4/progtest.m4: Fix typos in copyright notice.
710 2017-05-18  Bruno Haible  <bruno@clisp.org>
712         copy-file tests: Fix link error (regression from 2017-05-01).
713         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
714         * modules/copy-file-tests (Makefile.am): Link test-copy-file with
715         $(LIB_CLOCK_GETTIME).
717 2017-05-18  Bruno Haible  <bruno@clisp.org>
719         unicase/special-casing: Fix incompatibility with gperf-3.0.4
720         (regression from 2017-02-13).
721         * lib/unicase/special-casing.in.h: Renamed from
722         lib/unicase/special-casing.h.
723         * modules/unicase/special-casing (Files): Add
724         lib/unicase/special-casing.in.h. Remove lib/unicase/special-casing.h.
725         (Makefile.am): Add rule for generating unicase/special-casing.h.
726         Update BUILT_SOURCES and MOSTLYCLEANFILES accordingly.
727         * lib/unicase/special-casing.c: Include "unicase/special-casing.h",
728         not "special-casing.h".
729         * lib/unicase/u*.c: Likewise.
731 2017-05-17  Bruno Haible  <bruno@clisp.org>
733         README: Don't ask people to read a TeXinfo file.
734         Reported by Tim Rühsen <tim.ruehsen@gmx.de>.
735         * README: Tell people how to read the HTML formatted manual.
737 2017-05-16  Tim Rühsen  <tim.ruehsen@gmx.de>
739         parse-datetime: Fix memleak
740         * lib/parse-datetime.y (parse_datetime2): Cleanup on
741         localtime_rz() failure.
743 2017-05-16  Bruno Haible  <bruno@clisp.org>
745         javacomp: Fix handle leak.
746         Found by Coverity.
747         * lib/javacomp.c (get_classfile_version): Close fd before returning.
749 2017-05-16  Bruno Haible  <bruno@clisp.org>
751         relocate: Make it easier to reclaim allocated memory.
752         * lib/relocatable.h (relocate2): New declaration/macro.
753         * lib/relocatable.c (relocate2): New function.
754         * doc/relocatable-maint.texi (Supporting Relocation): Mention the
755         relocate2 function.
756         * lib/localcharset.c (relocate2): Define fallback.
757         (get_charset_aliases): Invoke relocate2 instead of relocate. Free the
758         allocated memory.
759         * lib/javaversion.c (relocate2): Define fallback.
760         (javaexec_version): Invoke relocate2 instead of relocate. Free the
761         allocated memory.
763 2017-05-16  Bruno Haible  <bruno@clisp.org>
765         relocate: Simplify EMX specific code.
766         * lib/relocatable.c (relocate): Assume pathname is non-NULL. Use
767         ISSLASH macro consistently. Avoid dangerous string concatenation idiom.
769 2017-05-16  Bruno Haible  <bruno@clisp.org>
771         sigpipe tests: Fix file list.
772         * modules/sigpipe-tests (Files): Add tests/macros.h.
774 2017-05-16  Paul Eggert  <eggert@cs.ucla.edu>
776         manywarnings: update for GCC 7
777         * build-aux/gcc-warning.spec:
778         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC):
779         Add GCC 7 warnings, notably -Wimplicit-fallthrough=5, which
780         requires a non-comment fallthrough attribute.  This is a bit
781         cleaner than the comment versions.
782         * lib/strftime.c, lib/dfa.c, lib/fnmatch.c, lib/mbrtowc.c:
783         * lib/vasnprintf.c, tests/macros.h (FALLTHROUGH): New macro.
784         Use it whenever one switch case falls through into the next.
785         * lib/fnmatch_loop.c, tests/test-mbrtowc.c, tests/test-sigpipe.c:
786         Use FALLTHROUGH macro.
788 2017-05-15  Bruno Haible  <bruno@clisp.org>
790         gnulib-tool: Fix generated code when libtests contains module 'alloca'.
791         * gnulib-tool (func_emit_tests_Makefile_am): For libtests.a, use
792         @ALLOCA@, not @LTALLOCA@.
794 2017-05-15  Bruno Haible  <bruno@clisp.org>
796         sys_select: Avoid "was expanded before it was required" warning.
797         * modules/sys_select (configure.ac): Require, not invoke,
798         gl_HEADER_SYS_SELECT.
800 2017-05-14  Paul Eggert  <eggert@cs.ucla.edu>
802         gnulib-tool: improve GNU Make debugging
803         * gnulib-tool (func_emit_lib_Makefile_am): Omit unnecessary echo.
804         Report autoconf diagnostics when it fails, in the output makefile.
806 2017-05-14  Bruno Haible  <bruno@clisp.org>
808         stat-time tests: Improve comment.
809         * tests/test-stat-time.c: Add hyperlink, from Paul Eggert.
811 2017-05-14  Bruno Haible  <bruno@clisp.org>
813         same-inode: Adapt for windows-stat-inodes.
814         * lib/same-inode.h: Include <sys/types.h>.
815         (SAME_INODE) [_GL_WINDOWS_STAT_INODES]: Define specifically.
816         * modules/same-inode (Depends-on): Add sys_types.
818 2017-05-14  Bruno Haible  <bruno@clisp.org>
820         windows-stat-inodes: New module.
821         * m4/windows-stat-inodes.m4: New file.
822         * m4/sys_types_h.m4 (gl_SYS_TYPES_H): Set WINDOWS_STAT_INODES.
823         * modules/sys_types (Makefile.am): Substitute WINDOWS_STAT_INODES.
824         * lib/sys_types.in.h [WINDOWS_STAT_INODES]: Override dev_t and ino_t.
825         (_GL_WINDOWS_STAT_INODES): New macro.
826         * lib/stat-w32.c: Set _WIN32_WINNT. Include <string.h>, verify.h.
827         (GetFileInformationByHandleExFunc): New variable.
828         (initialize): Initialize it.
829         (_gl_fstat_by_handle) [_GL_WINDOWS_STAT_INODES]: Initialize st_dev and
830         st_ino appropriately.
831         * lib/stat.c (rpl_stat): Use the directory entry based approach only as
832         a fallback, because it does not provide st_dev and st_ino values.
833         * modules/fstat (Depends-on): Add 'verify'.
834         * modules/windows-stat-inodes: New file.
835         * doc/windows-stat-inodes.texi: New file.
836         * doc/gnulib.texi: Include it.
837         * doc/posix-headers/sys_stat.texi: Mention the new module.
839 2017-05-14  Bruno Haible  <bruno@clisp.org>
841         stat-time tests: Workaround for native Windows.
842         * tests/test-stat-time.c: Include <stdio.h>, <time.h>.
843         (filename_stamp1, filename_testfile, filename_stamp2, filename_stamp3):
844         New variables.
845         (initialize_filenames): New function.
846         (main): Invoke it.
847         (cleanup, prepare_test): Update.
849 2017-05-14  Bruno Haible  <bruno@clisp.org>
851         stat-time: Adapt for windows-stat-timespec.
852         * lib/stat-time.h (get_stat_birthtime) [_GL_WINDOWS_STAT_TIMESPEC]: Use
853         entire st_ctim field.
855 2017-05-13  Jim Meyering  <meyering@fb.com>
857         maint.mk: update regex to reflect 2013 addition of "assume" to verify.h
858         * top/maint.mk (sc_prohibit_verify_without_use): Don't reject a source
859         file that uses the assume macro, claiming that verify.h is unused.
861 2017-05-13  Bruno Haible  <bruno@clisp.org>
863         Use symbolic values for _WIN32_WINNT.
864         * lib/ftruncate.c (_WIN32_WINNT): Use symbolic value _WIN32_WINNT_WIN2K.
865         * lib/sethostname.c (_WIN32_WINNT): Likewise.
867 2017-05-13  Bruno Haible  <bruno@clisp.org>
869         year2038: New module.
870         * m4/year2038.m4: New file.
871         * modules/year2038: New file.
872         * doc/year2038.texi: New file.
873         * doc/gnulib.texi: Include it.
875 2017-05-13  Bruno Haible  <bruno@clisp.org>
877         largefile: Simplify.
878         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Remove unused definition
879         of _GL_WINDOWS_64_BIT_ST_SIZE.
881 2017-05-13  Bruno Haible  <bruno@clisp.org>
883         largefile: Improve and document.
884         * m4/largefile.m4 (gl_LARGEFILE): Set WINDOWS_64_BIT_ST_SIZE to 0 if
885         the mingw headers already define 'stat' appropriately.
886         * modules/largefile (Description): Clarify.
887         * doc/largefile.texi: New file.
888         * doc/gnulib.texi: Include it.
889         * doc/posix-headers/sys_types.texi: Update.
891 2017-05-13  Bruno Haible  <bruno@clisp.org>
893         truncate: New module.
894         * lib/unistd.in.h (truncate): New declaration.
895         * lib/truncate.c: New file.
896         * m4/truncate.m4: New file.
897         * m4/unistd_h.m4 (gl_UNISTD_H): Test whether 'truncate' is declared.
898         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_TRUNCATE, HAVE_TRUNCATE,
899         REPLACE_TRUNCATE.
900         * modules/unistd (Makefile.am): Substitute GNULIB_TRUNCATE,
901         HAVE_TRUNCATE, REPLACE_TRUNCATE.
902         * modules/truncate: New file.
903         * tests/test-unistd-c++.cc (truncate): Test signature.
904         * doc/posix-functions/truncate.texi: Mention the new module.
906         * tests/test-truncate.c: New file.
907         * modules/truncate-tests: New file.
909 2017-05-13  Bruno Haible  <bruno@clisp.org>
911         windows-stat-timespec: New module.
912         * modules/windows-stat-timespec: New file.
913         * m4/windows-stat-timespec.m4: New file.
914         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Set WINDOWS_STAT_TIMESPEC.
915         * modules/sys_stat (Makefile.am): Substitute WINDOWS_STAT_TIMESPEC.
916         * lib/sys_stat.in.h (struct stat) [WINDOWS_STAT_TIMESPEC]: Declare with
917         fields st_atim, st_mtim, st_ctim.
918         (st_atime, st_mtime, st_ctime): Define as macros.
919         (_GL_WINDOWS_STAT_TIMESPEC): New macro.
920         * lib/stat-w32.h (_gl_convert_FILETIME_to_timespec)
921         [_GL_WINDOWS_STAT_TIMESPEC]: New declaration.
922         * lib/stat-w32.c (_gl_convert_FILETIME_to_timespec)
923         [_GL_WINDOWS_STAT_TIMESPEC]: New function.
924         (_gl_convert_FILETIME_to_POSIX): Adjust coding style.
925         (_gl_fstat_by_handle): If _GL_WINDOWS_STAT_TIMESPEC, convert the
926         FILETIME to 'struct timespec', not 'time_t'.
927         * lib/stat.c (rpl_stat): If _GL_WINDOWS_STAT_TIMESPEC, convert the
928         FILETIME to 'struct timespec', not 'time_t'.
929         * lib/stat-time.h (STAT_TIMESPEC): Define also if
930         _GL_WINDOWS_STAT_TIMESPEC.
931         * doc/windows-stat-timespec.texi: New file.
932         * doc/gnulib.texi: Include it.
934 2017-05-13  Bruno Haible  <bruno@clisp.org>
936         windows-stat-override: New module.
937         * lib/sys_stat.in.h (stat) [GNULIB_OVERRIDES_STRUCT_STAT]: Provide own
938         definition. Define GNULIB_defined_struct_stat.
939         (fstat, fstatat, lstat, stat) [GNULIB_OVERRIDES_STRUCT_STAT]: Provoke
940         link error if this symbol is used and the corresponding module is not
941         in use.
942         (_stat64, _stat32i64, _stati64, _stat32, _stat64i32): Don't redefine if
943         GNULIB_OVERRIDES_STRUCT_STAT.
944         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize
945         GNULIB_OVERRIDES_STRUCT_STAT.
946         * modules/sys_stat (Makefile.am): Substitute
947         GNULIB_OVERRIDES_STRUCT_STAT.
948         * modules/windows-stat-override: New file.
950 2017-05-13  Bruno Haible  <bruno@clisp.org>
952         fstat: Fix module dependency conditions.
953         * modules/fstat (Depends-on): Fix typo.
955 2017-05-13  Bruno Haible  <bruno@clisp.org>
957         stat, fstat: Complete removal of old native Windows code.
958         * lib/stat.c: Remove old macrology for WINDOWS_NATIVE.
959         * lib/fstat.c: Likewise.
960         * lib/stat-w32.c: Likewise.
962 2017-05-13  Bruno Haible  <bruno@clisp.org>
964         stat: Complete removal of REPLACE_FUNC_STAT_DIR code.
965         * lib/stat.c: Remove all REPLACE_FUNC_STAT_DIR code.
967 2017-05-11  Paul Eggert  <eggert@cs.ucla.edu>
969         getopt-posix: port to mingw
970         * lib/getopt.c (flockfile, funlockfile): Define on mingw.
971         Problem reported by Daniel P. Berrage in:
972         http://lists.gnu.org/archive/html/bug-gnulib/2017-05/msg00086.html
974 2017-05-11  Bruno Haible  <bruno@clisp.org>
976         gettimeofday: Increase precision on mingw.
977         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Require AC_CANONICAL_HOST.
978         Set REPLACE_GETTIMEOFDAY to 1 on mingw.
979         * lib/gettimeofday.c (gettimeofday): On native Windows, use the
980         GetSystemTimePreciseAsFileTime based implementation always.
981         * doc/posix-functions/gettimeofday.texi: Mention precision problem on
982         mingw.
984 2017-05-11  Bruno Haible  <bruno@clisp.org>
986         poll: Fix confusion between SOCKETs and FDs on native Windows.
987         Fix proposed by Daniel P. Berrange <berrange@redhat.com>.
988         * lib/poll.c [WINDOWS_NATIVE]: Undefine select.
990 2017-05-11  Bruno Haible  <bruno@clisp.org>
992         doc: Clarify doc about socket functions on native Windows.
993         This reworks doc that was added on 2008-09-29.
994         * doc/posix-functions/select.texi: Fix copy-and-paste mistake and use
995         clearer wording.
996         * doc/posix-functions/accept.texi: Use clearer wording.
997         * doc/posix-functions/bind.texi: Likewise.
998         * doc/posix-functions/connect.texi: Likewise.
999         * doc/posix-functions/getpeername.texi: Likewise.
1000         * doc/posix-functions/getsockname.texi: Likewise.
1001         * doc/posix-functions/getsockopt.texi: Likewise.
1002         * doc/posix-functions/ioctl.texi: Likewise.
1003         * doc/posix-functions/listen.texi: Likewise.
1004         * doc/posix-functions/recv.texi: Likewise.
1005         * doc/posix-functions/recvfrom.texi: Likewise.
1006         * doc/posix-functions/send.texi: Likewise.
1007         * doc/posix-functions/sendto.texi: Likewise.
1008         * doc/posix-functions/setsockopt.texi: Likewise.
1009         * doc/posix-functions/shutdown.texi: Likewise.
1010         * doc/posix-functions/socket.texi: Likewise.
1012 2017-05-10  Bruno Haible  <bruno@clisp.org>
1014         poll: Fix link error on native Windows.
1015         * lib/poll.c [WINDOWS_NATIVE]: Undefine recv.
1017 2017-05-10  Bruno Haible  <bruno@clisp.org>
1019         time: Fix missing initialization of HAVE_TIMEZONE_T.
1020         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_TIMEZONE_T
1021         here...
1022         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_DEFAULTS): ... not here.
1023         * m4/time_rz.m4 (gl_TIME_RZ): Require gl_HEADER_TIME_H_DEFAULTS, not
1024         gl_HEADER_SYS_TIME_H_DEFAULTS.
1025         * modules/time_rz (Depends-on): Add 'time'. Remove useless quoting.
1026         (configure.ac): Remove useless quoting.
1028 2017-05-10  Bruno Haible  <bruno@clisp.org>
1030         Implement a way to opt out from MSVC support, part 2.
1031         * modules/msvc-inval (Include): Document recommended idiom.
1032         * modules/msvc-nothrow (Include): Likewise.
1034         Implement a way to opt out from MSVC support.
1035         This is useful for Emacs.
1036         * modules/msvc-nothrow (configure.ac): Invoke gl_MODULE_INDICATOR.
1037         * lib/accept4.c: Include <io.h> as an alternative to msvc-nothrow.h.
1038         * lib/error.c: Likewise.
1039         * lib/fcntl.c: Likewise.
1040         * lib/flock.c: Likewise.
1041         * lib/fstat.c: Likewise.
1042         * lib/fsync.c: Likewise.
1043         * lib/ioctl.c: Likewise.
1044         * lib/isapipe.c: Likewise.
1045         * lib/lseek.c: Likewise.
1046         * lib/nonblocking.c: Likewise.
1047         * lib/poll.c: Likewise.
1048         * lib/select.c: Likewise.
1049         * lib/sockets.h: Likewise.
1050         * lib/sockets.c: Likewise.
1051         * lib/stdio-read.c: Likewise.
1052         * lib/stdio-write.c: Likewise.
1053         * lib/utimens.c: Likewise.
1054         * lib/w32sock.h: Likewise.
1055         * lib/w32spawn.h: Likewise.
1056         * tests/test-cloexec.c: Likewise.
1057         * tests/test-dup-safer.c: Likewise.
1058         * tests/test-dup2.c: Likewise.
1059         * tests/test-dup3.c: Likewise.
1060         * tests/test-fcntl.c: Likewise.
1061         * tests/test-pipe.c: Likewise.
1062         * tests/test-pipe2.c: Likewise.
1063         * lib/ftruncate.c: Likewise.
1064         (chsize_nothrow): Renamed from chsize.
1065         * lib/msvc-nothrow.c: Don't include msvc-inval.h if
1066         HAVE_MSVC_INVALID_PARAMETER_HANDLER is not defined.
1067         * lib/close.c: Likewise.
1068         * lib/dup.c: Likewise.
1069         * lib/fclose.c: Likewise.
1070         * lib/raise.c: Likewise.
1071         * tests/test-fgetc.c: Likewise.
1072         * tests/test-fputc.c: Likewise.
1073         * tests/test-fread.c: Likewise.
1074         * tests/test-fwrite.c: Likewise.
1075         * lib/getdtablesize.c: Likewise.
1076         (_setmaxstdio_nothrow): Renamed from _setmaxstdio.
1077         * lib/isatty.c: Don't include msvc-inval.h if
1078         HAVE_MSVC_INVALID_PARAMETER_HANDLER is not defined.
1079         Include <io.h> as an alternative to msvc-nothrow.h.
1080         * lib/read.c: Likewise.
1081         * lib/write.c: Likewise.
1082         * lib/dup2.c: Likewise.
1083         (dup2_nothrow): New function.
1084         (ms_windows_dup2): Use it.
1085         * m4/close.m4 (gl_FUNC_CLOSE): Invoke gl_MSVC_INVAL and test
1086         HAVE_MSVC_INVALID_PARAMETER_HANDLER only if gl_MSVC_INVAL is defined.
1087         * m4/dup.m4 (gl_FUNC_DUP): Likewise.
1088         * m4/fdopen.m4 (gl_FUNC_FDOPEN): Likewise.
1089         * m4/raise.m4 (gl_FUNC_RAISE): Likewise.
1090         * m4/read.m4 (gl_FUNC_READ): Likewise.
1091         * m4/write.m4 (gl_FUNC_WRITE): Likewise.
1092         * doc/windows-without-msvc.texi: New file.
1093         * doc/gnulib.texi (Native Windows Support without MSVC Support): New
1094         section.
1096 2017-05-10  Bruno Haible  <bruno@clisp.org>
1098         wait-process: Adjust native Windows support.
1099         * lib/wait-process.c: Use the usual condition for recognizing a native
1100         Windows platform.
1102 2017-05-10  Bruno Haible  <bruno@clisp.org>
1104         doc: New chapter "Native Windows Support".
1105         * doc/gnulib.texi (Native Windows Support): New chapter.
1106         * doc/windows-libtool.texi: Small wording changes.
1107         * doc/windows-sockets.texi: Small wording and formatting changes.
1109 2017-05-10  Bruno Haible  <bruno@clisp.org>
1111         doc: Move section "Library version handling".
1112         * doc/gnulib.texi: Move section "Library version handling"
1113         from chapter "Miscellaneous Notes" to chapter "Particular Modules".
1115 2017-05-10  Bruno Haible  <bruno@clisp.org>
1117         doc: Move section "Running self-tests under valgrind".
1118         * doc/gnulib.texi: Move section "Running self-tests under valgrind"
1119         from chapter "Particular Modules" to chapter "Miscellaneous Notes".
1121 2017-05-10  Bruno Haible  <bruno@clisp.org>
1123         doc: New chapter "Build Infrastructure Modules".
1124         * doc/gnulib.texi (Build Infrastructure Modules): New chapter.
1126 2017-05-10  Bruno Haible  <bruno@clisp.org>
1128         Prepare for reordering sections in the manual.
1129         * doc/gnulib.texi: Move several sections to separate files. Include
1130         these files.
1131         * doc/out-of-memory.texi: New file, extracted from doc/gnulib.texi.
1132         * doc/obsolete.texi: Likewise.
1133         * doc/extra-tests.texi: Likewise.
1134         * doc/transversal.texi: Likewise.
1135         * doc/namespace.texi: Likewise.
1136         * doc/check-version.texi: Likewise.
1137         * doc/windows-sockets.texi: Likewise.
1138         * doc/windows-libtool.texi: Likewise.
1139         * doc/licenses-texi.texi: Likewise.
1140         * doc/build-automation.texi: Likewise.
1141         * doc/c-locale.texi: Likewise.
1143 2017-05-10  Bruno Haible  <bruno@clisp.org>
1145         Fix instructions how to update manual on www.gnu.org.
1146         * doc/README: Add -I option, so that texi2dvi finds texinfo.tex.
1148 2017-05-09  Bruno Haible  <bruno@clisp.org>
1150         tzset: Expand comment about TZ problem on native Windows.
1151         * lib/tzset.c (tzset): Elaborate comment, based on explanations by
1152         Paul Eggert.
1153         * lib/ctime.c (rpl_ctime): Likewise.
1154         * lib/localtime.c (rpl_localtime): Likewise.
1155         * lib/mktime.c (mktime): Likewise.
1156         * lib/strftime-fixes.c (rpl_strftime): Likewise.
1157         * lib/wcsftime.c (rpl_wcsftime): Likewise.
1159 2017-05-08  Paul Eggert  <eggert@cs.ucla.edu>
1161         intprops: don’t depend on ‘verify’
1162         Problem reported by Ævar Arnfjörð Bjarmason in:
1163         http://lists.gnu.org/archive/html/bug-gnulib/2017-05/msg00054.html
1164         * lib/intprops.h: Do not include verify.h, and move compile-time
1165         checks from here ...
1166         * tests/test-intprops.c (main): ... to here, if they’re not here
1167         already.  Check widths of other standard integer types.
1168         * modules/intprops (Depends-on): Remove ‘verify’.
1170 2017-05-07  Bruno Haible  <bruno@clisp.org>
1172         utimens: On native Windows, support 100ns resolution also if fd < 0.
1173         * lib/utime.in.h: Include <time.h>.
1174         (_gl_utimens_windows): New declaration.
1175         * lib/utime.c (_gl_utimens_windows): New function, based on utime.
1176         (utime): Invoke it.
1177         * lib/utimens.c (fdutimens): On native Windows, call _gl_utimens_windows
1178         instead of utime.
1179         * modules/utime (Depends-on): Add 'time'.
1181 2017-05-07  Bruno Haible  <bruno@clisp.org>
1183         utimens: Improve error code on native Windows.
1184         * lib/utimens.c (fdutimens): If fd was not opened with O_RDWR, fail with
1185         error code EACCES, not EINVAL.
1187 2017-05-07  Bruno Haible  <bruno@clisp.org>
1189         utime: Handle more Windows error codes.
1190         * lib/utime.c (utime): Handle ERROR_BAD_NETPATH.
1191         Based on explanations by Billy O'Neal.
1193 2017-05-05  Bruno Haible  <bruno@clisp.org>
1195         crypto/rijndael: Fix "strict-aliasing rules" warnings, alignment issues.
1196         * lib/rijndael-api-fst.c (rijndaelBlockEncrypt): Declare 'block' as a
1197         union.
1198         (rijndaelPadEncrypt, rijndaelBlockDecrypt): Likewise.
1199         (rijndaelPadDecrypt): Likewise. Use local variable 'iv' to cache the
1200         value of cipher->IV.
1202 2017-05-05  Bruno Haible  <bruno@clisp.org>
1204         wctype-h-c++-tests: Update.
1205         * tests/test-wctype-h-c++.cc: Reorder to match lib/wchar.in.h.
1207 2017-05-05  Bruno Haible  <bruno@clisp.org>
1209         wchar-c++-tests: Update.
1210         * tests/test-wchar-c++.cc (wcsftime): Declare, missing since 2017-04-30.
1212 2017-05-05  Bruno Haible  <bruno@clisp.org>
1214         utime-h-c++-tests: New module.
1215         * tests/test-utime-h-c++.cc: New file.
1216         (utime): Declare, missing since 2017-04-30.
1217         * modules/utime-h-c++-tests: New file.
1219 2017-05-05  Bruno Haible  <bruno@clisp.org>
1221         unistd-c++-tests: Update.
1222         * tests/test-unistd-c++.cc (isatty): Declare, missing since 2012-01-03.
1223         (read): Declare, missing since 2011-04-15.
1224         (sethostname): Declare, missing since 2011-12-03.
1226 2017-05-05  Bruno Haible  <bruno@clisp.org>
1228         time-c++-tests: Update.
1229         * tests/test-time-c++.cc (tzset): Declare, missing since 2017-05-01.
1230         (localtime, gmtime): Declare, missing since 2017-04-30.
1231         (ctime): Declare, missing since 2017-04-30.
1232         (strftime): Declare, missing since 2017-04-30.
1233         (tzalloc, tzfree, localtime_rz, mktime_z): Declare, missing since
1234         2015-07-24.
1236 2017-05-05  Bruno Haible  <bruno@clisp.org>
1238         sys_resource-c++-tests: New module.
1239         * tests/test-sys_resource-c++.cc: New file.
1240         (getrusage): Declare, missing since 2012-04-13.
1241         * modules/sys_resource-c++-tests: New file.
1243 2017-05-05  Bruno Haible  <bruno@clisp.org>
1245         strings-c++-tests: New module.
1246         * tests/test-strings-c++.cc: New file.
1247         (ffs): Declare, missing since 2011-07-12.
1248         * modules/strings-c++-tests: New file.
1250 2017-05-05  Bruno Haible  <bruno@clisp.org>
1252         string-c++-tests: Update.
1253         * tests/test-string-c++.cc (ffsl): Declare, missing since 2011-07-15.
1254         (ffsll): Declare, missing since 2011-07-15.
1256 2017-05-05  Bruno Haible  <bruno@clisp.org>
1258         stdlib-c++-tests: Update.
1259         * tests/test-stdlib-c++.cc (posix_openpt): Declare, missing since
1260         2011-10-18.
1261         (ptsname_r): Declare, missing since 2011-11-07.
1262         (qsort_r): Declare, missing since 2014-08-29.
1263         (random, srandom, initstate, setstate): Declare, missing since
1264         2012-01-14.
1265         (secure_getenv): Declare, missing since 2013-02-05.
1267 2017-05-05  Bruno Haible  <bruno@clisp.org>
1269         stdio-c++-tests: Update.
1270         * tests/test-stdio-c++.cc (pclose): Declare, missing since 2011-09-18.
1272 2017-05-05  Bruno Haible  <bruno@clisp.org>
1274         signal-h-c++-tests: Update.
1275         * tests/test-signal-h-c++.cc (raise): Remove redundant declaration.
1277 2017-05-05  Bruno Haible  <bruno@clisp.org>
1279         math-c++-tests: Update.
1280         * tests/test-math-c++.cc (fmaf): Declare, missing since 2011-10-17.
1281         (fma): Declare, missing since 2011-10-17.
1282         (fmal): Declare, missing since 2011-10-17.
1284 2017-05-05  Bruno Haible  <bruno@clisp.org>
1286         locale-c++-tests: Update.
1287         * tests/test-locale-c++.cc (localeconv): Declare, missing since
1288         2012-03-25.
1290 2017-05-05  Bruno Haible  <bruno@clisp.org>
1292         inttypes-c++-tests: New module.
1293         * tests/test-inttypes-c++.cc: New file.
1294         (strtoimax): Declare, missing since 2012-01-05.
1295         (strtoumax): Declare, missing since 2012-01-05.
1296         * modules/inttypes-c++-tests: New file.
1298 2017-05-05  Bruno Haible  <bruno@clisp.org>
1300         dirent-c++-tests: Update.
1301         * tests/test-dirent-c++.cc (readdir): Declare, missing since 2011-09-13.
1302         (rewinddir): Declare, missing since 2011-09-13.
1303         (dirfd): Declare, missing since 2010-03-08.
1305 2017-05-04  Bruno Haible  <bruno@clisp.org>
1307         argp: Fix mistake in 2017-04-23 commit.
1308         * lib/argp-help.c (__argp_failure): If GNULIB_STRERROR_R_POSIX is set,
1309         assume that strerror_r returns 'int', not 'char *'.
1311 2017-05-04  Reuben Thomas  <rrt@sc3d.org>
1313         argp: Fix typo.
1314         * lib/argp-help.c (argp_doc): Fix spelling mistake in comment.
1316 2017-05-02  Paul Eggert  <eggert@cs.ucla.edu>
1318         utimens: port to Emacs + MS-Windows
1319         Skip the new MS-Windows-specific code if Emacs.
1320         * lib/utimens.c [EMACS_CONFIGUATION]:
1321         Avoid new MS-Windows-specific code.
1322         (USE_SETFILETIME): New macro.
1323         (fdutimens): Use it.
1325 2017-05-01  Paul Eggert  <eggert@cs.ucla.edu>
1327         tzset: update doc for TZ problems on MS-Windows
1328         * doc/posix-functions/ctime.texi,  doc/posix-functions/daylight.texi:
1329         * doc/posix-functions/localtime.texi, doc/posix-functions/mktime.texi:
1330         * doc/posix-functions/strftime.texi, doc/posix-functions/timezone.texi:
1331         * doc/posix-functions/tzname.texi, doc/posix-functions/tzset.texi:
1332         * doc/posix-functions/wcsftime.texi:
1333         Mention some issues with TZ under MS-Windows.
1335 2017-05-01  Bruno Haible  <bruno@clisp.org>
1337         copy-file: Fix build error on mingw.
1338         * modules/copy-file (Depends-on): Add 'close'.
1340 2017-05-01  Bruno Haible  <bruno@clisp.org>
1342         tzset: Work around TZ problem on native Windows.
1343         * m4/tzset.m4 (gl_FUNC_TZSET): Require AC_CANONICAL_HOST. On native
1344         Windows, set REPLACE_TZSET to 1.
1345         * lib/tzset.c (tzset): On native Windows, fix TZ if necessary, and
1346         invoke '_tzset' instead of 'tzset'.
1347         * doc/posix-functions/tzset.texi: Mention the native Windows workaround.
1349         * modules/time_rz (Depends-on): Add tzset.
1350         * lib/time_rz.c (tzset): Remove fallback definition.
1351         * m4/time_rz.m4 (gl_TIME_RZ): Don't test for tzset.
1353 2017-05-01  Bruno Haible  <bruno@clisp.org>
1355         mktime: Fix dependencies.
1356         * modules/mktime (Depends-on): Add 'time'.
1358 2017-05-01  Bruno Haible  <bruno@clisp.org>
1360         New module 'localtime-buffer', split off from module 'gettimeofday'.
1361         * lib/localtime-buffer.h: New file.
1362         * lib/localtime-buffer.c: New file, extracted from lib/gettimeofday.c.
1363         * lib/time.in.h (tzset): New declaration.
1364         (localtime, gmtime): Don't test GNULIB_GETTIMEOFDAY.
1365         * lib/tzset.c: New file, extracted from lib/gettimeofday.c.
1366         * lib/gettimeofday.c: Include localtime-buffer.h. Remove code that was
1367         moved to lib/localtime-buffer.c or lib/tzset.c.
1368         * m4/localtime-buffer.m4: New file.
1369         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize GNULIB_TZSET,
1370         HAVE_TZSET, REPLACE_TZSET.
1371         * m4/tzset.m4 (gl_FUNC_TZSET): Move code from m4/gettimeofday.m4 to
1372         here, with modifications. Set HAVE_TZSET, REPLACE_TZSET. Invoke
1373         gl_LOCALTIME_BUFFER_NEEDED.
1374         (gl_FUNC_TZSET_CLOBBER): Don't require gl_HEADER_SYS_TIME_H; not needed
1375         since 2007-01-18.
1376         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Remove code that deals with
1377         tzset.
1378         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Require gl_LOCALTIME_BUFFER_DEFAULTS.
1379         Invoke gl_LOCALTIME_BUFFER_NEEDED instead of
1380         gl_GETTIMEOFDAY_REPLACE_LOCALTIME.
1381         (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Remove macro.
1382         * modules/localtime-buffer: New file.
1383         * modules/time (Depends-on): Remove 'gettimeofday'.
1384         (Makefile.am): Substitute GNULIB_TZSET, HAVE_TZSET,
1385         REPLACE_TZSET. Don't substitute GNULIB_GETTIMEOFDAY.
1386         * modules/tzset (Description): Enable hyperlink to POSIX spec.
1387         (Files): Add lib/tzset.c.
1388         (Depends-on): Remove gettimeofday. Add localtime-buffer, time.
1389         (configure.ac): Arrange to conditionally compile lib/tzset.c. Invoke
1390         gl_TIME_MODULE_INDICATOR.
1391         * modules/gettimeofday (Depends-on): Add localtime-buffer.
1393 2017-05-01  Bruno Haible  <bruno@clisp.org>
1395         copy-file: Preserve sub-second time stamps.
1396         * lib/copy-file.c: Include stat-time.h, utimens.h instead of <utime.h>.
1397         (qcopy_file_preserving): Use 'struct timespec' and utimens() to
1398         transport the time stamps from the original file to the destination
1399         file.
1400         * m4/copy-file.m4 (gl_COPY_FILE): Don't test for utime, utimes.
1401         * modules/copy-file (Depends-on): Add stat-time, utimns instead of
1402         utime-h.
1404 2017-05-01  Bruno Haible  <bruno@clisp.org>
1406         wctype-t: Fix problems if <wchar.h> gets included after <wctype.h>.
1407         * lib/wctype.in.h: Include not only <ctype.h> but also <wchar.h>. Do so
1408         also on MSVC.
1409         Reported by Eli Zaretskii <eliz@gnu.org>.
1411 2017-05-01  Bruno Haible  <bruno@clisp.org>
1413         wchar: Fix compilation error with the original mingw.org mingw.
1414         * lib/wchar.in.h (rpl_wint_t): If <crtdefs.h> does not exist, include
1415         <stddef.h> instead.
1416         * m4/wint_t.m4 (gl_TYPE_WINT_T_PREREQ): New macro, extracted from
1417         gl_WCTYPE_H.
1418         * m4/wctype_h.m4 (gl_WCTYPE_H): Don't set HAVE_CRTDEFS_H here; require
1419         gl_TYPE_WINT_T_PREREQ instead.
1420         * m4/wchar_h.m4 (gl_WCHAR_H): Require gl_TYPE_WINT_T_PREREQ.
1421         * modules/wchar (Makefile.am): Substitute HAVE_CRTDEFS_H.
1422         Reported by Eli Zaretskii <eliz@gnu.org>.
1424 2017-04-30  Bruno Haible  <bruno@clisp.org>
1426         utimecmp: Add support for native Windows.
1427         * lib/utimecmp.c (SYSCALL_RESOLUTION): Set to 100 on native Windows.
1429 2017-04-30  Bruno Haible  <bruno@clisp.org>
1431         utimens: Add support for native Windows.
1432         * lib/utimens.c: Include <windows.h>, msvc-nothrow.h.
1433         (fdutimens): Provide a native Windows implementation, like utime.c with
1434         added tv_nsec support.
1435         * modules/utimens (Depends-on): Add msvc-nothrow, utime.
1436         Suggested by Tim Rühsen <tim.ruehsen@gmx.de>.
1438 2017-04-30  Bruno Haible  <bruno@clisp.org>
1440         wcsftime: New module.
1441         * lib/wchar.in.h (wcsftime): New declaration.
1442         * lib/wcsftime.c: New file.
1443         * m4/wcsftime.m4: New file.
1444         * m4/wchar_h.m4 (gl_WCHAR_H): Test for wcsftime declaration.
1445         (gl_HEADER_TIME_H_DEFAULTS): Initialize GNULIB_WCSFTIME,
1446         HAVE_WCSFTIME, REPLACE_WCSFTIME.
1447         * modules/wchar (Makefile.am): Substitute GNULIB_WCSFTIME,
1448         HAVE_WCSFTIME, REPLACE_WCSFTIME.
1449         * modules/wcsftime: New file.
1450         * doc/posix-functions/wcsftime.texi: Mention the new module.
1452 2017-04-30  Bruno Haible  <bruno@clisp.org>
1454         strftime-fixes: New module.
1455         * lib/time.in.h (strftime): New declaration.
1456         * lib/strftime-fixes.c: New file.
1457         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME): Inline gl_FUNC_STRFTIME macro.
1458         (gl_FUNC_STRFTIME): Remove macro.
1459         * m4/strftime-fixes.m4: New file.
1460         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize GNULIB_STRFTIME,
1461         REPLACE_STRFTIME.
1462         * modules/time (Makefile.am): Substitute GNULIB_STRFTIME,
1463         REPLACE_STRFTIME.
1464         * modules/strftime-fixes: New file.
1465         * doc/posix-functions/strftime.texi: Mention the new module.
1467 2017-04-30  Bruno Haible  <bruno@clisp.org>
1469         mktime: Work around TZ problem on native Windows.
1470         * lib/mktime.c: Add #ifs to make the algorithmic workaround independent
1471         from the native Windows workaround.
1472         * m4/mktime.m4 (gl_FUNC_MKTIME_WORKS): New macro, extracted from
1473         gl_FUNC_MKTIME. If guessing, set gl_cv_func_working_mktime to
1474         'guessing no'.
1475         (gl_FUNC_MKTIME): Require it. Require AC_CANONICAL_HOST.
1476         Set REPLACE_MKTIME to 1 on native Windows. Define NEED_MKTIME_WORKING,
1477         NEED_MKTIME_WINDOWS.
1478         (gl_FUNC_MKTIME_INTERNAL): Require gl_FUNC_MKTIME_WORKS, not
1479         gl_FUNC_MKTIME. Set WANT_MKTIME_INTERNAL, not REPLACE_MKTIME. Define
1480         NEED_MKTIME_INTERNAL.
1481         * m4/timegm.m4 (gl_FUNC_TIMEGM): Require gl_FUNC_MKTIME_WORKS, not
1482         gl_FUNC_MKTIME. Cope with 'guessing yes' value.
1483         * modules/mktime-internal (configure.ac): Test WANT_MKTIME_INTERNAL,
1484         not REPLACE_MKTIME.
1485         * doc/posix-functions/mktime.texi: Mention the native Windows
1486         workaround.
1488 2017-04-30  Bruno Haible  <bruno@clisp.org>
1490         localtime: New module.
1491         * lib/time.in.h (localtime): Declare also if requested by module
1492         'localtime'.
1493         * lib/localtime.c: New file.
1494         * m4/localtime.m4: New file.
1495         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize GNULIB_LOCALTIME.
1496         * modules/time (Makefile.am): Substitute GNULIB_LOCALTIME.
1497         * modules/localtime: New file.
1498         * doc/posix-functions/localtime.texi: Mention the new module.
1500 2017-04-30  Bruno Haible  <bruno@clisp.org>
1502         ctime: New module.
1503         * lib/time.in.h (ctime): New declaration.
1504         * lib/ctime.c: New file.
1505         * m4/ctime.m4: New file.
1506         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize GNULIB_CTIME,
1507         REPLACE_CTIME.
1508         * modules/time (Makefile.am): Substitute GNULIB_CTIME, REPLACE_CTIME.
1509         * modules/ctime: New file.
1510         * doc/posix-functions/ctime.texi: Mention the new module.
1512 2017-04-30  Bruno Haible  <bruno@clisp.org>
1514         gettimeofday: Provide higher resolution on native Windows.
1515         * lib/gettimeofday.c: Don't include <sys/timeb.h>.
1516         (GetSystemTimePreciseAsFileTimeFuncType): New variable.
1517         (initialize): Initialize it.
1518         (gettimeofday) [WINDOWS_NATIVE]: Use it, and convert from FILETIME to
1519         'struct timeval'. Don't use _ftime().
1520         * m4/gettimeofday.m4 (gl_PREREQ_GETTIMEOFDAY): Don't test for
1521         <sys/timeb.h> and _ftime.
1523 2017-04-30  Bruno Haible  <bruno@clisp.org>
1525         Document the problem with the Cygwin environment variable TZ.
1526         * doc/posix-functions/tzset.texi: Add note about TZ.
1527         * doc/posix-functions/ctime.texi: Likewise.
1528         * doc/posix-functions/localtime.texi: Likewise.
1529         * doc/posix-functions/mktime.texi: Likewise.
1530         * doc/posix-functions/strftime.texi: Likewise.
1531         * doc/posix-functions/wcsftime.texi: Likewise.
1532         * doc/pastposix-functions/ftime.texi: Likewise.
1534 2017-04-30  Bruno Haible  <bruno@clisp.org>
1536         utime-tests: New module.
1537         * tests/test-utime.c: New file, based on tests/test-utimens.h.
1538         * tests/test-utimens-common.h: Include <sys/stat.h>.
1539         * modules/utime-tests: New file.
1541 2017-04-29  Bruno Haible  <bruno@clisp.org>
1543         utime: New module.
1544         * lib/utime.in.h: Add comment for snippets.
1545         (utime): New declaration.
1546         * lib/utime.c: New file.
1547         * m4/utime.m4: New file.
1548         * m4/utime_h.m4 (gl_UTIME_H): Test for utime declaration.
1549         (gl_UTIME_H_DEFAULTS): Initialize GNULIB_UTIME, HAVE_UTIME,
1550         REPLACE_UTIME.
1551         * modules/utime-h (Depends-on): Add snippets.
1552         (Makefile.am): Substitute GNULIB_UTIME, HAVE_UTIME, REPLACE_UTIME.
1553         Insert snippets.
1554         * modules/utime: New file.
1555         * doc/posix-functions/utime.texi: Mention the new module.
1557 2017-04-29  Bruno Haible  <bruno@clisp.org>
1559         utime-h: Modernize handling of 'struct utimbuf'.
1560         * lib/utime.in.h: Include next <utime.h> if it exists.
1561         (utimbuf): Define to _utimbuf on native Windows.
1562         * m4/utime_h.m4 (gl_UTIME_H): Check for prerequisites of include_next.
1563         Set UTIME_H on native Windows.
1564         (gl_UTIME_MODULE_INDICATOR, gl_HEADER_UTIME_H_DEFAULTS): New macros.
1565         * modules/utime-h (Depends-on): Add include_next.
1566         (Makefile.am): Substitute also HAVE_UTIME_H, INCLUDE_NEXT,
1567         PRAGMA_SYSTEM_HEADER, PRAGMA_COLUMNS, NEXT_UTIME_H.
1569         * lib/utimens.c (utimbuf): Remove fallback definition.
1570         * m4/utimens.m4 (gl_UTIMENS): Don't require
1571         gl_CHECK_TYPE_STRUCT_UTIMBUF.
1572         * m4/utimbuf.m4: Remove file.
1573         * modules/utimens (Files): Remove m4/utimbuf.m4.
1575 2017-04-29  Bruno Haible  <bruno@clisp.org>
1577         Make use of module 'utime-h'.
1578         * modules/copy-file (Depends-on): Add utime-h.
1579         * lib/copy-file.c: Assume that <utime.h> exists.
1580         * m4/copy-file.m4 (gl_COPY_FILE): Don't test for <utime.h>.
1582         * modules/utimens (Depends-on): Add utime-h.
1583         * lib/utimens.c: Assume that <utime.h> exists.
1585 2017-04-29  Bruno Haible  <bruno@clisp.org>
1587         utime-h: New module.
1588         * m4/utime_h.m4: New file.
1589         * lib/utime.in.h: New file.
1590         * modules/utime-h: New file.
1591         * doc/posix-headers/utime.texi: Mention the new module.
1593         * tests/test-utime-h.c: New file.
1594         * modules/utime-h-tests: New file.
1596 2017-04-30  Bruno Haible  <bruno@clisp.org>
1598         Fix a few typos.
1599         * m4/fstat.m4 (gl_FUNC_FSTAT): Require AC_CANONICAL_HOST.
1600         * m4/stat.m4 (gl_FUNC_STAT): Fix comment.
1601         * doc/posix-functions/fstat.texi: Fix a plural typo.
1602         * doc/posix-functions/stat.texi: Likewise.
1603         * m4/include_next.m4: Update comments.
1605 2017-04-29  Bruno Haible  <bruno@clisp.org>
1607         error: Fix mistake in 2017-04-23 commit.
1608         * lib/error.c (print_errno_message): If GNULIB_STRERROR_R_POSIX is set,
1609         assume that strerror_r returns 'int', not 'char *'.
1611 2017-04-29  Bruno Haible  <bruno@clisp.org>
1613         stat: Fix time_t values and other problems on native Windows platforms.
1614         * doc/posix-functions/stat.texi: Mention the problem with the Microsoft
1615         implementations of stat().
1616         * lib/stat.c: Include filename.h instead of dosname.h. Include
1617         malloca.h, stat-w32.h.
1618         (is_unc_root): New function.
1619         (rpl_stat): New implementation for native Windows. Remove
1620         REPLACE_FUNC_STAT_DIR code.
1621         * m4/stat.m4 (gl_FUNC_STAT): On native Windows, set REPLACE_STAT always.
1622         Don't define REPLACE_FUNC_STAT_DIR.
1623         (gl_PREREQ_STAT): Require gl_HEADER_SYS_STAT_H.
1624         * modules/stat (Files): Add lib/stat-w32.h, lib/stat-w32.c.
1625         (Depends-on): Remove dosname. Add filename, malloca.
1626         (configure.ac): Also compile lib/stat-w32.c.
1628 2017-04-29  Bruno Haible  <bruno@clisp.org>
1630         fstat: Fix time_t values on native Windows platforms.
1631         * doc/posix-functions/fstat.texi: Mention the problem with st_*time.
1632         * lib/stat-w32.h: New file.
1633         * lib/stat-w32.c: New file.
1634         * lib/fstat.c: Don't include msvc-inval.h. Include msvc-nothrow.h,
1635         stat-w32.h instead.
1636         (fstat_nothrow): Remove function.
1637         (rpl_fstat): Implement by means of _gl_fstat_by_handle.
1638         * m4/fstat.m4 (gl_FUNC_FSTAT): On native Windows, set REPLACE_FSTAT
1639         always.
1640         (gl_PREREQ_FSTAT): Require gl_HEADER_SYS_STAT_H.
1641         * modules/fstat (Files): Add lib/stat-w32.h, lib/stat-w32.c.
1642         (Depends-on): Remove msvc-inval. Add pathmax, msvc-nothrow.
1643         (configure.ac): Also compile lib/stat-w32.c.
1645 2017-04-29  Paul Eggert  <eggert@cs.ucla.edu>
1647         getopt: port to Solaris 10 with circa-1997 glibc getopt.h
1648         Problem reported by Assaf Gordon and Gavin Smith in:
1649         http://lists.gnu.org/archive/html/bug-gnulib/2017-04/msg00157.html
1650         * lib/getopt-pfx-ext.h (_getopt_internal) [__GETOPT_PREFIX]:
1651         #define this, too.
1653 2017-04-29  Bruno Haible  <bruno@clisp.org>
1655         strerror_r-posix: Fixes for MSVC 14.
1656         * lib/strerror_r.c: Include <stdarg.h>.
1657         (strerror_r): Provide error messages for errno values 100...140.
1658         * doc/posix-functions/strerror_r.texi: Mention the MSVC 14 problem.
1660 2017-04-28  Bruno Haible  <bruno@clisp.org>
1662         noreturn: New module.
1663         * lib/noreturn.h: New file.
1664         * modules/noreturn: New file.
1665         * tests/test-noreturn.c: New file.
1666         * modules/noreturn-tests: New file.
1667         * tests/test-noreturn-c++.cc: New file.
1668         * modules/noreturn-c++-tests: New file.
1670 2017-04-27  Bruno Haible  <bruno@clisp.org>
1672         wctype-h: Fix compilation error with the original mingw.org mingw.
1673         * m4/wctype_h.m4 (gl_WCTYPE_H): Test for <crtdefs.h>. Set
1674         HAVE_CRTDEFS_H.
1675         * modules/wctype-h (Makefile.am): Substitute HAVE_CRTDEFS_H.
1676         * lib/wctype.in.h (rpl_wint_t): If <crtdefs.h> does not exist, include
1677         <stddef.h> instead.
1678         Reported and proposed by Eli Zaretskii <eliz@gnu.org>.
1680 2017-04-26  Pádraig Brady  <P@draigBrady.com>
1682         nap.h: Fix compilation on non windows platforms
1683         * tests/nap.h: Move misplaced endif.
1685 2017-04-26  Pádraig Brady  <P@draigBrady.com>
1686         and Paul Eggert  <eggert@cs.ucla.edu>
1688         time_rz: fix heap buffer overflow vulnerability
1689         Reported and analyzed at https://bugzilla.redhat.com/CVE-2017-7476
1690         * lib/time_rz.c (save_abbr): Rearrange the calculation determining
1691         whether there is enough buffer space available, thus avoiding
1692         the problematic promotion of signed to unsigned causing an invalid
1693         comparison when zone_copy is more than ABBR_SIZE_MIN bytes beyond
1694         the start of the buffer.
1695         * tests/test-parse-datetime.c (main): Add a test case written by
1696         Paul Eggert, which overwrites enough of the heap so that
1697         standard glibc will fail with "free(): invalid pointer"
1698         without the patch applied.
1700 2017-04-26  Paul Eggert  <eggert@cs.ucla.edu>
1702         xalloc: add missing integer overflow check
1703         * lib/xalloc.h (x2nrealloc): Also check for multiplication
1704         overflow when P is null.
1706 2017-04-25  Paul Eggert  <eggert@cs.ucla.edu>
1708         parse-datetime: make it standalone
1709         * lib/parse-datetime.y: Include <stdarg.h>, for va_start etc.
1710         (_GL_ATTRIBUTE_FORMAT): New macro.
1711         These are needed to get './gnulib-tool --test parse-datetime' to work.
1713 2017-04-23  Bruno Haible  <bruno@clisp.org>
1715         nap.h: Port to native Windows.
1716         * tests/nap.h (nap_get_stat): Renamed from get_stat. Remove argument fd;
1717         use nap_fd instead. On native Windows, close and reopen nap_fd.
1718         (nap_works): Don't compare the ctimes, because on native Windows, these
1719         are the creation times.
1720         (nap): Update.
1722 2017-04-23  Bruno Haible  <bruno@clisp.org>
1724         nap.h: Fix logic.
1725         * tests/nap.h (nap): Avoid signed integer overflow in loop.
1727 2017-04-23  Bruno Haible  <bruno@clisp.org>
1729         Fix conflict between strerror_r-posix module and AC_FUNC_STRERROR_R.
1730         * modules/strerror_r-posix (configure.ac): Invoke gl_MODULE_INDICATOR.
1731         * lib/error.c: Test GNULIB_STRERROR_R_POSIX before testing
1732         HAVE_DECL_STRERROR_R, HAVE_STRERROR_R, or STRERROR_R_CHAR_P.
1733         * lib/argp-help.c (__argp_failure): Likewise.
1735 2017-04-23  Bruno Haible  <bruno@clisp.org>
1737         strerror_r-posix: Revert commits from 2016-10-16,2016-11-04,2016-11-14.
1738         * m4/strerror_r.m4: Revert changes since 2016-10-16.
1739         * lib/strerror_r.c: Likewise.
1741 2017-04-23  Paul Eggert  <eggert@cs.ucla.edu>
1743         Target a C99 subset, not a C89 subset
1744         For many years Gnulib has targeted C89 and has resisted using C99
1745         features, as some Gnulib-using programs still wanted to target
1746         C89.  As this no longer seems to be the case, relax the porting
1747         requirements to allow some C99 features.  This is merely a change
1748         to the documentation, to give other Gnulib developers a chance to
1749         weigh in on the topic.
1750         * doc/extern-inline.texi (extern inline):
1751         * doc/gnulib-readme.texi (Portability guidelines):
1752         * doc/gnulib-tool.texi (Initial import):
1753         * doc/gnulib.texi (Header files):
1754         Modernize to talk about C99 and C11 instead of C89 and C99.
1755         * doc/gnulib-readme.texi (Portability guidelines):
1756         Now a section, not merely a subsection, so that it
1757         can be split up.  Modernize a bit.
1758         (C language versions, C99 features assumed)
1759         (C99 features avoided):
1760         New sections.
1762 2017-04-23  Bruno Haible  <bruno@clisp.org>
1764         doc: New section "Modules that modify the way other modules work".
1765         * doc/gnulib.texi (Modules that modify the way other modules work): New
1766         section.
1768 2017-04-23  Bruno Haible  <bruno@clisp.org>
1770         stat-time: Update comments.
1771         * lib/stat-time.h: Fix reference regarding st_ctime on Windows.
1772         * tests/test-utimens-common.h: Add reference regarding st_ctime on
1773         Windows.
1775 2017-04-01  Bruno Haible  <bruno@clisp.org>
1777         glob: Fix more memory leaks.
1778         * lib/glob.c (glob): Free allocated memory before returning.
1779         Reported by Coverity via Tim Rühsen.
1781 2017-04-22  Paul Eggert  <eggert@cs.ucla.edu>
1783         poll: improve fast check for out-of-range NFD
1784         * lib/poll.c: Do not include intprops.h.
1785         (poll): Compare NFD to INT_MAX, not to TYPE_MAXIMUM (nfds_t) / 2.
1786         * modules/poll (Depends-on): Remove intprops.
1788         ftoastr: cite a newer paper
1789         * lib/ftoastr.c (FTOASTR): In comment, cite Andrysco et al. 2016
1790         instead of Loitsch 2010.
1792 2017-04-22  Bruno Haible  <bruno@clisp.org>
1794         poll: Enable argument check also in the Windows implementation.
1795         * lib/poll.c (poll) [WINDOWS_NATIVE]: Check value of nfd correctly.
1796         Reported by Paul Eggert.
1798 2017-04-22  Bruno Haible  <bruno@clisp.org>
1800         getlogin_r: Work around bug in Mac OS X 10.12.
1801         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Test also against the Mac OS X
1802         bug.
1803         * lib/getlogin_r.c (getlogin_r): When getlogin_r returns a string of the
1804         given size minus 1, call getlogin_r a second time, on a larger buffer.
1805         * modules/getlogin_r (Depends-on): Add malloca.
1806         * doc/posix-functions/getlogin_r.texi: Mention the Mac OS X bug.
1808 2017-04-22  Paul Eggert  <eggert@cs.ucla.edu>
1810         parse-datetime: fix %z and prefer signed int
1811         %z problem reported by Pádraig Brady in:
1812         http://lists.gnu.org/archive/html/bug-gnulib/2017-04/msg00103.html
1813         While fixing it, I decided to prefer signed ints to size_t, as
1814         they are less error-prone (e.g., ubsan catches overflow).
1815         * lib/parse-datetime.y (textint, parser_control, lookup_word, yylex)
1816         (parse_datetime2): Prefer ptrdiff_t to size_t for sizes and object
1817         counts, since signed integers make for better debugging.
1818         (date): Don’t assume %z works in printf formats.
1819         (debug_strfdatetime, debug_strfdate, debug_strftime): Use int for
1820         sizes of buffers known to be small, e.g., because we’re using snprintf.
1821         (parse_datetime2): Simplify call to debug_mktime_not_ok.
1823 2017-04-22  Bruno Haible  <bruno@clisp.org>
1825         *printf: Work around rounding bug on Mac OS X.
1826         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Test for Mac OS X 10.12 bug.
1827         * doc/posix-functions/*printf.texi: Mention the rounding bugs of
1828         Mac OS X and FreeBSD.
1829         * doc/glibc-functions/*printf.texi: Likewise.
1831 2017-04-22  Bruno Haible  <bruno@clisp.org>
1833         vasnprintf tests: Avoid warnings.
1834         * tests/test-vasnprintf-posix3.c (test_function, my_asnprintf,
1835         test_vasnprintf, test_asnprintf): Don't define if there's nothing to
1836         test.
1838 2017-04-22  Bruno Haible  <bruno@clisp.org>
1840         sys_file tests: Avoid warning.
1841         * tests/test-sys_file.c (main): Add a default clause to the switch
1842         statement.
1844 2017-04-22  Bruno Haible  <bruno@clisp.org>
1846         sethostname: Update doc.
1847         * doc/glibc-functions/sethostname.texi: Mention differing prototype on
1848         Mac OS X.
1850 2017-04-22  Bruno Haible  <bruno@clisp.org>
1852         quotearg tests: Avoid warnings.
1853         * tests/test-quotearg.c: Don't include test-quotearg.h if ENABLE_NLS is
1854         false.
1856 2017-04-22  Bruno Haible  <bruno@clisp.org>
1858         poll: Enable argument check.
1859         * lib/poll.c: Include intprops.h.
1860         (poll): Check value of nfd correctly.
1861         * modules/poll (Depends-on): Add intprops.
1863 2017-04-22  Bruno Haible  <bruno@clisp.org>
1865         get-rusage-data: Avoid warnings on Mac OS X.
1866         * lib/get-rusage-data.c: On Mac OS X, don't define
1867         get_rusage_data_via_setrlimit nor get_rusage_data_via_iterator.
1868         (get_rusage_data) [Mac OS X]: Just return 0.
1870 2017-04-22  Bruno Haible  <bruno@clisp.org>
1872         xbinary-io: Fix build error.
1873         * modules/xbinary-io (Depends-on): Add gettext-h.
1874         * lib/xbinary-io.c: Include gettext.h and define _().
1875         Reported by Gisle Vanem <gisle.vanem@gmail.com> in
1876         <https://lists.gnu.org/archive/html/bug-gnulib/2017-04/msg00089.html>.
1878 2017-04-22  Paul Eggert  <eggert@cs.ucla.edu>
1880         parse-datetime: overflow and debug cleanups
1881         This long patch was triggered by this bug report from Ruediger Meier:
1882         http://lists.gnu.org/archive/html/bug-gnulib/2017-04/msg00028.html
1883         I fixed the bug he noted, then found some others nearby, and then
1884         still others.  Oh my goodness, there were a lot of bugs.  I cleaned
1885         up some of the code to follow GNU standards while I was at it.
1886         * lib/parse-datetime.y (ISDIGIT): Remove; all callers changed to
1887         use c_isdigit.
1888         (EPOCH_YEAR): Remove; unused.
1889         (TM_YEAR_BASE): Now an enum rather than a macro.
1890         (HOUR, debug_strfdatetime): Multiply hour by 3600, not 60, to get
1891         time zone offset, since timezones now are in terms of seconds and
1892         not minutes.
1893         (long_time_t): Remove.  All uses replaced by time_t or intmax_t as
1894         appropriate.  Verify that intmax_t is wide enough.
1895         (time_overflow, time_zone_str): New functions, used to deal
1896         more reliably with overflow.
1897         (dbg_printf): Add printf attribute, to help catch integer width errors.
1898         (textint, relative_time, parser_control, time_zone_hhmm, set_hhmmss)
1899         (%union, to_hour, yylex, parse_datetime2):
1900         Use intmax_t instead of long int and/or long_time_t.
1901         All uses changed.
1902         (DBGBUFSIZE): Move earlier.
1903         (relative_time, set_hhmmss, parser_control):
1904         Just use int for nanoseconds and for time zones; that’s wide enough.
1905         (parser_control): Use bool for members like year_seen that can
1906         be booleans instead of counters.  All uses changed.
1907         Remove debug_default_input_timezone; no longer needed.
1908         All uses removed.
1909         (apply_relative_time): Return a bool overflow flag.
1910         All uses changed to check for overflow.
1911         (apply_relative_time, zone, date, relunit, relunit_snumber)
1912         (signed_seconds, unsigned_seconds, yylex, parse_datetime2):
1913         Check for integer overflow portably.
1914         (str_days): Use just int for N, as it’s wide enough.
1915         Prefer 2D char arrays to arrays of char * when it looks like
1916         2D is a win on typical platforms.
1917         Prefer snprintf to strncpy/strncat, for simplicity;
1918         all buffers are smaller than INT_MAX so this is safe.
1919         (TIME_ZONE_BUFSiZE, TM_YEAR_BUFSIZE): New constants.
1920         (debug_print_current_time): Don’t assume tv_nsec is of type long,
1921         as this is not true on x32.  Output "." before any nanoseconds.
1922         (debug_print_current_time, parse_datetime2):
1923         Output local zones using a more-consistent format.
1924         (debug_print_current_time, date, parse_datetime2):
1925         (main) [TEST]:
1926         Don’t assume time_t is the same width as long.
1927         (print_rel_part): New function, replacing ...
1928         (PRINT_REL_PART): ... this macro, which was removed.  All uses changed.
1929         (debug_print_relative_time): Use bool for boolean.
1930         (local_zone): dsts_seen now counts only tDST instances.
1931         (date): Fix printf of size_t to use %z.  Do not assume numeric
1932         tokens have negative values merely because the context suggests
1933         a syntax with "-" separating tokens.
1934         (time_zone_hhmm): Return bool success indicator, which checks for
1935         overflow.  Store result into PC->time_zone instead.  All callers
1936         changed.
1937         (tm_year_str): New function.  Return a bool success indicator and
1938         store the result into a buffer.  All callers changed.  Output the
1939         numerically correct string even if adding 1900 to the year would
1940         overflow.
1941         (to_tm_year): New function, replacing the old to_year.  All
1942         callers changed.
1943         (tm_diff): Sync with glibc.
1944         (lookup_word): Use to_uchar instead of doing it by hand.
1945         (TZBUFSIZE): Now local to the only function that needs it.
1946         (debug_strfdatetime): Simplify now that time zones are int seconds.
1947         (debug_strfdate): Work even if tm_year + 1900 would overflow.
1948         (get_effective_timezone): Remove.  All uses removed.
1949         (parse_datetime2): Use fprintf in pieces instead of snprintfing
1950         to a fixed-size buffer.  Don’t assume that gmtime succeeds iff
1951         localtime succeeds.  Use tm_gmtoff if available.  Simplify how
1952         ‘goto fail;’ works in conjunction with the ‘ok’ flag.
1953         * m4/parse-datetime.m4 (gl_PARSE_DATETIME): Don’t define
1954         TIME_T_FITS_IN_LONG_INT, as it is no longer needed.
1955         * modules/parse-datetime (Depends-on): Add inttypes.
1957 2017-04-21  Bruno Haible  <bruno@clisp.org>
1959         gettext-h: Avoid -Wundef warning.
1960         * lib/gettext.h: Test the value of ENABLE_NLS only if it is defined.
1961         Reported by Tim Rühsen <tim.ruehsen@gmx.de> in
1962         <https://lists.gnu.org/archive/html/bug-gnulib/2017-04/msg00022.html>.
1964 2017-04-05  Tim Rühsen  <tim.ruehsen@gmx.de>
1966         error: Avoid "function declaration isn't a prototype" warning.
1967         * lib/error.c (strerror_r): Turn K&R C prototype to an ANSI C prototype.
1969 2017-04-21  Bruno Haible  <bruno@clisp.org>
1971         vasnprintf: Fix for MSVC 14.
1972         * lib/vasnprintf.c (USE_MSVC__SNPRINTF): New macro.
1973         Everywhere, use !HAVE_SNPRINTF_RETVAL_C99 || USE_MSVC__SNPRINTF instead
1974         of !HAVE_SNPRINTF_RETVAL_C99.
1976 2017-04-21  Bruno Haible  <bruno@clisp.org>
1978         mbrtowc tests: Fix test failures on MSVC 14.
1979         * tests/test-mbrtowc-w32.c (test_one_locale): Accept MSVC's conversion
1980         behaviour for invalid input.
1982 2017-04-21  Bruno Haible  <bruno@clisp.org>
1984         mbsinit: Fix for MSVC 14.
1985         * lib/mbsinit.c (mbsinit): If GNULIB_defined_mbstate_t, provide an
1986         implementation that is in sync with mbrtowc.c. On other platforms, use
1987         an adequate ad-hoc implementation.
1989 2017-04-21  Bruno Haible  <bruno@clisp.org>
1991         Fix test-mbrtowc5.sh failure on native Windows.
1992         * lib/setlocale.c (setlocale_unixlike): Accept "POSIX" as an alias for
1993         "C".
1995 2017-04-21  Bruno Haible  <bruno@clisp.org>
1997         Avoid accidental use of native Windows APIs on Cygwin.
1998         * lib/getaddrinfo.c (WINDOWS_NATIVE): Don't define on Cygwin.
1999         * lib/localcharset.c (WINDOWS_NATIVE): Likewise.
2000         * lib/localename.c (WINDOWS_NATIVE): Likewise.
2002 2017-04-20  Bruno Haible  <bruno@clisp.org>
2004         Remove red warnings from the generated MODULES.html.
2005         * modules/fcntl (Description): Disambiguate function references.
2006         * modules/getcwd-lgpl (Description): Likewise.
2007         * modules/hostent (Description): Likewise.
2008         * modules/servent (Description): Likewise.
2009         * modules/tempname (Description): Likewise.
2011 2017-04-20  Bruno Haible  <bruno@clisp.org>
2013         verify tests: Fix spurious failure with parallel make.
2014         * gnulib-tool (func_emit_tests_Makefile_am): Emit initialization of
2015         EXTRA_PROGRAMS.
2016         * tests/test-verify.sh: Build test-verify-try.o, not test-verify.o.
2017         * tests/test-verify-try.c: New file.
2018         * modules/verify-tests (Files): Add it.
2019         (EXTRA_PROGRAMS): Add test-verify-try.
2020         (MOSTLYCLEANFILES): Update accordingly.
2021         Reported by Adam James Stewart <ajstewart@anl.gov>.
2023 2017-04-18  Bruno Haible  <bruno@clisp.org>
2025         vma-iter: Fix compilation error on Solaris 7.
2026         * lib/vma-iter.c (vma_iterate): Treat missing MAP_ANONYMOUS on Solaris
2027         like on IRIX, OSF/1.
2028         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
2030 2017-04-18  Bruno Haible  <bruno@clisp.org>
2032         vma-iter: Fix conflict with module 'largefile' on 32-bit Solaris 9.
2033         * modules/vma-iter (configure.ac): Test whether <sys/procfs.h> can be
2034         included.
2035         * lib/vma-iter.c: On Solaris, test HAVE_SYS_PROCFS_H before including
2036         <sys/procfs.h>.
2037         * lib/vma-iter.h (VMA_ITERATE_SUPPORTED): Don't define on Solaris when
2038         <sys/procfs.h> cannot be included.
2039         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
2041 2017-04-18  Bruno Haible  <bruno@clisp.org>
2043         getopt-gnu: Add comments.
2044         * m4/getopt.m4 (gl_FUNC_GETOPT_GNU): Add comments.
2045         * modules/getopt-gnu (configure.ac): Likewise.
2047 2017-04-16  Paul Eggert  <eggert@cs.ucla.edu>
2049         regex: port better to Solaris 10
2050         Solaris 10 <locale.h> includes <libintl.h>, which #defines
2051         gettext, and this causes a double #define.
2052         Problem reported by Gavin Smith in:
2053         http://lists.gnu.org/archive/html/bug-gnulib/2017-04/msg00056.html
2054         * lib/regex_internal.h (gettext): #undef before #defining.
2056 2017-04-15  Paul Eggert  <eggert@Penguin.CS.UCLA.EDU>
2058         intprops: improve comments
2059         * lib/intprops.h: Improve and shorten commentary.
2060         For the record, if we ever run into a pedantic compiler that
2061         behaves differently from GCC when converting an out-of-range value
2062         to a signed integer, we can work around the problem with something
2063         like the following code, where UCT is the signed counterpart of T
2064         (UCT is sometimes narrower than UT) and all callers are changed
2065         accordingly:
2066         #if __SUNPRO_C <= 0x5120
2067         # define _GL_INT_OP_WRAPV_VIA_UNSIGNED(a, b, op, uct, ut, t) \
2068            ((t) ((ut) (a) op (ut) (b)))
2069         #else
2070         # define _GL_INT_OP_WRAPV_VIA_UNSIGNED(a, b, op, uct, ut, t) \
2071            (TYPE_MINIMUM (t) <= (uct) ((ut) (a) op (ut) (b)) \
2072             ? ((t) (uct) (((ut) (a) op (ut) (b)) - TYPE_MINIMUM (t)) \
2073                + TYPE_MINIMUM (t)) \
2074             : (t) (uct) ((ut) (a) op (ut) (b)))
2075         #endif
2077 2017-04-14  Paul Eggert  <eggert@Penguin.CS.UCLA.EDU>
2079         intprops: try to avoid tickling similar bugs
2080         * lib/intprops.h (_GL_INT_OP_CALC): Document that UT no longer
2081         needs to be the same width as T; it can be wider.
2082         Change callers so that UT is at least as wide as unsigned int,
2083         as I suspect that this is less likely to run into compiler bugs.
2085         intprops: port to Oracle Studio 12.3 x86
2086         Problem reported by Gavin Smith in:
2087         http://lists.gnu.org/archive/html/bug-gnulib/2017-04/msg00049.html
2088         * lib/intprops.h (_GL_INT_OP_WRAPV_VIA_UNSIGNED):
2089         Convert unsigned to signed via the usual rather than the standard way,
2090         to avoid a compiler bug in Oracle Studio 12.3 x86.
2092 2017-04-08  Paul Eggert  <eggert@cs.ucla.edu>
2094         getopt: prefer - to _ in new file names
2095         * lib/getopt-cdefs.in.h: Rename from lib/getopt_cdefs.in.h.
2096         * lib/getopt-core.h: Rename from lib/getopt_core.h.
2097         * lib/getopt-ext.h: Rename from lib/getopt_ext.h.
2098         * lib/getopt-pfx-core.h: Rename from lib/getopt_pfx_core.h.
2099         * lib/getopt-pfx-ext.h: Rename from lib/getopt_pfx_ext.h.
2100         All uses changed.
2102         getopt: port recent getopt changes to macOS
2103         Problem reported by Harald Maier (Bug#26398).
2104         The macOS C compiler uses __nonnull for its own purposes and that
2105         clashes with glibc's __nonnull.
2106         * lib/getopt.in.h: Add comment for _GL_ARG_NONNULL snippet.
2107         * lib/getopt_cdefs.in.h (__nonnull): Remove.
2108         * lib/getopt_core.h (getopt):
2109         * lib/getopt_ext.h (getopt_long, getopt_long_only):
2110         Use _GL_ARG_NONNULL, not __nonnull.
2111         * lib/unistd.in.h: Move snippet hooks to before where the getopt
2112         .h files are included, so that _GL_ARG_NONNULL is defined in time.
2113         * modules/getopt-posix (Depends-on): Add snippet/arg-nonnull.
2114         (getopt.h): Interpolate _GL_ARG_NONNULL snippet.
2116 2017-04-06  Paul Eggert  <eggert@cs.ucla.edu>
2118         getopt-gnu: omit some duplicate code
2119         * m4/getopt.m4 (gl_FUNC_GETOPT_GNU): Don’t require
2120         gl_FUNC_GETOPT_POSIX, as the configure.ac code generated by
2121         gnulib-tool already does this.
2122         * modules/getopt-gnu (configure.ac): Omit code duplicated from
2123         getopt-posix, which we depend on.
2125         getopt-posix: use angle-bracket include
2126         * lib/getopt1.c: Include <config.h>, not "config.h".
2128 2017-04-06  Zack Weinberg  <zackw@panix.com>
2130         getopt: annotate files with relationship to glibc
2132         As the final act in this patchset, adjust the message at the top of
2133         each file to indicate which files are synced with glibc.  (This has
2134         already been done for most of the headers.)
2136         * lib/getopt.c, lib/getopt1.c, lib/getopt_int.h:
2137         Mention in top-of-file boilerplate that these files are shared
2138         between glibc and gnulib.
2141         getopt: split up getopt.in.h and eliminate __need_getopt
2143         Over in glibc, all of the __need macros are being phased out in favor
2144         of small headers that declare only the necessary components, as this
2145         is much simpler and less prone to bugs.  As getopt is shared with
2146         glibc, gnulib needs to do the same for __need_getopt.
2148         __need_getopt is misnamed; what it really means is "we want only the
2149         getopt features specified in POSIX, not the GNU extensions".  glibc
2150         placed the "meat" of getopt.h into getopt_core.h and getopt_ext.h;
2151         these files can be shared verbatim with gnulib.  The portability
2152         wrapper, on the other hand, they have renounced altogether; glibc's
2153         getopt.h will no longer be shared with gnulib at all.  In exchange,
2154         certain glibc-specific quirks (having to do with __posix_getopt) no
2155         longer need appear in gnulib's headers at all.
2157         This patch merges getopt_core.h and getopt_ext.h from glibc, and
2158         splits up the current gnulib-side portability wrapper into three
2159         additional headers: getopt_pfx_core.h and getopt_pfx_ext.h handle
2160         __GETOPT_PREFIX for their respective headers, getopt_cdefs.in.h
2161         handles things like __BEGIN_DECLS and __THROW, and getopt.in.h and
2162         unistd.in.h just use them.  All new files are clearly marked with
2163         whether they are shared with glibc.
2165         * lib/getopt.in.h: Eliminate __need_getopt.  Break up into ...
2166         * lib/getopt_core.h, lib/getopt_ext.h: ... these new files shared
2167         with glibc, and ...
2168         * lib/getopt_cdefs.in.h, lib/getopt_pfx_core.h
2169         * lib/getopt_pfx_ext.h: ... these new files not shared with glibc.
2170         * lib/unistd.in.h: Include getopt_cdefs.h and getopt_pfx_core.h,
2171         instead of defining __need_getopt and including the full getopt.h.
2173         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE_HEADER): Check for sys/cdefs.h.
2174         Define substitution variables GETOPT_CDEFS_H and HAVE_SYS_CDEFS_H.
2175         * modules/getopt-posix (Files): Add new headers and sort list.
2176         (Depends-on): No longer need snippet/arg-nonnull.
2177         (Makefile.am): Generate getopt_cdefs.h.
2180         getopt: better handling of ambiguous options
2182         glibc's getopt uses alloca to construct a linked list of possibilities
2183         for an "ambiguous" long option.  In gnulib, malloc should be used
2184         instead.  Providing for both cases complicates things a fair bit.
2186         This patch rewrites ambiguous-option handling to use a boolean vector
2187         instead of a linked list.  There is then only one allocation that
2188         might need freeing; in glibc it can honor __libc_use_alloca as usual,
2189         and in gnulib we define __libc_use_alloca to always be false, so we
2190         don't need ifdefs in the middle of the function.  This should also be
2191         slightly more efficient in the normal case of long options being fully
2192         spelled out -- I think most people aren't even aware they _can_
2193         sometimes abbreviate long options.
2195         One interesting consequence is that the list of possibilities is now
2196         printed in exactly the order they appear in the list of long options,
2197         instead of the first possibility being shuffled to the end.
2199         (The patch looks bigger than it really is because there's a fair bit
2200         of reindentation and code rearrangement.)
2202         * lib/getopt.c: When used standalone, define __libc_use_alloca
2203         as always false and alloca to abort if called.
2204         (process_long_option): Rewrite handling of ambiguous long options
2205         to use a single boolean vector, not a linked list; use
2206         __libc_use_alloca to decide whether to allocate this using alloca.
2209         getopt: refactor long-option handling
2211         There were two copies of the bulk of the code to handle long options.
2212         Now there is only one.
2214         This change temporarily removes the logic to avoid using alloca when
2215         standalone; the next patch in the series will restore it.
2217         * lib/getopt.c (process_long_option): New function split out
2218         from _getopt_internal_r.
2219         (_getopt_internal_r): Replace both copies of the long-option
2220         processing code with calls to process_long_option.
2223         getopt: tidy up _getopt_initialize a bit
2225         _getopt_data.__posixly_correct is completely redundant to
2226         _getopt_data.__ordering, and some work that logically belongs in
2227         _getopt_initialize was being done by _getopt_internal_r, making the
2228         code harder to understand.
2230         As a side effect, getenv will no longer be called if the first
2231         character of the options string is '+' or '-', which is probably a
2232         Good Thing.  (Perhaps we should have a flag character that
2233         specifically asks for the permutation behavior?)
2235         * lib/getopt_int.h (_getopt_data): Remove __posixly_correct field.
2236         * lib/getopt.c (_getopt_internal_r): Move some initialization code...
2237         (_getopt_initialize): ...here. Don't set d->__posixly_correct.
2240         getopt: merge from glibc: repetition reduction
2242         The definitions of the entry point functions 'getopt' and
2243         '__posix_getopt' can be made substantially less repetitive with a
2244         helper macro.
2246         While I was merging the const-correctness changes from gnulib into
2247         glibc I noticed there are still some unnecessary casts in
2248         _getopt_internal_r.
2250         * lib/getopt.c (getopt, __posix_getopt): Eliminate repetition with
2251         a macro.  Consistently cast 'argv' to 'char **' when calling
2252         _getopt_internal.
2253         (_getopt_internal_r): Remove unnecessary casts when calling exchange.
2256         getopt: clean up error reporting
2258         getopt can print a whole bunch of error messages, and when used
2259         standalone (from gnulib) it uses fprintf to do that.  But fprintf is a
2260         cancellation point and getopt isn't, and also applying fprintf to a
2261         stream in wide-character mode is not allowed.  So every single error
2262         reporting case has an #ifdef _LIBC block in which it calls internal
2263         libc functions instead.  The counterpart patch series in glibc makes
2264         it possible to simplify all of that down to a set of #defines at the
2265         top of the file; core code is written as if it is safe to just call
2266         fprintf, flockfile, and funlockfile.  (One caveat: it's *not* safe to
2267         call any *other* stdio functions.)
2269         * lib/getopt.c: When _LIBC is defined, define fprintf to
2270         __fxprintf_nocancel, flockfile to _IO_flockfile, and funlockfile
2271         to _IO_funlockfile.  When neither _LIBC nor
2272         _POSIX_THREAD_SAFE_FUNCTIONS is defined, define flockfile and
2273         funlockfile as no-ops.
2274         (_getopt_internal_r): Remove all internal #ifdef _LIBC blocks; the
2275         standalone error-printing code can now be used for libc as well.
2276         Add an flockfile/funlockfile pair around one case where the error
2277         message is printed in several chunks.  Don't use fputc.
2280         getopt: fix fencepost error in ambiguous-W-option handling
2282         getopt_long contains an undocumented (AFAICT) feature in which, if you
2283         put "W;" in the short-options list, then '-W foo' and '-Wfoo' are
2284         treated as equivalent to '--foo'.  This is implemented with a partial
2285         second copy of the code for handling long options, and that code
2286         increments optind one too many times when recovering from an ambiguous
2287         abbreviated option, which can cause the main loop to walk past the end
2288         of argv and crash.
2290         I discovered this while writing a test case that tries to exercise all
2291         of getopt's error reporting paths; I wouldn't be surprised to learn
2292         that this feature is never used by real applications.
2294         * lib/getopt.c (_getopt_internal_r): Don't increment
2295         d->optind a second time when reporting ambiguous -W options.
2298         getopt: clean up getopt.c and getopt1.c file headers
2300         In getopt.c, there is no need to include wchar.h at all, and it is
2301         safe nowadays to assume that stdlib.h does declare getenv (several
2302         other gnulib modules make this assumption).
2304         In getopt1.c, the #ifdef _LIBC block at the top can be simplified
2305         by using "" inclusions consistently, and there is no actual need to
2306         include stdlib.h (except in the #ifdef TEST block, where it should be
2307         unconditional), nor to provide a backup definition of NULL at all.
2309         * lib/getopt1.c: Simplify #ifdeffage at top of file.
2310         Move inclusion of stdlib.h to #ifdef TEST block and make
2311         unconditional.  Do not define NULL.
2312         * lib/getopt.c: Don't include wchar.h. No need to declare getenv.
2313         * m4/getopt.m4 (gl_PREREQ_GETENV): Delete.
2314         * modules/getopt-gnu, modules/getopt-posix: Don't call
2315         gl_PREREQ_GETENV.
2318         getopt: harmonize comments with glibc
2320         The comments explaining how the behavior of 'getopt' varies depending
2321         on whether it's the standalone version and whether there are special
2322         characters at the beginning of the options string were inconsistent
2323         between gnulib and glibc, and also out of sync with the code.
2325         * lib/getopt.c, lib/getopt_int.h: Harmonize comments with glibc.
2328         getopt: remove USE_NONOPTION_FLAGS
2330         getopt includes code to parse an environment variable named
2331         _XXX_GNU_nonoption_argv_flags_ (where XXX is the current process's PID
2332         in decimal); but all of it has been #ifdefed out since 2001, with no
2333         official way to turn it back on.
2335         According to commentary in glibc's config.h.in, bash version 2.0
2336         set this environment variable to indicate argv elements that were
2337         the result of glob expansion and therefore should not be treated
2338         as options, but the feature was "disabled later" because "it
2339         caused problems".  According to bash's CHANGES file, "later" was
2340         release 2.01; it gives no more detail about what the problems
2341         were.
2343         Version 2.0 of bash was released on the last day of 1996, and version
2344         2.01 in June of 1997.  Twenty years later, I think it is safe to
2345         assume that this environment variable isn't coming back.
2347         * lib/getopt_int.h: Remove all #ifdef USE_NONOPTION_FLAGS blocks.
2348         * lib/getopt.c: Likewise. Also remove SWAP_FLAGS and the
2349         __libc_argc and __libc_argv externs, which were only used by
2350         #ifdef USE_NONOPTION_FLAGS blocks.
2353         getopt: tabify, in preparation for merge with glibc
2355         glibc sticks to the GNU default of indenting with a mix of
2356         8-column tabs and spaces; make the gnulib copy match.
2358         getopt.h is not included because it is *not* going to be merged in its
2359         present form.
2361         * getopt.c, getopt1.c, getopt_int.h: Tabify.
2363 2017-04-02  Bruno Haible  <bruno@clisp.org>
2365         relocatable-lib-lgpl: Fix link error (regression from 2011-06-16).
2366         * modules/relocatable-lib-lgpl (configure.ac): Add AC_LIBOBJ invocation,
2367         like it was done in modules/relocatable-lib on 2011-05-21 and in
2368         modules/relocatable-prog on 2011-08-15.
2369         Reported by Reuben Thomas <rrt@sc3d.org>.
2371 2017-03-31  Bruno Haible  <bruno@clisp.org>
2373         glob: Fix invalid free() call.
2374         * lib/glob.c (glob): Reset malloc_home_dir when assigning a pointer to
2375         static storage to home_dir.
2376         Reported by Coverity via Tim Rühsen.
2378 2017-03-31  Bruno Haible  <bruno@clisp.org>
2380         glob: Fix memory leaks.
2381         * lib/glob.c (glob): Free allocated memory before returning.
2382         Reported by Coverity via Tim Rühsen.
2384 2017-03-31  Bruno Haible  <bruno@clisp.org>
2386         md5, sha1, sha256, sha512: Add comments regarding correctness.
2387         * lib/md5.h (buflen): Add comments regarding range.
2388         * lib/sha1.h (buflen): Likewise.
2389         * lib/sha256.h (buflen): Likewise.
2390         * lib/sha512.h (buflen): Likewise.
2391         * lib/md5.c (md5_process_bytes): Add comment why memmove is not needed.
2392         * lib/sha1.c (sha1_process_bytes): Likewise.
2393         * lib/sha256.c (sha256_process_bytes): Likewise.
2394         * lib/sha512.c (sha512_process_bytes): Likewise.
2395         Reported by Coverity via Tim Rühsen.
2397 2017-03-22  Paul Eggert  <eggert@cs.ucla.edu>
2399         getopt: merge from glibc
2400         This does not change anything substantial; it merely simplifies
2401         hypothetical merges back to glibc.
2402         * lib/getopt.c, lib/getopt.in.h, lib/getopt1.c, lib/getopt_int.h:
2403         Change copyright notice to match what is in glibc.
2404         * lib/getopt.c: Reorder includes to match glibc.  Remove uses of
2405         USE_IN_LIBIO.  Remove 'register'.  In __LIBC code, use
2406         __open_memstream rather than open_memstream and __glibc_likely
2407         instead of __builtin_expect.
2408         * lib/getopt.in.h (__posix_getopt) [!__GETOPT_PREFIX]: New decl.
2410 2017-03-21  Paul Eggert  <eggert@cs.ucla.edu>
2412         dfa: make [0-9] faster in non-C locales
2413         Problem reported by John P. Linderman (Bug#26193).
2414         * lib/dfa.c (parse_bracket_exp): Remove redundant assignment.
2415         If both ends of the range are ASCII digits, do not worry about
2416         multi-character collating sequences and the like.  Be consistent
2417         about using isalpha as a precondition for setbit_case_fold_c.
2419 2017-03-19  Bruno Haible  <bruno@clisp.org>
2421         lock: Fix compilation error with HP-UX IA64 cc.
2422         * lib/glthread/lock.h (pthread_rwlockattr_setkind_np): Don't declare
2423         weak on non-glibc platforms.
2425 2017-03-19  Paul Eggert  <eggert@cs.ucla.edu>
2427         stdalign: tweak version# and test for HP-UX IA64
2428         Problems reported by Bruno Haible in:
2429         http://lists.gnu.org/archive/html/bug-gnulib/2017-03/msg00078.html
2430         * lib/stdalign.in.h (_Alignas):
2431         * m4/stdalign.m4 (gl_STDALIGN_H):
2432         Use octal, not decimal, for __HP_cc version.  Perhaps HP formerly
2433         used octal (as that is how they document it), but it is decimal in
2434         practice now and the ancient implementations no longer matter.
2435         * tests/test-stdalign.c (main) [__HP_cc && __ia64]: Skip test.
2437 2017-03-19  Bruno Haible  <bruno@clisp.org>
2439         vma-iter: Add support for Solaris.
2440         * lib/vma-iter.c (vma_iterate): On Solaris, use the /proc filesystem
2441         approach.
2442         * lib/vma-iter.h (VMA_ITERATE_SUPPORTED): Define also on Solaris.
2443         * lib/get-rusage-as.c: Update comment about Solaris.
2444         * lib/get-rusage-data.c: Likewise.
2446 2017-03-19  Bruno Haible  <bruno@clisp.org>
2448         vma-iter: Prefer HP-UX specific API on HP-UX.
2449         * lib/vma-iter.c (vma_iterate): Move HP-UX specific implementation up.
2450         * lib/vma-iter.h: Update.
2451         Just in case HP-UX ever implements mquery().
2453 2017-03-18  Paul Eggert  <eggert@cs.ucla.edu>
2455         stdalign: restore previous behavior for HP-UX IA64
2456         See Bruno Haible's email in:
2457         http://lists.gnu.org/archive/html/bug-gnulib/2017-03/msg00066.html
2458         which cites p 150 of a manual saying that 'aligned' works on Itanium.
2459         * lib/stdalign.in.h (_Alignas):
2460         Assume the '061200' applies to Itanium, not to PA-RISC.
2461         * m4/stdalign.m4 (gl_STDALIGN_H): Adjust to match stdalign.in.h.
2463 2017-03-17  Bruno Haible  <bruno@clisp.org>
2465         stat-time, timespec: Support use of the header files in C++ mode.
2466         * lib/stat-time.h: Add "C" linkage declaration.
2467         * lib/timespec.h: Likewise.
2469 2017-03-17  Bruno Haible  <bruno@clisp.org>
2471         stdalign: Make it work with HP-UX cc.
2472         * lib/stdalign.in.h (_Alignas): Don't define for HP-UX cc.
2473         * m4/stdalign.m4 (gl_STDALIGN_H): No need to enable the extra test
2474         for HP-UX cc.
2476 2017-03-17  Paul Eggert  <eggert@cs.ucla.edu>
2478         flexmember: try to detect HP-UX 11.31 cc bug
2479         Problem reported by Bruno Haible in:
2480         http://lists.gnu.org/archive/html/bug-gnulib/2017-03/msg00066.html
2481         * m4/flexmember.m4 (AC_C_FLEXIBLE_ARRAY_MEMBER):
2482         Attempt to detect bug in HP-UX 11.31 cc.
2484 2017-03-16  Bruno Haible  <bruno@clisp.org>
2486         stdint: Fix test compilation failure with HP-UX 11 cc.
2487         * lib/stdint.in.h (_STDINT_MIN): Remove macro.
2488         (_STDINT_UNSIGNED_MIN, _STDINT_SIGNED_MIN): New macros.
2489         (PTRDIFF_MIN, SIG_ATOMIC_MIN, WCHAR_MIN, WINT_MIN): Define using
2490         _STDINT_UNSIGNED_MIN, _STDINT_SIGNED_MIN.
2492 2017-03-14  Bruno Haible  <bruno@clisp.org>
2494         gnulib-tool: Don't produce a tests directory with only snippet .h files.
2495         * gnulib-tool (func_modules_transitive_closure_separately): If
2496         testsrelated_modules ends up with no "real" modules, aside from
2497         modules with applicability 'all', set it to empty.
2499 2017-03-14  Bruno Haible  <bruno@clisp.org>
2501         vma-iter: Add support for HP-UX.
2502         * modules/vma-iter (configure.ac): Check for 'pstat_getprocvm'.
2503         * lib/vma-iter.c (vma_iterate): On HP-UX, use pstat_getprocvm().
2504         * lib/vma-iter.h (VMA_ITERATE_SUPPORTED): Define also on HP-UX.
2505         * lib/get-rusage-as.c: Update comment about HP-UX.
2506         * lib/get-rusage-data.c: Likewise.
2507         (get_rusage_data): Use get_rusage_data_via_setrlimit.
2509 2017-03-14  Bruno Haible  <bruno@clisp.org>
2511         limits-h: Make it work with HP-UX cc.
2512         * lib/limits.in.h (LLONG_MIN, LLONG_MAX, ULLONG_MAX): Define if not
2513         defined.
2515 2017-03-14  Bruno Haible  <bruno@clisp.org>
2517         Fix test failures on DragonFlyBSD.
2518         * tests/test-localeconv.c (main): Treat DragonFlyBSD like FreeBSD.
2519         * tests/test-select.h (test_bad_fd): Likewise.
2520         * tests/test-get-rusage-data.c (main): Treat DragonFlyBSD like OpenBSD.
2522 2017-03-14  Bruno Haible  <bruno@clisp.org>
2524         freadahead: Silence warning on DragonFlyBSD.
2525         * lib/freadahead.c (__sreadahead): Declare ourselves.
2527 2017-03-14  Bruno Haible  <bruno@clisp.org>
2529         vma-iter: Add comment about AIX.
2530         * lib/vma-iter.c: Add comment about why this module is not implemented
2531         on AIX.
2533 2017-03-14  Paul Eggert  <eggert@cs.ucla.edu>
2535         snippets: move unadjusted snippet sources to lib
2536         Problem reported by Michal Privoznik in:
2537         http://lists.gnu.org/archive/html/bug-gnulib/2017-03/msg00039.html
2538         * lib/_Noreturn.h: Rename from build-aux/snippet/_Noreturn.h.
2539         * lib/arg-nonnull.h: Rename from build-aux/snippet/arg-nonnull.h.
2540         * lib/c++defs.h: Rename from build-aux/snippet/c++defs.h.
2541         * lib/unused-parameter.h: Rename from
2542         build-aux/snippet/unused-parameter.h.
2543         * lib/warn-on-use.h: Rename from build-aux/snippet/warn-on-use.h.
2544         * modules/snippet/_Noreturn (Files:, _NORETURN_H):
2545         * modules/snippet/arg-nonnull (Files:, ARG_NONNULL_H):
2546         * modules/snippet/c++defs (Files:, CXXDEFS_H):
2547         * modules/snippet/unused-parameter (Files:, UNUSED_PARAMETER_H):
2548         * modules/snippet/warn-on-use (Files: WARN_ON_USE_H):
2549         Adjust to file renamings.
2551 2017-03-14  Mathieu Lirzin  <mthl@gnu.org>
2553         gnulib-tool: don't automatically distribute files from top/
2554         * gnulib-tool (func_get_automake_snippet_unconditional): To be able to
2555         not distribute top/README-release by default, don't distribute files
2556         from top/ unconditionally.
2557         * modules/gnumakefile (Makefile.am): Distribute top/GNUmakefile.
2558         * modules/maintainer-makefile (Makefile.am): Distribute top/maint.mk.
2560 2017-03-14  Paul Eggert  <eggert@cs.ucla.edu>
2562         gnulib-tool: fix typo in comment output
2563         * gnulib-tool (func_import): Fix typo with previous change.
2565         snippets: work around GNU Make 3.82 VPATH
2566         When using 'gnulib-tool --gnu-make' on Emacs, and building
2567         the resulting tarball on Solaris 10 which bundles GNU Make 3.82,
2568         an out-of-source (VPATH) build failed because the sans-copyright
2569         snippet file was not built before the file that used it.
2570         Presumably this is some sort of VPATH thing.  Work around the
2571         problem by using the original snippet, i.e., don’t bother to
2572         remove its copyright notice.
2573         * modules/snippet/_Noreturn, modules/snippet/link-warning:
2574         Don’t assume Automake in comments.  Omit long-incorrect comment.
2575         * modules/snippet/arg-nonnull (BUILT_SOURCES, arg-nonnull.h)
2576         (MOSTLYCLEANFILES):
2577         * modules/snippet/c++defs (BUILT_SOURCES, c++defs.h)
2578         (MOSTLYCLEANFILES):
2579         * modules/snippet/unused-parameter (BUILT_SOURCES, unused-parameter.h)
2580         (MOSTLYCLEANFILES):
2581         * modules/snippet/warn-on-use (BUILT_SOURCES, warn-on-use.h)
2582         (MOSTLYCLEANFILES):
2583         Remove.
2584         * modules/snippet/arg-nonnull (ARG_NONNULL_H):
2585         * modules/snippet/c++defs (CXXDEFS_H):
2586         * modules/snippet/unused-parameter (UNUSED_PARAMETER_H):
2587         * modules/snippet/warn-on-use (WARN_ON_USE_H):
2588         Don’t bother to remove the copyright notice; just use the
2589         original snippet as-is.
2591 2017-03-13  Paul Eggert  <eggert@cs.ucla.edu>
2593         gnulib-tool: minor --gnu-make fixups
2594         * gnulib-tool (func_emit_lib_Makefile_am):
2595         Remove useless code that was a blind alley during implementation.
2596         Problem reported by Thien-Thi Nguyen in:
2597         http://lists.gnu.org/archive/html/bug-gnulib/2017-03/msg00029.html
2598         (func_import): Note the "--gnu-make" option in the output comment.
2600 2017-03-12  Paul Eggert  <eggert@cs.ucla.edu>
2602         gnulib-tool: new option --gnu-make
2603         This is for applications like GNU Emacs that use GNU Make
2604         features instead of Automake.
2605         * doc/gnulib-tool.texi (Initial import): Mention --gnu-make.
2606         * doc/gnulib.texi (Unit test modules, Build robot for gnulib):
2607         Do not assume Automake.
2608         * gnulib-tool (func_determine_path_separator)
2609         (func_modules_transitive_closure, func_update_file)
2610         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am)
2611         (func_import): Add support for --gnu-make.
2613 2017-03-11  Paul Eggert  <eggert@cs.ucla.edu>
2615         gnulib-common.m4: avoid aclocal.m4 bloat
2616         * m4/gnulib-common.m4 (gl_PROG_AR_RANLIB):
2617         Hide AM_PROG_AR from aclocal, so that aclocal does not
2618         install irrelevant macro definitions into aclocal.m4.
2620 2017-03-10  Bruno Haible  <bruno@clisp.org>
2622         vma-iter: Let callers know about error.
2623         * lib/vma-iter.h (vma_iterate): Return 'int', not 'void'.
2624         * lib/vma-iter.c (vma_iterate): Return -1 in case of error.
2626 2017-03-05  Bruno Haible  <bruno@clisp.org>
2628         Fix value of LD for 64-bit compilers on AIX.
2629         * m4/lib-ld.m4 (AC_LIB_PROG_LD): For 64-bit compilers on AIX
2630         ("gcc -maix64" and "xlc -q64"), add option -b64 to $LD.
2632 2017-03-04  Paul Eggert  <eggert@cs.ucla.edu>
2634         dtotimespec: simplify
2635         * lib/dtotimespec.c (dtotimespec): Simplify.
2637 2017-03-04  Bruno Haible  <bruno@clisp.org>
2639         test-calloc-gnu: Reenable test also for GCC 7.
2640         * tests/test-calloc-gnu.c (eight): New function.
2641         (main): Don't skip test; use eight() instead.
2643 2017-03-04  Jim Meyering  <meyering@fb.com>
2645         test-calloc-gnu: port to GCC7
2646         * tests/test-calloc-gnu.c (main) [__GNUC__ >= 7]: Skip a test
2647         that attempts to calloc more than SIZE_MAX bytes, because GCC7
2648         and newer would detect that at compilation time.
2650 2017-03-04  Bruno Haible  <bruno@clisp.org>
2652         tests: Avoid compiler warning about uses of null_ptr.
2653         * tests/null-ptr.h: New file.
2654         * tests/test-canonicalize.c: Include null-ptr.h.
2655         (null_ptr): Remove function.
2656         * tests/test-canonicalize-lgpl.c: Likewise.
2657         * tests/test-memmem.c: Likewise.
2658         * tests/test-ptsname_r.c: Likewise.
2659         * modules/canonicalize-tests (Files): Add tests/null-ptr.h.
2660         * modules/canonicalize-lgpl-tests: Likewise.
2661         * modules/memmem-tests: Likewise.
2662         * modules/ptsname_r-tests: Likewise.
2663         Reported by Jim Meyering.
2665 2017-03-03  Bruno Haible  <bruno@clisp.org>
2667         doc: Mention Mac OS X deficiencies regarding semaphores.
2668         * doc/posix-functions/sem_init.texi: Mention status on Mac OS X.
2669         * doc/posix-functions/sem_destroy.texi: Likewise.
2670         * doc/posix-functions/sem_getvalue.texi: Likewise.
2672 2017-03-03  Bruno Haible  <bruno@clisp.org>
2674         lock tests: Fix test failure on Mac OS X (regression from 2017-01-05).
2675         Reported by Assaf Gordon <assafgordon@gmail.com> via
2676         Pádraig Brady <P@draigBrady.com>.
2677         * tests/test-lock.c: On Mac OS X, use named semaphores, not unnamed
2678         semaphores.
2679         (USE_NAMED_SEMAPHORE, USE_UNNAMED_SEMAPHORE): New macros.
2680         (atomic_int_semaphore): New macro.
2682 2017-02-28  Bruno Haible  <bruno@clisp.org>
2684         perror tests: Tweak for z/OS.
2685         Reported by Daniel Richard G. <skunk@iskunk.org>.
2686         * tests/test-perror.sh: Don't fail z/OS style perror output.
2688 2017-02-26  Bruno Haible  <bruno@clisp.org>
2690         nproc: Refactor large function.
2691         * lib/nproc.c (num_processors_ignoring_omp): New function, extracted
2692         from num_processors.
2693         (num_processors): In this function, only deal with OMP.
2695 2017-02-26  Pádraig Brady  <P@draigBrady.com>
2697         nproc: adjust handling of OpenMP environment variables
2698         to match the return value from omp_get_num_threads(), i.e.:
2699          - honor OMP_THREAD_LIMIT without OMP_NUM_THREADS
2700          - Treat 0 as an invalid value and ignore
2701         Also remove the call to omp_get_num_threads() because
2702         it's ineffective without the omp pragmas in place.
2703         * lib/nproc.c (parse_omp_threads): Return 0 if specified,
2704         so that it can be ignored.
2705         (num_processors): Honor OMP_THREAD_LIMIT even without
2706         OMP_NUM_THREADS being set.  Also fix a typo in the environment
2707         variable being checked, from the previous recent commit.
2709 2017-02-26  Pádraig Brady  <P@draigBrady.com>
2711         nproc: support nested OMP_NUM_THREADS, and OMP_THREAD_LIMIT
2712         * lib/nproc.c (parse_omp_threads): A new function refactored
2713         from num_processors() to support parsing both of the
2714         above environment variables.
2715         (num_processors): Prefer using omp_get_num_threads() with [_OPENMP]
2716         to accurately reflect the current OpenMP nesting level.
2717         Also support the OMP_THREAD_LIMIT environment variable
2718         to limit the max value determined from OMP_NUM_THREADS.
2719         * modules/nproc: Depend on minmax header.
2720         Suggested by Oliver Heimlich.
2722 2017-02-25  Bruno Haible  <bruno@clisp.org>
2724         maintainer-makefile: Fix AC_PROG_SED with autoconf cache.
2725         * m4/gnulib-common.m4 (AC_PROG_SED): Fix AC_CACHE_CHECK invocation.
2727 2017-02-24  Paul Eggert  <eggert@cs.ucla.edu>
2729         ftoastr: port to -Wdouble-promotion
2730         Work around -Wdouble-promotion false alarm in recent GCCs.
2731         * lib/ftoastr.c (PROMOTED_FLOAT): New macro.
2732         (ftoastr_snprintf, FTOASTR): Use it.
2734 2017-02-21  Bruno Haible  <bruno@clisp.org>
2736         lock tests: Fix build failure on GNU/Hurd (regression from 2017-01-05).
2737         Reported by Rene Saavedra <rennes@openmailbox.org> in
2738         https://debbugs.gnu.org/cgi/bugreport.cgi?bug=25821 via Paul Eggert.
2739         * lib/glthread/lock.h: On glibc systems without
2740         PTHREAD_RWLOCK_WRITER_NONRECURSIVE_INITIALIZER_NP, use the fallback
2741         implementation of rwlocks.
2742         * lib/glthread/lock.c: Likewise.
2744 2017-02-20  Bruno Haible  <bruno@clisp.org>
2746         lock tests: Fix build failure on z/OS.
2747         Reported by Daniel Richard G. <skunk@iskunk.org>.
2748         * modules/lock-tests (configure.ac): Test for <semaphore.h>.
2749         * tests/test-lock.c (USE_SEMAPHORE): Don't set if <semaphore.h> does not
2750         exist.
2752 2017-02-19  Bruno Haible  <bruno@clisp.org>
2754         havelib: Prefer the search path of /usr/bin/gcc over the one of $CC.
2755         This helps when CC=clang.
2756         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): Prefer the search path
2757         of /usr/bin/gcc.
2759         havelib: Support overriding the result of AC_LIB_PREPARE_MULTILIB.
2760         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): Use AC_CACHE_CHECK.
2762 2017-02-19  Bruno Haible  <bruno@clisp.org>
2764         gnulib-tool: Avoid conflict of havelib-tests with --single-configure.
2765         * gnulib_tool (func_create_testdir): Avoid havelib-tests when
2766         --with-tests --single-configure is specified.
2768 2017-02-16  Tim Rühsen  <tim.ruehsen@gmx.de>
2770         users.txt: Update links, use HTTPS where possible
2771         * users.txt: Updated to HTTPS where possible,
2772         fixed some links to new locations.
2774 2017-02-16  Bruno Haible  <bruno@clisp.org>
2776         xbinary-io: Fix inlining.
2777         * lib/xbinary-io.c: Set XBINARY_IO_INLINE, not XSETMODE_INLINE.
2779 2017-02-16  Paul Eggert  <eggert@cs.ucla.edu>
2781         xbinary-io: rename from xsetmode
2782         This patch is taken from suggestions by Bruno Haible in:
2783         http://lists.gnu.org/archive/html/bug-gnulib/2017-02/msg00060.html
2784         http://lists.gnu.org/archive/html/bug-gnulib/2017-02/msg00061.html
2785         * lib/binary-io.c (__gl_setmode_check): Set errno to EINVAL,
2786         not ENOTTY, when it is an inappropriate device.
2787         * lib/binary-io.h (SET_BINARY): Resurrect.
2788         * lib/xbinary-io.c: Rename from lib/xsetmode.c.
2789         (xset_binary_mode_error): Rename from xsetmode_error.
2790         * lib/xbinary-io.h: Rename from lib/xsetmode.h.
2791         (xset_binary_mode): Rename from xsetmode.
2792         All uses changed.
2793         * modules/xbinary-io: Rename from modules/xsetmode.
2794         Update file names.
2795         * tests/test-binary-io.sh (tmpfiles): Remove no-longer-used file name.
2796         * NEWS: Update to match revised behavior.
2798 2017-02-15  Paul Eggert  <eggert@cs.ucla.edu>
2800         tests: Adjust to recent SET_BINARY change
2801         * tests/test-binary-io.c (main):
2802         * tests/test-binary-io.sh: Remove test for SET_BINARY.
2803         * tests/test-closein.c, tests/test-fflush2.c, tests/test-ftell.c:
2804         * tests/test-ftello.c, tests/test-nonblocking-pipe-child.c:
2805         * tests/test-yesno.c: Use set_binary_mode, not SET_BINARY.
2807         xsetmode: new module
2808         This is to fix a problem noted by Eric Blake.
2809         Code was using xfreopen to change files to binary mode, but this
2810         fails for stdout when in append mode.  Such code should use
2811         xsetmode instead.
2812         * NEWS: Document incompatible changes to binary-io module.
2813         * lib/binary-io.c (__gl_setmode_check) [__DJGPP__ || __EMX__]:
2814         New function.
2815         * lib/binary-io.h (__gl_setmode): Rename from set_binary_mode.
2816         (set_binary_mode): New function, which also checks for tty.
2817         * lib/xsetmode.c, lib/xsetmode.h, modules/xsetmode: New files.
2819 2017-02-14  Paul Eggert  <eggert@cs.ucla.edu>
2821         headers: fix begin-end typos
2822         * lib/mbfile.h, lib/se-selinux.in.h: Fix typos by replacing
2823         _GL_INLINE_HEADER_BEGIN with _GL_INLINE_HEADER_END.
2825         selinux-h: port to PGI 16.10
2826         * lib/se-selinux.in.h: Don't assume that include_next skips over
2827         duplicate -I DIR options.
2829         argp: port to PGI 16.10
2830         * lib/argp-pin.c (dummy): Declare as needed to make file nonempty.
2832 2017-02-13  Darshit Shah  <darnir@gnu.org>
2834         unicase: Update function protoype to match definition.
2835         * lib/unicase/special-casing.h (gl_unicase_special_lookup): Gperf 3.1
2836         uses 'size_t' as the datatype for the 'len' parameter in the functions
2837         it generates. Update the prototype specified here to match the newly
2838         generated function.
2840 2017-02-12  Bruno Haible  <bruno@clisp.org>
2842         times test: Avoid gcc warnings on Linux/x32.
2843         * tests/test-times.c (main): Really cast printf arguments from clock_t
2844         to 'long int'.
2846 2017-02-12  Paul Eggert  <eggert@cs.ucla.edu>
2848         glob: port better to emscripten
2849         Problem reported by Bruno Haible in:
2850         http://lists.gnu.org/archive/html/bug-gnulib/2017-02/msg00031.html
2851         * lib/glob.c (glob): Don't assume HAVE_GETPWNAM_R || _LIBC.
2853 2017-02-11  Bruno Haible  <bruno@clisp.org>
2855         host-cpu-c-abi: Support for 64-bit AIX, 32-bit armhf on arm64, hppa64.
2856         * m4/host-cpu-c-abi.m4 (gl_HOST_CPU_C_ABI): Define also HOST_CPU.
2857         For the x32 ABI on x86_64, set HOST_CPU_C_ABI to 'x86_64-x32' and define
2858         both __x86_64__ and __x86_64_x32__. For the ELFv2 ABI on powerpc64,
2859         define both __powerpc64__ and __powerpc64_elfv2__. Recognize 64-bit
2860         compilation on AIX. Recognize 32-bit compilation on arm64/Linux.
2861         Distinguish hppa64 from hppa.
2863 2017-02-10  Bruno Haible  <bruno@clisp.org>
2865         search: Don't assume that tsearch() exists if 'VISIT' is defined.
2866         * m4/search_h.m4 (gl_SEARCH_H): Determine HAVE_TYPE_VISIT.
2867         * modules/search (Makefile.am): Substitute HAVE_TYPE_VISIT.
2868         * lib/search.in.h (VISIT): Define if HAVE_TYPE_VISIT is 0.
2870 2017-02-09  Bruno Haible  <bruno@clisp.org>
2872         doc: Don't mention obsolete AC_LIBTOOL_WIN32_DLL macro.
2873         * doc/gnulib.texi (Libtool and Windows): Recommend
2874         LT_INIT([win32-dll]) instead of AC_LIBTOOL_WIN32_DLL.
2875         Reported by Reuben Thomas <rrt@sc3d.org>.
2877 2017-02-08  Paul Eggert  <eggert@cs.ucla.edu>
2879         stddef-tests: port to SIZE_MAX <= INT_MAX
2880         * tests/test-stddef.c: Include <limits.h>, for INT_MAX.
2881         Do not assume that INT_MAX < SIZE_MAX.
2883 2017-02-01  Bruno Haible  <bruno@clisp.org>
2885         lock tests: Fix link error.
2886         * modules/lock-tests (test_rwlock1_LDADD): Add @YIELD_LIB@.
2887         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
2889 2017-01-31  Bruno Haible  <bruno@clisp.org>
2891         lock: Fix link error (regression from 2017-01-05).
2892         * lib/glthread/lock.h [USE_POSIX_THREADS_WEAK]: Declare also
2893         pthread_rwlockattr_init, pthread_rwlockattr_setkind_np,
2894         pthread_rwlockattr_destroy weak.
2895         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
2897 2017-01-30  Paul Eggert  <eggert@cs.ucla.edu>
2899         Port to PGI 16.10 x86-64
2900         This patch fixes one real bug in gl_anylinked_list2.h, along with
2901         some minor glitches that are not bugs.  It does not silence PGI’s
2902         thousands of bogus warnings when compiling test-intprops.c.
2903         Fortunately, the warnings do not cause a failure.
2904         * lib/c-ctype.h (_C_CTYPE_LOWER_A_THRU_F_N, _C_CTYPE_LOWER_N):
2905         Rename parameter to avoid PGI warning about ‘#define f(n) 'n'’.
2906         My goodness, PGI goes back a long ways - this predates C89!
2907         * lib/gl_anylinked_list2.h (ASYNCSAFE): Fix bug caught by PGI.
2908         For example, ASYNCSAFE (const void *) should expand to
2909         ‘const void *volatile’, not to ‘volatile const void *’.
2910         * lib/spawn.in.h (POSIX_SPAWN_USEVFORK): Don't define if already defined.
2911         * lib/verify.h (verify) [!__GNUC__]:
2912         Use shorter albeit meaningless string to bypass silly compiler limits.
2913         * tests/infinity.h (Infinityf, Infinityd, Infinityl) [__PGI]:
2914         * tests/nan.h (NaNf, NaNd, NaNl):
2915         Use static functions to avoid misguided compiler diagnostics.
2916         Is there some reason we don’t use static functions on all platforms?
2918 2017-01-20  Paul Eggert  <eggert@cs.ucla.edu>
2920         parse-datetime: handle timezones reentrantly
2921         This API change was prompted by a report by Pádraig Brady in:
2922         https://bug.debian.org/851934#10
2923         To help fix the bug, make parse_datetime2 more reentrant.
2924         * NEWS: Document this incompatible change.
2925         * lib/parse-datetime.h, lib/parse-datetime.y (parse_datetime2):
2926         Add two arguments, the timezone and the timezone name.
2927         All callers changed.  If TZ="..." is specified, use it for
2928         calculating defaults.
2929         * lib/parse-datetime.y: Don't include xalloc.h or use xmalloc, as
2930         this code should be usable in a library.
2931         (mktime_ok, get_effective_timezone):
2932         Accept timezone arg too.  All callers changed.
2933         (get_tz): Remove.
2934         (get_effective_timezone): Check for failures.
2936 2017-01-20  Eric Blake  <eblake@redhat.com>
2938         localename: port to cygwin 2.6
2939         * lib/localename.c (gl_locale_name_thread_unsafe): Add clause for
2940         Cygwin.
2941         * modules/localename (Depends-on): Add extensions, since
2942         NL_LOCALE_NAME() is not visible without it.
2944 2017-01-17  Pádraig Brady  <P@draigBrady.com>
2946         parse-datetime: fix dependence on AC_PROG_SED
2947         * modules/parse-datetime: Use `sed` directly like all other modules.
2948         Reported by J William Piggott
2950 2017-01-16  Paul Eggert  <eggert@cs.ucla.edu>
2952         intprops: update doc URLs
2953         * doc/intprops.texi (Integer Range Overflow): Update URLs.
2955 2017-01-16  Bruno Haible  <bruno@clisp.org>
2957         host-cpu-c-abi: Add support for armhf, arm64, x32, s390x.
2958         * m4/host-cpu-c-abi.m4 (gl_HOST_CPU_C_ABI): Require gl_C_ASM. On x86_64
2959         systems, distinguish x86_64 and x32. On arm systems, distinguish arm,
2960         armhf, arm64, and no longer distinguish arm and armel. On s390x systems,
2961         distinguish s390 and s390x.
2962         * modules/host-cpu-c-abi (Files): Add m4/asm-underscore.m4.
2963         * NEWS: Mention the change regarding 'armel'.
2965 2017-01-15  Paul Eggert  <eggert@cs.ucla.edu>
2967         localeinfo: case_folded_counterparts and WEOF
2968         * NEWS: Document this.
2969         * lib/localeinfo.c (case_folded_counterparts):
2970         First arg is now wint_t, not wchar_t.  This generalizes the
2971         function to also work on WEOF, where it returns 0.
2973         dfa: port to gcc -fsanitize=undefined
2974         * lib/dfa.c (copy): Don’t pass NULL with size 0 to memcpy,
2975         as this runs afoul of gcc -fsanitize=undefined.
2977 2017-01-14  Paul Eggert  <eggert@cs.ucla.edu>
2979         strftime: %z is -00 if unknown
2980         * lib/strftime.c (DO_TZ_OFFSET): Omit arg 'negative'; it's now
2981         the caller's responsibility to set 'negative_number'.  All uses changed.
2982         (__strftime_internal): Put '-' before a zero UTC offset if the time
2983         zone abbreviation starts with "-", which is the recently-introduced
2984         tzdb convention for an unknown UTC offset that is arbitrarily set to 0.
2985         * tests/test-strftime.c: Test for this.
2987 2017-01-10  Paul Eggert  <eggert@cs.ucla.edu>
2989         dfa: port to older GCC
2990         Problem reported by Assaf Gordon in:
2991         http://lists.gnu.org/archive/html/bug-gnulib/2017-01/msg00103.html
2992         * modules/c99: New module.  This merely attempts to use the latest
2993         C version, which should be enough to solve this particular problem.
2994         The idea is to document which Gnulib modules assume C99 or later.
2995         * modules/dfa (Depends-on): Add it.
2997 2017-01-10  Bruno Haible  <bruno@clisp.org>
2999         Update DEPENDENCIES.
3000         * DEPENDENCIES: List only https URLs. Update recommended version for
3001         autoconf, automake, gperf.
3003 2017-01-10  Jim Meyering  <meyering@fb.com>
3005         maint.mk: enforce spelling of "timestamp" (i.e., no space)
3006         * top/maint.mk (prohibit_undesirable_word_seq_RE_): Also
3007         disallow /\btime\s+stamps?\b/.  Prefer "timestamp".
3009 2017-01-10  Paul Eggert  <eggert@cs.ucla.edu>
3011         dfa: minor simplification with emptyset
3012         * lib/dfa.c (build_state): Simplify by using emptyset.
3014 2017-01-09  Paul Eggert  <eggert@cs.ucla.edu>
3016         dfa: shrink constraints from 4 bits to 3
3017         * lib/dfa.c (newline_constraint, letter_constraint)
3018         (other_constraint, prev_newline_dependent)
3019         (prev_letter_dependent, NO_CONSTRAINT, BEGLINE_CONSTRAINT)
3020         (ENDLINE_CONSTRAINT, BEGWORD_CONSTRAINT, ENDWORD_CONSTRAINT)
3021         (LIMWORD_CONSTRAINT, NOTLIMWORD_CONSTRAINT):
3022         Constraints need only 3 bits, not 4.  Using smaller integers
3023         shrinks the code a bit and makes grep a tad faster on x86-64.
3025         dfa: omit unnecessary ptrdiff_t check
3026         * lib/dfa.c (alloc_position_set): Do not worry about ptrdiff_t
3027         overflow, since xnmalloc does that now.
3029         dfa: omit unnecessary allocation
3030         * lib/dfa.c (dfaanalyze): Do not allocate follow set, since
3031         an all-zero follow set works just fine.
3033         dfa: omit unused local
3034         * lib/dfa.c (build_state): Fix up recent change.
3036         maint: remove stray .texi files
3037         Although these were superseded by other files like
3038         doc/posix-functions/ctime.texi, the old files were not removed.
3039         * doc/ctime.texi, doc/inet_ntoa.texi: Remove.
3041 2017-01-08  Paul Eggert  <eggert@cs.ucla.edu>
3043         getprogname: fix port to IRIX
3044         * lib/getprogname.c (getprogname) [__sgi]:
3045         Don't dump core if malloc returns NULL.
3047         dfa: fix reallocation bug when matching newlines
3048         Problem reported for sed by S. Gilles (Bug#25390).
3049         * lib/dfa.c (realloc_trans_if_necessary): Move earlier.
3050         (dfastate): Reallocate before moving any newline transition ...
3051         (build_state): ... instead of reallocating here, where it is too late.
3053 2017-01-07  Tim Rühsen  <tim.ruehsen@gmx.de>  (tiny change)
3055         Avoid -Wundef warning about undefined WINDOWS_SOCKETS.
3056         * lib/sockets.h: Test if WINDOWS_SOCKETS is defined.
3058 2017-01-07  Tim Rühsen  <tim.ruehsen@gmx.de>  (tiny change)
3060         Avoid -Wundef warning about undefined __USE_FILE_OFFSET64.
3061         * lib/glob-libc.h: Test if __USE_FILE_OFFSET64 is defined.
3063 2017-01-07  Bruno Haible  <bruno@clisp.org>
3065         stdioext: Port to Minix 3.2 and newer.
3066         * lib/stdio-impl.h: Treat __minix like the newest NetBSD.
3067         * lib/fseeko.c (fseeko): Likewise.
3068         Reported by Nelson Beebe via Paul Eggert.
3070 2017-01-06  Paul Eggert  <eggert@cs.ucla.edu>
3072         getprogname: port to IRIX
3073         * lib/getprogname.c (getprogname): Port to IRIX.
3074         Based on an idea by Bastien Roucariès at:
3075         http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00096.html
3076         via code from Bruno Haible at:
3077         https://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00249.html
3079         localename-tests: port to NetBSD 7
3080         Problem reported by Nelson H. F. Beebe.
3081         * tests/test-localename.c:
3082         Test newlocale and uselocale only if both exist.
3084         glob, intprops, xalloc: work around Clang bug
3085         Work around LLVM bug 16404, which is still not fixed.
3086         https://llvm.org/bugs/show_bug.cgi?id=16404
3087         Problem reported by Nelson H. F. Beebe.
3088         * lib/glob.c, lib/intprops.h, lib/xalloc-oversized.h (__has_builtin):
3089         Remove.
3090         * lib/glob.c (size_add_wrapv):
3091         * lib/intprops.h (_GL_HAS_BUILTIN_OVERFLOW, _GL_HAS_BUILTIN_OVERFLOW_P):
3092         * lib/xalloc-oversized.h (xalloc_oversized):
3093         Do not use overflow builtins if Clang.
3095         dfa: fix 'return' typo
3096         Problem reported by Nelson H. F. Beebe.
3097         * lib/dfa.c (merge): Fix typo that Sun compilers rejected.
3099 2017-01-05  Pádraig Brady  <P@draigBrady.com>
3101         parse-datetime: fix generated paths for coverage files
3102         * modules/parse-datetime: Adjust the paths for parse-datetime.y
3103         within parse-datetime.c, so that gcc generates appropriate .gcno
3104         files, allowing lcov to proceed without error.  Previously it
3105         would error trying to find "lib/lib/parse-datetime.y".
3107 2017-01-05  Pádraig Brady  <P@draigBrady.com>
3109         maint.mk: support parallel execution of coverage
3110         * top/maint.mk (coverage): Run dependencies serially,
3111         thus supporting parallel processing of each one,
3112         particularly build-coverage, which builds and runs tests.
3114 2017-01-05  Bruno Haible  <bruno@clisp.org>
3116         lock tests: Prefer semaphore over mutex.
3117         * tests/test-lock.c (USE_SEMAPHORE): New constant.
3118         (struct atomic_int, init_atomic_int, get_atomic_int_value,
3119         set_atomic_int_value) [USE_SEMAPHORE]: Define using a POSIX semaphore.
3120         Suggested by Torvald Riegel <triegel@redhat.com>.
3122 2017-01-05  Bruno Haible  <bruno@clisp.org>
3124         lock: Provide guarantee to avoid writer starvation for rwlocks.
3125         The rationale is: 1) Read-preferring read-write locks are prone to
3126         writer starvation if the number of reader threads multiplied by the
3127         percentage of time they have the lock held is too high. 2) Write-
3128         preferring read-write locks are the only reliable way to avoid this.
3129         3) There have been reports of 'test-lock' hanging on glibc systems
3130         http://lists.gnu.org/archive/html/bug-gnulib/2017-01/msg00009.html,
3131         and glibc indeed implements read-preferring rwlocks by default, see
3132         http://man7.org/linux/man-pages/man3/pthread_rwlockattr_setkind_np.3.html
3133         and https://sourceware.org/bugzilla/show_bug.cgi?id=13701 .
3134         * m4/pthread_rwlock_rdlock.m4: New file.
3135         * m4/lock.m4 (gl_LOCK): Invoke gl_PTHREAD_RWLOCK_RDLOCK_PREFER_WRITER.
3136         * lib/glthread/lock.h [USE_POSIX_THREADS]: Test
3137         HAVE_PTHREAD_RWLOCK_RDLOCK_PREFER_WRITER. Use a different implementation
3138         of rwlock initialization on glibc systems without
3139         HAVE_PTHREAD_RWLOCK_RDLOCK_PREFER_WRITER. Use a different implementation
3140         of rwlocks altogether on non-glibc systems without
3141         HAVE_PTHREAD_RWLOCK_RDLOCK_PREFER_WRITER.
3142         [USE_PTH_THREADS]: Use a different implementation of rwlocks altogether.
3143         * lib/glthread/lock.c [USE_POSIX_THREADS]
3144         (glthread_rwlock_init_for_glibc): New function.
3145         [USE_POSIX_THREADS] (glthread_rwlock_rdlock_multithreaded): Update
3146         comment.
3147         [USE_PTH_THREADS]: New implementation of rwlocks.
3148         [USE_WINDOWS_THREADS] (glthread_rwlock_rdlock_func): Prefer writers over
3149         readers.
3150         * modules/lock (Files): Add m4/pthread_rwlock_rdlock.m4.
3151         (Depends-on): Add 'extensions'.
3152         * tests/test-rwlock1.c: New file.
3153         * lock-tests (Files): Add it.
3154         (Depends-on): Add usleep.
3155         (Makefile.am): Add test-rwlock1 to the tests.
3157 2017-01-05  Bruno Haible  <bruno@clisp.org>
3159         thread: Fix pth port.
3160         * lib/glthread/thread.h (pth_init): Declare weak.
3161         (glthread_create, glthread_sigmask, glthread_join, gl_thread_self,
3162         gl_thread_exit): Make sure Pth is initialized before invoking any Pth
3163         function.
3165 2017-01-04  Assaf Gordon  <assafgordon@gmail.com>
3167         parse-datetime: fix debug message on lone year number
3168         Input dates such as
3169           date -d "Apr 11 22:59:00 2011"
3170         are parsed as date (Apr 11, with default year 2016), then time, then a
3171         number (2011). Based on the combination of previously seen tokens,
3172         'digits_to_date_time' determines 2011 to be a year value.
3173         This fixes the debug messages to correctly show the updated year.
3174         Before:
3175             $ date --debug -d 'Apr 11 22:59:00 2011'
3176             date: parsed date part: (Y-M-D) 2016-04-11
3177             date: parsed time part: 22:59:00
3178             date: parsed number part: today/this/now
3179         After:
3180             $ ./src/date --debug -d 'Apr 11 22:59:00 2011'
3181             date: parsed date part: (Y-M-D) 2016-04-11
3182             date: parsed time part: 22:59:00
3183             date: parsed number part: year: 2011
3184         * lib/parse-datetime.y (struct parser_control): Add 'year_seen',
3185         'debug_year_seen' member fields.
3186         (digits_to_date_time): Update 'year_seen' as needed.
3187         (debug_print_current_time): Inform about year updates.
3188         (parse_datetime2): Initialize year_seen,debug_year_seen member fields.
3190         parse-datetime: fix local timezone debug messages
3191         "Local timezones" are strings that affect only DST relative to the
3192         default timezone. The debug messages in parse-datetime.y printed
3193         wrong information when encountering local timezones.
3194         Examples:
3195         Here EET/EEST are time zones ('zone' token, with values +02:00/+03:00):
3196              TZ=Asia/Tokyo ./src/date --debug -d '2011-12-11 EET'
3197              TZ=Asia/Tokyo ./src/date --debug -d '2011-06-11 EEST'
3198         When the default timezone relates to the zone strings, EET/EEST are
3199         parsed as local timezones (tLOCAL_ZONE), and only change the DST
3200         value (0/1, respectively):
3201              TZ=Europe/Helsinki ./src/date --debug -d '2011-12-11 EET'
3202              TZ=Europe/Helsinki ./src/date --debug -d '2011-06-11 EEST'
3203         * lib/parse-datetime.y (debug_print_current_time): If local timezone
3204         was seen, inform about DST change, don't print actual timezone.
3205         (debug_strfdatetime): If local timezone was seen, use default timezone
3206         (and adjust as needed) instead of using incorrect timezone.
3207         (parse_datetime2): Use correct time-zone source string, and adjust
3208         default timezone as needed.
3210         parse-datetime: add debug warning about DST changes
3211         Incorrect date arithmetic due to daylight saving time (DST) are a
3212         common (false) bug report in coreutils.
3213         Detect two such cases and print a warning:
3214         1. year/month/day adjustments (performed on 'struct tm'),
3215            where 'mktime' returns a different isdst value.
3216         2. hour/minute/seconds/ns adjustments (performed on 'time_t'),
3217            where the result of 'localtime(3)' on the value will return a
3218            different isdst value.
3219         Note: DST changes could be harmless or unnoticeable.
3220         Examples (with 'TZ=America/New_York'):
3221         Unnoticeable: result is 2016-Dec-14
3222            $ date -d '2016-06-15 EDT + 6 months' +%b
3223            Dec
3224         Unnoticeable: result is 2016-Dec-15 11:00:00
3225            $ date -d '2016-06-15 12:00:00 EDT + 6 months' +%F
3226            2016-12-15
3227         This is unexpected:
3228            $ date -d '2016-06-01 EDT + 6 months' +%F
3229            2016-11-30
3230         The new debug warnings will show:
3231            $ ./src/date --debug -d '2016-06-01 EDT + 6 months' +%F
3232            ...
3233            date: warning: daylight saving time changed after date adjustment
3234            ...
3235         * lib/parse-datetime.y (parse_datetime2): Detect DST changes, and
3236         print an appropriate warning message.
3238         parse-datetime: add debug warning about date arithmetic
3239         Date arithmetic are done directly on the fields of 'struct tm',
3240         which can result in invalid dates. Normalization with 'mktime(3)'
3241         will then produce a different date - which might cause unexpected
3242         results.
3243         Examples:
3244           '2016-10-31 - 1 month' => 2016-09-31 normalized to 2016-10-01.
3245           '2016-02-29 + 1 year'  => 2017-02-29 normalized to 2017-03-01.
3246         Note that date normalization is not inherently wrong and not rejected,
3247         as it has legitimate uses:
3248           '2016-12-29 + 5 days' => 2016-12-34 noramlized to 2017-01-03.
3249         If the user asked to adjust months but 'mday' changed,
3250         or user asked to adjust years but 'month' changed - warn about it.
3251             $ ./src/date --debug -d '2016-10-31 - 1 month'
3252             ...
3253             date: warning: when adding relative months/years, \
3254                            it is recommended to specify the 15th of the month
3255             ...
3256             date: warning: month/year adjustment resulted in shifted dates:
3257             date:      adjusted Y M D: 2016 09 31
3258             date:    normalized Y M D: 2010 10 01
3259             ...
3260         * lib/parse-datetime.y (parse_datetime2): Detect such cases and print
3261         a warning message. Improve recommendation of when to use 15 of the
3262         month or noon for date arithmetic.
3264         parse-datetime: fix debug message of relative part after timezone
3265         Relative part (e.g '+8 days') after a timezone string was not
3266         reported (was only reported after a timezone number). Due to the
3267         parser's structure, timezone strings with numbers were handled
3268         separately.
3269         before:
3270              # Timezone number + relative part: OK
3271              $ ./src/date --debug +%F -d '2013-10-30 00:00:00 +00:00 -8 days'
3272              ...
3273              date: parsed relative part: -8 day(s)
3274              # Timezone string + relative part: missing
3275              $ ./src/date --debug +%F -d '2013-10-30 00:00:00 UTC -8 days'
3276              [ missing message ]
3277         After: messages are printed in both cases.
3278         * lib/parse-datetime.y ('zone' token): Call debug_print_relative_time.
3280         parse-datetime: fix incorrect debug message on lone number
3281         A lone number is an absolute value, not a relative time part.
3282         before:
3283            $ date --debug -d '20130101'
3284            date: parsed number part: today/this/now
3285         After:
3286            $ ./src/date --debug -d '20130101'
3287            date: parsed number part: (Y-M-D) 2013-01-01
3288         * lib/parse-datetime.y ('item'/'number' tokens): Call
3289         'debug_print_current_time' instead of 'debug_print_relative_time'.
3291 2017-01-02  Paul Eggert  <eggert@cs.ucla.edu>
3293         doc: modernize for C11 etc.
3294         * doc/gnulib-readme.texi (Portability guidelines): Modernize a bit
3295         for C11, MinGW, etc.  This responds to Paul Smith's question in:
3296         http://lists.gnu.org/archive/html/bug-gnulib/2017-01/msg00014.html
3298         dfa: prefer functions to FETCH_WC macro
3299         * lib/dfa.c (FETCH_WC): Remove, replacing with ...
3300         (fetch_wc, bracket_fetch_wc): ... new functions.  These store the
3301         wint_t result into DFA->lex.wctok instead of to a separate arg.
3302         All callers changed.  Move more local decls closer to where
3303         they're used.
3305         dfa: narrow more local var scopes
3306         * lib/dfa.c: Move more local decls to be more local.
3308         dfa: remove duplicate assignment
3309         Problem reported by Bruno Haible in:
3310         http://lists.gnu.org/archive/html/bug-gnulib/2017-01/msg00007.html
3311         * lib/dfa.c (parse_bracket_exp): Simplify.
3313 2017-01-01  Paul Eggert  <eggert@cs.ucla.edu>
3315         dfa: simplify constraint-dependency checking
3316         * lib/dfa.c (prev_newline_constraint, prev_letter_constraint)
3317         (prev_other_constraint): Remove.
3318         (prev_newline_dependent, prev_letter_dependent):
3319         Simplify, to avoid an unnecessary bitwise AND operation.
3321         dfa: prefer functions and constants to macros
3322         * lib/dfa.c: Prefer constants to macros where either will do.
3323         (streq, isasciidigit, newline_constraint)
3324         (letter_constraint, other_constraint, succeeds_in_context)
3325         (prev_newline_constraint, prev_letter_constraint)
3326         (prev_other_constraint, prev_newline_dependent)
3327         (prev_letter_dependent, accepting, accepts_in_context):
3328         Now static functions instead of function-like macros.
3329         Use lower-case names accordingly.  All uses changed.
3331         dfa: narrow more local var scopes
3332         * lib/dfa.c: Move some more local decls down to nearer where
3333         they're needed.
3335 2016-12-31  Jim Meyering  <meyering@fb.com>
3337         dfa: narrow the scope of many local variables
3338         * lib/dfa.c: Now that we are no longer constrained to c89, move
3339         declarations of many variables (often indices) "down" into the
3340         scope(s) where used or to the point of definition.  This is a
3341         no-semantic-change diff.
3343 2017-01-01  Paul Eggert  <eggert@cs.ucla.edu>
3345         version-etc: new year
3346         * build-aux/gendocs.sh (version):
3347         * doc/gendocs_template:
3348         * doc/gendocs_template_min:
3349         * doc/gnulib.texi:
3350         * lib/version-etc.c (COPYRIGHT_YEAR):
3351         Update copyright dates by hand in templates and the like.
3352         * all files: Run 'make update-copyright'.
3354 2016-12-31  Eric Blake  <eblake@redhat.com>
3356         do-release-commit-and-tag: avoid shell syntax error
3357         * build-aux/do-release-commit-and-tag (curr_br): $branch can
3358         contain spaces when rebasing.
3360         maint.mk: hoist gnulib_dir definition earlier
3361         * top/maint.mk (gnulib_dir): Move near top of file.
3363 2016-12-31  Jim Meyering  <meyering@fb.com>
3365         maint.mk: do not always evaluate intprops-related shell
3366         * top/maint.mk (_intprops_names): Change := to just "=" to avoid
3367         using gnulib_dir undefined (gnulib_dir is defined later in the
3368         file, which will be fixed separately), and besides, there is no
3369         need to incur the cost of this shell invocation for every single
3370         use of this .mk file.  Reported by Eric Blake in
3371         https://lists.gnu.org/archive/html/bug-gnulib/2016-12/msg00137.html
3373 2016-12-30  Jim Meyering  <meyering@fb.com>
3375         maint.mk: improve sc_prohibit_intprops_without_use
3376         * top/maint.mk (_intprops_names): Don't hard-code the list of
3377         symbol names.  Instead, derive it on the fly.
3379 2016-12-30  Paul Eggert  <eggert@cs.ucla.edu>
3381         dfa: shorten sbit, success
3382         * lib/dfa.c (struct regex_syntax.sbit):
3383         (struct dfa.success): Use char, not int, for array elements, since
3384         they are all in the range 0..7.
3386         dfa: simplify multibyte_prop etc.
3387         This follows up on a change made when dfa.c was in grep, namely grep
3388         commit c797046c7c13c2647182b919a79a4c5b4ecf82b1
3389         dated 2015-08-12 07:35:03 -0700, which removed unused multibyte support.
3390         That earlier simplification allows for some more simplification
3391         and trimming down here.
3392         * lib/dfa.c (struct mb_char_classes): New member nchars_alloc.
3393         (struct lexer_state): New mamber brack.
3394         (struct dfa, addtok_mb): multibyte_prop elements are now char, not int,
3395         since they must be in the range 0..3 now.
3396         Remove members mbcsets, nmbcsets, mbcsets_alloc, since
3397         the brack member now supersedes them.
3398         (parse_bracket_exp): Update dfa->lex.brack instead of dfa->mbcsets.
3399         (addtok): Use dfa->lex.brack instead of dfa->mbcsets.
3400         (dfaparse): Remove unnecessary initializations of already-0 storage.
3401         (free_mbdata): Free d->lex.brack.chars instead of d->mbcsets.
3402         (dfassbuild): No need to clear sup->mbcsets.
3404         dfa: minor performance tweak
3405         * lib/dfa.c (setbit_wc): Test < 0, not == EOF.
3407         dfa: wrap charclass inside a struct
3408         On my platform (gcc Ubuntu 5.4.0-6ubuntu1~16.04.4 x86-64,
3409         en_US.utf8 locale) this makes 'grep -Fi -f list.txt list.txt >out'
3410         about 5% faster, where list.txt is generated by 'aspell dump
3411         master | head -n 100000 >list.txt'.  See Bug#22239.
3412         * lib/dfa.c (charclass): Wrap inside a struct.  All uses changed.
3413         (CHARCLASS_INIT, tstbit, setbit, clrbit, zeroset, fillset, notset)
3414         (equal, emptyset, charclass_index, setbit_wc, setbit_case_fold_c):
3415         Adjust to this, e.g., by using charclass * rather than charclass.
3416         All callers changed as needed.
3417         (copyset): Remove.  All uses changed to simple assignment.
3418         (parse_bracket_exp): Use zeroset instead of memset.
3420 2016-12-30  Jim Meyering  <meyering@fb.com>
3422         maint.mk: update list of intprops.h symbol names
3423         * top/maint.mk (_intprops_names): Regenerate the list of symbol names.
3424         This avoids a false failure of the sc_prohibit_intprops_without_use
3425         rule in grep.
3427 2016-12-29  Eric Blake  <eblake@redhat.com>
3429         getopt: fix parallel test failure
3430         * tests/test-getopt-posix.c (TEST_GETOPT_TMP_NAME): Set name.
3431         * tests/test-getopt-gnu.c (TEST_GETOPT_TMP_NAME): Likewise.
3432         * tests/test-getopt-main.h (main): Use different file names
3433         in case test-getopt-gnu and test-getopt-posix run in parallel.
3435 2016-12-29  Paul Eggert  <eggert@cs.ucla.edu>
3437         xalloc: x2nrealloc check for ptrdiff_t overflow
3438         * lib/xalloc.h (x2nrealloc): Check for ptrdiff_t overflow, too.
3439         * modules/xalloc, modules/xvasprintf (Depends-on): Add stdint.
3441 2016-12-24  Bruno Haible  <bruno@clisp.org>
3443         lock test: Fix performance problem on multi-core machines.
3444         * tests/test-lock.c (USE_VOLATILE): New macro.
3445         (struct atomic_int): New type.
3446         (init_atomic_int, get_atomic_int_value, set_atomic_int_value): New
3447         functions.
3448         (lock_checker_done, rwlock_checker_done, reclock_checker_done): Define
3449         as 'struct atomic_int'.
3450         (lock_checker_thread, test_lock, rwlock_checker_thread, test_rwlock,
3451         reclock_checker_thread, test_recursive_lock): Use the new functions.
3452         Reported by Eric Blake in
3453         https://www.redhat.com/archives/libvir-list/2012-March/msg00854.html
3454         and by Pádraig Brady in
3455         http://lists.gnu.org/archive/html/bug-gnulib/2016-12/msg00117.html.
3457 2016-12-19  Bruno Haible  <bruno@clisp.org>
3459         vma-iter: Fix endless loop on 64-bit Windows.
3460         * lib/vma-iter.c (vma_iterate): On Windows, use 'uintptr_t' instead of
3461         'unsigned long'.
3463 2016-12-19  Bruno Haible  <bruno@clisp.org>
3465         stdint: Fix WINT_MAX to match the gnulib provided wint_t on minw.
3466         * m4/wint_t.m4 (gt_TYPE_WINT_T): Define GNULIB_OVERRIDES_WINT_T here.
3467         * m4/stdint.m4 (gl_STDINT_H): Don't define GNULIB_OVERRIDES_WINT_T.
3468         Invoke gt_TYPE_WINT_T instead.
3469         (gl_STDINT_TYPE_PROPERTIES): Test GNULIB_OVERRIDES_WINT_T.
3470         * modules/stdint (Files): Add m4/wint_t.m4.
3471         * modules/wchar (Makefile.am): Substitute GNULIB_OVERRIDES_WINT_T.
3472         * modules/wctype-h (Makefile.am): Likewise.
3473         * lib/wchar.in.h (wint_t): Override if GNULIB_OVERRIDES_WINT_T is set,
3474         not only on MSVC.
3475         * lib/wctype.in.h (wint_t): Likewise.
3477 2016-12-19  Paul Eggert  <eggert@cs.ucla.edu>
3479         getopt-posix-tests: fix Makefile typo
3480         * modules/getopt-posix-tests (test_getopt_posix_LDADD):
3481         Fix typo: the last ‘_’ was missing in the name.
3482         I suspect that the typo explains this build failure:
3483         https://buildfarm.opencsw.org/buildbot/builders/ggrep-solaris10-sparc/builds/39
3484         although I can’t reproduce the problem on Solaris 10 sparc.
3486 2016-12-18  Paul Eggert  <eggert@cs.ucla.edu>
3488         dfa: improve worst-case 'replace' performance
3489         See my note in Bug#22357#71.
3490         * lib/dfa.c (insert, delete): Rework to avoid duplicate test.
3491         (merge_constrained): New function, which is like
3492         the old 'merge' function, except with a new argument C2.
3493         Simplify the body by avoiding the need for different sections
3494         of code depending on whether one input is exhausted.
3495         (merge): Use the new function.
3496         (delete): Return the constraint of the deleted position,
3497         not the entire position.  Caller changed.
3498         (replace): Change from O(N*(N + log N)) to O(N log N) algorithm.
3500 2016-12-18  Norihiro Tanaka  <noritnk@kcn.ne.jp>
3502         dfa: performance improvement for removal of epsilon closure
3503         See Bug#22357#32.
3504         * lib/dfa.c (delete): Use binary search to find deleted index.
3505         (replace): New function.  It replaces a position with the followed set.
3506         (epsclosure): Replace it with a new algorithm.  Update caller.
3508 2016-12-18  Bruno Haible  <bruno@clisp.org>
3510         Split tests for getopt-posix and getopt-gnu.
3511         * tests/test-getopt-posix.c: New file.
3512         * tests/test-getopt-gnu.c: New file, with code from test-getopt.c.
3513         * tests/test-getopt-main.h: Renamed from tests/test-getopt.c. Remove
3514         stuff moved to test-getopt-gnu.c. Test TEST_GETOPT_GNU instead of
3515         GNULIB_TEST_GETOPT_GNU.
3516         * modules/getopt-posix-tests (Files): Add test-getopt-posix.c,
3517         test-getopt-main.h. Remove test-getopt.c, test-getopt_long.h.
3518         (Makefile.am): Test test-getopt-posix instead of test-getopt.
3519         * modules/getopt-gnu-tests: New file.
3520         * modules/getopt-gnu (configure.ac): Don't define GNULIB_TEST_GETOPT_GNU.
3522 2016-12-18  Bruno Haible  <bruno@clisp.org>
3524         posix-modules: Add options for specific platforms.
3525         * posix-modules (func_usage): Document options --for-mingw, --for-msvc.
3526         (exclude_for_mingw, exclude_for_msvc, exclude): New variables.
3527         Invoke func_tmpdir. Filter out the excludes.
3529 2016-12-18  Bruno Haible  <bruno@clisp.org>
3531         getopt: Fix link error for users of getopt() in <unistd.h>.
3532         * lib/getopt.in.h (getopt etc.): Do the macro definitions also when
3533         __need_getopt is defined. Undefine all macros before defining them.
3534         * modules/getopt (Include): Clarify that including <unistd.h> is also
3535         OK.
3536         * tests/test-getopt.c: Add comment.
3538 2016-12-17  Bruno Haible  <bruno@clisp.org>
3540         getaddrinfo tests: Avoid compilation error on MSVC.
3541         * tests/test-getaddrinfo.c: Don't check the prototypes of freeaddrinfo,
3542         getaddrinfo on native Windows.
3544 2016-12-17  Bruno Haible  <bruno@clisp.org>
3546         getlogin, getlogin_r: Fix link errors on MSVC.
3547         * m4/getlogin.m4 (gl_LIB_GETLOGIN): New macro.
3548         * modules/getlogin (configure.ac): Require gl_LIB_GETLOGIN.
3549         (Link): New section.
3550         * modules/getlogin_r (Files): Add m4/getlogin.m4.
3551         (configure.ac): Require gl_LIB_GETLOGIN.
3552         (Link): New section.
3553         * NEWS: Mention the new link requirements.
3554         * modules/getlogin-tests (test_getlogin_LDADD): New variable.
3555         * modules/getlogin_r-tests (test_getlogin_r_LDADD): New variable.
3557 2016-12-17  Bruno Haible  <bruno@clisp.org>
3559         Un-deprecate the 'progname' module.
3560         * NEWS: Describe the appropriate use-cases of 'progname' versus
3561         'getprogname'. Based on discussion summary at
3562         http://lists.gnu.org/archive/html/bug-gnulib/2016-10/msg00105.html
3564 2016-12-17  Bruno Haible  <bruno@clisp.org>
3566         Reorganize NEWS a bit.
3567         * NEWS: Move some not so important changes away from section
3568         "Important Notes".
3570 2016-12-17  Bruno Haible  <bruno@clisp.org>
3572         tanhf: Avoid redefinition error on MSVC.
3573         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Define REPLACE_TANHF.
3574         * m4/tanhf.m4 (gl_FUNC_TANHF): Set REPLACE_TANHF to 1 if the function
3575         may be defined as an inline function.
3576         * modules/math (Makefile.am): Substitute REPLACE_TANHF.
3577         * lib/math.in.h (tanhf): Override if REPLACE_TANHF is 1.
3579 2016-12-17  Bruno Haible  <bruno@clisp.org>
3581         tanf: Avoid redefinition error on MSVC.
3582         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Define REPLACE_TANF.
3583         * m4/tanf.m4 (gl_FUNC_TANF): Set REPLACE_TANF to 1 if the function
3584         may be defined as an inline function.
3585         * modules/math (Makefile.am): Substitute REPLACE_TANF.
3586         * lib/math.in.h (tanf): Override if REPLACE_TANF is 1.
3588 2016-12-17  Bruno Haible  <bruno@clisp.org>
3590         sqrtf: Avoid redefinition error on MSVC.
3591         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Define REPLACE_SQRTF.
3592         * m4/sqrtf.m4 (gl_FUNC_SQRTF): Set REPLACE_SQRTF to 1 if the function
3593         may be defined as an inline function.
3594         * modules/math (Makefile.am): Substitute REPLACE_SQRTF.
3595         * lib/math.in.h (sqrtf): Override if REPLACE_SQRTF is 1.
3597 2016-12-17  Bruno Haible  <bruno@clisp.org>
3599         sinhf: Avoid redefinition error on MSVC.
3600         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Define REPLACE_SINHF.
3601         * m4/sinhf.m4 (gl_FUNC_SINHF): Set REPLACE_SINHF to 1 if the function
3602         may be defined as an inline function.
3603         * modules/math (Makefile.am): Substitute REPLACE_SINHF.
3604         * lib/math.in.h (sinhf): Override if REPLACE_SINHF is 1.
3606 2016-12-17  Bruno Haible  <bruno@clisp.org>
3608         sinf: Avoid redefinition error on MSVC.
3609         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Define REPLACE_SINF.
3610         * m4/sinf.m4 (gl_FUNC_SINF): Set REPLACE_SINF to 1 if the function
3611         may be defined as an inline function.
3612         * modules/math (Makefile.am): Substitute REPLACE_SINF.
3613         * lib/math.in.h (sinf): Override if REPLACE_SINF is 1.
3615 2016-12-17  Bruno Haible  <bruno@clisp.org>
3617         logf: Avoid redefinition error on MSVC.
3618         * m4/logf.m4 (gl_FUNC_LOGF): Set REPLACE_LOGF to 1 if the function
3619         may be defined as an inline function.
3621 2016-12-17  Bruno Haible  <bruno@clisp.org>
3623         log10l: Avoid redefinition error on MSVC.
3624         * m4/log10l.m4 (gl_FUNC_LOG10L): Set REPLACE_LOG10L to 1 if the function
3625         may be defined as an inline function.
3627 2016-12-17  Bruno Haible  <bruno@clisp.org>
3629         log10f: Avoid redefinition error on MSVC.
3630         * m4/log10f.m4 (gl_FUNC_LOG10F): Set REPLACE_LOG10F to 1 if the function
3631         may be defined as an inline function.
3633 2016-12-17  Bruno Haible  <bruno@clisp.org>
3635         hypotl: Avoid redefinition error on MSVC.
3636         * m4/hypotl.m4 (gl_FUNC_HYPOTL): Set REPLACE_HYPOTL to 1 if the function
3637         may be defined as an inline function.
3639 2016-12-17  Bruno Haible  <bruno@clisp.org>
3641         hypotf: Avoid redefinition error on MSVC.
3642         * m4/hypotf.m4 (gl_FUNC_HYPOTF): Set REPLACE_HYPOTF to 1 if the function
3643         may be defined as an inline function.
3645 2016-12-17  Bruno Haible  <bruno@clisp.org>
3647         fmodl: Avoid redefinition error on MSVC.
3648         * m4/fmodl.m4 (gl_FUNC_FMODL): Set REPLACE_FMODL to 1 if the function
3649         may be defined as an inline function.
3651 2016-12-17  Bruno Haible  <bruno@clisp.org>
3653         fmodf: Avoid redefinition error on MSVC.
3654         * m4/fmodf.m4 (gl_FUNC_FMODF): Set REPLACE_FMODF to 1 if the function
3655         may be defined as an inline function.
3657 2016-12-17  Bruno Haible  <bruno@clisp.org>
3659         expf: Avoid redefinition error on MSVC.
3660         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Define REPLACE_EXPF.
3661         * m4/expf.m4 (gl_FUNC_EXPF): Set REPLACE_EXPF to 1 if the function
3662         may be defined as an inline function.
3663         * modules/math (Makefile.am): Substitute REPLACE_EXPF.
3664         * lib/math.in.h (expf): Override if REPLACE_EXPF is 1.
3666 2016-12-17  Bruno Haible  <bruno@clisp.org>
3668         coshf: Avoid redefinition error on MSVC.
3669         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Define REPLACE_COSHF.
3670         * m4/coshf.m4 (gl_FUNC_COSHF): Set REPLACE_COSHF to 1 if the function
3671         may be defined as an inline function.
3672         * modules/math (Makefile.am): Substitute REPLACE_COSHF.
3673         * lib/math.in.h (coshf): Override if REPLACE_COSHF is 1.
3675 2016-12-17  Bruno Haible  <bruno@clisp.org>
3677         cosf: Avoid redefinition error on MSVC.
3678         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Define REPLACE_COSF.
3679         * m4/cosf.m4 (gl_FUNC_COSF): Set REPLACE_COSF to 1 if the function
3680         may be defined as an inline function.
3681         * modules/math (Makefile.am): Substitute REPLACE_COSF.
3682         * lib/math.in.h (cosf): Override if REPLACE_COSF is 1.
3684 2016-12-17  Bruno Haible  <bruno@clisp.org>
3686         atan2f: Avoid redefinition error on MSVC.
3687         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Define REPLACE_ATAN2F.
3688         * m4/atan2f.m4 (gl_FUNC_ATAN2F): Set REPLACE_ATAN2F to 1 if the function
3689         may be defined as an inline function.
3690         * modules/math (Makefile.am): Substitute REPLACE_ATAN2F.
3691         * lib/math.in.h (atan2f): Override if REPLACE_ATAN2F is 1.
3693 2016-12-17  Bruno Haible  <bruno@clisp.org>
3695         atanf: Avoid redefinition error on MSVC.
3696         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Define REPLACE_ATANF.
3697         * m4/atanf.m4 (gl_FUNC_ATANF): Set REPLACE_ATANF to 1 if the function
3698         may be defined as an inline function.
3699         * modules/math (Makefile.am): Substitute REPLACE_ATANF.
3700         * lib/math.in.h (atanf): Override if REPLACE_ATANF is 1.
3702 2016-12-17  Bruno Haible  <bruno@clisp.org>
3704         asinf: Avoid redefinition error on MSVC.
3705         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Define REPLACE_ASINF.
3706         * m4/asinf.m4 (gl_FUNC_ASINF): Set REPLACE_ASINF to 1 if the function
3707         may be defined as an inline function.
3708         * modules/math (Makefile.am): Substitute REPLACE_ASINF.
3709         * lib/math.in.h (asinf): Override if REPLACE_ASINF is 1.
3711 2016-12-17  Bruno Haible  <bruno@clisp.org>
3713         acosf: Avoid redefinition error on MSVC.
3714         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Define REPLACE_ACOSF.
3715         * m4/acosf.m4 (gl_FUNC_ACOSF): Set REPLACE_ACOSF to 1 if the function
3716         may be defined as an inline function.
3717         * modules/math (Makefile.am): Substitute REPLACE_ACOSF.
3718         * lib/math.in.h (acosf): Override if REPLACE_ACOSF is 1.
3720 2016-12-17  Bruno Haible  <bruno@clisp.org>
3722         Avoid redefinition errors on MSVC.
3723         * m4/snprintf.m4 (gl_REPLACE_SNPRINTF): Set REPLACE_SNPRINTF to 1 if
3724         the function may be defined as an inline function.
3725         * m4/vsnprintf.m4 (gl_REPLACE_VSNPRINTF): Set REPLACE_VSNPRINTF to 1 if
3726         the function may be defined as an inline function.
3728 2016-12-17  Bruno Haible  <bruno@clisp.org>
3730         Avoid redefinition errors on MSVC.
3731         * lib/stdio.in.h: Include <stdlib.h> and <io.h> when necessary.
3732         * lib/unistd.in.h: Include <stdio.h> when necessary.
3734 2016-12-17  Bruno Haible  <bruno@clisp.org>
3736         stdint: Fix WINT_MAX to match the gnulib provided wint_t on MSVC.
3737         * m4/stdint.m4 (gl_STDINT_H): Define GNULIB_OVERRIDES_WINT_T.
3738         * modules/stdint (Makefile.am): Substitute GNULIB_OVERRIDES_WINT_T.
3739         * lib/stdint.in.h [GNULIB_OVERRIDES_WINT_T]: Redefine WINT_MIN and
3740         WINT_MAX.
3742 2016-12-17  Bruno Haible  <bruno@clisp.org>
3744         Avoid autoconf warning.
3745         * modules/frexpl (configure.ac): Require, not invoke, gl_FUNC_FREXPL.
3746         * modules/frexp (configure.ac): Require, not invoke, gl_FUNC_FREXP.
3748 2016-12-17  Bruno Haible  <bruno@clisp.org>
3750         fpending: Revert workaround against Emacs bug.
3751         * lib/stdio-impl.h [__MINGW32__]: Revert conditional.
3752         The Emacs bug is fixed by Eli Zaretskii in
3753         http://lists.gnu.org/archive/html/emacs-devel/2016-12/msg00715.html
3755 2016-12-17  Bruno Haible  <bruno@clisp.org>
3757         getlogin_r tests: Port to mingw.
3758         * tests/test-getlogin_r.c: Don't include <pwd.h> on native Windows. Fixes
3759         regression introduced on 2014-05-19.
3761 2016-12-17  Bruno Haible  <bruno@clisp.org>
3763         getlogin: Port to newer mingw.
3764         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize HAVE_DECL_GETLOGIN.
3765         * m4/getlogin.m4 (gl_FUNC_GETLOGIN): Set HAVE_DECL_GETLOGIN.
3766         * modules/unistd (Makefile.am): Substitute HAVE_DECL_GETLOGIN, not
3767         HAVE_GETLOGIN.
3768         * lib/unistd.in.h (getlogin): Test HAVE_DECL_GETLOGIN, not
3769         HAVE_GETLOGIN.
3770         * doc/posix-functions/getlogin.texi: Mention the issue.
3771         * tests/test-getlogin.c: Don't include <pwd.h> on native Windows. Fixes
3772         regression introduced on 2014-05-14.
3774 2016-12-16  Paul Eggert  <eggert@cs.ucla.edu>
3776         builtin-expect: improve port to IBM XL C
3777         Problem reported for z/OS by Daniel Richard G. in:
3778         http://lists.gnu.org/archive/html/bug-gnulib/2016-12/msg00079.html
3779         * m4/builtin-expect.m4 (gl___BUILTIN_EXPECT):
3780         Test for <builtins.h> directly.
3782         builtin-expect: port to IBM XL C
3783         Problem reported for z/OS by Daniel Richard G. in:
3784         http://lists.gnu.org/archive/html/bug-gnulib/2016-12/msg00074.html
3785         * m4/builtin-expect.m4 (gl___BUILTIN_EXPECT):
3786         Also allow __builtin_expect defined via a standard include file.
3788         regex: fix dependency
3789         Problem reported by Bruno Haible in:
3790         http://lists.gnu.org/archive/html/bug-gnulib/2016-12/msg00073.html
3791         * modules/regex: Depend on builtin-expect.
3793         builtin-expect: new module
3794         Fix fnmatch to use it.
3795         Problem reported for z/OS by Daniel Richard G.
3796         * lib/fnmatch.c (__builtin_expect):
3797         * lib/glob.c (__builtin_expect):
3798         * lib/grantpt.c (__builtin_expect) [!_LIBC]:
3799         * lib/memmem.c (__builtin_expect) [!_LIBC]:
3800         * lib/scandir.c (__builtin_expect):
3801         * lib/strstr.c (__builtin_expect) [!_LIBC]:
3802         Remove macro; config.h now does this.
3803         * lib/gl_anytreehash_list1.h (add_to_bucket):
3804         * lib/regex_internal.h (BE):
3805         Assume __builtin_expect.
3806         * m4/builtin-expect.m4, modules/builtin-expect: New files.
3807         * modules/avltreehash-list, modules/fnmatch, modules/glob:
3808         * modules/grantpt, modules/memmem-simple, modules/rbtreehash-list:
3809         * modules/scandir, modules/strstr-simple:
3810         Depend on builtin-expect.
3812 2016-12-15  Bruno Haible  <bruno@clisp.org>
3814         init.sh: Add possibility to not delete temporary files.
3815         * tests/init.sh (remove_tmp_): If the environment variable KEEP is set
3816         to yes, don't erase the temporary directory.
3818 2016-12-16  Paul Eggert  <eggert@cs.ucla.edu>
3820         regex: fix integer-overflow bug in never-used code
3821         Problem reported by Clément Pit–Claudel in:
3822         http://lists.gnu.org/archive/html/emacs-devel/2016-12/msg00654.html
3823         * lib/regex_internal.h: Include intprops.h.
3824         * lib/regexec.c (re_search_2_stub): Use it to avoid undefined
3825         behavior on integer overflow.
3826         * modules/regex (Depends-on): Add intprops.
3828         fpending: fix port to MinGW on Emacs
3829         * lib/stdio-impl.h [__MINGW32__]: Do not include errno.h.
3830         Problem reported by Eli Zaretskii in:
3831         http://lists.gnu.org/archive/html/emacs-devel/2016-12/msg00642.html
3832         Is Plan 9 still a valid porting target, anyway?
3834 2016-12-15  Paul Eggert  <eggert@cs.ucla.edu>
3836         safe-alloc: use xalloc-oversized
3837         * lib/safe-alloc.c: Include xalloc-oversized.h.
3838         (safe_alloc_oversized): Remove.  All uses changed to xalloc_oversized.
3839         * modules/safe-alloc (Depends-on): Add xalloc-oversized.
3841         xalloc: do not exceed PTRDIFF_MAX
3842         * lib/xmalloc.c (xcalloc) [HAVE_GNU_CALLOC]: Do not omit
3843         xalloc_oversized check, since objects larger than PTRDIFF_MAX
3844         bytes have pointer-subtraction problems.
3846         malloca: do not exceed PTRDIFF_MAX
3847         * lib/malloca.h: Include xalloc-oversized.
3848         (nmalloca): Use xalloc_oversized instead of rolling our own.
3849         * modules/malloca (Depends-on):
3850         * modules/relocatable-prog-wrapper (Depends-on):
3851         Add xalloc-oversized.
3853         quotearg: pacify GCC better
3854         * modules/quotearg (Depends-on): Add minmax, stdint.
3855         * lib/quotearg.c: Include minmax.h, stdint.h.
3856         (nslots): Now int, as there seems little point to going to extra
3857         work merely to support the INT_MAX slot, which nobody ever uses.
3858         (quotearg_n_options): Redo size-overflow checks to pacify GCC
3859         and to catch (mostly-theoretical) ptrdiff_t problems too.
3860         This can be done via one comparison.
3862 2016-12-14  Paul Eggert  <eggert@cs.ucla.edu>
3864         xalloc-oversized: check for PTRDIFF_MAX too
3865         This avoids undefined behavior when subtracting pointers to
3866         objects containing more than PTRDIFF_MAX bytes.
3867         * lib/xalloc-oversized.h (__xalloc_oversized, xalloc_oversized):
3868         Also return 1 if the result would exceed PTRDIFF_MAX>
3869         * modules/xalloc-oversized (Depends-on):
3870         Add stdint.
3872         dfa: fix glitches in previous commit
3873         Sorry, I don't know how I managed to commit the wrong version.
3874         * lib/dfa.c (MIN): Move up.
3875         (xpalloc): Now static.
3877         dfa: fix some unlikely integer overflows
3878         I found these while reviewing the recent Coverity-related fix.
3879         This patch changes part of dfa.c to prefer ptrdiff_t instead of
3880         size_t for object counts.  Using ptrdiff_t is the style typically
3881         used in Emacs; although it wastes a sign bit as sizes can never be
3882         negative, it makes -fsanitize=undefined more likely to catch
3883         integer overflows in index calculation, and nowadays the upside is
3884         typically more important than the downside.  Although perhaps the
3885         rest of dfa.c should be changed to prefer ptrdiff_t as well (much
3886         of dfa.c already does, since it uses state_num which is signed),
3887         that is a bigger change and is not needed to fix the bugs I found.
3888         * lib/dfa.c: Include stdint.h and intprops.h.
3889         (TOKEN_MAX): New macro.
3890         (position_set, struct mb_char_classes, struct dfa, maybe_realloc)
3891         (charclass_index, parse_bracket_exp, addtok, insert, merge)
3892         (realloc_trans_if_necessary, free_mbdata):
3893         Use ptrdiff_t instead of size_t for object counts related to xpalloc.
3894         This is safe because xpalloc checks that the sizes do not exceed
3895         either SIZE_MAX or PTRDIFF_MAX.
3896         (xpalloc): New function, mostly taken from Emacs.
3897         (maybe_realloc, copy, realloc_trans_if_necessary): Use it.
3898         (maybe_realloc): Add NITEMS_MAX to signature.  All callers changed.
3899         (charclass_index): Check for integer overflow in computing
3900         charclass index; it must not exceed TOKEN_MAX - CSET, as CSET is
3901         added to it later.
3902         (alloc_position_set): Check for integer overflow.  On typical
3903         platforms this check has zero overhead, since the constant
3904         expression is false.
3905         (realloc_trans_if_necessary):
3906         Remove assertion, which I hope Coverity no longer needs.
3908         * modules/dfa (Depends-on): Add intprops, stdint.
3910 2016-12-12  Jim Meyering  <meyering@fb.com>
3912         dfa: add an assertion to avoid coverity false positive
3913         * lib/dfa.c (realloc_trans_if_necessary): Otherwise, coverity
3914         warned that "newalloc1 - 2" could overflow.
3916 2016-12-13   Arnold D. Robbins  <arnold@skeeve.com>
3918         dfa: remove DFA_CASE_FOLD flag in favor of RE_ICASE
3919         * dfa.h (DFA_CASE_FOLD): Remove.
3920         * dfa.c (dfasyntax): Set dfa->syntax.case_fold based on RE_ICASE.
3922 2016-12-13  John W. Eaton  <gnu@jweaton.org>
3924         link: fix test to declare use of rename()
3925         * m4/link.m4 (gl_FUNC_LINK): Include <stdio.h> needed with
3926         -Werror=implicit-function-declaration
3928 2016-12-12  Bruno Haible  <bruno@clisp.org>
3930         fpending: Port to native Windows with MSVC.
3931         * lib/fpending.c: Include stdio-impl.h.
3932         (__fpending): Include all known implementations. Err out if it's not
3933         ported.
3934         * m4/fpending.m4 (gl_PREREQ_FPENDING): Remove macro.
3935         * modules/fpending (Files): Add lib/stdio-impl.h.
3936         (configure.ac): Don't invoke gl_PREREQ_FPENDING.
3938 2016-12-12  Bruno Haible  <bruno@clisp.org>
3940         stdioext: Port to native Windows with MSVC.
3941         * lib/stdio-impl.h (WINDOWS_OPAQUE_FILE): New macro.
3942         (struct _gl_real_FILE): New type.
3943         (fp_, _IOREAD, _IOWRT, _IORW, _IOEOF, _IOERR): New macros, for native
3944         Windows.
3945         * lib/fbufmode.c (fbufmode): Add code for native Windows.
3946         * lib/fflush.c (clear_ungetc_buffer): Treat native Windows like the
3947         other SystemV derived implementations.
3948         * lib/fpurge.c (fpurge): Likewise.
3949         * lib/freadable.c (freadable): Likewise.
3950         * lib/freadahead.c (freadahead): Likewise.
3951         * lib/freading.c (freading): Likewise.
3952         * lib/freadptr.c (freadptr): Likewise.
3953         * lib/freadseek.c (freadptrinc): Likewise.
3954         * lib/fseeko.c (fseeko): Likewise.
3955         * lib/fseterr.c (fseterr): Likewise.
3956         * lib/fwritable.c (fwritable): Likewise.
3957         * lib/fwriting.c (fwriting): Likewise.
3958         Reported by Gisle Vanem <gvanem@yahoo.no>.
3960 2016-12-11  Jim Meyering  <meyering@fb.com>
3962         non-recursive-gnulib-prefix-hack.m4: remove leading "(" in case stmt
3963         * m4/non-recursive-gnulib-prefix-hack.m4: That leading "(" happens
3964         to work with most shells, but not with the one provided by many
3965         Solaris 10 systems, so running configure with such a /bin/sh evokes
3966         e.g., "./configure: syntax error at line 33602: `(' unexpected".
3967         Reported by Assaf Gordon in
3968         https://lists.gnu.org/archive/html/sed-devel/2016-12/msg00002.html
3970 2016-12-10  Bruno Haible  <bruno@clisp.org>
3972         threadlib: Optimize out runtime test on Solaris >= 10.
3973         * m4/threadlib.m4 (gl_THREADLIB_BODY): Don't set
3974         PTHREAD_IN_USE_DETECTION_HARD if configuring on Solaris 10 or newer.
3975         Reported by Peter Felecan at <https://savannah.gnu.org/bugs/?32087>.
3977 2016-12-10  Bruno Haible  <bruno@clisp.org>
3979         stdint: Update doc about Solaris 9.
3980         * doc/posix-headers/stdint.texi: Add info about Solaris 9.
3982 2016-12-09  Bruno Haible  <bruno@clisp.org>
3984         c-ctype tests: Fix link error on Solaris 9.
3985         * modules/c-ctype-tests (Depends-on): Add 'isblank'.
3986         Reported at <https://savannah.gnu.org/bugs/?46827>.
3988 2016-12-09  Paul Eggert  <eggert@cs.ucla.edu>
3990         dfa: fix performance bug that recomputes trans
3991         * lib/dfa.c (build_state): Fix performance bug introduced in Nov
3992         25 on-demand changes.  The bug caused build_state to reset all
3993         d->trans elements to -2 even when d->trans was already non-null.
3994         Use C99 style decls after statements in this function.
3996         same-inode: port to MinGW
3997         Here st_ino is always 0, so change the definition of SAME_INODE so
3998         that 1 means the two files are the same, 0 with st_ino != 0 means
3999         they differ, and 0 with st_ino == 0 means we don’t know.  Problem
4000         reported by Bruno Haible (Bug#25146).
4001         * doc/posix-headers/sys_stat.texi (sys/stat.h): Update.
4002         * lib/same-inode.h (SAME_INODE): Return 0 on MinGW.
4004 2016-12-04  Bruno Haible  <bruno@clisp.org>
4006         javacomp: Support Java 7 and 8.
4007         * m4/javacomp.m4 (gt_JAVACOMP): Accept source-version 1.7, 1.8 and
4008         target-version 1.7, 1.8.
4010 2016-12-02  Daiki Ueno  <ueno@gnu.org>
4012         * gnulib-tool (func_import): Relax the regex used for "LGPLv3+ or
4013         GPLv2" rewriting.
4015 2016-12-02  Nikos Mavrogiannopoulos  <nmav@gnutls.org>
4017         * gnulib-tool (func_import): Adhere to the license guideline when
4018         rewriting the license text to "LGPLv3+ or GPLv2":
4019         https://www.gnu.org/prep/maintain/maintain.html#Licensing-of-GNU-Packages
4021 2016-12-02  Bruno Haible  <bruno@clisp.org>
4023         localcharset: Avoid theoretical buffer overrun.
4024         * lib/localcharset.c (locale_charset) [WINDOWS_NATIVE]: Don't use the
4025         return value from setlocale if it would lead to a buffer overrun.
4027 2016-12-01  Bruno Haible  <bruno@clisp.org>
4029         Relicense some modules under LGPLv2+.
4030         Kevin Cernekee's approval is in
4031         http://lists.gnu.org/archive/html/bug-gnulib/2016-11/msg00090.html.
4032         * modules/fseterr (License): Change to LGPLv2+.
4033         * modules/mbchar (License): Likewise.
4034         * modules/mbiter (License): Likewise.
4035         * modules/mbsnlen (License): Likewise.
4036         * modules/wcwidth (License): Likewise.
4038 2016-12-01  KO Myung-Hun  <komh78@gmail.com>
4040         scandir: Fix _D_ALLOC_NAMLEN() on OS/2 kLIBC
4041         * lib/scandir.c (_D_ALLOC_NAMLEN): Consider the fields after d_name on
4042         OS/2 kLIBC.
4044 2016-12-01  KO Myung-Hun  <komh78@gmail.com>
4046         alphasort, scandir: Port to OS/2 kLIBC
4047         * lib/alphasort.c (alphasort): Implement according to OS/2 kLIBC
4048         declaration.
4049         * lib/scandir.c (scandir): Add declaration for OS/2 kLIBC.
4051 2016-12-01  KO Myung-Hun  <komh78@gmail.com>
4053         relocatable: Fix that /@unixroot prefix is not working on OS/2 kLIBC
4054         * lib/relocatable.c (relocate): Do not touch pathname if it is started
4055         with '/@unixroot'.
4057 2016-12-01  KO Myung-Hun  <komh78@gmail.com>
4059         sys_socket: typedef sa_family_t correctly on OS/2 kLIBC
4060         * lib/sys_socket.in.h (sa_family_t): Typedef to unsigned char on
4061         OS/2 kLIBC unless TCPV40HDRS is defined.
4063 2016-11-29  Jim Meyering  <meyering@fb.com>
4065         dfa: avoid new infinite loop
4066         This would infloop: echo cx | LC_ALL=C grep -E 'c\b[x ]'
4067         * lib/dfa.c (dfastate): When constructing a new state table, we could
4068         initially declare that we had found a match, and later find that
4069         constraints eliminate that possibility, yet continue to use the
4070         now stale "matched" indicator.  That would lead to an infinite loop.
4071         The solution is to update "matched" when necessary.
4072         Introduced by commit v0.1-983-g403adf1.
4074 2016-11-27  Norihiro Tanaka  <noritnk@kcn.ne.jp>
4076         dfa: avoid match middle in multibyte character
4077         * lib/dfa.c (transit_state): If fails in matching single byte characters
4078         on a state including period expression in non-UTF8 multibyte locales,
4079         skip trailing bytes.
4080         (dfa_supported): Revert previous change.
4082 2016-11-27  Jim Meyering  <meyering@fb.com>
4084         dfa: avoid false match in non-UTF8 multibyte locales
4085         * lib/dfa.c (dfa_supported): Treat any non-UTF8 multibyte locale
4086         as "not supported" so that callers will resort to using regex-based
4087         matcher.  This will surely hurt performance, but correctness trumps
4088         performance here, and the affected locales are less and less relevant,
4089         these days.  See grep's bug report https://bugs.gnu.org/24975.
4091 2016-11-27  Mike Frysinger  <vapier@gentoo.org>
4093         ptsname_r: leverage AC_HEADER_MAJOR to provide major()
4094         * lib/ptsname_r.c: Include the appropriate headers.
4095         [__sun]: Delete sys/sysmacros.h include.
4096         [_AIX || __osf__]: Likewise.
4097         * m4/ptsname_r.m4 (gl_FUNC_PTSNAME_R): Depend on AC_HEADER_MAJOR.
4099 2016-11-27  Pádraig Brady  <P@draigBrady.com>
4101         md4,md5,sha*: allow _STRING_INLINE_unaligned enable unaligned operation
4102         * lib/md4.c (md4_process_bytes): The existing define is made internal
4103         in recent versions of glibc, so also use this new public define.
4104         * lib/md5.c (md5_process_bytes): Likewise.
4105         * lib/sha1.c (sha1_process_bytes): Likewise.
4106         * lib/sha256.c (sha256_process_bytes): Likewise.
4107         * lib/sha512.c (sha512_process_bytes): Likewise.
4109 2016-11-27  Pádraig Brady  <P@draigBrady.com>
4111         maint: use a more standard return from mbrtowc test
4112         * m4/mbrtowc.m4 (gl_MBRTOWC_C_LOCALE): Don't return 1
4113         from the test program as this often indicates an
4114         unhandled case in the test program.
4115         (gl_MBRTOWC_INCOMPLETE_STATE): Likewise.
4116         (gl_MBRTOWC_SANITYCHECK): Likewise.
4117         (gl_MBRTOWC_NULL_ARG2): Likewise.
4118         (gl_MBRTOWC_NUL_RETVAL): Likewise.
4120 2016-11-26  Paul Eggert  <eggert@cs.ucla.edu>
4122         freopen: work around glibc bug with closed fd
4123         Work around glibc bug#15589, where freopen mishandles the case
4124         where stdin etc. are already closed.
4125         * doc/posix-functions/freopen.texi (freopen): Document the bug.
4126         * lib/freopen.c (_GL_ALREADY_INCLUDING_STDIO_H): Define this
4127         instead of __need_FILE, as the latter does not work with glibc.
4128         Include <fcntl.h>, for open flags.
4129         (rpl_freopen): Work around glibc bug.
4130         * m4/freopen.m4 (gl_FUNC_FREOPEN): Check for bug.
4131         * modules/freopen (Depends-on): Add fcntl-h.
4132         * tests/test-freopen.c (main): Test for bug.
4134 2016-11-25  Paul Eggert  <eggert@cs.ucla.edu>
4136         fnmatch: fix typo introduced on 2016-08-17
4137         This fixes the port to non-GCC compilers that lack __builtin_expect.
4138         * lib/fnmatch.c (__builtin_expect): Change A&&B to !A||B.
4140         dfa: simplify with new function fillset
4141         * lib/dfa.c (fillset): New function.
4142         Use it for clarity when applicable.
4144         dfa: fix glitches with on-demand states
4145         Also, adjust commentary to better match new code.
4146         Some of these glitches predate the recent change.
4147         * lib/dfa.c (dfaanalyze): Clear trcount here, so that it counts
4148         only non-initial states.
4149         (dfastate): Rename locals to better match new roles.
4150         Move them into nested scopes if this is easy.
4151         Omit unnecessary calls to zeroset.
4152         Simplify test for whether to throw in the positions of state 0.
4153         Omit C99-ism (decl after statement) since Gawk still wants C89.
4154         (build_state): Omit unnecessary test and assignment.
4155         Fix some confusion that counted transition tables inaccurately
4156         and could cause a memory leak.
4157         (dfaexec_main): Redo to make it clearer to the compiler that
4158         -1 and -2 are the only negative state numbers here.
4160 2016-11-25  Norihiro Tanaka  <noritnk@kcn.ne.jp>
4162         dfa: addition of new state on demand
4163         * src/dfa.c (dfastate): Add argument UC, the current input character.
4164         Fill only a group including the character in transition table.
4165         (realloc_trans_if_necessary): Add the dummy state which means that a
4166         transition table is assigned but the next state is not assigned.
4167         (build_state): Return the next state.  All callers updated.
4168         (transit_state_singlebyte): If we get the dummy state,
4169         fill the transition table.
4170         (dfaexec_main): Handle the dummy state.
4171         (free_mbdata, dfafree): Consider the dummy state.
4173 2016-11-24  Daiki Ueno  <ueno@gnu.org>
4175         srclist: sync with released gettext
4176         * config/srclist.txt: Set "release" option to the files under
4177         $GETTEXT.
4179 2016-11-24  Daiki Ueno  <ueno@gnu.org>
4181         srclist: add "release" option
4182         * config/srclist.txt: Change the format so that the first column
4183         of each line points to the top-level directory of the source
4184         archive.
4185         * config/srclist-update: Accept "release" option that checks files
4186         from the most recently tagged revision in the source archive.
4188 2016-11-21  Bruno Haible  <bruno@clisp.org>
4190         snippet/c++defs: Simplify _GL_CXXALIAS_* macros.
4191         * build-aux/snippet/c++defs.h [__cplusplus && GNULIB_NAMESPACE]
4192         (_GL_CXXALIAS_RPL_1, _GL_CXXALIAS_RPL_CAST_1,
4193         _GL_CXXALIAS_SYS, _GL_CXXALIAS_SYS_CAST, _GL_CXXALIAS_SYS_CAST2):
4194         Inline and remove member function 'rpl ()' of the wrapper struct.
4196 2016-11-20  Paul Eggert  <eggert@cs.ucla.edu>
4198         dfa: fix logic typo
4199         Problem reported by Stephane Chazelas (Bug#24973).
4200         * lib/dfa.c (using_simple_locale): Fix typo that caused some
4201         non-simple locales like fr_FR to be treated as simple.
4203 2016-11-20  Jim Meyering  <meyering@fb.com>
4205         fix test driver leaks: exclude, malloc, realloc
4206         * tests/test-exclude.c (main): Fix trivial leak.
4207         * tests/test-malloc-gnu.c (main): Likewise.
4208         * tests/test-realloc-gnu.c (main): Likewise.
4209         With these changes, grep's tests are now leak free.
4210         I.e., running them with ASAN elicits no failure:
4211           make CFLAGS='-O0 -ggdb3' AM_CFLAGS=-fsanitize=address \
4212             AM_LDFLAGS='-fsanitize=address -static-libasan' check
4214 2016-11-11  Bruno Haible  <bruno@clisp.org>
4216         libunistring: Relicense under dual "LGPLv3+ or GPLv2" license.
4217         * modules/libunistring: (License): Change from LGPL to
4218         "LGPLv3+ or GPLv2".
4219         * modules/libunistring-optional: Likewise.
4220         * modules/unicase/*: Likewise.
4221         * modules/uniconv/*: Likewise.
4222         * modules/unictype/*: Likewise.
4223         * modules/unigbrk/*: Likewise.
4224         * modules/unilbrk/*: Likewise.
4225         * modules/uniname/*: Likewise.
4226         * modules/uninorm/*: Likewise.
4227         * modules/unistdio/*: Likewise.
4228         * modules/unistr/*: Likewise.
4229         * modules/uniwbrk/*: Likewise.
4230         * modules/uniwidth/*: Likewise.
4232 2016-11-12  Bruno Haible  <bruno@clisp.org>
4234         Relicense some modules under LGPLv2+.
4235         Paul Eggert's approval is in
4236         http://lists.gnu.org/archive/html/bug-gnulib/2016-11/msg00037.html.
4237         Eric Blake's approval is in
4238         http://lists.gnu.org/archive/html/bug-gnulib/2016-11/msg00042.html.
4239         Ludovic Courtès's approval is in
4240         http://lists.gnu.org/archive/html/bug-gnulib/2016-11/msg00038.html.
4241         * modules/isnand-nolibm (License): Change to LGPLv2+.
4242         * modules/isnanf-nolibm (License): Likewise.
4243         * modules/isnanl-nolibm (License): Likewise.
4245 2016-11-19  Bruno Haible  <bruno@clisp.org>
4247         Relicense some modules under LGPLv2+.
4248         lib/float+.h is already under LGPLv2+ since 2007-07-13, per
4249         modules/vasnprintf.
4250         Paolo Bonzini's approval for lib/frexp.c and lib/frexpl.c is in
4251         http://lists.gnu.org/archive/html/bug-gnulib/2016-11/msg00074.html.
4252         All other significant changes to the files in lib/ of these modules
4253         are from me.
4254         * modules/memcmp2 (License): Change to LGPLv2+.
4255         * modules/amemxfrm (License): Likewise.
4256         * modules/fpieee (License): Likewise.
4257         * modules/fpucw (License): Likewise.
4258         * modules/frexp-nolibm (License): Likewise.
4259         * modules/frexpl-nolibm (License): Likewise.
4260         * modules/printf-frexp (License): Likewise.
4261         * modules/printf-frexpl (License): Likewise.
4262         * modules/printf-safe (License): Likewise.
4263         * modules/signbit (License): Likewise.
4265 2016-11-17  Bruno Haible  <bruno@clisp.org>
4267         Enable Unicode decoder safety unconditionally.
4268         * lib/unistr.in.h (u32_mbtouc_unsafe): Assume CONFIG_UNICODE_SAFETY.
4269         * lib/unistr/u8-mblen.c (u8_mblen): Likewise.
4270         * lib/unistr/u8-mbtouc-unsafe.c (u8_mbtouc_unsafe): Likewise.
4271         * lib/unistr/u8-mbtouc-unsafe-aux.c (u8_mbtouc_unsafe_aux): Likewise.
4272         * lib/unistr/u8-prev.c (u8_prev): Likewise.
4273         * lib/unistr/u8-strmblen.c (u8_strmblen): Likewise.
4274         * lib/unistr/u8-strmbtouc.c (u8_strmbtouc): Likewise.
4275         * lib/unistr/u16-mblen.c (u16_mblen): Likewise.
4276         * lib/unistr/u16-mbtouc-unsafe.c (u16_mbtouc_unsafe): Likewise.
4277         * lib/unistr/u16-mbtouc-unsafe-aux.c (u16_mbtouc_unsafe_aux): Likewise.
4278         * lib/unistr/u16-prev.c (u16_prev): Likewise.
4279         * lib/unistr/u16-strmblen.c (u16_strmblen): Likewise.
4280         * lib/unistr/u16-strmbtouc.c (u16_strmbtouc): Likewise.
4281         * lib/unistr/u32-mblen.c (u32_mblen): Likewise.
4282         * lib/unistr/u32-mbtouc-unsafe.c (u32_mbtouc_unsafe): Likewise.
4283         * lib/unistr/u32-prev.c (u32_prev): Likewise.
4284         * lib/unistr/u32-next.c (u32_next): Likewise.
4285         * lib/unistr/u32-strmblen.c (u32_strmblen): Likewise.
4286         * lib/unistr/u32-strmbtouc.c (u32_strmbtouc): Likewise.
4287         * lib/uniconv/u8-conv-to-enc.c (u8_conv_to_encoding): Likewise.
4288         * lib/uniconv/u8-strconv-to-enc.c (u8_strconv_to_encoding): Likewise.
4289         * tests/unistr/test-u16-prev.c (check_invalid): Enable the
4290         CONFIG_UNICODE_SAFETY tests unconditionally.
4291         * tests/unistr/test-u32-mblen.c (main): Likewise.
4292         * tests/unistr/test-u32-mbtouc.h (test_function): Likewise.
4293         * tests/unistr/test-u32-prev.c (check_invalid): Likewise.
4294         * tests/unistr/test-u32-next.c (main): Likewise.
4295         * tests/unistr/test-u32-strmblen.c (main): Likewise.
4296         * tests/unistr/test-u32-strmbtouc.c (main): Likewise.
4297         * tests/unistr/test-u32-mbtouc.c (FULL_SAFETY): Remove macro.
4298         * lib/unistr/u8-check.c (u8_check): Remove old dead code.
4299         * lib/unistr/u8-mbtouc.c (u8_mbtouc): Likewise.
4300         * lib/unistr/u8-mbtouc-aux.c (u8_mbtouc_aux): Likewise.
4301         * lib/unistr/u8-mbtoucr.c (u8_mbtoucr): Likewise.
4302         * lib/unistr/u8-uctomb.c (u8_uctomb): Likewise.
4303         * lib/unistr/u8-uctomb-aux.c (u8_uctomb_aux): Likewise.
4304         * lib/unistr/u16-check.c (u16_check): Update comment.
4305         * NEWS: Mention the changes that callers should be aware of.
4307 2016-11-19  Bruno Haible  <bruno@clisp.org>
4309         relocatable-prog-wrapper: Fix breakage on Cygwin.
4310         * modules/relocatable-prog-wrapper (Files): Add lib/stat.c, lib/lstat.c.
4311         (Depends-on): Remove intprops.
4312         * lib/relocwrapper.c: Update dependency tree.
4313         (strerror): Undefine.
4314         * build-aux/install-reloc (func_create_wrapper): Do not compile
4315         strerror.c and strerror-override.c. Erase stat.o and lstat.o.
4317 2016-11-19  Bruno Haible  <bruno@clisp.org>
4319         strerror: Make it compile in C++ mode.
4320         * lib/strerror.c (strerror): Ignore the return value of memcpy().
4322 2016-11-15  Pedro Alves  <palves@redhat.com>
4324         sys_time: add gnulib::timeval for C++
4325         * lib/sys_time.in.h [__cplusplus && defined GNULIB_NAMESPACE]:
4326         Define "timeval" in the GNULIB_NAMESPACE namespace, and #undef any
4327         timeval macro.
4329 2016-11-14  Pedro Alves  <palves@redhat.com>
4331         snippet/c++defs: fix real-floating arg functions in C++ mode
4332         Also, define isfinite, isinf, isnan, signbit in the gnulib
4333         namespace instead of in the global namespace.
4334         * build-aux/snippet/c++defs.h (_GL_BEGIN_NAMESPACE)
4335         (_GL_END_NAMESPACE): New.
4336         * lib/math.in.h (_GL_MATH_CXX_REAL_FLOATING_DECL_2): Use them.
4337         (isfinite, isinf, isnan, signbit) [__cplusplus &&
4338         GNULIB_NAMESPACE]: Define them in the GNULIB_NAMESPACE namespace
4339         instead of in the global namespace.
4340         * tests/test-math-c++.cc: Check that the isfinite, isinf, isnan,
4341         signbit overloads exist in the GNULIB_NAMESPACE namespace, instead
4342         of in the global namespace.
4344 2016-11-13  Jim Meyering  <meyering@fb.com>
4346         strftime: don't use __THROW
4347         Each use of __THROW would provoke this from gcc-7-to-be:
4349           lib/strftime.c:371:1: warning: '__leaf__' attribute has no effect \
4350             on unit local functions [-Wattributes]
4351           static int iso_week_days (int, int) __THROW;
4352           ^~~~~~
4353         * lib/strftime.c (__THROW): Don't define.
4354         Remove each use of __THROW.
4355         * lib/strftime.c (memcpy_lowcase, memcpy_uppcase): Remove __THROW.
4356         (tm_diff, iso_week_days, __strftime_internal): Likewise.
4358 2016-11-14  Paul Eggert  <eggert@union>
4360         obstack: port to gcc -fcheck-pointer-bounds
4361         Problem found by 'make check' failure on bleeding-edge coreutils
4362         on an MPX-enabled CPU (Intel Core i3-7100U) running GCC (Ubuntu
4363         6.2.0-5ubuntu12), configured via "./configure
4364         --enable-gcc-warnings CFLAGS='-mmpx -fcheck-pointer-bounds -g3
4365         -O2' LDFLAGS='-static-libmpx -static-libmpxwrappers'".
4366         * lib/obstack.h (__FLEXIBLE_ARRAY_MEMBER):
4367         New macro, copied from fts_.h.
4368         (struct _obstack_chunk.contents): Use it.
4370 2016-11-14  Eric Blake  <eblake@redhat.com>
4372         strerror_r-posix: Another fix, for HAVE_DECL_STRERROR_R on mingw.
4373         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R, gl_FUNC_STRERROR_R_WORKS):
4374         Avoid _ONCE variants, which may supply a conflicting AC_DEFINE().
4376 2016-11-14  Pádraig Brady  <P@draigBrady.com>
4378         strptime: fix compile error in recent change
4379         * lib/strptime.c (__strptime_internal): Fix ported code.
4381 2016-11-11  Bruno Haible  <bruno@clisp.org>
4383         gnulib-tool: Support for the dual "LGPLv3+ or GPLv2" license.
4384         * gnulib-tool (--lgpl): Accept value 3orGPLv2.
4385         (func_import): Extend determination of license_incompatibilities.
4386         (func_create_testdir): Extend table of license compatibility. Handle
4387         also the licenses GPLv3+, GPL, LGPLv3+.
4389 2016-11-12  Paul Eggert  <eggert@cs.ucla.edu>
4391         strftime: tune %q
4392         * lib/strftime.c (__strftime_internal): Assume tp->tm_mon is in range.
4394         Merge strftime.c changes from glibc
4395         This incorporates:
4396         2007-10-16 [BZ #5184] Add tzset_called argument
4397         2008-06-13 [BZ #6612] pass reference to tzset_called around
4398         2009-10-30 Implement Burmese language locale for Myanmar
4399         2010-01-09 Add support for XPG7 testing
4400         2015-09-26 [BZ #18985] out of range data to strftime() causes a segfault
4401         2015-10-20 Convert miscellaneous function definitions to prototype style
4402         * lib/strftime.c: Copy glibc license, since gnulib-tool rewrites
4403         it anyway and this lessens the difference between gnulib and glibc.
4404         (USE_IN_EXTENDED_LOCALE_MODEL) [_LIBC]: Define.
4405         (__THROW): Define if standard headers do not.
4406         (LOCALE_PARAM): Rename from LOCALE_PARAM_PROTO.  All uses changed.
4407         (memcpy_locase, memcpy_uppcase, tm_diff, __strftime_internal):
4408         Declare with __THROW.
4409         (__strftime_internal): Rename from strftime_case_. Add arg for
4410         whether tzset is called.  All uses changed.  Call tzset at most
4411         once.  Allow %OC, for Burmese.
4412         (a_wkday, f_wkday, a_month, f_month) [_NL_CURRENT]:
4413         Don't assume values are in range.
4415 2016-11-12  Eric Blake  <eblake@redhat.com>
4417         strerror_r-posix: Fix override of AC_FUNC_STRERROR_R
4418         * m4/strerror_r.m4 (AC_FUNC_STRERROR_R): New override.
4419         (gl_FUNC_STRERROR_R): Don't reuse AC_DEFINE() with a potentially
4420         different value.
4422 2006-11-12  Pedro Alves  <palves@redhat.com>
4424         Fix gnulib C++ namespace support and std::frexp
4425         * lib/math.in.h (frexp): Use _GL_CXXALIASWARN1 instead of
4426         _GL_CXXALIASWARN.
4428 2006-11-12  Pedro Alves  <palves@redhat.com>
4430         GNULIB_NAMESPACE::func need not pull in rpl_func
4431         * build-aux/snippet/c++defs.h [__cplusplus && GNULIB_NAMESPACE]
4432         (_GL_CXXALIAS_RPL_1, _GL_CXXALIAS_RPL_CAST_1, _GL_CXXALIAS_SYS)
4433         (_GL_CXXALIAS_SYS_CAST, _GL_CXXALIAS_SYS_CAST2): Define a wrapper
4434         struct instead of a function pointer.
4436 2016-11-09  Frediano Ziglio  <fziglio@redhat.com>
4438         manywarnings: fix -Wno-missing-field-initializers detection
4439         * m4/manywarnings.m4: Fix -Wno-missing-field-initializers detection
4440         to be independent of -Wunused-variable.  I.E. ensure the latter
4441         warning doesn't occur so that detection of the former is accurate.
4443 2016-11-05  Pádraig Brady  <pbrady@fb.com>
4445         strftime,strptime: support %q to represent the quarter
4446         * lib/strftime.c (strftime_case_): Add %q case.
4447         * lib/strptime.c (__strptime_internal): Likewise.
4448         * tests/test-strftime.c (quarter_test): A new test case.
4450 2016-11-03  Eric Blake  <eblake@redhat.com>
4452         bootstrap: Fix get_version() for AIX 5.3
4453         * build-aux/bootstrap (get_version): Factor out sed script, since
4454         indented comments choke AIX 5.3 sed.
4455         Reported-by: Michael Felt <aixtools@gmail.com>
4457 2016-11-03  Paul Eggert  <eggert@cs.ucla.edu>
4459         intprops: port to older XL C
4460         Problem reported by Alexander Samoilov in:
4461         http://lists.gnu.org/archive/html/bug-gnulib/2016-10/msg00166.html
4462         http://savannah.nongnu.org/bugs/?49448
4463         * lib/intprops.h (_GL_HAVE___TYPEOF__) [__IBM__TYPEOF__]:
4464         Define to 1 only for XL C 12.1 or later, since this bug
4465         occurs in XL C for AIX 6.0 but not in 12.1.
4467 2016-11-02  Pádraig Brady  <P@draigBrady.com>
4469         backupfile: initialize default suffix within the implementation
4470         * lib/backupfile.c (find_backup_file_name): Initialize the
4471         global variable here, to simplify usage, and to only call
4472         getenv() when needed.
4474 2016-11-01  Paul Eggert  <eggert@cs.ucla.edu>
4476         futimens: remove FIXME for old Linux kernels
4477         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Belatedy do a "simplify
4478         this in 2012" FIXME, like that for utimensat.
4480         utimensat: remove FIXME for old Linux kernels
4481         * lib/utimensat.c (rpl_utimensat): Update FIXME comment.
4482         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Belatedy do a "simplify
4483         this in 2012" FIXME, by assuming the file system bug is absent
4484         unless demonstrated to be present.  We no longer need to worry
4485         about Linux kernel 2.6.32 when building with newer kernels.
4487 2016-10-16  Bruno Haible  <bruno@clisp.org>
4489         qsort_r: Fix macrology for platforms that lack the function.
4490         * m4/stdlib_h.m4 (gl_STDLIB_H): Check for qsort_r.
4491         (gl_STDLIB_H_DEFAULTS): Initialize HAVE_QSORT_R.
4492         * modules/stdlib (Makefile.am): Substitute HAVE_QSORT_R.
4493         * lib/stdlib.in.h (qsort_r): Provide declaration if the function does
4494         not exist.
4495         * m4/qsort_r.m4 (gl_FUNC_QSORT_R): Use AC_CHECK_FUNCS to test whether
4496         the function exists.
4497         * modules/qsort_r: Add comments.
4499 2016-10-26  Paul Eggert  <eggert@cs.ucla.edu>
4501         sys_types: fix Texinfo typos
4502         * doc/glibc-functions/gnu_dev_major.texi:
4503         * doc/glibc-functions/gnu_dev_makedev.texi:
4504         * doc/glibc-functions/gnu_dev_minor.texi: Fix typos.
4506 2016-10-26  John David Anglin  <dave.anglin@bell.net>
4508         getprogname: port to HP-UX
4509         See Bug#24805.
4510         * lib/getprogname.c (getprogname) [__hpux]: Port.
4511         * tests/test-getprogname.c (STREQ) [__hpux]:
4512         Special-case for HP-UX limitations on program name length.
4514 2016-10-20  Bruno Haible  <bruno@clisp.org>
4516         Update doc about target platforms.
4517         * doc/gnulib-intro.texi (Target Platforms): Update list.
4519 2016-10-15  Bruno Haible  <bruno@clisp.org>
4521         opendir, readdir, closedir: Relicense under LGPLv2+.
4522         * modules/opendir (License): Change to LGPLv2+.
4523         * modules/readdir (License): Likewise.
4524         * modules/closedir (License): Likewise.
4526 2016-10-16  Bruno Haible  <bruno@clisp.org>
4528         Fix conflict between strerror_r-posix module and AC_FUNC_STRERROR_R.
4529         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Override the values set by the
4530         AC_FUNC_STRERROR_R macro. Define HAVE_DECL_STRERROR_R_ORIG.
4531         * lib/strerror_r.c: Use HAVE_DECL_STRERROR_R_ORIG instead of
4532         HAVE_DECL_STRERROR_R.
4534 2016-10-16  Bruno Haible  <bruno@clisp.org>
4536         Make the 'argp' module work without the 'error' module.
4537         * m4/argp.m4 (gl_ARGP): Require AC_FUNC_STRERROR_R.
4539 2016-10-25  Paul Eggert  <eggert@cs.ucla.edu>
4541         diffseq: restore TOO_EXPENSIVE heuristic
4542         * lib/diffseq.h: Problem with diffutils reported by Andreas Schwab
4543         (Bug#24715).  The simplest solution is to restore the
4544         TOO_EXPENSIVE heuristic that I added to GNU diff in 1993, while
4545         using a higher threshold to avoid Bug#16848 on smaller files.
4546         * lib/diffseq.h (struct context): Restore member too_expensive.
4547         (struct partition): Restore members lo_minimal, hi_minimal.
4548         (diag, compareseq): Restore arg find_minimal.  All uses changed.
4549         (diag): Restore the TOO_EXPENSIVE heuristic that I added back in
4550         1993 to make 'diff' run faster (but not as well) on large inputs,
4551         but use a threshold of 4096 instead of the old 256.
4552         * lib/fstrcmp.c (strcmp_bounded):
4553         * lib/git-merge-changelog.c (compute_differences):
4554         Adjust to diffseq.h changes.
4556 2016-10-22  Bruno Haible  <bruno@clisp.org>
4558         iconv: Avoid compilation error when bootstrapping GNU libiconv.
4559         * m4/iconv.m4 (AM_ICONV): When the system does not have an iconv()
4560         declaration yet, define ICONV_CONST to empty.
4562 2016-10-15  Bruno Haible  <bruno@clisp.org>
4564         Avoid gnulib-tool warnings about the dependencies of 'parse-datetime'.
4565         * gnulib-tool (func_get_license): Special-case the 'parse-datetime'
4566         module.
4568 2016-10-16  Bruno Haible  <bruno@clisp.org>
4570         system-quote tests: Avoid compiler warning on AIX.
4571         * tests/test-system-quote-child.c (fopen): Redefine like the system's
4572         <stdio.h> does.
4574 2016-10-16  Bruno Haible  <bruno@clisp.org>
4576         Fix some "gcc -Wall" warnings.
4577         * tests/test-ffsl.c (main): Use variable x, not i.
4578         * tests/test-posix_spawn3.c (parent_main): Consider the return value of
4579         freopen.
4580         * tests/test-sethostname1.c (main): Explicitly ignore the return value
4581         of sethostname.
4583 2016-10-16  Bruno Haible  <bruno@clisp.org>
4585         gnulib-tool: Make --create-testdir on all modules work again.
4586         * gnulib-tool (func_create_testdir): Don't include the
4587         non-recursive-gnulib-prefix-hack module.
4589 2016-10-21  Daiki Ueno  <ueno@gnu.org>
4591         libunistring: change the maintainer to 'all'
4592         * modules/gen-uni-tables, modules/libunistring:
4593         * modules/ucs4-utf16, modules/ucs4-utf8, modules/unicodeio:
4594         * modules/unitypes, modules/utf16-ucs4, modules/utf16-ucs4-unsafe:
4595         * modules/utf8-ucs4, modules/utf8-ucs4-unsafe:
4596         * modules/unicase/*, modules/uniconv/*, modules/unictype/*:
4597         * modules/unilbrk/*, modules/uniname/*, modules/uninorm/*:
4598         * modules/unistdio/*, modules/unistr/*, modules/uniwbrk/*:
4599         * modules/uniwidth/*: Change the maintainer to 'all'.
4601 2016-10-16  Bruno Haible  <bruno@clisp.org>
4603         Simplify "configure: checking ..." messages.
4604         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Use AC_MSG_CHECKING instead of
4605         AC_MSG_NOTICE.
4606         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Likewise.
4608 2016-10-20  Paul Eggert  <eggert@cs.ucla.edu>
4610         quotearg-tests: pacify gcc -Wall
4611         Problem reported by Bruno Haible in:
4612         http://lists.gnu.org/archive/html/bug-gnulib/2016-10/msg00066.html
4613         * tests/test-quotearg-simple.c (use_quote_double_quotes): Move here ...
4614         * tests/test-quotearg.h: ... from here.
4616 2016-10-20  Pádraig Brady  <P@draigBrady.com>
4618         canonicalize-lgpl: fix for missing SIZE_MAX on older systems
4619         * lib/canonicalize-lgpl.c [SIZE_MAX]: Define if needed.
4620         Needed on Centos <= 4.
4622 2016-10-20  Jim Meyering  <meyering@fb.com>
4624         printf.m4: fix a bug in detecting printf %j support
4625         * m4/printf.m4 (gl_PRINTF_SIZES_C99): Fail any system for which
4626         uintmax_t is defined in neither stdint.h nor inttypes.h.
4627         Before, this macro might have mistakenly set
4628         gl_cv_func_printf_sizes_c99=yes on such a system.
4629         Spotted by Zev Weiss.
4631 2016-10-19  Paul Eggert  <eggert@cs.ucla.edu>
4633         sched: substitute HAVE_SYS_CDEFS_H too
4634         Problem reported by Tom G. Christensen in:
4635         http://lists.gnu.org/archive/html/bug-gnulib/2016-10/msg00084.html
4636         * m4/sched_h.m4 (gl_SCHED_H): Set and substitute HAVE_SYS_CDEFS_H.
4637         * modules/sched (Depends-on): Substitute HAVE_SYS_CDEFS_H.
4639 2016-10-19  Pádraig Brady  <P@draigBrady.com>
4641         quotearg: never write beyond the returned length
4642         * lib/quotearg.c (quotearg_buffer_restyled): Switch to a read-only
4643         scan of the string when we initially encounter a single quote when
4644         shell quoting, so that if we then switch to a more concise quoting method
4645         we will not have written beyond that returned length.
4646         This is significant for sh-quote, which has separate routines
4647         to determine the length and do the actual quoting.
4648         * tests/test-quotearg.h: Reinstate the buffer bounds checking
4649         now that we never write more than the returned length.
4651 2016-10-18  Bruno Haible  <bruno@clisp.org>
4653         getprogname tests: Avoid failure in packages that use libtool.
4654         * tests/test-getprogname.c (main): Strip "lt-" prefix.
4655         Based on a patch by Jim Meyering.
4657 2016-10-16  Bruno Haible  <bruno@clisp.org>
4659         getprogname: Fix test failure on Cygwin. Comments.
4660         * lib/getprogname.h: Add comments.
4661         * lib/getprogname.c: Add comments. Fix #elif indentation.
4662         * tests/test-getprogname.c (main): On Cygwin, expect a result without
4663         ".exe" suffix.
4665 2016-10-16  Bruno Haible  <bruno@clisp.org>
4667         Make sure the libunistring detection rejects older versions with a
4668         known bug.
4669         * modules/unistr/u8-strtok (configure.ac): Bump required version.
4670         * modules/unistr/u16-strtok (configure.ac): Likewise.
4671         * modules/unistr/u32-strtok (configure.ac): Likewise.
4673 2016-10-18  Bruno Haible  <bruno@clisp.org>
4675         sh-quote, system-quote: revert regression of unit test.
4676         * tests/test-sh-quote.c (check_one): Do detect buffer overruns.
4677         * tests/test-system-quote-main.c (check_one): Likewise.
4679 2016-10-16  Pádraig Brady  <P@draigBrady.com>
4681         quotearg: fix stale tests
4682         * tests/test-quotearg.c [locale_results]: Add the missing str7
4683         entries to the expected results.
4684         * tests/test-system-quote-main.c (check_one): Don't enforce that we
4685         don't write beyond the returned length, since that's no longer the
4686         case if we switch to a more concise quoting style.
4687         * tests/test-sh-quote.c (check_one): Likewise.
4688         (main): Adjust for the new more concise quoting style.
4689         Reported by Bruno Haible.
4691 2016-10-16  Jim Meyering  <meyering@fb.com>
4693         non-recursive-gnulib-prefix-hack: fix inconsequential typo
4694         * m4/non-recursive-gnulib-prefix-hack.m4: Change a hard-coded "lib"
4695         to "$1".  This macro is always invoked with $1 == lib.
4696         Spotted by Bruno Haible
4698 2016-10-16  Bruno Haible  <bruno@clisp.org>
4700         Fix a test crash.
4701         * tests/test-duplocale.c (main): Skip the test if the 'newlocale' call
4702         fails.
4704 2016-10-16  Pádraig Brady  <P@draigBrady.com>
4706         test-limits-h: suppress -Woverlength-strings
4707         * tests/test-limits-h.c [__GNUC__]: Ignore -Woverlength-strings.
4709 2016-10-15  Bruno Haible  <bruno@clisp.org>
4711         gettime, timespec, utimens: Relicense under LGPL.
4712         * modules/gettime (License): Change to LGPL.
4713         * modules/timespec (License): Likewise.
4714         * modules/utimens (License): Likewise.
4716 2016-10-14  Bruno Haible  <bruno@clisp.org>
4717             Pádraig Brady  <P@draigBrady.com>
4719         canonicalize-lgpl: Support the case path_max > INT_MAX.
4720         * lib/canonicalize-lgpl.c (__realpath): Declare n as ssize_t, not int.
4721         Fix overflow check, for platforms where 'size_t' is larger than 'long'.
4723 2016-10-13  Jim Meyering  <meyering@fb.com>
4725         getprogname: IBM z/OS: avoid NULL-dereference
4726         * lib/getprogname.c (getprogname) [__MVS__]: Don't dereference NULL
4727         upon strdup failure.
4729 2016-10-12  Jim Meyering  <meyering@fb.com>
4731         test-stdint: use _GL_VERIFY rather than "verify" for some tests
4732         * tests/test-stdint.c (verify_width): Implement with _GL_VERIFY
4733         and an abbreviated diagnostic rather than verify with the full one,
4734         because the full-length strings would evoke warnings from gcc with
4735         -Woverlength-strings.
4737 2016-10-13  Paul Eggert  <eggert@cs.ucla.edu>
4739         stdint: port SIZE_MAX to glibc s390
4740         Problem reported by Eric Blake in:
4741         http://lists.gnu.org/archive/html/bug-gnulib/2016-10/msg00031.html
4742         * doc/posix-headers/stdint.texi (stdint.h): Document the fix.
4743         * m4/stdint.m4 (gl_STDINT_H): Check that SIZE_MAX has the
4744         correct type, if possible.
4746 2016-10-13  Daniel Richard G.  <skunk@iSKUNK.ORG>
4748         getprogname: port to IBM z/OS
4749         * lib/getprogname.c (getprogname): Use w_getpsent() to get the name.
4751 2016-10-11  Jim Meyering  <meyering@fb.com>
4753         maint: remove stray space after "." in AC_DEFINE comment.
4754         * m4/st_dm_mode.m4 (AC_STRUCT_ST_DM_MODE): Remove space-after-".".
4755         * m4/utimes.m4 (gl_FUNC_UTIMES): Likewise.
4757 2016-10-05  Jim Meyering  <meyering@fb.com>
4759         long-options: avoid new GCC 7 warning from -Wimplicit-fallthrough
4760         * lib/long-options.c (parse_long_options): Add a break statement
4761         to avoid this new warning/failure:
4762         $ CFLAGS='-O -Werror=implicit-fallthrough' ./gnulib-tool \
4763           --create-testdir --dir=/t/x --with-tests --test long-options
4764         ../../gllib/long-options.c: In function 'parse_long_options':
4765         ../../gllib/long-options.c:66:12: error: this statement may \
4766           fall through [-Werror=implicit-fallthrough]
4767                    (*usage_func) (EXIT_SUCCESS);
4768                    ~^~~~~~~~~~~~~~~~~~~~~~~~~~~
4770 2016-10-05  Jim Meyering  <meyering@fb.com>
4772         utimecmp: avoid new GCC 7 warning from -Wbool-operation
4773         Testing this module would fail when using GCC 7 like this:
4774         $ CFLAGS='-O -Werror=bool-operation' ./gnulib-tool --create-testdir \
4775           --dir=/tmp/x --with-tests --test utimecmp
4776         ../../gllib/utimecmp.c: In function ‘utimecmp’:
4777         ../../gllib/utimecmp.c:291:36: error: ‘~’ on a boolean expression \
4778           [-Werror=bool-operation]
4779                          time_t s = src_s & ~ (res == 2 * BILLION);
4780                                             ^
4781         ../../gllib/utimecmp.c:370:16: error: ‘~’ on a boolean expression \
4782           [-Werror=bool-operation]
4783                src_s &= ~ (res == 2 * BILLION);
4784                         ^
4785         * lib/utimecmp.c (utimecmp): Do not apply "~" to a boolean.
4786         Instead, make it explicit that we intend to apply it to 0 or 1.
4788 2016-10-10  Norihiro Tanaka  <noritnk@kcn.ne.jp>
4790         dfa: save memory for states
4791         * src/dfa (dfaexec_main): Beginning of dfa execution, release caches of
4792         states if dfa has a lot of caches.
4794 2016-10-10  Eli Zaretskii  <eliz@gnu.org>
4796         wchar, wctype-h: fix for MinGW 3.22.2
4797         * lib/wchar.in.h [__MINGW32__]: Add one more condition for
4798         special invocation, to fix issues with MinGW 3.22.2 wchar.h
4799         when included from <string.h>.
4800         * lib/wctype.in.h [__MINGW32__]: Add special invocation
4801         convention for MinGW 3.22.2, to solve issues with their
4802         wctype.h when included from <ctype.h>.
4804 2016-10-05  Jim Meyering  <meyering@fb.com>
4806         long-options: avoid new GCC 7 warning from -Wimplicit-fallthrough
4807         * lib/long-options.c (parse_long_options): Add a break statement
4808         to avoid this new warning/failure:
4809         $ CFLAGS='-O -Werror=implicit-fallthrough' ./gnulib-tool \
4810           --create-testdir --dir=/t/x --with-tests --test long-options
4811         ../../gllib/long-options.c: In function ‘parse_long_options’:
4812         ../../gllib/long-options.c:66:12: error: this statement may \
4813           fall through [-Werror=implicit-fallthrough]
4814                    (*usage_func) (EXIT_SUCCESS);
4815                    ~^~~~~~~~~~~~~~~~~~~~~~~~~~~
4817         utimecmp: avoid new GCC 7 warning from -Wbool-operation
4818         Testing this module would fail when using GCC 7 like this:
4819         $ CFLAGS='-O -Werror=bool-operation' ./gnulib-tool --create-testdir \
4820           --dir=/tmp/x --with-tests --test utimecmp
4821         ../../gllib/utimecmp.c: In function ‘utimecmp’:
4822         ../../gllib/utimecmp.c:291:36: error: ‘~’ on a boolean expression \
4823           [-Werror=bool-operation]
4824                          time_t s = src_s & ~ (res == 2 * BILLION);
4825                                             ^
4826         ../../gllib/utimecmp.c:370:16: error: ‘~’ on a boolean expression \
4827           [-Werror=bool-operation]
4828                src_s &= ~ (res == 2 * BILLION);
4829                         ^
4830         * lib/utimecmp.c (utimecmp): Do not apply "~" to a boolean.
4831         Instead, make it explicit that we intend to apply it to 0 or 1.
4833 2016-10-03  Pádraig Brady  <P@draigBrady.com>
4835         quotearg: minimize shell quoting using double quotes
4836         * lib/quotearg.c (quotearg_buffer_restyled): If an ASCII single
4837         quote in encountered then use double quotes (c style quoting)
4838         when possible, as it simplifies the quoting.
4839         * tests/test-quotearg-simple.c: Add test cases.
4840         * tests/test-quotearg.h (use_quotearg_buffer): Adjust to account
4841         for the fact we now may write beyond the returned length.
4843 2016-10-02  Jim Meyering  <meyering@fb.com>
4845         vasnprintf.c: avoid spurious warning from GCC 7
4846         The presence of cpp directives renders this "FALLTHROUGH" comment
4847         ineffective, so does not suppress the -Wimplicit-fallthrough warning
4848         from GCC 7 built from git on 2016-10-02.
4849         * lib/vasnprintf.c (VASNPRINTF): Move comment down past two cpp
4850         directives, so that it takes effect once again.  This is clearly
4851         not a proper change, and I will revert it once this bug is fixed:
4852         https://gcc.gnu.org/bugzilla/show_bug.cgi?id=77817
4854 2016-10-01  Jim Meyering  <meyering@fb.com>
4856         getprogname: correct the test for a __progname variable
4857         * m4/getprogname.m4 (gl_FUNC_GETPROGNAME): Use AC_CACHE_CHECK
4858         and AC_LINK_IFELSE to check for a global __progname.  If found,
4859         define HAVE_VAR___PROGNAME.
4860         * lib/getprogname.c (getprogname): Reflect the new name of the
4861         feature- checked preprocessor symbol:
4862         s/HAVE_DECL___PROGNAME/HAVE_VAR___PROGNAME/
4864 2016-09-28  Jim Meyering  <meyering@fb.com>
4866         u8-uctomb-aux.c: build: placate GCC 7's new -Wimplicit-fallthrough
4867         * lib/unistr/u8-uctomb-aux.c (u8_uctomb_aux): Mark each end of
4868         fall-through case with a /* fallthrough */ comment.
4870         dfa: build: avoid warning from GCC 7's new -Wimplicit-fallthrough
4871         * lib/dfa.c (dfassbuild): Mark the end of this case with a
4872         /* fallthrough */ comment.
4874         getprogname: avoid __progname vs program_invocation_short_name pitfall
4875         I.e., don't let the OpenBSD 5.1 fix induce failure when using newer
4876         glibc.  Would have caused failure with Fedora 25's glibc-2.24-3, but
4877         not with Fedora 24's glibc-2.23.1-10.
4878         * lib/getprogname.c (__progname): Move this declaration down...
4879         (getprogname): ... into the #elif block where used, and make it
4880         explicitly "extern".
4882         getprogname: port to OpenBSD 5.1
4883         * lib/getprogname.c (__progname) [HAVE_DECL___PROGNAME]: Declare.
4884         (getprogname) [HAVE_DECL___PROGNAME]: Return __progname or "?".
4885         * modules/getprogname (configure.ac): Move most of this code...
4886         * m4/getprogname.m4 (gl_FUNC_GETPROGNAME): ... to this function,
4887         increment serial number, and add a test for __progname.
4888         https://bugs.gnu.org/24562
4889         Reported by Nelson H. F. Beebe.
4891 2016-09-24  Paul Eggert  <eggert@cs.ucla.edu>
4893         sched: port to GCC 6.2.1 on macOS Sierra
4894         Problem reported by Denis Davydov in:
4895         http://lists.gnu.org/archive/html/bug-gnulib/2016-09/msg00056.html
4896         * lib/sched.in.h [HAVE_SYS_CDEFS_H]:
4897         Include <sys/cdefs.h> before <sched.h>.
4898         * m4/nproc.m4 (gl_PREREQ_NPROC): Include errno.h before sched.h,
4899         so that we needn’t worry about the sched.h include bug here.
4900         * m4/sched_h.m4 (gl_SCHED_H): Check for sys/cdefs.h,
4901         and include it before <sched.h> if it exists, when
4902         checking for <sched.h>.
4904         tests/init.sh: port Alpine fix to AIX 7.1
4905         * tests/init.sh (compare_): When attempting to use diff -U3,
4906         prefer diff -u to -U3 to -c to plain diff.  Do not insist on
4907         diff -u not outputting a space after leading '+', as the users
4908         of 'compare' should not be that picky about its output format.
4909         In the AIX 7.1 case, return with diff exit status (or with 2 if
4910         trouble), instead of some random nonzero exit status.
4911         * tests/test-init.sh (test_compare): Remove space after leading
4912         '+', so that AIX 7.1 'diff' passes the test.
4914 2016-09-22  Paul Eggert  <eggert@cs.ucla.edu>
4916         nl_langinfo: pacify GCC
4917         * lib/nl_langinfo.c (ctype_codeset): Remove unused local.
4918         (rpl_nl_langinfo): Cast string literals to char *, to pacify GCC.
4920         stdint: also set GL_GENERATE_LIMITS_H
4921         Problem reported by Jim Meyering in:
4922         http://lists.gnu.org/archive/html/bug-gnulib/2016-09/msg00052.html
4923         * m4/stdint.m4 (gl_STDINT_H): Also redo the AM_CONDITIONAL.
4925         limits-h, stdint: Don't assume extensions, fix typo
4926         * m4/limits-h.m4 (gl_LIMITS_H):
4927         * m4/stdint.m4 (gl_STDINT_H):
4928         Don't assume AC_USE_SYSTEM_EXTENSIONS.
4929         * m4/stdint.m4 (gl_STDINT_H): Fix typo in setting of LIMITS_H,
4930         reported by Jim Meyering in:
4931         http://lists.gnu.org/archive/html/bug-gnulib/2016-09/msg00050.html
4933 2016-09-21  Jim Meyering  <meyering@fb.com>
4935         getprogname: port to AIX
4936         * lib/getprogname.c (getprogname) [_AIX]: Use getpid, getprocs64
4937         and strdup to obtain a short program name string.  Using code from
4938         Bruno Haible and an idea from Bastien ROUCARIÈS, in
4939         https://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00249.html
4940         Assaf Gordon reported that this new file would fail to compile on
4941         AIX-7.1 32bit.
4943 2016-09-16  Paul Eggert  <eggert@cs.ucla.edu>
4945         extensions: fix typo in comment
4946         * m4/extensions.m4: Sync from Autoconf master.
4948         stdint: support new _WIDTH macros
4949         * doc/posix-headers/stdint.texi: Document this.
4950         * lib/stdint.in.h: Add support for INTMAX_WIDTH. etc.
4951         * m4/stdint.m4 (gl_STDINT_H): Require gl_LIMITS_H.  Check for
4952         support for INTMAX_WIDTH, etc. as well as for support for just C99.
4953         * modules/stdint (Depends-on): Add limits-h.
4954         (Makefile.am): Substitute HAVE_C99_STDINT_H.
4955         * modules/stdint-tests (Depends-on): Add extensions, so that
4956         INTMAX_MAX etc. are defined.
4957         * tests/test-stdint.c: Verify the new macros.
4959         limits-h: new module
4960         This adds ISO/IEC TS 18661-1:2014 support to limits.h.
4961         * MODULES.html.sh: Add limits-h,and move size_max to stdint section.
4962         * doc/posix-headers/limits.texi: Document new module.
4963         * lib/limits.in.h, m4/limits-h.m4, modules/limits-h:
4964         * modules/limit-h-tests, tests/test-limits-h.c: New files.
4966         stdio: don't redefine __USE_MINGW_ANSI_STDIO
4967         * m4/stdio_h.m4 (gl_STDIO_H): Don't define __USE_MINGW_ANSI_STDIO
4968         if it is already defined.  Apparently GNU Emacs relies on this.  See:
4969         http://lists.gnu.org/archive/html/emacs-devel/2016-09/msg00416.html
4971 2016-09-15  Eric Blake  <eblake@redhat.com>
4973         sys_types: avoid glibc 2.25 warnings about major()
4974         * m4/sys_types_h.m4 (AC_HEADER_MAJOR): Replace broken version in
4975         older autoconf.
4976         * doc/posix-headers/sys_types.texi (sys/types.h): Document fix.
4977         * doc/glibc-functions/gnu_dev_major.texi (gnu_dev_major): Likewise.
4978         * doc/glibc-functions/gnu_dev_makedev.texi (gnu_dev_makedev): Likewise.
4979         * doc/glibc-functions/gnu_dev_minor.texi (gnu_dev_minor): Likewise.
4981         mountlist: include sysmacros.h for glibc
4982         * m4/mountlist.m4 (gl_PREREQ_MOUTLIST_EXTRA): Include
4983         AC_HEADER_MAJOR.
4984         * lib/mountlist.c (includes): Use correct headers.
4986 2016-09-15  Paul Eggert  <eggert@cs.ucla.edu>
4988         extensions: port to more ISO C TSes
4989         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Sync from Autoconf
4990         master, to add support for more recent ISO C TRs and TSes.
4992 2016-09-13  Paul Eggert  <eggert@cs.ucla.edu>
4994         intprops: new macro TYPE_WIDTH
4995         * lib/intprops.h (TYPE_WIDTH): New macro.
4996         (TYPE_MAXIMUM, _GL_SIGNED_INT_MAXIMUM, INT_STRLEN_BOUND):
4997         * lib/ftoastr.h (_GL_FLOAT_DIG_BITS_BOUND):
4998         * lib/parse-datetime.y (parse_datetime2):
4999         Use it.
5001         extensions: port to recent ISO C TRs
5002         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS):
5003         Sync from Autoconf master, to add support for recent ISO C TRs.
5004         * m4/stdio_h.m4 (gl_STDIO_H): Define __USE_MINGW_ANSI_STDIO here,
5005         since AC_USE_SYSTEM_EXTENSIONS no longer does that as
5006         the MinGW option is not an extension.
5008 2016-09-11  Paul Eggert  <eggert@cs.ucla.edu>
5010         dfa: port to Solaris 9
5011         Problems reported by Tom G. Christensen in:
5012         http://lists.gnu.org/archive/html/bug-gnulib/2016-09/msg00031.html
5013         * modules/dfa (Depends-on): Add isblank.
5014         * modules/dfa-tests (dfa_match_aux_LDADD):
5015         Rename from test_stat_LDADD, to fix typo.
5016         * tests/dfa-match.sh: Don't require 'timeout'; use it if available.
5018 2016-09-10  Jim Meyering  <meyering@fb.com>
5020         strverscmp: avoid link failure on OS X
5021         * lib/strverscmp.c [!weak_alias]: Define __strverscmp to strverscmp.
5022         Reported by Assaf Gordon in https://bugs.gnu.org/24256#26
5024 2016-08-16  Jim Meyering  <meyering@fb.com>
5026         dfa: new module, importing grep's DFA matcher
5027         Since grep's DFA matcher is now being used by two gnulib-enabled
5028         projects, grep and sed, it makes sense to version-control its
5029         sources and unit tests in one place: here.
5030         * modules/dfa: New module.
5031         * modules/dfa-tests: New file.
5032         * lib/dfa.c: New file, from grep.
5033         * lib/dfa.h: Likewise.
5034         * lib/localeinfo.c: Likewise.
5035         * lib/localeinfo.h: Likewise.
5036         * tests/dfa-match-aux.c: Likewise.
5037         * tests/dfa-invalid-char-class.sh: Likewise.
5038         * tests/dfa-match.sh: Likewise, with minor changes.
5039         * MODULES.html.sh (Misc): Add "dfa" to this list.
5041 2016-09-09  Jim Meyering  <meyering@fb.com>
5043         getprogname-tests: don't depend on assert-h
5044         * modules/getprogname-tests (Depends-on): Remove assert-h.
5045         It was not needed, and in fact would cause build failure for
5046         coreutils on some systems.  Reported by Assaf Gordon in https:
5047         //lists.gnu.org/archive/html/coreutils/2016-09/msg00016.html
5049 2016-09-07  Jim Meyering  <meyering@fb.com>
5051         getprogname-tests: work also when EXEEXT is nonempty
5052         * modules/getprogname-tests (Makefile.am): Define EXEEXT.
5053         * tests/test-getprogname.c (main): Use it.
5054         Suggested by Gisle Vanem.
5056 2016-09-07  Gisle Vanem  <gvanem@yahoo.no>
5058         getprogname: fix errors in previous change
5059         * lib/getprogname.c (getprogname) [HAVE_GETEXECNAME]:
5060         s/program_invocation_name/base/
5061         [HAVE_DECL___ARGV]: Handle NULL __argv or __argv[0].
5063 2016-09-08  Pádraig Brady  <P@draigBrady.com>
5065         parse-datetime: restrict debug output to input string
5066         * lib/parse-datetime.y (parse_datetime2): If we parse
5067         all of the input but determine it's invalid, ensure
5068         we don't output the now invalid input pointer.
5069         This issue was seen with `date -d 'now +1'`.
5071 2016-09-07  Paul Eggert  <eggert@cs.ucla.edu>
5073         flexmember: new macro FLEXALIGNOF
5074         * lib/flexmember.h: Include <stddef.h>, for offsetof.
5075         (FLEXALIGNOF): Rename from _GL_XALLOC_ALIGNOF, as Emacs can use
5076         this macro.  Update comments.
5078 2016-09-07  Jim Meyering  <meyering@fb.com>
5080         getprogname: port to systems with __argv (mingw, msvc)
5081         * lib/getprogname.c (getprogname): Include "dirname.h" and use
5082         last_component: more general than open coding it with hard-coded "/".
5083         * lib/getprogname.h (getprogname): Prefer "char const *" consistently.
5084         * modules/getprogname (Depends-on): Add dirname-lgpl.
5085         (configure.ac): Check for __argv in <stdlib.h>.
5086         * modules/getprogname-tests: New file.
5087         * tests/test-getprogname.c: New file.
5088         Suggested by Gisle Vanem in
5089         https://lists.gnu.org/archive/html/bug-gnulib/2016-09/msg00014.html
5091 2016-09-07  Paul Eggert  <eggert@cs.ucla.edu>
5093         flexmember: port better to GCC + valgrind
5094         With a char[] flexible array member in a struct with nontrivial
5095         alignment, GCC-generated code can access past the end of the
5096         array, because GCC assumes there are padding bytes to get the
5097         struct aligned.  So the common idiom of malloc (offsetof (struct
5098         s, m), n) does not properly allocate an n-byte trailing member, as
5099         malloc’s argument should be the next multiple of alignof (struct s).
5100         See GCC Bug#66661: https://gcc.gnu.org/bugzilla/show_bug.cgi?id=66661
5101         Although C11 apparently permits this GCC optimization (i.e., there
5102         was a bug in Gnulib not in GCC), possibly this is a defect in C11.
5103         See the thread containing:
5104         https://gcc.gnu.org/ml/gcc-patches/2016-09/msg00317.html
5105         * lib/flexmember.h: New file.
5106         * lib/fnmatch.c, lib/fts.c, lib/glob.c, lib/idcache.c:
5107         * lib/localename.c, lib/time_rz.c:
5108         Include flexmember.h.
5109         * lib/fnmatch_loop.c (struct patternlist):
5110         * lib/localename.c (struct hash_node):
5111         Use FLEXIBLE_ARRAY_MEMBER.
5112         * lib/fnmatch_loop.c (EXT):
5113         * lib/fts.c (fts_alloc):
5114         * lib/glob.c (glob_in_dir):
5115         * lib/idcache.c (getuser, getuidbyname, getgroup, getgidbyname):
5116         * lib/localename.c (gl_lock_define_initialized):
5117         * lib/time_rz.c (tzalloc):
5118         Use FLEXSIZEOF instead of offsetof.
5119         * m4/flexmember.m4 (AC_C_FLEXIBLE_ARRAY_MEMBER):
5120         Check that the size of the struct can be taken.
5121         * modules/flexmember (Files): Add lib/flexmember.h.
5122         * modules/fnmatch, modules/glob, modules/localename (Depends-on):
5123         Add flexmember.
5125 2016-09-06  Paul Eggert  <eggert@cs.ucla.edu>
5127         getprogname: port to Solaris 10
5128         * lib/getprogname.c: Include stdlib.h, for getexecname decl.
5129         (getprogname) [HAVE_GETEXECNAME]: Use that, for Solaris 10.
5130         * m4/getprogname.m4 (gl_FUNC_GETPROGNAME): Check for getexecname.
5132         stdalign: correct mistake in alignof doc
5133         Problem reported by Joseph Myers in:
5134         https://gcc.gnu.org/ml/gcc-patches/2016-09/msg00340.html
5135         * doc/posix-headers/stdalign.texi: Do not imply that C11 prohibits
5136         alignof(S) where S is a structure containing a flexible array
5137         member.  The Gnulib substitute does not support this, but C11 does.
5139 2016-08-18  Pino Toscano  <ptoscano@redhat.com>
5141         main.mk: remove sc_program_name, since there is no more need to
5142         use set_program_name in tools (getprogname is enough for most
5143         of the cases).
5144         * cfg.mk (local-checks-to-skip): Remove sc_program_name.
5145         * top/maint.mk (sc_program_name): Remove.
5147 2016-08-18  Pino Toscano  <ptoscano@redhat.com>
5149         Port tests away from progname, since modules that need the
5150         program name already depend on getprogname.
5151         * modules/acl-tests (Depends-on): Remove progname.
5152         * modules/argmatch (Depends-on): Likewise.
5153         * modules/argmatch-tests (Depends-on): Likewise.
5154         * modules/argp-tests (Depends-on): Likewise.
5155         * modules/argp-version-etc-tests (Depends-on): Likewise.
5156         * modules/array-list-tests (Depends-on): Likewise.
5157         * modules/array-oset-tests (Depends-on): Likewise.
5158         * modules/avltree-list-tests (Depends-on): Likewise.
5159         * modules/avltree-oset-tests (Depends-on): Likewise.
5160         * modules/avltreehash-list-tests (Depends-on): Likewise.
5161         * modules/carray-list-tests (Depends-on): Likewise.
5162         * modules/copy-file-tests (Depends-on): Likewise.
5163         * modules/exclude-tests (Depends-on): Likewise.
5164         * modules/fchownat-tests (Depends-on): Likewise.
5165         * modules/fdopendir-tests (Depends-on): Likewise.
5166         * modules/filenamecat-tests (Depends-on): Likewise.
5167         * modules/fstatat-tests (Depends-on): Likewise.
5168         * modules/fstrcmp-tests (Depends-on): Likewise.
5169         * modules/linked-list-tests (Depends-on): Likewise.
5170         * modules/linkedhash-list-tests (Depends-on): Likewise.
5171         * modules/mkdirat-tests (Depends-on): Likewise.
5172         * modules/nonblocking-pipe-tests (Depends-on): Likewise.
5173         * modules/nonblocking-socket-tests (Depends-on): Likewise.
5174         * modules/obstack-printf-tests (Depends-on): Likewise.
5175         * modules/openat-tests (Depends-on): Likewise.
5176         * modules/parse-datetime-tests (Depends-on): Likewise.
5177         * modules/pipe-filter-gi-tests (Depends-on): Likewise.
5178         * modules/pipe-filter-ii-tests (Depends-on): Likewise.
5179         * modules/quotearg-simple-tests (Depends-on): Likewise.
5180         * modules/quotearg-tests (Depends-on): Likewise.
5181         * modules/rbtree-list-tests (Depends-on): Likewise.
5182         * modules/rbtree-oset-tests (Depends-on): Likewise.
5183         * modules/rbtreehash-list-tests (Depends-on): Likewise.
5184         * modules/spawn-pipe-tests (Depends-on): Likewise.
5185         * modules/system-quote-tests (Depends-on): Likewise.
5186         * modules/uniname/uniname-tests (Depends-on): Likewise.
5187         * modules/uninorm/nfc-tests (Depends-on): Likewise.
5188         * modules/uninorm/nfd-tests (Depends-on): Likewise.
5189         * modules/uninorm/nfkc-tests (Depends-on): Likewise.
5190         * modules/uninorm/nfkd-tests (Depends-on): Likewise.
5191         * modules/unistdio/u16-vsnprintf-tests (Depends-on): Likewise.
5192         * modules/unistdio/u16-vsprintf-tests (Depends-on): Likewise.
5193         * modules/unistdio/u32-vsnprintf-tests (Depends-on): Likewise.
5194         * modules/unistdio/u32-vsprintf-tests (Depends-on): Likewise.
5195         * modules/unistdio/u8-vsnprintf-tests (Depends-on): Likewise.
5196         * modules/unistdio/u8-vsprintf-tests (Depends-on): Likewise.
5197         * modules/unistdio/ulc-vsnprintf-tests (Depends-on): Likewise.
5198         * modules/unistdio/ulc-vsprintf-tests (Depends-on): Likewise.
5199         * modules/unlinkat-tests (Depends-on): Likewise.
5200         * modules/version-etc-tests (Depends-on): Likewise.
5201         * modules/xalloc-die-tests (Depends-on): Likewise.
5202         * modules/xmemdup0-tests (Depends-on): Likewise.
5203         * modules/xprintf-posix-tests (Depends-on): Likewise.
5204         * modules/xvasprintf-tests (Depends-on): Likewise.
5205         * tests/test-argmatch.c: Do not include progname.h.
5206         (main) Stop calling set_program_name.
5207         * tests/test-argp-version-etc.c: Likewise.
5208         * tests/test-argp.c: Likewise.
5209         * tests/test-argv-iter.c: Likewise.
5210         * tests/test-array_list.c: Likewise.
5211         * tests/test-array_oset.c: Likewise.
5212         * tests/test-avltree_list.c: Likewise.
5213         * tests/test-avltree_oset.c: Likewise.
5214         * tests/test-avltreehash_list.c: Likewise.
5215         * tests/test-carray_list.c: Likewise.
5216         * tests/test-copy-acl.c: Likewise.
5217         * tests/test-copy-file.c: Likewise.
5218         * tests/test-exclude.c: Likewise.
5219         * tests/test-fchownat.c: Likewise.
5220         * tests/test-fdopendir.c: Likewise.
5221         * tests/test-filenamecat.c: Likewise.
5222         * tests/test-fstatat.c: Likewise.
5223         * tests/test-fstrcmp.c: Likewise.
5224         * tests/test-linked_list.c: Likewise.
5225         * tests/test-linkedhash_list.c: Likewise.
5226         * tests/test-mkdirat.c: Likewise.
5227         * tests/test-nonblocking-pipe-main.c: Likewise.
5228         * tests/test-nonblocking-socket-main.c: Likewise.
5229         * tests/test-obstack-printf.c: Likewise.
5230         * tests/test-openat.c: Likewise.
5231         * tests/test-parse-datetime.c: Likewise.
5232         * tests/test-pipe-filter-gi1.c: Likewise.
5233         * tests/test-pipe-filter-gi2-main.c: Likewise.
5234         * tests/test-pipe-filter-ii1.c: Likewise.
5235         * tests/test-pipe-filter-ii2-main.c: Likewise.
5236         * tests/test-quotearg-simple.c: Likewise.
5237         * tests/test-quotearg.c: Likewise.
5238         * tests/test-rbtree_list.c: Likewise.
5239         * tests/test-rbtree_oset.c: Likewise.
5240         * tests/test-rbtreehash_list.c: Likewise.
5241         * tests/test-sameacls.c: Likewise.
5242         * tests/test-set-mode-acl.c: Likewise.
5243         * tests/test-spawn-pipe-main.c: Likewise.
5244         * tests/test-system-quote-main.c: Likewise.
5245         * tests/test-unlinkat.c: Likewise.
5246         * tests/test-version-etc.c: Likewise.
5247         * tests/test-xalloc-die.c: Likewise.
5248         * tests/test-xfprintf-posix.c: Likewise.
5249         * tests/test-xmemdup0.c: Likewise.
5250         * tests/test-xprintf-posix.c: Likewise.
5251         * tests/test-xvasprintf.c: Likewise.
5252         * tests/uniname/test-uninames.c: Likewise.
5253         * tests/uninorm/test-u32-nfc-big.c: Likewise.
5254         * tests/uninorm/test-u32-nfd-big.c: Likewise.
5255         * tests/uninorm/test-u32-nfkc-big.c: Likewise.
5256         * tests/uninorm/test-u32-nfkd-big.c: Likewise.
5257         * tests/unistdio/test-u16-vsnprintf1.c: Likewise.
5258         * tests/unistdio/test-u16-vsprintf1.c: Likewise.
5259         * tests/unistdio/test-u32-vsnprintf1.c: Likewise.
5260         * tests/unistdio/test-u32-vsprintf1.c: Likewise.
5261         * tests/unistdio/test-u8-vsnprintf1.c: Likewise.
5262         * tests/unistdio/test-u8-vsprintf1.c: Likewise.
5263         * tests/unistdio/test-ulc-vsnprintf1.c: Likewise.
5264         * tests/unistdio/test-ulc-vsprintf1.c: Likewise.
5265         * tests/test-c-stack.c: (program_name): Do not define.
5266         (main): Do not set program_name.
5267         * tests/test-closein.c: Likewise.
5268         * tests/test-xstrtol.c: Likewise.
5269         * tests/test-yesno.c: Likewise.
5271 2016-08-18  Pino Toscano  <ptoscano@redhat.com>
5273         Port modules to use getprogname explicitly, instead of requiring
5274         progname to be used (or program_name to be provided).
5275         * lib/argmatch.c: Do not include progname.h.
5276         [TEST] (program_name): Do not define.
5277         [TEST] (main): Call getprogname instead of using program_name.
5278         * lib/c-stack.c: Do not include progname.h.
5279         (program_name): Do not define.
5280         (die): Call getprogname instead of using program_name.
5281         * lib/chdir-long.c: Do not include progname.h.
5282         [TEST_CHDIR] (main): Do not set program_name.
5283         * lib/error.c [!_LIBC]: Include progname.h.
5284         [!_LIBC] (program_name): Define using getprogname.
5285         * lib/euidaccess.c: Do not include progname.h.
5286         [TEST] (main): Do not set program_name.
5287         * lib/git-merge-changelog.c: Include getprogname.h instead of
5288         progname.h.
5289         (usage): Call getprogname instead of using program_name.
5290         (main): Likewise.  Stop calling set_program_name.
5291         * lib/group-member.c: Do not include progname.h.
5292         [TEST] (main): Do not set program_name.
5293         * modules/argmatch (Depends-on): Add getprogname.
5294         * modules/c-stack (Depends-on): Likewise.
5295         * modules/error (Depends-on): Likewise.
5296         * modules/git-merge-changelog (Depends-on): Likewise.
5297         Also remove progname.
5299 2016-09-05  Pino Toscano  <ptoscano@redhat.com>
5301         * NEWS: Document the deprecation of the 'progname' module.
5303 2016-08-18  Pino Toscano  <ptoscano@redhat.com>
5305         getprogname: new module
5306         This provides a LGPL module for getting the name of the current
5307         program, using the same API found on *BSD systems.
5308         * lib/getprogname.c, lib/getprogname.h, m4/getprogname.m4:
5309         * modules/getprogname: New files.
5310         * MODULES.html.sh (Misc): Add getprogname.
5312 2016-09-02  Jim Meyering  <meyering@fb.com>
5314         manywarnings: add -fno-common
5315         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Add -fno-common
5316         to the list.  Quoting the manual, "Compiling with -fno-common is
5317         useful on targets for which it provides better performance, or if
5318         you wish to verify that the program will work on other systems that
5319         always treat uninitialized variable declarations this way [putting
5320         it in the data section]."  If diffutils had been using this sooner,
5321         it would have prevented this duplicate declaration issue:
5322         http://git.sv.gnu.org/cgit/diffutils.git/commit/?id=v3.4-10-gc2dc91f
5324 2016-08-31  Simon Josefsson  <simon@josefsson.org>
5326         parse-datetime: Fix typo.
5327         * lib/parse-datetime.y (parse_datetime2): Fix typo.
5329 2016-08-30  Paul Eggert  <eggert@cs.ucla.edu>
5331         intprops: tune INT_NEGATE_OVERFLOW for GCC 5 and 6
5332         * lib/intprops.h (INT_NEGATE_OVERFLOW): Tune for platforms like
5333         GCC 5 and 6 that have __builtin_sub_overflow but not
5334         __builtin_sub_overflow_p.  With the recent changes, these
5335         platforms are a tiny bit faster with the INT_NEGATE_RANGE_OVERFLOW
5336         implementation than with INT_SUBTRACT_OVERFLOW implementation,
5337         since the former needs just one runtime comparison whereas the
5338         latter needs two.
5340         strverscmp: sync with glibc
5341         Although this doesn't exactly synchronize with glibc
5342         byte-for-byte, it makes the code behave the same as glibc.
5343         * lib/strverscmp.c (S_I, S_F, S_Z): Now masks, not powers of 2.
5344         (ISDIGIT): Remove, as glibc is sticking with isdigit, and the
5345         difference shouldn't matter in practical use.  All uses changed
5346         back to isdigit.
5347         (__strverscmp, strverscmp): Use new glibc method for weak aliases.
5348         (next_state): Now unsigned char array; redo elements.
5349         (result_type): Now signed char array; redo elements.
5350         (__strverscmp): Fix glibc bug 9913 by using new states.
5351         * tests/test-strverscmp.c (main): Test glibc bug 9913.
5353 2016-08-29  Jim Meyering  <meyering@fb.com>
5355         xalloc-oversized.h: port __builtin_mul_overflow change to GCC 6.2.0
5356         * lib/xalloc-oversized.h: Port this change to GCC 6.2.0, too,
5357         similarly to how it was done to intprops.h.
5359 2016-08-29  Paul Eggert  <eggert@cs.ucla.edu>
5361         intprops.h: port recent changes to GCC 6.2.0
5362         * lib/intprops.h (__has_builtin): Move earlier.
5363         (_GL_HAS_BUILTIN_OVERFLOW): Rename from
5364         _GL_HAS_BUILTIN_OVERFLOW_WITH_NULL and don't worry about whether
5365         the last argument can be null.  All uses changed.
5366         (_GL_HAS_BUILTIN_OVERFLOW_P): Also test __has_builtin.
5367         (_GL_ADD_OVERFLOW, _GL_SUBTRACT_OVERFLOW, _GL_MULTIPLY_OVERFLOW):
5368         Don't try to use 3rd arg null, as this doesn't work on GCC 6.2.0
5369         and it's not clear which GCC versions it works for.
5370         (_GL_INT_OP_WRAPV): Use _GL_HAS_BUILTIN_OVERFLOW instead of
5371         its definiens.
5373         intprops.h: use __typeof__ with GCC 7
5374         * lib/intprops.h (_GL_ADD_OVERFLOW, _GL_SUBTRACT_OVERFLOW)
5375         (_GL_MULTIPLY_OVERFLOW): Use __typeof__ as in the GCC manual.
5376         This avoids computing the expression's value (which might overflow!).
5378 2016-08-29  Jim Meyering  <meyering@fb.com>
5380         intprops.h, xalloc-oversized.h: work with gcc 7
5381         In gcc 6, __builtin_add_overflow, __builtin_sub_overflow and
5382         __builtin_mul_overflow each accept a NULL pointer as the third
5383         argument.  However in gcc 7, that is no longer accepted.
5384         Instead, one must use the "_p"-suffixed names, with which, the
5385         third parameter is no longer a pointer.
5386         * lib/intprops.h (_GL_HAS_BUILTIN_OVERFLOW_WITH_NULL): Correct
5387         the definition: not true for gcc 7 and subsequent.
5388         (_GL_HAS_BUILTIN_OVERFLOW_P): Define.
5389         (_GL_ADD_OVERFLOW, _GL_SUBTRACT_OVERFLOW, _GL_MULTIPLY_OVERFLOW):
5390         Provide new definitions for gcc 7 and subsequent.
5391         * lib/xalloc-oversized.h (xalloc_oversized): Provide a definition
5392         that works with gcc-7.
5394         intprops.h: fix missing-backslash problems
5395         * lib/intprops.h (_GL_ADD_OVERFLOW): Add backslash.
5396         (_GL_SUBTRACT_OVERFLOW,_GL_MULTIPLY_OVERFLOW): Likewise.
5398 2016-08-24  Paul Eggert  <eggert@cs.ucla.edu>
5400         intprops: fix paren typo on old platforms
5401         Problem reported by John E. Malmberg in: https://bugs.gnu.org/24300#13
5402         * lib/intprops.h (_GL_INT_OP_WRAPV_LONGISH)
5403         [__GNUC__ < 5 && !__has_builtin (__builtin_add_overflow)
5404         && (__STDC_VERSION__ < 201112 || _GL__GENERIC_BOGUS)
5405         && !defined LLONG_MAX]:
5406         Remove stray paren.
5408         intprops: port to OpenVMS
5409         Problem reported by John E. Malmberg in: https://bugs.gnu.org/24300
5410         * doc/posix-headers/limits.texi: Document the problem.
5411         * lib/intprops.h (LLONG_MAX, LLONG_MIN) [__INT64_MAX]:
5412         Define if not already defined.
5414 2016-08-19  Assaf Gordon  <assafgordon@gmail.com>
5416         parse-datetime: improve debug implementation
5417         Follow-up to commit 12ad79069 ("add optional debug printing").
5418         Improve parse-datetime's debug implementation: remove macros,
5419         replace global debug flag variable with a function parameter,
5420         use nstrftime for formatting.
5421         See: https://lists.gnu.org/archive/html/bug-gnulib/2016-08/msg00021.html
5422         * lib/parse-datetime.h: (parse_datetime_debug): Remove global extern.
5423         (parse_datetime2): New function, accepts 'flags' parameter, supporting
5424         debug flag. Existing interface 'parse_datetime' left unmodified.
5425         * lib/parse-datetime.c: (parse_datetime_debug): Remove global variable.
5426         (struct parser_control): add 'parse_datetime_debug' member variable.
5427         (parse_datetime): Call new function 'parse_datetime2' without debug.
5428         (parse_datetime2): Adapted from previous 'parse_datetime', initialize
5429         pc.parse_datetime_debug variable as needed.
5430         (to_year): Accept new flags parameter, instead of using global variable.
5431         (debug_print_current_time,debug_print_relative_time,debug_mktime_not_ok):
5432         use struct 'debug' variable instead of global variable.
5433         (DEBUG,DEBUG_PRINT_CURRENT_TIME,DEBUG_PRINT_RELATIVE_TIME,
5434         DEBUG_MKTIME_NOT_OK,PROGRESS,PROGRESS0): Remove macros. Call
5435         correspnding functions directly instead of using macros.
5436         * modules/parse-datetime: Add gnulib's strftime module.
5438 2016-08-19  Daniel Richard G.  <skunk@iSKUNK.ORG>
5440         c-strcase-tests: port to EBCDIC
5441         * tests/test-c-strncasecmp.c: Allow two c_strncasecmp calls
5442         which assume ASCII encoding semantics to run only in ASCII
5443         mode, as they fail in EBCDIC.
5445         sigpipe-tests: fix typo
5446         * tests/test-sigpipe.sh: C, not B.
5448 2016-08-18  Paul Eggert  <eggert@cs.ucla.edu>
5450         canonicalize-lgpl: fix errno after malloca fails
5451         This fixes a typo I recently introduced.  Suggested by Bruno Haible in:
5452         http://lists.gnu.org/archive/html/bug-gnulib/2016-08/msg00039.html
5453         * lib/canonicalize-lgpl.c (__realpath):
5454         Don't assume malloca sets errno on failure.
5456 2016-08-17  Paul Eggert  <eggert@cs.ucla.edu>
5458         strtod: port errno handling to z/OS
5459         * lib/strtod.c (strtod): Save and restore errno more reliably.
5461 2016-08-17  Daniel Richard G.  <skunk@iSKUNK.ORG>
5463         strtod: port to z/OS
5464         * lib/strtod.c (strtod): Address a couple quirks in the z/OS
5465         implementation.
5467 2016-08-17  Paul Eggert  <eggert@cs.ucla.edu>
5469         strtod: port to z/OS
5470         * lib/strtod.c (strtod): Address a couple quirks in the z/OS
5471         implementation.
5473         regex, string: rename to avoid '__string'
5474         * lib/regex.h, lib/string.in.h: Do not use the identifier
5475         '__string', as it is effectively reserved by string.h on z/OS.
5477         c-strcase-tests, wcwidth-tests: depend on c-ctype
5478         * modules/c-strcase-tests, modules/wcwidth-tests (Depends-on):
5479         Add c-ctype.
5481 2016-08-17  Daniel Richard G.  <skunk@iSKUNK.ORG>
5483         thread: port to z/OS
5484         * lib/glthread/thread.c, lib/glthread/thread.h:
5485         Rudimentary gl_thread support for z/OS.
5487         maint: port tests to z/OS errno behavior
5488         * tests/test-nonblocking-reader.h:
5489         * tests/test-nonblocking-writer.h:
5490         Accommodate z/OS errno code preferences. (I believe this should
5491         still be within spec; IBM is good at following the letter if not
5492         the spirit of such things.)
5494         maint: preprocessor changes to support z/OS
5495         * lib/alloca.in.h, lib/fnmatch.c, lib/get-rusage-as.c:
5496         * lib/glob.c, lib/math.in.h, lib/ptsname_r.c:
5497         * tests/infinity.h, tests/nan.h, tests/test-canonicalize-lgpl.c:
5498         * tests/test-nonblocking-pipe.h:
5500         fclose, strstr-simple, wchar: port to z/OS
5501         * m4/fclose.m4, m4/strstr.m4, m4/wchar_h.m4:
5502         Changes to the Autoconf M4 code to support z/OS.  Note that
5503         fclose() is broken in a different way on z/OS than it is on other
5504         systems, thus the special-case in fclose.m4.
5506         iconv_open-utf-tests, iconv-tests: port to EBCDIC
5507         * tests/test-iconv-utf.c, tests/test-iconv.c:
5508         Added appropriately conditional #pragmas so that the test strings
5509         in test-iconv-utf.c are correctly interpreted in ASCII instead of
5510         EBCDIC (i.e. 'J' == 0x4A and not 0xD1). This issue could be
5511         addressed in a more portable way by simply rewriting all the ASCII
5512         literal characters as octal escapes, but then you would lose the
5513         partial readability that the strings have now. Also, iconv_open()
5514         on z/OS does not recognize "ISO-8859-1", but "ISO8859-1" works.
5516         c-strcase-tests, wcwidth-tests: port to EBCDIC
5517         * tests/test-c-strcasecmp.c: Include c-ctype.h.
5518         (main) [!C_CTYPE_ASCII]: Skip tests that assume ASCII.
5519         * tests/test-wcwidth.c: Likewise.
5521 2016-08-17  Paul Eggert  <eggert@cs.ucla.edu>
5523         stdbool: don't require _Bool for C++
5524         Problem reported by David Seifert in:
5525         http://lists.gnu.org/archive/html/bug-gnulib/2016-06/msg00005.html
5526         * NEWS, doc/posix-headers/stdbool.texi (stdbool.h): Document this.
5527         * m4/stdbool.m4 (AC_CHECK_HEADER_STDBOOL): Make the check
5528         more-forgiving for C++, in that it requires only 'bool'.  Be a bit
5529         stricter about checking that bool and _Bool are compatible in C.
5531 2016-08-16  Paul Eggert  <eggert@cs.ucla.edu>
5533         getdelim: remove dependency on realloc-posix
5534         * lib/canonicalize-lgpl.c (alloc_failed)
5535         [!FUNC_REALPATH_WORKS || defined _LIBC]: New function,
5536         (__realpath) [!FUNC_REALPATH_WORKS || defined _LIBC]: Use it.
5537         Use __set_errno where needed, for consistency.
5538         * lib/getdelim.c (alloc_failed): New function.
5539         (getdelim): Use it.
5541 2016-08-09  Assaf Gordon  <assafgordon@gmail.com>
5543         parse-datetime: add optional debug printing
5544         Print parsing information, warnings, and errors to stderr.
5545         * lib/parse-datetime.h (parse_datetimte_debug): New global variable.
5546         * lib/parse-datetime.y:
5547         (DEBUG_*):  Macros calling debug functions if debugging is enabled.
5548         (PROGRESS*): Same as DEBUG, for progress reporting.
5549         (dbg_printf): Print message to stderr, with 'date' prefix.
5550         (struct parser_control): Add 'debug_*_seen' variables.
5551         (str_days): Converts day ordinal/number to string (e.g. 'last wed').
5552         (debug_print_current_time, debug_print_relateive_time): Prints the
5553         current/relative date/time value of parser_control.
5554         (YACC parser syntax): Print parsed parts with DEBUG_* macros.
5555         (to_year): Warn about 2-digit year parsing.
5556         (yylex):   Warn about unrecognized words.
5557         (get_effective_timezone): Returns current timezone in minutes.
5558         (debug_strf{time,date,datetime}): Convert 'struct tm' to string as
5559         clearly and unambigiously as possible.
5560         (debug_mktime_not_ok): Print detailed information about failed
5561         date/time values.
5562         (parse_datetime): Add DEBUG messages for failures, warnings. Add
5563         PROGRESS messages for status messages.
5564         * modules/parse-datetime: Add 'timegm', 'gettext-h' dependencies.
5566 2016-08-06  Jim Meyering  <meyering@fb.com>
5568         tests/init.sh: exclude dash with bad "local" semantics
5569         * tests/init.sh (gl_shell_test_script_): Add a function to
5570         eliminate a shell like "dash" (unlike bash, zsh) that has
5571         surprising/risky "local var='...'" semantics.  Inspired by
5572         the problem and discussion in https://bugs.gnu.org/24116#11.
5574 2016-08-02  Ján Tomko  <jtomko@redhat.com>
5576         maint.mk: expand the prohibit_doubled_word regex
5577         This check has a static list of words that are checked for
5578         repetitions.  Expand it before running the perl script to
5579         avoid using expensive captures.  This decreases the cost
5580         for libvirt from 1.66s to 0.66s.
5581         * top/maint.mk (prohibit_doubled_word_expanded_): Define.
5582         (sc_prohibit_doubled_word): Use it.
5584 2016-07-26  Ján Tomko  <jtomko@redhat.com>
5586         useless-if-before-free: skip non-matching lines early
5587         * build-aux/useless-if-before-free: First match each line with the
5588         simple/quick /\bif\b/ and reject if there is no match. This often
5589         saves the cost of the much more involved regular expression.
5590         For libvirt, this decreases the cost from 1.44s to 1.02s.
5592 2016-07-26  Ján Tomko  <jtomko@redhat.com>
5594         maint.mk: speed up sc_po_check
5595         sc_po_check would skip files based on their names, or on the
5596         existence of files with derived names. Rewrite it to use perl
5597         instead of shell to make the check faster.
5598         * top/maint.mk (perl_translatable_files_list_): Define.
5599         (sc_po_check): Use it.
5601 2016-07-30  Ján Tomko  <jtomko@redhat.com>
5603         maint.mk: speed up require_config_h_first
5604         Instead of spawning three processes per file,
5605         rewrite the check in perl and run it once for all the files.
5606         * top/maint.mk (perl_config_h_first_): Define.
5607         (sc_require_config_h_first): Use it in place of shell code.
5609 2016-07-26  Ján Tomko  <jtomko@redhat.com>
5611         maint.mk: speed up sc_po_check
5612         sc_po_check would skip files based on their names, or on the
5613         existence of files with derived names. Rewrite it to use perl
5614         instead of shell to make the check faster.
5615         * top/maint.mk (perl_translatable_files_list_): Define.
5616         (sc_po_check): Use it.
5618 2016-07-15  Paul Eggert  <eggert@cs.ucla.edu>
5620         obstack: pacify GCC 6 with -Wnull-dereference
5621         Problem reported by Assaf Gordon in:
5622         http://lists.gnu.org/archive/html/bug-gnulib/2016-07/msg00028.html
5623         * lib/obstack.c, lib/obstack.h (obstack_alloc_failed_handler):
5624         Declare with __attribute_noreturn__.
5625         * lib/obstack.h (__attribute_noreturn__): New macro.
5627 2016-07-13  Eric Blake  <eblake@redhat.com>
5629         doc: mention glibc, OS X, Cygwin [S]SIZE_MAX buglet
5630         * doc/posix-headers/stdint.texi (stdint.h): Document the bugs.
5631         * doc/posix-headers/limits.texi (limits.h): Document the bugs.
5633 2016-07-13  Paul Eggert  <eggert@cs.ucla.edu>
5635         doc: mention glibc SSIZE_MAX buglet
5636         * doc/posix-headers/limits.texi (limits.h): Document the bug.
5638 2016-07-04  Martin Kletzander  <mkletzan@redhat.com>
5640         printf-posix: Fix mingw build
5641         Commit 54615b95ff238e235e806855efc46a9abad09f2e changed the regular
5642         expression for detecting C symbol prefixes but forgot to qoute square
5643         brackets in the command line arguments for grep.  That way when
5644         building with mingw the condition was false although it ought to be
5645         true instead.  In particular scenarios this led to the following
5646         compile error:
5648             Cannot export rpl_printf: symbol not found
5649             Cannot export rpl_scanf: symbol not found
5650             collect2: error: ld returned 1 exit status
5652         Fix this by properly quoting square brackets.
5654 2016-07-03  Paul Eggert  <eggert@cs.ucla.edu>
5656         mktime: call tzset as per POSIX
5657         Problem reported by Ludovic Courtès in:
5658         http://lists.gnu.org/archive/html/bug-gnulib/2016-06/msg00068.html
5659         * lib/mktime.c (mktime) [!_LIBC && HAVE_TZSET]: Call tzset.
5660         * m4/mktime.m4 (gl_FUNC_MKTIME): Check for tzset.
5662 2016-06-26  Pádraig Brady  <P@draigBrady.com>
5664         fts: handle readdir() errors
5665         * lib/fts.c (fts_build): readdir(3) returns NULL when finished,
5666         but also upon error when it will also set errno.  Therefore
5667         flag the error case from readdir().  We treat the case where
5668         no items are read the same as if the dir can't be accessed,
5669         i.e. by setting fts_errno to FTS_DNR.
5671 2016-06-24  Paul Eggert  <eggert@cs.ucla.edu>
5673         intprops: port better to GCC 7
5674         GCC 7 __builtin_add_overflow supports a new usage form, where the
5675         last argument is a null pointer, and which merely returns 1 if an
5676         overflow would occur.  This is a constant expression if all
5677         arguments are constants, and should generate faster code when code
5678         needs to be generated.
5679         * lib/intprops.h (_GL_HAS_BUILTIN_OVERFLOW_WITH_NULL): New macro.
5680         (_GL_ADD_OVERFLOW, _GL_SUBTRACT_OVERFLOW, _GL_MULTIPLY_OVERFLOW):
5681         Use builtin operations if available.
5682         (INT_NEGATE_OVERFLOW): Prefer INT_SUBTRACT_OVERFLOW if builtin
5683         operations are available, as it's almost surely faster.
5685 2016-06-23  Paul Eggert  <eggert@cs.ucla.edu>
5687         intprops-test: port to GCC 6
5688         * tests/test-intprops.c: Ignore -Woverflow if any GCC version,
5689         since the bug is not fixed in GCC 6.1.
5691 2016-06-13  Paul Eggert  <eggert@cs.ucla.edu>
5693         xalloc-oversized: port to GCC 7; fewer warnings
5694         GCC 7 will have a better way to deal with integer overflow.
5695         Plus, fix a warnings problem reported by Tim Ruehsen in:
5696         http://lists.gnu.org/archive/html/bug-gnulib/2016-06/msg00022.html
5697         * lib/xalloc-oversized.h (__xalloc_oversized): New macro.
5698         (xalloc_oversized): Use plain __builtin_mul_overflow if GCC 7 or later.
5699         For GCC 5, use __xalloc_oversized if both args are constants,
5700         or if pedantic.
5702 2016-06-08  Paul Eggert  <eggert@cs.ucla.edu>
5704         regex: port to Sun C
5705         Reported by Daiki Ueno.
5706         * lib/regcomp.c (regcomp, regerror): Use _Restrict_, not
5707         __restrict, in prototype.  This fixes a problem I introduced in
5708         the 2016-02-19 merge from glibc.
5710 2016-05-31  Paul Eggert  <eggert@cs.ucla.edu>
5712         stdbool: Restore __bool_true_false_are_defined check
5713         * m4/stdbool.m4 (AC_CHECK_HEADER_STDBOOL):
5714         __bool_true_false_are_defined is still defined, even with C++11.
5716 2016-05-31  David Seifert  <soap@gentoo.org>  (tiny change)
5718         stdbool: Port AC_CHECK_HEADER_STDBOOL to C++11
5719         * m4/stdbool.m4 (AC_CHECK_HEADER_STDBOOL): Port to C++11.
5721 2016-05-30  Paul Eggert  <eggert@cs.ucla.edu>
5723         Use GCC_LINT, not lint
5724         FreeBSD and Cygwin #define _Noreturn to empty if 'lint' is defined.
5725         Problem reported by Ken Brown in: http://bugs.gnu.org/23640
5726         * doc/posix-headers/stdnoreturn.texi (stdnoreturn.h):
5727         Document problem with lint and _Noreturn.
5728         * lib/diffseq.h (IF_LINT, IF_LINT2):
5729         * lib/fts.c (sccsid):
5730         * lib/getndelim2.c (IF_LINT):
5731         * lib/gl_anylinked_list2.h (gl_linked_iterator)
5732         (gl_linked_iterator_from_to):
5733         * lib/gl_anytree_list2.h (gl_tree_iterator)
5734         (gl_tree_iterator_from_to):
5735         * lib/gl_anytree_oset.h (gl_tree_iterator):
5736         * lib/gl_array_list.c (gl_array_iterator)
5737         (gl_array_iterator_from_to):
5738         * lib/gl_array_oset.c (gl_array_iterator):
5739         * lib/gl_carray_list.c (gl_carray_iterator)
5740         (gl_carray_iterator_from_to):
5741         * lib/idcache.c:
5742         * lib/inet_ntop.c (IF_LINT):
5743         * lib/regcomp.c (build_charclass_op, create_tree):
5744         * lib/regex_internal.c (re_acquire_state)
5745         (re_acquire_state_context):
5746         * lib/trigl.c (rcsid):
5747         * lib/trim.c (IF_LINT):
5748         * lib/vasnprintf.c (IF_LINT):
5749         * lib/verify.h (assume):
5750         Treat GCC_LINT like lint.
5752 2016-05-29  Bruno Haible  <bruno@clisp.org>
5754         secure_getenv: Port to many more platforms.
5755         * m4/secure_getenv.m4 (gl_PREREQ_SECURE_GETENV): Also check for get*id
5756         functions.
5757         * lib/secure_getenv.c (secure_getenv): Add alternate implementations
5758         for non-BSD Unix platforms and for native Windows.
5759         * doc/glibc-functions/secure_getenv.texi: Remove known issue.
5760         Prompted by a request from Nikos Mavrogiannopoulos.
5762 2016-05-27  Eric Blake  <eblake@redhat.com>
5764         canonicalize: Fix broken probe for realpath.
5765         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Fix regression
5766         in logic introduced in 54615b95.
5768 2016-05-26  Eric Blake  <eblake@redhat.com>
5770         unsetenv: relax to LGPLv2+
5771         * modules/unsetenv (License): Match setenv license.
5773 2016-05-20  Ludovic Courtès  <ludo@gnu.org>
5775         gendocs.sh: Set default TOP_NODE_UP_URL in HTML output.
5776         Suggested by Gavin Smith <gavinsmith0123@gmail.com>.
5777         Reported by myglc2 <myglc2@gmail.com> in <http://bugs.gnu.org/22651>.
5778         * build-aux/gendocs.sh (MANUAL_TITLE, PACKAGE, EMAIL)
5779         (commonarg, dirargs, dirs, infoarg, generate_ascii)
5780         (generate_html, generate_info, generate_tex, outdir)
5781         (source_extra, split, srcfile, texarg): Move above 'version'.
5782         (htmlarg): Likewise, and add "-c TOP_NODE_UP_URL=/manual".
5784 2016-05-17  Paul Eggert  <eggert@cs.ucla.edu>
5786         manywarnings: update for GCC 6.1
5787         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC):
5788         Add GCC 6.1 options that apply to C.
5789         * build-aux/gcc-warning.spec: Add GCC 6.1 options that
5790         do not apply to C, are obsolescent, etc.
5792 2016-05-12  Paul Eggert  <eggert@cs.ucla.edu>
5794         glob: size_t overflow checks
5795         * lib/glob.c (__has_builtin): New macro.
5796         (size_add_wrapv, glob_use_alloca): New static functions.
5797         (glob, glob_in_dir): Check for size_t overflow in several places,
5798         and fix some size_t checks that were not quite right.
5800         glob: don't assume INT_MAX < SIZE_MAX
5801         * lib/glob.c (glob): Prefer SIZE_MAX to ~((size_t) 0), as the
5802         latter is not portable to (probably theoretical) hosts where
5803         SIZE_MAX <= INT_MAX.
5805 2016-05-09  Bruno Haible  <bruno@clisp.org>
5807         Fix undefined behaviour in gettext.h.
5808         * lib/gettext.h (dcpgettext_expr, dcnpgettext_expr): Avoid accessing a
5809         pointer's value after the storage it points to has been freed.
5810         Reported by Michael Pyne in https://savannah.gnu.org/bugs/?47847.
5811         Spotted by Coverity.
5813 2016-05-08  Paul Eggert  <eggert@cs.ucla.edu>
5815         git-version-gen: avoid undefined shift
5816         Problem reported by Mosè Giordano in:
5817         http://lists.gnu.org/archive/html/bug-gnulib/2016-05/msg00012.html
5818         * build-aux/git-version-gen: Avoid undefined behavior if invoked
5819         with --prefix or --fallback but without a later argument.  While
5820         we're at it, omit unnecessary quotes.
5822 2016-05-04  Paul Eggert  <eggert@cs.ucla.edu>
5824         glob: merge glibc changes into lib/glob.c
5825         * lib/glob.c (glob_in_dir): Sync with glibc/posix/glob.c,
5826         dated 2016-05-04 12:09:35 2016 +0200.  Here are the changes:
5827         2016-05-04 CVE-2016-1234: glob: Do not copy d_name field of
5828           struct dirent [BZ #19779]
5829         2016-04-29 glob: Simplify the interface for the GLOB_ALTDIRFUNC
5830           callback gl_readdir
5831         2015-10-20 Convert miscellaneous function definitions to prototype style
5832         2015-10-20 Convert 113 more function definitions to prototype style
5833           (files with assertions)
5834         2015-06-12 Fix getlogin_r namespace (bug 18527).
5835         2014-02-10 Use glibc_likely instead __builtin_expect.
5836         2013-10-20 When glob pattern contains a trailing slash match only
5837           directories. Fixes bug 10278.
5838         2013-09-04 glob: silence -Wattribute warnings
5839         2013-06-07 Avoid use of "register" as optimization hint.
5840         2012-09-25 Use size_t instead of int for internal variables in glob
5841           (bug 14621)
5842         2011-07-20 Check for overflows in expressions
5843         2011-05-28 Remove unused variable
5844         2011-05-22 Add a few more alloca size checks
5845         2010-03-27 Whitespace fixes
5846         2010-03-27 Fix one more issue with the glob patch
5847         2010-03-24 Fix glob with empty pattern
5848         2008-05-27 Remove useless more "if" tests before "free"
5849         * modules/glob (Depends-on): Add stdint.
5851 2016-05-01  Paul Eggert  <eggert@cs.ucla.edu>
5853         mktime: port to stricter signed overflow checking
5854         * lib/mktime.c: Omit 'pragma GCC optimize ("wrapv")'.
5855         (long_int): Require width for INT_MAX * 3 * (seconds per year),
5856         instead of merely for INT_MAX * 2.  In practice platforms that
5857         do the latter also do the former.
5858         (TIME_T_MIN, TIME_T_MAX, TIME_T_MIDPOINT, SHR): Remove.
5859         (shr): New static function, replacing SHR.  All uses changed.
5860         (mktime_min, mktime_max): New constants, replacing TIME_T_MIN
5861         and TIME_T_MAX.  All uses changed.
5862         (ydhms_diff, guess_time_tm, ranged_convert, __mktime_internal):
5863         Use long_int, not time_t.
5864         (long_int_avg): New static function, replacing time_t_avg.
5865         All uses changed.  Round toward positive infinity, as that
5866         generates slightly better code.
5867         (time_t_add_ok, time_t_int_add_ok): Remove.  All uses replaced
5868         by INT_ADD_WRAPV.
5869         (guess_time_tm): Accept time, not a pointer to it.  All uses changed.
5870         (convert_time): New static function.
5871         (ranged_convert): Use it
5872         (ranged_convert): Check for *T out of [mktime_min, mktime_max] range.
5873         Use simpler test for loop exit.
5874         (__mktime_internal): Store negative of guessed offset, to simplify
5875         overflow checking.  Remove no-longer-needed test for small time_t
5876         overflows.
5878         mktime: speed up DEBUG_MKTIME benchmarks
5879         Call tzset just once, at the start, rather than for every test
5880         case.  This lets us measure the CPU cost of mktime as opposed to
5881         that of tzset.  This is relevant when TZ is not set and glibc is
5882         being used.  This speeds up tests by a factor of 40 on my Fedora
5883         23 x86-64 platform.
5884         * lib/mktime.c (main) [DEBUG_MKTIME]: Call localtime at the start,
5885         to call tzset and as a sanity check.  Later on, use localtime_r
5886         instead of localtime.
5888         mktime: resurrect DEBUG_MKTIME testing
5889         * lib/mktime.c [DEBUG_MKTIME]: Do not include <config.h>.
5890         Include <string.h>, for strcmp.
5892         mktime: simplify DEBUG_MKTIME
5893         * lib/mktime.c (DEBUG_MKTIME): Define to 0 if not defined.
5894         Simplify later usage accordingly.
5896         Port mktime_internal offset to unsigned time_t
5897         This avoids some assumptions about wraparound arithmetic on
5898         signed integer overflow.
5899         * lib/mktime-internal.h (mktime_offset_t): New type.
5900         (mktime_internal): Use it in decl.
5901         * lib/mktime.c, lib/timegm.c (mktime_offset_t) [_LIBC]: New type.
5903         * lib/mktime.c (__mktime_internal, localtime_offset):
5904         * lib/timegm.c (timegm): Use it.
5905         * m4/mktime.m4 (gl_TIME_T_IS_SIGNED): New macro.
5906         (gl_FUNC_MKTIME): Require it.
5908 2016-04-27  Paul Eggert  <eggert@cs.ucla.edu>
5910         xstrtol: prohibit monstrosities like "1bB"
5911         Problem reported by Young Mo Kang in: http://bugs.gnu.org/23388
5912         * lib/xstrtol.c (__xstrtol): Allow trailing second suffixes like
5913         "B" only if the first suffix needs a base.
5914         * tests/test-xstrtol.sh: Test this.
5916 2016-04-21  Pádraig Brady  <P@draigBrady.com>
5918         xstrtod: reinstate setting of *result upon ERANGE
5919         * lib/xstrtod.c (XSTRTOD): The user may decide to use
5920         the returned limits upon ERANGE, so allow and document that.
5922 2016-04-20  Tino Calancha  <f92capac@gmail.com>  (tiny change)
5924         xstrtod: modify *result only if no errors
5925         * lib/xstrtod.c (XSTRTOD).
5927 2016-04-19  Paul Eggert  <eggert@cs.ucla.edu>
5929         btowc: document problems in C locale
5930         * doc/posix-functions/btowc.texi (btowc): Mention incompatibility
5931         with mbrtowc.  See: http://bugs.gnu.org/23269#32
5933 2016-04-13  Paul Eggert  <eggert@cs.ucla.edu>
5935         mktime: improve integer overflow checking
5936         * lib/mktime.c: Include stdbool.h, intprops.h, verify.h.
5937         (WRAPV): Remove; no longer needed.
5938         (verify): Remove.  Replace all uses with call to verify.h 'verify'.
5939         (TYPE_IS_INTEGER, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM):
5940         Remove.  Use intprops.h defns instead.
5941         (leapyear, isdst_differ, time_t_add_ok, time_t_int_ok):
5942         Use bool for Boolean, for clarity.
5943         (time_t_add_ok, time_t_int_add_ok): Use INT_ADD_WRAPV to
5944         detect integer overflow.
5945         * modules/mktime (Depends-on): Add intprops, stdbool, verify.
5947         intprops: check two's complement assumption
5948         Suggested by Eric Blake in:
5949         http://lists.gnu.org/archive/html/bug-gnulib/2016-04/msg00016.html
5950         * lib/intprops.h: Include <verify.h>.  Verify that signed char,
5951         short, int, long, and (if available) long long are two's complement.
5952         * modules/intprops (Depends-on): Add 'verify'.
5954         intprops, mktime, strtol: assume two's complement
5955         These macros were not portable to every conforming C11 ones'
5956         complement platform.  It's not worth the hassle of porting to some
5957         platforms that use ones' complement or signed magnitude, as such
5958         platforms are almost purely theoretical nowadays and porting even
5959         to some of them makes the code harder to review for little
5960         practical benefit.  Problem reported by Florian Weimer in:
5961         https://sourceware.org/ml/libc-alpha/2016-04/msg00295.html
5962         * lib/intprops.h (TYPE_TWOS_COMPLEMENT, TYPE_ONES_COMPLEMENT)
5963         (TYPE_SIGNED_MAGNITUDE, _GL_INT_TWOS_COMPLEMENT):
5964         * lib/mktime.c (TYPE_TWOS_COMPLEMENT):
5965         * lib/strtol.c (TYPE_TWOS_COMPLEMENT, TYPE_ONES_COMPLEMENT)
5966         (TYPE_SIGNED_MAGNITUDE):
5967         Remove.  All uses rewritten to assume two's complement, which is
5968         all we can reasonably test nowadays anyway.
5969         * top/maint.mk (_intprops_names): Remove the removed macros.
5971 2016-04-11  Paul Eggert  <eggert@cs.ucla.edu>
5973         stdint: port to strict C11 left shift
5974         * lib/stdint.in.h (_STDINT_MIN, _STDINT_MAX):
5975         Pacify clang -Wshift-negative-value, which should be an issue only
5976         on clang setups where stdint.h does not conform to C11 or to C++11.
5977         Problem reported by Philipp Stephani in: http://bugs.gnu.org/23261
5979 2016-04-09  Paul Eggert  <eggert@penguin.cs.ucla.edu>
5981         mbrtowc: work around glibc bug#19932
5982         Fix mbrtowc so that it never returns -1 in the C locale,
5983         as this conflicts with a future version of POSIX
5984         http://austingroupbugs.net/view.php?id=663#c2738
5985         and causes problems with GNU grep: http://bugs.gnu.org/23234
5986         See glibc bug 19932:
5987         https://sourceware.org/bugzilla/show_bug.cgi?id=19932
5988         * doc/posix-functions/mbrlen.texi (mbrlen):
5989         * doc/posix-functions/mbrtowc.texi (mbrtowc):
5990         Document the glibc bug.
5991         * lib/mbrtowc.c [C_LOCALE_MAYBE_EILSEQ]:
5992         Include hard-locale.h, locale.h.
5993         (rpl_mbrtowc): Work around the C_LOCALE_MAYBE_EILSEQ bug,
5994         if the bug is possible.
5995         * m4/mbrtowc.m4 (gl_MBRTOWC_C_LOCALE): New macro.
5996         (gl_FUNC_MBRTOWC): Use it, and define C_LOCALE_MAYBE_EILSEQ as needed.
5997         * modules/hard-locale (License): Now LGPLv2+, for mbrtowc.
5998         * modules/mbrtowc (Depends-on): Add hard-locale.
5999         * modules/mbrtowc-tests (Files, TESTS): Add tests/test-mbrtowc5.sh.
6000         * tests/test-mbrtowc.c (main): Test for bug fix if arg is '5'.
6001         * tests/test-mbrtowc5.sh: New file.
6003 2016-04-03  Pedro Alves  <palves@redhat.com>
6005         stdint: detect good enough pre-C++11 stdint.h in C++ mode
6006         When gnulib is configured in C++ mode for a system with a working C99
6007         implementation of stdint.h that predates C++11, gnulib ends up
6008         substituting stdint.h anyway.  This works on most targets, but on e.g.,
6009         64-bit MinGW, it doesn't, as gnulib's substitute assumes LP64, while
6010         MinGW is LLP64.  Instead of trying to detect the right types, detect
6011         good-enough-pre-C++11 stdint.h and in such case define
6012         __STDC_CONSTANT_MACROS/__STDC_LIMIT_MACROS in config.h.
6013         * m4/stdint.m4 (gl_STDINT_H): Always define __STDC_CONSTANT_MACROS
6014         / __STDC_LIMIT_MACROS while checking whether the system stdint.h
6015         conforms to C99.  If it does, check whether it hides symbols
6016         behind the __STDC_{CONSTANT|LIMIT}_MACROS macros.  Then if it
6017         does, define those macros in config.h.
6019 2016-04-03  Paul Eggert  <eggert@cs.ucla.edu>
6021         argp: merge changes from glibc
6022         Among other things, this should fix problems found by a Coverity
6023         scan and reported by Andrei Borzenkov:
6024         http://lists.gnu.org/archive/html/bug-gnulib/2016-01/msg00015.html
6025         http://lists.gnu.org/archive/html/bug-gnulib/2016-01/msg00016.html
6026         * lib/argp-ba.c, lib/argp-fmtstream.c, lib/argp-fmtstream.h:
6027         * lib/argp-fs-xinl.c, lib/argp-help.c, lib/argp-namefrob.h:
6028         * lib/argp-parse.c, lib/argp-pv.c, lib/argp-pvh.c, lib/argp-xinl.c:
6029         * lib/argp.h:
6030         Merge changes from glibc.
6031         * tests/test-argp-2.sh: Adjust to match new behavior.
6033 2016-04-01  Paul Eggert  <eggert@cs.ucla.edu>
6035         stddef: support configuring with g++
6036         Problem reported by Ángel González in:
6037         http://lists.gnu.org/archive/html/bug-gnulib/2016-04/msg00003.html
6038         * lib/stddef.in.h (_GL_STDDEF_ALIGNAS, max_align_t):
6039         Do not define if _GCC_MAX_ALIGN_T is defined.
6041 2016-03-25  Paul Eggert  <eggert@cs.ucla.edu>
6043         test-framework-sh: minor cleanups
6044         * tests/init.sh (testdir_prefix_): Output a trailing newline,
6045         since strictly speaking POSIX requires this.
6046         (setup_): Do not use the variable 'fail', as that makes the
6047         trace output harder to read ('fail' is typically used by
6048         tests to mean the test failed).  Treat // portably.
6049         Check that new directory is not merely a sibling of the tmp dir.
6050         Avoid unnecessary invocation of tr.
6052         test-framework-sh: revert port to NetBSD 7.0
6053         It was a false alarm; I misinterpreted Assaf Gordon's report.
6054         * tests/init.sh (testdir_prefix_, pfx_, template_length_):
6055         Restore.
6056         (test_dir_): Adjust to mktempd_ change.
6057         (mktempd_): Restore 2nd arg.  Use -t again.
6058         (base_template_, template_, nx_): Resurrect old code.
6060         Port better to Alpine Linux
6061         Its diff implementation does not support -c, but does support -U3.
6062         Problem reported by Assaf Gordon in: http://bugs.gnu.org/23107#13
6063         * tests/init.sh (diff_opt_): New var.
6064         (compare_): Prefer diff -U3 to diff -c to plain diff.
6066 2016-03-24  Paul Eggert  <eggert@cs.ucla.edu>
6068         test-framework-sh: port to NetBSD 7.0
6069         Problem reported by Assaf Gordon in: http://bugs.gnu.org/23107#13
6070         * tests/init.sh (testdir_prefix_, pfx_, template_length_):
6071         Remove.  All uses removed.
6072         (test_dir_): Adjust to mktempd_ change.
6073         (mktempd_): Omit 2nd arg.  Stop using -t, as it is not portable.
6074         (base_template_, template_, nx_): Simplify by hardcoding.
6076 2016-03-22  Paul Eggert  <eggert@cs.ucla.edu>
6078         gitlog-to-changelog: suppress ignored chatter
6079         * build-aux/gitlog-to-changelog: Do not warn about skipping
6080         an SHA if it would have been ignored anyway.
6082 2016-03-22  Geert Janssens  <janssens-geert@telenet.be>
6084         setlocale: add "sv" to Windows language table
6085         * lib/setlocale.c (language_table) [W32]: Add "sv".
6086         Reported in <https://savannah.gnu.org/bugs/?44588>.
6088 2016-03-21  Paul Eggert  <eggert@cs.ucla.edu>
6090         sys_select: port to new Cygwin
6091         Problem reported by Ken Brown in:
6092         https://lists.gnu.org/archive/html/bug-gnulib/2016-03/msg00054.html
6093         * lib/sys_select.in.h [__CYGWIN__]: Avoid "unknown type name"
6094         diagnostics.
6096 2016-03-17  Jim Meyering  <meyering@fb.com>
6098         test-userspec.c: do not trigger gcc's new -Wmisleading-indentation
6099         * tests/test-userspec.c (main): Remove unnecessary braces and fix
6100         misleading indentation. Here is the diagnostic gcc-6.0-to-be issued:
6101           test-userspec.c:176:9: error: statement is indented as if it were \
6102             guarded by... [-Werror=misleading-indentation]
6103                    {
6104                    ^
6105           test-userspec.c:173:7: note: ...this 'if' clause, but it is not
6106                  if (!diag && !T[i].result)
6107                  ^~
6109 2016-03-15  Paul Eggert  <eggert@cs.ucla.edu>
6111         time_rz: port to clang -Wunused-const-variable
6112         * lib/time_rz.c (TZ): Remove.  All uses removed.
6114         std-gnu11: improve clang support
6115         * m4/std-gnu11.m4: Sync with autoconf, incorporating:
6116         2016-03-15 Also try clang
6117         2016-03-15 Port C11 and C++11 testing to clang
6119         select: port more to Intel 2016.1.150 compiler
6120         Problem reported by Balázs Hajgató in:
6121         http://lists.gnu.org/archive/html/bug-gnulib/2016-03/msg00036.html
6122         * m4/select.m4 (gl_FUNC_SELECT): Require AC_C_RESTRICT.
6124 2016-03-14  Paul Eggert  <eggert@cs.ucla.edu>
6126         select: try to port to 2016.1.150 compiler
6127         Problem reported by Balázs Hajgató in:
6128         http://lists.gnu.org/archive/html/bug-gnulib/2016-03/msg00026.html
6129         * lib/sys_select.in.h (select): Use 'restrict' on arguments where
6130         POSIX specifies 'restrict'.
6132 2016-03-13  Paul Eggert  <eggert@cs.ucla.edu>
6134         localename-tests: memory allocation fixes
6135         * tests/test-localename.c (test_locale_name)
6136         (test_locale_name_thread): Don't call freelocale on a locale
6137         that was the base of a successful newlocale, as that
6138         results in a double free.  Problem reported by Assaf Gordon.
6139         (test_locale_name_thread): Free saved names after use, to pacify
6140         gcc -fsanitize=address.
6142 2016-03-08  Paul Eggert  <eggert@cs.ucla.edu>
6144         intprops: make .h file license match module
6145         * lib/intprops.h: Change the license wording to match glibc format.
6146         This is what is in modules/intprops anyway.  See:
6147         https://sourceware.org/bugzilla/show_bug.cgi?id=19738#c8
6149 2016-03-08  Eric Blake  <eblake@redhat.com>
6151         acl: fix missing return on Cygwin
6152         * lib/set-permissions.c (set_acls) [HAVE_FACL && GETACL]: Don't
6153         fall off end of function. Fixes http://bugs.gnu.org/22949
6155 2016-03-05  Bruno Haible  <bruno@clisp.org>
6157         extern-inline: port to PGI CC
6158         * m4/extern-inline.m4 (gl_EXTERN_INLINE): For PGI CC, don't use the
6159         keyword 'inline'.
6160         Reported by Adam James Stewart in:
6161         http://lists.gnu.org/archive/html/bug-gnulib/2016-03/msg00006.html
6163 2016-02-20  Paul Eggert  <eggert@cs.ucla.edu>
6165         signbit: port back to pre-C++11 GCC
6166         * lib/math.in.h (signbit): Do previous change only if
6167         __cplusplus < 201103.  See Jonathan Wakely in:
6168         https://lists.fedoraproject.org/archives/list/devel@lists.fedoraproject.org/message/UY3VX3W7XEXYTUKHG5BALU4ACUD7ZLGE/
6170 2016-02-19  Kamil Dudka  <kdudka@redhat.com>
6172         mountlist: recognize autofs-mounted remote file systems, too
6173         Originally reported at: https://bugzilla.redhat.com/1309247
6174         * lib/mountlist.c (ME_REMOTE): Return true if a file system is named
6175         "-hosts" because it is used by autofs to mount remote file systems.
6177 2016-02-19  Paul Eggert  <eggert@cs.ucla.edu>
6179         signbit: port to C++ with GCC 6
6180         * lib/math.in.h (signbit) [__cplusplus]:
6181         Do not replace with GCC builtin.  Reported by Orion Poplawski in:
6182         http://lists.gnu.org/archive/html/bug-gnulib/2016-02/msg00005.html
6184         * lib/regex_internal.h (IDX_MAX) [_REGEX_LARGE_OFFSETS]: Now SSIZE_MAX.
6186         regex: make it closer to libc
6187         Make Idx a signed type, rather than possibly unsigned.
6188         The unsignedness was not really buying us anything, since the code
6189         overflows for other reasons before getting to PTRDIFF_MAX.  Making
6190         it signed allows us to use -1 and -2 with abandon, like libc does,
6191         thus lessening the number of differences between gnulib and libc.
6192         Also, it should help avoid gratuitous warnings like the one
6193         reported by Nelson H. F. Beebe in: http://bugs.gnu.org/22702
6194         * lib/regex.h (__re_idx_t): Remove.  All uses changed to regoff_t.
6197         regex: merge patches from libc
6199         2015-10-21  Joseph Myers  <joseph@codesourcery.com>
6200         2015-10-20  Joseph Myers  <joseph@codesourcery.com>
6201         Convert miscellaneous function definitions to prototype style.
6202         * lib/regcomp.c (re_compile_pattern, re_set_syntax)
6203         (re_compile_fastmap, regcomp, regerror, regfree, re_comp):
6204         * lib/regexec.c (regexec, re_match, re_search, re_match_2, re_search_2)
6205         (re_search_2_stub, re_search_stub, re_set_registers, re_exec)
6206         (re_search_internal):
6207         Convert to prototype-style function definition.
6208         Use internal_function for internal functions.
6210 2016-02-10  Paul Eggert  <eggert@cs.ucla.edu>
6212         stdalign: port to older HP and IBM cc
6213         * lib/stdalign.in.h (_Alignas): Port better to older HP and IBM
6214         C compilers, by checking their version numbers.  These version
6215         numbers appear in MariaDB and in Qt code that dates way back and
6216         that conditiionally uses the 'aligned' attribute.
6218 2016-02-09  Paul Eggert  <eggert@cs.ucla.edu>
6220         stdalign: port to clang 3.7.0
6221         Problem reported by Herbert J. Skuhra in:
6222         http://lists.gnu.org/archive/html/emacs-devel/2016-02/msg00476.html
6223         * lib/stdalign.in.h (alignas): Fix typo that prevented 'alignas'
6224         from being defined on clang 3.7.0, which has a buggy stdalign.h.  See:
6225         https://llvm.org/bugs/show_bug.cgi?id=26547
6227 2016-02-08  Paul Eggert  <eggert@cs.ucla.edu>
6229         readdir_r: now obsolescent
6230         * doc/posix-functions/readdir_r.texi (readdir_r): Now obsolescent.
6231         * lib/mountlist.c (read_file_system_list): Add a FIXME.
6233 2016-02-06  Paul Eggert  <eggert@cs.ucla.edu>
6235         misc: port better to gcc -fsanitize=address
6236         Without these patches, ./configure CFLAGS='-fsanitize=address'
6237         would compute incorrect values.  This patch fixes some (but not all)
6238         test failures with recent glibc, with this configuration.
6239         * m4/acl.m4 (gl_ACL_GET_FILE):
6240         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF):
6241         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS):
6242         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO):
6243         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE):
6244         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL):
6245         * m4/getdelim.m4 (gl_FUNC_GETDELIM):
6246         * m4/getgroups.m4 (gl_FUNC_GETGROUPS):
6247         * m4/getline.m4 (gl_FUNC_GETLINE):
6248         * m4/malloc.m4 (_AC_FUNC_MALLOC_IF):
6249         * m4/realloc.m4 (_AC_FUNC_REALLOC_IF):
6250         * m4/regex.m4 (gl_REGEX):
6251         * m4/strndup.m4 (gl_FUNC_STRNDUP):
6252         * tests/test-calloc-gnu.c (main):
6253         * tests/test-duplocale.c (main):
6254         * tests/test-getgroups.c (main):
6255         * tests/test-getline.c (main):
6256         * tests/test-inttostr.c (main):
6257         * tests/test-localename.c (test_locale_name)
6258         (test_locale_name_thread, test_locale_name_environ)
6259         (test_locale_name_default):
6260         * tests/test-regex.c (main):
6261         * tests/test-setlocale1.c (main):
6262         * tests/test-stat.h (test_stat_func):
6263         Free heap-allocated storage before exiting.
6264         * m4/asm-underscore.m4 (gl_ASM_SYMBOL_PREFIX):
6265         Don't match *_foo symbols inserted by AddressSanitizer.
6266         * tests/test-regex.c, tests/test-stat.c: Include stdlib.h, for 'free'.
6268 2016-02-02  Jim Meyering  <meyering@fb.com>
6270         verify-tests: also remove stray test-verify.Tpo
6271         * modules/verify-tests (Makefile.am): Arrange for "make clean"
6272         to remove the test-verify.Tpo file that is left behind by
6273         the automake-generated rule upon compilation failure.
6274         Otherwise, that .Tpo file would cause a failed "make distcheck"
6275         at least for grep.
6277 2016-02-02  Paul Eggert  <eggert@cs.ucla.edu>
6279         std-gnu11: new module
6280         This makes it easier for applications to prefer C11 and C++11
6281         to older variants, when compiling C and C++ code.
6282         Unlike most m4/*.m4 files, m4/std-gnu11.m4 is GPLed, as it copies
6283         a nontrivial chunk of GPLed Autoconf source code.
6284         * COPYING: Mention the m4/*.m4 copyright situation.
6285         * MODULES.html.sh (std-gnu11): New module.
6286         * m4/std-gnu11.m4, modules/std-gnu11: New files.
6288 2016-01-25  Paul Eggert  <eggert@cs.ucla.edu>
6290         get-permissions, strftime: fix grammar in comments
6291         * lib/get-permissions.c, lib/strftime.c: Merge into the comments
6292         some grammar fixes Alan Mackenzie made to GNU Emacs.
6294 2016-01-25  Daiki Ueno  <ueno@gnu.org>
6296         gettext: mark as obsolete
6297         Suggested by Paul Eggert in:
6298         https://lists.gnu.org/archive/html/bug-gnulib/2016-01/msg00101.html
6299         * modules/gettext (Status): Mark as obsolete.
6300         (Notice): Suggest to use 'gettext-h' instead.
6301         * modules/gettext-h (Description): Suggest GNU gettext, instead of
6302         the 'gettext' module.
6304 2016-01-24  Paul Eggert  <eggert@cs.ucla.edu>
6306         gnulib-tool: don't give up on ln -s so easily
6307         * gnulib-tool (func_ln_s): Don't give up on a later ln -s merely
6308         because an earlier one failed.  The targets could be on different
6309         file systems.  Problem reported by KO Myung-Hun in:
6310         http://lists.gnu.org/archive/html/bug-gnulib/2016-01/msg00081.html
6312         closedir: fix OS/2-related typos
6313         Problem reported by KO Myung-Hun in:
6314         http://lists.gnu.org/archive/html/bug-gnulib/2016-01/msg00107.html
6315         * m4/closedir.m4 (gl_FUNC_CLOSEDIR): Fix a couple of typos
6316         in the last couple of changes.
6318 2016-01-24  KO Myung-Hun  <komh78@gmail.com>
6320         openat_proc_name: fix that last '/' is overwritten on OS/2 kLIBC
6321         * lib/openat-proc.c (openat_proc_name): Increase dirlen by 1 after
6322         copying a directory.
6324 2016-01-24  Paul Eggert  <eggert@cs.ucla.edu>
6326         regex: treat [x] as x if x is a unibyte encoding error
6327         Problem reported by Aharon Robbins in:
6328         http://lists.gnu.org/archive/html/bug-gnulib/2016-01/msg00091.html
6329         * lib/regcomp.c (parse_byte) [!_LIBC && RE_ENABLE_I18N]: New function.
6330         (build_range_exp) [!_LIBC && RE_ENABLE_I18N]: Use it.
6332         closedir, dirfd, opendir: port to OpenSolaris 5.10
6333         * m4/closedir.m4 (gl_FUNC_CLOSEDIR):
6334         * m4/dirfd.m4 (gl_FUNC_DIRFD):
6335         * m4/opendir.m4 (gl_FUNC_OPENDIR):
6336         Don't use ${word##pat} substitution, as it doesn't work in
6337         OpenSolaris 5.10 /bin/sh.  Problem reported by Assaf Gordon in:
6338         http://bugs.gnu.org/22443#11
6340 2016-01-23  Paul Eggert  <eggert@cs.ucla.edu>
6342         bootstrap: use American spelling
6343         * build-aux/bootstrap: Honor American spelling.
6345 2016-01-22  Karl Berry  <karl@freefriends.org>
6347         * doc/posix-functions/localtime.texi,
6348         * doc/posix-functions/localtime_r.texi: @item needed for @itemize text.
6350 2016-01-21  Bruno Haible  <bruno@clisp.org>
6352         hash-pjw-bare: fix comment
6353         * lib/hash-pjw-bare.h (hash_pjw_bare): Fix comment.
6355         wcwidth: Replace also on OpenBSD 5.8
6356         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Check the value of wcwidth(0xFF1A).
6357         * doc/posix-functions/wcwidth.texi: Update.
6359 2016-01-20  Pádraig Brady  <P@draigBrady.com>
6361         gnu-web-doc-update: fix addition of new files
6362         If there were already added (emnpty) dirs,
6363         then cvs aborts the add with the message:
6364           cvs [add aborted]: there is a version in <./dirname> already
6365         * build-aux/gnu-web-doc-update: Add directories separately
6366         to the addition of files, to avoid the above issue
6367         impacting the addition of files.
6369 2016-01-19  Daiki Ueno  <ueno@gnu.org>
6371         utimens-tests: avoid pulling gettext .m4 files
6372         Although this is not the right fix to the original problem:
6373         http://lists.gnu.org/archive/html/bug-gnulib/2013-01/msg00086.html
6374         it makes it possible again for consumer projects to use arbitrary
6375         version of gettext, through the steps described at:
6376         http://www.gnu.org/software/gnulib/manual/html_node/gettextize-and-autopoint.html
6377         See here for details:
6378         https://lists.gnu.org/archive/html/bug-gnulib/2016-01/msg00079.html
6379         * modules/futimens-tests (Depends-on): Add 'gettext-h' in place of
6380         'gettext'.
6381         * modules/utimens-tests (Depends-on): Add 'gettext-h' in place of
6382         'gettext'.
6384 2016-01-18  Paul Eggert  <eggert@cs.ucla.edu>
6386         regex: pacify static checkers
6387         Problem and draft fix reported by Aharon Robbins in:
6388         http://lists.gnu.org/archive/html/bug-gnulib/2016-01/msg00082.html
6389         * lib/regcomp.c (build_charclass_op, create_tree) [lint]:
6390         Clear memory to pacify static checkers.
6392         regex: fix [ diagnostic
6393         Problem and fix reported by Aharon Robbins in:
6394         http://lists.gnu.org/archive/html/bug-gnulib/2016-01/msg00082.html
6395         * lib/regcomp.c (REG_EBRACK_IDX): Fix misleading diagnostic about [.
6397         regex: fix memory leaks
6398         Problem and draft fix reported by Aharon Robbins in:
6399         http://lists.gnu.org/archive/html/bug-gnulib/2016-01/msg00082.html
6400         * lib/regcomp.c (build_range_exp, build_charclass_op)
6401         * lib/regex_internal.c (re_dfa_add_node):
6402         Fix memory leak on failure.
6404 2016-01-18  Pádraig Brady  <P@draigBrady.com>
6406         fts: don't unconditionally use leaf optimization for NFS
6407         NFS st_nlink are not accurate on all implementations,
6408         leading to aborts() if that assumption is made.
6409         See <https://bugzilla.redhat.com/1299169>
6410         * lib/fts.c (leaf_optimization_applies): Remove NFS from
6411         the white list, and document the issue.
6413 2016-01-15  Paul Eggert  <eggert@cs.ucla.edu>
6414             KO Myung-Hun  <komh@chollian.net>
6416         gnulib-tool: don't assume ln -s works
6417         * gnulib-tool (func_ln_s): New function.
6418         (func_ln): Use it.
6420 2016-01-15  KO Myung-Hun  <komh@chollian.net>
6422         utimes: detect utimes() correctly on OS/2 kLIBC
6423         utimes() of OS/2 kLIBC has some limitations.
6424         1. OS/2 itself supports a file date since 1980 year in local time.
6425         2. OS/2 itself supports only even seconds for a file time.
6426         3. utimes() of OS/2 kLIBC does not work on an opened file.
6427         * m4/utimes.m4: Detect utimes() correctly on OS/2 kLIBC.
6428         * doc/posix-functions/utimes.texi: Document the above limitations of
6429         utimes() on OS/2 kLIBC.
6431 2016-01-15  Paul Eggert  <eggert@cs.ucla.edu>
6432             KO Myung-Hun  <komh@chollian.net>
6434         openat_proc_name: port to OS/2 kLIBC
6435         OS/2 kLIBC provides a function to retrive a path from a fd. Use it
6436         instead of /proc/self/fd.
6437         * lib/openat-proc.c (openat_proc_name):
6438         Don't assume file name length is less than INT_MAX.
6439         Port to OS/2 kLIBC with __libc_Back_ioFHToPath().
6441 2016-01-14  KO Myung-Hun  <komh@chollian.net>
6443         stdint: check _INTPTR_T_DECLARED for intptr_t etc.
6444         OS/2 kLIBC's stdint.h defines _INTPTR_T_DECLARED and needs its own
6445         definitions of intptr_t and uintptr_t (which use int and unsigned)
6446         to avoid clashes with declarations of system functions like sbrk.
6447         * lib/stdint.in.h (intptr_t, uintptr_t): Check
6448         _INTPTR_T_DECLARED before defining them.
6450         opendir, closedir, dirfd, fdopendir: port to OS/2 kLIBC
6451         * lib/closedir.c (closedir): Unregister fd if closedir() succeeds.
6452         * lib/dirent.in.h (_gl_register_dirp_fd, _gl_unregister_dirp_fd):
6453         Declare on kLIBC.
6454         * lib/dirfd.c (struct dirp_fd_list): New. Structures to keep track of
6455         fd associated with dirp.
6456         (_gl_register_dirp_fd): New. Register fd associated with dirp to
6457         dirp_fd_list.
6458         (_gl_unregister_dirp_fd): New. Unregister fd with closing it.
6459         (dirfd): Implemented for kLIBC.
6460         * lib/fdopendir.c (fdopendir): Implemented for kLIBC.
6461         * lib/opendir.c (opendir): New. Register fd and dirp pair if open()
6462         succeeds.
6463         * m4/closedir.m4 (gl_FUNC_CLOSEDIR): Replace if OS/2.
6464         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
6465         (REPLACE_DIRFD): Define to 1 if replaced.
6466         * m4/opendir.m4 (gl_FUNC_OPENDIR): Likewise.
6467         * modules/closedir (Depends-on): Add dirfd.
6468         * modules/dirfd (Depends-on): Add 'test $REPLACE_DIRFD = 1' to errno
6469         condition.
6470         (configure.ac): Add dirfd to LIBOBJS if $REPLACE_DIRFD = 1 as well.
6471         * modules/opendir (Depends-on): Add dirfd.
6473         dup, dup2, fcntl: support a directory fd on OS/2 kLIBC
6474         On OS/2 kLIBC, dup(), dup2() and fcntl() do not work on a directory fd.
6475         * lib/dup.c (dup_nothrow): New.
6476         * lib/dup2.c (klibc_dup2dirfd): New. dup2() for a directory fd.
6477         (klibc_dup2): New.
6478         * lib/fcntl.c (klibc_fcntl): New.
6479         * m4/dup.m4 (gl_FUNC_DUP): Check if dup() works on a directory fd.
6480         * m4/dup2.m4 (gl_FUNC_DUP2): Check if dup2() works on a directory fd.
6481         * m4/fcntl.m4 (gl_FUNC_FCNTL): Check if F_DUPFD works on a directory
6482         fd.
6484         pipe_filter_ii_execute: port to OS/2 kLIBC
6485         Pipes on kLIBC do not support O_NONBLOCK like Win32.
6486         * lib/pipe-filter-ii.c (start_wrapper, _beginthreadex, CloseHandle,
6487         WaiForSingleObject, WaitForMultipleObjects): New on OS/2 kLIBC.
6488         Reuse Win32 code on OS/2 kLIBC.
6489         * lib/spawn-pipe.c: Reuse Win32 code on OS/2 kLIBC.
6490         * lib/w32spawn.h: Do not include windows.h on OS/2 kLIBC.
6492         wchar: fix "conflicting types" error for __wcwidth on OS/2 kLIBC
6493         On OS/2 kLIBC, wcwidth is a macro that expands to the name of a
6494         static inline function.  The implementation of wcwidth in wcwidth.c
6495         causes a "conflicting types" error.
6496         * lib/wchar.in.h: Undefine wcwidth on OS/2 kLIBC.
6498         w32spawn: clear SHELL_SPECIAL_CHARS and SHELL_SPACE_CHAR on OS/2 kLIBC
6499         spawn() on OS/2 kLIBC is not silly like one on Windows
6500         * libc/w32spawn.h (SHELL_SPECIAL_CHARS, SHELL_SPACE_CHAR): Set both to
6501         empty string on OS/2 kLIBC.
6503         pipe-filter-aux: undefine HAVE_SELECT on KLIBC
6504         On OS/2 kLIBC, select() works only on sockets.
6505         * lib/pipe-filter-aux.h (HAVE_SELECT): Undefine on OS/2 kLIBC.
6507         binary-io: don't put fd in binary mode if it is a console on EMX
6508         * lib/binary-io.h (SET_BINARY): Don't put fd in binary mode if it is
6509         a console on EMX.
6511 2016-01-15  Pádraig Brady  <P@draigBrady.com>
6513         doc: mention unfixed issues with unsupported localtime() values
6514         * doc/posix-functions/localtime.texi: Mention that FreeBSD 10
6515         returns nonsense for localtime(2^56).
6516         * doc/posix-functions/localtime_r.texi: Likewise.
6518 2016-01-14  Pádraig Brady  <P@draigBrady.com>
6520         doc: mention setlocale() issues on OpenBSD
6521         * doc/posix-functions/setlocale.texi: Mention setlocale(LC_ALL,"")
6522         never fails, and the need to check categories individually.
6524 2016-01-14  Pádraig Brady  <P@draigBrady.com>
6526         sig2str: list all signals on FreeBSD >= 7
6527         FreeBSD >= 7 is contravening POSIX by not defining NSIG
6528         to the maximal statically defined signal value.
6529         It does define _SIG_MAXSIG though, so base SIGNUM_BOUND on that.
6530         * lib/sig2str.h (SIGNUM_BOUND): Define to (_SIG_MAXSIG - 2)
6531         where available, even when NSIG is defined.
6533 2016-01-13  Paul Eggert  <eggert@cs.ucla.edu>
6535         acl-permissions: port to USE_ACL==0 platforms
6536         I ran into this problem when building bleeding-edge GNU Emacs
6537         with gcc -fsanitize=address on Fedora 23.  On this platform
6538         the ACL library does not pass the 'configure' test and Emacs
6539         then does not build due in part to what appear to be typos in the
6540         ACL part of Gnulib.
6541         * lib/acl-internal.c (free_permission_context):
6542         * lib/acl-internal.h (struct permission_context):
6543         Test whether USE_ACL is nonzero, not whether it is defined.
6545 2016-01-12  Martin Sebor  <msebor@redhat.com>
6547         mktime: rename macro to avoid glibc clash
6548         * lib/mktime.c [DEBUG] (DEBUG): Rename to DEBUG_MKTIME.  See:
6549         https://sourceware.org/ml/libc-alpha/2016-01/msg00267.html
6551 2016-01-12  Paul Eggert  <eggert@cs.ucla.edu>
6553         Port "$@" to OpenIndiana ksh93
6554         In http://lists.gnu.org/archive/html/bug-autoconf/2015-12/msg00000.html
6555         Pavel Raiskup reports that ${1+"$@"} runs afoul of a bug in /bin/sh
6556         (derived from ksh 93t+ 2010-03-05).  ${1+"$@"} works around an ancient
6557         bug long-dead shells, so remove the workaround.
6558         * build-aux/announce-gen, build-aux/do-release-commit-and-tag:
6559         * build-aux/gitlog-to-changelog, build-aux/gnu-web-doc-update:
6560         * build-aux/prefix-gnulib-mk, build-aux/update-copyright:
6561         * build-aux/useless-if-before-free, tests/test-update-copyright.sh:
6562         Use "$@" instead of ${1+"$@"}.
6564         Port Universal Time settings to strict POSIX
6565         * build-aux/announce-gen, build-aux/bootstrap:
6566         * build-aux/do-release-commit-and-tag, build-aux/git-version-gen:
6567         * build-aux/gitlog-to-changelog, build-aux/gnu-web-doc-update:
6568         * build-aux/gnupload, build-aux/mkinstalldirs:
6569         * build-aux/move-if-change, build-aux/prefix-gnulib-mk:
6570         * build-aux/update-copyright, build-aux/useless-if-before-free:
6571         * build-aux/vc-list-files, tests/test-strftime.c:
6572         Use TZ="UTC0", not TZ="UTC".  Either works on GNU platforms,
6573         but POSIX says the behavior of TZ="UTC" is undefined.
6575 2016-01-02  Paul Eggert  <eggert@cs.ucla.edu>
6577         msvc-inval: fix problem with unset shell var
6578         Problem reported by Karl Berry in:
6579         http://lists.gnu.org/archive/html/bug-gnulib/2016-01/msg00004.html
6580         * modules/msvc-inval (Depends-on):
6581         AC_REQUIRE gl_MSVC_INVAL instead of merely calling it.
6582         * modules/msvc-nothrow (Depends-on): Likewise for gl_MSVC_NOTHROW.
6584 2016-01-01  Pádraig Brady  <P@draigBrady.com>
6586         tests: for compare_(), use cmp -s where available
6587         * tests/init.sh (compare_): Only fall back to cmp without
6588         the POSIX defined -s option, where this is not available.
6590 2016-01-01  Paul Eggert  <eggert@cs.ucla.edu>
6592         version-etc: new year
6593         * build-aux/gendocs.sh (version):
6594         * doc/gendocs_template:
6595         * doc/gendocs_template_min:
6596         * doc/gnulib.texi:
6597         * lib/version-etc.c (COPYRIGHT_YEAR):
6598         Update copyright dates by hand in templates and the like.
6599         * all files: Run 'make update-copyright'.
6601 2015-12-31  Paul Eggert  <eggert@cs.ucla.edu>
6603         human: fix output buffer overrun by 1
6604         * lib/human.c (human_readable): Fix off-by-one typo in buffer
6605         calculation that could lead to a one-byte buffer overrun.
6607 2015-12-28  Daiki Ueno  <ueno@gnu.org>
6609         maint: fix operator precedence in mbrtowc test
6610         This is a fix for test breakage introduced by commit 45228d96; the
6611         equality expression must be parenthesized when negated with '!',
6612         otherwise we always get:
6614           test-mbrtowc.c:49: assertion 'ret == (size_t)(-2)' failed
6616         * m4/mbrtowc.m4 (gl_MBRTOWC_EMPTY_INPUT): Negate the entire expression.
6617         * m4/mbrlen.m4 (gl_MBRLEN_EMPTY_INPUT): Likewise.
6619 2015-12-23  James Youngman  <jay@gnu.org>
6621         regexprops-generic: update from regex.h
6622         * doc/regexprops-generic.texi: update by running the regexprops binary
6623         from findutils (the command line is 'regexprops "Regular Expressions"
6624         generic').  The recent (ish) change (5a5a9388) to regex.h aligning
6625         gnulib with GNU grep had made this document out-of-date.
6627 2015-12-23  Pádraig Brady  <P@draigBrady.com>
6629         strftime-tests: avoid false failure on OS X
6630         * tests/test-strftime.c (struct localtime_rz_test): Add an
6631         ahistorical member which is used to warn rather than fail
6632         when tm_isdst isn't set for such entries.  This is the case for
6633         "1970-01-01 13:00:00 +1300 (NZDT)" on Darwin 13/14 at least.
6635 2015-12-20  Kamil Dudka  <kdudka@redhat.com>
6637         fts: ensure leaf optimization is used for NFS
6638         NFS provides usable dirent.d_type but not necessarily for all entries
6639         of large directories.  See <https://bugzilla.redhat.com/1252549>
6640         * lib/fts.c (leaf_optimization_applies): Append NFS on the white list.
6642 2015-12-20  Pádraig Brady  <P@draigBrady.com>
6644         fts: enable leaf optimization for XFS
6645         XFS provides usable dirent.d_type only for DT_DIR,
6646         but the noleaf optimization still applies.
6647         * lib/fts.c (leaf_optimization_applies): Add XFS to the white list.
6649 2015-12-17  Paul Eggert  <eggert@cs.ucla.edu>
6651         intprops: comment fix
6652         * lib/intprops.h: Fix comment.  Reported by Pádraig Brady in:
6653         http://lists.gnu.org/archive/html/bug-gnulib/2015-12/msg00013.html
6655         intprops-test: work around GCC bug 68971
6656         Problem reported by Pádraig Brady in:
6657         http://lists.gnu.org/archive/html/bug-gnulib/2015-12/msg00011.html
6658         * tests/test-intprops.c: Ignore -Woverflow in GCC 6 and earlier.
6659         (main): Add a case that better tests 64-bit long in this area.
6661 2015-12-09  Pavel Raiskup  <praiskup@redhat.com>
6663         gnulib-tool: allow multiple --local-dir usage
6664         * gnulib-tool: Use --local-dir to construct compound
6665         $local_gnulib_path path instead of $local_gnulib_dir.  Determine
6666         PATH_SEPARATOR early.
6667         (local_gnulib_dir): Rename into $local_gnulib_path everywhere.
6668         (func_gnulib_dir): Cut out PATH_SEPARATOR detection code into
6669         func_determine_path_separator because that needs to be detected
6670         earlier now.
6671         (func_determine_path_separator): New function.
6672         (func_path_foreach, func_path_foreach_inner): New functions.
6673         (func_path_prepend, func_path_append): Likewise.
6674         (func_lookup_local_file, func_lookup_local_file_cb): Likewise.
6675         (func_lookup_file, func_all_modules): Use new functions to work
6676         with local_gnulib_path.
6677         (func_modules_in_dir, func_exists_module): New callbacks for
6678         func_path_foreach.
6679         (func_exists_module, func_get_tests_module): Likewise.
6680         (func_is_local_file, func_should_symlink): New helper methods.
6681         (func_add_file, func_update_file): Use new func_should_symlink
6682         instead, DRY.
6683         (func_reconstruct_cached_local_gnulib_path): New helper.
6684         (func_reconstruct_cached_dir): New callback.
6685         (func_import): The cached_local_gnulib_dir renamed to
6686         cached_local_gnulib_path similarly to local_gnulib_dir.
6687         Use new func_reconstruct_cached_local_gnulib_path.
6688         (func_count_relative_local_gnulib_path): New sub-method.
6689         (func_create_testdir): Use func_should_symlink, DRY.
6690         (func_create_megatestdir): Use new functions to work with
6691         local_gnulib_path correctly.
6692         (func_append_local_dir): New helper.
6694 2015-12-08  Pádraig Brady  <P@draigBrady.com>
6696         fix freadptr to work with ungetc on all uClibc configs
6697         Reported at https://bugs.busybox.net/show_bug.cgi?id=4099
6698         where GNU coreutils cut(1) generates invalid output on uClibc
6699         when __UCLIBC_HAS_STDIO_GETC_MACRO__ is not defined.
6700         * lib/freadptr.c (freadptr): Return NULL if there are
6701         ungotten chars.  In this case freadseek() will iterate
6702         again to process the ungotten character.
6704 2015-11-13  Paul Eggert  <eggert@cs.ucla.edu>
6706         xalloc-oversized: improve performance with GCC 5
6707         * lib/xalloc-oversized.h (xalloc_oversized):
6708         Improve performance with GCC 5 by using __builtin_mul_overflow.
6710 2015-11-10  Paul Eggert  <eggert@cs.ucla.edu>
6712         intprops: new public macro EXPR_SIGNED
6713         Emacs can use this macro, so make it public.
6714         * doc/intprops.texi (Arithmetic Type Properties): Rename from
6715         'Integer Type Determination', since some of these macros apply
6716         to non-integer types.  Clarify what kinds of constant expressions
6717         these macros return.  Say when the arguments can be non-integers.
6718         Mention newly published macro EXPR_SIGNED.
6719         * lib/intprops.h (EXPR_SIGNED): Rename from _GL_INT_SIGNED, to
6720         make it public.  All uses changed.
6722         intprops: fix typo in clang port
6723         * lib/intprops.h (_GL_INT_OP_WRAPV): Fix misspelling of
6724         '__builtin_add_overflow' that is not caught by compiler.
6726 2015-11-05  Paul Eggert  <eggert@cs.ucla.edu>
6728         test-timespec: fix typo in previous change
6729         * tests/test-timespec.c (main): Fix typo that reduced test quality.
6731         timespec-sub: fix overflow bug; add tests
6732         * lib/timespec-add.c (timespec_add):
6733         * lib/timespec-sub.c (timespec_sub):
6734         Work even if time_t is narrower than int (a theoretical
6735         possibility).  Redo code for a bit more clarity.
6736         * lib/timespec-sub.c (timespec_sub):
6737         Fix off-by-2 bug if a.tv_sec == TYPE_MINIMUM (time_t) and 0 < b.tv_sec.
6738         * modules/timespec-tests, tests/test-timespec.c: New files.
6740         intprops-test: suppress -Woverlength-strings
6741         Problem reported by Pádraig Brady in:
6742         http://lists.gnu.org/archive/html/bug-gnulib/2015-11/msg00008.html
6743         It is not worth the hassle to port this test to compilers that
6744         cannot handle long strings in diagnostics.
6745         * tests/test-intprops.c [__GNUC__]: Ignore -Woverlength-strings.
6747 2015-11-03  Pádraig Brady  <P@draigBrady.com>
6749         quotearg: add quotearg_n_style_colon()
6750         This quotes with default options of the specified style,
6751         but with quoting enabled for instances of ':'.
6752         * lib/quotearg.h (quotearg_n_style_colon): Description and declaration.
6753         * lib/quotearg.c (quotearg_n_style_colon): New function implementation.
6755 2015-11-04  Paul Eggert  <eggert@cs.ucla.edu>
6757         intprops: revise _WRAPV macros, revert _OVERFLOW
6758         The incompatible changes to the _OVERFLOW macros were too much of
6759         a hassle in practice, so revert them.  Instead, change the new
6760         _WRAPV macros to make them closer in behavior to GCC 5's new
6761         builtin_add_overflow etc. functions.  No other software was using
6762         these newly-added macros yet, so this should be OK.
6763         * NEWS: Revert previous change, since the incompatible change
6764         has been reverted, and nobody used the incompatible version.
6765         * doc/intprops.texi (Wraparound Arithmetic, Integer Type Overflow):
6766         Document revised behavior.
6767         (Integer Range Overflow): Adjust example to match above revisions.
6768         * lib/intprops.h (INT_ADD_OVERFLOW, INT_SUBTRACT_OVERFLOW)
6769         (INT_MULTIPLY_OVERFLOW): Revert previous change, so that
6770         these can be used in integer constant expressions again.
6771         (INT_CONST_ADD_OVERFLOW, INT_CONST_SUBTRACT_OVERFLOW)
6772         (INT_CONST_MULTIPLY_OVERFLOW): Remove, as these are no longer
6773         needed.
6774         (INT_CONST_ADD_WRAPV, INT_CONST_SUBTRACT_WRAPV)
6775         (INT_NEGATE_WRAPV, INT_CONST_MULTIPLY_WRAPV, INT_DIVIDE_WRAPV)
6776         (INT_REMAINDER_WRAPV, INT_LEFT_SHIFT_WRAPV):
6777         Remove, as they did not seem that useful.
6778         (INT_ADD_WRAPV, INT_SUBTRACT_WRAPV, INT_MULTIPLY_WRAPV)
6779         (_GL_INT_OP_WRAPV, _GL_INT_OP_WRAPV_LONGISH)
6780         (_GL_INT_OP_WRAPV_VIA_UNSIGNED):
6781         Support new semantics.
6782         (__has_builtin): New macro, if not alreay defined.
6783         (_GL__GENERIC_BOGUS, _GL_INT_OP_CALC, _GL_INT_OP_CALC1): New macros.
6784         * tests/test-intprops.c (INT_CONST_DIVIDE_OVERFLOW)
6785         (INT_CONST_REMAINDER_OVERFLOW, INT_CONST_LEFT_SHIFT_OVERFLOW)
6786         (INT_CONST_DIVIDE_WRAPV, INT_CONST_REMAINDER_WRAPV)
6787         (INT_CONST_LEFT_SHIFT_WRAPV): Remove.
6788         (CHECK_SBINOP, CHECK_SSUM, CHECK_SUM1, CHECK_SSUM1)
6789         (CHECK_SDIFFERENCE, CHECK_SPRODUCT, CHECK_PRODUCT1, CHECK_SPRODUCT1):
6790         New macros.
6791         (CHECK_BINOP, CHECK_UNOP, main, CHECK_SUM): Test new behavior.
6793 2015-11-03  Jim Meyering  <meyering@fb.com>
6795         intprops: add parentheses for when OP has precedence lower than "-"
6796         * lib/intprops.h (_GL_INT_OP_WRAPV_VIA_UNSIGNED): In "a OP b - c",
6797         "a OP b" must be parenthesized for when OP is like "<<", which has
6798         lower precedence than the following "-". Reported by Pádraig Brady.
6800 2015-11-03  Pádraig Brady  <P@draigBrady.com>
6802         quotearg: constify get_quoting_style parameters
6803         * lib/quotearg.h (get_quoting_style): Mark parameter as const.
6804         * lib/quotearg.c (get_quoting_style): Likewise.
6806 2015-11-02  Pádraig Brady  <P@draigBrady.com>
6808         quotearg: add support for $'' shell escaping
6809         * lib/quotearg.h: Add "shell-escape" and "shell-escape-always"
6810         items and descriptions.
6811         * lib/quotearg.c (quotearg_buffer_restyled): Add support for the
6812         above types by quoting like "shell", but using $'...' syntax
6813         for non printable characters, which should provide unambiguous
6814         printable output for any input.
6815         * tests/test-quotearg-simple.c: Update accordingly.
6817 2015-11-02  Pádraig Brady  <P@draigBrady.com>
6819         maint: use a more standard return from mbrtowc test
6820         * m4/mbrtowc.m4 (gl_MBRTOWC_EMPTY_INPUT): Don't return 1
6821         from the test program as this is non standard and often
6822         indicates an unhandled case in the test program.
6823         * m4/mbrlen.m4 (gl_MBRLEN_EMPTY_INPUT): Likewise.
6825 2015-10-30  Paul Eggert  <eggert@cs.ucla.edu>
6827         intprops: add WRAPV and const flavors for GCC 5
6828         If available, use GCC 5's builtin functions for efficient integer
6829         overflow checking.  Also, add macros like INT_ADD_WRAPV efficently
6830         and safely compute the low-order bits of the correct answer.
6831         A downside of these efficient functions is that they cannot be
6832         used in constant expressions, so add macros like INT_CONST_ADD_OVERFLOW
6833         and INT_CONST_ADD_WRAPV that can be used even in constant expressions.
6834         * NEWS: Document the incompatible changes to INT_ADD_OVERFLOW etc.
6835         * doc/intprops.texi (Integer Properties, Integer Type Overflow):
6836         Document the changes.
6837         (Wraparound Arithmetic): New section.
6838         (Integer Range Overflow):
6839         Put this subsection last, since it's least useful.
6840         * lib/intprops.h (INT_CONST_ADD_OVERFLOW)
6841         (INT_CONST_SUBTRACT_OVERFLOW, INT_CONST_MULTIPLY_OVERFLOW):
6842         New macros, with the meaning that INT_ADD_OVERFLOW etc. used to have.
6843         (INT_CONST_ADD_WRAPV, INT_CONST_SUBTRACT_WRAPV)
6844         (INT_NEGATE_WRAPV, INT_CONST_MULTIPLY_WRAPV, INT_DIVIDE_WRAPV)
6845         (INT_REMAINDER_WRAPV, _GL_INT_OP_WRAPV, _GL_EXPR_CAST)
6846         (_GL_INT_OP_WRAPV_LONGISH, INT_ADD_WRAPV, INT_SUBTRACT_WRAPV)
6847         (INT_MULTIPLY_WRAPV, _GL_OP_OVERFLOW, _GL_OP_WRAPV, _GL_OP_WRAPV_GENSYM):
6848         New macros.
6849         (INT_ADD_OVERFLOW, INT_SUBTRACT_OVERFLOW, INT_MULTIPLY_OVERFLOW):
6850         Generate calls to GCC builtins if available, for speed.
6851         * tests/test-intprops.c (INT_CONST_DIVIDE_OVERFLOW)
6852         (INT_CONST_REMAINDER_OVERFLOW, INT_CONST_LEFT_SHIFT_OVERFLOW)
6853         (INT_CONST_DIVIDE_WRAPV, INT_CONST_REMAINDER_WRAPV)
6854         (INT_CONST_LEFT_SHIFT_WRAPV): New macros.
6855         (main, CHECK_BINOP, CHECK_UNOP, CHECK_SUM, CHECK_PRODUCT)
6856         (CHECK_QUOTIENT, CHECK_REMAINDER):
6857         Test WRAPV and CONST flavors (when available) too.
6859 2015-10-30  Pádraig Brady  <P@draigBrady.com>
6861         doc: use extended timezone format in iso-8601 example
6862         * doc/parse-datetime.texi: The standard states that extended format
6863         is to be used consistently throughout.
6864         Note that lib/parse-datetime.y can handle either tz format.
6866 2015-10-25  Paul Eggert  <eggert@cs.ucla.edu>
6868         stdalign: port to Sun C 5.9
6869         * doc/posix-headers/stdalign.texi: Document this.
6870         * lib/stdalign.in.h (_Alignas): Sun C 5.9 also supports
6871         __attribute__ ((__aligned__ (...))).
6873 2015-10-20  Paul Eggert  <eggert@cs.ucla.edu>
6875         time_rz: fix comment about tzalloc
6876         * lib/time_rz.c (tzalloc): Fix comment.
6878 2015-10-18  Paul Eggert  <eggert@cs.ucla.edu>
6880         stdalign: work around pre-4.9 GCC x86 bug
6881         * lib/stdalign.in.h (_Alignof): Work around bug in pre-4.9 GCC on
6882         x86, when -std=gnu11 is used.  Problem reported by Jim Meyering in:
6883         http://lists.gnu.org/archive/html/bug-gnulib/2015-10/msg00038.html
6885 2015-10-18  Pádraig Brady  <P@draigBrady.com>
6887         maint.mk: sc_tight_scope: remove extraneous expressions
6888         * top/maint.mk (tight_scope): This is not really required since
6889         commit 3ef58f46 as sed_wrap ensures we don't get an empty expression
6890         that matches all nm entries.  But it does remove extraneous entries
6891         that may be confusing or cause issue in future maintenance.
6893 2015-10-18  Paul Eggert  <eggert@cs.ucla.edu>
6895         time_rz: return NULL if localtime_r fails
6896         * lib/time_rz.c (localtime_rz): Return NULL if localtime_r fails,
6897         while still attempting to pacify bleeding-edge GCC.
6899         fts: port to C11 alignof
6900         * doc/posix-headers/stdalign.texi (stdalign.h):
6901         Document the C11 restriction.
6902         * lib/fts.c: Include stddef.h, for max_align_t.
6903         (fts_alloc): Align using max_align_t, not FTSENT.
6904         * modules/fts (Depends-on): Add stddef.
6906 2015-10-18  Jim Meyering  <meyering@fb.com>
6908         time_rz: avoid warning from bleeding-edge gcc's -Wnonnull
6909         Compiling with gcc version 6.0.0 20151017 (experimental) (GCC), I
6910         would see this:
6912         lib/time_rz.c: In function 'localtime_rz':
6913         lib/time_rz.c:292:15: error: nonnull argument 'tm' compared to NULL \
6914           [-Werror=nonnull]
6915                    if (tm && !save_abbr (tz, tm))
6916                        ^
6918         That was complaining about "tm" because it is a parameter that was
6919         declared with the __nonnull__ attribute.
6920         * lib/time_rz.c (localtime_rz): Don't bother setting "tm" to the
6921         result of localtime_r.
6923 2015-10-17  Jim Meyering  <meyering@fb.com>
6925         maint.mk: _gl_TS_function_match: fix "extern" name extracting regexp
6926         * top/maint.mk (_gl_TS_function_match): This heuristic extern-function-
6927         name-extraction regexp mistakenly used \S+, and would mistakenly
6928         extract "*F" from "extern int *F()" rather than the desired "F".
6929         Use \w+ instead.
6931 2015-10-17  Jim Meyering  <meyering@fb.com>
6933         maint.mk: sc_tight_scope: factor and support OS X
6934         * top/maint.mk (_gl_tight_scope): Address three issues:
6935         - factor out four instances of code that wraps a string in "^...$"
6936         - allow nm-reported symbol names to have an optional leading "_"
6937         - add "main" to the list of ignored variable names, because on os x,
6938         "main" has nm-reported type "S" in the variable-checking section.
6940 2015-10-16  Dmitry Smirnov  <onlyjob@member.fsf.org>
6942         safe-alloc-tests: fix typo in license header
6943         * tests/test-safe-alloc.c: Mention LGPL 2.1, not 3.1
6945 2015-10-15  Simon Reinhardt  <simon@keinstein.org>
6947         copy-file: fix mem leak in error case
6948         * lib/copy-file.c (qcopy_file_preserving): Free the 32KiB buffer
6949         upon error opening or performing I/O to the src and dest files.
6951 2015-10-15  Mike Frysinger  <vapier@chromium.org>
6953         localename: control langinfo.h inclusion
6954         This header is only used to work around buggy behavior in old
6955         versions of glibc, so do not include it all the time.  Otherwise
6956         we get build failures on systems that do not provide langinfo.h.
6957         * lib/localename.c: Wrap langinfo.h include with same ifdefs used
6958         in the source later on.
6959         The patch was originally submitted to gettext as:
6960         https://lists.gnu.org/archive/html/bug-gettext/2015-10/msg00011.html
6962 2015-10-13  Paul Eggert  <eggert@cs.ucla.edu>
6964         binary-io, math, pthread, sys_socket, u64, unistd: port to strict C
6965         * lib/binary-io.c, lib/math.c, lib/pthread.c, lib/sys_socket.c:
6966         * lib/u64.c, lib/unistd.c:
6967         Append 'typedef int dummy;', to pacify compilers that are picky
6968         about empty translation units.
6970 2015-10-12  Pino Toscano  <ptoscano@redhat.com>
6972         accept4-tests: fix to avoid non portable flags
6973         * tests/test-accept4.c (main): Pass only SOCK_* flags to accept4(),
6974         as they are the only documented ones, and passing others may trigger
6975         EINVAL (seen on FreeBSD 10.1-RELEASE).
6976         * doc/glibc-functions/accept4.texi: Mention that we don't provide
6977         the SOCK_CLOEXEC or SOCK_NONBLOCK defines.
6979 2015-10-06  Pavel Raiskup  <praiskup@redhat.com>
6981         gnulib-tool: fix tests of 'extensions' module
6982         This complements f8fe25fab60e3c687a124 commit.
6983         * gnulib-tool (func_emit_pre_early_macros): New function, it wraps
6984         emitting of initial gl_EARLY macros.
6985         (func_import, func_create_testdir): All dumps of gl_PROG_AR_RANLIB
6986         replaced with func_emit_pre_early_macros call.
6988 2015-10-06  Paul Eggert  <eggert@cs.ucla.edu>
6990         unicase/locale-language: fix typo in utf-8 cookie
6991         * lib/unicase/locale-languages.gperf: Fix gperf input file format.
6992         Problem reported by Zbigniew Jędrzejewski-Szmek.
6994 2015-10-02  Paul Eggert  <eggert@cs.ucla.edu>
6996         xalloc: do not worry about GCC 5 warning on 32 bit
6997         * lib/xalloc.h: Revert previous change.
6998         I found a better way to fix this in coreutils.
7000 2015-10-02  Pádraig Brady  <P@draigBrady.com>
7002         xalloc: avoid GCC 5.1 warning on 32 bit
7003         * lib/xalloc.h: Disable -Wstrict-overflow for uses of
7004         xalloc_oversized(), which was seen to give this warning
7005         on GCC 5.1 on 32 bit: "assuming signed overflow does not occur
7006         when simplifying conditional".
7008 2015-10-02  Daiki Ueno  <ueno@gnu.org>
7010         uniname/uniname-tests: avoid compiler warnings
7011         * tests/uniname/test-uninames.c (fill_names, fill_aliases): Remove
7012         unused local variables.
7013         (test_alias_lookup): Fix alias name display in failure cases.
7015 2015-09-26  Paul Eggert  <eggert@cs.ucla.edu>
7017         c-ctype: do not worry about EBCDIC + char signed
7018         Drop support for EBCDIC with char being signed, as this breaks too
7019         many programs.  Problem reported by Ben Pfaff in:
7020         http://lists.gnu.org/archive/html/bug-gnulib/2015-09/msg00053.html
7021         * lib/c-ctype.h: Verify that we are not using EBCDIC with
7022         char being signed.
7023         (_C_CTYPE_LOWER_A_THRU_F_N): New macro.
7024         (_C_CTYPE_LOWER_N, _C_CTYPE_A_THRU_F): Use it.
7025         (_C_CTYPE_DIGIT, _C_CTYPE_LOWER, _C_CTYPE_PUNCT, _C_CTYPE_UPPER):
7026         (c_isascii, c_isgraph, c_isprint, c_ispunct, c_tolower, c_toupper):
7027         * tests/test-c-ctype.c (test_all):
7028         Simplify by assuming standard char values cannot be negative.
7029         * tests/test-c-ctype.c (NCHARS, to_char): Remove; all uses removed.
7031 2015-09-25  Paul Eggert  <eggert@cs.ucla.edu>
7033         c-ctype: port better to z/OS EBCDIC
7034         Problems reported by Daniel Richard G. in:
7035         http://lists.gnu.org/archive/html/bug-gnulib/2015-09/msg00050.html
7036         * lib/c-ctype.h (_C_CTYPE_CNTRL): Rewrite in terms of
7037         the C standard escapes and _C_CTYPE_OTHER_CNTRL.
7038         (_C_CTYPE_OTHER_CNTRL): New macro.
7039         * tests/test-c-ctype.c (test_all): Test from CHAR_MIN, not
7040         from SCHAR_MIN, as the functions are defined only from values
7041         promoted from char or from unsigned char, not necessarily from
7042         signed char.
7044 2015-09-25  Pavel Raiskup  <praiskup@redhat.com>
7046         gnulib-common.m4: fix gl_PROG_AR_RANLIB/AM_PROG_AR clash
7048         The gl_PROG_AR_RANLIB (it is always called by gl_EARLY) sets AR
7049         and ARFLAGS variables.  Doing this unconditionally could break
7050         later Automake's AM_PROG_AR invocation (at least it's
7051         AC_CHECK_TOOLS call to detect correct 'ar' binary).
7053         Original purpose of the gl_PROG_AR_RANLIB was only to handle the
7054         Amsterdam Compiler Kit, so make the previous code to have effects
7055         only on ACK, and rather automatically call the Automake's
7056         AM_PROG_AR as soon as possible to decide other cases.
7058         References:
7059         http://lists.gnu.org/archive/html/bug-gnulib/2015-07/msg00001.html
7061         * m4/gnulib-common.m4 (gl_PROG_AR_RANLIB): AC_BEFORE AM_PROG_AR.
7062         Set the AR/ARFLAGS to ACK defaults OR call AM_PROG_AR.  If neither
7063         is possible, keep setting AR/ARFLAGS to reasonable defaults.
7064         * gnulib-tool (func_import): Put the gl_USE_SYSTEM_EXTENSIONS
7065         right before gl_PROG_AR_RANLIB into gnulib-comp.m4 (if the
7066         'extensions' module is used.
7067         * modules/extensions (configure.ac-early): Remove as this snippet
7068         is added to gnulib-comp.m4 earlier anyway.
7070 2015-09-25  Paul Eggert  <eggert@cs.ucla.edu>
7072         sockets: MS Windows initalization fixes
7073         Problem reported by Test User in:
7074         http://lists.gnu.org/archive/html/help-shishi/2015-09/msg00001.html
7075         * lib/sockets.h (SOCKETS_1_0, SOCKETS_2_0, SOCKETS_2_1):
7076         Correct the endianness.
7077         * lib/sockets.c (gl_sockets_startup): Return 2 on any version
7078         number mismatch, not just on <.  Cleanup before any such failure.
7080 2015-09-25  Mats Erik Andersson  <gnu@gisladisker.se>
7082         gc: fix detection of installed libgcrypt version
7083         * m4/gc.m4: Use AM_PATH_LIBCRYPT to test for libcrypt versions
7084         at least as recent as 1.4.4.  The previously used macro is not
7085         available now, since modules were removed in version 1.6.0.
7087 2015-09-25  Paul Eggert  <eggert@cs.ucla.edu>
7089         c-ctype: rewrite to use inline functions
7090         This simplifies maintenance, since it makes for just one
7091         implementation of each function, letting the compiler have the fun
7092         of optimization.  In practice this works well nowadays with GCC.
7093         E.g., c_isascii might need only three instructions even though the
7094         source code lists every ASCII character individually in a large
7095         switch statement.
7096         Also, fix some z/OS porting bugs reported by Daniel Richard G. in:
7097         http://lists.gnu.org/archive/html/bug-gnulib/2015-09/msg00037.html
7098         * NEWS: Document the API change.
7099         * lib/c-ctype.c: Drastically simplify, since this now just expands
7100         inline functions.
7101         * lib/c-ctype.h: Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
7102         (C_CTYPE_INLINE): New macro.
7103         (C_CTYPE_CONSECUTIVE_DIGITS, C_CTYPE_CONSECUTIVE_LOWERCASE)
7104         (C_CTYPE_CONSECUTIVE_UPPERCASE): Remove.
7105         Verify that either ASCII or EBCDIC is being used.
7106         (_C_CTYPE_SIGNED_EBCDIC, _C_CTYPE_CNTRL, _C_CTYPE_A_THRU_F_N)
7107         (_C_CTYPE_DIGIT_N, _C_CTYPE_LOWER_N, _C_CTYPE_UPPER_N)
7108         (_C_CTYPE_CASES, _C_CTYPE_A_THRU_F, _C_CTYPE_DIGIT, _C_CTYPE_LOWER)
7109         (_C_CTYPE_UPPER, _C_CTYPE_PUNCT_PLAIN):
7110         New private macros.
7111         (_C_CTYPE_CNTRL): In EBCDIC, '\x07' is a control, not '\xff'.
7112         (c_isalnum, c_isalpha, c_isascii, c_isblank, c_iscntrl, c_isdigit)
7113         (c_isgraph, c_islower, c_isprint, c_ispunct, c_isspace, c_isupper)
7114         (c_isxdigit, c_tolower, c_toupper): Now inline functions.
7115         (c_tolower, c_toupper): When converting, return the unsigned char,
7116         as that is what z/OS does.
7117         * lib/c-strcaseeq.h (CASEEQ): Simplify in the light of the removal
7118         of some c-ctype.h macros.
7119         * modules/c-ctype (Depends-on): Add extern-inline; remove verify.
7120         * tests/test-c-ctype.c (test_all): Fix test for c_toupper and
7121         c_tolower promotion to be compatible with z/OS.
7123 2015-09-24  Pavel Raiskup  <praiskup@redhat.com>
7125         gitlog-to-changelog: trim only trailing whitespaces
7126         This is fix for --format regression introduced by commit
7127         2b93079a5d1baa4d;  it caused that --format='%s%n%n%b%n' (see the
7128         doubled %n string) had no effect anymore.  This format
7129         specification has been used e.g. by GNU paxuitils (commit
7130         edfd8bcc3).
7132         * build-aux/gitlog-to-changelog (main): Stop squashing multiple
7133         newlines in commmit messages.
7135 2015-09-23  Paul Eggert  <eggert@cs.ucla.edu>
7137         Test that c_iscntrl agrees with iscntrl, etc.
7138         Suggested by Daniel Richard G. in:
7139         http://lists.gnu.org/archive/html/bug-gnulib/2015-09/msg00034.html
7140         * modules/c-ctype-tests (Depends-on): Add ctype.
7141         * tests/test-c-ctype.c: Include <ctype.h>.
7142         (NCHARS): New constant.
7143         (test_agree_with_C_locale): New function.
7144         (main): Use it.
7145         (test_all): Use named constants.
7147         c-ctype: improve c_isascii testing
7148         * tests/test-c-ctype.c (test_all): Port c_isascii test to EBCDIC.
7149         Add a test to count the number of ASCII characters.
7151 2015-09-22  Paul Eggert  <eggert@cs.ucla.edu>
7153         savewd: remove SAVEWD_CHDIR_READABLE
7154         It was problematic in the light of file systems that ignore umask.
7155         Problem reported by Sebastian Unger in: http://bugs.gnu.org/21534
7156         * NEWS: Document this.
7157         * lib/mkancesdirs.c (mkancesdirs): MAKE_DIR now returns 0 if
7158         successful, -1 (setting errno) on failure, rather than something
7159         more complicated than that.
7160         * lib/mkdir-p.c (make_dir_parents):
7161         Do not use SAVEWD_CHDIR_READABLE.
7162         * lib/savewd.c (savewd_chdir):
7163         Remove support for SAVEWD_CHDIR_READABLE.
7164         * lib/savewd.h (SAVEWD_CHDIR_READABLE): Remove.
7166         c-ctype: port better to EBCDIC
7167         Problems reported by Daniel Richard G. in
7168         http://lists.gnu.org/archive/html/bug-gnulib/2015-09/msg00020.html
7169         * lib/c-ctype.c: Include <limits.h>, for CHAR_MIN and CHAR_MAX.
7170         Include "verify.h".
7171         (C_CTYPE_ASCII, C_CTYPE_CONSECUTIVE_DIGITS)
7172         (C_CTYPE_CONSECUTIVE_LOWERCASE, C_CTYPE_CONSECUTIVE_UPPERCASE):
7173         Define as enum constants with value false, if not defined, so that
7174         code can use 'if' instead of 'ifdef'.  Using 'if' helps make the
7175         code more portable, as both branches of the 'if' are compiled on
7176         all platforms.
7177         (C_CTYPE_EBCDIC): New constant.
7178         Verify that the character set is either ASCII or EBCDIC.
7179         (to_char): New static function.
7180         (c_isascii, c_iscntrl):
7181         Assume standard control-character assignments for EBCDIC.
7182         (c_isalnum, c_isalpha, c_isdigit, c_islower, c_isgraph, c_isprint)
7183         (c_ispunct, c_isupper, c_isxdigit, c_tolower, c_toupper):
7184         Rewrite to use 'if' instead of 'ifdef'.
7185         Use to_char if non-ASCII.  Prefer <= to >=.
7186         Prefer true and false to 1 and 0, for booleans.
7187         (c_iscntrl): Use 'if', not 'ifdef'.
7188         * modules/c-ctype (Depends-on): Add verify.
7189         * tests/test-c-ctype.c: Include <limits.h>, for CHAR_MIN
7190         (to_char): New function.
7191         (test_all): Port to EBCDIC.  Add some more tests, e.g., for c_ispunct.
7193 2015-09-21  Pádraig Brady  <P@draigBrady.com>
7195         nanosleep: fix return code for interrupted replacement
7196         * lib/nanosleep.c (nanosleep): In the replaced nanosleep, ensure
7197         that we return -1 in the case the call is interrupted by a signal,
7198         rather than the current value of 1.
7199         Diagnosed and tested by Daniel Richard G.
7201 2015-09-19  Paul Eggert  <eggert@cs.ucla.edu>
7203         Diagnose ERE '()|\1'
7204         Problem reported by Hanno Böck in: http://bugs.gnu.org/21513
7205         * lib/regcomp.c (parse_reg_exp): While parsing alternatives, keep
7206         track of the set of previously-completed subexpressions available
7207         before the first alternative, and restore this set just before
7208         parsing each subsequent alternative.  This lets us diagnose the
7209         invalid back-reference in the ERE '()|\1'.
7211         regex: merge patches from libc
7213         2015-09-08  Joseph Myers  <joseph@codesourcery.com>
7214         Move bits/libc-lock.h and bits/libc-lockP.h out of bits/ (bug 14912).
7215         * lib/regex_internal.h:
7216         Include <libc-lock.h> instead of <bits/libc-lock.h>.
7218         2015-06-09  Joseph Myers  <joseph@codesourcery.com>
7219         Fix regcomp wcscoll, wcscmp namespace (bug 18497).
7220         * lib/regcomp.c (build_range_exp): Call __wcscoll instead of
7221         wcscoll.
7222         * lib/regexec.c (check_node_accept_bytes): Likewise.
7224         2015-06-05  Joseph Myers  <joseph@codesourcery.com>
7225         Fix regex wcrtomb namespace (bug 18496).
7226         * lib/regex_internal.c (build_wcs_upper_buffer): Call __wcrtomb
7227         instead of wcrtomb.
7229         2015-06-05  Joseph Myers  <joseph@codesourcery.com>
7230         Fix regex wctype namespace (bug 18495).
7231         * lib/regcomp.c (re_compile_fastmap_iter): Call __towlower
7232         instead of towlower.
7233         * lib/regex_internal.c (build_wcs_upper_buffer): Call __iswlower
7234         instead of iswlower.  Call __towupper instead of towupper.
7235         * lib/regex_internal.h (IS_WIDE_WORD_CHAR): Call __iswalnum
7236         instead of iswalnum.
7238         2015-01-07  Chris Metcalf  <cmetcalf@ezchip.com>
7239         * lib/regcomp.c (parse_bracket_exp): Initialize type to
7240         COLL_SYM in a couple of places to avoid uninitialized variable
7241         wanings on tilegx gcc 4.8.2.
7243         2014-11-24  Siddhesh Poyarekar  <siddhesh@redhat.com>
7244         * lib/regex_internal.h: Remove NOT_IN_libc.
7246         2014-11-17  Andreas Schwab  <schwab@suse.de>
7247         * lib/regex_internal.h: Don't include <locale/elem-hash.h>.
7249         2014-09-11  Roland McGrath  <roland@hack.frob.com>
7250         Move findidx nested functions to top-level.
7251         * lib/regcomp.c [_LIBC]: #include <locale/weight.h>.
7252         (build_equiv_class) [_LIBC]: Don't #include it inside the function.
7253         Pass new arguments to findidx.
7254         * lib/regexec.c [RE_ENABLE_I18N] [_LIBC]: #include <locale/weight.h>.
7255         [RE_ENABLE_I18N] (check_node_accept_bytes) [_LIBC]:
7256         Don't #include it inside the function.  Pass new arguments to findidx.
7257         * lib/regex_internal.h:
7258         [!NOT_IN_libc] [_LIBC]: #include <locale/weight.h>.
7259         (re_string_elem_size_at): Don't #include it inside the function.
7260         Pass new arguments to findidx.
7262         2014-08-01  Siddhesh Poyarekar  <siddhesh@redhat.com>
7263         Check if DEBUG is defined in regex_internal.c
7264         * lib/regex_internal.c: Check if DEBUG is defined and is set.
7266 2015-09-08   Assaf Gordon  <assafgordon@gmail.com>
7268         ceill: detect buggy OpenBSD implementation
7269         * m4/ceill.m4 (gl_FUNC_CEILL): Detect buggy openBSD implementation
7270         which returns zero for small values.  Discussed here:
7271         http://lists.gnu.org/archive/html/bug-gnulib/2015-08/msg00010.html
7273 2015-09-08  Dave Chiluk  <chiluk@canonical.com>
7275         mountlist: add me_mntroot field on Linux machines
7276         * lib/mountlist.c (read_file_system_list): Populate me_mntroot in
7277         mount_entry so Linux machines based on /proc/self/mountinfo can
7278         distinguish between bind mounts and original mounts.  In reality bind
7279         mounts aren't treated differently than mountroot=/ mounts by the
7280         kernel, but the user often wants these bind mounts distinguished.
7281         * lib/mountlist.h (struct mount_entry): Add me_mntroot element.
7282         More details at https://pad.lv/1432871
7284 2015-09-08  Christian Egli  <christian.egli@sbs.ch>
7286         doc: Describe to use multiple instances of gnulib
7287         * doc/gnulib-tool.texi: Add a section to the manual outlining how two
7288         instances of gnulib with different modules can be used, for example one
7289         for a lib and another one for associated tools.
7291 2015-09-01  Pádraig Brady  <P@draigBrady.com>
7293         base32: mark function as __attribute__ const
7294         * lib/base32.h (isbase32): Mark __attribute__ const as
7295         suggested by GCC, and consistent with the base64 module.
7297 2015-08-20  Daiki Ueno  <ueno@gnu.org>
7299         gnulib-tool: don't transform binary files with sed
7300         * gnulib-tool (func_add_or_update): Don't apply sed_transform_* to
7301         .mo and .class files.
7302         Reported by Denis Denisov.
7304 2015-08-10  Daiki Ueno  <ueno@gnu.org>
7306         gperf: respect silent rules
7307         * modules/gperf (Makefile.am): Define V_GPERF, V_GPERF_, and
7308         V_GPERF_0 for silent rules.
7309         * modules/iconv_open (Makefile.am): Use V_GPERF.
7310         * modules/unicase/locale-language (Makefile.am): Likewise.
7311         * modules/unicase/special-casing (Makefile.am): Likewise.
7312         * modules/unictype/category-byname (Makefile.am): Likewise.
7313         * modules/unictype/combining-class-byname (Makefile.am): Likewise.
7314         * modules/unictype/joininggroup-byname (Makefile.am): Likewise.
7315         * modules/unictype/joiningtype-byname (Makefile.am): Likewise.
7316         * modules/unictype/property-byname (Makefile.am): Likewise.
7317         * modules/unictype/scripts (Makefile.am): Likewise.
7318         * modules/uninorm/composition (Makefile.am): Likewise.
7320 2015-08-03  Paul Eggert  <eggert@cs.ucla.edu>
7322         Improve port of stdalign to C++11
7323         Problem reported by Sundaram in:
7324         http://lists.gnu.org/archive/html/bug-gnulib/2015-08/msg00003.html
7325         * lib/stdalign.in.h (alignof, alignas): Don't define if C++11 or newer.
7326         (__alignas_is_defined): Define if C++11 or newer.
7328 2015-08-01  Assaf Gordon  <assafgordon@gmail.com>  (tiny change)
7330         pmccabe2html: fix gawk regex escaping
7331         * build-aux/pmccabe2html: Add one more backslash to properly
7332         escape the gsub replacement value.  Fixes this error:
7333         gawk: ./build-aux/pmccabe2html:425: \
7334         warning: escape sequence `\&' treated as plain `&'
7336 2015-07-29  Paul Eggert  <eggert@cs.ucla.edu>
7338         time_rz: port to pedantic memcpy
7339         * lib/time_rz.c (tzalloc): Pacify pedantic memcpy implementations
7340         that reject memcpy (..., NULL, 0).
7342 2015-07-27  Paul Eggert  <eggert@cs.ucla.edu>
7344         time_rz: port better to MinGW
7345         Don't change tzname, as this makes MinGW dump core (Bug#21020).
7346         Instead, store the tzname copy in the struct tm_zone object.
7347         Problem reported by Eli Zaretskii in: http://bugs.gnu.org/21020#48
7348         * lib/strftime.c [!_LIBC]:
7349         * lib/time_rz.c: Include time-internal.h.
7350         * lib/strftime.c (strftime_case_) [!HAVE_TM_ZONE]: Infer the zone
7351         name from *TZ rather than from TZNAME, doable because *TZ now has
7352         a tzname_copy member.
7353         * lib/time-internal.h: New file, with contents taken from
7354         lib/time_rz.c.  It's separate because strftime.c now accesses
7355         struct tm_zone members.
7356         (struct tm_zone) [HAVE_TZNAME && !HAVE_TM_ZONE]:
7357         New member tzname_copy.
7358         * lib/time_rz.c (struct tm_zone): Move to time-internal.h.
7359         (tzalloc) [HAVE_TZNAME && !HAVE_TM_ZONE]:
7360         Initialize tzname_copy member.
7361         (save_abbr) [HAVE_TZNAME && !HAVE_TM_ZONE]: Save abbreviation
7362         in tzname_copy member.
7363         (revert_tz) [HAVE_TZNAME]: Remove no-longer-needed tzname saving.
7364         (restore_tzname): Remove; no longer needed.  All calls removed.
7365         * modules/time_rz (Files): Add lib/time-internal.h.
7367         time: port __need_time_t to MinGW
7368         * lib/time.in.h (__need_time_t): Do not treat specially on MinGW.
7369         Fix reported by Eli Zaretskii in: http://bugs.gnu.org/21020#36
7371 2015-07-25  Paul Eggert  <eggert@cs.ucla.edu>
7373         strftime: fix newly-introduced bug on Solaris
7374         * lib/strftime.c (strftime_case_): Set the local variable 'zone'
7375         consistently at the start, rather than doing some of the setup at
7376         the start and some in the %Z format spec.  This is cleaner, and
7377         works better with time_rz on platforms like Solaris where struct
7378         tm lacks a tm_zone member, as when !HAVE_TM_GMTOFF %z's calls to
7379         mktime_z and localtime_rz can mess up the tzname cache.
7381         test-strftime: test for Solaris bug
7382         * modules/strftime-tests (Depends-on): Add strerror.
7383         * tests/test-strftime.c: Include <errno.h>.
7384         (posixtm_test): New function, containing the old 'main'.
7385         (struct tzalloc_test, struct localtime_rz_test): New types.
7386         (TZ, LT): New static vars.
7387         (tzalloc_test): New function.
7388         (main): Rewrite in terms of posixtm_test and tzalloc_test.
7390         time_rz: port to Solaris etc.
7391         Works around a tzname problem on platforms like Solaris that have
7392         tzname but not tm_zone, by setting tzname at the appropriate time
7393         and restoring it later.
7394         * lib/time_rz.c (tzname_address, tzname_value) [HAVE_TZNAME]:
7395         New static vars.
7396         (save_abbr) [HAVE_TZNAME]: Set them.
7397         (revert_tz) [HAVE_TZNAME]: Clear or use them.
7398         (restore_tzname): New function.
7399         (localtime_rz, mktime_z): Use it.
7401         time_rz: now LGPL
7402         * modules/time_rz (License): Now LGPL, because strftime depends on it.
7404         time_rz: make a constant 'const'
7405         * lib/time_rz.c (local_tz): Now const.
7407         time_rz: fix off-by-one typo
7408         * lib/time_rz.c (extend_abbrs): Fix off-by-one typo.
7410 2015-07-23  Paul Eggert  <eggert@cs.ucla.edu>
7412         fprintftime, strftime: use timezone_t args
7413         * NEWS: Document the change.
7414         * lib/fprintftime.h (fprintftime):
7415         * lib/strftime.c (extra_args) [my_strftime]:
7416         * lib/strftime.h (nstrftime):
7417         Time zone arg is now of type timezone_t, not int.
7418         * lib/strftime.c (mktime_z) [_LIBC]: New macro.
7419         (__gmtime_r, __localtime_r) [!HAVE_TM_GMTOFF]: Remove; no longer used.
7420         (my_strftime) [emacs && !my_strftime]:
7421         (emacs_strftimeu) [emacs && !FPRINTFTIME]:
7422         Remove; Emacs doesn't need this any more.
7423         (HAVE_TZSET) [my_strftime]: Unset, since we no longer want
7424         fprintftime and nstrftime to call tzset.
7425         (ut) [!my_strftime]: Remove, replacing with ...
7426         (tz) [!my_stftime]: ... this new macro.  All uses changed.
7427         (strftime_case_): Use localtime_rz and mktime_z instead
7428         of localtime_r and mktime.
7429         * modules/fprintftime (Depends-on): Add time_rz.
7430         * modules/strftime (Depends-on): Add time_rz.  Remove time_r.
7431         * tests/test-strftime.c (main): Adjust to new nstrftime API.
7433         time_rz: new module
7434         * MODULES.html.sh: Add time_rz.
7435         * lib/time_rz.c, m4/time_rz.m4, modules/time_rz: New files.
7436         * lib/time.in.h (timezone_t, tzalloc, tzfree, localtime_rz, mktime_z):
7437         New decls if _GNU_SOURCE && @GNULIB_TIME_RZ@ && ! @HAVE_TIMEZONE_T@.
7438         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_DEFAULTS):
7439         New var HAVE_TIMEZONE_T (default 0).
7440         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS):
7441         New var GNULIB_TIME_RZ (default 0).
7442         * modules/time (time.h): Substitute the new vars.
7444         flexmember: license is now unlimited
7445         * modules/flexmember (License): Change to unlimited,
7446         since its only source file gives an unlimited license.
7448 2015-07-15  Eric Blake  <eblake@redhat.com>
7450         maint: update copyright paper procedures
7451         * config/srclist.txt: Drop outdated files.
7452         * doc/Copyright/conditions.txt: Update to latest.
7453         * doc/Copyright/assign.changes.manual: Delete.
7454         * doc/Copyright/assign.future.manual: Likewise.
7455         * doc/Copyright/assign.manual: Likewise.
7456         * doc/Copyright/assign.translation.manual: Likewise.
7457         * doc/Copyright/disclaim.changes.manual: Likewise.
7458         * doc/Copyright/disclaim.manual: Likewise.
7459         * doc/Copyright/disclaim.program: Likewise.
7461 2015-07-07  Daiki Ueno  <ueno@gnu.org>
7463         localename: fix link error on Illumos
7464         Illumos defines __sun, but does not have getlocalename_l nor the
7465         equivalent.  This partially reverts commit 387c214.
7466         * m4/localename.m4 (gl_LOCALENAME): Check if getlocalename_l is
7467         available, as well as uselocale.
7468         * lib/localename.c [HAVE_USELOCALE && __sun]: Don't fallback to
7469         use getlocalename_l if it is not available.
7471 2015-07-07  Daiki Ueno  <ueno@gnu.org>
7473         unistr/uN-strtok-tests: avoid a trivial leak
7474         * tests/unistr/test-u-strtok.h (test_u_strtok): Untabify.  Free
7475         input and delim after the multibyte delimiter tests.
7477 2015-07-04  Paul Eggert  <eggert@cs.ucla.edu>
7479         file-has-acl, acl-permissions: fix HP-UX typos
7480         Problem reported by John David Anglin in: http://bugs.gnu.org/20979
7481         * lib/file-has-acl.c (file_has_acl):
7482         * lib/set-permissions.c (context_acl_from_mode)
7483         (context_aclv_from_mode, set_acls):
7484         Fix some obvious typos when HAVE_GETCL /* HP-UX */.
7485         They were introduced by the recent ACL changes.
7487         regex: match current GNU grep behavior
7488         These symbols have not matched GNU grep behavior for quite some time.
7489         Fix prompted by Balazs Kezes bug report at: http://bugs.gnu.org/20974
7490         * lib/regex.h (RE_SYNTAX_GREP, RE_SYNTAX_EGREP):
7491         Change to match current GNU behavior.
7492         Simplify by expressing it as differences from POSIX BREs and EREs.
7493         (RE_SYNTAX_POSIX_EGREP): No longer differs from GNU behavior.
7495 2015-07-03  Jim Meyering  <meyering@fb.com>
7497         set-permissions.c: adjust acl_from_mode's cpp guard
7498         * lib/set-permissions.c (acl_from_mode): Guard with #ifdef
7499         directives identical to those guarding the sole use.
7500         Otherwise, on some systems, we'd get a warning about
7501         the function being defined but not used.
7502         Also, filter through cppi to correct misleading indentation
7503         of cpp directives.
7505 2015-07-03  Pádraig Brady  <P@draigBrady.com>
7507         tests: restrict shells to those that support 'local'
7508         The local keyword is very widely supported and used
7509         in tests in coreutils and grep at least.  Therefore
7510         restrict to testing with shells that support it.
7511         This mainly excludes /bin/sh on Solaris.
7512         * tests/init.sh (gl_shell_test_script_): Add a test for 'local'.
7514 2015-07-03  Seiya Kawashima  <skawashima@uchicago.edu>  (tiny change)
7515         and Daiki Ueno  <ueno@gnu.org>
7517         unistr/uN-strtok: handle multibyte delimiters
7518         Previously, uN_strtok moved PTR to the next unit to the token end.
7519         When DELIM contained a multibyte character, the new position could
7520         be a middle of a multibyte character.
7521         * lib/unistr/u-strtok.h (FUNC): Place PTR at the next character
7522         after the token.
7523         * lib/unistr/u8-strtok.c (U_STRMBLEN): New macro.
7524         * lib/unistr/u16-strtok.c (U_STRMBLEN): New macro.
7525         * lib/unistr/u32-strtok.c (U_STRMBLEN): New macro.
7526         * modules/unistr/u8-strtok (Depends-on): Depend on
7527         unistr/u8-strmblen.
7528         * modules/unistr/u16-strtok (Depends-on): Depend on
7529         unistr/u16-strmblen.
7530         * modules/unistr/u32-strtok (Depends-on): Depend on
7531         unistr/u32-strmblen.
7532         * tests/unistr/test-u-strtok.h: New file.
7533         * tests/unistr/test-u8-strtok.c: New file.
7534         * tests/unistr/test-u16-strtok.c: New file.
7535         * tests/unistr/test-u32-strtok.c: New file.
7536         * modules/unistr/u8-strtok-tests: New file.
7537         * modules/unistr/u32-strtok-tests: New file.
7538         * modules/unistr/u16-strtok-tests: New file.
7540 2015-07-02  Friedrich Haubensak  <hsk@fli-leibniz.de>
7542         update-copyright: fix test failure with perl >= 5.22 (trivial)
7543         * build-aux/update-copyright: Escape a literal left curly bracket,
7544         required with perl >= 5.22
7546 2015-07-02  Daiki Ueno  <ueno@gnu.org>
7548         u{16,32}-strstr-tests: relax timeout condition
7549         On slower platforms (e.g., Solaris 10/SPARC), u{16,32}-strstr
7550         tests can take longer than 5 seconds to complete.
7551         Reported by Dagobert Michelsen in:
7552         https://lists.gnu.org/archive/html/bug-libunistring/2015-06/msg00006.html
7553         * tests/unistr/test-u16-strstr.c (main): Increase timeout from 5
7554         seconds to 10 seconds.
7555         * tests/unistr/test-u32-strstr.c (main): Likewise.
7557 2015-07-01  Pavel Raiskup  <praiskup@redhat.com>
7559         gnulib-common.m4: change the ARFLAGS default to 'cr'
7560         In some GNU/Linux distributions people started to compile 'ar'
7561         binary with --enable-deterministic-archives (binutils project).
7562         That, however, in combination with previous autotools long time
7563         working default AR{_,}FLAGS=cru causes warnings on such
7564         installations:
7565         ar: `u' modifier ignored since `D' is the default (see `U')
7566         * m4/gnulib-common.m4 (gl_PROG_AR_RANLIB): Set ARFLAGS='cr' if not
7567         set already.
7569 2015-07-01  Pavel Raiskup  <praiskup@redhat.com>
7571         selinux-h: avoid double free after *getfilecon()
7572         Originally reported by Ben Shelton on bug-tar:
7573         http://lists.gnu.org/archive/html/bug-tar/2015-04/msg00009.html
7574         * lib/getfilecon.c (map_to_failure): Set the already freed '*con'
7575         pointer to NULL.  Man getfilecon(3) says that any non-NULL '*con'
7576         param should be freed by freecon(3) (regardless the return value).
7578 2015-07-01  Pavel Fedin  <p.fedin@samsung.com>
7580         fix pty related tests issues on Windows (trivial)
7581         * lib/grantpt.c (grantpt): grantpt.c seems to be never used on Windows,
7582         however it's still present in tests/ subdirectory of the final project.
7583         Therefore avoid it to pass `make check`.
7584         * tests/test-openpty.c (main): Windows has no PTYs and gnulib's openpty()
7585         will just return -ENOSYS, so avoid this non applicable test allowing
7586         the build to proceed.
7588 2015-07-01  Pádraig Brady  <P@draigBrady.com>
7590         acl: fix definition of acl_from_mode on FreeBSD
7591         This was causing basic coreutils copy operations to fail
7592         with ENOTSUP or ENOENT error messages.
7593         * lib/acl-internal.h (acl_from_mode): Only define when
7594         ! defined HAVE_ACL_FROM_TEXT.  That allows the version
7595         of acl_from_mode() defined in lib/set-permissions.c to
7596         be used on FreeBSD at least.
7597         * lib/set-permissions.c: Fix up comment spelling,
7598         and a redundant variable assignment; noticed in passing.
7600 2015-06-30  Pádraig Brady  <P@draigBrady.com>
7602         readutmp: port to FreeBSD >= 9
7603         * lib/readutmp.h: Map utmpxname() to setutxdb().
7604         With that coreutils who(1) and pinky(1) tests pass.
7606 2015-06-30  Paul Eggert  <eggert@cs.ucla.edu>
7608         mgetgroups: port to strict OS X
7609         The previous fix wasn't working, so use a bigger hammer (Bug#20923).
7610         * lib/mgetgroups.c: Ignore -Wpointer-sign diagnostics.
7611         (getgrouplist_gids) [HAVE_GETGROUPLIST]: Remove.  All uses removed.
7612         * m4/mgetgroups.m4 (gl_MGETGROUPS): Revert recent changes.
7614 2015-06-29  Paul Eggert  <eggert@cs.ucla.edu>
7616         mgetgroups: port to strict OS X
7617         * doc/glibc-functions/getgrouplist.texi (getgrouplist):
7618         Document the getgrouplist problem.
7619         * lib/mgetgroups.c (getgrouplist_gids) [HAVE_GETGROUPLIST]:
7620         New macro.
7621         (mgetgroups): Use it.
7622         * m4/mgetgroups.m4 (gl_MGETGROUPS):
7623         Check for OS X signature for getgrouplist.
7625 2015-06-29  Jim Meyering  <meyering@fb.com>
7627         linkat: fix invalid definition of LINKAT_SYMLINK_NOTSUP on OS X
7628         It started like this when building coreutils' latest on OS X,
7629         invoking ./configure with a nonempty --cache=.cache:
7631           lib/linkat.c:46:42: error: operator '||' has no right operand
7632           lib/linkat.c: In function 'rpl_linkat':
7633           lib/linkat.c:330:27: error: #if with no expression
7635         Here's linkat.c's line 46:
7637           #if !HAVE_LINKAT || LINKAT_SYMLINK_NOTSUP
7639         Here's some context:
7641           $ grep linkat_nofoll .cache
7642           gl_cv_func_linkat_nofollow=${gl_cv_func_linkat_nofollow=no}
7643           $ grep LINKAT_SYM lib/config.h
7644           #define LINKAT_SYMLINK_NOTSUP
7646         The problem is that m4/linkat.m4's gl_FUNC_LINKAT
7647         uses AC_CACHE_CHECK to set LINKAT_SYMLINK_NOTSUP,
7648         but that violates a tenet of AC_CACHE_CHECK: it must
7649         have no side effect other than setting its cache variable.
7651         What happens is that when the cache is set, we'd skip the
7652         code in that AC_CACHE_CHECK call, and leave LINKAT_SYMLINK_NOTSUP
7653         defined to whatever value it happened to have in configure's
7654         environment.  In my case, it was not defined, so this later code:
7656           AC_DEFINE_UNQUOTED([LINKAT_SYMLINK_NOTSUP], [$LINKAT_SYMLINK_NOTSUP],
7657             [Define to 1 if linkat can create hardlinks to symlinks])
7659         would emit code with an empty RHS.
7661         * m4/linkat.m4 (gl_FUNC_LINKAT): Move the setting of
7662         $LINKAT_SYMLINK_NOTSUP out of the AC_CACHE_CHECK code block.
7664 2015-06-28  Jim Meyering  <meyering@fb.com>
7666         mountlist: avoid an unused-label warning on OS X
7667         * lib/mountlist.c (read_file_system_list) [MOUNTED_GETMNTINFO]:
7668         Building on OS X, I saw a warning about the "free_then_fail" label
7669         being unused.  Give it the _GL_UNUSED_LABEL attribute.
7671         error.c: correct printf-style format: %d -> %u
7672         * lib/error.c (error_at_line): Correct __fxprintf format to use %u,
7673         rather than %d, to match the type of "line_number", unsigned int.
7675 2015-06-25  Pádraig Brady  <P@draigBrady.com>
7677         fts: avoid reading beyond the heap allocation
7678         GCC 5.1.1 with -O2 and -fsanitize=address reports
7679         a read of size 4 from a heap object of size 3 is indeed invalid,
7680         though this may be due to incorrect padding assumptions by GCC, see:
7681         https://gcc.gnu.org/bugzilla/show_bug.cgi?id=66661
7682         * lib/fts.c (fts_alloc): Increase allocation to alignof(FTSENT).
7683         * modules/fts: Depend on stdalign.
7685 2015-06-24  Pádraig Brady  <P@draigBrady.com>
7687         savedir: avoid undefined behavior in qsort call
7688         GCC 5.1.1 -fsanitize=undefined with glibc 2.21 is returning:
7689         "runtime error: null pointer passed as argument 1,
7690          which is declared to never be null"
7691         * lib/savedir.c (streamsavedir): Avoid the call with no entries.
7693 2015-06-24  Pádraig Brady  <P@draigBrady.com>
7695         userspec: avoid undefined behavior in gettext call
7696         GCC 5.1.1 -fsanitize=undefined with glibc 2.21 is returning:
7697         "runtime error: null pointer passed as argument 2,
7698          which is declared to never be null"
7699         * lib/userspec.c (parse_with_separator): Avoid passing NULL to gettext()
7701 2015-06-20  Glenn Morris  <rgm@gnu.org>
7703         gitlog-to-changelog: improve gitmerge.el commits
7704         Let the Emacs ChangeLog generation process exclude "skipped"
7705         messages from merge commits (Bug#20717).
7706         * build-aux/gitlog-to-changelog: Handle gitmerge.el skipped commits.
7708 2015-06-20  Paul Eggert  <eggert@cs.ucla.edu>
7710         wchar: fix MinGW compilation warnings
7711         This lets Texinfo compile cleanly.  See Eli Zaretskii in:
7712         http://lists.gnu.org/archive/html/bug-gnulib/2015-06/msg00050.html
7713         * lib/wchar.in.h: Do not use special invocation convention on MinGW.
7715 2015-06-20  Daiki Ueno  <ueno@gnu.org>
7717         uniname/uniname-tests: use pristine data files
7718         For copyright and maintenance reasons, use the data files from UCD
7719         without modification.
7720         * tests/uniname/test-uninames.c (FIELDLEN): Remove.
7721         (getfield): Remove.
7722         (aliases_count): New global variable.
7723         (fill_names): Skip comments and empty lines in the input.  Don't
7724         use getfield.
7725         (fill_aliases): Likewise.
7726         (main): Change the expected command line arguments to:
7727         NAMES... ["--" ALIASES...].
7728         * tests/uniname/test-uninames.sh: Adjust to the change in
7729         test-uninames.c.
7730         * tests/uniname/UnicodeDataNames.txt: Remove.
7731         * tests/uniname/UnicodeData.txt: New file, from Unicode 8.0.0.
7732         * tests/uniname/NameAliases.txt: Use the pristine copy of the data
7733         file from Unicode 8.0.0.
7735 2015-06-19  Pádraig Brady  <P@draigBrady.com>
7737         linked-list, linkedhash-list: avoid compiler warnings
7738         * lib/gl_anytree_list2.h: Add _GL_ATTRIBUTE_PURE to avoid
7739         -Werror=suggest-attribute=pure (from GCC 5.1.1).
7741 2015-06-19  Daiki Ueno  <ueno@gnu.org>
7743         libunistring: bump minimum version to 0.9.6
7744         * all modules depending on updated Unicode data: Regenerate.
7745         The modules are listed by a script that does:
7746         - for each file listed by: git show --oneline --name-only 705f4efc
7747           - deduce the containing modules, based on "Files:"
7748         - deduce the modules which depend on the containing modules, based
7749           on "Depends-on:"
7751 2015-06-18  Daiki Ueno  <ueno@gnu.org>
7753         uniname/uniname: update to Unicode 8.0.0
7754         * lib/uniname/uninames.h: Regenerate.
7755         * tests/uniname/NameAliases.txt: Update from Unicode 8.0.0.
7756         * tests/uniname/UnicodeDataNames.txt: Update from Unicode 8.0.0.
7758 2015-06-18  Daiki Ueno  <ueno@gnu.org>
7760         libunistring: update to Unicode 8.0.0
7761         * lib/gen-uni-tables.c (SIZEOF): New macro.
7762         (output_numeric): Increase the maximum number of fractions from
7763         128 to 160.  Increase the level3 value width from 7 bits to 8
7764         bits.  Use SIZEOF instead of a hard-coded integer.
7765         (output_blocks): Decrease the cut-off threshold from 0x30000 to
7766         0x28000.
7767         (fill_blocks): Increase the maximum number of blocks from 256 to
7768         384.  Use SIZEOF instead of a hard-coded integer.
7769         (get_lbp): Adjust to new characters added in Unicode 8.0.0.
7770         * lib/unictype/numeric.c (uc_numeric_value): Adjust the level3
7771         value width.
7772         * lib/unilbrk/lbrktables.c (unilbrk_table): Implement LBP21b and
7773         a new case added to LBP22.
7774         * lib/uniwidth/width.c (nonspacing_table_data): Add U+08E3,
7775         U+A69E, U+FE2E..U+FE2F, U+111CA..U+111CC, U+11300,
7776         U+115DC..U+115DD, U+1171D..U+1171F, U+11722..U+11725,
7777         U+11727..U+1172B, U+1DA00..U+1DA36, U+1DA3B..U+1DA6C, U+1DA75,
7778         U+1DA84, U+1DA9B..U+1DA9F, and U+1DAA1..U+1DAAF.
7779         * tests/uniwidth/test-uc_width2.sh: Same updates as in
7780         lib/uniwidth/width.c.
7781         * all generated files under lib/uni* and tests/uni*: Regenerate.
7783 2015-06-16  Pádraig Brady  <P@draigBrady.com>
7785         gnu-web-doc-update: add --mirror to remove stale files
7786         * build-aux/gnu-web-doc-update: Add a --mirror option to remove
7787         out of date files from the CVS server.  Since this is usually
7788         appropriate, a prompt is given when the option is not specified,
7789         along with the `cvs remove` command that would be run.
7791 2015-06-06  Paul Eggert  <eggert@cs.ucla.edu>
7793         acl-permissions: pacify -Wsuggest-attribute=const
7794         Problem reported by Masanari Iida in: http://bugs.gnu.org/20753
7795         * lib/acl-internal.h (free_permission_context):
7796         Declare with attribute const if ! (defined USE_ACL &&
7797         (HAVE_ACL_GET_FILE || defined GETACL)).
7799         fsync: document AIX misbehavior
7800         * doc/posix-functions/fsync.texi (fsync):
7801         Document failure on AIX with read-only file descriptor.
7803 2015-06-05  Jonathan Perkin  <jperkin@joyent.com>  (tiny change)
7805         stdio: Don't redefine gets when using C++
7806         * lib/stdio.in.h (gets): Disable warning on C++.
7808 2015-06-05  Paul Eggert  <eggert@cs.ucla.edu>
7810         acl-permissions: port to AIX, C89 HP-UX
7811         Problems reported by Michael Felt.
7812         * lib/file-has-acl.c (file_has_acl) [HAVE_STATACL]:
7813         * lib/get-permissions.c (get_permissions) [USE_ACL && HAVE_STATACL]:
7814         * lib/readutmp.c (read_utmp) [UTMP_NAME_FUNCTION]:
7815         * lib/set-permissions.c (set_acls) [HAVE_ACLX_GET && ACL_AIX_WIP]:
7816         Add cast for AIX, whose system calls are declared to accept
7817         char * even though the arguments are really char const *.
7818         * lib/get-permissions.c (get_permissions):
7819         If USE_ACL && HAVE_GETACL /* HP-UX */, don't assume C99.
7820         If USE_ACL && HAVE_STATACL /* older AIX */, add missing decl
7821         that broke a build.
7822         * lib/mountlist.c (read_file_system_list) [MOUNTED_VMOUNT]:
7823         Rework types to pacify xlc.
7825 2015-06-03  Pádraig Brady  <P@draigBrady.com>
7827         vasprintf-posix: avoid compiling vasnprintf where possible
7828         * modules/vasprintf-posix: Avoid compiling the large vasnprintf
7829         module where not required.  For example on a GNU/Linux system
7830         when gnulib-tool is run with the --conditional-dependencies option.
7832 2015-06-02  Pádraig Brady  <P@draigBrady.com>
7834         file-has-acl: fix build on Mac OS X 10
7835         This reverts commit f1b37e3a which doesn't work on Mac OS X >= 10.4
7836         which has an incompatible 6 parameter getxattr() call.
7837         * doc/glibc-functions/getxattr.texi: Mention the divergent getxattr()
7838         call on Mac OS X >= 10.4.
7839         * doc/glibc-functions/fgetxattr.texi: Likewise.
7840         * lib/file-has-acl.c: Revert to more complete combined check.
7841         * m4/acl.m4 (gl_FILE_HAS_ACL): Likewise.
7842         Reported by Jack Howarth.
7844 2015-06-02  Pádraig Brady  <P@draigBrady.com>
7846         prefix-gnulib-mk: remove no longer needed special case
7847         * build-aux/prefix-gnulib-mk (prefix): Since commit e3704b9c,
7848         continued lib_SOURCES lines are no longer present,
7849         so special case handling of such entries is not required.
7851 2015-06-01  Pádraig Brady  <P@draigBrady.com>
7853         acl: don't depend on the deprecated qacl module
7854         * modules/acl (Depends-on): Use q{copy,set}-acl instead.
7856 2015-06-01  Pádraig Brady  <P@draigBrady.com>
7858         gnulib-tool: concatenate lib_SOURCES to a single line
7859         * gnulib-tool: Refactor the line merging sed logic,
7860         and use that to output a single lib_SOURCES line for each module.
7861         gnulib using projects often postprocess this output to prepend
7862         subdir paths to each item, and having a single line simplifies this
7863         processing allowing better decoupling from the gnulib-tool output.
7865 2015-06-01  Pavel Fedin  <p.fedin@samsung.com>
7867         pthread_sigmask: discount system version if a simple macro (trivial)
7868         MinGW64 has: #define pthread_sigmask(H, S1, S2) 0
7869         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Call the
7870         function to ensure it's available.
7872 2015-05-31  Pádraig Brady  <P@draigBrady.com>
7874         readlinkat: avoid OS X 10.10 trailing slash bug
7875         * doc/posix-functions/readlink.texi: Mention that OS X 10.10
7876         has this bug.
7877         * doc/posix-functions/readlinkat.texi: Likewise.  Also mention
7878         that OS X 10.10 has this function.
7879         * lib/readlinkat.c (rpl_readlinkat): Handle the trailing slash bug,
7880         as done for readlink().
7881         * m4/readlinkat.m4 (gl_FUNC_READLINKAT): Check for the readlink()
7882         trailing slash bug, and assume readlinkat() has the same issue.
7883         Also fix a typo where $gl_cv_decl_readlink_works was tested,
7884         rather than the correct $gl_cv_decl_readlinkat_works.
7886 2015-05-29  Andreas Gruenbacher  <andreas.gruenbacher@gmail.com>
7888         acl-permissions: Fix build on Mac OS X and older AIX (Bug#20681)
7889         * lib/set-permissions.c (set_acls): Fix more errors introduced in the acl
7890         module rewrite.
7892         acl-permissions: Fix build on Solaris and Cygwin
7893         Reported by Tom G. Christensen <tgc@jupiterrise.com>:
7894         * lib/set-permissions.c (set_acls): The count, entries, ace_count, and
7895         ace_entries variables have moved into struct permission_context but
7896         they were still accessed as local variables here.
7898 2015-05-29  Pádraig Brady  <P@draigBrady.com>
7900         linkat: avoid OS X 10.10 trailing slash with symlink bug
7901         On Darwin 14.3.0 linkat(,"path1",,"dangling_symlink/",)
7902         causes the symlink to be dereferenced, and if it points
7903         to a non existent file, that file will be created as
7904         a hard link to "path1".
7905         This fixes a test failure in test-linkat.c.
7906         * m4/linkat.m4 (gl_FUNC_LINKAT): Augment the test with
7907         this case.  The existing workaround in linkat.c for
7908         trailing slash issues, suffices for this case.
7909         * doc/posix-functions/linkat.texi: Add OS X 10.10 to
7910         the list of platforms with trailing slash issues.
7912 2015-05-28  Pádraig Brady  <P@draigBrady.com>
7914         unlinkat: handle ignoring of ".." on Darwin 14
7915         * lib/unlinkat.c: unlinkat() has the same bug as unlink()
7916         on Mac OS X 10.10, where it ignores paths with a trailing "..",
7917         so handle in the same manner.
7918         * m4/unlinkat.m4: Comment on this Darwin issue.
7919         * doc/posix-functions/unlink.texi: Update the latest version
7920         where the issue was seen.
7921         * doc/posix-functions/unlinkat.texi: Mention this issue.
7922         Fixes a test failure in test-unlinkat.c.
7924 2015-05-27  Paul Eggert  <eggert@cs.ucla.edu>
7926         qacl: split into qcopy-acl and qset-acl
7927         Emacs needs the former, but not the latter.
7928         * modules/acl-permissions: New file, containing most of the old qacl.
7929         * modules/file-has-acl (Depends-on): Depend on acl-permissions, not qacl.
7930         * modules/qacl: Now merely depends on qcopy-acl and qset-acl.
7931         * modules/qcopy-acl, modules/qset-acl: New files.
7932         * MODULES.html.sh (File system functions):
7933         Mention the new modules, and mention qacl while we're at it.
7935 2015-05-27  Glenn Morris  <rgm@gnu.org>
7937         gitlog-to-changelog: new option --ignore-line
7938         (This patch is imported from the GNU Emacs master.)
7939         This option ignores individual commit lines matching a pattern.
7940         * build-aux/gitlog-to-changelog: Add --ignore-line option.
7942 2015-05-27  Andreas Gruenbacher  <agruenba@redhat.com>
7944         qacl: Reimplement qset_acl and qcopy_acl (Bug#20666)
7945         Implement get_permissions and set_permissions primitives for getting all
7946         the permissions of a file, storing them, and later setting them. (In the
7947         minimal case, the permissions consist only of a file mode.) Reimplement
7948         qset_acl and qcopy_acl based on these new primitives: this avoids code
7949         duplication and makes error handling more consistent.
7950         The Solaris and Cygwin code still uses duplicate code paths for setting
7951         a file mode while making sure that no acls exist and setting an explicit
7952         acl; this is no worse than before, but could be cleaned up.  The AIX
7953         code still doesn't read ACLs, it only makes sure that acls don't get in
7954         the way when setting a file mode.
7955         * lib/acl-internal.h (struct permission_context): New data structure.
7956         (get_permissions, set_permissions, free_permission_context): Declare.
7957         * lib/acl-internal.c (free_permission_context): New helper function.
7958         * lib/get-permissions.c (get_permissions): New helper function split off
7959         from qcopy_acl.
7960         * lib/set-permissions.c: (set_acls_from_mode): On Solaris, Cygwin, and
7961         AIX, set a file's permissions based only on a file mode.
7962         (acl_from_mode, context_acl_from_mode, context_aclv_from_mode): All
7963         other platforms construct a temporary acl from the file mode and set
7964         that acl in the same way as setting an acl read from the source file.
7965         This should help avoid code duplication and inconsistent / buggy
7966         behavior.
7967         (set_acls): New helper function Split off from qcopy_acl.
7968         (chmod_or_fchmod): Moved here from qset-acl.c.
7969         (set_permissions): New helper function.
7970         * lib/qcopy-acl.c (qcopy_acl): Rewrite using get_permissions and
7971         set_permissions.
7972         * lib/qset-acl.c (qset_acl): Rewrite using set_permissions.
7973         * modules/qacl: Add get-permissions.c and set-permissions.c.
7975         file-has-acl: Split feature tests again (Bug#20667)
7976         * lib/file-has-acl.c: Instead of testing for
7977         XATTR_NAME_POSIX_ACL_ACCESS and XATTR_NAME_POSIX_ACL_DEFAULT,
7978         define them when needed.
7979         * m4/acl.m4 (gl_FILE_HAS_ACL): With that, Paul's
7980         GETXATTR_WITH_POSIX_ACLS change shouldn't be needed anymore.
7982 2015-05-27  Pádraig Brady  <P@draigBrady.com>
7984         string: fix build failure on BSD/OSX with FORTIFY_SOURCE
7985         This avoids a conflict with "FORTIFY_SOURCE" variants
7986         of the string functions when they're replaced on NetBSD-6.0.1
7987         and Darwin-14.3.0 at least.
7988         * lib/string.in.h: Avoid including our "lib/string.h" while
7989         including the system <string.h>.
7991 2015-05-26  Eric Blake  <eblake@redhat.com>
7993         stdio: limit __gnu_printf__ witness to gcc 4.4+
7994         * lib/error.h (_GL_ATTRIBUTE_SPEC_PRINTF): Move gcc version probe...
7995         * m4/stdio_h.m4 (gl_STDIO_H): ...here.
7997         error: use correct printf attributes on mingw
7998         * lib/stdio.in.h (_GL_ATTRIBUTE_SPEC_PRINTF): New define.
8000         inttypes: force correct mingw PRIdMAX even without <stdio.h>
8001         * modules/inttypes (Depends-on): Require extensions, so that mingw
8002         always uses GNU style inttypes.
8003         * lib/inttypes.in.h: On mingw, include <stdio.h>.
8005         stdio: fix probe on mingw under gcc 5.1
8006         * m4/stdio_h.m4 (gl_STDIO_H): Change to compile test, to work
8007         around new gcc preprocessor rules.
8009 2015-05-07  Glenn Morris  <rgm@gnu.org>
8011         gitlog-to-changelog: parse "Tiny-change"
8012         * build-aux/gitlog-to-changelog: Treat "Tiny-change" like
8013         "Copyright-paperwork-exempt".  (Bug#20324)
8015 2015-05-06  Pádraig Brady  <P@draigBrady.com>
8017         doc: document glibc posix_fallocate() issues
8018         * doc/posix-functions/posix_fallocate.texi: Mention the
8019         glibc efficiency problems and issues with NFS.
8021 2015-05-05  Karl Berry  <karl@freefriends.org>
8023         * build-aux/gendocs.sh (usage): document new css default
8024         for HTML (--htmlarg).
8026 2015-04-29  Paul Eggert  <eggert@cs.ucla.edu>
8028         extern-inline: no need for workaround in GCC 5.1
8029         * doc/extern-inline.texi (extern inline):
8030         * m4/extern-inline.m4 (gl_EXTERN_INLINE):
8031         GCC bugs 54113 and 63877 are fixed in GCC 5.1, so don't work
8032         around these bugs in GCC 5.1 and later.  Maybe in a decade or
8033         two we can remove these workarounds.
8035 2015-04-28  Pádraig Brady  <P@draigBrady.com>
8037         eealloc, pagealign_alloc, xalloc: avoid clang warnings
8038         Avoid [-Wunknown-attributes] warnings like:
8039         warning: unknown attribute '__alloc_size__' ignored
8040         * lib/xalloc.h: Don't use the __alloc_size__  attribute
8041         with clang, as support has been fully removed as of clang 3.5:
8042         https://github.com/llvm-mirror/clang/commit/c047507a
8043         * lib/eealloc.h: Likewise.
8044         * lib/pagealign_alloc.h: Likewise.
8046 2015-04-27  Paul Eggert  <eggert@cs.ucla.edu>
8048         tests: pacify GCC 5.1's stricter printf checking
8049         * tests/test-dirname.c (main):
8050         * tests/test-getaddrinfo.c (simple):
8051         * tests/test-getlogin.c (main):
8052         * tests/test-getndelim2.c (main):
8053         * tests/test-inttostr.c (CK):
8054         * tests/test-md5.c (main):
8055         * tests/test-read-file.c (main):
8056         * tests/test-sha1.c (main):
8057         Fix mismatches between printf format and value signedness.
8058         * tests/test-inttostr.c (FMT, CAST_VAL, V_min, V_max):
8059         Remove, as CAST_VAL always returned a value of type uintmax_t.
8061         fts: port to GCC 5.1 with --enable-gcc-warnings
8062         Without this fix, GCC 5.1 (correctly) warns about a subscript
8063         error on the fts_name component of FTSENT.  It's actually a
8064         flexible member, so define it that way on C99 or later hosts.
8065         * lib/fts.c (fts_alloc): Use offsetof, not sizeof, for a
8066         structure that now has a flexible array member.
8067         * lib/fts_.h (__FLEXIBLE_ARRAY_MEMBER): New macro.
8068         (FTSENT): fts_name is now flexible on C99-or-later platforms.
8069         * modules/fts (Depends-on): Add flexmember.
8071 2015-04-26  Paul Eggert  <eggert@cs.ucla.edu>
8073         file-has-acl: port to CentOS 6
8074         Problem reported by Tom G. Christensen in:
8075         http://lists.gnu.org/archive/html/bug-gnulib/2015-04/msg00074.html
8076         * lib/file-has-acl.c: Use GETXATTR_WITH_POSIX_ACLS instead of a
8077         combination of HAVE_SYS_XATTR_H, HAVE_LINUX_XATTR_H, and
8078         HAVE_GETXATTR.
8079         * m4/acl.m4 (gl_FILE_HAS_ACL): Test fot the entire combination of
8080         linux/xattr.h, sys/xattr.h, getxattr, XATTR_NAME_POSIX_ACL_ACCESS,
8081         and XATTR_NAME_POSIX_ACL_DEFAULT, since that's what
8082         file-has-acl.c actually needs.
8084 2015-04-26  Pádraig Brady  <P@draigBrady.com>
8086         file-has-acl: always return false when ACLs aren't supported
8087         * lib/file-has-acl.c (file_has_acl): Consistent with other paths,
8088         change the GNU/Linux getxattr path, to transform "not supported"
8089         errors to a false return rather than an error.  This is handled
8090         within file_has_acl() due to the platform specific tests to
8091         determine if ACLs are not supported.
8093 2015-04-25  Paul Eggert  <eggert@cs.ucla.edu>
8095         gettext: propagate po/Makefile.in.in too
8096         * build-aux/po/Makefile.in.in: Copy from latest gettext.
8097         * config/srclist.txt: In build-aux/po, copy Makefile.in.in and
8098         remove-potcdate.sin from $GETTEXT.  This fixes a version mismatch
8099         between Makefile.in.in and the gettext-runtime m4 files.
8101 2015-04-24  Paul Eggert  <eggert@cs.ucla.edu>
8103         file-has-acl: new module, split from acl
8104         And add a new module file-has-acl-tests to match.
8105         I ran into a problem with the recent changes to the acl module,
8106         as they introduced a typo 'test use_xattrs = 0' into 'configure'.
8107         When using the fixed version with Emacs, I discovered that
8108         file-has-acl wasn't separated out well enough for Emacs (e.g., it
8109         had multiple libraries, but needed only one), so I fixed that too.
8110         * NEWS: Document this incompatible change.
8111         * modules/file-has-acl, modules/file-has-acl-tests: New files.
8112         * m4/acl.m4 (gl_FUNC_ACL_ARG): New macro, split from gl_FUNC_ACL.
8113         Initialize gl_need_lib_has_acl.
8114         (gl_FUNC_ACL): Require it.
8115         Simplify use of 'test'.  Set LIB_HAS_ACL if gl_need_lib_has_acl.
8116         Move the file-has-acl.c-relevant stuff to ...
8117         (gl_FILE_HAS_ACL): ... this new macro.  Rewrite to fix 'test
8118         use_xattrs = 0' typo, and omit some needless work.  Set
8119         gl_need_lib_has_acl=1 if we'll need LIB_HAS_ACL to be set
8120         when gl_FUNC_ACL is called.
8121         * modules/acl (Files, lib_SOURCES): Remove lib/file-has-acl.c.
8122         (Link): Remove $(LIB_HAS_ACL).
8123         * modules/acl-tests (Files, Depends-on, configure.ac, TESTS)
8124         (check_PROGRAMS): Move stuff relevant to file-has-acl to
8125         modules/file-has-acl-tests.
8126         (test_file_has_acl_LDADD): Move to modules/file-has-acl-tests.
8128         manywarnings: add GCC 5.1 warnings
8129         * build-aux/gcc-warning.spec: Add -Wabi=, -Warray-bounds,
8130         -Warray-bounds=, -Wc++14-compat, -Wc90-c99-compat,
8131         -Wc99-c11-compat, -Wshadow-ivar, -Wsized-deallocation,
8132         -Wsuggest-override, -Wuse-without-only.  Change
8133         -Wnormalized=... operands to match 5.1.
8134         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Add -Wbool-compare,
8135         -Wchkp, -Wdesignated-init, -Wdiscarded-array-qualifiers,
8136         -Wdiscarded-qualifiers, -Wformat-signedness,
8137         -Wincompatible-pointer-types, -Wint-conversion,
8138         -Wlogical-not-parentheses, -Wmemset-transposed-args, -Wodr,
8139         -Wshift-count-negative, -Wshift-count-overflow,
8140         -Wsizeof-array-argument, -Wsuggest-final-methods,
8141         -Wsuggest-final-types, -Wswitch-bool.  Remove -Warray-bounds,
8142         and add -Warray-bounds=2 as a special case.
8144 2015-04-21  Simon Josefsson  <simon@josefsson.org>
8146         doc: update FDL template to match FDL examples.
8147         * doc/alloca-opt.texi:
8148         * doc/alloca.texi:
8149         * doc/c-ctype.texi:
8150         * doc/c-strcase.texi:
8151         * doc/c-strcaseeq.texi:
8152         * doc/c-strcasestr.texi:
8153         * doc/c-strstr.texi:
8154         * doc/c-strtod.texi:
8155         * doc/c-strtold.texi:
8156         * doc/ctime.texi:
8157         * doc/error.texi:
8158         * doc/gcd.texi:
8159         * doc/gnulib-tool.texi:
8160         * doc/inet_ntoa.texi:
8161         * doc/intprops.texi:
8162         * doc/lib-symbol-visibility.texi:
8163         * doc/maintain.texi:
8164         * doc/parse-datetime.texi:
8165         * doc/quote.texi:
8166         * doc/regexprops-generic.texi:
8167         * doc/standards.texi: Remove spurious 'with' in FDL license
8168         template.
8170 2015-04-21  Paul Eggert  <eggert@cs.ucla.edu>
8172         lstat: fix cross-compilation 'ln -s' problem
8173         * m4/lstat.m4 (gl_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK):
8174         Have the test program call 'symlink' rather than a separate
8175         script run 'ln -s'; this is more likely to work in
8176         cross-compilation environments.  Reported by Pavel Fedin in:
8177         http://lists.gnu.org/archive/html/bug-gnulib/2015-04/msg00060.html
8179 2015-04-16  Ludovic Courtès  <ludo@gnu.org>
8181         gendocs.sh: default to a common CSS style sheet for HTML output
8182         * build-aux/gendocs.sh (htmlarg): Change default value.
8184 2015-04-15  Mats Erik Andersson  <gnu@gisladisker.se>
8186         gnulib-tool: output bold attribute more portably
8187         * gnulib-tool (func_show_module_list): Change hexadecimal
8188         numbers to octal in BOLD_ON and BOLD_OFF.  The use of hex
8189         encoded numbers as arguments to `printf' is not portable,
8190         and is not claimed by POSIX.  This is the case with FreeBSD.
8192 2015-04-15  Andreas Gruenbacher  <andreas.gruenbacher@gmail.com>
8194         qacl: Simplify HP-UX acl_nontrivial check
8195         * lib/acl-internal.c: Remove struct stat parameter from HP-UX's version of
8196         acl_nontrivial. Check if the acl has at most three entries instead (it must
8197         have exactly three entries according to the HP-UX documentation). Ignore
8198         uids and gids as long as an entry is either for a user (i.e., the owner),
8199         a group (i.e., the owning group), or others.
8200         * lib/acl-internal.h: Change HP-UX's acl_nontrivial prototype.
8201         * lib/qcopy-acl.c (qcopy_acl): With that, we no longer need to stat the file.
8203 2015-04-15  Andreas Gruenbacher   <andreas.gruenbacher@gmail.com>
8205         acl: On Linux, check for acls without libacl
8206         On Linux, use the getxattr syscall instead of the acl_extended_file libacl
8207         library function to check for the presence of acls, avoiding a library.
8208         * lib/file-has-acl.c: Include xattr headers if we have them.
8209         (file_has_acl): On Linux, use getxattr().
8210         * m4/acl.m4 (gl_FUNC_ACL): Define LIB_HAS_ACL as the libraries to link with for
8211         file_has_acl(). Check for xattr headers and getxattr().
8213 2015-04-14  Ángel González  <keisial@gmail.com>
8215         tempname: avoid unused parameter warnings (trivial)
8216         * lib/tempname.c (try_dir): Tag with __GL_UNUSED.
8217         (try_nocreate): Likewise.
8219 2015-04-14  HIRAMATSU Yoshifumi  <hiramatu@boreas.dti.ne.jp>
8221         fseeko: fix build failure on NetBSD >= 6 (trivial)
8222         * lib/fseeko.c (feeko): NetBSD 6 changed the definition of _offset
8223         from 'fpos_t struct' to __off_t, which is a typedef of __int64_t.
8225 2015-04-09  Paul Eggert  <eggert@cs.ucla.edu>
8227         gitlog-to-changelog: port to MS-Windows
8228         * build-aux/gitlog-to-changelog (git_dir_option):
8229         Use strftime with "%Y-%m-%d", not "%F", to avoid a bug in
8230         MS-Windows Perl.  Reported by Eli Zaretskii in:
8231         http://lists.gnu.org/archive/html/emacs-devel/2015-04/msg00504.html
8233 2015-04-07  Karl Berry  <karl@gnu.org>
8235         gendocs: new option --tex for passing args to texi2dvi.
8236         * build-aux/gendocs.sh: new option --tex, default -t @finalout.
8237         (TEXI2DVI): cut to just command name.
8238         (usage): mention new option, and update copyright.
8239         <generate_tex>: use it.
8241 2015-04-07  Karl Berry  <karl@gnu.org>
8243         * config/srclistvars.sh (GETTEXT): new definition.
8244         * config/srclist.txt: use it for gettext .m4 files.
8245         Thread starting at http://lists.gnu.org/archive/html/bug-gnulib/201
8246         and confirmed at http://lists.gnu.org/archive/html/bug-gnulib/2015-02/msg00146.html
8247         and continuing into April.
8249 2015-04-07  Daiki Ueno  <ueno@gnu.org>
8251         uniname/uniname-tests: fix failure due to alias
8252         Reported by Jack Howarth in:
8253         <https://lists.gnu.org/archive/html/bug-libunistring/2015-04/msg00000.html>.
8254         * tests/uniname/test-uninames.c (name_has_alias): New function.
8255         (test_inverse_lookup): Exclude character name with valid alias,
8256         from randomly generated character names.
8257         (main): Fill unicode_aliases before calling test functions.
8259 2015-04-03  Giuseppe Scrivano  <gscrivan@redhat.com>
8261         hash: remove deprecated hash_insert0 function
8262         * lib/hash.h (hash_insert0): Remove deprecated function.
8263         * lib/hash.c (hash_insert0): Likewise.
8265 2015-04-02  Pádraig Brady  <P@draigBrady.com>
8267         mountlist: remove dependency on libmount
8268         * lib/mountlist.c (read_file_system_list): Parse /proc/self/mountinfo
8269         directly, rather than depending on libmount, which has many
8270         dependencies due to its dependence on libselinux, as detailed at:
8271         http://lists.gnu.org/archive/html/bug-gnulib/2015-01/msg00063.html
8272         Note we restrict this to __linux__ as that's probably where this
8273         interface will remain.  If ever porting, it would be best
8274         to first pull the makedev() wrapper from coreutils to a gnulib module.
8275         Note also we don't add a getline dependency to the mountlist module,
8276         as all Linux versions are sufficient.
8278 2015-04-02  Paul Eggert  <eggert@cs.ucla.edu>
8280         stddef: port to pre-C11 GCC on x86
8281         On this platform, max_align_t should have an alignment of 8 even
8282         though the storage alignments of double, long, etc. max out at 4.
8283         Inspired by a comment of Andreas Schwab's here:
8284         https://sourceware.org/ml/libc-alpha/2015-04/msg00017.html
8285         * lib/stddef.in.h (_GL_STDDEF_ALIGNAS) [!HAVE_MAX_ALIGN_T]: New macro.
8286         (max_align_t) [!HAVE_MAX_ALIGN_T]: Use it.
8287         * tests/test-stddef.c: Test __alignof__ too, if available.
8289 2015-03-24  Pádraig Brady  <P@draigBrady.com>
8291         quotearg-simple-tests: add missing gl_FUNC_MMAP_ANON dependency
8292         * modules/quotearg-simple-tests: Reference m4/mmap-anon.m4
8294 2015-03-24  Tobias Stoeckmann  <tobias@stoeckmann.org>
8296         yesno: make EOL optional in ENABLE_NLS case also (trival)
8297         * lib/yesno.c (yesno): Check for EOL before replacing.
8298         * tests/test-yesno.sh: Add a test case (test along with gettext).
8300 2015-03-22  Paul Eggert  <eggert@cs.ucla.edu>
8302         fdopendir-tests: test it does not close its arg
8303         * tests/test-fdopendir.c (main): Test that fdopendir does not
8304         close its argument.  From a suggestion by David Grayson in:
8305         http://lists.gnu.org/archive/html/bug-gnulib/2015-03/msg00039.html
8307 2015-03-20  Paul Eggert  <eggert@cs.ucla.edu>
8309         gitlog-to-changelog: trim trailing white space
8310         * build-aux/gitlog-to-changelog (main):
8311         Trim trailing white space from commit message lines.
8312         This is helpful for processing the GNU Emacs repository,
8313         which dates back to 1985 and contains a lot of such lines.
8315         gitlog-to-changelog: new option --ignore-matching
8316         * build-aux/gitlog-to-changelog (usage, git_dir_option, main):
8317         Support new option --ignore-matching=PAT, which ignores all
8318         commit messages whose first line matches PAT.
8320 2015-03-19  Paul Eggert  <eggert@cs.ucla.edu>
8322         fdopendir: port better to MinGW
8323         * lib/fdopendir.c (fd_clone_opendir) [REPLACE_FCHDIR]:
8324         Use 'dup' if dirfd fails.  Suggested by Eli Zaretskii in:
8325         http://lists.gnu.org/archive/html/bug-gnulib/2015-03/msg00033.html
8326         * modules/fdopendir (Depends-on): Add dirfd.
8328 2015-03-18  Paul Eggert  <eggert@cs.ucla.edu>
8330         fdopendir: fix typo in comment
8331         * lib/fdopendir.c (fdopendir_with_dup): REPLACE_FCHDIR was misspelled.
8333 2015-03-09  Eric Blake  <eblake@redhat.com>
8335         error: document all entry points provided
8336         * doc/glibc-functions/error_print_progname.texi
8337         (error_print_progname): Mention the error module.
8338         * doc/glibc-functions/error_at_line.texi (error_at_line):
8339         Likewise.
8340         * doc/glibc-functions/error_message_count.texi
8341         (error_message_count): Likewise.
8342         * doc/glibc-functions/error_one_per_line.texi
8343         (error_one_per_line): Likewise.
8345 2015-03-03  Paul Eggert  <eggert@cs.ucla.edu>
8347         vasnprintf: pacify clang 3.5.0
8348         Problem reported by Werner Lemberg in:
8349         http://lists.gnu.org/archive/html/bug-gnulib/2015-03/msg00000.html
8350         * lib/vasnprintf.c (VASNPRINTF): Omit casts that clang objects to.
8351         The casts aren't needed, since the characters in question are ASCII.
8353 2015-02-24  Paul Eggert  <eggert@cs.ucla.edu>
8355         glob, etc.: port to MSVC v18 on MS-Windows 8.1
8356         * lib/dirent--.h (GNULIB_defined_opendir):
8357         * lib/dirent.in.h (GNULIB_defined_opendir)
8358         (GNULIB_defined_closedir):
8359         * lib/getcwd.c, lib/glob.c, lib/mountlist.c (opendir, closedir):
8360         #undef only if Gnulib defined it.
8362         poll: port to MSVC v18 on MS-Windows 8.1
8363         Problem reported by Gisle Vanem in:
8364         http://lists.gnu.org/archive/html/bug-gnulib/2015-02/msg00139.html
8365         * lib/poll.c: Always include <sys/select.h> and <sys/socket.h>.
8366         * modules/poll (Depends-on) [!HAVE_POLL || REPLACE_POLL]:
8367         Add sys_socket.
8369 2015-02-24  Pádraig Brady  <P@draigBrady.com>
8371         tests: support stderr verification with returns_()
8372         * tests/init.sh (returns_): Disable tracing for this wrapper
8373         function, so that stderr of the wrapped command is unchanged,
8374         allowing for verification of the contents.
8376 2015-02-24  Pavel Hrdina  <phrdina@redhat.com>
8378         passfd: avoid valgrind uninitalised data warning
8379         * lib/passfd.c (sendfd): Reset the msg_controllen of msghdr,
8380         to include just the fd we've initialized, rather than including
8381         the extra space used for alignment.
8383 2015-02-23  Paul Eggert  <eggert@cs.ucla.edu>
8385         uniwbrk/u32-wordbreaks-tests: fix copyright
8386         * tests/uniwbrk/test-uc-wordbreaks.c: Fix copyright date.
8388         dup2: doc and test for Android bug
8389         Reported by Kevin Cernekee in:
8390         http://lists.gnu.org/archive/html/bug-gnulib/2015-02/msg00125.html
8391         * doc/posix-functions/dup2.texi (dup2): Document the bug.
8392         * m4/dup2.m4 (gl_FUNC_DUP2): Test for the bug.
8394 2015-02-23  Kevin Cernekee  <cernekee@google.com>
8396         Replace dup2() on Android
8397         * m4/dup2.m4 (gl_FUNC_DUP2): Android implements dup2() using dup3().
8398         Since dup3(fd, fd) fails but dup2(fd, fd) should pass, test-dup2
8399         fails.  Using rpl_dup2() fixes this because it has an explicit test
8400         for this condition.
8402 2015-02-22  Paul Eggert  <eggert@cs.ucla.edu>
8404         Android doesn't define RLIM_SAVED_*
8405         Portability problem reported by Kevin Cernekee in:
8406         http://lists.gnu.org/archive/html/bug-gnulib/2015-02/msg00122.html
8407         * doc/posix-headers/sys_resource.texi (sys/resource.h):
8408         Mention the portability problem.
8409         * lib/getdtablesize.c (RLIM_SAVED_CUR, RLIM_SAVED_MAX):
8410         Define if not defined.
8411         * m4/dup2.m4 (gl_FUNC_DUP2):
8412         * m4/fcntl.m4 (gl_FUNC_FCNTL):
8413         Likewise.
8415 2015-02-21  Paul Eggert  <eggert@cs.ucla.edu>
8417         vasnprintf-posix-tests: use consistent test
8418         * tests/test-vasnprintf-posix.c (test_function):
8419         Use "<" in assert instead of "<=", for consistency with other tests.
8421 2015-02-20  Paul Eggert  <eggert@cs.ucla.edu>
8423         printf, isinf, etc.: noncanonical != NaN
8424         Do not require that isinf, printf, etc. treat noncanonical
8425         values as NaNs.  Instead, require only that they do not crash.
8426         Problem reported by Joseph Myers in:
8427         https://sourceware.org/ml/libc-alpha/2015-02/msg00244.html
8428         * doc/posix-functions/dprintf.texi (dprintf):
8429         * doc/posix-functions/fprintf.texi (fprintf):
8430         * doc/posix-functions/isfinite.texi (isfinite):
8431         * doc/posix-functions/isinf.texi (isinf):
8432         * doc/posix-functions/isnan.texi (isnan):
8433         * doc/posix-functions/printf.texi (printf):
8434         * doc/posix-functions/snprintf.texi (snprintf):
8435         * doc/posix-functions/sprintf.texi (sprintf):
8436         * doc/posix-functions/vdprintf.texi (vdprintf):
8437         * doc/posix-functions/vfprintf.texi (vfprintf):
8438         * doc/posix-functions/vprintf.texi (vprintf):
8439         * doc/posix-functions/vsnprintf.texi (vsnprintf):
8440         * doc/posix-functions/vsprintf.texi (vsprintf):
8441         Document this.
8442         * m4/isfinite.m4 (gl_ISFINITEL_WORKS):
8443         * m4/isinf.m4 (gl_ISINFL_WORKS):
8444         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS):
8445         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE):
8446         * tests/test-isfinite.c (test_isfinitel):
8447         * tests/test-isinf.c (test_isinfl):
8448         * tests/test-isnan.c (test_long_double):
8449         * tests/test-isnanl.h (main):
8450         * tests/test-snprintf-posix.h (test_function):
8451         * tests/test-sprintf-posix.h (test_function):
8452         * tests/test-vasnprintf-posix.c (test_function):
8453         * tests/test-vasprintf-posix.c (test_function):
8454 o       Test only that noncanonical values do not cause crashes, not that
8455         they are treated as NaNs.  In some cases this means a larger
8456         output buffer is needed.
8458 2015-02-20  Jaroslav Skarvada  <jskarvad@redhat.com>
8460         fts: remove redundant close() (trivial)
8461         * lib/fts.c (fts_read): Remove redundant call to close().
8462         Spotted by coverity.
8464 2015-02-20  Paul Eggert  <eggert@cs.ucla.edu>
8466         getdtablesize: port better for Android
8467         Problem reported by Kevin Cernekee in:
8468         http://lists.gnu.org/archive/html/bug-gnulib/2015-02/msg00112.html
8469         * doc/glibc-functions/getdtablesize.texi (getdtablesize): Mention bug.
8470         * lib/getdtablesize.c (getdtablesize): Don't fall back on _SC_OPEN_MAX.
8471         Instead, just use getrlimit, taking care to avoid Cygwin bug.
8473         poll: fixes for large fds
8474         * lib/poll.c (poll): Don't check directly for NFD too large.
8475         Don't rely on undefined behavior in FD_SET when an arg exceeds
8476         FD_SETSIZE.  Always set revents afterwards, even if to zero.
8477         * tests/test-poll.c (poll1): Set revents to -1 instead of 0,
8478         as that makes the test a bit stricter.
8480 2015-02-19  Kevin Cernekee  <cernekee@google.com>
8482         fcntl: Fix cross compiling
8483         * m4/fcntl.m4 (gl_FUNC_FCNTL): Assign the guessed result to the
8484         correct variable name (gl_cv_func_fcntl_f_dupfd_works).
8486 2015-02-18  Paul Eggert  <eggert@cs.ucla.edu>
8488         dup2, fcntl: cross-compile better for Android
8489         Problem reported by Kevin Cernekee in:
8490         http://lists.gnu.org/archive/html/bug-gnulib/2015-02/msg00109.html
8491         * m4/dup2.m4 (gl_FUNC_DUP2): Don't guess no when cross-compiling
8492         for a Linux kernel.  That kernel bug was fixed on 2009-05-11, and
8493         there's little need to cross-compile for older kernels nowadays.
8494         * m4/fcntl.m4 (gl_FUNC_FCNTL): When cross-compiling, guess no only
8495         for systems where the bug is known to occur (AIX, Cygwin, Haiku).
8497 2015-02-18  Pádraig Brady  <P@draigBrady.com>
8499         getopt: don't crash on memory exhaustion
8500         * lib/getopt.c (_getopt_internal_r): Use degraded diagnostics on
8501         memory exhaustion.  In the _LIBC case we use alloca() as is
8502         already done in glibc, so we don't need to consider the separate
8503         error path in that awkward case.  Also fix a memory leak when
8504         ambiguous options are present.
8505         Reported by Tobias Stoeckmann
8507 2015-02-17  Mike Miller  <mtmiller@ieee.org>
8509         tempname: allow compilation with C++ (trivial)
8510         * lib/tempname.h [C++]: Specify extern "C" linkage.
8511         * lib/tempname.h (try_tempname):
8512         * lib/tempname.c (__try_tempname, __gen_tempname):
8513         Rename 'try' to 'tryfunc'.
8515 2015-02-17  Paul Eggert  <eggert@cs.ucla.edu>
8517         dup2, fcntl: port to AIX
8518         * m4/dup2.m4 (gl_FUNC_DUP2):
8519         * m4/fcntl.m4 (gl_FUNC_FCNTL):
8520         Prefer getrusage (RLIM_NOFILE ...)/rlim_cur to sysconf (_SC_OPEN_MAX).
8521         The former works on AIX 7.1 but the latter does not.
8522         Also, this may work better with Android; see:
8523         http://lists.gnu.org/archive/html/bug-gnulib/2015-02/msg00100.html
8525 2015-02-16  Paul Eggert  <eggert@cs.ucla.edu>
8527         getdtablesize, dup2, fcntl: port to Android
8528         Problem reported by Kevin Cernekee in:
8529         http://lists.gnu.org/archive/html/bug-gnulib/2015-02/msg00092.html
8530         * doc/glibc-functions/getdtablesize.texi (getdtablesize):
8531         Mention that getdtablesize doesn't work on Android.
8532         * lib/getdtablesize.c: Use getrlimit substitute only if
8533         getdtablesize is declared.  This should suffice for Cygwin
8534         while not breaking Android.
8535         * m4/dup2.m4 (gl_FUNC_DUP2):
8536         * m4/fcntl.m4 (gl_FUNC_FCNTL):
8537         Prefer sysconf (_SC_OPEN_MAX) to getdtablesize, as the former is
8538         standardized but the latter is not, and sysconf works on Android.
8539         * m4/getdtablesize.m4 (gl_FUNC_GETDTABLESIZE):
8540         Also check that getdtablesize is declared.
8541         This removes the need for a special case for Android.
8543 2015-02-16  Kevin Cernekee  <cernekee@google.com>
8545         localename: Implement gl_locale_name_thread_unsafe for Android
8546         * lib/localename.c: Android API level >= 21 supports two hardcoded
8547         locales: C (POSIX) and C.UTF-8.  Distinguish them by checking
8548         the internal __locale_t struct.
8550 2015-02-16  Kamil Dudka  <kdudka@redhat.com>
8552         fts: avoid crash when a cycle is added while traversing
8553         This could be triggered by auto-mounting a recursive bind mount.
8554         Reported by Michael Chapman in: https://bugzilla.redhat.com/1188498
8555         * lib/fts.c (fts_read): Avoid removing the original hash table item
8556         when leaving a directory that caused a cycle, and preserve the FTS_DC
8557         flag.
8559 2015-02-16  Daiki Ueno  <ueno@gnu.org>
8561         uniname/uniname: support character alias
8562         * lib/uniname/gen-uninames.lisp (main): New argument ALIASFILE.
8563         Generate one-way mapping from aliases to codepoints in the
8564         generated tables.  Special case variation selectors to reduce
8565         table size.
8566         * lib/uniname/uniname.c (unicode_character_name): Special case
8567         variation selectors.
8568         (unicode_name_character): Special case variation selectors and
8569         their aliases.
8570         * lib/uniname/uninames.h: Regenerate.
8571         * tests/uniname/NameAliases.txt: New file, taken from UCD 7.0.0.
8572         * modules/uniname/uniname-tests (Files): Add
8573         tests/uniname/NameAliases.txt.
8574         * tests/uniname/test-uninames.c: Mark as static.
8575         (ALIASLEN): Define.
8576         (struct unicode_alias): New struct.
8577         (unicode_aliases): New variable.
8578         (fill_aliases): New function.
8579         (test_alias_lookup): New test function.
8580         (main): Run the 'test_alias_lookup' test if the second argument is
8581         given.
8582         * tests/uniname/test-uninames.sh: Supply NameAliases.txt as the
8583         second argument.
8585 2015-02-11  Kevin Cernekee  <cernekee@google.com>
8587         Fix FILE struct compatibility with Android API level >= 21
8588         * lib/stdio-impl.h: Test explicitly for __ANDROID__ instead of
8589         __sferror.  Recent versions of Bionic's stdio.h no longer define
8590         __sferror.
8591         * lib/fbufmode.c: Likewise.
8592         * lib/fflush.c: Likewise.
8593         * lib/fpurge.c: Likewise.
8594         * lib/freadable.c: Likewise.
8595         * lib/freadahead.c: Likewise.
8596         * lib/freading.c: Likewise.
8597         * lib/freadptr.c: Likewise.
8598         * lib/freadseek.c: Likewise.
8599         * lib/fseeko.c: Likewise.
8600         * lib/fseterr.c: Likewise.
8601         * lib/fwritable.c: Likewise.
8603         Assume unbroken ungetc() on Android
8604         * m4/ungetc.m4: Add Android case to host OS check.  The ungetc()
8605         test case passed when running on an Android host, and the code
8606         hasn't really changed since 2009.
8608         getdtablesize: Fix Android build
8609         * m4/getdtablesize.m4: Add Android case to host OS check.  Recent NDK
8610         versions have this symbol in the .so library (at least 32-bit
8611         platforms) but are missing the declaration in the header file,
8612         causing the m4 logic to guess incorrectly.
8614         localename: Fix Android build
8615         * modules/localename (Depends-on): Add langinfo.
8617         getugroups: Fix Android build
8618         * lib/getugroups.c: Don't reference unsupported {get,set,end}grent
8619         functions.
8621         euidaccess: Fix Android build
8622         * modules/euidaccess (Depends-on): Add fcntl-h to ensure that
8623         AT_EACCESS gets declared.
8625         linkat_nofollow: Add fallback case for cross compiling
8626         * m4/linkat.m4: Guess no for Darwin, yes otherwise.
8628         net_if: Handle content-free <net/if.h> system headers
8629         * m4/net_if_h.m4: Check to make sure <net/if.h> actually defines
8630         struct if_nameindex.  If not, enable the replacement header.
8632         signal_h: Fix Android build
8633         * lib/signal.in.h: Add Android to the list of platforms that declare
8634         pthread_sigmask() in <pthread.h> instead of <signal.h>.
8636         duplocale: Fix Android build of duplocale-tests
8637         * modules/duplocale-tests (Depends-on): Add langinfo, as the header
8638         is included by test-duplocale.c (but not by duplocale.c).
8639         * modules/duplocale-tests (configure.ac): Check for monetary.h.
8640         * tests/test-duplocale.c: Skip test if monetary.h is absent.
8641         * doc/posix-headers/monetary.texi: Add Android to the list of
8642         platforms missing monetary.h.
8644 2015-02-11  Pádraig Brady  <P@draigBrady.com>
8646         tests: avoid recent -Werror=unused-variable regression in test-locale
8647         * tests/test-locale.c (main): Reference the variable to avoid the
8648         "unused variable" warning.
8650 2015-02-11  Pádraig Brady  <P@draigBrady.com>
8652         maint: various whitespace cleanups in tempname
8653         * lib/tempname.c: Normalize spacing and line length.
8654         * lib/tempname.h: Likewise.
8655         * modules/tempname: Likewise.
8657 2015-02-11  Pádraig Brady  <P@draigBrady.com>
8659         tests: provide returns_() to simplify exit status checking
8660         * tests/init.sh (returns_): A new function for use in tests,
8661         to allow for easier checking of return values, where you expect
8662         a command to exit with failure status.  By checking for a particular
8663         exit code, you don't hide any crashes for example.
8665 2015-02-11  Pádraig Brady  <P@draigBrady.com>
8667         mountlist: only use libmount when specified
8668         There are currently many shared libs dependencies introduced by
8669         libmount with associated runtime and virt mem overhead.
8670         Therefore don't enable by default.
8671         * m4/ls-mntd-fs.m4: Use --with-libmount to enable at build time.
8673 2015-02-08  Daiki Ueno  <ueno@gnu.org>
8675         uniname/unimame-tests: don't link with -lunistring
8676         * modules/uniname/uniname-tests (Makefile.am): Don't link against
8677         $(LIBUNISTRING).  Document the rationale why we need to
8678         conditionalize the test.
8680 2015-02-07  Paul Eggert  <eggert@cs.ucla.edu>
8682         fstrcmp: don't assume strlen < INT_MAX
8683         * lib/fstrcmp.c: Include stddef.h and stdint.h.
8684         (uintptr_t): Remove, as we're now assuming stdint.
8685         (OFFSET, EXTRA_CONTEXT_FIELDS, fstrcmp_bounded):
8686         Prefer ptrdiff_t to int when the value could exceed INT_MAX
8687         if the input string is long.
8688         (fstrcmp_bounded): Check for size-calculation overflow.  Prefer
8689         uintptr_t to size_t when the underlying value is a pointer casted
8690         to an unsigned integer.  Avoid unnecessary 'buffer != NULL' test.
8691         * modules/fstrcmp (Depends-on): Add stdint.
8693         diffseq: prefer ptrdiff_t to ssize_t
8694         * lib/diffseq.h: In commentary, prefer ptrdiff_t to ssize_t.
8695         ptrdiff_t is the natural type for signed indexes.
8696         On a few older platforms, ssize_t is narrower than size_t.
8698         xalloc: fix typo that suppressed warnings
8699         * lib/xalloc.h: Add missing _GL_INLINE_HEADER_END.
8700         This typo, introduced a couple of years ago, mistakenly suppressed
8701         some -Wsuggest-attribute=const, -Wmissing-prototypes, and
8702         -Wmissing-declarations warnings.
8704         full-read: fix license notice typo
8705         * lib/full-read.h: Remove a stray line in the license notice.
8706         Reported by Sam Ellis in: http://bugs.gnu.org/19808
8708         crypto/gc: fix a -Wswitch warning
8709         Reported by Bruce Korb in:
8710         http://lists.gnu.org/archive/html/bug-gnulib/2015-02/msg00046.html
8711         * lib/gc-gnulib.c (gc_hash_open): Fail faster if MODE is nonzero.
8713 2015-02-03  Pádraig Brady  <P@draigBrady.com>
8715         gnulib-tool: fix handling of patch(1) diagnostics
8716         * gnulib-tool: Send diagnostics from patch(1) to stderr,
8717         as otherwise gnulib-tool will reparse that output and attempt
8718         to lookup modules.
8720 2015-02-03  Pádraig Brady  <P@draigBrady.com>
8722         bootstrap: exit immediately upon gnulib-tool failure
8723         * build-aux/bootstrap: Exit immediately if gnulib-tool fails.
8724         This was noticed when gnulib-tool exited early due to failure
8725         to apply a patch in coreutils at http://hydra.nixos.org/eval/1172233,
8726         but various confusing errors were then given as the build proceeded.
8728 2015-02-02  Andreas Gruenbacher  <agruen@gnu.org>
8730         symlinkat: include all required header files
8731         * lib/symlinkat.c (HAVE_SYMLINK_AT): Add <sys/stat.h> for fstatat(),
8732         and string.h for strlen(), required at least on OS X 10.10 (Yosemite).
8733         Reported at https://savannah.gnu.org/bugs/index.php?44151
8734         and by Jack Howarth.
8736 2015-01-29  Pádraig Brady  <P@draigBrady.com>
8738         localename: support Solaris 12 and illumos
8739         * lib/localename.c (gl_locale_name_thread_unsafe): call
8740         getlocalename_l() on newer __sun platforms.
8741         Reported by Alexander Pyhalov.
8742         Fix suggested by Rich Burridge.
8744 2015-01-29  Alexander Pyhalov  <alp@rsu.ru>
8746         locale: fix tests on illumos (trivial)
8747         * tests/test-locale.c: LC_GLOBAL_LOCALE is a function call on illumos,
8748         so move from global scope to main().
8750 2015-01-24  Daiki Ueno  <ueno@gnu.org>
8752         unictype: avoid undefined left-shift behavior
8753         * lib/unictype/bidi_of.c (uc_bidi_class): Building libunistring with
8754         gcc's -fsanitize=shift and running its tests triggered:
8755           unictype/bidi_of.c:43:60: runtime error: left shift of 40167 by 16 \
8756             places cannot be represented in type 'int'
8757         Cast LHS to 'unsigned int' after integer promotion.
8758         * lib/unictype/categ_of.c (lookup_withtable): Likewise.
8759         * lib/unictype/joininggroup_of.c (uc_joining_group): Likewise.
8761 2015-01-20  Daiki Ueno  <ueno@gnu.org>
8763         libunistring: bump version of unitypes dependants
8764         Due to the header file search order, all the headers which depend
8765         on unitypes.h need to be generated, when the preinstalled
8766         libunistring is older.
8767         * modules/unicase/base (configure.ac): Bump minimum version to
8768         0.9.4.
8769         * modules/uniconv/base (configure.ac): Likewise.
8770         * modules/unilbrk/base (configure.ac): Likewise.
8771         * modules/uninorm/base (configure.ac): Likewise.
8772         * modules/unistdio/base (configure.ac): Likewise.
8773         * modules/unistr/base (configure.ac): Likewise.
8774         * modules/uniwbrk/base (configure.ac): Likewise.
8775         * modules/uniwidth/base (configure.ac): Likewise.
8777 2015-01-20  Daiki Ueno  <ueno@gnu.org>
8779         unictype/category-none: fix link with libunistring
8780         Since _UC_CATEGORY_NONE is not a public symbol, it will be
8781         prefixed with "libstring_" when compiled as part of libunistring.
8782         To avoid undefined symbol at link time, increase the minimum
8783         version when the dependant modules are updated.
8784         * modules/unictype/category-none (configure.ac): Bump minimum
8785         version to 0.9.5.
8787 2015-01-20  Daiki Ueno  <ueno@gnu.org>
8789         unitypes: fix build with installed libunistring
8790         The minimum version has not bumped after _UC_ATTRIBUTE_CONST and
8791         _UC_ATTRIBUTE_PURE were added to unitypes.in.h.
8792         * modules/unitypes (configure.ac): Bump minimum version to 0.9.4.
8794 2015-01-15  Paul Eggert  <eggert@cs.ucla.edu>
8796         time: port to MinGW32 3.21
8797         Problem reported by Eli Zaretskii in:
8798         http://lists.gnu.org/archive/html/bug-gnulib/2015-01/msg00042.html
8799         * lib/time.in.h:
8800         * m4/time_h.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC):
8801         * modules/time (Depends-on):
8802         Fall back on unistd.h if the other include files don't define
8803         struct timespec.
8805         update-copyright: apply to self
8806         * build-aux/update-copyright: Fix copyright date.  How ironic!
8808 2015-01-15  Daiki Ueno  <ueno@gnu.org>
8810         libunistring: update to Unicode 7.0.0
8811         * lib/unictype/joininggroup_byname.gperf: Add Straight Waw and
8812         Manichaean names.
8813         * lib/unictype/joininggroup_name.h: Likewise.
8814         * lib/unictype.in.h (UC_JOINING_GROUP_STRAIGHT_WAW)
8815         (UC_JOINING_GROUP_MANICHAEAN_ALEPH): New enumeration values.
8816         * lib/gen-uni-tables.c (UC_JOINING_GROUP_STRAIGHT_WAW)
8817         (UC_JOINING_GROUP_MANICHAEAN_*): New enumeration values.
8818         (fill_arabicshaping, joining_group_as_c_identifier): Support those
8819         enum values.
8820         (is_property_alphabetic): Accept newly added characters to
8821         cuneiform numeric signs.
8822         (is_property_default_ignorable_code_point): Reject U+0605.
8823         (FIELDLEN): Increase from 120 to 160.
8824         * lib/uniwidth/width.c (nonspacing_table_data): Add U+0605,
8825         U+08FF, U+0C00, U+0C81, U+0D01, U+1AB0..U+1ABE, U+1BAC..U+1BAD,
8826         U+1CF8..U+1CF9, U+1DE7..U+1DF5, U+A9E5, U+AA7C, U+FE27..U+FE2D,
8827         U+102E0, U+10376..U+1037A, U+10AE5..U+10AE6, U+1107F, U+11173,
8828         U+1122F..U+11231, U+11234, U+11236..U+11237, U+112DF,
8829         U+112E3..U+112EA, U+11301, U+1133C, U+11340, U+11366..U+1136C,
8830         U+11370..U+11374, U+114B3..U+114B8, U+114BA, U+114BF..U+114C0,
8831         U+114C2..U+114C3, U+115B2..U+115B5, U+115BC..U+115C0,
8832         U+11633..U+1163A, U+1163D, U+1163F..U+11640, U+16AF0..U+16AF4,
8833         U+16B30..U+16B36, U+1BC9D..U+1BC9E, U+1BCA0..U+1BCA3, and
8834         U+1E8D0..U+1E8D6.
8835         (uc_width): Adjust nonspacing_table_ind boundary from 240 to 248.
8836         * tests/uniwidth/test-uc_width2.sh: Same updates as in
8837         lib/uniwidth/width.c.
8838         * all generated files under lib/uni* and tests/uni*: Regenerate.
8840 2015-01-14  Daiki Ueno  <ueno@gnu.org>
8842         libunistring: update to Unicode 6.3.0
8843         * lib/uniwbrk.in.h (WBP_DQ, WBP_SQ, WBP_HL): New enumeration values.
8844         * lib/uniwbrk/u-wordbreaks.h (FUNC): Support WB7a, WB7b, and WB7c.
8845         Update WB5, WB6, WB7, WB9, WB11, WB12, WB13a, and WB13b.
8846         * lib/uniwbrk/wbrktable.h (uniwbrk_table): Adjust table size.
8847         * lib/uniwbrk/wbrktable.c (uniwbrk_table): Support rule WB7a.
8848         Update WB5, WB9, WB10, WB13a, and WB13b.
8849         * tests/uniwbrk/test-uc-wordbreaks.c
8850         (wordbreakproperty_to_string): Support WBP_DQ, WBP_SQ, and WBP_HL.
8851         * lib/gen-uni-tables.c (UC_BIDI_LRI, UC_BIDI_RLI, UC_BIDI_FSI)
8852         (UC_BIDI_PDI): New enumeration values.
8853         (bidi_category_byname): Support those enum values.
8854         (is_WBP_MIDNUMLET): Exclude 0x0027 (SINGLE QUOTE), which is now a
8855         dedicated property assigned.
8856         (is_property_case_ignorable): Check 0x0027.
8857         (WBP_DQ, WBP_SQ, WBP_HL): New enumeration values.
8858         (get_wbp, debug_output_wbp, fill_org_wbp, debug_output_org_wbp)
8859         (output_wbp): Support those enum values.
8860         * lib/unictype.in.h (UC_BIDI_LRI, UC_BIDI_RLI, UC_BIDI_FSI)
8861         (UC_BIDI_PDI): New enumeration values.
8862         * lib/unictype/bidi_byname.gperf: Add those property names.
8863         * lib/uniwidth/width.c (nonspacing_table_data): Add U+061C,
8864         U+180E, U+1A1B, and U+2066..U+2069.
8865         * tests/uniwidth/test-uc_width2.sh: Same updates as in
8866         lib/uniwidth/width.c.
8867         * all generated files under lib/uni* and tests/uni*: Regenerate.
8869 2015-01-14  Daiki Ueno  <ueno@gnu.org>
8871         libunistring: update to Unicode 6.2.0
8872         * lib/unilbrk/lbrktables.h (LBP_RI): New enumeration value.
8873         (unilbrk_table): Adjust table size.
8874         * lib/unilbrk/lbrktables.c (unilbrk_table): Add a row and column
8875         for LBP_RI.
8876         * lib/uniwbrk.in.h (WBP_RI): New enumeration value.
8877         * lib/uniwbrk/u-wordbreaks.h (FUNC): Support rule WB13c.
8878         Normalize table index skipping ignored properties.
8879         * lib/uniwbrk/wbrktable.c (uniwbrk_table): Support WBP_RI.  Remove
8880         WBP_EXTEND and WBP_FORMAT, which are now computed without using
8881         the table.
8882         * lib/uniwbrk/wbrktable.h: Adjust table size.
8883         * lib/unigbrk.in.h (GBP_RI): New enumeration value.
8884         * lib/unigbrk/uc-is-grapheme-break.c (UC_IS_GRAPHEME_BREAK):
8885         Support rule GB8a.
8886         (UC_GRAPHEME_BREAKS_FOR, gb_table): Support GBP_RI.
8887         * tests/unigbrk/test-uc-is-grapheme-break.c
8888         (graphemebreakproperty_to_string): Support GBP_RI.
8889         * tests/uniwbrk/test-uc-wordbreaks.c
8890         (wordbreakproperty_to_string): Support WBP_RI.
8891         * lib/gen-uni-tables.c (LBP_RI): New enumeration value.
8892         (get_lbp, debug_output_lbp, fill_org_lbp, debug_output_org_lbp)
8893         (output_lbp): Support LBP_RI.  Adjust some characters changed from
8894         LBP_AL to LBP_ID.
8895         (output_lbp): Support LBP_RI.
8896         (WBP_RI): New enumeration value.
8897         (debug_output_wbp, fill_org_wbp, debug_output_org_wbp)
8898         (output_wbp): Support WBP_RI.
8899         (GBP_RI): New enumeration value.
8900         (output_gbp_test, fill_org_gbp): Support GBP_RI.
8901         * all generated files under lib/uni* and tests/uni*: Regenerate.
8903 2015-01-14  Daiki Ueno  <ueno@gnu.org>
8905         libunistring: update to Unicode 6.1.0
8906         * lib/gen-uni-tables.c (output_joining_group): Switch to
8907         3-level table to accommodate joining groups defined with higher
8908         codepoint value.  Since there are only 88 groups defined in
8909         Unicode 7.0.0, use 7-bit packed format for level3 entries.
8910         (get_lbp): Update for Unicode 6.1.0.
8911         * lib/unictype/joininggroup_of.c (uc_joining_group): Adjust to use
8912         3-level table.
8913         * lib/unictype/joininggroup_byname.gperf: Add Rohingya Yeh
8914         joining group name.
8915         * lib/unictype/joininggroup_name.h: Likewise.
8916         * lib/unilbrk/lbrktables.h (LBP_HL): New enumeration value.
8917         (unilbrk_table): Adjust table size.
8918         * lib/unilbrk/lbrktables.c (unilbrk_table): Add a row and column
8919         for LBP_HL.
8920         * lib/uniwidth/width.c (nonspacing_table_data): Add U+0604,
8921         U+08E4..U+08FE, U+1BAB, U+1CF4, U+A674..U+A67B, U+A69F,
8922         U+AAEC..U+AAED, U+AAF6, U+11100..U+11102, U+11127..U+1112B,
8923         U+1112D..U+11134, U+11180..U+11181, U+111B6..U+111BE, U+116AB,
8924         U+116AD, U+116B0..U+116B5, U+116B7, U+16F8F..U+16F92.  Remove
8925         U+302E..U+302F.
8926         * tests/uniwidth/test-uc_width2.sh: Same updates as in
8927         lib/uniwidth/width.c.
8928         * all generated files under lib/uni* and tests/uni*: Regenerate.
8929         * modules/uni*/* (configure.ac): Bump minimum version to 0.9.5.
8931 2015-01-15  Daiki Ueno  <ueno@gnu.org>
8933         uniwbrk/u32-wordbreaks-tests: add conformance test
8934         * modules/uniwbrk/u32-wordbreaks-tests (Files): Add
8935         tests/uniwbrk/test-uc-wordbreaks.c,
8936         tests/uniwbrk/test-uc-wordbreaks.sh, and
8937         tests/uniwbrk/WordBreakTest.txt.
8938         (Makefile.am): Add uniwbrk/test-uc-wordbreaks.sh to $(TESTS), add
8939         test-uc-wordbreaks to $(check_PROGRAMS), and define
8940         test_uc_wordbreaks_SOURCES and test_uc_wordbreaks_LDADD.
8941         * tests/uniwbrk/test-uc-wordbreaks.sh: New file.
8942         * tests/uniwbrk/test-uc-wordbreaks.c: New file.
8944 2015-01-15  Daiki Ueno  <ueno@gnu.org>
8946         uniwbrk: ignore Extended/Format characters at BOL not BOS
8947         * lib/uniwbrk/u-wordbreaks.h (FUNC): Ignore Extend and Format
8948         characters if the previous character property is one of
8949         WBP_NEWLINE, WBP_CR, and WBP_LF.
8951 2015-01-11  Jim Meyering  <meyering@fb.com>
8953         test-strstr.c: avoid a trivial leak
8954         * tests/test-strstr.c (main): Free haystack.
8956         update-copyright: recognize groff's \(co marker
8957         * build-aux/update-copyright (circle_c_re): Also accept
8958         uses of \(co, as found in gzip.1.
8960 2015-01-08  Pádraig Brady  <P@draigBrady.com>
8962         maint.mk: fix compatibility with OS X nm
8963         * top/maint.mk (_gl_tight_scope): Use the -g option to
8964         show exported items rather than the -e option which is
8965         ignored on all platforms except OS X where it gives an error.
8966         Reported by Assaf Gordon.
8968 2015-01-07  KO Myung-Hun  <komh@chollian.net>
8970         localcharset: improve charset detection on OS/2
8971         Use system codepage when appropriate.  Map OS/2 codepages to
8972         GNU canonical charset names if possible.
8973         * lib/config.charset: Don't output aliases if "$os" is os2*.
8974         * lib/localcharset.c (get_charset_aliases) [OS2]: Hardcode the
8975         result for OS/2.
8976         (locale_charset) [OS2]: Use system codepage if codeset is omitted
8977         from the locale name which is neither "C" nor "POSIX".
8979 2015-01-06  Paul Eggert  <eggert@cs.ucla.edu>
8981         count-leading-zeros: use 64-bit intrinsics on 32-bit Windows
8982         This reverts the last patch but one, as it shouldn't be needed now
8983         that the typo is fixed.
8984         * lib/count-leading-zeros.h (count_leading_zeros_ll):
8985         * lib/count-trailing-zeros.h:
8986         * lib/count-one-bits.h:
8987         Go back to using 64-bit intrinsics.
8989         count-leading-zeros: fix pragma typos
8990         * lib/count-leading-zeros.h (_BitScanReverse, _BitScanReverse64):
8991         Fix typos in declaration of intrinsics when _MSC_VER.
8993 2015-01-06  Pádraig Brady  <P@draigBrady.com>
8995         count-leading-zeros: avoid 64-bit intrinsics on 32-bit Windows
8996         * lib/count-leading-zeros.h (count_leading_zeros_ll): Use 32 bit
8997         intrinsics in this case.
8998         * lib/count-trailing-zeros.h: Likewise.
8999         * lib/count-one-bits.h: Likewise.
9001 2015-01-06  Daiki Ueno  <ueno@gnu.org>
9003         uniname/uniname: update to Unicode 7.0.0
9004         To accommodate new characters added since Unicode 5.1.0, this
9005         changes the internal representation of codepoint ranges.
9006         Previously, we grouped codepoint ranges by manually assigned 4-bit
9007         tag, which only allowed 16 groups.  This removes the limitation by
9008         switching to binary search on a table.  For the detail rationale
9009         and the benchmark results, see:
9010         https://lists.gnu.org/archive/html/bug-libunistring/2014-06/msg00001.html
9011         * lib/uniname/gen-uninames.lisp (unicode-char): Rename CODE member
9012         to INDEX, as it no longer represents a codepoint.
9013         (range): New struct.
9014         (main): Switch to intervals list from a bit-pattern based
9015         classification.
9016         * lib/uniname/uninames.h: Regenerate.
9017         * tests/uniname/UnicodeDataNames.txt: Update to Unicode 7.0.0.
9018         * modules/uniname/base (configure.ac): Bump minimum version to
9019         0.9.5.
9020         * modules/uniname/uniname (configure.ac): Bump minimum version to
9021         0.9.5.
9023 2015-01-05  Eric Blake  <eblake@redhat.com>
9025         doc: update INSTALL from autoconf
9026         * doc/install.texi: Resync from autoconf.
9027         * doc/INSTALL: Reflect recent autoconf update.
9028         * doc/INSTALL.ISO: Likewise.
9029         * doc/INSTALL.UTF-8: Likewise.
9031         stdio: fix use of PRIdMAX on modern mingw
9032         * m4/stdio_h.m4 (gl_STDIO_H): Probe for printf flavor via inttypes.
9033         * lib/stdio.in.h (_GL_ATTRIBUTE_FORMAT_PRINTF_SYSTEM): Use result
9034         to work with modern mingw.
9036 2015-01-05  Daniel P. Berrange  <berrange@redhat.com>  (tiny change)
9038         pthread: detect git mingw builds with only partial pollution
9039         * m4/pthread.m4 (gl_PTHREAD_CHECK): Check for additional
9040         pollution, as seen temporarily in Fedora 21.
9042 2015-01-04  Paul Eggert  <eggert@cs.ucla.edu>
9044         lib-symbol-versions: cache script check
9045         * m4/ld-version-script.m4 (gl_LD_VERSION_SCRIPT):
9046         Cache the check for linker version scripts.
9047         From a suggestion by Christophe Curis in:
9048         http://lists.gnu.org/archive/html/bug-gnulib/2015-01/msg00011.html
9050 2015-01-04  Benno Schulenberg  <bensberg@justemail.net>
9052         maint: fix grammar nits in propername (trivial change)
9053         * lib/propername.h: Remove a mistaken comma and a duplicate "from",
9054         and use an adequate verb and tense.
9056 2015-01-02  Ludovic Courtès  <ludo@gnu.org>
9058         Suggested by Paul Eggert <eggert@cs.ucla.edu>.
9059         * module/gendocs: Add 'doc/gendocs_template_min'.
9061         * build-aux/gendocs.sh: Change email addresses and upstream URLs
9062         from to Gnulib's.
9063         (scripturl, templateurl): Adjust accordingly.
9065 2015-01-01  Paul Eggert  <eggert@cs.ucla.edu>
9067         gendocs: copyright date and version fix
9068         Reported by Karl Berry in:
9069         http://lists.gnu.org/archive/html/bug-gnulib/2015-01/msg00002.html
9070         * build-aux/gendocs.sh, doc/gendocs_template, doc/gendocs_template_min:
9071         Fix copyright date.
9072         * build-aux/gendocs.sh (scriptversion): Update.
9074 2015-01-01  Karl Berry  <karl@gnu.org>
9076         * doc/install.texi,
9077         * build-aux/mdate-sh,
9078         * build-aux/depcomp,
9079         * build-aux/config.guess,
9080         * build-aux/config.sub,
9081         * build-aux/ar-lib,
9082         * build-aux/compile: revert copyright updates (some from last
9083         year) in slaved files.
9085 2015-01-01  Paul Eggert  <eggert@cs.ucla.edu>
9087         version-etc: new year
9088         * doc/gnulib.texi:
9089         * lib/version-etc.c (COPYRIGHT_YEAR): Update copyright date.
9090         * all files: Run 'make update-copyright'.
9092 2014-12-30  Pádraig Brady  <P@draigBrady.com>
9094         xstrtol: ensure errno is reset
9095         Since commit 3bf75404, on 26-09-1998, errno may not have been reset.
9096         Noticed with a spurious coreutils test failure on Darwin 14.0.0.
9098         * lib/xstrtol.c (__xstrtol): Always reset errno before returning.
9100 2014-12-28  Paul Eggert  <eggert@cs.ucla.edu>
9102         utimens: fix dependency typo
9103         * modules/utimens (Depends-on): Remove 'assure'.
9104         This bug was introduced in the recent 'assure' patch.
9106 2014-12-22  Eric Blake  <eblake@redhat.com>
9108         docs: mention why libgen.h is bad
9109         * doc/posix-headers/libgen.texi (libgen.h): Refer to dirname module.
9111 2014-12-20  Paul Eggert  <eggert@cs.ucla.edu>
9113         assure: new module
9114         This works better than 'assert' when compiling with -DNDEBUG,
9115         as it avoids some compiler diagnostics in that case.
9116         Reported by Norihiro Tanaka in:
9117         http://lists.gnu.org/archive/html/bug-gnulib/2014-12/msg00215.html
9118         * MODULES.html.sh (func_all_modules): Add 'assure'.
9119         * lib/assure.h, modules/assure: New files.
9120         * lib/chdir-long.c, lib/cycle-check.c, lib/fchdir.c, lib/fts.c:
9121         * lib/poll.c, lib/savewd.c, lib/xstrtol.c:
9122         Prefer 'assure' to 'assert'.
9123         * lib/utimens.c: Stop using 'assert'; it wasn't helpful.
9124         * modules/chdir-long, modules/cycle-check, modules/fchdir:
9125         * modules/poll, modules/savewd, modules/utimens, modules/xstrtol:
9126         Depend on 'assure'.
9128 2014-12-16  Paul Eggert  <eggert@cs.ucla.edu>
9130         stdalign: port better to HP compilers
9131         * m4/stdalign.m4 (gl_STDALIGN_H): Try the test if __HP_cc or
9132         __HP_aCC are nonzero, to be consistent with the 2014-01-20 patch.
9134         stdalign: work around Apple GCC 4.0 bug
9135         Reported by David Fang in:
9136         http://lists.gnu.org/archive/html/bug-gnulib/2014-12/msg00194.html
9137         * lib/stdalign.in.h (_Alignas):
9138         * m4/stdalign.m4 (gl_STDALIGN_H):
9139         Do not use aligned attribute with GCC 4.0 on Apple.
9141 2014-12-16  Pádraig Brady  <P@draigBrady.com>
9143         getcwd: fix test failure on OS X 10.9
9144         * m4/getcwd-path-max.m4: Avoid the replacement if it
9145         won't be effective due to the PATH_MAX limitation of lstat().
9146         (gl_cv_func_getcwd_path_max): Adjust to indicate this case.
9147         * m4/getcwd.m4 (gl_FUNC_GETCWD): Define HAVE_GETCWD_SHORTER
9148         for this case for use in tests, and also exclude this
9149         case when setting REPLACE_GETCWD.
9150         * tests/test-getcwd.c (test_long_name): Restrict the
9151         tested path length so that lstat() will not be passed
9152         a path greater than PATH_MAX.
9153         Also key a test condition on HAVE_OPENAT_SUPPORT rather
9154         than AT_FDCWD, since the latter is set unconditionally
9155         since Sep 2009 in commit 52c658e9.
9157 2014-12-14  Tim Rühsen  <tim.ruehsen@gmx.de>
9159         parse-datetime: avoid a compiler warning with byacc (trivial)
9160         * lib/parse-datetime.y (yylex): Use the same prototype in the
9161         function definition as the declaration, to avoid a -Wstrict-prototypes
9162         warning seen when using byacc.
9164 2014-12-12  Daiki Ueno  <ueno@gnu.org>
9166         unicase/locale-language-tests: fix LOCALE_FR test
9167         * tests/unicase/test-locale-language.sh: Really use $LOCALE_FR for
9168         a French locale with traditional encoding.
9169         Reported by umerqayam in:
9170         http://lists.gnu.org/archive/html/bug-libunistring/2014-12/msg00000.html
9172 2014-12-12  Paul Eggert  <eggert@cs.ucla.edu>
9174         stddef: support C11's max_align_t
9175         * doc/posix-headers/stddef.texi (stddef.h): Document max_align_t.
9176         * lib/stddef.in.h (_@GUARD_PREFIX@_STDDEF_H) [__need_wint_t]:
9177         Do not undef, as that might cause max_align_t to be defined twice.
9178         Instead, change use to check for _GL_STDDEF_WINT_T too.
9179         (max_align_t) [!HAVE_MAX_ALIGN_T]: New decl.
9180         * m4/stddef_h.m4 (gl_STDDEF_H, gl_STDDEF_H_DEFAULTS):
9181         Check for max_align_t.
9182         * modules/stddef (stddef.h): Substitute HAVE_MAX_ALIGN_T.
9183         * modules/stddef-tests (Depends-on): Add stdalign.
9184         * tests/test-stddef.c: Test max_align_t.
9186 2014-12-11  Daiki Ueno  <ueno@gnu.org>
9188         unistd: fix iOS check conditional
9189         On Mac OS X 10.8, the TARGET_* macros are unconditonally defined
9190         as 0 or 1 in <TargetConditionals.h>, and the previous check always
9191         yielded true on non-iOS environment.
9192         * lib/unistd.in.h (environ) [__APPLE__]: Check the values of
9193         TARGET_OS_IPHONE and TARGET_IPHONE_SIMULATOR, instead of whether
9194         they are defined.
9196 2014-12-09  Paul Eggert  <eggert@cs.ucla.edu>
9198         posixtm: avoid compiler warning in a better way
9199         * lib/posixtm.c (IF_LINT): Remove.
9200         (year, posix_time_parse):
9201         Return true (not 0) if successful.  All callers changed.
9202         (posix_time_parse): Simplify to pacify GCC without need for IF_LINT.
9204 2014-12-08  KO Myung-Hun  <komh78@gmail.com>
9206         * lib/relocatable.c (relocate): Prepend $UNIXROOT to pathname if it is
9207         started with '/' on EMX.
9209 2014-12-08  KO Myung-Hun  <komh78@gmail.com>
9211         freopen: workaround freopen() on OS/2 kLIBC
9212         * lib/freopen.c (rpl_freopen): Workaround.
9213         * m4/freopen.m4: Add os2* case.
9215         get_shared_library_fullname: port to EMX
9216         * lib/relocatable.c: Define strcmp and strncmp to stricmp and strnicmp
9217         on EMX, respectively.
9218         (_DLL_InitTerm): New on EMX.
9219         (get_shared_library_fullname): Implement on EMX.
9221         find_executable: port to EMX
9222         * lib/progreloc.c (find_executable): Implement on EMX.
9224         sched: check struct sched_param in spawn.h as well
9225         * lib/sched.in.h: Include spawn.h on kLIBC.
9226         * lib/sched_h.m4: Check struct sched_param in spawn.h as well.
9228 2014-12-08  Martin Kletzander  <mkletzan@redhat.com>  (tiny change)
9230         bootstrap: Allow perl modules in $buildreq
9231         * build-aux/bootstrap: Add case for perl modules.
9233 2014-12-08  Pádraig Brady  <P@draigBrady.com>
9235         apply _GL_ATTRIBUTE_PURE to some inline functions
9236         clang 3.4.2 flagged these inline functions as pure
9237         * lib/savewd.h (savewd_errno): Set _GL_ATTRIBUTE_PURE.
9238         * lib/sig-handler.h (get_handler): Likewise.
9239         * lib/stat-time.h (get_stat_{a,c,m,birth}time{,_ns}): Likewise.
9240         * lib/timespec.h (timespec_cmp, timespec_sign): Likewise.
9242 2014-12-06  Pádraig Brady  <P@draigBrady.com>
9244         vasnprintf: fix potential use after free
9245         * lib/vasnprintf.c (VASNPRINTF): Fix free-memory read,
9246         flagged by clang-analyzer 3.4.2.
9248 2014-12-05  Pádraig Brady  <P@draigBrady.com>
9250         filevercmp, posixtm: avoid compiler warnings with -O3
9251         * lib/filevercmp.h (filevercmp): Tag with _GL_ATTRIBUTE_PURE
9252         * lib/posixtm.c: (IF_LINT): Define.
9253         (posix_time_parse): Use it to void a "may be used uninitialized"
9254         warning, seen only with -O3.
9256 2014-12-05  Bruno Haible  <bruno@clisp.org>
9258         Fix LDBL80_WORDS macro on big endian platforms.
9259         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Add missing parenthesis in
9260         LDBL80_WORDS macro.
9261         * m4/isinf.m4 (gl_ISINFL_WORKS): Likewise.
9262         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
9263         * tests/test-isfinite.c (test_isfinitel): Likewise.
9264         * tests/test-isinf.c (test_isinfl): Likewise.
9265         * tests/test-isnan.c (test_long_double): Likewise.
9266         * tests/test-isnanl.h (main): Likewise.
9267         * tests/test-snprintf-posix.h (LDBL80_WORDS): Add missing parenthesis.
9268         * tests/test-sprintf-posix.h (LDBL80_WORDS): Likewise.
9269         * tests/test-vasnprintf-posix.c (LDBL80_WORDS): Likewise.
9270         * tests/test-vasprintf-posix.c (LDBL80_WORDS): Likewise.
9271         Reported by Pádraig Brady.
9273 2014-12-02  KO Myung-Hun  <komh78@gmail.com>
9275         git-version-gen: do not print new line characters
9276         * build-aux/git-version-gen: Use printf instead of echo and tr.
9278         gnulib-tool: recognize x:* as an absolute path
9279         * gnulib-tool (func_gnulib_dir): Add ?:* case.
9280         (func_relconcat): Likewise.
9282 2014-12-02  Andrei Borzenkov  <arvidjaar@gmail.com>
9284         argp: avoid extraneous translation and mem leak with empty pre doc
9285         * lib/argp-help.c (argp_doc): Never translate the empty string,
9286         when "\v" is the first or last character of the string, as that
9287         has a reserved meaning to return the header info from a po file.
9288         This also fixes a small memory leak in the !post case.
9289         The issue can be seen with this command for example:
9290         LC_MESSAGES=en_US grub2-mknetdir --help
9292 2014-11-27  Daiki Ueno  <ueno@gnu.org>
9294         uniname/uniname-tests: skip if system's libunistring is used
9295         * modules/uniname/uniname-tests (Makefile.am): Skip test if
9296         uniname/uniname module is not compiled.
9298 2014-11-27  Pádraig Brady  <P@draigBrady.com>
9300         printf: fix configure check on big endian systems
9301         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Add missing bracket.
9303 2014-11-22  Daiki Ueno  <ueno@gnu.org>
9305         pipe-filter-gi, pipe-filter-ii: port to AIX
9306         On AIX 7.1, 'select' is defined as static and cannot be referred
9307         to from inline function.
9308         * lib/pipe-filter-aux.h (nointr_select): Remove, manually expand
9309         the definition...
9310         * lib/pipe-filter-gi.c (filter_loop): ...here, and...
9311         * lib/pipe-filter-ii.c (pipe_filter_ii_execute): ...here.
9313 2014-11-20  Paul Eggert  <eggert@cs.ucla.edu>
9315         gitlog-to-changelog: add --until
9316         * build-aux/gitlog-to-changelog: Support new --until option.
9317         Need described by Eli Zaretskii in: http://bugs.gnu.org/19113
9319 2014-11-14  Paul Eggert  <eggert@cs.ucla.edu>
9321         extern-inline: update commentary about GCC bugs
9322         * m4/extern-inline.m4: Add another GCC bug number to comments.
9324 2014-11-13  Daiki Ueno  <ueno@gnu.org>
9326         gen-uni-tables: untabify
9327         * lib/gen-uni-tables.c: Untabify.
9329 2014-11-13  Daiki Ueno  <ueno@gnu.org>
9331         gen-uni-tables: check out-of-range values added to 3-level tables
9332         * lib/gen-uni-tables.c (output_category, output_bidi_category)
9333         (output_joining_type, output_ident_category): Check out-of-range
9334         values added to 3-level tables.
9336 2014-11-13  Daiki Ueno  <ueno@gnu.org>
9338         gen-uni-tables: utilize 'assert'
9339         * lib/gen-uni-tables.c: Include <assert.h>.
9340         (output_category, output_combclass, output_decimal_digit_test)
9341         (output_decimal_digit, output_digit_test, output_digit)
9342         (output_numeric, get_mirror_value, fill_properties)
9343         (fill_property30, is_property_alphabetic)
9344         (is_property_default_ignorable_code_point)
9345         (is_property_uppercase, is_property_lowercase)
9346         (is_property_cased, is_property_case_ignorable)
9347         (is_property_changes_when_lowercased, is_property_iso_control)
9348         (is_property_math, fill_arabicshaping, output_joining_group)
9349         (fill_scripts, fill_blocks, output_lbp, fill_org_wbp)
9350         (output_wbp, fill_org_gbp, get_decomposition)
9351         (output_decomposition, fill_composition_exclusions)
9352         (debug_output_composition_tables, output_composition_tables)
9353         (redistribute_casefolding_rules, output_casing_rules): Use
9354         'assert (EXPR);' instead of 'if (!EXPR) abort ();' for better error
9355         reporting.
9357 2014-11-13  Daiki Ueno  <ueno@gnu.org>
9359         gen-uni-tables: cosmetic improvements
9360         * lib/gen-uni-tables.c: Escape newlines in the Emacs file local
9361         variables specification.
9362         (is_outdigit): Remove unused function.
9364 2014-11-12  Jeroen Roovers  <jer@gentoo.org>  (tiny change)
9366         fcntl-h-tests: port to PA-RISC GNU/Linux
9367         * tests/test-fcntl-h.c (main): Check O_SYNC is different from O_DSYNC.
9369 2014-11-10  Paul Eggert  <eggert@cs.ucla.edu>
9371         fts: port to C89
9372         Problem reported for MSVC 16 by Gisle Vanem in:
9373         http://lists.gnu.org/archive/html/bug-gnulib/2014-11/msg00027.html
9374         * lib/fts.c (fts_build): Avoid declaration before statement.
9376 2014-11-06  Paul Eggert  <eggert@cs.ucla.edu>
9378         unistd: port to iOS
9379         Problem reported by André Klitzing in:
9380         http://lists.gnu.org/archive/html/bug-gnulib/2014-11/msg00013.html
9381         * lib/unistd.in.h (environ): Do not include crt_externs.h on iOS.
9383 2014-11-05  Paul Eggert  <eggert@cs.ucla.edu>
9385         obstack: do not reject malloc-style obstack_chunkfun, obstack_freefun
9386         Problem reported by Alan Modra in:
9387         http://lists.gnu.org/archive/html/bug-gnulib/2014-11/msg00007.html
9388         * lib/obstack.h (obstack_chunkfun, obstack_freefun):
9389         Always cast the function arg, reverting this part of the previous
9390         change.
9392 2014-11-04  Paul Eggert  <eggert@cs.ucla.edu>
9394         obstack: avoid potentially-nonportable function casts
9395         * lib/obstack.c (CALL_CHUNKFUN, CALL_FREEFUN):
9396         Remove, replacing with ...
9397         (call_chunkfun, call_freefun): New static functions.
9398         All uses changed.  Avoid potentially-nonportable casts.
9399         (chunkfun_type, freefun_type): Remove typedefs; no longer used.
9400         (_obstack_begin_worker): Omit last two args, since they
9401         rely on potentially-nonportable casts.  All callers changed.
9402         * lib/obstack.h (_OBSTACK_CAST): New macro.
9403         Use it everywhere the old API used a potentially-nonportable cast.
9404         The new API doesn't cast.
9405         (struct obstack): Use unions rather than requiring
9406         potentially-nonportable casts.
9407         (obstack_chunkfun, obstack_freefun): Return void.
9409 2014-11-03  Alan Modra  <amodra@gmail.com>
9411         obstack: fix macro return values
9412         * lib/obstack.h (obstack_next_free): Return void *.
9413         (obstack_1grow_fast, obstack_blank_fast): Return void.
9414         For __GNUC__ macros:
9415         (obstack_1grow, obstack_blank): Remove now unnecessary (void) 0.
9416         For !__GNUC__ macros:
9417         (obstack_make_room, obstack_grow, obstack_grow0)
9418         (obstack_ptr_grow_fast, obstack_int_grow_fast): Return void.
9420 2014-11-03  Paul Eggert  <eggert@cs.ucla.edu>
9422         obstack: do not assume system-supplied obstack is size_t safe
9423         * m4/obstack.m4: New file.
9424         * modules/obstack (Files): Add it.
9426         obstack: port to platforms that #define __alignof__
9427         * lib/obstack.c: Include <alignof.h> if !defined __alignof__,
9428         not if !_LIBC.  We don't know of any platforms that #define
9429         __alignof__, but it might be useful in tests.  Conversely,
9430         glibc assumes GCC.
9432 2014-11-03  Pádraig Brady  <P@draigBrady.com>
9434         linkat: don't unconditionally replace on GNU/Linux
9435         * m4/linkat.m4 (gl_FUNC_LINKAT): The compile check for AT_SYMLINK_FOLLOW
9436         was redundant for a few reasons.  It was present to support compiling
9437         on new systems but running on the old narrow window of Linux 2.6.1[67].
9438         It setup and cleaned up test files which weren't actually used.
9439         On non __linux__ it compile tested AT_SYMLINK_FOLLOW, but that is
9440         implicit in the following check.
9442 2014-11-03  Pádraig Brady  <P@draigBrady.com>
9444         linkat: wrap to handle symlinks on OS X 10.10
9445         * m4/linkat.m4 (gl_FUNC_LINKAT): linkat() is available on Yosemite
9446         but not usable because it doesn't support creating hardlinks
9447         to symlinks.  Therefore add a generic test for this capability
9448         and fallback to our emulation if linkat() fails with ENOTSUP.
9450 2014-11-02  Paul Eggert  <eggert@cs.ucla.edu>
9452         open, openat: document nonstandard FreeBSD, NetBSD O_NOFOLLOW errno
9453         * doc/posix-functions/open.texi (open):
9454         * doc/posix-functions/openat.texi (openat):
9455         Document that these functions do not set errno to ELOOP when
9456         a symlink is opened with O_NOFOLLOW.
9458 2014-10-31  Paul Eggert  <eggert@cs.ucla.edu>
9460         obstack: add NEWS entry for recent incompatible changes
9461         * NEWS: Describe recent changes.
9463 2014-10-30  Pádraig Brady  <P@draigBrady.com>
9465         mountlist: don't use libmount to decide on dummy/remote
9466         * lib/mountlist.c (read_file_system_list): Don't use the libmount
9467         routines to determine whether a file system is dummy or remote,
9468         as they're not currently compatible.  For example the remoteness
9469         is determined on file system type (for which the list seems incomplete),
9470         rather than simply checking for a ':' in the device name.
9471         Also libmount currently determines that 'tmpfs' is a dummy file system
9472         even though it has associated storage.
9474 2014-10-29  Paul Eggert  <eggert@cs.ucla.edu>
9476         obstack: prefer __alignof__ to alignof
9477         This is for portability to pre-4.7 GCC when compiling glibc.
9478         See Joseph S. Myers in:
9479         http://sourceware.org/ml/libc-alpha/2014-10/msg00703.html
9480         * lib/obstack.c (__alignof__) [!_LIBC && !__GNUC__]:
9481         New macro, defined by including and using <alignof.h>.
9482         (MAX): New macro.
9483         (DEFAULT_ALIGNMENT, DEFAULT_ROUNDING): Redefine in terms of these.
9484         Do not use enums as they are not portable to some broken compilers.
9485         * modules/obstack (Depends-on): Depend on alignof, not stdalign.
9487         obstack: prefer alignof to calculating alignments by hand
9488         * lib/obstack.c: Include <stdalign.h>.
9489         (struct fooalign): Remove.
9490         (DEFAULT_ALIGNMENT): Use alignof rather than the old offsetof hack.
9491         * modules/obstack (Depends-on): Add stdalign.
9493 2014-10-28  Paul Eggert  <eggert@cs.ucla.edu>
9495         obstack: use size_t alignments and check for overflow
9496         * lib/obstack.c, lib/obstack.h (_obstack_begin, _obstack_begin_1):
9497         * lib/obstack.c (_obstack_begin_worker, _obstack_newchunk):
9498         * lib/obstack.h (struct obstack.alignment_mask):
9499         Use _OBSTACK_SIZE_T, not int, for alignments.
9500         * lib/obstack.c (_obstack_newchunk): Fail if the size calculation
9501         overflows, e.g., when adding the alignment.
9503 2014-10-29  Alan Modra  <amodra@gmail.com>
9505         obstack: 64-bit obstack support, part 3
9506         This finally enables full 64-bit obstack support.  The glibc
9507         shared library specific code is removed from obstack.c too, and
9508         the error handling code conditionally compiled under control of
9509         another macro, _OBSTACK_NO_ERROR_HANDLER.
9510         * lib/obstack.h: Include string.h earlier.
9511         (_OBSTACK_INTERFACE_VERSION): Define.
9512         (_OBSTACK_SIZE_T, _CHUNK_SIZE_T): Define as size_t for version 2.
9513         * lib/obstack.c: Don't include shlib-compat.h.
9514         (OBSTACK_INTERFACE_VERSION): Delete.
9515         (_OBSTACK_ELIDE_CODE): Rename from ELIDE_CODE.  Define when version 1
9516         glibc code is compatible with version 2.  Don't include stdio.h for
9517         __GNU_LIBRARY.
9518         (obstack_exit_failure, print_and_abort, obstack_alloc_failed_handler):
9519         Omit when _OBSTACK_NO_ERROR_HANDLER defined.  Include stdio.h here.
9520         (_obstack_compat, _obstack, _obstack_newchunk, obstack_free): Delete
9521         glibc shared library specific source.
9523         obstack: 64-bit obstack support, part 2
9524         This gets us 4G obstack support, without changing ABI
9525         compatibility, apart from possibly introducing some
9526         signed/unsigned comparison warnings in code that uses obstack.h.
9527         a) Replace "int" size parameters, return values, and macro local vars
9528            with _OBSTACK_SIZE_T, an "unsigned int" for now.
9529         b) Make obstack.chunk_size a _CHUNK_SIZE_T, an "unsigned long" for now.
9530         c) Make all obstack macros checking available room use obstack_room.
9531            "next_free + desired > chunk_limit" may wrap the lhs for chunks
9532            allocated near the top of memory.
9533         d) Use unsigned comparisons, and macro locals to support >2G on 32-bit.
9534         * lib/obstack.h (_OBSTACK_SIZE_T): Define.  Use throughout
9535         in place of "int" size parameters, return values and local vars.
9536         (_CHUNK_SIZE_T): Define.
9537         (struct obstack): Make chunk_size a _CHUNK_SIZE_T.  Make temp
9538         union use an _OBSTACK_SIZE_T integer type.
9539         For __GNUC__ versions of the following macros...
9540         (obstack_room): Rename local var.
9541         (obstack_make_room): Use obstack_room.
9542         (obstack_grow, obstack_grow0, obstack_1grow, obstack_ptr_grow,
9543         obstack_int_grow, obstack_blank): Likewise.
9544         (obstack_finish): Use unsigned comparison when comparing aligned
9545         next_free against chunk_limit.
9546         (obstack_free): Cast OBJ to remove possible const qualifier.
9547         For !__GNUC__ versions of the following macros...
9548         (obstack_make_room): Use obstack_room.
9549         (obstack_grow, obstack_grow0, obstack_1grow, obstack_ptr_grow,
9550         obstack_int_grow, obstack_blank): Likewise.
9551         (obstack_finish): Use unsigned comparision when comparing aligned
9552         next_free against chunk_limit.
9553         (obstack_free): Use temp.p and same comparisons as __GNUC__ version.
9554         * lib/obstack.c (_obstack_begin_worker): Make "size" parameter
9555         _OBSTACK_SIZE_T.
9556         (_obstack_begin, _obstack_begin_1): Likewise.
9557         (_obstack_newchunk): Likewise for length parameter.  Use size_t locals.
9558         (_obstack_memory_used): Return and use _OBSTACK_SIZE_T local.
9560         obstack: 64-bit obstack support, part 1
9561         a) Correct calls to alloc function, to use a size_t arg.  "long" is
9562            just wrong on targets like x86_64-mingw64 where "long" is 32 bits
9563            and "size_t" 64 bits.
9564         b) Consolidate _obstack_begin and _obstack_begin1 code.
9565         * lib/obstack.h (struct obstack <chunkfun>): Correct prototype to
9566         use "size_t" rather than "long".
9567         (_obstack_begin, _obstack_begin1): Likewise.
9568         (obstack_init, obstack_begin, obstack_specify_allocation_with_arg,
9569         obstack_chunkfun): Update alloc function casts.
9570         * lib/obstack.c (CALL_CHUNKFUN): Update chunkfun cast.
9571         (chunkfun_type, freefun_type): New typdefs.
9572         (_obstack_begin_worker): Split out from ..
9573         (_obstack_begin, _obstack_begin_1): ..here.
9575         obstack: tidy part 2
9576         a) Don't be concerned about "not polluting the namespace with stddef.h
9577            symbols" in obstack.h, since gnulib string.h includes stddef.h
9578            anyway, and it seems unlikely that anyone would care.
9579         b) Don't roll our own slow memcpy in _obstack_newchunk.
9580         c) Rename obstack_free to _obstack_free.  This makes the naming
9581            consistent with other obstack functions and obviates the need for
9582            __obstack_free.  Ancient obstack.c defined both obstack_free and
9583            _obstack_free.  We continue to do that for _LIBC via an alias.
9584         d) Miscellaneous macro fixes.  The expression used to test for gcc-2.8
9585            is clever, but nowadays gcc warns on undefined macros.  You'll get
9586            an undefined macro warning if simulating an old gcc with -U__GNUC__
9587            -U__GNUC_MINOR__ -D__GNUC__=1.
9588         * lib/obstack.h: Include stddef.h unconditionally.  Formatting fixes.
9589         (PTR_INT_TYPE): Delete, replace with ptrdiff_t.
9590         (__obstack_free): Delete, update refs.
9591         (_obstack_free): Rename from obstack_free.
9592         (__extension__): Avoid undefined macro warning for __GNUC_MINOR__.
9593         (obstack_object_size, obstack_room): Parenthesise !__GNUC__ versions.
9594         * lib/obstack.c: Don't include stddef.h.
9595         (COPYING_UNIT): Delete.
9596         (_obstack_begin): Formatting fix.
9597         (_obstack_newchunk): Use memcpy to move existing object to new chunk.
9598         (_obstack_free): Rename from __obstack_free, update alias.  Move
9599         undef of obstack_free to where it is needed.
9601         obstack: tidy part 1
9602         a) Rename temp fields.  temp.tempint and temp.tempptr just looks ugly
9603            to me, and result in overlong lines after later patches.
9604         b) Move error handling code, to avoid a forward declaration and to
9605            simplify later patches in this series.
9606         * lib/obstack.h (struct obstack <temp>): Rename fields of union
9607         and update all uses.
9608         * lib/obstack.c: Include stdlib.h earlier.
9609         (obstack_exit_failure, obstack_alloc_failed_handler): Move later
9610         in file.
9611         (print_and_abort): Remove now redundant forward declaration.
9613 2014-10-24  Paul Eggert  <eggert@cs.ucla.edu>
9615         socketlib, sockets, sys_socket: Use AC_REQUIRE to pacify autoconf.
9616         Without this change, in bleeding-edge fileutils Autoconf complains
9617         that gl_SOCKETLIB etc. are AC_REQUIREd after being invoked.
9618         * modules/socketlib (configure.ac): AC_REQUIRE gl_SOCKETLIB.
9619         * modules/sockets (configure.ac): AC_REQUIRE gl_SOCKETS.
9620         * modules/sys_socket (configure.ac): AC_REQUIRE gl_HEADER_SYS_SOCKET.
9622 2014-10-24  Daiki Ueno  <ueno@gnu.org>
9624         iconv: avoid false detection of non-working iconv
9625         The INBUF arguments of iconv can be either 'const char **'
9626         or 'char **'.  If CC is g++, the difference causes a compile error
9627         and thus leads to a false detection of non-working iconv.
9628         Reported by Eli Zaretskii and Werner LEMBERG in:
9629         <https://lists.gnu.org/archive/html/bug-gnulib/2014-10/msg00023.html>.
9630         * m4/iconv.m4 (AM_ICONV_LINK): Try all possible argument types of
9631         iconv.  Bump serial number.
9633 2014-10-23  Pádraig Brady  <P@draigBrady.com>
9635         bootstrap: print more diagnostics for missing programs
9636         * build-aux/bootstrap: only suppress stderr when checking for
9637         alternative program names.  This supports programs issuing non
9638         standard error messages.
9640 2014-10-23  Pádraig Brady  <P@draigBrady.com>
9642         bootstrap: only update the gnulib submodule
9643         * build-aux/bootstrap: Restrict the "submodule update" command
9644         to the gnulib path.
9646 2014-10-18  Paul Eggert  <eggert@cs.ucla.edu>
9648         symlinkat: port to AIX 7.1
9649         * doc/posix-functions/symlinkat.texi (symlinkat):
9650         Mention AIX porting problem.
9651         * lib/symlinkat.c: Always include errno.h.
9652         (rpl_symlinkat) [HAVE_SYMLINKAT]: New function.
9653         * lib/unistd.in.h (symlinkat): Add replacement machinery.
9654         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Check symlinkat behavior.
9655         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add REPLACE_SYMLINKAT.
9656         * modules/symlinkat (Depends-on): Add fstatat if REPLACE_SYMLINKAT.
9657         (configure.ac): Also compile replacement if REPLACE_SYMLINKAT.
9658         * modules/unistd (unistd.h): Substitute REPLACE_SYMLINKAT.
9660         readlinkat: port to AIX 7.1
9661         * doc/posix-functions/readlink.texi (readlink):
9662         * doc/posix-functions/readlinkat.texi (readlinkat):
9663         Mention AIX porting problem.
9664         * lib/readlinkat.c (rpl_readlinkat) [HAVE_READLINKAT]:
9665         New function.
9666         * lib/unistd.in.h (readlinkat): Add replacement machinery.
9667         * m4/readlinkat.m4 (gl_FUNC_READLINKAT): Check readlinkat signature.
9668         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add REPLACE_READLINKAT.
9669         * modules/readlinkat (configure.ac): Also compile replacement
9670         if REPLACE_READLINKAT.
9671         * modules/unistd (unistd.h): Substitute REPLACE_READLINKAT.
9673 2014-10-12  Karl Berry  <karl@gnu.org>
9675         * doc/posix-functions/dirname.texi: remove spurious {.
9677 2014-09-28  Ben Pfaff  <blp@cs.stanford.edu>
9679         basename, dirname: Improve documentation.
9680         * doc/posix-functions/basename.texi: Mention dirname module and
9681         base_name() function.
9682         * doc/posix-functions/dirname.texi: Mention dir_name() and
9683         mdir_name() functions.
9684         Suggested by Werner LEMBERG <wl@gnu.org>.
9686 2014-09-24  Jim Meyering  <meyering@fb.com>
9688         exclude: declare exclude_patopts static
9689         * lib/exclude.c (exclude_patopts): Declare static,
9690         to avoid triggering a -Wmissing-prototypes warning.
9691         The alternative (declaring it in the .h file) would
9692         require publicizing the private "struct patopts".
9694 2014-09-21  Werner Lemberg  <wl@gnu.org>
9696         dirname: support compilation with C++
9697         * lib/dirname.h: Add necessary C linkage declarations.
9699 2014-09-16  Paul Eggert  <eggert@cs.ucla.edu>
9701         qsort_r: include <config.h>
9702         Problem reported by Tom G. Christensen in:
9703         http://lists.gnu.org/archive/html/bug-gnulib/2014-09/msg00071.html
9704         * lib/qsort.c [!_LIBC]: Include <config.h> first.
9706 2014-09-16  Dylan Cali  <calid1984@gmail.com>
9708         avltree-list: avoid compiler warnings (trivial)
9709         * lib/gl_anytree_list2.h: Add _GL_ATTRIBUTE_PURE to avoid
9710         -Werror=suggest-attribute=pure.
9711         * lib/gl_array_list.c: Likewise.
9712         * lib/gl_avltree_list.c (gl_avltree_list_check_invariants): Add extern
9713         declaration to avoid -Werror=missing-prototypes.  This is not added
9714         to a header as only exported for tests.  Add (void) to the
9715         check_invariants() call to indicate we're discarding the result
9716         in this context which avoids -Werror=unused-value.  Note we don't
9717         use ignore_value here to avoid a dependency as we know we'll not
9718         be adding __attribute__((warn_unused_result)) to check_invariants().
9719         Add _GL_ATTRIBUTE_CONST to avoid -Werror=suggest-attribute=const.
9721 2014-09-15  Paul Eggert  <eggert@cs.ucla.edu>
9723         qsort_r: new module, for GNU-style qsort_r
9724         * m4/qsort_r.m4: New file.  Forgot to add this earlier.
9726 2014-09-15  Werner LEMBERG  <wl@gnu.org>
9728         strerror_r-posix: support compilation with C++
9729         * lib/strerror_r.c: Add necessary C linkage declarations.
9731 2014-09-11  Johannes Zarl  <johannes.zarl@jku.at>
9733         fcntl-h: fix compilation with Intel C++ compiler (trivial)
9734         * lib/fcntl.in.h: ICC has the same issue as GCC <= 4.2.
9736 2014-09-09  Fridolin Pokorny  <fpokorny@redhat.com>
9738         mountlist: use /proc/self/mountinfo when available
9739         Use libmount to propagate device IDs provided by Linux in
9740         /proc/self/mountinfo.  This will give more accurate output when
9741         using df in chroot'ed environments as the device IDs are not
9742         determined by stat() which may be inaccurate within the chroot.
9743         * lib/mountlist.c (read_file_system_list): Use the libmount routines
9744         from util-linux to parse "/proc/self/mountinfo" or fall back to
9745         standard getmntent() processing.
9746         * m4/ls-mntd-fs.m4: Check for libmount only when 1-argument
9747         getmntent() is used, as is the case on GNU/Linux.
9749 2014-09-07  Eric Wong  <normalperson@yhbt.net>
9751         users.txt: add cmogstored
9752         cmogstored has used gnulib since the beginning in 2012 to support
9753         GNU/Linux, FreeBSD, and GNU/kFreeBSD.
9755 2014-09-05  Mathieu Anquetin  <mathieu@anquetin.eu>
9757         Trivial change.
9758         * gnulib-tool: Use same options as build-aux/bootstrap to download
9759         PO files.
9761 2014-09-05  Mathieu Anquetin  <mathieu@anquetin.eu>
9763         Trivial change.
9764         * gnulib-tool: Fallback to wget when rsync of PO files fails.
9766 2014-09-04  Eric Blake  <eblake@redhat.com>
9768         maintainer-makefile: add syntax check for useless ';;'
9769         * top/maint.mk (sc_prohibit_double_semicolon): New rule.
9771 2014-09-04  Paul Eggert  <eggert@cs.ucla.edu>
9773         pthread, pthread_sigmask, threadlib: port to Ubuntu 14.04
9774         Problem reported by Assaf Gordon in:
9775         http://lists.gnu.org/archive/html/bug-gnulib/2014-09/msg00023.html
9776         Apparently Ubuntu is doing some fancy link-time optimization
9777         that doesn't work with -lpthread but does work with -pthread.
9778         Work around the bug by preferring -pthread to -lpthread.
9779         * m4/pthread.m4 (gl_PTHREAD_CHECK):
9780         * m4/threadlib.m4 (gl_THREADLIB_BODY): Prefer -pthread to -lpthread.
9781         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK):
9782         Treat -pthread like -lpthread.
9784 2014-09-04  Eric Blake  <eblake@redhat.com>
9786         error: drop spurious semicolon
9787         * lib/error.c (__error_at_line): Fix ';;'.
9789 2014-09-02  Paul Eggert  <eggert@cs.ucla.edu>
9791         gnulib-common.m4: port to GCC 4.2.1 and Sun Studio 12 C++
9792         * m4/gnulib-common.m4 (AC_C_RESTRICT):
9793         Override AC_C_RESTRICT unconditionally.
9794         Update from autoconf, incorporating:
9795         2014-09-02 autoconf: port 'restrict' to GCC 4.2.1
9796         2009-01-28 Fix AC_C_RESTRICT for Sun Studio 12 C++.
9798 2014-09-01  Paul Eggert  <eggert@cs.ucla.edu>
9800         manywarnings: add GCC 4.9 warnings
9801         Also, make it easier to maintain this in the future.
9802         * build-aux/gcc-warning.spec: Add -Wabi-tag,
9803         -Wconditionally-supported, -Wdelete-incomplete,
9804         -Winherited-variadic-ctor, -Wvirtual-move-assign, -Wzerotrip.
9805         Remove duplicates.  Use tabs uniformly, as that's what 'cut' wants.
9806         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Add -Wdate-time,
9807         -Wopenmp-simd.  Use -fdiagnostics-show-option and -funit-at-a-time
9808         only for older GCC versions that need them.  Handle
9809         -Wnormalized=nfc specially, so that the 'comm' command used
9810         for maintenance doesn't get confused.
9812 2014-08-31  Paul Eggert  <eggert@cs.ucla.edu>
9814         vasnprintf: fix bugs in width computation
9815         * lib/vasnprintf.c (VASNPRINTF):
9816         Rework previous change, which introduced a bug,
9817         to avoid the warning in a different way.
9818         Avoid undefined behavior if the width arg is less than -INT_MAX.
9819         Avoid unnecessary use of HAS_WIDTH local.
9821 2014-08-31  Thien-Thi Nguyen  <ttn@gnu.org>  (tiny change)
9823         vasnprintf: Avoid signed/unsigned comparison warning.
9824         * lib/vasnprintf.c (VASNPRINTF): To calculate padding,
9825         compare end addr of generated string w/ maximum end addr.
9827 2013-08-30  Mats Erik Andersson  <gnu@gisladisker.se>  (tiny change)
9829         parse-datetime: Avoid pointer difference.
9830         * lib/parse-datetime.y (yylex): Compare pointer to end of buffer,
9831         instead of calculating difference of pointers.  This removes an
9832         annoying warning, devoid of any use.
9834 2014-08-29  Paul Eggert  <eggert@cs.ucla.edu>
9836         qsort_r: new module, for GNU-style qsort_r
9837         This works even on FreeBSD, which has an incompatible qsort_r API.
9838         * MODULES.html.sh: Add it.
9839         * doc/glibc-functions/qsort_r.texi: It's now supported.
9840         * lib/qsort.c: New file, taken from glibc with minor changes
9841         inside "#ifndef _LIBC" and with an unnecessary "#include <alloca.h>"
9842         removed.
9843         * lib/qsort_r.c: New file, compiled only on FreeBSD.
9844         * lib/stdlib.in.h (qsort_r): Declare in the usual way.
9845         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS):
9846         * modules/qsort_r, modules/qsort_r-tests: New files.
9847         * modules/stdlib (Makefile): Set up its defaults.
9848         * tests/test-qsort_r.c: New file.
9850 2014-08-08  Paul Eggert  <eggert@cs.ucla.edu>
9852         vla: new module
9853         GNU RCS can use this, mostly for documentation I expect.  See:
9854         http://lists.gnu.org/archive/html/bug-gnulib/2014-08/msg00025.html
9855         * MODULES.html.sh: Add vla.
9856         * lib/vla.h, modules/vla: New files.
9858 2014-08-07  Daiki Ueno  <ueno@gnu.org>
9860         localename: make gl_locale_name_thread really thread-safe on Windows
9861         * lib/localename.c [WINDOWS_NATIVE && !IN_LIBINTL]: Include
9862         "glthread/lock.h".
9863         (get_lcid_lock) [WINDOWS_NATIVE]: New variable.
9864         (get_lcid) [WINDOWS_NATIVE]: Lock while looking for an LCID.
9866 2014-08-07  Paul Eggert  <eggert@cs.ucla.edu>
9868         getpass: don't assume struct termios
9869         Problem report and trivial fix by Jonas 'Sortie' Termansen in:
9870         http://lists.gnu.org/archive/html/bug-gnulib/2014-08/msg00015.html
9871         * lib/getpass.c (getpass): Port to systems lacking struct termios.
9873         getdtablesize: fall back on sysconf (_SC_OPEN_MAX)
9874         Problem reported by Jonas 'Sortie' Termansen in:
9875         http://lists.gnu.org/archive/html/bug-gnulib/2014-08/msg00023.html
9876         * lib/getdtablesize.c (getdtablesize) [_SC_OPEN_MAX]:
9877         Implement via sysconf for platforms that lack getdtablesize.
9879         vararrays: modernize AC_C_VARARRAYS for C11
9880         This backports a change I recently made to Autoconf.
9881         * m4/vararrays.m4 (AC_C_VARARRAYS): Define __STDC_NO_VLA__ if
9882         VLAs are not supported, as this is what C11 does.  The old macro
9883         HAVE_C_VARARRAYS is still defined if they are supported, but is
9884         now obsolescent.  Also, check for VLA bug in GCC 3.4.3.
9886 2014-08-07  Alessandro Degano  <degano@cern.ch>  (tiny change)
9888         relocatable-prog-wrapper: port gettext to OS X 10.8 + GCC 4.8.1
9889         * build-aux/install-reloc (func_create_wrapper): Also wrap
9890         strerror-override, stat, stat.
9892 2014-08-05  Paul Eggert  <eggert@cs.ucla.edu>
9894         sys_select: fix FD_ZERO problem on Solaris 10
9895         * lib/sys_select.in.h: Fix Solaris 10 bug where "#include
9896         <sys/time.h>" followed by "#include <sys/select.h>" caused FD_ZERO
9897         to expand to an expression that invoked memset without necessarily
9898         including <string.h>.  The problem was that the first include
9899         defined _SYS_TIME_H, causing the second include to short-circuit.
9900         Fix a similar problem with <sys/types.h> followed by <sys/select.h>.
9901         Also, fix what appears to be a cut-and-paste typo, by replacing
9902         _GL_SYS_SELECT_H_REDIRECT_FROM_SYS_TIME_H with
9903         _GL_SYS_SELECT_H_REDIRECT_FROM_SYS_TYPES_H.
9905         accept: document Solaris 10 type glitch
9906         * doc/posix-functions/accept.texi (accept): Mention that
9907         Solaris 10 'accept' takes void * last arg, not socklen_t *.
9909 2014-08-04  Paul Eggert  <eggert@cs.ucla.edu>
9911         extern-inline: port to FreeBSD, DragonFly
9912         * m4/extern-inline.m4 (gl_EXTERN_INLINE): Also assume the bug
9913         is present if either __DragonFly__ or __FreeBSD__ is defined.
9914         FreeBSD problem reported by Andrey Borzenkov in:
9915         http://lists.gnu.org/archive/html/bug-gnulib/2014-07/msg00104.html
9916         Also, worry about __APPLE__ only if __MACH__ is also defined,
9917         as this is more consistent with the rest of gnulib.
9918         (_GL_EXTERN_INLINE_STDHEADER_BUG): Rename this internal macro from
9919         _GL_EXTERN_INLINE_APPLE_BUG, since the bug is not limited to Apple.
9921 2014-08-01  Siddhesh Poyarekar  <siddhesh@redhat.com>
9923         regex: Make #if/#ifdef usage consistent for DEBUG
9924         * lib/regex_internal.c: Use "#if defined DEBUG && DEBUG" instead
9925         of the inconsistent usage of #if and #ifdef as that works with
9926         both Glibc and Gnulib's style.
9928 2014-07-31  Eric Blake  <eblake@redhat.com>
9930         openat-die: use _Noreturn markup
9931         * modules/openat-die (Depends-on): Add snippet/_Noreturn.
9932         * lib/openat-die.c (openat_save_fail, openat_restore_fail): Mark
9933         _Noreturn.
9935 2014-07-30  Eric Blake  <eblake@redhat.com>
9937         test-open: port to cygwin, which lacks Fortify
9938         * tests/test-open.h (ALWAYS_INLINE): New macro.
9939         (__always_inline): Don't abuse internal symbol on non-glibc.
9941 2014-07-19  Eli Zaretskii  <eliz@gnu.org>
9943         localename: Enforce declarations before statements.
9944         * localename.c (gl_locale_name_thread): Declare 'lcid' before the
9945         first statement.
9947 2014-07-18  Jim Meyering  <meyering@fb.com>
9949         test-userspec: don't look up numeric user names
9950         * tests/test-userspec.c: I found a system for which getpwnam("0")
9951         returned a pointer to a non-root user's entry, and that made the
9952         test fail.
9953         (T): Prefix each numeric input with "+", to inhibit lookup.
9955 2014-07-15  Eli Zaretskii  <eliz@gnu.org>
9957         localcharset, localename: MS-Windows support for non-default locales
9958         * lib/localcharset.c (locale_charset) [WINDOWS_NATIVE]: Before
9959         falling back on the default system codepage, try extracting
9960         the codepage from what 'setlocale' returns.  This allows to
9961         take into account changes of the codeset due to non-default
9962         locale set by a previous call to 'setlocale'.
9963         * lib/localename.c (LOCALE_NAME_MAX_LENGTH) [WINDOWS_NATIVE]:
9964         Define if not already defined.
9965         (enum_locales_fn, get_lcid) [WINDOWS_NATIVE]: New functions.
9966         (gl_locale_name_thread) [WINDOWS_NATIVE]: Produce the
9967         current locale by calling 'setlocale', then converting the
9968         locale name into LCID by calling 'get_lcid'.  This allows to
9969         take into account changes in the current locale from the
9970         default one, in contrast to GetThreadLocale.
9972 2014-07-14  Daiki Ueno  <ueno@gnu.org>
9974         announce-gen: avoid failure when Digest::SHA is installed
9975         When Digest::SHA is available, Digest::SHA1 is not loaded and thus
9976         Digest::SHA1->new in print_checksums fails.
9977         * build-aux/announce-gen (digest_classes): New associative array
9978         for available message digest implementations.
9979         (print_locations): Use it.
9981 2014-07-13  Pádraig Brady  <P@draigBrady.com>
9983         gettext: revert "update macros to version 0.19"
9984         This reverts commit 9b9370ca, as it currently requires that
9985         developers of any project that explicitly uses the gettext module
9986         or implicitly uses it through the utimens-tests or
9987         futimens-tests modules, use gettext >= 0.19.
9988         However there are some stability and availablity issues with
9989         that version at present.  We can reinstate this soon, when stability
9990         is addressed and packages are more readily available.
9992 2014-07-12  Jim Meyering  <meyering@fb.com>
9994         regex: don't deref NULL upon heap allocation failure
9995         * lib/regcomp.c (parse_dup_op): Handle duplicate_tree
9996         failure in one more place.
9997         To trigger the segfault, configure grep -with-included-regex,
9998         build it, and run these commands:
9999         ( ulimit -v 300000; echo a|src/grep -E a+++++++++++++++++++++ )
10000         I discovered this while replying to a private report from
10001         Jens Schleusener about excessive memory consumption by grep
10002         when using a regular expression like the one above.
10004 2014-07-11  Paul Eggert  <eggert@cs.ucla.edu>
10006         regex: fix memory leak in compiler
10007         Fix by Andreas Schwab in:
10008         https://sourceware.org/ml/libc-alpha/2014-06/msg00503.html
10009         * lib/regcomp.c (parse_reg_exp): Deallocate partially
10010         constructed tree before returning error.
10012 2014-07-10  Assaf Gordon  <assafgordon@gmail.com>
10014         announce-gen: avoid perl warnings
10015         * build-aux/announce-gen: add two minor checks to avoid
10016         "use of uninitialized value" warnings when command-line parameters are
10017         missing.
10019 2014-07-10  Assaf Gordon  <assafgordon@gmail.com>
10021         localename: avoid -Wsuggest-attribute={const,pure} warnings
10022         * lib/localename.c (string_has): Tag internal function as pure.
10023         * lib/localename.h (gl_locale_name_default): Tag extern declaration
10024         as const when appropriate.
10026 2014-07-10  Eli Zaretskii  <eliz@gnu.org>
10028         nl_langinfo: Fix last change.
10029         * lib/nl_langinfo.c (includes): Drop redundant include.
10031 2014-07-10  Siddhesh Poyarekar  <siddhesh@redhat.com>
10033         error: Fix -Wundef warnings in glibc
10034         * lib/error.c [_LIBC]: Define default macros for
10035         glibc.
10036         (print_errno_message) [defined HAVE_STRERROR_R || _LIBC]:
10037         Check _LIBC before STRERROR_R_CHAR_P.
10039         error: Sync from glibc master
10040         * lib/error.c [_LIBC]: Remove INTUSE usage.
10041         (error_tail): Remove unused macro ALLOCA_LIMIT.
10042         Fix potential buffer overflow.  Fix potential NULL dereference
10043         in strcmp.
10045 2014-07-09  Pavel Hrdina  <phrdina@redhat.com> (tiny change)
10047         nl_langinfo: fix build under mingw
10048         * lib/nl_langinfo.c (includes): Pick up <windows.h> for GetACP().
10050 2014-07-09  Andrew D Warshall  <warshall@99main.com>
10052         mountlist: do not classify a bind-mounted dir entry as "dummy"
10053         * m4/ls-mntd-fs.m4: Check for hasmntopt() on platforms with
10054         1-argument getmntent() (instead of assuming absence).
10056 2014-07-08  Eric Blake  <eblake@redhat.com>
10058         maint.mk: less syntax-check noise when SIGPIPE is ignored
10059         * top/maint.mk (_sc_header_without_use)
10060         (sc_require_config_h_first): Parse full list.
10062 2014-07-07  Eli Zaretskii  <eliz@gnu.org>
10063             Paul Eggert  <eggert@cs.ucla.edu>
10065         nl_langinfo: CODESET on MS-Windows and more items from localeconv
10066         * lib/langinfo.in.h (DECIMAL_POINT, THOUSANDS_SEP, GROUPING)
10067         (CURRENCY_SYMBOL, INT_CURR_SYMBOL, MON_DECIMAL_POINT)
10068         (MON_THOUSANDS_SEP, MON_GROUPING, POSITIVE_SIGN, NEGATIVE_SIGN)
10069         (FRAC_DIGITS, INT_FRAC_DIGITS, P_CS_PRECEDES, N_CS_PRECEDES)
10070         (P_SEP_BY_SPACE, N_SEP_BY_SPACE, P_SIGN_POSN, N_SIGN_POSN): Define.
10071         * lib/nl_langinfo.c: Include <locale.h> and <string.h> early.
10072         Include <stdio.h> if Microsoft Windows.
10073         Include <time.h> if !REPLACE_NL_LANGINFO.
10074         (ctype_codeset): New function, taken from rpl_nl_langinfo,
10075         and with improvements for Microsoft Windows.
10076         (rpl_nl_langinfo): Use it.
10077         (nl_langinfo) [!REPLACE_NL_LANGINFO]: Likewise.
10078         Compute the values of RADIXCHAR, THOUSEP, GROUPING, CRNCYSTR,
10079         INT_CURR_SYMBOL, MON_DECIMAL_POINT, MON_THOUSANDS_SEP,
10080         MON_GROUPING, POSITIVE_SIGN, NEGATIVE_SIGN, FRAC_DIGITS,
10081         INT_FRAC_DIGITS, P_CS_PRECEDES, N_CS_PRECEDES, P_SEP_BY_SPACE,
10082         N_SEP_BY_SPACE, P_SIGN_POSN, and N_SIGN_POSN from the
10083         corresponding values returned by 'localeconv'.  Compute the values
10084         of AM_STR, PM_STR, DAY_n, ABDAY_n, MON_n, and ABMON_n by calling
10085         'strftime' with a suitable struct tm value.
10087 2014-07-05  Paul Eggert  <eggert@cs.ucla.edu>
10089         Bruno Haible has stepped down as maintainer.
10090         See Karl Berry in:
10091         http://lists.gnu.org/archive/html/bug-gnulib/2014-07/msg00004.html
10092         Daiki Ueno has volunteered to maintain libunistring; see:
10093         http://lists.gnu.org/archive/html/bug-gnulib/2014-07/msg00005.html
10094         * modules/gen-uni-tables, modules/libunistring:
10095         * modules/libunistring-optional, modules/ucs4-utf16, modules/ucs4-utf8:
10096         * modules/unicase/base, modules/unicase/cased:
10097         * modules/unicase/empty-prefix-context:
10098         * modules/unicase/empty-suffix-context, modules/unicase/ignorable:
10099         * modules/unicase/locale-language, modules/unicase/special-casing:
10100         * modules/unicase/tocasefold, modules/unicase/tolower:
10101         * modules/unicase/totitle, modules/unicase/toupper:
10102         * modules/unicase/u16-casecmp, modules/unicase/u16-casecoll:
10103         * modules/unicase/u16-casefold, modules/unicase/u16-casemap:
10104         * modules/unicase/u16-casexfrm, modules/unicase/u16-ct-casefold:
10105         * modules/unicase/u16-ct-tolower, modules/unicase/u16-ct-totitle:
10106         * modules/unicase/u16-ct-toupper, modules/unicase/u16-is-cased:
10107         * modules/unicase/u16-is-casefolded, modules/unicase/u16-is-invariant:
10108         * modules/unicase/u16-is-lowercase, modules/unicase/u16-is-titlecase:
10109         * modules/unicase/u16-is-uppercase, modules/unicase/u16-prefix-context:
10110         * modules/unicase/u16-suffix-context, modules/unicase/u16-tolower:
10111         * modules/unicase/u16-totitle, modules/unicase/u16-toupper:
10112         * modules/unicase/u32-casecmp, modules/unicase/u32-casecoll:
10113         * modules/unicase/u32-casefold, modules/unicase/u32-casemap:
10114         * modules/unicase/u32-casexfrm, modules/unicase/u32-ct-casefold:
10115         * modules/unicase/u32-ct-tolower, modules/unicase/u32-ct-totitle:
10116         * modules/unicase/u32-ct-toupper, modules/unicase/u32-is-cased:
10117         * modules/unicase/u32-is-casefolded, modules/unicase/u32-is-invariant:
10118         * modules/unicase/u32-is-lowercase, modules/unicase/u32-is-titlecase:
10119         * modules/unicase/u32-is-uppercase, modules/unicase/u32-prefix-context:
10120         * modules/unicase/u32-suffix-context, modules/unicase/u32-tolower:
10121         * modules/unicase/u32-totitle, modules/unicase/u32-toupper:
10122         * modules/unicase/u8-casecmp, modules/unicase/u8-casecoll:
10123         * modules/unicase/u8-casefold, modules/unicase/u8-casemap:
10124         * modules/unicase/u8-casexfrm, modules/unicase/u8-ct-casefold:
10125         * modules/unicase/u8-ct-tolower, modules/unicase/u8-ct-totitle:
10126         * modules/unicase/u8-ct-toupper, modules/unicase/u8-is-cased:
10127         * modules/unicase/u8-is-casefolded, modules/unicase/u8-is-invariant:
10128         * modules/unicase/u8-is-lowercase, modules/unicase/u8-is-titlecase:
10129         * modules/unicase/u8-is-uppercase, modules/unicase/u8-prefix-context:
10130         * modules/unicase/u8-suffix-context, modules/unicase/u8-tolower:
10131         * modules/unicase/u8-totitle, modules/unicase/u8-toupper:
10132         * modules/unicase/ulc-casecmp, modules/unicase/ulc-casecoll:
10133         * modules/unicase/ulc-casexfrm, modules/unicodeio:
10134         * modules/uniconv/base, modules/uniconv/u16-conv-from-enc:
10135         * modules/uniconv/u16-conv-to-enc:
10136         * modules/uniconv/u16-strconv-from-enc:
10137         * modules/uniconv/u16-strconv-from-locale:
10138         * modules/uniconv/u16-strconv-to-enc:
10139         * modules/uniconv/u16-strconv-to-locale:
10140         * modules/uniconv/u32-conv-from-enc, modules/uniconv/u32-conv-to-enc:
10141         * modules/uniconv/u32-strconv-from-enc:
10142         * modules/uniconv/u32-strconv-from-locale:
10143         * modules/uniconv/u32-strconv-to-enc:
10144         * modules/uniconv/u32-strconv-to-locale:
10145         * modules/uniconv/u8-conv-from-enc, modules/uniconv/u8-conv-to-enc:
10146         * modules/uniconv/u8-strconv-from-enc:
10147         * modules/uniconv/u8-strconv-from-locale:
10148         * modules/uniconv/u8-strconv-to-enc:
10149         * modules/uniconv/u8-strconv-to-locale, modules/unictype/base:
10150         * modules/unictype/bidicategory-all:
10151         * modules/unictype/bidicategory-byname:
10152         * modules/unictype/bidicategory-name, modules/unictype/bidicategory-of:
10153         * modules/unictype/bidicategory-test, modules/unictype/bidiclass-all:
10154         * modules/unictype/bidiclass-byname:
10155         * modules/unictype/bidiclass-longname, modules/unictype/bidiclass-name:
10156         * modules/unictype/bidiclass-of, modules/unictype/bidiclass-test:
10157         * modules/unictype/block-all, modules/unictype/block-list:
10158         * modules/unictype/block-of, modules/unictype/block-test:
10159         * modules/unictype/category-C, modules/unictype/category-Cc:
10160         * modules/unictype/category-Cf, modules/unictype/category-Cn:
10161         * modules/unictype/category-Co, modules/unictype/category-Cs:
10162         * modules/unictype/category-L, modules/unictype/category-LC:
10163         * modules/unictype/category-Ll, modules/unictype/category-Lm:
10164         * modules/unictype/category-Lo, modules/unictype/category-Lt:
10165         * modules/unictype/category-Lu, modules/unictype/category-M:
10166         * modules/unictype/category-Mc, modules/unictype/category-Me:
10167         * modules/unictype/category-Mn, modules/unictype/category-N:
10168         * modules/unictype/category-Nd, modules/unictype/category-Nl:
10169         * modules/unictype/category-No, modules/unictype/category-P:
10170         * modules/unictype/category-Pc, modules/unictype/category-Pd:
10171         * modules/unictype/category-Pe, modules/unictype/category-Pf:
10172         * modules/unictype/category-Pi, modules/unictype/category-Po:
10173         * modules/unictype/category-Ps, modules/unictype/category-S:
10174         * modules/unictype/category-Sc, modules/unictype/category-Sk:
10175         * modules/unictype/category-Sm, modules/unictype/category-So:
10176         * modules/unictype/category-Z, modules/unictype/category-Zl:
10177         * modules/unictype/category-Zp, modules/unictype/category-Zs:
10178         * modules/unictype/category-all, modules/unictype/category-and:
10179         * modules/unictype/category-and-not, modules/unictype/category-byname:
10180         * modules/unictype/category-longname, modules/unictype/category-name:
10181         * modules/unictype/category-none, modules/unictype/category-of:
10182         * modules/unictype/category-or, modules/unictype/category-test:
10183         * modules/unictype/category-test-withtable:
10184         * modules/unictype/combining-class:
10185         * modules/unictype/combining-class-all:
10186         * modules/unictype/combining-class-byname:
10187         * modules/unictype/combining-class-longname:
10188         * modules/unictype/combining-class-name, modules/unictype/ctype-alnum:
10189         * modules/unictype/ctype-alpha, modules/unictype/ctype-blank:
10190         * modules/unictype/ctype-cntrl, modules/unictype/ctype-digit:
10191         * modules/unictype/ctype-graph, modules/unictype/ctype-lower:
10192         * modules/unictype/ctype-print, modules/unictype/ctype-punct:
10193         * modules/unictype/ctype-space, modules/unictype/ctype-upper:
10194         * modules/unictype/ctype-xdigit, modules/unictype/decimal-digit:
10195         * modules/unictype/digit, modules/unictype/joininggroup-all:
10196         * modules/unictype/joininggroup-byname:
10197         * modules/unictype/joininggroup-name, modules/unictype/joininggroup-of:
10198         * modules/unictype/joiningtype-all:
10199         * modules/unictype/joiningtype-byname:
10200         * modules/unictype/joiningtype-longname:
10201         * modules/unictype/joiningtype-name, modules/unictype/joiningtype-of:
10202         * modules/unictype/mirror, modules/unictype/numeric:
10203         * modules/unictype/property-all, modules/unictype/property-alphabetic:
10204         * modules/unictype/property-ascii-hex-digit:
10205         * modules/unictype/property-bidi-arabic-digit:
10206         * modules/unictype/property-bidi-arabic-right-to-left:
10207         * modules/unictype/property-bidi-block-separator:
10208         * modules/unictype/property-bidi-boundary-neutral:
10209         * modules/unictype/property-bidi-common-separator:
10210         * modules/unictype/property-bidi-control:
10211         * modules/unictype/property-bidi-embedding-or-override:
10212         * modules/unictype/property-bidi-eur-num-separator:
10213         * modules/unictype/property-bidi-eur-num-terminator:
10214         * modules/unictype/property-bidi-european-digit:
10215         * modules/unictype/property-bidi-hebrew-right-to-left:
10216         * modules/unictype/property-bidi-left-to-right:
10217         * modules/unictype/property-bidi-non-spacing-mark:
10218         * modules/unictype/property-bidi-other-neutral:
10219         * modules/unictype/property-bidi-pdf:
10220         * modules/unictype/property-bidi-segment-separator:
10221         * modules/unictype/property-bidi-whitespace:
10222         * modules/unictype/property-byname:
10223         * modules/unictype/property-case-ignorable:
10224         * modules/unictype/property-cased:
10225         * modules/unictype/property-changes-when-casefolded:
10226         * modules/unictype/property-changes-when-casemapped:
10227         * modules/unictype/property-changes-when-lowercased:
10228         * modules/unictype/property-changes-when-titlecased:
10229         * modules/unictype/property-changes-when-uppercased:
10230         * modules/unictype/property-combining:
10231         * modules/unictype/property-composite:
10232         * modules/unictype/property-currency-symbol:
10233         * modules/unictype/property-dash:
10234         * modules/unictype/property-decimal-digit:
10235         * modules/unictype/property-default-ignorable-code-point:
10236         * modules/unictype/property-deprecated:
10237         * modules/unictype/property-diacritic:
10238         * modules/unictype/property-extender:
10239         * modules/unictype/property-format-control:
10240         * modules/unictype/property-grapheme-base:
10241         * modules/unictype/property-grapheme-extend:
10242         * modules/unictype/property-grapheme-link:
10243         * modules/unictype/property-hex-digit:
10244         * modules/unictype/property-hyphen:
10245         * modules/unictype/property-id-continue:
10246         * modules/unictype/property-id-start:
10247         * modules/unictype/property-ideographic:
10248         * modules/unictype/property-ids-binary-operator:
10249         * modules/unictype/property-ids-trinary-operator:
10250         * modules/unictype/property-ignorable-control:
10251         * modules/unictype/property-iso-control:
10252         * modules/unictype/property-join-control:
10253         * modules/unictype/property-left-of-pair:
10254         * modules/unictype/property-line-separator:
10255         * modules/unictype/property-logical-order-exception:
10256         * modules/unictype/property-lowercase, modules/unictype/property-math:
10257         * modules/unictype/property-non-break:
10258         * modules/unictype/property-not-a-character:
10259         * modules/unictype/property-numeric:
10260         * modules/unictype/property-other-alphabetic:
10261         * modules/unictype/property-other-default-ignorable-code-point:
10262         * modules/unictype/property-other-grapheme-extend:
10263         * modules/unictype/property-other-id-continue:
10264         * modules/unictype/property-other-id-start:
10265         * modules/unictype/property-other-lowercase:
10266         * modules/unictype/property-other-math:
10267         * modules/unictype/property-other-uppercase:
10268         * modules/unictype/property-paired-punctuation:
10269         * modules/unictype/property-paragraph-separator:
10270         * modules/unictype/property-pattern-syntax:
10271         * modules/unictype/property-pattern-white-space:
10272         * modules/unictype/property-private-use:
10273         * modules/unictype/property-punctuation:
10274         * modules/unictype/property-quotation-mark:
10275         * modules/unictype/property-radical:
10276         * modules/unictype/property-sentence-terminal:
10277         * modules/unictype/property-soft-dotted:
10278         * modules/unictype/property-space:
10279         * modules/unictype/property-terminal-punctuation:
10280         * modules/unictype/property-test, modules/unictype/property-titlecase:
10281         * modules/unictype/property-unassigned-code-value:
10282         * modules/unictype/property-unified-ideograph:
10283         * modules/unictype/property-uppercase:
10284         * modules/unictype/property-variation-selector:
10285         * modules/unictype/property-white-space:
10286         * modules/unictype/property-xid-continue:
10287         * modules/unictype/property-xid-start:
10288         * modules/unictype/property-zero-width, modules/unictype/scripts:
10289         * modules/unictype/scripts-all, modules/unictype/syntax-c-ident:
10290         * modules/unictype/syntax-c-whitespace:
10291         * modules/unictype/syntax-java-ident:
10292         * modules/unictype/syntax-java-whitespace, modules/unigbrk/base:
10293         * modules/unigbrk/u16-grapheme-breaks:
10294         * modules/unigbrk/u16-grapheme-next, modules/unigbrk/u16-grapheme-prev:
10295         * modules/unigbrk/u32-grapheme-breaks:
10296         * modules/unigbrk/u32-grapheme-next, modules/unigbrk/u32-grapheme-prev:
10297         * modules/unigbrk/u8-grapheme-breaks, modules/unigbrk/u8-grapheme-next:
10298         * modules/unigbrk/u8-grapheme-prev, modules/unigbrk/uc-gbrk-prop:
10299         * modules/unigbrk/uc-is-grapheme-break:
10300         * modules/unigbrk/ulc-grapheme-breaks, modules/unilbrk/base:
10301         * modules/unilbrk/tables, modules/unilbrk/u16-possible-linebreaks:
10302         * modules/unilbrk/u16-width-linebreaks:
10303         * modules/unilbrk/u32-possible-linebreaks:
10304         * modules/unilbrk/u32-width-linebreaks:
10305         * modules/unilbrk/u8-possible-linebreaks:
10306         * modules/unilbrk/u8-width-linebreaks, modules/unilbrk/ulc-common:
10307         * modules/unilbrk/ulc-possible-linebreaks:
10308         * modules/unilbrk/ulc-width-linebreaks, modules/uniname/base:
10309         * modules/uniname/uniname, modules/uninorm/base:
10310         * modules/uninorm/canonical-decomposition:
10311         * modules/uninorm/compat-decomposition, modules/uninorm/composition:
10312         * modules/uninorm/decompose-internal, modules/uninorm/decomposing-form:
10313         * modules/uninorm/decomposition, modules/uninorm/decomposition-table:
10314         * modules/uninorm/filter, modules/uninorm/nfc, modules/uninorm/nfd:
10315         * modules/uninorm/nfkc, modules/uninorm/nfkd:
10316         * modules/uninorm/u16-normalize, modules/uninorm/u16-normcmp:
10317         * modules/uninorm/u16-normcoll, modules/uninorm/u16-normxfrm:
10318         * modules/uninorm/u32-normalize, modules/uninorm/u32-normcmp:
10319         * modules/uninorm/u32-normcoll, modules/uninorm/u32-normxfrm:
10320         * modules/uninorm/u8-normalize, modules/uninorm/u8-normcmp:
10321         * modules/uninorm/u8-normcoll, modules/uninorm/u8-normxfrm:
10322         * modules/unistdio/base, modules/unistdio/u-printf-args:
10323         * modules/unistdio/u16-asnprintf, modules/unistdio/u16-asprintf:
10324         * modules/unistdio/u16-printf-parse, modules/unistdio/u16-snprintf:
10325         * modules/unistdio/u16-sprintf, modules/unistdio/u16-u16-asnprintf:
10326         * modules/unistdio/u16-u16-asprintf, modules/unistdio/u16-u16-snprintf:
10327         * modules/unistdio/u16-u16-sprintf:
10328         * modules/unistdio/u16-u16-vasnprintf:
10329         * modules/unistdio/u16-u16-vasprintf:
10330         * modules/unistdio/u16-u16-vsnprintf:
10331         * modules/unistdio/u16-u16-vsprintf, modules/unistdio/u16-vasnprintf:
10332         * modules/unistdio/u16-vasprintf, modules/unistdio/u16-vsnprintf:
10333         * modules/unistdio/u16-vsprintf, modules/unistdio/u32-asnprintf:
10334         * modules/unistdio/u32-asprintf, modules/unistdio/u32-printf-parse:
10335         * modules/unistdio/u32-snprintf, modules/unistdio/u32-sprintf:
10336         * modules/unistdio/u32-u32-asnprintf:
10337         * modules/unistdio/u32-u32-asprintf, modules/unistdio/u32-u32-snprintf:
10338         * modules/unistdio/u32-u32-sprintf:
10339         * modules/unistdio/u32-u32-vasnprintf:
10340         * modules/unistdio/u32-u32-vasprintf:
10341         * modules/unistdio/u32-u32-vsnprintf:
10342         * modules/unistdio/u32-u32-vsprintf, modules/unistdio/u32-vasnprintf:
10343         * modules/unistdio/u32-vasprintf, modules/unistdio/u32-vsnprintf:
10344         * modules/unistdio/u32-vsprintf, modules/unistdio/u8-asnprintf:
10345         * modules/unistdio/u8-asprintf, modules/unistdio/u8-printf-parse:
10346         * modules/unistdio/u8-snprintf, modules/unistdio/u8-sprintf:
10347         * modules/unistdio/u8-u8-asnprintf, modules/unistdio/u8-u8-asprintf:
10348         * modules/unistdio/u8-u8-snprintf, modules/unistdio/u8-u8-sprintf:
10349         * modules/unistdio/u8-u8-vasnprintf, modules/unistdio/u8-u8-vasprintf:
10350         * modules/unistdio/u8-u8-vsnprintf, modules/unistdio/u8-u8-vsprintf:
10351         * modules/unistdio/u8-vasnprintf, modules/unistdio/u8-vasprintf:
10352         * modules/unistdio/u8-vsnprintf, modules/unistdio/u8-vsprintf:
10353         * modules/unistdio/ulc-asnprintf, modules/unistdio/ulc-asprintf:
10354         * modules/unistdio/ulc-fprintf, modules/unistdio/ulc-printf-parse:
10355         * modules/unistdio/ulc-snprintf, modules/unistdio/ulc-sprintf:
10356         * modules/unistdio/ulc-vasnprintf, modules/unistdio/ulc-vasprintf:
10357         * modules/unistdio/ulc-vfprintf, modules/unistdio/ulc-vsnprintf:
10358         * modules/unistdio/ulc-vsprintf, modules/unistr/base:
10359         * modules/unistr/u16-check, modules/unistr/u16-chr:
10360         * modules/unistr/u16-cmp, modules/unistr/u16-cmp2:
10361         * modules/unistr/u16-cpy, modules/unistr/u16-cpy-alloc:
10362         * modules/unistr/u16-endswith, modules/unistr/u16-mblen:
10363         * modules/unistr/u16-mbsnlen, modules/unistr/u16-mbtouc:
10364         * modules/unistr/u16-mbtouc-unsafe, modules/unistr/u16-mbtoucr:
10365         * modules/unistr/u16-move, modules/unistr/u16-next:
10366         * modules/unistr/u16-prev, modules/unistr/u16-set:
10367         * modules/unistr/u16-startswith, modules/unistr/u16-stpcpy:
10368         * modules/unistr/u16-stpncpy, modules/unistr/u16-strcat:
10369         * modules/unistr/u16-strchr, modules/unistr/u16-strcmp:
10370         * modules/unistr/u16-strcoll, modules/unistr/u16-strcpy:
10371         * modules/unistr/u16-strcspn, modules/unistr/u16-strdup:
10372         * modules/unistr/u16-strlen, modules/unistr/u16-strmblen:
10373         * modules/unistr/u16-strmbtouc, modules/unistr/u16-strncat:
10374         * modules/unistr/u16-strncmp, modules/unistr/u16-strncpy:
10375         * modules/unistr/u16-strnlen, modules/unistr/u16-strpbrk:
10376         * modules/unistr/u16-strrchr, modules/unistr/u16-strspn:
10377         * modules/unistr/u16-strstr, modules/unistr/u16-strtok:
10378         * modules/unistr/u16-to-u32, modules/unistr/u16-to-u8:
10379         * modules/unistr/u16-uctomb, modules/unistr/u32-check:
10380         * modules/unistr/u32-chr, modules/unistr/u32-cmp:
10381         * modules/unistr/u32-cmp2, modules/unistr/u32-cpy:
10382         * modules/unistr/u32-cpy-alloc, modules/unistr/u32-endswith:
10383         * modules/unistr/u32-mblen, modules/unistr/u32-mbsnlen:
10384         * modules/unistr/u32-mbtouc, modules/unistr/u32-mbtouc-unsafe:
10385         * modules/unistr/u32-mbtoucr, modules/unistr/u32-move:
10386         * modules/unistr/u32-next, modules/unistr/u32-prev:
10387         * modules/unistr/u32-set, modules/unistr/u32-startswith:
10388         * modules/unistr/u32-stpcpy, modules/unistr/u32-stpncpy:
10389         * modules/unistr/u32-strcat, modules/unistr/u32-strchr:
10390         * modules/unistr/u32-strcmp, modules/unistr/u32-strcoll:
10391         * modules/unistr/u32-strcpy, modules/unistr/u32-strcspn:
10392         * modules/unistr/u32-strdup, modules/unistr/u32-strlen:
10393         * modules/unistr/u32-strmblen, modules/unistr/u32-strmbtouc:
10394         * modules/unistr/u32-strncat, modules/unistr/u32-strncmp:
10395         * modules/unistr/u32-strncpy, modules/unistr/u32-strnlen:
10396         * modules/unistr/u32-strpbrk, modules/unistr/u32-strrchr:
10397         * modules/unistr/u32-strspn, modules/unistr/u32-strstr:
10398         * modules/unistr/u32-strtok, modules/unistr/u32-to-u16:
10399         * modules/unistr/u32-to-u8, modules/unistr/u32-uctomb:
10400         * modules/unistr/u8-check, modules/unistr/u8-chr:
10401         * modules/unistr/u8-cmp, modules/unistr/u8-cmp2, modules/unistr/u8-cpy:
10402         * modules/unistr/u8-cpy-alloc, modules/unistr/u8-endswith:
10403         * modules/unistr/u8-mblen, modules/unistr/u8-mbsnlen:
10404         * modules/unistr/u8-mbtouc, modules/unistr/u8-mbtouc-unsafe:
10405         * modules/unistr/u8-mbtoucr, modules/unistr/u8-move:
10406         * modules/unistr/u8-next, modules/unistr/u8-prev:
10407         * modules/unistr/u8-set, modules/unistr/u8-startswith:
10408         * modules/unistr/u8-stpcpy, modules/unistr/u8-stpncpy:
10409         * modules/unistr/u8-strcat, modules/unistr/u8-strchr:
10410         * modules/unistr/u8-strcmp, modules/unistr/u8-strcoll:
10411         * modules/unistr/u8-strcpy, modules/unistr/u8-strcspn:
10412         * modules/unistr/u8-strdup, modules/unistr/u8-strlen:
10413         * modules/unistr/u8-strmblen, modules/unistr/u8-strmbtouc:
10414         * modules/unistr/u8-strncat, modules/unistr/u8-strncmp:
10415         * modules/unistr/u8-strncpy, modules/unistr/u8-strnlen:
10416         * modules/unistr/u8-strpbrk, modules/unistr/u8-strrchr:
10417         * modules/unistr/u8-strspn, modules/unistr/u8-strstr:
10418         * modules/unistr/u8-strtok, modules/unistr/u8-to-u16:
10419         * modules/unistr/u8-to-u32, modules/unistr/u8-uctomb, modules/unitypes:
10420         * modules/uniwbrk/base, modules/uniwbrk/table:
10421         * modules/uniwbrk/u16-wordbreaks, modules/uniwbrk/u32-wordbreaks:
10422         * modules/uniwbrk/u8-wordbreaks, modules/uniwbrk/ulc-wordbreaks:
10423         * modules/uniwbrk/wordbreak-property, modules/uniwidth/base:
10424         * modules/uniwidth/u16-strwidth, modules/uniwidth/u16-width:
10425         * modules/uniwidth/u32-strwidth, modules/uniwidth/u32-width:
10426         * modules/uniwidth/u8-strwidth, modules/uniwidth/u8-width:
10427         * modules/uniwidth/width, modules/utf16-ucs4:
10428         * modules/utf16-ucs4-unsafe, modules/utf8-ucs4:
10429         * modules/utf8-ucs4-unsafe:
10430         Change maintainer from Bruno Haible to Daiki Ueno.
10431         This is my guess at the libunistring modules; please feel free
10432         to fix if I guessed incorrectly.
10433         * modules/accept4, modules/acl, modules/acos, modules/acosf:
10434         * modules/alignof, modules/amemxfrm, modules/ansi-c++-opt:
10435         * modules/areadlink, modules/array-list, modules/array-mergesort:
10436         * modules/array-oset, modules/asin, modules/asinf, modules/astrxfrm:
10437         * modules/atan, modules/atan2, modules/atan2f, modules/atanf:
10438         * modules/avltree-list, modules/avltree-oset, modules/avltreehash-list:
10439         * modules/binary-io, modules/bison-i18n, modules/btowc:
10440         * modules/c-ctype, modules/c-strcase, modules/c-strcaseeq:
10441         * modules/c-strcasestr, modules/c-strstr, modules/calloc-posix:
10442         * modules/canonicalize-lgpl, modules/careadlinkat, modules/carray-list:
10443         * modules/cbrt, modules/cbrt-ieee, modules/cbrtf, modules/cbrtf-ieee:
10444         * modules/cbrtl, modules/cbrtl-ieee, modules/ceil, modules/ceil-ieee:
10445         * modules/ceilf, modules/ceilf-ieee, modules/ceill, modules/ceill-ieee:
10446         * modules/chdir, modules/classpath, modules/clean-temp, modules/close:
10447         * modules/closedir, modules/concat-filename, modules/copy-file:
10448         * modules/copysign, modules/copysignf, modules/copysignl, modules/cos:
10449         * modules/cosf, modules/cosh, modules/coshf, modules/csharpcomp:
10450         * modules/csharpcomp-script, modules/csharpexec:
10451         * modules/csharpexec-script, modules/ctype, modules/diffseq:
10452         * modules/dprintf, modules/dprintf-posix, modules/dup:
10453         * modules/dup2-obsolete, modules/dup3, modules/duplocale:
10454         * modules/eealloc, modules/environ, modules/erf, modules/erfc:
10455         * modules/errno, modules/execute, modules/exp, modules/exp-ieee:
10456         * modules/exp2, modules/exp2-ieee, modules/exp2f, modules/exp2f-ieee:
10457         * modules/exp2l, modules/exp2l-ieee, modules/expf, modules/expf-ieee:
10458         * modules/expl, modules/expl-ieee, modules/expm1, modules/expm1-ieee:
10459         * modules/expm1f, modules/expm1f-ieee, modules/expm1l:
10460         * modules/expm1l-ieee, modules/fabs, modules/fabs-ieee, modules/fabsf:
10461         * modules/fabsf-ieee, modules/fabsl, modules/fabsl-ieee:
10462         * modules/fatal-signal, modules/fbufmode, modules/fchdir:
10463         * modules/fclose, modules/fd-hook, modules/fdopen, modules/filename:
10464         * modules/findprog, modules/findprog-lgpl, modules/floor:
10465         * modules/floor-ieee, modules/floorf, modules/floorf-ieee:
10466         * modules/floorl, modules/floorl-ieee, modules/fma, modules/fma-ieee:
10467         * modules/fmaf, modules/fmaf-ieee, modules/fmal, modules/fmal-ieee:
10468         * modules/fmod, modules/fmod-ieee, modules/fmodf, modules/fmodf-ieee:
10469         * modules/fmodl, modules/fmodl-ieee, modules/fopen, modules/fpieee:
10470         * modules/fprintf-posix, modules/fpucw, modules/fpurge:
10471         * modules/freadable, modules/freadahead, modules/freadptr:
10472         * modules/freadseek, modules/freopen, modules/frexp:
10473         * modules/frexp-ieee, modules/frexp-nolibm, modules/frexpf:
10474         * modules/frexpf-ieee, modules/frexpl, modules/frexpl-ieee:
10475         * modules/frexpl-nolibm, modules/fseek, modules/fseeko:
10476         * modules/fseterr, modules/fstat, modules/fstrcmp, modules/ftell:
10477         * modules/ftello, modules/full-read, modules/full-write:
10478         * modules/fwritable, modules/fwriteerror, modules/gcd:
10479         * modules/get-rusage-as, modules/get-rusage-data:
10480         * modules/getdtablesize, modules/getrusage, modules/gettext:
10481         * modules/gettext-h, modules/git-merge-changelog, modules/gperf:
10482         * modules/grantpt, modules/havelib, modules/host-cpu-c-abi:
10483         * modules/hostent, modules/hypot, modules/hypot-ieee, modules/hypotf:
10484         * modules/hypotf-ieee, modules/hypotl, modules/hypotl-ieee:
10485         * modules/iconv, modules/iconv-h, modules/iconv_open:
10486         * modules/iconv_open-utf, modules/idpriv-drop, modules/idpriv-droptemp:
10487         * modules/ilogb, modules/ilogbf, modules/ilogbl, modules/imaxabs:
10488         * modules/imaxdiv, modules/integer_length, modules/integer_length_l:
10489         * modules/integer_length_ll, modules/ioctl, modules/isatty:
10490         * modules/isblank, modules/isnand, modules/isnand-nolibm:
10491         * modules/isnanf, modules/isnanf-nolibm, modules/isnanl:
10492         * modules/isnanl-nolibm, modules/iswblank, modules/iswctype:
10493         * modules/j0, modules/j1, modules/javacomp, modules/javacomp-script:
10494         * modules/javaexec, modules/javaexec-script, modules/javaversion:
10495         * modules/jn, modules/langinfo, modules/ldd, modules/ldexp:
10496         * modules/ldexp-ieee, modules/ldexpf, modules/ldexpf-ieee:
10497         * modules/ldexpl, modules/ldexpl-ieee, modules/lgamma:
10498         * modules/lib-symbol-visibility, modules/libsigsegv:
10499         * modules/linked-list, modules/linkedhash-list, modules/list:
10500         * modules/localcharset, modules/locale, modules/localeconv:
10501         * modules/localename, modules/lock, modules/log, modules/log-ieee:
10502         * modules/log10, modules/log10-ieee, modules/log10f:
10503         * modules/log10f-ieee, modules/log10l, modules/log10l-ieee:
10504         * modules/log1p, modules/log1p-ieee, modules/log1pf:
10505         * modules/log1pf-ieee, modules/log1pl, modules/log1pl-ieee:
10506         * modules/log2, modules/log2-ieee, modules/log2f, modules/log2f-ieee:
10507         * modules/log2l, modules/log2l-ieee, modules/logb, modules/logb-ieee:
10508         * modules/logbf, modules/logbf-ieee, modules/logbl, modules/logbl-ieee:
10509         * modules/logf, modules/logf-ieee, modules/login_tty:
10510         * modules/logl-ieee, modules/malloc-posix, modules/malloca:
10511         * modules/mbchar, modules/mbfile, modules/mbiter, modules/mbmemcasecmp:
10512         * modules/mbmemcasecoll, modules/mbrlen, modules/mbrtowc:
10513         * modules/mbscasecmp, modules/mbscasestr, modules/mbschr:
10514         * modules/mbscspn, modules/mbsinit, modules/mbslen:
10515         * modules/mbsncasecmp, modules/mbsnlen, modules/mbsnrtowcs:
10516         * modules/mbspbrk, modules/mbspcasecmp, modules/mbsrchr:
10517         * modules/mbsrtowcs, modules/mbssep, modules/mbsspn, modules/mbsstr:
10518         * modules/mbstok_r, modules/mbswidth, modules/mbtowc, modules/mbuiter:
10519         * modules/memchr-obsolete, modules/memcmp2, modules/minmax:
10520         * modules/mkdtemp, modules/mkostemp, modules/mktime-internal:
10521         * modules/modf, modules/modf-ieee, modules/modff, modules/modff-ieee:
10522         * modules/modfl, modules/modfl-ieee, modules/msvc-inval:
10523         * modules/msvc-nothrow, modules/multiarch, modules/nextafter:
10524         * modules/nl_langinfo, modules/no-c++, modules/nocrash:
10525         * modules/nonblocking, modules/open, modules/opendir, modules/openmp:
10526         * modules/oset, modules/pclose, modules/pipe, modules/pipe-filter-gi:
10527         * modules/pipe-filter-ii, modules/pipe2, modules/poll-h:
10528         * modules/posix_spawn, modules/posix_spawn-internal:
10529         * modules/posix_spawn_file_actions_addclose:
10530         * modules/posix_spawn_file_actions_adddup2:
10531         * modules/posix_spawn_file_actions_addopen:
10532         * modules/posix_spawn_file_actions_destroy:
10533         * modules/posix_spawn_file_actions_init:
10534         * modules/posix_spawnattr_destroy, modules/posix_spawnattr_getflags:
10535         * modules/posix_spawnattr_getpgroup:
10536         * modules/posix_spawnattr_getschedparam:
10537         * modules/posix_spawnattr_getschedpolicy:
10538         * modules/posix_spawnattr_getsigdefault:
10539         * modules/posix_spawnattr_getsigmask, modules/posix_spawnattr_init:
10540         * modules/posix_spawnattr_setflags, modules/posix_spawnattr_setpgroup:
10541         * modules/posix_spawnattr_setschedparam:
10542         * modules/posix_spawnattr_setschedpolicy:
10543         * modules/posix_spawnattr_setsigdefault:
10544         * modules/posix_spawnattr_setsigmask, modules/posix_spawnp:
10545         * modules/pow, modules/powf, modules/printf-frexp:
10546         * modules/printf-frexpl, modules/printf-posix, modules/printf-safe:
10547         * modules/progname, modules/propername, modules/pselect:
10548         * modules/pthread_sigmask, modules/ptsname, modules/ptsname_r:
10549         * modules/qacl, modules/quotearg-simple, modules/raise, modules/random:
10550         * modules/rbtree-list, modules/rbtree-oset, modules/rbtreehash-list:
10551         * modules/read, modules/readdir, modules/readlink:
10552         * modules/realloc-posix, modules/regex-quote, modules/relocatable-lib:
10553         * modules/relocatable-lib-lgpl, modules/relocatable-perl:
10554         * modules/relocatable-prog, modules/relocatable-prog-wrapper:
10555         * modules/relocatable-script, modules/remainder:
10556         * modules/remainder-ieee, modules/remainderf, modules/remainderf-ieee:
10557         * modules/remainderl, modules/remainderl-ieee, modules/rewinddir:
10558         * modules/rint, modules/rint-ieee, modules/rintf, modules/rintf-ieee:
10559         * modules/rintl, modules/rintl-ieee, modules/round-ieee:
10560         * modules/roundf-ieee, modules/roundl-ieee, modules/safe-read:
10561         * modules/safe-write, modules/sched, modules/servent, modules/setenv:
10562         * modules/setlocale, modules/sh-quote, modules/shutdown:
10563         * modules/signal, modules/signbit, modules/sigpipe:
10564         * modules/sigpipe-die, modules/sigprocmask, modules/sin, modules/sinf:
10565         * modules/sinh, modules/sinhf, modules/size_max, modules/sleep:
10566         * modules/snippet/arg-nonnull, modules/snippet/c++defs:
10567         * modules/snippet/link-warning, modules/snippet/unused-parameter:
10568         * modules/snprintf, modules/snprintf-posix, modules/spawn:
10569         * modules/spawn-pipe, modules/sprintf-posix, modules/sqrt:
10570         * modules/sqrt-ieee, modules/sqrtf, modules/sqrtf-ieee:
10571         * modules/sqrtl-ieee, modules/stdalign, modules/stdarg:
10572         * modules/stdbool, modules/stpcpy, modules/stpncpy, modules/strcase:
10573         * modules/strcasestr, modules/strcasestr-simple, modules/strcspn:
10574         * modules/streq, modules/strerror_r-posix, modules/striconv:
10575         * modules/striconveh, modules/striconveha, modules/strncat:
10576         * modules/strnlen1, modules/strpbrk, modules/strtod-obsolete:
10577         * modules/sublist, modules/sys_resource, modules/sys_utsname:
10578         * modules/sys_wait, modules/system-posix, modules/system-quote:
10579         * modules/tan, modules/tanf, modules/tanh, modules/tanhf:
10580         * modules/tcgetsid, modules/termios, modules/threadlib, modules/tls:
10581         * modules/tmpdir, modules/towctrans, modules/trunc, modules/trunc-ieee:
10582         * modules/truncf, modules/truncf-ieee, modules/truncl:
10583         * modules/truncl-ieee, modules/ttyname_r, modules/uname:
10584         * modules/unlockpt, modules/unsetenv, modules/vasnprintf:
10585         * modules/vasnprintf-posix, modules/vasprintf, modules/vasprintf-posix:
10586         * modules/vdprintf, modules/vdprintf-posix, modules/vfprintf-posix:
10587         * modules/vfscanf, modules/vma-iter, modules/vprintf-posix:
10588         * modules/vscanf, modules/vsnprintf-posix, modules/vsprintf-posix:
10589         * modules/wait-process, modules/waitpid, modules/wcpcpy:
10590         * modules/wcpncpy, modules/wcrtomb, modules/wcscasecmp, modules/wcscat:
10591         * modules/wcschr, modules/wcscmp, modules/wcscoll, modules/wcscpy:
10592         * modules/wcscspn, modules/wcsdup, modules/wcslen, modules/wcsncasecmp:
10593         * modules/wcsncat, modules/wcsncmp, modules/wcsncpy, modules/wcsnlen:
10594         * modules/wcsnrtombs, modules/wcspbrk, modules/wcsrchr:
10595         * modules/wcsrtombs, modules/wcsspn, modules/wcsstr, modules/wcstok:
10596         * modules/wcswidth, modules/wcsxfrm, modules/wctob, modules/wctomb:
10597         * modules/wctrans, modules/wctype, modules/wcwidth, modules/wmemchr:
10598         * modules/wmemcmp, modules/wmemcpy, modules/wmemmove, modules/wmemset:
10599         * modules/write, modules/xconcat-filename, modules/xlist:
10600         * modules/xmalloca, modules/xoset, modules/xprintf-posix:
10601         * modules/xreadlink, modules/xsetenv, modules/xsize, modules/xstriconv:
10602         * modules/xstriconveh, modules/xsublist, modules/xvasprintf-posix:
10603         * modules/y0, modules/y1, modules/yn:
10604         Remove Bruno Haible as maintainer; if he's the sole maintainer,
10605         change the maintainer to 'all'.  Let's hope someone volunteers.
10607 2014-06-27  Paul Eggert  <eggert@cs.ucla.edu>
10609         mktime: merge #if/#ifdef usage from glibc
10610         * lib/mktime.c: Use "#if defined DEBUG && DEBUG", not "#if DEBUG",
10611         as that works with both Glibc's and Gnulib's style.
10612         See thread starting at Siddhesh Poyarekar's bug report at:
10613         http://lists.gnu.org/archive/html/bug-gnulib/2014-06/msg00102.html
10615 2014-06-20  Alfred M. Szmidt  <ams@gnu.org>
10617         git-version-gen: improve option descriptions
10618         * build-aux/git-version-gen: Mention that --prefix and --fallback
10619         have a mandatory argument.
10621 2014-06-19  Paul Eggert  <eggert@penguin.cs.ucla.edu>
10623         regex: fix memory leak in compiler
10624         Fix by Andreas Schwab in:
10625         https://sourceware.org/ml/libc-alpha/2014-06/msg00462.html
10626         * lib/regcomp.c (parse_expression): Deallocate partially
10627         constructed tree before returning error.
10629         regex: merge patch from libc
10630         2014-02-12  Joseph Myers  <joseph@codesourcery.com>
10631         Combine __USE_BSD and __USE_SVID into __USE_MISC.
10632         * lib/regex.h [__USE_BSD]: Change condition to [__USE_MISC].
10634 2014-06-17  Paul Eggert  <eggert@cs.ucla.edu>
10636         acl: port to gcc -Wredundant-decls
10637         From a request by Dmitry Antipov in:
10638         http://lists.gnu.org/archive/html/emacs-devel/2014-06/msg00263.html
10639         * lib/acl.h (_GL_ACL_H): New macro.  Protect entire contents with
10640         "#ifndef _GL_ACL_H".
10642 2014-06-11  Bruce Korb  <bkorb@gnu.org>
10643         Jim Meyering  <meyering@fb.com>
10645         parse-duration: eliminate 68-year duration limit
10646         * lib/parse-duration.c: Include "intprops.h".
10647         (TIME_MAX): Rename to MAX_DURATION and define to
10648         TYPE_MAXIMUM(time_t).
10649         * modules/parse-duration (Depends-on): Add intprops.
10650         Reported by Jonas 'Sortie' Termansen.
10652 2014-06-14  Paul Eggert  <eggert@cs.ucla.edu>
10654         pthread: don't assume AC_CANONICAL_HOST, port better to Solaris, etc.
10655         * modules/pthread (Depends-on): Add 'extensions', as it defines
10656         _POSIX_PTHREAD_SEMANTICS, which is needed on Solaris.
10657         (configure.ac-early): New section.
10658         * m4/pthread.m4 (gl_PTHREAD_CHECK): Revert previous change, as
10659         it is no longer needed.
10661 2014-06-14  Pádraig Brady  <P@draigBrady.com>
10663         pthread: define thread-safe macros on some platforms
10664         * m4/pthread.m4 (gl_PTHREAD_CHECK): Define macros needed
10665         for thread-safe operation on some platforms.
10667 2014-06-13  Paul Eggert  <eggert@cs.ucla.edu>
10669         regex: don't be multithreaded if USE_UNLOCKED_IO.
10670         Problem reported by Michael Felt in: http://bugs.gnu.org/17773
10671         * lib/regex_internal.h: Do not use multithreaded version if
10672         USE_UNLOCKED_IO is defined.  This is a hack, but it works
10673         around a porting bug with coreutils 8.22 on AIX 7.1.
10675 2014-06-11  Daiki Ueno  <ueno@gnu.org>
10677         gettext: update macros to version 0.19
10678         * m4/intl.m4, m4/po.m4: Update from gettext-0.19.  In particular,
10679         depend on gl_EXTERN_INLINE and drop support for older Bison
10680         versions.
10682 2014-06-10  Pádraig Brady  <P@draigBrady.com>
10684         select,poll: fix console handle check on windows 8
10685         lib/poll.c (IsConsoleHandle): Change from testing the lower
10686         2 bits of the handle to the more expensive but accurate syscall.
10687         lib/select.c: Likewise.
10689 2014-06-10  Eli Zaretskii  <eliz@gnu.org>
10691         select: fix waiting on anonymous pipes on MS-Windows
10692         * lib/select.c (rpl_select): Fall back to polling when select()
10693         indicates there is nothing to check, while due to the timeout not
10694         expiring, activity is indicated on one of the handles.
10695         Also clear the TIMEOUT argument if the timer does expire.
10697 2014-06-10  Eli Zaretskii  <eliz@gnu.org>
10699         times: fix to return non constant value on MS-Windows
10700         * lib/times.c (times): Don't use the process creation time,
10701         rather clock() which on windows returns the number of
10702         clock ticks since the process started.
10704 2014-06-09  Michael Goffioul  <michael.goffioul@gmail.com>
10706         isatty: fix to work on windows 8
10707         * lib/isatty.c (IsConsoleHandle): Change from testing the lower
10708         2 bits of the handle to the more expensive but accurate syscall.
10710 2014-06-07  Paul Eggert  <eggert@cs.ucla.edu>
10712         maint: fix typo in fdl.texi
10713         * doc/fdl.texi: Fix typo (missing '@').
10714         Somehow this was in fdl.texi but not fdl-1.3.texi.
10716 2014-06-06  Ben Walton  <bdwalton@gmail.com>
10718         mountlist: avoid hasmntopt const type warning on solaris
10719         * lib/mountlist.c: Solaris defines the OPT param of hasmntopt()
10720         with char * instead of const char *.  Passing the constant string
10721         "ignore" generates a compiler warning.  For Solaris cast MNT_IGNORE
10722         to avoid the warning.
10724 2014-06-04  Eric Blake  <eblake@redhat.com>
10726         maintainer-makefile: delete obsolete code
10727         * top/maint.mk (build_aux): Drop old code, as threatened.
10729         maintainer-makefile: avoid spurious error messages
10730         * top/maint.mk (syntax-check): Guard definition and use of
10731         $(shell) by whether Makefile is present.
10733 2014-06-03  Ben Walton  <bdwalton@gmail.com>
10735         rename: avoid unused-but-set-variable compiler warning
10736         * lib/rename.c (rpl_rename):  In the non-Win32 variant of rpl_rename,
10737         it is possible that dst_exists may be set but not used.  Mark it with
10738         the unused attribute to avoid compiler warnings.
10740 2014-06-02  Ben Walton  <bdwalton@gmail.com>
10742         rename: mark a label as potentially unused
10743         * lib/rename.c (rpl_rename): Avoid compiler warnings seen on Solaris,
10744         by marking the out label as potentially unused.
10745         * m4/gnulib-common.m4: Mention the need for the trailing ; for C++.
10747 2014-06-01  Paul Eggert  <eggert@cs.ucla.edu>
10749         gnulib-common.m4: Fix typo in _GL_UNUSED_LABEL.
10750         * m4/gnulib-common.m4 (_GL_UNUSED_LABEL): Omit trailing semicolon.
10752 2014-06-02  Ben Walton  <bdwalton@gmail.com>
10754         acl: apply pure attribute to two functions
10755         * lib/acl-internal.h (acl_nontrivial, acl_ace_nontrivial):
10756         Mark as "pure" as flagged by gcc 4.9 on Solaris 10.
10758 2014-06-01  Pádraig Brady  <P@draigBrady.com>
10760         gnulib-common.m4: add _GL_UNUSED_LABEL
10761         * m4/gnulib-common.m4: Add _GL_UNUSED_LABEL which is similar to
10762         _GL_UNUSED, but handles g++ < 4.5 not supporting this syntax.
10764 2014-05-31  Paul Eggert  <eggert@cs.ucla.edu>
10766         dup2, fcntl, fcntl-h: port to AIX 7.1
10767         This fixes some porting problems discovered when testing the latest
10768         grep snapshot on AIX 7.1.  I don't think if fixes any bugs
10769         in grep but it could be important for other applications.
10770         * doc/posix-functions/dup2.texi:
10771         * doc/posix-functions/fcntl.texi:
10772         * doc/posix-headers/fcntl.texi:
10773         Document AIX bugs.
10774         * lib/fcntl.in.h (O_CLOEXEC, O_NOFOLLOW, O_TTY_INIT) [_AIX]:
10775         Define to 0 if outside 'int' range.
10776         * m4/dup2.m4 (gl_FUNC_DUP2):
10777         * m4/fcntl.m4 (gl_FUNC_FCNTL):
10778         Check for getdtablesize.  If it's available, test a value just
10779         outside its range instead of testing 1000000.  When cross-compiling,
10780         guess that AIX will fail this improved test.
10782 2014-05-30  Paul Eggert  <eggert@cs.ucla.edu>
10784         printf, config.rpath: Port to FreeBSD 10.
10785         Problem reported by Tijl Coosemans in:
10786         http://lists.gnu.org/archive/html/bug-gnulib/2014-05/msg00078.html
10787         * build-aux/config.rpath (hardcode_libdir_flag_spec)
10788         (hardcode_direct): Simplify FreeBSD configuration.
10789         (library_names_spec): Don't mishandle FreeBSD 10+.
10790         * m4/printf.m4 (gl_PRINTF_SIZES_C99, gl_PRINTF_LONG_DOUBLE)
10791         (gl_PRINTF_INFINITE_LONG_DOUBLE, gl_PRINTF_DIRECTIVE_F)
10792         (gl_SNPRINTF_TRUNCATION_C99, gl_SNPRINTF_RETVAL_C99)
10793         (gl_SNPRINTF_DIRECTIVE_N, gl_VSNPRINTF_ZEROSIZE_C99):
10794         Don't mishandle FreeBSD 10+ when cross-compiling.
10796         ftoastr: work around compiler bug in IBM xlc 12.1
10797         * lib/ftoastr.h (_GL_FLT_PREC_BOUND, _GL_DBL_PREC_BOUND)
10798         (_GL_LDBL_PREC_BOUND): Make these macros, not enums, to work
10799         around a compiler bug in IBM xlc 12.1.0.0: it complains
10800         '"ftoastr.c", line 80.37: 1506-045 (S) Undeclared identifier
10801         _GL_FLT_PREC_BOUND.'
10803 2014-05-30  Kieran Colford  <colfordk@gmail.com>
10805         valgrind-tests: fixed misleading help message
10806         * m4/valgrind-tests.m4: The help message generated by configure
10807         implied that valgrind was disabled by default, which it wasn't.
10808         Adjusted the help message using s/enable/disable/ to clarify.
10810 2014-05-30  Ulrich Weigand  <uweigand@de.ibm.com>
10812         isfinite, isinf, isnan tests: fix for little-endian PowerPC
10813         * tests/test-isfinite.c (test_isfinitel): Only manipulate the
10814         first double of a PowerPC "double double" pair.
10815         * tests/test-isinf.c (test_isinfl): Likewise.
10816         * tests/test-isnan.c (test_long_double): Likewise.
10817         * tests/test-isnanl.h (main): Likewise.
10818         * tests/test-signbit.c (test_signbitl): Likewise.
10820 2014-05-29  Paul Eggert  <eggert@cs.ucla.edu>
10822         exclude-tests: port to AIX 7.1
10823         * modules/exclude-tests (test_exclude_LDADD): Add $(LIBTHREAD).
10824         Needed on AIX 7.1 with xlc V12.1, otherwise it won't link because
10825         the regex code uses locks.
10827 2014-05-28  Paul Eggert  <eggert@cs.ucla.edu>
10829         pthread_sigmask, timer-time: use gl_THREADLIB only if needed
10830         Without this fix, Emacs would sometimes call sigprocmask instead
10831         of pthread_sigmask, which is a no-no in multithreaded applications.
10832         Problem reported by Jorgen Schaefer in <http://bugs.gnu.org/17561>.
10833         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK):
10834         Suppress check for pthread_sigmask working without -lpthread if
10835         the application always links with -lpthread.  Do not link with
10836         $LIBMULTITHREAD if gl_THREADLIB is not defined.
10837         * m4/timer_time.m4 (gl_TIMER_TIME):
10838         Require gl_THREADLIB only if it is defined.  Do not append
10839         $LIBMULTITHREAD to LIB_TIMER_TIME if gl_THREADLIB is not defined.
10841 2014-05-27  Sylvain Beucler  <beuc@beuc.net>.
10843         gnulib-tool: wget translations using --no-verbose rather than --quiet
10844         This allows the user to see error messages if any (--quiet hides them)
10845         * gnulib-tool: Invoke wget with --no-verbose, rather than --quiet.
10847 2014-05-27  Sylvain Beucler  <beuc@beuc.net>
10849         gnulib-tool: adjust translation wget to avoid a https redirection
10850         Context: http://translationproject.org/latest/gnulib redirects to
10851            https://translationproject.org/latest/gnulib/
10852         Rationale: if the user falls back to wget, she doesn't have rsync and
10853         is probably in a minimal build environment, where packages such as
10854         'ca-certificates' are missing as well, resulting in a failed (and
10855         difficult to detect since ignored) translation initial fetch.
10856         Consequently let's avoid https if possible, and add the missing
10857         trailing slash.  This also avoids an unnecessary 302 redirection.
10858         * gnulib-tool: Add trailing slash to gnulib URL.
10860 2014-05-22  Pádraig Brady  <P@draigBrady.com>
10862         getlogin_r-tests: check return value rather than errno
10863         * tests/test-getlogin_r.c (main): As per POSIX we should be
10864         verifying the return value from getlogin_r() rather than errno.
10866 2014-05-22  Pádraig Brady  <P@draigBrady.com>
10868         getlogin_r-tests: fix various issues in recent change
10869         * tests/test-getlogin_r.c: Include required headers that were
10870         missed in recent commit eec20b4e.
10871         Also consistently check the errno rather than the return value from
10872         getlogin_r as POSIX only specifies that non zero is returned on error.
10873         * modules/getlogin_r-tests (configure.ac): Add the check for ttyname().
10875 2014-05-21  Paul Eggert  <eggert@cs.ucla.edu>
10877         fchdir: port 'open' and 'close' redefinitions to AIX 7.1
10878         * lib/chown.c, lib/clean-temp.c, lib/copy-file.c, lib/execute.c:
10879         * lib/fsusage.c, lib/gc-gnulib.c, lib/javacomp.c, lib/mountlist.c:
10880         * lib/openat-proc.c, lib/pagealign_alloc.c, lib/progreloc.c:
10881         * lib/spawn-pipe.c:
10882         Do not #undef 'open' and 'close'.  AIX 7 does '#define open open64'
10883         and then 'int open64(const char *, int, ...);', which means the
10884         declaration for 'open' gets lost if we later '#undef open'.
10885         Discovered while building grep pretest 2.18.151-1c770 on AIX 7.1,
10886         where the compilation reported the non-fatal error "In function
10887         'openat_proc_name' ... warning: implicit declaration of function
10888         'open'".  In this case the error is relatively harmless, but in
10889         other cases it might not be so minor.
10891 2014-05-20  Paul Eggert  <eggert@cs.ucla.edu>
10893         xalloc: don't potentially generate invalid code for xmemdup calls
10894         * lib/xalloc.h (xmemdup): Do not mark with _GL_ATTRIBUTE_ALLOC, as
10895         this function can initialize the newly-allocated storage with new
10896         pointers, which means this function is not malloc-like.  See:
10897         https://gcc.gnu.org/bugzilla/show_bug.cgi?id=56955
10899 2014-05-19  Pádraig Brady  <P@draigBrady.com>
10901         getlogin_r-tests: avoid false failure under sudo/ssh etc.
10902         * tests/test-getlogin_r.c (main): Sync up with test-getlogin.c
10903         changes from commit 97249cf29 to not depend on environment variables.
10905 2014-05-18  Pádraig Brady  <P@draigBrady.com>
10907         getlogin-tests: avoid false failure under cron
10908         * tests/test-getlogin.c (main): Avoid verifying errnos from ttyname()
10909         since that's not what's under test.  Centos 6 was seen to return
10910         EINVAL for ttyname() when run from cron.
10912 2014-05-16  Jim Meyering  <meyering@fb.com>
10914         mbrtowc.m4: fix a comment typo
10915         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): Fix typo s/2/-2/ in
10916         emitted documentation string.
10918 2014-05-16  Paul Eggert  <eggert@cs.ucla.edu>
10920         mbrlen, mbrtowc: fix bug with empty input
10921         * lib/mbrtowc.c (rpl_mbrtowc) [MBRTOWC_EMPTY_INPUT_BUG]: Fix the bug.
10922         * m4/mbrlen.m4 (gl_MBRLEN_EMPTY_INPUT): New macro.  It's not used,
10923         so this is mainly for documentation.
10924         * m4/mbrtowc.m4 (gl_MBRTOWC_EMPTY_INPUT): New macro.
10925         (gl_FUNC_MBRTOWC): Use it.
10926         * tests/test-mbrtowc.c (main): Test for the bug.
10928 2014-05-15  Paul Eggert  <eggert@cs.ucla.edu>
10930         doc: document mbrtowc and mbrlen problem with empty input
10931         * doc/posix-functions/mbrlen.texi (mbrlen):
10932         * doc/posix-functions/mbrtowc.texi (mbrtowc):
10933         Document portability problem when the input string is empty.  See:
10934         https://sourceware.org/bugzilla/show_bug.cgi?id=16950
10936         doc: document exec* = spawn+exit bug with non-Cygwin Windows platforms
10937         Problem reported by Eli Zaretskii in:
10938         http://lists.gnu.org/archive/html/bug-grep/2014-05/msg00118.html
10939         * doc/posix-functions/execl.texi (execl):
10940         * doc/posix-functions/execle.texi (execle):
10941         * doc/posix-functions/execlp.texi (execlp):
10942         * doc/posix-functions/execv.texi (execv):
10943         * doc/posix-functions/execve.texi (execve):
10944         * doc/posix-functions/execvp.texi (execvp):
10945         Mention spawn+exit problem on non-Cygwin Windows platforms.
10947 2014-05-14  Guilherme de Almeida Suckevicz  <guito.linux@gmail.com>
10949         getlogin-tests: avoid false failure under sudo/ssh etc.
10950         * modules/getlogin-tests (configure.ac): Check for ttyname().
10951         * tests/test-getlogin.c (main): Don't depend on environment variables
10952         to correlate with getlogin(), since sudo and ssh etc. can tamper
10953         with the LOGNAME and USER env vars.  Instead lookup the name from
10954         the uid associated with the stdin tty.
10956 2014-05-11  Paul Eggert  <eggert@cs.ucla.edu>
10958         mbsstr, quotearg, xstrtol: pacify IRIX 6.5 cc
10959         These were found when building the latest grep snapshot on IRIX 6.5.
10960         * lib/mbsstr.c (knuth_morris_pratt_multibyte): Break "a=b=c;" into
10961         "b=c; a=b;", since IRIX 6.5 cc complains about the former if b is
10962         never used later.
10963         * lib/quotearg.c (quoting_options_from_style):
10964         * lib/xstrtol.c (__xstrtol):
10965         Use enum instead of 0, to pacify IRIX 6.5 cc.
10967 2014-04-18  Pádraig Brady  <P@draigBrady.com>
10969         gitlog-to-changelog: revert inclusion of git-log-fix file
10970         * build-aux/git-log-fix: Delete dummy file.
10971         * modules/gitlog-to-changelog: Don't reference (overwrite)
10972         the project specific git-log-fix file.
10974 2014-04-18  Assaf Gordon  <agordon@wi.mit.edu>
10976         maint.mk: Relax the copyright check to cater for non FSF projects
10977         * top/maint.mk (sc_copyright_check): Relax the check for $PACKAGE.texi
10978         to not require the "Free" suffix after the copyright years.
10980 2014-04-18  Natanael Copa  <ncopa@alpinelinux.org>
10982         physmem: use sysinfo on linux-gnu if _SC_PHYS_PAGES unavailable
10983         * lib/physmem.c (physmem_total): Some systems like musl libc don't yet
10984         support _SC_PHYS_PAGES.  Use the linux syscall sysinfo as fallback
10985         if _SC_PHYS_PAGES or _SC_PAGESIZE fails.
10986         (physmem_available): Likewise for _SC_AVPHYS_PAGES.
10988 2014-04-18  Paul Eggert  <eggert@cs.ucla.edu>
10990         exclude: port to strict C99
10991         Strict C does not allow converting a function pointer to void *
10992         and vice versa.  Pass a pointer to a function pointer instead.
10993         * lib/exclude.c (add_exclude_file):
10994         Pass the address of the function pointer.
10995         (call_addfn): And deference the address here, to match.
10997 2014-04-17  Paul Eggert  <eggert@cs.ucla.edu>
10999         regex: do not depend on malloc-gnu
11000         * modules/regex (Depends-on): Remove malloc-gnu.
11001         It's no longer needed, because of the 2012-12-29 patch
11002         "regex: port to hosts where malloc (0) == NULL".
11003         Reported by Nathan Kennedy in:
11004         http://lists.gnu.org/archive/html/bug-gnulib/2014-04/msg00026.html
11006 2014-04-16  Assaf Gordon  <agordon@wi.mit.edu>
11008         expl: avoid incorrect expl(small_value) on OpenBSD 5.4
11009         * m4/expl.m4 (gl_FUNC_EXPL): Add a check for this condition.
11010         * doc/posix-functions/expl.texi: Mention the workaround.
11012 2014-04-12  Paul Eggert  <eggert@cs.ucla.edu>
11014         xalloc: allow x2nrealloc (P, PN, S) where P && !*PN
11015         * lib/xalloc.h (x2nrealloc): Extend slightly, to allow the current
11016         size to be zero even when the pointer is nonnull.  This
11017         accommodates the use case where P is malloc (0) and *PN is 0 on a
11018         host where malloc (0) yields nonnull.
11020 2014-04-09  Eric Blake  <eblake@redhat.com>
11022         fts: avoid unnecessary strlen calls
11023         * lib/fts.c (_D_EXACT_NAMLEN): Restore definition when needed.
11025 2014-04-09  Paul Eggert  <eggert@cs.ucla.edu>
11027         fts: avoid unnecessary strlen calls
11028         * lib/fts.c (fts_build): Go back to using _D_EXECT_NAMLEN
11029         when that can be faster than strlen.
11031 2014-03-26  Bernhard Voelker  <mail@bernhard-voelker.de>
11033         fts: avoid unnecessary strlen calls
11034         * lib/fts.c (_D_EXACT_NAMLEN): Remove macro.
11035         (fts_build): Store the length of the dp->d_name entry in a local variable
11036         instead of calling strlen() several times via the above, removed macro.
11037         For 'rm -rf some-dir' with e.g. 1M directory entries, this speeds up the
11038         run by ~4%, yet this reduces the execution time by about a third if run
11039         via "ltrace -c rm -rf some-dir".
11041 2014-03-27  Paul Eggert  <eggert@cs.ucla.edu>
11043         obstack: Remove ancient NeXTSTEP gcc support conditional
11044         This change will ease merging with glibc.  The "#if ... __NEXT__"
11045         causes a warning with -Wundef which glibc now enables by default.
11046         Problem reported by Will Newton in
11047         <http://lists.gnu.org/archive/html/bug-gnulib/2014-03/msg00032.html>.
11048         glibc <sys/cdefs.h> now uses __extension__ for GCC 2.8 or later,
11049         so go with that.
11050         * lib/obstack.h (__extension__):
11052 2014-03-27  Paul Eggert  <eggert@cs.ucla.edu>
11054         obstack: merge with glibc changes
11055         * lib/obstack.c, lib/obstack.h: Merge from glibc.
11056         This is mostly indenting and commentary changes.
11057         Instances of 'register' have been removed.
11059 2014-03-26  Bernhard Voelker  <mail@bernhard-voelker.de>
11061         strftime: wrap macros in "do {...} while(0)"
11062         * lib/strftime.c (DO_NUMBER): Wrap multi-statement code block of
11063         this macro in "do {...} while(0)" to prevent false use as a
11064         single statement, e.g., in an un-braced "{}" else-block.
11065         (DO_SIGNED_NUMBER, DO_TZ_OFFSET, DO_NUMBER_SPACEPAD): Likewise.
11066         (strftime_case_): Remove 'else' after 'goto' - which was the
11067         only non-fatal, un-braced use of one of the above macros.
11068         Spotted by coverity (NESTING_INDENT_MISMATCH).
11070 2014-03-26  Bernhard Voelker  <mail@bernhard-voelker.de>
11072         modechange: avoid memory leaks for invalid octal modes
11073         * lib/modechange.c (mode_compile): During the parsing of
11074         notations like +40, free the 'mc' buffer for invalid mode
11075         strings like +17777 (greater than the maximum octal mode),
11076         =18 (bad octal mode characters) or u=1 ('affected' with
11077         octal modes).
11078         Reproducer, e.g.:
11079             $ valgrind --leak-check=full chmod +17777 file
11080         Introduced via the 2012-03-09 commit, 4730c3e3, "modechange:
11081         add notations +40, 00440, etc.".
11082         Spotted by coverity (RESOURCE_LEAK).
11084 2014-03-24  Paul Eggert  <eggert@cs.ucla.edu>
11086         gitlog-to-changelog: include a dummy git-log-fix file
11087         Problem reported by Nathan Stratton Treadway in:
11088         http://lists.gnu.org/archive/html/bug-tar/2014-03/msg00082.html
11089         * build-aux/git-log-fix: New file.
11091 2014-03-13  Jim Meyering  <meyering@fb.com>
11093         gitlog-to-changelog: also include the file, git-log-fix
11094         * modules/gitlog-to-changelog (Files): Add git-log-fix.
11095         Reported by Assaf Gordon.
11097 2014-03-06  Paul Eggert  <eggert@cs.ucla.edu>
11099         regex: port to OS X 10.8.5 en_US.UTF-8 locale
11100         This fixes a bug when ignoring case and when comparing the
11101         titlecase letter 'Lj' (U+01C8 LATIN CAPITAL LETTER L WITH SMALL
11102         LETTER J) to the corresponding uppercase letter 'LJ' (U+01C7 LATIN
11103         CAPITAL LETTER LJ).  In the OS X 10.8.5 en_US.UTF-8 locale, the
11104         titlecase letter is neither lowercase nor uppercase, but
11105         uppercasing the titlecase letter (via towupper) yields the
11106         uppercase letter, so the two letters should match when ignoring case.
11107         Problem reported by Jim Meyering in <http://debbugs.gnu.org/16911#16>.
11108         * lib/regex_internal.c (build_wcs_upper_buffer, build_upper_buffer):
11109         Don't test whether a character is lowercase before uppercasing it.
11111 2014-03-04  Kevin Cernekee  <cernekee@gmail.com>
11113         stdint, read-file: fix missing SIZE_MAX on Android (tiny change)
11114         This is basically one of the options Bruno Haible proposed in:
11115         http://lists.gnu.org/archive/html/bug-gnulib/2012-01/msg00282.html
11116         * lib/sys_types.in.h (_GL_INCLUDING_UNISTD_H): New macro.
11117         * lib/stdint.in.h: Use it.
11118         * modules/stdint (Depends-on): Add sys_types.
11120 2014-02-26  Pádraig Brady  <P@draigBrady.com>
11122         parse-datetime: fix crash or infloop in TZ="" parsing
11123         * lib/parse-datetime.y (parse_datetime): Break out of the
11124         TZ="" parsing loop once the second significant " is found.
11125         Also skip over any subsequent whitespace to be consistent
11126         with the non TZ= case.
11127         * tests/test-parse-datetime.c: Add test cases for TZ="" parsing.
11129 2014-02-26  Paul Eggert  <eggert@cs.ucla.edu>
11131         savedir: new symbol for fast-read version
11132         * lib/savedir.h (SAVEDIR_SORT_FASTREAD): New symbol, for programs
11133         like GNU cp that want to use SAVEDIR_SORT_INODE if available,
11134         SAVEDIR_SORT_NONE otherwise.  Problem reported by Bernhard Voelker in:
11135         http://lists.gnu.org/archive/html/coreutils/2014-02/msg00037.html
11137 2014-02-25  Paul Eggert  <eggert@penguin.cs.ucla.edu>
11139         unistd: port readlink to Mac OS X 10.3.9
11140         * lib/unistd.in.h (_GL_INCLUDING_UNISTD_H): New macro, to work
11141         around self-include problem in Mac OS X 10.3.9 when combined with
11142         readlink module.  Problem reported by Klaus Zietler in
11143         <http://bugs.gnu.org/16825>.
11145 2014-02-23  Paul Eggert  <eggert@cs.ucla.edu>
11147         diffseq: remove TOO_EXPENSIVE heuristic
11148         Problem with diffutils reported by Vincent Lefevre in
11149         <http://bugs.gnu.org/16848>.  The simplest solution is to remove
11150         the TOO_EXPENSIVE heuristic that I added to GNU diff in 1993.
11151         Although appropriate for circa-1993 hardware, these days the heuristic
11152         seems to be more trouble than it's worth.
11153         * lib/diffseq.h: Modernize citations.
11154         (struct context): Remove member too_expensive.
11155         All uses changed.
11156         (struct partition): Remove members lo_minimal, hi_minimal.
11157         All uses changed.
11158         (diag, compareseq): Remove arg find_minimal.  All uses changed.
11159         (diag): Remove the TOO_EXPENSIVE heuristic that I added back in
11160         1993 to make 'diff' run faster (but not as well) on large inputs.
11161         These days, computers are fast enough that it's typically better
11162         to run slower but more accurately.
11163         * lib/fstrcmp.c: Remove duplicate comment.
11164         * lib/fstrcmp.c (strcmp_bounded):
11165         * lib/git-merge-changelog.c (compute_differences):
11166         Adjust to diffseq.h changes.
11167         * NEWS: Document the change.
11169         savedir: simplify by using stpcpy
11170         * lib/savedir.c (direntry_t): Remove size member.  All uses removed.
11171         (streamsavedir): Use stpcpy instead.
11172         * modules/savedir (Depends-on): Add stpcpy.
11174 2014-02-21  Pádraig Brady  <P@draigBrady.com>
11176         spawn: fix link error on uclibc
11177         * m4/spawn_h.m4 (gl_HAVE_POSIX_SPAWN): use AC_SEARCH_LIBS,
11178         to incorporate -lrt if needed (on uclibc for example).
11179         * modules/posix_spawn: Reference the substituted LIB.
11181 2014-02-21  Thomas Petazzoni  <thomas.petazzoni@free-electrons.com>  (tiny change)
11182         timer: fix uClibc detection of threading
11183         * m4/time_time.m4 (gl_TIMER_TIME): Detect whether threads are
11184         enabled in uClibc.
11186 2014-02-21  Eric Blake  <eblake@redhat.com>
11188         maintainer-makefiles: provide AC_PROG_SED for older autoconf
11189         * m4/gnulib-common.m4 (AC_PROG_SED): Copy from newer autoconf.
11191 2014-02-21  Sergey Poznyakoff  <gray@gnu.org.ua>
11193         exclude: add support for posix regexps
11195         This commit adds support for POSIX extended regular expressions
11196         and fixes a long-standing memory leak (pattern buffer was never
11197         freed).  It also implements a new interface function to read
11198         exclude patterns from a FILE, which passes an additional parameter
11199         to its callback function, thereby allowing to preserve its state
11200         between invocations.
11202         * lib/exclude.c (struct patopts): Pack regex and pattern into union.
11203         (pattern_buffer): New struct.
11204         (exclude): New member patbuf.
11205         (exclude_add_pattern_buffer): New function.
11206         (free_exclude_segment): Free regexps.
11207         (free_exclude): Free allocated pattern buffers.
11208         (exclude_patopts): New function.
11209         (file_pattern_matches): Use exclude_patopts.
11210         (add_exclude): support regexps.
11211         (add_exclude_fp): New function.
11212         (add_exclude_file): Rewrite using add_exclude_fp.
11213         (fnmatch_pattern_has_wildcards): Support posix extended regexps.
11214         * lib/exclude.h (EXCLUDE_REGEX, EXCLUDE_ALLOC): New flags.
11215         (add_exclude_fp)
11216         (add_exclude_file): Rewrite using add_exclude_fp.
11217         (fnmatch_pattern_has_wildcards): Support posix extended regexps.
11218         * lib/exclude.h (EXCLUDE_REGEX, EXCLUDE_ALLOC): New flags.
11219         (add_exclude_fp)
11220         (exclude_add_pattern_buffer): New prototypes.
11221         * modules/exclude: Depends on regex and filename.
11223 2014-02-20  Eric Blake  <eblake@redhat.com>
11225         maintainer-makefiles: use $(SED) for syntax check
11226         * modules/maintainer-makefile (configure.ac): Check for sane sed.
11227         * top/maint.mk: Change sed to $(SED).
11229 2014-02-11  Sergey Poznyakoff  <gray@gnu.org.ua>
11230             Paul Eggert  <eggert@cs.ucla.edu>
11232         savedir: add sorting arg to savedir, streamsavedir; remove fdsavedir
11233         Patch based on an idea by Dick Streefland in
11234         <https://savannah.gnu.org/patch/?7892>.
11235         * NEWS: Document this.
11236         * lib/savedir.c (NAME_SIZE_DEFAULT): Remove.
11237         (direntry_t, comparison_function): New types.
11238         (direntry_cmp_name): New function.
11239         (direntry_cmp_inode) [D_INO_IN_DIRENT]: New function.
11240         (streamsavedir, savedir): New arg OPTION.
11241         (streamsavedir): Simplify memory allocation.
11242         (fdsavedir): Remove.
11243         * lib/savedir.h (enum savedir_option): New type.
11244         (streamsavedir, savedir): New arg OPTION.
11245         (fdsavedir): Remove.
11247 2014-02-05  Paul Eggert  <eggert@cs.ucla.edu>
11249         file-type: add support for doors and other less-common file types
11250         Problem with S_ISDOOR reported by Rich Burridge.
11251         * lib/file-type.c (file_type): Do S_ISLNK early too.  Do S_TYPEIS*
11252         macros before the rest.  Add S_ISCTG, S_ISDOOR, S_ISMPB, S_ISMPC,
11253         S_ISMPX, S_ISNAM, S_ISNWK, S_ISOFD, S_ISOFL, S_ISPORT, S_ISWHT.
11255 2014-01-23  Eric Blake  <eblake@redhat.com>
11257         pthread: work around winpthread header pollution on mingw
11258         * lib/time.in.h: Move pthread workarounds...
11259         * lib/pthread.in.h: ...here.
11260         * m4/pthread.m4 (gl_PTHREAD_CHECK): Also build pthread.h when we
11261         detect macro pollution on mingw.
11262         * doc/posix-headers/pthread.texi (pthread.h): Document the problems.
11264 2014-01-22  Paul Eggert  <eggert@cs.ucla.edu>
11266         qacl: check for fchmod
11267         * m4/acl.m4 (gl_FUNC_ACL): Check for fchmod, since acl-internal.h
11268         and qset-acl.c both use HAVE_FCHMOD.
11270 2014-01-20  Paul Eggert  <eggert@cs.ucla.edu>
11272         fdopen-tests: port to Tru64
11273         * tests/test-fdopen.c (main): Don't invoke fdopen on a file
11274         descriptor that is not open, as POSIX doesn't specify the
11275         resulting behavior and the test does not work on Tru64.
11276         Problem reported by Steven M. Schweda in:
11277         http://lists.gnu.org/archive/html/bug-gnulib/2014-01/msg00079.html
11279         stdalign: port to HP-UX compilers
11280         * lib/stdalign.in.h (_Alignas): Use __attribute__ (__aligned__ (x))
11281         if __HP_cc or __HP_aCC are nonzero.
11283 2014-01-16  Paul Eggert  <eggert@cs.ucla.edu>
11285         strtoimax: port to platforms lacking 'long long'
11286         VMS's pre-C99 compiler lacks 'long long', so 'configure' doesn't
11287         check whether strtoll is declared, which causes the C file to
11288         wrongly report an error.  Problem reported by Steven M. Schweda in:
11289         http://lists.gnu.org/archive/html/bug-diffutils/2014-01/msg00003.html
11290         * lib/strtoimax.c (strtoull):
11291         Declare only if HAVE_UNSIGNED_LONG_LONG_INT.
11292         (strtoll): Declare only if HAVE_LONG_LONG_INT.
11294 2014-01-16  Daniel Albers  <daniel@lbe.rs>  (tiny change)
11296         relocatable-perl: fix texi syntax
11297         * doc/relocatable-maint.texi: Escape braces.
11299 2014-01-09  Reuben Thomas  <rrt@sc3d.org>
11301         relocatable-perl: like relocatable-script, but for Perl scripts
11302         * build-aux/relocatable.pl.in: Add.
11303         * doc/relocatable-maint.texi: Add documentation.
11304         * modules/relocatable-perl: Add.
11306 2014-01-07  Paul Eggert  <eggert@cs.ucla.edu>
11308         tests: fix export bug in previous patch
11309         Problem reported by Jim Meyering.
11310         * tests/init.sh (re_shell): New var, which is exported instead of
11311         re_shell_.
11313         tests: simplify porting to Solaris 10 /bin/sh
11314         Some test cases in 'grep' need a shell that groks '$(';
11315         export re_shell_ for their benefit.  Problem reported for 'grep'
11316         by Dagobert Michelsen in <http://bugs.gnu.org/16380>.
11317         * tests/init.sh (re_shell_): Export if it's used.
11319 2014-01-06  Eric Blake  <eblake@redhat.com>
11321         md5, sha1, sha256, sha512: support older autoconf
11322         * m4/00gnulib.m4 (m4_divert_push): Wrap diversion stack
11323         for autoconf < 2.63b.
11325         include_next: port to autoconf 2.63
11326         * m4/gnulib-common.m4 (AS_VAR_COPY): Define if missing.
11328 2014-01-04  Jim Meyering  <meyering@fb.com>
11330         maint: add a gnulib-local rule to keep non-ascii out of .texi files
11331         * cfg.mk (sc_keep_gnulib_texi_files_mostly_ascii): New rule,
11332         so that "make sc_maint" will ding anyone who puts non-ascii
11333         in any of gnulib's .texi files.
11335 2014-01-03  Jim Meyering  <meyering@fb.com>
11337         freadable, fwritable, fwriting: declare with the "pure" attribute
11338         * lib/freadable.h (freadable): Declare with the "pure" attribute.
11339         * lib/fwritable.h (fwritable): Likewise.
11340         * lib/fwriting.h (fwriting): Likewise.
11341         Suggested by Bruno Haible.
11343         maint.mk: adapt openat.h-include-without-use test
11344         * top/maint.mk (sc_prohibit_openat_without_use): Also check for
11345         FCHMODAT_INLINE, FCHOWNAT_INLINE and STATAT_INLINE, to avoid
11346         failing on gnulib's own lib/{chmod,chown,stat}at.c files.
11347         With this change, running "make sc_maint" in gnulib's top-level
11348         directory now passes for me.
11350 2014-01-03  Paul Eggert  <eggert@cs.ucla.edu>
11352         doc: use ASCII in .texi files where UTF-8 isn't needed
11353         * doc/posix-functions/crypt.texi, doc/posix-functions/encrypt.texi:
11354         * doc/posix-functions/setkey.texi, doc/regex.texi:
11355         Use ASCII input, not UTF-8.
11357 2014-01-02  Jim Meyering  <meyering@fb.com>
11359         freading: declare with the "pure" attribute
11360         * lib/freading.h (freading): Declare with the "pure" attribute.
11362         manywarnings: remove -Wmudflap
11363         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Remove -Wmudflap, since
11364         it is no longer supported in gcc-4.9-to-be.
11366 2014-01-01  Paul Eggert  <eggert@cs.ucla.edu>
11368         relocatable-script: remove unused code
11369         Problem reported by Reuben Thomas in:
11370         http://lists.gnu.org/archive/html/bug-gnulib/2013-12/msg00117.html
11371         * build-aux/relocatable.sh.in (func_tmpdir): Remove unused function.
11373 2014-01-01  Jim Meyering  <meyering@fb.com>
11375         maint: fix public-submodule-commit to work with newer git
11376         * top/maint.mk (public-submodule-commit): Remove excess quoting.
11377         We were over-quoting the test arguments, and somewhere prior to
11378         version 1.8.5.2.229, git stopped removing those excess quotes,
11379         which made the test fail, since the unexpanded strings would
11380         always differ; using GIT_TRACE=1 confirmed that the git merge-base
11381         command wasn't even being run.
11383 2014-01-01  Paul Eggert  <eggert@cs.ucla.edu>
11385         doc: update main copyright year
11386         * doc/gnulib.texi: Update copyright date.
11388 2014-01-01  Eric Blake  <eblake@redhat.com>
11390         version-etc: new year
11391         * lib/version-etc.c (COPYRIGHT_YEAR): Bump to 2014.
11392         * all files: run 'make update-copyright'
11394 2013-12-24  Eric Blake  <eblake@redhat.com>
11396         passfd: give nicer error for recvfd at eof
11397         * lib/passfd.c (recvfd): Fake ENOTCONN if other end closes early.
11398         * tests/test-passfd.c (main): Enhance test to cover this.
11400 2013-12-17  Paul Eggert  <eggert@cs.ucla.edu>
11402         gettimeofday: port recent C++ fix to Emacs
11403         Without this further patch, Emacs won't build due to
11404         the portcheck failing.  Also, this simplifies the patch a bit.
11405         * lib/time.in.h (localtime, gmtime): Don't replace unless
11406         GNULIB_GETTIMEOFDAY.  Treat them more like mktime.
11407         * lib/time.in.h (localtime, gmtime):
11408         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME):
11409         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS):
11410         * modules/time (time.h):
11411         Don't worry about the possibility of localtime and gmtime
11412         being absent; they're present in all C libraries we know about.
11413         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS):
11414         Don't assume sys_time is present and has been initialized.
11415         Instead, use a hack that should work even if it hasn't been.
11416         Don't use a portcheck for gmtime or localtime; this supports
11417         the hack.
11418         * modules/time (time.h): Substitute GNULIB_GETTIMEOFDAY.
11420 2013-12-17  John W. Eaton  <jwe@gnu.org>
11422         gettimeofday: fix C++ crosscompilation
11424         Never replace gmtime and localtime by macros when compiling with
11425         C++, this prevents <ctime> from being included.
11427         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Do not
11428         define gmtime and localtime as preprocessor macros.  Instead
11429         define some HAVE_GMTIME, HAVE_LOCALTIME, REPLACE_GMTIME, and
11430         REPLACE_LOCALTIME substitutions.
11431         * lib/time.in.h: Declare gmtime and localtime when needed.
11432         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): AC_SUBST HAVE_GMTIME,
11433         HAVE_LOCALTIME, REPLACE_GMTIME, and REPLACE_LOCALTIME.
11434         * modules/time: Depend on gettimeofday, and substitute the above
11435         variables in time.h.
11437 2013-12-17  Paul Eggert  <eggert@cs.ucla.edu>
11439         qacl: port to Windows better
11440         See Eli Zaretskii in
11441         <http://lists.gnu.org/archive/html/emacs-devel/2013-12/msg00593.html>.
11442         * lib/file-has-acl.c (acl_access_nontrivial):
11443         Return -1 and set errno if !HAVE_ACL_FIRST_ENTRY &&
11444         !HAVE_ACL_TO_SHORT_TEXT && !HAVE_ACL_FREE_TEXT.
11446 2013-12-12  Alexander V. Lukyanov  <lav@netis.ru>
11448         md5, sha1, sha256, sha512: fix (trivial) compile error in c++ mode.
11449         * lib/gl_openssl.h: Cast void pointers to a specific type.
11451 2013-12-07  Pádraig Brady  <P@draigBrady.com>
11453         open-tests: fix build failure with -Werror=old-style-declaration
11454         * tests/test-open.h: Reorder the inline to avoid the issue.
11456 2013-12-07  Pádraig Brady  <P@draigBrady.com>
11458         md5, sha1, sha256, sha512: fix link error with partial libcrypto
11459         * m4/gl-openssl.m4 (gl_CRYPTO_CHECK): Only clear LIB_CRYPTO at
11460         init time, so that if early checks find crypto routines,
11461         while the last does not, then @LIB_CRYPTO@ is replaced correctly,
11462         avoiding link failures.
11464 2013-12-07  Paul Eggert  <eggert@cs.ucla.edu>
11466         md5, sha1, sha256, sha512: add gl_SET_CRYPTO_CHECK_DEFAULT
11467         This provides a new way to specify the default for
11468         gl_CRYPTO_CHECK, one that is reflected in the --help message.
11469         Emacs uses this, as well as the old way.
11470         This attempts to implement a suggestion by Pádraig Brady in
11471         <http://lists.gnu.org/archive/html/coreutils/2013-12/msg00080.html>.
11472         * m4/gl-openssl.m4(gl_SET_CRYPTO_CHECK_DEFAULT): New macro.
11473         (gl_CRYPTO_CHECK): Use it.  Mention the default in --help output.
11475         md5, sha1, sha256, sha512: add 'auto', and a way to specify default
11476         * m4/gl-openssl.m4 (gl_CRYPTO_CHECK):
11477         Add support for a new option, --with-openssl=auto, which causes
11478         the library to be used if available and silently ignored if not.
11479         Add support to allow configure.ac to specify its own
11480         default, by setting with_openssl_default before invoking gl_INIT.
11482 2013-12-05  Paul Eggert  <eggert@cs.ucla.edu>
11484         open-tests: port to glibc with _FORTIFY_SOURCE and -O1
11485         Problem reported by Daiki Ueno in:
11486         http://lists.gnu.org/archive/html/bug-gnulib/2013-06/msg00052.html
11487         * tests/test-open.h (__always_inline):
11488         New macro, if not already defined.
11489         (test_open): Use it.
11491 2013-12-04  Eric Blake  <eblake@redhat.com>
11493         include_next: minimize code duplication
11494         * modules/include_next (Depends-on): Add absolute-header.
11495         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): Reuse
11496         gl_ABSOLUTE_HEADER_ONE instead of open-coding it.
11498 2013-12-04  Pádraig Brady  <P@draigBrady.com>
11500         getcwd: fix compile error in configure check
11501         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): Include errno.h
11503 2013-12-04  Pádraig Brady  <P@draigBrady.com>
11505         regex: suppress core dumps from detection code
11506         * m4/regex.m4 (gl_REGEX): Catch the SIGABRT and convert to SIGTERM
11507         to suppress core dumps that may well occur on glibc systems.
11508         These core dumps might not be cleaned up automatically, or could
11509         trigger some system core dump handling logic.
11511 2013-12-03  Pádraig Brady  <P@draigBrady.com>
11513         md5, sha1, sha256, sha512: support mandating use of openssl
11514         * m4/gl-openssl.m4 (gl_crypto_check): Adjust the --with-openssl
11515         description, to list the now 3 separate options.  also don't
11516         mention the default=no, since this is implicit given the option
11517         is described as --with-openssl rather than --without-openssl.
11518         If projects change the default they're free to document that.
11519         with --with-openssl[=yes] we now error out when the specified
11520         hash algorithm is not available in libcrypto.
11522 2013-12-03  Ivailo  <xakepa10@gmail.com>
11524         test-xvasprintf: (trivial) fix to disable some -Wformat-security diags
11525         * tests/test-xvasprintf.c: Disable -Wformat-zero-length and
11526         -Wformat-nonliteral checks, as these edge cases are part of the test.
11528 2013-12-03  Eric Blake  <eblake@redhat.com>
11530         regex: avoid glibc deadlock during configure
11531         * m4/regex.m4 (gl_REGEX): Avoid recursive malloc deadlock when
11532         glibc bug 15078 in turn triggers bug 16159.
11533         Reported by Michal Privoznik.
11535 2013-12-02  Pádraig Brady  <P@draigBrady.com>
11537         md5, sha1, sha256, sha512: use openssl routines if available.
11538         --with-openssl the libcrypto md5, sha1, sha224, sha256, sha384, sha256
11539         routines will be used if available, requiring apps to link @LIB_CRYPTO@
11540         * lib/gl_openssl.h: Provide wrappers for specified openssl hash.
11541         * m4/gl-openssl.m4 (gl_CRYPTO_CHECK): New function to lookup libcrypto
11542         in the standard system location.
11543         * m4/sha1.m4: Call gl_CRYPTO_CHECK() for SHA1.
11544         * m4/sha256.m4: Likewise with SHA256.
11545         * m4/sha512.m4: Likewise with SHA512.
11546         * m4/md5.m4: Likewise with MD5.
11547         * m4/gc.m4: Ensure @LIB_CRYPTO@ set for tests.
11548         * lib/sha1.h: Include wrappers if HAVE_OPENSSL_SHA1.
11549         * lib/sha256.h: Likewise with SHA256.
11550         * lib/sha512.h: Likewise with SHA512.
11551         * lib/md5.h: Likewise with MD5.
11552         * lib/sha1.c: Exlude functionality if HAVE_OPENSSL_SHA1.
11553         * lib/sha256.c: Likewise with SHA256.
11554         * lib/sha512.c: Likewise with SHA512.
11555         * lib/md5.c: Likewise with MD5.
11556         * modules/crypto/sha1 (Link:): Add the new optional lib.
11557         (Depends-on:): Add dependency on extern-inline.
11558         * modules/crypto/sha256: Likewise.
11559         * modules/crypto/sha512: Likewise.
11560         * modules/crypto/md5: Likewise.
11561         * modules/crypto/sha1-tests: Reference the lib here too.
11562         * modules/crypto/md5-tests: Likewise.
11563         * modules/crypto/gc-des-tests: Likewise.
11564         * modules/crypto/gc-hmac-md5-tests: Likewise.
11565         * modules/crypto/gc-hmac-sha1-tests: Likewise.
11566         * modules/crypto/gc-hmac-sha256-tests: Likewise.
11567         * modules/crypto/gc-hmac-sha512-tests: Likewise.
11568         * modules/crypto/gc-md5-tests: Likewise.
11569         * modules/crypto/gc-pbkdf2-sha1-tests: Likewise.
11570         * modules/crypto/gc-sha1-tests: Likewise.
11571         * modules/crypto/gc-tests: Likewise.
11572         * modules/crypto/hmac-md5-tests: Likewise.
11573         * modules/crypto/hmac-sha1-tests: Likewise.
11574         * modules/crypto/hmac-sha256-tests: Likewise.
11575         * modules/crypto/hmac-sha512-tests: Likewise.
11577 2013-11-29  RV1971  <rv1971@web.de>
11579         base64: (trivial) fix compilation regression on some compilers
11580         * lib/base64.c: Don't return the void function,
11581         instead split to a separate return statement.
11583 2013-11-28  Paul Eggert  <eggert@cs.ucla.edu>
11585         ignore-value: revert previous code change
11586         * lib/ignore-value.h (ignore_value): Use __extension__ and
11587         __typeof__ only for GCC 3.4 and later.  Reported by Eric Blake in
11588         <http://lists.gnu.org/archive/html/bug-gnulib/2013-11/msg00102.html>.
11589         Change the comment to try to explain this better.
11591 2013-11-27  Pádraig Brady  <P@draigBrady.com>
11593         selinux-h: improve stub types and add more stub functions
11595         * lib/se-selinux.in.h: Change security_context_t to a typedef
11596         rather than a define, as it's a pointer type and so is better
11597         as a typedef to avoid issues declaring multiple variables
11598         with the comma operator.  Also add stub for string_to_security_class().
11599         * lib/se-context.in.h: Add stub functions for
11600         context_{type,range,role,user}_get().
11602 2013-11-27  Paul Eggert  <eggert@cs.ucla.edu>
11604         ignore-value: prefer GCC version back through 2.0
11605         The code didn't match the comments, so I did a bit of software
11606         archaeology.  GCC 2.0 seems to support __extension__ and
11607         __typeof__, so fix both code and comments to use 2.0.
11608         * lib/ignore-value.h (ignore_value): Use __extension__ and
11609         __typeof__ for GCC 2.0 through 3.3, too.
11611 2013-11-25  Mats Erik Andersson  <gnu@gisladisker.se>
11613         pty: Activate the signature wrapper of forkpty.
11614         The intended preprocessor macro HAVE_FORKPTY is
11615         never defined, yet `lib/forkpty.c' depends on it.
11617         * m4/pty.m4 (gl_FUNC_FORKPTY): At completed analysis,
11618         apply AC_DEFINE_UNQUOTED to HAVE_FORKPTY with value
11619         $HAVE_FORKPTY for access to wrapper in `lib/forkpty.c'.
11621 2013-11-18  Jim Meyering  <meyering@fb.com>
11622         and Paul Eggert  <eggert@cs.ucla.edu>
11624         quotearg: don't attempt to store 1 << 31 into an "int"
11625         * lib/quotearg.c (quotearg_buffer_restyled): Building coreutils with
11626         gcc's new -fsanitize=undefined and running its tests triggered some
11627         new test failures due to undefined behavior, all with this diagnostic:
11628           lib/quotearg.c:629:62: runtime error: left shift of 1 by 31 places \
11629             cannot be represented in type int
11630         Rather than shifting "1" left to form a mask, shift the bits right and
11631         simply use "1" as the mask.
11633 2013-11-21  Paul Eggert  <eggert@cs.ucla.edu>
11635         error: depend on stdio
11636         Problem reported by Nikos Mavrogiannopoulos in
11637         <http://lists.gnu.org/archive/html/bug-gnulib/2013-11/msg00084.html>
11638         * modules/error (Depends-on): Add stdio.
11640 2013-11-18  Ben Pfaff  <blp@cs.stanford.edu>
11642         * doc/relocatable-maint.texi (Supporting Relocation): Improve
11643         wording.
11644         Reported by Reuben Thomas <rrt@sc3d.org>.
11646 2013-11-13  Paul Eggert  <eggert@cs.ucla.edu>
11648         * lib/getgroups.c (posix_getgroups, getgroups) [__APPLE__]:
11649         New function and macro, to work around _DARWIN_C_SOURCE problem.
11650         Reported by Jack Howarth in <http://bugs.gnu.org/14463>.
11652 2013-11-11  Pádraig Brady  <P@draigBrady.com>
11654         base64: provide a fast path for encoding well sized buffers
11655         Avoid conditionals in the base64 encoding loop,
11656         which was seen to give 60% better throughput.
11657         * lib/base64.c (base64_encode_fast): A new function to be called
11658         when we don't want to NUL terminate, and we have enough space
11659         in the output to encode the given input.
11660         (base64_encode): Call the _fast() version when appropriate.
11661         Also remove a redundant mask with 0x3F on the first encoded byte.
11663 2013-11-08  Paul Eggert  <eggert@cs.ucla.edu>
11665         extern-inline: port better to OS X 10.9
11666         * m4/extern-inline.m4: Omit serial number; this file doesn't use them.
11667         (gl_EXTERN_INLINE): Do not suppress the use of extern inline on
11668         OS X 10.9, except for g++ where the bug is still present.
11669         See <http://trac.macports.org/ticket/41033>.
11671 2013-11-08  Eric Blake  <eblake@redhat.com>
11673         fpending: fix regression on DragonFly BSD
11674         * m4/fpending.m4 (gl_FUNC_FPENDING): Check for declaration.
11675         * lib/fpending.h (__fpending): Don't declare twice.
11676         Reported by GW in
11677         <https://lists.gnu.org/archive/html/bug-m4/2013-11/msg00000.html>
11679 2013-11-05  Jim Meyering  <meyering@fb.com>
11681         hash: relax license to LGPLv2+, for libguestfs
11682         * modules/hash (License): Change from GPL to LGPLv2+.
11684 2013-11-03  Paul Eggert  <eggert@cs.ucla.edu>
11686         intprops: port to Oracle Studio c99
11687         * lib/intprops.h (_GL_HAVE___TYPEOF__) [__SUNPRO_C && __STDC__]:
11688         Define to 0, to avoid diagnostics when Oracle Studio is pedantic.
11690 2013-10-31  Paul Eggert  <eggert@cs.ucla.edu>
11692         obstack: pacify HP C
11693         * lib/obstack.h (obstack_free) [!__GNUC__]: Rewrite to avoid
11694         warning "conversion from pointer to smaller integer" from HP
11695         C-ANSI-C - cc version B9007AA/B3910B A.06.26.  It's safe to assume
11696         C89 or later nowadays, so cast to void instead of int.  Privately
11697         reported by H.Merijn Brand.  Also, change header to match glibc's,
11698         to make checking against glibc easier.
11700 2013-10-29  Jim Meyering  <meyering@fb.com>
11702         maint.mk: prefer gpgv2 over gpgv
11703         * top/maint.mk (gpgv): Use gpgv2 if present, else gpgv.
11704         (gpg_key_ID): Use $(gpgv), rather than hard-coding "gpgv".
11705         Reported by Gary Vaughan.
11707 2013-10-30  Paul Eggert  <eggert@cs.ucla.edu>
11709         isnan: port to VAX
11710         Reported by John Klos for NetBSD-5/VAX in
11711         <http://lists.gnu.org/archive/html/bug-gnulib/2013-10/msg00133.html>.
11712         * lib/isnan.c (IEEE_FLOATING_POINT): New macro, stolen from Emacs.
11713         (FUNC): Use it.
11715 2013-10-28  Jim Meyering  <meyering@fb.com>
11717         gnulib-tool: protect against CDPATH
11718         * gnulib-tool: Many "cd" built-in functions print a directory name
11719         to stdout when CDPATH is set, e.g.,
11720           $ bash -c 'CDPATH=/; cd tmp'
11721           /tmp
11722         Unset it, when possible.  Prompted by a comment from Bruce Korb.
11724         maint.mk: restore functionality removed by recent change...
11725         Sunday's change, v0.0-8062-g6b24f60, may have appeared correct from
11726         the context of a shallow-cloned gnulib repository: "git describe"
11727         would fail in such a directory.  However, that change made it so
11728         the reported gnulib revision no longer includes the version number
11729         or a commit count, even when run from a full clone.
11730         * top/maint.mk (gnulib-version): Use the full "git describe"
11731         output when possible, e.g., the form above, rather than the
11732         abbreviated, no-tag, no-commit-count string, and fall back to
11733         using a 10-byte hash, rather than the default minimal-length
11734         hash prefix, since while the minimal-length one may be fine today,
11735         it is likely not to be unique for very long.
11737 2013-10-26  Jim Meyering  <meyering@fb.com>
11739         maint.mk: fix "release" target to build _version
11740         This fixes a bug in README-release whereby following the outlined
11741         steps, one would publish a tarball whose programs would report
11742         --version output not consistent with the package version number.
11743         This bug caused grep-2.15 to produce a grep program whose
11744         --version option made it print 2.14.56-1e3d rather than 2.15.
11745         * top/maint.mk (release): Making this target build "_version"
11746         ensures that the new version number is reflected in configure.
11748 2013-10-21  Ben Pfaff  <blp@cs.stanford.edu>
11750         install-reloc: Support multi-binary installation.
11751         * build-aux/install-reloc: Support installing multiple programs in
11752         one invocation, as done by Automake starting with commit
11753         4295fe33eb23f (Multi-file install for PROGRAMS.).  From Bruno
11754         Haible <bruno@clisp.org>, archived at
11755         http://lists.debian.org/debian-bsd/2012/05/msg00032.html.
11756         Reported by Sylvain <beuc@gnu.org>.
11758 2013-10-21  Michael Haubenwallner  <michael.haubenwallner@salomon.at>
11760         selinux-h: Really build without selinux when library is missing.
11761         * m4/selinux-selinux-h.m4: When the selinux library is missing, really
11762         continue without selinux, as already told in the warning message.
11764 2013-10-21  Jim Meyering  <meyering@fb.com>
11766         regex: also remove dependency on HAVE_WCSCOLL
11767         * lib/regex_internal.h: Remove final vestige of the wcscoll dependency.
11769 2013-10-21  Reuben Thomas  <rrt@sc3d.org>
11771         xfreopen: Fix typo. s/frepoen/freopen/
11772         * lib/xfreopen.c: Fix description.
11773         * modules/xfreopen: Likewise.
11775 2013-10-21  Jim Meyering  <meyering@fb.com>
11777         regex: don't depend on wcscoll
11778         * m4/regex.m4 (gl_PREREQ_REGEX): Don't check for wcscoll.
11779         It is no longer used.
11781 2013-10-20  Jim Meyering  <meyering@fb.com>
11783         error: add the printf attribute to a static function
11784         * lib/error.c (error_tail): Add the printf attribute, to placate
11785         gcc's -Werror=suggest-attribute=format option.
11787 2013-09-30  Jim Meyering  <meyering@fb.com>
11789         fpending, obstack, strerror-override: use pure+const function attrs
11790         * lib/fpending.h (__fpending): Declare with the "pure" attribute.
11791         * lib/obstack.c (_obstack_allocated_p): Likewise.
11792         * lib/obstack.h (_obstack_memory_used): Likewise.
11793         (_obstack_memory_used): Likewise.
11794         * lib/strerror-override.h (strerror_override): Declare with
11795         the "const" attribute.
11797 2013-10-18  Eric Blake  <eblake@redhat.com>
11799         extern-inline: make safe for -Wundef usage
11800         Reported by Vladimir 'phcoder' Serbinenko in
11801         https://lists.gnu.org/archive/html/bug-gnulib/2013-10/msg00078.html
11802         * m4/extern-inline.m4 (gl_EXTERN_INLINE): Port to older gcc.
11804 2013-10-16  Paul Eggert  <eggert@cs.ucla.edu>
11806         mkfifo-tests, etc.: allow HP-UX 11.11 bug
11807         Problem reported by Daniel Richard G. in
11808         <http://lists.gnu.org/archive/html/bug-gnulib/2013-10/msg00068.html>.
11809         * doc/posix-functions/mkfifo.texi (mkfifo):
11810         * doc/posix-functions/mkfifoat.texi (mkfifoat):
11811         * doc/posix-functions/mknod.texi (mknod):
11812         * doc/posix-functions/mknodat.texi (mknodat):
11813         Document the HP-UX 11.11 bug.
11814         * tests/test-mkfifo.h (test_mkfifo):
11815         Allow the HP-UX 11.11 bug.
11817 2013-10-14  Paul Eggert  <eggert@cs.ucla.edu>
11819         acl: allow cross-compilation to Gentoo
11820         Problem reported by Gabriel Marcano in
11821         <http://lists.gnu.org/archive/html/bug-gnulib/2013-10/msg00058.html>.
11822         * m4/acl.m4 (gl_ACL_GET_FILE): When cross-compiling,
11823         test only whether it links.
11825 2013-10-13  Paul Eggert  <eggert@cs.ucla.edu>
11827         mgetgroups: remove dependency on realloc-gnu
11828         The dependency violates the comment in realloc-gnu, which
11829         says that tests can't depend on realloc-gnu; some tests depend
11830         on mgetgroups, so mgetgroups can't depend on realloc-gnu.
11831         Problem reported by Daniel Richard G. in
11832         <http://lists.gnu.org/archive/html/bug-gnulib/2013-10/msg00056.html>.
11833         * lib/mgetgroups.c (mgetgroups): Don't call realloc (NULL, 0).
11834         * modules/mgetgroups (Depends-on): Depend on realloc-posix,
11835         not realloc-gnu.
11837 2013-10-12  Paul Eggert  <eggert@cs.ucla.edu>
11839         regex-tests: port to HP-UX 11.11
11840         Problem reported by Daniel Richard G. in
11841         <http://lists.gnu.org/archive/html/bug-gnulib/2013-10/msg00052.html>.
11842         * modules/regex-tests (test_regex_LDADD): Add LIBTHREAD, LIB_PTHREAD.
11844 2013-10-10  Paul Eggert  <eggert@cs.ucla.edu>
11846         verify: document some 'assume' pitfalls
11847         * doc/verify.texi (Compile-time Assertions):
11848         Mention that 'assume (E)' can sometimes slow things down.
11849         Use CHAR_MAX + 1, not UCHAR_MAX + 1.
11851 2013-10-10  Eric Blake  <eblake@redhat.com>
11853         strtoumax: fix typo in previous commit.
11854         * modules/strtoumax (Depends-on): Fix typo.
11855         * modules/strtoimax (Depends-on): Likewise.
11857 2013-10-10  Paul Eggert  <eggert@cs.ucla.edu>
11859         strtoumax: port to Solaris 8
11860         This problem was introduced in the recent HP-UX patch.
11861         Reported by Tom G. Christensen in
11862         <http://lists.gnu.org/archive/html/bug-gnulib/2013-10/msg00037.html>.
11863         * modules/strtoumax (Depends-on): Test HAVE_STRTOUMAX
11864         and REPLACE_STRTOUMAX rather than ac_cv_func_strtoumax.
11866 2013-10-09  Paul Eggert  <eggert@cs.ucla.edu>
11868         strtoimax, strtoumax: port to HP-UX 11.11
11869         Problem reported by Daniel Richard G. in
11870         <http://lists.gnu.org/archive/html/bug-gnulib/2013-10/msg00023.html>.
11871         * lib/inttypes.in.h (strtoumax): Replace strtoumax if
11872         REPLACE_STRTOUMAX, thus treating it consistently with strtoimax.
11873         * m4/inttypes.m4 (gl_INTTYPES_H_DEFAULTS): Add default for
11874         REPLACE_STRTOUMAX.
11875         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX):
11876         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX):
11877         Replace the function if defined as a macro but not as a function.
11878         * modules/inttypes-incomplete (inttypes.h): Substitute
11879         REPLACE_STRTOUMAX.
11880         * modules/strtoumax (configure.ac): Replace strtoumax if
11881         REPLACE_STRTOUMAX.
11883 2013-10-08  Paul Eggert  <eggert@cs.ucla.edu>
11885         strtoimax: port to HP-UX 11.11
11886         Problem reported by Daniel Richard G.
11887         * lib/strtoimax.c (Strtoimax, Strtol, Strtoll): New macros.
11888         (strtoimax, strtol, strtoll) [UNSIGNED]: Remove, since
11889         they might clash with inttypes.h.
11891 2013-10-06  Paul Eggert  <eggert@cs.ucla.edu>
11893         New module 'count-trailing-zeros'.
11894         * MODULES.html.sh: Mention it.
11895         * lib/count-trailing-zeros.c, lib/count-trailing-zeros.h:
11896         * m4/count-trailing-zeros.m4, modules/count-trailing-zeros:
11897         * modules/count-trailing-zeros-tests:
11898         * tests/test-count-trailing-zeros.c:
11899         New files.
11901         count-leading-zeros: port to MSC; support types wider than 64 bits
11902         The ideas behind the MSC port are stolen from Emacs.
11903         * lib/count-leading-zeros.h:
11904         Don't include verify.h: it's no longer needed, as types wider than
11905         64 bits are now supported.
11906         (COUNT_LEADING_ZEROS): New arg MSC_BUILTIN, for better
11907         performance with MSC.  All uses changed.  Do not assume that TYPE
11908         has at most 64 bits.
11909         (count_leading_zeros_32): Assume 0 < X < 2**32, for speed.
11910         All uses changed.  Fold the subtraction from 31 into the table.
11912         count-one-bits: port to MSC; support types wider than 64 bits
11913         The ideas behind the MSC port are stolen from Emacs.
11914         * lib/count-one-bits.c (popcount_support) [_MSC_VER]: New variable.
11915         * lib/count-one-bits.h: Include limits.h, for CHAR_BIT.
11916         Don't include verify.h: it's no longer needed, as types wider than
11917         64 bits are now supported.
11918         (COUNT_ONE_BITS_GENERIC): New macro.
11919         (popcount_supported) [_MSC_VER]: New inline function.
11920         (COUNT_ONE_BITS): Use it.  New arg MSC_BUILTIN, for better
11921         performance with MSC.  All uses changed.  Do not assume that TYPE
11922         has at most 64 bits.
11923         * modules/count-one-bits (Depends-on): Do not depend on 'verify'.
11925 2013-10-06  Andrew Borodin  <aborodin@vmail.ru>
11927         mountlist: fix resource leak with MOUNTED_INTERIX_STATVFS
11928         * lib/mountlist.c (read_file_system_list): fix leak of directory
11929         streams in case of #ifdef MOUNTED_INTERIX_STATVFS.
11931 2013-10-06  Paul Eggert  <eggert@cs.ucla.edu>
11933         tests: improve diagnostic when an assertion fails
11934         * tests/macros.h (ASSERT): Report the assertion that failed.
11936 2013-10-02  Paul Eggert  <eggert@cs.ucla.edu>
11938         verify: new macro 'assume'
11939         This is taken from Emacs, and should be generally useful.
11940         * doc/verify.texi (assume): Document it.
11941         * lib/verify.h (assume): New macro.
11942         (__has_builtin): Expand to 0 if not defined.
11944 2013-09-26  Eric Blake  <eblake@redhat.com>
11946         dup2, dup3: work around another cygwin crasher
11947         * m4/dup2.m4 (gl_FUNC_DUP2): Expose the bug.
11948         * m4/dup3.m4 (gl_FUNC_DUP3): Likewise.
11949         * tests/test-dup2.c (main): Likewise.
11950         * lib/dup2.c (rpl_dup2): Use setdtablesize to avoid it.
11951         * lib/dup3.c (dup3): Likewise.
11952         * doc/posix-functions/dup2.texi (dup2): Document it.
11953         * doc/glibc-functions/dup3.texi (dup3): Likewise.
11955         getdtablesize: work around cygwin issue
11956         * m4/getdtablesize.m4 (gl_FUNC_GETDTABLESIZE): Detect problem.
11957         * modules/getdtablesize (configure.ac): Build replacement.
11958         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set up a witness.
11959         * modules/unistd (Makefile.am): Expose the witness.
11960         * lib/unistd.in.h (getdtablesize): Declare replacement.
11961         * lib/getdtablesize.c (rpl_getdtablesize): Work around it.
11962         * tests/test-getdtablesize.c (main): Test it.
11963         * doc/glibc-functions/getdtablesize.texi (getdtablesize): Document it.
11965 2013-09-25  Mats Erik Andersson  <gnu@gisladisker.se>
11967         pmccabe2html: escaping of special characters
11968         Escape all '<', '>', and '&' in HTML output.
11969         * build-aux/pmccabe2html (html_fnc): Call gsub()
11970         instead of sub() to capture all '<', '>', and '&'.
11971         Neither of '<' and '>' is special in a regexp,
11972         so first arguments to gsub() are corrected. Also,
11973         in replacement strings, ampersand must be escaped.
11974         Finally, '&' must be handled first, then '<' and '>'.
11976 2013-09-24  Eric Blake  <eblake@redhat.com>
11978         manywarnings: enable nicer gcc warning messages
11979         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Older gcc requires
11980         some -f options for optimal warnings.
11982 2013-09-21  Jim Meyering  <meyering@fb.com>
11984         timespec: use the new TIMESPEC_RESOLUTION in a few more places
11985         * lib/timespec-add.c (timespec_add): Also replace 999999999
11986         with TIMESPEC_RESOLUTION - 1.
11987         * lib/timespec-sub.c (timespec_sub): Likewise.
11989 2013-09-23  Paul Eggert  <eggert@cs.ucla.edu>
11991         warnings: port --enable-gcc-warnings to Solaris Studio 12.3
11992         Problem reported by Dagobert Michelsen via Eric Blake in
11993         <http://lists.gnu.org/archive/html/bug-gnulib/2013-09/msg00052.html>.
11994         * m4/warnings.m4 (gl_COMPILER_OPTION_IF): Use AC_LINK_IFELSE,
11995         not AC_COMPILE_IFELSE.
11997 2013-09-23  Eric Blake  <eblake@redhat.com>
11999         configmake: support new --runstatedir option
12000         * m4/configmake.m4 (gl_CONFIGMAKE_PREP): Substitute runstatedir
12001         even if autoconf was too old to provide the command line option.
12002         * modules/configmake (Makefile.am): Propagate it to .h file.
12004 2013-09-22  Paul Eggert  <eggert@cs.ucla.edu>
12006         ctype, string: depend on extern-inline
12007         This is needed to complete the recent OS X fixes.
12008         Also, fix related documentation as suggested by Eric Blake.
12009         * doc/posix-functions/isalnum.texi, doc/posix-functions/isalpha.texi:
12010         * doc/posix-functions/isascii.texi, doc/posix-functions/iscntrl.texi:
12011         * doc/posix-functions/isdigit.texi, doc/posix-functions/isgraph.texi:
12012         * doc/posix-functions/islower.texi, doc/posix-functions/isprint.texi:
12013         * doc/posix-functions/ispunct.texi, doc/posix-functions/isspace.texi:
12014         * doc/posix-functions/isupper.texi, doc/posix-functions/isxdigit.texi:
12015         * doc/posix-functions/toascii.texi, doc/posix-functions/tolower.texi:
12016         * doc/posix-functions/toupper.texi:
12017         List the 'ctype' gnulib module.
12018         * doc/posix-functions/strcat.texi, doc/posix-functions/strcpy.texi:
12019         * doc/posix-functions/strncpy.texi:
12020         List the 'string' gnulib module.
12021         * modules/memcpy, modules/memmove, modules/memset (Depends-on):
12022         Add string.
12023         * modules/ctype, modules/string (Depends-on): Add extern-inline.
12025 2013-09-19  Pádraig Brady  <P@draigBrady.com>
12027         userspec: support optional parameters to parse_user_spec()
12028         * lib/userspec.c (parse_user_spec): If the GID param is NULL,
12029         then avoid group processing and treat the full spec as a user.
12030         (parse_with_separator): Allow the USERNAME and GROUPNAME to
12031         be optional params (NULL), in which case they're ignored.
12033 2013-09-19  Paul Eggert  <eggert@cs.ucla.edu>
12035         timespec: new function make_timespec, and new constants
12036         * lib/timespec.h: Incorporate recent changes on the Emacs trunk.
12037         (TIMESPEC_RESOLUTION, LOG10_TIMESPEC_RESOLUTION): New constants.
12038         (make_timespec): New function.
12039         * lib/dtotimespec.c (dtotimespec):
12040         * lib/timespec-add.c (timespec_add):
12041         * lib/timespec-sub.c (timespec_sub):
12042         * lib/utimens.c (validate_timespec):
12043         * lib/utimensat.c (rpl_utimensat):
12044         Use these new constants and functions.
12046         stdio: OS X port of putc_unlocked + extern inline
12047         * lib/stdio.in.h (putc_unlocked): #undef on problematic Apple platforms.
12048         * doc/posix-functions/putc_unlocked.texi:
12049         * doc/posix-functions/putchar_unlocked.texi:
12050         Document this portability problem.
12052         signal: OS X port of sigaddset etc. + extern inline
12053         * lib/signal.in.h (sigaddset, sigdelset, sigemptyset, sigfillset)
12054         (sigismember): #undef on problematic Apple platforms.
12055         * doc/posix-functions/sigaddset.texi:
12056         * doc/posix-functions/sigdelset.texi:
12057         * doc/posix-functions/sigemptyset.texi:
12058         * doc/posix-functions/sigfillset.texi:
12059         * doc/posix-functions/sigismember.texi:
12060         Document this portability problem.
12062         extern-inline: do not always suppress extern inline on OS X
12063         * m4/extern-inline.m4 (gl_EXTERN_INLINE): Suppress the use of
12064         extern inline on Apple only if the particular compile-time
12065         configuration is known to have the problem.
12066         (_GL_EXTERN_INLINE_APPLE_BUG): New private macro, to implement this.
12067         (_GL_EXTERN_INLINE_IN_USE): New macro, intended for use by
12068         other Gnulib modules.
12070         extern-inline: document fixes for ctype and wctype macros
12071         * doc/posix-functions/isalnum.texi, doc/posix-functions/isalpha.texi:
12072         * doc/posix-functions/isascii.texi, doc/posix-functions/isblank.texi:
12073         * doc/posix-functions/iscntrl.texi, doc/posix-functions/isdigit.texi:
12074         * doc/posix-functions/isgraph.texi, doc/posix-functions/islower.texi:
12075         * doc/posix-functions/isprint.texi, doc/posix-functions/ispunct.texi:
12076         * doc/posix-functions/isspace.texi, doc/posix-functions/isupper.texi:
12077         * doc/posix-functions/iswalnum.texi, doc/posix-functions/iswalpha.texi:
12078         * doc/posix-functions/iswcntrl.texi, doc/posix-functions/iswctype.texi:
12079         * doc/posix-functions/iswdigit.texi, doc/posix-functions/iswgraph.texi:
12080         * doc/posix-functions/iswlower.texi, doc/posix-functions/iswprint.texi:
12081         * doc/posix-functions/iswpunct.texi, doc/posix-functions/iswspace.texi:
12082         * doc/posix-functions/iswupper.texi, doc/posix-functions/iswxdigit.texi:
12083         * doc/posix-functions/isxdigit.texi, doc/posix-functions/toascii.texi:
12084         * doc/posix-functions/memcpy.texi, doc/posix-functions/memmove.texi:
12085         * doc/posix-functions/memset.texi, doc/posix-functions/stpcpy.texi:
12086         * doc/posix-functions/stpncpy.texi, doc/posix-functions/strcat.texi:
12087         * doc/posix-functions/strcpy.texi, doc/posix-functions/strncat.texi:
12088         * doc/posix-functions/strncpy.texi:
12089         * doc/posix-functions/tolower.texi, doc/posix-functions/toupper.texi:
12090         * doc/posix-functions/towlower.texi, doc/posix-functions/towupper.texi:
12091         Document that Gnulib fixes portability problems with these
12092         functions on OS X 10.8 and earlier when called from plain inline
12093         or extern inline functions.
12095 2013-09-17  Kevin Cernekee  <cernekee@gmail.com>
12097         fflush, freadahead, fseeko: Fix for Android
12098         Suggested by Bruno Haible in:
12099         <http://lists.gnu.org/archive/html/bug-gnulib/2012-01/msg00306.html>
12100         * lib/stdio-impl.h: Use local __sfileext definition.
12102 2013-09-17  Mats Erik Andersson  <gnu@gisladisker.se>
12104         pmccabe2html: Portability to other awk versions.
12105         The functions systime() and strftime() are available
12106         in Gawk only.  Properly close two HTML-tags 'style'
12107         and 'span'.
12108         * build-aux/pmccabe2html (BEGIN): Store timing
12109         strings in EPOCH_TIME and CHRONOS_TIME.  Replace
12110         systime() in HTML_COMMENT.
12111         (html_header): Correctly close tag 'style'.
12112         (END): Replace strftime() by CHRONOS_TIME.  Close
12113         tag 'span' correctly, not as 'div'.
12115 2013-09-17  Mats Erik Andersson  <gnu@gisladisker.se>  (tiny change)
12117         getgroups: statement without effect
12118         * lib/getgroups.c (rpl_getgroups) [HAVE_GETGROUPS]:
12119         Change equality conditional to expected assignment.
12121 2013-09-09  Eric Blake  <eblake@redhat.com>
12123         glob: fix compilation
12124         * lib/glob.in.h (__THROW): Fix missing line in previous commit.
12126 2013-09-07  Eric Blake  <eblake@redhat.com>
12128         glob: fix build for platforms without __THROW
12129         * lib/glob.in.h (__THROW): Add definition again.
12131 2013-09-04  Anton Ovchinnikov  <revolver112@gmail.com>  (tiny change)
12133         regex-quote: fix buffer access out of bounds
12134         http://lists.gnu.org/archive/html/bug-gnulib/2013-09/msg00001.html
12135         * lib/regex-quote.c (regex_quote_spec_pcre):
12136         Fix typo that resulted in an out-of-bounds read.
12138 2013-09-04  Eric Blake  <eblake@redhat.com>
12140         glob: avoid -Wattribute warnings on glibc
12141         * lib/glob.c (next_brace_sub, prefix_array, collated_compare): Use
12142         __THROWNL, not __THROW, on static functions.
12143         * lib/glob.in.h (__THROW): Adjust...
12144         (__THROWNL): ...accordingly.
12146 2013-08-28  Paul Eggert  <eggert@cs.ucla.edu>
12148         headers: check that _GL_INLINE_HEADER_BEGIN is defined
12149         Suggested by Bruce Korb in:
12150         http://lists.gnu.org/archive/html/bug-gnulib/2013-08/msg00070.html
12151         * doc/extern-inline.texi (extern inline):
12152         Suggest checking that _GL_INLINE_HEADER_BEGIN is defined.
12153         * lib/acl-internal.h, lib/argp-fmtstream.h, lib/argp.h:
12154         * lib/binary-io.h, lib/bitrotate.h, lib/count-leading-zeros.h:
12155         * lib/count-one-bits.h, lib/eealloc.h, lib/execinfo.in.h:
12156         * lib/gethrxtime.h, lib/gl_list.h, lib/gl_oset.h, lib/gl_xlist.h:
12157         * lib/gl_xoset.h, lib/gl_xsublist.h, lib/glthread/cond.h:
12158         * lib/glthread/thread.h, lib/math.in.h, lib/mbchar.h, lib/mbfile.h:
12159         * lib/mbiter.h, lib/mbuiter.h, lib/openat.h, lib/pipe-filter-aux.h:
12160         * lib/priv-set.h, lib/pthread.in.h, lib/savewd.h, lib/se-context.in.h:
12161         * lib/se-selinux.in.h, lib/sig-handler.h, lib/stat-time.h:
12162         * lib/sys_socket.in.h, lib/timespec.h, lib/u64.h, lib/unistd.in.h:
12163         * lib/utimens.h, lib/wctype.in.h, lib/xalloc.h, lib/xsize.h:
12164         * lib/xtime.h:
12165         Check that _GL_INLINE_HEADER_BEGIN is defined.
12167 2013-08-29  Pádraig Brady  <P@draigBrady.com>
12169         bootstrap: remove the --version requirement from ancillary tools
12170         * build-aux/bootstrap (check_exists): A new refactored function to
12171         determine if a command exists.
12172         (find_tool): Use the new function which does not require the
12173         --version option to be supported.
12174         (check_versions): Use the new function.
12176 2013-08-26  Simon Josefsson  <simon@josefsson.org>
12178         gc: support HMAC-SHA256 and HMAC-SHA512.
12179         * lib/gc.h: Add gc_hmac_sha256 and gc_hmac_sha512.
12180         * lib/gc-libgcrypt.c (gc_hmac_sha256, gc_hmac_sha512): New
12181         functions.
12182         (gc_hmac_md5): Use symbolic constant.
12183         * lib/gc-gnulib.c: Include hmac.h for HMAC-SHA256/512 too.
12184         (gc_hmac_sha256, gc_hmac_sha512): New functions.
12185         * lib/hmac.h: Add hmac_sha256 and hmac_sha512 prototypes.
12186         * m4/sha256.m4: Protect against empty expansion.
12187         * m4/sha512.m4: Likewise.
12188         * lib/hmac-sha256.c: New file.
12189         * lib/hmac-sha512.c: Likewise.
12190         * m4/gc-hmac-sha256.m4: Likewise.
12191         * m4/gc-hmac-sha512.m4: Likewise.
12192         * m4/gc-sha256.m4: Likewise.
12193         * m4/gc-sha512.m4: Likewise.
12194         * modules/crypto/gc-hmac-sha256: Likewise.
12195         * modules/crypto/gc-hmac-sha256-tests: Likewise.
12196         * modules/crypto/gc-hmac-sha512: Likewise.
12197         * modules/crypto/gc-hmac-sha512-tests: Likewise.
12198         * modules/crypto/hmac-sha256: Likewise.
12199         * modules/crypto/hmac-sha256-tests: Likewise.
12200         * modules/crypto/hmac-sha512: Likewise.
12201         * modules/crypto/hmac-sha512-tests: Likewise.
12202         * tests/test-gc-hmac-sha256.c: Likewise.
12203         * tests/test-gc-hmac-sha512.c: Likewise
12204         * tests/test-hmac-sha256.c: Likewise.
12205         * tests/test-hmac-sha512.c: Likewise
12207 2013-08-24  Daiki Ueno  <ueno@gnu.org>
12209         * m4/intl.m4: Update from gettext-0.18.3.1, which fixes a misuse
12210         of AC_CHECK_DECLS.
12212 2013-08-23  Paul Eggert  <eggert@cs.ucla.edu>
12214         selinux-at: omit unnecessary include
12215         * lib/selinux-at.c: Don't include dosname.h; not needed, since
12216         this source file doesn't use its macros, and subsidiary files that
12217         use the macros already include it.
12219 2013-08-21  Eric Blake  <eblake@redhat.com>
12221         d-ino: avoid false negative on symlink
12222         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Use lstat.
12223         Reported by Stephane Chazelas.
12225 2013-08-12  Mike Miller  <mtmiller@ieee.org>  (tiny change)
12227         bootstrap: port to OpenBSD sed
12228         * build-aux/bootstrap (insert_if_absent): Port to OpenBSD sed which
12229         does not interpret `-' as a file argument to mean stdin.
12231 2013-08-15  Eric Blake  <eblake@redhat.com>
12233         warnings: minor optimization
12234         * m4/warnings.m4 (gl_COMPILER_OPTION_IF): Use fewer processes.
12236         warnings: check -Wfoo rather than -Wno-foo
12237         * m4/warnings.m4 (gl_COMPILER_OPTION_IF): If name begins with
12238         -Wno-, test if the compiler recognizes the positive form instead.
12240 2013-08-15  Karl Berry  <karl@gnu.org>
12242         * config/srclist-update: add option "doclicense" to placate
12243         pulling *.texi files from Emacs.  Write terse usage
12244         documentation at the top.
12246 2013-08-13  Paul Eggert  <eggert@cs.ucla.edu>
12248         xvasprintf-tests: port to GCC with hardening flags
12249         * tests/test-xvasprintf.c (test_xasprintf): Pass another arg to
12250         xasprintf, to pacify GCC.  Reported by Santiago Vila in:
12251         http://lists.gnu.org/archive/html/bug-diffutils/2013-08/msg00002.html
12253 2013-08-11  Paul Eggert  <eggert@cs.ucla.edu>
12255         fpending: port to recent Cygwin change to stdio_ext.h
12256         Reported by LRN in
12257         <http://lists.gnu.org/archive/html/bug-gnulib/2013-08/msg00028.html>.
12258         * lib/fpending.h: Don't worry about HAVE_DECL___FPENDING;
12259         just declare __fpending unless it's a macro.
12260         A duplicate decl shouldn't hurt.
12261         * m4/fpending.m4 (gl_FUNC_FPENDING): Check that an __fpending
12262         call compiles and links, instead of separately checking for
12263         decl and lib function.
12264         * modules/fpending (configure-ac):
12265         Adjust to fpending.m4's renaming of shell variable.
12267 2013-08-10  Paul Eggert  <eggert@cs.ucla.edu>
12269         sys_time: port to OpenBSD
12270         * lib/sys_time.in.h: Simply delegate to the system's header
12271         in the BSDish cases as well.  Problem reported by Mike Miller in
12272         <http://lists.gnu.org/archive/html/bug-gnulib/2013-08/msg00016.html>.
12273         * tests/test-sys_select.c, tests/test-sys_time.c (verify_tv_sec_type):
12274         Allow platforms like 64-bit OpenBSD where timeval's tv_sec is
12275         wider than time_t.
12277 2013-08-09  Pádraig Brady  <P@draigBrady.com>
12279         bootstrap: support checksum utils having -c but not --status
12280         * build-aux/bootstrap: Only look for sha1sum if updating po files.
12281         Add sha1 to the list of supported checksum utils since it's now
12282         supported through adjustments below.
12283         (update_po_files): Remove the use of --status
12284         in a way that will suppress all error messages, but since this is
12285         only used to minimize updates, it shouldn't cause an issue.
12286         Exit early if there is a problem updating the po file checksums.
12287         (find_tool): Remove the check for --version support as this
12288         is optional as per commit 86186b17.  Don't even check for the
12289         presence of the command as if that is needed, it's supported
12290         through configuring prerequisites in bootstrap.conf.
12291         Prompt that when a tool isn't found, one can define an environment
12292         variable to add to the hardcoded search list.
12294 2013-08-05  Jim Meyering  <meyering@fb.com>
12296         regex: port to non-glibc/lock-using systems
12297         Since 29-05-2013 commit, 55ba71f4, compilation on a non-glibc
12298         system with GNULIB_LOCK would fail due to absence of the
12299         included "glthread/lock.h".  This would affect any package
12300         for which the "lock" module is used only by the regex module,
12301         and not explicitly used.
12302         * m4/regex.m4 (gl_PREREQ_REGEX): Require gl_GLIBC21.
12303         * modules/regex (Depends-on) [!GLIBC && $ac_use_included_regex]:
12304         Add a dependency on the "lock" module.
12306 2013-07-20  Daiki Ueno  <ueno@gnu.org>
12308         localecharset: make locale_charset thread-safe on Mac OS X
12309         * lib/localcharset.c (locale_charset) [DARWIN7]: Use MB_CUR_MAX_L
12310         instead of MB_CUR_MAX.
12312 2013-07-20  Daiki Ueno  <ueno@gnu.org>
12314         gettext: update to version 0.18.3
12315         * m4/intl.m4, m4/po.m4: Update from gettext-0.18.3.  In particular,
12316         require AC_PROG_SED to allow user to specify custom sed command when
12317         generating en@quot PO file.
12319 2013-07-18  Werner Lemberg  <wl@gnu.org>  (tiny change)
12321         bootstrap: use correct source when copying build-aux files
12322         * build-aux/bootstrap (gnulib_extra_files): This variable is
12323         relative to upstream gnulib layout, not downstream.
12325 2013-07-17  Paul Eggert  <eggert@cs.ucla.edu>
12327         tmpdir: fix bug in VMS port
12328         * lib/tmpdir.c (path_search) [__VMS]: Never add slash.
12329         See Steven M. Schweda in
12330         <http://lists.gnu.org/archive/html/bug-gnulib/2013-07/msg00026.html>.
12332 2013-07-15  Paul Eggert  <eggert@cs.ucla.edu>
12334         tmpdir: port to VMS, to // != /, and to long dirs
12335         * lib/tmpdir.c (__libc_secure_getenv) [!_LIBC]: Rename from
12336         __secure_getenv, so that we're more like the glibc version.
12337         All uses changed.
12338         (path_search): Don't put slash after directory if __VMS.
12339         Problem reported by Steven M. Schweda in
12340         <http://lists.gnu.org/archive/html/bug-gnulib/2013-07/msg00019.html>.
12341         Simplify code to add slash; no need for a loop.
12342         Do not remove trailing slash from "//".
12343         Do not assume dlen <= INT_MAX.
12345 2013-07-09  Paul Eggert  <eggert@cs.ucla.edu>
12347         regex: port to --with-included-regex --enable-gcc-warnings non-threaded
12348         * lib/regex_internal.h (lock_fini, lock_lock): Rework to avoid
12349         gcc warnings in the non-threaded case.  Reported by Charlie Brown in
12350         <http://lists.gnu.org/archive/html/bug-gnulib/2013-07/msg00015.html>.
12352         accept4, dup3, pipe2: port to Cygwin
12353         Problem reported for Emacs by Ken Brown in <http://bugs.gnu.org/14821>.
12354         * lib/accept4.c (accept4) [O_BINARY]:
12355         * lib/dup3.c (dup3) [O_BINARY]:
12356         * lib/pipe2.c (pipe2) [O_BINARY]:
12357         Use set_binary_mode, not setmode.
12358         * lib/pipe2.c [!GNULIB_BINARY_IO]: Include binary-io.h.
12359         * modules/binary-io (Depends-on): Remove module indicator.
12360         These last two bits undo the previous change to pipe2 and binary-io.
12362 2013-07-09  Pádraig Brady  <P@draigBrady.com>
12364         mountlist: add support for deallocating returned list entries
12365         * lib/mountlist.c (free_mount_entry): A new exported function
12366         to deallocate a mount list entry.
12367         (read_file_system_list): Refactor to use the new deallocation function.
12368         Suggested by Anton Ovchinnikov.
12370 2013-07-07  Paul Eggert  <eggert@cs.ucla.edu>
12372         stdalign, verify: port to FreeBSD 9.1, to C11, and to C++11
12373         Problem reported by Ulrich Mueller in <http://bugs.gnu.org/14812>.
12374         * lib/stdalign.in.h (_Alignas, _Alignof):
12375         Port to FreeBSD 9.1, and to C11 and C++11.
12376         (_Alignas): Also support ICC.
12377         * lib/verify.h (_Static_assert): Undef if <stddef.h> defines it.
12378         * m4/stdalign.m4 (gl_STDALIGN_H): Port to ICC and to C++11.
12380 2013-07-06  Paul Eggert  <eggert@cs.ucla.edu>
12382         fnmatch: don't goto over declaration
12383         * lib/fnmatch_loop.c (FCT): Hoist local up one level, to avoid
12384         undefined behavior for goto over a declaration.
12385         Problem reported by Charlie Brown in
12386         <http://lists.gnu.org/archive/html/bug-gnulib/2013-07/msg00009.html>.
12388         pipe2: decouple from binary-io a bit
12389         This is for Emacs, which needs pipe2 but not binary-io.
12390         * lib/pipe2.c [!GNULIB_BINARY_IO]: Don't include binary-io.h.
12391         * modules/binary-io (Depends-on): Add module indicator.
12393 2013-07-03  Eric Blake  <eblake@redhat.com>
12395         mgetgroups: relax license to LGPLv2+
12396         * modules/getugroups (License): Change from GPLv3+.
12397         * modules/mgetgroups (License): Likewise.
12398         * modules/getgroups (License): Change from LGPLv3+.
12400         xalloc-oversized: relax license to LGPLv2+
12401         * modules/xalloc-oversized (License): Change from GPLv3+.
12403         nproc: relax license to LGPLv2+
12404         * modules/nproc (License): Change from LGPLv3+.
12406         bootstrap: honor --no-git
12407         * build-aux/bootstrap: Don't even try to use git when user is
12408         pointing to a static checkout.
12410 2013-06-23  Paul Eggert  <eggert@cs.ucla.edu>
12412         ignore-value: port to gcc -pedantic
12413         * lib/ignore-value.h (ignore_value):
12414         Port to gcc -pedantic, by using __extension__.
12415         Reindent as per usual gnulib style nowadays.
12416         Simplify GCC version check.
12418 2013-06-21  Paul Eggert  <eggert@cs.ucla.edu>
12420         extern-inline: port to gcc -std=c89
12421         * m4/extern-inline.m4 (gl_EXTERN_INLINE):
12422         Do not use __gnu_inline__ if pedantic and pre-C99.
12424 2013-06-18  Paul Eggert  <eggert@cs.ucla.edu>
12426         doc: document extern-inline
12427         * doc/extern-inline.texi: New file.
12428         * doc/gnulib.texi (alloca-opt): Include it.
12429         * m4/extern-inline.m4: Move some comments to documentation,
12430         and others closer to what they describe.
12432         doc: chatter less
12433         * doc/Makefile (NEWEST_GNULIB_TEXI_FILE): New macro.
12434         (updated-stamp): Use it.  This causes 'make' to output just
12435         one file name rather than zillions.
12437         fflush, fseeko: port to musl cross-compiles
12438         * lib/fseeko.c (fseeko): Assume that fflushing stdin works if
12439         on some implementation that (1) is not known to be buggy,
12440         (2) claims conformance to POSIX.1-2008 or later, and (3) is being
12441         cross-compiled to so we can't easily check for lack of
12442         conformance.  This is for cross-compiling to musl.
12443         Reported by Rich Felker in
12444         <http://lists.gnu.org/archive/html/bug-gnulib/2013-06/msg00043.html>.
12445         * m4/fclose.m4 (gl_FUNC_FCLOSE):
12446         * m4/fflush.m4 (gl_FUNC_FFLUSH):
12447         * m4/fseeko.m4 (gl_FUNC_FSEEKO):
12448         Adjust to above change.
12449         * m4/fflush.m4 (gl_FUNC_FFLUSH_STDIN): Set gl_cv_func_fflush_stdin
12450         to 'cross', not to 'no', when cross-compiling.  AC_DEFINE
12451         FUNC_FFLUSH_STDIN to 1, 0, -1 if fflushing stdin is known to work,
12452         known not to work, or unknown.
12454 2013-06-15  Paul Eggert  <eggert@cs.ucla.edu>
12456         msvc-inval: port to mingw-w64
12457         * lib/msvc-inval.c (gl_msvc_invalid_parameter_handler):
12458         Use __cdecl, not cdecl, for mingw-w64.  Reported by LRN in
12459         <http://lists.gnu.org/archive/html/bug-gnulib/2013-06/msg00039.html>.
12461 2013-06-11  Paul Eggert  <eggert@cs.ucla.edu>
12463         getcwd-lgpl: port to Tru64
12464         * lib/getcwd-lgpl.c: Include <stdlib.h>, for malloc etc.
12465         Problem reported by Steven M. Schweda in
12466         <http://lists.gnu.org/archive/html/bug-gzip/2013-06/msg00010.html>.
12468         tests: port large-fd POSIX spawn tests to OS X
12469         Problem reported by Daiki Ueno in
12470         <http://lists.gnu.org/archive/html/bug-gnulib/2013-06/msg00031.html>.
12471         * tests/test-posix_spawn_file_actions_addclose.c:
12472         * tests/test-posix_spawn_file_actions_adddup2.c:
12473         * tests/test-posix_spawn_file_actions_addopen.c:
12474         Include <limits.h>, for OPEN_MAX, if available.
12475         (big_fd): New static function.
12476         (main): Use it.
12478 2013-06-04  Bernhard Voelker  <mail@bernhard-voelker.de>
12480         tests/nap.h: use an adaptive delay to avoid ctime update issues
12481         The recent change in nap.h (5191133e) decreased the probability of lost
12482         races to about a third, however such problems could still be observed
12483         in virtual machines and openSUSE's OBS.
12484         Before, nap() detected the needed time once empirically and then used
12485         that delay (together with a small correction multiplier) in further
12486         calls.  This problem has been reported and discussed several times,
12487         including guesses about possible kernel issues:
12488         https://lists.gnu.org/archive/html/bug-gnulib/2013-04/msg00071.html
12489         http://lists.gnu.org/archive/html/coreutils/2012-03/msg00088.html
12490         https://lists.gnu.org/archive/html/bug-gnulib/2011-11/msg00226.html
12491         http://bugs.gnu.org/12820
12492         https://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00113.html
12493         https://lists.gnu.org/archive/html/bug-gnulib/2009-11/msg00007.html
12494         Now, nap() avoids the race alltogether by verifying on a reference
12495         file whether a timestamp difference has happened.
12496         * tests/nap.h (nap_fd): Define file descriptor variable for the
12497         witness file.
12498         (nap_works): Change return value to bool.  Change passing
12499         the old file's status by value instead of by reference as this function
12500         does no longer update that timestamp; rename the function argument from
12501         st to old_st.  Remove the local variables cdiff and mdiff because that
12502         function now returns true/false instead of the precise delay.
12503         (guess_delay): Remove function.
12504         (clear_tmp_file): Add new function to close and unlink the witness file.
12505         (nap): Instead of re-using the delay which has been calculated during
12506         the first call, avoid the race by actually verifying that a timestamp
12507         difference can be observed on the current file system.  Use an adaptive
12508         approach for the delay to minimize execution time.  Assert that the
12509         maximum delay is <= ~2 seconds, more precisely sum(2^n) from 0 to 30
12510         = 2^31 - 1 = 2.1s.
12511         Use atexit to call clear_tmp_file when the process terminates.
12513 2013-06-02  Paul Eggert  <eggert@cs.ucla.edu>
12515         sig2str: port to C++
12516         * lib/sig2str.h (sig2str, str2sig): Declare as extern "C".
12517         Reported by Daniel J Sebald in
12518         <http://lists.gnu.org/archive/html/bug-gnulib/2013-06/msg00000.html>.
12520 2013-05-30  Eric Blake  <eblake@redhat.com>
12522         docs: mention cygwin shortcoming in <sys/un.h>
12523         * doc/posix-headers/sys_un.texi (sys/un.h): Mention problem.
12525         vasnprintf: silence mingw compiler warning
12526         * lib/vasnprintf.c (VASNPRINTF): Avoid unused variable warning.
12528 2013-05-29  Paul Eggert  <eggert@cs.ucla.edu>
12530         c-ctype, regex, verify: port to gcc -std=c90 -pedantic
12531         Avoid constructions that are rejected by gcc -std=c90 -pedantic.
12532         This fixes a porting bug I recently reintroduced in regex, and
12533         some other instances that I discovered while testing the fix.
12534         * lib/c-ctype.h [__STRICT_ANSI__]: Avoid ({ ... }).
12535         * lib/regcomp.c (utf8_sb_map) [__STRICT_ANSI__]: Avoid [0 ... N] = E.
12536         * lib/regex_internal.h [!_LIBC && GNULIB_LOCK]: Do not use a macro
12537         with an empty argument if this is a pedantic pre-C99 GCC.
12538         * lib/verify.h: Do not use _Static_assert if this is a pedantic
12539         pre-C11 GCC.
12541         regex: adapt to locking regime instead of depending on pthread
12542         Instead of depending on pthread, adapt to whatever thread
12543         modules are in use.  Problem reported by Ludovic Courtès in
12544         <http://lists.gnu.org/archive/html/bug-gnulib/2013-05/msg00082.html>
12545         and by Mats Erik Andersson in
12546         <http://lists.gnu.org/archive/html/bug-gnulib/2013-05/msg00100.html>.
12547         * lib/regex_internal.h (lock_define, lock_init, lock_fini):
12548         Support either the 'lock' module, or the 'pthread' module, or
12549         no module.
12550         (lock_lock, lock_unlock): New macros.
12551         * lib/regexec.c (regexec, re_search_stub): Use the new macros.
12552         * modules/lock, modules/pthread (configure.ac): Add module indicator.
12553         * modules/regex (Depends-on): Remove pthread.
12555 2013-05-22  Eric Blake  <eblake@redhat.com>
12557         getgroups: document portability issues
12558         * doc/glibc-functions/initgroups.texi (initgroups): Mention
12559         multithread safety.
12560         * doc/posix-functions/getpwuid.texi (getpwuid): Likewise.
12561         * doc/posix-functions/getpwuid_r.texi (getpwuid_r): Likewise.
12562         * doc/glibc-functions/getgrouplist.texi (getgrouplist): Mention
12563         getugroups.
12564         * doc/posix-functions/getgroups.texi (getgroups): Mention
12565         multithread safety and mgetgroups.
12567 2013-05-22  Bernhard Voelker  <mail@bernhard-voelker.de>
12569         test-lchown, test-chown: also skip test if chown fails with EPERM
12570         * tests/test-lchown.h (test_lchown): Add EPERM to the condition to
12571         skip this test, to handle FAT file systems.
12572         * tests/test-chown.h (test_chown): Likewise.
12574 2013-05-19  Paul Eggert  <eggert@cs.ucla.edu>
12576         regex: fix dfa race in multithreaded uses
12577         Problem reported by Ludovic Courtès in
12578         <http://lists.gnu.org/archive/html/bug-gnulib/2013-05/msg00058.html>.
12579         * lib/regex_internal.h (lock_define, lock_init, lock_fini):
12580         New macros.  All uses of __libc_lock_define, __libc_lock_init
12581         changed to use the first two of these.
12582         (__libc_lock_lock, __libc_lock_unlock): New macros, for
12583         non-glibc platforms.
12584         (struct re_dfa_t): Define the lock unconditionally.
12585         * lib/regexec.c (regexec, re_search_stub): Remove some now-incorrect
12586         '#ifdef _LIBC"s.
12587         * modules/regex (Depends-on): Add pthread, if we use the
12588         included regex.
12590         * lib/regcomp.c: Do actions that are not needed for glibc,
12591         but may be needed elsewhere.
12592         (regfree, re_compile_internal): Destroy the lock.
12593         (re_compile_internal): Check for lock-initialization failure.
12595         malloca: port to compilers that reject size-zero arrays
12596         This fixes a bug introduced in my previous patch.
12597         * lib/malloca.c (struct preliminary_header): Use an int
12598         rather than a character array of size int; that's simpler.
12599         (struct header): Remove, replacing with ...
12600         (union header): New type.  This avoids the need for declaring a
12601         character array of size zero, which is not allowed on some platforms.
12602         All uses changed.
12604 2013-05-18  Paul Eggert  <eggert@cs.ucla.edu>
12606         parse-datetime, tests: don't use "string" + int
12607         Recent versions of 'clang' complain about C source code that
12608         uses expressions of the form '"string literal" + integer',
12609         I guess on the theory that it's confusing for readers who are
12610         used to C++.  On those grounds I suppose it's OK to make this
12611         minor style change.
12612         * lib/parse-datetime.y (parse_datetime):
12613         * tests/test-fchdir.c (main):
12614         * tests/test-snprintf-posix.h (test_function):
12615         * tests/test-snprintf.c (main):
12616         * tests/test-vasnprintf-posix.c (test_function):
12617         * tests/test-vasnprintf.c (test_function):
12618         * tests/test-vsnprintf.c (main):
12619         * tests/unistdio/test-ulc-asnprintf1.h (test_function):
12620         Rewrite '"str" + E' to '&"str"[E]'.
12622 2013-05-17  Alexandre Duret-Lutz  <adl@lrde.epita.fr>
12624         argmatch: port to C++
12625         * lib/argmatch.h [__cplusplus]: Add extern "C".
12627         argp: typo fix
12628         * lib/argp-help.c: Typo in comment.
12630 2013-05-15  Paul Eggert  <eggert@cs.ucla.edu>
12632         manywarnings: update for GCC 4.8.0
12633         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC):
12634         Add -Waggressive-loop-optimizations, -Wreturn-local-addr, which
12635         are new to GCC 4.8.  Remove -Wformat=2, -Wmissing-format-attribute,
12636         -Wmissing-noreturn, as they are duplicates of other warnings.
12637         Remove -Wunreachable-code, as it is removed in GCC 4.8 and
12638         was documented to be flaky in earlier versions of GCC.
12640         spawn-tests, sys_socket-tests, sys_wait-tests: port to clang
12641         * tests/test-spawn.c (main):
12642         * tests/test-sys_socket.c (main):
12643         * tests/test-sys_wait.c (main):
12644         Don't have a switch value that isn't covered by a case.
12646         getaddrinfo-tests: port --enable-gcc-warnings to clang
12647         * tests/test-getaddrinfo.c (simple):
12648         Avoid casts from looser to stricter-aligned pointers.
12650         thread: port --enable-gcc-warnings to clang
12651         * lib/glthread/thread.h [__clang__ && USE_POSIX_THREADS_WEAK]:
12652         Include <signal.h>, to pacify a warning about pthread_sigmask.
12654         stdio: use __REDIRECT for fwrite, fwrite_unlocked
12655         * lib/stdio.in.h (fwrite):
12656         When working around bug 11959, use __REDIRECT rather than '#define
12657         fwrite(...) ... fwrite (...) ...'.  This is a more-targeted way to
12658         fix the -Wunused-value issue with clang, and it works with GCC too.
12659         Problem with targeting reported by Eric Blake in
12660         <http://lists.gnu.org/archive/html/bug-gnulib/2013-05/msg00067.html>.
12661         (fwrite_unlocked): Treat like fwrite.  I ran into this issue while
12662         debugging the fwrite issue.
12664         stdio: port --enable-gcc-warnings to clang
12665         * lib/stdio.in.h (fwrite) [__clang__]: Ignore -Wunused-value entirely,
12666         since the GCC workaround for fwrite does not pacify clang.
12668         sig2str: port --enable-gcc-warnings to clang
12669         * lib/sig2str.c (sig2str): Avoid warning about unused printf argument.
12671         obstack: port --enable-gcc-warnings to clang
12672         * lib/obstack.h (obstack_ptr_grow_fast, obstack_int_grow_fast):
12673         Avoid casts from looser to stricter-aligned pointers.
12675         memchr2: port --enable-gcc-warnings to clang
12676         * lib/memchr2.c (memchr2):
12677         Avoid casts from looser to stricter-aligned pointers.
12679         mbsstr: port --enable-gcc-warnings to clang
12680         * lib/mbsstr.c (knuth_morris_pratt_multibyte):
12681         Avoid casts from looser to stricter-aligned pointers.
12683         malloca: port --enable-gcc-warnings to clang
12684         * lib/malloca.c (struct header): New member 'magic', to avoid casts.
12685         (mmalloca): Avoid casts from looser to stricter-aligned pointers.
12687         inttostr: port --enable-gcc-warnings to clang
12688         * lib/anytostr.c [__clang__]: Ignore -Wtautological-compare.
12690         warnings: port to clang
12691         Problem reported by Daniel P. Berrange via Eric Blake in
12692         <http://lists.gnu.org/archive/html/bug-gnulib/2013-05/msg00055.html>.
12693         * m4/warnings.m4 (gl_UNKNOWN_WARNINGS_ARE_ERRORS): New macro.
12694         (gl_WARN_ADD): Use it.
12696 2013-05-11  Jim Meyering  <meyering@fb.com>
12698         quotearg: do not read beyond end of buffer
12699         * lib/quotearg.c (quotearg_buffer_restyled): Do not read beyond the
12700         end of an ARG for which no length was specified.  With an N-byte
12701         quote string, (e.g., N is 3 in the fr_FR.UTF-8 locale), this function
12702         would read N-2 bytes beyond ARG's trailing NUL.  This was triggered
12703         via coreutils' misc/sort-debug-keys.sh test and detected by running
12704         the test against a binary compiled with gcc-4.8.0's -fsanitize=address.
12705         * tests/test-quotearg-simple.c (main): Add a test to trigger the bug.
12706         * modules/quotearg-simple-tests (Files): Add tests/zerosize-ptr.h.
12707         Introduced via the 2000-01-15 commit, c4b7f3f8, "Quote multibyte
12708         characters correctly."
12710 2013-05-11  Daiki Ueno  <ueno@gnu.org>
12712         lock: work around pthread recursive mutexes bug in Mac OS X 10.6
12713         * m4/lock.m4: Don't define HAVE_PTHREAD_MUTEX_RECURSIVE if the
12714         compilation target is Mac OS X 10.6.
12715         Problem reported by parafin and Andoni Morales in
12716         <http://savannah.gnu.org/bugs/?37844> and
12717         <http://lists.gnu.org/archive/html/bug-gettext/2013-05/msg00007.html>.
12719 2013-05-11  Paul Eggert  <eggert@cs.ucla.edu>
12721         mkdir-p: remove assumptions about umask and mode
12722         * lib/mkdir-p.c (make_dir_parents): Do not assume that the current
12723         umask is 0, or that MODE is a subset of MODE_BITS.
12725 2013-05-10  Eric Blake  <eblake@redhat.com>
12727         maint.mk: catch more abuse of HAVE_DECL in syntax-check
12728         * top/maint.mk (sc_prohibit_defined_have_decl_tests): Relax regex.
12730 2012-05-10  Stefano Lattarini  <stefano.lattarini@gmail.com>
12732         deps: require Automake >= 1.9.6 in generated Makefile fragments
12734         That is the same minimal version required in the DEPENDENCIES file.
12735         Moreover, the old code generated a requirement of Automake >= 1.5,
12736         and that is an insanely outdated version.
12738         * gnulib-tool: Bump minimal version requirement in AUTOMAKE_OPTIONS.
12739         * tests/havelib/rpathlx/Makefile.am: Likewise.
12740         * tests/havelib/rpathly/Makefile.am: Likewise.
12741         * tests/havelib/rpathlyx/Makefile.am: Likewise.
12742         * tests/havelib/rpathlz/Makefile.am: Likewise.
12743         * tests/havelib/rpathlzyx/Makefile.am: Likewise.
12744         * tests/havelib/rpathx/Makefile.am: Likewise.
12745         * tests/havelib/rpathy/Makefile.am: Likewise.
12746         * tests/havelib/rpathz/Makefile.am: Likewise.
12748 2013-05-08  Eric Blake  <eblake@redhat.com>
12750         bootstrap: AC_INIT may have more than four parameters
12751         * build-aux/bootstrap (extract_package_name): Correctly extract
12752         non-empty tarname field.  Avoid range in regex.
12753         Based on a report by Sami Kerola <kerolasa@iki.fi>.
12755 2013-05-07  Paul Eggert  <eggert@cs.ucla.edu>
12757         qacl: port to MS-Windows port of GNU Emacs
12758         * lib/acl-errno-valid.c (acl_errno_valid) [ENOTSUP == ENOSYS]:
12759         Omit the duplicate ENOTSUP case.  Needed for the MS-Windows
12760         port of GNU Emacs.  Problem reported by Eli Zaretskii in
12761         <http://bugs.gnu.org/14295#14>.
12763 2013-05-07  Mike Frysinger  <vapier@gentoo.org>
12765         acl: include quote.h
12766         * lib/copy-acl.c: Include quote.h.
12767         * lib/set-acl.c: Likewise.
12769 2013-05-06  Mike Frysinger  <vapier@gentoo.org>
12771         fchownat, renameat, unlinkat: update statat dependencies
12772         These modules use statat and lstatat, not fstatat; so depend on
12773         the statat module, which was split out recently from fstatat.
12774         * modules/fchownat, modules/unlinkat: Change fstatat to statat.
12775         * modules/renameat: Likewise.  Also delete fstat.
12776         URL: http://bugs.gentoo.org/468790
12778 2012-05-04  Stefano Lattarini  <stefano.lattarini@gmail.com>
12780         Assume gnulib is checked out from Git, not CVS
12782         In fact, access to the gnulib repository through CVS has been
12783         disabled, or more precisely, got broken and was never restored; see:
12784         <http://lists.gnu.org/archive/html/bug-gnulib/2013-05/msg00008.html>
12786         Note that support for CVS is not removed completely and unthinkingly
12787         by this change: only support for CVS checkouts of gnulib itself is
12788         removed.  For example, the 'bootstrap' script still cater to .cvsingore
12789         files and CVS directories, for the benefit of those poor gnulib clients
12790         still stuck with CVS.  Ditto for the 'gnulib-tool' script itself.
12792         * gnulib-tool: Simplify accordingly.
12793         * posix-modules: Likewise.
12794         * MODULES.html.sh: Likewise.
12795         * doc/gnulib.texi: No longer mention the decommissioned CVS gnulib
12796         repository.
12797         * doc/gnulib-intro.texi: Likewise.
12798         * doc/gnulib-readme.texi: Likewise.
12799         * doc/gnulib-tool.texi: In the examples and explanations, refer to a
12800         sample '.gitignore' file rather than a sample '.cvsignore'.
12801         * NEWS: Update.
12802         * m4/extensions.m4: While at it, remove a comment mistakenly referring
12803         to "CVS Autoconf" rather than "git Autoconf".
12805 2013-04-30  Paul Eggert  <eggert@cs.ucla.edu>
12807         utimensat-tests, etc.: try to fix some races
12808         Problem reported by Bernhard Voelker in
12809         <http://lists.gnu.org/archive/html/bug-gnulib/2013-04/msg00071.html>.
12810         I don't know whether this patch fixes that race condition, but it
12811         fixes *some* race conditions, so it should be a win.
12812         * modules/chown-tests (Depends-on):
12813         * modules/fchownat-tests (Depends-on):
12814         * modules/fdutimensat-tests (Depends-on):
12815         * modules/futimens-tests (Depends-on):
12816         * modules/lchown-tests (Depends-on):
12817         * modules/stat-time-tests (Depends-on):
12818         * modules/utimens-tests (Depends-on):
12819         * modules/utimensat-tests (Depends-on):
12820         Depend on nanosleep, not usleep.
12821         * modules/chown-tests (test_chown_LDADD):
12822         * modules/lchown-tests (test_lchown_LDADD):
12823         * modules/stat-time-tests (test_stat_time_LDADD):
12824         New macro.
12825         * modules/fchownat-tests (test_fchownat_LDADD):
12826         * modules/fdutimensat-tests (test_fdutimensat_LDADD):
12827         * modules/futimens-tests (test_futimens_LDADD):
12828         * modules/utimens-tests (test_utimens_LDADD):
12829         * modules/utimensat-tests (test_utimensat_LDADD):
12830         Add $(LIB_NANOSLEEP).
12831         * modules/stat-time-tests (Files): Add tests/nap.h.
12832         * tests/nap.h: Include <limits.h>, for INT_MAX.
12833         (lt_mtime): Remove.
12834         (diff_timespec): New function.
12835         (get_stat): Rename from get_mtime.  All callers changed.
12836         (nap_works): Determine the needed delay by inspecting the
12837         file system's timestamp jumps; this should be more reliable.
12838         Look at both mtime and ctime, and take the maximum of the two jumps.
12839         (nap_works, guess_delay):
12840         Return a nanosecond count, not a microsecond count.
12841         All callers changed.
12842         (nap_works, nap): Use nanosleep, not usleep.  Check for nanosleep
12843         failure.
12844         (nap): Multiply the guess by 1.125, to accommodate the case where
12845         the file system's clock is a bit slower than nanosleep's clock.
12846         * tests/test-stat-time.c (BASE): New macro.
12847         Include nap.h.
12848         (nap): Remove; nap.h now defines this.  This removes a duplicate
12849         implementation of 'nap'.
12851         utimens, utimensat: work around Solaris UTIME_OMIT bug
12852         Solaris 11.1 and Solaris 10 have the same UTIME_OMIT bug that
12853         Linux kernel 2.6.32 does.  Work around it in the same way.
12854         * doc/posix-functions/futimens.texi (futimens):
12855         * doc/posix-functions/utimensat.texi (utimensat): Document the bug.
12856         * lib/utimens.c (fdutimens, lutimens):
12857         * lib/utimensat.c (rpl_utimensat): Work around the bug.
12859         gettext: now it's your responsibility to add -I$(top_builddir)/intl
12860         Formerly, it was your responsibility to do this for all Makefile.ams
12861         other than Gnulib's.  Now it's your responsibility to do it for
12862         Gnulib's Makefile.am, too.
12863         * NEWS: Document this.
12864         * modules/gettext (AM_CPPFLAGS): Don't append -$(top_builddir)/intl.
12866         acl: include errno.h to get errno
12867         Reported by Daiki Ueno in
12868         <http://lists.gnu.org/archive/html/bug-gnulib/2013-04/msg00073.html>.
12869         * lib/copy-acl.c, lib/set-acl.c: Include errno.h.
12871 2013-04-29  Paul Eggert  <eggert@cs.ucla.edu>
12873         tests: don't assume getdtablesize () <= 10000000
12874         * modules/cloexec-tests:
12875         * modules/dup2-tests:
12876         * modules/dup3-tests:
12877         * modules/nonblocking-tests:
12878         * modules/posix_spawn_file_actions_addclose-tests:
12879         * modules/posix_spawn_file_actions_adddup2-tests:
12880         * modules/posix_spawn_file_actions_addopen-tests:
12881         * modules/unistd-safer-tests:
12882         Depend on the getdtablesize module.
12883         * tests/test-cloexec.c:
12884         * tests/test-dup-safer.c:
12885         * tests/test-dup2.c:
12886         * tests/test-dup3.c:
12887         * tests/test-fcntl.c:
12888         * tests/test-nonblocking.c:
12889         * tests/test-posix_spawn_file_actions_addclose.c:
12890         * tests/test-posix_spawn_file_actions_adddup2.c:
12891         * tests/test-posix_spawn_file_actions_addopen.c:
12892         Don't assume getdtablesize () <= 10000000.
12894 2013-04-28  Paul Eggert  <eggert@cs.ucla.edu>
12896         extern-inline: work around bug in Sun c99
12897         * m4/extern-inline.m4 (_GL_INLINE, _GL_EXTERN_INLINE):
12898         Work around bug in Sun C 5.12 c99's implementation of 'inline'.
12900 2013-04-27  Paul Eggert  <eggert@cs.ucla.edu>
12902         qacl: new module, broken out from the acl module
12903         This is for GNU Emacs, which wants the acl functions but does
12904         not want 'error' invoked when they fail.
12905         * lib/acl-internal.h: Do not include error.h, quote.h.
12906         (ENOSYS, ENOTSUP): Remove; no longer needed.
12907         (ACL_NOT_WELL_SUPPORTED): Remove; replaced by acl_errno_valid.
12908         * lib/acl.h: Include <stdbool.h>.
12909         (acl_errno_valid): New function.
12910         * lib/copy-acl.c, lib/set-acl.c: Include errno,h, not acl-internal.h.
12911         * lib/copy-acl.c (qcopy_acl): Move to lib/qcopy-acl.c.
12912         * lib/set-acl.c: Rename from lib/set-mode-acl.c.
12913         (chmod_or_fchmod, qset_acl): Move to lib/qset-acl.c.
12914         (ACL_INTERNAL_INLINE): Remove; no longer needed.
12915         * lib/file-has-acl.c (file_has_acl):
12916         * lib/qcopy-acl.c (qcopy_acl):
12917         * lib/qset-acl.c (qset_acl):
12918         Use acl_errno_valid instead of ACL_NOT_WELL_SUPPORTED.
12919         * modules/acl (Files): Move lib/acl.h, lib/acl-internal.h,
12920         lib/acl_entries.c, lib/set-mode-acl.c (renamed to lib/set-acl.c),
12921         lib/file-has-acl.c, m4/acl.m4 to qacl module.
12922         Add lib/set-acl.c.
12923         (Depends-on): Move extern-inline, fstat, sys_stat to qacl module.
12924         Add qacl.
12925         (configure.ac): Move gl_FUNC_ACL to qacl module.
12926         (lib_SOURCES): Remove file-has-acl.c (moved to qacl module).
12927         Rename set-mode-acl.c to set-acl.c.
12928         * lib/acl-errno-valid.c: New file.
12929         * lib/qcopy-acl.c: New file, moved from the old lib/copy-acl.c; the
12930         copy_acl function remains in copy-acl.c.
12931         * lib/qcopy-acl.c, lib/qset-acl.c: Do not include gettext.h.
12932         (_): Remove; not needed.
12933         * lib/qset-acl.c: New file, moved from the old lib/set-mode-acl.c; the
12934         set_acl function remains in set-acl.c (renamed from set-mode-acl.c).
12935         * modules/qacl: New file, moved from the old modules/acl.
12936         (Files, lib_SOURCES): Add acl-errno-valid.c, qcopy-acl.c, qset-acl.c.
12937         Remove set-mode-acl.c, copy-acl.c.
12938         (Depends-on): Remove error, gettext-h, quote.  Add stdbool.
12940         alignof, intprops, malloca: port better to IBM's C compiler
12941         * lib/alignof.h (alignof_type) [__IBM_ALIGNOF__]: Use __alignof__.
12942         * lib/intprops.h (_GL_HAVE___TYPEOF__) [__IBM_TYPEOF__]: Now 1.
12943         * lib/malloca.h (sa_alignof): [__IBM_ALIGNOF__]: Use __alignof__.
12945 2013-04-25  Daiki Ueno  <ueno@gnu.org>
12947         wctype-h: fix gettext link error on mingw
12948         Reported by Josue Andrade Gomes and Takayuki Tsunakawa in
12949         <https://lists.gnu.org/archive/html/bug-gettext/2013-03/msg00086.html>.
12950         * lib/wctype.in.h [__MINGW32__]: Include <ctype.h> before defining
12951         rpl_towupper and rpl_towupper.
12953 2013-04-11  Dmitry V. Levin  <ldv@altlinux.org>
12955         regex-tests, regex: allow glibc re_search behavior
12956         * tests/test-regex.c (main): In test for glibc bug 15078, reformat
12957         re_search input data to make the multi-character collating element
12958         in it clearly visible, and treat re_search return code 0 as valid.
12959         * m4/regex.m4 (gl_REGEX): Likewise.
12961 2013-03-30  Paul Eggert  <eggert@cs.ucla.edu>
12963         stdalign: doc fix
12964         * doc/posix-headers/stdalign.texi (stdalign.h):
12965         Gnulib doesn't support '_Alignof expr'.
12967 2013-03-29  Paul Eggert  <eggert@cs.ucla.edu>
12969         stdalign: port to stricter ISO C11
12970         ISO C11 says that _Alignof's operand must be a parenthesized type.
12971         Problem reported by Eli Zaretskii in
12972         <http://lists.gnu.org/archive/html/emacs-devel/2013-03/msg00960.html>.
12973         * doc/posix-headers/stdalign.texi (stdalign.h): Document this.
12974         * m4/stdalign.m4 (gl_STDALIGN_H): Don't use _Alignof (expr).
12976 2013-03-21  Paul Eggert  <eggert@cs.ucla.edu>
12978         sys_select, sys_time: port 2013-01-30 Solaris 2.6 fix to Cygwin
12979         Problem reported by Marco Atzeri in
12980         <http://lists.gnu.org/archive/html/bug-gnulib/2013-03/msg00000.html>.
12981         * lib/sys_select.in.h [HAVE_SYS_SELECT_H && _CYGWIN_SYS_TIME_H]:
12982         Simply delegate to the system <sys/select.h> in this case too.
12983         Also, pay attention to _GL_SYS_SELECT_H_REDIRECT_FROM_SYS_TIME_H only
12984         if OSF/1, since otherwise Cygwin breaks, and it doesn't seem to
12985         be needed on Solaris either.
12986         * lib/sys_time.in.h [_CYGWIN_SYS_TIME_H]:
12987         Simply delegate to the system <sys/time.h> in this case.
12989 2013-03-19  Karl Berry  <karl@gnu.org>
12991         * build-aux/gnupload: check for erroneous (with gnupload) use of
12992         ftp-upload.gnu.org, tweak help.
12994 2013-03-19  Paul Eggert  <eggert@cs.ucla.edu>
12996         copy-file, rpmatch: fix problems found by cppcheck
12997         Reported by Arno Onken in
12998         <http://lists.gnu.org/archive/html/bug-gnulib/2013-03/msg00069.html>.
12999         * lib/rpmatch.c (try): Fix memory leak.
13000         * lib/copy-file.c: Include "ignore-value.h".
13001         (qcopy_file_preserving): Ignore chown value.
13002         * modules/copy-file (Depends-on): Add ignore-value.
13004 2013-01-27  Jim Meyering  <jim@meyering.net>
13006         prefix-gnulib-mk: give better diagnostics
13007         * build-aux/prefix-gnulib-mk: Don't just "die".
13008         Give better diagnostics upon failure.
13010 2013-03-13  Paul Eggert  <eggert@cs.ucla.edu>
13012         putenv: port to Solaris 10
13013         * lib/putenv.c (_unsetenv, putenv): Use HAVE_DECL__PUTENV, not
13014         HAVE__PUTENV.  Solaris 10 has a _putenv that's not declared and
13015         is not what is wanted here.
13016         * m4/putenv.m4 (gl_PREREQ_PUTENV): Check for _putenv's
13017         declaration, not for its existence.
13019 2013-03-12  Paul Eggert  <eggert@cs.ucla.edu>
13021         mktime: fix configure typo
13022         * m4/mktime.m4 (gl_FUNC_MKTIME): Fix typo in previous change.
13024 2013-03-12  Eric Blake  <eblake@redhat.com>
13026         regex-tests: skip UTF-8 test on mingw
13027         * modules/regex-tests (Depends-on): Add localcharset.
13028         * tests/test-regex.c (main): Use it to skip test on mingw.
13030 2013-03-11  Eric Blake  <eblake@redhat.com>
13032         tests: make it easier to bypass alarm time in debugger
13033         * tests/test-file-has-acl.c (main): Allow gdb to override alarm.
13034         * tests/test-memmem.c (main): Likewise.
13035         * tests/test-passfd.c (main): Likewise.
13036         * tests/test-ptsname.c (main): Likewise.
13037         * tests/test-ptsname_r.c (main): Likewise.
13038         * tests/test-strcasestr.c (main): Likewise.
13039         * tests/test-strstr.c (main): Likewise.
13041         regex: port to mingw's recent addition of undeclared alarm
13042         * doc/posix-functions/alarm.texi (alarm): Document that alarm
13043         exists but still doesn't work in newer mingw.
13044         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Check for alarm declaration,
13045         not existence.  Ensure SIGALRM is not trapped.
13046         * m4/mktime.m4 (gl_FUNC_MKTIME): Likewise.
13047         * m4/regex.m4 (gl_REGEX): Likewise.
13048         * m4/remainderf.m4 (gl_FUNC_REMAINDERF_WORKS): Likewise.
13049         * tests/test-regex.c (main): Use correct probe for alarm.
13051         putenv: avoid compilation warning on mingw
13052         * lib/putenv.c (_unsetenv): Protect variable declaration.
13053         (putenv): Fix indentation.
13055 2013-03-11  Gary V. Vaughan  <gary@gnu.org>
13057         unistd: don't prevent Tru64 Unix from using gnulib strtod.
13058         * lib/unistd.in.h: be careful not to include un-needed system
13059         stdlib.h from here, because that prevents gnulib stdlib.h from
13060         defining rpl_strtod correctly.
13062 2013-03-09  Gary V. Vaughan  <gary@gnu.org>
13064         vasprintf-posix-tests: allow rounding 1.51 to 1, per the previous
13065         changesets, but for the 'precision 0' test.
13066         * tests/test-vasprintf-posix.c (test_function): Don't insist on
13067         round-to-even, since POSIX says rounding is implementation-defined
13068         and OS X 10.8.2 rounds 1.51 to 1 here.
13070         vasprintf-posix-tests: allow rounding 1.5 to 1, per the previous
13071         changeset.
13072         * tests/test-vasprintf-posix.c (test_function): Don't insist on
13073         round-to-even, since POSIX says rounding is implementation-defined
13074         and OS X 10.8.2 rounds 1.5 to 1 here.
13076 2013-03-08  Paul Eggert  <eggert@cs.ucla.edu>
13078         vasnprintf-posix-tests: allow rounding 1.5 to 1
13079         * tests/test-vasnprintf-posix.c (test_function): Don't insist on
13080         round-to-even, since POSIX says rounding is implementation-defined
13081         and OS X 10.8.2 rounds 1.5 to 1 here.  Reported by Gary V. Vaughan in
13082         <http://lists.gnu.org/archive/html/bug-gnulib/2013-03/msg00019.html>.
13084         bootstrap: port to FreeBSD
13085         * build-aux/bootstrap (bootstrap_sync): Port sh -c usage to shells
13086         that treat '--' differently.  Reported by Mats Erik Andersson in
13087         <http://lists.gnu.org/archive/html/bug-gnulib/2013-03/msg00012.html>.
13089 2013-03-08  Gary V. Vaughan  <gary@gnu.org>
13091         regex: rename remaining __attribute calls to __attribute__.
13092         2012-02-25 changed definition of __attribute, but left some uses
13093         unchanged, preventing compilation of regex module on most non-gcc
13094         environments.
13095         * lib/regcomp.c (re_set_fastmap, seek_collating_symbol_entry)
13096         (lookup_collation_sequence_value, build_range_exp)
13097         (build_collating_symbol): Set attributes with newly renamed
13098         __attribute__ decorator.
13099         * lib/regex_internal.c (re_string_peek_byte_case)
13100         (re_node_set_compare, re_node_set_contains): Likewise.
13101         * lib/regexec.c (acquire_init_state_context): Likewise.
13103 2013-03-06  Bruno Haible  <bruno@clisp.org>
13105         execute: Revert last change, but use a different condition.
13106         * lib/execute.c (nonintr_close, nonintr_open): Reintroduce, but only
13107         on Windows.
13109 2013-03-05  Eric Blake  <eblake@redhat.com>
13111         execute: drop dead code
13112         * lib/execute.c (nonintr_close, nonintr_open): Delete.
13114 2013-03-04  Paul Eggert  <eggert@cs.ucla.edu>
13116         non-recursive-gnulib-prefix-hack: port coreutils 8.21 to HP NonStop
13117         * m4/non-recursive-gnulib-prefix-hack.m4
13118         (gl_NON_RECURSIVE_GNULIB_PREFIX_HACK): Don't mess with ALLOCA.
13119         Problem reported for HP NonStop + coreutils 8.21 by Joachim Schmitz in
13120         <http://bugs.gnu.org/10305#237>.
13122 2013-03-04  Eric Blake  <eblake@redhat.com>
13124         test-getsockopt: avoid compiler warning
13125         * tests/test-getsockopt.c (includes): Ensure close is declared.
13127 2013-03-02  Bruno Haible  <bruno@clisp.org>
13129         sys_types: Avoid autoconf warning about gl_SYS_TYPES_H.
13130         * m4/sys_types_h.m4 (gl_SYS_TYPES_H): Define through AC_DEFUN_ONCE.
13132 2013-03-02  Bruno Haible  <bruno@clisp.org>
13134         gettext: Update to version 0.18.2.
13135         * m4/intl.m4, m4/po.m4: Update from gettext-0.18.2. In particular:
13136         2012-12-07  Stefano Lattarini  <stefano.lattarini@gmailcom>
13137                 * intl.m4, po.m4: Bump requirement in AC_PREREQ to 2.60.
13139 2013-02-25  Paul Eggert  <eggert@cs.ucla.edu>
13141         regex: merge patches from libc
13143         2013-02-26  Siddhesh Poyarekar  <siddhesh@redhat.com>
13144         * lib/regex_internal.h (__attribute__): Rename from __attribute.
13145         All uses changed.
13146         (bitset_not, bitset_merge, bitset_mask, re_string_char_size_at)
13147         (re_string_wchar_at, re_string_elem_size_at):
13148         Mark function as possibly unused.
13150         2013-02-12  Andreas Schwab  <schwab@suse.de>  [BZ #11561]
13151         * lib/regcomp.c (parse_bracket_exp) [_LIBC]: When looking up collating
13152         elements compare against the byte sequence of it, not its name.
13154 2013-02-21  Paul Eggert  <eggert@cs.ucla.edu>
13156         putenv: port better to native Windows
13157         * lib/putenv.c [(_WIN32 || __WIN32__) && ! __CYGWIN__]:
13158         Define WIN32_LEAN_AND_MEAN and include <windows.h>.
13159         (_unsetenv): Use _putenv if available.
13160         (putenv): Temporarily set NAME=' ' rather than NAME='x' as that's
13161         a bit less likely to cause damage.
13162         (putenv) [(_WIN32 || __WIN32__) && ! __CYGWIN__]:
13163         Fix the wrong value with SetEnvironmentVariable.
13164         (putenv) [!HAVE__PUTENV]: Simplify and match the HAVE__PUTENV
13165         code better.
13167 2013-02-20  Paul Eggert  <eggert@cs.ucla.edu>
13169         regex: ignore old-style-definition warnings
13170         * lib/regex.c: Add pragma to ignore these warnings.
13171         Problem reported for GNU tar by Pavel Raiskup.
13173 2013-02-19  Paul Eggert  <eggert@cs.ucla.edu>
13175         getcwd: support coreutils better
13176         Like strtod, getcwd incorrectly referred to HAVE_RAW_DECL_GETCWD,
13177         but this might not be correct in coreutils, which disables
13178         the raw decl checks.  Problem reported by Nagendra in
13179         <http://bugs.gnu.org/10305#192>.
13180         * lib/getcwd.c (__getcwd): Do not depend on HAVE_RAW_DECL_GETCWD.
13181         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX):
13182         Test the getcwd function, not any macro, since getcwd.c wants the
13183         function.
13184         * m4/getcwd.m4 (gl_FUNC_GETCWD):
13185         Don't define HAVE_MINIMALLY_WORKING_GETCWD if the code doesn't
13186         compile, as might happen if there's a macro but no function.
13188         strtod: support coreutils better
13189         * lib/strtod.c (underlying_strtod): Just invoke the underlying strtod.
13190         HAVE_RAW_DECL_STRTOD might not be correct in coreutils, which
13191         disables the raw decl checks.  This assumes there is an underlying
13192         strtod, but that's a safe assumption these days.
13193         (HAVE_RAW_DECL_STRTOD): Remove; no longer used.
13195         mountlist: port to HP NonStop
13196         Reported by Joachim Schmitz in
13197         <http://lists.gnu.org/archive/html/bug-gnulib/2013-02/msg00084.html>.
13198         * lib/mountlist.c (hasmntopt) [!HAVE_HASMNTOPT]: New function.
13199         (MNT_IGNORE) [MNTOPT_IGNORE]: Use it.
13201 2013-02-18  Paul Eggert  <eggert@cs.ucla.edu>
13203         extern-inline: avoid compilation error with HP-UX cc
13204         Reported by Richard Lloyd in
13205         <http://lists.gnu.org/archive/html/bug-texinfo/2013-02/msg00030.html>.
13206         * m4/extern-inline.m4 (_GL_INLINE, _GL_EXTERN_INLINE):
13207         Suppress extern inline with HP-UX cc.  This should be safe,
13208         though it may hurt performance.  Perhaps someone with some HP-UX
13209         experience can come up with a higher-performance fix.
13211 2013-02-14  Paul Eggert  <eggert@cs.ucla.edu>
13213         putenv: fix heap corruption with mixed putenv/_putenv
13214         Problem reported by Michael Goffioul in
13215         <http://lists.gnu.org/archive/html/bug-gnulib/2013-02/msg00061.html>.
13216         * lib/putenv.c (putenv) [HAVE__PUTENV]:
13217         Rely on _putenv to allocate the new environment.
13218         * m4/putenv.m4 (gl_PREREQ_PUTENV): New macro.
13219         * modules/putenv (configure.ac): Use it.
13221 2013-02-11  Paul Eggert  <eggert@cs.ucla.edu>
13223         unsetenv etc.: port to Solaris 11 + GNU Emacs
13224         * lib/canonicalize-lgpl.c, lib/getaddrinfo.c, lib/getdelim.c:
13225         * lib/glob.c, lib/random_r.c, lib/setenv.c, lib/tsearch.c:
13226         * lib/unsetenv.c (_GL_ARG_NONNULL): Define before including <config.h>.
13227         GNU Emacs's <config.h> includes <stdlib.h> (which is not a great
13228         idea but is too painful to fix right now), and without this gnulib
13229         change <stdlib.h> was defining _GL_ARG_NONNULL incorrectly when
13230         compiling unsetenv.c on Solaris 11.  Fix the problem for
13231         unsetenv.c, and fix other similar occurrences.
13233 2013-02-09  Paul Eggert  <eggert@cs.ucla.edu>
13235         secure_getenv: fix C++ declaration typo
13236         * lib/stdlib.in.h (secure_getenv): Fix typo with return type
13237         in _GL_CXXALIAS_SYS macro.  Reported by John W. Eaton in
13238         <http://lists.gnu.org/archive/html/bug-gnulib/2013-02/msg00057.html>.
13240 2013-02-08  Paul Eggert  <eggert@cs.ucla.edu>
13242         careadlinkat: stop exporting careadlinkatcwd
13243         Only Emacs used it directly, and Emacs no longer needs it.
13244         * NEWS: Document this simplification.
13245         * lib/areadlink.c (careadlinkatcwd): Move here from careadlinkat.c,
13246         and make it static.  Include <stdlib.h>, for abort, and unistd.h,
13247         for readlink.
13248         * lib/careadlinkat.c (careadlinkatcwd): Move to areadlink.c.
13249         Don't include stdlib.h; no longer needed.
13250         * lib/careadlinkat.h (careadlinkatcwd): Remove decl.
13251         * lib/relocwrapper.c: Adjust comment to match new dependencies.
13252         * modules/areadlink (Depends-on): Add readlink.
13253         (Maintainer): Add self.
13254         * modules/careadlinkat (Depends-on): Remove readlink.
13256         extensions: port better to HP-UX
13257         This is merged from git Autoconf.
13258         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS):
13259         On hosts that need _XOPEN_SOURCE, define it when configuring, too,
13260         so that it's compatible with the value used when compiling.
13262         openpty: fix bug where HAVE_OPENPTY is mistakenly 1
13263         Problem reported by Mats Erik Andersson in
13264         <http://lists.gnu.org/archive/html/bug-gnulib/2013-02/msg00051.html>.
13265         * m4/pty.m4 (gl_FUNC_OPENPTY): Define HAVE_OPENPTY when the
13266         openpty function exists, not merely when we intend to replace it.
13267         This corrects the 2013-01-31 patch, which mistakenly defined
13268         HAVE_OPENPTY even on hosts that lacked it.
13270 2013-02-07  Paul Eggert  <eggert@cs.ucla.edu>
13272         secure_getenv: fix include typo
13273         * lib/secure_getenv.c: Include config.h.  Somehow I forgot!
13275         secure_getenv: port better to FreeBSD and Solaris
13276         * lib/secure_getenv.c [!HAVE___SECURE_GETENV]:
13277         Include unistd.h if HAVE_ISSETUGID, otherwise define a dummy issetugid.
13278         (secure_getenv) [!HAVE___SECURE_GETENV]: Use getenv if not issetugid.
13279         This works better on BSDish platforms.
13280         * m4/secure_getenv.m4 (gl_PREREQ_SECURE_GETENV):
13281         Test for issetugid if __secure_getenv is missing.
13283 2013-02-06  Paul Eggert  <eggert@cs.ucla.edu>
13285         extensions: port better to MINIX 3, HP-UX, autoheader 2.62
13286         Some of these changes are merged in from git Autoconf.
13287         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS):
13288         When deciding whether to define _XOPEN_SOURCE, inspect the
13289         preprocessor macro __hpux instead of the more-heavyweight
13290         operation of requiring AC_CANONICAL_HOST.  Define _NETBSD_HOST on
13291         MINIX, for MINIX 3.  Use USE_SYSTEM_EXTENSIONS, not __EXTENSIONS__,
13292         as the key for __EXTENSIONS__.
13294         unistd: avoid namespace pollution on non-glibc systems
13295         * lib/unistd.in.h: #define __need_getopt before including <getopt.h>.
13296         This avoids namespace pollution on non-glibc systems, by causing
13297         gnulib unistd.h to behave more like glibc unistd.h.  I also hope
13298         that this fixes a bug on FreeBSD, reported by Mats Erik Andersson in
13299         <http://lists.gnu.org/archive/html/bug-gnulib/2013-02/msg00027.html>.
13301 2013-02-04  Paul Eggert  <eggert@cs.ucla.edu>
13303         tmpdir: use secure_getenv
13304         * lib/tmpdir.c (__secure_getenv) [!LIBC]:
13305         Define to secure_getenv, not getenv.
13306         * m4/tmpdir.m4 (gt_TMPDIR): Don't check for __secure_getenv,
13307         as that's now secure_getenv's job.
13308         * modules/tmpdir (Depends-on): Add secure_getenv.
13310         tempname: use secure_getenv
13311         * lib/tempname.c (__secure_getenv) [!_LIBC]:
13312         Define to secure_getenv, not getenv.
13313         * modules/tempname (Depends-on):
13314         Add secure_getenv.
13316         secure_getenv: new module
13317         * MODULES.html.sh (Extra functions based on ANSI C 89):
13318         Add secure_getenv.
13319         * doc/glibc-functions/secure_getenv.texi: New file.
13320         * doc/gnulib.texi: Include it.
13321         * lib/secure_getenv.c, m4/secure_getenv.m4, modules/secure_getenv:
13322         New files.
13323         * lib/stdlib.in.h (secure_getenv): New decl.
13324         * m4/stdlib_h.m4 (gl_STDLIB_H, gl_STDLIB_H_DEFAULTS):
13325         * modules/stdlib (stdlib.h):
13326         Add secure_getenv checks.
13328 2013-02-03  Paul Eggert  <eggert@cs.ucla.edu>
13330         getcwd: break fdopendir + save_cwd recursive loop (Bug#13516)
13331         Reported for OS X 10.8.2 by Assaf Gordon in
13332         <http://bugs.gnu.org/13516>.
13333         * lib/getcwd.c (HAVE_OPENAT_SUPPORT): Do not define if
13334         !HAVE_OPENAT && !HAVE_FDOPENDIR.
13335         * m4/getcwd-abort-bug.m4: Reformat to match test-getcwd.c
13336         so that they can be kept in sync more easily.  Avoid PATH_MAX
13337         test on the Hurd.  Sync from test-getcwd.c for errno tests after
13338         mkdir or chdir failure.
13339         * tests/test-getcwd.c (HAVE_OPENAT_SUPPORT): New macro, from
13340         lib/getcwd.c.
13341         (test_abort_bug): Do not test for the deep directory bug unless we
13342         have openat support.  Avoid PATH_MAX test on the Hurd.
13344         regex-tests, regex: fix bug: memset undeclared
13345         * tests/test-regex.c: Don't include regex.h twice.  Include
13346         string.h, to declare memset.  Christensen's report also mentioned
13347         this issue.
13348         * m4/regex.m4 (gl_REGEX): Keep test program more in sync with
13349         test-regex.c, to avoid future problems like this.  Remove
13350         AC_INCLUDES_DEFAULT.  Include <string.h>.  Don't include <regex.h>
13351         twice.
13353         regex-tests: fix link errors on older Solaris
13354         These need to link with @LIBINTL@ to get libintl_gettext.
13355         Problem reported by Tom G. Christensen in
13356         <http://lists.gnu.org/archive/html/bug-gnulib/2013-02/msg00003.html>.
13357         * modules/regex-tests (test_regex_LDADD): New macro.
13359 2013-01-31  Paul Eggert  <eggert@cs.ucla.edu>
13361         regex-tests: new module
13362         * modules/regex-tests, tests/test-regex.c: New files.
13364         regex: fix off-by-one error in configure test
13365         * m4/regex.m4 (gl_REGEX): Test should return 21, not 20.
13367 2013-01-31  Eric Blake  <eblake@redhat.com>
13369         regex: avoid infinite configure test
13370         * m4/regex.m4 (gl_REGEX): Add an alarm escape hatch.
13372 2013-01-31  Reuben Thomas  <rrt@sc3d.org>
13374         openpty: fix bug where HAVE_OPENPTY wasn't defined
13375         See the thread starting at:
13376         http://lists.gnu.org/archive/html/bug-gnulib/2013-01/msg00185.html
13377         * m4/pty.m4 (gl_FUNC_OPENPTY): Define HAVE_OPENPTY when the
13378         openpty function exists, not merely when we intend to replace it.
13380 2013-01-30  Paul Eggert  <eggert@cs.ucla.edu>
13382         sys_time: port to Solaris 2.6
13383         There is a circularity problem on Solaris 2.6, where <time.h> includes
13384         <sys/time.h> for struct timespec.  The include nesting is gnulib
13385         <time.h>, system <time.h>, gnulib <sys/time.h>, system
13386         <sys/time.h>, gnulib <sys/types.h>, system <sys/types.h>, gnulib
13387         <sys/select.h>, gnulib <signal.h>, system <sys/signal.h>, system
13388         <sys/siginfo.h>; the last, innermost file needs struct
13389         timestruc_t, which is defined in <sys/time.h>, which has not been
13390         fully parsed.  Problem reported by Tom G. Christensen in
13391         <http://lists.gnu.org/archive/html/bug-gnulib/2013-01/msg00113.html>.
13392         * lib/sys_select.in.h: Treat Solaris 2.6's problem with
13393         <sys/time.h> and <sys/types.h> like OSF/1's similar problem.
13394         * lib/sys_time.in.h: Redo to resemble sys_select.in.h, which
13395         uses split double-inclusion guards.
13397 2013-01-29  Paul Eggert  <eggert@cs.ucla.edu>
13399         regex: test for buffer overrun
13400         * m4/regex.m4 (gl_REGEX): Add test case, by Andreas Schwab,
13401         for the just-fixed regex bug.
13403 2013-01-29  Andreas Schwab  <schwab@suse.de>
13405         regex: fix buffer overrun in regexp matcher [BZ #15078]
13406         * lib/regexec.c (extend_buffers): Add parameter min_len.
13407         (check_matching): Pass minimum needed length.
13408         (clean_state_log_if_needed): Likewise.
13409         (get_subexp): Likewise.
13411 2013-01-28  Pádraig Brady  <P@draigBrady.com>
13413         mountlist: don't consider "devtmpfs" as dummy
13414         * lib/mountlist.c (ME_DUMMY_0): Remove "devtmpfs"
13415         as there is storage associcated with it.
13417 2013-01-27  Paul Eggert  <eggert@cs.ucla.edu>
13419         futimens-tests, utimens-tests: Depend on gettext.
13420         This works around a problem introduced in my 2013-01-12 patch,
13421         which added @LIBINTL@ to these modules.
13422         * modules/futimens-tests (Depends-on):
13423         * modules/utimens-tests (Depends-on): Add gettext.
13425 2013-01-26  Eric Blake  <eblake@redhat.com>
13427         test-getpeername: fix typo
13428         * tests/test-getpeername.c: Fix typo introduced in fd cleanup.
13430 2013-01-20  Bernhard Voelker  <mail@bernhard-voelker.de>
13432         bootstrap: remove the need for a sorted .gitignore file
13433         * build-aux/bootstrap (insert_sorted_if_absent): Adjust and
13434         rename to insert_if_absent(), so that we don't need or generate
13435         a sorted .gitignore file.  We do require a .gitignore with no
13436         existing duplicate entries and enforce that.
13437         (sort_patterns): Remove this function as we now use the simpler
13438         technigue of inserting blacklist entries at the top of the file,
13439         assuming gnulib won't be inserting !whitelist entries.
13441 2013-01-23  Paul Eggert  <eggert@cs.ucla.edu>
13443         readlinkat: don't depend on gl_FUNC_OPENAT
13444         * m4/readlinkat.m4 (gl_FUNC_READLINKAT): Don't require gl_FUNC_OPENAT.
13445         Perhaps a similar change needs to be made for linkat.m4, mkfifoat.m4,
13446         renameat.m4, symlinkat.m4; but one thing at a time.
13448         statat: new module, split out from fstatat
13449         GNU Emacs needs the POSIX-specified fstatat, but not the
13450         gnulib-specified statat and lstat.  Split the latter two into a
13451         new module 'statat'.
13452         * lib/openat.h: Depend on GNULIB_STATAT, not GNULIB_FSTATAT.
13453         * lib/openat.h, lib/statat.c (STATAT_INLINE):
13454         Rename from FSTATAT_INLINE. All uses changed.
13455         * modules/fstatat (Files): Remove lib/statat.c.
13456         (gl_MODULE_INDICATOR([fstatat])): Remove.
13457         (lib_SOURCES): Remove.
13458         (Maintainer): Add self.
13459         * modules/statat, modules/statat-tests, tests/test-statat.c: New files.
13460         * tests/test-fstatat.c (BASE): Don't define if already defined.
13461         (do_stat, do_lstat) [!TEST_STATAT]: Test fstatat instead.
13463 2013-01-22  Paul Eggert  <eggert@cs.ucla.edu>
13465         tests: don't assume fd 99 is closed
13466         * tests/test-accept.c, tests/test-accept4.c, tests/test-bind.c:
13467         * tests/test-close.c, tests/test-connect.c, tests/test-dprintf.c:
13468         * tests/test-dup.c, tests/test-dup2.c, tests/test-faccessat.c:
13469         * tests/test-fchdir.c, tests/test-fchmod.c, tests/test-fchmodat.c:
13470         * tests/test-fchown.c, tests/test-fchownat.c, tests/test-fclose.c:
13471         * tests/test-fdatasync.c, tests/test-fdopen.c, tests/test-fdopendir.c:
13472         * tests/test-fflush.c, tests/test-fgetc.c, tests/test-fputc.c:
13473         * tests/test-fread.c, tests/test-freopen.c, tests/test-fseeko4.c:
13474         * tests/test-fstat.c, tests/test-fstatat.c, tests/test-fsync.c:
13475         * tests/test-ftello4.c, tests/test-ftruncate.c, tests/test-futimens.h:
13476         * tests/test-fwrite.c, tests/test-getpeername.c:
13477         * tests/test-getsockname.c, tests/test-getsockopt.c:
13478         * tests/test-grantpt.c, tests/test-ioctl.c, tests/test-isatty.c:
13479         * tests/test-linkat.c, tests/test-listen.c, tests/test-lseek.c:
13480         * tests/test-mkdirat.c, tests/test-mkfifoat.c, tests/test-openat.c:
13481         * tests/test-pread.c, tests/test-pwrite.c, tests/test-read.c:
13482         * tests/test-readlinkat.c, tests/test-recv.c, tests/test-recvfrom.c:
13483         * tests/test-renameat.c, tests/test-select.h, tests/test-send.c:
13484         * tests/test-sendto.c, tests/test-setsockopt.c, tests/test-shutdown.c:
13485         * tests/test-symlinkat.c, tests/test-ttyname_r.c:
13486         * tests/test-unlinkat.c, tests/test-unlockpt.c:
13487         * tests/test-utimensat.c, tests/test-vdprintf.c, tests/test-write.c:
13488         Close file descriptor 99, instead of assuming it's already closed.
13490 2013-01-21  Paul Eggert  <eggert@cs.ucla.edu>
13492         stpncpy: port to OS X 10.8
13493         * lib/stpncpy.c (__stpncpy): Parenthesize name when defining function.
13494         Problem reported by Assaf Gordon in <http://bugs.gnu.org/13495>.
13496 2013-01-16  Paul Eggert  <eggert@cs.ucla.edu>
13498         unistd: port to recent mingw
13499         * lib/unistd.in.h: Remove special invocation convention for mingw,
13500         which breaks for the latest mingw version.  See John W. Eaton in
13501         <http://lists.gnu.org/archive/html/bug-gnulib/2013-01/msg00100.html>.
13503         largefile: port better to Mac OS X 10.5
13504         This patch is backported from Autoconf git.
13505         * m4/largefile.m4 (AC_SYS_LARGEFILE): Use AC_DEFINE, not
13506         AH_VERBATIM, to define _DARWIN_USE_64_BIT_INODE, to avoid problems
13507         with ino_t size being different for configuration time versus
13508         build/run time.  Problem reported by PHO in
13509         <http://lists.gnu.org/archive/html/bug-autoconf/2013-01/msg00040.html>.
13511 2013-01-15  Paul Eggert  <eggert@cs.ucla.edu>
13513         doc: clarify -Werror
13514         * doc/warnings.texi (warnings): -Werror is not always a bad idea;
13515         clarify that it's intended for developers, not for ordinary builds,
13516         and mention --enable-gcc-warnings as one possible use.
13518 2013-01-15  Andoni Morales Alastruey  <ylatuya@gmail.com>  (tiny change)
13520         stdint: fix build with Android's Bionic fox x86
13521         * lib/stdint.in.h: fix check to test if included-fixed/sys/types.h
13522         was already included as _SSIZE_T_DEFINED_ might also be defined
13523         in include/machine/_types.h, which is included by stdio.h
13525 2013-01-13  Paul Eggert  <eggert@cs.ucla.edu>
13527         net_if-tests: port to Solaris 7 + GCC 3.4.6
13528         Problem reported by Tom G. Christensen in
13529         <http://lists.gnu.org/archive/html/bug-gnulib/2013-01/msg00091.html>.
13530         * tests/test-net_if.c (ni): Move to next the code that uses it,
13531         so that it's declared only if needed.
13533 2013-01-12  Paul Eggert  <eggert@cs.ucla.edu>
13535         net_if-tests: port to older Solaris
13536         Problem reported by Tom G. Christensen in
13537         <http://lists.gnu.org/archive/html/bug-gnulib/2013-01/msg00086.html>.
13538         * modules/net_if-tests (NET_IF_LIB): New substitution.
13539         (test_net_if_LDADD): New makefile macro, which uses NET_IF_LIB.
13540         (HAVE_IF_NAMEINDEX): New C macro.
13541         * tests/test-net_if.c: Bypass most of the test if !HAVE_IF_NAMEINDEX.
13543         system-quote-tests: port to older Solaris
13544         Problem reported by Tom G. Christensen in
13545         <http://lists.gnu.org/archive/html/bug-gnulib/2013-01/msg00086.html>.
13546         * tests/test-system-quote-child.c (fopen, fread): Undef.
13548         c-xvasprintf etc.: fix link errors on older Solaris
13549         These need to link with @LIBINTL@ to get libintl_gettext.
13550         Problem reported by Tom G. Christensen in
13551         <http://lists.gnu.org/archive/html/bug-gnulib/2013-01/msg00086.html>.
13552         * modules/c-xvasprintf-tests (test_c_xvasprintf_LDADD):
13553         * modules/readtokens-tests (test_readtokens_LDADD): New macros.
13554         * modules/futimens-tests (test_futimens_LDADD):
13555         * modules/utimens-tests (test_utimens_LDADD): Add @LIBINTL@.
13557 2013-01-10  Paul Eggert  <eggert@cs.ucla.edu>
13559         locale: port to Solaris 2.6 and 7 + GNU gettext
13560         * lib/locale.in.h: Just include_next <locale.h> when
13561         being invoked recursively.  This prevents problems on Solaris 2.6 and 7
13562         when combining the localename module with GNU gettext 0.18.2.
13563         Problem reported by Tom G. Christensen in
13564         <http://lists.gnu.org/archive/html/bug-gnulib/2013-01/msg00084.html>.
13566 2013-01-09  Paul Eggert  <eggert@cs.ucla.edu>
13568         stdlib: port to Solaris 2.6
13569         Also, the code worked on Solaris 7 through 9 only by accident.
13570         Problem reported by Tom G. Christensen in
13571         <http://lists.gnu.org/archive/html/bug-gnulib/2013-01/msg00059.html>.
13572         * lib/stdlib.in.h: If __need_system_stdlib_h is defined,
13573         simply include the system stdlib.h.
13574         * lib/getopt.in.h (__need_system_stdlib_h):
13575         * lib/pthread.in.h (__need_system_stdlib_h):
13576         * lib/unistd.in.h (__need_system_stdlib_h) [!__GLIBC__]:
13577         Define when including <stdlib.h>, to avoid problems at least for
13578         the pthread case on Solaris 2.6 and 7.  These .h files can get by
13579         with the system stdlib.h.
13581 2013-01-06  Paul Eggert  <eggert@cs.ucla.edu>
13583         doc: update main copyright year
13584         * doc/gnulib.texi: Update copyright date.
13586         doc: improve ISO 8601 discussion
13587         * doc/parse-datetime.texi (Combined date and time of day items):
13588         Specify more carefully what formats are supported and what is
13589         done with excess precision.
13591 2013-01-05  Paul Eggert  <eggert@cs.ucla.edu>
13593         doc: avoid small caps
13594         * doc/parse-datetime.texi, doc/regex.texi: Don't use small caps;
13595         they're more trouble than they're worth.  Suggested by Karl Berry
13596         in <http://bugs.gnu.org/13360>.
13598         regex: conform to strict C
13599         * lib/regcomp.c (parse_bracket_exp): Add cast to conform to strict C.
13600         From Aharon Robbins.
13602         gnulib-tool: fix incompatibility with autopoint 0.18.2
13603         * gnulib-tool: Don't indent AM_GNU_GETTEXT_VERSION line.
13604         Problem reported by Tom G. Christensen in
13605         <http://lists.gnu.org/archive/html/bug-gnulib/2013-01/msg00053.html>.
13607 2013-01-04  Paul Eggert  <eggert@cs.ucla.edu>
13609         fprintftime: bring back and reword fwrite comment
13610         * lib/strftime.c (cpy) [FPRINTFTIME]: Re-add reworded comment.
13612         stdio: remove now-unnecessary stdio.c
13613         Since stdio.in.h no longer uses inline functions, we no longer
13614         need to compile the extern versions.
13615         * lib/stdio.c: Remove.
13616         * modules/stdio (Files): Remove lib/stdio.c.
13617         (lib_SOURCES): Remove.
13619         unicodeio: depend on stdio, not ignore-value
13620         * lib/unicodeio.c: Do not include ignore-value.h.
13621         (fwrite_success_callback): Use plain fwrite, not ignore_value + fwrite.
13622         * modules/unicodeio (Depends-on): Depend on stdio, not ignore-value.
13624         fprintftime: depend on stdio, not ignore-value
13625         * lib/strftime.c [FPRINTFTIME]: Do not include ignore-value.h.
13626         (cpy) [FPRINTFTIME]: Use plain fwrite, not ignore_value of fwrite,
13627         since the stdio module arranges to silence that warning now.
13628         * modules/fprintftime (Depends-on): Depend on stdio, not ignore-value.
13630 2012-10-04  Simon Josefsson  <simon@josefsson.org>
13632         stdint-tests: Fix expanded-before-required-warning.
13633         * modules/stdint-tests (Depends-on): Use AC_REQUIRE.
13635 2013-01-03  Paul Eggert  <eggert@cs.ucla.edu>
13637         fwrite: silence __wur only for older glibc versions
13638         * lib/stdio.in.h (fwrite): Limit workaround to glibc 2.4 through 2.15.
13639         This will help us remove this workaround some time in the far future.
13641 2013-01-03  Eric Blake  <eblake@redhat.com>
13643         fwrite: silence __wur without using inline
13644         * lib/stdio.in.h (fwrite): Limit warn_unused_result workaround to
13645         just gcc, and in a way that avoids inline issues.
13646         * modules/stdio (Depends-on): Drop extern-inline.
13648 2013-01-03  Jim Meyering  <jim@meyering.net>
13650         update-copyright: avoid copyright notice date corruption
13651         Given a sequence of copyright year numbers in which the final
13652         one was a two-digit number that happened to be a substring of
13653         a preceding four-digit year number, we would mistakenly update
13654         the substring (from two- to four-digit) rather than the two-digit
13655         number at the end, which, combined with the addition of the current
13656         4-digit year number would yield two 5-digit year numbers, e.g.,
13657         here, it would convert the first "99" to "1999, 2013" rather than
13658         the final one:
13659           1991, 99
13660           11999, 20131, 1999
13661         * build-aux/update-copyright: Tighten a regexp.
13662         * tests/test-update-copyright.sh: Add a test case to trigger the bug.
13663         Reported by Joseph Myers in
13664         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/32281
13666 2013-01-01  Paul Eggert  <eggert@cs.ucla.edu>
13668         regex: omit needless signed-pointer casts
13669         * lib/regcomp.c (build_charclass, build_charclass_op):
13670         Use char *, not unsigned char *, for class name and extra.
13671         The char values are always nonnegative so there's no need to
13672         insist on unsigned char * here, and using char * removes the need
13673         for casts.  Reported by Aharon Robbins in
13674         <http://sourceware.org/ml/libc-alpha/2012-12/msg00456.html>.
13676         regex: support Gawk, which never uses alloca
13677         * lib/regex_internal.h [!_LIBC && !HAVE_ALLOCA]:
13678         Do not include in this case.  Gawk doesn't supply a substitute
13679         alloca.h and doesn't need one.
13681         regex: port __libc_lock_define usage to C89
13682         * lib/regex_internal.h (__libc_lock_define) [!_LIBC]: Remove.
13683         (struct re_dfa_t): Use #ifdef instead.  '__libc_lock_define (, lock)'
13684         does not conform to C89, as it has an empty macro argument.
13685         Reported by Aharon Robbins in
13686         <http://sourceware.org/ml/libc-alpha/2012-12/msg00456.html>.
13688 2013-01-01  Eric Blake  <eblake@redhat.com>
13690         maint: update all copyright year number ranges
13691         Run "make update-copyright".
13693         version-etc: bump copyright year reported in --version
13694         * lib/version-etc.c (COPYRIGHT_YEAR): Update to 2013.
13696 2012-12-31  Eric Blake  <eblake@redhat.com>
13698         sigprocmask-tests: skip test if pid is unexpectedly large
13699         * tests/test-sigprocmask.c (main): Add range check.
13701         git-version-gen: avoid test -z portability glitch
13702         * build-aux/git-version-gen: Prefer portable test spelling, since
13703         git-version-gen is run on more than just developer machines.
13705 2012-12-31  Peter Rosin  <peda@lysator.liu.se>  (tiny change)
13707         git-version-gen: add --fallback option to use if git is not present
13708         * build-aux/git-version-gen: Add support for the new option --fallback,
13709         which comes into play when there is no $tarball_version_file and
13710         git is not working.
13711         (scriptversion): Update.
13713         maint.mk: handle missing git with more grace
13714         * top/maint.mk (no-submodule-changes, public-submodule-commit):
13715         Quietly proceed if git is not present.
13717 2012-12-31  Eric Blake  <eblake@redhat.com>
13719         dup2: work around cygwin bug
13720         * m4/dup2.m4 (gl_FUNC_DUP2): Flush out cygwin core dump.
13721         * lib/dup2.c (rpl_dup2): Work around it.
13722         * doc/posix-functions/dup2.texi (dup2): Document it.
13724 2012-12-30  Paul Eggert  <eggert@cs.ucla.edu>
13726         regex: remove unnecessary dependency on localcharset.h
13727         * lib/regex_internal.h [!_LIBC]: Don't include localcharset.h;
13728         hasn't been needed for years.
13729         * modules/regex (Depends-on): Remove localcharset.
13731         regex: revert single-byte change
13732         * lib/regexec.c (check_node_accept_bytes): Revert previous change
13733         to this function.  This was alredy fixed in a different way, at
13734         bdb56bacd57070eced9998569ffe3f3c37ef5964 in the glibc git; see
13735         <http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=510219> and
13736         <http://sourceware.org/bugzilla/show_bug.cgi?id=9697>.
13738         regex: simplify based on Gawk version
13739         * lib/regex_internal.c (re_dfa_add_node): Simplify.
13740         Reported by Aharon Robbins in
13741         <http://sourceware.org/ml/libc-alpha/2012-12/msg00456.html>.
13743 2012-12-29  Paul Eggert  <eggert@cs.ucla.edu>
13745         regex: check that pattern char is single-byte
13746         Reported by Aharon Robbins in
13747         <http://sourceware.org/ml/libc-alpha/2012-12/msg00456.html>.
13748         * lib/regexec.c (check_node_accept_bytes):
13749         Return 0 if the pattern string has a multibyte character here.
13751         regex: implement rational ranges
13752         Reported by Aharon Robbins in
13753         <http://sourceware.org/ml/libc-alpha/2012-12/msg00456.html>.
13754         * lib/regcomp.c (build_range_exp) [!_LIBC]:
13755         * lib/regexec.c (check_node_accept_bytes) [!_LIBC]:
13756         Implement rational ranges.
13758         regex: avoid redefining __wctype
13759         Reported by Aharon Robbins in
13760         <http://sourceware.org/ml/libc-alpha/2012-12/msg00456.html>.
13761         * lib/regex_internal.h (__wctype, __iswctype) [!_LIBC]:
13762         #undef before defining.
13764         regex: port to hosts where malloc (0) == NULL
13765         Reported by Aharon Robbins in
13766         <http://sourceware.org/ml/libc-alpha/2012-12/msg00456.html>.
13767         * lib/regex_internal.c (re_node_set_alloc):
13768         Don't assume that malloc (0) yields nonnull.
13769         * lib/regex_internal.h (MALLOC_0_IS_NONNULL): New macro.
13770         * m4/regex.m4 (gl_PREREQ_REGEX): Require gl_EEMALLOC.
13771         * modules/regex (Files): Add m4/eealloc.m4.
13773         regex: port to C89
13774         Reported by Aharon Robbins in
13775         <http://sourceware.org/ml/libc-alpha/2012-12/msg00456.html>.
13776         * lib/regcomp.c (init_word_char): Declaration before statement.
13778         regex: merge glibc changes
13779         Also, copy the license wording from glibc.  This simplifies
13780         merging changes.  gnulib-tool will change the wording to GPL as
13781         appropriate, when importing it to other packages.  The only
13782         glibc change made since the last merge, which needs merging, is:
13783         2012-05-24 Andreas Schwab <schwab@linux-m68k.org>
13784         * lib/regex_internal.h (gettext): Remove use of INTUSE.
13786         * users.txt: Add Emacs.
13788         doc: omit mention of version when not needed
13789         * doc/gnulib-intro.texi (Portability and Application Code):
13790         * doc/gnulib.texi (Brief Overview, Legacy Function Substitutes):
13791         Don't mention particular dates or versions when not necessary, so
13792         that the documentation won't go out of date so quickly.
13794         * doc/intprops.texi (Integer Properties): Fix Texinfo typo.
13796 2012-12-28  Akim Demaille  <akim@lrde.epita.fr>
13798         bootstrap: pass --force to autoreconf.
13799         * build-aux/bootstrap (AUTORECONFFLAGS): New.
13800         Add "--force" so that Automake's ylwrap and other such tools
13801         be updated at each bootstrap invocation.
13802         Use it.
13804 2012-12-27  Paul Eggert  <eggert@cs.ucla.edu>
13806         argp: fix port of port new 'inline' approach to Sun C 5.12 + Solaris 10
13807         The earlier patch forgot to update one of the #if conditions, causing
13808         a problem on Debian testing i386 reported by Mats Erik Andersson
13809         <http://lists.gnu.org/archive/html/bug-gnulib/2012-12/msg00124.html>.
13810         * lib/argp-fmtstream.h (__argp_fmtstream_putc, argp_fmtstream_putc)
13811         (__argp_fmtstream_puts, argp_fmtstream_puts)
13812         (__argp_fmtstream_write, argp_fmtstream_write)
13813         [!_LIBC && !__OPTIMIZE__]: Declare as ARGP_FS_EI, not as extern.
13815         * doc/gnulib-readme.texi: Minor fixups.
13816         (Portability guidelines): Modernize URLs.  Remove some repetition.
13817         (Indent with spaces not TABs): Reword to avoid too-long lines.
13818         Remove some '@ifset standalone' stuff that isn't used.
13820         * doc/gnulib-readme.texi (Portability guidelines):
13821         ctype.h, not ctime.h.
13823         Correct name of POSIX.1-2001.
13824         * doc/posix-functions/fgetc.texi (fgetc):
13825         * doc/posix-functions/fgets.texi (fgets):
13826         * doc/posix-functions/fread.texi (fread):
13827         * doc/posix-functions/fscanf.texi (fscanf):
13828         * doc/posix-functions/getc.texi (getc):
13829         * doc/posix-functions/getchar.texi (getchar):
13830         * doc/posix-functions/scanf.texi (scanf):
13831         POSIX.1-2001, not POSIX-2001.
13833         doc: move README into manual
13834         * README: Move contents to new file doc/gnulib-readme.texi.
13835         Replace with a one-line summary.
13836         * doc/gnulib.texi (Brief Overview): New section,
13837         with old intro preface.  Include gnulib-readme.texi for contents.
13838         (Philosophy): Rename from "Introduction", since this
13839         section no longer introduces the rest.  Write a new preface.
13840         * doc/gnulib-readme.texi: New file, with the old contents of
13841         README texinfo-ized.  This way, the README info appears
13842         in the online and printed manual.
13844 2012-12-25  Ben Pfaff  <blp@cs.stanford.edu>
13846         c-xvasprintf: Fix "implicit declaration of function" GCC warning.
13847         * lib/c-xvasprintf.c: Add missing #include "c-vasprintf.h", for
13848         c_vasprintf() prototype.
13850 2012-12-24  Ben Pfaff  <blp@cs.stanford.edu>
13852         c-vasprintf: Fix "empty declaration" warning reported by GCC.
13853         * lib/c-vasprintf.h: Remove stray semicolon.
13855 2012-12-23  Paul Eggert  <eggert@cs.ucla.edu>
13857         gettext: avoid obsolete macro AM_PROG_MKDIR_P
13858         It is obsolete and is planned to be removed from Automake 1.14; see
13859         <http://lists.gnu.org/archive/html/automake/2012-12/msg00029.html>.
13860         * build-aux/po/Makefile.in.in (install-data, install-data-yes)
13861         (installdirs-data, installdirs-data-yes):
13862         Use $(MKDIR_P), not $(mkdir_p).
13863         * m4/intl.m4 (AM_INTL_SUBDIR):
13864         * m4/po.m4 (AM_PO_SUBDIRS):
13865         Require AC_PROG_MKDIR_P, not AM_PROG_MKDIR_P.
13867 2012-12-22  Paul Eggert  <eggert@cs.ucla.edu>
13869         argp: port new 'inline' approach to Sun C 5.12 + Solaris 10
13870         On this platform, we are not optimizing but we are using
13871         the substitute for extern inlines, so compile as if
13872         C99-style extern inline, or a substitute, is available.
13873         * lib/argp-fmtstream.h (argp_fmtstream_set_lmargin)
13874         (__argp_fmtstream_set_lmargin, argp_fmtstream_set_rmargin)
13875         (__argp_fmtstream_set_rmargin, argp_fmtstream_set_wmargin)
13876         (__argp_fmtstream_set_wmargin, argp_fmtstream_point)
13877         (__argp_fmtstream_point) [!_LIBC && !__OPTIMIZE__]:
13878         Declare as ARGP_FS_EI, not as extern.
13879         * lib/argp.h (argp_usage, __argp_usage, _option_is_short)
13880         (__option_is_short, _option_is_end, __option_is_end)
13881         [!_LIBC && __USE_EXTERN_INLINES]:
13882         Declare as ARGP_EI, not as extern.
13884 2012-12-21  Paul Eggert  <eggert@cs.ucla.edu>
13886         AC_PROG_MKDIR_P: port workaround to pre-2.62 Autoconf
13887         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P, AC_C_RESTRICT):
13888         Use m4_ifndef([AC_AUTOCONF_VERSION], ...), not
13889         m4_if(m4_version_compare(m4_defn([AC_AUTOCONF_VERSION]),[2.62]),[-1],
13890         ...), as the latter is fatal with older Autoconfs.
13891         Problem reported and fix suggested by Eric Blake in thread starting at
13892         <http://lists.gnu.org/archive/html/bug-gnulib/2012-12/msg00097.html>.
13894 2012-12-20  Paul Eggert  <eggert@cs.ucla.edu>
13896         AC_PROG_MKDIR_P: don't workaround if not buggy
13897         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P):
13898         Define only for Autoconf versions before 2.62.
13899         (AC_C_RESTRICT): Use documented AC_AUTOCONF_VERSION, not
13900         undocumented m4_PACKAGE_VERSION, for consistency with the
13901         abovementioned change to AC_PROG_MKDIR_P.  This should suffice
13902         since we're checking for 2.62 or later, and AC_AUTOCONF_VERSION
13903         was introduced in 2.62.
13905 2012-12-15  Ben Pfaff  <blp@cs.stanford.edu>
13907         New 'c-*printf' modules for formatted output in C locale.
13909         New module 'c-vasnprintf'.
13910         * modules/c-vasnprintf: New file.
13911         * lib/c-vasnprintf.c: New file.
13912         * lib/c-vasnprintf.h: New file.
13914         New module 'c-snprintf'.
13915         * modules/c-snprintf: New file.
13916         * modules/c-snprintf-tests: New file.
13917         * lib/c-snprintf.c: New file.
13918         * lib/c-snprintf.h: New file.
13919         * tests/test-c-snprintf.c: New file.
13920         * tests/test-c-snprintf.sh: New file.
13922         New module 'c-vsnprintf'.
13923         * modules/c-vsnprintf: New file.
13924         * modules/c-vsnprintf-tests: New file.
13925         * lib/c-vsnprintf.c: New file.
13926         * lib/c-vsnprintf.h: New file.
13927         * tests/test-c-vsnprintf.c: New file.
13928         * tests/test-c-vsnprintf.sh: New file.
13930         New module 'c-vasprintf'.
13931         * modules/c-vasprintf: New file.
13932         * modules/c-vasprintf-tests: New file.
13933         * lib/c-asprintf.c: New file.
13934         * lib/c-vasprintf.c: New file.
13935         * lib/c-vasprintf.h: New file.
13936         * tests/test-c-vasprintf.c  +: New file.
13937         * tests/test-c-vasprintf.sh: New file.
13939         New module 'c-xvasprintf'.
13940         * modules/c-xvasprintf: New file.
13941         * modules/c-xvasprintf-tests: New file.
13942         * lib/c-xasprintf.c: New file.
13943         * lib/c-xvasprintf.c: New file.
13944         * lib/c-xvasprintf.h: New file.
13945         * tests/test-c-xvasprintf.c: New file.
13946         * tests/test-c-xvasprintf.sh: New file.
13948 2012-12-18  Paul Eggert  <eggert@cs.ucla.edu>
13950         argp: better 'inline'
13951         Use extern-inline module to declare extern inline functions.
13952         This avoids some bogus warning diagnostics.  Problem discovered
13953         when modifying GNU tar to use the manywarnings module.
13954         * lib/argp.h, lib/argp-xinl.c (ARGP_EI) [!_LIBC]:
13955         * lib/argp-fmtstream.h, lib/argp-fs-xinl.c (ARGP_FS_EI) [!_LIBC]:
13956         Define based on extern-inline.
13957         * modules/argp (Depends-on): Add extern-inline.
13959 2012-12-17  Paul Eggert  <eggert@cs.ucla.edu>
13961         filemode, sys_stat: Handle MPX files a la AIX.
13962         * lib/filemode.c (ftypelet): Report 'm' for MPX files.
13963         * lib/sys_stat.in.h (S_ISMPX): New macro.
13964         * tests/test-sys_stat.c: Add tests for MPX files.
13966 2012-12-16  Alexandre Duret-Lutz  <adl@lrde.epita.fr>
13968         x-to-1: honor $PERL
13969         * build-aux/x-to-1.in: Run $HELP2MAN via $PERL so that the user gets
13970         a chance to use his preferred version of Perl.  This is typically
13971         required by Darwin users whose default /usr/bin/perl does not have all
13972         the libraries required by help2man, and who need to use their MacPorts
13973         installation of Perl instead.
13975 2012-12-16  Akim Demaille  <akim@lrde.epita.fr>
13977         gnu-web-doc-update: add all the new files, even in new directories
13978         See http://lists.gnu.org/archive/html/bug-gnulib/2012-12/msg00057.html
13979         * build-aux/gnu-web-doc-update (--dry-run, $dryrun): New.
13980         Use it.
13981         (main): Don't use cvsutils to get the list of unknown files,
13982         just add all the existing files and directories.
13984 2012-12-16  Akim Demaille  <akim@lrde.epita.fr>
13986         gnu-web-doc-update: improve --help
13987         * build-aux/gnu-web-doc-update: Move comments into --help.
13989 2012-12-07  Eric Wong  <normalperson@yhbt.net>
13991         mountlist: recognize more "dummy" file systems
13992         * lib/mountlist.c (ME_DUMMY_0):
13993         Add these dummy FS names to the list:
13994         - "debugfs" virtual filesystem for kernel debugging
13995         - "devpts" PTY slave filesystem
13996         - "devtmpfs" device filesystem on top of tmpfs/ramfs
13997         - "fusectl" control filesystem for FUSE
13998         - "mqueue" enumerates POSIX message queues
13999         - "rpc_pipefs" kernel <-> userspace bridge for NFS
14000         - "sysfs" is for exporting kernel objects
14001         - "devfs" device filesystem for Linux 2.4 and FreeBSD
14003 2012-12-11  Paul Eggert  <eggert@cs.ucla.edu>
14005         extern-inline: avoid incompatibility with Darwin Libc
14006         * m4/extern-inline.m4 (_GL_INLINE, _GL_EXTERN_INLINE): Do not use
14007         extern inline if __APPLE__.  Use _GL_UNUSED in the non-inline branch.
14008         Problem reported by Akim Demaille in
14009         <http://lists.gnu.org/archive/html/bug-gnulib/2012-12/msg00023.html>.
14011 2012-12-11  Simon Josefsson  <simon@josefsson.org>
14013         gnupload: Work with GnuPG using gpg-agent (for smartcards).
14014         * build-aux/gnupload: If GnuPG is configured to use gpg-agent,
14015         let it handle password prompting.
14017 2012-12-10  Eli Zaretskii  <eliz@gnu.org>
14019         canonicalize, canonicalize-lgpl: Microsoft Windows prefix fixes
14020         * lib/canonicalize.c (canonicalize_filename_mode):
14021         * lib/canonicalize-lgpl.c (__realpath): Recompute prefix_len after
14022         fetching the current directory.  Don't overrun the beginning of
14023         rpath if there's no slashes after the MS-Windows drive letter.
14025 2012-12-08  Stefano Lattarini  <stefano.lattarini@gmail.com>
14027         maint.mk: avoid extra forks
14028         * top/maint.mk (_cfg_mk): The GNU make manual documents that
14029         "$(wildcard FILE)" expands to empty if FILE doesn't exist.
14030         So use that instead of "$(shell test -f FILE && echo FILE)".
14032 2012-12-07  Paul Eggert  <eggert@cs.ucla.edu>
14034         vasnprintf: fix ASCII_ONLY typo
14035         * lib/unistdio/u8-vasnprintf.c (FCHAR_T_ONLY_ASCII):
14036         * lib/unistdio/u16-vasnprintf.c (FCHAR_T_ONLY_ASCII):
14037         * lib/unistdio/u32-vasnprintf.c (FCHAR_T_ONLY_ASCII):
14038         New macro, replacing ASCII_ONLY.  This fixes a typo.  See thread at
14039         <http://lists.gnu.org/archive/html/bug-gnulib/2012-12/msg00021.html>.
14041 2012-12-05  Paul Eggert  <eggert@cs.ucla.edu>
14043         list, oset, xlist, xoset: fix extern inline issue with C99
14044         This was introduced by my recent changes for 'inline'.
14045         Problem reported for gettext by Daiki Ueno in
14046         <http://lists.gnu.org/archive/html/bug-gnulib/2012-12/msg00000.html>.
14047         * lib/gl_list.h (gl_list_nx_create_empty, gl_list_create)
14048         (gl_list_nx_create, gl_list_size, gl_list_node_value)
14049         (gl_list_node_set_value, gl_list_node_nx_set_value, gl_list_next_node)
14050         (gl_list_previous_node, gl_list_get_at)
14051         (gl_list_nx_set_at, gl_list_search, gl_list_search_from)
14052         (gl_list_search_from_to, gl_list_indexof, gl_list_indexof_from)
14053         (gl_list_indexof_from_to, gl_list_nx_add_first, gl_list_nx_add_last)
14054         (gl_list_nx_add_before, gl_list_nx_add_after, gl_list_nx_add_at)
14055         (gl_list_remove_node, gl_list_remove_at, gl_list_remove, gl_list_free)
14056         (gl_list_iterator, gl_list_iterator_from_to, gl_list_iterator_next)
14057         (gl_list_iterator_free, gl_sortedlist_search)
14058         (gl_sortedlist_search_from_to, gl_sortedlist_indexof)
14059         (gl_sortedlist_indexof_from_to, gl_sortedlist_add, gl_sortedlist_nx_add)
14060         (gl_sortedlist_remove):
14061         * lib/gl_oset.h (go_oset_nx_create_empty, gl_oset_size, gl_oset_search)
14062         (gl_oset_search_atleast, gl_oset_nx_add, gl_oset_remove, gl_oset_free)
14063         (gl_oset_iterator, gl_oset_iterator_next, gl_oset_iterator_free):
14064         * lib/gl_xlist.h (gl_list_create_empty, gl_list_create)
14065         (gl_list_node_set_value, gl_list_set_at, gl_list_add_first)
14066         (gl_list_add_last, gl_list_add_before, gl_list_add_after)
14067         (gl_list_add_at, gl_sortedlist_add):
14068         * lib/gl_xoset.h (gl_oset_create_empty, gl_oset_add):
14069         Wrap these extern decls inside "#if 0", because they are implemented
14070         as inline functions, and extern inline is not what's wanted here.
14071         It would simplify these .h files to remove the extern decls entirely,
14072         although a downside would be less-clear separation between
14073         specification and implementation.
14075 2012-11-29  Paul Eggert  <eggert@cs.ucla.edu>
14077         sys_stat: no 'static inline'
14078         * lib/sys_stat.in.h (rpl_mkdir): Now static, not static inline.
14079         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Do not require AC_C_INLINE.
14081         extern-inline: no 'static inline'
14082         * m4/extern-inline.m4 (gl_EXTERN_INLINE):
14083         Do not require AC_C_INLINE.
14084         (_GL_INLINE, _GL_EXTERN_INLINE): Define as 'static', not as
14085         'static inline', for older compilers.
14087         snippet/warn-on-use: no 'static inline'
14088         * build-aux/snippet/warn-on-use.h:
14089         Remove unnecessary 'inline' in comment.
14091         rbtree-list, rbtreehash-list: no 'static inline'
14092         * lib/gl_anyrbtree_list2.h (rotate_left, rotate_right):
14093         * lib/gl_anytree_list2.h (node_at):
14094         * lib/gl_anytreehash_list1.h (hash_resize_after_add)
14095         (gl_oset_first, add_nodes_to_buckets):
14096         Now static, not static inline.
14098         regex: no 'static inline'
14099         * lib/regex_internal.c (calc_state_hash):
14100         * lib/regex_internal.h (bitset_set, bitset_clear, bitset_contain)
14101         (bitset_empty, bitset_set_all, bitset_copy, bitset_not, bitset_merge)
14102         (bitset_mask, re_string_char_size_at, re_string_wchar_at):
14103         Now static, not static inline.
14104         (inline) [__GNUC__ < 3 && _LIBC]:
14105         Remove macro; no longer needed.
14107         xvasprintf: no 'static inline'
14108         * lib/xvasprintf.c (xstrcat):
14109         Now static, not static inline.
14110         * m4/xvasprintf.m4 (gl_XVASPRINTF):
14111         Do not require AC_C_INLINE.
14113         parse-datetime, parse-duration: no 'static inline'
14114         * lib/parse-datetime.y (to_uchar):
14115         * lib/parse-duration.c (str_const_to_ul, str_const_to_l)
14116         (scale_n_add):
14117         Now static, not static inline.
14118         * m4/parse-datetime.m4 (gl_PARSE_DATETIME):
14119         * modules/parse-duration (configure.ac):
14120         Do not require AC_C_INLINE.
14122         getaddrinfo: no 'static inline'
14123         * lib/getaddrinfo.c (validate_family):
14124         Now static, not static inline.
14125         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO):
14126         Do not require AC_C_INLINE.
14128         ftruncate, fts, lstat, openat, raise: no 'static inline'
14129         * lib/ftruncate.c (chsize_nothrow):
14130         * lib/fts.c (opendirat, diropen):
14131         * lib/lstat.c (orig_lstat):
14132         * lib/openat.c (orig_openat):
14133         * lib/raise.c (raise_nothrow):
14134         Now static, not static inline.
14135         * m4/ftruncate.m4 (gl_PREREQ_FTRUNCATE):
14136         * m4/fts.m4 (gl_FUNC_FTS_CORE):
14137         * m4/lstat.m4 (gl_PREREQ_LSTAT):
14138         * m4/openat.m4 (gl_PREREQ_OPENAT):
14139         * m4/raise.m4 (gl_PREREQ_RAISE):
14140         Do not require AC_C_INLINE.
14142         fflush, stat: no 'static inline'
14143         * lib/fflush.c (clear_ungetc_buffer_preserving_position)
14144         (clear_ungetc_buffer, disable_seek_optimization)
14145         (restore_seek_optimization, update_fpos_cache):
14146         * lib/stat.c (orig_stat):
14147         Now static, not static inline.
14148         * lib/fflush.c (disable_seek_optimization, restore_seek_optimization)
14149         (update_fpos_cache):
14150         Define only if ! (defined _IO_ftrylockfile || __GNU_LIBRARY__ == 1).
14151         * m4/fflush.m4 (gl_PREREQ_FFLUSH):
14152         * m4/stat.m4 (gl_PREREQ_STAT):
14153         Do not require AC_C_INLINE.
14155         error, filevercmp: no 'static inline'
14156         * lib/error.c (is_open, flush_stdout):
14157         * lib/filevercmp.c (order):
14158         Now static, not static inline.
14159         * m4/error.m4 (gl_PREREQ_ERROR):
14160         * modules/filevercmp (configure.ac):
14161         Do not require AC_C_INLINE.
14163         dup, execute, fatal-signal, etc.: no 'static inline'
14164         * lib/dup.c (dup_nothrow):
14165         * lib/execute.c (nonintr_close, nonintr_open):
14166         * lib/fatal-signal.c (uninstall_handlers, install_handlers):
14167         * lib/fopen.c (orig_fopen):
14168         * lib/freadseek.c (freadptrinc):
14169         * lib/freopen.c (orig_freopen):
14170         * lib/fstat.c (orig_fstat, fstat_nothrow):
14171         * lib/get-rusage-as.c (get_rusage_as_via_setrlimit)
14172         (get_rusage_as_via_iterator):
14173         * lib/get-rusage-data.c (get_rusage_data_via_setrlimit):
14174         * lib/getdtablesize.c (_setmaxstdio_nothrow):
14175         * lib/isatty.c (_isatty_nothrow):
14176         * lib/open.c (orig_open):
14177         * lib/read.c (read_nothrow):
14178         * lib/sigprocmask.c (signal_nothrow):
14179         * lib/spawn-pipe.c (nonintr_close, nonintr_open):
14180         * lib/vasnprintf.c (MAX_ROOM_NEEDED):
14181         * lib/wait-process.c (unregister_slave_subprocess):
14182         * lib/write.c (write_nothrow):
14183         Now static, not static inline.
14184         * lib/spawn-pipe.c (nonintr_open): Define only if
14185         (defined _WIN32 || defined __WIN32__) && ! defined __CYGWIN__.
14186         * m4/dup.m4 (gl_PREREQ_DUP):
14187         * m4/execute.m4 (gl_EXECUTE):
14188         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL):
14189         * m4/fopen.m4 (gl_PREREQ_FOPEN):
14190         * m4/freadseek.m4 (gl_FUNC_FREADSEEK):
14191         * m4/freopen.m4 (gl_PREREQ_FREOPEN):
14192         * m4/fstat.m4 (gl_PREREQ_FSTAT):
14193         * m4/getdtablesize.m4 (gl_PREREQ_GETDTABLESIZE):
14194         * m4/isatty.m4 (gl_PREREQ_ISATTY):
14195         * m4/open.m4 (gl_PREREQ_OPEN):
14196         * m4/read.m4 (gl_PREREQ_READ):
14197         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK):
14198         * m4/spawn-pipe.m4 (gl_SPAWN_PIPE):
14199         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF):
14200         * m4/wait-process.m4 (gl_WAIT_PROCESS):
14201         * m4/write.m4 (gl_PREREQ_WRITE):
14202         * modules/get-rusage-as, modules/get-rusage-data (configure.ac):
14203         Do not require AC_C_INLINE.
14205         c-strtod, memcoll, readutmp: no 'static inline'
14206         * lib/c-strtod.c (c_locale):
14207         * lib/memcoll.c (strcoll_loop):
14208         * lib/readutmp.c (desirable_utmp_entry):
14209         Now static, not static inline.
14210         * m4/c-strtod.m4 (gl_C_STRTOD, gl_C_STRTOLD):
14211         * m4/memcoll.m4 (gl_MEMCOLL):
14212         * m4/readutmp.m4 (gl_READUTMP):
14213         Do not require AC_C_INLINE.
14215         arctwo, md4, md5, sha1, sha256, sha512: no 'static inline'
14216         * lib/arctwo.c (to_uchar):
14217         * lib/md4.c (set_uint32):
14218         * lib/md5.c (set_uint32):
14219         * lib/sha1.c (set_uint32):
14220         * lib/sha256.c (set_uint32):
14221         * lib/sha512.c (set_uint64):
14222         Now static, not static inline.  This is a bit simpler, and doesn't
14223         affect performance with GCC and default optimization.
14224         * m4/arctwo.m4 (gl_ARCTWO):
14225         * m4/md4.m4 (gl_MD4):
14226         * m4/md5.m4 (gl_MD5):
14227         * m4/sha1.m4 (gl_SHA1):
14228         * m4/sha256.m4 (gl_SHA256):
14229         * m4/sha512.m4 (gl_SHA512):
14230         Do not require AC_C_INLINE.
14232         cond, lock, thread: better 'inline'
14233         * lib/glthread/cond.c, lib/glthread/cond.h (_GLTHREAD_COND_INLINE):
14234         * lib/glthread/thread.c, lib/glthread/thread.h (_GLTHREAD_THREAD_INLINE):
14235         New macros.  Use them instead of static inline, for header functions.
14236         * lib/glthread/cond.c (gl_waitqueue_init, gl_waitqueue_remove)
14237         (gl_waitqueue_notify_first, gl_waitqueue_notify_all):
14238         * lib/glthread/lock.c (gl_waitqueue_init)
14239         (gl_waitqueue_notify_first, gl_waitqueue_notify_all):
14240         * lib/glthread/thread.c (get_current_thread_handle):
14241         Change 'static inline' to 'inline'.
14242         * lib/glthread/cond.h, lib/glthread/thread.h:
14243         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
14244         * m4/cond.m4 (gl_COND):
14245         * m4/lock.m4 (gl_PREREQ_LOCK):
14246         * m4/thread.m4 (gl_THREAD):
14247         Do not require AC_C_INLINE.
14248         * modules/cond, modules/thread (Depends-on): Add extern-inline.
14250         chdir-long, cycle-check, savewd: better 'inline'
14251         * lib/chdir-long.c (cdb_init, cdb_fchdir, cdb_free)
14252         (find_non_slash):
14253         * lib/cycle-check.c (is_zero_or_power_of_two):
14254         * lib/savewd.c (savewd_delegating):
14255         Change 'static inline' to 'inline'.
14256         * lib/savewd.c, lib/savewd.h (SAVEWD_INLINE): New macro.
14257         Replace all remaining uses of 'static inline' with it.
14258         * lib/savewd.h:
14259         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
14260         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG):
14261         * m4/cycle-check.m4 (gl_CYCLE_CHECK):
14262         * m4/savewd.m4 (gl_SAVEWD):
14263         Do not require AC_C_INLINE.
14264         * modules/savewd (Depends-on): Add extern-inline.
14266         base32, base64: no need for 'inline'
14267         * lib/base32.c (to_uchar, get_8, decode_8):
14268         * lib/base64.c (to_uchar, get_4, decode_4):
14269         Change 'static inline' to 'inline'.
14270         * m4/base32.m4 (gl_PREREQ_BASE32):
14271         * m4/base64.m4 (gl_PREREQ_BASE64):
14272         Do not require AC_C_INLINE.
14274         array-oset, linkedhash-list, rbtree-oset: no need for 'inline'
14275         * lib/gl_array_oset.c (gl_array_nx_add_at):
14276         (gl_array_remove_at):
14277         * lib/gl_linkedhash_list.c (hash_resize_after_add)
14278         (add_to_bucket, remove_from_bucket):
14279         * lib/gl_rbtree_oset.c (rotate_left, rotate_right):
14280         Change 'static inline' to 'static', as it's simpler to omit
14281         'inline' unless there's a significant performance advantage.
14283         list, oset, xlist, xoset, xsublist: simplify via extern inline
14284         * lib/gl_list.h, lib/gl_list.c (GL_LIST_INLINE):
14285         * lib/gl_oset.c, lib/gl_oset.h (GL_OSET_INLINE):
14286         * lib/gl_xlist.c, lib/gl_xlist.h (GL_XLIST_INLINE):
14287         * lib/gl_xoset.c, lib/gl_xoset.h (GL_XOSET_INLINE):
14288         * lib/gl_xsublist.c, lib/gl_xsublist.h (GL_XSUBLIST_INLINE):
14289         New macro.  Replace all uses of 'static inline' with it.
14290         [HAVE_INLINE]: Implement functions as *_INLINE functions,
14291         instead of as macros FOO that are defined to static inline
14292         functions FOO_inline.
14293         * lib/gl_list.c, lib/gl_oset.c, lib/gl_xlist.c, lib/gl_xoset.c:
14294         * lib/gl_xsublist.c:
14295         Reimplement from scratch, by defining the corresponding *_INLINE
14296         macro and including the corresponding .h file.  This is simpler.
14297         * modules/list, modules/oset, modules/xlist, modules/xoset:
14298         (Files): Remove m4/gl_list.m4.
14299         (configure.ac): Remove gl_LIST.
14300         * m4/gl_list.m4: Remove.
14301         * modules/list, modules/oset, modules/xlist, modules/xoset:
14302         * modules/xsublist:
14303         (Depends-on): Depend on extern-inline, not inline.
14305         xalloc: better 'inline'
14306         * lib/xmalloc.c, lib/xalloc.h (XALLOC_INLINE):
14307         New macro.  Replace all uses of 'static inline' with it.
14308         (static_inline): Remove.
14309         * lib/xalloc.h (xnmalloc, xnrealloc, x2nrealloc, xcharalloc):
14310         Let 'extern inline' do the work automatically, instead of doing
14311         it by hand.
14312         * m4/xalloc.m4 (gl_PREREQ_XALLOC, gl_PREREQ_XMALLOC):
14313         Remove.  All uses removed.
14314         * modules/xalloc (Depends-on): Remove 'inline'.  Add 'extern-inline'.
14316         gethrxtime: better 'inline'
14317         * lib/xtime.c: New file.
14318         * lib/gethrxtime.c, lib/gethrxtime.h (GETHRXTIME_INLINE):
14319         * lib/xtime.h (XTIME_INCLUDE):
14320         New macros.  Replace all uses of 'static inline' with them.
14321         * lib/gethrxtime.c (gethrxtime): Define only if
14322         ! (HAVE_ARITHMETIC_HRTIME_T && HAVE_DECL_GETHRTIME), since
14323         this source file is now always compiled, because of the extern inline.
14324         * lib/gethrxtime.h, lib/xtime.h:
14325         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
14326         * m4/gethrxtime.m4 (gl_GETHRXTIME): Do not check for clock macros
14327         if gethrtime works, as they're not needed in that case.
14328         (gl_XTIME): Do not require AC_C_INLINE.
14329         (gl_PREREQ_GETHRXTIME): Remove; all uses removed, as it's always
14330         compiled now.  Move the check into gl_GETHRXTIME.
14331         * modules/gethrxtime (Files, lib_SOURCES): Add lib/xtime.c.
14332         (Depends-on): Add extern-inline.
14333         (configure.ac): gethrxtime is always compiled now.
14334         (lib_SOURCES): Add gethrxtime.c.
14336         wctype-h: better 'inline'
14337         * lib/wctype-h.c: New file.
14338         * lib/wctype.in.h (_GL_WCTYPE_INLINE):
14339         New macro.  Replace all uses of 'static inline' with it.
14340         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
14341         * m4/wctype_h.m4 (gl_WCTYPE_H): Do not require AC_C_INLINE.
14342         * modules/wctype-h (Files, lib_SOURCES): Add lib/wctype-h.c.
14343         (Depends-on): Add extern-inline.
14345         unistd: better 'inline'
14346         * lib/unistd.c: New file.
14347         * lib/unistd.in.h (_GL_UNISTD_INLINE):
14348         New macro.  Replace all uses of 'static inline' with it.
14349         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
14350         * m4/unistd_h.m4 (gl_UNISTD_H): Do not require AC_C_INLINE.
14351         * modules/unistd (Files, lib_SOURCES): Add lib/unistd.c.
14352         (Depends-on): Add extern-inline.
14354         sys_socket: better 'inline'
14355         * lib/sys_socket.c: New file.
14356         * lib/sys_socket.in.h (_GL_SYS_SOCKET_INLINE):
14357         New macro.  Replace all uses of 'static inline' with it.
14358         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
14359         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Do not require AC_C_INLINE.
14360         * modules/sys_socket (Files, lib_SOURCES): Add lib/sys_socket.c.
14361         (Depends-on): Add extern-inline.
14363         stdio: better 'inline'
14364         * lib/stdio.c: New file.
14365         * lib/stdio.in.h (_GL_STDIO_INLINE):
14366         New macro.  Replace all uses of 'static inline' with it.
14367         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
14368         * m4/stdio_h.m4 (gl_STDIO_H): Do not require AC_C_INLINE.
14369         * modules/stdio (Files, lib_SOURCES): Add lib/stdio.c.
14370         (Depends-on): Add extern-inline.
14372         sigaction: better 'inline'
14373         * lib/sig-handler.c: New file.
14374         * lib/sig-handler.h (SIG_HANDLER_INLINE):
14375         New macro.  Replace all uses of 'static inline' with it.
14376         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
14377         * m4/sigaction.m4 (gl_PREREQ_SIG_HANDLER_H): Do not require AC_C_INLINE.
14378         * modules/sigaction (Files, lib_SOURCES): Add lib/sig-handler.c.
14379         (Depends-on): Add extern-inline.
14381         selinux-h: better 'inline'
14382         * lib/se-context.c, lib/se-selinux.c: New files.
14383         * lib/getfilecon.c (map_to_failure): Omit 'inline' for static function.
14384         * lib/se-context.in.h (SE_CONTEXT_INLINE):
14385         New macro.  Replace all uses of 'static inline' with it.
14386         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
14387         * lib/se-selinux.in.h (SE_SELINUX_INLINE):
14388         New macro.  Replace all uses of 'static inline' with it.
14389         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
14390         * modules/selinux-h (Files, lib_SOURCES):
14391         Add lib/se-context.c, lib/se-selinux.c.
14392         (Depends-on): Add extern-inline.
14393         (configure.ac): Do not require AC_C_INLINE.
14395         pthread: better 'inline'
14396         * lib/pthread.c: New file.
14397         * lib/pthread.in.h (_GL_PTHREAD_INLINE):
14398         New macro.  Replace all uses of 'static inline' with it.
14399         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
14400         * m4/pthread.m4 (gl_PTHREAD_CHECK):
14401         Add AC_LIBOBJ([pthread]).  Do not require AC_C_INLINE.
14402         * modules/pthread (Files): Add lib/pthread.c.
14403         (Depends-on): Add extern-inline.
14405         math: better 'inline'
14406         * lib/math.c: New file.
14407         * lib/math.in.h (_GL_MATH_INLINE):
14408         New macro.  Replace all uses of 'static inline' with it.
14409         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
14410         * m4/math_h.m4 (gl_MATH_H):
14411         Do not require AC_C_INLINE.
14412         * modules/math (Files, lib_SOURCES):
14413         Add lib/math.c.
14414         (Depends-on): Add extern-inline.
14416         count-one-bits: better 'inline'
14417         * lib/count-one-bits.c: New file.
14418         * lib/count-one-bits.h (COUNT_ONE_BITS_INLINE):
14419         New macro.  Replace all uses of 'static inline' with it.
14420         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
14421         * m4/count-one-bits.m4 (gl_COUNT_ONE_BITS):
14422         Do not require AC_C_INLINE.
14423         * modules/count-one-bits (Files, lib_SOURCES):
14424         Add lib/count-one-bits.c.
14425         (Depends-on): Add extern-inline.
14427         count-leading-zeros: better 'inline'
14428         * lib/count-leading-zeros.c: New file.
14429         * lib/count-leading-zeros.h (COUNT_LEADING_ZEROS_INLINE):
14430         New macro.  Replace all uses of 'static inline' with it.
14431         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
14432         * m4/count-leading-zeros.m4 (gl_COUNT_LEADING_ZEROS):
14433         Do not require AC_C_INLINE.
14434         * modules/count-leading-zeros (Files, lib_SOURCES):
14435         Add lib/count-leading-zeros.c.
14436         (Depends-on): Add extern-inline.
14438         bitrotate: better 'inline'
14439         * lib/bitrotate.c: New file.
14440         * lib/bitrotate.h (BITROTATE_INLINE):
14441         New macros.
14442         Replace all uses of 'static inline' with them.
14443         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
14444         * modules/bitrotate (Files, lib_SOURCES): Add lib/bitrotate.c.
14445         (Depends-on): Add extern-inline.
14446         (configure.ac): Do not require AC_C_INLINE.
14448 2012-11-20  Theophile Ranquet  <ranquet@lrde.epita.fr>
14450         maint.mk: avoid gratuitous failure
14451         Reported by Stefano Lattarini in
14452         <http://lists.gnu.org/archive/html/bug-bison/2012-11/msg00022.html>
14453         * top/maint.mk (public-submodule-commit): Quote more safely.
14455 2012-11-20  Eli Zaretskii  <eliz@gnu.org>
14457         canonicalize, canonicalize-lgpl: support MS-Windows file names
14458         See <http://lists.gnu.org/archive/html/bug-gnulib/2012-11/msg00074.html>
14459         for test cases, which it'd be nice to add at some point.
14460         * lib/canonicalize.c, lib/canonicalize-lgpl.c: Include dosname.h.
14461         * lib/canonicalize.c (canonicalize_filename_mode):
14462         * lib/canonicalize-lgpl.c (__realpath):
14463         Use FILE_SYSTEM_PREFIX_LEN instead of assuming that the first
14464         slash is at the beginning of the file name.  Use ISSLASH, instead
14465         of a literal '/'.  Use IS_ABSOLUTE_FILE_NAME instead of comparing
14466         the first character with '/'.  Test for
14467         DOUBLE_SLASH_IS_DISTINCT_ROOT only if the file name does not begin
14468         with a drive letter.
14469         * lib/canonicalize.c (SLASHES): New macro.
14470         (canonicalize_filename_mode): Use SLASHES instead of a literal "/".
14472 2012-11-17  Dmitry V. Levin  <ldv@altlinux.org>
14474         fts: introduce FTS_VERBATIM
14475         * lib/fts_.h (FTS_VERBATIM): New bit flag.
14476         (FTS_OPTIONMASK, FTS_NAMEONLY, FTS_STOP): Adjust.
14477         * lib/fts.c (fts_open): Honor it.
14479 2012-11-09  Pádraig Brady  <P@draigBrady.com>
14481         getlogin-tests: allow errno == ENXIO
14482         * tests/test-getlogin.c (main): Skip tests if getlogin fails
14483         with errno == ENXIO (No controlling tty).
14484         getlogin_r-tests: Likewise. Also allow errno == ENOENT
14485         * tests/test-getlogin_r.c (main): Skip tests if getlogin_r fails
14486         with errno == ENOENT.  This was reported to happen in various
14487         situations on GNU/Linux.
14489 2012-11-09  Paul Eggert  <eggert@cs.ucla.edu>
14491         getlogin-tests: allow errno == ENOENT
14492         * tests/test-getlogin.c (main): Skip tests if getlogin fails
14493         with errno == ENOENT.  This happened to me on Ubuntu 12.04.1 x86,
14494         when running a test in an Emacs shell buffer.
14496 2012-11-08  Jim Meyering  <jim@meyering.net>
14498         tests/nap.h: avoid warning about unused variable
14499         * tests/nap.h (nap_works): Remove now-unused declaration of "result".
14501         prefix-gnulib-mk: avoid overzealous "lib/"-prefix addition
14502         * build-aux/prefix-gnulib-mk (prefix): Tighten a regexp to require
14503         white space before each of the special-cased file names, to avoid
14504         adding "lib/" after $(libdir)/.  Reported by Matias A. fonzo
14505         in http://bugs.gnu.org/12830.
14507 2012-11-08  Paul Eggert  <eggert@cs.ucla.edu>
14509         fcntl-h: default O_SEARCH, O_EXEC back to O_RDONLY
14510         O_PATH doesn't work with Linux kernel 3.6.5, as fchmod (fd, ...)
14511         fails with errno == EBADF when fd is opened with O_PATH.
14512         Reported by Jim Meyering in
14513         <http://lists.gnu.org/archive/html/bug-gnulib/2012-11/msg00026.html>.
14514         * doc/posix-headers/fcntl.texi (fcntl.h): Document this.
14515         * lib/fcntl.in.h (O_EXEC, O_SEARCH) [O_PATH]: Default back to O_RDONLY.
14517 2012-11-07  Paul Eggert  <eggert@cs.ucla.edu>
14519         test-utimens: speed up by taking shorter naps
14520         * tests/nap.h (lt_mtime, get_mtime, nap_works, guess_delay):
14521         New functions.
14522         (nap): Use them, to do a better job of guessing the delay.
14523         On Fedora 17 with ext4 atop md atop hard disks, this made
14524         test-utimens run 10x faster, because the test napped for
14525         1 ms at a time rather than 20 ms.  Reported by Stefano Lattarini in
14526         <http://bugs.gnu.org/12820#11>.
14528 2012-11-07  Jim Meyering  <jim@meyering.net>
14530         mountlist.c: fix a compilation failure
14531         * lib/mountlist.c (read_file_system_list): Fix a compilation failure
14532         I introduced while transforming commit v0.0-7683-g613bcb6
14534 2012-11-05  Paul Eggert  <eggert@cs.ucla.edu>
14536         errno: port to LynxOS 178 2.2.2
14537         Problem reported by Joel Brobecker in
14538         <http://lists.gnu.org/archive/html/bug-gnulib/2012-10/msg00088.html>.
14539         * doc/posix-headers/errno.texi (errno.h): Document this.
14540         * lib/errno.in.h (EILSEQ, GNULIB_defined_EILSEQ) [!EILSEQ]: New macros.
14541         * lib/strerror-override.c, lib/strerror-override.h (strerror_override):
14542         Supply a string for EILSEQ.
14543         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Check for EILSEQ.
14545 2012-11-05  Paul Eggert  <eggert@cs.ucla.edu>
14547         fcntl-h: default O_SEARCH, O_EXEC to O_PATH if available
14548         Linux kernel 2.6.39 introduced O_PATH (see
14549         <http://lwn.net/Articles/433854/>) and this is a better fallback
14550         for O_SEARCH and O_EXEC than O_RDONLY, if O_PATH is available.
14551         * doc/posix-headers/fcntl.texi (fcntl.h): Document this.
14552         * lib/fcntl.in.h (O_EXEC, O_SEARCH) [O_PATH]: Default to O_PATH.
14553         * lib/fcntl.in.h (O_ACCMODE):
14554         * tests/test-fcntl-h.c (main):
14555         Do not reject O_ACCMODE merely because it has more than the
14556         minimal number of bits, as POSIX allows extensions here.
14558 2012-11-04  Andrew Warshall  <warshall@99main.com>  (tiny change)
14560         mountlist: do not classify a bind-mounted dir entry as "dummy"
14561         * lib/mountlist.c (ME_DUMMY_0): Rename from ME_DUMMY, but omit
14562         the "none"-testing clause.
14563         (ME_DUMMY) [MOUNTED_GETMNTENT1]: New macro to encapsulate the
14564         exception for bind-mounted directories.
14566 2012-11-01  Akim Demaille  <akim@lrde.epita.fr>
14568         quote: provide a means to escape strings with nul characters
14569         * lib/quote.h, lib/quotearg.c (quote_mem, quote_n_mem): New functions.
14570         (quote, quote_n): Rename formal arguments for consistency with
14571         quotearg.
14573 2012-10-30  Paul Eggert  <eggert@cs.ucla.edu>
14575         test-raise: don't assume 199 is an invalid signal
14576         * tests/test-raise.c (main): Don't assume 199 is not a signal number.
14578         sh-quote-tests: port to Solaris 9
14579         * modules/sh-quote-tests (test_sh_quote_LDADD): Add @LIBINTL@.
14580         Problem reported by Dagobert Michelsen in
14581         <http://lists.gnu.org/archive/html/bug-gnulib/2012-10/msg00114.html>.
14583 2012-10-28  Jim Meyering  <jim@meyering.net>
14585         maint.mk: rename a new configurable variable
14586         * top/maint.mk (_gl_translatable_string_re): Rename from
14587         translation-markers: _gl_ prefix to insulate from user Makefile code,
14588         and the _re suffix to inform that it's a regular expression.
14590 2012-10-26  Eric Blake  <eblake@redhat.com>
14592         maint.mk: let packages tweak sc_po_check pattern
14593         * top/maint.mk (sc_po_check): Add translation-markers, to allow
14594         finding files with other translation markers.
14596 2012-10-16  Paul Eggert  <eggert@cs.ucla.edu>
14598         euidaccess: speed up 'configure' on GNU hosts
14599         * m4/euidaccess.m4 (gl_FUNC_NONREENTRANT_EUIDACCESS):
14600         Check for setregid here, not in gl_PREREQ_EUIDACCESS, since
14601         it's needed only in this case.  Use AC_CHECK_DECLS, not
14602         AC_CHECK_DECLS_ONCE.
14603         (gl_PREREQ_EUIDACCESS): Do not use AC_CHECK_HEADERS_ONCE libgen.h
14604         or AC_REQUIRE for AC_FUNC_GETGROUPS.
14606         * lib/regexec.c (re_search_internal): Fix grammar in comment.
14608 2012-10-15  Paul Eggert  <eggert@cs.ucla.edu>
14610         fchmodat, fchownat, fstatat: port to non-inlining compilers
14611         Problem reported for FreeBSD 9 by Jim Meyering in
14612         <http://lists.gnu.org/archive/html/bug-gnulib/2012-10/msg00070.html>.
14613         * lib/chmodat.c, lib/chownat.c, lib/statat.c:
14614         New files, which define FCHMODAT_INLINE etc.
14615         * lib/fchmodat.c (FCHMODAT_INLINE):
14616         * lib/fchownat.c (FCHOWNAT_INLINE):
14617         * lib/fstatat.c (FSTATAT_INLINE):
14618         Remove, as chmodat.c etc. now do this.
14619         * modules/fchmodat (Files): Add lib/chmodat.c.
14620         * modules/fchownat (Files): Add lib/chownat.c.
14621         * modules/fstatat (Files): Add lib/statat.c.
14623 2012-10-15  Jim Meyering  <jim@meyering.net>
14625         fchmodat.c, fchownat.c: compile-impeding typos
14626         * lib/fchmodat.c (FCHMODAT_INLINE): Fix typo: s/#include/#define/
14627         * lib/fchownat.c (FCHOWNAT_INLINE): Likewise.
14628         Introduced in commit v0.0-7636-gd202279.
14630 2012-10-15  Paul Eggert  <eggert@cs.ucla.edu>
14632         fcntl-h: support GNU flags like O_IGNORE_CTTY
14633         * doc/posix-headers/fcntl.texi (fcntl.h): Support O_IGNORE_CTTY,
14634         O_NOLINK, and O_NOTRANS.  These flags are nonzero on GNU/Hurd
14635         systems.  Discovered when using fcntl-h with GNU Emacs, which uses
14636         O_IGNORE_CTTY.  Fix misspelling of F_SETLKW.
14637         * lib/fcntl.in.h (O_IGNORE_CTTY, O_NOLINK, O_NOTRANS):
14638         Define to 0 if not already defined.
14639         * tests/test-fcntl-h.c: Test these new flags.
14641 2012-10-14  Paul Eggert  <eggert@cs.ucla.edu>
14643         faccessat, etc.: support AT_FDCWD-only use
14644         * lib/at-func.c: If GNULIB_SUPPORT_ONLY_AT_FDCWD, then support
14645         this function only if its first argument is AT_FDCWD.
14646         Emacs wants faccessat for AT_EACCESS but not for any first-arg
14647         values other than AT_FDCWD, so it doesn't want all the openat
14648         machinery with fchdir etc.
14649         * modules/faccessat, modules/fchmodat, modules/fchownat (Files):
14650         * modules/fstatat, modules/mkdirat, modules/openat (Files):
14651         * modules/unlinkat (Files):
14652         Remove lib/openat-priv.h, as at-internal supplies this file.
14653         Removing this file here allows us to support programs like Emacs
14654         that avoid at-internal.
14656         faccessat: speed up 'configure' on mainstream hosts
14657         * m4/faccessat.m4 (gl_PREREQ_FACCESSAT):
14658         Use AT_CHECK_FUNCS for 'access', not AC_CHECK_FUNCS_ONCE,
14659         since it's only on unusual platforms that we need to check for
14660         'access', and it's better not to slow 'configure' down on all
14661         platforms.
14663         faccessat: port to Solaris 10
14664         * lib/faccessat.c: Include <fcntl.h>, for AT_EACCESS.
14665         Needed on Solaris 10, which doesn't have AT_EACCESS,
14666         so we need the Gnulib fcntl.h, which defines it.
14668 2012-10-14  Pádraig Brady  <P@draigBrady.com>
14669         canonicalize: fix C89 compilation
14670         * lib/canonicalize.c (canonicalize_filename_mode): Swap order of
14671         declarations so C89 is supported.  Also remove the comment
14672         referencing memorty allocation as the suggested feature could
14673         not be implemented as suggested.
14674         Reported by Michael Goffioul.
14676 2012-10-12  Paul Eggert  <eggert@cs.ucla.edu>
14678         group-member: omit unnecessary dependencies
14679         This is for Emacs, which has its own allocator and where we
14680         don't want to use xalloc.
14681         * lib/group-member.c: Include xalloc-oversized.h, not xalloc.h,
14682         since we no longer use xmalloc.  Do not include stdbool.h, since
14683         the changes below happen to remove the only use of bool.
14684         (GROUPBUF_SIZE): New constant.
14685         (struct group_info): Remove n_groups member.  Add groupbuf member.
14686         This lets us get the groups without using malloc, usually.
14687         (free_group_info, get_group_info): Adjust to this.
14688         (get_group_info): Return the number of groups found, or -1 on error.
14689         Use plain malloc not xmalloc, and treat its failure as if there
14690         are no groups, as the user already loses in case of error.
14691         (group_member): Simplify, based on changes to get_group_info.
14692         * modules/group-member (Depends-on): Remove dependencies on
14693         xalloc and stdbool.  Add dependency on xalloc-oversized.
14695 2012-10-08  Alexandre Duret-Lutz  <adl@lrde.epita.fr>  (tiny change)
14697         gethrxtime: port to C++
14698         * lib/gethrxtime.h, lib/xtime.h [__cplusplus]: Add extern "C".
14700 2012-10-04  Paul Eggert  <eggert@cs.ucla.edu>
14702         ptsname: fix macro-name typo
14703         * lib/stdlib.in.h (ptsname): Fix misspelling of GNULIB_NAMESPACE.
14705 2012-10-03  Simon Josefsson  <simon@josefsson.org>
14707         inttostr: Relax license.
14708         * modules/inttostr (License): Change from LGPL to LGPLv2+.
14710 2012-10-03  Eric Blake  <eblake@redhat.com>
14712         ptsname_r: support ptys returned by FreeBSD posix_openpt
14713         * lib/ptsname_r.c (__ptsname_r): Don't munge name if it already
14714         lives in /dev/pts/.
14716 2012-10-02  Eric Blake  <eblake@redhat.com>
14718         pselect: reject invalid file descriptors
14719         * m4/pselect.m4 (gl_FUNC_PSELECT): Probe for FreeBSD bug.
14720         * lib/pselect.c (rpl_pselect) [!win32]: Work around it.
14721         * modules/pselect (Depends-on): Add dup2.
14722         * doc/posix-functions/pselect.texi (pselect): Document this.
14724         select: reject invalid file descriptors
14725         * m4/select.m4 (gl_FUNC_SELECT): Probe for FreeBSD bug.
14726         * lib/select.c (rpl_select) [!win32]: Work around it.
14727         * modules/select (Depends-on): Add dup2.
14728         * doc/posix-functions/select.texi (select): Document this.
14730         select: enhance test
14731         * tests/test-select.h (do_select_bad_nfd_nowait, test_bad_nfd):
14732         New functions.
14733         (test_function): Enhance test.
14734         (do_select_bad_fd): Avoid any stale errno values.
14736         ptsname: reject invalid file descriptors
14737         http://www.austingroupbugs.net/view.php?id=503
14738         * m4/ptsname.m4 (gl_FUNC_PTSNAME): Probe for FreeBSD bug.
14739         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Add new witness.
14740         * modules/stdlib (Makefile.am): Replace witness.
14741         * lib/stdlib.in.h (ptsname): Allow for replacement.
14742         * modules/ptsname (configure.ac): Trigger replacement.
14743         * doc/posix-functions/ptsname.texi (ptsname): Document this.
14745 2012-10-02:  Nikos Mavrogiannopoulos  <nmav@gnutls.org>  (tiny change)
14747         hash-pjw-bare: new module
14748         * lib/hash-pjw-bare.c: New file, very much like hash-pjw.c.
14749         * lib/hash-pjw-bare.h: Likewise.
14750         * modules/hash-pjw-bare: New file.
14751         * MODULES.html.sh (Misc): Add it.
14753 2012-10-02  Eric Blake  <eblake@redhat.com>
14755         manywarnings: cater to more gcc infelicities
14756         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Add test for
14757         -Wuninitialized without -O.
14759 2012-10-01  Ed Maste  <emaste@freebsd.org>  (tiny change)
14761         select, poll tests: Make setsockopt invocation effective.
14762         * tests/test-poll.c (open_server_socket): Move setsockopt() call before
14763         the bind() call.
14764         * tests/test-select.h (open_server_socket): Likewise.
14766 2012-09-30  Paul Eggert  <eggert@cs.ucla.edu>
14768         sockets, sys_stat: restore AC_C_INLINE
14769         This undoes the 2012-09-22 patch.
14770         * m4/sockets.m4 (gl_SOCKETS):
14771         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H):
14772         Restore AC_C_INLINE, since MSVC requires __inline or _inline
14773         and does not support plain 'inline'.  Reported by Bruno Haible in
14774         <http://lists.gnu.org/archive/html/bug-gnulib/2012-09/msg00183.html>.
14776 2012-09-30  Bruno Haible  <bruno@clisp.org>
14778         localeconv tests: Avoid test failure on OpenIndiana.
14779         * tests/test-localeconv.c (main): On OpenIndiana (a Solaris 11 variant)
14780         skip the 'grouping' and 'mon_grouping' tests.
14781         Reported by Jim Meyering.
14783 2012-09-30  Bruno Haible  <bruno@clisp.org>
14785         havelib: Follow libtool developments.
14786         * m4/lib-ld.m4: Rebase on libtool.m4 from libtool-2.4.
14787         Suggested by Simon Josefsson.
14789 2012-09-29  Jim Meyering  <meyering@redhat.com>
14791         fstatat.c: fix a compile-impeding typo
14792         * lib/fstatat.c (FSTATAT_INLINE): Fix typo: s/#include/#define/
14793         Introduced in commit v0.0-7636-gd202279.
14794         Mats Erik Andersson reported the resulting OpenBSD compilation failure.
14796 2012-09-28  Akim Demaille  <akim@lrde.epita.fr>
14798         extern-inline: provide a -Wundef safe config.h
14799         * m4/extern-inline.m4 (gl_EXTERN_INLINE): Protect
14800         "#if __GNUC_STDC_INLINE__" with "defined __GNUC_STDC_INLINE__"
14801         to produce a -Wundef warning free config.h.
14803 2012-09-26  Paul Eggert  <eggert@cs.ucla.edu>
14805         hash-pjw: relax license to LGPLv2+
14806         * modules/hash-pjw (License): Relax, with consent of author.
14808 2012-09-25  Akim Demaille  <akim@lrde.epita.fr>
14810         maint.mk: fix strict vs. lazy variable issues with RELEASE
14811         * top/maint.mk (_equal): New function.
14812         (member_check): Strip the result to avoid spurious spaces.
14813         (url_dir_list): Do not use ifeq, which is strict, as it will
14814         require RELEASE_TYPE to be defined.
14815         (announcement_Cc_, announcement_mail_headers_): Likewise: instead
14816         of relying on ifeq, use $(release_type) to dispatch (lazily) onto...
14817         (announcement_Cc_alpha,announcement_mail_headers_alpha)
14818         (announcement_Cc_beta,announcement_mail_headers_beta)
14819         (announcement_Cc_stable,announcement_mail_headers_stable): these.
14820         (release): Do not depend on $(release-type), as it forces its
14821         evaluation.  Bounce to it.
14823 2012-09-25  Akim Demaille  <akim@lrde.epita.fr>
14825         maint.mk: formatting changes
14826         * top/maint.mk: Indent bodies of if's.
14828 2012-09-21  Akim Demaille  <akim@lrde.epita.fr>
14830         maint.mk: factor the validation of RELEASE_TYPE
14831         With help from Jim Meyering.
14832         http://lists.gnu.org/archive/html/bug-gnulib/2012-09/msg00132.html
14833         * top/maint.mk (_empty, _sp): Move their definition earlier.
14834         (member-check, release-type): New.
14835         Use the latter instead of $(RELEASE_TYPE).
14836         Remove now useless local checks.
14838 2012-09-20  Akim Demaille  <akim@lrde.epita.fr>
14840         maint.mk: provide "make upload" to ease uploading
14841         See
14842         <http://lists.gnu.org/archive/html/bug-gnulib/2012-08/msg00028.html>.
14843         Do not depend simply on the current $(VERSION), as there may have been
14844         new commits since the tarball generation.  Rather, rely on $(RELEASE),
14845         as "make release-commit" already does.
14847         For consistency, add "make release RELEASE='X.Y TYPE'" as an alias for
14848         "make TYPE".
14850         * top/maint.mk (upload_command, upload, release): New.
14851         (RELEASE_TYPE): If undefined, default to the second word of $(RELEASE).
14852         (VERSION): first word of $(RELEASE) is always right.
14853         (emit_upload_commands): Adjust.
14854         * top/README-release: Update.
14856 2012-09-20  Akim Demaille  <akim@lrde.epita.fr>
14858         maint.mk: silent rules
14859         With help from Stefano Lattarini.
14860         * top/maint.mk (writable-files): Use $(AM_V_GEN).
14861         (announcement): Use $(AM_V_at).
14863 2012-09-24  Paul Eggert  <eggert@cs.ucla.edu>
14865         localename: port gl_locale_name_thread_unsafe to FreeBSD
14866         * lib/localename.c (gl_locale_name_thread_unsafe): Port to FreeBSD,
14867         and use the simpler FreeBSD implementation on Mac OS X as well.
14868         Original idea suggested by Ed Maste in
14869         <http://lists.gnu.org/archive/html/bug-gnulib/2012-09/msg00094.html>.
14871 2012-09-22  Paul Eggert  <eggert@cs.ucla.edu>
14873         binary-io, eealloc, mbfile, mbiter, mbutil, xsize: better 'inline'
14874         * lib/binary-io.c, lib/eealloc.c, lib/mbfile.c, lib/mbiter.c:
14875         * lib/mbuiter.c, lib/xsize.c: New files.
14876         * lib/binary-io.h (BINARY_IO_INLINE):
14877         * lib/eealloc.h (EEALLOC_INLINE):
14878         * lib/mbfile.h (MBFILE_INLINE):
14879         * lib/mbiter.h (MBITER_INLINE):
14880         * lib/mbuiter.h (MBUITER_INLINE):
14881         * lib/xsize.h (XSIZE_INLINE):
14882         New macros.
14883         Replace all uses of 'static inline' with them.
14884         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
14885         * m4/eealloc.m4 (gl_EEALLOC):
14886         * m4/mbfile.m4 (gl_MBFILE):
14887         * m4/mbiter.m4 (gl_MBITER):
14888         * m4/xsize.m4 (gl_XSIZE):
14889         Do not require AC_C_INLINE.
14890         * modules/binary-io (Files, lib_SOURCES): Add lib/binary-io.c
14891         * modules/eealloc (Files, lib_SOURCES): Add lib/eealloc.c.
14892         * modules/mbfile (Files, lib_SOURCES): Add lib/mbfile.c.
14893         * modules/mbiter (Files, lib_SOURCES): Add lib/mbiter.c.
14894         * modules/mbuiter (Files, lib_SOURCES): Add lib/mbuiter.c.
14895         * modules/xsize (Files, lib_SOURCES): Add lib/xsize.c.
14896         * modules/binary-io, modules/eealloc, modules/mbfile:
14897         * modules/mbiter, modules/mbuiter:
14898         (Depends-on): Add extern-inline.
14900         pipe-filter-gi, pipe-filter-ii: better use of 'inline'
14901         * lib/pipe-filter-aux.c: New file.
14902         * lib/pipe-filter-aux.h (PIPE_FILTER_AUX_INLINE): New macro.
14903         Replace all uses of 'static inline' with it.
14904         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
14905         * lib/pipe-filter-gi.c (filter_init, filter_cleanup)
14906         (filter_retcode): No real need for inline here.
14907         * modules/pipe-filter-gi, modules/pipe-filter-ii:
14908         (Files): Add lib/pipe-filter-aux.c.
14909         (Depends-on): Add extern-inline.
14910         (configure.ac): Do not require AC_C_INLINE.
14911         (lib_SOURCES): Add pipe-filter-aux.c.
14913         fdutimensat: omit unnecessary AC_C_INLINE
14914         * modules/fdutimensat (configure.ac): Remove AC_C_INLINE.
14916         fchmodat, fchownat, fstatat: use extern-inline
14917         * lib/fchmodat.c, lib/openat.h (FCHMODAT_INLINE):
14918         * lib/fchownat.c, lib/openat.h (FCHOWNAT_INLINE):
14919         * lib/fstatat.c, lib/openat.h (FSTATAT_INLINE):
14920         New macros.
14921         * lib/openat.h:
14922         Replace all uses of 'static inline' with them.
14923         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
14924         * modules/fchmodat, modules/fchownat, modules/fstatat:
14925         * modules/openat-h:
14926         (Depends-on):
14927         Add extern-inline.
14928         (configure.ac): Remove AC_C_INLINE.
14930         acl, mbchar, priv-set: use extern-inline
14931         * lib/set-mode-acl.c, lib/acl-internal.h (ACL_INTERNAL_INLINE):
14932         * lib/mbchar.c, lib/mbchar.h (MBCHAR_INLINE):
14933         * lib/priv-set.c, lib/priv-set.h (PRIV_SET_INLINE):
14934         New macros.
14935         * lib/acl-internal.h, lib/mbchar.h, lib/priv-set.h:
14936         Replace all uses of 'static inline' with it.
14937         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
14938         * m4/acl.m4 (gl_FUNC_ACL):
14939         * m4/mbchar.m4 (gl_MBCHAR):
14940         * m4/priv-set.m4 (gl_PRIV_SET):
14941         Remove AC_C_INLINE, since 'inline' is no longer used directly.
14942         * modules/acl, modules/mbchar, modules/priv-set (Depends-on):
14943         Add extern-inline.
14945         sockets, sys_stat: remove AC_C_INLINE in MSVC-only cases
14946         * m4/sockets.m4 (gl_SOCKETS):
14947         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H):
14948         Remove AC_C_INLINE.  Here, 'inline' is used only in MSVC
14949         environments where it's already guaranteed to work, so we needn't
14950         check for it at 'configure'-time.
14952         tls-tests: omit unnecessary 'inline'
14953         * tests/test-tls.c (perhaps_yield): No longer inline.
14954         Simplicity and portability trump efficiency in test cases.
14956         utimens-tests: avoid unnecessary 'inline'
14957         * modules/fdutimensat-tests (configure.ac):
14958         * modules/futimens-tests (configure.ac):
14959         * modules/utimens-tests (configure.ac):
14960         * modules/utimensat-tests (configure.ac):
14961         Remove AC_C_INLINE.
14962         * tests/test-utimens-common.h (ctime_compare):
14963         No longer inline.  Simplicity and portability trump efficiency here.
14965         misc: don't limit commentary to inline functions
14966         * lib/binary-io.h, lib/malloca.h, lib/safe-alloc.c:
14967         * lib/xalloc-oversized.h, lib/xsize.h:
14968         Contrast macros to functions in general, not just to inline functions,
14969         when the commentary does not apply only to inline functions.
14971 2012-09-20  Jim Meyering  <meyering@redhat.com>
14973         non-recursive-gnulib-prefix-hack: new module
14974         * build-aux/prefix-gnulib-mk: Copied from coreutils, derived from
14975         the file that originated in Bison.
14976         * m4/non-recursive-gnulib-prefix-hack.m4: Likewise, this code is
14977         largely copied from a snippet that resided in bison's configure.ac.
14978         * modules/non-recursive-gnulib-prefix-hack: New file.
14979         * MODULES.html.sh (Support for maintaining and releasing projects):
14980         Add it.
14982 2012-09-18  Jim Meyering  <meyering@redhat.com>
14984         maint.mk: generalize _gl_tight_scope for non-recursive make
14985         * top/maint.mk (_gl_tight_scope): Remove a hard-coded assumption
14986         that *.h would describe additional .h files in the directory
14987         specified by $(_gl_TS_dir).  I.e., add this...
14988         (_gl_TS_other_headers): New variable.
14990         maint.mk: exempt trailing blanks found in "binary" files
14991         * top/maint.mk (sc_trailing_blank): Filter out any matches found in
14992         "binary" files, as reported by grep.  Suggested by Richard W.M. Jones
14993         in http://thread.gmane.org/gmane.comp.emulators.guestfs/1902
14995 2012-09-17  Jim Meyering  <meyering@redhat.com>
14997         maint.mk: sc_prohibit_path_max_allocation: don't FP for UNIX_PATH_MAX
14998         * top/maint.mk (sc_prohibit_path_max_allocation): Avoid false-positive
14999         match for symbols like UNIX_PATH_MAX. Reported by Richard W.M. Jones
15000         in http://thread.gmane.org/gmane.comp.emulators.guestfs/1902
15002 2012-09-17  Jim Meyering  <meyering@redhat.com>
15004         maint.mk: teach sc_prohibit_magic_number_exit to accept 77
15005         * top/maint.mk (sc_prohibit_magic_number_exit): Do not complain about
15006         uses like "exit (77)".  "77" is automake's "skip this test" exit code.
15007         It is not in the same category as "exit (0)" or "exit (1)", and
15008         besides, I know of no symbolic name for that 77.  Reported by
15009         Richard W.M. Jones in
15010         http://thread.gmane.org/gmane.comp.emulators.guestfs/1902
15012 2012-09-17  Jim Meyering  <meyering@redhat.com>
15014         maint.mk: relax sc_prohibit_strcmp, to avoid a false positive
15015         * top/maint.mk (sc_prohibit_strcmp): Relax regexp, so as to match
15016         all uses of #define, not just those that start in column 1.
15017         Richard W.M. Jones reported a false positive in
15018         http://thread.gmane.org/gmane.comp.emulators.guestfs/1902
15020 2012-09-16  Paul Eggert  <eggert@cs.ucla.edu>
15022         localcharset: work around Mac OS X bug with UTF-8 and MB_CUR_MAX
15023         * lib/localcharset.c (locale_charset) [DARWIN7]:
15024         Return "ASCII" if the system reports "UTF-8" and MB_CUR_MAX <= 1,
15025         as these two values are incompatible.  Problem reported by Max Horn.
15026         For more discussion, please see
15027         <http://lists.gnu.org/archive/html/bug-gnulib/2012-09/msg00061.html>.
15029         doc: document sticky-EOF issue
15030         * doc/posix-functions/fgetc.texi (fgetc):
15031         * doc/posix-functions/fgets.texi (fgets):
15032         * doc/posix-functions/fread.texi (fread):
15033         * doc/posix-functions/fscanf.texi (fscanf):
15034         * doc/posix-functions/getc.texi (getc):
15035         * doc/posix-functions/getchar.texi (getchar):
15036         * doc/posix-functions/scanf.texi (scanf):
15037         Mention that glibc and default Solaris do not conform to
15038         C99 and POSIX-2001 or later, with respect to how getchar
15039         etc. behave when feof reports nonzero.
15041 2012-09-13  Joachim Schmitz  <jojo@schmitz-digital.de>  (tiny change)
15043         poll: fix poll(0, NULL, msec)
15044         * lib/poll.c: don't exit early if NULL is the 1st arg to poll(),
15045         but nfd is 0.  In that case poll should behave like select.
15047 2012-09-13  Joachim Schmitz  <jojo@schmitz-digital.de>  (tiny change)
15048             Paolo Bonzini  <bonzini@gnu.org>
15050         poll: fix for systems that can't recv() on a non-socket
15051         * lib/poll.c: if recv returns ENOTSOCK, assume the descriptor
15052         is readable.  In this case POLLHUP will not be supported.
15053         * doc/posix-functions/poll.texi: Document this.
15055 2012-09-13  Paolo Bonzini  <bonzini@gnu.org>
15057         poll/select: document portability problems not fixed by Gnulib.
15058         * doc/posix-functions/poll.texi: poll does not work well on
15059         pipes under Windows.  It has the same limitations as select on
15060         BeOS.
15061         * doc/posix-functions/select.texi: select does not work well
15062         on pipes under Windows.
15064 2012-09-10  Paul Eggert  <eggert@cs.ucla.edu>
15066         fcntl-h: check for AIX 7.1 bug with O_NOFOLLOW and O_CREAT
15067         * m4/fcntl-o.m4 (gl_FCNTL_O_FLAGS): Check for AIX 7.1 bug
15068         that caused a GNU tar test failure.  Problem reported by Jez Wain; see
15069         <http://lists.gnu.org/archive/html/bug-tar/2012-07/msg00018.html>.
15071 2012-09-06  Eric Blake  <eblake@redhat.com>
15073         net_if: give more details about the bug being fixed
15074         * doc/posix-headers/net_if.texi: Add clarification.
15076 2012-09-05  Eric Blake  <eblake@redhat.com>
15078         net_if: new module
15079         * modules/net_if: New module, borrowing ideas from netinet_in.
15080         * m4/net_if_h.m4: New file.
15081         * lib/net_if.in.h: Likewise.
15082         * doc/posix-headers/net_if.texi (net/if.h): Document it.
15083         * MODULES.html.sh (lacking POSIX:2008): Likewise.
15084         * tests/test-net_if.c: Make function checks conditional.
15085         Reported by Jasper Lievisse Adriaanse <jasper@humppa.nl>.
15087 2012-09-05  Mats Erik Andersson  <gnu@gisladisker.se>  (tiny change)
15089         readutmp: fix non-portable UT_PID use
15090         * lib/readutmp.c (desirable_utmp_entry) <READ_UTMP_CHECK_PIDS>:
15091         Use `UT_PID (u) > 0' as absolute condition.
15093 2012-09-04  Jim Meyering  <meyering@redhat.com>
15095         fts: reduce two or more trailing spaces to just one, usually
15096         * lib/fts.c (fts_open): Upon initialization, if a name ends in two
15097         or more slashes, trim all but the final one.  But if a name consists
15098         solely of two slashes, don't modify it.  If it consists solely of
15099         three or more slashes, strip all but one.
15101         This is part of the solution to a minor problem with rm:
15102         it would print a bogus ELOOP diagnostic when failing to remove
15103         the slash-decorated name of a symlink-to-directory:
15105             $ mkdir d && ln -s d s && env rm -r s/
15106             rm: cannot remove 's': Too many levels of symbolic links
15108         With the change below and a trivial don't-trim-trailing-slashes
15109         adjustment to remove.c, it does this:
15111             $ env rm -r s/
15112             rm: cannot remove 's/': Not a directory
15114         Improved by: Eric Blake
15116         fts: when there is no risk of overlap, use memcpy, not memmove
15117         * lib/fts.c (fts_alloc): Fix unjustified memcopy: s/memmove/memcpy/
15119 2012-08-29  Paul Eggert  <eggert@cs.ucla.edu>
15121         stdbool: be more compatible with mixed C/C++ compiles
15122         * lib/stdbool.in.h (_Bool, true, false) [__cplusplus]:
15123         Define to bool, true, false, respectively, as GCC's builtin
15124         stdbool.h does.  Problem reported by Michael Goffioul in
15125         <http://lists.gnu.org/archive/html/bug-gnulib/2012-08/msg00143.html>.
15127 2012-08-28  Jim Meyering  <meyering@redhat.com>
15129         revert last change: it was not needed
15130         * tests/test-vc-list-files-git.sh: There's already a test for
15131         a working git, just below.
15133 2012-08-28  Jim Meyering  <meyering@redhat.com>
15135         tests: test-vc-list-files-git.sh: skip if git is not available
15136         * tests/test-vc-list-files-git.sh: Skip this test when git is
15137         not available.
15139 2012-08-26  Bruno Haible  <bruno@clisp.org>
15141         gnulib-tool: Remove no-op option --no-changelog.
15142         * gnulib-tool (func_usage): Don't mention --no-changelog.
15143         (do_changelog): Remove variable.
15144         Reported by Dmitriy Selyutin <ghostman.sd@gmail.com>.
15146 2012-08-24  Paul Eggert  <eggert@cs.ucla.edu>
15148         doc: remove fdl-1.2.texi
15149         It is no longer used or maintained, and its use of @acronym
15150         is problematic.  See the thread containing
15151         <http://lists.gnu.org/archive/html/bug-gnulib/2012-08/msg00134.html>.
15152         * config/srclist.txt: Remove doc/old-licenses/fdl-1.2.texi.
15153         * doc/old-licenses/fdl-1.2.texi: Remove.
15155         execinfo: port to FreeBSD
15156         * m4/execinfo.m4 (gl_EXECINFO_H): Set LIB_EXECINFO to -lexecinfo
15157         if needed, as in FreeBSD.  Reported by Bastien Roucariès in
15158         <http://lists.gnu.org/archive/html/bug-gnulib/2012-08/msg00113.html>.
15159         * modules/execinfo (Link): Add $(LIB_EXECINFO).
15161 2012-08-23  Jim Meyering  <meyering@redhat.com>
15163         xstrtol.h: avoid "_Noreturn is not at beginning of declaration" warning
15164         * lib/xstrtol.h: Put "_Noreturn" before "void" in declaration,
15165         to placate gcc's -Wold-style-declaration.
15167 2012-08-24  Paul Eggert  <eggert@cs.ucla.edu>
15169         doc: do not use @acronym
15170         * doc/inet_ntoa.texi (inet_ntoa):
15171         * doc/parse-datetime.texi (Seconds since the Epoch)
15172         (Specifying time zone rules):
15173         * doc/posix-functions/inet_ntoa.texi (inet_ntoa):
15174         Don't use @acronym.  Problem reported by John Darlington in
15175         <http://lists.gnu.org/archive/html/bug-gnulib/2012-08/msg00124.html>.
15177 2012-08-23  Paul Eggert  <eggert@cs.ucla.edu>
15179         stdnoreturn: port to newer GCCs
15180         * m4/stdnoreturn.m4 (gl_STDNORETURN_H): Avoid problems with
15181         bleeding-edge GCC that complains about 'int _Noreturn foo (void);'.
15182         Problem reported by Jim Meyering in
15183         <http://lists.gnu.org/archive/html/bug-gnulib/2012-08/msg00121.html>.
15184         Also, rename the 'test' function to a void a clash with the
15185         already-supplied 'main' function; this fixes a bug that incorrectly
15186         rejected GCC 4.7.1's <stdnoreturn.h>.
15187         * doc/posix-headers/stdnoreturn.texi (stdnoreturn.h):
15188         Document GCC problem.
15190 2012-08-22  Reuben Thomas  <rrt@sc3d.org>
15192         pipe-filter: fix comment typo
15193         * lib/pipe-filter.h: Mention correct function.
15195 2012-08-22  Paul Eggert  <eggert@cs.ucla.edu>
15197         execinfo: new module
15198         This is for Emacs.  Currently, it provides a no-effect stub
15199         on all platforms where it does not already work.
15200         It already works on glibc-based systems, and on Solaris 11.
15201         * lib/execinfo.c, lib/execinfo.in.h, m4/execinfo.m4, modules/execinfo:
15202         New files.
15203         * doc/glibc-headers/execinfo.texi (execinfo.h):
15204         * MODULES.html.sh (Misc): Document it.
15206 2012-08-20  Paul Eggert  <eggert@cs.ucla.edu>
15208         extern-inline: support old GCC 'inline'
15209         * m4/extern-inline.m4 (gl_EXTERN_INLINE): Use pre-C99 GCC 'inline'
15210         if available.  This applies to GCC versions 2.7 through 4.2, or
15211         when newer GCC is using -fgnu89-inline.  The goal is to address
15212         some of the performance issues mentioned by Bruno Haible in
15213         <http://lists.gnu.org/archive/html/bug-gnulib/2012-08/msg00097.html>.
15215 2012-08-20  Eric Blake  <eblake@redhat.com>
15217         maint.mk: avoid redundant file name in message
15218         * top/maint.mk (sc_prohibit_strcmp, sc_unmarked_diagnostics)
15219         (sc_prohibit_defined_have_decl_tests, sc_const_long_option)
15220         (sc_makefile_path_separator_check): Remove bogus $(ME).
15222 2012-08-20  Mike Frysinger  <vapier@gentoo.org>
15224         timer-time: fix link order when static linking on glibc
15225         * m4/timer_time.m4 (LIB_TIMER_TIME): Add -lpthread
15226         _after_ -lrt so that it's significant.
15228 2012-08-19  Paul Eggert  <eggert@cs.ucla.edu>
15230         timespec: omit unnecessary AC_C_INLINE
15231         * m4/timespec.m4 (gl_TIMESPEC): Do not require AC_C_INLINE.
15233         stat-time: omit unnecessary AC_C_INLINE
15234         * m4/stat-time.m4 (gl_STAT_TIME, gl_STAT_BIRTHTIME):
15235         Do not require AC_C_INLINE.
15237         ignore-value: omit unnecessary AC_C_INLINE
15238         * modules/ignore-value (configure.ac): Do not require AC_C_INLINE.
15240         sys_select: avoid 'static inline'
15241         * lib/sys_select.in.h (rpl_fd_isset): Now static, not static inline.
15243         mktime: avoid 'static inline'
15244         * lib/mktime.c (leapyear, ydhms_diff): Now static, not static inline.
15245         * m4/mktime.m4 (gl_PREREQ_MKTIME): Do not require AC_C_INLINE.
15247 2012-08-19  Bruno Haible  <bruno@clisp.org>
15249         gnulib-tool: Improve coding style.
15250         * gnulib-tool (func_emit_tests_Makefile_am): Set perhapsLT, like in
15251         func_emit_lib_Makefile_am.
15252         Reported and fix suggested by Dmitriy Selyutin <ghostman.sd@gmail.com>.
15254 2012-08-19  Bruno Haible  <bruno@clisp.org>
15256         gnulib-tool: Fix indentation.
15257         * gnulib-tool (func_import): Fix indentation.
15259 2012-08-19  Bruno Haible  <bruno@clisp.org>
15261         gnulib-tool: Remove old file names from .cvsignore, .gitignore.
15262         * gnulib-tool (func_update_ignorelist): Don't use 'join -v 1' command
15263         on the list of removed files.
15265 2012-08-17  Paul Eggert  <eggert@cs.ucla.edu>
15267         test-parse-datetime: avoid glibc leap-second glitch
15268         * tests/test-parse-datetime.c (main): Set TZ to US Eastern time
15269         with the 2012 rules.  Problem reported by Bruce Dubbs in
15270         <http://bugs.gnu.org/12206>.
15272 2012-08-14  Bruno Haible  <bruno@clisp.org>
15274         gnulib-tool: Fix indentation of generated gnulib-comp.m4 file.
15275         * gnulib-tool (func_emit_autoconf_snippet): Initialize indentation
15276         from argument.
15277         Reported and fix suggested by Dmitriy Selyutin <ghostman.sd@gmail.com>.
15279 2012-08-14  Eric Blake  <eblake@redhat.com>
15281         ldexp: relax license
15282         * modules/ldexp (License): Trivial relax, since the module only
15283         provides a permissively licensed m4 file.
15285 2012-08-13  Bruno Haible  <bruno@clisp.org>
15287         gnulib-tool: Fix persistence of --witness-c-macro option.
15288         * gnulib-tool (func_import): Fix typo in emit of gl_WITNESS_C_MACRO.
15289         Reported by Dmitriy Selyutin <ghostman.sd@gmail.com>.
15291 2012-08-11  Eric Blake  <eblake@redhat.com>
15293         count-leading-zeros: use a lookup table on non-gcc compilers
15294         * lib/count-leading-zeros.h (count_leading_zeros_32): Use an
15295         alternate implementation, suggested by Jim Meyering.
15297 2012-08-10  Eric Blake  <eblake@redhat.com>
15299         count-leading-zeros: new module
15300         * modules/count-leading-zeros: New module.
15301         * m4/count-leading-zeros.m4: New file.
15302         * lib/count-leading-zeros.h: Likewise.
15303         * modules/count-leading-zeros-tests: New test.
15304         * tests/test-count-leading-zeros.c: New file.
15305         * MODULES.html.sh (Integer arithmetic functions): Document it.
15307 2012-08-07  Simon Josefsson  <simon@josefsson.org>
15308             Jim Meyering  <meyering@redhat.com>
15310         maintainer-makefile: Fix syntax error with dash.
15311         * top/maint.mk (sc_vulnerable_makefile_CVE-2009-4029): Quote arguments.
15312         (sc_vulnerable_makefile_CVE-2012-3386): Likewise.
15314 2012-08-05  Jim Meyering  <meyering@redhat.com>
15316         extern-inline: also ignore -Wmissing-declarations
15317         * m4/extern-inline.m4: Also ignore -Wmissing-declarations,
15318         required with gcc-4.8.0-to-be.
15320         maint.mk: sc_prohibit_magic_number_exit: avoid new false positives
15321         * top/maint.mk (sc_prohibit_magic_number_exit): Also filter out matches
15322         for /error ?([^,]*)/.  This avoids false-positives for strings like
15323         "Unknown error (252)", introduced via commit v0.0-7538-g92875a6.
15325 2012-08-02  Stefano Lattarini  <stefano.lattarini@gmail.com>
15327         gnumakefile: better interaction with Automake-NG
15328         * modules/gnumakefile [Makefile.am]: The makefiles generated by
15329         Automake-NG always contain a definition of VPATH, even in non-VPATH
15330         builds (its value being simply '.' in that case).  So, in the
15331         'clean-GNUmakefile' rule, to determine whether running under a
15332         VPATH setup, compare '$(srcdir)' to '.' rather than checking whether
15333         '$(VPATH)' expands to the empty string.
15335 2012-08-02  Carlo de Falco  <carlo.defalco@polimi.it>  (tiny change)
15337         base64: Use extern C scope in header file, for C++.
15338         * lib/base64.h: Add C++ namespace protection.
15340 2012-08-02  Paul Eggert  <eggert@cs.ucla.edu>
15342         stat-time, timespec, u64: support naive out-of-dir builds
15343         * lib/stat-time.c, lib/timespec.c, lib/u64.c:
15344         Use '#include "foo.h"', not '#include <foo.h>', when including
15345         one's own interface.  This works better when configuring with
15346         out-of-directory builds, since packages need not add an
15347         otherwise-unnecessary -I$(topdir_src)/lib to DEFAULT_INCLUDES.
15349 2012-08-01  Paul Eggert  <eggert@cs.ucla.edu>
15351         utimens: use extern-inline
15352         * lib/utimens.c (_GL_UTIMENS_INLINE): Define when including utimens.h.
15353         * lib/utimens.h: Add copyright notice, since this is now large enough
15354         to copyright.  Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
15355         (_GL_UTIMENS_INLINE): New macro.  Use it instead of 'static inline'.
15356         * modules/utimens (Depends-on): Add extern-inline.
15358         u64: use extern-inline
15359         * lib/u64.c: New file.
15360         * lib/u64.h: Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
15361         (_GL_U64_INLINE): New macro.  Use it instead of 'static inline'.
15362         * modules/u64 (Files): Add lib/u64.c.
15363         (Depends-on): Add extern-inline.
15364         (configure.ac): No need to require AC_C_INLINE, since extern-inline
15365         does that now.
15366         (lib_SOURCES): Add u64.c.
15368         timespec: use extern-inline
15369         * lib/timespec.c: New file.
15370         * lib/timespec.h: Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
15371         (_GL_TIMESPEC_INLINE): New macro.  Use it instead of 'static inline'.
15372         * modules/timespec (Files): Add lib/timespec.c.
15373         (Depends-on): Add extern-inline.
15374         (lib_SOURCES): Add timespec.c.
15376         stat-time: use extern-inline
15377         * lib/stat-time.c: New file.
15378         * lib/stat-time.h: Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
15379         (_GL_STAT_TIME_INLINE): New macro.  Use it instead of 'static inline'.
15380         * modules/stat-time (Files): Add lib/stat-time.c.
15381         (Depends-on): Add extern-inline.
15382         (lib_SOURCES): Add stat-time.c.
15384         extern-inline: new module
15385         * modules/extern-inline, m4/extern-inline.m4: New files.
15386         This is for better support of 'extern inline' a la ISO C99,
15387         with a portable alternative on compilers that do not support
15388         C99-style 'extern inline'.  Using 'extern inline' shrinks the size
15389         of the Emacs executable, when compiled with debugging disabled,
15390         which is a typical way that Emacs is built while developing.
15392 2012-08-01  Akim Demaille  <akim@lrde.epita.fr>
15394         maint.mk: a "release-commit" wrapper to do-release-commit-and-tag
15395         * build-aux/do-release-commit-and-tag: Move variable definitions
15396         together.
15397         ($branch): Instead of defaulting to "master", default to the current
15398         branch (as gnu-web-doc-update does).
15399         (help): Display the current values of the option arguments.
15400         * top/maint.mk (release-commit): New.
15401         * top/README-release: Simplify the corresponding step.
15403 2012-07-30  Eric Blake  <eblake@redhat.com>
15405         passfd: fix comment on recvfd
15406         * lib/passfd.c (recvfd): Fix comment.
15407         Reported by Jann Horn <jannhorn@googlemail.com>.
15409 2012-07-30  Jim Meyering  <meyering@redhat.com>
15411         maint.mk: avoid a sub-shell
15412         * top/maint.mk (release-prep): Remove unneeded sub-shell.
15414 2012-07-30  Akim Demaille  <akim@lrde.epita.fr>
15416         maint.mk: use silent-rules support from Automake
15417         * top/maint.mk (news-check, vc-diff-check, announcement)
15418         (no-submodule-changes, alpha beta stable, release-prep)
15419         (web-manual, update-copyright): Use $(AM_V_GEN) and $(AM_V_at).
15421 2012-07-30  Akim Demaille  <akim@lrde.epita.fr>
15423         maint.mk: provide a web-manual-update target
15424         * top/maint.mk: here.
15425         * top/README-release: Use it to simplify the web manual update step.
15427 2012-07-30  Akim Demaille  <akim@lrde.epita.fr>
15429         README-release: shorten the circuit to post a news
15430         * top/README-release: Point directly to the news submission form.
15432 2012-07-30  Akim Demaille  <akim@lrde.epita.fr>
15434         gnu-web-doc-update: fix --help
15435         * build-aux/gnu-web-doc-update: The information "top level" was written
15436         twice.
15438 2012-07-30  Akim Demaille  <akim@lrde.epita.fr>
15440         maint.mk: absolute VPATH issue
15441         * top/maint.mk (release-prep): Help Git find .git/.
15442         From Jim Meyering.
15444 2012-07-29  Akim Demaille  <akim@lrde.epita.fr>
15446         gitlog-to-changelog: fix previous change
15447         * build-aux/gitlog-to-changelog: Fix condition.
15448         Add missing ";".
15450 2012-07-29  Akim Demaille  <akim@lrde.epita.fr>
15452         gitlog-to-changelog: don't expect .git to be in $srcdir
15453         Reported by Bruno Haible.
15454         <http://lists.gnu.org/archive/html/bug-gnulib/2012-07/msg00265.html>
15455         * build-aux/gitlog-to-changelog (&git_dir_option): New.
15456         Use it.
15458 2012-07-29  Akim Demaille  <akim@lrde.epita.fr>
15460         maint.mk: absolute VPATH build fix
15461         * top/maint.mk (gpg_key_ID): Help git find .git when, for instance,
15462         $(srcdir) is not a parent of $(builddir).
15464 2012-07-28  John Darrington  <john@darrington.wattle.id.au>
15466         clean-temp: Fix memory leak.
15467         * lib/clean-temp.c (cleanup_temp_dir): Free also the 'subdirs' and
15468         'files' members of tmpdir.
15470 2012-07-27  Jim Meyering  <meyering@redhat.com>
15472         maint.mk: new rule: refresh-gnulib-patches
15473         I noticed that 8 of coreutils' 9 gl/**/*.diff files were stale.
15474         Use this rule to refresh them.
15475         * top/maint.mk (refresh-gnulib-patches): New rule.
15477 2012-07-24  Bruno Haible  <bruno@clisp.org>
15479         gnulib-tool: Fix handling of inctests variable.
15480         * gnulib-tool: Canonicalize $inctests also in 'update' mode.
15481         Reported by Nick Bowler <nbowler@elliptictech.com>.
15483 2012-07-22  Bruno Haible  <bruno@clisp.org>
15485         getpass: Assume AC_CHECK_DECLS_ONCE invocation, like in getpass.m4.
15486         * lib/getpass.h: Assume HAVE_DECL_GETPASS is defined.
15487         * cfg.mk (exclude_file_name_regexp--sc_prohibit_defined_have_decl_tests):
15488         Remove exemption for getpass.h.
15489         Suggested by Eric Blake.
15491 2012-07-20  Eric Blake  <eblake@redhat.com>
15493         verify: document conflict with -Wnested-externs
15494         * lib/verify.h: Give hint about usage when gcc warnings are enabled.
15496         maint.mk: forbid exit(-1)
15497         * top/maint.mk (sc_prohibit_magic_number_exit): Detect negatives.
15499 2012-07-20  Paul Eggert  <eggert@cs.ucla.edu>
15501         fsusage: port back to Solaris
15502         * lib/fsusage.c (get_fs_usage): Fix busted logic causing compile-time
15503         error (fsd not declared) on Solaris 10.  Reported privately by
15504         Andrew Borodin.
15506 2012-07-19  Akim Demaille  <akim@lrde.epita.fr>
15508         gnu-web-doc-update: fix error messages
15509         * build-aux/gnu-web-doc-update: Don't pass $ME to die.
15511         gnu-web-doc-update: check the requirements.
15512         * build-aux/gnu-web-doc-update (find_tool): Import from bootstrap.
15513         ($CVS, $CVSU, $GIT, $RSYNC, $XARGS): New.
15514         * build-aux/bootstrap (find_tool): Comment change.
15516 2012-07-17  Akim Demaille  <akim@lrde.epita.fr>
15518         maint.mk: minor simplication.
15519         * top/maint.mk (_sc_excl): Use $(or...) instead of $(if...)
15520         for default values.
15522 2012-07-15  Akim Demaille  <akim@lrde.epita.fr>
15524         gitlog-to-changelog: VPATH build issues
15525         If builddir is not a subdirectory of srcdir, running git from it will
15526         fail.
15527         * build-aux/gitlog-to-changelog (--srcdir): New option.
15529 2012-07-15  Bruno Haible  <bruno@clisp.org>
15531         fpending: Assume AC_CHECK_DECLS_ONCE invocation, like in fpending.m4.
15532         * lib/fpending.h: Assume HAVE_DECL___FPENDING is defined.
15533         * cfg.mk (exclude_file_name_regexp--sc_prohibit_defined_have_decl_tests)
15534         Remove exemption for fpending.h.
15535         Suggested by Eric Blake.
15537 2012-07-15  Paul Eggert  <eggert@cs.ucla.edu>
15539         pthread_sigmask: fix bug on FreeBSD 9
15540         * lib/pthread_sigmask.c [PTHREAD_SIGMASK_INEFFECTIVE]:
15541         Include string.h.
15542         (pthread_sigmask) [PTHREAD_SIGMASK_INEFFECTIVE]:
15543         When calling pthread_sigmask (1729, NEW, OLD), specify non-null NEW;
15544         this avoids a bug on FreeBSD 9, where pthread_sigmask is effective
15545         but pthread_sigmask (1729, NULL, NULL) returns zero.
15546         See <http://bugs.gnu.org/11884>.
15547         Avoid the need to call pthread_sigmask (1729, ...) in most cases,
15548         by inspecting whether the main call changed the old mask.
15550 2012-07-15  Reuben Thomas  <rrt@sc3d.org>
15552         README-release: make it more legible
15553         * top/README-release: Improve typography slightly.
15555 2012-07-15  Jim Meyering  <meyering@redhat.com>
15557         maint: require that each sc_... command start with "@"
15558         * Makefile (sc_prohibit_sc_omitted_at): New rule so that
15559         "make sc_maint" helps us avoid this nit.
15561 2012-07-15  Jim Meyering  <meyering@redhat.com>
15563         maint.mk: add leading "@" to quiet new "make syntax-check" rule
15564         * top/maint.mk (sc_prohibit_defined_have_decl_tests): Add "@".
15566 2012-07-13  Eric Blake  <eblake@redhat.com>
15568         maint.mk: new syntax check for HAVE_DECL checks
15569         * top/maint.mk (sc_prohibit_defined_have_decl_tests): New rule.
15570         * cfg.mk
15571         (exclude_file_name_regexp--sc_prohibit_defined_have_decl_tests):
15572         Exempt some false positives.
15573         Based on a report by Karel Zak.
15575         argp: make HAVE_DECL usage consistent
15576         * lib/argp-parse.c (__argp_parse): Check contents of HAVE_DECL
15577         macros, not whether they are defined.
15578         * m4/argp.m4 (gl_ARGP): Always define HAVE_DECL_* macros, per
15579         convention with other declaration checks.
15580         Reported by Karel Zak, with suggestions from Paul Eggert.
15582         stat-time: relax license to LGPLv2+
15583         * modules/stat-time (License): Relax, with consent of all authors.
15585         strndup: fix m4 usage error
15586         * m4/strndup.m4 (gl_FUNC_STRNDUP): HAVE_DECL_STRNDUP is always
15587         defined, to either 0 or 1.
15588         Reported by Karel Zak.
15590 2012-07-11  Jim Meyering  <meyering@redhat.com>
15592         maint: enable the sc_avoid_if_before_free syntax-check rule
15593         * cfg.mk (local-checks-to-skip): Enable sc_avoid_if_before_free.
15594         (if_before_free_offenders_): Define.
15595         (if_before_free_basename_re_): Define.
15596         Exempt current files with useless if-before-free.
15598 2012-07-11  Paul Eggert  <eggert@cs.ucla.edu>
15600         gettext: do not assume '#define ... defined ...' behavior
15601         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS):
15602         Do not use '#define FOO ... defined BAR ...', as the C standard says
15603         it's not portable to expect that this works after macro expansion.
15604         Problem reported for gzip by Steven M. Schweda in
15605         <http://lists.gnu.org/archive/html/bug-gzip/2012-07/msg00000.html>.
15607 2012-07-10  Paul Eggert  <eggert@cs.ucla.edu>
15609         getloadavg: clean out old Emacs and Autoconf cruft
15610         See Glenn Morris in <http://bugs.gnu.org/11905>.
15611         * lib/getloadavg.c: Include <config.h>, <stdbool.h> always.
15612         Include <sys/param.h> if HAVE_SYS_PARAM_H, not if unix or __unix.
15613         (LDAV_CVT): Remove no-longer-used LOAD_AVE_CVT hook.
15614         * m4/getloadavg.m4 (gl_PREREQ_GETLOADAVG): Check for <sys/param.h>.
15616 2012-07-10  Akim Demaille  <akim@lrde.epita.fr>
15618         bootstrap: let warn be like tests/init.sh's warn_
15619         Reported by Jim Meyering.
15620         * build-aux/bootstrap (warn): Remove, replaced by...
15621         (warnf_, warn_): these.
15622         Adjust callers.
15623         Shorten messages that no longer fit in 80 columns.
15625 2012-07-09  Bruno Haible  <bruno@clisp.org>
15627         getopt: Simplify after Emacs changed.
15628         * m4/getopt.m4 (gl_FUNC_GETOPT_POSIX): Inline gl_GETOPT_IFELSE.
15629         (gl_GETOPT_IFELSE): Remove macro.
15631 2012-07-09  Jim Meyering  <meyering@redhat.com>
15633         maint.mk: add sc_vulnerable_makefile_CVE-2012-3386
15634         * top/maint.mk (sc_vulnerable_makefile_CVE-2012-3386): New rule.
15636         maint.mk: _sc_search_regexp, sc_vulnerable_makefile_CVE-2009-4029: fix
15637         Bugs in both of those conspired to make the
15638         sc_vulnerable_makefile_CVE-2009-4029 rule 99% useless.
15639         _sc_search_regexp's handling of non-empty $in_files would filter
15640         out any offending file names.  sc_vulnerable_makefile_CVE-2009-4029's
15641         choice of in_files value meant there would be no match in most
15642         projects, due to the presence of two or more Makefile.in files.
15643         * top/maint.mk (_sc_search_regexp) [in_vc_files,in_files]: Clarify.
15644         Fix a bug in how a non-empty $$in_files was processed:
15645         (sc_vulnerable_makefile_CVE-2009-4029): Fix erroneous use of in_files:
15646         in spite of the name, it's a regexp, not a list of file names.
15648 2012-07-09  Paul Eggert  <eggert@cs.ucla.edu>
15650         getloadavg, getopt: fix commentary re configure.in
15651         Autoconf is deprecating the name 'configure.in', so change it to
15652         to the new name 'configure.ac' in a couple of places.
15653         * lib/getloadavg.c: configure.in -> configure.ac, in comment.
15654         * m4/getopt.m4 (gl_GETOPT_IFELSE, gl_GETOPT_SUBSTITUTE_HEADER)
15655         (gl_PREREQ_GETOPT): Remove obsolete commentary re Emacs configure.in.
15656         Emacs has renamed it to configure.ac, and it no longer refers
15657         to these macros anyway.
15659         timespec: mark functions with const attributes
15660         * lib/timespec.h (timespec_add, timespec_sub, dtotimespec):
15661         Mark with _GL_ATTRIBUTE_CONST.
15663 2012-07-07  Ludovic Courtès  <ludo@gnu.org>
15665         canonicalize[-lgpl]: handle "guessing" values when cross-building
15666         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE)
15667         (gl_CANONICALIZE_LGPL): Check whether $gl_cv_func_realpath_works
15668         matches "*yes" instead of just "yes".  Regression introduced in commit
15669         e0bcf6626cde8dad4bfbdc4045c744f0cd8b9e24.
15671 2012-07-07  Ludovic Courtès  <ludo@gnu.org>
15672             Bruno Haible  <bruno@clisp.org>
15674         canonicalize: make the right guess when cross-compiling to GNU
15675         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Match also "gnu*" to
15676         determine whether cross-compiling to glibc systems, so as to
15677         include GNU/Hurd.
15679 2012-07-06  Paul Eggert  <eggert@cs.ucla.edu>
15681         timespec-sub: avoid duplicate include
15682         * lib/timespec-sub.c: Do not include <config.h> twice.
15683         Reported by Juanma Barranquero.
15685 2012-07-06  Akim Demaille  <akim@lrde.epita.fr>
15687         bootstrap: use a more consistent error reporting scheme
15688         * build-aux/bootstrap (warn, die): New.
15689         Use them.
15691 2012-07-05  Paul Eggert  <eggert@cs.ucla.edu>
15693         sys_time: allow too-wide tv_sec
15694         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Allow struct
15695         timeval even if tv_sec is wider than time_t.  This allows
15696         OpenBSD 5.1 amd64 and fixes an Emacs porting glitch with utimens.c,
15697         as without this patch gnulib replaces struct timeval
15698         and OpenBSD futimes therefore has a type mismatch.
15699         * doc/posix-headers/sys_time.texi: Mention this.
15701         pthread: check for both pthread_create and pthread_join
15702         * m4/pthread.m4 (gl_PTHREAD_CHECK): Revert previous change, but
15703         alter the check so that it tests for both pthread_create and
15704         pthread_join.  This should be more portable to hosts like OSF/1 5.1.
15705         Suggested by Bruno Haible and Richard Yao in
15706         <http://lists.gnu.org/archive/html/bug-gnulib/2012-07/msg00048.html>.
15708         parse-datetime: doc tuneup
15709         * doc/parse-datetime.texi: Index "leap seconds" and fix minor
15710         spacing issues.
15712 2012-07-05  Akim Demaille  <akim@lrde.epita.fr>
15714         do-release-commit-and-tag: fix the previous commit
15715         * build-aux/do-release-commit-and-tag: Actually the test was right,
15716         but the comment and the error message were misleading.
15717         Fix comment, and improve error message.
15718         Perform check first, so that NEWS is not modified uselessly.
15720         do-release-commit-and-tag: fix typo
15721         * build-aux/do-release-commit-and-tag: Be sure that NEWS does
15722         _not_ start with a stub.
15724 2012-07-04  Paul Eggert  <eggert@cs.ucla.edu>
15726         pthread: check for pthread_create, not pthread_join
15727         * m4/pthread.m4 (gl_PTHREAD_CHECK): Check for pthread_create, not
15728         pthread_join.  On FreeBSD 9, pthread_create is in libpthread but
15729         pthread_join in libc.  I hope this removes the need for all the
15730         OSF/1 5.1 pthread_join business.  Reported by Richard Yao in
15731         <http://lists.gnu.org/archive/html/bug-gnulib/2012-07/msg00042.html>.
15733 2012-07-04  Jim Meyering  <meyering@redhat.com>
15735         parse-datetime: fix failure to diagnose invalid input
15736         date -d "$(printf '\xb0')" would print 00:00:00 with today's date
15737         rather than diagnosing the invalid input.  Now it reports this:
15738         date: invalid date '\260'
15739         * lib/parse-datetime.y (to_uchar): Define.
15740         (yylex): Don't sign-extend "other" bytes.
15741         * m4/parse-datetime.m4: Require AC_C_INLINE for first use of "inline".
15742         Thanks to Bruno Haible for the patch to this file.
15743         * tests/test-parse-datetime.c (main): Add a test to trigger the bug.
15744         Peter Evans reported the bug in GNU date: http://bugs.gnu.org/11843
15746 2012-07-03  Jim Meyering  <meyering@redhat.com>
15748         bootstrap: do not require now-removed build-aux/missing
15749         Now that build-aux/missing is, er, missing, bootstrap would
15750         silently fail.
15751         * build-aux/bootstrap (gnulib_extra_files): Remove $build_aux/missing
15752         from the list, now that (since commit v0.0-7489-gd0f486f) the file is
15753         no longer part of gnulib.
15754         Diagnose the failure.
15756 2012-07-03  Paul Eggert  <eggert@cs.ucla.edu>
15758         alloca: add support for HP NonStop TNS/E native
15759         * lib/alloca.in.h (alloca): Support the new host.
15760         From a suggestion by Joachim Schmitz in
15761         <http://lists.gnu.org/archive/html/bug-gnulib/2012-06/msg00355.html>.
15763 2012-07-02  Pádraig Brady  <P@draigBrady.com>
15765         fsusage: remove code not needed on non GNU/Linux systems.
15767         * lib/fsusage.c [STAT_STATVFS || STAT_STATVFS64]:
15768         Don't include headers no longer needed in this case.
15769         * lib/fsusage.c [STAT_STATVFS &&
15770         ! (__linux__ && (__GLIBC__||__UCLIBC__))]: Undefine
15771         STAT_STATFS2_FRSIZE to exclude code not used in this case.
15773 2012-07-02  Paul Eggert  <eggert@cs.ucla.edu>
15775         fsusage: include files needed for glibc 2.6 fallback
15776         * lib/fsusage.c [STAT_STATVFS || STAT_STATVFS64]:
15777         Include <sys/param.h>, <sys/mount.h>, <sys/vfs.h>
15778         as they are needed for the 2.6 < glibc/Linux < 2.6.36 fallback.
15779         Problem reported by Ludovic Courtès in
15780         <http://lists.gnu.org/archive/html/bug-gnulib/2012-07/msg00005.html>.
15782         fsusage: avoid needless check on GNU/Linux
15783         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Omit STAT_STATFS3_OSF1 check
15784         on GNU/Linux systems, since it can't possibly work.
15786 2012-07-01  Bruno Haible  <bruno@clisp.org>
15788         log: Fix an autoconf >= 2.64 warning.
15789         * modules/log (configure.ac): Require, not invoke, gl_FUNC_LOG.
15790         Reported by Carlos O'Donell <carlos_odonell@mentor.com>.
15792 2012-06-28  Bruno Haible  <bruno@clisp.org>
15794         log10f: Fix possible configuration problem.
15795         * m4/log10f.m4 (gl_FUNC_LOG10F): Augment LIBS by $LOG10F_LIBM, not
15796         $LOGF_LIBM.
15797         Reported by Carlos O'Donell <carlos_odonell@mentor.com>.
15799 2012-06-28  Bruno Haible  <bruno@clisp.org>
15801         remove: No longer override on all platforms. Fixes bug from 2010-03-20.
15802         * m4/remove.m4 (gl_FUNC_REMOVE): Test gl_cv_func_unlink_honors_slashes,
15803         not gl_cv_func_unlink_works.
15804         Reported by Carlos O'Donell <carlos_odonell@mentor.com>.
15806 2012-06-27  Eric Blake  <eblake@redhat.com>
15808         config: drop scripts that automake says are not independent
15809         * config/srclist.txt: Drop elisp-comp, missing, and ylwrap.
15810         * build-aux/elisp-comp: Delete.
15811         * build-aux/missing: Likewise.
15812         * build-aux/ylwrap: Likewise.
15813         * modules/elisp-comp: Likewise.
15814         * MODULES.html.sh: Drop mention of elisp-comp.
15815         * NEWS: Mention this.
15817 2012-06-26  Paul Eggert  <eggert@cs.ucla.edu>
15819         root-uid: new module
15820         This is for portability to Tandem's NonStop Kernel.
15821         * lib/root-uid.h, modules/root-uid: New files.
15822         * lib/euidaccess.c, lib/pt_chown.c, lib/unlinkdir.c:
15823         * lib/write-any-file.c, tests/test-sethostname2.c:
15824         Include "root-uid.h".
15825         * lib/euidaccess.c (euidaccess):
15826         * lib/pt_chown.c (main):
15827         * lib/unlinkdir.c (cannot_unlink_dir):
15828         * lib/write-any-file.c (can_write_any_file):
15829         * m4/mknod.m4 (gl_FUNC_MKNOD):
15830         * tests/test-sethostname2.c (geteuid, main):
15831         Don't assume ROOT_UID == 0.
15832         * modules/euidaccess (Depends-on):
15833         * modules/pt_chown (Depends-on):
15834         * modules/sethostname-tests (Depends-on):
15835         * modules/unlinkdir (Depends-on):
15836         * modules/write-any-file (Depends-on):
15837         Add root-uid.
15839         regex: use locale-independent comparison for codeset name
15840         See Bruno Haible's comment in <http://bugs.gnu.org/10305#120>.
15841         * lib/regcomp.c (init_dfa): Use just ASCII case comparison
15842         for codeset name.
15843         * lib/regex_internal.h: Do not include <strings.h>, since we
15844         no longer use strcasecmp.
15845         * modules/regex (Depends-on): Remove strcase.
15847 2012-06-23  Bruno Haible  <bruno@clisp.org>
15849         getopt-posix: No longer guarantee that option processing is resettable.
15850         * doc/posix-functions/getopt.texi: Drop description of problem with
15851         internal state. Fix info about mingw and msvc9.
15852         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Don't require a resettable
15853         option processing by getopt(). Run three test programs instead of one.
15854         Simplify cross-compilation guess.
15855         * NEWS: Mention the change.
15856         Reported by Rich Felker <dalias@aerifal.cx>.
15858 2012-06-26  Bruno Haible  <bruno@clisp.org>
15860         argp, regex: Ensure strcasecmp gets declared.
15861         * lib/argp-help.c: Include <strings.h>.
15862         * lib/regex_internal.h: Likewise.
15863         Reported and suggested by Joachim Schmitz <jojo@schmitz-digital.de>.
15865 2012-06-24  Bruno Haible  <bruno@clisp.org>
15867         ptsname_r: Make it consistent with ptsname on AIX.
15868         * lib/ptsname_r.c (__ptsname_r): For AIX, use nearly the same
15869         implementation as for OSF/1.
15870         * tests/test-ptsname_r.c (main) [AIX]: Use the modern way of opening
15871         a pty master.
15873         ptsname_r: Make it consistent with ptsname on OSF/1.
15874         * lib/ptsname_r.c (__ptsname_r): Add a different implementation for
15875         OSF/1.
15877 2012-06-24  Bruno Haible  <bruno@clisp.org>
15879         ttyname_r: Fix result on OSF/1, Solaris.
15880         * lib/ttyname_r.c (ttyname_r): Produce a NUL-terminated result.
15882 2012-06-24  Bruno Haible  <bruno@clisp.org>
15884         ptsname_r: Add support for Solaris.
15885         * lib/ptsname_r.c (__ptsname_r): Add a different implementation for
15886         Solaris.
15888         ptsname_r: Fix test failure on native Windows.
15889         * modules/ptsname_r (Depends-on): Add isatty.
15891         ptsname_r: Fix test failures on IRIX, Solaris.
15892         * m4/ptsname_r.m4 (gl_PREREQ_PTSNAME_R): Test whether isatty sets
15893         errno when it fails. Define ISATTY_FAILS_WITHOUT_SETTING_ERRNO
15894         accordingly.
15895         * lib/ptsname_r.c: Include <fcntl.h>.
15896         (__ptsname_r): When isatty returned false, then on IRIX, Solaris
15897         set errno if fd is invalid.
15898         * tests/test-isatty.c (main): Update comments.
15900 2012-06-24  Bruno Haible  <bruno@clisp.org>
15902         ptsname test: Extend test.
15903         * tests/test-ptsname.c: Include <errno.h>.
15904         (main): Test behaviour with invalid file descriptor.
15906 2012-06-23  Paul Eggert  <eggert@cs.ucla.edu>
15908         time: fix obsolete comment
15909         * m4/time_h.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Remove obsolete
15910         reference to HAVE_STRUCT_TIMESPEC in comment.
15912 2012-06-23  Bruno Haible  <bruno@clisp.org>
15914         getopt-gnu: Handle suboptimal getopt_long's abbreviation handling.
15915         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): If getopt_long exists but
15916         does not handle abbreviated long options with equivalent
15917         disambiguations, set gl_replace_getopt to yes.
15918         * doc/posix-functions/getopt.texi: Mention the OpenBSD 5.0 problem.
15920 2012-06-22  Paul Eggert  <eggert@cs.ucla.edu>
15922         time_r: fix typo that always overrode localtime_r decl
15923         * m4/time_r.m4 (gl_TIME_R): Use AC_CHECK_DECLS, not
15924         AC_CHECK_DECLS_ONCE, since localtime_r is declared in <time.h>,
15925         not in a standard include.
15927 2012-06-22  Bruno Haible  <bruno@clisp.org>
15929         Write "Mac OS X" instead of "MacOS X".
15930         * README: Write "Mac OS X" instead of "MacOS X".
15931         * build-aux/bootstrap: Likewise.
15932         * build-aux/install-reloc: Likewise.
15933         * lib/acl-internal.h: Likewise.
15934         * lib/acl_entries.c: Likewise.
15935         * lib/argp-ba.c: Likewise.
15936         * lib/argp-pv.c: Likewise.
15937         * lib/config.charset: Likewise.
15938         * lib/copy-acl.c: Likewise.
15939         * lib/csharpexec.c: Likewise.
15940         * lib/euidaccess.c: Likewise.
15941         * lib/fbufmode.c: Likewise.
15942         * lib/fflush.c: Likewise.
15943         * lib/file-has-acl.c: Likewise.
15944         * lib/filemode.h: Likewise.
15945         * lib/fpurge.c: Likewise.
15946         * lib/freadable.c: Likewise.
15947         * lib/freadahead.c: Likewise.
15948         * lib/freading.c: Likewise.
15949         * lib/freadptr.c: Likewise.
15950         * lib/freadseek.c: Likewise.
15951         * lib/fseeko.c: Likewise.
15952         * lib/fseterr.c: Likewise.
15953         * lib/fsusage.c: Likewise.
15954         * lib/fwritable.c: Likewise.
15955         * lib/fwriting.c: Likewise.
15956         * lib/get-rusage-as.c: Likewise.
15957         * lib/get-rusage-data.c: Likewise.
15958         * lib/getdomainname.c: Likewise.
15959         * lib/idpriv-drop.c: Likewise.
15960         * lib/idpriv-droptemp.c: Likewise.
15961         * lib/localcharset.c: Likewise.
15962         * lib/locale.in.h: Likewise.
15963         * lib/localename.c: Likewise.
15964         * lib/mbsrtowcs-state.c: Likewise.
15965         * lib/nproc.c: Likewise.
15966         * lib/passfd.c: Likewise.
15967         * lib/posix_openpt.c: Likewise.
15968         * lib/printf-parse.c: Likewise.
15969         * lib/progreloc.c: Likewise.
15970         * lib/safe-read.h: Likewise.
15971         * lib/safe-write.h: Likewise.
15972         * lib/sched.in.h: Likewise.
15973         * lib/set-mode-acl.c: Likewise.
15974         * lib/signal.in.h: Likewise.
15975         * lib/stdint.in.h: Likewise.
15976         * lib/stdio-impl.h: Likewise.
15977         * lib/stdlib.in.h: Likewise.
15978         * lib/strtod.c: Likewise.
15979         * lib/sys_select.in.h: Likewise.
15980         * lib/tcgetsid.c: Likewise.
15981         * lib/unistd.in.h: Likewise.
15982         * lib/unlockpt.c: Likewise.
15983         * lib/vasnprintf.c: Likewise.
15984         * lib/vma-iter.c: Likewise.
15985         * lib/wcsrtombs-state.c: Likewise.
15986         * m4/acl.m4: Likewise.
15987         * m4/acosl.m4: Likewise.
15988         * m4/asinl.m4: Likewise.
15989         * m4/atanl.m4: Likewise.
15990         * m4/c-stack.m4: Likewise.
15991         * m4/cosl.m4: Likewise.
15992         * m4/expl.m4: Likewise.
15993         * m4/extensions.m4: Likewise.
15994         * m4/fdatasync.m4: Likewise.
15995         * m4/fmal.m4: Likewise.
15996         * m4/frexp.m4: Likewise.
15997         * m4/frexpf.m4: Likewise.
15998         * m4/frexpl.m4: Likewise.
15999         * m4/fsusage.m4: Likewise.
16000         * m4/getdomainname.m4: Likewise.
16001         * m4/getloadavg.m4: Likewise.
16002         * m4/getopt.m4: Likewise.
16003         * m4/gettext.m4: Likewise.
16004         * m4/gnulib-common.m4: Likewise.
16005         * m4/intdiv0.m4: Likewise.
16006         * m4/intlmacosx.m4: Likewise.
16007         * m4/largefile.m4: Likewise.
16008         * m4/ldexpl.m4: Likewise.
16009         * m4/link-follow.m4: Likewise.
16010         * m4/locale-ar.m4: Likewise.
16011         * m4/locale-fr.m4: Likewise.
16012         * m4/locale-ja.m4: Likewise.
16013         * m4/locale-tr.m4: Likewise.
16014         * m4/locale-zh.m4: Likewise.
16015         * m4/locale_h.m4: Likewise.
16016         * m4/lock.m4: Likewise.
16017         * m4/logl.m4: Likewise.
16018         * m4/mathfunc.m4: Likewise.
16019         * m4/minus-zero.m4: Likewise.
16020         * m4/mktime.m4: Likewise.
16021         * m4/mmap-anon.m4: Likewise.
16022         * m4/multiarch.m4: Likewise.
16023         * m4/nanosleep.m4: Likewise.
16024         * m4/nocrash.m4: Likewise.
16025         * m4/poll.m4: Likewise.
16026         * m4/printf-frexpl.m4: Likewise.
16027         * m4/printf.m4: Likewise.
16028         * m4/signbit.m4: Likewise.
16029         * m4/sinl.m4: Likewise.
16030         * m4/sqrtl.m4: Likewise.
16031         * m4/strerror_r.m4: Likewise.
16032         * m4/tanl.m4: Likewise.
16033         * m4/threadlib.m4: Likewise.
16034         * m4/ttyname_r.m4: Likewise.
16035         * m4/unlink.m4: Likewise.
16036         * m4/visibility.m4: Likewise.
16037         * m4/wcwidth.m4: Likewise.
16038         * tests/minus-zero.h: Likewise.
16039         * tests/test-alloca-opt.c: Likewise.
16040         * tests/test-copy-acl.sh: Likewise.
16041         * tests/test-copy-file.sh: Likewise.
16042         * tests/test-fdatasync.c: Likewise.
16043         * tests/test-file-has-acl.sh: Likewise.
16044         * tests/test-flock.c: Likewise.
16045         * tests/test-fsync.c: Likewise.
16046         * tests/test-localename.c: Likewise.
16047         * tests/test-malloca.c: Likewise.
16048         * tests/test-nonblocking-pipe.h: Likewise.
16049         * tests/test-nonblocking-socket.h: Likewise.
16050         * tests/test-openpty.c: Likewise.
16051         * tests/test-posix_openpt.c: Likewise.
16052         * tests/test-ptsname.c: Likewise.
16053         * tests/test-ptsname_r.c: Likewise.
16054         * tests/test-sameacls.c: Likewise.
16055         * tests/test-select.h: Likewise.
16056         * tests/test-set-mode-acl.sh: Likewise.
16057         * tests/test-snprintf-posix.h: Likewise.
16058         * tests/test-sprintf-posix.h: Likewise.
16059         * tests/test-strtod.c: Likewise.
16060         * tests/test-time.c: Likewise.
16061         * tests/test-vasnprintf-posix.c: Likewise.
16062         * tests/test-vasprintf-posix.c: Likewise.
16063         * doc/acl-resources.txt: Likewise.
16064         * doc/**/*.texi: Likewise.
16065         Reported by Max Horn <max@quendi.de>.
16067 2012-06-22  Bruno Haible  <bruno@clisp.org>
16069         grantpt: Relax requirement regarding invalid file descriptors.
16070         * lib/grantpt.c: Don't include <fcntl.h>.
16071         (grantpt): Don't verify the validity of the file descriptor.
16072         * modules/grantpt (Depends-on): Remove fcntl-h.
16073         * tests/test-grantpt.c (main): Allow grantpt to succeed for invalid
16074         file descriptors.
16075         * doc/posix-functions/grantpt.texi: Document more platforms on which
16076         grantpt succeeds for invalid file descriptors.
16077         Reported by Rich Felker <dalias@aerifal.cx>.
16079 2012-06-22  Bruno Haible  <bruno@clisp.org>
16081         fbufmode test: Don't test unportable behaviour.
16082         * tests/test-fbufmode.c (test_mode): New function, extracted from main.
16083         (main): Invoke it three times.
16084         Reported by Szabolcs Nagy <nsz@port70.net>
16085         and Rich Felker <dalias@aerifal.cx>.
16087 2012-06-21  Bruno Haible  <bruno@clisp.org>
16089         gnulib-tool: Refactor inctests variable.
16090         * gnulib-tool: Normalize inctests to 'true' or 'false', not ''.
16091         (func_modules_transitive_closure,
16092         func_modules_transitive_closure_separately,
16093         func_import, func_create_testdir): Update.
16095         gnulib-tool: --create-[mega]testdir, --[mega]test implies --with-tests.
16096         * gnulib-tool: Accept option --without-tests.
16097         (func_usage): Document --without-tests option. Rearrange.
16098         (inctests): Normalize according to the mode.
16099         * NEWS: Mention the change.
16100         Suggested by Simon Josefsson.
16102 2012-06-21  Bruce Korb  <bkorb@gnu.org>
16104         parse-duration test: Avoid spurious output.
16105         * tests/test-parse-duration.sh: Reindent with leading tabs.
16107 2012-06-21  Jim Meyering  <meyering@redhat.com>
16109         maint: disable the strncpy prohibition
16110         * cfg.mk: Do not prohibit strncpy here.
16112 2012-06-21  Bruno Haible  <bruno@clisp.org>
16114         nonblocking: Avoid compilation error on mingw64.
16115         * m4/stdio_h.m4 (gl_STDIO_H): Invoke gl_MODULE_INDICATOR for scanf,
16116         fscanf.
16117         * modules/vscanf (configure.ac): Invoke gl_MODULE_INDICATOR.
16118         * modules/vfscanf (configure.ac): Likewise.
16119         * lib/stdio-read.c (scanf, fscanf, vscanf, vfscanf): Enable function
16120         definition only if stdio.h has prepared it.
16121         Reported by Daniel P. Berrange <berrange@redhat.com>.
16123 2012-06-20  Bernd Jendrissek  <bernd.jendrissek@gmail.com>  (tiny change)
16125         gnulib-tool: Use readlink if it is available.
16126         * gnulib-tool (func_readlink): Choose function more appropriately.
16128 2012-06-21  Paul Eggert  <eggert@cs.ucla.edu>
16130         posixtm-tests: port to buggy compiler
16131         Problem reported by Simon Josefsson in
16132         <http://lists.gnu.org/archive/html/bug-gnulib/2012-06/msg00246.html>.
16133         * modules/posixtm-tests (Depends-on): Add stdint.
16134         * tests/test-posixtm.c (struct posixtm_test.t_expected):
16135         Now of type int_least64_t, not int64_t, both because that's
16136         what INT64_C returns and because int_least64_t works even
16137         on 72-bit hosts.
16138         (T): Use INT64_C on constants outside the traditional int range,
16139         to work around compiler bug noted by Simon.
16141         mktime: fix integer overflow in 'configure'-time test
16142         * m4/mktime.m4 (gl_FUNC_MKTIME): Do not rely on undefined behavior
16143         after integer overflow.  Problem reported by Rich Felker in
16144         <http://lists.gnu.org/archive/html/bug-gnulib/2012-06/msg00257.html>.
16145         Also, don't look for further instances of a bug if we've already
16146         found one instance; this helps 'configure' run faster.
16148 2012-06-20  John Darrington  <john@darrington.wattle.id.au>  (tiny change)
16150         tmpfile, clean-temp: Fix invocation of GetVersionEx.
16151         * lib/tmpfile.c (supports_delete_on_close): Initialize parameter for
16152         GetVersionEx correctly.
16153         * lib/clean-temp.c (supports_delete_on_close): Likewise.
16155 2012-06-20  Bruno Haible  <bruno@clisp.org>
16157         fdopen: Allow implementations that don't reject invalid fd arguments.
16158         * m4/fdopen.m4 (gl_FUNC_FDOPEN): Let the test pass if fdopen(-1,...)
16159         succeeds.
16160         Reported by Rich Felker <dalias@aerifal.cx>.
16162 2012-06-20  Simon Josefsson  <simon@josefsson.org>
16164         * modules/parse-duration-tests (test_parse_duration_LDADD): Don't
16165         bring in LIBINTL.
16167 2012-06-20  Paul Eggert  <eggert@cs.ucla.edu>
16169         init.sh: do not rely on autoupated PWD
16170         This addresses symptoms of the problem reported by Nelson H.F. Beebe in
16171         <http://lists.gnu.org/archive/html/bug-gzip/2012-06/msg00008.html>.
16172         Although Nelson's bug was not necessarily fixed by this patch,
16173         it seems wise to make the change for safety.
16174         * tests/init.sh (path_prepend_): Do not rely on PWD updating
16175         automagically after 'cd'; this is not reliable on older shells.
16176         (setup_): Fail if we cannot cd to temporary directory.
16178 2012-06-19  Bruno Haible  <bruno@clisp.org>
16180         stat, fstat: Avoid warnings on mingw64.
16181         * lib/stat.c (stat) [_GL_WINDOWS_64_BIT_ST_SIZE]: Undefine before
16182         redefining.
16183         * lib/fstat.c (stat, fstat) [_GL_WINDOWS_64_BIT_ST_SIZE]: Likewise.
16184         Reported by Daniel P. Berrange <berrange@redhat.com>.
16186 2012-06-19  Bruno Haible  <bruno@clisp.org>
16188         stdioext: Add support for musl libc.
16190         * m4/fbufmode.m4 (gl_FUNC_FBUFMODE): Test whether __fbufsize exists.
16191         * lib/fbufmode.c (fbufmode): Add conditional code for musl.
16193         * m4/fseterr.m4: New file.
16194         * lib/fseterr.h (fseterr): Define as an alias of __fseterr if that
16195         function exists.
16196         * modules/fseterr (Files): Add m4/fseterr.m4.
16197         (configure.ac): Invoke gl_FUNC_FSETERR. Compile fseterr.c if
16198         __fseterr does not exist.
16199         (Makefile.am): Remove fseterr.c from lib_SOURCES.
16201         * lib/freadable.h: Update comment.
16203         * lib/fwritable.h: Update comment.
16205         * lib/freading.h: Update comment.
16207         * lib/fwriting.h: Update comment.
16209         * m4/freadahead.m4: New file.
16210         * lib/freadahead.h (freadahead): Define as an alias of __freadahead if
16211         that function exists.
16212         * modules/freadahead (Files): Add m4/freadahead.m4.
16213         (configure.ac): Invoke gl_FUNC_FREADAHEAD. Compile freadahead.c if
16214         __freadahead does not exist.
16215         (Makefile.am): Remove freadahead.c from lib_SOURCES.
16217         * m4/freadptr.m4: New file.
16218         * lib/freadptr.h (freadptr): Define as an alias of __freadptr if that
16219         function exists.
16220         * modules/freadptr (Files): Add m4/freadptr.m4.
16221         (configure.ac): Invoke gl_FUNC_FREADPTR. Compile freadptr.c if
16222         __freadptr does not exist.
16223         (Makefile.am): Remove freadptr.c from lib_SOURCES.
16225         * m4/freadseek.m4: New file.
16226         * lib/freadseek.c (freadptrinc): Use __freadptrinc if that function
16227         exists.
16228         * modules/freadseek (Files): Add m4/freadseek.m4.
16229         (configure.ac): Invoke gl_FUNC_FREADSEEK.
16231         * lib/fpurge.c (fpurge): Update comment.
16233         Reported by and with help from Rich Felker <dalias@aerifal.cx>.
16235 2012-06-19  Bruno Haible  <bruno@clisp.org>
16237         *printf-posix: Put more info into config.log.
16238         * m4/printf.m4 (gl_PRINTF_ENOMEM): Emit conftest's error output and
16239         exit code into config.log.
16241 2012-06-19  Bruno Haible  <bruno@clisp.org>
16243         getopt-gnu: Fix exit code overflow in autoconf test.
16244         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Squash exit code values,
16245         to keep them below < 128.
16247 2012-06-17  Jim Meyering  <meyering@redhat.com>
16249         maint.mk: fix typo in code to derive GPG key at release time
16250         * top/maint.mk (gpg_key_ID): Fix typo: $3 -> $$3
16252 2012-06-17  Paul Eggert  <eggert@cs.ucla.edu>
16254         regex: avoid warning when pointers are not long
16255         * lib/regcomp.c (parse_dup_op, mark_opt_subexp): Cast between void *
16256         and uintptr_t, not long, for portability to hosts where pointers and
16257         long have different sizes.  Issue noted by Daniel P. Berrange in
16258         <http://lists.gnu.org/archive/html/bug-gnulib/2012-06/msg00122.html>
16259         and fix suggested by Bruno Haible in
16260         <http://lists.gnu.org/archive/html/bug-gnulib/2012-06/msg00128.html>.
16262 2012-06-17  Bruno Haible  <bruno@clisp.org>
16264         dummy: Relicense into the public domain.
16265         * modules/dummy (License): Set to "public domain".
16266         Suggested by Reuben Thomas.
16268 2012-06-12  Akim Demaille  <akim@lrde.epita.fr>
16270         announce-gen: VPATH issues
16271         * build-aux/announce-gen (--srcdir): New option, used to trim the
16272         $srcdir part of the path from $builddir to NEWS.
16273         * top/maint.mk (announcement): Adjust.
16275 2012-06-12  Akim Demaille  <akim@lrde.epita.fr>
16277         gnu-web-doc-update: VPATH builds
16278         * build-aux/gnu-web-doc-update (--builddir): New option.
16279         Revamp the handling of options.
16280         Prefer $(...) to `...`.
16281         Don't pass --tmpdir=. to mktemp, it is useless given that we specify
16282         the template, and it is GNU mktemp specific.
16283         Prefer set -e to long series of &&.
16284         Restore the initial git branch, not "master".
16285         Properly initialize submodules (don't rely only on bootstrap).
16286         Do not reconfigure blindly, use config.status.
16287         * top/README-release: Update instructions for gnu-web-doc-update.
16289 2012-06-11  Jim Meyering  <meyering@redhat.com>
16291         maint.mk: revert most of the previous change re "all these"
16292         * top/maint.mk (prohibit_undesirable_word_seq_RE_): Remove that pair.
16293         For rationale, see the discussion at
16294         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/30912
16296 2012-06-10  Karl Berry  <karl@gnu.org>
16298         * build-aux/gnupload: with --dry-run, do not ask for gpg pw.
16300         * build-aux/gnupload: implement --replace, ftp-upload protocol v1.2.
16302 2012-06-10  Bruce Korb  <bkorb@gnu.org>
16304         parse-duration: Relicense under LGPLv2+.
16305         * modules/parse-duration (License): Change to LGPLv2+.
16307 2012-06-10  Jim Meyering  <meyering@redhat.com>
16309         maint.mk: prohibit common grammar error: "all these"
16310         * top/maint.mk (prohibit_undesirable_word_seq_RE_): Add "all these" to
16311         the list of prohibited word sequences.  It should be "all of these".
16312         * lib/tempname.c (__gen_tempname): Fix one of them.
16314 2012-06-07  Akim Demaille  <akim@lrde.epita.fr>
16316         do-release-commit-and-tag: support VPATH builds
16317         * build-aux/do-release-commit-and-tag: Prefer $(...) to `...`.
16318         (noteworthy): Defined earlier to factor its value.
16319         (noteworthy_stub): New.
16320         Use it to factor.
16321         (help_version): Split into...
16322         (help, version): these.
16323         Adjust the option processing part.
16324         Support "--option=value" in addition to "--option value".
16325         (builddir): New.
16326         (--builddir): New option.
16327         * top/README-release: Document this.
16328         Reword slightly so that the reader cannot understand that he
16329         has to do these steps before calling do-release-commit-and-tag.
16331 2012-06-07  Akim Demaille  <akim@lrde.epita.fr>
16333         readme-release: also require announce-gen and maintainer-makefile
16334         * modules/readme-release (Depends-on): here.
16335         * modules/announce-gen, modules/do-release-commit-and-tag,
16336         modules/gnu-web-doc-update, modules/maintainer-makefile
16337         (Description): Point to readme-release.
16339 2012-06-07  Akim Demaille  <akim@lrde.epita.fr>
16341         maint.mk: fix VPATH issues.
16342         * top/maint.mk (news-check): GNU Make understand $< very well.
16343         (release-prep): NEWS is in $(srcdir).
16345 2012-06-05  Akim Demaille  <akim@lrde.epita.fr>
16347         readme-release: require the promoted modules.
16348         * modules/readme-release (Depends-on): Add
16349         do-release-commit-and-tag, gnupload, and gnu-web-doc-update, used
16350         in this text.
16352 2012-05-21  Paolo Bonzini  <bonzini@gnu.org>
16353             Bruno Haible  <bruno@clisp.org>
16355         error, strerror-override: Support mingw64 from Fedora 17.
16356         * lib/errno.in.h (GNULIB_defined_ESTREAMS): Use a different indicator
16357         for ETXTBSY, ENODATA, ENOSR, ENOSTR, ETIME, EOTHER, compared to
16358         EINPROGRESS.
16359         * lib/strerror-override.h (strerror_override): Test it.
16360         * lib/strerror-override.c (strerror_override): Likewise.
16361         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Test also ETXTBSY.
16363 2012-05-21  Paolo Bonzini  <bonzini@gnu.org>
16364             Bruno Haible  <bruno@clisp.org>
16366         error, strerror-override: Support mingw64 from Fedora 17.
16367         * lib/errno.in.h (GNULIB_defined_ENOTRECOVERABLE): Use a different
16368         indicator for ENOTRECOVERABLE, compared to EOWNERDEAD.
16369         * lib/strerror-override.h (strerror_override): Test it.
16370         * lib/strerror-override.c (strerror_override): Likewise.
16372 2012-06-03  Bruno Haible  <bruno@clisp.org>
16374         error, strerror-override: Support new errno values from POSIX:2008.
16375         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Test also EOWNERDEAD and
16376         ENOTRECOVERABLE.
16377         * lib/errno.in.h (EOWNERDEAD, ENOTRECOVERABLE): Define on all
16378         platforms.
16379         * lib/strerror-override.c (strerror_override): Conditionalize the
16380         EOWNERDEAD, ENOTRECOVERABLE handling on GNULIB_defined_EOWNERDEAD.
16381         * lib/strerror-override.h (strerror_override): Declare also if
16382         GNULIB_defined_EOWNERDEAD is defined.
16383         * tests/test-errno.c (e130, e131): New variables.
16384         * doc/posix-headers/errno.texi: Mention the status for EOWNERDEAD,
16385         ENOTRECOVERABLE.
16386         Reported by Paolo Bonzini.
16388 2012-05-31  Jim Meyering  <meyering@redhat.com>
16390         savewd: add missing dependency on sys_wait module
16391         * modules/savewd (Depends-on): Add sys_wait, needed at least
16392         for MSVC.  Report and suggested change by Michael Goffioul.
16394 2012-05-29  Paul Eggert  <eggert@cs.ucla.edu>
16396         system-quote-tests: port to CentOS 5
16397         Problem reported by Tom G. Christensen in
16398         <http://lists.gnu.org/archive/html/bug-gnulib/2012-05/msg00255.html>.
16399         * tests/test-system-quote-child.c (fclose, fprintf): Undef.
16401 2012-05-29  Jim Meyering  <meyering@redhat.com>
16403         maint: fix typos in comments and ChangeLog
16404         Culprits identified and fixed mostly automatically using these commands:
16405         git ls-files | misspellings -f - |grep -v '^ERROR:' |perl -pe \
16406         's/^(.*?)\[(\d+)\]: (\w+) -> "(.*?)"$/sed -i '\''${2}s!$3!$4!'\'' $1/'
16407         using http://github.com/lyda/misspell-check
16408         * ChangeLog: Fix typos.
16409         * doc/solaris-versions: Likewise.
16410         * lib/regexec.c (re_search_stub): Likewise.
16411         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Likewise.
16413 2012-05-27  Paul Eggert  <eggert@cs.ucla.edu>
16415         manywarnings: remove duplicate -Wmultichar entry
16416         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Remove duplicate
16417         entry for -Wmultichar.  -Wno-multichar is in the GCC 4.7.0 manual,
16418         so keep the entry marked as documented.
16420 2012-05-27  Karl Berry  <karl@gnu.org>
16422         * config/srclist.txt (mktime.c): remove last libc sync,
16423         perhaps just temporarily.
16425 2012-05-26  Paul Eggert  <eggert@cs.ucla.edu>
16427         regex: don't assume uint64_t or uint32_t
16428         * lib/regcomp.c (init_word_char): Don't assume that the types
16429         uint64_t and uint32_t exist.  The C standard doesn't guarantee
16430         them, and on some 32-bit compilers there is no uint64_t.
16431         Problem reported by Gianluigi Tiesi in
16432         <http://lists.gnu.org/archive/html/bug-gnulib/2012-03/msg00154.html>.
16434 2012-05-25  Jim Meyering  <meyering@redhat.com>
16436         maint.mk: add strncpy-prohibiting syntax-check rule
16437         * top/maint.mk (sc_prohibit_strncpy): New rule, from coreutils.
16439 2012-05-24  Jim Meyering  <meyering@redhat.com>
16441         maint.mk: compute $(gpg_key_ID) more portably
16442         * top/maint.mk (gpg_key_ID): Use awk in place of sed '{...;...;}'.
16443         That use of sed is not portable to some fringe systems.
16444         Reported by Paul Eggert in
16445         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/30793/focus=30802
16447 2012-05-23  Paul Eggert  <eggert@cs.ucla.edu>
16449         mktime: sync from glibc
16450         * config/srclist.txt: Uncomment mktime.c.
16451         * lib/mktime.c: Sync from glibc master.  This incorporates 3 changes.
16452         First, indent with tabs, since glibc uses tabs and doesn't want to
16453         change and we'd rather be identical to glibc.  Also, two small
16454         coding changes:
16455         (isdst_differ): Use &&, not &, as && is the usual style.
16456         (__mktime_internal): Rename local var from abs_diff to approx_abs_diff
16457         for clarity.
16459 2012-05-23  Akim Demaille  <akim@lrde.epita.fr>
16461         announce-gen: du -h is more portable than du --human
16462         * build-aux/announce-gen (sizes): Invoke du with -h instead
16463         of --human.  Accept leading white space in its output.
16465 2012-05-23  Akim Demaille  <akim@lrde.epita.fr>
16467         announce-gen: Improve diagnostics.
16468         * build-aux/announce-gen: When parsing command line options,
16469         prefer "announce-gen: option --release-type requires an argument"
16470         to "Option release-type requires an argument".
16472 2012-05-23  Akim Demaille  <akim@lrde.epita.fr>
16474         maint.mk: gpg_key_ID: use sed more portably
16475         * top/maint.mk (gpg_key_ID): End sed block with a semicolon before
16476         the closing brace.
16477         (refresh-po): Fuse two sed invocations into one.
16479 2012-05-15  Akim Demaille  <akim@lrde.epita.fr>
16481         gitlog-to-changelog: support the log message format used in Bison.
16482         * build-aux/gitlog-to-changelog: Support --strip-tab and
16483         --strip-cherry-picked.
16485 2012-05-21  Paolo Bonzini  <bonzini@gnu.org>
16487         poll/select: prevent busy-waiting.  SwitchToThread() only gives away
16488         the rest of the current time slice to another thread in the current
16489         process. So if the thread that feeds the file decscriptor we're
16490         polling is not in the current process, we get busy-waiting.
16491         * lib/poll.c: Use SleepEx(1, TRUE) instead of SwitchToThread().
16492         Patch from Theodore Leblond.
16493         * lib/select.c: Split polling out of the loop that sets the output
16494         fd_sets.  Check for zero result and loop if the wait timeout is
16495         infinite.
16497 2012-05-21  Simon Josefsson  <simon@josefsson.org>
16499         select: Fix build error on IRIX 6.5.
16500         * lib/select.c: Include stddef.h for NULL.
16502 2012-05-21  Simon Josefsson  <simon@josefsson.org>
16504         gc: fix libgcrypt detection on older machines.
16505         * m4/gc.m4: Reject libgcrypt earlier than 1.4.4.  Collapse
16506         copyright years because the file has been distributed every year
16507         since it was created.
16509 2012-05-18  Paul Eggert  <eggert@cs.ucla.edu>
16511         crypto: fix bug in large buffer handling
16512         Problem reported by Serge Belyshev for glibc in
16513         <http://sourceware.org/bugzilla/show_bug.cgi?id=14090> and for gnulib in
16514         <http://lists.gnu.org/archive/html/bug-gnulib/2012-05/msg00226.html>.
16515         * lib/md4.c (md4_process_block):
16516         * lib/md5.c (md5_process_block):
16517         * lib/sha1.c (sha1_process_block):
16518         * lib/sha256.c (sha256_process_block):
16519         Don't assume the buffer length is less than 2**32.
16520         * lib/sha512.c (sha512_process_block): Likewise.
16521         Here, the bug is present only in the rare case where the host does
16522         not support uint64_t or where size_t is wider than 64 bits.
16523         Use u64size to work around the problems.
16524         * lib/u64.h (u64size): New macro.
16526 2012-05-15  Pádraig Brady  <P@draigBrady.com>
16528         fsusage: fix block size returned on older Linux 2.6
16530         * lib/fsusage.c: Fall back to (struct statfs).f_frsize
16531         which is available since Linux 2.6.
16532         * m4/fsusage.m4 (STAT_STATFS2_FRSIZE): Always define
16533         when the member is available so it can be used as a fallback.
16534         * doc/posix-functions/statvfs.texi: Mention the hang issue
16535         on Linux < 2.6.36.
16537 2012-05-14  Paul Eggert  <eggert@cs.ucla.edu>
16539         bootstrap: suppress stderr chatter
16540         * build-aux/bootstrap (insert_sorted_if_absent, main program):
16541         Omit unnecessary chatter to stderr.  The main program chatter
16542         was there only inadvertantly.
16544         bootstrap: .gitignore files created by autopoint, libtool
16545         I ran into this problem when bootstrapping the latest diffutils.
16546         After './bootstrap', 'git status' reported lots of untracked files
16547         m4/codeset.m4, m4/gettext.m4, etc.  These files were created by
16548         autopoint and do not need to be version-controlled.
16549         * build-aux/bootstrap: Put into .gitignore the files that
16550         autopoint and libtool create, by keeping track of files that exist
16551         after but not before these programs are run.
16552         (version_controlled_file): Move up.  2nd arg is now full file
16553         name, not base name; this is more convenient.  Put CVS at the end,
16554         as it's now somewhat deprecated.
16556 2012-05-14  Jim Meyering  <meyering@redhat.com>
16558         ignore-value.h: remove unused _GL_ATTRIBUTE_DEPRECATED definition
16559         * lib/ignore-value.h (_GL_ATTRIBUTE_DEPRECATED): Remove now-unused
16560         definition.  Reported by Bruno Haible.
16562 2012-05-13  Bruno Haible  <bruno@clisp.org>
16563             Paul Eggert  <eggert@cs.ucla.edu>
16565         binary-io: Define set_binary_mode function.
16566         * lib/binary-io.h (set_binary_mode): New function.
16567         (SET_BINARY): Define in terms of set_binary_mode.
16568         * modules/binary-io (configure.ac): Require AC_C_INLINE.
16569         * tests/test-binary-io.c (main): Accept an argument, and test either
16570         set_binary_mode or SET_BINARY depending on the argument.
16571         * tests/test-binary-io.sh: Invoke test-binary-io twice, with an
16572         argument. Clean up also t-bin-out0.tmp.
16574 2012-05-13  Stefano Lattarini  <stefano.lattarini@gmail.com>
16576         bootstrap: take advantage of POSIX shell features
16578         The 'bootstrap' script offered by Gnulib script already uses POSIX
16579         shell features (like $((...)) arithmetic expansions) that are not
16580         supported by legacy Bourne shells like Solaris 10 /bin/sh.  This
16581         means that bootstrap must already be run using a proper POSIX shell,
16582         which will thus provide more features, like ${var#pattern} parameter
16583         expansion or inversion of a command exit status with '!'.  We can
16584         thus use these features to improve the clarity and the performances
16585         of the bootstrap script.
16587         Suggested by Eric Blake.
16589         * build-aux/bootstrap: Prefer xpg4 parameter expansions over use
16590         of sed/expr plus command substitutions, to save some forks.  While
16591         we are at it, prefer the POSIX $(...) form of command substitution,
16592         rather than the legacy form `...` (since the former is visually
16593         clearer and interacts better with quoting), and prefer the idiom:
16594           "if ! CMD; then ACTION ..."
16595         over the idiom:
16596           "if CMD; then :; else ACTION ..."
16597         which was required by legacy Bourne shells not supporting '!'.
16599 2012-05-12  Bruno Haible  <bruno@clisp.org>
16601         system-quote: Add more comments.
16602         * lib/system-quote.h: Add more comments about wilcards and limitations.
16603         Suggested by Eli Zaretskii <eliz@gnu.org>.
16605         sh-quote, system-quote: Add comments about wildcards.
16606         * lib/sh-quote.h: Clarify what happens with wildcard characters.
16607         * lib/system-quote.h: Likewise.
16608         Reported by Eli Zaretskii <eliz@gnu.org>.
16610 2012-05-11  Paul Eggert  <eggert@cs.ucla.edu>
16612         fsusage: check for GNU/Linux statvfs problem dynamically
16613         * lib/fsusage.c [STAT_STATVFS && __linux__ && (__GLIBC__||__UCLIBC__)]:
16614         Define STAT_STATFS2_BSIZE too, since in this case the code now
16615         checks dynamically whether statvfs is reliable, falling back on
16616         Linux-style statfs otherwise.
16617         (statvfs_works): New function, for dynamically testing statvfs.
16618         (get_fs_usage) [STAT_STATVFS]: Use it.
16619         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Remove static check for
16620         statvfs on GNU/Linux hosts, since it's now done dynamically.
16622 2012-05-10  Bruno Haible  <bruno@clisp.org>
16624         system-quote, execute, spawn-pipe: Escape '?' on Windows.
16625         * lib/system-quote.c (SHELL_SPECIAL_CHARS, CMD_SPECIAL_CHARS): Add the
16626         '?' character.
16627         * lib/w32spawn.h (SHELL_SPECIAL_CHARS): Likewise.
16628         * tests/test-system-quote-main.c (check_all): Check also strings like
16629         "??????????".
16630         Reported by Eli Zaretskii <eliz@gnu.org>.
16632 2012-05-10  Paul Eggert  <eggert@cs.ucla.edu>
16634         _Noreturn: port config.h to gcc -Wundef
16635         * m4/gnulib-common.m4 (gl_COMMON_BODY): Check that __STDC_VERSION__ is
16636         defined before using it, for gcc -Wundef.  Reported by Akim Demaille in
16637         <http://lists.gnu.org/archive/html/bug-gnulib/2012-05/msg00147.html>.
16639 2012-05-10  Bruno Haible  <bruno@clisp.org>
16641         system-quote: Refactor.
16642         * lib/system-quote.h (system_quote_copy): Fix comment.
16643         * lib/system-quote.c (windows_createprocess_quote, windows_cmd_quote):
16644         New functions, extracted from system_quote_copy.
16645         (system_quote_length, system_quote_copy): Use these functions.
16646         Reported by Paul Eggert.
16648 2012-05-08  Bruno Haible  <bruno@clisp.org>
16650         execute, spawn-pipe: Escape '*' characters in arguments on Windows.
16651         * lib/w32spawn.h (SHELL_SPECIAL_CHARS): Add the '*' character.
16653 2012-05-08  Bruno Haible  <bruno@clisp.org>
16655         Tests for module 'system-quote'.
16656         * modules/system-quote-tests: New file.
16657         * tests/test-system-quote.sh: New file.
16658         * tests/test-system-quote-main.c: New file.
16659         * tests/test-system-quote-child.c: New file.
16661         New module 'system-quote'.
16662         * lib/system-quote.h: New file.
16663         * lib/system-quote.c: New file.
16664         * modules/system-quote: New file.
16666 2012-05-08  Bruno Haible  <bruno@clisp.org>
16668         sh-quote: Make C++ safe and allow multiple inclusion.
16669         * lib/sh-quote.h: Add double-inclusion guard. For C++, wrap function
16670         declarations in extern "C".
16672 2012-05-08  Bruno Haible  <bruno@clisp.org>
16674         sh-quote tests: Make tests stricter.
16675         * tests/test-sh-quote.c (check_one): Check the return value of
16676         shell_quote_copy.
16677         (main): Check a string with a CR character. Check a string that
16678         contains UCHAR_MAX.
16680 2012-05-08  Akim Demaille  <akim@lrde.epita.fr>
16682         warnings.m4: provide a means to specify the program to compile.
16683         * m4/warnings.m4 (gl_COMPILER_OPTION_IF): New, extracted from...
16684         (gl_WARN_ADD): here.
16685         Use gl_AS_VAR_APPEND.
16686         Support an argument to specify the program to compile.
16687         (gl_WARN_ADD): Accept an argument to specify the program to compile.
16688         AC_SUBST the WARN_CFLAGS when they are used.
16689         * modules/warnings (configure.ac): Don't AC_SUBST WARN_CFLAGS,
16690         leave this to gl_WARN_ADD.
16692 2012-05-08  Eric Blake  <eblake@redhat.com>
16694         doc: recommendations on gettext version
16695         * doc/gnulib-tool.texi (gettextize and autopoint): Document the
16696         choice between versions.
16697         * DEPENDENCIES (gettext): Cover both approaches.
16699 2012-05-08  Jim Meyering  <meyering@redhat.com>
16701         init.sh: explain why EXEEXT support uses aliases rather than functions
16702         * tests/init.sh: Add a comment.
16704         init.sh: don't let bash aliases interfere with tests
16705         * tests/init.sh: Undefine any pre-defined aliases if the selected shell
16706         is bash.  This avoids problems for those who alias standard commands to
16707         non-conforming uses, like those reported in http://bugs.gnu.org/11256.
16708         Suggested by Tim Mooney <Tim.Mooney@ndsu.edu>.
16710 2012-05-07  Paul Eggert  <eggert@cs.ucla.edu>
16712         stdint: be more consistent with glibc, SunOS libc
16713         * lib/stdint.in.h (gl_int_fast8_t, gl_uint_fast8_t)
16714         (gl_int_fast16_t, gl_uint_fast16_t)
16715         (gl_int_fast32_t, gl_uint_fast32_t)
16716         (INT_FAST8_MIN, INT_FAST8_MAX, UINT_FAST8_MAX)
16717         (INT_FAST16_MIN, INT_FAST16_MAX, UINT_FAST16_MAX)
16718         (INT_FAST32_MIN, INT_FAST32_MAX, UINT_FAST32_MAX):
16719         Be consistent with glibc by default, and with SunOS 5.10 and later
16720         if __sun is defined.  This lessens the likelihood of clashes if
16721         code compiled for older hosts is combined with code compiled for
16722         newer ones.  Problem reported by Niels Möller in
16723         <http://lists.gnu.org/archive/html/bug-gnulib/2012-05/msg00074.html>.
16725 2012-05-07  Eric Blake  <eblake@redhat.com>
16727         isatty: relax license to LGPLv2+
16728         * modules/isatty (License): Relax license.
16730 2012-05-06  Paul Eggert  <eggert@cs.ucla.edu>
16732         stat-size: comment fix
16733         * lib/stat-size.h: Remove obsolete comment about indenting.
16735 2012-05-06  Bruno Haible  <bruno@clisp.org>
16737         Tests for module 'sh-quote'.
16738         * modules/sh-quote-tests: New file.
16739         * tests/test-sh-quote.c: New file.
16741 2012-05-06  Bruno Haible  <bruno@clisp.org>
16743         sh-quote: Improve shell_quote_argv's signature.
16744         * lib/sh-quote.h (shell_quote_argv): Make argument array a 'const *'.
16745         * lib/sh-quote.c (shell_quote_argv): Likewise.
16747 2012-05-06  Paul Eggert  <eggert@cs.ucla.edu>
16749         stdint: document issues with int_fast8_t etc.
16750         * doc/posix-headers/stdint.texi (stdint.h): Say that other
16751         stdint.h substitutes may define these types differently.  See
16752         <http://lists.gnu.org/archive/html/bug-gnulib/2012-05/msg00071.html>.
16754 2012-05-05  Bruno Haible  <bruno@clisp.org>
16756         nanosleep: Avoid guessing wrong when cross-compiling to Linux.
16757         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Require AC_CANONICAL_HOST. When
16758         cross-compiling, set gl_cv_func_nanosleep to either 'guessing no'
16759         or 'guessing no (mishandles large arguments)'.
16761 2012-05-05  Bruno Haible  <bruno@clisp.org>
16763         link-follow: Avoid guessing wrong when cross-compiling to glibc/Linux.
16764         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Require
16765         AC_CANONICAL_HOST. When cross-compiling to a glibc/Linux platform,
16766         set gl_cv_func_link_follows_symlink to "guessing no".
16768 2012-05-05  Bruno Haible  <bruno@clisp.org>
16770         tzset: Avoid guessing wrong when cross-compiling to glibc systems.
16771         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Require AC_CANONICAL_HOST. When
16772         cross-compiling to a glibc platform, set gl_cv_func_tzset_clobber to
16773         "guessing no".
16774         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Update.
16776 2012-05-05  Bruno Haible  <bruno@clisp.org>
16778         d-ino: Avoid guessing "no" when cross-compiling to glibc/Linux systems.
16779         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Require
16780         AC_CANONICAL_HOST. When cross-compiling to a glibc/Linux platform,
16781         set gl_cv_struct_dirent_d_ino to "guessing yes".
16783 2012-05-05  Bruno Haible  <bruno@clisp.org>
16785         fseeko-tests, ftello-tests: Avoid "guessing no" when cross-compiling.
16786         * m4/ungetc.m4 (gl_FUNC_UNGETC_WORKS): Require AC_CANONICAL_HOST. When
16787         cross-compiling to a glibc platform, set gl_cv_func_ungetc_works to
16788         "guessing yes".
16790 2012-05-05  Bruno Haible  <bruno@clisp.org>
16792         signbit: Avoid "guessing no" when cross-compiling to glibc systems.
16793         * m4/signbit.m4 (gl_SIGNBIT): Require AC_CANONICAL_HOST. When cross-
16794         compiling to a glibc system, set gl_cv_func_signbit and
16795         gl_cv_func_signbit_gcc to "guessing yes".
16797 2012-05-05  Bruno Haible  <bruno@clisp.org>
16799         strerror: Avoid "guessing no" when cross-compiling to glibc systems.
16800         * m4/strerror.m4 (gl_FUNC_STRERROR): Require AC_CANONICAL_HOST. When
16801         cross-compiling to a glibc platform, set gl_cv_func_working_strerror
16802         to "guessing yes".
16803         (gl_FUNC_STRERROR_0): Require AC_CANONICAL_HOST. When cross-compiling
16804         to a glibc platform, set gl_cv_func_strerror_0_works to "guessing yes".
16806 2012-05-05  Bruno Haible  <bruno@clisp.org>
16808         canonicalize[-lgpl]: Avoid "guessing no" when cross-compiling to glibc.
16809         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Require
16810         AC_CANONICAL_HOST. When cross-compiling to a glibc system, set
16811         gl_cv_func_realpath_works to "guessing yes".
16813 2012-05-05  Bruno Haible  <bruno@clisp.org>
16815         gettimeofday: Avoid bad guess when cross-compiling to glibc systems.
16816         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY_CLOBBER): Require
16817         AC_CANONICAL_HOST. When cross-compiling, guess no on glibc platforms.
16819 2012-05-04  Bruno Haible  <bruno@clisp.org>
16821         Tweak last commit.
16822         * m4/off_t.m4 (gl_TYPE_OFF_T): Tweak comments.
16823         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
16825 2012-05-04  Paul Eggert  <eggert@cs.ucla.edu>
16827         unistd_h: make it easier to avoid sys_types_h
16828         This is useful for Emacs, which has its own method of porting to
16829         Windows, and which therefore does not need the sys_types_h module.
16830         * m4/off_t.m4: New file, defining gl_TYPE_OFF_T, which contains
16831         code moved here from gl_SYS_TYPES_H.
16832         * m4/sys_types_h.m4 (gl_SYS_TYPES_H): Require it instead of
16833         using the code directly.
16834         * m4/unistd_h.m4 (gl_UNISTD_H): Require gl_TYPE_OFF_T, not
16835         gl_SYS_TYPES_H.
16836         * modules/sys_types (Files):
16837         * modules/unistd (Files): Add m4/off_t.m4.
16839 2012-05-03  Bruno Haible  <bruno@clisp.org>
16841         lstat: Avoid "guessing no" when cross-compiling to glibc systems.
16842         * m4/lstat.m4 (gl_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): When cross-
16843         compiling, set gl_cv_func_lstat_dereferences_slashed_symlink to
16844         "guessing yes" or "guessing no".
16845         (gl_FUNC_LSTAT): Update.
16846         * m4/fstatat.m4 (gl_FUNC_FSTATAT): Update.
16847         * m4/openat.m4 (gl_FUNC_OPENAT): Update.
16848         * m4/unlinkat.m4 (gl_FUNC_UNLINKAT): Update.
16850 2012-05-03  Bruno Haible  <bruno@clisp.org>
16852         *alloc-gnu, eealloc: Avoid "guessing no" when cross-compiling to glibc.
16853         * m4/malloc.m4 (_AC_FUNC_MALLOC_IF): Override in autoconf < 2.70.
16854         * m4/realloc.m4 (_AC_FUNC_REALLOC_IF): Override in autoconf < 2.70.
16855         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Require AC_CANONICAL_HOST. When
16856         cross-compiling, choose the first alternative on glibc systems.
16857         * modules/eealloc (Files): Add m4/malloc.m4, m4/realloc.m4.
16859 2012-05-03  Bruno Haible  <bruno@clisp.org>
16861         getgroups: Avoid "guessing no" when cross-compiling to glibc systems.
16862         * m4/getgroups.m4 (AC_FUNC_GETGROUPS): Override in autoconf < 2.70.
16863         (gl_FUNC_GETGROUPS): Adapt to change of ac_cv_func_getgroups_works.
16865 2012-05-03  Bruno Haible  <bruno@clisp.org>
16867         chown: Avoid "guessing no" when cross-compiling to glibc systems.
16868         * m4/chown.m4 (AC_FUNC_CHOWN): Override in autoconf < 2.70.
16870 2012-05-03  Bruno Haible  <bruno@clisp.org>
16872         Avoid "guessing no" guesses when cross-compiling to glibc systems.
16873         * m4/cbrtl.m4 (gl_FUNC_CBRTL): Require AC_CANONICAL_HOST. When cross-
16874         compiling to glibc systems, set gl_cv_func_cbrtl_ieee to "guessing yes".
16875         * m4/ceil.m4 (gl_FUNC_CEIL): Require AC_CANONICAL_HOST. When cross-
16876         compiling to glibc systems, set gl_cv_func_ceil_ieee to "guessing yes".
16877         * m4/ceilf.m4 (gl_FUNC_CEILF): Require AC_CANONICAL_HOST. When cross-
16878         compiling to glibc systems, set gl_cv_func_ceilf_ieee to "guessing yes".
16879         * m4/ceill.m4 (gl_FUNC_CEILL): Require AC_CANONICAL_HOST. When cross-
16880         compiling to glibc systems, set gl_cv_func_ceill_ieee to "guessing yes".
16881         * m4/chown.m4 (gl_FUNC_CHOWN): Require AC_CANONICAL_HOST. When cross-
16882         compiling to glibc systems, set gl_cv_func_chown_slash_works,
16883         gl_cv_func_chown_ctime_works to "guessing yes".
16884         * m4/lchown.m4 (gl_FUNC_LCHOWN): Update.
16885         * m4/exp2l.m4 (gl_FUNC_EXP2L): Require AC_CANONICAL_HOST. When cross-
16886         compiling to glibc systems, set gl_cv_func_exp2l_ieee to "guessing yes".
16887         * m4/expm1.m4 (gl_FUNC_EXPM1): Require AC_CANONICAL_HOST. When cross-
16888         compiling to glibc systems, set gl_cv_func_expm1_ieee to "guessing yes".
16889         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require AC_CANONICAL_HOST. When cross-
16890         compiling to glibc systems, set gl_cv_func_open_directory_works to
16891         "guessing yes".
16892         * m4/fstat.m4 (gl_FUNC_FSTAT): Update.
16893         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Require AC_CANONICAL_HOST. When
16894         cross-compiling to glibc systems, set gl_cv_func_fdopendir_works to
16895         "guessing yes".
16896         * m4/floor.m4 (gl_FUNC_FLOOR): Require AC_CANONICAL_HOST. When cross-
16897         compiling to glibc systems, set gl_cv_func_floor_ieee to "guessing yes".
16898         * m4/floorf.m4 (gl_FUNC_FLOORF): Require AC_CANONICAL_HOST. When cross-
16899         compiling to glibc systems, set gl_cv_func_floorf_ieee to
16900         "guessing yes".
16901         * m4/fmod.m4 (gl_FUNC_FMOD): Require AC_CANONICAL_HOST. When cross-
16902         compiling to glibc systems, set gl_cv_func_fmod_ieee to "guessing yes".
16903         * m4/fmodf.m4 (gl_FUNC_FMODF): Require AC_CANONICAL_HOST. When cross-
16904         compiling to glibc systems, set gl_cv_func_fmodf_ieee to "guessing yes".
16905         * m4/fmodl.m4 (gl_FUNC_FMODL): Require AC_CANONICAL_HOST. When cross-
16906         compiling to glibc systems, set gl_cv_func_fmodl_ieee to "guessing yes".
16907         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Require AC_CANONICAL_HOST. When
16908         cross-compiling to glibc systems, set gl_cv_func_getgroups_works to
16909         "guessing yes".
16910         * m4/hypot.m4 (gl_FUNC_HYPOT): Require AC_CANONICAL_HOST. When cross-
16911         compiling to glibc systems, set gl_cv_func_hypot_ieee to "guessing yes".
16912         * m4/hypotf.m4 (gl_FUNC_HYPOTF): Require AC_CANONICAL_HOST. When cross-
16913         compiling to glibc systems, set gl_cv_func_hypotf_ieee to
16914         "guessing yes".
16915         * m4/hypotl.m4 (gl_FUNC_HYPOTL): Require AC_CANONICAL_HOST. When cross-
16916         compiling to glibc systems, set gl_cv_func_hypotl_ieee to
16917         "guessing yes".
16918         * m4/link.m4 (gl_FUNC_LINK): Require AC_CANONICAL_HOST. When cross-
16919         compiling to glibc systems, set gl_cv_func_link_works to "guessing yes".
16920         * m4/log.m4 (gl_FUNC_LOG): Require AC_CANONICAL_HOST. When cross-
16921         compiling to glibc systems, set gl_cv_func_log_ieee to "guessing yes".
16922         * m4/logf.m4 (gl_FUNC_LOGF): Require AC_CANONICAL_HOST. When cross-
16923         compiling to glibc systems, set gl_cv_func_logf_ieee to "guessing yes".
16924         * m4/log10.m4 (gl_FUNC_LOG10): Require AC_CANONICAL_HOST. When cross-
16925         compiling to glibc systems, set gl_cv_func_log10_ieee to "guessing yes".
16926         * m4/log10f.m4 (gl_FUNC_LOG10F): Require AC_CANONICAL_HOST. When cross-
16927         compiling to glibc systems, set gl_cv_func_log10f_ieee to
16928         "guessing yes".
16929         * m4/log1p.m4 (gl_FUNC_LOG1P): Require AC_CANONICAL_HOST. When cross-
16930         compiling to glibc systems, set gl_cv_func_log1p_ieee to "guessing yes".
16931         * m4/log1pf.m4 (gl_FUNC_LOG1PF): Require AC_CANONICAL_HOST. When cross-
16932         compiling to glibc systems, set gl_cv_func_log1pf_ieee to
16933         "guessing yes".
16934         * m4/log1pl.m4 (gl_FUNC_LOG1PL): Require AC_CANONICAL_HOST. When cross-
16935         compiling to glibc systems, set gl_cv_func_log1pl_ieee to
16936         "guessing yes".
16937         * m4/log2.m4 (gl_FUNC_LOG2): Require AC_CANONICAL_HOST. When cross-
16938         compiling to glibc systems, set gl_cv_func_log2_ieee to "guessing yes".
16939         * m4/log2f.m4 (gl_FUNC_LOG2F): Require AC_CANONICAL_HOST. When cross-
16940         compiling to glibc systems, set gl_cv_func_log2f_ieee to "guessing yes".
16941         * m4/mkdir.m4 (gl_FUNC_MKDIR): Require AC_CANONICAL_HOST. When cross-
16942         compiling to glibc systems, set gl_cv_func_mkdir_trailing_slash_works,
16943         gl_cv_func_mkdir_trailing_dot_works to "guessing yes".
16944         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Require AC_CANONICAL_HOST. When cross-
16945         compiling to glibc systems, set gl_cv_func_mkfifo_works to
16946         "guessing yes".
16947         * m4/mknod.m4 (gl_FUNC_MKNOD): Require AC_CANONICAL_HOST. When cross-
16948         compiling to glibc systems, set gl_cv_func_mknod_works to
16949         "guessing yes".
16950         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Require AC_CANONICAL_HOST. When
16951         cross-compiling to glibc systems, set gl_cv_func_working_mkstemp to
16952         "guessing yes".
16953         * m4/modf.m4 (gl_FUNC_MODF): Require AC_CANONICAL_HOST. When cross-
16954         compiling to glibc systems, set gl_cv_func_modf_ieee to "guessing yes".
16955         * m4/modff.m4 (gl_FUNC_MODFF): Require AC_CANONICAL_HOST. When cross-
16956         compiling to glibc systems, set gl_cv_func_modff_ieee to "guessing yes".
16957         * m4/modfl.m4 (gl_FUNC_MODFL): Require AC_CANONICAL_HOST. When cross-
16958         compiling to glibc systems, set gl_cv_func_modfl_ieee to "guessing yes".
16959         * m4/putenv.m4 (gl_FUNC_PUTENV): Require AC_CANONICAL_HOST. When cross-
16960         compiling to glibc systems, set gl_cv_func_svid_putenv to
16961         "guessing yes".
16962         * m4/readlink.m4 (gl_FUNC_READLINK): Require AC_CANONICAL_HOST. When
16963         cross-compiling to glibc systems, set gl_cv_func_readlink_works to
16964         "guessing yes".
16965         * m4/remainder.m4 (gl_FUNC_REMAINDER): Require AC_CANONICAL_HOST. When
16966         cross-compiling to glibc systems, set gl_cv_func_remainder_ieee to
16967         "guessing yes".
16968         * m4/remainderf.m4 (gl_FUNC_REMAINDERF): Require AC_CANONICAL_HOST.
16969         When cross-compiling to glibc systems, set gl_cv_func_remainderf_ieee
16970         to "guessing yes".
16971         * m4/remainderl.m4 (gl_FUNC_REMAINDERL): Require AC_CANONICAL_HOST.
16972         When cross-compiling to glibc systems, set gl_cv_func_remainderl_ieee
16973         to "guessing yes".
16974         * m4/rmdir.m4 (gl_FUNC_RMDIR): Require AC_CANONICAL_HOST. When cross-
16975         compiling to glibc systems, set gl_cv_func_rmdir_works to
16976         "guessing yes".
16977         * m4/unlink.m4 (gl_FUNC_UNLINK): Require AC_CANONICAL_HOST. When cross-
16978         compiling to glibc systems, set gl_cv_func_unlink_honors_slashes,
16979         gl_cv_func_unlink_parent_fails to "guessing yes".
16980         * m4/remove.m4 (gl_FUNC_REMOVE): Update.
16981         * m4/rename.m4 (gl_FUNC_RENAME): Require AC_CANONICAL_HOST. When cross-
16982         compiling to glibc systems, set gl_cv_func_rename_slash_dst_works,
16983         gl_cv_func_rename_slash_src_works, gl_cv_func_rename_link_works,
16984         gl_cv_func_rename_dest_works to "guessing yes".
16985         * m4/round.m4 (gl_FUNC_ROUND): Require AC_CANONICAL_HOST. When cross-
16986         compiling to glibc systems, set gl_cv_func_round_ieee to "guessing yes".
16987         * m4/roundf.m4 (gl_FUNC_ROUNDF): Require AC_CANONICAL_HOST. When cross-
16988         compiling to glibc systems, set gl_cv_func_roundf_ieee to
16989         "guessing yes".
16990         * m4/roundl.m4 (gl_FUNC_ROUNDL): Require AC_CANONICAL_HOST. When cross-
16991         compiling to glibc systems, set gl_cv_func_roundl_ieee to
16992         "guessing yes".
16993         * m4/setenv.m4 (gl_FUNC_SETENV): Require AC_CANONICAL_HOST. When cross-
16994         compiling to glibc systems, set gl_cv_func_setenv_works to
16995         "guessing yes".
16996         (gl_FUNC_UNSETENV): Require AC_CANONICAL_HOST. When cross-
16997         compiling to glibc systems, set gl_cv_func_unsetenv_works to
16998         "guessing yes".
16999         * m4/sleep.m4 (gl_FUNC_SLEEP): Require AC_CANONICAL_HOST. When cross-
17000         compiling to glibc systems, set gl_cv_func_sleep_works to
17001         "guessing yes".
17002         * m4/stat.m4 (gl_FUNC_STAT): Require AC_CANONICAL_HOST. When cross-
17003         compiling to glibc systems, set gl_cv_func_stat_file_slash to
17004         "guessing yes".
17005         * m4/symlink.m4 (gl_FUNC_SYMLINK): Require AC_CANONICAL_HOST. When
17006         cross-compiling to glibc systems, set gl_cv_func_symlink_works to
17007         "guessing yes".
17008         * m4/trunc.m4 (gl_FUNC_TRUNC): Require AC_CANONICAL_HOST. When cross-
17009         compiling to glibc systems, set gl_cv_func_trunc_ieee to "guessing yes".
17010         * m4/truncf.m4 (gl_FUNC_TRUNCF): Require AC_CANONICAL_HOST. When cross-
17011         compiling to glibc systems, set gl_cv_func_truncf_ieee to
17012         "guessing yes".
17013         * m4/truncl.m4 (gl_FUNC_TRUNCL): Require AC_CANONICAL_HOST. When cross-
17014         compiling to glibc systems, set gl_cv_func_truncl_ieee to
17015         "guessing yes".
17016         * m4/usleep.m4 (gl_FUNC_USLEEP): Require AC_CANONICAL_HOST. When cross-
17017         compiling to glibc systems, set gl_cv_func_usleep_works to
17018         "guessing yes".
17019         * m4/utimens.m4 (gl_UTIMENS): Require AC_CANONICAL_HOST. When cross-
17020         compiling to glibc systems, set gl_cv_func_futimesat_works to
17021         "guessing yes".
17023 2012-05-03  Bruno Haible  <bruno@clisp.org>
17025         Say "guessing yes" or "guessing no" when cross-compiling.
17026         * m4/dup2.m4 (gl_FUNC_DUP2): When cross-compiling, set
17027         gl_cv_func_dup2_works to "guessing yes" or "guessing no".
17028         * m4/getdelim.m4 (gl_FUNC_GETDELIM): When cross-compiling, set
17029         gl_cv_func_working_getdelim to "guessing yes" or "guessing no".
17030         * m4/getline.m4 (gl_FUNC_GETLINE): When cross-compiling, set
17031         am_cv_func_working_getline to "guessing yes" or "guessing no".
17032         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): When cross-compiling, set
17033         gl_cv_func_memmem_works_always to "guessing yes" or "guessing no".
17034         (gl_FUNC_MEMMEM): When cross-compiling, set
17035         gl_cv_func_memmem_works_fast to "guessing yes" or "guessing no".
17036         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): When cross-compiling, set
17037         gl_cv_func_stpncpy to "guessing yes" or "guessing no".
17038         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): When cross-compiling,
17039         set gl_cv_func_strcasestr_works_always to "guessing yes" or
17040         "guessing no".
17041         (gl_FUNC_STRCASESTR): When cross-compiling, set
17042         gl_cv_func_strcasestr_linear to "guessing yes" or "guessing no".
17043         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE): When cross-compiling, set
17044         gl_cv_func_strstr_works_always to "guessing yes" or "guessing no".
17045         (gl_FUNC_STRSTR): When cross-compiling, set
17046         gl_cv_func_strstr_linear to "guessing yes" or "guessing no".
17047         * m4/strtod.m4 (gl_FUNC_STRTOD): When cross-compiling, set
17048         gl_cv_func_strtod_works to "guessing yes" or "guessing no".
17049         * m4/wctype_h.m4 (gl_WCTYPE_H): When cross-compiling, set
17050         gl_cv_func_iswcntrl_works to "guessing yes" or "guessing no".
17052 2012-05-01  Bruno Haible  <bruno@clisp.org>
17054         relocatable-prog: Enable ELF ORIGIN trick also on GNU/kFreeBSD.
17055         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): Treat kFreeBSD like Linux.
17056         * build-aux/reloc-ldflags: Likewise.
17057         Suggested by Steven Chamberlain <steven@pyro.eu.org>.
17059 2012-05-01  Bruno Haible  <bruno@clisp.org>
17061         gnulib-tool: Remove transitional code.
17062         * gnulib-tool: Don't warn about --import with 0 arguments any more.
17063         Reported by Dmitriy Selyutin <ghostman.sd@gmail.com>.
17065 2012-05-01  Bruno Haible  <bruno@clisp.org>
17067         getcwd: Fix misindentation.
17068         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Fix indentation.
17070 2012-04-29  Paul Eggert  <eggert@cs.ucla.edu>
17072         exclude: process exclude and include directives in order
17073         This restores the pre-2009 behavior, and is part of a fix of a
17074         grep bug reported by Quentin Arce in
17075         <http://lists.gnu.org/archive/html/bug-grep/2012-04/msg00056.html>.
17076         * lib/exclude.c (struct exclude): Remove 'tail' member.
17077         (new_exclude_segment): Prepend the new segment instead of appending.
17078         Return void, since that's now more convenient.
17079         (file_pattern_matches): Renamed from excluded_file_pattern_p.
17080         (file_name_matches): Renamed from excluded_file_name_p.
17081         (file_pattern_matches, file_name_matches):
17082         Return true if the pattern matches, not if it excludes.
17083         All callers changed.
17084         (excluded_file_name): Process the list in reverse order;
17085         since the list is now reversed this restores the pre-2009 behavior.
17086         (add_exclude): Adjust to new reversed-order list.  Use local var
17087         rather than macro, for clarity.
17088         * tests/test-exclude7.sh: Adjust to corrected behavior.
17090         exclude: handle wildcards with FNM_NOESCAPE and with trailing \
17091         * lib/exclude.c (unescape_pattern): Don't worry about unescaped [;
17092         it's not possible here.  Handle the case of \ at end of pattern
17093         without dumping core.
17094         (add_exclude): Do not unescape the pattern if FNM_NOESCAPE is used.
17096         _Noreturn: future-proof non-GNU and non-MSVC compilers
17097         * build-aux/snippet/_Noreturn.h (_Noreturn):
17098         * m4/gnulib-common.m4 (gl_COMMON_BODY):
17099         Do not define _Noreturn if __STDC_VERSION__ indicates this is
17100         C11 or later.  This is more likely to work with random future C
17101         compilers that are neither GNUish nor MSVCish.  See Vincent Lefevre in
17102         <http://lists.gnu.org/archive/html/bug-gnulib/2012-04/msg00195.html>.
17104         exclude: handle wildcards with FNM_EXTMATCH
17105         * lib/exclude.c (fnmatch_pattern_has_wildcards): Also treat '+(',
17106         '+@', '!(' as wildcards, if FNM_EXTMATCH.  Make it clear in a
17107         comment that "has wildcards" really means "has or may have
17108         wildcards".  Simplify by avoiding the need to call strcspn.
17110 2012-04-29  Bruno Haible  <bruno@clisp.org>
17112         gnulib-tool: Fix list of authors.
17113         * gnulib-tool (func_version): Add Paul Eggert to list of authors.
17115 2012-04-26  Stefano Lattarini  <stefano.lattarini@gmail.com>
17117         bootstrap: support Automake-NG in $buildreq
17118         * bootstrap (check_versions): Handle automake and aclocal from
17119         Automake-NG specially.  They can be specified as respectively
17120         the "automake-ng" and "aclocal-ng" requirements.
17122 2012-04-25  Eric Blake  <eblake@redhat.com>
17124         bootstrap: only force latest Makefile.in.in for gettext module
17125         * build-aux/bootstrap (with_gettext): Only install latest
17126         Makefile.in.in for projects requesting bleeding edge gettext.
17128 2012-04-22  Bruno Haible  <bruno@clisp.org>
17130         doc: Mention reason for replacement on glibc/Linux systems.
17131         * doc/posix-functions/dprintf.texi: Mention the problem with special
17132         'long double' values.
17133         * doc/posix-functions/fprintf.texi: Likewise.
17134         * doc/posix-functions/printf.texi: Likewise.
17135         * doc/posix-functions/snprintf.texi: Likewise.
17136         * doc/posix-functions/sprintf.texi: Likewise.
17137         * doc/posix-functions/vdprintf.texi: Likewise.
17138         * doc/posix-functions/vfprintf.texi: Likewise.
17139         * doc/posix-functions/vprintf.texi: Likewise.
17140         * doc/posix-functions/vsnprintf.texi: Likewise.
17141         * doc/posix-functions/vsprintf.texi: Likewise.
17142         * doc/posix-functions/fcntl.texi: Add glibc/Linux to the list of
17143         platforms with F_DUPFD_CLOEXEC problems.
17144         * doc/posix-functions/glob.texi: Mention which platforms are affected
17145         by the problem with symbolic links.
17146         * doc/posix-functions/linkat.texi: Mention the problem with
17147         AT_SYMLINK_FOLLOW on Linux.
17149 2012-04-22  Bruno Haible  <bruno@clisp.org>
17151         pwrite: Don't replace on all platforms.
17152         * m4/pwrite.m4 (gl_FUNC_PWRITE): Fix syntax error in test program.
17154 2012-04-22  Bruno Haible  <bruno@clisp.org>
17156         rint* tests: Avoid gcc warnings.
17157         * tests/test-rint.c (INFINITY, NAN): Undefine before redefining.
17158         * tests/test-rintf.c (INFINITY, NAN): Likewise.
17159         * tests/test-rintl.c (INFINITY, NAN): Likewise.
17161 2012-04-21  Bruno Haible  <bruno@clisp.org>
17163         users.txt: Update.
17164         * users.txt: Add freedink, wdiff. Update URLs for projects that have
17165         switched from CVS to git, bzr, or svn.
17167 2012-04-21  Bruno Haible  <bruno@clisp.org>
17169         Large File Support for native Windows platforms.
17171         * m4/largefile.m4 (gl_LARGEFILE): New macro.
17172         * modules/largefile (configure.ac): Require gl_LARGEFILE.
17174         * lib/sys_types.in.h (off_t) [WINDOWS_64_BIT_OFF_T]: Define to a 64-bit
17175         type.
17176         * m4/sys_types_h.m4 (gl_SYS_TYPES_H): Set WINDOWS_64_BIT_OFF_T.
17177         * modules/sys_types (Makefile.am): Substitute WINDOWS_64_BIT_OFF_T.
17178         * doc/posix-headers/sys_types.texi: Mention the effect of the
17179         'largefile' module.
17181         * lib/fcntl.in.h: Add comments about off_t.
17182         * modules/fcntl-h (Depends-on): Add sys_types.
17184         * lib/unistd.in.h [WINDOWS_64_BIT_OFF_T]: Include <sys/types.h>.
17185         (ftruncate): Replace it if REPLACE_FTRUNCATE is 1.
17186         * m4/unistd_h.m4 (gl_UNISTD_H): Require gl_SYS_TYPES_H.
17187         (gl_UNISTD_H_DEFAULTS): Initialize REPLACE_FTRUNCATE.
17188         * modules/unistd (Depends-on): Add sys_types.
17189         (Makefile.am): Substitute WINDOWS_64_BIT_OFF_T, REPLACE_FTRUNCATE.
17191         * lib/lseek.c (rpl_lseek) [_GL_WINDOWS_64_BIT_OFF_T]: Use _lseeki64
17192         instead of lseek.
17193         * m4/lseek.m4 (gl_FUNC_LSEEK): Require gl_SYS_TYPES_H. Set
17194         REPLACE_LSEEK if WINDOWS_64_BIT_OFF_T is 1.
17195         * modules/lseek (Depends-on): Add sys_types.
17197         * lib/ftruncate.c: Put under GPLv3+. Include <windows.h>,
17198         msvc-nothrow.h.
17199         (SetFileSize): New function.
17200         (ftruncate) [_GL_WINDOWS_64_BIT_OFF_T]: New implementation.
17201         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Set REPLACE_FTRUNCATE on Windows
17202         if Large File Support is requested.
17203         * modules/ftruncate (configure.ac): Consider REPLACE_FTRUNCATE.
17204         (Depends-on): Add sys_types, msvc-nothrow. Update conditions.
17206         * lib/stdio.in.h: Add comments about off_t.
17207         * modules/stdio (Depends-on): Add sys_types.
17209         * lib/ftello.c [_GL_WINDOWS_64_BIT_OFF_T]: Use _ftelli64 or ftello64
17210         instead of ftello.
17211         * m4/ftello.m4 (gl_FUNC_FTELLO): Require gl_SYS_TYPES_H. Set
17212         REPLACE_FTELLO if WINDOWS_64_BIT_OFF_T is 1.
17213         (gl_PREREQ_FTELLO): New macro.
17214         * modules/ftello (Depends-on): Add sys_types.
17215         (configure.ac): Incoke gl_PREREQ_FTELLO.
17217         * lib/fseeko.c [_GL_WINDOWS_64_BIT_OFF_T]: Use _fseeki64 or fseeko64
17218         instead of fseeko.
17219         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Require gl_SYS_TYPES_H. Set
17220         REPLACE_FSEEKO if WINDOWS_64_BIT_OFF_T is 1.
17221         (gl_PREREQ_FSEEKO): New macro.
17222         * modules/fseeko (Depends-on): Add sys_types.
17223         (configure.ac): Invoke gl_PREREQ_FSEEKO.
17225         * lib/sys_stat.in.h: Add comments about off_t.
17226         (stat, fstat) [WINDOWS_64_BIT_ST_SIZE]: Define to variants that use a
17227         64-bit integer for st_size in 'struct stat'.
17228         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Set WINDOWS_64_BIT_ST_SIZE.
17229         Define _GL_WINDOWS_64_BIT_ST_SIZE.
17230         * modules/sys_stat (Depends-on): Add sys_types.
17231         (Makefile.am): Substitute WINDOWS_64_BIT_ST_SIZE.
17233         * lib/stat.c (stat) [_GL_WINDOWS_64_BIT_ST_SIZE]: Define to _stati64
17234         instead of stat or _stat.
17236         * lib/fstat.c [_GL_WINDOWS_64_BIT_ST_SIZE]: Use _fstati64 and
17237         'struct _stati64' instead of fstat and 'struct stat'.
17238         * m4/fstat.m4 (gl_FUNC_FSTAT): Require gl_HEADER_SYS_STAT_H. Set
17239         REPLACE_FSTAT if WINDOWS_64_BIT_ST_SIZE is 1.
17241         Reported by Ray Satiro <raysatiro@yahoo.com>.
17243 2012-04-19  Eric Blake  <eblake@redhat.com>
17245         bootstrap: accommodate older libtool
17246         * build-aux/bootstrap (use_libtool): Cater to libtool 1.5.22.
17247         Reported by Daniel P. Berrange.
17249 2012-04-19  Jim Meyering  <meyering@redhat.com>
17251         announce-gen: avoid failure due to lack of Digest::SHA1
17252         Even with the preferred Digest::SHA available, this script
17253         would fail when the backup module, Digest::SHA1, was not installed.
17254         * build-aux/announce-gen: Quote the conditional use of "use".
17255         Reported by Reuben Thomas in:
17256         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/30444
17258         bootstrap: don't let a user's CDPATH setting affect this script
17259         When CDPATH is set, cd will sometimes generate output.
17260         When "cd" is run in a subshell whose output matters, that
17261         surprising-to-some output can cause malfunction.
17262         Unsetting CDPATH turns off this shell "feature."
17263         * build-aux/bootstrap (CDPATH): Unset.
17264         Reported by Reuben Thomas in:
17265         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/30435
17266         and inspired by his patch here:
17267         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/30440
17269 2012-04-16  Akim Demaille  <akim@lrde.epita.fr>
17270         and Jim Meyering  <meyering@redhat.com>
17272         maint.mk: catch "see @xref{}" and similar
17273         * top/maint.mk (prohibit_undesirable_word_seq_RE_): Also
17274         prohibit "See also @xref{", "Also see @pxref{", and similar.
17276 2012-04-16  Jim Meyering  <meyering@redhat.com>
17278         bootstrap: really use gnulib's po/Makefile.in.in
17279         * build-aux/bootstrap: Correct the source file name in previous change.
17280         Reported by Akim Demaille.
17282         configmake: correct minor inconsistency in Makefile rule
17283         * modules/configmake (Makefile.am): All other rules like this one
17284         run the final "mv -f ..." in the same backslash-continued command
17285         as the one that does everything else.  This one put the mv -f ...
17286         command on a separate, non-backslash-continued line.
17287         Make it like the others.
17289         bootstrap: use gnulib's po/Makefile.in.in, not the one from gettext
17290         * build-aux/bootstrap: Use gnulib's po/Makefile.in.in, not
17291         the one from gettext.  Reported by Akim Demaille.
17293 2012-04-16  Joel E. Denny  <joeldenny@joeldenny.org>
17295         Fix recursion of install-* into po directories.
17296         Bison's install-pdf bug reported by Hans Aberg at
17297         <http://lists.gnu.org/archive/html/bug-bison/2011-05/msg00008.html>.
17298         * build-aux/po/Makefile.in.in (install-dvi, install-html)
17299         (install-info, install-pdf, install-ps): New targets.
17301 2012-04-16  Jim Meyering  <meyering@redhat.com>
17303         maint: avoid spurious "make sc_maint" failure
17304         * cfg.mk (exclude_file_name_regexp--sc_trailing_blank): Also
17305         exempt all *.class file names, for lib/javaversion.class.
17307 2012-04-15  Bruno Haible  <bruno@clisp.org>
17309         lseek: Make configure test independent of environment.
17310         * m4/lseek.m4 (gl_FUNC_LSEEK): Require AC_CANONICAL_HOST. On native
17311         Windows, we know that lseek() on pipes is broken; skip the runtime
17312         test.
17314 2012-04-14  Bruno Haible  <bruno@clisp.org>
17316         stat: Bypass buggy override in mingw64.
17317         * m4/stat.m4 (gl_FUNC_STAT): Update comments.
17318         * lib/stat.c (stat) [mingw64]: Define to _stat.
17319         * doc/posix-functions/stat.texi: Mention mingw64 bug.
17321 2012-04-14  Bruno Haible  <bruno@clisp.org>
17323         pathmax: Fix compilation error on MSVC 9.
17324         * modules/pathmax (Depends-on): Add unistd.
17326 2012-04-12  Paul Eggert  <eggert@cs.ucla.edu>
17328         README: document pointer comparison assumption
17329         * README (Portability guidelines): Document assumption about
17330         pointer comparisons, in response to a recent bug-gnulib comment by
17331         Jeffrey Kegler.
17333 2012-04-12  Bruno Haible  <bruno@clisp.org>
17335         Tests for module 'getrusage'.
17336         * modules/getrusage-tests: New file.
17337         * tests/test-getrusage.c: New file.
17339         New module 'getrusage'.
17340         * lib/sys_resource.in.h: Include arg-nonnull.h, c++defs.h,
17341         warn-on-use.h.
17342         (getrusage): New declaration.
17343         * lib/getrusage.c: New file.
17344         * m4/getrusage.m4: New file.
17345         * m4/sys_resource_h.m4 (gl_HEADER_SYS_RESOURCE): Test whether getrusage
17346         is declared.
17347         (gl_SYS_RESOURCE_H_DEFAULTS): Initialize GNULIB_GETRUSAGE,
17348         HAVE_GETRUSAGE.
17349         * modules/sys_resource (Depends-on): Add snippet/arg-nonnull,
17350         snippet/c++defs, snippet/warn-on-use.
17351         (Makefile.am): Update generation of sys/resource.h. Substitute
17352         GNULIB_GETRUSAGE, HAVE_GETRUSAGE.
17353         * modules/getrusage: New file.
17354         * doc/posix-functions/getrusage.texi: Mention the new module.
17356 2012-04-12  Bruno Haible  <bruno@clisp.org>
17358         Tests for module 'sys_resource'.
17359         * modules/sys_resource-tests: New file.
17360         * tests/test-sys_resource.c: New file.
17362         New module 'sys_resource'.
17363         * lib/sys_resource.in.h: New file.
17364         * m4/sys_resource_h.m4: New file.
17365         * modules/sys_resource: New file.
17366         * doc/posix-headers/sys_resource.texi: Mention the new module.
17368 2012-04-12  LRN  <lrn1986@gmail.com>  (tiny change)
17370         ioctl: Fix compilation error on mingw.
17371         * lib/ioctl.c: Include <windows.h>.
17372         Also reported by Ray Satiro <raysatiro@yahoo.com>.
17374 2012-04-04  Jim Meyering  <meyering@redhat.com>
17376         regex: correct #pragma guard expression
17377         * lib/regex.c: -Wsuggest-attribute=pure was introduced in gcc-4.6,
17378         not 4.3.  Correct its cpp guard expression.
17380 2012-04-04  Paul Eggert  <eggert@cs.ucla.edu>
17382         regex: remove unnecessary type punning
17383         Problem reported by Vladimir Serbinenko in
17384         <http://lists.gnu.org/archive/html/bug-gnulib/2012-04/msg00006.html>.
17385         * lib/regex.h (struct re_pattern_buffer): Change the type of
17386         __REPB_PREFIX(buffer) from unsigned char * to struct re_dfa_t *.
17387         Fix comment to match code.
17388         * lib/regcomp.c (re_compile_fastmap, re_compile_fastmap_iter, regfree)
17389         (re_compile_internal, free_workarea_compile, analyze, lower_subexp)
17390         (parse, parse_reg_exp, parse_branch, parse_expression, parse_sub_exp):
17391         * lib/regexec.c (regexec, re_search_stub, re_search_internal)
17392         (set_regs):
17393         Omit no-longer-necessary casts.
17395 2012-04-03  Bruno Haible  <bruno@clisp.org>
17397         Tests for module 'ilogbl'.
17398         * modules/ilogbl-tests: New file.
17399         * tests/test-ilogbl.c: New file.
17401         New module 'ilogbl'.
17402         * lib/math.in.h (ilogbl): New declaration.
17403         * lib/ilogbl.c: New file.
17404         * m4/ilogbl.m4: New file.
17405         * m4/math_h.m4 (gl_MATH_H): Test whether ilogbl is declared.
17406         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ILOGBL, HAVE_ILOGBL.
17407         * modules/math (Makefile.am): Substitute GNULIB_ILOGBL, HAVE_ILOGBL.
17408         Split sed invocation, to avoid the limit of 100 substitutions of
17409         HP-UX 'sed'.
17410         * modules/ilogbl: New file.
17411         * tests/test-math-c++.cc: Check the declaration of ilogbl.
17412         * doc/posix-functions/ilogbl.texi: Mention the new module.
17414 2012-04-03  Bruno Haible  <bruno@clisp.org>
17416         Tests for module 'ilogbf'.
17417         * modules/ilogbf-tests: New file.
17418         * tests/test-ilogbf.c: New file.
17420         New module 'ilogbf'.
17421         * lib/math.in.h (ilogbf): New declaration.
17422         * lib/ilogbf.c: New file.
17423         * m4/ilogbf.m4: New file.
17424         * m4/math_h.m4 (gl_MATH_H): Test whether ilogbf is declared.
17425         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ILOGBF, HAVE_ILOGBF,
17426         REPLACE_ILOGBF.
17427         * modules/math (Makefile.am): Substitute GNULIB_ILOGBF, HAVE_ILOGBF,
17428         REPLACE_ILOGBF.
17429         * modules/ilogbf: New file.
17430         * tests/test-math-c++.cc: Check the declaration of ilogbf.
17431         * doc/posix-functions/ilogbf.texi: Mention the new module.
17433 2012-04-03  Bruno Haible  <bruno@clisp.org>
17435         Tests for module 'ilogb'.
17436         * modules/ilogb-tests: New file.
17437         * tests/test-ilogb.c: New file.
17438         * tests/test-ilogb.h: New file, based on tests/test-logb.h and
17439         tests/test-logb-ieee.h.
17441         New module 'ilogb'.
17442         * lib/math.in.h (ilogb): New declaration.
17443         * lib/ilogb.c: New file.
17444         * m4/ilogb.m4: New file.
17445         * m4/math_h.m4 (gl_MATH_H): Test whether ilogb is declared.
17446         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ILOGB, HAVE_ILOGB,
17447         REPLACE_ILOGB.
17448         * modules/math (Makefile.am): Substitute GNULIB_ILOGB, HAVE_ILOGB,
17449         REPLACE_ILOGB.
17450         * modules/ilogb: New file.
17451         * tests/test-math-c++.cc: Check the declaration of ilogb.
17452         * doc/posix-functions/ilogb.texi: Mention the new module.
17454 2012-04-03  Bruno Haible  <bruno@clisp.org>
17456         math: Provide FP_ILOGB0 and FP_ILOGBNAN.
17457         * lib/math.in.h (FP_ILOGB0, FP_ILOGBNAN): Define fallback.
17458         * tests/test-math.c: Check that FP_ILOGB0, FP_ILOGBNAN are defined.
17459         (main): Check their values.
17460         * doc/posix-headers/math.texi: Mention the FP_ILOGB0, FP_ILOGBNAN
17461         problem.
17463 2012-04-03  Bruno Haible  <bruno@clisp.org>
17465         Tests for module 'logbl-ieee'.
17466         * modules/logbl-ieee-tests: New file.
17467         * tests/test-logbl-ieee.c: New file.
17469         New module 'logbl-ieee'.
17470         * modules/logbl-ieee: New file.
17472         Tests for module 'logb-ieee'.
17473         * modules/logb-ieee-tests: New file.
17474         * tests/test-logb-ieee.c: New file.
17476         New module 'logb-ieee'.
17477         * modules/logb-ieee: New file.
17479         Tests for module 'logbf-ieee'.
17480         * modules/logbf-ieee-tests: New file.
17481         * tests/test-logbf-ieee.c: New file.
17482         * tests/test-logb-ieee.h: New file.
17484         New module 'logbf-ieee'.
17485         * modules/logbf-ieee: New file.
17487 2012-04-03  Bruno Haible  <bruno@clisp.org>
17489         Tests for module 'logbl'.
17490         * modules/logbl-tests: New file.
17491         * tests/test-logbl.c: New file.
17493         New module 'logbl'.
17494         * lib/math.in.h (logbl): New declaration.
17495         * lib/logbl.c: New file.
17496         * m4/logbl.m4: New file.
17497         * m4/math_h.m4 (gl_MATH_H): Test whether logbl is declared.
17498         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOGBL, HAVE_LOGBL,
17499         REPLACE_LOGBL.
17500         * modules/math (Makefile.am): Substitute GNULIB_LOGBL, HAVE_LOGBL,
17501         REPLACE_LOGBL.
17502         * modules/logbl: New file.
17503         * tests/test-math-c++.cc: Check the declaration of logbl.
17504         * doc/posix-functions/logbl.texi: Mention the new module.
17506 2012-04-02  Bruno Haible  <bruno@clisp.org>
17508         Tests for module 'logbf'.
17509         * modules/logbf-tests: New file.
17510         * tests/test-logbf.c: New file.
17512         New module 'logbf'.
17513         * lib/math.in.h (logbf): New declaration.
17514         * lib/logbf.c: New file.
17515         * m4/logbf.m4: New file.
17516         * m4/math_h.m4 (gl_MATH_H): Test whether logbf is declared.
17517         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOGBF, HAVE_LOGBF,
17518         REPLACE_LOGBF.
17519         * modules/math (Makefile.am): Substitute GNULIB_LOGBF, HAVE_LOGBF,
17520         REPLACE_LOGBF.
17521         * modules/logbf: New file.
17522         * tests/test-math-c++.cc: Check the declaration of logbf.
17523         * doc/posix-functions/logbf.texi: Mention the new module.
17525 2012-04-02  Bruno Haible  <bruno@clisp.org>
17527         logb tests: More tests.
17528         * tests/test-logb.h: New file, based on tests/test-logb.c and
17529         tests/test-frexp.h.
17530         * tests/test-logb.c: Include minus-zero.h, test-logb.h.
17531         (main): Just invoke test_function.
17532         * modules/logb-tests (Files): Add tests/test-logb.h,
17533         tests/minus-zero.h, tests/randomd.c.
17534         (Makefile.am): Add randomd.c to test_logb_SOURCES.
17536         logb: Provide replacement and workarounds.
17537         * lib/math.in.h (logb): Ensure declaration. Replace if REPLACE_LOGB
17538         is 1.
17539         * lib/logb.c: New file.
17540         * m4/logb.m4 (gl_FUNC_LOGB_WORKS): New macro.
17541         (gl_FUNC_LOGB): Invoke it. Set HAVE_LOGB, REPLACE_LOGB.
17542         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_LOGB.
17543         * modules/math (Makefile.am): Substitute REPLACE_LOGB.
17544         * modules/logb (Files): Add lib/logb.c.
17545         (Depends-on): Add isfinite, frexp, isnand.
17546         (configure.ac): Compile the replacement code logb.c if needed.
17547         * tests/test-math-c++.cc: Check the declaration of logb.
17548         * doc/posix-functions/logb.texi: Mention the replacement and the bug
17549         with subnormal numbers.
17551 2012-04-02  Bruno Haible  <bruno@clisp.org>
17553         log10* tests: Speed up.
17554         * tests/test-log10.h (test_function): Reduce amount of random numbers
17555         to test.
17557 2012-04-01  Bruno Haible  <bruno@clisp.org>
17559         logf-ieee: Fix test whether logf works.
17560         * m4/logf.m4 (gl_FUNC_LOGF): Fix typo in test program.
17562 2012-04-01  Bruno Haible  <bruno@clisp.org>
17564         log10l: Work around log10l-ieee test failure on IRIX 6.5.
17565         * lib/log10l.c: Include <float.h>
17566         (log10l): On IRIX, normalize the +Infinity value.
17567         * modules/log10l (Depends-on): Add 'float'.
17568         * doc/posix-functions/log10l.texi: Mention the IRIX problem with
17569         +Infinity.
17571         log10f-ieee: Work around test failure on NetBSD 5.1.
17572         * m4/log10f-ieee.m4: New file.
17573         * m4/log10f.m4 (gl_FUNC_LOG10F): If gl_FUNC_LOG10F_IEEE is present,
17574         test whether log10f works with a negative argument. Replace it if not.
17575         * lib/log10f.c (log10f): For negative arguments, return NaN.
17576         * modules/log10f-ieee (Files): Add m4/log10f-ieee.m4.
17577         (configure.ac): Invoke gl_FUNC_LOG10F_IEEE.
17578         * doc/posix-functions/log10f.texi: Mention the log10f-ieee module.
17580         log10f-ieee: Work around test failure on Solaris 9.
17581         * modules/log10f-ieee (Depends-on): Add log10-ieee.
17582         (configure.ac): Require gl_FUNC_LOG10F.
17584         log10-ieee: Work around test failure on NetBSD 5.1 and Solaris 11.
17585         * m4/log10-ieee.m4: New file.
17586         * m4/log10.m4 (gl_FUNC_LOG10): If gl_FUNC_LOG10_IEEE is present, test
17587         whether log10 works with a negative argument. Replace it if not.
17588         * lib/log10.c (log10): For negative arguments, return NaN.
17589         * modules/log10-ieee (Files): Add m4/log10-ieee.m4.
17590         (configure.ac): Invoke gl_FUNC_LOG10_IEEE.
17591         * doc/posix-functions/log10.texi: Mention the log10-ieee module.
17593         Tests for module 'log10l-ieee'.
17594         * modules/log10l-ieee-tests: New file.
17595         * tests/test-log10l-ieee.c: New file.
17597         New module 'log10l-ieee'.
17598         * modules/log10l-ieee: New file.
17600         Tests for module 'log10-ieee'.
17601         * modules/log10-ieee-tests: New file.
17602         * tests/test-log10-ieee.c: New file.
17604         New module 'log10-ieee'.
17605         * modules/log10-ieee: New file.
17607         Tests for module 'log10f-ieee'.
17608         * modules/log10f-ieee-tests: New file.
17609         * tests/test-log10f-ieee.c: New file.
17610         * tests/test-log10-ieee.h: New file.
17612         New module 'log10f-ieee'.
17613         * modules/log10f-ieee: New file.
17615 2012-04-01  Bruno Haible  <bruno@clisp.org>
17617         log10l: Work around AIX 5.1, IRIX 6.5, OSF/1 5.1 bug.
17618         * lib/math.in.h (log10l): Override if REPLACE_LOG10L is 1.
17619         * lib/log10l.c (log10l): If log10l exists, use it and provide just the
17620         workaround.
17621         * m4/log10l.m4 (gl_FUNC_LOG10L_WORKS): New macro.
17622         (gl_FUNC_LOG10L): Invoke it. Set REPLACE_LOG10L.
17623         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_LOG10L.
17624         * modules/math (Makefile.am): Substitute REPLACE_LOG10L.
17625         * modules/log10l (configure.ac): Consider REPLACE_LOG10L.
17626         (Depends-on): Update conditions.
17627         * doc/posix-functions/log10l.texi: Mention the MSVC9, AIX 5.1,
17628         IRIX 6.5, OSF/1 5.1 problems.
17630 2012-04-01  Bruno Haible  <bruno@clisp.org>
17632         log10f: Work around OSF/1 5.1 bug.
17633         * lib/math.in.h (log10f): Override if REPLACE_LOG10F is 1.
17634         * lib/log10f.c (log10f): If logf exists, use it and provide just the
17635         workaround.
17636         * m4/log10f.m4 (gl_FUNC_LOG10F_WORKS): New macro.
17637         (gl_FUNC_LOG10F): Invoke it. Set REPLACE_LOG10F.
17638         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_LOG10F.
17639         * modules/math (Makefile.am): Substitute REPLACE_LOG10F.
17640         * modules/log10f (configure.ac): Consider REPLACE_LOG10F.
17641         (Depends-on): Update conditions.
17642         * doc/posix-functions/log10f.texi: Mention the OSF/1 5.1 problem.
17644 2012-04-01  Bruno Haible  <bruno@clisp.org>
17646         log10: Work around OSF/1 5.1 bug.
17647         * lib/math.in.h (log10): New declaration.
17648         * lib/log10.c: New file.
17649         * m4/log10.m4 (gl_FUNC_LOG10_WORKS): New macro.
17650         (gl_FUNC_LOG10): Invoke it. Set REPLACE_LOG10.
17651         * m4/math_h.m4 (gl_MATH_H): Test whether log10 is declared.
17652         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG10, REPLACE_LOG10.
17653         * modules/math (Makefile.am): Substitute GNULIB_LOG10, REPLACE_LOG10.
17654         * modules/log10 (Files): Add lib/log10.c.
17655         (Depends-on): Add math.
17656         (configure.ac): If REPLACE_LOG10 is 1, compile an override.
17657         * tests/test-math-c++.cc: Check the declaration of log10.
17658         * doc/posix-functions/log10.texi: Mention the OSF/1 5.1 problem.
17660 2012-03-31  Bruno Haible  <bruno@clisp.org>
17662         log10l tests: More tests.
17663         * modules/log10l-tests (Files): Add tests/test-log10l.h,
17664         tests/minus-zero.h, tests/randoml.c.
17665         (Makefile.am): Add randoml.c to test_log10l_SOURCES.
17666         * tests/test-log10l.c: Include <float.h>, minus-zero.h, test-log10l.h.
17667         (main): Invoke test_function.
17669         log10f tests: More tests.
17670         * modules/log10f-tests (Files): Add tests/test-log10.h,
17671         tests/minus-zero.h, tests/randomf.c.
17672         (Makefile.am): Add randomf.c to test_log10f_SOURCES.
17673         * tests/test-log10f.c: Include <float.h>, minus-zero.h, test-log10.h.
17674         (main): Invoke test_function.
17676         log10 tests: More tests.
17677         * tests/test-log10.h: New file.
17678         * modules/log10-tests (Files): Add tests/test-log10.h,
17679         tests/minus-zero.h, tests/randomd.c.
17680         (Makefile.am): Add randomd.c to test_log10_SOURCES.
17681         * tests/test-log10.c: Include <float.h>, minus-zero.h, test-log10.h.
17682         (main): Invoke test_function.
17684 2012-03-31  Simon Josefsson  <simon@josefsson.org>
17686         fflush: Fix syntax error.
17687         * lib/fflush.c: Include unused-parameter.h, needed for
17688         _GL_UNUSED_PARAMETER.
17689         * modules/fflush (Depends-on): Add snippet/unused-parameter.
17691 2012-03-30  Paul Eggert  <eggert@cs.ucla.edu>
17693         regex: pacify GCC when compiling GRUB
17694         * lib/regcomp.c (init_dfa): Make a pointer 'const', to avoid
17695         a diagnostic.  Reported by Vladimir Serbinenko in
17696         <http://lists.gnu.org/archive/html/bug-gnulib/2012-03/msg00163.html>.
17698 2012-03-29  Eric Blake  <eblake@redhat.com>
17700         stdio: don't assume gets any more
17701         * m4/stdio_h.m4 (gl_STDIO_H, gl_STDIO_H_DEFAULTS): Drop gets
17702         support.
17703         * modules/stdio (Makefile.am): Likewise.
17704         * lib/stdio-read.c (gets): Likewise.
17705         * tests/test-stdio-c++.cc: Likewise.
17706         * m4/warn-on-use.m4 (gl_WARN_ON_USE_PREPARE): Fix comment.
17707         * lib/stdio.in.h (gets): Make warning occur in more places.
17708         * doc/posix-functions/gets.texi (gets): Update documentation.
17709         Reported by Christer Solskogen.
17711         maint.mk: fix syntax checks without exclusions
17712         * top/maint.mk (_sc_search_regexp): Allow for empty variable.
17713         Reported by Daniel P. Berrange.
17715         strerror_r: avoid compiler warning
17716         * lib/strerror_r.c (strerror_r): Hoist extern declaration to top
17717         level.
17719         fflush: avoid compiler warning
17720         * lib/fflush.c (update_fpos_cache): Mark variables that are
17721         potentially unused.
17723 2012-03-25  Bruno Haible  <bruno@clisp.org>
17725         Tests for module 'localeconv'.
17726         * modules/localeconv-tests: New file.
17727         * tests/test-localeconv.c: New file.
17729         New module 'localeconv'.
17730         * lib/locale.in.h (localeconv): New declaration.
17731         * lib/localeconv.c: New file.
17732         * m4/localeconv.m4: New file.
17733         * m4/locale_h.m4 (gl_LOCALE_H_DEFAULTS): Initialize GNULIB_LOCALECONV,
17734         REPLACE_LOCALECONV.
17735         * modules/locale (Makefile.am): Substitute GNULIB_LOCALECONV,
17736         REPLACE_LOCALECONV.
17737         * modules/localeconv: New file.
17738         * modules/nl_langinfo (Depends-on): Add localeconv.
17739         * modules/human (Depends-on): Likewise.
17740         * doc/posix-functions/localeconv.texi: Mention the new module.
17742 2012-03-25  Bruno Haible  <bruno@clisp.org>
17744         locale: Provide a complete 'struct lconv'.
17745         * m4/locale_h.m4 (gl_LOCALE_H): Set REPLACE_STRUCT_LCONV to 1 if
17746         'struct lconv' does not contain int_p_cs_precedes.
17747         * tests/test-locale.c (main): Check that 'struct lconv' is complete.
17748         * doc/posix-headers/locale.texi: Update.
17750         locale: Provide a complete 'struct lconv' on Solaris 10, 11.
17751         * m4/locale_h.m4 (gl_LOCALE_H): On Solaris, define _LCONV_C99.
17752         * doc/posix-headers/locale.texi: Update.
17754         locale: Provide a working 'struct lconv'.
17755         * lib/locale.in.h (lconv): Override if REPLACE_STRUCT_LCONV is 1.
17756         * m4/locale_h.m4 (gl_LOCALE_H): Set REPLACE_STRUCT_LCONV to 1 if
17757         'struct lconv' does not even contain decimal_point.
17758         (gl_LOCALE_H_DEFAULTS): Initialize REPLACE_STRUCT_LCONV.
17759         * modules/locale (Makefile.am): Substitute REPLACE_STRUCT_LCONV.
17760         * tests/test-locale.c (main): Check that 'struct lconv' is complete.
17761         * doc/posix-headers/locale.texi: Mention the problems with
17762         'struct lconv'.
17763         Reported by Gianluigi Tiesi <sherpya@netfarm.it>.
17765 2012-03-24  Bruno Haible  <bruno@clisp.org>
17767         Enable common subexpression optimization in GCC.
17768         * lib/unitypes.in.h (_UC_ATTRIBUTE_CONST, _UC_ATTRIBUTE_PURE): New
17769         macros.
17770         * lib/unicase.in.h (uc_toupper, uc_tolower, uc_totitle): Declare with
17771         GCC attribute 'const'.
17772         (uc_locale_language): Declare with GCC attribute 'pure'.
17773         * lib/unicase/caseprop.h (uc_is_cased, uc_is_case_ignorable): Declare
17774         with GCC attribute 'const'.
17775         * lib/unictype.in.h (uc_is_general_category_withtable,
17776         uc_combining_class, uc_combining_class_name,
17777         uc_combining_class_long_name, uc_bidi_class_name,
17778         uc_bidi_category_name, uc_bidi_class_long_name, uc_bidi_class,
17779         uc_bidi_category, uc_is_bidi_class, uc_is_bidi_category,
17780         uc_decimal_value, uc_digit_value, uc_numeric_value,
17781         uc_joining_type_name, uc_joining_type_long_name, uc_joining_type,
17782         uc_joining_group_name, uc_joining_group, uc_is_property_*, uc_script,
17783         uc_block, uc_is_c_whitespace, uc_is_java_whitespace,
17784         uc_c_ident_category, uc_java_ident_category, uc_is_alnum, uc_is_alpha,
17785         uc_is_cntrl, uc_is_digit, uc_is_graph, uc_is_lower, uc_is_print,
17786         uc_is_punct, uc_is_space, uc_is_upper, uc_is_xdigit, uc_is_blank):
17787         Declare with GCC attribute 'const'.
17788         (uc_general_category_name, uc_general_category_long_name,
17789         uc_general_category_byname, uc_general_category,
17790         uc_is_general_category, uc_combining_class_byname,
17791         uc_bidi_class_byname, uc_bidi_category_byname, uc_joining_type_byname,
17792         uc_joining_group_byname, uc_script_byname, uc_is_script, uc_is_block):
17793         Declare with GCC attribute 'pure'.
17794         * lib/unigbrk.in.h (uc_graphemeclusterbreak_property,
17795         uc_is_grapheme_break, u8_grapheme_next, u16_grapheme_next,
17796         u32_grapheme_next, u8_grapheme_prev, u16_grapheme_prev,
17797         u32_grapheme_prev, lib/uniname.in.h (unicode_name_character): Declare
17798         with GCC attribute 'pure'.
17799         * lib/uninorm.in.h (uc_composition): Declare with GCC attribute
17800         'const'.
17801         (uninorm_decomposing_form): Declare with GCC attribute 'pure'.
17802         * lib/unistr.in.h (): Declare with GCC attribute 'const'.
17803         (u8_check, u16_check, u32_check, u8_mblen, u16_mblen, u32_mblen,
17804         u8_cmp, u16_cmp, u32_cmp, u8_cmp2, u16_cmp2, u32_cmp2, u8_chr, u16_chr,
17805         u32_chr, u8_mbsnlen, u16_mbsnlen, u32_mbsnlen, u8_strmblen,
17806         u16_strmblen, u32_strmblen, u8_strlen, u16_strlen, u32_strlen,
17807         u8_strnlen, u16_strnlen, u32_strnlen, u8_strcmp_gnu, u8_strcmp,
17808         u16_strcmp, u32_strcmp, u8_strncmp, u16_strncmp, u32_strncmp,
17809         u8_strchr, u16_strchr, u32_strchr, u8_strrchr, u16_strrchr,
17810         u32_strrchr, u8_strcspn, u16_strcspn, u32_strcspn, u8_strspn,
17811         u16_strspn, u32_strspn, u8_strpbrk, u16_strpbrk, u32_strpbrk,
17812         u8_strstr, u16_strstr, u32_strstr, u8_startswith, u16_startswith,
17813         u32_startswith, u8_endswith, u16_endswith, u32_endswith): Declare with
17814         GCC attribute 'pure'.
17815         * lib/uniwbrk.in.h (uc_wordbreak_property): Declare with GCC attribute
17816         'const'.
17817         * lib/uniwidth.in.h (uc_width): Simplify declaration.
17818         (u8_width, u16_width, u32_width, u8_strwidth, u16_strwidth,
17819         u32_strwidth): Declare with GCC attribute 'pure'.
17821         Enable common subexpression optimization in GCC.
17822         * lib/dirent.in.h (_GL_ATTRIBUTE_PURE): Define, like in string.in.h.
17823         (alphasort): Declare with GCC attribute 'pure'.
17824         * lib/stdlib.in.h (_GL_ATTRIBUTE_PURE): Define, like in string.in.h.
17825         (atoll): Declare with GCC attribute 'pure'.
17826         * lib/string.in.h (mbslen, mbsnlen, mbschr, mbsrchr, mbsstr,
17827         mbscasecmp, mbsncasecmp, mbspcasecmp, mbscasestr, mbscspn, mbspbrk,
17828         mbsspn, strverscmp): Declare with GCC attribute 'pure'.
17829         * lib/wchar.in.h (_GL_ATTRIBUTE_PURE): Define, like in string.in.h.
17830         (btowc, wctob, wcwidth, wmemchr, wmemcmp, wcslen, wcsnlen, wcscmp,
17831         wcsncmp, wcscasecmp, wcsncasecmp, wcschr, wcsrchr, wcscspn, wcsspn,
17832         wcspbrk, wcsstr, wcswidth): Declare with GCC attribute 'pure'.
17834 2012-03-24  Bruno Haible  <bruno@clisp.org>
17836         gnulib-tool: Avoid unintended error output from 'cmp'.
17837         * gnulib-tool (func_add_file, func_update_file, func_import): Use
17838         "cmp -s", not "cmp > /dev/null".
17840 2012-03-23  Stefano Lattarini  <stefano.lattarini@gmail.com>
17842         gnulib-tool: fix imprecise comments w.r.t. an automake bug
17844         It's not just Automake versions < 1.9b that creates an empty
17845         pkgdatadir at installation time if pkgdata_DATA is specified
17846         to empty; modern automake versions do this as well, at least
17847         until automake 1.11.4 (not yet released at the moment of writing,
17848         but soon to appear).  That behaviour was generally considered a
17849         feature rather than a bug, at least until this discussion:
17850         <http://lists.gnu.org/archive/html/automake/2012-03/msg00014.html>
17852         See also automake bugs #10997 and #11030.
17854         * gnulib-tool (func_emit_lib_Makefile_am): Adjust comments.  Add
17855         reference to relevant automake bug numbers.
17856         (func_emit_tests_Makefile_am): Likewise.
17858 2012-03-20  Reuben Thomas  <rrt@sc3d.org>
17860         announce-gen: use Digest::SHA when possible
17861         * build-aux/announce-gen: Use Digest::SHA when possible, falling
17862         back to Digest::SHA1 if necessary.
17864 2012-03-20  Jim Meyering  <meyering@redhat.com>
17866         tests: avoid gcc warnings about argv vs. const initializers
17867         * tests/test-posix_spawn1.c (main): Cast to "(char *)" to avoid two
17868         warnings about discarding 'const' qualifier from pointer target type.
17869         * tests/test-posix_spawn2.c (main): Likewise.
17871 2012-03-20  Reuben Thomas  <rrt@sc3d.org>
17873         README-release: simplify slightly
17874         * top/README-release: Run "git checkout master" only once.
17876 2012-03-15  Mark Wielaard  <mark@klomp.org>
17878         git-merge-changelog: add specific example on how to use with hg.
17879         * lib/git-merge-changelog.c: Add example on how to use in .hgrc.
17881 2012-03-18  Mark Wielaard  <mark@klomp.org>
17883         lib/git-merge-changelog.c (status): Report bugs to bug-gnulib@gnu.org.
17885 2012-03-18  Andreas Oberritter  <obi@opendreambox.org>
17887         git-version-gen: don't let "prefix" envvar cause trouble
17888         * build-aux/git-version-gen (prefix): Initialize properly,
17889         so as not to use a value specified via the environment.
17890         Details here: http://thread.gmane.org/gmane.comp.gnu.parted.bugs/10810
17892 2012-03-16  Paul Eggert  <eggert@cs.ucla.edu>
17894         regex: diagnose too-large repeat counts in EREs
17895         Previously, the code did not diagnose the too-large repeat count
17896         in EREs like 'b{1000000000}'; instead, it silently treated the ERE
17897         as if it were 'b\{1000000000}', which is unexpected.
17898         * lib/regcomp.c (parse_dup_op): Fail with REG_ESIZE if a repeat count
17899         is too large.  REG_ESIZE is used nowhere else, and the diagnostic
17900         is a reasonable one for this problem.  Another option would be to
17901         create a new REG_OVERFLOW error for repeat counts that are too large.
17902         (fetch_number): Return RE_DUP_MAX + 1, not REG_ERROR, if the repeat
17903         count is too large, so that the caller can distinguish the two cases.
17904         * lib/regex.h (_REG_ESIZE): Document that this is now a generic
17905         "Too large" return code, and that repeat counts are one example of this.
17907 2012-03-16  Paul Eggert  <eggert@cs.ucla.edu>
17909         doc: some glibc x32 integer width issues
17910         * doc/posix-headers/sys_types.texi (sys/types.h):
17911         * doc/posix-headers/time.texi (time.h):
17912         Mention that glibc x32 does not conform to POSIX in a couple of
17913         areas related to integer widths.
17915 2012-03-15  Bruno Haible  <bruno@clisp.org>
17917         fmal: Avoid test failure on OpenBSD 5.1/SPARC64.
17918         * lib/fma.c (VOLATILE): New macro.
17919         (FUNC): Use it to work around a GCC compiler bug.
17921 2012-03-13  Bruno Haible  <bruno@clisp.org>
17923         hypotl: Bypass broken implementation in OpenBSD 5.1/SPARC.
17924         * m4/hypotl.m4 (gl_FUNC_HYPOTL_WORKS): New macro.
17925         (gl_FUNC_HYPOTL): Invoke it. If the function does not work, set
17926         REPLACE_HYPOTL to 1.
17927         * doc/posix-functions/hypotl.texi: Mention the OpenBSD 5.1/SPARC bug.
17929 2012-03-13  Bruno Haible  <bruno@clisp.org>
17931         remainderl: Bypass broken implementation in OpenBSD 5.1/SPARC.
17932         * m4/remainderl.m4 (gl_FUNC_REMAINDERL_WORKS): New macro.
17933         (gl_FUNC_REMAINDERL): Invoke it. If the function does not work, set
17934         REPLACE_REMAINDERL to 1.
17935         * doc/posix-functions/remainderl.texi: Mention the OpenBSD 5.1/SPARC
17936         bug.
17938 2012-03-13  Bruno Haible  <bruno@clisp.org>
17940         sqrtl: Bypass broken implementation in OpenBSD 5.1/SPARC.
17941         * lib/math.in.h (sqrtl): Replace it if REPLACE_SQRTL is 1.
17942         * m4/sqrtl.m4 (gl_FUNC_SQRTL_WORKS): New macro.
17943         (gl_FUNC_SQRTL): Invoke it. Set REPLACE_SQRTL to 1 if sqrtl() produces
17944         too big rounding errors.
17945         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_SQRTL.
17946         * modules/math (Makefile.am): Substitute REPLACE_SQRTL.
17947         * modules/sqrtl (configure.ac): Consider REPLACE_SQRTL.
17948         (Depends-on): Update conditions.
17949         * tests/test-sqrtl.c (my_ldexpl): New function.
17950         (main): Add test of a particular value.
17951         * doc/posix-functions/sqrtl.texi: Mention the OpenBSD 5.1/SPARC bug.
17953 2012-03-13  Pádraig Brady  <P@draigBrady.com>
17955         doc: Update timer_* platform portability notes.
17956         * doc/posix-functions/timer_create.texi: Add platforms (OpenBSD 4.9)
17957         that always return ENOSYS.
17958         * doc/posix-functions/timer_delete.texi: Likewise.
17959         * doc/posix-functions/timer_gettime.texi: Likewise.
17960         * doc/posix-functions/timer_settime.texi: Likewise.
17962 2012-03-13  Bruno Haible  <bruno@clisp.org>
17964         cbrtl: Bypass broken implementation in OpenBSD 5.1/SPARC.
17965         * m4/cbrtl.m4 (gl_FUNC_CBRTL_WORKS): New macro.
17966         (gl_FUNC_CBRTL): Invoke it. If the function does not work, set
17967         REPLACE_CBRTL to 1.
17968         * doc/posix-functions/cbrtl.texi: Mention the OpenBSD 5.1/SPARC bug.
17970 2012-03-13  Bruno Haible  <bruno@clisp.org>
17972         remainderl: Avoid compilation error on AIX >= 5.2.
17973         * lib/math.in.h (remainderl): Undefine macro from the system header.
17975 2012-03-13  Bruno Haible  <bruno@clisp.org>
17977         Avoid compilation errors with MSVC option -fp:strict.
17978         * lib/cbrt.c: Use MSVC specific pragma fenv_access.
17979         * lib/cbrtf.c: Likewise.
17980         Reported by Michael Goffioul <michael.goffioul@gmail.com>.
17982 2012-03-12  Bruno Haible  <bruno@clisp.org>
17984         uninorm: Don't crash in out-of-memory conditions.
17985         * lib/uninorm/u-normalize-internal.h (FUNC): Handle malloc() failure
17986         gracefully.
17987         * lib/uninorm/uninorm-filter.c (uninorm_filter_write): Likewise.
17988         Based on a report and patch by Stephen Gallagher <sgallagh@redhat.com>.
17990 2012-03-13  Akim Demaille  <akim@lrde.epita.fr>
17992         quote: fix syntax-check
17993         * top/maint.mk (sc_prohibit_quote_without_use): quote.h
17994         also exports quote_quoting_options.
17996 2012-03-12  Simon Josefsson  <simon@josefsson.org>
17998         Collapse list of copyright years to ranges.  See
17999         <https://lists.gnu.org/archive/html/bug-gnulib/2012-03/msg00051.html>.
18000         * build-aux/bootstrap.conf, build-aux/csharpcomp.sh.in,
18001         build-aux/csharpexec.sh.in, build-aux/gnupload,
18002         build-aux/install-reloc, build-aux/javacomp.sh.in,
18003         build-aux/javaexec.sh.in, build-aux/ldd.sh.in,
18004         build-aux/move-if-change, build-aux/reloc-ldflags,
18005         build-aux/relocatable.sh.in, build-aux/x-to-1.in: Fix copyright.
18007 2012-03-11  Bruno Haible  <bruno@clisp.org>
18009         log2f-ieee: Work around test failure on NetBSD 5.1 and Solaris 10.
18010         * m4/log2f-ieee.m4: New file.
18011         * m4/log2f.m4 (gl_FUNC_LOG2F): If gl_FUNC_LOG2F_IEEE is present, test
18012         whether log2f works with a minus zero argument. Replace it if not.
18013         * modules/log2f-ieee (Files): Add m4/log2f-ieee.m4.
18014         (Depends-on): Add log2-ieee.
18015         (configure.ac): Invoke gl_FUNC_LOG2F_IEEE.
18016         * doc/posix-functions/log2f.texi: Mention the log2f-ieee module.
18018         log2-ieee: Work around test failure on NetBSD 5.1 and Solaris 10.
18019         * m4/log2-ieee.m4: New file.
18020         * m4/log2.m4 (gl_FUNC_LOG2): If gl_FUNC_LOG2_IEEE is present, test
18021         whether log2 works with a minus zero argument. Replace it if not.
18022         * modules/log2-ieee (Files): Add m4/log2-ieee.m4.
18023         (configure.ac): Invoke gl_FUNC_LOG2_IEEE.
18024         * doc/posix-functions/log2.texi: Mention the log2-ieee module.
18026         Tests for module 'log2l-ieee'.
18027         * modules/log2l-ieee-tests: New file.
18028         * tests/test-log2l-ieee.c: New file.
18030         New module 'log2l-ieee'.
18031         * modules/log2l-ieee: New file.
18033         Tests for module 'log2-ieee'.
18034         * modules/log2-ieee-tests: New file.
18035         * tests/test-log2-ieee.c: New file.
18037         New module 'log2-ieee'.
18038         * modules/log2-ieee: New file.
18040         Tests for module 'log2f-ieee'.
18041         * modules/log2f-ieee-tests: New file.
18042         * tests/test-log2f-ieee.c: New file.
18043         * tests/test-log2-ieee.h: New file.
18045         New module 'log2f-ieee'.
18046         * modules/log2f-ieee: New file.
18048 2012-03-11  Bruno Haible  <bruno@clisp.org>
18050         Tests for module 'log2l'.
18051         * modules/log2l-tests: New file.
18052         * tests/test-log2l.c: New file.
18054         New module 'log2l'.
18055         * lib/math.in.h (log2l): New declaration.
18056         * lib/log2l.c: New file.
18057         * m4/log2l.m4: New file.
18058         * m4/math_h.m4 (gl_MATH_H): Test whether log2l is declared.
18059         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG2L, HAVE_DECL_LOG2L,
18060         REPLACE_LOG2L.
18061         * modules/math (Makefile.am): Substitute GNULIB_LOG2L, HAVE_DECL_LOG2L,
18062         REPLACE_LOG2L.
18063         * modules/log2l: New file.
18064         * tests/test-math-c++.cc: Check the declaration of log2l.
18065         * doc/posix-functions/log2l.texi: Mention the new module and the IRIX
18066         and OSF/1 problems.
18068 2012-03-11  Bruno Haible  <bruno@clisp.org>
18070         Tests for module 'log2f'.
18071         * modules/log2f-tests: New file.
18072         * tests/test-log2f.c: New file.
18074         New module 'log2f'.
18075         * lib/math.in.h (log2f): New declaration.
18076         * lib/log2f.c: New file.
18077         * m4/log2f.m4: New file.
18078         * m4/math_h.m4 (gl_MATH_H): Test whether log2f is declared.
18079         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG2F, HAVE_DECL_LOG2F,
18080         REPLACE_LOG2F.
18081         * modules/math (Makefile.am): Substitute GNULIB_LOG2F, HAVE_DECL_LOG2F,
18082         REPLACE_LOG2F.
18083         * modules/log2f: New file.
18084         * tests/test-math-c++.cc: Check the declaration of log2f.
18085         * doc/posix-functions/log2f.texi: Mention the new module and the IRIX
18086         and OSF/1 and Cygwin problems.
18088 2012-03-11  Bruno Haible  <bruno@clisp.org>
18090         Tests for module 'log2'.
18091         * modules/log2-tests: New file.
18092         * tests/test-log2.c: New file.
18093         * tests/test-log2.h: New file.
18095         New module 'log2'.
18096         * lib/math.in.h (log2): New declaration.
18097         * lib/log2.c: New file.
18098         * m4/log2.m4: New file.
18099         * m4/math_h.m4 (gl_MATH_H): Test whether log2 is declared.
18100         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG2, HAVE_DECL_LOG2,
18101         REPLACE_LOG2.
18102         * modules/math (Makefile.am): Substitute GNULIB_LOG2, HAVE_DECL_LOG2,
18103         REPLACE_LOG2.
18104         * modules/log2: New file.
18105         * tests/test-math-c++.cc: Check the declaration of log2.
18106         * doc/posix-functions/log2.texi: Mention the new module and the IRIX
18107         and OSF/1 and Cygwin problems.
18109 2012-03-11  Bruno Haible  <bruno@clisp.org>
18111         exp2* tests: More tests.
18112         * tests/test-exp2.h (test_function): Test all integral arguments that
18113         don't need to overflow or denormalized numbers.
18114         * tests/test-exp2.c (MAX_EXP, MIN_EXP): New macros.
18115         * tests/test-exp2f.c (MAX_EXP, MIN_EXP): Likewise.
18116         * tests/test-exp2l.c (MAX_EXP, MIN_EXP): Likewise.
18118 2012-03-10  Bruno Haible  <bruno@clisp.org>
18120         log1pl-ieee: Work around test failure on AIX 7.1.
18121         * modules/log1pl-ieee (Depends-on): Add log1p-ieee.
18123         log1pl-ieee: Work around test failure on IRIX 6.5.
18124         * m4/log1pl-ieee.m4: New file.
18125         * m4/log1pl.m4 (gl_FUNC_LOG1PL): If gl_FUNC_LOG1PL_IEEE is present,
18126         test whether log1pl works with a minus zero argument. Replace it if
18127         not.
18128         * lib/math.in.h (log1pl): Override if REPLACE_LOG1PL is 1.
18129         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_LOG1PL.
18130         * modules/math (Makefile.am): Substitute REPLACE_LOG1PL.
18131         * modules/log1pl (configure.ac): Consider REPLACE_LOG1PL.
18132         (Depends-on): Update conditions.
18133         * modules/log1pl-ieee (Files): Add m4/log1p-ieee.m4, m4/minus-zero.m4,
18134         m4/signbit.m4.
18135         (configure.ac): Invoke gl_FUNC_LOG1PL_IEEE.
18136         * doc/posix-functions/log1pl.texi: Mention the log1pl-ieee module.
18138         log1pf-ieee: Work around test failure on OpenBSD 4.9 and AIX 7.1.
18139         * m4/log1pf-ieee.m4: New file.
18140         * m4/log1pf.m4 (gl_FUNC_LOG1PF): If gl_FUNC_LOG1PF_IEEE is present,
18141         test whether log1pf works with a minus zero argument. Replace it if
18142         not.
18143         * modules/log1pf-ieee (Files): Add m4/log1pf-ieee.m4, m4/minus-zero.m4,
18144         m4/signbit.m4.
18145         (configure.ac): Invoke gl_FUNC_LOG1PF_IEEE.
18146         * doc/posix-functions/log1pf.texi: Mention the log1pf-ieee module.
18148         log1pf-ieee: Work around test failure on AIX 5.1 and HP-UX 11.
18149         * modules/log1pf-ieee (Depends-on): Add log1p-ieee.
18150         (configure.ac): Require gl_FUNC_LOG1PF.
18152         log1p-ieee: Work around test failure on AIX 7.1 and HP-UX 11.
18153         * m4/log1p-ieee.m4: New file.
18154         * m4/log1p.m4 (gl_FUNC_LOG1P): If gl_FUNC_LOG1P_IEEE is present, test
18155         whether log1p works with a minus zero argument. Replace it if not.
18156         * lib/math.in.h (log1p): Override if REPLACE_LOG1P is 1.
18157         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_LOG1P.
18158         * modules/math (Makefile.am): Substitute REPLACE_LOG1P.
18159         * modules/log1p (configure.ac): Consider REPLACE_LOG1P.
18160         (Depends-on): Update conditions.
18161         * modules/log1p-ieee (Files): Add m4/log1p-ieee.m4, m4/minus-zero.m4,
18162         m4/signbit.m4.
18163         (configure.ac): Invoke gl_FUNC_LOG1P_IEEE.
18164         * doc/posix-functions/log1p.texi: Mention the log1p-ieee module.
18166         Tests for module 'log1pl-ieee'.
18167         * modules/log1pl-ieee-tests: New file.
18168         * tests/test-log1pl-ieee.c: New file.
18170         New module 'log1pl-ieee'.
18171         * modules/log1pl-ieee: New file.
18173         Tests for module 'log1p-ieee'.
18174         * modules/log1p-ieee-tests: New file.
18175         * tests/test-log1p-ieee.c: New file.
18177         New module 'log1p-ieee'.
18178         * modules/log1p-ieee: New file.
18180         Tests for module 'log1pf-ieee'.
18181         * modules/log1pf-ieee-tests: New file.
18182         * tests/test-log1pf-ieee.c: New file.
18183         * tests/test-log1p-ieee.h: New file.
18185         New module 'log1pf-ieee'.
18186         * modules/log1pf-ieee: New file.
18188 2012-03-10  Bruno Haible  <bruno@clisp.org>
18190         Tests for module 'log1pl'.
18191         * modules/log1pl-tests: New file.
18192         * tests/test-log1pl.c: New file.
18194         New module 'log1pl'.
18195         * lib/math.in.h (log1pl): New declaration.
18196         * lib/log1pl.c: New file.
18197         * m4/log1pl.m4: New file.
18198         * m4/math_h.m4 (gl_MATH_H): Test whether log1pl is declared.
18199         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG1PL, HAVE_LOG1PL.
18200         * modules/math (Makefile.am): Substitute GNULIB_LOG1PL, HAVE_LOG1PL.
18201         * modules/log1pl: New file.
18202         * tests/test-math-c++.cc: Check the declaration of log1pl.
18203         * doc/posix-functions/log1pl.texi: Mention the new module.
18205 2012-03-10  Bruno Haible  <bruno@clisp.org>
18207         Tests for module 'log1pf'.
18208         * modules/log1pf-tests: New file.
18209         * tests/test-log1pf.c: New file.
18211         New module 'log1pf'.
18212         * lib/math.in.h (log1pf): New declaration.
18213         * lib/log1pf.c: New file.
18214         * m4/log1pf.m4: New file.
18215         * m4/math_h.m4 (gl_MATH_H): Test whether log1pf is declared.
18216         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG1PF, HAVE_LOG1PF,
18217         REPLACE_LOG1PF.
18218         * modules/math (Makefile.am): Substitute GNULIB_LOG1PF, HAVE_LOG1PF,
18219         REPLACE_LOG1PF.
18220         * modules/log1pf: New file.
18221         * tests/test-math-c++.cc: Check the declaration of log1pf.
18222         * doc/posix-functions/log1pf.texi: Mention the new module.
18224 2012-03-10  Bruno Haible  <bruno@clisp.org>
18226         log1p tests: More tests.
18227         * tests/test-log1p.h: New file.
18228         * modules/log1p-tests (Files): Add tests/test-log1p.h, tests/randomd.c.
18229         (Makefile.am): Add randomd.c to test_log1p_SOURCES.
18230         * tests/test-log1p.c: Include <float.h> and test-log1p.h.
18231         (main): Invoke test_function.
18233         log1p: Provide replacement for Minix and MSVC.
18234         * lib/math.in.h (log1p): New declaration.
18235         * lib/log1p.c: New file.
18236         * m4/log1p.m4: New file.
18237         * m4/math_h.m4 (gl_MATH_H): Test whether log1p is declared.
18238         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG1P, HAVE_LOG1P.
18239         * modules/math (Makefile.am): Substitute GNULIB_LOG1P, HAVE_LOG1P.
18240         * modules/log1p (Files): Add lib/log1p.c, m4/log1p.m4.
18241         (Depends-on): Add math, isnand, log, round.
18242         (configure.ac): Invoke gl_FUNC_LOG1P. Arrange to compile replacement if
18243         HAVE_LOG1P is 0.
18244         * tests/test-math-c++.cc: Check the declaration of log1p.
18245         * doc/posix-functions/log1p.texi: Mention the replacement.
18247 2012-03-10  Bruno Haible  <bruno@clisp.org>
18249         math tests: Small simplification.
18250         * tests/test-exp.h (test_function): Use the same err_bound for
18251         'double' on platforms with sizeof (long double) == sizeof (double)
18252         than on platforms with sizeof (long double) > sizeof (double).
18253         * tests/test-exp2.h (test_function): Likewise.
18254         * tests/test-expm1.h (test_function): Likewise.
18255         * tests/test-log.h (test_function): Likewise.
18257 2012-03-10  Bruno Haible  <bruno@clisp.org>
18259         Fix some comments.
18260         * lib/expl.c: Fix an ambiguous comment.
18261         * lib/expm1.c: Likewise.
18262         * lib/expm1l.c: Likewise.
18263         * lib/exp2.c: Likewise.
18264         * lib/exp2l.c: Likewise.
18266 2012-03-10  Paul Eggert  <eggert@cs.ucla.edu>
18268         regex: allow inclusion of <regex.h> before <limits.h>
18269         Without this patch, portable programs had to include <limits.h> before
18270         <regex.h> if they wanted a consistent value for RE_DUP_MAX.
18271         I ran into this problem with a test version of GNU grep on Solaris 8.
18272         * lib/regex.h: Include <limits.h> if _REGEX_INCLUDE_LIMITS_H.
18273         This is done conditionally so that this change can be merged
18274         back to glibc.
18275         * m4/regex.m4 (gl_REGEX): Define _REGEX_INCLUDE_LIMITS_H if
18276         using the included regex.
18278         fts: depend on fdopendir
18279         * modules/fts (Depends-on): Depend on fdopendir.  This is needed
18280         on Solaris 8, at least, since it lacks fdopendir.  Evidently the
18281         problem was introduced when fdopendir was split out.
18283 2012-03-10  Bruno Haible  <bruno@clisp.org>
18285         Remove unused variables.
18286         * m4/fmodf.m4 (gl_FUNC_FMODF): Remove unused variable 'i'.
18287         * m4/remainderf.m4 (gl_FUNC_REMAINDERF): Likewise.
18289 2012-03-10  Bruno Haible  <bruno@clisp.org>
18291         isnanf-nolibm: Fix last commit.
18292         * lib/isnanf-nolibm.h [IRIX]: Don't include <ieeefp.h>. Declare isnanf.
18294         isnanf-nolibm: Make it work on IRIX 6.5 with cc.
18295         * lib/isnanf-nolibm.h [IRIX]: Include <ieeefp.h>.
18297 2012-03-10  Bruno Haible  <bruno@clisp.org>
18299         logf-ieee: Work around test failure on NetBSD 5.1.
18300         * m4/logf-ieee.m4: New file.
18301         * m4/logf.m4 (gl_FUNC_LOGF): If gl_FUNC_LOGF_IEEE is present, test
18302         whether logf works with a negative argument. Replace it if not.
18303         * lib/logf.c (logf): For negative arguments, return NaN.
18304         * modules/logf-ieee (Files): Add m4/logf-ieee.m4.
18305         (configure.ac): Invoke gl_FUNC_LOGF_IEEE.
18306         * doc/posix-functions/logf.texi: Mention the logf-ieee module.
18308         logf-ieee: Work around test failure on Solaris 9.
18309         * modules/logf-ieee (Depends-on): Add log-ieee.
18310         (configure.ac): Require gl_FUNC_LOGF.
18312         log-ieee: Work around test failure on NetBSD 5.1 and Solaris 11.
18313         * m4/log-ieee.m4: New file.
18314         * m4/log.m4 (gl_FUNC_LOG): If gl_FUNC_LOG_IEEE is present, test whether
18315         log works with a negative argument. Replace it if not.
18316         * lib/log.c (log): For negative arguments, return NaN.
18317         * modules/log-ieee (Files): Add m4/log-ieee.m4.
18318         (configure.ac): Invoke gl_FUNC_LOG_IEEE.
18319         * doc/posix-functions/log.texi: Mention the log-ieee module.
18321         Tests for module 'logl-ieee'.
18322         * modules/logl-ieee-tests: New file.
18323         * tests/test-logl-ieee.c: New file.
18325         New module 'logl-ieee'.
18326         * modules/logl-ieee: New file.
18328         Tests for module 'log-ieee'.
18329         * modules/log-ieee-tests: New file.
18330         * tests/test-log-ieee.c: New file.
18332         New module 'log-ieee'.
18333         * modules/log-ieee: New file.
18335         Tests for module 'logf-ieee'.
18336         * modules/logf-ieee-tests: New file.
18337         * tests/test-logf-ieee.c: New file.
18338         * tests/test-log-ieee.h: New file.
18340         New module 'logf-ieee'.
18341         * modules/logf-ieee: New file.
18343 2012-03-10  Bruno Haible  <bruno@clisp.org>
18345         log: Fix bug introduced on 2012-03-09.
18346         * m4/log.m4 (gl_FUNC_LOG): Require gl_MATH_H_DEFAULTS.
18348 2012-03-10  Pádraig Brady  <P@draigBrady.com>
18350         timer-time: link explicitly with pthreads on glibc
18351         * m4/timer_time.m4 (LIB_TIMER_TIME): Add -lpthread
18352         to support static linking, when newer glibc is
18353         detected, as that contains pthread emulation of
18354         POSIX timer functions where required.
18355         * modules/timer-time: Depend on threadlib to
18356         pull in the appropriate library to link.
18358 2012-03-10  Bruno Haible  <bruno@clisp.org>
18360         log* tests: More tests.
18361         * tests/test-log.h: New file.
18362         * tests/test-log.c: Include <float.h>, minus-zero.h, test-log.h.
18363         (main): Invoke test_function.
18364         * tests/test-logf.c: Include <float.h>, minus-zero.h, test-log.h.
18365         (main): Invoke test_function.
18366         * tests/test-logl.c: Include <float.h>, minus-zero.h, test-log.h.
18367         (main): Invoke test_function.
18368         * modules/log-tests (Files): Add tests/test-log.h, tests/minus-zero.h,
18369         tests/randomd.c.
18370         (Makefile.am): Add randomd.c to test_log_SOURCES.
18371         * modules/logf-tests (Files): Add tests/test-log.h, tests/minus-zero.h,
18372         tests/randomf.c.
18373         (Makefile.am): Add randomf.c to test_logf_SOURCES.
18374         * modules/logl-tests (Files): Add tests/test-log.h, tests/minus-zero.h,
18375         tests/randoml.c.
18376         (Depends-on): Add 'float'.
18377         (Makefile.am): Add randoml.c to test_logl_SOURCES.
18379 2012-03-09  Bruno Haible  <bruno@clisp.org>
18381         logl: Work around OSF/1 5.1 bug.
18382         * lib/math.in.h (logl): Override if REPLACE_LOGL is 1.
18383         * lib/logl.c (logl): If logl exists, use it and provide just the
18384         workaround.
18385         * m4/logl.m4 (gl_FUNC_LOGL_WORKS): New macro.
18386         (gl_FUNC_LOGL): Invoke it. Set REPLACE_LOGL.
18387         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_LOGL.
18388         * modules/math (Makefile.am): Substitute REPLACE_LOGL.
18389         * modules/logl (configure.ac): Consider REPLACE_LOGL.
18390         (Depends-on): Update conditions.
18391         * doc/posix-functions/logl.texi: Mention the OSF/1 5.1 problem.
18393 2012-03-09  Bruno Haible  <bruno@clisp.org>
18395         logf: Work around OSF/1 5.1 bug.
18396         * lib/math.in.h (logf): Override if REPLACE_LOGF is 1.
18397         * lib/logf.c (logf): If logf exists, use it and provide just the
18398         workaround.
18399         * m4/logf.m4 (gl_FUNC_LOGF_WORKS): New macro.
18400         (gl_FUNC_LOGF): Invoke it. Set REPLACE_LOGF.
18401         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_LOGF.
18402         * modules/math (Makefile.am): Substitute REPLACE_LOGF.
18403         * modules/logf (configure.ac): Consider REPLACE_LOGF.
18404         (Depends-on): Update conditions.
18405         * doc/posix-functions/logf.texi: Mention the OSF/1 5.1 problem.
18407 2012-03-09  Bruno Haible  <bruno@clisp.org>
18409         log: Work around OSF/1 5.1 bug.
18410         * lib/math.in.h (log): New declaration.
18411         * lib/log.c: New file.
18412         * m4/log.m4 (gl_FUNC_LOG_WORKS): New macro.
18413         (gl_FUNC_LOG): Invoke it. Set REPLACE_LOG.
18414         * m4/math_h.m4 (gl_MATH_H): Test whether log is declared.
18415         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG, REPLACE_LOG.
18416         * modules/math (Makefile.am): Substitute GNULIB_LOG, REPLACE_LOG.
18417         * modules/log (Files): Add lib/log.c.
18418         (Depends-on): Add math.
18419         (configure.ac): If REPLACE_LOG is 1, compile an override.
18420         * tests/test-math-c++.cc: Check the declaration of log.
18421         * doc/posix-functions/log.texi: Mention the OSF/1 5.1 problem.
18423 2012-03-09  Jim Meyering  <meyering@redhat.com>
18425         readtokens.c: adjust wording in a comment
18426         * lib/readtokens.c: Insert omitted "that" in a comment.
18428 2012-03-08  Paul Eggert  <eggert@cs.ucla.edu>
18430         modechange: add notations +40, 00440, etc.
18431         * lib/modechange.c (mode_compile): Support new notations
18432         +40, -40, =440, 00440.  See <http://debbugs.gnu.org/8391>.
18434 2012-03-08  Bruno Haible  <bruno@clisp.org>
18436         exp2l-ieee: Work around test failure on OpenBSD 4.9 and IRIX 6.5.
18437         * m4/exp2l-ieee.m4: New file.
18438         * m4/exp2l.m4 (gl_FUNC_EXP2L): If gl_FUNC_EXP2L_IEEE is present,
18439         test whether exp2l works with a NaN argument and with a negative
18440         infinity argument. Replace it if not.
18441         * lib/math.in.h (exp2l): Override if REPLACE_EXP2L is 1.
18442         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_EXP2L.
18443         * modules/math (Makefile.am): Substitute REPLACE_EXP2L.
18444         * modules/exp2l (configure.ac): Consider REPLACE_EXP2L.
18445         (Depends-on): Update conditions.
18446         * modules/exp2l-ieee (Files): Add m4/exp2l-ieee.m4.
18447         (configure.ac): Invoke gl_FUNC_EXP2L_IEEE.
18448         * doc/posix-functions/exp2l.texi: Mention the exp2l-ieee module.
18450         Tests for module 'exp2l-ieee'.
18451         * modules/exp2l-ieee-tests: New file.
18452         * tests/test-exp2l-ieee.c: New file.
18454         New module 'exp2l-ieee'.
18455         * modules/exp2l-ieee: New file.
18457         Tests for module 'exp2-ieee'.
18458         * modules/exp2-ieee-tests: New file.
18459         * tests/test-exp2-ieee.c: New file.
18461         New module 'exp2-ieee'.
18462         * modules/exp2-ieee: New file.
18464         Tests for module 'exp2f-ieee'.
18465         * modules/exp2f-ieee-tests: New file.
18466         * tests/test-exp2f-ieee.c: New file.
18467         * tests/test-exp2-ieee.h: New file.
18469         New module 'exp2f-ieee'.
18470         * modules/exp2f-ieee: New file.
18472 2012-03-08  Bruno Haible  <bruno@clisp.org>
18474         Tests for module 'exp2l'.
18475         * modules/exp2l-tests: New file.
18476         * tests/test-exp2l.c: New file.
18478         New module 'exp2l'.
18479         * lib/math.in.h (exp2l): New declaration.
18480         * lib/exp2l.c: New file.
18481         * lib/expl-table.c: New file, extracted from lib/expl.c.
18482         * lib/expl.c (gl_expl_table): New declaration.
18483         (expl): Remove expl_table. Update reference.
18484         * m4/exp2l.m4: New file.
18485         * m4/math_h.m4 (gl_MATH_H): Test whether exp2l is declared.
18486         (gl_MATH_H_DEFAULTS): Initialize GNULIB_EXP2L, HAVE_DECL_EXP2L.
18487         * modules/math (Makefile.am): Substitute GNULIB_EXP2L, HAVE_DECL_EXP2L.
18488         * modules/exp2l: New file.
18489         * modules/expl (Files): Add lib/expl-table.c.
18490         (configure.ac): Compile also expl-table.c.
18491         * tests/test-math-c++.cc: Check the declaration of exp2l.
18492         * doc/posix-functions/exp2l.texi: Mention the new module and the IRIX
18493         problem.
18495 2012-03-08  Bruno Haible  <bruno@clisp.org>
18497         Tests for module 'exp2f'.
18498         * modules/exp2f-tests: New file.
18499         * tests/test-exp2f.c: New file.
18501         New module 'exp2f'.
18502         * lib/math.in.h (exp2f): New declaration.
18503         * lib/exp2f.c: New file.
18504         * m4/exp2f.m4: New file.
18505         * m4/math_h.m4 (gl_MATH_H): Test whether exp2f is declared.
18506         (gl_MATH_H_DEFAULTS): Initialize GNULIB_EXP2F, HAVE_DECL_EXP2F.
18507         * modules/math (Makefile.am): Substitute GNULIB_EXP2F, HAVE_DECL_EXP2F.
18508         * modules/exp2f: New file.
18509         * tests/test-math-c++.cc: Check the declaration of exp2f.
18510         * doc/posix-functions/exp2f.texi: Mention the new module and the
18511         IRIX problem.
18513 2012-03-08  Bruno Haible  <bruno@clisp.org>
18515         Tests for module 'exp2'.
18516         * modules/exp2-tests: New file.
18517         * tests/test-exp2.c: New file.
18518         * tests/test-exp2.h: New file.
18520         New module 'exp2'.
18521         * lib/math.in.h (exp2): New declaration.
18522         * lib/exp2.c: New file.
18523         * m4/exp2.m4: New file.
18524         * m4/math_h.m4 (gl_MATH_H): Test whether exp2 is declared.
18525         (gl_MATH_H_DEFAULTS): Initialize GNULIB_EXP2, HAVE_DECL_EXP2,
18526         REPLACE_EXP2.
18527         * modules/math (Makefile.am): Substitute GNULIB_EXP2, HAVE_DECL_EXP2,
18528         REPLACE_EXP2.
18529         * modules/exp2: New file.
18530         * tests/test-math-c++.cc: Check the declaration of exp2.
18531         * doc/posix-functions/exp2.texi: Mention the new module and the IRIX
18532         and OpenBSD problems.
18534 2012-03-08  Paul Eggert  <eggert@cs.ucla.edu>
18536         savedir: fix comment typo
18537         * lib/savedir.c (savedirstream): Fix typo in comment.
18539 2012-03-08  Bruno Haible  <bruno@clisp.org>
18541         test-readtokens.c: use const; remove unwarranted cast
18542         * tests/test-readtokens.c: Declare delim to be const, to avoid a cast.
18544 2012-03-08  Bruno Haible  <bruno@clisp.org>
18546         fmal: Avoid compilation error on AIX.
18547         * lib/math.in.h (fmal): Undefine macro before declaration. Needed on
18548         AIX 5.2..7.1.
18550 2012-03-08  Bruno Haible  <bruno@clisp.org>
18552         fma, fmaf, fmal: Override undeclared system functions on IRIX 6.5.
18553         * m4/fma.m4 (gl_FUNC_FMA): If fma() exists but is not declared,
18554         arrange to set REPLACE_FMA=1, not HAVE_FMA=0.
18555         * m4/fmaf.m4 (gl_FUNC_FMAF): If fmaf() exists but is not declared,
18556         arrange to set REPLACE_FMAF=1, not HAVE_FMAF=0.
18557         * m4/fmal.m4 (gl_FUNC_FMAL): If fmal() exists but is not declared,
18558         arrange to set REPLACE_FMAL=1, not HAVE_FMAL=0.
18560 2012-03-08  Bruno Haible  <bruno@clisp.org>
18562         remainderf: Override buggy system function on IRIX 6.5.
18563         * m4/remainderf.m4 (gl_FUNC_REMAINDERF_WORKS): New macro.
18564         (gl_FUNC_REMAINDERF): Invoke it. Don't assume remainderf() is declared
18565         when it exists.
18566         * doc/posix-functions/remainderf.texi: Mention the IRIX problems.
18568 2012-03-08  Jim Meyering  <meyering@redhat.com>
18570         test-readtokens.c: avoid const-related compilation warnings
18571         * tests/test-readtokens.c: Avoid const-related compilation warnings.
18573 2012-03-07  Jim Meyering  <meyering@redhat.com>
18574             Bruno Haible  <bruno@clisp.org>
18576         frexp-nolibm, frexpl-nolibm tests: Fix bug introduced on 2012-03-03.
18577         * modules/frexp-nolibm-tests (Files): Add tests/test-frexp.h,
18578         tests/randomd.c.
18579         (Makefile.am): Add randomd.c to test_frexp_nolibm_SOURCES.
18580         * modules/frexpl-nolibm-tests (Files): Add tests/test-frexp.h,
18581         tests/randoml.c.
18582         (Makefile.am): Add randoml.c to test_frexpl_nolibm_SOURCES.
18584 2012-03-07  Bruno Haible  <bruno@clisp.org>
18586         expm1l: Avoid compilation error on AIX.
18587         * lib/math.in.h (expm1l): Undefine macro before declaration. Needed on
18588         AIX 5.2..7.1.
18590 2012-03-07  Bruno Haible  <bruno@clisp.org>
18592         expm1l: Don't override undeclared system function on IRIX 6.5.
18593         * lib/math.in.h (expm1l): Test HAVE_DECL_EXPM1L, not HAVE_EXPM1L.
18594         * m4/expm1l.m4 (gl_FUNC_EXPM1L): Don't assume expm1l() is declared when
18595         it exists. Set HAVE_DECL_EXPM1L.
18596         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize HAVE_DECL_EXPM1L, not
18597         HAVE_EXPM1L.
18598         * modules/math (Makefile.am): Substitute HAVE_DECL_EXPM1L, not
18599         HAVE_EXPM1L.
18600         * doc/posix-functions/expm1l.texi: Mention missing declaration problem.
18602 2012-03-07  Bruno Haible  <bruno@clisp.org>
18604         remainderl: Don't override undeclared system function on IRIX 6.5.
18605         * lib/math.in.h (remainderl): Test HAVE_DECL_REMAINDERL, not
18606         HAVE_REMAINDERL.
18607         * m4/remainderl.m4 (gl_FUNC_REMAINDERL): Don't assume remainderl() is
18608         declared when it exists. Set HAVE_DECL_REMAINDERL.
18609         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize HAVE_DECL_REMAINDERL,
18610         not HAVE_REMAINDERL.
18611         * modules/math (Makefile.am): Substitute HAVE_DECL_REMAINDERL, not
18612         HAVE_REMAINDERL.
18613         * doc/posix-functions/remainderl.texi: Mention missing declaration
18614         problem.
18616 2012-03-07  Bruno Haible  <bruno@clisp.org>
18618         rintf: Don't override undeclared system function on IRIX 6.5.
18619         * lib/math.in.h (rintf): Test HAVE_DECL_RINTF, not HAVE_RINTF.
18620         * m4/rintf.m4 (gl_FUNC_RINTF): Don't assume rintf() is declared when it
18621         exists. Set HAVE_DECL_RINTF.
18622         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize HAVE_DECL_RINTF, not
18623         HAVE_RINTF.
18624         * modules/math (Makefile.am): Substitute HAVE_DECL_RINTF, not
18625         HAVE_RINTF.
18626         * doc/posix-functions/rintf.texi: Mention missing declaration problem.
18628 2012-03-07  Bruno Haible  <bruno@clisp.org>
18630         roundl: Avoid compilation error on AIX.
18631         * lib/math.in.h (roundl): Undefine macro before declaration. Needed on
18632         AIX 5.2..7.1.
18634 2012-03-07  Bruno Haible  <bruno@clisp.org>
18636         roundl: Don't override undeclared system function on IRIX 6.5.
18637         * m4/roundl.m4 (gl_FUNC_ROUNDL): Search for roundl() in the libraries
18638         also when it is not declared. Set HAVE_ROUNDL. For replacement code,
18639         test HAVE_ROUNDL, not HAVE_DECL_ROUNDL.
18640         * modules/roundl (configure.ac): For replacement code, test
18641         HAVE_ROUNDL, not HAVE_DECL_ROUNDL.
18642         (Depends-on): Update conditions.
18643         * doc/posix-functions/roundl.texi: Mention the IRIX problem.
18645 2012-03-07  Bruno Haible  <bruno@clisp.org>
18647         roundf: Don't override undeclared system function on IRIX 6.5.
18648         * m4/roundf.m4 (gl_FUNC_ROUNDF): Search for roundf() in the libraries
18649         also when it is not declared. Set HAVE_ROUNDF. For replacement code,
18650         test HAVE_ROUNDF, not HAVE_DECL_ROUNDF.
18651         * modules/roundf (configure.ac): For replacement code, test
18652         HAVE_ROUNDF, not HAVE_DECL_ROUNDF.
18653         (Depends-on): Update conditions.
18654         * modules/roundf-ieee (Depends-on): Update conditions.
18655         * doc/posix-functions/roundf.texi: Mention the IRIX problem.
18657 2012-03-07  Bruno Haible  <bruno@clisp.org>
18659         round: Don't override undeclared system function on IRIX 6.5.
18660         * m4/check-math-lib.m4 (gl_CHECK_MATH_LIB): Accept an optional third
18661         argument.
18662         * m4/round.m4 (gl_FUNC_ROUND): Search for round() in the libraries
18663         also when it is not declared. Set HAVE_ROUND. For replacement code,
18664         test HAVE_ROUND, not HAVE_DECL_ROUND.
18665         * modules/round (configure.ac): For replacement code, test HAVE_ROUND,
18666         not HAVE_DECL_ROUND.
18667         (Depends-on): Update conditions.
18668         * modules/round-ieee (Depends-on): Update conditions.
18669         * doc/posix-functions/round.texi: Mention the IRIX problem.
18671 2012-03-07  Bruno Haible  <bruno@clisp.org>
18673         copysignf: Don't override undeclared system function on IRIX 6.5.
18674         * lib/math.in.h (copysignf): Test HAVE_DECL_COPYSIGNF, not
18675         HAVE_COPYSIGNF.
18676         * m4/copysignf.m4 (gl_FUNC_COPYSIGNF): Don't assume copysignf() is
18677         declared when it exists. Set HAVE_DECL_COPYSIGNF.
18678         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize HAVE_DECL_COPYSIGNF,
18679         not HAVE_COPYSIGNF.
18680         * modules/math (Makefile.am): Substitute HAVE_DECL_COPYSIGNF, not
18681         HAVE_COPYSIGNF.
18682         * doc/posix-functions/copysignf.texi: Mention missing declaration
18683         problem.
18685 2012-03-07  Jim Meyering  <meyering@redhat.com>
18687         readtokens: add tests
18688         * modules/readtokens-tests: New file.
18689         * tests/test-readtokens.c: New file.
18691 2012-03-07  Jim Meyering  <meyering@redhat.com>
18693         quotearg: the module must now include quote.h
18694         With commit v0.0-7133-g6417476, quotearg.c includes "quote.h".
18695         So must the module.
18696         * modules/quotearg (Files): Add quote.h.
18698 2012-03-06  Paul Eggert  <eggert@cs.ucla.edu>
18700         readtokens: avoid core dumps with unusual calling patterns
18701         Reported by Xu Zhongxing in <http://debbugs.gnu.org/10953>.
18702         * lib/readtokens.c: Include limits.h.
18703         (word, bits_per_word, get_nth_bit, set_nth_bit): New.
18704         (readtoken): Don't cache the delimiters; the cache code was buggy
18705         if !delim && saved_delim, or if the new n_delim differs from the old.
18706         Also, it wasn't thread-safe.
18708 2012-03-07  Bruno Haible  <bruno@clisp.org>
18710         quote: Adhere to common module description layout.
18711         * modules/quote (Makefile.am): Add back empty section.
18713 2012-03-06  Akim Demaille  <demaille@gostai.com>
18715         quote: fuse into quotearg
18716         This patch is made for the benefit of Bison.
18717         quote does not leave the choice of the quoting style to the user.
18718         quoting_style provides poor customizability, yet quoting_options,
18719         which is very rich, is hidden inside quotearg.c.  So in order to
18720         allow quote customization, move its implementation to quotearg.c.
18721         * lib/quote.c: Remove.
18722         * modules/quote: Adjust.
18723         * lib/quotearg.c (quoting_options_from_style): Fix a compiler
18724         warning: provide all the members of literal structs.
18725         (quote_quoting_options): New.
18726         (quote, quote_n): Import implementation from quote.c.
18727         * lib/quote.h: Import the comments from quote.c.
18728         (quote_quoting_options): New.
18730 2012-03-06  Bruno Haible  <bruno@clisp.org>
18732         Tests for module 'expm1l-ieee'.
18733         * modules/expm1l-ieee-tests: New file.
18734         * tests/test-expm1l-ieee.c: New file.
18736         New module 'expm1l-ieee'.
18737         * modules/expm1l-ieee: New file.
18739         Tests for module 'expm1f-ieee'.
18740         * modules/expm1f-ieee-tests: New file.
18741         * tests/test-expm1f-ieee.c: New file.
18743         New module 'expm1f-ieee'.
18744         * modules/expm1f-ieee: New file.
18746         Tests for module 'expm1-ieee'.
18747         * modules/expm1-ieee-tests: New file.
18748         * tests/test-expm1-ieee.c: New file.
18749         * tests/test-expm1-ieee.h: New file.
18751         New module 'expm1-ieee'.
18752         * modules/expm1-ieee: New file.
18753         * m4/expm1-ieee.m4: New file.
18754         * m4/expm1.m4 (gl_FUNC_EXPM1): If gl_FUNC_EXPM1_IEEE is present, test
18755         whether expm1 works with a minus zero argument. Replace it if not.
18756         * lib/math.in.h (expm1): Override if REPLACE_EXPM1 is 1.
18757         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_EXPM1.
18758         * modules/math (Makefile.am): Substitute REPLACE_EXPM1.
18759         * modules/expm1 (configure.ac): Consider REPLACE_EXPM1.
18760         (Depends-on): Update conditions.
18761         * doc/posix-functions/expm1.texi: Mention the expm1-ieee module and the
18762         AIX problem.
18764 2012-03-06  Bruno Haible  <bruno@clisp.org>
18766         Work around expm1f bug on IRIX 6.5.
18767         * lib/math.in.h (expm1f): Override if REPLACE_EXPM1F is 1.
18768         * m4/expm1f.m4 (gl_FUNC_EXPM1F_WORKS): New macro.
18769         (gl_FUNC_EXPM1F): Invoke it. Set REPLACE_EXPM1F to 1 if expm1f() does
18770         not work.
18771         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_EXPM1F.
18772         * modules/math (Makefile.am): Substitute REPLACE_EXPM1F.
18773         * modules/expm1f (configure.ac): Consider REPLACE_EXPM1F.
18774         (Depends-on): Update conditions.
18775         * doc/posix-functions/expm1f.texi: Mention the IRIX 6.5 bug.
18777 2012-03-06  Bruno Haible  <bruno@clisp.org>
18779         Tests for module 'expm1l'.
18780         * modules/expm1l-tests: New file.
18781         * tests/test-expm1l.c: New file.
18783         New module 'expm1l'.
18784         * lib/math.in.h (expm1l): New declaration.
18785         * lib/expm1l.c: New file.
18786         * m4/expm1l.m4: New file.
18787         * m4/math_h.m4 (gl_MATH_H): Test whether expm1l is declared.
18788         (gl_MATH_H_DEFAULTS): Initialize GNULIB_EXPM1L, HAVE_EXPM1L.
18789         * modules/math (Makefile.am): Substitute GNULIB_EXPM1L, HAVE_EXPM1L.
18790         * modules/expm1l: New file.
18791         * tests/test-math-c++.cc: Check the declaration of expm1l.
18792         * doc/posix-functions/expm1l.texi: Mention the new module.
18794 2012-03-06  Bruno Haible  <bruno@clisp.org>
18796         Tests for module 'expm1f'.
18797         * modules/expm1f-tests: New file.
18798         * tests/test-expm1f.c: New file.
18800         New module 'expm1f'.
18801         * lib/math.in.h (expm1f): New declaration.
18802         * lib/expm1f.c: New file.
18803         * m4/expm1f.m4: New file.
18804         * m4/math_h.m4 (gl_MATH_H): Test whether expm1f is declared.
18805         (gl_MATH_H_DEFAULTS): Initialize GNULIB_EXPM1F, HAVE_EXPM1F.
18806         * modules/math (Makefile.am): Substitute GNULIB_EXPM1F, HAVE_EXPM1F.
18807         * modules/expm1f: New file.
18808         * tests/test-math-c++.cc: Check the declaration of expm1f.
18809         * doc/posix-functions/expm1f.texi: Mention the new module.
18811 2012-03-06  Bruno Haible  <bruno@clisp.org>
18813         Tests for module 'expm1'.
18814         * modules/expm1-tests: New file.
18815         * tests/test-expm1.c: New file.
18816         * tests/test-expm1.h: New file.
18818         New module 'expm1'.
18819         * lib/math.in.h (expm1): New declaration.
18820         * lib/expm1.c: New file.
18821         * m4/expm1.m4: New file.
18822         * m4/math_h.m4 (gl_MATH_H): Test whether expm1 is declared.
18823         (gl_MATH_H_DEFAULTS): Initialize GNULIB_EXPM1, HAVE_EXPM1.
18824         * modules/math (Makefile.am): Substitute GNULIB_EXPM1, HAVE_EXPM1.
18825         * modules/expm1: New file.
18826         * tests/test-math-c++.cc: Check the declaration of expm1.
18827         * doc/posix-functions/expm1.texi: Mention the new module.
18829 2012-03-06  Bruno Haible  <bruno@clisp.org>
18831         math: Ensure declarations of math functions.
18832         * modules/acosf (Depends-on): Add 'extensions'.
18833         * modules/asinf (Depends-on): Likewise.
18834         * modules/atan2f (Depends-on): Likewise.
18835         * modules/atanf (Depends-on): Likewise.
18836         * modules/cbrt (Depends-on): Likewise.
18837         * modules/cbrtf (Depends-on): Likewise.
18838         * modules/cbrtl (Depends-on): Likewise.
18839         * modules/copysignf (Depends-on): Likewise.
18840         * modules/copysignl (Depends-on): Likewise.
18841         * modules/cosf (Depends-on): Likewise.
18842         * modules/coshf (Depends-on): Likewise.
18843         * modules/expf (Depends-on): Likewise.
18844         * modules/fabsf (Depends-on): Likewise.
18845         * modules/fabsl (Depends-on): Likewise.
18846         * modules/fmaf (Depends-on): Likewise.
18847         * modules/fmal (Depends-on): Likewise.
18848         * modules/fmodf (Depends-on): Likewise.
18849         * modules/fmodl (Depends-on): Likewise.
18850         * modules/frexpf (Depends-on): Likewise.
18851         * modules/frexpl (Depends-on): Likewise.
18852         * modules/hypot (Depends-on): Likewise.
18853         * modules/hypotf (Depends-on): Likewise.
18854         * modules/hypotl (Depends-on): Likewise.
18855         * modules/ldexpf (Depends-on): Likewise.
18856         * modules/ldexpl (Depends-on): Likewise.
18857         * modules/log10f (Depends-on): Likewise.
18858         * modules/log10l (Depends-on): Likewise.
18859         * modules/log1p (Depends-on): Likewise.
18860         * modules/logb (Depends-on): Likewise.
18861         * modules/logf (Depends-on): Likewise.
18862         * modules/modff (Depends-on): Likewise.
18863         * modules/modfl (Depends-on): Likewise.
18864         * modules/powf (Depends-on): Likewise.
18865         * modules/remainderf (Depends-on): Likewise.
18866         * modules/remainderl (Depends-on): Likewise.
18867         * modules/rintf (Depends-on): Likewise.
18868         * modules/rintl (Depends-on): Likewise.
18869         * modules/sinf (Depends-on): Likewise.
18870         * modules/sinhf (Depends-on): Likewise.
18871         * modules/sqrtf (Depends-on): Likewise.
18872         * modules/tanf (Depends-on): Likewise.
18873         * modules/tanhf (Depends-on): Likewise.
18874         * m4/acosf.m4 (gl_FUNC_ACOSF): Require gl_USE_SYSTEM_EXTENSIONS.
18875         * m4/asinf.m4 (gl_FUNC_ASINF): Likewise.
18876         * m4/atan2f.m4 (gl_FUNC_ATAN2F): Likewise.
18877         * m4/atanf.m4 (gl_FUNC_ATANF): Likewise.
18878         * m4/cbrt.m4 (gl_FUNC_CBRT): Likewise.
18879         * m4/cbrtf.m4 (gl_FUNC_CBRTF): Likewise.
18880         * m4/cbrtl.m4 (gl_FUNC_CBRTL): Likewise.
18881         * m4/copysignf.m4 (gl_FUNC_COPYSIGNF): Likewise.
18882         * m4/copysignl.m4 (gl_FUNC_COPYSIGNL): Likewise.
18883         * m4/cosf.m4 (gl_FUNC_COSF): Likewise.
18884         * m4/coshf.m4 (gl_FUNC_COSHF): Likewise.
18885         * m4/expf.m4 (gl_FUNC_EXPF): Likewise.
18886         * m4/fabsf.m4 (gl_FUNC_FABSF): Likewise.
18887         * m4/fabsl.m4 (gl_FUNC_FABSL): Likewise.
18888         * m4/fmaf.m4 (gl_FUNC_FMAF): Likewise.
18889         * m4/fmal.m4 (gl_FUNC_FMAL): Likewise.
18890         * m4/fmodf.m4 (gl_FUNC_FMODF): Likewise.
18891         * m4/fmodl.m4 (gl_FUNC_FMODL): Likewise.
18892         * m4/frexpf.m4 (gl_FUNC_FREXPF): Likewise.
18893         * m4/frexpl.m4 (gl_FUNC_FREXPL): Likewise.
18894         * m4/hypot.m4 (gl_FUNC_HYPOT): Likewise.
18895         * m4/hypotf.m4 (gl_FUNC_HYPOTF): Likewise.
18896         * m4/hypotl.m4 (gl_FUNC_HYPOTL): Likewise.
18897         * m4/ldexpf.m4 (gl_FUNC_LDEXPF): Likewise.
18898         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Likewise.
18899         * m4/log10f.m4 (gl_FUNC_LOG10F): Likewise.
18900         * m4/log10l.m4 (gl_FUNC_LOF10L): Likewise.
18901         * m4/logb.m4 (gl_FUNC_LOGB): Likewise.
18902         * m4/logf.m4 (gl_FUNC_LOGF): Likewise.
18903         * m4/modff.m4 (gl_FUNC_MODFF): Likewise.
18904         * m4/modfl.m4 (gl_FUNC_MODFL): Likewise.
18905         * m4/powf.m4 (gl_FUNC_POWF): Likewise.
18906         * m4/remainderf.m4 (gl_FUNC_REMAINDERF): Likewise.
18907         * m4/remainderl.m4 (gl_FUNC_REMAINDERL): Likewise.
18908         * m4/rintf.m4 (gl_FUNC_RINTF): Likewise.
18909         * m4/rintl.m4 (gl_FUNC_RINTL): Likewise.
18910         * m4/sinf.m4 (gl_FUNC_SINF): Likewise.
18911         * m4/sinhf.m4 (gl_FUNC_SINHF): Likewise.
18912         * m4/sqrtf.m4 (gl_FUNC_SQRTF): Likewise.
18913         * m4/tanf.m4 (gl_FUNC_TANF): Likewise.
18914         * m4/tanhf.m4 (gl_FUNC_TANHF): Likewise.
18916 2012-03-06  Bruno Haible  <bruno@clisp.org>
18918         math: Update module names in warnings.
18919         * lib/math.in.h (acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl,
18920         tanl): Use specific module name in warn-on-use warning.
18922 2012-03-06  Bruno Haible  <bruno@clisp.org>
18924         expl: Simplify computation.
18925         * lib/expl.c (expl): Simplify computation of exp_y. Fix comment.
18927 2012-03-05  Bruno Haible  <bruno@clisp.org>
18929         exp* tests: More tests.
18930         * tests/test-exp.h: New file.
18931         * tests/test-exp.c: Include <float.h> and test-exp.h.
18932         (main): Invoke test_function.
18933         * tests/test-expf.c: Include <float.h> and test-exp.h.
18934         (main): Invoke test_function.
18935         * tests/test-expl.c: Include <float.h> and test-exp.h.
18936         (main): Invoke test_function.
18937         * modules/exp-tests (Files): Add tests/test-exp.h, tests/randomd.c.
18938         (Makefile.am): Add randomd.c to test_exp_SOURCES.
18939         * modules/expf-tests (Files): Add tests/test-exp.h, tests/randomf.c.
18940         (Makefile.am): Add randomf.c to test_expf_SOURCES.
18941         * modules/expl-tests (Files): Add tests/test-exp.h, tests/randoml.c.
18942         (Depends-on): Add 'float'.
18943         (Makefile.am): Add randoml.c to test_expl_SOURCES.
18945         expl: Fix precision of computed result.
18946         * lib/expl.c: Completely rewritten.
18947         * modules/expl (Depends-on): Add isnanl, roundl, ldexpl. Remove floorl.
18948         (Maintainer): Add me.
18949         * m4/expl.m4 (gl_FUNC_EXPL): Update computation of EXPL_LIBM.
18951 2012-03-05  Bruno Haible  <bruno@clisp.org>
18953         cbrt* tests: More tests.
18954         * tests/test-cbrt.h: New file.
18955         * tests/test-cbrt.c: Include <float.h> and test-cbrt.h.
18956         (main): Invoke test_function.
18957         * tests/test-cbrtf.c: Include <float.h> and test-cbrt.h.
18958         (main): Invoke test_function.
18959         * tests/test-cbrtl.c: Include <float.h> and test-cbrt.h.
18960         (main): Invoke test_function.
18961         * modules/cbrt-tests (Files): Add tests/test-cbrt.h, tests/randomd.c.
18962         (Makefile.am): Add randomd.c to test_cbrt_SOURCES.
18963         * modules/cbrtf-tests (Files): Add tests/test-cbrt.h, tests/randomf.c.
18964         (Makefile.am): Add randomf.c to test_cbrtf_SOURCES.
18965         * modules/cbrtl-tests (Files): Add tests/test-cbrt.h, tests/randoml.c.
18966         (Depends-on): Add 'float'.
18967         (Makefile.am): Add randoml.c to test_cbrtl_SOURCES.
18969 2012-03-05  Bruno Haible  <bruno@clisp.org>
18971         hypot* tests: More tests.
18972         * tests/test-hypot.h: New file, partially extracted from
18973         tests/test-hypotl.c.
18974         * tests/test-hypot.c: Include test-hypot.h.
18975         (main): Invoke test_function.
18976         * tests/test-hypotf.c: Include test-hypot.h.
18977         (main): Invoke test_function.
18978         * tests/test-hypotl.c: Include fpucw.h and test-hypot.h.
18979         (main): Invoke BEGIN_LONG_DOUBLE_ROUNDING and test_function.
18980         * modules/hypot-tests (Files): Add tests/test-hypot.h, tests/randomd.c.
18981         (Makefile.am): Add randomd.c to test_hypot_SOURCES.
18982         * modules/hypotf-tests (Files): Add tests/test-hypot.h,
18983         tests/randomf.c.
18984         (Makefile.am): Add randomf.c to test_hypotf_SOURCES.
18985         * modules/hypotl-tests (Files): Add tests/test-hypot.h,
18986         tests/randoml.c.
18987         (Depends-on): Add 'fpucw', 'float'.
18988         (Makefile.am): Add randoml.c to test_hypotl_SOURCES.
18990 2012-03-05  Bruno Haible  <bruno@clisp.org>
18992         fpucw: Doc about FreeBSD.
18993         * lib/fpucw.h: Mention FreeBSD in comments.
18995 2012-03-04  Bruno Haible  <bruno@clisp.org>
18997         sqrt* tests: More tests.
18998         * tests/test-sqrt.h: New file.
18999         * tests/test-sqrt.c: Include <float.h> and test-sqrt.h.
19000         (main): Invoke test_function.
19001         * tests/test-sqrtf.c: Include <float.h> and test-sqrt.h.
19002         (main): Invoke test_function.
19003         * tests/test-sqrtl.c: Include <float.h> and test-sqrt.h.
19004         (main): Invoke test_function.
19005         * modules/sqrt-tests (Files): Add tests/test-sqrt.h, tests/randomd.c.
19006         (Makefile.am): Add randomd.c to test_sqrt_SOURCES.
19007         * modules/sqrtf-tests (Files): Add tests/test-sqrt.h, tests/randomf.c.
19008         (Makefile.am): Add randomf.c to test_sqrtf_SOURCES.
19009         * modules/sqrtl-tests (Files): Add tests/test-sqrt.h, tests/randoml.c.
19010         (Depends-on): Add 'float'.
19011         (Makefile.am): Add randoml.c to test_sqrtl_SOURCES.
19013 2012-03-04  Bruno Haible  <bruno@clisp.org>
19015         remainder* tests: More tests.
19016         * tests/test-remainder.h: New file, based on tests/test-fmod.h.
19017         * tests/test-remainder.c: Include <float.h> and test-remainder.h.
19018         (main): Invoke test_function.
19019         * tests/test-remainderf.c: Include <float.h> and test-remainder.h.
19020         (main): Invoke test_function.
19021         * tests/test-remainderl.c: Include <float.h> and test-remainder.h.
19022         (main): Invoke test_function.
19023         * modules/remainder-tests (Files): Add tests/test-remainder.h,
19024         tests/randomd.c.
19025         (Makefile.am): Add randomd.c to test_remainder_SOURCES.
19026         * modules/remainderf-tests (Files): Add tests/test-remainder.h,
19027         tests/randomf.c.
19028         (Makefile.am): Add randomf.c to test_remainderf_SOURCES.
19029         * modules/remainderl-tests (Files): Add tests/test-remainder.h,
19030         tests/randoml.c.
19031         (Depends-on): Add 'float'.
19032         (Makefile.am): Add randoml.c to test_remainderl_SOURCES.
19034 2012-03-04  Bruno Haible  <bruno@clisp.org>
19036         remainder, remainderf, remainderl: Fix computation for large quotients.
19037         * lib/remainder.c: Completely rewritten.
19038         * lib/remainderf.c (remainderf): Use implementation of remainder.c with
19039         USE_FLOAT.
19040         * lib/remainderl.c (remainderl): Use implementation of remainder.c with
19041         USE_LONG_DOUBLE.
19042         * modules/remainder (Depends-on): Add isfinite, signbit, fabs, fmod,
19043         isnand, isinf. Remove round, fma.
19044         * modules/remainderf (Files): Add lib/remainder.c.
19045         (Depends-on): Add isfinite, signbit, fabsf, fmodf, isnanf, isinf.
19046         Remove roundf, fmaf.
19047         * modules/remainderl (Files): Add lib/remainder.c.
19048         (Depends-on): Add float, isfinite, signbit, fabsl, fmodl, isnanl,
19049         isinf. Remove roundl, fmal.
19050         * m4/remainder.m4 (gl_FUNC_REMAINDER): Update computation of
19051         REMAINDER_LIBM.
19052         * m4/remainderf.m4 (gl_FUNC_REMAINDERF): Update computation of
19053         REMAINDERF_LIBM.
19054         * m4/remainderl.m4 (gl_FUNC_REMAINDERL): Update computation of
19055         REMAINDERL_LIBM.
19057 2012-03-04  Bruno Haible  <bruno@clisp.org>
19059         fmod* tests: More tests.
19060         * tests/test-fmod.h (my_ldexp): New function.
19061         (test_function): Reduce amount of random numbers to test. Add tests
19062         of very large quotients x / y.
19063         * tests/test-fmod.c (MAX_EXP): New macro.
19064         * tests/test-fmodf.c (MAX_EXP): Likewise.
19065         * tests/test-fmodl.c (MAX_EXP): Likewise.
19067 2012-03-04  Bruno Haible  <bruno@clisp.org>
19069         fmod, fmodl: Fix computation for large quotients x / y.
19070         * lib/fmod.c: Completely rewritten.
19071         * lib/fmodl.c (fmodl): Use implementation of fmod.c with
19072         USE_LONG_DOUBLE.
19073         * modules/fmod (Depends-on): Add isfinite, signbit, fabs, frexp, ldexp,
19074         isnand. Remove fma.
19075         * modules/fmodl (Files): Add lib/fmod.c.
19076         (Depends-on): Add float, isfinite, signbit, fabsl,
19077         frexpl, ldexpl, isnanl. Remove fma.
19078         * m4/fmod.m4 (gl_FUNC_FMOD): Update computation of FMOD_LIBM.
19079         * m4/fmodl.m4 (gl_FUNC_FMODL): Update computation of FMODL_LIBM.
19081 2012-03-03  Bruno Haible  <bruno@clisp.org>
19083         fmod* tests: More tests.
19084         * tests/test-fmod.h: New file.
19085         * tests/test-fmod.c: Include <float.h> and test-fmod.h.
19086         (main): Invoke test_function.
19087         * tests/test-fmodf.c: Include <float.h> and test-fmod.h.
19088         (main): Invoke test_function.
19089         * tests/test-fmodl.c: Include <float.h> and test-fmod.h.
19090         (main): Invoke test_function.
19091         * modules/fmod-tests (Files): Add tests/test-fmod.h, tests/randomd.c.
19092         (Makefile.am): Add randomd.c to test_fmod_SOURCES.
19093         * modules/fmodf-tests (Files): Add tests/test-fmod.h, tests/randomf.c.
19094         (Makefile.am): Add randomf.c to test_fmodf_SOURCES.
19095         * modules/fmodl-tests (Files): Add tests/test-fmod.h, tests/randoml.c.
19096         (Depends-on): Add 'float'.
19097         (Makefile.am): Add randoml.c to test_fmodl_SOURCES.
19099 2012-03-03  Bruno Haible  <bruno@clisp.org>
19101         rint* tests: More tests.
19102         * tests/test-rint.h: New file, partially extracted from
19103         tests/test-rintl.c.
19104         * tests/test-rint.c: Include test-rint.h.
19105         (main): Invoke test_function.
19106         * tests/test-rintf.c: Include test-rint.h.
19107         (main): Invoke test_function.
19108         * tests/test-rintl.c: Include test-rint.h.
19109         (main): Invoke test_function.
19110         * modules/rint-tests (Files): Add tests/test-rint.h, tests/randomd.c.
19111         (Makefile.am): Add randomd.c to test_rint_SOURCES.
19112         * modules/rintf-tests (Files): Add tests/test-rint.h, tests/randomf.c.
19113         (Makefile.am): Add randomf.c to test_rintf_SOURCES.
19114         * modules/rintl-tests (Files): Add tests/test-rint.h, tests/randoml.c.
19115         (Makefile.am): Add randoml.c to test_rintl_SOURCES.
19117 2012-03-03  Bruno Haible  <bruno@clisp.org>
19119         modf* tests: More tests.
19120         * tests/test-modf.h: New file.
19121         * tests/test-modf.c: Include <float.h> and test-modf.h.
19122         (main): Invoke test_function.
19123         * tests/test-modff.c: Include <float.h> and test-modf.h.
19124         (main): Invoke test_function.
19125         * tests/test-modfl.c: Include <float.h> and test-modf.h.
19126         (main): Invoke test_function.
19127         * modules/modf-tests (Files): Add tests/test-modf.h, tests/randomd.c.
19128         (Makefile.am): Add randomd.c to test_modf_SOURCES.
19129         * modules/modff-tests (Files): Add tests/test-modf.h, tests/randomf.c.
19130         (Makefile.am): Add randomf.c to test_modff_SOURCES.
19131         * modules/modfl-tests (Files): Add tests/test-modf.h, tests/randoml.c.
19132         (Depends-on): Add 'float'.
19133         (Makefile.am): Add randoml.c to test_modfl_SOURCES.
19135 2012-03-03  Bruno Haible  <bruno@clisp.org>
19137         fabs* tests: More tests.
19138         * tests/test-fabs.h: New file, partially extracted from
19139         tests/test-fabsl.c.
19140         * tests/test-fabs.c (RANDOM): New macro.
19141         * tests/test-fabsf.c (RANDOM): New macro.
19142         * tests/test-fabsl.c (RANDOM): New macro.
19143         * modules/fabs-tests (Files): Add tests/randomd.c.
19144         (Makefile.am): Add randomd.c to test_fabs_SOURCES.
19145         * modules/fabsf-tests (Files): Add tests/randomf.c.
19146         (Makefile.am): Add randomf.c to test_fabsf_SOURCES.
19147         * modules/fabsl-tests (Files): Add tests/randoml.c.
19148         (Makefile.am): Add randoml.c to test_fabsl_SOURCES.
19150 2012-03-03  Bruno Haible  <bruno@clisp.org>
19152         ldexp* tests: More tests.
19153         * tests/test-ldexp.h (test_function): Add some pseudo-randomized tests.
19154         * tests/test-ldexp.c (RANDOM): New macro.
19155         * tests/test-ldexpf.c (RANDOM): New macro.
19156         * tests/test-ldexpl.c (RANDOM): New macro.
19157         * modules/ldexp-tests (Files): Add tests/randomd.c.
19158         (Makefile.am): Add randomd.c to test_ldexp_SOURCES.
19159         * modules/ldexpf-tests (Files): Add tests/randomf.c.
19160         (Makefile.am): Add randomf.c to test_ldexpf_SOURCES.
19161         * modules/ldexpl-tests (Files): Add tests/randoml.c.
19162         (Makefile.am): Add randoml.c to test_ldexpl_SOURCES.
19164 2012-03-03  Bruno Haible  <bruno@clisp.org>
19166         frexp* tests: More tests.
19167         * tests/test-frexp.h (test_function): Add some pseudo-randomized tests.
19168         * tests/test-frexp.c (RANDOM): New macro.
19169         * tests/test-frexpf.c (RANDOM): New macro.
19170         * tests/test-frexpl.c (RANDOM): New macro.
19171         * modules/frexp-tests (Files): Add tests/randomd.c.
19172         (Makefile.am): Add randomd.c to test_frexp_SOURCES.
19173         * modules/frexpf-tests (Files): Add tests/randomf.c.
19174         (Makefile.am): Add randomf.c to test_frexpf_SOURCES.
19175         * modules/frexpl-tests (Files): Add tests/randoml.c.
19176         (Makefile.am): Add randoml.c to test_frexpl_SOURCES.
19178 2012-03-03  Bruno Haible  <bruno@clisp.org>
19180         Support for pseudo-random numbers in tests.
19181         * tests/randomf.c: New file.
19182         * tests/randomd.c: New file.
19183         * tests/randoml.c: New file.
19184         * tests/macros.h (randomf, randomd, randoml): New declarations.
19186 2012-03-03  Bruno Haible  <bruno@clisp.org>
19188         frexp* tests: Refactor.
19189         * tests/test-frexp.h: New file, extracted from tests/test-frexpl.c.
19190         * tests/test-frexp.c: Include and use it.
19191         * tests/test-frexpf.c: Likewise.
19192         * tests/test-frexpl.c: Likewise.
19193         * modules/frexp-tests (Files): Add tests/test-frexp.h.
19194         * modules/frexpf-tests (Files): Likewise.
19195         * modules/frexpl-tests (Files): Likewise.
19197 2012-03-02  Jim Meyering  <meyering@redhat.com>
19199         maint: don't specify XZ_OPT=-9ev in dist-related rule
19200         Using xz's -9 option is warranted only if you have a very large
19201         tarball (see xz's documentation for the sizes vs. presets), and
19202         requires 64MiB of memory at decompression time.
19203         * top/maint.mk (alpha beta stable): Don't specify XZ_OPT=-9ev.
19204         Automake's default of just "-e" is fine.  Override on a
19205         per-package basis by setting XZ_OPT e.g., in cfg.mk.
19207 2012-03-01  Eric Blake  <eblake@redhat.com>
19209         maint.mk: allow announcement for non-gnulib project
19210         * maint.mk (announcement): Skip gnulib version if not used.
19212 2012-03-01  Jim Meyering  <meyering@redhat.com>
19214         maint.mk: avoid spurious failure of _sc_search_regexp-using tests
19215         * top/maint.mk: Initialize _sc_search_regexp parameters, so that
19216         envvar settings cannot interfere.  Otherwise, setting envvars like
19217         prohibit=foo require=bar, etc. would cause spurious test failures.
19219 2012-03-01  Eric Blake  <eblake@redhat.com>
19221         maint.mk: add per-line exclusions to prohibitions
19222         * maint.mk (_sc_search_regexp): Add $exclude parameter.
19223         (sc_prohibit_strcmp, sc_unmarked_diagnostics)
19224         (sc_const_long_option): Use it.
19226 2012-03-01  Bruno Haible  <bruno@clisp.org>
19228         Tests for module 'expl-ieee'.
19229         * modules/expl-ieee-tests: New file.
19230         * tests/test-expl-ieee.c: New file.
19232         New module 'expl-ieee'.
19233         * modules/expl-ieee: New file.
19235         Tests for module 'exp-ieee'.
19236         * modules/exp-ieee-tests: New file.
19237         * tests/test-exp-ieee.c: New file.
19239         New module 'exp-ieee'.
19240         * modules/exp-ieee: New file.
19242         Tests for module 'expf-ieee'.
19243         * modules/expf-ieee-tests: New file.
19244         * tests/test-expf-ieee.c: New file.
19245         * tests/test-exp-ieee.h: New file.
19247         New module 'expf-ieee'.
19248         * modules/expf-ieee: New file.
19250 2012-02-29  Bruno Haible  <bruno@clisp.org>
19252         cbrtl-ieee: Work around test failure on IRIX 6.5.
19253         * m4/cbrtl-ieee.m4: New file.
19254         * m4/cbrtl.m4 (gl_FUNC_CBRTL): If gl_FUNC_CBRTL_IEEE is present,
19255         test whether cbrtl works with a minus zero argument. Replace it if not.
19256         * lib/math.in.h (cbrtl): Override if REPLACE_CBRTL is 1.
19257         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_CBRTL.
19258         * modules/math (Makefile.am): Substitute REPLACE_CBRTL.
19259         * modules/cbrtl (configure.ac): Consider REPLACE_CBRTL.
19260         (Depends-on): Update conditions.
19261         * modules/cbrtl-ieee (Files): Add m4/cbrtl-ieee.m4, m4/minus-zero.m4,
19262         m4/signbit.m4.
19263         (configure.ac): Invoke gl_FUNC_CBRTL_IEEE.
19264         * lib/cbrtl.c (cbrtl) [IRIX]: Avoid an unnecessary addition.
19265         * doc/posix-functions/cbrtl.texi: Mention the cbrtl-ieee module.
19267         Tests for module 'cbrtl-ieee'.
19268         * modules/cbrtl-ieee-tests: New file.
19269         * tests/test-cbrtl-ieee.c: New file.
19271         New module 'cbrtl-ieee'.
19272         * modules/cbrtl-ieee: New file.
19274         Tests for module 'cbrt-ieee'.
19275         * modules/cbrt-ieee-tests: New file.
19276         * tests/test-cbrt-ieee.c: New file.
19278         New module 'cbrt-ieee'.
19279         * modules/cbrt-ieee: New file.
19281         Tests for module 'cbrtf-ieee'.
19282         * modules/cbrtf-ieee-tests: New file.
19283         * tests/test-cbrtf-ieee.c: New file.
19284         * tests/test-cbrt-ieee.h: New file.
19286         New module 'cbrtf-ieee'.
19287         * modules/cbrtf-ieee: New file.
19289 2012-02-29  Bruno Haible  <bruno@clisp.org>
19291         cbrtf: Work around bug in IRIX 6.5 system function.
19292         * lib/math.in.h (cbrtf): Override if REPLACE_CBRTF is 1.
19293         * m4/cbrtf.m4 (gl_FUNC_CBRTF_WORKS): New macro.
19294         (gl_FUNC_CBRTF): Invoke it. Set REPLACE_CBRTF to 1 if cbrtf() does not
19295         work.
19296         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_CBRTF.
19297         * modules/math (Makefile.am): Substitute REPLACE_CBRTF.
19298         * modules/cbrtf (configure.ac): Consider REPLACE_CBRTF.
19299         (Depends-on): Update conditions.
19300         * doc/posix-functions/cbrtf.texi: Mention the IRIX 6.5 problem.
19302 2012-02-29  Bruno Haible  <bruno@clisp.org>
19304         Tests for module 'cbrtl'.
19305         * modules/cbrtl-tests: New file.
19306         * tests/test-cbrtl.c: New file.
19308         New module 'cbrtl'.
19309         * lib/math.in.h (cbrtl): New declaration.
19310         * lib/cbrtl.c: New file.
19311         * m4/cbrtl.m4: New file.
19312         * m4/math_h.m4 (gl_MATH_H): Test whether cbrtl is declared.
19313         (gl_MATH_H_DEFAULTS): Initialize GNULIB_CBRTL, HAVE_CBRTL,
19314         HAVE_DECL_CBRTL.
19315         * modules/math (Makefile.am): Substitute GNULIB_CBRTL, HAVE_CBRTL,
19316         HAVE_DECL_CBRTL.
19317         * modules/cbrtl: New file.
19318         * tests/test-math-c++.cc: Check the declaration of cbrtl.
19319         * doc/posix-functions/cbrtl.texi: Mention the new module.
19321 2012-02-29  Bruno Haible  <bruno@clisp.org>
19323         Tests for module 'cbrtf'.
19324         * modules/cbrtf-tests: New file.
19325         * tests/test-cbrtf.c: New file.
19327         New module 'cbrtf'.
19328         * lib/math.in.h (cbrtf): New declaration.
19329         * lib/cbrtf.c: New file.
19330         * m4/cbrtf.m4: New file.
19331         * m4/math_h.m4 (gl_MATH_H): Test whether cbrtf is declared.
19332         (gl_MATH_H_DEFAULTS): Initialize GNULIB_CBRTF, HAVE_CBRTF,
19333         HAVE_DECL_CBRTF.
19334         * modules/math (Makefile.am): Substitute GNULIB_CBRTF, HAVE_CBRTF,
19335         HAVE_DECL_CBRTF.
19336         * modules/cbrtf: New file.
19337         * tests/test-math-c++.cc: Check the declaration of cbrtf.
19338         * doc/posix-functions/cbrtf.texi: Mention the new module.
19340 2012-02-29  Bruno Haible  <bruno@clisp.org>
19342         cbrt: Provide replacement on MSVC and Minix.
19343         * lib/math.in.h (cbrt): New declaration.
19344         * lib/cbrt.c: New file.
19345         * m4/cbrt.m4: New file.
19346         * m4/math_h.m4 (gl_MATH_H): Test whether cbrt is declared.
19347         (gl_MATH_H_DEFAULTS): Initialize GNULIB_CBRT, HAVE_CBRT.
19348         * modules/math (Makefile.am): Substitute GNULIB_CBRT, HAVE_CBRT.
19349         * modules/cbrt (Files): Add lib/cbrt.c, m4/cbrt.m4.
19350         (Depends-on): Add dependencies.
19351         (configure.ac): Arrange to compile replacement if HAVE_CBRT is 0.
19352         * tests/test-math-c++.cc: Check the declaration of cbrt.
19353         * doc/posix-functions/cbrt.texi: Mention that the module provides a
19354         replacement.
19356 2012-02-29  Bruno Haible  <bruno@clisp.org>
19358         hypotl-ieee: Work around test failure on OSF/1 and native Windows.
19359         * m4/hypotl-ieee.m4: New file.
19360         * m4/hypotl.m4 (gl_FUNC_HYPOTL): If gl_FUNC_HYPOTL_IEEE is present,
19361         test whether hypotl works with mixed NaN and Infinity arguments.
19362         Replace it if not.
19363         * lib/math.in.h (hypotl): Override if REPLACE_HYPOTL is 1.
19364         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_HYPOTL.
19365         * modules/math (Makefile.am): Substitute REPLACE_HYPOTL.
19366         * modules/hypotl (configure.ac): Consider REPLACE_HYPOTL.
19367         (Depends-on): Update conditions.
19368         * modules/hypotl-ieee (Files): Add m4/hypotl-ieee.m4.
19369         (Depends-on): Add hypot-ieee.
19370         (configure.ac): Invoke gl_FUNC_HYPOTL_IEEE.
19371         * doc/posix-functions/hypotl.texi: Mention the hypotl-ieee module.
19373         hypotf-ieee: Work around test failure on OSF/1 and native Windows.
19374         * m4/hypotf-ieee.m4: New file.
19375         * m4/hypotf.m4 (gl_FUNC_HYPOTF): If gl_FUNC_HYPOTF_IEEE is present,
19376         test whether hypotf works with mixed NaN and Infinity arguments.
19377         Replace it if not.
19378         * modules/hypotf-ieee (Files): Add m4/hypotf-ieee.m4.
19379         (Depends-on): Add hypot-ieee.
19380         (configure.ac): Invoke gl_FUNC_HYPOTF_IEEE.
19381         * doc/posix-functions/hypotf.texi: Mention the hypotf-ieee module.
19383         hypot-ieee: Work around test failure on OSF/1 and native Windows.
19384         * lib/math.in.h (hypot): New declaration.
19385         * lib/hypot.c: New file.
19386         * m4/hypot-ieee.m4: New file.
19387         * m4/hypot.m4 (gl_FUNC_HYPOT): If gl_FUNC_HYPOT_IEEE is present, test
19388         whether hypot works with mixed NaN and Infinity arguments. Replace it
19389         if not.
19390         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_HYPOT,
19391         REPLACE_HYPOT.
19392         * modules/math (Makefile.am): Substitute GNULIB_HYPOT, REPLACE_HYPOT.
19393         * modules/hypot (Files): Add lib/hypot.c.
19394         (Depends-on): Add dependencies.
19395         (configure.ac): Arrange to compile replacement if REPLACE_HYPOT is 1.
19396         * modules/hypot-ieee (Files): Add m4/hypot-ieee.m4.
19397         (configure.ac): Invoke gl_FUNC_HYPOT_IEEE.
19398         * tests/test-math-c++.cc: Check the declaration of hypot.
19399         * doc/posix-functions/hypot.texi: Mention the hypot-ieee module.
19401         Tests for module 'hypotl-ieee'.
19402         * modules/hypotl-ieee-tests: New file.
19403         * tests/test-hypotl-ieee.c: New file.
19405         New module 'hypotl-ieee'.
19406         * modules/hypotl-ieee: New file.
19408         Tests for module 'hypot-ieee'.
19409         * modules/hypot-ieee-tests: New file.
19410         * tests/test-hypot-ieee.c: New file.
19412         New module 'hypot-ieee'.
19413         * modules/hypot-ieee: New file.
19415         Tests for module 'hypotf-ieee'.
19416         * modules/hypotf-ieee-tests: New file.
19417         * tests/test-hypotf-ieee.c: New file.
19418         * tests/test-hypot-ieee.h: New file.
19420         New module 'hypotf-ieee'.
19421         * modules/hypotf-ieee: New file.
19423 2012-02-29  Bruno Haible  <bruno@clisp.org>
19425         Remove unused variables.
19426         * m4/fmod.m4 (gl_FUNC_FMOD): Remove unused variable 'i'.
19427         * m4/fmodl.m4 (gl_FUNC_FMODL): Likewise.
19428         * m4/remainder.m4 (gl_FUNC_REMAINDER): Likewise.
19429         * m4/remainderl.m4 (gl_FUNC_REMAINDERL): Likewise.
19431 2012-02-29  Eric Blake  <eblake@redhat.com>
19433         termios: fix pid_t always, not just for tcgetsid
19434         * doc/posix-headers/termios.texi (termios.h): Mention problem.
19435         * lib/termios.in.h (include): Ensure pid_t on all platforms, not
19436         just when building tcgetsid.
19438 2012-02-29  Bruno Haible  <bruno@clisp.org>
19440         Tests for module 'hypotl'.
19441         * modules/hypotl-tests: New file.
19442         * tests/test-hypotl.c: New file.
19444         New module 'hypotl'.
19445         * lib/math.in.h (hypotl): New declaration.
19446         * lib/hypotl.c: New file.
19447         * m4/hypotl.m4: New file.
19448         * m4/math_h.m4 (gl_MATH_H): Test whether hypotf is declared.
19449         (gl_MATH_H_DEFAULTS): Initialize GNULIB_HYPOTL, HAVE_HYPOTL.
19450         * modules/math (Makefile.am): Substitute GNULIB_HYPOTL, HAVE_HYPOTL.
19451         * modules/hypotl: New file.
19452         * tests/test-math-c++.cc: Check the hypotl declaration.
19453         * doc/posix-functions/hypotl.texi: Mention the new module.
19455 2012-02-29  Eric Blake  <eblake@redhat.com>
19457         tcgetsid: fix cygwin header bug
19458         * lib/termios.in.h (includes) [Cygwin]: Ensure pid_t is defined.
19460         docs: update cygwin progress
19461         * doc/posix-functions/llround.texi (llround): Added in cygwin
19462         1.7.8.
19463         * doc/posix-functions/llroundf.texi (llroundf): Likewise.
19464         * doc/glibc-functions/program_invocation_name.texi
19465         (program_invocation_name): Likewise.
19466         * doc/glibc-functions/program_invocation_short_name.texi
19467         (program_invocation_short_name): Likewise.
19468         * doc/glibc-functions/madvise.texi (madvise): Likewise.
19469         * doc/glibc-functions/pthread_yield.texi (pthread_yield):
19470         Likewise.
19471         * doc/posix-functions/pthread_spin_destroy.texi
19472         (pthread_spin_destroy): Added in cygwin 1.7.10.
19473         * doc/posix-functions/pthread_spin_init.texi (pthread_spin_init):
19474         Likewise.
19475         * doc/posix-functions/pthread_spin_lock.texi (pthread_spin_lock):
19476         Likewise.
19477         * doc/posix-functions/pthread_spin_trylock.texi
19478         (pthread_spin_trylock): Likewise.
19479         * doc/posix-functions/pthread_spin_unlock.texi
19480         (pthread_spin_unlock): Likewise.
19481         * doc/posix-functions/pthread_setschedprio.texi
19482         (pthread_setschedprio): Likewise.
19483         * doc/posix-functions/pthread_attr_getstack.texi
19484         (pthread_attr_getstack): Likewise.
19485         * doc/pastposix-functions/pthread_attr_getstackaddr.texi
19486         (pthread_attr_getstackaddr): Likewise.
19487         * doc/glibc-functions/pthread_getattr_np.texi
19488         (pthread_getattr_np): Likewise.
19489         * doc/glibc-functions/sys_siglist.texi (sys_siglist): Likewise.
19490         * doc/glibc-functions/sysinfo.texi (sysinfo): Likewise.
19491         * doc/posix-functions/clock_settime.texi (clock_settime):
19492         Likewise.
19493         * doc/posix-functions/pthread_attr_getguardsize.texi
19494         (pthread_attr_getguardsize): Likewise.
19495         * doc/posix-functions/pthread_attr_setguardsize.texi
19496         (pthread_attr_setguardsize): Likewise.
19497         * doc/posix-functions/pthread_attr_setstack.texi
19498         (pthread_attr_setstack): Likewise.
19499         * doc/pastposix-functions/pthread_attr_setstackaddr.texi
19500         (pthread_attr_setstackaddr): Likewise.
19501         * doc/posix-functions/clock_getcpuclockid.texi
19502         (clock_getcpuclockid): Likewise.
19503         * doc/posix-functions/pthread_getcpuclockid.texi
19504         (pthread_getcpuclockid): Likewise.
19505         * doc/glibc-functions/error.texi (error): Likewise.
19506         * doc/glibc-functions/error_at_line.texi (error_at_line):
19507         Likewise.
19508         * doc/glibc-functions/error_message_count.texi
19509         (error_message_count): Likewise.
19510         * doc/glibc-functions/error_one_per_line.texi
19511         (error_one_per_line): Likewise.
19512         * doc/glibc-functions/error_print_progname.texi
19513         (error_print_progname): Likewise.
19514         * doc/posix-functions/pthread_condattr_getclock.texi
19515         (pthread_condattr_getclock): Likewise.
19516         * doc/posix-functions/pthread_condattr_setclock.texi
19517         (pthread_condattr_setclock): Likewise.
19518         * doc/posix-functions/clock_nanosleep.texi (clock_nanosleep):
19519         Likewise.
19520         * doc/glibc-functions/getgrouplist.texi (getgrouplist): Likewise.
19521         * doc/glibc-functions/getpt.texi (getpt): Likewise.
19522         * doc/glibc-functions/get_current_dir_name.texi
19523         (get_current_dir_name): Likewise.
19524         * doc/glibc-functions/pthread_sigqueue.texi (pthread_sigqueue):
19525         Likewise.
19526         * doc/posix-functions/tcgetsid.texi (tcgetsid): Likewise, but with
19527         wrong return type.
19528         * doc/glibc-functions/scandirat.texi (scandirat): Added in cygwin
19529         1.7.11.
19531 2012-02-29  Bruno Haible  <bruno@clisp.org>
19533         Tests for module 'hypotf'.
19534         * modules/hypotf-tests: New file.
19535         * tests/test-hypotf.c: New file.
19537         New module 'hypotf'.
19538         * lib/math.in.h (hypotf): New declaration.
19539         * lib/hypotf.c: New file.
19540         * m4/hypotf.m4: New file.
19541         * m4/math_h.m4 (gl_MATH_H): Test whether hypotf is declared.
19542         (gl_MATH_H_DEFAULTS): Initialize GNULIB_HYPOTF, HAVE_HYPOTF,
19543         REPLACE_HYPOTF.
19544         * modules/math (Makefile.am): Substitute GNULIB_HYPOTF, HAVE_HYPOTF,
19545         REPLACE_HYPOTF.
19546         * modules/hypotf: New file.
19547         * tests/test-math-c++.cc: Check the hypotf declaration.
19548         * doc/posix-functions/hypotf.texi: Mention the new module.
19550         hypot: Prepare for hypotf module.
19551         * m4/hypot.m4: New file.
19552         * modules/hypot (Files): Add m4/hypot.m4.
19553         (configure.ac): Invoke gl_FUNC_HYPOT.
19555 2012-02-29  Bruno Haible  <bruno@clisp.org>
19557         hypot tests: More tests.
19558         * tests/test-hypot.c: Include <float.h>.
19559         (main): Add tests about overflow and underflow.
19561 2012-02-29  Bruno Haible  <bruno@clisp.org>
19563         math code: Add comments.
19564         * lib/acosl.c: Add comment about related glibc source files.
19565         * lib/asinl.c: Likewise.
19566         * lib/atanl.c: Likewise.
19567         * lib/expl.c: Likewise.
19568         * lib/logl.c: Likewise.
19569         * lib/sincosl.c: Likewise.
19570         * lib/sinl.c: Likewise.
19571         * lib/tanl.c: Likewise.
19572         * lib/trigl.c: Likewise.
19573         * lib/cosl.c: Likewise. Fix comments.
19575 2012-02-28  Bruno Haible  <bruno@clisp.org>
19577         math: Ensure HUGE_VAL, HUGE_VALF, HUGE_VALL are defined.
19578         * lib/math.in.h (HUGE_VAL, HUGE_VALF, HUGE_VALL): Define fallbacks.
19579         * tests/test-math.c: Include macros.h. Check that HUGE_VAL, HUGE_VALF,
19580         HUGE_VALL are defined.
19581         (numeric_equald): Renamed from numeric_equal.
19582         (numeric_equalf, numeric_equall): New functions.
19583         (main): Check also HUGE_VALF, HUGE_VALL.
19584         * modules/math-tests (Files): Add tests/macros.h.
19585         * doc/posix-headers/math.texi: Document the problems with HUGE_VALF and
19586         HUGE_VALL.
19588 2012-02-28  Bruno Haible  <bruno@clisp.org>
19590         doc: Move ISO C11 feature notes into POSIX chapters.
19591         * doc/posix-functions/aligned_alloc.texi: Renamed from
19592         doc/glibc-functions/aligned_alloc.texi.
19593         * doc/posix-functions/quick_exit.texi: Renamed from
19594         doc/glibc-functions/quick_exit.texi.
19595         * doc/posix-headers/uchar.texi: Renamed from
19596         doc/glibc-headers/uchar.texi.
19597         * doc/posix-functions/c16rtomb.texi: Renamed from
19598         doc/glibc-functions/c16rtomb.texi.
19599         * doc/posix-functions/c32rtomb.texi: Renamed from
19600         doc/glibc-functions/c32rtomb.texi.
19601         * doc/posix-functions/mbrtoc16.texi: Renamed from
19602         doc/glibc-functions/mbrtoc16.texi.
19603         * doc/posix-functions/mbrtoc32.texi: Renamed from
19604         doc/glibc-functions/mbrtoc32.texi.
19605         * doc/gnulib.texi: Update.
19606         (Glibc uchar.h): Remove section.
19607         Suggested by Eric Blake.
19609 2012-02-29  Paul Eggert  <eggert@cs.ucla.edu>
19611         stdnoreturn: port to MSVC better
19612         MSVC standard headers use __declspec(noreturn), so #define noreturn
19613         to empty on that platform.  Reported by Bruno Haible in
19614         <http://lists.gnu.org/archive/html/bug-gnulib/2012-02/msg00152.html>.
19615         * lib/stdnoreturn.in.h (noreturn): Define to empty on MSVC.
19616         * doc/posix-headers/stdnoreturn.texi (stdnoreturn.h): Document this.
19618 2012-02-28  Bruno Haible  <bruno@clisp.org>
19620         doc: Mention new glibc headers and functions.
19621         * doc/glibc-headers/uchar.texi: New file.
19622         * doc/glibc-functions/aligned_alloc.texi: New file.
19623         * doc/glibc-functions/c16rtomb.texi: New file.
19624         * doc/glibc-functions/c32rtomb.texi: New file.
19625         * doc/glibc-functions/clock_adjtime.texi: New file.
19626         * doc/glibc-functions/fanotify_init.texi: New file.
19627         * doc/glibc-functions/fanotify_mark.texi: New file.
19628         * doc/glibc-functions/inet6_opt_append.texi: New file.
19629         * doc/glibc-functions/inet6_opt_find.texi: New file.
19630         * doc/glibc-functions/inet6_opt_finish.texi: New file.
19631         * doc/glibc-functions/inet6_opt_get_val.texi: New file.
19632         * doc/glibc-functions/inet6_opt_init.texi: New file.
19633         * doc/glibc-functions/inet6_opt_next.texi: New file.
19634         * doc/glibc-functions/inet6_opt_set_val.texi: New file.
19635         * doc/glibc-functions/inet6_rth_add.texi: New file.
19636         * doc/glibc-functions/inet6_rth_getaddr.texi: New file.
19637         * doc/glibc-functions/inet6_rth_init.texi: New file.
19638         * doc/glibc-functions/inet6_rth_reverse.texi: New file.
19639         * doc/glibc-functions/inet6_rth_segments.texi: New file.
19640         * doc/glibc-functions/inet6_rth_space.texi: New file.
19641         * doc/glibc-functions/login.texi: New file.
19642         * doc/glibc-functions/mbrtoc16.texi: New file.
19643         * doc/glibc-functions/mbrtoc32.texi: New file.
19644         * doc/glibc-functions/name_to_handle_at.texi: New file.
19645         * doc/glibc-functions/ntp_gettimex.texi: New file.
19646         * doc/glibc-functions/open_by_handle_at.texi: New file.
19647         * doc/glibc-functions/prlimit.texi: New file.
19648         * doc/glibc-functions/process_vm_readv.texi: New file.
19649         * doc/glibc-functions/process_vm_writev.texi: New file.
19650         * doc/glibc-functions/recvmmsg.texi: New file.
19651         * doc/glibc-functions/scandirat.texi: New file.
19652         * doc/glibc-functions/sendmmsg.texi: New file.
19653         * doc/glibc-functions/setns.texi: New file.
19654         * doc/glibc-functions/timespec_get.texi: New file.
19655         * doc/gnulib.texi: Include them.
19656         (Glibc sys/fanotify.h, Glibc sys/resource.h, Glibc uchar.h): New
19657         sections.
19658         Reported by Eric Blake.
19660 2012-02-28  Bruno Haible  <bruno@clisp.org>
19662         Avoid compilation errors with MSVC option -fp:strict.
19663         * lib/floor.c: Use MSVC specific pragma fenv_access.
19664         * lib/ceil.c: Likewise.
19665         * lib/trunc.c: Likewise.
19666         * lib/round.c: Likewise.
19667         * lib/rint.c: Likewise.
19668         * lib/fma.c: Likewise.
19669         * lib/integer_length.c: Likewise.
19670         * m4/round.m4 (gl_FUNC_ROUND): Likewise.
19671         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
19672         * tests/test-floor2.c: Likewise.
19673         * tests/test-floorf2.c: Likewise.
19674         * tests/test-ceil2.c: Likewise.
19675         * tests/test-ceilf2.c: Likewise.
19676         * tests/test-trunc2.c: Likewise.
19677         * tests/test-truncf2.c: Likewise.
19678         Reported by Michael Goffioul <michael.goffioul@gmail.com>.
19680 2012-02-27  Bruno Haible  <bruno@clisp.org>
19682         Tests for module 'sqrtl-ieee'.
19683         * modules/sqrtl-ieee-tests: New file.
19684         * tests/test-sqrtl-ieee.c: New file.
19686         New module 'sqrtl-ieee'.
19687         * modules/sqrtl-ieee: New file.
19689         Tests for module 'sqrt-ieee'.
19690         * modules/sqrt-ieee-tests: New file.
19691         * tests/test-sqrt-ieee.c: New file.
19693         New module 'sqrt-ieee'.
19694         * modules/sqrt-ieee: New file.
19696         Tests for module 'sqrtf-ieee'.
19697         * modules/sqrtf-ieee-tests: New file.
19698         * tests/test-sqrtf-ieee.c: New file.
19699         * tests/test-sqrt-ieee.h: New file.
19701         New module 'sqrtf-ieee'.
19702         * modules/sqrtf-ieee: New file.
19704 2012-02-27  Bruno Haible  <bruno@clisp.org>
19706         remainderl-ieee: Work around test failure on OSF/1.
19707         * m4/remainderl-ieee.m4: New file.
19708         * m4/remainderl.m4 (gl_FUNC_REMAINDERL): If gl_FUNC_REMAINDERL_IEEE is
19709         present, test whether remainderl works with a zero second argument.
19710         Replace it if not.
19711         * lib/math.in.h (remainderl): Override if REPLACE_REMAINDERL is 1.
19712         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_REMAINDERL.
19713         * modules/math (Makefile.am): Substitute REPLACE_REMAINDERL.
19714         * modules/remainderl (configure.ac): Consider REPLACE_REMAINDERL.
19715         (Depends-on): Update conditions.
19716         * modules/remainderl-ieee (Files): Add m4/remainderl-ieee.m4.
19717         (Depends-on): Add remainder-ieee.
19718         (configure.ac): Invoke gl_FUNC_REMAINDERL_IEEE.
19719         * doc/posix-functions/remainderl.texi: Mention the remainderl-ieee
19720         module.
19722         remainderf-ieee: Work around test failure on OSF/1.
19723         * m4/remainderf-ieee.m4: New file.
19724         * m4/remainderf.m4 (gl_FUNC_REMAINDERF): If gl_FUNC_REMAINDERF_IEEE is
19725         present, test whether remainderf works with a zero second argument.
19726         Replace it if not.
19727         * lib/math.in.h (remainderf): Override if REPLACE_REMAINDERF is 1.
19728         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_REMAINDERF.
19729         * modules/math (Makefile.am): Substitute REPLACE_REMAINDERF.
19730         * modules/remainderf (configure.ac): Consider REPLACE_REMAINDERF.
19731         (Depends-on): Update conditions.
19732         * modules/remainderf-ieee (Files): Add m4/remainderf-ieee.m4.
19733         (Depends-on): Add remainder-ieee.
19734         (configure.ac): Invoke gl_FUNC_REMAINDERF_IEEE.
19735         * doc/posix-functions/remainderf.texi: Mention the remainderf-ieee
19736         module.
19738         remainder-ieee: Work around test failure on OSF/1.
19739         * m4/remainder-ieee.m4: New file.
19740         * m4/remainder.m4 (gl_FUNC_REMAINDER): If gl_FUNC_REMAINDER_IEEE is
19741         present, test whether remainder works with a zero second argument.
19742         Replace it if not.
19743         * lib/math.in.h (remainder): Override if REPLACE_REMAINDER is 1.
19744         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_REMAINDER.
19745         * modules/math (Makefile.am): Substitute REPLACE_REMAINDER.
19746         * modules/remainder (configure.ac): Consider REPLACE_REMAINDER.
19747         (Depends-on): Update dependencies.
19748         * modules/remainder-ieee (Files): Add m4/remainder-ieee.m4.
19749         (configure.ac): Invoke gl_FUNC_REMAINDER_IEEE.
19750         * doc/posix-functions/remainder.texi: Mention the remainder-ieee module.
19752         Tests for module 'remainderl-ieee'.
19753         * modules/remainderl-ieee-tests: New file.
19754         * tests/test-remainderl-ieee.c: New file.
19756         New module 'remainderl-ieee'.
19757         * modules/remainderl-ieee: New file.
19759         Tests for module 'remainder-ieee'.
19760         * modules/remainder-ieee-tests: New file.
19761         * tests/test-remainder-ieee.c: New file.
19763         New module 'remainder-ieee'.
19764         * modules/remainder-ieee: New file.
19766         Tests for module 'remainderf-ieee'.
19767         * modules/remainderf-ieee-tests: New file.
19768         * tests/test-remainderf-ieee.c: New file.
19769         * tests/test-remainder-ieee.h: New file.
19771         New module 'remainderf-ieee'.
19772         * modules/remainderf-ieee: New file.
19774 2012-02-27  Bruno Haible  <bruno@clisp.org>
19776         modff, modfl: Fix configure syntax error.
19777         * m4/modff.m4 (gl_FUNC_MODFF): Insert ':' command in 'if'.
19778         * m4/modfl.m4 (gl_FUNC_MODFL): Likewise.
19780 2012-02-27  Bruno Haible  <bruno@clisp.org>
19782         fmodl-ieee: Work around test failures on OSF/1, MSVC 9.
19783         * m4/fmodl-ieee.m4: New file.
19784         * m4/fmodl.m4 (gl_FUNC_FMODL): If gl_FUNC_FMODL_IEEE is present, test
19785         whether fmodl works with zero arguments. Replace it if not.
19786         * modules/fmodl-ieee (Files): Add m4/fmodl-ieee.m4.
19787         (Depends-on): Add fmod-ieee.
19788         (configure.ac): Invoke gl_FUNC_FMODL_IEEE.
19789         * doc/posix-functions/fmodl.texi: Mention the fmodl-ieee module.
19791         fmodf-ieee: Work around test failure on OSF/1.
19792         * m4/fmodf-ieee.m4: New file.
19793         * m4/fmodf.m4 (gl_FUNC_FMODF): If gl_FUNC_FMODF_IEEE is present, test
19794         whether fmodf works with zero arguments. Replace it if not.
19795         * lib/math.in.h (fmodf): Override if REPLACE_FMODF is 1.
19796         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_FMODF.
19797         * modules/math (Makefile.am): Substitute REPLACE_FMODF.
19798         * modules/fmodf (configure.ac): Consider REPLACE_FMODF.
19799         (Depends-on): Update dependencies.
19800         * modules/fmodf-ieee (Files): Add m4/fmodf-ieee.m4.
19801         (configure.ac): Invoke gl_FUNC_FMODF_IEEE.
19802         * doc/posix-functions/fmodf.texi: Mention the problem on OSF/1.
19804         fmodf-ieee: Work around test failure on MSVC 9.
19805         * modules/fmodf-ieee (Depends-on): Add fmod-ieee.
19806         * doc/posix-functions/fmodf.texi: Mention the fmodf-ieee module.
19808         fmod-ieee: Work around test failures on OSF/1, mingw.
19809         * m4/fmod-ieee.m4: New file.
19810         * m4/fmod.m4 (gl_FUNC_FMOD): If gl_FUNC_FMOD_IEEE is present, test
19811         whether fmod works with zero arguments. Replace it if not.
19812         * lib/math.in.h (fmod): New declaration.
19813         * lib/fmod.c: New file.
19814         * m4/math_h.m4 (gl_MATH_H): Test whether fmod is declared.
19815         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FMOD, REPLACE_FMOD.
19816         * modules/math (Makefile.am): Substitute GNULIB_FMOD, REPLACE_FMOD.
19817         * modules/fmod (Files): Add lib/fmod.c.
19818         (Depends-on): Add math, isinf, trunc, fma.
19819         (configure.ac): Arrange to compile lib/fmod.c if needed.
19820         * modules/fmod-ieee (Files): Add m4/fmod-ieee.m4, m4/minus-zero.m4,
19821         m4/signbit.m4.
19822         (configure.ac): Invoke gl_FUNC_FMOD_IEEE.
19823         * tests/test-math-c++.cc: Check the declaration of fmod.
19824         * doc/posix-functions/fmod.texi: Mention the fmod-ieee module.
19826         fmodl-ieee: Fix test failures.
19827         * lib/fmodl.c (fmodl): Treat Inf specially.
19828         * modules/fmodl (Depends-on): Add isinf.
19830         Tests for module 'fmodl-ieee'.
19831         * modules/fmodl-ieee-tests: New file.
19832         * tests/test-fmodl-ieee.c: New file.
19834         New module 'fmodl-ieee'.
19835         * modules/fmodl-ieee: New file.
19837         Tests for module 'fmod-ieee'.
19838         * modules/fmod-ieee-tests: New file.
19839         * tests/test-fmod-ieee.c: New file.
19841         New module 'fmod-ieee'.
19842         * modules/fmod-ieee: New file.
19844         Tests for module 'fmodf-ieee'.
19845         * modules/fmodf-ieee-tests: New file.
19846         * tests/test-fmodf-ieee.c: New file.
19847         * tests/test-fmod-ieee.h: New file.
19849         New module 'fmodf-ieee'.
19850         * modules/fmodf-ieee: New file.
19852 2012-02-27  Bruno Haible  <bruno@clisp.org>
19854         Tests for module 'rintl-ieee'.
19855         * modules/rintl-ieee-tests: New file.
19856         * tests/test-rintl-ieee.c: New file.
19858         New module 'rintl-ieee'.
19859         * modules/rintl-ieee: New file.
19861         Tests for module 'rint-ieee'.
19862         * modules/rint-ieee-tests: New file.
19863         * tests/test-rint-ieee.c: New file.
19865         New module 'rint-ieee'.
19866         * modules/rint-ieee: New file.
19868         Tests for module 'rintf-ieee'.
19869         * modules/rintf-ieee-tests: New file.
19870         * tests/test-rintf-ieee.c: New file.
19871         * tests/test-rint-ieee.h: New file.
19873         New module 'rintf-ieee'.
19874         * modules/rintf-ieee: New file.
19876 2012-02-26  Paul Eggert  <eggert@cs.ucla.edu>
19878         regex: re_search etc. should return -2 when memory exhausted
19879         This bug was uncovered when testing 'grep'.  Without the fix,
19880         re_search and friends return -1 when memory is exhausted, but -1
19881         means no match, and this causes grep to falsely report no-match
19882         instead of memory-exhaustion.  See
19883         <http://sources.redhat.com/bugzilla/show_bug.cgi?id=13762>.
19884         * lib/regexec.c (re_search_stub): Return -2 (not -1) if there is
19885         trouble; this can occur if re_search_internal ran out of memory.
19887 2012-02-26  Bruno Haible  <bruno@clisp.org>
19889         modfl-ieee: Work around test failures on IRIX, OSF/1, mingw.
19890         * m4/modfl-ieee.m4: New file.
19891         * m4/modfl.m4 (gl_FUNC_MODFL): If gl_FUNC_MODFL_IEEE is present, test
19892         whether modfl works with Inf. Replace it if not.
19893         * lib/math.in.h (modfl): Override if REPLACE_MODFF is 1.
19894         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_MODFL.
19895         * modules/math (Makefile.am): Substitute REPLACE_MODFL.
19896         * modules/modfl (configure.ac): Consider REPLACE_MODFL.
19897         (Depends-on): Update dependencies.
19898         * modules/modfl-ieee (Files): Add m4/modfl-ieee.m4, m4/minus-zero.m4,
19899         m4/signbit.m4.
19900         (configure.ac): Invoke gl_FUNC_MODFL_IEEE.
19901         * doc/posix-functions/modfl.texi: Mention the modfl-ieee module.
19903         modfl-ieee: Fix dependencies.
19904         * modules/modfl-ieee (Depends-on): Add modf-ieee.
19906         modfl-ieee: Fix test failures.
19907         * lib/modfl.c (modfl): Treat NaN and Inf specially.
19908         * modules/modfl (Depends-on): Add isfinite, isinf.
19910         modff-ieee: Work around test failures on *BSD, IRIX, OSF/1, etc.
19911         * m4/modff-ieee.m4: New file.
19912         * m4/modff.m4 (gl_FUNC_MODFF): If gl_FUNC_MODFF_IEEE is present, test
19913         whether modff works with NaN and Inf. Replace it if not.
19914         * lib/math.in.h (modff): Override if REPLACE_MODFF is 1.
19915         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_MODFF.
19916         * modules/math (Makefile.am): Substitute REPLACE_MODFF.
19917         * modules/modff (configure.ac): Consider REPLACE_MODFF.
19918         (Depends-on): Update dependencies.
19919         * modules/modff-ieee (Files): Add m4/modff-ieee.m4, m4/minus-zero.m4,
19920         m4/signbit.m4.
19921         (Depends-on): Add modf-ieee.
19922         (configure.ac): Invoke gl_FUNC_MODFF_IEEE.
19923         * doc/posix-functions/modff.texi: Mention the modff-ieee module.
19925         modf-ieee: Work around test failures on *BSD, IRIX, OSF/1, Cygwin.
19926         * m4/modf-ieee.m4: New file.
19927         * m4/modf.m4 (gl_FUNC_MODF): If gl_FUNC_MODF_IEEE is present, test
19928         whether modf works with NaN and Inf. Replace it if not.
19929         * lib/math.in.h (modf): New declaration.
19930         * lib/modf.c: New file.
19931         * m4/math_h.m4 (gl_MATH_H): Test whether modf is declared.
19932         (gl_MATH_H_DEFAULTS): Initialize GNULIB_MODF, REPLACE_MODF.
19933         * modules/math (Makefile.am): Substitute GNULIB_MODF, REPLACE_MODF.
19934         * modules/modf (Files): Add lib/modf.c.
19935         (Depends-on): Add math, isfinite, trunc, isinf.
19936         (configure.ac): Addrange to compile lib/modf.c if needed.
19937         * modules/modf-ieee (Files): Add m4/modf-ieee.m4, m4/minus-zero.m4,
19938         m4/signbit.m4.
19939         (configure.ac): Invoke gl_FUNC_MODF_IEEE.
19940         * tests/test-math-c++.cc: Check the declaration of modf.
19941         * doc/posix-functions/modf.texi: Mention the modf-ieee module.
19943         Tests for module 'modfl-ieee'.
19944         * modules/modfl-ieee-tests: New file.
19945         * tests/test-modfl-ieee.c: New file.
19947         New module 'modfl-ieee'.
19948         * modules/modfl-ieee: New file.
19950         Tests for module 'modf-ieee'.
19951         * modules/modf-ieee-tests: New file.
19952         * tests/test-modf-ieee.c: New file.
19954         New module 'modf-ieee'.
19955         * modules/modf-ieee: New file.
19957         Tests for module 'modff-ieee'.
19958         * modules/modff-ieee-tests: New file.
19959         * tests/test-modff-ieee.c: New file.
19960         * tests/test-modf-ieee.h: New file.
19962         New module 'modff-ieee'.
19963         * modules/modff-ieee: New file.
19965 2012-02-26  Bruno Haible  <bruno@clisp.org>
19967         Tests for module 'fabsl-ieee'.
19968         * modules/fabsl-ieee-tests: New file.
19969         * tests/test-fabsl-ieee.c: New file.
19971         New module 'fabsl-ieee'.
19972         * modules/fabsl-ieee: New file.
19974         Tests for module 'fabs-ieee'.
19975         * modules/fabs-ieee-tests: New file.
19976         * tests/test-fabs-ieee.c: New file.
19978         New module 'fabs-ieee'.
19979         * modules/fabs-ieee: New file.
19981         Tests for module 'fabsf-ieee'.
19982         * modules/fabsf-ieee-tests: New file.
19983         * tests/test-fabsf-ieee.c: New file.
19984         * tests/test-fabs-ieee.h: New file.
19986         New module 'fabsf-ieee'.
19987         * modules/fabsf-ieee: New file.
19989 2012-02-26  Bruno Haible  <bruno@clisp.org>
19991         Tests for module 'fmal-ieee'.
19992         * modules/fmal-ieee-tests: New file.
19993         * tests/test-fmal-ieee.c: New file.
19995         New module 'fmal-ieee'.
19996         * modules/fmal-ieee: New file.
19998         Tests for module 'fma-ieee'.
19999         * modules/fma-ieee-tests: New file.
20000         * tests/test-fma-ieee.c: New file.
20002         New module 'fma-ieee'.
20003         * modules/fma-ieee: New file.
20005         Tests for module 'fmaf-ieee'.
20006         * modules/fmaf-ieee-tests: New file.
20007         * tests/test-fmaf-ieee.c: New file.
20008         * tests/test-fma-ieee.h: New file.
20010         New module 'fmaf-ieee'.
20011         * modules/fmaf-ieee: New file.
20013 2012-02-26  Bruno Haible  <bruno@clisp.org>
20015         Tests for module 'ldexpl-ieee'.
20016         * modules/ldexpl-ieee-tests: New file.
20017         * tests/test-ldexpl-ieee.c: New file.
20019         New module 'ldexpl-ieee'.
20020         * modules/ldexpl-ieee: New file.
20022         Tests for module 'ldexp-ieee'.
20023         * modules/ldexp-ieee-tests: New file.
20024         * tests/test-ldexp-ieee.c: New file.
20026         New module 'ldexp-ieee'.
20027         * modules/ldexp-ieee: New file.
20029         Tests for module 'ldexpf-ieee'.
20030         * modules/ldexpf-ieee-tests: New file.
20031         * tests/test-ldexpf-ieee.c: New file.
20032         * tests/test-ldexp-ieee.h: New file.
20034         New module 'ldexpf-ieee'.
20035         * modules/ldexpf-ieee: New file.
20037 2012-02-26  Bruno Haible  <bruno@clisp.org>
20039         Refactor frexp*-ieee tests.
20040         * tests/test-frexp-ieee.h: New file.
20041         * tests/test-frexpf-ieee.c: Include test-frexp-ieee.h.
20042         (main): Just call test_function.
20043         * tests/test-frexp-ieee.c: Include test-frexp-ieee.h.
20044         (main): Just call test_function.
20045         * tests/test-frexpl-ieee.c: Include test-frexp-ieee.h.
20046         (main): Just call test_function.
20047         * modules/frexpf-ieee-tests (Files): Add tests/test-frexp-ieee.h.
20048         * modules/frexp-ieee-tests (Files): Likewise.
20049         * modules/frexpl-ieee-tests (Files): Likewise.
20051         Tests for module 'frexpl-ieee'.
20052         * modules/frexpl-ieee-tests: New file.
20053         * tests/test-frexpl-ieee.c: New file.
20055         New module 'frexpl-ieee'.
20056         * modules/frexpl-ieee: New file.
20058         Tests for module 'frexp-ieee'.
20059         * modules/frexp-ieee-tests: New file.
20060         * tests/test-frexp-ieee.c: New file.
20062         New module 'frexp-ieee'.
20063         * modules/frexp-ieee: New file.
20065         Tests for module 'frexpf-ieee'.
20066         * modules/frexpf-ieee-tests: New file.
20067         * tests/test-frexpf-ieee.c: New file.
20069         New module 'frexpf-ieee'.
20070         * modules/frexpf-ieee: New file.
20072 2012-02-26  Bruno Haible  <bruno@clisp.org>
20074         roundl-ieee tests: More tests.
20075         * tests/test-roundl-ieee.c: Include isnanl-nolibm.h, infinity.h, nan.h.
20076         (main): Add tests for [MX] shaded specification in POSIX.
20077         * modules/roundl-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
20078         (Depends-on): Add isnanl-nolibm.
20080         round-ieee tests: More tests.
20081         * tests/test-round-ieee.c: Include isnand-nolibm.h, infinity.h, nan.h.
20082         (main): Add tests for [MX] shaded specification in POSIX.
20083         * modules/round-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
20084         (Depends-on): Add isnand-nolibm.
20086         roundf-ieee tests: More tests.
20087         * tests/test-roundf-ieee.c: Include isnanf-nolibm.h, infinity.h, nan.h.
20088         (main): Add tests for [MX] shaded specification in POSIX.
20089         * modules/roundf-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
20090         (Depends-on): Add isnanf-nolibm.
20092         truncl-ieee tests: More tests.
20093         * tests/test-truncl-ieee.c: Include isnanl-nolibm.h, infinity.h, nan.h.
20094         (main): Add tests for [MX] shaded specification in POSIX.
20095         * modules/truncl-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
20096         (Depends-on): Add isnanl-nolibm.
20098         trunc-ieee tests: More tests.
20099         * tests/test-trunc-ieee.c: Include isnand-nolibm.h, infinity.h, nan.h.
20100         (main): Add tests for [MX] shaded specification in POSIX.
20101         * modules/trunc-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
20102         (Depends-on): Add isnand-nolibm.
20104         truncf-ieee tests: More tests.
20105         * tests/test-truncf-ieee.c: Include isnanf-nolibm.h, infinity.h, nan.h.
20106         (main): Add tests for [MX] shaded specification in POSIX.
20107         * modules/truncf-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
20108         (Depends-on): Add isnanf-nolibm.
20110         ceill-ieee tests: More tests.
20111         * tests/test-ceill-ieee.c: Include isnanl-nolibm.h, infinity.h, nan.h.
20112         (main): Add tests for [MX] shaded specification in POSIX.
20113         * modules/ceill-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
20114         (Depends-on): Add isnanl-nolibm.
20116         ceil-ieee tests: More tests.
20117         * tests/test-ceil-ieee.c: Include isnand-nolibm.h, infinity.h, nan.h.
20118         (main): Add tests for [MX] shaded specification in POSIX.
20119         * modules/ceil-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
20120         (Depends-on): Add isnand-nolibm.
20122         ceilf-ieee tests: More tests.
20123         * tests/test-ceilf-ieee.c: Include isnanf-nolibm.h, infinity.h, nan.h.
20124         (main): Add tests for [MX] shaded specification in POSIX.
20125         * modules/ceilf-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
20126         (Depends-on): Add isnanf-nolibm.
20128         floorl-ieee tests: More tests.
20129         * tests/test-floorl-ieee.c: Include isnanl-nolibm.h, infinity.h, nan.h.
20130         (main): Add tests for [MX] shaded specification in POSIX.
20131         * modules/floorl-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
20132         (Depends-on): Add isnanl-nolibm.
20134         floor-ieee tests: More tests.
20135         * tests/test-floor-ieee.c: Include isnand-nolibm.h, infinity.h, nan.h.
20136         (main): Add tests for [MX] shaded specification in POSIX.
20137         * modules/floor-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
20138         (Depends-on): Add isnand-nolibm.
20140         floorf-ieee tests: More tests.
20141         * tests/test-floorf-ieee.c: Include isnanf-nolibm.h, infinity.h, nan.h.
20142         (main): Add tests for [MX] shaded specification in POSIX.
20143         * modules/floorf-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
20144         (Depends-on): Add isnanf-nolibm.
20146 2012-02-26  Bruno Haible  <bruno@clisp.org>
20148         fpieee: More comments.
20149         * m4/fpieee.m4 (gl_FP_IEEE): Add more comments.
20151 2012-02-25  Bruno Haible  <bruno@clisp.org>
20153         Tests for module 'log10l'.
20154         * modules/log10l-tests: New file.
20155         * tests/test-log10l.c: New file.
20156         * tests/test-math-c++.cc: Check the declaration of log10l.
20158         New module 'log10l'.
20159         * lib/math.in.h (log10l): New declaration.
20160         * lib/log10l.c: New file.
20161         * m4/log10l.m4: New file.
20162         * modules/log10l: New file.
20163         * m4/math_h.m4 (gl_MATH_H): Test whether log10l is declared.
20164         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG10L, HAVE_LOG10L,
20165         HAVE_DECL_LOG10L.
20166         * modules/math (Makefile.am): Substitute GNULIB_LOG10L, HAVE_LOG10L,
20167         HAVE_DECL_LOG10L.
20168         * doc/posix-functions/log10l.texi: Mention the new module.
20170 2012-02-25  Bruno Haible  <bruno@clisp.org>
20172         fmodl, remainder*: Avoid wrong results due to rounding errors.
20173         * lib/fmodl.c (fmodl): Correct the result if it is not within the
20174         expected bounds.
20175         * lib/remainderf.c (remainderf): Likewise.
20176         * lib/remainder.c (remainder): Likewise.
20177         * lib/remainderl.c (remainderl): Likewise.
20179 2012-02-25  Bruno Haible  <bruno@clisp.org>
20181         Tests for module 'remainderl'.
20182         * modules/remainderl-tests: New file.
20183         * tests/test-remainderl.c: New file.
20184         * tests/test-math-c++.cc: Check the declaration of remainderl.
20186         New module 'remainderl'.
20187         * lib/math.in.h (remainderl): New declaration.
20188         * lib/remainderl.c: New file.
20189         * m4/remainderl.m4: New file.
20190         * modules/remainderl: New file.
20191         * m4/math_h.m4 (gl_MATH_H): Test whether remainderl is declared.
20192         (gl_MATH_H_DEFAULTS): Initialize GNULIB_REMAINDERL, HAVE_REMAINDERL.
20193         * modules/math (Makefile.am): Substitute GNULIB_REMAINDERL,
20194         HAVE_REMAINDERL.
20195         * doc/posix-functions/remainderl.texi: Mention the new module.
20197 2012-02-25  Bruno Haible  <bruno@clisp.org>
20199         Tests for module 'remainderf'.
20200         * modules/remainderf-tests: New file.
20201         * tests/test-remainderf.c: New file.
20202         * tests/test-math-c++.cc: Check the declaration of remainderf.
20204         New module 'remainderf'.
20205         * lib/math.in.h (remainderf): New declaration.
20206         * lib/remainderf.c: New file.
20207         * m4/remainderf.m4: New file.
20208         * modules/remainderf: New file.
20209         * m4/math_h.m4 (gl_MATH_H): Test whether remainderf is declared.
20210         (gl_MATH_H_DEFAULTS): Initialize GNULIB_REMAINDERF, HAVE_REMAINDERF.
20211         * modules/math (Makefile.am): Substitute GNULIB_REMAINDERF,
20212         HAVE_REMAINDERF.
20213         * doc/posix-functions/remainderf.texi: Mention the new module.
20215 2012-02-25  Bruno Haible  <bruno@clisp.org>
20217         remainder: Support for MSVC.
20218         * lib/math.in.h (remainder): New declaration.
20219         * lib/remainder.c: New file.
20220         * m4/remainder.m4: New file.
20221         * modules/remainder (Files): Add lib/remainder.c, m4/remainder.m4.
20222         (Depends-on): Add math, round, fma.
20223         (configure.ac): Use results of gl_FUNC_REMAINDER.
20224         * m4/math_h.m4 (gl_MATH_H): Test whether remainder is declared.
20225         (gl_MATH_H_DEFAULTS): Initialize GNULIB_REMAINDER, HAVE_REMAINDER,
20226         HAVE_DECL_REMAINDER.
20227         * modules/math (Makefile.am): Substitute GNULIB_REMAINDER,
20228         HAVE_REMAINDER, HAVE_DECL_REMAINDER.
20229         * tests/test-math-c++.cc: Check the declaration of remainder.
20230         * doc/posix-functions/remainder.texi: Mention that the MSVC and IRIX 5
20231         problems are fixed.
20233 2012-02-25  Bruno Haible  <bruno@clisp.org>
20235         Tests for module 'fmodl'.
20236         * modules/fmodl-tests: New file.
20237         * tests/test-fmodl.c: New file.
20238         * tests/test-math-c++.cc: Check the declaration of fmodl.
20240         New module 'fmodl'.
20241         * lib/math.in.h (fmodl): New declaration.
20242         * lib/fmodl.c: New file.
20243         * m4/fmodl.m4: New file.
20244         * m4/math_h.m4 (gl_MATH_H): Test whether fmodl is declared.
20245         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FMODL, HAVE_FMODL,
20246         REPLACE_FMODL.
20247         * modules/math (Makefile.am): Substitute GNULIB_FMODL, HAVE_FMODL,
20248         REPLACE_FMODL.
20249         * modules/fmodl: New file.
20250         * doc/posix-functions/fmodl.texi: Mention the new module.
20252 2012-02-25  Bruno Haible  <bruno@clisp.org>
20254         Tests for module 'modfl'.
20255         * modules/modfl-tests: New file.
20256         * tests/test-modfl.c: New file.
20257         * tests/test-math-c++.cc: Check the declaration of modfl.
20259         New module 'modfl'.
20260         * lib/math.in.h (modfl): New declaration.
20261         * lib/modfl.c: New file.
20262         * m4/modfl.m4: New file.
20263         * m4/math_h.m4 (gl_MATH_H): Test whether modfl is declared.
20264         (gl_MATH_H_DEFAULTS): Initialize GNULIB_MODFL, HAVE_MODFL.
20265         * modules/math (Makefile.am): Substitute GNULIB_MODFL, HAVE_MODFL.
20266         * modules/modfl: New file.
20267         * doc/posix-functions/modfl.texi: Mention the new module.
20269 2012-02-25  Bruno Haible  <bruno@clisp.org>
20271         Tests for module 'fabsl'.
20272         * modules/fabsl-tests: New file.
20273         * tests/test-fabsl.c: New file.
20274         * tests/test-math-c++.cc: Check the declaration of fabsl.
20276         New module 'fabsl'.
20277         * lib/math.in.h (fabsl): New declaration.
20278         * lib/fabsl.c: New file.
20279         * m4/fabsl.m4: New file.
20280         * m4/math_h.m4 (gl_MATH_H): Test whether fabsl is declared.
20281         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FABSL, HAVE_FABSL,
20282         REPLACE_FABSL.
20283         * modules/math (Makefile.am): Substitute GNULIB_FABSL, HAVE_FABSL,
20284         REPLACE_FABSL.
20285         * modules/fabsl: New file.
20286         * doc/posix-functions/fabsl.texi: Mention the new module.
20288 2012-02-25  Bruno Haible  <bruno@clisp.org>
20290         fabs tests: More tests.
20291         * tests/test-fabs.c: Include <string.h>, minus-zero.h.
20292         (zero): New variable.
20293         (main): Add tests for signed zero.
20294         * modules/fabs-tests (Files): Add tests/minus-zero.h.
20296         fabsf tests: More tests.
20297         * tests/test-fabsf.c: Include <string.h>, minus-zero.h.
20298         (zero): New variable.
20299         (main): Add tests for signed zero.
20300         * modules/fabsf-tests (Files): Add tests/minus-zero.h.
20302 2012-02-24  Bruno Haible  <bruno@clisp.org>
20304         atanl: Provide function definition on MSVC.
20305         * m4/atanl.m4 (gl_FUNC_ATANL): Test also whether atanl can be used as a
20306         function pointer.
20307         * lib/math.in.h (atanl): Undefine if it does not exist as a function.
20309 2012-02-24  Bruno Haible  <bruno@clisp.org>
20311         acosl: Provide function definition on MSVC.
20312         * m4/acosl.m4 (gl_FUNC_ACOSL): Test also whether acosl can be used as a
20313         function pointer.
20314         * lib/math.in.h (acosl): Undefine if it does not exist as a function.
20316 2012-02-24  Bruno Haible  <bruno@clisp.org>
20318         asinl: Provide function definition on MSVC.
20319         * m4/asinl.m4 (gl_FUNC_ASINL): Test also whether asinl can be used as a
20320         function pointer.
20321         * lib/math.in.h (asinl): Undefine if it does not exist as a function.
20323 2012-02-24  Bruno Haible  <bruno@clisp.org>
20325         tanl: Provide function definition on MSVC.
20326         * m4/tanl.m4 (gl_FUNC_TANL): Test also whether tanl can be used as a
20327         function pointer.
20328         * lib/math.in.h (tanl): Undefine if it does not exist as a function.
20330 2012-02-24  Bruno Haible  <bruno@clisp.org>
20332         cosl: Provide function definition on MSVC.
20333         * m4/cosl.m4 (gl_FUNC_COSL): Test also whether cosl can be used as a
20334         function pointer.
20335         * lib/math.in.h (cosl): Undefine if it does not exist as a function.
20337 2012-02-24  Bruno Haible  <bruno@clisp.org>
20339         sinl: Provide function definition on MSVC.
20340         * m4/sinl.m4 (gl_FUNC_SINL): Test also whether sinl can be used as a
20341         function pointer.
20342         * lib/math.in.h (sinl): Undefine if it does not exist as a function.
20344 2012-02-24  Bruno Haible  <bruno@clisp.org>
20346         logl: Provide function definition on MSVC.
20347         * m4/logl.m4 (gl_FUNC_LOGL): Test also whether logl can be used as a
20348         function pointer.
20349         * lib/math.in.h (logl): Undefine if it does not exist as a function.
20351 2012-02-24  Bruno Haible  <bruno@clisp.org>
20353         expl: Provide function definition on MSVC.
20354         * m4/expl.m4 (gl_FUNC_EXPL): Test also whether expl can be used as a
20355         function pointer.
20356         * lib/math.in.h (expl): Undefine if it does not exist as a function.
20358 2012-02-24  Bruno Haible  <bruno@clisp.org>
20360         sqrtl: Provide function definition on MSVC.
20361         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Test also whether sqrtl can be used as
20362         a function pointer.
20363         * lib/math.in.h (sqrtl): Undefine if it does not exist as a function.
20365 2012-02-24  Bruno Haible  <bruno@clisp.org>
20367         ceill: Provide function definition on MSVC.
20368         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Test also whether ceill can be
20369         used as a function pointer.
20370         * lib/math.in.h (ceill): Undefine if it is not declared as a function.
20372 2012-02-24  Bruno Haible  <bruno@clisp.org>
20374         floorl: Provide function definition on MSVC.
20375         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Test also whether floorl can be
20376         used as a function pointer.
20377         * lib/math.in.h (floorl): Undefine if it is not declared as a function.
20379 2012-02-24  Bruno Haible  <bruno@clisp.org>
20381         ceilf: Provide function definition on MSVC.
20382         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Test also whether ceilf can be
20383         used as a function pointer.
20384         * lib/math.in.h (ceilf): Undefine if it is not declared as a function.
20386 2012-02-24  Bruno Haible  <bruno@clisp.org>
20388         floorf: Provide function definition on MSVC.
20389         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Test also whether floorf can be
20390         used as a function pointer.
20391         * lib/math.in.h (floorf): Undefine if it is not declared as a function.
20393 2012-02-24  Paul Eggert  <eggert@cs.ucla.edu>
20395         stdnoreturn: new module
20396         This implements a replacement for C11's <stdnoreturn.h>.
20397         * doc/gnulib.texi (Header File Substitutes): Add stdnoreturn.
20398         * doc/posix-headers/stdnoreturn.texi, lib/stdnoreturn.in.h:
20399         * m4/stdnoreturn.m4, modules/stdnoreturn, modules/stdnoreturn-tests:
20400         * tests/test-stdnoreturn.c: New files.
20402 2012-02-24  Stanislav Brabec  <sbrabec@suse.cz>  (tiny change)
20404         regex: fix false multibyte matches in some regular expressions
20405         See <http://sourceware.org/bugzilla/show_bug.cgi?id=13637>
20406         and <http://sourceware.org/ml/libc-alpha/2012-02/msg00521.html>.
20407         * lib/regex_internal.c (re_string_skip_chars):
20408         Fix miscomputation of remain_len that may cause incomplete
20409         multi-byte character and false match.
20411 2012-02-24  Jim Meyering  <meyering@redhat.com>
20413         maint.mk: tell sc_prohibit_strcmp to ding "0 == strcmp (...)", too
20414         * top/maint.mk (sc_prohibit_strcmp): Also prohibit uses of strcmp
20415         uses with "==" *before* the call, e.g., 0 == strcmp (...)
20416         Remove now-unnecessary str''cmp obfuscation.
20417         Suggested by Akim Demaille.
20419 2012-02-24  Bruno Haible  <bruno@clisp.org>
20421         streq: Rename macro.
20422         * lib/streq.h (STREQ_OPT): Renamed from STREQ.
20423         * NEWS: Mention the change.
20424         * lib/mbrtowc.c (mbrtowc): Update.
20425         * lib/uniwidth/cjk.h (is_cjk_encoding): Update.
20426         * lib/wcwidth.c (wcwidth): Update.
20427         Suggested by Akim Demaille and Jim Meyering.
20429 2012-02-20  Paul Eggert  <eggert@cs.ucla.edu>
20431         regex: fix typo in definition of MIN
20432         * lib/regex_internal.h (MIN): Fix typo.  Problem reported by Thomas
20433         Schwinge in <http://sourceware.org/bugzilla/show_bug.cgi?id=11638#c4>.
20435 2012-02-19  Paul Eggert  <eggert@cs.ucla.edu>
20436             Bruno Haible  <bruno@clisp.org>
20438         acl: Don't use ACL_CNT and similar ops, since they are unreliable.
20439         * lib/file-has-acl.c (file_has_acl) [HP-UX, NonStop Kernel]: Read the
20440         entries into a stack-allocated buffer directly.
20441         * lib/copy-acl.c (qcopy_acl) [HP-UX, NonStop Kernel]: Likewise.
20443 2012-02-19  Paul Eggert  <eggert@cs.ucla.edu>
20444             Bruno Haible  <bruno@clisp.org>
20446         acl: Don't use GETACLCNT and similar ops, since they are unreliable.
20448          - There were several instances of this pattern:
20450              for (;;) {
20451                n = acl (f, GETACLCNT, 0, NULL);
20452                [ allocate an array A of size N ]
20453                if (acl (f, GETACL, n, a) == n)
20454                  break;
20455              }
20457            This loop might never terminate if some other process is constantly
20458            manipulating the file's ACL.  The loop should be rewritten to
20459            terminate.
20461          - The acl (... GETACLNT ...) call is merely an optimization; its value
20462            is merely a hint as to how big to make the array.  A better
20463            optimization is to avoid the acl (... GETACLNT ...)  call entirely,
20464            and just guess a reasonably-big size, growing the size and trying
20465            again if it's not large enough.  This guarantees termination, and
20466            saves a system call.
20468         * lib/acl-internal.h: Include <limits.h>.
20469         (MIN, SIZE_MAX): New macros.
20470         * lib/file-has-acl.c (file_has_acl) [Solaris]: Read the entries into
20471         a stack-allocated buffer, and use malloc if it does not fit. Don't
20472         use GETACLCNT.
20473         * lib/set-mode-acl.c (qset_acl) [Solaris]: Likewise.
20475 2012-02-19  Bruno Haible  <bruno@clisp.org>
20477         acl: Fix endless loop on Solaris with vxfs.
20478         * lib/file-has-acl.c (file_has_acl) [Solaris]: Treat a failing
20479         acl()/facl() call for ACE_GETACL like a failing call for ACE_GETACLCNT.
20480         * lib/set-mode-acl.c (qset_acl) [Solaris]: Likewise.
20481         * lib/copy-acl.c (qcopy_acl)[Solaris]: Likewise.
20482         * tests/test-sameacls.c (main)[Solaris]: Likewise.
20483         Reported by Bill Jones in
20484         <http://debbugs.gnu.org/cgi/bugreport.cgi?bug=10639>, via Paul Eggert.
20486 2012-02-19  Bruno Haible  <bruno@clisp.org>
20488         acl: Fix copy-acl test failure on Solaris 11 2011-11.
20489         * lib/file-has-acl.c (NEW_ACE_WRITEA_DATA): New macro.
20490         (acl_ace_nontrivial): Relax the restrictions on access_masks[] so
20491         that this function returns 0 in some more cases.
20493 2012-02-19  Bruno Haible  <bruno@clisp.org>
20495         acl: Update doc references.
20496         * doc/acl-resources.txt: Update links to Solaris documentation.
20498 2012-02-19  Bruno Haible  <bruno@clisp.org>
20500         Fix test failure in many locales on Solaris 11.
20501         * tests/test-pipe-filter-gi1.c (main): Don't use range expression in
20502         'tr' arguments.
20503         * tests/test-pipe-filter-ii1.c (main): Likewise.
20504         * build-aux/bootstrap (check_versions): Run 'tr' command with range
20505         expressions in the C locale.
20506         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): Likewise.
20507         * m4/host-os.m4 (gl_HOST_OS): Likewise.
20509 2012-02-19  Bruno Haible  <bruno@clisp.org>
20511         gnulib-tool: Improve usage message.
20512         * gnulib-tool (func_usage): Move doc of --help and --version to the
20513         section "Operation modes".
20515 2012-02-18  Reuben Thomas  <rrt@sc3d.org>
20517         README-release: make it easier to execute commands
20518         * top/README-release: break commands out on to separate lines.
20520 2012-02-16  Stefano Lattarini  <stefano.lattarini@gmail.com>
20522         GNUmakefile: simplify detection of unconfigured trees
20523         * top/GNUmakefile: Use $(wildcard) instead of $(shell) to determine
20524         whether the tree make is being run from is already configured or
20525         not.  Related simplifications.
20527 2012-02-13  Simon Josefsson  <simon@josefsson.org>
20529         * gnulib-tool (func_usage): Document --help and --version.
20531 2012-02-11  Jim Meyering  <meyering@redhat.com>
20533         bootstrap: don't exit 0 upon gnulib-tool failure
20534         * build-aux/bootstrap (gnulib_tool): If gnulib-tool fails, exit with
20535         its exit status, not 0.
20537 2011-12-19  Reuben Thomas  <rrt@sc3d.org>
20539         README-release: various improvements
20540         * top/README-release: Give a command to push changes for the
20541         release.  Add "distcheck" to list of other pre-release checks.
20542         Fix instance of "make stable" which should be "make TYPE".
20544 2012-02-09  Paul Eggert  <eggert@cs.ucla.edu>
20546         maint: replace FSF snail-mail addresses with URLs
20547         * config/argz.mk, lib/accept4.c, lib/alignof.h, lib/alloca.in.h:
20548         * lib/alphasort.c, lib/arcfour.c, lib/arcfour.h, lib/arctwo.c:
20549         * lib/arctwo.h, lib/argz.c, lib/arpa_inet.in.h, lib/asnprintf.c:
20550         * lib/asprintf.c, lib/assert.in.h, lib/base32.c, lib/base32.h:
20551         * lib/base64.c, lib/base64.h, lib/c-ctype.c, lib/c-ctype.h:
20552         * lib/c-strcase.h, lib/c-strcasecmp.c, lib/c-strncasecmp.c:
20553         * lib/check-version.c, lib/check-version.h, lib/config.charset:
20554         * lib/ctype.in.h, lib/des.c, lib/des.h, lib/dup3.c, lib/errno.in.h:
20555         * lib/float+.h, lib/fnmatch.c, lib/fnmatch.in.h, lib/fnmatch_loop.c:
20556         * lib/fseeko.c, lib/gai_strerror.c, lib/gc-gnulib.c:
20557         * lib/gc-libgcrypt.c, lib/gc-pbkdf2-sha1.c, lib/gc.h:
20558         * lib/getaddrinfo.c, lib/getdelim.c, lib/getfilecon.c, lib/getline.c:
20559         * lib/getlogin_r.c, lib/getpass.c, lib/getpass.h, lib/gettext.h:
20560         * lib/gettimeofday.c, lib/glob.in.h, lib/glthread/cond.c:
20561         * lib/glthread/cond.h, lib/glthread/lock.c, lib/glthread/lock.h:
20562         * lib/glthread/thread.c, lib/glthread/thread.h:
20563         * lib/glthread/threadlib.c, lib/glthread/yield.h, lib/hmac-md5.c:
20564         * lib/hmac-sha1.c, lib/hmac.h, lib/iconv.c, lib/iconv.in.h:
20565         * lib/iconv_close.c, lib/iconv_open.c, lib/inet_ntop.c, lib/isfinite.c:
20566         * lib/isinf.c, lib/iswblank.c, lib/langinfo.in.h, lib/link.c:
20567         * lib/localcharset.c, lib/localcharset.h, lib/lseek.c, lib/malloc.c:
20568         * lib/malloca.c, lib/malloca.h, lib/md2.c, lib/md2.h, lib/md4.c:
20569         * lib/md4.h, lib/md5.c, lib/md5.h, lib/memmem.c, lib/mempcpy.c:
20570         * lib/memset.c, lib/memxor.c, lib/memxor.h, lib/minmax.h, lib/mktime.c:
20571         * lib/msvc-inval.c, lib/msvc-inval.h, lib/msvc-nothrow.c:
20572         * lib/msvc-nothrow.h, lib/netdb.in.h, lib/netinet_in.in.h, lib/nproc.c:
20573         * lib/nproc.h, lib/obstack_printf.c, lib/pathmax.h, lib/pipe.c:
20574         * lib/pipe2.c, lib/poll.c, lib/poll.in.h, lib/printf-args.c:
20575         * lib/printf-args.h, lib/printf-parse.c, lib/printf-parse.h:
20576         * lib/pselect.c, lib/pthread.in.h, lib/pty-private.h, lib/pty.in.h:
20577         * lib/read-file.c, lib/read-file.h, lib/ref-add.sin, lib/ref-del.sin:
20578         * lib/regcomp.c, lib/regex.c, lib/regex.h, lib/regex_internal.c:
20579         * lib/regex_internal.h, lib/regexec.c, lib/rijndael-alg-fst.c:
20580         * lib/rijndael-alg-fst.h, lib/rijndael-api-fst.c:
20581         * lib/rijndael-api-fst.h, lib/rint.c, lib/rintf.c, lib/rintl.c:
20582         * lib/round.c, lib/roundf.c, lib/roundl.c, lib/scandir.c, lib/select.c:
20583         * lib/sha1.c, lib/sha1.h, lib/size_max.h, lib/snprintf.c:
20584         * lib/stdalign.in.h, lib/stdarg.in.h, lib/stdbool.in.h:
20585         * lib/stddef.in.h, lib/stdint.in.h, lib/stdio.in.h, lib/str-kmp.h:
20586         * lib/str-two-way.h, lib/strcasecmp.c, lib/strcasestr.c, lib/strdup.c:
20587         * lib/striconv.c, lib/striconv.h, lib/string.in.h, lib/strings.in.h:
20588         * lib/strncasecmp.c, lib/strndup.c, lib/strnlen.c, lib/strpbrk.c:
20589         * lib/strptime.c, lib/strsep.c, lib/strstr.c, lib/strverscmp.c:
20590         * lib/sys_file.in.h, lib/sys_ioctl.in.h, lib/sys_select.in.h:
20591         * lib/sys_socket.in.h, lib/sys_stat.in.h, lib/sys_time.in.h:
20592         * lib/sys_times.in.h, lib/sys_types.in.h, lib/sys_uio.in.h:
20593         * lib/sys_utsname.in.h, lib/sys_wait.in.h, lib/tcgetsid.c:
20594         * lib/termios.in.h, lib/time.in.h, lib/time_r.c, lib/timegm.c:
20595         * lib/times.c, lib/unictype/3level.h, lib/unictype/3levelbit.h:
20596         * lib/unistd.in.h, lib/vasnprintf.c, lib/vasnprintf.h, lib/vasprintf.c:
20597         * lib/vsnprintf.c, lib/waitpid.c, lib/wchar.in.h, lib/wctype.in.h:
20598         * lib/xsize.h, tests/test-closein.c, tests/test-des.c:
20599         * tests/test-fclose.c, tests/test-fgetc.c, tests/test-filevercmp.c:
20600         * tests/test-fputc.c, tests/test-fread.c, tests/test-fwrite.c:
20601         * tests/test-gc-arcfour.c, tests/test-gc-arctwo.c, tests/test-gc-des.c:
20602         * tests/test-gc-hmac-md5.c, tests/test-gc-hmac-sha1.c:
20603         * tests/test-gc-md2.c, tests/test-gc-md4.c, tests/test-gc-md5.c:
20604         * tests/test-gc-pbkdf2-sha1.c, tests/test-gc-rijndael.c:
20605         * tests/test-gc-sha1.c, tests/test-gc.c, tests/test-getdelim.c:
20606         * tests/test-getline.c, tests/test-getndelim2.c, tests/test-md2.c:
20607         * tests/test-md4.c, tests/test-parse-datetime.c, tests/test-perror.c:
20608         * tests/test-perror2.c, tests/test-pipe.c, tests/test-pipe2.c:
20609         * tests/test-poll.c, tests/test-quotearg-simple.c:
20610         * tests/test-quotearg.c, tests/test-quotearg.h:
20611         * tests/test-round-ieee.c, tests/test-round1.c:
20612         * tests/test-roundf-ieee.c, tests/test-roundf1.c:
20613         * tests/test-roundl-ieee.c, tests/test-roundl.c:
20614         * tests/test-safe-alloc.c, tests/test-sigpipe.c:
20615         * tests/test-spawn-pipe-child.c, tests/test-spawn-pipe-main.c:
20616         * tests/test-strerror.c, tests/test-strerror_r.c:
20617         * tests/test-strsignal.c, tests/test-strverscmp.c:
20618         * tests/test-xmemdup0.c:
20619         Replace FSF snail mail addresses with URLs, as per GNU coding
20620         standards.  See glibc bug
20621         <http://sourceware.org/bugzilla/show_bug.cgi?id=13673>.
20623 2011-12-22  Reuben Thomas  <rrt@sc3d.org>
20625         README-release: capitalize a word and split a line
20626         * top/README-release: Fix punctuation and spacing.
20628 2012-02-08  Akim Demaille  <demaille@gostai.com>
20630         fatal-signal: use C prototypes (with explicit void).
20631         * lib/fatal-signal.c (uninstall_handlers, install_handlers)
20632         (init_fatal_signal_set, block_fatal_signals): Fix signatures.
20634 2012-02-07  Paul Eggert  <eggert@cs.ucla.edu>
20636         regex: spelling fix
20637         * lib/regexec.c: spelling fix
20639         regex: rely on stdint.h for SIZE_MAX
20640         * lib/regex_internal.h (SIZE_MAX): Remove; stdint.h supplies this now.
20642 2012-02-07  Paul Eggert  <eggert@cs.ucla.edu>
20644         regex: merge glibc changes
20646         * lib/regcomp.c (init_dfa): Tighten overflow checks to test
20647         for IDX_MAX too, since IDX_MAX can be much less than SIZE_MAX.
20648         (init_word_char): Work even if bitset words are not exactly 32 or
20649         64 bits wide.  Don't assume there are no padding bits.
20650         * lib/regex.c [_LIBC]: Do not include <config.h>.
20651         [!_LIBC]: Add pragmas to ignore -Wsuggest-attributes=pure
20652         and -Wtype-limits.
20653         * lib/regex.h (__USE_GNU): Renamed from __USE_GNU_REGEX, to avoid
20654         needless disagreement with glibc.  All uses changed.  Define it to
20655         1 only if _GNU_SOURCE, to match glibc.
20656         (_REG_RM_NAME): Remove; no longer needed, since the names in
20657         question are now all protected by __USE_GNU.
20658         (_REG_RE_NAME): Remove; replaced by glibc's __REPB_PREFIX.
20659         (REG_TRANSLATE_TYPE): Remove; replaced by glibc's __RE_TRANSLATE_TYPE.
20660         * lib/regex_internal.h (MIN): New macro.
20662         2012-01-03 Ulrich Drepper <drepper@gmail.com>
20663         * lib/regcomp.c (init_word_char): Optimize regex a bit.
20665         2011-12-30 Jakub Jelinek <jakub@redhat.com>
20666         * lib/regex_internal.c (re_string_fetch_byte_case):
20667         Fix up regcomp/regexec.  The problem is that parse_bracket_symbol
20668         is miscompiled, and it turns out it is because of an incorrect
20669         attribute on re_string_fetch_byte_case.  Unlike
20670         re_string_peek_byte_case, this one is really not pure, it modifies
20671         memory (increments pstr->cur_idx), and with the pure attribute GCC
20672         assumed it doesn't and it cached the presumed value of
20673         regexp->cur_idx in a variable across the
20674          for (;; ++i)
20675            {
20676              if (i >= BRACKET_NAME_BUF_SIZE)
20677                return REG_EBRACK;
20678              if (token->type == OP_OPEN_CHAR_CLASS)
20679                ch = re_string_fetch_byte_case (regexp);
20680              else
20681                ch = re_string_fetch_byte (regexp);
20682              if (re_string_eoi(regexp))
20683                return REG_EBRACK;
20684              if (ch == delim && re_string_peek_byte (regexp, 0) == ']')
20685                break;
20686              elem->opr.name[i] = ch;
20687            }
20689         2011-11-29 Andreas Schwab <schwab@redhat.com>
20690         * lib/regcomp.c (build_equiv_class):
20691         Fix access after end of search string in regex matcher.
20693         2011-11-12 Ulrich Drepper <drepper@redhat.com>
20694         * lib/regex_internal.c, lib/regex_internal.h: Fix warnings in regex.
20696         2011-10-12 Ulrich Drepper <drepper@redhat.com>
20697         * lib/regcomp.c (parse_branch): One more regex memory leak fixed.
20699         2011-10-11 Ulrich Drepper <drepper@redhat.com>
20700         * lib/regcomp.c (parse_branch, parse_sub_exp):
20701         More regex memory leak fixes and tests.
20702         (parse_sub_exp, parse_bracket_exp):
20703         Fix memory leak for some invalid regular expressions.
20705         2011-05-28 Ulrich Drepper <drepper@gmail.com>
20706         * lib/regex_internal.c, lib/regexec.c:
20707         Fix unnecessary overallocation due to incomplete character.  When
20708         incomplete characters are found at the end of a string the code
20709         ran amok and allocated lots of memory.  Stricter limits are now in
20710         place.
20712         2011-05-20 Reuben Thomas <rrt@sc3d.org>
20713         * lib/regex.h: Update documentation.
20715         2011-05-16 Aharon Robbins <arnold@skeeve.com>
20716         * lib/regex.h: Update RE_SYNTAX*_AWK constants.
20718         2010-05-05 Andreas Schwab <schwab@redhat.com>
20719         * lib/regexec.c (find_collation_sequence_value):
20720         Fix lookup of collation sequence value during regexp matching.
20722         2010-01-22 Ulrich Drepper <drepper@redhat.com>
20723         * lib/regex_internal.c (re_dfa_add_node): Extend overflow detection.
20725         2008-01-16 Ulrich Drepper <drepper@redhat.com>
20726         * lib/regex.h: Cleanup namespace.
20728         2007-11-26 Ulrich Drepper <drepper@redhat.com>
20729         * lib/regex.h (REG_ENOSYS): Define REG_ENOSYS also for __USE_XOPEN2K.
20731         2007-08-26 Ulrich Drepper <drepper@redhat.com>
20732         * lib/regex_internal.h: Prevent some declarations and definitions
20733         to be seen when used in tests.
20735         2005-05-06 Ulrich Drepper <drepper@redhat.com>
20736         * lib/regex_internal.h: Include bits/libc-lock.h or define dummy
20737         __libc_lock_* macros if not _LIBC.
20738         (struct re_dfa_t): Add lock.
20740 2012-02-07  Eric Blake  <eblake@redhat.com>
20742         maint.mk: also prohibit lower-case @var@
20743         * top/maint.mk (sc_makefile_at_at_check): Enhance check to cover
20744         lower case, like @top_srcdir@.
20746 2012-02-04  Eric Blake  <eblake@redhat.com>
20748         canonicalize: avoid uninitialized memory use
20749         * lib/canonicalize-lgpl.c (__realpath): Avoid possibility of
20750         random '/' left in dest.
20751         * lib/canonicalize.c (canonicalize_filename_mode): Likewise.
20753 2012-02-04  Bruno Haible  <bruno@clisp.org>
20755         isatty: Fix test failure of ptsname_r on native Windows.
20756         * lib/isatty.c (_isatty_nothrow): Upon exception, return 0, not -1,
20757         and don't set errno.
20758         (isatty): Test first whether fd is valid. Set errno when returning 0.
20760 2012-02-04  Bruno Haible  <bruno@clisp.org>
20762         spawn-pipe tests: Fix a NULL program name in a diagnostic.
20763         * tests/test-spawn-pipe-main.c: Include progname.h.
20764         (main): Invoke set_program_name.
20765         * modules/spawn-pipe-tests (Depends-on): Add progname.
20767         nonblocking-socket tests: Fix a NULL program name in a diagnostic.
20768         * tests/test-nonblocking-socket-main.c: Include progname.h.
20769         (main): Invoke set_program_name.
20770         * modules/nonblocking-socket-tests (Depends-on): Add progname.
20772         nonblocking-pipe tests: Fix a NULL program name in a diagnostic.
20773         * tests/test-nonblocking-pipe-main.c: Include progname.h.
20774         (main): Invoke set_program_name.
20775         * modules/nonblocking-pipe-tests (Depends-on): Add progname.
20777 2012-02-04  Eric Blake  <eblake@redhat.com>
20779         canonicalize-lgpl: fix // handling
20780         * lib/canonicalize-lgpl.c (__realpath): Don't convert /// to //.
20782         canonicalize: fix // handling
20783         * lib/canonicalize.c (canonicalize_filename_mode): Don't convert
20784         /// to //, since only // is special.
20786 2012-02-04  Bruno Haible  <bruno@clisp.org>
20788         ioctl: Fix test failure on native Windows.
20789         * lib/ioctl.c: Include msvc-nothrow.h.
20790         (primary_ioctl): If fd is not a valid handle, set errno to EBADF.
20792 2012-02-04  Bruno Haible  <bruno@clisp.org>
20794         fsync: Avoid test failure on native Windows.
20795         * lib/fsync.c (fsync) [Windows]: Don't fail if the handle is merely
20796         read-only.
20798 2012-02-04  Bruno Haible  <bruno@clisp.org>
20800         sys_select: Avoid syntax error on OpenBSD 5.0.
20801         * lib/sys_select.in.h [OpenBSD]: When /usr/include/pthread.h is
20802         currently being included, just include the system's <sys/select.h>.
20804 2012-02-04  Bruno Haible  <bruno@clisp.org>
20806         sys_select: Avoid syntax error on OpenBSD 5.0.
20807         * lib/sys_select.in.h: Include <signal.h> only after the include_next
20808         <sys/select.h>, not before.
20809         Reported by Jiri B <jirib@devio.us>.
20811 2012-02-04  Bruno Haible  <bruno@clisp.org>
20813         get-rusage-as, get-rusage-data tests: Avoid test failure with gcc-4.7.
20814         * tests/test-get-rusage-as.c (main): Assign the malloc() results to
20815         global variables.
20816         * tests/test-get-rusage-data.c (main): Likewise.
20817         Reported by Jim Meyering.
20819 2012-02-04  Bruno Haible  <bruno@clisp.org>
20821         stdioext: Fix last commit.
20822         * lib/fwritable.c [EPLAN9]: Include <fcntl.h>.
20824 2012-02-03  Bruno Haible  <bruno@clisp.org>
20826         stdioext: Add tentative support for Plan9.
20827         * lib/stdio-impl.h: Include <errno.h>.
20828         * lib/fseterr.c (fseterr) [EPLAN9]: Add conditional code.
20829         * lib/freadable.c (freadable): Likewise.
20830         * lib/fwritable.c (fwritable): Likewise.
20831         * lib/fbufmode.c (fbufmode): Likewise.
20832         * lib/freading.c (freading): Likewise.
20833         * lib/fwriting.c (fwriting): Likewise.
20834         * lib/freadptr.c (freadptr): Likewise.
20835         * lib/freadseek.c (freadptrinc): Likewise.
20836         * lib/freadahead.c (freadahead): Likewise.
20837         * lib/fpurge.c (fpurge): Likewise.
20838         * lib/fseeko.c (rpl_fseeko): Likewise.
20839         * m4/fpending.m4 (gl_PREREQ_FPENDING): Add a variant for Plan9.
20840         Reported by Jens Staal <staal1978@gmail.com>.
20842 2012-02-02  Jim Meyering  <meyering@redhat.com>
20844         file-has-acl: suppress a warning from gcc -Wsuggest-attribute=const
20845         * lib/file-has-acl.c (file_has_acl): This function (for some #ifdefs)
20846         would evoke a new gcc warning.  Given all of the #ifdefs, it is better
20847         not even to try to add the attribute.  Instead, add a pragma to suppress
20848         the suggestion/warning.
20850 2012-01-31  Karl Berry  <karl@gnu.org>
20852         setstate doc: typo.
20853         * doc/posix-functions/setstate.texi (setstate): { not (.
20855 2012-01-31  Bruno Haible  <bruno@clisp.org>
20857         popen: Make more robust on Windows.
20858         * lib/popen.c: On native Windows, use the _popen based code even if
20859         HAVE_POPEN is set.
20860         * doc/posix-functions/popen.texi: Mention necessity of COMSPEC
20861         environment variable on native Windows.
20863 2012-01-30  Bruno Haible  <bruno@clisp.org>
20865         pclose: Fix typo.
20866         * lib/stdio.in.h (pclose): Fix typo in warning message.
20868 2012-01-30  Bruno Haible  <bruno@clisp.org>
20870         doc about getlogin_r, setstate.
20871         * doc/posix-functions/getlogin_r.texi: List the incompatible
20872         declaration problem under "not fixed by gnulib".
20873         * doc/posix-functions/setstate.texi: Mention incompatible declaration
20874         problem on Solaris 11 and other platforms.
20876 2012-01-30  Chuanchang Jia  <chuanchang.jia@gmail.com>  (tiny change)
20877             Bruno Haible  <bruno@clisp.org>
20879         poll tests: Make test more robust.
20880         * tests/test-poll.c: Include macros.h.
20881         (test_accept_first, test_pair, test_socket_pair, test_pipe): Verify
20882         return value of various I/O operations.
20883         * modules/poll-tests (Files): Add tests/macros.h.
20885 2012-01-30  Bruno Haible  <bruno@clisp.org>
20887         sys_stat: Fix support for mingw64 and MSVC.
20888         * lib/sys_stat.in.h (stat) [AIX]: Don't redefine 'stat' if the system
20889         header files already do it.
20890         (stat) [mingw, msvc]: Redefine the symbol to which stat is defined, not
20891         stat itself.
20892         Reported by Marc-André Lureau <marcandre.lureau@redhat.com>.
20894 2012-01-30  Bruno Haible  <bruno@clisp.org>
20896         wcwidth: Work around bug in UTF-8 locale on OpenBSD 5.0.
20897         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Test also wcwidth of U+05B0.
20898         * doc/posix-functions/wcwidth.texi: Mention the OpenBSD 5.0 bug.
20900 2012-01-29  Bruno Haible  <bruno@clisp.org>
20902         quotearg: Fix test failure on MacOS X 10.5.
20903         * tests/test-quotearg-simple.c: Include localcharset.h.
20904         (main): If the locale encoding is not ASCII, bypass the tests of
20905         locale_quoting_style and clocale_quoting_style.
20906         * modules/quotearg-tests (Depends-on): Add 'localcharset'.
20908 2012-01-29  Jim Meyering  <meyering@redhat.com>
20910         maint.mk: sc_prohibit_canonicalize_without_use: avoid false positive
20911         * top/maint.mk (sc_prohibit_canonicalize_without_use): Also
20912         detect uses of canonicalize_file_name.
20914 2012-01-28  Bruno Haible  <bruno@clisp.org>
20916         test-framework-sh: Fix test failure with AIX 7.1 diff.
20917         * tests/init.sh (compare_): Don't use 'diff -u' if it inserts a space
20918         in column 1, like 'diff -c' does.
20919         * tests/test-init.sh (test_compare): Don't repeat the test from init.sh
20920         whether 'diff -u' is used. Instead, test whether the output contains
20921         some '@' character.
20923 2012-01-28  Paul Eggert  <eggert@cs.ucla.edu>
20925         strtoimax: eliminate need for stdint.h, inttypes.h checks
20926         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Don't use
20927         gl_AC_HEADER_STDINT_H or gl_AC_HEADER_INTTYPES_H.  This reduces
20928         the prerequisites for a recently-introduced strtoimax test.
20929         I guess this might cause strtoimax to be replaced when not
20930         strictly necessary on older hosts, but this shouldn't introduce
20931         any bugs and it should make Emacs 'configure' faster on typical
20932         modern hosts.  Problem discovered when importing the latest gnulib
20933         to an Emacs test version.
20934         * modules/strtoimax (Files): Remove m4/stdint_h.m4, m4/inttypes_h.m4.
20936 2012-01-28  Bruno Haible  <bruno@clisp.org>
20938         sys_time: Override 'struct timeval' on some native Windows platforms.
20939         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Test whether tv_sec
20940         has the right type. Set REPLACE_STRUCT_TIMEVAL if not.
20941         (gl_HEADER_SYS_TIME_H_DEFAULTS): Initialize REPLACE_STRUCT_TIMEVAL.
20942         * lib/sys_time.in.h: Include <winsock2.h> also when 'struct timeval'
20943         needs to be overridden.
20944         (timeval): Override if REPLACE_STRUCT_TIMEVAL is set.
20945         * modules/sys_time (Makefile.am): Substitute REPLACE_STRUCT_TIMEVAL.
20946         * tests/test-sys_select.c: Check that the tv_sec member has the same
20947         size as a 'time_t'.
20948         * tests/test-sys_time.c: Likewise.
20949         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): If REPLACE_STRUCT_TIMEVAL
20950         is set, set also REPLACE_GETTIMEOFDAY.
20951         * lib/gettimeofday.c (gettimeofday): If 'struct timeval' is overridden,
20952         convert the resulting 'struct timeval' before returning.
20953         * lib/select.c: Include <sys/time.h>.
20954         (select, timeval): Undefine at the right place.
20955         * modules/select (Depends-on): Add sys_time.
20956         * doc/posix-headers/sys_time.texi: Mention the problem with tv_sec on
20957         some Windows platforms.
20958         Reported by Marc-André Lureau <marcandre.lureau@redhat.com>.
20960 2012-01-28  Marc-André Lureau  <marcandre.lureau@redhat.com>  (tiny change)
20962         accept4, fcntl, socket modules: Avoid warnings on x86_64 mingw64.
20963         * lib/accept4.c (accept4): Use intptr_t to convert handle pointer to
20964         an integer.
20965         * lib/fcntl.c (dupfd): Likewise.
20966         * lib/w32sock.h (SOCKET_TO_FD): Likewise.
20968 2012-01-28  Bruno Haible  <bruno@clisp.org>
20970         fcntl: Avoid compilation error on native Windows.
20971         * modules/fcntl (Depends-on): Add 'close'.
20973 2012-01-28  Marc-André Lureau  <marcandre.lureau@redhat.com>  (tiny change)
20975         select, poll, isatty: Avoid warnings on x86_64 mingw64.
20976         * lib/select.c (IsConsoleHandle): Use intptr_t to convert handle
20977         pointer to an integer.
20978         * lib/poll.c (IsConsoleHandle): Likewise.
20979         * lib/isatty.c (IsConsoleHandle): Likewise.
20981 2012-01-28  Jim Meyering  <meyering@redhat.com>
20983         doc: clarify README-release
20984         * top/README-release: Clarify: you should make a point to have
20985         the latest stable versions of build tools in your PATH, and the
20986         reference to buildreq is solely for its list of tool names, not
20987         for its minimal-functional version numbers.
20988         Prompted by discussion with Reuben Thomas and Gary V. Vaughan.
20990         maint.mk: use more readable (yet functionally equivalent) quoting
20991         It is common to quote a single quote in a single quoted string like
20992         this:  '...'\''...'.  Unless you know the idiom, that looks like
20993         gibberish, so prefer to double-quote the string when possible.
20994         Then you can use a more readable, lone single quote: "...'..."
20995         * top/maint.mk (sc_cast_of_argument_to_free): Quoting like this
20996         "don't" is more readable than the equivalent 'don'\''t'.
20997         (sc_cast_of_x_alloc_return_value): Likewise.
20998         (sc_cast_of_alloca_return_value): Likewise.
20999         (sc_makefile_path_separator_check): Similar: use ":" in '...',
21000         rather than '\'':'\''.
21002 2012-01-27  Paul Eggert  <eggert@cs.ucla.edu>
21004         stdalign: relax _Alignof and tighten _Alignas test
21005         * m4/stdalign.m4 (gl_STDALIGN_H): Relax the _Alignof test,
21006         as it was too strict: alignof must divide offsetof, but it need
21007         not equal offsetof.  Inspired by Joseph S. Myers's comment
21008         <http://gcc.gnu.org/bugzilla/show_bug.cgi?id=52023#c10>.
21009         Conversely, tighten the _Alignas test a bit, as the resulting
21010         alignment must be exactly 8.
21012 2012-01-27  Bruno Haible  <bruno@clisp.org>
21014         stdalign: Document the last change.
21015         * doc/posix-headers/stdalign.texi: Mention GCC bug 52023.
21017 2012-01-27  Paul Eggert  <eggert@cs.ucla.edu>
21019         stdalign: check that alignof and offsetof are consistent
21020         * m4/stdalign.m4 (gl_STDALIGN_H): Check for GCC bug 52023.
21021         Problem reported for gnulib by Richard W.M. Jones in
21022         <http://lists.gnu.org/archive/html/bug-gnulib/2012-01/msg00340.html>.
21024 2012-01-27  Jim Meyering  <meyering@redhat.com>
21026         update-copyright: accept new option: UPDATE_COPYRIGHT_USE_INTERVALS=2
21027         * build-aux/update-copyright: When UPDATE_COPYRIGHT_USE_INTERVALS=2,
21028         convert a sequence with gaps to the minimal containing range.
21029         For example, convert 2000, 2004-2007, 2009 to 2000-2009.
21030         * tests/test-update-copyright.sh: Test for this.
21031         The FSF confirmed it is ok to do this, assuming there is at
21032         least one significant change per year in the affected range:
21033         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/29554/focus=29860
21035 2012-01-26  Bruno Haible  <bruno@clisp.org>
21037         pipe2: refine doc about thread-safety
21038         * doc/glibc-functions/pipe2.texi: Clarify the extent of the
21039         multithread-safety problem.
21040         * doc/glibc-functions/accept4.texi: Likewise.
21042 2012-01-26  Bruno Haible  <bruno@clisp.org>
21044         posix_spawn_file_actions_addopen: Fix 2012-01-08 commit.
21045         * m4/posix_spawn.m4 (gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN):
21046         In the test program, include <fcntl.h>, for O_RDONLY.
21048 2012-01-26  Eric Blake  <eblake@redhat.com>
21050         pipe2: document lack of thread-safety in replacement
21051         * doc/glibc-functions/pipe2.texi (pipe2): Mention thread safety
21052         issue in replacement.
21053         * doc/glibc-functions/accept4.texi (accept4): Likewise.
21054         Based on a report by Eric Wong.
21056 2012-01-24  Marc-André Lureau  <marcandre.lureau@redhat.com>  (tiny change)
21057             Bruno Haible  <bruno@clisp.org>
21059         malloca: Avoid warnings on x86_64 mingw64.
21060         * lib/malloca.c: Include <stdint.h>.
21061         (mmalloca, freea): Use uintptr_t to convert pointers to integers.
21062         * modules/malloca (Depends-on): Add stdint.
21063         * modules/relocatable-prog-wrapper (Depends-on): Likewise.
21065 2012-01-25  Paul Eggert  <eggert@cs.ucla.edu>
21067         obstack: remove __STDC__ conditionals
21068         * lib/obstack.h: Remove __STDC__ conditionals, as suggested by Joseph
21069         S. Myers in <http://cygwin.com/ml/libc-alpha/2012-01/msg00104.html>.
21070         This leaves lib/localcharset.c, m4/iconv.m4, and a confusing comment in
21071         m4/include_next.m4 as the only gnulib-maintained places that still
21072         refer to __STDC__.
21074 2012-01-24  Bruno Haible  <bruno@clisp.org>
21076         havelib: Modern quoting.
21077         * build-aux/config.rpath: Quote 'like this', not `like this', as per
21078         the recent change to the GNU coding standards.
21080 2012-01-24  Bruno Haible  <bruno@clisp.org>
21082         stdint: Improve support for Android.
21083         * lib/stdint.in.h: Test __ANDROID__, not __BIONIC__.
21084         Reported by Simon Josefsson <simon@josefsson.org>.
21086 2012-01-23  Paul Eggert  <eggert@cs.ucla.edu>
21088         doc: omit trailing empty lines from INSTALL etc.
21089         * doc/Makefile (INSTALL): Omit trailing empty lines.
21090         (INSTALL.ISO, INSTALL.UTF-8): Build from INSTALL, so that these also
21091         omit trailing empty lines.  This simplifies the build procedure.
21093 2012-01-23  Jim Meyering  <meyering@redhat.com>
21095         tests: avoid spurious warnings about gl_sockets_startup
21096         Fedora rawhide's gcc version 4.7.0 20120119 with -Wunused-value
21097         would warn about every use of "gl_sockets_startup (SOCKETS_1_1);"
21098         reporting a "statement with no effect".
21099         * tests/test-accept.c (main): Mark as "(void)".
21100         * tests/test-accept4.c (main): Likewise.
21101         * tests/test-bind.c (main): Likewise.
21102         * tests/test-connect.c (main): Likewise.
21103         * tests/test-getpeername.c (main): Likewise.
21104         * tests/test-getsockname.c (main): Likewise.
21105         * tests/test-getsockopt.c (main): Likewise.
21106         * tests/test-listen.c (main): Likewise.
21107         * tests/test-recv.c (main): Likewise.
21108         * tests/test-recvfrom.c (main): Likewise.
21109         * tests/test-send.c (main): Likewise.
21110         * tests/test-sendto.c (main): Likewise.
21111         * tests/test-setsockopt.c (main): Likewise.
21112         * tests/test-shutdown.c (main): Likewise.
21114 2012-01-21  Bruno Haible  <bruno@clisp.org>
21116         locale-fr.m4: Fix for Android.
21117         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Avoid compilation
21118         failure of the test program on Bionic libc.
21120 2012-01-21  Jim Meyering  <meyering@redhat.com>
21122         bootstrap: fail when bootstrap_post_import_hook fails
21123         Otherwise, it's far too easy to miss diagnostics emitted
21124         between gnulib-tool's output and that of running configure.
21125         * build-aux/bootstrap: Fail when bootstrap_post_import_hook fails.
21127 2012-01-17  Jim Meyering  <meyering@redhat.com>
21129         maint: enable sc_trailing_blank
21130         * build-aux/pmccabe.css: Remove trailing blanks.
21131         * doc/acl-cygwin.txt: Likewise.
21132         * doc/gnu-oids.texi: Likewise
21133         * cfg.mk: Enable sc_trailing_blank.
21134         Exempt build-aux/texinfo.tex and doc/Copyright/assign.future.manual.
21136 2012-01-17  Jim Meyering  <meyering@redhat.com>
21138         maint: enable sc_prohibit_openat_without_use
21139         * cfg.mk: Enable sc_prohibit_openat_without_use.
21140         Exempt lib/selinux-at.c.
21142 2012-01-17  Jim Meyering  <meyering@redhat.com>
21144         maint: enable sc_prohibit_cloexec_without_use
21145         * cfg.mk: Enable sc_prohibit_cloexec_without_use.
21146         * lib/dup-safer-flag.c: Don't include "cloexec.h".  Not needed.
21148 2012-01-17  Jim Meyering  <meyering@redhat.com>
21150         maint: enable sc_prohibit_intprops_without_use
21151         * cfg.mk: Enable sc_prohibit_intprops_without_use
21152         * tests/test-nanosleep.c: Don't include "intprops.h".  Not needed.
21154 2012-01-17  Jim Meyering  <meyering@redhat.com>
21156         maint: enable sc_prohibit_hash_pjw_without_use
21157         * cfg.mk: Enable sc_prohibit_hash_pjw_without_use.
21158         * top/maint.mk (sc_prohibit_hash_pjw_without_use): Adjust regexp
21159         to match any use of \<hash_pjw\>, i.e., not necessarily with a
21160         following " (".
21162 2012-01-17  Jim Meyering  <meyering@redhat.com>
21164         maint: enable double-word-prohibiting rule
21165         * cfg.mk (local-checks-to-skip): Enable sc_prohibit_doubled_word.
21166         Exempt three files.
21168 2012-01-17  Jim Meyering  <meyering@redhat.com>
21170         maint: remove empty lines at EOF, but excluding modules/*
21171         Apply syntax rules at home as well as abroad.  Most changes
21172         were induced by running this:
21173           make srcdir=. _build-aux=build-aux -f top/maint.mk \
21174             sc_prohibit_empty_lines_at_EOF | grep -v modules/ \
21175             | xargs perl -pi -0777 -e 's/\n\n+$/\n/'
21176         * cfg.mk (local-checks-to-skip): Enable sc_prohibit_empty_lines_at_EOF.
21177         Exempt modules/* and two binary files.
21178         Also exempt doc/INSTALL*, per request from Bruno Haible.
21179         * doc/regexprops-generic.texi: *Add* a newline at EOF.  There was none.
21180         * doc/Copyright/assign.translation.manual: Remove empty lines at EOF.
21181         * doc/Copyright/request-assign.future: Likewise.
21182         * doc/Copyright/request-disclaim.changes: Likewise.
21183         * doc/INSTALL: Likewise.
21184         * doc/INSTALL.ISO: Likewise.
21185         * doc/INSTALL.UTF-8: Likewise.
21186         * doc/acl-cygwin.txt: Likewise.
21187         * doc/acl-resources.txt: Likewise.
21188         * doc/fdl-1.2.texi: Likewise.
21189         * doc/fdl-1.3.texi: Likewise.
21190         * doc/fdl.texi: Likewise.
21191         * lib/argp-pin.c: Likewise.
21192         * lib/round.c: Likewise.
21193         * lib/unicase/u16-totitle.c: Likewise.
21194         * lib/unictype/block_test.c: Likewise.
21195         * lib/uninorm/canonical-decomposition.c: Likewise.
21196         * m4/README: Likewise.
21197         * m4/relocatable-lib.m4: Likewise.
21198         * tests/test-isnand-nolibm.c: Likewise.
21199         * tests/test-isnand.c: Likewise.
21200         * tests/uninorm/NormalizationTest.txt: Likewise.
21202 2012-01-17  Jim Meyering  <meyering@redhat.com>
21204         maint: add framework to run syntax-check rules against gnulib sources
21205         * cfg.mk: New file, to disable all currently-failing tests.
21206         We'll enable them one by one, as they are made to pass.
21207         * Makefile (sc_maint): New rule.
21209 2012-01-21  Bruno Haible  <bruno@clisp.org>
21211         stdint: Add support for Android.
21212         * lib/stdint.in.h: When included from Bionic <sys/types.h>, just
21213         include the system's <stdint.h>.
21214         Reported by Simon Josefsson <simon@josefsson.org>.
21216 2012-01-19  Jim Meyering  <meyering@redhat.com>
21218         bootstrap: add bootstrap_post_import_hook
21219         Bison does still need something like the gnulib_mk_hook whose
21220         invocation I had to remove along with slurp in commit 767ccd40.
21221         Technically, we could get along without it, but doing so would
21222         have required living with a warning and a mandatory post-bootstrap
21223         automake rerun.
21224         * build-aux/bootstrap (gnulib_mk_hook): Remove definition, too.
21225         (bootstrap_post_import_hook): New function.
21226         Invoke it after gnulib-tool --import and before autoreconf.
21228 2012-01-18  Jim Meyering  <meyering@redhat.com>
21230         gitlog-to-changelog: don't use "no_"-prefixed variable name
21231         * build-aux/gitlog-to-changelog (main): Use getopt's "!" attribute
21232         to enable both --cluster and --no-cluster.  Change variable name,
21233         s/\$no_cluster/$cluster/, and reverse usage to match.
21235         gitlog-to-changelog: use "||", not "or" in expressions
21236         * build-aux/gitlog-to-changelog (main): Use "||", not "or" in
21237         expressions.
21239 2012-01-17  Joel E. Denny  <joeldenny@joeldenny.org>
21241         gitlog-to-changelog: new option --no-cluster
21242         * build-aux/gitlog-to-changelog: New option --no-cluster, disables
21243         clustering of adjacent commit messages.
21245 2012-01-17  Jim Meyering  <meyering@redhat.com>
21247         maint: spell file systems with two words, not one
21248         * m4/ls-mntd-fs.m4 (MOUNTED_INTERIX_STATVFS): Spell file systems with
21249         two words, not one.
21251 2012-01-16  Jim Meyering  <meyering@redhat.com>
21253         bootstrap: add a FIXME comment to ensure we eventually remove the hack
21254         * build-aux/bootstrap (gnulib_tool_options): Add comment.
21256 2012-01-16  Eric Blake  <eblake@redhat.com>
21258         bootstrap: cater to autoconf 2.59
21259         * build-aux/bootstrap (AUTORECONF): Work even when --no-recursive
21260         is not available.
21262         bootstrap: properly check for libtool
21263         * build-aux/bootstrap (libtoolize): Also run libtool when older
21264         usage is detected.
21266 2012-01-15  Bruno Haible  <bruno@clisp.org>
21268         Improve support for MSVC 9.
21269         * lib/unistd.in.h: Include <io.h> when needed to avoid redefinition
21270         clashes on MSVC.
21271         * lib/fcntl.in.h: Likewise.
21272         * lib/stdlib.in.h: Likewise.
21273         * lib/sys_stat.in.h: Likewise.
21275 2011-01-15  Stefano Lattarini  <stefano.lattarini@gmail.com>
21277         gnupload: we hold the master copy of this script now
21278         For motivation and more information, see:
21279         <http://lists.gnu.org/archive/html/bug-gnulib/2012-01/msg00222.html>
21280         * build-aux/gnupload: Make it clear in the heading comments that the
21281         master copy of this file is maintained by gnulib.  Since we are at
21282         it, bump its copyright year and ...
21283         ($scriptversion): ... the date in its version.
21284         ($usage): Patches and bug reports should be sent to the gnulib list,
21285         not the automake one.
21286         * config/srclist.txt: Don't try to sync 'gnupload' from automake
21287         anymore.
21289 2012-01-15  Bruno Haible  <bruno@clisp.org>
21291         Fix module 'random'.
21292         * m4/stdlib_h.m4 (gl_STDLIB_H): Test whether random, srandom,
21293         initstate, setstate are declared.
21295 2012-01-14  Bruno Haible  <bruno@clisp.org>
21297         Tests for module 'random'.
21298         * modules/random-tests: New file.
21299         * tests/test-random.c: New file, based on tests/test-random_r.c.
21301         New module 'random'.
21302         * lib/stdlib.in.h (random, srandom, initstate, setstate): New
21303         declarations.
21304         * lib/random.c: New file, based on glibc/stdlib/random.c.
21305         * m4/random.m4: New file.
21306         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_RANDOM,
21307         HAVE_RANDOM.
21308         * modules/stdlib (Makefile.am): Substitute GNULIB_RANDOM, HAVE_RANDOM.
21309         * modules/random: New file.
21310         * config/srclist.txt: Add an entry for random.c.
21311         * doc/posix-functions/random.texi: Mention the 'random' module.
21312         * doc/posix-functions/initstate.texi: Likewise.
21313         * doc/posix-functions/setstate.texi: Likewise.
21314         * doc/posix-functions/srandom.texi: Likewise.
21316 2012-01-12  Bruno Haible  <bruno@clisp.org>
21318         random_r: Use common idioms.
21319         * lib/random_r.c: Include <stdlib.h> first.
21321         random_r: Override incompatible API on AIX, OSF/1.
21322         * lib/stdlib.in.h (random_r, srandom_r, initstate_r, setstate_r):
21323         Override the system function if REPLACE_RANDOM_R is 1.
21324         * m4/random_r.m4 (gl_FUNC_RANDOM_R): Require AC_CANONICAL_HOST. On AIX
21325         and OSF/1, set REPLACE_RANDOM_R.
21326         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_RANDOM_R.
21327         * modules/stdlib (Makefile.am): Substitute REPLACE_RANDOM_R.
21328         * modules/random_r (configure.ac): Test REPLACE_RANDOM_R.
21329         * doc/glibc-functions/initstate_r.texi: Mention the AIX, OSF/1 problem.
21330         * doc/glibc-functions/random_r.texi: Likewise.
21331         * doc/glibc-functions/setstate_r.texi: Likewise.
21333         random_r: Support for MSVC 9.
21334         * lib/random_r.c: Include stdint.h, not inttypes.h.
21336 2012-01-12  Eric Blake  <eblake@redhat.com>
21338         inet_ntop: guard extra work by IF_LINT
21339         * lib/inet_ntop.c (inet_ntop6): Mark spurious initialization, for
21340         better code generation when not checking for warnings.
21341         Suggested by Paul Eggert and Jim Meyering.
21343         strptime: fix regression on mingw
21344         * lib/strptime.c (__strptime_internal) [!_LIBC && !HAVE_TM_GMTOFF]:
21345         Fix regression.  Reported by Bruno Haible.
21347 2012-01-11  Reuben Thomas  <rrt@sc3d.org>
21348             Bruno Haible  <bruno@clisp.org>
21350         copy-file: add error-code-returning variant.
21351         * lib/copy-file.h (GL_COPY_ERR_*): New enumeration items.
21352         (qcopy_file_preserving): New declaration.
21353         * lib/copy-file.c (qcopy_file_preserving): Renamed from
21354         copy_file_preserving. Change return type to 'int'. Don't emit an error
21355         message here.
21356         (copy_file_preserving): New function.
21357         * tests/test-copy-file.c: Include <stdlib.h>.
21358         (main): Test qcopy_file_preserving if the environment variable
21359         NO_STDERR_OUTPUT is set.
21360         * tests/test-copy-file-1.sh: Invoke test-copy-file.sh a second time,
21361         with NO_STDERR_OUTPUT
21362         * tests/test-copy-file-2.sh: Likewise.
21364 2012-01-10  Bruno Haible  <bruno@clisp.org>
21366         copy-file: Use 'quote' module consistently.
21367         * lib/copy-file.c (copy_file_preserving): Use quote().
21369         copy-file: Refactor.
21370         * lib/copy-file.c: Include quote.h.
21371         (copy_file_preserving): Call qcopy_acl instead of copy_acl. Emit error
21372         message here.
21373         * modules/copy-file (Depends-on): Add quote.
21375         acl: Export qcopy_acl.
21376         * lib/acl.h (qcopy_acl): New declaration.
21377         * lib/copy-acl.c (qcopy_acl): Make non-static.
21379         acl: Rename a local variable.
21380         * lib/set-mode-acl.c (set_acl): Use same variable name as in copy_acl.
21382         acl: Align return values of copy_acl and qcopy_acl.
21383         * lib/copy-acl.c (copy_acl): Return the same value as qcopy_acl,
21384         maybe < -1.
21386 2012-01-11  Eric Blake  <eblake@redhat.com>
21388         strptime: silence gcc warnings
21389         * lib/strptime.c (__strptime_internal) [!_NL_CURRENT],
21390         [!_LIBC && !HAVE_TM_GMTOFF]: Avoid unused variables.
21391         Reported by Daniel P. Berrange.
21393         inet_ntop: silence gcc warning
21394         * lib/inet_ntop.c (inet_ntop6): Initialize best.base.
21395         Reported by Daniel P. Berrange.
21397 2012-01-11  Dmitry V. Levin  <ldv@altlinux.org>
21399         getloadavg test: skip the test on GNU/Linux without /proc mounted
21400         GNU libc implements getloadavg(3) on Linux by parsing /proc/loadavg
21401         file.  When /proc is not mounted, it always fails with ENOENT.
21402         * tests/test-getloadavg.c (main): Treat ENOENT return code from
21403         getloadavg(3) the same way as ENOSYS and ENOTSUP.
21405 2012-01-10  Bruno Haible  <bruno@clisp.org>
21407         regex: Avoid link error on MSVC 9.
21408         * modules/regex (Depends-on): Add wctype.
21410 2012-01-10  Bruno Haible  <bruno@clisp.org>
21412         doc: Mention --with-tests option.
21413         * gnulib-tool (func_usage): Suggest --with-tests for --test etc.
21414         * doc/gnulib.texi (Extra tests modules): Mention the need to pass
21415         --with-tests.
21416         Reported by Reuben Thomas.
21418 2012-01-10  Reuben Thomas  <rrt@sc3d.org>
21420         users.txt: order package names lexicographically.
21421         * users.txt: Order package names lexicographically.
21423 2012-01-10  Jim Meyering  <meyering@redhat.com>
21425         maint.mk: fix description in comment
21426         * top/maint.mk (require_exactly_one_NL_at_EOF_): Fix comment.
21428         ignore-value: remove deprecated ignore_ptr function
21429         * lib/ignore-value.h (ignore_ptr): Remove deprecated function.
21430         * NEWS: Note this.
21432 2012-01-09  Jim Meyering  <meyering@redhat.com>
21434         test-init.sh: avoid a subshell
21435         * tests/test-init.sh: Remove protective subshell.
21436         Suggested by Bernhard Voelker.  While a subshell is normally
21437         required to protect against older shells (Solaris, FreeBSD) that
21438         warn about a missing program before performing redirection, the
21439         shell-selection tests performed by init.sh probably exclude any
21440         offending shell.
21442 2012-01-08  Bruno Haible  <bruno@clisp.org>
21444         setlocale tests: Avoid test failure on Solaris 11 2011-11.
21445         * tests/test-setlocale2.sh: Use 'env' to set the LC_ALL environment
21446         variable.
21448 2012-01-08  Bruno Haible  <bruno@clisp.org>
21450         posix_spawn_file_actions_addopen: Work around Solaris 11 2011-11 bug.
21451         * m4/spawn_h.m4 (gl_SPAWN_H_DEFAULTS): Initialize
21452         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN.
21453         * m4/posix_spawn.m4 (gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN): New
21454         macro.
21455         * lib/spawn.in.h (posix_spawn_file_actions_addopen): Test
21456         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN, not REPLACE_POSIX_SPAWN.
21457         * lib/spawn_faction_addopen.c: Add workaround implementation if
21458         HAVE_WORKING_POSIX_SPAWN.
21459         * modules/spawn (Makefile): Substitute
21460         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN.
21461         * modules/posix_spawn_file_actions_addopen (configure.ac): Invoke
21462         gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN. Test
21463         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN, not REPLACE_POSIX_SPAWN.
21464         (Depends-on): Update conditions.
21465         * doc/posix-functions/posix_spawn_file_actions_addopen.texi: Mention
21466         the Solaris 11 bug.
21468 2012-01-08  Bruno Haible  <bruno@clisp.org>
21470         posix_spawn_file_actions_adddup2: Work around Solaris 11 2011-11 bug.
21471         * m4/spawn_h.m4 (gl_SPAWN_H_DEFAULTS): Initialize
21472         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDDUP2.
21473         * m4/posix_spawn.m4 (gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDDUP2): New
21474         macro.
21475         * lib/spawn.in.h (posix_spawn_file_actions_adddup2): Test
21476         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDDUP2, not REPLACE_POSIX_SPAWN.
21477         * lib/spawn_faction_adddup2.c: Add workaround implementation if
21478         HAVE_WORKING_POSIX_SPAWN.
21479         * modules/spawn (Makefile): Substitute
21480         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDDUP2.
21481         * modules/posix_spawn_file_actions_adddup2 (configure.ac): Invoke
21482         gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDDUP2. Test
21483         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDDUP2, not REPLACE_POSIX_SPAWN.
21484         (Depends-on): Update conditions.
21485         * doc/posix-functions/posix_spawn_file_actions_adddup2.texi: Mention
21486         the Solaris 11 bug.
21488 2012-01-08  Bruno Haible  <bruno@clisp.org>
21490         posix_spawn_file_actions_addclose: Work around Solaris 11 2011-11 bug.
21491         * m4/spawn_h.m4 (gl_SPAWN_H_DEFAULTS): Initialize
21492         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSE.
21493         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): Define
21494         HAVE_WORKING_POSIX_SPAWN.
21495         (gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSE): New macro.
21496         * lib/spawn.in.h (posix_spawn_file_actions_addclose): Test
21497         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSE, not REPLACE_POSIX_SPAWN.
21498         * lib/spawn_faction_addclose.c: Add workaround implementation if
21499         HAVE_WORKING_POSIX_SPAWN.
21500         * modules/spawn (Makefile): Substitute
21501         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSE.
21502         * modules/posix_spawn_file_actions_addclose (configure.ac): Invoke
21503         gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSE. Test
21504         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSE, not REPLACE_POSIX_SPAWN.
21505         (Depends-on): Update conditions.
21506         * doc/posix-functions/posix_spawn_file_actions_addclose.texi: Mention
21507         the Solaris 11 bug.
21509 2012-01-08  Bruno Haible  <bruno@clisp.org>
21511         doc: Update for Solaris 11 2011-11.
21512         * doc/*/*.texi: Mention Solaris 11 2011-11 where appropriate.
21513         * m4/printf.m4: Update comments.
21515 2012-01-08  Bruno Haible  <bruno@clisp.org>
21517         mktime: Avoid compilation error on Solaris 11.
21518         * lib/mktime.c (WRAPV): Define to 0 on all non-glibc systems.
21520 2012-01-08  Bruno Haible  <bruno@clisp.org>
21522         doc: Small fix.
21523         * doc/posix-headers/nl_types.texi: Correct platforms list.
21525 2012-01-08  Simon Josefsson  <simon@josefsson.org>
21527         Add lgpl-3.0 module.
21528         * MODULES.html.sh (Support for building documentation): Add
21529         lgpl-3.0.
21530         * modules/lgpl-3.0: New file.
21532 2012-01-08  Jim Meyering  <meyering@redhat.com>
21534         select.c: indent with spaces, not TABs
21535         * lib/select.c (windows_poll_handle): Indent with spaces, not TABs.
21537 2012-01-07  Paolo Bonzini  <bonzini@gnu.org>
21539         quotearg: do not use grave accent for left quote
21540         * lib/quotearg.c (gettext_quote): Map "`" to "'" for
21541         locale_quoting_style.
21542         (quotearg_buffer_restyled): Fix example.
21543         * tests/test-quotearg-simple.c (results_g): Adjust test vectors.
21545 2012-01-07  Paolo Bonzini  <bonzini@gnu.org>
21547         quotearg: fall back to Unicode single quotes in UTF-8, GB-18030 locales
21548         Most programs do not have translation catalogs for English and much
21549         less separate catalogs for British and American English.  Drop the
21550         suggestion to translators about these two, and provide it
21551         automatically for Unicode locales.  Like most programs, even those
21552         using American English, we use single quotation marks.  This conflicts
21553         with the American typographic convention, but works better when you
21554         cite the entire error message within double quotes.  It also tries not
21555         to clash with established practice and with what non-gnulib programs
21556         will usually do.
21557         * lib/quotearg.c (gettext_quote): Hard-code U+2018 and U+2019 when
21558         using an UTF-8 or GB-18030 locale.  The list of other locales with
21559         quotes was provided by Bruno Haible.
21560         (quotearg_buffer_restyled): Adjust instructions to translators.
21561         * lib/quotearg.h (locale_quoting_style): Do not put an example in the
21562         text, since this would be wrong when using Unicode.
21563         * modules/quotearg: Depend on c-strcaseeq.
21565 2012-01-07  Paolo Bonzini  <bonzini@gnu.org>
21567         quotearg: fix Wikipedia link
21568         * lib/quotearg.c (quotearg_buffer_restyled): Fix link to Wikipedia.
21570 2012-01-07  Simon Josefsson  <simon@josefsson.org>
21572         Fix for mingw with MSVC9.
21573         * m4/ld-version-script.m4: Check that compiler rejects version
21574         scripts with syntax errors.  Reported by Bruno Haible
21575         <bruno@clisp.org>.
21577 2012-01-06  Bruno Haible  <bruno@clisp.org>
21579         Talk about "native Windows API", not "Woe32".
21580         * lib/accept4.c: Update comments to mention native Windows.
21581         * lib/execute.c: Likewise.
21582         * lib/fatal-signal.c: Likewise.
21583         * lib/localcharset.c: Likewise.
21584         * lib/nanosleep.c: Likewise.
21585         * lib/nl_langinfo.c: Likewise.
21586         * lib/pclose.c: Likewise.
21587         * lib/pipe-filter-gi.c: Likewise.
21588         * lib/pipe-filter-ii.c: Likewise.
21589         * lib/pipe.c: Likewise.
21590         * lib/pipe2.c: Likewise.
21591         * lib/popen.c: Likewise.
21592         * lib/progreloc.c: Likewise.
21593         * lib/relocatable.c: Likewise.
21594         * lib/sigaction.c: Likewise.
21595         * lib/sigprocmask.c: Likewise.
21596         * lib/spawn-pipe.h: Likewise.
21597         * lib/spawn-pipe.c: Likewise.
21598         * lib/spawni.c: Likewise.
21599         * lib/stat-time.h: Likewise.
21600         * lib/w32spawn.h: Likewise.
21601         * tests/test-isatty.c: Likewise.
21602         * lib/config.charset: More comments.
21603         * doc/gnulib-intro.texi: Mention native Windows.
21604         * doc/posix-functions/_Exit_C99.texi: Likewise.
21605         * doc/posix-headers/fcntl.texi: Likewise.
21607 2012-01-06  Guillem Jover  <guillem@hadrons.org>  (tiny change)
21609         argp: Avoid crash if translator uses % characters in a translation.
21610         * lib/argp-parse.c (argp_version_parser): Use a "%s" format string.
21611         Reported by Mats Erik Andersson <gnu@gisladisker.se>.
21613 2012-01-06  Paul Eggert  <eggert@cs.ucla.edu>
21615         doc: C11 and C++11 are now official
21616         * doc/posix-headers/assert.texi, doc/posix-headers/stdalign.texi:
21617         * doc/verify.texi, stdalign.in.h, verify.h, m4/gnulib-common.m4:
21618         * m4/stdalign.m4, modules/assert-h, modules/snippet/_Noreturn:
21619         * modules/stdalign:
21620         Replace references to draft C1X to C11, and to draft C++0X to C++11.
21622 2012-01-06  Bruno Haible  <bruno@clisp.org>
21624         uc-is-grapheme-break tests: Tweak.
21625         * tests/unigbrk/test-uc-is-grapheme-break.c (main): Fix an error
21626         message.
21628 2012-01-06  Bruno Haible  <bruno@clisp.org>
21630         test-init.sh: correct the test for diff -u
21631         * tests/test-init.sh: Also redirect stdout to /dev/null.
21633 2012-01-05  Paul Eggert  <eggert@cs.ucla.edu>
21635         Use ', not `, for quoting output.
21636         * build-aux/announce-gen (usage, sizes, print_news_deltas)
21637         (print_changelog_deltas, get_tool_versions, main program):
21638         * build-aux/git-version-gen:
21639         * build-aux/gitlog-to-changelog (usage, parse_amend_file):
21640         * build-aux/move-if-change (help):
21641         * build-aux/useless-if-before-free (usage, main program):
21642         * check-module (parse_module_file, usage)
21643         (find_included_lib_files, check_module):
21644         * lib/argmatch.c (main) [TEST]:
21645         * lib/argp-help.c (_help):
21646         * lib/getopt1.c (main) [TEST]:
21647         * lib/git-merge-changelog.c (usage):
21648         * lib/xstrtol-error.c (xstrtol_error):
21649         * m4/alloca.m4 (_AC_LIBOBJ_ALLOCA):
21650         * m4/argz.m4 (gl_FUNC_ARGZ):
21651         * m4/bison.m4 (gl_BISON):
21652         * m4/calloc.m4 (gl_FUNC_CALLOC_GNU):
21653         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS):
21654         * m4/flexmember.m4 (AC_C_FLEXIBLE_ARRAY_MEMBER):
21655         * m4/fpending.m4 (gl_PREREQ_FPENDING):
21656         * m4/gc-random.m4 (gl_GC_RANDOM):
21657         * m4/intl.m4 (gt_CHECK_DECL):
21658         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK):
21659         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT)
21660         (AC_TYPE_UNSIGNED_LONG_LONG_INT):
21661         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS):
21662         * m4/lstat.m4 (gl_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK):
21663         * m4/onceonly.m4 (AC_CHECK_FUNCS_ONCE):
21664         * m4/posixver.m4 (gl_DEFAULT_POSIX2_VERSION):
21665         * tests/test-dirname.c (main):
21666         * tests/test-getpass.c (main):
21667         * tests/test-iconvme.c (main):
21668         * tests/test-parse-datetime.c (LOG):
21669         * tests/test-xstrtoimax.sh:
21670         * tests/test-xstrtol.sh:
21671         * tests/test-xstrtoll.sh:
21672         * tests/test-xstrtoumax.sh:
21673         * tests/unigbrk/test-uc-is-grapheme-break.c (main):
21674         * top/GNUmakefile (abort-due-to-no-makefile):
21675         Quote 'like this', not `like this', as per the recent change to
21676         the GNU coding standards.
21678 2012-01-05  Bruno Haible  <bruno@clisp.org>
21680         strtoimax: Don't force a replacement on systems where intmax_t is int.
21681         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Use a different test if
21682         'intmax_t' is not larger than 'int'.
21683         Reported by Pádraig Brady <P@draigBrady.com>.
21685 2012-01-05  Bruno Haible  <bruno@clisp.org>
21687         doc: Mention NetBSD bugs.
21688         * doc/posix-functions/*printf.texi: Mention a NetBSD 5.1 bug.
21689         * doc/posix-functions/nl_langinfo.texi: Mention another NetBSD 5.1 bug.
21691 2012-01-05  Bruno Haible  <bruno@clisp.org>
21693         strtoumax tests: Enhance tests.
21694         * tests/test-strtoumax.c (main): Add tests for large values.
21696 2012-01-05  Bruno Haible  <bruno@clisp.org>
21698         strtoimax: Work around AIX 5.1 bug.
21699         * lib/inttypes.in.h (strtoimax): Allow overriding the system's
21700         definition.
21701         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Check against the AIX 5.1 bug.
21702         Set HAVE_STRTOIMAX.
21703         * m4/inttypes.m4 (gl_INTTYPES_H_DEFAULTS): Initialize
21704         REPLACE_STRTOIMAX.
21705         * modules/inttypes-incomplete (Makefile.am): Substitute
21706         REPLACE_STRTOIMAX.
21707         * modules/strtoimax (Files): Add m4/stdint_h.m4, m4/inttypes_h.m4.
21708         (configure.ac): Test HAVE_STRTOIMAX, REPLACE_STRTOIMAX.
21709         (Depends-on): Update conditions.
21710         * tests/test-strtoimax.c (main): Add tests for large values.
21711         * doc/posix-functions/strtoimax.texi: Mention the AIX 5.1 bug.
21713 2012-01-05  Bruno Haible  <bruno@clisp.org>
21715         inttypes: Modernize.
21716         * lib/inttypes.in.h (strtoimax, strtoumax): Use the C++ safe idioms.
21717         * modules/inttypes-incomplete (Depends-on): Add snippet/c++defs.
21718         (Makefile.am): Update inttypes.h rule.
21720 2012-01-05  Jim Meyering  <meyering@redhat.com>
21722         init.sh: don't waste a subshell just to redirect stderr
21723         * tests/init.sh: In testing for diff -u and diff -c, use a
21724         stderr-redirecting exec inside `...` rather than a subshell.
21726         test-init.sh: avoid failure on HP-UX 11.00
21727         * tests/test-init.sh: Skip "diff -u"-comparing step when compare
21728         resolves to diff -c or cmp.  Reported by Bruno Haible.
21730 2012-01-05  Bruno Haible  <bruno@clisp.org>
21732         Tests for module 'strtoull'.
21733         * modules/strtoull-tests: New file.
21734         * tests/test-strtoull.c: New file, based on tests/test-strtoumax.c.
21736 2012-01-05  Bruno Haible  <bruno@clisp.org>
21738         Tests for module 'strtoll'.
21739         * modules/strtoll-tests: New file.
21740         * tests/test-strtoll.c: New file, based on tests/test-strtoimax.c.
21742 2012-01-05  Bruno Haible  <bruno@clisp.org>
21744         Tests for module 'strtoul'.
21745         * modules/strtoul-tests: New file.
21746         * tests/test-strtoul.c: New file, based on tests/test-strtoumax.c.
21748 2012-01-05  Bruno Haible  <bruno@clisp.org>
21750         Tests for module 'strtol'.
21751         * modules/strtol-tests: New file.
21752         * tests/test-strtol.c: New file, based on tests/test-strtoimax.c.
21754 2012-01-04  Jim Meyering  <meyering@redhat.com>
21756         test-init.sh: accommodate Solaris 5.10's different diff -u output
21757         * tests/test-init.sh: Also exempt @@ lines from the comparison
21758         of diff output, since Solaris 5.10 and GNU diff formats differ.
21759         Reported by Stefano Lattarini.
21761 2012-01-04  Paul Eggert  <eggert@cs.ucla.edu>
21763         test-posixtm: don't assume signed integer wraparound
21764         * tests/test-posixtm.c (main): Don't assume wraparound semantics
21765         after signed integer overflow.  Inspired by (though it may not
21766         fix) Bruno Haible's bug report in
21767         <http://lists.gnu.org/archive/html/bug-gnulib/2012-01/msg00066.html>.
21769         Spell out "Windows 9x" and "Windows XP".
21770         * lib/poll.c, lib/select.c: In comments, replace "Win9x" with
21771         "Windows 9x" and "WinXP" with "Windows XP".
21773 2012-01-04  Jim Meyering  <meyering@redhat.com>
21775         test-vc-list-files-cvs.sh: remove obsolete comment
21776         * tests/test-vc-list-files-cvs.sh: Remove obsolete comment about
21777         double exit.  Now that's all encapsulated via skip_ and Exit.
21779 2012-01-04  Bruno Haible  <bruno@clisp.org>
21781         Talk about "native Windows API", not "Win32".
21782         * lib/classpath.c: Update comments to mention native Windows.
21783         * lib/csharpexec.c: Likewise.
21784         * lib/dup2.c: Likewise.
21785         * lib/error.c: Likewise.
21786         * lib/fcntl.c: Likewise.
21787         * lib/filename.h: Likewise.
21788         * lib/findprog.c: Likewise.
21789         * lib/get-rusage-as.c: Likewise.
21790         * lib/get-rusage-data.c: Likewise.
21791         * lib/getpagesize.c: Likewise.
21792         * lib/javaexec.c: Likewise.
21793         * lib/msvc-inval.c: Likewise.
21794         * lib/msvc-nothrow.c: Likewise.
21795         * lib/nanosleep.c: Likewise.
21796         * lib/nonblocking.c: Likewise.
21797         * lib/printf-parse.c: Likewise.
21798         * lib/setlocale.c: Likewise.
21799         * lib/sigaction.c: Likewise.
21800         * lib/strerror_r.c: Likewise.
21801         * lib/tmpdir.c: Likewise.
21802         * lib/vasnprintf.c: Likewise.
21803         * lib/w32spawn.h: Likewise.
21804         * lib/waitpid.c: Likewise.
21805         * lib/stdio.in.h (fdopen, fopen, freopen): Likewise.
21806         * m4/locale-ar.m4: Likewise.
21807         * m4/locale-fr.m4: Likewise.
21808         * m4/locale-ja.m4: Likewise.
21809         * m4/locale-tr.m4: Likewise.
21810         * m4/locale-zh.m4: Likewise.
21811         * m4/printf.m4: Likewise.
21812         * tests/test-cloexec.c: Likewise.
21813         * tests/test-copy-acl.sh: Likewise.
21814         * tests/test-copy-file.sh: Likewise.
21815         * tests/test-file-has-acl.sh: Likewise.
21816         * tests/test-set-mode-acl.sh: Likewise.
21817         * tests/test-dup-safer.c: Likewise.
21818         * tests/test-dup2.c: Likewise.
21819         * tests/test-dup3.c: Likewise.
21820         * tests/test-fcntl.c: Likewise.
21821         * tests/test-nonblocking-pipe.h: Likewise.
21822         * tests/test-nonblocking-socket.h: Likewise.
21823         * tests/test-pipe.c: Likewise.
21824         * tests/test-pipe2.c: Likewise.
21825         * tests/test-spawn-pipe-child.c: Likewise.
21826         * doc/acl-resources.txt: Likewise.
21827         * lib/getaddrinfo.c (WINDOWS_NATIVE): Renamed from WIN32_NATIVE.
21828         * tests/test-poll.c (WINDOWS_NATIVE): Likewise.
21829         * tests/test-select.h (WINDOWS_NATIVE): Likewise.
21830         * lib/localcharset.c: Update comments to mention native Windows.
21831         (WINDOWS_NATIVE): Renamed from WIN32_NATIVE.
21832         * lib/localename.c: Likewise.
21833         * lib/progreloc.c: Likewise.
21834         * lib/relocatable.c: Likewise.
21835         * lib/poll.c (WINDOWS_NATIVE): Renamed from WIN32_NATIVE.
21836         (windows_compute_revents): Renamed from win32_compute_revents.
21837         (windows_compute_revents_socket): Renamed from
21838         win32_compute_revents_socket.
21839         * lib/select.c: Update comments to mention native Windows.
21840         (windows_poll_handle): Renamed from win32_poll_handle.
21841         * m4/threadlib.m4: Update comments to mention native Windows.
21842         (gl_THREADLIB_EARLY_BODY, gl_THREADLIB_BODY): Expect
21843         --enable-threads=windows instead of --enable-threads=win32. Set
21844         USE_WINDOWS_THREADS, not USE_WIN32_THREADS.
21845         * lib/glthread/lock.h: Update comments to mention native Windows.
21846         (USE_WINDOWS_THREADS): Renamed from USE_WIN32_THREADS.
21847         * lib/glthread/lock.c (USE_WINDOWS_THREADS): Renamed from
21848         USE_WIN32_THREADS.
21849         * lib/glthread/cond.h (USE_WINDOWS_THREADS): Likewise.
21850         * lib/glthread/cond.c (USE_WINDOWS_THREADS): Likewise.
21851         * lib/glthread/thread.h (USE_WINDOWS_THREADS): Likewise.
21852         * lib/glthread/thread.c (USE_WINDOWS_THREADS): Likewise.
21853         * lib/glthread/tls.h (USE_WINDOWS_THREADS): Likewise.
21854         * lib/glthread/tls.c (USE_WINDOWS_THREADS): Likewise.
21855         * lib/glthread/yield.h (USE_WINDOWS_THREADS): Likewise.
21856         * tests/test-cond.c (USE_WINDOWS_THREADS): Likewise.
21857         * tests/test-thread_create.c (USE_WINDOWS_THREADS): Likewise.
21858         * tests/test-lock.c (USE_WINDOWS_THREADS): Likewise.
21859         (TEST_WINDOWS_THREADS): Renamed from TEST_WIN32_THREADS.
21860         * tests/test-tls.c: Likewise.
21861         Rationale:
21862         Microsoft renamed the "Win32 API" to "Windows API", as it is available
21863         on both 32-bit and 64-bit Windows systems.
21864         But in gnulib, we treat Cygwin like a Unix platform, therefore the main
21865         line of distinction is between "native Windows" on one side and Unix/
21866         POSIX systems on the other side. More details in
21867         <https://lists.gnu.org/archive/html/bug-gnulib/2012-01/msg00027.html>.
21868         Suggested by Paul Eggert.
21870 2012-01-03  Bruno Haible  <bruno@clisp.org>
21872         isatty: Support for MSVC 9.
21873         * doc/posix-functions/isatty.texi: Mention the MSVC problem.
21874         * lib/isatty.c: Include <errno.h>, msvc-inval.h.
21875         (_isatty_nothrow): New function.
21876         (isatty): Use it instead of _isatty.
21877         (IsConsoleHandle): Add comment, from Paolo Bonzini.
21878         * lib/poll.c (IsConsoleHandle): Likewise.
21879         * lib/select.c (IsConsoleHandle): Likewise.
21880         * m4/isatty.m4 (gl_FUNC_ISATTY): Fix comment. Reported by Eli Zaretskii.
21881         (gl_PREREQ_ISATTY): New macro.
21882         * modules/isatty (Depends-on): Add msvc-inval.
21883         (configure.ac): Invoke gl_PREREQ_ISATTY.
21885 2012-01-03  Jim Meyering  <meyering@redhat.com>
21887         maint.mk: remove temporary transition aid from over 1.5 years ago
21888         * top/maint.mk (_prohibit_regexp): Remove definition whose sole
21889         purpose was to aid in the transition (avoiding silent malfunction)
21890         from that old name to the new _sc_search_regexp.  This shim was
21891         added by commit 219c504b.
21893         init.sh: do not try to accommodate compare arguments starting with "-"
21894         * tests/init.sh (compare_dev_null_): Do not try to accommodate
21895         compare arguments that start with "-".  Besides, we do not worry
21896         about this when invoking diff or cmp; why start now with sed?
21897         Using "--" to separate options from argument would trigger sed
21898         failure in at least Solaris 7, HP-UX 11.00, IRIX 6.5, FreeBSD 6.4,
21899         OpenBSD 4.9 and NetBSD 5.1.  Reported by Bruno Haible.
21901 2012-01-02  Bruno Haible  <bruno@clisp.org>
21903         Enhance tests for module 'isatty'.
21904         * modules/isatty-tests (Depends-on): Add pipe-posix.
21905         * tests/test-isatty.c: Include <fcntl.h>.
21906         (DEV_NULL): New macro.
21907         (main): Test the resut of isatty() also on regular files, pipes, and
21908         /dev/null.
21910         New module 'isatty'.
21911         * lib/unistd.in.h (isatty): New declaration.
21912         * lib/isatty.c: New file, based on an idea of
21913         Bastien Roucariès <roucaries.bastien@gmail.com>.
21914         * m4/isatty.m4: New file.
21915         * m4/unistd_h.m4 (gl_UNISTD_H): Test whether isatty is declared.
21916         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_ISATTY, REPLACE_ISATTY.
21917         * modules/unistd (Makefile.am): Substitute GNULIB_ISATTY,
21918         REPLACE_ISATTY.
21919         * modules/isatty: New file.
21920         * doc/posix-functions/isatty.texi: Mention the new module.
21921         Suggested by Paolo Bonzini.
21923 2012-01-02  Bruno Haible  <bruno@clisp.org>
21925         canonicalize: Tweak 2011-12-29 commit.
21926         * lib/canonicalize.c (canonicalize_filename_mode): Fix typo in comment.
21927         * lib/canonicalize.h (canonicalize_filename_mode): Update specification.
21929 2012-01-02  Jim Meyering  <meyering@redhat.com>
21931         gitlog-to-changelog: describe input syntax in --help output
21932         * build-aux/gitlog-to-changelog (usage) [SPECIAL SYNTAX]: New section.
21934         gitlog-to-changelog: fix typo in --help: show backslash before email @
21935         * build-aux/gitlog-to-changelog (usage): An "@" was backslash-escaped
21936         in sources, but not in actual output.
21938 2011-12-30  Jim Meyering  <meyering@redhat.com>
21940         gitlog-to-changelog: don't malfunction when name contains %-directive
21941         * build-aux/gitlog-to-changelog (main): Don't let a %-directive
21942         in a name string cause trouble.  E.g., with a user name of "%s",
21943         gitlog-to-changelog would fail with "Missing argument in sprintf at..."
21945 2011-12-30  Gary V. Vaughan  <gary@gnu.org>
21947         gitlog-to-changelog: Copyright-paperwork-exempt: yes == (tiny change)
21948         * build-aux/gitlog-to-changelog (main): Map the string, at beginning
21949         of line in a git commit log, "Copyright-paperwork-exempt: yes", to
21950         the "  (tiny change)" notation that is appended to the standard
21951         ChangeLog "date  name  email" header line.
21953 2012-01-01  Jim Meyering  <meyering@redhat.com>
21955         test-framework-sh: init.sh: fix "make dist" failure
21956         When using gnulib-tool's --with-tests option and any module that
21957         depends on test-framework-sh, "make dist" would fail due to the
21958         lack of init.sh *in lib/*.  The EXTRA_DIST += init.sh is required
21959         in the gltests directory, and not in the gllib/ directory.
21960         One way to work around that is to move the EXTRA_DIST += init.sh
21961         from the primary module to the -tests one:
21962         * modules/test-framework-sh-tests (EXTRA_DIST): Add init.sh here, ...
21963         * modules/test-framework-sh (Makefile.am): ...not here.
21964         Reported by Tom G. Christensen in
21965         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/29519
21967         version-etc: update copyright year reported by --version
21968         * lib/version-etc.c (COPYRIGHT_YEAR): Update to 2012.
21970 2011-12-31  Pádraig Brady  <P@draigBrady.com>
21972         canonicalize: only stat() if required
21973         * lib/canonicalize.c (canonicalize_filename_mode):
21974         Avoid calling l?stat() when both CAN_MISSING,
21975         and CAN_NOLINKS are set, as we neither need
21976         to resolve symlinks or test component existence.
21978 2011-12-31  Paul Eggert  <eggert@cs.ucla.edu>
21980         doc: cover st_ino issues once; add OpenVMS etc.
21981         * doc/posix-functions/stat.texi (stat):
21982         * doc/posix-functions/lstat.texi (lstat):
21983         * doc/posix-functions/fstatat.texi (fstatat):
21984         * doc/posix-functions/fstat.texi (fstat):
21985         Move general 'struct stat' stuff to sys_stat.texi,
21986         leaving behind a pointer.
21987         * doc/posix-headers/sys_stat.texi (sys/stat.h):
21988         Merge duplicate info about 'struct stat' problems into here.
21989         Mention issues with OpenVMS, GNU/Linux NFS, NetApp, ClearCase,
21990         and suggest partial workarounds.
21992         same-inode: port to OpenVMS
21993         * lib/same-inode.h (SAME_INODE): Port to OpenVMS by checking all
21994         three st_ino values.
21996 2011-12-30  Pádraig Brady  <P@draigBrady.com>
21998         canonicalize: fix references to stat() and lstat()
21999         * lib/canonicalize.c (canonicalize_filename_mode):
22000         Ensure references always resolve to a replacement
22001         function if required (even via a macro).
22003 2011-12-30  Jim Meyering  <meyering@redhat.com>
22005         gitlog-to-changelog: remove a little duplication
22006         * build-aux/gitlog-to-changelog (main): Grep @lines once,
22007         rather than twice.
22009 2011-12-29  Pádraig Brady  <P@draigBrady.com>
22011         canonicalize: add support for not resolving symlinks
22012         * lib/canonicalize.h: Add the CAN_NOLINKS flag to
22013         indicate we don't want to follow symlinks.  Also
22014         provide CAN_MODE_MASK to aid setting these existing
22015         mutually exclusive values.
22016         * lib/canonicalize.c (canonicalize_filename_mode):
22017         Extract the flags from can_mode parameter, which
22018         are currently just used to select between stat()
22019         and lstat().  Also ensure that mutually exclusive
22020         values are flagged immediately as invalid.
22021         * tests/test-canonicalize.c: Verify symlinks are
22022         not followed, and that invalid flag combinations
22023         are diagnosed.
22025 2011-12-25  Jim Meyering  <meyering@redhat.com>
22027         gitlog-to-changelog: do not clump multi-paragraph entries
22028         Identical header lines (date,name,email+coauthors) are suppressed,
22029         thus putting all entries with those same characteristics under
22030         a single header.  However, when a log entry consists of two or
22031         more paragraphs, it may not be clear where it starts and ends.
22032         This change makes it so that such an entry is always separated
22033         from others by a header line, even when that header would
22034         otherwise be suppressed.
22035         * build-aux/gitlog-to-changelog: Implement the above.
22036         Inspired by a related request from Stefano Lattarini in
22037         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/29456
22039 2011-12-25  Paul Eggert  <eggert@cs.ucla.edu>
22041         announce-gen: fix `cmd' typo in diagnostic
22042         * build-aux/announce-gen (print_changelog_deltas): Fix typo in
22043         diagnostic: a missing '$' meant that the command was not output.
22045 2011-12-23  Jim Meyering  <meyering@redhat.com>
22047         test-framework-sh: distribute init.sh
22048         * modules/test-framework-sh (EXTRA_DIST): Append init.sh.
22049         Otherwise, "make -C gnulib-tests check" (at least in grep) would
22050         fail due to the lack of init.sh.
22052         maint: remove explicit Files: tests/init.sh; depend on test-framework-sh
22053         * modules/atexit-tests: Rather than listing tests/init.sh,
22054         now that there's a module for it, simply depend on that new module.
22055         * modules/closein-tests: Likewise.
22056         * modules/exclude-tests: Likewise.
22057         * modules/getcwd-tests: Likewise.
22058         * modules/perror-tests: Likewise.
22059         * modules/pread-tests: Likewise.
22060         * modules/pwrite-tests: Likewise.
22061         * modules/vc-list-files-tests: Likewise.
22062         * modules/verify-tests: Likewise.
22063         * modules/xalloc-die-tests: Likewise.
22064         * modules/xstrtoimax-tests: Likewise.
22065         * modules/xstrtol-tests: Likewise.
22066         * modules/xstrtoll-tests: Likewise.
22067         * modules/xstrtoumax-tests: Likewise.
22068         * modules/yesno-tests: Likewise.
22070 2011-12-22  Jim Meyering  <meyering@redhat.com>
22072         test-framework-sh: add minimal tests of init.sh's compare function
22073         * modules/test-framework-sh-tests: New file.
22074         * tests/test-init.sh: New file.
22076         test-framework-sh: new module
22077         * modules/test-framework-sh: New file.
22078         * MODULES.html.sh (Support for maintaining and releasing projects):
22079         List it.
22081         init.sh: do not emit simulated diff output to stderr
22082         * tests/init.sh (compare_dev_null_): Print to stdout, not stderr.
22084 2011-12-22  Reuben Thomas  <rrt@sc3d.org>
22086         .gitignore: ignore gnulib.dvi and regex.info
22087         * doc/.gitignore:add gnulib.dvi and regex.info
22089 2011-12-22  Jim Meyering  <meyering@redhat.com>
22091         init.sh: correct previous change
22092         * tests/init.sh (compare): My previous change was wrong.
22093         Don't clobber "$?".  Spotted by Stefano Lattarini and Pádraig Brady.
22095         init.sh: avoid unwarranted test failure when using "set -e"
22096         * tests/init.sh (compare): Ignore nonzero exit from compare_dev_null_.
22097         Otherwise, in a test script that uses "set -e" (like many in vc-dwim)
22098         a use like "compare exp out" would get evoke an unconditional failure.
22100 2011-12-21  Alfred M. Szmidt  <ams@gnu.org>
22102         bootstrap: fix it to honor $ACLOCAL_FLAGS once again
22103         The 2011-12-17 change, commit 767ccd40, replaced a manual invocation
22104         of aclocal that used explicit $ACLOCAL_FLAGS with an invocation of
22105         autoreconf that did not.
22106         * build-aux/bootstrap: Use $ACLOCAL_FLAGS when invoking autoreconf.
22107         Reported by Mats Erik Andersson <gnu@gisladisker.se>.
22109 2011-12-17  Jim Meyering  <meyering@redhat.com>
22111         bootstrap: remove some now-unneeded code
22112         This script arose back when gnulib-tool was young.
22113         Since then, it has seen improvements that render much of this
22114         script unnecessary.  In particular, it can now make symlinks
22115         to the files it uses.  Also, I no longer see as much value in
22116         marking files as read-only via comments.
22117         If you relied on the symlink-creation feature of the preceding
22118         version of this script, you can get most of that functionality
22119         by adding the --symlink option to the definition of
22120         gnulib_tool_option_extras in your bootstrap.conf file.
22121         * build-aux/bootstrap (AUTOPOINT, AUTORECONF): Factor out definitions.
22122         Run autopoint and libtoolize *before* gnulib-tool.
22123         After it, run an abbreviated autoreconf, rather than a loop around
22124         all tools.
22125         (slirp, bt_mark_as_generated): Remove functions.
22127 2011-12-18  Paul Eggert  <eggert@cs.ucla.edu>
22129         ftoastr: fix typo
22130         * lib/ftoastr.h: Fix misspelling in comment.
22132 2011-12-18  Reuben Thomas  <rrt@sc3d.org>
22134         * top/README-release: fix punctuation.
22136 2011-12-17  Jim Meyering  <meyering@redhat.com>
22138         bootstrap: correct the recent buildreq change
22139         The 2011-12-07 commit, 39f5f1e4, omitted some '*'s, and thus
22140         had no effect.
22141         * build-aux/bootstrap (buildreq): Bracket each search term with
22142         "*...*", so that the shell "case" statement works as intended.
22143         Add comments.
22145 2011-12-17  Bernhard Voelker  <mail@bernhard-voelker.de>
22147         build: let bootstrap resort to wget when downloading .po files
22148         * build-aux/bootstrap (download_po_files): Fallback to wget when
22149         downloading the .po files via rsync fails.  This is necessary to
22150         bootstrap from behind a strict firewall.
22152 2011-12-15  Paul Eggert  <eggert@cs.ucla.edu>
22154         stdint: don't assume C++11 when compiling with g++
22155         Problem reported for glibc 2.14 and g++ by Alexander V. Lukyanov in
22156         <http://lists.gnu.org/archive/html/bug-gnulib/2011-12/msg00099.html>.
22157         * m4/stdint.m4 (gl_STDINT_H): Don't go to extra work to make it
22158         work also in C++ before C++11, as that improperly inhibits
22159         generating a substitute stdint.h for that case.
22161 2011-12-15  Paul Eggert  <eggert@cs.ucla.edu>
22163         alloca: protect comment from gnulib-tool
22164         * lib/alloca.c: Change "GCC version 2" to "GCC 2" in comment, so
22165         that gnulib-tool doesn't think it's a license, and munge it to
22166         say "GCC version 3".
22168 2011-12-15  Ludovic Courtès  <ludo@gnu.org>  (tiny change)
22170         localcharset: Use an absolute path in TESTS_ENVIRONMENT.
22171         * modules/localcharset (LOCALCHARSET_TESTS_ENVIRONMENT): Use
22172         $(abs_top_builddir) instead of $(top_builddir).
22174 2011-12-14  Alex Nelson  <ajnelson@cs.ucsc.edu>  (tiny change)
22176         strftime-tests: also test nanoseconds
22177         * tests/test-strftime.c (T): Add a test of %N.
22179 2011-12-13  Paul Eggert  <eggert@cs.ucla.edu>
22181         inttypes, stdint: add C++11 support
22182         C++11 says there's no need to define __STDC_CONSTANT_MACROS etc.
22183         when including inttypes.h and stdint.h.  Support this change to
22184         the standard.
22185         * doc/posix-headers/inttypes.texi (inttypes.h):
22186         * doc/posix-headers/stdint.texi (stdint.h): Document this.
22187         * lib/inttypes.in.h (__STDC_FORMAT_MACROS) [! __cplusplus]:
22188         Define if not defined already, for the benefit of pre-C++11 hosts.
22189         Define the standard format macros (e.g., PRId8) always.
22190         * lib/stdint.in.h (__STDC_CONSTANT_MACROS, __STDC_LIMIT_MACROS):
22191         Likewise, if __cpluspus.  Define the standard constant and limit
22192         macros (e.g., INT8_C, INT8_MAX) always.
22193         * m4/inttypes.m4 (gl_INTTYPES_INCOMPLETE): Do not define
22194         GL_TRIGGER_STDC_LIMIT_MACROS or __STDC_LIMIT_MACROS; no longer needed.
22195         * m4/stdint.m4 (gl_STDINT_H): Update comments about these macros.
22196         * tests/test-inttypes.c (__STDC_LIMIT_MACROS, __STDC_CONSTANT_MACROS)
22197         (__STDC_FORMAT_MACROS): Do not define, since we assume C++11 API now.
22198         * tests/test-stdint.c (__STDC_LIMIT_MACROS, __STDC_CONSTANT_MACROS):
22199         Likewise.
22201 2011-12-12  Paul Eggert  <eggert@cs.ucla.edu>
22203         nonblocking tests: Fix test failure on Linux/PPC.
22204         Suggested by Prerna Saxena in
22205         <http://lists.gnu.org/archive/html/bug-gnulib/2011-12/msg00080.html>.
22206         * tests/test-nonblocking-pipe.h (PIPE_DATA_BLOCK_SIZE) [Linux/PPC64]:
22207         Set to 1100000.
22209 2011-12-12  Jim Meyering  <meyering@redhat.com>
22211         argmatch: don't hard-code `' when listing valid option arguments
22212         * lib/argmatch.c (argmatch_valid): Don't hard-code `%s'.  Instead,
22213         use the quote function to add quotes.  Use fputs rather than
22214         fprintf for the format string with no format directive.
22216 2011-12-07  Eric Blake  <eblake@redhat.com>
22218         bootstrap: detect tools required by gnulib-tool
22219         * build-aux/bootstrap (buildreq): Provide minimum implicit
22220         dependencies.
22221         * DEPENDENCIES: Mention patch as a prereq.
22223 2011-12-04  Bruno Haible  <bruno@clisp.org>
22225         sethostname: Port to Windows platforms.
22226         * lib/sethostname.c: Provide an alternate implementation for Windows
22227         platforms.
22228         * tests/test-sethostname2.c (geteuid): Redefine on Cygwin.
22229         (main): Skip the test if sethostname() fails with EPERM. On Windows
22230         platforms, don't check the result of gethostname().
22232 2011-12-04  Bruno Haible  <bruno@clisp.org>
22233             Jim Meyering  <meyering@redhat.com>
22235         tests: Avoid spurious error message on platforms without mktemp program.
22236         * tests/init.sh (mktempd_): Run mktemp in a subcommand.
22238 2011-12-04  Bruno Haible  <bruno@clisp.org>
22240         sethostname: Fix documentation.
22241         * doc/glibc-functions/sethostname.texi: Move the Solaris problem to the
22242         "not fixed" section.
22244 2011-12-03  Bruno Haible  <bruno@clisp.org>
22246         gnulib-tool: Verify that the License field is present and non-empty.
22247         * gnulib-tool (func_get_license_raw): New function, extracted from
22248         func_get_license.
22249         (func_get_license): Use it. Warn if the module is not a test module and
22250         has no license.
22251         Suggested by Jim Meyering.
22253 2011-12-03  Bruno Haible  <bruno@clisp.org>
22255         sethostname tests: Fix link error on mingw.
22256         * tests/test-sethostname1.c: New file, extracted from
22257         tests/test-sethostname.c.
22258         * tests/test-sethostname2.c: New file, extracted from
22259         tests/test-sethostname.c.
22260         * tests/test-sethostname.c: Remove file.
22261         * modules/sethostname-tests (Files): Add tests/test-sethostname1.c,
22262         tests/test-sethostname2.c. Remove tests/test-sethostname.c.
22263         (Depends-on): Add gethostname.
22264         (Makefile.am): Compile both test-sethostname1 and test-sethostname2.
22265         Link the latter with $(GETHOSTNAME_LIB).
22267         sethostname tests: Fix compilation error on mingw.
22268         * tests/test-sethostname.c: Don't include <sys/types.h>.
22269         (geteuid): Use a dummy value without uid_t.
22270         * modules/sethostname-tests (Depends-on): Remove sys_types.
22272         sethostname tests: Avoid a gcc warning.
22273         * tests/test-sethostname.c (main): Remove an unused variable.
22275         Tweak last commit.
22276         * modules/sethostname-tests (Files): Sort by decreasing importance.
22277         (configure.ac): Check for geteuid.
22278         * tests/test-sethostname.c (main): Emit error messages to stderr. Skip
22279         the test when there's nothing to test. Drop an unnecessary cast.
22280         Improve an error message. Verify that the final sethostname() call
22281         succeeds.
22283 2011-12-01  Ben Walton  <bwalton@artsci.utoronto.ca>
22285         Add a test suite for the sethostname module.
22286         * modules/sethostname-tests: New file.  A test program
22287         for the sethostname module.
22288         * tests/test-sethostname.c: Likewise.
22290 2011-12-03  Bruno Haible  <bruno@clisp.org>
22292         Tweak last commit.
22293         * lib/unistd.in.h (sethostname): Keep declarations in alphabetic order.
22294         Fix preprocessor directives indentation. Fix typos.
22295         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Keep alphabetic order.
22296         * modules/unistd (Makefile): Likewise.
22298 2011-12-01  Ben Walton  <bwalton@artsci.utoronto.ca>
22300         Integrate the sethostname module into unistd.
22301         * lib/unistd.in.h: Integrate the SETHOSTNAME preprocessor handling
22302         into the unistd.h header.
22303         * m4/unistd_h.m4: Setup the autoconf handling for the SETHOSTNAME
22304         preprocessor directives.
22305         * modules/unistd: Setup the Makefile substitutions of the
22306         SETHOSTNAME preprocessor directives.
22308 2011-12-03  Bruno Haible  <bruno@clisp.org>
22310         Tweak last commit.
22311         * lib/sethostname.c: Don't include <string.h>.
22312         (sethostname): No need to copy the argument string to the stack. Don't
22313         call clearerr. Preserve errno when fprintf failed.
22314         * m4/sethostname.m4 (gl_FUNC_SETHOSTNAME): Comment about HOST_NAME_MAX.
22315         Don't invoke AC_REPLACE_FUNCS.
22316         * modules/sethostname (Link): Remove empty section.
22317         * doc/glibc-functions/sethostname.texi: Gnulib does not fix the ENOSYS
22318         failure problem.
22320 2011-12-01  Ben Walton  <bwalton@artsci.utoronto.ca>
22322         New module 'sethostname'.
22323         * lib/sethostname.c (sethostname): New file.  Provide sethostname
22324         for systems that lack it.
22325         * m4/sethostname.m4 (gl_FUNC_SETHOSTNAME): New file.  Detection of
22326         sethostname declaration and function.
22327         * modules/sethostname: New file.  Define the sethostname module.
22329 2011-12-03  Bruno Haible  <bruno@clisp.org>
22331         Tweak last commit.
22332         * m4/gethostname.m4 (gl_PREREQ_HOST_NAME_MAX): Trim blank line.
22334 2011-12-01  Ben Walton  <bwalton@artsci.utoronto.ca>
22336         Split the HOST_NAME_MAX detection into a separate m4 macro.
22337         * m4/gethostname.m4 (gl_PREREQ_HOST_NAME_MAX): Make this a separate
22338         macro so it can be used by the pending sethostname module.
22340 2011-12-03  Bruno Haible  <bruno@clisp.org>
22342         Fix module descriptions syntax.
22343         * modules/argv-iter (License): Fix syntax.
22344         * modules/di-set (License): Likewise.
22345         * modules/ino-map (License): Likewise.
22346         Reported by Stefano Lattarini <stefano.lattarini@gmail.com>.
22348 2011-12-02  Paul Eggert  <eggert@cs.ucla.edu>
22350         stdalign: port to Clang 3.0
22351         Problem reported by Simon Josefsson in
22352         <http://lists.gnu.org/archive/html/bug-gnulib/2011-12/msg00005.html>.
22353         * doc/posix-headers/stdalign.texi (stdalign.h): Mention Clang 3.0,
22354         which has <stdalign.h> but which does not define alignof.
22355         * m4/stdalign.m4 (gl_STDALIGN_H): Check for Clang 3.0's problem.
22357 2011-12-01  Eric Blake  <eblake@redhat.com>
22359         mktempd: silence dd usage
22360         * build-aux/mktempd (rand_bytes): Silence dd.
22362 2011-11-30  Simon Josefsson  <simon@josefsson.org>
22364         manywarnings: Don't mention gcc version in docstring.
22365         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Doc fix.  Suggested by
22366         Jim Meyering <meyering@redhat.com>.
22368 2011-11-30  Jim Meyering  <meyering@redhat.com>
22370         hash: mark a few floating point constants with "f" suffix
22371         * lib/hash.c (DEFAULT_GROWTH_THRESHOLD, DEFAULT_GROWTH_FACTOR)
22372         (DEFAULT_SHRINK_THRESHOLD, DEFAULT_SHRINK_FACTOR): Mark literal
22373         floating point constants with "f", since they're destined to be
22374         saved/used as "float"s.
22376 2011-11-29  Paolo Bonzini  <bonzini@gnu.org>
22378         float tests: Correct and re-enable assertion about LDBL_MIN_EXP.
22379         * tests/test-float.c (test_long_double): Correct and re-enable the
22380         assertion about LDBL_MIN_EXP that was disabled on 2011-08-31.
22382 2011-11-29  Matthew Wala  <wala1@illinois.edu>  (tiny change)
22384         Avoid subtracting two pointers that don't point into the same block.
22385         * lib/argp-help.c (hol_append): Reorder pointer subtractions so that
22386         only pointers into the same memory block are subtracted. We cannot
22387         assume that sizeof (ptrdiff_t) == sizeof (void *).
22389 2011-11-29  Eric Blake  <eblake@redhat.com>
22391         maint.mk: add syntax check for use of compare from init.sh
22392         * top/maint.mk (sc_prohibit_reversed_compare_failure): New rule,
22393         moved here from coreutils.
22395         manywarnings: drop -Wunsuffixed-float-constants
22396         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): C99 does not allow
22397         '1.0D', which is the only way to silence this warning for 'double'.
22399 2011-11-29  Jim Meyering  <meyering@redhat.com>
22401         hash: mark compute_bucket_size with the pure attribute
22402         * lib/hash.c (compute_bucket_size): Use _GL_ATTRIBUTE_PURE.
22404         quotearg, propername: correct pragma guard expression
22405         * lib/quotearg.c: Enable pragma for gcc-4.6 and newer, not 4.3 and newer.
22406         * lib/propername.c: Likewise.  Reported by Bernhard Voelker.
22408 2011-11-28  Jim Meyering  <meyering@redhat.com>
22410         propername: do not mark proper_name with the const attribute
22411         * lib/propername.h (proper_name): Do *not* mark as _GL_ATTRIBUTE_CONST,
22412         since it examines data pointed to by its parameter.
22413         * lib/propername.c (proper_name): Instead, add a pragma to suppress
22414         the suggestion from -Wsuggest-attribute=const.
22416         propername: mark one more function as const
22417         * lib/propername.h (proper_name): Mark as _GL_ATTRIBUTE_CONST.
22419 2011-11-27  Jim Meyering  <meyering@redhat.com>
22421         mark functions with const and pure attributes
22423         Mark functions per suggestions from gcc-4.6 when using these options:
22424         -Wsuggest-attribute=pure -Wsuggest-attribute=const.
22425         Use gnulib's _GL_ATTRIBUTE_PURE and _GL_ATTRIBUTE_CONST macros.
22426         Follow these guidelines: when possible, apply the attribute to
22427         an extern declaration, not to its definition.  Apply it to the
22428         definition only when the definition is static.
22429         * lib/argmatch.h (argmatch, argmatch_to_argument): Mark.
22430         * lib/argv-iter.h (argv_iter_n_args): Likewise.
22431         * lib/base64.h (isbase64): Likewise.
22432         * lib/basename-lgpl.c (last_component, base_len): Likewise.
22433         * lib/c-ctype.h (c_isascii, c_isalnum, c_isalpha): Likewise.
22434         (c_isblank, c_iscntrl, c_isdigit, c_islower, c_isgraph): Likewise.
22435         (c_isprint, c_ispunct, c_isspace, c_isupper, c_isxdigit): Likewise.
22436         (c_tolower, c_toupper): Likewise.
22437         * lib/c-strcase.h (c_strcasecmp, c_strncasecmp): Likewise.
22438         * lib/chdir-long.c (find_non_slash): Likewise.
22439         * lib/dirname.h (base_len, dir_len, last_component): Likewise.
22440         * lib/exclude.h (fnmatch_pattern_has_wildcards): Likewise.
22441         * lib/file-type.h (file_type): Likewise.
22442         * lib/filenamecat-lgpl.c (longest_relative_suffix): Likewise.
22443         * lib/filevercmp.c (verrevcmp): Likewise.
22444         * lib/freadahead.h (freadahead): Likewise.
22445         * lib/fts.c (fts_maxarglen): Likewise.
22446         * lib/hash-pjw.h (hash_pjw): Likewise.
22447         * lib/hash-triple.h (triple_hash_no_name, triple_compare_ino_str):
22448         * lib/hash.c (is_prime, next_prime): Likewise.
22449         * lib/hash.c (hash_get_n_buckets, hash_get_n_buckets_used): Likewise.
22450         (hash_get_n_entries, hash_get_max_bucket_length): Likewise.
22451         (hash_table_ok, hash_get_first, hash_string): Likewise.
22452         (compute_bucket_size): Likewise.
22453         * lib/i-ring.h (i_ring_empty): Likewise.
22454         * lib/isnan.c (isnanl): Likewise.
22455         * lib/math.h (isnanl, rpl_isnanl): Likewise.
22456         * lib/memcasecmp.h (memcasecmp): Likewise.
22457         * lib/memchr2.h (memchr2): Likewise.
22458         * lib/memcmp2.h (memcmp2): Likewise.
22459         * lib/parse-datetime.y (lookup_zone): Likewise.
22460         * lib/sockets.h (gl_sockets_startup, gl_sockets_cleanup)
22461         [!WINDOWS_SOCKETS]: Likewise.
22462         * lib/strnlen1.h (strnlen1): Likewise.
22463         * lib/uniwidth.in.h (uc_width): Likewise.
22464         * lib/quotearg.c: Add pragma to avoid unwarranted suggestion from
22465         gcc's -Wsuggest-attribute=pure for quoting_options_from_style.
22466         (quoting_options_from_style): Add a comment.
22467         * lib/propername.h (proper_name): Add a comment.
22469 2011-11-27  Bruno Haible  <bruno@clisp.org>
22471         Remove unused macros from !_LIBC code in glibc-borrowed files.
22472         * lib/fnmatch.c (STRCOLL): Remove macro.
22473         * lib/fnmatch_loop.c (STRCOLL): Remove undef.
22474         * lib/glob.c (__stat, __readdir64): Remove macros.
22475         * lib/tempname.c (__open64, __xstat64): Remove macros.
22476         Suggested by Paul Eggert.
22478 2011-11-27  Bruno Haible  <bruno@clisp.org>
22480         getcwd: Fix link error on MSVC 9.
22481         * modules/getcwd (Depends-on): Add readdir, rewinddir.
22483 2011-11-27  Bruno Haible  <bruno@clisp.org>
22485         Don't set REPLACE_FOO to 1 if HAVE_FOO is 0.
22486         * m4/opendir.m4 (gl_FUNC_OPENDIR): Don't set REPLACE_OPENDIR to 1 if
22487         HAVE_OPENDIR is 0.
22488         * m4/closedir.m4 (gl_FUNC_CLOSEDIR): Don't set REPLACE_CLOSEDIR to 1 if
22489         HAVE_CLOSEDIR is 0.
22490         * m4/dup2.m4 (gl_FUNC_DUP2): Don't set REPLACE_DUP2 to 1 if HAVE_DUP2
22491         is 0.
22492         * m4/dup3.m4 (gl_FUNC_DUP3): Update comments.
22494 2011-11-27  Bruno Haible  <bruno@clisp.org>
22496         getcwd: Fix bug from 2011-08-17.
22497         * m4/getcwd.m4 (gl_FUNC_GETCWD): Set REPLACE_GETCWD to 1 only on
22498         platforms that need it.
22499         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): Consider a return
22500         code of 4 to be a failure, not a success. This ensures that
22501         REPLACE_GETCWD becomes 1 on OpenBSD 4.9 and NetBSD 5.1.
22503 2011-11-27  Bruno Haible  <bruno@clisp.org>
22505         binary-io tests: Avoid test failure on mingw when libtool is used.
22506         * tests/test-binary-io.c (main): Don't remove t-bin-out2.tmp here.
22507         Don't verify the size of t-bin-out1.tmp here.
22508         * tests/test-binary-io.sh: Verify it here.
22509         Reported by Simon Josefsson.
22511 2011-11-26  Bruno Haible  <bruno@clisp.org>
22513         Fix conflict between two instantiations of module 'unistd'.
22514         * gnulib-tool (func_emit_autoconf_snippet): Substitute
22515         ${include_guard_prefix} also in the autoconf snippet.
22516         * m4/getopt.m4 (gl_FUNC_GETOPT_POSIX): Don't set GNULIB_UNISTD_H_GETOPT.
22517         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Don't initialize
22518         GNULIB_UNISTD_H_GETOPT.
22519         * modules/getopt-posix (configure.ac): Set the
22520         GNULIB_${gl_include_guard_prefix}_UNISTD_H_GETOPT variable.
22521         * modules/getopt-gnu (configure.ac): Likewise.
22522         * modules/unistd (Makefile.am): Change the substitution value of
22523         GNULIB_UNISTD_H_GETOPT to depend on the include guard prefix.
22524         Reported by Simon Josefsson.
22526 2011-11-25  Bruno Haible  <bruno@clisp.org>
22528         pagealign_alloc: Doc and comments.
22529         * doc/posix-functions/posix_memalign.texi: Refer to the pagealign_alloc
22530         module.
22531         * lib/pagealign_alloc.c (pagealign_alloc): Add comment.
22533 2011-11-25  Jim Meyering  <meyering@redhat.com>
22535         test-update-copyright.sh: avoid false-positive failure
22536         * tests/test-update-copyright.sh: Use $TMP.? (not $TMP.*), to work
22537         around false positive failure on Cygwin/Windows.  The latter was
22538         matching erroneously-created files with names like
22539         update-copyright.test-ex.4.bak.  Reported by Simon Josefsson.
22541 2011-11-25  Simon Josefsson  <simon@josefsson.org>
22543         valgrind-tests.m4: Avoid breakage if valgrind on bash fails.
22544         * m4/valgrind-tests.m4: Check that the parameters that will be
22545         used works, not just a subset of them.  Reported by Bruno Haible
22546         <bruno@clisp.org>.
22548 2011-11-24  Jim Meyering  <meyering@redhat.com>
22550         test-stdalign.c: comment out long double tests
22551         * tests/test-stdalign.c: Don't try to reduce alignment of long double
22552         variables.  That provokes errors like this from gcc-4.7.0 20111124:
22553         error: '_Alignas' specifiers cannot reduce alignment of \
22554         'static_longdouble_alignas'.
22556 2011-11-22  Jim Meyering  <meyering@redhat.com>
22558         init.sh: make "compare /dev/null FILE" output more readable
22559         * tests/init.sh (compare_): Document the preferred order of arguments.
22560         (emit_diff_u_header_): New function.
22561         (compare_dev_null_): Emit a simulated diff, rather than just the
22562         contents of the unexpected file.  Suggestion from Bruno Haible.
22564 2011-11-21  Jim Meyering  <meyering@redhat.com>
22565             Eric Blake  <eblake@redhat.com>
22567         init.sh: work around OSF/1 5.1's mishandling of /dev/null
22568         * tests/init.sh: Make our compare function slightly more portable.
22569         Reported by Bruno Haible in
22570         http://thread.gmane.org/gmane.comp.gnu.grep.bugs/4020
22572 2011-11-21  Simon Josefsson  <simon@josefsson.org>
22574         * m4/gnulib-common.m4 (_Noreturn): Check that _MSC_VER is defined
22575         before using it, in code that ends up in config.h.
22577 2011-11-20  Bruno Haible  <bruno@clisp.org>
22579         getcwd: Work around getcwd bug on AIX 5..7.
22580         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Require
22581         AC_CANONICAL_HOST. Assign exit code 31 to the bug seen on AIX 5.1..7.1.
22582         Use a different value for gl_cv_func_getcwd_path_max. Move the
22583         definition of HAVE_PARTLY_WORKING_GETCWD from here...
22584         * m4/getcwd.m4 (gl_FUNC_GETCWD): ... to here. Invoke
22585         gl_FUNC_GETCWD_PATH_MAX also when $gl_cv_func_getcwd_null is 'no'.
22586         Define HAVE_MINIMALLY_WORKING_GETCWD.
22587         * lib/getcwd.c (__getcwd): Don't use the system's getcwd on platforms
22588         where it is not even minimally working, that is, on AIX.
22589         * tests/test-getcwd.c (test_long_name): Distinguish the same cases as
22590         m4/getcwd-path-max.m4.
22591         (main): Update exit code computation.
22592         * doc/posix-functions/getcwd.texi: Mention list of platforms where
22593         getcwd does not handle long file names.
22595 2011-11-20  Bruno Haible  <bruno@clisp.org>
22597         getcwd: Fix bug from 2009-09-10.
22598         * m4/getcwd.m4 (gl_FUNC_GETCWD): Treat "guessing yes" like "yes", not
22599         like "no".
22601 2011-11-20  Simon Josefsson  <simon@josefsson.org>
22603         * m4/manywarnings.m4: Add more warnings from gcc 4.6.2.
22605 2011-11-20  Bruno Haible  <bruno@clisp.org>
22607         fma tests: Avoid shadowing local variables.
22608         * tests/test-fma2.h (test_function): Reduce scope of x, y, z, result,
22609         expected.
22611 2011-11-20  Bruno Haible  <bruno@clisp.org>
22613         copysignf tests: Fix.
22614         * tests/test-copysignf.c: Fix signature check.
22616 2011-11-20  Bruno Haible  <bruno@clisp.org>
22618         fma: Remove unused code.
22619         * lib/fma.c (DECL_ROUNDING, BEGIN_ROUNDING, END_ROUNDING): Remove
22620         unused macros.
22622 2011-11-20  Bruno Haible  <bruno@clisp.org>
22624         sethostname: Fix doc about AIX.
22625         * doc/glibc-functions/sethostname.texi: Drop mention that AIX 5.1 lacks
22626         sethostname; it has it.
22628         sethostname: Mention more portability problems.
22629         * doc/glibc-functions/sethostname.texi: Mention the missing declaration
22630         problem.
22631         Reported by Ben Walton <bwalton@artsci.utoronto.ca>.
22633 2011-11-19  Bruno Haible  <bruno@clisp.org>
22635         Depend on module fcntl-h when AT_FDCWD is used.
22636         * modules/utimens (Depends-on): Add fcntl-h.
22637         * modules/areadlinkat (Depends-on): Likewise.
22638         * modules/areadlinkat-with-size (Depends-on): Likewise.
22639         * modules/faccessat (Depends-on): Likewise.
22640         * modules/fchmodat (Depends-on): Likewise.
22641         * modules/fchownat (Depends-on): Likewise.
22642         * modules/getcwd (Depends-on): Likewise.
22643         * modules/mkdirat (Depends-on): Likewise.
22644         * modules/mkfifoat (Depends-on): Likewise.
22645         * modules/readlinkat (Depends-on): Likewise.
22646         * modules/symlinkat (Depends-on): Likewise.
22647         * modules/dup2-tests (Depends-on): Likewise.
22648         * modules/fdutimensat-tests (Depends-on): Likewise.
22649         * modules/futimens-tests (Depends-on): Likewise.
22651 2011-11-19  Bruno Haible  <bruno@clisp.org>
22653         euidaccess: Update a comment.
22654         * lib/euidaccess.c: Update comment about platforms with faccessat.
22656 2011-11-19  Bruno Haible  <bruno@clisp.org>
22658         openat: Fix file list.
22659         * modules/openat (Files): Remove lib/at-func.c.
22661 2011-11-19  Bruno Haible  <bruno@clisp.org>
22663         fstatat: Simplify.
22664         * lib/fstatat.c (AT_FUNC_NAME): Define as fstatat. On platforms where
22665         gnulib should define rpl_fstatat, there is a
22666         "#define fstatat rpl_fstatat" in <sys/stat.h>.
22668 2011-11-19  Bruno Haible  <bruno@clisp.org>
22670         Ensure 'inline' can be used in tests/test-utimens-common.h.
22671         * modules/fdutimensat-tests (configure.ac): Require AC_C_INLINE.
22672         * modules/futimens-tests (configure.ac): Likewise.
22673         * modules/utimens-tests (configure.ac): Likewise.
22674         * modules/utimensat-tests (configure.ac): Likewise.
22676 2011-11-19  Simon Josefsson  <simon@josefsson.org>
22678         * lib/hash.c (hash_insert): Use hash_insert_if_absent,
22679         not hash_insert0.
22680         (hash_insert_if_absent): Doc fix.
22682 2011-11-19  Simon Josefsson  <simon@josefsson.org>
22684         * m4/readline.m4 (gl_FUNC_READLINE): Check for readline/history.h.
22686 2011-11-18  Paul Eggert  <eggert@cs.ucla.edu>
22688         test-getcwd: disambiguate exit status
22689         * tests/test-getcwd.c (test_long_name): Return 0..7.
22690         (main): Exit with an unambiguous exit status.  The old
22691         code yielded a mysterious mixture of two failure codes.
22693         fstatat: fix configuration bug on mingw, OpenBSD 4, Solaris 8
22694         * lib/fstatat.c (AT_FUNC_NAME): Use HAVE_FSTAT, not
22695         HAVE_WORKING_FSTATAT_ZERO_FLAG, to decide whether to define
22696         rpl_fstatat or fstatat.  This should fix the other problem
22697         reported by Kai Habel in
22698         <http://lists.gnu.org/archive/html/bug-gnulib/2011-11/msg00237.html>.
22699         A similar problem was reported for OpenBSD 4.6 by Mats Erik Andersson
22700         <http://lists.gnu.org/archive/html/bug-gnulib/2011-11/msg00239.html>
22701         and I reproduced it on a Solaris 8 host we still have in production.
22703 2011-11-18  Jim Meyering  <meyering@redhat.com>
22705         hash: deprecate poorly-named hash_insert0: use hash_insert_if_absent
22706         * lib/hash.c (hash_insert_if_absent): Rename from hash_insert0.
22707         Add a sentence to the comment.
22708         (hash_insert0): New function that simply calls hash_insert_if_absent.
22709         * lib/hash.h (hash_insert_if_absent): Declare it.
22710         (hash_insert0): Add deprecation attribute.
22711         (_GL_ATTRIBUTE_DEPRECATED): Define.
22712         * lib/di-set.c (di_set_insert): Use hash_insert_if_absent,
22713         not hash_insert0.
22714         * NEWS: Mention it, even though it's not really an incompatible change.
22716 2011-11-18  Dagobert Michelsen  <dam@opencsw.org>  (tiny change)
22718         openat: avoid compilation failure due to lack of <errno.h> inclusion
22719         * lib/openat.c: Include <errno.h>.
22721 2011-11-17  Paul Eggert  <eggert@cs.ucla.edu>
22723         * modules/getcwd (Depends-on): Add fdopendir.
22724         This fixes one of the two problems reported by Kai Habel in
22725         <http://lists.gnu.org/archive/html/bug-gnulib/2011-11/msg00237.html>.
22727         modules/crypto/gc-*: simplify dependencies and fix stdalign.h bug
22728         stdalign problem reported by Ian Beckwith in
22729         <http://lists.gnu.org/archive/html/bug-gnulib/2011-11/msg00238.html>.
22730         * modules/crypto/gc-arcfour (Depends-on):
22731         Depend conditionally on crypto/arcfour.
22732         * modules/crypto/gc-arctwo (Depends-on):
22733         Depend conditionally on crypto/arctwo.
22734         * modules/crypto/gc-des (Depends-on):
22735         Depend conditionally on crypto/des.
22736         * modules/crypto/gc-hmac-md5 (Depends-on):
22737         Depend conditionally on crypto/hmac-md5.
22738         * modules/crypto/gc-hmac-sha1 (Depends-on):
22739         Depend conditionally on crypto/hmac-sha1.
22740         * modules/crypto/gc-md2 (Depends-on): Remove stdint, minmax.
22741         * modules/crypto/gc-md4 (Depends-on):
22742         Depend conditionally on crypto/md4.
22743         * modules/crypto/gc-md5 (Depends-on):
22744         Depend conditionally on crypto/md5.
22745         * modules/crypto/gc-rijndael (Depends-on):
22746         Depend conditionally on crypto/rijndael.
22747         * modules/crypto/gc-sha1 (Depends-on):
22748         Depend conditionally on crypto/sha1.
22749         * modules/crypto/gc-arcfour:
22750         * modules/crypto/gc-arctwo:
22751         * modules/crypto/gc-des:
22752         * modules/crypto/gc-hmac-md5:
22753         * modules/crypto/gc-hmac-sha1:
22754         * modules/crypto/gc-md2:
22755         * modules/crypto/gc-md4:
22756         * modules/crypto/gc-md5:
22757         * modules/crypto/gc-rijndael:
22758         * modules/crypto/gc-sha1:
22759         (Files, Depends-on, configure.ac): Remove now-unnecessary stuff,
22760         now that the conditional dependencies do the work for us.
22762 2011-11-17  Jim Meyering  <meyering@redhat.com>
22764         tests: factor st_ctime-comparison out of two headers
22765         * tests/test-utimens-common.h (ctime_compare): Define.
22766         * tests/test-futimens.h (test_futimens): Replace open-coded equivalent.
22767         * tests/test-lutimens.h (test_lutimens): Likewise.
22768         * tests/test-utimens.h (test_utimens): Likewise.
22770         test-getcwd: don't leave behind a confdir3/ directory upon interrupt
22771         Invoke the test program via an init.sh-using wrapper.
22772         * tests/test-getcwd.sh: New file.
22773         * modules/getcwd-tests (Files): Add it.
22774         (Makefile.am) [TESTS]: Invoke the shell script wrapper.
22776 2011-11-01  Gary V. Vaughan  <gary@gnu.org>
22778         gitlog-to-changelog: support multi-author commits.
22779         The FSF cares about keeping track of all authors of patches to its
22780         projects, but Git doesn't provide obvious support for multi-author
22781         changesets. Consensus seems to be forming around the use of extra
22782         Signed-off-by inspired lines in the log message formatted as
22783         `Co-authored-by: A U Thor <email@example.com>' for round-tripping
22784         multi-author commits between version control systems.
22785         * gitlog-to-changelog: Extract `Co-authored-by:' lines from the git
22786         log message and output in standard ChangeLog multi-author format.
22787         Reported by Peter Rosin <peda@lysator.liu.se>
22789 2011-11-15  Ben Walton  <bwalton@artsci.utoronto.ca>  (tiny change)
22790             Bruno Haible  <bruno@clisp.org>
22792         Fix some modules' file list.
22793         * modules/fstatat (Files): Add m4/lstat.m4.
22794         * modules/openat (Files): Likewise.
22795         * modules/unlinkat (Files): Likewise.
22797 2011-11-15  Gary V. Vaughan  <gary@gnu.org>
22799         maint.mk: fix tight-scope.mk generation in VPATH builds.
22800         * top/maint.mk (tight-scope.mk): Make sure to prefix file
22801         reference with $(srcdir) so that the file is found correctly even
22802         when running `make syntax-check' in a VPATH build.
22804 2011-11-13  Bruno Haible  <bruno@clisp.org>
22805             Jim Meyering  <meyering@redhat.com>
22807         Silence successful tests that use 'compare' on AIX, HP-UX, Solaris.
22808         * tests/init.sh (compare): Remove "No differences encountered" or
22809         synonymous output from the 'diff' program.
22811 2011-11-13  Bruno Haible  <bruno@clisp.org>
22813         Makefile: Tweak indentation.
22814         * Makefile: Use tab as first character in every line that contains rule
22815         commands.
22817 2011-11-13  Bruno Haible  <bruno@clisp.org>
22819         Syntax check for copyright statements.
22820         * check-copyright: New file.
22821         * Makefile (sc_check_copyright): New rule.
22823 2011-11-13  Simon Josefsson  <simon@josefsson.org>
22825         * build-aux/git-version-gen: Add --prefix to configure the tag
22826         match string.
22828 2011-11-13  Simon Josefsson  <simon@josefsson.org>
22830         * build-aux/git-version-gen: Add --help and --version.
22832 2011-11-12  Jim Meyering  <meyering@redhat.com>
22834         revamp the other test-exclude?.sh scripts to use init.sh, too
22835         * tests/test-exclude1.sh: Use init.sh.
22836         * tests/test-exclude2.sh: Likewise.
22837         * tests/test-exclude3.sh: Likewise.
22838         * tests/test-exclude4.sh: Likewise.
22839         * tests/test-exclude5.sh: Likewise.
22840         * tests/test-exclude6.sh: Likewise.
22841         * tests/test-exclude7.sh: Likewise.
22842         * tests/test-exclude8.sh: Likewise.
22843         * modules/exclude-tests (Files): List init.sh.
22845         test-exclude2.sh, test-exclude5.sh: fail if test-exclude fails
22846         These shell scripts ignored failure of the binary test-exclude,
22847         so making the latter return 77 didn't cause them to be skipped.
22848         * tests/test-exclude5.sh: Exit with test-exclude's error status
22849         when that program fails.  Revamp to use init.sh.
22850         * tests/test-exclude2.sh: Likewise.
22852         test-exclude: fix a typo
22853         * tests/test-exclude.c (main): Test for "leading_dir", not "leading-dir".
22855 2011-11-11  Bruno Haible  <bruno@clisp.org>
22857         obstack: Fix compilation error on MSVC 9.
22858         * lib/obstack.c (print_and_abort): Declare with _Noreturn specifier.
22860 2011-11-11  Jim Meyering  <meyering@redhat.com>
22862         test-exclude: skip tests rather than failing on deficient systems
22863         * tests/test-exclude.c (main): Skip tests that use FNM_CASEFOLD
22864         and FNM_LEADING_DIR on systems that lack the definitions.  This affects
22865         at least Solaris 9.  Reported and diagnosed by Dagobert Michelsen in
22866         http://thread.gmane.org/gmane.comp.gnu.grep.bugs/3947/focus=3950
22868 2011-11-10  Bruno Haible  <bruno@clisp.org>
22870         ptsname_r test: Avoid gcc warning on glibc systems.
22871         * tests/test-ptsname_r.c (null_ptr): New function.
22872         (test_errors): Use it.
22874 2011-11-10  Bruno Haible  <bruno@clisp.org>
22876         ptsname_r: Avoid compilation error on OSF/1 5.1.
22877         * lib/stdlib.in.h (ptsname_r): Override if REPLACE_PTSNAME_R is 1.
22878         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_PTSNAME_R.
22879         * m4/ptsname_r.m4 (gl_FUNC_PTSNAME_R): Set REPLACE_PTSNAME_R if the
22880         function is not declared or incompatibly declared.
22881         * modules/stdlib (Makefile.am): Substitute REPLACE_PTSNAME_R.
22882         * modules/ptsname_r (Depends-on, configure.ac): Update.
22883         * doc/glibc-functions/ptsname_r.texi: Mention the OSF/1 problems.
22885 2011-11-10  Bruno Haible  <bruno@clisp.org>
22887         fstatat: Make cross-compilation guess succeed everywhere except on AIX.
22888         * m4/fstatat.m4 (gl_FUNC_FSTATAT): Require AC_CANONICAL_HOST.
22889         When cross-compiling, guess yes on all platforms except AIX.
22890         Reported by Ludovic Courtès <ludo@gnu.org>.
22892 2011-11-09  Bruno Haible  <bruno@clisp.org>
22894         ptsname_r tests: Fix bugs.
22895         * tests/test-ptsname_r.c (test_errors): Change return type to 'void'.
22896         Fix ptsname_r calls. Reduce loop rounds to a reasonable amount.
22898 2011-11-09  Paul Eggert  <eggert@cs.ucla.edu>
22900         fstatat: work with cross-compilation
22901         Problem reported by Ludovic Courtès in
22902         <http://lists.gnu.org/archive/html/bug-gnulib/2011-11/msg00136.html>.
22903         * m4/fstatat.m4 (gl_FUNC_FSTATAT): When cross-compiling, report
22904         "cross-compiling" and assume the bug is present.  Replace
22905         FSTATAT_ZERO_FLAG_BROKEN with HAVE_WORKING_FSTATAT_ZERO_FLAG with
22906         an inverted sense, to be more conservative about our assumptions.
22907         * lib/fstatat.c (rpl_fstatat): Adjust to renamed macro.
22909 2011-11-09  Bruno Haible  <bruno@clisp.org>
22911         Improve MODULES.html output.
22912         * modules/mkfifoat (Description): Use the word "function".
22913         * modules/readlinkat (Description): Likewise.
22914         * modules/symlinkat (Description): Likewise.
22916 2011-11-09  Eric Blake  <eblake@redhat.com>
22918         ptsname_r-tests: new test module
22919         * modules/ptsname_r-tests: New module.
22920         * tests/test-ptsname_r.c: New file.
22922         ptsname_r: new module
22923         * modules/ptsname_r: New module.
22924         * m4/ptsname_r.m4 (gl_FUNC_PTSNAME_R): New file.
22925         * lib/ptsname.c (__ptsname_r): Split...
22926         * lib/ptsname_r.c: ...into new file.
22927         * m4/stdlib_h.m4 (gl_STDLIB_H): Check for decl.
22928         (gl_STDLIB_H_DEFAULTS): Set witness defaults.
22929         * modules/stdlib (Makefile.am): Substitute witnesses.
22930         * lib/stdlib.in.h (ptsname_r): Declare it.
22931         * doc/glibc-functions/ptsname_r.texi (ptsname_r): Document it.
22932         * MODULES.html.sh (Misc): Likewise.
22933         * modules/ptsname (Depends-on): Alter dependency.
22934         * doc/posix-functions/ptsname.texi (ptsname): Mention new module.
22936 2011-11-09  Jim Meyering  <meyering@redhat.com>
22938         announce-gen: be more concise when there's only one URL+tarball
22939         * build-aux/announce-gen (get_tool_versions): When you distribute
22940         only one type of tarball, combine the first two "Here are..."
22941         sections and make the key-checking grammar independent of
22942         how many tarballs there are.
22944 2011-11-09  Eric Blake  <eblake@redhat.com>
22946         openpty: provide a stub on mingw
22947         * lib/pty.in.h (includes): Provide forward declarations.
22948         * lib/openpty.c (openpty) [mingw]: Provide ENOSYS stub.
22950         raise: fix mingw handling of SIGPIPE
22951         * lib/sigprocmask.c (_gl_raise_SIGPIPE): Provide a return value.
22953 2011-11-08  Bruno Haible  <bruno@clisp.org>
22955         More conditional dependencies.
22956         * modules/faccessat (Depends-on): Add conditions.
22957         * modules/fchmodat (Depends-on): Likewise.
22958         * modules/fchownat (Depends-on): Likewise.
22959         * modules/fstatat (Depends-on): Likewise.
22960         * modules/mkfifoat (Depends-on): Likewise.
22961         * modules/readlinkat (Depends-on): Likewise.
22962         * modules/symlinkat (Depends-on): Likewise.
22963         * modules/unlinkat (Depends-on): Likewise.
22964         * modules/utimensat (Depends-on): Likewise.
22965         * modules/mkdirat (Depends-on): Add sys_stat. Add conditions.
22966         * modules/linkat (Depends-on): Refine the conditions.
22967         * modules/renameat (Depends-on): Likewise.
22969 2011-11-08  Bruno Haible  <bruno@clisp.org>
22971         faccessat: Move AC_LIBOBJ invocation to module description.
22972         * m4/faccessat.m4 (gl_PREREQ_FACCESSAT): New macro.
22973         (gl_FUNC_FACESSAT): Don't test for access() here. Move AC_LIBOBJ
22974         invocation from here...
22975         * modules/faccessat (configure.ac): ... to here. Invoke
22976         gl_PREREQ_FACCESSAT.
22978 2011-11-08  Bruno Haible  <bruno@clisp.org>
22980         faccessat: Simplify autoconf macro.
22981         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Don't require gl_FUNC_OPENAT,
22982         gl_FUNC_EUIDACCESS.
22984 2011-11-08  Bruno Haible  <bruno@clisp.org>
22986         renameat: Fix dependencies.
22987         * modules/renameat (Depends-on): Add stdbool.
22989 2011-11-08  Bruno Haible  <bruno@clisp.org>
22991         mkfifoat: Fix module description.
22992         * modules/mkfifoat (configure.ac): Invoke gl_SYS_STAT_MODULE_INDICATOR,
22993         not gl_UNISTD_MODULE_INDICATOR.
22995 2011-11-08  Bruno Haible  <bruno@clisp.org>
22997         fstatat: Remove unused dependency.
22998         * modules/fstatat (Depends-on): Remove fstat.
23000 2011-11-08  Simon Josefsson  <simon@josefsson.org>
23002         GNUmakefile: behave when Makefile is missing.
23003         * top/GNUmakefile: Always initialize _build-aux and _autoreconf.
23005 2011-11-08  Bruno Haible  <bruno@clisp.org>
23007         openat: Conditionalize dependencies.
23008         * lib/openat.c: Reduce the scope of some #includes.
23009         * modules/openat (Depends-on): Add conditions.
23011 2011-11-07  Jim Meyering  <meyering@redhat.com>
23013         maint.mk: extract GPG key ID without using a temporary file
23014         * top/maint.mk (gpg_key_ID): Extract GPG key ID from signed tag, but
23015         without using a temporary file.  Based on a suggestion from Werner Koch
23016         in http://thread.gmane.org/gmane.comp.encryption.gpg.devel/16496
23018 2011-11-07  Eric Blake  <eblake@redhat.com>
23020         grantpt: fix typo
23021         * lib/stdlib.in.h (grantpt): Check correct function.
23023         maint.mk: silence new syntax check
23024         * top/maint.mk (sc_prohibit_dirent_without_use): Add missing @.
23026 2011-11-06  Bruno Haible  <bruno@clisp.org>
23028         Doc about floating-point and math API.
23029         * doc/posix-headers/float.texi: Mention problem with FLT_ROUNDS.
23030         * doc/posix-headers/math.texi: Mention problem with math_errhandling.
23032 2011-11-06  Bruno Haible  <bruno@clisp.org>
23034         stdalign tests: Skip the test when compiled by Sun C.
23035         * tests/test-stdalign.c (main): Skip the test on Sun C.
23037 2011-11-06  Bruno Haible  <bruno@clisp.org>
23039         ansi-c++-opt: Complete the 2011-06-05 change.
23040         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): When a C++ compiler is found but
23041         does not support namespaces, set the variable to "no", not to ":".
23043 2011-11-06  Paul Eggert  <eggert@cs.ucla.edu>
23045         * doc/posix-headers/stdalign.texi (stdalign.h): Mention Sun review ID.
23047 2011-11-06  Bruno Haible  <bruno@clisp.org>
23049         copysignl: Fix result for zero argument on HP-UX 11 with HP C.
23050         * lib/copysignl.c (compute_minus_zerol) [HP-UX]: New function.
23051         (minus_zerol) [HP-UX]: New macro.
23052         (unary_minus) [HP-UX]: New function.
23053         (copysignl) [HP-UX]: Use unary_minus function.
23055 2011-11-06  Bruno Haible  <bruno@clisp.org>
23057         ldexp, ldexpf, ldexpl: Enhance tests.
23058         * tests/test-ldexp.h: New file, combining code from tests/test-ldexp.c
23059         and tests/test-ldexpl.c.
23060         * tests/test-ldexpl.c: (DOUBLE, ISNAN, INFINITY, NAN, L_, MINUS_ZERO,
23061         LDEXP, MIN_EXP, MAX_EXP): New macros.
23062         Include test-ldexp.h.
23063         (main): Just call test_function.
23064         * tests/test-ldexp.c: Include float.h, isnand-nolibm.h, minus-zero.h,
23065         infinity.h, nan.h.
23066         (DOUBLE, ISNAN, INFINITY, NAN, L_, MINUS_ZERO, LDEXP, MIN_EXP,
23067         MAX_EXP): New macros.
23068         Include test-ldexp.h.
23069         (x, y): Remove variables.
23070         (main): Just call test_function.
23071         * tests/test-ldexpf.c: Include float.h, isnanf-nolibm.h, minus-zero.h,
23072         infinity.h, nan.h.
23073         (DOUBLE, ISNAN, INFINITY, NAN, L_, MINUS_ZERO, LDEXP, MIN_EXP,
23074         MAX_EXP): New macros.
23075         Include test-ldexp.h.
23076         (x, y): Remove variables.
23077         (main): Just call test_function.
23078         * modules/ldexpl-tests (Files): Add tests/test-ldexp.h.
23079         * modules/ldexp-tests (Files): Add tests/test-ldexp.h,
23080         tests/minus-zero.h, tests/infinity.h, tests/nan.h.
23081         (Depends-on): Add isnand-nolibm, signbit, float.
23082         * modules/ldexpf-tests (Files): Add tests/test-ldexp.h,
23083         tests/minus-zero.h, tests/infinity.h, tests/nan.h.
23084         (Depends-on): Add isnanf-nolibm, signbit, float.
23086 2011-11-06  Bruno Haible  <bruno@clisp.org>
23088         math tests: Cosmetics.
23089         * tests/test-math-c++.cc: Reorder declarations.
23091 2011-11-05  Bruno Haible  <bruno@clisp.org>
23093         fma*: Simplify test.
23094         * tests/test-fma2.h (FORGIVE_GLIBC_BUG): Remove macro.
23095         (test_function): Remove all if (FORGIVE_GLIBC_BUG) statements.
23097         Tests for module 'fmal'.
23098         * modules/fmal-tests: New file.
23099         * tests/test-fmal1.c: New file.
23100         * tests/test-fmal2.c: New file.
23102         New module 'fmal'.
23103         * lib/math.in.h (fmal): New declaration.
23104         * lib/fmal.c: New file.
23105         * m4/fmal.m4: New file.
23106         * m4/math_h.m4 (gl_MATH_H): Test whethern fmal is declared.
23107         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FMAL, HAVE_FMAL, REPLACE_FMAL.
23108         * modules/math (Makefile.am): Substitute GNULIB_FMAL, HAVE_FMAL,
23109         REPLACE_FMAL.
23110         * modules/fmal: New file.
23111         * doc/posix-functions/fmal.texi: Mention the new module and the various
23112         bugs.
23114         Tests for module 'fmaf'.
23115         * modules/fmaf-tests: New file.
23116         * tests/test-fmaf1.c: New file.
23117         * tests/test-fmaf2.c: New file.
23119         New module 'fmaf'.
23120         * lib/math.in.h (fmaf): New declaration.
23121         * lib/fmaf.c: New file.
23122         * m4/fmaf.m4: New file.
23123         * m4/math_h.m4 (gl_MATH_H): Test whethern fmaf is declared.
23124         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FMAF, HAVE_FMAF, REPLACE_FMAF.
23125         * modules/math (Makefile.am): Substitute GNULIB_FMAF, HAVE_FMAF,
23126         REPLACE_FMAF.
23127         * modules/fmaf: New file.
23128         * doc/posix-functions/fmaf.texi: Mention the new module and the various
23129         bugs.
23131         Tests for module 'fma'.
23132         * modules/fma-tests: New file.
23133         * tests/test-fma1.c: New file.
23134         * tests/test-fma1.h: New file.
23135         * tests/test-fma2.c: New file.
23136         * tests/test-fma2.h: New file.
23138         New module 'fma'.
23139         * lib/math.in.h (fma): New declaration.
23140         * lib/fma.c: New file.
23141         * m4/fma.m4: New file.
23142         * m4/fegetround.m4: New file.
23143         * m4/math_h.m4 (gl_MATH_H): Test whethern fma is declared.
23144         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FMA, HAVE_FMA, REPLACE_FMA.
23145         * modules/math (Makefile.am): Substitute GNULIB_FMA, HAVE_FMA,
23146         REPLACE_FMA.
23147         * modules/fma: New file.
23148         * doc/posix-functions/fma.texi: Mention the new module and the various
23149         bugs.
23151         Extend gl_MATHFUNC.
23152         * m4/mathfunc.m4 (gl_MATHFUNC): Accept an 4th parameter of INCLUDES.
23153         Support 'void' as argument type.
23154         * m4/rint.m4 (gl_FUNC_RINT): Update gl_MATHFUNC invocation.
23156 2011-11-05  Jim Meyering  <meyering@redhat.com>
23158         maint.mk: also prohibit inclusion of dirent.h without use
23159         * top/maint.mk (sc_prohibit_dirent_without_use): New rule.
23161 2011-11-05  Bruno Haible  <bruno@clisp.org>
23163         ldexpl tests: Avoid test failure on MSVC 9.
23164         * tests/test-ldexpl.c (main): Use a temporary variable for the expected
23165         value. Needed in order to enforce the conversion from a value greater
23166         than LDBL_MAX to Infinity.
23168 2011-11-05  Bruno Haible  <bruno@clisp.org>
23170         New modules 'at-internal', 'openat-h', split off from module 'openat'.
23171         * modules/at-internal: New file, extracted from modules/openat.
23172         * modules/openat-h: New file.
23173         * m4/openat.m4 (gl_FUNC_OPENAT): Don't set GNULIB_OPENAT. Don't
23174         invoke gl_PREREQ_OPENAT and gl_MODULE_INDICATOR.
23175         * modules/openat (Description): Add reference to POSIX function.
23176         (Files): Remove lib/openat.h, lib/openat-proc.c.
23177         (Depends-on): Add at-internal, openat-h. Remove fdopendir, gettext-h,
23178         intprops, unistd.
23179         (configure.ac): Remove AC_LIBOBJ of openat-proc. Invoke
23180         gl_PREREQ_OPENAT, gl_MODULE_INDICATOR here. Invoke
23181         gl_FCNTL_MODULE_INDICATOR.
23182         (Include): Remove unistd.h, openat.h.
23183         * modules/areadlinkat (Files): Add lib/at-func.c.
23184         (Depends-on): Add at-internal, dosname, errno, extensions, fchdir,
23185         openat-die, openat-h, save-cwd.
23186         * modules/areadlinkat-with-size (Files): Add lib/at-func.c.
23187         (Depends-on): Add at-internal, dosname, errno, extensions, fchdir,
23188         openat-die, openat-h, save-cwd, unistd.
23189         * modules/faccessat (Files): Add lib/at-func.c, lib/openat-priv.h.
23190         (Depends-on): Add at-internal, dosname, errno, fchdir, openat-die,
23191         openat-h, save-cwd. Remove fcntl-h, openat.
23192         * modules/fchmodat (Files): Remove lib/openat.h.
23193         (Depends-on): Add at-internal, openat-h. Remove dirent, fcntl-h,
23194         openat, stdbool, unistd.
23195         * modules/fchownat (Files): Remove lib/openat.h.
23196         (Depends-on): Add at-internal, openat-h. Remove dirent, fcntl-h,
23197         openat, stdbool, sys_stat.
23198         * modules/fdopendir (Files): Remove lib/openat-priv.h,
23199         lib/openat-proc.c.
23200         (Depends-on): Add at-internal.
23201         (condigure.ac): Remove AC_LIBOBJ of openat-proc.
23202         * modules/fstatat (Files): Remove lib/openat.h.
23203         (Depends-on): Add at-internal, openat-h. Remove dirent, openat,
23204         stdbool, unistd.
23205         * modules/fts (Depends-on): Add openat-h.
23206         * modules/linkat (Depends-on): Add at-internal, openat-h. Remove
23207         openat.
23208         * modules/mkdirat (Files): Remove lib/openat.h.
23209         (Depends-on): Add at-internal, openat-h. Remove dirent, fcntl-h,
23210         openat, stdbool, sys_stat.
23211         * modules/mkfifoat (Files): Add lib/at-func.c.
23212         (Depends-on): Add at-internal, dosname, errno, fchdir, openat-die,
23213         openat-h, save-cwd. Remove fcntl-h, openat.
23214         * modules/openat-die (Depends-on): Add openat-h. Remove openat.
23215         * modules/readlinkat (Files): Add lib/at-func.c.
23216         (Depends-on): Add at-internal, dosname, errno, fchdir, openat-die,
23217         openat-h, save-cwd. Remove fcntl-h, openat.
23218         * modules/renameat (Depends-on): Add at-internal, openat-h. Remove
23219         openat.
23220         * modules/selinux-at (Files): Add lib/at-func.c.
23221         (Depends-on): Add at-internal, dosname, errno, extensions, fchdir,
23222         fcntl-h, openat-die, openat-h, save-cwd, unistd. Remove openat.
23223         * modules/symlinkat (Files): Add lib/at-func.c.
23224         (Depends-on): Add at-internal, dosname, errno, fchdir, openat-die,
23225         openat-h, save-cwd. Remove fcntl-h, openat.
23226         * modules/unlinkat (Files): Remove lib/openat.h.
23227         (Depends-on): Add at-internal, openat-h. Remove dirent, openat,
23228         stdbool.
23229         * modules/utimensat (Files): Add lib/at-func.c.
23230         (Depends-on): Add at-internal, dosname, errno, fchdir, fcntl-h,
23231         openat-die, openat-h, save-cwd.
23232         * modules/fchownat-tests (Depends-on): Add openat-h. Remove openat.
23233         * modules/fdutimensat-tests (Depends-on): Add openat.
23234         * modules/fstatat-tests (Depends-on): Add openat-h.
23235         * modules/readlinkat-tests (Depends-on): Add openat.
23236         * modules/symlinkat-tests (Depends-on): Add openat.
23238 2011-11-05  Bruno Haible  <bruno@clisp.org>
23240         openat: Include <stdbool.h>.
23241         * lib/openat.c: Include <stdbool.h>.
23243 2011-11-04  Bruno Haible  <bruno@clisp.org>
23245         fchownat, renameat, unlinkat: Fix dependencies.
23246         * modules/fchownat (Depends-on): Add fstatat.
23247         * modules/renameat (Depends-on): Likewise.
23248         * modules/unlinkat (Depends-on): Likewise.
23250 2011-11-04  Paul Eggert  <eggert@cs.ucla.edu>
23252         openat: remove direct dependency on dirent
23253         * lib/openat.h: Don't include <dirent.h>; it's no longer needed,
23254         and hasn't been needed ever since fdopendir was split into its own
23255         module on 2009-08-31.
23256         * modules/openat (Depends-on): Remove dirent.
23258 2011-11-04  Bruno Haible  <bruno@clisp.org>
23260         renameat: Optimize code size.
23261         * modules/renameat (configure.ac): Don't compile at-func2.c if
23262         REPLACE_RENAMEAT is 1.
23264 2011-11-04  Bruno Haible  <bruno@clisp.org>
23266         openat tests: Fix file list.
23267         * modules/openat-tests (Files): Add tests/test-open.h.
23269 2011-11-04  Bruno Haible  <bruno@clisp.org>
23271         openat, fchmodat, fchownat, linkat, renameat: Fix dependencies.
23272         * modules/fchmodat (Depends-on): Add openat-die.
23273         * modules/fchownat (Depends-on): Likewise.
23274         * modules/linkat (Depends-on): Likewise.
23275         * modules/renameat (Depends-on): Likewise.
23276         * modules/openat (Depends-on): Add dirent.
23278 2011-11-04  Jim Meyering  <meyering@redhat.com>
23280         at-func*.c: fix comments
23281         * lib/at-func2.c: Correct/improve first-line comment.
23282         * lib/at-func.c: Correct grammar in first-line comment.
23284 2011-11-04  Bruno Haible  <bruno@clisp.org>
23286         New module 'mkdirat', split off from module 'openat'.
23287         * m4/mkdirat.m4: New file. extracted from m4/openat.m4.
23288         * m4/openat.m4 (gl_FUNC_OPENAT): Don't require gl_SYS_STAT_H_DEFAULTS.
23289         Don't test for mkdirat. Don't set GNULIB_MKDIRAT, HAVE_MKDIRAT.
23290         * modules/mkdirat: New file, extracted from modules/openat.
23291         * modules/openat (Files): Remove lib/mkdirat.c.
23292         (Depends-on): Remove mkdir.
23293         (configure.ac): Remove AC_LIBOBJ of mkdirat.
23294         (Include): Remove <sys/stat.h>.
23295         * modules/mkdirat-tests: New file, extracted from modules/openat-tests.
23296         * modules/openat-tests (Files): Remove tests/test-mkdirat.c,
23297         tests/test-mkdir.h.
23298         (Depends-on): Remove ignore-value.
23299         (Makefile.am): Remove rules for test-mkdirat.
23300         * doc/posix-functions/mkdirat.texi: Mention module 'mkdirat' instead
23301         of module 'openat'.
23302         * NEWS: Mention the change.
23304 2011-11-04  Bruno Haible  <bruno@clisp.org>
23306         closedir: Avoid warning on mingw.
23307         * lib/closedir.c: Include <unistd.h>.
23309 2011-11-04  Bruno Haible  <bruno@clisp.org>
23311         New module 'fstatat', split off from module 'openat'.
23312         * lib/openat.h (statat, lstatat): Enable only if GNULIB_FSTATAT is
23313         defined.
23314         * m4/fstatat.m4: New file. extracted from m4/openat.m4.
23315         * m4/openat.m4 (gl_FUNC_OPENAT): Don't set GNULIB_FSTATAT. Don't invoke
23316         gl_FUNC_FSTATAT.
23317         (gl_FUNC_FSTATAT): Moved to m4/fstatat.m4.
23318         * modules/fstatat: New file, extracted from modules/openat.
23319         * modules/openat (Files): Remove lib/fstatat.c.
23320         (Depends-on): Remove lstat.
23321         (configure.ac): Remove AC_LIBOBJ of fstatat.
23322         * modules/fstatat-tests: New file, extracted from modules/openat-tests.
23323         * modules/openat-tests (Files): Remove tests/test-fstatat.c,
23324         tests/test-lstat.h, tests/test-stat.h.
23325         (Depends-on): Remove getcwd-lgpl.
23326         (Makefile.am): Remove rules for test-fstatat.
23327         * doc/posix-functions/fstatat.texi: Mention module 'fstatat' instead
23328         of module 'openat'.
23329         * NEWS: Mention the change.
23330         * modules/getcwd (Depends-on): Add fstatat.
23331         * modules/linkat (Depends-on): Likewise.
23332         * modules/mkfifoat-tests (Depends-on): Likewise.
23333         * modules/utimensat (Depends-on): Add fstatat. Remove openat.
23335 2011-11-03  Bruno Haible  <bruno@clisp.org>
23337         New module 'unlinkat', split off from module 'openat'.
23338         * m4/unlinkat.m4: New file, extracted from m4/openat.m4.
23339         * m4/openat.m4 (gl_FUNC_OPENAT): Don't set GNULIB_UNLINKAT,
23340         REPLACE_UNLINKAT, HAVE_UNLINKAT. Don't test for unlinkat.
23341         * modules/unlinkat: New file, extracted from modules/openat. Correct
23342         the dependency conditions.
23343         * modules/openat (Files): Remove lib/unlinkat.c.
23344         (Depends-on): Remove rmdir, unlink.
23345         (configure.ac): Remove AC_LIBOBJ of unlinkat.
23346         * modules/unlinkat-tests: New file, extracted from modules/openat-tests.
23347         * modules/openat-tests (Files): Remove tests/test-unlinkat.c,
23348         tests/test-rmdir.h, tests/test-unlink.h.
23349         (Depends-on): Remove unlinkdir.
23350         (Makefile.am): Remove rules for test-unlinkat.
23351         * doc/posix-functions/unlinkat.texi: Mention module 'unlinkat' instead
23352         of module 'openat'.
23353         * NEWS: Mention the change.
23354         * modules/linkat-tests (Depends-on): Add unlinkat.
23355         * modules/mkfifoat-tests (Depends-on): Likewise.
23356         * modules/readlinkat-tests (Depends-on): Likewise.
23358 2011-11-02  Bruno Haible  <bruno@clisp.org>
23360         New module 'fchmodat', split off from module 'openat'.
23361         * lib/openat.h (chmodat, lchmodat): Enable only if GNULIB_FCHMODAT is
23362         defined.
23363         * m4/fchmodat.m4: New file, extracted from m4/openat.m4.
23364         * m4/openat.m4 (gl_FUNC_OPENAT): Don't set GNULIB_FCHMODAT. Don't test
23365         for fchmodat, lchmod. Don't set HAVE_FCHMODAT.
23366         * modules/fchmodat: New file, extracted from modules/openat.
23367         * modules/openat (Files): Remove lib/fchmodat.c.
23368         (configure.ac): Remove AC_LIBOBJ of fchmodat.
23369         * modules/fchmodat-tests: New file, extracted from modules/openat-tests.
23370         * modules/openat-tests (Files): Remove tests/test-fchmodat.c.
23371         (Makefile.am): Remove rules for test-fchmodat.
23372         * doc/posix-functions/fchmodat.texi: Mention module 'fchmodat' instead
23373         of module 'openat'.
23374         * NEWS: Mention the change.
23376 2011-11-02  Jim Meyering  <meyering@redhat.com>
23378         putenv: indent #definition of "environ" to placate cppi
23379         * lib/putenv.c (environ): Make indentation reflect cpp nesting.
23381         gitlog-to-changelog: provide a ChangeLog-repair mechanism
23382         Git logs are often treated as immutable, because editing them
23383         changes the SHA1 checksums of all descendants.  Thus, errors in
23384         git logs tend to stay there forever.  However, when we generate
23385         a ChangeLog file -- typically for distribution -- from that git log,
23386         we can actually make corrections in the generated file.  The key
23387         lies in recording in machine-readable/applicable form the desired
23388         corrections.  See --help for description and an example.
23389         * build-aux/gitlog-to-changelog (parse_amend_file): New function.
23390         (usage): Describe it; alphabetize option descriptions.
23391         (main): Honor the new option, carefully.
23393 2011-11-01  Jim Meyering  <meyering@redhat.com>
23395         gitlog-to-changelog: avoid an infloop
23396         * build-aux/gitlog-to-changelog: Don't infloop for a commit log
23397         that ends up being empty.
23399 2011-11-01  Paul Eggert  <eggert@cs.ucla.edu>
23401         * MODULES.html.sh: Fix sed-script shell quoting and locale issues.
23402         (func_module): Replace foo=` ... sed -e COMPLICATED ... ` with
23403         bar=COMPLICATED; foo=` ... sed -e "$bar" ... ` when COMPLICATED
23404         contains (possibly-quoted) backslashes.  This should avoid
23405         all-too-common shell bugs if COMPLICATED contains backslashes in
23406         the "wrong" places.  Reported by David Evans in
23407         <http://lists.gnu.org/archive/html/bug-gnulib/2011-11/msg00013.html>.
23408         When 'sed' uses character ranges like A-Z, invoke it in the C locale,
23409         because we want ASCII ranges.  Is there some reason we don't use
23410         the C locale everywhere in this script?
23411         (func_module, top level): Avoid unwanted pathname expansion when
23412         $repo_url_prefix or $repo_url_suffix_repl contain shell
23413         metacharacters like '?' and '*'.
23415 2011-11-01  Bruno Haible  <bruno@clisp.org>
23417         fchownat: Improve description.
23418         * modules/fchownat (Description): Add link to function.
23420 2011-11-01  Paul Eggert  <eggert@cs.ucla.edu>
23422         * tests/test-stdalign.c (TEST_ALIGNMENT): Shrink back to 8.
23423         mingw supports alignments only up to 8 (!).  Reported by Bruno Haible in
23424         <http://lists.gnu.org/archive/html/bug-gnulib/2011-11/msg00006.html>.
23425         * doc/posix-headers/stdalign.texi (stdalign.h): Document this.
23427 2011-11-01  Bruno Haible  <bruno@clisp.org>
23429         alignof: Avoid collision with stdalign module.
23430         * lib/alignof.h (alignof): Remove macro.
23431         * NEWS: Mention the change.
23432         Reported by Paul Eggert.
23434 2011-11-01  Bruno Haible  <bruno@clisp.org>
23436         New module 'fchownat', split off from module 'openat'.
23437         * lib/openat.h (chownat, lchownat): Enable only if GNULIB_FCHOWNAT is
23438         defined.
23439         * m4/fchownat.m4: New file, extracted from m4/openat.m4.
23440         * m4/openat.m4 (gl_FUNC_OPENAT): Don't set GNULIB_FCHOWNAT. Don't
23441         invoke gl_FUNC_FCHOWNAT.
23442         (gl_FUNC_FCHOWNAT_DEREF_BUG, gl_FUNC_FCHOWNAT_EMPTY_FILENAME_BUG,
23443         gl_FUNC_FCHOWNAT): Moved to m4/fchownat.m4.
23444         * modules/fchownat: New file, extracted from modules/openat.
23445         * modules/openat (Files): Remove lib/fchownat.c.
23446         (Depends-on): Remove lchown.
23447         (configure.ac): Remove AC_LIBOBJ of fchownat.
23448         * modules/fchownat-tests: New file, extracted from modules/openat-tests.
23449         * modules/openat-tests (Files): Remove tests/test-fchownat.c,
23450         tests/test-chown.h, tests/test-lchown.h, tests/nap.h.
23451         (Depends-on): Remove mgetgroups, usleep, stat-time.
23452         (configure.ac): Remove test for getegid.
23453         (Makefile.am): Remove rules for test-fchownat.
23454         * doc/posix-functions/fchownat.texi: Mention module 'fchownat' instead
23455         of module 'openat'.
23456         * NEWS: Mention the change.
23458 2011-10-31  Paul Eggert  <eggert@cs.ucla.edu>
23460         stdalign: port better to MSVC and to Sun C 5.11
23461         This fixes some of the problems reported by Bruno Haible in
23462         <http://lists.gnu.org/archive/html/bug-gnulib/2011-10/msg00300.html>.
23463         * doc/posix-headers/stdalign.texi (stdalign.h): Document more
23464         shortcomings of MSVC and of Sun C 5.11.
23465         * lib/stdalign.in.h (_Alignas): Omit bogus extra parenthesis
23466         around __declspec arg.
23467         * modules/stdalign-tests (Files): Add tests/macros.h.
23468         * tests/test-stdalign.c: Do not include <stdlib.h>; no longer needed.
23469         Include macros.h, for ASSERT.
23470         (DECLARE_ALIGNED): Remove.
23471         (TEST_ALIGNMENT): Define to 16 if alignment is supported (more likely
23472         to catch bug), and to 1 if not (simplifies the rest of the code).
23473         (CHECK_STATIC): Always declare the alignment test vars; that's simpler.
23474         (CHECK_AUTO): Remove.
23475         (CHECK_ALIGNED): Check only the alignment of the static vars,
23476         since auto var alignment isn't supported by Sun C 5.11.
23477         (CHECK_TYPES): Remove.  All uses replaced by inline code, so that
23478         ASSERT failures are easier to diagnose.
23480 2011-10-31  Bruno Haible  <bruno@clisp.org>
23482         doc about some IRIX 5.3 problems.
23483         * doc/posix-functions/getpwnam_r.texi: Mention incompatible declaration
23484         on IRIX 5.3.
23485         * doc/posix-headers/poll.texi: Mention missing nfds_t on IRIX 5.3.
23486         * doc/posix-functions/ptsname.texi: Mention missing declaration on IRIX
23487         5.3.
23488         * doc/posix-functions/grantpt.texi: Likewise.
23489         * doc/posix-functions/unlockpt.texi: Likewise.
23490         * doc/posix-functions/lgamma.texi: Likewise.
23491         * doc/posix-functions/nextafter.texi: Likewise.
23492         * doc/posix-functions/remainder.texi: Likewise.
23493         * doc/posix-functions/select.texi: Mention misplaced declaration on
23494         IRIX 5.3.
23495         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
23497 2011-10-31  Dmitry V. Levin  <ldv@altlinux.org>
23499         gitlog-to-changelog: fix git-log invocation.
23500         git-log mishandles date strings before 1970-01-01 UTC, and there is
23501         no use to specify --since=1970-01-01 by default anyway.
23502         * build-aux/gitlog-to-changelog: By default, when no --since option
23503         was given, do not specify explicit --since option to git-log.
23505 2011-10-30  Dmitry V. Levin  <ldv@altlinux.org>
23507         gitlog-to-changelog: new option --append-dot.
23508         * build-aux/gitlog-to-changelog: New option --append-dot, makes the
23509         first non-blank line of each commit message terminated with a dot.
23511 2011-10-30  Bruno Haible  <bruno@clisp.org>
23513         ffsl, ffsll: Avoid compilation error due to 'restrict'.
23514         * lib/ffsl.h: Include <config.h>.
23515         Suggested by Tom G. Christensen <tgc@jupiterrise.com>.
23517 2011-10-30  Jim Meyering  <meyering@redhat.com>
23519         GNUmakefile: reenable "make syntax-check" for most projects
23520         Since Friday's commit 05e2d798, "maint.mk: don't maintain a second
23521         build-aux variable", "syntax-check" would do nothing but succeed with
23522         the "No version control files detected..." diagnostic (unless you
23523         happened to override _build-aux via cfg.mk).
23524         * top/GNUmakefile (_autoreconf, _build-aux): Move default definitions
23525         to precede inclusion of maint.mk.  Otherwise, these variables would
23526         be used undefined in any project that does not override the default.
23528 2011-10-29  Dmitry V. Levin  <ldv@altlinux.org>
23530         gitlog-to-changelog: treat a message with only blank lines as empty.
23531         * build-aux/gitlog-to-changelog: Move the code that removes leading and
23532         trailing blank lines before the code that issues a warning about an
23533         empty commit message.
23535 2011-10-30  Jim Meyering  <meyering@redhat.com>
23537         test-parse-datetime.c: avoid new DST-related false positive test failure
23538         * tests/test-parse-datetime.c (gmt_offset): Determine the "gmt_offset"
23539         based on the time/date we'll convert, not the current time.
23540         Otherwise, the moment we cross a DST boundary like today's in
23541         Europe, (CEST to CET), that offset ends up being one hour off.
23543 2011-10-27  Bruno Haible  <bruno@clisp.org>
23545         fstat: Tweak documentation.
23546         * modules/fstat (Description): More precise description.
23548 2011-10-27  Bruno Haible  <bruno@clisp.org>
23550         Update documentation regarding 'largefile' module.
23551         * doc/posix-functions/fstat.texi: Tweak wording.
23552         * doc/posix-functions/opendir.texi: Mention that the module fixes the
23553         problems with huge directories and/or small ino_t types.
23554         * doc/posix-functions/readdir.texi: Likewise.
23555         * doc/posix-functions/rewinddir.texi: Likewise.
23557 2011-10-28  Gary V. Vaughan  <gary@gnu.org>
23559         maint.mk: don't maintain a second build-aux variable.
23560         * maint.mk (build_aux): Removed.  The maintainer-makefile module
23561         depends on GNUmakefile, which already maintains a cfg.mk
23562         overridable $(_build-aux) for projects with a non-standard
23563         build-aux directory location, although without the $(srcdir)
23564         prefix.  Use that variable consistently instead of introducing a
23565         second one.  Adjust all call sites.
23567 2011-10-27  Paul Eggert  <eggert@cs.ucla.edu>
23569         Add stdalign module and use it in other modules.
23570         This is based on a previous proposal by Bruno Haible
23571         <https://lists.gnu.org/archive/html/bug-gnulib/2011-07/msg00226.html>.
23573         stdalign: new module
23574         * doc/posix-headers/stdalign.texi, lib/stdalign.in.h, m4/stdalign.m4:
23575         * modules/stdalign: New files.
23576         * MODULES.html.sh (c1x_core_properties): Add stdalign.
23577         * doc/gnulib.texi (Header File Substitutes): Add stdalign.
23579         stdalign-tests: new module
23580         * modules/stdalign-tests, tests/test-stdalign.c: New files.
23582         argp: use stdalign
23583         * lib/argp-parse.c: Include <stdalign.h>.
23584         (alignof): Remove.
23585         * modules/argp (Depends-on): Add stdalign.
23587         crypto libraries: use stdalign
23588         * lib/md4.c, lib/md5.c, lib/sha1.c, lib/sha256.c, lib/sha512.c:
23589         Include <stdalign.h> and <stdint.h>.  Do not include <stddef.h>.
23590         Do not include <stdlib.h> twice, in md4.c.
23591         (UNALIGNED_P): Simplify by using alignof.  Use uintptr_t, not size_t,
23592         because we are accessing a pointer's bit-pattern, not a size.
23593         * modules/crypto/gc-md4 (Depends-on): Add stdalign.
23594         * modules/crypto/gc-md5, modules/crypto/gc-sha1, modules/crypto/md4:
23595         * modules/crypto/md5, modules/crypto/sha1, modules/crypto/sha256:
23596         * modules/crypto/sha512: Likewise.
23598         sys_socket: use stdalign, not alignof
23599         * lib/sys_socket.in.h: Include <stdalign.h> instead of <alignof.h>.
23600         * modules/sys_socket (Depends-on): Depend on stdalign, not alignof.
23602 2011-10-27  Bruno Haible  <bruno@clisp.org>
23604         raise test: Avoid a test failure on Linux/MIPS.
23605         * tests/test-raise.c (main): Try raising signal 199, not 99. Needed
23606         because 99 is a valid signal on Linux/MIPS.
23608 2011-10-27  Bruno Haible  <bruno@clisp.org>
23610         nonblocking tests: Fix test failure on Linux/MIPS.
23611         * tests/test-nonblocking-pipe.h (PIPE_DATA_BLOCK_SIZE) [Linux/MIPS]:
23612         Set to 270000.
23614 2011-10-27  Bruno Haible  <bruno@clisp.org>
23616         utimensat: Work around problem on Linux/hppa.
23617         * lib/utimensat.c (rpl_utimensat) [Linux/hppa]: Reject invalid tv_nsec
23618         values.
23619         * doc/posix-functions/utimensat.texi: Mention the problem on Linux/hppa.
23621 2011-10-25  Jim Meyering  <meyering@redhat.com>
23623         maint.mk: fix a bug in sc_prohibit_stddef_without_use
23624         * top/maint.mk (sc_prohibit_stddef_without_use): Don't require / *\(/
23625         after symbols like NULL, size_t, etc.
23626         Reported by Alfred M. Szmidt.
23628         maint.mk: exempt ENODATA from a syntax-check rule
23629         * top/maint.mk (gl_extract_significant_defines_): Also exempt ENODATA
23630         from the sc_prohibit_always-defined_macros syntax-check rule.
23631         Add a comment.  See this for more details:
23632         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/28739/focus=28795
23634 2011-10-23  Jim Meyering  <meyering@redhat.com>
23636         fts: close parent dir FD before returning from post-traversal fts_read
23637         The problem: the fts-using "mkdir -p A/B; rm -rf A" would attempt to
23638         unlink A, even though an FD open on A remained.  This is suboptimal
23639         (holding a file descriptor open longer than needed), but otherwise not
23640         a problem on Unix-like kernels.  However, on Cygwin with certain Novell
23641         file systems, (see http://cygwin.com/ml/cygwin/2011-10/msg00365.html),
23642         that represents a real problem: it causes the removal of A to fail
23643         with e.g., "rm: cannot remove `A': Device or resource busy"
23645         fts visits each directory twice and keeps a cache (fts_fd_ring) of
23646         directory file descriptors.  After completing the final, FTS_DP,
23647         visit of a directory, RESTORE_INITIAL_CWD intended to clear the FD
23648         cache, but then proceeded to add a new FD to it via the subsequent
23649         FCHDIR (which calls cwd_advance_fd and i_ring_push).  Before, the
23650         final file descriptor would be closed only via fts_close's call to
23651         fd_ring_clear.  Now, it is usually closed earlier, via the final
23652         FTS_DP-returning fts_read call.
23653         * lib/fts.c (restore_initial_cwd): New function, converted from
23654         the macro.  Call fd_ring_clear *after* FCHDIR, not before it.
23655         Update callers.
23656         Reported by Franz Sirl via the above URL, with analysis by Eric Blake
23657         in http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/28739
23659 2011-10-23  Gary V. Vaughan  <gary@gnu.org>
23660             Bruno Haible  <bruno@clisp.org>
23661             Jim Meyering  <jim@meyering.net>
23663         readme-release: improve safety of release prep instructions.
23664         * README-release: Don't git pull all branches when only master
23665         is needed for the release process.
23666         Run make maintainer-clean before changing trees and merging.
23667         Don't try to run ./configure right after git pull in case files
23668         that influence the bootstrap process have changed, move the
23669         ./configure step to after running ./bootstrap.
23670         Don't bootstrap "one last time"... it's the first time!
23672 2011-10-22  Bruno Haible  <bruno@clisp.org>
23674         errno, strerror-override: Support for MSVC 10.
23675         * lib/errno.in.h (GNULIB_defined_ETXTBSY): Remove macro.
23676         (ENOMSG, EIDRM, ENOLINK, EPROTO, EBADMSG, EOVERFLOW, ENOTSUP,
23677         ENETRESET, ECONNABORTED, ECANCELED, EINPROGRESS, EALREADY, ENOTSOCK,
23678         EDESTADDRREQ, EMSGSIZE, EPROTOTYPE, ENOPROTOOPT, EPROTONOSUPPORT,
23679         EOPNOTSUPP, EAFNOSUPPORT, EADDRINUSE, EADDRNOTAVAIL, ENETDOWN,
23680         ENETUNREACH, ECONNRESET, ENOBUFS, EISCONN, ENOTCONN, ETIMEDOUT,
23681         ECONNREFUSED, ELOOP, EHOSTUNREACH, EWOULDBLOCK, ETXTBSY) [Win32]:
23682         Assign values compatible with MSVC 10.
23683         (ENODATA, ENOSR, ENOSTR, ENOTRECOVERABLE, EOWNERDEAD, ETIME, EOTHER):
23684         New macros.
23685         (GNULIB_defined_EWINSOCK): New macro.
23686         * lib/strerror-override.c (strerror_override): Update accordingly.
23687         * lib/strerror-override.h: Likewise.
23688         * lib/w32sock.h (set_winsock_errno): Map those WSA* values that are no
23689         longer equal to the corresponding errno value.
23690         Reported by Michael Goffioul <michael.goffioul@gmail.com>.
23692 2011-10-22  Bruno Haible  <bruno@clisp.org>
23694         perror: Recognize when test program crashes.
23695         * m4/perror.m4 (gl_FUNC_PERROR): If the test program crashes due to
23696         strerror, set gl_cv_func_perror_works to no.
23697         Reported by Daniel Richard G. <skunk@iskunk.org>.
23699         perror: Fix indentation.
23700         * m4/perror.m4 (gl_FUNC_PERROR): Fix indentation.
23702 2011-10-22  Bruno Haible  <bruno@clisp.org>
23704         isfinite, isinf, isnan, signbit: Don't define as a macro in C++.
23705         * lib/math.in.h (_GL_MATH_CXX_REAL_FLOATING_DECL_1,
23706         _GL_MATH_CXX_REAL_FLOATING_DECL_2): nEW MACROS.
23707         (isfinite, isinf, isnan, signbit): In C++, define as overloaded
23708         functions, not as a macro.
23709         * tests/test-math-c++.cc (REAL_FLOATING_CHECK, OVERLOADED_CHECK): New
23710         macros.
23711         (isfinite, isinf, isnan, signbit): Check overloaded functions and
23712         absence of macro.
23713         Suggested by Eric Blake.
23714         Reported by Michael Goffioul <michael.goffioul@gmail.com>.
23716 2011-10-21  Bruno Haible  <bruno@clisp.org>
23718         relocatable-prog-wrapper: Don't leave object files behind.
23719         * build-aux/install-reloc: Re-synchronize list of .o files to be
23720         removed with list of compilation units.
23722 2011-10-20  Bruno Haible  <bruno@clisp.org>
23724         openpty, posix_openpt: Remove code duplication.
23725         * lib/posix_openpt.c: Add comments about platforms, from lib/openpty.c.
23726         * lib/openpty.c: Include <stdlib.h>.
23727         (openpty): Use posix_openpt on all platforms except IRIX.
23728         * modules/openpty (Depends-on): Add posix_openpt. Add conditions.
23730 2011-10-20  Bruno Haible  <bruno@clisp.org>
23732         unlockpt: Detect invalid argument.
23733         * lib/unlockpt.c: Include <fcntl.h>.
23734         (unlockpt): Check whether fd is valid, using fcntl().
23735         * modules/unlockpt (Depends-on): Add fcntl-h.
23737 2011-10-20  Bruno Haible  <bruno@clisp.org>
23739         openpty: Avoid compilation error on AIX 6.1.
23740         * lib/pty.in.h [AIX]: Include <sys/ioctl.h>, for 'struct winsize'.
23742 2011-10-20  Bruno Haible  <bruno@clisp.org>
23744         posix_openpt: Support for OpenBSD.
23745         * lib/posix_openpt.c [OpenBSD]: Include <sys/ioctl.h>, <sys/tty.h>.
23746         (posix_openpt) [OpenBSD]: New code.
23747         * lib/grantpt.c: Include <fcntl.h>.
23748         (grantpt) [OpenBSD]: Only test whether fd is valid, nothing else.
23749         * modules/grantpt (Depends-on): Add fcntl-h.
23751 2011-10-20  Bruno Haible  <bruno@clisp.org>
23753         posix_openpt test: Coding style.
23754         * tests/test-posix_openpt.c: Use GNU coding style.
23756 2011-10-20  Bruno Haible  <bruno@clisp.org>
23758         grantpt: Support --avoid=pt_chown.
23759         * modules/grantpt (Files): Add lib/pty-private.h.
23761 2011-10-20  Bruno Haible  <bruno@clisp.org>
23763         posix_openpt: Fix autoconf macro.
23764         * m4/posix_openpt.m4 (gl_FUNC_POSIX_OPENPT): Fix variable name. Remove
23765         unneeded check for _getpty.
23767 2011-10-20  Bruno Haible  <bruno@clisp.org>
23769         openpty: Update comments.
23770         * lib/openpty.c: Add comments about Minix.
23772 2011-10-19  Eric Blake  <eblake@redhat.com>
23774         openpty: relax license
23775         * modules/openpty (License): Change from LGPLv3+ to LGPLv2+.
23777         pt_chown: use configmake to simplify build
23778         * modules/pt_chown (Makefile.am): Drop line guaranteed by configmake.
23780         ptsname and others: relax license
23781         * modules/grantpt (License): Change from LGPLv3+ to LGPLv2+.
23782         * modules/unlockpt (License): Likewise.
23783         * modules/pt_chown (License): Likewise.
23784         * modules/ptsname (License): Likewise.
23785         * modules/ttyname_r (License): Likewise.
23787 2011-10-19  Jim Meyering  <meyering@redhat.com>
23789         posix_openpt: remove spurious #endif
23790         * lib/posix_openpt.c (posix_openpt): Remove spurious #endif.
23792 2011-10-19  Gary V. Vaughan  <gary@gnu.org>
23794         maint.mk: Respect $(build_aux) in web-manual rule.
23795         * top/maint.mk (web-manual): Find gen-announce script in user's
23796         $(build_aux) directory instead of hard-coding 'build-aux'.
23798 2011-10-19  Bruno Haible  <bruno@clisp.org>
23800         posix_openpt: Fix compilation error.
23801         * lib/posix_openpt.c (posix_openpt): Renamed from posix_openpty.
23802         * doc/posix-functions/posix_openpt.texi: Mention ENOENT error code.
23803         Mention the openpty module as an alternative.
23805 2011-10-19  Bruno Haible  <bruno@clisp.org>
23807         Support for old NeXTstep 3.3 frexp().
23808         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Check for alarm. Limit the
23809         execution time of the test to 5 seconds.
23810         Reported by Daniel Richard G. <skunk@iskunk.org>.
23812 2011-10-19  Bruno Haible  <bruno@clisp.org>
23814         Support for old NeXTstep 3.3 sed.
23815         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER_ONE): In the sed address
23816         part, use /.../, not \|...|. Escape periods in the header file name.
23817         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): Likewise.
23818         Reported by Daniel Richard G. <skunk@iskunk.org>.
23820 2011-10-18  Daniel Richard G.  <skunk@iskunk.org>  (tiny change)
23822         Support for old NeXTstep 3.3 gcc.
23823         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Write
23824         'defined __STRICT_ANSI__', not '__STRICT_ANSI__'.
23825         * lib/math.in.h (_GL_NUM_UINT_WORDS etc.): Likewise.
23826         * lib/spawn.in.h (_Restrict_arr_): Likewise.
23827         * lib/regex.h (_Restrict_arr_): Likewise.
23828         * lib/regex_internal.h (re_token_t): Likewise.
23829         * lib/regexec.c (check_node_accept_bytes): Likewise.
23830         * tests/test-printf-posix.c (func1, func2, func3, func4): Likewise.
23832 2011-10-18  Eric Blake  <eblake@redhat.com>
23834         posix_openpt: new module
23835         * modules/posix_openpt: New module.
23836         * m4/posix_openpt.m4: New file.
23837         * lib/posix_openpt.c: Likewise.
23838         * m4/stdlib_h.m4 (gl_STDLIB_H): Check for decl.
23839         (gl_STDLIB_H_DEFAULTS): Set defaults.
23840         * modules/stdlib (Makefile.am): Substitute macros.
23841         * lib/stdlib.in.h (posix_openpt): Declare.
23842         * MODULES.html.sh (systems lacking POSIX:2008): Document it.
23843         * doc/posix-functions/posix_openpt.texi (posix_openpt): Likewise.
23844         * modules/posix_openpt-tests: New test module.
23845         * tests/test-posix_openpt.c: New test.
23847 2011-10-15  Bruno Haible  <bruno@clisp.org>
23849         xstrtoll: Fix compilation failure.
23850         * lib/xstrtol.c (ULLONG_MAX, LLONG_MAX, LLONG_MIN): New macros, taken
23851         from lib/strtol.c.
23852         * doc/posix-headers/limits.texi: Mention missing numerical limits on
23853         some platforms.
23854         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
23856 2011-10-15  Bruno Haible  <bruno@clisp.org>
23858         vasnprintf: Optimize bit search operation.
23859         * lib/vasnprintf.c (divide): Use optimizations from integer_length.c.
23860         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Require
23861         gl_DOUBLE_EXPONENT_LOCATION.
23862         * modules/vasnprintf (Files): Add m4/exponentd.m4.
23863         * modules/unistdio/u8-vasnprintf (Files): Likewise.
23864         * modules/unistdio/u8-u8-vasnprintf (Files): Likewise.
23865         * modules/unistdio/u16-vasnprintf (Files): Likewise.
23866         * modules/unistdio/u16-u16-vasnprintf (Files): Likewise.
23867         * modules/unistdio/u32-vasnprintf (Files): Likewise.
23868         * modules/unistdio/u32-u32-vasnprintf (Files): Likewise.
23869         * modules/unistdio/ulc-vasnprintf (Files): Likewise.
23870         * m4/isnand.m4 (gl_PREREQ_ISNAND): Use AC_REQUIRE.
23872 2011-10-15  Bruno Haible  <bruno@clisp.org>
23874         vasnprintf: Fix comments.
23875         * lib/vasnprintf.c (decode_long_double, decode_double): Fix comments.
23877 2011-10-14  Bruno Haible  <bruno@clisp.org>
23879         Tests for module 'integer_length_ll'.
23880         * modules/integer_length_ll-tests: New file.
23881         * tests/test-integer_length_ll.c: New file.
23883         New module 'integer_length_ll'.
23884         * lib/integer_length_ll.c: New file.
23885         * modules/integer_length_ll: New file.
23887 2011-10-14  Bruno Haible  <bruno@clisp.org>
23889         Tests for module 'integer_length_l'.
23890         * modules/integer_length_l-tests: New file.
23891         * tests/test-integer_length_l.c: New file.
23893         New module 'integer_length_l'.
23894         * lib/integer_length_l.c: New file.
23895         * modules/integer_length_l: New file.
23897 2011-10-14  Bruno Haible  <bruno@clisp.org>
23899         Tests for module 'integer_length'.
23900         * modules/integer_length-tests: New file.
23901         * tests/test-integer_length.c: New file.
23903         New module 'integer_length'.
23904         * lib/integer_length.h: New file.
23905         * lib/integer_length.c: New file.
23906         * modules/integer_length: New file.
23908 2011-10-14  Daniel Richard G.  <skunk@iskunk.org>  (tiny change)
23910         popen: Fix dependency conditions.
23911         * modules/popen (Depends-on, configure.ac): Fix shell syntax error.
23913 2011-10-14  Daniel Richard G.  <skunk@iskunk.org>  (tiny change)
23915         perror: Fix autoconf test.
23916         * m4/perror.m4 (gl_FUNC_PERROR): In the test program, include
23917         <stdlib.h> and <string.h>.
23919 2011-10-14  Bruno Haible  <bruno@clisp.org>
23921         ffsl: Optimize on 64-bit platforms.
23922         * lib/ffsl.h (FUNC): Omit a test from the last loop round. Do loop
23923         unrolling.
23925 2011-10-13  Bruno Haible  <bruno@clisp.org>
23927         ffsl: Optimize on 32-bit platforms.
23928         * lib/ffsl.h (FUNC): If TYPE has the same representation as 'int', just
23929         use ffs() without a loop.
23931         ffsl, ffsll: Optimize for GCC.
23932         * lib/ffsl.h (FUNC): Use GCC_BUILTIN if defined.
23933         * lib/ffsl.c (GCC_BUILTIN): New macro.
23934         * lib/ffsll.c (GCC_BUILTIN): Likewise.
23936 2011-10-13  Bruno Haible  <bruno@clisp.org>
23938         ffs, bcopy, memset: Support symbol renaming via config.h.
23939         * lib/ffs.c: Include <config.h>.
23940         * lib/bcopy.c: Likewise.
23941         * lib/memset.c: Likewise.
23943 2011-10-10  Bruno Haible  <bruno@clisp.org>
23945         atanl: Simplify for platforms where 'long double' == 'double'.
23946         * lib/atanl.c (atanl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
23947         alternative implementation.
23948         * m4/atanl.m4 (gl_FUNC_ATANL): Require gl_LONG_DOUBLE_VS_DOUBLE.
23949         Determine ATANL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
23950         * modules/atanl (Depends-on): Add atan. Update conditions.
23952 2011-10-10  Bruno Haible  <bruno@clisp.org>
23954         acosl: Simplify for platforms where 'long double' == 'double'.
23955         * lib/acosl.c (acosl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
23956         alternative implementation.
23957         * m4/acosl.m4 (gl_FUNC_ACOSL): Require gl_LONG_DOUBLE_VS_DOUBLE.
23958         Determine ACOSL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
23959         * modules/acosl (Depends-on): Add acos. Update conditions.
23961 2011-10-10  Bruno Haible  <bruno@clisp.org>
23963         asinl: Simplify for platforms where 'long double' == 'double'.
23964         * lib/asinl.c (asinl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
23965         alternative implementation.
23966         * m4/asinl.m4 (gl_FUNC_ASINL): Require gl_LONG_DOUBLE_VS_DOUBLE.
23967         Determine ASINL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
23968         * modules/asinl (Depends-on): Add asin. Update conditions.
23970 2011-10-10  Bruno Haible  <bruno@clisp.org>
23972         tanl: Simplify for platforms where 'long double' == 'double'.
23973         * lib/tanl.c (tanl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New alternative
23974         implementation.
23975         * m4/tanl.m4 (gl_FUNC_TANL): Require gl_LONG_DOUBLE_VS_DOUBLE.
23976         Determine TANL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
23977         * modules/tanl (Depends-on): Add tan. Update conditions.
23978         (configure.ac): Don't compile trigl.c if
23979         HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
23981 2011-10-10  Bruno Haible  <bruno@clisp.org>
23983         cosl: Simplify for platforms where 'long double' == 'double'.
23984         * lib/cosl.c (cosl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New alternative
23985         implementation.
23986         * m4/cosl.m4 (gl_FUNC_COSL): Require gl_LONG_DOUBLE_VS_DOUBLE.
23987         Determine COSL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
23988         * modules/cosl (Depends-on): Add cos. Update conditions.
23989         (configure.ac): Don't compile sincosl.c and trigl.c if
23990         HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
23992 2011-10-10  Bruno Haible  <bruno@clisp.org>
23994         sinl: Simplify for platforms where 'long double' == 'double'.
23995         * lib/sinl.c (sinl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New alternative
23996         implementation.
23997         * m4/sinl.m4 (gl_FUNC_SINL): Require gl_LONG_DOUBLE_VS_DOUBLE.
23998         Determine SINL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
23999         * modules/sinl (Depends-on): Add sin. Update conditions.
24000         (configure.ac): Don't compile sincosl.c and trigl.c if
24001         HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
24003 2011-10-10  Bruno Haible  <bruno@clisp.org>
24005         logl: Simplify for platforms where 'long double' == 'double'.
24006         * lib/logl.c (logl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New alternative
24007         implementation.
24008         * m4/logl.m4 (gl_FUNC_LOGL): Require gl_LONG_DOUBLE_VS_DOUBLE.
24009         Determine LOGL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
24010         * modules/logl (Depends-on): Add log. Update conditions.
24012 2011-10-10  Bruno Haible  <bruno@clisp.org>
24014         expl: Simplify for platforms where 'long double' == 'double'.
24015         * lib/expl.c (expl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New alternative
24016         implementation.
24017         * m4/expl.m4 (gl_FUNC_EXPL): Require gl_LONG_DOUBLE_VS_DOUBLE.
24018         Determine EXPL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
24019         * modules/expl (Depends-on): Add exp. Update conditions.
24021 2011-10-10  Bruno Haible  <bruno@clisp.org>
24023         sqrtl: Simplify for platforms where 'long double' == 'double'.
24024         * lib/sqrtl.c (sqrtl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
24025         alternative implementation.
24026         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Require gl_LONG_DOUBLE_VS_DOUBLE.
24027         Determine SQRTL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
24028         * modules/sqrtl (Depends-on): Update conditions.
24030 2011-10-10  Bruno Haible  <bruno@clisp.org>
24032         ldexpl: Simplify for platforms where 'long double' == 'double'.
24033         * lib/ldexpl.c (ldexpl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
24034         alternative implementation.
24035         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Require gl_LONG_DOUBLE_VS_DOUBLE.
24036         Determine LDEXPL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
24037         * modules/ldexpl (Depends-on): Add ldexp. Update conditions.
24039 2011-10-10  Tom G. Christensen  <tgc@jupiterrise.com>  (tiny change)
24041         ffsll: set correct witness
24042         * modules/ffsll (configure.ac): Fix typo.
24044 2011-10-10  Bruno Haible  <bruno@clisp.org>
24046         printf-frexpl: Simplify for platforms where 'long double' == 'double'.
24047         * lib/printf-frexpl.c: Include <config.h>.
24048         (printf_frexpl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
24049         * lib/printf-frexp.c [!USE_LONG_DOUBLE]: Don't include <config.h> a
24050         second time.
24051         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Require
24052         gl_LONG_DOUBLE_VS_DOUBLE.
24053         * modules/printf-frexpl (Depends-on): Add printf-frexp. Update
24054         conditions.
24056 2011-10-10  Bruno Haible  <bruno@clisp.org>
24058         frexpl: Simplify for platforms where 'long double' == 'double'.
24059         * lib/frexpl.c: Include <config.h>.
24060         (frexpl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
24061         * lib/frexp.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
24062         time.
24063         * m4/frexpl.m4 (gl_FUNC_FREXPL): Require gl_LONG_DOUBLE_VS_DOUBLE.
24064         Determine FREXPL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
24065         (gl_FUNC_FREXPL_NO_LIBM): Require gl_LONG_DOUBLE_VS_DOUBLE.
24066         * modules/frexpl (Depends-on): Add frexp. Update conditions.
24067         * modules/frexpl-nolibm (Depends-on): Add frexp-nolibm. Update
24068         conditions.
24070 2011-10-10  Jim Meyering  <meyering@redhat.com>
24072         test-renameat: don't leave behind a temporary file
24073         * tests/test-renameat.c (main): Don't forget to remove a temporary file.
24074           ERROR: files left in build directory after distclean:
24075           ./gltests/test-renameat.too
24076           make[1]: *** [distcleancheck] Error 1
24077         Reported by Tom G. Christensen.
24079 2011-10-09  Bruno Haible  <bruno@clisp.org>
24081         rint: Determine RINT_LIBM correctly on AIX 7.
24082         * m4/mathfunc.m4 (gl_MATHFUNC): Try to invoke the function also
24083         directly, not only through a function pointer. Also accept an optional
24084         4th argument with extra code.
24085         * m4/rint.m4 (gl_FUNC_RINT): Pass an extra code that gets turned into a
24086         rintf() call by gcc when optimizing.
24088         mathfunc.m4: Refactor.
24089         * m4/mathfunc.m4 (gl_MATHFUNC): Assign the argument list to a temporary
24090         m4 variable.
24092 2011-10-09  Bruno Haible  <bruno@clisp.org>
24094         rintl: Simplify for platforms where 'long double' == 'double'.
24095         * lib/rintl.c: Include <config.h>.
24096         (rintl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
24097         * lib/rint.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
24098         time.
24099         * m4/rintl.m4 (gl_FUNC_RINTL): Require gl_LONG_DOUBLE_VS_DOUBLE.
24100         Determine RINTL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
24101         * modules/rintl (Depends-on): Add rint. Update conditions.
24103 2011-10-09  Bruno Haible  <bruno@clisp.org>
24105         roundl: Simplify for platforms where 'long double' == 'double'.
24106         * lib/roundl.c: Include <config.h>.
24107         (roundl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
24108         * lib/round.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
24109         time.
24110         * m4/roundl.m4 (gl_FUNC_ROUNDL): Require gl_LONG_DOUBLE_VS_DOUBLE.
24111         Determine ROUNDL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
24112         * modules/roundl (Depends-on): Add round. Update conditions.
24114 2011-10-09  Bruno Haible  <bruno@clisp.org>
24116         truncl: Simplify for platforms where 'long double' == 'double'.
24117         * lib/truncl.c: Include <config.h>.
24118         (truncl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
24119         * lib/trunc.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
24120         time.
24121         * m4/truncl.m4 (gl_FUNC_TRUNCL): Require gl_LONG_DOUBLE_VS_DOUBLE.
24122         Determine TRUNCL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
24123         * modules/truncl (Depends-on): Add trunc. Update conditions.
24125 2011-10-09  Bruno Haible  <bruno@clisp.org>
24127         ceill: Simplify for platforms where 'long double' == 'double'.
24128         * lib/ceill.c: Include <config.h>.
24129         (ceill) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
24130         * lib/ceil.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
24131         time.
24132         * m4/ceill.m4 (gl_FUNC_CEILL): Require gl_LONG_DOUBLE_VS_DOUBLE.
24133         Determine CEILL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
24134         * modules/ceill (Depends-on): Add ceil. Update conditions.
24136 2011-10-09  Bruno Haible  <bruno@clisp.org>
24138         floorl: Simplify for platforms where 'long double' == 'double'.
24139         * lib/floorl.c: Include <config.h>.
24140         (floorl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
24141         * lib/floor.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
24142         time.
24143         * m4/floorl.m4 (gl_FUNC_FLOORL): Require gl_LONG_DOUBLE_VS_DOUBLE.
24144         Determine FLOORL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
24145         * modules/floorl (Depends-on): Add floor. Update conditions.
24147 2011-10-09  Bruno Haible  <bruno@clisp.org>
24149         rint: Fix ordering constraints.
24150         * m4/rint.m4 (gl_FUNC_RINT): Require gl_MATH_H_DEFAULTS.
24151         * m4/rintf.m4 (gl_FUNC_RINTF): Likewise.
24152         * m4/rintl.m4 (gl_FUNC_RINTL): Likewise.
24154 2011-10-09  Bruno Haible  <bruno@clisp.org>
24156         copysignl: Simplify for platforms where 'long double' == 'double'.
24157         * lib/copysignl.c (copysignl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
24158         alternative.
24159         * m4/copysignl.m4 (gl_FUNC_COPYSIGNL): Require gl_LONG_DOUBLE_VS_DOUBLE.
24160         Determine COPYSIGNL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
24161         * modules/copysignl (Depends-on): Add copysign. Update conditions.
24163 2011-10-09  Bruno Haible  <bruno@clisp.org>
24165         Tests for module 'rintl'.
24166         * modules/rintl-tests: New file.
24167         * tests/test-rintl.c: New file.
24169         New module 'rintl'.
24170         * lib/math.in.h (rintl): New declaration.
24171         * lib/rintl.c: New file.
24172         * m4/rintl.m4: New file.
24173         * m4/math_h.m4 (gl_MATH_H): Test whether rintl is declared.
24174         (gl_MATH_H_DEFAULTS): Initialize GNULIB_RINTL, HAVE_RINTL.
24175         * modules/math (Makefile.am): Substitute GNULIB_RINTL, HAVE_RINTL.
24176         * modules/rintl: New file.
24177         * tests/test-math-c++.cc: Check the declaration of rintl.
24178         * modules/math-c++-tests (Makefile.am): Link test-math-c++ against
24179         $(RINTL_LIBM). Needed on IRIX 6.5 with cc.
24180         * doc/posix-functions/rintl.texi: Mention the new module.
24182 2011-10-09  Bruno Haible  <bruno@clisp.org>
24184         Tests for module 'rintf'.
24185         * modules/rintf-tests: New file.
24186         * tests/test-rintf.c: New file.
24188         New module 'rintf'.
24189         * lib/math.in.h (rintf): New declaration.
24190         * lib/rintf.c: New file.
24191         * m4/rintf.m4: New file.
24192         * m4/math_h.m4 (gl_MATH_H): Test whether rintf is declared.
24193         (gl_MATH_H_DEFAULTS): Initialize GNULIB_RINTF, HAVE_RINTF.
24194         * modules/math (Makefile.am): Substitute GNULIB_RINTF, HAVE_RINTF.
24195         * modules/rintf: New file.
24196         * tests/test-math-c++.cc: Check the declaration of rintf.
24197         * doc/posix-functions/rintf.texi: Mention the new module.
24199 2011-10-09  Bruno Haible  <bruno@clisp.org>
24201         rint: Support for MSVC.
24202         * lib/math.in.h (rint): New declaration.
24203         * lib/rint.c: New file.
24204         * m4/rint.m4: New file.
24205         * m4/math_h.m4 (gl_MATH_H): Test whether rint is declared.
24206         (gl_MATH_H_DEFAULTS): Initialize GNULIB_RINT, HAVE_RINT.
24207         * modules/math (Makefile.am): Substitute GNULIB_RINT, HAVE_RINT.
24208         * modules/rint (Description): Fix.
24209         (Files): Add lib/rint.c, m4/rint.m4.
24210         (Depends-on): Add math.
24211         (configure.ac): Invoke gl_FUNC_RINT, AC_LIBOBJ,
24212         gl_MATH_MODULE_INDICATOR.
24213         * tests/test-math-c++.cc: Check the declaration of rint.
24214         * modules/math-c++-tests (Makefile.am): Link test-math-c++ against
24215         $(RINT_LIBM). Needed on IRIX 6.5 with cc.
24216         * doc/posix-functions/rint.texi: Mention the replacement provided by
24217         the module.
24219         rint tests: More tests.
24220         * tests/test-rint.c: Include <float.h>, <stdio.h>, isnand-nolibm.h,
24221         minus-zero.h, infinity.h, nan.h.
24222         (main): Skip the test if the current rounding mode is not standard. Add
24223         tests for negative numbers, minus zero, infinity, NaN.
24224         * modules/rint-tests (Files): Add tests/minus-zero.h, tests/infinity.h,
24225         tests/nan.h.
24226         (Depends-on): Add isnand-nolibm.
24228 2011-10-09  Bruno Haible  <bruno@clisp.org>
24230         Tests for module 'copysignl'.
24231         * modules/copysignl-tests: New file.
24232         * tests/test-copysignl.c: New file.
24234         New module 'copysignl'.
24235         * lib/math.in.h (copysignl): New declaration.
24236         * lib/copysignl.c: New file.
24237         * m4/copysignl.m4: New file.
24238         * m4/math_h.m4 (gl_MATH_H): Test whether copysignl is declared.
24239         (gl_MATH_H_DEFAULTS): Initialize GNULIB_COPYSIGNL, HAVE_COPYSIGNL.
24240         * modules/math (Makefile.am): Substitute GNULIB_COPYSIGNL,
24241         HAVE_COPYSIGNL.
24242         * modules/copysignl: New file.
24243         * tests/test-math-c++.cc: Check the declaration of copysignl.
24244         * modules/math-c++-tests (Makefile.am): Link test-math-c++ against
24245         $(COPYSIGNL_LIBM). Needed on IRIX 6.5 with cc.
24246         * doc/posix-functions/copysignl.texi: Mention the new module.
24248 2011-10-09  Bruno Haible  <bruno@clisp.org>
24250         Tests for module 'copysignf'.
24251         * modules/copysignf-tests: New file.
24252         * tests/test-copysignf.c: New file.
24254         New module 'copysignf'.
24255         * lib/math.in.h (copysignf): New declaration.
24256         * lib/copysignf.c: New file.
24257         * m4/copysignf.m4: New file.
24258         * m4/math_h.m4 (gl_MATH_H): Test whether copysignf is declared.
24259         (gl_MATH_H_DEFAULTS): Initialize GNULIB_COPYSIGNF, HAVE_COPYSIGNF.
24260         * modules/math (Makefile.am): Substitute GNULIB_COPYSIGNF,
24261         HAVE_COPYSIGNF.
24262         * modules/copysignf: New file.
24263         * tests/test-math-c++.cc: Check the declaration of copysignf.
24264         * doc/posix-functions/copysignf.texi: Mention the new module.
24266 2011-10-09  Bruno Haible  <bruno@clisp.org>
24268         Ensure that HAVE_* variables are set to 1 before they are set to 0.
24269         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Require gl_DIRENT_H_DEFAULTS.
24270         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Require gl_ARPA_INET_H_DEFAULTS.
24271         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Likewise.
24272         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Require
24273         gl_SIGNAL_H_DEFAULTS.
24275 2011-10-09  Bruno Haible  <bruno@clisp.org>
24277         poll: Make macro safer.
24278         * m4/poll.m4 (gl_FUNC_POLL): Complain if, after invoking gl_POLL_H,
24279         ac_cv_header_poll_h is not set.
24281 2011-10-09  Bruno Haible  <bruno@clisp.org>
24283         copysign: Provide replacement.
24284         * lib/math.in.h (copysign): New declaration.
24285         * lib/copysign.c: New file.
24286         * m4/copysign.m4: New file.
24287         * m4/math_h.m4 (gl_MATH_H): Test whether copysign is declared.
24288         (gl_MATH_H_DEFAULTS): Initialize GNULIB_COPYSIGN, HAVE_COPYSIGN.
24289         * modules/math (Makefile.am): Substitute GNULIB_COPYSIGN,
24290         HAVE_COPYSIGN.
24291         * modules/copysign (Description): Clarify.
24292         (Files): Add lib/copysign.c, m4/copysign.m4.
24293         (Depends-on): Add math, signbit.
24294         (configure.ac): Invoke gl_FUNC_COPYSIGN, AC_LIBOBJ,
24295         gl_MATH_MODULE_INDICATOR.
24296         * tests/test-math-c++.cc: Check the declaration of copysign.
24297         * doc/posix-functions/copysign.texi: Mention the effects of the module
24298         on Minix and MSVC.
24300 2011-10-09  Bruno Haible  <bruno@clisp.org>
24302         isinf: Ensure macro on AIX 5.1.
24303         * m4/isinf.m4 (gl_ISINF): Also test whether isinf is defined as a
24304         macro.
24305         * doc/posix-functions/isinf.texi: Mention also AIX 5.1 as deficient.
24307 2011-10-09  Bruno Haible  <bruno@clisp.org>
24309         *printf-posix tests: Fix for platforms where 'long double' == 'double'.
24310         * modules/snprintf-posix-tests (configure.ac): Require
24311         gl_LONG_DOUBLE_VS_DOUBLE.
24312         * modules/sprintf-posix-tests (configure.ac): Likewise.
24313         * modules/vasnprintf-posix-tests (configure.ac): Likewise.
24314         * modules/vasprintf-posix-tests (configure.ac): Likewise.
24315         * modules/vsnprintf-posix-tests (configure.ac): Likewise.
24316         * modules/vsprintf-posix-tests (configure.ac): Likewise.
24317         * tests/test-snprintf-posix.h (test_function): Avoid 80-bit long double
24318         tests on platforms where 'long double' is the same as 'double'.
24319         * tests/test-sprintf-posix.h (test_function): Likewise.
24320         * tests/test-vasnprintf-posix.c (test_function): Likewise.
24321         * tests/test-vasprintf-posix.c (test_function): Likewise.
24323         *printf: Fix for platforms where 'long double' == 'double'.
24324         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Require
24325         gl_LONG_DOUBLE_VS_DOUBLE. Don't blindly assume 80-bit 'long double'.
24326         * modules/dprintf-posix (Files): Add m4/math_h.m4.
24327         * modules/fprintf-posix (Files): Likewise.
24328         * modules/obstack-printf-posix (Files): Likewise.
24329         * modules/snprintf-posix (Files): Likewise.
24330         * modules/sprintf-posix (Files): Likewise.
24331         * modules/vasnprintf (Files): Likewise.
24332         * modules/vasnprintf-posix (Files): Likewise.
24333         * modules/vasprintf-posix (Files): Likewise.
24334         * modules/vdprintf-posix (Files): Likewise.
24335         * modules/vfprintf-posix (Files): Likewise.
24336         * modules/vsnprintf-posix (Files): Likewise.
24337         * modules/vsprintf-posix (Files): Likewise.
24338         * modules/unistdio/u8-vasnprintf (Files): Likewise.
24339         * modules/unistdio/u8-u8-vasnprintf (Files): Likewise.
24340         * modules/unistdio/u16-vasnprintf (Files): Likewise.
24341         * modules/unistdio/u16-u16-vasnprintf (Files): Likewise.
24342         * modules/unistdio/u32-vasnprintf (Files): Likewise.
24343         * modules/unistdio/u32-u32-vasnprintf (Files): Likewise.
24344         * modules/unistdio/ulc-vasnprintf (Files): Likewise.
24346         isnanl[-nolibm]: Fix for platforms where 'long double' == 'double'.
24347         * lib/isnan.c (rpl_isnanl): Don't blindly assume 80-bit 'long double'.
24348         * m4/isnanl.m4 (gl_PREREQ_ISNANL): Require gl_LONG_DOUBLE_VS_DOUBLE.
24349         (gl_FUNC_ISNANL_WORKS): Likewise. Don't blindly assume 80-bit
24350         'long double'.
24351         * modules/isnanl-nolibm (Files): Add m4/math_h.m4.
24353         isinf: Fix for platforms where 'long double' == 'double'.
24354         * m4/isinf.m4 (gl_ISINFL_WORKS): Require gl_LONG_DOUBLE_VS_DOUBLE.
24355         Don't blindly assume 80-bit 'long double'.
24357         isfinite: Fix for platforms where 'long double' == 'double'.
24358         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Require gl_LONG_DOUBLE_VS_DOUBLE.
24359         Don't blindly assume 80-bit 'long double'.
24361         isfinite, isinf, isnan tests: Avoid syntax error on MSVC 9.
24362         * m4/math_h.m4 (gl_LONG_DOUBLE_VS_DOUBLE): New macro.
24363         * modules/isfinite-tests (configure.ac): Require
24364         gl_LONG_DOUBLE_VS_DOUBLE.
24365         * modules/isinf-tests (configure.ac): Likewise.
24366         * modules/isnan-tests (configure.ac): Likewise.
24367         * modules/isnanl-tests (configure.ac): Likewise.
24368         * modules/isnanl-nolibm-tests (configure.ac): Likewise.
24369         * tests/test-isfinite.c (test_isfinitel): Avoid 80-bit long double
24370         tests on platforms where 'long double' is the same as 'double'.
24371         * tests/test-isinf.c (test_isinfl): Likewise.
24372         * tests/test-isnan.c (test_long_double): Likewise.
24373         * tests/test-isnanl.h (main): Likewise.
24375 2011-10-08  Bruno Haible  <bruno@clisp.org>
24377         Tests for module 'tanhf'.
24378         * modules/tanhf-tests: New file.
24379         * tests/test-tanhf.c: New file.
24381         New module 'tanhf'.
24382         * lib/math.in.h (tanhf): New declaration.
24383         * lib/tanhf.c: New file.
24384         * m4/tanhf.m4: New file.
24385         * m4/math_h.m4 (gl_MATH_H): Test whether tanhf is declared.
24386         (gl_MATH_H_DEFAULTS): Initialize GNULIB_TANHF, HAVE_TANHF.
24387         * modules/math (Makefile.am): Substitute GNULIB_TANHF, HAVE_TANHF.
24388         * modules/tanhf: New file.
24389         * tests/test-math-c++.cc: Check the declaration of tanhf.
24390         * doc/posix-functions/tanhf.texi: Mention the new module.
24392         tanh: Use a .m4 file.
24393         * m4/tanh.m4: New file.
24394         * modules/tanh (Files): Add it.
24395         (configure.ac): Just invoke gl_FUNC_TANH.
24397 2011-10-08  Bruno Haible  <bruno@clisp.org>
24399         Tests for module 'coshf'.
24400         * modules/coshf-tests: New file.
24401         * tests/test-coshf.c: New file.
24403         New module 'coshf'.
24404         * lib/math.in.h (coshf): New declaration.
24405         * lib/coshf.c: New file.
24406         * m4/coshf.m4: New file.
24407         * m4/math_h.m4 (gl_MATH_H): Test whether coshf is declared.
24408         (gl_MATH_H_DEFAULTS): Initialize GNULIB_COSHF, HAVE_COSHF.
24409         * modules/math (Makefile.am): Substitute GNULIB_COSHF, HAVE_COSHF.
24410         * modules/coshf: New file.
24411         * tests/test-math-c++.cc: Check the declaration of coshf.
24412         * doc/posix-functions/coshf.texi: Mention the new module.
24414         cosh: Use a .m4 file.
24415         * m4/cosh.m4: New file.
24416         * modules/cosh (Files): Add it.
24417         (configure.ac): Just invoke gl_FUNC_COSH.
24419 2011-10-08  Bruno Haible  <bruno@clisp.org>
24421         Tests for module 'sinhf'.
24422         * modules/sinhf-tests: New file.
24423         * tests/test-sinhf.c: New file.
24425         New module 'sinhf'.
24426         * lib/math.in.h (sinhf): New declaration.
24427         * lib/sinhf.c: New file.
24428         * m4/sinhf.m4: New file.
24429         * m4/math_h.m4 (gl_MATH_H): Test whether sinhf is declared.
24430         (gl_MATH_H_DEFAULTS): Initialize GNULIB_SINHF, HAVE_SINHF.
24431         * modules/math (Makefile.am): Substitute GNULIB_SINHF, HAVE_SINHF.
24432         * modules/sinhf: New file.
24433         * tests/test-math-c++.cc: Check the declaration of sinhf.
24434         * doc/posix-functions/sinhf.texi: Mention the new module.
24436         sinh: Use a .m4 file.
24437         * m4/sinh.m4: New file.
24438         * modules/sinh (Files): Add it.
24439         (configure.ac): Just invoke gl_FUNC_SINH.
24441 2011-10-08  Bruno Haible  <bruno@clisp.org>
24443         Tests for module 'atan2f'.
24444         * modules/atan2f-tests: New file.
24445         * tests/test-atan2f.c: New file.
24447         New module 'atan2f'.
24448         * lib/math.in.h (atan2f): New declaration.
24449         * lib/atan2f.c: New file.
24450         * m4/atan2f.m4: New file.
24451         * m4/math_h.m4 (gl_MATH_H): Test whether atan2f is declared.
24452         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ATAN2F, HAVE_ATAN2F.
24453         * modules/math (Makefile.am): Substitute GNULIB_ATAN2F, HAVE_ATAN2F.
24454         * modules/atan2f: New file.
24455         * tests/test-math-c++.cc: Check the declaration of atan2f.
24456         * doc/posix-functions/atan2f.texi: Mention the new module.
24458         atan2: Use a .m4 file.
24459         * m4/atan2.m4: New file.
24460         * modules/atan2 (Files): Add it.
24461         (configure.ac): Just invoke gl_FUNC_ATAN2.
24463 2011-10-08  Bruno Haible  <bruno@clisp.org>
24465         Tests for module 'atanf'.
24466         * modules/atanf-tests: New file.
24467         * tests/test-atanf.c: New file.
24469         New module 'atanf'.
24470         * lib/math.in.h (atanf): New declaration.
24471         * lib/atanf.c: New file.
24472         * m4/atanf.m4: New file.
24473         * m4/math_h.m4 (gl_MATH_H): Test whether atanf is declared.
24474         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ATANF, HAVE_ATANF.
24475         * modules/math (Makefile.am): Substitute GNULIB_ATANF, HAVE_ATANF.
24476         * modules/atanf: New file.
24477         * tests/test-math-c++.cc: Check the declaration of atanf.
24478         * doc/posix-functions/atanf.texi: Mention the new module.
24480         atan: Use a .m4 file.
24481         * m4/atan.m4: New file.
24482         * modules/atan (Files): Add it.
24483         (configure.ac): Just invoke gl_FUNC_ATAN.
24485 2011-10-08  Bruno Haible  <bruno@clisp.org>
24487         Tests for module 'acosf'.
24488         * modules/acosf-tests: New file.
24489         * tests/test-acosf.c: New file.
24491         New module 'acosf'.
24492         * lib/math.in.h (acosf): New declaration.
24493         * lib/acosf.c: New file.
24494         * m4/acosf.m4: New file.
24495         * m4/math_h.m4 (gl_MATH_H): Test whether acosf is declared.
24496         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ACOSF, HAVE_ACOSF.
24497         * modules/math (Makefile.am): Substitute GNULIB_ACOSF, HAVE_ACOSF.
24498         * modules/acosf: New file.
24499         * tests/test-math-c++.cc: Check the declaration of acosf.
24500         * doc/posix-functions/acosf.texi: Mention the new module.
24502         acos: Use a .m4 file.
24503         * m4/acos.m4: New file.
24504         * modules/acos (Files): Add it.
24505         (configure.ac): Just invoke gl_FUNC_ACOS.
24507 2011-10-08  Bruno Haible  <bruno@clisp.org>
24509         Tests for module 'asinf'.
24510         * modules/asinf-tests: New file.
24511         * tests/test-asinf.c: New file.
24513         New module 'asinf'.
24514         * lib/math.in.h (asinf): New declaration.
24515         * lib/asinf.c: New file.
24516         * m4/asinf.m4: New file.
24517         * m4/math_h.m4 (gl_MATH_H): Test whether asinf is declared.
24518         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ASINF, HAVE_ASINF.
24519         * modules/math (Makefile.am): Substitute GNULIB_ASINF, HAVE_ASINF.
24520         * modules/asinf: New file.
24521         * tests/test-math-c++.cc: Check the declaration of asinf.
24522         * doc/posix-functions/asinf.texi: Mention the new module.
24524         asin: Use a .m4 file.
24525         * m4/asin.m4: New file.
24526         * modules/asin (Files): Add it.
24527         (configure.ac): Just invoke gl_FUNC_ASIN.
24529 2011-10-08  Bruno Haible  <bruno@clisp.org>
24531         Tests for module 'tanf'.
24532         * modules/tanf-tests: New file.
24533         * tests/test-tanf.c: New file.
24535         New module 'tanf'.
24536         * lib/math.in.h (tanf): New declaration.
24537         * lib/tanf.c: New file.
24538         * m4/tanf.m4: New file.
24539         * m4/math_h.m4 (gl_MATH_H): Test whether tanf is declared.
24540         (gl_MATH_H_DEFAULTS): Initialize GNULIB_TANF, HAVE_TANF.
24541         * modules/math (Makefile.am): Substitute GNULIB_TANF, HAVE_TANF.
24542         * modules/tanf: New file.
24543         * tests/test-math-c++.cc: Check the declaration of tanf.
24544         * doc/posix-functions/tanf.texi: Mention the new module.
24546         tan: Use a .m4 file.
24547         * m4/tan.m4: New file.
24548         * modules/tan (Files): Add it.
24549         (configure.ac): Just invoke gl_FUNC_TAN.
24551 2011-10-08  Bruno Haible  <bruno@clisp.org>
24553         Tests for module 'cosf'.
24554         * modules/cosf-tests: New file.
24555         * tests/test-cosf.c: New file.
24557         New module 'cosf'.
24558         * lib/math.in.h (cosf): New declaration.
24559         * lib/cosf.c: New file.
24560         * m4/cosf.m4: New file.
24561         * m4/math_h.m4 (gl_MATH_H): Test whether cosf is declared.
24562         (gl_MATH_H_DEFAULTS): Initialize GNULIB_COSF, HAVE_COSF.
24563         * modules/math (Makefile.am): Substitute GNULIB_COSF, HAVE_COSF.
24564         * modules/cosf: New file.
24565         * tests/test-math-c++.cc: Check the declaration of cosf.
24566         * doc/posix-functions/cosf.texi: Mention the new module.
24568         cos: Use a .m4 file.
24569         * m4/cos.m4: New file.
24570         * modules/cos (Files): Add it.
24571         (configure.ac): Just invoke gl_FUNC_COS.
24573 2011-10-08  Bruno Haible  <bruno@clisp.org>
24575         Tests for module 'sinf'.
24576         * modules/sinf-tests: New file.
24577         * tests/test-sinf.c: New file.
24579         New module 'sinf'.
24580         * lib/math.in.h (sinf): New declaration.
24581         * lib/sinf.c: New file.
24582         * m4/sinf.m4: New file.
24583         * m4/math_h.m4 (gl_MATH_H): Test whether sinf is declared.
24584         (gl_MATH_H_DEFAULTS): Initialize GNULIB_SINF, HAVE_SINF.
24585         * modules/math (Makefile.am): Substitute GNULIB_SINF, HAVE_SINF.
24586         * modules/sinf: New file.
24587         * tests/test-math-c++.cc: Check the declaration of sinf.
24588         * doc/posix-functions/sinf.texi: Mention the new module.
24590         sin: Use a .m4 file.
24591         * m4/sin.m4: New file.
24592         * modules/sin (Files): Add it.
24593         (configure.ac): Just invoke gl_FUNC_SIN.
24595 2011-10-08  Bruno Haible  <bruno@clisp.org>
24597         Tests for module 'powf'.
24598         * modules/powf-tests: New file.
24599         * tests/test-powf.c: New file.
24601         New module 'powf'.
24602         * lib/math.in.h (powf): New declaration.
24603         * lib/powf.c: New file.
24604         * m4/powf.m4: New file.
24605         * m4/math_h.m4 (gl_MATH_H): Test whether powf is declared.
24606         (gl_MATH_H_DEFAULTS): Initialize GNULIB_POWF, HAVE_POWF.
24607         * modules/math (Makefile.am): Substitute GNULIB_POWF, HAVE_POWF.
24608         * modules/powf: New file.
24609         * tests/test-math-c++.cc: Check the declaration of powf.
24610         * doc/posix-functions/powf.texi: Mention the new module.
24612         pow: Use a .m4 file.
24613         * m4/pow.m4: New file.
24614         * modules/pow (Files): Add it.
24615         (configure.ac): Just invoke gl_FUNC_POW.
24617 2011-10-08  Bruno Haible  <bruno@clisp.org>
24619         Tests for module 'log10f'.
24620         * modules/log10f-tests: New file.
24621         * tests/test-log10f.c: New file.
24623         New module 'log10f'.
24624         * lib/math.in.h (log10f): New declaration.
24625         * lib/log10f.c: New file.
24626         * m4/log10f.m4: New file.
24627         * m4/math_h.m4 (gl_MATH_H): Test whether log10f is declared.
24628         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG10F, HAVE_LOG10F.
24629         * modules/math (Makefile.am): Substitute GNULIB_LOG10F, HAVE_LOG10F.
24630         * modules/log10f: New file.
24631         * tests/test-math-c++.cc: Check the declaration of log10f.
24632         * doc/posix-functions/log10f.texi: Mention the new module.
24634         log10: Use a .m4 file.
24635         * m4/log10.m4: New file.
24636         * modules/log10 (Files): Add it.
24637         (configure.ac): Just invoke gl_FUNC_LOG10.
24639 2011-10-08  Bruno Haible  <bruno@clisp.org>
24641         Tests for module 'logf'.
24642         * modules/logf-tests: New file.
24643         * tests/test-logf.c: New file.
24645         New module 'logf'.
24646         * lib/math.in.h (logf): New declaration.
24647         * lib/logf.c: New file.
24648         * m4/logf.m4: New file.
24649         * m4/math_h.m4 (gl_MATH_H): Test whether logf is declared.
24650         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOGF, HAVE_LOGF.
24651         * modules/math (Makefile.am): Substitute GNULIB_LOGF, HAVE_LOGF.
24652         * modules/logf: New file.
24653         * tests/test-math-c++.cc: Check the declaration of logf.
24654         * doc/posix-functions/logf.texi: Mention the new module.
24656         log: Use a .m4 file.
24657         * m4/log.m4: New file.
24658         * modules/log (Files): Add it.
24659         (configure.ac): Just invoke gl_FUNC_LOG.
24661 2011-10-08  Bruno Haible  <bruno@clisp.org>
24663         Tests for module 'expf'.
24664         * modules/expf-tests: New file.
24665         * tests/test-expf.c: New file.
24667         New module 'expf'.
24668         * lib/math.in.h (expf): New declaration.
24669         * lib/expf.c: New file.
24670         * m4/expf.m4: New file.
24671         * m4/math_h.m4 (gl_MATH_H): Test whether expf is declared.
24672         (gl_MATH_H_DEFAULTS): Initialize GNULIB_EXPF, HAVE_EXPF.
24673         * modules/math (Makefile.am): Substitute GNULIB_EXPF, HAVE_EXPF.
24674         * modules/expf: New file.
24675         * tests/test-math-c++.cc: Check the declaration of expf.
24676         * doc/posix-functions/expf.texi: Mention the new module.
24678         exp: Use a .m4 file.
24679         * m4/exp.m4: New file.
24680         * modules/exp (Files): Add it.
24681         (configure.ac): Just invoke gl_FUNC_EXP.
24683 2011-10-08  Bruno Haible  <bruno@clisp.org>
24685         Tests for module 'sqrtf'.
24686         * modules/sqrtf-tests: New file.
24687         * tests/test-sqrtf.c: New file.
24689         New module 'sqrtf'.
24690         * lib/math.in.h (sqrtf): New declaration.
24691         * lib/sqrtf.c: New file.
24692         * m4/sqrtf.m4: New file.
24693         * m4/math_h.m4 (gl_MATH_H): Test whether sqrtf is declared.
24694         (gl_MATH_H_DEFAULTS): Initialize GNULIB_SQRTF, HAVE_SQRTF.
24695         * modules/math (Makefile.am): Substitute GNULIB_SQRTF, HAVE_SQRTF.
24696         * modules/sqrtf: New file.
24697         * tests/test-math-c++.cc: Check the declaration of sqrtf.
24698         * doc/posix-functions/sqrtf.texi: Mention the new module.
24700 2011-10-08  Bruno Haible  <bruno@clisp.org>
24702         Tests: Avoid link failures w.r.t. libintl.
24703         * modules/faccessat-tests (Makefile.am): Link test-faccessat against
24704         $(LIBINTL).
24705         * modules/fchdir-tests (Makefile.am): Link test-fchdir against
24706         $(LIBINTL).
24707         * modules/getcwd-lgpl-tests (Makefile.am): Link test-getcwd-lgpl
24708         against $(LIBINTL).
24709         * modules/getcwd-tests (Makefile.am): Link test-getcwd against
24710         $(LIBINTL).
24711         * modules/openat-tests (Makefile.am): Link test-fchmodat against
24712         $(LIBINTL).
24713         * modules/stat-tests (Makefile.am): Link test-stat against $(LIBINTL).
24715 2011-10-08  Bruno Haible  <bruno@clisp.org>
24717         pow tests: Defeat compiler optimizations.
24718         * tests/test-pow.c (main): Assign arguments to x and y before use.
24720 2011-10-08  Bruno Haible  <bruno@clisp.org>
24722         gnulib-tool: Improve last commit.
24723         * gnulib-tool (func_modules_transitive_closure): Simplify code.
24724         (func_emit_autoconf_snippets): Instead of invoking func_acceptable,
24725         ignore dependencies that are not among the modules list.
24727 2011-10-07  Paul Eggert  <eggert@cs.ucla.edu>
24729         gnulib-tool: don't follow dependencies to avoided modules
24730         This fixes a bug that is related to the previous one.
24731         * gnulib-tool (func_modules_transitive_closure)
24732         (func_emit_autoconf_snippets):
24733         Check whether a dependency is acceptable before using it.
24734         (--extract-dependencies): Report an error if --avoid is also used,
24735         since this combination of options is not yet supported.
24737         gnulib-tool: fix typo that broke Emacs on powerpc-apple-darwin9.8.0.
24738         Problem reported by Peter Dyballa in
24739         <http://debbugs.gnu.org/cgi/bugreport.cgi?bug=9696>.
24740         * gnulib-tool (func_emit_autoconf_snippets): Quote with "", not '',
24741         when echoing "$condition".
24743 2011-10-07  Bruno Haible  <bruno@clisp.org>
24745         Fix documentation about math functions on MacOS X.
24746         * doc/posix-functions/exp2.texi: Don't say the function is missing on
24747         MacOS X 10.5.
24748         * doc/posix-functions/fdim.texi: Likewise.
24749         * doc/posix-functions/feclearexcept.texi: Likewise.
24750         * doc/posix-functions/fegetenv.texi: Likewise.
24751         * doc/posix-functions/fegetround.texi: Likewise.
24752         * doc/posix-functions/feholdexcept.texi: Likewise.
24753         * doc/posix-functions/feraiseexcept.texi: Likewise.
24754         * doc/posix-functions/fesetenv.texi: Likewise.
24755         * doc/posix-functions/fesetround.texi: Likewise.
24756         * doc/posix-functions/fetestexcept.texi: Likewise.
24757         * doc/posix-functions/feupdateenv.texi: Likewise.
24758         * doc/posix-functions/fmax.texi: Likewise.
24759         * doc/posix-functions/fmin.texi: Likewise.
24760         * doc/posix-functions/log2.texi: Likewise.
24761         * doc/posix-functions/modff.texi: Likewise.
24762         * doc/posix-functions/nan.texi: Likewise.
24763         * doc/posix-functions/nanf.texi: Likewise.
24764         * doc/posix-functions/nextafterf.texi: Likewise.
24765         * doc/posix-functions/remquo.texi: Likewise.
24767 2011-10-07  Bruno Haible  <bruno@clisp.org>
24769         modff: Drop assumption about library that defines modff.
24770         * m4/modff.m4 (gl_FUNC_MODFF): Use gl_MATHFUNC macro instead of
24771         AC_CHECK_FUNCS.
24772         * modules/modff (Files): Add m4/mathfunc.m4.
24774 2011-10-07  Bernhard Voelker  <mail@bernhard-voelker.de>
24776         raise tests: Avoid a GCC warning.
24777         * tests/test-raise.c (handler): Use _Noreturn.
24779 2011-10-07  Bruno Haible  <bruno@clisp.org>
24781         Tests for module 'ldexpf'.
24782         * modules/ldexpf-tests: New file.
24783         * tests/test-ldexpf.c: New file.
24785         New module 'ldexpf'.
24786         * lib/math.in.h (ldexpf): New declaration.
24787         * lib/ldexpf.c: New file.
24788         * m4/ldexpf.m4: New file.
24789         * m4/math_h.m4 (gl_MATH_H): Test whether ldexpf is declared.
24790         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LDEXPF, HAVE_LDEXPF.
24791         * modules/math (Makefile.am): Substitute GNULIB_LDEXPF, HAVE_LDEXPF.
24792         * modules/ldexpf: New file.
24793         * tests/test-math-c++.cc: Check the declaration of ldexpf.
24794         * doc/posix-functions/ldexpf.texi: Mention the new module.
24796 2011-10-06  Bruno Haible  <bruno@clisp.org>
24798         frexpf: Work around problems on IRIX and mingw.
24799         * lib/math.in.h (frexpf): Consider also REPLACE_FREXPF.
24800         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_FREXPF.
24801         * m4/frexpf.m4 (gl_FUNC_FREXPF_WORKS): New macro.
24802         (gl_FUNC_FREXPF): Invoke it. Set REPLACE_FREXPF.
24803         * modules/frexpf (Depends-on, configure.ac): Consider REPLACE_FREXPF.
24804         * modules/math (Makefile.am): Substitute REPLACE_FREXPF.
24805         * doc/posix-functions/frexpf.texi: Mention the IRIX and mingw problems.
24807 2011-10-06  Bruno Haible  <bruno@clisp.org>
24809         fabsf: Drop assumption about library that defines fabsf.
24810         * m4/fabsf.m4 (gl_FUNC_FABSF): Use gl_MATHFUNC macro instead of
24811         AC_CHECK_FUNCS.
24812         * modules/fabsf (Files): Add m4/mathfunc.m4.
24814 2011-10-06  Bruno Haible  <bruno@clisp.org>
24816         frexpf: Drop assumption about library that defines frexpf.
24817         * m4/mathfunc.m4 (gl_MATHFUNC): Support also the argument types
24818         'int *', 'float *', 'long double *', 'float', 'long double'.
24819         * m4/frexpf.m4 (gl_FUNC_FREXPF): Use gl_MATHFUNC macro instead of
24820         AC_CHECK_FUNCS.
24821         * modules/frexpf (Files): Add m4/mathfunc.m4.
24823         Tests for module 'frexpf'.
24824         * modules/frexpf-tests: New file.
24825         * tests/test-frexpf.c: New file.
24827         New module 'frexpf'.
24828         * lib/math.in.h (frexpf): New declaration.
24829         * lib/frexpf.c: New file.
24830         * m4/frexpf.m4: New file.
24831         * m4/math_h.m4 (gl_MATH_H): Test whether frexpf is declared.
24832         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FREXPF, HAVE_FREXPF.
24833         * modules/math (Makefile.am): Substitute GNULIB_FREXPF, HAVE_FREXPF.
24834         * modules/frexpf: New file.
24835         * tests/test-math-c++.cc: Check the declaration of frexpf.
24836         * doc/posix-functions/frexpf.texi: Mention the new module.
24838 2011-10-06  Bruno Haible  <bruno@clisp.org>
24840         math: Sort function declarations of math.in.h.
24841         * lib/math.in.h (frexp, logb): Move declarations.
24843 2011-10-05  Bruno Haible  <bruno@clisp.org>
24845         Tests for module 'modff'.
24846         * modules/modff-tests: New file.
24847         * tests/test-modff.c: New file.
24849         New module 'modff'.
24850         * lib/math.in.h (modff): New declaration.
24851         * lib/modff.c: New file.
24852         * m4/modff.m4: New file.
24853         * m4/math_h.m4 (gl_MATH_H): Test whether modff is declared.
24854         (gl_MATH_H_DEFAULTS): Initialize GNULIB_MODFF, HAVE_MODFF.
24855         * modules/math (Makefile.am): Substitute GNULIB_MODFF, HAVE_MODFF.
24856         * modules/modff: New file.
24857         * tests/test-math-c++.cc: Check the declaration of modff.
24858         * doc/posix-functions/modff.texi: Mention the new module.
24860         modf tests: Make test sharper.
24861         * tests/test-modf.c (main): Strengthen upper bound.
24863         modf: Use a .m4 file.
24864         * m4/modf.m4: New file.
24865         * modules/modf (Files): Add it.
24866         (configure.ac): Just invoke gl_FUNC_MODF.
24868 2011-10-05  Bruno Haible  <bruno@clisp.org>
24870         Tests for module 'fmodf'.
24871         * modules/fmodf-tests: New file.
24872         * tests/test-fmodf.c: New file.
24874         New module 'fmodf'.
24875         * lib/math.in.h (fmodf): New declaration.
24876         * lib/fmodf.c: New file.
24877         * m4/fmodf.m4: New file.
24878         * m4/math_h.m4 (gl_MATH_H): Test whether fmodf is declared.
24879         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FMODF, HAVE_FMODF.
24880         * modules/math (Makefile.am): Substitute GNULIB_FMODF, HAVE_FMODF.
24881         * modules/fmodf: New file.
24882         * tests/test-math-c++.cc: Check the declaration of fmodf.
24883         * doc/posix-functions/fmodf.texi: Mention the new module.
24885         fmod: Use a .m4 file.
24886         * m4/fmod.m4: New file.
24887         * modules/fmod (Files): Add it.
24888         (configure.ac): Just invoke gl_FUNC_FMOD.
24890 2011-10-05  Bruno Haible  <bruno@clisp.org>
24892         Tests for module 'fabsf'.
24893         * modules/fabsf-tests: New file.
24894         * tests/test-fabsf.c: New file.
24896         New module 'fabsf'.
24897         * lib/math.in.h (fabsf): New declaration.
24898         * lib/fabsf.c: New file.
24899         * m4/fabsf.m4: New file.
24900         * m4/math_h.m4 (gl_MATH_H): Test whether fabsf is declared.
24901         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FABSF, HAVE_FABSF.
24902         * modules/math (Makefile.am): Substitute GNULIB_FABSF, HAVE_FABSF.
24903         * modules/fabsf: New file.
24904         * tests/test-math-c++.cc: Check the declaration of fabsf.
24905         * doc/posix-functions/fabsf.texi: Mention the new module.
24907         fabs: Use a .m4 file.
24908         * m4/fabs.m4: New file.
24909         * modules/fabs (Files): Add it.
24910         (configure.ac): Just invoke gl_FUNC_FABS.
24912 2011-10-05  Jim Meyering  <meyering@redhat.com>
24914         file-has-acl: revert both recent changes, 80af92af and 95f7c57f
24915         * lib/file-has-acl.c: While the 2011-10-03 change does fix the
24916         ls -lL regression introduced in coreutils-8.12, it does so at the
24917         cost of an additional stat call in the common case.  Besides, now
24918         that the kernel change that prompted commit 95f7c57f has been reverted
24919         (see https://bugzilla.redhat.com/show_bug.cgi?id=720325#c24)
24920         we have no use for commit 95f7c57f, "file-has-acl: use
24921         acl_extended_file_nofollow if available".
24923 2011-10-03  Kamil Dudka  <kdudka@redhat.com>
24925         file-has-acl: revert unintended change in behavior of ls -L
24926         * lib/file-has-acl.c (acl_extended_file_wrap): New function,
24927         derived from...
24928         (file_has_acl): ...code here.  Call it.
24929         This problem was introduced with 2011-07-22 commit 95f7c57f,
24930         "file-has-acl: use acl_extended_file_nofollow if available".
24931         See http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/28538
24933 2011-10-03  Bruno Haible  <bruno@clisp.org>
24935         poll: Avoid link errors on MSVC.
24936         * m4/poll.m4 (gl_FUNC_POLL): Determine LIB_POLL.
24937         * modules/poll (Depends-on): Add sockets.
24938         (Link): New section.
24939         * NEWS: Mention the change.
24940         * modules/poll-tests (Makefile.am): Link test-poll against $(LIB_POLL).
24941         * modules/poll-h-c++-tests (Makefile.am): Link test-poll-h-c++ against
24942         $(LIB_POLL) instead of $(LIBSOCKET).
24944 2011-10-03  Bruno Haible  <bruno@clisp.org>
24946         sys_select tests: Fix link error on MSVC 9.
24947         * modules/sys_select-c++-tests (Makefile.am): Link test-sys_select-c++
24948         with $(LIB_SELECT) instead of $(LIBSOCKET).
24950 2011-10-03  Bruno Haible  <bruno@clisp.org>
24952         sys_select: Fix compilation error on mingw.
24953         * lib/sys_select.in.h: On native Windows, include <io.h>.
24955 2011-10-03  Bruno Haible  <bruno@clisp.org>
24957         wmemset: Support for MSVC.
24958         * m4/wmemset.m4 (gl_FUNC_WMEMSET): Use a small test program to test
24959         whether wmemset() exists.
24961 2011-10-03  Bruno Haible  <bruno@clisp.org>
24963         wmemmove: Support for MSVC.
24964         * m4/wmemmove.m4 (gl_FUNC_WMEMMOVE): Use a small test program to test
24965         whether wmemmove() exists.
24967 2011-10-03  Bruno Haible  <bruno@clisp.org>
24969         wmemcpy: Support for MSVC.
24970         * m4/wmemcpy.m4 (gl_FUNC_WMEMCPY): Use a small test program to test
24971         whether wmemcpy() exists.
24973 2011-10-03  Bruno Haible  <bruno@clisp.org>
24975         wmemcmp: Support for MSVC.
24976         * m4/wmemcmp.m4 (gl_FUNC_WMEMCMP): Use a small test program to test
24977         whether wmemcmp() exists.
24979 2011-10-03  Bruno Haible  <bruno@clisp.org>
24981         wmemchr: Support for MSVC.
24982         * m4/wmemchr.m4 (gl_FUNC_WMEMCHR): Use a small test program to test
24983         whether wmemchr() exists.
24985 2011-10-03  Bruno Haible  <bruno@clisp.org>
24987         glthread/*, strsignal: Support for MSVC.
24988         * lib/glthread/cond.h: Define WIN32_LEAN_AND_MEAN, so as to avoid
24989         including <winsock.h> on MSVC 9.
24990         * lib/glthread/lock.h: Likewise.
24991         * lib/glthread/thread.h: Likewise.
24992         * lib/glthread/tls.h: Likewise.
24993         * lib/glthread/yield.h: Likewise.
24994         * lib/strsignal.c: Include <string.h> first. Don't include <unistd.h>
24995         if HAVE_UNISTD_H is false.
24996         * m4/strsignal.m4 (gl_PREREQ_STRSIGNAL): Test for <unistd.h>.
24998 2011-10-03  Bruno Haible  <bruno@clisp.org>
25000         nonblocking tests: Fix test failure on OpenBSD/SPARC64.
25001         * tests/test-nonblocking-socket.h (SOCKET_DATA_BLOCK_SIZE) [OpenBSD]:
25002         Set to 100000.
25004 2011-10-03  Bruno Haible  <bruno@clisp.org>
25006         acl: Fix specification.
25007         * lib/file-has-acl.c (file_has_acl): Fix specification.
25009 2011-10-03  Bruno Haible  <bruno@clisp.org>
25011         relocatable-lib[-lgpl]: Avoid expensive /proc access on Linux, Cygwin.
25012         * lib/relocatable.c (ENABLE_COSTLY_RELOCATABLE): New macro.
25013         (compute_curr_prefix, shared_library_fullname,
25014         find_shared_library_fullname, get_shared_library_fullname, relocate):
25015         Use it together with PIC && INSTALLDIR.
25016         Reported by <jojelino@gmail.com>
25017         via Charles Wilson <cygwin@cwilson.fastmail.fm>.
25019 2011-10-01  Jim Meyering  <meyering@redhat.com>
25021         maint.mk: adjust a release-related rule not to require use of gzip
25022         * top/maint.mk (writable-files): Don't hard-code use of .tar.gz.
25023         Instead, check each file in $(DIST_ARCHIVES).  This is better for
25024         projects that build only .tar.xz files.  Also fix an erroneous test.
25026         test-linkat: don't leave behind a temporary file
25027         * tests/test-linkat.c (main): Don't forget to remove a temporary file.
25028         Otherwise, coreutils' "make distcheck" would fail with this:
25029           Only in /c/cu/tests/torture/coreutils/test/\
25030             coreutils-8.13.22-d5caf.old/gnulib-tests: test-linkat.too
25031           make[2]: *** [my-distcheck] Error 1
25033         float, math: add omitted file
25034         * lib/itold.c: Add file, required for yesterday's float change.
25036 2011-10-01  Bruno Haible  <bruno@clisp.org>
25038         isinf: Fix for OpenBSD/x86.
25039         * m4/isinf.m4 (gl_ISINFL_WORKS): Also test the behaviour of isinf on
25040         pseudo-NaNs, pseudo-Infinities, and other non-IEEE values.
25041         * doc/posix-functions/isinf.texi: Mention the problem on OpenBSD/x86.
25043 2011-10-01  Bruno Haible  <bruno@clisp.org>
25045         isfinite: Fix syntax error in configure test.
25046         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Fix syntax error.
25048         isfinite: Fix typo.
25049         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): When cross-compiling, set
25050         gl_cv_func_isfinitel_works, not gl_cv_func_isnanl_works.
25052 2011-10-01  Bruno Haible  <bruno@clisp.org>
25054         nonblocking tests: Fix test failure on Linux/IA-64.
25055         * tests/test-nonblocking-pipe.h (PIPE_DATA_BLOCK_SIZE) [Linux/IA-64]:
25056         Set to 270000.
25058 2011-10-01  Bruno Haible  <bruno@clisp.org>
25060         mkfifoat tests: Fix a test failure on mingw.
25061         * tests/test-mkfifoat.c (main): Allow mkfifoat or test_mknodat to fail
25062         with error ENOSYS.
25064 2011-09-30  Bruno Haible  <bruno@clisp.org>
25066         float, math: Fix 'int' to 'long double' conversion on Linux/SPARC64.
25067         * m4/float_h.m4 (gl_FLOAT_H): Test conversion from 'int' to
25068         'long double'. Set REPLACE_ITOLD.
25069         * lib/float.in.h (_Qp_itoq, _gl_float_fix_itold): New declarations.
25070         * lib/math.in.h (_Qp_itoq, _gl_math_fix_itold): New declarations.
25071         * lib/itold.c: New file.
25072         * modules/float (Files): Add lib/itold.c.
25073         (configure.ac): When REPLACE_ITOLD is 1, arrange to compile itold.c.
25074         (Makefile.am): Substitute REPLACE_ITOLD.
25075         * modules/math (Depends-on): Add float.
25076         (Makefile.am): Substitute REPLACE_ITOLD.
25077         * doc/posix-headers/float.texi: Mention problem on Linux/SPARC64.
25078         * doc/posix-headers/math.texi: Likewise.
25079         * doc/posix-functions/logl.texi: Likewise.
25081 2011-09-30  Bruno Haible  <bruno@clisp.org>
25083         nonblocking tests: Fix test failure on Linux/SPARC (32-bit and 64-bit).
25084         * tests/test-nonblocking-pipe.h (PIPE_DATA_BLOCK_SIZE) [Linux/SPARC]:
25085         Set to 140000.
25087 2011-09-30  Bruno Haible  <bruno@clisp.org>
25089         gnulib-tool: Improve suggestion where to put gl_EARLY invocation.
25090         * gnulib-tool (func_import): If the configure.ac has an AC_PROG_CC_STDC
25091         invocation, say "right after AC_PROG_CC_STDC", not "right after
25092         AC_PROG_CC".
25093         Reported by Gary V. Vaughan <gary@gnu.org>.
25095 2011-09-30  Bruno Haible  <bruno@clisp.org>
25097         Centralize C99 requirement.
25098         * m4/gnulib-common.m4 (gl_PROG_CC_C99): New macro.
25099         * modules/stdarg (configure.ac-early): Invoke it instead of
25100         AC_PROG_CC_STDC.
25101         Reported by Gary V. Vaughan and Paul Eggert.
25103 2011-09-29  Bruno Haible  <bruno@clisp.org>
25105         float: Fix LDBL_MAX value on Linux/PowerPC.
25106         * m4/float_h.m4 (gl_FLOAT_H): Set FLOAT_H and REPLACE_FLOAT_LDBL also
25107         on Linux/PowerPC.
25108         * lib/float.in.h (LDBL_MAX): Redefine also on Linux/PowerPC.
25109         * lib/float.c (gl_LDBL_MAX): Also define on Linux/PowerPC.
25110         * doc/posix-headers/float.texi: Mention Linux/PowerPC as an affected
25111         platform.
25112         Reported by Andreas Metzler <ametzler@downhill.at.eu.org>.
25114 2011-09-29  Bruno Haible  <bruno@clisp.org>
25116         doc: Improve doc about gl_EARLY.
25117         * doc/gnulib-tool.texi (Initial import): Mention where to place an
25118         AC_PROG_CC_STDC invocation.
25119         Reported by Gary V. Vaughan <gary@gnu.org>.
25121 2011-09-28  Bruno Haible  <bruno@clisp.org>
25123         fgetc, fputc, fread, fwrite tests: Fix link error.
25124         * tests/test-fgetc.c (main): Don't invoke gl_msvc_inval_ensure_handler
25125         on non-MSVC platforms.
25126         * tests/test-fputc.c (main): Likewise.
25127         * tests/test-fread.c (main): Likewise.
25128         * tests/test-fwrite.c (main): Likewise.
25129         Reported by Jim Meyering.
25131 2011-09-27  Bruno Haible  <bruno@clisp.org>
25133         fputc, fwrite tests: Avoid test failure on MSVC.
25134         * tests/test-fgetc.c: Include msvc-inval.h.
25135         (main): Invoke gl_msvc_inval_ensure_handler.
25136         * tests/test-fputc.c: Include msvc-inval.h.
25137         (main): Invoke gl_msvc_inval_ensure_handler.
25138         * tests/test-fread.c: Include msvc-inval.h.
25139         (main): Invoke gl_msvc_inval_ensure_handler.
25140         * tests/test-fwrite.c: Include msvc-inval.h.
25141         (main): Invoke gl_msvc_inval_ensure_handler.
25142         * modules/fgetc-tests (Depends-on): Add msvc-inval.
25143         * modules/fputc-tests (Depends-on): Likewise.
25144         * modules/fread-tests (Depends-on): Likewise.
25145         * modules/fwrite-tests (Depends-on): Likewise.
25147 2011-09-27  Bruno Haible  <bruno@clisp.org>
25149         raise: Fix double declaration with modules 'sigprocmask' and 'sigpipe'.
25150         * lib/signal.in.h (GNULIB_defined_signal_blocking): New macro.
25151         (raise): Remove older, duplicated declaration.
25152         (_gl_raise_SIGPIPE): New declaration.
25153         * lib/sigprocmask.c (_gl_raise_SIGPIPE): New function.
25154         (rpl_raise): Remove function.
25155         * lib/raise.c (rpl_raise, raise): Merge into a single function. Handle
25156         a gnulib-defined SIGPIPE here.
25157         * m4/raise.m4 (gl_FUNC_RAISE): Set REPLACE_RAISE also if the module
25158         'sigprocmask' has detected missing signal-blocking and the module
25159         'sigpipe' is enabled.
25160         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>.
25162 2011-09-26  Gijs van Tulder  <gvtulder@gmail.com>
25164         base64-tests: avoid memory leak
25165         * tests/test-base64.c (main): Plug memory leak.
25167         base32: new module
25168         * modules/base32: New module.
25169         * lib/base32.c: New file.
25170         * lib/base32.h: Likewise.
25171         * m4/base32.m4: Likewise.
25172         * modules/base32-tests: New test.
25173         * tests/test-base32.c: Likewise.
25174         * MODULES.html.sh (Misc): Mention it.
25176 2011-09-26  Paul Eggert  <eggert@cs.ucla.edu>
25178         gnulib: use more-standard license notice wording
25179         * gnulib-tool (func_emit_copyright_notice): When emitting a
25180         license notice into a file, use the standard wording as suggested
25181         by the current information for GNU maintainers, except say "file"
25182         rather than "program".  The new wording gives a license version
25183         number, which addresses an issue raised by Glenn Morris in
25184         <http://lists.gnu.org/archive/html/bug-gnulib/2011-09/msg00397.html>.
25185         * m4/onceonly.m4: Use that same wording here, too.
25187         dup2: minor simplification
25188         * m4/dup2.m4 (gl_PREREQ_DUP2): Don't require AC_C_INLINE,
25189         as lib/dup2.c no longer uses 'inline'.
25191 2011-09-25  Bruno Haible  <bruno@clisp.org>
25193         strings: Fix compilation error on MSVC.
25194         * lib/strings.in.h: Include <stddef.h> for size_t.
25196 2011-09-25  Bruno Haible  <bruno@clisp.org>
25198         fflush et al.: Document limitation on MSVC.
25199         * doc/posix-functions/fflush.texi: Document possible crash in handling
25200         mode other than DEFAULT_HANDLING.
25201         * doc/posix-functions/fgetc.texi: Likewise.
25202         * doc/posix-functions/fputc.texi: Likewise.
25203         * doc/posix-functions/fread.texi: Likewise.
25204         * doc/posix-functions/fwrite.texi: Likewise.
25206 2011-09-25  Bruno Haible  <bruno@clisp.org>
25208         msvc-inval: Allow three invalid parameter handling modes.
25209         * lib/msvc-inval.h: Don't include <stdlib.h> here.
25210         (DEFAULT_HANDLING, HAIRY_LIBRARY_HANDLING, SANE_LIBRARY_HANDLING): New
25211         macros.
25212         (gl_msvc_inval_ensure_handler, TRY_MSVC_INVAL, CATCH_MSVC_INVAL,
25213         DONE_MSVC_INVAL): Implement DEFAULT_HANDLING. Treat
25214         SANE_LIBRARY_HANDLING as a no-op.
25215         * lib/msvc-inval.c: Treat SANE_LIBRARY_HANDLING as a no-op. Include
25216         <stdlib.h>.
25217         (gl_msvc_invalid_parameter_handler): Implement DEFAULT_HANDLING.
25219 2011-09-25  Bruno Haible  <bruno@clisp.org>
25221         msvc-inval: Make handler multithread-safe.
25222         * lib/msvc-inval.h (struct gl_msvc_inval_per_thread): New type.
25223         (gl_msvc_inval_restart, gl_msvc_inval_restart_valid): Remove
25224         declarations.
25225         (gl_msvc_inval_current): New declaration.
25226         (TRY_MSVC_INVAL, CATCH_MSVC_INVAL, DONE_MSVC_INVAL) [!_MSC_VER]:
25227         Operate on the structure returned by gl_msvc_inval_current().
25228         * lib/msvc-inval.c (gl_msvc_inval_restart, gl_msvc_inval_restart_valid):
25229         Remove varaiables.
25230         (tls_index, tls_initialized): New variables.
25231         (not_per_thread): New variable.
25232         (gl_msvc_inval_current): New function.
25233         (gl_msvc_invalid_parameter_handler) [!_MSC_VER]: Use the structure
25234         returned by gl_msvc_inval_current().
25236 2011-09-25  Bruno Haible  <bruno@clisp.org>
25238         msvc-inval: Install handler globally.
25239         * lib/msvc-inval.h (STATUS_GNULIB_INVALID_PARAMETER): Define also for
25240         !_MSC_VER.
25241         (gl_msvc_invalid_parameter_handler): Remove declaration.
25242         (gl_msvc_inval_restart_valid, gl_msvc_inval_ensure_handler): New
25243         declarations.
25244         (TRY_MSVC_INVAL, CATCH_MSVC_INVAL, DONE_MSVC_INVAL) [!_MSC_VER]:
25245         Install the handler globally, don't uninstall it.
25246         * lib/msvc-inval.c (gl_msvc_inval_restart_valid): New variable.
25247         (gl_msvc_invalid_parameter_handler): Make static. If the restart is not
25248         currently valid, call RaiseException instead.
25249         (gl_msvc_inval_initialized, gl_msvc_inval_ensure_handler): Define also
25250         for !_MSC_VER.
25252 2011-09-25  Bruno Haible  <bruno@clisp.org>
25254         strerror_r-posix: Fix for MSVC 9.
25255         * lib/strerror_r.c (local_snprintf): New function.
25256         (snprintf): Define to local_snprintf, not to _snprintf.
25258 2011-09-25  Bruno Haible  <bruno@clisp.org>
25260         ftruncate: Support for MSVC 9.
25261         * lib/ftruncate.c: Include errno.h, msvc-inval.h.
25262         (chsize_nothrow): New function.
25263         (chsize): Redefine as a macro.
25264         * m4/ftruncate.m4 (gl_PREREQ_FTRUNCATE): Require AC_C_INLINE.
25265         * modules/ftruncate (Depends-on): Add msvc-inval.
25267 2011-09-25  Bruno Haible  <bruno@clisp.org>
25269         New module 'fstat'.
25270         * lib/sys_stat.in.h (fstat): Declare only if GNULIB_FSTAT is set.
25271         * lib/fstat.c: New file, based on a piece of lib/fchdir.c.
25272         * lib/fchdir.c (rpl_fstat): Remove function.
25273         * m4/fstat.m4: New file.
25274         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't set REPLACE_FSTAT.
25275         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Test whether fstat is
25276         declared.
25277         (gl_SYS_STAT_H_DEFAULTS): Initialize GNULIB_FSTAT.
25278         * modules/sys_stat (Makefile.am): Substitute GNULIB_FSTAT.
25279         * modules/fstat: New file.
25280         * modules/sys_stat-tests (Depends-on): Remove fstat-tests.
25281         * tests/test-sys_stat-c++.cc (fstat): Check only if GNULIB_TEST_FSTAT
25282         is set.
25283         * doc/posix-functions/fstat.texi: Mention the new module and the
25284         problem on MSVC.
25285         * NEWS: Mention the change.
25286         * modules/acl (Depends-on): Add fstat.
25287         * modules/chdir-safer (Depends-on): Likewise.
25288         * modules/chown (Depends-on): Likewise.
25289         * modules/copy-file (Depends-on): Likewise.
25290         * modules/fchdir (Depends-on): Likewise.
25291         * modules/fdopendir (Depends-on): Likewise.
25292         * modules/fopen (Depends-on): Likewise.
25293         * modules/fts (Depends-on): Likewise.
25294         * modules/getcwd (Depends-on): Likewise.
25295         * modules/isapipe (Depends-on): Likewise.
25296         * modules/linkat (Depends-on): Likewise.
25297         * modules/lseek (Depends-on): Likewise.
25298         * modules/mkdir-p (Depends-on): Likewise.
25299         * modules/open (Depends-on): Likewise.
25300         * modules/openat (Depends-on): Likewise.
25301         * modules/read-file (Depends-on): Likewise.
25302         * modules/renameat (Depends-on): Likewise.
25303         * modules/utimens (Depends-on): Likewise.
25305 2011-09-25  Bruno Haible  <bruno@clisp.org>
25307         linkat: Fix compilation on MSVC 9.
25308         * lib/linkat.c: Don't include <stdint.h>.
25310 2011-09-25  Bruno Haible  <bruno@clisp.org>
25312         fclose: Support for MSVC 9.
25313         * lib/fclose.c: Include msvc-inval.h.
25314         (fclose_nothrow): New function.
25315         (rpl_fclose): Use it.
25316         * modules/fclose (Depends-on): Add msvc-inval.
25317         * doc/posix-functions/fclose.texi: Mention the problem on MSVC.
25319 2011-09-24  Paul Eggert  <eggert@cs.ucla.edu>
25321         dup2: minor simplifications
25322         * lib/dup2.c (ms_windows_dup2): Omit 'inline' as it's not clear
25323         that it's a performance win.
25324         (rpl_dup2): Change "if !((defined _WIN32 || defined __WIN32__) &&
25325         ! defined __CYGWIN__)" to "ifdef F_GETFL".
25327 2011-09-24  Jim Meyering  <meyering@redhat.com>
25329         test-futimens: avoid a warning from gcc -Wshadow
25330         * tests/test-futimens.h (test_futimens): Rename inner local, s/fd/fd0/
25331         to avoid a shadowing warning.
25333 2011-09-24  Bruno Haible  <bruno@clisp.org>
25335         fdopen: Support for MSVC 9.
25336         * m4/fdopen.m4 (gl_FUNC_FDOPEN): Set REPLACE_FDOPEN also if
25337         HAVE_MSVC_INVALID_PARAMETER_HANDLER is 1.
25338         * lib/fdopen.c: Include msvc-inval.h.
25339         (fdopen_nothrow): New function.
25340         (rpl_fdopen): Use it.
25341         * modules/fdopen (Depends-on): Add msvc-inval.
25342         * modules/fclose-tests (Depends-on): Add fdopen.
25343         * modules/fflush-tests (Depends-on): Likewise.
25344         * modules/fgetc-tests (Depends-on): Likewise.
25345         * modules/fputc-tests (Depends-on): Likewise.
25346         * modules/fread-tests (Depends-on): Likewise.
25347         * modules/freopen-tests (Depends-on): Likewise.
25348         * modules/fseeko-tests (Depends-on): Likewise.
25349         * modules/ftello-tests (Depends-on): Likewise.
25350         * modules/fwrite-tests  (Depends-on): Likewise.
25351         * doc/posix-functions/fdopen.texi: Mention the problem on MSVC.
25353 2011-09-24  Bruno Haible  <bruno@clisp.org>
25355         fgetc, fputc, fread, fwrite tests: Avoid compilation error on MSVC.
25356         * modules/fgetc-tests (Depends-on): Add unistd.
25357         * modules/fputc-tests (Depends-on): Likewise.
25358         * modules/fread-tests (Depends-on): Likewise.
25359         * modules/fwrite-tests (Depends-on): Likewise.
25361 2011-09-24  Bruno Haible  <bruno@clisp.org>
25363         dup: Simplify autoconf test.
25364         * m4/dup.m4 (gl_FUNC_DUP): Don't run a test program. Instead, just rely
25365         on gl_MSVC_INVAL's result.
25367 2011-09-24  Bruno Haible  <bruno@clisp.org>
25369         Tests for function fwrite().
25370         * modules/fwrite-tests: New file.
25371         * tests/test-fwrite.c: New file.
25372         * modules/stdio-tests (Depends-on): Add fwrite-tests.
25374         Tests for function fread().
25375         * modules/fread-tests: New file.
25376         * tests/test-fread.c: New file.
25377         * modules/stdio-tests (Depends-on): Add fread-tests.
25379         Activate fputc tests.
25380         * modules/stdio-tests (Depends-on): Add fputc-tests.
25382         Enhance fgetc, fputc tests.
25383         * tests/test-fgetc.c (main): Also test the stream's error indicator.
25384         * tests/test-fputc.c (main): Likewise.
25386 2011-09-24  Bruno Haible  <bruno@clisp.org>
25388         write: Support for MSVC 9.
25389         * lib/unistd.in.h (write): Replace also when GNULIB_UNISTD_H_NONBLOCKING
25390         is not 1.
25391         * lib/write.c (write_nothrow): New function.
25392         (rpl_write): Define also when GNULIB_NONBLOCKING or GNULIB_SIGPIPE is
25393         not 1. Use write_nothrow.
25394         * m4/write.m4 (gl_FUNC_WRITE): Replace read if the platform has an
25395         invalid parameter handler.
25396         (gl_PREREQ_WRITE): New macro.
25397         * modules/write (Depends-on): Add msvc-inval.
25398         (configure.ac): Invoke gl_PREREQ_WRITE.
25399         * doc/posix-functions/write.texi: Mention the problem on MSVC.
25401 2011-09-24  Bruno Haible  <bruno@clisp.org>
25403         read: Fix last commit.
25404         * lib/read.c (read_nothrow): Change return type to 'ssize_t'.
25406 2011-09-24  Bruno Haible  <bruno@clisp.org>
25408         dup2: Fix last commit.
25409         * lib/dup2.c: Restore comments. Treat Cygwin like Unix.
25410         (rpl_dup2): Disable fcntl workaround on native Windows.
25412         sigprocmask: Make code safer.
25413         * lib/sigprocmask.c: Move '#include "msvc-inval.h"' before the code
25414         section that changes macro definitions for this compilation unit.
25416 2011-09-23  Paul Eggert  <eggert@cs.ucla.edu>
25418         dup2: clarify by coalescing Windows-specific material
25419         * lib/dup2.c: Move '#include "msvc-inval.h"' and '#include
25420         "msvc-nothrow.h"' to the Windows-specific section, so that the
25421         Emacs source need not contain these include files.
25422         (ms_windows_dup2): Rename from dup2_nothrow, and move all the
25423         Windows-specific fixes into this function rather than just the
25424         nothrow fix, as this shortens and clarifies the code.  Always
25425         define as a function, as that's a bit cleaner than having it be
25426         sometimes a function and sometimes a macro.
25427         (rpl_dup2): Move the Windows-specific stuff out of here and into
25428         ms_windows_dup2.  Don't protect the Haiku-related fix with
25429         "#if !defined __linux__", as the same code also works around
25430         a Linux kernel bug, and it doesn't add any system calls on any
25431         platform.  Add comment about FreeBSD 6.1.
25433         sigprocmask: move #include directive
25434         * lib/sigprocmask.c: Move '#include "msvc-inval.h"' to the
25435         Windows-specific section, so that the Emacs source need not
25436         contain msvc-inval.h.
25438 2011-09-23  Bruno Haible  <bruno@clisp.org>
25440         read: Support for MSVC 9.
25441         * lib/unistd.in.h (read): Replace also when GNULIB_UNISTD_H_NONBLOCKING
25442         is not 1.
25443         * lib/read.c (read_nothrow): New function.
25444         (rpl_read): Define also when GNULIB_NONBLOCKING is not 1. Use
25445         read_nothrow.
25446         * m4/read.m4 (gl_FUNC_READ): Replace read if the platform has an
25447         invalid parameter handler.
25448         (gl_PREREQ_READ): New macro.
25449         * modules/read (Depends-on): Add msvc-inval.
25450         (configure.ac): Invoke gl_PREREQ_READ.
25451         * doc/posix-functions/read.texi: Mention the problem on MSVC.
25453 2011-09-23  Bruno Haible  <bruno@clisp.org>
25455         close: Support for MSVC 9.
25456         * lib/close.c: Include <errno.h>, msvc-inval.h.
25457         (close_nothrow): New function.
25458         (rpl_close): Use it.
25459         * m4/close.m4 (gl_FUNC_CLOSE): Replace close if the platform has an
25460         invalid parameter handler.
25461         * modules/close (Depends-on): Add msvc-inval.
25462         * modules/dup2-tests (Depends-on): Add close.
25463         * modules/dup3-tests (Depends-on): Likewise.
25464         * modules/fcntl-tests (Depends-on): Likewise.
25465         * modules/spawn-pipe-tests (Depends-on): Likewise.
25466         * modules/unistd-safer-tests (Depends-on): Likewise.
25467         * doc/posix-functions/close.texi: Mention the problem on MSVC.
25469 2011-09-23  Bruno Haible  <bruno@clisp.org>
25471         New module 'dup'.
25472         * lib/unistd.in.h (dup): Declare only if the 'dup' module is in use.
25473         Allow replacement.
25474         * lib/dup.c: New file.
25475         * lib/fchdir.c (rpl_dup): Remove function.
25476         * m4/dup.m4: New file.
25477         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't set REPLACE_DUP here.
25478         * m4/unistd_h.m4 (gl_UNISTD_H): Test whether 'dup' is declared.
25479         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_DUP.
25480         * modules/unistd (Makefile.am): Substitute GNULIB_DUP.
25481         * modules/dup: New file.
25482         * tests/test-unistd-c++.cc: Check the signature of 'dup' only if the
25483         'dup' module is in use.
25484         * modules/fdopendir (Depends-on): Add dup.
25485         * modules/fdutimensat-tests (Depends-on): Likewise.
25486         * modules/fts (Depends-on): Likewise.
25487         * modules/futimens-tests (Depends-on): Likewise.
25488         * modules/posix_spawnp-tests (Depends-on): Likewise.
25489         * modules/unistd-safer-tests (Depends-on): Likewise.
25490         * modules/utimens-tests (Depends-on): Likewise.
25491         * doc/posix-functions/dup.texi: Mention the new module and the problem
25492         on MSVC.
25494 2011-09-23  Bruno Haible  <bruno@clisp.org>
25496         getdtablesize: Support for MSVC 9.
25497         * lib/getdtablesize.c: Include msvc-inval.h.
25498         (_setmaxstdio_nothrow): New function.
25499         (_setmaxstdio): Redefine it.
25500         * m4/getdtablesize.m4 (gl_PREREQ_GETDTABLESIZE): New macro.
25501         * modules/getdtablesize (Depends-on): Add msvc-inval.
25502         (configure.ac): Invoke gl_PREREQ_GETDTABLESIZE.
25504 2011-09-23  Bruno Haible  <bruno@clisp.org>
25506         signal-h: Rename from signal.
25507         * modules/signal-h: Renamed from modules/signal.
25508         * modules/pthread_sigmask (Depends-on): Update.
25509         * modules/raise (Depends-on): Likewise.
25510         * modules/sigaction (Depends-on): Likewise.
25511         * modules/sigpipe (Depends-on): Likewise.
25512         * modules/sigprocmask (Depends-on): Likewise.
25513         * modules/sys_select (Depends-on): Likewise.
25514         * modules/signal-h-tests: Renamed from modules/signal-tests.
25515         (Files, Depends-on, Makefile.am): Update.
25516         * tests/test-signal-h.c: Renamed from tests/test-signal.c.
25517         * modules/signal-h-c++-tests: Renamed from modules/signal-c++-tests.
25518         (Files, Makefile.am): Update.
25519         * tests/test-signal-h-c++.cc: Renamed from tests/test-signal-c++.cc.
25520         * tests/test-signal-h-c++2.cc: Renamed from tests/test-signal-c++2.cc.
25521         * modules/signal: New placeholder file.
25522         * MODULES.html.sh (Support for systems lacking POSIX:2008): Update.
25523         * doc/posix-headers/signal.texi: Update.
25524         * NEWS: Mention the change.
25526 2011-09-23  Bruno Haible  <bruno@clisp.org>
25528         sigprocmask: Avoid crashes through signal() on MSVC 9.
25529         * lib/sigprocmask.c: Include msvc-inval.h.
25530         (signal_nothrow): New function.
25531         (signal): Redefine it.
25532         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Require AC_C_INLINE.
25533         * modules/sigprocmask (Depends-on): Add msvc-inval.
25534         * doc/posix-functions/signal.texi: Mention the problem on MSVC.
25536 2011-09-23  Bruno Haible  <bruno@clisp.org>
25538         Tests for module 'raise'.
25539         * modules/raise-tests: New file.
25540         * tests/test-raise.c: New file.
25542         raise: Support for MSVC.
25543         * lib/signal.in.h (raise): New declaration.
25544         * lib/raise.c (raise_nothrow, rpl_raise): New alternate implementation
25545         for native Windows platforms.
25546         * m4/raise.m4: New file.
25547         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Initialize GNULIB_RAISE,
25548         HAVE_RAISE, REPLACE_RAISE.
25549         * modules/signal (Makefile.am): Substitute GNULIB_RAISE, HAVE_RAISE,
25550         REPLACE_RAISE.
25551         * modules/raise (Status, Notice): Remove fields.
25552         (Files): Add m4/raise.m4.
25553         (Depends-on): Add signal, msvc-inval.
25554         (configure.ac): Use the common idioms.
25555         (Maintainer): Add me.
25556         * tests/test-signal-c++.cc: Check the signature of raise.
25557         * doc/posix-functions/raise.texi: Mention the problem on MSVC.
25559 2011-09-23  Bruno Haible  <bruno@clisp.org>
25561         pipe2: Fix compilation on pre-C99 compilers.
25562         * lib/pipe2.c (pipe2): Surround verify(...) declaration with braces.
25564 2011-09-23  Bruno Haible  <bruno@clisp.org>
25566         New module 'msvc-nothrow'. Makes _get_osfhandle safe on MSVC 9.
25567         * lib/msvc-nothrow.h: New file.
25568         * lib/msvc-nothrow.c: New file.
25569         * m4/msvc-nothrow.m4: New file.
25570         * modules/msvc-nothrow: New file.
25571         * lib/dup2.c: Include msvc-nothrow.h.
25572         (rpl_dup2): No need to protect _get_osfhandle call here.
25573         * lib/accept4.c: Include msvc-nothrow.h.
25574         * lib/error.c: Likewise.
25575         * lib/fcntl.c: Likewise.
25576         * lib/lseek.c: Likewise.
25577         * lib/nonblocking.c: Likewise.
25578         * lib/poll.c: Likewise.
25579         * lib/read.c: Likewise.
25580         * lib/select.c: Likewise.
25581         * lib/sockets.h: Likewise.
25582         * lib/sockets.c: Likewise.
25583         * lib/stdio-read.c: Likewise.
25584         * lib/stdio-write.c: Likewise.
25585         * lib/write.c: Likewise.
25586         * lib/w32sock.h: Likewise.
25587         * lib/w32spawn.h: Likewise.
25588         * lib/flock.c: Include msvc-nothrow.h instead of <io.h>.
25589         * lib/fsync.c: Likewise.
25590         * lib/isapipe.c: Likewise.
25591         * modules/dup2 (Depends-on): Add msvc-nothrow.
25592         * modules/accept4 (Depends-on): Likewise.
25593         * modules/error (Depends-on): Likewise.
25594         * modules/fcntl (Depends-on): Likewise.
25595         * modules/lseek (Depends-on): Likewise.
25596         * modules/nonblocking (Depends-on): Likewise.
25597         * modules/poll (Depends-on): Likewise.
25598         * modules/read (Depends-on): Likewise.
25599         * modules/select (Depends-on): Likewise.
25600         * modules/sockets (Depends-on): Likewise.
25601         * modules/sigpipe (Depends-on): Likewise.
25602         * modules/write (Depends-on): Likewise.
25603         * modules/accept (Depends-on): Likewise.
25604         * modules/bind (Depends-on): Likewise.
25605         * modules/connect (Depends-on): Likewise.
25606         * modules/gethostname (Depends-on): Likewise.
25607         * modules/getpeername (Depends-on): Likewise.
25608         * modules/getsockname (Depends-on): Likewise.
25609         * modules/getsockopt (Depends-on): Likewise.
25610         * modules/ioctl (Depends-on): Likewise.
25611         * modules/listen (Depends-on): Likewise.
25612         * modules/recv (Depends-on): Likewise.
25613         * modules/recvfrom (Depends-on): Likewise.
25614         * modules/send (Depends-on): Likewise.
25615         * modules/sendto (Depends-on): Likewise.
25616         * modules/setsockopt (Depends-on): Likewise.
25617         * modules/shutdown (Depends-on): Likewise.
25618         * modules/socket (Depends-on): Likewise.
25619         * modules/execute (Depends-on): Likewise.
25620         * modules/spawn-pipe (Depends-on): Likewise.
25621         * modules/flock (Depends-on): Likewise.
25622         * modules/fsync (Depends-on): Likewise.
25623         * modules/isapipe (Depends-on): Likewise.
25624         * tests/test-cloexec.c: Include msvc-nothrow.h.
25625         * tests/test-dup-safer.c: Likewise.
25626         * tests/test-dup2.c: Likewise.
25627         * tests/test-dup3.c: Likewise.
25628         * tests/test-fcntl.c: Likewise.
25629         * tests/test-pipe.c: Likewise.
25630         * tests/test-pipe2.c: Likewise.
25631         * modules/cloexec-tests (Depends-on): Add msvc-nothrow.
25632         * modules/unistd-safer-tests (Depends-on): Likewise.
25633         * modules/dup2-tests (Depends-on): Likewise.
25634         * modules/dup3-tests (Depends-on): Likewise.
25635         * modules/fcntl-tests (Depends-on): Likewise.
25636         * modules/pipe-posix-tests (Depends-on): Likewise.
25637         * modules/pipe2-tests (Depends-on): Likewise.
25639 2011-09-23  Bruno Haible  <bruno@clisp.org>
25641         dup2: Make code more maintainable.
25642         * lib/dup2.c (dup2_nothrow): New function, extracted from rpl_dup2.
25643         (rpl_dup2): Use it.
25644         * m4/dup2.m4 (gl_PREREQ_DUP2): New macro.
25645         * modules/dup2 (configure.ac): Invoke it.
25646         Reported by Paul Eggert.
25648 2011-09-23  Bruno Haible  <bruno@clisp.org>
25650         msvc-inval: Fix compilation error.
25651         * lib/msvc-inval.h: Include <excpt.h>.
25653 2011-09-23  Bruno Haible  <bruno@clisp.org>
25655         mkdir: Tweak for MSVC 9.
25656         * lib/sys_stat.in.h: Update comments.
25657         * doc/posix-functions/mkdir.texi: Mention problem on MSVC 9.
25659         Tests for module 'chdir'.
25660         * modules/chdir-tests: New file.
25661         * tests/test-chdir.c: New file.
25663         New module 'chdir'.
25664         * modules/chdir: New file.
25665         * lib/unistd.in.h: Include <io.h>, <direct.h> also for chdir.
25666         (chdir): New declaration.
25667         * m4/unistd_h.m4 (gl_UNISTD_H): Test whether chdir is declared.
25668         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_CHDIR.
25669         * modules/unistd (Makefile.am): Substitute GNULIB_CHDIR.
25670         * tests/test-unistd-c++.cc: Check signature of chdir.
25671         * doc/posix-functions/chdir.texi: Mention problem on native Windows.
25672         * modules/chdir-long (Depends-on): Add chdir.
25673         * modules/fchdir (Depends-on): Likewise.
25674         * modules/rename (Depends-on): Likewise.
25675         * modules/savewd (Depends-on): Likewise.
25677         rmdir: Support for mingw, MSVC 9.
25678         * lib/unistd.in.h: Include <io.h> and <direct.h> also for rmdir.
25679         * doc/posix-functions/getcwd.texi: Mention problem on native Windows.
25681         getcwd: Tweak for MSVC 9.
25682         * lib/unistd.in.h: Update comments.
25683         * doc/posix-functions/getcwd.texi: Mention problem on MSVC 9.
25685 2011-09-22  Bruno Haible  <bruno@clisp.org>
25687         strerror_r-posix: Avoid a link error on MSVC.
25688         * m4/strerror_r.m4 (gl_PREREQ_STRERROR_R): Check for snprintf.
25689         * lib/strerror_r.c (snprintf): Define to _snprintf if it doesn't exist.
25691 2011-09-22  Bruno Haible  <bruno@clisp.org>
25693         select: Avoid link errors on MSVC.
25694         * m4/select.m4 (gl_FUNC_SELECT): Determine LIB_SELECT.
25695         * modules/select (Link): Replace $(LIBSOCKET) with $(LIB_SELECT).
25696         * modules/pselect (Link): Likewise.
25697         * NEWS: Mention the change.
25698         * modules/select-tests (Makefile.am): Link test-select, test-select-fd,
25699         test-select-stdin against $(LIB_SELECT).
25700         * modules/pselect-tests (Makefile.am): Link test-pselect against
25701         $(LIB_SELECT).
25703 2011-09-22  Bruno Haible  <bruno@clisp.org>
25705         select: Avoid compilation error on MSVC.
25706         * lib/select.c: Don't include <stdbool.h>.
25708 2011-09-21  Bruno Haible  <bruno@clisp.org>
25710         Consolidate all uses of PATH_MAX in *.m4 files.
25711         * m4/pathmax.m4 (gl_PATHMAX_SNIPPET, gl_PATHMAX_SNIPPET_PREREQ): New
25712         macros.
25713         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Use gl_PATHMAX_SNIPPET_PREREQ
25714         and gl_PATHMAX_SNIPPET.
25715         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): Likewise.
25716         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
25717         * modules/chdir-long (Files): Add m4/pathmax.m4.
25718         * modules/getcwd (Files): Likewise.
25720 2011-09-21  Bruno Haible  <bruno@clisp.org>
25722         ftruncate: Un-deprecate, concentrate on Win32 support.
25723         * modules/ftruncate (Status, Notice): Remove sections.
25724         (Depends-on): Add largefile.
25725         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Drop failure message on
25726         non-mingw platforms.
25727         * lib/ftruncate.c: Remove code for the older platforms. For Win32,
25728         include <io.h>.
25729         * modules/perror-tests (Depends-on): Add ftruncate.
25730         * doc/posix-functions/ftruncate.texi: Mention the MSVC problem and the
25731         'ftruncate' module.
25733 2011-09-21  Bruno Haible  <bruno@clisp.org>
25735         Add dependencies to new dirent related modules.
25736         * modules/opendir (Depends-on): Add closedir.
25737         * modules/getcwd (Depends-on): Add opendir, closedir.
25738         * modules/dirent-safer-tests (Depends-on): Likewise.
25739         * modules/fdopendir-tests (Depends-on): Likewise.
25740         * modules/rename-tests (Depends-on): Add opendir, readdir, closedir.
25741         * modules/renameat-tests (Depends-on): Likewise.
25743 2011-09-21  Bruno Haible  <bruno@clisp.org>
25745         opendir: Avoid compilation error on mingw.
25746         * lib/opendir.c: Include <stddef.h> always. Include <unistd.h> as well.
25747         * modules/opendir (Depends-on): Add unistd.
25749 2011-09-21  Bruno Haible  <bruno@clisp.org>
25751         ftruncate tests: Avoid a test failure on mingw.
25752         * tests/test-ftruncate.c (main): Allow a failure with EACCES.
25754 2011-09-21  Bruno Haible  <bruno@clisp.org>
25756         select tests: Avoid test failures on OSF/1 5.1 and mingw.
25757         * tests/test-select.h (test_bad_fd): Disable all tests on OSF/1 and
25758         native Windows.
25760 2011-09-21  Bruno Haible  <bruno@clisp.org>
25762         New module 'fdopen'.
25763         * lib/stdio.in.h (fdopen): New declaration.
25764         * lib/fdopen.c: New file.
25765         * m4/fdopen.m4: New file.
25766         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FDOPEN,
25767         REPLACE_FDOPEN.
25768         * modules/stdio (Makefile.am): Substitute GNULIB_FDOPEN,
25769         REPLACE_FDOPEN.
25770         * modules/fdopen: New file.
25771         * modules/stdio-tests (Depends-on): Remove fdopen-tests.
25772         * tests/test-stdio-c++.cc: Check signature of fdopen.
25773         * doc/posix-functions/fdopen.texi: Mention the new module.
25775 2011-09-21  Bruno Haible  <bruno@clisp.org>
25777         unlockpt tests: Avoid test failure on NetBSD 5.1.
25778         * tests/test-unlockpt.c (main): Skip the EBADF tests on NetBSD.
25779         * doc/posix-functions/unlockpt.texi: Mention the bug on NetBSD.
25781 2011-09-21  Bruno Haible  <bruno@clisp.org>
25783         getlogin, getlogin_r tests: Avoid test failure on Linux/SPARC.
25784         * tests/test-getlogin.c (main): Allow a failure with EINVAL.
25785         * tests/test-getlogin_r.c (main): Likewise.
25787 2011-09-20  Bruno Haible  <bruno@clisp.org>
25789         time tests: Don't require pid_t.
25790         * doc/posix-headers/time.texi: Revert last change.
25791         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Revert last change.
25792         * tests/test-time.c: Comment out the check for pid_t.
25794 2011-09-20  Bruno Haible  <bruno@clisp.org>
25796         fsync tests: Avoid a test failure on mingw.
25797         * tests/test-fsync.c (main): Allow a failure with EIO.
25799 2011-09-20  Bruno Haible  <bruno@clisp.org>
25801         euidaccess: Update comments.
25802         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Update comments.
25804 2011-09-20  Bruno Haible  <bruno@clisp.org>
25806         Ensure EBADF returns for socket functions on mingw.
25807         * lib/accept.c (rpl_accept): Fail with error EBADF if the file
25808         descriptor is invalid.
25809         * lib/bind.c (rpl_bind): Likewise.
25810         * lib/connect.c (rpl_connect): Likewise.
25811         * lib/getpeername.c (rpl_getpeername): Likewise.
25812         * lib/getsockname.c (rpl_getsockname): Likewise.
25813         * lib/getsockopt.c (rpl_getsockopt): Likewise.
25814         * lib/listen.c (rpl_listen): Likewise.
25815         * lib/recv.c (rpl_recv): Likewise.
25816         * lib/recvfrom.c (rpl_recvfrom): Likewise.
25817         * lib/send.c (rpl_send): Likewise.
25818         * lib/sendto.c (rpl_sendto): Likewise.
25819         * lib/setsockopt.c (rpl_setsockopt): Likewise.
25820         * lib/shutdown.c (rpl_shutdown): Likewise.
25822 2011-09-20  Bruno Haible  <bruno@clisp.org>
25824         select tests: EBADF tests.
25825         * tests/test-select.h (do_select_bad_fd, do_select_bad_fd_nowait,
25826         test_bad_fd): New functions.
25827         (test_function): Invoke also test_bad_fd.
25829 2011-09-20  Bruno Haible  <bruno@clisp.org>
25831         Tests for module 'posix_spawn_file_actions_addopen.
25832         * modules/posix_spawn_file_actions_addopen-tests: New file.
25833         * tests/test-posix_spawn_file_actions_addopen.c: New file.
25835         Tests for module 'posix_spawn_file_actions_adddup2'.
25836         * modules/posix_spawn_file_actions_adddup2-tests: New file.
25837         * tests/test-posix_spawn_file_actions_adddup2.c: New file.
25839         Tests for module 'posix_spawn_file_actions_addclose'.
25840         * modules/posix_spawn_file_actions_addclose-tests: New file.
25841         * tests/test-posix_spawn_file_actions_addclose.c: New file.
25843 2011-09-20  Bruno Haible  <bruno@clisp.org>
25845         Tests for module 'unlockpt'.
25846         * modules/unlockpt-tests: New file.
25847         * tests/test-unlockpt.c: New file.
25848         * doc/posix-functions/unlockpt.texi: Mention the Cygwin 1.7 problem.
25850         Tests for module 'grantpt'.
25851         * modules/grantpt-tests: New file.
25852         * tests/test-grantpt.c: New file.
25853         * doc/posix-functions/grantpt.texi: Mention the Cygwin 1.7 problem.
25855 2011-09-20  Bruno Haible  <bruno@clisp.org>
25857         freopen tests: EBADF tests.
25858         * tests/test-freopen.c: Include errno.h, unistd.h.
25859         (main): Add tests for EBADF, commented out for the moment.
25861         fclose tests: EBADF tests.
25862         * tests/test-fclose.c (main): Add tests for EBADF.
25864         fflush tests: EBADF tests.
25865         * tests/test-fflush.c: Include errno.h, macros.h.
25866         (main): Add tests for EBADF.
25868         ftello tests: EBADF tests.
25869         * tests/test-ftello4.sh: New file.
25870         * tests/test-ftello4.c: New file.
25871         * modules/ftello-tests (Files): Add them.
25872         (Makefile.am): Arrange to compile test-ftello4 and run test-ftello4.sh.
25874         fseeko tests: EBADF tests.
25875         * tests/test-fseeko4.sh: New file.
25876         * tests/test-fseeko4.c: New file.
25877         * modules/fseeko-tests (Files): Add them.
25878         (Makefile.am): Arrange to compile test-fseeko4 and run test-fseeko4.sh.
25880         Tests for function fputc().
25881         * modules/fputc-tests: New file.
25882         * tests/test-fputc.c: New file.
25883         * modules/stdio-tests (Depends-on): Add fputc-tests.
25885         Tests for function fgetc().
25886         * modules/fgetc-tests: New file.
25887         * tests/test-fgetc.c: New file.
25888         * modules/stdio-tests (Depends-on): Add fgetc-tests.
25890         Tests for function fdopen().
25891         * modules/fdopen-tests: New file.
25892         * tests/test-fdopen.c: New file.
25893         * modules/stdio-tests (Depends-on): Add fdopen-tests.
25895         Tests for module 'vdprintf'.
25896         * modules/vdprintf-tests: New file.
25897         * tests/test-vdprintf.c: New file.
25899         Tests for module 'dprintf'.
25900         * modules/dprintf-tests: New file.
25901         * tests/test-dprintf.c: New file.
25903 2011-09-20  Bruno Haible  <bruno@clisp.org>
25905         Tests for module 'ioctl'.
25906         * modules/ioctl-tests: New file.
25907         * tests/test-ioctl.c: New file.
25909 2011-09-20  Bruno Haible  <bruno@clisp.org>
25911         fcntl tests: EBADF tests.
25912         * tests/test-fcntl.c (main): Add more tests for EBADF.
25914 2011-09-20  Bruno Haible  <bruno@clisp.org>
25916         utimensat tests: EBADF tests.
25917         * tests/test-utimensat.c (main): Add tests for EBADF.
25919         renameat tests: EBADF tests.
25920         * tests/test-renameat.c (main): Add tests for EBADF.
25922         mkfifoat tests: EBADF tests.
25923         * tests/test-mkfifoat.c (main): Add tests for EBADF.
25925         readlinkat tests: EBADF tests.
25926         * tests/test-readlinkat.c (main): Add tests for EBADF.
25928         symlinkat tests: EBADF tests.
25929         * tests/test-symlinkat.c (main): Add tests for EBADF.
25931         linkat tests: EBADF tests.
25932         * tests/test-linkat.c (main): Add tests for EBADF.
25934         Tests for module 'faccessat'.
25935         * modules/faccessat-tests: New file.
25936         * tests/test-faccessat.c: New file.
25938         fdopendir tests: EBADF tests.
25939         * tests/test-fdopendir.c (main): Add more tests for EBADF.
25941         openat tests: EBADF tests.
25942         * tests/test-fchownat.c (main): Add tests for EBADF.
25943         * tests/test-fstatat.c (main): Likewise.
25944         * tests/test-mkdirat.c (main): Likewise.
25945         * tests/test-openat.c (main): Likewise.
25946         * tests/test-unlinkat.c (main): Likewise.
25947         * tests/test-fchmodat.c: New file.
25948         * modules/openat-tests (Files): Add tests/test-fchmodat.c.
25949         (Makefile.am): Also run 'test-fchmodat'.
25951 2011-09-20  Bruno Haible  <bruno@clisp.org>
25953         utimens, futimens, fdutimensat tests: EBADF tests.
25954         * tests/test-futimens.h (test_futimens): Add more tests for EBADF.
25956         Tests for function fstat().
25957         * modules/fstat-tests: New file.
25958         * tests/test-fstat.c: New file.
25959         * modules/sys_stat-tests (Depends-on): Add fstat-tests.
25961 2011-09-20  Bruno Haible  <bruno@clisp.org>
25963         test-ttyname_r tests: EBADF tests.
25964         * tests/test-ttyname_r.c (main): Add tests for EBADF.
25966         Tests for module 'isatty'.
25967         * modules/isatty-tests: New file.
25968         * tests/test-isatty.c: New file.
25970         Tests for module 'write'.
25971         * modules/write-tests: New file.
25972         * tests/test-write.c: New file.
25974         Tests for module 'read'.
25975         * modules/read-tests: New file.
25976         * tests/test-read.c: New file.
25978         pwrite tests: EBADF tests.
25979         * tests/test-pwrite.c (main): Add tests for EBADF.
25981         pread tests: EBADF tests.
25982         * tests/test-pread.c (main): Add tests for EBADF.
25984         lseek tests: EBADF tests.
25985         * tests/test-lseek.c (main): Add more tests for EBADF.
25987         Tests for module 'ftruncate'.
25988         * modules/ftruncate-tests: New file.
25989         * tests/test-ftruncate.sh: New file.
25990         * tests/test-ftruncate.c: New file.
25992         fsync tests: EBADF tests.
25993         * tests/test-fsync.c (main): Add more tests for EBADF.
25995         fdatasync tests: EBADF tests.
25996         * tests/test-fdatasync.c (main): Add more tests for EBADF.
25998         Tests for module 'fchown'.
25999         * modules/fchown-tests: New file.
26000         * tests/test-fchown.c: New file.
26002         Tests for module 'fchmod'.
26003         * modules/fchmod-tests: New file.
26004         * tests/test-fchmod.c: New file.
26006         fchdir tests: EBADF tests.
26007         * tests/test-fchdir.c (main): Add more tests for EBADF.
26009         dup2 tests: EBADF tests.
26010         * tests/test-dup2.c (main): Add more tests for EBADF.
26012         Tests for module 'dup'.
26013         * modules/dup-tests: New file.
26014         * tests/test-dup.c: New file.
26016         Tests for module 'close'.
26017         * modules/close-tests: New file.
26018         * tests/test-close.c: New file.
26020 2011-09-20  Bruno Haible  <bruno@clisp.org>
26022         Tests for module 'shutdown'.
26023         * modules/shutdown-tests: New file.
26024         * tests/test-shutdown.c: New file.
26026         Tests for module 'setsockopt'.
26027         * modules/setsockopt-tests: New file.
26028         * tests/test-setsockopt.c: New file.
26030         Tests for module 'sendto'.
26031         * modules/sendto-tests: New file.
26032         * tests/test-sendto.c: New file.
26034         Tests for module 'send'.
26035         * modules/send-tests: New file.
26036         * tests/test-send.c: New file.
26038         Tests for module 'recvfrom'.
26039         * modules/recvfrom-tests: New file.
26040         * tests/test-recvfrom.c: New file.
26042         Tests for module 'recv'.
26043         * modules/recv-tests: New file.
26044         * tests/test-recv.c: New file.
26046         Tests for module 'listen'.
26047         * modules/listen-tests: New file.
26048         * tests/test-listen.c: New file.
26050         Tests for module 'getsockopt'.
26051         * modules/getsockopt-tests: New file.
26052         * tests/test-getsockopt.c: New file.
26054         Tests for module 'getsockname'.
26055         * modules/getsockname-tests: New file.
26056         * tests/test-getsockname.c: New file.
26058         Tests for module 'getpeername'.
26059         * modules/getpeername-tests: New file.
26060         * tests/test-getpeername.c: New file.
26062         Tests for module 'connect'.
26063         * modules/connect-tests: New file.
26064         * tests/test-connect.c: New file.
26066         Tests for module 'bind'.
26067         * modules/bind-tests: New file.
26068         * tests/test-bind.c: New file.
26070         accept4 tests: Fix for native Windows.
26071         * tests/test-accept4.c: Include sockets.h.
26072         (main): Invoke gl_sockets_startup.
26073         * modules/accept4-tests (Depends-on): Add sockets.
26075         accept tests: Fix for native Windows.
26076         * tests/test-accept.c: Include sockets.h.
26077         (main): Invoke gl_sockets_startup.
26078         * modules/accept-tests (Depends-on): Add sockets.
26080 2011-09-19  Bruno Haible  <bruno@clisp.org>
26082         msvc-inval: Require a semicolon after DONE_MSVC_INVAL.
26083         * lib/msvc-inval.h (TRY_MSVC_INVAL, DONE_MSVC_INVAL): Wrap in a
26084         do...while(0).
26085         * lib/dup2.c (rpl_dup2): Add a semicolon after DONE_MSVC_INVAL.
26086         Suggested by Paul Eggert.
26088 2011-09-19  Bruno Haible  <bruno@clisp.org>
26090         sched: Ensure pid_t is defined.
26091         * m4/sched_h.m4 (gl_SCHED_H): Arrange to override <sched.h> if it does
26092         not define pid_t.
26093         * lib/sched.in.h: Include <sys/types.h>.
26094         * doc/posix-headers/sched.texi: Mention the pid_t problem.
26095         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
26097 2011-09-19  Bruno Haible  <bruno@clisp.org>
26099         msvc-inval: Ensure the entire expansion is a single statement.
26100         * lib/msvc-inval.h (TRY_MSVC_INVAL, DONE_MSVC_INVAL): Add an extra pair
26101         of braces.
26103 2011-09-19  Jim Meyering  <meyering@redhat.com>
26105         tests: use printf, not echo in init.sh's warn_ function
26106         * tests/init.sh (warn_): Use printf, not echo.  The latter would
26107         misbehave when given strings containing a backslash or starting
26108         with e.g., -n.  James Youngman suggested setting IFS.
26110 2011-09-19  Eric Blake  <eblake@redhat.com>
26112         futimens: enhance test
26113         * tests/test-futimens.h (test_futimens): Also check for EBADF on
26114         closed non-negative fd.
26116         date: accept 'hence' as opposite of 'ago'
26117         * lib/parse-datetime.y (relative_time_table): Add 'hence'.
26118         * tests/test-parse-datetime.c (main): Enhance test.
26119         Suggested by Jesse Wilson.
26121 2011-09-19  Jim Meyering  <meyering@redhat.com>
26123         getcwd: don't fail in a deep directory on a system without openat
26124         Before this change, getcwd would fail when called from a directory
26125         of depth PATH_MAX / 3 or greater.  That was due to the fact that
26126         the non-openat implementation used "..", "../..", "../../..", etc.
26127         to access ancestor directories.  With too many, that string would
26128         be longer than PATH_MAX.
26129         * lib/getcwd.c (HAVE_OPENAT_SUPPORT): Define also when we are
26130         using gnulib's openat replacement.
26131         * m4/openat.m4: Set GNULIB_OPENAT, so getcwd.c knows when
26132         we're using the replacement function.
26134 2011-09-14  Martin von Gagern  <Martin.vGagern@gmx.net>
26136         maint.mk: avoid warnings from perl about missing files
26137         * top/maint.mk (def_sym_regex): Ignore files listed in
26138         $(gl_other_headers_) that do not exist, say because a project
26139         does not use a corresponding module.
26141 2011-09-18  Paul Eggert  <eggert@cs.ucla.edu>
26143         stat: use pathmax.h only if needed
26144         * lib/stat.c: Include pathmax.h only if REPLACE_FUNC_STAT_DIR.
26145         This is better for Emacs, which does not have a mingw port and
26146         therefore can avoid the pathmax module.
26148         utimens: remove dependency on dup2
26149         * lib/utimens.c (fdutimens): Don't invoke dup2; it's not needed
26150         to work around the Linux kernel bug.
26151         * modules/utimens (Depends-on): Remove dup2.
26153 2011-09-18  Bruno Haible  <bruno@clisp.org>
26155         inet_ntop, inet_pton: Look for it also in libresolv.
26156         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): If the function was not found in
26157         libnsl, search for it in libresolv.
26158         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Likewise.
26159         Needed on Solaris 7.
26161 2011-09-18  Bruno Haible  <bruno@clisp.org>
26163         accept, accept4 tests: Avoid link error on Solaris.
26164         * modules/accept-tests (Makefile.am): Link test-accept against
26165         $(LIBSOCKET).
26166         * modules/accept4-tests (Makefile.am): Link test-accept4 against
26167         $(LIBSOCKET).
26169         accept4: Avoid link error on Solaris.
26170         * modules/accept4 (Link): New section.
26172         socket functions: Avoid link errors on Solaris.
26173         * modules/accept (Depends-on): Add socketlib.
26174         (Link): New section.
26175         * modules/bind (Depends-on): Add socketlib.
26176         (Link): New section.
26177         * modules/connect (Depends-on): Add socketlib.
26178         (Link): New section.
26179         * modules/getpeername (Depends-on): Add socketlib.
26180         (Link): New section.
26181         * modules/getsockname (Depends-on): Add socketlib.
26182         (Link): New section.
26183         * modules/getsockopt (Depends-on): Add socketlib.
26184         (Link): New section.
26185         * modules/listen (Depends-on): Add socketlib.
26186         (Link): New section.
26187         * modules/recv (Depends-on): Add socketlib.
26188         (Link): New section.
26189         * modules/recvfrom (Depends-on): Add socketlib.
26190         (Link): New section.
26191         * modules/send (Depends-on): Add socketlib.
26192         (Link): New section.
26193         * modules/sendto (Depends-on): Add socketlib.
26194         (Link): New section.
26195         * modules/setsockopt (Depends-on): Add socketlib.
26196         (Link): New section.
26197         * modules/shutdown (Depends-on): Add socketlib.
26198         (Link): New section.
26199         * modules/socket (Depends-on): Add socketlib.
26200         (Link): New section.
26202 2011-09-18  Bruno Haible  <bruno@clisp.org>
26204         ptsname tests: Let the test fail rather than hang (e.g. on AIX 5.1).
26205         * tests/test-ptsname.c (main): Terminate the test if it takes longer
26206         than 5 seconds.
26207         * modules/ptsname-tests (configure.ac): Test for alarm.
26209 2011-09-18  Bruno Haible  <bruno@clisp.org>
26211         posix_spawn_file_actions_add*: Fix module dependencies.
26212         * modules/posix_spawn_file_actions_addclose (Dependencies): Add
26213         posix_spawn_file_actions_init.
26214         * modules/posix_spawn_file_actions_adddup2 (Dependencies): Likewise.
26215         * modules/posix_spawn_file_actions_addopen (Dependencies): Likewise.
26217 2011-09-18  Bruno Haible  <bruno@clisp.org>
26219         rename, renameat tests: Avoid test failures on FreeBSD 6.4.
26220         * tests/test-rename.h (test_rename): Allow error code EEXIST.
26221         * tests/test-renameat.c (main): Likewise.
26223 2011-09-18  Bruno Haible  <bruno@clisp.org>
26225         Tests for module 'accept4'.
26226         * modules/accept4-tests: New file.
26227         * tests/test-accept4.c: New file.
26229 2011-09-18  Bruno Haible  <bruno@clisp.org>
26231         Tests for module 'accept'.
26232         * modules/accept-tests: New file.
26233         * tests/test-accept.c: New file.
26235 2011-09-18  Bruno Haible  <bruno@clisp.org>
26237         dup2: Support for MSVC.
26238         * lib/dup2.c: Include msvc-inval.h.
26239         (rpl_dup2): Handle invalid parameter notifications during dup2 and
26240         _get_osfhandle calls.
26241         * modules/dup2 (Depends-on): Add msvc-inval.
26242         * doc/posix-functions/dup2.texi: Mention problem on MSVC.
26244         New module 'msvc-inval'.
26245         * lib/msvc-inval.h: New file.
26246         * lib/msvc-inval.c: New file.
26247         * m4/msvc-inval.m4: New file.
26248         * modules/msvc-inval: New file.
26250 2011-09-17  Bruno Haible  <bruno@clisp.org>
26252         Tests for module 'pclose'.
26253         * modules/pclose-tests: New file.
26255         New module 'pclose'.
26256         * lib/stdio.in.h (pclose): New declaration.
26257         * lib/pclose.c: New file.
26258         * m4/pclose.m4: New file.
26259         * m4/stdio_h.m4 (gl_STDIO_H): Test whether pclose is declared.
26260         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_PCLOSE, HAVE_PCLOSE.
26261         * modules/stdio (Makefile.am): Substitute GNULIB_PCLOSE, HAVE_PCLOSE.
26262         * modules/pclose: New file.
26263         * modules/popen-tests (Depends-on): Add pclose.
26264         * modules/popen-safer-tests (Depends-on): Likewise.
26265         * doc/posix-functions/pclose.texi: Mention the new module.
26267 2011-09-17  Bruno Haible  <bruno@clisp.org>
26269         popen: Support for MSVC.
26270         * lib/stdio.in.h (popen): Declare it if the system lacks this function.
26271         * lib/popen.c (popen): Provide alternate definition for native Windows.
26272         * m4/popen.m4 (gl_FUNC_POPEN): Test if popen exists. Set HAVE_POPEN.
26273         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_POPEN.
26274         * modules/popen (Depends-on, configure.ac): Update condition.
26275         * modules/stdio (Makefile.am): Substitute HAVE_POPEN.
26276         * doc/posix-functions/popen.texi: Mention that the MSVC problem is
26277         fixed.
26279 2011-09-17  Bruno Haible  <bruno@clisp.org>
26281         isnanl, isnand, isnanf: Work around MSVC bug.
26282         * lib/isnan.c (FUNC): Use alternate ways of computing NaN and Infinity.
26284 2011-09-17  Bruno Haible  <bruno@clisp.org>
26286         sys_socket tests: Fix recent mistake.
26287         * tests/test-sys_socket.c (t1): Avoid collision of identifiers.
26289 2011-09-17  Bruno Haible  <bruno@clisp.org>
26291         putenv: Support for MSVC.
26292         * modules/putenv (Depends-on): Add environ.
26293         * lib/putenv.c (environ): Disable declaration.
26294         * lib/unistd.in.h: Update comment.
26296 2011-09-17  Bruno Haible  <bruno@clisp.org>
26298         math: Avoid macro redefinition warnings on MSVC.
26299         * lib/math.in.h (ceilf, ceill, floorf, floorl, frexpl, ldexpl):
26300         Undefine before redefining.
26302 2011-09-17  Bruno Haible  <bruno@clisp.org>
26304         doc: Mention functions which are declared as macros.
26305         * doc/posix-functions/*[fl].texi: Mention that some functions are
26306         defined as macros with arguments only.
26308 2011-09-17  Bruno Haible  <bruno@clisp.org>
26310         Add dependencies to new dirent related modules.
26311         * modules/backupfile (Depends-on): Add opendir, readdir, closedir.
26312         * modules/fts (Depends-on): Likewise.
26313         * modules/glob (Depends-on): Likewise.
26314         * modules/savedir (Depends-on): Likewise.
26315         * modules/scandir (Depends-on): Likewise.
26316         * modules/dirent-safer (Depends-on): Add opendir, closedir.
26317         * modules/fdopendir (Depends-on): Add opendir.
26319 2011-09-17  Bruno Haible  <bruno@clisp.org>
26321         inet_pton: Support for MSVC on Windows Vista or newer.
26322         * lib/arpa_inet.in.h (inet_pton): Also consider REPLACE_INET_PTON.
26323         * lib/inet_pton.c (rpl_inet_pton): Use a simple wrapper if
26324         HAVE_DECL_INET_PTON is defined.
26325         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Invoke gl_PREREQ_SYS_H_WINSOCK2.
26326         On platforms with <winsock2.h>, test whether inet_pton is declared in
26327         <ws2tcpip.h>. If so, arrange to replace it.
26328         * m4/arpa_inet_h.m4 (gl_ARPA_INET_H_DEFAULTS): Initialize
26329         REPLACE_INET_PTON.
26330         * modules/arpa_inet (Makefile.am): Substitute REPLACE_INET_PTON.
26331         * modules/inet_pton (Files): Add m4/sys_socket_h.m4.
26332         (Depends-on, configure.ac): Update condition.
26333         * doc/posix-functions/inet_pton.texi: Mention the MSVC problem.
26335 2011-09-17  Bruno Haible  <bruno@clisp.org>
26337         inet_ntop: Support for MSVC on Windows Vista or newer.
26338         * lib/arpa_inet.in.h (inet_ntop): Also consider REPLACE_INET_NTOP.
26339         * lib/inet_ntop.c (rpl_inet_ntop): Use a simple wrapper if
26340         HAVE_DECL_INET_NTOP is defined.
26341         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Invoke gl_PREREQ_SYS_H_WINSOCK2.
26342         On platforms with <winsock2.h>, test whether inet_ntop is declared in
26343         <ws2tcpip.h>. If so, arrange to replace it.
26344         * m4/arpa_inet_h.m4 (gl_ARPA_INET_H_DEFAULTS): Initialize
26345         REPLACE_INET_NTOP.
26346         * modules/arpa_inet (Makefile.am): Substitute REPLACE_INET_NTOP.
26347         * modules/inet_ntop (Files): Add m4/sys_socket_h.m4.
26348         (Depends-on, configure.ac): Update condition.
26349         * doc/posix-functions/inet_ntop.texi: Mention the MSVC problem.
26351 2011-09-16  Eric Blake  <eblake@redhat.com>
26353         test-fsync: yet another enhancement
26354         * tests/test-fsync.c (main): Also test behavior on read-only text
26355         file.
26357 2011-09-16  Bruno Haible  <bruno@clisp.org>
26359         Enhance fsync, fdatasync tests.
26360         * tests/test-fsync.c (main): Test both STDIN_FILENO and STDOUT_FILENO.
26361         * tests/test-fdatasync.c (main): Likewise.
26363 2011-09-16  Bruno Haible  <bruno@clisp.org>
26365         Support for MSVC compiler: Ensure mode_t gets defined.
26366         * m4/fcntl_h.m4 (gl_FCNTL_H): Require AC_TYPE_MODE_T.
26367         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
26368         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Likewise.
26369         * m4/sys_types_h.m4 (gl_SYS_TYPES_H): Likewise.
26370         * tests/test-fcntl-h.c: Check that mode_t is defined.
26371         * tests/test-sys_stat.c: Likewise.
26372         * tests/test-sys_types.c: Likewise.
26373         * doc/posix-headers/fcntl.texi: Mention the missing mode_t problem.
26374         * doc/posix-headers/sys_stat.texi: Likewise.
26375         * doc/posix-headers/sys_types.texi: Likewise.
26377 2011-09-16  Bruno Haible  <bruno@clisp.org>
26379         sys_stat: Support for MSVC.
26380         * lib/sys_stat.in.h (S_IFIFO): Define to _S_IFIFO if that exists.
26381         * tests/test-sys_stat.c: Don't assume that S_IFBLK exists.
26382         * doc/posix-headers/sys_stat.texi: Mention missing S_IFIFO, S_IFBLK on
26383         MSVC.
26385 2011-09-16  Bruno Haible  <bruno@clisp.org>
26387         Support for MSVC compiler: Ensure off_t gets defined.
26388         * lib/unistd.in.h: Include <sys/types.h>.
26389         * tests/test-fcntl-h.c: Check that off_t is defined.
26390         * tests/test-sys_stat.c: Likewise.
26391         * tests/test-sys_types.c: Likewise.
26393 2011-09-16  Eric Blake  <eblake@redhat.com>
26395         fdatasync: port to Solaris
26396         * m4/fdatasync.m4 (gl_FUNC_FDATASYNC): Set LIB_FDATASYNC.
26397         * modules/fdatasync (Link): Document it.
26398         * modules/fdatasync-tests (test_fdatasync_LDADD): Link with it.
26400         fdatasync: port to MacOS X 10.7
26401         * m4/fdatasync.m4 (gl_FUNC_FDATASYNC): Check for present but not
26402         declared.
26403         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Another default.
26404         * modules/unistd (Makefile.am): Substitute it.
26405         * lib/unistd.in.h (fdatasync): Declare on MacOS.
26406         * doc/posix-functions/fdatasync.texi (fdatasync): Document it.
26408         fdatasync: minor improvements
26409         * modules/fdatasync (Depends-on): Add condition for fsync.
26410         * lib/fdatasync.c (fdatasync): Add comment.
26411         * tests/test-unistd-c++.cc: Test fdatasync.
26413         unistd: update refs to newer POSIX
26414         * lib/unistd.in.h: Prefer POSIX 2008 over 2001.
26415         Suggested by Bruno Haible.
26417         fdatasync: new module
26418         * modules/fsync (Description): Document difference to fdatasync.
26419         * modules/fdatasync: New module.
26420         * m4/fdatasync.m4 (gl_FUNC_FDATASYNC): New file.
26421         * lib/fdatasync.c (fdatasync): Likewise.
26422         * m4/unistd_h.m4 (gl_UNISTD_H, gl_UNISTD_H_DEFAULTS): Set up
26423         defaults.
26424         * modules/unistd (Makefile.am): Set witnesses.
26425         * lib/unistd.in.h (fdatasync): Declare.
26426         * MODULES.html.sh: Document it.
26427         * doc/posix-functions/fdatasync.texi (fdatasync): Likewise.
26428         * modules/fdatasync-tests: New test.
26429         * tests/test-fdatasync.c: Likewise.
26431 2011-09-16  Eric Blake  <eblake@redhat.com>
26433         test-fsync: enhance tests
26434         * modules/fsync-tests (Depends-on): Add errno, for mingw.
26435         * tests/test-fsync.c (main): Enhance test.
26437 2011-09-15  Bruno Haible  <bruno@clisp.org>
26439         Support for MSVC compiler: Ensure ssize_t gets defined.
26440         * doc/posix-headers/sys_types.texi: Mention the missing ssize_t problem.
26441         * doc/posix-headers/stdio.texi: Likewise.
26442         * modules/stdio (Depends-on): Add ssize_t.
26443         * modules/sys_socket (Depends-on): Likewise.
26444         * modules/sys_types (Depends-on): Likewise.
26445         * modules/sys_uio (Depends-on): Likewise.
26446         * modules/unistd (Depends-on): Likewise.
26447         * tests/test-sys_socket.c: Check that size_t and ssize_t are defined.
26448         * tests/test-sys_types.c: Check that ssize_t is defined.
26450 2011-09-14  Bruno Haible  <bruno@clisp.org>
26452         Avoid using #, the m4 comment starter character, near brackets.
26453         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER_ONE): Use |, not #, as
26454         delimiter character in sed expressions.
26455         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): Likewise.
26456         Suggested by Eric Blake.
26458         Properly quote AC_CHECK_DECLS' 4th argument.
26459         * m4/c-stack.m4 (gl_PREREQ_C_STACK): Double-quote AC_CHECK_DECLS' 4th
26460         argument.
26461         * m4/ceilf.m4 (gl_FUNC_CEILF): Likewise.
26462         * m4/ceill.m4 (gl_FUNC_CEILL): Likewise.
26463         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
26464         * m4/floorf.m4 (gl_FUNC_FLOORF): Likewise.
26465         * m4/floorl.m4 (gl_FUNC_FLOORL): Likewise.
26466         * m4/fnmatch.m4 (gl_PREREQ_FNMATCH): Likewise.
26467         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Likewise.
26468         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Likewise.
26469         * m4/gethrxtime.m4 (gl_GETHRXTIME): Likewise.
26470         * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
26471         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Likewise.
26472         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Likewise.
26473         * m4/isfinite.m4 (gl_ISFINITE): Likewise.
26474         * m4/isinf.m4 (gl_ISINF): Likewise.
26475         * m4/logb.m4 (gl_FUNC_LOGB): Likewise.
26476         * m4/readutmp.m4 (gl_READUTMP): Likewise.
26477         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
26478         * m4/round.m4 (gl_FUNC_ROUND): Likewise.
26479         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
26480         * m4/roundl.m4 (gl_FUNC_ROUNDL): Likewise.
26481         * m4/signbit.m4 (gl_SIGNBIT): Likewise.
26482         * m4/sleep.m4 (gl_FUNC_SLEEP): Likewise.
26483         * m4/strsignal.m4 (gl_PREREQ_STRSIGNAL): Likewise.
26484         * m4/trunc.m4 (gl_FUNC_TRUNC): Likewise.
26485         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
26486         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
26487         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Likewise.
26488         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
26489         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
26490         Reported by Eric Blake.
26492         Properly quote AC_CHECK_DECL's 4th argument.
26493         * m4/acosl.m4 (gl_FUNC_ACOSL): Double-quote AC_CHECK_DECL's 4th
26494         argument.
26495         * m4/argp.m4 (gl_ARGP): Likewise.
26496         * m4/asinl.m4 (gl_FUNC_ASINL): Likewise.
26497         * m4/atanl.m4 (gl_FUNC_ATANL): Likewise.
26498         * m4/cosl.m4 (gl_FUNC_COSL): Likewise.
26499         * m4/expl.m4 (gl_FUNC_EXPL): Likewise.
26500         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): Likewise.
26501         * m4/getloadavg.m4 (gl_GETLOADAVG): Likewise.
26502         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Likewise.
26503         * m4/logl.m4 (gl_FUNC_LOGL): Likewise.
26504         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
26505         * m4/sinl.m4 (gl_FUNC_SINL): Likewise.
26506         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Likewise.
26507         * m4/tanl.m4 (gl_FUNC_TANL): Likewise.
26508         Reported by Eric Blake.
26510 2011-09-14  Eric Blake  <eblake@redhat.com>
26512         opendir: avoid compile warning
26513         * lib/opendir.c (includes): Always include errno.h.
26514         Reported by Tatsuro MATSUOKA.
26516 2011-09-14  Jim Meyering  <meyering@redhat.com>
26518         maint.mk: sc_tight_scope: propagate failure from sub-make
26519         * top/maint.mk (sc_tight_scope): Actually initialize and use $fail.
26520         Reported by Martin von Gagern.
26522 2011-09-13  Bruno Haible  <bruno@clisp.org>
26524         tempname: Support for MSVC.
26525         * doc/posix-headers/fcntl.texi: Document the problem with O_ACCMODE on
26526         MSVC.
26527         * modules/tempname (Depends-on): Add fcntl-h.
26529 2011-09-13  Bruno Haible  <bruno@clisp.org>
26531         sys_time: Support for MSVC.
26532         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Invoke
26533         gl_PREREQ_SYS_H_WINSOCK2. When testing for 'struct timeval', also
26534         include <winsock2.h>.
26535         * lib/sys_time.in.h: On MSVC, include <winsock2.h> and hide its
26536         function declarations that collide with POSIX.
26537         * modules/sys_time (Files): Add m4/sys_socket_h.m4.
26538         (Makefile.am): Substitute HAVE_WINSOCK2_H.
26540 2011-09-13  Bruno Haible  <bruno@clisp.org>
26542         stat: Support for MSVC.
26543         * lib/stat.c: Include pathmax.h.
26544         * modules/stat (Depends-on): Add pathmax.
26546         pathmax: Support for native Windows.
26547         * lib/pathmax.h (PATH_MAX): Define to 260 on native Windows.
26549 2011-09-12  Bruno Haible  <bruno@clisp.org>
26551         New modules 'opendir', 'readdir', 'rewinddir', 'closedir'.
26552         * lib/dirent.in.h (struct dirent): New type.
26553         (DT_UNKNOWN, DT_FIFO, DT_CHR, DT_DIR, DT_BLK, DT_REG, DT_LNK, DT_SOCK,
26554         DT_WHT): New macros.
26555         (DIR): New type.
26556         (opendir, closedir): Declare only if the module 'opendir' is enabled.
26557         (readdir, rewinddir): New declarations.
26558         * lib/dirent-private.h: New file.
26559         * lib/opendir.c: New file.
26560         * lib/readdir.c: New file.
26561         * lib/rewinddir.c: New file.
26562         * lib/closedir.c: New file.
26563         * lib/fchdir.c (rpl_closedir, rpl_opendir): Remove functions.
26564         * m4/opendir.m4: New file.
26565         * m4/readdir.m4: New file.
26566         * m4/rewinddir.m4: New file.
26567         * m4/closedir.m4: New file.
26568         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't set REPLACE_OPENDIR,
26569         REPLACE_CLOSEDIR here.
26570         * m4/dirent_h.m4 (gl_DIRENT_H): Also check whether closedir, opendir,
26571         readdir, rewinddir are declared.
26572         (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_OPENDIR, GNULIB_READDIR,
26573         GNULIB_REWINDDIR, GNULIB_CLOSEDIR, HAVE_OPENDIR, HAVE_READDIR,
26574         HAVE_REWINDDIR, HAVE_CLOSEDIR.
26575         * modules/dirent (Makefile.am): Substitute GNULIB_OPENDIR,
26576         GNULIB_READDIR, GNULIB_REWINDDIR, GNULIB_CLOSEDIR, HAVE_OPENDIR,
26577         HAVE_READDIR, HAVE_REWINDDIR, HAVE_CLOSEDIR.
26578         * modules/opendir: New file.
26579         * modules/readdir: New file.
26580         * modules/rewinddir: New file.
26581         * modules/closedir: New file.
26582         * doc/posix-functions/opendir.texi: Mention the 'opendir' module.
26583         * doc/posix-functions/readdir.texi: Mention the 'readdir' module.
26584         * doc/posix-functions/rewinddir.texi: Mention the 'rewinddir' module.
26585         * doc/posix-functions/closedir.texi: Mention the 'closedir' module.
26586         * NEWS: Mention the 'fchdir' change.
26588 2011-09-11  Bruno Haible  <bruno@clisp.org>
26590         asm-underscore.m4: Support for MSVC.
26591         * m4/asm-underscore.m4 (gl_C_ASM): New macro.
26592         (gl_ASM_SYMBOL_PREFIX): Require it. Use its results.
26594 2011-09-11  Reuben Thomas  <rrt@sc3d.org>
26596         Doc about crypt functions.
26597         * doc/posix-functions/crypt.texi: Expand range of glibc versions
26598         needing for _GNU_SOURCE to get crypt.
26599         * doc/posix-functions/encrypt.texi: Likewise.
26600         * doc/posix-functions/setkey.texi: Likewise.
26602 2011-09-11  Bruno Haible  <bruno@clisp.org>
26604         doc: Update regarding MSVC 9.
26605         * doc/gnulib-intro.texi (Target Platforms): Classify MSVC as "rarely
26606         tested".
26607         * doc/posix-functions/*.texi: Update with info about MSVC 9.
26608         * doc/posix-headers/*.texi: Likewise.
26609         * doc/pastposix-functions/*.texi: Likewise.
26610         * doc/glibc-functions/*.texi: Likewise.
26611         * doc/glibc-headers/*.texi: Likewise.
26613 2011-09-11  Bruno Haible  <bruno@clisp.org>
26615         unistd et al.: Don't assume <unistd.h> exists.
26616         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Don't include <unistd.h> if it
26617         does not exist.
26618         * m4/environ.m4 (gl_ENVIRON): Don't include <unistd.h> if it does not
26619         exist. But include <stdlib.h>.
26620         * m4/fcntl-o.m4 (gl_FCNTL_O_FLAGS): If <unistd.h> does not exist,
26621         include <io.h> and <stdlib.h> instead. Don't test symbolink links if
26622         symlink() does not exist.
26623         * m4/fflush.m4 (gl_FUNC_FFLUSH_STDIN): If <unistd.h> does not exist,
26624         include <io.h> instead.
26625         * m4/free.m4 (gl_FUNC_FREE): Assume free(NULL) works on native Windows.
26626         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): If <unistd.h> does not exist,
26627         include <direct.h> instead.
26628         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): Likewise.
26629         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
26630         * m4/lseek.m4 (gl_FUNC_LSEEK): If <unistd.h> does not exist, include
26631         <io.h> instead.
26632         * m4/rename.m4 (gl_FUNC_RENAME): Assume rename() manages hard links
26633         correctly if the system does not have hard links.
26634         * m4/rmdir.m4 (gl_FUNC_RMDIR): If <unistd.h> does not exist, include
26635         <direct.h> instead.
26636         * m4/unistd_h.m4 (gl_UNISTD_H): If <unistd.h> does not exist, bypass
26637         it when looking for function declarations.
26638         * m4/unlink.m4 (gl_FUNC_UNLINK): If <unistd.h> does not exist, include
26639         <direct.h> and <io.h> instead.
26640         * doc/posix-headers/unistd.texi: More details about MSVC problem.
26642 2011-09-11  Bruno Haible  <bruno@clisp.org>
26644         strcase: Support for MSVC.
26645         * modules/strcase (Status, Notice): Remove obsoletion mark.
26646         * doc/posix-functions/strcasecmp.texi: Mention MSVC problem.
26647         * doc/posix-functions/strncasecmp.texi: Likewise.
26649         strings: Don't assume <strings.h> exists.
26650         * lib/strings.in.h: Include <strings.h> only if HAVE_STRINGS_H is 1.
26651         * m4/strings_h.m4 (gl_HEADER_STRINGS_H_BODY): Set HAVE_STRINGS_H.
26652         * modules/strings (Makefile.am): Substitute HAVE_STRINGS_H.
26653         * doc/posix-headers/strings.texi: Mention the MSVC problem.
26655 2011-09-11  Bruno Haible  <bruno@clisp.org>
26657         dirent: Don't assume <dirent.h> exists.
26658         * lib/dirent.in.h: Include <dirent.h> only if HAVE_DIRENT_H is 1.
26659         * m4/dirent_h.m4 (gl_DIRENT_H): Set HAVE_DIRENT_H.
26660         * modules/dirent (Makefile.am): Substitute HAVE_DIRENT_H.
26661         * doc/posix-headers/dirent.texi: Mention the MSVC problem.
26663 2011-09-11  Bruno Haible  <bruno@clisp.org>
26665         Fix wint_t on MSVC.
26666         * lib/wchar.in.h (wint_t): On MSVC, override it.
26667         * lib/wctype.in.h (wint_t): Likewise.
26668         * m4/stdint.m4 (gl_STDINT_TYPE_PROPERTIES): Override BITSIZEOF_WINT_T on
26669         MSVC.
26670         * doc/posix-headers/wchar.texi: Mention the problem with wint_t on MSVC.
26671         * doc/posix-headers/wctype.texi: Likewise.
26673 2011-09-11  Bruno Haible  <bruno@clisp.org>
26675         sys_types: Fix typo.
26676         * lib/sys_types.in.h: Fix typo in comment.
26677         Reported by Paul Eggert.
26679         Support for MSVC compiler: Ensure size_t gets defined.
26680         * modules/strings (Depends-on): Add 'sys_types'.
26681         * modules/sys_uio (Depends-on): Likewise.
26682         * lib/sys_uio.in.h: Update comment.
26684         C++ tests for module 'sys_types'.
26685         * modules/sys_types-c++-tests: New file.
26686         * tests/test-sys_types-c++.cc: New file.
26688         Tests for module 'sys_types'.
26689         * modules/sys_types-tests: New file.
26690         * tests/test-sys_types.c: New file.
26692         New module 'sys_types'.
26693         * lib/sys_types.in.h: New file.
26694         * m4/sys_types_h.m4: New file.
26695         * modules/sys_types: New file.
26696         * doc/posix-headers/sys_types.texi: Mention the new module and the
26697         size_t problem on MSVC 9.
26699 2011-09-11  Bruno Haible  <bruno@clisp.org>
26701         Support for MSVC compiler: Avoid division by a literal 0.
26702         * lib/math.in.h (NAN): Define through a function call also on MSVC.
26703         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Divide by 'zero' instead of 0.0.
26704         * m4/printf.m4 (gl_PRINTF_INFINITE, gl_PRINTF_DIRECTIVE_A,
26705         gl_PRINTF_DIRECTIVE_F, gl_PRINTF_FLAG_ZERO): Likewise.
26706         (gl_PRINTF_INFINITE_LONG_DOUBLE): Divide by 'zeroL' instead of 0.0L.
26707         * tests/infinity.h: New file.
26708         * tests/nan.h (NaNf, NaNd, NaNl): Define through a function call also
26709         on MSVC.
26710         * tests/test-ceilf1.c: Include infinity.h.
26711         (main): Use Infinityf.
26712         * tests/test-ceil1.c: Include infinity.h.
26713         (main): Use Infinityd.
26714         * tests/test-ceill.c: Include infinity.h.
26715         (main): Use Infinityl.
26716         * tests/test-dprintf-posix.c: Include infinity.h.
26717         (test_function): Use Infinityd.
26718         * tests/test-floorf1.c: Include infinity.h.
26719         (main): Use Infinityf.
26720         * tests/test-floor1.c: Include infinity.h.
26721         (main): Use Infinityd.
26722         * tests/test-floorl.c: Include infinity.h.
26723         (main): Use Infinityl.
26724         * tests/test-fprintf-posix.c: Include infinity.h.
26725         (test_function): Use Infinityd.
26726         * tests/test-frexp.c: Include infinity.h.
26727         (main): Use Infinityd.
26728         * tests/test-frexpl.c: Include infinity.h.
26729         (main): Use Infinityl.
26730         * tests/test-isfinite.c: Include infinity.h.
26731         (test_isfinitef): Use Infinityf.
26732         (test_isfinited): Use Infinityd.
26733         (test_isfinitel): Use Infinityl.
26734         * tests/test-isinf.c: Include infinity.h.
26735         (test_isinff): Use Infinityf.
26736         (test_isinfd): Use Infinityd.
26737         (test_isinfl): Use Infinityl.
26738         * tests/test-isnan.c: Include infinity.h.
26739         (test_float): Use Infinityf.
26740         (test_double): Use Infinityd.
26741         (test_long_double): Use Infinityl.
26742         * tests/test-isnanf.h: Include infinity.h.
26743         (main): Use Infinityf.
26744         * tests/test-isnand.h: Include infinity.h.
26745         (main): Use Infinityd.
26746         * tests/test-isnanl.h: Include infinity.h.
26747         (main): Use Infinityl.
26748         * tests/test-ldexpl.c: Include infinity.h.
26749         (main): Use Infinityl.
26750         * tests/test-printf-posix.h: Include infinity.h.
26751         (test_function): Use Infinityd.
26752         * tests/test-roundf1.c: Include infinity.h.
26753         (main): Use Infinityf.
26754         * tests/test-round1.c: Include infinity.h.
26755         (main): Use Infinityd.
26756         * tests/test-roundl.c: Include infinity.h.
26757         (main): Use Infinityl.
26758         * tests/test-signbit.c: Include infinity.h.
26759         (test_signbitf): Use Infinityf.
26760         (test_signbitd): Use Infinityd.
26761         (test_signbitl): Use Infinityl.
26762         * tests/test-snprintf-posix.h: Include infinity.h.
26763         (test_function): Use Infinityd, Infinityl.
26764         * tests/test-sprintf-posix.h: Include infinity.h.
26765         (test_function): Use Infinityd, Infinityl.
26766         * tests/test-truncf1.c: Include infinity.h.
26767         (main): Use Infinityf.
26768         * tests/test-trunc1.c: Include infinity.h.
26769         (main): Use Infinityd.
26770         * tests/test-truncl.c: Include infinity.h.
26771         (main): Use Infinityl.
26772         * tests/test-vasnprintf-posix.c: Include infinity.h.
26773         (test_function): Use Infinityd, Infinityl.
26774         * tests/test-vasprintf-posix.c: Include infinity.h.
26775         (test_function): Use Infinityd, Infinityl.
26776         * modules/ceilf-tests (Files): Add tests/infinity.h.
26777         * modules/ceil-tests (Files): Likewise.
26778         * modules/ceill-tests (Files): Likewise.
26779         * modules/dprintf-posix-tests (Files): Likewise.
26780         * modules/floorf-tests (Files): Likewise.
26781         * modules/floor-tests (Files): Likewise.
26782         * modules/floorl-tests (Files): Likewise.
26783         * modules/fprintf-posix-tests (Files): Likewise.
26784         * modules/frexp-tests (Files): Likewise.
26785         * modules/frexp-nolibm-tests (Files): Likewise.
26786         * modules/frexpl-tests (Files): Likewise.
26787         * modules/frexpl-nolibm-tests (Files): Likewise.
26788         * modules/isfinite-tests (Files): Likewise.
26789         * modules/isinf-tests (Files): Likewise.
26790         * modules/isnan-tests (Files): Likewise.
26791         * modules/isnanf-tests (Files): Likewise.
26792         * modules/isnanf-nolibm-tests (Files): Likewise.
26793         * modules/isnand-tests (Files): Likewise.
26794         * modules/isnand-nolibm-tests (Files): Likewise.
26795         * modules/isnanl-tests (Files): Likewise.
26796         * modules/isnanl-nolibm-tests (Files): Likewise.
26797         * modules/ldexpl-tests (Files): Likewise.
26798         * modules/printf-posix-tests (Files): Likewise.
26799         * modules/roundf-tests (Files): Likewise.
26800         * modules/round-tests (Files): Likewise.
26801         * modules/roundl-tests (Files): Likewise.
26802         * modules/signbit-tests (Files): Likewise.
26803         * modules/snprintf-posix-tests (Files): Likewise.
26804         * modules/sprintf-posix-tests (Files): Likewise.
26805         * modules/truncf-tests (Files): Likewise.
26806         * modules/trunc-tests (Files): Likewise.
26807         * modules/truncl-tests (Files): Likewise.
26808         * modules/vasnprintf-posix-tests (Files): Likewise.
26809         * modules/vasprintf-posix-tests (Files): Likewise.
26810         * modules/vdprintf-posix-tests (Files): Likewise.
26811         * modules/vfprintf-posix-tests (Files): Likewise.
26812         * modules/vprintf-posix-tests (Files): Likewise.
26813         * modules/vsnprintf-posix-tests (Files): Likewise.
26814         * modules/vsprintf-posix-tests (Files): Likewise.
26815         * modules/xprintf-posix-tests (Files): Likewise.
26817 2011-09-11  Bruno Haible  <bruno@clisp.org>
26819         Ensure pid_t gets defined.
26820         * m4/fcntl_h.m4 (gl_FCNTL_H): Require AC_TYPE_PID_T.
26821         * m4/sched_h.m4 (gl_SCHED_H): Likewise.
26822         * m4/signal_h.m4 (gl_SIGNAL_H): Likewise.
26823         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
26824         * m4/sys_wait_h.m4 (gl_SYS_WAIT_H): Likewise.
26825         * m4/termios_h.m4 (gl_TERMIOS_H): Likewise.
26826         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Likewise.
26827         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
26828         * tests/test-fcntl-h.c: Check that pid_t is defined.
26829         * tests/test-sched.c: Likewise.
26830         * tests/test-termios.c: Likewise.
26831         * tests/test-time.c: Likewise.
26832         * doc/posix-headers/fcntl.texi: Mention lack of pid_t on MSVC platform.
26833         * doc/posix-headers/signal.texi: Likewise.
26834         * doc/posix-headers/sys_types.texi: Likewise.
26835         * doc/posix-headers/time.texi: Likewise.
26837 2011-09-11  Bruno Haible  <bruno@clisp.org>
26839         acl: Fix compilation on Solaris 10 (older version).
26840         * lib/file-has-acl.c (acl_ace_nontrivial): Use NEW_ACE_EVERYONE instead
26841         of ACE_EVERYONE.
26842         * lib/set-mode-acl.c (qset_acl): Likewise.
26843         Reported by Christian Jullien <eligis@orange.fr>.
26845 2011-09-10  Bruno Haible  <bruno@clisp.org>
26847         iconv, unsetenv: Add support for MSVC compiler.
26848         * m4/iconv.m4 (AM_ICONV): Use ISO C declaration syntax on MSVC.
26849         * m4/setenv.m4 (gl_FUNC_UNSETENV): Drop support for K&R C compilers.
26851 2011-09-10  Bruno Haible  <bruno@clisp.org>
26853         *printf: Add support for MSVC compiler.
26854         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_N): On MSVC, install a handler that
26855         handles the exception caused by the %n directive. When cross-compiling,
26856         guess no on native Windows.
26857         (gl_SNPRINTF_TRUNCATION_C99, gl_SNPRINTF_RETVAL_C99,
26858         gl_SNPRINTF_DIRECTIVE_N, gl_SNPRINTF_SIZE1): When snprintf is missing,
26859         emulate it through vsnprintf.
26860         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Update comment.
26861         * doc/posix-functions/dprintf.texi: Update documentation regarding
26862         MSVC 9.
26863         * doc/posix-functions/fprintf.texi: Likewise.
26864         * doc/posix-functions/printf.texi: Likewise.
26865         * doc/posix-functions/snprintf.texi: Likewise.
26866         * doc/posix-functions/sprintf.texi: Likewise.
26867         * doc/posix-functions/swprintf.texi: Likewise.
26868         * doc/posix-functions/vdprintf.texi: Likewise.
26869         * doc/posix-functions/vfprintf.texi: Likewise.
26870         * doc/posix-functions/vprintf.texi: Likewise.
26871         * doc/posix-functions/vsnprintf.texi: Likewise.
26872         * doc/posix-functions/vsprintf.texi: Likewise.
26873         * doc/glibc-functions/asprintf.texi: Likewise.
26874         * doc/glibc-functions/obstack_printf.texi: Likewise.
26875         * doc/glibc-functions/obstack_vprintf.texi: Likewise.
26876         * doc/glibc-functions/vasprintf.texi: Likewise.
26878 2011-09-10  Bruno Haible  <bruno@clisp.org>
26880         nocrash: Add support for native Windows.
26881         * m4/nocrash.m4 (GL_NOCRASH): Avoid a crash also on native Windows.
26883 2011-09-10  Michael Goffioul  <michael.goffioul@gmail.com>  (tiny change)
26884             Bruno Haible  <bruno@clisp.org>
26886         absolute-header, include-next: Add support for MSVC compiler.
26887         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER_ONE): Require
26888         AC_CANONICAL_HOST. On native Windows, recognize also backslash as
26889         directory separator in #line directives.
26890         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): On native Windows,
26891         recognize also backslash as directory separator in #line directives.
26893 2011-09-08  Jim Meyering  <meyering@redhat.com>
26895         maint.mk: mark the post-release commit log with "maint: " prefix
26896         * top/maint.mk (emit-commit-log): Add "maint: " prefix to the
26897         one-line commit-log summary.
26899 2011-09-08  Reuben Thomas  <rrt@sc3d.org>
26900             Bruno Haible  <bruno@clisp.org>
26902         Doc about crypt functions.
26903         * doc/posix-functions/crypt.texi: Mention need for _GNU_SOURCE on glibc
26904         systems.
26905         * doc/posix-functions/encrypt.texi: Likewise.
26906         * doc/posix-functions/setkey.texi: Likewise.
26908 2011-09-08  Simon Josefsson  <simon@josefsson.org>
26910         * lib/gc.h: Fix copyright header.
26912 2011-09-07  Bruno Haible  <bruno@clisp.org>
26914         pthread: Determine $(LIB_PTHREAD) correctly on OSF/1 5.1.
26915         * m4/pthread.m4 (gl_PTHREAD_CHECK): Use AC_CACHE_CHECK and
26916         AC_LINK_IFELSE instead of AC_SEARCH_LIBS.
26918 2011-09-07  Bruno Haible  <bruno@clisp.org>
26920         openat: Work around compilation error with OSF/1 5.1 DTK cc.
26921         * lib/fopen.c: Use different syntax for include of <stdio.h>.
26922         * lib/freopen.c: Likewise.
26923         * lib/fstatat.c: Use different syntax for include of <sys/stat.h>.
26924         * lib/lstat.c: Likewise.
26925         * lib/stat.c: Likewise.
26926         * lib/open.c: Use different syntax for include of <fcntl.h>.
26927         * lib/openat.c: Include fcntl.h again, explicitly.
26929 2011-09-04  J.T. Conklin  <jtc@acorntoolworks.com>
26931         parse-datetime: document the newly accepted format
26932         * doc/parse-datetime.texi (Combined date and time of day items):
26933         New section.
26935 2011-09-06  Bruno Haible  <bruno@clisp.org>
26937         acl: Fix a test failure on newer Solaris 10 with ZFS.
26938         * tests/test-sameacls.c (main): Interpret acl GETACLCNT failure with
26939         ENOSYS as no ACL.
26940         Reported by Jim Meyering.
26942 2011-09-06  Bruno Haible  <bruno@clisp.org>
26944         acl: Update for AIX >= 5.3 with NFS.
26945         * lib/file-has-acl.c (file_has_acl): Interpret aclx_get failure with
26946         ENOSYS as no ACL.
26948         acl: Fix a test failure on AIX >= 5.3 with NFS.
26949         * tests/test-sameacls.c (main): Interpret aclx_get failure with ENOSYS
26950         as no ACL.
26952 2011-09-06  Bruno Haible  <bruno@clisp.org>
26954         acl: Fix a test failure on IRIX 6.5 with NFS.
26955         * lib/acl-internal.h (MODE_INSIDE_ACL): Define to 0 on IRIX.
26956         * lib/set-mode-acl.c (qset_acl): Test !HAVE_ACL_TYPE_EXTENDED instead
26957         of MODE_INSIDE_ACL. If !MODE_INSIDE_ACL, do a chmod_or_fchmod always.
26958         * lib/copy-acl.c (qcopy_acl): Likewise.
26960 2011-09-05  Paul Eggert  <eggert@cs.ucla.edu>
26962         openat: port to AIX 7.1 with large files
26963         AIX 7.1 does a "#define openat open64at" if large files are in use,
26964         so we can't simply #undef openat.  Use the orig_openat trick (similar
26965         to orig_open in lib/open.c) to work around the problem.  Problem
26966         reported by Kevin Brott for GNU tar, in the thread containing
26967         <http://lists.gnu.org/archive/html/bug-tar/2011-09/msg00032.html>.
26968         * lib/openat.c (__need_system_fcntl_h): Define first.
26969         Include <fcntl.h> and <sys/types.h> before undefining.
26970         (orig_openat) [HAVE_OPENAT]: New inline function.
26971         (openat) [HAVE_OPENAT]: Do not undef.
26972         (rpl_openat): Use orig_openat, not openat.
26974 2011-09-05  Joachim Schmitz  <schmitz@hp.com>  (tiny change)
26975             Bruno Haible  <bruno@clisp.org>
26977         acl: Avoid errors on NonStop Kernel.
26978         * lib/file-has-acl.c (file_has_acl) [NonStop Kernel]: Ignore ENOSYS and
26979         ENOTSUP errors.
26981 2011-09-05  Bruno Haible  <bruno@clisp.org>
26983         acl: Clean up Solaris code.
26984         * lib/acl-internal.h: Remove no-op #if.
26985         * lib/file-has-acl.c: Likewise.
26986         * lib/set-mode-acl.c (qset_acl): Remove unused Solaris code.
26987         * lib/copy-acl.c (qcopy_acl): Likewise.
26989 2011-09-05  Bruno Haible  <bruno@clisp.org>
26991         acl: Fix a bug with NFSv4 ACLs on Solaris 10 (newer version) in
26992         binaries built on the original Solaris 10.
26993         * lib/file-has-acl.c (file_has_acl): ACLs with 4..6 ACEs can be
26994         trivial.
26996 2011-09-05  Bruno Haible  <bruno@clisp.org>
26998         acl: Improve support of NFSv4 ACLs on Solaris 10 (newer version).
26999         * lib/acl-internal.h (acl_nontrivial): Declare also on newer Solaris
27000         10.
27001         * lib/file-has-acl.c (acl_nontrivial): Define also on newer Solaris 10.
27002         (acl_ace_nontrivial): Likewise. Recognize the trivial ACLs with 6 ACEs.
27003         * lib/copy-acl.c (qcopy_acl): On newer Solaris 10, use acl or facl
27004         instead of acl_get, facl_get, acl_set, facl_set.
27006 2011-09-05  Bruno Haible  <bruno@clisp.org>
27008         copy-file: Try unit tests on more file systems.
27009         * tests/test-copy-file-1.sh: New file.
27010         * tests/test-copy-file-2.sh: New file.
27011         * modules/copy-file-tests (Files): Add them.
27012         (Makefile.am): Add them to TESTS.
27014         acl: Try unit tests on more file systems.
27015         * tests/test-file-has-acl-1.sh: New file.
27016         * tests/test-file-has-acl-2.sh: New file.
27017         * tests/test-set-mode-acl-1.sh: New file.
27018         * tests/test-set-mode-acl-2.sh: New file.
27019         * tests/test-copy-acl-1.sh: New file.
27020         * tests/test-copy-acl-2.sh: New file.
27021         * modules/acl-tests (Files): Add them.
27022         (Makefile.am): Add them to TESTS.
27024 2011-09-04  Bruno Haible  <bruno@clisp.org>
27026         acl: Improve support of NFSv4 ACLs on Solaris 10 (newer version).
27027         * lib/acl-internal.h (ACE_*, NEW_ACE_*): Define also on newer Solaris
27028         10.
27029         (OLD_ALLOW, OLD_DENY): New macros.
27030         (NEW_ACE_ACCESS_ALLOWED_ACE_TYPE): Renamed from
27031         ACE_ACCESS_ALLOWED_ACE_TYPE.
27032         (NEW_ACE_ACCESS_DENIED_ACE_TYPE): Renamed from
27033         ACE_ACCESS_DENIED_ACE_TYPE.
27034         (OLD_ACE_OWNER, OLD_ACE_GROUP, OLD_ACE_OTHER): New macros.
27035         (NEW_ACE_EXECUTE): Fix value.
27036         (NEW_ACE_APPEND_DATA, NEW_ACE_READ_NAMED_ATTRS,
27037         NEW_ACE_WRITE_NAMED_ATTRS, NEW_ACE_DELETE_CHILD,
27038         NEW_ACE_READ_ATTRIBUTES, NEW_ACE_WRITE_ATTRIBUTES, NEW_ACE_DELETE,
27039         NEW_ACE_READ_ACL, NEW_ACE_WRITE_ACL, NEW_ACE_WRITE_OWNER,
27040         NEW_ACE_SYNCHRONIZE): New macros.
27041         * lib/set-mode-acl.c (qset_acl): On newer Solaris 10, use acl or facl
27042         instead of acl_fromtext, acl_set, facl_set.
27043         Fixes a coreutils/tests/cp/perm failure.
27045 2011-09-03  Paul Eggert  <eggert@cs.ucla.edu>
27047         openat: test for fstatat (..., 0) bug
27048         Further testing with tar suggests that fstatat (..., 0)
27049         does not work in general, on AIX 7.1; see
27050         <http://lists.gnu.org/archive/html/bug-tar/2011-09/msg00023.html>.
27051         So, give up entirely on AIX 7.1's fstatat, and fall back on our
27052         replacement fstatat (which is what older AIX releases were using
27053         anyway).
27054         * lib/fstatat.c (fstatat) [HAVE_FSTATAT]: Do not undef.  The only
27055         use is now changed to orig_fstatat.  This was probably the right
27056         thing to do anyway.
27057         (FSTATAT_AT_FDCWD_0_BROKEN): Remove; no longer used.
27058         (rpl_fstatat) [FSTATAT_ZERO_FLAG_BROKEN]: Remove.
27059         (rpl_fstatat): Simplify, assuming !FSTATAT_ZERO_FLAG_BROKEN.
27060         (AT_FUNC_NAME) [FSTATAT_ZERO_FLAG_BROKEN]: Now rpl_fstatat.
27061         * m4/openat.m4 (gl_FUNC_FSTATAT): Test for the more-general bug
27062         and define FSTATAT_ZERO_FLAG_BROKEN, not FSTATAT_AT_FDCWD_0_BROKEN,
27063         if the bug is found.
27065         openat: test for fstatat (AT_FDCWD, ..., 0) bug
27066         This tests for another fstatat bug on AIX 7.1:
27067         fstatat (AT_FDCWD, ..., 0) does not work.  See
27068         <http://lists.gnu.org/archive/html/bug-tar/2011-09/msg00015.html>.
27069         * lib/fstatat.c (FSTATAT_AT_FDCWD_0_BROKEN)
27070         (LSTAT_FOLLOWS_SLASHED_SYMLINK): Default to 0.
27071         (rpl_fstatat): Adjust so that it works around either (or both)
27072         bugs if present.
27073         * m4/openat.m4 (gl_FUNC_FSTATAT): Test for this fstatat bug.
27075 2011-09-03  Karl Berry  <karl@gnu.org>
27077         * doc/regex.texi (Character Class Operators): Avoid literal ":"
27078         in index entries.
27080 2011-09-02  Bruno Haible  <bruno@clisp.org>
27082         Allow the user to override the choice of AR, ARFLAGS, RANLIB.
27083         * m4/gnulib-common.m4 (gl_PROG_AR_RANLIB): Don't override the given
27084         values of AR, ARFLAGS, RANLIB.
27085         Reported by John W. Eaton <jwe@gnu.org> for Octave.
27087 2011-09-02  Bruno Haible  <bruno@clisp.org>
27089         Find 'ar' program that fits with --host argument.
27090         * m4/gnulib-common.m4 (gl_PROG_AR_RANLIB): Use AC_CHECK_TOOL.
27092 2011-09-02  Bruno Haible  <bruno@clisp.org>
27094         tests: init.sh: Support any non-GNU diff.
27095         * tests/init.sh (compare): If "diff -c" is supported but "diff -u" is
27096         not, use "diff -c". Useful on AIX 6.1, HP-UX 11.31, OSF/1 5.1,
27097         Solaris 8.
27099 2011-09-02  Bruno Haible  <bruno@clisp.org>
27101         tests: init.sh: work also with any non-GNU diff that supports -u
27102         * tests/init.sh: Relax check for diff -u support.
27103         Rather than checking for GNU diff via --version, simply check
27104         for support for -u itself.  Useful at least on OpenBSD 4.9,
27105         AIX 7.1, IRIX 6.5, and Solaris 10.
27107 2011-09-01  Bruno Haible  <bruno@clisp.org>
27109         strtoimax, strtoumax: Document problem on HP-UX 11.
27110         * doc/posix-functions/strtoimax.texi: Mention HP-UX 11.11 problem.
27111         * doc/posix-functions/strtoumax.texi: Likewise.
27113 2011-09-01  Bruno Haible  <bruno@clisp.org>
27115         strtoumax: Avoid link error on OSF/1 with DTK cc.
27116         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Always test whether strtoumax is
27117         defined as a function.
27118         * modules/strtoumax (Depends-on, configure.ac): Test only whether
27119         strtoumax is defined, not whether it is declared.
27121 2011-09-01  Bruno Haible  <bruno@clisp.org>
27123         strtoimax: Avoid link error on OSF/1 with DTK cc.
27124         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Always test whether strtoimax is
27125         defined as a function.
27126         * modules/strtoimax (Depends-on, configure.ac): Test only whether
27127         strtoimax is defined, not whether it is declared.
27129 2011-09-01  Bruno Haible  <bruno@clisp.org>
27131         imaxdiv: Avoid link error on OSF/1 with DTK cc.
27132         * m4/imaxdiv.m4 (gl_FUNC_IMAXDIV): Also test whether imaxdiv is defined
27133         as a function.
27134         * modules/imaxdiv (configure.ac): Test whether imaxdiv is defined, not
27135         whether it is declared.
27137 2011-09-01  Bruno Haible  <bruno@clisp.org>
27139         imaxabs: Avoid link error on OSF/1 with DTK cc.
27140         * m4/imaxabs.m4 (gl_FUNC_IMAXABS): Also test whether imaxabs is defined
27141         as a function.
27142         * modules/imaxabs (configure.ac): Test whether imaxabs is defined, not
27143         whether it is declared.
27145 2011-09-01  Bruno Haible  <bruno@clisp.org>
27147         Tests for module 'strtoumax'.
27148         * modules/strtoumax-tests: New file.
27149         * tests/test-strtoumax.c: New file.
27151         Tests for module 'strtoimax'.
27152         * modules/strtoimax-tests: New file.
27153         * tests/test-strtoimax.c: New file.
27155         Tests for module 'imaxdiv'.
27156         * modules/imaxdiv-tests: New file.
27157         * tests/test-imaxdiv.c: New file.
27159         Tests for module 'imaxabs'.
27160         * modules/imaxabs-tests: New file.
27161         * tests/test-imaxabs.c: New file.
27163 2011-09-01  Bruno Haible  <bruno@clisp.org>
27165         pthread: Determine $(LIB_PTHREAD) correctly on IRIX 6.5.
27166         * m4/pthread.m4 (gl_PTHREAD_CHECK): Check for pthread_join, not
27167         pthread_create.
27169 2011-09-01  Paul Eggert  <eggert@cs.ucla.edu>
27171         openat: work around AIX 7.1 fstatat issue
27172         This should fix the problem that was not properly fixed
27173         in the previous change, dated 2011-08-30.
27174         * lib/fstatat.c: Include <sys/stat.h> twice, the first with
27175         __need_system_stat_h defined.
27176         (orig_fstatat) [HAVE_FSTATAT]: New function.
27177         (rpl_fstatat): Go back to the old way of doing things,
27178         except call orig_fstatat instead of fstatat.
27179         * m4/openat.m4 (gl_FUNC_FSTATAT): Remove unnecessary check for openat.
27180         Remove unnecessary check whether fstatat fills in st_size etc.
27182 2011-09-01  Bruno Haible  <bruno@clisp.org>
27184         sys_select: Avoid a syntax error regarding timespec_t on IRIX 6.5.
27185         * lib/sys_select.in.h [__sgi]: When included from <sys/bsd_types.h>,
27186         just include the system's header.
27188 2011-08-31  Jim Meyering  <meyering@redhat.com>
27190         tests: avoid spurious assertion failure in test-float.c on ppc64
27191         * tests/test-float.c (test_long_double): Comment out an assertion,
27192         LDBL_MIN_EXP <= DBL_MIN_EXP, that is failing at least on PowerPC-64
27193         with gcc-4.4.4.
27195         maint: indent with spaces, not TABs
27196         I need to get in the habit of running gnulib's "make check".
27197         Both of these would have been caught.
27198         * m4/largefile.m4: Indent with spaces, not TABs.
27199         * lib/parse-datetime.y (iso_8601_time): Likewise.
27200         Spotted by Pádraig Brady.
27202         test-parse-datetime.c: accommodate a relatively strict gcc warning
27203         * tests/test-parse-datetime.c (gmt_offset): Declare function "static",
27204         to avoid a warning from gcc's -Werror=missing-declarations.
27205         Insert a few spaces-before-funcall-parenthesis.
27207 2011-08-17  J.T. Conklin  <jtc@acorntoolworks.com>
27209         parse-datetime: accept ISO 8601 date and time rep with "T" separator
27210         The parser now accepts ISO 8601 date-time strings with "T" as the
27211         separator.  It has long parsed dates like "2004-02-29 16:21:42"
27212         with a space between the date and time strings.  Now it also parses
27213         "2004-02-29T16:21:42" and fractional-second and time-zone-annotated
27214         variants like "2004-02-29T16:21:42.333-07:00"
27215         * lib/parse-datetime.y: Parse ISO 8601 extended date and time
27216         of day representation using the 'T' separator character.
27217         * doc/parse-datetime.texi (General date syntax): replace use of
27218         deprecated --iso-8601 option with --rfc-3339 in example of date
27219         command output formats that can be parsed.
27220         * tests/test-parse-datetime.c (tm_diff): New function, taken from
27221         lib/parse-datetime.y.
27222         (gmt_offset): New function.
27223         (main): Add additional test cases to validate ISO8601 extended
27224         date and time of day parsing.
27226 2011-08-31  Bruno Haible  <bruno@clisp.org>
27228         freopen: Documentation.
27229         * doc/posix-functions/freopen.texi: Document the bug with the NULL file
27230         name.
27231         Reported by Claudio Bley <claudio.bley@gmail.com>.
27233 2011-08-31  Claudio Bley  <claudio.bley@gmail.com>  (tiny change)
27235         freopen: Don't crash if the filename argument is NULL.
27236         * lib/freopen.c (rpl_freopen): Don't compare the filename if it is
27237         NULL.
27239 2011-08-30  Paul Eggert  <eggert@cs.ucla.edu>
27241         openat: work around AIX 7.1 fstatat bug
27242         Problem reported by Kevin Brott for GNU tar, in the thread containing
27243         <http://lists.gnu.org/archive/html/bug-tar/2011-08/msg00015.html>.
27244         * lib/fstatat.c (rpl_fstatat): Do not invoke underlying fstatat if
27245         FSTATAT_ST_SIZE_ETC_BROKEN.
27246         (fstatat) [FSTATAT_ST_SIZE_ETC_BROKEN && HAVE_FSTATAT]: #define to
27247         rpl_fstatat.
27248         * m4/openat.m4 (gl_FUNC_FSTATAT): New macro, with the fstatat-relevant
27249         part of gl_FUNC_OPENAT.  Also, check for the AIX 7.1 bug, and use
27250         AC_CHECK_FUNCS_ONCE for fstatat.
27251         (gl_FUNC_OPENAT): Use it.  Use AC_CHECK_FUNCS_ONCE for
27252         fchmodat, mkdirat, openat and unlinkat.
27254 2011-08-30  Bruno Haible  <bruno@clisp.org>
27256         Avoid endless recursions if config.h includes some header files.
27257         * lib/fopen.c (__need_FILE): Define already before including config.h.
27258         * lib/freopen.c (__need_FILE): Likewise.
27259         * lib/open.c (__need_system_fcntl_h): Likewise.
27260         * lib/stat.c (__need_system_sys_stat_h): Likewise.
27261         * lib/lstat.c (__need_system_sys_stat_h): Likewise.
27262         Reported by Michael Goffioul <michael.goffioul@gmail.com>.
27264 2011-08-25  Karl Berry  <karl@gnu.org>
27266         * config/srclist.txt (ylwrap): new try.
27267         * build-aux/ylwrap: new file.
27269 2011-08-23  Bruno Haible  <bruno@clisp.org>
27271         tmpdir: Use a good default directory on native Windows.
27272         * lib/tmpdir.c: Include <windows.h>, pathmax.h.
27273         (P_tmpdir): Default to _P_tmpdir on native Windows.
27274         (path_search): On native Windows, try the value returned by GetTempPath
27275         before trying P_tmpdir.
27276         * modules/tmpdir (Depends-on): Add pathmax.
27277         Suggested by John Darrington <john@darrington.wattle.id.au>.
27279 2011-08-20  Reuben Thomas  <rrt@sc3d.org>
27281         doc: fix typo in README-release
27282         * top/README-release: Capitalize first word of a sentence.
27284 2011-08-19  Jim Meyering  <meyering@redhat.com>
27286         fts: do not exhaust memory when processing million-entry directories
27287         Before this change, traversing (via rm -rf, find, du, etc.) an N-entry
27288         directory would require about 256*N bytes of memory.  Thus, it was
27289         easy to construct a directory too large to be processed by any of
27290         those tools.  With this change, fts' maximum memory utilization is
27291         now limited to around 30MB.
27292         * lib/fts.c (FTS_MAX_READDIR_ENTRIES): Define.
27293         (fts_read): When we've processed the final entry (i.e., when
27294         ->fts_link is NULL) and fts_dirp is non-NULL, call fts_build
27295         using the parent entry to read any remaining entries.  Dispatch
27296         depending on what fts_build returns:
27297         - NULL+stop, aka failure: stop
27298         - NULL otherwise: move up in the dir hierarchy
27299         - non-NULL: handle this new entry
27300         (fts_build): Declare and use new local, continue_readdir.
27301         Prepare to be called from fts_read, when the entries
27302         from a partially-read directory have just been exhausted.
27303         In that case, we'll skip the opendir and instead use the parent's
27304         fts_dirp and derive dir_fd from that.
27305         Finally, in the readdir loop, if we read max_entries entries,
27306         exit the loop ensuring *not* to call closedir.  This is required
27307         so that fts_dirp can be reused on a subsequent call.
27308         Prompted by Ben England's report of memory exhaustion in find
27309         and rm -rf vs. NFS: https://bugzilla.redhat.com/719749.
27311         maint: fts: move decl of `dp' down into while loop; split a long line
27312         * lib/fts.c (fts_build): No semantic change.
27314         fts: add/use new struct member, fts_dirp
27315         We are about to use this to manage any directory with
27316         too many entries to read all of them into memory at once.
27317         To do that, we'll need to save the DIR* pointer in each
27318         affected FTSENT struct.
27319         * lib/fts_.h: Include <dirent.h>.
27320         (struct FTSENT) [fts_dirp]: New member.
27321         * lib/fts.c (closedir_and_clear): Define.
27322         Use it in place of closedir so that we are sure to
27323         clear the new fts_dirp member when done with it.
27324         (fts_alloc): Initialize the new member.
27325         (fts_lfree): Free, if needed.
27327         maint: fts: give __opendir2 a new parameter and rename
27328         * lib/fts.c (__opendir2): Give it a new parameter, Pdir_fd, rather
27329         than surreptitiously using sole caller's "dir_fd".
27330         (fts_opendir): Rename from __opendir2.
27332         maint: fts.c: remove __opendir2's now-unused parameter, oflag
27333         * lib/fts.c (__opendir2): Remove unused parameter, oflag.
27335         maint: fts.c: correct off-by-one indentation
27336         * lib/fts.c (fts_build): Correct indentation, change style
27337         of a couple of block comments, and bracing style.
27339         maint: fts.c: move __opendir2 #define "up" out of function body
27340         * lib/fts.c (__opendir2): Move "up".  No semantic change.
27342         maint: fts.c: remove #if-0'd FTS_WHITEOUT code
27343         * lib/fts.c: Remove #if-0'd FTS_WHITEOUT code.  It's been #if-0'd
27344         out for a long time and besides was useful only on BSD systems.
27346 2011-08-18  Paul Eggert  <eggert@cs.ucla.edu>
27348         regex: port to Stratus OpenVOS
27349         * lib/regex_internal.h (internal_function) [!_LIBC]: Simply
27350         define to empty, rather than attempting nonportable optimizations.
27351         Problem reported by Paul Green in:
27352         http://lists.gnu.org/archive/html/bug-diffutils/2011-08/msg00047.html
27353         and fix suggested by Eric Blake in:
27354         http://lists.gnu.org/archive/html/bug-gnulib/2011-08/msg00143.html
27356 2011-08-17  Eric Blake  <eblake@redhat.com>
27358         getcwd: fix test failures on mingw
27359         * lib/getcwd.c (__getcwd): Early exit for ERANGE.
27360         * tests/test-getcwd.c (test_abort_bug, test_long_name): Don't fail
27361         test if long directory cannot be created, and allow mingw errno.
27363         getcwd-lgpl: fix m4 to match relaxed test for BSD
27364         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Relax probe.
27365         (gl_FUNC_GETCWD_SIGNATURE): New macro.
27366         (gl_FUNC_GETCWD_LGPL, gl_FUNC_GETCWD): Use it.
27367         * doc/posix-functions/getcwd.texi (getcwd): Tweak mentions of
27368         signature problem.
27370         getcwd: fix compilation on mingw64
27371         * lib/unistd.in.h (includes) [mingw]: Include <direct.h> for
27372         getcwd.
27373         Reported by Marc-André Lureau.
27375         pipe2: silence compiler warning
27376         * lib/pipe2.c (pipe2): Hide label if it is not used.
27378 2011-08-15  Ben Pfaff  <blp@cs.stanford.edu>
27380         relocatable-prog: fix link error
27381         * modules/relocatable-prog (configure.ac) [RELOCATABLE]: Also
27382         invoke AC_LIBOBJ([relocatable]).  This invocation was previously
27383         in the gl_RELOCATABLE_LIBRARY macro.  That invocation was moved
27384         into modules/relocatable-lib without noticing that
27385         modules/relocatable-prog also invokes gl_RELOCATABLE_LIBRARY and
27386         also needs to build relocatable.c.
27388 2011-08-12  Paul Eggert  <eggert@cs.ucla.edu>
27390         getaddrinfo: fix sh typo in gai_strerrorA decl checking
27391         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Fix typo in the generated
27392         shell code: it contained a 'break' that was not in a loop.
27393         Apparently the macro assumed that AC_CHECK_DECLS is implemenented
27394         via a shell-language loop; this may have been true in old Autoconf
27395         versions, but it's not true in Autoconf 2.68.  I found this bug
27396         when testing coreutils git on Solaris 8, whose shell complains
27397         about the syntax error.
27399 2011-08-12  Simon Josefsson  <simon@josefsson.org>
27401         * lib/base64.c: Fix comment to reference RFC 4648.
27402         Suggested by Bruno Haible <bruno@clisp.org> and Gijs van Tulder
27403         <gvtulder@gmail.com>.
27405 2011-08-11  Paul Eggert  <eggert@cs.ucla.edu>
27407         * build-aux/bootstrap (slurp): Remove obsolescent gettext.m4 patch.
27409         po/Makefile.in.in: fix make -q problem
27410         * build-aux/po/Makefile.in.in (check-macro-version): Remove this
27411         rule, since there's no file named 'check-macro-version' and its
27412         use as a file breaks make -q.
27413         (all): Don't depend on check-macro-version.
27414         (CHECK_MACRO_VERSION): New macro.
27415         (stamp-po): Use it.
27417         configmake: fix make -q problem
27418         * modules/configmake (configmake.h): Update configmake.h's time stamp
27419         even if the file does not change.  Otherwise, 'make -q' fails.
27420         Problem reported by Simon Josefsson in
27421         <http://lists.gnu.org/archive/html/bug-gnulib/2011-08/msg00088.html>.
27423 2011-08-11  Jim Meyering  <meyering@redhat.com>
27425         git-version-gen: correct the advice in a comment
27426         * build-aux/git-version-gen: Correct comment.
27427         Don't recommend to list .tarball-version in .gitignore.
27429 2011-08-10  Paul Eggert  <eggert@cs.ucla.edu>
27431         base64: fix off-by-one buffer size bug
27432         Problem and (trivial) fix reported by Gijs van Tulder in
27433         <http://lists.gnu.org/archive/html/bug-gnulib/2011-08/msg00083.html>.
27434         * lib/base64.c (base64_decode_alloc_ctx): Allocate one more byte.
27435         * tests/test-base64.c (main): Catch the bug.
27437 2011-08-10  Eric Blake  <eblake@redhat.com>
27439         closein: correct comments
27440         * lib/closein.c (close_stdin): Improve comments.
27442 2011-08-09  Bruno Haible  <bruno@clisp.org>
27444         More tests for 'fseeko'.
27445         * tests/test-fseeko3.c: New file, from Eric Blake.
27446         * tests/test-fseeko3.sh: New file.
27447         * modules/fseeko-tests (Files): Add them.
27448         (TESTS): Add test-fseeko3.sh.
27449         (check_PROGRAMS): Add test-fseeko3.
27451 2011-08-09  Eric Blake  <eblake@redhat.com>
27453         fseeko: remove unneeded hack
27454         * lib/fseeko.c (fseeko): Don't special-case SEEK_END.
27456         fseeko: fix bug on glibc
27457         * lib/fseeko.c (fseeko): Set stream offset to match fd offset.
27458         Reported by John W. Eaton.
27460 2011-08-08  Bruno Haible  <bruno@clisp.org>
27462         unictype/base: Fix interoperability with preinstalled libunistring.
27463         * modules/unictype/base (configure.ac): Bump minimum version to 0.9.4.
27464         Reported by Simon Josefsson.
27466 2011-08-08  Bruno Haible  <bruno@clisp.org>
27468         iswblank: Detect declaration correctly.
27469         * m4/iswblank.m4 (gl_FUNC_ISWBLANK): Use correct headers in
27470         AC_CHECK_DECLS invocation.
27472 2011-08-08  Bruno Haible  <bruno@clisp.org>
27474         tcgetsid: Detect declaration correctly.
27475         * m4/tcgetsid.m4 (gl_FUNC_TCGETSID): Use correct headers in
27476         AC_CHECK_DECLS invocation.
27477         Reported by Simon Josefsson.
27479 2011-08-08  Eric Blake  <eblake@redhat.com>
27481         largefile: fix typo that regressed large file support
27482         * modules/largefile (configure.ac-early): Fix section name.
27484 2011-08-06  Karl Berry  <karl@gnu.org>
27486         * MODULES.html.sh (func_all_files): _Noreturn is no longer
27487         a separate module.
27489 2011-08-05  Simon Josefsson  <simon@josefsson.org>
27491         openat: Fix warnings and commens when building unlinkat.c on Hurd.
27492         * lib/unlinkat.c: Mention Hurd in comments.  Include stdlib.h to
27493         get prototype for free.
27495 2011-08-04  Bruno Haible  <bruno@clisp.org>
27497         Tests for module 'pathmax'.
27498         * modules/pathmax-tests: New file.
27499         * tests/test-pathmax.c: New file.
27501         canonicalize-lgpl: Support larger filenames on the Hurd.
27502         * lib/canonicalize-lgpl.c (__realpath): Bump path_max fallback to 8192.
27503         Reported by Paul Eggert.
27505         pathmax: Leave PATH_MAX undefined on the Hurd, and a constant otherwise.
27506         * lib/pathmax.h (PATH_MAX): Leave it undefined on GNU/Hurd.
27507         * lib/chdir-long.h: Include pathmax.h.
27508         * lib/clean-temp.c (PATH_MAX): Remove code that is done by pathmax.h.
27509         * lib/getcwd.c: Include pathmax.h instead of <limits.h>.
27510         (PATH_MAX): Remove code that is done by pathmax.h.
27511         * lib/canonicalize.c (PATH_MAX): Provide a fallback value.
27512         * lib/tmpfile.c: Add a comment.
27513         * m4/pathmax.m4 (gl_PATHMAX): Don't test for pathconf.
27514         * modules/chdir-long (Depends-on): Add pathmax.
27515         * modules/getcwd (Depends-on): Add pathmax.
27516         * tests/test-getcwd.c (test_abort_bug): Avoid syntax error when PATH_MAX
27517         is not defined.
27518         * doc/posix-headers/limits.texi: Mention the pathmax module.
27519         * NEWS: Mention the change.
27521 2011-08-02  Bruno Haible  <bruno@clisp.org>
27523         pthread_sigmask: Actually use results of gl_THREADLIB.
27524         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Test and require
27525         gl_THREADLIB, not gl_[]THREADLIB.
27526         Reported by Eric Blake.
27528 2011-08-02  Jim Meyering  <meyering@redhat.com>
27530         maint.mk: relax the default _gl_TS_function_match regexp
27531         * top/maint.mk (_gl_TS_function_match): Don't require at least one
27532         space between function name and "(" in an "extern" declaration.
27533         That would fail to match a decl with no space there: extern void foo();
27535 2011-07-31  Iain Nicol  <iain@thenicols.net>
27537         git-version-gen: document that EXTRA_DIST must include .version
27538         * build-aux/git-version-gen: In the how-to-use comment, document
27539         that EXTRA_DIST must include .version.  Otherwise, "make distcheck"
27540         will fail when run from an unpacked distribution tarball.
27542 2011-08-01  Bruno Haible  <bruno@clisp.org>
27544         wctype-h: Fix last change.
27545         * m4/wctype_h.m4 (gl_WCTYPE_H): If towlower is defined, set
27546         REPLACE_TOWLOWER to 0.
27547         Reported by Sam Steingold <sds@gnu.org>.
27549 2011-07-31  Bruno Haible  <bruno@clisp.org>
27551         frexpl: Update autoconf test.
27552         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Update overrides of <float.h>,
27553         according to changes of 2011-06-20.
27555 2011-07-31  Bruno Haible  <bruno@clisp.org>
27557         sys_utsname: Add support for Minix.
27558         * lib/sys_utsname.in.h [Minix]: Include <stddef.h> before
27559         <sys/utsname.h>.
27560         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
27561         * doc/posix-headers/sys_utsname.texi: Document the Minix problem.
27563 2011-07-31  Bruno Haible  <bruno@clisp.org>
27565         strings: Add support for Minix.
27566         * lib/strings.in.h [Minix]: Include <sys/types.h> before <strings.h>.
27567         * m4/strings_h.m4 (gl_HEADER_STRINGS_H_BODY): Likewise.
27568         * doc/posix-headers/strings.texi: Document the Minix problem.
27570 2011-07-31  Bruno Haible  <bruno@clisp.org>
27572         wctype-h: Add support for Minix.
27573         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether towlower is declared. Set
27574         REPLACE_TOWLOWER.
27575         * modules/wctype-h (Makefile.am): Substitute REPLACE_TOWLOWER.
27576         * lib/wctype.in.h (towlower, towupper): Test REPLACE_TOWLOWER, not
27577         REPLACE_ISWCNTRL.
27579 2011-07-31  Paul Eggert  <eggert@cs.ucla.edu>
27581         * lib/xalloc.h (DEFAULT_MXFAST): Track 64-bit glibc.
27582         This is a performance improvement for 64-bit hosts: it causes the
27583         value of DEFAULT_MXFAST to track what's in glibc on such hosts.
27585 2011-07-31  Bruno Haible  <bruno@clisp.org>
27587         stdioext: Add support for Minix.
27588         * lib/fbufmode.c (fbufmode) [__minix]: Add conditional code.
27589         * lib/fpurge.c (fpurge): Likewise.
27590         * lib/freadahead.c (freadahead): Likewise.
27591         * lib/freadable.c (freadable): Likewise.
27592         * lib/freading.c (freading): Likewise.
27593         * lib/freadptr.c (freadptr): Likewise.
27594         * lib/freadseek.c (freadptrinc): Likewise.
27595         * lib/fseeko.c (rpl_fseeko): Likewise.
27596         * lib/fseterr.c (fseterr): Likewise.
27597         * lib/fwritable.c (fwritable): Likewise.
27598         * lib/fwriting.c (fwriting): Likewise.
27599         * lib/fflush.c (clear_ungetc_buffer): Update comment.
27600         * m4/fpending.m4 (gl_PREREQ_FPENDING): Add a variant for Minix.
27602 2011-07-31  Bruno Haible  <bruno@clisp.org>
27604         errno: Port to Minix.
27605         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Test also whether ENETRESET and
27606         ECONNABORTED are defined.
27607         * lib/errno.in.h (ENETRESET, GNULIB_defined_ENETRESET, ECONNABORTED,
27608         GNULIB_defined_ECONNABORTED): New macros.
27609         * lib/strerror-override.h (strerror_override): Test also
27610         GNULIB_defined_ENETRESET, GNULIB_defined_ECONNABORTED.
27611         * lib/strerror-override.c (strerror_override): Handle also ENETRESET,
27612         ECONNABORTED.
27613         * doc/posix-headers/errno.texi: Mention the Minix problem.
27615 2011-07-31  Bruno Haible  <bruno@clisp.org>
27617         Work around declaration collisions on Minix.
27618         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): If mbsinit is declared but not
27619         defined, set REPLACE_MBSINIT.
27620         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): If mbrtowc is declared but not
27621         defined, set REPLACE_MBRTOWC.
27622         * m4/mbrlen.m4 (gl_FUNC_MBRLEN): If mbrlen is declared but not defined,
27623         set REPLACE_MBRLEN.
27624         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): If mbsrtowcs is declared but not
27625         defined, set REPLACE_MBSRTOWCS.
27626         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): If wcrtomb is declared but not
27627         defined, set REPLACE_WCRTOMB.
27628         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): If wcsrtombs is declared but not
27629         defined, set REPLACE_WCSRTOMBS.
27631 2011-07-31  Bruno Haible  <bruno@clisp.org>
27633         Add support for Minix with ACK compiler.
27634         * m4/gnulib-common.m4 (gl_PROG_AR_RANLIB): New macro.
27635         * gnulib-tool (func_import, func_create_testdir): Emit invocation of
27636         gl_PROG_AR_RANLIB instead of AC_PROG_RANLIB.
27638 2011-07-31  Bruno Haible  <bruno@clisp.org>
27640         Documentation about Minix.
27641         * doc/posix-headers/*.texi: Add info about Minix 3.1.8.
27642         * doc/glibc-headers/*.texi: Likewise.
27643         * doc/posix-functions/*.texi: Likewise.
27644         * doc/glibc-functions/*.texi: Likewise.
27646 2011-07-31  Bruno Haible  <bruno@clisp.org>
27648         snippet/warn-on-use: Fix indentation.
27649         * m4/warn-on-use.m4 (gl_WARN_ON_USE_PREPARE): Fix indentation.
27651 2011-07-25  Jim Meyering  <meyering@redhat.com>
27653         tests: test-update-copyright.sh: remove unnecessary "rm" commands
27654         * tests/test-update-copyright.sh: Remove unused rm -f $TMP.*.bak
27655         commands.
27657 2011-07-27  Jim Meyering  <meyering@redhat.com>
27659         maint.mk: avoid sc_prohibit_always-defined_macros failure in coreutils
27660         * top/maint.mk (gl_extract_significant_defines_): Now that
27661         SA_RESETHAND and SA_RESTART are #defined (albeit conditionally) in
27662         gnulib/lib/signal.in.h, and now that we recommend to
27663         define-if-undefined those two symbols in application code,
27664         we must filter them out of the "significant" list.
27665         This avoids a "make syntax-check" failure in coreutils.
27667 2011-07-26  Eric Blake  <eblake@redhat.com>
27669         warnings: add comments about previous patch
27670         * m4/absolute-header.m4: Document AS_VAR_PUSHDEF limitation.
27671         * m4/include_next.m4: Likewise.
27672         * m4/warn-on-use.m4: Likewise.
27673         * m4/warnings.m4: Likewise, and simplify use.
27674         Suggested by Stefano Lattarini.
27676         include-next, warnings: support older autoconf
27677         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): Use
27678         AS_VAR_PUSHDEF in a way that works with older autoconf.
27679         * m4/warnings.m4 (gl_WARN_ADD): Likewise.
27680         Reported by Daniel P. Berrange.
27682 2011-07-25  Bruno Haible  <bruno@clisp.org>
27684         fseek, ftell: Fix doc.
27685         * doc/posix-functions/fseek.texi: Reword statement about
27686         AC_SYS_LARGEFILE.
27687         * doc/posix-functions/ftell.texi: Likewise.
27689 2011-07-25  Paul Eggert  <eggert@cs.ucla.edu>
27690             Bruno Haible  <bruno@clisp.org>
27692         Add dependencies to the 'largefile' module.
27693         * modules/fopen (Depends-on): Add 'largefile'.
27694         * modules/freopen (Depends-on): Likewise.
27695         * modules/fseeko (Depends-on): Likewise.
27696         * modules/ftello (Depends-on): Likewise.
27697         * modules/glob (Depends-on): Likewise.
27698         * modules/lseek (Depends-on): Likewise.
27699         * modules/lstat (Depends-on): Likewise.
27700         * modules/mkostemp (Depends-on): Likewise.
27701         * modules/mkostemps (Depends-on): Likewise.
27702         * modules/mkstemp (Depends-on): Likewise.
27703         * modules/mkstemps (Depends-on): Likewise.
27704         * modules/open (Depends-on): Likewise.
27705         * modules/openat (Depends-on): Likewise.
27706         * modules/pread (Depends-on): Likewise.
27707         * modules/pwrite (Depends-on): Likewise.
27708         * modules/scandir (Depends-on): Likewise.
27709         * modules/stat (Depends-on): Likewise.
27710         * modules/tmpfile (Depends-on): Likewise.
27711         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Do not require AC_SYS_LARGEFILE,
27712         since the containing module now depends on the largefile module.
27713         * m4/tempname.m4 (gl_FUNC_GEN_TEMPNAME): Likewise.
27714         * doc/posix-functions/fopen.texi: Mention that the problem of 32-bit
27715         off_t is fixed by gnulib.
27716         * doc/posix-functions/freopen.texi: Likewise.
27717         * doc/posix-functions/fseeko.texi: Likewise.
27718         * doc/posix-functions/fstatat.texi: Likewise.
27719         * doc/posix-functions/ftello.texi: Likewise.
27720         * doc/posix-functions/glob.texi: Likewise.
27721         * doc/posix-functions/lseek.texi: Likewise.
27722         * doc/posix-functions/lstat.texi: Likewise.
27723         * doc/posix-functions/mkstemp.texi: Likewise.
27724         * doc/posix-functions/open.texi: Likewise.
27725         * doc/posix-functions/openat.texi: Likewise.
27726         * doc/posix-functions/pread.texi: Likewise.
27727         * doc/posix-functions/pwrite.texi: Likewise.
27728         * doc/posix-functions/scandir.texi: Likewise.
27729         * doc/posix-functions/stat.texi: Likewise.
27730         * doc/posix-functions/tmpfile.texi: Likewise.
27731         * doc/glibc-functions/mkostemp.texi: Likewise.
27732         * doc/glibc-functions/mkostemps.texi: Likewise.
27733         * doc/glibc-functions/mkstemps.texi: Likewise.
27735 2011-07-25  Bruno Haible  <bruno@clisp.org>
27737         fcntl: Move AC_LIBOBJ invocation to module description.
27738         * m4/fcntl.m4 (gl_REPLACE_FCNTL): Don't invoke AC_LIBOBJ.
27739         * modules/fcntl (configure.ac): Invoke AC_LIBOBJ.
27741         fcntl: Remove call-in from fchdir.m4.
27742         * m4/fcntl.m4 (gl_FUNC_FCNTL): Conditionally invoke gl_TEST_FCHDIR.
27743         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't invoke gl_REPLACE_FCNTL.
27745         dup3: Remove potential call-in from fchdir.m4.
27746         * m4/dup3.m4 (gl_FUNC_DUP3): Add comment about fchdir.
27747         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Remove comment about dup3.
27749         dup2: Move AC_LIBOBJ invocation to module description.
27750         * m4/dup2.m4 (gl_REPLACE_DUP2): Remove macro.
27751         (gl_FUNC_DUP2): Instead of gl_REPLACE_DUP2, just set REPLACE_DUP2 to 1.
27752         Don't invoke AC_LIBOBJ.
27753         * modules/dup2 (configure.ac): Invoke AC_LIBOBJ.
27755         dup2: Remove call-in from fchdir.m4.
27756         * m4/dup2.m4 (gl_FUNC_DUP2): Conditionally invoke gl_TEST_FCHDIR.
27757         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't invoke gl_REPLACE_DUP2.
27759         fclose: Move AC_LIBOBJ invocation to module description.
27760         * m4/fclose.m4 (gl_REPLACE_FCLOSE): Remove macro.
27761         (gl_FUNC_FCLOSE): Instead of gl_REPLACE_FCLOSE, just set REPLACE_FCLOSE
27762         to 1.
27763         * modules/fclose (configure.ac): Invoke AC_LIBOBJ.
27765         fclose: Remove call-in from close.m4.
27766         * m4/fclose.m4 (gl_FUNC_FCLOSE): Invoke gl_FUNC_CLOSE.
27767         * m4/close.m4 (gl_FUNC_CLOSE): Don't invoke gl_REPLACE_FCLOSE.
27769         close: Move AC_LIBOBJ invocation to module description.
27770         * m4/close.m4 (gl_REPLACE_CLOSE): Remove macro.
27771         (gl_FUNC_CLOSE): Instead of gl_REPLACE_CLOSE, just set REPLACE_CLOSE to
27772         1.
27773         * modules/close (configure.ac): Invoke AC_LIBOBJ.
27775         close: Remove call-in from fchdir.m4.
27776         * m4/close.m4 (gl_FUNC_CLOSE): Conditionally invoke gl_TEST_FCHDIR.
27777         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't invoke gl_REPLACE_CLOSE.
27779         open: Move AC_LIBOBJ invocation to module description.
27780         * m4/open.m4 (gl_REPLACE_OPEN): Remove macro.
27781         (gl_FUNC_OPEN): Instead of gl_REPLACE_OPEN, just set REPLACE_OPEN to 1.
27782         * modules/open (configure.ac): Invoke AC_LIBOBJ and gl_PREREQ_OPEN.
27784         open: Remove call-in from fchdir.m4.
27785         * m4/open.m4 (gl_FUNC_OPEN): Conditionally invoke gl_TEST_FCHDIR.
27786         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't invoke gl_REPLACE_OPEN.
27788         fchdir: Start to remove gl_REPLACE_* idiom.
27789         * m4/fchdir.m4 (gl_TEST_FCHDIR): New macro.
27790         (gl_FUNC_FCHDIR): Invoke it.
27792 2011-07-25  Paul Eggert  <eggert@cs.ucla.edu>
27794         * lib/ftell.c (ftell): Comment out cast.
27796         close: use gl_REPLACE_FCLOSE only if defined
27797         * m4/close.m4 (gl_REPLACE_CLOSE): Use gl_REPLACE_FCLOSE only if it
27798         is defined.  The close module doesn't depend on the fclose module
27799         any more, so gl_REPLACE_CLOSE's existence cannot be assumed.  See
27800         <http://lists.gnu.org/archive/html/bug-gnulib/2011-07/msg00392.html>.
27801         I reproduced the problem with "./gnulib-tool --test close sys_socket".
27803 2011-07-24  Jim Meyering  <meyering@redhat.com>
27805         test-select.h: avoid warning when using gcc's -Wmissing-declarations
27806         * tests/test-select.h (test_function): Declare as "static".
27808 2011-07-24  Bruno Haible  <bruno@clisp.org>
27810         doc: Mention the effects of AC_SYS_LARGEFILE.
27811         * doc/posix-functions/aio_cancel.texi: Mention the effects of AC_SYS_LARGEFILE
27812         on this function.
27813         * doc/posix-functions/aio_error.texi: Likewise.
27814         * doc/posix-functions/aio_fsync.texi: Likewise.
27815         * doc/posix-functions/aio_read.texi: Likewise.
27816         * doc/posix-functions/aio_return.texi: Likewise.
27817         * doc/posix-functions/aio_suspend.texi: Likewise.
27818         * doc/posix-functions/aio_write.texi: Likewise.
27819         * doc/posix-functions/fgetpos.texi: Likewise.
27820         * doc/posix-functions/fopen.texi: Likewise.
27821         * doc/posix-functions/freopen.texi: Likewise.
27822         * doc/posix-functions/fsetpos.texi: Likewise.
27823         * doc/posix-functions/fstatvfs.texi: Likewise.
27824         * doc/posix-functions/ftruncate.texi: Likewise.
27825         * doc/posix-functions/ftw.texi: Likewise.
27826         * doc/posix-functions/getrlimit.texi: Likewise.
27827         * doc/posix-functions/glob.texi: Likewise.
27828         * doc/posix-functions/lio_listio.texi: Likewise.
27829         * doc/posix-functions/lockf.texi: Likewise.
27830         * doc/posix-functions/mkstemp.texi: Likewise.
27831         * doc/posix-functions/mmap.texi: Likewise.
27832         * doc/posix-functions/nftw.texi: Likewise.
27833         * doc/posix-functions/openat.texi: Likewise.
27834         * doc/posix-functions/opendir.texi: Likewise.
27835         * doc/posix-functions/posix_fadvise.texi: Likewise.
27836         * doc/posix-functions/posix_fallocate.texi: Likewise.
27837         * doc/posix-functions/pread.texi: Likewise.
27838         * doc/posix-functions/pwrite.texi: Likewise.
27839         * doc/posix-functions/readdir.texi: Likewise.
27840         * doc/posix-functions/readdir_r.texi: Likewise.
27841         * doc/posix-functions/rewinddir.texi: Likewise.
27842         * doc/posix-functions/scandir.texi: Likewise.
27843         * doc/posix-functions/seekdir.texi: Likewise.
27844         * doc/posix-functions/setrlimit.texi: Likewise.
27845         * doc/posix-functions/statvfs.texi: Likewise.
27846         * doc/posix-functions/telldir.texi: Likewise.
27847         * doc/posix-functions/tmpfile.texi: Likewise.
27848         * doc/posix-functions/truncate.texi: Likewise.
27849         * doc/glibc-functions/fallocate.texi: Likewise.
27850         * doc/glibc-functions/fstatfs.texi: Likewise.
27851         * doc/glibc-functions/fts_children.texi: Likewise.
27852         * doc/glibc-functions/fts_read.texi: Likewise.
27853         * doc/glibc-functions/getdirentries.texi: Likewise.
27854         * doc/glibc-functions/mkostemp.texi: Likewise.
27855         * doc/glibc-functions/mkostemps.texi: Likewise.
27856         * doc/glibc-functions/mkstemps.texi: Likewise.
27857         * doc/glibc-functions/preadv.texi: Likewise.
27858         * doc/glibc-functions/pwritev.texi: Likewise.
27859         * doc/glibc-functions/sendfile.texi: Likewise.
27860         * doc/glibc-functions/statfs.texi: Likewise.
27862 2011-07-24  Bruno Haible  <bruno@clisp.org>
27864         doc: Fix typo.
27865         * doc/posix-functions/fstat.texi: Talk about fstat, not stat.
27867 2011-07-24  Bruno Haible  <bruno@clisp.org>
27869         doc: Mention fsusage.
27870         * doc/posix-functions/statvfs.texi: Mention the fsusage module.
27872 2011-07-24  Bruno Haible  <bruno@clisp.org>
27874         doc: Mention new glibc headers and functions.
27875         * doc/glibc-headers/gshadow.texi: New file.
27876         * doc/glibc-functions/endsgent.texi: New file.
27877         * doc/glibc-functions/fgetsgent.texi: New file.
27878         * doc/glibc-functions/fgetsgent_r.texi: New file.
27879         * doc/glibc-functions/getsgent.texi: New file.
27880         * doc/glibc-functions/getsgent_r.texi: New file.
27881         * doc/glibc-functions/getsgnam.texi: New file.
27882         * doc/glibc-functions/getsgnam_r.texi: New file.
27883         * doc/glibc-functions/putsgent.texi: New file.
27884         * doc/glibc-functions/setsgent.texi: New file.
27885         * doc/glibc-functions/sgetsgent.texi: New file.
27886         * doc/glibc-functions/sgetsgent_r.texi: New file.
27887         * doc/glibc-functions/malloc_info.texi: New file.
27888         * doc/glibc-functions/preadv.texi: New file.
27889         * doc/glibc-functions/pwritev.texi: New file.
27890         * doc/glibc-functions/register_printf_modifier.texi: New file.
27891         * doc/glibc-functions/register_printf_specifier.texi: New file.
27892         * doc/glibc-functions/register_printf_type.texi: New file.
27893         * doc/glibc-functions/pthread_attr_getaffinity_np.texi: New file.
27894         * doc/glibc-functions/pthread_attr_setaffinity_np.texi: New file.
27895         * doc/glibc-functions/pthread_getaffinity_np.texi: New file.
27896         * doc/glibc-functions/pthread_getname_np.texi: New file.
27897         * doc/glibc-functions/pthread_mutex_consistent_np.texi: New file.
27898         * doc/glibc-functions/pthread_mutexattr_getrobust_np.texi: New file.
27899         * doc/glibc-functions/pthread_mutexattr_setrobust_np.texi: New file.
27900         * doc/glibc-functions/pthread_setaffinity_np.texi: New file.
27901         * doc/glibc-functions/pthread_setname_np.texi: New file.
27902         * doc/glibc-functions/pthread_sigqueue.texi: New file.
27903         * doc/glibc-functions/pthread_timedjoin_np.texi: New file.
27904         * doc/glibc-functions/pthread_tryjoin_np.texi: New file.
27905         * doc/glibc-functions/qsort_r.texi: New file.
27906         * doc/glibc-functions/quick_exit.texi: New file.
27907         * doc/glibc-functions/syncfs.texi: New file.
27908         * doc/gnulib.texi: Include them.
27909         (Glibc gshadow.h, Glibc sys/uio.h): New sections.
27910         * doc/posix-functions/psiginfo.texi: Fix info about glibc version.
27911         * doc/posix-functions/pthread_mutex_consistent.texi: Likewise.
27912         * doc/posix-functions/pthread_mutexattr_getrobust.texi: Likewise.
27913         * doc/posix-functions/pthread_mutexattr_setrobust.texi: Likewise.
27914         * doc/glibc-functions/execvpe.texi: Likewise.
27916 2011-07-24  Paul Eggert  <eggert@cs.ucla.edu>
27918         ftell: don't include <unistd.h>
27919         * lib/ftell.c: Don't include <unistd.h>.  <stdio.h> is now
27920         guaranteed to define off_t, and the ftell module depends on the
27921         stdio module.
27923         ftell: do not assume wraparound signed arithmetic
27924         * lib/ftell.c: Include <limits.h>.
27925         (ftell): Don't assume wraparound signed arithmetic.
27927 2011-07-24  Bruno Haible  <bruno@clisp.org>
27929         close: No longer depend on module 'fclose'.
27930         * modules/close (Depends-on): Remove fclose.
27931         * NEWS: Mention the change.
27932         Suggested by Sam Steingold <sds@gnu.org>.
27934 2011-07-24  Bruno Haible  <bruno@clisp.org>
27936         fsusage: Enable large volume support on AIX >= 5.2.
27937         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): If 'struct statvfs64' has a
27938         larger f_blocks field than 'struct statvfs', define STAT_STATVFS64
27939         instead of STAT_STATVFS.
27940         * lib/fsusage.c (get_fs_usage) [STAT_STATVFS64]: Use statvfs64.
27942         fsusage: Restore previous behaviour on AIX, Cygwin, Interix.
27943         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Enforce a 64-bit struct statvfs
27944         f_blocks field only on MacOS X.
27946         fsusage: Support large volumes on glibc/Hurd, HP-UX, Solaris, MacOS X.
27947         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Require AC_SYS_LARGEFILE.
27948         * modules/fsusage (Depends-on): Add largefile.
27950 2011-07-24  Paul Eggert  <eggert@cs.ucla.edu>
27952         * README: Modernize discussion of signed integers.
27953         Assuming overflow wraparound is no longer safe.
27954         Mention ones' complement and signed magnitude.
27956 2011-07-22  Bruno Haible  <bruno@clisp.org>
27958         select tests, pselect tests: Refactor.
27959         * tests/test-select.h: New file, extracted from tests/test-select.c.
27960         (select_fn): New type.
27961         (test, do_select, do_select_nowait, do_select_wait, test_tty,
27962         test_connect_first, test_accept_first, test_pair, test_socket_pair,
27963         test_pipe): Add my_select argument.
27964         (test_function): Renamed from main. Add my_select argument.
27965         * tests/test-select.c: Move most code to tests/test-select.h. Include
27966         test-select.h.
27967         * modules/select-tests (Files): Add tests/test-select.h.
27968         * tests/test-pselect.c: Include test-select.h instead of test-select.c.
27969         (my_select, main): New functions.
27970         * modules/pselect-tests (Files): Add tests/test-select.h,
27971         tests/macros.h, tests/signature.h.
27972         (Depends-on): Remove select-tests. Add dependencies of test-select.h.
27973         (configure.ac): Check for <sys/wait.h>.
27975 2011-07-22  Bruno Haible  <bruno@clisp.org>
27977         sys_select tests: Check the signature of FD_*.
27978         * tests/test-select.c (FD_CLR, FD_ISSET, FD_SET, FD_ZERO): Move
27979         signature tests from here...
27980         * tests/test-sys_select.c (FD_CLR, FD_ISSET, FD_SET, FD_ZERO): ... to
27981         here.
27982         * modules/sys_select-tests (Files): Add tests/signature.h.
27984 2011-07-22  Paul Eggert  <eggert@cs.ucla.edu>
27986         largefile: new module, replacing large-inode
27987         Pádraig Brady suggested this in <http://debbugs.gnu.org/9140#20>.
27988         * MODULES.html.sh: Add largefile, remove large-inode.
27989         * modules/largefile, m4/largefile.m4: New files.
27990         * modules/large-inode, m4/large-inode.m4: Remove.
27992         fsusage: port to MacOS X 10.7 with 4 TiB file systems
27993         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Reject statvfs
27994         implementations that use only 32 bits to count blocks.
27995         On typical hosts with 1024-byte blocks, this fails with file
27996         systems as small as 4 TiB.  Problem reported by Herb Wartens
27997         <http://debbugs.gnu.org/9140> and this should also fix a similar
27998         problem reported by Tim Spriggs <http://debbugs.gnu.org/7355>.
28000         large-inode: New module
28001         * MODULES.html.sh: Add it.
28002         * modules/large-inode, m4/large-inode.m4: New files.
28004         extensions: Enable extensions on MacOS X 10.5 and later.
28005         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Define _DARWIN_C_SOURCE.
28007 2011-07-22  Kamil Dudka  <kdudka@redhat.com>
28009         file-has-acl: use acl_extended_file_nofollow if available
28010         * lib/acl-internal.h (HAVE_ACL_EXTENDED_FILE): New macro.
28011         (acl_extended_file): New macro.
28012         * lib/file-has-acl.c (file_has_acl): Use acl_extended_file_nofollow.
28013         * m4/acl.m4 (gl_FUNC_ACL): Check for acl_extended_file_nofollow.
28015 2011-07-21  Bruno Haible  <bruno@clisp.org>
28017         Declare system functions in a way that works with C++.
28018         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR) [C++]: In the test program,
28019         declare fdopendir as extern "C".
28020         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS) [C++]: In the test program,
28021         declare frexpl as extern "C".
28022         * m4/getaddrinfo.m4 (gl_GETADDRINFO) [C++]: In the test program,
28023         declare gai_strerror as extern "C".
28024         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME) [C++]: In the test
28025         programs, declare gai_strerror as extern "C".
28026         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R) [C++]: In the test program,
28027         declare getlogin_r as extern "C".
28028         * m4/ioctl.m4 (gl_FUNC_IOCTL) [C++]: In the test program, declare ioctl
28029         as extern "C".
28030         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS) [C++]: In the test program,
28031         declare ldexpl as extern "C".
28032         * m4/logb.m4 (gl_FUNC_LOGB) [C++]: In the test programs, declare logb
28033         as extern "C".
28034         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS) [C++]: In the test
28035         program, declare getmntinfo as extern "C".
28036         * m4/stpncpy.m4 (gl_FUNC_STPNCPY) [C++]: In the test program, declare
28037         stpncpy as extern "C".
28038         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R_WORKS) [C++]: In the test
28039         program, declare __xpg_strerror_r as extern "C".
28040         * m4/strndup.m4 (gl_FUNC_STRNDUP) [C++]: In the test program, declare
28041         strndup as extern "C".
28042         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT) [C++]: In the test program,
28043         declare memset and bzero as extern "C".
28044         Reported by Sam Steingold <sds@gnu.org>.
28046 2011-07-12  Jim Meyering  <meyering@redhat.com>
28048         maint.mk: prohibit inclusion of "verify.h" without use
28049         * top/maint.mk (sc_prohibit_verify_without_use): New rule.
28051 2011-07-19  Pádraig Brady  <P@draigBrady.com>
28053         timer-time: A new module to check for timer_settime()
28054         * m4/timer_time.m4: Check for the posix function.
28055         * modules/timer-time: Add the new module.
28056         * MODULES.html.sh (Compat checks for POSIX:2008 functions):
28057         Mention it.
28059 2011-07-19  Paul Eggert  <eggert@cs.ucla.edu>
28060             Bruno Haible  <bruno@clisp.org>
28062         pthread_sigmask: assume POSIX threads if --avoid=threadlib
28063         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): If gl_THREADLIB is
28064         not defined, assume POSIX threads and look for pthread_sigmask in
28065         $LIBS, without changing $CPPFLAGS.
28067 2011-07-19  Bruno Haible  <bruno@clisp.org>
28069         strstr: Update cross-compilation guess.
28070         * m4/strstr.m4 (gl_FUNC_STRSTR): On glibc > 2.12 with x86 or x86_64
28071         CPUs, guess no, in view of glibc
28072         BZ #12100 <http://sourceware.org/bugzilla/show_bug.cgi?id=12100>.
28073         Suggested by Eric Blake. Reported by Reuben Thomas.
28075 2011-07-19  Pádraig Brady  <P@draigBrady.com>
28077         getopt-gnu: suppress core dumps from detection code
28078         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Use the nocrash module
28079         to suppress core dumps that may well occur on glibc systems.
28080         * modules/getopt-gnu: Depend on nocrash.
28082 2011-07-16  Paul Eggert  <eggert@cs.ucla.edu>
28084         pthread_sigmask: ensure usleep is declared
28085         * lib/pthread_sigmask.c [PTHREAD_SIGMASK_UNBLOCK_BUG]:
28086         Include <unistd.h>, to declare usleep.  Needed on Solaris 8,
28088 2011-07-15  Paul Eggert  <eggert@cs.ucla.edu>
28090         doc: Document NonStop portability issues.
28091         * doc/posix-functions/sigaction.texi (sigaction):
28092         * doc/posix-headers/signal.texi (signal.h):
28093         Document NonStop.  See Joachim Schmitz in
28094         http://lists.gnu.org/archive/html/bug-coreutils/2011-07/msg00062.html
28096 2011-07-15  Bruno Haible  <bruno@clisp.org>
28098         ffsl, ffsll: Avoid unportable behaviour.
28099         * lib/ffsl.h (FUNC): Use 'unsigned int' instead of 'int'.
28101 2011-07-15  Bruno Haible  <bruno@clisp.org>
28103         ffs: More tests.
28104         * tests/test-ffs.c (NBITS): New macro.
28105         (main): Add more tests.
28106         * tests/test-ffsl.c (NBITS): New macro.
28107         (main): Add more tests.
28108         * tests/test-ffsll.c (NBITS): New macro.
28109         (main): Add more tests.
28111 2011-07-15  Eric Blake  <eblake@redhat.com>
28113         ffsl, ffsll: new modules
28114         * modules/ffsl: New file.
28115         * modules/ffsll: Likewise.
28116         * m4/ffsl.m4: Likewise.
28117         * m4/ffsll.m4: Likewise.
28118         * lib/ffsl.c: Likewise.
28119         * lib/ffsl.h: Likewise.
28120         * lib/ffsll.c: Likewise.
28121         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY)
28122         (gl_HEADER_STRING_H_DEFAULTS): Add defaults.
28123         * modules/string (Makefile.am): Substitute witnesses.
28124         * lib/strings.in.h (ffsl, ffsll): Declare.
28125         * modules/ffsl-tests: New test file.
28126         * modules/ffsll-tests: Likewise.
28127         * tests/test-ffsl.c: Likewise.
28128         * tests/test-ffsll.c: Likewise.
28129         * MODULES.html.sh (Integer arithmetic functions): Mention it.
28130         * doc/glibc-functions/ffsl.texi (ffsl): Likewise.
28131         * doc/glibc-functions/ffsll.texi (ffsll): Likewise.
28133         ffs: fix m4 prerequisite
28134         * m4/ffs.m4 (gl_FUNC_FFS): Require strings.h defaults.
28136         ffs: avoid undefined behavior
28137         * lib/ffs.c (ffs): Provide fallback for non-32-bit int.
28138         * tests/test-ffs.c (naive, main): Avoid signed shifts.
28139         Reported by Bruno Haible.
28141 2011-07-12  Bruno Haible  <bruno@clisp.org>
28143         pthread_sigmask: Rely on module 'threadlib'.
28144         * modules/pthread_sigmask (Depends-on): Add threadlib.
28145         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Assume gl_THREADLIB
28146         is defined.
28148 2011-07-12  Bruno Haible  <bruno@clisp.org>
28150         regex: Depend on module 'strcase'.
28151         * modules/regex (Depends-on): Add strcase, for strcasecmp().
28153 2011-07-12  Jim Meyering  <meyering@redhat.com>
28155         warn-on-use: fix typo in file name
28156         * modules/snippet/warn-on-use (Files): Correct file name:
28157         include /snippet/ component in "build-aux/snippet/warn-on-use.h".
28159 2011-07-12  Bruno Haible  <bruno@clisp.org>
28161         strings: Document module.
28162         * doc/posix-headers/strings.texi: Mention module 'strings'.
28164 2011-07-12  Bruno Haible  <bruno@clisp.org>
28166         Rename module '_Noreturn' to 'snippet/_Noreturn'.
28167         * modules/snippet/_Noreturn: Renamed from modules/_Noreturn.
28168         (Files, Makefile.am): Update.
28169         * build-aux/snippet/_Noreturn.h: Renamed from build-aux/_Noreturn.h.
28170         * modules/stdlib (Depends-on): Update.
28172 2011-07-12  Bruno Haible  <bruno@clisp.org>
28174         * NEWS: Mention the changes.
28176         Rename module 'warn-on-use' to 'snippet/warn-on-use'.
28177         * modules/snippet/warn-on-use: Renamed from modules/warn-on-use.
28178         (Files, Makefile.am): Update.
28179         * build-aux/snippet/warn-on-use.h: Renamed from build-aux/warn-on-use.h.
28180         * modules/arpa_inet (Depends-on): Update.
28181         * modules/ctype (Depends-on): Update.
28182         * modules/dirent (Depends-on): Update.
28183         * modules/fcntl-h (Depends-on): Update.
28184         * modules/glob (Depends-on): Update.
28185         * modules/iconv-h (Depends-on): Update.
28186         * modules/inttypes-incomplete (Depends-on): Update.
28187         * modules/langinfo (Depends-on): Update.
28188         * modules/locale (Depends-on): Update.
28189         * modules/math (Depends-on): Update.
28190         * modules/netdb (Depends-on): Update.
28191         * modules/poll-h (Depends-on): Update.
28192         * modules/pty (Depends-on): Update.
28193         * modules/search (Depends-on): Update.
28194         * modules/signal (Depends-on): Update.
28195         * modules/spawn (Depends-on): Update.
28196         * modules/stdio (Depends-on): Update.
28197         * modules/stdlib (Depends-on): Update.
28198         * modules/string (Depends-on): Update.
28199         * modules/strings (Depends-on): Update.
28200         * modules/sys_file (Depends-on): Update.
28201         * modules/sys_ioctl (Depends-on): Update.
28202         * modules/sys_select (Depends-on): Update.
28203         * modules/sys_socket (Depends-on): Update.
28204         * modules/sys_stat (Depends-on): Update.
28205         * modules/sys_time (Depends-on): Update.
28206         * modules/sys_times (Depends-on): Update.
28207         * modules/sys_utsname (Depends-on): Update.
28208         * modules/sys_wait (Depends-on): Update.
28209         * modules/termios (Depends-on): Update.
28210         * modules/time (Depends-on): Update.
28211         * modules/unistd (Depends-on): Update.
28212         * modules/wchar (Depends-on): Update.
28213         * modules/wctype-h (Depends-on): Update.
28214         * MODULES.html.sh (Support for building libraries and executables):
28215         Update.
28217         Rename module 'unused-parameter' to 'snippet/unused-parameter'.
28218         * modules/snippet/unused-parameter: Renamed from
28219         modules/unused-parameter.
28220         (Files, Makefile.am): Update.
28221         * build-aux/snippet/unused-parameter.h: Renamed from
28222         build-aux/unused-parameter.h.
28223         * modules/selinux-h (Depends-on): Update.
28224         * modules/unistr/base (Depends-on): Update.
28225         * MODULES.html.sh (Core language properties): Update.
28227         Rename module 'link-warning' to 'snippet/link-warning'.
28228         * modules/snippet/link-warning: Renamed from modules/link-warning.
28229         (Files, Makefile.am): Update.
28230         * build-aux/snippet/link-warning.h: Renamed from
28231         build-aux/link-warning.h.
28232         * MODULES.html.sh (Support for building libraries and executables):
28233         Update.
28235         Rename module 'c++defs' to 'snippet/c++defs'.
28236         * modules/snippet/c++defs: Renamed from modules/c++defs.
28237         (Files, Makefile.am): Update.
28238         * build-aux/snippet/c++defs.h: Renamed from build-aux/c++defs.h.
28239         * modules/arpa_inet (Depends-on): Update.
28240         * modules/ctype (Depends-on): Update.
28241         * modules/dirent (Depends-on): Update.
28242         * modules/fcntl-h (Depends-on): Update.
28243         * modules/glob (Depends-on): Update.
28244         * modules/iconv-h (Depends-on): Update.
28245         * modules/langinfo (Depends-on): Update.
28246         * modules/locale (Depends-on): Update.
28247         * modules/math (Depends-on): Update.
28248         * modules/netdb (Depends-on): Update.
28249         * modules/poll-h (Depends-on): Update.
28250         * modules/pty (Depends-on): Update.
28251         * modules/search (Depends-on): Update.
28252         * modules/signal (Depends-on): Update.
28253         * modules/spawn (Depends-on): Update.
28254         * modules/stdio (Depends-on): Update.
28255         * modules/stdlib (Depends-on): Update.
28256         * modules/string (Depends-on): Update.
28257         * modules/strings (Depends-on): Update.
28258         * modules/sys_ioctl (Depends-on): Update.
28259         * modules/sys_select (Depends-on): Update.
28260         * modules/sys_socket (Depends-on): Update.
28261         * modules/sys_stat (Depends-on): Update.
28262         * modules/sys_time (Depends-on): Update.
28263         * modules/sys_wait (Depends-on): Update.
28264         * modules/termios (Depends-on): Update.
28265         * modules/time (Depends-on): Update.
28266         * modules/unistd (Depends-on): Update.
28267         * modules/wchar (Depends-on): Update.
28268         * modules/wctype-h (Depends-on): Update.
28270         Rename module 'arg-nonnull' to 'snippet/arg-nonnull'.
28271         * modules/snippet/arg-nonnull: Renamed from modules/arg-nonnull.
28272         (Files, Makefile.am): Update.
28273         * build-aux/snippet/arg-nonnull.h: Renamed from build-aux/arg-nonnull.h.
28274         * modules/argv-iter (Depends-on): Update.
28275         * modules/arpa_inet (Depends-on): Update.
28276         * modules/dirent (Depends-on): Update.
28277         * modules/fcntl-h (Depends-on): Update.
28278         * modules/fnmatch (Depends-on): Update.
28279         * modules/getopt-posix (Depends-on): Update.
28280         * modules/glob (Depends-on): Update.
28281         * modules/iconv-h (Depends-on): Update.
28282         * modules/inttypes-incomplete (Depends-on): Update.
28283         * modules/locale (Depends-on): Update.
28284         * modules/math (Depends-on): Update.
28285         * modules/netdb (Depends-on): Update.
28286         * modules/search (Depends-on): Update.
28287         * modules/signal (Depends-on): Update.
28288         * modules/spawn (Depends-on): Update.
28289         * modules/stdio (Depends-on): Update.
28290         * modules/stdlib (Depends-on): Update.
28291         * modules/string (Depends-on): Update.
28292         * modules/strings (Depends-on): Update.
28293         * modules/sys_socket (Depends-on): Update.
28294         * modules/sys_stat (Depends-on): Update.
28295         * modules/sys_time (Depends-on): Update.
28296         * modules/sys_times (Depends-on): Update.
28297         * modules/sys_utsname (Depends-on): Update.
28298         * modules/time (Depends-on): Update.
28299         * modules/unistd (Depends-on): Update.
28300         * modules/wchar (Depends-on): Update.
28301         * MODULES.html.sh (Support for building libraries and executables):
28302         Update.
28304 2011-07-12  Paul Eggert  <eggert@cs.ucla.edu>
28306         Improvements on _Noreturn and related modules.
28308         modules/_Exit-tests: test _Noreturn too
28309         * tests/test-_Exit.c (MTA, Charlie): New functions, taken from the
28310         old tests/test-stdnoreturn.c.  This tests the _Noreturn keyword a bit.
28311         (main): Use them.
28313         stdnoreturn, stdnoreturn-tests: remove modules
28314         They're not needed here and a bit premature for use elsewhere.  See
28315         <http://lists.gnu.org/archive/html/bug-gnulib/2011-07/msg00209.html>.
28316         * m4/stdnoreturn.m4, modules/stdnoreturn, modules/stdnoreturn-tests:
28317         * tests/test-stdnoreturn.c: Remove files.
28318         * MODULES.html.sh (_Noreturn <stdnoreturn.h>): Remove section.
28319         * lib/openat.h, lib/sigpipe-die.h, lib/xalloc.h, lib/xmemdup0.h:
28320         * lib/xstrtol.h: Use _Noreturn rather than including <stdnoreturn.h>
28321         and using noreturn.
28322         * modules/openat, modules/sigpipe-die, modules/xalloc:
28323         * modules/xmemdup0, modules/xstrtol:
28324         Remove dependency on stdnoreturn.
28326         _Noreturn: Ignore __STDC_VERSION__; observe _MSC_VER.
28327         * build-aux/_Noreturn.h (_Noreturn): Ignore __STDC_VERSION__.
28328         Reparenthesize to avoid GCC warning.
28329         Support Microsoft's syntax.
28330         * m4/gnulib-common.m4 (gl_COMMON_BODY): Likewise.
28332         _Noreturn-tests: remove module
28333         * modules/_Noreturn-tests: Remove.
28334         * modules/stdnoreturn-tests (Files): Remove tests/test-_Noreturn.c.
28335         * tests/test-_Noreturn.c: Remove.
28336         * tests/test-stdnoreturn.c: Merge from the old
28337         tests/test-_Noreturn.c, testing both noreturn and _Noreturn.
28339 2011-07-12  Paul Eggert  <eggert@cs.ucla.edu>
28341         _Noreturn, stdnoreturn, and related modules.
28343         * top/maint.mk: Adjust to new noreturn support.
28344         (gl_extract_significant_defines_): Omit pattern ATTRIBUTE_NORETURN.
28345         (def_sym_regex): Do not remove ATTRIBUTE_NORETURN.
28347         xalloc: use stdnoreturn.h
28348         * lib/xalloc.h: Include <stdnoreturn.h>.
28349         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
28350         * modules/xalloc (Depends-on): Add stdnoreturn.
28352         xstrtol: use stdnoreturn.h
28353         * lib/xstrtol.h: Include <stdnoreturn.h>.
28354         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
28355         * modules/xstrtol (Depends-on): Add stdnoreturn.
28357         xmemdup0: use stdnoreturn.h
28358         * lib/xmemdup0.h: Include <stdnoreturn.h>.
28359         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
28360         * modules/xmemdup0 (Depends-on): Add stdnoreturn.
28362         sigpipe-die: use stdnoreturn.h
28363         * lib/sigpipe-die.h: Include <stdnoreturn.h>.
28364         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
28365         * modules/sigpipe-die (Depends-on): Add stdnoreturn.
28367         openat: use stdnoreturn.h
28368         * lib/openat.h: Include <stdnoreturn.h>.
28369         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
28370         * modules/openat (Depends-on): Add stdnoreturn.
28372         * lib/openat-die.c (openat_save_fail): Modernize comment.
28374         * lib/xalloc-die.c (xalloc_die): Modernize comment.
28376         * lib/glthread/thread.h: Modernize comment.
28378         obstack: use _Noreturn
28379         * lib/obstack.c (__attribute__): Remove macro.
28380         (print_and_abort): Use _Noreturn.
28382         c-stack: use _Noreturn
28383         * lib/c-stack.c (die, overflow_handler, segv_handler):
28384         Use _Noreturn rather than __attribute__((noreturn)).
28386         argmatch-tests, exclude_tests: use _Noreturn
28387         * tests/test-argmatch.c, tests/test-exclude.c (_GL_ATTRIBUTE_NORETURN):
28388         Remove.
28389         (ARGMATCH_DIE_DECL): Use _Noreturn instead.
28391         stdlib: use _Noreturn
28392         * lib/stdlib.in.h (_GL_ATTRIBUTE_NORETURN): Remove.
28393         (_Exit): Use _Noreturn rather than _GL_ATTRIBUTE_NORETURN.
28394         * modules/stdlib (Depends-on): Add _Noreturn.
28395         (stdlib.h): Depend on $(_NORETURN_H), and copy it in.
28397         stdnoreturn-tests: new module
28398         * modules/stdnoreturn-tests, tests/test-stdnoreturn.c: New files.
28400         stdnoreturn: new module
28401         * MODULES.html.sh (Noreturn <stdnoreturn.h>): New section.
28402         * m4/stdnoreturn.m4, modules/stdnoreturn: New files.
28404         _Noreturn-tests: new module
28405         * modules/_Noreturn-tests, tests/test-_Noreturn.c: New files.
28407         _Noreturn: new module
28408         * MODULES.html.sh (Support for systems lacking draft ISO C 1X):
28409         New section, mentioning it.
28410         * build-aux/_Noreturn.h, modules/_Noreturn: New files.
28412         * m4/gnulib-common.m4 (gl_COMMON_BODY): Add _Noreturn.
28414 2011-07-11  Eric Blake  <eblake@redhat.com>
28416         ffs: new module
28417         * modules/ffs: New file.
28418         * m4/ffs.m4: Likewise.
28419         * lib/ffs.c: Likewise.
28420         * m4/strings_h.m4 (gl_HEADER_STRINGS_H_DEFAULTS): Add default.
28421         * modules/strings (Makefile.am): Substitute witness.
28422         (Depends-on): Add c++defs.
28423         * lib/strings.in.h (ffs): Declare.
28424         * modules/ffs-tests: New test file.
28425         * tests/test-ffs.c: Test new module.
28426         * MODULES.html.sh (Integer arithmetic functions): Mention it.
28427         * doc/posix-functions/ffs.texi (ffs): Likewise.
28429         regex: avoid compiler warning
28430         * lib/regex.c (includes): Include <strings.h>, for use of
28431         strcasecmp in regcomp.c.
28432         Reported by Joachim Schmitz.
28434 2011-07-09  Paul Eggert  <eggert@cs.ucla.edu>
28436         stdint: respect system's intmax_t if INTMAX_MAX
28437         * lib/stdint.in.h (intmax_t, uintmax_t): If the system defines
28438         INTMAX_MAX, assume its intmax_t is OK.  Similarly for and
28439         uintmax_t.  This is for some Mac OS X builds, where intmax_t is
28440         long but int64_t is long long, and where we will clash with the
28441         system intmax_t if we override it.  See
28442         <http://lists.gnu.org/archive/html/bug-gnulib/2011-07/msg00160.html>.
28443         (INTMAX_C, UINTMAX_C): For consistency, respect the system's
28444         INTMAX_C if INTMAX_MAX and INTMAX_C are both defined, and
28445         similarly for UINTMAX_C.
28447 2011-07-08  Bruno Haible  <bruno@clisp.org>
28449         pthread_sigmask tests: Avoid a compiler warning.
28450         * tests/test-pthread_sigmask1.c (main): Complain if system() returns
28451         non-zero.
28453         sigprocmask tests: A better way to avoid a compiler warning.
28454         * tests/test-sigprocmask.c: Don't include "ignore-value.h".
28455         (main): Complain if system() returns non-zero.
28456         * modules/sigprocmask-tests (Depends-on): Remove ignore-value.
28458 2011-07-08  Bruno Haible  <bruno@clisp.org>
28460         pthread_sigmask: Work around IRIX bug.
28461         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Test for the IRIX
28462         bug.
28463         * lib/pthread_sigmask.c (pthread_sigmask): usleep for some time when
28464         there may be unblocked pending signals.
28465         * doc/posix-functions/pthread_sigmask.texi: Mention the IRIX bug.
28467 2011-07-08  Bruno Haible  <bruno@clisp.org>
28469         pthread_sigmask: Work around Cygwin bug.
28470         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Test for the Cygwin
28471         bug.
28472         * lib/pthread_sigmask.c (pthread_sigmask): Fix the return value from
28473         the system's pthread_sigmask function.
28474         * doc/posix-functions/pthread_sigmask.texi: Mention the Cygwin bug.
28476 2011-07-08  Bruno Haible  <bruno@clisp.org>
28478         pthread_sigmask: Work around bug in single-threaded implementation.
28479         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Test for the
28480         FreeBSD, HP-UX, Solaris bug.
28481         (gl_PREREQ_PTHREAD_SIGMASK): New macro.
28482         * lib/pthread_sigmask.c: Include <stddef.h>.
28483         (pthread_sigmask): If HAVE_PTHREAD_SIGMASK, define as a wrapper around
28484         the system's pthread_sigmask function.
28485         * modules/pthread_sigmask (configure.ac): Invoke
28486         gl_PREREQ_PTHREAD_SIGMASK.
28487         * doc/posix-functions/pthread_sigmask.texi: Mention bug on FreeBSD,
28488         HP-UX, Solaris.
28490 2011-07-08  Eric Blake  <eblake@redhat.com>
28492         test-sigprocmask: avoid compiler warning
28493         * modules/sigprocmask-tests (Depends-on): Add ignore-value.
28494         * tests/test-sigprocmask.c (main): Use it to silence warning.
28495         Reported by Jim Meyering.
28497         test-snprintf: avoid compiler warning
28498         * tests/test-snprintf.c (main): Avoid shadowed declaration.
28499         * tests/test-vsnprintf.c (main): Likewise.
28500         Reported by Jim Meyering.
28502 2011-07-08  Bruno Haible  <bruno@clisp.org>
28504         Tests for module 'pthread_sigmask'.
28505         * modules/pthread_sigmask-tests: New file.
28506         * tests/test-pthread_sigmask1.c: New file, based on
28507         tests/test-sigprocmask.c.
28508         * tests/test-pthread_sigmask2.c: New file.
28510 2011-07-08  Jim Meyering  <meyering@redhat.com>
28512         test-getopt.h: avoid warning about an unused variable
28513         * tests/test-getopt.h (test_getopt): Remove unused variable, "c".
28515 2011-07-07  Jim Meyering  <meyering@redhat.com>
28517         maint: reduce list of files exempt from sc_prohibit_leading_TABs
28518         * Makefile (sc_prohibit_leading_TABs): Don't exempt m4/po.m4,
28519         now that it no longer contains leading TABs.
28520         Remove unused "url=FIXME" statement.
28522 2011-07-08  Paul Eggert  <eggert@cs.ucla.edu>
28524         pthread_sigmask: Assume POSIX when not gl_THREADLIB.
28525         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK):
28526         When gl_THREADLIB is not in use, assume that the POSIX sematics
28527         are desired.  This is better for Emacs, which uses POSIX semantics
28528         on GNUish and/or POSIXish platforms, and does not use threads at
28529         all otherwise.
28531         pthread_sigmask: fix typo when testing for libraries
28532         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK):
28533         AC_LINK_IFELSE, not AC_COMPILE_IFELSE.
28535 2011-07-08  Eric Blake  <eblake@redhat.com>
28537         fts: introduce FTS_NOATIME
28538         * lib/fts_.h (FTS_NOATIME): New bit flag.
28539         (FTS_OPTIONMASK): Adjust.
28540         * lib/fts.c (diropen, fts_open, fts_build): Honor it.
28541         (fd_ring_check): Debug code unconditionally uses O_NOATIME.
28543 2011-07-08  Bruno Haible  <bruno@clisp.org>
28545         Tests for module 'thread'.
28546         * modules/thread-tests: New file.
28547         * tests/test-thread_self.c: New file.
28548         * tests/test-thread_create.cc: New file.
28550 2011-07-08  Bruno Haible  <bruno@clisp.org>
28552         thread: Avoid gcc warnings when using gl_thread_self().
28553         * lib/glthread/thread.h (gl_thread_self): Return a pthread_t, not a
28554         'void *'.
28555         (gl_thread_self_pointer): Update.
28557 2011-07-07  Bruno Haible  <bruno@clisp.org>
28559         signal-c++-tests: Check declaration of pthread_sigmask.
28560         * tests/test-signal-c++.cc: Check declaration of pthread_sigmask.
28561         * modules/signal-c++-tests (Makefile.am): Link test-signal-c++ against
28562         $(LIB_PTHREAD_SIGMASK).
28564 2011-07-07  Bruno Haible  <bruno@clisp.org>
28566         pthread_sigmask: Fix link requirements on OSF/1 5.1 and with pth.
28567         * lib/signal.in.h (pthread_sigmask): Override if
28568         REPLACE_PTHREAD_SIGMASK is 1.
28569         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Initialize
28570         REPLACE_PTHREAD_SIGMASK.
28571         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Set also
28572         REPLACE_PTHREAD_SIGMASK. Set and substitute LIB_PTHREAD_SIGMASK.
28573         * modules/signal (Makefile.am): Substitute REPLACE_PTHREAD_SIGMASK.
28574         * modules/pthread_sigmask (Depends-on, configure.ac): Update condition.
28575         (Link): Set to $(LIB_PTHREAD_SIGMASK), not $(LIBMULTITHREAD).
28577 2011-07-07  Bruno Haible  <bruno@clisp.org>
28579         pthread_sigmask: Ensure declaration in <signal.h>.
28580         * lib/signal.in.h: On MacOS X, FreeBSD, OpenBSD, OSF/1, Solaris 2.6,
28581         include <pthread.h>.
28582         * doc/posix-functions/pthread_sigmask.texi: Mention the header file
28583         problem.
28585 2011-07-07  Bruno Haible  <bruno@clisp.org>
28587         pthread_sigmask: Document the module.
28588         * doc/posix-functions/pthread_sigmask.texi: Mention the new module.
28590 2011-07-07  Bruno Haible  <bruno@clisp.org>
28592         pthread_sigmask: Follow gnulib conventions.
28593         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Renamed from
28594         gl_PTHREAD_SIGMASK.
28595         * modules/pthread_sigmask (configure.ac): Update.
28597 2011-07-07  Bruno Haible  <bruno@clisp.org>
28599         pthread_sigmask: Make declaration C++ safe.
28600         * lib/signal.in.h: In two special conditions, just do an #include_next.
28601         (pthread_sigmask): Test HAVE_PTHREAD_SIGMASK, not REPLACE_PTHREAD_MASK.
28602         Invoke _GL_CXXALIAS_SYS and _GL_CXXALIASWARN.
28603         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Initialize
28604         HAVE_PTHREAD_SIGMASK, not REPLACE_PTHREAD_MASK.
28605         * m4/pthread_sigmask.m4 (gl_PTHREAD_SIGMASK): Set HAVE_PTHREAD_SIGMASK,
28606         not REPLACE_PTHREAD_MASK.
28607         * modules/signal (Makefile.am): Substitute HAVE_PTHREAD_SIGMASK,
28608         not REPLACE_PTHREAD_MASK.
28609         * modules/pthread_sigmask (Depends-on, configure.ac): Update condition.
28611 2011-07-07  Bruno Haible  <bruno@clisp.org>
28613         pthread_sigmask: Fix return value.
28614         * lib/signal.in.h (pthread_sigmask): Declare. Don't define as a macro.
28615         * lib/pthread_sigmask.c: New file.
28616         * modules/pthread_sigmask (Files): Add it.
28617         (configure.ac): Invoke AC_LIBOBJ.
28619 2011-07-07  Eric Blake  <eblake@redhat.com>
28621         getopt: more portable argv creation
28622         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADRS): Rather than casting away
28623         const, use char arrays rather than strings.
28624         Suggested by Paul Eggert.
28626 2011-07-07  Bruno Haible  <bruno@clisp.org>
28628         Tests for module 'sigprocmask'.
28629         * modules/sigprocmask-tests: New file.
28630         * tests/test-sigprocmask.c: New file.
28632 2011-07-07  Bruno Haible  <bruno@clisp.org>
28634         float tests: Tweak.
28635         * tests/test-float.c (main): Tweak skip message.
28637 2011-07-07  Eric Blake  <eblake@redhat.com>
28639         getopt: avoid compiler warning during configure
28640         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADRS): Avoid problems with
28641         assigning string literals to non-const pointer.
28643         getopt-gnu: avoid crash in glibc getopt
28644         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADRS): Detect the problem.
28645         * tests/test-getopt.h (test_getopt): Enhance test.
28646         * tests/test-getopt_long.h (test_getopt_long): Likewise.
28647         * doc/posix-functions/getopt.texi (getopt): Document it.
28648         * doc/glibc-functions/getopt_long.texi (getopt_long): Likewise.
28649         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
28650         Likewise.
28652 2011-07-07  Ulrich Drepper  <drepper@gmail.com>
28654         getopt: handle W; without long options in getopt [BZ #12922]
28655         * lib/getopt.c (_getopt_internal_r): When "W;" is in short options
28656         but no long options are defined, just return 'W'.
28658 2011-07-07  Bruno Haible  <bruno@clisp.org>
28660         Avoid literal tabs.
28661         * m4/po,m4 (AM_PO_SUBDIRS, AM_POSTPROCESS_PO_MAKEFILE): Use a shell
28662         variable containing a tab instead of a literal tab.
28663         Reported by Jim Meyering.
28665 2011-07-07  Bruno Haible  <bruno@clisp.org>
28667         Comments.
28668         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Update comments about mingw.
28670 2011-07-06  Bruno Haible  <bruno@clisp.org>
28672         sys_select: Fix compilation error on mingw, introduced on 2011-06-30.
28673         * lib/sys_select.in.h: Don't include <sys/socket.h>. Instead, include
28674         <winsock2.h>.
28675         (rpl_fd_isset, FD_ISSET): New definitions, copied from
28676         lib/sys_socket.in.h.
28677         (close, gethostname): Hide declarations from <winsock2.h>.
28678         (socket, connect, accept, bind, getpeername, getsockname, getsockopt,
28679         listen, recv, send, recvfrom, sendto, setsockopt, shutdown): Likewise.
28680         * lib/sys_socket.in.h (close, gethostname): Tweak indentation.
28681         (select): Don't override if gnulib's <sys/select.h> was already
28682         included.
28683         * lib/unistd.in.h (socket, connect, accept, bind, getpeername,
28684         getsockname, getsockopt, listen, recv, send, recvfrom, sendto,
28685         setsockopt, shutdown, select): Tweak indentation.
28687 2011-07-06  Paul Eggert  <eggert@cs.ucla.edu>
28689         * modules/pthread_sigmask (configure.ac): gl_SIGNAL_MODULE_INDICATOR
28690         and not gl_SYS_SELECT_MODULE_INDICATOR, fixing a typo exposed
28691         in an application that does not use the sys_select module.
28693 2011-07-06  Erik Faye-Lund  <kusmabite@gmail.com>
28695         poll: do not return 0 on timeout=-1
28696         * lib/poll.c: Loop with yield if no events occurred.
28698 2011-07-06  Eric Blake  <eblake@redhat.com>
28700         pthread_sigmask: always replace when not using pthread
28701         * m4/pthread_sigmask.m4 (gl_PTHREAD_SIGMASK): Force sigprocmask
28702         replacement when using some threading other than pthread.  Fix
28703         logic bug.
28705 2011-07-06  Bruno Haible  <bruno@clisp.org>
28707         Comments.
28708         * m4/printf.m4: Update comments about mingw.
28710 2011-07-06  Paul Eggert  <eggert@cs.ucla.edu>
28712         sys_select: define sigset_t more portably
28713         * lib/sys_select.in.h: Always include <sys/types.h>, since
28714         we now need sigset_t and mingw defines it there.
28715         Include <signal.h> before split inclusion guard, to avoid
28716         mishaps on Solaris, whose <signal.h> eventually includes us.
28717         * m4/signal_h.m4 (gl_SIGNAL_H): Require gl_CHECK_TYPE_SIGSET_T.
28718         (gl_CHECK_TYPE_SIGSET_T): New macro, most of the contents of
28719         which come from ...
28720         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Require
28721         gl_CHECK_TYPE_SIGSET_T.
28722         (gl_PREREQ_SIGPROCMASK): Now a no-op, since gl_CHECK_TYPE_SIGSET_T
28723         does the real work.
28724         * modules/sys_select (Depends-on): Add 'signal'.
28726         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Poison pselect.
28727         Suggested by Bruno Haible.
28729         pselect: Use pthread_sigmask, not sigprocmask.
28730         * lib/pselect.c (pselect): Use pthread_sigmask, as it supports
28731         multithreaded apps better than sigprocmask does.
28732         * modules/pselect (Depends-on): Depend on pthread_sigmask, not
28733         sigprocmask directly.
28735 2011-07-05  Paul Eggert  <eggert@cs.ucla.edu>
28737         * lib/pselect.c (pselect): Use plain name, without "rpl_".
28738         Don't #undef,  since we don't need any underlying pselect.
28739         * modules/pselect (configure.ac): Use our pselect.o if !HAVE_PSELECT.
28740         (Depends-on): Add select.
28741         (Link): Add $(LIBSOCKET).
28742         These changes suggested by Bruno Haible.
28744         pselect: document better
28745         * MODULES.html.sh (Support for systems lacking POSIX:2008): Add it.
28746         * doc/posix-functions/pselect.texi (pselect): Document new module.
28748         pthread_sigmask: new module
28749         * MODULES.html.sh (Support for systems lacking POSIX:2008): Add it.
28750         * doc/posix-functions/pthread_sigmask.texi: Document new module.
28751         * lib/signal.in.h (pthread_sigmask): Arrange for replacement.
28752         This is done only as a macro; I don't know how well that'll
28753         work for C++.  Move <sys/types.h> include before the include_next,
28754         to avoid mishap on Solaris.
28755         * m4/signal_h.m4 (gl_SIGNAL_H, gl_SIGNAL_H_DEFAULTS): Check for it.
28756         * modules/signal (Makefile.am): Substitute the check's results.
28757         * modules/pthread_sigmask, m4/pthread_sigmask.m4: New files.
28759         test-pselect: new module
28760         * modules/pselect-tests, tests/test-pselect.c: New files.
28761         * tests/test-select.c, tests/test-sys_select-c++.cc:
28762         If TEST_PSELECT is defined, test pselect instead of testing select.
28764         * tests/test-sys_select.c (sigset_t): Test for it, too.
28765         Suggested by Bruno Haible.
28767 2011-07-05  Eric Blake  <eblake@redhat.com>
28769         snprintf: guarantee %1$d, for libintl
28770         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Require %1$d support.
28771         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Likewise.
28772         * doc/posix-functions/snprintf.texi (snprintf): Update.
28773         * doc/posix-functions/vsnprintf.texi (vsnprintf): Likewise.
28774         * tests/test-snprintf.c (main): Enhance test.
28775         * tests/test-vsnprintf.c (main): Likewise.
28777 2011-07-05  Jim Meyering  <meyering@redhat.com>
28779         maint: exempt stdio-read.c and stdio-write.c from the cppi check
28780         * Makefile (sc_cpp_indent_check): Exempt stdio-read.c and stdio-write.c
28781         per Bruno's request, to accommodate this idiom (no space after "#")
28782         even when the function is inside an #if block:
28783         char *
28784         gets (char *s)
28785         #undef gets
28786         {
28787           ...
28788         }
28790 2011-07-04  Jim Meyering  <meyering@redhat.com>
28792         maint: indent with spaces, not TABs, and add a rule to check this
28793         * tests/test-userspec.c: Indent with spaces, not TABs.
28794         * tests/test-argp.c: Likewise.
28795         * tests/test-c-stack2.sh: Likewise.
28796         * tests/test-parse-duration.sh: Likewise
28797         * m4/strtod.m4: Likewise.
28798         * m4/alloca.m4: Likewise.
28799         * m4/pselect.m4: Likewise.
28800         * Makefile (sc_prohibit_leading_TABs): Prohibit leading TABs.
28802 2011-07-03  Jim Meyering  <meyering@redhat.com>
28804         maint.mk: correct omissions in prohibit_argmatch_without_use check
28805         This rule would mistakenly report that argmatch.h is included without
28806         use even when both the argmatch and invalid_arg macro were used.
28807         * top/maint.mk (sc_prohibit_argmatch_without_use): Also detect uses
28808         of argmatch and invalid_arg.
28810 2011-07-03  Bruno Haible  <bruno@clisp.org>
28812         Comments about EINTR.
28813         * lib/safe-read.h: Explain the purpose of this module.
28814         * lib/safe-write.h: Likewise.
28815         * doc/posix-functions/read.texi: Mention EINTR and the 'safe-read'
28816         module.
28817         * doc/posix-functions/write.texi: Mention EINTR and the 'safe-write'
28818         module.
28819         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
28821 2011-06-30  Paul Eggert  <eggert@cs.ucla.edu>
28823         xnanosleep: Rewrite to use new dtotimespec module.
28824         It has the conversion code that used to be in xnanosleep.
28825         * lib/xnanosleep.c: Do not include limits.h, stdbool.h, stdio.h,
28826         assert.h, sys/types.h, or intprops.h.  Include timespec.h instead.
28827         (TIME_T_MAX): Remove.
28828         (xnanosleep): Rewrite in terms of dtotimespec.
28829         * modules/xnanosleep (Depends-on): Add dtotimespec.
28830         Remove intprops, stdbool.
28832         timespec-add, timespec-sub: new modules
28833         * lib/timespec.h (timespec_add, timespec_sub): New decls.
28834         * lib/timespec-add.c, lib/timespec-sub.c:
28835         * modules/timespec-add, modules/timespec-sub: New files.
28837         dtotimespec: new module
28838         * lib/timespec.h (dtotimespec): New decl.
28839         * lib/dtotimespec.c, modules/dtotimespec: New files.
28841         * lib/timespec.h (timespec_sign, timespectod): New inline functions.
28843         pselect: new module
28844         * lib/sys_select.in.h: Include <signal.h>, for 'sigset_t'.
28845         (pselect): New decls.
28846         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Require AC_C_RESTRICT,
28847         since the standard pselect decl uses 'restrict'.
28848         (gl_SYS_SELECT_H_DEFAULTS): Add defaults for GNULIB_PSELECT,
28849         HAVE_PSELECT, REPLACE_PSELECT.
28850         * modules/sys_select (sys/select.h): Substitute GNULIB_PSELECT,
28851         HAVE_PSELECT, REPLACE_PSELECT.
28852         * lib/pselect.c, m4/pselect.m4, modules/pselect: New files.
28854         sys_select: don't depend on sys_socket
28855         This is so that Emacs doesn't have to drag in m4/sockpfaf.m4 etc; see
28856         <http://lists.gnu.org/archive/html/bug-gnulib/2011-06/msg00358.html>.
28857         This fix works on GNU and GNU-like platforms, but has not been tested
28858         on native Windows.
28859         * lib/sys_select.in.h: Include <sys/socket.h> only if native Windows.
28860         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Do not require
28861         gl_HEADER_SYS_SOCKET.
28862         * modules/sys_select (Files): Add m4/sys_socket_h.m4, for
28863         gl_PREREQ_SYS_H_WINSOCK2.
28865 2011-06-29  Eric Blake  <eblake@redhat.com>
28867         pipe2: fix C89 compile problem
28868         * lib/pipe2.c (pipe2): Avoid C99 array initialization.
28869         Reported by Bruno Haible.
28871         pipe, pipe2: don't corrupt fd on error
28872         * lib/pipe.c (pipe): Leave fd unchanged on error.
28873         * lib/pipe2.c (pipe2): Likewise.
28874         * doc/posix-functions/pipe.texi (pipe): Document cygwin issue.
28875         * doc/glibc-functions/pipe2.texi (pipe2): Likewise.
28877 2011-06-27  Paolo Bonzini  <bonzini@gnu.org>
28879         mmap-anon: do not use regular expressions inadvertently
28880         * m4/mmap-anon.m4: Remove trailing period from strings sought
28881         in the output.
28883 2011-06-25  Paul Eggert  <eggert@cs.ucla.edu>
28885         nanosleep: fix integer overflow problem
28886         * lib/nanosleep.c (my_usleep): Don't assume signed integer
28887         arithmetic wraps around on overflow.
28889         nanosleep: simplify carrying
28890         * lib/nanosleep.c (nanosleep): Use the requested tv_nsec for the
28891         first call to the underyling nanosleep, not for the last one.
28892         This doesn't fix any bugs, but it simplifies the computation of
28893         the remaining delay.  Found while auditing integer overflow issues.
28895         dup2: remove test for existence of fcntl
28896         * m4/dup2.m4 (gl_FUNC_DUP2): Use "#ifdef FD_CLOEXEC", not
28897         "#if HAVE_FCNTL", in the configure-time test program.
28898         This removes the need for the AC_CHECK_FUNCS_ONCE([fcntl]),
28899         and therefore speeds up "configure" a bit.  Found while
28900         adding the dup2 module to Emacs.
28902 2011-06-24  Eric Blake  <eblake@redhat.com>
28904         maint.mk: enhance useless header checks
28905         * top/maint.mk (_sc_header_without_use): Check both include
28906         styles.
28907         (sc_prohibit_assert_without_use)
28908         (sc_prohibit_close_stream_without_use)
28909         (sc_prohibit_getopt_without_use)
28910         (sc_prohibit_quotearg_without_use)
28911         (sc_prohibit_quote_without_use)
28912         (sc_prohibit_long_options_without_use)
28913         (sc_prohibit_inttostr_without_use)
28914         (sc_prohibit_ignore_value_without_use)
28915         (sc_prohibit_error_without_use, sc_prohibit_xalloc_without_use)
28916         (sc_prohibit_hash_without_use, sc_prohibit_cloexec_without_use)
28917         (sc_prohibit_posixver_without_use, sc_prohibit_same_without_use)
28918         (sc_prohibit_hash_pjw_without_use)
28919         (sc_prohibit_safe_read_without_use)
28920         (sc_prohibit_argmatch_without_use)
28921         (sc_prohibit_canonicalize_without_use)
28922         (sc_prohibit_root_dev_ino_without_use)
28923         (sc_prohibit_openat_without_use)
28924         (sc_prohibit_c_ctype_without_use)
28925         (sc_prohibit_signal_without_use)
28926         (sc_prohibit_stdio--_without_use)
28927         (sc_prohibit_stdio-safer_without_use)
28928         (sc_prohibit_strings_without_use)
28929         (sc_prohibit_intprops_without_use)
28930         (sc_prohibit_stddef_without_use)
28931         (sc_prohibit_xfreopen_without_use): Update clients.
28933 2011-06-24  Jim Meyering  <meyering@redhat.com>
28935         syntax-check: keep one maint.mk rule in sync with its header
28936         * Makefile (sc_check_sym_list): Add a rule to prevent a repeat
28937         of the bug Eric has just fixed, with today's commit 25e4c2ec.
28938         I prefer to avoid temporary files here, so use <(...), but that
28939         is not supported by /bin/sh, so...
28940         (SHELL): Define to /bin/bash.
28942 2011-06-24  Eric Blake  <eblake@redhat.com>
28944         maint.mk: update sc_prohibit_intprops_without_use
28945         * top/maint.mk (_intprops_names): Match recent changes.
28947 2011-06-24  Bruno Haible  <bruno@clisp.org>
28949         strerror-override: No-op tweak.
28950         * lib/strerror-override.h (strerror_override): Reorder conditions,
28951         for consistency with lib/strerror-override.c.
28953 2011-06-23  Eric Blake  <eblake@redhat.com>
28955         maint.mk: test further PATH_MAX issues
28956         * top/maint.mk (sc_prohibit_path_max_array): Rename...
28957         (sc_prohibit_path_max_allocation): ...and also test alloca.
28958         Suggested by Jim Meyering.
28960 2011-06-22  Eric Blake  <eblake@redhat.com>
28962         maint.mk: add syntax-check to avoid char[PATH_MAX]
28963         * top/maint.mk (sc_prohibit_path_max_array): New rule.
28965         stat: be robust to PATH_MAX definition
28966         * lib/stat.c (rpl_stat): Require reasonable PATH_MAX.
28967         * modules/stat (Depends-on): Add verify.
28969         link: work around IRIX bug
28970         * m4/link.m4 (gl_FUNC_LINK): Expose the bug.
28971         * lib/link.c (rpl_link): Work around it.
28972         * tests/test-link.h (test_link): Enhance test.
28973         * doc/posix-functions/link.texi (link): Document the bug.
28975         getopt: silence clang warning
28976         * lib/getopt.c (_getopt_internal_r): Avoid unlikely NULL
28977         dereference.
28978         Reported by Gustavo Martin Domato.
28980 2011-06-22  Jim Meyering  <meyering@redhat.com>
28982         bootstrap: do not insert a blank line into each .gitignore file
28983         * build-aux/bootstrap (sort_patterns): Filter out blank lines.
28985 2011-06-21  Eric Blake  <eblake@redhat.com>
28987         perror: test for output mismatch
28988         * m4/perror.m4 (gl_FUNC_PERROR): Add test, in order to replace
28989         perror on IRIX.
28991         strerror_r: fix OpenBSD behavior on out-of-range
28992         * lib/strerror_r.c (strerror_r): Always use maximal string.
28993         * doc/posix-functions/strerror_r.texi (strerror_r): Document it.
28995         strerror_r: fix OpenBSD behavior on 0
28996         * lib/strerror-override.c (strerror_override): Also override 0
28997         when needed.
28998         * lib/strerror-override.h (strerror_override): Likewise.
28999         * lib/strerror.c (strerror): Simplify, now that 0 override is done
29000         earlier.
29001         * lib/strerror_r.c (strerror_r): Likewise.
29002         * m4/strerror.m4 (gl_FUNC_STRERROR): Split detection of 0
29003         behavior...
29004         (gl_FUNC_STRERROR_0): ...into new macro.
29005         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Replace strerror_r if 0
29006         is overridden.
29007         (gl_FUNC_STRERROR_R_WORKS): Avoid extra tests if 0 is broken.
29008         * modules/strerror-override (Files): Add strerror.m4.
29009         (configure.ac): Also provide override for 0 when needed.
29010         * doc/posix-functions/strerror.texi (strerror): Document this.
29011         * doc/posix-functions/perror.texi (perror): Likewise.
29013         perror: adjust array size
29014         * modules/perror (Depends-on): Add strerror-override.
29015         * lib/perror.c (perror): Use it to avoid magic number.
29017         strerror-override: reduce size
29018         * lib/strerror-override.c (strerror_override): Use fewer lines.
29020 2011-06-20  Bruno Haible  <bruno@clisp.org>
29022         pathmax: Ensure correct value for PATH_MAX on HP-UX.
29023         * lib/pathmax.h (PATH_MAX) [HP-UX]: Define to 1024.
29025 2011-06-20  Paul Eggert  <eggert@cs.ucla.edu>
29027         alloca: port to compilers that can optimize like GCC 4.6.0
29028         * lib/alloca.c (find_stack_direction): New signature, taken from
29029         Autoconf git.  This works with GCC 4.6.0.  This code should never
29030         be used with GCC 4.6.0 itself, as GCC has alloca, but it might
29031         be used with other compilers that optimize as well as GCC 4.6.0 does.
29032         (alloca): Adjust to new signature.
29033         * m4/alloca.m4 (__AC_LIBOBJ_ALLOCA) [Autoconf version < 2.69]:
29034         New macro, which patches Autoconf in a similar way.
29036         c-stack: stop worrying about stack direction
29037         * lib/c-stack.c (find_stack_direction): Remove.
29038         (segv_handler): Don't worry about stack direction growth, as it's
29039         too much of a pain to configure this correctly, given how compilers
29040         are optimizing-away our stack-growth detection code.  Instead, assume
29041         that any access to just before or just after the stack is OK.
29042         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC):
29043         Don't require AC_FUNC_ALLOCA; no longer needed.
29045 2011-06-20  Eric Blake  <eblake@redhat.com>
29047         test-stat: don't allocate PATH_MAX bytes
29048         * tests/test-stat.h (test_stat_func): Don't stack-allocate a
29049         PATH_MAX-sized buffer.
29050         * modules/openat-tests (Depends-on): Add getcwd-lgpl, drop pathmax.
29051         * modules/stat-tests (Depends-on): Likewise.
29052         * tests/test-fstatat.c (includes): Drop pathmax.h.
29053         * tests/test-stat.c (includes): Likewise.
29054         Reported by Bruno Haible.
29056 2011-06-20  Bruno Haible  <bruno@clisp.org>
29058         float: Work around <float.h> bugs on FreeBSD/x86, AIX with GCC, IRIX.
29059         * lib/float.in.h: Add workarounds for FreeBSD/x86, AIX with GCC, IRIX.
29060         * lib/float.c: New file.
29061         * m4/float_h.m4 (gl_FLOAT_H): Also handle FreeBSD, AIX, IRIX. Set
29062         REPLACE_FLOAT_LDBL.
29063         * modules/float (Files): Add lib/float.c.
29064         (configure.ac): Invoke AC_LIBOBJ.
29065         * doc/posix-headers/float.texi: Mention problems on FreeBSD, AIX, IRIX.
29067 2011-06-20  Bruno Haible  <bruno@clisp.org>
29069         Tests for module 'float'.
29070         * modules/float-tests: New file.
29071         * tests/test-float.c: New file.
29073 2011-06-19  Bruno Haible  <bruno@clisp.org>
29075         isinf: Coding style.
29076         * lib/isinf.c: Use GNU coding style.
29078 2011-06-19  Bruno Haible  <bruno@clisp.org>
29080         linkat test: Avoid test failure on AIX 7.1.
29081         * tests/test-linkat.c (main): Allow EINVAL as alternate error value.
29082         * tests/test-link.h (test_link): Likewise.
29084 2011-06-19  Bruno Haible  <bruno@clisp.org>
29086         pread test: Avoid test failure on OpenBSD 4.9.
29087         * tests/test-pread.c (main): Allow EFBIG instead of EINBAL.
29089 2011-06-19  Bruno Haible  <bruno@clisp.org>
29091         sprintf-posix: Fix test failure on AIX 7.1.
29092         * m4/printf.m4 (gl_PRINTF_PRECISION): Test against AIX bug.
29093         * doc/posix-functions/dprintf.texi: Mention limited precision problem
29094         on AIX.
29095         * doc/posix-functions/fprintf.texi: Likewise.
29096         * doc/posix-functions/printf.texi: Likewise.
29097         * doc/posix-functions/snprintf.texi: Likewise.
29098         * doc/posix-functions/sprintf.texi: Likewise.
29099         * doc/posix-functions/vdprintf.texi: Likewise.
29100         * doc/posix-functions/vfprintf.texi: Likewise.
29101         * doc/posix-functions/vprintf.texi: Likewise.
29102         * doc/posix-functions/vsnprintf.texi: Likewise.
29103         * doc/posix-functions/vsprintf.texi: Likewise.
29105 2011-06-19  Bruno Haible  <bruno@clisp.org>
29107         roundl-ieee: Fix test failure on AIX 7.1.
29108         * m4/roundl.m4 (gl_FUNC_ROUNDL): Test also the sign of roundl (-0.3L).
29109         * doc/posix-functions/roundl.texi: Mention problem with negative
29110         arguments.
29112 2011-06-19  Bruno Haible  <bruno@clisp.org>
29114         round-ieee: Fix test failures on AIX 7.1 and OSF/1 5.1.
29115         * modules/round-ieee (Depends-on): Add floor-ieee, ceil-ieee.
29116         * doc/posix-functions/round.texi: Mention problem with negative
29117         arguments.
29118         * doc/posix-functions/ceil.texi: Mention problem on OSF/1 5.1.
29120 2011-06-19  Bruno Haible  <bruno@clisp.org>
29122         roundf-ieee: Fix test failures on AIX 7.1 and OSF/1 5.1.
29123         * m4/roundf.m4 (gl_FUNC_ROUNDF): Test also the sign of roundf (-0.3f).
29124         * modules/roundf-ieee (Depends-on): Add floorf-ieee, ceilf-ieee.
29125         * doc/posix-functions/roundf.texi: Mention problem with negative
29126         arguments.
29127         * doc/posix-functions/ceilf.texi: Mention problem on OSF/1 5.1.
29129 2011-06-19  Bruno Haible  <bruno@clisp.org>
29131         ceilf-ieee: Work around bug on MacOS X 10.5.
29132         * doc/posix-functions/ceilf.texi: Mention the MacOS X 10.5 problem.
29134         floor*-ieee, ceil*-ieee, trunc*-ieee, round*-ieee: More robust checks.
29135         * m4/floorf.m4 (gl_FUNC_FLOORF): In the test whether the function is
29136         IEEE compliant, avoid compiler optimizations.
29137         * m4/floor.m4 (gl_FUNC_FLOOR): Likewise.
29138         * m4/ceilf.m4 (gl_FUNC_CEILF): Likewise.
29139         * m4/ceil.m4 (gl_FUNC_CEIL): Likewise.
29140         * m4/ceill.m4 (gl_FUNC_CEILL): Likewise.
29141         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
29142         * m4/trunc.m4 (gl_FUNC_TRUNC): Likewise.
29143         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
29144         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
29145         * m4/round.m4 (gl_FUNC_ROUND): Likewise.
29146         * m4/roundl.m4 (gl_FUNC_ROUNDL): Likewise.
29148 2011-06-19  Bruno Haible  <bruno@clisp.org>
29150         ceilf-ieee: Work around bug on AIX 7.1.
29151         * m4/ceilf.m4 (gl_FUNC_CEILF): Test also the sign of ceilf (-0.3f).
29152         * doc/posix-functions/ceilf.texi: Mention the AIX 7.1 problem.
29154 2011-06-19  Bruno Haible  <bruno@clisp.org>
29156         ceil-ieee: Work around bug on AIX 7.1.
29157         * m4/ceil.m4 (gl_FUNC_CEIL): Test also the sign of ceil (-0.3).
29158         * doc/posix-functions/ceil.texi: Mention the AIX 7.1 problem.
29160 2011-06-18  Bruno Haible  <bruno@clisp.org>
29162         fsync test: Avoid test failure on MacOS X and AIX.
29163         * tests/test-fsync.c (fsync): Allow ENOTSUP and EBADF instead of
29164         EINVAL.
29166 2011-06-18  Bruno Haible  <bruno@clisp.org>
29168         openat, fdopendir tests: Fix link errors.
29169         * modules/openat-tests (Depends-on): Add progname.
29170         * modules/fdopendir-tests (Depends-on): Likewise.
29171         * tests/test-fchownat.c: Include progname.h.
29172         (main): Call set_program_name.
29173         * tests/test-fstatat.c: Include progname.h.
29174         (main): Call set_program_name.
29175         * tests/test-mkdirat.c: Include progname.h.
29176         (main): Call set_program_name.
29177         * tests/test-openat.c: Include progname.h.
29178         (main): Call set_program_name.
29179         * tests/test-unlinkat.c: Include progname.h.
29180         (main): Call set_program_name.
29181         * tests/test-fdopendir.c: Include progname.h.
29182         (main): Call set_program_name.
29184 2011-06-18  Bruno Haible  <bruno@clisp.org>
29186         Doc update.
29187         * doc/posix-functions/pthread_attr_getstack.texi: Update info regarding
29188         HP-UX.
29189         * doc/posix-functions/pthread_attr_setstack.texi: Likewise.
29191 2011-06-18  Bruno Haible  <bruno@clisp.org>
29193         getcwd tests: Avoid compilation error on HP-UX 11.31.
29194         * modules/getcwd-tests (Depends-on): Add pathmax.
29195         * tests/test-getcwd.c: Include pathmax.h.
29197 2011-06-18  Bruno Haible  <bruno@clisp.org>
29199         isfinite, isinf: Fix link error on AIX 6 and 7.
29200         * m4/isfinite.m4 (gl_ISFINITE): When determining whether libm is
29201         needed, also test the macro with a 'float' argument.
29202         * m4/isinf.m4 (gl_ISINF): Likewise.
29204 2011-06-18  Bruno Haible  <bruno@clisp.org>
29206         getloadavg: Don't clobber LIBS. Regression from previous commit.
29207         * m4/getloadavg.m4 (gl_PREREQ_GETLOADAVG): Move tests that use
29208         AC_CHECK_LIB from here...
29209         (gl_GETLOADAVG): ... to here, inside the experiment with LIBS.
29210         (gl_GETLOADAVG, gl_PREREQ_GETLOADAVG): Rename gl_have_func to
29211         gl_func_getloadavg_done.
29212         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
29214 2011-06-18  Bruno Haible  <bruno@clisp.org>
29216         clean-temp: Improve documentation.
29217         * lib/clean-temp.h: Explain better how to use this module.
29218         Reported by John Darrington <john@darrington.wattle.id.au>.
29220 2011-06-17  Bruno Haible  <bruno@clisp.org>
29222         pread, pwrite: Avoid cc warning on AIX.
29223         * lib/unistd.in.h (pread): Undefine before defining as a macro.
29224         (pwrite): Likewise.
29226 2011-06-17  Bruno Haible  <bruno@clisp.org>
29228         spawn-pipe tests: Fix link error.
29229         * tests/test-spawn-pipe-child.c: Undefine fprintf.
29230         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
29232 2011-06-17  Bruno Haible  <bruno@clisp.org>
29234         Tests: Remove unnecessary dependency.
29235         * modules/canonicalize-tests (Depends-on): Remove progname.
29236         * modules/chown-tests (Depends-on): Likewise.
29237         * modules/dirname-tests (Depends-on): Likewise.
29238         * modules/fdopendir-tests (Depends-on): Likewise.
29239         * modules/fdutimensat-tests (Depends-on): Likewise.
29240         * modules/hash-tests (Depends-on): Likewise.
29241         * modules/lchown-tests (Depends-on): Likewise.
29242         * modules/linkat-tests (Depends-on): Likewise.
29243         * modules/renameat-tests (Depends-on): Likewise.
29244         * modules/spawn-pipe-tests (Depends-on): Likewise.
29245         * modules/utimensat-tests (Depends-on): Likewise.
29247 2011-06-17  Bruno Haible  <bruno@clisp.org>
29249         spawn-pipe tests: Fix link error.
29250         * tests/test-spawn-pipe-child.c: Undefine fflush.
29252 2011-06-17  Bruno Haible  <bruno@clisp.org>
29254         Fix tests link errors.
29255         * modules/ceil-ieee-tests (Makefile.am): Use CEIL_LIBM, not FLOOR_LIBM.
29256         * modules/chown-tests (Makefile.am): Don't link test-chown with
29257         LIBINTL.
29258         * modules/lchown-tests (Makefile.am): Don't link test-lchown with
29259         LIBINTL.
29260         * modules/utimens-tests (Makefile.am): Don't link test-utimens with
29261         LIBINTL.
29262         * modules/futimens-tests (Makefile.am): Don't link test-futimens with
29263         LIBINTL.
29265 2011-06-16  Bruno Haible  <bruno@clisp.org>
29267         crypto/gc-sha1: Fix recent regression.
29268         * modules/crypto/gc-sha1 (configure.ac): Invoke AC_LIBOBJ here.
29269         * m4/gc-sha1.m4 (gl_GC_SHA1): Don't invoke gl_SHA1.
29271         crypto/gc-md5: Fix recent regression.
29272         * modules/crypto/gc-md5 (configure.ac): Invoke AC_LIBOBJ here.
29274         crypto/gc-md4: Fix recent regression.
29275         * modules/crypto/gc-md4 (configure.ac): Invoke AC_LIBOBJ here.
29276         * m4/md4.m4 (gl_MD4): Ensure the expansion is non-empty.
29278         crypto/gc-arctwo: Fix recent regression.
29279         * modules/crypto/gc-arctwo (configure.ac): Invoke AC_LIBOBJ here.
29280         * m4/arctwo.m4 (gl_ARCTWO): Ensure the expansion is non-empty.
29282         crypto/gc-rijndael: Fix recent regression.
29283         * modules/crypto/gc-rijndael (Files): Remove m4/rijndael.m4.
29284         (configure.ac): Invoke AC_LIBOBJ here.
29285         * m4/gc-rijndael.m4 (gl_GC_RIJNDAEL): Don't invoke gl_RIJNDAEL.
29286         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
29288         crypto/gc-hmac-sha1: Fix recent regression.
29289         * modules/crypto/gc-hmac-sha1 (Files): Remove m4/hmac-sha1.m4.
29290         (configure.ac): Invoke AC_LIBOBJ here.
29291         * m4/gc-hmac-sha1.m4 (gl_GC_HMAC_SHA1): Don't invoke gl_HMAC_SHA1.
29292         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
29294         crypto/gc-hmac-md5: Fix recent regression.
29295         * modules/crypto/gc-hmac-md5 (Files): Remove m4/hmac-md5.m4.
29296         (configure.ac): Invoke AC_LIBOBJ here.
29297         * m4/gc-hmac-md5.m4 (gl_GC_HMAC_MD5): Don't invoke gl_HMAC_MD5.
29298         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
29300         crypto/gc-des: Fix recent regression.
29301         * modules/crypto/gc-des (Files): Remove m4/des.m4.
29302         (configure.ac): Invoke AC_LIBOBJ here.
29303         * m4/gc-des.m4 (gl_GC_DES): Don't invoke gl_DES.
29304         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
29306         crypto/gc-arcfour: Fix recent regression.
29307         * modules/crypto/gc-arcfour (Files): Remove m4/arcfour.m4.
29308         (configure.ac): Invoke AC_LIBOBJ here.
29309         * m4/gc-arcfour.m4 (gl_GC_ARCFOUR): Don't invoke gl_ARCFOUR.
29310         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
29312 2011-06-16  Paul Eggert  <eggert@cs.ucla.edu>
29314         * m4/lstat.m4 (gl_FUNC_LSTAT): Fix typo in prerequisite.
29315         After the 2011-05-21 change, this macro requires
29316         gl_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK, not
29317         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
29319 2011-06-16  Bruno Haible  <bruno@clisp.org>
29321         fprintftime: Move AC_LIBOBJ invocations to module description.
29322         * m4/fprintftime.m4: Remove file.
29323         * modules/fprintftime (Files): Remove m4/fprintftime.m4.
29324         (configure.ac): Remove gl_FPRINTFTIME call.
29325         (Makefile.am): Augment lib_SOURCES.
29326         Reported by Jim Meyering.
29328 2011-06-16  Bruno Haible  <bruno@clisp.org>
29330         tmpfile-safer: Finish 2011-05-23 commit.
29331         * m4/stdio-safer.m4: Really remove file.
29332         Reported by Jim Meyering.
29334 2011-06-16  Bruno Haible  <bruno@clisp.org>
29336         syntax-check: Fix typo.
29337         * Makefile (allow_AC_LIBOBJ): Mention printf-posix-rpl.m4, not
29338         printf-posix.m4.
29339         Reported by Jim Meyering.
29341 2011-06-13  Jim Meyering  <meyering@redhat.com>
29343         syntax-check: add a rule to help enforce the no-AC_LIBOBJ-in-m4/ policy
29344         * Makefile (sc_prohibit_AC_LIBOBJ_in_m4): New rule.
29346 2011-05-23  Bruno Haible  <bruno@clisp.org>
29348         yesno: Move AC_LIBOBJ invocations to module description.
29349         * m4/yesno.m4 (gl_YESNO): Remove AC_LIBOBJ invocation.
29350         * modules/yesno (Makefile.am): Augment lib_SOURCES.
29352 2011-05-23  Bruno Haible  <bruno@clisp.org>
29354         xstrtol: Move AC_LIBOBJ invocations to module description.
29355         * m4/xstrtol.m4 (gl_XSTRTOL): Remove AC_LIBOBJ invocations.
29356         * modules/xstrtol (Makefile.am): Augment lib_SOURCES.
29358 2011-05-23  Bruno Haible  <bruno@clisp.org>
29360         xstrtold: Move AC_LIBOBJ invocations to module description.
29361         * m4/xstrtod.m4 (gl_XSTRTOLD): Remove AC_LIBOBJ invocation.
29362         * modules/xstrtold (Makefile.am): Augment lib_SOURCES.
29364 2011-05-23  Bruno Haible  <bruno@clisp.org>
29366         xstrtod: Move AC_LIBOBJ invocations to module description.
29367         * m4/xstrtod.m4 (gl_XSTRTOD): Remove AC_LIBOBJ invocation.
29368         * modules/xstrtod (Makefile.am): Augment lib_SOURCES.
29370 2011-05-23  Bruno Haible  <bruno@clisp.org>
29372         xnanosleep: Move AC_LIBOBJ invocations to module description.
29373         * m4/xnanosleep.m4 (gl_XNANOSLEEP): Remove AC_LIBOBJ invocation.
29374         * modules/xnanosleep (Makefile.am): Augment lib_SOURCES.
29376 2011-05-23  Bruno Haible  <bruno@clisp.org>
29378         xgetcwd: Move AC_LIBOBJ invocations to module description.
29379         * m4/xgetcwd.m4 (gl_XGETCWD): Remove AC_LIBOBJ invocation.
29380         * modules/xgetcwd (Makefile.am): Augment lib_SOURCES.
29382 2011-05-23  Bruno Haible  <bruno@clisp.org>
29384         xalloc: Move AC_LIBOBJ invocations to module description.
29385         * m4/xalloc.m4 (gl_XALLOC): Remove AC_LIBOBJ invocation.
29386         * modules/xalloc (Makefile.am): Augment lib_SOURCES.
29388 2011-05-23  Bruno Haible  <bruno@clisp.org>
29390         write-any-file: Move AC_LIBOBJ invocations to module description.
29391         * m4/write-any-file.m4 (gl_WRITE_ANY_FILE): Remove AC_LIBOBJ
29392         invocation.
29393         * modules/write-any-file (Makefile.am): Augment lib_SOURCES.
29395 2011-05-23  Bruno Haible  <bruno@clisp.org>
29397         utimens: Move AC_LIBOBJ invocations to module description.
29398         * m4/utimens.m4 (gl_UTIMENS): Remove AC_LIBOBJ invocation.
29399         * modules/utimens (Makefile.am): Augment lib_SOURCES.
29401 2011-05-23  Bruno Haible  <bruno@clisp.org>
29403         utimecmp: Move AC_LIBOBJ invocations to module description.
29404         * m4/utimecmp.m4 (gl_UTIMECMP): Remove AC_LIBOBJ invocation.
29405         * modules/utimecmp (Makefile.am): Augment lib_SOURCES.
29407 2011-05-23  Bruno Haible  <bruno@clisp.org>
29409         userspec: Move AC_LIBOBJ invocations to module description.
29410         * m4/userspec.m4 (gl_USERSPEC): Remove AC_LIBOBJ invocation.
29411         * modules/userspec (Makefile.am): Augment lib_SOURCES.
29413 2011-05-23  Bruno Haible  <bruno@clisp.org>
29415         unlinkdir: Move AC_LIBOBJ invocations to module description.
29416         * m4/unlinkdir.m4 (gl_UNLINKDIR): Remove AC_LIBOBJ invocation.
29417         * modules/unlinkdir (Makefile.am): Augment lib_SOURCES.
29419 2011-05-23  Bruno Haible  <bruno@clisp.org>
29421         unistd-safer: Move AC_LIBOBJ invocations to module description.
29422         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Remove AC_LIBOBJ invocations.
29423         * modules/unistd-safer (Makefile.am): Augment lib_SOURCES.
29425 2011-05-23  Bruno Haible  <bruno@clisp.org>
29427         tempname: Move AC_LIBOBJ invocations to module description.
29428         * m4/tempname.m4 (gl_FUNC_GEN_TEMPNAME): Remove AC_LIBOBJ invocation.
29429         * modules/tempname (Makefile.am): Augment lib_SOURCES.
29431 2011-05-23  Bruno Haible  <bruno@clisp.org>
29433         strftime: Move AC_LIBOBJ invocations to module description.
29434         * m4/strftime.m4 (gl_FUNC_STRFTIME): Remove AC_LIBOBJ invocation.
29435         * modules/strftime (Makefile.am): Augment lib_SOURCES.
29437 2011-05-23  Bruno Haible  <bruno@clisp.org>
29439         stdlib-safer: Move AC_LIBOBJ invocations to module description.
29440         * m4/stdlib-safer.m4: Remove file.
29441         * modules/stdlib-safer (Files): Remove m4/stdlib-safer.m4.
29442         (configure.ac): Remove gl_STDLIB_SAFER call.
29443         (Makefile.am): Augment lib_SOURCES.
29445 2011-05-23  Bruno Haible  <bruno@clisp.org>
29447         tmpfile-safer: Move AC_LIBOBJ invocations to module description.
29448         * m4/stdio-safer.m4: Remove file.
29449         * modules/tmpfile-safer (Files): Remove m4/stdio-safer.m4.
29450         (configure.ac): Remove gl_TMPFILE_SAFER call.
29451         (Makefile.am): Augment lib_SOURCES.
29453 2011-05-23  Bruno Haible  <bruno@clisp.org>
29455         popen-safer: Move AC_LIBOBJ invocations to module description.
29456         * m4/stdio-safer.m4 (gl_POPEN_SAFER): Remove macro.
29457         * modules/popen-safer (Files): Remove m4/stdio-safer.m4.
29458         (configure.ac): Remove gl_POPEN_SAFER call.
29459         (Makefile.am): Augment lib_SOURCES.
29461 2011-05-23  Bruno Haible  <bruno@clisp.org>
29463         freopen-safer: Move AC_LIBOBJ invocations to module description.
29464         * m4/stdio-safer.m4 (gl_FREOPEN_SAFER): Remove macro.
29465         * modules/freopen-safer (Files): Remove m4/stdio-safer.m4.
29466         (configure.ac): Remove gl_FREOPEN_SAFER call.
29467         (Makefile.am): Augment lib_SOURCES.
29469 2011-05-23  Bruno Haible  <bruno@clisp.org>
29471         fopen-safer: Move AC_LIBOBJ invocations to module description.
29472         * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Remove macro.
29473         * modules/fopen-safer (Files): Remove m4/stdio-safer.m4.
29474         (configure.ac): Remove gl_FOPEN_SAFER call.
29475         (Makefile.am): Augment lib_SOURCES.
29477 2011-05-23  Bruno Haible  <bruno@clisp.org>
29479         crypto/sha512: Move AC_LIBOBJ invocations to module description.
29480         * m4/sha512.m4 (gl_SHA512): Remove AC_LIBOBJ invocation.
29481         * modules/crypto/sha512 (Makefile.am): Augment lib_SOURCES.
29483 2011-05-23  Bruno Haible  <bruno@clisp.org>
29485         crypto/sha256: Move AC_LIBOBJ invocations to module description.
29486         * m4/sha256.m4 (gl_SHA256): Remove AC_LIBOBJ invocation.
29487         * modules/crypto/sha256 (Makefile.am): Augment lib_SOURCES.
29489 2011-05-23  Bruno Haible  <bruno@clisp.org>
29491         crypto/sha1: Move AC_LIBOBJ invocations to module description.
29492         * m4/sha1.m4 (gl_SHA1): Remove AC_LIBOBJ invocation.
29493         * modules/crypto/sha1 (Makefile.am): Augment lib_SOURCES.
29495 2011-05-23  Bruno Haible  <bruno@clisp.org>
29497         settime: Move AC_LIBOBJ invocations to module description.
29498         * m4/settime.m4 (gl_SETTIME): Remove AC_LIBOBJ invocation.
29499         * modules/settime (Makefile.am): Augment lib_SOURCES.
29501 2011-05-23  Bruno Haible  <bruno@clisp.org>
29503         savedir: Move AC_LIBOBJ invocations to module description.
29504         * m4/savedir.m4 (gl_SAVEDIR): Remove AC_LIBOBJ invocation.
29505         * modules/savedir (Makefile.am): Augment lib_SOURCES.
29507 2011-05-23  Bruno Haible  <bruno@clisp.org>
29509         save-cwd: Move AC_LIBOBJ invocations to module description.
29510         * m4/save-cwd.m4 (gl_SAVE_CWD): Remove AC_LIBOBJ invocation.
29511         * modules/save-cwd (Makefile.am): Augment lib_SOURCES.
29513 2011-05-23  Bruno Haible  <bruno@clisp.org>
29515         same: Move AC_LIBOBJ invocations to module description.
29516         * m4/same.m4 (gl_SAME): Remove AC_LIBOBJ invocation.
29517         * modules/same (Makefile.am): Augment lib_SOURCES.
29519 2011-05-23  Bruno Haible  <bruno@clisp.org>
29521         safe-write: Move AC_LIBOBJ invocations to module description.
29522         * m4/safe-write.m4 (gl_SAFE_WRITE): Remove macro.
29523         * modules/safe-write (configure.ac): Invoke gl_PREREQ_SAFE_WRITE
29524         instead of gl_SAFE_WRITE.
29525         (Makefile.am): Augment lib_SOURCES.
29527 2011-05-23  Bruno Haible  <bruno@clisp.org>
29529         safe-read: Move AC_LIBOBJ invocations to module description.
29530         * m4/safe-read.m4 (gl_SAFE_READ): Remove macro.
29531         * modules/safe-read (configure.ac): Invoke gl_PREREQ_SAFE_READ instead
29532         of gl_SAFE_READ.
29533         (Makefile.am): Augment lib_SOURCES.
29535 2011-05-23  Bruno Haible  <bruno@clisp.org>
29537         safe-alloc: Move AC_LIBOBJ invocations to module description.
29538         * m4/safe-alloc.m4 (gl_SAFE_ALLOC): Remove AC_LIBOBJ invocation.
29539         * modules/safe-alloc (Makefile.am): Augment lib_SOURCES.
29541 2011-05-23  Bruno Haible  <bruno@clisp.org>
29543         crypto/rijndael: Move AC_LIBOBJ invocations to module description.
29544         * m4/rijndael.m4: Remove file.
29545         * modules/crypto/rijndael (Files): Remove it.
29546         (configure.ac): Remove gl_RIJNDAEL call.
29547         (Makefile.am): Augment lib_SOURCES.
29549 2011-05-23  Bruno Haible  <bruno@clisp.org>
29551         readtokens: Move AC_LIBOBJ invocations to module description.
29552         * m4/readtokens.m4 (gl_READTOKENS): Remove AC_LIBOBJ invocation.
29553         * modules/readtokens (Makefile.am): Augment lib_SOURCES.
29555 2011-05-23  Bruno Haible  <bruno@clisp.org>
29557         read-file: Move AC_LIBOBJ invocations to module description.
29558         * m4/read-file.m4 (gl_FUNC_READ_FILE): Remove macro.
29559         * modules/read-file (configure.ac): Invoke gl_PREREQ_READ_FILE instead
29560         of gl_FUNC_READ_FILE.
29561         (Makefile.am): Augment lib_SOURCES.
29563 2011-05-23  Bruno Haible  <bruno@clisp.org>
29565         quotearg: Move AC_LIBOBJ invocations to module description.
29566         * m4/quotearg.m4 (gl_QUOTEARG): Remove AC_LIBOBJ invocation.
29567         * modules/quotearg (Makefile.am): Augment lib_SOURCES.
29569 2011-05-23  Bruno Haible  <bruno@clisp.org>
29571         quote: Move AC_LIBOBJ invocations to module description.
29572         * m4/quote.m4 (gl_QUOTE): Remove AC_LIBOBJ invocation.
29573         * modules/quote (Makefile.am): Augment lib_SOURCES.
29575 2011-05-23  Bruno Haible  <bruno@clisp.org>
29577         posixver: Move AC_LIBOBJ invocations to module description.
29578         * m4/posixver.m4 (gl_POSIXVER): Remove AC_LIBOBJ invocation.
29579         * modules/posixver (Makefile.am): Augment lib_SOURCES.
29581 2011-05-23  Bruno Haible  <bruno@clisp.org>
29583         posixtm: Move AC_LIBOBJ invocations to module description.
29584         * m4/posixtm.m4 (gl_POSIXTM): Remove AC_LIBOBJ invocation.
29585         * modules/posixtm (Makefile.am): Augment lib_SOURCES.
29587 2011-05-23  Bruno Haible  <bruno@clisp.org>
29589         physmem: Move AC_LIBOBJ invocations to module description.
29590         * m4/physmem.m4 (gl_PHYSMEM): Remove AC_LIBOBJ invocation.
29591         * modules/physmem (Makefile.am): Augment lib_SOURCES.
29593 2011-05-23  Bruno Haible  <bruno@clisp.org>
29595         pagealign_alloc: Move AC_LIBOBJ invocations to module description.
29596         * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC): Remove AC_LIBOBJ
29597         invocation.
29598         * modules/pagealign_alloc (Makefile.am): Augment lib_SOURCES.
29600 2011-05-23  Bruno Haible  <bruno@clisp.org>
29602         mpsort: Move AC_LIBOBJ invocations to module description.
29603         * m4/mpsort.m4 (gl_MPSORT): Remove AC_LIBOBJ invocation.
29604         * modules/mpsort (Makefile.am): Augment lib_SOURCES.
29606 2011-05-23  Bruno Haible  <bruno@clisp.org>
29608         modechange: Move AC_LIBOBJ invocations to module description.
29609         * m4/modechange.m4 (gl_MODECHANGE): Remove AC_LIBOBJ invocation.
29610         * modules/modechange (Makefile.am): Augment lib_SOURCES.
29612 2011-05-23  Bruno Haible  <bruno@clisp.org>
29614         mkdir-p: Move AC_LIBOBJ invocations to module description.
29615         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Remove AC_LIBOBJ invocations.
29616         * modules/mkdir-p (Makefile.am): Augment lib_SOURCES.
29618 2011-05-23  Bruno Haible  <bruno@clisp.org>
29620         mkancesdirs: Move AC_LIBOBJ invocations to module description.
29621         * m4/mkancesdirs.m4 (gl_MKANCESDIRS): Remove AC_LIBOBJ invocation.
29622         * modules/mkancesdirs (Makefile.am): Augment lib_SOURCES.
29624 2011-05-23  Bruno Haible  <bruno@clisp.org>
29626         mgetgroups: Move AC_LIBOBJ invocations to module description.
29627         * m4/mgetgroups.m4 (gl_MGETGROUPS): Remove AC_LIBOBJ invocation.
29628         * modules/mgetgroups (Makefile.am): Augment lib_SOURCES.
29630 2011-05-23  Bruno Haible  <bruno@clisp.org>
29632         memxor: Move AC_LIBOBJ invocations to module description.
29633         * m4/memxor.m4 (gl_MEMXOR): Remove AC_LIBOBJ invocation.
29634         * modules/memxor (Makefile.am): Augment lib_SOURCES.
29636 2011-05-23  Bruno Haible  <bruno@clisp.org>
29638         memcoll: Move AC_LIBOBJ invocations to module description.
29639         * m4/memcoll.m4 (gl_MEMCOLL): Remove AC_LIBOBJ invocation.
29640         * modules/memcoll (Makefile.am): Augment lib_SOURCES.
29642 2011-05-23  Bruno Haible  <bruno@clisp.org>
29644         memcasecmp: Move AC_LIBOBJ invocations to module description.
29645         * m4/memcasecmp.m4 (gl_MEMCASECMP): Remove AC_LIBOBJ invocation.
29646         * modules/memcasecmp (Makefile.am): Augment lib_SOURCES.
29648 2011-05-23  Bruno Haible  <bruno@clisp.org>
29650         crypto/md5: Move AC_LIBOBJ invocations to module description.
29651         * m4/md5.m4 (gl_MD5): Remove AC_LIBOBJ invocation.
29652         * modules/crypto/md5 (Makefile.am): Augment lib_SOURCES.
29654 2011-05-23  Bruno Haible  <bruno@clisp.org>
29656         crypto/md4: Move AC_LIBOBJ invocations to module description.
29657         * m4/md4.m4 (gl_MD4): Remove AC_LIBOBJ invocation.
29658         * modules/crypto/md4 (Makefile.am): Augment lib_SOURCES.
29660 2011-05-23  Bruno Haible  <bruno@clisp.org>
29662         crypto/md2: Move AC_LIBOBJ invocations to module description.
29663         * m4/md2.m4: Remove file.
29664         * modules/crypto/md2 (Files): Remove it.
29665         (configure.ac): Remove gl_MD2 call.
29666         (Makefile.am): Augment lib_SOURCES.
29668 2011-05-23  Bruno Haible  <bruno@clisp.org>
29670         long-options: Move AC_LIBOBJ invocations to module description.
29671         * m4/long-options.m4: Remove file.
29672         * modules/long-options (Files): Remove it.
29673         (configure.ac): Remove gl_LONG_OPTIONS call.
29674         (Makefile.am): Augment lib_SOURCES.
29676 2011-05-23  Bruno Haible  <bruno@clisp.org>
29678         i-ring: Move AC_LIBOBJ invocations to module description.
29679         * m4/i-ring.m4 (gl_I_RING): Remove AC_LIBOBJ invocation.
29680         * modules/i-ring (Makefile.am): Augment lib_SOURCES.
29682 2011-05-23  Bruno Haible  <bruno@clisp.org>
29684         idcache: Move AC_LIBOBJ invocations to module description.
29685         * m4/idcache.m4 (gl_IDCACHE): Remove AC_LIBOBJ invocation.
29686         * modules/idcache (Makefile.am): Augment lib_SOURCES.
29688 2011-05-23  Bruno Haible  <bruno@clisp.org>
29690         human: Move AC_LIBOBJ invocations to module description.
29691         * m4/human.m4 (gl_HUMAN): Remove AC_LIBOBJ invocation.
29692         * modules/human (Makefile.am): Augment lib_SOURCES.
29694 2011-05-23  Bruno Haible  <bruno@clisp.org>
29696         crypto/hmac-sha1: Move AC_LIBOBJ invocations to module description.
29697         * m4/hmac-sha1.m4: Remove file.
29698         * modules/crypto/hmac-sha1 (Files): Remove it.
29699         (configure.ac): Remove gl_HMAC_SHA1 call.
29700         (Makefile.am): Augment lib_SOURCES.
29702 2011-05-23  Bruno Haible  <bruno@clisp.org>
29704         crypto/hmac-md5: Move AC_LIBOBJ invocations to module description.
29705         * m4/hmac-md5.m4: Remove file.
29706         * modules/crypto/hmac-md5 (Files): Remove it.
29707         (configure.ac): Remove gl_HMAC_MD5 call.
29708         (Makefile.am): Augment lib_SOURCES.
29710 2011-05-23  Bruno Haible  <bruno@clisp.org>
29712         hash: Move AC_LIBOBJ invocations to module description.
29713         * m4/hash.m4: Remove file.
29714         * modules/hash (Files): Remove it.
29715         (configure.ac): Remove gl_HASH call.
29716         (Makefile.am): Augment lib_SOURCES.
29718 2011-05-23  Bruno Haible  <bruno@clisp.org>
29720         hard-locale: Move AC_LIBOBJ invocations to module description.
29721         * m4/hard-locale.m4 (gl_HARD_LOCALE): Remove AC_LIBOBJ invocation.
29722         * modules/hard-locale (Makefile.am): Augment lib_SOURCES.
29724 2011-05-23  Bruno Haible  <bruno@clisp.org>
29726         getugroups: Move AC_LIBOBJ invocations to module description.
29727         * m4/getugroups.m4 (gl_GETUGROUPS): Remove AC_LIBOBJ invocation.
29728         * modules/getugroups (Makefile.am): Augment lib_SOURCES.
29730 2011-05-23  Bruno Haible  <bruno@clisp.org>
29732         gettime: Move AC_LIBOBJ invocations to module description.
29733         * m4/gettime.m4 (gl_GETTIME): Remove AC_LIBOBJ invocation.
29734         * modules/gettime (Makefile.am): Augment lib_SOURCES.
29736 2011-05-23  Bruno Haible  <bruno@clisp.org>
29738         getndelim2: Move AC_LIBOBJ invocations to module description.
29739         * m4/getndelim2.m4 (gl_GETNDELIM2): Remove AC_LIBOBJ invocation.
29740         * modules/getndelim2 (Makefile.am): Augment lib_SOURCES.
29742 2011-05-23  Bruno Haible  <bruno@clisp.org>
29744         crypto/gc-pbkdf2-sha1: Move AC_LIBOBJ invocations to module description.
29745         * m4/gc-pbkdf2-sha1.m4: Remove file.
29746         * modules/crypto/gc-pbkdf2-sha1 (Files): Remove it.
29747         (configure.ac): Remove gl_GC_PBKDF2_SHA1 call.
29748         (Makefile.am): Augment lib_SOURCES.
29750 2011-05-23  Bruno Haible  <bruno@clisp.org>
29752         fts: Move AC_LIBOBJ invocations to module description.
29753         * m4/fts.m4 (gl_FUNC_FTS_CORE): Move AC_LIBOBJ invocation from here...
29754         * modules/fts (configure.ac): ... to here.
29756 2011-05-23  Bruno Haible  <bruno@clisp.org>
29758         file-type: Move AC_LIBOBJ invocations to module description.
29759         * m4/file-type.m4: Remove file.
29760         * modules/file-type (Files): Remove it.
29761         (configure.ac): Remove gl_FILE_TYPE call.
29762         (Makefile.am): Augment lib_SOURCES.
29764 2011-05-23  Bruno Haible  <bruno@clisp.org>
29766         filenamecat*: Respect rules for use of AC_LIBOBJ.
29767         * m4/filenamecat.m4 (gl_FILE_NAME_CONCAT, gl_FILE_NAME_CONCAT_LGPL):
29768         Remove AC_LIBOBJ invocation.
29769         * modules/filenamecat (Makefile.am): Augment lib_SOURCES.
29770         * modules/filenamecat-lgpl (Makefile.am): Augment lib_SOURCES.
29772 2011-05-23  Bruno Haible  <bruno@clisp.org>
29774         filemode: Move AC_LIBOBJ invocations to module description.
29775         * m4/filemode.m4 (gl_FILEMODE): Remove AC_LIBOBJ invocation.
29776         * modules/filemode (Makefile.am): Augment lib_SOURCES.
29778 2011-05-23  Bruno Haible  <bruno@clisp.org>
29780         openat-safer: Move AC_LIBOBJ invocations to module description.
29781         * m4/fcntl-safer.m4 (gl_OPENAT_SAFER): Remove AC_LIBOBJ invocation.
29782         * modules/openat-safer (Makefile.am): Augment lib_SOURCES.
29784 2011-05-23  Bruno Haible  <bruno@clisp.org>
29786         fcntl-safer: Move AC_LIBOBJ invocations to module description.
29787         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Remove AC_LIBOBJ invocations.
29788         * modules/fcntl-safer (Makefile.am): Augment lib_SOURCES.
29790 2011-05-23  Bruno Haible  <bruno@clisp.org>
29792         exclude: Move AC_LIBOBJ invocations to module description.
29793         * m4/exclude.m4: Remove file.
29794         * modules/exclude (Files): Remove it.
29795         (configure.ac): Remove gl_EXCLUDE call.
29796         (Makefile.am): Augment lib_SOURCES.
29798 2011-05-23  Bruno Haible  <bruno@clisp.org>
29800         dirname*: Respect rules for use of AC_LIBOBJ.
29801         * m4/dirname.m4 (gl_DIRNAME, gl_DIRNAME_LGPL): Remove AC_LIBOBJ
29802         invocations.
29803         * modules/dirname (Makefile.am): Augment lib_SOURCES.
29804         * modules/dirname-lgpl (Makefile.am): Augment lib_SOURCES.
29806 2011-05-23  Bruno Haible  <bruno@clisp.org>
29808         dirent-safer: Move AC_LIBOBJ invocations to module description.
29809         * m4/dirent-safer.m4 (gl_DIRENT_SAFER): Remove AC_LIBOBJ invocation.
29810         * modules/dirent-safer (Makefile.am): Augment lib_SOURCES.
29812 2011-05-23  Bruno Haible  <bruno@clisp.org>
29814         crypto/des: Move AC_LIBOBJ invocations to module description.
29815         * m4/des.m4: Remove file.
29816         * modules/crypto/des (Files): Remove it.
29817         (configure.ac): Remove gl_DES call.
29818         (Makefile.am): Augment lib_SOURCES.
29820 2011-05-23  Bruno Haible  <bruno@clisp.org>
29822         cycle-check: Move AC_LIBOBJ invocations to module description.
29823         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Remove AC_LIBOBJ invocation.
29824         * modules/cycle-check (Makefile.am): Augment lib_SOURCES.
29826 2011-05-23  Bruno Haible  <bruno@clisp.org>
29828         c-strtold: Move AC_LIBOBJ invocations to module description.
29829         * m4/c-strtod.m4 (gl_C_STRTOLD): Remove AC_LIBOBJ invocation.
29830         * modules/c-strtold (Makefile.am): Augment lib_SOURCES.
29832 2011-05-23  Bruno Haible  <bruno@clisp.org>
29834         c-strtod: Move AC_LIBOBJ invocations to module description.
29835         * m4/c-strtod.m4 (gl_C_STRTOD): Remove AC_LIBOBJ invocation.
29836         * modules/c-strtod (Makefile.am): Augment lib_SOURCES.
29838 2011-05-23  Bruno Haible  <bruno@clisp.org>
29840         crc: Move AC_LIBOBJ invocations to module description.
29841         * m4/crc.m4: Remove file.
29842         * modules/crc (Files): Remove it.
29843         (configure.ac): Remove gl_CRC call.
29844         (Makefile.am): Augment lib_SOURCES.
29846 2011-05-23  Bruno Haible  <bruno@clisp.org>
29848         close-stream: Move AC_LIBOBJ invocations to module description.
29849         * m4/close-stream.m4 (gl_CLOSE_STREAM): Remove AC_LIBOBJ invocation.
29850         * modules/close-stream (Makefile.am): Augment lib_SOURCES.
29852 2011-05-23  Bruno Haible  <bruno@clisp.org>
29854         closeout: Move AC_LIBOBJ invocations to module description.
29855         * m4/closeout.m4 (gl_CLOSEOUT): Remove AC_LIBOBJ invocation.
29856         * modules/closeout (Makefile.am): Augment lib_SOURCES.
29858 2011-05-23  Bruno Haible  <bruno@clisp.org>
29860         closein: Move AC_LIBOBJ invocations to module description.
29861         * m4/closein.m4 (gl_CLOSEIN): Remove AC_LIBOBJ invocation.
29862         * modules/closein (Makefile.am): Augment lib_SOURCES.
29864 2011-05-23  Bruno Haible  <bruno@clisp.org>
29866         cloexec: Move AC_LIBOBJ invocations to module description.
29867         * m4/cloexec.m4: Remove file.
29868         * modules/cloexec (Files): Remove it.
29869         (configure.ac): Remove gl_CLOEXEC call.
29870         (Makefile.am): Augment lib_SOURCES.
29872 2011-05-23  Bruno Haible  <bruno@clisp.org>
29874         check-version: Move AC_LIBOBJ invocations to module description.
29875         * m4/check-version.m4: Remove file.
29876         * modules/check-version (Files): Remove it.
29877         (configure.ac): Remove gl_CHECK_VERSION call.
29878         (Makefile.am): Augment lib_SOURCES.
29880 2011-05-23  Bruno Haible  <bruno@clisp.org>
29882         chdir-safer: Move AC_LIBOBJ invocations to module description.
29883         * m4/chdir-safer.m4 (gl_CHDIR_SAFER): Remove AC_LIBOBJ invocation.
29884         * modules/chdir-safer (Makefile.am): Augment lib_SOURCES.
29886 2011-05-23  Bruno Haible  <bruno@clisp.org>
29888         canonicalize: Move AC_LIBOBJ invocations to module description.
29889         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE): Remove
29890         AC_LIBOBJ invocation.
29891         * modules/canonicalize (Makefile.am): Augment lib_SOURCES.
29893 2011-05-23  Bruno Haible  <bruno@clisp.org>
29895         canon-host: Move AC_LIBOBJ invocations to module description.
29896         * m4/canon-host.m4 (gl_CANON_HOST): Remove macro.
29897         * modules/canon-host (configure.ac): Invoke gl_PREREQ_CANON_HOST
29898         instead of gl_CANON_HOST.
29899         (Makefile.am): Augment lib_SOURCES.
29901 2011-05-23  Bruno Haible  <bruno@clisp.org>
29903         backupfile: Move AC_LIBOBJ invocations to module description.
29904         * m4/backupfile.m4 (gl_BACKUPFILE): Remove AC_LIBOBJ invocation.
29905         * modules/backupfile (Makefile.am): Augment lib_SOURCES.
29907 2011-05-23  Bruno Haible  <bruno@clisp.org>
29909         argmatch: Move AC_LIBOBJ invocations to module description.
29910         * m4/argmatch.m4: Remove file.
29911         * modules/argmatch (Files): Remove it.
29912         (configure.ac): Remove gl_ARGMATCH call.
29913         (Makefile.am): Augment lib_SOURCES.
29915 2011-05-23  Bruno Haible  <bruno@clisp.org>
29917         crypto/arctwo: Move AC_LIBOBJ invocations to module description.
29918         * m4/arctwo.m4 (gl_ARCTWO): Remove AC_LIBOBJ invocation.
29919         * modules/crypto/arctwo (Makefile.am): Augment lib_SOURCES.
29921 2011-05-23  Bruno Haible  <bruno@clisp.org>
29923         crypto/arcfour: Move AC_LIBOBJ invocations to module description.
29924         * m4/arcfour.m4: Remove file.
29925         * modules/crypto/arcfour (Files): Remove it.
29926         (configure.ac): Remove gl_ARCFOUR call.
29927         (Makefile.am): Augment lib_SOURCES.
29929 2011-05-22  Bruno Haible  <bruno@clisp.org>
29931         write: Move AC_LIBOBJ invocations to module description.
29932         * m4/write.m4 (gl_FUNC_WRITE): Move AC_LIBOBJ invocation from here...
29933         * modules/write (configure.ac): ... to here.
29935 2011-05-22  Bruno Haible  <bruno@clisp.org>
29937         wmemset: Move AC_LIBOBJ invocations to module description.
29938         * m4/wmemset.m4 (gl_FUNC_WMEMSET): Move AC_LIBOBJ invocation from
29939         here...
29940         * modules/wmemset (configure.ac): ... to here.
29942 2011-05-22  Bruno Haible  <bruno@clisp.org>
29944         wmemmove: Move AC_LIBOBJ invocations to module description.
29945         * m4/wmemmove.m4 (gl_FUNC_WMEMMOVE): Move AC_LIBOBJ invocation from
29946         here...
29947         * modules/wmemmove (configure.ac): ... to here.
29949 2011-05-22  Bruno Haible  <bruno@clisp.org>
29951         wmemcpy: Move AC_LIBOBJ invocations to module description.
29952         * m4/wmemcpy.m4 (gl_FUNC_WMEMCPY): Move AC_LIBOBJ invocation from
29953         here...
29954         * modules/wmemcpy (configure.ac): ... to here.
29956 2011-05-22  Bruno Haible  <bruno@clisp.org>
29958         wmemcmp: Move AC_LIBOBJ invocations to module description.
29959         * m4/wmemcmp.m4 (gl_FUNC_WMEMCMP): Move AC_LIBOBJ invocation from
29960         here...
29961         * modules/wmemcmp (configure.ac): ... to here.
29963 2011-05-22  Bruno Haible  <bruno@clisp.org>
29965         wmemchr: Move AC_LIBOBJ invocations to module description.
29966         * m4/wmemchr.m4 (gl_FUNC_WMEMCHR): Move AC_LIBOBJ invocation from
29967         here...
29968         * modules/wmemchr (configure.ac): ... to here.
29970 2011-05-22  Bruno Haible  <bruno@clisp.org>
29972         wcswidth: Move AC_LIBOBJ invocations to module description.
29973         * m4/wcswidth.m4 (gl_FUNC_WCSWIDTH): Move AC_LIBOBJ invocation from
29974         here...
29975         * modules/wcswidth (configure.ac): ... to here.
29977 2011-05-22  Bruno Haible  <bruno@clisp.org>
29979         wcwidth: Respect rules for use of AC_LIBOBJ.
29980         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Set HAVE_WCWIDTH. Move AC_LIBOBJ
29981         invocation from here...
29982         * modules/wcwidth (configure.ac): ... to here.
29983         (Depends-on): Update conditions.
29985 2011-05-22  Bruno Haible  <bruno@clisp.org>
29987         wctype: Move AC_LIBOBJ invocations to module description.
29988         * m4/wctype.m4 (gl_FUNC_WCTYPE): Set HAVE_WCTYPE. Move AC_LIBOBJ
29989         invocation from here...
29990         * modules/wctype (configure.ac): ... to here.
29991         (Depends-on): Update conditions.
29993 2011-05-22  Bruno Haible  <bruno@clisp.org>
29995         wctrans: Move AC_LIBOBJ invocations to module description.
29996         * m4/wctrans.m4 (gl_FUNC_WCTRANS): Set HAVE_WCTRANS. Move AC_LIBOBJ
29997         invocation from here...
29998         * modules/wctrans (configure.ac): ... to here.
30000 2011-05-22  Bruno Haible  <bruno@clisp.org>
30002         wctomb: Move AC_LIBOBJ invocations to module description.
30003         * m4/wctomb.m4 (gl_FUNC_WCTOMB): Move AC_LIBOBJ and gl_PREREQ_WCTOMB
30004         invocations from here...
30005         * modules/wctomb (configure.ac): ... to here.
30007 2011-05-22  Bruno Haible  <bruno@clisp.org>
30009         wctob: Move AC_LIBOBJ invocations to module description.
30010         * m4/wctob.m4 (gl_FUNC_WCTOB): Set HAVE_WCTOB. Move AC_LIBOBJ and
30011         gl_PREREQ_WCTOB invocations from here...
30012         * modules/wctob (configure.ac): ... to here.
30013         (Depends-on): Update conditions.
30015 2011-05-22  Bruno Haible  <bruno@clisp.org>
30017         wcsxfrm: Move AC_LIBOBJ invocations to module description.
30018         * m4/wcsxfrm.m4 (gl_FUNC_WCSXFRM): Move AC_LIBOBJ invocation from
30019         here...
30020         * modules/wcsxfrm (configure.ac): ... to here.
30022 2011-05-22  Bruno Haible  <bruno@clisp.org>
30024         wcstok: Move AC_LIBOBJ invocations to module description.
30025         * m4/wcstok.m4 (gl_FUNC_WCSTOK): Move AC_LIBOBJ invocation from here...
30026         * modules/wcstok (configure.ac): ... to here.
30028 2011-05-22  Bruno Haible  <bruno@clisp.org>
30030         wcsstr: Move AC_LIBOBJ invocations to module description.
30031         * m4/wcsstr.m4 (gl_FUNC_WCSSTR): Move AC_LIBOBJ invocation from here...
30032         * modules/wcsstr (configure.ac): ... to here.
30034 2011-05-22  Bruno Haible  <bruno@clisp.org>
30036         wcsspn: Move AC_LIBOBJ invocations to module description.
30037         * m4/wcsspn.m4 (gl_FUNC_WCSSPN): Move AC_LIBOBJ invocation from here...
30038         * modules/wcsspn (configure.ac): ... to here.
30040 2011-05-22  Bruno Haible  <bruno@clisp.org>
30042         wcsrtombs: Move AC_LIBOBJ invocations to module description.
30043         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): Move AC_LIBOBJ and
30044         gl_PREREQ_WCSRTOMBS invocations from here...
30045         * modules/wcsrtombs (configure.ac): ... to here.
30047 2011-05-22  Bruno Haible  <bruno@clisp.org>
30049         wcsrchr: Move AC_LIBOBJ invocations to module description.
30050         * m4/wcsrchr.m4 (gl_FUNC_WCSRCHR): Move AC_LIBOBJ invocation from
30051         here...
30052         * modules/wcsrchr (configure.ac): ... to here.
30054 2011-05-22  Bruno Haible  <bruno@clisp.org>
30056         wcspbrk: Move AC_LIBOBJ invocations to module description.
30057         * m4/wcspbrk.m4 (gl_FUNC_WCSPBRK): Move AC_LIBOBJ invocation from
30058         here...
30059         * modules/wcspbrk (configure.ac): ... to here.
30061 2011-05-22  Bruno Haible  <bruno@clisp.org>
30063         wcsnrtombs: Move AC_LIBOBJ invocations to module description.
30064         * m4/wcsnrtombs.m4 (gl_FUNC_WCSNRTOMBS): Move AC_LIBOBJ and
30065         gl_PREREQ_WCSNRTOMBS invocations from here...
30066         * modules/wcsnrtombs (configure.ac): ... to here.
30068 2011-05-22  Bruno Haible  <bruno@clisp.org>
30070         wcsnlen: Move AC_LIBOBJ invocations to module description.
30071         * m4/wcsnlen.m4 (gl_FUNC_WCSNLEN): Move AC_LIBOBJ invocation from
30072         here...
30073         * modules/wcsnlen (configure.ac): ... to here.
30075 2011-05-22  Bruno Haible  <bruno@clisp.org>
30077         wcsncpy: Move AC_LIBOBJ invocations to module description.
30078         * m4/wcsncpy.m4 (gl_FUNC_WCSNCPY): Move AC_LIBOBJ invocation from
30079         here...
30080         * modules/wcsncpy (configure.ac): ... to here.
30082 2011-05-22  Bruno Haible  <bruno@clisp.org>
30084         wcsncmp: Move AC_LIBOBJ invocations to module description.
30085         * m4/wcsncmp.m4 (gl_FUNC_WCSNCMP): Move AC_LIBOBJ invocation from
30086         here...
30087         * modules/wcsncmp (configure.ac): ... to here.
30089 2011-05-22  Bruno Haible  <bruno@clisp.org>
30091         wcsncat: Move AC_LIBOBJ invocations to module description.
30092         * m4/wcsncat.m4 (gl_FUNC_WCSNCAT): Move AC_LIBOBJ invocation from
30093         here...
30094         * modules/wcsncat (configure.ac): ... to here.
30096 2011-05-22  Bruno Haible  <bruno@clisp.org>
30098         wcsncasecmp: Move AC_LIBOBJ invocations to module description.
30099         * m4/wcsncasecmp.m4 (gl_FUNC_WCSNCASECMP): Move AC_LIBOBJ invocation
30100         from here...
30101         * modules/wcsncasecmp (configure.ac): ... to here.
30103 2011-05-22  Bruno Haible  <bruno@clisp.org>
30105         wcslen: Move AC_LIBOBJ invocations to module description.
30106         * m4/wcslen.m4 (gl_FUNC_WCSLEN): Move AC_LIBOBJ invocation from here...
30107         * modules/wcslen (configure.ac): ... to here.
30109 2011-05-22  Bruno Haible  <bruno@clisp.org>
30111         wcsdup: Move AC_LIBOBJ invocations to module description.
30112         * m4/wcsdup.m4 (gl_FUNC_WCSDUP): Move AC_LIBOBJ invocation from here...
30113         * modules/wcsdup (configure.ac): ... to here.
30115 2011-05-22  Bruno Haible  <bruno@clisp.org>
30117         wcscspn: Move AC_LIBOBJ invocations to module description.
30118         * m4/wcscspn.m4 (gl_FUNC_WCSCSPN): Move AC_LIBOBJ invocation from
30119         here...
30120         * modules/wcscspn (configure.ac): ... to here.
30122 2011-05-22  Bruno Haible  <bruno@clisp.org>
30124         wcscpy: Move AC_LIBOBJ invocations to module description.
30125         * m4/wcscpy.m4 (gl_FUNC_WCSCPY): Move AC_LIBOBJ invocation from here...
30126         * modules/wcscpy (configure.ac): ... to here.
30128 2011-05-22  Bruno Haible  <bruno@clisp.org>
30130         wcscoll: Move AC_LIBOBJ invocations to module description.
30131         * m4/wcscoll.m4 (gl_FUNC_WCSCOLL): Move AC_LIBOBJ invocation from
30132         here...
30133         * modules/wcscoll (configure.ac): ... to here.
30135 2011-05-22  Bruno Haible  <bruno@clisp.org>
30137         wcscmp: Move AC_LIBOBJ invocations to module description.
30138         * m4/wcscmp.m4 (gl_FUNC_WCSCMP): Move AC_LIBOBJ invocation from here...
30139         * modules/wcscmp (configure.ac): ... to here.
30141 2011-05-22  Bruno Haible  <bruno@clisp.org>
30143         wcschr: Move AC_LIBOBJ invocations to module description.
30144         * m4/wcschr.m4 (gl_FUNC_WCSCHR): Move AC_LIBOBJ invocation from here...
30145         * modules/wcschr (configure.ac): ... to here.
30147 2011-05-22  Bruno Haible  <bruno@clisp.org>
30149         wcscat: Move AC_LIBOBJ invocations to module description.
30150         * m4/wcscat.m4 (gl_FUNC_WCSCAT): Move AC_LIBOBJ invocation from here...
30151         * modules/wcscat (configure.ac): ... to here.
30153 2011-05-22  Bruno Haible  <bruno@clisp.org>
30155         wcscasecmp: Move AC_LIBOBJ invocations to module description.
30156         * m4/wcscasecmp.m4 (gl_FUNC_WCSCASECMP): Move AC_LIBOBJ invocation from
30157         here...
30158         * modules/wcscasecmp (configure.ac): ... to here.
30160 2011-05-22  Bruno Haible  <bruno@clisp.org>
30162         wcrtomb: Move AC_LIBOBJ invocations to module description.
30163         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Move AC_LIBOBJ and gl_PREREQ_WCRTOMB
30164         invocations from here...
30165         * modules/wcrtomb (configure.ac): ... to here.
30167 2011-05-22  Bruno Haible  <bruno@clisp.org>
30169         wcpncpy: Move AC_LIBOBJ invocations to module description.
30170         * m4/wcpncpy.m4 (gl_FUNC_WCPNCPY): Move AC_LIBOBJ invocation from
30171         here...
30172         * modules/wcpncpy (configure.ac): ... to here.
30174 2011-05-22  Bruno Haible  <bruno@clisp.org>
30176         wcpcpy: Move AC_LIBOBJ invocations to module description.
30177         * m4/wcpcpy.m4 (gl_FUNC_WCPCPY): Move AC_LIBOBJ invocation from here...
30178         * modules/wcpcpy (configure.ac): ... to here.
30180 2011-05-22  Bruno Haible  <bruno@clisp.org>
30182         waitpid: Move AC_LIBOBJ invocations to module description.
30183         * m4/waitpid.m4 (gl_FUNC_WAITPID): Set HAVE_WAITPID. Move AC_LIBOBJ
30184         invocation from here...
30185         * modules/waitpid (configure.ac): ... to here.
30187 2011-05-22  Bruno Haible  <bruno@clisp.org>
30189         utimensat: Move AC_LIBOBJ invocations to module description.
30190         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Move AC_LIBOBJ invocations from
30191         here...
30192         * modules/utimensat (configure.ac): ... to here.
30194 2011-05-22  Bruno Haible  <bruno@clisp.org>
30196         usleep: Move AC_LIBOBJ invocations to module description.
30197         * m4/usleep.m4 (gl_FUNC_USLEEP): Move AC_LIBOBJ invocations from
30198         here...
30199         * modules/usleep (configure.ac): ... to here.
30201 2011-05-22  Bruno Haible  <bruno@clisp.org>
30203         unlockpt: Move AC_LIBOBJ invocations to module description.
30204         * m4/unlockpt.m4 (gl_FUNC_UNLOCKPT): Move AC_LIBOBJ and
30205         gl_PREREQ_UNLOCKPT invocations from here...
30206         * modules/unlockpt (configure.ac): ... to here.
30208 2011-05-22  Bruno Haible  <bruno@clisp.org>
30210         unlink: Respect rules for use of AC_LIBOBJ.
30211         * m4/unlink.m4 (gl_FUNC_UNLINK): Move AC_LIBOBJ invocation from here...
30212         * modules/unlink (configure.ac): ... to here.
30214 2011-05-22  Bruno Haible  <bruno@clisp.org>
30216         uname: Move AC_LIBOBJ invocations to module description.
30217         * m4/uname.m4 (gl_FUNC_UNAME): Call AC_CHECK_FUNCS instead of
30218         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_UNAME invocations from
30219         here...
30220         * modules/uname (configure.ac): ... to here.
30222 2011-05-22  Bruno Haible  <bruno@clisp.org>
30224         ttyname_r: Move AC_LIBOBJ invocations to module description.
30225         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Move AC_LIBOBJ and
30226         gl_PREREQ_TTYNAME_R invocations from here...
30227         * modules/ttyname_r (configure.ac): ... to here.
30229 2011-05-22  Bruno Haible  <bruno@clisp.org>
30231         tsearch: Move AC_LIBOBJ invocations to module description.
30232         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Move AC_LIBOBJ and gl_PREREQ_TSEARCH
30233         invocations from here...
30234         * modules/tsearch (configure.ac): ... to here.
30236 2011-05-22  Bruno Haible  <bruno@clisp.org>
30238         towctrans: Move AC_LIBOBJ invocations to module description.
30239         * m4/towctrans.m4 (gl_FUNC_TOWCTRANS): Set HAVE_TOWCTRANS. Move
30240         AC_LIBOBJ invocation from here...
30241         * modules/towctrans (configure.ac): ... to here.
30243 2011-05-22  Bruno Haible  <bruno@clisp.org>
30245         tmpfile: Move AC_LIBOBJ invocations to module description.
30246         * m4/tmpfile.m4 (gl_FUNC_TMPFILE): Move AC_LIBOBJ and gl_PREREQ_TMPFILE
30247         invocations from here...
30248         * modules/tmpfile (configure.ac): ... to here.
30250 2011-05-22  Bruno Haible  <bruno@clisp.org>
30252         times: Move AC_LIBOBJ invocations to module description.
30253         * m4/times.m4 (gl_FUNC_TIMES): Move AC_LIBOBJ invocation from here...
30254         * modules/times (configure.ac): ... to here.
30256 2011-05-22  Bruno Haible  <bruno@clisp.org>
30258         time_r: Move AC_LIBOBJ invocations to module description.
30259         * m4/time_r.m4 (gl_TIME_R): Move AC_LIBOBJ and gl_PREREQ_TIME_R
30260         invocations from here...
30261         * modules/time_r (configure.ac): ... to here.
30263 2011-05-22  Bruno Haible  <bruno@clisp.org>
30265         timegm: Move AC_LIBOBJ invocations to module description.
30266         * m4/timegm.m4 (gl_FUNC_TIMEGM): Move AC_LIBOBJ and gl_PREREQ_TIMEGM
30267         invocations from here...
30268         * modules/timegm (configure.ac): ... to here.
30270 2011-05-22  Bruno Haible  <bruno@clisp.org>
30272         tcgetsid: Move AC_LIBOBJ invocations to module description.
30273         * m4/tcgetsid.m4 (gl_FUNC_TCGETSID): Set HAVE_TCGETSID. Move AC_LIBOBJ
30274         and gl_PREREQ_TCGETSID invocations from here...
30275         * modules/tcgetsid (configure.ac): ... to here.
30276         (Depends-on): Update conditions.
30278 2011-05-22  Bruno Haible  <bruno@clisp.org>
30280         symlinkat: Move AC_LIBOBJ invocations to module description.
30281         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Move AC_LIBOBJ invocation from
30282         here...
30283         * modules/symlinkat (configure.ac): ... to here.
30285 2011-05-22  Bruno Haible  <bruno@clisp.org>
30287         symlink: Move AC_LIBOBJ invocations to module description.
30288         * m4/symlink.m4 (gl_FUNC_SYMLINK): Move AC_LIBOBJ invocations from
30289         here...
30290         * modules/symlink (configure.ac): ... to here.
30292 2011-05-22  Bruno Haible  <bruno@clisp.org>
30294         strverscmp: Move AC_LIBOBJ invocations to module description.
30295         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Call AC_CHECK_FUNCS instead of
30296         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRVERSCMP invocations
30297         from here...
30298         * modules/strverscmp (configure.ac): ... to here.
30300 2011-05-22  Bruno Haible  <bruno@clisp.org>
30302         strtok_r: Move AC_LIBOBJ invocations to module description.
30303         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Set HAVE_STRTOK_R. Move AC_LIBOBJ
30304         and gl_PREREQ_STRTOK_R invocations from here...
30305         * modules/strtok_r (configure.ac): ... to here.
30306         (Depends-on): Update conditions.
30308 2011-05-22  Bruno Haible  <bruno@clisp.org>
30310         strtoumax: Move AC_LIBOBJ invocations to module description.
30311         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Call AC_CHECK_FUNCS instead of
30312         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRTOUMAX invocations
30313         from here...
30314         * modules/strtoumax (configure.ac): ... to here.
30316 2011-05-22  Bruno Haible  <bruno@clisp.org>
30318         strtoimax: Move AC_LIBOBJ invocations to module description.
30319         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Call AC_CHECK_FUNCS instead of
30320         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRTOIMAX invocations
30321         from here...
30322         * modules/strtoimax (configure.ac): ... to here.
30324 2011-05-22  Bruno Haible  <bruno@clisp.org>
30326         strtoull: Move AC_LIBOBJ invocations to module description.
30327         * m4/strtoull.m4 (gl_FUNC_STRTOULL): Call AC_CHECK_FUNCS instead of
30328         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRTOULL invocations
30329         from here...
30330         * modules/strtoull (configure.ac): ... to here.
30332 2011-05-22  Bruno Haible  <bruno@clisp.org>
30334         strtoll: Move AC_LIBOBJ invocations to module description.
30335         * m4/strtoll.m4 (gl_FUNC_STRTOLL): Call AC_CHECK_FUNCS instead of
30336         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRTOLL invocations from
30337         here...
30338         * modules/strtoll (configure.ac): ... to here.
30340 2011-05-22  Bruno Haible  <bruno@clisp.org>
30342         strtoul: Move AC_LIBOBJ invocations to module description.
30343         * m4/strtoul.m4 (gl_FUNC_STRTOUL): Call AC_CHECK_FUNCS instead of
30344         AC_REPLACE_FUNCS. Move AC_LIBOBJ invocation from here...
30345         * modules/strtoul (configure.ac): ... to here.
30347 2011-05-22  Bruno Haible  <bruno@clisp.org>
30349         strtol: Move AC_LIBOBJ invocations to module description.
30350         * m4/strtol.m4 (gl_FUNC_STRTOL): Call AC_CHECK_FUNCS instead of
30351         AC_REPLACE_FUNCS. Move AC_LIBOBJ invocation from here...
30352         * modules/strtol (configure.ac): ... to here.
30354 2011-05-22  Bruno Haible  <bruno@clisp.org>
30356         strtod: Move AC_LIBOBJ invocations to module description.
30357         * m4/strtod.m4 (gl_FUNC_STRTOD): Move AC_LIBOBJ and gl_PREREQ_STRTOD
30358         invocations from here...
30359         * modules/strtod (configure.ac): ... to here.
30361 2011-05-22  Bruno Haible  <bruno@clisp.org>
30363         strstr*: Move AC_LIBOBJ invocations to module description.
30364         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Move AC_LIBOBJ
30365         invocations from here...
30366         * modules/strstr-simple (configure.ac): ... to here.
30367         * modules/strstr (configure.ac): ... and here.
30369 2011-05-22  Bruno Haible  <bruno@clisp.org>
30371         strsignal: Move AC_LIBOBJ invocations to module description.
30372         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Set HAVE_STRSIGNAL. Move
30373         AC_LIBOBJ and gl_PREREQ_STRSIGNAL invocations from here...
30374         * modules/strsignal (configure.ac): ... to here.
30375         (Depends-on): Update conditions.
30377 2011-05-22  Bruno Haible  <bruno@clisp.org>
30379         strsep: Move AC_LIBOBJ invocations to module description.
30380         * m4/strsep.m4 (gl_FUNC_STRSEP): Call AC_CHECK_FUNCS instead of
30381         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRSEP invocations from
30382         here...
30383         * modules/strsep (configure.ac): ... to here.
30385 2011-05-22  Bruno Haible  <bruno@clisp.org>
30387         strptime: Move AC_LIBOBJ invocations to module description.
30388         * m4/strptime.m4 (gl_FUNC_STRPTIME): Move AC_LIBOBJ and
30389         gl_PREREQ_STRPTIME invocations from here...
30390         * modules/strptime (configure.ac): ... to here.
30392 2011-05-22  Bruno Haible  <bruno@clisp.org>
30394         strpbrk: Move AC_LIBOBJ invocations to module description.
30395         * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Call AC_CHECK_FUNCS instead of
30396         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRPBRK invocations from
30397         here...
30398         * modules/strpbrk (configure.ac): ... to here.
30400 2011-05-22  Bruno Haible  <bruno@clisp.org>
30402         strnlen: Move AC_LIBOBJ invocations to module description.
30403         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Move AC_LIBOBJ and gl_PREREQ_STRNLEN
30404         invocations from here...
30405         * modules/strnlen (configure.ac): ... to here.
30407 2011-05-22  Bruno Haible  <bruno@clisp.org>
30409         strndup: Move AC_LIBOBJ invocations to module description.
30410         * m4/strndup.m4 (gl_FUNC_STRNDUP): Set HAVE_STRNDUP. Move AC_LIBOBJ
30411         invocations from here...
30412         * modules/strndup (configure.ac): ... to here.
30413         (Depends-on): Update conditions.
30415 2011-05-22  Bruno Haible  <bruno@clisp.org>
30417         strncat: Move AC_LIBOBJ invocations to module description.
30418         * m4/strncat.m4 (gl_FUNC_STRNCAT): Move AC_LIBOBJ and gl_PREREQ_STRNCAT
30419         invocations from here...
30420         * modules/strncat (configure.ac): ... to here.
30422 2011-05-22  Bruno Haible  <bruno@clisp.org>
30424         strdup, strdup-posix: Move AC_LIBOBJ invocations to module description.
30425         * m4/strdup.m4 (gl_FUNC_STRDUP): Move AC_LIBOBJ and gl_PREREQ_STRDUP
30426         invocations from here...
30427         * modules/strdup (configure.ac): ... to here.
30428         * modules/strdup-posix (configure.ac): ... and here.
30430 2011-05-22  Bruno Haible  <bruno@clisp.org>
30432         strcspn: Move AC_LIBOBJ invocations to module description.
30433         * m4/strcspn.m4 (gl_FUNC_STRCSPN): Call AC_CHECK_FUNCS instead of
30434         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRCSPN invocations from
30435         here...
30436         * modules/strcspn (configure.ac): ... to here.
30438 2011-05-22  Bruno Haible  <bruno@clisp.org>
30440         strchrnul: Move AC_LIBOBJ invocations to module description.
30441         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Move AC_LIBOBJ and
30442         gl_PREREQ_STRCHRNUL invocations from here...
30443         * modules/strchrnul (configure.ac): ... to here.
30445 2011-05-22  Bruno Haible  <bruno@clisp.org>
30447         strcasestr*: Move AC_LIBOBJ invocations to module description.
30448         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE, gl_FUNC_STRCASESTR):
30449         Move AC_LIBOBJ and gl_PREREQ_STRCASESTR invocations from here...
30450         * modules/strcasestr-simple (configure.ac): ... to here.
30451         * modules/strcasestr (configure.ac): ... and here.
30453 2011-05-22  Bruno Haible  <bruno@clisp.org>
30455         strcase: Move AC_LIBOBJ invocations to module description.
30456         * m4/strcase.m4 (gl_FUNC_STRNCASECMP): Set HAVE_STRNCASECMP.
30457         (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP): Call AC_CHECK_FUNCS instead
30458         of AC_REPLACE_FUNCS. Move AC_LIBOBJ, gl_PREREQ_STRCASECMP,
30459         gl_PREREQ_STRNCASECMP invocations from here...
30460         * modules/strcase (configure.ac): ... to here.
30462 2011-05-22  Bruno Haible  <bruno@clisp.org>
30464         stpncpy: Move AC_LIBOBJ invocations to module description.
30465         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Move AC_LIBOBJ invocations from
30466         here...
30467         * modules/stpncpy (configure.ac): ... to here.
30469 2011-05-22  Bruno Haible  <bruno@clisp.org>
30471         stpcpy: Move AC_LIBOBJ invocations to module description.
30472         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Call AC_CHECK_FUNCS instead of
30473         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STPCPY invocations from
30474         here...
30475         * modules/stpcpy (configure.ac): ... to here.
30477 2011-05-21  Bruno Haible  <bruno@clisp.org>
30479         stat: Move AC_LIBOBJ invocations to module description.
30480         * m4/stat.m4 (gl_PREREQ_STAT): New macro, extracted from gl_FUNC_STAT.
30481         (gl_FUNC_STAT): Move AC_LIBOBJ and gl_PREREQ_STAT invocations from
30482         here...
30483         * modules/stat (configure.ac): ... to here.
30485 2011-05-21  Bruno Haible  <bruno@clisp.org>
30487         sleep: Move AC_LIBOBJ invocations to module description.
30488         * m4/sleep.m4 (gl_FUNC_SLEEP): Move AC_LIBOBJ invocations from here...
30489         * modules/sleep (configure.ac): ... to here.
30491 2011-05-21  Bruno Haible  <bruno@clisp.org>
30493         signbit: Move AC_LIBOBJ invocations to module description.
30494         * m4/signbit.m4 (gl_SIGNBIT): Move AC_LIBOBJ invocations from here...
30495         * modules/signbit (configure.ac): ... to here.
30497 2011-05-21  Bruno Haible  <bruno@clisp.org>
30499         sigprocmask: Move AC_LIBOBJ invocations to module description.
30500         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Move AC_LIBOBJ and
30501         gl_PREREQ_SIGPROMASK invocations from here...
30502         * modules/sigprocmask (configure.ac): ... to here.
30504 2011-05-21  Bruno Haible  <bruno@clisp.org>
30506         sigaction: Move AC_LIBOBJ invocations to module description.
30507         * m4/sigaction.m4 (gl_SIGACTION): Move AC_LIBOBJ and
30508         gl_PREREQ_SIGACTION invocations from here...
30509         * modules/sigaction (configure.ac): ... to here.
30511 2011-05-21  Bruno Haible  <bruno@clisp.org>
30513         sig2str: Move AC_LIBOBJ invocations to module description.
30514         * m4/sig2str.m4 (gl_FUNC_SIG2STR): Call AC_CHECK_FUNCS instead of
30515         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_SIG2STR invocations from
30516         here...
30517         * modules/sig2str (configure.ac): ... to here.
30519 2011-05-21  Bruno Haible  <bruno@clisp.org>
30521         setlocale: Move AC_LIBOBJ invocations to module description.
30522         * m4/setlocale.m4 (gl_FUNC_SETLOCALE): Move AC_LIBOBJ and
30523         gl_PREREQ_SETLOCALE invocations from here...
30524         * modules/setlocale (configure.ac): ... to here.
30526 2011-05-21  Bruno Haible  <bruno@clisp.org>
30528         unsetenv: Move AC_LIBOBJ invocations to module description.
30529         * m4/setenv.m4 (gl_FUNC_UNSETENV): Set HAVE_UNSETENV. Move AC_LIBOBJ
30530         and gl_PREREQ_UNSETENV invocations from here...
30531         * modules/unsetenv (configure.ac): ... to here.
30532         (Depends-on): Update.
30534 2011-05-21  Bruno Haible  <bruno@clisp.org>
30536         setenv: Move AC_LIBOBJ invocations to module description.
30537         * m4/setenv.m4 (gl_FUNC_SETENV): Move AC_LIBOBJ invocations from
30538         here...
30539         * modules/setenv (configure.ac): ... to here.
30541 2011-05-21  Bruno Haible  <bruno@clisp.org>
30543         selinux-h: Move AC_LIBOBJ invocations to module description.
30544         * m4/selinux-selinux-h.m4 (gl_HEADERS_SELINUX_SELINUX_H): Move
30545         AC_LIBOBJ invocation from here...
30546         * modules/selinux-h (configure.ac): ... to here.
30548 2011-05-21  Bruno Haible  <bruno@clisp.org>
30550         select: Respect rules for use of AC_LIBOBJ.
30551         * m4/select.m4 (gl_FUNC_SELECT): Move AC_LIBOBJ invocations from
30552         here...
30553         * modules/select (configure.ac): ... to here.
30555 2011-05-21  Bruno Haible  <bruno@clisp.org>
30557         scandir: Move AC_LIBOBJ invocations to module description.
30558         * m4/scandir.m4 (gl_FUNC_SCANDIR): Move AC_LIBOBJ and gl_PREREQ_SCANDIR
30559         invocations from here...
30560         * modules/scandir (configure.ac): ... to here.
30562 2011-05-21  Bruno Haible  <bruno@clisp.org>
30564         rpmatch: Move AC_LIBOBJ invocations to module description.
30565         * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Call AC_CHECK_FUNCS instead of
30566         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_RPMATCH invocations from
30567         here...
30568         * modules/rpmatch (configure.ac): ... to here.
30570 2011-05-21  Bruno Haible  <bruno@clisp.org>
30572         rmdir: Respect rules for use of AC_LIBOBJ.
30573         * m4/rmdir.m4 (gl_FUNC_RMDIR): Move AC_LIBOBJ invocation from here...
30574         * modules/rmdir (configure.ac): ... to here.
30576 2011-05-21  Bruno Haible  <bruno@clisp.org>
30578         renameat: Move AC_LIBOBJ invocations to module description.
30579         * m4/renameat.m4 (gl_FUNC_RENAMEAT): Move AC_LIBOBJ invocations from
30580         here...
30581         * modules/renameat (configure.ac): ... to here.
30583 2011-05-21  Bruno Haible  <bruno@clisp.org>
30585         rename: Respect rules for use of AC_LIBOBJ.
30586         * m4/rename.m4 (gl_FUNC_RENAME): Move AC_LIBOBJ invocations from
30587         here...
30588         * modules/rename (configure.ac): ... to here.
30590 2011-05-21  Bruno Haible  <bruno@clisp.org>
30592         remove: Move AC_LIBOBJ invocations to module description.
30593         * m4/remove.m4 (gl_FUNC_REMOVE): Move AC_LIBOBJ invocations from
30594         here...
30595         * modules/remove (configure.ac): ... to here.
30597 2011-05-21  Bruno Haible  <bruno@clisp.org>
30599         relocatable-lib: Move AC_LIBOBJ invocations to module description.
30600         * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY_SEPARATE): Remove
30601         macro.
30602         (gl_RELOCATABLE_LIBRARY): Move AC_LIBOBJ invocation from here...
30603         * modules/relocatable-lib (configure.ac): ... to here.
30604         * modules/relocatable-prog-wrapper (configure.ac): Invoke
30605         gl_RELOCATABLE_LIBRARY instead of gl_RELOCATABLE_LIBRARY_SEPARATE.
30607 2011-05-21  Bruno Haible  <bruno@clisp.org>
30609         relocatable-prog: Move AC_LIBOBJ invocations to module description.
30610         * m4/relocatable.m4 (gl_RELOCATABLE): Move AC_LIBOBJ invocation from
30611         here...
30612         * modules/relocatable-prog (configure.ac): ... to here.
30614 2011-05-21  Bruno Haible  <bruno@clisp.org>
30616         regex: Move AC_LIBOBJ invocations to module description.
30617         * m4/regex.m4 (gl_REGEX): Move AC_LIBOBJ and gl_PREREQ_REGEX
30618         invocations from here...
30619         * modules/regex (configure.ac): ... to here.
30621 2011-05-21  Bruno Haible  <bruno@clisp.org>
30623         realloc-*: Move AC_LIBOBJ invocations to module description.
30624         * m4/realloc.m4 (gl_REPLACE_REALLOC): Remove macro.
30625         (gl_FUNC_REALLOC_GNU, gl_FUNC_REALLOC_POSIX): Inline it here. Move
30626         AC_LIBOBJ invocations from here...
30627         * modules/realloc-gnu (configure.ac): ... to here.
30628         * modules/realloc-posix (configure.ac): ... and here.
30630 2011-05-21  Bruno Haible  <bruno@clisp.org>
30632         readutmp: Move AC_LIBOBJ invocations to module description.
30633         * m4/readutmp.m4 (gl_READUTMP): Move AC_LIBOBJ invocation from here...
30634         * modules/readutmp (configure.ac): ... to here.
30636 2011-05-21  Bruno Haible  <bruno@clisp.org>
30638         readlinkat: Move AC_LIBOBJ invocations to module description.
30639         * m4/readlinkat.m4 (gl_FUNC_READLINKAT): Move AC_LIBOBJ invocation from
30640         here...
30641         * modules/readlinkat (configure.ac): ... to here.
30643 2011-05-21  Bruno Haible  <bruno@clisp.org>
30645         readlink: Move AC_LIBOBJ invocations to module description.
30646         * m4/readlink.m4 (gl_FUNC_READLINK): Move AC_LIBOBJ and
30647         gl_PREREQ_READLINK invocations from here...
30648         * modules/readlink (configure.ac): ... to here.
30650 2011-05-21  Bruno Haible  <bruno@clisp.org>
30652         readline: Move AC_LIBOBJ invocations to module description.
30653         * m4/readline.m4 (gl_FUNC_READLINE): Move AC_LIBOBJ and
30654         gl_PREREQ_READLINE invocations from here...
30655         * modules/readline (configure.ac): ... to here.
30657 2011-05-21  Bruno Haible  <bruno@clisp.org>
30659         read: Move AC_LIBOBJ invocations to module description.
30660         * m4/read.m4 (gl_FUNC_READ): Move AC_LIBOBJ invocation from here...
30661         * modules/read (configure.ac): ... to here.
30663 2011-05-21  Bruno Haible  <bruno@clisp.org>
30665         rawmemchr: Move AC_LIBOBJ invocations to module description.
30666         * m4/rawmemchr.m4 (gl_FUNC_RAWMEMCHR): Call AC_CHECK_FUNCS instead of
30667         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_RAWMEMCHR invocations
30668         from here...
30669         * modules/rawmemchr (configure.ac): ... to here.
30671 2011-05-21  Bruno Haible  <bruno@clisp.org>
30673         random_r: Move AC_LIBOBJ invocations to module description.
30674         * m4/random_r.m4 (gl_FUNC_RANDOM_R): Move AC_LIBOBJ and
30675         gl_PREREQ_RANDOM_R invocations from here...
30676         * modules/random_r (configure.ac): ... to here.
30678 2011-05-21  Bruno Haible  <bruno@clisp.org>
30680         pwrite: Move AC_LIBOBJ invocations to module description.
30681         * m4/pwrite.m4 (gl_FUNC_PWRITE): Move AC_LIBOBJ invocation from here...
30682         * modules/pwrite (configure.ac): ... to here.
30684 2011-05-21  Bruno Haible  <bruno@clisp.org>
30686         putenv: Move AC_LIBOBJ invocations to module description.
30687         * m4/putenv.m4 (gl_FUNC_PUTENV): Move AC_LIBOBJ invocation from here...
30688         * modules/putenv (configure.ac): ... to here.
30690 2011-05-21  Bruno Haible  <bruno@clisp.org>
30692         login_tty: Move AC_LIBOBJ invocations to module description.
30693         * m4/pty.m4 (gl_FUNC_LOGIN_TTY): Move AC_LIBOBJ invocation from here...
30694         * modules/login_tty (configure.ac): ... to here.
30696 2011-05-21  Bruno Haible  <bruno@clisp.org>
30698         openpty: Move AC_LIBOBJ invocations to module description.
30699         * m4/pty.m4 (gl_FUNC_OPENPTY): Move AC_LIBOBJ invocations from here...
30700         * modules/openpty (configure.ac): ... to here.
30702 2011-05-21  Bruno Haible  <bruno@clisp.org>
30704         forkpty: Move AC_LIBOBJ invocations to module description.
30705         * m4/pty.m4 (gl_FUNC_FORKPTY): Move AC_LIBOBJ invocations from here...
30706         * modules/forkpty (configure.ac): ... to here.
30708 2011-05-21  Bruno Haible  <bruno@clisp.org>
30710         ptsname: Move AC_LIBOBJ invocations to module description.
30711         * m4/ptsname.m4 (gl_FUNC_PTSNAME): Move AC_LIBOBJ and gl_PREREQ_PTSNAME
30712         invocations from here...
30713         * modules/ptsname (configure.ac): ... to here.
30715 2011-05-21  Bruno Haible  <bruno@clisp.org>
30717         pread: Move AC_LIBOBJ invocations to module description.
30718         * m4/pread.m4 (gl_FUNC_PREAD): Move AC_LIBOBJ invocation from here...
30719         * modules/pread (configure.ac): ... to here.
30721 2011-05-21  Bruno Haible  <bruno@clisp.org>
30723         posix_spawn*: Move AC_LIBOBJ invocations to module description.
30724         * m4/posix_spawn.m4 (gl_PREREQ_POSIX_SPAWN_INTERNAL): Renamed from
30725         gl_POSIX_SPAWN_INTERNAL. Move AC_LIBOBJ invocation from here...
30726         * modules/posix_spawn (configure.ac): ... to here.
30727         * modules/posix_spawnp (configure.ac): ... and here.
30729 2011-05-21  Bruno Haible  <bruno@clisp.org>
30731         popen: Move AC_LIBOBJ invocations to module description.
30732         * m4/popen.m4 (gl_FUNC_POPEN): Move AC_LIBOBJ and gl_PREREQ_POPEN
30733         invocations from here...
30734         * modules/popen (configure.ac): ... to here.
30736 2011-05-21  Bruno Haible  <bruno@clisp.org>
30738         poll: Move AC_LIBOBJ invocations to module description.
30739         * m4/poll.m4 (gl_FUNC_POLL): Move AC_LIBOBJ and gl_PREREQ_POLL
30740         invocations from here...
30741         * modules/poll (configure.ac): ... to here.
30743 2011-05-21  Bruno Haible  <bruno@clisp.org>
30745         pipe-posix: Move AC_LIBOBJ invocations to module description.
30746         * m4/pipe.m4 (gl_FUNC_PIPE): Move AC_LIBOBJ invocation from here...
30747         * modules/pipe-posix (configure.ac): ... to here.
30749 2011-05-21  Bruno Haible  <bruno@clisp.org>
30751         openat: Respect rules for use of AC_LIBOBJ.
30752         * m4/openat.m4 (gl_FUNC_OPENAT): Call AC_CHECK_FUNCS instead of
30753         AC_REPLACE_FUNCS. Move AC_LIBOBJ invocations from here...
30754         * modules/openat (configure.ac): ... to here.
30756 2011-05-21  Bruno Haible  <bruno@clisp.org>
30758         obstack-printf*: Move AC_LIBOBJ invocations to module description.
30759         * m4/obstack-printf.m4 (gl_REPLACE_OBSTACK_PRINTF): Move AC_LIBOBJ
30760         invocation from here...
30761         * modules/obstack-printf (configure.ac): ... to here.
30762         * modules/obstack-printf-posix (configure.ac): ... and here.
30764 2011-05-21  Bruno Haible  <bruno@clisp.org>
30766         nl_langinfo: Move AC_LIBOBJ invocations to module description.
30767         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Move AC_LIBOBJ invocations
30768         from here...
30769         * modules/nl_langinfo (configure.ac): ... to here.
30771 2011-05-21  Bruno Haible  <bruno@clisp.org>
30773         nanosleep: Move AC_LIBOBJ invocations to module description.
30774         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Move AC_LIBOBJ and
30775         gl_PREREQ_NANOSLEEP invocations from here...
30776         * modules/nanosleep (configure.ac): ... to here.
30778 2011-05-21  Bruno Haible  <bruno@clisp.org>
30780         mountlist: Move AC_LIBOBJ invocations to module description.
30781         * m4/mountlist.m4 (gl_MOUNTLIST): Move AC_LIBOBJ and
30782         gl_PREREQ_MOUNTLIST_EXTRA invocations from here...
30783         * modules/mountlist (configure.ac): ... to here.
30785 2011-05-21  Bruno Haible  <bruno@clisp.org>
30787         mktime: Respect rules for use of AC_LIBOBJ.
30788         * m4/mktime.m4 (AC_FUNC_MKTIME): Remove macro.
30789         (gl_FUNC_MKTIME): Inline it here. Set gl_cv_func_working_mktime. Move
30790         AC_LIBOBJ and gl_PREREQ_MKTIME invocations from here...
30791         (gl_FUNC_MKTIME_INTERNAL): ... and here...
30792         * modules/mktime (configure.ac): ... to here.
30793         * modules/mktime-internal (configure.ac): ... and here.
30794         * m4/timegm.m4 (gl_FUNC_TIMEGM): Update.
30796 2011-05-21  Bruno Haible  <bruno@clisp.org>
30798         mkstemps: Move AC_LIBOBJ invocations to module description.
30799         * m4/mkstemps.m4 (gl_FUNC_MKSTEMPS): Move AC_LIBOBJ invocation from
30800         here...
30801         * modules/mkstemps (configure.ac): ... to here.
30803 2011-05-21  Bruno Haible  <bruno@clisp.org>
30805         mkstemp: Move AC_LIBOBJ invocations to module description.
30806         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Move AC_LIBOBJ and
30807         gl_PREREQ_MKSTEMP invocations from here...
30808         * modules/mkstemp (configure.ac): ... to here.
30810 2011-05-21  Bruno Haible  <bruno@clisp.org>
30812         mkostemps: Move AC_LIBOBJ invocations to module description.
30813         * m4/mkostemps.m4 (gl_FUNC_MKOSTEMPS): Move AC_LIBOBJ invocation from
30814         here...
30815         * modules/mkostemps (configure.ac): ... to here.
30817 2011-05-21  Bruno Haible  <bruno@clisp.org>
30819         mkostemp: Move AC_LIBOBJ invocations to module description.
30820         * m4/mkostemp.m4 (gl_FUNC_MKOSTEMP): Move AC_LIBOBJ and
30821         gl_PREREQ_MKOSTEMP invocations from here...
30822         * modules/mkostemp (configure.ac): ... to here.
30824 2011-05-21  Bruno Haible  <bruno@clisp.org>
30826         mknod: Move AC_LIBOBJ invocations to module description.
30827         * m4/mknod.m4 (gl_FUNC_MKNOD): Move AC_LIBOBJ invocations from here...
30828         * modules/mknod (configure.ac): ... to here.
30830 2011-05-21  Bruno Haible  <bruno@clisp.org>
30832         mkfifoat: Move AC_LIBOBJ invocations to module description.
30833         * m4/mkfifoat.m4 (gl_FUNC_MKFIFOAT): Move AC_LIBOBJ invocations from
30834         here...
30835         * modules/mkfifoat (configure.ac): ... to here.
30837 2011-05-21  Bruno Haible  <bruno@clisp.org>
30839         mkfifo: Respect rules for use of AC_LIBOBJ.
30840         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Move AC_LIBOBJ invocations from
30841         here...
30842         * modules/mkfifo (configure.ac): ... to here.
30844 2011-05-21  Bruno Haible  <bruno@clisp.org>
30846         mkdtemp: Move AC_LIBOBJ invocations to module description.
30847         * m4/mkdtemp.m4 (gl_FUNC_MKDTEMP): Move AC_LIBOBJ and gl_PREREQ_MKDTEMP
30848         invocations from here...
30849         * modules/mkdtemp (configure.ac): ... to here.
30851 2011-05-21  Bruno Haible  <bruno@clisp.org>
30853         mkdir: Move AC_LIBOBJ invocations to module description.
30854         * m4/mkdir.m4 (gl_FUNC_MKDIR): Move AC_LIBOBJ invocations from here...
30855         * modules/mkdir (configure.ac): ... to here.
30857 2011-05-21  Bruno Haible  <bruno@clisp.org>
30859         memset: Move AC_LIBOBJ invocations to module description.
30860         * m4/memset.m4 (gl_FUNC_MEMSET): Call AC_CHECK_FUNCS instead of
30861         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMSET invocations from
30862         here...
30863         * modules/memset (configure.ac): ... to here.
30865 2011-05-21  Bruno Haible  <bruno@clisp.org>
30867         memrchr: Move AC_LIBOBJ invocations to module description.
30868         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Call AC_CHECK_FUNCS instead of
30869         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMRCHR invocations from
30870         here...
30871         * modules/memrchr (configure.ac): ... to here.
30873 2011-05-21  Bruno Haible  <bruno@clisp.org>
30875         mempcpy: Move AC_LIBOBJ invocations to module description.
30876         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Call AC_CHECK_FUNCS instead of
30877         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMPCPY invocations from
30878         here...
30879         * modules/mempcpy (configure.ac): ... to here.
30881 2011-05-21  Bruno Haible  <bruno@clisp.org>
30883         memmove: Move AC_LIBOBJ invocations to module description.
30884         * m4/memmove.m4 (gl_FUNC_MEMMOVE): Call AC_CHECK_FUNCS instead of
30885         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMMOVE invocations from
30886         here...
30887         * modules/memmove (configure.ac): ... to here.
30889 2011-05-21  Bruno Haible  <bruno@clisp.org>
30891         memmem*: Move AC_LIBOBJ invocations to module description.
30892         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): Call AC_CHECK_FUNCS instead of
30893         AC_REPLACE_FUNCS. Set HAVE_MEMMEM. Move AC_LIBOBJ invocations from
30894         here...
30895         (gl_FUNC_MEMMEM): ... and here...
30896         * modules/memmem-simple (configure.ac): ... to here.
30897         * modules/memmem (configure.ac): ... and here.
30899 2011-05-21  Bruno Haible  <bruno@clisp.org>
30901         memcpy: Move AC_LIBOBJ invocations to module description.
30902         * m4/memcpy.m4 (gl_FUNC_MEMCPY): Call AC_CHECK_FUNCS instead of
30903         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMCPY invocations from
30904         here...
30905         * modules/memcpy (configure.ac): ... to here.
30907 2011-05-21  Bruno Haible  <bruno@clisp.org>
30909         memcmp: Simplify autoconf macro.
30910         * m4/memcmp.m4 (gl_FUNC_MEMCMP): Merge the cross-compilation code into
30911         the AC_RUN_IFELSE invocation. Set gl_func_memcmp.
30912         * modules/memcmp (Depends-on, configure.ac): Test gl_func_memcmp.
30914 2011-05-21  Bruno Haible  <bruno@clisp.org>
30916         memcmp: Move AC_LIBOBJ invocations to module description.
30917         * m4/memcmp.m4 (AC_FUNC_MEMCMP): Remove macro.
30918         (gl_FUNC_MEMCMP): Inline it here. Set gl_cv_func_memcmp_working. Move
30919         AC_LIBOBJ and gl_PREREQ_MEMCMP invocations from here...
30920         * modules/memcmp (configure.ac): ... to here.
30921         (Depends-on): Update conditions.
30923 2011-05-21  Bruno Haible  <bruno@clisp.org>
30925         memchr: Respect rules for use of AC_LIBOBJ.
30926         * m4/memchr.m4 (gl_FUNC_MEMCHR): Move AC_LIBOBJ and gl_PREREQ_MEMCHR
30927         invocations from here...
30928         * modules/memchr (configure.ac): ... to here.
30930 2011-05-21  Bruno Haible  <bruno@clisp.org>
30932         mbtowc: Move AC_LIBOBJ invocations to module description.
30933         * m4/mbtowc.m4 (gl_FUNC_MBTOWC): Move AC_LIBOBJ and gl_PREREQ_MBTOWC
30934         invocations from here...
30935         * modules/mbtowc (configure.ac): ... to here.
30937 2011-05-21  Bruno Haible  <bruno@clisp.org>
30939         mbsrtowcs: Move AC_LIBOBJ invocations to module description.
30940         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): Move AC_LIBOBJ and
30941         gl_PREREQ_MBSRTOWCS invocations from here...
30942         * modules/mbsrtowcs (configure.ac): ... to here.
30944 2011-05-21  Bruno Haible  <bruno@clisp.org>
30946         mbsnrtowcs: Move AC_LIBOBJ invocations to module description.
30947         * m4/mbsnrtowcs.m4 (gl_FUNC_MBSNRTOWCS): Move AC_LIBOBJ and
30948         gl_PREREQ_MBSNRTOWCS invocations from here...
30949         * modules/mbsnrtowcs (configure.ac): ... to here.
30951 2011-05-21  Bruno Haible  <bruno@clisp.org>
30953         mbsinit: Move AC_LIBOBJ invocations to module description.
30954         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Move AC_LIBOBJ and gl_PREREQ_MBSINIT
30955         invocations from here...
30956         * modules/mbsinit (configure.ac): ... to here.
30958 2011-05-21  Bruno Haible  <bruno@clisp.org>
30960         mbrlen: Move AC_LIBOBJ invocations to module description.
30961         * m4/mbrlen.m4 (gl_FUNC_MBRLEN): Move AC_LIBOBJ and gl_PREREQ_MBRLEN
30962         invocations from here...
30963         * modules/mbrlen (configure.ac): ... to here.
30965 2011-05-21  Bruno Haible  <bruno@clisp.org>
30967         mbrtowc: Respect rules for use of AC_LIBOBJ.
30968         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): Move AC_LIBOBJ and gl_PREREQ_MBRTOWC
30969         invocations from here...
30970         * modules/mbrtowc (configure.ac): ... to here.
30972 2011-05-21  Bruno Haible  <bruno@clisp.org>
30974         malloc-*: Move AC_LIBOBJ invocations to module description.
30975         * m4/malloc.m4 (gl_REPLACE_MALLOC): Remove macro.
30976         (gl_FUNC_MALLOC_GNU, gl_FUNC_MALLOC_POSIX): Inline it here. Move
30977         AC_LIBOBJ invocations from here...
30978         * modules/malloc-gnu (configure.ac): ... to here.
30979         * modules/malloc-posix (configure.ac): ... and here.
30981 2011-05-21  Bruno Haible  <bruno@clisp.org>
30983         lstat, openat: Respect rules for use of AC_LIBOBJ.
30984         * m4/lstat.m4 (gl_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): Renamed from
30985         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK. Set variable
30986         gl_cv_func_lstat_dereferences_slashed_symlink. Don't invoke AC_LIBOBJ.
30987         (gl_PREREQ_LSTAT): New macro, extracted from gl_FUNC_LSTAT.
30988         (gl_FUNC_LSTAT): Update. Remove gl_PREREQ_LSTAT code.
30989         * modules/lstat (configure.ac): Invoke AC_LIBOBJ and gl_PREREQ_LSTAT
30990         here.
30991         * m4/openat.m4 (gl_FUNC_OPENAT): Update.
30993 2011-05-21  Bruno Haible  <bruno@clisp.org>
30995         lseek: Move AC_LIBOBJ invocations to module description.
30996         * m4/lseek.m4 (gl_REPLACE_LSEEK): Remove macro.
30997         (gl_FUNC_LSEEK): Inline it here. Move AC_LIBOBJ invocation from here...
30998         * modules/lseek (configure.ac): ... to here.
31000 2011-05-21  Bruno Haible  <bruno@clisp.org>
31002         linkat: Move AC_LIBOBJ invocations to module description.
31003         * m4/linkat.m4 (gl_FUNC_LINKAT): Move AC_LIBOBJ invocations from
31004         here...
31005         * modules/linkat (configure.ac): ... to here.
31007 2011-05-21  Bruno Haible  <bruno@clisp.org>
31009         link: Respect rules for use of AC_LIBOBJ.
31010         * m4/link.m4 (gl_FUNC_LINK): Move AC_LIBOBJ invocations from here...
31011         * modules/link (configure.ac): ... to here.
31013 2011-05-21  Bruno Haible  <bruno@clisp.org>
31015         lchown: Move AC_LIBOBJ invocations to module description.
31016         * m4/lchown.m4 (gl_FUNC_EUIDACCESS): Call AC_CHECK_FUNCS instead of
31017         AC_REPLACE_FUNCS. Move AC_LIBOBJ invocations from here...
31018         * modules/lchown (configure.ac): ... to here.
31020 2011-05-21  Bruno Haible  <bruno@clisp.org>
31022         iswctype: Move AC_LIBOBJ invocations to module description.
31023         * m4/iswctype.m4 (gl_FUNC_ISWCTYPE): Move AC_LIBOBJ invocation from
31024         here...
31025         * modules/iswctype (configure.ac): ... to here.
31027 2011-05-21  Bruno Haible  <bruno@clisp.org>
31029         iswblank: Move AC_LIBOBJ invocations to module description.
31030         * m4/iswblank.m4 (gl_FUNC_ISWBLANK): Move AC_LIBOBJ invocation from
31031         here...
31032         * modules/iswblank (configure.ac): ... to here.
31034 2011-05-21  Bruno Haible  <bruno@clisp.org>
31036         atanl: Move AC_LIBOBJ invocations to module description.
31037         * m4/atanl.m4 (gl_FUNC_ATANL): Move AC_LIBOBJ invocation from here...
31038         * modules/atanl (configure.ac): ... to here.
31040 2011-05-21  Bruno Haible  <bruno@clisp.org>
31042         acosl: Move AC_LIBOBJ invocations to module description.
31043         * m4/acosl.m4 (gl_FUNC_ACOSL): Move AC_LIBOBJ invocation from here...
31044         * modules/acosl (configure.ac): ... to here.
31046 2011-05-21  Bruno Haible  <bruno@clisp.org>
31048         asinl: Respect rules for use of AC_LIBOBJ.
31049         * m4/asinl.m4 (gl_FUNC_ASINL): Move AC_LIBOBJ invocation from here...
31050         * modules/asinl (configure.ac): ... to here.
31052 2011-05-21  Bruno Haible  <bruno@clisp.org>
31054         tanl: Move AC_LIBOBJ invocations to module description.
31055         * m4/tanl.m4 (gl_FUNC_TANL): Move AC_LIBOBJ invocations from here...
31056         * modules/tanl (configure.ac): ... to here.
31058 2011-05-21  Bruno Haible  <bruno@clisp.org>
31060         cosl: Move AC_LIBOBJ invocations to module description.
31061         * m4/cosl.m4 (gl_FUNC_COSL): Move AC_LIBOBJ invocations from here...
31062         * modules/cosl (configure.ac): ... to here.
31064 2011-05-21  Bruno Haible  <bruno@clisp.org>
31066         sinl: Move AC_LIBOBJ invocations to module description.
31067         * m4/sinl.m4 (gl_FUNC_SINL): Move AC_LIBOBJ invocations from here...
31068         * modules/sinl (configure.ac): ... to here.
31070 2011-05-21  Bruno Haible  <bruno@clisp.org>
31072         logl: Move AC_LIBOBJ invocations to module description.
31073         * m4/logl.m4 (gl_FUNC_LOGL): Move AC_LIBOBJ invocation from here...
31074         * modules/logl (configure.ac): ... to here.
31076 2011-05-21  Bruno Haible  <bruno@clisp.org>
31078         expl: Move AC_LIBOBJ invocations to module description.
31079         * m4/expl.m4 (gl_FUNC_EXPL): Move AC_LIBOBJ invocation from here...
31080         * modules/expl (configure.ac): ... to here.
31082 2011-05-21  Bruno Haible  <bruno@clisp.org>
31084         roundl: Move AC_LIBOBJ invocations to module description.
31085         * m4/roundl.m4 (gl_FUNC_ROUNDL): Move AC_LIBOBJ invocation from here...
31086         * modules/roundl (configure.ac): ... to here.
31088 2011-05-21  Bruno Haible  <bruno@clisp.org>
31090         round: Move AC_LIBOBJ invocations to module description.
31091         * m4/round.m4 (gl_FUNC_ROUND): Move AC_LIBOBJ invocation from here...
31092         * modules/round (configure.ac): ... to here.
31094 2011-05-21  Bruno Haible  <bruno@clisp.org>
31096         roundf: Move AC_LIBOBJ invocations to module description.
31097         * m4/roundf.m4 (gl_FUNC_ROUNDF): Move AC_LIBOBJ invocation from here...
31098         * modules/roundf (configure.ac): ... to here.
31100 2011-05-21  Bruno Haible  <bruno@clisp.org>
31102         truncl: Move AC_LIBOBJ invocations to module description.
31103         * m4/truncl.m4 (gl_FUNC_TRUNCL): Move AC_LIBOBJ invocation from here...
31104         * modules/truncl (configure.ac): ... to here.
31106 2011-05-21  Bruno Haible  <bruno@clisp.org>
31108         trunc: Move AC_LIBOBJ invocations to module description.
31109         * m4/trunc.m4 (gl_FUNC_TRUNC): Move AC_LIBOBJ invocation from here...
31110         * modules/trunc (configure.ac): ... to here.
31112 2011-05-21  Bruno Haible  <bruno@clisp.org>
31114         truncf: Move AC_LIBOBJ invocations to module description.
31115         * m4/truncf.m4 (gl_FUNC_TRUNCF): Move AC_LIBOBJ invocation from here...
31116         * modules/truncf (configure.ac): ... to here.
31118 2011-05-21  Bruno Haible  <bruno@clisp.org>
31120         ceill: Move AC_LIBOBJ invocations to module description.
31121         * m4/ceill.m4 (gl_FUNC_CEILL): Move AC_LIBOBJ invocation from here...
31122         * modules/ceill (configure.ac): ... to here.
31124 2011-05-21  Bruno Haible  <bruno@clisp.org>
31126         ceil: Move AC_LIBOBJ invocations to module description.
31127         * m4/ceil.m4 (gl_FUNC_CEIL): Move AC_LIBOBJ invocation from here...
31128         * modules/ceil (configure.ac): ... to here.
31130 2011-05-21  Bruno Haible  <bruno@clisp.org>
31132         ceilf: Move AC_LIBOBJ invocations to module description.
31133         * m4/ceilf.m4 (gl_FUNC_CEILF): Move AC_LIBOBJ invocation from here...
31134         * modules/ceilf (configure.ac): ... to here.
31136 2011-05-21  Bruno Haible  <bruno@clisp.org>
31138         floorl: Respect rules for use of AC_LIBOBJ.
31139         * m4/floorl.m4 (gl_FUNC_FLOORL): Move AC_LIBOBJ invocation from here...
31140         * modules/floorl (configure.ac): ... to here.
31142 2011-05-21  Bruno Haible  <bruno@clisp.org>
31144         floor: Respect rules for use of AC_LIBOBJ.
31145         * m4/floor.m4 (gl_FUNC_FLOOR): Move AC_LIBOBJ invocation from here...
31146         * modules/floor (configure.ac): ... to here.
31148 2011-05-21  Bruno Haible  <bruno@clisp.org>
31150         floorf: Move AC_LIBOBJ invocations to module description.
31151         * m4/floorf.m4 (gl_FUNC_FLOORF): Move AC_LIBOBJ invocation from here...
31152         * modules/floorf (configure.ac): ... to here.
31154 2011-05-20  Bruno Haible  <bruno@clisp.org>
31156         sqrtl: Respect rules for use of AC_LIBOBJ.
31157         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Move AC_LIBOBJ invocation from here...
31158         * modules/sqrtl (configure.ac): ... to here.
31160 2011-05-20  Bruno Haible  <bruno@clisp.org>
31162         ldexpl: Respect rules for use of AC_LIBOBJ.
31163         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Move AC_LIBOBJ invocation from here...
31164         * modules/ldexpl (configure.ac): ... to here.
31166 2011-05-20  Bruno Haible  <bruno@clisp.org>
31168         frexpl*: Respect rules for use of AC_LIBOBJ.
31169         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): Move AC_LIBOBJ
31170         invocation from here...
31171         * modules/frexpl (configure.ac): ... to here.
31172         * modules/frexpl-nolibm (configure.ac): ... and here.
31174 2011-05-20  Bruno Haible  <bruno@clisp.org>
31176         frexp, frexp-nolibm: Move AC_LIBOBJ invocations to module description.
31177         * m4/frexp.m4 (gl_FUNC_FREXP, gl_FUNC_FREXP_NO_LIBM): Move AC_LIBOBJ
31178         invocation from here...
31179         * modules/frexp (configure.ac): ... to here.
31180         * modules/frexp-nolibm (configure.ac): ... and here.
31182 2011-05-20  Bruno Haible  <bruno@clisp.org>
31184         isnan: Respect rules for use of AC_LIBOBJ.
31185         * m4/isnan.m4 (gl_ISNAN): Don't do the AC_LIBOBJ and gl_PREREQ_ISNAN*
31186         invocations here.
31187         * modules/isnanf (configure.ac): Require gl_ISNAN if it exists. Test
31188         REPLACE_ISNAN.
31189         * modules/isnand (configure.ac): Likewise.
31190         * modules/isnanl (configure.ac): Likewise.
31192 2011-05-20  Bruno Haible  <bruno@clisp.org>
31194         isnanl*: Respect rules for use of AC_LIBOBJ.
31195         * m4/isnanl.m4 (gl_FUNC_ISNANL, gl_FUNC_ISNANL_NO_LIBM): Move AC_LIBOBJ
31196         invocation from here...
31197         * modules/isnanl (configure.ac): ... to here.
31198         * modules/isnanl-nolibm (configure.ac): ... and here.
31200 2011-05-20  Bruno Haible  <bruno@clisp.org>
31202         isnand*: Move AC_LIBOBJ invocations to module description.
31203         * m4/isnand.m4 (gl_FUNC_ISNAND, gl_FUNC_ISNAND_NO_LIBM): Move AC_LIBOBJ
31204         invocation from here...
31205         * modules/isnand (configure.ac): ... to here.
31206         * modules/isnand-nolibm (configure.ac): ... and here.
31208 2011-05-20  Bruno Haible  <bruno@clisp.org>
31210         isnanf*: Move AC_LIBOBJ invocations to module description.
31211         * m4/isnanf.m4 (gl_FUNC_ISNANF, gl_FUNC_ISNANF_NO_LIBM): Move AC_LIBOBJ
31212         invocation from here...
31213         * modules/isnanf (configure.ac): ... to here.
31214         * modules/isnanf-nolibm (configure.ac): ... and here.
31216 2011-05-20  Bruno Haible  <bruno@clisp.org>
31218         isnan*: Separate the AC_LIBOBJ invocations.
31219         * m4/isnanf.m4 (gl_PREREQ_ISNANF): Renamed from gl_BUILD_ISNANF. Remove
31220         AC_LIBOBJ invocation.
31221         (gl_FUNC_ISNANF, gl_FUNC_ISNANF_NO_LIBM): Update. Invoke AC_LIBOBJ
31222         here.
31223         * m4/isnand.m4 (gl_PREREQ_ISNAND): Renamed from gl_BUILD_ISNAND. Remove
31224         AC_LIBOBJ invocation.
31225         (gl_FUNC_ISNAND, gl_FUNC_ISNAND_NO_LIBM): Update. Invoke AC_LIBOBJ
31226         here.
31227         * m4/isnanl.m4 (gl_PREREQ_ISNANL): Renamed from gl_BUILD_ISNANL. Remove
31228         AC_LIBOBJ invocation.
31229         (gl_FUNC_ISNANL, gl_FUNC_ISNANL_NO_LIBM): Update. Invoke AC_LIBOBJ
31230         here.
31231         * m4/isnan.m4 (gl_ISNAN): Update. Invoke AC_LIBOBJ here.
31233 2011-05-08  Bruno Haible  <bruno@clisp.org>
31235         isinf: Move AC_LIBOBJ invocations to module description.
31236         * m4/isinf.m4 (gl_ISINF): Move AC_LIBOBJ invocation from here...
31237         * modules/isinf (configure.ac): ... to here.
31239 2011-05-08  Bruno Haible  <bruno@clisp.org>
31241         isfinite: Move AC_LIBOBJ invocations to module description.
31242         * m4/isfinite.m4 (gl_ISFINITE): Move AC_LIBOBJ invocation from here...
31243         * modules/isfinite (configure.ac): ... to here.
31245 2011-05-08  Bruno Haible  <bruno@clisp.org>
31247         isblank: Move AC_LIBOBJ invocations to module description.
31248         * m4/isblank.m4 (gl_FUNC_ISBLANK): Move AC_LIBOBJ invocation from
31249         here...
31250         * modules/isblank (configure.ac): ... to here.
31252 2011-05-08  Bruno Haible  <bruno@clisp.org>
31254         isapipe: Move AC_LIBOBJ invocations to module description.
31255         * m4/isapipe.m4 (gl_ISAPIPE): Set HAVE_ISAPIPE. Move AC_LIBOBJ and
31256         gl_PREREQ_ISAPIPE invocations from here...
31257         * modules/isapipe (configure.ac): ... to here.
31258         (Depends-on): Update condition.
31260 2011-05-08  Bruno Haible  <bruno@clisp.org>
31262         ioctl: Move AC_LIBOBJ invocations to module description.
31263         * m4/ioctl.m4 (gl_FUNC_IOCTL): Set HAVE_IOCTL. Move AC_LIBOBJ
31264         invocations from here...
31265         * modules/ioctl (configure.ac): ... to here.
31266         (Depends-on): Update condition.
31268 2011-05-08  Bruno Haible  <bruno@clisp.org>
31270         imaxdiv: Move AC_LIBOBJ invocations to module description.
31271         * m4/imaxdiv.m4 (gl_FUNC_IMAXDIV): Move AC_LIBOBJ and gl_PREREQ_IMAXDIV
31272         invocations from here...
31273         * modules/imaxdiv (configure.ac): ... to here.
31275 2011-05-08  Bruno Haible  <bruno@clisp.org>
31277         imaxabs: Move AC_LIBOBJ invocations to module description.
31278         * m4/imaxabs.m4 (gl_FUNC_IMAXABS): Move AC_LIBOBJ and gl_PREREQ_IMAXABS
31279         invocations from here...
31280         * modules/imaxabs (configure.ac): ... to here.
31282 2011-05-08  Bruno Haible  <bruno@clisp.org>
31284         getaddrinfo: Move AC_LIBOBJ invocations to module description.
31285         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Set HAVE_GETADDRINFO, Move
31286         AC_LIBOBJ invocations from here...
31287         * modules/getaddrinfo (configure.ac): ... to here.
31288         (Depends-on): Add conditions.
31290 2011-05-08  Bruno Haible  <bruno@clisp.org>
31292         inet_pton. getaddrinfo: Respect rules for use of AC_LIBOBJ.
31293         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Set HAVE_INET_PTON. Call
31294         AC_CHECK_FUNCS instead of AC_REPLACE_FUNCS. Don't invoke
31295         gl_PREREQ_INET_PTON. Move tests for declaration of inet_pton here...
31296         (gl_PREREQ_INET_PTON): ... from here.
31297         * modules/inet_pton (configure.ac): Invoke AC_LIBOBJ and
31298         gl_PREREQ_INET_PTON here.
31299         (Depends-on): Update condition.
31301 2011-05-08  Bruno Haible  <bruno@clisp.org>
31303         inet_ntop. getaddrinfo: Respect rules for use of AC_LIBOBJ.
31304         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Set HAVE_INET_NTOP. Call
31305         AC_CHECK_FUNCS instead of AC_REPLACE_FUNCS. Don't invoke
31306         gl_PREREQ_INET_NTOP. Move tests for declaration of inet_ntop here...
31307         (gl_PREREQ_INET_NTOP): ... from here.
31308         * modules/inet_ntop (configure.ac): Invoke AC_LIBOBJ and
31309         gl_PREREQ_INET_NTOP here.
31310         (Depends-on): Update condition.
31312 2011-05-08  Bruno Haible  <bruno@clisp.org>
31314         iconv_open: Move AC_LIBOBJ invocations to module description.
31315         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN, gl_REPLACE_ICONV_OPEN): Move
31316         AC_LIBOBJ invocations from here...
31317         * modules/iconv_open (configure.ac): ... to here.
31319 2011-05-08  Bruno Haible  <bruno@clisp.org>
31321         iconv_open, iconv_open-utf: Respect rules for use of AC_LIBOBJ.
31322         If module 'iconv_open' is among the main modules and module
31323         'iconv_open-utf' is among the tests dependencies, then
31324         REPLACE_ICONV_UTF will be defined to 1, hence iconv_open() in lib may
31325         return the special iconv_t values. Therefore iconv() and iconv_close()
31326         must support these special iconv_t values, already in lib, not only in
31327         tests.
31328         * m4/iconv_open-utf.m4: New file, extracted from m4/iconv_open.m4.
31329         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Invoke
31330         gl_FUNC_ICONV_OPEN_UTF_SUPPORT if present.
31331         (gl_FUNC_ICONV_OPEN_UTF): Remove macro.
31332         * modules/iconv_open (Files): Add lib/iconv.c, lib/iconv_close.c.
31333         (Depends-on): Add the dependencies of iconv_open-utf.
31334         * modules/iconv_open-utf (Files): Add m4/iconv_open-utf.m4. Remove
31335         m4/iconv_open.m4, lib/iconv.c, lib/iconv_close.c.
31336         (Depends-on): Remove modules needed by lib/iconv.c, lib/iconv_close.c.
31338 2011-05-08  Bruno Haible  <bruno@clisp.org>
31340         group-member: Move AC_LIBOBJ invocations to module description.
31341         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER): Move AC_LIBOBJ and
31342         gl_PREREQ_GROUP_MEMBER invocations from here...
31343         * modules/group-member (configure.ac): ... to here.
31345 2011-05-08  Bruno Haible  <bruno@clisp.org>
31347         grantpt: Move AC_LIBOBJ invocations to module description.
31348         * m4/grantpt.m4 (gl_FUNC_GRANTPT): Move AC_LIBOBJ and gl_PREREQ_GRANTPT
31349         invocations from here...
31350         * modules/grantpt (configure.ac): ... to here.
31352 2011-05-08  Bruno Haible  <bruno@clisp.org>
31354         glob: Move AC_LIBOBJ invocations to module description.
31355         * m4/glob.m4 (gl_GLOB): Move AC_LIBOBJ and gl_PREREQ_GLOB invocations
31356         from here...
31357         * modules/glob (configure.ac): ... to here.
31359 2011-05-08  Bruno Haible  <bruno@clisp.org>
31361         getusershell: Move AC_LIBOBJ invocations to module description.
31362         * m4/getusershell.m4 (gl_FUNC_GETUSERSHELL): Set HAVE_GETUSERSHELL.
31363         Move AC_LIBOBJ invocation from here...
31364         * modules/getusershell (configure.ac): ... to here.
31365         (Depends-on): Update condition.
31367 2011-05-08  Bruno Haible  <bruno@clisp.org>
31369         gettimeofday: Move AC_LIBOBJ invocations to module description.
31370         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY,
31371         gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Move AC_LIBOBJ and
31372         gl_PREREQ_GETTIMEOFDAY invocations from here...
31373         * modules/gettimeofday (configure.ac): ... to here.
31375 2011-05-08  Bruno Haible  <bruno@clisp.org>
31377         gettimeofday, tzset: Respect rules for use of AC_LIBOBJ.
31378         * modules/tzset (configure.ac): Don't invoke gl_FUNC_TZSET_CLOBBER,
31379         just gl_FUNC_TZSET.
31380         * m4/tzset.m4 (gl_FUNC_TZSET): New macro.
31381         (gl_FUNC_TZSET_CLOBBER): Remove actions.
31382         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Invoke
31383         gl_FUNC_TZSET_CLOBBER and its actions here, if present.
31385 2011-05-08  Bruno Haible  <bruno@clisp.org>
31387         getsubopt: Move AC_LIBOBJ invocations to module description.
31388         * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Move AC_LIBOBJ and
31389         gl_PREREQ_GETSUBOPT invocations from here...
31390         * modules/getsubopt (configure.ac): ... to here.
31392 2011-05-08  Bruno Haible  <bruno@clisp.org>
31394         getpass-gnu: Move AC_LIBOBJ invocations to module description.
31395         * m4/getpass.m4 (gl_FUNC_GETPASS_GNU): Set REPLACE_GETPASS. Move
31396         AC_LIBOBJ and gl_PREREQ_GETPASS invocations from here...
31397         * modules/getpass-gnu (configure.ac): ... to here.
31399 2011-05-08  Bruno Haible  <bruno@clisp.org>
31401         getpass: Move AC_LIBOBJ invocations to module description.
31402         * m4/getpass.m4 (gl_FUNC_GETPASS): Set HAVE_GETPASS. Move AC_LIBOBJ and
31403         gl_PREREQ_GETPASS invocations from here...
31404         * modules/getpass (configure.ac): ... to here.
31406 2011-05-08  Bruno Haible  <bruno@clisp.org>
31408         getpagesize: Move AC_LIBOBJ invocations to module description.
31409         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Move AC_LIBOBJ invocation
31410         from here...
31411         * modules/getpagesize (configure.ac): ... to here.
31413 2011-05-08  Bruno Haible  <bruno@clisp.org>
31415         getopt: Move AC_LIBOBJ invocations to module description.
31416         * m4/getopt.m4 (gl_REPLACE_GETOPT): Remove macro.
31417         (gl_FUNC_GETOPT): Inline it here. Move AC_LIBOBJ and gl_PREREQ_GETOPT
31418         invocations from here...
31419         * modules/getopt-gnu (configure.ac): ... to here.
31420         * modules/getopt-posix (configure.ac): ... and here.
31421         (Depends-on): Update condition.
31423 2011-05-08  Bruno Haible  <bruno@clisp.org>
31425         getopt, argp: Respect rules for use of AC_LIBOBJ.
31426         * m4/argp.m4 (gl_ARGP): Don't invoke gl_REPLACE_GETOPT.
31427         (gl_REPLACE_GETOPT_ALWAYS): New macro.
31428         * m4/getopt.m4 (gl_FUNC_GETOPT_POSIX): Test whether
31429         gl_REPLACE_GETOPT_ALWAYS is defined. Set REPLACE_GETOPT.
31431 2011-05-08  Bruno Haible  <bruno@clisp.org>
31433         getlogin_r: Move AC_LIBOBJ invocations to module description.
31434         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Move AC_LIBOBJ and
31435         gl_PREREQ_GETLOGIN_R invocations from here...
31436         * modules/getlogin_r (configure.ac): ... to here.
31438 2011-05-08  Bruno Haible  <bruno@clisp.org>
31440         getlogin: Move AC_LIBOBJ invocations to module description.
31441         * m4/getlogin.m4 (gl_FUNC_GETLOGIN): Move AC_LIBOBJ invocation from
31442         here...
31443         * modules/getlogin (configure.ac): ... to here.
31445 2011-05-08  Bruno Haible  <bruno@clisp.org>
31447         getloadavg: Move AC_LIBOBJ invocations to module description.
31448         * m4/getloadavg.m4 (gl_FUNC_GETDELIM): Set HAVE_GETLOADAVG. Move
31449         AC_LIBOBJ and gl_PREREQ_GETLOADAVG invocations from here...
31450         * modules/getloadavg (configure.ac): ... to here.
31452 2011-05-08  Bruno Haible  <bruno@clisp.org>
31454         gethrxtime: Move AC_LIBOBJ invocations to module description.
31455         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Move code that determines
31456         LIB_GETHRXTIME from here...
31457         (gl_GETHRXTIME): ... to here. Move AC_LIBOBJ and gl_PREREQ_GETHRXTIME
31458         invocations from here...
31459         * modules/gethrxtime (configure.ac): ... to here.
31461 2011-05-08  Bruno Haible  <bruno@clisp.org>
31463         gethostname: Move AC_LIBOBJ invocations to module description.
31464         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Move AC_LIBOBJ and
31465         gl_PREREQ_GETHOSTNAME invocations from here...
31466         * modules/gethostname (configure.ac): ... to here.
31468 2011-05-08  Bruno Haible  <bruno@clisp.org>
31470         getgroups: Move AC_LIBOBJ invocations to module description.
31471         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Move AC_LIBOBJ invocations from
31472         here...
31473         * modules/getgroups (configure.ac): ... to here.
31475 2011-05-08  Bruno Haible  <bruno@clisp.org>
31477         getdtablesize: Move AC_LIBOBJ invocations to module description.
31478         * m4/getdtablesize.m4 (gl_FUNC_GETDTABLESIZE): Move AC_LIBOBJ
31479         invocation from here...
31480         * modules/getdtablesize (configure.ac): ... to here.
31482 2011-05-08  Bruno Haible  <bruno@clisp.org>
31484         getdomainname: Move AC_LIBOBJ invocations to module description.
31485         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Move AC_LIBOBJ and
31486         gl_PREREQ_GETDOMAINNAME invocations from here...
31487         * modules/getdomainname (configure.ac): ... to here.
31489 2011-05-08  Bruno Haible  <bruno@clisp.org>
31491         getline: Move AC_LIBOBJ invocations to module description.
31492         * m4/getline.m4 (gl_FUNC_GETLINE): Move AC_LIBOBJ and gl_PREREQ_GETLINE
31493         invocations from here...
31494         * modules/getline (configure.ac): ... to here.
31496 2011-05-08  Bruno Haible  <bruno@clisp.org>
31498         getline: Simplify.
31499         * m4/getline.m4 (gl_PREREQ_GETLINE): Don't invoke gl_FUNC_GETDELIM.
31500         It's already handled through the module dependency.
31502 2011-05-08  Bruno Haible  <bruno@clisp.org>
31504         getdelim: Move AC_LIBOBJ invocations to module description.
31505         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Set HAVE_GETDELIM. Move AC_LIBOBJ
31506         and gl_PREREQ_GETDELIM invocations from here...
31507         * modules/getdelim (configure.ac): ... to here.
31508         (Depends-on): Fix condition.
31510 2011-05-08  Bruno Haible  <bruno@clisp.org>
31512         getcwd: Move AC_LIBOBJ invocations to module description.
31513         * m4/getcwd.m4 (gl_FUNC_GETCWD): Move AC_LIBOBJ and gl_PREREQ_GETCWD
31514         invocations from here...
31515         * modules/getcwd (configure.ac): ... to here.
31517 2011-05-08  Bruno Haible  <bruno@clisp.org>
31519         getcwd-lgpl: Move AC_LIBOBJ invocations to module description.
31520         * m4/getcwd.m4 (gl_FUNC_GETCWD_LGPL): Move AC_LIBOBJ invocation from
31521         here...
31522         * modules/getcwd-lgpl (configure.ac): ... to here.
31524 2011-05-07  Bruno Haible  <bruno@clisp.org>
31526         crypto/gc: Move AC_LIBOBJ invocations to module description.
31527         * m4/gc.m4 (gl_GC): Move AC_LIBOBJ invocations from here...
31528         * modules/crypto/gc (configure.ac): ... to here.
31530 2011-05-07  Bruno Haible  <bruno@clisp.org>
31532         fwriting: Move AC_LIBOBJ invocations to module description.
31533         * m4/fwriting.m4 (gl_FUNC_FWRITINT): Move AC_LIBOBJ invocation from
31534         here...
31535         * modules/fwriting (configure.ac): ... to here.
31537 2011-05-07  Bruno Haible  <bruno@clisp.org>
31539         fwritable: Move AC_LIBOBJ invocations to module description.
31540         * m4/fwritable.m4 (gl_FUNC_FWRITABLE): Move AC_LIBOBJ invocation from
31541         here...
31542         * modules/fwritable (configure.ac): ... to here.
31544 2011-05-07  Bruno Haible  <bruno@clisp.org>
31546         futimens: Move AC_LIBOBJ invocations to module description.
31547         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Move AC_LIBOBJ invocations from
31548         here...
31549         * modules/futimens (configure.ac): ... to here.
31551 2011-05-07  Bruno Haible  <bruno@clisp.org>
31553         ftruncate: Move AC_LIBOBJ invocations to module description.
31554         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Move AC_LIBOBJ and
31555         gl_PREREQ_FTRUNCATE invocations from here...
31556         * modules/ftruncate (configure.ac): ... to here.
31558 2011-05-07  Bruno Haible  <bruno@clisp.org>
31560         fsync: Move AC_LIBOBJ invocations to module description.
31561         * m4/fsync.m4 (gl_FUNC_FSYNC): Move AC_LIBOBJ and gl_PREREQ_FSYNC
31562         invocations from here...
31563         * modules/fsync (configure.ac): ... to here.
31565 2011-05-07  Bruno Haible  <bruno@clisp.org>
31567         fsusage: Move AC_LIBOBJ invocations to module description.
31568         * m4/fsusage.m4 (gl_FUNC_FREOPEN): Move AC_LIBOBJ and
31569         gl_PREREQ_FSUSAGE_EXTRA invocations from here...
31570         * modules/fsusage (configure.ac): ... to here.
31572 2011-05-07  Bruno Haible  <bruno@clisp.org>
31574         freopen: Move AC_LIBOBJ invocations to module description.
31575         * m4/freopen.m4 (gl_FUNC_FREOPEN): Move AC_LIBOBJ and gl_PREREQ_FREOPEN
31576         invocations from here...
31577         * modules/freopen (configure.ac): ... to here.
31579 2011-05-07  Bruno Haible  <bruno@clisp.org>
31581         free: Move AC_LIBOBJ invocations to module description.
31582         * m4/free.m4 (gl_FUNC_FREE): Move AC_LIBOBJ and missing gl_PREREQ_FREE
31583         invocations from here...
31584         * modules/free (configure.ac): ... to here.
31586 2011-05-07  Bruno Haible  <bruno@clisp.org>
31588         freadable: Move AC_LIBOBJ invocations to module description.
31589         * m4/freadable.m4 (gl_FUNC_FREADABLE): Move AC_LIBOBJ invocation from
31590         here...
31591         * modules/freadable (configure.ac): ... to here.
31593 2011-05-07  Bruno Haible  <bruno@clisp.org>
31595         fpurge: Move AC_LIBOBJ invocations to module description.
31596         * m4/fpurge.m4 (gl_FUNC_FPURGE): Set HAVE_FPURGE. Move AC_LIBOBJ
31597         invocations from here...
31598         * modules/fpurge (configure.ac): ... to here.
31600 2011-05-07  Bruno Haible  <bruno@clisp.org>
31602         fpending: Move AC_LIBOBJ invocations to module description.
31603         * m4/fpending.m4 (gl_PREREQ_FPENDING): New macro, extracted from
31604         gl_FUNC_FPENDING.
31605         (gl_FUNC_FPENDING): Move AC_LIBOBJ and gl_PREREQ_FPENDING
31606         invocations from here...
31607         * modules/fpending (configure.ac): ... to here.
31609 2011-05-07  Bruno Haible  <bruno@clisp.org>
31611         fopen: Move AC_LIBOBJ invocations to module description.
31612         * m4/fopen.m4 (gl_FUNC_FOPEN): Move AC_LIBOBJ and gl_PREREQ_FOPEN
31613         invocations from here...
31614         * modules/fopen (configure.ac): ... to here.
31616 2011-05-07  Bruno Haible  <bruno@clisp.org>
31618         fnmatch, fnmatch-gnu: Move AC_LIBOBJ invocations to module description.
31619         * m4/fnmatch.m4 (gl_PREREQ_FNMATCH): New macro, extracted from
31620         gl_FUNC_FNMATCH_POSIX.
31621         (gl_FUNC_FNMATCH_POSIX): Move AC_LIBOBJ and gl_PREREQ_FNMATCH
31622         invocations from here...
31623         * modules/fnmatch (configure.ac): ... to here.
31624         * modules/fnmatch-gnu (configure.ac): ... and here.
31626 2011-05-07  Bruno Haible  <bruno@clisp.org>
31628         flock: Move AC_LIBOBJ invocations to module description.
31629         * m4/flock.m4 (gl_FUNC_FLOCK): Move AC_LIBOBJ and gl_PREREQ_FLOCK
31630         invocations from here...
31631         * modules/flock (configure.ac): ... to here.
31633 2011-05-07  Bruno Haible  <bruno@clisp.org>
31635         fileblocks: Move AC_LIBOBJ invocations to module description.
31636         * m4/fileblocks.m4 (gl_FILEBLOCKS): Move AC_LIBOBJ and
31637         gl_PREREQ_FILEBLOCKS invocations from here...
31638         * modules/fileblocks (configure.ac): ... to here.
31640 2011-05-06  Bruno Haible  <bruno@clisp.org>
31642         fflush: Move AC_LIBOBJ invocations to module description.
31643         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Remove macro.
31644         (gl_FUNC_FFLUSH): Inline it here. Move AC_LIBOBJ and gl_PREREQ_FFLUSH
31645         invocations from here...
31646         * modules/fflush (configure.ac): ... to here.
31648 2011-05-06  Bruno Haible  <bruno@clisp.org>
31650         fdopendir: Move AC_LIBOBJ invocations to module description.
31651         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Move AC_LIBOBJ invocations from
31652         here...
31653         * modules/fdopendir (configure.ac): ... to here.
31654         (Depends-on): Improve conditions.
31656 2011-05-06  Bruno Haible  <bruno@clisp.org>
31658         _Exit: Move AC_LIBOBJ invocations to module description.
31659         * m4/_Exit.m4 (gl_FUNC__EXIT): Move AC_LIBOBJ and gl_PREREQ__EXIT
31660         invocations from here...
31661         * modules/_Exit (configure.ac): ... to here.
31663 2011-05-21  Bruno Haible  <bruno@clisp.org>
31665         euidaccess: Respect rules for use of AC_LIBOBJ.
31666         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Call AC_CHECK_FUNCS instead of
31667         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_EUIDACCESS invocations
31668         from here...
31669         * modules/euidaccess (configure.ac): ... to here.
31671 2011-05-06  Bruno Haible  <bruno@clisp.org>
31673         error: Move AC_LIBOBJ invocations to module description.
31674         * m4/error.m4 (gl_ERROR): Inline AC_FUNC_ERROR_AT_LINE. Remove
31675         AC_LIBSOURCES invocation. Move AC_LIBOBJ and gl_PREREQ_ERROR
31676         invocations from here...
31677         * modules/error (configure.ac): ... to here.
31679 2011-05-06  Bruno Haible  <bruno@clisp.org>
31681         duplocale: Move AC_LIBOBJ invocations to module description.
31682         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Move AC_LIBOBJ and
31683         gl_PREREQ_DUPLOCALE invocations from here...
31684         * modules/duplocale (configure.ac): ... to here.
31686 2011-05-05  Bruno Haible  <bruno@clisp.org>
31688         dirfd: Move AC_LIBOBJ invocations to module description.
31689         * m4/dirfd.m4 (gl_PREREQ_DIRFD): New macro, extracted from
31690         gl_FUNC_DIRFD.
31691         (gl_FUNC_DIRFD): Move AC_LIBOBJ and gl_PREREQ_DIRFD invocations from
31692         here...
31693         * modules/dirfd (configure.ac): ... to here.
31694         (Depends-on): Fix condition.
31696 2011-05-05  Bruno Haible  <bruno@clisp.org>
31698         chown: Respect rules for use of AC_LIBOBJ.
31699         * m4/chown.m4 (gl_FUNC_CHOWN): Move AC_LIBOBJ invocations from here...
31700         * modules/chown (configure.ac): ... to here.
31702 2011-05-05  Bruno Haible  <bruno@clisp.org>
31704         chdir-long: Move AC_LIBOBJ invocations to module description.
31705         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Move AC_LIBOBJ and
31706         gl_PREREQ_CHDIR_LONG invocations from here...
31707         * modules/chdir-long (configure.ac): ... to here.
31709 2011-05-05  Bruno Haible  <bruno@clisp.org>
31711         canonicalize-lgpl: Move AC_LIBOBJ invocations to module description.
31712         * m4/canonicalize.m4 (gl_CANONICALIZE_LGPL): Move AC_LIBOBJ invocation
31713         from here...
31714         * modules/canonicalize-lgpl (configure.ac): ... to here.
31716 2011-05-05  Bruno Haible  <bruno@clisp.org>
31718         calloc-posix, calloc-gnu: Move AC_LIBOBJs to module description.
31719         * m4/calloc.m4 (gl_REPLACE_CALLOC): Remove macro.
31720         (gl_FUNC_CALLOC_GNU, gl_FUNC_CALLOC_POSIX): Instead, just set
31721         REPLACE_CALLOC.
31722         * modules/calloc-posix (configure.ac): Invoke AC_LIBOBJ here.
31723         * modules/calloc-gnu (configure.ac): Likewise.
31725 2011-05-05  Bruno Haible  <bruno@clisp.org>
31727         btowc: Move AC_LIBOBJ invocations to module description.
31728         * m4/btowc.m4 (gl_FUNC_BTOWC): Move AC_LIBOBJ and gl_PREREQ_BTOWC
31729         invocations from here...
31730         * modules/btowc (configure.ac): ... to here.
31732 2011-05-21  Bruno Haible  <bruno@clisp.org>
31734         atexit: Move AC_LIBOBJ invocations to module description.
31735         * m4/atexit.m4 (gl_FUNC_ATEXIT): Call AC_CHECK_FUNCS instead of
31736         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_ATEXIT invocations from
31737         here...
31738         * modules/atexit (configure.ac): ... to here.
31740 2011-05-05  Bruno Haible  <bruno@clisp.org>
31742         atoll: Move AC_LIBOBJ invocations to module description.
31743         * m4/atoll.m4 (gl_FUNC_ATOLL): Move AC_LIBOBJ and gl_PREREQ_ATOLL
31744         invocations from here...
31745         * modules/atoll (configure.ac): ... to here.
31747 2011-05-05  Bruno Haible  <bruno@clisp.org>
31749         argz: Move AC_LIBOBJ invocations to module description.
31750         * m4/argz.m4 (gl_FUNC_ARGZ): Move AC_LIBOBJ invocation from here...
31751         * modules/argz (configure.ac): ... to here.
31753 2011-05-05  Bruno Haible  <bruno@clisp.org>
31755         alphasort: Move AC_LIBOBJ invocations to module description.
31756         * m4/alphasort.m4 (gl_FUNC_ALPHASORT): Move AC_LIBOBJ and
31757         gl_PREREQ_ALPHASORT invocations from here...
31758         * modules/alphasort (configure.ac): ... to here.
31760 2011-06-15  Paul Eggert  <eggert@cs.ucla.edu>
31762         verify: new macro verify_expr; verify_true deprecated
31763         * NEWS: Mention this.
31764         * doc/verify.texi (Compile-time Assertions): Document this.
31765         * lib/verify.h (verify_true): Deprecate.
31766         (verify_expr): New macro.
31767         * tests/test-verify.c (function): Test verify_expr.
31769 2011-06-14  Jim Meyering  <meyering@redhat.com>
31771         init.sh: give more portable redirection-related advice in a comment
31772         * tests/init.sh (stderr_fileno_): Update the advice in comments.
31773         See http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/22488
31774         for lots of discussion.  Stefano Lattarini suggested the solution
31775         of putting "9>&2" after the command.  Reported by Bruno Haible.
31777 2011-06-13  Bruno Haible  <bruno@clisp.org>
31779         locale-zh: Reject zh_CN.GB18030 locale on Solaris 8.
31780         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): On Solaris 8, set LOCALE_ZH_CN to
31781         'none'.
31783 2011-06-13  Paul Eggert  <eggert@cs.ucla.edu>
31785         ftoastr: use strtof only if HAVE_STRTOF
31786         This is needed on HP-UX 11.11 with GCC 4.2.4; see Bruno Haible's report
31787         <http://lists.gnu.org/archive/html/bug-gnulib/2011-06/msg00154.html>.
31788         * lib/ftoastr.c (STRTOF) [LENGTH == 1]: Use strtof only if HAVE_STRTOF.
31789         * modules/ftoastr (configure.ac): Check for strtof.
31791 2011-06-13  Bruno Haible  <bruno@clisp.org>
31793         gnulib-tool: Addendum to 2011-06-08 commit.
31794         * gnulib-tool (func_emit_lib_Makefile_am): If options --makefile-name
31795         and --witness-c-macro have been given, augment AM_CPPFLAGS.
31797 2011-06-13  Bruno Haible  <bruno@clisp.org>
31799         fseeko: Provide a non-inline replacement of fseek().
31800         * lib/stdio.in.h (fseek): Don't provide if module 'fseek' is not used.
31801         * modules/fseeko (Depends-on): Add fseek.
31802         * modules/fseek (License): Change to LGPLv2+.
31804 2011-06-13  Bruno Haible  <bruno@clisp.org>
31806         ftello: Provide a non-inline replacement of ftell().
31807         * lib/stdio.in.h (ftell): Don't provide if module 'ftell' is not used.
31808         * m4/ftell.m4 (gl_FUNC_FTELL): Replace ftell also if the system does
31809         not have ftello() (such as on mingw).
31810         * modules/ftello (Depends-on): Add ftell.
31811         * modules/ftell (License): Change to LGPLv2+.
31813 2011-05-07  Bruno Haible  <bruno@clisp.org>
31815         ftell: Move AC_LIBOBJ invocations to module description.
31816         * m4/ftell.m4 (gl_FUNC_FTELL): Move AC_LIBOBJ invocation from here...
31817         * modules/ftell (configure.ac): ... to here.
31819 2011-05-07  Bruno Haible  <bruno@clisp.org>
31821         ftello: Respect rules for use of AC_LIBOBJ.
31822         * m4/ftello.m4 (gl_REPLACE_FTELLO): Remove macro.
31823         (gl_FUNC_FTELLO): Inline it here. Move AC_LIBOBJ invocation from
31824         here...
31825         * modules/ftello (configure.ac): ... to here.
31827 2011-05-07  Bruno Haible  <bruno@clisp.org>
31829         fseeko: Simplify.
31830         * m4/fseeko.m4 (gl_HAVE_FSEEKO): Remove macro.
31831         (gl_FUNC_FSEEKO): Inline it here.
31833 2011-05-07  Bruno Haible  <bruno@clisp.org>
31835         fseek: Move AC_LIBOBJ invocations to module description.
31836         * m4/fseek.m4 (gl_REPLACE_FSEEK): Remove macro.
31837         (gl_FUNC_FSEEK): Inline it here. Move AC_LIBOBJ invocation from here...
31838         * modules/fseek (configure.ac): ... to here.
31840 2011-05-07  Bruno Haible  <bruno@clisp.org>
31842         fseek: Respect rules for use of AC_LIBOBJ.
31843         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Move gl_REPLACE_FSEEK invocation from
31844         here...
31845         * m4/fseek.m4 (gl_FUNC_FSEEK): ... to here.
31847 2011-05-07  Bruno Haible  <bruno@clisp.org>
31849         fseeko: Respect rules for use of AC_LIBOBJ.
31850         * m4/fseeko.m4 (gl_REPLACE_FSEEKO): Remove macro.
31851         (gl_FUNC_FSEEKO): Inline it here. Move AC_LIBOBJ invocation from
31852         here...
31853         * modules/fseeko (configure.ac): ... to here.
31855 2011-06-13  Bruno Haible  <bruno@clisp.org>
31857         gnulib-tool: Allow comments in the 'Depends-on' section.
31858         * doc/gnulib.texi (Module description): Mention comment syntax in the
31859         Depends-on section.
31860         * gnulib-tool (func_get_dependencies): Filter out comment lines.
31862 2011-06-13  Bruno Haible  <bruno@clisp.org>
31864         file-set.h: guard __attibute__ use, now that it's not always defined
31865         * lib/file-set.h (record_file): Use __attribute__ only with compiler
31866         versions that support it.  This fixes a coreutils build failure with
31867         the vendor cc on HP-UX 11.31.
31869 2011-06-12  Bruno Haible  <bruno@clisp.org>
31871         acl: Add support for HP-UX >= 11.11 JFS ACLs.
31872         * doc/acl-resources.txt: Add info about the ACL APIs on HP-UX.
31873         * m4/acl.m4 (gl_FUNC_ACL): Also test for HP-UX 11.11 API.
31874         * lib/acl-internal.h [HP-UX 11.11]: Include <aclv.h>.
31875         (acl, aclsort): New declarations.
31876         (aclv_nontrivial): New declaration.
31877         * lib/file-has-acl.c (aclv_nontrivial) [HP-UX 11.11]: New function.
31878         (file_has_acl): Read also the second kind of HP-UX ACLs.
31879         * lib/set-mode-acl.c (qset_acl) [HP-UX 11.11]: Try to set the second
31880         kind of HP-UX ACLs if the first kind fails.
31881         * lib/copy-acl.c (qcopy_acl) [HP-UX 11.11]: Read and set also the
31882         second kind of HP-UX ACLs.
31883         * tests/test-sameacls.c [HP-UX 11.11]: Include <aclv.h>.
31884         (main) [HP-UX 11.11]: Test also whether the second kind of HP-UX ACLs
31885         agree.
31886         * tests/test-file-has-acl.sh (acl_flavor) [HP-UX 11.11]: Set to
31887         hpuxjfs.
31888         Handle hpuxjfs.
31889         * tests/test-set-mode-acl.sh (acl_flavor) [HP-UX 11.11]: Set to
31890         hpuxjfs.
31891         Handle hpuxjfs.
31892         * tests/test-copy-acl.sh (acl_flavor) [HP-UX 11.11]: Set to hpuxjfs.
31893         (func_test_same_acls): Use both lsacl and getacl.
31894         Handle hpuxjfs.
31895         * tests/test-copy-file.sh (acl_flavor) [HP-UX 11.11]: Set to hpuxjfs.
31896         (func_test_same_acls): Use both lsacl and getacl.
31897         Handle hpuxjfs.
31899 2011-06-12  Bruno Haible  <bruno@clisp.org>
31901         acl: Complete the 2010-08-10 fix.
31902         * lib/file-has-acl.c (file_has_acl) [HP-UX]: Also test against ENOTSUP.
31903         * lib/set-mode-acl.c (qset_acl) [HP-UX]: Likewise.
31904         * lib/copy-acl.c (qcopy_acl) [HP-UX]: Test for the errno values
31905         explicitly.
31906         * tests/test-sameacls.c (main) [HP-UX]: Also test against ENOTSUP.
31907         Reported in <http://debbugs.gnu.org/db/60/6053.html>.
31909 2011-06-12  Bruno Haible  <bruno@clisp.org>
31911         spawn-pipe tests: Comments.
31912         * tests/test-spawn-pipe-child.c (main): Update comment.
31913         Reported by James Youngman <jay@gnu.org>.
31915 2011-06-11  James Youngman  <jay@gnu.org>
31917         New module 'stat-size'.
31918         * modules/stat-size: New module.  Provides macros for accessing
31919         file size information in instances of struct stat.  Depends on the
31920         fileblocks module because it calls st_blocks.
31921         * lib/stat-size.h: New file, adapted from coreutils' system.h.
31922         * doc/gnulib.texi: Include stat-size.texi.
31923         * doc/stat-size.texi: Documentation for this module.
31924         * m4/stat-size.m4: New file; defines gl_STAT_SIZE.
31925         * m4/fileblocks.m4: Mention that stat-size depends on the call to
31926         AC_STRUCT_ST_BLOCKS.
31928 2011-06-09  Bruno Haible  <bruno@clisp.org>
31930         thread: Support pthreads-win32.
31931         * lib/glthread/thread.h (gl_thread_self): Define differently on
31932         pthreads-win32.
31933         (gl_null_thread): New declaration.
31934         (gl_thread_self_pointer): New macro.
31935         * lib/glthread/thread.c (gl_null_thread): New constant.
31936         * tests/test-lock.c: Use gl_thread_self_pointer instead of
31937         gl_thread_self.
31938         * tests/test-tls.c: Likewise.
31939         Suggested by Paul Eggert. Reported by Eric Blake.
31941 2011-06-09  Bruno Haible  <bruno@clisp.org>
31943         thread: Fix confusion between NULL and 0.
31944         * lib/glthread/thread.h (gl_thread_self): Use NULL and 0 appropriately.
31945         Reported by Paul Eggert.
31947 2011-06-09  Bruno Haible  <bruno@clisp.org>
31949         spawn-pipe tests: Avoid test failure on HP-UX 11.
31950         * tests/test-spawn-pipe-child.c (main) [HP-UX]: Don't assert that fd 2
31951         is closed.
31953 2011-06-09  Bruno Haible  <bruno@clisp.org>
31955         acl tests: Fix compilation error on HP-UX 11.
31956         * tests/test-sameacls.c: Include <sys/acl.h> also on HP-UX.
31958 2011-06-09  Bruno Haible  <bruno@clisp.org>
31960         rmdir: Avoid test failure on HP-UX 10.20.
31961         * tests/test-rmdir.h (test_rmdir_func): Accept ENOTEMPTY error, like
31962         EEXIST.
31964 2011-06-08  Eric Blake  <eblake@redhat.com>
31966         perror: fix test on mingw
31967         * modules/perror-tests (Depends-on): Add dup2.
31969         strerror_r-posix: fix on MacOS
31970         * m4/strerror.m4 (gl_FUNC_STRERROR): Flush out MacOS bug.
31971         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R_WORKS): Likewise, and fix
31972         logic bug.
31973         * lib/strerror_r.c (strerror_r): Fix the bug.
31974         * lib/strerror.c (strerror): Likewise.
31975         * doc/posix-functions/strerror_r.texi (strerror_r): Document the
31976         problem.
31977         * doc/posix-functions/strerror.texi (strerror): Likewise.
31978         * doc/posix-functions/perror.texi (perror): Likewise.
31979         * tests/test-strerror.c (main): Enhance test.
31980         * tests/test-strerror_r.c (main): Likewise.
31982 2011-06-08  Bruno Haible  <bruno@clisp.org>
31984         gnulib-tool: Better isolation between different gnulib-tool invocations.
31985         * gnulib-tool: New option --witness-c-macro.
31986         (witness_c_macro): New variable.
31987         (func_emit_lib_Makefile_am): If --witness-c-macro was specified, let
31988         AM_CPPFLAGS define it as a C macro.
31989         (func_emit_tests_Makefile_am): Likewise.
31990         (func_import): Store witness_c_macro setting in gnulib-cache.m4 and
31991         read it from there.
31992         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_CONDITION): Define through
31993         m4_define, not AC_DEFUN.
31994         (gl_MODULE_INDICATOR_SET_VARIABLE_AUX,
31995         gl_MODULE_INDICATOR_SET_VARIABLE_AUX_OR): New macros.
31996         (gl_MODULE_INDICATOR_SET_VARIABLE): Use them.
31997         * modules/arpa_inet (Makefile.am): Use sed expression s/.../.../, not
31998         s|...|...|, to substitute the values of the GNULIB_* module indicator
31999         variables.
32000         * modules/dirent (Makefile.am): Likewise.
32001         * modules/fcntl-h (Makefile.am): Likewise.
32002         * modules/iconv-h (Makefile.am): Likewise.
32003         * modules/langinfo (Makefile.am): Likewise.
32004         * modules/locale (Makefile.am): Likewise.
32005         * modules/math (Makefile.am): Likewise.
32006         * modules/netdb (Makefile.am): Likewise.
32007         * modules/poll-h (Makefile.am): Likewise.
32008         * modules/pty (Makefile.am): Likewise.
32009         * modules/search (Makefile.am): Likewise.
32010         * modules/signal (Makefile.am): Likewise.
32011         * modules/spawn (Makefile.am): Likewise.
32012         * modules/stdio (Makefile.am): Likewise.
32013         * modules/stdlib (Makefile.am): Likewise.
32014         * modules/string (Makefile.am): Likewise.
32015         * modules/sys_ioctl (Makefile.am): Likewise.
32016         * modules/sys_select (Makefile.am): Likewise.
32017         * modules/sys_socket (Makefile.am): Likewise.
32018         * modules/sys_stat (Makefile.am): Likewise.
32019         * modules/sys_times (Makefile.am): Likewise.
32020         * modules/sys_utsname (Makefile.am): Likewise.
32021         * modules/sys_wait (Makefile.am): Likewise.
32022         * modules/termios (Makefile.am): Likewise.
32023         * modules/time (Makefile.am): Likewise.
32024         * modules/unistd (Makefile.am): Likewise.
32025         * modules/wchar (Makefile.am): Likewise.
32027 2011-06-08  Eric Blake  <eblake@redhat.com>
32029         strerror: simplify replacement
32030         * m4/strerror.m4 (gl_PREREQ_STRERROR): Delete.
32031         * modules/strerror (configure.ac): No prereqs needed here...
32032         * modules/strerror-override (configure.ac): ...but this needs it.
32033         (Files): Add file for needed prereq macro.
32035 2011-06-08  Bruno Haible  <bruno@clisp.org>
32037         strerror_r-posix: Tweaks.
32038         * m4/strerror.m4 (gl_FUNC_STRERROR): Omit the code that tests
32039         gl_cv_func_strerror_r_works if gl_FUNC_STRERROR_R_WORKS is not present.
32040         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R_WORKS): Fix AC_CACHE_CHECK
32041         message. Move gl_HEADER_STRING_H_DEFAULTS invocation from here...
32042         (gl_FUNC_STRERROR_R): ... to here.
32043         (gl_PREREQ_STRERROR_R): Test for __xpg_strerror_r.
32045 2011-06-07  Eric Blake  <eblake@redhat.com>
32047         perror: document fixed bugs
32048         * doc/posix-functions/perror.texi (perror): Document recent
32049         patches.
32051 2011-06-07  Paul Eggert  <eggert@cs.ucla.edu>
32053         stat-time: get_stat_birthtime failure is better-defined
32054         * lib/stat-time.h (get_stat_birthtime): If the time is not available,
32055         return a timestamp whose tv_sec and tv_nsec values are both -1.
32056         Previously, the spec said only that the tv_nsec value was negative.
32057         This upward-compatible change simplifies GNU tar a bit.
32059 2011-06-07  Eric Blake  <eblake@redhat.com>
32061         strerror_r-posix: work around cygwin 1.7.9
32062         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Split...
32063         (gl_FUNC_STRERROR_R_WORKS): ...into new macro, to detect Cygwin
32064         bug without replacing strerror_r.
32065         * m4/strerror.m4 (gl_FUNC_STRERROR): Replace strerror if
32066         strerror_r is buggy, but without requiring strerror_r compilation.
32067         * doc/posix-functions/strerror_r.texi (strerror_r): Fix docs.
32069         test-perror: relax test to ignore cygwin bug
32070         * tests/test-perror2.c (main): Relax test on requiring detection
32071         of stream errors, and use unbuffered stream.
32072         * doc/posix-functions/dprintf.texi (dprintf): Document bug.
32073         * doc/posix-functions/fprintf.texi (fprintf): Likewise.
32074         * doc/posix-functions/fputc.texi (fputc): Likewise.
32075         * doc/posix-functions/fputs.texi (fputs): Likewise.
32076         * doc/posix-functions/fputws.texi (fputws): Likewise.
32077         * doc/posix-functions/fwprintf.texi (fwprintf): Likewise.
32078         * doc/posix-functions/fwrite.texi (fwrite): Likewise.
32079         * doc/posix-functions/getopt.texi (getopt): Likewise.
32080         * doc/posix-functions/perror.texi (perror): Likewise.
32081         * doc/posix-functions/printf.texi (printf): Likewise.
32082         * doc/posix-functions/psiginfo.texi (psiginfo): Likewise.
32083         * doc/posix-functions/psignal.texi (psignal): Likewise.
32084         * doc/posix-functions/putc.texi (putc): Likewise.
32085         * doc/posix-functions/putc_unlocked.texi (putc_unlocked):
32086         Likewise.
32087         * doc/posix-functions/putchar.texi (putchar): Likewise.
32088         * doc/posix-functions/putchar_unlocked.texi (putchar_unlocked):
32089         Likewise.
32090         * doc/posix-functions/puts.texi (puts): Likewise.
32091         * doc/posix-functions/putwc.texi (putwc): Likewise.
32092         * doc/posix-functions/putwchar.texi (putwchar): Likewise.
32093         * doc/posix-functions/vdprintf.texi (vdprintf): Likewise.
32094         * doc/posix-functions/vfprintf.texi (vfprintf): Likewise.
32095         * doc/posix-functions/vfwprintf.texi (vfwprintf): Likewise.
32096         * doc/posix-functions/vprintf.texi (vprintf): Likewise.
32097         * doc/posix-functions/vwprintf.texi (vwprintf): Likewise.
32098         * doc/posix-functions/wordexp.texi (wordexp): Likewise.
32099         * doc/posix-functions/wprintf.texi (wprintf): Likewise.
32101 2011-05-22  Bruno Haible  <bruno@clisp.org>
32103         strerror: Move AC_LIBOBJ invocations to module description.
32104         * m4/strerror.m4 (gl_FUNC_STRERROR): Move AC_LIBOBJ and
32105         gl_PREREQ_STRERROR invocations from here...
32106         * modules/strerror (configure.ac): ... to here.
32108 2011-05-21  Bruno Haible  <bruno@clisp.org>
32110         perror: Use common idiom.
32111         * modules/perror (configure.ac): Reorder statements.
32113 2011-06-07  Stefano Lattarini  <stefano.lattarini@gmail.com>
32115         tests: fix usage message in 'mktempd_'
32116         * tests/init.sh (mktempd_): In the usage message, use literal
32117         'mktempd_', not '$ME' (which is even undefined), as the name of
32118         the subroutine.
32120 2011-06-07  Stefano Lattarini  <stefano.lattarini@gmail.com>
32122         tests init: new function 'fatal_', for hard errors
32123         Before this patch, the only way offered by tests/init.sh to
32124         properly signal a hard error was the `framework_failure_'
32125         function.  But the error message issued by that function,
32126         as its name would suggest, refers to a set-up failure in the
32127         testsuite, while hard errors can obviously also be due to
32128         other reasons.  The best way to fix this inconsistency is to
32129         introduce a new function with a more general error message.
32130         * tests/init.sh (fatal_): New function.
32132 2011-06-06  Eric Blake  <eblake@redhat.com>
32134         canonicalize-lgpl: use common idiom
32135         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Prefer older rm -rf
32136         over newer POSIX -Rf.
32137         Reported by Bruno Haible.
32139         canonicalize-lgpl: work around AIX realpath bug
32140         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Expose AIX bug.
32141         * doc/posix-functions/realpath.texi (realpath): Document it.
32142         Reported by Bruno Haible.
32144         strerror: work around FreeBSD bug
32145         * lib/strerror.c (strerror): Special case 0.
32146         Reported by Bruno Haible.
32148         strerror-override: avoid bloating errno module
32149         * modules/errno (Files, configure.ac): Move replacement strings...
32150         * modules/strerror-override: ...to new module.
32151         * modules/strerror (Depends-on): Add strerror-override.
32152         * modules/strerror_r-posix (Depends-on): Likewise.
32153         * MODULES.html.sh: Document new module.
32154         Reported by Bruno Haible.
32156 2011-06-06  Bruno Haible  <bruno@clisp.org>
32158         spawn-pipe tests: Rename program.
32159         * tests/test-spawn-pipe-main.c: Renamed from tests/test-spawn-pipe.c.
32160         * tests/test-spawn-pipe-child.c: Update comment.
32161         * tests/test-spawn-pipe.sh: Update.
32162         * modules/spawn-pipe-tests (Files, Makefile.am): Update.
32164         spawn-pipe tests: Link the child program only against libc.
32165         * tests/test-spawn-pipe-child.c: New file, extracted from
32166         tests/test-spawn-pipe.c.
32167         (main): Expect only one argument.
32168         (is_open): New function, copied from tests/test-pipe.c.
32169         * tests/test-spawn-pipe.c: Don't include <errno.h>.
32170         (child_main): Remove function.
32171         (test_pipe): Pass only one argument to the child program.
32172         (main): Remove child process code. Expect the child program's name as
32173         first argument.
32174         * tests/test-spawn-pipe.sh: Pass the child program's name as first
32175         argument.
32176         * modules/spawn-pipe-tests (Files): Add tests/test-spawn-pipe-child.c.
32177         (Makefile.am): Add test-spawn-pipe-child to check_PROGRAMS. Link
32178         test-spawn-pipe-child against no libraries.
32180 2011-06-06  Bruno Haible  <bruno@clisp.org>
32182         careadlinkat: Avoid mismatch between ssize_t and int.
32183         * lib/careadlinkat.h (careadlinkatcwd): Declare as a function always.
32184         * lib/careadlinkat.c (careadlinkatcwd): Define always.
32186 2011-06-06  Jim Meyering  <meyering@redhat.com>
32188         gnulib-common.m4: add _GL_ATTRIBUTE_CONST and _GL_ATTRIBUTE_PURE
32189         * m4/gnulib-common.m4 (gl_COMMON): Emit definitions of
32190         _GL_ATTRIBUTE_CONST and _GL_ATTRIBUTE_PURE.
32192 2011-06-05  Bruno Haible  <bruno@clisp.org>
32194         ansi-c++-opt: Interoperability with libtool.
32195         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): When a C++ compiler is not found,
32196         set the variable to "no", not to ":".
32197         * NEWS: Mention the change.
32199 2011-06-05  Bruno Haible  <bruno@clisp.org>
32201         acl: Fix test failure on AIX 7.
32202         * tests/test-sameacls.c (main) [AIX]: Fix aclx_printStr invocation.
32203         Based on a patch by Jørn Amundsen <Jorn.Amundsen@ntnu.no>.
32205 2011-06-05  Bruno Haible  <bruno@clisp.org>
32207         pipe-filter-ii: Fix test failure on AIX and IRIX.
32208         * lib/pipe-filter-ii.c (pipe_filter_ii_execute): When write() fails
32209         with EAGAIN, retry with a smaller buffer size.
32211 2011-06-05  Bruno Haible  <bruno@clisp.org>
32213         localename: Fix link dependencies.
32214         * modules/localename (Link): Mention $(LIBTHREAD) or $(LTLIBTHREAD).
32215         * modules/localename-tests (Makefile.am): Link test-localename with
32216         $(LIBTHREAD).
32218 2011-06-05  Bruno Haible  <bruno@clisp.org>
32220         error: Avoid gcc warning.
32221         * lib/error.c (strerror_r): Declare also when its return type is 'int'.
32223 2011-06-05  Bruno Haible  <bruno@clisp.org>
32225         unsetenv: Avoid gcc warning.
32226         * lib/unsetenv.c (unsetenv): Provide declaration if system lacks it.
32228 2011-06-05  Bruno Haible  <bruno@clisp.org>
32230         setenv: Avoid gcc warning.
32231         * lib/setenv.c (setenv): Provide declaration if system lacks it.
32233 2011-06-05  Bruno Haible  <bruno@clisp.org>
32235         sys_select: Ensure memset is declared also on AIX 7.
32236         * lib/sys_select.in.h: Include <string.h> also on AIX.
32237         * doc/posix-headers/sys_select.texi: Mention that <sys/select.h> is not
32238         self-contained also on AIX 7.1.
32240 2011-06-04  Jim Meyering  <meyering@redhat.com>
32242         maint.mk: sc_unmarked_diagnostics: don't hard-code "error"
32243         * top/maint.mk (sc_unmarked_diagnostics): Don't hard-code the
32244         function name, "error".
32245         (_gl_translatable_diag_func_re): New configurable variable.
32247 2011-06-04  Bruno Haible  <bruno@clisp.org>
32249         getopt: Avoid gcc warning.
32250         * lib/getopt.c (_getopt_internal_r): Remove unused variable 'ambig'.
32252 2011-06-04  Bruno Haible  <bruno@clisp.org>
32254         strerror_r: Fix comments.
32255         * lib/strerror_r.c (strerror_r): Update comments after 2011-06-01
32256         commit.
32258 2011-06-04  Bruno Haible  <bruno@clisp.org>
32260         perror: Fix compilation error.
32261         * lib/perror.c: Don't include intprops.h, verify.h, strerror-impl.h.
32262         Undefine fprintf, not sprintf.
32263         * modules/perror (Depends-on): Remove intprops, verify.
32265 2011-06-04  Bruno Haible  <bruno@clisp.org>
32267         setlocale: Enable replacement on Cygwin 1.5.
32268         * m4/setlocale.m4 (gl_FUNC_SETLOCALE): Set REPLACE_SETLOCALE also on
32269         Cygwin 1.5.x.
32270         * doc/posix-functions/setlocale.texi: Mention that the problem with the
32271         LC_CTYPE category also exists on Cygwin 1.5.x.
32273 2011-06-04  Bruno Haible  <bruno@clisp.org>
32275         strerror-override: Don't disable symbol renamings.
32276         * lib/strerror-override.h: Include errno.h and stddef.h, not string.h.
32277         * lib/strerror-override.c: Include config.h.
32278         (strerror_override): Don't undefine.
32280 2011-06-03  Bruno Haible  <bruno@clisp.org>
32282         Copyright: Use LGPL 2.1 instead of LGPL 2.0.
32283         * lib/localename.h: Update copyright header.
32284         * lib/localename.c: Likewise.
32285         * lib/relocatable.h: Likewise.
32286         * lib/relocatable.c: Likewise.
32288 2011-06-02  Bruno Haible  <bruno@clisp.org>
32290         doc: Fix a module name.
32291         * doc/posix-functions/open.texi: Fix module name 'nonblocking'.
32293 2011-06-02  Bruno Haible  <bruno@clisp.org>
32295         pipe2: Remove dependency on 'nonblocking' module.
32296         * lib/pipe2.c: Include verify.h. Include nonblocking.h only if
32297         O_NONBLOCK is defined by gnulib.
32298         (pipe2) [WIN32]: If O_NONBLOCK is not defined by gnulib, verify that it
32299         is zero.
32300         * modules/pipe2 (Depends-on): Add verify. Remove nonblocking.
32301         * tests/test-pipe2.c: Include nonblocking.h only if O_NONBLOCK is
32302         defined by gnulib.
32303         (get_nonblocking_flag): New function.
32304         (main): Test O_NONBLOCK flag only if it is nonzero.
32305         * doc/glibc-functions/pipe2.texi: Mention the 'nonblocking' module.
32307 2011-06-03  Jim Meyering  <meyering@redhat.com>
32309         maint: three new prohibit-header-without-use rules
32310         Prohibit use of cloexec.h, posixver.h, same.h without use.
32311         * top/maint.mk (sc_prohibit_cloexec_without_use): New rule.
32312         (sc_prohibit_posixver_without_use): Likewise.
32313         (sc_prohibit_same_without_use): Likewise.
32315 2011-06-02  Paul Eggert  <eggert@cs.ucla.edu>
32317         allocator: 'die' routine is now given requested size
32318         * lib/allocator.h (struct allocator.die): New size arg.
32319         * lib/careadlinkat.c (careadlinkat): Pass size to 'die' function.
32320         If the actual problem is an ssize_t limitation, not a size_t or
32321         malloc failure, fail with errno==ENAMETOOLONG instead of calling 'die'.
32323 2011-06-01  Eric Blake  <eblake@redhat.com>
32325         strerror: drop strerror_r dependency
32326         * lib/strerror_r.c (strerror_r): Move gnulib replacement strings...
32327         * lib/strerror-override.c (strerror_override): ...to new file.
32328         * lib/strerror-override.h: Add prototype.
32329         * lib/strerror-impl.h: Delete.
32330         * lib/strerror.c (strerror): New implementation.
32331         * modules/errno (Files): Add new files.
32332         (configure.ac): Compile new file as appropriate.
32333         * modules/strerror (Files): Drop unused file.
32334         (Depends-on): Drop strerror_r-posix.
32335         * MODULES.html.sh: Document strerror_r-posix.
32336         Requested by Sam Steingold.
32338         perror: call strerror_r directly
32339         * modules/perror (Files): Drop strerror-impl.h.
32340         * lib/perror.c (perror): Use our own stack buffer, rather than
32341         calling a wrapper that uses static storage.
32342         * doc/posix-functions/perror.texi (perror): Document a limitation
32343         of our replacement.
32345         strerror_r: fix includes for FreeBSD
32346         * lib/strerror_r.c (includes): Use <stdlib.h> unconditionally,
32347         since we use abort on some platforms.
32348         Reported by Matthias Bolte.
32350 2011-05-31  Bruno Haible  <bruno@clisp.org>
32352         Fix link errors in tests: openat-die uses gettext-h.
32353         * modules/areadlinkat-tests (Makefile.am): Link test-areadlinkat
32354         against $(LIBINTL).
32355         * modules/dirent-safer-tests (Makefile.am): Link test-dirent-safer
32356         against $(LIBINTL).
32357         * modules/fdopendir-tests (Makefile.am): Link test-fdopendir against
32358         $(LIBINTL).
32359         * modules/fdutimensat-tests (Makefile.am): Link test-fdutimensat
32360         against $(LIBINTL).
32361         * modules/linkat-tests (Makefile.am): Link test-linkat against
32362         $(LIBINTL).
32363         * modules/mkfifoat-tests (Makefile.am): Link test-mkfifoat against
32364         $(LIBINTL).
32365         * modules/openat-safer-tests (Makefile.am): Link test-openat-safer
32366         against $(LIBINTL).
32367         * modules/openat-tests (Makefile.am): Link test-fchownat, test-fstatat,
32368         test-mkdirat, test-openat, test-unlinkat against $(LIBINTL).
32369         * modules/readlinkat-tests (Makefile.am): Link test-readlinkat against
32370         $(LIBINTL).
32371         * modules/symlinkat-tests (Makefile.am): Link test-symlinkat against
32372         $(LIBINTL).
32373         * modules/utimensat-tests (Makefile.am): Link test-utimensat against
32374         $(LIBINTL).
32375         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
32377 2011-05-31  Bruno Haible  <bruno@clisp.org>
32379         Fix link errors in tests: wait-process uses gettext-h.
32380         * modules/nonblocking-pipe-tests (Makefile.am): Set
32381         test_nonblocking_pipe_main_LDADD.
32382         * modules/nonblocking-socket-tests (Makefile.am): Link
32383         test-nonblocking-socket-main against $(LIBINTL).
32384         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
32386 2011-05-29  Paul Eggert  <eggert@cs.ucla.edu>
32388         assert-h: work around 'verify' incompatibility
32389         * lib/verify.h: Use @...@ directives, not ifdef.
32390         * modules/assert-h (assert.h): Implement the directives.
32391         (assert.h): Substitute the symbol-prefix more consistently.
32393 2011-05-29  Jim Meyering  <meyering@redhat.com>
32395         trim: remove three superfluous assignments
32396         * lib/trim.c (trim2): Remove three superfluous assignments
32397         and correct brace positioning.
32399 2011-05-29  Bruno Haible  <bruno@clisp.org>
32401         wctype-h: Avoid namespace pollution on Solaris 2.6.
32402         * lib/wctype.in.h: On Solaris, undefine 'multibyte' and a few other
32403         identifiers.
32404         * doc/posix-headers/wctype.texi: Mention the problem.
32405         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
32407 2011-05-28  Jim Meyering  <meyering@redhat.com>
32409         parse-datetime.y: accommodate -Wstrict-overflow
32410         * lib/parse-datetime.y (yylex): Rearrange pointer arithmetic to
32411         placate -Wstrict-overflow.
32413         trim: avoid a warning from -O2 -Wstrict-overflow
32414         * lib/trim.c (trim2): Declare local to be "unsigned int", not "int".
32416 2011-05-29  Bruno Haible  <bruno@clisp.org>
32418         gnulib-tool: Fix bug in yesterday's commit.
32419         * gnulib-tool (func_create_testdir): Don't add gltests to $subdirs
32420         twice.
32422 2011-05-29  Bruno Haible  <bruno@clisp.org>
32424         Allow multiple gnulib generated include files to be combined.
32425         * gnulib-tool (func_compute_include_guard_prefix): New function.
32426         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Resolve also
32427         ${gl_include_guard_prefix} references.
32428         (func_import, func_create_testdir): Invoke
32429         func_compute_include_guard_prefix.
32430         * lib/arpa_inet.in.h: Use the @GUARD_PREFIX@ placeholder.
32431         * lib/ctype.in.h: Likewise.
32432         * lib/dirent.in.h: Likewise.
32433         * lib/errno.in.h: Likewise.
32434         * lib/fcntl.in.h: Likewise.
32435         * lib/float.in.h: Likewise.
32436         * lib/getopt.in.h: Likewise.
32437         * lib/iconv.in.h: Likewise.
32438         * lib/langinfo.in.h: Likewise.
32439         * lib/locale.in.h: Likewise.
32440         * lib/math.in.h: Likewise.
32441         * lib/netdb.in.h: Likewise.
32442         * lib/netinet_in.in.h: Likewise.
32443         * lib/poll.in.h: Likewise.
32444         * lib/pthread.in.h: Likewise.
32445         * lib/pty.in.h: Likewise.
32446         * lib/sched.in.h: Likewise.
32447         * lib/se-selinux.in.h: Likewise.
32448         * lib/search.in.h: Likewise.
32449         * lib/signal.in.h: Likewise.
32450         * lib/spawn.in.h: Likewise.
32451         * lib/stdarg.in.h: Likewise.
32452         * lib/stddef.in.h: Likewise.
32453         * lib/stdint.in.h: Likewise.
32454         * lib/stdio.in.h: Likewise.
32455         * lib/stdlib.in.h: Likewise.
32456         * lib/string.in.h: Likewise.
32457         * lib/strings.in.h: Likewise.
32458         * lib/sys_file.in.h: Likewise.
32459         * lib/sys_ioctl.in.h: Likewise.
32460         * lib/sys_select.in.h: Likewise.
32461         * lib/sys_socket.in.h: Likewise.
32462         * lib/sys_stat.in.h: Likewise.
32463         * lib/sys_time.in.h: Likewise.
32464         * lib/sys_times.in.h: Likewise.
32465         * lib/sys_uio.in.h: Likewise.
32466         * lib/sys_utsname.in.h: Likewise.
32467         * lib/sys_wait.in.h: Likewise.
32468         * lib/sysexits.in.h: Likewise.
32469         * lib/termios.in.h: Likewise.
32470         * lib/time.in.h: Likewise.
32471         * lib/unistd.in.h: Likewise.
32472         * lib/wchar.in.h: Likewise.
32473         * lib/wctype.in.h: Likewise.
32474         * modules/arpa_inet (Makefile.am): Substitute @GUARD_PREFIX@.
32475         * modules/ctype (Makefile.am): Likewise.
32476         * modules/dirent (Makefile.am): Likewise.
32477         * modules/errno (Makefile.am): Likewise.
32478         * modules/fcntl-h (Makefile.am): Likewise.
32479         * modules/float (Makefile.am): Likewise.
32480         * modules/getopt-posix (Makefile.am): Likewise.
32481         * modules/iconv-h (Makefile.am): Likewise.
32482         * modules/langinfo (Makefile.am): Likewise.
32483         * modules/locale (Makefile.am): Likewise.
32484         * modules/math (Makefile.am): Likewise.
32485         * modules/netdb (Makefile.am): Likewise.
32486         * modules/netinet_in (Makefile.am): Likewise.
32487         * modules/poll-h (Makefile.am): Likewise.
32488         * modules/pthread (Makefile.am): Likewise.
32489         * modules/pty (Makefile.am): Likewise.
32490         * modules/sched (Makefile.am): Likewise.
32491         * modules/search (Makefile.am): Likewise.
32492         * modules/selinux-h (Makefile.am): Likewise.
32493         * modules/signal (Makefile.am): Likewise.
32494         * modules/spawn (Makefile.am): Likewise.
32495         * modules/stdarg (Makefile.am): Likewise.
32496         * modules/stddef (Makefile.am): Likewise.
32497         * modules/stdint (Makefile.am): Likewise.
32498         * modules/stdio (Makefile.am): Likewise.
32499         * modules/stdlib (Makefile.am): Likewise.
32500         * modules/string (Makefile.am): Likewise.
32501         * modules/strings (Makefile.am): Likewise.
32502         * modules/sys_file (Makefile.am): Likewise.
32503         * modules/sys_ioctl (Makefile.am): Likewise.
32504         * modules/sys_select (Makefile.am): Likewise.
32505         * modules/sys_socket (Makefile.am): Likewise.
32506         * modules/sys_stat (Makefile.am): Likewise.
32507         * modules/sys_time (Makefile.am): Likewise.
32508         * modules/sys_times (Makefile.am): Likewise.
32509         * modules/sys_uio (Makefile.am): Likewise.
32510         * modules/sys_utsname (Makefile.am): Likewise.
32511         * modules/sys_wait (Makefile.am): Likewise.
32512         * modules/sysexits (Makefile.am): Likewise.
32513         * modules/termios (Makefile.am): Likewise.
32514         * modules/time (Makefile.am): Likewise.
32515         * modules/unistd (Makefile.am): Likewise.
32516         * modules/wchar (Makefile.am): Likewise.
32517         * modules/wctype-h (Makefile.am): Likewise.
32518         * modules/assert-h (Makefile.am): Replace _GL_VERIFY_H specially.
32520 2011-05-29  Bruno Haible  <bruno@clisp.org>
32522         assert-h: Allow multiple gnulib generated replacements to coexist.
32523         * lib/verify.h (struct _gl_verify_type): Avoid identical redefinition.
32525 2011-05-29  Bruno Haible  <bruno@clisp.org>
32527         argp: Allow coexistence with strerror_r-posix module.
32528         * lib/argp-help.c (__argp_failure): If strerror_r is defined as a macro
32529         (either to __xpg_strerror_r by glibc's <string.h> or to rpl_strerror_r
32530         by gnulib's <string.h> replacement), assume it has the POSIX signature,
32531         not the glibc signature.
32533 2011-05-28  Bruno Haible  <bruno@clisp.org>
32535         gnulib-tool: Alternative structure of testdirs, similar to --import.
32536         * gnulib-tool: New option --single-configure.
32537         (func_usage): Document it.
32538         (single_configure): New variable.
32539         (func_modules_transitive_closure_separately,
32540         func_modules_transitive_closure_separately,
32541         func_determine_use_libtests, func_modules_add_dummy_separately,
32542         func_modules_to_filelist_separately): New functions, extracted from
32543         func_import.
32544         (func_emit_tests_Makefile_am): Handle $single_configure = true case.
32545         (func_import): Use the new functions.
32546         (func_create_testdir): Set final_modules. Handle $single_configure =
32547         true case.
32549 2011-05-28  Bruno Haible  <bruno@clisp.org>
32551         getloadavg: Remove an unreliable safety check.
32552         * m4/getloadavg.m4 (gl_GETLOADAVG): Drop argument. Remove test whether
32553         getloadavg.c is in place.
32554         * modules/getloadavg (configure.ac): Drop argument of gl_GETLOADAVG.
32555         Reported by Sam Steingold <sds@gnu.org>.
32557 2011-05-28  Bruno Haible  <bruno@clisp.org>
32559         doc: Cleanup yet another file produced by texinfo.tex.
32560         * doc/Makefile (mostlyclean): Remove also gnulib.cn.
32562 2011-05-28  Bruno Haible  <bruno@clisp.org>
32564         Finish the conditional dependencies mechanism.
32565         * gnulib-tool: New option --no-conditional-dependencies.
32566         (func_usage): Document it. Don't mark --conditional-dependencies as
32567         experimental.
32568         (cond_dependencies): The possible values can now be true, false, empty.
32569         (func_modules_transitive_closure, func_emit_autoconf_snippets): Update.
32570         (func_import): Store setting in gnulib-cache.m4 and read it from there.
32571         * doc/gnulib-tool.texi (Conditional dependencies): New section.
32573 2011-05-28  Bruno Haible  <bruno@clisp.org>
32575         doc: Use a recent texinfo.tex.
32576         * doc/Makefile (tex_opts): New variable.
32577         (%.dvi, %.pdf): Pass it to texi2dvi and texi2pdf.
32579 2011-05-28  Jim Meyering  <meyering@redhat.com>
32581         intprops.h: adjust comment to match code change
32582         * lib/intprops.h (_GL_INT_CONVERT): Adjust comment: now that E is used
32583         only once, it *may* have side effects.  Also fix an unrelated typo.
32584         (_GL_INT_SIGNED): Likewise.
32586 2011-05-26  Simon Josefsson  <simon@josefsson.org>
32588         * lib/gen-uni-tables.c: Say "gen-uni-tables.c" consistently.
32590 2011-05-26  Bruno Haible  <bruno@clisp.org>
32592         mbsrchr: Avoid collision with system function on Interix.
32593         * lib/string.in.h (mbsrchr): Define as rpl_mbsrchr also on Interix.
32594         Reported by Markus Duft <mduft@gentoo.org>.
32596 2011-05-15  James Youngman  <jay@gnu.org>
32598         getopt: for ambiguous options, enumerate the possibilities.
32599         * lib/getopt.c (_getopt_internal_r): Merge glibc change printing
32600         the ambiguous options when an ambiguous prefix is given. This was
32601         http://sourceware.org/bugzilla/show_bug.cgi?id=7101.  The merged
32602         glibc change was
32603         http://sourceware.org/git/?p=glibc.git;a=commit;h=bd25564e1e98910ed69043ed6a6f884ce60e5780.
32605 2011-05-25  Eric Blake  <eblake@redhat.com>
32607         getcwd: work around mingw bug
32608         * lib/getcwd-lgpl.c (rpl_getcwd): Guarantee correct error.
32609         * doc/posix-functions/getcwd.texi (getcwd): Document it.
32610         Reported by Matthias Bolte.
32612 2011-05-24  Paul Eggert  <eggert@cs.ucla.edu>
32614         test-intprops: disable -Wtype-limits diagnostics
32615         * tests/test-intprops.c: Use a pragma to ignore -Wtype-limits
32616         diagnostics.  Otherwise, the integer overflow macros generate many
32617         diagnostics.  Reported by Jim Meyering in
32618         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00528.html>.
32620         intprops: shorten, to pacify gcc -Woverlength-strings
32621         * lib/intprops.h (_GL_INT_CONVERT, _GL_INT_NEGATE_CONVERT):
32622         (_GL_BINARY_OP_OVERFLOW): Say "0 * (x)" rather than "(x) - (x)",
32623         so that, for example, verify (INT_MULTIPLY_OVERFLOW (...)) is less
32624         likely to run afoul of C compiler limits for string constant lengths.
32625         See <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00528.html>.
32627 2011-05-24  Eric Blake  <eblake@redhat.com>
32629         docs: document recently fixed glibc printf bug
32630         * doc/posix-functions/fprintf.texi (fprintf): Document it.
32631         * doc/posix-functions/printf.texi (printf): Likewise.
32632         * doc/posix-functions/vfprintf.texi (vfprintf): Likewise.
32633         * doc/posix-functions/vprintf.texi (vprintf): Likewise.
32635         closein-tests: convert to init.sh
32636         * modules/closein-tests (Files): Add init.sh
32637         * tests/test-closein.sh Use it.
32639         yesno-tests: convert to init.sh
32640         * modules/yesno-tests (Files): Add init.sh.
32641         * tests/test-yesno.sh: Use it.
32643         atexit-tests: ensure reliable exit status
32644         * tests/test-atexit.sh: Prefer 'Exit' over 'exit'.
32645         Reported by Bruno Haible.
32647 2011-05-24  Bruno Haible  <bruno@clisp.org>
32649         strerror_r-posix: Respect rules for use of AC_LIBOBJ.
32650         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Move AC_LIBOBJ and
32651         gl_PREREQ_STRERROR_R invocations from here...
32652         * modules/strerror_r-posix (configure.ac): ... to here.
32654 2011-05-24  Eric Blake  <eblake@redhat.com>
32656         strerror_r: fix missing header
32657         * lib/strerror_r.c: Avoid compiler warning about snprintf.
32659         strerror_r: fix AIX test failures
32660         * lib/strerror_r.c (strerror_r): Convert silent truncation to
32661         ERANGE failure.
32663         strerror_r: fix Solaris test failures
32664         * lib/strerror_r.c (strerror_r): Partially populate buf on ERANGE
32665         failures.
32666         * doc/posix-functions/strerror_r.texi (strerror_r): Document this.
32668         strerror_r: enforce POSIX recommendations
32669         * lib/strerror_r.c (safe_copy): New helper method.
32670         (strerror_r): Guarantee a non-empty string.
32671         * tests/test-strerror_r.c (main): Enhance tests to incorporate
32672         recent POSIX rulings and to match our strerror guarantees.
32673         * doc/posix-functions/strerror_r.texi (strerror_r): Document this.
32675 2011-05-24  Jim Meyering  <meyering@redhat.com>
32677         test-perror2.c: avoid warning about unused variable
32678         * tests/test-perror2.c (main): Remove declaration of unused "fp".
32680 2011-05-24  Eric Blake  <eblake@redhat.com>
32682         perror: avoid spurious test failure on HP-UX
32683         * tests/test-perror.sh: Use Exit to avoid wrong exit status.
32685         tests: fix logic bug in init.sh
32686         * tests/init.sh: (gl_set_x_corrupts_stderr_): Clear for successful
32687         shell.
32689 2011-05-24  Jim Meyering  <meyering@redhat.com>
32691         utimensat: do not reference an out-of-scope buffer
32692         Otherwise, with __linux__ defined, "times" would point to a buffer, "ts"
32693         declared in an inner scope, yet "times" would be dereferenced outside
32694         the scope in which "ts" was valid.
32695         * lib/utimensat.c (rpl_utimensat) [__linux__]: Move the declaration
32696         of ts[2] "out/up", so that the use of aliased "times" (via
32697         "times = ts;") does not end up referencing an out-of-scope "ts"
32699         opendir-safer.c: don't clobber errno; don't close negative FD
32700         * lib/opendir-safer.c (opendir_safer):
32701         [HAVE_FDOPENDIR || GNULIB_FDOPENDIR]: Don't close a negative
32702         file descriptor, and more importantly, don't clobber the
32703         offending errno value with EINVAL.  Before, upon failure
32704         of dup_safer, we would pass the negative file descriptor to
32705         fdopendir, which would clobber errno.
32707 2011-05-23  Bruno Haible  <bruno@clisp.org>
32709         idcache: Fix module description.
32710         * modules/idcache (Include): Set to "idcache.h".
32712 2011-05-23  Paul Eggert  <eggert@cs.ucla.edu>
32714         gnulib-tool: fix portability problem with MacOS sed
32715         A sed command like "/x/{s/a/b/}" is not portable; a newline is needed
32716         before the "}".  Problem reported by Leo in
32717         <http://lists.gnu.org/archive/html/emacs-devel/2011-05/msg00717.html>.
32718         * gnulib-tool (func_modules_transitive_closure): Insert newlines in
32719         sed_extract_condition1, sed_extract_condition2.
32721 2011-05-23  Bruno Haible  <bruno@clisp.org>
32723         hash: Simplify autoconf macro.
32724         * m4/hash.m4 (gl_HASH): Don't require AM_STDBOOL_H.
32726 2011-05-23  Bruno Haible  <bruno@clisp.org>
32728         getugroups: Fix module description.
32729         * modules/getugroups (Include): Set to "getugroups.h".
32731 2011-05-23  Bruno Haible  <bruno@clisp.org>
32733         linkat: Simplify autoconf macro.
32734         * m4/linkat.m4 (gl_FUNC_LINKAT): Don't require gl_FUNC_LINK.
32736 2011-05-23  Bruno Haible  <bruno@clisp.org>
32737             Eric Blake  <eblake@redhat.com>
32739         linkat, renameat: Update dependencies.
32740         * modules/renameat (Depends-on): Add dosname, save-cwd. Remove stpcpy.
32741         * modules/linkat (Depends-on): Likewise. Remove also readlink,
32742         symlinkat.
32744 2011-05-23  Jim Meyering  <meyering@redhat.com>
32746         maint.mk: more tight_scope improvements
32747         * top/maint.mk: (_gl_TS_var_match): Use $(_gl_TS_extern) here, too.
32748         (_gl_TS_headers): Define only in if-0'd block.
32749         (_gl_TS_dir): Omit the $(srcdir)/ prefix.  Sometimes we need it,
32750         sometimes we must *not* use it.  Adjust uses accordingly.
32751         (sc_tight_scope): Use much simpler grep-based test to determine
32752         whether we skip this rule.
32754         maint.mk: generalize/improve the tight-scope rule
32755         * top/maint.mk: Emit a warning when the test is skipped.
32756         (_gl_TS_dir): Add $(srcdir)/ prefix.
32757         (_gl_TS_function_match): Simplify, rather than trying
32758         to enumerate common types.  Otherwise, it would fail to match an
32759         "extern unsigned char const *" declaration in idutils.
32760         (_gl_TS_extern): Do not endorse use of "XTERN", but do provide
32761         a way to support use of that type of macro.
32762         (_gl_TS_var_match): Simplify regexp.
32763         (_gl_TS_obj_files): New configurable variable.
32764         (_gl_TS_headers): Likewise.
32766 2011-05-22  Paul Eggert  <eggert@cs.ucla.edu>
32768         verify: fix bug when gnulib <assert.h> is also included
32769         * lib/verify.h (verify, verify_true): Define if _GL_VERIFY_H
32770         is defined, not if _GL_STATIC_ASSERT_H is not defined.
32771         Perhaps there's a better way, but this fixes the immediate problem.
32772         Problem reported by Bruno Haible in
32773         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00478.html>.
32775 2011-05-22  Bruno Haible  <bruno@clisp.org>
32777         xgetcwd: Simplify autoconf macro.
32778         * m4/xgetcwd.m4 (gl_XGETCWD): Don't require gl_FUNC_GETCWD.
32780 2011-05-22  Bruno Haible  <bruno@clisp.org>
32782         New module 'mktime-internal'.
32783         * modules/mktime-internal: New file.
32784         * m4/timegm.m4 (gl_PREREQ_TIMEGM): Move contents to ...
32785         * m4/mktime.m4 (gl_FUNC_MKTIME_INTERNAL): New macro. Define
32786         mktime_internal as a C macro if libc has __mktime_internal.
32787         * modules/timegm (Depends-on): Add mktime-internal. Remove mktime. Add
32788         conditions.
32789         * MODULES.html.sh (Date and time <time.h>): Add mktime-internal.
32791 2011-05-22  Bruno Haible  <bruno@clisp.org>
32793         timegm: Correct mktime replacement statements.
32794         * m4/timegm.m4 (gl_PREREQ_TIMEGM): Set REPLACE_MKTIME, instead of
32795         defining mktime as a C macro. This completes a 2009-07-28 commit.
32797 2011-05-22  Bruno Haible  <bruno@clisp.org>
32799         timegm: Simplify autoconf macro.
32800         * m4/timegm.m4 (gl_PREREQ_TIMEGM): Don't require gl_TIME_R.
32802 2011-05-21  Paul Eggert  <eggert@cs.ucla.edu>
32804         clock-time: change to LGPLv2+.
32805         * modules/clock-time: Change from GPL to LGPLv2+.  Actually, it's
32806         BSD-like but we have no mark for that; this is good enough for now.
32808 2011-05-21  Bruno Haible  <bruno@clisp.org>
32810         strerror_r: Fix comments.
32811         * lib/strerror_r.c (strerror_r): Fix comment about Cygwin and sys_nerr.
32813 2011-05-21  Bruno Haible  <bruno@clisp.org>
32815         relocatable-prog-wrapper: Fix possible link error.
32816         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Move determination of
32817         HAVE_SETENV and REPLACE_SETENV and AC_LIBOBJ invocation from here...
32818         (gl_FUNC_SETENV): ... to here.
32819         * m4/canonicalize.m4 (gl_CANONICALIZE_LGPL_SEPARATE): Update comment.
32820         * m4/readlink.m4 (gl_FUNC_READLINK_SEPARATE): Likewise.
32822 2011-05-21  Bruno Haible  <bruno@clisp.org>
32824         relocatable-prog-wrapper: Assume strerror() exists.
32825         * modules/relocatable-prog-wrapper (Files): Remove lib/strerror.c,
32826         m4/strerror.m4.
32827         (configure.ac): Don't invoke gl_FUNC_STRERROR_SEPARATE.
32828         * lib/relocwrapper.c: Remove mention of strerror module.
32829         * lib/strerror.c: Assume REPLACE_STRERROR is 1.
32830         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Remove macro.
32831         (gl_FUNC_STRERROR): Inline it here. Don't define REPLACE_STRERROR as a
32832         C macro.
32834 2011-05-21  Bruno Haible  <bruno@clisp.org>
32836         select: Simplify replacement idiom.
32837         * m4/select.m4 (gl_FUNC_SELECT): Set REPLACE_SELECT also on native
32838         Win32 platforms.
32839         * lib/sys_select.in.h (select): Simplify accordingly.
32840         * modules/select (Depends-on): Likewise.
32842 2011-05-21  Bruno Haible  <bruno@clisp.org>
32844         mkdir-p: Simplify autoconf macro.
32845         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Don't require gl_FUNC_LCHMOD,
32846         gl_FUNC_LCHOWN.
32848 2011-05-21  Eric Blake  <eblake@redhat.com>
32850         strerror_r: avoid clobbering strerror on cygwin
32851         * lib/strerror_r.c (strerror_r): Don't use cygwin's strerror_r;
32852         fall back instead to sys_errlist.
32853         * modules/strerror (configure.ac): Add witness.
32854         * tests/test-strerror_r.c (main): Enhance test.
32855         * doc/posix-functions/strerror_r.texi (strerror_r): Document it.
32856         * tests/test-perror2.c (main): Free memory before exit.
32858 2011-05-21  Bruno Haible  <bruno@clisp.org>
32860         mkdtemp: Use gnulib naming conventions.
32861         * m4/mkdtemp.m4 (gl_FUNC_MKDTEMP): Renamed from gt_FUNC_MKDTEMP.
32862         * modules/mkdtemp (configure.ac): Update.
32864 2011-05-20  Eric Blake  <eblake@redhat.com>
32866         strerror_r: avoid corrupting errno on Solaris
32867         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Check for Solaris behavior.
32868         * doc/posix-functions/strerror_r.texi (strerror_r): Document it.
32870         strerror_r: avoid compiler warning
32871         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Don't return a char*.
32873         strerror_r: simplify AIX code
32874         * lib/strerror_r.c (strerror_r): Filter out buflen of 1 up front.
32876         test-perror: avoid spurious failure on FreeBSD
32877         * modules/perror-tests (Depends-on): Add strerror, now that
32878         strerror_r no longer pulls it in.
32880 2011-05-20  Bruno Haible  <bruno@clisp.org>
32882         strerror_r-posix: Remove unused dependencies.
32883         * modules/strerror_r-posix (Depends-on): Remove strerror.
32884         Reported by Eric Blake.
32886 2011-05-20  Paul Eggert  <eggert@cs.ucla.edu>
32888         intprops: remove assumption about A|B representation
32889         * lib/intprops.h (_GL_BINARY_OP_OVERFLOW): Do not assume that A|B
32890         is a valid integer if both A and B are.  Although this is true for
32891         all known practical hosts, the C standard doesn't guarantee it,
32892         and the code need not assume it.  Also, this change may work around
32893         HP-UX 11.23 and IRIX 6.5 cc bugs reported by Bruno Haible in
32894         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00426.html>.
32896 2011-05-20  Eric Blake  <eblake@redhat.com>
32898         perror: work around FreeBSD bug
32899         * m4/perror.m4 (gl_FUNC_PERROR): Also replace perror if strerror_r
32900         is broken.  Move AC_LIBOBJ...
32901         * modules/perror (configure.ac): Here.
32902         * doc/posix-functions/perror.texi (perror): Document this.
32903         * tests/test-perror2.c (main): Enhance test.
32905         test-perror: check for strerror interactions
32906         * tests/macros.h (STREQ): Add macro.
32907         * modules/perror-tests (Files): Add second test.
32908         * tests/test-perror2.c (main): New file.
32909         * doc/posix-functions/perror.texi (perror): Document glibc bug.
32911         test-perror: rewrite to use init script
32912         * modules/perror-tests (Files): Add init.sh.
32913         * tests/test-perror.sh: Use temporary directory.
32915 2011-05-20  Jim Meyering  <meyering@redhat.com>
32917         maint: replace misused "a" with "an"
32918         * doc/intprops.texi: "a integer"
32919         * doc/regex.texi: "a explanation"
32920         * lib/alignof.h: "a object"
32921         * lib/argmatch.h: "a explanation"
32922         * lib/argp-help.c: "a option" and "a OPTION_DOC"
32923         * lib/stdint.in.h: "a integer"
32924         * lib/userspec.c: "a owner"
32925         * doc/gnulib.texi: Fix "a idea", and reword.
32927 2011-05-19  Jim Meyering  <meyering@redhat.com>
32929         maint: correct misuse of "a" and "an"
32930         * doc/regex.texi (Collating Symbol Operators): s/an close.../a close/
32931         * lib/argp-help.c: "an docum...": s/an/a/
32932         * lib/argp-parse.c: "An vector": s/An/A/
32933         * lib/execute.c: "an native": s/an/a/
32934         * lib/spawn-pipe.c: Likewise.
32935         * lib/gc.h: "an Gc_rc": s/an/a/
32936         * lib/unigbrk.in.h: "an grapheme": s/an/a/
32937         * lib/fts.c: "an stat.st_dev": s/an/a/
32939 2011-05-19  Paul Eggert  <eggert@cs.ucla.edu>
32941         intprops-tests: work around HP-UX 11.23 cc bug with constants
32942         * tests/test-intprops.c (VERIFY): New macro.
32943         (main): Use it, instead of verify, to work around the compiler bug; see
32944         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00401.html>.
32946         intprops: work around IRIX 6.5 cc bug with 0u - 0u + -1
32947         See http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00406.html
32948         * lib/intprops.h (_GL_INT_NEGATE_CONVERT): New macro.
32949         (_GL_INT_SIGNED, _GL_INT_MAXIMUM, _GL_DIVIDE_OVERFLOW):
32950         (_GL_REMAINDER_OVERFLOW): Use it.
32952         intprops-tests: revert unsigned part of previous change
32953         * tests/test-intprops.c (UINT_MAX, ULONG_MAX, UINTMAX_MAX, U0, U1):
32954         Remove; they weren't actually needed.  All uses of U0 and U1 removed,
32955         and other casts to 'unsigned int' reverted to 'u' suffixes.  See
32956         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00406.html>.
32958 2011-05-19  Bruno Haible  <bruno@clisp.org>
32960         strerror_r: Work around strerror_r() change in Cygwin 1.7.8.
32961         * lib/strerror_r.c (strerror_r) [CYGWIN]: Recognize when the system's
32962         strerror_r() returned without filling the buffer.
32963         Reported by Eric Blake.
32965 2011-05-19  Eric Blake  <eblake@redhat.com>
32967         strerror_r: guarantee unchanged errno
32968         * lib/strerror_r.c (strerror_r): Guarantee unchanged errno.
32969         * lib/strerror-impl.h (strerror): Set errno to match strerror_r
32970         failure.
32971         * tests/test-strerror_r.c (main): Enhance test.
32973 2011-05-19  Bruno Haible  <bruno@clisp.org>
32975         strerror_r: Reorder #if blocks.
32976         * lib/strerror_r.c (strerror_r): Reorder conditionals in the function
32977         for consistency with the previous commit.
32979 2011-05-19  Bruno Haible  <bruno@clisp.org>
32981         perror: Avoid clobbering the strerror buffer when possible.
32982         * lib/strerror-impl.h: New file, extracted from lib/strerror.c.
32983         * lib/strerror.c: Include it.
32984         * modules/strerror (Files): Add lib/strerror-impl.h.
32985         * lib/perror.c: Include <stdlib.h>, intprops.h, verify.h.
32986         (my_strerror): New function, defined through lib/strerror-impl.h.
32987         (perror): Use it instead of strerror.
32988         * modules/perror (Files): Add lib/strerror-impl.h.
32989         (Depends-on): Remove strerror. Add intprops, verify, strerror_r-posix.
32991 2011-05-19  Eric Blake  <eblake@redhat.com>
32993         strerror_r: fix on newer cygwin
32994         * lib/strerror_r.c (strerror_r): Cygwin now has
32995         __xpg_strerror_r, use it.
32997 2011-05-19  Bruno Haible  <bruno@clisp.org>
32999         strerror_r: Avoid clobbering the strerror buffer when possible.
33000         * lib/strerror.c: Define _NETBSD_SOURCE. Include <nl_types.h>.
33001         (sys_nerr, sys_errlist): New declarations.
33002         (strerror_r): Be careful not to clobber the strerror buffer on NetBSD,
33003         HP-UX, native Win32, IRIX, and 32-bit Solaris.
33004         * m4/strerror_r.m4 (gl_PREREQ_STRERROR_R): Test whether catgets exists.
33006 2011-05-19  Bruno Haible  <bruno@clisp.org>
33008         strerror_r: Fix test failure on mingw.
33009         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Don't define
33010         EXTEND_STRERROR_R.
33011         * lib/strerror_r.c (strerror_r): Test the various GNULIB_defined_*
33012         macros from errno.in.h instead.
33014 2011-05-19  Eric Blake  <eblake@redhat.com>
33016         strerror: relax test for Solaris
33017         * tests/test-strerror.c (main): Permit Solaris behavior.
33018         * tests/test-strerror_r.c (main): Likewise.
33020         strerror: enforce POSIX ruling on strerror(0)
33021         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Expose BSD bug.
33022         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Likewise.
33023         * lib/strerror_r.c (rpl_strerror_r): Work around it.
33024         * doc/posix-functions/strerror.texi (strerror): Document it.
33025         * doc/posix-functions/strerror_r.texi (strerror_r): Likewise.
33026         * tests/test-strerror.c (main): Strengthen test.
33027         * tests/test-strerror_r.c (main): Likewise.
33029 2011-05-19  Paul Eggert  <eggert@cs.ucla.edu>
33031         intprop-tests: port to older and more-pedantic compilers
33032         * modules/intprops-tests (Files): Add tests/macros.h.
33033         * tests/test-intprops.c: Include macros.h.
33034         (TYPE_IS_INTEGER): Use ASSERT, not verify, to test this macro, as
33035         it's no longer documented to expand to an integer constant expression.
33036         (TYPE_SIGNED): Use ASSERT, not verify, to test this macro when the
33037         argument is floating point, as it's no longer documented to expand
33038         to an integer constant expression in that case.
33039         (UINT_MAX, ULONG_MAX, UINTMAX_MAX): Redefine to work around
33040         compiler bugs reported by Bruno Haible.  See
33041         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00401.html>.
33042         (U0, U1): New constants, to work around the same bugs.  Also,
33043         in tests, use e.g., "(unsigned int) 39" rather than "39u".
33045         intprops: work around C compiler bugs
33046         * lib/intprops.h (INT_MULTIPLY_RANGE_OVERFLOW): Work around compiler
33047         bug in Sun C 5.11 2010/08/13 and other compilers; see
33048         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00401.html>.
33050         intprops: TYPE_IS_INTEGER, TYPE_SIGNED not integer constant exprs
33051         * doc/intprops.texi (Integer Type Determination): Fix
33052         documentation for TYPE_IS_INTEGER: it returns an constant
33053         expression, not an integer constant expression.  Fix doc for
33054         TYPE_SIGNED: it returns an integer constant expression only if its
33055         argument is an integer type.  (TYPE_IS_INTEGER is the same, but is
33056         hardly worth documented that way....)
33058 2011-05-18  Bruno Haible  <bruno@clisp.org>
33060         strerror_r: Avoid clobbering the strerror buffer when possible.
33061         * lib/strerror_r.c (strerror_r): Merge the three implementations.
33062         Handle gnulib defined errno values here. When strerror() returns NULL
33063         or an empty string, return EINVAL.
33064         * lib/strerror.c (strerror): Always call strerror_r. Don't handle
33065         gnulib defined errno values here.
33066         * modules/strerror (Depends-on): Add verify, strerror_r-posix.
33068 2011-05-18  Eric Blake  <eblake@redhat.com>
33070         fnmatch: avoid compiler warning
33071         * lib/fnmatch_loop.c (FCT): Use correct type.
33072         Reported by Matthias Bolte.
33074 2011-05-13  Jim Meyering  <meyering@redhat.com>
33076         maint.mk: three new prohibit_<HDR>_without_use rules
33077         * top/maint.mk (sc_prohibit_stdio--_without_use): New rule.
33078         (sc_prohibit_stdio-safer_without_use): Likewise.
33079         (sc_prohibit_xfreopen_without_use): Likewise.
33081 2011-05-17  Jim Meyering  <meyering@redhat.com>
33083         announce-gen: fail if the NEWS delta is empty
33084         If there's nothing noteworthy in NEWS, then either you forgot
33085         or you shouldn't be releasing.
33086         * build-aux/announce-gen: Die if the NEWS delta is effectively empty.
33088 2011-05-17  Pádraig Brady  <P@draigBrady.com>
33090         * top/maint.mk (_gl_tight_scope:): Automatically exclude compiler
33091         reserved symbols starting with double underscore from the check.
33093 2011-05-17  Paul Eggert  <eggert@cs.ucla.edu>
33095         intprops: add doc
33096         * doc/intprops.texi: New file, documenting intprops.
33097         * doc/gnulib.texi (Particular Modules): Include it.
33099         verify: add doc to gnulib manual and fix example
33100         * doc/gnulib.texi (Compile-time Assertions): New node, for 'verify'.
33101         * doc/verify.texi (Compile-time Assertions): Update 'assert' doc.
33102         (Compile-time Assertions): Fix example so it can't overflow.
33104 2011-05-17  Jim Meyering  <meyering@redhat.com>
33106         warnings.m4: don't usurp save_CPPFLAGS variable name
33107         * m4/warnings.m4: Prefix local temporary variable name with gl_.
33109         doc: fix typo
33110         * doc/gnulib-intro.texi (Target Platforms): s/is/are/
33112 2011-05-16  Paul Eggert  <eggert@cs.ucla.edu>
33113             Bruno Haible  <bruno@clisp.org>
33115         doc: Tweak recent change.
33116         * README (Portability guidelines): Tweak new text.
33117         * doc/gnulib-intro.texi (Target Platforms): Likewise. Mention
33118         Interix 6.1.
33120 2011-05-16  Eric Blake  <eblake@redhat.com>
33122         inttypes: avoid autoconf warning
33123         * m4/inttypes.m4 (gl_INTTYPES_INCOMPLETE): Only expand once.
33124         * m4/stdint.m4 (gl_STDINT_H): Likewise.
33126 2011-05-16  Sam Steingold  <sds@gnu.org>
33127         and Eric Blake  <eblake@redhat.com>
33129         vc-list-files: accept multiple directory operands
33130         * build-aux/vc-list-files: Iterate over all remaining operands.
33132 2011-05-16  Bruno Haible  <bruno@clisp.org>
33134         Fix confusion regarding deprecated modules.
33135         * modules/calloc (Status, Notice): Mark module as deprecated, not
33136         obsolete.
33137         * modules/fnmatch-posix (Status, Notice): Likewise.
33138         * modules/getdate (Status, Notice): Likewise.
33139         * modules/getopt (Status, Notice): Likewise.
33140         * modules/malloc (Status, Notice): Likewise.
33141         * modules/pipe (Status, Notice): Likewise.
33142         * modules/realloc (Status, Notice): Likewise.
33143         * modules/rename-dest-slash (Status, Notice): Likewise.
33144         * modules/unictype/bidicategory-all (Status, Notice): Likewise.
33145         * modules/unictype/bidicategory-byname (Status, Notice): Likewise.
33146         * modules/unictype/bidicategory-name (Status, Notice): Likewise.
33147         * modules/unictype/bidicategory-of (Status, Notice): Likewise.
33148         * modules/unictype/bidicategory-test (Status, Notice): Likewise.
33150 2011-05-16  Bruno Haible  <bruno@clisp.org>
33152         doc: List the target platforms.
33153         * doc/gnulib-intro.texi (Target Platforms): New section.
33154         * doc/gnulib.texi (Introduction): Update menu.
33155         * README (Portability guidelines): Refer to the new section. Update
33156         statement about oldest supported environment. Remove rationale why
33157         <errno.h>, <string.h>, <stdlib.h> are assumed. Update example of an
33158         unportable C89 function.
33159         Reported by Bastien Roucariès <roucaries.bastien@gmail.com> and
33160         Charles Wilson <cygwin@cwilson.fastmail.fm>. Feedback from Paul Eggert.
33162 2011-05-16  Paul Eggert  <eggert@cs.ucla.edu>
33164         * build-aux/bootstrap (gnulib_tool): Handle symlink timestamps better.
33166 2011-05-13  Paul Eggert  <eggert@cs.ucla.edu>
33168         intprops-tests: new module
33169         * modules/intprops-tests, tests/test-intprops.c: New files.
33171         intprops: add safe, portable integer overflow checking
33172         * lib/intprops.h (_GL_INT_CONVERT, _GL_INT_TWOS_COMPLEMENT):
33173         (_GL_INT_SIGNED, _GL_INT_MINIMUM, _GL_INT_MAXIMUM):
33174         (_GL_SIGNED_INT_MINIMUM, INT_ADD_RANGE_OVERFLOW):
33175         (INT__SUBTRACT__RANGE_OVERFLOW, INT_NEGATE_RANGE_OVERFLOW):
33176         (INT_MULTIPLY_RANGE_OVERFLOW, INT_REMAINDER_RANGE_OVERFLOW):
33177         (INT_LEFT_SHIFT_RANGE_OVERFLOW, _GL_ADD_OVERFLOW):
33178         (_GL__SUBTRACT__OVERFLOW, _GL_MULTIPLY_OVERFLOW, _GL_DIVIDE_OVERFLOW):
33179         (_GL_REMAINDER_OVERFLOW, _GL_UNSIGNED_NEG_MULTIPLE, INT_ADD_OVERFLOW):
33180         (INT__SUBTRACT__OVERFLOW, INT_NEGATE_OVERFLOW, INT_MULTIPLY_OVERFLOW):
33181         (INT_DIVIDE_OVERFLOW, INT_REMAINDER_OVERFLOW):
33182         (INT_LEFT_SHIFT_OVERFLOW, _GL_BINARY_OP_OVERFLOW): New macros.
33184 2011-05-12  James Youngman  <jay@gnu.org>
33186         Add a test for glibc's Bugzilla bug #12378.
33187         * m4/fnmatch.m4: Use gnulib's fnmatch if the system fnmatch
33188         doesn't allow the literal matching of a lone "[" (which is
33189         required by POSIX).
33190         * tests/test-fnmatch.c (main): Check that "[/b" matches itself.
33192 2011-05-11  Ulrich Drepper  <drepper@gmail.com>
33194         Sync glibc change fixing Bugzilla bug #12378.
33195         * lib/fnmatch_loop.c (FCT): When matching '[' keep track of
33196         beginning and fall back to matching as normal character if the
33197         string ends before the matching ']' is found.  This is what POSIX
33198         requires.
33200 2011-05-13  Eric Blake  <eblake@redhat.com>
33202         getcwd-lgpl: relax test for FreeBSD
33203         * doc/posix-functions/getcwd.texi (getcwd): Document portability
33204         issue.
33205         * tests/test-getcwd-lgpl.c (main): Relax test.
33206         Reported by Matthias Bolte.
33208 2011-05-11  Eric Blake  <eblake@redhat.com>
33210         test-fflush: silence compiler warning
33211         * tests/test-fflush.c (main): Don't fclose a NULL pointer.
33213 2011-05-11  Bruno Haible  <bruno@clisp.org>
33215         canonicalize, canonicalize-lgpl: Avoid crash dialog on MacOS X.
33216         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Add GL_NOCRASH code.
33217         * modules/canonicalize (Depends-on): Add 'nocrash'.
33218         * modules/canonicalize-lgpl (Depends-on): Likewise.
33219         * doc/posix-functions/realpath.texi: Update platforms list.
33220         Reported by Ryan Schmidt <ryandesign@macports.org>.
33222 2011-05-11  Bruno Haible  <bruno@clisp.org>
33224         group-member: Declare function in <unistd.h>.
33225         * lib/unistd.in.h (group_member): New declaration.
33226         * lib/group-member.h: Remove file.
33227         * lib/group-member.c: Include <unistd.h> instead of group-member.h.
33228         * tests/test-unistd-c++.cc: Check signature of group_member.
33229         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER): Require
33230         gl_UNISTD_H_DEFAULTS. Set HAVE_GROUP_MEMBER.
33231         * m4/unistd_h.m4 (gl_UNISTD_H): Check whether group_member is declared.
33232         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GROUP_MEMBER,
33233         HAVE_GROUP_MEMBER.
33234         * modules/group-member (Files): Remove lib/group-member.h.
33235         (Depends-on): Add unistd. Specify conditions.
33236         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
33237         (Include): Change to <unistd.h>.
33238         * modules/unistd (Makefile.am): Substitute GNULIB_GROUP_MEMBER,
33239         HAVE_GROUP_MEMBER.
33240         * NEWS: Mention the change.
33241         * lib/euidaccess.c: Don't include group-member.h.
33243 2011-05-11  Bruno Haible  <bruno@clisp.org>
33245         group-member: Document module.
33246         * doc/glibc-functions/group_member.texi: Mention the 'group-member'
33247         module.
33249 2011-05-11  Bruno Haible  <bruno@clisp.org>
33251         fclose: Fix mistake earlier today.
33252         * lib/fclose.c (rpl_fclose): Don't assume that EOF < 0.
33254 2011-05-11  Eric Blake  <eblake@redhat.com>
33256         fclose: preserve fflush errors
33257         * lib/fclose.c (rpl_fclose): Don't lose fflush errors.
33258         Reported by Jim Meyering.
33260         bootstrap: support a prereq of 'rpcgen -' on RHEL5
33261         * build-aux/bootstrap (check_versions): When no specific version
33262         is required, merely check that the app produces an exit status
33263         that indicates its existence.
33265         maint.mk: drop redundant check
33266         * top/maint.mk (sc_the_the): Delete; sc_prohibit_doubled_word does
33267         the same but better.
33269 2011-05-11  Bruno Haible  <bruno@clisp.org>
33271         fclose: Fix possible link error.
33272         * lib/fclose.c (rpl_fclose): Invoke _gl_unregister_fd, not
33273         unregister_shadow_fd. Improve comments.
33274         * lib/sockets.c (close_fd_maybe_socket): Add comments. Reported by
33275         Eric Blake.
33277 2011-05-11  Jim Meyering  <meyering@redhat.com>
33279         maint.mk: improve "can not" detection and generalize rule name
33280         * top/maint.mk (sc_prohibit_undesirable_word_seq): Renamed from
33281         sc_prohibit_can_not, since we'll probably add a few more word pairs here.
33282         Use the same technique as in sc_prohibit_doubled_word, so that
33283         we recognize "can not" also when the words are separated by a newline.
33284         Suggested by Eric Blake.
33285         (perl_filename_lineno_text_): Define.  Factored out of...
33286         (prohibit_doubled_word_): ...here.  Use the new definition.
33287         (prohibit_undesirable_word_seq_): New var.  Use it here, too.
33288         (prohibit_undesirable_word_seq_RE_): New overridable variable.
33289         (ignore_undesirable_word_sequence_RE_): New overridable variable.
33291 2011-05-10  Eric Blake  <eblake@redhat.com>
33293         fclose: avoid double close race when possible
33294         * lib/fclose.c (rpl_fclose): Rewrite to avoid double-close race on
33295         all but WINDOWS_SOCKETS.
33297 2011-05-10  Bastien Roucariès  <roucaries.bastien@gmail.com>
33299         openat: correct new comment
33300         * lib/openat-proc.c (openat_proc_name): Correct the comment.
33302 2011-05-10  Jim Meyering  <meyering@redhat.com>
33304         openat: add comments
33305         * lib/openat-proc.c (openat_proc_name): Add comments,
33306         mostly from Eric Blake.
33308 2011-05-09  Eric Blake  <eblake@redhat.com>
33310         openat: reduce syscalls in first probe of /proc
33311         * lib/openat-proc.c (openat_proc_name): Require that /proc/self/fd
33312         be a directory.  Simplify the probe for .. bugs.
33313         * modules/openat (Depends-on): Drop same-inode.
33314         Reported by Bastien ROUCARIES.
33316 2011-05-09  Jim Meyering  <meyering@redhat.com>
33318         maint.mk: change semantics/name of tight_scope variables
33319         * top/maint.mk (_gl_TS_var_match, _gl_TS_function_match):
33320         Rename variables to align with semantics that make them more useful.
33322         maint.mk: tweak new rule's name not to impinge
33323         * top/maint.mk (_gl_tight_scope): Rename from sc_tight_scope-0.
33324         (sc_tight_scope): Use new rule name rather than $@-0.
33326         maint.mk: add a syntax-check rule to ensure tightly-scoped symbols
33327         * top/maint.mk (sc_tight_scope): New rule.
33328         (sc_tight_scope-0): New rule, ifdef'd out.
33329         (_gl_TS_dir): Default.
33330         (_gl_TS_unmarked_extern_functions, _gl_TS_function_regex): Define.
33331         (_gl_TS_unmarked_extern_vars, _gl_TS_var_regex): Define.
33333 2011-05-09  Simon Josefsson  <simon@josefsson.org>
33335         * m4/gc.m4: Remove gl_PREREQ_GC (not used).  Reported by Bruno
33336         Haible <bruno@clisp.org>.
33338 2011-05-08  Bruno Haible  <bruno@clisp.org>
33340         Comments.
33341         * m4/isnanf.m4: Add comment.
33342         * m4/isnanl.m4: Likewise.
33344 2011-05-08  Bruno Haible  <bruno@clisp.org>
33346         glob: Remove obsolete macro.
33347         * m4/glob.m4 (gl_GLOB_SUBSTITUTE): Remove macro.
33349 2011-05-08  Paul Eggert  <eggert@cs.ucla.edu>
33351         intprops: Sun C 5.11 supports __typeof__
33352         * lib/intprops.h (_GL_HAVE___TYPEOF__): New macro, which is set
33353         for either GCC 2 or later, as before, or for Sun C 5.11 or later,
33354         which is new.
33355         (_GL_SIGNED_TYPE_OR_EXPR): Use it.
33357         intprops: switch to usual gnulib indenting and naming
33358         * lib/intprops.h (_GL_INTPROPS_H): Rename from GL_INTPROPS_H.
33359         (_GL_SIGNED_TYPE_OR_EXPR): Rename from signed_type_or_expr__.
33361         * tests/test-inttostr.c (IS_TIGHT): Adjust to above renaming.
33363 2011-05-08  Jim Meyering  <meyering@redhat.com>
33365         maint.mk: suppress "Entering/Leaving directory" diag in announcement
33366         * top/maint.mk (release-prep): Use make's --no-print-directory
33367         option when generating the announcement.  This eliminates the
33368         pesky "make[2]: Entering/Leaving directory" diagnostics in the
33369         generated announcement template.
33371 2011-05-08  Bruno Haible  <bruno@clisp.org>
33373         tzset: Fix gettimeofday wrapper on Solaris 2.6.
33374         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): When invoking
33375         gl_GETTIMEOFDAY_REPLACE_LOCALTIME, also set REPLACE_GETTIMEOFDAY.
33377 2011-05-07  Paul Eggert  <eggert@cs.ucla.edu>
33379         ignore-value, verify: Omit include files from lib_SOURCES.
33380         * modules/ignore-value, modules/verify (Makefile.am):
33381         Don't put ignore-value.h, or verify.h, into lib_SOURCES, as
33382         that leads Automake to duplicate use of am__objects_... variables
33383         in Makefile.in.  See
33384         <http://lists.gnu.org/archive/html/emacs-devel/2011-05/msg00257.html>.
33386 2011-05-07  Bruno Haible  <bruno@clisp.org>
33388         fclose: Simplify autoconf macro.
33389         * m4/fclose.m4 (gl_FUNC_FCLOSE): Assume gl_FUNC_FFLUSH_STDIN is
33390         defined.
33392 2011-05-07  Bruno Haible  <bruno@clisp.org>
33394         canonicalize-lgpl: Fix autoconf macro ordering bug.
33395         * m4/canonicalize.m4 (gl_CANONICALIZE_LGPL): Require
33396         gl_STDLIB_H_DEFAULTS.
33398 2011-05-06  Eric Blake  <eblake@redhat.com>
33400         maintainer-makefile: make sc_po_check easier to tune
33401         * top/maint.mk (sc_po_check): Allow overriding which non-VC files
33402         to probe for strings, such as an alternate location for gnulib.
33404         fclose: guarantee behavior on seekable stdin
33405         * modules/fclose (Depends-on): Add fflush.
33406         * doc/posix-functions/fclose.texi (fclose): Document this.
33407         * tests/test-fclose.c (main): Make test for this unconditional.
33409 2011-05-06  Bruno Haible  <bruno@clisp.org>
33411         fflush, fpurge: Relicense under LGPLv2+.
33412         * modules/fflush (License): Change from LGPLv3+ to LGPLv2+.
33413         * modules/fpurge (License): Likewise.
33414         With permission from Eric Blake and Jim Meyering.
33415         Suggested by Eric Blake.
33417 2011-05-06  Karl Berry  <karl@gnu.org>
33419         * MODULES.html.sh (func_all_modules): remove exit.
33421 2011-05-06  Jim Meyering  <meyering@redhat.com>
33423         maint.mk: use info-gnu@ as the default only for a stable release
33424         * top/maint.mk: Don't default to info-gnu for alpha or beta releases.
33425         For those, just use $(PACKAGE_BUGREPORT), in which case we don't have
33426         to set the Mail-Followup-To header.  Prompted by Reuben Thomas in
33427         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/26488
33429 2011-05-05  Paul Eggert  <eggert@cs.ucla.edu>
33431         assert-h: new module, which supports C1X-style static_assert
33432         * lib/assert.in.h, m4/assert_h.m4, modules/assert-h: New files.
33433         * lib/verify.h: Revamp so that this can be copied into assert.h,
33434         while retaining the ability to use it standalone as before.
33435         Rename private identifiers so as not to encroach on the
33436         standard C namespace, since this is now used by assert.h.
33437         (_GL_VERIFY_TYPE): New macro, factoring out differing parts of
33438         the old verify_true.
33439         (_GL_VERIFY_TRUE): New macro, with much of the contents of
33440         the old verify_true.  Use _GL_VERIFY_TYPE.
33441         (_GL_VERIFY): New macro, with much of the contents of the old verify.
33442         (static_assert): New macro, if _GL_STATIC_ASSERT_H
33443         is defined and static_assert is not; _GL_STATIC_ASSERT_H is
33444         defined when this file is copied into the replacement assert.h.
33445         (_Static_assert): New macro, if _GL_STATIC_ASSERT_H is defined
33446         and _Static_assert is not built in.
33447         (verify_true, verify): Define only if _GL_STATIC_ASSERT_H is not
33448         defined, and use the new macros mentioned above.
33449         * doc/posix-headers/assert.texi: Document this.
33451 2011-05-05  Bruno Haible  <bruno@clisp.org>
33453         fclose, fflush: Respect rules for use of AC_LIBOBJ.
33454         * m4/fflush.m4 (gl_FUNC_FFLUSH): Don't invoke gl_REPLACE_FCLOSE.
33455         * m4/fclose.m4 (gl_FUNC_FCLOSE): Invoke gl_FUNC_FFLUSH_STDIN and
33456         gl_REPLACE_FCLOSE here.
33457         * modules/fflush (Depends-on): Remove fclose.
33458         * doc/posix-functions/fclose.texi: Mention module 'fflush' only in
33459         combination with module 'fclose'.
33461 2011-05-05  Bruno Haible  <bruno@clisp.org>
33463         fflush, fseeko: Respect rules for use of AC_LIBOBJ.
33464         * m4/fflush.m4 (gl_FUNC_FFLUSH_STDIN): New macro, extracted from
33465         gl_FUNC_FFLUSH.
33466         (gl_FUNC_FFLUSH): Use it.
33467         (gl_REPLACE_FFLUSH): Don't invoke gl_REPLACE_FSEEKO.
33468         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Invoke gl_FUNC_FFLUSH_STDIN and
33469         gl_REPLACE_FSEEKO here.
33471 2011-05-05  Bruno Haible  <bruno@clisp.org>
33473         tzset: Relicense under LGPL.
33474         * modules/tzset (License): Change to LGPL.
33475         No agreement needed; it's a no-op.
33477         strtoimax, strtoumax: Relicense under LGPL.
33478         * modules/strtoimax (License): Change to LGPL.
33479         * modules/strtoumax (License): Likewise.
33480         With permission from Jim Meyering, Paul Eggert:
33481         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00124.html>
33482         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00109.html>
33484         getgroups: Relicense under LGPL.
33485         * modules/getgroups (License): Change to LGPL.
33486         With permission from Jim Meyering, Paul Eggert, Eric Blake:
33487         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00111.html>
33488         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00148.html>
33489         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00138.html>
33491         nanosleep: Relicense under LGPL.
33492         * modules/nanosleep (License): Change to LGPL.
33493         With permission from Jim Meyering, Paul Eggert, Eric Blake, Bruno
33494         Haible:
33495         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00111.html>
33496         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00148.html>
33497         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00138.html>
33498         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00131.html>
33500         futimens: Relicense under LGPL.
33501         * modules/futimens (License): Change to LGPL.
33502         With permission from Eric Blake:
33503         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00138.html>
33505         fflush: Relicense under LGPL.
33506         * modules/fflush (License): Change to LGPL.
33507         With permission from Eric Blake, Bruno Haible, Jim Meyering:
33508         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00138.html>
33509         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00131.html>
33510         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00133.html>
33512         tmpfile: Relicense under LGPL.
33513         * modules/tmpfile (License): Change to LGPL.
33514         With permission from Ben Pfaff:
33515         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00185.html>
33517         isfinite: Relicense under LGPL.
33518         * modules/isfinite (License): Change to LGPL.
33519         With permission from Ben Pfaff, Bruno Haible:
33520         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00185.html>
33521         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00130.html>
33523         acosl..tanl: Relicense under LGPL.
33524         * modules/acosl (License): Change to LGPL.
33525         * modules/asinl (License): Likewise.
33526         * modules/atanl (License): Likewise.
33527         * modules/cosl (License): Likewise.
33528         * modules/expl (License): Likewise.
33529         * modules/logl (License): Likewise.
33530         * modules/sinl (License): Likewise.
33531         * modules/sqrtl (License): Likewise.
33532         * modules/tanl (License): Likewise.
33533         Source code originally from glibc and Paolo Bonzini. Agreements:
33534         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00137.html>
33535         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00128.html>
33537 2011-05-05  Bruno Haible  <bruno@clisp.org>
33539         signal: Define sighandler_t.
33540         * lib/signal.in.h (sighandler_t): New type.
33541         * m4/signal_h.m4 (gl_SIGNAL_H): Require AC_USE_SYSTEM_EXTENSIONS. Test
33542         whether sighandler_t is defined.
33543         (gl_SIGNAL_H_DEFAULTS): Initialize HAVE_SIGHANDLER_T.
33544         * modules/signal (Depends-on): Add extensions.
33545         (Makefile.am): Substitute HAVE_SIGHANDLER_T.
33546         * doc/posix-headers/signal.texi: Mention the problem with sighandler_t.
33547         Suggested by Markus Steinborn <gnugv_maintainer@yahoo.de>.
33549 2011-05-05  Eric Blake  <eblake@redhat.com>
33551         maint: remove useless REPLACE_*_H macros
33552         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): Delete.
33553         * m4/dirent_h.m4 (gl_REPLACE_DIRENT_H): Likewise.
33554         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H): Likewise.
33555         * m4/poll_h.m4 (gl_REPLACE_POLL_H): Likewise.
33556         * m4/spawn_h.m4 (gl_REPLACE_SPAWN_H): Likewise.
33557         * m4/sys_ioctl_h.m4 (gl_REPLACE_SYS_IOCTL_H): Likewise.
33558         * m4/wchar_h.m4 (gl_REPLACE_WCHAR_H): Likewise.
33559         * m4/btowc.m4: Update callers.
33560         * m4/dirfd.m4: Likewise.
33561         * m4/duplocale.m4: Likewise.
33562         * m4/fchdir.m4: Likewise.
33563         * m4/fdopendir.m4: Likewise.
33564         * m4/inet_ntop.m4: Likewise.
33565         * m4/inet_pton.m4: Likewise.
33566         * m4/ioctl.m4: Likewise.
33567         * m4/mbrlen.m4: Likewise.
33568         * m4/mbrtowc.m4: Likewise.
33569         * m4/mbsinit.m4: Likewise.
33570         * m4/mbsnrtowcs.m4: Likewise.
33571         * m4/mbsrtowcs.m4: Likewise.
33572         * m4/poll.m4: Likewise.
33573         * m4/setlocale.m4: Likewise.
33574         * m4/wcrtomb.m4: Likewise.
33575         * m4/wcsnrtombs.m4: Likewise.
33576         * m4/wcsrtombs.m4: Likewise.
33577         * m4/wctob.m4: Likewise.
33578         * m4/wcwidth.m4: Likewise.
33579         * modules/posix_spawn: Likewise.
33580         * modules/posix_spawn_file_actions_addclose: Likewise.
33581         * modules/posix_spawn_file_actions_adddup2: Likewise.
33582         * modules/posix_spawn_file_actions_addopen: Likewise.
33583         * modules/posix_spawn_file_actions_destroy: Likewise.
33584         * modules/posix_spawn_file_actions_init: Likewise.
33585         * modules/posix_spawnattr_destroy: Likewise.
33586         * modules/posix_spawnattr_getflags: Likewise.
33587         * modules/posix_spawnattr_getpgroup: Likewise.
33588         * modules/posix_spawnattr_getschedparam: Likewise.
33589         * modules/posix_spawnattr_getschedpolicy: Likewise.
33590         * modules/posix_spawnattr_getsigdefault: Likewise.
33591         * modules/posix_spawnattr_getsigmask: Likewise.
33592         * modules/posix_spawnattr_init: Likewise.
33593         * modules/posix_spawnattr_setflags: Likewise.
33594         * modules/posix_spawnattr_setpgroup: Likewise.
33595         * modules/posix_spawnattr_setschedparam: Likewise.
33596         * modules/posix_spawnattr_setschedpolicy: Likewise.
33597         * modules/posix_spawnattr_setsigdefault: Likewise.
33598         * modules/posix_spawnattr_setsigmask: Likewise.
33599         * modules/posix_spawnp: Likewise.
33601 2011-05-04  Reuben Thomas  <rrt@sc3d.org>
33603         Add option to do-release-commit-and-tag to specify branch.
33604         * build-aux/do-release-commit-and-tag: Add --branch.
33606 2011-05-03  Bruno Haible  <bruno@clisp.org>
33608         Avoid unnecessary compilation units, through conditional dependencies.
33609         * modules/accept (Depends-on): Add conditions to the dependencies.
33610         * modules/acosl (Depends-on): Likewise.
33611         * modules/argz (Depends-on): Likewise.
33612         * modules/asinl (Depends-on): Likewise.
33613         * modules/atanl (Depends-on): Likewise.
33614         * modules/atoll (Depends-on): Likewise.
33615         * modules/bind (Depends-on): Likewise.
33616         * modules/btowc (Depends-on): Likewise.
33617         * modules/canonicalize-lgpl (Depends-on): Likewise.
33618         * modules/ceil (Depends-on): Likewise.
33619         * modules/ceilf (Depends-on): Likewise.
33620         * modules/ceill (Depends-on): Likewise.
33621         * modules/chdir-long (Depends-on): Likewise.
33622         * modules/chown (Depends-on): Likewise.
33623         * modules/close (Depends-on): Likewise.
33624         * modules/connect (Depends-on): Likewise.
33625         * modules/cosl (Depends-on): Likewise.
33626         * modules/dirfd (Depends-on): Likewise.
33627         * modules/dprintf (Depends-on): Likewise.
33628         * modules/dprintf-posix (Depends-on): Likewise.
33629         * modules/error (Depends-on): Likewise.
33630         * modules/euidaccess (Depends-on): Likewise.
33631         * modules/expl (Depends-on): Likewise.
33632         * modules/faccessat (Depends-on): Likewise.
33633         * modules/fchdir (Depends-on): Likewise.
33634         * modules/fclose (Depends-on): Likewise.
33635         * modules/fcntl (Depends-on): Likewise.
33636         * modules/fdopendir (Depends-on): Likewise.
33637         * modules/fflush (Depends-on): Likewise.
33638         * modules/floor (Depends-on): Likewise.
33639         * modules/floorf (Depends-on): Likewise.
33640         * modules/floorl (Depends-on): Likewise.
33641         * modules/fnmatch (Depends-on): Likewise.
33642         * modules/fopen (Depends-on): Likewise.
33643         * modules/fprintf-posix (Depends-on): Likewise.
33644         * modules/frexp (Depends-on): Likewise.
33645         * modules/frexp-nolibm (Depends-on): Likewise.
33646         * modules/frexpl (Depends-on): Likewise.
33647         * modules/frexpl-nolibm (Depends-on): Likewise.
33648         * modules/fseek (Depends-on): Likewise.
33649         * modules/fsusage (Depends-on): Likewise.
33650         * modules/ftell (Depends-on): Likewise.
33651         * modules/ftello (Depends-on): Likewise.
33652         * modules/futimens (Depends-on): Likewise.
33653         * modules/getcwd (Depends-on): Likewise.
33654         * modules/getcwd-lgpl (Depends-on): Likewise.
33655         * modules/getdelim (Depends-on): Likewise.
33656         * modules/getdomainname (Depends-on): Likewise.
33657         * modules/getgroups (Depends-on): Likewise.
33658         * modules/gethostname (Depends-on): Likewise.
33659         * modules/getline (Depends-on): Likewise.
33660         * modules/getlogin_r (Depends-on): Likewise.
33661         * modules/getopt-posix (Depends-on): Likewise.
33662         * modules/getpeername (Depends-on): Likewise.
33663         * modules/getsockname (Depends-on): Likewise.
33664         * modules/getsockopt (Depends-on): Likewise.
33665         * modules/getsubopt (Depends-on): Likewise.
33666         * modules/getusershell (Depends-on): Likewise.
33667         * modules/glob (Depends-on): Likewise.
33668         * modules/grantpt (Depends-on): Likewise.
33669         * modules/iconv_open (Depends-on): Likewise.
33670         * modules/iconv_open-utf (Depends-on): Likewise.
33671         * modules/inet_ntop (Depends-on): Likewise.
33672         * modules/inet_pton (Depends-on): Likewise.
33673         * modules/ioctl (Depends-on): Likewise.
33674         * modules/isapipe (Depends-on): Likewise.
33675         * modules/isfinite (Depends-on): Likewise.
33676         * modules/isinf (Depends-on): Likewise.
33677         * modules/lchown (Depends-on): Likewise.
33678         * modules/ldexpl (Depends-on): Likewise.
33679         * modules/link (Depends-on): Likewise.
33680         * modules/linkat (Depends-on): Likewise.
33681         * modules/listen (Depends-on): Likewise.
33682         * modules/logl (Depends-on): Likewise.
33683         * modules/lstat (Depends-on): Likewise.
33684         * modules/mbrlen (Depends-on): Likewise.
33685         * modules/mbrtowc (Depends-on): Likewise.
33686         * modules/mbsinit (Depends-on): Likewise.
33687         * modules/mbsnrtowcs (Depends-on): Likewise.
33688         * modules/mbsrtowcs (Depends-on): Likewise.
33689         * modules/mbtowc (Depends-on): Likewise.
33690         * modules/memcmp (Depends-on): Likewise.
33691         * modules/mkdir (Depends-on): Likewise.
33692         * modules/mkdtemp (Depends-on): Likewise.
33693         * modules/mkfifo (Depends-on): Likewise.
33694         * modules/mkfifoat (Depends-on): Likewise.
33695         * modules/mknod (Depends-on): Likewise.
33696         * modules/mkostemp (Depends-on): Likewise.
33697         * modules/mkostemps (Depends-on): Likewise.
33698         * modules/mkstemp (Depends-on): Likewise.
33699         * modules/mkstemps (Depends-on): Likewise.
33700         * modules/mktime (Depends-on): Likewise.
33701         * modules/nanosleep (Depends-on): Likewise.
33702         * modules/open (Depends-on): Likewise.
33703         * modules/openat (Depends-on): Likewise.
33704         * modules/perror (Depends-on): Likewise.
33705         * modules/poll (Depends-on): Likewise.
33706         * modules/popen (Depends-on): Likewise.
33707         * modules/posix_spawn (Depends-on): Likewise.
33708         * modules/posix_spawn_file_actions_addclose (Depends-on): Likewise.
33709         * modules/posix_spawn_file_actions_adddup2 (Depends-on): Likewise.
33710         * modules/posix_spawn_file_actions_addopen (Depends-on): Likewise.
33711         * modules/posix_spawnp (Depends-on): Likewise.
33712         * modules/pread (Depends-on): Likewise.
33713         * modules/printf-posix (Depends-on): Likewise.
33714         * modules/ptsname (Depends-on): Likewise.
33715         * modules/putenv (Depends-on): Likewise.
33716         * modules/pwrite (Depends-on): Likewise.
33717         * modules/readline (Depends-on): Likewise.
33718         * modules/readlink (Depends-on): Likewise.
33719         * modules/readlinkat (Depends-on): Likewise.
33720         * modules/recv (Depends-on): Likewise.
33721         * modules/recvfrom (Depends-on): Likewise.
33722         * modules/regex (Depends-on): Likewise.
33723         * modules/remove (Depends-on): Likewise.
33724         * modules/rename (Depends-on): Likewise.
33725         * modules/renameat (Depends-on): Likewise.
33726         * modules/rmdir (Depends-on): Likewise.
33727         * modules/round (Depends-on): Likewise.
33728         * modules/roundf (Depends-on): Likewise.
33729         * modules/roundl (Depends-on): Likewise.
33730         * modules/rpmatch (Depends-on): Likewise.
33731         * modules/select (Depends-on): Likewise.
33732         * modules/send (Depends-on): Likewise.
33733         * modules/sendto (Depends-on): Likewise.
33734         * modules/setenv (Depends-on): Likewise.
33735         * modules/setlocale (Depends-on): Likewise.
33736         * modules/setsockopt (Depends-on): Likewise.
33737         * modules/shutdown (Depends-on): Likewise.
33738         * modules/sigaction (Depends-on): Likewise.
33739         * modules/signbit (Depends-on): Likewise.
33740         * modules/sigprocmask (Depends-on): Likewise.
33741         * modules/sinl (Depends-on): Likewise.
33742         * modules/sleep (Depends-on): Likewise.
33743         * modules/snprintf (Depends-on): Likewise.
33744         * modules/snprintf-posix (Depends-on): Likewise.
33745         * modules/socket (Depends-on): Likewise.
33746         * modules/sprintf-posix (Depends-on): Likewise.
33747         * modules/sqrtl (Depends-on): Likewise.
33748         * modules/stat (Depends-on): Likewise.
33749         * modules/strchrnul (Depends-on): Likewise.
33750         * modules/strdup-posix (Depends-on): Likewise.
33751         * modules/strerror (Depends-on): Likewise.
33752         * modules/strerror_r-posix (Depends-on): Likewise.
33753         * modules/strndup (Depends-on): Likewise.
33754         * modules/strnlen (Depends-on): Likewise.
33755         * modules/strptime (Depends-on): Likewise.
33756         * modules/strsep (Depends-on): Likewise.
33757         * modules/strsignal (Depends-on): Likewise.
33758         * modules/strstr-simple (Depends-on): Likewise.
33759         * modules/strtod (Depends-on): Likewise.
33760         * modules/strtoimax (Depends-on): Likewise.
33761         * modules/strtok_r (Depends-on): Likewise.
33762         * modules/strtoumax (Depends-on): Likewise.
33763         * modules/symlink (Depends-on): Likewise.
33764         * modules/symlinkat (Depends-on): Likewise.
33765         * modules/tanl (Depends-on): Likewise.
33766         * modules/tcgetsid (Depends-on): Likewise.
33767         * modules/tmpfile (Depends-on): Likewise.
33768         * modules/trunc (Depends-on): Likewise.
33769         * modules/truncf (Depends-on): Likewise.
33770         * modules/truncl (Depends-on): Likewise.
33771         * modules/uname (Depends-on): Likewise.
33772         * modules/unlink (Depends-on): Likewise.
33773         * modules/unlockpt (Depends-on): Likewise.
33774         * modules/unsetenv (Depends-on): Likewise.
33775         * modules/usleep (Depends-on): Likewise.
33776         * modules/utimensat (Depends-on): Likewise.
33777         * modules/vasprintf (Depends-on): Likewise.
33778         * modules/vdprintf (Depends-on): Likewise.
33779         * modules/vdprintf-posix (Depends-on): Likewise.
33780         * modules/vfprintf-posix (Depends-on): Likewise.
33781         * modules/vprintf-posix (Depends-on): Likewise.
33782         * modules/vsnprintf (Depends-on): Likewise.
33783         * modules/vsnprintf-posix (Depends-on): Likewise.
33784         * modules/vsprintf-posix (Depends-on): Likewise.
33785         * modules/wcrtomb (Depends-on): Likewise.
33786         * modules/wcscasecmp (Depends-on): Likewise.
33787         * modules/wcscspn (Depends-on): Likewise.
33788         * modules/wcsdup (Depends-on): Likewise.
33789         * modules/wcsncasecmp (Depends-on): Likewise.
33790         * modules/wcsnrtombs (Depends-on): Likewise.
33791         * modules/wcspbrk (Depends-on): Likewise.
33792         * modules/wcsrtombs (Depends-on): Likewise.
33793         * modules/wcsspn (Depends-on): Likewise.
33794         * modules/wcsstr (Depends-on): Likewise.
33795         * modules/wcstok (Depends-on): Likewise.
33796         * modules/wcswidth (Depends-on): Likewise.
33797         * modules/wctob (Depends-on): Likewise.
33798         * modules/wctomb (Depends-on): Likewise.
33799         * modules/wctype (Depends-on): Likewise.
33800         * modules/wcwidth (Depends-on): Likewise.
33801         * modules/write (Depends-on): Likewise.
33803 2011-05-03  Bruno Haible  <bruno@clisp.org>
33805         Support for conditional dependencies.
33806         * doc/gnulib.texi (Module description): Document the syntax of
33807         conditional dependencies.
33808         * gnulib-tool: New option --conditional-dependencies.
33809         (func_usage): Document it.
33810         (cond_dependencies): New variable.
33811         (func_get_automake_snippet_conditional,
33812         func_get_automake_snippet_unconditional): New functions, extracted from
33813         func_get_automake_snippet.
33814         (func_get_automake_snippet): Use them.
33815         (sed_first_32_chars): New variable.
33816         (func_module_shellfunc_name): New function.
33817         (func_module_shellvar_name): New function.
33818         (func_module_conditional_name): New function.
33819         (func_uncond_add_module, func_conddep_add_module, func_cond_module_p,
33820         func_cond_module_condition): New functions.
33821         (func_modules_transitive_closure): Add support for conditional
33822         dependencies.
33823         (func_emit_lib_Makefile_am): For a conditional module, enclose the
33824         conditional automake snippet in an automake conditional.
33825         (func_emit_autoconf_snippets): Emit shell functions that contain the
33826         code for conditional modules.
33827         (func_import, func_create_testdir): Update specification.
33829 2011-05-03  Eric Blake  <eblake@redhat.com>
33831         test-getaddrinfo: report error information
33832         * tests/test-getaddrinfo.c (simple): Use err outside of dbprintf.
33834 2011-05-03  Jim Meyering  <meyering@redhat.com>
33836         bootstrap: avoid build failure when $GZIP is set
33837         * build-aux/bootstrap (check_versions): Do not treat $GZIP as a
33838         program name.  If defined at all, it is supposed to list gzip options.
33839         Reported by Alan Curry in http://debbugs.gnu.org/8609
33841 2011-05-03  Reuben Thomas  <rrt@sc3d.org>
33843         readme-release: new module with release instructions
33844         * modules/readme-release: New module.
33845         * top/README-release: New file, from coreutils, grep, diffutils.
33846         * MODULES.html.sh (Support for maintaining and releasing): Add it.
33848 2011-05-02  Eric Blake  <eblake@redhat.com>
33850         fflush: also replace fclose when fixing fflush
33851         * modules/fflush (Depends-on): Add fclose.
33852         * m4/fflush.m4 (gl_FUNC_FFLUSH): Also replace fclose.
33853         * lib/fclose.c (rpl_fclose): Don't cause spurious failures on
33854         memstreams with no backing fd.
33855         * doc/posix-functions/fclose.texi (fclose): Document the use of
33856         fflush module to fix the bug.
33857         * tests/test-fclose.c (main): Relax test when fclose is used in
33858         isolation.
33860         fclose: add some tests
33861         * modules/fclose-tests: New test module.
33862         * tests/test-fclose.c: New file.
33863         * doc/posix-functions/fclose.texi (fclose): Document the bug.
33865         fclose: reduced dependencies
33866         * modules/fclose (Depends-on): Switch from fflush/fseeko to
33867         simpler lseek.
33868         * lib/fclose.c (rpl_fclose): Likewise.
33869         Reported by Simon Josefsson.
33871         exit: drop remaining clients
33872         * modules/argmatch (Depends-on): Replace exit with stdlib.
33873         * modules/copy-file (Depends-on): Likewise.
33874         * modules/execute (Depends-on): Likewise.
33875         * modules/exitfail (Depends-on): Likewise.
33876         * modules/obstack (Depends-on): Likewise.
33877         * modules/pagealign_alloc (Depends-on): Likewise.
33878         * modules/pipe-filter-gi (Depends-on): Likewise.
33879         * modules/pipe-filter-ii (Depends-on): Likewise.
33880         * modules/savewd (Depends-on): Likewise.
33881         * modules/spawn-pipe (Depends-on): Likewise.
33882         * modules/wait-process (Depends-on): Likewise.
33883         * modules/xsetenv (Depends-on): Likewise.
33884         * modules/chdir-long (Depends-on): Add stdlib, for EXIT_FAILURE.
33885         * modules/git-merge-changelog (Depends-on): Likewise.
33886         * modules/long-options (Depends-on): Likewise.
33887         * modules/pt_chown (Depends-on): Likewise.
33888         * modules/sysexits (Depends-on): Likewise.
33890         freading: relax license from LGPLv3+ to LGPLv2+
33891         * modules/freading (License): Relax LGPL version.
33893 2011-05-02  Bruno Haible  <bruno@clisp.org>
33895         fchdir: Remove unused dependencies.
33896         * modules/fchdir (Depends-on): Remove include_next.
33898 2011-05-02  Bruno Haible  <bruno@clisp.org>
33900         gnulib-tool: Refactor.
33901         * gnulib-tool (func_emit_autoconf_snippet): New function, extracted
33902         from func_emit_autoconf_snippets.
33903         (func_emit_autoconf_snippets): Use it.
33905 2011-05-02  Simon Josefsson  <simon@josefsson.org>
33907         * NEWS: Document removal of 'exit'.
33908         * modules/exit: Remove file.
33910 2011-05-01  Bruno Haible  <bruno@clisp.org>
33912         Update DEPENDENCIES.
33913         * DEPENDENCIES (gettext): Recommend the newest release.
33914         Reported by Simon Josefsson.
33916 2011-05-01  Bruno Haible  <bruno@clisp.org>
33918         gnulib-tool: Reduce code duplication.
33919         * gnulib-tool (func_emit_autoconf_snippets): New function.
33920         (func_import, func_create_testdir): Use it.
33922 2011-04-30  Eric Blake  <eblake@redhat.com>
33924         fclose: don't fail on non-seekable input stream
33925         * modules/fclose (Depends-on): Add freading, fflush, fseeko.
33926         * lib/fclose.c (rpl_fclose): Skip fflush for non-seekable input,
33927         since fflush is allowed to fail in that case.
33929 2011-04-30  Bruno Haible  <bruno@clisp.org>
33931         dup3: cleanup
33932         * lib/dup3.c: Remove old code, leftover from 2009-12-16.
33934 2011-04-30  Bruno Haible  <bruno@clisp.org>
33936         netdb: Make it work in C++ mode.
33937         * lib/netdb.in.h (struct addrinfo): In C++, define as a C struct.
33938         (getaddrinfo, freeaddrinfo, getnameinfo): Use macros from c++defs
33939         module.
33940         * m4/netdb_h.m4 (gl_NETDB_MODULE_INDICATOR): Invoke
33941         gl_MODULE_INDICATOR_FOR_TESTS.
33942         * modules/netdb-tests (Depends-on): Add netdb-c++-tests.
33943         * modules/netdb-c++-tests: New file.
33944         * tests/test-netdb-c++.cc: New file.
33946 2011-04-30  Bruno Haible  <bruno@clisp.org>
33948         New modules 'vfscanf', 'vscanf'.
33949         * modules/vfscanf: New file.
33950         * modules/vscanf: New file.
33951         * m4/stdio_h.m4 (gl_STDIO_H): Don't set GNULIB_VFSCANF, GNULIB_VSCANF
33952         here.
33953         * doc/posix-functions/vfscanf.texi: Mention module 'vfscanf'.
33954         * doc/posix-functions/vscanf.texi: Mention module 'vscanf'.
33956 2011-04-30  Bruno Haible  <bruno@clisp.org>
33958         passfd: Add comments.
33959         * lib/passfd.c: Add comments about platforms.
33961 2011-04-30  Bruno Haible  <bruno@clisp.org>
33963         sys_uio: Make <sys/uio.h> self-contained.
33964         * lib/sys_uio.in.h: Include <sys/types.h> before <sys/uio.h>.
33965         * doc/posix-headers/sys_uio.texi: Mention the OpenBSD problem.
33967 2011-04-30  Bruno Haible  <bruno@clisp.org>
33969         sys_socket: Ensure 'struct iovec' definition.
33970         * lib/sys_socket.in.h: Include <sys/uio.h> also on platforms that have
33971         <sys/socket.h>.
33972         * doc/posix-headers/sys_socket.texi: Mention the OpenBSD problem.
33974 2011-04-30  Bruno Haible  <bruno@clisp.org>
33976         sys_uio: Protect definition of 'struct iovec'.
33977         * lib/sys_uio.in.h (struct iovec): Avoid redefinition. In C++, define
33978         it as a C struct.
33980 2011-04-30  Bruno Haible  <bruno@clisp.org>
33982         manywarnings: fix indentation
33983         * m4/manywarnings.m4: Indent by 2 spaces consistently.
33985 2011-04-30  Pádraig Brady  <P@draigBrady.com>
33987         manywarnings: add -Wno-missing-field-initializers if needed.
33988         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Add the above
33989         option if it's needed to allow initialization with { 0, }
33991 2011-04-29  Reuben Thomas  <rrt@sc3d.org>
33993         announce-gen: cosmetic improvement
33994         * build-aux/announce-gen: Strip any leading ./ from the NEWS file name.
33996 2011-04-29  Jim Meyering  <meyering@redhat.com>
33998         vc-list-files: indent with spaces, not TABs
33999         * build-aux/vc-list-files: Convert leading TABs to spaces,
34000         to match the style of most other files in gnulib.
34002         announce-gen: indent with spaces, not TABs
34003         * build-aux/announce-gen: Convert all TABs to spaces, to match
34004         the style of most other files in gnulib.
34006 2011-04-29  Eric Blake  <eblake@redhat.com>
34008         quotearg: avoid uninitialized variable use
34009         * lib/quotearg.c (quoting_options_from_style): Initialize
34010         remaining fields, and ensure that custom styles are only used via
34011         quoting_options rather than quoting_style.
34013 2011-04-29  Jim Meyering  <meyering@redhat.com>
34015         maint.mk: remove unused VC-tag variable
34016         * top/maint.mk (VC-tag): Remove unused variable.
34018 2011-04-29  Bruno Haible  <bruno@clisp.org>
34020         netdb: fix gai_strerror replacements
34021         * lib/netdb.in.h: Add _GL_FUNCDECL_RPL definitions.
34022         * modules/netdb: Substitute it.
34024 2011-04-29  Jim Meyering  <meyering@redhat.com>
34026         test-getcwd.c: avoid new set-but-not-used warning
34027         * tests/test-getcwd.c (test_abort_bug): Exit nonzero for any problem,
34028         not just the glibc/abort one that getcwd-abort-bug.m4 detects.
34029         * m4/getcwd-abort-bug.m4: Update this now-duplicated code to match,
34030         and adjust the code that sets gl_cv_func_getcwd_abort_bug accordingly.
34032         test-hash.c: avoid a new shadowing warning
34033         * tests/test-hash.c (main): Don't shadow "dup".
34035 2011-04-28  Eric Blake  <eblake@redhat.com>
34037         getaddrinfo: fix gai_strerror signature
34038         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Detect broken signatures,
34039         and work around mingw with UNICODE defined.
34040         (gl_PREREQ_GETADDRINFO): Drop redundant decl check.
34041         * m4/netdb_h.m4 (gl_NETDB_H_DEFAULTS): Add witness.
34042         * modules/netdb (Makefile.am): Substitute it.
34043         * lib/netdb.in.h (gai_strerror): Declare replacement.
34044         * lib/gai_strerror.c (rpl_gai_strerror): Fix signature.
34045         * doc/posix-functions/gai_strerror.texi (gai_strerror): Document
34046         the fix.
34048         getsockopt: avoid compiler warning
34049         * lib/getsockopt.c (rpl_getsockopt): Add a cast for mingw.
34050         Reported by Matthias Bolte.
34052         tests: drop unused link dependency
34053         * modules/areadlinkat-tests (Makefile.am): Drop stale LDADD.
34054         * modules/dirent-safer-tests (Makefile.am): Likewise.
34055         * modules/fdopendir-tests (Makefile.am): Likewise.
34056         * modules/mkfifoat-tests (Makefile.am): Likewise.
34057         * modules/openat-safer-tests (Makefile.am): Likewise.
34058         * modules/openat-tests (Makefile.am): Likewise.
34059         * modules/readlinkat-tests (Makefile.am): Likewise.
34060         * modules/symlinkat-tests (Makefile.am): Likewise.
34061         * modules/linkat-tests (Makefile.am): Likewise.
34062         (Depends-on): Switch to filenamecat-lgpl.
34063         * modules/fdutimensat-tests (test_fdutimensat_LDADD): Drop unused
34064         LIBINTL.
34065         * modules/utimensat-tests (test_utimensat_LDADD): Likewise.
34066         * tests/test-linkat.c (main): Don't require xalloc.
34068         hash, mgetgroups: drop xalloc dependency
34069         * lib/hash.c (includes): Adjust includes.
34070         * lib/mgetgroups.c (includes): Likewise.
34071         (xgetgroups): Move...
34072         * lib/xgetgroups.c: ...to new file.
34073         * lib/mgetgroups.h (xgetgroups): Make declaration conditional.
34074         * modules/xgetgroups: New file, split from...
34075         * modules/mgetgroups: ...here.
34076         (Depends-on): Add xalloc-oversized.
34077         * modules/hash (Depends-on): Likewise.
34078         * modules/hash-tests (Depends-on): Drop xalloc.
34079         (test_hash_LDADD): Drop unused library.
34080         * tests/test-hash.c (main): Break xalloc dependency.
34081         (includes): Drop unused include.
34083         xalloc-oversized: new module
34084         * modules/xalloc-oversized: New module.
34085         * modules/xalloc (Depends-on): Add it.
34086         * lib/xalloc.h (xalloc_oversized): Move...
34087         * lib/xalloc-oversized.h: ...into new file.
34089         utimecmp: drop dependency on xmalloc
34090         * lib/utimecmp.c (utimecmp): Work even if hash table cache fails
34091         due to memory pressure.
34092         * modules/utimecmp (Depends-on): Drop xalloc.
34094 2011-04-27  Eric Blake  <eblake@redhat.com>
34096         getcwd: fix mingw bugs
34097         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Detect one mingw bug.
34098         * doc/posix-functions/getcwd.texi (getcwd): Document the problems.
34099         * lib/getcwd-lgpl.c (rpl_getcwd): Fix return type.
34101 2011-04-27  Bruno Haible  <bruno@clisp.org>
34103         mkstemps: Ensure declaration on MacOS X 10.5.
34104         * lib/stdlib.in.h: Include <unistd.h> when mkstemps is requested.
34105         * doc/glibc-functions/mkstemps.texi: Document header file problem on
34106         MacOS X.
34108 2011-04-27  Bruno Haible  <bruno@clisp.org>
34110         mkstemp: More documentation.
34111         * doc/posix-functions/mkstemp.texi: Document header file problem on
34112         MacOS X.
34114 2011-04-27  Bruno Haible  <bruno@clisp.org>
34116         mkstemp: Tweak configure message when cross-compiling.
34117         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): When cross-compiling, qualify the
34118         result as a guess.
34120 2011-04-27  Bruno Haible  <bruno@clisp.org>
34122         clean-temp: Clarify what it does.
34123         * lib/clean-temp.h: Add more comments.
34124         * doc/posix-functions/mkstemp.texi: Tweak reference to 'clean-temp'
34125         module.
34126         * doc/glibc-functions/mkostemp.texi: Mention 'clean-temp' here too.
34127         * doc/glibc-functions/mkstemps.texi: Likewise.
34128         * doc/glibc-functions/mkostemps.texi: Likewise.
34130 2011-04-27  Eric Blake  <eblake@redhat.com>
34132         fchdir: avoid extra chdir and fix test
34133         * modules/fchdir (Depends-on): Add dosname, filenamecat-lgpl,
34134         getcwd-lgpl.
34135         * lib/fchdir.c (get_name): Any absolute name will do; it does not
34136         have to be canonical.
34137         (canonicalize_file_name): Drop unused macro.
34138         * m4/dup2.m4 (gl_REPLACE_DUP2): Ensure dup2 is replaced.
34140         filenamecat-lgpl: fix licence
34141         * modules/filenamecat-lgpl (License): Mark as LGPLv2+, as intended
34142         when it was first created.
34144         linkat, renameat: add missing dependency
34145         * modules/linkat (Depends-on): Require getcwd-lgpl.
34146         * modules/renameat (Depends-on): Likewise.
34148         tests: reduce dependencies
34149         * tests/test-linkat.c (main): Use lighter-weight getcwd.
34150         * tests/test-renameat.c (main): Likewise.
34151         * modules/linkat-tests (Depends-on): Relax dependency.
34152         * modules/renameat-tests (Depends-on): Likewise.
34153         * modules/fchdir-tests (Depends-on): Likewise.  Also make cloexec
34154         dependency explicit.
34156         save-cwd: reduce default dependency
34157         * modules/save-cwd (Depends-on): Use getcwd-lgpl.
34158         * lib/save-cwd.c: Update comments.
34159         * NEWS: Document the semantic change.
34161         getcwd: enhance tests
34162         * tests/test-getcwd-lgpl.c: New file, taken from...
34163         * tests/test-getcwd.c: ...old contents.  Rewrite this file to
34164         repeat long path stress tests from m4 probe.
34165         * modules/getcwd-lgpl-tests: New module.
34166         * modules/getcwd-tests (Depends-on): Depend on lgpl tests.
34167         * m4/getcwd-abort-bug.m4: Update comment.
34168         * m4/getcwd-path-max.m4: Likewise.
34170         getcwd-lgpl: new module
34171         * modules/getcwd-lgpl: New module.
34172         * lib/getcwd-lgpl.c: New file.
34173         * doc/posix-functions/getcwd.texi (getcwd): Document it.
34174         * MODULES.html.sh (lacking POSIX:2008): Likewise.
34175         * modules/getcwd (configure.ac): Set C witness.
34176         * m4/getcwd.m4 (gl_FUNC_GETCWD_LGPL): New macro.
34178         getcwd: tweak comments
34179         * m4/getcwd-abort-bug.m4: Fix comments.
34180         * m4/getcwd-path-max.m4: Likewise.
34181         * m4/getcwd.m4: Likewise.
34183 2011-04-27  Reuben Thomas  <rrt@sc3d.org>
34184         and Eric Blake  <eblake@redhat.com>
34186         mkstemp: replace if system version uses wrong permissions
34187         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Add test for non-owner
34188         read/write mode bits set in file created by mkstemp.
34189         * doc/posix-functions/mkstemp.texi (mkstemp): Document the fix.
34191 2011-04-27  Eric Blake  <eblake@redhat.com>
34193         passfd: avoid compiler warning
34194         * lib/passfd.c (sendfd, recvfd): Avoid shadowing names.
34195         Reported by Laine Stump.
34197 2011-04-27  J.T. Conklin  <jtc@acorntoolworks.com>  (tiny change)
34199         * gnulib-tool: change "join -a 2" to "join -a2", the latter is
34200         required by the NetBSD (and perhaps other 4.4BSD derived) join.
34202 2011-04-27  Reuben Thomas  <rrt@sc3d.org>
34203         and Eric Blake  <eblake@redhat.com>
34205         mkstemp: mention clean-temp module
34206         * lib/mkstemp.c: Add comment.
34207         * doc/posix-functions/mkstemp.texi (mkstemp): Likewise.
34209 2011-04-26  Paul Eggert  <eggert@cs.ucla.edu>
34211         inttypes: also provide default values for 32-bit tests
34212         * m4/inttypes.m4 (gl_INTTYPES_H_DEFAULTS): Also provide default values
34213         for INT32_MAX_LT_INTMAX_MAX and for UINT32_MAX_LT_UINTMAX_MAX.
34215 2011-04-25  Paul Eggert  <eggert@cs.ucla.edu>
34217         strtoumax: remove dependency on strtoimax
34218         This is like the strtoull change of yesterday.
34219         * modules/strtoumax (Files): Add lib/strtoimax.c.
34220         (Depends-on): Remove strtoimax and add verify.
34222         inttypes-incomplete: new module
34223         * m4/inttypes.m4 (gl_INTTYPES_INCOMPLETE): New macro, containing
34224         all but the PRI* and SCN* parts of gl_INTTYPES_H.
34225         (gl_INTTYPES_PRI_SCN): New macro, containing the PRI* and SCN* parts
34226         of gl_INTTYPES_H.
34227         (gl_INTTYPES_H): Rewrite in terms of these new macros.
34228         (gl_INTTYPES_H_DEFAULTS): Provide defaults for the PRI* and SCN*
34229         parts, in case gl_INTTYPE_PRI_SCN is not invoked.
34230         * modules/imaxabs, modules/imaxdiv, modules/strtoimax (Depends-on):
34231         * modules/strtoumax, modules/xstrtol (Depends-on):
34232         Depend on inttypes-incomplete, not inttypes.
34233         * modules/inttypes-incomplete: New module, containing the contents
34234         of the old modules/inttypes module, except that the Files: section
34235         omits m4/inttypes-pri.m4, and the configure.ac section invokes
34236         gl_INTTYPES_INCOMPLETE rather than gl_INTTYPES_H.
34237         * modules/inttypes (Files): Remove lib/inttypes.in.h, m4/inttypes.m4.
34238         (Depends-on): Depend only on inttypes-incomplete.
34239         (Makefile.am): Remove everything; this is now in inttypes-incomplete.
34241         inttypes: omit now-redundant strtoimax and strtoumax work
34242         * m4/inttypes.m4 (gl_INTTYPES_H): Do not check for strtoimax and
34243         strtoumax decls; gl_FUNC_STRTOIMAX and gl_FUNC_STRTOUMAX now do this.
34245         strtoimax, strtoumax: simplify, port to HP-UX 11.00 64-bit
34246         This supports apps that need pointers to strtoimax and strtoumax,
34247         and ports to HP-UX 11.00 64.bit, which has macros that expand to
34248         nonexistent functions.  See
34249         <http://lists.gnu.org/archive/html/bug-gnulib/2011-04/msg00241.html>
34250         et seq.
34251         * lib/inttypes.in.h (strtoimax, strtoumax): #undef before declaring.
34252         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Don't check whether it's
34253         a macro.
34254         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Likewise.
34256 2011-04-25  Simon Josefsson  <simon@josefsson.org>
34258         * modules/gnumakefile (configure.ac): Replace TAB with SPCs.
34260 2011-04-25  Bruno Haible  <bruno@clisp.org>
34262         strtol, strtoul: Mark modules as obsolete.
34263         * modules/strtol (Status, Notice): New sections.
34264         * modules/strtoul (Status, Notice): New sections.
34266 2011-04-25  Bruno Haible  <bruno@clisp.org>
34268         strtod: Remove check for strtod, unless supporting old platforms.
34269         * modules/strtod-obsolete: New file.
34270         * m4/strtod-obsolete.m4: New file.
34271         * m4/strtod.m4 (gl_FUNC_STRTOD): Don't check whether strtod is declared
34272         if gl_FUNC_STRTOD_OBSOLETE is not also defined.
34273         * modules/strtod (Depends-on): Add strtod-obsolete.
34274         * doc/posix-functions/strtod.texi: Mention module strtod-obsolete.
34276 2011-04-25  Bruno Haible  <bruno@clisp.org>
34278         strcase: Make module obsolete.
34279         * modules/strcase (Status, Notice): New sections.
34281 2011-04-25  Bruno Haible  <bruno@clisp.org>
34283         dup2: Remove check for dup2, unless supporting old obsolete platforms.
34284         * modules/dup2-obsolete: New file.
34285         * m4/dup2-obsolete.m4: New file.
34286         * m4/dup2.m4 (gl_FUNC_DUP2): Don't check whether dup2 exists if
34287         gl_FUNC_DUP2_OBSOLETE is not also defined.
34288         * modules/dup2 (Depends-on): Add dup2-obsolete.
34289         * doc/posix-functions/dup2.texi: Mention module dup2-obsolete.
34291 2011-04-25  Bruno Haible  <bruno@clisp.org>
34293         strnlen: Avoid memchr related link error on old obsolete platforms.
34294         * modules/memchr-obsolete: New file.
34295         * m4/memchr-obsolete.m4: New file.
34296         * m4/memchr.m4 (gl_FUNC_MEMCHR): Don't check whether memchr exists if
34297         gl_FUNC_MEMCHR_OBSOLETE is not also defined.
34298         * modules/memchr (Depends-on): Add memchr-obsolete.
34299         * modules/strnlen (Depends-on): Likewise.
34300         * doc/posix-functions/memchr.texi: Mention module memchr-obsolete.
34302 2011-04-25  Jim Meyering  <meyering@redhat.com>
34304         maint.mk: makefile_at_at_check extend and clean up
34305         * top/maint.mk (sc_makefile_at_at_check): Check *.mk files
34306         in addition to */Makefile.am.
34307         Exempt legitimate uses of @VAR@ notation, e.g.,
34308         MAKEINFO = env LANG= LC_MESSAGES= LC_ALL= LANGUAGE= @MAKEINFO@
34309         Remove obsolete coreutils-specific comment.
34310         Prompted by discussion here:
34311         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/26074
34313 2011-04-24  Paul Eggert  <eggert@cs.ucla.edu>
34315         strtoul: remove dependency on strtol
34316         This is so that 'configure' need not check for strtol merely because
34317         the application needs strtoul.
34318         * modules/strtoul (Files): Add lib/strtol.c.
34319         (Depends-on): Remove strtol.
34321         strtoull: remove dependency on strtoul
34322         This is like the strtoll change.
34323         * modules/strtoull (Files): Add lib/strtol.c, lib/strtoul.c.
34324         (Depends-on): Remove strtoul.
34326         strtoll: remove dependency on strtol
34327         This is so that 'configure' need not check for strtol merely because
34328         the application needs strtoll.
34329         * modules/strtoll (Files): Add lib/strtol.c.
34330         (Depends-on): Remove strtol.
34332 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
34334         inttypes: Move some configure check to module 'imaxdiv'.
34335         * m4/imaxdiv.m4 (gl_FUNC_IMAXDIV): Require gl_INTTYPES_H_DEFAULTS
34336         instead of gl_INTTYPES_H.  Check for imaxdiv decl here.
34337         * m4/inttypes.m4 (gl_INTTYPES_H): Don't check for imaxdiv decl here.
34339 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
34341         inttypes: Move some configure check to module 'imaxabs'.
34342         * m4/imaxabs.m4 (gl_FUNC_IMAXABS): Require gl_INTTYPES_H_DEFAULTS
34343         instead of gl_INTTYPES_H.  Check for imaxabs decl here.
34344         * m4/inttypes.m4 (gl_INTTYPES_H): Don't check for imaxabs decl here.
34346 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
34348         inttypes: Remove configure tests that are not needed since 2009-12-31.
34349         * m4/inttypes.m4 (gl_INTTYPES_H): Remove determination of
34350         gl_cv_header_working_inttypes_h.
34352 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
34354         * modules/strnlen (Depends-on): Remove memchr.
34355         The strnlen implementation doesn't need the memchr module's fixes; see
34356         <http://lists.gnu.org/archive/html/bug-gnulib/2011-04/msg00237.html>.
34358         strtol: remove dependency on wchar
34359         * lib/strtol.c: Include <wchar.h> only if USE_WIDE_CHAR is defined.
34360         * modules/strtol (Depends-on): Remove wchar.
34362 2011-04-21  Eric Blake  <eblake@redhat.com>
34364         passfd: fix test regression on Linux
34365         * modules/passfd-tests (configure.ac): Correct socketpair check.
34367         passfd: speed up configure and drop unused code
34368         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Rename...
34369         * m4/passfd.m4 (gl_PASSFD): ...to something more fitting of
34370         its use.  Drop test for setting unused HAVE_UNIXSOCKET_SCM_RIGHTS.
34371         Instead of probing at configure for unix_scm_rights_bsd44_way,
34372         instead probe for CMSG_FIRSTHDR at compile time.  Simplify BSD 4.3
34373         check to a struct member probe.
34374         * lib/passfd.c (includes): Nothing here requires <sys/un.h>.
34375         (sendfd, recvfd): Update preprocessor checks.
34376         * modules/passfd (Files): Reflect rename, and drop unused file.
34377         (Depends-on): Drop unused dependency.
34379         passfd: allow compilation on mingw
34380         * modules/sys_socket (Depends-on): Add sys_uio.
34381         * lib/sys_socket.in.h [!@HAVE_SYS_SOCKET_H@]: Use it for struct
34382         iovec and a minimal struct msghdr.
34383         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Detect recvmsg/sendmsg.
34384         * tests/test-sys_socket.c (main): Enhance test.
34385         * lib/passfd.c (include): Drop <sys/uio.h>; <sys/sockets.h> is
34386         guaranteed to provide what we need.
34387         (sendmsg, recvmsg): Declare fallbacks if we lack sendmsg.
34388         * modules/passfd-tests (Depends-on): Add sys_wait.
34389         * tests/test-passfd.c (main): Skip test on mingw, for now.
34390         * doc/posix-headers/sys_socket.texi (sys/socket.h): Document the
34391         partial 'struct msghdr' implementation.
34393         sys_uio: new module
34394         * modules/sys_uio: New module.
34395         * modules/sys_uio-tests: Likewise.
34396         * lib/sys_uio.in.h: New file.
34397         * m4/sys_uio_h.m4: Likewise.
34398         * tests/test-sys_uio.c: Likewise.
34399         * doc/posix-headers/sys_uio.texi (sys/uio.h): Document it.
34400         * MODULES.html.sh (systems lacking POSIX:2008): Likewise.
34402 2011-04-20  Jim Meyering  <meyering@redhat.com>
34404         useless-if-before-free: avoid false-positive
34405         * build-aux/useless-if-before-free: Adjust regexp for the non-brace
34406         disjunct so that it too requires a terminating ";".  Without that,
34407         this script would identify as useless one statement from gcc that
34408         was not:
34409           if (aligned_ptr)
34410             free (((void **) aligned_ptr) [-1]);
34412 2011-04-20  Giuseppe Scrivano  <gscrivano@gnu.org>
34414         doc: update users.txt.
34415         * users.txt: Add barcode.
34417 2011-04-19  Bruno Haible  <bruno@clisp.org>
34419         ioctl: Remove link dependency on native Windows.
34420         * lib/fd-hook.h: Renamed from lib/close-hook.h.
34421         (gl_close_fn, gl_ioctl_fn): New types.
34422         (struct fd_hook): Renamed from struct close_hook. Change type of
34423         private_close_fn field. Add private_ioctl_fn field.
34424         (close_hook_fn): Add parameter for primary close method.
34425         (execute_close_hooks, execute_all_close_hooks): Likewise.
34426         (ioctl_hook_fn): New type.
34427         (execute_ioctl_hooks, execute_all_ioctl_hooks): New declarations.
34428         (register_fd_hook): Renamed from register_close_hook. Add ioctl_hook
34429         argument.
34430         (unregister_fd_hook): Renamed from unregister_close_hook.
34431         * lib/fd-hook.c: Renamed from lib/close-hook.c.
34432         Don't include <unistd.h>.
34433         (close): Remove undef.
34434         (anchor): Update.
34435         (execute_close_hooks): Add argument for primary close method.
34436         (execute_all_close_hooks): Likewise.
34437         (execute_ioctl_hooks, execute_all_ioctl_hooks): New functions.
34438         (register_fd_hook): Renamed from register_close_hook. Add ioctl_hook
34439         argument. Allow each argument to be NULL.
34440         (unregister_fd_hook): Renamed from unregister_close_hook.
34441         * lib/close.c (rpl_close): Pass 'close' function pointer to
34442         execute_all_close_hooks.
34443         * lib/ioctl.c: Include <errno.h>, fd-hook.h.
34444         (primary_ioctl): New function.
34445         (ioctl): Don't call ioctlsocket here. Instead, call
34446         execute_all_ioctl_hooks.
34447         * lib/sockets.c (close_fd_maybe_socket): Add argument for primary
34448         close method.
34449         (ioctl_fd_maybe_socket): New function, with code from lib/ioctl.c.
34450         (fd_sockets_hook): Renamed from close_sockets_hook.
34451         (gl_sockets_startup, gl_sockets_cleanup): Update.
34452         * modules/fd-hook: Renamed from modules/close-hook. Update.
34453         * modules/close (Depends-on): Add fd-hook, remove close-hook.
34454         * modules/sockets (Depends-on): Likewise.
34455         * modules/ioctl (Depends-on): Add fd-hook.
34456         * tests/test-nonblocking.c (main): Use GNULIB_TEST_SOCKET, not
34457         GNULIB_SOCKET.
34459 2011-04-19  Bruno Haible  <bruno@clisp.org>
34461         Move the support of O_NONBLOCK in open() to the 'open' module.
34462         * modules/nonblocking (Depends-on): Remove 'open'.
34463         * m4/nonblocking.m4 (gl_NONBLOCKING_IO_BODY): Set
34464         gl_cv_have_open_O_NONBLOCK.
34465         * m4/open.m4 (gl_FUNC_OPEN): Replace open() also when required for
34466         O_NONBLOCK support.
34467         * doc/posix-functions/open.texi: Document support for O_NONBLOCK.
34469 2011-04-17  Bruno Haible  <bruno@clisp.org>
34471         pipe2: Simplify code.
34472         * lib/pipe2.c (pipe2): Reduce code duplication.
34474 2011-04-17  Bruno Haible  <bruno@clisp.org>
34476         nonblocking: Add comment.
34477         * lib/fcntl.in.h (O_NONBLOCK): Add comment.
34479 2011-04-17  Bruno Haible  <bruno@clisp.org>
34481         nonblocking: Add tests for sockets.
34482         * tests/test-nonblocking-socket.sh: New file.
34483         * tests/test-nonblocking-socket-main.c: New file.
34484         * tests/test-nonblocking-socket-child.c: New file.
34485         * tests/test-nonblocking-socket.h: New file.
34486         * tests/socket-server.h: New file.
34487         * tests/socket-client.h: New file.
34488         * modules/nonblocking-socket-tests: New file.
34489         * modules/nonblocking-tests (Depends-on): Add nonblocking-socket-tests.
34491 2011-04-17  Bruno Haible  <bruno@clisp.org>
34493         nonblocking: Add tests for pipes.
34494         * tests/test-nonblocking-pipe.sh: New file.
34495         * tests/test-nonblocking-pipe-main.c: New file.
34496         * tests/test-nonblocking-pipe-child.c: New file.
34497         * tests/test-nonblocking-pipe.h: New file.
34498         * tests/test-nonblocking-writer.h: New file.
34499         * tests/test-nonblocking-reader.h: New file.
34500         * tests/test-nonblocking-misc.h: New file.
34501         * modules/nonblocking-pipe-tests: New file.
34502         * modules/nonblocking-tests (Depends-on): Add nonblocking-pipe-tests.
34504 2011-04-16  Bruno Haible  <bruno@clisp.org>
34506         gettext: Clarify the needed programmer actions.
34507         * modules/gettext (Notice): New field.
34508         Suggested by Ben Pfaff <blp@cs.stanford.edu>.
34510 2011-04-16  Bruno Haible  <bruno@clisp.org>
34512         strchrnul: Tweak last commit.
34513         * doc/glibc-functions/strchrnul.texi: Add more details about Cygwin
34514         bug.
34515         * lib/string.in.h (strchrnul): Use same arguments in _GL_FUNCDECL_RPL
34516         as in _GL_FUNCDECL_SYS.
34517         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Invoke gl_PREREQ_STRCHRNUL after
34518         AC_LIBOBJ. When cross-compiling, say "guessing yes" not "yes".
34520 2011-04-15  Eric Blake  <eblake@redhat.com>
34522         strchrnul: work around cygwin bug
34523         * doc/glibc-functions/strchrnul.texi (strchrnul): Document bug.
34524         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Detect it.
34525         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): New witness.
34526         * modules/string (Makefile.am): Substitute it.
34527         * lib/string.in.h (strchrnul): Use it.
34529 2011-04-15  Bruno Haible  <bruno@clisp.org>
34531         Don't require lib/stdio-write.c when only module 'stdio' is used.
34532         * m4/stdio_h.m4 (gl_STDIO_H): Move the AC_LIBOBJ back into the m4_ifdef
34533         invocation.
34534         Reported by Rob Vermaas <rob.vermaas@gmail.com>.
34536 2011-04-14  Bruno Haible  <bruno@clisp.org>
34538         Support non-blocking pipe I/O in read() on native Windows.
34539         * lib/unistd.in.h: Include <sys/types.h> also for 'read'.
34540         (read): New declaration.
34541         * lib/read.c: New file.
34542         * lib/stdio.in.h (_GL_ATTRIBUTE_FORMAT_SCANF,
34543         _GL_ATTRIBUTE_FORMAT_SCANF_SYSTEM): New macros.
34544         (fgetc, fgets, fread, fscanf, getc, getchar, gets, scanf, vfscanf,
34545         vscanf): New declarations.
34546         * lib/stdio-read.c: New file.
34547         * m4/read.m4: New file.
34548         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_READ,
34549         REPLACE_READ.
34550         * m4/stdio_h.m4 (gl_STDIO_H): Set GNULIB_FGETC, GNULIB_FGETS,
34551         GNULIB_FREAD, GNULIB_FSCANF, GNULIB_GETC, GNULIB_GETCHAR, GNULIB_GETS,
34552         GNULIB_SCANF, GNULIB_VFSCANF, GNULIB_VSCANF. In non-blocking I/O is
34553         desired and needs workarounds, set REPLACE_STDIO_READ_FUNCS.
34554         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FGETC, GNULIB_FGETS,
34555         GNULIB_FREAD, GNULIB_FSCANF, GNULIB_GETC, GNULIB_GETCHAR, GNULIB_GETS,
34556         GNULIB_SCANF, GNULIB_VFSCANF, GNULIB_VSCANF, REPLACE_STDIO_READ_FUNCS.
34557         * modules/read: New file.
34558         * modules/nonblocking (Files): Add lib/stdio-read.c.
34559         * modules/unistd (Makefile.am): Substitute GNULIB_READ, REPLACE_READ.
34560         * modules/stdio (Makefile.am): Substitute GNULIB_FGETC, GNULIB_FGETS,
34561         GNULIB_FREAD, GNULIB_FSCANF, GNULIB_GETC, GNULIB_GETCHAR, GNULIB_GETS,
34562         GNULIB_SCANF, GNULIB_VFSCANF, GNULIB_VSCANF, REPLACE_STDIO_READ_FUNCS.
34563         * modules/pread (Depends-on): Add read.
34564         * modules/safe-read (Depends-on): Likewise.
34565         * tests/test-stdio-c++.cc (fgetc, fgets, fread, fscanf, getc, getchar,
34566         gets, scanf, vfscanf, vscanf): Verify signatures.
34567         * doc/posix-functions/read.texi: Mention 'nonblocking' module and
34568         problem with non-blocking pipes.
34569         * doc/posix-functions/fgetc.texi: Likewise.
34570         * doc/posix-functions/fgets.texi: Likewise.
34571         * doc/posix-functions/fread.texi: Likewise.
34572         * doc/posix-functions/fscanf.texi: Likewise.
34573         * doc/posix-functions/getc.texi: Likewise.
34574         * doc/posix-functions/getchar.texi: Likewise.
34575         * doc/posix-functions/gets.texi: Likewise.
34576         * doc/posix-functions/scanf.texi: Likewise.
34577         * doc/posix-functions/vfscanf.texi: Likewise.
34578         * doc/posix-functions/vscanf.texi: Likewise.
34580 2011-04-14  Bruno Haible  <bruno@clisp.org>
34582         Support non-blocking pipe I/O in write() on native Windows.
34583         * lib/write.c (rpl_write): Split a write request that failed merely
34584         because the byte count was larger than the pipe buffer's size.
34585         * doc/posix-functions/write.texi: Mention the problem with large byte
34586         counts.
34588 2011-04-14  Bruno Haible  <bruno@clisp.org>
34590         wchar: Ensure that wchar_t gets defined on uClibc.
34591         * lib/wchar.in.h: On uClibc, include <stddef.h>.
34592         Reported by Giuseppe Scrivano <gscrivano@gnu.org>.
34594 2011-04-13  Bruno Haible  <bruno@clisp.org>
34596         safe-write, full-read: Avoid unnecessary compilation units.
34597         * modules/safe-write (Files): Add lib/safe-read.c, m4/safe-read.m4.
34598         (Depends-on): Remove safe-read. Add ssize_t.
34599         * modules/full-read (Files): Add lib/full-write.c.
34600         (Depends-on): Add full-write.
34602 2011-04-13  Bruno Haible  <bruno@clisp.org>
34604         Support non-blocking pipe I/O and SIGPIPE in pwrite().
34605         * modules/pwrite (Depends-on): Add 'write'.
34607 2011-04-13  Bruno Haible  <bruno@clisp.org>
34609         Support non-blocking pipe I/O in write() on native Windows.
34610         * lib/unistd.in.h (write): Enable replacement also if
34611         GNULIB_UNISTD_H_NONBLOCKING is 1.
34612         * lib/write.c: Enable replacement also if GNULIB_NONBLOCKING.
34613         (rpl_write): When failing to write on a non-blocking pipe, change
34614         errno from ENOSPC to EAGAIN.
34615         * lib/stdio.in.h (fprintf, fputc, fputs, fwrite, printf, putc,
34616         putchar, puts, vfprintf, vprintf): Enable replacement also if
34617         GNULIB_STDIO_H_NONBLOCKING is 1.
34618         * lib/stdio-write.c: Enable replacements also if GNULIB_NONBLOCKING.
34619         (CLEAR_ERRNO, HANDLE_ENOSPC): New macros.
34620         (CLEAR_LastError, HANDLE_ERROR_NO_DATA): New macros, extracted from
34621         CALL_WITH_SIGPIPE_EMULATION.
34622         (CALL_WITH_SIGPIPE_EMULATION): Use them.
34623         * m4/nonblocking.m4: New file.
34624         * m4/write.m4 (gl_FUNC_WRITE): Enable REPLACE_WRITE also if required
34625         for non-blocking I/O support.
34626         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
34627         GNULIB_UNISTD_H_NONBLOCKING.
34628         * m4/stdio_h.m4 (gl_STDIO_H): Enable REPLACE_STDIO_WRITE_FUNCS also if
34629         required for non-blocking I/O support.
34630         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_STDIO_H_NONBLOCKING.
34631         * modules/nonblocking (Files): Add m4/nonblocking.m4,
34632         lib/stdio-write.c, m4/asm-underscore.m4.
34633         (Depends-on): Add stdio, unistd.
34634         (configure.ac): Invoke gl_NONBLOCKING_IO. Define GNULIB_NONBLOCKING.
34635         Set GNULIB_STDIO_H_NONBLOCKING, GNULIB_UNISTD_H_NONBLOCKING.
34636         * modules/unistd (Makefile.am): Substitute GNULIB_UNISTD_H_NONBLOCKING.
34637         * modules/stdio (Makefile.am): Substitute GNULIB_STDIO_H_NONBLOCKING.
34638         * doc/posix-functions/fprintf.texi: Mention 'nonblocking' module and
34639         problem with non-blocking pipes.
34640         * doc/posix-functions/fputc.texi: Likewise.
34641         * doc/posix-functions/fputs.texi: Likewise.
34642         * doc/posix-functions/fwrite.texi: Likewise.
34643         * doc/posix-functions/printf.texi: Likewise.
34644         * doc/posix-functions/putc.texi: Likewise.
34645         * doc/posix-functions/putchar.texi: Likewise.
34646         * doc/posix-functions/puts.texi: Likewise.
34647         * doc/posix-functions/vfprintf.texi: Likewise.
34648         * doc/posix-functions/vprintf.texi: Likewise.
34649         * doc/posix-functions/write.texi: Likewise.
34651 2011-04-10  Jim Meyering  <meyering@redhat.com>
34653         maint.mk: prohibit doubled words
34654         Detect them also when they're separated by a newline.
34655         There are 3 ways to customize it:
34656           - disable the test on a per file basis, as usual with rules using
34657             $(VC_LIST_EXCEPT)
34658           - replace the default doubled-word-selecting regexp (affects all files)
34659           - ignore a particular file-vs-doubled-word match
34660         I nearly used that last one to ignore the "is is" match in
34661         coreutils' NEWS file, since the text was "ls -is is ..."
34662         To do that, I would have added this line to cfg.mk:
34663           ignore_doubled_word_match_RE_ = ^NEWS:[0-9]+:is[ ]is$
34664         but it would have ignored any "is is" match in NEWS.
34665         Low probability, but still...
34666         Instead, I changed the text, slightly:
34667           -  ls -is is now consistent with ls -lis in ignoring values returned
34668           +  "ls -is" is now consistent with ls -lis in ignoring values returned
34669         * top/maint.mk (prohibit_double_word_RE_): Provide default.
34670         (prohibit_doubled_word_): Define.
34671         (sc_prohibit_doubled_word): New rule.
34672         (sc_prohibit_the_the): Remove.  Subsumed by the above.
34674 2011-04-10  Jim Meyering  <meyering@redhat.com>
34676         maint: fix doubled-word typo in comment
34677         * m4/gethostname.m4: s/is is/it is/
34678         * m4/getdomainname.m4: Likewise.
34680 2011-04-10  Jim Meyering  <meyering@redhat.com>
34682         maint: remove doubled word: s/it it/it/
34683         * lib/stat-time.h (get_stat_birthtime): s/it it/it/
34685 2011-04-10  Jim Meyering  <meyering@redhat.com>
34687         maint.mk: remove useless semicolon and backslash
34688         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Remove stray
34689         semicolon and backslash.
34691 2011-04-10  Bruno Haible  <bruno@clisp.org>
34693         stdint test: Fix compilation failure on OSF/1 with DTK compiler.
34694         * modules/stdint-tests (Depends-on): Add wchar.
34696 2011-04-10  Jim Meyering  <meyering@redhat.com>
34698         maint: remove doubled words in comments, e.g., s/a a/a/
34699         * lib/strptime.c (day_of_the_week): s/the the/the/
34700         * tests/test-chown.h (test_chown): s/a a/a/
34702         test-chown.h: correct a cast
34703         * tests/test-chown.h (test_chown): Cast -1 to gid_t (not uid_t)
34704         when the destination is a stat.st_gid.
34706 2011-04-09  Mats Erik Andersson  <mats.andersson@gisladisker.se>  (tiny change)
34708         getaddrinfo: Fix test for sa_len member.
34709         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): When testing for sa_len,
34710         include <sys/types.h> before <sys/socket.h>.
34712 2011-04-09  Paul Eggert  <eggert@cs.ucla.edu>
34714         maint: change "can not" to "cannot"
34715         * doc/posix-functions/iconv.texi (iconv): This one crossed line
34716         boundaries.
34718 2011-04-09  Jim Meyering  <meyering@redhat.com>
34720         maint: change "a a" to "a"
34721         * tests/test-lchown.h (test_lchown): s/a a/a/
34723         maint.mk: prohibit \<the the\>
34724         * top/maint.mk (sc_prohibit_the_the): New rule.
34726         maint: fix "the the" in comment
34727         * lib/count-one-bits.h: s/the the/the/
34729         maint: change "can not" to "cannot"
34730         But do not change the occurrences in maintain.texi or in
34731         build-aux/po/Makefile.in.in, which I presume comes from gettext.
34732         * doc/gnulib-tool.texi: s/can not/cannot/
34733         * doc/posix-functions/accept.texi (accept): Likewise.
34734         * doc/posix-functions/socket.texi (socket): Likewise.
34735         * lib/mbrtowc.c: Likewise.
34737         maint.mk: prohibit use of "can not"
34738         * top/maint.mk (sc_prohibit_can_not): New rule.
34739         Writing "can not" (rather than "cannot") is too common.  Prohibit it.
34741 2011-04-09  Bruno Haible  <bruno@clisp.org>
34743         careadlinkat: Guard against misuse of careadlinkatcwd.
34744         * lib/careadlinkat.c: Include <stdlib.h>.
34745         (careadlinkatcwd): Check that the fd argument is as expected.
34747 2011-04-09  Bruno Haible  <bruno@clisp.org>
34749         careadlinkat: Use common coding style.
34750         * lib/careadlinkat.c: Move gnulib includes after system includes.
34752 2011-04-09  Bruno Haible  <bruno@clisp.org>
34754         careadlinkat: Clarify specification.
34755         * lib/careadlinkat.h (careadlinkat): Clarify preadlinkat argument.
34756         (careadlinkatcwd): Add comment.
34757         * lib/careadlinkat.c (careadlinkat): Clarify preadlinkat argument.
34759 2011-04-09  Bruno Haible  <bruno@clisp.org>
34761         areadlinkat: Avoid link error on many platforms.
34762         * modules/areadlinkat (Depends-on): Add areadlink.
34764 2011-04-09  Bruno Haible  <bruno@clisp.org>
34766         allocator, careadlinkat: Fix double-inclusion guard.
34767         * lib/allocator.h: Fix double-inclusion guard.
34768         * lib/careadlinkat.h: Likewise.
34770 2011-04-09  Bruno Haible  <bruno@clisp.org>
34772         relocatable-prog-wrapper: Update after module 'areadlink' changed.
34773         * lib/relocwrapper.c: Update dependencies hierarchy.
34774         * build-aux/install-reloc: Update list of files to be compiled.
34775         * modules/relocatable-prog-wrapper (Files): Add lib/careadlinkat.[hc],
34776         lib/allocator.[hc].
34778 2011-04-08  Eric Blake  <eblake@redhat.com>
34780         strftime: silence gnulib-tool warning
34781         * modules/strftime-tests (Depends-on): Drop automatic dependency.
34783 2011-04-08  Bruno Haible  <bruno@clisp.org>
34785         verify: Fix syntax error with GCC 4.6 in C++ mode.
34786         * lib/verify.h (HAVE__STATIC_ASSERT): Don't define in C++ mode.
34787         (HAVE_STATIC_ASSERT): New macro.
34788         (verify_true, verify): Use 'static_assert' if it is supported and
34789         '_Static_assert' is not supported.
34791 2011-04-08  Paul Eggert  <eggert@cs.ucla.edu>
34793         allocator: New module.
34794         * modules/allocator, lib/allocator.c: New files.
34795         * lib/allocator.h (stdlib_allocator): New decl.
34796         * lib/careadlinkat.c (_GL_USE_STDLIB_ALLOC, standard_allocator):
34797         Remove.  Do not include <stdlib.h>.
34798         (careadlinkat): Use stdlib_allocator instead of rolling our own.
34799         * modules/careadlinkat (Files): Remove lib/allocator.h.
34800         (Depends-on): Add allocator.
34802         stdlib: let modules use system malloc, realloc
34803         * lib/stdlib.in.h (malloc, realloc): Don't #define or add warnings
34804         if !_GL_USE_STDLIB_ALLOC.
34805         (malloc, realloc): Limit this change to a smaller scope.
34807         * lib/careadlinkat.c (_GL_USE_STDLIB_ALLOC): Define.
34808         (malloc, realloc): Don't #undef; no longer needed.
34809         * lib/malloca.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
34810         * lib/progreloc.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
34811         * lib/setenv.c (_GL_USE_STDLIB_ALLOC, malloc, realloc): Likewise.
34812         * lib/canonicalize-lgpl.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
34813         * lib/relocatable.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
34814         * lib/relocwrapper.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
34815         * lib/malloc.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
34816         * lib/realloc.c (_GL_USE_STDLIB_ALLOC, malloc, realloc): Likewise.
34818         careadlinkat: rename members to avoid problem
34819         * lib/allocator.h (struct allocator): Rename members from
34820         malloc/realloc to allocate/reallocate, to avoid problems if malloc
34821         and realloc are #define'd.  Reported by Eric Blake in
34822         <http://lists.gnu.org/archive/html/bug-gnulib/2011-04/msg00091.html>.
34823         * lib/careadlinkat.c (careadlinkat): Adjust to renaming.
34825 2011-04-08  Eric Blake  <eblake@redhat.com>
34827         nonblocking: reduce dependency
34828         * tests/test-nonblocking.c: Only test sockets when in use.
34829         * modules/nonblocking-tests (Depends-on): Drop socket.
34830         (Makefile.am): Link even if sockets are not present.
34831         * modules/pipe2-tests (Makefile.am): Likewise.
34832         * lib/ioctl.c (ioctl) [WIN32]: Fail if sockets are not also in use.
34834         pipe2: fix O_NONBLOCK support on mingw
34835         * modules/pipe2 (Depends-on): Add nonblocking.
34836         * lib/pipe2.c (pipe2) [WIN32]: Add O_NONBLOCK support.
34837         * tests/test-pipe2.c (is_nonblocking): Adjust test accordingly.
34838         * tests/test-nonblocking.c (main): Likewise.
34839         * modules/pipe2-tests (Makefile.am): Avoid link failure.
34841         fcntl-h: fix O_ACCMODE on cygwin
34842         * doc/posix-headers/fcntl.texi (fcntl.h): Document the bug.
34843         * lib/fcntl.in.h (O_ACCMODE): Fix it.
34845         pipe-filter: drop O_NONBLOCK workarounds
34846         * modules/pipe-filter-gi (Depends-on): Add fcntl-h.
34847         * modules/pipe-filter-ii (Depends-on): Likewise.
34848         * lib/pipe-filter-aux.h (O_NONBLOCK): Delete workaround.
34850         nonblocking: provide O_NONBLOCK for mingw
34851         * modules/nonblocking (Depends-on): Add open.
34852         (configure.ac): Set new witness macro.
34853         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Provide default for it.
34854         * modules/fcntl-h (Makefile.am): Substitute it.
34855         * lib/fcntl.in.h (O_NONBLOCK): Guarantee non-zero definition when
34856         nonblocking module is in use.
34857         * lib/nonblocking.c: Adjust portability test.
34858         * lib/open.c (open): Don't let native open see gnulib flag.
34859         * tests/test-fcntl-h.c (main): Enhance test.
34860         * tests/test-open.h (test_open): Likewise.
34861         * doc/posix-headers/fcntl.texi (fcntl.h): Document the replacement.
34863         careadlinkat: fix compilation error on mingw
34864         * lib/careadlinkat.c (standard_allocator): Avoid renaming fields
34865         within struct allocator.
34867 2011-04-06  Eric Blake  <eblake@redhat.com>
34869         binary-io: relicense under LGPLv2+
34870         * modules/binary-io (License): Relax to LGPLv2+.
34871         Requested for libvirt, and required by pipe2.
34873 2011-04-06  Paul Eggert  <eggert@cs.ucla.edu>
34875         verify: use _Static_assert if available
34876         * lib/verify.h (HAVE__STATIC_ASSERT): New macro.
34877         (verify_true, verify): Use it if available.  This generates better
34878         diagnostics with GCC 4.6.0 and later.
34880 2011-04-05  Bruno Haible  <bruno@clisp.org>
34882         Remove leftover generated .h files after config.status changed.
34884         * m4/alloca.m4 (gl_FUNC_ALLOCA): New automake conditional
34885         GL_GENERATE_ALLOCA_H.
34886         * modules/alloca-opt (Makefile.am): Remove alloca.h if
34887         GL_GENERATE_ALLOCA_H evaluates to false.
34889         * m4/argz.m4 (gl_FUNC_ARGZ): New automake conditional
34890         GL_GENERATE_ARGZ_H.
34891         * modules/argz (Makefile.am): Remove argz.h if GL_GENERATE_ARGZ_H
34892         evaluates to false.
34894         * m4/byteswap.m4 (gl_BYTESWAP): New automake conditional
34895         GL_GENERATE_BYTESWAP_H.
34896         * modules/byteswap (Makefile.am): Remove byteswap.h if
34897         GL_GENERATE_BYTESWAP_H evaluates to false.
34899         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): New automake conditional
34900         GL_GENERATE_ERRNO_H.
34901         * modules/errno (Makefile.am): Remove errno.h if GL_GENERATE_ERRNO_H
34902         evaluates to false.
34904         * m4/float_h.m4 (gl_FLOAT_H): New automake conditional
34905         GL_GENERATE_FLOAT_H.
34906         * modules/float (Makefile.am): Remove float.h if GL_GENERATE_FLOAT_H
34907         evaluates to false.
34909         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): New automake conditional
34910         GL_GENERATE_FNMATCH_H.
34911         * modules/fnmatch (Makefile.am): Remove fnmatch.h if
34912         GL_GENERATE_FNMATCH_H evaluates to false.
34914         * m4/glob.m4 (gl_GLOB_SUBSTITUTE, gl_GLOB): New automake conditional
34915         GL_GENERATE_GLOB_H.
34916         * modules/glob (Makefile.am): Remove glob.h if GL_GENERATE_GLOB_H
34917         evaluates to false.
34919         * m4/iconv_h.m4 (gl_REPLACE_ICONV_H, gl_ICONV_H_DEFAULTS): New
34920         automake conditional GL_GENERATE_ICONV_H.
34921         * modules/iconv-h (Makefile.am): Remove iconv.h if GL_GENERATE_ICONV_H
34922         evaluates to false.
34924         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): New automake conditional
34925         GL_GENERATE_NETINET_IN_H.
34926         * modules/netinet_in (Makefile.am): Remove netinet/in.h if
34927         GL_GENERATE_NETINET_IN_H evaluates to false.
34929         * m4/pthread.m4 (gl_PTHREAD_CHECK): Set PTHREAD_H here. New automake
34930         conditional GL_GENERATE_PTHREAD_H.
34931         (gl_PTHREAD_DEFAULTS): Don't set PTHREAD_H here.
34932         * modules/pthread (Makefile.am): Remove pthread.h if
34933         GL_GENERATE_PTHREAD_H evaluates to false.
34935         * m4/sched_h.m4 (gl_SCHED_H): New automake conditional
34936         GL_GENERATE_SCHED_H.
34937         * modules/sched (Makefile.am): Remove sched.h if GL_GENERATE_SCHED_H
34938         evaluates to false.
34940         * m4/selinux-context-h.m4 (gl_HEADERS_SELINUX_CONTEXT_H): New automake
34941         conditional GL_GENERATE_SELINUX_CONTEXT_H.
34942         * modules/selinux-h (Makefile.am): Remove selinux/context.h if
34943         GL_GENERATE_SELINUX_CONTEXT_H evaluates to false.
34945         * m4/stdarg.m4 (gl_STDARG_H): New automake conditional
34946         GL_GENERATE_STDARG_H.
34947         * modules/stdarg (Makefile.am): Remove stdarg.h if
34948         GL_GENERATE_STDARG_H evaluates to false.
34950         * m4/stdbool.m4 (AM_STDBOOL_H): New automake conditional
34951         GL_GENERATE_STDBOOL_H.
34952         * modules/stdbool (Makefile.am): Remove stdbool.h if
34953         GL_GENERATE_STDBOOL_H evaluates to false.
34955         * m4/stddef_h.m4 (gl_STDDEF_H): Set STDDEF_H here. New automake
34956         conditional GL_GENERATE_STDDEF_H.
34957         (gl_STDDEF_H_DEFAULTS): Don't set STDDEF_H here.
34958         * modules/stddef (Makefile.am): Remove stddef.h if
34959         GL_GENERATE_STDDEF_H evaluates to false.
34961         * m4/stdint.m4 (gl_STDINT_H): New automake conditional
34962         GL_GENERATE_STDINT_H.
34963         * modules/stdint (Makefile.am): Remove stdint.h if
34964         GL_GENERATE_STDINT_H evaluates to false.
34966         * m4/sysexits.m4 (gl_SYSEXITS): New automake conditional
34967         GL_GENERATE_SYSEXITS_H.
34968         * modules/sysexits (Makefile.am): Remove sysexits.h if
34969         GL_GENERATE_SYSEXITS_H evaluates to false.
34971         Reported by Karl Berry and Ralf Wildenhues.
34973 2011-04-05  Bruno Haible  <bruno@clisp.org>
34975         Ensure to rebuild generated .h files when config.status has changed.
34976         * modules/arpa_inet (Makefile.am): Add dependency from .h file to
34977         config.status.
34978         * modules/ctype (Makefile.am): Likewise.
34979         * modules/dirent (Makefile.am): Likewise.
34980         * modules/errno (Makefile.am): Likewise.
34981         * modules/fcntl-h (Makefile.am): Likewise.
34982         * modules/float (Makefile.am): Likewise.
34983         * modules/getopt-posix (Makefile.am): Likewise.
34984         * modules/glob (Makefile.am): Likewise.
34985         * modules/iconv-h (Makefile.am): Likewise.
34986         * modules/inttypes (Makefile.am): Likewise.
34987         * modules/langinfo (Makefile.am): Likewise.
34988         * modules/locale (Makefile.am): Likewise.
34989         * modules/math (Makefile.am): Likewise.
34990         * modules/netdb (Makefile.am): Likewise.
34991         * modules/netinet_in (Makefile.am): Likewise.
34992         * modules/poll-h (Makefile.am): Likewise.
34993         * modules/pthread (Makefile.am): Likewise.
34994         * modules/pty (Makefile.am): Likewise.
34995         * modules/sched (Makefile.am): Likewise.
34996         * modules/search (Makefile.am): Likewise.
34997         * modules/selinux-h (Makefile.am): Likewise.
34998         * modules/signal (Makefile.am): Likewise.
34999         * modules/spawn (Makefile.am): Likewise.
35000         * modules/stdarg (Makefile.am): Likewise.
35001         * modules/stdbool (Makefile.am): Likewise.
35002         * modules/stddef (Makefile.am): Likewise.
35003         * modules/stdint (Makefile.am): Likewise.
35004         * modules/stdio (Makefile.am): Likewise.
35005         * modules/stdlib (Makefile.am): Likewise.
35006         * modules/string (Makefile.am): Likewise.
35007         * modules/strings (Makefile.am): Likewise.
35008         * modules/sys_file (Makefile.am): Likewise.
35009         * modules/sys_ioctl (Makefile.am): Likewise.
35010         * modules/sys_select (Makefile.am): Likewise.
35011         * modules/sys_socket (Makefile.am): Likewise.
35012         * modules/sys_stat (Makefile.am): Likewise.
35013         * modules/sys_time (Makefile.am): Likewise.
35014         * modules/sys_times (Makefile.am): Likewise.
35015         * modules/sys_utsname (Makefile.am): Likewise.
35016         * modules/sys_wait (Makefile.am): Likewise.
35017         * modules/sysexits (Makefile.am): Likewise.
35018         * modules/termios (Makefile.am): Likewise.
35019         * modules/time (Makefile.am): Likewise.
35020         * modules/unistd (Makefile.am): Likewise.
35021         * modules/wchar (Makefile.am): Likewise.
35022         * modules/wctype-h (Makefile.am): Likewise.
35023         Reported by Karl Berry, Eric Blake, and Ralf Wildenhues.
35025 2011-04-05  Bruno Haible  <bruno@clisp.org>
35027         pipe2: Relicense under LGPLv2+.
35028         * modules/pipe2 (License): Change to LGPLv2+.
35029         Requested by Eric Blake, for libvirt.
35031 2011-04-05  Bruce Korb  <bkorb@gnu.org>
35033         bootstrap: compute gnulib_extra_files after updating build_aux
35034         * build-aux/bootstrap (gnulib_extra_files): bootstrap.conf may
35035         change build_aux or also supply gnulib_extra_files.  Handle correctly.
35037 2011-04-05  Eric Blake  <eblake@redhat.com>
35039         bootstrap: preserve git whitelist item sorting
35040         * build-aux/bootstrap (sort_patterns): New function.
35041         (insert_sorted_if_absent): Use it to sink ! lines to the bottom.
35043 2011-04-05  Simon Josefsson  <simon@josefsson.org>
35045         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Don't trigger
35046         sc_space_tab check.
35048 2011-04-05  Paul Eggert  <eggert@cs.ucla.edu>
35050         areadlink, areadlinkat: rewrite in terms of careadlinkat
35051         * lib/areadlink.c, lib/areadlinkat.c: Include careadlinkat.h
35052         instead of errno.h, limits.h, stdint.h, stdlib.h, string.h, unistd.h.
35053         (SSIZE_MAX, INITIAL_BUF_SIZE): Remove.
35054         (malloc, realloc): Remove #undefs.
35055         (areadlink, areadlinkat): Rewrite in terms of careadlinkat.
35056         * modules/areadlink (Depends-on): Add careadlinkat.  Remove
35057         readlink, ssize_t, stdint, unistd.
35058         * modules/areadlinkat (Depends-on): Add careadlinkat.  Remove
35059         areadlink, stdint.
35061         careadlinkat: new module
35062         * lib/allocator.h, lib/careadlinkat.h, lib/careadlinkat.c:
35063         * modules/careadlinkat: New files, written by me with
35064         a review and feedback from Ben Pfaff in
35065         <http://lists.gnu.org/archive/html/bug-gnulib/2011-04/msg00008.html>.
35067 2011-04-01  Bruno Haible  <bruno@clisp.org>
35069         wmemchr, wcschr, wcsrchr, wcspbrk, wcsstr: Avoid errors in C++ mode.
35070         * lib/wchar.in.h (wmemchr, wcschr, wcsrchr, wcspbrk, wcsstr): Use
35071         _GL_CXXALIAS_SYS_CAST2 instead of _GL_CXXALIAS_SYS. On glibc >= 2.10
35072         systems, use _GL_CXXALIASWARN1 instead of _GL_CXXALIASWARN.
35073         Reported by Bruce Korb <bruce.korb@gmail.com>.
35075 2011-04-01  Bruno Haible  <bruno@clisp.org>
35077         wcpcpy, wcpncpy: Ensure declaration on glibc >= 2.13 systems.
35078         * m4/wcpcpy.m4 (gl_FUNC_WCPCPY): Require AC_USE_SYSTEM_EXTENSIONS.
35079         * m4/wcpncpy.m4 (gl_FUNC_WCPNCPY): Likewise.
35080         * modules/wcpcpy (Depends-on): Add extensions.
35081         * modules/wcpncpy (Depends-on): Likewise.
35082         * doc/posix-functions/wcpcpy.texi: Mention missing declaration on glibc
35083         systems.
35084         * doc/posix-functions/wcpncpy.texi: Likewise.
35085         * doc/posix-functions/wcwidth.texi: Likewise.
35087 2011-03-31  Eric Blake  <eblake@redhat.com>
35089         nonblocking: fix mingw test failures
35090         * lib/nonblocking.c (set_nonblocking_flag): Succeed when clearing
35091         non-blocking flag on regular file.
35092         (get_nonblocking_flag): Set errno on invalid fd.
35093         * tests/test-nonblocking.c (main): Avoid test failure on
35094         directories if fchdir is not active.
35095         * modules/nonblocking-tests (Depends-on): Drop unused dependency.
35097 2011-03-31  Bruno Haible  <bruno@clisp.org>
35099         Fix bug with gl_WARN_ON_USE_PREPARE, introduced on 2011-01-23.
35100         * m4/gnulib-common.m4 (gl_ASSERT_NO_GNULIB_POSIXCHECK): Hide the
35101         gl_WARN_ON_USE_PREPARE definition from 'aclocal'.
35102         Reported by Simon Josefsson <simon@josefsson.org>.
35104 2011-03-31  Bruno Haible  <bruno@clisp.org>
35105         and Eric Blake  <eblake@redhat.com>
35107         nonblocking: new module
35108         * modules/nonblocking: New module.
35109         * modules/nonblocking-tests: Likewise.
35110         * lib/nonblocking.h: New file.
35111         * lib/nonblocking.c: Likewise.
35112         * tests/test-nonblocking.c: New test.
35113         * lib/ioctl.c (ioctl) [mingw]: Update comment.
35115 2011-03-30  Bruno Haible  <bruno@clisp.org>
35117         stdio: Avoid GCC >= 4.4 warnings when using %lld and similar on mingw.
35118         * lib/stdio.in.h (_GL_ATTRIBUTE_FORMAT_PRINTF): Use 'gnu_printf' format
35119         instead of 'printf' format for GCC >= 4.4.
35120         (_GL_ATTRIBUTE_FORMAT_PRINTF_SYSTEM): New macro.
35121         (fprintf, printf, vfprintf, vprintf): Declare with
35122         _GL_ATTRIBUTE_FORMAT_PRINTF_SYSTEM when the function ends up calling
35123         the system's vfprintf() function.
35124         Reported by Daniel P. Berrange <berrange@redhat.com> via Eric Blake.
35126 2011-03-30  Eric Blake  <eblake@redhat.com>
35128         passfd: fix scoping bug
35129         * lib/passfd.c (sendfd, recvfd): Don't let buf go out of scope
35130         before sendmsg/recvmsg.
35132         passfd: standardize coding conventions
35133         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Drop check for something that
35134         can be learned at compile time.
35135         * lib/passfd.c (MSG_CMSG_CLOEXEC): Reduce number of in-function
35136         ifdefs.
35137         (sendfd, recvfd): Follow gnulib code conventions.
35139         passfd: fix incorrect sendmsg arguments
35140         * lib/passfd.c (sendfd): Avoid uninitialized msg_flags field, and
35141         incorrect msg_controllen value.
35142         * modules/passfd-tests (Depends-on): Check for alarm.
35143         * tests/test-passfd.c (main) [HAVE_DECL_ALARM]: Avoid hanging test.
35144         Reported by Bastien ROUCARIES.
35146 2011-03-30  Bruno Haible  <bruno@clisp.org>
35148         c-strcasestr: Relicense under LGPLv2+.
35149         * modules/c-strcasestr (License): Change to LGPLv2+.
35150         Requested by Eric Blake, for libvirt.
35152 2011-03-30  Simon Josefsson  <simon@josefsson.org>
35154         * users.txt: Add libidn2.  Fix libtasn1 link.
35156 2011-03-30  Jim Meyering  <meyering@redhat.com>
35158         tests: readlink* ("",... fails with EINVAL on newer kernels
35159         readlink and readlinkat have typically failed with ENOENT for
35160         the invalid, empty file name,  "".  However, with the advent
35161         of linux-2.6.39, they fail with EINVAL.
35162         * tests/test-areadlink.h (test_areadlink): Also accept EINVAL
35163         when operating on the empty file name.
35164         * tests/test-readlink.h (test_readlink): Likewise.
35166 2011-03-29  Bruno Haible  <bruno@clisp.org>
35168         Relicense some modules under LGPLv2+, for libidn2.
35169         * modules/array-mergesort (License): Change to LGPLv2+.
35170         * modules/c-strcaseeq (License): Likewise.
35171         * modules/striconveh (License): Likewise.
35172         * modules/striconveha (License): Likewise.
35173         * modules/uniconv/base (License): Likewise.
35174         * modules/uniconv/u8-conv-from-enc (License): Likewise.
35175         * modules/uniconv/u8-strconv-from-enc (License): Likewise.
35176         * modules/uniconv/u8-strconv-from-locale (License): Likewise.
35177         * modules/unictype/base (License): Likewise.
35178         * modules/unictype/bidiclass-of (License): Likewise.
35179         * modules/unictype/category-M (License): Likewise.
35180         * modules/unictype/category-none (License): Likewise.
35181         * modules/unictype/category-of (License): Likewise.
35182         * modules/unictype/category-test (License): Likewise.
35183         * modules/unictype/category-test-withtable (License): Likewise.
35184         * modules/unictype/combining-class (License): Likewise.
35185         * modules/unictype/joiningtype-of (License): Likewise.
35186         * modules/unictype/scripts (License): Likewise.
35187         * modules/uninorm/base (License): Likewise.
35188         * modules/uninorm/canonical-decomposition (License): Likewise.
35189         * modules/uninorm/composition (License): Likewise.
35190         * modules/uninorm/decompose-internal (License): Likewise.
35191         * modules/uninorm/decomposition-table (License): Likewise.
35192         * modules/uninorm/nfc (License): Likewise.
35193         * modules/uninorm/nfd (License): Likewise.
35194         * modules/uninorm/u32-normalize (License): Likewise.
35195         * modules/unistr/base (License): Likewise.
35196         * modules/unistr/u32-cpy (License): Likewise.
35197         * modules/unistr/u32-mbtouc-unsafe (License): Likewise.
35198         * modules/unistr/u32-to-u8 (License): Likewise.
35199         * modules/unistr/u32-uctomb (License): Likewise.
35200         * modules/unistr/u8-check (License): Likewise.
35201         * modules/unistr/u8-mblen (License): Likewise.
35202         * modules/unistr/u8-mbtouc (License): Likewise.
35203         * modules/unistr/u8-mbtouc-unsafe (License): Likewise.
35204         * modules/unistr/u8-mbtoucr (License): Likewise.
35205         * modules/unistr/u8-prev (License): Likewise.
35206         * modules/unistr/u8-strlen (License): Likewise.
35207         * modules/unistr/u8-to-u32 (License): Likewise.
35208         * modules/unistr/u8-uctomb (License): Likewise.
35209         * modules/unitypes (License): Likewise.
35210         Requested by Simon Josefsson.
35212 2011-03-29  Simon Josefsson  <simon@josefsson.org>
35214         lib-symbol-visibility: Add a notice.
35215         * modules/lib-symbol-visibility (Notice): New field.
35217 2011-03-29  Bruno Haible  <bruno@clisp.org>
35219         getaddrinfo: Doc fix.
35220         * doc/posix-functions/getaddrinfo.texi: Mention Windows problem in the
35221         section "fixed in Gnulib".
35223 2011-03-28  Simon Josefsson  <simon@josefsson.org>
35225         * doc/posix-functions/getaddrinfo.texi: Drop netdb.h discussion.
35226         Reported by Bastien ROUCARIES <roucaries.bastien@gmail.com>.
35228 2011-03-26  Bruno Haible  <bruno@clisp.org>
35230         unictype/property-byname: Reduce the number of load-time relocations.
35231         * lib/unictype/pr_byname.c: Include <stdlib.h>.
35232         (UC_PROPERTY_INDEX_*): New enumeration values.
35233         (uc_property_byname): Convert an index from the lookup table to an
35234         uc_property_t.
35235         * lib/unictype/pr_byname.gperf: Store indices instead of uc_property_t
35236         values.
35238 2011-03-26  Bruno Haible  <bruno@clisp.org>
35240         unictype/property-byname: Allow omitted word separators and aliases.
35241         * lib/unictype/pr_byname.gperf: Add property names without word
35242         separators. Add aliases from Unicode 6.0 PropertyAliases.txt, except
35243         for 'space'.
35245 2011-03-26  Bruno Haible  <bruno@clisp.org>
35247         unictype/joininggroup-byname: Allow hyphens, omitted word separators.
35248         * lib/unictype/joininggroup_byname.c (uc_joining_group_byname): Convert
35249         also hyphens to space.
35250         * lib/unictype/joininggroup_byname.gperf: Recognize the names also
35251         without spaces.
35252         * tests/unictype/test-joininggroup_byname.c (main): Add more tests.
35254 2011-03-26  Bruno Haible  <bruno@clisp.org>
35256         unictype/joiningtype-byname: Recognize long names as well.
35257         * lib/unictype.in.h (uc_joiningtype_class_byname): Allow argument to be
35258         a long name.
35259         * lib/unictype/joiningtype_byname.c: Include <string.h>,
35260         unictype/joiningtype_byname.h.
35261         (uc_joiningtype_class_byname): Use uc_joining_type_lookup.
35262         * lib/unictype/joiningtype_byname.gperf: New file.
35263         * modules/unictype/joiningtype-byname (Files): Add
35264         lib/unictype/joiningtype_byname.gperf.
35265         (Depends-on): Add gperf.
35266         (Makefile.am): Add rule for generating unictype/joiningtype_byname.h.
35267         * tests/unictype/test-joiningtype_byname.c (main): Test the recognition of
35268         long names.
35270         Tests for module 'unictype/joiningtype-longname'.
35271         * modules/unictype/joiningtype-longname-tests: New file.
35272         * tests/unictype/test-joiningtype_longname.c: New file.
35274         New module 'unictype/joiningtype-longname'.
35275         * lib/unictype.in.h (uc_joiningtype_class_long_name): New declaration.
35276         * lib/unictype/joiningtype_longname.c: New file.
35277         * modules/unictype/joiningtype-longname: New file.
35278         * modules/unictype/joiningtype-all (Depends-on): Add
35279         unictype/joiningtype-longname.
35281 2011-03-26  Bruno Haible  <bruno@clisp.org>
35283         unictype/bidiclass-byname: Recognize long names as well.
35284         * lib/unictype.in.h (uc_bidi_class_byname): Allow argument to be a long
35285         name.
35286         * lib/unictype/bidi_byname.c: Include <string.h>,
35287         unictype/bidi_byname.h.
35288         (uc_bidi_class_byname): Use uc_bidi_class_lookup.
35289         * lib/unictype/bidi_byname.gperf: New file.
35290         * modules/unictype/bidiclass-byname (Files): Add
35291         lib/unictype/bidi_byname.gperf.
35292         (Depends-on): Add gperf.
35293         (Makefile.am): Add rule for generating unictype/bidi_byname.h.
35294         * tests/unictype/test-bidi_byname.c (main): Test the recognition of
35295         long names.
35297         Tests for module 'unictype/bidiclass-longname'.
35298         * modules/unictype/bidiclass-longname-tests: New file.
35299         * tests/unictype/test-bidi_longname.c: New file.
35301         New module 'unictype/bidiclass-longname'.
35302         * lib/unictype.in.h (uc_bidi_class_long_name): New declaration.
35303         * lib/unictype/bidi_longname.c: New file.
35304         * modules/unictype/bidiclass-longname: New file.
35305         * modules/unictype/bidiclass-all (Depends-on): Add
35306         unictype/bidiclass-longname.
35308 2011-03-26  Bruno Haible  <bruno@clisp.org>
35310         unictype/bidi*: Rename modules.
35311         * modules/unictype/bidiclass-all: Renamed from
35312         modules/unictype/bidicategory-all.
35313         * modules/unictype/bidiclass-name: Renamed from
35314         modules/unictype/bidiclass-name.
35315         (Description): Update.
35316         * modules/unictype/bidiclass-name-tests: Renamed from
35317         modules/unictype/bidicategory-name-tests.
35318         * modules/unictype/bidiclass-byname: Renamed from
35319         modules/unictype/bidicategory-byname.
35320         (Description): Update.
35321         * modules/unictype/bidiclass-byname-tests: Renamed from
35322         modules/unictype/bidicategory-byname-tests.
35323         * modules/unictype/bidiclass-of: Renamed from
35324         modules/unictype/bidicategory-of.
35325         (Description): Update.
35326         * modules/unictype/bidiclass-of-tests: Renamed from
35327         modules/unictype/bidicategory-of-tests.
35328         * modules/unictype/bidiclass-test: Renamed from
35329         modules/unictype/bidicategory-test.
35330         (Description): Update.
35331         * modules/unictype/bidiclass-test-tests: Renamed from
35332         modules/unictype/bidicategory-test-tests.
35333         * modules/unictype/bidicategory-all: New file, a simple redirection.
35334         * modules/unictype/bidicategory-name: Likewise.
35335         * modules/unictype/bidicategory-byname: Likewise.
35336         * modules/unictype/bidicategory-of: Likewise.
35337         * modules/unictype/bidicategory-test: Likewise.
35338         * modules/unictype/property-bidi-* (Dependencies): Update.
35339         * lib/unictype/bidi_*.c: Update comment.
35341 2011-03-26  Bruno Haible  <bruno@clisp.org>
35343         unictype/bidi*: Rename functions, part 2.
35344         * modules/unictype/bidicategory-name (configure.ac): Update required
35345         libunistring version.
35346         * modules/unictype/bidicategory-byname (configure.ac): Likewise.
35348 2011-03-25  Bruno Haible  <bruno@clisp.org>
35350         New module 'unictype/combining-class-all'.
35351         * modules/unictype/combining-class-all: New file.
35353         Tests for module 'unictype/combining-class-byname'.
35354         * modules/unictype/combining-class-byname-tests: New file.
35355         * tests/unictype/test-combiningclass_byname.c: New file.
35357         New module 'unictype/combining-class-byname'.
35358         * lib/unictype.in.h (uc_combining_class_byname): New declaration.
35359         * lib/unictype/combiningclass_byname.c: New file.
35360         * lib/unictype/combiningclass_byname.gperf: New file.
35361         * modules/unictype/combining-class-byname: New file.
35363         Tests for module 'unictype/combining-class-longname'.
35364         * modules/unictype/combining-class-longname-tests: New file.
35365         * tests/unictype/test-combiningclass_longname.c: New file.
35367         New module 'unictype/combining-class-longname'.
35368         * lib/unictype.in.h (uc_combining_class_long_name): New declaration.
35369         * lib/unictype/combiningclass_longname.c: New file.
35370         * modules/unictype/combining-class-longname: New file.
35372         Tests for module 'unictype/combining-class-name'.
35373         * modules/unictype/combining-class-name-tests: New file.
35374         * tests/unictype/test-combiningclass_name.c: New file.
35376         New module 'unictype/combining-class-name'.
35377         * lib/unictype.in.h (uc_combining_class_name): New declaration.
35378         * lib/unictype/combiningclass_name.c: New file.
35379         * modules/unictype/combining-class-name: New file.
35381 2011-03-25  Bruno Haible  <bruno@clisp.org>
35383         unictype/combining-class: Rename source files.
35384         * lib/gen-uni-tables.c (main): Emit unictype/combiningclass.h instead
35385         of unictype/combining.h.
35386         * lib/unictype/combiningclass.c: Renamed from lib/unictype/combining.c.
35387         Update.
35388         * lib/unictype/combiningclass.h: Renamed from lib/unictype/combining.h.
35389         * modules/unictype/combining-class (Description): Fix.
35390         (Files, Makefile.am): Update.
35391         * tests/unictype/test-combiningclass.c: Renamed from
35392         tests/unictype/test-combining.c.
35393         * modules/unictype/combining-class-tests (Files, Makefile.am): Update.
35395 2011-03-25  Bruno Haible  <bruno@clisp.org>
35397         unictype: Update list of canonical combining classes.
35398         * lib/unictype.in.h (UC_CCC_ATA): New enumeration value.
35400 2011-03-25  Bruno Haible  <bruno@clisp.org>
35402         unictype/category-byname: Recognize long names as well.
35403         * lib/unictype.in.h (uc_general_category_byname): Allow argument to be
35404         a long name.
35405         * lib/unictype/categ_byname.c: Include <stdlib.h>, <string.h>,
35406         unictype/categ_byname.h.
35407         (UC_CATEGORY_INDEX_*): New enumeration values.
35408         (uc_general_category_byname): Use uc_general_category_lookup and
35409         convert from index to value.
35410         * lib/unictype/categ_byname.gperf: New file.
35411         * modules/unictype/category-byname (Files): Add
35412         lib/unictype/categ_byname.gperf.
35413         (Depends-on): Add gperf.
35414         (Makefile.am): Add rule for generating unictype/categ_byname.h.
35415         * tests/unictype/test-categ_byname.c (main): Test the recognition of
35416         long names.
35418         Tests for module 'unictype/category-longname'.
35419         * modules/unictype/category-longname-tests: New file.
35420         * tests/unictype/test-categ_longname.c: New file.
35422         New module 'unictype/category-longname'.
35423         * lib/unictype.in.h (uc_general_category_long_name): New declaration.
35424         * lib/unictype/categ_longname.c: New file.
35425         * modules/unictype/category-longname: New file.
35426         * modules/unictype/category-all (Depends-on): Add it.
35428 2011-03-25  Bruno Haible  <bruno@clisp.org>
35430         Tests for module 'unictype/category-LC'.
35431         * modules/unictype/category-LC-tests: New file.
35432         * tests/unictype/test-categ_LC.c: New file, automatically generated.
35434         New module 'unictype/category-LC'.
35435         * lib/unictype.in.h (UC_CATEGORY_MASK_LC): New enumeration value.
35436         (UC_CATEGORY_LC): New declaration.
35437         (UC_CASED_LETTER): New macro.
35438         * lib/gen-uni-tables.c (is_category_LC): New function.
35439         (output_categories): Also handle category LC.
35440         (UC_CATEGORY_MASK_LC): New enumeration value.
35441         (general_category_byname): Also handle category LC.
35442         * lib/unictype/categ_LC.c: New file.
35443         * lib/unictype/categ_LC.h: New file, automatically generated.
35444         * lib/unictype/categ_name.c (uc_general_category_name): Also handle
35445         category LC.
35446         * lib/unictype/categ_byname.c (uc_general_category_byname): Likewise.
35447         * modules/unictype/category-LC: New file.
35448         * modules/unictype/category-byname (Depends-on): Add
35449         unictype/category-LC.
35450         * modules/unictype/category-all (Depends-on): Likewise.
35452 2011-03-25  Eric Blake  <eblake@redhat.com>
35454         xmalloc: revert yesterday's regression
35455         * lib/xmalloc.c (xrealloc): Once again forward xrealloc(NULL,0) to
35456         realloc's underlying behavior (allowing allocation of zero-size
35457         objects, especially if malloc-gnu is also in use).
35459 2011-03-25  Reuben Thomas  <rrt@sc3d.org>
35461         maint.mk: add missing version to VC-tag
35462         * top/maint.mk: git tag was missing actual tag name; add it.
35464         valgrind: do leak checking, and exit with code 1 on error (not 0)
35465         * m4/valgrind-tests.m4: Add `--error-exitcode=1 --leak-check=full'
35466         to VALGRIND.
35468 2010-11-30  Reuben Thomas  <rrt@sc3d.org>
35470         posix-modules: say what it does.
35471         * posix-modules: Add a line to the --help output saying what it does.
35473 2011-03-24  Paul Eggert  <eggert@cs.ucla.edu>
35475         xmalloc: Do not leak if underlying realloc is C99 compatible.
35476         * lib/xmalloc.c (xrealloc): If N is zero, call 'free' directly.
35477         This avoids a leak on C99-based systems.  See
35478         <http://lists.gnu.org/archive/html/bug-gnulib/2011-03/msg00243.html>.
35480 2011-03-24  Eric Blake  <eblake@redhat.com>
35482         realloc: document portability problem
35483         * doc/posix-functions/realloc.texi (realloc): Mention pitfalls of
35484         passing 0 size to realloc.
35486 2011-03-23  Ben Walton  <bwalton@artsci.utoronto.ca>
35488         doc: update users.txt
35489         * users.txt: Add cvsps, tmpwatch
35491 2011-03-23  Matt Rice  <ratmice@gmail.com>
35493         doc: update users.txt
35494         * users.txt: Add gdb.
35496 2011-03-23  Jim Meyering  <meyering@redhat.com>
35498         doc: update users.txt
35499         Looking through matches up to the following URL (there are still
35500         several more pages), I found several projects that use gnulib:
35501         http://codesearch.google.com/codesearch?start=50&q=gnulib-cache\.m4
35502         * users.txt: Add nagios plugins (nagiosplug), acct, gengetopt,
35503         gmediaserver, gtkreindeer, jugtail, libunistring, mini-httpd, reindeer.
35505 2011-03-22  Bruno Haible  <bruno@clisp.org>
35507         unictype/bidi*: Rename functions.
35508         * lib/unictype.in.h (uc_bidi_class_name, uc_bidi_class_byname,
35509         uc_bidi_class, uc_is_bidi_class): New declarations.
35510         * lib/unictype/bidi_byname.c (uc_bidi_class_byname): Renamed from
35511         uc_bidi_category_byname.
35512         (uc_bidi_category_byname): New function.
35513         * lib/unictype/bidi_name.c (u_bidi_class_name): Renamed from
35514         u_bidi_category_name.
35515         (uc_bidi_class_name): Renamed from uc_bidi_category_name.
35516         (uc_bidi_category_name): New function.
35517         * lib/unictype/bidi_of.c (uc_bidi_class): Renamed from
35518         uc_bidi_category.
35519         (uc_bidi_category): New function.
35520         * lib/unictype/bidi_test.c (uc_is_bidi_class): Renamed from
35521         uc_is_bidi_category. Invoke uc_bidi_class.
35522         (uc_is_bidi_category): New function.
35523         * tests/unictype/test-bidi_byname.c (main): Test uc_bidi_class_byname
35524         instead of uc_bidi_category_byname.
35525         * tests/unictype/test-bidi_name.c (main): Test uc_bidi_class_name
35526         instead of uc_bidi_category_name.
35527         * tests/unictype/test-bidi_of.c (main): Test uc_bidi_class instead of
35528         uc_bidi_category.
35529         * tests/unictype/test-bidi_test.c (main): Test uc_is_bidi_class
35530         instead of uc_is_bidi_category.
35532 2011-03-21  Bruno Haible  <bruno@clisp.org>
35534         New module 'unictype/joininggroup-all'.
35535         * modules/unictype/joininggroup-all: New file.
35537         Tests for module 'unictype/joininggroup-of'.
35538         * modules/unictype/joininggroup-of-tests: New file.
35539         * tests/unictype/test-joininggroup_of.c: New file.
35540         * tests/unictype/test-joininggroup_of.h: New file, automatically
35541         generated by gen-uni-tables.
35543         New module 'unictype/joininggroup-of'.
35544         * modules/unictype/joininggroup-of: New file.
35545         * lib/unictype/joininggroup_of.c: New file.
35546         * lib/unictype/joininggroup_of.h: New file, automatically generated by
35547         gen-uni-tables.
35549         Tests for module 'unictype/joininggroup-byname'.
35550         * modules/unictype/joininggroup-byname-tests: New file.
35551         * tests/unictype/test-joininggroup_byname.c: New file.
35553         New module 'unictype/joininggroup-byname'.
35554         * modules/unictype/joininggroup-byname: New file.
35555         * lib/unictype/joininggroup_byname.c: New file.
35556         * lib/unictype/joininggroup_byname.gperf: New file.
35558         Tests for module 'unictype/joininggroup-name'.
35559         * modules/unictype/joininggroup-name-tests: New file.
35560         * tests/unictype/test-joininggroup_name.c: New file.
35562         New module 'unictype/joininggroup-name'.
35563         * modules/unictype/joininggroup-name: New file.
35564         * lib/unictype/joininggroup_name.c: New file.
35565         * lib/unictype/joininggroup_name.h: New file.
35567         New module 'unictype/joiningtype-all'.
35568         * modules/unictype/joiningtype-all: New file.
35570         Tests for module 'unictype/joiningtype-of'.
35571         * modules/unictype/joiningtype-of-tests: New file.
35572         * tests/unictype/test-joiningtype_of.c: New file.
35573         * tests/unictype/test-joiningtype_of.h: New file, automatically
35574         generated by gen-uni-tables.
35576         New module 'unictype/joiningtype-of'.
35577         * modules/unictype/joiningtype-of: New file.
35578         * lib/unictype/joiningtype_of.c: New file.
35579         * lib/unictype/joiningtype_of.h: New file, automatically generated by
35580         gen-uni-tables.
35582         Tests for module 'unictype/joiningtype-byname'.
35583         * modules/unictype/joiningtype-byname-tests: New file.
35584         * tests/unictype/test-joiningtype_byname.c: New file.
35586         New module 'unictype/joiningtype-byname'.
35587         * modules/unictype/joiningtype-byname: New file.
35588         * lib/unictype/joiningtype_byname.c: New file.
35590         Tests for module 'unictype/joiningtype-name'.
35591         * modules/unictype/joiningtype-name-tests: New file.
35592         * tests/unictype/test-joiningtype_name.c: New file.
35594         New module 'unictype/joiningtype-name'.
35595         * modules/unictype/joiningtype-name: New file.
35596         * lib/unictype/joiningtype_name.c: New file.
35598         unictype: Add support for Arabic shaping properties.
35599         * lib/unictype.in.h (UC_JOINING_TYPE_*): New enumeration values.
35600         (uc_joining_type_name, uc_joining_type_byname, uc_joining_type): New
35601         declarations.
35602         (UC_JOINING_GROUP_*): New enumeration values.
35603         (uc_joining_group_name, uc_joining_group_byname, uc_joining_group): New
35604         declarations.
35605         * lib/gen-uni-tables.c (UC_JOINING_TYPE_*): New enumeration values.
35606         (unicode_joining_type): New variable.
35607         (UC_JOINING_GROUP_*): New enumeration values.
35608         (unicode_joining_group): New variable.
35609         (fill_arabicshaping, joining_type_as_c_identifier,
35610         output_joining_type_test, output_joining_type,
35611         joining_group_as_c_identifier, output_joining_group_test,
35612         output_joining_group): New functions.
35613         (main); Add an argument denoting the ArabicShaping.txt file. Invoke
35614         fill_arabicshaping and output_joining_type_test, output_joining_type,
35615         output_joining_group_test, output_joining_group.
35616         Reported by Simon Josefsson.
35618 2011-03-21  Jim Meyering  <meyering@redhat.com>
35620         strftime: fix a bug in yesterday's change
35621         * lib/strftime.c (add): Accommodate width's initial value of -1.
35622         Otherwise, nstrftime would copy uninitialized data into
35623         the result buffer.
35625 2011-03-21  Jim Meyering  <meyering@redhat.com>
35627         tests: add strftime-tests module
35628         * tests/test-strftime.c: New file.
35629         * modules/strftime-tests: New module.
35631 2011-03-20  Paul Eggert  <eggert@cs.ucla.edu>
35633         strftime: don't assume a byte count fits in 'int'
35634         * lib/strftime.c (add): Don't assume first arg fits in 'int'.  I
35635         found this problem by static analysis, using gcc -Wstrict-overflow
35636         (GCC 4.5.2, x86-64).  This reported an optimization that depended
35637         on an integer overflow having undefined behavior, but it turns out
35638         that the argument is a size, which might not fit in 'int' anyway,
35640 2011-03-20  Paul Eggert  <eggert@cs.ucla.edu>
35642         stdio: don't require ignore_value around fwrite
35644         This patch works around libc bug 11959
35645         <http://sources.redhat.com/bugzilla/show_bug.cgi?id=11959>.
35646         Without this patch, applications must often write
35647         ignore_value (fwrite (...)) even though the ignore_value is
35648         not helpful here.  It's common to write many objects, using
35649         fwrite/printf/etc., and then use ferror to detect output error.
35651         I considered making this patch optional, but decided against it,
35652         because libc is obviously being inconsistent here: there is no
35653         reason libc should insist that user code must inspect fwrite
35654         return's value without also insisting that it inspect printf's,
35655         putchar's, etc.  If user code wants to have a strict style where
35656         all these functions' values are checked (so that ferror need not
35657         be checked), we could add support for that style in a new gnulib
35658         module, but in the meantime it's better to be consistent and to
35659         support common usage.
35661         * lib/stdio.in.h (rpl_fwrite): Define this wrapper around fwrite,
35662         to work around libc bug 11959, if __USE_FORTIFY_LEVEL indicates
35663         that we are compiling in checking mode, and if not C++, and
35664         if not already wrapping fwrite for some other reason.
35665         (fwrite): #define to rpl_fwrite if the latter is defined.
35667 2011-03-20  Bruno Haible  <bruno@clisp.org>
35669         verror: Fix compilation error introduced on 2011-02-13.
35670         * lib/verror.h (verror, verror_at_line): Use _GL_ATTRIBUTE_FORMAT macro
35671         instead of __attribute__.
35672         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
35674 2011-03-20  Paul Eggert  <eggert@cs.ucla.edu>
35675             Bruno Haible  <bruno@clisp.org>
35677         socklen: do not depend on sys_socket
35678         While trying to modify Emacs to use gnulib's socklen module,
35679         I discovered a circular dependency: socklen depends on sys_socket
35680         and vice versa.  Emacs can use socklen, but it does not need
35681         sys_socket because it has its own substitute for sys/socket.h.
35682         * m4/socklen.m4 (gl_SOCKET_HEADERS): New macro, extracted from
35683         gl_TYPE_SOCKLEN_T.
35684         (gl_CHECK_SOCKET_HEADERS): New macro, taken from parts of
35685         gl_PREREQ_SYS_H_SOCKET.
35686         (gl_TYPE_SOCKLEN_T): Require it instead of requiring
35687         gl_PREREQ_SYS_H_SOCKET.
35688         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_SOCKET): Require
35689         gl_CHECK_SOCKET_HEADERS instead of doing its work ourselves.
35690         * modules/socklen (Depends-on): Do not depend on sys_socket.
35691         (Include): Adjust to match the code used in gl_SOCKET_HEADERS.
35693 2011-03-20  Jim Meyering  <meyering@redhat.com>
35695         maint.mk: sort file names *after* new transformation
35696         * top/maint.mk (sc_po_check): Sorting before removing the $(srcdir)/
35697         prefix would have led to an unwarranted failure in GNU parted.
35698         Sort after that transformation.
35700 2011-03-19  Jim Meyering  <meyering@redhat.com>
35702         maint.mk: fix po-file syntax-check rule
35703         * top/maint.mk (sc_po_check): Fix fatal typo in yesterday's change.
35704         Patch by Bruno Haible.
35706 2011-03-19  Bruno Haible  <bruno@clisp.org>
35708         socklen: Update comment.
35709         * m4/socklen.m4: Update comment about platforms.
35711 2011-03-19  Paul Eggert  <eggert@cs.ucla.edu>
35712             Bruno Haible  <bruno@clisp.org>
35714         inet_ntop, inet_pton: Simplify.
35715         * modules/inet_ntop (Depends-on): Remove socklen, since sys_socket is
35716         documented to provide socklen_t and we already depend on sys_socket.
35717         * modules/inet_pton (Depends-on): Likewise.
35718         * lib/arpa_inet.in.h: Adjust comment.
35720 2011-03-19  Paul Eggert  <eggert@cs.ucla.edu>
35721             Bruno Haible  <bruno@clisp.org>
35723         netdb: Simplify.
35724         * modules/netdb (Depends-on): Remove socklen, since sys_socket is
35725         documented to provide socklen_t and we already depend on sys_socket.
35726         * lib/netdb.in.h: Adjust comment.
35728 2011-03-19  Bruno Haible  <bruno@clisp.org>
35730         sys_socket, netdb: Document problem with socklen_t.
35731         * doc/posix-headers/sys_socket.texi: Mention lack of socklen_t on some
35732         platforms.
35733         * doc/posix-headers/netdb.texi: Likewise.
35735 2011-03-18  Eric Blake  <eblake@redhat.com>
35737         maint.mk: let po check work in VPATH build
35738         * top/maint.mk (po_file): Allow cfg.mk override.
35739         (sc_po_check): Allow VPATH use.
35740         Reported by Jiri Denemark.
35742 2011-03-16  Jim Meyering  <meyering@redhat.com>
35744         maint.mk: allow fine-grained syntax-check exclusion via Make variables
35745         Before, you would have had to create one .x-sc_ file per rule in order
35746         to exempt offending files.  Now, you may instead use a Make variable --
35747         usually defined in cfg.mk -- whose name identifies the affected rule.
35748         * top/maint.mk (_sc_excl): Define.
35749         (VC_LIST_EXCEPT): Use it to exclude names on a per-rule basis.
35750         (_sc_search_regexp): When not using VC_LIST_EXCEPT, exclude here, too.
35752 2011-03-13  Bruno Haible  <bruno@clisp.org>
35754         ignore-value tests: Avoid warnings.
35755         * tests/test-ignore-value.c (_GL_ATTRIBUTE_RETURN_CHECK): Define to
35756         empty for gcc < 3.4.
35758 2011-03-13  Bruno Haible  <bruno@clisp.org>
35760         passfd: Fix link error on Solaris.
35761         * modules/passfd (Description): Correct.
35762         (Depends-on): Add socketlib.
35763         (Link): New section.
35764         * modules/passfd-tests (Makefile.am): Link test-passfd with LIBSOCKET.
35766 2011-03-13  Bruno Haible  <bruno@clisp.org>
35768         passfd: Fix link error on AIX 5.2.
35769         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Define _LINUX_SOURCE_COMPAT.
35771 2011-03-13  Bruno Haible  <bruno@clisp.org>
35773         passfd: Work around bug with CMSG_FIRSTHDR on FreeBSD 6.4.
35774         * lib/sys_socket.in.h: Include <stddef.h>.
35775         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Include <stddef.h> before using
35776         CMSG_FIRSTHDR. Remove unused variable.
35778 2011-03-13  Bruno Haible  <bruno@clisp.org>
35780         passfd: Fix compilation error on OpenBSD.
35781         * lib/passfd.c: Include <sys/uio.h>.
35783 2011-03-13  Bruno Haible  <bruno@clisp.org>
35785         passfd test: Fix warnings.
35786         * tests/test-passfd.c: Include <sys/wait.h>.
35787         (main): Fix typo.
35789 2011-03-13  Bruno Haible  <bruno@clisp.org>
35791         passfd module, part 4, tweaks.
35792         * tests/test-passfd.c: Reorder includes.
35793         (main): Fix perror and printf calls.
35795 2011-03-07  Bastien Roucariès  <roucaries.bastien@gmail.com>
35797         passfd module, part 4.
35798         * modules/passfd-tests: New file.
35799         * tests/test-passfd.c: New file.
35801 2011-03-13  Jim Meyering  <meyering@redhat.com>
35803         Makefile: rely on GNU make; derive syntax-check rule names
35804         Rather than requiring that each sc_ rule be listed as a dependent
35805         of "check", use features of GNU make to derive the list.
35806         * Makefile (syntax-check-rules): Define.
35807         (check): Depend on the new variable, not the hard-coded list.
35809 2011-03-13  Bastien Roucariès  <roucaries.bastien@gmail.com>
35810             Bruno Haible  <bruno@clisp.org>
35812         passfd module, part 3.
35813         * lib/passfd.h (recvfd): Add a flags argument.
35814         * lib/passfd.c: Include <fcntl.h>, cloexec.h.
35815         (recvfd): Add a flags argument.
35816         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Test whether MSG_CMSG_CLOEXEC
35817         exists.
35818         * modules/passfd (Depends-on): Add cloexec.
35819         Suggested by Eric Blake.
35821 2011-03-13  Bruno Haible  <bruno@clisp.org>
35823         passfd module, part 2, tweaks.
35824         * modules/passfd (Files): Reorder.
35825         (Depends-on): Remove errno.
35826         (Include): Remove <sys/socket.h>, <sys/un.h>.
35827         * lib/passfd.h: Use a GPLv3+ header. Make C++ safe.
35828         * lib/passfd.c: Untabify. Use a GPLv3+ header. Really include the
35829         specification header. Include <sys/socket.h> always. Don't include
35830         <winsock2.h>. Use "#if HAVE_..." instead of "#ifdef HAVE_...".
35831         (sendfd): Clarify that it sets errno when it fails.
35832         (recvfd): Fix specification.
35834 2011-03-07  Bastien Roucariès  <roucaries.bastien@gmail.com>
35836         passfd module, part 2.
35837         * modules/passfd: New file.
35838         * lib/passfd.h: New file.
35839         * lib/passfd.c: New file.
35841 2011-03-12  Bruno Haible  <bruno@clisp.org>
35843         wcswidth, mbswidth: Avoid integer overflow.
35844         * lib/wcswidth.c: Include <limits.h>.
35845         * lib/wcswidth-impl.h (wcswidth): Avoid 'int' overflow.
35846         * lib/mbswidth.c: Include <limits.h>.
35847         (mbsnwidth): Avoid 'int' overflow.
35848         Reported by Jim Meyering.
35850 2011-03-12  Bruno Haible  <bruno@clisp.org>
35852         futimens, utimensat: Avoid endless recursion on Solaris 10.
35853         * lib/sys_stat.in.h (futimens, utimensat): Define with rpl_ prefix on
35854         Solaris.
35855         Reported by Ben Walton <bwalton@artsci.utoronto.ca> via Eric Blake
35856         in <http://debbugs.gnu.org/cgi/bugreport.cgi?bug=8230>.
35858 2011-03-11  Jim Meyering  <meyering@redhat.com>
35860         maint.mk: relax a regexp to accommodate other formatting styles
35861         * top/maint.mk (sc_unmarked_diagnostics): Allow 0 or 1 space
35862         between "ngettext" and the following "(".
35864 2011-03-11  Pádraig Brady  <P@draigBrady.com>
35866         maint.mk: suppress a false positive warning
35867         * top/maint.mk ((sc_unmarked_diagnostics): Don't warn when
35868         diagnostics are marked with ngettext.
35870 2011-03-10  Eric Blake  <eblake@redhat.com>
35872         wchar: add explicit dependencies, for Tru64
35873         * modules/mbmemcasecoll (Depends-on): Add wchar.
35874         * modules/mbtowc (Depends-on): Likewise.
35875         * modules/vasnprintf (Depends-on): Likewise.
35876         * modules/unistdio/u-printf-args (Depends-on): Likewise.
35877         * modules/wctomb (Depends-on): Likewise.
35878         Reported by Peter O'Gorman.
35880 2011-03-08  Bruno Haible  <bruno@clisp.org>
35882         passfd module, part 1, tweaks.
35883         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Update AC_REQUIRE invocation.
35884         Improve indentation. Improve AC_MSG_CHECKING messages.
35885         * m4/sockpfaf.m4 (gl_SOCKET_FAMILY_UNIX): New macro, extracted from
35886         gl_SOCKET_FAMILIES.
35888 2011-03-07  Bastien Roucariès  <roucaries.bastien@gmail.com>
35890         passfd module, part 1.
35891         * m4/afunix.m4: New file.
35892         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Also test for UNIX domain
35893         sockets.
35895 2011-03-08  Bruno Haible  <bruno@clisp.org>
35897         regex-quote: New API.
35898         * lib/regex-quote.h: Include <stdbool.h>.
35899         (struct regex_quote_spec): New type.
35900         (regex_quote_spec_posix, regex_quote_spec_gnu, regex_quote_spec_pcre):
35901         New declarations.
35902         (regex_quote_length, regex_quote_copy, regex_quote): Take a
35903         'const struct regex_quote_spec *' argument.
35904         * lib/regex-quote.c (RE_*, PCRE_*): New macros.
35905         (pcre_special): New constant.
35906         (regex_quote_spec_posix, regex_quote_spec_gnu, regex_quote_spec_pcre):
35907         New functions.
35908         (regex_quote_length, regex_quote_copy, regex_quote): Take a
35909         'const struct regex_quote_spec *' argument.
35910         * modules/regex-quote (Depends-on): Add stdbool.
35911         * tests/test-regex-quote.c (check): Update for new API. Add test for
35912         anchored results.
35913         * NEWS: Mention the API change.
35914         Reported by Reuben Thomas and Eric Blake.
35916 2011-03-06  Bruno Haible  <bruno@clisp.org>
35918         regex-quote: Fix creation of POSIX extended regular expressions.
35919         * lib/regex-quote.c (ere_special): Add grouping and alternation
35920         operators.
35922 2011-03-05  Bruno Haible  <bruno@clisp.org>
35924         doc: Improve doc regarding autopoint vs. gnulib.
35925         * doc/gnulib-tool.texi (gettextize and autopoint): Recommend to
35926         disable autopoint while running autoreconf.
35927         Suggested by Ralf Wildenhues.
35929 2011-03-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
35931         Update AC_OPENMP macro for Lahey compiler on GNU/Linux.
35932         * m4/openmp.m4 (AC_OPENMP): Sync from Autoconf.
35934 2011-03-03  Bruce Korb  <bkorb@gnu.org>
35936         parse-duration: remove xalloc.h dependency
35937         * lib/parse-duration.c (parse_period): handle NULL return from
35938         strdup instead of calling xstrdup().
35939         * modules/parse-duration: remove "xalloc" dependency
35941 2011-03-03  Matthew Booth  <mbooth@redhat.com>
35943         bootstrap: honor m4_base when running aclocal
35944         * build-aux/bootstrap: Fix hard-coded use of m4 directory name.
35946 2011-03-02  Jim Meyering  <meyering@redhat.com>
35948         getopt-gnu: relax license from LGPLv3+ to LGPLv2+
35949         * modules/getopt-gnu (License): Relax to LGPLv2+, for augeas,
35950         on request from Matt Booth.
35952 2011-03-01  Eric Blake  <eblake@redhat.com>
35954         test-link: work on Hurd
35955         * tests/test-link.h (test_link): Hurd rejects linking directories
35956         with EISDIR instead of the POSIX-mandated EPERM.
35958 2011-02-28  Paul Eggert  <eggert@cs.ucla.edu>
35960         stdio: simplify by moving files to printf-posix, sigpipe
35961         * m4/stdio_h.m4 (gl_STDIO_H): Do not require gl_ASM_SYMBOL_PREFIX,
35962         since this symbol is needed only if printf is replaced.
35963         * m4/printf-posix-rpl.m4 (gl_REPLACE_PRINTF):
35964         Require gl_ASM_SYMBOL_PREFIX.
35965         * modules/printf-posix (Files): Add m4/asm-underscore.m4.
35966         * modules/sigpipe (Files): Likewise.  Also, add m4/stdio-write.c.
35967         (Depends-on): Add 'raise'.
35968         (configure.ac): Require gl_ASM_SYMBOL_PREFIX.
35969         * modules/stdio (Files): Remove lib/stdio-write.c,
35970         m4/asm-underscore.m4.
35971         (Depends-on): Remove 'raise'.
35973         stdio: simplify by moving gl_STDIN_LARGE_OFFSET to fseeko, ftello
35974         * m4/fseeko.m4 (gl_STDIN_LARGE_OFFSET): Moved here, from ...
35975         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET): ... here, because
35976         * modules/ftello (Files): Add m4/fseeko.m4, for gl_STDIN_LARGE_OFFSET.
35978 2011-02-28  Bruno Haible  <bruno@clisp.org>
35980         localcharset: Assume ANSI C behaviour of free().
35981         * lib/localcharset.c (get_charset_aliases): Remove NULL test before
35982         calling free().
35983         Suggested by Simon Josefsson <simon@josefsson.org>.
35985 2011-02-28  Corinna Vinschen  <vinschen@redhat.com>  (tiny change)
35986             Charles Wilson  <cygwin@cwilson.fastmail.fm>  (tiny change)
35987             Bruno Haible  <bruno@clisp.org>  (tiny change)
35989         On Cygwin, use /proc file system instead of win32 API.
35990         * lib/relocatable.c: On Cygwin, use file names from /proc, rather than
35991         Win32 file names.
35992         (DllMain): Simplify by removing Cygwin specific code.
35993         (find_shared_library_fullname): Use Linux specific implementation also
35994         for Cygwin.
35995         (get_shared_library_fullname): Update accordingly.
35996         * lib/progreloc.c: On Cygwin, use file names from /proc, rather than
35997         Win32 file names.
35998         (find_executable): On Cygwin, use /proc, like on Linux. Remove previous
35999         Cygwin specific code.
36001 2011-02-28  Christian Rössel  <christian.roessel@gmx.de>  (tiny change)
36002             Markus Geimer  <m.geimer@fz-juelich.de>  (tiny change)
36004         Fix OpenMP flag detection for various Fortran compilers.
36005         * m4/openmp.m4 (_AC_LANG_OPENMP(Fortran 77)): Use '!$'
36006         OpenMP-conditional compilation construct, to force compile
36007         failure with missing OpenMP flag.
36008         (AC_OPENMP): Add flags for Cray CCE and NEC SX compilers.
36010 2011-02-25  Eric Blake  <eblake@redhat.com>
36012         strstr: expand test coverage
36013         * tests/test-strstr.c (main): Add much shorter trigger.  Fix C89
36014         compilation.
36015         * tests/test-memmem.c (main): Duplicate tests.
36016         * tests/test-strcasestr.c (main): Likewise.
36017         * tests/test-c-strcasestr.c (main): Likewise.
36019 2011-02-25  Jim Meyering  <meyering@redhat.com>
36021         maint.mk: detect missing-NL-at-EOF, too
36022         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Adjust so that
36023         it also detects when a file lacks a newline at EOF.
36024         (require_exactly_one_NL_at_EOF_): Renamed from
36025         detect_empty_lines_at_EOF_.  I opted not to rename the rule,
36026         since people may well have .x-sc_... file names tied to the
36027         existing name.  Suggested by Eric Blake.
36029 2011-02-25  Paul Eggert  <eggert@cs.ucla.edu>
36031         dirname: move m4/dos.m4 functionality into lib/dosname.h
36033         m4/dos.m4 needs to go.  It laboriously invokes the C compiler, and
36034         extracts symbols from it, puts them into config.h; but it's much
36035         easier to use the symbols directly.  filename.h already does this,
36036         but it disagrees with dos.m4 in some respects.  This patch
36037         introduces a different include file dosname.h that packages up
36038         dos.m4, and then later we can work on merging filename.h and
36039         dosname.h.  Applications that need only the easy-to-configure
36040         symbols should consider including dosname.h rather than dirname.h.
36041         * NEWS: Mention incompatible changes.
36042         * m4/dos.m4: Remove.
36043         * lib/dosname.h, modules/dosname: New files.
36044         * lib/dirname.h (ISSLASH, FILE_SYSTEM_PREFIX_LEN):
36045         (FILE_SYSTEM_DRIVE_PREFIX_CAN_BE_RELATIVE):
36046         (IS_ABSOLUTE_FILE_NAME, IS_RELATIVE_FILE_NAME): Move to lib/dosname.h.
36047         * lib/at-func.c, lib/at-func2.c, lib/openat.c, lib/savewd.c:
36048         Include dosname.h, not dirname.h.
36049         * lib/rmdir.c, lib/stat.c, lib/unlink.c, lib/unlinkat.c:
36050         Include dosname.h, for definitions of symbols like ISSLASH
36051         that used to be in config.h.
36052         * m4/dirname.m4 (gl_DIRNAME_LGPL): Do not require gl_AC_DOS.
36053         * m4/rmdir.m4 (gl_FUNC_RMDIR): Likewise.
36054         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
36055         * m4/unlink.m4 (gl_FUNC_UNLINK): Likewise.
36056         * modules/dirname-lgpl (Files): Omit m4/dos.m4.
36057         * modules/rmdir (Files): Likewise.
36058         * modules/stat (Files): Likewise.
36059         * modules/unlink (Files): Likewise.
36060         * modules/dirname-lgpl (Depends-on): Add dosname.
36061         * modules/lstat (Depends-on): Likewise.
36062         * modules/openat (Depends-on): Likewise.
36063         * modules/rmdir (Depends-on): Likewise.
36064         * modules/savewd (Depends-on): Likewise.
36065         * modules/stat (Depends-on): Likewise.
36066         * modules/unlink (Depends-on): Likewise.
36067         * modules/openat (Depends-on): Remove dirname-lgpl.
36068         * modules/savewd (Depends-on): Likewise.
36069         * tests/test-dirname.c: Do not use removed symbols like
36070         FILE_SYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR.  Instead, use
36071         the remaining symbols, e.g., ISSLASH ('\\').
36073 2011-02-25  Eric Blake  <eblake@redhat.com>
36075         strstr: revert patches that introduced bug and pessimization
36076         * lib/str-two-way.h: Add another reference.
36077         (two_way_short_needle, two_way_long_needle): Revert changes from
36078         2011-02-24; they pessimize search speed.
36079         (critical_factorization): Partially revert changes from
36080         2010-06-22; they violate the requirement that the left half of the
36081         needle be smaller than the period of the needle.
36083 2011-02-24  Paul Eggert  <eggert@cs.ucla.edu>
36085         filenamecat: remove unnecessary dependency on dirname-lgpl
36086         * modules/filenamecat (Depends-on): Remove dirname-lgpl, as there
36087         is no direct dependency, just an indirect one via filenamecat-lgpl.
36089         remove: remove unnecessary use of m4/dos.m4
36090         * m4/remove.m4 (gl_FUNC_REMOVE): Don't require gl_AC_DOS; not needed.
36091         * modules/remove (FILES): Remove m4/dos.m4.
36093         * lib/openat-proc.c: Don't include dirname.h; not needed.
36095         backupfile: remove unnecessary use of m4/dos.m4
36096         * m4/backupfile.m4 (gl_BACKUPFILE): Don't require gl_AC_DOS; none
36097         of its symbols are used by the backupfile code.  backupfile.c does
36098         use a symbol HAVE_DOS_FILE_NAMES, but that symbol is meant only
36099         for the rare case of programs that want all their backup file
36100         names to live within 8+3 limits, and dos.m4 doesn't address that.
36101         * modules/backupfile (Files): Remove m4/dos.m4.
36103 2011-02-24  Jim Meyering  <meyering@redhat.com>
36105         strstr: fix a bug whereby strstr would mistakenly return NULL
36106         * lib/str-two-way.h (two_way_short_needle): Correct off-by-one error
36107         in period calculation.
36108         (two_way_long_needle): Likewise.
36109         The original problem was reported by Mike Stump in
36110         http://thread.gmane.org/gmane.comp.sysutils.autoconf.bugs/7834
36111         Ralf Wildenhues provided the short needle and haystack.
36112         * tests/test-strstr.c: Add Ralf's test case to trigger the bug.
36113         Add a more involved test to trigger the bug in two_way_long_needle.
36115 2011-02-24  Stefano Lattarini  <stefano.lattarini@gmail.com>  (tiny change)
36117         gnulib-tool: remove use of bold display in help screen
36118         * gnulib-tool (func_usage): Do not use bold display anymore in the
36119         help screen.  That was just meant to be a temporary emphasis for a
36120         backward-incompatible change.
36122 2011-02-23  Bruno Haible  <bruno@clisp.org>
36124         Fix misindentation of preprocessor directives.
36125         * lib/argp-namefrob.h: Reindent preprocessor directives.
36126         * lib/getopt_int.h (struct _getopt_data): Likewise.
36127         * lib/progreloc.c (maybe_executable, find_executable): Likewise.
36128         * lib/vasnprintf.c (decode_long_double): Likewise.
36129         * tests/test-argmatch.c: Insert blank lines, for clarity.
36130         * tests/test-exclude.c: Likewise.
36132 2011-02-22  Bruno Haible  <bruno@clisp.org>
36134         ioctl: Fix for MacOS X in 64-bit mode.
36135         * lib/ioctl.c (rpl_ioctl): Zero-extend, not sign-extend, the request
36136         value.
36137         Suggested by Eric Blake.
36138         Reported by Markus Gothe <nietzsche@lysator.liu.se>.
36140 2011-02-22  Jim Meyering  <meyering@redhat.com>
36142         maint: sc_cpp_indent_check: remove the "only in lib/" restriction
36143         * Makefile (sc_cpp_indent_check): Don't limit the check to files
36144         in lib/.
36146 2011-02-22  Eric Blake  <eblake@redhat.com>
36148         maint: avoid any CDPATH issue
36149         * Makefile (sc_cpp_indent_check): Anchor cd argument.
36151         maint: adjust cpp indentation for my modules, as well
36152         * Makefile (sc_cpp_indent_check): Add my name.
36153         * lib/fbufmode.c: Filter through cppi.
36154         * lib/fpurge.c: Likewise.
36155         * lib/freadable.c: Likewise.
36156         * lib/freading.c: Likewise.
36157         * lib/fwritable.c: Likewise.
36158         * lib/fwriting.c: Likewise.
36159         * lib/sigaction.c: Likewise.
36161 2011-02-22  Jim Meyering  <meyering@redhat.com>
36163         maint: adjust cpp indentation to reflect nesting depth
36164         I.e., in a block of code that begins with an unnested "#if",
36165         put one space between the "#" in column 1 and following token.
36166         For example,
36167         -#include <sys/vfs.h>
36168         +# include <sys/vfs.h>
36169         Do this only in .c files that are part of a module I maintain.
36170         * lib/linkat.c: Filter through cppi.
36171         * lib/nanosleep.c: Likewise.
36172         * lib/openat.c: Likewise.
36173         * lib/openat-die.c: Likewise.
36174         * lib/dup3.c: Likewise.
36175         * lib/fchownat.c: Likewise.
36176         * lib/flock.c: Likewise.
36177         * lib/fsync.c: Likewise.
36178         * lib/fts.c: Likewise.
36179         * lib/getpass.c: Likewise.
36180         * lib/gettimeofday.c: Likewise.
36181         * lib/userspec.c: Likewise.
36182         * Makefile (sc_cpp_indent_check): New rule, to check this.
36184 2011-02-22  Bruno Haible  <bruno@clisp.org>
36186         New module 'wctomb'.
36187         * lib/stdlib.in.h (wctomb): New declaration.
36188         * lib/wctomb.c: New file.
36189         * lib/wctomb-impl.h: New file.
36190         * m4/wctomb.m4: New file.
36191         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_WCTOMB,
36192         REPLACE_WCTOMB.
36193         * modules/stdlib (Makefile.am): Substitute GNULIB_WCTOMB,
36194         REPLACE_WCTOMB.
36195         * modules/wctomb: New file.
36196         * tests/test-stdlib-c++.cc: Test signature of wctomb.
36197         * doc/posix-functions/wctomb.texi: Mention the new module.
36198         * modules/wctob (Depends-on): Add wctomb.
36200 2011-02-22  Bruno Haible  <bruno@clisp.org>
36202         New module 'mbtowc'.
36203         * lib/stdlib.in.h (mbtowc): New declaration.
36204         * lib/mbtowc.c: New file.
36205         * lib/mbtowc-impl.h: New file, from libutf8 with modifications.
36206         * m4/mbtowc.m4: New file.
36207         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_MBTOWC,
36208         REPLACE_MBTOWC.
36209         * modules/stdlib (Makefile.am): Substitute GNULIB_MBTOWC,
36210         REPLACE_MBTOWC.
36211         * modules/mbtowc: New file.
36212         * tests/test-stdlib-c++.cc: Test signature of mbtowc.
36213         * doc/posix-functions/mbtowc.texi: Mention the new module.
36214         * modules/btowc (Depends-on): Add mbtowc.
36216 2011-02-22  Bruno Haible  <bruno@clisp.org>
36218         wcrtomb: Add more tests for native Windows platforms.
36219         * tests/test-wcrtomb-w32-1.sh: New file.
36220         * tests/test-wcrtomb-w32-2.sh: New file.
36221         * tests/test-wcrtomb-w32-3.sh: New file.
36222         * tests/test-wcrtomb-w32-4.sh: New file.
36223         * tests/test-wcrtomb-w32-5.sh: New file.
36224         * tests/test-wcrtomb-w32.c: New file.
36225         * modules/wcrtomb-tests (Files): Add them.
36226         (Makefile.am): Arrange to run these tests.
36227         * tests/test-wcrtomb-w32-6.sh: New file, currently unused.
36228         * tests/test-wcrtomb-w32-7.sh: New file, currently unused.
36230 2011-02-20  Bruno Haible  <bruno@clisp.org>
36232         wcrtomb: Enhance test.
36233         * tests/test-wcrtomb.c (main): Add test against bug with NULL argument.
36235 2011-02-20  Bruno Haible  <bruno@clisp.org>
36237         mbrtowc: Tiny optimization.
36238         * lib/mbrtowc.c (mbrtowc): Delay pstate assignment until it is needed.
36240 2011-02-20  Jim Meyering  <meyering@redhat.com>
36242         test-exclude.c: remove unmatched #endif
36243         * tests/test-exclude.c: Remove stray #endif, left over from
36244         the change of a week ago.
36246 2011-02-19  Jim Meyering  <meyering@redhat.com>
36248         git-version-gen: skip "-dirty" check when appropriate
36249         * build-aux/git-version-gen: Don't run any git commands when the
36250         version string comes from .tarball-version.  Prior to this, we
36251         would run git update-index --refresh even from a just-unpacked
36252         tarball directory, and that could affect a .git/ directory in a
36253         parent of the build directory.  Reported by Mike Frysinger.
36255 2011-02-19  Bruno Haible  <bruno@clisp.org>
36257         unictype/property-byname: Reduce the size of the 'data' segment.
36258         * lib/unictype/pr_byname.gperf: Add gperf option '%pic'.
36260 2011-02-19  Bruno Haible  <bruno@clisp.org>
36262         unictype/scripts: Reduce the size of the 'data' segment.
36263         * lib/gen-uni-tables.c (output_scripts_byname): Emit gperf option
36264         '%pic'.
36265         * lib/unictype/scripts_byname.gperf: Regenerated.
36267 2011-02-19  Bruno Haible  <bruno@clisp.org>
36269         stdint: Update documentation.
36270         * doc/posix-headers/stdint.texi: Mention WCHAR_MIN, WCHAR_MAX problem.
36272 2011-02-18  Paul Eggert  <eggert@cs.ucla.edu>
36274         stdint: omit redundant check for wchar.h
36275         * m4/stdint.m4 (gl_STDINT_H): The earlier part of this macro now
36276         always tests whether wchar.h exists, so remove the now-redundant test.
36278 2011-02-18  Bruno Haible  <bruno@clisp.org>
36280         stdint: Cut dependency to module 'wchar'.
36281         * lib/stdint.in.h: Include wchar.h only when HAVE_WCHAR_H is 1. Also
36282         include the necessary prerequisites.
36283         * m4/stdint.m4 (gl_STDINT_H): Test whether wchar.h exists.
36284         * modules/stdint (Depends-on): Remove wchar.
36285         (Makefile.am): Substitute HAVE_WCHAR_H.
36286         This reverts part of a 2007-01-06 commit. Reported by Paul Eggert.
36288 2011-02-18  Eric Blake  <eblake@redhat.com>
36290         longlong: skip, rather than fail, on cross-compilation
36291         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Avoid aborting configure
36292         when cross-compiling; regression from 2011-02-16.
36294 2011-02-17  Paul Eggert  <eggert@cs.ucla.edu>
36296         * NEWS: Mention 2011-02-08 change to stdlib.
36298 2011-02-17  Bruno Haible  <bruno@clisp.org>
36300         getloadavg: Add comments about platforms.
36301         * m4/getloadavg.m4: Add comment.
36302         * lib/getloadavg.c: Likewise.
36304 2011-02-17  Bruno Haible  <bruno@clisp.org>
36306         getloadavg: Fix link error on Solaris 2.6.
36307         * modules/getloadavg (Link): New section.
36308         * modules/getloadavg-tests (Makefile.am): Use GETLOADAVG_LIBS for
36309         linking test-getloadavg.
36310         * doc/glibc-functions/getloadavg.texi: Mention that Solaris 2.6 lacks
36311         getloadavg.
36313 2011-02-17  Paul Eggert  <eggert@cs.ucla.edu>
36315         * lib/getloadavg.c (getloadavg) [sgi]: Make ldav_off of type ptrdiff_t.
36316         It was 'int', but this doesn't match the IRIX 6.5 manual.
36317         Suggested by Bruno Haible in
36318         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00207.html>.
36320 2011-02-17  Bruno Haible  <bruno@clisp.org>
36322         havelib: Fix comments.
36323         * m4/lib-link.m4 (AC_LIB_RPATH): Update comments after 2007-01-02
36324         change.
36326 2011-02-17  Bruno Haible  <bruno@clisp.org>
36328         havelib: Update config.rpath.
36329         * build-aux/config.rpath: Update to match libtool.m4 from libtool-2.4.
36331 2011-02-17  Bruno Haible  <bruno@clisp.org>
36333         getloadavg test: Add some plausibility checks.
36334         * tests/test-getloadavg.c (check_avg): Print a warning when the value
36335         is improbable.
36337 2011-02-16  Eric Blake  <eblake@redhat.com>
36339         maintainer-makefile: make syntax-check a no-op from tarballs
36340         * top/maint.mk (no-vc-detected): New rule.
36341         (local-checks-available): Use it to avoid hanging if someone tries
36342         'make syntax-check' from a tarball.  Also append to any non-syntax
36343         checks already defined in cfg.mk.
36345 2011-02-16  Paul Eggert  <eggert@cs.ucla.edu>
36347         longlong: tune, particularly for common case of c99
36349         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Don't bother compiling
36350         or running anything if c99, or if unsigned long long int does not
36351         work.  In either case, we know the answer without further tests.
36352         Do not compile _AC_TYPE_LONG_LONG_SNIPPET twice.  Instead, compile
36353         it at most once, and use its results for both long long int and
36354         unsigned long long int.  This is more likely to be efficient in
36355         the common case where the program wants to check for both long
36356         long int and unsigned long long int.
36357         (AC_TYPE_UNSIGNED_LONG_LONG_INT): Don't bother compiling if c99,
36358         since the answer is already known.
36360 2011-02-15  Paul Eggert  <eggert@cs.ucla.edu>
36362         getloadavg: set errno
36363         * lib/getloadavg.c: Set errno when returning -1.  If no other
36364         error number looks appropriate, set it to ENOSYS if the getloadavg
36365         looks like it can't possibly ever work, ENOTSUP otherwise.
36366         Suggested by Bruno Haible in
36367         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00187.html>.
36369         getloadavg: trim unused parts and speed up 'configure'
36370         * NEWS: Document this.
36371         * lib/getloadavg.c: Ignore HAVE_GETLOADAVG; this file is now
36372         always compiled if getloadavg is absent.
36373         Move test code to ...
36374         * tests/test-getloadavg.c: New file, containing previous
36375         contents of test from lib/getloadavg.c.  It also contains
36376         suggestions by Bruno Haible in
36377         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00186.html>.
36378         * modules/getloadavg-tests: New file.
36379         * m4/getloadavg.m4 (gl_GETLOADAVG): Do not check for getloadavg twice.
36380         Do tests in the same order as they're needed for getloadavg.c.
36381         Omit setgid-related tests that generate symbols KMEM_GROUP,
36382         NEET_SETGID, GETLOADAVG_PRIVILEGED; nobody seems to use those any more.
36383         Do only the tests that are needed to see whether the system has
36384         getloadavg, moving the other tests into ...
36385         (gl_PREREQ_GETLOADAVG): ... here.  Do not define obsolete symbol
36386         NLIST_NAME_UNION; nobody should be using it.  Do not define
36387         symbols C_GETLOADAVG and HAVE_GETLOADAVG; they're no longer
36388         relevant, as the user of this module shouldn't care how getloadavg
36389         is implemented.
36391         getloadavg: omit unused var
36392         * lib/getloadavg.c (getloadavg): Omit unused local variable.
36394 2011-02-15  Jim Meyering  <meyering@redhat.com>
36396         doc: update users.txt
36397         * users.txt: Update iwhd's URL.
36399 2011-02-13  Bruno Haible  <bruno@clisp.org>
36401         Consistent macro naming for macros that use GCC __attribute__.
36402         * lib/di-set.h (_GL_ATTRIBUTE_NONNULL): Renamed from
36403         _ATTRIBUTE_NONNULL_.
36404         * lib/ino-map.h (_GL_ATTRIBUTE_NONNULL): Likewise.
36405         * lib/hash.h (_GL_ATTRIBUTE_WUR): Renamed from ATTRIBUTE_WUR.
36406         * lib/ignore-value.h (_GL_ATTRIBUTE_DEPRECATED): Renamed from
36407         ATTRIBUTE_DEPRECATED.
36408         * lib/openat.h (_GL_ATTRIBUTE_NORETURN): Renamed from
36409         ATTRIBUTE_NORETURN.
36410         * lib/sigpipe-die.h (_GL_ATTRIBUTE_NORETURN): Likewise.
36411         * lib/xmemdup0.h (_GL_ATTRIBUTE_NORETURN): Likewise.
36412         * lib/xstrtol.h (_GL_ATTRIBUTE_NORETURN): Likewise.
36413         * lib/xalloc.h (_GL_ATTRIBUTE_NORETURN): Likewise.
36414         (_GL_ATTRIBUTE_MALLOC): Renamed from ATTRIBUTE_MALLOC.
36415         (_GL_ATTRIBUTE_ALLOC_SIZE): Renamed from ATTRIBUTE_ALLOC_SIZE.
36416         * lib/version-etc.h (_GL_ATTRIBUTE_SENTINEL): Renamed from
36417         ATTRIBUTE_SENTINEL.
36418         * lib/safe-alloc.h (_GL_ATTRIBUTE_RETURN_CHECK): Renamed from
36419         ATTRIBUTE_RETURN_CHECK.
36420         * tests/test-ignore-value.c (_GL_ATTRIBUTE_RETURN_CHECK): Likewise.
36421         * tests/test-argmatch.c (_GL_ATTRIBUTE_NORETURN): Renamed from
36422         ATTRIBUTE_NORETURN.
36423         * tests/test-exclude.c (_GL_ATTRIBUTE_NORETURN): Likewise.
36424         Reported by Paul Eggert.
36426 2011-02-13  Bruno Haible  <bruno@clisp.org>
36428         Don't interfere with a program's definition of __attribute__.
36429         * lib/argp.h (__attribute__): Remove definition.
36430         (_GL_ATTRIBUTE_FORMAT): New macro.
36431         (argp_error, __argp_error, argp_failure, __argp_failure): Use it.
36432         * lib/argp-fmtstream.h (__attribute__): Remove definition.
36433         (_GL_ATTRIBUTE_FORMAT): New macro.
36434         (__argp_fmtstream_printf, argp_fmtstream_printf): Use it.
36435         * lib/argp-help.c (hol_entry_long_iterate): Use __attribute__ only for
36436         GCC 3 or newer.
36437         * lib/error.h (__attribute__): Remove definition.
36438         (_GL_ATTRIBUTE_FORMAT): New macro.
36439         (error, error_at_line): Use it.
36440         * lib/hash.h (__attribute__): Remove definition.
36441         (ATTRIBUTE_WUR): Update definition. Define always.
36442         * lib/openat.h (__attribute__): Remove definition.
36443         (ATTRIBUTE_NORETURN): Update definition. Define always.
36444         * lib/sigpipe-die.h (__attribute__): Remove definition.
36445         (ATTRIBUTE_NORETURN): Update definition. Define always.
36446         * lib/vasnprintf.h (__attribute__): Remove definition.
36447         (_GL_ATTRIBUTE_FORMAT): New macro.
36448         (asnprintf, vasnprintf): Use it.
36449         * lib/xalloc.h (__attribute__): Remove definition.
36450         (ATTRIBUTE_NORETURN): Update definition. Define always.
36451         (ATTRIBUTE_MALLOC, ATTRIBUTE_ALLOC_SIZE): Define always.
36452         * lib/xmemdup0.h (__attribute__): Remove definition.
36453         (ATTRIBUTE_NORETURN): Update definition. Define always.
36454         * lib/xprintf.h (__attribute__): Remove definition.
36455         (_GL_ATTRIBUTE_FORMAT): New macro.
36456         (xprintf, xvprintf, xfprintf, xvfprintf): Use it.
36457         * lib/xstrtol.h (__attribute__): Remove definition.
36458         (ATTRIBUTE_NORETURN): Update definition. Define always.
36459         * lib/xvasprintf.h (__attribute__): Remove definition.
36460         (_GL_ATTRIBUTE_FORMAT): New macro.
36461         (xasprintf, xvasprintf): Use it.
36462         * tests/test-argmatch.c (__attribute__): Remove definition.
36463         (ATTRIBUTE_NORETURN): Update definition. Define always.
36464         * tests/test-exclude.c (__attribute__): Remove definition.
36465         (ATTRIBUTE_NORETURN): Update definition. Define always.
36466         Reported by Paul Eggert.
36468 2011-02-13  Bruno Haible  <bruno@clisp.org>
36470         mbrtowc: Add more tests for native Windows platforms.
36471         * tests/test-mbrtowc-w32-1.sh: New file.
36472         * tests/test-mbrtowc-w32-2.sh: New file.
36473         * tests/test-mbrtowc-w32-3.sh: New file.
36474         * tests/test-mbrtowc-w32-4.sh: New file.
36475         * tests/test-mbrtowc-w32-5.sh: New file.
36476         * tests/test-mbrtowc-w32.c: New file.
36477         * modules/mbrtowc-tests (Files): Add them.
36478         (Makefile.am): Arrange to run these tests.
36479         * tests/test-mbrtowc-w32-6.sh: New file, currently unused.
36480         * tests/test-mbrtowc-w32-7.sh: New file, currently unused.
36482 2011-02-13  Bruno Haible  <bruno@clisp.org>
36484         mbrtowc: Work around native Windows bug.
36485         * m4/mbrtowc.m4 (gl_MBRTOWC_RETVAL): Detect native Windows bug. Use the
36486         guess when no suitable locale for testing was found.
36487         * doc/posix-functions/mbrtowc.texi: Mention the native Windows bug.
36489 2011-02-13  Bruno Haible  <bruno@clisp.org>
36491         mbsinit: Work around mingw bug.
36492         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Replace mbsinit also on mingw.
36493         * lib/mbsinit.c (mbsinit): Provide an alternate definition for native
36494         Windows.
36495         * doc/posix-functions/mbsinit.texi: Mention the mingw bug.
36497 2011-02-13  Bruno Haible  <bruno@clisp.org>
36499         mbsinit: Don't crash for a NULL argument.
36500         * lib/mbsinit.c (mbsinit): When the argument is NULL, return 1.
36501         * tests/test-mbsinit.c (mbsinit): Check this behaviour.
36503 2011-02-13  Bruno Haible  <bruno@clisp.org>
36505         Don't interfere with a program's definition of __attribute__.
36506         * lib/stdio.in.h (__attribute__): Remove definition.
36507         (_GL_ATTRIBUTE_FORMAT, _GL_ATTRIBUTE_FORMAT_PRINTF): New macros.
36508         (dprintf, fprintf, obstack_printf, obstack_printf, obstack_vprintf,
36509         printf, snprintf, sprintf, asprintf, vasprintf, vdprintf, vfprintf,
36510         vsnprintf, vsprintf): Use _GL_ATTRIBUTE_FORMAT_PRINTF.
36511         * lib/string.in.h (__attribute__): Remove definition.
36512         Reported by Paul Eggert.
36514 2011-02-12  Paul Eggert  <eggert@cs.ucla.edu>
36516         stdlib: don't get in the way of non-GCC __attribute__
36517         See thread starting at
36518         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00161.html>.
36519         Revert previous stdlib change, installing the following instead:
36520         * lib/stdlib.in.h (__attribute__): Remove.  We do not want
36521         to get in the way of a non-GCC compiler that supports __attribute__.
36522         (_GL_ATTRIBUTE_RETURN): New macro.
36523         (_Exit): Use it instead of __attribute__.
36525 2011-02-12  Bruno Haible  <bruno@clisp.org>
36527         quotearg test: Avoid test failure on mingw.
36528         * tests/test-quotearg.sh: Convert the locale identifier from native
36529         Windows syntax to Unix syntax.
36531 2011-02-12  Bruno Haible  <bruno@clisp.org>
36533         setlocale: Prefer gnulib's override over libintl's override.
36534         * lib/locale.in.h (GNULIB_defined_setlocale): New macro.
36535         * lib/gettext.h (setlocale): Redefine to rpl_setlocale if
36536         GNULIB_defined_setlocale is set.
36538 2011-02-12  Paul Eggert  <eggert@cs.ucla.edu>
36540         stdlib: support non-GCC __attribute__
36542         Fix a serious and tricky problem encountered when attempting to
36543         add the getloadavg module to Emacs.  Emacs worked fine on RHEL
36544         5.5, but it crashed due to memory corruption on Solaris 10 with
36545         Sun C 5.11.  Emacs normally ORs 3-bit tags into their low-order
36546         bits that are otherwise zero.  This tagging is optional inside
36547         Emacs but is preferred and is used when __attribute__ ((__aligned
36548         (8))) works, as it does with both recent-enough GCC and with Sun C
36549         5.11.  However, Sun C 5.11 is not GCC and does not #define
36550         __GNUC__ and __GNUC_MINOR__.
36552         When I added the getloadavg module to Emacs, it brought in
36553         stdlib.in.h, which contained this fragment:
36555            #ifndef __attribute__
36556            # if __GNUC__ < 2 || (__GNUC__ == 2 && __GNUC_MINOR__ < 8)
36557            #  define __attribute__(Spec)   /* empty */
36558            # endif
36559            #endif
36561         When files that include <stdlib.h> were compiled with Sun C 5.11,
36562         the above code disabled __attribute__ ((__aligned (8))), which
36563         caused variables to not be properly aligned, which eventually led
36564         to the pointer corruption mentioned above.  (This was a bit hard
36565         to diagnose, unfortunately.)
36567         Several "#define __attribute__(X) /* empty */" code snippets need
36568         to be eradicated from Gnulib to work with non-GCC compilers that
36569         support __attribute__.  The Autoconf way to do this is to test for
36570         each kind of attribute that we want support for, and selectively
36571         enable that in source code.
36573         Fix this problem just for stdlib.h, by adding a test for the
36574         __noreturn__ attribute, and change stdlib.in.h to use that test
36575         when needed.  This technique can be easily generalized to the
36576         other *.in.h files and attributes, and a similar technique can be
36577         used for *.h and *.c files.  This patch is enough to solve the
36578         problem for Emacs + getloadavg, and I thought I'd publish it for
36579         feedback before undertaking further, similar fixes in other
36580         modules.
36582         This patch does not arrange to #define HAVE_ATTRIBUTE_NORETURN
36583         because it's not needed for stdlib.h.  It merely substitutes the
36584         value directly into stdlib.h.  We may well need to #define it, or
36585         similar symbols, for other modules, but it's nice to also have an
36586         option to not #define it for applications like Emacs that do not
36587         need it.
36589         * lib/stdlib.in.h (__attribute__): Do not #define.
36590         (_GL_ATTRIBUTE_NORETURN): New macro, which in stdlib.h needs to
36591         be defined only if the _Exit module is also used.
36592         * m4/_Exit.m4 (gl_FUNC__EXIT): Require gl_ATTRIBUTE_NORETURN.
36593         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Subst
36594         HAVE_ATTRIBUTE_NORETURN and default it to 1, its value on GNU
36595         platforms.
36596         * modules/_Exit (Files): Add m4/attribute.m4.
36597         * modules/stdlib (Makefile.am): Substitute HAVE_ATTRIBUTE_NORETURN.
36598         * m4/attribute.m4: New file.
36600 2011-02-12  Bruno Haible  <bruno@clisp.org>
36602         wcsrtombs: Work around bug on native Windows.
36603         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_NULL): Test against mingw bug.
36604         * lib/wcsrtombs.c (rpl_wcsrtombs): When dest is NULL, pass SIZE_MAX
36605         instead of len.
36606         * doc/posix-functions/wcsrtombs.texi: Document mingw bug.
36608 2011-02-12  Bruno Haible  <bruno@clisp.org>
36610         mbsrtowcs: Work around bug on native Windows.
36611         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Require gt_LOCALE_FR. Test
36612         against mingw bug.
36613         * doc/posix-functions/mbsrtowcs.texi: Document mingw bug.
36615 2011-02-12  Bruno Haible  <bruno@clisp.org>
36617         Avoid setlocale bugs in tests.
36618         * modules/btowc (Dependencies): Add setlocale.
36619         * modules/c-strcase (Dependencies): Likewise.
36620         * modules/mbmemcasecmp (Dependencies): Likewise.
36621         * modules/mbmemcasecoll (Dependencies): Likewise.
36622         * modules/mbrtowc (Dependencies): Likewise.
36623         * modules/mbscasecmp (Dependencies): Likewise.
36624         * modules/mbscasestr (Dependencies): Likewise.
36625         * modules/mbschr (Dependencies): Likewise.
36626         * modules/mbscspn (Dependencies): Likewise.
36627         * modules/mbsinit (Dependencies): Likewise.
36628         * modules/mbsncasecmp (Dependencies): Likewise.
36629         * modules/mbsnrtowcs (Dependencies): Likewise.
36630         * modules/mbspbrk (Dependencies): Likewise.
36631         * modules/mbspcasecmp (Dependencies): Likewise.
36632         * modules/mbsrchr (Dependencies): Likewise.
36633         * modules/mbsrtowcs (Dependencies): Likewise.
36634         * modules/mbsspn (Dependencies): Likewise.
36635         * modules/mbsstr (Dependencies): Likewise.
36636         * modules/nl_langinfo (Dependencies): Likewise.
36637         * modules/quotearg (Dependencies): Likewise.
36638         * modules/unicase/locale-language (Dependencies): Likewise.
36639         * modules/unicase/ulc-casecmp (Dependencies): Likewise.
36640         * modules/unicase/ulc-casecoll (Dependencies): Likewise.
36641         * modules/unigbrk/ulc-grapheme-breaks (Dependencies): Likewise.
36642         * modules/unistdio/u8-vasnprintf (Dependencies): Likewise.
36643         * modules/unistdio/u16-vasnprintf (Dependencies): Likewise.
36644         * modules/unistdio/u32-vasnprintf (Dependencies): Likewise.
36645         * modules/unistdio/ulc-vasnprintf (Dependencies): Likewise.
36646         * modules/uniwbrk/ulc-wordbreaks (Dependencies): Likewise.
36647         * modules/vasnprintf-posix (Dependencies): Likewise.
36648         * modules/wcrtomb (Dependencies): Likewise.
36649         * modules/wcsnrtombs (Dependencies): Likewise.
36650         * modules/wcsrtombs (Dependencies): Likewise.
36652 2011-02-12  Bruno Haible  <bruno@clisp.org>
36654         setlocale: Workaround native Windows bug.
36655         * lib/setlocale.c (rpl_setlocale): On native Windows, when setlocale
36656         succeeds but sets LC_CTYPE to "C", report a failure.
36657         * tests/test-setlocale2.sh: New file.
36658         * tests/test-setlocale2.c: New file.
36659         * modules/setlocale-tests (Files): Add the new files.
36660         (Makefile.am): Enable test-setlocale2.sh test.
36661         * doc/posix-functions/setlocale.texi: Mention workaround.
36663 2011-02-11  Bruno Haible  <bruno@clisp.org>
36665         Tests for module 'setlocale'.
36666         * modules/setlocale-tests: New file.
36667         * tests/test-setlocale1.sh: New file.
36668         * tests/test-setlocale1.c: New file.
36670         New module 'setlocale'.
36671         * lib/locale.in.h (setlocale): New declaration.
36672         * lib/setlocale.c: New file, based on
36673         gettext/gettext-runtime/intl/setlocale.c.
36674         * m4/setlocale.m4: New file.
36675         * m4/locale_h.m4 (gl_LOCALE_H): Test whether setlocale is declared.
36676         (gl_LOCALE_H_DEFAULTS): Initialize GNULIB_SETLOCALE, REPLACE_SETLOCALE.
36677         * modules/locale (Makefile.am): Substitute GNULIB_SETLOCALE,
36678         REPLACE_SETLOCALE.
36679         * modules/setlocale: New file.
36680         * tests/test-locale-c++.cc: Test the declaration of setlocale.
36681         * doc/posix-functions/setlocale.texi: Mention the new module.
36683 2011-02-11  Bruno Haible  <bruno@clisp.org>
36685         Prepare for locale dependent tests on mingw.
36686         * m4/locale-ar.m4 (gt_LOCALE_AR): On native Windows, don't try "ar"
36687         because it has the wrong locale encoding.
36688         * m4/locale-fr.m4 (gt_LOCALE_FR): On native Windows, try
36689         French_France.1252 instead of "fr".
36690         (gt_LOCALE_FR_UTF8): On native Windows, try French_France.65001.
36691         * m4/locale-ja.m4 (gt_LOCALE_JA): On native Windows, don't try "ja"
36692         because it has the wrong locale encoding.
36693         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Require AC_CANONICAL_HOST. On
36694         native Windows, try Turkish_Turkey.65001.
36695         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): On native Windows, try
36696         Chinese_China.54936.
36698         Prepare for locale dependent tests on mingw.
36699         * m4/locale-ar.m4 (gt_LOCALE_AR): On native Windows, call setlocale
36700         differently.
36701         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Likewise.
36702         * m4/locale-ja.m4 (gt_LOCALE_JA): Likewise.
36703         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
36704         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
36706 2011-02-11  Eric Blake  <eblake@redhat.com>
36708         strptime: avoid compiler warnings
36709         * lib/strptime.c (__strptime_internal) [!_NL_CURRENT]: Avoid
36710         compiler warnings about dead code.
36711         Reported by Daniel P. Berrange.
36713 2011-02-11  Thien-Thi Nguyen  <ttn@gnuvola.org>
36715         doc: update users.txt
36716         * users.txt: Add rcs.
36718 2011-02-10  John W. Eaton  <jwe@gnu.org>
36720         doc: update users.txt
36721         * users.txt: Add octave.
36723 2011-02-10  Jim Meyering  <meyering@redhat.com>
36725         doc: update users.txt
36726         * users.txt: Add iwhd.
36728 2011-02-09  Bruno Haible  <bruno@clisp.org>
36730         gnulib-tool: Make copyright notice adjustment more robust.
36731         * gnulib-tool (func_import): In sed_transform_main_lib_file,
36732         sed_transform_build_aux_file, sed_transform_testsrelated_lib_file,
36733         allow a line break to occur after "GNU" in "GNU [Lesser] General Public
36734         License".
36735         Reported by Glenn Morris <rgm@gnu.org> via Paul Eggert.
36737 2011-02-06  Bruno Haible  <bruno@clisp.org>
36739         New module 'towctrans'.
36740         * modules/towctrans: New file.
36741         * lib/wctype.in.h (towctrans): New declaration.
36742         * lib/towctrans.c: New file.
36743         * lib/towctrans-impl.h: New file.
36744         * m4/towctrans.m4: New file.
36745         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether towctrans is declared.
36746         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_TOWCTRANS.
36747         * modules/wctype-h (Makefile.am): Substitute GNULIB_TOWCTRANS.
36748         * tests/test-wctype-h-c++.cc: Test the declaration of towctrans.
36749         * doc/posix-functions/towctrans.texi: Mention the new module.
36751 2011-02-06  Bruno Haible  <bruno@clisp.org>
36753         New module 'wctrans'.
36754         * modules/wctrans: New file.
36755         * lib/wctype.in.h (wctrans): New declaration.
36756         * lib/wctrans.c: New file.
36757         * lib/wctrans-impl.h: New file.
36758         * m4/wctrans.m4: New file.
36759         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether wctrans is declared.
36760         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_WCTRANS.
36761         * modules/wctype-h (Makefile.am): Substitute GNULIB_WCTRANS.
36762         * tests/test-wctype-h-c++.cc: Test the declaration of wctrans.
36763         * doc/posix-functions/wctrans.texi: Mention the new module.
36765 2011-02-06  Bruno Haible  <bruno@clisp.org>
36767         New module 'iswctype'.
36768         * modules/iswctype: New file.
36769         * lib/wctype.in.h (iswctype): New declaration.
36770         * lib/iswctype.c: New file.
36771         * lib/iswctype-impl.h: New file.
36772         * m4/iswctype.m4: New file.
36773         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether iswctype is declared.
36774         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_ISWCTYPE.
36775         * modules/wctype-h (Makefile.am): Substitute GNULIB_ISWCTYPE.
36776         * tests/test-wctype-h-c++.cc: Test the declaration of iswctype.
36777         * doc/posix-functions/iswctype.texi: Mention the new module and the
36778         HP-UX 11.00 problem.
36780 2011-02-06  Bruno Haible  <bruno@clisp.org>
36782         New module 'wctype'.
36783         * modules/wctype: Change to represent the wctype() substitute.
36784         * lib/wctype.in.h (wctype): New declaration.
36785         * lib/wctype.c: New file.
36786         * lib/wctype-impl.h: New file.
36787         * m4/wctype.m4: New file.
36788         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether wctype is declared.
36789         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_WCTYPE.
36790         * modules/wctype-h (Makefile.am): Substitute GNULIB_WCTYPE.
36791         * tests/test-wctype-h-c++.cc: Test the declaration of wctype.
36792         * doc/posix-functions/wctype.texi: Mention the new module and the
36793         HP-UX 11.00 problem.
36795 2011-02-06  Bruno Haible  <bruno@clisp.org>
36797         wctype-h: Ensure wctype_t and wctrans_t are defined.
36798         * lib/wctype.in.h (wctype_t, wctrans_t): New type declarations.
36799         * m4/wctype_h.m4 (gl_WCTYPE_H): Determine HAVE_WCTYPE_T, HAVE_WCTRANS_T.
36800         (gl_WCTYPE_H_DEFAULTS): Initialize HAVE_WCTYPE_T, HAVE_WCTRANS_T.
36801         * modules/wctype-h (Makefile.am): Substitute HAVE_WCTYPE_T,
36802         HAVE_WCTRANS_T.
36803         * tests/test-wctype-h.c: Check that wctype_t and wctrans_t are defined.
36805 2011-02-09  Paul Eggert  <eggert@cs.ucla.edu>
36807         flock: fix license typo
36809         * lib/flock.c: Fix typo in license.  One of the "Lesser"s was
36810         omitted.
36812 2011-02-08  Bruno Haible  <bruno@clisp.org>
36814         Split large sed scripts, for HP-UX sed.
36815         * modules/math (Makefile.am): Split sed scripts around 50 sed commands,
36816         to avoid HP-UX limit of 99 commands, in the near future.
36817         * modules/stdlib (Makefile.am): Likewise.
36818         * modules/unistd (Makefile.am): Likewise.
36819         * modules/wchar (Makefile.am): Likewise.
36820         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
36821         Suggestion by Ralf Wildenhues <Ralf.Wildenhues@gmx.de> in
36822         <http://lists.gnu.org/archive/html/bug-gnulib/2010-01/msg00216.html>.
36824 2011-02-08  Paul Eggert  <eggert@cs.ucla.edu>
36825             Bruno Haible  <bruno@clisp.org>
36827         stdlib: improve random_r modularization
36828         * lib/stdlib.in.h: Encapsulate all the stuff having to do with
36829         random_r inside "#if @GNULIB_RANDOM_R@", so that it's clearer that
36830         you also need the random_r module to get this material right.
36831         * m4/random_r.m4 (gl_FUNC_RANDOM_R): Move check for random.h here ...
36832         * m4/stdlib_h.m4 (gl_STDLIB_H): ... from here.
36833         (gl_STDLIB_H_DEFAULTS): Default HAVE_RANDOM_H to 1, and AC_SUBST it.
36835 2011-02-08  Paul Eggert  <eggert@cs.ucla.edu>
36837         stdlib: don't depend on stdint
36838         * lib/stdlib.in.h: Don't include <stdint.h> merely because
36839         GNULIB_POSIXCHECK is defined.  GNULIB_POSIXCHECK seems to
36840         be independent of whether stdint.h is needed.
36841         * m4/random_r.m4 (gl_FUNC_RANDOM_R): Check for struct random_data
36842         here, instead of ...
36843         * m4/stdlib_h.m4 (gl_STDLIB_H): ... here.  Applications that need
36844         struct random_data should be using the random_r module, not just
36845         the stdlib module (which wouldn't make sense: what package needs
36846         just struct random_data without also needing random_r?).
36847         * modules/stdlib (Depends-on): Remove stdint.
36849         getloadavg: don't depend on c-strtod, cloexec, fcntl-safer
36850         See the thread rooted at
36851         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00090.html>.
36852         * lib/getloadavg.c: Do not include c-strtod.h, cloexec.h, or fcntl--.h.
36853         Include <fcntl.h> only if (defined __linux__ || defined __CYGWIN__
36854         || defined SUNOS_5 || (defined LOAD_AVE_TYPE && !  defined
36855         __VMS)); previously it was always included (via fcntl--.h).
36856         (getloadavg): Do not use c_strtod.  Instead, approximate it by
36857         hand; this is good enough for load averages.  Also, do not use
36858         set_cloexec_flag; instead, use the O_CLOEXEC and F_DUPFD_CLOEXEC
36859         flags directly if available and don't bother otherwise.  (Packages
36860         that need the extra reliability should use the modules that define
36861         these flags on older platforms that lack them.)
36862         * modules/getloadavg (Depends-on): Remove c-strtod, cloexec,
36863         fcntl-safer.
36865 2011-02-08  Jim Meyering  <meyering@redhat.com>
36867         di-set.h, ino-map.h: add multiple-inclusion guard
36868         Technically, the guard is required only for ino-map.h, due to its
36869         INO_MAP_INSERT_FAILURE definition, but do both for consistency.
36870         * lib/di-set.h: Add file-spanning #ifndef _GL_DI_SET_H.
36871         * lib/ino-map.h: Likewise.
36873 2011-02-06  Bruno Haible  <bruno@clisp.org>
36875         iswblank: Ensure declaration on glibc systems.
36876         * m4/iswblank.m4 (gl_FUNC_ISWBLANK): Require gl_USE_SYSTEM_EXTENSIONS.
36877         * modules/iswblank (Dependencies): Add 'extensions'.
36878         * doc/posix-functions/iswblank.texi: Document the glibc problem.
36880 2011-02-06  Bruno Haible  <bruno@clisp.org>
36882         New module 'iswblank'.
36883         * lib/wctype.in.h (iswblank): Don't declare if GNULIB_ISWBLANK is 0.
36884         * modules/iswblank: New file.
36885         * modules/wctype-h (Files): Remove lib/iswblank.c.
36886         (Makefile.am): Substitute GNULIB_ISWBLANK.
36887         * m4/iswblank.m4: New file, partially extracted from m4/wctype_h.m4.
36888         * m4/wctype_h.m4 (gl_WCTYPE_MODULE_INDICATOR): New macro.
36889         (gl_WCTYPE_H_DEFAULTS): New macro.
36890         (gl_WCTYPE_H): Require it. Remove iswblank related code.
36891         * modules/iswblank-tests: New file.
36892         * tests/test-iswblank.c: New file, extraced from tests/test-wctype-h.c.
36893         * tests/test-wctype-h.c (main): Remove iswblank tests.
36894         * tests/test-wctype-h-c++.cc: Guard the signature test of iswblank.
36895         * doc/posix-functions/iswblank.texi: Mention module 'iswblank' instead
36896         of 'wctype-h'.
36897         * NEWS: Mention the change.
36898         * modules/mbchar (Depends-on): Add iswblank.
36900 2011-02-08  Bruno Haible  <bruno@clisp.org>
36902         di-set tests: Refactor.
36903         * tests/test-di-set.c: Include di-set.h early. Include macros.h. Drop
36904         unnecessary includes.
36905         (ASSERT): Remove macro.
36906         (main): Make C90 compliant by avoiding variable declaration after
36907         statement.
36908         * modules/di-set-tests (Files): Add tests/macros.h.
36910 2011-02-08  Bruno Haible  <bruno@clisp.org>
36912         ino-map tests: Refactor.
36913         * tests/test-ino-map.c: Include ino-map.h early. Include macros.h. Drop
36914         unnecessary includes.
36915         (ASSERT): Remove macro.
36916         (main): Make C90 compliant by avoiding variable declaration after
36917         statement.
36918         * modules/ino-map-tests (Files): Add tests/macros.h.
36920 2011-02-08  Jim Meyering  <meyering@redhat.com>
36922         di-set: add "const" to a cast
36923         * lib/di-set.c (di_set_insert): Cast hash_insert0 argument to
36924         "(void const *)", not "(void *)".  Spotted by Bruno Haible.
36926 2011-02-06  Bruno Haible  <bruno@clisp.org>
36928         Rename module 'wctype' to 'wctype-h'.
36929         * modules/wctype-h: Renamed from modules/wctype.
36930         * modules/wctype: Simplyfy to a redirection to 'wctype-h'.
36931         * modules/wctype-h-tests: Renamed from modules/wctype-tests.
36932         (Files, Depends-on, Makefile.am): Update.
36933         * modules/wctype-h-c++-tests: Renamed from modules/wctype-c++-tests.
36934         (Files, Makefile.am): Update.
36935         * tests/test-wctype-h.c: Renamed from tests/test-wctype.c.
36936         * tests/test-wctype-h-c++.cc: Renamed from tests/test-wctype-c++.cc.
36937         * doc/posix-headers/wctype.texi: Update.
36938         * doc/posix-functions/iswalnum.texi: Update.
36939         * doc/posix-functions/iswalpha.texi: Update.
36940         * doc/posix-functions/iswblank.texi: Update.
36941         * doc/posix-functions/iswcntrl.texi: Update.
36942         * doc/posix-functions/iswdigit.texi: Update.
36943         * doc/posix-functions/iswgraph.texi: Update.
36944         * doc/posix-functions/iswlower.texi: Update.
36945         * doc/posix-functions/iswprint.texi: Update.
36946         * doc/posix-functions/iswpunct.texi: Update.
36947         * doc/posix-functions/iswspace.texi: Update.
36948         * doc/posix-functions/iswupper.texi: Update.
36949         * doc/posix-functions/iswxdigit.texi: Update.
36950         * doc/posix-functions/towlower.texi: Update.
36951         * doc/posix-functions/towupper.texi: Update.
36952         * NEWS: Mention the change.
36953         * modules/fnmatch (Dependencies): Add wctype-h, remove wctype.
36954         * modules/mbchar (Dependencies): Likewise.
36955         * modules/mbswidth (Dependencies): Likewise.
36956         * modules/quotearg (Dependencies): Likewise.
36957         * modules/regex (Dependencies): Likewise.
36958         * modules/wcscasecmp (Dependencies): Likewise.
36959         * modules/wcsncasecmp (Dependencies): Likewise.
36960         * modules/wcwidth (Dependencies): Likewise.
36962 2011-02-06  Bruno Haible  <bruno@clisp.org>
36964         New module 'wcswidth'.
36965         * modules/wcswidth: New file.
36966         * lib/wchar.in.h (wcswidth): New declaration.
36967         * lib/wcswidth.c: New file.
36968         * lib/wcswidth-impl.h: New file, from libutf8 with modifications.
36969         * m4/wcswidth.m4: New file.
36970         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcswidth is declared.
36971         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSWIDTH, HAVE_WCSWIDTH,
36972         REPLACE_WCSWIDTH.
36973         * modules/wchar (Makefile.am): Substitute GNULIB_WCSWIDTH,
36974         HAVE_WCSWIDTH, REPLACE_WCSWIDTH.
36975         * tests/test-wchar-c++.cc: Test the declaration of wcswidth.
36976         * doc/posix-functions/wcswidth.texi: Mention the new module.
36978 2011-02-06  Bruno Haible  <bruno@clisp.org>
36980         New module 'wcstok'.
36981         * modules/wcstok: New file.
36982         * lib/wchar.in.h (wcstok): New declaration.
36983         * lib/wcstok.c: New file.
36984         * lib/wcstok-impl.h: New file, from libutf8 with modifications.
36985         * m4/wcstok.m4: New file.
36986         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcstok is declared.
36987         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSTOK, HAVE_WCSTOK.
36988         * modules/wchar (Makefile.am): Substitute GNULIB_WCSTOK, HAVE_WCSTOK.
36989         * tests/test-wchar-c++.cc: Test the declaration of wcstok.
36990         * doc/posix-functions/wcstok.texi: Mention the new module.
36992 2011-02-06  Bruno Haible  <bruno@clisp.org>
36994         New module 'wcsstr'.
36995         * modules/wcsstr: New file.
36996         * lib/wchar.in.h (wcsstr): New declaration.
36997         * lib/wcsstr.c: New file.
36998         * lib/wcsstr-impl.h: New file, from libutf8 with modifications.
36999         * m4/wcsstr.m4: New file.
37000         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsstr is declared.
37001         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSSTR, HAVE_WCSSTR.
37002         * modules/wchar (Makefile.am): Substitute GNULIB_WCSSTR, HAVE_WCSSTR.
37003         * tests/test-wchar-c++.cc: Test the declaration of wcsstr.
37004         * doc/posix-functions/wcsstr.texi: Mention the new module.
37006 2011-02-06  Bruno Haible  <bruno@clisp.org>
37008         New module 'wcspbrk'.
37009         * modules/wcspbrk: New file.
37010         * lib/wchar.in.h (wcspbrk): New declaration.
37011         * lib/wcspbrk.c: New file.
37012         * lib/wcspbrk-impl.h: New file, from libutf8 with modifications.
37013         * m4/wcspbrk.m4: New file.
37014         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcspbrk is declared.
37015         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSPBRK, HAVE_WCSPBRK.
37016         * modules/wchar (Makefile.am): Substitute GNULIB_WCSPBRK, HAVE_WCSPBRK.
37017         * tests/test-wchar-c++.cc: Test the declaration of wcspbrk.
37018         * doc/posix-functions/wcspbrk.texi: Mention the new module.
37020 2011-02-06  Bruno Haible  <bruno@clisp.org>
37022         New module 'wcsspn'.
37023         * modules/wcsspn: New file.
37024         * lib/wchar.in.h (wcsspn): New declaration.
37025         * lib/wcsspn.c: New file.
37026         * lib/wcsspn-impl.h: New file, from libutf8 with modifications.
37027         * m4/wcsspn.m4: New file.
37028         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsspn is declared.
37029         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSSPN, HAVE_WCSSPN.
37030         * modules/wchar (Makefile.am): Substitute GNULIB_WCSSPN, HAVE_WCSSPN.
37031         * tests/test-wchar-c++.cc: Test the declaration of wcsspn.
37032         * doc/posix-functions/wcsspn.texi: Mention the new module.
37034 2011-02-06  Bruno Haible  <bruno@clisp.org>
37036         New module 'wcscspn'.
37037         * modules/wcscspn: New file.
37038         * lib/wchar.in.h (wcscspn): New declaration.
37039         * lib/wcscspn.c: New file.
37040         * lib/wcscspn-impl.h: New file, from libutf8 with modifications.
37041         * m4/wcscspn.m4: New file.
37042         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscspn is declared.
37043         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCSPN, HAVE_WCSCSPN.
37044         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCSPN, HAVE_WCSCSPN.
37045         * tests/test-wchar-c++.cc: Test the declaration of wcscspn.
37046         * doc/posix-functions/wcscspn.texi: Mention the new module.
37048 2011-02-06  Bruno Haible  <bruno@clisp.org>
37050         New module 'wcsrchr'.
37051         * modules/wcsrchr: New file.
37052         * lib/wchar.in.h (wcsrchr): New declaration.
37053         * lib/wcsrchr.c: New file.
37054         * lib/wcsrchr-impl.h: New file, from libutf8 with modifications.
37055         * m4/wcsrchr.m4: New file.
37056         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsrchr is declared.
37057         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSRCHR, HAVE_WCSRCHR.
37058         * modules/wchar (Makefile.am): Substitute GNULIB_WCSRCHR, HAVE_WCSRCHR.
37059         * tests/test-wchar-c++.cc: Test the declaration of wcsrchr.
37060         * doc/posix-functions/wcsrchr.texi: Mention the new module.
37062 2011-02-06  Bruno Haible  <bruno@clisp.org>
37064         New module 'wcschr'.
37065         * modules/wcschr: New file.
37066         * lib/wchar.in.h (wcschr): New declaration.
37067         * lib/wcschr.c: New file.
37068         * lib/wcschr-impl.h: New file, from libutf8 with modifications.
37069         * m4/wcschr.m4: New file.
37070         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcschr is declared.
37071         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCHR, HAVE_WCSCHR.
37072         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCHR, HAVE_WCSCHR.
37073         * tests/test-wchar-c++.cc: Test the declaration of wcschr.
37074         * doc/posix-functions/wcschr.texi: Mention the new module.
37076 2011-02-06  Bruno Haible  <bruno@clisp.org>
37078         New module 'wcsdup'.
37079         * modules/wcsdup: New file.
37080         * lib/wchar.in.h (wcsdup): New declaration.
37081         * lib/wcsdup.c: New file.
37082         * lib/wcsdup-impl.h: New file, from libutf8 with modifications.
37083         * m4/wcsdup.m4: New file.
37084         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsdup is declared.
37085         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSDUP, HAVE_WCSDUP.
37086         * modules/wchar (Makefile.am): Substitute GNULIB_WCSDUP, HAVE_WCSDUP.
37087         * tests/test-wchar-c++.cc: Test the declaration of wcsdup.
37088         * doc/posix-functions/wcsdup.texi: Mention the new module.
37090 2011-02-06  Bruno Haible  <bruno@clisp.org>
37092         New module 'wcsxfrm'.
37093         * modules/wcsxfrm: New file.
37094         * lib/wchar.in.h (wcsxfrm): New declaration.
37095         * lib/wcsxfrm.c: New file.
37096         * lib/wcsxfrm-impl.h: New file.
37097         * m4/wcsxfrm.m4: New file.
37098         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsxfrm is declared.
37099         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSXFRM, HAVE_WCSXFRM.
37100         * modules/wchar (Makefile.am): Substitute GNULIB_WCSXFRM, HAVE_WCSXFRM.
37101         * tests/test-wchar-c++.cc: Test the declaration of wcsxfrm.
37102         * doc/posix-functions/wcsxfrm.texi: Mention the new module.
37104 2011-02-06  Bruno Haible  <bruno@clisp.org>
37106         New module 'wcscoll'.
37107         * modules/wcscoll: New file.
37108         * lib/wchar.in.h (wcscoll): New declaration.
37109         * lib/wcscoll.c: New file.
37110         * lib/wcscoll-impl.h: New file.
37111         * m4/wcscoll.m4: New file.
37112         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscoll is declared.
37113         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCOLL, HAVE_WCSCOLL.
37114         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCOLL, HAVE_WCSCOLL.
37115         * tests/test-wchar-c++.cc: Test the declaration of wcscoll.
37116         * doc/posix-functions/wcscoll.texi: Mention the new module.
37118 2011-02-06  Bruno Haible  <bruno@clisp.org>
37120         New module 'wcsncasecmp'.
37121         * modules/wcsncasecmp: New file.
37122         * lib/wchar.in.h (wcsncasecmp): New declaration.
37123         * lib/wcsncasecmp.c: New file.
37124         * lib/wcsncasecmp-impl.h: New file, from libutf8 with modifications.
37125         * m4/wcsncasecmp.m4: New file.
37126         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncasecmp is declared.
37127         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCASECMP, HAVE_WCSNCASECMP.
37128         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCASECMP,
37129         HAVE_WCSNCASECMP.
37130         * tests/test-wchar-c++.cc: Test the declaration of wcsncasecmp.
37131         * doc/posix-functions/wcsncasecmp.texi: Mention the new module.
37133 2011-02-06  Bruno Haible  <bruno@clisp.org>
37135         New module 'wcscasecmp'.
37136         * modules/wcscasecmp: New file.
37137         * lib/wchar.in.h (wcscasecmp): New declaration.
37138         * lib/wcscasecmp.c: New file.
37139         * lib/wcscasecmp-impl.h: New file, from libutf8 with modifications.
37140         * m4/wcscasecmp.m4: New file.
37141         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscasecmp is declared.
37142         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCASECMP, HAVE_WCSCASECMP.
37143         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCASECMP,
37144         HAVE_WCSCASECMP.
37145         * tests/test-wchar-c++.cc: Test the declaration of wcscasecmp.
37146         * doc/posix-functions/wcscasecmp.texi: Mention the new module.
37148 2011-02-05  Bruno Haible  <bruno@clisp.org>
37150         New module 'wcsncmp'.
37151         * modules/wcsncmp: New file.
37152         * lib/wchar.in.h (wcsncmp): New declaration.
37153         * lib/wcsncmp.c: New file.
37154         * lib/wcsncmp-impl.h: New file, from libutf8 with modifications.
37155         * m4/wcsncmp.m4: New file.
37156         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncmp is declared.
37157         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCMP, HAVE_WCSNCMP.
37158         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCMP, HAVE_WCSNCMP.
37159         * tests/test-wchar-c++.cc: Test the declaration of wcsncmp.
37160         * doc/posix-functions/wcsncmp.texi: Mention the new module.
37162 2011-02-05  Bruno Haible  <bruno@clisp.org>
37164         New module 'wcscmp'.
37165         * modules/wcscmp: New file.
37166         * lib/wchar.in.h (wcscmp): New declaration.
37167         * lib/wcscmp.c: New file.
37168         * lib/wcscmp-impl.h: New file, from libutf8 with modifications.
37169         * m4/wcscmp.m4: New file.
37170         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscmp is declared.
37171         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCMP, HAVE_WCSCMP.
37172         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCMP, HAVE_WCSCMP.
37173         * tests/test-wchar-c++.cc: Test the declaration of wcscmp.
37174         * doc/posix-functions/wcscmp.texi: Mention the new module.
37176 2011-02-05  Bruno Haible  <bruno@clisp.org>
37178         New module 'wcsncat'.
37179         * modules/wcsncat: New file.
37180         * lib/wchar.in.h (wcsncat): New declaration.
37181         * lib/wcsncat.c: New file.
37182         * lib/wcsncat-impl.h: New file, from libutf8 with modifications.
37183         * m4/wcsncat.m4: New file.
37184         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncat is declared.
37185         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCAT, HAVE_WCSNCAT.
37186         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCAT, HAVE_WCSNCAT.
37187         * tests/test-wchar-c++.cc: Test the declaration of wcsncat.
37188         * doc/posix-functions/wcsncat.texi: Mention the new module.
37190 2011-02-05  Bruno Haible  <bruno@clisp.org>
37192         New module 'wcscat'.
37193         * modules/wcscat: New file.
37194         * lib/wchar.in.h (wcscat): New declaration.
37195         * lib/wcscat.c: New file.
37196         * lib/wcscat-impl.h: New file, from libutf8 with modifications.
37197         * m4/wcscat.m4: New file.
37198         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscat is declared.
37199         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCAT, HAVE_WCSCAT.
37200         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCAT, HAVE_WCSCAT.
37201         * tests/test-wchar-c++.cc: Test the declaration of wcscat.
37202         * doc/posix-functions/wcscat.texi: Mention the new module.
37204 2011-02-05  Bruno Haible  <bruno@clisp.org>
37206         New module 'wcpncpy'.
37207         * modules/wcpncpy: New file.
37208         * lib/wchar.in.h (wcpncpy): New declaration.
37209         * lib/wcpncpy.c: New file.
37210         * lib/wcpncpy-impl.h: New file, from libutf8 with modifications.
37211         * m4/wcpncpy.m4: New file.
37212         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcpncpy is declared.
37213         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCPNCPY, HAVE_WCPNCPY.
37214         * modules/wchar (Makefile.am): Substitute GNULIB_WCPNCPY, HAVE_WCPNCPY.
37215         * tests/test-wchar-c++.cc: Test the declaration of wcpncpy.
37216         * doc/posix-functions/wcpncpy.texi: Mention the new module.
37218 2011-02-05  Bruno Haible  <bruno@clisp.org>
37220         New module 'wcsncpy'.
37221         * modules/wcsncpy: New file.
37222         * lib/wchar.in.h (wcsncpy): New declaration.
37223         * lib/wcsncpy.c: New file.
37224         * lib/wcsncpy-impl.h: New file, from libutf8 with modifications.
37225         * m4/wcsncpy.m4: New file.
37226         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncpy is declared.
37227         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCPY, HAVE_WCSNCPY.
37228         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCPY, HAVE_WCSNCPY.
37229         * tests/test-wchar-c++.cc: Test the declaration of wcsncpy.
37230         * doc/posix-functions/wcsncpy.texi: Mention the new module.
37232 2011-02-05  Bruno Haible  <bruno@clisp.org>
37234         New module 'wcpcpy'.
37235         * modules/wcpcpy: New file.
37236         * lib/wchar.in.h (wcpcpy): New declaration.
37237         * lib/wcpcpy.c: New file.
37238         * lib/wcpcpy-impl.h: New file, from libutf8 with modifications.
37239         * m4/wcpcpy.m4: New file.
37240         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcpcpy is declared.
37241         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCPCPY, HAVE_WCPCPY.
37242         * modules/wchar (Makefile.am): Substitute GNULIB_WCPCPY, HAVE_WCPCPY.
37243         * tests/test-wchar-c++.cc: Test the declaration of wcpcpy.
37244         * doc/posix-functions/wcpcpy.texi: Mention the new module.
37246 2011-02-05  Bruno Haible  <bruno@clisp.org>
37248         New module 'wcscpy'.
37249         * modules/wcscpy: New file.
37250         * lib/wchar.in.h (wcscpy): New declaration.
37251         * lib/wcscpy.c: New file.
37252         * lib/wcscpy-impl.h: New file, from libutf8 with modifications.
37253         * m4/wcscpy.m4: New file.
37254         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscpy is declared.
37255         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCPY, HAVE_WCSCPY.
37256         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCPY, HAVE_WCSCPY.
37257         * tests/test-wchar-c++.cc: Test the declaration of wcscpy.
37258         * doc/posix-functions/wcscpy.texi: Mention the new module.
37260 2011-02-05  Bruno Haible  <bruno@clisp.org>
37262         New module 'wcsnlen'.
37263         * modules/wcsnlen: New file.
37264         * lib/wchar.in.h (wcsnlen): New declaration.
37265         * lib/wcsnlen.c: New file.
37266         * lib/wcsnlen-impl.h: New file, from libutf8 with modifications.
37267         * m4/wcsnlen.m4: New file.
37268         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsnlen is declared.
37269         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNLEN, HAVE_WCSNLEN.
37270         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNLEN, HAVE_WCSNLEN.
37271         * tests/test-wchar-c++.cc: Test the declaration of wcsnlen.
37272         * doc/posix-functions/wcsnlen.texi: Mention the new module.
37274 2011-02-05  Bruno Haible  <bruno@clisp.org>
37276         New module 'wcslen'.
37277         * modules/wcslen: New file.
37278         * lib/wchar.in.h (wcslen): New declaration.
37279         * lib/wcslen.c: New file.
37280         * lib/wcslen-impl.h: New file, from libutf8 with modifications.
37281         * m4/wcslen.m4: New file.
37282         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcslen is declared.
37283         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSLEN, HAVE_WCSLEN.
37284         * modules/wchar (Makefile.am): Substitute GNULIB_WCSLEN, HAVE_WCSLEN.
37285         * tests/test-wchar-c++.cc: Test the declaration of wcslen.
37286         * doc/posix-functions/wcslen.texi: Mention the new module.
37288 2011-02-05  Bruno Haible  <bruno@clisp.org>
37290         New module 'wmemset'.
37291         * modules/wmemset: New file.
37292         * lib/wchar.in.h (wmemset): New declaration.
37293         * lib/wmemset.c: New file.
37294         * lib/wmemset-impl.h: New file, from libutf8 with modifications.
37295         * m4/wmemset.m4: New file.
37296         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemset is declared.
37297         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMSET, HAVE_WMEMSET.
37298         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMSET, HAVE_WMEMSET.
37299         * tests/test-wchar-c++.cc: Test the declaration of wmemset.
37300         * doc/posix-functions/wmemset.texi: Mention the new module.
37302 2011-02-05  Bruno Haible  <bruno@clisp.org>
37304         New module 'wmemmove'.
37305         * modules/wmemmove: New file.
37306         * lib/wchar.in.h (wmemmove): New declaration.
37307         * lib/wmemmove.c: New file.
37308         * lib/wmemmove-impl.h: New file, from libutf8 with modifications.
37309         * m4/wmemmove.m4: New file.
37310         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemmove is declared.
37311         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMMOVE, HAVE_WMEMMOVE.
37312         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMMOVE,
37313         HAVE_WMEMMOVE.
37314         * tests/test-wchar-c++.cc: Test the declaration of wmemmove.
37315         * doc/posix-functions/wmemmove.texi: Mention the new module.
37317 2011-02-05  Bruno Haible  <bruno@clisp.org>
37319         New module 'wmemcpy'.
37320         * modules/wmemcpy: New file.
37321         * lib/wchar.in.h (wmemcpy): New declaration.
37322         * lib/wmemcpy.c: New file.
37323         * lib/wmemcpy-impl.h: New file, from libutf8 with modifications.
37324         * m4/wmemcpy.m4: New file.
37325         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemcpy is declared.
37326         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMCPY, HAVE_WMEMCPY.
37327         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMCPY, HAVE_WMEMCPY.
37328         * tests/test-wchar-c++.cc: Test the declaration of wmemcpy.
37329         * doc/posix-functions/wmemcpy.texi: Mention the new module.
37331 2011-02-05  Bruno Haible  <bruno@clisp.org>
37333         New module 'wmemcmp'.
37334         * modules/wmemcmp: New file.
37335         * lib/wchar.in.h (wmemcmp): New declaration.
37336         * lib/wmemcmp.c: New file.
37337         * lib/wmemcmp-impl.h: New file, from libutf8 with modifications.
37338         * m4/wmemcmp.m4: New file.
37339         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemcmp is declared.
37340         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMCMP, HAVE_WMEMCMP.
37341         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMCMP, HAVE_WMEMCMP.
37342         * tests/test-wchar-c++.cc: Test the declaration of wmemcmp.
37343         * doc/posix-functions/wmemcmp.texi: Mention the new module.
37345 2011-02-07  Jim Meyering  <meyering@redhat.com>
37347         di-set, ino-map: new modules, from coreutils
37348         * lib/di-set.c: New file.
37349         * lib/di-set.h: Likewise.
37350         * lib/ino-map.c: Likewise.
37351         * lib/ino-map.h: Likewise.
37352         * modules/di-set: Likewise.
37353         * modules/di-set-tests: Likewise.
37354         * modules/ino-map: Likewise.
37355         * modules/ino-map-tests: Likewise.
37356         * tests/test-di-set.c: Likewise.
37357         * tests/test-ino-map.c: Likewise.
37359 2011-02-06  Paul Eggert  <eggert@cs.ucla.edu>
37361         getloadavg: merge minor changes from Emacs
37363         * lib/getloadavg.c (getloadavg_initialized): More-accurate comment.
37364         (getloadavg): Use memset, not bzero.
37366         2008-07-25  Chong Yidong  <cyd@stupidchicken.com>
37367         * lib/getloadavg.c (nl): Rename to name_list to avoid ncurses.h
37368         clash (bug#86).
37370 2010-11-14  Bruno Haible  <bruno@clisp.org>
37372         Allow multiple gnulib generated replacements to coexist.
37373         * lib/getopt.in.h (struct option): Avoid identical redefinition.
37374         * lib/inttypes.in.h (imaxdiv_t): Likewise.
37375         * lib/langinfo.in.h (nl_item): Likewise.
37376         * lib/math.in.h (_NaN, NAN): Likewise.
37377         * lib/netdb.in.h (struct addrinfo): Likewise.
37378         * lib/poll.in.h (struct pollfd, nfds_t): Likewise.
37379         * lib/pthread.in.h (pthread_t, pthread_attr_t, pthread_barrier_t,
37380         pthread_barrierattr_t, pthread_cond_t, pthread_condattr_t,
37381         pthread_key_t, pthread_mutex_t, pthread_mutexattr_t, pthread_once_t,
37382         pthread_rwlock_t, pthread_rwlockattr_t, pthread_cond_destroy,
37383         pthread_cond_init, pthread_cond_signal, pthread_cond_wait,
37384         pthread_create, pthread_exit, pthread_join, pthread_mutexattr_destroy,
37385         pthread_mutexattr_init, pthread_mutexattr_settype,
37386         pthread_mutex_destroy, pthread_mutex_init, pthread_mutex_lock,
37387         pthread_mutex_trylock, pthread_mutex_unlock, pthread_spinlock_t,
37388         pthread_spin_init, pthread_spin_destroy, pthread_spin_lock,
37389         pthread_spin_trylock, pthread_spin_unlock): Likewise.
37390         * lib/sched.in.h (struct sched_param): Likewise.
37391         * lib/se-selinux.in.h (security_class_t, security_context_t,
37392         is_selinux_enabled, getcon, freecon, getfscreatecon, setfscreatecon,
37393         matchpathcon, getfilecon, lgetfilecon, fgetfilecon, setfilecon,
37394         lsetfilecon, fsetfilecon, security_check_context,
37395         security_check_context_raw, setexeccon, matchpathcon_init_prefix):
37396         Likewise.
37397         * lib/search.in.h (VISIT, _gl_search_compar_fn, _gl_search_action_fn):
37398         Likewise.
37399         * lib/signal.in.h (sig_atomic_t, sigset_t, verify_NSIG_constraint,
37400         _gl_function_taking_int_returning_void_t, union sigval,
37401         struct siginfo_t, siginfo_t, struct sigaction): Likewise.
37402         * lib/spawn.in.h (posix_spawnattr_t, posix_spawn_file_actions_t,
37403         verify_POSIX_SPAWN_USEVFORK_no_overlap): Likewise.
37404         * lib/stdint.in.h (gl_int8_t, gl_uint8_t, gl_int16_t, gl_uint16_t,
37405         gl_int32_t, gl_uint32_t, gl_int64_t, gl_uint64_t, int_least8_t,
37406         uint_least8_t, int_least16_t, uint_least16_t, int_least32_t,
37407         uint_least32_t, int_least64_t, uint_least64_t, gl_int_fast8_t,
37408         gl_uint_fast8_t, gl_int_fast16_t, gl_uint_fast16_t, gl_int_fast32_t,
37409         gl_uint_fast32_t, int_fast64_t, uint_fast64_t, gl_intptr_t,
37410         gl_uintptr_t, intmax_t, uintmax_t, _verify_intmax_size): Likewise.
37411         * lib/stdio.in.h (rpl_fseek, rpl_ftell): Likewise.
37412         * lib/sys_socket.in.h (sa_family_t, struct sockaddr_storage,
37413         socklen_t, rpl_fd_isset): Likewise.
37414         * lib/sys_stat.in.h (rpl_mkdir): Likewise.
37415         * lib/sys_time.in.h (struct timeval): Likewise.
37416         * lib/sys_times.in.h (struct tms): Likewise.
37417         * lib/sys_utsname.in.h (struct utsname):
37418         * lib/time.in.h (struct timespec, __time_t_must_be_integral): Likewise.
37419         * lib/unistd.in.h (getpagesize): Likewise.
37420         * lib/wchar.in.h (mbstate_t): Likewise.
37421         * lib/wctype.in.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
37422         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit,
37423         towlower, towupper): Likewise.
37424         Reported by Sam Steingold <sds@gnu.org>.
37426 2011-02-05  Eric Blake  <eblake@redhat.com>
37428         unsetenv: work around Haiku issues
37429         * m4/setenv.m4 (gl_FUNC_UNSETENV): Also detect Haiku issue.
37430         * doc/posix-functions/unsetenv.texi (unsetenv): Document it.
37432 2010-12-30  Bruce Korb  <bkorb@gnu.org>
37434         libposix: avoid calling error() within libposix
37435         * lib/openat-die.c: remove error module stuff when GNULIB_LIBPOSIX
37436         is defined.
37438 2011-02-05  Eric Blake  <eblake@redhat.com>
37440         strerror_r-posix: port to cygwin
37441         * lib/strerror_r.c (strerror_r) [__CYGWIN__]: Add cygwin
37442         implementation.
37443         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Adjust comment.
37444         * tests/test-strerror_r.c (main): Fix test.
37445         * doc/posix-functions/strerror_r.texi (strerror_r): Document the
37446         issue.
37448 2011-02-05  Bruno Haible  <bruno@clisp.org>
37450         New module 'wmemchr'.
37451         * modules/wmemchr: New file.
37452         * lib/wchar.in.h (wmemchr): New declaration.
37453         * lib/wmemchr.c: New file.
37454         * lib/wmemchr-impl.h: New file, from libutf8 with modifications.
37455         * m4/wmemchr.m4: New file.
37456         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemchr is declared.
37457         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMCHR, HAVE_WMEMCHR.
37458         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMCHR, HAVE_WMEMCHR.
37459         * tests/test-wchar-c++.cc: Test the declaration of wmemchr.
37460         * doc/posix-functions/wmemchr.texi: Mention the new module.
37462 2011-02-04  Eric Blake  <eblake@redhat.com>
37464         fdopendir: detect FreeBSD bug
37465         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Detect bug.
37466         * doc/posix-functions/fdopendir.texi (fdopendir): Document it.
37468 2011-02-04  Paul Eggert  <eggert@cs.ucla.edu>
37470         stdbool: do not define HAVE_STDBOOL_H
37471         * m4/stdbool.m4 (AC_CHECK_HEADER_STDBOOL): Renamed from
37472         AC_HEADER_STDBOOL.  All uses changed.  Do not define
37473         HAVE_STDBOOL_H, as gnulib does not need this.  This change is
37474         imported from the latest Autoconf git.  It was motivated by Emacs,
37475         which uses gnulib but does not need HAVE_STDBOOL_H.
37477 2011-02-04  Bruno Haible  <bruno@clisp.org>
37479         wcsnrtombs: Prepare for new module wwcsnrtombs.
37480         * lib/wcsnrtombs-impl.h: New file, extracted from lib/wcsnrtombs.c.
37481         * lib/wcsnrtombs.c: Include it.
37482         * modules/wcsnrtombs (Files): Add lib/wcsnrtombs-impl.h.
37484         wcsrtombs: Prepare for new module wwcsrtombs.
37485         * lib/wcsrtombs-impl.h: New file, extracted from lib/wcsrtombs.c.
37486         * lib/wcsrtombs.c: Include it.
37487         * modules/wcsrtombs (Files): Add lib/wcsrtombs-impl.h.
37489         mbsnrtowcs: Prepare for new module mbsnrtowwcs.
37490         * lib/mbsnrtowcs-impl.h: New file, extracted from lib/mbsnrtowcs.c.
37491         * lib/mbsnrtowcs.c: Include it.
37492         * modules/mbsnrtowcs (Files): Add lib/mbsnrtowcs-impl.h.
37494         mbsrtowcs: Prepare for new module mbsrtowwcs.
37495         * lib/mbsrtowcs-impl.h: New file, extracted from lib/mbsrtowcs.c.
37496         * lib/mbsrtowcs.c: Include it.
37497         * modules/mbsrtowcs (Files): Add lib/mbsrtowcs-impl.h.
37499 2011-02-04  Bruno Haible  <bruno@clisp.org>
37501         vasnprintf: Reduce use of malloc for small format strings.
37502         * lib/printf-args.h (N_DIRECT_ALLOC_ARGUMENTS): New macro.
37503         (arguments): Add room for the first 7 arguments.
37504         * lib/printf-parse.h (N_DIRECT_ALLOC_DIRECTIVES): New macro.
37505         (char_directives, u8_directives, u16_directives, u32_directives): Add
37506         room for the first 7 directives.
37507         * lib/printf-parse.c: Include <string.h>.
37508         (PRINTF_PARSE): Change memory handling code so that it uses the first
37509         7 preallocated elements in an 'arguments' or 'DIRECTIVES' struct.
37510         * lib/vasnprintf.c (VASNPRINTF): Update memory handling code.
37511         Reported by Pádraig Brady <P@draigbrady.com>.
37513 2011-01-31  Eric Blake  <eblake@redhat.com>
37515         dup2: work around Haiku bug
37516         * m4/dup2.m4 (gl_FUNC_DUP2): Test for bug.
37517         * lib/dup2.c (rpl_dup2) [!WIN32]: Add workaround.
37518         * doc/posix-functions/dup2.texi (dup2): Document the bug.
37519         * tests/test-dup2.c (main): Enhance test.
37521 2011-01-31  Simon Josefsson  <simon@josefsson.org>
37523         doc: off_t is not available in eglibc 2.11.2 stdio.h.
37524         * doc/posix-headers/stdio.texi (stdio.h): Mention that off_t isn't
37525         declared by eglibc 2.11.2.
37526         * lib/stdio.in.h: Likewise.
37528 2011-01-31  Eric Blake  <eblake@redhat.com>
37530         ignore-value: add missing test dependency
37531         * tests/test-ignore-value.c: Revert previous change; stdio.h
37532         provides off_t.
37533         * modules/ignore-value-tests (Depends-on): Add missing dependency.
37535 2011-01-30  Paul Eggert  <eggert@cs.ucla.edu>
37537         mktime: clarify long_int width checking
37538         * lib/mktime.c (long_int_is_wide_enough): Move this assertion to
37539         the top level, to make it clearer that the assumption about
37540         long_int width is being checked.  See
37541         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00554.html>.
37543 2011-01-30  Simon Josefsson  <simon@josefsson.org>
37545         ignore-value: Fix self-test.
37546         * tests/test-ignore-value.c: Include sys/types.h for off_t.
37548 2011-01-29  Paul Eggert  <eggert@cs.ucla.edu>
37550         TYPE_MAXIMUM: avoid theoretically undefined behavior
37551         * lib/intprops.h (TYPE_MINIMUM, TYPE_MAXIMUM): Do not shift a
37552         negative number, which the C Standard says has undefined behavior.
37553         In practice this is not a problem, but might as well do it by the book.
37554         Reported by Rich Felker and Eric Blake; see
37555         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00493.html>.
37556         * lib/strtol.c (TYPE_MINIMUM, TYPE_MAXIMUM): Likewise.
37557         * m4/mktime.m4 (AC_FUNC_MKTIME): Likewise.
37558         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
37559         * m4/parse-datetime.m4 (gl_PARSE_DATETIME): Likewise.
37560         * m4/stdint.m4 (gl_STDINT_H): Likewise.
37561         * lib/mktime.c (TYPE_MAXIMUM): Redo slightly to match the others.
37563         mktime: #undef mktime before #defining it
37564         * lib/mktime.c (mktime) [DEBUG]: #undef mktime before #defining it.
37566         mktime: systematically normalize tm_isdst comparisons
37567         * lib/mktime.c (isdst_differ): New function.
37568         (__mktime_internal): Use it systematically for all isdst comparisons.
37569         This completes the fix for libc BZ #6723, and removes the need for
37570         normalizing tm_isdst.  See
37571         <http://sourceware.org/bugzilla/show_bug.cgi?id=6723>
37572         (not_equal_tm) [DEBUG]: Use isdst_differ here, too.
37574         mktime: fix some integer overflow issues and sidestep the rest
37576         This was prompted by a bug report by Benjamin Lindner for MinGW
37577         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00472.html>.
37578         His bug is due to signed integer overflow (0 - INT_MIN), and I
37579         I scanned through mktime.c looking for other integer overflow
37580         problems, fixing all the bugs I found.
37582         Although the C Standard says the resulting code is still not safe
37583         in the presence of integer overflow, in practice it should be good
37584         enough for all real-world two's-complement implementations, except
37585         for debugging environments that deliberately trap on integer
37586         overflow (e.g., gcc -ftrapv).
37588         * lib/mktime.c (WRAPV): New macro.
37589         (SHR): Also check that long_int and time_t shift right in the
37590         usual way, before using the fast-but-unportable method.
37591         (TYPE_ONES_COMPLEMENT, TYPE_SIGNED_MAGNITUDE): Remove, no longer
37592         used.  The code already assumed two's complement, so there's
37593         no need to test for alternatives.  All uses removed.
37594         (TYPE_MAXIMUM): Don't rely here on overflow behavior not defined by
37595         the C standard.  Problem reported by Rich Felker in
37596         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00488.html>.
37597         (twos_complement_arithmetic): Also check long_int and time_t.
37598         (time_t_avg, time_t_add_ok, time_t_int_add_ok): New functions.
37599         (guess_time_tm, ranged_convert, __mktime_internal): Use them.
37600         (__mktime_internal): Avoid integer overflow with unary subtraction
37601         in two instances where -1 - X is an adequate replacement for -X,
37602         since the calculations are approximate.
37604 2011-01-29  Eric Blake  <eblake@redhat.com>
37606         mktime: avoid infinite loop
37607         * m4/mktime.m4 (AC_FUNC_MKTIME): Avoid overflow on possibly-signed
37608         type; behavior is still undefined but portable to all known targets.
37609         Reported by Rich Felker.
37611 2011-01-29  Simon Josefsson  <simon@josefsson.org>
37613         rename, unlink, same-inode: Relicense.
37614         * modules/rename (License): Relax from LGPLv3+ to LGPLv2+.
37615         * modules/unlink (License): Likewise.
37616         * modules/same-inode (License): Likewise.
37618 2011-01-28  Paul Eggert  <eggert@cs.ucla.edu>
37620         mktime: avoid problems on NetBSD 5 / i386
37621         * lib/mktime.c (long_int): New type.  This works around a problem
37622         on NetBSD 5 / i386, where 'long int' and 'int' are both 32 bits
37623         but time_t is 64 bits, and where I expect the existing code is
37624         wrong in some cases.
37625         (leapyear, ydhms_diff, guess_time_tm, __mktime_internal): Use it.
37626         (ydhms_diff): Bring back the compile-time check for wide-enough
37627         year and yday.
37629         mktime: fix misspelling in comment
37630         * lib/mktime.c (__mktime_internal): Fix misspelling in comment.
37631         This merges all recent glibc changes of importance.
37633 2011-01-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
37635         move-if-change: cope with concurrent mv of identical file.
37636         * build-aux/move-if-change (CMPPROG): Accept environment
37637         variable as an override for `cmp'.
37638         (usage): Document CMPPROG.
37639         Adjust comparison to drop stdout.  Cope with failure of mv if
37640         the target file exists and is identical to the source, for
37641         parallel builds.
37642         Report from H.J. Lu against binutils in PR binutils/12283.
37644 2011-01-28  Bruce Korb  <bkorb@gnu.org>
37646         * users.txt: Mention sharutils.
37648 2011-01-28  Simon Josefsson  <simon@josefsson.org>
37650         * users.txt: Mention OATH Toolkit.
37652 2011-01-27  Bruno Haible  <bruno@clisp.org>
37654         Prepare for supporting FreeBSD 10.
37655         * build-aux/config.libpath: Remove handling of freebsd1*.
37657 2011-01-27  Gerald Pfeifer  <gerald@pfeifer.com>  (tiny change)
37659         Prepare for supporting FreeBSD 10.
37660         * build-aux/config.rpath: Remove handling of freebsd1* which soon would
37661         match FreeBSD 10.0.
37663 2011-01-27  Bruno Haible  <bruno@clisp.org>
37665         vma-iter, get-rusage-as: Add OpenBSD support.
37666         * modules/vma-iter (configure.ac): Test for mquery.
37667         * lib/vma-iter.h (VMA_ITERATE_SUPPORTED): Define also on OpenBSD.
37668         * lib/vma-iter.c: Include <sys/mman.h>.
37669         (vma_iterate): Add an implementation based on mquery().
37670         * lib/resource-ext.h (get_rusage_as): Update comments.
37671         * lib/get-rusage-as.c: Likewise.
37672         * lib/get-rusage-data.c: Likewise.
37674 2011-01-26  Karl Berry  <karl@gnu.org>
37676         * doc/Makefile (lang_env, makeinfo_prog, manual_opts): new
37677         variables to make it easier to override the makeinfo program used.
37679 2011-01-26  Eric Blake  <eblake@redhat.com>
37681         fcntl: work around Haiku F_DUPFD bugs
37682         * m4/fcntl.m4 (gl_FUNC_FCNTL): Also catch Haiku errno bug.
37683         * lib/fcntl.c (rpl_fcntl) [F_DUPFD]: Work around Haiku losing
37684         cloexec bit on duplication.
37685         * doc/posix-functions/fcntl.texi (fcntl): Document the bug.
37687 2011-01-26  Bruno Haible  <bruno@clisp.org>
37689         Enable memory leak tests on AIX.
37690         * tests/test-dprintf-posix2.c (main): Don't skip the test on AIX.
37691         * tests/test-fprintf-posix3.c (main): Likewise.
37693 2011-01-26  Bruno Haible  <bruno@clisp.org>
37695         Tests for module 'get-rusage-data'.
37696         * modules/get-rusage-data-tests: New file.
37697         * tests/test-get-rusage-data.c: New file.
37699         New module 'get-rusage-data'.
37700         * lib/resource-ext.h (get_rusage_data): New declaration.
37701         * lib/get-rusage-data.c: New file.
37702         * modules/get-rusage-data: New file.
37704 2011-01-25  Bruno Haible  <bruno@clisp.org>
37706         get-rusage-as: Allow for easier testing.
37707         * lib/resource-ext.h (get_rusage_as): Add comment.
37708         * lib/get-rusage-as.c (get_rusage_as_via_setrlimit): Define always.
37709         (main): New function for interactive testing.
37711 2011-01-25  Bruno Haible  <bruno@clisp.org>
37713         vma-iter: Treat Haiku like BeOS.
37714         * lib/vma-iter.h (VMA_ITERATE_SUPPORTED): Define on Haiku as well.
37715         * lib/vma-iter.c (vma_iterate) [Haiku]: Use the BeOS API.
37717 2011-01-25  Eric Blake  <eblake@redhat.com>
37719         c-stack: fix regression on cygwin when libsigsegv is present
37720         * lib/c-stack.c (die): Don't flatten error if sigsegv is present.
37722 2011-01-24  Bruno Haible  <bruno@clisp.org>
37724         vma-iter: Avoid empty intervals.
37725         * lib/vma-iter.c (vma_iterate) [IRIX, OSF/1]: Don't call the callback
37726         on an empty interval.
37728 2011-01-24  Jim Meyering  <meyering@redhat.com>
37730         u64: remove unnecessary #include
37731         * lib/u64.h: Don't include <stddef.h>.  It was not used.
37733 2011-01-23  Paul Eggert  <eggert@cs.ucla.edu>
37735         Allow the user to avoid the HAVE_RAW_DECL_* macros.
37736         * m4/gnulib-common.m4 (gl_ASSERT_NO_GNULIB_POSIXCHECK): New macro.
37738 2011-01-23  Bruno Haible  <bruno@clisp.org>
37740         New module 'vma-iter'.
37741         * lib/vma-iter.h: New file.
37742         * lib/vma-iter.c: New file, based on lib/get-rusage-as.c.
37743         * modules/vma-iter: New file.
37744         * lib/get-rusage-as.c: Include vma-iter.h. Don't include system headers
37745         for get_rusage_as_via_iterator.
37746         (vma_iterate_callback): New function.
37747         (get_rusage_as_via_iterator): Rewritten to use vma_iterate.
37748         * modules/get-rusage-as (Depends-on): Add vma-iter.
37750 2011-01-23  Bruno Haible  <bruno@clisp.org>
37752         uninorm: Tweak includes.
37753         * lib/uninorm/normalize-internal.h: Don't include <stddef.h>.
37754         Reported by Jim Meyering.
37756 2011-01-23  Bruno Haible  <bruno@clisp.org>
37758         get-rusage-as: Improve on NetBSD.
37759         * lib/get-rusage-as.c (get_rusage_as_via_iterator): On NetBSD, use
37760         /proc, like on FreeBSD.
37762 2011-01-23  Jim Meyering  <meyering@redhat.com>
37764         xreadlink.h: remove unnecessary #include
37765         * lib/xreadlink.h: Don't include <stddef.h>.  It was not used.
37767         maint.mk: add syntax-check rule: detect unnecessary #include <stddef.h>
37768         * top/maint.mk (sc_prohibit_stddef_without_use): New rule.
37770 2011-01-23  Bruno Haible  <bruno@clisp.org>
37772         get-rusage-as: Fix bug.
37773         * lib/get-rusage-as.c (get_rusage_as_via_setrlimit): Restore the
37774         original limit when aborting the first loop.
37776 2011-01-23  Bruno Haible  <bruno@clisp.org>
37778         wctype: Ensure valid C syntax.
37779         * m4/wctype_h.m4 (gl_WCTYPE_H): Invoke gl_CHECK_NEXT_HEADERS
37780         unconditionally, instead of gl_NEXT_HEADERS conditionally.
37782 2011-01-21  Paul Eggert  <eggert@cs.ucla.edu>
37784         getopt: omit HAVE_OPTRESET, HAVE_GETOPT_CLIP from config.h
37785         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Do not put the
37786         symbols HAVE_OPTRESET and HAVE_GETOPT_CLIP into config.h,
37787         as they are needed only for configure's test case.
37788         This removes two unnecessary symbols from config.h.
37790         gl_CHECK_NEXT_HEADERS implies AC_CHECK_HEADERS_ONCE
37791         * m4/include_next.m4 (gl_CHECK_HEXT_HEADERS): Document this.
37792         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Don't bother to invoke
37793         AC_CHECK_HEADERS_ONCE on a header that we also invoke
37794         gl_CHECK_NEXT_HEADERS on, since the latter invokes the former.
37795         * m4/netdb_h.m4 (gl_HEADER_NETDB): Likewise.
37796         * m4/pthread.m4 (gl_PTHREAD_CHECK): Likewise.
37797         * m4/sched_h.m4 (gl_SCHED_H): Likewise.
37798         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
37799         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
37800         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H): Likewise.
37801         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
37802         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
37803         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
37804         * m4/termios_h.m4 (gl_TERMIOS_H): Likewise.
37805         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
37806         * m4/wchar_h.m4 (gl_WCHAR_H): Likewise.
37807         * m4/wctype_h.m4 (gl_WCTYPE_H): Likewise.
37809 2011-01-21  Eric Blake  <eblake@redhat.com>
37811         maintainer-makefile: work with older git for submodule check
37812         * top/maint.mk (public-submodule-commit): Rewrite to avoid
37813         merge-base --independent, which Ubuntu 10.04 git 1.7.0.4 lacks.
37814         Reported by Matthias Bolte.
37816         bootstrap: minor portability fixes
37817         * build-aux/bootstrap (me): Use $me instead of $0 in functions.
37818         (usage): Omit leading capital and trailing . on help phrases, per
37819         GNU Coding Standards.
37820         (check_versions, top level): Prefix messages with script name.
37822 2011-01-21  Benjamin Lindner  <bjmldn@gmail.com>  (tiny change)
37824         bootstrap: support --no-git option
37825         * build-aux/bootstrap: Add --no-git option, to be used when
37826         --gnulib-srcdir points to the exact desired checkout.
37828 2011-01-21  Eric Blake  <eblake@redhat.com>
37830         strerror_r-posix: work with glibc 2.13
37831         * lib/strerror_r.c (strerror_r): Fix return type.
37833 2011-01-21  Pádraig Brady  <P@draigBrady.com>
37834             Bruno Haible  <bruno@clisp.org>
37836         uN_strstr: New unit tests.
37837         * modules/unistr/u8-strstr-tests: New file.
37838         * modules/unistr/u16-strstr-tests: New file.
37839         * modules/unistr/u32-strstr-tests: New file.
37840         * tests/unistr/test-u-strstr.h: New file, based on tests/test-strstr.c.
37841         * tests/unistr/test-u8-strstr.c: New file.
37842         * tests/unistr/test-u16-strstr.c: New file.
37843         * tests/unistr/test-u32-strstr.c: New file.
37845 2011-01-21  Pádraig Brady  <P@draigBrady.com>
37846             Bruno Haible  <bruno@clisp.org>
37848         Make uN_strstr functions O(n) worst-case.
37849         * lib/unistr/u-strstr.h (FUNC): In the 8-bit case, use strstr. In the
37850         16-bit and 32-bit unit cases, use the unibyte algorithm from
37851         lib/mbsstr.c.
37852         * lib/unistr/u8-strstr.c: Include <string.h>.
37853         (UNIT_IS_UINT8_T): New macro.
37854         * lib/unistr/u16-strstr.c: Include malloca.h and str-kmp.h.
37855         (U_STRLEN, U_STRNLEN): New macros.
37856         * lib/unistr/u32-strstr.c: Include malloca.h and str-kmp.h.
37857         (U_STRLEN, U_STRNLEN): New macros.
37858         * modules/unistr/u8-strstr (Depends-on): Add strstr.
37859         (configure.ac): Update required libunistring version.
37860         * modules/unistr/u16-strstr (Files): Add lib/str-kmp.h.
37861         (Depends-on): Add unistr/u16-strlen, unistr/u16-strnlen, stdbool,
37862         malloca.
37863         (configure.ac): Update required libunistring version.
37864         * modules/unistr/u32-strstr (Files): Add lib/str-kmp.h.
37865         (Depends-on): Add unistr/u32-strlen, unistr/u32-strnlen, stdbool,
37866         malloca.
37867         (configure.ac): Update required libunistring version.
37869 2011-01-21  Pádraig Brady  <P@draigBrady.com>
37870             Bruno Haible  <bruno@clisp.org>
37872         Prepare for faster uN_strstr functions.
37873         * lib/str-kmp.h: Support definable UNITs.
37874         (knuth_morris_pratt): Renamed from knuth_morris_pratt_unibyte. Add
37875         needle_len argument.
37876         * lib/mbsstr.c (mbsstr): Adjust for the changed str-kmp.h.
37877         * lib/mbscasestr.c (mbscasestr): Likewise.
37879 2011-01-21  Pádraig Brady  <P@draigBrady.com>
37881         malloca-tests: make faster by unsetting MALLOC_PERTURB_
37882         * tests/test-malloca.c (main): Unset the environment variable
37883         to greatly speed up the test.
37884         * tests/init.sh: Don't say that MALLOC_PERTURB_ is cheap.
37885         * modules/malloca-tests: Depend on unsetenv.
37887 2011-01-21  Pádraig Brady  <P@draigBrady.com>
37889         ignore-value: remove stdint dependency
37890         * lib/ignore-value.h: Remove <stdint.h>
37891         * modules/ignore-value: Remove stdint dependency.
37893 2011-01-21  Jim Meyering  <meyering@redhat.com>
37895         maint.mk: adjust variable name to be consistent with other gl_ vars
37896         * top/maint.mk (gl_public_submodule_commit): Rename the variable
37897         to be lower case.
37899 2011-01-20  Jim Meyering  <meyering@redhat.com>
37901         maint.mk: make "check" depend on public-submodule-commit by default
37902         * top/maint.mk (GL_PUBLIC_SUBMODULE_COMMIT): New overridable variable.
37904 2011-01-20  Bruno Haible  <bruno@clisp.org>
37906         mbfile, mbiter: Complete change from 2008-12-21.
37907         * m4/mbfile.m4 (gl_MBFILE): Don't require AC_FUNC_MBRTOWC.
37908         * m4/mbiter.m4 (gl_MBITER): Likewise.
37910 2011-01-20  Jim Meyering  <meyering@redhat.com>
37912         init.sh: insert space between each function name and "()"
37913         * tests/init.sh: Make it a little easier to see that a function's
37914         name is "warn_", and not "warn" when looking at the first part of
37915         its definition: "warn_ ()".  Suggested by Ralf Wildenhues.
37917 2011-01-20  Jim Meyering  <meyering@redhat.com>
37919         mountlist: clean up code formatting
37920         * lib/mountlist.c (read_file_system_list): Split a long line,
37921         correct bracing style, use NULL in place of "(struct statfs *)0",
37922         don't parenthesize return value, add spaces around "=" and after
37923         ";-in-for-stmt".
37925 2011-01-14  Markus Duft  <mduft@gentoo.org>
37927         mountlist: add support for Interix
37928         * lib/mountlist.c (read_file_system_list) [MOUNTED_INTERIX_STATVFS]:
37929         Apply statvfs to all entries of /dev/fs.
37930         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Check for statvfs,
37931         and if found, AC_DEFINE MOUNTED_INTERIX_STATVFS.
37933 2011-01-20  Jim Meyering  <meyering@redhat.com>
37935         maint.mk: improve the public-submodule-commit rule
37936         * top/maint.mk (public-submodule-commit): Prefix with $(AM_V_GEN),
37937         to suppress printing of its commands... unless V=1.
37938         Add git submodule's --quiet option to suppress printing of e.g.,
37939         "Entering gnulib" output.
37940         "cd" into $(srcdir) before running git submodule.
37942 2011-01-20  Bruno Haible  <bruno@clisp.org>
37944         include_next: Fix bug introduced on 2011-01-18.
37945         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): New macro, extracted
37946         from gl_CHECK_NEXT_HEADERS and gl_NEXT_HEADERS. Omit test of
37947         ac_cv_header_... variable if the second argument is not 'check'.
37948         (gl_CHECK_NEXT_HEADERS, gl_NEXT_HEADERS): Invoke
37949         gl_NEXT_HEADERS_INTERNAL.
37951 2011-01-20  Bruno Haible  <bruno@clisp.org>
37953         Allow the user to avoid the GNULIB_TEST_* macros.
37954         * m4/gnulib-common.m4 (gl_ASSERT_NO_GNULIB_TESTS): New macro.
37955         Suggested by Paul Eggert.
37957 2011-01-14  Jim Meyering  <meyering@redhat.com>
37959         bootstrap: avoid failure when there is no .gitmodules file
37960         ": ${gnulib_path=gnulib}" fails to set $gnulib_path when that variable
37961         has been assigned to, even when its value is the empty string.
37962         * build-aux/bootstrap (gnulib_path): Test explicitly for an empty
37963         "$gnulib_path", rather than using ${gnulib_path=gnulib}.
37964         Reported by John W. Eaton <jwe@gnu.org>.
37966 2011-01-19  Paul Eggert  <eggert@cs.ucla.edu>
37968         assume <ctype.h>, ..., <time.h> exist
37969         For years gnulib has been assuming the existence of the headers
37970         <ctype.h>, <errno.h>, <fcntl.h>, <locale.h>, <signal.h>,
37971         <stdio.h>, <stdlib.h>, <string.h>, and <time.h>.  Omit checks for
37972         them, since they don't appear to be needed.
37973         * README (Portability guidelines): Document this.
37974         * lib/flock.c: Assume <fcntl.h> exists.
37975         * lib/regex_internal.h: Assume <locale.h> exists.
37976         * m4/ctype.m4 (gl_CTYPE_H): Assume <ctype.h> exists.
37977         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Assume <errno.h> exists.
37978         * m4/fcntl_h.m4 (gl_FCNTL_H): Assume <fcntl.h> exists.
37979         * m4/flock.m4 (gl_PREREQ_FLOCK): Likewise.
37980         * m4/locale_h.m4 (gl_LOCALE_H): Assume <locale.h> exists.
37981         * m4/regex.m4 (gl_REGEX): Likewise.
37982         * m4/signal_h.m4 (gl_SIGNAL_H): Assume <signal.h> exists.
37983         * m4/stdio_h.m4 (gl_STDIO_H): Assume <stdio.h> exists.
37984         * m4/stdlib_h.m4 (gl_STDLIB_H): Assume <stdlib.h> exists.
37985         * m4/string_h.m4 (gl_STRING_H): Assume <string.h> exists.
37986         * tests/test-argp.c: Likewise.
37987         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Assume <time.h> exists.
37989         multiarch: remove AA_APPLE_UNIVERSAL_BUILD
37990         * m4/multiarch.m4 (gl_MULTIARCH): Don't AC_DEFINE
37991         AA_APPLE_UNIVERSAL_BUILD.  See
37992         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00247.html>.
37993         * NEWS: Document this.
37995 2011-01-19  Eric Blake  <eblake@redhat.com>
37997         c-stack: assume stack overflow if SA_SIGINFO unsupported
37998         * lib/c-stack.c (SIGACTION_WORKS): Rename...
37999         (SIGINFO_WORKS): ...since gnulib module guarantees that (most) of
38000         sigaction will work.
38001         (die): Assume stack overflow if siginfo doesn't work, to let Haiku
38002         behavior match Linux.
38003         * tests/test-c-stack.c (main): Prefer NULL for pointers.
38005         stdbool-tests: accommodate Haiku
38006         * tests/test-stdbool.c: Haiku's gcc 2.95 lacks native _Bool.
38008         binary-io: fix O_TEXT on Haiku
38009         * modules/binary-io (Depends-on): Add fcntl-h.
38010         * lib/binary-io.h (O_TEXT): Rely on replacement <fcntl.h> rather
38011         than blindly undefining O_TEXT.
38012         Reported by Scott McCreary.
38014 2011-01-18  Paul Eggert  <eggert@cs.ucla.edu>
38016         include_next: do not check for standard headers like stddef.h
38018         I found this problem when modifying Emacs to use gnulib.
38019         I noticed that it added HAVE_STDDEF_H to config.h, even though
38020         gnulib always assumes <stddef.h> exists as per README and this
38021         symbol is unnecessary.
38022         * m4/include_next.m4 (gl_NEXT_HEADERS): New macro, which does not
38023         use AC_CHECK_HEADERS_ONCE, but which otherwise contains what
38024         gl_CHECK_NEXT_HEADERS used to contain.  This makes 'configure' run
38025         faster for headers like stddef.h that are known to exist.
38026         (gl_CHECK_NEXT_HEADERS): Use it.
38027         * m4/float_h.m4 (gl_FLOAT_H): For float.h, use gl_NEXT_HEADERS
38028         rather than gl_CHECK_NEXT_HEADERS.
38029         * m4/stdarg.m4 (gl_STDARG_H): Likewise, for stdarg.h.
38030         * m4/stddef_h.m4 (gl_STDDEF_H): Likewise, for stddef.h.
38032 2011-01-18  Eric Blake  <eblake@redhat.com>
38034         ansi-c++-opt: skip C++ dependency style if C++ is unused
38035         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): Avoid full-blown dependency
38036         tests when we know C++ compilation is not desired.
38037         Reported by Scott McCreary.
38039 2011-01-18  Bruno Haible  <bruno@clisp.org>
38041         *printf-posix: Avoid test failures. Make tests work on MacOS X, Cygwin.
38042         * tests/test-fprintf-posix3.c: Include "resource-ext.h".
38043         (main): Perform test also when getrlimit and setrlimit don't exist or
38044         when setrlimit of RLIMIT_DATA fails (like on Cygwin). Instead of
38045         limiting the address space size using setrlimit, compare the address
38046         space size before and after the test.
38047         * tests/test-dprintf-posix2.c: Likewise.
38048         * tests/test-fprintf-posix3.sh: Update skip messages.
38049         * tests/test-dprintf-posix2.sh: Likewise.
38050         * modules/fprintf-posix-tests (Depends-on): Add get-rusage-as.
38051         * modules/dprintf-posix-tests (Depends-on): Likewise.
38052         Reported by Bruce Korb <bkorb@gnu.org> and
38053         Gary V. Vaughan <gary@gnu.org>.
38055 2011-01-18  Bruno Haible  <bruno@clisp.org>
38057         get-rusage-as: Improvement for Cygwin.
38058         * lib/get-rusage-as.c (get_rusage_as_via_iterator): On Windows, ignore
38059         areas that are merely reserved.
38061 2011-01-18  Paul Eggert  <eggert@cs.ucla.edu>
38063         strftime: remove dependencies on multibyte modules
38065         strftime depended on mbrlen, mbsinit, and wchar, but these modules
38066         are needed only if ! MULTIBYTE_IS_FORMAT_SAFE, and that is true
38067         only if __osf__ is defined, and I suspect OSF doesn't need these
38068         other modules.  If my guess is wrong, we'll need to come up with a
38069         variant of strftime that doesn't need the multibyte modules.
38071         I discovered this problem when attempting modify Emacs to use the
38072         strftime module.  With the previous gnulib, this caused Emacs to
38073         need 31 new files, ranging from lib/config.charset to
38074         m4/wint_t.m4.  This was overkill and I expect would be offputting
38075         to the Emacs maintainers.  After this change, only 6 new files are
38076         needed, namely strftime.[ch], srtftime.m4, stdbool.in.h,
38077         stdbool.m4, and tm_gmtoff.m4.
38079         * lib/strftime.c (MULTIBYTE_IS_FORMAT_SAFE): Define to 1 always.
38080         Suggested by Bruno Haible in
38081         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00238.html>.
38082         * m4/strftime.m4 (gl_FUNC_STRFTIME): Do not require AC_TYPE_MBSTATE_T,
38083         and do not check for wchar.h.
38084         * modules/strftime (Files): Remove m4/mbstate_t.m4.
38085         (Depends-on): Remove mbrlen, mbsinit, wchar.
38087 2011-01-18  Bruno Haible  <bruno@clisp.org>
38089         Tests for module 'get-rusage-as'.
38090         * modules/get-rusage-as-tests: New file.
38091         * tests/test-get-rusage-as.c: New file.
38093         New module 'get-rusage-as'.
38094         * modules/get-rusage-as: New file.
38095         * lib/resource-ext.h: New file.
38096         * lib/get-rusage-as.c: New file.
38098 2011-01-17  Eric Blake  <eblake@redhat.com>
38100         sigaction: relax license from LGPLv3+ to LGPLv2+
38101         * modules/sigaction (License): Relax to LGPLv2+.
38103 2011-01-14  Bruno Haible  <bruno@clisp.org>
38105         filemode: Make function declarations usable in C++ mode.
38106         * lib/filemode.h: Enclose function declarations in extern "C" block.
38107         Reported by John W. Eaton <jwe@gnu.org>.
38109 2011-01-12  Rob Vermaas  <rob.vermaas@gmail.com>
38111         save-cwd: no longer include "xgetcwd.h"
38112         * lib/save-cwd.c: Don't include "xgetcwd.h"; it's no longer used.
38113         This avoids a compilation failure in projects that use save-cwd
38114         without also using the xgetcwd module.
38116 2011-01-11  Paul Eggert  <eggert@cs.ucla.edu>
38118         ftoastr: split into 3 modules ftoastr, dtoastr, ldtoastr
38119         This is so that a program like Emacs, which needs only dtoastr,
38120         does not have to bother with distributing and compiling ftoastr
38121         and ldtoastr.
38122         * MODULES.html.sh: Document these modules (ftoastr wasn't documented).
38123         * modules/dtoastr, modules/ldtoastr: New files.
38124         * modules/ftoastr: Now works just for 'float'.
38125         (Files): Remove lib/dtoastr.c, lib/ldtoastr.c.
38126         (Makefile.am): Remove ftoastr.h (not needed and no effect),
38127         dtoastr.c, ldtoastr.c.
38129 2011-01-11  Jim Meyering  <meyering@redhat.com>
38131         save-cwd: remove #if-!HAVE_FCHDIR'd code; use the fchdir module
38132         There is no need to work around the lack of the fchdir function,
38133         since gnulib can now provide a replacement when required.
38134         * lib/save-cwd.c: Remove #if !HAVE_FCHDIR...#endif code.
38135         * modules/save-cwd (Depends-on): Add fchdir.
38137 2011-01-11  Paul Eggert  <eggert@cs.ucla.edu>
38139         openat, save-cwd: avoid xmalloc
38141         This removes a direct (but undocumented) dependency of openat on
38142         xalloc, along with an indirect dependency via save-cwd.  It also
38143         removes a dependency of save-cwd on xgetcwd, and thereby
38144         indirectly on xalloc.  This change causes the openat substitute
38145         to fall back on save_cwd when memory is tight, and for save_cwd to
38146         fail instead of dying when memory is tight, but that's good enough.
38147         Problem and initial idea for fix reported by Bastien Roucaries in
38148         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00170.html>.
38150         * lib/openat-proc.c: Include stdlib.h (for malloc), not
38151         xalloc.h (for xmalloc).
38152         (openat_proc_name): Use malloc, not xmalloc.
38153         * lib/save-cwd.c (save_cwd): Use getcwd, not xgetcwd.
38154         * modules/save-cwd (Files): Depend on getcwd, not xgetcwd.
38156         openat: Increase OPENAT_BUFFER_SIZE from 512 to at least 1024
38157         This avoids heap allocation for file names whose lengths are in
38158         the range 512..1023, with the upper bound increasing to at most
38159         4031 depending on the platform's PATH_MAX.  (We do not want
38160         pathmax.h here as it might supply a non-constant PATH_MAX.)
38161         * lib/openat-priv.h (SAFER_ALLOCA_MAX, SAFER_ALLOCA): New macros.
38162         Perhaps they should be moved to malloca.h?
38163         (OPENAT_BUFFER_SIZE): Use them.
38165 2011-01-10  Bruno Haible  <bruno@clisp.org>
38167         doc: Update users.txt.
38168         * users.txt: Add recutils.
38170 2011-01-09  Karl Berry  <karl@gnu.org>
38172         * doc/posix-functions/gai_strerror.texi: Insert missing @item.
38174         * doc/configmake.texi: New file.
38175         * doc/gnulib.texi: Include it.
38176         * modules/configmake: Move documentation from here.
38178 2011-01-09  Bruno Haible  <bruno@clisp.org>
38180         Update to Unicode 6.0.0.
38181         * lib/gen-uni-tables.c (symbolic_width): Fix bounds of planes.
38182         (get_lbp): Update for Unicode 6.0.0.
38183         * lib/uniwidth/width.c (nonspacing_table_data): Add U+065F,
38184         U+0859..U+085B, U+093A, U+0956..U+0957, U+0F8D..U+0F8F, U+135D..U+135E,
38185         U+1BE6, U+1BE8..U+1BE9, U+1BED, U+1BEF..U+1BF1, U+1DFC, U+2D7F,
38186         U+11001, U+11038..U+11046. Remove U+06DE.
38187         (uc_width): Fix bounds of planes.
38188         * tests/uniwidth/test-uc_width2.sh: Same updates as in
38189         lib/uniwidth/width.c.
38190         * tests/unigbrk/GraphemeBreakTest.txt: Copied from Unicode 6.0.0, with
38191         trailing whitespace removed.
38192         * tests/uninorm/NormalizationTest.txt: Update from Unicode 6.0.0,
38193         without comments, but with the original copyright notice.
38194         * lib/unicase/cased.h: Regenerated for Unicode 6.0.0.
38195         * lib/unicase/ignorable.h: Likewise.
38196         * lib/unicase/tocasefold.h: Likewise.
38197         * lib/unicase/tolower.h: Likewise.
38198         * lib/unicase/totitle.h: Likewise.
38199         * lib/unicase/toupper.h: Likewise.
38200         * lib/unictype/bidi_of.h: Likewise.
38201         * lib/unictype/blocks.h: Likewise.
38202         * lib/unictype/categ_C.h: Likewise.
38203         * lib/unictype/categ_Cn.h: Likewise.
38204         * lib/unictype/categ_L.h: Likewise.
38205         * lib/unictype/categ_Ll.h: Likewise.
38206         * lib/unictype/categ_Lm.h: Likewise.
38207         * lib/unictype/categ_Lo.h: Likewise.
38208         * lib/unictype/categ_Lu.h: Likewise.
38209         * lib/unictype/categ_M.h: Likewise.
38210         * lib/unictype/categ_Mc.h: Likewise.
38211         * lib/unictype/categ_Me.h: Likewise.
38212         * lib/unictype/categ_Mn.h: Likewise.
38213         * lib/unictype/categ_N.h: Likewise.
38214         * lib/unictype/categ_Nd.h: Likewise.
38215         * lib/unictype/categ_No.h: Likewise.
38216         * lib/unictype/categ_P.h: Likewise.
38217         * lib/unictype/categ_Po.h: Likewise.
38218         * lib/unictype/categ_S.h: Likewise.
38219         * lib/unictype/categ_Sc.h: Likewise.
38220         * lib/unictype/categ_Sk.h: Likewise.
38221         * lib/unictype/categ_Sm.h: Likewise.
38222         * lib/unictype/categ_So.h: Likewise.
38223         * lib/unictype/categ_of.h: Likewise.
38224         * lib/unictype/combining.h: Likewise.
38225         * lib/unictype/ctype_alnum.h: Likewise.
38226         * lib/unictype/ctype_alpha.h: Likewise.
38227         * lib/unictype/ctype_graph.h: Likewise.
38228         * lib/unictype/ctype_lower.h: Likewise.
38229         * lib/unictype/ctype_print.h: Likewise.
38230         * lib/unictype/ctype_punct.h: Likewise.
38231         * lib/unictype/ctype_upper.h: Likewise.
38232         * lib/unictype/decdigit.h: Likewise.
38233         * lib/unictype/digit.h: Likewise.
38234         * lib/unictype/numeric.h: Likewise.
38235         * lib/unictype/pr_alphabetic.h: Likewise.
38236         * lib/unictype/pr_bidi_arabic_digit.h: Likewise.
38237         * lib/unictype/pr_bidi_arabic_right_to_left.h: Likewise.
38238         * lib/unictype/pr_bidi_boundary_neutral.h: Likewise.
38239         * lib/unictype/pr_bidi_eur_num_terminator.h: Likewise.
38240         * lib/unictype/pr_bidi_hebrew_right_to_left.h: Likewise.
38241         * lib/unictype/pr_bidi_left_to_right.h: Likewise.
38242         * lib/unictype/pr_bidi_non_spacing_mark.h: Likewise.
38243         * lib/unictype/pr_bidi_other_neutral.h: Likewise.
38244         * lib/unictype/pr_case_ignorable.h: Likewise.
38245         * lib/unictype/pr_cased.h: Likewise.
38246         * lib/unictype/pr_changes_when_casefolded.h: Likewise.
38247         * lib/unictype/pr_changes_when_casemapped.h: Likewise.
38248         * lib/unictype/pr_changes_when_lowercased.h: Likewise.
38249         * lib/unictype/pr_changes_when_titlecased.h: Likewise.
38250         * lib/unictype/pr_changes_when_uppercased.h: Likewise.
38251         * lib/unictype/pr_combining.h: Likewise.
38252         * lib/unictype/pr_composite.h: Likewise.
38253         * lib/unictype/pr_currency_symbol.h: Likewise.
38254         * lib/unictype/pr_decimal_digit.h: Likewise.
38255         * lib/unictype/pr_deprecated.h: Likewise.
38256         * lib/unictype/pr_format_control.h: Likewise.
38257         * lib/unictype/pr_grapheme_base.h: Likewise.
38258         * lib/unictype/pr_grapheme_extend.h: Likewise.
38259         * lib/unictype/pr_grapheme_link.h: Likewise.
38260         * lib/unictype/pr_id_continue.h: Likewise.
38261         * lib/unictype/pr_id_start.h: Likewise.
38262         * lib/unictype/pr_ideographic.h: Likewise.
38263         * lib/unictype/pr_lowercase.h: Likewise.
38264         * lib/unictype/pr_math.h: Likewise.
38265         * lib/unictype/pr_numeric.h: Likewise.
38266         * lib/unictype/pr_other_alphabetic.h: Likewise.
38267         * lib/unictype/pr_other_id_continue.h: Likewise.
38268         * lib/unictype/pr_other_math.h: Likewise.
38269         * lib/unictype/pr_punctuation.h: Likewise.
38270         * lib/unictype/pr_sentence_terminal.h: Likewise.
38271         * lib/unictype/pr_terminal_punctuation.h: Likewise.
38272         * lib/unictype/pr_unassigned_code_value.h: Likewise.
38273         * lib/unictype/pr_unified_ideograph.h: Likewise.
38274         * lib/unictype/pr_uppercase.h: Likewise.
38275         * lib/unictype/pr_xid_continue.h: Likewise.
38276         * lib/unictype/pr_xid_start.h: Likewise.
38277         * lib/unictype/scripts.h: Likewise.
38278         * lib/unictype/scripts_byname.gperf: Likewise.
38279         * lib/unictype/sy_java_ident.h: Likewise.
38280         * lib/unigbrk/gbrkprop.h: Likewise.
38281         * lib/unilbrk/lbrkprop1.h: Likewise.
38282         * lib/unilbrk/lbrkprop2.h: Likewise.
38283         * lib/uninorm/decomposition-table2.h: Likewise.
38284         * lib/uniwbrk/wbrkprop.h: Likewise.
38285         * tests/unicase/test-cased.c: Likewise.
38286         * tests/unicase/test-ignorable.c: Likewise.
38287         * tests/unicase/test-uc_tolower.c: Likewise.
38288         * tests/unicase/test-uc_totitle.c: Likewise.
38289         * tests/unicase/test-uc_toupper.c: Likewise.
38290         * tests/unictype/test-categ_C.c: Likewise.
38291         * tests/unictype/test-categ_Cn.c: Likewise.
38292         * tests/unictype/test-categ_L.c: Likewise.
38293         * tests/unictype/test-categ_Ll.c: Likewise.
38294         * tests/unictype/test-categ_Lm.c: Likewise.
38295         * tests/unictype/test-categ_Lo.c: Likewise.
38296         * tests/unictype/test-categ_Lu.c: Likewise.
38297         * tests/unictype/test-categ_M.c: Likewise.
38298         * tests/unictype/test-categ_Mc.c: Likewise.
38299         * tests/unictype/test-categ_Me.c: Likewise.
38300         * tests/unictype/test-categ_Mn.c: Likewise.
38301         * tests/unictype/test-categ_N.c: Likewise.
38302         * tests/unictype/test-categ_Nd.c: Likewise.
38303         * tests/unictype/test-categ_No.c: Likewise.
38304         * tests/unictype/test-categ_P.c: Likewise.
38305         * tests/unictype/test-categ_Po.c: Likewise.
38306         * tests/unictype/test-categ_S.c: Likewise.
38307         * tests/unictype/test-categ_Sc.c: Likewise.
38308         * tests/unictype/test-categ_Sk.c: Likewise.
38309         * tests/unictype/test-categ_Sm.c: Likewise.
38310         * tests/unictype/test-categ_So.c: Likewise.
38311         * tests/unictype/test-ctype_alnum.c: Likewise.
38312         * tests/unictype/test-ctype_alpha.c: Likewise.
38313         * tests/unictype/test-ctype_graph.c: Likewise.
38314         * tests/unictype/test-ctype_lower.c: Likewise.
38315         * tests/unictype/test-ctype_print.c: Likewise.
38316         * tests/unictype/test-ctype_punct.c: Likewise.
38317         * tests/unictype/test-ctype_upper.c: Likewise.
38318         * tests/unictype/test-decdigit.h: Likewise.
38319         * tests/unictype/test-digit.h: Likewise.
38320         * tests/unictype/test-numeric.h: Likewise.
38321         * tests/unictype/test-pr_alphabetic.c: Likewise.
38322         * tests/unictype/test-pr_bidi_arabic_digit.c: Likewise.
38323         * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Likewise.
38324         * tests/unictype/test-pr_bidi_boundary_neutral.c: Likewise.
38325         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Likewise.
38326         * tests/unictype/test-pr_bidi_hebrew_right_to_left.c: Likewise.
38327         * tests/unictype/test-pr_bidi_left_to_right.c: Likewise.
38328         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Likewise.
38329         * tests/unictype/test-pr_bidi_other_neutral.c: Likewise.
38330         * tests/unictype/test-pr_case_ignorable.c: Likewise.
38331         * tests/unictype/test-pr_cased.c: Likewise.
38332         * tests/unictype/test-pr_changes_when_casefolded.c: Likewise.
38333         * tests/unictype/test-pr_changes_when_casemapped.c: Likewise.
38334         * tests/unictype/test-pr_changes_when_lowercased.c: Likewise.
38335         * tests/unictype/test-pr_changes_when_titlecased.c: Likewise.
38336         * tests/unictype/test-pr_changes_when_uppercased.c: Likewise.
38337         * tests/unictype/test-pr_combining.c: Likewise.
38338         * tests/unictype/test-pr_composite.c: Likewise.
38339         * tests/unictype/test-pr_currency_symbol.c: Likewise.
38340         * tests/unictype/test-pr_decimal_digit.c: Likewise.
38341         * tests/unictype/test-pr_deprecated.c: Likewise.
38342         * tests/unictype/test-pr_format_control.c: Likewise.
38343         * tests/unictype/test-pr_grapheme_base.c: Likewise.
38344         * tests/unictype/test-pr_grapheme_extend.c: Likewise.
38345         * tests/unictype/test-pr_grapheme_link.c: Likewise.
38346         * tests/unictype/test-pr_id_continue.c: Likewise.
38347         * tests/unictype/test-pr_id_start.c: Likewise.
38348         * tests/unictype/test-pr_ideographic.c: Likewise.
38349         * tests/unictype/test-pr_lowercase.c: Likewise.
38350         * tests/unictype/test-pr_math.c: Likewise.
38351         * tests/unictype/test-pr_numeric.c: Likewise.
38352         * tests/unictype/test-pr_other_alphabetic.c: Likewise.
38353         * tests/unictype/test-pr_other_id_continue.c: Likewise.
38354         * tests/unictype/test-pr_other_math.c: Likewise.
38355         * tests/unictype/test-pr_punctuation.c: Likewise.
38356         * tests/unictype/test-pr_sentence_terminal.c: Likewise.
38357         * tests/unictype/test-pr_terminal_punctuation.c: Likewise.
38358         * tests/unictype/test-pr_unassigned_code_value.c: Likewise.
38359         * tests/unictype/test-pr_unified_ideograph.c: Likewise.
38360         * tests/unictype/test-pr_uppercase.c: Likewise.
38361         * tests/unictype/test-pr_xid_continue.c: Likewise.
38362         * tests/unictype/test-pr_xid_start.c: Likewise.
38363         * tests/unigbrk/test-uc-gbrk-prop.h: Likewise.
38364         * lib/unicase/special-casing-table.gperf: Regenerated; only comment
38365         changes.
38366         * lib/unictype/categ_Cc.h: Likewise.
38367         * lib/unictype/categ_Cf.h: Likewise.
38368         * lib/unictype/categ_Co.h: Likewise.
38369         * lib/unictype/categ_Cs.h: Likewise.
38370         * lib/unictype/categ_Lt.h: Likewise.
38371         * lib/unictype/categ_Nl.h: Likewise.
38372         * lib/unictype/categ_Pc.h: Likewise.
38373         * lib/unictype/categ_Pd.h: Likewise.
38374         * lib/unictype/categ_Pe.h: Likewise.
38375         * lib/unictype/categ_Pf.h: Likewise.
38376         * lib/unictype/categ_Pi.h: Likewise.
38377         * lib/unictype/categ_Ps.h: Likewise.
38378         * lib/unictype/categ_Z.h: Likewise.
38379         * lib/unictype/categ_Zl.h: Likewise.
38380         * lib/unictype/categ_Zp.h: Likewise.
38381         * lib/unictype/categ_Zs.h: Likewise.
38382         * lib/unictype/ctype_blank.h: Likewise.
38383         * lib/unictype/ctype_cntrl.h: Likewise.
38384         * lib/unictype/ctype_digit.h: Likewise.
38385         * lib/unictype/ctype_space.h: Likewise.
38386         * lib/unictype/ctype_xdigit.h: Likewise.
38387         * lib/unictype/mirror.h: Likewise.
38388         * lib/unictype/pr_ascii_hex_digit.h: Likewise.
38389         * lib/unictype/pr_bidi_block_separator.h: Likewise.
38390         * lib/unictype/pr_bidi_common_separator.h: Likewise.
38391         * lib/unictype/pr_bidi_control.h: Likewise.
38392         * lib/unictype/pr_bidi_embedding_or_override.h: Likewise.
38393         * lib/unictype/pr_bidi_eur_num_separator.h: Likewise.
38394         * lib/unictype/pr_bidi_european_digit.h: Likewise.
38395         * lib/unictype/pr_bidi_pdf.h: Likewise.
38396         * lib/unictype/pr_bidi_segment_separator.h: Likewise.
38397         * lib/unictype/pr_bidi_whitespace.h: Likewise.
38398         * lib/unictype/pr_dash.h: Likewise.
38399         * lib/unictype/pr_default_ignorable_code_point.h: Likewise.
38400         * lib/unictype/pr_diacritic.h: Likewise.
38401         * lib/unictype/pr_extender.h: Likewise.
38402         * lib/unictype/pr_hex_digit.h: Likewise.
38403         * lib/unictype/pr_hyphen.h: Likewise.
38404         * lib/unictype/pr_ids_binary_operator.h: Likewise.
38405         * lib/unictype/pr_ids_trinary_operator.h: Likewise.
38406         * lib/unictype/pr_ignorable_control.h: Likewise.
38407         * lib/unictype/pr_iso_control.h: Likewise.
38408         * lib/unictype/pr_join_control.h: Likewise.
38409         * lib/unictype/pr_left_of_pair.h: Likewise.
38410         * lib/unictype/pr_line_separator.h: Likewise.
38411         * lib/unictype/pr_logical_order_exception.h: Likewise.
38412         * lib/unictype/pr_non_break.h: Likewise.
38413         * lib/unictype/pr_not_a_character.h: Likewise.
38414         * lib/unictype/pr_other_default_ignorable_code_point.h: Likewise.
38415         * lib/unictype/pr_other_grapheme_extend.h: Likewise.
38416         * lib/unictype/pr_other_id_start.h: Likewise.
38417         * lib/unictype/pr_other_lowercase.h: Likewise.
38418         * lib/unictype/pr_other_uppercase.h: Likewise.
38419         * lib/unictype/pr_paired_punctuation.h: Likewise.
38420         * lib/unictype/pr_paragraph_separator.h: Likewise.
38421         * lib/unictype/pr_pattern_syntax.h: Likewise.
38422         * lib/unictype/pr_pattern_white_space.h: Likewise.
38423         * lib/unictype/pr_private_use.h: Likewise.
38424         * lib/unictype/pr_quotation_mark.h: Likewise.
38425         * lib/unictype/pr_radical.h: Likewise.
38426         * lib/unictype/pr_soft_dotted.h: Likewise.
38427         * lib/unictype/pr_space.h: Likewise.
38428         * lib/unictype/pr_titlecase.h: Likewise.
38429         * lib/unictype/pr_variation_selector.h: Likewise.
38430         * lib/unictype/pr_white_space.h: Likewise.
38431         * lib/unictype/pr_zero_width.h: Likewise.
38432         * lib/unictype/sy_c_ident.h: Likewise.
38433         * lib/unictype/sy_c_whitespace.h: Likewise.
38434         * lib/unictype/sy_java_whitespace.h: Likewise.
38435         * lib/uninorm/composition-table.gperf: Likewise.
38436         * lib/uninorm/decomposition-table1.h: Likewise.
38437         * tests/unilbrk/test-u8-possible-linebreaks.c (main): Add test for rule
38438         LB8.
38439         * tests/unilbrk/test-u16-possible-linebreaks.c (main): Likewise.
38440         * tests/unilbrk/test-u32-possible-linebreaks.c (main): Likewise.
38441         * modules/unictype/*: Bump version number of expected libunistring
38442         version.
38444 2011-01-09  Bruno Haible  <bruno@clisp.org>
38446         Update to Unicode 5.2.0.
38447         * tests/unigbrk/GraphemeBreakTest.txt: Copied from Unicode 5.2.0, with
38448         trailing whitespace removed.
38450 2011-01-09  Bruno Haible  <bruno@clisp.org>
38452         New Unicode character properties, from Unicode 5.2.0.
38453         * lib/unictype.in.h (UC_PROPERTY_CASED, UC_PROPERTY_CASE_IGNORABLE,
38454         UC_PROPERTY_CHANGES_WHEN_LOWERCASED,
38455         UC_PROPERTY_CHANGES_WHEN_UPPERCASED,
38456         UC_PROPERTY_CHANGES_WHEN_TITLECASED,
38457         UC_PROPERTY_CHANGES_WHEN_CASEFOLDED,
38458         UC_PROPERTY_CHANGES_WHEN_CASEMAPPED,
38459         uc_is_property_cased, uc_is_property_case_ignorable,
38460         uc_is_property_changes_when_lowercased,
38461         uc_is_property_changes_when_uppercased,
38462         uc_is_property_changes_when_titlecased,
38463         uc_is_property_changes_when_casefolded,
38464         uc_is_property_changes_when_casemapped): New declarations.
38465         * lib/unictype/pr_byname.gperf: Add the new properties.
38466         * modules/unictype/property-byname (Depends-on): Depend on the new
38467         properties modules.
38468         * modules/unictype/property-all (Depends-on): Likewise.
38469         * MODULES.html.sh (Unicode string functions): Add
38470         unictype/property-case-ignorable, unictype/property-cased,
38471         unictype/property-changes-when-casefolded,
38472         unictype/property-changes-when-casemapped,
38473         unictype/property-changes-when-lowercased,
38474         unictype/property-changes-when-titlecased,
38475         unictype/property-changes-when-uppercased.
38477         New module 'unictype/property-changes-when-casemapped'.
38478         * modules/unictype/property-changes-when-casemapped: New file.
38479         * lib/unictype/pr_changes_when_casemapped.c: New file.
38480         * lib/unictype/pr_changes_when_casemapped.h: New file, automatically
38481         generated by gen-uni-tables.
38482         * modules/unictype/property-changes-when-casemapped-tests: New file.
38483         * tests/unictype/test-pr_changes_when_casemapped.c: New file,
38484         automatically generated by gen-uni-tables.
38486         New module 'unictype/property-changes-when-casefolded'.
38487         * modules/unictype/property-changes-when-casefolded: New file.
38488         * lib/unictype/pr_changes_when_casefolded.c: New file.
38489         * lib/unictype/pr_changes_when_casefolded.h: New file, automatically
38490         generated by gen-uni-tables.
38491         * modules/unictype/property-changes-when-casefolded-tests: New file.
38492         * tests/unictype/test-pr_changes_when_casefolded.c: New file,
38493         automatically generated by gen-uni-tables.
38495         New module 'unictype/property-changes-when-titlecased'.
38496         * modules/unictype/property-changes-when-titlecased: New file.
38497         * lib/unictype/pr_changes_when_titlecased.c: New file.
38498         * lib/unictype/pr_changes_when_titlecased.h: New file, automatically
38499         generated by gen-uni-tables.
38500         * modules/unictype/property-changes-when-titlecased-tests: New file.
38501         * tests/unictype/test-pr_changes_when_titlecased.c: New file,
38502         automatically generated by gen-uni-tables.
38504         New module 'unictype/property-changes-when-uppercased'.
38505         * modules/unictype/property-changes-when-uppercased: New file.
38506         * lib/unictype/pr_changes_when_uppercased.c: New file.
38507         * lib/unictype/pr_changes_when_uppercased.h: New file, automatically
38508         generated by gen-uni-tables.
38509         * modules/unictype/property-changes-when-uppercased-tests: New file.
38510         * tests/unictype/test-pr_changes_when_uppercased.c: New file,
38511         automatically generated by gen-uni-tables.
38513         New module 'unictype/property-changes-when-lowercased'.
38514         * modules/unictype/property-changes-when-lowercased: New file.
38515         * lib/unictype/pr_changes_when_lowercased.c: New file.
38516         * lib/unictype/pr_changes_when_lowercased.h: New file, automatically
38517         generated by gen-uni-tables.
38518         * modules/unictype/property-changes-when-lowercased-tests: New file.
38519         * tests/unictype/test-pr_changes_when_lowercased.c: New file,
38520         automatically generated by gen-uni-tables.
38522         New module 'unictype/property-case-ignorable'.
38523         * modules/unictype/property-case-ignorable: New file.
38524         * lib/unictype/pr_case_ignorable.c: New file.
38525         * lib/unictype/pr_case_ignorable.h: New file, automatically generated
38526         by gen-uni-tables.
38527         * modules/unictype/property-case-ignorable-tests: New file.
38528         * tests/unictype/test-pr_case_ignorable.c: New file, automatically
38529         generated by gen-uni-tables.
38531         New module 'unictype/property-cased'.
38532         * modules/unictype/property-cased: New file.
38533         * lib/unictype/pr_cased.c: New file.
38534         * lib/unictype/pr_cased.h: New file, automatically generated by
38535         gen-uni-tables.
38536         * modules/unictype/property-cased-tests: New file.
38537         * tests/unictype/test-pr_cased.c: New file, automatically generated by
38538         gen-uni-tables.
38540 2011-01-09  Bruno Haible  <bruno@clisp.org>
38542         Update to Unicode 5.2.0.
38543         * lib/gen-uni-tables.c (output_predicate, output_category,
38544         output_combclass, output_bidi_category, output_decimal_digit_test,
38545         output_decimal_digit, output_digit_test, output_digit,
38546         output_numeric_test, output_numeric, output_mirror, output_scripts,
38547         output_scripts_byname, output_blocks, output_ident_category): Fix
38548         comment header.
38549         (is_WBP_MIDNUMLET, is_WBP_MIDLETTER): New functions, extracted from
38550         get_wbp.
38551         (PROP_CASED, PROP_CASE_IGNORABLE, PROP_CHANGES_WHEN_*): New enumeration
38552         items.
38553         (fill_properties): Also fill the peoperties Cased, Case_Ignorable,
38554         Changes_When_Lowercased, Changes_When_Uppercased,
38555         Changes_When_Titlecased, Changes_When_Casefolded,
38556         Changes_When_Casemapped.
38557         (is_property_alphabetic, is_property_default_ignorable_code_point):
38558         Update for Unicode 5.2.0.
38559         (is_property_cased, is_property_case_ignorable,
38560         is_property_changes_when_lowercased,
38561         is_property_changes_when_uppercased,
38562         is_property_changes_when_titlecased,
38563         is_property_changes_when_casefolded,
38564         is_property_changes_when_casemapped): New functions.
38565         (output_properties): Output also the properties cased, case_ignorable,
38566         changes_when_lowercased, changes_when_uppercased,
38567         changes_when_titlecased, changes_when_casefolded,
38568         changes_when_casemapped.
38569         (symbolic_width): Update for Unicode 5.2.0, incorporating changes from
38570         Unicode TR#11 revision 17 -> 19.
38571         (LBP_CP): New enumeration value.
38572         (LBP_*): Adjust values accordingly.
38573         (get_lbp): Update for Unicode 5.2.0, incorporating changes from Unicode
38574         TR#14 revision 22 -> 24.
38575         (debug_output_lbp): Allow for LBP_* bits >= 32. Support LBP_CP.
38576         (fill_org_lbp, debug_output_org_lbp, output_lbp): Support LBP_CP.
38577         (get_wbp): Update for Unicode 5.2.0, incorporating changes from Unicode
38578         TR#29 revision 13 -> 15. Use functions is_WBP_MIDNUMLET,
38579         is_WBP_MIDLETTER.
38580         (output_composition_tables): Allow for 24 bits instead of 16 bits in
38581         the code1 and code2 of each composition rule.
38582         * lib/unicase/cased.h: Regenerated for Unicode 5.2.0.
38583         * lib/unicase/ignorable.h: Likewise.
38584         * lib/unicase/tocasefold.h: Likewise.
38585         * lib/unicase/tolower.h: Likewise.
38586         * lib/unicase/totitle.h: Likewise.
38587         * lib/unicase/toupper.h: Likewise.
38588         * lib/unictype/bidi_of.h: Likewise.
38589         * lib/unictype/blocks.h: Likewise.
38590         * lib/unictype/categ_C.h: Likewise.
38591         * lib/unictype/categ_Cf.h: Likewise.
38592         * lib/unictype/categ_Cn.h: Likewise.
38593         * lib/unictype/categ_L.h: Likewise.
38594         * lib/unictype/categ_Ll.h: Likewise.
38595         * lib/unictype/categ_Lm.h: Likewise.
38596         * lib/unictype/categ_Lo.h: Likewise.
38597         * lib/unictype/categ_Lu.h: Likewise.
38598         * lib/unictype/categ_M.h: Likewise.
38599         * lib/unictype/categ_Mc.h: Likewise.
38600         * lib/unictype/categ_Mn.h: Likewise.
38601         * lib/unictype/categ_N.h: Likewise.
38602         * lib/unictype/categ_Nd.h: Likewise.
38603         * lib/unictype/categ_Nl.h: Likewise.
38604         * lib/unictype/categ_No.h: Likewise.
38605         * lib/unictype/categ_P.h: Likewise.
38606         * lib/unictype/categ_Pd.h: Likewise.
38607         * lib/unictype/categ_Po.h: Likewise.
38608         * lib/unictype/categ_S.h: Likewise.
38609         * lib/unictype/categ_Sc.h: Likewise.
38610         * lib/unictype/categ_So.h: Likewise.
38611         * lib/unictype/categ_of.h: Likewise.
38612         * lib/unictype/combining.h: Likewise.
38613         * lib/unictype/ctype_alnum.h: Likewise.
38614         * lib/unictype/ctype_alpha.h: Likewise.
38615         * lib/unictype/ctype_graph.h: Likewise.
38616         * lib/unictype/ctype_lower.h: Likewise.
38617         * lib/unictype/ctype_print.h: Likewise.
38618         * lib/unictype/ctype_punct.h: Likewise.
38619         * lib/unictype/ctype_upper.h: Likewise.
38620         * lib/unictype/decdigit.h: Likewise.
38621         * lib/unictype/digit.h: Likewise.
38622         * lib/unictype/numeric.h: Likewise.
38623         * lib/unictype/pr_alphabetic.h: Likewise.
38624         * lib/unictype/pr_bidi_arabic_digit.h: Likewise.
38625         * lib/unictype/pr_bidi_eur_num_terminator.h: Likewise.
38626         * lib/unictype/pr_bidi_european_digit.h: Likewise.
38627         * lib/unictype/pr_bidi_hebrew_right_to_left.h: Likewise.
38628         * lib/unictype/pr_bidi_left_to_right.h: Likewise.
38629         * lib/unictype/pr_bidi_non_spacing_mark.h: Likewise.
38630         * lib/unictype/pr_bidi_other_neutral.h: Likewise.
38631         * lib/unictype/pr_combining.h: Likewise.
38632         * lib/unictype/pr_composite.h: Likewise.
38633         * lib/unictype/pr_currency_symbol.h: Likewise.
38634         * lib/unictype/pr_dash.h: Likewise.
38635         * lib/unictype/pr_decimal_digit.h: Likewise.
38636         * lib/unictype/pr_deprecated.h: Likewise.
38637         * lib/unictype/pr_diacritic.h: Likewise.
38638         * lib/unictype/pr_extender.h: Likewise.
38639         * lib/unictype/pr_grapheme_base.h: Likewise.
38640         * lib/unictype/pr_grapheme_extend.h: Likewise.
38641         * lib/unictype/pr_grapheme_link.h: Likewise.
38642         * lib/unictype/pr_id_continue.h: Likewise.
38643         * lib/unictype/pr_id_start.h: Likewise.
38644         * lib/unictype/pr_ideographic.h: Likewise.
38645         * lib/unictype/pr_ignorable_control.h: Likewise.
38646         * lib/unictype/pr_logical_order_exception.h: Likewise.
38647         * lib/unictype/pr_lowercase.h: Likewise.
38648         * lib/unictype/pr_numeric.h: Likewise.
38649         * lib/unictype/pr_other_alphabetic.h: Likewise.
38650         * lib/unictype/pr_punctuation.h: Likewise.
38651         * lib/unictype/pr_sentence_terminal.h: Likewise.
38652         * lib/unictype/pr_terminal_punctuation.h: Likewise.
38653         * lib/unictype/pr_unassigned_code_value.h: Likewise.
38654         * lib/unictype/pr_unified_ideograph.h: Likewise.
38655         * lib/unictype/pr_uppercase.h: Likewise.
38656         * lib/unictype/pr_xid_continue.h: Likewise.
38657         * lib/unictype/pr_xid_start.h: Likewise.
38658         * lib/unictype/pr_zero_width.h: Likewise.
38659         * lib/unictype/scripts.h: Likewise.
38660         * lib/unictype/scripts_byname.gperf: Likewise.
38661         * lib/unictype/sy_java_ident.h: Likewise.
38662         * lib/unigbrk/gbrkprop.h: Likewise.
38663         * lib/unilbrk/lbrkprop1.h: Likewise.
38664         * lib/unilbrk/lbrkprop2.h: Likewise.
38665         * lib/unilbrk/lbrktables.h: Likewise.
38666         * lib/unilbrk/lbrktables.c (unilbrk_table): Add a row and column for
38667         LBP_CP. Implement rule LB30.
38668         * lib/uniwidth/width.c (nonspacing_table_data): Add U+0816..U+0819,
38669         U+081B..U+0823, U+0825..U+0827, U+0829..U+082D, U+0900, U+0955, U+109D,
38670         U+1A56, U+1A58..U+1A5E, U+1A60, U+1A62, U+1A65..U+1A6C, U+1A73..U+1A7C,
38671         U+1A7F, U+1CD0..U+1CD2, U+1CD4..U+1CE0, U+1CE2..U+1CE8, U+1CED, U+1DFD,
38672         U+2CEF..U+2CF1, U+A6F0..U+A6F1, U+A8E0..U+A8F1, U+A980..U+A982, U+A9B3,
38673         U+A9B6..U+A9B9, U+A9BC, U+AAB0, U+AAB2..U+AAB4, U+AAB7..U+AAB8,
38674         U+AABE..U+AABF, U+AAC1, U+ABE5, U+ABE8, U+ABED, U+11080..U+11081,
38675         U+110B3..U+110B6, U+110B9..U+110BA, U+110BD.
38676         (uc_width): Return 2 also for unassigned code points of planes 2 and 3.
38677         * lib/uninorm/composition-table.gperf: Regenerated for Unicode 5.2.0.
38678         * lib/uninorm/composition.c (struct composition_rule): Allow for 24
38679         bits instead of 16 bits in the code1 and code2 of each composition
38680         rule.
38681         (uc_composition): Update for Unicode 5.2.0.
38682         * lib/uninorm/decomposition-table1.h: Regenerated for Unicode 5.2.0.
38683         * lib/uninorm/decomposition-table2.h: Likewise.
38684         * lib/uniwbrk/wbrkprop.h: Likewise.
38685         * tests/unicase/test-cased.c: Likewise.
38686         * tests/unicase/test-ignorable.c: Likewise.
38687         * tests/unicase/test-uc_tolower.c: Likewise.
38688         * tests/unicase/test-uc_totitle.c: Likewise.
38689         * tests/unicase/test-uc_toupper.c: Likewise.
38690         * tests/unictype/test-categ_C.c: Likewise.
38691         * tests/unictype/test-categ_Cf.c: Likewise.
38692         * tests/unictype/test-categ_Cn.c: Likewise.
38693         * tests/unictype/test-categ_L.c: Likewise.
38694         * tests/unictype/test-categ_Ll.c: Likewise.
38695         * tests/unictype/test-categ_Lm.c: Likewise.
38696         * tests/unictype/test-categ_Lo.c: Likewise.
38697         * tests/unictype/test-categ_Lu.c: Likewise.
38698         * tests/unictype/test-categ_M.c: Likewise.
38699         * tests/unictype/test-categ_Mc.c: Likewise.
38700         * tests/unictype/test-categ_Mn.c: Likewise.
38701         * tests/unictype/test-categ_N.c: Likewise.
38702         * tests/unictype/test-categ_Nd.c: Likewise.
38703         * tests/unictype/test-categ_Nl.c: Likewise.
38704         * tests/unictype/test-categ_No.c: Likewise.
38705         * tests/unictype/test-categ_P.c: Likewise.
38706         * tests/unictype/test-categ_Pd.c: Likewise.
38707         * tests/unictype/test-categ_Po.c: Likewise.
38708         * tests/unictype/test-categ_S.c: Likewise.
38709         * tests/unictype/test-categ_Sc.c: Likewise.
38710         * tests/unictype/test-categ_So.c: Likewise.
38711         * tests/unictype/test-ctype_alnum.c: Likewise.
38712         * tests/unictype/test-ctype_alpha.c: Likewise.
38713         * tests/unictype/test-ctype_graph.c: Likewise.
38714         * tests/unictype/test-ctype_lower.c: Likewise.
38715         * tests/unictype/test-ctype_print.c: Likewise.
38716         * tests/unictype/test-ctype_punct.c: Likewise.
38717         * tests/unictype/test-ctype_upper.c: Likewise.
38718         * tests/unictype/test-decdigit.h: Likewise.
38719         * tests/unictype/test-digit.h: Likewise.
38720         * tests/unictype/test-numeric.h: Likewise.
38721         * tests/unictype/test-pr_alphabetic.c: Likewise.
38722         * tests/unictype/test-pr_bidi_arabic_digit.c: Likewise.
38723         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Likewise.
38724         * tests/unictype/test-pr_bidi_european_digit.c: Likewise.
38725         * tests/unictype/test-pr_bidi_hebrew_right_to_left.c: Likewise.
38726         * tests/unictype/test-pr_bidi_left_to_right.c: Likewise.
38727         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Likewise.
38728         * tests/unictype/test-pr_bidi_other_neutral.c: Likewise.
38729         * tests/unictype/test-pr_combining.c: Likewise.
38730         * tests/unictype/test-pr_composite.c: Likewise.
38731         * tests/unictype/test-pr_currency_symbol.c: Likewise.
38732         * tests/unictype/test-pr_dash.c: Likewise.
38733         * tests/unictype/test-pr_decimal_digit.c: Likewise.
38734         * tests/unictype/test-pr_deprecated.c: Likewise.
38735         * tests/unictype/test-pr_diacritic.c: Likewise.
38736         * tests/unictype/test-pr_extender.c: Likewise.
38737         * tests/unictype/test-pr_grapheme_base.c: Likewise.
38738         * tests/unictype/test-pr_grapheme_extend.c: Likewise.
38739         * tests/unictype/test-pr_grapheme_link.c: Likewise.
38740         * tests/unictype/test-pr_id_continue.c: Likewise.
38741         * tests/unictype/test-pr_id_start.c: Likewise.
38742         * tests/unictype/test-pr_ideographic.c: Likewise.
38743         * tests/unictype/test-pr_ignorable_control.c: Likewise.
38744         * tests/unictype/test-pr_logical_order_exception.c: Likewise.
38745         * tests/unictype/test-pr_lowercase.c: Likewise.
38746         * tests/unictype/test-pr_numeric.c: Likewise.
38747         * tests/unictype/test-pr_other_alphabetic.c: Likewise.
38748         * tests/unictype/test-pr_punctuation.c: Likewise.
38749         * tests/unictype/test-pr_sentence_terminal.c: Likewise.
38750         * tests/unictype/test-pr_terminal_punctuation.c: Likewise.
38751         * tests/unictype/test-pr_unassigned_code_value.c: Likewise.
38752         * tests/unictype/test-pr_unified_ideograph.c: Likewise.
38753         * tests/unictype/test-pr_uppercase.c: Likewise.
38754         * tests/unictype/test-pr_xid_continue.c: Likewise.
38755         * tests/unictype/test-pr_xid_start.c: Likewise.
38756         * tests/unictype/test-pr_zero_width.c: Likewise.
38757         * tests/unigbrk/test-uc-gbrk-prop.h: Likewise.
38758         * tests/unilbrk/test-u8-possible-linebreaks.c (main): Update for
38759         changed behaviour: line breaking is now disallowed between a letter
38760         or '=' and '('.
38761         * tests/unilbrk/test-u16-possible-linebreaks.c (main): Likewise.
38762         * tests/unilbrk/test-u32-possible-linebreaks.c (main): Likewise.
38763         * tests/unilbrk/test-ulc-possible-linebreaks.c (main): Likewise.
38764         * tests/unilbrk/test-ulc-width-linebreaks.c (main): Likewise.
38765         * tests/uniwidth/test-uc_width2.sh: Same updates as in
38766         lib/uniwidth/width.c.
38767         * tests/uninorm/NormalizationTest.txt: Update from Unicode 5.2.0,
38768         without comments, but with the original copyright notice.
38769         * lib/unicase/special-casing-table.gperf: Regenerated; only comment
38770         changes.
38771         * lib/unictype/categ_Cc.h: Likewise.
38772         * lib/unictype/categ_Co.h: Likewise.
38773         * lib/unictype/categ_Cs.h: Likewise.
38774         * lib/unictype/categ_Lt.h: Likewise.
38775         * lib/unictype/categ_Me.h: Likewise.
38776         * lib/unictype/categ_Pc.h: Likewise.
38777         * lib/unictype/categ_Pe.h: Likewise.
38778         * lib/unictype/categ_Pf.h: Likewise.
38779         * lib/unictype/categ_Pi.h: Likewise.
38780         * lib/unictype/categ_Ps.h: Likewise.
38781         * lib/unictype/categ_Sk.h: Likewise.
38782         * lib/unictype/categ_Sm.h: Likewise.
38783         * lib/unictype/categ_Z.h: Likewise.
38784         * lib/unictype/categ_Zl.h: Likewise.
38785         * lib/unictype/categ_Zp.h: Likewise.
38786         * lib/unictype/categ_Zs.h: Likewise.
38787         * lib/unictype/ctype_blank.h: Likewise.
38788         * lib/unictype/ctype_cntrl.h: Likewise.
38789         * lib/unictype/ctype_digit.h: Likewise.
38790         * lib/unictype/ctype_space.h: Likewise.
38791         * lib/unictype/ctype_xdigit.h: Likewise.
38792         * lib/unictype/mirror.h: Likewise.
38793         * lib/unictype/pr_ascii_hex_digit.h: Likewise.
38794         * lib/unictype/pr_bidi_arabic_right_to_left.h: Likewise.
38795         * lib/unictype/pr_bidi_block_separator.h: Likewise.
38796         * lib/unictype/pr_bidi_boundary_neutral.h: Likewise.
38797         * lib/unictype/pr_bidi_common_separator.h: Likewise.
38798         * lib/unictype/pr_bidi_control.h: Likewise.
38799         * lib/unictype/pr_bidi_embedding_or_override.h: Likewise.
38800         * lib/unictype/pr_bidi_eur_num_separator.h: Likewise.
38801         * lib/unictype/pr_bidi_pdf.h: Likewise.
38802         * lib/unictype/pr_bidi_segment_separator.h: Likewise.
38803         * lib/unictype/pr_bidi_whitespace.h: Likewise.
38804         * lib/unictype/pr_default_ignorable_code_point.h: Likewise.
38805         * lib/unictype/pr_format_control.h: Likewise.
38806         * lib/unictype/pr_hex_digit.h: Likewise.
38807         * lib/unictype/pr_hyphen.h: Likewise.
38808         * lib/unictype/pr_ids_binary_operator.h: Likewise.
38809         * lib/unictype/pr_ids_trinary_operator.h: Likewise.
38810         * lib/unictype/pr_iso_control.h: Likewise.
38811         * lib/unictype/pr_join_control.h: Likewise.
38812         * lib/unictype/pr_left_of_pair.h: Likewise.
38813         * lib/unictype/pr_line_separator.h: Likewise.
38814         * lib/unictype/pr_math.h: Likewise.
38815         * lib/unictype/pr_non_break.h: Likewise.
38816         * lib/unictype/pr_not_a_character.h: Likewise.
38817         * lib/unictype/pr_other_default_ignorable_code_point.h: Likewise.
38818         * lib/unictype/pr_other_grapheme_extend.h: Likewise.
38819         * lib/unictype/pr_other_id_continue.h: Likewise.
38820         * lib/unictype/pr_other_id_start.h: Likewise.
38821         * lib/unictype/pr_other_lowercase.h: Likewise.
38822         * lib/unictype/pr_other_math.h: Likewise.
38823         * lib/unictype/pr_other_uppercase.h: Likewise.
38824         * lib/unictype/pr_paired_punctuation.h: Likewise.
38825         * lib/unictype/pr_paragraph_separator.h: Likewise.
38826         * lib/unictype/pr_pattern_syntax.h: Likewise.
38827         * lib/unictype/pr_pattern_white_space.h: Likewise.
38828         * lib/unictype/pr_private_use.h: Likewise.
38829         * lib/unictype/pr_quotation_mark.h: Likewise.
38830         * lib/unictype/pr_radical.h: Likewise.
38831         * lib/unictype/pr_soft_dotted.h: Likewise.
38832         * lib/unictype/pr_space.h: Likewise.
38833         * lib/unictype/pr_titlecase.h: Likewise.
38834         * lib/unictype/pr_variation_selector.h: Likewise.
38835         * lib/unictype/pr_white_space.h: Likewise.
38836         * lib/unictype/sy_c_ident.h: Likewise.
38837         * lib/unictype/sy_c_whitespace.h: Likewise.
38838         * lib/unictype/sy_java_whitespace.h: Likewise.
38839         * modules/uni*/*: Bump version number of expected libunistring version.
38840         Reported by Simon Josefsson.
38842 2011-01-09  Karl Heuer  <kwzh@gnu.org>
38844         useless-if-before-free: fix typo in --help and make the internal,
38845         automatic version date update process work once again.
38846         --help output contained a NUL character instead of the
38847         backslash-zero that was intended.  Also, the "must lie within
38848         the first 8 lines" line is on line 9, and hence not getting
38849         automatically updated.
38850         * build-aux/useless-if-before-free: Fix the former by adding a
38851         backslash, and the latter by condensing the three lines of what-it-does
38852         to a single line, leaving one line of slack for the future.
38854 2011-01-09  Bruno Haible  <bruno@clisp.org>
38856         uniwidth/width: Fix width of U+1D173..U+1D17A.
38857         * lib/gen-uni-tables.c (is_nonspacing, output_nonspacing_property,
38858         symbolic_width, output_width_property_test): New functions.
38859         (main): Invoke output_nonspacing_property, output_width_property_test.
38860         * lib/uniwidth/width.c (nonspacing_table_data): Set bits for
38861         U+1D173..U+1D17A.
38862         * tests/uniwidth/test-uc_width2.sh: For U+1D173..U+1D17A, expect 0, not
38863         1.
38864         * modules/uniwidth/*: Bump version number of expected libunistring
38865         version.
38866         * modules/unilbrk/*: Likewise.
38868 2011-01-08  Bruno Haible  <bruno@clisp.org>
38870         uninorm tests: Preserve copyright of Unicode data file.
38871         * tests/uninorm/NormalizationTest.txt: Re-add original copyright.
38872         Mention modifications.
38874 2011-01-08  Bruno Haible  <bruno@clisp.org>
38876         gen-uni-tables: Prepare for Unicode 5.2.0.
38877         * lib/gen-uni-tables.c (get_lbp): Allow for more than 32 LBP_* values.
38878         (debug_output_lbp, output_lbp): Update.
38880 2011-01-08  Bruno Haible  <bruno@clisp.org>
38882         unilbrk: Clarify gen-uni-tables.c code.
38883         * lib/gen-uni-tables.c (get_lbp): Assume REVISION_22 to be false. These
38884         were mistakes in UAX #14 revision 22 that are corrected in revision 24.
38885         Clarify what to do with unilbrk/lbrkprop.txt and uniwbrk/wbrkprop.txt.
38887 2011-01-07  Bruno Haible  <bruno@clisp.org>
38889         strtod: Restore errno when successfully parsing Infinity or NaN.
38890         * lib/strtod.c (strtod): After successfully parsing an Infinity or NaN,
38891         restore the original errno.
38893 2011-01-07  Bruno Haible  <bruno@clisp.org>
38895         remove test: Avoid failure on HP-UX 11.
38896         * tests/test-remove.c (main): Allow EEXIST as alternative error code.
38898 2011-01-07  Bruno Haible  <bruno@clisp.org>
38900         mkdir, mkdirat tests: Avoid failure on HP-UX 11.11.
38901         * tests/test-mkdir.h (test_mkdir): Allow EOPNOTSUPP as alternative
38902         error code.
38904 2011-01-07  Pádraig Brady  <P@draigBrady.com>
38906         ignore-value: fixup comments, and add Eric Blake
38907         as an author since he rewrote the macros.
38908         * lib/ignore-value.h (ignore_value):  State that
38909         we now support aggregates.  Also specify exactly
38910         when the GCC warn_unused_result feature was added.
38912 2011-01-06  Eric Blake  <eblake@redhat.com>
38914         ignore-value: support aggregate types
38915         * lib/ignore-value.h (ignore_value): Provide separate gcc
38916         definition.
38917         * modules/ignore-value-tests: New test module.
38918         * tests/test-ignore-value.c: New test.
38920         maint.mk: improve sc_prohibit_strcmp regex
38921         * top/maint.mk (sc_prohibit_strcmp): Detect strcmp()!=0, as
38922         documented.  Also, detect strcmp((expr),expr) == 0.  Exempt the
38923         definition of STRNEQ.
38925         signal: work around Haiku issue with SIGBUS
38926         * lib/siglist.h: Add comment.
38927         * lib/sig2str.c (numname_table): Swap SIGBUS order, to match
38928         strsignal's favoring of SIGSEGV.
38929         * tests/test-signal.c (main): Avoid test failure.
38930         * doc/posix-headers/signal.texi (signal.h): Document the issue.
38931         Reported by Scott McCreary.
38933         maint.mk: add pre-release check to ensure submodule commits are public
38934         * top/maint.mk (public-submodule-commit): New rule.
38935         (submodule-checks): New variable.
38936         (alpha beta stable): Depend on the variable.
38938 2011-01-05  Pádraig Brady  <P@draigBrady.com>
38939         and Jim Meyering  <meyering@redhat.com>
38941         ignore-value: make ignore_value more generic; deprecate ignore_ptr
38942         * lib/ignore-value.h: Include <stdint.h>, for decl of intptr_t.
38943         (ATTRIBUTE_DEPRECATED): Define.
38944         (_ignore_case): New function.
38945         (ignore_value): New macro, to replace the old function.
38946         (ignore_ptr): Arrange for any use to evoke a deprecation warning.
38947         * modules/ignore-value (Depends-on): Add stdint.
38949 2011-01-04  Eric Blake  <eblake@redhat.com>
38951         doc: regenerate INSTALL
38952         * doc/Makefile (INSTALL, INSTALL.ISO, INSTALL.UTF-8): Re-add
38953         @firstparagraphindent support, now that autoconf dropped it.
38954         (INSTALL_PRELUDE): Reinstate old macro.
38955         * doc/install.texi: Resync from autoconf.
38956         * doc/INSTALL: Reflect recent autoconf update.
38957         * doc/INSTALL.ISO: Likewise.
38958         * doc/INSTALL.UTF-8: Likewise.
38959         Reported by Karl Berry.
38961 2011-01-04  Bruce Korb  <address@hidden>
38963         git-version-gen: avoid a sub-shell
38964         * build-aux/git-version-gen: Redirect stderr in `...` via
38965         "exec 2>...", rather than via an added sub-shell.
38967 2011-01-03  Ben Pfaff  <blp@cs.stanford.edu>
38969         git-version-gen: use (...) rather than sh -c '...'
38970         * build-aux/git-version-gen: Rather than hard-coding a shell's name
38971         with "sh -c '...'", just use "(...)".  Less syntax is better, too.
38973 2011-01-03  Jim Meyering  <meyering@redhat.com>
38975         git-version-gen: convert leading TABs to spaces
38976         * build-aux/git-version-gen: Expand leading TABs.
38978         git-version-gen: handle failed "git rev-list"
38979         * build-aux/git-version-gen: Rather than leaking a "fatal" error
38980         from git and proceeding as if it had succeeded but printed no SHA1
38981         checksums, suppress the diagnostic and handle the failure.
38982         Reported by Bruce Korb in http://marc.info/?l=git&m=129399145930450&w=2
38984         git-version-gen: include command name in one more diagnostic
38985         * build-aux/git-version-gen: When the required .tarball-version file
38986         was missing or unreadable, you might see the diagnostic from "cat",
38987         but no trace of the name of the invoking script.  Now, you still see
38988         the diagnostic from cat, but also get one from "git-version-gen: ".
38989         Inspired by a patch from Bruce Korb.
38991         update-copyright: adjust test to match changed code
38992         * tests/test-update-copyright.sh: Change test's expected output
38993         to match new actual output.
38995 2011-01-02  Bruno Haible  <bruno@clisp.org>
38997         getlogin_r: Avoid test failure on HP-UX 11.
38998         * tests/test-getlogin_r.c (main): Allow an error code EINVAL instead of
38999         ERANGE when the second argument is zero.
39000         * doc/posix-functions/getlogin_r.texi: Document the HP-UX 11
39001         portability problem.
39003 2011-01-02  Bruce Korb  <bkorb@gnu.org>
39005         * build-aux/update-copyright: doc Simon's changes
39007 2011-01-02  Simon Josefsson  <simon@josefsson.org>
39009         * build-aux/update-copyright: Support UPDATE_COPYRIGHT_HOLDER
39010         environment variable.
39012 2011-01-02  Bruno Haible  <bruno@clisp.org>
39014         unigbrk: Avoid gcc warnings.
39015         * lib/unigbrk/u16-grapheme-breaks.c (u16_grapheme_breaks): Remove
39016         unused variable.
39017         * lib/unigbrk/u16-grapheme-prev.c (u16_grapheme_prev): Likewise.
39018         * lib/unigbrk/u8-grapheme-prev.c (u8_grapheme_prev): Likewise.
39019         * tests/unigbrk/test-u16-grapheme-breaks.c (main): Likewise.
39020         * tests/unigbrk/test-u32-grapheme-breaks.c (main): Likewise.
39021         * tests/unigbrk/test-u8-grapheme-breaks.c (test_u8_grapheme_breaks):
39022         Change type of first argument to 'const char *'.
39023         (main): Remove unused variable.
39024         * tests/unigbrk/test-u8-grapheme-next.c (test_u8_grapheme_next): Change
39025         type of first argument to 'const char *'.
39026         * tests/unigbrk/test-u8-grapheme-prev.c (test_u8_grapheme_prev):
39027         Likewise.
39028         (main): Change type of variable 's'.
39029         * tests/unigbrk/test-uc-is-grapheme-break.c (main): Cast column number
39030         to 'int'.
39032 2011-01-02  Bruno Haible  <bruno@clisp.org>
39034         pwrite: Fix test whether it works and make it work on HP-UX 11.11.
39035         * m4/pwrite.m4 (gl_FUNC_PWRITE): Use AC_LANG_PROGRAM, not
39036         AC_LANG_SOURCE. Extend the test program to catch another HP-UX 11.11
39037         bug.
39038         * lib/pwrite.c: Undo 2010-12-31 patch.
39039         * doc/posix-functions/pwrite.texi: Document another HP-UX 11.11 bug.
39041 2011-01-02  Bruno Haible  <bruno@clisp.org>
39043         pread: Fix test whether it works.
39044         * m4/pread.m4 (gl_FUNC_PREAD): Use AC_LANG_PROGRAM, not AC_LANG_SOURCE.
39046 2011-01-02  Bruno Haible  <bruno@clisp.org>
39048         Fix detection of traditional Arabic locale on HP-UX, Solaris, Cygwin.
39049         * m4/locale-ar.m4 (gt_LOCALE_AR): Require that the locale encoding name
39050         ends in "6". Don't require a specific month name. Try also the locale
39051         names found on HP-UX 11 and Solaris 7.
39053 2011-01-02  Bruno Haible  <bruno@clisp.org>
39055         tcgetsid: Correct linkage in C++ mode on HP-UX 11.00.
39056         * lib/termios.in.h: In C++ mode, on HP-UX, include <sys/termios.h> with
39057         C linkage.
39058         * doc/posix-functions/tcgetsid.texi: Mention the HP-UX 11.00 bug.
39060 2011-01-01  Ben Pfaff  <blp@cs.stanford.edu>
39062         Rename uc_is_grapheme_cluster_break() to uc_is_grapheme_break()
39063         for consistency, since the "cluster" term is not used elsewhere.
39064         * lib/unigbrk.in.h: Update name.
39065         * lib/unigbrk/u16-grapheme-breaks.c: Update name.
39066         * lib/unigbrk/u16-grapheme-next.c: Update name.
39067         * lib/unigbrk/u16-grapheme-prev.c: Update name.
39068         * lib/unigbrk/u32-grapheme-breaks.c: Update name.
39069         * lib/unigbrk/u32-grapheme-next.c: Update name.
39070         * lib/unigbrk/u32-grapheme-prev.c: Update name.
39071         * lib/unigbrk/u8-grapheme-breaks.c: Update name.
39072         * lib/unigbrk/u8-grapheme-next.c: Update name.
39073         * lib/unigbrk/u8-grapheme-prev.c: Update name.
39074         * lib/unigbrk/uc-is-grapheme-break.c: Update name.
39075         * tests/unigbrk/test-uc-is-grapheme-break.c: Update name.
39076         Suggested by Bruno Haible.
39078 2011-01-01  Ben Pfaff  <blp@cs.stanford.edu>
39080         Remove module 'u8-grapheme-len' as too redundant with
39081         'u8-grapheme-next'.
39082         * modules/unigbrk/u8-grapheme-len: Delete file.
39083         * modules/unigbrk/u8-grapheme-len-tests: Delete file.
39084         * lib/unigbrk.in.h: Remove prototype for deleted function.
39085         * lib/unigbrk/u8-grapheme-len.c: Delete file.
39086         * tests/unigbrk/test-u8-grapheme-len.c: Delete file.
39088         Remove module 'u16-grapheme-len' as too redundant with
39089         'u16-grapheme-next'.
39090         * modules/unigbrk/u16-grapheme-len: Delete file.
39091         * modules/unigbrk/u16-grapheme-len-tests: Delete file.
39092         * lib/unigbrk.in.h: Remove prototype for deleted function.
39093         * lib/unigbrk/u16-grapheme-len.c: Delete file.
39094         * tests/unigbrk/test-u16-grapheme-len.c: Delete file.
39096         Remove module 'u32-grapheme-len' as too redundant with
39097         'u32-grapheme-next'.
39098         * modules/unigbrk/u32-grapheme-len: Delete file.
39099         * modules/unigbrk/u32-grapheme-len-tests: Delete file.
39100         * lib/unigbrk.in.h: Remove prototype for deleted function.
39101         * lib/unigbrk/u32-grapheme-len.c: Delete file.
39102         * tests/unigbrk/test-u32-grapheme-len.c: Delete file.
39104         Suggested by Bruno Haible.
39106 2011-01-01  Ben Pfaff  <blp@cs.stanford.edu>
39108         * unigbrk.in.h: Fix typo: "ben" => "been".
39109         Reported by Bruno Haible.
39111 2011-01-01  Jim Meyering  <meyering@redhat.com>
39113         maint: update almost all copyright ranges to include 2011
39114         Run the new "make update-copyright" rule.
39116 2011-01-01  Jim Meyering  <meyering@redhat.com>
39118         maint: update-copyright: exempt doc/INSTALL*
39119         * Makefile (update-copyright): Also exclude doc/INSTALL*,
39120         since they are generated.  Suggested by Bruno Haible.
39122 2011-01-01  Jim Meyering  <meyering@redhat.com>
39124         maint: refine the update-copyright rule
39125         * Makefile (update-copyright): Also exclude any file that includes
39126         the "GENERATED AUTOMATICALLY" comment, being careful not to exclude
39127         code that merely generates the comment.
39129 2010-12-31  Ben Pfaff  <blp@cs.stanford.edu>
39131         New module 'u8-grapheme-len'.
39132         * modules/unigbrk/u8-grapheme-len: New file.
39133         * modules/unigbrk/u8-grapheme-len-tests: New file.
39134         * lib/unigbrk.in.h: Add prototype for new function.
39135         * lib/unigbrk/u8-grapheme-len.c: New file.
39136         * tests/unigbrk/test-u8-grapheme-len.c: New file.
39138         New module 'u16-grapheme-len'.
39139         * modules/unigbrk/u16-grapheme-len: New file.
39140         * modules/unigbrk/u16-grapheme-len-tests: New file.
39141         * lib/unigbrk.in.h: Add prototype for new function.
39142         * lib/unigbrk/u16-grapheme-len.c: New file.
39143         * tests/unigbrk/test-u16-grapheme-len.c: New file.
39145         New module 'u32-grapheme-len'.
39146         * modules/unigbrk/u32-grapheme-len: New file.
39147         * modules/unigbrk/u32-grapheme-len-tests: New file.
39148         * lib/unigbrk.in.h: Add prototype for new function.
39149         * lib/unigbrk/u32-grapheme-len.c: New file.
39150         * tests/unigbrk/test-u32-grapheme-len.c: New file.
39152         New module 'u8-grapheme-next'.
39153         * modules/unigbrk/u8-grapheme-next: New file.
39154         * modules/unigbrk/u8-grapheme-next-tests: New file.
39155         * lib/unigbrk.in.h: Add prototype for new function.
39156         * lib/unigbrk/u8-grapheme-next.c: New file.
39157         * tests/unigbrk/test-u8-grapheme-next.c: New file.
39159         New module 'u16-grapheme-next'.
39160         * modules/unigbrk/u16-grapheme-next: New file.
39161         * modules/unigbrk/u16-grapheme-next-tests: New file.
39162         * lib/unigbrk.in.h: Add prototype for new function.
39163         * lib/unigbrk/u16-grapheme-next.c: New file.
39164         * tests/unigbrk/test-u16-grapheme-next.c: New file.
39166         New module 'u32-grapheme-next'.
39167         * modules/unigbrk/u32-grapheme-next: New file.
39168         * modules/unigbrk/u32-grapheme-next-tests: New file.
39169         * lib/unigbrk.in.h: Add prototype for new function.
39170         * lib/unigbrk/u32-grapheme-next.c: New file.
39171         * tests/unigbrk/test-u32-grapheme-next.c: New file.
39173         New module 'u8-grapheme-prev'.
39174         * modules/unigbrk/u8-grapheme-prev: New file.
39175         * modules/unigbrk/u8-grapheme-prev-tests: New file.
39176         * lib/unigbrk.in.h: Add prototype for new function.
39177         * lib/unigbrk/u8-grapheme-prev.c: New file.
39178         * tests/unigbrk/test-u8-grapheme-prev.c: New file.
39180         New module 'u16-grapheme-prev'.
39181         * modules/unigbrk/u16-grapheme-prev: New file.
39182         * modules/unigbrk/u16-grapheme-prev-tests: New file.
39183         * lib/unigbrk.in.h: Add prototype for new function.
39184         * lib/unigbrk/u16-grapheme-prev.c: New file.
39185         * tests/unigbrk/test-u16-grapheme-prev.c: New file.
39187         New module 'u32-grapheme-prev'.
39188         * modules/unigbrk/u32-grapheme-prev: New file.
39189         * modules/unigbrk/u32-grapheme-prev-tests: New file.
39190         * lib/unigbrk.in.h: Add prototype for new function.
39191         * lib/unigbrk/u32-grapheme-prev.c: New file.
39192         * tests/unigbrk/test-u32-grapheme-prev.c: New file.
39194         New module 'u8-grapheme-breaks'.
39195         * modules/unigbrk/u8-grapheme-breaks: New file.
39196         * modules/unigbrk/u8-grapheme-breaks-tests: New file.
39197         * lib/unigbrk.in.h: Add prototype for new function.
39198         * lib/unigbrk/u8-grapheme-breaks.c: New file.
39199         * tests/unigbrk/test-u8-grapheme-breaks.c: New file.
39201         New module 'u16-grapheme-breaks'.
39202         * modules/unigbrk/u16-grapheme-breaks: New file.
39203         * modules/unigbrk/u16-grapheme-breaks-tests: New file.
39204         * lib/unigbrk.in.h: Add prototype for new function.
39205         * lib/unigbrk/u16-grapheme-breaks.c: New file.
39206         * tests/unigbrk/test-u16-grapheme-breaks.c: New file.
39208         New module 'u32-grapheme-breaks'.
39209         * modules/unigbrk/u32-grapheme-breaks: New file.
39210         * modules/unigbrk/u32-grapheme-breaks-tests: New file.
39211         * lib/unigbrk.in.h: Add prototype for new function.
39212         * lib/unigbrk/u32-grapheme-breaks.c: New file.
39213         * tests/unigbrk/test-u32-grapheme-breaks.c: New file.
39215         New module 'ulc-grapheme-breaks'.
39216         * modules/unigbrk/ulc-grapheme-breaks: New file.
39217         * modules/unigbrk/ulc-grapheme-breaks-tests: New file.
39218         * m4/locale-ar.m4: New file.
39219         * lib/unigbrk/ulc-grapheme-breaks.c: New file.
39220         * tests/unigbrk/test-ulc-grapheme-breaks.c: New file.
39221         * tests/unigbrk/test-ulc-grapheme-breaks.sh: New file.
39223 2010-12-31  Ben Pfaff  <blp@cs.stanford.edu>
39225         gbrkprop: Fix implementation of uc_graphemeclusterbreak_property.
39226         * lib/unigbrk/gbrkprop.h: Regenerate with gen-uni-tables.c.  I had
39227         modified how this file was generated before I initially submitted
39228         the module, but failed to regenerate it.  This meant that several
39229         of the level2 entries were wrong.
39230         * lib/unigbrk/uc-gbrk-prop.h (uc_graphemeclusterbreak_property):
39231         Remove the division-by-2 that is folded into the table now that
39232         gbrkprop.h has been regenerated properly.  Now -1 entries are
39233         handled correctly.
39235         New module 'unigbrk/uc-gbrk-prop-tests'.
39236         * modules/unigbrk/uc-gbrk-prop-tests: New file.
39237         * lib/gen-uni-tables.c: Generate tests/test-uc-gbrk-prop.h.
39238         * tests/unigbrk/test-uc-gbrk-prop.c: New file.
39239         * tests/unigbrk/test-uc-gbrk-prop.h: New file.
39241 2011-01-01  Bruno Haible  <bruno@clisp.org>
39243         Avoid use of hexadecimal escapes.
39244         * tests/unigbrk/test-uc-is-grapheme-break.c (main): Use octal escapes
39245         instead of hexadecimal escapes.
39247 2011-01-01  Jim Meyering  <meyering@redhat.com>
39249         maint: new rule to update copyright year ranges
39250         * Makefile (update-copyright): New rule.
39252         maint: indent with TABs in Makefile
39253         * Makefile: Expand leading sequences of spaces to TABs
39255         version-etc: update the copyright year it reports
39256         * lib/version-etc.c (COPYRIGHT_YEAR): Update to 2011.
39258 2010-12-31  Bruno Haible  <bruno@clisp.org>
39260         isfinite: Avoid compiler bug of "cc -O" on HP-UX 11.11.
39261         * lib/isfinite.c (zerof, zerod, zerol): New variables.
39262         (gl_isfinitef, gl_isfinited, gl_isfinitel): Use them instead of literal
39263         zero.
39265 2010-12-31  Bruno Haible  <bruno@clisp.org>
39267         pwrite: Work around HP-UX 11.11 bug.
39268         * m4/pwrite.m4 (gl_FUNC_PWRITE): When pwrite exists, test whether it
39269         works and set REPLACE_PWRITE if not.
39270         * lib/pwrite.c (pwrite): Add an implementation that uses the system
39271         function.
39272         * doc/posix-functions/pwrite.texi: Document the HP-UX 11 bug.
39274 2010-12-31  Bruno Haible  <bruno@clisp.org>
39276         pread: Work around HP-UX 11 bugs.
39277         * m4/pread.m4 (gl_FUNC_PREAD): When pread exists, test whether it works
39278         and set REPLACE_PREAD if not.
39279         * doc/posix-functions/pread.texi: Document the HP-UX 11 bugs.
39281 2010-12-31  Eric Blake  <eblake@redhat.com>
39283         nl_langinfo: fix YESEXPR on Irix 6.5
39284         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Test for Irix bug.
39285         * lib/nl_langinfo.c (rpl_nl_langinfo): Work around it.
39286         * doc/posix-functions/nl_langinfo.texi (nl_langinfo): Document
39287         it.
39289 2010-12-31  Bruno Haible  <bruno@clisp.org>
39291         iconv: Document HP-UX 11 bug.
39292         * doc/posix-functions/iconv.texi: Document HP-UX 11 return value bug.
39294 2010-12-31  Bruno Haible  <bruno@clisp.org>
39296         ldexpl: Fix link error on HP-UX 11.
39297         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): When replacing ldexpl, set
39298         LDEXPL_LIBM, using $ISNANL_LIBM.
39300 2010-12-31  Eric Blake  <eblake@redhat.com>
39302         ftello: avoid compilation failure with SunStudio c89
39303         * lib/ftello.c (ftello): Use lseek, not llseek.
39305         tests: avoid failing coreutils tests on cygwin
39306         * tests/init.sh (find_exe_basenames_): Exempt [.exe.
39307         (create_exe_shims_): Return 0 when skipping.
39309 2010-12-31  Bruno Haible  <bruno@clisp.org>
39311         sys_select: Avoid warning about missing memset declaration on HP-UX 11.
39312         * lib/sys_select.in.h: On HP-UX, include also <string.h>.
39314 2010-12-31  Bruno Haible  <bruno@clisp.org>
39316         waitpid: Fix link error in C++ mode.
39317         * lib/sys_wait.in.h: Remove extern "C" { ... } group.
39319 2010-12-31  Bruno Haible  <bruno@clisp.org>
39321         isnan: Use GCC built-ins when possible.
39322         * lib/math.in.h (gl_isnan_f): Use __builtin_isnanf instead of
39323         __builtin_isnan.
39324         (gl_isnan_l): Use __builtin_isnanl instead of __builtin_isnan.
39325         (isnan): Define using GCC built-ins for GCC >= 4.0.
39327 2010-12-31  Bruno Haible  <bruno@clisp.org>
39329         isnand: Fix mistake.
39330         * m4/isnand.m4 (gl_HAVE_ISNAND_IN_LIBM): Use __builtin_isnan, not
39331         __builtin_isnand.
39333 2010-12-31  Bruno Haible  <bruno@clisp.org>
39335         open: Avoid C++ error on HP-UX 11.
39336         * lib/fcntl.in.h (open): Disable _GL_CXXALIASWARN invocation on HP-UX.
39338 2010-12-31  Bruno Haible  <bruno@clisp.org>
39340         time_r: Add missing declarations on HP-UX 11.
39341         * lib/time.in.h (localtime_r, gmtime_r): Test HAVE_DECL_LOCALTIME_R
39342         instead of HAVE_LOCALTIME_R.
39343         * m4/time_r.m4 (gl_TIME_R): Test whether localtime_r is declared. Set
39344         HAVE_LOCALTIME_R always.
39345         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize
39346         HAVE_DECL_LOCALTIME_R, not HAVE_LOCALTIME_R.
39347         * modules/time (Makefile.am): Substitute HAVE_DECL_LOCALTIME_R, not
39348         HAVE_LOCALTIME_R.
39349         * doc/posix-functions/gmtime_r.texi: Document the HP-UX 11 problem.
39350         * doc/posix-functions/localtime_r.texi: Likewise.
39352 2010-12-29  Eric Blake  <eblake@redhat.com>
39354         mountlist: tweak previous commit
39355         * lib/mountlist.c (me_remote): Guarantee trailing backslash.
39356         Reported by Paul Eggert.
39358         mountlist: fix local drive detection on cygwin
39359         * lib/mountlist.c (ME_REMOTE) [__CYGWIN__]: Provide implementation
39360         that works for cygwin.
39362 2010-12-29  Paul Eggert  <eggert@cs.ucla.edu>
39364         ftoastr, snprintf: ftoastr + snprintf module
39365         * lib/ftoastr.c: Use GNULIB_SNPRINTF, not GNULIB_SNPRINTF_POSIX,
39366         since the snprintf module now should be good enough here.
39367         * modules/snprintf (configure.ac): Add gl_MODULE_INDICATOR([snprintf]).
39368         It seems odd to have both gl_STDIO_MODULE_INDICATOR([snprintf])
39369         and gl_MODULE_INDICATOR([snprintf]), but the former enables
39370         GNULIB_SNPRINTF only for the test directory, and the latter
39371         doesn't arrange for gl_STDIO_H_DEFAULTS to be called, so neither
39372         seems to suffice by itself.
39374 2010-12-28  Paul Eggert  <eggert@cs.ucla.edu>
39376         alloca: one step towards thread-safety
39377         * lib/alloca.c (find_stack_direction): New arg PTR, to avoid the
39378         need for a static variable.  All callers changed.  This does not
39379         make the alloca replacement thread-safe, but it's one step.
39381         tests: minor indenting change
39382         * tests/init.sh: Sync from coreutils housekeeping patch
39383         <http://lists.gnu.org/archive/html/coreutils/2010-12/msg00116.html>
39384         to keep lines within 80 columns.
39386 2010-12-28  Jim Meyering  <meyering@redhat.com>
39388         regex: don't infloop on persistent failing calloc
39389         * lib/regexec.c (build_trtable): Return failure indication upon
39390         calloc failure.  Otherwise, re_search_internal could infloop on OOM.
39391         In glibc, this was fixed for version 2.13:
39392         http://sourceware.org/bugzilla/show_bug.cgi?id=12348
39394 2010-12-28  Bruno Haible  <bruno@clisp.org>
39395             Paul Eggert <eggert@cs.ucla.edu>
39397         linkat: Make implementation robust against system behaviour variations.
39398         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Define
39399         LINK_FOLLOWS_SYMLINKS to -1 if it needs a runtime test in the Solaris
39400         way, and to -2 if it needs a generic runtime test.
39401         * lib/linkat.c (solaris_optimized_link_immediate,
39402         solaris_optimized_link_follow): New functions.
39403         * tests/test-linkat.c (EXPECT_LINK_HARDLINKS_SYMLINKS): New macro.
39404         (check_same_link): Use it.
39406 2010-12-26  Ben Pfaff  <blp@cs.stanford.edu>
39408         New module 'unigbrk/base'.
39409         * modules/unigbrk/base: New file.
39410         * lib/unigbrk.in.h: New file.
39412         New module 'unigbrk/uc-gbrk-prop'.
39413         * lib/gen-uni-tables.c: Generate lib/unigbrk/gbrkprop.h.
39414         * modules/unigbrk/uc-gbrk-prop: New file.
39415         * lib/unigbrk/gbrkprop.h: New file.
39416         * lib/unigbrk/uc-gbrk-prop.c: New file.
39418         New module 'unigbrk/uc-is-grapheme-break'.
39419         * modules/unigbrk/uc-is-grapheme-break: New file.
39420         * modules/unigbrk/uc-is-grapheme-break-tests: New file.
39421         * lib/unigbrk/uc-is-grapheme-break.c: New file.
39422         * tests/unigbrk/test-uc-is-grapheme-break.c: New file.
39423         * tests/unigbrk/test-uc-is-grapheme-break.sh: New file.
39424         * tests/unigbrk/GraphemeBreakTest.txt: New file.
39426         With corrections and tweaks by Bruno Haible <bruno@clisp.org>.
39428 2010-12-27  Bruno Haible  <bruno@clisp.org>
39430         linkat test: Avoid failure on Solaris 11 2010-11.
39431         * tests/test-linkat.c (main): Allow ENOTDIR as alternative error code.
39433 2010-12-27  Paul Eggert  <eggert@cs.ucla.edu>
39435         utimens: work around glibc rounding bug on more platforms
39436         * lib/utimens.c (fdutimens): Work around rounding bug even if
39437         HAVE_WORKING_UTIMES.  Reported for Linux 2.4.21 by Bruno Haible in
39438         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00298.html>.
39440 2010-12-27  Bruno Haible  <bruno@clisp.org>
39442         select tests: Improve comments.
39443         * tests/test-select.c (do_select): Add comments.
39445 2010-12-27  Bruno Haible  <bruno@clisp.org>
39447         select tests: Safer way of handling timeout.
39448         * tests/test-select.c (do_select_nowait): Zero-initialize the timeout
39449         at every invocation.
39451 2010-12-27  Bruno Haible  <bruno@clisp.org>
39453         select tests: Use 'bool' where appropriate.
39454         * tests/test-select.c (connect_to_socket): Change argument type to
39455         'bool'.
39457 2010-12-27  Bruno Haible  <bruno@clisp.org>
39459         select tests: Use existing modules.
39460         * modules/select-tests (Depends-on): Add pipe-posix, unistd.
39461         (configure.ac): Don't test for unistd.h.
39462         * tests/test-select.c: Include <unistd.h> always. Use pipe() as
39463         declared in <unistd.h>.
39465 2010-12-27  Bruno Haible  <bruno@clisp.org>
39467         mbrtowc: Work around a Solaris 7 bug.
39468         * m4/mbrtowc.m4 (gl_MBRTOWC_NULL_ARG1): New macro.
39469         (gl_MBRTOWC_NULL_ARG2): Renamed from gl_MBRTOWC_NULL_ARG.
39470         (gl_FUNC_MBRTOWC): Update. Define MBRTOWC_NULL_ARG2_BUG instead of
39471         MBRTOWC_NULL_ARG_BUG. Invoke gl_MBRTOWC_NULL_ARG1 and define
39472         MBRTOWC_NULL_ARG1_BUG.
39473         * lib/mbrtowc.c (rpl_mbrtowc): Use MBRTOWC_NULL_ARG2_BUG instead of
39474         MBRTOWC_NULL_ARG_BUG. Handle MBRTOWC_NULL_ARG1_BUG.
39475         * tests/test-mbrtowc.c (main): Test support of a NULL first argument.
39476         * doc/posix-functions/mbrtowc.texi: Mention the Solaris 7 bug.
39478 2010-12-27  Jim Meyering  <meyering@redhat.com>
39480         read-file.c: tweak syntax
39481         * lib/read-file.c (fread_file): Remove space after "*" in function
39482         definitions.
39484 2010-12-27  Bruno Haible  <bruno@clisp.org>
39486         times test: Avoid gcc warnings on OSF/1.
39487         * tests/test-times.c (main): Cast printf arguments from clock_t to
39488         'long int'.
39490 2010-12-27  Paul Eggert  <eggert@cs.ucla.edu>
39492         utimens: work around glibc rounding bug on older Linux kernels
39493         * lib/utimens.c (fdutimens): If invoking futimesat or futimes
39494         on Linux with a glibc whose utimes might not work, then work
39495         around a longstanding glibc bug involving rounding rather than
39496         truncated time stamps.  Reported for Linux 2.4.21 by Bruno Haible in
39497         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00113.html>.
39499 2010-12-26  Bruno Haible  <bruno@clisp.org>
39501         inet_ntop: Hide mismatch of declaration on NonStop Kernel.
39502         * lib/arpa_inet.in.h (inet_ntop): Use _GL_CXXALIAS_SYS_CAST instead of
39503         _GL_CXXALIAS_SYS.
39504         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
39506 2010-12-26  Bruno Haible  <bruno@clisp.org>
39508         inet_ntop, inet_pton: Ensure declaration on NonStop Kernel.
39509         * lib/arpa_inet.in.h: On NonStop Kernel, include also <netdb.h>.
39510         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Likewise.
39511         * m4/inet_ntop.m4 (gl_PREREQ_INET_NTOP): Include also <netdb.h> when
39512         looking for the declaration.
39513         * m4/inet_pton.m4 (gl_PREREQ_INET_PTON): Likewise.
39514         * doc/posix-functions/inet_ntop.texi: Document the NonStop Kernel
39515         problem.
39516         * doc/posix-functions/inet_pton.texi: Likewise.
39518 2010-12-26  Bruno Haible  <bruno@clisp.org>
39520         arpa_inet: Use the common idioms with C++ support.
39521         * lib/arpa_inet.in.h: Include c++defs.h.
39522         (inet_ntop, inet_pton): Declare using the macros with C++ namespace
39523         support.
39524         * modules/arpa_inet (Depends-on): Add c++defs.
39525         (Makefile.am): Substitute the contents of c++defs.h.
39526         * modules/arpa_inet-tests (Depends-on): Add arpa_inet-c++-tests.
39527         * modules/arpa_inet-c++-tests: New file.
39528         * tests/test-arpa_inet-c++.cc: New file.
39530 2010-12-25  Bruno Haible  <bruno@clisp.org>
39532         Fix more C++ link errors on Solaris 8.
39533         * modules/fcntl-h-c++-tests (test_fcntl_h_c___LDADD): Add
39534         $(LIB_EACCESS).
39535         * modules/stdio-c++-tests (test_stdio_c___LDADD): Likewise.
39536         * modules/stdlib-c++-tests (test_stdlib_c___LDADD): Likewise.
39537         * modules/sys_ioctl-c++-tests (test_sys_ioctl_c___LDADD): Likewise.
39538         * modules/wchar-c++-tests (test_wchar_c___LDADD): Likewise.
39539         * modules/wctype-c++-tests (test_wctype_c___LDADD): Likewise.
39541 2010-12-25  Bruno Haible  <bruno@clisp.org>
39543         printf-posix: Fix link error when a non-GCC compiler is used.
39544         * lib/stdio.in.h (printf): When not using GCC, override printf
39545         correctly.
39546         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
39548 2010-12-25  Bruno Haible  <bruno@clisp.org>
39550         strerror_r-posix: Update doc.
39551         * doc/posix-functions/strerror_r.texi: Update doc about the return
39552         value. See <http://sources.redhat.com/bugzilla/show_bug.cgi?id=12204>.
39554 2010-12-25  Paul Eggert  <eggert@cs.ucla.edu>
39556         utimens: simplify the logic of the previous change
39557         * m4/utimes.m4 (gl_FUNC_UTIMES): Simplify the logic a bit.
39558         This should not affect whether the test succeeds or fails.
39560         utimens: configure better on hosts with NFS clock skew
39561         * m4/utimes.m4 (gl_FUNC_UTIMES): Don't assume that utimes (f, NULL)
39562         uses the clock of the local host.  It might use the clock of the
39563         NFS server.  Reported for Linux 2.4.21 client by Bruno Haible in
39564         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00113.html>.
39566 2010-12-25  Bruno Haible  <bruno@clisp.org>
39568         ptsname test: Avoid failure on Solaris.
39569         * tests/test-ptsname.c (main): For Solaris, use the recommended way to
39570         open a pseudo-terminal; don't use BSD-style ptys.
39571         * doc/posix-functions/ptsname.texi: Document the limitation on Solaris.
39573 2010-12-25  Bruno Haible  <bruno@clisp.org>
39575         ptsname: Avoid ERANGE failure on some systems.
39576         * lib/ptsname.c (buffer): Increase size.
39578 2010-12-25  Bruno Haible  <bruno@clisp.org>
39580         rename, renameat: Avoid test failures at NFS mounted locations.
39581         * tests/test-rename.h (assert_nonexistent): Remove the old directory,
39582         so that subsequent mkdir calls succeed.
39584 2010-12-25  Bruno Haible  <bruno@clisp.org>
39586         iswblank: Fix C++ link error on Solaris 8.
39587         * lib/wctype.in.h (iswblank): Declare using _GL_FUNCDECL_RPL or
39588         _GL_FUNCDECL_SYS.
39590 2010-12-25  Bruno Haible  <bruno@clisp.org>
39592         unistd: Fix C++ link error on Solaris 8.
39593         * modules/unistd-c++-tests (test_unistd_c___LDADD): Add $(LIB_EACCESS).
39595 2010-12-25  Bruno Haible  <bruno@clisp.org>
39597         readlink doc: Mention an old glibc bug.
39598         * doc/posix-functions/readlink.texi: Mention glibc 2.4 bug (BZ #2450).
39600 2010-12-25  Bruno Haible  <bruno@clisp.org>
39602         fcntl-h: Fix for use of C++ on glibc systems.
39603         * lib/fcntl.in.h: Include <sys/stat.h> before include_next <fcntl.h>
39604         also on glibc systems in C++ mode.
39605         Reported by Gary V. Vaughan <gary@gnu.org>.
39607 2010-12-25  Bruno Haible  <bruno@clisp.org>
39609         roundl-ieee: Make it work on OSF/1 5.1 with cc.
39610         * modules/roundl-ieee (Depends-on): Add floorl-ieee, ceill-ieee.
39612 2010-12-25  Bruno Haible  <bruno@clisp.org>
39614         truncl-ieee: Make it work on OSF/1 5.1 with cc.
39615         * doc/posix-functions/truncl.texi: Mention the OSF/1 5.1 bug.
39616         * m4/truncl.m4 (gl_FUNC_TRUNCL): If gl_FUNC_TRUNCL_IEEE is also used,
39617         test whether truncl works according to ISO C 99 with IEC 60559.
39618         * m4/truncl-ieee.m4: New file.
39619         * modules/truncl-ieee (Files): Add it and m4/minus-zero.m4,
39620         m4/signbit.m4.
39621         (configure.ac): Invoke gl_FUNC_TRUNCL_IEEE.
39623 2010-12-25  Bruno Haible  <bruno@clisp.org>
39625         ceill-ieee: Make it work on OSF/1 5.1 with cc.
39626         * doc/posix-functions/ceill.texi: Mention the OSF/1 5.1 bug.
39627         * m4/ceill.m4 (gl_FUNC_CEILL): If gl_FUNC_CEILL_IEEE is also used,
39628         test whether ceill works according to ISO C 99 with IEC 60559.
39629         * m4/ceill-ieee.m4: New file.
39630         * modules/ceill-ieee (Files): Add it and m4/minus-zero.m4,
39631         m4/signbit.m4.
39632         (configure.ac): Invoke gl_FUNC_CEILL_IEEE.
39634 2010-12-25  Bruno Haible  <bruno@clisp.org>
39636         Ensure all prerequisites of <wchar.h> are included.
39637         * m4/btowc.m4 (gl_FUNC_BTOWC): Include <stddef.h>, <stdio.h>, <time.h>
39638         before <wchar.h>.
39639         * m4/mbrlen.m4 (gl_MBRLEN_INCOMPLETE_STATE, gl_MBRLEN_RETVAL,
39640         gl_MBRLEN_NUL_RETVAL): Likewise.
39641         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE, gl_MBRTOWC_SANITYCHECK,
39642         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL,
39643         AC_FUNC_MBRTOWC): Likewise.
39644         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
39645         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Likewise.
39646         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise.
39647         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_TERMINATION, gl_WCSRTOMBS_NULL):
39648         Likewise.
39649         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
39650         * m4/wchar_h.m4 (gl_WCHAR_H_INLINE_OK): Likewise.
39651         (gl_WCHAR_H): Improve comments.
39652         * m4/wctype_h.m4 (gl_WCTYPE_H): Likewise.
39654 2010-12-25  Bruno Haible  <bruno@clisp.org>
39656         strtok_r: Fix C syntax error in autoconf macro.
39657         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Don't use UTF-8 encoded U+00A0
39658         characters in test program.
39660 2010-12-24  Bruno Haible  <bruno@clisp.org>
39662         ceil, trunc, round: Fix gcc warnings.
39663         * lib/ceil.c (MIN): Undefine before redefining.
39664         * lib/trunc.c (MIN): Likewise.
39665         * lib/round.c (MIN): Likewise.
39666         Include <math.h> first.
39668 2010-12-24  Bruno Haible  <bruno@clisp.org>
39670         select tests: Avoid failures on OSF/1 5.1.
39671         * tests/test-select.c (test_accept_first, test_socket_pair): Ignore
39672         failure of closing the last socket; it may fail with ECONNRESET.
39674 2010-12-24  Eric Blake  <eblake@redhat.com>
39676         stdint: avoid HP-UX 10.20 preprocessor bug
39677         * lib/stdint.in.h (INT64_MAX, UINT64_MAX): Check via #ifdef rather
39678         than #if.
39679         * tests/test-floor2.c (main): Likewise.
39680         Reported by Peter O'Gorman.
39682         pipe: make obsoletion transition easier
39683         * lib/pipe.h: Restore file as thin shim around "spawn-pipe.h".
39684         * modules/pipe (Files): Include revived file.
39685         (Include): Drop reference, to mirror getdate's behavior.
39687 2010-12-24  Bruno Haible  <bruno@clisp.org>
39689         sys_socket: Hide mismatch of declarations on NonStop Kernel.
39690         * lib/sys_socket.in.h (connect, bind, sendto, setsockopt): Use
39691         _GL_CXXALIAS_SYS_CAST instead of _GL_CXXALIAS_SYS.
39692         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
39694 2010-12-24  Bruno Haible  <bruno@clisp.org>
39696         gethostname: Ensure declaration on NonStop Kernel.
39697         * lib/unistd.in.h: Include <netdb.h> also on NonStop Kernel systems.
39698         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
39700 2010-12-24  Bruno Haible  <bruno@clisp.org>
39702         sys_select: Ensure all necessary types on NonStop Kernel.
39703         * lib/sys_select.in.h: If the system does not have <sys/select.h>,
39704         include <sys/time.h>.
39705         * doc/posix-headers/sys_select.texi: Mention that it's missing on
39706         NonStop Kernel.
39707         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
39709 2010-12-24  Bruno Haible  <bruno@clisp.org>
39711         sys_select: Remove unneeded include.
39712         * lib/sys_select.in.h: Don't include <sys/socket.h> on platforms that
39713         have <sys/select.h>.
39715 2010-12-24  Bruno Haible  <bruno@clisp.org>
39717         gethostname: Provide a fallback for HOST_NAME_MAX.
39718         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): When neither HOST_NAME_MAX
39719         nor MAXHOSTNAMELEN is found in the usual system headers, use 256
39720         instead.
39721         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
39723 2010-12-24  Bruno Haible  <bruno@clisp.org>
39725         sigaction tests: Allow missing SA_RESETHAND and SA_RESTART.
39726         * tests/test-sigaction.c (SA_RESETHAND): Fall back to 0.
39727         (SA_RESTART): Likewise.
39728         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
39730 2010-12-24  Bruno Haible  <bruno@clisp.org>
39732         signal: Define NSIG.
39733         * lib/signal.in.h (NSIG): Define to 32 on NonStop Kernel.
39734         * tests/test-signal.c (nsig): New variable.
39735         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
39737 2010-12-24  Bruno Haible  <bruno@clisp.org>
39739         rename, renameat: Avoid test failures on OSF/1 5.1.
39740         * tests/test-rename.h (test_rename): Allow EEXIST and ENOTDIR as
39741         alternative error codes.
39742         * tests/test-renameat.c (main): Likewise.
39744 2010-12-24  Bruno Haible  <bruno@clisp.org>
39746         *printf: Detect large precisions bug on Solaris 10/SPARC.
39747         * m4/printf.m4 (gl_PRINTF_PRECISION): Add one more test code, provided
39748         by Paul Eggert.
39749         * tests/test-snprintf-posix.h (test_function): Add this test code here
39750         too.
39751         * tests/test-sprintf-posix.h (test_function): Likewise.
39752         * tests/test-vasnprintf-posix.c (test_function): Likewise.
39753         * tests/test-vasprintf-posix.c (test_function): Likewise.
39754         * doc/posix-functions/fprintf.texi: Mention Solaris 10 bug as worked
39755         around by gnulib.
39756         * doc/posix-functions/printf.texi: Likewise.
39757         * doc/posix-functions/snprintf.texi: Likewise.
39758         * doc/posix-functions/sprintf.texi: Likewise.
39759         * doc/posix-functions/vfprintf.texi: Likewise.
39760         * doc/posix-functions/vprintf.texi: Likewise.
39761         * doc/posix-functions/vsnprintf.texi: Likewise.
39762         * doc/posix-functions/vsprintf.texi: Likewise.
39763         * doc/posix-functions/dprintf.texi: Undo last commit.
39764         * doc/posix-functions/vdprintf.texi: Likewise.
39766 2010-12-23  Paul Eggert  <eggert@cs.ucla.edu>
39768         tests: port test-fdutimensat.c to Solaris 8
39769         * tests/test-fdutimensat.c (do_fdutimens): Don't assume
39770         fdutimensat works with a nonnegative fd and AT_SYMLINK_NOFOLLOW.
39771         On Solaris 8, it fails with errno == ENOSYS, because there is no
39772         futimens (so it can't use the fd), and there is no lutimens (so it
39773         can't implement AT_SYMLINK_NOFOLLOW on symlinks).
39775         vsnprintf: make more consistent with snprintf; doc fixes
39777         * doc/posix-functions/snprintf.texi (snprintf): The workaround for
39778         the byte count return problem was promoted from the snprintf-posix
39779         to the snprintf module.
39780         * doc/posix-functions/vsnprintf.texi (vsnprintf): Likewise.
39781         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Also check
39782         gl_SNPRINTF_RETVAL_C99, for consistency with gl_FUNC_SNPRINTF.
39783         * tests/test-snprintf.c (main): Check the byte count returned.
39784         * tests/test-vsnprintf.c (main): Likewise.
39786 2010-12-23  Eric Blake  <eblake@redhat.com>
39788         sigpipe: relax to LGPLv2+, since it did not have any LGPLv3+ parts
39789         * modules/sigpipe (License): Relax license.
39791 2010-12-22  Paul Eggert  <eggert@cs.ucla.edu>
39793         doc: document Solaris printf bug with large float precisions
39794         * doc/posix-functions/dprintf.texi (dprintf):
39795         * doc/posix-functions/fprintf.texi (fprintf):
39796         * doc/posix-functions/printf.texi (printf):
39797         * doc/posix-functions/snprintf.texi (snprintf):
39798         * doc/posix-functions/sprintf.texi (sprintf):
39799         * doc/posix-functions/vdprintf.texi (vdprintf):
39800         * doc/posix-functions/vfprintf.texi (vfprintf):
39801         * doc/posix-functions/vprintf.texi (vprintf):
39802         * doc/posix-functions/vsnprintf.texi (vsnprintf):
39803         * doc/posix-functions/vsprintf.texi (vsprintf):
39804         Mention that these functions mishandle large floating point
39805         precisions on Solaris 10.  The same bug is also present in Solaris
39806         8, and I assume earlier.  This causes "cd gnulib-tests; make
39807         check" to fail on Solaris 8 (and I assume, later) when building
39808         the latest coreutils, in test-vasprintf-posix's call to
39809         my_asprintf (&result, "%.4000f %d", 1.0, 99).  I have not checked
39810         the wide flavors (e.g., wprintf) so this patch just updates the
39811         documentation for the narrow ones.
39813         test-posixtm.c: add two tests
39814         * tests/test-posixtm.c: Add two tests, to highlight the
39815         bug in Solaris 10 (and earlier) localtime.  Gnulib doesn't work
39816         around this bug; this is merely to document it.
39818 2010-12-22  Bruno Haible  <bruno@clisp.org>
39820         getlogin_r: Work around portability problem on OSF/1.
39821         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Detect the OSF/1 problem.
39822         * lib/unistd.in.h (getlogin_r): Replace if REPLACE_GETLOGIN_R is set.
39823         * lib/getlogin_r.c (getlogin_r): When getlogin_r exists, invoke it and
39824         test for a truncated result.
39825         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize REPLACE_GETLOGIN_R.
39826         * modules/unistd (Makefile.am): Substitute REPLACE_GETLOGIN_R.
39827         * modules/getlogin_r (Depends-on): Add memchr.
39828         * doc/posix-functions/getlogin_r.texi: Mention the OSF/1 problem.
39830 2010-12-22  Bruno Haible  <bruno@clisp.org>
39832         ptsname: Avoid test failure on OSF/1 5.1.
39833         * modules/ptsname-tests (Depends-on): Add 'same-inode'.
39834         * tests/test-ptsname.c: Include <sys/stat.h>, same-inode.h.
39835         (same_slave): New function.
39836         (main): Use it to compare ptsname's result with the expected file name.
39838 2010-12-22  Bruno Haible  <bruno@clisp.org>
39840         Port extended stdio modules to HP NonStop Kernel.
39841         * lib/stdio-impl.h (_IOERR, _IOREAD, _IOWRT, _IORW) [__TANDEM]: New
39842         macros.
39843         * lib/fbufmode.c: Update comments.
39844         * lib/fflush.c: Likewise.
39845         * lib/fpurge.c: Likewise.
39846         * lib/freadable.c: Likewise.
39847         * lib/freadahead.c: Likewise.
39848         * lib/freading.c: Likewise.
39849         * lib/freadptr.c: Likewise.
39850         * lib/freadseek.c: Likewise.
39851         * lib/fseeko.c: Likewise.
39852         * lib/fseterr.c: Likewise.
39853         * lib/fwritable.c: Likewise.
39854         * lib/fwriting.c: Likewise.
39855         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
39857 2010-12-22  Bruno Haible  <bruno@clisp.org>
39859         ttyname_r: Work around bug on OSF/1 5.1.
39860         * doc/posix-functions/ttyname_r.texi: Mention the OSF/1 bug.
39861         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Detect the OSF/1 bug. Say "no"
39862         instead of "guessing no" when the OSF/1 bug or the Solaris bug is
39863         present.
39864         * lib/ttyname_r.c (ttyname_r): Update comments.
39866 2010-12-22  Bruno Haible  <bruno@clisp.org>
39868         round: Implement result sign according to IEEE 754.
39869         * lib/round.c (MIN, MINUS_ZERO): New macros.
39870         (FLOOR_FREE_ROUND): Return -0.0 for -0.5 < x < 0.
39871         * tests/test-roundf-ieee.c (main): Test also values between -1 and 1.
39872         * tests/test-round-ieee.c (main): Likewise.
39873         * tests/test-roundl-ieee.c (main): Likewise.
39875         trunc: Implement result sign according to IEEE 754.
39876         * lib/trunc.c (MIN, MINUS_ZERO): New macros.
39877         (FUNC): Return +0.0 for 0 < x < 1 and -0.0 for -1 < x < 0.
39878         * tests/test-trunc2.c: Include minus-zero.h.
39879         (MINUS_ZERO): New macro.
39880         (trunc_reference): Keep in sync with lib/trunc.c.
39881         * tests/test-truncf2.c: Include minus-zero.h.
39882         (MINUS_ZERO): New macro.
39883         (truncf_reference): Keep in sync with lib/trunc.c.
39884         * tests/test-truncf-ieee.c (main): Test also values between -1 and 1.
39885         * tests/test-trunc-ieee.c (main): Likewise.
39886         * tests/test-truncl-ieee.c (main): Likewise.
39888         ceil: Implement result sign according to IEEE 754.
39889         * lib/ceil.c (MIN, MINUS_ZERO): New macros.
39890         (FUNC): Return -0.0 for -1 < x < 0.
39891         * tests/test-ceil2.c: Include minus-zero.h.
39892         (MINUS_ZERO): New macro.
39893         (ceil_reference): Keep in sync with lib/ceil.c.
39894         * tests/test-ceilf2.c: Include minus-zero.h.
39895         (MINUS_ZERO): New macro.
39896         (ceilf_reference): Keep in sync with lib/ceil.c.
39897         * tests/test-ceilf-ieee.c (main): Test also values between -1 and 1.
39898         * tests/test-ceil-ieee.c (main): Likewise.
39899         * tests/test-ceill-ieee.c (main): Likewise.
39901         floor: Implement result sign according to IEEE 754.
39902         * lib/floor.c (FUNC): Return +0.0 for 0 < x < 1.
39903         * tests/test-floor2.c (floor_reference): Keep in sync with lib/floor.c.
39904         * tests/test-floorf2.c (floorf_reference): Likewise.
39905         * tests/test-floorf-ieee.c (main): Test also values between -1 and 1.
39906         * tests/test-floor-ieee.c (main): Likewise.
39907         * tests/test-floorl-ieee.c (main): Likewise.
39909 2010-12-22  Bruno Haible  <bruno@clisp.org>
39911         getaddrinfo: Update doc.
39912         * doc/posix-functions/gai_strerror.texi: Return type is also different
39913         on AIX and HP-UX.
39915 2010-12-22  Paul Eggert  <eggert@cs.ucla.edu>
39917         getaddrinfo, inet_ntop: Update doc for Solaris.
39918         * doc/posix-functions/gai_strerror.texi: Return type is also an
39919         issue on Solaris 9 and earlier.
39920         * doc/posix-functions/inet_ntop.texi: 4th arg type is also an issue
39921         on Solaris 10 and earlier.
39923 2010-12-21  Bruno Haible  <bruno@clisp.org>
39925         New module 'roundl-ieee'.
39926         * modules/roundl-ieee: New file.
39927         * m4/roundl.m4 (gl_FUNC_ROUNDL): If gl_FUNC_ROUNDL_IEEE is also used,
39928         test whether roundl works according to ISO C 99 with IEC 60559.
39929         * m4/roundl-ieee.m4: New file.
39930         * modules/roundl-ieee-tests: New file.
39931         * tests/test-roundl-ieee.c: New file, based on tests/test-roundl.c.
39932         * tests/test-roundl.c (main): Remove signbit tests.
39933         * modules/roundl-tests (Depends-on): Remove signbit.
39934         * doc/posix-functions/roundl.texi: Mention the new module.
39936 2010-12-21  Bruno Haible  <bruno@clisp.org>
39938         New module 'truncl-ieee'.
39939         * modules/truncl-ieee: New file.
39940         * modules/truncl-ieee-tests: New file.
39941         * tests/test-truncl-ieee.c: New file, based on tests/test-truncl.c.
39942         * tests/test-truncl.c (main): Remove signbit tests.
39943         * modules/truncl-tests (Depends-on): Remove signbit.
39944         * doc/posix-functions/truncl.texi: Mention the new module.
39946 2010-12-21  Bruno Haible  <bruno@clisp.org>
39948         New module 'ceill-ieee'.
39949         * modules/ceill-ieee: New file.
39950         * modules/ceill-ieee-tests: New file.
39951         * tests/test-ceill-ieee.c: New file, based on tests/test-ceill.c.
39952         * tests/test-ceill.c (main): Remove signbit tests.
39953         * modules/ceill-tests (Depends-on): Remove signbit.
39954         * doc/posix-functions/ceill.texi: Mention the new module.
39956 2010-12-21  Bruno Haible  <bruno@clisp.org>
39958         New module 'floorl-ieee'.
39959         * modules/floorl-ieee: New file.
39960         * modules/floorl-ieee-tests: New file.
39961         * tests/test-floorl-ieee.c: New file, based on tests/test-floorl.c.
39962         * tests/test-floorl.c (main): Remove signbit tests.
39963         * modules/floorl-tests (Depends-on): Remove signbit.
39964         * doc/posix-functions/floorl.texi: Mention the new module.
39966 2010-12-21  Bruno Haible  <bruno@clisp.org>
39968         New module 'round-ieee'.
39969         * modules/round-ieee: New file.
39970         * m4/round.m4 (gl_FUNC_ROUND): If gl_FUNC_ROUND_IEEE is also used, test
39971         whether round works according to ISO C 99 with IEC 60559.
39972         * m4/round-ieee.m4: New file.
39973         * modules/round-ieee-tests: New file.
39974         * tests/test-round-ieee.c: New file, based on tests/test-roundf-ieee.c.
39975         * tests/test-round1.c (main): Remove signbit tests.
39976         * modules/round-tests (Depends-on): Remove 'signbit'.
39977         * doc/posix-functions/round.texi: Mention the new module.
39979 2010-12-21  Bruno Haible  <bruno@clisp.org>
39981         New module 'trunc-ieee'.
39982         * modules/trunc-ieee: New file.
39983         * m4/trunc.m4 (gl_FUNC_TRUNC): If gl_FUNC_TRUNC_IEEE is also used, test
39984         whether trunc works according to ISO C 99 with IEC 60559.
39985         * m4/trunc-ieee.m4: New file.
39986         * lib/math.in.h (trunc): Replace if REPLACE_TRUNC is set.
39987         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_TRUNC.
39988         * modules/math (Makefile.am): Substitute REPLACE_TRUNC.
39989         * modules/trunc-ieee-tests: New file.
39990         * tests/test-trunc-ieee.c: New file, based on tests/test-truncf-ieee.c.
39991         * tests/test-trunc1.c (main): Remove signbit tests.
39992         * modules/trunc-tests (Depends-on): Remove 'signbit'.
39993         * doc/posix-functions/trunc.texi: Mention the new module.
39995 2010-12-21  Bruno Haible  <bruno@clisp.org>
39997         New module 'ceil-ieee'.
39998         * modules/ceil-ieee: New file.
39999         * m4/ceil.m4 (gl_FUNC_CEIL): Require gl_MATH_H_DEFAULTS. If
40000         gl_FUNC_CEIL_IEEE is also used, test whether ceil works according to
40001         ISO C 99 with IEC 60559.
40002         * m4/ceil-ieee.m4: New file.
40003         * modules/ceil (Files): Add lib/ceil.c.
40004         (Depends-on): Add 'float'.
40005         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
40006         * lib/math.in.h (ceil): New declaration.
40007         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEIL,
40008         REPLACE_CEIL.
40009         * modules/math (Makefile.am): Substitute GNULIB_CEIL, REPLACE_CEIL.
40010         * modules/ceil-ieee-tests: New file.
40011         * tests/test-ceil-ieee.c: New file, based on tests/test-ceilf-ieee.c.
40012         * tests/test-math-c++.cc: Check the signature of 'ceil'.
40013         * doc/posix-functions/ceil.texi: Mention the new module.
40015 2010-12-21  Bruno Haible  <bruno@clisp.org>
40017         New module 'floor-ieee'.
40018         * modules/floor-ieee: New file.
40019         * m4/floor.m4 (gl_FUNC_FLOOR): Require gl_MATH_H_DEFAULTS. If
40020         gl_FUNC_FLOOR_IEEE is also used, test whether floor works according to
40021         ISO C 99 with IEC 60559.
40022         * m4/floor-ieee.m4: New file.
40023         * modules/floor (Files): Add lib/floor.c.
40024         (Depends-on): Add 'float'.
40025         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
40026         * lib/math.in.h (floor): New declaration.
40027         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOOR,
40028         REPLACE_FLOOR.
40029         * modules/math (Makefile.am): Substitute GNULIB_FLOOR, REPLACE_FLOOR.
40030         * modules/floor-ieee-tests: New file.
40031         * tests/test-floor-ieee.c: New file, based on tests/test-floorf-ieee.c.
40032         * tests/test-math-c++.cc: Check the signature of 'floor'.
40033         * doc/posix-functions/floor.texi: Mention the new module.
40035 2010-12-21  Bruno Haible  <bruno@clisp.org>
40037         New module 'roundf-ieee'.
40038         * modules/roundf-ieee: New file.
40039         * m4/roundf.m4 (gl_FUNC_ROUNDF): If gl_FUNC_ROUNDF_IEEE is also used,
40040         test whether roundf works according to ISO C 99 with IEC 60559.
40041         * m4/roundf-ieee.m4: New file.
40042         * modules/roundf-ieee-tests: New file.
40043         * tests/test-roundf-ieee.c: New file, based on tests/test-roundf1.c.
40044         * tests/test-roundf1.c (main): Remove signbit tests.
40045         * modules/roundf-tests (Depends-on): Remove 'signbit'.
40046         * doc/posix-functions/roundf.texi: Mention the new module.
40048 2010-12-21  Bruno Haible  <bruno@clisp.org>
40050         New module 'truncf-ieee'.
40051         * modules/truncf-ieee: New file.
40052         * m4/truncf.m4 (gl_FUNC_TRUNCF): If gl_FUNC_TRUNCF_IEEE is also used,
40053         test whether truncf works according to ISO C 99 with IEC 60559.
40054         * m4/truncf-ieee.m4: New file.
40055         * lib/math.in.h (truncf): Replace if REPLACE_TRUNCF is set.
40056         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_TRUNCF.
40057         * modules/math (Makefile.am): Substitute REPLACE_TRUNCF.
40058         * modules/truncf-ieee-tests: New file.
40059         * tests/test-truncf-ieee.c: New file, based on tests/test-truncf1.c.
40060         * tests/test-truncf1.c (main): Remove signbit tests.
40061         * modules/truncf-tests (Depends-on): Remove 'signbit'.
40062         * doc/posix-functions/truncf.texi: Mention the new module.
40064 2010-12-21  Bruno Haible  <bruno@clisp.org>
40066         New module 'ceilf-ieee'.
40067         * modules/ceilf-ieee: New file.
40068         * m4/ceilf.m4 (gl_FUNC_FLOORF): If gl_FUNC_CEILF_IEEE is also used,
40069         test whether ceilf works according to ISO C 99 with IEC 60559.
40070         * m4/ceilf-ieee.m4: New file.
40071         * modules/ceilf-ieee-tests: New file.
40072         * tests/test-ceilf-ieee.c: New file, based on tests/test-ceilf1.c.
40073         * tests/test-ceilf1.c (main): Remove signbit tests.
40074         * modules/ceilf-tests (Depends-on): Remove 'signbit'.
40075         * doc/posix-functions/ceilf.texi: Mention the new module.
40077 2010-12-21  Bruno Haible  <bruno@clisp.org>
40079         New module 'floorf-ieee'.
40080         * modules/floorf-ieee: New file.
40081         * m4/floorf.m4 (gl_FUNC_FLOORF): If gl_FUNC_FLOORF_IEEE is also used,
40082         test whether floorf works according to ISO C 99 with IEC 60559.
40083         * m4/floorf-ieee.m4: New file.
40084         * modules/floorf-ieee-tests: New file.
40085         * tests/test-floorf-ieee.c: New file, based on tests/test-floorf1.c.
40086         * tests/test-floorf1.c (main): Remove signbit tests.
40087         * modules/floorf-tests (Depends-on): Remove 'signbit'.
40088         * doc/posix-functions/floorf.texi: Mention the new module.
40090 2010-12-21  Bruno Haible  <bruno@clisp.org>
40092         Support for minus zero in autoconf macros.
40093         * m4/minus-zero.m4: New file, based on tests/minus-zero.h.
40094         * m4/signbit.m4 (gl_FLOAT_SIGNBIT_CODE, gl_DOUBLE_SIGNBIT_CODE,
40095         gl_LONG_DOUBLE_SIGNBIT_CODE, gl_FLOATTYPE_SIGNBIT_CODE): New macros.
40096         * tests/minus-zero.h: Update comments.
40098 2010-12-21  Bruno Haible  <bruno@clisp.org>
40100         Tests for module 'ceil'.
40101         * modules/ceil-tests: New file.
40102         * tests/test-ceil1.c: New file, based on tests/test-ceill.c.
40103         * tests/test-ceil2.c: New file, based on tests/test-ceilf2.c.
40105 2010-12-21  Bruno Haible  <bruno@clisp.org>
40107         Tests for module 'floor'.
40108         * modules/floor-tests: New file.
40109         * tests/test-floor1.c: New file, based on tests/test-floorl.c.
40110         * tests/test-floor2.c: New file, based on tests/test-floorf2.c.
40112 2010-12-21  Bruno Haible  <bruno@clisp.org>
40114         math: Fix indentation.
40115         * lib/math.in.h (floorf): Fix indentation.
40117 2010-12-21  Bruno Haible  <bruno@clisp.org>
40119         Fix cross-compilation guesses on Solaris.
40120         * m4/fopen.m4 (gl_FUNC_FOPEN): Correct shell pattern so that it does
40121         not match "solaris2.10".
40122         * m4/open.m4 (gl_FUNC_OPEN): Likewise.
40123         * m4/printf.m4 (gl_SNPRINTF_TRUNCATION_C99, gl_SNPRINTF_DIRECTIVE_N,
40124         gl_VSNPRINTF_ZEROSIZE_C99): Likewise.
40126 2010-12-21  Paul Eggert  <eggert@cs.ucla.edu>
40128         snprintf: port snprintf (NULL, 0, ...) to Solaris 8 and 9
40129         This fixes a problem observed with the latest coreutils snapshot
40130         that caused a test to fail on Solaris 8.  src/csplit.c's call
40131         snprintf (NULL, 0, format, UINT_MAX) returns -1 on Solaris 9 and
40132         earlier, instead of returning the number of bytes that would have
40133         been generated; this causes csplit to incorrectly report memory
40134         exhaustion.
40135         * m4/printf.m4 (gl_SNPRINTF_RETVAL_C99): Also check for
40136         snprintf (NULL, 0, ...) and (for good measure) snprintf (buf, 0, ...).
40137         Guess that it doesn't work on Solaris 2.6 through 9.  Adjust
40138         comments to match.
40139         (gl_PRINTF_SIZES_C99, gl_PRINTF_DIRECTIVE_F, gl_SNPRINTF_RETVAL_C99):
40140         Fix typo in matching older versions of Solaris: "solaris2.10"
40141         is matched by the shell pattern "solaris2.[0-9]*".  This matters
40142         only for guessing while cross-compiling.
40143         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Also check gl_SNPRINTF_RETVAL_C99.
40145 2010-12-20  Paul Eggert  <eggert@cs.ucla.edu>
40147         ftoastr: fix comment again
40148         * lib/ftoastr.h: Fix typo in comment.  Noted by Ben Pfaff in
40149         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00149.html>.
40150         Also, simplify example a bit by using flags = 0.
40152 2010-12-20  Bruno Haible  <bruno@clisp.org>
40154         round*, trunc*: Update documentation regarding glibc.
40155         * doc/posix-functions/roundf.texi: Mention missing declaration problem.
40156         * doc/posix-functions/round.texi: Likewise.
40157         * doc/posix-functions/roundl.texi: Likewise.
40158         * doc/posix-functions/truncf.texi: Likewise.
40159         * doc/posix-functions/trunc.texi: Likewise.
40160         * doc/posix-functions/truncl.texi: Likewise.
40162 2010-12-20  Bruno Haible  <bruno@clisp.org>
40164         roundf, round, roundl: Update documentation regarding OSF/1 5.1.
40165         * doc/posix-functions/roundf.texi: Mention OSF/1 5.1 problem.
40166         * doc/posix-functions/round.texi: Likewise.
40167         * doc/posix-functions/roundl.texi: Likewise.
40169 2010-12-20  Bruno Haible  <bruno@clisp.org>
40171         ttyname_r: Add missing declaration on HP-UX 11.
40172         * lib/unistd.in.h (ttyname_r): Test HAVE_DECL_TTYNAME_R instead of
40173         HAVE_TTYNAME_R.
40174         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Test whether ttyname_r is
40175         declared. Set HAVE_TTYNAME_R always.
40176         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
40177         HAVE_DECL_TTYNAME_R, not HAVE_TTYNAME_R.
40178         * modules/unistd (Makefile.am): Substitute HAVE_DECL_TTYNAME_R, not
40179         HAVE_TTYNAME_R.
40180         * doc/posix-functions/ttyname_r.texi: Document the HP-UX 11 problem.
40182 2010-12-20  Bruno Haible  <bruno@clisp.org>
40184         getlogin, getlogin_r: Document HP-UX 11.11 bugs.
40185         * doc/posix-functions/getlogin.texi: Document HP-UX 11.11 bug.
40186         * doc/posix-functions/getlogin_r.texi: Likewise.
40187         * tests/test-getlogin.c: Include <errno.h>.
40188         (main): Avoid test failure on HP-UX 11.11.
40189         * tests/test-getlogin_r.c (main): Likewise.
40191 2010-12-20  Bruno Haible  <bruno@clisp.org>
40193         getlogin_r: Add missing declaration on HP-UX 11.
40194         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Test whether getlogin_r is
40195         declared also when it exists as a function.
40196         * doc/posix-functions/getlogin_r.texi: Document this workaround.
40198 2010-12-20  Bruno Haible  <bruno@clisp.org>
40200         wcsrtombs: Don't confuse mbstate_t with rpl_mbstate_t.
40201         * lib/wcsrtombs.c: If gnulib overrides mbstate_t, define wcsrtombs
40202         through wcrtomb.
40204 2010-12-19  Paul Eggert  <eggert@cs.ucla.edu>
40206         ftoastr: fix comment
40207         * lib/ftoastr.h: Fix typo in comment.  Noted by Ben Pfaff in
40208         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00130.html>.
40210 2010-12-19  Bruno Haible  <bruno@clisp.org>
40212         isnan: Ensure it is a macro.
40213         * lib/math.in.h (isnan): Define as a macro if not already a macro.
40214         * doc/posix-functions/isnan.texi: Mention problem on IRIX, OSF/1,
40215         Solaris.
40217 2010-12-19  Bruno Haible  <bruno@clisp.org>
40219         ldexpl test: Fix link error on OSF/1 5.1.
40220         * modules/ldexpl-tests (Makefile.am): Define test_ldexpl_LDADD.
40222 2010-12-19  Bruno Haible  <bruno@clisp.org>
40224         wctype: Make it work in C++ mode on OSF/1 5.1.
40225         * lib/wctype.in.h (iswblank): Declare but not define here.
40226         * lib/iswblank.c: New file, extracted from lib/wctype.in.h.
40227         * m4/wctype_h.m4 (gl_WCTYPE_H): Arrange to compile it if needed.
40228         * modules/wctype (Files): Add lib/iswblank.c.
40230 2010-12-19  Bruno Haible  <bruno@clisp.org>
40232         signal: Document problem with type of SIGRTMIN, SIGRTMAX on OSF/1 5.1.
40233         * doc/posix-headers/signal.texi: Document OSF/1 5.1 problem.
40234         * lib/strsignal.c (strsignal): Cast SIGRTMIN to 'int'.
40236 2010-12-19  Bruno Haible  <bruno@clisp.org>
40238         sys_socket: Use POSIX compatible declarations on OSF/1 5.1.
40239         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): On OSF/1, define
40240         _POSIX_PII_SOCKET.
40241         * doc/posix-functions/recv.texi: Document the OSF/1 problem.
40242         * doc/posix-functions/recvfrom.texi: Likewise.
40243         * doc/posix-functions/send.texi: Likewise.
40244         * doc/posix-functions/sendto.texi: Likewise.
40246 2010-12-19  Bruno Haible  <bruno@clisp.org>
40248         tcgetsid: Add missing declaration on OSF/1 5.1.
40249         * lib/termios.in.h (tcgetsid): Test HAVE_DECL_TCGETSID instead of
40250         HAVE_TCGETSID.
40251         * m4/tcgetsid.m4 (gl_FUNC_TCGETSID): Test whether tcgetsid is declared.
40252         Don't set HAVE_TCGETSID.
40253         * m4/termios_h.m4 (gl_TERMIOS_H_DEFAULTS): Initialize
40254         HAVE_DECL_TCGETSID, not HAVE_TCGETSID.
40255         * modules/termios (Makefile.am): Substitute HAVE_DECL_TCGETSID, not
40256         HAVE_TCGETSID.
40257         * doc/posix-functions/tcgetsid.texi: Mention the OSF/1 5.1 problem.
40259 2010-12-19  Bruno Haible  <bruno@clisp.org>
40261         stdio: Fix problem with popen() declaration on OSF/1 5.1.
40262         * lib/stdio.in.h: During the include_next statement, let recursive
40263         includes of this file include only the system header file.
40265 2010-12-19  Bruno Haible  <bruno@clisp.org>
40267         iconv_open: Fix regression from 2010-12-04.
40268         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Fix typo.
40269         Reported by Noah Lavine <noah.b.lavine@gmail.com>.
40271 2010-12-19  Bruno Haible  <bruno@clisp.org>
40273         stdbool test: Avoid a gcc warning.
40274         * tests/test-stdbool.c (main): Fail if e1 is false.
40275         Reported by Jim Meyering.
40277 2010-12-19  Jim Meyering  <meyering@redhat.com>
40279         setenv: restore to working order
40280         $HAVE_SETENV is used in gl_FUNC_SETENV, yet its definitions were
40281         mistakenly removed.
40282         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Restore code to set
40283         HAVE_SETENV.
40284         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Restore code to initialize
40285         HAVE_SETENV.
40287 2010-12-19  Bruno Haible  <bruno@clisp.org>
40289         Document some different function declarations on OSF/1 5.1.
40290         * doc/posix-functions/gai_strerror.texi: Mention different declaration.
40291         * doc/posix-functions/inet_ntop.texi: Likewise.
40292         * doc/posix-functions/gethostname.texi: Likewise.
40293         * lib/unistd.in.h (gethostname): Update comment.
40295 2010-12-19  Bruno Haible  <bruno@clisp.org>
40297         doc: Mention vasprintf-posix module.
40298         * doc/glibc-functions/asprintf.texi: Mention the workarounds present in
40299         the 'vasprintf-posix' module.
40300         * doc/glibc-functions/vasprintf.texi: Likewise.
40302 2010-12-19  Bruno Haible  <bruno@clisp.org>
40304         unsetenv: Add missing declaration on OSF/1 5.1.
40305         * lib/stdlib.in.h (setenv): Test HAVE_DECL_UNSETENV, not HAVE_UNSETENV.
40306         * m4/setenv.m4 (gl_FUNC_UNSETENV): Test whether unsetenv is declared.
40307         Don't set HAVE_UNSETENV. In the test program, set _BSD.
40308         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize HAVE_DECL_UNSETENV,
40309         not HAVE_UNSETENV.
40310         * modules/stdlib (Makefile.am): Substitute HAVE_DECL_UNSETENV, not
40311         HAVE_UNSETENV.
40312         * doc/posix-functions/unsetenv.texi: Mention the OSF/1 5.1 problem.
40314 2010-12-19  Bruno Haible  <bruno@clisp.org>
40316         setenv: Add missing declaration on OSF/1 5.1.
40317         * lib/stdlib.in.h (setenv): Test HAVE_DECL_SETENV, not HAVE_SETENV.
40318         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Test whether setenv is
40319         declared. Don't set HAVE_SETENV.
40320         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize HAVE_DECL_SETENV,
40321         not HAVE_SETENV.
40322         * modules/stdlib (Makefile.am): Substitute HAVE_DECL_SETENV, not
40323         HAVE_SETENV.
40324         * doc/posix-functions/setenv.texi: Mention the OSF/1 5.1 problem.
40326 2010-12-19  Bruno Haible  <bruno@clisp.org>
40328         nl_langinfo tests: Avoid gcc warning.
40329         * tests/test-nl_langinfo.c: Don't enable the GCC pragma for GCC 4.2.
40331 2010-12-19  Bruno Haible  <bruno@clisp.org>
40333         mknod: Avoid error in C++ mode on OSF/1 with GCC.
40334         * lib/sys_stat.in.h (mknod): Use _GL_CXXALIAS_SYS_CAST instead of
40335         _GL_CXXALIAS_SYS.
40337 2010-12-19  Bruno Haible  <bruno@clisp.org>
40339         stdbool: Relax test.
40340         * tests/test-stdbool.c (e): Don't require that casts from a variable's
40341         address to 'bool' work in static initializer, for compilers other than
40342         GCC.
40344 2010-12-19  Bruno Haible  <bruno@clisp.org>
40346         ftello: Add missing declaration on OSF/1 5.1.
40347         * lib/stdio.in.h (ftello): Test HAVE_DECL_FTELLO, not HAVE_FTELLO.
40348         * m4/ftello.m4 (gl_FUNC_FTELLO): Test whether ftello is declared.
40349         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_DECL_FTELLO.
40350         * modules/stdio (Makefile.am): Substitute HAVE_DECL_FTELLO.
40351         * doc/posix-functions/ftello.texi: Mention the OSF/1 5.1 problem.
40353 2010-12-19  Bruno Haible  <bruno@clisp.org>
40355         fseeko: Add missing declaration on OSF/1 5.1.
40356         * lib/stdio.in.h (fseeko): Test HAVE_DECL_FSEEKO, not HAVE_FSEEKO.
40357         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Test whether fseeko is declared.
40358         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_DECL_FSEEKO.
40359         * modules/stdio (Makefile.am): Substitute HAVE_DECL_FSEEKO.
40360         * doc/posix-functions/fseeko.texi: Mention the OSF/1 5.1 problem.
40362 2010-12-19  Bruno Haible  <bruno@clisp.org>
40364         fchdir: Add missing declaration on OSF/1 5.1.
40365         * lib/unistd.in.h (fchdir): Provide declaration if systems lacks it.
40366         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Check whether fchdir is declared.
40367         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize HAVE_DECL_FCHDIR.
40368         * modules/unistd (Makefile.am): Substitute HAVE_DECL_FCHDIR.
40369         * doc/posix-functions/fchdir.texi: Mention the OSF/1 5.1 problem.
40371 2010-12-19  Bruno Haible  <bruno@clisp.org>
40373         relocatable-prog-wrapper: Separate from relocatable-prog.
40374         * modules/relocatable-prog (Makefile.am): Define uninstall-hook and
40375         uninstall-relocwrapper rule here.
40376         * modules/relocatable-prog-wrapper (Makefile.am): ... not here.
40377         Reported by Ian Beckwith <ianb@erislabs.net>.
40379 2010-12-19  Bruno Haible  <bruno@clisp.org>
40381         unistr/u8-mbsnlen: Add missing dependency.
40382         * modules/unistr/u8-mbsnlen (Depends-on): Add unistr/u8-mbtouc.
40383         Reported by Ian Beckwith <ianb@erislabs.net>.
40385 2010-12-19  Bruno Haible  <bruno@clisp.org>
40387         iconv: Make it possible again to use this module without 'iconv-h'.
40388         * modules/iconv (configure.ac): Don't invoke gl_ICONV_MODULE_INDICATOR
40389         if it is not defined.
40390         Reported by Ian Beckwith <ianb@erislabs.net>.
40392 2010-12-18  Paul Eggert  <eggert@cs.ucla.edu>
40394         acl: port to Solaris 8 when copying from tmpfs to ufs
40395         * lib/copy-acl.c (qcopy_acl): Also allow EINVAL as an ignorable
40396         error number.  Problem observed on Solaris 8 with latest
40397         coreutils, with "mv A B", where A is on a tmpfs file system and B
40398         is on a ufs file system.  This caused coreutils' mv/part-symlink
40399         test to fail.
40401         tests: set fail=0 at start
40402         * tests/init.sh (setup_): Move fail=0 initialization here ...
40403         (mktempd_): ... from here, so that tests can rely on fail being
40404         set to 0 initially.  This fixes a problem in coreutils; see:
40405         http://lists.gnu.org/archive/html/coreutils/2010-12/msg00083.html
40407 2010-12-18  Bruno Haible  <bruno@clisp.org>
40409         memmem-simple: Stylistic changes.
40410         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): Avoid possible gcc warning.
40411         Fix preprocessor directive indentation.
40413 2010-12-15  Pádraig Brady  <P@draigBrady.com>
40415         memmem, memmem-simple: reorganize and expand empty needle check
40416         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE, gl_FUNC_MEMMEM): Move all
40417         functional checks to memmem-simple so that one has a fully functional
40418         memmem by using just this module.
40419         Restrict the performance only check to the memmem module.
40420         Also expand the empty needle check to ensure the correct
40421         pointer is returned, not just a non NULL pointer.
40422         * doc/glibc-functions/memmem.texi: Rearrange the portability
40423         documentation to correlate with the rearranged checks.
40424         Clarify exactly how the memmem and memmem-simple modules
40425         relate to each other.
40427 2010-12-15  Pádraig Brady  <P@draigBrady.com>
40428             Bruno Haible  <bruno@clisp.org>
40430         Improve cross-compilation guesses for uClibc.
40431         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): When cross-compiling, assume
40432         that uClibc does not have the glibc bug.
40433         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Likewise.
40434         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE): Likewise.
40436 2010-12-14  Eric Blake  <eblake@redhat.com>
40438         configmake: provide fallbacks for oldest supported autotools
40439         * m4/configmake.m4: New file.
40440         * modules/configmake (Files): Ship it.
40441         (configure.ac): Use it to guarantee fallbacks.
40443 2010-12-13  Pádraig Brady  <P@draigBrady.com>
40445         read-file: Improve handling of large files
40446         * lib/read-file.c (fread_file): Minimize realloc()s
40447         for regular files, and better manage sizes around SIZE_MAX.
40449 2010-12-13  Eric Blake  <eblake@redhat.com>
40451         cloexec, fcntl: relax license
40452         * modules/cloexec (License): Change from LGPLv3+ to LGPLv2+, with
40453         consent from all contributors.
40454         * modules/fcntl (License): Likewise.
40456 2010-12-10  Bruno Haible  <bruno@clisp.org>
40458         Tests for module 'pipe-posix'.
40459         * modules/pipe-posix-tests: New file.
40460         * tests/test-pipe.c: New file, based on tests/test-pipe2.c.
40462 2010-12-10  Bruno Haible  <bruno@clisp.org>
40464         pipe-posix: Make it work in C++ mode.
40465         * lib/unistd.in.h: Don't include <io.h>, <fcntl.h> for pipe.
40466         (pipe): Use common idiom, not a macro definition.
40467         * lib/pipe.c: New file.
40468         * m4/pipe.m4: New file.
40469         * modules/pipe-posix (Description): Enhance.
40470         (Files): Add lib/pipe.c, m4/pipe.m4.
40471         (configure.ac): Invoke gl_FUNC_PIPE.
40472         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize HAVE_PIPE.
40473         * modules/unistd (Makefile.am): Substitute HAVE_PIPE.
40474         * tests/test-unistd-c++.cc: Check the signature of pipe.
40476 2010-12-10  Bruno Haible  <bruno@clisp.org>
40478         Rename module 'pipe' to 'spawn-pipe'.
40479         * modules/spawn-pipe: New file, renamed from modules/pipe.
40480         (Files, configure.ac, Makefile.am): Update.
40481         (Include): Mention "spawn-pipe.h" instead of "pipe.h".
40482         * modules/pipe: Reduce to an obsolete indirection to 'spawn-pipe'.
40483         * lib/spawn-pipe.h: New file, renamed from lib/pipe.h.
40484         * lib/spawn-pipe.c: New file, renamed from lib/pipe.c. Include
40485         "spawn-pipe.h" instead of "pipe.h".
40486         * m4/spawn-pipe.m4: New file, renamed from m4/pipe.m4. Rename gl_PIPE
40487         to gl_SPAWN_PIPE.
40488         * modules/spawn-pipe-tests: New file, renamed from modules/pipe-tests.
40489         (Files, Makefile.am): Update.
40490         * tests/test-spawn-pipe.sh: New file, renamed from tests/test-pipe.sh.
40491         Update.
40492         * tests/test-spawn-pipe.c: New file, renamed from tests/test-pipe.c.
40493         Include "spawn-pipe.h" instead of "pipe.h".
40494         * lib/csharpcomp.c: Include "spawn-pipe.h" instead of "pipe.h".
40495         * lib/javacomp.c: Likewise.
40496         * lib/javaversion.c: Likewise.
40497         * lib/pipe-filter-gi.c: Likewise.
40498         * lib/pipe-filter-ii.c: Likewise.
40499         * modules/csharpcomp (Depends-on): Add 'spawn-pipe', remove 'pipe'.
40500         * modules/javacomp (Depends-on): Likewise.
40501         * modules/javaversion (Depends-on): Likewise.
40502         * modules/pipe-filter-gi (Depends-on): Likewise.
40503         * modules/pipe-filter-ii (Depends-on): Likewise.
40504         * MODULES.html.sh (Executing programs): Update.
40505         * NEWS: Mention the change.
40507 2010-12-10  Eric Blake  <eblake@redhat.com>
40509         pipe-posix: new module
40510         * modules/pipe-posix: New file.
40511         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set default.
40512         (gl_UNISTD_H): Check for declaration.
40513         * modules/unistd (Makefile.am): Substitute it.
40514         * lib/unistd.in.h (pipe): Provide it for mingw.
40515         * doc/posix-functions/pipe.texi (pipe): Update documentation.
40516         * MODULES.html.sh (File descriptor based Input/Output): Likewise.
40518 2010-12-07  Bruno Haible  <bruno@clisp.org>
40520         unistr/u8-strcmp: Avoid collision with libc function on Solaris 11.
40521         * lib/unistr.in.h (u8_strcmp) [__sun]: Declare with real name
40522         u8_strcmp_gnu.
40523         * modules/unistr/u8-strcmp (configure.ac): Bump version number.
40525 2010-12-06  Bruno Haible  <bruno@clisp.org>
40527         Update internal documentation.
40528         * m4/README: Document new idioms for AC_RUN_IFELSE invocations.
40530 2010-12-04  Bruno Haible  <bruno@clisp.org>
40532         Put more information about failed tests into the test return codes.
40533         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Change test
40534         program so that it returns an enumerated value (0, 1, 2, 3, 4, ...).
40535         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Likewise.
40536         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
40537         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Likewise.
40538         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
40539         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
40540         * m4/intdiv0.m4 (gt_INTDIV0): Likewise.
40541         * m4/isapipe.m4 (gl_PREREQ_ISAPIPE): Likewise.
40542         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
40543         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Likewise.
40544         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
40545         * m4/sleep.m4 (gl_FUNC_SLEEP): Likewise.
40546         * m4/stdint.m4 (gl_STDINT_H): Likewise.
40547         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Change test program so that it
40548         returns a bit mask.
40549         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Likewise.
40550         * m4/chown.m4 (gl_FUNC_CHOWN_FOLLOWS_SYMLINK): Likewise.
40551         * m4/dup2.m4 (gl_FUNC_DUP2): Likewise.
40552         * m4/fcntl-o.m4 (gl_FCNTL_O_FLAGS): Likewise.
40553         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): Likewise.
40554         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Likewise.
40555         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Likewise.
40556         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
40557         * m4/iconv.m4 (AM_ICONV_LINK): Likewise.
40558         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Likewise.
40559         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
40560         * m4/isnanf.m4 (gl_ISNANF_WORKS): Likewise.
40561         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
40562         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): Likewise.
40563         * m4/link.m4 (gl_FUNC_LINK): Likewise.
40564         * m4/linkat.m4 (gl_FUNC_LINKAT): Likewise.
40565         * m4/mbrlen.m4 (gl_MBRLEN_RETVAL): Likewise.
40566         * m4/mbrtowc.m4 (gl_MBRTOWC_RETVAL): Likewise.
40567         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
40568         * m4/memchr.m4 (gl_FUNC_MEMCHR): Likewise.
40569         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
40570         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Likewise.
40571         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Likewise.
40572         * m4/mktime.m4 (AC_FUNC_MKTIME): Likewise.
40573         * m4/open.m4 (gl_FUNC_OPEN): Likewise.
40574         * m4/poll.m4 (gl_FUNC_POLL): Likewise.
40575         * m4/popen.m4 (gl_FUNC_POPEN): Likewise.
40576         * m4/printf.m4 (gl_PRINTF_SIZES_C99, gl_PRINTF_LONG_DOUBLE,
40577         gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE,
40578         gl_PRINTF_DIRECTIVE_A, gl_PRINTF_DIRECTIVE_F, gl_PRINTF_DIRECTIVE_LS,
40579         gl_PRINTF_PRECISION): Likewise.
40580         * m4/regex.m4 (gl_REGEX): Likewise.
40581         * m4/rename.m4 (gl_FUNC_RENAME): Likewise.
40582         * m4/rmdir.m4 (gl_FUNC_RMDIR): Likewise.
40583         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Likewise.
40584         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
40585         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
40586         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
40587         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Likewise.
40588         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Likewise.
40589         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
40590         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
40591         * m4/symlink.m4 (gl_FUNC_SYMLINK): Likewise.
40592         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Likewise.
40593         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Likewise.
40594         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Likewise.
40595         * m4/unlink.m4 (gl_FUNC_UNLINK): Likewise.
40596         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
40597         * m4/utimes.m4 (gl_FUNC_UTIMES): Likewise.
40598         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise.
40599         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
40600         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Likewise.
40601         (gl_FLOATTYPE_SIGN_LOCATION): Change test program so that it returns an
40602         enumerated value.
40603         * m4/acl.m4 (gl_ACL_GET_FILE): Use "if ... return 1; return 0;" style.
40605 2010-12-04  Bruno Haible  <bruno@clisp.org>
40607         Update for Solaris 11 2010-11.
40608         * doc/{glibc,posix}-{functions,headers}: Add info about Solaris 11
40609         Express, released in November 2010.
40611 2010-12-04  Bruno Haible  <bruno@clisp.org>
40613         nproc: Relax license.
40614         * modules/nproc (License): Change to LGPL, with consent by Glen Lenker
40615         and Paul Eggert.
40616         Requested by Ludovic Courtès <ludo@gnu.org>.
40618 2010-12-01  Paul Eggert  <eggert@cs.ucla.edu>
40620         utimecmp: fine-grained src to nearby coarse-grained dest
40622         * lib/utimecmp.c (utimecmp): When UTIMECMP_TRUNCATE_SOURCE is set,
40623         and the source is on a file system with higher-resolution time
40624         stamps, than the destination, and _PC_TIMESTAMP_RESOLUTION does
40625         not work, and the time stamps are close together, the algorithm to
40626         determine the exact resolution from the read-back mtime was buggy:
40627         it had a "!=" where it should have had an "==".  This bug has been
40628         in the code ever since it was introduced to gnulib.
40629         Problem reported by Dan Jacobson in
40630         <http://debbugs.gnu.org/cgi/bugreport.cgi?bug=7529>.
40632 2010-11-30  Bruno Haible  <bruno@clisp.org>
40634         strerror_r-posix: Fix autoconf test.
40635         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Fix typo.
40637 2010-11-28  Bruno Haible  <bruno@clisp.org>
40638             Paul Eggert  <eggert@cs.ucla.edu>
40640         Tests for module 'getdomainname'.
40641         * modules/getdomainname-tests: New file.
40642         * tests/test-getdomainname.c: New file, based on
40643         tests/test-gethostname.c.
40645 2010-11-28  Bruno Haible  <bruno@clisp.org>
40646             Paul Eggert  <eggert@cs.ucla.edu>
40648         getdomainname: Use the system function when possible.
40649         * lib/unistd.in.h: Include <netdb.h>, for getdomainname's declaration.
40650         (getdomainname): Replace if needed. Provide the declaration if it is
40651         missing. Don't use _GL_CXXALIAS_SYS_CAST.
40652         * lib/getdomainname.c: Include <limits.h> and <sys/systeminfo.h>.
40653         (getdomainname): When the system has getdomainname, call the system
40654         function. When sysinfo (SI_SRPC_DOMAIN, ...) is possible, use that.
40655         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Require
40656         gl_HEADER_SYS_SOCKET and gl_HEADER_NETDB. Test whether the function is
40657         found in libnsl. Look for the declaration also in <netdb.h>. Replace
40658         the function if its second argument is of type 'int' or if it is found
40659         in libnsl.
40660         (gl_PREREQ_GETDOMAINNAME): Define HAVE_GETDOMAINNAME. Check for
40661         <sys/systeminfo.h> and sysinfo().
40662         * modules/getdomainname (Depends-on): Add netdb, sys_socket.
40663         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
40664         HAVE_DECL_GETDOMAINNAME and REPLACE_GETDOMAINNAME instead of
40665         HAVE_GETDOMAINNAME.
40666         * modules/unistd (Makefile.am): Substitute HAVE_DECL_GETDOMAINNAME and
40667         REPLACE_GETDOMAINNAME instead of HAVE_GETDOMAINNAME.
40668         * doc/glibc-functions/getdomainname.texi: Document the problems with
40669         the getdomainname declaration.
40671 2010-11-28  Bruno Haible  <bruno@clisp.org>
40673         sys_socket: Ensure ss_family field on AIX.
40674         * lib/sys_socket.in.h (ss_family): New macro definition.
40675         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Set
40676         HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY. Set SYS_SOCKET_H if necessary.
40677         (gl_SYS_SOCKET_H_DEFAULTS): Initialize
40678         HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY.
40679         * modules/sys_socket (Makefile.am): Substitute
40680         HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY.
40681         * doc/posix-headers/sys_socket.texi: Mention the AIX bug.
40683 2010-11-27  Bruno Haible  <bruno@clisp.org>
40685         readline: Improve configure output.
40686         * m4/readline.m4 (gl_FUNC_READLINE): Make the
40687         "checking for readline..." result understandable.
40689 2010-11-27  Bruno Haible  <bruno@clisp.org>
40691         *printf-posix: Detect a bug on Solaris 10/x86.
40692         * m4/printf.m4 (gl_PRINTF_PRECISION): Detect crash with large precision
40693         for floating-point output.
40694         * tests/test-vasnprintf-posix.c (test_function): Test precision with %f
40695         directive.
40696         * tests/test-snprintf-posix.h (test_function): Likewise.
40697         * tests/test-sprintf-posix.h (test_function): Likewise.
40698         * tests/test-vasprintf-posix.c (test_function): Likewise.
40699         * doc/posix-functions/fprintf.texi: Mention Solaris/x86 bug.
40700         * doc/posix-functions/printf.texi: Likewise.
40701         * doc/posix-functions/snprintf.texi: Likewise.
40702         * doc/posix-functions/sprintf.texi: Likewise.
40703         * doc/posix-functions/vfprintf.texi: Likewise.
40704         * doc/posix-functions/vprintf.texi: Likewise.
40705         * doc/posix-functions/vsnprintf.texi: Likewise.
40706         * doc/posix-functions/vsprintf.texi: Likewise.
40707         * doc/glibc-functions/obstack_printf.texi: Likewise.
40708         * doc/glibc-functions/obstack_vprintf.texi: Likewise.
40710 2010-11-27  Bruno Haible  <bruno@clisp.org>
40712         Fix link error when module libunistring-optional is in use.
40713         * modules/striconveh-tests (Makefile.am): Link with $(LIBUNISTRING).
40714         * modules/striconveha-tests (Makefile.am): Likewise.
40716 2010-11-27  Bruno Haible  <bruno@clisp.org>
40718         regex: Mention link dependencies.
40719         * modules/regex (Link): New section.
40720         * modules/rpmatch (Link): Likewise.
40721         * modules/regex-quote-tests (Makefile.am): Link with $(LIBINTL).
40723 2010-11-27  Bruno Haible  <bruno@clisp.org>
40725         ftoastr: Fix compilation error on Solaris.
40726         * lib/ftoastr.c: Include <config.h>.
40728 2010-11-27  Bruno Haible  <bruno@clisp.org>
40730         getloadavg: Update documentation.
40731         * doc/glibc-functions/getloadavg.texi: Mention the Solaris problem.
40733 2010-11-27  Bruno Haible  <bruno@clisp.org>
40735         sys_socket: Fix test whether the functions are declared.
40736         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Include <sys/socket.h>,
40737         not <sys/select.h>.
40739 2010-11-27  Bruno Haible  <bruno@clisp.org>
40741         getpass: Make sure to get system declaration on some platforms.
40742         * m4/getpass.m4 (gl_FUNC_GETPASS, gl_FUNC_GETPASS_GNU): Require
40743         gl_USE_SYSTEM_EXTENSIONS.
40744         * modules/getpass (Depends-on): Add extensions.
40746 2010-11-26  Bruno Haible  <bruno@clisp.org>
40748         iconv-h: Fix test-iconv-h-c++ failure on Solaris 11 2010-11.
40749         * lib/iconv.in.h (iconv_open, iconv, iconv_close): Define only if the
40750         'iconv' module is present.
40751         (ICONV_CONST): New macro.
40752         * m4/iconv_h.m4 (gl_ICONV_H_DEFAULTS): Initialize GNULIB_ICONV and
40753         ICONV_CONST.
40754         * m4/iconv.m4 (AM_ICONV): If the gnulib module 'iconv-h' is present,
40755         set ICONV_CONST.
40756         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Don't set ICONV_CONST
40757         here.
40758         * modules/iconv (configure.ac): Invoke gl_ICONV_MODULE_INDICATOR.
40759         * modules/iconv-h (Makefile.am): Substitute GNULIB_ICONV.
40760         * tests/test-iconv-h.c (ICONV_CONST): Don't define here.
40761         * tests/test-iconv-h-c++.cc (ICONV_CONST): Don't define here.
40762         (iconv_open, iconv, iconv_close): Test only if the 'iconv' module is
40763         present.
40765 2010-11-25  Paul Eggert  <eggert@cs.ucla.edu>
40767         ftoastr: comment fix
40768         * lib/ftoastr.c: "little" -> "little or no" in comment
40770 2010-11-24  Paul Eggert  <eggert@cs.ucla.edu>
40772         stdint: port to GCC 4.3 + OSX + Octave
40773         On this platform, stdint.h is buggy and defines int64_t to long
40774         long int.  The replacement defined it to long int, causing
40775         problems with C++ style name mangling.  Instead, trust the system
40776         definition if INT64_MAX is defined, and likewise for the unsigned
40777         variant.   Problem reported by Jarno Rajahalme in
40778         <http://lists.gnu.org/archive/html/bug-gnulib/2010-04/msg00143.html>.
40779         * lib/stdint.in.h (GL_INT64_T): Define if INT64_MAX is defined,
40780         and don't mess with int64_t and INT64_MAX in this case.
40781         (GL_UINT64_T): Likewise for UINT64_MAX and uint64_t.
40783 2010-11-24  Bruno Haible  <bruno@clisp.org>
40785         doc: Corrections regarding MacOS X 10.4 and 10.5.
40786         * doc/{glibc,posix,pastposix}-functions/*.texi: Update info about
40787         MacOS X.
40788         Reported by Simon Josefsson.
40790 2010-11-22  Ben Pfaff  <blp@cs.stanford.edu>
40792         Uninstall ".bin" files installed by relocwrapper.
40793         * modules/relocatable-prog-wrapper (uninstall-relocwrapper):
40794         Recursively run "make uninstall" with ".bin" prefixed to EXEEXT,
40795         unless it is already there.
40797 2010-11-21  Bruno Haible  <bruno@clisp.org>
40799         Update for NetBSD 5.0.
40800         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Don't guess yes on
40801         NetBSD; the test fails on NetBSD 5.0.
40802         * doc/{glibc,posix,pastposix}-{headers,functions}/*.texi: Update info
40803         about NetBSD.
40805 2010-11-21  Bruno Haible  <bruno@clisp.org>
40807         Update for HP-UX 11.23 and HP-UX 11.31.
40808         * doc/{glibc,posix}-{headers,functions}/*.texi: Update info about
40809         HP-UX.
40811 2010-11-21  Bruno Haible  <bruno@clisp.org>
40813         Update for MacOS X 10.5.
40814         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Don't guess yes on
40815         MacOS X; the test fails on MacOS X 10.5.8.
40816         * doc/{glibc,posix,pastposix}-{headers,functions}/*.texi: Update info
40817         about MacOS X.
40819 2010-11-20  Joel E. Denny  <joeldenny@joeldenny.org>
40821         bootstrap: add bootstrap_sync option.
40822         See discussion at
40823         <http://lists.gnu.org/archive/html/bug-gnulib/2010-10/msg00369.html>,
40824         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00200.html>.
40825         * build-aux/bootstrap: Accept --bootstrap-sync to update
40826         bootstrap if it is not identical to the local gnulib's
40827         bootstrap.  Accept bootstrap_sync=true in bootstrap.conf to
40828         enable this by default.  Accept --no-bootstrap-sync to disable
40829         it.
40831 2010-11-20  Bruno Haible  <bruno@clisp.org>
40833         Ensure that <features.h> is included before __GLIBC__ is tested.
40834         * lib/printf-parse.h: Include <features.h>.
40835         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Require gl_FEATURES_H.
40836         Reported by Mike Frysinger <vapier@gentoo.org>.
40838         Ensure that <features.h> is included before __GLIBC__ is tested.
40839         * lib/wchar.in.h: Include <features.h>.
40840         * m4/wchar_h.m4 (gl_WCHAR_H): Require gl_FEATURES_H.
40841         * modules/wchar (Makefile.am): Substitute HAVE_FEATURES_H.
40842         Reported by Mike Frysinger <vapier@gentoo.org>.
40844         Ensure that <features.h> is included before __GLIBC__ is tested.
40845         * lib/arpa_inet.in.h: Include <features.h>.
40846         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Require gl_FEATURES_H.
40847         * modules/arpa_inet (Makefile.am): Substitute HAVE_FEATURES_H.
40848         Reported by Mike Frysinger <vapier@gentoo.org>.
40850         Ensure that <features.h> is included before __GLIBC__ is tested.
40851         * build-aux/link-warning.h: Include <features.h>.
40852         * modules/link-warning (configure.ac): Require gl_FEATURES_H.
40853         (Makefile.am): Substitute HAVE_FEATURES_H into link-warning.h.
40854         Reported by Mike Frysinger <vapier@gentoo.org>.
40856         Ensure that <features.h> is included before __GLIBC__ is tested.
40857         * m4/gnulib-common.m4 (gl_FEATURES_H): New macro.
40858         Reported by Mike Frysinger <vapier@gentoo.org>.
40860 2010-11-20  Bruno Haible  <bruno@clisp.org>
40862         memmem: Fix autoconf test.
40863         * m4/memmem.m4 (gl_FUNC_MEMMEM): Test HAVE_DECL_MEMMEM, not HAVE_MEMMEM.
40865 2010-11-20  Bruno Haible  <bruno@clisp.org>
40867         Port to uClibc.
40868         * build-aux/link-warning.h (GL_LINK_WARNING): Treat uClibc like glibc.
40869         * lib/fcntl.in.h: Likewise.
40870         * lib/hard-locale.c (GLIBC_VERSION): Likewise.
40871         * lib/mbrtowc.c (mbrtowc): Likewise.
40872         * lib/relocatable.c (find_shared_library_fullname): Likewise.
40873         * lib/strerror_r.c: Likewise.
40874         * lib/unistr/u8-strnlen.c: Likewise.
40875         * lib/vasnprintf.c (decimal_point_char): Likewise.
40876         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Likewise.
40877         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Likewise.
40878         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Likewise.
40879         * m4/glibc21.m4 (gl_GLIBC21): Likewise.
40880         * tests/test-sigaction.c (handler, main): Likewise.
40881         * lib/freading.h: Treat uClibc like a non-glibc platform.
40882         * lib/freading.c: Likewise.
40883         * lib/gettext.h: Likewise.
40884         * lib/localename.c (gl_locale_name_thread_unsafe, HAVE_LOCALE_NULL):
40885         Likewise.
40886         * lib/printf-parse.h (FLAG_LOCALIZED): Likewise.
40887         * lib/printf-parse.c (PRINTF_PARSE): Likewise.
40888         * lib/propername.c (proper_name_utf8): Likewise.
40889         * lib/spawn.in.h: Likewise.
40890         * lib/striconv.c (mem_cd_iconv, str_cd_iconv, str_iconv): Likewise.
40891         * lib/striconveh.c (iconveh_open, iconv_carefully, iconv_carefully_1,
40892         mem_cd_iconveh_internal): Likewise.
40893         * lib/striconveha.c (mem_iconveha, str_iconveha): Likewise.
40894         * lib/string.in.h (memchr, memrchr, rawmemchr, strchrnul, strpbrk,
40895         strstr, strcasestr): Likewise.
40896         * lib/unicodeio.c (unicode_to_mb): Likewise.
40897         * lib/uniconv/u16-conv-from-enc.c (UTF16_NAME): Likewise.
40898         * lib/uniconv/u16-conv-to-enc.c (UTF16_NAME): Likewise.
40899         * lib/uniconv/u16-strconv-to-enc.c (UTF16_NAME): Likewise.
40900         * lib/uniconv/u32-conv-from-enc.c (UTF32_NAME): Likewise.
40901         * lib/uniconv/u32-conv-to-enc.c (UTF32_NAME): Likewise.
40902         * lib/uniconv/u32-strconv-to-enc.c (UTF32_NAME): Likewise.
40903         * lib/unistr/u8-stpncpy.c: Likewise.
40904         * lib/vasnprintf.c (VASNPRINTF): Likewise.
40905         * lib/xmalloc.c (HAVE_GNU_CALLOC): Likewise.
40906         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
40907         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
40908         * m4/glibc2.m4 (gt_GLIBC2): Likewise.
40909         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Likewise.
40910         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE, gl_FUNC_MEMMEM): Likewise.
40911         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Likewise.
40912         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE, gl_FUNC_STRCASESTR):
40913         Likewise.
40914         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Likewise.
40915         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
40916         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Likewise.
40917         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
40918         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
40919         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
40920         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
40921         * m4/wchar_h.m4 (gl_WCHAR_H): Likewise.
40922         * tests/test-getopt.h (OPTIND_MIN): Likewise.
40923         * tests/test-striconveha.c (main): Likewise.
40924         * tests/test-vasnprintf-posix.c (test_function): Likewise.
40925         * tests/test-vasnprintf-posix3.c (test_function, main): Likewise.
40926         * doc/posix-functions/getdelim.texi: Mention an uClibc bug.
40927         * doc/posix-functions/getline.texi: Likewise.
40928         Reported by Mike Frysinger <vapier@gentoo.org>.
40930 2010-11-20  Bruno Haible  <bruno@clisp.org>
40932         nproc: Fix condition.
40933         * lib/nproc.c: Test HAVE_PTHREAD_GETAFFINITY_NP, not
40934         HAVE_PTHREAD_AFFINITY_NP.
40936 2010-11-20  Bruno Haible  <bruno@clisp.org>
40938         Fix a comment.
40939         * lib/vasnprintf.c (VASNPRINTF): Fix comment.
40941 2010-11-19  Paul Eggert  <eggert@cs.ucla.edu>
40943         ftoastr: don't assume snprintf
40944         * lib/ftoastr.c (snprintf) [! GNULIB_SNPRINTF_POSIX]:
40945         Implement a subset of snprintf here, by using sprintf safely.
40946         * modules/ftoastr (Depends-on): Remove snprintf.
40948 2010-11-19  Jim Meyering  <meyering@redhat.com>
40950         test-rename.h: fix compilation failure
40951         * tests/test-rename.h (test_rename): Add omitted "}".
40953 2010-11-17  Jim Meyering  <meyering@redhat.com>
40955         maint.mk: add a URL discussing the no-@acronym policy
40956         * top/maint.mk (sc_texinfo_acronym): Add a URL in a comment.
40958 2010-11-18  Paul Eggert  <eggert@cs.ucla.edu>
40960         ftoastr: depend on snprintf, improve comments
40961         * lib/ftoastr.c: Also mention Loitsch's draft.
40962         * lib/ftoastr.h: Require WIDTH to be nonnegative.  This isn't
40963         needed in the current implementation, but it might simplify
40964         speeding up the code later.
40965         * modules/ftoastr: Depend on snprintf; this improves portability.
40966         Suggested by Bruno Haible in the same email.
40968         ftoastr: port to hosts lacking strtof and strtold
40969         Problem reported by Bruno Haible in
40970         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00242.html>.
40971         * lib/ftoastr.c (STRTOF): Define to strtod if in a pre-C99
40972         environment and strtold (and presumably strtof) are not available.
40973         * modules/ftoastr (Files): Add m4/c-strtod.m4.
40974         (configure.ac): Require gl_C99_STRTOLD.
40976 2010-11-18  Bruno Haible  <bruno@clisp.org>
40978         c-strtold: Avoid link error on AIX 7.
40979         * lib/c-strtod.c: Test also HAVE_STRTOD_L or HAVE_STRTOLD_L.
40980         * m4/c-strtod.m4 (gl_C_STRTOD): Test whether strtod_l exists.
40981         (gl_C_STRTOLD): Test whether strtold_l exists.
40982         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
40984 2010-11-17  Paul Eggert  <eggert@cs.ucla.edu>
40986         intprops: new macro INT_BITS_STRLEN_BOUND
40987         * lib/intprops.h (INT_BITS_STRLEN_BOUND): New macro, needed by
40988         ftoastr.h.  This exposes an internal of intprops.h that was formerly
40989         not exposed.  Also, it uses a slightly tighter bound than before;
40990         though this makes no practical difference, we might as well be as
40991         tight as we easily can.
40993         ftoastr: new module, for lossless conversion of floats to short strings
40994         * lib/ftoastr.h, lib/ftoastr.c, lib/dtoastr.c, lib/ldtoastr.c:
40995         * modules/ftoastr: New files.
40997 2010-11-15  Paul Eggert  <eggert@cs.ucla.edu>
40999         bootstrap: port to Solaris sed
41000         * build-aux/bootstrap (get_version): Port to Solaris sed.
41001         See Ralf Wildenhues's note in
41002         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00156.html>.
41004 2010-11-14  Jim Meyering  <meyering@redhat.com>
41006         maint.mk: rename variable: s/noteworthy/gl_noteworthy_news_/
41007         * top/maint.mk (gl_noteworthy_news_): Rename from "noteworthy"
41008         and move definition closer to sole use.
41010 2010-11-13  Jim Meyering  <meyering@redhat.com>
41012         remove autoconf-2.57 work-around requiring AC_PROG_EGREP and AC_PROG_CPP
41013         Now we require at least autoconf-2.59, which means the work-around
41014         is no longer needed.
41015         * m4/alloca.m4 (gl_FUNC_ALLOCA): Remove work-around.
41016         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
41017         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Likewise.
41018         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Likewise.
41019         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Likewise.
41021 2010-11-13  Bruno Haible  <bruno@clisp.org>
41023         rename, renameat: Avoid test failures at NFS mounted locations.
41024         * tests/test-rename.h (dentry_exists, assert_nonexistent): New
41025         functions.
41026         (test_rename): Use assert_nonexistent.
41027         * tests/test-rename.c: Include <dirent.h>.
41028         * tests/test-renameat.c: Likewise.
41029         Reported by Gary V. Vaughan <gary@gnu.org>.
41031         rename, renameat: Document Linux bug with NFS
41032         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00154.html>.
41033         * doc/posix-functions/rename.texi: Mention the NFS bug on Linux.
41034         * doc/posix-functions/renameat.texi: Likewise.
41035         Suggested by Eric Blake.
41037 2010-11-13  Bruno Haible  <bruno@clisp.org>
41039         rename test: Add comments.
41040         * tests/test-rename.h (test_rename): Add structure and comments.
41042 2010-11-13  Eric Blake  <eblake@redhat.com>
41044         maintainer-makefile: cover a few more files
41045         * top/maint.mk (sc_prohibit_test_double_equal): Also cover shell
41046         scripts generated within C files, for libvirt.
41048 2010-11-13  Bruno Haible  <bruno@clisp.org>
41050         unistr/u8-mbtouc: Improve handling of ill-formed UTF-8 input.
41051         * lib/unistr/u8-mbtouc.c (u8_mbtouc): For an invalid multibyte
41052         character, return the number of bytes that belong together, not always
41053         1.
41054         * lib/unistr/u8-mbtouc-unsafe.c (u8_mbtouc_unsafe): Likewise.
41055         * lib/unistr/u8-mbtouc-aux.c (u8_mbtouc_aux): Likewise.
41056         * lib/unistr/u8-mbtouc-unsafe-aux.c (u8_mbtouc_unsafe_aux): Likewise.
41057         * lib/unistr/u8-mbsnlen.c (u8_mbsnlen): Use u8_mbtouc to determine the
41058         number of bytes of an invalid character.
41059         * tests/unistr/test-u8-mbtouc.c (test_safe_function): New function.
41060         (main): Invoke it.
41061         * tests/unistr/test-u8-mbtouc.h (test_function): Update two test
41062         results.
41063         * tests/unistr/test-u8-mbsnlen.c (main): Test various kinds of
41064         malformed byte sequences.
41065         * modules/unistr/u8-mbtouc (configure.ac): Bump version number.
41066         * modules/unistr/u8-mbtouc-unsafe (configure.ac): Likewise.
41067         * modules/unistr/u8-mbsnlen (configure.ac): Likewise.
41068         Reported by Ben Pfaff and Paolo Bonzini.
41070 2010-11-13  Bruno Haible  <bruno@clisp.org>
41072         openat: Work around glibc bug with fchownat() and empty file names.
41073         * m4/openat.m4 (gl_FUNC_FCHOWNAT_EMPTY_FILENAME_BUG): New macro.
41074         (gl_FUNC_FCHOWNAT): Invoke it.
41075         * lib/fchownat.c (rpl_fchownat): Handle the empty file name specially.
41076         * doc/posix-functions/fchownat.texi: Document the glibc bug.
41077         Reported by Gary V. Vaughan <gary@gnu.org>.
41079 2010-11-13  Bruno Haible  <bruno@clisp.org>
41081         openat: Ensure autoconf macro ordering.
41082         * m4/openat.m4 (gl_FUNC_FCHOWNAT_DEREF_BUG): Require
41083         gl_USE_SYSTEM_EXTENSIONS.
41084         (gl_FUNC_FCHOWNAT): Require gl_UNISTD_H_DEFAULTS.
41086 2010-11-13  Bruno Haible  <bruno@clisp.org>
41088         Update comments.
41089         * lib/unistr/u8-check.c: Update file name in comments.
41090         * lib/unistr/u8-mblen.c: Likewise.
41091         * lib/unistr/u8-prev.c: Likewise.
41092         * lib/unistr/u8-strmblen.c: Likewise.
41093         * lib/unistr/u8-strmbtouc.c: Likewise.
41095 2010-11-13  Jim Meyering  <meyering@redhat.com>
41097         tests: avoid test failure on Solaris 10 due to lack of PATH export
41098         * tests/test-update-copyright.sh: Don't forget to export PATH.
41100         init.sh: ensure that IFS is defined, just in case...
41101         * tests/init.sh (setup_): Ensure that IFS is defined,
41102         so that saving and restoring it works as expected.  This
41103         appears to be useful at least for an old version of dash
41104         from a long time ago (RH 6).  See here for details:
41105         http://thread.gmane.org/gmane.comp.gnu.coreutils.general/436/focus=455
41107         maint.mk: tighten "test a == b" check
41108         * top/maint.mk (sc_prohibit_test_double_equal): Restrict this
41109         test to files that contain something like #!/bin/sh.
41110         Without this, coreutils would get two false positives in
41111         the comments of C source files.
41113 2010-11-12  Eric Blake  <eblake@redhat.com>
41115         bootstrap: fix typo in previous attempt
41116         * build-aux/bootstrap (buildreq): Correct the grouping.
41117         Reported by Paul Eggert.
41119         maintainer-makefile: prohibit test x == x
41120         * top/maint.mk (sc_prohibit_test_double_equal): New rule.
41121         Based on a report by Matthias Bolte.
41123         bootstrap: allow FreeBSD gzip
41124         * build-aux/bootstrap (get_version): Parse FreeBSD gzip version,
41125         which has no '.' and goes to stderr.
41126         * build-aux/bootstrap.conf (buildreq): Improve the sample file.
41127         Reported by Matthias Bolte.
41129         maintainer-makefile: check for i18n setup
41130         * top/maint.mk (sc_bindtextdomain): Check for evidence that _()
41131         will likely work.
41133 2010-11-12  Bruno Haible  <bruno@clisp.org>
41135         sleep, nanosleep: Work around Linux 2.6.9 nanosleep bug.
41136         * lib/sleep.c (rpl_sleep): Split in chunks no larger than 24 days.
41137         * lib/nanosleep.c (nanosleep): Likewise.
41139 2010-11-11  Bruno Haible  <bruno@clisp.org>
41141         fcntl-h: Fix for use of C++ on glibc systems.
41142         * lib/fcntl.in.h: Include <sys/stat.h> before include_next <fcntl.h>
41143         also on glibc systems in C++ mode.
41144         Reported by Gary V. Vaughan <gary@gnu.org>.
41146 2010-11-11  Christian Weisgerber  <naddy@mips.inka.de>  (tiny change)
41148         mknod: avoid false failure with dash
41149         * m4/mknod.m4 (gl_FUNC_MKNOD): Use portable shell syntax.
41151 2010-11-11  Paul Eggert  <eggert@cs.ucla.edu>
41153         unlink: Fix "is it should" typo in diagnostic.
41154         * m4/unlink.m4 (gl_FUNC_UNLINK): Fix typo, as per Reuben Thomas in
41155         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00106.html>.
41157 2010-11-11  Bruno Haible  <bruno@clisp.org>
41159         Tests for module 'strerror_r-posix'.
41160         * modules/strerror_r-posix-tests: New file.
41161         * tests/test-strerror_r.c: New file.
41162         * tests/test-string-c++.cc: Check the signature of strerror_r.
41164         New module 'strerror_r-posix'.
41165         * lib/string.in.h (strerror_r): New declaration.
41166         * lib/strerror_r.c: New file.
41167         * m4/strerror_r.m4: New file.
41168         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Check for the declaration
41169         of strerror_r.
41170         (gl_HEADER_STRING_H_DEFAULTS): Initialize GNULIB_STRERROR_R,
41171         HAVE_DECL_STRERROR_R, REPLACE_STRERROR_R.
41172         * modules/strerror_r-posix: New file.
41173         * modules/string (Makefile.am): Substitute GNULIB_STRERROR_R,
41174         HAVE_DECL_STRERROR_R, REPLACE_STRERROR_R.
41175         * doc/posix-functions/strerror_r.texi: Mention the new module and the
41176         portability problems.
41178 2010-11-11  Torsten Scheck  <Torsten.Scheck@Leica-Microsystems.com> (tiny change)
41180         * build-aux/pmccabe2html: Fixed a off-by-one error, so last input
41181         line is also considered for output. Quoted function name in shell
41182         command, so temporary files for functions like MyClass::operator()
41183         are removed correctly without errors.
41185 2010-11-09  Bruno Haible  <bruno@clisp.org>
41187         * doc/posix-functions/strerror.texi: List more failing platforms.
41189         * doc/posix-functions/strerror.texi: Add a comment.
41191 2010-11-07  Paul Eggert  <eggert@cs.ucla.edu>
41193         fdopendir: fix bug on MacOS X when low on file descriptors
41195         * lib/fdopendir.c (REPLACE_FCHDIR): #define to 0 if not defined.
41196         (fdopendir_with_dup, fd_clone_opendir): Now have extra CWD arg.
41197         All callers changed.
41198         (fdopendir): Invoke save_cwd at the top level, not after using
41199         multiple dup() calls to use up file descriptors.  Then retry
41200         fdopendir_with_dup.  This avoids failure with EMFILE if FD is 1
41201         less than the maximum number of open file descriptors, because
41202         save_cwd fails with errno == EMFILE.  Problem reported by tsteven4
41203         on Mac OS X 10.6.4 for tar 1.24
41204         <http://lists.gnu.org/archive/html/bug-tar/2010-10/msg00084.html>
41205         <http://lists.gnu.org/archive/html/bug-tar/2010-11/msg00000.html>
41206         and for tar 1.25
41207         <http://lists.gnu.org/archive/html/bug-tar/2010-11/msg00038.html>.
41209 2010-11-07  Bruno Haible  <bruno@clisp.org>
41211         vasnprintf: Support I flag on glibc systems.
41212         * lib/printf-parse.h (FLAG_LOCALIZED): New macro.
41213         * lib/printf-parse.c (PRINTF_PARSE): Handle the 'I' flag.
41214         * lib/vasnprintf.c (VASNPRINTF): Pass the 'I' flag on to the system's
41215         snprintf function.
41216         * tests/test-vasnprintf-posix.c (test_function): Test the 'I' flag on
41217         glibc systems.
41218         * tests/test-vasnprintf-posix3.c: New file.
41219         * modules/vasnprintf-posix-tests (Files): Add it.
41220         (TESTS, check_PROGRAMS): Add test-vasnprintf-posix3.
41222 2010-11-05  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
41224         [html] Fix copy/paste bug: Use unique name for compiler warnings.
41225         * MODULES.html.sh: For compiler warnings, use name
41226         `ansic_ext_compwarn' since `ansic_ext_misc' is already taken.
41228 2010-11-05  Eric Blake  <eblake@redhat.com>
41230         ceil, floor: avoid spurious failure with icc
41231         * tests/test-ceilf2.c (ceilf_reference): Avoid icc's use of DAZ
41232         [denormals-as-zero] when optimizing without -mieee-fp option.
41233         * tests/test-floorf2.c (floorf_reference): Likewise.
41234         * tests/test-ceilf1.c (dummy): New function.
41235         (main): Use it to outsmart icc's optimization.
41236         * tests/test-floorf1.c (dummy, main): Likewise.
41238         tests: require working signbit
41239         * modules/ceilf-tests (Depends-on): Add signbit.
41240         * modules/ceill-tests (Depends-on): Likewise.
41241         * modules/floorf-tests (Depends-on): Likewise.
41242         * modules/floorl-tests (Depends-on): Likewise.
41243         * modules/round-tests (Depends-on): Likewise.
41244         * modules/roundf-tests (Depends-on): Likewise.
41245         * modules/roundl-tests (Depends-on): Likewise.
41246         * modules/trunc-tests (Depends-on): Likewise.
41247         * modules/truncf-tests (Depends-on): Likewise.
41248         * modules/truncl-tests (Depends-on): Likewise.
41250         strtod: work around icc bug
41251         * lib/strtod.c (minus_zero): Define to working value.
41252         (strtod): Use it to avoid icc bug.
41254         copysign: enhance tests
41255         * modules/copysign-tests (Files): Add minus-zero.h.
41256         * tests/test-copysign.c (main): Also test zeros.
41258 2010-11-04  Eric Blake  <eblake@redhat.com>
41260         ceil, floor, round, trunc: enhance tests of -0
41261         * tests/test-ceilf1.c (main): Ensure correct sign of result.
41262         * tests/test-ceill.c (main): Likewise.
41263         * tests/test-floorf1.c (main): Likewise.
41264         * tests/test-floorl.c (main): Likewise.
41265         * tests/test-round1.c (main): Likewise.
41266         * tests/test-roundf1.c (main): Likewise.
41267         * tests/test-roundl.c (main): Likewise.
41268         * tests/test-trunc1.c (main): Likewise.
41269         * tests/test-truncf1.c (main): Likewise.
41270         * tests/test-truncl.c (main): Likewise.
41272 2010-11-04  Eric Blake  <eblake@redhat.com>
41274         frexp, tests: work around ICC bug with -zero
41275         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Compute -0.0 in a way that
41276         works with more compilers.
41277         * tests/minus-zero.h: New file.
41278         * modules/ceilf-tests (Files): Include it.
41279         * modules/ceill-tests (Files): Likewise.
41280         * modules/floorf-tests (Files): Likewise.
41281         * modules/floorl-tests (Files): Likewise.
41282         * modules/frexp-nolibm-tests (Files): Likewise.
41283         * modules/frexp-tests (Files): Likewise.
41284         * modules/frexpl-nolibm-tests (Files): Likewise.
41285         * modules/frexpl-tests (Files): Likewise.
41286         * modules/isnan-tests (Files): Likewise.
41287         * modules/isnand-nolibm-tests (Files): Likewise.
41288         * modules/isnand-tests (Files): Likewise.
41289         * modules/isnanf-nolibm-tests (Files): Likewise.
41290         * modules/isnanf-tests (Files): Likewise.
41291         * modules/isnanl-nolibm-tests (Files): Likewise.
41292         * modules/isnanl-tests (Files): Likewise.
41293         * modules/round-tests (Files): Likewise.
41294         * modules/roundf-tests (Files): Likewise.
41295         * modules/roundl-tests (Files): Likewise.
41296         * modules/ldexpl-tests (Files): Likewise.
41297         * modules/signbit-tests (Files): Likewise.
41298         * modules/snprintf-posix-tests (Files): Likewise.
41299         * modules/sprintf-posix-tests (Files): Likewise.
41300         * modules/strtod-tests (Files): Likewise.
41301         * modules/trunc-tests (Files): Likewise.
41302         * modules/truncf-tests (Files): Likewise.
41303         * modules/truncl-tests (Files): Likewise.
41304         * modules/vsnprintf-posix-tests (Files): Likewise.
41305         * modules/vsprintf-posix-tests (Files): Likewise.
41306         * modules/vasnprintf-posix-tests (Files): Likewise.
41307         * modules/vasprintf-posix-tests (Files): Likewise.
41308         * tests/test-ceilf1.c (main): Use it.
41309         * tests/test-ceill.c (main): Likewise.
41310         * tests/test-floorf1.c (main): Likewise.
41311         * tests/test-floorl.c (main): Likewise.
41312         * tests/test-frexp.c (main): Likewise.
41313         * tests/test-frexpl.c (main): Likewise.
41314         * tests/test-isnan.c (main): Likewise.
41315         * tests/test-isnand.h (main): Likewise.
41316         * tests/test-isnanf.h (main): Likewise.
41317         * tests/test-isnanl.h (main): Likewise.
41318         * tests/test-ldexpl.c (main): Likewise.
41319         * tests/test-round.c (main): Likewise.
41320         * tests/test-roundf.c (main): Likewise.
41321         * tests/test-roundl.c (main): Likewise.
41322         * tests/test-signbit.c (test_signbitf, test_signbitd)
41323         (test_signbitl): Likewise.
41324         * tests/test-snprintf-posix.h (test_function): Likewise.
41325         * tests/test-sprintf-posix.h (test_function): Likewise.
41326         * tests/test-strtod.c (main): Likewise.
41327         * tests/test-trunc1.c (main): Likewise.
41328         * tests/test-truncf1.c (main): Likewise.
41329         * tests/test-truncl.c (main): Likewise.
41331         isnanl: work around icc bug
41332         * lib/isnan.c (FUNC): Compute run-time NaN under ICC as well.
41334 2010-11-03  Eric Blake  <eblake@redhat.com>
41336         tests: fix compiler warnings
41337         * tests/test-getopt.h (test_getopt): Fix condition.
41338         * tests/test-getopt_long.h (test_getopt_long): Likewise.
41339         * tests/test-pipe2.c (main): Likewise.
41340         * tests/test-quotearg-simple.c (main): Avoid icc warning.
41342         utimens: fix broken m4 test
41343         * m4/utimens.m4 (gl_UTIMENS): Include correct headers.
41345 2010-10-28  Bruno Haible  <bruno@clisp.org>
41347         posix_spawn*, getdtablesize: Relax license.
41348         * modules/posix_spawn (License): Change to LGPLv2+.
41349         * modules/posix_spawnp (License): Likewise.
41350         * modules/posix_spawn-internal (License): Likewise.
41351         * modules/posix_spawnattr_init (License): Likewise.
41352         * modules/posix_spawnattr_getflags (License): Likewise.
41353         * modules/posix_spawnattr_setflags (License): Likewise.
41354         * modules/posix_spawnattr_getpgroup (License): Likewise.
41355         * modules/posix_spawnattr_setpgroup (License): Likewise.
41356         * modules/posix_spawnattr_getschedparam (License): Likewise.
41357         * modules/posix_spawnattr_setschedparam (License): Likewise.
41358         * modules/posix_spawnattr_getschedpolicy (License): Likewise.
41359         * modules/posix_spawnattr_setschedpolicy (License): Likewise.
41360         * modules/posix_spawnattr_getsigdefault (License): Likewise.
41361         * modules/posix_spawnattr_setsigdefault (License): Likewise.
41362         * modules/posix_spawnattr_getsigmask (License): Likewise.
41363         * modules/posix_spawnattr_setsigmask (License): Likewise.
41364         * modules/posix_spawnattr_destroy (License): Likewise.
41365         * modules/posix_spawn_file_actions_init (License): Likewise.
41366         * modules/posix_spawn_file_actions_addclose (License): Likewise.
41367         * modules/posix_spawn_file_actions_adddup2 (License): Likewise.
41368         * modules/posix_spawn_file_actions_addopen (License): Likewise.
41369         * modules/posix_spawn_file_actions_destroy (License): Likewise.
41370         * modules/getdtablesize (License): Likewise.
41371         Requested by Adam Stokes <ajs@redhat.com> for use in netcf.
41373 2010-10-26  Bruno Haible  <bruno@clisp.org>
41375         unistd: Refine workaround from 2009-12-23 against Cygwin bug.
41376         * lib/unistd.in.h: Don't include <stdio.h> and <fcntl.h>, except on
41377         Cygwin and mingw.
41378         Suggested by Eric Blake.
41380 2010-10-26  Bruno Haible  <bruno@clisp.org>
41382         stdio: Work around compilation error due to renameat() on Solaris 10.
41383         * lib/stdio.in.h: Include <unistd.h> on Solaris.
41384         * lib/renameat.c: Don't include <unistd.h> here.
41385         * doc/posix-functions/renameat.texi: Mention the Solaris problem.
41386         Reported by Paul Eggert and Eric Blake.
41388 2010-10-26  Paul Eggert  <eggert@cs.ucla.edu>
41390         renameat: port to Solaris 10, which declares renameat in unistd.h
41392         * lib/renameat.c: Include unistd.h before stdio.h, because
41393         Solaris 10 declares renameat in unistd.h.  Problem encountered
41394         when building GNU tar 1.24 on Solaris 10.
41396 2010-10-26  Christian Weisgerber  <naddy@mips.inka.de>  (tiny change)
41398         fdopendir: fix C89 compilation
41399         * lib/fdopendir.c (fd_clone_opendir): Move declaration for older
41400         compilers.
41402 2010-10-23  Paul Eggert  <eggert@cs.ucla.edu>
41404         inttostr: simplify by removing unnecessary redundancy
41405         * lib/anytostr.c: Don't include verify.h.
41406         (anytostr): Don't verify that TYPE_SIGNED (inttype) equals
41407         inttype_is_signed.  Instead, disable the bogus GCC warnings, so that
41408         there's no need for inttype_is_signed and for calling TYPE_SIGNED.
41409         * lib/imaxtostr.c (inttype_is_signed): Remove; no longer needed.
41410         * lib/inttostr.c, lib/offtostr.c, lib/uinttostr.c, lib/umaxtostr.c:
41411         Likewise.
41412         * modules/inttostr (Depends-on): Remove 'verify'.
41414 2010-10-23  Bruno Haible  <bruno@clisp.org>
41416         nl_langinfo: Mention problem with CRNCYSTR on NetBSD 5.0.
41417         * doc/posix-functions/nl_langinfo.texi: Mention problem with CRNCYSTR.
41418         Reported by Eric Blake.
41420 2010-10-23  Bruno Haible  <bruno@clisp.org>
41422         Tests: Fix LOCALE_JA on MirBSD 10.
41423         * m4/locale-ja.m4 (gt_LOCALE_JA): Reject a locale identifier that leads
41424         to an UTF-8 locale.
41425         * m4/locale-fr.m4 (gt_LOCALE_FR): Likewise.
41426         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
41427         Reported by Eric Blake.
41429 2010-10-21  Bruno Haible  <bruno@clisp.org>
41431         nl_langinfo test: Avoid test failure on NetBSD 5.
41432         * tests/test-nl_langinfo.c (main): Relax test of nl_langinfo(CRNCYSTR).
41433         Reported by Eric Blake.
41435 2010-10-21  Eric Blake  <eblake@redhat.com>
41437         c-stack: work around libsigsegv 2.8 bug
41438         * lib/c-stack.c (SIGSTKSZ): Increase size to avoid alternate stack
41439         overflow on at least PowerPC64.
41441 2010-10-17  Bruno Haible  <bruno@clisp.org>
41443         userspec: Drop redundant file.
41444         * modules/userspec (Files): Remove lib/inttostr.h.
41446 2010-10-17  Bruno Haible  <bruno@clisp.org>
41448         nl_langinfo tests: Silence some warnings.
41449         * tests/test-nl_langinfo.c: Silence -Wtype-limits warnings.
41450         Reported by Jim Meyering.
41452 2010-10-17  Bruno Haible  <bruno@clisp.org>
41454         Make use of GCC's attribute __alloc_size__.
41455         * lib/xalloc.h (ATTRIBUTE_ALLOC_SIZE): New macro.
41456         (xmalloc, xzalloc, xcalloc, xrealloc, xmemdup, xnmalloc, xnrealloc,
41457         xcharalloc): Declare with ATTRIBUTE_ALLOC_SIZE.
41458         * lib/eealloc.h (eemalloc, eerealloc): Declare with attribute
41459         __alloc_size__.
41460         * lib/pagealign_alloc.h (pagealign_alloc, pagealign_xalloc): Likewise.
41461         Suggested by Jim Meyering.
41463 2010-10-16  Joel E. Denny  <joeldenny@joeldenny.org>
41465         bootstrap: anchor .gitignore entries.
41466         * build-aux/bootstrap (insert_sorted_if_absent): Replace all uses
41467         with...
41468         (insert_vc_ignore): ... this new function, which prepends `/' to
41469         all .gitignore entries before passing them to
41470         insert_sorted_if_absent.
41472 2010-10-16  Bruno Haible  <bruno@clisp.org>
41474         nextafter: Fix configure check.
41475         * modules/nextafter (configure.ac): Correct expected prototype.
41477 2010-10-16  Bruno Haible  <bruno@clisp.org>
41479         termios: Update documentation.
41480         * doc/posix-headers/termios.texi: Mention remaining mingw problems.
41482 2010-10-16  Bruno Haible  <bruno@clisp.org>
41484         tests: Make them compile with TinyCC.
41485         * tests/test-strstr.c (main): Remove parentheses around array
41486         initializer.
41488 2010-10-15  Eric Blake  <eblake@redhat.com>
41490         ignore-value: make header idempotent
41491         * lib/ignore-value.h: Add double-inclusion guards.
41492         Reported by Stefan Berger.
41494 2010-10-15  Jim Meyering  <meyering@redhat.com>
41496         GNUmakefile: handle "stable" target, not "major"
41497         * top/GNUmakefile (_is-dist-target): s/major/stable/ to match the
41498         lists in maint.mk and announce-gen.  Without this, "make stable"
41499         would fail to ensure that $(VERSION) is up to date.
41501 2010-10-15  Ludovic Courtès  <ludo@gnu.org>
41503         * lib/isnan.c (FUNC): Treat TinyCC (`__TINYC__') like `__SUNPRO_C'
41504         & co.
41506 2010-10-14  Bruno Haible  <bruno@clisp.org>
41508         vasnprintf: Don't set errno to 0.
41509         * lib/vasnprintf.c (VASNPRINTF): Save and restore errno around the
41510         block that sets it to 0.
41511         Reported by Gianluigi Tiesi <sherpya@netfarm.it>.
41513 2010-10-14  Bruno Haible  <bruno@clisp.org>
41515         socketlib: Fix.
41516         * modules/socketlib (Files): Add m4/sys_socket_h.m4. Needed for
41517         gl_PREREQ_SYS_H_WINSOCK2.
41518         Reported by Ian Beckwith <ianb@erislabs.net>.
41520 2010-10-13  Jim Meyering  <meyering@redhat.com>
41522         test-select-stdin.c: avoid warn_unused_result warnings
41523         * tests/test-select-stdin.c: Include "macros.h".
41524         ASSERT that read and fflush succeed.
41526 2010-10-13  Jim Meyering  <meyering@redhat.com>
41528         git-version-gen: do require git-VC'd files in cwd
41529         * build-aux/git-version-gen: Reject a git version string
41530         if there are no commits associated with the current directory.
41531         This avoids an unlikely false-positive (unrelated dir whose parent
41532         repository also contains a tag matching v*), as pointed out
41533         by Giuseppe Scrivano in
41534         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/21843/focus=23664
41536 2010-10-13  Paul Eggert  <eggert@cs.ucla.edu>
41538         argv-iter: omit nonconforming declaration
41539         * lib/argv-iter.h (enum argv_iter_err): Omit the useless
41540         enum arg_iter_err declaration, which doesn't conform to C99.
41541         Solaris 10 cc warns about this.
41543 2010-10-13  Eric Blake  <eblake@redhat.com>
41545         termios: fix compilation on mingw
41546         * m4/termios_h.m4 (gl_TERMIOS_H_DEFAULTS): Set default.
41547         (gl_TERMIOS_H): Adjust it on mingw.
41548         * modules/termios (Makefile.am): Substitute new key.
41549         * lib/termios.in.h (includes): Make include_next conditional.
41550         * doc/posix-headers/termios.texi (termios.h): Update
41551         documentation.
41552         Reported by Daniel P. Berrange.
41554 2010-10-13  Jim Meyering  <meyering@redhat.com>
41556         git-version-gen: don't require that .git/ be in the current dir
41557         * build-aux/git-version-gen: Adjust this script so that it works
41558         when run from any working directory beneath the top-level .git/-
41559         containing directory.  Inspired by a patch from Giuseppe Scrivano,
41560         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/21843/focus=21847
41562         test-select: avoid warn_unused_result warnings
41563         * tests/test-select.c: Include "macros.h".
41564         ASSERT that each call to read, write, and pipe succeeds.
41565         While not technically required, also check each "close".
41566         * modules/select-tests (Files): Add tests/macros.h.
41568         test-symlinkat: remove declaration of unused local
41569         * tests/test-symlinkat.c (main): Remove unused local, "buf".
41571         test-inttostr: avoid shadowing warnings
41572         * tests/test-inttostr.c (main): Rename local, "buf" to "b",
41573         and use malloc rather than the stack for the same reason as
41574         mentioned in the comment justifying the other allocation.
41576 2010-10-11  Bruno Haible  <bruno@clisp.org>
41578         stdlib: Allow multiple gnulib generated replacements to coexist.
41579         * lib/stdlib.in.h (struct random_data): Avoid identical redefinition.
41580         Reported by Sam Steingold <sds@gnu.org>.
41582 2010-10-11  Jim Meyering  <meyering@redhat.com>
41584         fix a documentation typo
41585         * doc/posix-functions/futimens.texi (futimens): Fix typo: s/itme/item/
41587 2010-10-11  Eric Blake  <eblake@redhat.com>
41589         futimens: work around Solaris 11 bug
41590         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Detect the bug.
41591         * tests/test-futimens.h (test_futimens): Enhance, rather than
41592         weaken test.
41593         * doc/posix-functions/futimens.texi (futimens): Document the bug.
41595 2010-10-11  Paul Eggert  <eggert@cs.ucla.edu>
41597         Indentation.
41598         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Indent
41599         higher-level operators more to the left.
41601 2010-10-11  Jim Meyering  <meyering@redhat.com>
41603         test-futimens: avoid unwarranted test failure on Solaris 5.11
41604         * tests/test-futimens.h (test_futimens): When provoking EBADF, use an
41605         invalid file descriptor, so we don't provoke EFAULT from Solaris 5.11,
41606         because it tries to dereference the NULL name argument.
41608 2010-10-11  Bruno Haible  <bruno@clisp.org>
41610         Indentation.
41611         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Improve
41612         indentation.
41614 2010-10-11  Jim Meyering  <meyering@redhat.com>
41616         spawn.in.h: make indentation consistent with parentheses
41617         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap):
41618         Make indentation consistent with parentheses.
41620 2010-10-11  Gary V. Vaughan  <gary@gnu.org>
41622         Fix mismatched parens in previous commit
41623         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Fix mismatched
41624         parens.
41626 2010-10-10  Paul Eggert  <eggert@cs.ucla.edu>
41628         rewrite int foo[2*X-1] to verify(X) or to int foo[X?1:-1]
41630         * lib/float+.h (verify_sizeof_flt, verify_sizeof_dbl):
41631         (verify_sizeof_ldbl): Rewrite 2*X-1 to X?1:-1.
41632         * lib/malloca.c: Include "verify.h".
41633         (verify1): Remove, replacing with a verify call.
41634         * lib/relocwrapper.c (verify1): Likewise.
41635         * lib/vasnprintf.c (mp_limb_verify, mp_twolimb_verify, TCHAR_T_verify):
41636         Likewise.
41637         * modules/malloca (Depends-on): Add 'verify'.
41638         * modules/relocatable-prog-wrapper (Depends-on): Add 'verify'.
41639         * modules/vasnprintf (Depends-on): Add 'verify'.
41640         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
41641         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
41642         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
41643         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
41644         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
41645         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
41646         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
41648         prefer (X ? 1 : -1) when converting from boolean (1,0) to int (1,-1)
41650         Formerly the style was sometimes 2*X - 1, because the C standard
41651         was wrongly thought to disallow ?: in integral constant expressions.
41652         * lib/inet_ntop.c (verify_int_size): Rewrite 2*X-7 (!) to 4<=X?1:-1.
41653         * lib/signal.in.h (verify_NSIG_constraint): Rewrite 2*X-1 to X?1:-1.
41654         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Likewise.
41655         * lib/stdint.in.h (_verify_intmax_size): Likewise.
41656         * lib/time.in.h (struct __time_t_must_be_integral): Rewrite
41657         2 * ((time_t) 1 / 2 == 0) - 1 to (time_t) 1; this suffices to
41658         verify that time_t cannot be floating.
41660 2010-10-08  Eric Blake  <eblake@redhat.com>
41662         time: enforce recent POSIX ruling that time_t is integral
41663         * lib/time.in.h (__time_t_must_be_integral): Detect any
41664         problematic systems, allowing the rest of gnulib to assume POSIX.
41666 2010-10-08  Jim Meyering  <meyering@redhat.com>
41668         fdopendir: fix a bug on systems lacking openat and /proc support
41669         OpenBSD 4.7 is one such system.  The most noticeable effect was
41670         failure of any application making nontrivial use of fts: rm, du,
41671         chown, chmod etc.  E.g., "mkdir -p a/b; ./rm -rf a" would fail with
41672           ./rm: traversal failed: `a': Bad file descriptor
41673         Debugging that, you see that even though FD 6 was closed just
41674         prior to the opendir call in fd_clone_opendir, its resulting
41675         dir->dd_fd was 8, rather than the expected value of 6:
41677         Breakpoint 3, fdopendir_with_dup (fd=6, older_dupfd=-1) at fdopendir.c:93
41678         93                close (fd);
41679         (gdb) n
41680         94                dir = fd_clone_opendir (dupfd);
41681         (gdb) n
41682         95                saved_errno = errno;
41683         (gdb) p dir->dd_fd
41684         $11 = 8
41686         Notice how it closes FD 6, then gets a DIR* pointer using FD 8.
41687         The problem is that on OpenBSD, fd_clone_opendir has to resort
41688         to using the old-style save/restore CWD mechanism, due to its
41689         lack of openat/proc support, and *that* would steal the FD (6)
41690         that opendir was supposed to use.
41692         The fix is to squirrel away the desired FD so that save_cwd uses a
41693         different one, and then free the dest FD right before calling opendir.
41694         That guarantees opendir will use the required file descriptor.
41696         * lib/fdopendir.c (fd_clone_opendir): Handle the above.
41698 2010-10-08  Bruno Haible  <bruno@clisp.org>
41700         sys_select: Avoid warning due to undeclared memset() on OpenBSD 4.5.
41701         * lib/sys_select.in.h: Include <string.h> also on OpenBSD.
41703 2010-10-08  Bruno Haible  <bruno@clisp.org>
41705         nanosleep: Make replacement POSIX compliant.
41706         * lib/nanosleep.c (nanosleep): Return -1/EINVAL if the delay's tv_nsec
41707         is out of range.
41708         Reported by Jim Meyering.
41710 2010-10-08  Paul Eggert  <eggert@cs.ucla.edu>
41712         bootstrap: add hook for altering gnulib.mk, for Bison
41713         * build-aux/bootstrap (gnulib_mk_hook): New function, so that
41714         the Bison bootstrapping process can rewrite file names and variables
41715         in this file before later parts of 'bootstrap' use the file.
41716         Bison wants to include lib/gnulib.mk from the top-level makefile,
41717         so it needs the file names in this file to be relative to the top
41718         level, not relative to lib; plus it needs variable names to be
41719         rewritten.
41720         (slurp): Use the new function.
41722         bootstrap: reformat for readability
41723         * build-aux/bootstrap: Rewrite to avoid lines longer than 80 columns.
41725 2010-10-08  Eric Blake  <eblake@redhat.com>
41727         docs: update cygwin progress
41728         * doc/posix-functions/cacos.texi (cacos): Added after cygwin
41729         1.7.7.
41730         * doc/posix-functions/cacosf.texi (cacosf): Likewise.
41731         * doc/posix-functions/cacosh.texi (cacosh): Likewise.
41732         * doc/posix-functions/cacoshf.texi (cacoshf): Likewise.
41733         * doc/posix-functions/carg.texi (carg): Likewise.
41734         * doc/posix-functions/cargf.texi (cargf): Likewise.
41735         * doc/posix-functions/casin.texi (casin): Likewise.
41736         * doc/posix-functions/casinf.texi (casinf): Likewise.
41737         * doc/posix-functions/casinh.texi (casinh): Likewise.
41738         * doc/posix-functions/casinhf.texi (casinhf): Likewise.
41739         * doc/posix-functions/catan.texi (catan): Likewise.
41740         * doc/posix-functions/catanf.texi (catanf): Likewise.
41741         * doc/posix-functions/catanh.texi (catanh): Likewise.
41742         * doc/posix-functions/catanhf.texi (catanhf): Likewise.
41743         * doc/posix-functions/ccos.texi (ccos): Likewise.
41744         * doc/posix-functions/ccosf.texi (ccosf): Likewise.
41745         * doc/posix-functions/ccosh.texi (ccosh): Likewise.
41746         * doc/posix-functions/ccoshf.texi (ccoshf): Likewise.
41747         * doc/posix-functions/cexp.texi (cexp): Likewise.
41748         * doc/posix-functions/cexpf.texi (cexpf): Likewise.
41749         * doc/posix-functions/cimag.texi (cimag): Likewise.
41750         * doc/posix-functions/cimagf.texi (cimagf): Likewise.
41751         * doc/posix-functions/clog.texi (clog): Likewise.
41752         * doc/posix-functions/clogf.texi (clogf): Likewise.
41753         * doc/posix-functions/conj.texi (conj): Likewise.
41754         * doc/posix-functions/conjf.texi (conjf): Likewise.
41755         * doc/posix-functions/cpow.texi (cpow): Likewise.
41756         * doc/posix-functions/cpowf.texi (cpowf): Likewise.
41757         * doc/posix-functions/cproj.texi (cproj): Likewise.
41758         * doc/posix-functions/cprojf.texi (cprojf): Likewise.
41759         * doc/posix-functions/creal.texi (creal): Likewise.
41760         * doc/posix-functions/crealf.texi (crealf): Likewise.
41761         * doc/posix-functions/csin.texi (csin): Likewise.
41762         * doc/posix-functions/csinf.texi (csinf): Likewise.
41763         * doc/posix-functions/csinh.texi (csinh): Likewise.
41764         * doc/posix-functions/csinhf.texi (csinhf): Likewise.
41765         * doc/posix-functions/csqrt.texi (csqrt): Likewise.
41766         * doc/posix-functions/csqrtf.texi (csqrtf): Likewise.
41767         * doc/posix-functions/ctan.texi (ctan): Likewise.
41768         * doc/posix-functions/ctanf.texi (ctanf): Likewise.
41769         * doc/posix-functions/ctanh.texi (ctanh): Likewise.
41770         * doc/posix-functions/ctanhf.texi (ctanhf): Likewise.
41771         * doc/posix-headers/complex.texi (complex.h): Likewise.
41773 2010-10-07  Jim Meyering  <meyering@redhat.com>
41775         parse-datetime: avoid compilation failure on OpenBSD 4.7
41776         * lib/parse-datetime.y (_STDLIB_H) [_STDLIB_H_]: Define.
41777         This works around a compilation failure on OpenBSD 4.7:
41778         http://thread.gmane.org/gmane.comp.parsers.bison.bugs/3418
41780 2010-10-07  Eric Blake  <eblake@redhat.com>
41782         docs: update cygwin progress
41783         * doc/glibc-functions/mkostemp.texi (mkostemp): Added in cygwin
41784         1.7.6.
41785         * doc/glibc-functions/mkostemps.texi (mkostemps): Likewise.
41786         * doc/posix-headers/fenv.texi (fenv.h): Added after cygwin 1.7.7.
41787         * doc/posix-functions/feclearexcept.texi (feclearexcept): Likewise.
41788         * doc/posix-functions/fegetenv.texi (fegetenv): Likewise.
41789         * doc/posix-functions/fegetexceptflag.texi (fegetexceptflag):
41790         Likewise.
41791         * doc/posix-functions/fegetround.texi (fegetround): Likewise.
41792         * doc/posix-functions/feholdexcept.texi (feholdexcept): Likewise.
41793         * doc/posix-functions/feraiseexcept.texi (feraiseexcept):
41794         Likewise.
41795         * doc/posix-functions/fesetenv.texi (fesetenv): Likewise.
41796         * doc/posix-functions/fesetexceptflag.texi (fesetexceptflag):
41797         Likewise.
41798         * doc/posix-functions/fesetround.texi (fesetround): Likewise.
41799         * doc/posix-functions/fetestexcept.texi (fetestexcept): Likewise.
41800         * doc/posix-functions/feupdateenv.texi (feupdateenv): Likewise.
41801         * doc/glibc-functions/feenableexcept.texi (feenableexcept):
41802         Likewise.
41803         * doc/glibc-functions/fedisableexcept.texi (fedisableexcept):
41804         Likewise.
41805         * doc/glibc-functions/fegetexcept.texi (fegetexcept): Likewise.
41807         docs: update parse-datetime history
41808         * doc/parse-datetime.texi (Authors of parse_datetime): Better
41809         documentation of this function's history and alternatives.
41811         cygwin: use more robust version check
41812         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE, gl_FUNC_MEMMEM): Don't
41813         exclude an eventual cygwin 1.9.1.
41814         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Likewise.
41815         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE)
41816         (gl_FUNC_STRCASESTR): Likewise.
41817         Reported by Bruno Haible.
41819 2010-10-06  Bruno Haible  <bruno@clisp.org>
41821         string, sys_select: Avoid #including large headers unless necessary.
41822         * lib/string.in.h: Don't include <unistd.h> except on NetBSD.
41823         * lib/sys_select.in.h: Don't include <string.h> except on Solaris,
41824         OSF/1, BeOS, Haiku.
41825         Reported by Jim Meyering.
41827 2010-10-05  Eric Blake  <eblake@redhat.com>
41829         memmem, strstr, strcasestr: fix bug with long periodic needle
41830         * lib/str-two-way.h (two_way_long_needle): Avoid bug with long
41831         periodic needle having false positive.
41832         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): Detect bug in glibc 2.12
41833         and cygwin 1.7.7.
41834         (gl_FUNC_MEMMEM): Be more pessimistic when cross-compiling.
41835         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE)
41836         (gl_FUNC_STRCASESTR): Likewise.
41837         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Likewise.
41838         * tests/test-memmem.c (main): Expose the bug.
41839         * tests/test-strcasestr.c (main): Likewise.
41840         * tests/test-strstr.c (main): Likewise.
41841         * tests/test-c-strcasestr.c (main): Likewise.
41842         * doc/glibc-functions/memmem.texi (memmem): Document the bug.
41843         * doc/posix-functions/strstr.texi (strstr): Likewise.
41844         * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
41845         Reported via http://sourceware.org/bugzilla/show_bug.cgi?id=12092
41847 2010-10-05  Paul Eggert  <eggert@cs.ucla.edu>
41849         parse-datetime: do some more renaming
41850         * doc/parse-datetime.texi (Authors of parse_datetime): Call it
41851         parse_datetime, not get_date.  Mention the renaming.
41852         * lib/parse-datetime.y:  Call it parse_datetime, not getdate,
41853         in comments.
41854         * m4/bison.m4: Likewise.
41856 2010-10-05  Eric Blake  <eblake@redhat.com>
41858         parse-datetime: better name than get_date
41859         * NEWS: Reword the deprecation notice.
41860         * modules/get_date: Rename to modules/parse-datetime.
41861         * modules/get_date-tests: Rename to modules/parse-datetime-tests.
41862         * m4/get_date.m4: Rename to m4/parse-datetime.m4.
41863         * lib/get_date.y: Rename to lib/parse-datetime.y.
41864         * tests/test-get_date.c: Rename to tests/test-parse-datetime.c.
41865         * doc/get_date.texi: Rename to doc/parse-datetime.texi.
41866         * doc/getdate.texi: Provide fallback wrapper.
41867         * lib/getdate.h: Move guts, and wrap...
41868         * lib/parse-datetime.h: ...new file.
41869         * lib/parse-datetime.y (get_date): Rename...
41870         (parse_datetime): ...to this.
41871         * m4/parse-datetime.m4 (gl_GET_DATE): Rename...
41872         (gl_PARSE_DATETIME): ...to this.
41873         * doc/posix-functions/getdate.texi (get_date): Provide fallback
41874         documentation.
41875         * modules/getdate (Files): Provide fallback docs and header.
41876         (Notice, Depends-on): Update references.
41877         * tests/test-parse-datetime.c: Likewise.
41878         * DEPENDENCIES: Likewise.
41879         * MODULES.html.sh (Date and time <time.h>): Likewise.
41880         * doc/parse-datetime.texi (Date input formats)
41881         (Authors of parse_datetime): Likewise.
41882         * modules/parse-datetime (Files, configure.ac, Makefile.am)
41883         (Include): Likewise.
41884         * modules/parse-datetime-tests (Files, Makefile.am): Likewise.
41885         * gnulib-tool: Likewise.
41886         * m4/bison.m4 (gl_BISON): Likewise.
41887         Suggested by Bruno Haible.
41889 2010-10-05  Paul Eggert  <eggert@cs.ucla.edu>
41891         more ports to Solaris tr, which needs [] around ranges
41892         * gnulib-tool: Solaris tr needs [] around ranges.
41893         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): Likewise.
41894         * tests/test-pipe-filter-gi1.c (main): Likewise.
41895         * tests/test-pipe-filter-ii1.c (main): Likewise.
41897 2010-10-05  Eric Blake  <eblake@redhat.com>
41899         bootstrap: fix Solaris regression
41900         * build-aux/bootstrap (check_versions): Solaris tr still needs []
41901         around ranges.
41902         Reported by Pádraig Brady.
41904         bootstrap: work with pkg-config
41905         * build-aux/bootstrap (check_versions): Also transliterate - in
41906         prerequisite name.
41907         (print_versions): Be robust to any \ in $buildreq.  Avoid listing
41908         prerequisites that were already found, to avoid confusion.
41909         Reported by Justin Clift.
41911         faccessat: remove unused wrappers
41912         * lib/openat.h (accessat, euidaccesat): Delete, since the mere
41913         presence of these wrappers dragged in -lgen on Solaris.
41914         Reported by Clemens Brogi; fix suggested by Paul Eggert.
41916 2010-10-05  Jim Meyering  <meyering@redhat.com>
41918         tests: require @PRAGMA_COLUMNS@ with each @PRAGMA_SYSTEM_HEADER@
41919         * Makefile (sc_pragma_columns): New syntax-check rule.
41921 2010-10-04  Bruno Haible  <bruno@clisp.org>
41923         gnulib-tool: Synthesize appropriate _LDFLAGS for a libtool library.
41924         * gnulib-tool (func_emit_lib_Makefile_am): When preparing for a libtool
41925         library, put '-no-undefined' and the link dependencies into _LDFLAGS.
41926         Reported by Bruce Korb and Eric Blake.
41928 2010-10-04  Bruno Haible  <bruno@clisp.org>
41930         threadlib: Make option --with-libpth-prefix work.
41931         * m4/threadlib.m4 (gl_THREADLIB_BODY): When testing whether pth works,
41932         use $LIBPTH, not just -lpth.
41934 2010-10-04  Bruno Haible  <bruno@clisp.org>
41936         Avoid line length limitation from HP NonStop system header files.
41937         * m4/include_next.m4 (gl_INCLUDE_NEXT): Define also PRAGMA_COLUMNS.
41938         * lib/arpa_inet.in.h: Use PRAGMA_COLUMNS.
41939         * lib/ctype.in.h: Likewise.
41940         * lib/dirent.in.h: Likewise.
41941         * lib/errno.in.h: Likewise.
41942         * lib/fcntl.in.h: Likewise.
41943         * lib/float.in.h: Likewise.
41944         * lib/getopt.in.h: Likewise.
41945         * lib/iconv.in.h: Likewise.
41946         * lib/inttypes.in.h: Likewise.
41947         * lib/langinfo.in.h: Likewise.
41948         * lib/locale.in.h: Likewise.
41949         * lib/math.in.h: Likewise.
41950         * lib/netdb.in.h: Likewise.
41951         * lib/netinet_in.in.h: Likewise.
41952         * lib/poll.in.h: Likewise.
41953         * lib/pthread.in.h: Likewise.
41954         * lib/pty.in.h: Likewise.
41955         * lib/sched.in.h: Likewise.
41956         * lib/se-selinux.in.h: Likewise.
41957         * lib/search.in.h: Likewise.
41958         * lib/signal.in.h: Likewise.
41959         * lib/spawn.in.h: Likewise.
41960         * lib/stdarg.in.h: Likewise.
41961         * lib/stddef.in.h: Likewise.
41962         * lib/stdint.in.h: Likewise.
41963         * lib/stdio.in.h: Likewise.
41964         * lib/stdlib.in.h: Likewise.
41965         * lib/string.in.h: Likewise.
41966         * lib/strings.in.h: Likewise.
41967         * lib/sys_file.in.h: Likewise.
41968         * lib/sys_ioctl.in.h: Likewise.
41969         * lib/sys_select.in.h: Likewise.
41970         * lib/sys_socket.in.h: Likewise.
41971         * lib/sys_stat.in.h: Likewise.
41972         * lib/sys_time.in.h: Likewise.
41973         * lib/sys_times.in.h: Likewise.
41974         * lib/sys_utsname.in.h: Likewise.
41975         * lib/sys_wait.in.h: Likewise.
41976         * lib/sysexits.in.h: Likewise.
41977         * lib/termios.in.h: Likewise.
41978         * lib/time.in.h: Likewise.
41979         * lib/unistd.in.h: Likewise.
41980         * lib/wchar.in.h: Likewise.
41981         * lib/wctype.in.h: Likewise.
41982         * modules/arpa_inet (Makefile.am): Substitute PRAGMA_COLUMNS.
41983         * modules/ctype (Makefile.am): Likewise.
41984         * modules/dirent (Makefile.am): Likewise.
41985         * modules/errno (Makefile.am): Likewise.
41986         * modules/fcntl-h (Makefile.am): Likewise.
41987         * modules/float (Makefile.am): Likewise.
41988         * modules/getopt-posix (Makefile.am): Likewise.
41989         * modules/iconv-h (Makefile.am): Likewise.
41990         * modules/inttypes (Makefile.am): Likewise.
41991         * modules/langinfo (Makefile.am): Likewise.
41992         * modules/locale (Makefile.am): Likewise.
41993         * modules/math (Makefile.am): Likewise.
41994         * modules/netdb (Makefile.am): Likewise.
41995         * modules/netinet_in (Makefile.am): Likewise.
41996         * modules/poll-h (Makefile.am): Likewise.
41997         * modules/pthread (Makefile.am): Likewise.
41998         * modules/pty (Makefile.am): Likewise.
41999         * modules/sched (Makefile.am): Likewise.
42000         * modules/search (Makefile.am): Likewise.
42001         * modules/selinux-h (Makefile.am): Likewise.
42002         * modules/signal (Makefile.am): Likewise.
42003         * modules/spawn (Makefile.am): Likewise.
42004         * modules/stdarg (Makefile.am): Likewise.
42005         * modules/stddef (Makefile.am): Likewise.
42006         * modules/stdint (Makefile.am): Likewise.
42007         * modules/stdio (Makefile.am): Likewise.
42008         * modules/stdlib (Makefile.am): Likewise.
42009         * modules/string (Makefile.am): Likewise.
42010         * modules/strings (Makefile.am): Likewise.
42011         * modules/sys_file (Makefile.am): Likewise.
42012         * modules/sys_ioctl (Makefile.am): Likewise.
42013         * modules/sys_select (Makefile.am): Likewise.
42014         * modules/sys_socket (Makefile.am): Likewise.
42015         * modules/sys_stat (Makefile.am): Likewise.
42016         * modules/sys_time (Makefile.am): Likewise.
42017         * modules/sys_times (Makefile.am): Likewise.
42018         * modules/sys_utsname (Makefile.am): Likewise.
42019         * modules/sys_wait (Makefile.am): Likewise.
42020         * modules/sysexits (Makefile.am): Likewise.
42021         * modules/termios (Makefile.am): Likewise.
42022         * modules/time (Makefile.am): Likewise.
42023         * modules/unistd (Makefile.am): Likewise.
42024         * modules/wchar (Makefile.am): Likewise.
42025         * modules/wctype (Makefile.am): Likewise.
42027 2010-10-04  Bruno Haible  <bruno@clisp.org>
42029         read-file tests: Avoid a test failure on NonStop Kernel.
42030         * tests/test-read-file.c (main): Don't assume that /etc/resolv.conf is
42031         a regular file.
42032         Reported by Joachim Schmitz <schmitz@hp.com>.
42034 2010-10-03  Bruno Haible  <bruno@clisp.org>
42036         gnulib-tool: Fixes for --create-testdir with --libtool.
42037         * gnulib-tool (func_get_automake_snippet): Don't augment
42038         EXTRA_lib_SOURCES for the pt_chown module, since pt_chown.o goes into
42039         an executable.
42040         (func_create_testdir): Handle module 'alloca' like func_import.
42041         Reported by Bruce Korb <bruce.korb@gmail.com>.
42043 2010-10-03  Paul Eggert  <eggert@cs.ucla.edu>
42045         Avoid some lines longer than 80 characters.
42046         * lib/stdint.in.h: Break long comment lines.
42047         * lib/math.in.h: Likewise.
42048         (_GL_NUM_UINT_WORDS): New macro, for readability.
42049         (gl_signbitf, gl_signbitd, gl_signbitl): Use it.
42050         * lib/stdio.in.h: Break lines in _GL_WARN_ON_USE calls.
42051         * lib/stdlib.in.h: Likewise.
42052         * lib/spawn.in.h: Likewise.
42053         * lib/sys_socket.in.h: Update an URL.
42054         * lib/sys_stat.in.h: Break long line.
42056 2010-10-03  Reuben Thomas  <rrt@sc3d.org>
42058         Improve pmccabe2html.
42059         * build-aux/pmccabe2html: Add CYCLO_SRCS variable, and make
42060         cyclo-$(PACKAGE).html depend on it, so the HTML file is remade
42061         when the sources change. Remove the line in the HTML about "Used
42062         ranges" (which implied that there might be other unused ranges),
42063         rename "Resume" to "Summary" (easier to understand for more users).
42064         * build-aux/pmccabe.css: Removing the dashed dividers, some unused
42065         styles, and some unnecessary blank lines.
42067 2010-10-03  Bruno Haible  <bruno@clisp.org>
42068             Joachim Schmitz  <schmitz@hp.com>  (tiny change)
42070         acl: Add support for ACLs on NonStop Kernel.
42071         * m4/acl.m4 (gl_FUNC_ACL): For Solaris, test for facl(), not for acl().
42072         Check whether the function aclsort() exists.
42073         * lib/acl-internal.h: For Solaris, test HAVE_FACL, not HAVE_ACL.
42074         (acl_nontrivial) [HAVE_ACLSORT]: New declaration.
42075         * lib/file-has-acl.c: For Solaris, test HAVE_FACL, not HAVE_ACL.
42076         (acl_nontrivial [HAVE_ACLSORT]: New function.
42077         (file_has_acl): Implement for NonStop Kernel.
42078         * lib/set-mode-acl.c: For Solaris, test HAVE_FACL, not HAVE_ACL.
42079         (qset_acl): Implement for NonStop Kernel.
42080         * lib/copy-acl.c (qcopy_acl): Implement for NonStop Kernel.
42081         * tests/test-sameacls.c: For Solaris, test HAVE_FACL, not HAVE_ACL.
42082         (main): Implement for NonStop Kernel.
42083         * tests/test-file-has-acl.sh (acl_flavor): Set to 'nsk' on NonStop
42084         Kernel. Handle this flavor.
42085         * tests/test-set-mode-acl.sh: Likewise.
42086         * tests/test-copy-acl.sh: Likewise.
42087         * tests/test-copy-file.sh: Likewise.
42089 2010-10-03  Bruno Haible  <bruno@clisp.org>
42091         Info about ACLs on NonStop Kernel.
42092         * doc/acl-resources.txt: Add info about NonStop Kernel.
42093         References by Joachim Schmitz <schmitz@hp.com>.
42095 2010-10-02  Bruno Haible  <bruno@clisp.org>
42097         Define missing EDQUOT on NonStop Kernel.
42098         * lib/errno.in.h (EDQUOT): Assign a value if missing.
42099         * lib/strerror.c (rpl_strerror): Handle missing EDQUOT.
42100         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Also test whether EDQUOT is
42101         missing.
42102         * doc/posix-headers/errno.texi: Mention the NSK bug.
42103         * doc/posix-functions/strerror.texi: Mention the workaround on NSK.
42104         Reported by Joachim Schmitz <schmitz@hp.com>.
42106 2010-10-02  Bruno Haible  <bruno@clisp.org>
42108         Update doc for POSIX:2008.
42109         * doc/posix-headers/*.texi [except ucontext.texi, sys_timeb.texi]:
42110         Update URL of POSIX specification.
42112 2010-10-02  Bruno Haible  <bruno@clisp.org>
42114         gnulib-tool: In testdirs, use the newest available config.{guess.sub}.
42115         * gnulib-tool (func_create_testdir): Use config.guess and config.sub
42116         from gnulib, not from Automake.
42118 2010-10-02  Bruno Haible  <bruno@clisp.org>
42120         New module 'system-posix'.
42121         * modules/system-posix: New file.
42122         * lib/stdlib.in.h: Include <sys/wait.h> only when the 'system-posix'
42123         module is present.
42124         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
42125         GNULIB_SYSTEM_POSIX.
42126         * modules/stdlib (Depends-on): Remove sys_wait.
42127         (Makefile.am): Substitute GNULIB_SYSTEM_POSIX.
42128         * doc/posix-functions/system.texi: Mention the new module.
42129         * doc/posix-headers/stdlib.texi: Likewise.
42130         * tests/test-stdlib.c: If GNULIB_TEST_SYSTEM_POSIX is not defined,
42131         define test_sys_wait_macros to a no-op.
42132         Reported by Sam Steingold <sds@gnu.org>.
42134 2010-09-30  Bruno Haible  <bruno@clisp.org>
42136         More renaming from 'getdate' to 'get_date'.
42137         * doc/get_date.texi: Renamed from doc/getdate.texi.
42138         * modules/get_date (Files): Update.
42139         * MODULES.html.sh (Date and time <time.h>): Update.
42140         * DEPENDENCIES: Update.
42141         * gnulib-tool: Update comment.
42142         * m4/bison.m4 (gl_BISON): Likewise.
42143         * m4/get_date.m4 (gl_GET_DATE): Likewise.
42145 2010-09-30  Justin Clift  <jclift@redhat.com>  (tiny change)
42147         bootstrap: support ACLOCAL_FLAGS during aclocal
42148         * build-aux/bootstrap (aclocal): Honor ACLOCAL_FLAGS, so the user
42149         can add additional -I dir for third-party .m4 files.
42151 2010-09-30  Eric Blake  <eblake@redhat.com>
42153         bootstrap: use glibtoolize on MacOS
42154         * build-aux/bootstrap (check_versions): Convert libtool into
42155         libtoolize.
42156         (tool search): Move libtool check earlier, and look for
42157         glibtoolize for MacOS.
42158         (gnulib_tool_options): Auto-add --libtool when appropriate.
42159         Reported by Justin Clift.
42161         poll: fix typo that broke test on MacOS
42162         * m4/poll.m4 (gl_FUNC_POLL): Add missing test.
42163         Reported by Justin Clift.
42165         getdate: rename to get_date
42166         Note: getdate.h is not renamed, to minimize client impact.
42167         * modules/getdate: Mark obsolete.  Move old contents...
42168         * modules/get_date: ...to new module name.
42169         * modules/getdate-tests: Move...
42170         * modules/get_date-tests: ...here.
42171         * m4/getdate.m4: Move...
42172         * m4/get_date.m4: ...here, and rename gl_GETDATE to gl_GET_DATE.
42173         * lib/getdate.y: Move...
42174         * lib/get_date.y: ...here.
42175         * tests/test-getdate.c: Move...
42176         * tests/test-get_date.c: ...here.
42177         * doc/posix-functions/getdate.texi (getdate): Update name.
42178         * NEWS: Mention the change.
42180 2010-09-29  Bruno Haible  <bruno@clisp.org>
42182         Separate the module 'waitpid' from the module 'sys_wait'.
42183         * lib/sys_wait.in.h (waitpid): Declare only if the 'waitpid' module is
42184         present.
42185         * m4/sys_wait_h.m4 (gl_SYS_WAIT_MODULE_INDICATOR): Invoke
42186         gl_MODULE_INDICATOR_FOR_TESTS.
42187         (gl_SYS_WAIT_H_DEFAULTS): Initialize GNULIB_WAITPID.
42188         * modules/sys_wait (Depends-on): Remove waitpid.
42189         (Makefile.am): Substitute GNULIB_WAITPID.
42190         * modules/waitpid (configure.ac): Invoke gl_SYS_WAIT_MODULE_INDICATOR.
42191         * tests/test-sys_wait-c++.cc (GNULIB_NAMESPACE::waitpid): Check the
42192         signature only if the 'waitpid' module is present.
42193         * doc/posix-functions/waitpid.texi: Mention the 'waitpid' module.
42194         * NEWS: Mention the change.
42195         * modules/grantpt (Depends-on): Add waitpid.
42196         * modules/wait-process (Depends-on): Likewise.
42198 2010-09-29  Bruno Haible  <bruno@clisp.org>
42200         More tests for module 'sys_wait'.
42201         * modules/sys_wait-c++-tests: New file.
42202         * tests/test-sys_wait-c++.cc: New file.
42203         * modules/sys_wait-tests (Depends-on): Add sys_wait-c++-tests.
42204         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>.
42206 2010-09-29  Bruno Haible  <bruno@clisp.org>
42208         New module 'waitpid'.
42209         * lib/waitpid.c: New file, extracted from lib/sys_wait.in.h.
42210         * lib/sys_wait.in.h: Include <sys/types.h>, c++defs.h, warn-on-use.h.
42211         Don't include <process.h>.
42212         (waitpid): Declare only, using modern idiom.
42213         * m4/waitpid.m4: New file.
42214         * m4/sys_wait_h.m4 (gl_SYS_WAIT_H): Check whether waitpid is declared.
42215         * modules/waitpid: New file.
42216         * modules/sys_wait (Depends-on): Add c++defs, warn-on-use, waitpid.
42217         (Makefile.am): Update.
42218         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>.
42220 2010-09-28  Bruno Haible  <bruno@clisp.org>
42222         poll: Assume ANSI C.
42223         * lib/poll.c (poll): Use an ANSI C declaration.
42225 2010-09-28  Bruno Haible  <bruno@clisp.org>
42227         poll-h: Create poll.h on all platforms.
42228         * lib/poll.in.h: Use double-inclusion guard. Don't define POLL*,
42229         struct pollfd, nfds_t, INFTIM when the system has <poll.h>.
42230         * m4/poll_h.m4 (gl_POLL_H): Set HAVE_POLL_H. Invoke
42231         gl_CHECK_NEXT_HEADERS. Don't set POLL_H.
42232         (gl_REPLACE_POLL_H): Don't set POLL_H.
42233         (gl_POLL_H_DEFAULTS): Don't initialize POLL_H.
42234         * modules/poll-h (Depends-on): Add include_next.
42235         (Makefile.am): Create poll.h unconditionally. Substitute also
42236         HAVE_POLL_H, INCLUDE_NEXT, PRAGMA_SYSTEM_HEADER, NEXT_POLL_H.
42238 2010-09-28  Bruno Haible  <bruno@clisp.org>
42240         Tests for module 'poll-h'.
42241         * modules/poll-h-c++-tests: New file.
42242         * tests/test-poll-h-c++.cc: New file.
42244         Tests for module 'poll-h'.
42245         * modules/poll-h-tests: New file.
42246         * tests/test-poll-h.c: New file.
42248 2010-09-28  Bruno Haible  <bruno@clisp.org>
42250         poll-h: Ensure POLL{RD,WR}{NORM,BAND} are defined on glibc platforms.
42251         * modules/poll-h (Depends-on): Add 'extensions'.
42253 2010-09-28  Bruno Haible  <bruno@clisp.org>
42255         New module 'poll-h'.
42256         * lib/poll.in.h: Include c++defs.h and warn-on-use.h.
42257         (poll): Use modern idiom.
42258         * modules/poll-h: New file.
42259         * modules/poll (Files): Remove lib/poll.in.h.
42260         (Depends-on): Add poll-h.
42261         (configure.ac): Invoke gl_POLL_MODULE_INDICATOR.
42262         (Makefile.am): Move code for generation of poll.h to modules/poll-h.
42263         * m4/poll_h.m4: New file.
42264         * m4/poll.m4 (gl_FUNC_POLL): Require gl_POLL_H. Don't check for poll.h
42265         here. Don't set POLL_H here. Instead, set HAVE_POLL and REPLACE_POLL
42266         and invoke gl_REPLACE_POLL_H.
42267         * lib/poll.c: Use common idiom.
42268         * tests/test-poll.c: Likewise.
42269         * doc/posix-headers/poll.texi: Mention the poll-h module.
42270         Suggested by Eric Blake.
42272 2010-09-26  Bruno Haible  <bruno@clisp.org>
42274         sys_wait: Implement WSTOPSIG.
42275         * lib/sys_wait.in.h (WSTOPSIG): New macro.
42276         Reported by Simon Josefsson.
42278 2010-09-26  Simon Josefsson  <simon@josefsson.org>
42280         stdlib, sys_wait: Avoid compilation error on mingw.
42281         * lib/sys_wait.in.h: Include <signal.h>, for SIGTERM.
42283 2010-09-26  Bruno Haible  <bruno@clisp.org>
42285         stdlib tests: Avoid code duplication.
42286         * modules/stdlib-tests (Files): Add tests/test-sys_wait.h.
42287         * modules/sys_wait-tests (Files): Likewise.
42288         * tests/test-sys_wait.h: New file, extracted from tests/test-stdlib.c.
42289         * tests/test-stdlib.c: Include test-sys_wait.h.
42290         (main): Invoke test_sys_wait_macros.
42291         * tests/test-sys_wait.c: Include test-sys_wait.h.
42292         (main): Invoke test_sys_wait_macros.
42294 2010-09-25  Simon Josefsson  <simon@josefsson.org>
42296         * modules/getaddrinfo (Depends-on): Depend on the sockets module.
42297         * lib/getaddrinfo.c (use_win32_p): Call gl_sockets_startup to make
42298         sure Windows sockets are working before calling getaddrinfo.
42299         * tests/test-getaddrinfo.c (main): Don't call WSAStartup here.
42300         * doc/gnulib.texi (Windows sockets): Fix typo.
42302 2010-09-25  Bruno Haible  <bruno@clisp.org>
42304         Tests for module 'regex-quote'.
42305         * modules/regex-quote-tests: New file.
42306         * tests/test-regex-quote.c: New file.
42308         New module 'regex-quote'.
42309         * lib/regex-quote.h: New file.
42310         * lib/regex-quote.c: New file.
42311         * modules/regex-quote: New file.
42312         Suggested by Reuben Thomas <rrt@sc3d.org>.
42314 2010-09-24  Bruno Haible  <bruno@clisp.org>
42316         unistr/u8-strchr: Fix a test failure on i586 glibc systems.
42317         * tests/unistr/test-strchr.h (test_strchr): Disable an invalid check.
42319 2010-09-23  Bruno Haible  <bruno@clisp.org>
42321         setenv: Relax license.
42322         * modules/setenv (License): Change to LGPLv2+, with consent by Eric
42323         Blake.
42324         Requested by Eric Blake.
42326 2010-09-22  Bruno Haible  <bruno@clisp.org>
42328         termios: Relax license.
42329         * modules/termios (License): Change to LGPLv2+.
42330         Requested by Eric Blake.
42332 2010-09-22  Bruno Haible  <bruno@clisp.org>
42334         threadlib: Allow the package to change the default to 'no'.
42335         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): When
42336         gl_THREADLIB_DEFAULT_NO is defined, change the default to 'no'.
42337         Reported by Paul Eggert.
42339 2010-09-22  Pádraig Brady  <P@draigbrady.com>
42340             Bruno Haible  <bruno@clisp.org>
42342         Fix endless loop in mbmemcasecoll.
42343         * lib/mbmemcasecoll.c (apply_towlower): When mbrtowc returns 0, copy 1
42344         byte.
42345         * tests/test-mbmemcasecmp.h (test_ascii): Test embedded NULs.
42347 2010-09-22  Bruno Haible  <bruno@clisp.org>
42349         Tests for module 'memcoll'.
42350         * modules/memcoll-tests: New file.
42351         * tests/test-memcoll.c: New file, based on tests/test-memcmp.c.
42353         memcoll, xmemcoll: Clarify size vs. length.
42354         * modules/memcoll.c (memcoll0): Clarify specification.
42355         * modules/xmemcoll.c (xmemcoll0): Likewise. Reduce by 1 the lengths
42356         passed to collate_error.
42358 2010-09-22  Bruno Haible  <bruno@clisp.org>
42360         Tests for module 'memcasecmp'.
42361         * modules/memcasecmp-tests: New file.
42362         * tests/test-memcasecmp.c: New file, based on tests/test-memcmp.c.
42364 2010-09-22  Paul Eggert  <eggert@cs.ucla.edu>
42366         * lib/pthread.in.h: Add split double-inclusion guard, and include
42367         system <pthread.h> if there is one.  Use @@-style as in other
42368         .in.h files.  Define PTHREAD_COND_INITIALIZER etc. only if system
42369         pthread.h doesn't.
42370         (pthread_mutexattr_destroy, pthread_mutexattr_init):
42371         (pthread_mutexattr_settype, pthread_mutex_trylock):
42372         New static inline functions, if there's no system <pthread.h>.
42373         (pthread_spinlock_t, pthread_spin_init, pthread_spin_destroy):
42374         (pthread_spin_lock, pthread_spin_trylock, pthread_spin_unlock):
42375         Approximate with mutexes if the system lacks spinlocks, as in
42376         MacOS.
42377         * m4/pthread.m4 (gl_PTHREAD_CHECK): Require gl_PTHREAD_DEFAULTS.
42378         Add gl_CHECK_NEXT_HEADERS for pthread.h, and support the usual
42379         @@-style.  Check for spinlocks separately.
42380         (gl_PTHREAD_DEFAULTS): New macro.
42381         * modules/pthread: Redo to use a more typical style for in.h files.
42383 2010-09-21  Eric Blake  <eblake@redhat.com>
42385         net_if: enhance tests
42386         * tests/test-net_if.c (main): Move signature checks earlier.
42387         Print failures to stderr.
42388         * doc/posix-functions/if_freenameindex.texi (if_freenameindex):
42389         Document the bug that we do not yet fix.
42391 2010-09-21  Reuben Thomas  <rrt@sc3d.org>
42393         * doc/gnulib.texi (Out of memory handling): Rewrite section to be
42394         about gnulib, not GSS.
42396 2010-09-21  Reuben Thomas  <rrt@sc3d.org>
42398         * build-aux/pmccabe2html: Look for sources in src/ instead of lib/.
42399         * build-aux/pmccabe2html: Set cut_dir properly, and add mode line
42400         for Emacs.
42401         * build-aux/pmccabe2html: Make Makefile.am example code more
42402         cut-and-paste friendly.
42404 2010-09-21  Simon Josefsson  <simon@josefsson.org>
42406         * tests/test-net_if.c: New file.
42407         * modules/net_if-tests: New file.
42409 2010-09-20  Paul Eggert  <eggert@cs.ucla.edu>
42411         pthread: add pthread_spin_destroy
42412         * lib/pthread.in.h (pthread_spin_destroy): New function.
42414 2010-09-19  Bruno Haible  <bruno@clisp.org>
42416         gnulib-tool: Fix --help output.
42417         * gnulib-tool (func_usage): Fix help message.
42418         Reported by Reuben Thomas <rrt@sc3d.org>.
42420 2010-09-18  Jim Meyering  <meyering@redhat.com>
42422         maint.mk: avoid unexpanded \n in two diagnostics
42423         * top/maint.mk (sc_prohibit_always_true_header_tests):
42424         Don't use a literal \n in a halt=... assignment.  It would not be
42425         expanded, and the two \n bytes would appear in the diagnostic output
42426         rather than the desired newline.  Use halt=$$(printf ... instead.
42427         (sc_vulnerable_makefile_CVE-2009-4029): Likewise.
42429 2010-09-18  Bruno Haible  <bruno@clisp.org>
42431         netinet_in: Doc tweak.
42432         * doc/posix-headers/netinet_in.texi: Mention an affected platform.
42433         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
42435 2010-09-18  Jim Meyering  <meyering@redhat.com>
42437         init.sh: correct an outdated comment
42438         * tests/init.sh (create_exe_shims_):  s/function/alias/
42440         init.sh: don't let an ephemeral "*.exe" make us skip all dir entries
42441         * tests/init.sh (find_exe_basenames_): Don't give up on a directory if
42442         a file named "*.exe" is removed between the glob expansion and the
42443         processing of that oddly named file.
42445 2010-09-17  Eric Blake  <eblake@redhat.com>
42447         mirbsd: add some more support
42448         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): MirBSD is
42449         in BSD family.
42450         * m4/gc-random.m4 (gl_GC_RANDOM): MirBSD supports same random
42451         devices as OpenBSD.
42452         * m4/host-os.m4 (mirbsd): Add MirBSD.
42454         tests: fix unportable assumption on sys/wait.h
42455         * tests/test-sys_wait.c (main): Relax test.
42456         * tests/test-stdlib.c (main): Likewise.
42458         init.sh: accommodate directory with no .exes
42459         * tests/init.sh: Accomodate directory containing only scripts.
42461         tests: avoid compiler warning
42462         * tests/test-stdlib.c (main): Use the variable.
42464         fdutimens, fdutimensat: update signature, again
42465         * lib/utimens.h (gl_futimens): Delete, and move signature...
42466         (fdutimens): ...here.
42467         (fdutimensat): Rearrange signature.
42468         (lutimensat): Rename variable for clarity.
42469         * lib/fdutimensat.c (fdutimensat): Update signature.
42470         * lib/utimens.c (fdutimens): Likewise.
42471         (gl_futimens): Delete.
42472         (utimens, lutimens): Update callers.
42473         * lib/futimens.c (futimens): Likewise.
42474         * tests/test-fdutimensat.c: Likewise.
42475         * tests/test-utimens.c: Likewise.
42476         * tests/test-futimens.h: Update comment.
42477         * NEWS: Mention this.
42478         Suggested by Paul Eggert.
42480 2010-09-17  Bruno Haible  <bruno@clisp.org>
42482         Take over the maintenance of some older macros from Autoconf.
42483         * m4/error.m4 (AC_FUNC_ERROR_AT_LINE): New macro, from GNU Autoconf.
42484         * m4/lstat.m4 (AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): New macro, from
42485         GNU Autoconf.
42486         * m4/memcmp.m4 (AC_FUNC_MEMCMP): New macro, from GNU Autoconf.
42487         * m4/mktime.m4 (AC_FUNC_MKTIME): Change comment.
42489 2010-09-17  Eric Blake  <eblake@redhat.com>
42491         fdutimensat: drop atflag validation
42492         * lib/fdutimensat.c (fdutimensat): Allow AT_SYMLINK_NOFOLLOW even
42493         with valid fd, to close a race scenario where futimens is
42494         unsupported and FILE was replaced by a symlink.
42495         * tests/test-fdutimensat.c (do_fdutimens, main): Adjust test
42496         accordingly.
42497         Suggested by Paul Eggert.
42499 2010-09-16  Bruno Haible  <bruno@clisp.org>
42501         unlockpt: Fix declaration within GNULIB_POSIXCHECK.
42502         * lib/stdlib.in.h (unlockpt): Fix warning declaration.
42504 2010-09-16  Bruno Haible  <bruno@clisp.org>
42506         login_tty: Fix detection of function on FreeBSD, OpenBSD, NetBSD.
42507         * m4/pty.m4 (gl_FUNC_LOGIN_TTY): Augment LIBS while checking whether
42508         login_tty exists.
42509         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
42511 2010-09-16  Bruno Haible  <bruno@clisp.org>
42513         login_tty: Make the replacement code work on BSD systems.
42514         * lib/login_tty.c: Include <sys/ioctl.h>.
42515         (login_tty): Use ioctl TIOCSCTTY when available.
42516         * modules/login_tty (Depends-on): Add sys_ioctl.
42517         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
42519 2010-09-16  Bruno Haible  <bruno@clisp.org>
42521         login_tty: Stricter unit test.
42522         * modules/login_tty-tests (Depends-on): Add tcgetsid.
42523         * tests/test-login_tty.c (main): Also check the results of tcgetpgrp()
42524         and tcgetsid() after login_tty.
42525         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
42527 2010-09-16  Bruno Haible  <bruno@clisp.org>
42529         New module 'tcgetsid'.
42530         * lib/tcgetsid.c: New file.
42531         * m4/tcgetsid.m4: New file.
42532         * modules/tcgetsid: New file.
42533         * modules/termios (Depends-on): Add c++defs, warn-on-use.
42534         (Makefile.am): Ensure c++defs.h, warn-on-use.h get included. Substitute
42535         GNULIB_TCGETSID, HAVE_TCGETSID.
42536         * lib/termios.in.h: Include <sys/types.h>.
42537         (tcgetsid): New declaration.
42538         * m4/termios_h.m4 (gl_TERMIOS_H): Check whether tcgetsid is declared.
42539         (gl_TERMIOS_H_DEFAULTS): Initialize GNULIB_TCGETSID, HAVE_TCGETSID.
42540         * doc/posix-functions/tcgetsid.texi: Mention the new module.
42541         * tests/test-termios-c++.cc: Check GNULIB_NAMESPACE::tcgetsid.
42543 2010-09-16  Bruno Haible  <bruno@clisp.org>
42545         Tests for module 'termios'.
42546         * modules/termios-c++-tests: New file.
42547         * modules/termios-tests: New file.
42548         * tests/test-termios-c++.cc: New file.
42549         * tests/test-termios.c: New file.
42551         New module 'termios'.
42552         * modules/termios: New file.
42553         * lib/termios.in.h: New file.
42554         * m4/termios_h.m4: New file.
42555         * doc/posix-headers/termios.texi: Mention the new module.
42557 2010-09-16  Eric Blake  <eblake@redhat.com>
42559         fdutimensat: add an atflag parameter
42560         * lib/fdutimensat.c (fdutimensat): Add new parameter.
42561         * lib/utimens.h (fdutimensat): Update prototype.
42562         * tests/test-fdutimensat.c: Adjust test to match.
42563         * NEWS: Document the change.
42564         Suggested by Paul Eggert.
42566 2010-09-16  Bruno Haible  <bruno@clisp.org>
42568         Fix typos in comments.
42569         * lib/striconveh.h: Fix typo in comment.
42570         * lib/login_tty.c (login_tty): Likewise.
42572 2010-09-15  Bruno Haible  <bruno@clisp.org>
42574         stdlib: clarify MirBSD WEXITSTATUS bug
42575         * lib/stdlib.in.h: Clarify the MirBSD bug regarding WEXITSTATUS.
42576         * doc/posix-headers/stdlib.texi (stdlib.h): Likewise.
42578 2010-09-15  Eric Blake  <eblake@redhat.com>
42580         stdlib: work around MirBSD WEXITSTATUS bug
42581         * lib/stdlib.in.h (includes): Guarantee WEXITSTATUS.
42582         * modules/stdlib (Depends-on): Add sys_wait.
42583         * tests/test-sys_wait.c (main): Enhance test.
42584         * tests/test-stdlib.c (main): Likewise.
42585         * doc/posix-headers/stdlib.texi (stdlib.h): Document the bug.
42587         docs: mention MacOS issue with WEXITSTATUS(constant)
42588         * doc/posix-headers/sys_wait.texi (sys/wait.h): Document the
42589         issue.
42590         * doc/posix-headers/stdlib.texi (stdlib.h): Likewise.
42592         strnlen: add tests
42593         * modules/strnlen-tests: New file.
42594         * tests/test-strnlen.c: Likewise.
42596 2010-09-14  Bruno Haible  <bruno@clisp.org>
42598         unistr/base: Avoid link errors when module 'libunistring' is also used.
42599         * lib/unistr.in.h (u8_mbtouc_unsafe, u16_mbtouc_unsafe,
42600         u32_mbtouc_unsafe, u8_mbtouc, u16_mbtouc, u32_mbtouc, u8_mbtoucr,
42601         u16_mbtoucr, u32_mbtoucr, u8_uctomb_aux, u16_uctomb_aux, u32_uctomb):
42602         Declare also when HAVE_LIBUNISTRING is set.
42603         Reported by Pádraig Brady <P@draigbrady.com>.
42605 2010-09-14  Eric Blake  <eblake@redhat.com>
42607         test-rawmemchr: make more robust
42608         * modules/rawmemchr-tests (Files): Add zerosize-ptr.h, mmap-anon.m4.
42609         (Depends-on, configure.ac): Add needed prerequisites to use it.
42610         * modules/memchr-tests (Files, Depends-on, configure.ac):
42611         Likewise, to avoid implicit reliance on memchr module prereqs.
42612         * tests/test-memchr.c (main): Ensure proper masking.
42613         * tests/test-rawmemchr.c (main): Likewise.  Detect oversized
42614         reads.
42616         memchr: detect glibc Alpha bug
42617         Avoids http://sourceware.org/bugzilla/show_bug.cgi?id=12019.
42618         * m4/memchr.m4 (gl_FUNC_MEMCHR): Detect glibc 2.11.2 failure on
42619         Alpha.
42620         * doc/posix-functions/memchr.texi (memchr): Tweak wording.
42621         * tests/test-memchr.c (main): Enhance test.
42622         Reported by Nelson H. F. Beebe.
42624 2010-09-13  Paul Eggert  <eggert@cs.ucla.edu>
42626         fts, getcwd, glob: audit for dirfd returning -1
42627         * lib/fts.c (opendir): Remove #define; no longer used.
42628         (opendirat): New arg PDIR_FD.  All callers changed.
42629         (fts_build, _opendir2): Use new opendirat to avoid the need for
42630         dirfd, or for checking whether dirfd returns a negative value.
42631         Don't use opendir; always use openat followed by fdopendir.
42632         * lib/getcwd.c (__getcwd): Don't reset fd; fdopendir no longer clobbers
42633         it.
42634         * lib/glob.c (link_exists_p): Add comment explaining why dirfd never
42635         returns -1 here.
42636         * modules/fts (Depends-on): Remove dirfd.
42637         * modules/getcwd (Depends-on): Likewise.
42639 2010-09-13  Eric Blake  <eblake@redhat.com>
42641         float: fix broken MirBSD header
42642         * m4/float_h.m4 (gl_FLOAT_H): MirBSD copied OpenBSD's bug.
42643         * doc/posix-headers/float.texi (float.h): Document it.
42645 2010-09-13  Paul Eggert  <eggert@cs.ucla.edu>
42647         fts: use O_NOFOLLOW to avoid race condition when opening a directory
42648         * lib/fts.c (opendirat): New arg extra_flags.
42649         (__opendir2): Use it to avoid following symlinks when opening
42650         a directory, if symlinks are not supposed to be followed.  See
42651         <http://lists.gnu.org/archive/html/bug-gnulib/2010-09/msg00213.html>.
42653         fdopendir: preserve argument fd before returning
42654         * lib/fdopendir.c: Adjust comments to say POSIX, not Solaris.
42655         (fdopendir_with_dup, fd_clone_opendir): New static functions.
42656         (fdopendir): Use them, arranging for FD to be open to the same
42657         directory that it was when it started.  (It might be temporarily
42658         closed while fdopendir is running, so this not thread- or
42659         signal-safe.)  Be careful to do the right thing even when file
42660         descriptors are scarce and dup fails with errno == EMFILE.  See
42661         <http://lists.gnu.org/archive/html/bug-gnulib/2010-09/msg00208.html>.
42663 2010-09-10  Paolo Bonzini  <bonzini@gnu.org>
42665         regex: Pass the system regex if its only problem is 32-bit regoff_t.
42666         * NEWS: Document change.
42667         * m4/regex.m4: Disable test for regoff_t size.
42669 2010-09-13  Jim Meyering  <meyering@redhat.com>
42671         fts: don't operate on an invalid file descriptor after failed dup
42672         * lib/fts.c (fts_build): Don't call set_cloexec_flag on a
42673         negative file descriptor.
42675 2010-09-12  Paul Eggert  <eggert@cs.ucla.edu>
42677         savedir: add streamsavedir, deprecate fdsavedir
42678         * NEWS: Mention deprecation of fdsavedir.
42679         * lib/savedir.c (streamsavedir): New extern function, whose name
42680         ends in "savedir" to be consistent with the others.  This differs
42681         from savedirstream in that it doesn't close its argument.  The
42682         next version of GNU tar will use this instead of fdsavedir, to
42683         avoid some race conditions and conserve file descriptors.
42684         (savedirstream): Reimplement as a wrapper around streamsavedir.
42685         (fdsavedir): Add a comment deprecating this function.  As far as
42686         I know, only GNU tar used it, and GNU tar doesn't need it any more.
42687         * lib/savedir.h (streamsavedir): New decl.
42688         (fdsavedir): Add a comment deprecating this.
42690 2010-09-10  Bruno Haible  <bruno@clisp.org>
42692         langinfo: Fix last commit.
42693         * m4/langinfo_h.m4 (gl_LANGINFO_H): Initialize
42694         HAVE_LANGINFO_T_FMT_AMPM, HAVE_LANGINFO_YESEXPR.
42695         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
42697 2010-09-10  Bruno Haible  <bruno@clisp.org>
42699         relocatable-prog-wrapper: Fix compilation failure due to O_EXEC.
42700         * lib/progreloc.c (O_EXEC): Define fallback.
42702 2010-09-10  Paul Eggert  <eggert@cs.ucla.edu>
42704         fcntl-h: define O_CLOEXEC and O_EXEC if not defined; use new defines
42705         * NEWS: Document recent changes to fcntl-h.
42706         * doc/posix-headers/fcntl.texi (fcntl.h): Document that
42707         O_CLOEXEC is now defined to 0 if it is not defined, like other flags.
42708         Also, O_EXEC is now defined to be O_RDONLY if O_EXEC is not defined.
42709         Similarly for O_SEARCH; this last was already true, but not documented.
42710         * lib/fcntl.in.h (O_CLOEXEC): Define to 0 if not defined.
42711         * lib/dup-safer-flag.c (O_CLOEXEC): Remove now-useless #define.
42712         * lib/dup3.c, lib/pipe2.c, tests/test-dup-safer.c, tests/test-fcntl.c:
42713         Likewise.
42714         * lib/popen-safer.c (open_noinherit): Check whether O_CLOEXEC
42715         is zero, not whether it is defined.
42716         * tests/test-dup3.c, tests/test-pipe2.c (main): Likewise.
42717         * lib/progreloc.c (find_executable): Use O_EXEC rather than O_RDONLY.
42718         * lib/open.c (open): Check for O_SEARCH as well as for O_RDONLY.
42720 2010-09-10  Bruno Haible  <bruno@clisp.org>
42722         langinfo, nl_langinfo: Fix for IRIX 5.3.
42723         * m4/langinfo_h.m4 (gl_LANGINFO_H): Test whether langinfo.h defines
42724         T_FMT_AMPM, YESEXPR. Set HAVE_LANGINFO_T_FMT_AMPM,
42725         HAVE_LANGINFO_YESEXPR.
42726         * modules/langinfo (Makefile.am): Substitute HAVE_LANGINFO_T_FMT_AMPM,
42727         HAVE_LANGINFO_YESEXPR.
42728         * lib/langinfo.in.h (T_FMT_AMPM, GNULIB_defined_T_FMT_AMPM): Define if
42729         HAVE_LANGINFO_T_FMT_AMPM is 0.
42730         (YESEXPR, NOEXPR, GNULIB_defined_YESEXPR): Define if
42731         HAVE_LANGINFO_YESEXPR is 0.
42732         * lib/nl_langinfo.c (rpl_nl_langinfo): Handle also T_FMT_AMPM, YESEXPR,
42733         NOEXPR.
42734         * doc/posix-headers/langinfo.texi: Mention the IRIX 5.3 problem.
42735         * doc/posix-functions/nl_langinfo.texi: Likewise.
42736         Reported by Eric Blake.
42738 2010-09-10  Bruno Haible  <bruno@clisp.org>
42740         pty, readutmp: Fix for FreeBSD 8.0 and OpenBSD 4.6.
42741         * doc/glibc-functions/login_tty.texi: Mention the include file problem
42742         on FreeBSD 8.0 and OpenBSD 4.6.
42743         * lib/pty.in.h: Include <sys/types.h> before <libutil.h>.
42744         * m4/pty_h.m4 (gl_PTY_H): Likewise.
42745         * m4/pty.m4 (gl_FUNC_FORKPTY, gl_FUNC_OPENPTY): Likewise.
42746         * m4/readutmp.m4 (gl_READUTMP): Include <sys/types.h> before <utmp.h>.
42747         Invoke AC_INCLUDES_DEFAULT instead of using the undocumented variable
42748         ac_includes_default.
42749         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
42751 2010-09-09  Eric Blake  <eblake@redhat.com>
42753         strsignal: work around NetBSD bug
42754         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Also check in <unistd.h>.
42755         * lib/string.in.h (includes): Likewise.
42756         * doc/posix-functions/strsignal.texi (strsignal): Document the
42757         bug.
42758         Reported by Nelson H. F. Beebe.
42760         gnulib-tool: work with NetBSD /bin/sh
42761         * gnulib-tool (func_cache_var, func_cache_lookup_module)
42762         (func_get_description, func_get_comment, func_get_status)
42763         (func_get_notice, func_get_applicability, func_get_filelist)
42764         (func_get_dependencies, func_get_autoconf_early_snippet)
42765         (func_get_autoconf_snippet, func_get_automake_snippet)
42766         (func_get_include_directive, func_get_link_directive)
42767         (func_get_license, func_get_maintainer, func_import): Avoid
42768         shell syntax errors from parsing syntax extensions.
42770 2010-09-09  Bruno Haible  <bruno@clisp.org>
42772         gnulib-tool: Avoid stderr output on IRIX related to 'alias', 'unalias'.
42773         * gnulib-tool: Don't fiddle with file descriptors 0, 1, 2. Instead, use
42774         a reliable way to determine whether the 'alias' command works.
42776 2010-09-08  Jim Meyering  <meyering@redhat.com>
42778         init.sh: penalize a set-x-impaired shell; don't disqualify it
42779         * tests/init.sh: Too many shells corrupt application stderr when
42780         you set -x, so we can't afford to disqualify them, since at least
42781         on Irix-6.5, that would disqualify all bourne shells.
42782         Instead, use a two-pass approach.
42783         On the first pass, try to find a shell that meets the stricter
42784         condition that set -x does not corrupt stderr.
42785         If no shell meets the stricter condition, retest each candidate
42786         shell, but without that extra condition.  Finally, when
42787         VERBOSE=yes is requested and set -x might cause trouble, simply
42788         issue a warning and refrain from enabling debug output.
42790 2010-09-08  Eric Blake  <eblake@redhat.com>
42792         unsetenv: fix OpenBSD bug
42793         * m4/setenv.m4 (gl_FUNC_UNSETENV): Check for OpenBSD bug.
42794         * doc/posix-functions/unsetenv.texi (unsetenv): Update
42795         documentation.
42796         Reported by Jim Meyering.
42798         strtod: work around IRIX 6.5 bug
42799         * lib/strtod.c (strtod): Reparse number on shorter string if
42800         exponent parse was invalid.
42801         * tests/test-strtod.c (main): Add check for "0x1p 2".
42802         Reported by Tom G. Christensen.
42804         getopt: optimize previous patch
42805         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Correctly check for
42806         empty variable.  Speed up awk script.
42807         Reported by Paolo Bonzini.
42809 2010-09-08  Jim Meyering  <meyering@redhat.com>
42811         test.sh: disqualify shells for which set -x corrupts stderr
42812         * tests/init.sh: Add a test to disqualify /bin/sh from SunOS 5.11
42813         and OpenBSD 4.7.  They make it so with "set -x", environment settings
42814         appear in stderr output.  For example, this command:
42815             /bin/sh -c 'set -x; P=1 true 2> err' 2>/dev/null; cat err
42816         prints "P=1" on those two systems:
42818 2010-09-08  Bruno Haible  <bruno@clisp.org>
42820         gnulib-tool: Avoid stderr output on IRIX related to 'alias', 'unalias'.
42821         * gnulib-tool: Use stderr redirection around the 'alias' and 'unalias'
42822         commands, because some shells ignore redirections when there is an
42823         error in the command lookup.
42824         Reported by Eric Blake.
42826 2010-09-07  Reuben Thomas  <rrt@sc3d.org>
42828         * lib/regex.h: Fix a mention of `regex_compile' (should be
42829         `re_compile_pattern').
42830         Correct and clarify documentation for RE_CONTEXT_INVALID_DUP.
42831         (re_set_registers): Correct name of parameter in comment.
42833         * doc/regex.texi: Add documentation for missing syntax flags.
42834         Remove commented-out documentation of defunct syntax option
42835         RE_NO_EMPTY_ALTS.
42836         Correct name of RE_CHAR_CLASSES in one incorrect occurrence.
42837         Add documentation of re_set_registers.
42838         Document trick to re-use a pattern buffer by setting fastmap manually.
42839         Update documentation of struct re_pattern_buffer per public members.
42840         Uncomment documentation of equivalence class operators and
42841         collating symbol operators, since they are now implemented,
42842         Explain leftmost-longest matching in relation to alternatives.
42843         Tidy documentation of substring matching.
42844         Remove POSIX documentation, which is done better in
42845         glibc, and refer the reader there. Keep BSD API documentation, as
42846         that is not readily available elsewhere.
42848 2010-09-07  Eric Blake  <eblake@redhat.com>
42850         getopt: handle POSIXLY_CORRECT set but not exported
42851         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Restore pre-existing
42852         export state of POSIXLY_CORRECT, due to bash set -o posix.
42853         Reported by Dustin J. Mitchell.
42855 2010-09-05  Bruno Haible  <bruno@clisp.org>
42857         gnulib-tool: Highlight the changed options.
42858         * gnulib-tool (func_usage): Display the --import, --add-import,
42859         --remove-import explanations in bold font.
42861 2010-09-06  Karl Berry  <karl@gnu.org>
42863         * doc/gnulib-tool.texi (Modified imports): doc tweaks.
42865 2010-09-05  Bruno Haible  <bruno@clisp.org>
42867         uniwidth/width: Update comment.
42868         * lib/uniwidth/width.c (uc_width): Update comment for Unicode >= 3.1.
42869         Reported by Emanuele Giaquinta <emanuele.giaquinta@gmail.com>.
42871 2010-09-05  Bruno Haible  <bruno@clisp.org>
42873         isinf, isnan: Relax license.
42874         * modules/isinf (License): Change from GPL to LGPL, with consent from
42875         Ben Pfaff.
42876         * modules/isnan (License): Likewise.
42877         Requested by Ludovic Courtès.
42879 2010-09-04  Bruno Haible  <bruno@clisp.org>
42881         gnulib-tool: Help migration from --import to --add-import or --update.
42882         * gnulib-tool: Emit a verbose error message when --import is used
42883         without any module name.
42885 2010-09-04  Bruno Haible  <bruno@clisp.org>
42887         Update doc about gnulib-tool.
42888         * doc/gnulib-tool.texi (VCS Issues): Explain 'gnulib-tool --import' vs.
42889         'gnulib-tool --update' in more detail.
42890         Reported by Eric Blake.
42892 2010-09-04  Bruno Haible  <bruno@clisp.org>
42894         gnulib-tool: Change --import. New options --add/remove-import.
42895         * gnulib-tool: New options --add-import, --remove-import.
42896         (func_usage): Document them.
42897         (have_associative): Define always.
42898         (func_import): In import mode, don't merge the specified settings with
42899         the cached settings. Implement remove-import mode.
42900         * doc/gnulib-tool.texi (Modified imports): Mention the new options.
42901         Explain when to use them versus --import.
42902         (Simple update): Use --add-import instead of --import.
42903         * NEWS: Mention the change.
42905 2010-09-04  Bruno Haible  <bruno@clisp.org>
42907         * doc/gnulib-tool.texi (Initial import): Update paragraph about
42908         separate gnulib.mk.
42910 2010-09-04  Bruno Haible  <bruno@clisp.org>
42912         gnulib-tool: Don't talk about CVS any more.
42913         * gnulib-tool (func_usage, func_import): Write "version control"
42914         instead of CVS.
42916 2010-09-04  Jim Meyering  <meyering@redhat.com>
42918         maint.mk: avoid obscure sc_copyright_check failure in coreutils
42919         * top/maint.mk (v_etc_file): Prepend $(gnulib_dir)/, to avoid
42920         false positives (whose names may be ill-chosen) when searching
42921         non-VC'd files.  Otherwise, a file named "a b/lib/version-etc.c"
42922         would cause a false-positive.
42924         avoid coreutils "make distcheck" failure
42925         Coreutils tests with an absolute build directory name that contains
42926         a space.  Not quoting this directory name caused a failure.
42927         * tests/test-vc-list-files-git.sh: Quote PATH dir name.
42928         * tests/test-vc-list-files-cvs.sh: Likewise.
42930 2010-09-04  Bruno Haible  <bruno@clisp.org>
42932         gnulib-tool: Avoid error when run in a package without Makefile.am.
42933         * gnulib-tool: When collecting the m4dirs in a package that does not
42934         have a Makefile.am, eliminate those directories that contain no
42935         gnulib-cache.m4. Fix expression that counts these directories.
42937 2010-09-04  Bruno Haible  <bruno@clisp.org>
42939         update-copyright test: Improve output when perl is missing or too old.
42940         * tests/test-update-copyright.sh: Move test of Perl version down after
42941         the test whether Perl exists. Provide an explanation relating Perl's
42942         error message to Automake's SKIP: message.
42944 2010-09-04  Bruno Haible  <bruno@clisp.org>
42946         Don't augment PATH in TESTS_ENVIRONMENT.
42947         * modules/update-copyright-tests (Makefile.am): In TESTS_ENVIRONMENT,
42948         set abs_aux_dir instead of augmenting PATH.
42949         * modules/vc-list-files-tests (Makefile.am): Likewise.
42950         * tests/test-update-copyright.sh: Augment PATH here.
42951         * tests/test-vc-list-files-cvs.sh: Augment PATH here, through
42952         path_prepend_.
42953         * tests/test-vc-list-files-git.sh: Likewise.
42955 2010-09-04  Jim Meyering  <meyering@redhat.com>
42957         tests: prohibit augmenting PATH via TESTS_ENVIRONMENT
42958         * Makefile (sc_prohibit_augmenting_PATH_via_TESTS_ENVIRONMENT): New rule.
42960 2010-09-04  Bruno Haible  <bruno@clisp.org>
42962         strdup: Fix compilation error in C++ mode.
42963         * lib/string.in.h (strdup): In C++ mode with GNULIB_NAMESPACE, undefine
42964         the macro.
42966 2010-09-04  Bruno Haible  <bruno@clisp.org>
42968         dirfd: Fix compilation error in C++ mode on MacOS X, *BSD, IRIX.
42969         * lib/dirent.in.h (dirfd): In C++ mode with GNULIB_NAMESPACE, turn the
42970         macro into a function.
42971         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
42973 2010-09-04  Bruno Haible  <bruno@clisp.org>
42975         Set PATH_SEPARATOR the same way autoconf does.
42976         * build-aux/relocatable.sh.in (func_find_curr_installdir): Determine
42977         the value of PATH_SEPARATOR the same way autoconf-generated configure
42978         scripts do.
42979         * m4/lib-ld.m4 (AC_LIB_PROG_LD): Likewise.
42980         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
42982 2010-09-04  Stefano Lattarini  <stefano.lattarini@gmail.com>  (tiny change)
42984         Set PATH_SEPARATOR the same way autoconf does.
42985         * gnulib-tool (func_gnulib_dir): Determine the value of PATH_SEPARATOR
42986         the same way autoconf-generated configure scripts do.
42987         * posix-modules: Likewise.
42989 2010-09-02  Paul Eggert  <eggert@cs.ucla.edu>
42991         hash: fix safe_hasher const typo
42992         * lib/hash.c (safe_hasher): Result is pointer, not pointer to
42993         const; otherwise, there is a type error later.
42995 2010-09-02  Jim Meyering  <meyering@redhat.com>
42997         test-update-copyright.sh: require perl 5.8.0
42998         * tests/test-update-copyright.sh: Require 5.8.0,
42999         which Tom G. Christensen has confirmed is adequate,
43000         while 5.6.1 is not.
43002 2010-09-02  Eric Blake  <eblake@redhat.com>
43004         tests: init.sh improvements for re-exec'ing with zsh
43005         * tests/init.sh: Borrow autoconf POSIX-mode sanitization.  Pass
43006         -vx through shell re-exec.
43007         Reported by Tom G. Christensen.
43009         wctype: fix typo in previous commit
43010         * m4/wctype_h.m4 (gl_WCTYPE_H): Fix spelling.
43011         Reported by Ludovic Courtès.
43013 2010-09-02  Jim Meyering  <meyering@redhat.com>
43015         test-update-copyright.sh: skip test if Perl is too old
43016         * tests/test-update-copyright.sh: Exit 77 if Perl is too old.
43017         Reported by Tom G. Christensen.
43019 2010-09-02  Bruno Haible  <bruno@clisp.org>
43021         wctype: Avoid compilation error on IRIX 6.5.30.
43022         * lib/wctype.in.h (iswblank): Declare with a replacement if
43023         REPLACE_ISWBLANK is set.
43024         * m4/wctype_h.m4 (gl_WCTYPE_H): Check also whether iswblank is
43025         declared. Set REPLACE_ISWBLANK.
43026         * modules/wctype (Makefile.am): Substitute REPLACE_ISWBLANK.
43027         * doc/posix-functions/iswblank.texi: Mention the IRIX 6.5.30 problem.
43028         * doc/posix-headers/wctype.texi: Likewise.
43029         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
43031 2010-09-01  Bruno Haible  <bruno@clisp.org>
43033         New module 'socketlib'.
43034         * modules/socketlib: New file.
43035         * m4/socketlib.m4: New file, extracted from m4/sockets.m4.
43036         * m4/sockets.m4 (gl_SOCKETS): Require gl_SOCKETLIB.
43037         * modules/sockets (Depends-on): Add socketlib.
43038         Suggested by Sam Steingold <sds@gnu.org>.
43040 2010-09-01  Paul Eggert  <eggert@cs.ucla.edu>
43042         fcntl-h, etc.: prefer O_SEARCH to O_RDONLY when applicable
43044         POSIX 2008 specifies a new 'open' flag O_SEARCH, which can be used
43045         when one needs search access to a directory but not read access.
43046         On systems where it is available, it works in some cases where
43047         O_RDONLY does not, namely on directories that are searchable but
43048         not readable, and which need only to be searchable.  If O_SEARCH
43049         is not available, fall back to the traditional method of using
43050         O_RDONLY.
43052         * lib/fcntl.in.h (O_SEARCH): #define to O_RDONLY if not defined.
43053         * lib/chdir-long.c (cdb_advance_fd): Use O_SEARCH, not O_RDONLY,
43054         when opening a directory that needs only to be searchable.
43055         * lib/chdir-safer.c (chdir_no_follow): Likewise.
43056         * lib/fts.c (diropen, fts_open, fd_ring_check): Likewise.
43057         * lib/openat-proc.c (openat_proc_name): Likewise.
43058         * lib/openat.c (openat_needs_fchdir): Likewise.
43059         * lib/save-cwd.c (save_cwd): Likewise.
43060         * lib/savewd.c (savewd_save, savewd_chdir): Likewise.
43062 2010-08-28  Bruno Haible  <bruno@clisp.org>
43064         New module 'host-cpu-c-abi'.
43065         * modules/host-cpu-c-abi: New file.
43066         * m4/host-cpu-c-abi.m4: New file, based on part of
43067         clisp/src/m4/general.m4.
43068         Requested by Sam Steingold <sds@gnu.org>.
43070 2010-08-31  Eric Blake  <eblake@redhat.com>
43071         and Jim Meyering  <meyering@redhat.com>
43073         hash: factor, and guard against misbehaving hasher function
43074         * lib/hash.c (safe_hasher): New function, to encapsulate the checking
43075         of table->hasher's return value.  Also protect against a hash value
43076         so large that adding it to table->bucket results in a NULL pointer.
43077         (hash_lookup, hash_get_next, hash_find_entry, transfer_entries):
43078         Use it in place of open-coded check-and-abort.
43080 2010-08-30  Bruno Haible  <bruno@clisp.org>
43082         hash: silence spurious clang warning
43083         * lib/hash.c (hash_get_next): Remove unnecessary test against NULL.
43084         Reported by Eric Blake.
43086 2010-08-30  Eric Blake  <eblake@redhat.com>
43088         strstr, memmem, strcasestr: avoid leaked shell message
43089         * m4/strstr.m4 (gl_FUNC_STRSTR): Avoid "Alarm clock" message from
43090         FreeBSD.
43091         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
43092         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
43094         tests: silence clang warning
43095         * tests/test-malloca.c (do_allocation): Avoid dead store.
43097 2010-08-29  Bruno Haible  <bruno@clisp.org>
43099         gettext: Fix recent mistake.
43100         * m4/intl.m4 (gt_CHECK_DECL): Fix typo introduced on 2010-08-26.
43102 2010-08-29  Bruno Haible  <bruno@clisp.org>
43104         selinux-h: Offer a --without-selinux option.
43105         * m4/selinux-selinux-h.m4 (gl_HEADERS_SELINUX_SELINUX_H): If
43106         --without-selinux was specified, skip all tests and define
43107         HAVE_SELINUX_SELINUX_H to 0.
43108         (gl_LIBSELINUX): Offer --without-selinux option. If it is specified,
43109         set LIB_SELINUX to empty.
43110         * m4/selinux-context-h.m4 (gl_HEADERS_SELINUX_CONTEXT_H): Require
43111         gl_LIBSELINUX. If --without-selinux was specified, replace
43112         selinux/context.h.
43113         Reported by Johan Hattne <johan.hattne@utsouthwestern.edu>.
43115 2010-08-29  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
43116             Bruno Haible  <bruno@clisp.org>
43118         Make the module 'realloc-gnu' work again on AIX and OSF/1.
43119         * m4/realloc.m4 (gl_FUNC_REALLOC_GNU): Define HAVE_REALLOC_GNU instead
43120         of HAVE_REALLOC.
43121         * lib/realloc.c (NEED_REALLOC_GNU): Enable behaviour also when
43122         GNULIB_REALLOC_GNU && !HAVE_REALLOC_GNU.
43123         (SYSTEM_MALLOC_GLIBC_COMPATIBLE): Adjust definition.
43124         * modules/realloc-gnu (configure.ac): Use gl_MODULE_INDICATOR.
43126 2010-08-29  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
43127             Bruno Haible  <bruno@clisp.org>
43129         Make the module 'calloc-gnu' work again on AIX and OSF/1.
43130         * m4/calloc.m4 (gl_FUNC_CALLOC_GNU): Define HAVE_CALLOC_GNU instead of
43131         HAVE_CALLOC.
43132         * lib/xmalloc.c: Update accordingly.
43133         * lib/calloc.c (NEED_CALLOC_GNU): Enable also when
43134         GNULIB_CALLOC_GNU && !HAVE_CALLOC_GNU.
43135         * modules/calloc-gnu (configure.ac): Invoke gl_MODULE_INDICATOR.
43137 2010-08-29  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
43138             Bruno Haible  <bruno@clisp.org>
43140         Make the module 'malloc-gnu' work again on AIX and OSF/1.
43141         * m4/malloc.m4 (gl_FUNC_MALLOC_GNU): Define HAVE_MALLOC_GNU instead of
43142         HAVE_MALLOC.
43143         * lib/malloc.c (NEED_MALLOC_GNU): Enable behaviour also when
43144         GNULIB_MALLOC_GNU && !HAVE_MALLOC_GNU.
43145         * modules/malloc-gnu (configure.ac): Use gl_MODULE_INDICATOR.
43147 2010-08-29  Bruno Haible  <bruno@clisp.org>
43149         Update modules list.
43150         * MODULES.html.sh (Memory management functions <stdlib.h>): Add
43151         malloc-gnu, calloc-gnu, realloc-gnu. Remove malloc, calloc, realloc.
43152         (String handling <string.h>): Add astrxfrm.
43153         (File system functions): Add readlinkat.
43155 2010-08-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
43157         Tests for module 'realloc-gnu'.
43158         * modules/realloc-gnu-tests: New file.
43159         * tests/test-realloc-gnu.c: New file.
43161         Tests for module 'calloc-gnu'.
43162         * modules/calloc-gnu-tests: New file.
43163         * tests/test-calloc-gnu.c: New file.
43165         Tests for module 'malloc-gnu'.
43166         * modules/malloc-gnu-tests: New file.
43167         * tests/test-malloc-gnu.c: New file.
43169 2010-08-28  Bruno Haible  <bruno@clisp.org>
43171         Rename module 'realloc' -> 'realloc-gnu'.
43172         * modules/realloc-gnu: New file, copied from modules/realloc.
43173         * modules/realloc: Convert to a redirection to 'realloc-gnu'. Mark as
43174         obsolete.
43175         * modules/mgetgroups (Depends-on): Update.
43176         * doc/posix-functions/realloc.texi: Update.
43177         * NEWS: Mention the change.
43179         Rename module 'calloc' -> 'calloc-gnu'.
43180         * modules/calloc-gnu: New file, copied from modules/calloc.
43181         * modules/calloc: Convert to a redirection to 'calloc-gnu'. Mark as
43182         obsolete.
43183         * doc/posix-functions/calloc.texi: Update.
43184         * NEWS: Mention the change.
43186         Rename module 'malloc' -> 'malloc-gnu'.
43187         * modules/malloc-gnu: New file, copied from modules/malloc.
43188         * modules/malloc: Convert to a redirection to 'malloc-gnu'. Mark as
43189         obsolete.
43190         * modules/argp (Depends-on): Update.
43191         * modules/regex (Depends-on): Update.
43192         * doc/posix-functions/malloc.texi: Update.
43193         * NEWS: Mention the change.
43195 2010-08-28  Eric Blake  <eblake@redhat.com>
43197         pread, pwrite: add missing dependency
43198         * modules/pread (Depends-on): Add extensions.
43199         * modules/pwrite (Depends-on): Likewise.
43201 2010-08-28  Bruno Haible  <bruno@clisp.org>
43203         unistr/u*-strchr: Fix tests dependencies.
43204         * modules/unistr/u8-strchr-tests (Depends-on): Add unistr/u32-to-u8.
43205         * modules/unistr/u16-strchr-tests (Depends-on): Add unistr/u32-to-u16.
43206         Reported by Ian Beckwith <ianb@erislabs.net>.
43208 2010-08-28  Bruno Haible  <bruno@clisp.org>
43210         read-file: Don't occupy too much unused memory.
43211         * lib/read-file.c (fread_file): Shrink the buffer at the end.
43213 2010-08-28  Giuseppe Scrivano  <gscrivano@gnu.org>
43214             Eric Blake  <eblake@redhat.com>
43215             Bruno Haible  <bruno@clisp.org>
43217         read-file: Avoid memory reallocations with regular files.
43218         * lib/read-file.c: Include <sys/stat.h>, <stdio.h>, <stdint.h>.
43219         (fread_file): With regular files, use the remaining length as the
43220         initial buffer size.  Check against overflow.
43221         * modules/read-file (Depends-on): Add ftello, malloc-posix, stdint,
43222         sys_stat.
43224 2010-08-28  Bruno Haible  <bruno@clisp.org>
43226         ftello: Relax license.
43227         * modules/ftello (License): Relax to LGPLv2+.
43228         Reported by Eric Blake.
43230 2010-08-28  Bruno Haible  <bruno@clisp.org>
43232         Avoid relocwrapper link errors due to gnulib replacement functions.
43233         * lib/canonicalize-lgpl.c [IN_RELOCWRAPPER]: Use the system's getcwd
43234         function.
43235         Reported by Ben Pfaff <blp@cs.stanford.edu>.
43237 2010-08-28  Bruno Haible  <bruno@clisp.org>
43239         Prefer using AC_DEFUN_ONCE over AC_DEFUN in projects with gnulib.
43240         * m4/iconv.m4 (gl_iconv_AC_DEFUN): Use AC_DEFUN_ONCE if gl_00GNULIB is
43241         defined.
43242         * m4/libunistring.m4 (gl_libunistring_AC_DEFUN): Likewise.
43243         Suggested by Eric Blake.
43245 2010-08-28  Bruno Haible  <bruno@clisp.org>
43247         sys_socket, netdb: Ensure socklen_t gets defined.
43248         * modules/sys_socket (Depends-on): Add socklen.
43249         * modules/netdb (Depends-on): Likewise.
43250         * modules/getaddrinfo (Depends-on): Remove socklen.
43251         * modules/getsockopt (Depends-on): Likewise.
43252         * modules/setsockopt (Depends-on): Likewise.
43253         * tests/test-sys_socket.c: Check that socklen_t is defined.
43254         * tests/test-netdb.c: Likewise.
43255         * m4/socklen.m4: Update comments.
43256         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
43258 2010-08-27  Eric Blake  <eblake@redhat.com>
43260         login_tty: add missing dependency
43261         * modules/login_tty (Depends-on): Add pty.
43263 2010-08-26  Eric Blake  <eblake@redhat.com>
43265         lib-symbol-versions: fix m4 quoting
43266         * m4/ld-version-script.m4 (gl_LD_VERSION_SCRIPT): Use correct
43267         format for AC_LINK_IFELSE.
43269         glob: fix compile test
43270         * m4/glob.m4 (gl_GLOB): Use correct format for AC_COMPILE_IFELSE.
43272         btowc: fix missing file
43273         * modules/btowc (Files): Also ship locale-fr.m4.
43275         lseek: fix link test
43276         * m4/lseek.m4 (gl_FUNC_LSEEK): Use correct format for
43277         AC_LINK_IFELSE.
43279         include_next: silence autoconf 2.68 warning
43280         * m4/include_next.m4 (gl_INCLUDE_NEXT): Mark this use of
43281         AC_COMPILE_IFELSE as special.
43282         (AC_LANG_DEFINES_PROVIDED): Provide dummy implementation for
43283         autoconf < 2.68.
43285         acl: fix compilation test
43286         * m4/acl.m4 (gl_FUNC_ALL): Use correct format for
43287         AC_COMPILE_IFELSE.
43289 2010-08-26  Bruno Haible  <bruno@clisp.org>
43291         Modernize AC_TRY_RUN invocations.
43292         * m4/btowc.m4 (gl_FUNC_BTOWC): Use AC_RUN_IFELSE instead of AC_TRY_RUN.
43293         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Likewise.
43294         * m4/exponentd.m4 (gl_DOUBLE_EXPONENT_LOCATION): Likewise.
43295         * m4/exponentf.m4 (gl_FLOAT_EXPONENT_LOCATION): Likewise.
43296         * m4/exponentl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Likewise.
43297         * m4/fopen.m4 (gl_FUNC_FOPEN): Likewise.
43298         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Likewise.
43299         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Likewise.
43300         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
43301         * m4/iconv.m4 (AM_ICONV_LINK): Likewise.
43302         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Likewise.
43303         * m4/intdiv0.m4 (gt_INTDIV0): Likewise.
43304         * m4/isnanf.m4 (gl_ISNANF_WORKS): Likewise.
43305         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
43306         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): Likewise.
43307         * m4/mbrlen.m4 (gl_MBRLEN_INCOMPLETE_STATE, gl_MBRLEN_RETVAL,
43308         gl_MBRLEN_NUL_RETVAL): Likewise.
43309         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE, gl_MBRTOWC_SANITYCHECK,
43310         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL):
43311         Likewise.
43312         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
43313         * m4/open.m4 (gl_FUNC_OPEN): Likewise.
43314         * m4/printf.m4 (gl_PRINTF_SIZES_C99, gl_PRINTF_LONG_DOUBLE,
43315         gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE,
43316         gl_PRINTF_DIRECTIVE_A, gl_PRINTF_DIRECTIVE_F, gl_PRINTF_DIRECTIVE_N,
43317         gl_PRINTF_DIRECTIVE_LS, gl_PRINTF_POSITIONS, gl_PRINTF_FLAG_GROUPING,
43318         gl_PRINTF_FLAG_LEFTADJUST, gl_PRINTF_FLAG_ZERO, gl_PRINTF_PRECISION,
43319         gl_SNPRINTF_TRUNCATION_C99, gl_SNPRINTF_RETVAL_C99,
43320         gl_SNPRINTF_DIRECTIVE_N, gl_SNPRINTF_SIZE1, gl_VSNPRINTF_ZEROSIZE_C99):
43321         Likewise.
43322         * m4/printf-posix.m4 (gt_PRINTF_POSIX): Likewise.
43323         * m4/signbit.m4 (gl_SIGNBIT, gl_FLOATTYPE_SIGN_LOCATION): Likewise.
43324         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
43325         * m4/threadlib.m4 (gl_THREADLIB_BODY): Likewise.
43326         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
43327         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Likewise.
43328         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise.
43329         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_TERMINATION): Likewise.
43330         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
43331         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
43333 2010-08-26  Bruno Haible  <bruno@clisp.org>
43335         Modernize AC_TRY_LINK invocations.
43336         * m4/acosl.m4 (gl_FUNC_ACOSL): Use AC_LINK_IFELSE instead of
43337         AC_TRY_LINK.
43338         * m4/argp.m4 (gl_ARGP): Likewise.
43339         * m4/asinl.m4 (gl_FUNC_ASINL): Likewise.
43340         * m4/atanl.m4 (gl_FUNC_ATANL): Likewise.
43341         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Likewise.
43342         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
43343         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
43344         * m4/codeset.m4 (AM_LANGINFO_CODESET): Likewise.
43345         * m4/cosl.m4 (gl_FUNC_COSL): Likewise.
43346         * m4/expl.m4 (gl_FUNC_EXPL): Likewise.
43347         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
43348         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Likewise.
43349         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
43350         * m4/frexp.m4 (gl_FUNC_FREXP, gl_CHECK_FREXP_NO_LIBM): Likewise.
43351         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_CHECK_FREXPL_NO_LIBM): Likewise.
43352         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
43353         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
43354         * m4/hostent.m4 (gl_HOSTENT): Likewise.
43355         * m4/iconv.m4 (AM_ICONV_LINK): Likewise.
43356         * m4/intl.m4 (gt_INTL_SUBDIR_CORE): Likewise.
43357         * m4/intlmacosx.m4 (gt_INTL_MACOSX): Likewise.
43358         * m4/isnand.m4 (gl_HAVE_ISNAND_IN_LIBM, gl_HAVE_ISNAND_NO_LIBM):
43359         Likewise.
43360         * m4/isnanf.m4 (gl_HAVE_ISNANF_NO_LIBM, gl_HAVE_ISNANF_IN_LIBM):
43361         Likewise.
43362         * m4/isnanl.m4 (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM):
43363         Likewise.
43364         * m4/lcmessage.m4 (gt_LC_MESSAGES): Likewise.
43365         * m4/ldexpl.m4 (gl_FUNC_LDEXPL, gl_CHECK_LDEXPL_NO_LIBM): Likewise.
43366         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Likewise.
43367         * m4/logb.m4 (gl_FUNC_LOGB): Likewise.
43368         * m4/logl.m4 (gl_FUNC_LOGL): Likewise.
43369         * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Likewise.
43370         * m4/servent.m4 (gl_SERVENT): Likewise.
43371         * m4/signbit.m4 (gl_SIGNBIT): Likewise.
43372         * m4/sinl.m4 (gl_FUNC_SINL): Likewise.
43373         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Likewise.
43374         * m4/tanl.m4 (gl_FUNC_TANL): Likewise.
43375         * m4/threadlib.m4 (gl_THREADLIB_BODY): Likewise.
43376         * m4/trunc.m4 (gl_FUNC_TRUNC): Likewise.
43377         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
43378         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
43379         * modules/tsearch-tests (configure.ac): Likewise.
43381 2010-08-26  Bruno Haible  <bruno@clisp.org>
43383         Modernize AC_TRY_COMPILE invocations.
43384         * m4/environ.m4 (gt_CHECK_VAR_DECL): Use AC_COMPILE_IFELSE instead of
43385         AC_TRY_COMPILE.
43386         * m4/iconv.m4 (gl_iconv_AC_DEFUN): Likewise.
43387         * m4/intl.m4 (gt_CHECK_DECL): Likewise.
43388         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Likewise.
43389         * m4/intmax_t.m4 (gt_AC_TYPE_INTMAX_T): Likewise.
43390         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Likewise.
43391         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
43392         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
43393         * m4/lock.m4 (gl_LOCK): Likewise.
43394         * m4/malloc.m4 (gl_CHECK_MALLOC_POSIX): Likewise.
43395         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
43396         * m4/minmax.m4 (gl_MINMAX_IN_HEADER): Likewise.
43397         * m4/setenv.m4 (gl_FUNC_UNSETENV): Likewise.
43398         * m4/size_max.m4 (gl_SIZE_MAX): Likewise.
43399         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Likewise.
43400         * m4/stdarg.m4 (gl_STDARG_H): Likewise.
43401         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Likewise.
43402         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Likewise.
43403         * m4/visibility.m4 (gl_VISIBILITY): Likewise.
43404         * m4/wchar_t.m4 (gt_TYPE_WCHAR_T): Likewise.
43405         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
43406         * m4/libunistring.m4 (gl_LIBUNISTRING_CORE): Likewise. Remove
43407         extraneous semicolon.
43409 2010-08-26  Jim Meyering  <meyering@redhat.com>
43411         stat-time: relax license LGPL
43412         * modules/stat-time (License): Change from GPL to LGPL,
43413         with consent from all contributors, for use in libguile.
43414         Requested by Ludovic Courtès.
43416 2010-08-26  Erik Faye-Lund  <kusmabite@gmail.com>
43418         poll: return immediately on POLLHUP.
43419         * lib/poll.c (poll): Always set timeout before wait_timeout is
43420         computed.
43422 2010-08-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
43424         Fix test-unlinkat, test-rmdir failure on AIX 5.3.
43425         * tests/test-rmdir.h (test_rmdir_func): Also accept EEXIST for
43426         rmdir ("dir/.//"), unlinkat.
43428 2010-08-24  Paul Eggert  <eggert@cs.ucla.edu>
43430         stdbool: avoid spurious failure with modern xlc
43431         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Resync with autoconf.
43433 2010-08-24  Bruno Haible  <bruno@clisp.org>
43435         getloadavg: simplify code
43436         * m4/getloadavg.m4 (gl_GETLOADAVG): Remove useless test of
43437         gl_have_func. Update comments.
43439 2010-08-24  Eric Blake  <eblake@redhat.com>
43441         getloadavg: don't define SVR4 on cygwin
43442         * m4/getloadavg.m4 (gl_GETLOADAVG): Sync with autoconf fix, to
43443         only define SVR4 when -lkvm is required.
43444         Reported by Yaakov Selkowitz.
43446 2010-08-24  Bruno Haible  <bruno@clisp.org>
43448         priv-set: fix comment
43449         * lib/priv-set.c (priv_set_restore): Fix typo in comment.
43451 2010-08-23  Paul Eggert  <eggert@cs.ucla.edu>
43453         priv-set: fix comments
43454         * lib/priv-set.c (priv_set_remove, priv_set_restore): Fix comments
43455         to match code, as suggested by David Bartley in:
43456         http://lists.gnu.org/archive/html/bug-tar/2010-08/msg00018.html
43458 2010-08-23  Eric Blake  <eblake@redhat.com>
43460         stdbool: avoid rejecting clang
43461         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Resync with autoconf.
43462         * tests/test-stdbool.c: Enable more tests if using the system
43463         <stdbool.h> instead of the gnulib replacement.
43464         (main): Move xlc bug test to a runtime test for all compilers.
43465         Reported by Anders Kaseorg.
43467         argz: fix shell quoting issue
43468         * m4/argz.m4 (gl_FUNC_ARGZ): Allow for spaces in argument.
43469         Reported by Charles Wilson.
43471 2010-08-22  Paolo Bonzini  <bonzini@gnu.org>
43472             Erik Faye-Lund <kusmabite@gmail.com>
43474         poll, select: handle ERROR_BROKEN_PIPE.
43475         * lib/poll.c (win32_compute_revents): Return POLLHUP when
43476         PeekNamedPipe fails with ERROR_BROKEN_PIPE.
43477         * lib/select.c (win32_compute_revents): Do not mark a pipe
43478         as writeable if PeekNamedPipe fails with ERROR_BROKEN_PIPE.
43480 2010-08-22  Giuseppe Scrivano  <gscrivano@gnu.org>
43482         fts: allow compilation with C++
43483         * lib/fts_.h: Specify extern "C" linkage with C++.
43485 2010-08-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
43487         Fix gnulib-tool sed script de-commentation for AIX sed.
43488         * gnulib-tool (sed_comments): Try indented comments, for AIX 5.3
43489         sed.
43491 2010-08-17  Eric Blake  <eblake@redhat.com>
43493         test-stddef: test for (some) offsetof bugs
43494         * tests/test-stddef.c: Enhance test to ensure correct type of
43495         offsetof.
43496         * doc/posix-headers/stddef.texi (stddef.h): Document a Solaris bug
43497         that we are not fixing at this time.
43499 2010-08-15  Bruno Haible  <bruno@clisp.org>
43501         stpncpy: Allow stpncpy to be defined as a macro.
43502         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Don't attempt to redeclare stpncpy
43503         if it's already correctly declared.
43504         * lib/string.in.h (stpncpy): Undefine before redefining.
43505         Reported by Jeremy Huddleston <jeremyhu@macports.org>.
43507 2010-08-14  Bruno Haible  <bruno@clisp.org>
43509         Rename module 'memxfrm' to 'amemxfrm'.
43510         * lib/amemxfrm.h: Renamed from lib/memxfrm.h.
43511         (amemxfrm): Renamed from memxfrm.
43512         * lib/amemxfrm.c: Renamed from lib/memxfrm.h. Include amemxfrm.h.
43513         (amemxfrm): Renamed from memxfrm.
43514         * modules/amemxfrm: Renamed from modules/memxfrm. Update.
43515         * NEWS: Mention the change.
43516         * MODULES.html.sh (String handling <string.h>): Update.
43517         * lib/unicase/u-casexfrm.h: Invoke amemxfrm instead of memxfrm.
43518         * lib/unicase/u8-casexfrm.c: Include amemxfrm.h instead of memxfrm.h.
43519         * lib/unicase/u16-casexfrm.c: Likewise.
43520         * lib/unicase/u32-casexfrm.c: Likewise.
43521         * lib/uninorm/u-normxfrm.h: Invoke amemxfrm instead of memxfrm.
43522         * lib/uninorm/u8-normxfrm.c: Include amemxfrm.h instead of memxfrm.h.
43523         * lib/uninorm/u16-normxfrm.c: Likewise.
43524         * lib/uninorm/u32-normxfrm.c: Likewise.
43525         * modules/unicase/u8-casexfrm (Depends-on): Add amemxfrm, remove
43526         memxfrm.
43527         * modules/unicase/u16-casexfrm (Depends-on): Likewise.
43528         * modules/unicase/u32-casexfrm (Depends-on): Likewise.
43529         * modules/uninorm/u8-normxfrm (Depends-on): Likewise.
43530         * modules/uninorm/u16-normxfrm (Depends-on): Likewise.
43531         * modules/uninorm/u32-normxfrm (Depends-on): Likewise.
43532         Suggested by Paul Eggert.
43534 2010-08-14  Bruno Haible  <bruno@clisp.org>
43536         Tests for module 'astrxfrm'.
43537         * modules/astrxfrm-tests: New file.
43538         * tests/test-astrxfrm.c: New file.
43540         New module 'astrxfrm'.
43541         * lib/astrxfrm.h: New file.
43542         * lib/astrxfrm.c: New file, based on lib/memxfrm.c.
43543         * modules/astrxfrm: New file.
43545 2010-08-14  Reuben Thomas  <rrt@sc3d.org>
43547         regex: Tweak doc.
43548         * doc/regex.texi (Overview): Don't mention regex.c.
43549         (GNU Regular Expression Compiling): Likewise.
43550         (Match-end-of-line Operator): Mention 'not_eol'.
43552 2010-08-14  Brian Gough  <bjg@gnu.org>
43553             Bruno Haible  <bruno@clisp.org>
43555         git-merge-changelog: add doc relating to use with bzr and hg.
43556         * lib/git-merge-changelog.c: Add comments regarding bzr, hg, diff3.
43558 2010-08-14  Matthias Bolte  <matthias.bolte@googlemail.com>
43560         pthread: fix pthread.h creation for srcdir != builddir
43561         * modules/pthread (Makefile.am): Fix the rule to work also in a
43562         non-srcdir build.
43564 2010-08-13  Karl Berry  <karl@gnu.org>
43566         * doc/regex.texi (Predefined Syntaxes): @smallexample.
43567         * doc/posix-*/*: force line break before @url of POSIX
43568         specifications.
43569         Suggested by Werner Lemberg.
43571 2010-08-10  Paul Eggert  <eggert@cs.ucla.edu>
43573         strtod: fix const diagnostic
43574         * lib/strtod.c (strtod): Don't assign const char * to char *,
43575         as this elicits a warning from GCC when warnings are enabled.
43577 2010-08-10  Pádraig Brady  <P@draigbrady.com>
43578         and Eric Blake  <eblake@redhat.com>
43580         copy-acl: ignore ENOTSUP on HP-UX
43581         * lib/acl-internal.h (ACL_NOT_WELL_SUPPORTED): Move definition up,
43582         so that it is available for HP-UX.
43583         * lib/copy-acl.c (qcopy_acl): Use it.
43584         Reported by Patrick M. Callahan.
43586 2010-08-10  Eric Blake  <eblake@redhat.com>
43588         open, chown: relax license
43589         * modules/open (License): Change to LGPLv2+, with consent by all
43590         authors, for use in augeas.
43591         * modules/chown (License): Likewise.
43592         * modules/lchown (Likewise): Likewise.
43593         Requested by Adam Stokes.
43595 2010-08-09  Karl Berry  <karl@gnu.org>
43597         * build-aux/ar-lib: new file, import from Automake.
43598         * config/srclist.txt: autocheck for updates.
43600 2010-08-09  Eric Blake  <eblake@redhat.com>
43602         readlinkat: adjust client modules
43603         * modules/areadlinkat (Depends-on): Use readlinkat, not
43604         symlinkat.
43605         * modules/areadlinkat-with-size (Depends-on): Likewise.
43607         mknod: be more vocal about danger of running tests as root
43608         * m4/mknod.m4 (gl_FUNC_MKNOD): Make it harder to run configure as
43609         root, since that is just asking for problems.
43610         Suggested by Bruno Haible, based on a report by Rainer Tammer.
43612         readlinkat: split into its own module
43613         * modules/symlinkat: Split readlinkat...
43614         * modules/readlinkat: ...into separate module.
43615         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Move readlinkat check...
43616         * m4/readlinkat.m4 (gl_FUNC_READLINAT): ...to new file.
43617         * lib/symlinkat.c (readlinkat): Move...
43618         * lib/readlinkat.c: ...into new file.
43619         * modules/symlinkat-tests: Split readlinkat test...
43620         * modules/readlinkat-tests: ...into separate module.
43621         * tests/test-symlinkat.c: Split...
43622         * tests/test-readlinkat.c: ...into new file.
43623         * NEWS: Document the split.
43624         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
43625         * lib/unistd.in.h (readlinkat): Likewise.
43626         Suggested by Bruno Haible.
43628 2010-08-08  Bruno Haible  <bruno@clisp.org>
43630         memxfrm: Speed up.
43631         * lib/memxfrm.c (memxfrm): Allocate enough memory ahead of time, so
43632         that usually only one call to strxfrm is necessary for each string
43633         part.
43634         Reported by Paul Eggert <eggert@cs.ucla.edu>.
43636 2010-08-07  Karl Berry  <karl@gnu.org>
43638         * doc/posix-headers/limits.texi,
43639         * doc/posix-functions/malloc.texi,
43640         * doc/posix-functions/strsignal.texi: missing @item.
43641         * doc/ld-version-script.texi: spurious leading i.
43642         * doc/regex.texi (Interval Operators): no commas inside @var.
43644 2010-08-01  Bruno Haible  <bruno@clisp.org>
43646         Integrate the regex documentation.
43647         * doc/gnulib.texi: Define 'cn' index.
43648         (Regular expressions): New a chapter that includes regex.texi and
43649         regexprops-generic.texi.
43650         * doc/regex.texi: Remove boilerplate stuff. Use simplified @node
43651         syntax.
43653         Whitespace cleanup.
43654         * doc/regex.texi: Remove trailing spaces.
43656         Add regex documentation.
43657         * doc/regex.texi: New file. Taken from regex-0.12/doc/regex.texi in
43658         http://ftp.gnu.org/old-gnu/regex/regex-0.12.tar.gz.
43659         Written by Kathy A. Hargreaves and Karl Berry.
43661 2010-08-01  Bruno Haible  <bruno@clisp.org>
43663         link: Update documentation.
43664         * doc/posix-functions/link.texi: Update regarding Solaris.
43666 2010-07-31  Bruno Haible  <bruno@clisp.org>
43668         Update modules list.
43669         * MODULES.html.sh (Sorting functions <stdlib.h>): Add array-mergesort.
43670         (String handling <string.h>): Add memcmp2, memxfrm.
43671         (Container data structures): Add xlist, xsublist, xoset.
43672         (Core language properties): Add alignof, unused-parameter.
43673         (Process control, Numeric conversion functions <stdlib.h>): Renamed
43674         from Numeric conversion functions <stdlib.h>. Add _Exit, atoll.
43675         (Unibyte characters <ctype.h>): New section.
43676         (String handling <string.h>): New section.
43677         (Mathematics <math.h>): Add acos, acosl, asin, asinl, atan, atan2,
43678         atanl, cbrt, copysign, cos, cosh, cosl, erf, erfc, exp, expl, fabs,
43679         fmod, hypot, j0, j1, jn, ldexp, lgamma, log, log10, log1p, logb, logl,
43680         modf, nextafter, pow, remainder, rint, sin, sinh, sinl, sqrt, sqrtl,
43681         tan, tanh, tanl, y0, y1, yn.
43682         (Support for systems lacking POSIX:2008): Add alphasort, dirent,
43683         dprintf, dprintf-posix, duplocale, fcntl, getlogin, getopt-posix,
43684         grantpt, iconv-h, ioctl, isblank, langinfo, nl_langinfo, pread,
43685         ptsname, pwrite, scandir, servent, sys_utsname, ttyname_r, uname,
43686         unlockpt, vdprintf, vdprintf-posix.
43687         (Enhancements for POSIX:2008 functions): Add getopt-gnu. Remove getopt.
43688         (File system functions): Add concat-filename, sys_file, sys_ioctl,
43689         xconcat-filename.
43690         (File descriptor based Input/Output): Add dup3, fd-safer-flag,
43691         getdtablesize, pipe2, pipe2-safer.
43692         (Security): New section.
43693         (Networking functions): Add accept4.
43694         (Signal handling): Add sigpipe.
43695         (Internationalization functions): Add xstriconveh, mbmemcasecmp,
43696         mbmemcasecoll.
43697         (Unicode string functions): Add libunistring-optional, unistr/u*-cmp2,
43698         unistr/u*-strcoll, uniwbrk/*, uninorm/*, unicase/*.
43699         (Executing programs): Add findprog-lgpl, pipe-filter-gi,
43700         pipe-filter-ii.
43701         (Misc): Add argp-version-etc, login_tty, parse-duration.
43703 2010-07-31  Bruno Haible  <bruno@clisp.org>
43705         Improve doc in MODULES.html.
43706         * modules/linkat (Description): Add the word "function".
43707         * modules/mkfifo (Description): Likewise.
43708         * modules/mknod (Description): Likewise.
43709         * modules/remove (Description): Likewise.
43710         * modules/renameat (Description): Likewise.
43711         * modules/stat (Description): Likewise.
43712         * modules/symlink (Description): Likewise.
43713         * modules/unlink (Description): Likewise.
43715 2010-07-31  Bruno Haible  <bruno@clisp.org>
43717         ansi-c++-opt: Provide option --enable-c++/--disable-c++ when possible.
43718         * m4/ansi-c++.m4 (gl_CXX_CHOICE): In Autoconf 2.66 or newer, provide
43719         option --enable/disable-c++ instead of --enable/disable-cxx.
43720         * NEWS: Mention the change.
43722 2010-07-31  Bruno Haible  <bruno@clisp.org>
43724         readlink, areadlink: Relax test a bit.
43725         * tests/test-readlink.h (test_readlink): Accept EINVAL as an
43726         alternative to ENOTDIR.
43727         * tests/test-areadlink.h (test_areadlink): Likewise.
43728         Reported by Rainer Tammer.
43730 2010-07-31  Bruno Haible  <bruno@clisp.org>
43732         unistr/u8-strstr, unistr/u16-strstr: Optimize the one-character case.
43733         * lib/unistr/u-strstr.h (FUNC): When the needle contains only one
43734         character, perform the search using U_STRCHR.
43735         * lib/unistr/u8-strstr.c (U_STRMBTOUC): New macro.
43736         * lib/unistr/u16-strstr.c (U_STRMBTOUC): Likewise.
43737         * modules/unistr/u8-strstr (Depends-on): Add unistr/u8-strmbtouc.
43738         * modules/unistr/u16-strstr (Depends-on): Add unistr/u16-strmbtouc.
43739         Suggested by Paolo Bonzini.
43741 2010-07-31  Bruno Haible  <bruno@clisp.org>
43743         unistr/u*-strstr: Fix dependencies.
43744         * modules/unistr/u8-strstr (Depends-on): Add unistr/u8-strchr.
43745         * modules/unistr/u16-strstr (Depends-on): Add unistr/u16-strchr.
43746         * modules/unistr/u32-strstr (Depends-on): Add unistr/u32-strchr.
43748 2010-07-31  Bruno Haible  <bruno@clisp.org>
43750         unistr/u8-chr, unistr/u8-strchr: Optimize and add comments.
43751         * lib/unistr/u8-chr.c (u8_chr): Add comments. Remove a useless test at
43752         the beginning of the loop.
43753         * lib/unistr/u8-strchr.c (u8_strchr): Add comments. Don't fall through
43754         cases in 'switch' statement.
43756         unistr/u8-strchr: Fix several bugs.
43757         * lib/unistr/u8-strchr.c (u8_strchr): Don't search beyond the end of
43758         the string. When not found, return NULL, not a pointer near the end.
43760         More tests for unistr/u8-strchr.
43761         * tests/unistr/test-strchr.h (test_strchr): Renamed from main. Check
43762         that the function does not read past the first occurrence of the byte
43763         being searched.
43764         * tests/unistr/test-u8-strchr.c (main): New function, with more tests.
43765         * tests/unistr/test-u16-strchr.c (main): New function.
43766         * tests/unistr/test-u32-strchr.c (main): New function.
43768 2010-07-31  Bruno Haible  <bruno@clisp.org>
43770         posix-modules: Ignore backup files of documentation files.
43771         * posix-modules: grep only through files named *.texi.
43773 2010-07-31  Bruno Haible  <bruno@clisp.org>
43775         symlinkat: Fix documentation.
43776         * doc/posix-functions/readlinkat.texi: Fix module name.
43778 2010-07-31  Bruno Haible  <bruno@clisp.org>
43780         fchownat: Replace also when chown has the trailing slash bug.
43781         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Move the test of REPLACE_CHOWN
43782         outside the gl_FUNC_FCHOWNAT_DEREF_BUG invocation. Fixes regression
43783         introduced on 2010-04-10.
43784         Reported by Rainer Tammer.
43786 2010-07-31  Bruno Haible  <bruno@clisp.org>
43788         linkat: Work around AIX 7.1 bug.
43789         * m4/linkat.m4 (gl_FUNC_LINKAT): Require AC_CANONICAL_HOST. Test
43790         whether linkat handles trailing slash correctly. If not, replace linkat
43791         and define LINKAT_TRAILING_SLASH_BUG.
43792         * lib/linkat.c (rpl_linkat): If LINKAT_TRAILING_SLASH_BUG is defined,
43793         check whether (fd1,file1) points to a directory if file1 or file2 ends
43794         in a slash. Code taken from lib/link.c.
43795         * doc/posix-functions/linkat.texi: Mention trailing slash bug.
43796         Reported by Rainer Tammer.
43798 2010-07-31  Bruno Haible  <bruno@clisp.org>
43800         Correctly determine whether pow is available in libc on AIX 7 with xlc.
43801         * m4/mathfunc.m4 (gl_MATHFUNC): Actually use the 'funcptr' variable.
43802         This disables an xlc optimization that was causing wrong test results.
43803         Reported by Rainer Tammer.
43805 2010-07-31  Bruno Haible  <bruno@clisp.org>
43807         iconv: Work around AIX 6.1..7.1 bug.
43808         * doc/posix-functions/iconv.texi: Mention AIX 6.1, 7.1 bug.
43809         * m4/iconv.m4 (AM_ICONV_LINK): Test against AIX 6.1, 7.1 bug. When
43810         cross-compiling, guess no on all versions of AIX.
43811         Reported by Rainer Tammer.
43813 2010-07-31  Bruno Haible  <bruno@clisp.org>
43815         readlink: Relax test a bit.
43816         * tests/test-readlink.h (test_readlink): Allow different errno value
43817         when readlink is called with a file name that ends in / and refers to
43818         a file.
43819         Suggested by Eric Blake.
43820         Reported by Rainer Tammer.
43822 2010-07-31  Bruno Haible  <bruno@clisp.org>
43824         copysign: Does not require -lm on glibc systems.
43825         * modules/copysign (configure.ac): Use gl_MATHFUNC, not
43826         gl_COMMON_DOUBLE_MATHFUNC.
43827         * m4/mathfunc.m4 (gl_COMMON_DOUBLE_MATHFUNC): Update comments.
43829 2010-07-31  Bruno Haible  <bruno@clisp.org>
43831         duplocale: Work around AIX 7.1 bug.
43832         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Let the test fail also when
43833         duplocale(LC_GLOBAL_LOCALE) returns (locale_t)0.
43834         * lib/duplocale.c (rpl_duplocale): Update comment.
43835         * doc/posix-functions/duplocale.texi: Mention the AIX 7.1 bug.
43836         Reported by Rainer Tammer.
43838 2010-07-30  Bruno Haible  <bruno@clisp.org>
43840         dirfd: Avoid link error on AIX 7.1.
43841         * lib/dirent.in.h (dirfd): Use modern idiom with REPLACE_DIRFD.
43842         * m4/dirfd.m4 (gl_FUNC_DIRFD): If the function is declared but does not
43843         exist, set REPLACE_DIRFD.
43844         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize REPLACE_DIRFD.
43845         * modules/dirent (Makefile.am): Substitute REPLACE_DIRFD.
43846         * doc/posix-functions/dirfd.texi: Update.
43847         Reported by Rainer Tammer.
43849 2010-07-30  Eric Blake  <eblake@redhat.com>
43851         strtod: next round of AIX fixes
43852         * lib/strtod.c (strtod): Work around AIX bug of parsing p with no
43853         exponent.
43854         * tests/test-strtod.c (main): Enhance tests.
43855         * doc/posix-functions/strtod.texi (strtod): Document next bug.
43856         Reported by Rainer Tammer.
43858         futimens: fix configure check
43859         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Use correct logic.
43860         Reported by Bruno Haible.
43862 2010-07-30  Bruno Haible  <bruno@clisp.org>
43864         getline: Update regarding AIX.
43865         * doc/posix-functions/getline.texi: Mention bug on AIX 7.1.
43866         Reported by Rainer Tammer.
43868 2010-07-30  Bruno Haible  <bruno@clisp.org>
43870         wcwidth: Drop replacement on AIX 7.
43871         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): When cross-compiling, guess yes on
43872         AIX 7.
43873         Reported by Rainer Tammer.
43875 2010-07-30  Bruno Haible  <bruno@clisp.org>
43877         strtok_r: Avoid triggering bug in AIX 7.1 xlc compiler.
43878         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Don't cast an invalid address to
43879         a 'char *'.
43880         Reported by Rainer Tammer.
43882 2010-07-30  Bruno Haible  <bruno@clisp.org>
43884         unlink: Update regarding AIX.
43885         * doc/posix-functions/unlink.texi: Mention bug on AIX 7.1.
43886         * m4/unlink.m4 (gl_FUNC_UNLINK): Update comment.
43887         Reported by Rainer Tammer.
43889 2010-07-30  Bruno Haible  <bruno@clisp.org>
43891         symlink: Update regarding AIX.
43892         * doc/posix-functions/symlink.texi: Mention bug on AIX 7.1.
43893         * m4/symlink.m4 (gl_FUNC_SYMLINK): Update comment.
43894         Reported by Rainer Tammer.
43896 2010-07-30  Bruno Haible  <bruno@clisp.org>
43898         strndup: Update regarding AIX.
43899         * m4/strndup.m4 (gl_FUNC_STRNDUP): When cross-compiling, guess yes on
43900         AIX 7.
43901         Reported by Rainer Tammer.
43903 2010-07-30  Bruno Haible  <bruno@clisp.org>
43905         stat: Update regarding AIX.
43906         * doc/posix-functions/stat.texi: Mention bug on AIX 7.1.
43907         * m4/stat.m4 (gl_FUNC_STAT): Update comment.
43908         Reported by Rainer Tammer.
43910 2010-07-30  Bruno Haible  <bruno@clisp.org>
43912         truncl: Fix autoconf test.
43913         * m4/truncl.m4 (gl_FUNC_TRUNCL): Add TRUNCL_LIBM to LIBS while testing
43914         whether truncl works.
43915         Reported by Rainer Tammer.
43917 2010-07-30  Bruno Haible  <bruno@clisp.org>
43919         round: Update regarding AIX.
43920         * m4/round.m4 (gl_FUNC_ROUND): When cross-compiling, guess no on AIX 7.
43921         * doc/posix-functions/round.texi: Mention bug on AIX 7.1.
43922         Reported by Rainer Tammer.
43924 2010-07-30  Bruno Haible  <bruno@clisp.org>
43926         rename: Update regarding AIX.
43927         * doc/posix-functions/rename.texi: Mention bug on AIX 7.1.
43928         * m4/rename.m4 (gl_FUNC_RENAME): Update comment.
43929         Reported by Rainer Tammer.
43931 2010-07-30  Bruno Haible  <bruno@clisp.org>
43933         printf.m4: Update regarding AIX.
43934         * m4/printf.m4: Update comments regarding AIX.
43935         Reported by Rainer Tammer.
43937 2010-07-30  Bruno Haible  <bruno@clisp.org>
43939         iconv: Update regarding AIX.
43940         * m4/iconv.m4 (AM_ICONV_LINK): When cross-compiling, guess yes on
43941         AIX 7.
43942         Reported by Rainer Tammer.
43944 2010-07-30  Bruno Haible  <bruno@clisp.org>
43946         getopt: Update regarding AIX.
43947         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): When cross-compiling, guess
43948         no on AIX.
43949         * doc/posix-functions/getopt.texi: Mention that AIX has the optind bug.
43950         Reported by Rainer Tammer.
43952 2010-07-30  Bruno Haible  <bruno@clisp.org>
43954         ldexpl; Update regarding AIX.
43955         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): When cross-compiling, guess yes
43956         on AIX 7.
43957         Reported by Rainer Tammer.
43959 2010-07-30  Bruno Haible  <bruno@clisp.org>
43961         frexpl: Update regarding AIX.
43962         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): When cross-compiling, guess yes
43963         on AIX 7.
43964         Reported by Rainer Tammer.
43966 2010-07-30  Bruno Haible  <bruno@clisp.org>
43968         open, fopen: Update regarding AIX.
43969         * m4/open.m4 (gl_FUNC_OPEN): Adjust cross-compiling guess for AIX.
43970         * m4/fopen.m4 (gl_FUNC_FOPEN): Likewise.
43971         * doc/posix-functions/open.texi: Mention the trailing-slash bug on AIX.
43972         * doc/posix-functions/fopen.texi: Likewise.
43973         Reported by Rainer Tammer.
43975 2010-07-30  Bruno Haible  <bruno@clisp.org>
43977         chown: Update doc regarding AIX.
43978         * doc/posix-functions/chown.texi: Mention bug on AIX 7.1.
43979         * m4/chown.m4 (gl_FUNC_CHOWN): Update comment.
43980         Reported by Rainer Tammer.
43982 2010-07-30  Eric Blake  <eblake@redhat.com>
43984         strtod: fix bug in replacement function on AIX
43985         * lib/strtod.c (strtod): Special case broken "0x" parse in
43986         underlying strtod.
43987         * tests/test-strtod.c (main): Document AIX 7.1 bugs.
43988         * doc/posix-functions/strtod.texi (strtod): Likewise.
43989         Reported by Rainer Tammer.
43991 2010-07-30  Bruno Haible  <bruno@clisp.org>
43993         mbrlen: Fix cross-compilation guess for AIX.
43994         * m4/mbrlen.m4 (gl_MBRLEN_INCOMPLETE_STATE): Fix cross-compilation
43995         guess. Leftover from 2008-12-22.
43997 2010-07-30  Bruno Haible  <bruno@clisp.org>
43999         mbrtowc: Fix cross-compilation guess for AIX.
44000         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE): Fix cross-compilation
44001         guess. Leftover from 2008-12-21.
44003 2010-07-29  Peter O'Gorman  <pogma@thewrittenword.com>  (tiny change)
44005         init.sh: work around trap limitation of some shells
44006         * tests/init.sh (setup_): Move exit trap outside of shell function.
44008 2010-07-29  Eric Blake  <eblake@redhat.com>
44010         strtod: aid debugging
44011         * m4/strtod.m4(gl_FUNC_STRTOD): Use distinct exit status to aid
44012         understanding why strtod is rejected.
44014 2010-07-28  Bruno Haible  <bruno@clisp.org>
44016         unistr/u*-chr, unistr/u*-strchr: Fix link errors and warnings.
44017         * lib/unistr/u8-chr.c: Include <string.h>.
44018         * tests/unistr/test-u8-chr.c: Likewise.
44019         * tests/unistr/test-u16-chr.c: Likewise.
44020         * tests/unistr/test-u32-chr.c: Likewise.
44021         * tests/unistr/test-u8-strchr.c: Likewise.
44022         * tests/unistr/test-u16-strchr.c: Likewise.
44023         * tests/unistr/test-u32-strchr.c: Likewise.
44024         * modules/unistr/u8-chr-tests (Depends-on): Add unistr/u32-set.
44025         * modules/unistr/u16-chr-tests (Depends-on): Likewise.
44026         * modules/unistr/u8-strchr-tests (Depends-on): Likewise.
44027         * modules/unistr/u16-strchr-tests (Depends-on): Likewise.
44029 2010-07-28  Bruno Haible  <bruno@clisp.org>
44031         Use spaces for indentation, not tabs.
44032         * lib/**/*.[hcy] except lib/reg*.[hc]: Untabify.
44034 2010-07-27  Bruno Haible  <bruno@clisp.org>
44036         mbspcasecmp: Fix function specification.
44037         * lib/string.in.h (mbspcasecmp): Fix specification comment.
44038         * lib/mbspcasecmp.c (mbspcasecmp): Likewise.
44039         Reported by Eric Blake <eblake@redhat.com>.
44041 2010-07-26  Paul R. Eggert  <eggert@cs.ucla.edu>
44043         timespec: use cast and not conditional, as truncation isn't possible
44044         * lib/timespec.h (timespec_cmp): Use cast to pacify gcc -Wconversion
44045         instead of a conditional.  Comment about the situation in more detail.
44046         This undoes most of the 2009-10-29 patch.
44048 2010-07-23  Paolo Bonzini  <pbonzini@redhat.com>
44050         unistr/u8-chr, unistr/u8-strchr: use Boyer-Moore like algorithm.
44051         * lib/unistr/u8-chr.c: Add Boyer-Moore like operation.
44052         * lib/unistr/u8-strchr.c: Likewise.
44053         * modules/unistr/u8-chr: Depend on memchr.
44055         unistr/u*-strchr: add tests
44056         * modules/unistr/u8-strchr-tests: New file.
44057         * modules/unistr/u16-strchr-tests: New file.
44058         * modules/unistr/u32-strchr-tests: New file.
44059         * tests/unistr/test-strchr.h: New file.
44060         * tests/unistr/test-u8-strchr.c: New file.
44061         * tests/unistr/test-u16-strchr.c: New file.
44062         * tests/unistr/test-u32-strchr.c: New file.
44064         unistr/u*-chr: test multibyte sequences more
44065         * tests/unistr/test-chr.h: Do complete testing of the characters in the
44066         test vector.
44067         * tests/unistr/test-u8-chr.c (U_UCTOMB): Define.
44068         * tests/unistr/test-u16-chr.c (U_UCTOMB): Likewise.
44069         * tests/unistr/test-u32-chr.c (U_UCTOMB): Likewise.
44071         unistr/u*-chr: test multibyte sequences
44072         * tests/unistr/test-chr.h: Put characters above 0-127 in the test input.
44074         unistr/u*-chr: prepare for multibyte tests
44075         * modules/unistr/u8-chr-tests: Depend on u32-to-u8.
44076         * modules/unistr/u16-chr-tests: Depend on u32-to-u16.
44077         * tests/unistr/test-chr.h: Build initial version as UCS-4 then convert.
44078         * tests/unistr/test-u8-chr.c (U32_TO_U): Define.
44079         * tests/unistr/test-u16-chr.c (U32_TO_U): Likewise.
44080         * tests/unistr/test-u32-chr.c (U32_TO_U): Likewise.
44082 2010-07-18  Bruno Haible  <bruno@clisp.org>
44084         unistr/u8-strchr: Optimize non-ASCII argument case.
44085         * lib/unistr/u8-strchr.c (u8_strchr): Compare the last byte first,
44086         because the first byte often matches anyway.
44087         Reported by Pádraig Brady <P@draigbrady.com>.
44089 2010-07-15  Karl Berry  <karl@gnu.org>
44091         * config/srclist.txt (fdl.texi): only one copy, from gnustandards.
44093 2010-07-14  Paul R. Eggert  <eggert@cs.ucla.edu>
44095         getcwd: on Solaris, work better if ancestors are inaccessible
44096         * lib/getcwd.c (__getcwd): If getcwd returns EINVAL for zero
44097         buffer and size, try again with a large buffer.  This works better
44098         on Solaris, since its getcwd succeeds even if the path to the root
44099         is inaccessible, and this is helpful in common cases such as .zfs
44100         hidden directories.  Problem reported by J Chapman Flack in
44101         http://lists.gnu.org/archive/html/bug-tar/2010-06/msg00000.html
44102         Use system getcwd if it's declared, not merely if it's partly
44103         working; use the partly-working test only to avoid needless effort
44104         if the system getcwd fails.
44105         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Omit
44106         comment that was already obsolete and is now even more obsolete.
44107         * modules/getcwd (Depends-on): Depend on strdup, since __getcwd
44108         now might call strdup.
44110 2010-07-13  Paul R. Eggert  <eggert@cs.ucla.edu>
44112         pthread: Add enough so that coreutils/src/sort.c compiles.
44113         * lib/pthread.in.h: Add self to author comment.  Conditionalize on
44114         _GL_PTHREAD_H, not PTHREAD_H_, for consistency with the rest of
44115         gnulib. Include <sched.h> and <time.h>, as per POSIX.
44116         Include <sys/types.h>, in case it defines pthread_t.
44117         (pthread_t, pthread_attr_t, pthread_barrier_t, pthread_barrierattr_t):
44118         (pthread_cond_t, pthread_condattr_t, pthread_key_t, pthread_mutex_t):
44119         (pthread_mutexattr_t, pthread_once_t, pthread_rwlock_t):
44120         (pthread_rwlockattr_t, pthread_spinlock_t):
44121         New typedefs, if HAVE_PTHREAD_T is not defined.
44122         (PTHREAD_COND_INITIALIZER, PTHREAD_MUTEX_INITIALIZER):
44123         (PTHREAD_ONCE_INIT, PTHREAD_RWLOCK_INITIALIZER):
44124         (PTHREAD_BARRIER_SERIAL_THREAD, PTHREAD_CANCEL_DEFERRED):
44125         (PTHREAD_CANCEL_ASYNCHRONOUS, PTHREAD_CANCEL_ENABLE):
44126         (PTHREAD_CANCEL_DISABLE, PTHREAD_CANCELED, PTHREAD_CREATE_JOINABLE):
44127         (PTHREAD_CREATE_DETACHED, PTHREAD_INHERIT_SCHED):
44128         (PTHREAD_EXPLICIT_SCHED, PTHREAD_MUTEX_DEFAULT, PTHREAD_MUTEX_NORMAL):
44129         (PTHREAD_MUTEX_ERRORCHECK, PTHREAD_MUTEX_RECURSIVE):
44130         (PTHREAD_MUTEX_STALLED, PTHREAD_MUTEX_ROBUST, PTHREAD_PRIO_NONE):
44131         (PTHREAD_PRIO_INHERIT, PTHREAD_PRIO_PROTECT, PTHREAD_PROCESS_PRIVATE):
44132         (PTHREAD_PROCESS_SHARED, PTHREAD_SCOPE_SYSTEM, PTHREAD_SCOPE_PROCESS):
44133         New macros.
44134         (pthread_cond_destroy, pthread_cond_init, pthread_cond_signal):
44135         (pthread_cond_wait, pthread_exit, pthread_mutex_destroy):
44136         (pthread_mutex_init, pthread_mutex_lock, pthread_mutex_unlock):
44137         (pthread_spin_init, pthread_spin_lock, pthread_spin_trylock);
44138         (pthread_spin_unlock): New dummy functions.
44139         (pthread_create): Return EAGAIN; don't set errno.
44140         * m4/pthread.m4 (gl_PTHREAD_CHECK): Check for pthread_t, and
44141         require AC_C_INLINE.
44142         * modules/pthread (Depends-on): Add sched, time.
44143         (pthread.h): Use AM_V_GEN.
44145 2010-07-13  Bruno Haible  <bruno@clisp.org>
44147         striconveh: Don't malloc memory if the result buffer is sufficient.
44148         * lib/striconveh.c (mem_cd_iconveh_internal): Use the provided result
44149         buffer if its size is sufficient.
44150         Reported by Ludovic Courtès <ludo@gnu.org>.
44152 2010-07-13  Bruno Haible  <bruno@clisp.org>
44154         strtod: Add safety check.
44155         * lib/strtod.c (ldexp): Abort if this dummy replacement gets called.
44157 2010-07-12  Bruno Haible  <bruno@clisp.org>
44159         Unify tests that set gl_cv_func_ldexpl_no_libm.
44160         * m4/ldexpl.m4 (gl_CHECK_LDEXPL_NO_LIBM): New macro, extracted from
44161         gl_FUNC_LDEXPL.
44162         (gl_FUNC_LDEXPL): Invoke it.
44163         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
44165 2010-07-12  Bruno Haible  <bruno@clisp.org>
44167         Unify tests that set gl_cv_func_ldexp_no_libm.
44168         * m4/ldexp.m4: New file, based on m4/mathfunc.m4.
44169         * m4/strtod.m4 (gl_PREREQ_STRTOD): Require gl_CHECK_LDEXP_NO_LIBM.
44170         * modules/ldexp (Files): Remove m4/mathfunc.m4. Add m4/ldexp.m4.
44171         (configure.ac): Simply invoke gl_FUNC_LDEXP.
44172         * modules/strtod (Files): Add m4/ldexp.m4.
44174 2010-07-12  Bruno Haible  <bruno@clisp.org>
44176         Unify tests that set gl_cv_func_frexpl_no_libm.
44177         * m4/frexpl.m4 (gl_CHECK_FREXPL_NO_LIBM): New macro, extracted from
44178         gl_FUNC_FREXPL_NO_LIBM.
44179         (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): Invoke it.
44180         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
44182 2010-07-12  Bruno Haible  <bruno@clisp.org>
44184         Unify tests that set gl_cv_func_frexp_no_libm.
44185         * m4/frexp.m4 (gl_CHECK_FREXP_NO_LIBM): New macro, extracted from
44186         gl_FUNC_FREXP_NO_LIBM.
44187         (gl_FUNC_FREXP, gl_FUNC_FREXP_NO_LIBM): Require it.
44188         * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Likewise.
44190 2010-07-12  Paul R. Eggert  <eggert@cs.ucla.edu>
44192         memcoll: clarify sizes versus lengths, document better, and tweak perf
44193         * lib/memcoll.c (strcoll_loop, memcoll0):
44194         Improve quality of descriptive comments.  Name variables
44195         consistently as to whether they are lengths (which do not include
44196         terminating null) versus sizes (which do).
44197         * lib/xmemcoll.c (xmemcoll0): Likewise.
44198         * lib/memcoll.c (strcoll_loop): Tweak the way that the diff is
44199         returned when s1size == 0; this is easier to compile and saves
44200         about 17% of memcoll's code space on x86-64 with GCC 4.1.2.
44202 2010-07-12  Bruno Haible  <bruno@clisp.org>
44204         Tests for module '_Exit'.
44205         * modules/_Exit-tests: New file.
44206         * tests/test-_Exit.sh: New file.
44207         * tests/test-_Exit.c: New file.
44209         New module '_Exit'.
44210         * lib/stdlib.in.h (__attribute__): New macro.
44211         (_Exit): New declaration.
44212         * lib/_Exit.c: New file.
44213         * m4/_Exit.m4: New file.
44214         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether _Exit is declared.
44215         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB__EXIT and HAVE__EXIT.
44216         * modules/stdlib (Makefile.am): Substitute GNULIB__EXIT and HAVE__EXIT.
44217         * modules/_Exit: New file.
44218         * tests/test-stdlib-c++.cc (_Exit): Check signature.
44219         * doc/posix-functions/_Exit_C99.texi: Mention the new module.
44221 2010-07-12  Paul R. Eggert  <eggert@cs.ucla.edu>
44223         strtod: make it more-accurate typically, and don't require libm
44224         * lib/strtod.c (_GL_ARG_NONNULL): Remove; no longer needed.
44225         Include limits.h.  Don't include string.h.
44226         (HAVE_LDEXP_IN_LIBC, HAVE_RAW_DECL_STRTOD): Define to 0 if not defined.
44227         (locale_isspace): New function, so that no casts are needed to
44228         check whether *s is a space.
44229         (ldexp): Provide an unused dummy if not available.
44230         (scale_radix_exp, parse_number, underlying_strtod): New functions.
44231         (strtod): Use them.  This implementation prefers to use the
44232         underlying strtod if available, falling back on our own code
44233         only to fix known bugs.  This is more likely to produce an
44234         accurate result.  Also, it avoids the use of libm functions.
44235         * m4/strtod.m4 (gl_FUNC_STRTOD): Don't invoke _AC_LIBOBJ_STRTOD;
44236         no longer needed.  Invoke AC_LIBOBJ([strtod]); don't know why this
44237         was absent, but it caused a test failure with coreutils.
44238         (gl_PREREQ_STRTOD): Check wither ldexp can be used without linking
44239         with libm.
44240         * modules/strtod (Makefile.am, Link): libm is no longer needed.
44241         * modules/strtod-tests (Makefile.am): Likewise.
44243 2010-07-11  Pádraig Brady  <P@draigBrady.com>
44244             Bruno Haible  <bruno@clisp.org>
44246         unistr/u8-strchr: Optimize ASCII argument case.
44247         * lib/unistr/u8-strchr.c (u8_strchr): For ASCII arguments, use strchr.
44249 2010-07-08  Paul Eggert  <eggert@cs.ucla.edu>
44251         (x)memcoll: minor tweaks
44252         * lib/memcoll.c (strcoll_loop): Prefer the style where 'const'
44253         is after the type that it qualifies.
44254         (memcoll0): Likewise.
44255         * lib/memcoll.h (memcoll0): Likewise.
44256         * lib/xmemcoll.c (collate_error, xmemcoll0): Likewise.
44257         * lib/xmemcoll.h (xmemcoll0): Likewise.
44258         * lib/memcoll.c (memcoll0): Correct the comment.  This function
44259         differs from memcoll in that the NUL byte is part of the argument.
44260         Omit the abort-checks, as performance is a real issue here.  Plus,
44261         the checks were wrong anyway (an off-by-one error).  Omit local
44262         variable 'diff', as it's a bit clearer that way.
44263         * m4/memcoll.m4 (gl_MEMCOLL): Omit AC_FUNC_STRCOLL, as it's
44264         no longer needed.
44266 2010-07-08  Chen Guo  <chenguo4@yahoo.com>
44268         (x)memcoll: speedup when input is known to be NUL delimited
44269         * lib/memcoll.c: Include stdlib.
44270         (memcoll0): New function.
44271         (strcoll_loop): New function, refactored for use in both memcoll
44272         and memcoll0.
44273         * lib/memcoll.h (memcoll0): Add prototype.
44274         * lib/xmemcoll.c (xmemcoll0): New function.
44275         (collate_error): New function, refactored for use in both xmemcoll
44276         and xmemcoll0.
44277         * lib/xmemcoll.h (xmemcoll0): Add prototype.
44278         * m4/memcoll.m4: add inline invocation.
44280 2010-07-06  Pádraig Brady  <P@draigBrady.com>
44282         * build-aux/bootstrap: Remove any local translations
44283         from the translation project synchronization directory,
44284         so that local only translations are not distributed.
44286 2010-07-04  Bruno Haible  <bruno@clisp.org>
44288         fsusage: Clarify which code applies to which platforms.
44289         * m4/fsusage.m4 (gl_FSUSAGE): Clarify which test succeeds on which
44290         platform.
44291         * lib/fsusage.c (get_fs_usage): Likewise.
44293 2010-07-04  Bruno Haible  <bruno@clisp.org>
44295         havelib: Fix bug when AC_LIB_FROMPACKAGE is used more than twice.
44296         * m4/lib-link.m4 (AC_LIB_FROMPACKAGE): Use m4_defn.
44297         Reported by Martin Lambers <marlam@marlam.de>.
44299 2010-07-04  Jim Meyering  <meyering@redhat.com>
44301         hash: once again explicitly disallow insertion of NULL
44302         * lib/hash.c (hash_insert0): Reinstate just-removed test:
44303         inserting a NULL pointer cannot work with these functions.
44304         Add a comment with details.
44305         This reverts part of the 2010-07-01 commit, 5bef1a35
44306         "hash: extend module to deal with non-pointer keys".
44308 2010-07-01  Bruno Haible  <bruno@clisp.org>
44310         stdbool: Update doc.
44311         * doc/posix-headers/stdbool.texi: Mention OpenBSD bug.
44312         Info from Christian Weisgerber <naddy@mips.inka.de>.
44314 2010-07-01  Jim Meyering  <meyering@redhat.com>
44316         hash: extend module to deal with non-pointer keys
44317         * lib/hash.c (hash_insert0): New interface, much like hash_insert
44318         but that allows insertion of non-pointer entries.
44319         Do not disallow an ENTRY value of NULL.
44320         (hash_insert): This is now just a thin wrapper.  Call hash_insert0.
44321         * lib/hash.h (hash_insert0): Declare.
44323 2010-07-01  Christian Weisgerber  <naddy@mips.inka.de>  (tiny change)
44325         gettext: Use AC_GNU_SOURCE as a fallback for AC_USE_SYSTEM_EXTENSIONS.
44326         * m4/fcntl-o.m4 (gl_FCNTL_O_FLAGS): When AC_USE_SYSTEM_EXTENSIONS is
44327         not present (i.e. with autoconf 2.59 and when using gettextize, not
44328         gnulib), require AC_GNU_SOURCE instead.
44330 2010-07-01  Ian Beckwith  <ianb@erislabs.net>
44332         idpriv-drop: Fix tests.
44333         * tests/test-idpriv-drop.su.sh: Refer to the test-idpriv-drop program,
44334         not to the test-idpriv-droptemp program.
44336 2010-06-29  Bruno Haible  <bruno@clisp.org>
44338         string: Fix syntax error with g++ 2.96.
44339         * lib/string.in.h (__pure__): Remove definition.
44340         (_GL_ATTRIBUTE_PURE): New macro.
44341         (memchr, memmem, memrchr, rawmemchr, strchrnul, strnlen, strpbrk,
44342         strstr, strcasestr): Use it instead of __attribute__ ((__pure__)).
44343         Reported by Christian Weisgerber <naddy@mips.inka.de>.
44345 2010-06-28  Ian Beckwith  <ianb@erislabs.net>
44347         unitypes: Fix bug introduced on 2010-05-18.
44348         * modules/unitypes (Files): Really add m4/libunistring-base.m4.
44350 2010-06-22  Eric Blake  <eblake@redhat.com>
44352         memmem: slight optimization
44353         * lib/str-two-way.h (critical_factorization): Update comments.
44354         Reduce work during factorization phase.
44355         Reported by Carlos Bueno <carlos@bueno.org>.
44357 2010-06-21  Bruno Haible  <bruno@clisp.org>
44359         Fix HAVE_CALLOC_POSIX misnomer.
44360         * lib/stdlib.in.h (calloc): Use REPLACE_CALLOC instead of
44361         !HAVE_CALLOC_POSIX.
44362         * m4/calloc.m4 (gl_REPLACE_CALLOC): Set REPLACE_CALLOC instead of
44363         HAVE_CALLOC_POSIX.
44364         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_CALLOC
44365         instead of HAVE_CALLOC_POSIX.
44366         * modules/stdlib (Makefile.am): Substitute REPLACE_CALLOC instead of
44367         HAVE_CALLOC_POSIX.
44369         Use modern idiom for calloc() replacement.
44370         * modules/calloc (configure.ac): Invoke gl_FUNC_CALLOC_GNU instead of
44371         AC_FUNC_CALLOC.
44372         * m4/calloc.m4 (gl_FUNC_CALLOC_GNU): Renamed from AC_FUNC_CALLOC.
44373         Require gl_STDLIB_H_DEFAULTS. Invoke gl_REPLACE_CALLOC.
44374         (gl_FUNC_CALLOC_POSIX): Rely on gl_STDLIB_H_DEFAULTS to initialize
44375         HAVE_CALLOC_POSIX. Invoke gl_REPLACE_CALLOC.
44376         (gl_REPLACE_CALLOC): New macro.
44378 2010-06-21  Bruno Haible  <bruno@clisp.org>
44380         Fix HAVE_REALLOC_POSIX misnomer.
44381         * lib/stdlib.in.h (realloc): Use REPLACE_REALLOC instead of
44382         !HAVE_REALLOC_POSIX.
44383         * m4/realloc.m4 (gl_REPLACE_REALLOC): Set REPLACE_REALLOC instead of
44384         HAVE_REALLOC_POSIX.
44385         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_REALLOC
44386         instead of HAVE_REALLOC_POSIX.
44387         * modules/stdlib (Makefile.am): Substitute REPLACE_REALLOC instead of
44388         HAVE_REALLOC_POSIX.
44390         Use modern idiom for realloc() replacement.
44391         * modules/realloc (configure.ac): Invoke gl_FUNC_REALLOC_GNU instead of
44392         AC_FUNC_REALLOC.
44393         * m4/realloc.m4 (gl_FUNC_REALLOC_GNU): New macro, mostly copied from
44394         Autoconf's AC_FUNC_REALLOC.
44395         (gl_FUNC_REALLOC_POSIX): Rely on gl_STDLIB_H_DEFAULTS to initialize
44396         HAVE_REALLOC_POSIX. Invoke gl_REPLACE_REALLOC.
44397         (gl_REPLACE_REALLOC): New macro.
44398         Reported by Richard Lloyd <richard.lloyd@connectinternetsolutions.com>.
44400 2010-06-21  Bruno Haible  <bruno@clisp.org>
44402         Fix HAVE_MALLOC_POSIX misnomer.
44403         * lib/stdlib.in.h (malloc): Use REPLACE_MALLOC instead of
44404         !HAVE_MALLOC_POSIX.
44405         * m4/malloc.m4 (gl_REPLACE_MALLOC): Set REPLACE_MALLOC instead of
44406         HAVE_MALLOC_POSIX.
44407         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_MALLOC
44408         instead of HAVE_MALLOC_POSIX.
44409         * modules/stdlib (Makefile.am): Substitute REPLACE_MALLOC instead of
44410         HAVE_MALLOC_POSIX.
44412         Use modern idiom for malloc() replacement.
44413         * modules/malloc (configure.ac): Invoke gl_FUNC_MALLOC_GNU instead of
44414         AC_FUNC_MALLOC.
44415         * m4/malloc.m4 (gl_FUNC_MALLOC_GNU): New macro, mostly copied from
44416         Autoconf's AC_FUNC_MALLOC.
44417         (gl_FUNC_MALLOC_POSIX): Rely on gl_STDLIB_H_DEFAULTS to initialize
44418         HAVE_MALLOC_POSIX. Invoke gl_REPLACE_MALLOC.
44419         (gl_REPLACE_MALLOC): New macro.
44420         Reported by Richard Lloyd <richard.lloyd@connectinternetsolutions.com>.
44422 2010-06-20  Richard Lloyd  <richard.lloyd@connectinternetsolutions.com>
44424         stdio.in.h: fix compilation failure when using HP-UX 11's C compiler
44425         * lib/stdio.in.h: Remove excess _GL_CXXALIAS_RPL macro argument.
44426         This macro takes 3 arguments, not 4.
44428 2010-06-15  Giuseppe Scrivano  <gscrivano@gnu.org>
44430         ipv6: fix detection under mingw
44431         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Include <ws2tcpip.h> for struct
44432         in6_addr.
44434 2010-06-14  Ben Pfaff  <blp@cs.stanford.edu>
44436         * m4/strtod.m4 (gl_FUNC_STRTOD): Factor out common code.  Assume
44437         that strtod() works when cross-compiling to a glibc version known
44438         to work.
44440 2010-06-15  Bruno Haible  <bruno@clisp.org>
44442         * m4/strtod.m4 (gl_FUNC_STRTOD): Stop using AC_FUNC_STRTOD.
44444 2010-06-15  René Berber  <r.berber@computer.org>  (tiny change)
44446         select: Correct timeout.
44447         * lib/select.c (rpl_select): Compute wait_timeout correctly.
44449 2010-06-14  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
44451         git-version-gen: init shell var to avoid env var influence
44452         * build-aux/git-version-gen (v): Init shell var to empty.
44454 2010-06-14  Paul Eggert  <eggert@cs.ucla.edu>
44456         priv-set: Don't assume that priv.h exists merely because getppriv does.
44457         See Jan Andersen's bug report about AIX 5L in
44458         http://lists.gnu.org/archive/html/bug-tar/2010-06/msg00019.html
44459         * m4/priv-set.m4 (gl_PRIV_SET): Check for priv.h.
44460         * lib/priv-set.c: Do nothing unless HAVE_PRIV_H.
44461         * lib/priv-set.h: Likewise.
44462         * tests/test-priv-set.c: Likewise.
44464 2010-06-13  Bruno Haible  <bruno@clisp.org>
44466         relocatable: Make it easier to test whether to install wrappers.
44467         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): New automake conditional
44468         RELOCATABLE_VIA_WRAPPER.
44470 2010-06-13  Bruno Haible  <bruno@clisp.org>
44472         gnulib-tool: Display specified modules and dependencies differently.
44473         * gnulib-tool (func_show_module_list): New function.
44474         (func_import, func_create_testdir): Invoke it.
44475         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
44477 2010-06-13  Bruno Haible  <bruno@clisp.org>
44479         gnulib-tool: Align code of func_import and func_create_testdir.
44480         * gnulib-tool (func_create_testdir): Rename variable saved_modules to
44481         specified_modules.
44483 2010-06-12  Jim Meyering  <meyering@redhat.com>
44485         test-inttostr: avoid spurious failure on Solaris 9
44486         * tests/test-inttostr.c (main): Skip the test when snprintf fails
44487         to accept "%ju".  Reported by Bruno Haible.
44489 2010-06-11  Jim Meyering  <meyering@redhat.com>
44491         test-sys_socket: mark variables as used more readably
44492         * tests/test-sys_socket.c (main): Mark otherwise unused variables
44493         as "used" explicitly via (void) statement casts.  This is more
44494         readable than using them in an artificial return expression.
44495         Suggestion from Bruno Haible.
44497 2010-06-11  Bruno Haible  <bruno@clisp.org>
44499         Avoid some more warnings from "gcc -Wwrite-strings".
44500         * tests/test-argp.c (test_optional): Change 5th and 6th argument type
44501         to 'const char *'.
44502         * tests/test-c-strstr.c (main): Add 'const' to variable declaration.
44503         * tests/test-c-strcasestr.c (main): Likewise.
44504         * tests/test-mbscasestr1.c (main): Likewise.
44505         * tests/test-mbscasestr2.c (main): Likewise.
44506         * tests/test-memmem.c (main): Likewise.
44507         * tests/test-strstr.c (main): Likewise.
44508         * tests/test-strcasestr.c (main): Likewise.
44510 2010-06-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
44512         init.sh: change framework_failure_ to fail with status 99, not 1
44513         * tests/init.sh (framework_failure_): Exit 99, not 1.  This informs
44514         automake's parallel-tests rule that this is an unexpected failure,
44515         even if the test is listed in XFAIL_TESTS.
44517 2010-06-11  Jim Meyering  <meyering@redhat.com>
44519         test-inttostr: avoid warnings about 4-6KB literal strings
44520         * tests/test-inttostr.c: Don't use <assert.h>.  Instead, ...
44521         Include "macros.h", for its definition of ASSERT.
44522         (CK): s/assert/ASSERT/
44523         * modules/inttostr-tests (Files): Add macros.h.
44525         init.sh: don't use $ME_ or skip_ before they are defined
44526         * tests/init.sh: Hoist definitions of $ME_ and skip_ to precede
44527         their first uses.  Also hoist their companions: warn_, fail_,
44528         framework_failure_, $stderr_fileno.  Prompted by a patch from
44529         Stefano Lattarini.
44531         test-sys_socket: avoid set-but-not-used warnings from gcc
44532         * tests/test-sys_socket.c (main): Use "i" and "x", in order to
44533         avoid warning about set-but-not-used variables.
44535         test-xvasprintf: avoid 'const' discard warnings
44536         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Use
44537         "const" when assigning from literal strings.
44538         (test_xasprintf): Add "void" in function argument list to placate
44539         -Wstrict-prototypes and to be consistent with test_xvasprintf above.
44541         tests: avoid compilation warnings in argmatch and exclude tests...
44542         in packages that define ARGMATCH_DIE_DECL, like coreutils.
44543         * tests/test-exclude.c [ARGMATCH_DIE_DECL]: Also declare the function.
44544         Since it always exits, declare with the "noreturn" attribute.
44545         * tests/test-argmatch.c: Likewise.
44547         tests: avoid 'const' discard warnings in mbsstr tests
44548         * tests/test-mbsstr1.c (main): Add "const" to avoid trivial warning.
44549         * tests/test-mbsstr2.c (main): Likewise.
44551         test-verify: avoid warning from gcc's -Wmissing-declarations
44552         * tests/test-verify.c (function): Declare to be static.
44554         test-inttostr.c: include <string.h> for use of strcmp
44555         * tests/test-inttostr.c: Include <string.h> for strcmp declaration.
44557         test-linkat: avoid failed assertion on "other" architectures
44558         * tests/test-linkat.c: Include <sys/stat.h>, for declarations of stat,
44559         lstat, mkdir.  Patch by John Rigby, to fix FTBFS on armel, powerpc,
44560         sparc: https://bugs.launchpad.net/bugs/591968
44562 2010-06-11  Jim Meyering  <meyering@redhat.com>
44564         printf.m4: avoid autoconf's "Expanded Before Required" warning
44565         * m4/printf.m4 (gl_SNPRINTF_RETVAL_C99): Define using AC_DEFUN_ONCE,
44566         rather than AC_DEFUN, to avoid the classic "Expanded Before Required"
44567         autoconf warning.
44569 2010-06-10  Ben Pfaff  <blp@cs.stanford.edu>
44571         Replacement header templates are now named with ".in", not "_".
44572         * doc/gnulib-intro.texi: Correct.
44574 2010-06-10  Jim Meyering  <meyering@redhat.com>
44576         inttostr-tests: depend on snprintf, not snprintf-posix
44577         * modules/inttostr-tests (Depends-on): Depend on snprintf, not
44578         snprintf-posix, to avoid this aclocal failure:
44579           missing file gnulib-tests/vasnprintf.c
44580           configure.ac:45: error: expected source file, required through \
44581           AC_LIBSOURCES, not found
44583 2010-06-10  Jim Meyering  <meyering@redhat.com>
44585         inttostr: add a new function, inttostr, and tests
44586         The namesake function was not available.  The existence of the
44587         template file, inttostr.c makes its addition nontrivial.
44588         * lib/anytostr.c: Rename from inttostr.c.
44589         (anytostr): Rename from inttostr.
44590         * lib/inttostr.c: New file.
44591         * modules/inttostr (Files): Add anytostr.c.
44592         (Makefile.am): Set lib_SOURCES instead of ...
44593         * m4/inttostr.m4: Remove uses of AC_LIBOBJ.
44594         * lib/imaxtostr.c: Update use.  s/inttostr/anytostr/
44595         * lib/offtostr.c: Likewise.
44596         * lib/uinttostr.c: Likewise.
44597         * lib/umaxtostr.c: Likewise.
44598         * modules/inttostr-tests: New file.
44599         * tests/test-inttostr.c: New file.  Test these functions.
44601 2010-06-09  Ben Pfaff  <blp@cs.stanford.edu>
44602             Bruno Haible  <bruno@clisp.org>
44604         Add "Extending Gnulib" chapter to manual.
44605         * doc/gnulib.texi (Writing Modules): Add cross-reference to new
44606         chapter.
44607         (Extending Gnulib): New chapter.
44608         * doc/gnulib-intro.texi (Openness): Add cross-reference to new
44609         chapter.
44611 2010-06-09  Bruno Haible  <bruno@clisp.org>
44613         Avoid relocwrapper link errors due to gnulib replacement functions.
44614         * lib/areadlink.c: Use the system's malloc, realloc functions.
44615         (areadlink): Set errno to ENOMEM explicitly.
44616         * modules/areadlink (Depends-on): Remove malloc-posix.
44617         Reported by Ben Pfaff <blp@cs.stanford.edu>.
44619 2010-06-09  Bruno Haible  <bruno@clisp.org>
44621         Avoid relocwrapper link errors due to gnulib replacement functions.
44622         * lib/canonicalize-lgpl.c: Use the system's malloc function.
44623         * lib/malloca.c: Likewise.
44624         * lib/relocatable.c: Likewise.
44625         * lib/progreloc.c: Use the system's malloc, sprintf functions.
44626         * lib/relocwrapper.c: Use the system's fprintf, malloc functions.
44627         * lib/setenv.c: Use the system's malloc, realloc functions.
44628         * lib/strerror.c: Use the system's sprintf function.
44629         Reported by Ben Pfaff <blp@cs.stanford.edu>.
44631 2010-06-04  Bruno Haible  <bruno@clisp.org>
44633         Prefer documented low-level autoconf macro names.
44634         * m4/lib-link.m4: Use m4_translit instead of translit.
44635         * m4/environ.m4: Likewise.
44636         * m4/mathfunc.m4: Likewise.
44637         * m4/onceonly.m4: Likewise.
44638         * m4/stdint.m4: Likewise.
44639         Suggested by Eric Blake.
44641 2010-06-04  Martin Lambers  <marlam@marlam.de>
44642             Bruno Haible  <bruno@clisp.org>
44644         havelib: Allow library names with '+' characters.
44645         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
44646         AC_LIB_FROMPACKAGE, AC_LIB_LINKFLAGS_BODY): Convert '+' in name to '_'.
44648 2010-06-09  Bruno Haible  <bruno@clisp.org>
44650         Module setenv does not depend on 'malloc-posix', 'realloc-posix'.
44651         * lib/setenv.c (__add_to_environ): Set errno to ENOMEM when malloc or
44652         realloc failed.
44654 2010-06-08  Peter Simons  <simons@cryp.to>
44656         maint.mk: make the news-check rule more configurable
44657         * top/maint.mk (news-check-lines-spec): New variable.
44658         (news-check): Use "sed -n 1,10p" in place of "head".
44660 2010-06-07  Jim Meyering  <meyering@redhat.com>
44662         do-release-commit-and-tag: fix typo in --help
44663         * build-aux/do-release-commit-and-tag (Usage): Fix typo in --help.
44665         regex: avoid new dead-code warning with gcc-4.6.0
44666         * lib/regex_internal.c (re_string_reconstruct): #if-0-out a dead
44667         if-block containing a while-loop.  It's been unused for at least
44668         5 years.
44670 2010-06-05  Bruno Haible  <bruno@clisp.org>
44672         * doc/posix-functions/strcoll.texi: Mention Solaris limitation.
44673         Reported by River Tarnell <river.tarnell@wikimedia.de> via Eric Blake.
44675 2010-06-04  Bruno Haible  <bruno@clisp.org>
44677         Update to GNU gettext 0.18.1.
44678         * modules/gettext (configure.ac): Require gettext infrastructure from
44679         version 0.18.1.
44681 2010-06-03  Bruno Haible  <bruno@clisp.org>
44683         Don't use AC_LIBOBJ with file names in subdirectories.
44684         * m4/libunistring-base.m4 (gl_LIBUNISTRING_MODULE): Renamed from
44685         gl_LIBUNISTRING_LIBSOURCE. Take a module name as argument, not a file
44686         name. Define an automake conditional. Don't invoke AC_LIBOBJ.
44687         * m4/libunistring.m4 (gl_LIBUNISTRING): Update AC_BEFORE invocation.
44688         * modules/uni*/* (configure.ac): Use gl_LIBUNISTRING_MODULE instead of
44689         gl_LIBUNISTRING_LIBSOURCE.
44690         (Makefile.am): Augment lib_SOURCES here, conditionally.
44691         * NEWS: Drop requirement for Automake option 'subdir-objects'.
44693 2010-06-03  Bruno Haible  <bruno@clisp.org>
44695         Simplify gl_LIBUNISTRING_VERSION_CMP expansion.
44696         * m4/libunistring-base.m4 (gl_LIBUNISTRING_VERSION_CMP): Ensure
44697         expansion does not end with a newline.
44698         (gl_LIBUNISTRING_LIBSOURCE, gl_LIBUNISTRING_LIBHEADER): Avoid
44699         unnecessary newline.
44701 2010-06-03  Bruno Haible  <bruno@clisp.org>
44703         Reduce dependencies.
44704         * tests/test-quotearg.h: New file, extracted from
44705         tests/test-quotearg.c.
44706         * tests/test-quotearg-simple.c: New file, extracted from
44707         tests/test-quotearg.c.
44708         * tests/test-quotearg.c: Don't include <ctype.h>.
44709         (struct result_strings, struct result_groups, LQ, RQ, LQ_ENC, RQ_ENC,
44710         RQ_ESC, inputs, compare, use_quotearg_buffer, use_quotearg,
44711         use_quote_double_quotes, use_quotearg_colon): Moved to
44712         tests/test-quotearg.h.
44713         (results_g, flag_results, custom_quotes, custom_results): Moved
44714         to tests/test-quotearg-simple.c.
44715         (main): Moved the part that does not depend on gettext to
44716         tests/test-quotearg-simple.c. Return 77 if the test cannot be
44717         performed.
44718         * modules/quotearg-simple: New file.
44719         * modules/quotearg-simple-tests: New file.
44720         * modules/quotearg (Depends-on): Add quotearg-simple.
44721         * modules/quotearg-tests (Status): Mark as gettext-dependent-test.
44722         (Files): Add tests/test-quotearg.h.
44723         Reported by Paolo Bonzini.
44725 2010-06-03  Bruno Haible  <bruno@clisp.org>
44727         Reduce dependencies.
44728         * modules/acl (Depends-on): Add gettext-h. Remove gettext.
44730 2010-06-03  Bruno Haible  <bruno@clisp.org>
44732         time: Undefine more broken macros.
44733         * lib/time.in.h: Undefine broken localtime_r and gmtime_r macros only
44734         for pthread-win32. Undefine also asctime_r, ctime_r, rand_r, strtok_r.
44735         Reported by Eric Blake.
44737 2010-06-03  Bruno Haible  <bruno@clisp.org>
44739         Choose among AC_DEFUN_ONCE, AC_DEFUN in a way that aclocal understands.
44740         * m4/iconv.m4 (gl_iconv_AC_DEFUN): New macro.
44741         (AM_ICONV): Define it through gl_iconv_AC_DEFUN.
44742         * m4/libunistring.m4 (gl_libunistring_AC_DEFUN): New macro.
44743         (gl_LIBUNISTRING): Define it through gl_libunistring_AC_DEFUN.
44744         Reported by Ludovic Courtès <ludo@gnu.org>.
44746 2010-06-02  Eric Blake  <eblake@redhat.com>
44748         time: work with mingw + pthreads-win32 library
44749         * m4/time_h.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Set new variable
44750         if timespec is defined only in pthread.h.
44751         * modules/time (Makefile.am): Substitute it.
44752         * lib/time.in.h (!TIME_H_DEFINES_STRUCT_TIMESPEC): Include
44753         <pthread.h>, when needed.
44754         (GNULIB_TIME_R): Undefine broken localtime_r and gmtime_r macros
44755         from the library.
44757 2010-05-31  Bruno Haible  <bruno@clisp.org>
44759         Avoid expanding two macros in the wrong order.
44760         * m4/libunistring-base.m4 (gl_LIBUNISTRING_LIB_PREPARE): Require
44761         gl_LIBUNISTRING if it is defined.
44762         * m4/libunistring.m4 (gl_LIBUNISTRING): Define using AC_DEFUN_ONCE for
44763         autoconf >= 2.64.
44764         Reported by Ludovic Courtès <ludo@gnu.org>.
44766 2010-05-27  Jim Meyering  <meyering@redhat.com>
44768         maint.mk: also prohibit "#undef" of always-defined symbols
44769         * top/maint.mk (def_sym_regex): Handle #undef as well as #define.
44770         Allow more than one space before the symbol name.
44771         (sc_prohibit_always-defined_macros): Use grep's -E, now that
44772         the regexp uses alternation.
44774 2010-05-26  Eric Blake  <eblake@redhat.com>
44776         maint.mk: avoid echo -e
44777         * top/maint.mk (gzip_rsyncable, _ignore_case, _sc_say_and_exit):
44778         Convert all uses of echo -* to printf.
44779         Reported by Matthias Bolte.
44781 2010-05-25  Bruno Haible  <bruno@clisp.org>
44783         Update to GNU gettext 0.18, part 2.
44784         * build-aux/po/Makefile.in.in: Update to GNU gettext 0.18.
44785         Reported by Martin von Gagern <Martin.vGagern@gmx.net>.
44787 2010-05-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
44789         Add missing include in test-pwrite.c.
44790         * tests/test-pwrite.c: Include string.h, for strcmp.
44792 2010-05-24  Bruno Haible  <bruno@clisp.org>
44794         * NEWS: Mention requirement for Automake option 'subdir-objects'.
44796 2010-05-24  Bruno Haible  <bruno@clisp.org>
44798         Don't use conversion with transliteration in u{8,16,32}_strcoll.
44799         * lib/unistr/u-strcoll.h (FUNC): Use U_STRCONV_TO_ENCODING with
44800         iconveh_error argument.
44801         * lib/unistr/u8-strcoll.c: Define U_STRCONV_TO_ENCODING instead of
44802         U_STRCONV_TO_LOCALE.
44803         * lib/unistr/u16-strcoll.c: Likewise.
44804         * lib/unistr/u32-strcoll.c: Likewise.
44805         * modules/unistr/u8-strcoll (Depends-on): Add
44806         uniconv/u8-strconv-to-enc, localcharset. Remove
44807         uniconv/u8-strconv-to-locale.
44808         (configure.ac): Bump version number.
44809         * modules/unistr/u16-strcoll (Depends-on): Add
44810         uniconv/u16-strconv-to-enc, localcharset. Remove
44811         uniconv/u16-strconv-to-locale.
44812         (configure.ac): Bump version number.
44813         * modules/unistr/u32-strcoll (Depends-on): Add
44814         uniconv/u32-strconv-to-enc, localcharset. Remove
44815         uniconv/u32-strconv-to-locale.
44816         (configure.ac): Bump version number.
44818 2010-05-24  Bruno Haible  <bruno@clisp.org>
44820         Avoid a test failure on NetBSD 5.0.
44821         * tests/test-striconveh.c (main): On NetBSD, skip a test that triggers
44822         an iconv() bug.
44824 2010-05-24  Bruno Haible  <bruno@clisp.org>
44826         Adjust #include directive style.
44827         * modules/regex (Includes): Recommend to write <regex.h>.
44829 2010-05-24  Bruno Haible  <bruno@clisp.org>
44831         regex: Don't require alloca.
44832         * modules/regex (Depends-on): Remove alloca. Add alloca-opt.
44833         * lib/regex_internal.h (alloca): Ensure it's defined even if we call it
44834         only inside if (0).
44836 2010-05-23  Jim Meyering  <meyering@redhat.com>
44838         test-renameat.c: include <sys/stat.h>
44839         * tests/test-renameat.c: Include <sys/stat.h>; required for
44840         definition of S_IS* macros.
44842 2010-05-23  Ben Pfaff  <blp@cs.stanford.edu>
44844         Update maintainer documentation for 'relocatable-prog' module.
44845         * doc/relocatable-maint.texi: Update.
44846         Comments by Bruno Haible.
44848 2010-05-23  Bruno Haible  <bruno@clisp.org>
44850         git-merge-changelog: Enable --split-merged-entry by default.
44851         * lib/git-merge-changelog.c (main): Set split_merged_entry to true.
44852         (usage): Don't mention this option any more.
44853         Reported by Ralf Wildenhues.
44855 2010-05-23  Jim Meyering  <meyering@redhat.com>
44857         test-pwrite: do not leave behind a test file named "out"
44858         Revert commit d8fa18472a54c1cb2674c296b3d82443f234d5f7.
44859         The trivial-looking use of init.sh is really necessary.
44860         It ensures that the temporary file, "out", is created in
44861         a temporary directory, and removed upon termination.
44862         * tests/test-pwrite.sh: Re-add file.
44863         * modules/pwrite-tests: Reference it.
44865 2010-05-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
44867         Fix output redirection buglet in init.sh.
44868         * tests/init.sh: Fix redirection of stderr.
44870 2010-05-20  Simon Josefsson  <simon@josefsson.org>
44872         * modules/valgrind-tests (configure.ac): Invoke gl_VALGRIND_TESTS.
44874 2010-05-17  Simon Josefsson  <simon@josefsson.org>
44876         * modules/valgrind-tests: New file.
44877         * m4/valgrind-tests.m4: New file.
44878         * doc/valgrind-tests.texi: New file.
44879         * doc/gnulib.texi (Running self-tests under valgrind): New
44880         section.
44882 2010-05-19  Bruno Haible  <bruno@clisp.org>
44884         Clean up dead code in recent commit.
44885         * m4/libunistring-base.m4 (gl_LIBUNISTRING_VERSION_CMP): Include the
44886         body of gl_LIBUNISTRING_VERSION_CMP_ORIG as fallback.
44887         (gl_LIBUNISTRING_VERSION_CMP_ORIG): Remove macro.
44888         Suggested by Paolo Bonzini.
44890 2010-05-19  Bruno Haible  <bruno@clisp.org>
44892         Avoid valgrind error reports from libunistring.
44893         * lib/libunistring.valgrind: New file, based on lib/malloca.valgrind.
44894         * modules/libunistring (Files): Add it.
44895         * modules/libunistring-optional (Files): Likewise.
44897 2010-05-18  Paolo Bonzini  <bonzini@gnu.org>
44898             Bruno Haible  <bruno@clisp.org>
44900         New module 'libunistring-optional'.
44901         * modules/libunistring-optional: New file.
44902         * m4/libunistring-base.m4: New file.
44903         * m4/libunistring-optional.m4: New file.
44904         * lib/unicase.in.h: Renamed from lib/unicase.h.
44905         * lib/uniconv.in.h: Renamed from lib/uniconv.h.
44906         * lib/unictype.in.h: Renamed from lib/unictype.h.
44907         * lib/unilbrk.in.h: Renamed from lib/unilbrk.h.
44908         * lib/uniname.in.h: Renamed from lib/uniname.h.
44909         * lib/uninorm.in.h: Renamed from lib/uninorm.h.
44910         * lib/unistdio.in.h: Renamed from lib/unistdio.h.
44911         * lib/unistr.in.h: Renamed from lib/unistr.h.
44912         * lib/unitypes.in.h: Renamed from lib/unitypes.h.
44913         * lib/uniwbrk.in.h: Renamed from lib/uniwbrk.h.
44914         * lib/uniwidth.in.h: Renamed from lib/uniwidth.h.
44915         * m4/libunistring.m4 (gl_LIBUNISTRING_CORE): Renamed from
44916         gl_LIBUNISTRING. If the library was found, determine the installed
44917         version and set LIBUNISTRING_VERSION.
44918         (gl_LIBUNISTRING): New macro, as a wrapper arount it. Document that it
44919         sets LIBUNISTRING_VERSION. If the module libunistring-optional is used,
44920         handle a configuration option --with-included-libunistring.
44921         * modules/libunistring (Files): Add m4/absolute-header.m4.
44922         * modules/unicase/base (Files): Use unicase.in.h instead of unicase.h.
44923         Add m4/libunistring-base.m4.
44924         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
44925         (Makefile.am): Build unicase.h from unicase.in.h.
44926         * modules/uniconv/base (Files): Use uniconv.in.h instead of uniconv.h.
44927         Add m4/libunistring-base.m4.
44928         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
44929         (Makefile.am): Build uniconv.h from uniconv.in.h.
44930         * modules/unictype/base (Files): Use unictype.in.h instead of
44931         unictype.h. Add m4/libunistring-base.m4.
44932         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
44933         (Makefile.am): Build unictype.h from unictype.in.h.
44934         * modules/unilbrk/base (Files): Use unilbrk.in.h instead of unilbrk.h.
44935         Add m4/libunistring-base.m4.
44936         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
44937         (Makefile.am): Build unilbrk.h from unilbrk.in.h.
44938         * modules/uniname/base (Files): Use uniname.in.h instead of uniname.h.
44939         Add m4/libunistring-base.m4.
44940         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
44941         (Makefile.am): Build uniname.h from uniname.in.h.
44942         * modules/uninorm/base (Files): Use uninorm.in.h instead of uninorm.h.
44943         Add m4/libunistring-base.m4.
44944         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
44945         (Makefile.am): Build uninorm.h from uninorm.in.h.
44946         * modules/unistdio/base (Files): Use unistdio.in.h instead of
44947         unistdio.h. Add m4/libunistring-base.m4.
44948         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
44949         (Makefile.am): Build unistdio.h from unistdio.in.h.
44950         * modules/unistr/base (Files): Use unistr.in.h instead of unistr.h.
44951         Add m4/libunistring-base.m4.
44952         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
44953         (Makefile.am): Build unistr.h from unistr.in.h.
44954         * modules/unitypes (Files): Use unitypes.in.h instead of unitypes.h.
44955         Add m4/libunistring-base.m4.
44956         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
44957         (Makefile.am): Build unitypes.h from unitypes.in.h.
44958         * modules/uniwbrk/base (Files): Use uniwbrk.in.h instead of uniwbrk.h.
44959         Add m4/libunistring-base.m4.
44960         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
44961         (Makefile.am): Build uniwbrk.h from uniwbrk.in.h.
44962         * modules/uniwidth/base (Files): Use uniwidth.in.h instead of
44963         uniwidth.h. Add m4/libunistring-base.m4.
44964         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
44965         (Makefile.am): Build uniwidth.h from uniwidth.in.h.
44966         * modules/unicase/empty-prefix-context: Use gl_LIBUNISTRING_LIBSOURCE
44967         instead of augmenting lib_SOURCES.
44968         * modules/unicase/empty-suffix-context: Likewise.
44969         * modules/unicase/locale-language: Likewise.
44970         * modules/unicase/tolower: Likewise.
44971         * modules/unicase/totitle: Likewise.
44972         * modules/unicase/toupper: Likewise.
44973         * modules/unicase/u8-casecmp: Likewise.
44974         * modules/unicase/u8-casecoll: Likewise.
44975         * modules/unicase/u8-casefold: Likewise.
44976         * modules/unicase/u8-casexfrm: Likewise.
44977         * modules/unicase/u8-ct-casefold: Likewise.
44978         * modules/unicase/u8-ct-tolower: Likewise.
44979         * modules/unicase/u8-ct-totitle: Likewise.
44980         * modules/unicase/u8-ct-toupper: Likewise.
44981         * modules/unicase/u8-is-cased: Likewise.
44982         * modules/unicase/u8-is-casefolded: Likewise.
44983         * modules/unicase/u8-is-lowercase: Likewise.
44984         * modules/unicase/u8-is-titlecase: Likewise.
44985         * modules/unicase/u8-is-uppercase: Likewise.
44986         * modules/unicase/u8-prefix-context: Likewise.
44987         * modules/unicase/u8-suffix-context: Likewise.
44988         * modules/unicase/u8-tolower: Likewise.
44989         * modules/unicase/u8-totitle: Likewise.
44990         * modules/unicase/u8-toupper: Likewise.
44991         * modules/unicase/u16-casecmp: Likewise.
44992         * modules/unicase/u16-casecoll: Likewise.
44993         * modules/unicase/u16-casefold: Likewise.
44994         * modules/unicase/u16-casexfrm: Likewise.
44995         * modules/unicase/u16-ct-casefold: Likewise.
44996         * modules/unicase/u16-ct-tolower: Likewise.
44997         * modules/unicase/u16-ct-totitle: Likewise.
44998         * modules/unicase/u16-ct-toupper: Likewise.
44999         * modules/unicase/u16-is-cased: Likewise.
45000         * modules/unicase/u16-is-casefolded: Likewise.
45001         * modules/unicase/u16-is-lowercase: Likewise.
45002         * modules/unicase/u16-is-titlecase: Likewise.
45003         * modules/unicase/u16-is-uppercase: Likewise.
45004         * modules/unicase/u16-prefix-context: Likewise.
45005         * modules/unicase/u16-suffix-context: Likewise.
45006         * modules/unicase/u16-tolower: Likewise.
45007         * modules/unicase/u16-totitle: Likewise.
45008         * modules/unicase/u16-toupper: Likewise.
45009         * modules/unicase/u32-casecmp: Likewise.
45010         * modules/unicase/u32-casecoll: Likewise.
45011         * modules/unicase/u32-casefold: Likewise.
45012         * modules/unicase/u32-casexfrm: Likewise.
45013         * modules/unicase/u32-ct-casefold: Likewise.
45014         * modules/unicase/u32-ct-tolower: Likewise.
45015         * modules/unicase/u32-ct-totitle: Likewise.
45016         * modules/unicase/u32-ct-toupper: Likewise.
45017         * modules/unicase/u32-is-cased: Likewise.
45018         * modules/unicase/u32-is-casefolded: Likewise.
45019         * modules/unicase/u32-is-lowercase: Likewise.
45020         * modules/unicase/u32-is-titlecase: Likewise.
45021         * modules/unicase/u32-is-uppercase: Likewise.
45022         * modules/unicase/u32-prefix-context: Likewise.
45023         * modules/unicase/u32-suffix-context: Likewise.
45024         * modules/unicase/u32-tolower: Likewise.
45025         * modules/unicase/u32-totitle: Likewise.
45026         * modules/unicase/u32-toupper: Likewise.
45027         * modules/unicase/ulc-casecmp: Likewise.
45028         * modules/unicase/ulc-casecoll: Likewise.
45029         * modules/unicase/ulc-casexfrm: Likewise.
45030         * modules/uniconv/u8-conv-from-enc: Likewise.
45031         * modules/uniconv/u8-conv-to-enc: Likewise.
45032         * modules/uniconv/u8-strconv-from-enc: Likewise.
45033         * modules/uniconv/u8-strconv-from-locale: Likewise.
45034         * modules/uniconv/u8-strconv-to-enc: Likewise.
45035         * modules/uniconv/u8-strconv-to-locale: Likewise.
45036         * modules/uniconv/u16-conv-from-enc: Likewise.
45037         * modules/uniconv/u16-conv-to-enc: Likewise.
45038         * modules/uniconv/u16-strconv-from-enc: Likewise.
45039         * modules/uniconv/u16-strconv-from-locale: Likewise.
45040         * modules/uniconv/u16-strconv-to-enc: Likewise.
45041         * modules/uniconv/u16-strconv-to-locale: Likewise.
45042         * modules/uniconv/u32-conv-from-enc: Likewise.
45043         * modules/uniconv/u32-conv-to-enc: Likewise.
45044         * modules/uniconv/u32-strconv-from-enc: Likewise.
45045         * modules/uniconv/u32-strconv-from-locale: Likewise.
45046         * modules/uniconv/u32-strconv-to-enc: Likewise.
45047         * modules/uniconv/u32-strconv-to-locale: Likewise.
45048         * modules/unictype/bidicategory-byname: Likewise.
45049         * modules/unictype/bidicategory-name: Likewise.
45050         * modules/unictype/bidicategory-of: Likewise.
45051         * modules/unictype/bidicategory-test: Likewise.
45052         * modules/unictype/block-list: Likewise.
45053         * modules/unictype/block-test: Likewise.
45054         * modules/unictype/category-C: Likewise.
45055         * modules/unictype/category-Cc: Likewise.
45056         * modules/unictype/category-Cf: Likewise.
45057         * modules/unictype/category-Cn: Likewise.
45058         * modules/unictype/category-Co: Likewise.
45059         * modules/unictype/category-Cs: Likewise.
45060         * modules/unictype/category-L: Likewise.
45061         * modules/unictype/category-Ll: Likewise.
45062         * modules/unictype/category-Lm: Likewise.
45063         * modules/unictype/category-Lo: Likewise.
45064         * modules/unictype/category-Lt: Likewise.
45065         * modules/unictype/category-Lu: Likewise.
45066         * modules/unictype/category-M: Likewise.
45067         * modules/unictype/category-Mc: Likewise.
45068         * modules/unictype/category-Me: Likewise.
45069         * modules/unictype/category-Mn: Likewise.
45070         * modules/unictype/category-N: Likewise.
45071         * modules/unictype/category-Nd: Likewise.
45072         * modules/unictype/category-Nl: Likewise.
45073         * modules/unictype/category-No: Likewise.
45074         * modules/unictype/category-P: Likewise.
45075         * modules/unictype/category-Pc: Likewise.
45076         * modules/unictype/category-Pd: Likewise.
45077         * modules/unictype/category-Pe: Likewise.
45078         * modules/unictype/category-Pf: Likewise.
45079         * modules/unictype/category-Pi: Likewise.
45080         * modules/unictype/category-Po: Likewise.
45081         * modules/unictype/category-Ps: Likewise.
45082         * modules/unictype/category-S: Likewise.
45083         * modules/unictype/category-Sc: Likewise.
45084         * modules/unictype/category-Sk: Likewise.
45085         * modules/unictype/category-Sm: Likewise.
45086         * modules/unictype/category-So: Likewise.
45087         * modules/unictype/category-Z: Likewise.
45088         * modules/unictype/category-Zl: Likewise.
45089         * modules/unictype/category-Zp: Likewise.
45090         * modules/unictype/category-Zs: Likewise.
45091         * modules/unictype/category-and: Likewise.
45092         * modules/unictype/category-and-not: Likewise.
45093         * modules/unictype/category-byname: Likewise.
45094         * modules/unictype/category-name: Likewise.
45095         * modules/unictype/category-none: Likewise.
45096         * modules/unictype/category-of: Likewise.
45097         * modules/unictype/category-or: Likewise.
45098         * modules/unictype/category-test: Likewise.
45099         * modules/unictype/combining-class: Likewise.
45100         * modules/unictype/ctype-alnum: Likewise.
45101         * modules/unictype/ctype-alpha: Likewise.
45102         * modules/unictype/ctype-blank: Likewise.
45103         * modules/unictype/ctype-cntrl: Likewise.
45104         * modules/unictype/ctype-digit: Likewise.
45105         * modules/unictype/ctype-graph: Likewise.
45106         * modules/unictype/ctype-lower: Likewise.
45107         * modules/unictype/ctype-print: Likewise.
45108         * modules/unictype/ctype-punct: Likewise.
45109         * modules/unictype/ctype-space: Likewise.
45110         * modules/unictype/ctype-upper: Likewise.
45111         * modules/unictype/ctype-xdigit: Likewise.
45112         * modules/unictype/decimal-digit: Likewise.
45113         * modules/unictype/digit: Likewise.
45114         * modules/unictype/mirror: Likewise.
45115         * modules/unictype/numeric: Likewise.
45116         * modules/unictype/property-alphabetic: Likewise.
45117         * modules/unictype/property-ascii-hex-digit: Likewise.
45118         * modules/unictype/property-bidi-arabic-digit: Likewise.
45119         * modules/unictype/property-bidi-arabic-right-to-left: Likewise.
45120         * modules/unictype/property-bidi-block-separator: Likewise.
45121         * modules/unictype/property-bidi-boundary-neutral: Likewise.
45122         * modules/unictype/property-bidi-common-separator: Likewise.
45123         * modules/unictype/property-bidi-control: Likewise.
45124         * modules/unictype/property-bidi-embedding-or-override: Likewise.
45125         * modules/unictype/property-bidi-eur-num-separator: Likewise.
45126         * modules/unictype/property-bidi-eur-num-terminator: Likewise.
45127         * modules/unictype/property-bidi-european-digit: Likewise.
45128         * modules/unictype/property-bidi-hebrew-right-to-left: Likewise.
45129         * modules/unictype/property-bidi-left-to-right: Likewise.
45130         * modules/unictype/property-bidi-non-spacing-mark: Likewise.
45131         * modules/unictype/property-bidi-other-neutral: Likewise.
45132         * modules/unictype/property-bidi-pdf: Likewise.
45133         * modules/unictype/property-bidi-segment-separator: Likewise.
45134         * modules/unictype/property-bidi-whitespace: Likewise.
45135         * modules/unictype/property-byname: Likewise.
45136         * modules/unictype/property-combining: Likewise.
45137         * modules/unictype/property-composite: Likewise.
45138         * modules/unictype/property-currency-symbol: Likewise.
45139         * modules/unictype/property-dash: Likewise.
45140         * modules/unictype/property-decimal-digit: Likewise.
45141         * modules/unictype/property-default-ignorable-code-point: Likewise.
45142         * modules/unictype/property-deprecated: Likewise.
45143         * modules/unictype/property-diacritic: Likewise.
45144         * modules/unictype/property-extender: Likewise.
45145         * modules/unictype/property-format-control: Likewise.
45146         * modules/unictype/property-grapheme-base: Likewise.
45147         * modules/unictype/property-grapheme-extend: Likewise.
45148         * modules/unictype/property-grapheme-link: Likewise.
45149         * modules/unictype/property-hex-digit: Likewise.
45150         * modules/unictype/property-hyphen: Likewise.
45151         * modules/unictype/property-id-continue: Likewise.
45152         * modules/unictype/property-id-start: Likewise.
45153         * modules/unictype/property-ideographic: Likewise.
45154         * modules/unictype/property-ids-binary-operator: Likewise.
45155         * modules/unictype/property-ids-trinary-operator: Likewise.
45156         * modules/unictype/property-ignorable-control: Likewise.
45157         * modules/unictype/property-iso-control: Likewise.
45158         * modules/unictype/property-join-control: Likewise.
45159         * modules/unictype/property-left-of-pair: Likewise.
45160         * modules/unictype/property-line-separator: Likewise.
45161         * modules/unictype/property-logical-order-exception: Likewise.
45162         * modules/unictype/property-lowercase: Likewise.
45163         * modules/unictype/property-math: Likewise.
45164         * modules/unictype/property-non-break: Likewise.
45165         * modules/unictype/property-not-a-character: Likewise.
45166         * modules/unictype/property-numeric: Likewise.
45167         * modules/unictype/property-other-alphabetic: Likewise.
45168         * modules/unictype/property-other-default-ignorable-code-point: Likewise.
45169         * modules/unictype/property-other-grapheme-extend: Likewise.
45170         * modules/unictype/property-other-id-continue: Likewise.
45171         * modules/unictype/property-other-id-start: Likewise.
45172         * modules/unictype/property-other-lowercase: Likewise.
45173         * modules/unictype/property-other-math: Likewise.
45174         * modules/unictype/property-other-uppercase: Likewise.
45175         * modules/unictype/property-paired-punctuation: Likewise.
45176         * modules/unictype/property-paragraph-separator: Likewise.
45177         * modules/unictype/property-pattern-syntax: Likewise.
45178         * modules/unictype/property-pattern-white-space: Likewise.
45179         * modules/unictype/property-private-use: Likewise.
45180         * modules/unictype/property-punctuation: Likewise.
45181         * modules/unictype/property-quotation-mark: Likewise.
45182         * modules/unictype/property-radical: Likewise.
45183         * modules/unictype/property-sentence-terminal: Likewise.
45184         * modules/unictype/property-soft-dotted: Likewise.
45185         * modules/unictype/property-space: Likewise.
45186         * modules/unictype/property-terminal-punctuation: Likewise.
45187         * modules/unictype/property-test: Likewise.
45188         * modules/unictype/property-titlecase: Likewise.
45189         * modules/unictype/property-unassigned-code-value: Likewise.
45190         * modules/unictype/property-unified-ideograph: Likewise.
45191         * modules/unictype/property-uppercase: Likewise.
45192         * modules/unictype/property-variation-selector: Likewise.
45193         * modules/unictype/property-white-space: Likewise.
45194         * modules/unictype/property-xid-continue: Likewise.
45195         * modules/unictype/property-xid-start: Likewise.
45196         * modules/unictype/property-zero-width: Likewise.
45197         * modules/unictype/scripts: Likewise.
45198         * modules/unictype/syntax-c-ident: Likewise.
45199         * modules/unictype/syntax-c-whitespace: Likewise.
45200         * modules/unictype/syntax-java-ident: Likewise.
45201         * modules/unictype/syntax-java-whitespace: Likewise.
45202         * modules/unilbrk/u8-possible-linebreaks: Likewise.
45203         * modules/unilbrk/u8-width-linebreaks: Likewise.
45204         * modules/unilbrk/u16-possible-linebreaks: Likewise.
45205         * modules/unilbrk/u16-width-linebreaks: Likewise.
45206         * modules/unilbrk/u32-possible-linebreaks: Likewise.
45207         * modules/unilbrk/u32-width-linebreaks: Likewise.
45208         * modules/unilbrk/ulc-possible-linebreaks: Likewise.
45209         * modules/unilbrk/ulc-width-linebreaks: Likewise.
45210         * modules/uniname/uniname: Likewise.
45211         * modules/uninorm/canonical-decomposition: Likewise.
45212         * modules/uninorm/composition: Likewise.
45213         * modules/uninorm/decomposing-form: Likewise.
45214         * modules/uninorm/decomposition: Likewise.
45215         * modules/uninorm/filter: Likewise.
45216         * modules/uninorm/nfc: Likewise.
45217         * modules/uninorm/nfd: Likewise.
45218         * modules/uninorm/nfkc: Likewise.
45219         * modules/uninorm/nfkd: Likewise.
45220         * modules/uninorm/u8-normalize: Likewise.
45221         * modules/uninorm/u8-normcmp: Likewise.
45222         * modules/uninorm/u8-normcoll: Likewise.
45223         * modules/uninorm/u8-normxfrm: Likewise.
45224         * modules/uninorm/u16-normalize: Likewise.
45225         * modules/uninorm/u16-normcmp: Likewise.
45226         * modules/uninorm/u16-normcoll: Likewise.
45227         * modules/uninorm/u16-normxfrm: Likewise.
45228         * modules/uninorm/u32-normalize: Likewise.
45229         * modules/uninorm/u32-normcmp: Likewise.
45230         * modules/uninorm/u32-normcoll: Likewise.
45231         * modules/uninorm/u32-normxfrm: Likewise.
45232         * modules/unistdio/u8-asnprintf: Likewise.
45233         * modules/unistdio/u8-asprintf: Likewise.
45234         * modules/unistdio/u8-snprintf: Likewise.
45235         * modules/unistdio/u8-sprintf: Likewise.
45236         * modules/unistdio/u8-u8-asnprintf: Likewise.
45237         * modules/unistdio/u8-u8-asprintf: Likewise.
45238         * modules/unistdio/u8-u8-snprintf: Likewise.
45239         * modules/unistdio/u8-u8-sprintf: Likewise.
45240         * modules/unistdio/u8-u8-vasnprintf: Likewise.
45241         * modules/unistdio/u8-u8-vasprintf: Likewise.
45242         * modules/unistdio/u8-u8-vsnprintf: Likewise.
45243         * modules/unistdio/u8-u8-vsprintf: Likewise.
45244         * modules/unistdio/u8-vasnprintf: Likewise.
45245         * modules/unistdio/u8-vasprintf: Likewise.
45246         * modules/unistdio/u8-vsnprintf: Likewise.
45247         * modules/unistdio/u8-vsprintf: Likewise.
45248         * modules/unistdio/u16-asnprintf: Likewise.
45249         * modules/unistdio/u16-asprintf: Likewise.
45250         * modules/unistdio/u16-snprintf: Likewise.
45251         * modules/unistdio/u16-sprintf: Likewise.
45252         * modules/unistdio/u16-u16-asnprintf: Likewise.
45253         * modules/unistdio/u16-u16-asprintf: Likewise.
45254         * modules/unistdio/u16-u16-snprintf: Likewise.
45255         * modules/unistdio/u16-u16-sprintf: Likewise.
45256         * modules/unistdio/u16-u16-vasnprintf: Likewise.
45257         * modules/unistdio/u16-u16-vasprintf: Likewise.
45258         * modules/unistdio/u16-u16-vsnprintf: Likewise.
45259         * modules/unistdio/u16-u16-vsprintf: Likewise.
45260         * modules/unistdio/u16-vasnprintf: Likewise.
45261         * modules/unistdio/u16-vasprintf: Likewise.
45262         * modules/unistdio/u16-vsnprintf: Likewise.
45263         * modules/unistdio/u16-vsprintf: Likewise.
45264         * modules/unistdio/u32-asnprintf: Likewise.
45265         * modules/unistdio/u32-asprintf: Likewise.
45266         * modules/unistdio/u32-snprintf: Likewise.
45267         * modules/unistdio/u32-sprintf: Likewise.
45268         * modules/unistdio/u32-u32-asnprintf: Likewise.
45269         * modules/unistdio/u32-u32-asprintf: Likewise.
45270         * modules/unistdio/u32-u32-snprintf: Likewise.
45271         * modules/unistdio/u32-u32-sprintf: Likewise.
45272         * modules/unistdio/u32-u32-vasnprintf: Likewise.
45273         * modules/unistdio/u32-u32-vasprintf: Likewise.
45274         * modules/unistdio/u32-u32-vsnprintf: Likewise.
45275         * modules/unistdio/u32-u32-vsprintf: Likewise.
45276         * modules/unistdio/u32-vasnprintf: Likewise.
45277         * modules/unistdio/u32-vasprintf: Likewise.
45278         * modules/unistdio/u32-vsnprintf: Likewise.
45279         * modules/unistdio/u32-vsprintf: Likewise.
45280         * modules/unistdio/ulc-asnprintf: Likewise.
45281         * modules/unistdio/ulc-asprintf: Likewise.
45282         * modules/unistdio/ulc-fprintf: Likewise.
45283         * modules/unistdio/ulc-snprintf: Likewise.
45284         * modules/unistdio/ulc-sprintf: Likewise.
45285         * modules/unistdio/ulc-vasnprintf: Likewise.
45286         * modules/unistdio/ulc-vasprintf: Likewise.
45287         * modules/unistdio/ulc-vfprintf: Likewise.
45288         * modules/unistdio/ulc-vsnprintf: Likewise.
45289         * modules/unistdio/ulc-vsprintf: Likewise.
45290         * modules/unistr/u8-check: Likewise.
45291         * modules/unistr/u8-chr: Likewise.
45292         * modules/unistr/u8-cmp: Likewise.
45293         * modules/unistr/u8-cmp2: Likewise.
45294         * modules/unistr/u8-cpy: Likewise.
45295         * modules/unistr/u8-cpy-alloc: Likewise.
45296         * modules/unistr/u8-endswith: Likewise.
45297         * modules/unistr/u8-mblen: Likewise.
45298         * modules/unistr/u8-mbsnlen: Likewise.
45299         * modules/unistr/u8-mbtouc: Likewise.
45300         * modules/unistr/u8-mbtouc-unsafe: Likewise.
45301         * modules/unistr/u8-mbtoucr: Likewise.
45302         * modules/unistr/u8-move: Likewise.
45303         * modules/unistr/u8-next: Likewise.
45304         * modules/unistr/u8-prev: Likewise.
45305         * modules/unistr/u8-set: Likewise.
45306         * modules/unistr/u8-startswith: Likewise.
45307         * modules/unistr/u8-stpcpy: Likewise.
45308         * modules/unistr/u8-stpncpy: Likewise.
45309         * modules/unistr/u8-strcat: Likewise.
45310         * modules/unistr/u8-strchr: Likewise.
45311         * modules/unistr/u8-strcmp: Likewise.
45312         * modules/unistr/u8-strcoll: Likewise.
45313         * modules/unistr/u8-strcpy: Likewise.
45314         * modules/unistr/u8-strcspn: Likewise.
45315         * modules/unistr/u8-strdup: Likewise.
45316         * modules/unistr/u8-strlen: Likewise.
45317         * modules/unistr/u8-strmblen: Likewise.
45318         * modules/unistr/u8-strmbtouc: Likewise.
45319         * modules/unistr/u8-strncat: Likewise.
45320         * modules/unistr/u8-strncmp: Likewise.
45321         * modules/unistr/u8-strncpy: Likewise.
45322         * modules/unistr/u8-strnlen: Likewise.
45323         * modules/unistr/u8-strpbrk: Likewise.
45324         * modules/unistr/u8-strrchr: Likewise.
45325         * modules/unistr/u8-strspn: Likewise.
45326         * modules/unistr/u8-strstr: Likewise.
45327         * modules/unistr/u8-strtok: Likewise.
45328         * modules/unistr/u8-to-u16: Likewise.
45329         * modules/unistr/u8-to-u32: Likewise.
45330         * modules/unistr/u8-uctomb: Likewise.
45331         * modules/unistr/u16-check: Likewise.
45332         * modules/unistr/u16-chr: Likewise.
45333         * modules/unistr/u16-cmp: Likewise.
45334         * modules/unistr/u16-cmp2: Likewise.
45335         * modules/unistr/u16-cpy: Likewise.
45336         * modules/unistr/u16-cpy-alloc: Likewise.
45337         * modules/unistr/u16-endswith: Likewise.
45338         * modules/unistr/u16-mblen: Likewise.
45339         * modules/unistr/u16-mbsnlen: Likewise.
45340         * modules/unistr/u16-mbtouc: Likewise.
45341         * modules/unistr/u16-mbtouc-unsafe: Likewise.
45342         * modules/unistr/u16-mbtoucr: Likewise.
45343         * modules/unistr/u16-move: Likewise.
45344         * modules/unistr/u16-next: Likewise.
45345         * modules/unistr/u16-prev: Likewise.
45346         * modules/unistr/u16-set: Likewise.
45347         * modules/unistr/u16-startswith: Likewise.
45348         * modules/unistr/u16-stpcpy: Likewise.
45349         * modules/unistr/u16-stpncpy: Likewise.
45350         * modules/unistr/u16-strcat: Likewise.
45351         * modules/unistr/u16-strchr: Likewise.
45352         * modules/unistr/u16-strcmp: Likewise.
45353         * modules/unistr/u16-strcoll: Likewise.
45354         * modules/unistr/u16-strcpy: Likewise.
45355         * modules/unistr/u16-strcspn: Likewise.
45356         * modules/unistr/u16-strdup: Likewise.
45357         * modules/unistr/u16-strlen: Likewise.
45358         * modules/unistr/u16-strmblen: Likewise.
45359         * modules/unistr/u16-strmbtouc: Likewise.
45360         * modules/unistr/u16-strncat: Likewise.
45361         * modules/unistr/u16-strncmp: Likewise.
45362         * modules/unistr/u16-strncpy: Likewise.
45363         * modules/unistr/u16-strnlen: Likewise.
45364         * modules/unistr/u16-strpbrk: Likewise.
45365         * modules/unistr/u16-strrchr: Likewise.
45366         * modules/unistr/u16-strspn: Likewise.
45367         * modules/unistr/u16-strstr: Likewise.
45368         * modules/unistr/u16-strtok: Likewise.
45369         * modules/unistr/u16-to-u32: Likewise.
45370         * modules/unistr/u16-to-u8: Likewise.
45371         * modules/unistr/u16-uctomb: Likewise.
45372         * modules/unistr/u32-check: Likewise.
45373         * modules/unistr/u32-chr: Likewise.
45374         * modules/unistr/u32-cmp: Likewise.
45375         * modules/unistr/u32-cmp2: Likewise.
45376         * modules/unistr/u32-cpy: Likewise.
45377         * modules/unistr/u32-cpy-alloc: Likewise.
45378         * modules/unistr/u32-endswith: Likewise.
45379         * modules/unistr/u32-mblen: Likewise.
45380         * modules/unistr/u32-mbsnlen: Likewise.
45381         * modules/unistr/u32-mbtouc: Likewise.
45382         * modules/unistr/u32-mbtouc-unsafe: Likewise.
45383         * modules/unistr/u32-mbtoucr: Likewise.
45384         * modules/unistr/u32-move: Likewise.
45385         * modules/unistr/u32-next: Likewise.
45386         * modules/unistr/u32-prev: Likewise.
45387         * modules/unistr/u32-set: Likewise.
45388         * modules/unistr/u32-startswith: Likewise.
45389         * modules/unistr/u32-stpcpy: Likewise.
45390         * modules/unistr/u32-stpncpy: Likewise.
45391         * modules/unistr/u32-strcat: Likewise.
45392         * modules/unistr/u32-strchr: Likewise.
45393         * modules/unistr/u32-strcmp: Likewise.
45394         * modules/unistr/u32-strcoll: Likewise.
45395         * modules/unistr/u32-strcpy: Likewise.
45396         * modules/unistr/u32-strcspn: Likewise.
45397         * modules/unistr/u32-strdup: Likewise.
45398         * modules/unistr/u32-strlen: Likewise.
45399         * modules/unistr/u32-strmblen: Likewise.
45400         * modules/unistr/u32-strmbtouc: Likewise.
45401         * modules/unistr/u32-strncat: Likewise.
45402         * modules/unistr/u32-strncmp: Likewise.
45403         * modules/unistr/u32-strncpy: Likewise.
45404         * modules/unistr/u32-strnlen: Likewise.
45405         * modules/unistr/u32-strpbrk: Likewise.
45406         * modules/unistr/u32-strrchr: Likewise.
45407         * modules/unistr/u32-strspn: Likewise.
45408         * modules/unistr/u32-strstr: Likewise.
45409         * modules/unistr/u32-strtok: Likewise.
45410         * modules/unistr/u32-to-u16: Likewise.
45411         * modules/unistr/u32-to-u8: Likewise.
45412         * modules/unistr/u32-uctomb: Likewise.
45413         * modules/uniwbrk/u8-wordbreaks: Likewise.
45414         * modules/uniwbrk/u16-wordbreaks: Likewise.
45415         * modules/uniwbrk/u32-wordbreaks: Likewise.
45416         * modules/uniwbrk/ulc-wordbreaks: Likewise.
45417         * modules/uniwbrk/wordbreak-property: Likewise.
45418         * modules/uniwidth/u8-strwidth: Likewise.
45419         * modules/uniwidth/u8-width: Likewise.
45420         * modules/uniwidth/u16-strwidth: Likewise.
45421         * modules/uniwidth/u16-width: Likewise.
45422         * modules/uniwidth/u32-strwidth: Likewise.
45423         * modules/uniwidth/u32-width: Likewise.
45424         * modules/uniwidth/width: Likewise.
45425         * modules/unicase/cased-tests (Makefile.am): Link all test programs
45426         with $(LIBUNISTRING).
45427         * modules/unicase/ignorable-tests: Likewise.
45428         * modules/unicase/locale-language-tests: Likewise.
45429         * modules/unicase/tolower-tests: Likewise.
45430         * modules/unicase/totitle-tests: Likewise.
45431         * modules/unicase/toupper-tests: Likewise.
45432         * modules/unicase/u8-casecmp-tests: Likewise.
45433         * modules/unicase/u8-casecoll-tests: Likewise.
45434         * modules/unicase/u8-casefold-tests: Likewise.
45435         * modules/unicase/u8-is-cased-tests: Likewise.
45436         * modules/unicase/u8-is-casefolded-tests: Likewise.
45437         * modules/unicase/u8-is-lowercase-tests: Likewise.
45438         * modules/unicase/u8-is-titlecase-tests: Likewise.
45439         * modules/unicase/u8-is-uppercase-tests: Likewise.
45440         * modules/unicase/u8-tolower-tests: Likewise.
45441         * modules/unicase/u8-totitle-tests: Likewise.
45442         * modules/unicase/u8-toupper-tests: Likewise.
45443         * modules/unicase/u16-casecmp-tests: Likewise.
45444         * modules/unicase/u16-casecoll-tests: Likewise.
45445         * modules/unicase/u16-casefold-tests: Likewise.
45446         * modules/unicase/u16-is-cased-tests: Likewise.
45447         * modules/unicase/u16-is-casefolded-tests: Likewise.
45448         * modules/unicase/u16-is-lowercase-tests: Likewise.
45449         * modules/unicase/u16-is-titlecase-tests: Likewise.
45450         * modules/unicase/u16-is-uppercase-tests: Likewise.
45451         * modules/unicase/u16-tolower-tests: Likewise.
45452         * modules/unicase/u16-totitle-tests: Likewise.
45453         * modules/unicase/u16-toupper-tests: Likewise.
45454         * modules/unicase/u32-casecmp-tests: Likewise.
45455         * modules/unicase/u32-casecoll-tests: Likewise.
45456         * modules/unicase/u32-casefold-tests: Likewise.
45457         * modules/unicase/u32-is-cased-tests: Likewise.
45458         * modules/unicase/u32-is-casefolded-tests: Likewise.
45459         * modules/unicase/u32-is-lowercase-tests: Likewise.
45460         * modules/unicase/u32-is-titlecase-tests: Likewise.
45461         * modules/unicase/u32-is-uppercase-tests: Likewise.
45462         * modules/unicase/u32-tolower-tests: Likewise.
45463         * modules/unicase/u32-totitle-tests: Likewise.
45464         * modules/unicase/u32-toupper-tests: Likewise.
45465         * modules/unicase/ulc-casecmp-tests: Likewise.
45466         * modules/unicase/ulc-casecoll-tests: Likewise.
45467         * modules/uniconv/u8-conv-from-enc-tests: Likewise.
45468         * modules/uniconv/u8-conv-to-enc-tests: Likewise.
45469         * modules/uniconv/u8-strconv-from-enc-tests: Likewise.
45470         * modules/uniconv/u8-strconv-to-enc-tests: Likewise.
45471         * modules/uniconv/u16-conv-from-enc-tests: Likewise.
45472         * modules/uniconv/u16-conv-to-enc-tests: Likewise.
45473         * modules/uniconv/u16-strconv-from-enc-tests: Likewise.
45474         * modules/uniconv/u16-strconv-to-enc-tests: Likewise.
45475         * modules/uniconv/u32-conv-from-enc-tests: Likewise.
45476         * modules/uniconv/u32-conv-to-enc-tests: Likewise.
45477         * modules/uniconv/u32-strconv-from-enc-tests: Likewise.
45478         * modules/uniconv/u32-strconv-to-enc-tests: Likewise.
45479         * modules/unictype/bidicategory-byname-tests: Likewise.
45480         * modules/unictype/bidicategory-name-tests: Likewise.
45481         * modules/unictype/bidicategory-of-tests: Likewise.
45482         * modules/unictype/bidicategory-test-tests: Likewise.
45483         * modules/unictype/block-list-tests: Likewise.
45484         * modules/unictype/block-of-tests: Likewise.
45485         * modules/unictype/block-test-tests: Likewise.
45486         * modules/unictype/category-C-tests: Likewise.
45487         * modules/unictype/category-Cc-tests: Likewise.
45488         * modules/unictype/category-Cf-tests: Likewise.
45489         * modules/unictype/category-Cn-tests: Likewise.
45490         * modules/unictype/category-Co-tests: Likewise.
45491         * modules/unictype/category-Cs-tests: Likewise.
45492         * modules/unictype/category-L-tests: Likewise.
45493         * modules/unictype/category-Ll-tests: Likewise.
45494         * modules/unictype/category-Lm-tests: Likewise.
45495         * modules/unictype/category-Lo-tests: Likewise.
45496         * modules/unictype/category-Lt-tests: Likewise.
45497         * modules/unictype/category-Lu-tests: Likewise.
45498         * modules/unictype/category-M-tests: Likewise.
45499         * modules/unictype/category-Mc-tests: Likewise.
45500         * modules/unictype/category-Me-tests: Likewise.
45501         * modules/unictype/category-Mn-tests: Likewise.
45502         * modules/unictype/category-N-tests: Likewise.
45503         * modules/unictype/category-Nd-tests: Likewise.
45504         * modules/unictype/category-Nl-tests: Likewise.
45505         * modules/unictype/category-No-tests: Likewise.
45506         * modules/unictype/category-P-tests: Likewise.
45507         * modules/unictype/category-Pc-tests: Likewise.
45508         * modules/unictype/category-Pd-tests: Likewise.
45509         * modules/unictype/category-Pe-tests: Likewise.
45510         * modules/unictype/category-Pf-tests: Likewise.
45511         * modules/unictype/category-Pi-tests: Likewise.
45512         * modules/unictype/category-Po-tests: Likewise.
45513         * modules/unictype/category-Ps-tests: Likewise.
45514         * modules/unictype/category-S-tests: Likewise.
45515         * modules/unictype/category-Sc-tests: Likewise.
45516         * modules/unictype/category-Sk-tests: Likewise.
45517         * modules/unictype/category-Sm-tests: Likewise.
45518         * modules/unictype/category-So-tests: Likewise.
45519         * modules/unictype/category-Z-tests: Likewise.
45520         * modules/unictype/category-Zl-tests: Likewise.
45521         * modules/unictype/category-Zp-tests: Likewise.
45522         * modules/unictype/category-Zs-tests: Likewise.
45523         * modules/unictype/category-and-not-tests: Likewise.
45524         * modules/unictype/category-and-tests: Likewise.
45525         * modules/unictype/category-byname-tests: Likewise.
45526         * modules/unictype/category-name-tests: Likewise.
45527         * modules/unictype/category-none-tests: Likewise.
45528         * modules/unictype/category-of-tests: Likewise.
45529         * modules/unictype/category-or-tests: Likewise.
45530         * modules/unictype/category-test-withtable-tests: Likewise.
45531         * modules/unictype/combining-class-tests: Likewise.
45532         * modules/unictype/ctype-alnum-tests: Likewise.
45533         * modules/unictype/ctype-alpha-tests: Likewise.
45534         * modules/unictype/ctype-blank-tests: Likewise.
45535         * modules/unictype/ctype-cntrl-tests: Likewise.
45536         * modules/unictype/ctype-digit-tests: Likewise.
45537         * modules/unictype/ctype-graph-tests: Likewise.
45538         * modules/unictype/ctype-lower-tests: Likewise.
45539         * modules/unictype/ctype-print-tests: Likewise.
45540         * modules/unictype/ctype-punct-tests: Likewise.
45541         * modules/unictype/ctype-space-tests: Likewise.
45542         * modules/unictype/ctype-upper-tests: Likewise.
45543         * modules/unictype/ctype-xdigit-tests: Likewise.
45544         * modules/unictype/decimal-digit-tests: Likewise.
45545         * modules/unictype/digit-tests: Likewise.
45546         * modules/unictype/mirror-tests: Likewise.
45547         * modules/unictype/numeric-tests: Likewise.
45548         * modules/unictype/property-alphabetic-tests: Likewise.
45549         * modules/unictype/property-ascii-hex-digit-tests: Likewise.
45550         * modules/unictype/property-bidi-arabic-digit-tests: Likewise.
45551         * modules/unictype/property-bidi-arabic-right-to-left-tests: Likewise.
45552         * modules/unictype/property-bidi-block-separator-tests: Likewise.
45553         * modules/unictype/property-bidi-boundary-neutral-tests: Likewise.
45554         * modules/unictype/property-bidi-common-separator-tests: Likewise.
45555         * modules/unictype/property-bidi-control-tests: Likewise.
45556         * modules/unictype/property-bidi-embedding-or-override-tests: Likewise.
45557         * modules/unictype/property-bidi-eur-num-separator-tests: Likewise.
45558         * modules/unictype/property-bidi-eur-num-terminator-tests: Likewise.
45559         * modules/unictype/property-bidi-european-digit-tests: Likewise.
45560         * modules/unictype/property-bidi-hebrew-right-to-left-tests: Likewise.
45561         * modules/unictype/property-bidi-left-to-right-tests: Likewise.
45562         * modules/unictype/property-bidi-non-spacing-mark-tests: Likewise.
45563         * modules/unictype/property-bidi-other-neutral-tests: Likewise.
45564         * modules/unictype/property-bidi-pdf-tests: Likewise.
45565         * modules/unictype/property-bidi-segment-separator-tests: Likewise.
45566         * modules/unictype/property-bidi-whitespace-tests: Likewise.
45567         * modules/unictype/property-byname-tests: Likewise.
45568         * modules/unictype/property-combining-tests: Likewise.
45569         * modules/unictype/property-composite-tests: Likewise.
45570         * modules/unictype/property-currency-symbol-tests: Likewise.
45571         * modules/unictype/property-dash-tests: Likewise.
45572         * modules/unictype/property-decimal-digit-tests: Likewise.
45573         * modules/unictype/property-default-ignorable-code-point-tests: Likewise.
45574         * modules/unictype/property-deprecated-tests: Likewise.
45575         * modules/unictype/property-diacritic-tests: Likewise.
45576         * modules/unictype/property-extender-tests: Likewise.
45577         * modules/unictype/property-format-control-tests: Likewise.
45578         * modules/unictype/property-grapheme-base-tests: Likewise.
45579         * modules/unictype/property-grapheme-extend-tests: Likewise.
45580         * modules/unictype/property-grapheme-link-tests: Likewise.
45581         * modules/unictype/property-hex-digit-tests: Likewise.
45582         * modules/unictype/property-hyphen-tests: Likewise.
45583         * modules/unictype/property-id-continue-tests: Likewise.
45584         * modules/unictype/property-id-start-tests: Likewise.
45585         * modules/unictype/property-ideographic-tests: Likewise.
45586         * modules/unictype/property-ids-binary-operator-tests: Likewise.
45587         * modules/unictype/property-ids-trinary-operator-tests: Likewise.
45588         * modules/unictype/property-ignorable-control-tests: Likewise.
45589         * modules/unictype/property-iso-control-tests: Likewise.
45590         * modules/unictype/property-join-control-tests: Likewise.
45591         * modules/unictype/property-left-of-pair-tests: Likewise.
45592         * modules/unictype/property-line-separator-tests: Likewise.
45593         * modules/unictype/property-logical-order-exception-tests: Likewise.
45594         * modules/unictype/property-lowercase-tests: Likewise.
45595         * modules/unictype/property-math-tests: Likewise.
45596         * modules/unictype/property-non-break-tests: Likewise.
45597         * modules/unictype/property-not-a-character-tests: Likewise.
45598         * modules/unictype/property-numeric-tests: Likewise.
45599         * modules/unictype/property-other-alphabetic-tests: Likewise.
45600         * modules/unictype/property-other-default-ignorable-code-point-tests:
45601         Likewise.
45602         * modules/unictype/property-other-grapheme-extend-tests: Likewise.
45603         * modules/unictype/property-other-id-continue-tests: Likewise.
45604         * modules/unictype/property-other-id-start-tests: Likewise.
45605         * modules/unictype/property-other-lowercase-tests: Likewise.
45606         * modules/unictype/property-other-math-tests: Likewise.
45607         * modules/unictype/property-other-uppercase-tests: Likewise.
45608         * modules/unictype/property-paired-punctuation-tests: Likewise.
45609         * modules/unictype/property-paragraph-separator-tests: Likewise.
45610         * modules/unictype/property-pattern-syntax-tests: Likewise.
45611         * modules/unictype/property-pattern-white-space-tests: Likewise.
45612         * modules/unictype/property-private-use-tests: Likewise.
45613         * modules/unictype/property-punctuation-tests: Likewise.
45614         * modules/unictype/property-quotation-mark-tests: Likewise.
45615         * modules/unictype/property-radical-tests: Likewise.
45616         * modules/unictype/property-sentence-terminal-tests: Likewise.
45617         * modules/unictype/property-soft-dotted-tests: Likewise.
45618         * modules/unictype/property-space-tests: Likewise.
45619         * modules/unictype/property-terminal-punctuation-tests: Likewise.
45620         * modules/unictype/property-test-tests: Likewise.
45621         * modules/unictype/property-titlecase-tests: Likewise.
45622         * modules/unictype/property-unassigned-code-value-tests: Likewise.
45623         * modules/unictype/property-unified-ideograph-tests: Likewise.
45624         * modules/unictype/property-uppercase-tests: Likewise.
45625         * modules/unictype/property-variation-selector-tests: Likewise.
45626         * modules/unictype/property-white-space-tests: Likewise.
45627         * modules/unictype/property-xid-continue-tests: Likewise.
45628         * modules/unictype/property-xid-start-tests: Likewise.
45629         * modules/unictype/property-zero-width-tests: Likewise.
45630         * modules/unictype/scripts-tests: Likewise.
45631         * modules/unictype/syntax-c-ident-tests: Likewise.
45632         * modules/unictype/syntax-c-whitespace-tests: Likewise.
45633         * modules/unictype/syntax-java-ident-tests: Likewise.
45634         * modules/unictype/syntax-java-whitespace-tests: Likewise.
45635         * modules/unilbrk/u8-possible-linebreaks-tests: Likewise.
45636         * modules/unilbrk/u8-width-linebreaks-tests: Likewise.
45637         * modules/unilbrk/u16-possible-linebreaks-tests: Likewise.
45638         * modules/unilbrk/u16-width-linebreaks-tests: Likewise.
45639         * modules/unilbrk/u32-possible-linebreaks-tests: Likewise.
45640         * modules/unilbrk/u32-width-linebreaks-tests: Likewise.
45641         * modules/unilbrk/ulc-possible-linebreaks-tests: Likewise.
45642         * modules/unilbrk/ulc-width-linebreaks-tests: Likewise.
45643         * modules/uniname/uniname-tests: Likewise.
45644         * modules/uninorm/canonical-decomposition-tests: Likewise.
45645         * modules/uninorm/compat-decomposition-tests: Likewise.
45646         * modules/uninorm/composition-tests: Likewise.
45647         * modules/uninorm/decomposing-form-tests: Likewise.
45648         * modules/uninorm/decomposition-tests: Likewise.
45649         * modules/uninorm/filter-tests: Likewise.
45650         * modules/uninorm/nfc-tests: Likewise.
45651         * modules/uninorm/nfd-tests: Likewise.
45652         * modules/uninorm/nfkc-tests: Likewise.
45653         * modules/uninorm/nfkd-tests: Likewise.
45654         * modules/uninorm/u8-normcmp-tests: Likewise.
45655         * modules/uninorm/u8-normcoll-tests: Likewise.
45656         * modules/uninorm/u16-normcmp-tests: Likewise.
45657         * modules/uninorm/u16-normcoll-tests: Likewise.
45658         * modules/uninorm/u32-normcmp-tests: Likewise.
45659         * modules/uninorm/u32-normcoll-tests: Likewise.
45660         * modules/unistdio/u8-asnprintf-tests: Likewise.
45661         * modules/unistdio/u8-vasnprintf-tests: Likewise.
45662         * modules/unistdio/u8-vasprintf-tests: Likewise.
45663         * modules/unistdio/u8-vsnprintf-tests: Likewise.
45664         * modules/unistdio/u8-vsprintf-tests: Likewise.
45665         * modules/unistdio/u16-asnprintf-tests: Likewise.
45666         * modules/unistdio/u16-vasnprintf-tests: Likewise.
45667         * modules/unistdio/u16-vasprintf-tests: Likewise.
45668         * modules/unistdio/u16-vsnprintf-tests: Likewise.
45669         * modules/unistdio/u16-vsprintf-tests: Likewise.
45670         * modules/unistdio/u32-asnprintf-tests: Likewise.
45671         * modules/unistdio/u32-vasnprintf-tests: Likewise.
45672         * modules/unistdio/u32-vasprintf-tests: Likewise.
45673         * modules/unistdio/u32-vsnprintf-tests: Likewise.
45674         * modules/unistdio/u32-vsprintf-tests: Likewise.
45675         * modules/unistdio/ulc-asnprintf-tests: Likewise.
45676         * modules/unistdio/ulc-vasnprintf-tests: Likewise.
45677         * modules/unistdio/ulc-vasprintf-tests: Likewise.
45678         * modules/unistdio/ulc-vsnprintf-tests: Likewise.
45679         * modules/unistdio/ulc-vsprintf-tests: Likewise.
45680         * modules/unistr/u8-check-tests: Likewise.
45681         * modules/unistr/u8-chr-tests: Likewise.
45682         * modules/unistr/u8-cmp-tests: Likewise.
45683         * modules/unistr/u8-cmp2-tests: Likewise.
45684         * modules/unistr/u8-cpy-alloc-tests: Likewise.
45685         * modules/unistr/u8-cpy-tests: Likewise.
45686         * modules/unistr/u8-mblen-tests: Likewise.
45687         * modules/unistr/u8-mbsnlen-tests: Likewise.
45688         * modules/unistr/u8-mbtouc-tests: Likewise.
45689         * modules/unistr/u8-mbtouc-unsafe-tests: Likewise.
45690         * modules/unistr/u8-mbtoucr-tests: Likewise.
45691         * modules/unistr/u8-move-tests: Likewise.
45692         * modules/unistr/u8-next-tests: Likewise.
45693         * modules/unistr/u8-prev-tests: Likewise.
45694         * modules/unistr/u8-set-tests: Likewise.
45695         * modules/unistr/u8-stpcpy-tests: Likewise.
45696         * modules/unistr/u8-stpncpy-tests: Likewise.
45697         * modules/unistr/u8-strcat-tests: Likewise.
45698         * modules/unistr/u8-strcmp-tests: Likewise.
45699         * modules/unistr/u8-strcoll-tests: Likewise.
45700         * modules/unistr/u8-strcpy-tests: Likewise.
45701         * modules/unistr/u8-strdup-tests: Likewise.
45702         * modules/unistr/u8-strlen-tests: Likewise.
45703         * modules/unistr/u8-strmblen-tests: Likewise.
45704         * modules/unistr/u8-strmbtouc-tests: Likewise.
45705         * modules/unistr/u8-strncat-tests: Likewise.
45706         * modules/unistr/u8-strncmp-tests: Likewise.
45707         * modules/unistr/u8-strncpy-tests: Likewise.
45708         * modules/unistr/u8-strnlen-tests: Likewise.
45709         * modules/unistr/u8-to-u16-tests: Likewise.
45710         * modules/unistr/u8-to-u32-tests: Likewise.
45711         * modules/unistr/u8-uctomb-tests: Likewise.
45712         * modules/unistr/u16-check-tests: Likewise.
45713         * modules/unistr/u16-chr-tests: Likewise.
45714         * modules/unistr/u16-cmp-tests: Likewise.
45715         * modules/unistr/u16-cmp2-tests: Likewise.
45716         * modules/unistr/u16-cpy-alloc-tests: Likewise.
45717         * modules/unistr/u16-cpy-tests: Likewise.
45718         * modules/unistr/u16-mblen-tests: Likewise.
45719         * modules/unistr/u16-mbsnlen-tests: Likewise.
45720         * modules/unistr/u16-mbtouc-tests: Likewise.
45721         * modules/unistr/u16-mbtouc-unsafe-tests: Likewise.
45722         * modules/unistr/u16-mbtoucr-tests: Likewise.
45723         * modules/unistr/u16-move-tests: Likewise.
45724         * modules/unistr/u16-next-tests: Likewise.
45725         * modules/unistr/u16-prev-tests: Likewise.
45726         * modules/unistr/u16-set-tests: Likewise.
45727         * modules/unistr/u16-stpcpy-tests: Likewise.
45728         * modules/unistr/u16-stpncpy-tests: Likewise.
45729         * modules/unistr/u16-strcat-tests: Likewise.
45730         * modules/unistr/u16-strcmp-tests: Likewise.
45731         * modules/unistr/u16-strcoll-tests: Likewise.
45732         * modules/unistr/u16-strcpy-tests: Likewise.
45733         * modules/unistr/u16-strdup-tests: Likewise.
45734         * modules/unistr/u16-strlen-tests: Likewise.
45735         * modules/unistr/u16-strmblen-tests: Likewise.
45736         * modules/unistr/u16-strmbtouc-tests: Likewise.
45737         * modules/unistr/u16-strncat-tests: Likewise.
45738         * modules/unistr/u16-strncmp-tests: Likewise.
45739         * modules/unistr/u16-strncpy-tests: Likewise.
45740         * modules/unistr/u16-strnlen-tests: Likewise.
45741         * modules/unistr/u16-to-u32-tests: Likewise.
45742         * modules/unistr/u16-to-u8-tests: Likewise.
45743         * modules/unistr/u16-uctomb-tests: Likewise.
45744         * modules/unistr/u32-check-tests: Likewise.
45745         * modules/unistr/u32-chr-tests: Likewise.
45746         * modules/unistr/u32-cmp-tests: Likewise.
45747         * modules/unistr/u32-cmp2-tests: Likewise.
45748         * modules/unistr/u32-cpy-alloc-tests: Likewise.
45749         * modules/unistr/u32-cpy-tests: Likewise.
45750         * modules/unistr/u32-mblen-tests: Likewise.
45751         * modules/unistr/u32-mbsnlen-tests: Likewise.
45752         * modules/unistr/u32-mbtouc-tests: Likewise.
45753         * modules/unistr/u32-mbtouc-unsafe-tests: Likewise.
45754         * modules/unistr/u32-mbtoucr-tests: Likewise.
45755         * modules/unistr/u32-move-tests: Likewise.
45756         * modules/unistr/u32-next-tests: Likewise.
45757         * modules/unistr/u32-prev-tests: Likewise.
45758         * modules/unistr/u32-set-tests: Likewise.
45759         * modules/unistr/u32-stpcpy-tests: Likewise.
45760         * modules/unistr/u32-stpncpy-tests: Likewise.
45761         * modules/unistr/u32-strcat-tests: Likewise.
45762         * modules/unistr/u32-strcmp-tests: Likewise.
45763         * modules/unistr/u32-strcoll-tests: Likewise.
45764         * modules/unistr/u32-strcpy-tests: Likewise.
45765         * modules/unistr/u32-strdup-tests: Likewise.
45766         * modules/unistr/u32-strlen-tests: Likewise.
45767         * modules/unistr/u32-strmblen-tests: Likewise.
45768         * modules/unistr/u32-strmbtouc-tests: Likewise.
45769         * modules/unistr/u32-strncat-tests: Likewise.
45770         * modules/unistr/u32-strncmp-tests: Likewise.
45771         * modules/unistr/u32-strncpy-tests: Likewise.
45772         * modules/unistr/u32-strnlen-tests: Likewise.
45773         * modules/unistr/u32-to-u16-tests: Likewise.
45774         * modules/unistr/u32-to-u8-tests: Likewise.
45775         * modules/unistr/u32-uctomb-tests: Likewise.
45776         * modules/uniwbrk/u8-wordbreaks-tests: Likewise.
45777         * modules/uniwbrk/u16-wordbreaks-tests: Likewise.
45778         * modules/uniwbrk/u32-wordbreaks-tests: Likewise.
45779         * modules/uniwbrk/ulc-wordbreaks-tests: Likewise.
45780         * modules/uniwidth/u8-strwidth-tests: Likewise.
45781         * modules/uniwidth/u8-width-tests: Likewise.
45782         * modules/uniwidth/u16-strwidth-tests: Likewise.
45783         * modules/uniwidth/u16-width-tests: Likewise.
45784         * modules/uniwidth/u32-strwidth-tests: Likewise.
45785         * modules/uniwidth/u32-width-tests: Likewise.
45786         * modules/uniwidth/width-tests: Likewise.
45788 2010-05-18  Richard Jones  <rjones@redhat.com>
45790         doc: users.txt: list hivex
45791         * users.txt: Add hivex.
45793 2010-05-18  Richard Jones  <rjones@redhat.com>
45795         doc: users.txt: list febootstrap
45796         * users.txt: Add febootstrap.
45798 2010-05-17  Giuseppe Scrivano  <gscrivano@gnu.org>
45800         bootstrap: fix an error when gnulib is not used as a git submodule
45801         * build-aux/bootstrap (gnulib_path): If its length is zero then
45802         assign "gnulib" to it.
45803         * build-aux/bootstrap: Redirect "git clone -h" stderr to stdout.
45805 2010-05-16  Bruno Haible  <bruno@clisp.org>
45807         Avoid autoconf warnings about AM_ICONV.
45808         * m4/iconv.m4 (AM_ICONV): Define using AC_DEFUN_ONCE for autoconf >=
45809         2.64.
45811 2010-05-16  Bruno Haible  <bruno@clisp.org>
45813         absolute-header: Make the macro usable in more situations.
45814         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER_ONE): New macro, extracted
45815         from gl_ABSOLUTE_HEADER.
45816         (gl_ABSOLUTE_HEADER): Use it. Fix comment.
45818 2010-05-16  James Youngman  <jay@gnu.org>
45820         doc: update users.txt
45821         * users.txt: Add CSSC.
45823 2010-05-16  Jim Meyering  <meyering@redhat.com>
45825         init.sh: fix an error in the previous change; add more comments
45826         * tests/init.sh: Compare exit code in loop against 9, not 2.
45827         Patch by Bruno Haible.
45828         Make the two tests more similar by adding an empty "then" clause.
45829         Add comments.
45831         init.sh: avoid unnecessary shell re-exec
45832         * tests/init.sh: Improve the re-exec-required check to first test the
45833         current shell.  If it passes the test, do not search for a shell that
45834         does pass, and do not re-exec.  This test is particularly contorted to
45835         avoid triggering misbehavior in Solaris 10's /bin/sh whereby any use
45836         of $(...) evokes a syntax error and causes immediate shell exit with
45837         status 2.  Bruno Haible reported that the re-exec made it impossible
45838         to single-step through any init.sh-using script.
45840 2010-05-16  Bruno Haible  <bruno@clisp.org>
45842         Fix collision between gnulib's and libintl's printf replacements.
45843         * lib/stdio.in.h (_GL_STDIO_STRINGIZE,
45844         _GL_STDIO_MACROEXPAND_AND_STRINGIZE): New macros.
45845         (printf): When using GNU C, map the __printf__ function to rpl_printf
45846         via __asm__. When not using GNU C, define rpl_printf instead of
45847         __printf__.
45848         * lib/printf.c: Ignore DEPENDS_ON_LIBINTL. Undoes the 2010-03-25
45849         commit.
45850         * lib/stdio-write.c: Ignore DEPENDS_ON_LIBINTL. Undoes the 2009-08-10
45851         commit.
45852         * m4/asm-underscore.m4: New file.
45853         * m4/stdio_h.m4 (gl_STDIO_H): Require gl_ASM_SYMBOL_PREFIX.
45854         * modules/stdio (Files): Add m4/asm-underscore.m4.
45855         (Makefile.am): Substitute ASM_SYMBOL_PREFIX.
45856         Reported by Ben Pfaff.
45858 2010-05-16  Bruno Haible  <bruno@clisp.org>
45860         verify: Avoid skipping the test on openSUSE 11.0.
45861         * tests/test-verify.sh: Unset MALLOC_PERTURB_.
45863 2010-05-13  Bruno Haible  <bruno@clisp.org>
45865         Avoid useless warnings from G++.
45866         * build-aux/c++defs.h (_GL_CXXALIASWARN_2, _GL_CXXALIASWARN1_2): Don't
45867         use _GL_WARN_ON_USE or _GL_WARN_ON_USE_CXX when optimizing.
45868         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
45870 2010-05-11  Jim Meyering  <meyering@redhat.com>
45872         maint.mk: tweak preceding change
45873         * top/maint.mk (gl_extract_significant_defines_): Make exclusion
45874         regexps tighter by anchoring at EOL, and make the new group "shy"
45875         for slightly decreased overhead.
45877 2010-05-11  Eric Blake  <eblake@redhat.com>
45879         maint.mk: gnulib doesn't guarantee NSIG
45880         * top/maint.mk (gl_extract_significant_defines_): Exclude NSIG.
45882 2010-05-10  Peter O'Gorman  <pogma@thewrittenword.com>
45884         test-pwrite.c: Remove unused variable declaration.
45885         * tests/test-pwrite.c (main): Remove read_buf declaration.
45887         Remove useless test-pwrite.sh file.
45888         * tests/test-pwrite.sh: Delete file.
45889         * modules/pwrite-tests: Remove references.
45890         Reported by Bruno Haible.
45892 2010-05-10  Peter O'Gorman  <pogma@thewrittenword.com>
45894         init.sh: fix a typo
45895         * tests/init.sh: Correct typo in MALLOC_PERTURB_ initialization.
45897 2010-05-10  Jim Meyering  <meyering@redhat.com>
45899         maint.mk: avoid using a temporary file in the always-defined-macros check
45900         * top/maint.mk (.re-defmac): Remove rule.
45901         (gl_trap_): Remove definition.
45902         (sc_prohibit_always-defined_macros): Rewrite not to create and
45903         depend on a temporary file.  Instead, depend on GNU grep's ability
45904         to read a list of regular expressions from stdin when given "-f -".
45906 2010-05-09  Bruno Haible  <bruno@clisp.org>
45908         Update to GNU gettext 0.18, part 1.
45909         * m4/gettext.m4: Update to GNU gettext 0.18.
45910         * m4/intl.m4: Likewise.
45911         * m4/po.m4: Likewise.
45912         * modules/gettext (Files): Add m4/fcntl-o.m4.
45913         (configure.ac): Require gettext infrastructure from version 0.18.
45915 2010-05-09  Jim Meyering  <meyering@redhat.com>
45917         init.sh: enable MALLOC_PERTURB_
45918         * tests/init.sh: Enable glibc's malloc-perturbing option.
45920         maint.mk: improve sc_cross_check_PATH_usage_in_tests
45921         With my recent change in init.sh from the two-line form:
45922             -#   : ${srcdir=.}
45923             -#   . "$srcdir/init.sh"; path_prepend_ .
45924             +#   . "${srcdir=.}/init.sh"; path_prepend_ .
45925         I noticed that using the one-line form would cause this test
45926         to fail with a false-positive, or to stop working altogether,
45927         depending on whether help-version changed or all the tests did.
45928         * top/maint.mk (_hv_regex): Remove this definition.
45929         (_hv_regex_weak): Use a weak regex to select all init.sh-sourcing files.
45930         (_hv_regex_strong): Use a stronger regex to check for conformance.
45931         (sc_cross_check_PATH_usage_in_tests): Rewrite to use the above.
45932         Give a separate diagnostic for lack of conforming use.
45934         maint.mk: prohibit definition of symbols defined by gnulib
45935         * top/maint.mk (sc_prohibit_always-defined_macros): Reject the
45936         definition of symbols defined by gnulib.
45938 2010-05-09  Bruno Haible  <bruno@clisp.org>
45940         acl: Avoid test failure on Cygwin-hosted mingw.
45941         * tests/test-set-mode-acl.sh: Skip test if USE_ACL is 0.
45943 2010-05-09  Bruno Haible  <bruno@clisp.org>
45945         error: Use system's fcntl function.
45946         * lib/error.c (fcntl): Undefine.
45948 2010-05-09  Jim Meyering  <meyering@redhat.com>
45950         verify: adjust formatting to be more consistent
45951         * lib/verify.h (_GL_GENSYM): Add a space before each of a few
45952         argument-list '('s, and after one comma.
45954 2010-05-09  Bruno Haible  <bruno@clisp.org>
45956         error: More reliable output on mingw.
45957         * lib/error.c: Include <windows.h>.
45958         (is_open): New function.
45959         (flush_stdout): Call it instead of fcntl, also if F_GETFL is not
45960         defined.
45962 2010-05-09  Bruno Haible  <bruno@clisp.org>
45964         vasnprintf: Fix syntax errors in libintl build on mingw.
45965         * lib/vasnprintf.c (VASNPRINTF): Move a closing brace. Undefine
45966         pad_ourselves and prec_ourselves after use.
45968 2010-05-08  Bruno Haible  <bruno@clisp.org>
45970         * lib/config.charset: Update comments for Cygwin 1.7.
45971         * lib/localcharset.c: Likewise.
45973 2010-05-07  Jim Meyering  <meyering@redhat.com>
45975         init.sh: improve comments
45976         * tests/init.sh: Recommend the one-line init.sh-sourcing idiom:
45977         . "${srcdir=.}/init.sh"; path_prepend_ .
45978         Add a note about path_prepend_ and the alternative of using
45979         TESTS_ENVIRONMENT.
45981 2010-05-06  Sergey Poznyakoff  <gray@gnu.org.ua>
45983         exclude: Unescape hashed patterns in wildcard mode.
45984         * lib/exclude.c (add_exclude): Unescape the pattern before adding it
45985         to the hash list.
45986         * tests/test-exclude8.sh: New test case.
45987         * modules/exclude-tests: Add new test.
45989 2010-05-05  Eric Blake  <eblake@redhat.com>
45991         verify: automate tests
45992         * modules/verify-tests: New module.
45993         * tests/test-verify.sh: New file.
45994         * tests/test-verify.c: Guard each negative test with a unique id.
45995         Also avoid warning about unused left hand of comma expressions.
45997 2010-05-05  Paul Eggert  <eggert@cs.ucla.edu>
45999         Further improvements to verify.h, suggested by Eric Blake.
46000         * lib/verify.h (_GL_CONCAT, _GL_CONCAT0, _GL_GENSYM): Renamed from
46001         the GL_* versions, to avoid collision with OpenGL.
46002         (_GL_COUNTER): New macro, so that we can fall back on __LINE__ if
46003         __COUNTER__ doesn't work.  Test that __COUNTER__ increments rather
46004         than testing merely whether it's defined.
46006         Modify verify.h to pacify gcc -Wredundant_decls.
46007         * lib/verify.h (GL_CONCAT, GL_CONCAT0, GL_GENSYM): New macros.
46008         These use the prefix "GL_" since they're likely to be useful elsewhere.
46009         We may need to break them out into a different .h file.
46010         (__COUNTER__): Define to 0 if the compiler doesn't support it.
46011         (verify) [!defined __cplusplus]: Use them to avoid duplicate decls
46012         of verify_function__.
46014 2010-05-05  Peter O'Gorman  <pogma@thewrittenword.com>
46016         Tests for module pwrite.
46017         * modules/pwrite-tests: New file.
46018         * tests/test-pwrite.sh: New file.
46019         * tests/test-pwrite.c: New file.
46021         New module pwrite.
46022         * lib/unistd.in.h (pwrite): New declaration.
46023         * lib/pwrite.c: New file, from glibc with modifications.
46024         * m4/pwrite.m4: New file.
46025         * m4/unistd_h.m4 (gl_UNISTD_H): Test whether pwrite is declared.
46026         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_PWRITE, HAVE_PWRITE,
46027         REPLACE_PWRITE.
46028         * modules/pwrite: New file.
46029         * modules/unistd (Makefile.am): Substitute GNULIB_PWRITE, HAVE_PWRITE,
46030         REPLACE_PWRITE.
46031         * tests/test-unistd-c++.cc: Check GNULIB_NAMESPACE::pwrite.
46032         * doc/posix-functions/pwrite.texi: Mention the new module.
46034 2010-05-05  Peter O'Gorman  <pogma@thewrittenword.com>
46036         pread: Update documentation.
46037         * doc/posix-functions/pread.texi: Mention the 'pread' module.
46039 2010-05-04  Eric Blake  <eblake@redhat.com>
46041         docs: update cygwin progress
46042         * doc/posix-functions/wctob.texi (wctob): Cygwin 1.7.6 will fix
46043         this bug.
46044         * doc/glibc-functions/get_nprocs_conf.texi (get_nprocs_conf):
46045         Added in cygwin 1.7.2.
46046         * doc/glibc-functions/get_phys_pages.texi (get_phys_pages):
46047         Likewise.
46048         * doc/glibc-functions/get_avphys_pages.texi (get_avphys_pages):
46049         Likewise.
46050         * doc/glibc-functions/dup3.texi (dup3): Likewise.
46051         * doc/glibc-functions/pipe2.texi (pipe2): Likewise.
46052         * doc/glibc-functions/accept4.texi (accept4): Likewise.
46053         * doc/posix-functions/strfmon.texi (strfmon): Likewise.
46054         * doc/glibc-functions/get_nprocs.texi (get_nprocs): Likewise.
46055         Mention nproc module.
46056         * doc/glibc-functions/xdr_uint16_t.texi (xdr_uint16_t): Mention
46057         bug in cygwin 1.7.5 addition.
46058         * doc/glibc-functions/xdr_uint32_t.texi (xdr_uint32_t): Likewise.
46059         * doc/glibc-functions/xdr_uint64_t.texi (xdr_uint64_t): Likewise.
46060         * doc/glibc-functions/xdr_uint8_t.texi (xdr_uint8_t): Likewise.
46061         * doc/glibc-functions/xdr_array.texi (xdr_array): Added in cygwin
46062         1.7.5.
46063         * doc/glibc-functions/xdr_bool.texi (xdr_bool): Likewise.
46064         * doc/glibc-functions/xdr_bytes.texi (xdr_bytes): Likewise.
46065         * doc/glibc-functions/xdr_char.texi (xdr_char): Likewise.
46066         * doc/glibc-functions/xdr_double.texi (xdr_double): Likewise.
46067         * doc/glibc-functions/xdr_enum.texi (xdr_enum): Likewise.
46068         * doc/glibc-functions/xdr_float.texi (xdr_float): Likewise.
46069         * doc/glibc-functions/xdr_free.texi (xdr_free): Likewise.
46070         * doc/glibc-functions/xdr_hyper.texi (xdr_hyper): Likewise.
46071         * doc/glibc-functions/xdr_int.texi (xdr_int): Likewise.
46072         * doc/glibc-functions/xdr_int16_t.texi (xdr_int16_t): Likewise.
46073         * doc/glibc-functions/xdr_int32_t.texi (xdr_int32_t): Likewise.
46074         * doc/glibc-functions/xdr_int64_t.texi (xdr_int64_t): Likewise.
46075         * doc/glibc-functions/xdr_int8_t.texi (xdr_int8_t): Likewise.
46076         * doc/glibc-functions/xdr_long.texi (xdr_long): Likewise.
46077         * doc/glibc-functions/xdr_longlong_t.texi (xdr_longlong_t):
46078         Likewise.
46079         * doc/glibc-functions/xdr_netobj.texi (xdr_netobj): Likewise.
46080         * doc/glibc-functions/xdr_opaque.texi (xdr_opaque): Likewise.
46081         * doc/glibc-functions/xdr_pointer.texi (xdr_pointer): Likewise.
46082         * doc/glibc-functions/xdr_reference.texi (xdr_reference):
46083         Likewise.
46084         * doc/glibc-functions/xdr_short.texi (xdr_short): Likewise.
46085         * doc/glibc-functions/xdr_sizeof.texi (xdr_sizeof): Likewise.
46086         * doc/glibc-functions/xdr_string.texi (xdr_string): Likewise.
46087         * doc/glibc-functions/xdr_u_char.texi (xdr_u_char): Likewise.
46088         * doc/glibc-functions/xdr_u_hyper.texi (xdr_u_hyper): Likewise.
46089         * doc/glibc-functions/xdr_u_int.texi (xdr_u_int): Likewise.
46090         * doc/glibc-functions/xdr_u_long.texi (xdr_u_long): Likewise.
46091         * doc/glibc-functions/xdr_u_longlong_t.texi (xdr_u_longlong_t):
46092         Likewise.
46093         * doc/glibc-functions/xdr_u_short.texi (xdr_u_short): Likewise.
46094         * doc/glibc-functions/xdr_union.texi (xdr_union): Likewise.
46095         * doc/glibc-functions/xdr_vector.texi (xdr_vector): Likewise.
46096         * doc/glibc-functions/xdr_void.texi (xdr_void): Likewise.
46097         * doc/glibc-functions/xdr_wrapstring.texi (xdr_wrapstring):
46098         Likewise.
46099         * doc/glibc-functions/xdrmem_create.texi (xdrmem_create):
46100         Likewise.
46101         * doc/glibc-functions/xdrrec_create.texi (xdrrec_create):
46102         Likewise.
46103         * doc/glibc-functions/xdrrec_endofrecord.texi
46104         (xdrrec_endofrecord): Likewise.
46105         * doc/glibc-functions/xdrrec_eof.texi (xdrrec_eof): Likewise.
46106         * doc/glibc-functions/xdrrec_skiprecord.texi (xdrrec_skiprecord):
46107         Likewise.
46108         * doc/glibc-functions/xdrstdio_create.texi (xdrstdio_create):
46109         Likewise.
46111 2010-05-04  Jim Meyering  <meyering@redhat.com>
46113         gendocs.sh: make its "-s FILE" option more useful
46114         * build-aux/gendocs.sh: When honoring the -s FILE option, update
46115         $PACKAGE to reflect the probably-different basename of "FILE".
46117 2010-05-03  Giuseppe Scrivano  <gscrivano@gnu.org>
46119         bootstrap: don't ignore download_po_files failure
46120         * build-aux/bootstrap (update_po_files): Don't ignore download_po_files
46121         failure.
46123 2010-05-03  Jim Meyering  <meyering@redhat.com>
46125         maint.mk: allow to pass options to gendocs.sh
46126         * top/maint.mk (web-manual): Pass gendocs_options_ to gendocs.sh.
46127         (gendocs_options_): New overridable variable.
46129         gnu-web-doc-update: don't ignore configure or build failure
46130         * build-aux/gnu-web-doc-update: Exit nonzero upon internal failure.
46132         announce-gen: backslash-escape '@'s in --help output
46133         * build-aux/announce-gen: Fix syntax errors.
46135         maint.mk, announce-gen: allow project-specific announcement mail headers
46136         * top/maint.mk (translation_project_): Define default.
46137         (announcement_Cc_, announcement_mail_headers_): Likewise.
46138         (announcement): Invoke announce-gen with new --mail-headers option.
46139         * build-aux/announce-gen: New option: --mail-headers=HEADERS.
46141         test-xalloc-die: avoid unwarranted test failure on OpenSolaris 5.11
46142         * tests/test-xalloc-die.sh: Redirect stdout before stderr, (i.e.,
46143         "> out 2> err", rather than "2> err > out").  Otherwise, with /bin/sh
46144         on OpenSolaris 5.11 snv_134, we would end up with a stray "1> out"
46145         line in the "err2" output file when running "make check" in verbose
46146         mode (i.e., with set -x enabled).
46148 2010-05-03  Bruno Haible  <bruno@clisp.org>
46150         wctob: Fix for weird platforms.
46151         * lib/wctob.c (wctob): When wint_t is larger than wchar_t, check the
46152         argument value.
46154 2010-05-03  Jim Meyering  <meyering@redhat.com>
46156         maint.mk: prohibit unwarranted use of <strings.h>
46157         * top/maint.mk (sc_prohibit_strings_without_use): Reject inclusion of
46158         strings.h in a file that does not also use strcasecmp, strncasecmp,
46159         ffs or ffsll.
46161         maint.mk: remove obsolete comments
46162         * top/maint.mk: Remove stale, commented-out rules.
46164 2010-05-02  Bruno Haible  <bruno@clisp.org>
46166         wcwidth: Declare also when it's aliased.
46167         * lib/wchar.in.h (wcwidth): Don't test whether wcwidth is defined as a
46168         macro.
46170 2010-05-02  Bruno Haible  <bruno@clisp.org>
46172         Fix regression from 2010-04-25.
46173         * gnulib-tool (func_modules_transitive_closure): Check the status of
46174         all modules, not only of the tests that are of the form foo-tests where
46175         foo is a module.
46177 2010-05-02  Bruno Haible  <bruno@clisp.org>
46179         wctob: Work around nasty Cygwin 1.7.2 bug.
46180         * m4/wctob.m4 (gl_FUNC_WCTOB): Detect the Cygwin bug.
46181         * doc/posix-functions/wctob.texi: Mention the Cygwin bug.
46183 2010-05-01  Bruno Haible  <bruno@clisp.org>
46185         fpurge: Sharper test.
46186         * tests/test-fpurge.c (main): Add one more ftell check.
46187         * modules/fpurge-tests (Depends-on): Add ftell.
46188         Suggested by Eric Blake.
46190 2010-05-01  Bruno Haible  <bruno@clisp.org>
46192         ftello: Another test.
46193         * tests/test-ftello3.c: New file.
46194         * modules/ftello-tests (Files): Add it.
46195         (Makefile.am): Add it to TESTS and check_PROGRAMS. Augment
46196         MOSTLYCLEANFILES.
46198         ftell: Another test.
46199         * tests/test-ftell3.c: New file.
46200         * modules/ftell-tests (Files): Add it.
46201         (Makefile.am): Add it to TESTS and check_PROGRAMS. Augment
46202         MOSTLYCLEANFILES.
46204 2010-05-01  Bruno Haible  <bruno@clisp.org>
46206         ftell, ftello: Work around Solaris bug.
46207         * m4/ftello.m4 (gl_FUNC_FTELLO): Detect Solaris bug.
46208         * lib/ftello.c: Include stdio-impl.h.
46209         (ftello): On Solaris, when _IOWRT is set, compute the result without
46210         looking at _IOREAD.
46211         * modules/ftello (Files): Add lib/stdio-impl.h.
46212         * doc/posix-functions/ftell.texi: Mention Solaris bug.
46213         * doc/posix-functions/ftello.texi: Likewise.
46214         Reported by Eric Blake.
46216 2010-05-01  Bruno Haible  <bruno@clisp.org>
46218         freading: Adapt to special meaning of _IOREAD flag on Solaris.
46219         * lib/freading.c (freading): On Solaris, ignore the _IOREAD flag if
46220         the _IOWRT flag is also set.
46222 2010-05-01  Bruno Haible  <bruno@clisp.org>
46224         Fix doc about a HP-UX stdio bug.
46225         * doc/posix-functions/ftell.texi: Mark HP-UX bug as unfixed.
46226         * doc/posix-functions/ftello.texi: Likewise.
46228 2010-05-01  Bruno Haible  <bruno@clisp.org>
46230         lseek test: Fix failure on Solaris.
46231         * tests/test-lseek.sh: Partially revert 2010-04-20 commit. Consume all
46232         output.
46234 2010-04-30  Jim Meyering  <meyering@redhat.com>
46236         bootstrap: don't ignore failure to generate po*/Makevars
46237         * build-aux/bootstrap (with_gettext): Don't ignore failure
46238         to create po/Makevars or runtime-po/Makevars.
46240 2010-04-29  Eric Blake  <eblake@redhat.com>
46242         headers: relax license to LGPLv2+
46243         * modules/fcntl-h (License): Relax license.
46244         * modules/getopt-posix (License): Likewise.
46245         * modules/locale (License): Likewise.
46246         * modules/math (License): Likewise.
46247         * modules/pty (License): Likewise.
46248         * modules/sched (License): Likewise.
46249         * modules/search (License): Likewise.
46250         * modules/spawn (License): Likewise.
46251         * modules/stdarg (License): Likewise.
46252         * modules/sysexits (License): Likewise.
46254 2010-04-29  Jim Meyering  <meyering@redhat.com>
46256         inttypes: relax license to LGPLv2+
46257         * modules/inttypes (License): Relax license.
46259 2010-04-29  Simon Josefsson  <simon@josefsson.org>
46261         * top/maint.mk (indent): Run twice to produce idempotent results.
46263 2010-04-28  Bruno Haible  <bruno@clisp.org>
46265         getdate: Generate getdate.c in the source directory.
46266         * modules/getdate (Makefile.am): Add rule for getdate.c. Augment
46267         MOSTLYCLEANFILES.
46268         Suggested by Daniel Richard G. <skunk@iskunk.org> and Ralf Wildenhues.
46270 2010-04-27  Andreas Gruenbacher  <agruen@suse.de>  (tiny change)
46272         * lib/utimens.c: On Tru64, the timestamp parameter of utimens(2)
46273         is not declared as a const *; avoid warnings in that case.
46275 2010-04-28  Eric Blake  <eblake@redhat.com>
46277         canonicalize-lgpl: avoid compiler warning
46278         * lib/canonicalize-lgpl.c (versioned_symbol): Avoid an 'empty
46279         declaration' / 'extraneous semicolon' warning with some compilers.
46280         Reported by Andreas Gruenbacher.
46282 2010-04-28  Jim Meyering  <meyering@redhat.com>
46284         init.sh: ensure a more reliable exit status when exiting via trap
46285         * tests/init.sh (setup_): Don't rely on $? in signal handler.
46286         Inspired by patches from Dmitry V. Levin.
46287         Also trap on signal 3 (SIGQUIT).
46289 2010-04-27  Bruno Haible  <bruno@clisp.org>
46291         Update doc about utimes().
46292         * doc/posix-functions/utimes.texi: Mention the OSF/1 problem and the
46293         'utimens' module.
46294         Reported by Andreas Gruenbacher <agruen@suse.de>.
46296 2010-04-27  Eric Blake  <eblake@redhat.com>
46298         full-read, full-write: relax license
46299         * modules/full-read (License): Drop to LGPLv2+.
46300         * modules/full-write (License): Likewise.
46301         * modules/safe-read (License): Likewise.
46302         * modules/safe-write (License): Likewise.
46304         pthread: mention library for linking
46305         * modules/pthread (Link): Mention $(LIB_PTHREAD).
46307 2010-04-27  Jim Meyering  <meyering@redhat.com>
46309         maint.mk: fix a bug introduced in last change
46310         * top/maint.mk (gl_assured_headers_): Now that all names are on
46311         one line, use sed's "g" modifier.  Note that while the \.in\.h LHS
46312         is not anchored to end of word, it should be adequate.
46314         maint.mk: avoid side-effect in latest syntax-check
46315         * top/maint.mk (sc_prohibit_always_true_header_tests): Rework not
46316         to run commands via $(shell...), and hence to incur cost only when
46317         the new rule is actually run.
46319         maint.mk: syntax-check: prohibit HAVE_<header>_H that are always true
46320         Derive the list of guaranteed header names from gnulib/lib/*.in.h,
46321         and use that to create a regexp used to detect all #if HAVE_..._H uses.
46322         * top/maint.mk (sc_prohibit_always_true_header_tests): New rule.
46323         (gl_assured_headers_, az_, AZ_): Define.
46324         (gl_header_upper_case_or_, gl_have_header_regex_): Define.
46326 2010-04-26  Jim Meyering  <jim@meyering.net>
46327             Bruno Haible  <bruno@clisp.org>
46329         gnulib-common.m4: make glibc write diagnostics to stderr, not /dev/tty
46330         * m4/gnulib-common.m4 (gl_COMMON_BODY): Set LIBC_FATAL_STDERR_.
46331         Prompted by an exchange with Gilles Espinasse.
46333 2010-04-26  Jim Meyering  <meyering@redhat.com>
46335         git-version-gen: aesthetic tweak
46336         * build-aux/git-version-gen: Use "$nl" rather than a literal,
46337         so that the command remains on a single line.
46339 2010-04-26  Eric Blake  <eblake@redhat.com>
46341         git-version-gen: allow use on EBCDIC hosts
46342         * build-aux/git-version-gen (dirty): Use literal rather than tying
46343         ourselves to ascii.
46344         Reported by Steve Goetze.
46346 2010-04-25  Bruno Haible  <bruno@clisp.org>
46348         netdb: Add support for GNULIB_POSIXCHECK.
46349         * lib/netdb.in.h: Include warn-on-use.h.
46350         (getaddrinfo, freeaddrinfo, gai_strerror, getnameinfo): Warn if these
46351         functions are used when GNULIB_POSIXCHECK is defined and the
46352         getaddrinfo module is not in use.
46353         * m4/netdb_h.m4 (gl_HEADER_NETDB): Test whether getaddrinfo,
46354         freeaddrinfo, gai_strerror, getnameinfo are declared.
46355         * modules/netdb (Depends-on): Add warn-on-use.
46356         (Makefile.am): Include warn-on-use.h in netdb.h.
46358 2010-04-24  Ian Beckwith  <ianb@erislabs.net>
46360         build: avoid "make check" failure without .git/ directory
46361         * Makefile (sc_prefer_ac_check_funcs_once): Skip this test when
46362         there is no .git/ directory.
46364 2010-04-25  Bruno Haible  <bruno@clisp.org>
46366         ptsname: Fix misuse of ttyname_r.
46367         * lib/ptsname.c (__ptsname_r): Use __ttyname_r's return value instead
46368         of errno.
46370 2010-04-25  Bruno Haible  <bruno@clisp.org>
46372         ttyname_r: Make it work on Solaris 10.
46373         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Define HAVE_POSIXDECL_TTYNAME_R
46374         if the system function has the POSIX declaration. Test whether the
46375         function fails if the buffer is less than 128 bytes large.
46376         * lib/ttyname_r.c (ttyname_r): Handle both possible declarations of the
46377         system's ttyname_r function. Provide a reasonably large buffer.
46378         * modules/ttyname_r (Depends-on): Add extensions.
46379         * doc/posix-functions/ttyname_r.texi: Mention the Solaris problem.
46381 2010-04-25  Bruno Haible  <bruno@clisp.org>
46383         Use the 'extensions' module for some more functions on Solaris.
46384         * doc/posix-functions/asctime_r.texi: Recommend to use the 'extensions'
46385         module.
46386         * doc/posix-functions/ctime_r.texi: Likewise.
46387         * doc/posix-functions/getgrgid_r.texi: Likewise.
46388         * doc/posix-functions/getgrnam_r.texi: Likewise.
46389         * doc/posix-functions/getpwnam_r.texi: Likewise.
46390         * doc/posix-functions/getpwuid_r.texi: Likewise.
46391         * doc/posix-functions/readdir_r.texi: Likewise.
46392         * doc/posix-functions/sigwait.texi: Likewise.
46393         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Add comment.
46394         * doc/posix-functions/getlogin_r.texi: Mark Solaris problem as fixed.
46396 2010-04-25  Bruno Haible  <bruno@clisp.org>
46398         ttyname_r: Make it work on MacOS X 10.4 and Solaris 10.
46399         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Test whether the system function
46400         has the POSIX declaration. Set REPLACE_TTYNAME_R if not.
46401         * lib/ttyname_r.c: Include <limits.h>.
46402         (ttyname_r): Define using the system's ttyname_r function, if it exists
46403         and not on Solaris.
46404         * lib/unistd.in.h (ttyname_r): Replace function if REPLACE_TTYNAME_R is
46405         set.
46406         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize REPLACE_TTYNAME_R.
46407         * modules/unistd (Makefile.am): Substitute REPLACE_TTYNAME_R.
46408         * doc/posix-functions/ttyname_r.texi: Mark the problem as fixed.
46409         Reported by Simon Josefsson.
46411 2010-04-25  Bruno Haible  <bruno@clisp.org>
46413         Mention effects of _POSIX_PTHREAD_SEMANTICS on Solaris.
46414         * doc/posix-functions/asctime_r.texi: Mention the Solaris problem.
46415         * doc/posix-functions/ctime_r.texi: Likewise.
46416         * doc/posix-functions/getgrgid_r.texi: Likewise.
46417         * doc/posix-functions/getgrnam_r.texi: Likewise.
46418         * doc/posix-functions/getlogin_r.texi: Likewise.
46419         * doc/posix-functions/getpwnam_r.texi: Likewise.
46420         * doc/posix-functions/getpwuid_r.texi: Likewise.
46421         * doc/posix-functions/readdir_r.texi: Likewise.
46422         * doc/posix-functions/sigwait.texi: Likewise.
46423         * doc/posix-functions/ttyname_r.texi: Likewise.
46424         Reported by Simon Josefsson.
46426 2010-04-25  Bruno Haible  <bruno@clisp.org>
46428         gnulib-tool: Don't include hairy tests of dependencies in testdirs.
46429         * gnulib-tool (func_usage): Document that --with-*-tests options apply
46430         also to --create-testdir.
46431         (func_acceptable): Don't consider the status of *-tests modules here.
46432         (func_modules_transitive_closure): Consider it here, before including a
46433         test module.
46434         (func_import, func_create_testdir): Set inc_all_direct_tests,
46435         inc_all_indirect_tests.
46436         * doc/gnulib.texi (Extra tests modules): Document new behaviour of
46437         --create-testdir and --create-megatestdir.
46439 2010-04-25  Bruno Haible  <bruno@clisp.org>
46441         gnulib-tool: Add --without-*-tests options.
46442         * gnulib-tool (func_usage): Document the --without-*-tests options.
46443         (excl_cxx_tests, excl_longrunning_tests, excl_privileged_tests,
46444         excl_unportable_tests): New variables.
46445         Fail if they are specified with --import or --update.
46446         (func_acceptable): Respect the excl_*_tests variables.
46447         (func_import): Set the excl_*_tests variables to empty.
46449 2010-04-25  Simon Josefsson  <simon@josefsson.org>
46450             Bruno Haible  <bruno@clisp.org>
46452         Work around a MacOS X 10.4 bug with openpty.
46453         * doc/glibc-functions/openpty.texi: Mention the MacOS X 10.4 bug.
46454         * tests/test-openpty.c (main): Close the master side explicitly.
46456 2010-04-25  Bruno Haible  <bruno@clisp.org>
46458         strnlen: Fix a C++ test error on MacOS X and Solaris.
46459         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Don't set REPLACE_STRNLEN to 1 if
46460         the function is not declared.
46461         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com> and
46462         Simon Josefsson.
46464 2010-04-24  Bruno Haible  <bruno@clisp.org>
46466         Avoid a gcc warning.
46467         * tests/test-vasprintf.c (test_vasprintf, test_asprintf): Pass argument
46468         of correct type for %08lx directive.
46469         Reported by Eric Blake.
46471 2010-04-24  Bruno Haible  <bruno@clisp.org>
46473         vasnprintf: Correct errno value in case of out-of-memory.
46474         * lib/vasnprintf.c (VASNPRINTF): Set errno to 0 before calling SNPRINTF
46475         or sprintf. Use the errno value from SNPRINTF or sprintf.
46476         Reported by Ian Beckwith <ianb@erislabs.net>.
46478 2010-04-24  Bruno Haible  <bruno@clisp.org>
46480         ansi-c++-opt: Find correct compiler when cross-compiling.
46481         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): Use AC_CHECK_TOOLS instead of
46482         AC_CHECK_PROGS.
46483         Reported by Simon Josefsson.
46485 2010-04-24  Giuseppe Scrivano  <gscrivano@gnu.org>
46487         vc-list-files: Add support for subversion
46488         * build-aux/vc-list-files: Use "svn list" to generate the list of
46489         files controlled by subversion.
46491 2010-04-23  Jim Meyering  <meyering@redhat.com>
46493         vc-list-files tests: convert to use init.sh
46494         * tests/test-vc-list-files-cvs.sh: Invoke "$srcdir/init.sh" and
46495         path_prepend_.
46496         Use Exit, not exit.
46497         Use skip_ rather than open coding it.
46498         Remove trap set-up and compare definitions.
46499         * tests/test-vc-list-files-git.sh: Likewise.
46500         * modules/vc-list-files-tests (Files): Add tests/init.sh.
46502 2010-04-22  Simon Josefsson  <simon@josefsson.org>
46504         * top/maint.mk (sc_prohibit_backup_files): Prohibit checked in
46505         backup files.
46507 2010-04-21  Simon Josefsson  <simon@josefsson.org>
46509         * tests/test-vasprintf.c (test_vasprintf, test_asprintf): Test %08lx.
46511 2010-04-20  Eric Blake  <eblake@redhat.com>
46513         tests: be robust to ignored SIGPIPE
46514         * tests/test-select-in.sh: Consume all output.
46515         * tests/test-lseek.sh: Check correct exit status, while avoiding
46516         EPIPE.
46518 2010-04-20  Simon Josefsson  <simon@josefsson.org>
46519             Bruno Haible  <bruno@clisp.org>
46521         visibility: Don't use -fvisibility if it leads to a warning.
46522         * m4/visibility.m4 (gl_VISIBILITY): Check whether -Werror is usable. If
46523         yes, don't pretend that visibility works if it leads to a warning.
46524         Reported by Mike Gran <spk121@yahoo.com>.
46526 2010-04-20  Andreas Gruenbacher  <agruen@suse.de>
46528         * build-aux/bootstrap: Use "git -h" for testing for supported options
46529         instead of "git --help".  The short-form option only shows a summary,
46530         and doesn't layout the full man page.  Grep for the full option name
46531         in the summary, too.
46533 2010-04-19  Bruno Haible  <bruno@clisp.org>
46535         relocatable: Drop the need to define RELOCATABLE_STRIP in Makefile.am.
46536         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): Set RELOCATABLE_STRIP.
46537         * doc/relocatable-maint.texi (Supporting Relocation): Remove the
46538         mention of RELOCATABLE_STRIP.
46539         Reported by Sylvain Beucler <beuc@beuc.net>.
46541 2010-04-19  Bruno Haible  <bruno@clisp.org>
46543         * lib/diffseq.h: Fix typo in comment.
46544         Reported by Eric Blake.
46546 2010-04-19  Bruno Haible  <bruno@clisp.org>
46548         ioctl: Move autoconf macro to a .m4 file.
46549         * m4/ioctl.m4: New file, extracted from modules/ioctl.
46550         * modules/ioctl (Files): Add it.
46551         (configure.ac): Simply invoke gl_FUNC_IOCTL.
46552         Reported by Ian Beckwith <ianb@erislabs.net>.
46554 2010-04-18  Andreas Gruenbacher  <agruen@suse.de>
46555             Bruno Haible  <bruno@clisp.org>
46557         diffseq: Accommodate use-case with abstract arrays.
46558         * lib/diffseq.h (struct context): Remove xvec, yvec fields if ELEMENT
46559         is not defined.
46560         (diag, compareseq): Remove local variables xv, yv if ELEMENT is not
46561         defined. Use local macro XREF_YREF_EQUAL instead of EQUAL.
46563 2010-04-18  Bruno Haible  <bruno@clisp.org>
46565         * doc/posix-headers/stdbool.texi: More precise wording.
46567 2010-04-17  Jim Meyering  <meyering@redhat.com>
46569         maint.mk: use gnu-style indentation in an embedded perl script
46570         * top/maint.mk (detect_empty_lines_at_EOF_): Clean up formatting.
46571         Rename variable: s/two/last_two_bytes/
46573 2010-04-16  Eric Blake  <eblake@redhat.com>
46575         test-stdbool: skip test that fails with Solaris CC
46576         * tests/test-stdbool.c (f): Skip test that causes compilation
46577         error under buggy C++ compiler.
46578         * lib/stdbool.in.h: Document the limitation.
46579         * doc/posix-headers/stdbool.texi (stdbool.h): Likewise.
46581         setenv: allow compilation with C++
46582         * lib/setenv.c (__add_to_environ): Add a cast.  Also, drop use of
46583         register keyword.
46585         stdint: allow test to pass with C++
46586         * tests/test-stdint.c: Define __STDC_CONSTANT_MACROS, for glibc.
46588         getopt: allow compilation with C++
46589         * lib/getopt_int.h (__ordering): Hoist enum declaration outside
46590         struct.
46591         * lib/getopt.c (_getopt_internal_r): Use correct type.
46592         Reported by Dagobert Michelson, via Joel E. Denny.
46594 2010-04-16  Bruno Haible  <bruno@clisp.org>
46596         Override netdb.h always.
46597         * modules/netdb (Makefile.am): Augment BUILT_SOURCES always.
46598         * m4/netdb_h.m4 (gl_HEADER_NETDB): Don't set NETDB_H.
46599         Reported by Ludovic Courtès <ludo@gnu.org>.
46601 2010-04-15  Bruno Haible  <bruno@clisp.org>
46603         openpty: Fix mistake from 2010-03-21.
46604         * m4/pty.m4 (gl_FUNC_OPENPTY): Define HAVE_OPENPTY when openpty exists.
46605         Reported by Simon Josefsson.
46607 2010-04-15  Eric Blake  <eblake@redhat.com>
46609         test-forkpty: fix expected signature
46610         * tests/test-forkpty.c (SIGNATURE_CHECK): Add appropriate const.
46611         Reported by Simon Josefsson.
46613 2010-04-15  Jim Meyering  <meyering@redhat.com>
46615         maint.mk: texinfo_suffix_re_: correct the default regexp
46616         * top/maint.mk (texinfo_suffix_re_): Fix default regexp.
46618         * top/maint.mk (sc_texinfo_acronym): Improve filename regexp, and
46619         make it configurable via texinfo_suffix_re_.
46621 2010-04-14  Eric Blake  <eblake@redhat.com>
46623         strtok_r: relax license to LGPLv2+
46624         * modules/strtok_r (License): Relax license.
46625         Reported by Matthias Bolte.
46627 2010-04-14  Simon Josefsson  <simon@josefsson.org>
46629         * lib/gc-libgcrypt.c (gc_init): Use MIN_GCRYPT_VERSION set to
46630         version 1.4.4 by default instead of requiring the libgcrypt
46631         version used during build.  This makes it possible to use the
46632         application with older but still binary compatible libgcrypt
46633         versions.
46635 2010-04-13  Eric Blake  <eblake@redhat.com>
46637         getopt-gnu: match recent glibc fixes and posix ruling
46638         * tests/test-getopt.h (test_getopt): Strengthen tests of leading
46639         '+' handling, when requesting extensions.
46640         * tests/test-getopt_long.h (test_getopt_long): Strengthen test of
46641         'W;' handling.
46642         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Detect glibc 2.11 bug.
46643         * doc/posix-functions/getopt.texi (getopt): Document this.
46644         * doc/glibc-functions/getopt_long.texi (getopt_long): Likewise.
46645         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
46646         Likewise.
46648         getopt: merge bug fixes from glibc
46649         * lib/getopt.c (_getopt_internal_r): Use correct message for 'W;'
46650         diagnostics.  Honor '+:' correctly.  Reject ';'.
46652         getopt-posix: detect MacOS bug
46653         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Reject MacOS botch of
46654         optind when missing a required argument.
46655         * doc/posix-functions/getopt.texi (getopt): Document the bug.
46656         * doc/glibc-functions/getopt_long.texi (getopt_long): Likewise.
46657         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
46658         Likewise.
46660         getopt-posix: avoid spurious failure on Solaris
46661         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Check for getopt_clip as
46662         an indicator that setting optind=1 is sufficient for reset.
46664         getopt-posix: avoid spurious failure on FreeBSD
46665         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Check for optreset even
46666         in POSIX mode, since the m4 test uses it.
46668         gnulib-tool: silence warning on BSD sh
46669         * gnulib-tool: Avoid leaking warning about unknown 'declare'.
46671 2010-04-13  Jim Meyering  <meyering@redhat.com>
46673         doc: users.txt: GNU patch now uses gnulib
46674         * users.txt: Add patch.
46676 2010-04-12  Jim Meyering  <meyering@redhat.com>
46678         maint.mk: generate more concise timing data for syntax-check rules
46679         * top/maint.mk ($(sc_z_rules_)): Remove the ":", "sc_" prefix and
46680         " done" from each line that reports a syntax-check test duration.
46682 2010-04-12  Andreas Gruenbacher  <agruen@suse.de>
46684         git-version-gen: use "git update-index..." rather than "git status"
46685         * build-aux/git-version-gen: Use git update-index --refresh, not
46686         "git status".  With some versions of git, "git status" would fail
46687         to update the index and result in an unwarranted "-dirty" suffix.
46689 2010-04-11  Jim Meyering  <meyering@redhat.com>
46691         openat: correct formatting (no semantic change)
46692         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Correct formatting in AC_DEFINE.
46693         Suggested by Bruno Haible.
46695 2010-04-11  Bruno Haible  <bruno@clisp.org>
46697         Stricter declaration checking in testdirs.
46698         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
46699         If for_tests is true, augment AM_CPPFLAGS to define
46700         GNULIB_STRICT_CHECKING.
46701         * build-aux/warn-on-use.h (_GL_WARN_ON_USE, _GL_WARN_ON_USE_CXX): When
46702         GNULIB_STRICT_CHECKING is defined, verify that the function is
46703         declared.
46705 2010-04-11  Paolo Bonzini  <bonzini@gnu.org>
46706             Bruno Haible  <bruno@clisp.org>
46708         libunistring: Improve configure output.
46709         * m4/libunistring.m4 (gl_LIBUNISTRING): Check for libiconv first.
46710         Don't say "consider installing GNU libunistring" when checking again
46711         with libiconv.
46713 2010-04-11  Bruno Haible  <bruno@clisp.org>
46715         libunistring: Correct value of $LTLIBUNISTRING.
46716         * m4/libunistring.m4 (gl_LIBUNISTRING): When it depends on libiconv,
46717         correct the value of $LTLIBUNISTRING.
46719 2010-04-11  Bruno Haible  <bruno@clisp.org>
46721         havelib: Add static libraries to LIBS in the right order.
46722         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): When $LIB[]NAME contains no
46723         -l options, prepend it to $LIBS, instead of appending it to $LIBS.
46725 2010-04-11  Bruno Haible  <bruno@clisp.org>
46727         libunistring: Detect libunistring also when it depends on libiconv.
46728         * m4/libunistring.m4 (gl_LIBUNISTRING): Unset the cached result before
46729         the second AC_LIB_HAVE_LINKFLAGS invocation.
46731 2010-04-11  James Youngman  <jay@gnu.org>
46733         close-stream: declare local scalars to be "const"
46734         * lib/close-stream.c (close_stream): Make boolean variables const
46735         to document the fact that we set but do not change them.
46737 2010-04-11  Bruno Haible  <bruno@clisp.org>
46739         * m4/libunistring.m4 (gl_LIBUNISTRING): Fix typo in comment.
46741 2010-04-11  Jim Meyering  <meyering@redhat.com>
46743         maint.mk: don't include dist-check.mk
46744         * top/maint.mk: Remove bogus include directive.
46746         maint.mk: improve empty-line-at-EOF check
46747         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Use Perl-based
46748         solution, rather than tail+Perl-based one.  The latter would read
46749         a few kilobytes from the end of each file, and did not handle empty
46750         files properly.
46752         maint.mk: print the elapsed time for each syntax-check rule
46753         * top/maint.mk (sc_m_rules_): Save start time in a file.
46754         (sc_z_rules_): New rules: remove temp file and print elapsed time.
46755         (local-check): Interpose the .z rules
46757 2010-04-11  Jim Meyering  <meyering@redhat.com>
46759         maint.mk: detect_empty_lines_at_EOF_: avoid FP for an empty file
46760         * top/maint.mk (detect_empty_lines_at_EOF_): Don't confuse an
46761         empty file with one that ends in an empty line.
46763 2010-04-10  Bruno Haible  <bruno@clisp.org>
46765         mkdir: Make it work on mingw64.
46766         * lib/sys_stat.in.h: Include <direct.h> together with <io.h>.
46767         * lib/mkdir.c: Update comment.
46768         Reported by Roman Donchenko (Роман Донченко) <dxdragon@yandex.ru>.
46770 2010-04-10  Bruno Haible  <bruno@clisp.org>
46772         Don't override improved macro from newer autoconf.
46773         * m4/gnulib-common.m4 (AC_C_RESTRICT): Don't define for
46774         autoconf >= 2.62.
46775         Reported by Joel E. Denny <jdenny@clemson.edu>.
46777 2010-04-10  Jim Meyering  <meyering@redhat.com>
46779         maint.mk: new syntax-check rule: prohibit empty lines at end of file
46780         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): New rule.
46782         maint.mk: correct a diagnostic
46783         * top/maint.mk (sc_prohibit_HAVE_MBRTOWC): Fix obsolete use of $re
46784         in diagnostic; now use $prohibit.
46786 2010-04-10  Bruno Haible  <address@hidden>
46788         fchownat: Fix a C++ test error on Solaris 8.
46789         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Don't set REPLACE_FCHOWNAT to 1 if
46790         the function does not exist.
46792 2010-04-10  Bruno Haible  <bruno@clisp.org>
46794         vasnprintf: Add more tests.
46795         * tests/test-vasnprintf-posix.c: Include <errno.h>.
46796         (test_function): Test converting an invalid wide string.
46798         vasnprintf: Correct handling of unconvertible wide string arguments.
46799         * lib/vasnprintf.c (MAX_ROOM_NEEDED): New function, extracted from
46800         VASNPRINTF.
46801         (VASNPRINTF): Use it. After snprintf failed, allocate more memory only
46802         if HAVE_SNPRINTF_RETVAL_C99 is false and the allocated memory is
46803         smaller than the expected maximum need for the directive. Set errno to
46804         EILSEQ, not EINVAL, when the directive is 'c' or 's'.
46805         (local_strnlen, local_wcslen, local_wcsnlen): Update conditions.
46806         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Require AC_C_INLINE and
46807         gl_SNPRINTF_RETVAL_C99. Define HAVE_SNPRINTF_RETVAL_C99.
46808         * modules/vasnprintf (Files): Add m4/printf.m4.
46809         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
46811 2010-04-10  Bruno Haible  <bruno@clisp.org>
46813         vasnprintf: Fix crash in %ls directive.
46814         * lib/vasnprintf.c (VASNPRINTF): Don't abort when a unconvertible wide
46815         string is passed as argument to %ls, with no precision and no width.
46816         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
46818 2010-04-10  Bruno Haible  <bruno@clisp.org>
46820         vasnprintf: Fix multiple test failures on mingw.
46821         * lib/vasnprintf.c (SNPRINTF) [mingw]: Define to snprintf, not
46822         _snprintf, or snwprintf, not _snwprintf.
46824 2010-04-10  Bruno Haible  <bruno@clisp.org>
46826         write: Fix a C++ test error on mingw.
46827         * lib/unistd.in.h (write): Use _GL_CXXALIAS_SYS_CAST.
46829 2010-04-10  Bruno Haible  <bruno@clisp.org>
46831         vasnprintf test: Reduce code duplication.
46832         * tests/test-vasnprintf.c (test_function): New function, extracted from
46833         test_vasnprintf.
46834         (test_vasnprintf, test_asnprintf): Invoke it.
46836 2010-04-10  Bruno Haible  <bruno@clisp.org>
46838         strnlen: Fix warning in C++ mode on MacOS X.
46839         * lib/string.in.h (strnlen): Use the modern idiom.
46840         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Set REPLACE_STRNLEN to 1, instead of
46841         defining strnlen as a macro already in <config.h>.
46842         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
46843         REPLACE_STRNLEN.
46844         * modules/string (Makefile.am): Substitute REPLACE_STRNLEN.
46845         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
46847 2010-04-08  James Youngman  <jay@gnu.org>
46849         * doc/manywarnings.texi (manywarnings): Add missing parenthesis in
46850         the example.
46852 2010-04-09  Jim Meyering  <meyering@redhat.com>
46854         maint.mk: print better diagnostic when there is no $(_hv_file)
46855         * top/maint.mk (sc_cross_check_PATH_usage_in_tests): Skip test and
46856         announce that when $(_hv_file) (aka help-version) does not exist.
46858         init.sh: run tr in the "C" locale to avoid multibyte interpretation
46859         * tests/init.sh (rand_bytes_): Run tr in the "C" locale so it does
46860         not try to interpret its random input bytes.  Jarno Rajahalme reported
46861         that ./test-xalloc-die.sh would fail with "tr: Illegal byte sequence".
46862         on Darwin 10.3.0 with LC_CTYPE=UTF-8.
46863         (mktempd_): Likewise, just in case.
46865         ftruncate: add two years to projected module removal date: 2012
46866         * m4/ftruncate.m4: Adjust comments.
46868         ftruncate: mark module as obsolete; even MinGW provides it, now
46869         * modules/ftruncate (Status): Obsolete.
46870         (Notice): Say that.
46871         * doc/posix-functions/ftruncate.texi: Don't say MinGW lacks it.
46872         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/9203
46874 2010-04-08  Bruno Haible  <bruno@clisp.org>
46876         Fix side effects from tests-related modules.
46877         * modules/dprintf-posix (Comment): New section.
46878         * modules/fprintf-posix (Comment): Likewise.
46879         * modules/obstack-printf-posix (Comment): Likewise.
46880         * modules/printf-posix (Comment): Likewise.
46881         * modules/snprintf-posix (Comment): Likewise.
46882         * modules/sprintf-posix (Comment): Likewise.
46883         * modules/vasnprintf-posix (Comment): Likewise.
46884         * modules/vasprintf-posix (Comment): Likewise.
46885         * modules/vdprintf-posix (Comment): Likewise.
46886         * modules/vfprintf-posix (Comment): Likewise.
46887         * modules/vprintf-posix (Comment): Likewise.
46888         * modules/vsnprintf-posix (Comment): Likewise.
46889         * modules/vsprintf-posix (Comment): Likewise.
46890         * modules/xprintf-posix (Comment): Likewise.
46891         * modules/xvasprintf-posix (Comment): Likewise.
46892         * modules/ceilf-tests (Depends-on): Remove fprintf-posix.
46893         * modules/floorf-tests (Depends-on): Likewise.
46894         * modules/round-tests (Depends-on): Likewise.
46895         * modules/roundf-tests (Depends-on): Likewise.
46896         * modules/trunc-tests (Depends-on): Likewise.
46897         * modules/truncf-tests (Depends-on): Likewise.
46898         * tests/test-ceilf2.c (check): Don't invoke fprintf if the
46899         'fprintf-posix' module is not present.
46900         * tests/test-floorf2.c (check): Likewise.
46901         * tests/test-trunc2.c (check): Likewise.
46902         * tests/test-truncf2.c (check): Likewise.
46903         * tests/test-round2.c (equal): Likewise.
46904         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
46906 2010-04-07  Karl Berry  <karl@gnu.org>
46908         * config/srclist.txt,
46909         * config/srclistvars.sh,
46910         * config/srclist-update: doc fixes.
46912 2010-04-07  Jim Meyering  <meyering@redhat.com>
46914         maint.mk: add a PATH crosschecking syntax-check rule
46915         * top/maint.mk (sc_cross_check_PATH_usage_in_tests): New rule.
46916         Useful if you use a test like the one in help-version (coreutils,
46917         diffutils, grep, gzip) that ensures $(VERSION) matches what is
46918         printed by prog --version.
46920 2010-04-06  Bruno Haible  <bruno@clisp.org>
46922         Fix link error on mingw.
46923         * modules/unistd-c++-tests (test_unistd_c___LDADD): Add LIBSOCKET.
46924         * modules/fcntl-h-c++-tests (test_fcntl_h_c___LDADD): Likewise.
46926 2010-04-06  Bruno Haible  <bruno@clisp.org>
46928         Assume rmdir exists.
46929         * lib/rmdir.c (rpl_rmdir): Remove code that invokes the rmdir program.
46931 2010-04-06  Giuseppe Scrivano  <gscrivano@gnu.org>
46933         doc: update users.txt
46934         * users.txt: Add gcal.
46936 2010-04-06  Jim Meyering  <meyering@redhat.com>
46938         init.sh: simply unset TMPDIR rather than risking env -i
46939         * tests/init.sh (mktempd_): Using env -i is rather harsh, and
46940         although it probably works fine on all Unix-based systems, some
46941         systems (Cygwin?) cannot tolerate a totally cleared environment.
46942         Suggestion from Eric Blake.
46944 2010-04-06  Jim Meyering  <meyering@redhat.com>
46946         init.sh: portability fix: use env's POSIX-specified -i option not -u
46947         * tests/init.sh (mktempd_): Use env -i and set PATH explicitly rather
46948         than unportable env -u.  Solaris 5.11's env lacks support for -u.
46950 2010-04-05  Bruno Haible  <bruno@clisp.org>
46952         btowc: Work around Cygwin 1.7.2 bug.
46953         * m4/btowc.m4 (gl_FUNC_BTOWC): Set REPLACE_BTOWC to 1 if the function
46954         does not map NUL to 0.
46955         * doc/posix-functions/btowc.texi: Mention the Cygwin bug.
46957 2010-04-05  Bruno Haible  <bruno@clisp.org>
46959         Make the multithread modules work on Cygwin 1.7.2.
46960         * m4/threadlib.m4 (gl_THREADLIB_BODY): Improve the test whether
46961         imported symbols can be declared weak, so that it returns "no" on
46962         Cygwin 1.7.2.
46964 2010-04-05  Bruno Haible  <bruno@clisp.org>
46966         Use the module 'strncat'.
46967         * modules/unistr/u8-strncat (Depends-on): Add strncat.
46969         Tests for module 'strncat'.
46970         * modules/strncat-tests: New file.
46971         * tests/test-strncat.c: New file.
46973         New module 'strncat'.
46974         * lib/string.in.h (strncat): New declaration.
46975         * lib/strncat.c: New file, based on lib/unistr/u-strncat.h.
46976         * m4/strncat.m4: New file, based on m4/memchr.m4.
46977         * modules/strncat: New file.
46978         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Also check whether strncat
46979         is declared.
46980         (gl_HEADER_STRING_H_DEFAULTS): Initialize GNULIB_STRNCAT,
46981         REPLACE_STRNCAT.
46982         * modules/string (Makefile.am): Substitute GNULIB_STRNCAT,
46983         REPLACE_STRNCAT.
46984         * doc/posix-functions/strncat.texi: Mention the Solaris bug and the new
46985         module.
46986         * tests/test-string-c++.cc: Check signature of strncat.
46988 2010-04-05  Jim Meyering  <meyering@redhat.com>
46990         xstrtoumax-tests: convert to use init.sh
46991         * modules/xstrtoumax-tests (Files): Add tests/init.sh.
46992         * tests/test-xstrtoumax.sh: Invoke "$srcdir/init.sh" and path_prepend_.
46993         Use Exit, not exit.
46994         Remove uses of $EXEEXT and "./" to run a program in the current dir.
46996         xstrtoimax-tests: convert to use init.sh
46997         * modules/xstrtoimax-tests (Files): Add tests/init.sh.
46998         * tests/test-xstrtoimax.sh: Invoke "$srcdir/init.sh" and path_prepend_.
46999         Use Exit, not exit.
47000         Remove uses of $EXEEXT and "./" to run a program in the current dir.
47002 2010-04-05  Bruno Haible  <bruno@clisp.org>
47004         sys_socket: Avoid #define replacements in C++ mode.
47005         * lib/sys_socket.in.h (close, gethostname, select): In C++, attach a
47006         warning to the function if possible, rather than #defining the symbol
47007         to a dysfunctional alias.
47009 2010-04-05  Bruno Haible  <bruno@clisp.org>
47011         fseeko: Fix C++ test error on mingw.
47012         * m4/fseeko.m4 (gl_HAVE_FSEEKO): New macro, extracted from
47013         gl_FUNC_FSEEKO.
47014         (gl_REPLACE_FSEEKO): Also set REPLACE_FSEEKO if appropriate.
47015         (gl_FUNC_FSEEKO): Require gl_HAVE_FSEEKO. Update.
47016         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Don't fiddle with internals of the
47017         fseeko module. Instead, invoke gl_REPLACE_FSEEKO.
47019 2010-04-05  Bruno Haible  <bruno@clisp.org>
47021         duplocale: Improve test output.
47022         * tests/test-duplocale.c (main): Print reason for skipped test.
47024 2010-04-05  Bruno Haible  <bruno@clisp.org>
47026         Assume rmdir exists.
47027         * m4/rmdir.m4 (gl_FUNC_RMDIR): Remove test whether rmdir exists.
47028         * doc/posix-functions/rmdir.texi: Remove mention of "old platforms".
47030 2010-04-05  Bruno Haible  <bruno@clisp.org>
47032         Fix link error on Solaris 8 with cc.
47033         * modules/pty-c++-tests (test_pty_c___LDADD): Add LIBINTL.
47035 2010-04-05  Bruno Haible  <bruno@clisp.org>
47037         frexpl: Fix a C++ test error on Solaris 8 and Cygwin.
47038         * lib/math.in.h (frexpl): Fix condition on _GL_CXXALIASWARN invocation.
47040 2010-04-05  Bruno Haible  <bruno@clisp.org>
47042         vasprintf: Update documentation.
47043         * doc/glibc-functions/asprintf.texi: Mention the 'vasprintf' module.
47045 2010-04-05  Bruno Haible  <bruno@clisp.org>
47047         ptsname: Improve test.
47048         * tests/test-ptsname.c (main): Also try the various master names of BSD
47049         systems.
47051 2010-04-05  Bruno Haible  <bruno@clisp.org>
47053         memchr: Avoid a possible C++ test error.
47054         * lib/string.in.h (memchr): Provide declaration if function is missing.
47055         * m4/memchr.m4 (gl_FUNC_MEMCHR): If the function is missing, set
47056         HAVE_MEMCHR to 0, not REPLACE_MEMCHR to 1.
47057         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize HAVE_MEMCHR.
47058         * modules/string (Makefile.am): Substitute HAVE_MEMCHR.
47060 2010-04-05  Bruno Haible  <bruno@clisp.org>
47062         strtok_r: Improve idiom.
47063         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Invoke gl_PREREQ_STRDUP only when
47064         AC_LIBOBJ is used.
47066 2010-04-05  Bruno Haible  <bruno@clisp.org>
47068         strdup: Improve idiom.
47069         * m4/strdup.m4 (gl_FUNC_STRDUP): Invoke gl_PREREQ_STRDUP only when
47070         AC_LIBOBJ is used.
47071         (gl_FUNC_STRDUP_POSIX): When strdup is missing and malloc is not POSIX
47072         compliant, don't set REPLACE_STRDUP to 1. Invoke gl_PREREQ_STRDUP only
47073         when AC_LIBOBJ is used.
47075 2010-04-05  Bruno Haible  <bruno@clisp.org>
47077         mbsinit, mbrtowc, wcrtomb: Improve idioms.
47078         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): When the function does not exist,
47079         don't set REPLACE_MBSINIT to 1.
47080         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): When the function does not exist,
47081         don't set REPLACE_MBRTOWC to 1.
47082         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): When the function does not
47083         exist, don't set REPLACE_MBSRTOWCS to 1.
47084         * m4/mbsnrtowcs.m4 (gl_FUNC_MBSNRTOWCS): When the function does not
47085         exist, don't set REPLACE_MBSNRTOWCS to 1.
47086         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): When the function does not exist,
47087         don't set REPLACE_WCRTOMB to 1.
47088         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): When the function does not
47089         exist, don't set REPLACE_WCSRTOMBS to 1.
47090         * m4/wcsnrtombs.m4 (gl_FUNC_WCSNRTOMBS): When the function does not
47091         exist, don't set REPLACE_WCSNRTOMBS to 1.
47093 2010-04-05  Bruno Haible  <bruno@clisp.org>
47095         ldexpl: Improve idiom.
47096         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): When the function is not declared,
47097         make sure to set HAVE_DECL_LDEXPL to 0.
47099 2010-04-05  Jim Meyering  <meyering@redhat.com>
47101         xstrtol-tests: convert to use init.sh
47102         * modules/xstrtol-tests (Files): Add tests/init.sh.
47103         * tests/test-xstrtol.sh: Invoke "$srcdir/init.sh" and path_prepend_.
47104         Use Exit, not exit.
47105         Remove uses of $EXEEXT and "./" to run a program in the current dir.
47107         atexit-tests: convert to use init.sh
47108         * modules/atexit-tests (Files): Add tests/init.sh.
47109         * tests/test-atexit.sh: Invoke "$srcdir/init.sh" and path_prepend_.
47110         Use Exit, not exit.
47111         Remove uses of $EXEEXT and "./" to run a program in the current dir.
47113         init.sh: fix typo
47114         * tests/init.sh: Restore omitted ":" before stderr_fileno_ initialization.
47116         init.sh: make it easier for a test script to write to the tty, ...
47117         when using automake's parallel-tests mode.
47118         * tests/init.sh (stderr_fileno_): Define overridable variable.
47119         (warn_): New function, to use it.
47120         (fail_, skip_, framework_failure_): Use warn_.
47122 2010-04-04  Bruno Haible  <bruno@clisp.org>
47124         btowc: Avoid warning.
47125         * lib/btowc.c: Include <stdlib.h>.
47126         Reported by Hauke Fath <hauke@espresso.rhein-neckar.de>.
47128 2010-04-04  Hauke Fath  <hauke@espresso.rhein-neckar.de>  (tiny change)
47129             Bruno Haible  <bruno@clisp.org>
47131         wchar: Port to NetBSD 1.5.
47132         * lib/wchar.in.h (WEOF): Provide fallback also when wint_t exists.
47133         * lib/wctype.in.h (WEOF): Likewise.
47135 2010-04-04  Hauke Fath  <hauke@espresso.rhein-neckar.de>  (tiny change)
47136             Bruno Haible  <bruno@clisp.org>
47138         Port extended stdio to NetBSD 1.5.
47139         * lib/stdio-impl.h [NetBSD]: Include <sys/param.h>.
47140         (struct __sfileext, fp_ub): Define the "old way" for NetBSD 1.5Z and
47141         older.
47143 2010-04-04  Bruno Haible  <bruno@clisp.org>
47145         string: Remove unused substitution.
47146         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Don't initialize
47147         HAVE_DECL_STRERROR.
47148         * modules/string (Makefile.am): Don't substitute HAVE_DECL_STRERROR.
47150 2010-04-04  Bruno Haible  <bruno@clisp.org>
47152         strtod: Avoid a possible C++ test error.
47153         * m4/strtod.m4 (gl_FUNC_STRTOD): When setting HAVE_STRTOD to 0, don't
47154         set REPLACE_STRTOD.
47156 2010-04-04  Bruno Haible  <bruno@clisp.org>
47158         strerror: Update documentation.
47159         * doc/posix-functions/strerror.texi: Remove mention of old platforms.
47161 2010-04-04  Bruno Haible  <bruno@clisp.org>
47163         stdio: Fix some C++ test errors on Solaris 8 with GCC.
47164         * lib/stdio.in.h (vdprintf, vfprintf, vprintf, vsprintf): Use
47165         _GL_CXXALIAS_SYS_CAST.
47167 2010-04-04  Bruno Haible  <bruno@clisp.org>
47169         frexpl: Fix a C++ test error on Solaris 8 and Cygwin.
47170         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): When the
47171         function is not declared, set HAVE_DECL_FREXPL to 0, instead of setting
47172         REPLACE_FREXPL to 1.
47173         * doc/posix-functions/frexpl.texi: Update documentation.
47175 2010-04-04  Bruno Haible  <bruno@clisp.org>
47177         math: Fix some C++ test errors on Solaris 8 and Cygwin.
47178         * lib/math.in.h (cosl, logl, sinl): Use simpler idiom.
47180 2010-04-04  Bruno Haible  <bruno@clisp.org>
47182         Implement nanosleep for native Windows.
47183         * lib/nanosleep.c (nanosleep): New implementation for native Windows.
47185 2010-04-04  Bruno Haible  <bruno@clisp.org>
47187         math: Fix some C++ test errors on Solaris 8.
47188         * lib/math.in.h (truncf, trunc): Use simpler idiom.
47190 2010-04-04  Bruno Haible  <bruno@clisp.org>
47192         math: Fix some C++ test errors on Cygwin.
47193         * lib/math.in.h (ceilf, ceill, floorf, floorl, roundf, round, roundl,
47194         truncl): Provide declaration if the system does not have it.
47195         * m4/ceilf.m4 (gl_FUNC_CEILF): If the function is not declared, set
47196         HAVE_DECL_CEILF to 0, not REPLACE_CEILF to 1.
47197         * m4/ceill.m4 (gl_FUNC_CEILL): If the function is not declared, set
47198         HAVE_DECL_CEILL to 0, not REPLACE_CEILL to 1.
47199         * m4/floorf.m4 (gl_FUNC_FLOORF): If the function is not declared, set
47200         HAVE_DECL_FLOORF to 0, not REPLACE_FLOORF to 1.
47201         * m4/floorl.m4 (gl_FUNC_FLOORL): If the function is not declared, set
47202         HAVE_DECL_FLOORL to 0, not REPLACE_FLOORL to 1.
47203         * m4/round.m4 (gl_FUNC_ROUND): If the function is not declared, set
47204         HAVE_DECL_ROUND to 0, not REPLACE_ROUND to 1.
47205         * m4/roundf.m4 (gl_FUNC_ROUNDF): If the function is not declared, set
47206         HAVE_DECL_ROUNDF to 0, not REPLACE_ROUNDF to 1.
47207         * m4/roundl.m4 (gl_FUNC_ROUNDL): If the function is not declared, set
47208         HAVE_DECL_ROUNDL to 0, not REPLACE_ROUNDL to 1.
47209         * m4/truncl.m4 (gl_FUNC_TRUNCL): If the function is not declared, set
47210         HAVE_DECL_TRUNCL to 0, not REPLACE_TRUNCL to 1.
47211         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize HAVE_DECL_CEILF,
47212         HAVE_DECL_CEILL, HAVE_DECL_FLOORF, HAVE_DECL_FLOORL, HAVE_DECL_ROUND,
47213         HAVE_DECL_ROUNDF, HAVE_DECL_ROUNDL, HAVE_DECL_TRUNCL.
47214         * modules/math (Makefile.am): Substitute HAVE_DECL_CEILF,
47215         HAVE_DECL_CEILL, HAVE_DECL_FLOORF, HAVE_DECL_FLOORL, HAVE_DECL_ROUND,
47216         HAVE_DECL_ROUNDF, HAVE_DECL_ROUNDL, HAVE_DECL_TRUNCL.
47218 2010-04-04  Bruno Haible  <bruno@clisp.org>
47220         * m4/ceilf.m4 (gl_FUNC_CEILF): Remove redundant AC_SUBST invocation.
47221         * m4/ceill.m4 (gl_FUNC_CEILL): Likewise.
47222         * m4/floorf.m4 (gl_FUNC_FLOORF): Likewise.
47223         * m4/floorl.m4 (gl_FUNC_FLOORL): Likewise.
47224         * m4/isfinite.m4 (gl_ISFINITE): Likewise.
47225         * m4/isinf.m4 (gl_ISINF): Likewise.
47226         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
47228 2010-04-04  Bruno Haible  <bruno@clisp.org>
47230         * m4/trunc.m4 (gl_FUNC_TRUNC): Remove redundant AC_SUBST invocation.
47231         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
47233 2010-04-04  Bruno Haible  <bruno@clisp.org>
47235         * m4/tmpfile.m4 (gl_FUNC_TMPFILE): Renamed from gl_TMPFILE.
47236         * modules/tmpfile (configure.ac): Update.
47238         tmpfile: Fix C++ test error on mingw.
47239         * lib/stdio.in.h (tmpfile): New declaration.
47240         * m4/tmpfile.m4 (gl_TMPFILE): Require gl_STDIO_H_DEFAULTS. Set
47241         REPLACE_TMPFILE instead of defining tmpfile as a macro in config.h.
47242         * modules/tmpfile (Depends-on): Add stdio.
47243         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
47244         * m4/stdio_h.m4 (gl_STDIO_H): Also check whether tmpfile is declared.
47245         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_TMPFILE and REPLACE_TMPFILE.
47246         * modules/stdio (Makefile.am): Substitute GNULIB_TMPFILE and
47247         REPLACE_TMPFILE.
47248         * tests/test-stdio-c++.cc (tmpfile): Verify signature.
47250 2010-04-04  Bruno Haible  <bruno@clisp.org>
47252         ioctl: Fix C++ test error on mingw.
47253         * lib/ioctl.c (ioctl): Renamed from rpl_ioctl.
47254         * lib/sys_ioctl.in.h (ioctl): When SYS_IOCTL_H_HAVE_WINSOCK2_H is 1,
47255         use _GL_FUNCDECL_SYS, not _GL_FUNCDECL_RPL.
47257 2010-04-03  Bruno Haible  <bruno@clisp.org>
47259         wcwidth: Fix C++ test error on mingw.
47260         * lib/wcwidth.c (wcwidth): Renamed from rpl_wcwidth.
47261         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): If the wcwidth function does not
47262         exist, don't set REPLACE_WCWIDTH. Instead, rely on HAVE_DECL_WCWIDTH.
47264 2010-04-03  Bruno Haible  <bruno@clisp.org>
47266         nanosleep: Fix C++ test error on mingw.
47267         * lib/nanosleep.c (nanosleep): Renamed from rpl_nanosleep.
47268         * lib/time.in.h (nanosleep): Use modern idiom.
47269         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): When the system does not have a
47270         nanosleep function, set HAVE_NANOSLEEP to 0, instead of setting
47271         REPLACE_NANOSLEEP to 1.
47272         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_NANOSLEEP.
47273         * modules/time (Makefile.am): Substitute HAVE_NANOSLEEP.
47275 2010-04-03  Bruno Haible  <bruno@clisp.org>
47277         strptime: Fix C++ test error on mingw.
47278         * lib/time.in.h (strptime): Use HAVE_STRPTIME, not REPLACE_STRPTIME.
47279         * m4/strptime.m4 (gl_FUNC_STRPTIME): Set HAVE_STRPTIME, not
47280         REPLACE_STRPTIME. Invoke gl_PREREQ_STRPTIME.
47281         (gl_PREREQ_STRPTIME): New macro, extracted from gl_FUNC_STRPTIME.
47282         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_STRPTIME,
47283         not REPLACE_STRPTIME.
47284         * modules/time (Makefile.am): Substitute HAVE_STRPTIME, not
47285         REPLACE_STRPTIME.
47287 2010-04-03  Bruno Haible  <bruno@clisp.org>
47289         timegm: Fix C++ test error on mingw.
47290         * lib/time.in.h (timegm): Use modern idiom.
47291         * m4/timegm.m4 (gl_FUNC_TIMEGM): When timegm does not exist, set
47292         HAVE_TIMEGM to 0, not REPLACE_TIMEGM to 1.
47293         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_TIMEGM.
47294         * modules/time (Makefile.am): Substitute HAVE_TIMEGM.
47296 2010-04-03  Bruno Haible  <bruno@clisp.org>
47298         timegm: Assume declaration if function exists.
47299         * m4/timegm.m4 (gl_FUNC_TIMEGM): Assume timegm is declared if and only
47300         if it exists. Don't clobber ac_cv_func_timegm.
47302 2010-04-03  Bruno Haible  <bruno@clisp.org>
47304         time_r: Fix C++ test error on mingw.
47305         * lib/time.in.h (localtime_r, gmtime_r): Use modern idiom.
47306         * m4/time_r.m4 (gl_TIME_R): When localtime_r does not exist, set
47307         HAVE_LOCALTIME_R to 0, not REPLACE_LOCALTIME_R to 1.
47308         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_LOCALTIME_R.
47309         * modules/time (Makefile.am): Substitute HAVE_LOCALTIME_R.
47311 2010-04-03  Bruno Haible  <bruno@clisp.org>
47313         time_r: Minor updates.
47314         * modules/time_r (Description): Mention the provided functions.
47315         * lib/time_r.c: Don't include <string.h>.
47316         * doc/posix-functions/gmtime_r.texi: Mention the 'time_r' module.
47317         * doc/posix-functions/localtime_r.texi: Likewise.
47319 2010-04-03  Bruno Haible  <bruno@clisp.org>
47321         time: Fix regression introduced on 2010-03-08.
47322         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Require
47323         gl_HEADER_TIME_H_DEFAULTS, not gl_HEADER_STRING_H_DEFAULTS.
47325 2010-04-03  Jim Meyering  <meyering@redhat.com>
47327         maint.mk: don't silently disable project-specific syntax-check rules
47328         * top/maint.mk (_prohibit_regexp): Define, to help people realize
47329         that they need to convert their project-specific syntax-check rules
47330         to use the new _sc_search_regexp.
47332 2010-04-03  Bruno Haible  <bruno@clisp.org>
47334         fchdir: Fix regression introduced on 2010-03-08.
47335         * lib/unistd.in.h (fchdir): Fix declaration.
47336         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set HAVE_FCHDIR, not REPLACE_FCHDIR.
47337         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize HAVE_FCHDIR, not
47338         REPLACE_FCHDIR.
47339         * modules/unistd (Makefile.am): Substitute HAVE_FCHDIR, not
47340         REPLACE_FCHDIR.
47342 2010-04-03  Bruno Haible  <bruno@clisp.org>
47344         getpagesize: Fix C++ test error on mingw.
47345         * lib/unistd.in.h (getpagesize): Don't use _GL_CXXALIASWARN if the
47346         system does not declare the function.
47347         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Also check whether it's
47348         declared.
47349         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
47350         HAVE_DECL_GETPAGESIZE.
47351         * modules/unistd (Makefile.am): Substitute HAVE_DECL_GETPAGESIZE.
47353 2010-04-03  Bruno Haible  <bruno@clisp.org>
47355         stdio: Make C++ tests work on mingw.
47356         * lib/stdio.in.h (getline): Don't use _GL_CXXALIASWARN if the system
47357         does not declare the function.
47359 2010-04-03  Bruno Haible  <bruno@clisp.org>
47361         ftello: Fix C++ test error on mingw.
47362         * lib/stdio.in.h (ftello): Use modern idiom.
47363         * lib/ftello.c (ftello): Renamed from rpl_ftello.
47364         * m4/ftello.m4 (gl_FUNC_FTELLO): Distinguish the case that the function
47365         is missing and that it needs to be replaced.
47366         (gl_REPLACE_FTELLO): Don't set REPLACE_FTELLO here.
47367         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_FTELLO.
47368         * modules/stdio (Makefile.am): Substitute HAVE_FTELLO.
47370 2010-04-03  Bruno Haible  <bruno@clisp.org>
47372         fseeko: Fix C++ test error on mingw.
47373         * lib/stdio.in.h (fseeko): Use modern idiom.
47374         * lib/fseeko.c (fseeko): Renamed from rpl_fseeko.
47375         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Distinguish the case that the function
47376         is missing and that it needs to be replaced.
47377         (gl_REPLACE_FSEEKO): Don't set REPLACE_FSEEKO here.
47378         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_FSEEKO.
47379         * modules/stdio (Makefile.am): Substitute HAVE_FSEEKO.
47381 2010-04-03  Bruno Haible  <bruno@clisp.org>
47383         mkstemp: Fix C++ test error on mingw.
47384         * lib/stdlib.in.h (mkstemp): Use modern idiom.
47385         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Distinguish the case that the
47386         function is missing and that it needs to be replaced.
47387         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize HAVE_MKSTEMP.
47388         * modules/stdlib (Makefile.am): Substitute HAVE_MKSTEMP.
47390 2010-04-03  Bruno Haible  <bruno@clisp.org>
47392         stpncpy: Fix C++ test error on mingw.
47393         * lib/string.in.h (stpncpy): Use modern idiom.
47394         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Distinguish the case that the
47395         function is missing and that it needs to be replaced.
47396         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
47397         REPLACE_STPNCPY.
47398         * modules/string (Makefile.am): Substitute REPLACE_STPNCPY.
47400 2010-04-03  Bruno Haible  <bruno@clisp.org>
47402         sys_stat: Fix C++ test error on mingw.
47403         * build-aux/c++defs.h (_GL_CXXALIAS_RPL_CAST_1): New macro.
47404         * lib/sys_stat.in.h (lchmod): Use it instead of _GL_CXXALIAS_RPL_1.
47406 2010-04-03  Bruno Haible  <bruno@clisp.org>
47408         pty: Update doc.
47409         * doc/glibc-headers/pty.texi: Mention changes done since 2010-03-18.
47411 2010-04-03  Bruno Haible  <bruno@clisp.org>
47413         unistd: Fix C++ test error on mingw.
47414         * lib/unistd.in.h (getcwd): Use _GL_CXXALIAS_SYS_CAST.
47416 2010-04-03  Bruno Haible  <bruno@clisp.org>
47418         Update doc regarding mingw.
47419         * doc/glibc-functions/openpty.texi: Update regarding mingw.
47420         * doc/glibc-functions/login_tty.texi: Likewise.
47421         * doc/glibc-functions/forkpty.texi: Likewise.
47423 2010-04-03  Bruno Haible  <bruno@clisp.org>
47425         stdlib: Avoid compilation failure of c-strtold on mingw.
47426         * lib/stdlib.in.h: Don't include <unistd.h> on native Windows systems.
47428 2010-04-03  Bruno Haible  <bruno@clisp.org>
47430         locale: Make C++ tests work on Cygwin and mingw.
47431         * lib/locale.in.h (duplocale): Don't use _GL_CXXALIASWARN if gnulib
47432         cannot provide the function.
47433         Reported by Simon Josefsson.
47435 2010-04-03  Bruno Haible  <bruno@clisp.org>
47437         localename: Port to MacOS X 10.6.
47438         * lib/localename.c (gl_locale_name_thread_unsafe): On MacOS X, try the
47439         memory layout of the locales in MacOS X 10.6 as well.
47440         Reported by Panu Kekäläinen <panu@kekalainen.eu>.
47442 2010-04-02  Bruno Haible  <bruno@clisp.org>
47444         gnulib-tool: Ensure that long-running tests are executed last.
47445         * gnulib-tool (func_emit_tests_Makefile_am): Emit the code for long-
47446         running tests after the one for the other tests.
47448 2010-04-02  Bruno Haible  <bruno@clisp.org>
47450         gnulib-tool: Ensure the tests in the main directory are executed first.
47451         * gnulib-tool (func_emit_tests_Makefile_am): Initialize SUBDIRS to
47452         start with the current directory.
47454 2010-04-02  Bruno Haible  <bruno@clisp.org>
47456         Tests for module 'havelib', moved here from GNU gettext.
47457         * modules/havelib-tests: New file, from gettext/autoconf-lib-link with
47458         modifications.
47459         * tests/havelib/README: New file, from gettext/autoconf-lib-link.
47460         * tests/havelib/Makefile.am: New file, from gettext/autoconf-lib-link
47461         with modifications.
47462         * tests/havelib/rpath-1: New file, from gettext/autoconf-lib-link with
47463         modifications.
47464         * tests/havelib/rpath-1a: New file, from gettext/autoconf-lib-link.
47465         * tests/havelib/rpath-1b: New file, from gettext/autoconf-lib-link.
47466         * tests/havelib/rpath-2_a: New file, from gettext/autoconf-lib-link
47467         with modifications.
47468         * tests/havelib/rpath-2_b: New file, from gettext/autoconf-lib-link
47469         with modifications.
47470         * tests/havelib/rpath-2aaa: New file, from gettext/autoconf-lib-link.
47471         * tests/havelib/rpath-2aab: New file, from gettext/autoconf-lib-link.
47472         * tests/havelib/rpath-2aac: New file, from gettext/autoconf-lib-link.
47473         * tests/havelib/rpath-2aad: New file, from gettext/autoconf-lib-link.
47474         * tests/havelib/rpath-2aba: New file, from gettext/autoconf-lib-link.
47475         * tests/havelib/rpath-2abb: New file, from gettext/autoconf-lib-link.
47476         * tests/havelib/rpath-2abc: New file, from gettext/autoconf-lib-link.
47477         * tests/havelib/rpath-2abd: New file, from gettext/autoconf-lib-link.
47478         * tests/havelib/rpath-2baa: New file, from gettext/autoconf-lib-link.
47479         * tests/havelib/rpath-2bab: New file, from gettext/autoconf-lib-link.
47480         * tests/havelib/rpath-2bac: New file, from gettext/autoconf-lib-link.
47481         * tests/havelib/rpath-2bad: New file, from gettext/autoconf-lib-link.
47482         * tests/havelib/rpath-2bba: New file, from gettext/autoconf-lib-link.
47483         * tests/havelib/rpath-2bbb: New file, from gettext/autoconf-lib-link.
47484         * tests/havelib/rpath-2bbc: New file, from gettext/autoconf-lib-link.
47485         * tests/havelib/rpath-2bbd: New file, from gettext/autoconf-lib-link.
47486         * tests/havelib/rpath-3_a: New file, from gettext/autoconf-lib-link
47487         with modifications.
47488         * tests/havelib/rpath-3_b: New file, from gettext/autoconf-lib-link
47489         with modifications.
47490         * tests/havelib/rpath-3aaa: New file, from gettext/autoconf-lib-link.
47491         * tests/havelib/rpath-3aab: New file, from gettext/autoconf-lib-link.
47492         * tests/havelib/rpath-3aac: New file, from gettext/autoconf-lib-link.
47493         * tests/havelib/rpath-3aad: New file, from gettext/autoconf-lib-link.
47494         * tests/havelib/rpath-3aae: New file, from gettext/autoconf-lib-link.
47495         * tests/havelib/rpath-3aaf: New file, from gettext/autoconf-lib-link.
47496         * tests/havelib/rpath-3aag: New file, from gettext/autoconf-lib-link.
47497         * tests/havelib/rpath-3aah: New file, from gettext/autoconf-lib-link.
47498         * tests/havelib/rpath-3aba: New file, from gettext/autoconf-lib-link.
47499         * tests/havelib/rpath-3abb: New file, from gettext/autoconf-lib-link.
47500         * tests/havelib/rpath-3abc: New file, from gettext/autoconf-lib-link.
47501         * tests/havelib/rpath-3abd: New file, from gettext/autoconf-lib-link.
47502         * tests/havelib/rpath-3abe: New file, from gettext/autoconf-lib-link.
47503         * tests/havelib/rpath-3abf: New file, from gettext/autoconf-lib-link.
47504         * tests/havelib/rpath-3abg: New file, from gettext/autoconf-lib-link.
47505         * tests/havelib/rpath-3abh: New file, from gettext/autoconf-lib-link.
47506         * tests/havelib/rpath-3baa: New file, from gettext/autoconf-lib-link.
47507         * tests/havelib/rpath-3bab: New file, from gettext/autoconf-lib-link.
47508         * tests/havelib/rpath-3bac: New file, from gettext/autoconf-lib-link.
47509         * tests/havelib/rpath-3bad: New file, from gettext/autoconf-lib-link.
47510         * tests/havelib/rpath-3bae: New file, from gettext/autoconf-lib-link.
47511         * tests/havelib/rpath-3baf: New file, from gettext/autoconf-lib-link.
47512         * tests/havelib/rpath-3bag: New file, from gettext/autoconf-lib-link.
47513         * tests/havelib/rpath-3bah: New file, from gettext/autoconf-lib-link.
47514         * tests/havelib/rpath-3bba: New file, from gettext/autoconf-lib-link.
47515         * tests/havelib/rpath-3bbb: New file, from gettext/autoconf-lib-link.
47516         * tests/havelib/rpath-3bbc: New file, from gettext/autoconf-lib-link.
47517         * tests/havelib/rpath-3bbd: New file, from gettext/autoconf-lib-link.
47518         * tests/havelib/rpath-3bbe: New file, from gettext/autoconf-lib-link.
47519         * tests/havelib/rpath-3bbf: New file, from gettext/autoconf-lib-link.
47520         * tests/havelib/rpath-3bbg: New file, from gettext/autoconf-lib-link.
47521         * tests/havelib/rpath-3bbh: New file, from gettext/autoconf-lib-link.
47522         * tests/havelib/rpathx/rpathx.c: New file, from
47523         gettext/autoconf-lib-link.
47524         * tests/havelib/rpathx/Makefile.am: New file, from
47525         gettext/autoconf-lib-link.
47526         * tests/havelib/rpathx/configure.ac: New file, from
47527         gettext/autoconf-lib-link with modifications.
47528         * tests/havelib/rpathy/rpathy.c: New file, from
47529         gettext/autoconf-lib-link.
47530         * tests/havelib/rpathy/Makefile.am: New file, from
47531         gettext/autoconf-lib-link.
47532         * tests/havelib/rpathy/configure.ac: New file, from
47533         gettext/autoconf-lib-link with modifications.
47534         * tests/havelib/rpathz/rpathz.c: New file, from
47535         gettext/autoconf-lib-link.
47536         * tests/havelib/rpathz/Makefile.am: New file, from
47537         gettext/autoconf-lib-link.
47538         * tests/havelib/rpathz/configure.ac: New file, from
47539         gettext/autoconf-lib-link with modifications.
47540         * tests/havelib/rpathlx/usex.c: New file, from
47541         gettext/autoconf-lib-link.
47542         * tests/havelib/rpathlx/Makefile.am: New file, from
47543         gettext/autoconf-lib-link.
47544         * tests/havelib/rpathlx/configure.ac: New file, from
47545         gettext/autoconf-lib-link with modifications.
47546         * tests/havelib/rpathly/usey.c: New file, from
47547         gettext/autoconf-lib-link.
47548         * tests/havelib/rpathly/Makefile.am: New file, from
47549         gettext/autoconf-lib-link.
47550         * tests/havelib/rpathly/configure.ac: New file, from
47551         gettext/autoconf-lib-link with modifications.
47552         * tests/havelib/rpathlz/usez.c: New file, from
47553         gettext/autoconf-lib-link.
47554         * tests/havelib/rpathlz/Makefile.am: New file, from
47555         gettext/autoconf-lib-link.
47556         * tests/havelib/rpathlz/configure.ac: New file, from
47557         gettext/autoconf-lib-link with modifications.
47558         * tests/havelib/rpathlyx/usey.c: New file, from
47559         gettext/autoconf-lib-link.
47560         * tests/havelib/rpathlyx/Makefile.am: New file, from
47561         gettext/autoconf-lib-link.
47562         * tests/havelib/rpathlyx/configure.ac: New file, from
47563         gettext/autoconf-lib-link with modifications.
47564         * tests/havelib/rpathlzyx/usez.c: New file, from
47565         gettext/autoconf-lib-link.
47566         * tests/havelib/rpathlzyx/Makefile.am: New file, from
47567         gettext/autoconf-lib-link.
47568         * tests/havelib/rpathlzyx/configure.ac: New file, from
47569         gettext/autoconf-lib-link with modifications.
47570         * tests/havelib/rpathcfg.sh: New file, from gettext/autoconf-lib-link
47571         with modifications.
47573 2010-04-02  Bruno Haible  <bruno@clisp.org>
47575         gnulib-tool: Create distributed built sources also for the tests.
47576         * gnulib-tool (func_create_testdir): Also generate distributed built
47577         sources in the tests directory.
47579 2010-04-02  Bruno Haible  <bruno@clisp.org>
47581         gnulib-tool: Obey user's environment variables.
47582         * gnulib-tool (func_create_testdir): When creating built sources,
47583         respect the environment variables for autoconf, automake, etc. given by
47584         the user.
47586 2010-04-02  Bruno Haible  <bruno@clisp.org>
47588         gnulib-tool: Provide the value of --m4-base to modules.
47589         * gnulib-tool (func_import, func_create_testdir): Emit a definition
47590         of gl_m4_base.
47592 2010-04-02  Eric Blake  <eblake@redhat.com>
47594         maint.mk: fix some fallout
47595         * NEWS: Document the incompatible change, and its effect on cfg.mk.
47596         * top/maint.mk (sc_prohibit_test_minus_ao): Update.
47598 2010-03-28  Jose E. Marchesi  <jemarch@gnu.org>
47600         maint.mk: _sc_search_regexp: generalize and rename from _prohibit_regexp
47601         * top/maint.mk (_sc_search_regexp): Rename from _prohibit_regexp.
47602         (sc_cast_of_argument_to_free): Adapt to use _sc_search_regexp.
47603         (sc_cast_of_x_alloc_return_value): Likewise.
47604         (sc_cast_of_alloca_return_value): Likewise.
47605         (sc_space_tab): Likewise.
47606         (sc_prohibit_atoi_atof): Likewise.
47607         (sc_prohibit_magic_number_exit): Likewise.
47608         (sc_error_exit_success): Likewise.
47609         (sc_file_system): Likewise.
47610         (sc_prohibit_have_config_h): Likewise.
47611         (sc_require_config_h): Likewise.
47612         (sc_prohibit_HAVE_MBRTOWC): Likewise.
47613         (sc_obsolete_symbols): Likewise.
47614         (sc_changelog): Likewise.
47615         (sc_program_name): Likewise.
47616         (sc_the_the): Likewise.
47617         (sc_trailing_blank): Likewise.
47618         (sc_two_space_separator_in_usage): Likewise.
47619         (sc_useless_cpp_parens): Likewise.
47620         (sc_GPL_version): Likewise.
47621         (sc_GFDL_version): Likewise.
47622         (sc_texinfo_acronym): Likewise.
47623         (sc_prohibit_cvs_keyword): Likewise.
47624         (sc_prohibit_stat_st_blocks): Likewise.
47625         (sc_prohibit_S_IS_definition): Likewise.
47626         (sc_redundant_const): Likewise.
47627         (sc_makefile_TAB_only_indentation): Likewise.
47628         (sc_m4_quote_check): Likewise.
47629         (sc_makefile_path_separator_check): Likewise.
47630         (sc_copyright_check): Likewise.
47631         (sc_Wundef_boolean): Likewise.
47632         (sc_vulnerable_makefile_CVE-2009-4029): Likewise.
47634         maint.mk: match 0 or more whitespace-before-function-call '('
47635         * top/maint.mk (sc_error_exit_success): Relax regexp to match uses
47636         that have zero or two-and-more spaces between the function name
47637         and the open parenthesis.
47638         (sc_error_message_warn_fatal): Likewise.
47639         (sc_error_message_uppercase): Likewise.
47640         (sc_error_message_period): Likewise.
47642 2010-03-31  Eric Blake  <eblake@redhat.com>
47644         maint.mk: check for [ as well as test
47645         * top/maint.mk (sc_prohibit_test_minus_ao): Extend test.
47646         Based on a libvirt report by Matthias Bolte.
47648         gnumakefile: don't squelch _version output
47649         * top/GNUmakefile (_version): Create one-shot dependency rather
47650         than using $(shell) when version must be regenerated.
47651         (_autoreconf): Run verbosely, by default.
47653         sys_time: avoid compiler warnings
47654         * lib/sys_time.in.h (includes): Ensure gcc pragma is
47655         unconditional, fixing regression from 2010-03-29.
47656         Reported by Simon Josefsson.
47658 2010-03-28  Jose E. Marchesi  <jemarch@gnu.org>
47660         maint.mk: s/_header_without_use/_sc_header_without_use/
47661         * top/maint.mk (_sc_header_without_use): Rename from _header_without_use.
47662         (sc_prohibit_assert_without_use): Use the new name.
47663         (sc_prohibit_close_stream_without_use): Likewise.
47664         (sc_prohibit_getopt_without_use): Likewise.
47665         (sc_prohibit_quotearg_without_use): Likewise.
47666         (sc_prohibit_quote_without_use): Likewise.
47667         (sc_prohibit_long_options_without_use): Likewise.
47668         (sc_prohibit_inttostr_without_use): Likewise.
47669         (sc_prohibit_ignore_value_without_use): Likewise.
47670         (sc_prohibit_error_without_use): Likewise.
47671         (sc_prohibit_xalloc_without_use): Likewise.
47672         (sc_prohibit_hash_without_use): Likewise.
47673         (sc_prohibit_hash_pjw_without_use): Likewise.
47674         (sc_prohibit_safe_read_without_use): Likewise.
47675         (sc_prohibit_argmatch_without_use): Likewise.
47676         (sc_prohibit_canonicalize_without_use): Likewise.
47677         (sc_prohibit_root_dev_ino_without_use): Likewise.
47678         (sc_prohibit_openat_without_use): Likewise.
47679         (sc_prohibit_c_ctype_without_use): Likewise.
47680         (sc_prohibit_signal_without_use): Likewise.
47681         (sc_prohibit_intprops_without_use): Likewise.
47683 2010-03-30  Eric Blake  <eblake@redhat.com>
47685         maint: improve module indicators
47686         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_SET_VARIABLE)
47687         (gl_MODULE_INDICATOR, gl_MODULE_INDICATOR_FOR_TESTS): Fit in 80
47688         columns, and avoid extra macro expansion.
47690         fdopendir: work around FreeBSD bug
47691         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): New witness.
47692         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Set it.
47693         * modules/dirent (Makefile.am): Substitute it.
47694         * lib/dirent.in.h (fdopendir): Supply missing FreeBSD
47695         declaration.
47696         * doc/posix-functions/fdopendir.texi (fdopendir): Document the
47697         fix.
47698         Reported by Christian Weisgerber <naddy@mips.inka.de>.
47700 2010-03-29  Bruno Haible  <bruno@clisp.org>
47702         Emit #pragma system_header after the inclusion guard, not before.
47703         * lib/arpa_inet.in.h: Emit #pragma system_header after the inclusion
47704         guard that spans the entire file, not before. This enables an
47705         optimization in GCC's preprocessor.
47706         * lib/ctype.in.h: Likewise.
47707         * lib/dirent.in.h: Likewise.
47708         * lib/errno.in.h: Likewise.
47709         * lib/float.in.h: Likewise.
47710         * lib/getopt.in.h: Likewise.
47711         * lib/iconv.in.h: Likewise.
47712         * lib/langinfo.in.h: Likewise.
47713         * lib/locale.in.h: Likewise.
47714         * lib/math.in.h: Likewise.
47715         * lib/netdb.in.h: Likewise.
47716         * lib/netinet_in.in.h: Likewise.
47717         * lib/pty.in.h: Likewise.
47718         * lib/sched.in.h: Likewise.
47719         * lib/se-selinux.in.h: Likewise.
47720         * lib/search.in.h: Likewise.
47721         * lib/spawn.in.h: Likewise.
47722         * lib/stdarg.in.h: Likewise.
47723         * lib/stdint.in.h: Likewise.
47724         * lib/string.in.h: Likewise.
47725         * lib/strings.in.h: Likewise.
47726         * lib/sys_file.in.h: Likewise.
47727         * lib/sys_ioctl.in.h: Likewise.
47728         * lib/sys_time.in.h: Likewise.
47729         * lib/sys_times.in.h: Likewise.
47730         * lib/sys_utsname.in.h: Likewise.
47731         * lib/sys_wait.in.h: Likewise.
47732         * lib/sysexits.in.h: Likewise.
47733         * lib/wctype.in.h: Likewise.
47735 2010-03-28  James Youngman  <jay@gnu.org>
47737         save-cwd: don't leak a file descriptor when the caller execs.
47738         * lib/save-cwd.c (save_cwd): set the close-on-exec flag for the
47739         saved file descriptor.
47740         * modules/save-cwd (Depends-on): Depend on cloexec.
47742 2010-03-29  Bruno Haible  <bruno@clisp.org>
47744         Remove vestiges of fts-lgpl module.
47745         * lib/fts_.h: Assume GNULIB_FTS is 1.
47746         * lib/fts.c: Likewise.
47747         * modules/fts (configure.ac): Remove gl_MODULE_INDICATOR invocation.
47749 2010-03-28  Bruno Haible  <bruno@clisp.org>
47751         Fix definition of tests witness macro.
47752         * gnulib-tool (func_import): Fix definition of witness macro.
47754 2010-03-28  Bruno Haible  <bruno@clisp.org>
47756         Fix ioctl's protoype on glibc systems.
47757         * lib/sys_ioctl.in.h (ioctl): If REPLACE_IOCTL is 1, use a wrapper. Use
47758         _GL_CXXALIAS_SYS, not _GL_CXXALIAS_SYS_CAST.
47759         * lib/ioctl.c (rpl_ioctl) [HAVE_IOCTL]: New wrapper.
47760         * modules/ioctl (configure.ac): Test whether ioctl has the POSIX
47761         signature. If not, arrange to replace the ioctl function.
47762         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H_DEFAULTS): Initialize
47763         REPLACE_IOCTL.
47764         * modules/sys_ioctl (Makefile.am): Substitute REPLACE_IOCTL.
47765         * doc/posix-functions/ioctl.texi: Mention the glibc problem.
47766         Reported by Ludovic Courtès <ludo@gnu.org>.
47768 2010-03-28  Javier Villavicencio  <the_paya@gentoo.org>
47770         exclude: fix the case of globs vs. EXCLUDE_INCLUDE
47771         * lib/exclude.c (excluded_file_pattern_p): Fix logic error that
47772         made it so grep -r --include=GLOB* ... did not work.
47774 2010-03-26  Jim Meyering  <meyering@redhat.com>
47775             Eric Blake  <eblake@redhat.com>
47777         maint.mk: prohibit use of test's -o and -a operators
47778         * top/maint.mk (sc_prohibit_test_minus_ao): New rule.
47780 2010-03-28  Bruno Haible  <bruno@clisp.org>
47782         Remove unused GNULIB_XYZ macro definitions.
47783         * modules/crypto/gc-camellia (configure.ac): Remove gl_MODULE_INDICATOR
47784         invocation.
47786 2010-03-28  Bruno Haible  <bruno@clisp.org>
47788         Mark privileged tests modules.
47789         * modules/idpriv-drop-tests (Status): New section.
47790         * modules/idpriv-droptemp-tests (Status): New section.
47792 2010-03-28  Bruno Haible  <bruno@clisp.org>
47794         Split C++ tests into separate tests modules.
47795         * modules/dirent-c++-tests: New file, extracted from
47796         modules/dirent-tests.
47797         * modules/dirent-tests: Depend on it.
47798         * modules/fcntl-h-c++-tests: New file, extracted from
47799         modules/fcntl-h-tests.
47800         * modules/fcntl-h-tests: Depend on it.
47801         * modules/glob-c++-tests: New file, extracted from modules/glob-tests.
47802         * modules/glob-tests: Depend on it.
47803         * modules/iconv-h-c++-tests: New file, extracted from
47804         modules/iconv-h-tests.
47805         * modules/iconv-h-tests: Depend on it.
47806         * modules/langinfo-c++-tests: New file, extracted from
47807         modules/langinfo-tests.
47808         * modules/langinfo-tests: Depend on it.
47809         * modules/locale-c++-tests: New file, extracted from
47810         modules/locale-tests.
47811         * modules/locale-tests: Depend on it.
47812         * modules/math-c++-tests: New file, extracted from modules/math-tests.
47813         * modules/math-tests: Depend on it.
47814         * modules/pty-c++-tests: New file, extracted from modules/pty-tests.
47815         * modules/pty-tests: Depend on it.
47816         * modules/search-c++-tests: New file, extracted from
47817         modules/search-tests.
47818         * modules/search-tests: Depend on it.
47819         * modules/signal-c++-tests: New file, extracted from
47820         modules/signal-tests.
47821         * modules/signal-tests: Depend on it.
47822         * modules/spawn-c++-tests: New file, extracted from
47823         modules/spawn-tests.
47824         * modules/spawn-tests: Depend on it.
47825         * modules/stdio-c++-tests: New file, extracted from
47826         modules/stdio-tests.
47827         * modules/stdio-tests: Depend on it.
47828         * modules/stdlib-c++-tests: New file, extracted from
47829         modules/stdlib-tests.
47830         * modules/stdlib-tests: Depend on it.
47831         * modules/string-c++-tests: New file, extracted from
47832         modules/string-tests.
47833         * modules/string-tests: Depend on it.
47834         * modules/sys_ioctl-c++-tests: New file, extracted from
47835         modules/sys_ioctl-tests.
47836         * modules/sys_ioctl-tests: Depend on it.
47837         * modules/sys_select-c++-tests: New file, extracted from
47838         modules/sys_select-tests.
47839         * modules/sys_select-tests: Depend on it.
47840         * modules/sys_socket-c++-tests: New file, extracted from
47841         modules/sys_socket-tests.
47842         * modules/sys_socket-tests: Depend on it.
47843         * modules/sys_stat-c++-tests: New file, extracted from
47844         modules/sys_stat-tests.
47845         * modules/sys_stat-tests: Depend on it.
47846         * modules/sys_time-c++-tests: New file, extracted from
47847         modules/sys_time-tests.
47848         * modules/sys_time-tests: Depend on it.
47849         * modules/time-c++-tests: New file, extracted from modules/time-tests.
47850         * modules/time-tests: Depend on it.
47851         * modules/unistd-c++-tests: New file, extracted from
47852         modules/unistd-tests.
47853         * modules/unistd-tests: Depend on it.
47854         * modules/wchar-c++-tests: New file, extracted from
47855         modules/wchar-tests.
47856         * modules/wchar-tests: Depend on it.
47857         * modules/wctype-c++-tests: New file, extracted from
47858         modules/wctype-tests.
47859         * modules/wctype-tests: Depend on it.
47860         Reported by Simon Josefsson.
47862 2010-03-28  Bruno Haible  <bruno@clisp.org>
47864         gnulib-tool: Allow 'foo-tests' module even if there is no module 'foo'.
47865         * gnulib-tool (func_exists_module): New function, extracted from
47866         func_verify_module.
47867         (func_verify_module): Use it.
47868         (func_get_dependencies): Synthetize a dependency from 'foo-tests' to
47869         'foo' only if 'foo' exists.
47870         * doc/gnulib.texi (Extra tests modules): Explain how to split a tests
47871         module.
47873 2010-03-28  Bruno Haible  <bruno@clisp.org>
47875         gnulib-tool: Add support for special categories of tests.
47876         * gnulib-tool: New options --with-c++-tests, --with-longrunning-tests,
47877         --with-privileged-tests, --with-unportable-tests, --with-all-tests.
47878         (func_usage): Document them.
47879         (inc_cxx_tests, inc_longrunning_tests, inc_privileged_tests,
47880         inc_unportable_tests, inc_all_tests): New variables.
47881         (func_acceptable): Consider these variables.
47882         (func_modules_transitive_closure): Make it work when the 'Status' field
47883         consists of multiple words.
47884         (func_import): Store and restore the values of inc_cxx_tests,
47885         inc_longrunning_tests, inc_privileged_tests, inc_unportable_tests,
47886         inc_all_tests in gnulib-comp.m4.
47887         (func_create_testdir): Set inc_all_tests to true.
47888         * doc/gnulib.texi (Extra tests modules): New section.
47889         Suggested by Jim Meyering.
47891 2010-03-28  Bruno Haible  <bruno@clisp.org>
47893         ansi-c++-opt: Allow turning off the C++ build by default.
47894         * m4/ansi-c++.m4 (gl_CXX_CHOICE): Let CXX_CHOICE default to 'no' if
47895         gl_CXX_CHOICE_DEFAULT_NO is defined.
47896         Requested by Eric Blake.
47898 2010-03-28  Bruno Haible  <bruno@clisp.org>
47900         unistd: Avoid #define replacements in C++ mode.
47901         * lib/unistd.in.h (socket, connect, accept, bind, getpeername,
47902         getsockname, getsockopt, listen, recv, send, recvfrom, sendto,
47903         setsockopt, shutdown, select): In C++, attach a warning to the function
47904         if possible, rather than #defining the symbol to a dysfunctional alias.
47905         Reported by John W. Eaton <jwe@gnu.org>.
47907 2010-03-28  Bruno Haible  <bruno@clisp.org>
47909         Fix link errors on mingw.
47910         * lib/sys_ioctl.in.h (ioctl): Fix declaration idiom.
47911         * modules/sys_ioctl-tests (Makefile.am): Link test-sys_ioctl-c++ with
47912         $(LIBSOCKET).
47913         * modules/sys_select-tests (Makefile.am): Link test-sys_select-c++ with
47914         $(LIBSOCKET).
47916 2010-03-28  Bruno Haible  <bruno@clisp.org>
47917             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
47919         lib-ignore: Determine different options for different compilers.
47920         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Set a variable which
47921         depends on the current language (C/C++/Fortran). Don't set LDFLAGS.
47922         Add comments.
47923         (_gl_IGNORE_UNUSED_LIBRARIES_OPTIONS): New macro.
47924         * NEWS: Mention the change.
47926 2010-03-27  Bruno Haible  <bruno@clisp.org>
47928         Remove unused GNULIB_XYZ macro definitions.
47929         * modules/dup3 (configure.ac): Remove gl_MODULE_INDICATOR invocation.
47930         * modules/fseek (configure.ac): Likewise.
47931         * modules/ioctl (configure.ac): Likewise.
47932         * modules/open (configure.ac): Likewise.
47933         * modules/stdlib-safer (configure.ac): Likewise.
47935 2010-03-27  Bruno Haible  <bruno@clisp.org>
47937         Add a remark about certain modules.
47938         * modules/malloc (Comment): New section.
47939         * modules/realloc (Comment): Likewise.
47940         * modules/sigpipe (Comment): Likewise.
47942 2010-03-27  Bruno Haible  <bruno@clisp.org>
47944         Resolve conflict between the two kinds of module indicators.
47945         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_FOR_TESTS): Define
47946         GNULIB_TEST_XYZ instead of GNULIB_XYZ.
47947         * modules/canonicalize (configure.ac): Invoke
47948         gl_MODULE_INDICATOR_FOR_TESTS.
47949         * tests/test-canonicalize-lgpl.c: Test GNULIB_TEST_XYZ instead of
47950         GNULIB_XYZ.
47951         * tests/test-dirent-c++.cc: Likewise.
47952         * tests/test-dirent-safer.c: Likewise.
47953         * tests/test-dup2.c: Likewise.
47954         * tests/test-fchdir.c: Likewise.
47955         * tests/test-fcntl-h-c++.cc: Likewise.
47956         * tests/test-getopt.c: Likewise.
47957         * tests/test-getopt.h: Likewise.
47958         * tests/test-langinfo-c++.cc: Likewise.
47959         * tests/test-locale-c++.cc: Likewise.
47960         * tests/test-math-c++.cc: Likewise.
47961         * tests/test-pty-c++.cc: Likewise.
47962         * tests/test-search-c++.cc: Likewise.
47963         * tests/test-signal-c++.cc: Likewise.
47964         * tests/test-spawn-c++.cc: Likewise.
47965         * tests/test-stdio-c++.cc: Likewise.
47966         * tests/test-stdlib-c++.cc: Likewise.
47967         * tests/test-string-c++.cc: Likewise.
47968         * tests/test-sys_ioctl-c++.cc: Likewise.
47969         * tests/test-sys_select-c++.cc: Likewise.
47970         * tests/test-sys_socket-c++.cc: Likewise.
47971         * tests/test-sys_stat-c++.cc: Likewise.
47972         * tests/test-sys_time-c++.cc: Likewise.
47973         * tests/test-time-c++.cc: Likewise.
47974         * tests/test-unistd-c++.cc: Likewise.
47975         * tests/test-wchar-c++.cc: Likewise.
47976         * tests/uninorm/test-u8-nfc.c: Likewise.
47977         * tests/uninorm/test-u8-nfd.c: Likewise.
47978         * tests/uninorm/test-u8-nfkc.c: Likewise.
47979         * tests/uninorm/test-u8-nfkd.c: Likewise.
47980         * tests/uninorm/test-u16-nfc.c: Likewise.
47981         * tests/uninorm/test-u16-nfd.c: Likewise.
47982         * tests/uninorm/test-u16-nfkc.c: Likewise.
47983         * tests/uninorm/test-u16-nfkd.c: Likewise.
47984         * tests/uninorm/test-u32-nfc.c: Likewise.
47985         * tests/uninorm/test-u32-nfc-big.c: Likewise.
47986         * tests/uninorm/test-u32-nfd.c: Likewise.
47987         * tests/uninorm/test-u32-nfd-big.c: Likewise.
47988         * tests/uninorm/test-u32-nfkc.c: Likewise.
47989         * tests/uninorm/test-u32-nfkc-big.c: Likewise.
47990         * tests/uninorm/test-u32-nfkd.c: Likewise.
47991         * tests/uninorm/test-u32-nfkd-big.c: Likewise.
47992         * tests/uninorm/test-u32-normalize-big.c: Likewise.
47994 2010-03-27  Bruno Haible  <bruno@clisp.org>
47996         Distinguish two kinds of module indicators.
47997         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_FOR_TESTS): Renamed from
47998         gl_MODULE_INDICATOR.
47999         (gl_MODULE_INDICATOR): New macro.
48000         * m4/dirent_h.m4 (gl_DIRENT_MODULE_INDICATOR): Invoke
48001         gl_MODULE_INDICATOR_FOR_TESTS instead of gl_MODULE_INDICATOR.
48002         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR): Likewise.
48003         * m4/langinfo_h.m4 (gl_LANGINFO_MODULE_INDICATOR): Likewise.
48004         * m4/locale_h.m4 (gl_LOCALE_MODULE_INDICATOR): Likewise.
48005         * m4/math_h.m4 (gl_MATH_MODULE_INDICATOR): Likewise.
48006         * m4/pty_h.m4 (gl_PTY_MODULE_INDICATOR): Likewise.
48007         * m4/search_h.m4 (gl_SEARCH_MODULE_INDICATOR): Likewise.
48008         * m4/signal_h.m4 (gl_SIGNAL_MODULE_INDICATOR): Likewise.
48009         * m4/spawn_h.m4 (gl_SPAWN_MODULE_INDICATOR): Likewise.
48010         * m4/stdio_h.m4 (gl_STDIO_MODULE_INDICATOR): Likewise.
48011         * m4/stdlib_h.m4 (gl_STDLIB_MODULE_INDICATOR): Likewise.
48012         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Likewise.
48013         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_MODULE_INDICATOR): Likewise.
48014         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): Likewise.
48015         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Likewise.
48016         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): Likewise.
48017         * m4/sys_time_h.m4 (gl_SYS_TIME_MODULE_INDICATOR): Likewise.
48018         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Likewise.
48019         * m4/unistd_h.m4 (gl_UNISTD_MODULE_INDICATOR): Likewise.
48020         * m4/wchar_h.m4 (gl_WCHAR_MODULE_INDICATOR): Likewise.
48021         * modules/cloexec (configure.ac): Likewise.
48022         * modules/getopt-gnu (configure.ac): Likewise.
48023         * modules/uninorm/u8-normalize (configure.ac): Likewise.
48024         * modules/uninorm/u16-normalize (configure.ac): Likewise.
48025         * modules/uninorm/u32-normalize (configure.ac): Likewise.
48026         * modules/fdopendir (configure.ac): Invoke gl_MODULE_INDICATOR.
48028 2010-03-27  Bruno Haible  <bruno@clisp.org>
48030         New module description field 'Comment'.
48031         * gnulib-tool: New option --extract-comment.
48032         (func_usage): Document it.
48033         (sed_extract_prog, sed_extract_field_header): Support 'Comment' field.
48034         (func_get_comment): New function.
48035         * modules/TEMPLATE-EXTENDED: Add a blank Comment field.
48037 2010-03-27  Bruno Haible  <bruno@clisp.org>
48039         Addendum to 2010-02-07 commit.
48040         * gnulib-tool (func_usage): Document --extract-applicability option.
48042 2010-03-27  Bruno Haible  <bruno@clisp.org>
48044         Use GNULIB_POSIXCHECK instead of GNULIB_PORTCHECK.
48045         * lib/time.in.h (asctime, asctime_r, ctime, ctime_r): Test
48046         GNULIB_POSIXCHECK, not GNULIB_PORTCHECK. Provide compile-time warnings
48047         rather than link errors.
48049 2010-03-27  Bruno Haible  <bruno@clisp.org>
48051         Avoid side effects from tests-related modules on the compilation of lib.
48052         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_CONDITION): New macro.
48053         (gl_MODULE_INDICATOR_SET_VARIABLE): Use its expansion as a value.
48054         * gnulib-tool (func_emit_tests_Makefile_am): Accept a witness_macro
48055         parameter. Emit into AM_CPPFLAGS a definition of the designated C
48056         macro.
48057         (func_import): Define a witness macro. Assign it a value that depends
48058         on the current package. Override gl_MODULE_INDICATOR_CONDITION for the
48059         tests-related modules.
48060         (func_create_testdir): Update func_emit_tests_Makefile_am invocation.
48061         Reported by Jim Meyering.
48063 2010-03-27  Bruno Haible  <bruno@clisp.org>
48065         Factorize common .m4 code.
48066         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_SET_VARIABLE): New macro.
48067         * m4/arpa_inet_h.m4 (gl_ARPA_INET_MODULE_INDICATOR): Use it.
48068         * m4/ctype.m4 (gl_CTYPE_MODULE_INDICATOR): Likewise.
48069         * m4/dirent_h.m4 (gl_DIRENT_MODULE_INDICATOR): Likewise.
48070         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR): Likewise.
48071         * m4/iconv_h.m4 (gl_ICONV_MODULE_INDICATOR): Likewise.
48072         * m4/inttypes.m4 (gl_INTTYPES_MODULE_INDICATOR): Likewise.
48073         * m4/langinfo_h.m4 (gl_LANGINFO_MODULE_INDICATOR): Likewise.
48074         * m4/locale_h.m4 (gl_LOCALE_MODULE_INDICATOR): Likewise.
48075         * m4/math_h.m4 (gl_MATH_MODULE_INDICATOR): Likewise.
48076         * m4/netdb_h.m4 (gl_NETDB_MODULE_INDICATOR): Likewise.
48077         * m4/pty_h.m4 (gl_PTY_MODULE_INDICATOR): Likewise.
48078         * m4/search_h.m4 (gl_SEARCH_MODULE_INDICATOR): Likewise.
48079         * m4/signal_h.m4 (gl_SIGNAL_MODULE_INDICATOR): Likewise.
48080         * m4/spawn_h.m4 (gl_SPAWN_MODULE_INDICATOR): Likewise.
48081         * m4/stddef_h.m4 (gl_STDDEF_MODULE_INDICATOR): Likewise.
48082         * m4/stdio_h.m4 (gl_STDIO_MODULE_INDICATOR): Likewise.
48083         * m4/stdlib_h.m4 (gl_STDLIB_MODULE_INDICATOR): Likewise.
48084         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Likewise.
48085         * m4/strings_h.m4 (gl_STRINGS_MODULE_INDICATOR): Likewise.
48086         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_MODULE_INDICATOR): Likewise.
48087         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_MODULE_INDICATOR): Likewise.
48088         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): Likewise.
48089         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Likewise.
48090         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): Likewise.
48091         * m4/sys_time_h.m4 (gl_SYS_TIME_MODULE_INDICATOR): Likewise.
48092         * m4/sys_times_h.m4 (gl_SYS_TIMES_MODULE_INDICATOR): Likewise.
48093         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_MODULE_INDICATOR): Likewise.
48094         * m4/sys_wait_h.m4 (gl_SYS_WAIT_MODULE_INDICATOR): Likewise.
48095         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Likewise.
48096         * m4/unistd_h.m4 (gl_UNISTD_MODULE_INDICATOR): Likewise.
48097         * m4/wchar_h.m4 (gl_WCHAR_MODULE_INDICATOR): Likewise.
48099 2010-03-27  Bruno Haible  <bruno@clisp.org>
48101         Fix a compilation error on Cygwin with g++ >= 4.3.
48102         * lib/sys_stat.in.h (lchmod): Don't warn about the use of this function
48103         if it is undefined or if we alias it to chmod.
48104         (lstat): Don't warn about the use of this function if it is undefined
48105         or if we alias it to stat.
48106         Reported by Simon Josefsson.
48108 2010-03-27  Bruno Haible  <bruno@clisp.org>
48110         * m4/getlogin.m4 (gl_FUNC_GETLOGIN): Renamed from gl_GETLOGIN.
48111         * modules/getlogin (configure.ac): Update.
48113         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Renamed from gl_GETLOGIN_R.
48114         * modules/getlogin_r (configure.ac): Update.
48116         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Renamed from gl_INET_NTOP.
48117         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Update.
48118         * modules/inet_ntop (configure.ac): Update.
48120         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Renamed from gl_INET_PTON.
48121         * modules/inet_pton (configure.ac): Update.
48123         * m4/mbslen.m4 (gl_FUNC_MBSLEN): Renamed from gl_MBSLEN.
48124         * modules/mbslen (configure.ac): Update.
48126         * m4/pty.m4 (gl_FUNC_FORKPTY): Renamed from gl_FORKPTY.
48127         (gl_FUNC_OPENPTY): Renamed from gl_OPENPTY.
48128         * modules/forkpty (configure.ac): Update.
48129         * modules/openpty (configure.ac): Update.
48131 2010-03-26  Simon Josefsson  <simon@josefsson.org>
48133         * top/maint.mk (sc_texinfo_acronym): Don't infloop if there is
48134         no *.texi files.  Reported by Eric Blake <eblake@redhat.com>.
48136 2010-03-25  Eric Blake  <eblake@redhat.com>
48138         maint: use pragma consistently across replacement headers
48139         * lib/ctype.in.h (system_header): Hoist for consistent placement.
48140         * lib/dirent.in.h (system_header): Likewise.
48141         * lib/errno.in.h (system_header): Likewise.
48142         * lib/float.in.h (system_header): Likewise.
48143         * lib/getopt.in.h (system_header): Likewise.
48144         * lib/iconv.in.h (system_header): Likewise.
48145         * lib/inttypes.in.h (system_header): Likewise.
48146         * lib/langinfo.in.h (system_header): Likewise.
48147         * lib/locale.in.h (system_header): Likewise.
48148         * lib/math.in.h (system_header): Likewise.
48149         * lib/netdb.in.h (system_header): Likewise.
48150         * lib/netinet_in.in.h (system_header): Likewise.
48151         * lib/pty.in.h (system_header): Likewise.
48152         * lib/sched.in.h (system_header): Likewise.
48153         * lib/se-selinux.in.h (system_header): Likewise.
48154         * lib/search.in.h (system_header): Likewise.
48155         * lib/spawn.in.h (system_header): Likewise.
48156         * lib/stdarg.in.h (system_header): Likewise.
48157         * lib/stdint.in.h (system_header): Likewise.
48158         * lib/string.in.h (system_header): Likewise.
48159         * lib/strings.in.h (system_header): Likewise.
48160         * lib/sys_file.in.h (system_header): Likewise.
48161         * lib/sys_ioctl.in.h (system_header): Likewise.
48162         * lib/sys_socket.in.h (system_header): Likewise.
48163         * lib/sys_times.in.h (system_header): Likewise.
48164         * lib/sys_utsname.in.h (system_header): Likewise.
48165         * lib/sys_wait.in.h (system_header): Likewise.
48166         * lib/sysexits.in.h (system_header): Likewise.
48167         * lib/unistd.in.h (system_header): Likewise.
48168         * lib/wctype.in.h (system_header): Likewise.
48170         arpa/inet: fix mingw compilation warning
48171         * lib/arpa_inet.in.h (system_header): Hoist to be unconditional.
48172         Reported by Matthew Bolte.
48174 2010-03-25  Bruno Haible  <bruno@clisp.org>
48176         Avoid collision between gnulib wrapper and libintl wrapper.
48177         * lib/printf.c (printf): Don't define if a printf wrapper is already
48178         defined in intl/printf.c.
48179         Reported by Michel Boaventura <michel@michelboaventura.com>.
48181 2010-03-25  Bruno Haible  <bruno@clisp.org>
48183         Use ANSI C.
48184         * lib/readutmp.h (getutent): Provide ANSI C prototype.
48186 2010-03-25  Bruno Haible  <bruno@clisp.org>
48188         Minor formatting changes.
48189         * lib/acosl.c: Insert space before function argument list.
48190         * lib/argz.c: Likewise.
48191         * lib/asinl.c: Likewise.
48192         * lib/expl.c: Likewise.
48193         * lib/gen-uni-tables.c: Likewise.
48194         * lib/gettext.h: Likewise.
48195         * lib/glthread/lock.h: Likewise.
48196         * lib/tanl.c: Likewise.
48197         * lib/uniname/uniname.c: Likewise.
48198         * tests/test-idpriv-drop.c: Likewise.
48199         * tests/test-idpriv-droptemp.c: Likewise.
48200         * tests/test-lock.c: Likewise.
48201         * tests/test-tls.c: Likewise.
48202         * lib/argp-help.c: Insert space before function-like macro argument
48203         list.
48204         * lib/memcmp.c: Likewise.
48205         * tests/test-base64.c: Likewise.
48206         * lib/localename.c: Insert space before sizeof's argument list.
48207         * lib/safe-alloc.h: Likewise.
48208         * lib/file-set.h: Insert space before macro argument list.
48209         * tests/test-argp.c: Likewise.
48210         * lib/argp-namefrob.h: Insert space before function parameter list.
48211         * lib/getaddrinfo.c: Likewise.
48212         * lib/netdb.in.h: Likewise.
48213         * lib/parse-duration.h: Likewise.
48214         * lib/parse-duration.c: Likewise.
48215         * lib/poll.c: Likewise.
48216         * lib/select.c: Likewise.
48217         * lib/trim.h: Likewise.
48218         * tests/test-usleep.c: Likewise.
48219         * lib/ldexpl.c: Insert space before function parameter list and before
48220         function argument list.
48221         * lib/logl.c: Likewise.
48222         * lib/sqrtl.c: Likewise.
48223         * lib/trim.c: Likewise.
48224         * lib/cosl.c: Use GNU style indentation. Insert space before function
48225         argument list.
48226         * lib/sinl.c: Likewise.
48227         * lib/tsearch.c: Insert space after 'for'.
48228         Reported by Jim Meyering.
48230 2010-03-23  Pádraig Brady  <P@draigBrady.com>  (tiny change)
48232         * maint.mk (sc_Wundef_boolean): Check for the presence of the
48233         config header before grepping, as it's not present before
48234         autoreconf/configure are run.  Reported by Simon Josefsson.
48236 2010-03-23  Bruno Haible  <bruno@clisp.org>
48238         pt_chown: Make it work with automake < 1.11.
48239         * modules/pt_chown (Makefile.am): Define pkglibexecdir.
48240         Reported by Simon Josefsson.
48242 2010-03-23  Bruno Haible  <bruno@clisp.org>
48244         pt_chown: Don't depend on GPLed modules.
48245         * lib/pt_chown.c: Don't include idpriv.h.
48246         (main): Don't drop privileges.
48247         * modules/pt_chown (Depends-on): Remove idpriv-drop.
48248         Reported by Simon Josefsson.
48250 2010-03-24  Simon Josefsson  <simon@josefsson.org>
48252         * top/maint.mk (sc_texinfo_acronym): Add rule, based on
48253         suggestions from karl@freefriends.org (Karl Berry).
48255 2010-03-22  Eric Blake  <eblake@redhat.com>
48257         gethostname: further tweaks
48258         * lib/unistd.in.h (includes): Only worry about <winsock2.h> if we
48259         are overriding gethostname.
48260         Suggested by Bruno Haible.
48262 2010-03-21  Bruno Haible  <bruno@clisp.org>
48264         Fix comments.
48265         * lib/forkpty.c (rpl_forkpty): Fix comment.
48266         * lib/openpty.c (rpl_openpty): Likewise.
48267         Reported by Eric Blake.
48269 2010-03-22  Eric Blake  <eblake@redhat.com>
48271         gethostname: fix build on mingw
48272         * lib/unistd.in.h (includes): Work around fact that mingw
48273         <winsock2.h> re-includes <unistd.h>, by avoiding any
48274         redeclarations if we are being included by <winsock2.h>.
48275         Reported by Matthias Bolte.
48277 2010-03-21  Bruno Haible  <bruno@clisp.org>
48279         forkpty: Provide replacement on AIX, HP-UX, IRIX, Solaris.
48280         * lib/forkpty.c (forkpty): New replacement function, from glibc with
48281         modifications.
48282         * lib/pty.in.h (forkpty): Update declaration. Add comments.
48283         * m4/pty.m4 (gl_FORKPTY): If forkpty is not declared, arrange to
48284         provide the replacement.
48285         * modules/forkpty (Depends-on): Add openpty, login_tty.
48286         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Initialize HAVE_FORKPTY.
48287         * modules/pty (Makefile.am): Substitute HAVE_FORKPTY.
48288         * doc/glibc-functions/forkpty.texi: More supported platforms.
48289         * config/srclist.txt: Add forkpty.c (commented).
48291 2010-03-21  Bruno Haible  <bruno@clisp.org>
48293         * modules/forkpty-tests: Use the common TEMPLATE-TESTS.
48294         (Makefile.am): Verify that PTY_LIB is defined.
48296         * modules/openpty-tests: Use the common TEMPLATE-TESTS.
48298 2010-03-21  Bruno Haible  <bruno@clisp.org>
48300         Tests for module 'login_tty'.
48301         * modules/login_tty-tests: New file.
48302         * tests/test-login_tty.c: New file.
48304         New module 'login_tty'.
48305         * lib/login_tty.c: New file.
48306         * m4/pty.m4 (gl_FUNC_LOGIN_TTY): New macro.
48307         * modules/login_tty: New file.
48308         * doc/glibc-functions/login_tty.texi: Mention the new module.
48310 2010-03-21  Bruno Haible  <bruno@clisp.org>
48312         login_tty: Documentation.
48313         * doc/glibc-functions/login_tty.texi: New file.
48314         * doc/gnulib.texi (Glibc <utmp.h>): Include it.
48316 2010-03-21  Bruno Haible  <bruno@clisp.org>
48318         pty: Consistent macro naming.
48319         * m4/pty_h.m4 (gl_PTY_H): Renamed from gl_PTY.
48320         * m4/pty.m4 (gl_FORKPTY, gl_OPENPTY): Update.
48321         * modules/pty (configure.ac): Update.
48323 2010-03-21  Bruno Haible  <bruno@clisp.org>
48325         Tests for openpty: Make stricter.
48326         * tests/test-openpty.c (main): Add test of canonical processing and
48327         erase.
48328         * modules/openpty-tests (Makefile.am): Verify that PTY_LIB is defined.
48330         openpty: Provide replacement on AIX, HP-UX, IRIX, Solaris.
48331         * lib/openpty.c (openpty): New replacement function.
48332         * lib/pty.in.h: Include <termios.h>.
48333         (openpty): Update declaration. Add comments.
48334         * m4/pty.m4 (gl_OPENPTY): Require AC_USE_SYSTEM_EXTENSIONS. If openpty
48335         is not declared, arrange to provide the replacement. Check for _getpty
48336         and posix_openpt.
48337         * modules/openpty (Depends-on): Add extensions, fcntl-h, ioctl.
48338         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Initialize HAVE_OPENPTY.
48339         * modules/pty (Makefile.am): Substitute HAVE_OPENPTY.
48340         * modules/pty-tests (test_pty_c___LDADD): New variable.
48341         * doc/glibc-functions/openpty.texi: More supported platforms.
48343 2010-03-21  Bruno Haible  <bruno@clisp.org>
48345         setenv: Tweaks.
48346         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Include necessary headers in
48347         the test program.
48348         * doc/posix-functions/setenv.texi: Update platforms list.
48350 2010-03-21  Bruno Haible  <bruno@clisp.org>
48352         New module 'unlockpt'.
48353         * lib/unlockpt.c: New file, from glibc with modifications.
48354         * m4/unlockpt.m4: New file.
48355         * modules/unlockpt: New file.
48356         * lib/stdlib.in.h (unlockpt): New declaration.
48357         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether unlockpt is declared.
48358         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_UNLOCKPT, HAVE_UNLOCKPT.
48359         * modules/stdlib (Makefile.am): Substitute GNULIB_UNLOCKPT,
48360         HAVE_UNLOCKPT.
48361         * doc/posix-functions/unlockpt.texi: Mention the new module.
48362         * tests/test-stdlib-c++.cc: Check GNULIB_NAMESPACE::unlockpt.
48363         * config/srclist.txt: Add unlockpt.c (commented).
48365 2010-03-21  Jim Meyering  <meyering@redhat.com>
48367         maint.mk: prohibit inclusion of "intprops.h" without use
48368         * top/maint.mk (sc_prohibit_intprops_without_use): New rule.
48370 2010-03-21  Bruno Haible  <bruno@clisp.org>
48372         New module 'grantpt'.
48373         * lib/grantpt.c: New file, from glibc with modifications.
48374         * m4/grantpt.m4: New file.
48375         * modules/grantpt: New file.
48376         * lib/stdlib.in.h (grantpt): New declaration.
48377         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether grantpt is declared.
48378         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_GRANTPT, HAVE_GRANTPT.
48379         * modules/stdlib (Makefile.am): Substitute GNULIB_GRANTPT,
48380         HAVE_GRANTPT.
48381         * doc/posix-functions/grantpt.texi: Mention the new module.
48382         * tests/test-stdlib-c++.cc: Check GNULIB_NAMESPACE::grantpt.
48383         * config/srclist.txt: Add grantpt.c (commented).
48385 2010-03-21  Bruno Haible  <bruno@clisp.org>
48387         New module 'pt_chown'.
48388         * lib/pt_chown.c: New file, from glibc with modifications.
48389         * lib/pty-private.h: New file, from glibc with modifications.
48390         * modules/pt_chown: New file.
48391         * config/srclist.txt: Add pt_chown.c, pty-private.h (commented).
48393 2010-03-21  Bruno Haible  <bruno@clisp.org>
48395         Tests for module 'ptsname'.
48396         * modules/ptsname-tests: New file.
48397         * tests/test-ptsname.c: New file.
48399         New module 'ptsname'.
48400         * lib/ptsname.c: New file, from glibc with modifications.
48401         * m4/ptsname.m4: New file.
48402         * modules/ptsname: New file.
48403         * lib/stdlib.in.h (ptsname): New declaration.
48404         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether ptsname is declared.
48405         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_PTSNAME, HAVE_PTSNAME.
48406         * modules/stdlib (Makefile.am): Substitute GNULIB_PTSNAME,
48407         HAVE_PTSNAME.
48408         * doc/posix-functions/ptsname.texi: Mention the new module.
48409         * tests/test-stdlib-c++.cc: Check GNULIB_NAMESPACE::ptsname.
48410         * config/srclist.txt: Add ptsname.c (commented).
48412 2010-03-21  Bruno Haible  <bruno@clisp.org>
48414         Tests for module 'ttyname_r'.
48415         * modules/ttyname_r-tests: New file.
48416         * tests/test-ttyname_r.c: New file.
48418         New module 'ttyname_r'.
48419         * lib/ttyname_r.c: New file.
48420         * m4/ttyname_r.m4: New file.
48421         * modules/ttyname_r: New file.
48422         * lib/unistd.in.h (ttyname_r): New declaration.
48423         * m4/unistd_h.m4 (gl_UNISTD_H): Check whether ttyname_r is declared.
48424         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_TTYNAME_R, HAVE_TTYNAME_R.
48425         * modules/unistd (Makefile.am): Substitute GNULIB_TTYNAME_R,
48426         HAVE_TTYNAME_R.
48427         * tests/test-unistd-c++.cc: Check GNULIB_NAMESPACE::ttyname_r.
48428         * doc/posix-functions/ttyname_r.texi: Mention the new module.
48430 2010-03-20  Bruno Haible  <bruno@clisp.org>
48432         signal: Undefine macro definitions in C++ mode.
48433         * lib/signal.in.h (sigismember, sigemptyset, sigaddset, sigdelset,
48434         sigfillset): Undefine macro definitions from the system header in C++
48435         mode.
48436         Reported by John W. Eaton <jwe@gnu.org>.
48438 2010-03-20  Bruno Haible  <bruno@clisp.org>
48440         Ensure no #include statements inside extern "C" { ... }.
48441         * lib/obstack.h: Shrink extern "C" { ... } region so that it does not
48442         contain #include statements.
48443         * lib/time.in.h: Likewise.
48445 2010-03-20  Bruno Haible  <bruno@clisp.org>
48447         Make _GL_WARN_ON_USE usable in C++ and C mode in the same compilation.
48448         * build-aux/warn-on-use.h (_GL_WARN_EXTERN_C): New macro.
48449         (_GL_WARN_ON_USE, _GL_WARN_ON_USE_CXX): Likewise.
48450         Reported by John W. Eaton <jwe@gnu.org>.
48452 2010-03-20  Bruno Haible  <bruno@clisp.org>
48454         * m4/unlink.m4 (gl_FUNC_UNLINK): Fix last commit.
48455         Reported by Jim Meyering.
48457 2010-03-20  Bruno Haible  <bruno@clisp.org>
48459         pipe: Set errno upon failure.
48460         * lib/pipe.h: Specify that when -1 is returned, errno is set.
48461         * lib/pipe.c (create_pipe): Set errno when returning -1. Use the right
48462         errno value in error message.
48464 2010-03-20  Bruno Haible  <bruno@clisp.org>
48465             Jim Meyering  <meyering@redhat.com>
48467         lchown: Avoid "unused variable" warning.
48468         * lib/lchown.c (rpl_lchown): Move variable 'st' into #if block.
48470 2010-03-20  Bruno Haible  <bruno@clisp.org>
48472         Work around unlink() bug on MacOS X 10.5.6.
48473         * lib/unlink.c (rpl_unlink): If UNLINK_PARENT_BUG is defined, fail when
48474         attempting to unlink a parent directory.
48475         * m4/unlink.m4 (gl_FUNC_UNLINK): Require AC_CANONICAL_HOST. Test for
48476         MacOS X 10.5 bug. If the bug is present, define UNLINK_PARENT_BUG and
48477         activate for the replacement function.
48478         * doc/posix-functions/unlink.texi: Mention the MacOS X 10.5 bug.
48480 2010-03-20  Bruno Haible  <bruno@clisp.org>
48482         Fix link errors on Solaris 8.
48483         * modules/dirent-tests (test_dirent_c___LDADD): Add LIB_NANOSLEEP.
48484         * modules/wctype-tests (test_wctype_c___LDADD): Likewise.
48486 2010-03-19  Jim Meyering  <meyering@redhat.com>
48488         regcomp.c: make non-_LIBC implementation of build_range_exp consistent
48489         The _LIBC implementation of build_range_exp correctly honors the
48490         RE_NO_EMPTY_RANGES flag when checking for reversed range endpoints.
48491         However, the non-_LIBC implementation would ignore that syntax-bit
48492         flag and return REG_ERANGE unconditionally.
48493         This change makes it honor that flag.
48494         * lib/regcomp.c (build_range_exp) [!_LIBC]: Add a parameter: "syntax".
48495         Make two pointer parameters "const".
48496         Use "syntax" bits in order to honor RE_NO_EMPTY_RANGES.
48497         (parse_bracket_exp): Update caller.
48499         regex.m4: correct the reversed range endpoint ([b-a]) test
48500         * m4/regex.m4: When requiring that [b-a] evoke failure,
48501         use RE_NO_EMPTY_RANGES.  This makes this entire configure-time
48502         test pass once again for x86-based systems.
48504 2010-03-19  Bruno Haible  <bruno@clisp.org>
48506         scandir: Fix link error on Solaris 8.
48507         * lib/scandir.c (_D_EXACT_NAMLEN, _D_ALLOC_NAMLEN): New fallback
48508         macros.
48510 2010-03-19  Bruno Haible  <bruno@clisp.org>
48512         getusershell: Fix documentation.
48513         * doc/glibc-functions/endusershell.texi: Refer to the getusershell
48514         module.
48515         * doc/glibc-functions/setusershell.texi: Likewise.
48517         getusershell: Provide declaration, missing on Solaris 9.
48518         * lib/unistd.in.h (getusershell, setusershell, endusershell): Declare
48519         also if HAVE_GETUSERSHELL && !HAVE_DECL_GETUSERSHELL.
48520         * m4/getusershell.m4 (gl_FUNC_GETUSERSHELL): When the function exists,
48521         check whether it is declared. Set HAVE_DECL_GETUSERSHELL.
48522         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
48523         HAVE_DECL_GETUSERSHELL, not HAVE_GETUSERSHELL.
48524         * modules/unistd (Makefile.am): Substitute HAVE_DECL_GETUSERSHELL, not
48525         HAVE_GETUSERSHELL.
48526         * doc/glibc-functions/getusershell.texi: Mention the Solaris problem.
48528 2010-03-19  Bruno Haible  <bruno@clisp.org>
48530         wctype: Provide iswblank function.
48531         * lib/wctype.in.h (iswblank): Provide a replacement also when iswcntrl
48532         exists and is fine.
48533         * m4/wctype_h.m4 (gl_WCTYPE_H): Also check whether iswcntrl exists.
48534         * modules/wctype (Makefile.am): Substitute HAVE_ISWBLANK.
48535         * tests/test-wctype.c (main): Re-enable the iswblank tests.
48536         * doc/posix-functions/iswblank.texi: Update.
48538 2010-03-19  Bruno Haible  <bruno@clisp.org>
48540         Tests of module 'pty' in C++ mode.
48541         * modules/pty-tests: New file.
48542         * tests/test-pty-c++.cc: New file.
48543         * m4/pty_h.m4 (gl_PTY_MODULE_INDICATOR): Invoke gl_MODULE_INDICATOR.
48545 2010-03-19  Eric Blake  <eblake@redhat.com>
48547         logb: fix documentation
48548         * doc/posix-functions/logb.texi (logb): Gnulib fixes the cygwin
48549         1.5 declaration bug.
48551         forkpty, openpty: prefer glibc's const-safe prototype
48552         * lib/forkpty.c (rpl_forkpty): New file.
48553         * lib/openpty.c (rpl_openpty): Likewise.
48554         * modules/forkpty (Files): Distribute it.
48555         * modules/openpty (Files): Likewise.
48556         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Add new witnesses.  Move decl
48557         check...
48558         * m4/pty.m4 (gl_FORKPTY, gl_OPENPTY): ...here.  Request
48559         replacement for non-const BSD signature.
48560         * modules/pty (Makefile.am): Substitute witnesses.
48561         * lib/pty.in.h (forkpty, openpty): Declare replacements.
48562         * tests/test-forkpty.c: Update signature check.
48563         * tests/test-openpty.c: Likewise.
48564         * doc/glibc-functions/forkpty.texi (forkpty): Document the fix.
48565         * doc/glibc-functions/openpty.texi (openpty): Likewise.
48567         forkpty, openpty: split functions into new modules
48568         * modules/pty (Makefile.am): Substitute new witnesses.
48569         (Libraries): Move library detection...
48570         * modules/forkpty: ...into new module.
48571         * modules/openpty: Another new module.
48572         * modules/pty-tests: Rename and split...
48573         * modules/forkpty-tests: ...to this...
48574         * modules/openpty-tests: ...and this.
48575         * tests/test-pty.c: Rename and split...
48576         * tests/test-forkpty.c: ...to this...
48577         * tests/test-openpty.c: ...and this.
48578         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Add new witnesses.
48579         (gl_PTY): Split library searching...
48580         * m4/pty.m4 (gl_PTY_LIB): ...into new file.
48581         (gl_FORKPTY, gl_OPENPTY): New macros.
48582         * lib/pty.in.h (forkpty, openpty): Honor new witnesses.
48583         * NEWS: Mention the split.
48584         * MODULES.html.sh (Misc): Document the modules.
48585         * doc/glibc-functions/forkpty.texi (forkpty): Likewise.
48586         * doc/glibc-functions/openpty.texi (openpty): Likewise.
48588         pty: improve replacement header
48589         * lib/pty.in.h: New file.
48590         * modules/pty (Files): Ship it.
48591         (Makefile.am): Always build replacement.
48592         * m4/pty.m4: Rename...
48593         * m4/pty_h.m4: ...to this.
48594         (gl_PTY): Modernize setting of witness macros; update check of
48595         forkpty to take proper advantage of cache.
48596         (gl_PTY_MODULE_INDICATOR, gl_PTY_H_DEFAULTS): New macros.
48598         getopt: avoid compiler warning
48599         * lib/getopt.c (attribute_hidden): Remove unused macro.
48601 2010-03-18  Bruno Haible  <bruno@clisp.org>
48603         Fix link errors on Solaris 8.
48604         * modules/iconv-h-tests (test_iconv_h_c___LDADD): Add LIB_NANOSLEEP.
48605         * modules/search-tests (test_search_c___LDADD): Likewise.
48606         * modules/signal-tests (test_signal_c___LDADD): Likewise.
48607         * modules/spawn-tests (test_spawn_c___LDADD): Likewise.
48608         * modules/stdio-tests (test_stdio_c___LDADD): Likewise.
48609         * modules/sys_select-tests (test_sys_select_c___LDADD): Likewise.
48610         * modules/sys_socket-tests (test_sys_socket_c___LDADD): Likewise.
48611         * modules/sys_time-tests (test_sys_time_c___LDADD): Likewise.
48612         * modules/wchar-tests (test_wchar_c___LDADD): Likewise.
48614 2010-03-18  Bruno Haible  <bruno@clisp.org>
48616         Fix bug introduced on 2010-03-14.
48617         * m4/spawn_h.m4 (gl_HAVE_POSIX_SPAWN): New macro.
48618         (gl_SPAWN_H): Require it.
48619         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): Likewise.
48620         Reported by Simon Josefsson.
48622 2010-03-18  Bruno Haible  <bruno@clisp.org>
48624         Fix typo introduced on 2009-12-31.
48625         * m4/spawn_h.m4 (gl_SPAWN_H): Check for the declaration of
48626         posix_spawn_file_actions_adddup2.
48628 2010-03-17  Bert Wesarg  <bert.wesarg@googlemail.com>  (tiny change)
48629         and Eric Blake  <eblake@redhat.com>
48631         test-vc-list-files-git: make more robust
48632         * tests/test-vc-list-files-git.sh: Unset problematic environment
48633         variables.  Chain commands together.
48635 2010-03-17  Ludovic Courtès  <ludo@gnu.org>  (tiny change)
48637         * m4/pty.m4: Unset $ac_cv_have_decl_forkpty before the second
48638         `AC_CHECK_DECL' invocation.
48640 2010-03-15  Sergey Poznyakoff  <gray@gnu.org.ua>
48642         * lib/inttostr.c (inttostr): Make sure the invocation of verify
48643         appears before executable statements. Suggested by Petr Sumbera
48644         <Petr.Sumbera@Sun.COM>.
48646 2010-03-14  Bruno Haible  <bruno@clisp.org>
48648         * tests/test-flock.c (test_exclusive): Comment out a test that causes
48649         portability problems. Instead use a simpler test.
48650         (main): Check that invalid arguments are rejected only on Linux.
48652 2010-03-14  Bruno Haible  <bruno@clisp.org>
48654         Fix bug introduced on 2009-12-31.
48655         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Invoke
48656         gl_PREREQ_SYS_H_WINSOCK2 always.
48657         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise. Remove
48658         SYS_SOCKET_H variable.
48659         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H): Remove test for flock.
48660         Update comments.
48661         * m4/ctype.m4 (gl_CTYPE_H): Update comments.
48662         * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
48663         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
48664         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
48665         * m4/sys_wait_h.m4 (gl_SYS_WAIT_H): Likewise.
48667 2010-03-14  Bruno Haible  <bruno@clisp.org>
48669         Fix values returned by sinl, cosl.
48670         * lib/trigl.h: Add specification comments.
48671         * lib/sincosl.c (kernel_sinl, kernel_cosl): Fix comments and formula
48672         that combines the values from the precomputed table with the values of
48673         the Chebyshev polynomials.
48675 2010-03-14  Bruno Haible  <bruno@clisp.org>
48677         Fix compilation error when modules 'posix_spawn[p]' are not used.
48678         * m4/spawn_h.m4 (gl_SPAWN_H): Set HAVE_POSIX_SPAWN here.
48679         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): ... not here.
48681 2010-03-14  Bruno Haible  <bruno@clisp.org>
48683         Fix compilation error on mingw when module 'time_r' is not used.
48684         * lib/time.in.h (localtime_r, gmtime_r): Declare only if GNULIB_TIME_R
48685         is 1.
48686         * tests/test-time-c++.cc (localtime_r, gmtime_r): Likewise.
48687         * modules/time_r (configure.ac): Invoke gl_TIME_MODULE_INDICATOR.
48688         * modules/time (Makefile.am): Substitute GNULIB_TIME_R.
48689         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize GNULIB_TIME_R.
48691 2010-03-14  Bruno Haible  <bruno@clisp.org>
48693         Fix compilation error with Sun C.
48694         * lib/strtol.c: Use LLONG_MIN instead of GCC specific LONG_LONG_MIN.
48695         Use LLONG_MAX instead of GCC specific LONG_LONG_MAX. Use ULLONG_MAX
48696         instead of GCC specific ULONG_LONG_MAX.
48697         * lib/xstrtoll.c: Likewise.
48698         * lib/xstrtoull.c: Likewise.
48700 2010-03-13  Bruno Haible  <bruno@clisp.org>
48702         Allow the user to disable C++ code and tests.
48703         * m4/ansi-c++.m4 (gl_CXX_CHOICE): New macro.
48704         (gl_PROG_ANSI_CXX): Require it.
48706 2010-03-13  Bruno Haible  <bruno@clisp.org>
48708         * DEPENDENCIES (libtool): Mention libtool 2.2.x requirement in special
48709         cases.
48711 2010-03-13  Bruno Haible  <bruno@clisp.org>
48713         Test that gnulib does not break the standard C++ headers.
48714         * tests/test-locale-c++2.cc: New file.
48715         * modules/locale-tests (Files): Add it.
48716         (Makefile.am): Compile it for test-locale-c++.
48717         * tests/test-math-c++2.cc: New file.
48718         * modules/math-tests (Files): Add it.
48719         (Makefile.am): Compile it for test-math-c++.
48720         * tests/test-signal-c++2.cc: New file.
48721         * modules/signal-tests (Files): Add it.
48722         (Makefile.am): Compile it for test-signal-c++.
48723         * tests/test-stdio-c++2.cc: New file.
48724         * modules/stdio-tests (Files): Add it.
48725         (Makefile.am): Compile it for test-stdio-c++.
48726         * tests/test-stdlib-c++2.cc: New file.
48727         * modules/stdlib-tests (Files): Add it.
48728         (Makefile.am): Compile it for test-stdlib-c++.
48729         * tests/test-string-c++2.cc: New file.
48730         * modules/string-tests (Files): Add it.
48731         (Makefile.am): Compile it for test-string-c++.
48732         * tests/test-time-c++2.cc: New file.
48733         * modules/time-tests (Files): Add it.
48734         (Makefile.am): Compile it for test-time-c++.
48735         Reported by John W. Eaton <jwe@gnu.org>.
48737 2010-03-13  Bruno Haible  <bruno@clisp.org>
48739         * gnulib-tool (func_usage): Clarify which options are available for
48740         --create-testdir and --create-megatestdir.
48742 2010-03-13  Bruno Haible  <bruno@clisp.org>
48744         Fix compilation error with glibc >= 2.10 and g++ >= 4.4.
48745         * build-aux/warn-on-use.h (_GL_WARN_ON_USE_CXX): New macro.
48746         * build-aux/c++defs.h (_GL_CXXALIASWARN1): New macro.
48747         * lib/string.in.h (memchr, memrchr, rawmemchr, strchrnul, strpbrk,
48748         strstr, strcasestr): Use _GL_CXXALIASWARN1 instead of _GL_CXXALIASWARN
48749         when appropriate.
48750         Reported by Jim Meyering.
48752 2010-03-12  Simon Josefsson  <simon@josefsson.org>
48754         * gnulib-tool (func_import): Explain origin of code.
48756 2010-03-12  Bruno Haible  <bruno@clisp.org>
48758         Fix problem with automake's definition of CXXLINK.
48759         * gnulib-tool (func_create_testdir): After LT_INIT, also use LT_LANG.
48760         Reported by Simon Josefsson and Ludovic Courtès.
48762 2010-03-12  Bruno Haible  <bruno@clisp.org>
48764         * doc/gnulib-intro.texi (Steady Development): Mention Ian Beckwith's
48765         stable releases.
48767 2010-03-11  Bruno Haible  <bruno@clisp.org>
48769         Fix problems with overloaded C++ definitions of memchr, strpbrk, etc.
48770         * build-aux/c++defs.h (_GL_CXXALIAS_SYS_CAST2): Make it work regardless
48771         whether the system provides one variant or multiple variants of the
48772         function.
48773         * lib/string.in.h (memchr, strpbrk): Use _GL_CXXALIAS_SYS_CAST2 for all
48774         C++ compilers.
48775         (memrchr, rawmemchr, strchrnul, strstr, strcasestr): Use
48776         _GL_CXXALIAS_SYS_CAST2 instead of _GL_CXXALIAS_SYS.
48777         Reported by Jim Meyering.
48779 2010-03-09  Simon Josefsson  <simon@josefsson.org>
48781         * gnulib-tool (LIBTOOLPATH): Fix cut'n'paste bug.
48783 2010-03-08  Bruno Haible  <bruno@clisp.org>
48785         gnulib-tool: Add support for --libtool in --create-testdir.
48786         * gnulib-tool (LIBTOOLPATH, LIBTOOLIZE): New variables.
48787         (func_create_testdir): Emit LT_INIT invocations. Invoke LIBTOOLIZE.
48789 2010-03-08  Eric Blake  <eblake@redhat.com>
48791         gnulib-tool.texi: mention possibility of git submodule
48792         * doc/gnulib-tool.texi (VCS Issues): Add details about using git
48793         submodules.
48794         * doc/.gitignore: Ignore another generated file.
48796 2010-03-08  Karl Berry  <karl@gnu.org>
48798         * doc/gnulib-tool.texi (VCS Issues): Mention third option
48799         of committing gnulib files while skipping others.
48801 2010-03-07  Bruno Haible  <bruno@clisp.org>
48803         Tests of module 'wctype' in C++ mode.
48804         * tests/test-wctype-c++.cc: New file.
48805         * modules/wctype-tests (Files): Add it and tests/signature.h.
48806         (Depends-on): Add ansi-c++-opt.
48807         (Makefile.am): Arrange to compile and run test-wctype-c++.
48809         Tests of module 'wchar' in C++ mode.
48810         * tests/test-wchar-c++.cc: New file.
48811         * modules/wchar-tests (Files): Add it and tests/signature.h.
48812         (Depends-on): Add ansi-c++-opt.
48813         (Makefile.am): Arrange to compile and run test-wchar-c++.
48814         * m4/wchar_h.m4 (gl_WCHAR_MODULE_INDICATOR): Invoke
48815         gl_MODULE_INDICATOR.
48817         Tests of module 'unistd' in C++ mode.
48818         * tests/test-unistd-c++.cc: New file.
48819         * modules/unistd-tests (Files): Add it and tests/signature.h.
48820         (Depends-on): Add ansi-c++-opt.
48821         (Makefile.am): Arrange to compile and run test-unistd-c++.
48822         * m4/unistd_h.m4 (gl_UNISTD_MODULE_INDICATOR): Invoke
48823         gl_MODULE_INDICATOR.
48825         Tests of module 'time' in C++ mode.
48826         * tests/test-time-c++.cc: New file.
48827         * modules/time-tests (Files): Add it and tests/signature.h.
48828         (Depends-on): Add ansi-c++-opt.
48829         (Makefile.am): Arrange to compile and run test-time-c++.
48830         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Invoke gl_MODULE_INDICATOR.
48832         Tests of module 'sys_time' in C++ mode.
48833         * tests/test-sys_time-c++.cc: New file.
48834         * modules/sys_time-tests (Files): Add it and tests/signature.h.
48835         (Depends-on): Add ansi-c++-opt.
48836         (Makefile.am): Arrange to compile and run test-sys_time-c++.
48837         * m4/sys_time_h.m4 (gl_SYS_TIME_MODULE_INDICATOR): Invoke
48838         gl_MODULE_INDICATOR.
48840         Tests of module 'sys_stat' in C++ mode.
48841         * tests/test-sys_stat-c++.cc: New file.
48842         * modules/sys_stat-tests (Files): Add it and tests/signature.h.
48843         (Depends-on): Add ansi-c++-opt.
48844         (Makefile.am): Arrange to compile and run test-sys_stat-c++.
48845         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): Invoke
48846         gl_MODULE_INDICATOR.
48848         Tests of module 'sys_socket' in C++ mode.
48849         * tests/test-sys_socket-c++.cc: New file.
48850         * modules/sys_socket-tests (Files): Add it and tests/signature.h.
48851         (Depends-on): Add ansi-c++-opt.
48852         (Makefile.am): Arrange to compile and run test-sys_socket-c++.
48853         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Invoke
48854         gl_MODULE_INDICATOR.
48856         Tests of module 'sys_select' in C++ mode.
48857         * tests/test-sys_select-c++.cc: New file.
48858         * modules/sys_select-tests (Files): Add it and tests/signature.h.
48859         (Depends-on): Add ansi-c++-opt.
48860         (Makefile.am): Arrange to compile and run test-sys_select-c++.
48861         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): Invoke
48862         gl_MODULE_INDICATOR.
48864         Tests of module 'sys_ioctl' in C++ mode.
48865         * tests/test-sys_ioctl-c++.cc: New file.
48866         * modules/sys_ioctl-tests (Files): Add it and tests/signature.h.
48867         (Depends-on): Add ansi-c++-opt.
48868         (Makefile.am): Arrange to compile and run test-sys_ioctl-c++.
48869         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_MODULE_INDICATOR): Invoke
48870         gl_MODULE_INDICATOR.
48872         Tests of module 'string' in C++ mode.
48873         * tests/test-string-c++.cc: New file.
48874         * modules/string-tests (Files): Add it and tests/signature.h.
48875         (Depends-on): Add ansi-c++-opt.
48876         (Makefile.am): Arrange to compile and run test-string-c++.
48877         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Invoke
48878         gl_MODULE_INDICATOR.
48880         Tests of module 'stdlib' in C++ mode.
48881         * tests/test-stdlib-c++.cc: New file.
48882         * modules/stdlib-tests (Files): Add it and tests/signature.h.
48883         (Depends-on): Add ansi-c++-opt.
48884         (Makefile.am): Arrange to compile and run test-stdlib-c++.
48885         * m4/stdlib_h.m4 (gl_STDLIB_MODULE_INDICATOR): Invoke
48886         gl_MODULE_INDICATOR.
48888         Tests of module 'stdio' in C++ mode.
48889         * tests/test-stdio-c++.cc: New file.
48890         * modules/stdio-tests (Files): Add it and tests/signature.h.
48891         (Depends-on): Add ansi-c++-opt.
48892         (Makefile.am): Arrange to compile and run test-stdio-c++.
48893         * m4/stdio_h.m4 (gl_STDIO_MODULE_INDICATOR): Invoke
48894         gl_MODULE_INDICATOR.
48896         Tests of module 'spawn' in C++ mode.
48897         * tests/test-spawn-c++.cc: New file.
48898         * modules/spawn-tests (Files): Add it and tests/signature.h.
48899         (Depends-on): Add ansi-c++-opt.
48900         (Makefile.am): Arrange to compile and run test-spawn-c++.
48901         * m4/spawn_h.m4 (gl_SPAWN_MODULE_INDICATOR): Invoke
48902         gl_MODULE_INDICATOR.
48904         Tests of module 'signal' in C++ mode.
48905         * tests/test-signal-c++.cc: New file.
48906         * modules/signal-tests (Files): Add it and tests/signature.h.
48907         (Depends-on): Add ansi-c++-opt.
48908         (Makefile.am): Arrange to compile and run test-signal-c++.
48909         * m4/signal_h.m4 (gl_SIGNAL_MODULE_INDICATOR): Invoke
48910         gl_MODULE_INDICATOR.
48912         Tests of module 'search' in C++ mode.
48913         * tests/test-search-c++.cc: New file.
48914         * modules/search-tests (Files): Add it and tests/signature.h.
48915         (Depends-on): Add ansi-c++-opt.
48916         (Makefile.am): Arrange to compile and run test-search-c++.
48917         * m4/search_h.m4 (gl_SEARCH_MODULE_INDICATOR): Invoke
48918         gl_MODULE_INDICATOR.
48920         Tests of module 'math' in C++ mode.
48921         * tests/test-math-c++.cc: New file.
48922         * modules/math-tests (Files): Add it and tests/signature.h.
48923         (Depends-on): Add ansi-c++-opt.
48924         (Makefile.am): Arrange to compile and run test-math-c++.
48925         * m4/math_h.m4 (gl_MATH_MODULE_INDICATOR): Invoke gl_MODULE_INDICATOR.
48927         Tests of module 'locale' in C++ mode.
48928         * tests/test-locale-c++.cc: New file.
48929         * modules/locale-tests (Files): Add it and tests/signature.h.
48930         (Depends-on): Add ansi-c++-opt.
48931         (Makefile.am): Arrange to compile and run test-locale-c++.
48932         * m4/locale_h.m4 (gl_LOCALE_MODULE_INDICATOR): Invoke
48933         gl_MODULE_INDICATOR.
48935         Tests of module 'langinfo' in C++ mode.
48936         * tests/test-langinfo-c++.cc: New file.
48937         * modules/langinfo-tests (Files): Add it and tests/signature.h.
48938         (Depends-on): Add ansi-c++-opt.
48939         (Makefile.am): Arrange to compile and run test-langinfo-c++.
48940         * m4/langinfo_h.m4 (gl_LANGINFO_MODULE_INDICATOR): Invoke
48941         gl_MODULE_INDICATOR.
48943         Tests of module 'iconv-h' in C++ mode.
48944         * tests/test-iconv-h-c++.cc: New file.
48945         * modules/iconv-h-tests (Files): Add it and tests/signature.h.
48946         (Depends-on): Add ansi-c++-opt.
48947         (Makefile.am): Arrange to compile and run test-iconv-h-c++.
48949         Tests of module 'glob' in C++ mode.
48950         * tests/test-glob-c++.cc: New file.
48951         * modules/glob-tests (Files): Add it.
48952         (Depends-on): Add ansi-c++-opt.
48953         (Makefile.am): Arrange to compile and run test-glob-c++.
48955         Tests of module 'fcntl-h' in C++ mode.
48956         * tests/test-fcntl-h-c++.cc: New file.
48957         * modules/fcntl-h-tests (Files): Add it and tests/signature.h.
48958         (Depends-on): Add ansi-c++-opt.
48959         (Makefile.am): Arrange to compile and run test-fcntl-h-c++.
48960         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR): Invoke
48961         gl_MODULE_INDICATOR.
48963         Tests of module 'dirent' in C++ mode.
48964         * tests/test-dirent-c++.cc: New file.
48965         * modules/dirent-tests (Files): Add it and tests/signature.h.
48966         (Depends-on): Add ansi-c++-opt.
48967         (Makefile.am): Arrange to compile and run test-dirent-c++.
48968         * m4/dirent_h.m4 (gl_DIRENT_MODULE_INDICATOR): Invoke
48969         gl_MODULE_INDICATOR.
48971         New module 'ansi-c++-opt'.
48972         * modules/ansi-c++-opt: New file.
48973         * m4/ansi-c++.m4: New file, from GNU gettext with modifications.
48975         Document C++ namespace mode.
48976         * doc/gnulib.texi (A C++ namespace for gnulib): New section.
48978         wctype: Avoid #define replacements in C++ mode.
48979         * lib/wctype.in.h: Include c++defs.h, warn-on-use.h.
48980         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph, iswlower,
48981         iswprint, iswpunct, iswspace, iswupper, iswxdigit, towlower, towupper):
48982         In C++, define a namespaced alias symbol.
48983         * m4/wctype_h.m4 (gl_WCTYPE_H): Don't set WCTYPE_H.
48984         * modules/wctype (Depends-on): Add c++defs, warn-on-use.
48985         (Makefile.am): Provide a wctype.h replacement always. Update wctype.h
48986         rule.
48988         wchar: Avoid #define replacements in C++ mode.
48989         * lib/wchar.in.h: Include c++defs.h.
48990         (btowc, wctob, mbsinit, mbrtowc, mbrlen, mbsrtowcs, mbsnrtowcs,
48991         wcrtomb, wcsrtombs, wcsnrtombs): In C++, define a namespaced alias
48992         symbol.
48993         (wcwidth): Likewise. Fix prototype to be POSIX compliant.
48994         * modules/wchar (Depends-on): Add c++defs.
48995         (Makefile.am): Update wchar.h rule.
48997         unistd: Avoid #define replacements in C++ mode.
48998         * lib/unistd.in.h: Include c++defs.h.
48999         (chown, close, dup, dup2, dup3, euidaccess, faccessat, fchdir,
49000         fchownat, fsync, ftruncate, getcwd, getdomainname, getdtablesize,
49001         getgroups, gethostname, getlogin, getlogin_r, getpagesize,
49002         getusershell, setusershell, endusershell, lchown, link, linkat, lseek,
49003         pipe2, pread, readlink, readlinkat, rmdir, sleep, symlink, symlinkat,
49004         unlink, unlinkat, usleep, write): In C++, define a namespaced alias
49005         symbol.
49006         (environ): Update.
49007         * modules/unistd (Depends-on): Add c++defs.
49008         (Makefile.am): Update unistd.h rule.
49010         time: Avoid #define replacements in C++ mode.
49011         * lib/time.in.h: Include c++defs.h, warn-on-use.h.
49012         (nanosleep, mktime, localtime_r, gmtime_r, strptime, timegm): In C++,
49013         define a namespaced alias symbol.
49014         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): New macro.
49015         (gl_HEADER_TIME_H_DEFAULTS): Initialize also GNULIB_MKTIME,
49016         GNULIB_NANOSLEEP, GNULIB_STRPTIME, GNULIB_TIMEGM.
49017         * modules/time (Depends-on): Add c++defs, warn-on-use.
49018         (Makefile.am): Update time.h rule.
49019         * modules/mktime (configure.ac): Invoke gl_TIME_MODULE_INDICATOR.
49020         * modules/nanosleep (configure.ac): Likewise.
49021         * modules/strptime (configure.ac): Likewise.
49022         * modules/timegm (configure.ac): Likewise.
49024         sys_time: Avoid #define replacements in C++ mode.
49025         * lib/sys_time.in.h: Include c++defs.h.
49026         (gettimeofday): In C++, define a namespaced alias symbol.
49027         * modules/sys_time (Depends-on): Add c++defs.
49028         (Makefile.am): Update sys/time.h rule.
49030         sys_stat: Avoid #define replacements in C++ mode.
49031         * lib/sys_stat.in.h: Include c++defs.h.
49032         (fchmodat, fstat, fstatat, futimens, lchmod, lstat, mkdir, mkdirat,
49033         mkfifo, mkfifoat, mknod, mknodat, utimensat): In C++, define a
49034         namespaced alias symbol.
49035         In C++, define a namespaced alias symbol.
49036         * modules/sys_stat (Depends-on): Add c++defs.
49037         (Makefile.am): Update sys/stat.h rule.
49039         sys_socket: Avoid #define replacements in C++ mode.
49040         * lib/sys_socket.in.h: Handle the case of recursive include on Cygwin.
49041         Include c++defs.h. Include warn-on-use.h earlier. Enable the function
49042         definitions also when the system has a <sys/socket.h>.
49043         (socket, connect, accept, bind, getpeername, getsockname, getsockopt,
49044         listen, recv, send, recvfrom, sendto, setsockopt, shutdown, accept4):
49045         In C++, define a namespaced alias symbol.
49046         * modules/sys_socket (Depends-on): Add c++defs.
49047         (Makefile.am): Update sys/socket.h rule.
49049         sys_select: Avoid #define replacements in C++ mode.
49050         * lib/sys_select.in.h: Include c++defs.h. Enable the function
49051         definitions also when the system has a <sys/select.h>.
49052         (select): In C++, define a namespaced alias symbol.
49053         * modules/sys_select (Depends-on): Add c++defs.
49054         (Makefile.am): Update sys/select.h rule.
49056         sys_ioctl: Avoid #define replacements in C++ mode.
49057         * lib/sys_ioctl.in.h: Include c++defs.h.
49058         (ioctl): In C++, define a namespaced alias symbol.
49059         * modules/sys_ioctl (Depends-on): Add c++defs.
49060         (Makefile.am): Update sys/ioctl.h rule.
49062         string: Avoid #define replacements in C++ mode.
49063         * lib/string.in.h: Include c++defs.h.
49064         (stpncpy): Define to rpl_stpncpy, not gnu_stpncpy.
49065         (memchr, memmem, mempcpy, memrchr, rawmemchr, stpcpy, stpncpy,
49066         strchrnul, strdup, strndup, strnlen, strpbrk, strsep, strstr,
49067         strcasestr, strtok_r, mbslen, mbschr, mbsrchr, mbspbrk, strerror,
49068         strsignal, strverscmp): In C++, define a namespaced alias symbol.
49069         * modules/string (Depends-on): Add c++defs.
49070         (Makefile.am): Update string.h rule.
49072         stdlib: Avoid #define replacements in C++ mode.
49073         * lib/stdlib.in.h: Include c++defs.h.
49074         (atoll, calloc, canonicalize_file_name, getloadavg, getsubopt, malloc,
49075         mkdtemp, mkostemp, mkostemps, mkstemp, mkstemps, putenv, random_r,
49076         srandom_r, initstate_r, setstate_r, realloc, realpath, rpmatch, setenv,
49077         strtod, strtoll, strtoull, unsetenv): In C++, define a namespaced alias
49078         symbol.
49079         * modules/stdlib (Depends-on): Add c++defs.
49080         (Makefile.am): Update stdlib.h rule.
49082         stdio: Avoid #define replacements in C++ mode.
49083         * lib/stdio.in.h: Include c++defs.h.
49084         (dprintf, fclose, fflush, fopen, fprintf, fpurge, fputc, fputs,
49085         freopen, fseek, fseeko, ftell, ftello, fwrite, getdelim, getline,
49086         obstack_printf, obstack_vprintf, perror, popen, printf, fputc, putchar,
49087         puts, remove, rename, renameat, snprintf, sprintf, asprintf, vasprintf,
49088         vdprintf, vfprintf, vprintf, vsnprintf, vsprintf): In C++, define a
49089         namespaced alias symbol.
49090         * modules/stdio (Depends-on): Add c++defs.
49091         (Makefile.am): Update stdio.h rule.
49093         spawn: Avoid #define replacements in C++ mode.
49094         * lib/spawn.in.h: Include c++defs.h.
49095         (posix_spawn, posix_spawnp, posix_spawnattr_init,
49096         posix_spawnattr_destroy, posix_spawnattr_getsigdefault,
49097         posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask,
49098         posix_spawnattr_setsigmask, posix_spawnattr_getflags,
49099         posix_spawnattr_setflags, posix_spawnattr_getpgroup,
49100         posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy,
49101         posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam,
49102         posix_spawnattr_setschedparam, posix_spawn_file_actions_init,
49103         posix_spawn_file_actions_destroy, posix_spawn_file_actions_addopen,
49104         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2):
49105         In C++, define a namespaced alias symbol.
49106         * modules/spawn (Depends-on): Add c++defs.
49107         (Makefile.am): Update spawn.h rule.
49109         signal: Avoid #define replacements in C++ mode.
49110         * lib/signal.in.h: Include c++defs.h.
49111         (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset,
49112         sigpending, sigprocmask, signal, raise, sigaction): In C++, define a
49113         namespaced alias symbol.
49114         * modules/signal (Depends-on): Add c++defs.
49115         (Makefile.am): Update signal.h rule.
49117         search: Avoid #define replacements in C++ mode.
49118         * lib/search.in.h: Include c++defs.h.
49119         (_gl_search_compar_fn, _gl_search_action_fn): New types.
49120         (tsearch, tfind, tdelete, twalk): In C++, define a namespaced alias
49121         symbol.
49122         * modules/search (Depends-on): Add c++defs.
49123         (Makefile.am): Update search.h rule.
49125         math: Avoid #define replacements in C++ mode.
49126         * lib/math.in.h: Include c++defs.h.
49127         (frexp, acosl, asinl, atanl, ceilf, ceill, cosl, expl, floorf, floorl,
49128         frexpl, ldexpl, logl, roundf, round, roundl, sinl, sqrtl, tanl, truncf,
49129         trunc, truncl): In C++, define a namespaced alias symbol.
49130         * modules/math (Depends-on): Add c++defs.
49131         (Makefile.am): Update math.h rule.
49133         locale: Avoid #define replacements in C++ mode.
49134         * lib/locale.in.h: Include c++defs.h.
49135         (duplocale): In C++, define a namespaced alias symbol.
49136         * m4/locale_h.m4 (gl_LOCALE_H_DEFAULTS): Initialize HAVE_DUPLOCALE.
49137         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Set HAVE_DUPLOCALE.
49138         * modules/locale (Depends-on): Add c++defs.
49139         (Makefile.am): Update locale.h rule. Substitute HAVE_DUPLOCALE.
49141         langinfo: Avoid #define replacements in C++ mode.
49142         * lib/langinfo.in.h: Include c++defs.h.
49143         (nl_langinfo): In C++, define a namespaced alias symbol.
49144         * modules/langinfo (Depends-on): Add c++defs.
49145         (Makefile.am): Update langinfo.h rule.
49147         iconv-h: Avoid #define replacements in C++ mode.
49148         * lib/iconv.in.h: Include c++defs.h, warn-on-use.h.
49149         (iconv_open, iconv, iconv_close): In C++, define a namespaced alias
49150         symbol.
49151         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Invoke gl_REPLACE_ICONV_H
49152         whenever iconv is present.
49153         * modules/iconv-h (Depends-on): Add c++defs, warn-on-use.
49154         (Makefile.am): Update iconv.h rule.
49156         glob: Avoid #define replacements in C++ mode.
49157         * lib/glob.in.h: Include c++defs.h, warn-on-use.h.
49158         (_gl_glob_errfunc_fn): New type.
49159         (glob, globfree, glob_pattern_p): In C++, define a namespaced alias
49160         symbol.
49161         * modules/glob (Depends-on): Add c++defs, warn-on-use.
49162         (Makefile.am): Update glob.h rule.
49164         fcntl-h: Avoid #define replacements in C++ mode.
49165         * lib/fcntl.in.h: Include c++defs.h.
49166         (fcntl, open, openat): In C++, define a namespaced alias symbol.
49167         * modules/fcntl-h (Depends-on): Add c++defs.
49168         (Makefile.am): Update fcntl.h rule.
49170         dirent: Avoid #define replacements in C++ mode.
49171         * lib/dirent.in.h: Include c++defs.h.
49172         (closedir, fdopendir, opendir, scandir, alphasort): In C++, define a
49173         namespaced alias symbol.
49174         (dirfd): Update declaration.
49175         * modules/dirent (Depends-on): Add c++defs.
49176         (Makefile.am): Update dirent.h rule.
49178         ctype: Make it usable in C++ code.
49179         * lib/ctype.in.h: Include c++defs.h.
49180         (isblank): Declare as extern "C".
49181         * modules/ctype (Depends-on): Add c++defs.
49182         (Makefile.am): Update ctype.h rule.
49184         New module 'c++defs'.
49185         * modules/c++defs: New file.
49186         * build-aux/c++defs.h: New file.
49187         Reported by John W. Eaton <jwe@gnu.org>.
49189 2010-03-07  Bruno Haible  <bruno@clisp.org>
49191         logb: Provide missing declaration for Cygwin.
49192         * lib/math.in.h (logb): New declaration.
49193         * m4/logb.m4: New file.
49194         * modules/logb (Files): Add m4/logb.m4.
49195         (Depends-on): Add math.
49196         (configure.ac): Invoke gl_FUNC_LOGB, gl_MATH_MODULE_INDICATOR.
49197         * m4/math_h.m4 (gl_MATH_H): Check also for logb declaration.
49198         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOGB, HAVE_DECL_LOGB.
49199         * modules/math (Makefile.am): Substitute GNULIB_LOGB, HAVE_DECL_LOGB.
49200         * doc/posix-functions/logb.texi: Mention the Cygwin bug.
49202 2010-03-07  Bruno Haible  <bruno@clisp.org>
49204         Fix test-cond link error.
49205         * tests/test-cond.c: Include <stdio.h>.
49207 2010-03-07  Bruno Haible  <bruno@clisp.org>
49209         Fix test-dirent-safer link error.
49210         * modules/dirent-safer-tests (Makefile.am): Define
49211         test_dirent_safer_LDADD.
49213 2010-03-07  Bruno Haible  <bruno@clisp.org>
49215         * gnulib-tool (func_create_testdir): Don't use 'lib-ignore' module
49216         among default module list.
49218 2010-03-07  Bruno Haible  <bruno@clisp.org>
49220         Fix link error on platforms with GNU libiconv.
49221         * modules/unistr/u8-strcoll-tests (Makefile): Define
49222         test_u8_strcoll_LDADD.
49223         * modules/unistr/u16-strcoll-tests (Makefile): Define
49224         test_u16_strcoll_LDADD.
49225         * modules/unistr/u32-strcoll-tests (Makefile): Define
49226         test_u32_strcoll_LDADD.
49228 2010-03-07  Bruno Haible  <bruno@clisp.org>
49230         Use POSIX declarations for socket functions.
49231         * lib/sys_socket.in.h (rpl_connect, rpl_accept, rpl_bind,
49232         rpl_getpeername, rpl_getsockname, rpl_recv, rpl_send, rpl_recvfrom,
49233         rpl_sendto): Change declaration to match POSIX.
49234         * lib/connect.c (rpl_connect): Likewise.
49235         * lib/accept.c (rpl_accept): Likewise.
49236         * lib/bind.c (rpl_bind): Likewise.
49237         * lib/getpeername.c (rpl_getpeername): Likewise.
49238         * lib/getsockname.c (rpl_getsockname): Likewise.
49239         * lib/recv.c (rpl_recv): Likewise.
49240         * lib/send.c (rpl_send): Likewise.
49241         * lib/recvfrom.c (rpl_recvfrom): Likewise.
49242         * lib/sendto.c (rpl_sendto): Likewise.
49244 2010-03-06  Bruno Haible  <bruno@clisp.org>
49246         Clarify access, euidaccess, faccessat.
49247         * doc/posix-functions/faccessat.texi: Mention security problem under
49248         "Other problems", not "Portability problems".
49249         * doc/posix-functions/access.texi: Likewise. Mention a related security
49250         problem.
49251         * doc/glibc-functions/euidaccess.texi: Mention security problems.
49252         * lib/euidaccess.c: Add comments about platforms.
49253         * lib/unistd.in.h (access, euidaccess): Add warnings.
49255 2010-03-07  Bruno Haible  <bruno@clisp.org>
49257         Ensure posix_spawnattr_{get,set}sched{policy,param} are defined.
49258         * lib/spawn.in.h (POSIX_SPAWN_SETSCHEDPARAM): Define fallback.
49259         (POSIX_SPAWN_SETSCHEDULER): Likewise.
49260         (POSIX_SPAWN_USEVFORK): Define in a way that works when
49261         POSIX_SPAWN_SETSCHEDPARAM and POSIX_SPAWN_SETSCHEDULER are zero.
49262         (posix_spawnattr_getschedpolicy, posix_spawnattr_setschedpolicy): Also
49263         declare when POSIX_SPAWN_SETSCHEDULER is zero.
49264         (posix_spawnattr_getschedparam, posix_spawnattr_setschedparam): Also
49265         declare when POSIX_SPAWN_SETSCHEDPARAM is zero.
49266         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): Test whether
49267         POSIX_SPAWN_SETSCHEDULER or POSIX_SPAWN_SETSCHEDPARAM are zero.
49268         * modules/posix_spawnattr_getschedparam (configure.ac): Enable the
49269         replacement also when POSIX_SPAWN_SETSCHEDPARAM is zero.
49270         * modules/posix_spawnattr_setschedparam (configure.ac): Likewise.
49271         * modules/posix_spawnattr_getschedpolicy (configure.ac): Enable the
49272         replacement also when POSIX_SPAWN_SETSCHEDULER is zero.
49273         * modules/posix_spawnattr_setschedpolicy (configure.ac): Likewise.
49274         * lib/spawnattr_getschedparam.c (posix_spawnattr_getschedparam): Do
49275         nothing if POSIX_SPAWN_SETSCHEDPARAM is zero.
49276         * lib/spawnattr_setschedparam.c (posix_spawnattr_setschedparam):
49277         Likewise.
49278         * lib/spawnattr_getschedpolicy.c (posix_spawnattr_getschedpolicy): Do
49279         nothing if POSIX_SPAWN_SETSCHEDULER is zero.
49280         * lib/spawnattr_setschedpolicy.c (posix_spawnattr_setschedpolicy):
49281         Likewise.
49282         * tests/test-spawn.c (main): Make it work when
49283         POSIX_SPAWN_SETSCHEDPARAM and POSIX_SPAWN_SETSCHEDULER are zero.
49285 2010-03-07  Bruno Haible  <bruno@clisp.org>
49287         Fix incorrect Makefile.am generation in German locale.
49288         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
49289         Execute sed command with character range in C locale.
49291 2010-03-06  Bruno Haible  <bruno@clisp.org>
49293         Tests for module 'iconv-h'.
49294         * modules/iconv-h-tests: New file.
49295         * tests/test-iconv-h.c: New file.
49297         New module 'iconv-h'.
49298         * modules/iconv-h: New file.
49299         * modules/iconv_open (Files): Remove lib/iconv.in.h, m4/iconv_h.m4.
49300         (Depends-on): Add iconv-h. Remove include_next, arg-nonnull.
49301         (configure.ac): Remove gl_ICONV_H.
49302         (Makefile.am): Remove rule for iconv.h.
49304 2010-03-06  Bruno Haible  <bruno@clisp.org>
49306         More consistent naming of *.m4 files.
49307         * m4/wctype_h.m4: Renamed from m4/wctype.m4.
49308         * modules/wctype (Files): Update.
49310         More consistent naming of *.m4 files.
49311         * m4/wchar_h.m4: Renamed from m4/wchar.m4.
49312         * modules/wchar (Files): Update.
49314 2010-03-06  Jim Meyering  <meyering@redhat.com>
49316         euidaccess: relax license to LGPLv2+
49317         * modules/euidaccess (License): Relax to LGPLv2+.
49319 2010-03-06  Bruno Haible  <bruno@clisp.org>
49321         Prefer lib_SOURCES over unconditional AC_LIBOBJ.
49322         * modules/exitfail (configure.ac): Remove AC_LIBOBJ invocation.
49323         (Makefile.am): Augment lib_SOURCES instead.
49325 2010-03-04  Jim Meyering  <meyering@redhat.com>
49327         utime: remove obsolete module
49328         This module, like autoconf's AC_FUNC_UTIME_NULL macro, has been
49329         unnecessary for years, and has been marked as obsolete for 10 months.
49330         * modules/utime: Remove file.
49331         * lib/utime.c: Remove file.
49332         * m4/utime.m4: Remove file.
49333         * m4/utimes-null.m4: Remove file.
49334         * doc/posix-functions/utime.texi (utime): Remove reference to
49335         the module.  Move the sole "fixed by gnulib" item into the
49336         "problems not fixed by Gnulib" list.
49337         * MODULES.html.sh (func_all_modules): Remove reference to "utime".
49339 2010-03-05  Simon Josefsson  <simon@josefsson.org>
49341         * modules/exit (License): Relax license to LGPLv2+.
49342         (Status): Mark as obsolete.
49343         * NEWS: Mention deprecated 'exit' module.
49344         * doc/posix-functions/exit.texi: Recommend 'stdlib' module instead
49345         of now obsolete 'exit'.
49347 2010-03-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
49349         fts-lgpl: remove unused module
49350         * modules/fts-lgpl: Remove.
49351         * MODULES.html.sh (func_all_modules): Adjust.
49352         * check-module (find_included_lib_files): Adjust.
49353         * m4/fts.m4 (gl_FUNC_FTS_LGPL): Remove.
49355 2010-03-02  Ben Walton  <bwalton@artsci.utoronto.ca>  (tiny change)
49357         copy-acl: enhance Solaris ACL error handling
49358         * lib/copy-acl.c (qcopy_acl): Also ignore EOPNOTSUPP.
49359         * lib/set-mode-acl.c (qset_acl): Likewise.
49361 2010-03-02  Bruno Haible  <bruno@clisp.org>
49363         spawn: Don't override the system defined values on FreeBSD 8.
49364         * lib/spawn.in.h (POSIX_SPAWN_RESETIDS, POSIX_SPAWN_SETPGROUP,
49365         POSIX_SPAWN_SETSIGDEF, POSIX_SPAWN_SETSIGMASK,
49366         POSIX_SPAWN_SETSCHEDPARAM, POSIX_SPAWN_SETSCHEDULER): Don't redefine
49367         if HAVE_POSIX_SPAWN is 1.
49368         Reported by Johan van Selst <johans@stack.nl> via Eric Blake.
49370 2010-03-01  Bruno Haible  <bruno@clisp.org>
49372         * doc/gnulib-tool.texi (Initial import): Clarify the requirements
49373         regarding Automake.
49375 2010-02-25  Bruno Haible  <bruno@clisp.org>
49377         Fix breakage of gnulib-tool with ksh, introduced on 2010-02-21.
49378         * gnulib-tool: Define 'echo' as a function only before the ksh alias
49379         setting, not afterwards.
49380         Reported by Ben Walton <bwalton@artsci.utoronto.ca>.
49382 2010-02-24  Eric Blake  <eblake@redhat.com>
49384         bootstrap, git-version-gen: use timestamp
49385         * build-aux/git-version-gen (scriptversion): Force UTC.
49386         * build-aux/bootstrap (scriptversion): New variable.
49388         bootstrap: allow older git
49389         * build-aux/bootstrap (GNULIB_SRCDIR): Add fallback if git is
49390         older than 1.6.4.  Requested by the libvirt project.
49392 2010-02-23  Eric Blake  <eblake@redhat.com>
49394         warn-on-use: work with old autoconf
49395         * m4/warn-on-use.m4 (gl_WARN_ON_USE_PREPARE): Accomodate older
49396         AS_VAR semantics of autoconf 2.60.
49397         Reported by Bruno Haible.
49399         bootstrap: improve some comments
49400         * build-aux/bootstrap: Drop unneeded emacs hint.  Add some
49401         clarification comments.
49403         gettimeofday: provide correct function
49404         * lib/gettimeofday.c (gettimeofday): Provide rpl_gettimeofday only
49405         when replacement is declared, otherwise provide gettimeofday.
49406         Reported by Michael Goffioul.
49408 2010-02-23  Jim Meyering  <meyering@redhat.com>
49410         lib-ignore: relax license to "unlimited", not LGPLv2+
49411         * modules/lib-ignore (License): Relax to "unlimited".
49413 2010-02-23  Jim Meyering  <meyering@redhat.com>
49415         lib-ignore: relax license to LGPLv2+
49416         * modules/lib-ignore (License): Relax to LGPLv2+.
49418 2010-02-22  Eric Blake  <eblake@redhat.com>
49420         lseek: avoid bash 3.2 broken pipe bug
49421         * m4/lseek.m4 (gl_FUNC_LSEEK): Drain pipe, to avoid spurious
49422         warning from bash 3.2.
49423         Reported by Ben Pfaff, with analysis from Bruno Haible.
49425         bootstrap: support non-FSF copyright holder
49426         * build-aux/bootstrap (COPYRIGHT_HOLDER, with_gettext): Allow
49427         bootstrap.conf override of COPYRIGHT_HOLDER.
49428         (MSGID_BUGS_ADDRESS): Allow URL rather than email.
49430         bootstrap: interoperate with gettext 0.14.1
49431         * build-aux/bootstrap (slurp): Fix typo when using older gettext.
49433         bootstrap: allow for alternate submodule location
49434         * build-aux/bootstrap (gnulib_path): New variable; use instead of
49435         hardcoding submodule location.
49436         (gnulib_mk): Allow direct use of Makefile.am.
49438         bootstrap: use GNULIB_SRCDIR to reduce disk usage
49439         * build-aux/bootstrap (GNULIB_SRCDIR): If set, use as a reference,
49440         rather than reconfiguring where the submodule points.
49442         gettimeofday: restore support for platforms that lack function
49443         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Also compile
49444         replacement if function is missing.
49445         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_DEFAULTS): New witness.
49446         * modules/sys_time (Makefile.am): Substitute it.
49447         * lib/sys_time.in.h (gettimeofday): Check it.
49448         Reported by Michael Goffioul.
49450 2010-02-21  Bruno Haible  <bruno@clisp.org>
49452         * lib/stdio.in.h (obstack_printf): Fix typo.
49454 2010-02-21  Jose E. Marchesi  <jemarch@gnu.org>
49456         vc-list-files: use bzr ls's -R option
49457         * build-aux/vc-list-files: Invoke bazaar to generate a recursive
49458         list of versioned files based on 'dir' (usage of -R in 'bzr ls').
49460 2010-02-21  Jim Meyering  <meyering@redhat.com>
49462         init.sh: fix EXEEXT shims to work also for names like test-prog
49463         * tests/init.sh: Re-exec a better shell, when needed.
49464         If the current shell lacks support for posix $(...), an init.sh-using
49465         test will now try to find a shell that supports that.  If EXEEXT is
49466         nonempty, we also require support for hyphen-in-alias-name and shell
49467         substitutions like ${var#glob}.  Failure to find such a shell results
49468         in a skipped test.
49470 2010-02-21  Bruno Haible  <bruno@clisp.org>
49472         Really work around "broken pipe" error message from bash 3.2.
49473         * gnulib-tool (func_reset_sigpipe): Remove function.
49474         (echo): In bash 3.2, define to a function that uses printf.
49475         Analyzed by Ralf Wildenhues, Chet Ramey, Ben Pfaff.
49477 2010-02-20  Bruno Haible  <bruno@clisp.org>
49479         Restore support for automake 1.9.6 with autoconf 2.61.
49480         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): Ensure MKDIR_P is AC_SUBSTed.
49481         Reported by James Youngman <jay@gnu.org>.
49483 2010-02-20  Bruno Haible  <bruno@clisp.org>
49485         Improve *printf warning condition.
49486         * lib/stdio.in.h (fprintf, printf, vfprintf, vprintf): Emit warning
49487         also if GNULIB_POSIXCHECK is defined, the *-posix module is not used,
49488         and the function is overridden due to SIGPIPE emulation.
49490 2010-02-20  Bruno Haible  <bruno@clisp.org>
49492         * lib/stdio.in.h: Tweak comments.
49494 2010-02-19  Bruno Haible  <bruno@clisp.org>
49496         Make it easier to find modules. New gnulib-tool option '--find'.
49497         * gnulib-tool: New option --find.
49498         (func_usage): Document it.
49499         (func_sanitize_modulelist): New function, extracted from
49500         func_all_modules.
49501         (func_all_modules): Invoke it.
49502         * doc/gnulib-tool.texi (Which modules?): New node.
49504 2010-02-18  Markus Duft  <mduft@gentoo.org>  (tiny change)
49506         * lib/sys_select.in.h: Provide select replacement even if
49507         sys/select.h exists on a system, for Interix.
49509 2010-02-18  Jim Meyering  <meyering@redhat.com>
49511         init.sh: don't use $(...) just yet
49512         * tests/init.sh (create_exe_shim_functions_): Use `...`, not $(...),
49513         to accommodate e.g., Solaris' /bin/sh.
49515 2010-02-17  Bruno Haible  <bruno@clisp.org>
49517         * doc/posix-headers/netdb.texi: Mention NetBSD 5.0 problem.
49518         Reported by Ludovic Courtès <ludo@gnu.org>.
49520 2010-02-16  Simon Josefsson  <simon@josefsson.org>
49522         * modules/userspec-tests (test_userspec_LDADD): Add variable, for
49523         linking with -lintl.
49525 2010-02-17  Simon Josefsson  <simon@josefsson.org>
49527         * lib/netdb.in.h (AI_V4MAPPED, AI_ALL, AI_ADDRCONFIG): Define to 0
49528         if not provided by the system's netdb.h.  Reported by
49529         ludo@gnu.org (Ludovic Courtès).
49531 2010-02-15  Jim Meyering  <meyering@redhat.com>
49533         init.sh: improve portability and efficiency
49534         * tests/init.sh (find_exe_basenames_): Remove unnecessary use of
49535         "dummy" in a for loop.
49536         Use '!', not '^' to select the complement of a character set used
49537         in a "case" statement.
49538         Use shell variable manipulation, a la ${...%.exe}, rather than sed.
49539         Suggestions from Eric Blake.
49541         init.sh: automatically accommodate programs with the .exe suffix
49542         Automatically arrange for an invocation of "prog" to execute the
49543         program named "prog$EXEEXT" (usually prog.exe).  Thus, all invocations
49544         may use the simpler "prog", yet still work when built on a system
49545         that requires specifying the added suffix.
49546         Do this by constructing a function named "prog" that invokes
49547         "prog.exe" for each .exe file in selected directories.
49548         * tests/init.sh (find_exe_basenames_): New function.
49549         (create_exe_shim_functions_): New function.
49550         (path_prepend_): Use it.
49552         maint.mk: mark syntax-check sc_*.m rules as .PHONY
49553         * top/maint.mk ($(syntax-check-rules)): Add .PHONY, so that
49554         "make -t syntax-check" doesn't create a ton of sc_*.m files.
49556 2010-02-14  Jim Meyering  <meyering@redhat.com>
49558         maint.mk: prohibit inclusion of "hash-pjw.h" without_use
49559         * top/maint.mk (sc_prohibit_hash_without_use): Re-add "@".
49560         (sc_prohibit_hash_pjw_without_use): New rule.
49562         maint.mk: allow the default upload destination dir to be overridden
49563         * top/maint.mk (upload_dest_dir_): Define with a default that
49564         preserves the status quo.
49565         (emit_upload_commands): Use it, rather than hard-coding $(PACKAGE).
49566         Reported by Peter Simons.
49568         maint.mk: prohibit inclusion of "hash.h" without_use
49569         * top/maint.mk (sc_prohibit_hash_without_use): New rule.
49571 2010-02-10  Jim Meyering  <meyering@redhat.com>
49573         maint.mk: prohibit inclusion of "ignore-value.h" without_use
49574         * top/maint.mk (sc_prohibit_ignore_value_without_use): New rule.
49576 2010-02-09  Eric Blake  <ebb9@byu.net>
49577         and Bruno Haible  <bruno@clisp.org>
49579         obstack-printf-posix: ensure declaration
49580         * m4/obstack-printf.m4 (gl_DECL_OBSTACK_PRINTF): New macro,
49581         extracted from gl_FUNC_OBSTACK_PRINTF.
49582         (gl_FUNC_OBSTACK_PRINTF): Invoke it.
49583         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX):
49584         Likewise.
49585         * lib/stdio.in.h (obstack_printf, obstack_vprintf): Declare also
49586         if GNULIB_OBSTACK_PRINTF_POSIX is 1 and GNULIB_OBSTACK_PRINTF is
49587         0.
49589 2010-02-08  Bruno Haible  <bruno@clisp.org>
49591         gnulib-tool: Fix typo in 2010-02-07 commit.
49592         * gnulib-tool (func_get_dependencies): Fix typo in last commit.
49593         Reported by Eric Blake.
49595 2010-02-07  Bruno Haible  <bruno@clisp.org>
49597         gnulib-tool: Fix up caching patches.
49598         * gnulib-tool: New options --cache-modules, --no-cache-modules. Remove
49599         option --no-cache. Use associative arrays when supported by the shell.
49600         (sed_comments): New variable.
49601         (modcache): Renamed from do_cache.
49602         (sed_extract_field_header): Renamed from sed_extract_cache_prog. Don't
49603         abbreviate unnecessarily.
49604         (have_associative): New variable.
49605         (func_cache_var): Define correctly for bash 1.x. Define in an optimized
49606         way also for ksh and zsh.
49607         (func_init_sed_convert_to_cache_statements): New function, extracted
49608         from func_cache_lookup_module. Add support for associative arrays.
49609         Don't set the c_MODULE_cached variable here. Ignore all lines before
49610         the first field header. Remove only the final newline, not all trailing
49611         newlines. Support empty fields correctly. Limit the use of 'eval' to
49612         assignments.
49613         (func_get_description, func_get_status, func_get_notice,
49614         func_get_applicability, func_get_filelist, func_get_dependencies,
49615         func_get_autoconf_early_snippet, func_get_autoconf_snippet,
49616         func_get_automake_snippet, func_get_include_directive,
49617         func_get_link_directive, func_get_license, func_get_maintainer):
49618         Update documentation. List the unoptimized code first. Add support for
49619         associative arrays. Limit the use of 'eval' to assignments.
49620         (func_get_applicability): Undo stylistic pessimisations.
49621         (func_get_automake_snippet, func_get_include_directive): Reduce code
49622         duplication.
49623         (func_modules_transitive_closure, func_modules_add_dummy,
49624         func_modules_notice, func_modules_to_filelist, func_add_file,
49625         func_update_file, func_emit_lib_Makefile_am, func_emit_po_Makevars,
49626         func_emit_po_POTFILES_in, func_emit_tests_Makefile_am, func_import,
49627         func_create_testdir, func_create_megatestdir): Update documentation.
49629 2010-01-18  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
49631         * gnulib-tool (func_cache_lookup_module): Store the module name
49632         belonging to the cache variable; error out if two different
49633         module names map to the same cache variable name.
49635 2010-01-18  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
49637         gnulib-tool: Make caching optional.
49638         * gnulib-tool: Accept option --no-cache, turning off $do_cache.
49639         Update matching short versions of --no-changelog.
49640         (func_usage): Update.
49641         (sed_extract_cache_prog): Renamed from ...
49642         (sed_extract_prog): ... this; revert to old extraction script.
49643         (func_get_description, func_get_status)
49644         (func_get_notice, func_get_applicability, func_get_filelist)
49645         (func_get_dependencies, func_get_autoconf_early_snippet)
49646         (func_get_autoconf_snippet, func_get_automake_snippet)
49647         (func_get_include_directive, func_get_link_directive)
49648         (func_get_license, func_get_maintainer): If $do_cache is false,
49649         use old, non-caching extraction scripts.
49650         Suggestion by Bruno Haible.
49652 2010-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
49654         gnulib-tool: cache module metainformation.
49655         * gnulib-tool (sed_extract_prog): Match newline before each
49656         header, and rewrite header to a shell variable suffix.
49657         (func_cache_var, func_cache_lookup_module): New functions,
49658         to turn a module name into a cache variable prefix, and to
49659         look up and cache module metainformation.
49660         (func_get_description, func_get_status)
49661         (func_get_notice, func_get_applicability, func_get_filelist)
49662         (func_get_dependencies, func_get_autoconf_early_snippet)
49663         (func_get_autoconf_snippet, func_get_automake_snippet)
49664         (func_get_include_directive, func_get_link_directive)
49665         (func_get_license, func_get_maintainer): Use
49666         func_cache_lookup_module.
49668 2010-02-07  Bruno Haible  <bruno@clisp.org>
49670         fnctl: Fix missing dependency.
49671         * modules/fcntl (Depends-on): Add getdtablesize.
49672         Reported by John W. Eaton <jwe@gnu.org>.
49674 2010-02-05  Sergey Poznyakoff  <gray@gnu.org.ua>
49676         Argp: fix recognition of short alias options.
49678         * lib/argp-parse.c (convert_options): Fix improper use of
49679         `|' between character values.
49680         * tests/test-argp.c (group1_option): New alias option
49681         --read (-r).
49682         (group1_parser): Special handling for 'r'.
49683         (test15): New test case.
49684         (test_fun): Add test15.
49685         * tests/test-argp-2.sh: Update expected --help and --usage
49686         outputs.
49688 2010-02-05  Sergey Poznyakoff  <gray@gnu.org.ua>
49690         * tests/test-argp.c: Fix indentation.
49692 2010-02-04  Eric Blake  <ebb9@byu.net>
49694         gettimeofday: expose type of second argument
49695         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Do better detection
49696         of glibc extension signature, and define GETTIMEOFDAY_TIMEZONE.
49697         * tests/test-gettimeofday.c: Use it to silence warning.
49698         * doc/posix-functions/gettimeofday.texi (gettimeofday): Document
49699         the issue.
49701 2010-02-03  Jim Meyering  <meyering@redhat.com>
49703         regcomp.c: avoid the sole warning from gcc's -Wtype-limits
49704         * lib/regcomp.c (TYPE_SIGNED): Define.
49705         (parse_dup_op): Use it to avoid the sole warning from -Wtype-limits.
49707         regcomp.c: avoid a new -Wshadow warning
49708         * lib/regcomp.c (create_initial_state): Do not shadow local "err".
49710 2010-02-01  Jim Meyering  <meyering@redhat.com>
49712         removing useless parentheses in cpp #define directives
49713         For motivation, see commit c0221df4, "define STREQ(a,b)
49714         consistently, removing useless parentheses"
49715         * lib/memcmp.c (CMP_LT_OR_GT): Remove useless parentheses.
49716         * lib/mountlist.c (MNT_IGNORE): Likewise.
49717         * lib/trim.h (trim, trim_trailing, trim_leading): Likewise.
49719 2010-02-01  Eric Blake  <ebb9@byu.net>
49721         sys_time: use link-warning
49722         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Split defaults...
49723         (gl_HEADER_SYS_TIME_H_DEFAULTS): ...into new macro.
49724         (gl_SYS_TIME_MODULE_INDICATOR): New macro.
49725         * modules/sys_time (Depends-on): Add warn-on-use.
49726         (Makefile.am): Always build replacement.
49727         (configure.ac): Update substitutions.
49728         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY)
49729         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Include defaults, and no longer
49730         bother with SYS_TIME_H.
49731         * modules/gettimeofday (configure.ac): Declare indicator.
49732         * lib/sys_time.in.h (gettimeofday): Warn if gnulib module is not
49733         in use.
49735         closein-tests: silence compiler warning
49736         * tests/test-closein.c (main): Ignore fread result.
49737         * modules/closein-tests (Depends-on): Add ignore-value.
49739         tests: silence warning about system return
49740         * tests/test-areadlink-with-size.c (main): Ignore system result.
49741         * tests/test-areadlink.c (main): Likewise.
49742         * tests/test-areadlinkat-with-size.c (main): Likewise.
49743         * tests/test-areadlinkat.c (main): Likewise.
49744         * tests/test-canonicalize-lgpl.c (main): Likewise.
49745         * tests/test-canonicalize.c (main): Likewise.
49746         * tests/test-chown.c (main): Likewise.
49747         * tests/test-fchownat.c (main): Likewise.
49748         * tests/test-fdutimensat.c (main): Likewise.
49749         * tests/test-fstatat.c (main): Likewise.
49750         * tests/test-futimens.c (main): Likewise.
49751         * tests/test-lchown.c (main): Likewise.
49752         * tests/test-link.c (main): Likewise.
49753         * tests/test-linkat.c (main): Likewise.
49754         * tests/test-lstat.c (main): Likewise.
49755         * tests/test-mkdir.c (main): Likewise.
49756         * tests/test-mkdirat.c (main): Likewise.
49757         * tests/test-mkfifo.c (main): Likewise.
49758         * tests/test-mkfifoat.c (main): Likewise.
49759         * tests/test-mknod.c (main): Likewise.
49760         * tests/test-readlink.c (main): Likewise.
49761         * tests/test-remove.c (main): Likewise.
49762         * tests/test-rename.c (main): Likewise.
49763         * tests/test-renameat.c (main): Likewise.
49764         * tests/test-rmdir.c (main): Likewise.
49765         * tests/test-symlink.c (main): Likewise.
49766         * tests/test-symlinkat.c (main): Likewise.
49767         * tests/test-unlink.c (main): Likewise.
49768         * tests/test-unlinkat.c (main): Likewise.
49769         * tests/test-utimens.c (main): Likewise.
49770         * tests/test-utimensat.c (main): Likewise.
49771         * modules/areadlink-tests (Depends-on): Add ignore-value.
49772         * modules/areadlink-with-size-tests (Depends-on): Likewise.
49773         * modules/areadlinkat-tests (Depends-on): Likewise.
49774         * modules/areadlinkat-with-size-tests (Depends-on): Likewise.
49775         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
49776         * modules/canonicalize-tests (Depends-on): Likewise.
49777         * modules/chown-tests (Depends-on): Likewise.
49778         * modules/fdutimensat-tests (Depends-on): Likewise.
49779         * modules/futimens-tests (Depends-on): Likewise.
49780         * modules/lchown-tests (Depends-on): Likewise.
49781         * modules/link-tests (Depends-on): Likewise.
49782         * modules/linkat-tests (Depends-on): Likewise.
49783         * modules/lstat-tests (Depends-on): Likewise.
49784         * modules/mkdir-tests (Depends-on): Likewise.
49785         * modules/mkfifo-tests (Depends-on): Likewise.
49786         * modules/mkfifoat-tests (Depends-on): Likewise.
49787         * modules/mknod-tests (Depends-on): Likewise.
49788         * modules/openat-tests (Depends-on): Likewise.
49789         * modules/readlink-tests (Depends-on): Likewise.
49790         * modules/remove-tests (Depends-on): Likewise.
49791         * modules/rename-tests (Depends-on): Likewise.
49792         * modules/renameat-tests (Depends-on): Likewise.
49793         * modules/rmdir-tests (Depends-on): Likewise.
49794         * modules/symlink-tests (Depends-on): Likewise.
49795         * modules/symlinkat-tests (Depends-on): Likewise.
49796         * modules/unlink-tests (Depends-on): Likewise.
49797         * modules/utimens-tests (Depends-on): Likewise.
49798         * modules/utimensat-tests (Depends-on): Likewise.
49800 2010-01-31  Bruno Haible  <bruno@clisp.org>
49802         Perform the same test for many <math.h> functions.
49803         * m4/mathfunc.m4 (gl_COMMON_DOUBLE_MATHFUNC,
49804         gl_COMMON_DOUBLE_MATHFUNC_TEST): New macros.
49805         * m4/sqrt.m4 (gl_FUNC_SQRT): Invoke gl_COMMON_DOUBLE_MATHFUNC instead
49806         of gl_MATHFUNC.
49807         * modules/acos (configure.ac): Likewise.
49808         * modules/asin (configure.ac): Likewise.
49809         * modules/atan (configure.ac): Likewise.
49810         * modules/atan2 (configure.ac): Likewise.
49811         * modules/cbrt (configure.ac): Likewise.
49812         * modules/copysign (configure.ac): Likewise.
49813         * modules/cos (configure.ac): Likewise.
49814         * modules/cosh (configure.ac): Likewise.
49815         * modules/erf (configure.ac): Likewise.
49816         * modules/erfc (configure.ac): Likewise.
49817         * modules/exp (configure.ac): Likewise.
49818         * modules/fmod (configure.ac): Likewise.
49819         * modules/hypot (configure.ac): Likewise.
49820         * modules/j0 (configure.ac): Likewise.
49821         * modules/j1 (configure.ac): Likewise.
49822         * modules/jn (configure.ac): Likewise.
49823         * modules/lgamma (configure.ac): Likewise.
49824         * modules/log (configure.ac): Likewise.
49825         * modules/log10 (configure.ac): Likewise.
49826         * modules/log1p (configure.ac): Likewise.
49827         * modules/pow (configure.ac): Likewise.
49828         * modules/remainder (configure.ac): Likewise.
49829         * modules/sin (configure.ac): Likewise.
49830         * modules/sinh (configure.ac): Likewise.
49831         * modules/tan (configure.ac): Likewise.
49832         * modules/tanh (configure.ac): Likewise.
49833         * modules/y0 (configure.ac): Likewise.
49834         * modules/y1 (configure.ac): Likewise.
49835         * modules/yn (configure.ac): Likewise.
49836         Suggested by Paolo Bonzini.
49838 2010-01-31  Bruno Haible  <bruno@clisp.org>
49840         * m4/getline.m4 (gl_FUNC_GETLINE): Add comment about REPLACE_GETLINE.
49842 2010-01-31  Bruno Haible  <bruno@clisp.org>
49844         Work around getdelim() bug on FreeBSD 8.0.
49845         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Test whether getdelim supports an
49846         initially NULL line. Set REPLACE_GETDELIM if getdelim exists but does
49847         not work.
49848         * lib/stdio.in.h (getdelim): Define as an alias if REPLACE_GETDELIM
49849         is 1.
49850         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize REPLACE_GETDELIM.
49851         * modules/stdio (Makefile.am): Also substitute REPLACE_GETDELIM.
49852         * tests/test-getdelim.c (main): Also test result for a NULL buffer and
49853         a non-zero size.
49854         * doc/posix-functions/getdelim.texi: Mention the FreeBSD bug.
49856 2010-01-31  Bruno Haible  <bruno@clisp.org>
49858         Work around getline() bug on FreeBSD 8.0.
49859         * m4/getline.m4 (gl_FUNC_GETLINE): Also test result for a NULL buffer
49860         and a non-zero size.
49861         * tests/test-getline.c (main): Likewise.
49862         * doc/posix-functions/getline.texi: Mention the FreeBSD bug.
49863         Reported by Dennis <noordsij@cs.helsinki.fi> via Eric Blake.
49865 2010-01-28  Eric Blake  <ebb9@byu.net>
49867         regex: fix build failure
49868         * lib/regex_internal.h (__GNUC_PREREQ): Define for non-glibc
49869         platforms.
49871 2010-01-28  Jim Meyering  <meyering@redhat.com>
49873         regex: do not ignore memory allocation failure
49874         * lib/regex_internal.c (create_cd_newstate): Detect
49875         re_node_set_init_copy failure.   Extracted from glibc commit
49876         2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
49878         regex: sync more white-space changes from libc
49879         * lib/regex_internal.c: White-space only changes.
49880         * lib/regexec.c: Likewise.
49882         regex: add many uses of __attribute_warn_unused_result__
49883         * lib/regex_internal.c: Use __attribute_warn_unused_result__.
49884         * lib/regexec.c: Likewise.
49885         Extracted from a messy glibc commit.
49887         regcomp.c: spelling and merge-artifact from glibc
49888         * lib/regcomp.c: Merge remainder of glibc's
49889         2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
49891         regcomp.c: sync white-space changes from glibc
49892         * lib/regcomp.c: Merge to accommodate white space
49893         changes from glibc's 2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
49895         regcomp.c: do not ignore internal return values
49896         * lib/regcomp.c: Do not ignore internal return values.
49897         This is from glibc's 2da42bc06566bc89785e580fa1ac89b4c9f2a63c,
49898         but without its white-space changes and spelling fixes.
49900         regex_internal.h: define __attribute_warn_unused_result__
49901         * lib/regex_internal.h (__attribute_warn_unused_result__): Define.
49903         maint: add a syntax-check rule to check for vulnerable Makefile.in
49904         * top/maint.mk (sc_vulnerable_makefile_CVE-2009-4029): New rule.
49906 2010-01-27  Jim Meyering  <meyering@redhat.com>
49908         ncftpput-ftp: clean up spaces
49909         * build-aux/ncftpput-ftp: Make Copyright line consistent.
49910         Remove trailing blanks.
49912 2010-01-27  Simon Josefsson  <simon@josefsson.org>
49914         * build-aux/git-version-gen: Fix copyright statement.
49915         * build-aux/gnupload: Likewise.
49916         * tests/test-arcfour.c: Likewise.
49917         * tests/test-arctwo.c: Likewise.
49918         * tests/test-count-one-bits.c: Likewise.
49919         * tests/test-crc.c: Likewise.
49920         * tests/test-des.c: Likewise.
49921         * tests/test-gc-arcfour.c: Likewise.
49922         * tests/test-gc-arctwo.c: Likewise.
49923         * tests/test-gc-des.c: Likewise.
49924         * tests/test-gc-hmac-md5.c: Likewise.
49925         * tests/test-gc-hmac-sha1.c: Likewise.
49926         * tests/test-gc-md2.c: Likewise.
49927         * tests/test-gc-md4.c: Likewise.
49928         * tests/test-gc-md5.c: Likewise.
49929         * tests/test-gc-pbkdf2-sha1.c: Likewise.
49930         * tests/test-gc-rijndael.c: Likewise.
49931         * tests/test-gc-sha1.c: Likewise.
49932         * tests/test-gc.c: Likewise.
49933         * tests/test-gethostname.c: Likewise.
49934         * tests/test-gettimeofday.c: Likewise.
49935         * tests/test-hash.c: Likewise.
49936         * tests/test-hmac-md5.c: Likewise.
49937         * tests/test-hmac-sha1.c: Likewise.
49938         * tests/test-md2.c: Likewise.
49939         * tests/test-md4.c: Likewise.
49940         * tests/test-md5.c: Likewise.
49941         * tests/test-memchr.c: Likewise.
49942         * tests/test-memchr2.c: Likewise.
49943         * tests/test-memcmp.c: Likewise.
49944         * tests/test-memmem.c: Likewise.
49945         * tests/test-memrchr.c: Likewise.
49946         * tests/test-rawmemchr.c: Likewise.
49947         * tests/test-read-file.c: Likewise.
49948         * tests/test-rijndael.c: Likewise.
49949         * tests/test-sockets.c: Likewise.
49950         * tests/test-strchrnul.c: Likewise.
49951         * tests/test-strstr.c: Likewise.
49952         * tests/test-strtod.c: Likewise.
49953         * build-aux/ncftpput-ftp: Likewise.
49955 2010-01-26  Eric Blake  <ebb9@byu.net>
49957         ignore-value: update recommended header name
49958         * modules/ignore-value (Include): Only use <> for headers that
49959         exist in glibc.
49961 2010-01-26  Jim Meyering  <meyering@redhat.com>
49963         test-userspec.c: avoid compiler warnings
49964         * tests/test-userspec.c (main): Avoid shadowing ("uid"),
49965         and "initialization discards qualifiers..." warnings.
49966         Put the first "uid" in its own scope, and make char* members "const".
49968 2010-01-25  Bruno Haible  <bruno@clisp.org>
49970         gnulib-tool: Make warning diagnostics consistent.
49971         * gnulib-tool (func_warning): New function.
49972         Use it everywhere where gnulib-tool produces output to stderr and it is
49973         not a fatal error.
49975 2010-01-25  Bruno Haible  <bruno@clisp.org>
49977         Fix test dependencies.
49978         * modules/xstrtol-tests (Depends-on): Add inttypes.
49979         * modules/xstrtoll-tests (Depends-on): Likewise. Remove xstrtoll.
49981 2010-01-25  Pádraig Brady  <P@draigBrady.com>
49983         syntax-check: detect incorrect boolean macro values in config.h
49984         * modules/maintainer-makefile (configure.ac): Parameterize the location
49985         of config.h which will be available to makefiles as $(CONFIG_INCLUDE).
49986         The logic is from Eric Blake and the location indicated by Jim Meyering.
49987         Note the more natural CONFIG_HEADER name is prohibited by automake
49988         for backwards compatibility reasons.
49989         * top/maint.mk (sc_Wundef_boolean): New rule.
49991 2010-01-25  Jim Meyering  <meyering@redhat.com>
49993         bootstrap: detect MacOS 10.6's shasum, too
49994         * build-aux/bootstrap: Also recognize MacOS 10.6's shasum.
49995         Suggested by Thomas Treichl <Thomas.Treichl@gmx.net>.
49997 2010-01-23  Jim Meyering  <meyering@redhat.com>
49999         xstrtoll: new module
50000         * modules/xstrtoll: New file.
50001         * MODULES.html.sh (Numeric conversion functions): Add xstrtoll.
50002         * lib/xstrtol.h [HAVE_LONG_LONG_INT]: Declare xstrtoll and xstrtoull.
50003         * lib/xstrtoll.c, lib/xstrtoull.c: New files.
50004         ./configure fails if you use this module and lack "long long".
50005         * modules/xstrtoll-tests: New module.
50006         * tests/test-xstrtoll.c, tests/test-xstrtoull.c: New files.
50007         * tests/test-xstrtoll.sh: Like test-xstrtol.c, but use the
50008         new init.sh-based test framework.
50010 2010-01-24  Bruno Haible  <bruno@clisp.org>
50012         Tests for module 'yn'.
50013         * modules/yn-tests: New file.
50014         * tests/test-yn.c: New file.
50016         Tests for module 'y1'.
50017         * modules/y1-tests: New file.
50018         * tests/test-y1.c: New file.
50020         Tests for module 'y0'.
50021         * modules/y0-tests: New file.
50022         * tests/test-y0.c: New file.
50024         Tests for module 'tanh'.
50025         * modules/tanh-tests: New file.
50026         * tests/test-tanh.c: New file.
50028         Tests for module 'tan'.
50029         * modules/tan-tests: New file.
50030         * tests/test-tan.c: New file.
50032         Tests for module 'sqrt'.
50033         * modules/sqrt-tests: New file.
50034         * tests/test-sqrt.c: New file.
50036         Tests for module 'sinh'.
50037         * modules/sinh-tests: New file.
50038         * tests/test-sinh.c: New file.
50040         Tests for module 'sin'.
50041         * modules/sin-tests: New file.
50042         * tests/test-sin.c: New file.
50044         Tests for module 'rint'.
50045         * modules/rint-tests: New file.
50046         * tests/test-rint.c: New file.
50048         Tests for module 'remainder'.
50049         * modules/remainder-tests: New file.
50050         * tests/test-remainder.c: New file.
50052         Tests for module 'pow'.
50053         * modules/pow-tests: New file.
50054         * tests/test-pow.c: New file.
50056         Tests for module 'nextafter'.
50057         * modules/nextafter-tests: New file.
50058         * tests/test-nextafter.c: New file.
50060         Tests for module 'modf'.
50061         * modules/modf-tests: New file.
50062         * tests/test-modf.c: New file.
50064         Tests for module 'logb'.
50065         * modules/logb-tests: New file.
50066         * tests/test-logb.c: New file.
50068         Tests for module 'log1p'.
50069         * modules/log1p-tests: New file.
50070         * tests/test-log1p.c: New file.
50072         Tests for module 'log10'.
50073         * modules/log10-tests: New file.
50074         * tests/test-log10.c: New file.
50076         Tests for module 'log'.
50077         * modules/log-tests: New file.
50078         * tests/test-log.c: New file.
50080         Tests for module 'lgamma'.
50081         * modules/lgamma-tests: New file.
50082         * tests/test-lgamma.c: New file.
50084         Tests for module 'ldexp'.
50085         * modules/ldexp-tests: New file.
50086         * tests/test-ldexp.c: New file.
50088         Tests for module 'jn'.
50089         * modules/jn-tests: New file.
50090         * tests/test-jn.c: New file.
50092         Tests for module 'j1'.
50093         * modules/j1-tests: New file.
50094         * tests/test-j1.c: New file.
50096         Tests for module 'j0'.
50097         * modules/j0-tests: New file.
50098         * tests/test-j0.c: New file.
50100         Tests for module 'hypot'.
50101         * modules/hypot-tests: New file.
50102         * tests/test-hypot.c: New file.
50104         Tests for module 'fmod'.
50105         * modules/fmod-tests: New file.
50106         * tests/test-fmod.c: New file.
50108         Tests for module 'fabs'.
50109         * modules/fabs-tests: New file.
50110         * tests/test-fabs.c: New file.
50112         Tests for module 'exp'.
50113         * modules/exp-tests: New file.
50114         * tests/test-exp.c: New file.
50116         Tests for module 'erfc'.
50117         * modules/erfc-tests: New file.
50118         * tests/test-erfc.c: New file.
50120         Tests for module 'erf'.
50121         * modules/erf-tests: New file.
50122         * tests/test-erf.c: New file.
50124         Tests for module 'cosh'.
50125         * modules/cosh-tests: New file.
50126         * tests/test-cosh.c: New file.
50128         Tests for module 'cos'.
50129         * modules/cos-tests: New file.
50130         * tests/test-cos.c: New file.
50132         Tests for module 'copysign'.
50133         * modules/copysign-tests: New file.
50134         * tests/test-copysign.c: New file.
50136         Tests for module 'cbrt'.
50137         * modules/cbrt-tests: New file.
50138         * tests/test-cbrt.c: New file.
50140         Tests for module 'atan2'.
50141         * modules/atan2-tests: New file.
50142         * tests/test-atan2.c: New file.
50144         Tests for module 'atan'.
50145         * modules/atan-tests: New file.
50146         * tests/test-atan.c: New file.
50148         Tests for module 'asin'.
50149         * modules/asin-tests: New file.
50150         * tests/test-asin.c: New file.
50152         Tests for module 'acos'.
50153         * modules/acos-tests: New file.
50154         * tests/test-acos.c: New file.
50156 2010-01-24  Bruno Haible  <bruno@clisp.org>
50158         Fix tests for common <math.h> functions.
50159         * m4/mathfunc.m4 (gl_MATHFUNC): Take two additional parameters. Use a
50160         code snippet that references the function pointer, rather than merely
50161         calling the function. Substitute the FUNC_LIBM variable.
50162         * m4/sqrt.m4 (gl_FUNC_SQRT): Update gl_MATHFUNC invocation.
50163         * modules/acos (configure.ac): Likewise.
50164         * modules/asin (configure.ac): Likewise.
50165         * modules/atan (configure.ac): Likewise.
50166         * modules/atan2 (configure.ac): Likewise.
50167         * modules/cbrt (configure.ac): Likewise.
50168         * modules/copysign (configure.ac): Likewise.
50169         * modules/cos (configure.ac): Likewise.
50170         * modules/cosh (configure.ac): Likewise.
50171         * modules/erf (configure.ac): Likewise.
50172         * modules/erfc (configure.ac): Likewise.
50173         * modules/exp (configure.ac): Likewise.
50174         * modules/fabs (configure.ac): Likewise.
50175         * modules/fmod (configure.ac): Likewise.
50176         * modules/hypot (configure.ac): Likewise.
50177         * modules/j0 (configure.ac): Likewise.
50178         * modules/j1 (configure.ac): Likewise.
50179         * modules/jn (configure.ac): Likewise.
50180         * modules/ldexp (configure.ac): Likewise.
50181         * modules/lgamma (configure.ac): Likewise.
50182         * modules/log (configure.ac): Likewise.
50183         * modules/log10 (configure.ac): Likewise.
50184         * modules/log1p (configure.ac): Likewise.
50185         * modules/logb (configure.ac): Likewise.
50186         * modules/modf (configure.ac): Likewise.
50187         * modules/nextafter (configure.ac): Likewise.
50188         * modules/pow (configure.ac): Likewise.
50189         * modules/remainder (configure.ac): Likewise.
50190         * modules/rint (configure.ac): Likewise.
50191         * modules/sin (configure.ac): Likewise.
50192         * modules/sinh (configure.ac): Likewise.
50193         * modules/tan (configure.ac): Likewise.
50194         * modules/tanh (configure.ac): Likewise.
50195         * modules/y0 (configure.ac): Likewise.
50196         * modules/y1 (configure.ac): Likewise.
50197         * modules/yn (configure.ac): Likewise.
50199 2010-01-24  Bruno Haible  <bruno@clisp.org>
50201         Tests: Defeat inlining of math functions by GCC >= 4.3.0.
50202         * tests/test-acosl.c (x): New variable.
50203         (main): Store argument in x and fetch it from x.
50204         * tests/test-asinl.c (x): New variable.
50205         (main): Store argument in x and fetch it from x.
50206         * tests/test-atanl.c (x): New variable.
50207         (main): Store argument in x and fetch it from x.
50208         * tests/test-cosl.c (x): New variable.
50209         (main): Store argument in x and fetch it from x.
50210         * tests/test-expl.c (x): New variable.
50211         (main): Store argument in x and fetch it from x.
50212         * tests/test-logl.c (x): New variable.
50213         (main): Store argument in x and fetch it from x.
50214         * tests/test-sinl.c (x): New variable.
50215         (main): Store argument in x and fetch it from x.
50216         * tests/test-sqrtl.c (x): New variable.
50217         (main): Store argument in x and fetch it from x.
50218         * tests/test-tanl.c (x): New variable.
50219         (main): Store argument in x and fetch it from x.
50221 2010-01-24  Bruno Haible  <bruno@clisp.org>
50223         Provide EXEEXT and srcdir in TESTS_ENVIRONMENT by default.
50224         * gnulib-tool (func_emit_tests_Makefile_am): Add EXEEXT and srcdir
50225         assignments to the initial TESTS_ENVIRONMENT.
50226         * doc/gnulib.texi (Unit test modules): Document it.
50227         * modules/acl-tests (Makefile.am): Drop EXEEXT assignment from
50228         TESTS_ENVIRONMENT.
50229         * modules/btowc-tests (Makefile.am): Likewise.
50230         * modules/c-stack-tests (Makefile.am): Likewise.
50231         * modules/c-strcase-tests (Makefile.am): Likewise.
50232         * modules/copy-file-tests (Makefile.am): Likewise.
50233         * modules/mbmemcasecmp-tests (Makefile.am): Likewise.
50234         * modules/mbmemcasecoll-tests (Makefile.am): Likewise.
50235         * modules/mbrtowc-tests (Makefile.am): Likewise.
50236         * modules/mbscasecmp-tests (Makefile.am): Likewise.
50237         * modules/mbscasestr-tests (Makefile.am): Likewise.
50238         * modules/mbschr-tests (Makefile.am): Likewise.
50239         * modules/mbscspn-tests (Makefile.am): Likewise.
50240         * modules/mbsinit-tests (Makefile.am): Likewise.
50241         * modules/mbsncasecmp-tests (Makefile.am): Likewise.
50242         * modules/mbsnrtowcs-tests (Makefile.am): Likewise.
50243         * modules/mbspbrk-tests (Makefile.am): Likewise.
50244         * modules/mbspcasecmp-tests (Makefile.am): Likewise.
50245         * modules/mbsrchr-tests (Makefile.am): Likewise.
50246         * modules/mbsrtowcs-tests (Makefile.am): Likewise.
50247         * modules/mbsspn-tests (Makefile.am): Likewise.
50248         * modules/mbsstr-tests (Makefile.am): Likewise.
50249         * modules/nl_langinfo-tests (Makefile.am): Likewise.
50250         * modules/unicase/locale-language-tests (Makefile.am): Likewise.
50251         * modules/unistdio/u16-vasnprintf-tests (Makefile.am): Likewise.
50252         * modules/unistdio/u32-vasnprintf-tests (Makefile.am): Likewise.
50253         * modules/unistdio/u8-vasnprintf-tests (Makefile.am): Likewise.
50254         * modules/unistdio/ulc-vasnprintf-tests (Makefile.am): Likewise.
50255         * modules/uniwbrk/ulc-wordbreaks-tests (Makefile.am): Likewise.
50256         * modules/vasnprintf-posix-tests (Makefile.am): Likewise.
50257         * modules/wcrtomb-tests (Makefile.am): Likewise.
50258         * modules/wcsnrtombs-tests (Makefile.am): Likewise.
50259         * modules/wcsrtombs-tests (Makefile.am): Likewise.
50260         * modules/quotearg-tests (Makefile.am): Drop EXEEXT and srcdir
50261         assignments from TESTS_ENVIRONMENT.
50262         * modules/argp-tests (Makefile.am): Drop TESTS_ENVIRONMENT
50263         augmentation.
50264         * modules/argp-version-etc-tests (Makefile.am): Likewise.
50265         * modules/atexit-tests (Makefile.am): Likewise.
50266         * modules/binary-io-tests (Makefile.am): Likewise.
50267         * modules/closein-tests (Makefile.am): Likewise.
50268         * modules/dprintf-posix-tests (Makefile.am): Likewise.
50269         * modules/exclude-tests (Makefile.am): Likewise.
50270         * modules/fflush-tests (Makefile.am): Likewise.
50271         * modules/fpending-tests (Makefile.am): Likewise.
50272         * modules/fprintf-posix-tests (Makefile.am): Likewise.
50273         * modules/freadahead-tests (Makefile.am): Likewise.
50274         * modules/freadptr-tests (Makefile.am): Likewise.
50275         * modules/freadseek-tests (Makefile.am): Likewise.
50276         * modules/fseek-tests (Makefile.am): Likewise.
50277         * modules/fseeko-tests (Makefile.am): Likewise.
50278         * modules/ftell-tests (Makefile.am): Likewise.
50279         * modules/ftello-tests (Makefile.am): Likewise.
50280         * modules/idpriv-drop-tests (Makefile.am): Likewise.
50281         * modules/idpriv-droptemp-tests (Makefile.am): Likewise.
50282         * modules/lseek-tests (Makefile.am): Likewise.
50283         * modules/parse-duration-tests (Makefile.am): Likewise.
50284         * modules/perror-tests (Makefile.am): Likewise.
50285         * modules/pipe-filter-gi-tests (Makefile.am): Likewise.
50286         * modules/pipe-filter-ii-tests (Makefile.am): Likewise.
50287         * modules/pipe-tests (Makefile.am): Likewise.
50288         * modules/pread-tests (Makefile.am): Likewise.
50289         * modules/printf-posix-tests (Makefile.am): Likewise.
50290         * modules/select-tests (Makefile.am): Likewise.
50291         * modules/sigpipe-tests (Makefile.am): Likewise.
50292         * modules/tsearch-tests (Makefile.am): Likewise.
50293         * modules/unicase/ulc-casecmp-tests (Makefile.am): Likewise.
50294         * modules/unicase/ulc-casecoll-tests (Makefile.am): Likewise.
50295         * modules/uniname/uniname-tests (Makefile.am): Likewise.
50296         * modules/uniwidth/width-tests (Makefile.am): Likewise.
50297         * modules/vdprintf-posix-tests (Makefile.am): Likewise.
50298         * modules/version-etc-tests (Makefile.am): Likewise.
50299         * modules/vfprintf-posix-tests (Makefile.am): Likewise.
50300         * modules/vprintf-posix-tests (Makefile.am): Likewise.
50301         * modules/xalloc-die-tests (Makefile.am): Likewise.
50302         * modules/xprintf-posix-tests (Makefile.am): Likewise.
50303         * modules/xstrtoimax-tests (Makefile.am): Likewise.
50304         * modules/xstrtol-tests (Makefile.am): Likewise.
50305         * modules/xstrtoumax-tests (Makefile.am): Likewise.
50306         * modules/yesno-tests (Makefile.am): Likewise.
50307         Suggested by Jim Meyering.
50309 2010-01-24  Bruno Haible  <bruno@clisp.org>
50311         More documentation.
50312         * doc/gnulib.texi (Writing modules): New chapter.
50313         (Miscellaneous Notes): Move sections "Comments" and "Header files" to
50314         the new chapter.
50316 2010-01-24  Jim Meyering  <meyering@redhat.com>
50318         maint.mk: do not prepend "./" after filtering
50319         * top/maint.mk (_prepend_srcdir_prefix): New variable
50320         (VC_LIST_EXCEPT): Use it to avoid prepending (post-filter)
50321         "./" when $(srcdir) is ".".
50323         define STREQ(a,b) consistently, removing useless parentheses
50324         #define STREQ(a, b) (strcmp ((a), (b)) == 0) is over-parenthesized,
50325         since the only risk is that "a" or "b" contains an unparenthesized
50326         comma, but if either did that, STREQ would have 3 or more arguments.
50327         Hence, #define STREQ(a, b) (strcmp (a, b) == 0) is better.
50328         * lib/fts.c (STREQ): Remove unnecessary parentheses.
50329         * lib/hash-triple.c (STREQ): Likewise.
50330         * tests/test-argv-iter.c (STREQ): Use a and b, not s1 and s2.
50331         * lib/getugroups.c (STREQ): Likewise.
50333 2010-01-23  Jim Meyering  <meyering@redhat.com>
50335         maint.mk: fix syntax-check in a non-srcdir build directory
50336         * top/maint.mk (_dot_escaped_srcdir): Remove erroneous backslash,
50337         introduced in my 2010-01-21 commit, a6da6c45.  Reported by Eric Blake.
50339 2010-01-22  Jim Meyering  <meyering@redhat.com>
50341         userspec: add unit tests
50342         * tests/test-userspec.c: New file.
50343         * modules/userspec-tests: Likewise.
50345 2010-01-21  Jim Meyering  <meyering@redhat.com>
50347         maint.mk: handle source file names containing "." robustly
50348         * top/maint.mk (_dot_escaped_srcdir): Define.
50349         (VC_LIST): Use it in LHS of sed substitution.
50351 2010-01-21  Jiri Denemark  <jdenemar@redhat.com>
50353         maint.mk: fix VC_LIST_EXCEPT for srcdir != builddir
50354         * top/maint.mk (VC_LIST_EXCEPT): Preprocess the output of
50355         $(VC_LIST) to remove a prefix of '$(srcdir)/', so that it works
50356         from a non-srcdir build.
50358 2010-01-20  Eric Blake  <ebb9@byu.net>
50360         warn-on-use: use instead of link-warning
50361         * modules/stdio (Depends-on, Makefile.am): Drop link-warning.
50362         * modules/unistd (Depends-on, Makefile.am): Likewise.
50363         * modules/arpa_inet (Depends-on): Replace link-warning with
50364         warn-on-use.
50365         (Makefile.am): Update rules accordingly.
50366         * modules/ctype (Depends-on, Makefile.am): Likewise.
50367         * modules/dirent (Depends-on, Makefile.am): Likewise.
50368         * modules/fcntl-h (Depends-on, Makefile.am): Likewise.
50369         * modules/inttypes (Depends-on, Makefile.am): Likewise.
50370         * modules/langinfo (Depends-on, Makefile.am): Likewise.
50371         * modules/locale (Depends-on, Makefile.am): Likewise.
50372         * modules/math (Depends-on, Makefile.am): Likewise.
50373         * modules/search (Depends-on, Makefile.am): Likewise.
50374         * modules/signal (Depends-on, Makefile.am): Likewise.
50375         * modules/spawn (Depends-on, Makefile.am): Likewise.
50376         * modules/stdlib (Depends-on, Makefile.am): Likewise.
50377         * modules/string (Depends-on, Makefile.am): Likewise.
50378         * modules/strings (Depends-on, Makefile.am): Likewise.
50379         * modules/sys_file (Depends-on, Makefile.am): Likewise.
50380         * modules/sys_ioctl (Depends-on, Makefile.am): Likewise.
50381         * modules/sys_select (Depends-on, Makefile.am): Likewise.
50382         * modules/sys_socket (Depends-on, Makefile.am): Likewise.
50383         * modules/sys_stat (Depends-on, Makefile.am): Likewise.
50384         * modules/sys_times (Depends-on, Makefile.am): Likewise.
50385         * modules/sys_utsname (Depends-on, Makefile.am): Likewise.
50386         * modules/wchar (Depends-on, Makefile.am): Likewise.
50387         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Check which functions
50388         should be poisoned.
50389         * m4/ctype.m4 (gl_CTYPE_H): Likewise.
50390         * m4/dirent_h.m4 (gl_DIRENT_H): Likewise.
50391         * m4/fcntl_h.m4 (gl_FCNTL_H): Likewise.
50392         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
50393         * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
50394         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
50395         * m4/math_h.m4 (gl_MATH_H): Likewise.
50396         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
50397         * m4/signal_h.m4 (gl_SIGNAL_H): Likewise.
50398         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
50399         * m4/stdio_h.m4 (gl_STDIO_H): Likewise.
50400         * m4/stdlib_h.m4 (gl_STDLIB_H): Likewise.
50401         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Likewise.
50402         * m4/strings_h.m4 (gl_HEADER_STRINGS_H_BODY): Likewise.
50403         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H_DEFAULTS): Likewise.
50404         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Likewise.
50405         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
50406         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
50407         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Likewise.
50408         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
50409         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
50410         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
50411         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
50412         * lib/arpa_inet.in.h: Use _GL_WARN_ON_USE instead of
50413         GL_LINK_WARNING.
50414         * lib/ctype.in.h: Likewise.
50415         * lib/dirent.in.h: Likewise.
50416         * lib/fcntl.in.h: Likewise.
50417         * lib/inttypes.in.h: Likewise.
50418         * lib/langinfo.in.h: Likewise.
50419         * lib/locale.in.h: Likewise.
50420         * lib/math.in.h: Likewise.
50421         * lib/search.in.h: Likewise.
50422         * lib/signal.in.h: Likewise.
50423         * lib/spawn.in.h: Likewise.
50424         * lib/stdio.in.h: Likewise.
50425         * lib/stdlib.in.h: Likewise.
50426         * lib/string.in.h: Likewise.
50427         * lib/strings.in.h: Likewise.
50428         * lib/sys_file.in.h: Likewise.
50429         * lib/sys_ioctl.in.h: Likewise.
50430         * lib/sys_select.in.h: Likewise.
50431         * lib/sys_socket.in.h: Likewise.
50432         * lib/sys_stat.in.h: Likewise.
50433         * lib/sys_times.in.h: Likewise.
50434         * lib/sys_utsname.in.h: Likewise.
50435         * lib/unistd.in.h: Likewise.
50436         * lib/wchar.in.h: Likewise.
50438 2010-01-20  Bruno Haible  <bruno@clisp.org>
50440         Avoid duplicate -lm.
50441         * m4/isnan.m4 (gl_ISNAN): Avoid duplicate -lm in $ISNAN_LIBM.
50442         * m4/round.m4 (gl_FUNC_ROUND): Avoid duplicate -lm in $ROUND_LIBM.
50443         * m4/roundf.m4 (gl_FUNC_ROUNDF): Avoid duplicate -lm in $ROUNDF_LIBM.
50444         * m4/roundl.m4 (gl_FUNC_ROUNDL): Avoid duplicate -lm in $ROUNDL_LIBM.
50445         * m4/acosl.m4 (gl_FUNC_ACOSL): Avoid duplicate -lm in $ACOSL_LIBM.
50446         * m4/cosl.m4 (gl_FUNC_COSL): Avoid duplicate -lm in $COSL_LIBM.
50447         * m4/logl.m4 (gl_FUNC_LOGL): Avoid duplicate -lm in $LOGL_LIBM.
50448         * m4/sinl.m4 (gl_FUNC_SINL): Avoid duplicate -lm in $SINL_LIBM.
50449         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Avoid duplicate -lm in $SQRTL_LIBM.
50450         * m4/tanl.m4 (gl_FUNC_TANL): Avoid duplicate -lm in $TANL_LIBM.
50451         * m4/asinl.m4 (gl_FUNC_ASINL): Same change, for consistency.
50452         * m4/atanl.m4 (gl_FUNC_ATANL): Likewise.
50453         Reported by Paolo Bonzini.
50455 2010-01-19  Bruno Haible  <bruno@clisp.org>
50457         langinfo, nl_langinfo: Relicense under LGPLv2+.
50458         * modules/langinfo (License): Change to LGPLv2+.
50459         * modules/nl_langinfo (License): Likewise.
50460         Patch by David Lutterkort <lutter@redhat.com>.
50462 2010-01-19  Bruno Haible  <bruno@clisp.org>
50464         Avoid compilation error with cc on OSF/1 5.1.
50465         * lib/fcntl.in.h: Include <unistd.h> after the #include_next <fcntl.h>
50466         statement, not before.
50467         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
50469 2010-01-18  Bruno Haible  <bruno@clisp.org>
50471         Avoid a link error due to the __printf__ symbol.
50472         * lib/stdio.in.h (__attribute__): Define to empty also for gcc 2.5.x
50473         and 2.6.x.
50474         (__format__, __printf__): Remove definitions.
50475         * lib/argp-fmtstream.h: Likewise.
50476         * lib/argp.h: Likewise.
50477         * lib/error.h: Likewise.
50478         * lib/vasnprintf.h: Likewise.
50479         * lib/xprintf.h: Likewise.
50480         * lib/xvasprintf.h: Likewise.
50481         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
50483 2010-01-18  Bruno Haible  <bruno@clisp.org>
50485         Tests for module 'tanl'.
50486         * modules/tanl-tests: New file.
50487         * tests/test-tanl.c: New file.
50489         Tests for module 'sqrtl'.
50490         * modules/sqrtl-tests: New file.
50491         * tests/test-sqrtl.c: New file.
50493         Tests for module 'sinl'.
50494         * modules/sinl-tests: New file.
50495         * tests/test-sinl.c: New file.
50497         Tests for module 'logl'.
50498         * modules/logl-tests: New file.
50499         * tests/test-logl.c: New file.
50501         Tests for module 'expl'.
50502         * modules/expl-tests: New file.
50503         * tests/test-expl.c: New file.
50505         Tests for module 'cosl'.
50506         * modules/cosl-tests: New file.
50507         * tests/test-cosl.c: New file.
50509         Tests for module 'atanl'.
50510         * modules/atanl-tests: New file.
50511         * tests/test-atanl.c: New file.
50513         Tests for module 'asinl'.
50514         * modules/asinl-tests: New file.
50515         * tests/test-asinl.c: New file.
50517         Tests for module 'acosl'.
50518         * modules/acosl-tests: New file.
50519         * tests/test-acosl.c: New file.
50521         New modules acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl.
50522         * lib/math.in.h (acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl,
50523         tanl): Use the standard gnulib idiom.
50524         * lib/cosl.c: Don't include trigl.c and sincosl.c.
50525         * lib/sinl.c: Likewise.
50526         * lib/tanl.c: Don't include trigl.c.
50527         (kernel_tanl): Make static.
50528         * lib/sincosl.c: Include trigl.h first.
50529         * lib/trigl.c: Likewise.
50530         * m4/acosl.m4: New file.
50531         * m4/asinl.m4: New file.
50532         * m4/atanl.m4: New file.
50533         * m4/cosl.m4: New file.
50534         * m4/expl.m4: New file.
50535         * m4/logl.m4: New file.
50536         * m4/sinl.m4: New file.
50537         * m4/sqrtl.m4: New file.
50538         * m4/tanl.m4: New file.
50539         * m4/mathl.m4: Remove file.
50540         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_* and HAVE_*
50541         variables for acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl.
50542         Don't initialize GNULIB_MATHL.
50543         * modules/acosl: New file.
50544         * modules/asinl: New file.
50545         * modules/atanl: New file.
50546         * modules/cosl: New file.
50547         * modules/expl: New file.
50548         * modules/logl: New file.
50549         * modules/sinl: New file.
50550         * modules/sqrtl: New file.
50551         * modules/tanl: New file.
50552         * modules/math (Makefile.am): Substitute GNULIB_* and HAVE_* variables
50553         for acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl. Don't
50554         substitute GNULIB_MATHL.
50555         * modules/mathl: Rewritten.
50556         * doc/posix-functions/acosl.texi: Mention the 'acosl' module.
50557         * doc/posix-functions/asinl.texi: Mention the 'asinl' module.
50558         * doc/posix-functions/atanl.texi: Mention the 'atanl' module.
50559         * doc/posix-functions/cosl.texi: Mention the 'cosl' module.
50560         * doc/posix-functions/expl.texi: Mention the 'expl' module.
50561         * doc/posix-functions/logl.texi: Mention the 'logl' module.
50562         * doc/posix-functions/sinl.texi: Mention the 'sinl' module.
50563         * doc/posix-functions/sqrtl.texi: Mention the 'sqrtl' module.
50564         * doc/posix-functions/tanl.texi: Mention the 'tanl' module.
50566 2010-01-18  Bruno Haible  <bruno@clisp.org>
50568         sqrt: Make gl_FUNC_SQRT requirable.
50569         * m4/sqrt.m4: New file.
50570         * modules/sqrt (Files): Add it.
50571         (configure.ac): Invoke gl_FUNC_SQRT.
50573 2010-01-18  Bruno Haible  <bruno@clisp.org>
50575         New modules for common <math.h> functions.
50576         * m4/mathfunc.m4: New file.
50577         * modules/acos: New file.
50578         * modules/asin: New file.
50579         * modules/atan: New file.
50580         * modules/atan2: New file.
50581         * modules/cbrt: New file.
50582         * modules/copysign: New file.
50583         * modules/cos: New file.
50584         * modules/cosh: New file.
50585         * modules/erf: New file.
50586         * modules/erfc: New file.
50587         * modules/exp: New file.
50588         * modules/fabs: New file.
50589         * modules/fmod: New file.
50590         * modules/hypot: New file.
50591         * modules/j0: New file.
50592         * modules/j1: New file.
50593         * modules/jn: New file.
50594         * modules/ldexp: New file.
50595         * modules/lgamma: New file.
50596         * modules/log: New file.
50597         * modules/log10: New file.
50598         * modules/log1p: New file.
50599         * modules/logb: New file.
50600         * modules/modf: New file.
50601         * modules/nextafter: New file.
50602         * modules/pow: New file.
50603         * modules/remainder: New file.
50604         * modules/rint: New file.
50605         * modules/sin: New file.
50606         * modules/sinh: New file.
50607         * modules/sqrt: New file.
50608         * modules/tan: New file.
50609         * modules/tanh: New file.
50610         * modules/y0: New file.
50611         * modules/y1: New file.
50612         * modules/yn: New file.
50613         * doc/posix-functions/acos.texi: Mention the 'acos' module.
50614         * doc/posix-functions/asin.texi: Mention the 'asin' module.
50615         * doc/posix-functions/atan.texi: Mention the 'atan' module.
50616         * doc/posix-functions/atan2.texi: Mention the 'atan2' module.
50617         * doc/posix-functions/cbrt.texi: Mention the 'cbrt' module.
50618         * doc/posix-functions/copysign.texi: Mention the 'copysign' module.
50619         * doc/posix-functions/cos.texi: Mention the 'cos' module.
50620         * doc/posix-functions/cosh.texi: Mention the 'cosh' module.
50621         * doc/posix-functions/erf.texi: Mention the 'erf' module.
50622         * doc/posix-functions/erfc.texi: Mention the 'erfc' module.
50623         * doc/posix-functions/exp.texi: Mention the 'exp' module.
50624         * doc/posix-functions/fabs.texi: Mention the 'fabs' module.
50625         * doc/posix-functions/fmod.texi: Mention the 'fmod' module.
50626         * doc/posix-functions/hypot.texi: Mention the 'hypot' module.
50627         * doc/posix-functions/j0.texi: Mention the 'j0' module.
50628         * doc/posix-functions/j1.texi: Mention the 'j1' module.
50629         * doc/posix-functions/jn.texi: Mention the 'jn' module.
50630         * doc/posix-functions/ldexp.texi: Mention the 'ldexp' module.
50631         * doc/posix-functions/lgamma.texi: Mention the 'lgamma' module.
50632         * doc/posix-functions/log.texi: Mention the 'log' module.
50633         * doc/posix-functions/log10.texi: Mention the 'log10' module.
50634         * doc/posix-functions/log1p.texi: Mention the 'log1p' module.
50635         * doc/posix-functions/logb.texi: Mention the 'logb' module.
50636         * doc/posix-functions/modf.texi: Mention the 'modf' module.
50637         * doc/posix-functions/nextafter.texi: Mention the 'nextafter' module.
50638         * doc/posix-functions/pow.texi: Mention the 'pow' module.
50639         * doc/posix-functions/remainder.texi: Mention the 'remainder' module.
50640         * doc/posix-functions/rint.texi: Mention the 'rint' module.
50641         * doc/posix-functions/sin.texi: Mention the 'sin' module.
50642         * doc/posix-functions/sinh.texi: Mention the 'sinh' module.
50643         * doc/posix-functions/sqrt.texi: Mention the 'sqrt' module.
50644         * doc/posix-functions/tan.texi: Mention the 'tan' module.
50645         * doc/posix-functions/tanh.texi: Mention the 'tanh' module.
50646         * doc/posix-functions/y0.texi: Mention the 'y0' module.
50647         * doc/posix-functions/y1.texi: Mention the 'y1' module.
50648         * doc/posix-functions/yn.texi: Mention the 'yn' module.
50650 2010-01-18  Jim Meyering  <meyering@redhat.com>
50652         ignore-value: relax license to LGPLv2+
50653         * modules/ignore-value (License): Relax to LGPLv2+.
50655         getdate: don't leak when TZ contains two or more '"'s
50656         * lib/getdate.y (get_date): Don't leak a copy of TZ for each
50657         double quote in TZ after the first one.
50659         readtokens: do not leak internal token_lengths buffer
50660         * lib/readtokens.c (readtokens): Free the local, lengths,
50661         when the supplied "token_lengths" parameter is NULL.
50663 2010-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
50665         Fix a couple of missing LIBTHREAD link failures on AIX.
50666         * modules/git-merge-changelog (git_merge_changelog_LDADD): Add
50667         $(LIBTHREAD).
50668         * modules/strsignal-tests (test_strsignal_LDADD): Likewise.
50670         Link test-poll against INET_PTON_LIB.
50671         * modules/poll-tests (test_poll_LDADD): Add $(INET_PTON_LIB),
50672         for inet_pton on Solaris 10.
50674 2010-01-17  Bruno Haible  <bruno@clisp.org>
50676         unistdio/*-sprintf: Fix typo in module description.
50677         * modules/unistdio/u8-sprintf (Depends-on): Fix typo.
50678         * modules/unistdio/u8-u8-sprintf (Depends-on): Likewise.
50679         * modules/unistdio/u16-sprintf (Depends-on): Likewise.
50680         * modules/unistdio/u16-u16-sprintf (Depends-on): Likewise.
50681         * modules/unistdio/u32-sprintf (Depends-on): Likewise.
50682         * modules/unistdio/u32-u32-sprintf (Depends-on): Likewise.
50683         * modules/unistdio/ulc-sprintf (Depends-on): Likewise.
50684         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
50686 2010-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
50688         gnulib-tool: fix filelist for AIX, HP-UX ksh.
50689         * gnulib-tool (func_filter_filelist): Do not quote possibly-empty
50690         variables in shell case patterns, for AIX and HP-UX ksh.
50692         Split large sed scripts, for HP-UX sed.
50693         * modules/stdio: Split sed scripts around 50 sed commands,
50694         to avoid HP-UX limit of 99 commands, in the near future.
50695         * modules/string: Likewise.
50696         * modules/unistd: Likewise.
50698         gnulib-tool: avoid writing in the current directory.
50699         * gnulib-tool (func_emit_lib_Makefile_am)
50700         (func_emit_tests_Makefile_am): Put temporary files in $tmp,
50701         not in the current directory, so concurrent gnulib-tool
50702         instances do not interfere.
50704 2010-01-16  Jim Meyering  <meyering@redhat.com>
50706         doc: update users.txt
50707         * users.txt: Add grep.
50708         (diffutils, gzip): Update URLs.
50710 2010-01-12  Bruno Haible  <bruno@clisp.org>
50712         posix_spawn: Avoid test failure on Cygwin.
50713         * tests/test-posix_spawn3.c (DATA_FILENAME) [CYGWIN]: Use less risky
50714         characters.
50715         Reported by Simon Josefsson.
50717 2010-01-12  Bruno Haible  <bruno@clisp.org>
50719         * tests/test-cond.c (main): When skipping the test, show the reason.
50721 2010-01-12  Simon Josefsson  <simon@josefsson.org>
50723         * lib/striconv.c (str_cd_iconv): Avoid if before free.
50725 2010-01-12  Simon Josefsson  <simon@josefsson.org>
50727         * top/maint.mk (VC_LIST_EXCEPT): Filter list through
50728         VC_LIST_ALWAYS_EXCLUDE_REGEX.
50730 2010-01-12  Eric Blake  <ebb9@byu.net>
50732         build: guarantee AS_VAR_IF
50733         * m4/warnings.m4 (gl_WARN_ADD): Use autoconf name.
50734         (gl_AS_VAR_IF): Move...
50735         * m4/gnulib-common.m4 (AS_VAR_IF): ...here.
50736         Reported by Simon Josefsson.
50738 2010-01-12  Simon Josefsson  <simon@josefsson.org>
50740         * lib/stdio.in.h: Fix typo.
50742 2010-01-12  Simon Josefsson  <simon@josefsson.org>
50744         * m4/gc.m4: Check if linking to libgcrypt also needs linking to
50745         libgpg-error.
50747 2010-01-12  Simon Josefsson  <simon@josefsson.org>
50749         * tests/test-xalloc-die.sh: Use $EXEEXT.
50751 2010-01-12  Simon Josefsson  <simon@josefsson.org>
50752             Bruno Haible  <bruno@clisp.org>
50754         getlogin, getlogin_r: Avoid test failure.
50755         * tests/test-getlogin.c: Include <stdio.h>.
50756         (main): Skip the test when the function fails because stdin is not a
50757         tty.
50758         * tests/test-getlogin_r.c: Include <stdio.h>.
50759         (main): Skip the test when the function fails because stdin is not a
50760         tty.
50762 2010-01-11  Eric Blake  <ebb9@byu.net>
50764         tests: avoid more large file warnings
50765         * tests/test-fflush.c: Avoid warning about ftell use.
50766         * tests/test-fseek.c: Avoid warning about fseek use.
50768 2010-01-10  Bruno Haible  <bruno@clisp.org>
50770         nproc: Work better on Linux when /proc and /sys are not mounted.
50771         * lib/nproc.c (num_processors): Use num_processors_via_affinity_mask ()
50772         as lower bound when, on glibc/Linux systems,
50773         sysconf (_SC_NPROCESSORS_CONF) returns 1.
50774         Suggested by Pádraig Brady <P@draigbrady.com>.
50775         Reported by Dmitry V. Levin <ldv@altlinux.org>.
50777         nproc: Refactor.
50778         * lib/nproc.c (num_processors_via_affinity_mask): New function,
50779         extracted from num_processors.
50780         (num_processors): Call it.
50782 2010-01-11  Jim Meyering  <meyering@redhat.com>
50784         utimecmp: avoid new warning from upcoming gcc-4.5.0
50785         * lib/utimecmp.c (BILLION): Define using #define rather than an
50786         anonymous enum, to placate upcoming gcc-4.5.0's -Wenum-compare.
50788 2010-01-11  Eric Blake  <ebb9@byu.net>
50790         math: add portability warnings for classification macros
50791         * modules/math (Depends-on): Add warn-on-use.
50792         (Makefile.am): Provide new substitutions.
50793         * m4/math_h.m4 (gl_MATH_H): Require inline.
50794         * lib/math.in.h (_GL_WARN_REAL_FLOATING_DECL)
50795         (_GL_WARN_REAL_FLOATING_IMPL): New helper macros.
50796         (isfinite, isinf, isnan, signbit) [GNULIB_POSIXCHECK]: Use them to
50797         implement warnings.
50799         unistd: warn on use of environ without module
50800         * modules/unistd (Depends-on): Add warn-on-use.
50801         (Makefile.am): Provide new substitutions.
50802         * m4/unistd_h.m4 (gl_UNISTD_H): Check for inline and environ.
50803         * lib/unistd.in.h (environ): Wrap with a warning helper function.
50805         stdio: warn on suspicious uses
50806         * modules/stdio (Depends-on): Add warn-on-use.
50807         (Makefile.am): Provide new substitutions.
50808         * m4/stdio_h.m4 (gl_STDIO_H): Check for inline, ftello, and
50809         fseeko.
50810         * lib/stdio.in.h (gets): Always warn on use.
50811         (fseek, ftell): Adjust when warnings are issued, and honor
50812         _GL_NO_LARGE_FILES as a way to silence the warning.
50813         * tests/test-fpurge.c [!GNULIB_FSEEK]: Use new means to squelch
50814         any warning about large file offsets.
50815         * tests/test-freadable.c [!GNULIB_FSEEK]: Likewise.
50816         * tests/test-freading.c [!GNULIB_FSEEK]: Likewise.
50817         * tests/test-fseeko.c [!GNULIB_FSEEK]: Likewise.
50818         * tests/test-ftell.c [!GNULIB_FSEEK]: Likewise.
50819         * tests/test-ftello.c [!GNULIB_FSEEK]: Likewise.
50820         * tests/test-fwritable.c [!GNULIB_FSEEK]: Likewise.
50821         * tests/test-fwriting.c [!GNULIB_FSEEK]: Likewise.
50822         * tests/test-getopt.c [!GNULIB_FTELL]: Likewise.
50824         warn-on-use: new module
50825         * modules/warn-on-use: New file.
50826         * build-aux/warn-on-use.h: Likewise.
50827         * m4/warn-on-use.m4: Likewise.
50828         * MODULES.html.sh (Support for building): Mention it.
50830 2010-01-10  Bruno Haible  <bruno@clisp.org>
50832         Tests for module 'unistr/u32-strdup'.
50833         * modules/unistr/u32-strdup-tests: New file.
50834         * tests/unistr/test-u32-strdup.c: New file.
50836         Tests for module 'unistr/u16-strdup'.
50837         * modules/unistr/u16-strdup-tests: New file.
50838         * tests/unistr/test-u16-strdup.c: New file.
50840         Tests for module 'unistr/u8-strdup'.
50841         * modules/unistr/u8-strdup-tests: New file.
50842         * tests/unistr/test-u8-strdup.c: New file.
50843         * tests/unistr/test-strdup.h: New file.
50845         Tests for module 'unistr/u32-strncmp'.
50846         * modules/unistr/u32-strncmp-tests: New file.
50847         * tests/unistr/test-u32-strncmp.c: New file.
50849         Tests for module 'unistr/u16-strncmp'.
50850         * modules/unistr/u16-strncmp-tests: New file.
50851         * tests/unistr/test-u16-strncmp.c: New file.
50853         Tests for module 'unistr/u8-strncmp'.
50854         * modules/unistr/u8-strncmp-tests: New file.
50855         * tests/unistr/test-u8-strncmp.c: New file.
50856         * tests/unistr/test-strncmp.h: New file.
50858         Tests for module 'unistr/u32-strcoll'.
50859         * modules/unistr/u32-strcoll-tests: New file.
50860         * tests/unistr/test-u32-strcoll.c: New file.
50862         Tests for module 'unistr/u16-strcoll'.
50863         * modules/unistr/u16-strcoll-tests: New file.
50864         * tests/unistr/test-u16-strcoll.c: New file.
50866         Tests for module 'unistr/u8-strcoll'.
50867         * modules/unistr/u8-strcoll-tests: New file.
50868         * tests/unistr/test-u8-strcoll.c: New file.
50870         Tests for module 'unistr/u32-strcmp'.
50871         * modules/unistr/u32-strcmp-tests: New file.
50872         * tests/unistr/test-u32-strcmp.c: New file.
50873         * tests/unistr/test-u32-strcmp.h: New file.
50875         Tests for module 'unistr/u16-strcmp'.
50876         * modules/unistr/u16-strcmp-tests: New file.
50877         * tests/unistr/test-u16-strcmp.c: New file.
50878         * tests/unistr/test-u16-strcmp.h: New file.
50880         Tests for module 'unistr/u8-strcmp'.
50881         * modules/unistr/u8-strcmp-tests: New file.
50882         * tests/unistr/test-u8-strcmp.c: New file.
50883         * tests/unistr/test-u8-strcmp.h: New file.
50884         * tests/unistr/test-strcmp.h: New file.
50886         Tests for module 'unistr/u32-strncat'.
50887         * modules/unistr/u32-strncat-tests: New file.
50888         * tests/unistr/test-u32-strncat.c: New file.
50890         Tests for module 'unistr/u16-strncat'.
50891         * modules/unistr/u16-strncat-tests: New file.
50892         * tests/unistr/test-u16-strncat.c: New file.
50894         Tests for module 'unistr/u8-strncat'.
50895         * modules/unistr/u8-strncat-tests: New file.
50896         * tests/unistr/test-u8-strncat.c: New file.
50897         * tests/unistr/test-strncat.h: New file.
50899         Tests for module 'unistr/u32-strcat'.
50900         * modules/unistr/u32-strcat-tests: New file.
50901         * tests/unistr/test-u32-strcat.c: New file.
50903         Tests for module 'unistr/u16-strcat'.
50904         * modules/unistr/u16-strcat-tests: New file.
50905         * tests/unistr/test-u16-strcat.c: New file.
50907         Tests for module 'unistr/u8-strcat'.
50908         * modules/unistr/u8-strcat-tests: New file.
50909         * tests/unistr/test-u8-strcat.c: New file.
50910         * tests/unistr/test-strcat.h: New file.
50912         Tests for module 'unistr/u32-stpncpy'.
50913         * modules/unistr/u32-stpncpy-tests: New file.
50914         * tests/unistr/test-u32-stpncpy.c: New file.
50916         Tests for module 'unistr/u16-stpncpy'.
50917         * modules/unistr/u16-stpncpy-tests: New file.
50918         * tests/unistr/test-u16-stpncpy.c: New file.
50920         Tests for module 'unistr/u8-stpncpy'.
50921         * modules/unistr/u8-stpncpy-tests: New file.
50922         * tests/unistr/test-u8-stpncpy.c: New file.
50923         * tests/unistr/test-stpncpy.h: New file.
50925         Tests for module 'unistr/u32-strncpy'.
50926         * modules/unistr/u32-strncpy-tests: New file.
50927         * tests/unistr/test-u32-strncpy.c: New file.
50929         Tests for module 'unistr/u16-strncpy'.
50930         * modules/unistr/u16-strncpy-tests: New file.
50931         * tests/unistr/test-u16-strncpy.c: New file.
50933         Tests for module 'unistr/u8-strncpy'.
50934         * modules/unistr/u8-strncpy-tests: New file.
50935         * tests/unistr/test-u8-strncpy.c: New file.
50936         * tests/unistr/test-strncpy.h: New file.
50938         Tests for module 'unistr/u32-stpcpy'.
50939         * modules/unistr/u32-stpcpy-tests: New file.
50940         * tests/unistr/test-u32-stpcpy.c: New file.
50942         Tests for module 'unistr/u16-stpcpy'.
50943         * modules/unistr/u16-stpcpy-tests: New file.
50944         * tests/unistr/test-u16-stpcpy.c: New file.
50946         Tests for module 'unistr/u8-stpcpy'.
50947         * modules/unistr/u8-stpcpy-tests: New file.
50948         * tests/unistr/test-u8-stpcpy.c: New file.
50949         * tests/unistr/test-stpcpy.h: New file.
50951         Tests for module 'unistr/u32-strcpy'.
50952         * modules/unistr/u32-strcpy-tests: New file.
50953         * tests/unistr/test-u32-strcpy.c: New file.
50955         Tests for module 'unistr/u16-strcpy'.
50956         * modules/unistr/u16-strcpy-tests: New file.
50957         * tests/unistr/test-u16-strcpy.c: New file.
50959         Tests for module 'unistr/u8-strcpy'.
50960         * modules/unistr/u8-strcpy-tests: New file.
50961         * tests/unistr/test-u8-strcpy.c: New file.
50962         * tests/unistr/test-strcpy.h: New file.
50964         Tests for module 'unistr/u32-strnlen'.
50965         * modules/unistr/u32-strnlen-tests: New file.
50966         * tests/unistr/test-u32-strnlen.c: New file.
50968         Tests for module 'unistr/u16-strnlen'.
50969         * modules/unistr/u16-strnlen-tests: New file.
50970         * tests/unistr/test-u16-strnlen.c: New file.
50972         Tests for module 'unistr/u8-strnlen'.
50973         * modules/unistr/u8-strnlen-tests: New file.
50974         * tests/unistr/test-u8-strnlen.c: New file.
50975         * tests/unistr/test-strnlen.h: New file.
50977         Tests for module 'unistr/u32-strlen'.
50978         * modules/unistr/u32-strlen-tests: New file.
50979         * tests/unistr/test-u32-strlen.c: New file.
50981         Tests for module 'unistr/u16-strlen'.
50982         * modules/unistr/u16-strlen-tests: New file.
50983         * tests/unistr/test-u16-strlen.c: New file.
50985         Tests for module 'unistr/u8-strlen'.
50986         * modules/unistr/u8-strlen-tests: New file.
50987         * tests/unistr/test-u8-strlen.c: New file.
50989         Tests for module 'unistr/u32-prev'.
50990         * modules/unistr/u32-prev-tests: New file.
50991         * tests/unistr/test-u32-prev.c: New file.
50993         Tests for module 'unistr/u16-prev'.
50994         * modules/unistr/u16-prev-tests: New file.
50995         * tests/unistr/test-u16-prev.c: New file.
50997         Tests for module 'unistr/u8-prev'.
50998         * modules/unistr/u8-prev-tests: New file.
50999         * tests/unistr/test-u8-prev.c: New file.
51001         Tests for module 'unistr/u32-next'.
51002         * modules/unistr/u32-next-tests: New file.
51003         * tests/unistr/test-u32-next.c: New file.
51005         Tests for module 'unistr/u16-next'.
51006         * modules/unistr/u16-next-tests: New file.
51007         * tests/unistr/test-u16-next.c: New file.
51009         Tests for module 'unistr/u8-next'.
51010         * modules/unistr/u8-next-tests: New file.
51011         * tests/unistr/test-u8-next.c: New file.
51013         Tests for module 'unistr/u32-strmbtouc'.
51014         * modules/unistr/u32-strmbtouc-tests: New file.
51015         * tests/unistr/test-u32-strmbtouc.c: New file.
51017         Tests for module 'unistr/u16-strmbtouc'.
51018         * modules/unistr/u16-strmbtouc-tests: New file.
51019         * tests/unistr/test-u16-strmbtouc.c: New file.
51021         Tests for module 'unistr/u8-strmbtouc'.
51022         * modules/unistr/u8-strmbtouc-tests: New file.
51023         * tests/unistr/test-u8-strmbtouc.c: New file.
51025         Tests for module 'unistr/u32-strmblen'.
51026         * modules/unistr/u32-strmblen-tests: New file.
51027         * tests/unistr/test-u32-strmblen.c: New file.
51029         Tests for module 'unistr/u16-strmblen'.
51030         * modules/unistr/u16-strmblen-tests: New file.
51031         * tests/unistr/test-u16-strmblen.c: New file.
51033         Tests for module 'unistr/u8-strmblen'.
51034         * modules/unistr/u8-strmblen-tests: New file.
51035         * tests/unistr/test-u8-strmblen.c: New file.
51037         Tests for module 'unistr/u32-cpy-alloc'.
51038         * modules/unistr/u32-cpy-alloc-tests: New file.
51039         * tests/unistr/test-u32-cpy-alloc.c: New file.
51041         Tests for module 'unistr/u16-cpy-alloc'.
51042         * modules/unistr/u16-cpy-alloc-tests: New file.
51043         * tests/unistr/test-u16-cpy-alloc.c: New file.
51045         Tests for module 'unistr/u8-cpy-alloc'.
51046         * modules/unistr/u8-cpy-alloc-tests: New file.
51047         * tests/unistr/test-u8-cpy-alloc.c: New file.
51048         * tests/unistr/test-cpy-alloc.h: New file.
51050         Tests for module 'unistr/u32-mbsnlen'.
51051         * modules/unistr/u32-mbsnlen-tests: New file.
51052         * tests/unistr/test-u32-mbsnlen.c: New file.
51054         Tests for module 'unistr/u16-mbsnlen'.
51055         * modules/unistr/u16-mbsnlen-tests: New file.
51056         * tests/unistr/test-u16-mbsnlen.c: New file.
51058         Tests for module 'unistr/u8-mbsnlen'.
51059         * modules/unistr/u8-mbsnlen-tests: New file.
51060         * tests/unistr/test-u8-mbsnlen.c: New file.
51062         Tests for module 'unistr/u32-chr'.
51063         * modules/unistr/u32-chr-tests: New file.
51064         * tests/unistr/test-u32-chr.c: New file.
51066         Tests for module 'unistr/u16-chr'.
51067         * modules/unistr/u16-chr-tests: New file.
51068         * tests/unistr/test-u16-chr.c: New file.
51070         Tests for module 'unistr/u8-chr'.
51071         * modules/unistr/u8-chr-tests: New file.
51072         * tests/unistr/test-u8-chr.c: New file.
51073         * tests/unistr/test-chr.h: New file, based on tests/test-memchr.c.
51075         Tests for module 'unistr/u32-cmp2'.
51076         * modules/unistr/u32-cmp2-tests: New file.
51077         * tests/unistr/test-u32-cmp2.c: New file.
51079         Tests for module 'unistr/u16-cmp2'.
51080         * modules/unistr/u16-cmp2-tests: New file.
51081         * tests/unistr/test-u16-cmp2.c: New file.
51083         Tests for module 'unistr/u8-cmp2'.
51084         * modules/unistr/u8-cmp2-tests: New file.
51085         * tests/unistr/test-u8-cmp2.c: New file.
51086         * tests/unistr/test-cmp2.h: New file, based on tests/unistr/test-cmp.h.
51088         Tests for module 'unistr/u32-cmp'.
51089         * modules/unistr/u32-cmp-tests: New file.
51090         * tests/unistr/test-u32-cmp.c: New file.
51092         Tests for module 'unistr/u16-cmp'.
51093         * modules/unistr/u16-cmp-tests: New file.
51094         * tests/unistr/test-u16-cmp.c: New file.
51096         Tests for module 'unistr/u8-cmp'.
51097         * modules/unistr/u8-cmp-tests: New file.
51098         * tests/unistr/test-u8-cmp.c: New file.
51099         * tests/unistr/test-cmp.h: New file, based on tests/test-memcmp.c.
51101         Tests for module 'unistr/u32-set'.
51102         * modules/unistr/u32-set-tests: New file.
51103         * tests/unistr/test-u32-set.c: New file.
51105         Tests for module 'unistr/u16-set'.
51106         * modules/unistr/u16-set-tests: New file.
51107         * tests/unistr/test-u16-set.c: New file.
51109         Tests for module 'unistr/u8-set'.
51110         * modules/unistr/u8-set-tests: New file.
51111         * tests/unistr/test-u8-set.c: New file.
51112         * tests/unistr/test-set.h: New file.
51114         Tests for module 'unistr/u32-move'.
51115         * modules/unistr/u32-move-tests: New file.
51116         * tests/unistr/test-u32-move.c: New file.
51118         Tests for module 'unistr/u16-move'.
51119         * modules/unistr/u16-move-tests: New file.
51120         * tests/unistr/test-u16-move.c: New file.
51122         Tests for module 'unistr/u8-move'.
51123         * modules/unistr/u8-move-tests: New file.
51124         * tests/unistr/test-u8-move.c: New file.
51125         * tests/unistr/test-move.h: New file.
51127         Tests for module 'unistr/u32-cpy'.
51128         * modules/unistr/u32-cpy-tests: New file.
51129         * tests/unistr/test-u32-cpy.c: New file.
51131         Tests for module 'unistr/u16-cpy'.
51132         * modules/unistr/u16-cpy-tests: New file.
51133         * tests/unistr/test-u16-cpy.c: New file.
51135         Tests for module 'unistr/u8-cpy'.
51136         * modules/unistr/u8-cpy-tests: New file.
51137         * tests/unistr/test-u8-cpy.c: New file.
51138         * tests/unistr/test-cpy.h: New file.
51140 2010-01-09  Bruno Haible  <bruno@clisp.org>
51142         Tests for module 'unistr/u32-uctomb'.
51143         * modules/unistr/u32-uctomb-tests: New file.
51144         * tests/unistr/test-u32-uctomb.c: New file.
51146         Tests for module 'unistr/u16-uctomb'.
51147         * modules/unistr/u16-uctomb-tests: New file.
51148         * tests/unistr/test-u16-uctomb.c: New file.
51150         Tests for module 'unistr/u8-uctomb'.
51151         * modules/unistr/u8-uctomb-tests: New file.
51152         * tests/unistr/test-u8-uctomb.c: New file.
51154         Tests for module 'unistr/u32-mbtoucr'.
51155         * modules/unistr/u32-mbtoucr-tests: New file.
51156         * tests/unistr/test-u32-mbtoucr.c: New file.
51158         Tests for module 'unistr/u16-mbtoucr'.
51159         * modules/unistr/u16-mbtoucr-tests: New file.
51160         * tests/unistr/test-u16-mbtoucr.c: New file.
51162         Tests for module 'unistr/u8-mbtoucr'.
51163         * modules/unistr/u8-mbtoucr-tests: New file.
51164         * tests/unistr/test-u8-mbtoucr.c: New file.
51166         Tests for module 'unistr/u32-mbtouc'.
51167         * modules/unistr/u32-mbtouc-tests: New file.
51168         * tests/unistr/test-u32-mbtouc.c: New file.
51170         Tests for module 'unistr/u16-mbtouc'.
51171         * modules/unistr/u16-mbtouc-tests: New file.
51172         * tests/unistr/test-u16-mbtouc.c: New file.
51174         Tests for module 'unistr/u8-mbtouc'.
51175         * modules/unistr/u8-mbtouc-tests: New file.
51176         * tests/unistr/test-u8-mbtouc.c: New file.
51178         Tests for module 'unistr/u32-mbtouc-unsafe'.
51179         * modules/unistr/u32-mbtouc-unsafe-tests: New file.
51180         * tests/unistr/test-u32-mbtouc-unsafe.c: New file.
51181         * tests/unistr/test-u32-mbtouc.h: New file.
51183         Tests for module 'unistr/u16-mbtouc-unsafe'.
51184         * modules/unistr/u16-mbtouc-unsafe-tests: New file.
51185         * tests/unistr/test-u16-mbtouc-unsafe.c: New file.
51186         * tests/unistr/test-u16-mbtouc.h: New file.
51188         Tests for module 'unistr/u8-mbtouc-unsafe'.
51189         * modules/unistr/u8-mbtouc-unsafe-tests: New file.
51190         * tests/unistr/test-u8-mbtouc-unsafe.c: New file.
51191         * tests/unistr/test-u8-mbtouc.h: New file.
51193         Tests for module 'unistr/u32-mblen'.
51194         * modules/unistr/u32-mblen-tests: New file.
51195         * tests/unistr/test-u32-mblen.c: New file.
51197         Tests for module 'unistr/u16-mblen'.
51198         * modules/unistr/u16-mblen-tests: New file.
51199         * tests/unistr/test-u16-mblen.c: New file.
51201         Tests for module 'unistr/u8-mblen'.
51202         * modules/unistr/u8-mblen-tests: New file.
51203         * tests/unistr/test-u8-mblen.c: New file.
51205         Tests for module 'unistr/u32-to-u16'.
51206         * modules/unistr/u32-to-u16-tests: New file.
51207         * tests/unistr/test-u32-to-u16.c: New file.
51209         Tests for module 'unistr/u32-to-u8'.
51210         * modules/unistr/u32-to-u8-tests: New file.
51211         * tests/unistr/test-u32-to-u8.c: New file.
51213         Tests for module 'unistr/u16-to-u32'.
51214         * modules/unistr/u16-to-u32-tests: New file.
51215         * tests/unistr/test-u16-to-u32.c: New file.
51217         Tests for module 'unistr/u16-to-u8'.
51218         * modules/unistr/u16-to-u8-tests: New file.
51219         * tests/unistr/test-u16-to-u8.c: New file.
51221         Tests for module 'unistr/u8-to-u32'.
51222         * modules/unistr/u8-to-u32-tests: New file.
51223         * tests/unistr/test-u8-to-u32.c: New file.
51225         Tests for module 'unistr/u8-to-u16'.
51226         * modules/unistr/u8-to-u16-tests: New file.
51227         * tests/unistr/test-u8-to-u16.c: New file.
51229         Tests for module 'unistr/u32-check'.
51230         * modules/unistr/u32-check-tests: New file.
51231         * tests/unistr/test-u32-check.c: New file.
51233         Tests for module 'unistr/u16-check'.
51234         * modules/unistr/u16-check-tests: New file.
51235         * tests/unistr/test-u16-check.c: New file.
51237         Tests for module 'unistr/u8-check'.
51238         * modules/unistr/u8-check-tests: New file.
51239         * tests/unistr/test-u8-check.c: New file.
51241         * tests/unictype/test-categ_byname.c: Include <stdbool.h>.
51242         (category_equals): New function.
51243         (main): Add more tests.
51244         * modules/unictype/category-byname-tests (Depends-on): Add stdbool.
51246         * tests/unictype/test-bidi_byname.c (main): Add more tests.
51248 2010-01-10  Bruno Haible  <bruno@clisp.org>
51250         unistr/u*-strcoll: Try harder to distinguish different strings.
51251         * lib/unistr/u-strcoll.h (FUNC): When sl1 and sl2 are the same,
51252         compare s1 and s2 to see if they are different.
51254 2010-01-10  Bruno Haible  <bruno@clisp.org>
51256         unistr/u*-stpncpy: Fix the return value.
51257         * lib/unistr.h (u8_stpncpy, u16_stpncpy, u32_stpncpy): Make the
51258         description of the return value consistent with stpncpy in glibc.
51259         * lib/unistr/u-stpncpy.h (FUNC): Return the pointer past the last
51260         written non-NUL unit.
51262 2010-01-10  Bruno Haible  <bruno@clisp.org>
51264         unistr/u*-next: Add missing dependencies.
51265         * modules/unistr/u8-next (Depends-on): Add unistr/u8-strmbtouc.
51266         * modules/unistr/u16-next (Depends-on): Add unistr/u16-strmbtouc.
51267         * modules/unistr/u32-next (Depends-on): Add unistr/u32-strmbtouc.
51269 2010-01-10  Bruno Haible  <bruno@clisp.org>
51271         unistr/u8-mbsnlen: Fix return value for incomplete character.
51272         * lib/unistr/u8-mbsnlen.c (u8_mbsnlen): Use u8_mbtoucr instead of
51273         u8_mblen.
51274         * modules/unistr/u8-mbsnlen (Depends-on): Add unistr/u8-mbtoucr.
51275         Remove unistr/u8-mblen.
51276         * lib/unistr/u16-mbsnlen.c (u16_mbsnlen): Use u16_mbtoucr instead of
51277         u16_mblen.
51278         * modules/unistr/u16-mbsnlen (Depends-on): Add unistr/u16-mbtoucr.
51279         Remove unistr/u16-mblen.
51281 2010-01-10  Bruno Haible  <bruno@clisp.org>
51283         wchar: Fix compilation error when <wchar.h> is used from coreutils.
51284         * lib/wchar.in.h: Treat __need_wint_t like __need_mbstate_t.
51285         Reported by Brian Gough <bjg@gnu.org> and
51286         Chris Clayton <chris2553@googlemail.com> via
51287         Mike Frysinger <vapier@gentoo.org> and Jim Meyering <jim@meyering.net>.
51289 2010-01-09  Bruno Haible  <bruno@clisp.org>
51291         unistr/u16-to-u32: Reject invalid input.
51292         * lib/unistr/u16-to-u32.c (u16_to_u32): Call u16_mbtoucr instead of
51293         u16_mbtouc.
51294         * modules/unistr/u16-to-u32 (Depends-on): Add unistr/u16-mbtoucr.
51295         Remove unistr/u16-mbtouc.
51297         unistr/u16-to-u8: Reject invalid input.
51298         * lib/unistr/u16-to-u8.c (u16_to_u8): Call u16_mbtoucr instead of
51299         u16_mbtouc.
51300         * modules/unistr/u16-to-u8 (Depends-on): Add unistr/u16-mbtoucr.
51301         Remove unistr/u16-mbtouc.
51303         unistr/u8-to-u32: Reject invalid input.
51304         * lib/unistr/u8-to-u32.c (u8_to_u32): Call u8_mbtoucr instead of
51305         u8_mbtouc.
51306         * modules/unistr/u8-to-u32 (Depends-on): Add unistr/u8-mbtoucr.
51307         Remove unistr/u8-mbtouc.
51309         unistr/u8-to-u16: Reject invalid input.
51310         * lib/unistr/u8-to-u16.c (u8_to_u16): Call u8_mbtoucr instead of
51311         u8_mbtouc.
51312         * modules/unistr/u8-to-u16 (Depends-on): Add unistr/u8-mbtoucr.
51313         Remove unistr/u8-mbtouc.
51315 2010-01-09  Bruno Haible  <bruno@clisp.org>
51317         Tests for module 'getlogin'.
51318         * modules/getlogin-tests: New file.
51319         * tests/test-getlogin.c: New file.
51321         New module 'getlogin'.
51322         * lib/unistd.in.h (getlogin): New declaration.
51323         * lib/getlogin.c: New file.
51324         * m4/getlogin.m4: New file.
51325         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETLOGIN,
51326         HAVE_GETLOGIN.
51327         * modules/unistd (Makefile.am): Substitute GNULIB_GETLOGIN,
51328         HAVE_GETLOGIN.
51329         * modules/getlogin: New file.
51330         * doc/posix-functions/getlogin.texi: Mention the new module.
51331         Reported by John W. Eaton <jwe@gnu.org>.
51333 2010-01-09  Bruno Haible  <bruno@clisp.org>
51335         getlogin_r: Support for native Windows.
51336         * lib/getlogin_r.c: Include <windows.h>
51337         (getlogin_r): Implement for native Windows.
51338         * tests/test-getlogin_r.c (main): Also test with a huge buffer.
51339         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>
51340         via John W. Eaton <jwe@gnu.org>.
51342 2010-01-09  Bruno Haible  <bruno@clisp.org>
51344         getlogin_r: Small fixes.
51345         * lib/getlogin_r.c (getlogin_r): Don't set errno if the function
51346         succeeds.
51347         * m4/getlogin_r.m4 (gl_GETLOGIN_R): Require gl_USE_SYSTEM_EXTENSIONS
51348         before testing whether getlogin_r is declared. No need to set
51349         HAVE_DECL_GETLOGIN_R to 1.
51350         (gl_PREREQ_GETLOGIN_R): Don't check for the getlogin_r declaration.
51352 2010-01-09  Bruno Haible  <bruno@clisp.org>
51354         * lib/unistd.in.h (getlogin_r): Add comment.
51356 2010-01-09  Bruno Haible  <bruno@clisp.org>
51358         Tests for module 'getlogin_r'.
51359         * modules/getlogin_r-tests: New file.
51360         * tests/test-getlogin_r.c: New file.
51362 2010-01-09  Jim Meyering  <meyering@redhat.com>
51364         maint.mk: extend proper_name_utf8-vs-LIBICONV-checking rule
51365         * top/maint.mk (sc_proper_name_utf8_requires_ICONV): Adapt to work
51366         also when $(LIBICONV) is part of LDADD, rather than ${prog}_LDADD.
51368 2010-01-08  Simon Josefsson  <simon@josefsson.org>
51370         * lib/dup2.c (rpl_dup2): Improve comment.
51372 2010-01-08  Eric Blake  <ebb9@byu.net>
51374         maint.mk: allow packages to add makefile @@ exceptions
51375         * top/maint.mk (_makefile_at_at_check_exceptions): New hook.
51376         (sc_makefile_check): Rename...
51377         (sc_makefile_at_at_check): ...to this, and use hook.
51379         dup2: work around mingw bug
51380         * lib/dup2.c (rpl_dup2): Sanitize return value on mingw.
51381         Reported by Simon Josefsson.
51383 2010-01-07  John W. Eaton  <jwe@octave.org>  (tiny change)
51385         glob: Fix C++ compilation.
51386         * lib/glob.in.h [__cplusplus]: Define __BEGIN_DECLS and __END_DECLS for
51387         C++.
51389 2010-01-07  Bruno Haible  <bruno@clisp.org>
51391         Fix indentation of wctype.in.h, broken since 2007-01-06.
51392         * lib/wctype.in.h: Fix indentation of preprocessor directives.
51394 2010-01-07  Bruno Haible  <bruno@clisp.org>
51396         mbslen: Avoid collision with system function.
51397         * lib/string.in.h [MirBSD]: Include <wchar.h>.
51398         (mbslen): Undefine first. Alias mbslen to rpl_mbslen.
51399         * m4/mbslen.m4: New file.
51400         * modules/mbslen (Files): Add it.
51401         (configure.ac): Invoke gl_MBSLEN.
51402         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize HAVE_MBSLEN.
51403         * modules/string (Makefile.am): Substitute HAVE_MBSLEN.
51404         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>
51405         via Ian Beckwith <ianb@erislabs.net>.
51407 2010-01-07  Bruno Haible  <bruno@clisp.org>
51409         dirent: Document the last fix.
51410         * doc/posix-headers/dirent.texi: Document the bug of missing 'ino_t'.
51412 2010-01-07  Bruno Haible  <bruno@clisp.org>
51414         stdio: Ensure <stdio.h> defines off_t, ssize_t, va_list.
51415         * lib/stdio.in.h: Include <sys/types.h> unconditionally.
51416         * tests/test-stdio.c: Verify that fpos_t, off_t, size_t, ssize_t,
51417         va_list are defined.
51418         * doc/posix-headers/stdio.texi: Document the bug of missing types.
51419         Reported by Eric Blake.
51421 2010-01-07  Bruno Haible  <bruno@clisp.org>
51423         xlist, xoset: Fix missing dependency bug, introduced on 2009-12-13.
51424         * modules/xlist (Depends-on): Add 'list',
51425         * modules/xoset (Depends-on): Add 'oset'.
51426         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
51428 2010-01-07  Bruno Haible  <bruno@clisp.org>
51430         * doc/posix-functions/strcasecmp.texi: Clarify the platforms.
51431         * doc/posix-functions/strncasecmp.texi: Likewise.
51433 2010-01-07  Bruno Haible  <bruno@clisp.org>
51435         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Simplify logic.
51437 2010-01-07  John W. Eaton  <jwe@octave.org>
51439         wctype: allow C++ use
51440         * lib/wctype.in.h: Add extern "C" block for C++.
51442 2010-01-06  Eric Blake  <ebb9@byu.net>
51444         maint.mk: detect incorrect GFDL usage
51445         * top/maint.mk (_GFDL_regexp, sc_GFDL_version): New rule.
51447 2010-01-06  Jim Meyering  <meyering@redhat.com>
51448         and Eric Blake  <ebb9@byu.net>
51450         maint.mk: ignore multi-line copyright in NEWS
51451         * top/maint.mk (NEWS_hash): Add immunity to multi-line copyright.
51453 2010-01-06  Eric Blake  <ebb9@byu.net>
51455         select: add missing dependency
51456         * modules/select-tests (Depends-on): Move sockets dependency...
51457         * modules/select (Depends-on): ...here.
51458         Reported by Ian Beckwith.
51460         doc: regenerate INSTALL
51461         * doc/INSTALL: Reflect recent autoconf update.
51462         * doc/INSTALL.ISO: Likewise.
51463         * doc/INSTALL.UTF-8: Likewise.
51465         pread: fix compilation on glibc
51466         * m4/pread.m4 (gl_FUNC_PREAD): Request all interfaces.
51467         Reported by Ralf Wildenhues.
51469         dirent: fix test failure
51470         * lib/dirent.in.h (includes): Guarantee ino_t.
51471         Reported by Ralf Wildenhues.
51473 2010-01-06  Petr Salinger  <Petr.Salinger@seznam.cz>  (tiny change)
51475         linkat, renameat: avoid bad free
51476         * lib/at-func2.c (at_func2): Fix typo.
51477         Reported via Ian Beckwith, from http://bugs.debian.org/561117.
51479 2010-01-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
51481         cleanup after gl_FUNC_READLINK, for gl_FUNC_SYMLINK test
51482         * m4/readlink.m4 (gl_FUNC_READLINK): Remove conftest.lnk2,
51483         to avoid failure of symlink test later.
51485 2010-01-06  Eric Blake  <ebb9@byu.net>
51487         stdio, unistd: guarantee ssize_t
51488         * lib/unistd.in.h (includes): Ensure that types required by POSIX
51489         2008 are exposed when needed.
51490         * lib/stdio.in.h (includes): Likewise.
51491         Reported by Ralf Wildenhues.
51493 2010-01-06  Paolo Bonzini  <bonzini@gnu.org>
51495         nl_langinfo: do not call AC_CHECK_FUNC_ONCE inside if.
51496         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Do not call
51497         AC_CHECK_FUNC_ONCE inside if, do not adjust ac_cv_func_nl_langinfo.
51499 2010-01-06  Jim Meyering  <meyering@redhat.com>
51501         readtokens: this module *does* require xalloc.h
51502         It uses only functions that were omitted by the old syntax-check rule.
51503         * lib/readtokens.c: Include "xalloc.h" once again.
51504         * modules/readtokens (Depends-on): Add xalloc.
51505         This reverts part of 0e0f8f12ec241c0f1c1f21f960bb5cf908a0fa3c.
51507 2010-01-05  Eric Blake  <ebb9@byu.net>
51509         maint: support 'make announcement' from a VPATH build
51510         * top/maint.mk (announcement): Look for correct NEWS file.
51512 2010-01-05  Aurelien Jarno  <aurelien@aurel32.net>  (tiny change)
51514         utimens (fdutimens): ignore a negative FD, per contract
51515         * lib/utimens.c (fdutimens) [HAVE_FUTIMENS]: Call futimens only
51516         when we have a valid file descriptor.  Otherwise, using a brand
51517         new glibc (with just-patched futimens that now fails with EBADF)
51518         would cause this function to fail with ENOSYS.
51519         Reported by Guillaume Ayoub in http://bugs.debian.org/563726.
51520         See also http://bugzilla.redhat.com/552320.
51522 2010-01-05  Eric Blake  <ebb9@byu.net>
51524         strcase: document what it provides
51525         * doc/posix-functions/strcasecmp.texi (strcasecmp): Mention the
51526         gnulib module.
51527         * doc/posix-functions/strncasecmp.texi (strncasecmp): Likewise.
51528         Reported by Dilyan Palauzov <Dilyan.Palauzov@aegee.org>.
51530 2010-01-05  Jim Meyering  <meyering@redhat.com>
51532         maint: remove useless inclusions of "xalloc.h"
51533         * lib/getloadavg.c: Remove useless inclusion of "xalloc.h".
51534         * lib/readtokens.c: Likewise.
51535         * lib/same.c: Likewise.
51536         * modules/getloadavg (Depends-on): Remove xalloc.
51537         * modules/readtokens: Likewise.
51538         * modules/same: Likewise.
51540         maint.mk: include 4 more function names in alloca.h-checking regexp
51541         * top/maint.mk (sc_prohibit_xalloc_without_use): Use more complete
51542         regexp.  Before, we would give a false-positive (saying alloca.h
51543         is included unnecessarily) when the only uses involved omitted symbols.
51545         xalloc.h: use consistent formatting
51546         * lib/xalloc.h: Move declarations to start in the first column.
51548 2010-01-05  Eric Blake  <ebb9@byu.net>
51550         mkdir: avoid xalloc
51551         * lib/mkdir.c (includes): Drop unused header.
51552         Reported by John W. Eaton.
51554 2010-01-04  Jim Meyering  <meyering@redhat.com>
51556         nl_langinfo: avoid configure-time syntax error
51557         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): When we've already tested
51558         for nl_langinfo.h, AC_CHECK_FUNCS_ONCE([nl_langinfo]) expands to
51559         the empty string.  Don't let that provoke a shell syntax error.
51561         regcomp, regexec, fnmatch: avoid array bounds read error
51562         * lib/regcomp.c (build_equiv_class): From glibc:
51563         Use only the low 24 bits of a findidx return value as an index
51564         into the weights array.  Patch by Ulrich Drepper:
51565         http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commit;h=b7d1c5fa30
51566         * lib/regexec.c (check_node_accept_bytes): Likewise.
51567         * lib/fnmatch_loop.c (FCT): Likewise.
51569         regcomp: skip collseq lookup when there are no rules
51570         * lib/regcomp.c (lookup_collation_sequence_value): From glibc:
51571         http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commitdiff;h=a532a41df58
51573         regcomp: recognize ill-formed { } expressions
51574         * lib/regcomp.c (parse_dup_op): From glibc:
51575         http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commitdiff;h=a87cd2894cb
51577         regcomp: fix typo in comment
51578         * lib/regcomp.c (duplicate_node_closure): Sync from glibc.
51579         s/satisfy/satisfies/.
51581         regcomp: sync from glibc: remove dead store
51582         * lib/regcomp.c (duplicate_node_closure): Remove useless
51583         search_duplicated_node call and dead store.
51585         regcomp: sync from glibc; always use nl_langinfo
51586         * lib/regcomp.c (init_dfa) [!LIBC]: Always use nl_langinfo (CODESET),
51587         now that gnulib provides it.  Recognize UTF8 as well as UTF-8.
51588         * modules/regex (Depends-on): Add nl_langinfo.
51590 2010-01-04  Eric Blake  <ebb9@byu.net>
51592         fdopendir: fix configure test
51593         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Check for existing file.
51595 2010-01-01  Bruno Haible  <bruno@clisp.org>
51597         wchar: Remove unused configure check.
51598         * m4/wchar.m4 (gl_WCHAR_H): Don't test whether <wchar.h> is standalone.
51600 2010-01-01  Eric Blake  <ebb9@byu.net>
51602         headers: make check of system header explicit
51603         * m4/netdb_h.m4 (gl_HEADER_NETDB): Don't exploit knowledge of
51604         gl_CHECK_NEXT_HEADER internals, but call AC_CHECK_HEADERS_ONCE
51605         ourselves.
51606         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
51607         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
51608         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Likewise.
51609         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise, for gt_INTTYPES_PRI
51610         internals.
51611         * m4/wchar.m4 (gl_WCHAR_H): Skip followup test if header is
51612         missing.
51613         Suggested by Bruno Haible.
51615 2010-01-01  Jim Meyering  <meyering@redhat.com>
51617         ChangeLog: tweak to eliminate unnecessary copyright line
51618         * ChangeLog: Remove a copyright line that was mistakenly updated
51619         by today's update-copyright run.  Reported by Eric Blake.
51621         test-update-copyright: don't let envvar setting cause test failure
51622         * tests/test-update-copyright.sh: Set UPDATE_COPYRIGHT_MAX_LINE_LENGTH.
51624 2010-01-01  Bruno Haible  <bruno@clisp.org>
51626         localename: Avoid gcc warning.
51627         * lib/localename.c (gl_locale_name_thread_unsafe): Don't define this
51628         function if it is not used.
51630 2010-01-01  Jim Meyering  <meyering@redhat.com>
51632         update nearly all FSF copyright year lists to include 2010
51633         Use the same procedure as for 2009, outlined in
51634         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/20081
51636         version-etc: set COPYRIGHT_YEAR to 2010
51637         * lib/version-etc.c (COPYRIGHT_YEAR): Manually update the enum.
51639 2009-12-31  Eric Blake  <ebb9@byu.net>
51641         doc: correct availability of cygwin 1.5.x getopt
51642         * doc/posix-functions/optarg.texi (optarg): Cygwin supplies getopt
51643         variables.
51644         * doc/posix-functions/opterr.texi (opterr): Likewise.
51645         * doc/posix-functions/optind.texi (optind): Likewise.
51646         * doc/posix-functions/optopt.texi (optopt): Likewise.
51647         * doc/posix-functions/tzname.texi (tzname): Likewise.
51649         openat: update maintainer
51650         * modules/openat (Maintainer): Add myself.
51652         utimens: avoid shadowing warning
51653         * lib/utimens.c (fdutimens, lutimens): Consolidate separate stat
51654         buffers into one, to avoid shadowing, as well as avoiding a
51655         redundant stat.
51656         Reported by Jim Meyering.
51658         test-dup2: avoid compiler warning
51659         * tests/test-dup2.c (is_inheritable): Only define if used.
51661 2010-01-01  Bruno Haible  <bruno@clisp.org>
51663         vasnprintf: Avoid passing an 'rpl_mbstate_t *' to the system's wcrtomb.
51664         * lib/vasnprintf.c (VASNPRINTF): If GNULIB_defined_mbstate_t is
51665         defined, use wctomb instead of wcrtomb.
51667 2010-01-01  Bruno Haible  <bruno@clisp.org>
51669         iconv: Reject native Solaris iconv.
51670         * m4/iconv.m4 (AM_ICONV_LINK): Recognize native Solaris iconv() bug.
51671         * doc/posix-functions/iconv.texi: Document native Solaris iconv() bug.
51673 2009-12-31  Bruno Haible  <bruno@clisp.org>
51675         * tests/test-signal.c (main): Remove test of 'SIG'.
51677 2009-12-31  Bruno Haible  <bruno@clisp.org>
51679         spawn: Fix incomplete fix.
51680         * lib/spawn.in.h (posix_spawnattr_getflags, posix_spawnattr_setflags,
51681         posix_spawnattr_getpgroup, posix_spawnattr_setpgroup): Correct the link
51682         warnings for GNULIB_POSIXCHECK again.
51683         Reported by Eric Blake.
51685 2009-12-31  Bruno Haible  <bruno@clisp.org>
51687         Avoid namespace pollution on glibc systems.
51688         * lib/spawn.in.h: Don't include <sched.h>, <signal.h> on glibc systems.
51689         * lib/sys_times.in.h: Don't include <time.h> on glibc systems.
51690         * lib/wchar.in.h: Don't include <stddef.h>, <stdio.h>, <time.h> on
51691         glibc systems.
51693 2009-12-31  Bruno Haible  <bruno@clisp.org>
51695         * m4/wchar.m4 (gl_WCHAR_H): Remove gl_STDDEF_H invocation.
51696         (gl_REPLACE_WCHAR_H): Turn into a no-op.
51697         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): Likewise.
51698         * m4/dirent_h.m4 (gl_REPLACE_DIRENT_H): Likewise.
51699         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H): Likewise.
51700         * m4/spawn_h.m4 (gl_REPLACE_SPAWN_H): Likewise.
51701         * m4/sys_ioctl_h.m4 (gl_REPLACE_SYS_IOCTL_H): Likewise.
51703 2009-12-31  Bruno Haible  <bruno@clisp.org>
51705         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Invoke
51706         gl_CHECK_NEXT_HEADERS before testing ac_cv_header_sys_select_h, not
51707         afterwards.
51709 2009-12-31  Bruno Haible  <bruno@clisp.org>
51711         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H_DEFAULTS): Don't set
51712         SYS_UTSNAME_H.
51714 2009-12-31  Bruno Haible  <bruno@clisp.org>
51716         spawn: Fix misapplied patch.
51717         * lib/spawn.in.h (posix_spawnattr_getflags, posix_spawnattr_setflags,
51718         posix_spawnattr_getpgroup, posix_spawnattr_setpgroup): Correct the link
51719         warnings for GNULIB_POSIXCHECK.
51721 2009-12-31  Bruno Haible  <bruno@clisp.org>
51723         times: Update after sys_times changed.
51724         * m4/times.m4: New file, extracted from modules/times. Set HAVE_TIMES.
51725         * modules/times (Files): Add it.
51726         (configure.ac): Invoke gl_FUNC_TIMES.
51728 2009-12-31  Bruno Haible  <bruno@clisp.org>
51730         Use AC_C_INLINE where necessary.
51731         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Require AC_C_INLINE.
51732         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
51733         * m4/fts.m4 (gl_FUNC_FTS_CORE): Likewise.
51734         * m4/mbchar.m4 (gl_MBCHAR): Likewise.
51735         * m4/mbfile.m4 (gl_MBFILE): Likewise.
51736         * m4/mbiter.m4 (gl_MBITER): Likewise.
51737         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
51738         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
51739         * m4/wait-process.m4 (gl_WAIT_PROCESS): Likewise.
51740         * modules/u64 (configure.ac): Likewise.
51742 2009-12-31  Bruno Haible  <bruno@clisp.org>
51744         Use AC_C_INLINE instead of module 'inline' where possible.
51745         * modules/inline (Description): Clarify purpose.
51746         * m4/count-one-bits.m4 (gl_COUNT_ONE_BITS): Require AC_C_INLINE.
51747         * modules/count-one-bits (Depends-on): Remove inline.
51748         * m4/openat.m4 (gl_PREREQ_OPENAT): Require AC_C_INLINE.
51749         * modules/openat (Depends-on): Remove inline.
51750         * modules/fdutimensat (Depends-on, configure.ac): Require AC_C_INLINE
51751         instead of depending on module 'inline'.
51752         * modules/filevercmp (Depends-on, configure.ac): Likewise.
51753         * modules/unicase/cased (Depends-on, configure.ac): Likewise.
51754         * modules/unicase/ignorable (Depends-on, configure.ac): Likewise.
51755         * modules/unictype/category-of (Depends-on, configure.ac): Likewise.
51756         * modules/unictype/category-test (Depends-on, configure.ac): Likewise.
51757         * modules/unictype/ctype-alnum (Depends-on, configure.ac): Likewise.
51758         * modules/unictype/ctype-alpha (Depends-on, configure.ac): Likewise.
51759         * modules/unictype/ctype-blank (Depends-on, configure.ac): Likewise.
51760         * modules/unictype/ctype-cntrl (Depends-on, configure.ac): Likewise.
51761         * modules/unictype/ctype-digit (Depends-on, configure.ac): Likewise.
51762         * modules/unictype/ctype-graph (Depends-on, configure.ac): Likewise.
51763         * modules/unictype/ctype-lower (Depends-on, configure.ac): Likewise.
51764         * modules/unictype/ctype-print (Depends-on, configure.ac): Likewise.
51765         * modules/unictype/ctype-punct (Depends-on, configure.ac): Likewise.
51766         * modules/unictype/ctype-space (Depends-on, configure.ac): Likewise.
51767         * modules/unictype/ctype-upper (Depends-on, configure.ac): Likewise.
51768         * modules/unictype/ctype-xdigit (Depends-on, configure.ac): Likewise.
51769         * modules/unictype/property-alphabetic (Depends-on, configure.ac):
51770         Likewise.
51771         * modules/unictype/property-ascii-hex-digit (Depends-on,
51772         configure.ac): Likewise.
51773         * modules/unictype/property-bidi-arabic-digit (Depends-on,
51774         configure.ac): Likewise.
51775         * modules/unictype/property-bidi-arabic-right-to-left (Depends-on,
51776         configure.ac): Likewise.
51777         * modules/unictype/property-bidi-block-separator (Depends-on,
51778         configure.ac): Likewise.
51779         * modules/unictype/property-bidi-boundary-neutral (Depends-on,
51780         configure.ac): Likewise.
51781         * modules/unictype/property-bidi-common-separator (Depends-on,
51782         configure.ac): Likewise.
51783         * modules/unictype/property-bidi-control (Depends-on, configure.ac):
51784         Likewise.
51785         * modules/unictype/property-bidi-embedding-or-override (Depends-on,
51786         configure.ac): Likewise.
51787         * modules/unictype/property-bidi-eur-num-separator (Depends-on,
51788         configure.ac): Likewise.
51789         * modules/unictype/property-bidi-eur-num-terminator (Depends-on,
51790         configure.ac): Likewise.
51791         * modules/unictype/property-bidi-european-digit (Depends-on,
51792         configure.ac): Likewise.
51793         * modules/unictype/property-bidi-hebrew-right-to-left (Depends-on,
51794         configure.ac): Likewise.
51795         * modules/unictype/property-bidi-left-to-right (Depends-on,
51796         configure.ac): Likewise.
51797         * modules/unictype/property-bidi-non-spacing-mark (Depends-on,
51798         configure.ac): Likewise.
51799         * modules/unictype/property-bidi-other-neutral (Depends-on,
51800         configure.ac): Likewise.
51801         * modules/unictype/property-bidi-pdf (Depends-on, configure.ac):
51802         Likewise.
51803         * modules/unictype/property-bidi-segment-separator (Depends-on,
51804         configure.ac): Likewise.
51805         * modules/unictype/property-bidi-whitespace (Depends-on,
51806         configure.ac): Likewise.
51807         * modules/unictype/property-combining (Depends-on, configure.ac):
51808         Likewise.
51809         * modules/unictype/property-composite (Depends-on, configure.ac):
51810         Likewise.
51811         * modules/unictype/property-currency-symbol (Depends-on,
51812         configure.ac): Likewise.
51813         * modules/unictype/property-dash (Depends-on, configure.ac): Likewise.
51814         * modules/unictype/property-decimal-digit (Depends-on, configure.ac):
51815         Likewise.
51816         * modules/unictype/property-default-ignorable-code-point (Depends-on,
51817         configure.ac): Likewise.
51818         * modules/unictype/property-deprecated (Depends-on, configure.ac):
51819         Likewise.
51820         * modules/unictype/property-diacritic (Depends-on, configure.ac):
51821         Likewise.
51822         * modules/unictype/property-extender (Depends-on, configure.ac):
51823         Likewise.
51824         * modules/unictype/property-format-control (Depends-on, configure.ac):
51825         Likewise.
51826         * modules/unictype/property-grapheme-base (Depends-on, configure.ac):
51827         Likewise.
51828         * modules/unictype/property-grapheme-extend (Depends-on, configure.ac):
51829         Likewise.
51830         * modules/unictype/property-grapheme-link (Depends-on, configure.ac):
51831         Likewise.
51832         * modules/unictype/property-hex-digit (Depends-on, configure.ac):
51833         Likewise.
51834         * modules/unictype/property-hyphen (Depends-on, configure.ac):
51835         Likewise.
51836         * modules/unictype/property-id-continue (Depends-on, configure.ac):
51837         Likewise.
51838         * modules/unictype/property-id-start (Depends-on, configure.ac):
51839         Likewise.
51840         * modules/unictype/property-ideographic (Depends-on, configure.ac):
51841         Likewise.
51842         * modules/unictype/property-ids-binary-operator (Depends-on,
51843         configure.ac): Likewise.
51844         * modules/unictype/property-ids-trinary-operator (Depends-on,
51845         configure.ac): Likewise.
51846         * modules/unictype/property-ignorable-control (Depends-on,
51847         configure.ac): Likewise.
51848         * modules/unictype/property-iso-control (Depends-on, configure.ac):
51849         Likewise.
51850         * modules/unictype/property-join-control (Depends-on, configure.ac):
51851         Likewise.
51852         * modules/unictype/property-left-of-pair (Depends-on, configure.ac):
51853         Likewise.
51854         * modules/unictype/property-line-separator (Depends-on, configure.ac):
51855         Likewise.
51856         * modules/unictype/property-logical-order-exception (Depends-on,
51857         configure.ac): Likewise.
51858         * modules/unictype/property-lowercase (Depends-on, configure.ac):
51859         Likewise.
51860         * modules/unictype/property-math (Depends-on, configure.ac): Likewise.
51861         * modules/unictype/property-non-break (Depends-on, configure.ac):
51862         Likewise.
51863         * modules/unictype/property-not-a-character (Depends-on, configure.ac):
51864         Likewise.
51865         * modules/unictype/property-numeric (Depends-on, configure.ac):
51866         Likewise.
51867         * modules/unictype/property-other-alphabetic (Depends-on,
51868         configure.ac): Likewise.
51869         * modules/unictype/property-other-default-ignorable-code-point
51870         (Depends-on, configure.ac): Likewise.
51871         * modules/unictype/property-other-grapheme-extend (Depends-on,
51872         configure.ac): Likewise.
51873         * modules/unictype/property-other-id-continue (Depends-on,
51874         configure.ac): Likewise.
51875         * modules/unictype/property-other-id-start (Depends-on, configure.ac):
51876         Likewise.
51877         * modules/unictype/property-other-lowercase (Depends-on, configure.ac):
51878         Likewise.
51879         * modules/unictype/property-other-math (Depends-on, configure.ac):
51880         Likewise.
51881         * modules/unictype/property-other-uppercase (Depends-on, configure.ac):
51882         Likewise.
51883         * modules/unictype/property-paired-punctuation (Depends-on,
51884         configure.ac): Likewise.
51885         * modules/unictype/property-paragraph-separator (Depends-on,
51886         configure.ac): Likewise.
51887         * modules/unictype/property-pattern-syntax (Depends-on, configure.ac):
51888         Likewise.
51889         * modules/unictype/property-pattern-white-space (Depends-on,
51890         configure.ac): Likewise.
51891         * modules/unictype/property-private-use (Depends-on, configure.ac):
51892         Likewise.
51893         * modules/unictype/property-punctuation (Depends-on, configure.ac):
51894         Likewise.
51895         * modules/unictype/property-quotation-mark (Depends-on, configure.ac):
51896         Likewise.
51897         * modules/unictype/property-radical (Depends-on, configure.ac):
51898         Likewise.
51899         * modules/unictype/property-sentence-terminal (Depends-on,
51900         configure.ac): Likewise.
51901         * modules/unictype/property-soft-dotted (Depends-on, configure.ac):
51902         Likewise.
51903         * modules/unictype/property-space (Depends-on, configure.ac): Likewise.
51904         * modules/unictype/property-terminal-punctuation (Depends-on,
51905         configure.ac): Likewise.
51906         * modules/unictype/property-titlecase (Depends-on, configure.ac):
51907         Likewise.
51908         * modules/unictype/property-unassigned-code-value (Depends-on,
51909         configure.ac): Likewise.
51910         * modules/unictype/property-unified-ideograph (Depends-on,
51911         configure.ac): Likewise.
51912         * modules/unictype/property-uppercase (Depends-on, configure.ac):
51913         Likewise.
51914         * modules/unictype/property-variation-selector (Depends-on,
51915         configure.ac): Likewise.
51916         * modules/unictype/property-white-space (Depends-on, configure.ac):
51917         Likewise.
51918         * modules/unictype/property-xid-continue (Depends-on, configure.ac):
51919         Likewise.
51920         * modules/unictype/property-xid-start (Depends-on, configure.ac):
51921         Likewise.
51922         * modules/unictype/property-zero-width (Depends-on, configure.ac):
51923         Likewise.
51924         * modules/unictype/syntax-c-ident (Depends-on, configure.ac): Likewise.
51925         * modules/unictype/syntax-java-ident (Depends-on, configure.ac):
51926         Likewise.
51928 2009-12-31  Bruno Haible  <bruno@clisp.org>
51930         Remove unnecessary AC_C_INLINE invocation.
51931         * m4/popen.m4 (gl_PREREQ_POPEN): Don't invoke AC_C_INLINE. Not needed
51932         since 2009-08-21.
51934 2009-12-31  Jim Meyering  <meyering@redhat.com>
51936         maint.mk: don't require explicit gpg_key_ID in cfg.mk
51937         * top/maint.mk (gpg_key_ID): Derive key ID from signed release tag.
51938         With this change, we can all remove the gpg_key_ID = ... definition
51939         from our respective cfg.mk files.
51941         maint.mk: create announcement template in ~/, not in /tmp
51942         * top/maint.mk (emit_upload_commands): Adjust.
51943         (release-prep): Emit into ~/announce-..., not /tmp/announce-...
51944         Remove temporary file, .ci-msg.
51946 2009-12-31  Eric Blake  <ebb9@byu.net>
51948         link-warning: always build headers with link warnings
51949         * modules/arpa_inet (Makefile.am): Always build replacement
51950         header.
51951         * modules/ctype (Makefile.am): Likewise.
51952         * modules/dirent (Makefile.am): Likewise.
51953         * modules/inttypes (Makefile.am): Likewise.
51954         * modules/langinfo (Makefile.am): Likewise.
51955         * modules/locale (Makefile.am): Likewise.
51956         * modules/spawn (Makefile.am): Likewise.
51957         * modules/sys_file (Makefile.am): Likewise.
51958         * modules/sys_ioctl (Makefile.am): Likewise.
51959         * modules/sys_select (Makefile.am): Likewise.
51960         * modules/sys_socket (Makefile.am): Likewise.
51961         * modules/sys_times (Makefile.am): Likewise.
51962         * modules/sys_utsname (Makefile.am): Likewise.
51963         * modules/sys_wait (Makefile.am): Likewise.
51964         * modules/wchar (Makefile.am): Likewise.
51965         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET)
51966         (gl_ARPA_INET_H_DEFAULTS): Drop unneeded variable.
51967         * m4/ctype.m4 (gl_CTYPE_H_DEFAULTS): Likewise.
51968         * m4/isblank.m4 (gl_FUNC_ISBLANK): Likewise.
51969         * m4/dirent_h.m4 (gl_REPLACE_DIRENT_H, gl_DIRENT_H_DEFAULTS):
51970         Likewise.
51971         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
51972         * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
51973         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H, gl_LOCALE_H_DEFAULTS):
51974         Likewise.
51975         * m4/spawn_h.m4 (gl_REPLACE_SPAWN_H, gl_SPAWN_H_DEFAULTS):
51976         Likewise.
51977         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H): Likewise.
51978         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H, gl_REPLACE_SYS_IOCTL_H)
51979         (gl_SYS_IOCTL_H_DEFAULTS): Likewise.
51980         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
51981         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
51982         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H)
51983         (gl_SYS_UTSNAME_H_DEFAULTS): Likewise.
51984         * m4/wchar.m4 (gl_WCHAR_H, gl_REPLACE_WCHAR_H)
51985         (gl_WCHAR_H_DEFAULTS): Likewise.
51987 2009-12-31  Eric Blake  <ebb9@byu.net>
51989         signal, spawn: use link warnings
51990         * lib/signal.in.h (sigset_t): Make unconditional.
51991         (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset)
51992         (sigpending, sigprocmask, sigaction): Add link warnings.
51993         * lib/spawn.in.h (posix_spawn, posix_spawnp, posix_spawnattr_init)
51994         (posix_spawnattr_destroy, posix_spawnattr_getsigdefault)
51995         (posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask)
51996         (posix_spawnattr_setsigmask, posix_spawnattr_getflags)
51997         (posix_spawnattr_setflags, posix_spawnattr_getpgroup)
51998         (posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy)
51999         (posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam)
52000         (posix_spawnattr_setschedparam, posix_spawn_file_actions_init)
52001         (posix_spawn_file_actions_destroy)
52002         (posix_spawn_file_actions_addopen)
52003         (posix_spawn_file_actions_addclose)
52004         (posix_spawn_file_actions_adddup2): Likewise.
52005         * m4/signal_h.m4 (gl_SIGNAL_H): Guarantee uid_t.
52006         * tests/test-signal.c (main): Enhance test.
52008         spawn: improve wrapper support
52009         * m4/spawn_h.m4 (gl_SPAWN_H): Check for type existence.
52010         (gl_SPAWN_H_DEFAULTS): New defaults.
52011         * modules/spawn (Makefile.am): Substitute them.
52012         * lib/spawn.in.h: (posix_spawnattr_t, posix_spawn_file_actions_t):
52013         Only declare if missing or broken.
52015         sys_times, sys_utsname: use include_next
52016         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Support wrapping an existing
52017         header.
52018         (gl_SYS_TIMES_H_DEFAULTS): Add another variable.
52019         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H)
52020         (gl_SYS_UTSNAME_H_DEFAULTS): Likewise.
52021         * modules/sys_times (Depends-on): Add include_next.
52022         (Makefile.am): Substitute additional values.
52023         * modules/sys_utsname (Depends-on, Makefile.am): Likewise.
52024         * lib/sys_times.in.h (includes): Include native header, if
52025         available.
52026         * lib/sys_utsname.in.h (includes): Likewise.
52027         * tests/test-sys_times.c (main): Enhance test.
52029         fdutimensat: revert prior patch
52030         * modules/fdutimensat (Depends-on): Re-add inline; it is needed by
52031         utimens.h.
52032         Reported by Bruno Haible.
52034 2009-12-30  Eric Blake  <ebb9@byu.net>
52036         sys_wait: drop link-warning dependency
52037         * modules/sys_wait (Depends-on, Makefile.am): Drop unneeded
52038         link-warning efforts.
52039         * lib/sys_wait.in.h: Likewise.
52041         fdutimensat: remove bogus dependency
52042         * modules/fdutimensat (Depends-on): Drop inline.
52044         unistd: fix typo
52045         * lib/unistd.in.h (linkat) [GNULIB_POSIXCHECK]: Fix typo.
52047 2009-12-30  Bruno Haible  <bruno@clisp.org>
52049         Fix compilation error with Solaris cc.
52050         * lib/unicase/u8-is-invariant.c: Include <stdbool.h>.
52051         * lib/unicase/u16-is-invariant.c: Likewise.
52052         * lib/unicase/u32-is-invariant.c: Likewise.
52053         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
52055 2009-12-30  Bruno Haible  <bruno@clisp.org>
52057         Fix test crash.
52058         * tests/test-localename.c (test_locale_name_thread): Skip unavailable
52059         locales.
52060         Reported by Simon Josefsson <simon@josefsson.org>.
52062 2009-12-30  Bruno Haible  <bruno@clisp.org>
52064         Fix compilation error on most platforms.
52065         * tests/test-localename.c (categories): Define only if HAVE_NEWLOCALE.
52066         Reported by Simon Josefsson <simon@josefsson.org>
52067         and Nelson H. F. Beebe <beebe@math.utah.edu>.
52069 2009-12-30  Eric Blake  <ebb9@byu.net>
52071         futimens, utimensat: work around ntfs-3g bug
52072         * lib/utimensat.c (rpl_utimensat): Drop attempts to cache whether
52073         a ctime bug is present, and expand workaround to cover ntfs-3g.
52074         * lib/utimens.c (fdutimens, lutimens): Likewise.
52075         (utimensat_ctime_really, detect_ctime_bug): Drop cache mechanism.
52076         (validate_timespec): Adjust return value.
52077         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Update comment.
52078         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
52079         Reported by ctrn3e8 <ctrn3e8@gmail.com>.
52081 2009-12-29  Eric Blake  <ebb9@byu.net>
52083         link-warning: make usage consistent
52084         * modules/ctype (Depends-on): Add link-warning.
52085         (Makefile.am): Update rules accordingly.
52086         * modules/langinfo (Depends-on, Makefile.am): Likewise.
52087         * modules/locale (Depends-on, Makefile.am): Likewise.
52088         * modules/sys_file (Makefile.am): Likewise.
52089         * modules/getopt-posix (Makefile.am): Delete unused link warning
52090         efforts.
52091         * lib/ctype.in.h (GL_LINK_WARNING): Ensure definition before use.
52092         * lib/langinfo.in.h (GL_LINK_WARNING): Likewise.
52093         * lib/locale.in.h (GL_LINK_WARNING): Likewise.
52094         * lib/sys_file.in.h (GL_LINK_WARNING): Likewise.
52096         stdio: remove unused variables
52097         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Remove unused variables.
52098         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Likewise.
52099         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
52101         tests: test more substitute headers
52102         * modules/ctype-tests: New file.
52103         * modules/dirent-tests: Likewise.
52104         * modules/spawn-tests: Likewise.
52105         * modules/sys_file-tests: Likewise.
52106         * modules/sys_ioctl-tests: Likewise.
52107         * modules/sys_wait-tests: Likewise.
52108         * tests/test-ctype.c: Likewise.
52109         * tests/test-dirent.c: Likewise.
52110         * tests/test-spawn.c: Likewise.
52111         * tests/test-sys_file.c: Likewise.
52112         * tests/test-sys_ioctl.c: Likewise.
52113         * tests/test-sys_wait.c: Likewise.
52114         * m4/spawn_h.m4 (gl_SPAWN_H): Replace header if it is missing.
52115         * lib/sys_file.in.h (LOCK_SH, LOCK_EX, LOCK_UN, LOCK_NB): Provide
52116         whether or not flock is in use.
52118         tests: remove License section from module
52119         * modules/arpa_inet-tests: Remove unneeded section.
52120         * modules/byteswap-tests: Likewise.
52121         * modules/ceilf-tests: Likewise.
52122         * modules/ceill-tests: Likewise.
52123         * modules/crypto/des-tests: Likewise.
52124         * modules/crypto/gc-arcfour-tests: Likewise.
52125         * modules/crypto/gc-arctwo-tests: Likewise.
52126         * modules/crypto/gc-des-tests: Likewise.
52127         * modules/crypto/gc-hmac-md5-tests: Likewise.
52128         * modules/crypto/gc-hmac-sha1-tests: Likewise.
52129         * modules/crypto/gc-md2-tests: Likewise.
52130         * modules/crypto/gc-md4-tests: Likewise.
52131         * modules/crypto/gc-md5-tests: Likewise.
52132         * modules/crypto/gc-pbkdf2-sha1-tests: Likewise.
52133         * modules/crypto/gc-rijndael-tests: Likewise.
52134         * modules/crypto/gc-sha1-tests: Likewise.
52135         * modules/crypto/gc-tests: Likewise.
52136         * modules/crypto/md2-tests: Likewise.
52137         * modules/crypto/md4-tests: Likewise.
52138         * modules/fcntl-h-tests: Likewise.
52139         * modules/floorf-tests: Likewise.
52140         * modules/floorl-tests: Likewise.
52141         * modules/frexp-nolibm-tests: Likewise.
52142         * modules/frexp-tests: Likewise.
52143         * modules/frexpl-nolibm-tests: Likewise.
52144         * modules/frexpl-tests: Likewise.
52145         * modules/getaddrinfo-tests: Likewise.
52146         * modules/inttypes-tests: Likewise.
52147         * modules/isfinite-tests: Likewise.
52148         * modules/isinf-tests: Likewise.
52149         * modules/ldexpl-tests: Likewise.
52150         * modules/locale-tests: Likewise.
52151         * modules/math-tests: Likewise.
52152         * modules/netdb-tests: Likewise.
52153         * modules/netinet_in-tests: Likewise.
52154         * modules/printf-frexp-tests: Likewise.
52155         * modules/printf-frexpl-tests: Likewise.
52156         * modules/priv-set-tests: Likewise.
52157         * modules/random_r-tests: Likewise.
52158         * modules/round-tests: Likewise.
52159         * modules/roundf-tests: Likewise.
52160         * modules/roundl-tests: Likewise.
52161         * modules/search-tests: Likewise.
52162         * modules/select-tests: Likewise.
52163         * modules/signal-tests: Likewise.
52164         * modules/stdbool-tests: Likewise.
52165         * modules/stddef-tests: Likewise.
52166         * modules/stdint-tests: Likewise.
52167         * modules/stdio-tests: Likewise.
52168         * modules/stdlib-tests: Likewise.
52169         * modules/string-tests: Likewise.
52170         * modules/strings-tests: Likewise.
52171         * modules/sys_select-tests: Likewise.
52172         * modules/sys_socket-tests: Likewise.
52173         * modules/sys_stat-tests: Likewise.
52174         * modules/sys_time-tests: Likewise.
52175         * modules/sys_utsname-tests: Likewise.
52176         * modules/sysexits-tests: Likewise.
52177         * modules/time-tests: Likewise.
52178         * modules/trunc-tests: Likewise.
52179         * modules/truncf-tests: Likewise.
52180         * modules/truncl-tests: Likewise.
52181         * modules/tsearch-tests: Likewise.
52182         * modules/unistd-tests: Likewise.
52183         * modules/wchar-tests: Likewise.
52184         * modules/wctype-tests: Likewise.
52186         tests: fix license on several tests
52187         * tests/test-des.c: Update to GPLv3+.
52188         * tests/test-flock.c: Likewise.
52189         * tests/test-fsync.c: Likewise.
52190         * tests/test-futimens.h: Likewise.
52191         * tests/test-gc-arcfour.c: Likewise.
52192         * tests/test-gc-arctwo.c: Likewise.
52193         * tests/test-gc-des.c: Likewise.
52194         * tests/test-gc-hmac-md5.c: Likewise.
52195         * tests/test-gc-hmac-sha1.c: Likewise.
52196         * tests/test-gc-md2.c: Likewise.
52197         * tests/test-gc-md4.c: Likewise.
52198         * tests/test-gc-md5.c: Likewise.
52199         * tests/test-gc-pbkdf2-sha1.c: Likewise.
52200         * tests/test-gc-rijndael.c: Likewise.
52201         * tests/test-gc-sha1.c: Likewise.
52202         * tests/test-gc.c: Likewise.
52203         * tests/test-getcwd.c: Likewise.
52204         * tests/test-link.c: Likewise.
52205         * tests/test-link.h: Likewise.
52206         * tests/test-lutimens.h: Likewise.
52207         * tests/test-md2.c: Likewise.
52208         * tests/test-md4.c: Likewise.
52209         * tests/test-mkdir.h: Likewise.
52210         * tests/test-rename.c: Likewise.
52211         * tests/test-rename.h: Likewise.
52212         * tests/test-safe-alloc.c: Likewise.
52213         * tests/test-utimens-common.h: Likewise.
52214         * tests/test-utimens.h: Likewise.
52216         maint: sync license texts
52217         * config/srclist.txt: Add gpl-1.3.texi, lgpl-1.3.texi.
52218         * doc/gpl-3.0.texi: Revert copyright year update.
52219         * doc/lgpl-3.0.texi: Likewise.
52221 2009-12-29  Jim Meyering  <meyering@redhat.com>
52223         update nearly all FSF copyright year lists to include 2009
52224         The files named by the following are exempted:
52225             grep -v '^#' config/srclist.txt|grep -v '^$' | while read src dst; do
52226               test -f "$dst" && { echo "$dst"; continue; }
52227               test -d "$dst" || continue
52228               echo "$dst"/$(basename "$src")
52229             done > exempt
52230             git ls-files tests/unictype >> exempt
52231         In the remaining files, convert to all-interval notation if
52232         - there is already at least one year interval like 2000-2003
52233         - the file is maintained by me
52234         - the file is in lib/uni*/, where that style already prevails
52235         Otherwise, use update-copyright's default.
52237 2009-12-29  Simon Josefsson  <simon@josefsson.org>
52238         and Eric Blake  <ebb9@byu.net>
52240         tests: don't require debug system() to pass
52241         * tests/test-lstat.h (test_lstat_func): Move debug cleanup...
52242         * tests/test-rmdir.h (test_rmdir_func): Likewise.
52243         * tests/test-unlink.h (test_unlink_func): Likewise.
52244         * tests/test-fstatat.c (main): ...into callers.
52245         * tests/test-lstat.c (main): Likewise.
52246         * tests/test-rmdir.c (main): Likewise.
52247         * tests/test-unlink.c (main): Likewise.
52248         * tests/test-unlinkat.c (main): Likewise.
52249         * tests/test-areadlink-with-size.c (main): Don't require a
52250         debug-only system call to pass, aiding cross-testing to mingw.
52251         * tests/test-areadlink.c (main): Likewise.
52252         * tests/test-areadlinkat-with-size.c (main): Likewise.
52253         * tests/test-areadlinkat.c (main): Likewise.
52254         * tests/test-canonicalize-lgpl.c (main): Likewise.
52255         * tests/test-canonicalize.c (main): Likewise.
52256         * tests/test-chown.c (main): Likewise.
52257         * tests/test-fchownat.c (main): Likewise.
52258         * tests/test-lchown.c (main): Likewise.
52259         * tests/test-fdutimensat.c (main): Likewise.
52260         * tests/test-futimens.c (main): Likewise.
52261         * tests/test-link.c (main): Likewise.
52262         * tests/test-linkat.c (main): Likewise.
52263         * tests/test-mkdir.c (main): Likewise.
52264         * tests/test-mkdirat.c (main): Likewise.
52265         * tests/test-mkfifo.c (main): Likewise.
52266         * tests/test-mkfifoat.c (main): Likewise.
52267         * tests/test-mknod.c (main): Likewise.
52268         * tests/test-readlink.c (main): Likewise.
52269         * tests/test-remove.c (main): Likewise.
52270         * tests/test-rename.c (main): Likewise.
52271         * tests/test-renameat.c (main): Likewise.
52272         * tests/test-symlink.c (main): Likewise.
52273         * tests/test-symlinkat.c (main): Likewise.
52274         * tests/test-utimens.c (main): Likewise.
52275         * tests/test-utimensat.c (main): Likewise.
52277 2009-12-29  Simon Josefsson  <simon@josefsson.org>
52279         * modules/selinux-h (selinux/selinux.h, selinux/context.h): Depend
52280         on $(UNUSED_PARAMETER_H) to avoid build failure.
52282 2009-12-28  Jim Meyering  <meyering@redhat.com>
52284         update-copyright: you may specify a max. line length other than 72
52285         * build-aux/update-copyright: Honor $UPDATE_COPYRIGHT_MAX_LINE_LENGTH.
52287         maint: use consistent FSF copyright line syntax
52288         * lib/posixtm.c: Add missing comma in FSF copyright line.
52289         * lib/posixtm.h: Likewise.
52290         * lib/getugroups.c: Add missing ", Inc.".
52292         pmccabe2html: emit consistent FSF copyright; remove trailing blanks
52293         * build-aux/pmccabe2html: Insert comma before "Inc." in emitted
52294         FSF copyright line.  Remove trailing blanks.
52296 2009-12-28  Eric Blake  <ebb9@byu.net>
52298         test-dup2: reduce dependencies
52299         * modules/cloexec (Configure.ac): Set witness.
52300         * modules/dup2-tests (Depends-on): Drop cloexec.
52301         * tests/test-dup2.c (main): Skip portion of test if cloexec module
52302         not present.
52303         Suggested by Bruno Haible.
52305 2009-12-26  Bruno Haible  <bruno@clisp.org>
52307         Remove an unneeded dependency.
52308         * modules/fseterr (Depends-on): Remove dup2.
52310 2009-12-26  Eric Blake  <ebb9@byu.net>
52312         tests: use macros.h in more places
52313         * tests/macros.h (ASSERT): Depend on ASSERT_STREAM.
52314         (ASSERT_STREAM): Provide default of stderr.
52315         * tests/test-dirent-safer.c: Include macros.h, using alternate
52316         stream for assertions.
52317         * tests/test-dup-safer.c: Likewise.
52318         * tests/test-freopen-safer.c: Likewise.
52319         * tests/test-getopt.c: Likewise.
52320         * tests/test-openat-safer.c: Likewise.
52321         * tests/test-pipe.c: Likewise.
52322         * tests/test-popen-safer.c: Likewise.
52323         * modules/dirent-safer-tests (Files): Include macros.h.
52324         * modules/unistd-safer-tests (Files): Likewise.
52325         * modules/freopen-safer-tests (Files): Likewise.
52326         * modules/getopt-posix-tests (Files): Likewise.
52327         * modules/openat-safer-tests (Files): Likewise.
52328         * modules/pipe-tests (Files): Likewise.
52330 2009-12-26  Bruno Haible  <bruno@clisp.org>
52332         javacomp: Portability fix.
52333         * m4/javacomp.m4 (gt_JAVACOMP): Fix creation of conftestver.class so
52334         that it also works on Solaris.
52336 2009-12-26  Bruno Haible  <bruno@clisp.org>
52338         localename: Fix storage allocation of gl_locale_name_thread's result.
52339         * lib/localename.c (SIZE_BITS, string_hash, struct hash_node,
52340         HASH_TABLE_SIZE, struniq_hash_table, struniq_lock, struniq): Define on
52341         all platforms that have 'uselocale'.
52342         (gl_locale_name_thread_unsafe): New function, extracted from
52343         gl_locale_name_thread.
52344         (gl_locale_name_thread): Call struniq on all platforms that have
52345         'uselocale'.
52346         * tests/test-localename.c (test_locale_name_thread): Check that the
52347         resulting strings are permanently allocated.
52348         * modules/localename-tests (Depends-on): Add strdup.
52350 2009-12-26  Bruno Haible  <bruno@clisp.org>
52352         * tests/test-localename.c (categories): Fill in the strings.
52354 2009-12-26  Jim Meyering  <meyering@redhat.com>
52356         isdir: complete the removal of m4/isdir.m4
52357         * modules/isdir (configure.ac): Remove reference to gl_ISDIR.
52359         isdir: clean up, since at least grep still uses it
52360         * lib/isdir.c: Include "isdir.h".
52361         (S_ISDIR): Remove now-unneeded definition.
52362         * modules/isdir (Files): Add lib/isdir.h.
52363         * lib/isdir.h: New file, with declaration.
52364         * m4/isdir.m4: Remove file -- unneeded.
52366 2009-12-25  Bruno Haible  <bruno@clisp.org>
52368         selinux-h: Make generated .h files standalone.
52369         * lib/se-context.in.h: Arrange to include _GL_UNUSED_PARAMETER
52370         definition. Use _GL_UNUSED_PARAMETER instead of _GL_UNUSED.
52371         * lib/se-selinux.in.h: Likewise.
52372         * modules/selinux-h (Depends-on): Add unused-parameter.
52373         (Makefile.am): Insert definition of _GL_UNUSED_PARAMETER into
52374         selinux/selinux.h and selinux/context.h.
52375         Suggested by Eric Blake.
52377 2009-12-25  Bruno Haible  <bruno@clisp.org>
52379         Move gl_FCNTL_O_FLAGS to a separate .m4 file.
52380         * m4/fcntl-o.m4: New file, extracted from m4/fcntl_h.m4.
52381         * m4/fcntl_h.m4 (gl_FCNTL_O_FLAGS): Remove macro.
52382         * modules/fcntl-h (Files): Add m4/fcntl-o.m4.
52383         * modules/localcharset (Files): Likewise. Remove m4/fcntl_h.m4.
52385 2009-12-24  Bruno Haible  <bruno@clisp.org>
52387         openat: Fix warning.
52388         * lib/openat-proc.c: Include <unistd.h>.
52390 2009-12-24  Bruno Haible  <bruno@clisp.org>
52392         New module 'unused-parameter'.
52393         * build-aux/unused-parameter.h: New file, extracted from earlier
52394         gnulib-common.m4.
52395         * modules/unused-parameter: New file.
52396         * lib/unistr.h: Include unused-parameter.h.
52397         (u32_mbtouc_unsafe, u32_mbtouc): Use _GL_UNUSED_PARAMETER instead of
52398         _GL_UNUSED.
52399         * modules/unistr/base (Depends-on): Add unused-parameter.
52401 2009-12-24  Bruno Haible  <bruno@clisp.org>
52403         Add missing dependencies to 'extensions' module.
52404         * m4/extensions.m4: Add comment.
52405         * modules/accept4 (Depends-on): Add extensions.
52406         * modules/dup3 (Depends-on): Likewise.
52407         * modules/fcntl (Depends-on): Likewise.
52408         * modules/futimens (Depends-on): Likewise.
52409         * modules/mknod (Depends-on): Likewise.
52410         * modules/pipe2 (Depends-on): Likewise.
52411         * modules/stat-time (Depends-on): Likewise.
52412         * modules/strcasestr-simple (Depends-on): Likewise.
52413         * modules/strsignal (Depends-on): Likewise.
52414         * modules/utimensat (Depends-on): Likewise.
52415         * modules/localcharset (Depends-on): Likewise. Needed because of
52416         gl_FCNTL_O_FLAGS.
52417         * modules/wcrtomb (Depends-on): Likewise. Needed because of
52418         AC_TYPE_MBSTATE_T.
52419         * modules/wcsnrtombs (Depends-on): Likewise.
52420         * modules/wcsrtombs (Depends-on): Likewise.
52422 2009-12-24  Bruno Haible  <bruno@clisp.org>
52424         binary-io: Avoid gcc warning due to SET_BINARY.
52425         * lib/binary-io.h (SET_BINARY): Cast the result to void.
52426         Reported by Jim Meyering <jim@meyering.net>. Suggestion by Eric Blake.
52428 2009-12-24  Bruno Haible  <bruno@clisp.org>
52430         Avoid future namespace pollution on glibc systems.
52431         * lib/arpa_inet.in.h: Don't include <sys/socket.h> on glibc systems.
52432         * lib/sys_ioctl.in.h: Don't include <unistd.h> on glibc systems.
52433         * lib/sys_select.in.h: Don't include <sys/time.h> and <string.h> on
52434         glibc systems.
52436 2009-12-24  Bruno Haible  <bruno@clisp.org>
52438         Refactor common macros used in tests.
52439         * tests/macros.h: New file.
52440         * tests/test-areadlink.c: Include macros.h. Don't include <stdio.h>
52441         and/or <stdlib.h>, if appropriate.
52442         (ASSERT, SIZEOF): Remove macros.
52443         * tests/test-areadlink-with-size.c: Likewise.
52444         * tests/test-areadlinkat.c: Likewise.
52445         * tests/test-areadlinkat-with-size.c: Likewise.
52446         * tests/test-argmatch.c: Likewise.
52447         * tests/test-argv-iter.c: Likewise.
52448         * tests/test-array-mergesort.c: Likewise.
52449         * tests/test-array_list.c: Likewise.
52450         * tests/test-array_oset.c: Likewise.
52451         * tests/test-avltree_list.c: Likewise.
52452         * tests/test-avltree_oset.c: Likewise.
52453         * tests/test-avltreehash_list.c: Likewise.
52454         * tests/test-base64.c: Likewise.
52455         * tests/test-binary-io.c: Likewise.
52456         * tests/test-bitrotate.c: Likewise.
52457         * tests/test-btowc.c: Likewise.
52458         * tests/test-byteswap.c: Likewise.
52459         * tests/test-c-ctype.c: Likewise.
52460         * tests/test-c-stack.c: Likewise.
52461         * tests/test-c-strcasecmp.c: Likewise.
52462         * tests/test-c-strcasestr.c: Likewise.
52463         * tests/test-c-strncasecmp.c: Likewise.
52464         * tests/test-c-strstr.c: Likewise.
52465         * tests/test-canonicalize-lgpl.c: Likewise.
52466         * tests/test-canonicalize.c: Likewise.
52467         * tests/test-carray_list.c: Likewise.
52468         * tests/test-ceilf1.c: Likewise.
52469         * tests/test-ceilf2.c: Likewise.
52470         * tests/test-ceill.c: Likewise.
52471         * tests/test-chown.c: Likewise.
52472         * tests/test-cloexec.c: Likewise.
52473         * tests/test-copy-acl.c: Likewise.
52474         * tests/test-copy-file.c: Likewise.
52475         * tests/test-count-one-bits.c: Likewise.
52476         * tests/test-dprintf-posix.c: Likewise.
52477         * tests/test-dup2.c: Likewise.
52478         * tests/test-dup3.c: Likewise.
52479         * tests/test-duplocale.c: Likewise.
52480         * tests/test-fbufmode.c: Likewise.
52481         * tests/test-fchdir.c: Likewise.
52482         * tests/test-fchownat.c: Likewise.
52483         * tests/test-fcntl-safer.c: Likewise.
52484         * tests/test-fcntl.c: Likewise.
52485         * tests/test-fdopendir.c: Likewise.
52486         * tests/test-fdutimensat.c: Likewise.
52487         * tests/test-fflush2.c: Likewise.
52488         * tests/test-file-has-acl.c: Likewise.
52489         * tests/test-filevercmp.c: Likewise.
52490         * tests/test-flock.c: Likewise.
52491         * tests/test-floorf1.c: Likewise.
52492         * tests/test-floorf2.c: Likewise.
52493         * tests/test-floorl.c: Likewise.
52494         * tests/test-fnmatch.c: Likewise.
52495         * tests/test-fopen.h: Likewise.
52496         * tests/test-fpending.c: Likewise.
52497         * tests/test-fprintf-posix.c: Likewise.
52498         * tests/test-fpurge.c: Likewise.
52499         * tests/test-freadable.c: Likewise.
52500         * tests/test-freadahead.c: Likewise.
52501         * tests/test-freading.c: Likewise.
52502         * tests/test-freadptr.c: Likewise.
52503         * tests/test-freadptr2.c: Likewise.
52504         * tests/test-freadseek.c: Likewise.
52505         * tests/test-freopen.c: Likewise.
52506         * tests/test-frexp.c: Likewise.
52507         * tests/test-frexpl.c: Likewise.
52508         * tests/test-fseek.c: Likewise.
52509         * tests/test-fseeko.c: Likewise.
52510         * tests/test-fstatat.c: Likewise.
52511         * tests/test-fstrcmp.c: Likewise.
52512         * tests/test-fsync.c: Likewise.
52513         * tests/test-ftell.c: Likewise.
52514         * tests/test-ftello.c: Likewise.
52515         * tests/test-func.c: Likewise.
52516         * tests/test-futimens.c: Likewise.
52517         * tests/test-fwritable.c: Likewise.
52518         * tests/test-fwriting.c: Likewise.
52519         * tests/test-getcwd.c: Likewise.
52520         * tests/test-getdate.c: Likewise.
52521         * tests/test-getdelim.c: Likewise.
52522         * tests/test-getdtablesize.c: Likewise.
52523         * tests/test-getgroups.c: Likewise.
52524         * tests/test-getline.c: Likewise.
52525         * tests/test-getndelim2.c: Likewise.
52526         * tests/test-glob.c: Likewise.
52527         * tests/test-hash.c: Likewise.
52528         * tests/test-i-ring.c: Likewise.
52529         * tests/test-iconv-utf.c: Likewise.
52530         * tests/test-iconv.c: Likewise.
52531         * tests/test-idpriv-drop.c: Likewise.
52532         * tests/test-idpriv-droptemp.c: Likewise.
52533         * tests/test-inet_ntop.c: Likewise.
52534         * tests/test-inet_pton.c: Likewise.
52535         * tests/test-isblank.c: Likewise.
52536         * tests/test-isfinite.c: Likewise.
52537         * tests/test-isinf.c: Likewise.
52538         * tests/test-isnan.c: Likewise.
52539         * tests/test-isnand.h: Likewise.
52540         * tests/test-isnanf.h: Likewise.
52541         * tests/test-isnanl.h: Likewise.
52542         * tests/test-lchown.c: Likewise.
52543         * tests/test-ldexpl.c: Likewise.
52544         * tests/test-link.c: Likewise.
52545         * tests/test-linkat.c: Likewise.
52546         * tests/test-linked_list.c: Likewise.
52547         * tests/test-linkedhash_list.c: Likewise.
52548         * tests/test-localename.c: Likewise.
52549         * tests/test-lseek.c: Likewise.
52550         * tests/test-lstat.c: Likewise.
52551         * tests/test-mbmemcasecmp.c: Likewise.
52552         * tests/test-mbmemcasecoll.c: Likewise.
52553         * tests/test-mbrtowc.c: Likewise.
52554         * tests/test-mbscasecmp.c: Likewise.
52555         * tests/test-mbscasestr1.c: Likewise.
52556         * tests/test-mbscasestr2.c: Likewise.
52557         * tests/test-mbscasestr3.c: Likewise.
52558         * tests/test-mbscasestr4.c: Likewise.
52559         * tests/test-mbschr.c: Likewise.
52560         * tests/test-mbscspn.c: Likewise.
52561         * tests/test-mbsinit.c: Likewise.
52562         * tests/test-mbsncasecmp.c: Likewise.
52563         * tests/test-mbsnrtowcs.c: Likewise.
52564         * tests/test-mbspbrk.c: Likewise.
52565         * tests/test-mbspcasecmp.c: Likewise.
52566         * tests/test-mbsrchr.c: Likewise.
52567         * tests/test-mbsrtowcs.c: Likewise.
52568         * tests/test-mbsspn.c: Likewise.
52569         * tests/test-mbsstr1.c: Likewise.
52570         * tests/test-mbsstr2.c: Likewise.
52571         * tests/test-mbsstr3.c: Likewise.
52572         * tests/test-memchr.c: Likewise.
52573         * tests/test-memchr2.c: Likewise.
52574         * tests/test-memcmp.c: Likewise.
52575         * tests/test-memmem.c: Likewise.
52576         * tests/test-memrchr.c: Likewise.
52577         * tests/test-mkdir.c: Likewise.
52578         * tests/test-mkdirat.c: Likewise.
52579         * tests/test-mkfifo.c: Likewise.
52580         * tests/test-mkfifoat.c: Likewise.
52581         * tests/test-mknod.c: Likewise.
52582         * tests/test-nanosleep.c: Likewise.
52583         * tests/test-nl_langinfo.c: Likewise.
52584         * tests/test-obstack-printf.c: Likewise.
52585         * tests/test-open.c: Likewise.
52586         * tests/test-openat.c: Likewise.
52587         * tests/test-pipe-filter-gi1.c: Likewise.
52588         * tests/test-pipe-filter-gi2-main.c: Likewise.
52589         * tests/test-pipe-filter-ii1.c: Likewise.
52590         * tests/test-pipe-filter-ii2-main.c: Likewise.
52591         * tests/test-pipe2.c: Likewise.
52592         * tests/test-popen.h: Likewise.
52593         * tests/test-posixtm.c: Likewise.
52594         * tests/test-pread.c: Likewise.
52595         * tests/test-printf-frexp.c: Likewise.
52596         * tests/test-printf-frexpl.c: Likewise.
52597         * tests/test-printf-posix.c: Likewise.
52598         * tests/test-priv-set.c: Likewise.
52599         * tests/test-quotearg.c: Likewise.
52600         * tests/test-random_r.c: Likewise.
52601         * tests/test-rawmemchr.c: Likewise.
52602         * tests/test-rbtree_list.c: Likewise.
52603         * tests/test-rbtree_oset.c: Likewise.
52604         * tests/test-rbtreehash_list.c: Likewise.
52605         * tests/test-readlink.c: Likewise.
52606         * tests/test-remove.c: Likewise.
52607         * tests/test-rename.c: Likewise.
52608         * tests/test-renameat.c: Likewise.
52609         * tests/test-rmdir.c: Likewise.
52610         * tests/test-round1.c: Likewise.
52611         * tests/test-roundf1.c: Likewise.
52612         * tests/test-roundl.c: Likewise.
52613         * tests/test-safe-alloc.c: Likewise.
52614         * tests/test-sameacls.c: Likewise.
52615         * tests/test-set-mode-acl.c: Likewise.
52616         * tests/test-setenv.c: Likewise.
52617         * tests/test-sigaction.c: Likewise.
52618         * tests/test-signbit.c: Likewise.
52619         * tests/test-sleep.c: Likewise.
52620         * tests/test-snprintf-posix.c: Likewise.
52621         * tests/test-snprintf.c: Likewise.
52622         * tests/test-sprintf-posix.c: Likewise.
52623         * tests/test-stat-time.c: Likewise.
52624         * tests/test-stat.c: Likewise.
52625         * tests/test-strcasestr.c: Likewise.
52626         * tests/test-strchrnul.c: Likewise.
52627         * tests/test-strerror.c: Likewise.
52628         * tests/test-striconv.c: Likewise.
52629         * tests/test-striconveh.c: Likewise.
52630         * tests/test-striconveha.c: Likewise.
52631         * tests/test-strsignal.c: Likewise.
52632         * tests/test-strstr.c: Likewise.
52633         * tests/test-strtod.c: Likewise.
52634         * tests/test-strverscmp.c: Likewise.
52635         * tests/test-symlink.c: Likewise.
52636         * tests/test-symlinkat.c: Likewise.
52637         * tests/test-trunc1.c: Likewise.
52638         * tests/test-trunc2.c: Likewise.
52639         * tests/test-truncf1.c: Likewise.
52640         * tests/test-truncf2.c: Likewise.
52641         * tests/test-truncl.c: Likewise.
52642         * tests/test-uname.c: Likewise.
52643         * tests/test-unlink.c: Likewise.
52644         * tests/test-unlinkat.c: Likewise.
52645         * tests/test-unsetenv.c: Likewise.
52646         * tests/test-usleep.c: Likewise.
52647         * tests/test-utimens.c: Likewise.
52648         * tests/test-utimensat.c: Likewise.
52649         * tests/test-vasnprintf-posix.c: Likewise.
52650         * tests/test-vasnprintf-posix2.c: Likewise.
52651         * tests/test-vasnprintf.c: Likewise.
52652         * tests/test-vasprintf-posix.c: Likewise.
52653         * tests/test-vasprintf.c: Likewise.
52654         * tests/test-vdprintf-posix.c: Likewise.
52655         * tests/test-vfprintf-posix.c: Likewise.
52656         * tests/test-vprintf-posix.c: Likewise.
52657         * tests/test-vsnprintf-posix.c: Likewise.
52658         * tests/test-vsnprintf.c: Likewise.
52659         * tests/test-vsprintf-posix.c: Likewise.
52660         * tests/test-wcrtomb.c: Likewise.
52661         * tests/test-wcsnrtombs.c: Likewise.
52662         * tests/test-wcsrtombs.c: Likewise.
52663         * tests/test-wctype.c: Likewise.
52664         * tests/test-wcwidth.c: Likewise.
52665         * tests/test-xfprintf-posix.c: Likewise.
52666         * tests/test-xmemdup0.c: Likewise.
52667         * tests/test-xprintf-posix.c: Likewise.
52668         * tests/test-xvasprintf.c: Likewise.
52669         * tests/unicase/test-locale-language.c: Likewise.
52670         * tests/unicase/test-mapping-part1.h: Likewise.
52671         * tests/unicase/test-predicate-part1.h: Likewise.
52672         * tests/unicase/test-u8-casecmp.c: Likewise.
52673         * tests/unicase/test-u8-casecoll.c: Likewise.
52674         * tests/unicase/test-u8-casefold.c: Likewise.
52675         * tests/unicase/test-u8-is-cased.c: Likewise.
52676         * tests/unicase/test-u8-is-casefolded.c: Likewise.
52677         * tests/unicase/test-u8-is-lowercase.c: Likewise.
52678         * tests/unicase/test-u8-is-titlecase.c: Likewise.
52679         * tests/unicase/test-u8-is-uppercase.c: Likewise.
52680         * tests/unicase/test-u8-tolower.c: Likewise.
52681         * tests/unicase/test-u8-totitle.c: Likewise.
52682         * tests/unicase/test-u8-toupper.c: Likewise.
52683         * tests/unicase/test-u16-casecmp.c: Likewise.
52684         * tests/unicase/test-u16-casecoll.c: Likewise.
52685         * tests/unicase/test-u16-casefold.c: Likewise.
52686         * tests/unicase/test-u16-is-cased.c: Likewise.
52687         * tests/unicase/test-u16-is-casefolded.c: Likewise.
52688         * tests/unicase/test-u16-is-lowercase.c: Likewise.
52689         * tests/unicase/test-u16-is-titlecase.c: Likewise.
52690         * tests/unicase/test-u16-is-uppercase.c: Likewise.
52691         * tests/unicase/test-u16-tolower.c: Likewise.
52692         * tests/unicase/test-u16-totitle.c: Likewise.
52693         * tests/unicase/test-u16-toupper.c: Likewise.
52694         * tests/unicase/test-u32-casecmp.c: Likewise.
52695         * tests/unicase/test-u32-casecoll.c: Likewise.
52696         * tests/unicase/test-u32-casefold.c: Likewise.
52697         * tests/unicase/test-u32-is-cased.c: Likewise.
52698         * tests/unicase/test-u32-is-casefolded.c: Likewise.
52699         * tests/unicase/test-u32-is-lowercase.c: Likewise.
52700         * tests/unicase/test-u32-is-titlecase.c: Likewise.
52701         * tests/unicase/test-u32-is-uppercase.c: Likewise.
52702         * tests/unicase/test-u32-tolower.c: Likewise.
52703         * tests/unicase/test-u32-totitle.c: Likewise.
52704         * tests/unicase/test-u32-toupper.c: Likewise.
52705         * tests/unicase/test-ulc-casecmp.c: Likewise.
52706         * tests/unicase/test-ulc-casecoll.c: Likewise.
52707         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
52708         * tests/uniconv/test-u8-conv-to-enc.c: Likewise.
52709         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
52710         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
52711         * tests/uniconv/test-u16-conv-from-enc.c: Likewise.
52712         * tests/uniconv/test-u16-conv-to-enc.c: Likewise.
52713         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
52714         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
52715         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
52716         * tests/uniconv/test-u32-conv-to-enc.c: Likewise.
52717         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
52718         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
52719         * tests/unictype/test-bidi_byname.c: Likewise.
52720         * tests/unictype/test-bidi_name.c: Likewise.
52721         * tests/unictype/test-bidi_of.c: Likewise.
52722         * tests/unictype/test-bidi_test.c: Likewise.
52723         * tests/unictype/test-block_list.c: Likewise.
52724         * tests/unictype/test-block_of.c: Likewise.
52725         * tests/unictype/test-block_test.c: Likewise.
52726         * tests/unictype/test-categ_and.c: Likewise.
52727         * tests/unictype/test-categ_and_not.c: Likewise.
52728         * tests/unictype/test-categ_byname.c: Likewise.
52729         * tests/unictype/test-categ_name.c: Likewise.
52730         * tests/unictype/test-categ_none.c: Likewise.
52731         * tests/unictype/test-categ_of.c: Likewise.
52732         * tests/unictype/test-categ_or.c: Likewise.
52733         * tests/unictype/test-categ_test_withtable.c: Likewise.
52734         * tests/unictype/test-combining.c: Likewise.
52735         * tests/unictype/test-decdigit.c: Likewise.
52736         * tests/unictype/test-digit.c: Likewise.
52737         * tests/unictype/test-mirror.c: Likewise.
52738         * tests/unictype/test-numeric.c: Likewise.
52739         * tests/unictype/test-pr_byname.c: Likewise.
52740         * tests/unictype/test-pr_test.c: Likewise.
52741         * tests/unictype/test-predicate-part1.h: Likewise.
52742         * tests/unictype/test-scripts.c: Likewise.
52743         * tests/unictype/test-sy_c_ident.c: Likewise.
52744         * tests/unictype/test-sy_java_ident.c: Likewise.
52745         * tests/unilbrk/test-u8-possible-linebreaks.c: Likewise.
52746         * tests/unilbrk/test-u8-width-linebreaks.c: Likewise.
52747         * tests/unilbrk/test-u16-possible-linebreaks.c: Likewise.
52748         * tests/unilbrk/test-u16-width-linebreaks.c: Likewise.
52749         * tests/unilbrk/test-u32-possible-linebreaks.c: Likewise.
52750         * tests/unilbrk/test-u32-width-linebreaks.c: Likewise.
52751         * tests/unilbrk/test-ulc-possible-linebreaks.c: Likewise.
52752         * tests/unilbrk/test-ulc-width-linebreaks.c: Likewise.
52753         * tests/uninorm/test-canonical-decomposition.c: Likewise.
52754         * tests/uninorm/test-compat-decomposition.c: Likewise.
52755         * tests/uninorm/test-composition.c: Likewise.
52756         * tests/uninorm/test-decomposing-form.c: Likewise.
52757         * tests/uninorm/test-decomposition.c: Likewise.
52758         * tests/uninorm/test-u8-nfc.c: Likewise.
52759         * tests/uninorm/test-u8-nfd.c: Likewise.
52760         * tests/uninorm/test-u8-nfkc.c: Likewise.
52761         * tests/uninorm/test-u8-nfkd.c: Likewise.
52762         * tests/uninorm/test-u8-normcmp.c: Likewise.
52763         * tests/uninorm/test-u8-normcoll.c: Likewise.
52764         * tests/uninorm/test-u16-nfc.c: Likewise.
52765         * tests/uninorm/test-u16-nfd.c: Likewise.
52766         * tests/uninorm/test-u16-nfkc.c: Likewise.
52767         * tests/uninorm/test-u16-nfkd.c: Likewise.
52768         * tests/uninorm/test-u16-normcmp.c: Likewise.
52769         * tests/uninorm/test-u16-normcoll.c: Likewise.
52770         * tests/uninorm/test-u32-nfc.c: Likewise.
52771         * tests/uninorm/test-u32-nfd.c: Likewise.
52772         * tests/uninorm/test-u32-nfkc.c: Likewise.
52773         * tests/uninorm/test-u32-nfkd.c: Likewise.
52774         * tests/uninorm/test-u32-normalize-big.c: Likewise.
52775         * tests/uninorm/test-u32-normcmp.c: Likewise.
52776         * tests/uninorm/test-u32-normcoll.c: Likewise.
52777         * tests/uninorm/test-uninorm-filter-nfc.c: Likewise.
52778         * tests/unistdio/test-u8-asnprintf1.c: Likewise.
52779         * tests/unistdio/test-u8-vasnprintf1.c: Likewise.
52780         * tests/unistdio/test-u8-vasnprintf2.c: Likewise.
52781         * tests/unistdio/test-u8-vasnprintf3.c: Likewise.
52782         * tests/unistdio/test-u8-vasprintf1.c: Likewise.
52783         * tests/unistdio/test-u8-vsnprintf1.c: Likewise.
52784         * tests/unistdio/test-u8-vsprintf1.c: Likewise.
52785         * tests/unistdio/test-u16-asnprintf1.c: Likewise.
52786         * tests/unistdio/test-u16-vasnprintf1.c: Likewise.
52787         * tests/unistdio/test-u16-vasnprintf2.c: Likewise.
52788         * tests/unistdio/test-u16-vasnprintf3.c: Likewise.
52789         * tests/unistdio/test-u16-vasprintf1.c: Likewise.
52790         * tests/unistdio/test-u16-vsnprintf1.c: Likewise.
52791         * tests/unistdio/test-u16-vsprintf1.c: Likewise.
52792         * tests/unistdio/test-u32-asnprintf1.c: Likewise.
52793         * tests/unistdio/test-u32-vasnprintf1.c: Likewise.
52794         * tests/unistdio/test-u32-vasnprintf2.c: Likewise.
52795         * tests/unistdio/test-u32-vasnprintf3.c: Likewise.
52796         * tests/unistdio/test-u32-vasprintf1.c: Likewise.
52797         * tests/unistdio/test-u32-vsnprintf1.c: Likewise.
52798         * tests/unistdio/test-u32-vsprintf1.c: Likewise.
52799         * tests/unistdio/test-ulc-asnprintf1.c: Likewise.
52800         * tests/unistdio/test-ulc-vasnprintf1.c: Likewise.
52801         * tests/unistdio/test-ulc-vasnprintf2.c: Likewise.
52802         * tests/unistdio/test-ulc-vasnprintf3.c: Likewise.
52803         * tests/unistdio/test-ulc-vasprintf1.c: Likewise.
52804         * tests/unistdio/test-ulc-vsnprintf1.c: Likewise.
52805         * tests/unistdio/test-ulc-vsprintf1.c: Likewise.
52806         * tests/uniwbrk/test-u8-wordbreaks.c: Likewise.
52807         * tests/uniwbrk/test-u16-wordbreaks.c: Likewise.
52808         * tests/uniwbrk/test-u32-wordbreaks.c: Likewise.
52809         * tests/uniwbrk/test-ulc-wordbreaks.c: Likewise.
52810         * tests/uniwidth/test-u8-strwidth.c: Likewise.
52811         * tests/uniwidth/test-u8-width.c: Likewise.
52812         * tests/uniwidth/test-u16-strwidth.c: Likewise.
52813         * tests/uniwidth/test-u16-width.c: Likewise.
52814         * tests/uniwidth/test-u32-strwidth.c: Likewise.
52815         * tests/uniwidth/test-u32-width.c: Likewise.
52816         * tests/uniwidth/test-uc_width.c: Likewise.
52817         * tests/uniwidth/test-uc_width2.c: Likewise.
52818         * modules/acl-tests (Files): Add tests/macros.h.
52819         * modules/areadlink-tests (Files): Likewise.
52820         * modules/areadlink-with-size-tests (Files): Likewise.
52821         * modules/areadlinkat-tests (Files): Likewise.
52822         * modules/areadlinkat-with-size-tests (Files): Likewise.
52823         * modules/argmatch-tests (Files): Likewise.
52824         * modules/argv-iter-tests (Files): Likewise.
52825         * modules/array-list-tests (Files): Likewise.
52826         * modules/array-mergesort-tests (Files): Likewise.
52827         * modules/array-oset-tests (Files): Likewise.
52828         * modules/avltree-list-tests (Files): Likewise.
52829         * modules/avltree-oset-tests (Files): Likewise.
52830         * modules/avltreehash-list-tests (Files): Likewise.
52831         * modules/base64-tests (Files): Likewise.
52832         * modules/binary-io-tests (Files): Likewise.
52833         * modules/bitrotate-tests (Files): Likewise.
52834         * modules/btowc-tests (Files): Likewise.
52835         * modules/byteswap-tests (Files): Likewise.
52836         * modules/c-ctype-tests (Files): Likewise.
52837         * modules/c-stack-tests (Files): Likewise.
52838         * modules/c-strcase-tests (Files): Likewise.
52839         * modules/c-strcasestr-tests (Files): Likewise.
52840         * modules/c-strstr-tests (Files): Likewise.
52841         * modules/canonicalize-lgpl-tests (Files): Likewise.
52842         * modules/canonicalize-tests (Files): Likewise.
52843         * modules/carray-list-tests (Files): Likewise.
52844         * modules/ceilf-tests (Files): Likewise.
52845         * modules/ceill-tests (Files): Likewise.
52846         * modules/chown-tests (Files): Likewise.
52847         * modules/cloexec-tests (Files): Likewise.
52848         * modules/copy-file-tests (Files): Likewise.
52849         * modules/count-one-bits-tests (Files): Likewise.
52850         * modules/dprintf-posix-tests (Files): Likewise.
52851         * modules/dup2-tests (Files): Likewise.
52852         * modules/dup3-tests (Files): Likewise.
52853         * modules/duplocale-tests (Files): Likewise.
52854         * modules/fbufmode-tests (Files): Likewise.
52855         * modules/fchdir-tests (Files): Likewise.
52856         * modules/fcntl-safer-tests (Files): Likewise.
52857         * modules/fcntl-tests (Files): Likewise.
52858         * modules/fdopendir-tests (Files): Likewise.
52859         * modules/fdutimensat-tests (Files): Likewise.
52860         * modules/fflush-tests (Files): Likewise.
52861         * modules/filevercmp-tests (Files): Likewise.
52862         * modules/flock-tests (Files): Likewise.
52863         * modules/floorf-tests (Files): Likewise.
52864         * modules/floorl-tests (Files): Likewise.
52865         * modules/fnmatch-tests (Files): Likewise.
52866         * modules/fopen-safer-tests (Files): Likewise.
52867         * modules/fopen-tests (Files): Likewise.
52868         * modules/fpending-tests (Files): Likewise.
52869         * modules/fprintf-posix-tests (Files): Likewise.
52870         * modules/fpurge-tests (Files): Likewise.
52871         * modules/freadable-tests (Files): Likewise.
52872         * modules/freadahead-tests (Files): Likewise.
52873         * modules/freading-tests (Files): Likewise.
52874         * modules/freadptr-tests (Files): Likewise.
52875         * modules/freadseek-tests (Files): Likewise.
52876         * modules/freopen-tests (Files): Likewise.
52877         * modules/frexp-nolibm-tests (Files): Likewise.
52878         * modules/frexp-tests (Files): Likewise.
52879         * modules/frexpl-nolibm-tests (Files): Likewise.
52880         * modules/frexpl-tests (Files): Likewise.
52881         * modules/fseek-tests (Files): Likewise.
52882         * modules/fseeko-tests (Files): Likewise.
52883         * modules/fstrcmp-tests (Files): Likewise.
52884         * modules/fsync-tests (Files): Likewise.
52885         * modules/ftell-tests (Files): Likewise.
52886         * modules/ftello-tests (Files): Likewise.
52887         * modules/func-tests (Files): Likewise.
52888         * modules/futimens-tests (Files): Likewise.
52889         * modules/fwritable-tests (Files): Likewise.
52890         * modules/fwriting-tests (Files): Likewise.
52891         * modules/getcwd-tests (Files): Likewise.
52892         * modules/getdate-tests (Files): Likewise.
52893         * modules/getdelim-tests (Files): Likewise.
52894         * modules/getdtablesize-tests (Files): Likewise.
52895         * modules/getgroups-tests (Files): Likewise.
52896         * modules/getline-tests (Files): Likewise.
52897         * modules/getndelim2-tests (Files): Likewise.
52898         * modules/glob-tests (Files): Likewise.
52899         * modules/hash-tests (Files): Likewise.
52900         * modules/i-ring-tests (Files): Likewise.
52901         * modules/iconv-tests (Files): Likewise.
52902         * modules/iconv_open-utf-tests (Files): Likewise.
52903         * modules/idpriv-drop-tests (Files): Likewise.
52904         * modules/idpriv-droptemp-tests (Files): Likewise.
52905         * modules/inet_ntop-tests (Files): Likewise.
52906         * modules/inet_pton-tests (Files): Likewise.
52907         * modules/isblank-tests (Files): Likewise.
52908         * modules/isfinite-tests (Files): Likewise.
52909         * modules/isinf-tests (Files): Likewise.
52910         * modules/isnan-tests (Files): Likewise.
52911         * modules/isnand-nolibm-tests (Files): Likewise.
52912         * modules/isnand-tests (Files): Likewise.
52913         * modules/isnanf-nolibm-tests (Files): Likewise.
52914         * modules/isnanf-tests (Files): Likewise.
52915         * modules/isnanl-nolibm-tests (Files): Likewise.
52916         * modules/isnanl-tests (Files): Likewise.
52917         * modules/lchown-tests (Files): Likewise.
52918         * modules/ldexpl-tests (Files): Likewise.
52919         * modules/link-tests (Files): Likewise.
52920         * modules/linkat-tests (Files): Likewise.
52921         * modules/linked-list-tests (Files): Likewise.
52922         * modules/linkedhash-list-tests (Files): Likewise.
52923         * modules/localename-tests (Files): Likewise.
52924         * modules/lseek-tests (Files): Likewise.
52925         * modules/lstat-tests (Files): Likewise.
52926         * modules/mbmemcasecmp-tests (Files): Likewise.
52927         * modules/mbmemcasecoll-tests (Files): Likewise.
52928         * modules/mbrtowc-tests (Files): Likewise.
52929         * modules/mbscasecmp-tests (Files): Likewise.
52930         * modules/mbscasestr-tests (Files): Likewise.
52931         * modules/mbschr-tests (Files): Likewise.
52932         * modules/mbscspn-tests (Files): Likewise.
52933         * modules/mbsinit-tests (Files): Likewise.
52934         * modules/mbsncasecmp-tests (Files): Likewise.
52935         * modules/mbsnrtowcs-tests (Files): Likewise.
52936         * modules/mbspbrk-tests (Files): Likewise.
52937         * modules/mbspcasecmp-tests (Files): Likewise.
52938         * modules/mbsrchr-tests (Files): Likewise.
52939         * modules/mbsrtowcs-tests (Files): Likewise.
52940         * modules/mbsspn-tests (Files): Likewise.
52941         * modules/mbsstr-tests (Files): Likewise.
52942         * modules/memchr-tests (Files): Likewise.
52943         * modules/memchr2-tests (Files): Likewise.
52944         * modules/memcmp-tests (Files): Likewise.
52945         * modules/memmem-tests (Files): Likewise.
52946         * modules/memrchr-tests (Files): Likewise.
52947         * modules/mkdir-tests (Files): Likewise.
52948         * modules/mkfifo-tests (Files): Likewise.
52949         * modules/mkfifoat-tests (Files): Likewise.
52950         * modules/mknod-tests (Files): Likewise.
52951         * modules/nanosleep-tests (Files): Likewise.
52952         * modules/nl_langinfo-tests (Files): Likewise.
52953         * modules/obstack-printf-tests (Files): Likewise.
52954         * modules/open-tests (Files): Likewise.
52955         * modules/openat-tests (Files): Likewise.
52956         * modules/pipe-filter-gi-tests (Files): Likewise.
52957         * modules/pipe-filter-ii-tests (Files): Likewise.
52958         * modules/pipe2-tests (Files): Likewise.
52959         * modules/popen-safer-tests (Files): Likewise.
52960         * modules/popen-tests (Files): Likewise.
52961         * modules/posixtm-tests (Files): Likewise.
52962         * modules/pread-tests (Files): Likewise.
52963         * modules/printf-frexp-tests (Files): Likewise.
52964         * modules/printf-frexpl-tests (Files): Likewise.
52965         * modules/printf-posix-tests (Files): Likewise.
52966         * modules/priv-set-tests (Files): Likewise.
52967         * modules/quotearg-tests (Files): Likewise.
52968         * modules/random_r-tests (Files): Likewise.
52969         * modules/rawmemchr-tests (Files): Likewise.
52970         * modules/rbtree-list-tests (Files): Likewise.
52971         * modules/rbtree-oset-tests (Files): Likewise.
52972         * modules/rbtreehash-list-tests (Files): Likewise.
52973         * modules/readlink-tests (Files): Likewise.
52974         * modules/remove-tests (Files): Likewise.
52975         * modules/rename-tests (Files): Likewise.
52976         * modules/renameat-tests (Files): Likewise.
52977         * modules/rmdir-tests (Files): Likewise.
52978         * modules/round-tests (Files): Likewise.
52979         * modules/roundf-tests (Files): Likewise.
52980         * modules/roundl-tests (Files): Likewise.
52981         * modules/safe-alloc-tests (Files): Likewise.
52982         * modules/setenv-tests (Files): Likewise.
52983         * modules/sigaction-tests (Files): Likewise.
52984         * modules/signbit-tests (Files): Likewise.
52985         * modules/sleep-tests (Files): Likewise.
52986         * modules/snprintf-posix-tests (Files): Likewise.
52987         * modules/snprintf-tests (Files): Likewise.
52988         * modules/sprintf-posix-tests (Files): Likewise.
52989         * modules/stat-tests (Files): Likewise.
52990         * modules/stat-time-tests (Files): Likewise.
52991         * modules/strcasestr-tests (Files): Likewise.
52992         * modules/strchrnul-tests (Files): Likewise.
52993         * modules/strerror-tests (Files): Likewise.
52994         * modules/striconv-tests (Files): Likewise.
52995         * modules/striconveh-tests (Files): Likewise.
52996         * modules/striconveha-tests (Files): Likewise.
52997         * modules/strsignal-tests (Files): Likewise.
52998         * modules/strstr-tests (Files): Likewise.
52999         * modules/strtod-tests (Files): Likewise.
53000         * modules/strverscmp-tests (Files): Likewise.
53001         * modules/symlink-tests (Files): Likewise.
53002         * modules/symlinkat-tests (Files): Likewise.
53003         * modules/trunc-tests (Files): Likewise.
53004         * modules/truncf-tests (Files): Likewise.
53005         * modules/truncl-tests (Files): Likewise.
53006         * modules/uname-tests (Files): Likewise.
53007         * modules/unicase/cased-tests (Files): Likewise.
53008         * modules/unicase/ignorable-tests (Files): Likewise.
53009         * modules/unicase/locale-language-tests (Files): Likewise.
53010         * modules/unicase/tolower-tests (Files): Likewise.
53011         * modules/unicase/totitle-tests (Files): Likewise.
53012         * modules/unicase/toupper-tests (Files): Likewise.
53013         * modules/unicase/u8-casecmp-tests (Files): Likewise.
53014         * modules/unicase/u8-casecoll-tests (Files): Likewise.
53015         * modules/unicase/u8-casefold-tests (Files): Likewise.
53016         * modules/unicase/u8-is-cased-tests (Files): Likewise.
53017         * modules/unicase/u8-is-casefolded-tests (Files): Likewise.
53018         * modules/unicase/u8-is-lowercase-tests (Files): Likewise.
53019         * modules/unicase/u8-is-titlecase-tests (Files): Likewise.
53020         * modules/unicase/u8-is-uppercase-tests (Files): Likewise.
53021         * modules/unicase/u8-tolower-tests (Files): Likewise.
53022         * modules/unicase/u8-totitle-tests (Files): Likewise.
53023         * modules/unicase/u8-toupper-tests (Files): Likewise.
53024         * modules/unicase/u16-casecmp-tests (Files): Likewise.
53025         * modules/unicase/u16-casecoll-tests (Files): Likewise.
53026         * modules/unicase/u16-casefold-tests (Files): Likewise.
53027         * modules/unicase/u16-is-cased-tests (Files): Likewise.
53028         * modules/unicase/u16-is-casefolded-tests (Files): Likewise.
53029         * modules/unicase/u16-is-lowercase-tests (Files): Likewise.
53030         * modules/unicase/u16-is-titlecase-tests (Files): Likewise.
53031         * modules/unicase/u16-is-uppercase-tests (Files): Likewise.
53032         * modules/unicase/u16-tolower-tests (Files): Likewise.
53033         * modules/unicase/u16-totitle-tests (Files): Likewise.
53034         * modules/unicase/u16-toupper-tests (Files): Likewise.
53035         * modules/unicase/u32-casecmp-tests (Files): Likewise.
53036         * modules/unicase/u32-casecoll-tests (Files): Likewise.
53037         * modules/unicase/u32-casefold-tests (Files): Likewise.
53038         * modules/unicase/u32-is-cased-tests (Files): Likewise.
53039         * modules/unicase/u32-is-casefolded-tests (Files): Likewise.
53040         * modules/unicase/u32-is-lowercase-tests (Files): Likewise.
53041         * modules/unicase/u32-is-titlecase-tests (Files): Likewise.
53042         * modules/unicase/u32-is-uppercase-tests (Files): Likewise.
53043         * modules/unicase/u32-tolower-tests (Files): Likewise.
53044         * modules/unicase/u32-totitle-tests (Files): Likewise.
53045         * modules/unicase/u32-toupper-tests (Files): Likewise.
53046         * modules/unicase/ulc-casecmp-tests (Files): Likewise.
53047         * modules/unicase/ulc-casecoll-tests (Files): Likewise.
53048         * modules/uniconv/u8-conv-from-enc-tests (Files): Likewise.
53049         * modules/uniconv/u8-conv-to-enc-tests (Files): Likewise.
53050         * modules/uniconv/u8-strconv-from-enc-tests (Files): Likewise.
53051         * modules/uniconv/u8-strconv-to-enc-tests (Files): Likewise.
53052         * modules/uniconv/u16-conv-from-enc-tests (Files): Likewise.
53053         * modules/uniconv/u16-conv-to-enc-tests (Files): Likewise.
53054         * modules/uniconv/u16-strconv-from-enc-tests (Files): Likewise.
53055         * modules/uniconv/u16-strconv-to-enc-tests (Files): Likewise.
53056         * modules/uniconv/u32-conv-from-enc-tests (Files): Likewise.
53057         * modules/uniconv/u32-conv-to-enc-tests (Files): Likewise.
53058         * modules/uniconv/u32-strconv-from-enc-tests (Files): Likewise.
53059         * modules/uniconv/u32-strconv-to-enc-tests (Files): Likewise.
53060         * modules/unictype/bidicategory-byname-tests (Files): Likewise.
53061         * modules/unictype/bidicategory-name-tests (Files): Likewise.
53062         * modules/unictype/bidicategory-of-tests (Files): Likewise.
53063         * modules/unictype/bidicategory-test-tests (Files): Likewise.
53064         * modules/unictype/block-list-tests (Files): Likewise.
53065         * modules/unictype/block-of-tests (Files): Likewise.
53066         * modules/unictype/block-test-tests (Files): Likewise.
53067         * modules/unictype/category-C-tests (Files): Likewise.
53068         * modules/unictype/category-Cc-tests (Files): Likewise.
53069         * modules/unictype/category-Cf-tests (Files): Likewise.
53070         * modules/unictype/category-Cn-tests (Files): Likewise.
53071         * modules/unictype/category-Co-tests (Files): Likewise.
53072         * modules/unictype/category-Cs-tests (Files): Likewise.
53073         * modules/unictype/category-L-tests (Files): Likewise.
53074         * modules/unictype/category-Ll-tests (Files): Likewise.
53075         * modules/unictype/category-Lm-tests (Files): Likewise.
53076         * modules/unictype/category-Lo-tests (Files): Likewise.
53077         * modules/unictype/category-Lt-tests (Files): Likewise.
53078         * modules/unictype/category-Lu-tests (Files): Likewise.
53079         * modules/unictype/category-M-tests (Files): Likewise.
53080         * modules/unictype/category-Mc-tests (Files): Likewise.
53081         * modules/unictype/category-Me-tests (Files): Likewise.
53082         * modules/unictype/category-Mn-tests (Files): Likewise.
53083         * modules/unictype/category-N-tests (Files): Likewise.
53084         * modules/unictype/category-Nd-tests (Files): Likewise.
53085         * modules/unictype/category-Nl-tests (Files): Likewise.
53086         * modules/unictype/category-No-tests (Files): Likewise.
53087         * modules/unictype/category-P-tests (Files): Likewise.
53088         * modules/unictype/category-Pc-tests (Files): Likewise.
53089         * modules/unictype/category-Pd-tests (Files): Likewise.
53090         * modules/unictype/category-Pe-tests (Files): Likewise.
53091         * modules/unictype/category-Pf-tests (Files): Likewise.
53092         * modules/unictype/category-Pi-tests (Files): Likewise.
53093         * modules/unictype/category-Po-tests (Files): Likewise.
53094         * modules/unictype/category-Ps-tests (Files): Likewise.
53095         * modules/unictype/category-S-tests (Files): Likewise.
53096         * modules/unictype/category-Sc-tests (Files): Likewise.
53097         * modules/unictype/category-Sk-tests (Files): Likewise.
53098         * modules/unictype/category-Sm-tests (Files): Likewise.
53099         * modules/unictype/category-So-tests (Files): Likewise.
53100         * modules/unictype/category-Z-tests (Files): Likewise.
53101         * modules/unictype/category-Zl-tests (Files): Likewise.
53102         * modules/unictype/category-Zp-tests (Files): Likewise.
53103         * modules/unictype/category-Zs-tests (Files): Likewise.
53104         * modules/unictype/category-and-not-tests (Files): Likewise.
53105         * modules/unictype/category-and-tests (Files): Likewise.
53106         * modules/unictype/category-byname-tests (Files): Likewise.
53107         * modules/unictype/category-name-tests (Files): Likewise.
53108         * modules/unictype/category-none-tests (Files): Likewise.
53109         * modules/unictype/category-of-tests (Files): Likewise.
53110         * modules/unictype/category-or-tests (Files): Likewise.
53111         * modules/unictype/category-test-withtable-tests (Files): Likewise.
53112         * modules/unictype/combining-class-tests (Files): Likewise.
53113         * modules/unictype/ctype-alnum-tests (Files): Likewise.
53114         * modules/unictype/ctype-alpha-tests (Files): Likewise.
53115         * modules/unictype/ctype-blank-tests (Files): Likewise.
53116         * modules/unictype/ctype-cntrl-tests (Files): Likewise.
53117         * modules/unictype/ctype-digit-tests (Files): Likewise.
53118         * modules/unictype/ctype-graph-tests (Files): Likewise.
53119         * modules/unictype/ctype-lower-tests (Files): Likewise.
53120         * modules/unictype/ctype-print-tests (Files): Likewise.
53121         * modules/unictype/ctype-punct-tests (Files): Likewise.
53122         * modules/unictype/ctype-space-tests (Files): Likewise.
53123         * modules/unictype/ctype-upper-tests (Files): Likewise.
53124         * modules/unictype/ctype-xdigit-tests (Files): Likewise.
53125         * modules/unictype/decimal-digit-tests (Files): Likewise.
53126         * modules/unictype/digit-tests (Files): Likewise.
53127         * modules/unictype/mirror-tests (Files): Likewise.
53128         * modules/unictype/numeric-tests (Files): Likewise.
53129         * modules/unictype/property-alphabetic-tests (Files): Likewise.
53130         * modules/unictype/property-ascii-hex-digit-tests (Files): Likewise.
53131         * modules/unictype/property-bidi-arabic-digit-tests (Files): Likewise.
53132         * modules/unictype/property-bidi-arabic-right-to-left-tests (Files):
53133         Likewise.
53134         * modules/unictype/property-bidi-block-separator-tests (Files):
53135         Likewise.
53136         * modules/unictype/property-bidi-boundary-neutral-tests (Files):
53137         Likewise.
53138         * modules/unictype/property-bidi-common-separator-tests (Files):
53139         Likewise.
53140         * modules/unictype/property-bidi-control-tests (Files): Likewise.
53141         * modules/unictype/property-bidi-embedding-or-override-tests (Files):
53142         Likewise.
53143         * modules/unictype/property-bidi-eur-num-separator-tests (Files):
53144         Likewise.
53145         * modules/unictype/property-bidi-eur-num-terminator-tests (Files):
53146         Likewise.
53147         * modules/unictype/property-bidi-european-digit-tests (Files): Likewise.
53148         * modules/unictype/property-bidi-hebrew-right-to-left-tests (Files):
53149         Likewise.
53150         * modules/unictype/property-bidi-left-to-right-tests (Files): Likewise.
53151         * modules/unictype/property-bidi-non-spacing-mark-tests (Files):
53152         Likewise.
53153         * modules/unictype/property-bidi-other-neutral-tests (Files): Likewise.
53154         * modules/unictype/property-bidi-pdf-tests (Files): Likewise.
53155         * modules/unictype/property-bidi-segment-separator-tests (Files):
53156         Likewise.
53157         * modules/unictype/property-bidi-whitespace-tests (Files): Likewise.
53158         * modules/unictype/property-byname-tests (Files): Likewise.
53159         * modules/unictype/property-combining-tests (Files): Likewise.
53160         * modules/unictype/property-composite-tests (Files): Likewise.
53161         * modules/unictype/property-currency-symbol-tests (Files): Likewise.
53162         * modules/unictype/property-dash-tests (Files): Likewise.
53163         * modules/unictype/property-decimal-digit-tests (Files): Likewise.
53164         * modules/unictype/property-default-ignorable-code-point-tests (Files):
53165         Likewise.
53166         * modules/unictype/property-deprecated-tests (Files): Likewise.
53167         * modules/unictype/property-diacritic-tests (Files): Likewise.
53168         * modules/unictype/property-extender-tests (Files): Likewise.
53169         * modules/unictype/property-format-control-tests (Files): Likewise.
53170         * modules/unictype/property-grapheme-base-tests (Files): Likewise.
53171         * modules/unictype/property-grapheme-extend-tests (Files): Likewise.
53172         * modules/unictype/property-grapheme-link-tests (Files): Likewise.
53173         * modules/unictype/property-hex-digit-tests (Files): Likewise.
53174         * modules/unictype/property-hyphen-tests (Files): Likewise.
53175         * modules/unictype/property-id-continue-tests (Files): Likewise.
53176         * modules/unictype/property-id-start-tests (Files): Likewise.
53177         * modules/unictype/property-ideographic-tests (Files): Likewise.
53178         * modules/unictype/property-ids-binary-operator-tests (Files): Likewise.
53179         * modules/unictype/property-ids-trinary-operator-tests (Files):
53180         Likewise.
53181         * modules/unictype/property-ignorable-control-tests (Files): Likewise.
53182         * modules/unictype/property-iso-control-tests (Files): Likewise.
53183         * modules/unictype/property-join-control-tests (Files): Likewise.
53184         * modules/unictype/property-left-of-pair-tests (Files): Likewise.
53185         * modules/unictype/property-line-separator-tests (Files): Likewise.
53186         * modules/unictype/property-logical-order-exception-tests (Files):
53187         Likewise.
53188         * modules/unictype/property-lowercase-tests (Files): Likewise.
53189         * modules/unictype/property-math-tests (Files): Likewise.
53190         * modules/unictype/property-non-break-tests (Files): Likewise.
53191         * modules/unictype/property-not-a-character-tests (Files): Likewise.
53192         * modules/unictype/property-numeric-tests (Files): Likewise.
53193         * modules/unictype/property-other-alphabetic-tests (Files): Likewise.
53194         * modules/unictype/property-other-default-ignorable-code-point-tests
53195         (Files): Likewise.
53196         * modules/unictype/property-other-grapheme-extend-tests (Files):
53197         Likewise.
53198         * modules/unictype/property-other-id-continue-tests (Files): Likewise.
53199         * modules/unictype/property-other-id-start-tests (Files): Likewise.
53200         * modules/unictype/property-other-lowercase-tests (Files): Likewise.
53201         * modules/unictype/property-other-math-tests (Files): Likewise.
53202         * modules/unictype/property-other-uppercase-tests (Files): Likewise.
53203         * modules/unictype/property-paired-punctuation-tests (Files): Likewise.
53204         * modules/unictype/property-paragraph-separator-tests (Files): Likewise.
53205         * modules/unictype/property-pattern-syntax-tests (Files): Likewise.
53206         * modules/unictype/property-pattern-white-space-tests (Files): Likewise.
53207         * modules/unictype/property-private-use-tests (Files): Likewise.
53208         * modules/unictype/property-punctuation-tests (Files): Likewise.
53209         * modules/unictype/property-quotation-mark-tests (Files): Likewise.
53210         * modules/unictype/property-radical-tests (Files): Likewise.
53211         * modules/unictype/property-sentence-terminal-tests (Files): Likewise.
53212         * modules/unictype/property-soft-dotted-tests (Files): Likewise.
53213         * modules/unictype/property-space-tests (Files): Likewise.
53214         * modules/unictype/property-terminal-punctuation-tests (Files):
53215         Likewise.
53216         * modules/unictype/property-test-tests (Files): Likewise.
53217         * modules/unictype/property-titlecase-tests (Files): Likewise.
53218         * modules/unictype/property-unassigned-code-value-tests (Files):
53219         Likewise.
53220         * modules/unictype/property-unified-ideograph-tests (Files): Likewise.
53221         * modules/unictype/property-uppercase-tests (Files): Likewise.
53222         * modules/unictype/property-variation-selector-tests (Files): Likewise.
53223         * modules/unictype/property-white-space-tests (Files): Likewise.
53224         * modules/unictype/property-xid-continue-tests (Files): Likewise.
53225         * modules/unictype/property-xid-start-tests (Files): Likewise.
53226         * modules/unictype/property-zero-width-tests (Files): Likewise.
53227         * modules/unictype/scripts-tests (Files): Likewise.
53228         * modules/unictype/syntax-c-ident-tests (Files): Likewise.
53229         * modules/unictype/syntax-c-whitespace-tests (Files): Likewise.
53230         * modules/unictype/syntax-java-ident-tests (Files): Likewise.
53231         * modules/unictype/syntax-java-whitespace-tests (Files): Likewise.
53232         * modules/unilbrk/u8-possible-linebreaks-tests (Files): Likewise.
53233         * modules/unilbrk/u8-width-linebreaks-tests (Files): Likewise.
53234         * modules/unilbrk/u16-possible-linebreaks-tests (Files): Likewise.
53235         * modules/unilbrk/u16-width-linebreaks-tests (Files): Likewise.
53236         * modules/unilbrk/u32-possible-linebreaks-tests (Files): Likewise.
53237         * modules/unilbrk/u32-width-linebreaks-tests (Files): Likewise.
53238         * modules/unilbrk/ulc-possible-linebreaks-tests (Files): Likewise.
53239         * modules/unilbrk/ulc-width-linebreaks-tests (Files): Likewise.
53240         * modules/uninorm/canonical-decomposition-tests (Files): Likewise.
53241         * modules/uninorm/compat-decomposition-tests (Files): Likewise.
53242         * modules/uninorm/composition-tests (Files): Likewise.
53243         * modules/uninorm/decomposing-form-tests (Files): Likewise.
53244         * modules/uninorm/decomposition-tests (Files): Likewise.
53245         * modules/uninorm/filter-tests (Files): Likewise.
53246         * modules/uninorm/nfc-tests (Files): Likewise.
53247         * modules/uninorm/nfd-tests (Files): Likewise.
53248         * modules/uninorm/nfkc-tests (Files): Likewise.
53249         * modules/uninorm/nfkd-tests (Files): Likewise.
53250         * modules/uninorm/u8-normcmp-tests (Files): Likewise.
53251         * modules/uninorm/u8-normcoll-tests (Files): Likewise.
53252         * modules/uninorm/u16-normcmp-tests (Files): Likewise.
53253         * modules/uninorm/u16-normcoll-tests (Files): Likewise.
53254         * modules/uninorm/u32-normcmp-tests (Files): Likewise.
53255         * modules/uninorm/u32-normcoll-tests (Files): Likewise.
53256         * modules/unistdio/u8-asnprintf-tests (Files): Likewise.
53257         * modules/unistdio/u8-vasnprintf-tests (Files): Likewise.
53258         * modules/unistdio/u8-vasprintf-tests (Files): Likewise.
53259         * modules/unistdio/u8-vsnprintf-tests (Files): Likewise.
53260         * modules/unistdio/u8-vsprintf-tests (Files): Likewise.
53261         * modules/unistdio/u16-asnprintf-tests (Files): Likewise.
53262         * modules/unistdio/u16-vasnprintf-tests (Files): Likewise.
53263         * modules/unistdio/u16-vasprintf-tests (Files): Likewise.
53264         * modules/unistdio/u16-vsnprintf-tests (Files): Likewise.
53265         * modules/unistdio/u16-vsprintf-tests (Files): Likewise.
53266         * modules/unistdio/u32-asnprintf-tests (Files): Likewise.
53267         * modules/unistdio/u32-vasnprintf-tests (Files): Likewise.
53268         * modules/unistdio/u32-vasprintf-tests (Files): Likewise.
53269         * modules/unistdio/u32-vsnprintf-tests (Files): Likewise.
53270         * modules/unistdio/u32-vsprintf-tests (Files): Likewise.
53271         * modules/unistdio/ulc-asnprintf-tests (Files): Likewise.
53272         * modules/unistdio/ulc-vasnprintf-tests (Files): Likewise.
53273         * modules/unistdio/ulc-vasprintf-tests (Files): Likewise.
53274         * modules/unistdio/ulc-vsnprintf-tests (Files): Likewise.
53275         * modules/unistdio/ulc-vsprintf-tests (Files): Likewise.
53276         * modules/uniwbrk/u8-wordbreaks-tests (Files): Likewise.
53277         * modules/uniwbrk/u16-wordbreaks-tests (Files): Likewise.
53278         * modules/uniwbrk/u32-wordbreaks-tests (Files): Likewise.
53279         * modules/uniwbrk/ulc-wordbreaks-tests (Files): Likewise.
53280         * modules/uniwidth/u8-strwidth-tests (Files): Likewise.
53281         * modules/uniwidth/u8-width-tests (Files): Likewise.
53282         * modules/uniwidth/u16-strwidth-tests (Files): Likewise.
53283         * modules/uniwidth/u16-width-tests (Files): Likewise.
53284         * modules/uniwidth/u32-strwidth-tests (Files): Likewise.
53285         * modules/uniwidth/u32-width-tests (Files): Likewise.
53286         * modules/uniwidth/width-tests (Files): Likewise.
53287         * modules/unlink-tests (Files): Likewise.
53288         * modules/unsetenv-tests (Files): Likewise.
53289         * modules/usleep-tests (Files): Likewise.
53290         * modules/utimens-tests (Files): Likewise.
53291         * modules/utimensat-tests (Files): Likewise.
53292         * modules/vasnprintf-posix-tests (Files): Likewise.
53293         * modules/vasnprintf-tests (Files): Likewise.
53294         * modules/vasprintf-posix-tests (Files): Likewise.
53295         * modules/vasprintf-tests (Files): Likewise.
53296         * modules/vdprintf-posix-tests (Files): Likewise.
53297         * modules/vfprintf-posix-tests (Files): Likewise.
53298         * modules/vprintf-posix-tests (Files): Likewise.
53299         * modules/vsnprintf-posix-tests (Files): Likewise.
53300         * modules/vsnprintf-tests (Files): Likewise.
53301         * modules/vsprintf-posix-tests (Files): Likewise.
53302         * modules/wcrtomb-tests (Files): Likewise.
53303         * modules/wcsnrtombs-tests (Files): Likewise.
53304         * modules/wcsrtombs-tests (Files): Likewise.
53305         * modules/wctype-tests (Files): Likewise.
53306         * modules/wcwidth-tests (Files): Likewise.
53307         * modules/xmemdup0-tests (Files): Likewise.
53308         * modules/xprintf-posix-tests (Files): Likewise.
53309         * modules/xvasprintf-tests (Files): Likewise.
53311 2009-12-24  Eric Blake  <ebb9@byu.net>
53313         test-nanosleep: fix typo
53314         * tests/test-nanosleep.c (SIGNATURE_CHECK): Fix typo in previous
53315         patch.
53316         Reported by Bruno Haible.
53318 2009-12-24  Bruno Haible  <bruno@clisp.org>
53320         Reduce namespace pollution on glibc systems.
53321         * lib/inttypes.in.h: Don't include <stdint.h> on glibc systems.
53322         * lib/stdlib.in.h: Don't include <stdint.h>, <unistd.h> on glibc
53323         systems.
53324         * lib/unistd.in.h: Don't include <stdio.h>, <fcntl.h>, <stdlib.h>,
53325         <getopt.h> on glibc systems.
53326         * lib/fcntl.in.h: Don't include <sys/stat.h>, <unistd.h> on glibc
53327         systems.
53328         * lib/fcntl.c: Include <unistd.h> here instead.
53330 2009-12-24  Bruno Haible  <bruno@clisp.org>
53332         * lib/stdlib.in.h (includes): Fix typo in today's commit.
53334 2009-12-24  Eric Blake  <ebb9@byu.net>
53336         tests: add signature checks
53337         * tests/signature.h (SIGNATURE_CHECK): New file.
53338         * modules/atexit-tests (Files): Use it.
53339         * modules/btowc-tests (Files): Likewise.
53340         * modules/canonicalize-lgpl-tests (Files): Likewise.
53341         * modules/ceilf-tests (Files): Likewise.
53342         * modules/ceill-tests (Files): Likewise.
53343         * modules/chown-tests (Files): Likewise.
53344         * modules/dprintf-posix-tests (Files): Likewise.
53345         * modules/dup2-tests (Files): Likewise.
53346         * modules/dup3-tests (Files): Likewise.
53347         * modules/duplocale-tests (Files): Likewise.
53348         * modules/fchdir-tests (Files): Likewise.
53349         * modules/fcntl-tests (Files): Likewise.
53350         * modules/fdopendir-tests (Files): Likewise.
53351         * modules/fflush-tests (Files): Likewise.
53352         * modules/flock-tests (Files): Likewise.
53353         * modules/floorf-tests (Files): Likewise.
53354         * modules/floorl-tests (Files): Likewise.
53355         * modules/fnmatch-tests (Files): Likewise.
53356         * modules/fopen-tests (Files): Likewise.
53357         * modules/fprintf-posix-tests (Files): Likewise.
53358         * modules/freopen-tests (Files): Likewise.
53359         * modules/frexp-nolibm-tests (Files): Likewise.
53360         * modules/frexp-tests (Files): Likewise.
53361         * modules/frexpl-nolibm-tests (Files): Likewise.
53362         * modules/frexpl-tests (Files): Likewise.
53363         * modules/fseek-tests (Files): Likewise.
53364         * modules/fseeko-tests (Files): Likewise.
53365         * modules/fsync-tests (Files): Likewise.
53366         * modules/ftell-tests (Files): Likewise.
53367         * modules/ftello-tests (Files): Likewise.
53368         * modules/futimens-tests (Files): Likewise.
53369         * modules/getaddrinfo-tests (Files): Likewise.
53370         * modules/getcwd-tests (Files): Likewise.
53371         * modules/getdelim-tests (Files): Likewise.
53372         * modules/getdtablesize-tests (Files): Likewise.
53373         * modules/getgroups-tests (Files): Likewise.
53374         * modules/gethostname-tests (Files): Likewise.
53375         * modules/getline-tests (Files): Likewise.
53376         * modules/getopt-posix-tests (Files): Likewise.
53377         * modules/gettimeofday-tests (Files): Likewise.
53378         * modules/glob-tests (Files): Likewise.
53379         * modules/iconv-tests (Files): Likewise.
53380         * modules/inet_ntop-tests (Files): Likewise.
53381         * modules/inet_pton-tests (Files): Likewise.
53382         * modules/isblank-tests (Files): Likewise.
53383         * modules/lchown-tests (Files): Likewise.
53384         * modules/ldexpl-tests (Files): Likewise.
53385         * modules/link-tests (Files): Likewise.
53386         * modules/linkat-tests (Files): Likewise.
53387         * modules/lseek-tests (Files): Likewise.
53388         * modules/lstat-tests (Files): Likewise.
53389         * modules/mbrtowc-tests (Files): Likewise.
53390         * modules/mbsinit-tests (Files): Likewise.
53391         * modules/mbsnrtowcs-tests (Files): Likewise.
53392         * modules/mbsrtowcs-tests (Files): Likewise.
53393         * modules/memchr-tests (Files): Likewise.
53394         * modules/memcmp-tests (Files): Likewise.
53395         * modules/memmem-tests (Files): Likewise.
53396         * modules/memrchr-tests (Files): Likewise.
53397         * modules/mkdir-tests (Files): Likewise.
53398         * modules/mkfifo-tests (Files): Likewise.
53399         * modules/mkfifoat-tests (Files): Likewise.
53400         * modules/mknod-tests (Files): Likewise.
53401         * modules/nanosleep-tests (Files): Likewise.
53402         * modules/nl_langinfo-tests (Files): Likewise.
53403         * modules/obstack-printf-tests (Files): Likewise.
53404         * modules/open-tests (Files): Likewise.
53405         * modules/openat-tests (Files): Likewise.
53406         * modules/perror-tests (Files): Likewise.
53407         * modules/pipe2-tests (Files): Likewise.
53408         * modules/poll-tests (Files): Likewise.
53409         * modules/popen-tests (Files): Likewise.
53410         * modules/posix_spawn-tests (Files): Likewise.
53411         * modules/posix_spawnp-tests (Files): Likewise.
53412         * modules/pread-tests (Files): Likewise.
53413         * modules/printf-posix-tests (Files): Likewise.
53414         * modules/pty-tests (Files): Likewise.
53415         * modules/random_r-tests (Files): Likewise.
53416         * modules/rawmemchr-tests (Files): Likewise.
53417         * modules/readlink-tests (Files): Likewise.
53418         * modules/remove-tests (Files): Likewise.
53419         * modules/rename-tests (Files): Likewise.
53420         * modules/renameat-tests (Files): Likewise.
53421         * modules/rmdir-tests (Files): Likewise.
53422         * modules/round-tests (Files): Likewise.
53423         * modules/roundf-tests (Files): Likewise.
53424         * modules/roundl-tests (Files): Likewise.
53425         * modules/select-tests (Files): Likewise.
53426         * modules/setenv-tests (Files): Likewise.
53427         * modules/sigaction-tests (Files): Likewise.
53428         * modules/sleep-tests (Files): Likewise.
53429         * modules/snprintf-posix-tests (Files): Likewise.
53430         * modules/snprintf-tests (Files): Likewise.
53431         * modules/sprintf-posix-tests (Files): Likewise.
53432         * modules/stat-tests (Files): Likewise.
53433         * modules/strcasestr-tests (Files): Likewise.
53434         * modules/strchrnul-tests (Files): Likewise.
53435         * modules/strerror-tests (Files): Likewise.
53436         * modules/strsignal-tests (Files): Likewise.
53437         * modules/strstr-tests (Files): Likewise.
53438         * modules/strtod-tests (Files): Likewise.
53439         * modules/strverscmp-tests (Files): Likewise.
53440         * modules/symlink-tests (Files): Likewise.
53441         * modules/symlinkat-tests (Files): Likewise.
53442         * modules/times-tests (Files): Likewise.
53443         * modules/trunc-tests (Files): Likewise.
53444         * modules/truncf-tests (Files): Likewise.
53445         * modules/truncl-tests (Files): Likewise.
53446         * modules/tsearch-tests (Files): Likewise.
53447         * modules/uname-tests (Files): Likewise.
53448         * modules/unlink-tests (Files): Likewise.
53449         * modules/unsetenv-tests (Files): Likewise.
53450         * modules/usleep-tests (Files): Likewise.
53451         * modules/utimensat-tests (Files): Likewise.
53452         * modules/vasprintf-tests (Files): Likewise.
53453         * modules/vdprintf-posix-tests (Files): Likewise.
53454         * modules/vfprintf-posix-tests (Files): Likewise.
53455         * modules/vprintf-posix-tests (Files): Likewise.
53456         * modules/vsnprintf-posix-tests (Files): Likewise.
53457         * modules/vsnprintf-tests (Files): Likewise.
53458         * modules/vsprintf-posix-tests (Files): Likewise.
53459         * modules/wcrtomb-tests (Files): Likewise.
53460         * modules/wcsnrtombs-tests (Files): Likewise.
53461         * modules/wcsrtombs-tests (Files): Likewise.
53462         * modules/wcwidth-tests (Files): Likewise.
53463         * tests/test-isfinite.c (isfinite): Ensure macro declaration.
53464         * tests/test-isinf.c (isinf): Likewise.
53465         * tests/test-isnan.c (isnan): Likewise.
53466         * tests/test-signbit.c (signbit): Likewise.
53467         * tests/test-select.c (FD_CLR, FD_ISSET, FD_SET, FD_ZERO): Ensure
53468         declaration, either as macro or with correct signature.
53469         (select): Ensure function under test is declared with correct
53470         signature in correct header.
53471         * tests/test-atexit.c (atexit): Likewise.
53472         * tests/test-btowc.c (btowc): Likewise.
53473         * tests/test-canonicalize-lgpl.c (realpath)
53474         (canonicalize_file_name): Likewise.
53475         * tests/test-ceilf1.c (ceilf): Likewise.
53476         * tests/test-ceill.c (ceill): Likewise.
53477         * tests/test-chown.c (chown): Likewise.
53478         * tests/test-dprintf-posix.c (dprintf): Likewise.
53479         * tests/test-dup2.c (dup2): Likewise.
53480         * tests/test-dup3.c (dup3): Likewise.
53481         * tests/test-duplocale.c (duplocale): Likewise.
53482         * tests/test-fchdir.c (fchdir): Likewise.
53483         * tests/test-fchownat.c (fchownat): Likewise.
53484         * tests/test-fcntl.c (fcntl): Likewise.
53485         * tests/test-fdopendir.c (fdopendir): Likewise.
53486         * tests/test-fflush.c (fflush): Likewise.
53487         * tests/test-flock.c (flock): Likewise.
53488         * tests/test-floorf1.c (floorf): Likewise.
53489         * tests/test-floorl.c (floorl): Likewise.
53490         * tests/test-fnmatch.c (fnmatch): Likewise.
53491         * tests/test-fopen.c (fopen): Likewise.
53492         * tests/test-fprintf-posix.c (fprintf): Likewise.
53493         * tests/test-freopen.c (freopen): Likewise.
53494         * tests/test-frexp.c (frexp): Likewise.
53495         * tests/test-frexpl.c (frexpl): Likewise.
53496         * tests/test-fseek.c (fseek): Likewise.
53497         * tests/test-fseeko.c (fseeko): Likewise.
53498         * tests/test-fstatat.c (fstatat): Likewise.
53499         * tests/test-fsync.c (fsync): Likewise.
53500         * tests/test-ftell.c (ftell): Likewise.
53501         * tests/test-ftello.c (ftello): Likewise.
53502         * tests/test-futimens.c (futimens): Likewise.
53503         * tests/test-getaddrinfo.c (getaddrinfo, freeaddrinfo)
53504         (gai_strerror): Likewise.
53505         * tests/test-getcwd.c (getcwd): Likewise.
53506         * tests/test-getdelim.c (getdelim): Likewise.
53507         * tests/test-getdtablesize.c (getdtablesize): Likewise.
53508         * tests/test-getgroups.c (getgroups): Likewise.
53509         * tests/test-gethostname.c (gethostname): Likewise.
53510         * tests/test-getline.c (getline): Likewise.
53511         * tests/test-getopt.c (getopt, getopt_long, getopt_long_only):
53512         Likewise.
53513         * tests/test-gettimeofday.c (gettimeofday): Likewise.
53514         * tests/test-glob.c (glob, globfree): Likewise.
53515         * tests/test-iconv.c (iconv, iconv_open, iconv_close): Likewise.
53516         * tests/test-inet_ntop.c (inet_ntop): Likewise.
53517         * tests/test-inet_pton.c (inet_pton): Likewise.
53518         * tests/test-isblank.c (isblank): Likewise.
53519         * tests/test-lchown.c (lchown): Likewise.
53520         * tests/test-ldexpl.c (ldexpl): Likewise.
53521         * tests/test-link.c (link): Likewise.
53522         * tests/test-linkat.c (linkat): Likewise.
53523         * tests/test-lseek.c (lseek): Likewise.
53524         * tests/test-lstat.c (lstat): Likewise.
53525         * tests/test-mbrtowc.c (mbrtowc): Likewise.
53526         * tests/test-mbsinit.c (mbsinit): Likewise.
53527         * tests/test-mbsnrtowcs.c (mbsnrtowcs): Likewise.
53528         * tests/test-mbsrtowcs.c (mbsrtowcs): Likewise.
53529         * tests/test-memchr.c (memchr): Likewise.
53530         * tests/test-memcmp.c (memcmp): Likewise.
53531         * tests/test-memmem.c (memmem): Likewise.
53532         * tests/test-memrchr.c (memrchr): Likewise.
53533         * tests/test-mkdir.c (mkdir): Likewise.
53534         * tests/test-mkdirat.c (mkdirat): Likewise.
53535         * tests/test-mkfifo.c (mkfifo): Likewise.
53536         * tests/test-mkfifoat.c (mkfifoat, mknodat): Likewise.
53537         * tests/test-mknod.c (mknod): Likewise.
53538         * tests/test-nanosleep.c (nanosleep): Likewise.
53539         * tests/test-nl_langinfo.c (nl_langinfo): Likewise.
53540         * tests/test-obstack-printf.c (obstack_printf, obstack_vprintf):
53541         Likewise.
53542         * tests/test-open.c (open): Likewise.
53543         * tests/test-openat.c (openat): Likewise.
53544         * tests/test-perror.c (perror): Likewise.
53545         * tests/test-pipe2.c (pipe2): Likewise.
53546         * tests/test-poll.c (poll): Likewise.
53547         * tests/test-popen.c (popen, pclose): Likewise.
53548         * tests/test-posix_spawn1.c (posix_spawnp, posix_spawnattr_init)
53549         (posix_spawnattr_destroy, posix_spawnattr_setsigmask)
53550         (posix_spawnattr_setflags, posix_spawn_file_actions_init)
53551         (posix_spawn_file_actions_destroy)
53552         (posix_spawn_file_actions_addclose)
53553         (posix_spawn_file_actions_addopen)
53554         (posix_spawn_file_actions_adddup2): Likewise.
53555         * tests/test-posix_spawn3.c (posix_spawn): Likewise.
53556         * tests/test-pread.c (pread): Likewise.
53557         * tests/test-printf-posix.c (printf): Likewise.
53558         * tests/test-pty.c (openpty, forkpty): Likewise.
53559         * tests/test-random_r.c (srandom_r, initstate_r, setstate_r)
53560         (random_r): Likewise.
53561         * tests/test-rawmemchr.c (rawmemchr): Likewise.
53562         * tests/test-readlink.c (readlink): Likewise.
53563         * tests/test-remove.c (remove): Likewise.
53564         * tests/test-rename.c (rename): Likewise.
53565         * tests/test-renameat.c (renameat): Likewise.
53566         * tests/test-rmdir.c (rmdir): Likewise.
53567         * tests/test-round1.c (round): Likewise.
53568         * tests/test-roundf1.c (roundf): Likewise.
53569         * tests/test-roundl.c (roundl): Likewise.
53570         * tests/test-setenv.c (setenv): Likewise.
53571         * tests/test-sigaction.c (sigaction): Likewise.
53572         * tests/test-sleep.c (sleep): Likewise.
53573         * tests/test-snprintf.c (snprintf): Likewise.
53574         * tests/test-sprintf-posix.c (sprintf): Likewise.
53575         * tests/test-stat.c (stat): Likewise.
53576         * tests/test-stpncpy.c (stpncpy): Likewise.
53577         * tests/test-strcasestr.c (strcasestr): Likewise.
53578         * tests/test-strchrnul.c (strchrnul): Likewise.
53579         * tests/test-strerror.c (strerror): Likewise.
53580         * tests/test-strsignal.c (strsignal): Likewise.
53581         * tests/test-strstr.c (strstr): Likewise.
53582         * tests/test-strtod.c (strtod): Likewise.
53583         * tests/test-strverscmp.c (strverscmp): Likewise.
53584         * tests/test-symlink.c (symlink): Likewise.
53585         * tests/test-symlinkat.c (symlinkat, readlinkat): Likewise.
53586         * tests/test-times.c (times): Likewise.
53587         * tests/test-trunc1.c (trunc): Likewise.
53588         * tests/test-truncf1.c (truncf): Likewise.
53589         * tests/test-truncl.c (truncl): Likewise.
53590         * tests/test-tsearch.c (tdelete, tfind, tsearch, twalk):
53591         Likewise.
53592         * tests/test-uname.c (uname): Likewise.
53593         * tests/test-unlink.c (unlink): Likewise.
53594         * tests/test-unlinkat.c (unlinkat): Likewise.
53595         * tests/test-unsetenv.c (unsetenv): Likewise.
53596         * tests/test-usleep.c (usleep): Likewise.
53597         * tests/test-utimensat.c (utimensat): Likewise.
53598         * tests/test-vasprintf.c (asprintf, vasprintf): Likewise.
53599         * tests/test-vdprintf-posix.c (vdprintf): Likewise.
53600         * tests/test-vfprintf-posix.c (vfprintf): Likewise.
53601         * tests/test-vprintf-posix.c (vprintf): Likewise.
53602         * tests/test-vsnprintf.c (vsnprintf): Likewise.
53603         * tests/test-vsprintf-posix.c (vsprintf): Likewise.
53604         * tests/test-wcrtomb.c (wcrtomb): Likewise.
53605         * tests/test-wcsnrtombs.c (wcsnrtombs): Likewise.
53606         * tests/test-wcsrtombs.c (wcsrtombs): Likewise.
53607         * tests/test-wcwidth.c (wcwidth): Likewise.
53609         build: pull in conditional headers during GNULIB_POSIXCHECK
53610         * lib/stdio.in.h (includes): Using GNULIB_POSIXCHECK also requires
53611         definitions from any conditionally-included headers.
53612         * lib/stdlib.in.h (includes): Likewise.
53613         * lib/unistd.in.h (includes): Likewise.
53615 2009-12-24  Bruno Haible  <bruno@clisp.org>
53617         * tests/test-argv-iter.c: Include header file being tested immediately
53618         after config.h.
53619         * tests/test-base64.c: Likewise.
53620         * tests/test-flock.c: Likewise.
53621         * tests/test-fsync.c: Likewise.
53622         * tests/test-getdate.c: Likewise.
53623         * tests/test-getndelim2.c: Likewise.
53624         * tests/test-isfinite.c: Likewise.
53625         * tests/test-isinf.c: Likewise.
53626         * tests/test-strerror.c: Likewise.
53627         * tests/test-strsignal.c: Likewise.
53629 2009-12-23  Eric Blake  <ebb9@byu.net>
53631         unistd: work around cygwin bug
53632         * lib/unistd.in.h (includes): Pick up headers needed for cygwin.
53633         * doc/posix-functions/unlinkat.texi (unlinkat): Document the bug.
53634         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
53636 2009-12-23  Bruno Haible  <bruno@clisp.org>
53638         localename: More tests.
53639         * tests/test-localename.c (SIZEOF): New macro.
53640         (categories): New variable.
53641         (test_locale_name, test_locale_name_posix, test_locale_name_environ,
53642         test_locale_name_default): Add test w.r.t. thread locale.
53643         (test_locale_name_thread): New function.
53644         (main): Invoke it.
53646         localename: Make aware of thread locale.
53647         * lib/localename.h (gl_locale_name_thread): New declaration.
53648         (gl_locale_name, gl_locale_name_posix, gl_locale_name_default): Clarify
53649         behaviour with respect to thread locale.
53650         * lib/localename.c: Include <limits.h>, <stddef.h>, <xlocale.h>,
53651         <langinfo.h>, glthread/lock.h.
53652         (SIZE_BITS): New macro.
53653         (string_hash): New function.
53654         (struct hash_node): New type.
53655         (HASH_TABLE_SIZE): New macro.
53656         (struniq_hash_table, struniq_lock): New variables.
53657         (struniq): New function.
53658         (gl_locale_name_thread): New function.
53659         (gl_locale_name): Invoke it.
53660         * m4/localename.m4 (gl_LOCALENAME): Test for uselocale function.
53661         * modules/localename (Depends-on): Add lock.
53662         Reported by Mike Gran <spk121@yahoo.com>.
53664 2009-12-23  Eric Blake  <ebb9@byu.net>
53666         va-args: new module
53667         * modules/va-args: New file.
53668         * m4/va-args.m4 (gl_VA_ARGS): Likewise.
53669         * MODULES.html.sh (Core language properties): Mention it.
53671         gnulib-common: prefer _GL_UNUSED over _UNUSED_PARAMETER_
53672         * m4/gnulib-common.m4 (gl_COMMON): Create a more-appropriately
53673         named alias for __attribute__((__unused__)).
53674         * lib/chown.c: Update client.
53675         * lib/fchmodat.c: Likewise.
53676         * lib/fts.c: Likewise.
53677         * lib/getdate.y: Likewise.
53678         * lib/getgroups.c: Likewise.
53679         * lib/getopt.c: Likewise.
53680         * lib/getugroups.c: Likewise.
53681         * lib/mkdir.c: Likewise.
53682         * lib/mkfifo.c: Likewise.
53683         * lib/mkfifoat.c: Likewise.
53684         * lib/mknod.c: Likewise.
53685         * lib/mknodat.c: Likewise.
53686         * lib/readlink.c: Likewise.
53687         * lib/se-context.in.h: Likewise.
53688         * lib/se-selinux.in.h: Likewise.
53689         * lib/sockets.c: Likewise.
53690         * lib/symlink.c: Likewise.
53691         * lib/symlinkat.c: Likewise.
53692         * lib/unicodeio.c: Likewise.
53693         * lib/unistr.h: Likewise.
53694         * tests/test-areadlink.c: Likewise.
53695         * tests/test-areadlinkat.c: Likewise.
53696         * tests/test-filenamecat.c: Likewise.
53697         * tests/test-fseeko.c: Likewise.
53698         * tests/test-ftello.c: Likewise.
53699         * tests/test-getdate.c: Likewise.
53700         * tests/test-getgroups.c: Likewise.
53701         * tests/test-gethostname.c: Likewise.
53702         * tests/test-quotearg.c: Likewise.
53703         * tests/test-version-etc.c: Likewise.
53704         * tests/test-xalloc-die.c: Likewise.
53705         * tests/test-xfprintf-posix.c: Likewise.
53706         * tests/test-xprintf-posix.c: Likewise.
53707         * tests/test-xvasprintf.c: Likewise.
53709         tests: avoid compiler warnings
53710         * tests/test-fcntl.c (main): Delete unused parameters.
53711         * tests/test-freopen-safer.c (main): Likewise.
53712         * tests/test-xalloc-die.c (main): Mark unused parameters.
53713         * tests/test-fseeko.c (main): Likewise.
53714         * tests/test-ftello.c (main): Likewise.
53715         * tests/test-nanosleep.c (main): Avoid declaration warning.
53716         * tests/test-sleep.c (main): Likewise.
53717         * tests/test-unsetenv.c (main): Silence warning about string
53718         literal.
53719         * m4/setenv.m4 (gl_FUNC_UNSETENV): Likewise.
53721 2009-12-23  Bruno Haible  <bruno@clisp.org>
53723         * tests/test-localename.c (test_locale_name): New function, extracted
53724         from main. Also test mixed situations.
53725         (test_locale_name_posix, test_locale_name_environ,
53726         test_locale_name_default): New functions.
53727         (main): Invoke them all.
53728         * modules/localename-tests (configure.ac): Test for newlocale.
53730 2009-12-23  Bruno Haible  <bruno@clisp.org>
53732         unistd: Ensure getcwd gets declared before being overridden.
53733         * lib/unistd.in.h: Conditionally include <io.h>.
53735 2009-12-22  Bruno Haible  <bruno@clisp.org>
53737         wchar: Diagnose broken combination of glibc and gcc versions and flags.
53738         * m4/wchar.m4 (gl_WCHAR_H_INLINE_OK): New macro.
53739         (gl_WCHAR_H): Invoke it.
53740         * m4/btowc.m4 (gl_FUNC_BTOWC): Require it.
53741         * doc/posix-headers/wchar.texi: Mention the interoperability problem.
53742         Reported by Karl Berry <karl@freefriends.org>.
53744 2009-12-22  Eric Blake  <ebb9@byu.net>
53746         math, unistd: avoid redundant includes
53747         * lib/math.in.h (isnan): No need to re-include <math.h>.
53748         * lib/unistd.in.h (getcwd): Likewise, for <stdlib.h>.
53750         getsubopt: work around cygwin bug
53751         * lib/stdlib.in.h (includes): Move unistd inclusion sooner, to
53752         avoid conflicting with system getsubopt.
53753         * doc/posix-functions/getsubopt.texi (getsubopt): Document the
53754         bug.
53756         getopt: synchronize from glibc
53757         * lib/getopt.c (_getopt_initialize, _getopt_internal_r): Swap
53758         parameter order.  Adjust all callers.
53759         (_getopt_internal_r, main): Adjust quoting in error messages.
53760         Drop considerations for outdated POSIX 1003.2 error message.
53761         * lib/getopt1.c (_getopt_long_r, _getopt_long_only_r): Adjust
53762         callers.
53763         * lib/getopt_int.h (_getopt_internal_r): Adjust prototype.
53765         test-getopt: test stderr behavior
53766         * modules/getopt-posix-tests (Depends-on): Add dup2.
53767         * tests/test-getopt.c (ASSERT): Avoid stderr.
53768         (main): Move stderr to a temporary file.
53769         * tests/test-getopt.h (getopt_loop): No longer manipulate opterr.
53770         Instead, add parameter to inform caller if output occurred.
53771         (test_getopt): Adjust all existing tests to expect silence, and
53772         add new tests of leading ":".
53773         * doc/glibc-functions/getopt_long.texi (getopt_long): Document
53774         glibc shortcomings with leading "-:" or "+:" in optstring.
53775         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
53776         Likewise.
53777         * doc/posix-functions/getopt.texi (getopt): Likewise.
53779         test-getopt: enhance test
53780         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Require that getopt_long
53781         supports optind=0.
53782         * tests/test-getopt.c (OPTIND_MIN): Move...
53783         * tests/test-getopt.h (OPTIND_MIN): ...here.
53784         * tests/test-getopt_long.h (test_getopt_long): Add more coverage.
53785         Require that optind=0 works, since modern BSD supports it in
53786         addition to optreset, and since coreutils expects it.
53787         (test_getopt_long_only): New test.
53788         * doc/glibc-functions/getopt_long.texi (getopt_long): Document
53789         glibc shortcomings with 'W;', and enforcement of optind=0.
53790         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
53791         Likewise.
53793 2009-12-21  Bruno Haible  <bruno@clisp.org>
53795         localename: Improvements for MacOS X and Cygwin.
53796         * lib/localename.h (gl_locale_name_environ): New declaration.
53797         * lib/localename.c (gl_locale_name_environ): New function, extracted from
53798         gl_locale_name_posix. Ignore dummy LANG values on MacOS X and Cygwin.
53799         (gl_locale_name_posix): Invoke it.
53800         (gl_locale_name_default): Add comments. Use Windows native API also on
53801         Cygwin.
53803 2009-12-21  Bruno Haible  <bruno@clisp.org>
53805         Update list of Win32 locale ids.
53806         * lib/localename.c (LANG_ROMANSH): Renamed from LANG_RHAETO_ROMANCE.
53807         (LANG_SAMI): Renamed from LANG_SAAMI.
53808         (LANG_BASHKIR, LANG_LUXEMBOURGISH, LANG_GREENLANDIC,
53809         LANG_MAPUDUNGUN, LANG_MOHAWK, LANG_BRETON, LANG_OCCITAN, LANG_CORSICAN,
53810         LANG_ALSATIAN, LANG_YAKUT, LANG_KICHE, LANG_KINYARWANDA, LANG_WOLOF,
53811         LANG_DARI, LANG_SCOTTISH_GAELIC): New macros.
53812         (SUBLANG_AFRIKAANS_SOUTH_AFRICA, SUBLANG_ALBANIAN_ALBANIA,
53813         SUBLANG_ALSATIAN_FRANCE, SUBLANG_AMHARIC_ETHIOPIA,
53814         SUBLANG_ARMENIAN_ARMENIA, SUBLANG_ASSAMESE_INDIA,
53815         SUBLANG_BASHKIR_RUSSIA, SUBLANG_BASQUE_BASQUE,
53816         SUBLANG_BELARUSIAN_BELARUS, SUBLANG_BRETON_FRANCE,
53817         SUBLANG_BULGARIAN_BULGARIA, SUBLANG_CAMBODIAN_CAMBODIA,
53818         SUBLANG_CATALAN_SPAIN, SUBLANG_CORSICAN_FRANCE,
53819         SUBLANG_CZECH_CZECH_REPUBLIC, SUBLANG_DANISH_DENMARK,
53820         SUBLANG_DARI_AFGHANISTAN, SUBLANG_DIVEHI_MALDIVES,
53821         SUBLANG_DUTCH_SURINAM, SUBLANG_ESTONIAN_ESTONIA,
53822         SUBLANG_FAEROESE_FAROE_ISLANDS, SUBLANG_FARSI_IRAN,
53823         SUBLANG_FINNISH_FINLAND, SUBLANG_FRISIAN_NETHERLANDS,
53824         SUBLANG_GALICIAN_SPAIN, SUBLANG_GEORGIAN_GEORGIA,
53825         SUBLANG_GREEK_GREECE, SUBLANG_GREENLANDIC_GREENLAND,
53826         SUBLANG_GUJARATI_INDIA, SUBLANG_HAUSA_NIGERIA_LATIN,
53827         SUBLANG_HEBREW_ISRAEL, SUBLANG_HINDI_INDIA, SUBLANG_HUNGARIAN_HUNGARY,
53828         SUBLANG_ICELANDIC_ICELAND, SUBLANG_IGBO_NIGERIA,
53829         SUBLANG_INDONESIAN_INDONESIA, SUBLANG_INUKTITUT_CANADA,
53830         SUBLANG_INUKTITUT_CANADA_LATIN, SUBLANG_IRISH_IRELAND,
53831         SUBLANG_JAPANESE_JAPAN, SUBLANG_KANNADA_INDIA,
53832         SUBLANG_KAZAK_KAZAKHSTAN, SUBLANG_KICHE_GUATEMALA,
53833         SUBLANG_KINYARWANDA_RWANDA, SUBLANG_KONKANI_INDIA,
53834         SUBLANG_KYRGYZ_KYRGYZSTAN, SUBLANG_LAO_LAOS, SUBLANG_LATVIAN_LATVIA,
53835         SUBLANG_LITHUANIAN_LITHUANIA, SUBLANG_LOWER_SORBIAN_GERMANY,
53836         SUBLANG_LUXEMBOURGISH_LUXEMBOURG, SUBLANG_MACEDONIAN_MACEDONIA,
53837         SUBLANG_MALAYALAM_INDIA, SUBLANG_MALTESE_MALTA,
53838         SUBLANG_MAORI_NEW_ZEALAND, SUBLANG_MAPUDUNGUN_CHILE,
53839         SUBLANG_MARATHI_INDIA, SUBLANG_MOHAWK_CANADA, SUBLANG_NEPALI_NEPAL,
53840         SUBLANG_OCCITAN_FRANCE, SUBLANG_ORIYA_INDIA,
53841         SUBLANG_PASHTO_AFGHANISTAN, SUBLANG_POLISH_POLAND,
53842         SUBLANG_ROMANSH_SWITZERLAND, SUBLANG_SAMI_NORTHERN_NORWAY,
53843         SUBLANG_SAMI_NORTHERN_SWEDEN, SUBLANG_SAMI_NORTHERN_FINLAND,
53844         SUBLANG_SAMI_LULE_NORWAY, SUBLANG_SAMI_LULE_SWEDEN,
53845         SUBLANG_SAMI_SOUTHERN_NORWAY, SUBLANG_SAMI_SOUTHERN_SWEDEN,
53846         SUBLANG_SAMI_SKOLT_FINLAND, SUBLANG_SAMI_INARI_FINLAND,
53847         SUBLANG_SANSKRIT_INDIA, SUBLANG_SINHALESE_SRI_LANKA,
53848         SUBLANG_SLOVAK_SLOVAKIA, SUBLANG_SLOVENIAN_SLOVENIA,
53849         SUBLANG_SOTHO_SOUTH_AFRICA, SUBLANG_SWAHILI_KENYA,
53850         SUBLANG_SWEDISH_SWEDEN, SUBLANG_SYRIAC_SYRIA,
53851         SUBLANG_TAGALOG_PHILIPPINES, SUBLANG_TAJIK_TAJIKISTAN,
53852         SUBLANG_TAMIL_INDIA, SUBLANG_TATAR_RUSSIA, SUBLANG_TELUGU_INDIA,
53853         SUBLANG_THAI_THAILAND, SUBLANG_TSWANA_SOUTH_AFRICA,
53854         SUBLANG_TURKISH_TURKEY, SUBLANG_TURKMEN_TURKMENISTAN,
53855         SUBLANG_UKRAINIAN_UKRAINE, SUBLANG_UPPER_SORBIAN_GERMANY,
53856         SUBLANG_VIETNAMESE_VIETNAM, SUBLANG_WELSH_UNITED_KINGDOM,
53857         SUBLANG_WOLOF_SENEGAL, SUBLANG_XHOSA_SOUTH_AFRICA,
53858         SUBLANG_YAKUT_RUSSIA, SUBLANG_YI_PRC, SUBLANG_YORUBA_NIGERIA,
53859         SUBLANG_ZULU_SOUTH_AFRICA): New macros.
53860         (gl_locale_name_from_win32_LANGID): Handle also the territory neutral
53861         locale ids. Add support for Alsatian, Bashkir, Breton, Corsican, Dari,
53862         Greenlandic, K'iche', Kinyarwanda, Luxembourgish, Mapudungun, Mohawk,
53863         Occitan, Scottish Gaelic, Wolof, Yakut. Change language code for Yi.
53864         Add more languages and countries for Sami, Sorbian. Add more countries
53865         for Serbian, Dutch. Add more scripts for Inuktitut. Be more precise
53866         for Pashto. Change country for Syriac, Tswana.
53868 2009-12-21  Eric Blake  <ebb9@byu.net>
53870         test-utimens: avoid spurious failure
53871         * tests/test-chown.h (nap): Factor...
53872         * tests/nap.h: ...into new file.
53873         * tests/test-lchown.h (nap): Avoid duplication.
53874         * tests/test-utimens-common.h (nap): Use shared implementation,
53875         necessary on file systems with 1-second resolution.
53876         * modules/chown-tests (Files): Include new file.
53877         * modules/fdutimensat-tests (Files): Likewise.
53878         * modules/futimens-tests (Files): Likewise.
53879         * modules/lchown-tests (Files): Likewise.
53880         * modules/openat-tests (Files): Likewise.
53881         * modules/utimens-tests (Files): Likewise.
53882         * modules/utimensat-tests (Files): Likewise.
53884 2009-12-19  Eric Blake  <ebb9@byu.net>
53886         futimens, utimensat: work around Linux bug
53887         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Detect ctime bug.
53888         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
53889         * lib/utimensat.c (rpl_utimensat): Work around it.
53890         * lib/futimens.c (rpl_futimens): Adjust comment.
53892         utimens: work around Linux ctime bug
53893         * lib/utimens.c (detect_ctime_bug): New helper function.
53894         (update_timespec): Differentiate between workaround needed for
53895         this bug vs. what is needed for systems that lack utimensat.
53896         (fdutimens, lutimens): Work around bug.
53898         utimens: check for ctime update
53899         * tests/test-utimens-common.h (check_ctime): Define.
53900         * tests/test-utimens.h (test_utimens): Expose the Linux bug.
53901         * tests/test-futimens.h (test_futimens): Likewise.
53902         * tests/test-lutimens.h (test_lutimens): Likewise.
53903         * doc/posix-functions/futimens.texi (futimens): Document the bug.
53904         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
53906 2009-12-19  Bruno Haible  <bruno@clisp.org>
53908         dprintf-posix: Check against memory leak fixed on 2009-12-15.
53909         * tests/test-dprintf-posix2.sh: New file.
53910         * tests/test-dprintf-posix2.c: New file.
53911         * modules/dprintf-posix-tests (Files): Add them.
53912         (configure.ac): Check for getrlimit and setrlimit.
53913         (Makefile.am): Augment TESTS and CHECK_PROGRAMS.
53915 2009-12-19  Bruno Haible  <bruno@clisp.org>
53917         fprintf-posix: Check against memory leak fixed on 2009-12-15.
53918         * tests/test-fprintf-posix3.sh: New file.
53919         * tests/test-fprintf-posix3.c: New file.
53920         * modules/fprintf-posix-tests (Files): Add them.
53921         (Makefile.am): Augment TESTS and CHECK_PROGRAMS.
53923 2009-12-19  Eric Blake  <ebb9@byu.net>
53925         dirfd: fix prototype
53926         * lib/dirent.in.h (dirfd): Argument is not const, per POSIX.
53927         * lib/dirfd.c (dirfd): Likewise.
53929         canonicalize: reduce memory usage
53930         * lib/canonicalize.c (canonicalize_filename_mode): Trim the
53931         allocation to size.
53932         Reported by Solar Designer <solar@openwall.com>.
53934 2009-12-19  Bruno Haible  <bruno@clisp.org>
53936         New module attribute 'Applicability'.
53937         * modules/TEMPLATE-EXTENDED: New field 'Applicability'.
53938         * gnulib-tool: New option --extract-applicability.
53939         (func_usage): Document it.
53940         (sed_extract_prog): Recognize it.
53941         (func_get_applicability): New function.
53942         (func_import): Generalize handling of 'link-warning' module.
53943         * modules/link-warning (Applicability): New section.
53944         * modules/arg-nonnull (Applicability): New section.
53945         Repoted by Simon Josefsson <simon@josefsson.org>.
53947 2009-12-19  Bruno Haible  <bruno@clisp.org>
53949         fflush: tweak
53950         * lib/fflush.c (update_fpos_cache): Don't use fpos_t on Cygwin.
53951         * lib/fseeko.c (rpl_fseeko): Likewise.
53953 2009-12-16  José E. Marchesi  <jemarch@gnu.org>  (tiny change)
53955         * lib/gl_list.h: Fix typo in comment.
53957 2009-12-16  Eric Blake  <ebb9@byu.net>
53959         fcntl: use to simplify other modules
53960         * modules/cloexec (Depends-on): Add fcntl.
53961         * modules/fchdir (Depends-on): Likewise.
53962         * modules/fd-safer-flag (Depends-on): Likewise.
53963         * modules/unistd-safer (Depends-on): Likewise.
53964         * modules/dup3 (configure.ac): Set module indicator.
53965         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Replace fcntl if fchdir is
53966         missing.
53967         * lib/fchdir.c (_gl_register_dup): Fix comment.
53968         * lib/cloexec.c (dup_cloexec): Simplify, by relying on fcntl.
53969         * lib/dup-safer.c (dup_safer): Likewise.
53970         * lib/dup-safer-flag.c (dup_safer_flag): Likewise.
53971         * lib/dup3.c (dup3): Likewise.
53972         * tests/test-fchdir.c (main): Enhance test.
53973         Fixes a dup_cloexec bug reported by Ondřej Vašík.
53975         fcntl: port portions of fcntl to mingw
53976         * m4/fcntl.m4 (gl_FUNC_FCNTL): Also build fcntl.c on mingw.
53977         * lib/fcntl.c (fcntl) <F_DUPFD, F_DUPFD_CLOEXEC, F_GETFD>: Provide
53978         replacement for mingw.
53979         * modules/fcntl (Description): Update.
53980         (Depends-on): Add dup2.
53981         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Add witness.
53982         * modules/fcntl-h (Makefile.am): Substitute it.
53983         * lib/fcntl.in.h (fcntl): Update declaration.
53984         (F_DUPFD, F_GETFD): New macros, when needed.
53985         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
53986         * doc/posix-functions/fcntl.texi (fcntl): Likewise.
53987         * tests/test-fcntl.c (check_flags, main): Enhance test for items
53988         we now guarantee.
53990         fcntl: work around cygwin bug in F_DUPFD
53991         * m4/fcntl.m4 (gl_REPLACE_FCNTL): New macro.
53992         (gl_FUNC_FCNTL): Use it.  Test for F_DUPFD bug.
53993         * lib/fcntl.c (rpl_fcntl) <F_DUPFD>: Work around it.
53994         <F_DUPFD_CLOEXEC>: Reduce calls to _gl_register_dup.
53995         * doc/posix-functions/fcntl.texi (fcntl): Document it.
53997         fcntl: support F_DUPFD_CLOEXEC on systems with fcntl
53998         * modules/fcntl (Files): List new files.
53999         (configure.ac): Run a test.
54000         * m4/fcntl.m4 (gl_FUNC_FCNTL): New file.
54001         * lib/fcntl.c (rpl_fcntl): Likewise.
54002         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Add witness defaults.
54003         (gl_FCNTL_H): Always replace fcntl.h.
54004         * modules/fcntl-h (Makefile.am): Substitute witnesses.
54005         * lib/fcntl.in.h (fcntl): Declare replacement.
54006         (F_DUPFD_CLOEXEC, GNULIB_defined_F_DUPFD_CLOEXEC): New macro when
54007         needed, plus a witness.
54008         * doc/posix-functions/fcntl.texi (fcntl): Document this.
54009         * doc/posix-headers/fcntl.texi (fcntl.h): Likewise.
54010         * tests/test-fcntl.c: New file.
54011         * modules/fcntl-tests: Likewise.
54013         binary-io: avoid potential compilation warning
54014         * lib/binary-io.h [__DJGPP__]: Avoid null preprocessor
54015         directives.
54017         fflush: avoid compilation error on NetBSD
54018         * lib/fflush.c (update_fpos_cache): Use a union to safely convert
54019         between off_t and fpos_t, since the latter is sometimes a struct.
54020         * lib/fseeko.c (rpl_fseeko): Likewise.
54021         Reported by Alexander Nasonov <alnsn@yandex.ru>.
54023 2009-12-15  Eric Blake  <ebb9@byu.net>
54025         fcntl-h, stdio, sys_ioctl: fix declarations
54026         * lib/stdio.in.h (dprintf): Use of link warning on a variadic
54027         function must not take arguments.
54028         * lib/sys_ioctl.in.h (ioctl): Likewise.
54029         * lib/fcntl.in.h (openat): Likewise.  Declare extern.
54030         (open): Add a link warning.
54032 2009-12-15  Jim Meyering  <meyering@redhat.com>
54034         areadlink, areadlink-with-size: relax license to LGPLv2+
54035         * modules/areadlink (License): Relax to LGPLv2+.
54036         * modules/areadlink-with-size (License): Likewise.
54038 2009-12-15  Joel E. Denny  <jdenny@clemson.edu>
54039             Bruno Haible  <bruno@clisp.org>
54041         *printf: Fix memory leak.
54042         * lib/fprintf.c (fprintf): Free memory allocated by vasnprintf.
54043         * lib/vfprintf.c (vfprintf): Likewise.
54044         * lib/dprintf.c (dprintf): Likewise.
54045         * lib/vdprintf.c (vdprintf): Likewise.
54047 2009-12-14  Eric Blake  <ebb9@byu.net>
54049         accept4: adjust module dependencies
54050         * modules/accept4 (Depends-on): Use fcntl-h, not fcntl.
54052         utimens: one more try at avoiding compiler warning
54053         * lib/utimens.c (lutimens): Lower scope of result.
54055 2009-12-13  Bruno Haible  <bruno@clisp.org>
54057         Move the malloc checking from module 'list' to new module 'xlist'.
54058         * modules/xlist: New file.
54059         * lib/gl_xlist.h: New file.
54060         * lib/gl_xlist.c: New file.
54061         * lib/gl_list.h (gl_list_create_empty, gl_list_create,
54062         gl_list_node_set_value, gl_list_set_at, gl_list_add_first,
54063         gl_list_add_last, gl_list_add_before, gl_list_add_after,
54064         gl_list_nx_add_at, gl_sortedlist_add): Disable declarations.
54065         (gl_list_nx_create_empty, gl_list_nx_create, gl_list_node_nx_set_value,
54066         gl_list_nx_set_at, gl_list_nx_add_first, gl_list_nx_add_last,
54067         gl_list_nx_add_before, gl_list_nx_add_after, gl_list_nx_add_at,
54068         gl_sortedlist_nx_add): New declarations.
54069         (struct gl_list_implementation): Rename and change methods accordingly.
54070         (gl_list_nx_create_empty): Renamed from gl_list_create_empty.
54071         (gl_list_nx_create): Renamed from gl_list_create.
54072         (gl_list_node_nx_set_value): Renamed from gl_list_node_set_value.
54073         (gl_list_nx_set_at): Renamed from gl_list_set_at.
54074         (gl_list_nx_add_first): Renamed from gl_list_add_first.
54075         (gl_list_nx_add_last): Renamed from gl_list_add_last.
54076         (gl_list_nx_add_before): Renamed from gl_list_add_before.
54077         (gl_list_nx_add_after): Renamed from gl_list_add_after.
54078         (gl_list_nx_add_at): Renamed from gl_list_add_at.
54079         (gl_sortedlist_nx_add): Renamed from gl_sortedlist_add.
54080         * lib/gl_list.c (gl_list_nx_create_empty): Renamed from
54081         gl_list_create_empty.
54082         (gl_list_nx_create): Renamed from gl_list_create.
54083         (gl_list_node_nx_set_value): Renamed from gl_list_node_set_value.
54084         (gl_list_nx_set_at): Renamed from gl_list_set_at.
54085         (gl_list_nx_add_first): Renamed from gl_list_add_first.
54086         (gl_list_nx_add_last): Renamed from gl_list_add_last.
54087         (gl_list_nx_add_before): Renamed from gl_list_add_before.
54088         (gl_list_nx_add_after): Renamed from gl_list_add_after.
54089         (gl_list_nx_add_at): Renamed from gl_list_add_at.
54090         (gl_sortedlist_nx_add): Renamed from gl_sortedlist_add.
54091         * lib/gl_array_list.c: Don't include xalloc.h.
54092         (gl_array_nx_create_empty): Renamed from gl_array_create_empty. Return
54093         NULL upon out-of-memory.
54094         (gl_array_nx_create): Renamed from gl_array_create. Return NULL upon
54095         out-of-memory.
54096         (gl_array_node_nx_set_value): Renamed from gl_array_node_set_value.
54097         Change return type to 'int'.
54098         (gl_array_nx_set_at): Renamed from gl_array_set_at.
54099         (grow): Change return type to 'int'. Return -1 upon out-of-memory.
54100         (gl_array_nx_add_first): Renamed from gl_array_add_first. Return NULL
54101         upon out-of-memory.
54102         (gl_array_nx_add_last): Renamed from gl_array_add_last. Return NULL
54103         upon out-of-memory.
54104         (gl_array_nx_add_before): Renamed from gl_array_add_before. Return NULL
54105         upon out-of-memory.
54106         (gl_array_nx_add_after): Renamed from gl_array_add_after. Return NULL
54107         upon out-of-memory.
54108         (gl_array_nx_add_at): Renamed from gl_array_add_at. Return NULL upon
54109         out-of-memory.
54110         (gl_array_sortedlist_nx_add): Renamed from gl_array_sortedlist_add.
54111         Update.
54112         (gl_array_list_implementation): Update.
54113         * lib/gl_carray_list.c: Don't include xalloc.h.
54114         (gl_carray_nx_create_empty): Renamed from gl_carray_create_empty.
54115         Return NULL upon out-of-memory.
54116         (gl_carray_nx_create): Renamed from gl_carray_create. Return NULL upon
54117         out-of-memory.
54118         (gl_carray_node_nx_set_value): Renamed from gl_carray_node_set_value.
54119         Change return type to 'int'.
54120         (gl_carray_nx_set_at): Renamed from gl_carray_set_at.
54121         (grow): Change return type to 'int'. Return -1 upon out-of-memory.
54122         (gl_carray_nx_add_first): Renamed from gl_carray_add_first. Return NULL
54123         upon out-of-memory.
54124         (gl_carray_nx_add_last): Renamed from gl_carray_add_last. Return NULL
54125         upon out-of-memory.
54126         (gl_carray_nx_add_at): Renamed from gl_carray_add_at. Return NULL upon
54127         out-of-memory.
54128         (gl_carray_nx_add_before): Renamed from gl_carray_add_before. Update.
54129         (gl_carray_nx_add_after): Renamed from gl_carray_add_after. Update.
54130         (gl_carray_sortedlist_nx_add): Renamed from gl_carray_sortedlist_add.
54131         Update.
54132         (gl_carray_list_implementation): Update.
54133         * lib/gl_anyhash_list2.h (hash_resize): Do nothing upon out-of-memory.
54134         * lib/gl_anylinked_list2.h (gl_linked_nx_create_empty): Renamed from
54135         gl_linked_create_empty. Return NULL upon out-of-memory.
54136         (gl_linked_nx_create): Renamed from gl_linked_create. Return NULL upon
54137         out-of-memory.
54138         (gl_linked_node_nx_set_value): Renamed from gl_linked_node_set_value.
54139         Change return type to 'int'. Return -1 upon out-of-memory.
54140         (gl_linked_nx_set_at): Renamed from gl_linked_set_at. Return NULL upon
54141         out-of-memory.
54142         (gl_linked_nx_add_first): Renamed from gl_linked_add_first. Return NULL
54143         upon out-of-memory.
54144         (gl_linked_nx_add_last): Renamed from gl_linked_add_last. Return NULL
54145         upon out-of-memory.
54146         (gl_linked_nx_add_before): Renamed from gl_linked_add_before. Return
54147         NULL upon out-of-memory.
54148         (gl_linked_nx_add_after): Renamed from gl_linked_add_after. Return NULL
54149         upon out-of-memory.
54150         (gl_linked_nx_add_at): Renamed from gl_linked_add_at. Return NULL upon
54151         out-of-memory.
54152         (gl_linked_sortedlist_nx_add): Renamed from gl_linked_sortedlist_add.
54153         Update.
54154         * lib/gl_linked_list.c: Don't include xalloc.h.
54155         (gl_linked_list_implementation): Update.
54156         * lib/gl_linkedhash_list.c: Don't include xalloc.h.
54157         (add_to_bucket): Change return type to 'int'.
54158         (gl_linkedhash_list_implementation): Update.
54159         * lib/gl_anytree_list1.h (free_subtree): New function.
54160         * lib/gl_anytree_list2.h (gl_tree_nx_create_empty): Renamed from
54161         gl_tree_create_empty. Return NULL upon out-of-memory.
54162         (gl_tree_node_nx_set_value): Renamed from gl_tree_node_set_value.
54163         Change return type to 'int'. Return -1 upon out-of-memory.
54164         (gl_tree_nx_set_at): Renamed from gl_tree_set_at. Return NULL upon
54165         out-of-memory.
54166         (gl_tree_nx_add_at): Renamed from gl_tree_add_at. Update.
54167         (gl_tree_remove_node): New function, moved here from
54168         lib/gl_anyavltree_list2.h and lib/gl_anyrbtree_list2.h.
54169         (gl_tree_sortedlist_nx_add): Renamed from gl_tree_sortedlist_add.
54170         Update.
54171         * lib/gl_anyavltree_list2.h (create_subtree_with_contents): Use
54172         malloc, not xmalloc. Return NULL upon out-of-memory.
54173         (gl_tree_nx_create): Renamed from gl_tree_create. Return NULL upon
54174         out-of-memory.
54175         (gl_tree_remove_node_from_tree): New function, extracted from
54176         gl_tree_remove_node.
54177         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Return NULL
54178         upon out-of-memory.
54179         (gl_tree_nx_add_last): Renamed from gl_tree_add_last. Return NULL upon
54180         out-of-memory.
54181         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Return NULL
54182         upon out-of-memory.
54183         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Return NULL
54184         upon out-of-memory.
54185         (gl_tree_remove_node): Remove function. Moved to gl_anytree_list2.h.
54186         * lib/gl_anyrbtree_list2.h (create_subtree_with_contents): Use malloc,
54187         not xmalloc. Return NULL upon out-of-memory.
54188         (gl_tree_nx_create): Renamed from gl_tree_create. Return NULL upon
54189         out-of-memory.
54190         (gl_tree_remove_node_from_tree): New function, extracted from
54191         gl_tree_remove_node.
54192         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Return NULL
54193         upon out-of-memory.
54194         (gl_tree_nx_add_last): Renamed from gl_tree_add_last. Return NULL upon
54195         out-of-memory.
54196         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Return NULL
54197         upon out-of-memory.
54198         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Return NULL
54199         upon out-of-memory.
54200         (gl_tree_remove_node): Remove function. Moved to gl_anytree_list2.h.
54201         * lib/gl_avltree_list.c: Don't include xalloc.h. Include
54202         gl_anytree_list1.h before gl_anyavltree_list2.h.
54203         (gl_avltree_list_implementation): Update.
54204         * lib/gl_rbtree_list.c: Don't include xalloc.h. Include
54205         gl_anytree_list1.h before gl_anyavltree_list2.h.
54206         (gl_rbtree_list_implementation): Update.
54207         * lib/gl_anytreehash_list1.h (add_to_bucket, add_nodes_to_buckets):
54208         Change return type to 'int'. Return -1 upon out-of-memory. Use
54209         __builtin_expect.
54210         * lib/gl_avltreehash_list.c: Don't include xalloc.h.
54211         (gl_avltreehash_list_implementation): Update.
54212         * lib/gl_rbtreehash_list.c: Don't include xalloc.h.
54213         (gl_rbtreehash_list_implementation): Update.
54214         * modules/array-list (Depends-on): Remove xalloc.
54215         * modules/carray-list (Depends-on): Likewise.
54216         * modules/linked-list (Depends-on): Likewise.
54217         * modules/linkedhash-list (Depends-on): Likewise.
54218         * modules/avltree-list (Depends-on): Likewise.
54219         * modules/rbtree-list (Depends-on): Likewise.
54220         * modules/avltreehash-list (Depends-on): Likewise.
54221         * modules/rbtreehash-list (Depends-on): Likewise.
54223         * modules/xsublist: New file.
54224         * lib/gl_xsublist.h: New file.
54225         * lib/gl_xsublist.c: New file.
54226         * lib/gl_sublist.h (gl_sublist_create): Disable declaration.
54227         (gl_sublist_nx_create): New declaration.
54228         * lib/gl_sublist.c: Don't include xalloc.h.
54229         (gl_sublist_nx_create_empty): Renamed from gl_sublist_create_empty.
54230         (gl_sublist_nx_create_fill): Renamed from gl_sublist_create_fill.
54231         (gl_sublist_node_nx_set_value): Renamed from gl_sublist_node_set_value.
54232         Change return type to 'int'. Return -1 upon out-of-memory.
54233         (gl_sublist_nx_set_at): Renamed from gl_sublist_set_at. Return NULL
54234         upon out-of-memory.
54235         (gl_sublist_nx_add_first): Renamed from gl_sublist_add_first. Return
54236         NULL upon out-of-memory.
54237         (gl_sublist_nx_add_last): Renamed from gl_sublist_add_last. Return NULL
54238         upon out-of-memory.
54239         (gl_sublist_nx_add_before): Renamed from gl_sublist_add_before. Return
54240         NULL upon out-of-memory.
54241         (gl_sublist_nx_add_after): Renamed from gl_sublist_add_after. Return
54242         NULL upon out-of-memory.
54243         (gl_sublist_nx_add_at): Renamed from gl_sublist_add_at. Return NULL
54244         upon out-of-memory.
54245         (gl_sublist_sortedlist_nx_add): Renamed from gl_sublist_sortedlist_add.
54246         (gl_sublist_list_implementation): Update.
54247         (gl_sublist_nx_create): Renamed from gl_sublist_create. Return NULL
54248         upon out-of-memory.
54249         * modules/sublist (Depends-on): Remove xalloc.
54251         * tests/test-array_list.c: Use gl_list_nx_* functions where possible.
54252         * tests/test-carray_list.c: Likewise.
54253         * tests/test-linked_list.c: Likewise.
54254         * tests/test-linkedhash_list.c: Likewise.
54255         * tests/test-avltree_list.c: Likewise.
54256         * tests/test-rbtree_list.c: Likewise.
54257         * tests/test-avltreehash_list.c: Likewise.
54258         * tests/test-rbtreehash_list.c: Likewise.
54259         * modules/array-list-tests (Makefile.am): Don't link with @LIBINTL@.
54260         * modules/carray-list-tests (Makefile.am): Likewise.
54261         * modules/linked-list-tests (Makefile.am): Likewise.
54262         * modules/linkedhash-list-tests (Makefile.am): Likewise.
54263         * modules/avltree-list-tests (Makefile.am): Likewise.
54264         * modules/rbtree-list-tests (Makefile.am): Likewise.
54265         * modules/avltreehash-list-tests (Makefile.am): Likewise.
54266         * modules/rbtreehash-list-tests (Makefile.am): Likewise.
54268         * NEWS: Mention the changes.
54270         * lib/clean-temp.c: Include gl_xlist.h.
54271         * modules/clean-temp (Depends-on): Add xlist.
54273         * lib/git-merge-changelog.c: Include gl_xlist.h instead of gl_list.h.
54274         * modules/git-merge-changelog (Depends-on): Add xlist. Remove list.
54276         * tests/test-array_oset.c: Include gl_xlist.h.
54277         * modules/array-oset-tests (Depends-on): Add xlist.
54279         Reported by José E. Marchesi <jemarch@gnu.org>.
54281 2009-12-13  Bruno Haible  <bruno@clisp.org>
54283         Move the malloc checking from module 'oset' to new module 'xoset'.
54284         * modules/xoset: New file.
54285         * lib/gl_xoset.h: New file.
54286         * lib/gl_xoset.c: New file.
54287         * lib/gl_oset.h (gl_oset_create_empty, gl_oset_add): Disable
54288         declarations.
54289         (gl_oset_nx_create_empty, gl_oset_nx_add): New declarations.
54290         (struct gl_oset_implementation): Rename and change methods accordingly.
54291         (gl_oset_nx_create_empty): Renamed from gl_oset_create_empty.
54292         (gl_oset_nx_add): Renamed from gl_oset_add. Change return type to
54293         'int'. Mark as __warn_unused_result__.
54294         * lib/gl_oset.c (gl_oset_nx_create_empty): Renamed from
54295         gl_oset_create_empty.
54296         (gl_oset_nx_add): Renamed from gl_oset_add. Change return type to
54297         'int'.
54298         * lib/gl_array_oset.c: Don't include xalloc.h.
54299         (gl_array_nx_create_empty): Renamed from gl_array_create_empty. Use
54300         malloc, not xmalloc.
54301         (grow): Change return type to 'int'. Don't call xalloc_die.
54302         (gl_array_nx_add_at): Renamed from gl_array_add_at. Change return type
54303         to 'int'.
54304         (gl_array_nx_add): Renamed from gl_array_add. Change return type to
54305         'int'.
54306         (gl_array_oset_implementation): Update.
54307         * lib/gl_anytree_oset.h (gl_tree_nx_create_empty): Renamed from
54308         gl_tree_create_empty.
54309         (gl_tree_nx_add): Renamed from gl_tree_add. Change return type to
54310         'int'.
54311         * lib/gl_avltree_oset.c: Don't include xalloc.h.
54312         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Use malloc, not
54313         xmalloc.
54314         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Use malloc,
54315         not xmalloc.
54316         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Use malloc, not
54317         xmalloc.
54318         (gl_avltree_oset_implementation): Update.
54319         * lib/gl_rbtree_oset.c: Don't include xalloc.h.
54320         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Use malloc, not
54321         xmalloc.
54322         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Use malloc,
54323         not xmalloc.
54324         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Use malloc, not
54325         xmalloc.
54326         (gl_rbtree_oset_implementation): Update.
54327         * modules/array-oset (Depends-on): Remove xalloc.
54328         * modules/avltree-oset (Depends-on): Likewise.
54329         * modules/rbtree-oset (Depends-on): Likewise.
54330         * tests/test-array_oset.c: Use gl_oset_nx_* functions where possible.
54331         * tests/test-avltree_oset.c: Likewise.
54332         * tests/test-rbtree_oset.c: Likewise.
54333         * lib/gl_anytreehash_list1.h (add_to_bucket): Likewise.
54334         * modules/avltree-oset-tests (Makefile.am): Don't link with @LIBINTL@.
54335         * modules/rbtree-oset-tests (Makefile.am): Likewise.
54336         * NEWS: Mention the change.
54338 2009-12-05  Alfred M. Szmidt  <ams@gnu.org>
54340         maint.mk: allow a project to override release-prep commands
54341         * top/maint.mk (alpha, beta, stable): Move release-preparatory
54342         commands into a new rule.
54343         (release-prep): New rule.
54344         (release-prep-hook): New overridable variable.
54346 2009-12-13  Bruno Haible  <bruno@clisp.org>
54348         * lib/localcharset.c (locale_charset): Fix comment about use of GetACP.
54350 2009-12-13  Jim Meyering  <meyering@redhat.com>
54352         maint.mk (null_AM_MAKEFLAGS, built_programs): remove unused definitions
54353         * top/maint.mk (null_AM_MAKEFLAGS, built_programs): Remove definitions.
54355 2009-12-12  Bruno Haible  <bruno@clisp.org>
54357         duplocale: Tweak.
54358         * lib/duplocale.c (rpl_duplocale): Mark categories array as 'const'.
54360 2009-12-12  Karl Berry  <karl@gnu.org>
54362         * config/srclist.txt (strtoll.c): tab changes, no more sync.
54364 2009-12-12  Bruno Haible  <bruno@clisp.org>
54366         * m4/po.m4: Undo incorrect untabification.
54368 2009-12-12  Bruno Haible  <bruno@clisp.org>
54370         c-strtod, c-strtold: Use multithread-safe implementation on MacOS X.
54371         * modules/c-strtod (Depends-on): Add locale.
54372         * modules/c-strtold (Depends-on): Likewise.
54374 2009-12-12  Bruno Haible  <bruno@clisp.org>
54376         * lib/localcharset.c (locale_charset): Add comment about use of GetACP.
54378 2009-12-11  Eric Blake  <ebb9@byu.net>
54380         setenv: relax requirement in light of POSIX ruling
54381         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Test handling of "" but
54382         not NULL.
54383         * tests/test-setenv.c (main): Relax test.
54384         * tests/test-unsetenv.c (main): Likewise.
54385         * doc/posix-functions/setenv.texi (setenv): Document this.
54386         * doc/posix-functions/unsetenv.texi (unsetenv): Likewise.
54388 2009-12-11  Bruno Haible  <bruno@clisp.org>
54390         New module 'fd-safer-flag'.
54391         * lib/dup-safer-flag.c: New file, extracted from lib/dup-safer.c.
54392         * lib/dup-safer.c (dup_safer_flag): Remove function.
54393         * lib/fd-safer-flag.c: New file, extracted from lib/fd-safer.c.
54394         * lib/fd-safer.c (fd_safer_flag): Remove function.
54395         * lib/unistd-safer.h (dup_safer_flag, fd_safer_flag): Update condition.
54396         * modules/cloexec (configure.ac): Drop indicator macro.
54397         * modules/fd-safer-flag: New file.
54398         * modules/pipe2-safer (Depends-on): Add fd-safer-flag. Remove cloexec.
54399         * modules/stdlib-safer (Depends-on): Add fd-safer-flag.
54400         * modules/unistd-safer-tests (Depends-on): Add fd-safer-flag.
54402 2009-12-11  Bruno Haible  <bruno@clisp.org>
54404         Tests for module 'nl_langinfo'.
54405         * modules/nl_langinfo-tests: New file.
54406         * tests/test-nl_langinfo.sh: New file.
54407         * tests/test-nl_langinfo.c: New file.
54409         New module 'nl_langinfo'.
54410         * lib/nl_langinfo.c: New file.
54411         * m4/nl_langinfo.m4: New file.
54412         * modules/nl_langinfo: New file.
54413         * doc/posix-functions/nl_langinfo.texi: Mention the new module.
54415 2009-12-11  Bruno Haible  <bruno@clisp.org>
54417         Tests for module 'langinfo'.
54418         * modules/langinfo-tests: New file.
54419         * tests/test-langinfo.c: New file.
54421         New module 'langinfo'.
54422         * lib/langinfo.in.h: New file.
54423         * m4/langinfo_h.m4: New file.
54424         * modules/langinfo: New file.
54425         * doc/posix-headers/langinfo.texi: Mention the new module.
54427 2009-12-11  Bruno Haible  <bruno@clisp.org>
54429         * lib/config.charset: Untabify.
54431 2009-12-11  Bruno Haible  <bruno@clisp.org>
54433         * modules/unistd-safer (configure.ac): Drop indicator macro.
54435 2009-12-11  Bruno Haible  <bruno@clisp.org>
54437         Move pipe2-safer code to its own file.
54438         * lib/pipe2-safer.c: New file, extracted from lib/pipe-safer.c.
54439         * lib/pipe-safer.c (pipe2_safer): Remove function.
54440         * modules/pipe2-safer (Files): Add lib/pipe2-safer.c.
54441         (Makefile.am): Add it to lib_SOURCES.
54443 2009-12-10  Bruno Haible  <bruno@clisp.org>
54445         * lib/recvfrom.c (rpl_recvfrom): Allow the from argument to be NULL.
54447 2009-12-10  Bruno Haible  <bruno@clisp.org>
54449         Declare which arguments expect non-NULL values, for GCC and clang.
54450         * build-aux/arg-nonnull.h: New file.
54451         * modules/arg-nonnull: New file.
54452         * lib/arpa_inet.in.h (_GL_ARG_NONNULL): New placeholder.
54453         (inet_ntop, inet_pton): Use it.
54454         * lib/dirent.in.h (_GL_ARG_NONNULL): New placeholder.
54455         (closedir, dirfd, opendir, scandir, alphasort): Use it.
54456         * lib/fcntl.in.h (_GL_ARG_NONNULL): New placeholder.
54457         (open, openat): Use it.
54458         * lib/fnmatch.in.h (_GL_ARG_NONNULL): New placeholder.
54459         (fnmatch): Use it.
54460         * lib/getopt.in.h (_GL_ARG_NONNULL): New placeholder.
54461         (getopt, getopt_long, getopt_long_only): Use it.
54462         * lib/glob.in.h (_GL_ARG_NONNULL): New placeholder.
54463         * lib/glob-libc.h (glob, globfree, glob64, globfree64, glob_pattern_p):
54464         Use it.
54465         * lib/iconv.in.h (_GL_ARG_NONNULL): New placeholder.
54466         (iconv_open): Use it.
54467         * lib/inttypes.in.h (_GL_ARG_NONNULL): New placeholder.
54468         (strtoimax, strtoumax): Use it.
54469         * lib/locale.in.h (_GL_ARG_NONNULL): New placeholder.
54470         (duplocale): Use it.
54471         * lib/math.in.h (_GL_ARG_NONNULL): New placeholder.
54472         (frexp, frexpl): Use it.
54473         * lib/netdb.in.h (_GL_ARG_NONNULL): New placeholder.
54474         (getaddrinfo, freeaddrinfo, getnameinfo): Use it.
54475         * lib/search.in.h (_GL_ARG_NONNULL): New placeholder.
54476         (tsearch, tfind, tdelete, twalk): Use it.
54477         * lib/signal.in.h (_GL_ARG_NONNULL): New placeholder.
54478         (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset,
54479         sigpending): Use it.
54480         * lib/spawn.in.h (_GL_ARG_NONNULL): New placeholder.
54481         (posix_spawn, posix_spawnp, posix_spawnattr_init,
54482         posix_spawnattr_destroy, posix_spawnattr_getsigdefault,
54483         posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask,
54484         posix_spawnattr_setsigmask, posix_spawnattr_getflags,
54485         posix_spawnattr_setflags, posix_spawnattr_getpgroup,
54486         posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy,
54487         posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam,
54488         posix_spawnattr_setschedparam, posix_spawn_file_actions_init,
54489         posix_spawn_file_actions_destroy, posix_spawn_file_actions_addopen,
54490         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2):
54491         Use it.
54492         * lib/stdio.in.h (_GL_ARG_NONNULL): New placeholder.
54493         (dprintf, fclose, fopen, fprintf, fpurge, fputc, fputs, freopen,
54494         rpl_fseek, fseeko, rpl_ftell, ftello, fwrite, getdelim, getline,
54495         obstack_printf, obstack_vprintf, popen, printf, putc, puts, remove,
54496         rename, renameat, snprintf, sprintf, asprintf, vasprintf, vdprintf,
54497         vfprintf, vprintf, vsnprintf, vsprintf): Use it.
54498         * lib/stdlib.in.h (_GL_ARG_NONNULL): New placeholder.
54499         (atoll, canonicalize_file_name, getloadavg, getsubopt, mkdtemp,
54500         mkostemp, mkostemps, mkstemp, mkstemps, putenv, srandom_r, initstate_r,
54501         setstate_r, random_r, realpath, rpmatch, setenv, strtod, strtoll,
54502         strtoull, unsetenv): Use it.
54503         * lib/string.in.h (_GL_ARG_NONNULL): New placeholder.
54504         (memchr, memmem, mempcpy, memrchr, rawmemchr, stpcpy, stpncpy,
54505         strchrnul, strdup, strndup, strnlen, strpbrk, strsep, strstr,
54506         strcasestr, strtok_r, mbslen, mbsnlen, mbschr, mbsrchr, mbsstr,
54507         mbscasecmp, mbsncasecmp, mbspcasecmp, mbscasestr, mbscspn, mbspbrk,
54508         mbsspn, mbssep, mbstok_r, strverscmp): Use it.
54509         * lib/strings.in.h (_GL_ARG_NONNULL): New placeholder.
54510         (strcasecmp, strncasecmp): Use it.
54511         * lib/sys_socket.in.h (_GL_ARG_NONNULL): New placeholder.
54512         (rpl_connect, rpl_bind, rpl_getpeername, rpl_getsockname,
54513         rpl_getsockopt, rpl_recv, rpl_send, rpl_recvfrom, rpl_sendto,
54514         rpl_setsockopt): Use it.
54515         * lib/sys_stat.in.h (_GL_ARG_NONNULL): New placeholder.
54516         (fchmodat, fstat, fstatat, lchmod, rpl_lstat, mkdir, mkdirat, mkfifo,
54517         mkfifoat, mknod, mknodat, stat, utimensat): Use it.
54518         * lib/sys_time.in.h (_GL_ARG_NONNULL): New placeholder.
54519         (gettimeofday): Use it.
54520         * lib/sys_times.in.h (_GL_ARG_NONNULL): New placeholder.
54521         (times): Use it.
54522         * lib/sys_utsname.in.h (_GL_ARG_NONNULL): New placeholder.
54523         (uname): Use it.
54524         * lib/time.in.h (_GL_ARG_NONNULL): New placeholder.
54525         (nanosleep, mktime, localtime_r, gmtime_r, strptime, timegm): Use it.
54526         * lib/unistd.in.h (_GL_ARG_NONNULL): New placeholder.
54527         (chown, euidaccess, faccessat, _gl_register_fd, fchownat,
54528         getdomainname, gethostname, getlogin_r, lchown, link, linkat, pipe2,
54529         pread, readlink, readlinkat, rmdir, symlink, symlinkat, unlink,
54530         unlinkat, write): Use it.
54531         * lib/wchar.in.h (_GL_ARG_NONNULL): New placeholder.
54532         (mbsrtowcs, mbsnrtowcs, wcsrtombs, wcsnrtombs): Use it.
54533         * lib/argv-iter.h: Include arg-nonnull.h.
54534         (_ATTRIBUTE_NONNULL_): Remove macro.
54535         (argv_iter_init_argv, argv_iter_init_stream, argv_iter,
54536         argv_iter_n_args, argv_iter_free): Use _GL_ARG_NONNULL.
54537         * lib/canonicalize-lgpl.c (_GL_ARG_NONNULL): Define, to defeat gcc
54538         optimization.
54539         * lib/getaddrinfo.c (_GL_ARG_NONNULL): Likewise.
54540         * lib/getdelim.c (_GL_ARG_NONNULL): Likewise.
54541         * lib/glob.c (_GL_ARG_NONNULL): Likewise.
54542         * lib/random_r.c (_GL_ARG_NONNULL): Likewise.
54543         * lib/setenv.c (_GL_ARG_NONNULL): Likewise.
54544         * lib/strtod.c (_GL_ARG_NONNULL): Likewise.
54545         * lib/tsearch.c (_GL_ARG_NONNULL): Likewise.
54546         * lib/unsetenv.c (_GL_ARG_NONNULL): Likewise.
54547         * modules/arpa_inet (Depends-on): Add arg-nonnull.
54548         (Makefile.am): Insert arg-nonnull.h into arpa/inet.h.
54549         * modules/dirent (Depends-on): Add arg-nonnull.
54550         (Makefile.am): Insert arg-nonnull.h into dirent.h.
54551         * modules/fcntl-h (Depends-on): Add arg-nonnull.
54552         (Makefile.am): Insert arg-nonnull.h into fcntl.h.
54553         * modules/fnmatch (Depends-on): Add arg-nonnull.
54554         (Makefile.am): Insert arg-nonnull.h into fnmatch.h.
54555         * modules/getopt-posix (Depends-on): Add arg-nonnull.
54556         (Makefile.am): Insert arg-nonnull.h into getopt.h.
54557         * modules/glob (Depends-on): Add arg-nonnull.
54558         (Makefile.am): Insert arg-nonnull.h into glob.h.
54559         * modules/iconv_open (Depends-on): Add arg-nonnull.
54560         (Makefile.am): Insert arg-nonnull.h into iconv.h.
54561         * modules/inttypes (Depends-on): Add arg-nonnull.
54562         (Makefile.am): Insert arg-nonnull.h into inttypes.h.
54563         * modules/locale (Depends-on): Add arg-nonnull.
54564         (Makefile.am): Insert arg-nonnull.h into locale.h.
54565         * modules/math (Depends-on): Add arg-nonnull.
54566         (Makefile.am): Insert arg-nonnull.h into math.h.
54567         * modules/netdb (Depends-on): Add arg-nonnull.
54568         (Makefile.am): Insert arg-nonnull.h into netdb.h.
54569         * modules/search (Depends-on): Add arg-nonnull.
54570         (Makefile.am): Insert arg-nonnull.h into search.h.
54571         * modules/signal (Depends-on): Add arg-nonnull.
54572         (Makefile.am): Insert arg-nonnull.h into signal.h.
54573         * modules/spawn (Depends-on): Add arg-nonnull.
54574         (Makefile.am): Insert arg-nonnull.h into spawn.h.
54575         * modules/stdio (Depends-on): Add arg-nonnull.
54576         (Makefile.am): Insert arg-nonnull.h into stdio.h.
54577         * modules/stdlib (Depends-on): Add arg-nonnull.
54578         (Makefile.am): Insert arg-nonnull.h into stdlib.h.
54579         * modules/string (Depends-on): Add arg-nonnull.
54580         (Makefile.am): Insert arg-nonnull.h into string.h.
54581         * modules/strings (Depends-on): Add arg-nonnull.
54582         (Makefile.am): Insert arg-nonnull.h into strings.h.
54583         * modules/sys_socket (Depends-on): Add arg-nonnull.
54584         (Makefile.am): Insert arg-nonnull.h into sys/socket.h.
54585         * modules/sys_stat (Depends-on): Add arg-nonnull.
54586         (Makefile.am): Insert arg-nonnull.h into sys/stat.h.
54587         * modules/sys_time (Depends-on): Add arg-nonnull.
54588         (Makefile.am): Insert arg-nonnull.h into sys/time.h.
54589         * modules/sys_times (Depends-on): Add arg-nonnull.
54590         (Makefile.am): Insert arg-nonnull.h into sys/times.h.
54591         * modules/sys_utsname (Depends-on): Add arg-nonnull.
54592         (Makefile.am): Insert arg-nonnull.h into sys/utsname.h.
54593         * modules/time (Depends-on): Add arg-nonnull.
54594         (Makefile.am): Insert arg-nonnull.h into time.h.
54595         * modules/unistd (Depends-on): Add arg-nonnull.
54596         (Makefile.am): Insert arg-nonnull.h into unistd.h.
54597         * modules/wchar (Depends-on): Add arg-nonnull.
54598         (Makefile.am): Insert arg-nonnull.h into wchar.h.
54599         * modules/argv-iter (Depends-on): Add arg-nonnull.
54600         * tests/test-canonicalize.c (null_ptr): New function.
54601         (main): Use it.
54602         * tests/test-canonicalize-lgpl.c (null_ptr): New function.
54603         (main): Use it.
54604         * tests/test-memmem.c (null_ptr): New function.
54605         (main): Use it.
54606         Reported by Jim Meyering.
54608 2009-12-10  Bruno Haible  <bruno@clisp.org>
54610         Use spaces for indentation, not tabs.
54611         * lib/**/*.[hcy] except lib/reg*.[hc]: Untabify.
54612         * m4/*.m4: Untabify.
54613         * build-aux/*.h: Untabify.
54614         * tests/**/*.[hc]: Untabify.
54615         * README: New section "Indent with spaces, not TABs", based on
54616         coreutils/HACKING and comments by Pádraig Brady and Paolo Bonzini.
54617         * NEWS: Mention the change.
54619 2009-12-10  Bruno Haible  <bruno@clisp.org>
54621         pty test: Fix link error.
54622         * modules/pty-tests (Makefile.am): Add the default LDADD value to
54623         test_pty_LDADD.
54625 2009-12-07  Simon Josefsson  <simon@josefsson.org>
54627         * modules/pty: New file.
54628         * modules/pty-tests: New file.
54629         * m4/pty.m4: New file.
54630         * tests/test-pty.c: New file.
54631         * doc/glibc-headers/pty.texi: Modified.
54632         * doc/glibc-functions/forkpty.texi: Modified.
54633         * doc/glibc-functions/openpty.texi: Modified.
54635 2009-12-10  Bruno Haible  <bruno@clisp.org>
54637         Avoid syntax error in C++ mode.
54638         * lib/stdio.in.h (rename): Don't use parameter name 'new'.
54640 2009-12-10  Bruno Haible  <bruno@clisp.org>
54642         Use sed with option -e.
54643         * gnulib-tool (func_version, func_emit_copyright_notice,
54644         func_emit_initmacro_end, func_import, func_create_testdir): Pass
54645         option -e to sed.
54646         * modules/link-warning (Makefile.am): Likewise.
54648 2009-12-10  Jim Meyering  <meyering@redhat.com>
54650         mgetgroups: do not write bytes beyond end of malloc'd buffer
54651         * lib/mgetgroups.c: Fix an off-by-one error.  When we have no
54652         username, we call getgroups with a one-element-shorter buffer,
54653         but still told it the length was original, max_n_groups.
54655 2009-12-09  Eric Blake  <ebb9@byu.net>
54657         cloexec: relax license
54658         * modules/cloexec (Maintainer): Add myself.
54659         (License): Use LGPL, not GPL.
54661         link-warning: optimize generation
54662         * modules/link-warning (Makefile.am): Reduce process usage.
54664 2009-12-09  Bruno Haible  <bruno@clisp.org>
54666         * doc/posix-functions/unsetenv.texi: Mention Solaris 10 bug for which a
54667         workaround was added on 2009-11-17.
54669 2009-12-09  Jim Meyering  <meyering@redhat.com>
54670             Bruno Haible  <bruno@clisp.org>
54672         link-warning: Allow extra lines at the top of build-aux/link-warning.h.
54673         * modules/link-warning (Makefile.am): Make the comment-removing sed
54674         command more robust in the face of bootstrap-prepended comment lines.
54676 2009-12-09  Bruno Haible  <bruno@clisp.org>
54678         * lib/mgetgroups.c (mgetgroups): Don't remove duplicates if there is at
54679         most one group.
54681 2009-12-09  Simon Josefsson  <simon@josefsson.org>
54682             Bruno Haible  <bruno@clisp.org>
54684         * build-aux/link-warning.h: Add copyright notice.
54685         * modules/link-warning (Makefile.am): Generate link-warning.h from
54686         build-aux/link-warning.h. Update LINK_WARNING_H accordingly.
54687         * NEWS: Mention change in link-warning module.
54688         * modules/arpa_inet (Makefile.am): Add dependency to arpa/inet.h.
54689         * modules/dirent (Makefile.am): Add dependency to dirent.h.
54690         * modules/fcntl-h (Makefile.am): Add dependency to fcntl.h.
54691         * modules/getopt-posix (Makefile.am): Add dependency to getopt.h.
54692         * modules/inttypes (Makefile.am): Add dependency to inttypes.h.
54693         * modules/math (Makefile.am): Add dependency to math.h.
54694         * modules/search (Makefile.am): Add dependency to search.h.
54695         * modules/signal (Makefile.am): Add dependency to signal.h.
54696         * modules/spawn (Makefile.am): Add dependency to spawn.h.
54697         * modules/stdio (Makefile.am): Add dependency to stdio.h.
54698         * modules/stdlib (Makefile.am): Add dependency to stdlib.h.
54699         * modules/string (Makefile.am): Add dependency to string.h.
54700         * modules/strings (Makefile.am): Add dependency to strings.h.
54701         * modules/sys_ioctl (Makefile.am): Add dependency to sys/ioctl.h.
54702         * modules/sys_select (Makefile.am): Add dependency to sys/select.h.
54703         * modules/sys_socket (Makefile.am): Add dependency to sys/socket.h.
54704         * modules/sys_stat (Makefile.am): Add dependency to sys/stat.h.
54705         * modules/sys_times (Makefile.am): Add dependency to sys/times.h.
54706         * modules/sys_utsname (Makefile.am): Add dependency to sys/utsname.h.
54707         * modules/sys_wait (Makefile.am): Add dependency to sys/wait.h.
54708         * modules/unistd (Makefile.am): Add dependency to unistd.h.
54709         * modules/wchar (Makefile.am): Add dependency to wchar.h.
54711 2009-12-09  Bruno Haible  <bruno@clisp.org>
54713         fchdir: Optimize away rpl_fstat when possible.
54714         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set REPLACE_FSTAT only together with
54715         REPLACE_OPEN_DIRECTORY.
54716         * lib/fchdir.c (rpl_fstat): Define only when REPLACE_OPEN_DIRECTORY.
54718 2009-12-09  Bruno Haible  <bruno@clisp.org>
54720         * lib/fchdir.c: Update comment.
54722 2009-12-09  Bruno Haible  <bruno@clisp.org>
54724         * lib/cloexec.c (set_cloexec_flag): Clarify intent of dup2 call.
54726 2009-12-08  Eric Blake  <ebb9@byu.net>
54728         fchdir: avoid memory leak on re-registration.
54729         * lib/fchdir.c (ensure_dirs_slot): Avoid memory leak.
54731 2009-12-08  Jim Meyering  <meyering@redhat.com>
54733         init.sh: avoid Solaris 10 /bin/sh portability problem
54734         Solaris 10's /bin/sh does not pass '.' arguments 2.. to the
54735         sourced script:
54736           $ printf 'echo "$@"\n' > f; /bin/sh -c '. ./f bar'
54737           $ printf 'echo "$@"\n' > f; /bin/bash -c '. ./f bar'
54738           bar
54739         tests/init.sh relied on that, accepting a --set-path=DIR argument,
54740         and two tests used that idiom.
54741         * tests/init.sh: Update suggested usage comments.
54742         (path_prepend_): New function, to be used in place
54743         of the --src-path=DIR option.
54744         (setup_): Move PATH-prepending code into path_prepend_.
54745         * tests/test-pread.sh: Adapt to new usage.
54746         * tests/test-xalloc-die.sh: Likewise.
54748 2009-12-08  Simon Josefsson  <simon@josefsson.org>
54750         * doc/gnulib.texi (Glibc pty.h): Add.
54751         * doc/glibc-functions/forkpty.texi: Add.
54752         * doc/glibc-functions/openpty.texi: Add.
54753         Suggested by Bruno Haible.
54755 2009-12-08  Eric Blake  <ebb9@byu.net>
54757         fchdir: fix logic bugs
54758         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Fix logic bug.
54759         * tests/test-fchdir.c (main): Enhance test.
54760         * lib/fchdir.c (rpl_fstat): Always provide if fchdir replacement
54761         is in use.
54763         dup2: fix logic bugs
54764         * lib/dup2.c (dup2): Fix logic bugs.  Use HAVE_DUP2 rather than
54765         REPLACE_DUP2 to decide when rpl_dup2 is needed.
54766         * m4/dup2.m4 (gl_REPLACE_DUP2): Only define REPLACE_DUP2 when dup2
54767         exists.
54768         (gl_FUNC_DUP2): Drop unneeded AC_DEFINE.
54770 2009-12-07  Eric Blake  <ebb9@byu.net>
54772         unlink: fix m4 detection
54773         * m4/unlink.m4 (gl_FUNC_UNLINK): Include correct header.
54775         unistd-safer: add unit test
54776         * modules/unistd-safer-tests: New file.
54777         * tests/test-dup-safer.c: Likewise.
54778         * tests/test-cloexec.c (setmode): Avoid compiler warning.
54779         * tests/test-dup2.c (setmode): Likewise.
54780         * lib/cloexec.c (dup_cloexec): Fix mingw compile error.
54782         cloexec: preserve text vs. binary across dup_cloexec
54783         * lib/cloexec.c (dup_cloexec) [W32]: Query and use translation
54784         mode.
54785         * modules/dup2-tests (Depends-on): Add binary-io.
54786         * modules/cloexec-tests (Depends-on): Likewise.
54787         * tests/test-dup2.c (setmode, is_mode): New helpers.
54788         (main): Add tests that translation mode is preserved.
54789         * tests/test-cloexec.c (setmode, is_mode, main): Likewise.
54790         Reported by Bruno Haible.
54792         mgetgroups: reduce duplicate listings
54793         * lib/mgetgroups.c (mgetgroups): Reduce duplicates from the
54794         resulting array.
54795         * tests/test-chown.h (test_chown): Simplify client.
54796         * tests/test-lchown.h (test_lchown): Likewise.
54798 2009-12-06  Bruno Haible  <bruno@clisp.org>
54800         * lib/cloexec.c (dup_cloexec): Fix handling of _gl_register_dup return
54801         value.
54803 2009-12-06  Bruno Haible  <bruno@clisp.org>
54805         * lib/progname.c: Include stdio.h, stdlib.h.
54806         (set_program_name): Reject a NULL argument.
54808 2009-12-05  Eric Blake  <ebb9@byu.net>
54810         pipe2-safer: new module
54811         * modules/pipe2-safer: New file.
54812         * lib/unistd-safer.h (pipe2_safer): New prototype.
54813         * lib/unistd--.h (pipe2): New wrapper.
54814         * lib/pipe-safer.c (pipe2_safer): New function.
54815         * modules/pipe (Depends-on): Add pipe2-safer.
54816         * lib/pipe.c (create_pipe) [WIN32]: Let pipe2_safer do the work.
54818         stdlib-safer: preserve cloexec flag for mkostemp[s]
54819         * lib/mkstemp-safer.c (mkostemp_safer, mkostemps_safer): Use new
54820         fd_safer_flag.
54822         unistd-safer: allow preservation of cloexec status via flag
54823         * lib/unistd-safer.h (dup_safer_flag, fd_safer_flag): New
54824         prototypes.
54825         * lib/dup-safer.c (dup_safer_flag): New function.
54826         * lib/fd-safer.c (fd_safer_flag): Likewise.
54827         * modules/cloexec (configure.ac): Set witness.
54829         test-dup2: enhance test
54830         * modules/dup2-tests (Depends-on): Add cloexec.
54831         * tests/test-dup2.c (main): Enhance test.
54833         cloexec: add dup_cloexec
54834         * lib/cloexec.h (dup_cloexec): New prototype.  Add copyright
54835         header and comments.
54836         * lib/cloexec.c (set_cloexec_flag): Add comments.
54837         (dup_cloexec): New function, with mingw implementation borrowed
54838         from...
54839         * lib/w32spawn.h (dup_noinherit): ...here.
54840         * modules/execute (Depends-on): Add cloexec.
54841         * modules/pipe (Depends-on): Likewise.
54842         * modules/cloexec (Depends-on): Add dup2.
54843         * modules/cloexec-tests (Files): New file.
54844         * tests/test-cloexec.c: Likewise.
54846         test-xalloc-die: fix test for mingw
54847         * modules/xalloc-die-tests (Files): Add tests/init.sh.
54848         * tests/test-xalloc-die.sh: Rewrite to use init.sh.  Strip
54849         directory and .exe suffix off argv[0] output.
54851         test-fseeko: fix test for mingw
54852         * tests/test-fseeko.c (fseek): Redefine GL_LINK_WARNING, rather
54853         than undefining fseek, so test will pass on mingw.
54855 2009-12-05  Bruno Haible  <bruno@clisp.org>
54857         * lib/progname.h (set_program_name): Clarify specification.
54858         * lib/progname.c (set_program_name): Likewise.
54859         Reported by Jim Meyering.
54861 2009-12-05  Jim Meyering  <meyering@redhat.com>
54863         maint.mk: backslash-escape parens in default regexp
54864         * top/maint.mk (news-check-regexp): Now that we're using grep -E,
54865         backslash-escape the literal parentheses.
54867         maint.mk: news-date-check: use grep -E
54868         * top/maint.mk (today): Define a Make variable, not a...
54869         (news-date-check): ...shell variable.
54870         (news-date-regexp): Use the Make variable.
54871         Use grep's -E option.  Change the failing diagnostic to mention
54872         the variable, $(news-date-regexp).
54874 2009-12-04  Alfred M. Szmidt  <ams@gnu.org>
54876         maintainer-makefile: allow customization of NEWS entry format
54877         * top/maint.mk (news-date-regexp): New overridable variable.
54878         (news-date-check): Use it.
54880 2009-12-04  Eric Blake  <ebb9@byu.net>
54882         mgetgroups: add xgetgroups, and avoid ENOSYS failures
54883         * lib/mgetgroups.h (xgetgroups): New prototype.
54884         * lib/mgetgroups.c (xgetgroups): New wrapper.
54885         (mgetgroups): Handle ENOSYS.
54886         * modules/mgetgroups (Depends-on): Add realloc.
54887         Reported by Scott Harrison <scott.gnu.2009@scottrix.co.uk>.
54889         mgetgroups: avoid argument promotion issues with -1
54890         * lib/mgetgroups.c (mgetgroups): A cast is required when checking
54891         for invalid gid_t.
54892         * tests/test-chown.h (getegid, test_chown): Likewise.
54893         * tests/test-lchown.h (getegid, test_lchown): Likewise.
54895 2009-12-03  Paolo Bonzini  <bonzini@gnu.org>
54897         exclude: Fix header file problems.
54898         * lib/exclude.h: Add multiple inclusion guards and include stdbool.h.
54900 2009-12-01  Jim Meyering  <meyering@redhat.com>
54902         fts: fts_open: do not let an empty string cause immediate failure
54903         This is required in support of GNU rm, for which the command
54904         "rm A '' B" must process and remove both A and B, in spite of
54905         the empty string argument.
54906         * lib/fts.c (fts_open): Do not let the presence of an empty string
54907         cause fts_open to fail immediately.  Most fts-using tools must be
54908         able to process all arguments, in order, and can be expected to
54909         diagnose such arguments themselves.
54911 2009-11-30  Eric Blake  <ebb9@byu.net>
54913         utimens: fix compilation error
54914         * lib/utimens.c (lutimens) [!HAVE_UTIMENSAT && HAVE_LUTIMES]:
54915         Declare variable at right scope.
54917 2009-11-29  Jim Meyering  <meyering@redhat.com>
54919         bootstrap: handle perl-5.11's changed --version output
54920         * build-aux/bootstrap (get_version): Handle perl separately,
54921         since perl-5.11's --version output is different.
54923 2009-11-28  Jim Meyering  <meyering@redhat.com>
54925         userspec: depend on the inttostr module, too
54926         * modules/userspec (Depends-on): Add inttostr.
54928         userspec: disallow an ID that maps to (uid_t)-1 or (gid_t)-1
54929         * lib/userspec.c (parse_with_separator): Do not accept a user ID
54930         number of MAXUID when it evaluates to (uid_t) -1.
54931         Likewise for group ID.  Reported by Matt McCutchen in
54932         <http://savannah.gnu.org/bugs/?28113>
54934         userspec: reformat to use spaces, not TABs
54935         * lib/userspec.c: Expand TABs to spaces.
54936         Add Emacs' "indent-tabs-mode: nil" hint.
54938 2009-11-27  Eric Blake  <ebb9@byu.net>
54940         getopt-gnu: flush out another BSD bug
54941         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Test for the bug.
54942         * tests/test-getopt.c (main): Check POSIXLY_CORRECT first, to
54943         flush out BSD bug.
54944         * tests/test-getopt.h (test_getopt): End lists with NULL.
54945         * tests/test-getopt_long.h (test_getopt_long): Likewise.
54946         (test_getopt_long_posix): Enhance test.
54947         * modules/getopt-posix-tests (Depends-on): Add stdbool.
54948         * doc/glibc-functions/getopt_long.texi (getopt_long): Mention
54949         getopt-gnu.
54950         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
54951         Likewise.
54953 2009-11-27  Simon Josefsson  <simon@josefsson.org>
54955         * modules/idpriv-droptemp-tests (Notice): Fix text.
54957 2009-11-27  Jim Meyering  <meyering@redhat.com>
54959         test-xalloc-die: avoid spurious failure due to libtool argv difference
54960         In a libtool-enabled project, this test would fail due to a difference
54961         in the emitted program name, e.g.,
54962         -test-xalloc-die: memory exhausted
54963         +/tmp/.../tests/.libs/lt-test-xalloc-die: memory exhausted
54964         Use program to avoid that.
54965         * modules/xalloc-die-tests (Depends-on): Add progname.
54966         * tests/test-xalloc-die.c: Include progname.h".
54967         (program_name): Remove decl.
54968         (main): Call set_program_name.
54969         * tests/test-xalloc-die.sh (compare): Remove unnecessary ${EXE}.
54971 2009-11-26  Richard Jones  <rjones@redhat.com>
54973         w32sock: leave win32 error in place.
54974         * lib/w32sock.h (set_winsock_errno): Do not call WSASetLastError.
54976 2009-11-26  Eric Blake  <ebb9@byu.net>
54978         init.sh: suggest to use skip_ and fail_ functions in comments
54979         * tests/init.sh: Add a sentence.
54981 2009-11-25  Bruno Haible  <bruno@clisp.org>
54983         init.sh: add documentation in comments
54984         * tests/init.sh: Add some developer and user documentation.
54986 2009-11-26  Jim Meyering  <meyering@redhat.com>
54988         init.sh: accommodate even those who specify bogus srcdir manually
54989         * tests/init.sh: Normally, srcdir is guaranteed by automake and
54990         configure-time tests to be sanitized, so that there is no need to
54991         use "$srcdir" in Makefile rules and shell scripts.  Using $srcdir
54992         (with no double quotes) suffices.  However, since tests may be
54993         invoked manually, and since you may explicitly set srcdir to the
54994         name of a directory containing spaces, do quote its uses here.
54995         * tests/test-pread.sh: Likewise.
54996         Suggested by Bruno Haible.
54998         test-pread.sh: avoid diagnostics for those who ignore SIGPIPE
54999         * tests/test-pread.sh: Write no data into the pipe, because
55000         test-pread actually reads none.  This avoids a diagnostic,
55001         "bash: echo: write error: Broken pipe", that arises in the unusual
55002         event something is ignoring SIGPIPE, and might be interpreted
55003         as some sort of failure.  Reported by Bruno Haible.
55005 2009-11-25  Jim Meyering  <meyering@redhat.com>
55007         test-pread: cover failure with ESPIPE and EINVAL
55008         * tests/test-pread.c (main): Test for failure, too.
55009         * tests/test-pread.sh: Invoke with stdin on a pipe.
55010         Suggested by Eric Blake.
55012         pread: improvement and fix
55013         * modules/pread (Depends-on): Depend on lseek, for portability to
55014         e.g., mingw.  Suggested by Eric Blake.
55015         * lib/pread.c (__libc_read): Define.  Reported by Richard W.M. Jones.
55017         unistd.in.h: correct declaration of pread
55018         * lib/unistd.in.h: Correct type of "buf" parameter: void*, not char*
55019         Reported by Richard W.M. Jones.
55021         test-pread.sh: distribute the test script
55022         * modules/pread-tests (Files): Include test-pread.sh.
55024         test-pread.sh: clean up
55025         * tests/test-pread.sh: Don't refer to $builddir. Just use equivalent ".".
55026         * modules/pread-tests (TESTS_ENVIRONMENT): Don't export builddir.
55027         That is unnecessary, since it's always ".".
55028         Suggestion from Eric Blake.
55030         test-pread.sh: make executable
55031         * tests/test-pread.sh: Set executable bit.
55032         Reported by Eric Blake.
55034         correct typo in test-pread.sh
55035         * tests/test-pread.sh: Add #! line.
55037         test pread
55038         * tests/test-pread.c: New file.
55039         * tests/test-pread.sh: Likewise.
55040         * modules/pread-tests: Likewise.
55042         pread: new module
55043         * modules/pread: New file.
55044         * lib/unistd.in.h (pread): Define/declare.
55045         * lib/pread.c (pread): New file.
55046         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Define defaults.
55047         * modules/unistd (Makefile.am): Substitute witnesses.
55048         * doc/posix-functions/pread.texi (pread): Update.
55049         * MODULES.html.sh: Add pread.
55051 2009-11-25  Jim Meyering  <meyering@redhat.com>
55053         tests/init.sh: new file to be used via most *.sh tests
55054         * tests/init.sh: New file.
55056 2009-11-25  Eric Blake  <ebb9@byu.net>
55058         utimens: work around older Linux failure with symlinks
55059         * lib/utimens.c (lutimensat_works_really): New variable.
55060         (fdutimens, lutimens): Use it to manage kernels that support
55061         nanosecond times on files, but not on symlinks.
55062         Reported by Ondřej Vašík.
55064         utimes: fix configure grammar
55065         * m4/utimes.m4 (gl_FUNC_UTIMES): Delete spurious word.
55067 2009-11-25  Paolo Bonzini  <bonzini@gnu.org>
55069         regex: Fix fastmap for multibyte character ranges.
55070         * lib/regcomp.c (re_compute_fastmap_iter): Add all multibyte lead
55071         characters when a multibyte character range is included.
55073 2009-11-22  Andy Wingo  <wingo@pobox.com>
55075         version-etc: work also with AM_INIT_AUTOMAKE's no-define option
55076         * lib/version-etc.c [!defined PACKAGE]: Define to PACKAGE_TARNAME.
55078 2009-11-24  Bruno Haible  <bruno@clisp.org>
55080         doc: Most *_l functions exist in MacOS X 10.5.
55081         * doc/posix-functions/duplocale.texi: Update platforms list.
55082         * doc/posix-functions/freelocale.texi: Likewise.
55083         * doc/posix-functions/newlocale.texi: Likewise.
55084         * doc/posix-functions/uselocale.texi: Likewise.
55085         * doc/posix-functions/isalnum_l.texi: Likewise.
55086         * doc/posix-functions/isalpha_l.texi: Likewise.
55087         * doc/posix-functions/isblank_l.texi: Likewise.
55088         * doc/posix-functions/iscntrl_l.texi: Likewise.
55089         * doc/posix-functions/isdigit_l.texi: Likewise.
55090         * doc/posix-functions/isgraph_l.texi: Likewise.
55091         * doc/posix-functions/islower_l.texi: Likewise.
55092         * doc/posix-functions/isprint_l.texi: Likewise.
55093         * doc/posix-functions/ispunct_l.texi: Likewise.
55094         * doc/posix-functions/isspace_l.texi: Likewise.
55095         * doc/posix-functions/isupper_l.texi: Likewise.
55096         * doc/posix-functions/iswalnum_l.texi: Likewise.
55097         * doc/posix-functions/iswalpha_l.texi: Likewise.
55098         * doc/posix-functions/iswblank_l.texi: Likewise.
55099         * doc/posix-functions/iswcntrl_l.texi: Likewise.
55100         * doc/posix-functions/iswctype_l.texi: Likewise.
55101         * doc/posix-functions/iswdigit_l.texi: Likewise.
55102         * doc/posix-functions/iswgraph_l.texi: Likewise.
55103         * doc/posix-functions/iswlower_l.texi: Likewise.
55104         * doc/posix-functions/iswprint_l.texi: Likewise.
55105         * doc/posix-functions/iswpunct_l.texi: Likewise.
55106         * doc/posix-functions/iswspace_l.texi: Likewise.
55107         * doc/posix-functions/iswupper_l.texi: Likewise.
55108         * doc/posix-functions/iswxdigit_l.texi: Likewise.
55109         * doc/posix-functions/isxdigit_l.texi: Likewise.
55110         * doc/posix-functions/nl_langinfo_l.texi: Likewise.
55111         * doc/posix-functions/strcasecmp_l.texi: Likewise.
55112         * doc/posix-functions/strcoll_l.texi: Likewise.
55113         * doc/posix-functions/strfmon_l.texi: Likewise.
55114         * doc/posix-functions/strftime_l.texi: Likewise.
55115         * doc/posix-functions/strncasecmp_l.texi: Likewise.
55116         * doc/posix-functions/strxfrm_l.texi: Likewise.
55117         * doc/posix-functions/tolower_l.texi: Likewise.
55118         * doc/posix-functions/toupper_l.texi: Likewise.
55119         * doc/posix-functions/towctrans_l.texi: Likewise.
55120         * doc/posix-functions/towlower_l.texi: Likewise.
55121         * doc/posix-functions/towupper_l.texi: Likewise.
55122         * doc/posix-functions/wcscoll_l.texi: Likewise.
55123         * doc/posix-functions/wcsxfrm_l.texi: Likewise.
55124         * doc/posix-functions/wctrans_l.texi: Likewise.
55125         * doc/posix-functions/wctype_l.texi: Likewise.
55126         * doc/glibc-functions/strptime_l.texi: Likewise.
55127         * doc/glibc-functions/strtod_l.texi: Likewise.
55128         * doc/glibc-functions/strtof_l.texi: Likewise.
55129         * doc/glibc-functions/strtol_l.texi: Likewise.
55130         * doc/glibc-functions/strtold_l.texi: Likewise.
55131         * doc/glibc-functions/strtoll_l.texi: Likewise.
55132         * doc/glibc-functions/strtoul_l.texi: Likewise.
55133         * doc/glibc-functions/strtoull_l.texi: Likewise.
55134         * doc/glibc-functions/wcsftime_l.texi: Likewise.
55135         * doc/glibc-functions/wcstod_l.texi: Likewise.
55136         * doc/glibc-functions/wcstof_l.texi: Likewise.
55137         * doc/glibc-functions/wcstol_l.texi: Likewise.
55138         * doc/glibc-functions/wcstold_l.texi: Likewise.
55139         * doc/glibc-functions/wcstoll_l.texi: Likewise.
55140         * doc/glibc-functions/wcstoul_l.texi: Likewise.
55141         * doc/glibc-functions/wcstoull_l.texi: Likewise.
55143 2009-11-24  Bruno Haible  <bruno@clisp.org>
55145         duplocale: Fix logic bug.
55146         * lib/duplocale.c: Don't include <langinfo.h>.
55147         (_NL_LOCALE_NAME): Remove macro.
55148         (rpl_duplocale): Use setlocale instead of nl_langinfo.
55149         * tests/test-duplocale.c (main): Also test duplocale after uselocale.
55151 2009-11-23  Jim Meyering  <meyering@redhat.com>
55153         test-update-copyright: don't hard-code /usr/bin/perl
55154         * tests/test-update-copyright.sh (YEAR): Use date +%Y, rather than
55155         perl to print the current year.  Gilles Espinasse reported that
55156         the replaced use of perl was hard-coded as /usr/bin/perl.
55158 2009-11-23  Bruno Haible  <bruno@clisp.org>
55160         duplocale: Add support for glibc 2.3.x.
55161         * lib/duplocale.c (rpl_duplocale): Add fallback code for glibc 2.3.x.
55163 2009-11-22  Bruno Haible  <bruno@clisp.org>
55165         vasnprintf: Tiny optimization.
55166         * lib/vasnprintf.c (decimal_point_char): Choose the fast path also on
55167         MacOS X.
55169 2009-11-22  Bruno Haible  <bruno@clisp.org>
55171         Tests for module 'duplocale'.
55172         * modules/duplocale-tests: New file.
55173         * tests/test-duplocale.c: New file.
55175         New module 'duplocale'.
55176         * m4/duplocale.m4: New file.
55177         * lib/locale.in.h (duplocale): New declaration.
55178         * lib/duplocale.c: New file.
55179         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H, gl_LOCALE_MODULE_INDICATOR,
55180         gl_LOCALE_H_DEFAULTS): New macros.
55181         (gl_LOCALE_H): Require gl_LOCALE_H_DEFAULTS. Invoke
55182         gl_CHECK_NEXT_HEADERS unconditionally. Invoke gl_REPLACE_LOCALE_H.
55183         * modules/locale (Makefile.am): Substitute also GNULIB_DUPLOCALE,
55184         REPLACE_DUPLOCALE.
55185         * modules/duplocale: New file.
55186         * doc/posix-functions/duplocale.texi: Mention the glibc bug.
55188 2009-11-22  Bruno Haible  <bruno@clisp.org>
55190         * modules/locale-tests (configure.ac): Test for newlocale function.
55191         * tests/test-locale.c: When the system has extended locale functions,
55192         verify that <locale.h> defines locale_t and LC_GLOBAL_LOCALE.
55194         locale: Make locale_t available when possible.
55195         * lib/locale.in.h: Include <xlocale.h> when it exists.
55196         * m4/locale_h.m4 (gl_LOCALE_H): Check for <xlocale.h> and arrange to
55197         replace <locale.h> if it does not define locale_t but <xlocale.h> does.
55198         * modules/locale (Depends-on): Add extensions.
55199         (Makefile.am): Also substitute HAVE_XLOCALE_H.
55200         * doc/posix-headers/locale.texi: Document the problem with locale_t.
55202 2009-11-22  Bruno Haible  <bruno@clisp.org>
55204         Add comments.
55205         * m4/dirent_h.m4 (gl_DIRENT_H): Add comment about gl_CHECK_NEXT_HEADERS
55206         invocation.
55207         * m4/iconv_h.m4 (gl_ICONV_H): Likewise.
55208         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
55209         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
55211 2009-11-22  Bruno Haible  <bruno@clisp.org>
55213         error: account for the possibility of freopen (stdout).
55214         * lib/error.c: Include <unistd.h>.
55215         (flush_stdout): New function, extracted from error and error_at_line.
55216         Determine stdout's fd dynamically.
55217         (error, error_at_line): Invoke flush_stdout.
55218         * m4/error.m4 (gl_PREREQ_ERROR): Require AC_C_INLINE.
55219         * modules/error (Depends-on): Add unistd.
55221 2009-11-22  Bruno Haible  <bruno@clisp.org>
55223         diffseq: Add comment.
55224         * lib/diffseq.h (IF_LINT): Add comment about pitfall.
55226 2009-11-22  Jim Meyering  <meyering@redhat.com>
55228         c-stack: avoid defining an unused static function
55229         * lib/c-stack.c (find_stack_direction): Do not define this function
55230         when it will not be used.
55232         diffseq: avoid spurious gcc warnings
55233         * lib/diffseq.h (IF_LINT2): Define.
55234         (compareseq): Use it to initialize two members of "part".
55235         This avoids two used-uninitialized warnings.
55237 2009-11-21  Jim Meyering  <meyering@redhat.com>
55239         c-stack: avoid "ignoring return value of `write'" warning
55240         * lib/c-stack.c: Include "ignore-value.h".
55241         (die): Explicitly ignore each write return value.
55242         * modules/c-stack (Depends-on): Add ignore-value.
55244 2009-11-21  Bruno Haible  <bruno@clisp.org>
55246         diffseq: reduce scope of variable 'best'.
55247         * lib/diffseq.h (diag) [USE_HEURISTIC]: Reduce scope of 'best'
55248         variable, earlier used for two different purposes.
55250 2009-11-21  Jim Meyering  <meyering@redhat.com>
55252         diffseq: remove useless assignment to "best"
55253         * lib/diffseq.h (diag) [USE_HEURISTIC]: Remove useless "best = 0"
55254         assignment.  At that point "best" is already guaranteed to be zero.
55256 2009-11-20  Eric Blake  <ebb9@byu.net>
55258         build: mention ftp redirector in release announcements
55259         * top/maint.mk (gnu_rel_host, url_dir_list): Provide defaults for
55260         values that used to come from cfg.mk; mention FTP redirect URL.
55261         * build-aux/announce-gen: Mention the mirror list.
55262         Suggested by Karl Berry.
55264         nanosleep: improve port to mingw
55265         * lib/nanosleep.c (rpl_nanosleep): Reject invalid arguments.
55266         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Incorporate LIBSOCKET into
55267         LIB_NANOSLEEP, but only when needed.
55268         * modules/select (Link): Document LIBSOCKET.
55269         * m4/select.m4 (gl_FUNC_SELECT): Ensure LIBSOCKET is defined early
55270         enough.
55272         nanosleep: work around cygwin bug
55273         * lib/nanosleep.c (rpl_nanosleep) [HAVE_BUG_BIG_NANOSLEEP]:
55274         Fix logic bug when nanosleep fails.  Work around cygwin 1.5.x
55275         bug.
55276         (getnow): Delete, not needed.
55277         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): No longer require
55278         LIB_CLOCK_GETTIME.
55279         * modules/nanosleep (Depends-on): Add intprops and verify.  Drop
55280         clock-time, gettime.
55281         * doc/posix-functions/nanosleep.texi (nanosleep): Document the
55282         bug.
55283         * modules/nanosleep-tests: New test.
55284         * tests/test-nanosleep.c: New file.
55286         sleep: work around cygwin bug
55287         * lib/sleep.c (rpl_sleep): Work around the bug.
55288         * m4/sleep.m4 (gl_FUNC_SLEEP): Detect the bug.
55289         (gl_PREREQ_SLEEP): Delete unused macro.
55290         * modules/sleep (Depends-on): Add verify.
55291         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add default.
55292         * modules/unistd (Makefile.am): Substitute witness.
55293         * lib/unistd.in.h (sleep): Update prototype.
55294         * doc/posix-functions/sleep.texi (sleep): Document the bug.
55295         * tests/test-sleep.c (main) [HAVE_DECL_ALARM]: Test it.
55296         * modules/sleep-tests (Depends-on): Check for alarm.
55298 2009-11-20  Jim Meyering  <meyering@redhat.com>
55300         maint.mk: improve sc_prohibit_magic_number_exit
55301         * top/maint.mk (sc_prohibit_magic_number_exit): Tighten regexp
55302         so it does not match uses like System.exit(1).
55303         Add comments showing how to correct all offenders.
55305 2009-11-19  Eric Blake  <ebb9@byu.net>
55307         xalloc-die-tests: add missing library
55308         * modules/xalloc-die-tests (Makefile.am): Add LDADD line.
55310         test-xvasprintf: silence compiler warnings
55311         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Mask
55312         empty string from gcc.
55314 2009-11-19  Jim Meyering  <meyering@redhat.com>
55316         xfreopen: new module, from coreutils
55317         * modules/xfreopen: New module.
55318         * lib/xfreopen.c: New file.
55319         * lib/xfreopen.h: New file.
55320         * MODULES.html.sh (File stream based Input/Output"): Add it.
55322 2009-11-19  Eric Blake  <ebb9@byu.net>
55324         manywarnings: depend on warnings
55325         * modules/manywarnings (Depends-on): Add warnings.
55327         build: avoid compiler warnings
55328         * lib/select.c (rpl_select): Delete unused variable.
55329         * lib/setsockopt.c (rpl_setsockopt): Avoid incompatible pointer.
55331 2009-11-18  Eric Blake  <ebb9@byu.net>
55333         tests: avoid false negative with --with-packager
55334         * tests/test-version-etc.sh: Discard packager information.
55335         * tests/test-argp-version-etc-1.sh: Likewise.
55336         Reported by Mike Frysinger.
55338         utimens: fix regression on Solaris
55339         * m4/utimens.m4 (gl_UTIMENS): Check for BSD bug.
55340         * lib/utimens.c (fdutimens): Revert 2009-11-08 change; Solaris 10
55341         can only change fd timestamps via futimesat.  Instead, use an
55342         additional witness macro to avoid BSD bug.
55343         Reported by Jim Meyering.
55345 2009-11-17  Eric Blake  <ebb9@byu.net>
55347         usleep: use it to simplify tests
55348         * modules/stat-time-tests (Depends-on): Add usleep.
55349         (configure.ac): Drop usleep check.
55350         * modules/chown-tests (Depends-on, configure.ac): Likewise.
55351         * modules/lchown-tests (Depends-on, configure.ac): Likewise.
55352         * modules/fdutimensat-tests (Depends-on, configure.ac): Likewise.
55353         * modules/futimens-tests (Depends-on, configure.ac): Likewise.
55354         * modules/openat-tests (Depends-on, configure.ac): Likewise.
55355         * modules/utimens-tests (Depends-on, configure.ac): Likewise.
55356         * modules/utimensat-tests (Depends-on, configure.ac): Likewise.
55357         * modules/pipe-filter-gi-tests (Depends-on, configure.ac):
55358         Likewise.
55359         * tests/test-chown.h (nap): Rely on nicer usleep semantics.
55360         * tests/test-lchown.h (nap): Likewise.
55361         * tests/test-pipe-filter-gi2-main.c (small_nap): Likewise.
55362         * tests/test-stat-time.c (nap): Likewise.
55363         * tests/test-utimens-common.h (nap): Update comments.
55365         usleep: new module
55366         * modules/usleep: New file.
55367         * m4/usleep.m4 (gl_FUNC_USLEEP): Likewise.
55368         * lib/usleep.c (usleep): Likewise.
55369         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add defaults.
55370         * modules/unistd (Makefile.am): Substitute witnesses.
55371         * lib/unistd.in.h (usleep): Add declaration.
55372         * doc/pastposix-functions/usleep.texi (usleep): Document this.
55373         * MODULES.html.sh (Date and time): Likewise.
55374         * modules/usleep-tests (Depends-on): New test.
55375         * tests/test-usleep.c: New file.
55377         chown: work around OpenBSD bug
55378         * lib/chown.c (rpl_chown): Work around the bug.
55379         * lib/lchown.c (rpl_lchown): Attempt to do likewise.
55380         * m4/chown.m4 (gl_FUNC_CHOWN): Test for ctime bug.
55381         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check for lchmod.
55382         * modules/chown (Depends-on): Add stdbool.
55383         * modules/lchown (Depends-on): Likewise.
55384         * doc/posix-functions/chown.texi (chown): Document the bug.
55385         * doc/posix-functions/lchown.texi (lchown): Likewise.
55386         * tests/test-lchown.h (test_chown): Relax test.
55388         mkstemp: avoid conflict with C++ keyword template
55389         * lib/mkdtemp.c (mkdtemp): Change spelling of template.
55390         * lib/mkostemp.c (mkostemp): Likewise.
55391         * lib/mkostemps.c (mkostemps): Likewise.
55392         * lib/mkstemp.c (mkstemp): Likewise.
55393         * lib/mkstemps.c (mkstemps): Likewise.
55395         xalloc-die-tests: optimize
55396         * tests/test-xalloc-die.sh: Reduce number of processes.
55398 2009-11-17  Simon Josefsson  <simon@josefsson.org>
55400         * gnulib-tool: Support LGPLv3+ licenses in module files.  Tiny
55401         patch from ludo@gnu.org (Ludovic Courtès).
55403 2009-11-17  Jim Meyering  <meyering@redhat.com>
55405         version-etc: use proper license string
55406         * modules/version-etc (License): Use LGPL, not LGPLv3+.
55407         * modules/version-etc-fsf: Likewise.
55409 2009-11-17  Simon Josefsson  <simon@josefsson.org>
55411         * tests/test-xalloc-die.sh: Add license.  Check that nothing is
55412         printed to stdout.  Deal with EOL differences.
55414 2009-11-17  Eric Blake  <ebb9@byu.net>
55416         unsetenv: work around Solaris bug
55417         * m4/setenv.m4 (gl_FUNC_UNSETENV): Check for bug.
55418         * lib/unsetenv.c (rpl_unsetenv): Work around it.
55419         Reported by Jim Meyering.
55421         vasnprintf: avoid compiler warnings
55422         * lib/vasnprintf.c (VASNPRINTF): Avoid shadowing our own local
55423         variables.
55424         * lib/printf-args.c (PRINTF_FETCHARGS): Avoid type mismatch.
55426 2009-11-17  Simon Josefsson  <simon@josefsson.org>
55428         * modules/xalloc-die-tests (Makefile.am): Drop XFAIL_TESTS
55429         settings since xalloc-die is no longer the self test,
55430         xalloc-die.sh is.
55432 2009-11-17  Jim Meyering  <meyering@redhat.com>
55434         test-xalloc-die.sh: make the code agree with the commit log
55435         * tests/test-xalloc-die.sh: Put "." at the front of $PATH, not
55436         at the end, just in case you happen to have a test-xalloc-die
55437         program in some other PATH directory.
55439         test-xalloc-die.sh: fix a portability bug
55440         * tests/test-xalloc-die.sh: Do not invoke via ./test-xalloc-die.
55441         Instead, set PATH to start with "." and invoke via "test-xalloc-die".
55442         Otherwise, argv[0] (as often seen in diagnostics) would be too
55443         system-dependent, sometimes with, and sometimes without the leading "./".
55445         version-etc-fsf: relax license to LGPLv3+
55446         * modules/version-etc-fsf (License): Relax license.
55448 2009-11-16  Eric Blake  <ebb9@byu.net>
55450         xalloc-die-tests: avoid printing null pointer
55451         * modules/xalloc-die-tests (Files, Makefile.am): Wrap execution in
55452         shell script.
55453         * tests/test-xalloc-die.c (program_name): Declare.
55454         * tests/test-xalloc-die.sh (tmpfiles): New file.
55456         setenv, unsetenv: work around various bugs
55457         * lib/setenv.c (setenv) [!HAVE_SETENV]: Resync from glibc.
55458         (setenv) [HAVE_SETENV]: Work around bugs.
55459         * lib/unsetenv.c (unsetenv) [HAVE_UNSETENV]: Work around bugs.
55460         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE, gl_FUNC_UNSETENV): Check
55461         for bugs.
55462         (gl_FUNC_SETENV): Write in terms of gl_FUNC_SETENV_SEPARATE.
55463         * m4/environ.m4 (gl_ENVIRON): Avoid expand-before-require.
55464         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Update defaults.
55465         * modules/stdlib (Makefile.am): Update substitutions.
55466         * lib/stdlib.in.h (setenv, unsetenv): Update prototypes.
55467         * doc/posix-functions/setenv.texi (setenv): Document the bugs.
55468         * doc/posix-functions/unsetenv.texi (unsetenv): Likewise.
55469         * modules/setenv-tests: New test.
55470         * modules/unsetenv-tests: Likewise.
55471         * tests/test-setenv.c: New file.
55472         * tests/test-unsetenv.c: Likewise.
55474 2009-11-16  Jim Meyering  <meyering@redhat.com>
55476         version-etc: relax license to LGPLv3+
55477         * modules/version-etc (License): Relax license.
55479         better AC_REQUIRE expanded-before-required-warning avoidance
55480         * m4/chown.m4 (gl_FUNC_CHOWN, gl_FUNC_CHOWN_FOLLOWS_SYMLINK): Define
55481         with AC_DEFUN_ONCE, rather than AC_DEFUN, to avoid AC_REQUIRE warnings.
55482         Suggested by Eric Blake.  This change also reverts commit 1b712ba8,
55483         which is no longer needed.
55485 2009-11-16  Eric Blake  <ebb9@byu.net>
55487         test-freading: clean up temporary file
55488         * tests/test-freading.c (main): Remove file on success, and use
55489         ASSERT more liberally.
55490         Reported by Jim Meyering.
55492 2009-11-16  Jim Meyering  <meyering@redhat.com>
55494         avoid new AC_REQUIRE expanded-before-required warnings
55495         * modules/chown (configure.ac): Require gl_FUNC_CHOWN, rather than
55496         merely using it.
55497         * modules/euidaccess (configure.ac): Likewise for gl_FUNC_EUIDACCESS.
55498         * modules/faccessat (configure.ac): Likewise for gl_FUNC_FACCESSAT.
55500 2009-11-15  Simon Josefsson  <simon@josefsson.org>
55502         * tests/test-xalloc-die.c: New file.
55503         * modules/xalloc-die-tests: New file.
55504         * gnulib-tool (func_emit_tests_Makefile_am): Also initialize
55505         XFAIL_TESTS so it can be appended by modules.
55507 2009-11-15  Simon Josefsson  <simon@josefsson.org>
55509         * lib/gc-pbkdf2-sha1.c: Remove comments from RFC 2898.  Reported
55510         by Vladimir 'phcoder' Serbinenko <phcoder@gmail.com>.
55512 2009-11-14  Eric Blake  <ebb9@byu.net>
55514         fnmatch: avoid compiler warning
55515         * lib/fnmatch_loop.c (NEW_PATTERN): Coerce addition to unsigned,
55516         to silence compiler warning about mismatch signedness in ?:.
55517         Reported by Robert Millan.
55519         intprops: add double-inclusion guard
55520         * lib/intprops.h: Allow idempotent includes.
55521         Suggested by Bruce Korb.
55523         openat: detect Solaris fchownat bug
55524         * lib/fchownat.c (rpl_fchownat): Work around Solaris bug.  Avoid
55525         penalizing glibc chownat when only lchownat is broken.
55526         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Replace fchownat if there are
55527         trailing slash bugs.
55528         * doc/posix-functions/fchownat.texi (fchownat): Document the bug.
55529         * modules/openat-tests (Files): Include more files.
55530         (Depends-on): Add mgetgroups, sleep, stat-time.
55531         (configure.ac): Add additional checks.
55532         (Makefile.am): Build new test.
55533         * tests/test-fchownat.c: New file.
55535         lchown: detect Solaris and FreeBSD bug
55536         * lib/lchown.c (rpl_lchown): Work around bug.
55537         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check for trailing slash bugs.
55538         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
55539         * modules/unistd (Makefile.am): Populate it.
55540         * lib/unistd.in.h (lchown): Update declaration.
55541         * doc/posix-functions/lchown.texi (lchown): Document the bug.
55542         * modules/lchown-tests: New file.
55543         * tests/test-lchown.h (test_lchown): Likewise.
55544         * tests/test-lchown.c (main): Likewise.
55546         chown: detect Solaris and FreeBSD bug
55547         * lib/chown.c (rpl_chown): Work around bug.
55548         * m4/chown.m4 (gl_FUNC_CHOWN): Check for trailing slash bugs.
55549         (gl_PREREQ_CHOWN): Delete.
55550         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
55551         * modules/unistd (Makefile.am): Populate it.
55552         * lib/unistd.in.h (chown): Update declaration.
55553         * lib/lchown.c (chown): Update client.
55554         * modules/lchown (Depends-on): Add lstat.
55555         * doc/posix-functions/chown.texi (chown): Document the bug.
55556         * doc/posix-functions/getgroups.texi (getgroups): Document
55557         getgroups pitfall.
55558         * modules/chown-tests: New file.
55559         * tests/test-chown.h (test_chown): Likewise.
55560         * tests/test-chown.c (main): Likewise.
55562 2009-11-14  Robert Millan  <rmh.grub@aybabtu.com>  (tiny change)
55564         gnulib-tool: correctly detect absence of m4 directories
55565         * gnulib-tool: Avoid extra newline on data passed to wc -l.
55567 2009-11-14  Jim Meyering  <meyering@redhat.com>
55569         maint.mk: Prohibit inclusion of "xalloc.h" without use.
55570         * top/maint.mk (sc_prohibit_close_stream_without_use): New rule.
55572 2009-11-14  John W. Eaton  <jwe@gnu.org>
55574         strftime.h: wrap function declaration in extern "C" block
55575         * lib/strftime.h (nstrftime) [__cplusplus]: Wrap declaration.
55577 2009-11-13  Eric Blake  <ebb9@byu.net>
55579         getgroups: avoid compiler warning
55580         * lib/getgroups.c (rpl_getgroups): Delete shadowed variable.
55582         getgroups: work around FreeBSD bug
55583         * lib/getgroups.c (rpl_getgroups): Work around the bug.
55584         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Detect the bug.
55585         * doc/posix-functions/getgroups.texi (getgroups): Document it.
55586         * tests/test-getgroups.c (main): Fix buffer overrun.
55588         getgroups: avoid compilation failure
55589         * lib/getgroups.c (includes): Include <stdint.h> for SIZE_MAX.
55590         * modules/getgroups (Depends-on): Add stdint.
55592 2009-11-13  Jim Meyering  <meyering@redhat.com>
55594         test-getgroups: avoid compilation failure
55595         * tests/test-getgroups.c: Include <stdint.h> for use of SIZE_MAX.
55597 2009-11-13  Eric Blake  <ebb9@byu.net>
55599         mgetgroups: new module, taken from coreutils
55600         * modules/mgetgroups: New file.
55601         * lib/mgetgroups.h: Likewise.
55602         * lib/mgetgroups.c (mgetgroups): Likewise.
55603         * m4/mgetgroups.m4 (gl_MGETGROUPS): Likewise.
55604         * MODULES.html.sh (Users and groups): Mention it.
55606         getgroups: don't expose GETGROUPS_T to user
55607         * lib/getgroups.c (rpl_getgroups): Change signature.  Copy array
55608         an element at a time if GETGROUPS_T is wrong size.
55609         * lib/getugroups.h (getugroups): Change signature.
55610         * lib/unistd.in.h (getgroups): Likewise.
55611         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Use replacement if
55612         signature needs fixing.
55613         * m4/getugroups.m4 (gl_GETUGROUPS): No longer need
55614         AC_TYPE_GETGROUPS.
55615         * modules/group-member (Depends-on): Add getgroups.
55616         * lib/group-member.c (group_info, get_group_info): Use gid_t.
55617         (group_member): Rely on getgroups replacement.
55618         * lib/getugroups.c (getugroups): Use gid_t.
55619         * tests/test-getgroups.c (main): Likewise.
55620         * NEWS: Mention the signature change.
55621         * doc/posix-functions/getgroups.texi (getgroups): Mention the
55622         problem with signature.
55623         * doc/glibc-functions/setgroups.texi (setgroups): Mention that
55624         GETGROUPS_T is still useful for setgroups.
55626         getgroups, getugroups: provide stubs for mingw
55627         * lib/getgroups.c (getgroups): Provide ENOSYS stub for mingw.
55628         * lib/getugroups.c (getugroups): Likewise.
55629         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Check for missing
55630         function.  Modernize replacement scheme.
55631         (gl_PREREQ_GETGROUPS): Delete.
55632         * m4/getugroups.m4 (gl_GETUGROUPS): Check for <grp.h>.
55633         * modules/getgroups (configure.ac): Declare witness.
55634         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add default.
55635         * modules/unistd (Depends-on): Substitute witness.
55636         * lib/unistd.in.h (getgroups): Declare replacement.
55638         getgroups: avoid calling exit
55639         * modules/getgroups (Depends-on): Add malloc-posix and unistd,
55640         drop xalloc.
55641         * modules/getgroups-tests (Depends-on, Makefile.am): Drop unneeded
55642         dependencies.
55643         * lib/getgroups.c (rpl_getgroups): Fail with ENOMEM rather than
55644         exiting, in the rare case of malloc failure.
55646         getgroups: fix logic error
55647         * lib/getgroups.c (rpl_getgroups): Don't fail if current process
55648         has more than 20 groups.
55649         * modules/getgroups-tests: New test.
55650         * tests/test-getgroups.c: New file.
55652 2009-11-13  Simon Josefsson  <simon@josefsson.org>
55654         * tests/test-base64.c: Improve.
55656 2009-11-13  Simon Josefsson  <simon@josefsson.org>
55658         * tests/test-xvasprintf.c: Fix memory leak, suggested by Eric
55659         Blake <ebb9@byu.net>.
55661 2009-11-13  Simon Josefsson  <simon@josefsson.org>
55663         * tests/test-xvasprintf.c: Add %s%s related checks.
55665 2009-11-12  Eric Blake  <ebb9@byu.net>
55667         version-etc: match standards.texi style
55668         * lib/version-etc.c (emit_bug_reporting_address): Drop periods,
55669         and use <> only for URLs.
55671 2009-11-10  Kamil Dudka  <kdudka@redhat.com>
55673         fts: do not fail on a submount during traversal
55674         * lib/fts.c (fts_build): Read the stat info again after opening
55675         a directory if the FTS_TIGHT_CYCLE_CHECK flag is set.
55676         Original report at http://bugzilla.redhat.com/501848.
55678 2009-11-12  Jim Meyering  <meyering@redhat.com>
55680         bootstrap: sync from coreutils
55681         * build-aux/bootstrap (bootstrap_epilogue): New function.
55682         Use git_modules_config in one more place.  This make bootstrap's
55683         --gnulib-srcdir option more useful for testing.
55685         bootstrap: generalize autoheader check
55686         * build-aux/bootstrap: Look for AC_CONFIG_HEADER as well as
55687         AC_CONFIG_HEADERS.
55689 2009-11-11  Eric Blake  <ebb9@byu.net>
55691         mkfifoat: use new modules for Solaris and BSD bugs
55692         * m4/mkfifoat.m4 (gl_FUNC_MKFIFOAT): Simplify.
55693         * lib/mkfifoat.c (mknodat): Split...
55694         * lib/mknodat.c (mknodat): ...into new file.
55695         * modules/mkfifoat (Files): Ship new file.
55696         (Depends-on): Add mkfifo, mknod.
55697         * modules/mkfifoat-tests (Files): Reuse mkfifo tests.
55698         (Depends-on): Add symlink.
55699         * tests/test-mkfifoat.c (main): Enhance test.  Drop portions now
55700         redundant with test_mkfifo.h.
55701         (do_mkfifoat, do_mknodat): New helpers.
55703         mknod: new module
55704         * modules/mknod: New file.
55705         * m4/mknod.m4 (gl_FUNC_MKNOD): Likewise.
55706         * lib/mknod.c (mknod): Likewise.
55707         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Set witness
55708         defaults.
55709         * modules/sys_stat (Makefile.am): Substitute them.
55710         * lib/sys_stat.in.h (mknod): Declare replacement.
55711         * MODULES.html.sh (Support for systems lacking POSIX:2008):
55712         Document it.
55713         * doc/posix-functions/mknod.texi (mknod): Likewise.
55714         * modules/mknod-tests: New test.
55715         * tests/test-mknod.c: Likewise.
55717         mkfifo: new module
55718         * modules/mkfifo: New file.
55719         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Likewise.
55720         * lib/mkfifo.c (mkfifo): Likewise.
55721         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Set witness
55722         defaults.
55723         * modules/sys_stat (Makefile.am): Substitute them.
55724         * lib/sys_stat.in.h (mkfifo): Declare replacement.
55725         * MODULES.html.sh (Support for systems lacking POSIX:2008):
55726         Document it.
55727         * doc/posix-functions/mkfifo.texi (mkfifo): Likewise.
55728         * modules/mkfifo-tests: New test.
55729         * tests/test-mkfifo.h (test_mkfifo): New file, borrowed in part
55730         from test-mkfifoat.c.
55731         * tests/test-mkfifo.c: New file.
55733         readlink: detect FreeBSD bug
55734         * m4/readlink.m4 (gl_FUNC_READLINK): Also detect FreeBSD bug with
55735         slash on symlink.
55736         * doc/posix-functions/readlink.texi (readlink): Document the bug.
55737         * tests/test-readlink.h (test_readlink): Enhance test.
55739         symlink: detect FreeBSD bug
55740         * m4/symlink.m4 (gl_FUNC_SYMLINK): Also detect FreeBSD bug with
55741         slash on symlink.
55742         * doc/posix-functions/symlink.texi (symlink): Document the bug.
55743         * tests/test-symlink.h (test_symlink): Enhance test.
55745 2009-11-10  Eric Blake  <ebb9@byu.net>
55747         link: detect FreeBSD bug
55748         * m4/link.m4 (gl_FUNC_LINK): Also detect FreeBSD bug with slash on
55749         symlink.
55750         * doc/posix-functions/link.texi (link): Document the bug.
55751         * tests/test-link.h (test_link): Enhance test.
55752         * tests/test-linkat.c (main): Update caller.
55754         unlink, remove: detect FreeBSD bug
55755         * m4/unlink.m4 (gl_FUNC_UNLINK): Also detect FreeBSD bug with
55756         slash on symlink.
55757         * doc/posix-functions/unlink.texi (unlink): Document the bug.
55758         * doc/posix-functions/remove.texi (remove): Likewise.
55759         * tests/test-unlink.h (test_unlink): Enhance test.
55760         * tests/test-remove.c (main): Likewise.
55762 2009-11-09  Eric Blake  <ebb9@byu.net>
55764         rename: detect FreeBSD bug
55765         * m4/rename.m4 (gl_FUNC_RENAME): Also detect FreeBSD bug with
55766         slash on symlink.
55767         * modules/renameat-tests (Depends-on): Add filenamecat.
55768         * tests/test-rename.h (test_rename): Allow one more errno.
55769         * tests/test-renameat.c (main): Likewise.
55770         * doc/posix-functions/rename.texi (rename): Document the bug.
55772         open: detect FreeBSD bug
55773         * m4/open.m4 (gl_FUNC_OPEN): Also detect FreeBSD bug with slash on
55774         symlink.
55775         * doc/posix-functions/open.texi (open): Document the bug.
55776         * doc/posix-functions/utimes.texi (utimes): Likewise.
55777         * tests/test-open.h (test_open): Add parameters, and test symlink
55778         handling.
55779         * tests/test-open.c (main): Adjust caller.
55780         * tests/test-fcntl-safer.c (main): Likewise.
55781         * modules/open-tests (Depends-on): Add stdbool, symlink.
55782         * modules/fcntl-safer-tests (Depends-on): Likewise.
55783         * tests/test-openat.c (main): Add test-open tests.
55785         stat: detect FreeBSD bug
55786         * m4/stat.m4 (gl_FUNC_STAT): Also detect FreeBSD bug with slash on
55787         symlink.
55788         * doc/posix-functions/stat.texi (stat): Document the bug.
55789         * tests/test-stat.h (test_stat_func): Add argument.
55790         * tests/test-stat.c (main): Adjust caller.
55791         * tests/test-fstatat.c (main): Likewise.
55792         * modules/stat-tests (Depends-on): Add stdbool, symlink.
55793         Reported by Jim Meyering.
55795 2009-11-09  James Youngman  <jay@gnu.org>
55797         strftime.c: include ignore-value.h only when FPRINTFTIME is defined
55798         * lib/strftime.c: Correct placement of #include "ignore-value.h".
55800 2009-11-08  Jim Meyering  <meyering@redhat.com>
55802         utimens: remove invalid futimesat call
55803         * lib/utimens.c (fdutimens): Remove invalid futimesat call.
55804         It used the file descriptor of the target file as the DIR_FD
55805         parameter and NULL as the file name.  That caused failure with
55806         errno == EFAULT on FreeBSD-8.0-rc2
55808 2009-11-07  Eric Blake  <ebb9@byu.net>
55810         fflush, freadseek: use fseeko, not fseek
55811         * lib/fflush.c (clear_ungetc_buffer_preserving_position)
55812         (clear_ungetc_buffer): Avoid potential problems on large files.
55813         * lib/freadseek.c (freadseek): Likewise.
55814         * modules/freadseek (Depends-on): Add fseeko.
55815         * modules/fseek (configure.ac): Set a witness.
55816         * tests/test-fflush.c (main): Use fseeko.
55817         * tests/test-fpurge.c (fseek): Disable link warning.
55818         * tests/test-freadable.c (fseek): Likewise.
55819         * tests/test-freading.c (fseek): Likewise.
55820         * tests/test-fseeko.c (fseek): Likewise.
55821         * tests/test-ftell.c (fseek): Likewise.
55822         * tests/test-ftello.c (fseek): Likewise.
55823         * tests/test-fwritable.c (fseek): Likewise.
55824         * tests/test-fwriting.c (fseek): Likewise.
55826 2009-11-06  Simon Josefsson  <simon@josefsson.org>
55828         * modules/memchr (Depends-on): Drop getpagesize dependency.
55830 2009-11-06  Simon Josefsson  <simon@josefsson.org>
55832         * build-aux/pmccabe2html: Disable execute bit.  Suggested by
55833         Reported by Ludovic Courtès.
55834         * build-aux/pmccabe2html: Improve example usage.
55835         * build-aux/pmccabe2html: Drop #! header.  Doc fix.
55837 2009-11-06  Jim Meyering  <meyering@redhat.com>
55839         do-release-commit-and-tag: New module.
55840         Automate the release-commit and tag process.
55841         * build-aux/do-release-commit-and-tag: New script, from coreutils.
55842         * modules/do-release-commit-and-tag: New file.
55843         * MODULES.html.sh (Support for maintaining and releasing): Add it.
55845 2009-11-06  Simon Josefsson  <simon@josefsson.org>
55847         * modules/select-tests (test_select_LDADD): Add $(INET_PTON_LIB)
55848         because test-select.c uses inet_pton.
55850 2009-11-06  Simon Josefsson  <simon@josefsson.org>
55852         * m4/getaddrinfo.m4: Add content of INET_NTOP_LIB to
55853         GETADDRINFO_LIB.  Bump serial number.
55854         * modules/getaddrinfo (Link): Only mention GETADDRINFO_LIB again.
55855         Suggested by Eric Blake <ebb9@byu.net>.
55857 2009-11-05  Eric Blake  <ebb9@byu.net>
55859         strtod: detect darwin bug
55860         * m4/strtod.m4 (gl_FUNC_STRTOD): Filter out darwin bug on "nan(".
55861         Reported by Leo Davis.
55863         freopen-safer: new module
55864         * modules/freopen-safer: New module.
55865         * m4/stdio-safer.m4 (gl_FREOPEN_SAFER): New macro.
55866         * lib/freopen-safer.c (freopen_safer): New file.
55867         * lib/stdio-safer.h (freopen_safer): New declaration.
55868         * lib/stdio--.h (freopen): New override.
55869         * MODULES.html.sh (File stream based Input/Output): Mention it.
55870         * doc/posix-functions/freopen.texi (freopen): Mention pitfalls and
55871         freopen-safer module.
55872         * doc/posix-functions/stderr.texi (stderr): Likewise.
55873         * doc/posix-functions/stdin.texi (stdin): Likewise.
55874         * doc/posix-functions/stdout.texi (stdout): Likewise.
55875         * modules/freopen-safer-tests: New test.
55876         * tests/test-reopen-safer.c: New file.
55878 2009-11-05  Jim Meyering  <meyering@redhat.com>
55880         maint.mk: Prohibit inclusion of "close-stream.h" without use.
55881         * top/maint.mk (sc_prohibit_close_stream_without_use): New rule.
55883 2009-11-05  Simon Josefsson  <simon@josefsson.org>
55885         * modules/pmccabe2html (configure.ac): Check for pmccabe tool.
55887 2009-11-05  Simon Josefsson  <simon@josefsson.org>
55889         * modules/getaddrinfo (Link): Add $(INET_NTOP_LIB).
55891 2009-11-05  Simon Josefsson  <simon@josefsson.org>
55893         Fix link error.
55894         * m4/inet_ntop.m4 (gl_INET_NTOP): Fix test of AC_SEARCH_LIBS result.
55895         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
55897 2009-11-05  Simon Josefsson  <simon@josefsson.org>
55899         * tests/test-func.c: Also test value of __func__.
55901 2009-11-05  Simon Josefsson  <simon@josefsson.org>
55903         * tests/test-sys_socket.c: Use smaller constant value, sa_family_t
55904         may be an 8-bit type.  Reported by Bruno Haible <bruno@clisp.org>.
55906 2009-11-05  Bruno Haible  <bruno@clisp.org>
55908         Fix link error.
55909         * m4/inet_ntop.m4 (gl_INET_NTOP): Fix test of AC_SEARCH_LIBS result.
55910         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
55911         Reported by Brad Hards <bradh@frogmouth.net> via Simon Josefsson.
55913 2009-11-05  Bruno Haible  <bruno@clisp.org>
55915         Tests for module 'inet_pton'.
55916         * modules/inet_pton-tests: New file.
55917         * tests/test-inet_pton.c: New file.
55919 2009-11-05  Bruno Haible  <bruno@clisp.org>
55921         Tests for module 'inet_ntop'.
55922         * modules/inet_ntop-tests: New file.
55923         * tests/test-inet_ntop.c: New file.
55925 2009-11-04  Eric Blake  <ebb9@byu.net>
55927         stdlib-safer: wrap all mkstemp variants
55928         * modules/mkostemp (configure.ac): Set witness.
55929         * modules/mkostemps (configure.ac): Likewise.
55930         * modules/mkstemps (configure.ac): Likewise.
55931         * lib/stdlib-safer.h (mkostemp_safer, mkostemps_safer)
55932         (mkstemps_safer): Wrap more functions.
55933         * lib/stdlib--.h (mkostemp, mkostemps, mkstemps): Default the
55934         wrapping.
55935         * lib/mkstemp-safer.c (mkostemp_safer, mkostemps_safer)
55936         (mkstemps_safer): Implement the wrappers.
55938         mkstemps, mkostemps: new modules
55939         * modules/mkostemps: New module.
55940         * modules/mkstemps: Likewise.
55941         * lib/mkostemps.c (mkostemps): New file.
55942         * lib/mkstemps.c (mkstemps): Likewise.
55943         * m4/mkostemps.m4 (gl_FUNC_MKOSTEMPS): Likewise.
55944         * m4/mkstemps.m4 (gl_FUNC_MKSTEMPS): Likewise.
55945         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Add witnesses.
55946         * modules/stdlib (Makefile.am): Substitute them.
55947         * lib/stdlib.in.h (mkostemps, mkstemps): Declare them.
55948         * doc/glibc-functions/mkstemps.texi (mkstemps): New file.
55949         * doc/glibc-functions/mkostemps.texi (mkostemps): Likewise.
55950         * doc/gnulib.texi (Glibc stdlib.h): Include them.
55951         * MODULES.html.sh (File system functions): Mention them.
55953         tempname: resync from glibc
55954         * lib/tempname.c (__gen_tempname): Add suffixlen argument.  Use
55955         same values for __GT_FILE as glibc.  Abort even when assertions
55956         are disabled.
55957         * lib/tempname.h (GT_FILE): Use glibc __GT_FILE, if available, and
55958         match its value otherwise.  Allow idempotent inclusion.
55959         * lib/mkdtemp.c (mkdtemp): Adjust caller.
55960         * lib/mkostemp.c (mkostemp): Likewise.
55961         * lib/mkstemp.c (mkstemp): Likewise.
55962         * lib/tmpfile.c (tmpfile): Likewise.
55963         * NEWS: Document this.
55965         utimens: fix use of futimens on older Linux
55966         * lib/utimens.c (fdutimens): Use updated, rather than original,
55967         timespec to avoid bug in older Linux kernel.
55968         Reported by Simon Josefsson.
55970 2009-11-04  Bruno Haible  <bruno@clisp.org>
55972         Make num_processors more flexible and consistent.
55973         * lib/nproc.h (enum nproc_query): New type.
55974         (num_processors): Add a 'query' argument.
55975         * lib/nproc.c: Include <stdlib.h>, <sched.h>, c-ctype.h.
55976         (num_processors): Add a 'query' argument. Test the value of the
55977         OMP_NUM_THREADS environment variable if requested. On Linux, NetBSD,
55978         mingw, count the number of CPUs available for the current process.
55979         * m4/nproc.m4 (gl_PREREQ_NPROC): Require AC_USE_SYSTEM_EXTENSIONS.
55980         Check for sched_getaffinity and sched_getaffinity_np.
55981         * modules/nproc (Depends-on): Add c-ctype, extensions.
55982         * NEWS: Mention the change.
55984 2009-11-03  Bruno Haible  <bruno@clisp.org>
55986         * NEWS: Document the new library dependencies of inet_ntop, inet_pton.
55988 2009-11-03  Jim Meyering  <meyering@redhat.com>
55990         test-getaddrinfo: avoid compilation failure on FreeBSD 7.2
55991         * tests/test-getaddrinfo.c (simple): Test for EAI_NODATA only
55992         if it is defined.
55994 2009-11-02  Eric Blake  <ebb9@byu.net>
55996         mktime, timegm: share common declaration
55997         * lib/mktime-internal.h: New file.
55998         * lib/mktime.c: Use it rather than open-coding a declaration.
55999         * lib/timegm.c: Likewise.
56000         * modules/mktime (Files): Ship it.
56001         * modules/timegm (Files): Likewise.
56002         Suggested by Bruno Haible.
56004         test-update-copyright: update test to match script changes
56005         * tests/test-update-copyright.sh: Avoid hard-coding perl
56006         location.  Don't update *.bak created by earlier runs.
56008 2009-11-02  Paul Eggert  <eggert@cs.ucla.edu>
56009             Simon Josefsson  <simon@josefsson.org>
56010             Bruno Haible  <bruno@clisp.org>
56012         Fix link error on Solaris 8.
56013         * m4/inet_pton.m4 (gl_INET_PTON): Search for the function inet_pton
56014         also in libnsl. Define also INET_PTON_LIB.
56015         * modules/inet_pton (Link): New section.
56017 2009-11-02  Simon Josefsson  <simon@josefsson.org>
56018             Bruno Haible  <bruno@clisp.org>
56020         * m4/inet_ntop.m4 (gl_INET_NTOP): Define also INET_NTOP_LIB.
56021         * modules/inet_ntop (Link): New section.
56022         Reported by Boyan Kasarov <bkasarov@gmail.com>.
56024 2009-11-02  Eric Blake  <ebb9@byu.net>
56026         maint: avoid compiler warnings in m4 macros
56027         * m4/ungetc.m4 (gl_FUNC_UNGETC_WORKS): Avoid unused variable.
56028         * m4/rmdir.m4 (gl_FUNC_RMDIR): Include correct header.
56030 2009-11-02  Simon Josefsson  <simon@josefsson.org>
56032         * m4/pmccabe2html.m4: Remove file.
56033         * modules/pmccabe2html: Drop pmccabe2html.m4.  Don't call m4
56034         function.  Change maintainer.
56035         * build-aux/pmccabe2html: Use /bin/sh with magic instead of
56036         hard-coding path to awk.  Tiny patch from ludo@gnu.org (Ludovic
56037         Courtès).
56039 2009-10-31  Eric Blake  <ebb9@byu.net>
56041         fseeko: fix m4 regression
56042         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Use modern macro.  Fixes
56043         regression from 2009-10-27.
56044         Reported by Ralf Wildenhues.
56046 2009-10-31  Jim Meyering  <meyering@redhat.com>
56048         inttostr: aesthetics and improved (compile-time) safety
56049         Define inttype_is_signed rather than inttype_is_unsigned,
56050         since the sole use is via "#if inttype_is_signed".
56051         * lib/imaxtostr.c (inttype_is_signed): Define this, rather than
56052         inttype_is_unsigned.
56053         * lib/offtostr.c (inttype_is_signed): Likewise.
56054         * lib/uinttostr.c (inttype_is_signed): Likewise.
56055         * lib/umaxtostr.c (inttype_is_signed): Likewise.
56056         * lib/inttostr.c (inttostr): Use verify to cross-check the
56057         inttype_is_signed value and the signedness of the actual type.
56058         * modules/inttostr (Depends-on): Add verify.
56060 2009-10-30  Eric Blake  <ebb9@byu.net>
56062         build: avoid compiler warnings
56063         * lib/fchmodat.c (lchmod): Mark unused variables.
56064         * lib/getopt.c (_getopt_initialize): Likewise.
56065         * lib/mktime.c (__mktime_internal): Provide prototype.
56066         * lib/inttostr.c (inttostr): Avoid compiler warning even with
56067         older gcc that do not understand #pragma GCC diagnostic.
56068         * lib/uinttostr.c (inttype_is_unsigned): Define.
56069         * lib/umaxtostr.c (inttype_is_unsigned): Likewise.
56071 2009-10-30  Michael Haubenwallner  <michael.haubenwallner@salomon.at>
56073         stat: fix compilation on AIX
56074         * lib/sys_stat.in.h (stat): Work with fact that large files on AIX
56075         only see struct stat64.
56077 2009-10-30  Eric Blake  <ebb9@byu.net>
56079         exclude: make more robust
56080         * lib/exclude.c (excluded_file_name): Abort on unexpected value,
56081         rather than masking a coding bug.
56082         Suggested by Bruno Haible.
56084 2009-10-30  Jim Meyering  <meyering@redhat.com>
56086         perl scripts: remove #!/usr/bin/perl in favor of more portable...
56087         Rather than putting #!/usr/bin/perl on the first line,
56088         start with a variant of what's recommended by "man perlrun" that
56089         invokes the first "perl" program from your shell's search path.
56090         * build-aux/gitlog-to-changelog: Replace #!... as above.
56091         Add a "Local Variables" perl mode setting.
56092         Prompted by a patch from Ludovic Courtès.
56093         Improved by Eric Blake.
56094         * build-aux/useless-if-before-free: Likewise.
56095         * build-aux/announce-gen: Likewise.
56096         * build-aux/update-copyright: Likewise.
56098 2009-10-29  Eric Blake  <ebb9@byu.net>
56100         filenamecat-lgpl: adjust clients
56101         * modules/linkat (Depends-on): Use filenamecat-lgpl, not
56102         filenamecat.
56103         * modules/renameat (Depends-on): Likewise.
56105         filenamecat: split into filenamecat-lgpl
56106         * modules/filenamecat-lgpl: New module.
56107         * modules/filenamecat (Files): Move library-safe files into
56108         filenamecat-lgpl.
56109         (Depends-on): Add filenamecat-lgpl.
56110         (configure.ac): Declare witness.
56111         * lib/filenamecat.h (file_name_concat): Only declare when using
56112         GPL module.
56113         * lib/filenamecat.c (longest_relative_suffix, mfile_name_concat):
56114         Move...
56115         * lib/filenamecat-lgpl.c: ...into new file.
56116         * m4/filenamecat.m4 (gl_FILE_NAME_CONCAT_LGPL): New macro.
56117         (gl_FILE_NAME_CONCAT): Use it.
56118         * MODULES.html.sh (File system functions): Mention new module.
56120         argp: avoid memory leak
56121         * modules/argp (Depends-on): Use dirname-lgpl, not dirname.
56122         * lib/argp-namefrob.h (__argp_base_name): Use last_component, not
56123         base_name, since the latter malloc()s and can call exit().
56124         Leak introduced 2006-07-03.
56126         dirname-lgpl: adjust clients that don't need full dirname
56127         * modules/backupfile (Depends-on): Use dirname-lgpl, not dirname.
56128         * modules/filenamecat (Depends-on): Likewise.
56129         * modules/linkat (Depends-on): Likewise.
56130         * modules/mkancesdirs (Depends-on): Likewise.
56131         * modules/mkdir (Depends-on): Likewise.
56132         * modules/openat (Depends-on): Likewise.
56133         * modules/savewd (Depends-on): Likewise.
56134         * modules/rename (Depends-on): Likewise.
56135         (License): Relax license.
56136         * modules/mkdir-tests (Depends-on): Drop progname.
56137         (Makefile.am): Delete unneeded LDADD.
56138         * modules/rename-tests (Depends-on, Makefile.am): Likewise.
56140         dirname: split into dirname-lgpl
56141         * modules/dirname-lgpl: New module.
56142         * modules/dirname (Files): Move library-safe files into
56143         dirname-lgpl.
56144         (Depends-on): Add dirname-lgpl.
56145         (configure.ac): Declare witness.
56146         * modules/double-slash-root (License): Relax license.
56147         * lib/dirname.h (base_name, dir_name): Only declare when using GPL
56148         module.
56149         * lib/dirname.c (dir_len, mdir_name): Move...
56150         * lib/dirname-lgpl.c: ...into new file.
56151         * lib/basename.c (last_component, base_len): Move...
56152         * lib/basename-lgpl.c: ...into new file.
56153         * m4/dirname.m4 (gl_DIRNAME_LGPL): New macro.
56154         (gl_DIRNAME): Use it.
56155         * MODULES.html.sh (Enhancements for POSIX:2008 functions):
56156         Mention new module.
56157         * modules/dirname-tests (Depends-on): Add progname.
56158         * tests/test-dirname.c (program_name): Delete.
56160         mkdir: make safe for libraries
56161         * modules/mkdir (Depends-on): Drop xalloc.
56162         * lib/mkdir.c (rpl_mkdir): Fail with ENOMEM rather than calling
56163         exit.
56165         tests: avoid some compiler warnings
56166         * tests/test-getaddrinfo.c (simple): Mark static, and allow string
56167         literals.
56168         * tests/test-memchr.c (main): Avoid type mismatch.
56169         * tests/test-arpa_inet.c (main): Avoid unused parameters.
56170         * tests/test-base64.c (main): Likewise.
56171         * tests/test-getdelim.c (main): Likewise.
56172         * tests/test-gethostname.c (main): Likewise.
56173         * tests/test-getline.c (main): Likewise.
56174         * tests/test-netinet_in.c (main): Likewise.
56175         * tests/test-select.c (open_server_socket, main): Likewise.
56176         * tests/test-select-stdin.c (main): Likewise.
56177         * tests/test-sockets.c (main): Likewise.
56178         * tests/test-strsignal.c (main): Likewise.
56179         * tests/test-sys_select.c (main): Likewise.
56180         * tests/test-sys_socket.c (main): Likewise.
56181         * tests/test-u64.c (main): Likewise.
56182         * tests/test-xfprintf-posix.c (main): Likewise.
56183         * tests/test-xvasprintf.c (test_xvasprintf, main): Likewise.
56185         sockets: avoid compiler warning
56186         * lib/sockets.c (gl_sockets_startup): Mark unused parameter.
56188         maint: detect usage(1) and other suspicious exits
56189         * top/maint.mk (sc_prohibit_magic_number_exit): New rule.
56191 2009-10-29  Jim Meyering  <meyering@redhat.com>
56193         timespec: long-to-int truncation could make timespec_cmp malfunction
56194         * lib/timespec.h (timespec_cmp): Do not interpret a difference of
56195         a multiple of 2^32 nanoseconds as no difference.
56197 2009-10-28  Jim Meyering  <meyering@redhat.com>
56199         fprintftime: wrap macro code argument in "do {...} while(0)"
56200         * lib/strftime.c (cpy) [FPRINTFTIME]: The second argument to the
56201         cpy macro must be a statement that can be followed by a semicolon.
56202         Now that the else clause contains a comment and is hence longer
56203         than one line, I require curly braces.  That in turn requires
56204         that we wrap this code block in the standard do...while(0).
56206         fprintftime: remove stray semicolon from previous change
56207         * lib/strftime.c (cpy) [FPRINTFTIME]: Remove trailing semicolon.
56209         fprintftime: avoid a warning about ignored fwrite return value
56210         * lib/strftime.c [FPRINTFTIME]: Include "ignore-value.h".
56211         (cpy) [FPRINTFTIME]: Ignore fwrite failure, even though technically,
56212         that is unsafe.
56213         * modules/fprintftime (Depends-on): Add ignore-value.
56215         exclude: avoid an unwarranted warning
56216         * lib/exclude.c (excluded_file_name): Initialize "rc" before switch.
56218 2009-10-27  Eric Blake  <ebb9@byu.net>
56220         fseek: avoid compilation failure when fflush is replaced
56221         * m4/fseek.m4 (gl_REPLACE_FSEEK): New macro.
56222         * m4/fseeko.m4 (gl_REPLACE_FSEEKO): Also replace fseek, if fseek
56223         module is in use.
56224         * lib/stdio.in.h (GNULIB_FSEEKO): Only poison fseek if fseek
56225         module is not in use; since REPLACE_FSEEK worked otherwise.
56226         (GNULIB_FTELLO): Likewise for ftell.
56227         Reported by Ian Beckwith and others.
56229 2009-10-27  Bruno Haible  <bruno@clisp.org>
56231         * lib/isnan.c (rpl_isnan[fdl]): Repeat the specification declaration.
56232         Reported by Jim Meyering.
56234 2009-10-27  Jim Meyering  <jim@meyering.net>
56235             Bruno Haible  <bruno@clisp.org>
56237         Avoid warning despite dropping the return value of fwrite.
56238         * lib/unicodeio.c: Include ignore-value.h.
56239         (fwrite_success_callback): Explicitly ignore fwrite's return value.
56240         * modules/unicodeio (Depends-on): Add ignore-value.
56242 2009-10-26  Eric Blake  <ebb9@byu.net>
56244         areadlinkat: fix fallback path
56245         * lib/at-func.c (AT_FUNC_NAME): Avoid signed comparison between
56246         pointer and zero.
56248 2009-10-22  Pádraig Brady  <P@draigBrady.com>
56250         Use a better IO block size for modern systems
56251         * lib/copy-file.c (copy_file_preserving): Used a 32KiB malloced buffer.
56252         * lib/md2.c: Likewise.
56253         * lib/md4.c: Likewise.
56254         * lib/md5.c: Likewise.
56255         * lib/sha1.c: Likewise.
56256         * lib/sha256.c: Likewise.
56257         * lib/sha512.c: Likewise.
56259 2009-10-22  Eric Blake  <ebb9@byu.net>
56261         tests: avoid several compiler warnings
56262         * tests/test-getcwd.c (main): Avoid buffer underflow.
56263         * tests/test-getdate.c (main): String literals are not safe with
56264         putenv, so use setenv.  Declare unused argument.
56265         * modules/getdate-tests (Depends-on): Add setenv.
56266         * tests/test-argv-iter.c (main): Declare unused argument.  Avoid
56267         problems with string literals in char *.
56268         * tests/test-hash.c (main): Avoid shadowing declaration.
56269         (insert_new): Treat string literals as char const *.
56270         * tests/test-getopt.h (test_getopt): Likewise.
56271         (getopt_loop): Alter types to minimize casting elsewhere.
56272         * tests/test-getopt_long.h (test_getopt_long, getopt_long_loop)
56273         (test_getopt_long_posix): Likewise.
56274         (do_getopt_long): Add wrapper to minimize casting.
56275         * tests/test-atexit.c (clear_temp_file): Use void.
56276         * tests/test-areadlink-with-size.c (main): Declare unused
56277         arguments.
56278         * tests/test-areadlink.c (main): Likewise.
56279         * tests/test-areadlinkat-with-size.c (main): Likewise.
56280         * tests/test-areadlinkat.c (main): Likewise.
56281         * tests/test-canonicalize-lgpl.c (main): Likewise.
56282         * tests/test-canonicalize.c (main): Likewise.
56283         * tests/test-dirent-safer.c (main): Likewise.
56284         * tests/test-dirname.c (main): Likewise.
56285         * tests/test-dup2.c (main): Likewise.
56286         * tests/test-fchdir.c (main): Likewise.
56287         * tests/test-fcntl-h.c (main): Likewise.
56288         * tests/test-fcntl-safer.c (main): Likewise.
56289         * tests/test-fdopendir.c (main): Likewise.
56290         * tests/test-fdutimensat.c (main): Likewise.
56291         * tests/test-fflush.c (main): Likewise.
56292         * tests/test-filenamecat.c (main): Likewise.
56293         * tests/test-filevercmp.c (main): Likewise.
56294         * tests/test-fopen-safer.c (main): Likewise.
56295         * tests/test-fopen.c (main): Likewise.
56296         * tests/test-fpending.c (main): Likewise.
56297         * tests/test-fpurge.c (main): Likewise.
56298         * tests/test-freading.c (main): Likewise.
56299         * tests/test-fstatat.c (main): Likewise.
56300         * tests/test-fsync.c (main): Likewise.
56301         * tests/test-futimens.c (main): Likewise.
56302         * tests/test-getndelim2.c (main): Likewise.
56303         * tests/test-gettimeofday.c (main): Likewise.
56304         * tests/test-getopt.c (main): Likewise.
56305         * tests/test-i-ring.c (main): Likewise.
56306         * tests/test-inttypes.c (main): Likewise.
56307         * tests/test-link.c (main): Likewise.
56308         * tests/test-lstat.c (main): Likewise.
56309         * tests/test-math.c (main): Likewise.
56310         * tests/test-md5.c (main): Likewise.
56311         * tests/test-memchr2.c (main): Likewise.
56312         * tests/test-memrchr.c (main): Likewise.
56313         * tests/test-mkdir.c (main): Likewise.
56314         * tests/test-mkdirat.c (main): Likewise.
56315         * tests/test-mkfifoat.c (main): Likewise.
56316         * tests/test-open.c (main): Likewise.
56317         * tests/test-openat-safer.c (main): Likewise.
56318         * tests/test-openat.c (main): Likewise.
56319         * tests/test-quotearg.c (main): Likewise.
56320         * tests/test-rawmemchr.c (main): Likewise.
56321         * tests/test-readlink.c (main): Likewise.
56322         * tests/test-remove.c (main): Likewise.
56323         * tests/test-rename.c (main): Likewise.
56324         * tests/test-renameat.c (main): Likewise.
56325         * tests/test-rmdir.c (main): Likewise.
56326         * tests/test-sha1.c (main): Likewise.
56327         * tests/test-signal.c (main): Likewise.
56328         * tests/test-sigaction.c (main): Likewise.
56329         * tests/test-stat.c (main): Likewise.
56330         * tests/test-stat-time.c (main): Likewise.
56331         * tests/test-stddef.c (main): Likewise.
56332         * tests/test-stdint.c (main): Likewise.
56333         * tests/test-stdio.c (main): Likewise.
56334         * tests/test-stdlib.c (main): Likewise.
56335         * tests/test-strchrnul.c (main): Likewise.
56336         * tests/test-strerror.c (main): Likewise.
56337         * tests/test-string.c (main): Likewise.
56338         * tests/test-strtod.c (main): Likewise.
56339         * tests/test-strverscmp.c (main): Likewise.
56340         * tests/test-symlink.c (main): Likewise.
56341         * tests/test-symlinkat.c (main): Likewise.
56342         * tests/test-sys_stat.c (main): Likewise.
56343         * tests/test-sys_time.c (main): Likewise.
56344         * tests/test-time.c (main): Likewise.
56345         * tests/test-unistd.c (main): Likewise.
56346         * tests/test-unlink.c (main): Likewise.
56347         * tests/test-unlinkat.c (main): Likewise.
56348         * tests/test-utimens.c (main): Likewise.
56349         * tests/test-utimensat.c (main): Likewise.
56350         * tests/test-version-etc.c (main): Likewise.
56351         * tests/test-wchar.c (main): Likewise.
56352         * tests/test-wctype.c (main): Likewise.
56353         * tests/test-xprintf-posix.c (main): Likewise.
56354         * tests/test-posixtm.c (main): Likewise.
56355         (STREQ): Delete unused macro.
56356         * tests/test-linkat.c (main): Declare unused arguments.  Avoid
56357         shadowed variables.
56358         * tests/test-memchr.c (main): Likewise.
56360 2009-10-21  Eric Blake  <ebb9@byu.net>
56362         areadlinkat: avoid failure on older glibc
56363         * lib/at-func.c (AT_FUNC_NAME): Check for explicit FUNC_FAIL,
56364         rather than mis-comparing 0 against FUNC_RESULT of char*.
56366 2009-10-21  Bruno Haible  <bruno@clisp.org>
56368         * modules/stpncpy (License): Relicense under LGPLv2+.
56369         Reported by David Lutterkort <lutter@redhat.com>.
56371 2009-10-20  Eric Blake  <ebb9@byu.net>
56373         utimensat: work around Solaris 9 bug
56374         * lib/utimens.c (fdutimens, lutimens): Force a stat if platform
56375         has trailing slash bugs.
56376         * tests/test-lutimens.h (test_lutimens): Enhance test.
56377         * tests/test-utimens.h (test_utimens): Likewise.
56378         * doc/posix-functions/utime.texi (utime): Enhance documentation.
56379         * doc/posix-functions/utimes.texi (utimes): Likewise.
56380         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
56381         * doc/glibc-functions/futimesat.texi (futimesat): Likewise.
56382         * doc/glibc-functions/lutimes.texi (lutimes): Likewise.
56383         * doc/posix-functions/futimens.texi (futimens): Likewise.
56385         fdutimensat: new module
56386         * modules/fdutimensat: New file.
56387         * lib/fdutimensat.c (fdutimensat): Likewise.
56388         * lib/utimens.h (fdutimensat, lutimensat): Declare new functions.
56389         * MODULES.html.sh (File system functions): Mention module.
56390         * modules/fdutimensat-tests: New test.
56391         * tests/test-fdutimensat.c: Likewise.
56393         doc: regenerate INSTALL
56394         * doc/INSTALL: Reflect recent autoconf update.
56395         * doc/INSTALL.ISO: Likewise.
56396         * doc/INSTALL.UTF-8: Likewise.
56398 2009-10-20  Pádraig Brady  <P@draigBrady.com>
56400         acl: warn if ACL support is not detected
56401         * m4/acl.m4 (gl_FUNC_ACL): Output a warning if ACL support is not found.
56403 2009-10-19  Giuseppe Scrivano  <gscrivano@gnu.org>
56405         * lib/nproc.h: Add extern "C" block for C++.
56407 2009-10-18  Reuben Thomas  <rrt@sc3d.org>
56408             Bruno Haible  <bruno@clisp.org>
56410         * doc/posix-functions/isascii.texi: Document the 2 alternative APIs.
56411         * doc/posix-functions/isalnum.texi: Document the 4 alternative APIs.
56412         * doc/posix-functions/isalpha.texi: Likewise.
56413         * doc/posix-functions/isblank.texi: Likewise.
56414         * doc/posix-functions/iscntrl.texi: Likewise.
56415         * doc/posix-functions/isdigit.texi: Likewise.
56416         * doc/posix-functions/isgraph.texi: Likewise.
56417         * doc/posix-functions/islower.texi: Likewise.
56418         * doc/posix-functions/isprint.texi: Likewise.
56419         * doc/posix-functions/ispunct.texi: Likewise.
56420         * doc/posix-functions/isspace.texi: Likewise.
56421         * doc/posix-functions/isupper.texi: Likewise.
56422         * doc/posix-functions/isxdigit.texi: Likewise.
56424 2009-10-18  Bruno Haible  <bruno@clisp.org>
56426         Tests for module 'isblank'.
56427         * modules/isblank-tests: New file.
56428         * tests/test-isblank.c: New file.
56430         New module 'isblank'.
56431         * lib/isblank.c: New file.
56432         * m4/isblank.m4: New file.
56433         * modules/isblank: New file.
56434         * doc/posix-functions/isblank.texi: Mention the new module.
56436 2009-10-18  Bruno Haible  <bruno@clisp.org>
56438         New module 'ctype'.
56439         * lib/ctype.in.h: New file.
56440         * m4/ctype.m4: New file.
56441         * modules/ctype: New file.
56442         * doc/posix-headers/ctype.texi: Mention the new module.
56444 2009-10-18  Jim Meyering  <meyering@redhat.com>
56446         m4: stylistic-only: hoist AC_SUBST to be adjacent to initialization
56447         Declare a variable like LIB_CLOCK_GETTIME to be AC_SUBSTituted
56448         right after its initialization, rather than farther down.
56449         Keeping these in close proximity makes it easier to ensure
56450         that each such variable is initialized.  E.g.,
56452             LIB_CLOCK_GETTIME=
56453             AC_SUBST([LIB_CLOCK_GETTIME])
56455         This change also increments these serial numbers.
56456         * m4/clock_time.m4 (gl_CLOCK_TIME): Hoist AC_SUBST use.
56457         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
56458         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
56460 2009-10-18  Bruno Haible  <bruno@clisp.org>
56462         Don't let environment variables perturb build.
56463         * m4/gethrxtime.m4 (gl_GETHRXTIME): Initialize LIB_GETHRXTIME here...
56464         (gl_PREREQ_GETHRXTIME): ... not here.
56466 2009-10-18  Bruno Haible  <bruno@clisp.org>
56468         Avoid symlink attack in localcharset module.
56469         * lib/localcharset.c: Include <fcntl.h>, <unistd.h>.
56470         (O_NOFOLLOW): Define fallback.
56471         (get_charset_aliases): Don't open the file if it is a symbolic link.
56472         * m4/fcntl_h.m4 (gl_FCNTL_O_FLAGS): New macro, extracted from
56473         gl_FCNTL_H.
56474         (gl_FCNTL_H): Require it.
56475         * m4/localcharset.m4 (gl_LOCALCHARSET): Likewise.
56476         * modules/localcharset (Files): Add m4/fcntl_h.m4.
56477         Reported by Fergal Glynn <fglynn@veracode.com>.
56479 2009-10-18  Bruno Haible  <bruno@clisp.org>
56481         Implement nproc for mingw.
56482         * lib/nproc.c: Include <windows.h>
56483         (num_processors): On native Windows platforms, try GetSystemInfo.
56485 2009-10-18  Bruno Haible  <bruno@clisp.org>
56487         Implement nproc for IRIX.
56488         * lib/nproc.c: Include <sys/sysmp.h>.
56489         (num_processors): On IRIX systems, try sysmp.
56490         * m4/nproc.m4 (gl_PREREQ_NPROC): Check for sys/sysmp.h and sysmp.
56492 2009-10-18  Bruno Haible  <bruno@clisp.org>
56494         Implement nproc for HP-UX.
56495         * lib/nproc.c: Include <sys/pstat.h>
56496         (num_processors): On HP-UX systems, try pstat_getdynamic.
56497         * m4/nproc.m4 (gl_PREREQ_NPROC): Check for sys/pstat.h and
56498         pstat_getdynamic.
56500 2009-10-18  Giuseppe Scrivano  <gscrivano@gnu.org>
56501             Bruno Haible  <bruno@clisp.org>
56503         Implement nproc for NetBSD, OpenBSD.
56504         * lib/nproc.c: Include <sys/types.h>, <sys/param.h>, <sys/sysctl.h>.
56505         (ARRAY_SIZE): New macro.
56506         (num_processors): On BSD systems, try sysctl of HW_NCPU.
56507         * m4/nproc.m4: New file.
56508         * modules/nproc (Files): Add m4/nproc.m4.
56509         (configure.ac): Invoke gl_NPROC. Remove AC_LIBOBJ invocation.
56510         (Makefile.am): Instead, augment lib_SOURCES.
56512 2009-10-18  Bruno Haible  <bruno@clisp.org>
56514         Fix recognition of sys/sysctl.h on OpenBSD 4.0.
56515         * m4/physmem.m4 (gl_PHYSMEM): Before including sys/sysctl.h, include
56516         sys/param.h.
56518 2009-10-16  Eric Blake  <ebb9@byu.net>
56520         utimensat: new module
56521         * modules/utimensat: New file.
56522         * lib/utimensat.c (utimensat): Likewise.
56523         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
56524         * lib/utimens.c (utimensat): Avoid recursion into rpl_utimensat,
56525         so we can work around Linux bugs.
56526         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
56527         * modules/sys_stat (Makefile.am): Substitute them.
56528         * lib/sys_stat.in.h (utimensat): Declare it.
56529         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
56530         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
56531         * modules/utimensat-tests: New test.
56532         * tests/test-utimensat.c: Likewise.
56534         utimens: let lutimens work on non-symlinks
56535         * lib/utimens.c (lutimens): Fall back to utimens rather than
56536         failing with ENOSYS, when file is not a symlink.
56537         (utimens): Reduce redirection.
56538         * tests/test-lutimens.h (test_lutimens): Update test to cover
56539         non-symlinks.
56540         * tests/test-utimens.h (test_utimens): Update test to cover
56541         symlinks.
56542         * tests/test-utimens.c (main): Update caller.
56544         utimens: cache whether utimensat syscall works
56545         * lib/utimens.c (utimensat_works_really): New cache variable.
56546         (fdutimens, lutimens): Use it to avoid failing syscall.
56548         test-stat-time, test-utimens: improve portability
56549         * tests/test-stat-time.c (nap): Lengthen delay to 20ms, for
56550         ext4 on alpha, and for cygwin.
56551         * tests/test-utimens-common.h: New file.
56552         (nap): Factor delays into single function.
56553         * tests/test-lutimens.h (test_lutimens): Use new header.
56554         * tests/test-futimens.h (test_futimens): Likewise.
56555         * tests/test-utimens.h (test_utimens): Likewise.  Also, force NFS
56556         timestamps to occur from same machine, as was done previously for
56557         test_utimens.
56558         * modules/utimens-tests (Files): Ship new file.
56559         * modules/futimens-tests (Files): Likewise.
56560         Reported in part by Jim Meyering.
56562         sys_stat: sort replacement declarations
56563         * lib/sys_stat.in.h: Sort declarations.
56564         * lib/futimens.c (futimens): Fix typo.
56566 2009-10-15  Jim Meyering  <meyering@redhat.com>
56568         don't let environment settings perturb build
56569         Setting the envvars, LIB_CLOCK_GETTIME, LIB_EACCESS or LIB_NANOSLEEP
56570         could cause a configure-time and/or build-time malfunction.
56571         Typically, a configure-time function-in-library test is performed
56572         via code like this:
56574           LIB_VAR=
56575           AC_SUBST([LIB_VAR])
56576           prefix_saved_LIBS=$LIBS
56577             AC_SEARCH_LIBS([FUNC], [LIB_NAME],
56578                        [test "$ac_cv_search_FUNC" = "none required" ||
56579                         LIB_VAR=$ac_cv_search_FUNC])
56580           LIBS=$prefix_saved_LIBS
56582         However, in each of the files affected by this change, the LIB_VAR=
56583         initialization was omitted.  Thus, when set in the environment, its
56584         value would propagate into generated Makefiles when FUNC is not found
56585         in LIB_NAME.
56586         * m4/clock_time.m4 (gl_CLOCK_TIME): Initialize AC_SUBST'd var.
56587         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
56588         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
56590 2009-10-14  Eric Blake  <ebb9@byu.net>
56592         fchdir: avoid infinite recursion in mingw
56593         * lib/fchdir.c (rpl_fstat): Call system fstat, rather than
56594         recursing.
56596         test-stat-time: port to mingw
56597         * tests/test-stat-time.c (force_unlink): Return a value.
56598         (test_ctime) [W32]: Fix compilation error.
56599         (nap): Don't call usleep with too large an argument.  Use
56600         force_unlink.
56601         * doc/pastposix-functions/usleep.texi (usleep): Document the
56602         portability issue.
56604 2009-10-13  Jim Meyering  <meyering@redhat.com>
56606         use AC_CHECK_FUNCS_ONCE, not AC_CHECK_FUNCS in modules/*
56607         * modules/pipe-filter-gi: Use AC_CHECK_FUNCS_ONCE, not AC_CHECK_FUNCS.
56608         * modules/pipe-filter-ii: Likewise.
56609         * modules/sys_socket-tests: Likewise.
56610         * modules/tsearch-tests: Likewise.
56611         * Makefile (sc_prefer_ac_check_funcs_once): New rule.
56612         (check): Depend on it.
56614 2009-10-12  Eric Blake  <ebb9@byu.net>
56616         utimens-tests: port to NFS file systems
56617         * tests/test-utimens.h (test_utimens): Refactor utimecmp
56618         comparisons to avoid spurious failures from timestamp drift
56619         between NFS machines.
56621 2009-10-12  Eric Blake  <ebb9@byu.net>
56623         stat-time-tests: minor cleanups
56624         * modules/stat-time-tests (configure.ac): Use AC_CHECK_FUNCS_ONCE.
56625         * tests/test-stat-time.c (nap): Separate assignment from call.
56626         Suggested by Paolo Bonzini and Bruno Haible.
56628         sys_stat: guarantee struct timespec
56629         * lib/sys_stat.in.h (includes): Always include <time.h>
56630         * modules/sys_stat (Depends-on): Add time.
56631         * tests/test-sys_stat.c: Guarantee struct timespec, as well as
56632         mode_t permission values.
56633         * doc/posix-headers/sys_stat.texi (sys/stat.h): Document how to
56634         get at subsecond timestamps.
56636 2009-10-10  Eric Blake  <ebb9@byu.net>
56638         futimens: new module
56639         * modules/futimens: New file.
56640         * lib/futimens.c (futimens): Likewise.
56641         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Likewise.
56642         * lib/utimens.c (futimens): Avoid recursion into rpl_futimens, so
56643         we can work around Linux bugs.
56644         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
56645         * modules/sys_stat (Makefile.am): Substitute them.
56646         * lib/sys_stat.in.h (futimens): Declare it.
56647         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
56648         * doc/posix-functions/futimens.texi (futimens): Likewise.
56649         * modules/futimens-tests: New test.
56650         * tests/test-futimens.c: Likewise.
56652         utimens: introduce fdutimens
56653         * lib/utimens.h (fdutimens): New prototype.
56654         * lib/utimens.c (gl_futimens): Move guts...
56655         (fdutimens): ...to new interface.
56656         * tests/test-utimens.c (do_fdutimens): Use it.
56658         utimens: add UTIME_NOW and UTIME_OMIT support
56659         * lib/utimens.c (validate_timespec, update_timespec): New helper
56660         functions.
56661         (gl_futimens, lutimens): Use them.
56662         * modules/utimens (Depends-on): Add gettime, lstat, stat-time,
56663         stdbool, sys_stat.
56664         (Link): Mention resulting library dependency.
56665         * modules/utimecmp (Link): Likewise.
56666         * modules/utimens-tests (Depends-on): Drop stat-time, stdbool.
56667         (Makefile.am): Pick up library dependency.
56668         * lib/sys_stat.in.h (UTIME_NOW, UTIME_OMIT): Guarantee a
56669         definition.
56670         * tests/test-sys_stat.c: Test the definitions.
56671         * doc/posix-headers/sys_stat.texi (sys/stat.h): Document this.
56672         * NEWS: Document library dependency.
56674         utimecmp: support symlink timestamps
56675         * lib/utimecmp.c (utimecmp): Use new interface.  Skip effort of
56676         hashing when possible.  Use pathconf when available.
56677         (SYSCALL_RESOLUTION): Recognize tighter resolution.
56678         * modules/utimecmp (Depends-on): Add lstat.
56680         utimens: add lutimens interface
56681         * lib/utimens.c (lutimens): New function.
56682         * m4/utimens.m4 (gl_UTIMENS): Check for lutimes.
56683         * lib/utimens.h (lutimens): Declare new interface.
56684         * tests/test-utimens.c (main): Enhance test.
56685         * tests/test-lutimens.h (test_lutimens): New file.
56686         * modules/utimens-tests (Files): Distribute it.
56687         (Depends-on): Add symlink.
56688         (configure.ac): Check for usleep.
56690         utimens: validate futimens usage
56691         * lib/utimens.c (gl_futimens): Require valid fd up front, using
56692         fewer syscalls on failure later on.  Avoid compiler warning on
56693         mingw.
56694         * modules/utimens (Depends-on): Add dup2.
56696         utimens: add test
56697         * modules/utimens-tests: New test.
56698         * tests/test-utimens.h: New file.
56699         * tests/test-futimens.h: Likewise.
56700         * tests/test-utimens.c: Likewise.
56702         doc: mention timestamp portability issues
56703         * doc/glibc-functions/lutimes.texi (lutimes): Refer to utimensat
56704         instead.
56705         * doc/posix-functions/utime.texi (utime): Likewise.
56706         * doc/posix-functions/utimes.texi (utimes): Likewise.
56707         * doc/glibc-functions/futimes.texi (futimes): Refer to futimens
56708         instead.
56709         * doc/posix-functions/futimens.texi (futimens): Mention utimens
56710         module.
56711         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
56712         Mention weakness with symlink timestamps.
56713         * doc/glibc-functions/futimesat.texi (futimesat): New file; refer
56714         to utimensat/futimens instead.
56715         * doc/gnulib.texi (Glibc sys/time.h): Include new file.
56717         test-dup2: enhance test
56718         * tests/test-dup2.c (main): Also check AT_FDCWD.
56720         test-stat-time: avoid more spurious failures
56721         * tests/test-stat-time.c (nap): Wait for 15ms rather than 2ms, for
56722         xfs; and avoid race if the two timestamps cross quantization edge.
56724         relocatable: prefer 'file system' over 'filesystem'
56725         * m4/relocatable-lib.m4 (gl_RELOCATABLE_NOP): Use AS_HELP_STRING.
56726         (gl_RELOCATABLE_LIBRARY_BODY): Fix spelling.
56727         * doc/relocatable-maint.texi (Supporting Relocation): Likewise.
56728         * doc/relocatable.texi (Enabling Relocatability): Likewise.
56729         * lib/relocatable.c (compute_curr_prefix): Likewise.
56731 2009-10-10  Jim Meyering  <meyering@redhat.com>
56733         stat-time-tests: check for the usleep function
56734         * modules/stat-time-tests (configure.ac): Now that we test HAVE_USLEEP.
56736 2009-10-10  Bruno Haible  <bruno@clisp.org>
56738         * modules/xnanosleep: Put the Link section after the Include section.
56740 2009-10-09  Eric Blake  <ebb9@byu.net>
56742         dup2: work around FreeBSD 6.1 bug
56743         * m4/dup2.m4 (gl_FUNC_DUP2): Detect bug.
56744         * doc/posix-functions/dup2.texi (dup2): Document it.
56745         Reported by Nelson H. F. Beebe and Jim Meyering.
56747         test-stat-time: port to buggy NFS clients
56748         * tests/test-stat-time.c (main) [W32]: Reduce ifdefs.
56749         (test_ctime): Also skip test if mtime and ctime are skewed.
56751         maint: prefer 'file system' over 'filesystem'
56752         * doc/posix-functions/fstatat.texi (fstatat): Likewise.
56753         * doc/posix-functions/lstat.texi (lstat): Likewise.
56754         * lib/file-has-acl.c (file_has_acl): Likewise.
56755         * lib/fwriteerror.c [TEST]: Likewise.
56756         * tests/test-areadlink.h (test_areadlink): Likewise.
56757         * tests/test-areadlinkat-with-size.c (main): Likewise.
56758         * tests/test-areadlinkat.c (main): Likewise.
56759         * tests/test-canonicalize-lgpl.c (main): Likewise.
56760         * tests/test-canonicalize.c (main): Likewise.
56761         * tests/test-fstatat.c (main): Likewise.
56762         * tests/test-linkat.c (main): Likewise.
56763         * tests/test-lstat.h (test_lstat_func): Likewise.
56764         * tests/test-mkdir.h (test_mkdir): Likewise.
56765         * tests/test-readlink.h (test_readlink): Likewise.
56766         * tests/test-remove.c (main): Likewise.
56767         * tests/test-rename.h (test_rename): Likewise.
56768         * tests/test-renameat.c (main): Likewise.
56769         * tests/test-rmdir.h (test_rmdir_func): Likewise.
56770         * tests/test-symlink.h (test_symlink): Likewise.
56771         * tests/test-symlinkat.c (main): Likewise.
56772         * tests/test-unlink.h (test_unlink_func): Likewise.
56773         * tests/test-unlinkat.c (main): Likewise.
56775         maint: make realtime library usage explicit
56776         * modules/gethrxtime (Link): Mention LIB_GETHRXTIME.
56777         * modules/gettime (Link): Mention LIB_CLOCK_GETTIME.
56778         * modules/settime (Link): Likewise.
56779         * modules/xnanosleep (Link): Mention LIB_NANOSLEEP.
56781         test-stat-time: speed up execution
56782         * tests/test-stat-time.c (test_ctime) [!W32]: Avoid compiler
56783         warning on mingw.
56784         (nap): New helper function.
56785         (prepare_test): Use it to reduce sleep time.
56786         (test_mtime, test_ctime, test_birthtime): Allow for subsecond
56787         execution.
56788         * modules/stat-time-tests (configure.ac): Check for usleep.
56790 2009-10-09  Jim Meyering  <meyering@redhat.com>
56792         selinux-h: always use getfilecon wrappers
56793         * lib/getfilecon.c: New file.
56794         * lib/se-selinux.in.h: Use a better inclusion guard symbol name.
56795         [HAVE_SELINUX_SELINUX_H]: Include-next <selinux/selinux.h>.
56796         [!HAVE_SELINUX_SELINUX_H]: Use better parameter names.
56797         (fgetfilecon): Provide a stub.
56798         * m4/selinux-selinux-h.m4 (gl_HEADERS_SELINUX_SELINUX_H): Don't
56799         AC_SUBST SELINUX_SELINUX_H, since now we're generating that
56800         file unconditionally.
56801         When <selinux/selinux.h> is found, arrange to use wrappers.
56802         * modules/selinux-h (Files): Add getfilecon.c.
56803         (Makefile.am): Substitute include-next-related bits
56804         into the now-always-generated selinux/selinux.h file.
56805         * doc/glibc-functions/lgetfilecon.texi: New file.
56806         * doc/glibc-functions/fgetfilecon.texi: New file.
56807         * doc/glibc-functions/getfilecon.texi: New file.
56808         * doc/glibc-functions/getfilecon-desc.texi: New file.
56809         * doc/gnulib.texi (Glibc selinux/selinux.h): New section, by
56810         which to pull in the new files.
56811         * MODULES.html.sh (Misc): Add selinux-h.
56813 2009-10-08  Jim Meyering  <meyering@redhat.com>
56815         unistd: fix comment typo
56816         * lib/unistd.in.h (euidaccess): Fix a comment typo.
56818 2009-10-08  Eric Blake  <ebb9@byu.net>
56820         areadlink: use SIZE_MAX consistently
56821         * modules/areadlink (Depends-on): Add stdint.
56822         * modules/areadlink-with-size (Depends-on): Likewise.
56823         * lib/areadlink-with-size.c (includes): Drop stdio, since stdlib
56824         gives NULL; drop sys/types, since unistd gives size_t; and add
56825         stdint for SIZE_MAX.
56826         (SIZE_MAX): Rely on headers.
56827         * lib/areadlinkat-with-size.c (includes): Drop stdio, sys/types,
56828         and add stdint.
56829         * lib/areadlink.c (includes): Drop sys/types, and add stdint.
56830         (SIZE_MAX): Likewise.
56831         (INITIAL_BUF_SIZE): Turn into enum.
56832         * lib/areadlinkat.c (INITIAL_BUF_SIZE): Likewise.
56834 2009-10-08  Jim Meyering  <meyering@redhat.com>
56836         areadlinkat: avoid compilation failure
56837         * lib/areadlinkat.c: Include <stdint.h> for use of SIZE_MAX.
56838         Fix typo in comment.
56840 2009-10-07  Eric Blake  <ebb9@byu.net>
56842         areadlinkat-with-size: new module
56843         * modules/areadlinkat-with-size: New module.
56844         * lib/areadlinkat-with-size.c (areadlinkat_with_size): New file.
56845         * lib/areadlink.h (areadlinkat): Declare it.
56846         * MODULES.html.sh (File system functions): Mention it.
56847         * modules/areadlinkat-with-size-tests: New test.
56848         * tests/test-areadlinkat-with-size.c: New file.
56850         xreadlinkat: new module
56851         * modules/xreadlinkat: New module.
56852         * lib/xreadlinkat.c (xreadlinkat): New file.
56853         * lib/xreadlink.h (xreadlinkat): Declare it.
56854         * MODULES.html.sh (File system functions): Mention it.
56856         areadlinkat: new module
56857         * lib/at-func.c (FUNC_FAIL): New define.
56858         (AT_FUNC_NAME, VALIDATE_FLAG): Use it rather than raw -1.
56859         * modules/areadlinkat: New module.
56860         * lib/linkat.c (areadlinkat): Move...
56861         * lib/areadlinkat.c (areadlinkat): ...to new file.
56862         * lib/areadlink.h (areadlinkat): Declare it.
56863         * modules/linkat (Depends-on): Add areadlinkat.
56864         * MODULES.html.sh (File system functions): Mention it.
56865         * modules/areadlinkat-tests: New test.
56866         * tests/test-areadlinkat.c: New file.
56868         areadlink, areadlink-with-size: add tests
56869         * modules/areadlink-tests: New test.
56870         * modules/areadlink-with-size-tests: Likewise.
56871         * tests/test-areadlink.h: New file.
56872         * tests/test-areadlink.c: Likewise.
56873         * tests/test-areadlink-with-size.c: Likewise.
56875         maint: minor cleanups
56876         * lib/fts.c (ATTRIBUTE_UNUSED): Delete; use gnulib-guaranteed
56877         _UNUSED_PARAMETER_ instead.
56878         * lib/getdate.y (ATTRIBUTE_UNUSED): Likewise.
56879         * lib/utimens.c (ATTRIBUTE_UNUSED): Likewise.
56880         * modules/linkat-tests (Files): Distribute test-link.h.
56882         openat, utimens: whitespace cleanup
56883         * lib/openat.c: Prefer space throughout, rather than mix of 8
56884         spaces vs. tabs.
56885         * lib/at-func.c: Likewise.
56886         * lib/utimens.c: Likewise.
56888         openat: avoid using wrong fd
56889         * lib/openat.c (openat_permissive): Reject user's fd if saving the
56890         working directory chooses same fd.
56891         * lib/at-func.c (AT_FUNC_NAME): Likewise.
56893         mkdir, mkdirat: fix cygwin 1.5.x bug
56894         * lib/mkdir.c (rpl_mkdir) [FUNC_MKDIR_DOT_BUG]: Work around bug.
56895         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Move...
56896         * m4/mkdir.m4 (gl_FUNC_MKDIR): ...here, and add check for cygwin
56897         bug.
56898         (gl_PREREQ_MKDIR): Delete unused macro.
56899         * modules/mkdir (Files): Track file rename.
56900         (configure.ac): Update macro name.
56901         * modules/openat (Depends-on): Add mkdir.
56902         * doc/posix-functions/mkdir.texi (mkdir): Document the bug.
56904         mkdir, mkdirat: add tests
56905         * modules/mkdir-tests: New test.
56906         * tests/test-mkdir.h: New file.
56907         * tests/test-mkdir.c: Likewise.
56908         * tests/test-mkdirat.c: Likewise.
56909         * modules/openat-tests (Files): Add new files.
56910         (Makefile.am): Run new test.
56912 2009-10-06  Eric Blake  <ebb9@byu.net>
56914         doc: tweak *at function documentation
56915         * doc/posix-functions/faccessat.texi (faccessat): Mention
56916         known issue with replacement.
56917         * doc/posix-functions/fchdir.texi (fchdir): Likewise.
56918         * doc/posix-functions/linkat.texi (linkat): Likewise.
56919         * doc/posix-functions/mkfifoat.texi (mkfifoat): Likewise.
56920         * doc/posix-functions/mknodat.texi (mknodat): Likewise.
56921         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
56922         * doc/posix-functions/renameat.texi (renameat): Likewise.
56923         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
56925         openat: fix GNU/Hurd bug in unlinkat
56926         * m4/openat.m4 (gl_FUNC_OPENAT): Replace unlinkat if unlink is
56927         broken.
56928         * doc/posix-functions/unlink.texi (unlink): Document this.
56929         * doc/posix-functions/unlinkat.texi (unlinkat): Likewise.
56931         fdopendir: fix GNU/Hurd bug
56932         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Check for Hurd bug in
56933         allowing non-directory fds.
56934         * lib/fdopendir.c (rpl_fdopendir): Work around it.
56935         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): New witness.
56936         * modules/dirent (Makefile.am): Substitute it.
56937         * lib/dirent.in.h (fdopendir): Declare replacement.
56938         * doc/posix-functions/fdopendir.texi (fdopendir): Document this.
56939         * tests/test-fdopendir.c (main): Test something other than
56940         /dev/null, since on Hurd that behaves like a directory.
56942         test-symlink: port to GNU/Hurd
56943         * tests/test-symlink.h (test_symlink): Relax expected errno.
56945         doc: tweak more cygwin information
56946         * doc/glibc-headers/getopt.texi (getopt.h): Cygwin 1.7 getopt is
56947         now compatible with glibc.
56948         * doc/posix-functions/getopt.texi (getopt): Likewise.
56950         getopt-gnu: add another test
56951         * tests/test-getopt_long.h (test_getopt_long_posix): New test, to
56952         guarantee behavior relied on by m4.
56953         * tests/test-getopt.c (main): Use it.
56954         * modules/getopt-posix-tests (Depends-on): Add setenv.
56955         See http://lists.gnu.org/archive/html/bug-m4/2006-09/msg00028.html.
56957         getopt: fix compilation on darwin
56958         * lib/getopt.in.h (includes): Leave breadcrumbs during system
56959         include.
56960         * lib/unistd.in.h (getopt): Use them to avoid recursive include.
56961         Reported by Ludovic Courtès.
56963 2009-10-06  Bruno Haible  <bruno@clisp.org>
56965         * modules/size_max (Description): Discourage its use.
56966         Reported by Simon Josefsson.
56968 2009-10-06  Jim Meyering  <meyering@redhat.com>
56970         linkat: avoid compilation failure
56971         * lib/linkat.c: Include <stdint.h> for use of SIZE_MAX.
56973 2009-10-05  Eric Blake  <ebb9@byu.net>
56975         linkat: support Linux 2.6.17
56976         * m4/linkat.m4 (gl_FUNC_LINKAT): Default to always replacing
56977         linkat on Linux, but allow cache variable override.
56978         * lib/linkat.c (rpl_linkat): Define override.
56979         * modules/linkat (Depends-on): Add symlinkat.
56980         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add new default.
56981         * modules/unistd (Makefile.am): Substitute it.
56982         * lib/unistd.in.h (linkat): Declare replacement.
56983         Reported by Pádraig Brady.
56985         quotearg: port test to systems with C.UTF-8 locale
56986         * tests/test-quotearg.c (struct result_strings): Add another
56987         member, differentiating between C.ASCII and C.UTF-8 handling.
56988         (compare_strings): Add parameter.
56989         (main): Adjust all callers.
56991         getopt: avoid clash with FreeBSD _getopt_internal
56992         * lib/getopt.in.h (_getopt_internal): Override the name.
56993         * lib/getopt_int.h (includes): Pick up any overrides.
56994         Reported by Reuben Thomas.
56996         hash: allow C89 compilation
56997         * lib/hash.c (check_tuning): Move declaration before statement.
56998         Reported by Reuben Thomas.
57000 2009-10-05  Karl Berry  <karl@gnu.org>
57002         * doc/gnulib.texi: @include execvpe.texi, missing for several days.
57004 2009-10-04  Paolo Bonzini  <bonzini@gnu.org>
57005             Bruno Haible  <bruno@clisp.org>
57007         * lib/uname.c (uname): Use a table-driven algorithm to compute
57008         Windows NT versions.
57010 2009-10-04  Bruno Haible  <bruno@clisp.org>
57012         * lib/progname.c (set_program_name): Also remove the "lt-" prefix from
57013         program_invocation_short_name.
57014         * modules/progname (configure.ac): Test for presence of
57015         program_invocation_short_name.
57016         Reported by Sergey Poznyakoff <gray@gnu.org.ua>.
57018 2009-10-04  Bruno Haible  <bruno@clisp.org>
57020         * lib/progname.c (set_program_name): Fix comment.
57021         Reported by Jim Meyering.
57023 2009-10-03  Paolo Bonzini  <bonzini@gnu.org>
57024             Bruno Haible  <bruno@clisp.org>
57026         * lib/uname.c: Include <string.h>.
57027         (uname): Do only one call to GetVersionEx in the common case.
57029 2009-10-03  Paolo Bonzini  <bonzini@gnu.org>
57030             Bruno Haible  <bruno@clisp.org>
57032         * lib/uname.c (VER_PLATFORM_WIN32_CE, PROCESSOR_ARCHITECTURE_AMD64,
57033         PROCESSOR_ARCHITECTURE_IA32_ON_WIN64): Define fallbacks.
57034         (uname): Add support for Windows CE and various non-x86 CPU types.
57036 2009-10-03  Bruno Haible  <bruno@clisp.org>
57038         * gnulib-tool (func_create_testdir): Conditionally emit AM_PROG_CC_C_O
57039         invocation to tests/configure.ac.
57040         Reported by Ian Beckwith <ianb@erislabs.net>.
57042 2009-10-02  Eric Blake  <ebb9@byu.net>
57044         fchdir: avoid compiler warning
57045         * lib/fchdir.c (canonicalize_file_name)
57046         [!HAVE_CANONICALIZE_FILE_NAME]: Avoid compiler warning on mingw.
57048         test-open: support mingw errno values
57049         * tests/test-open.h (test_open): Relax test.
57050         * tests/test-fopen.h (test_fopen): Likewise.
57051         * tests/test-openat-safer.c (main): Likewise.
57053         open: fix opening directory on mingw
57054         * lib/open.c (open) [REPLACE_OPEN_DIRECTORY]: Correct typo.
57056         test-open: on GNU/Hurd, /dev/null is a directory
57057         * tests/test-fopen.h (main): Rename...
57058         (test_fopen): ...to this.  Use a guaranteed non-directory when
57059         confirming open behavior on trailing slash.
57060         * tests/test-openat-safer.c (main): Likewise.
57061         * tests/test-open.h (main): Likewise....
57062         (test_open): ...to this.
57063         * tests/test-fopen.c (main): Adjust caller.
57064         * tests/test-fopen-safer.c (main): Likewise.
57065         * tests/test-open.c (main): Likewise.
57066         * tests/test-fcntl-safer.c (main): Likewise.
57067         Reported by Samuel Thibault.
57069         rename, fchdir: don't ignore chdir failure
57070         * lib/fchdir.c (get_name): Abort on unexpected chdir failure.
57071         * lib/rename.c (rpl_rename) [W32]: Likewise.
57072         (rpl_rename) [RENAME_DEST_EXISTS_BUG]: Avoid one case of losing
57073         an empty destination directory if source cannot be renamed,
57074         although there is still possibility for failure.
57075         * doc/posix-functions/rename.texi (rename): Document the race.
57076         Reported by Jim Meyering.
57078         maint: cleanup whitespace in recent commits
57079         * lib/rename.c (rpl_rename): Remove tabs.
57080         * tests/test-link.h (test_link): Likewise.
57081         * lib/fchdir.c (get_name): Likewise.
57082         Reported by Jim Meyering.
57084 2009-10-02  Ben Pfaff  <blp@gnu.org>
57086         relocatable-prog-wrapper: Add missing dependency on
57087         double-slash-root.
57088         * modules/relocatable-prog-wrapper: Add dependency.
57089         Reported by Ian Beckwith <ianb@erislabs.net>.
57091 2009-10-02  Eric Blake  <ebb9@byu.net>
57093         renameat: fix Solaris bugs
57094         * m4/renameat.m4 (gl_FUNC_RENAMEAT): Replace renameat if rename
57095         needed fixing.
57096         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): New witness.
57097         * modules/stdio (Makefile.am): Substitute it.
57098         * lib/stdio.in.h (renameat): Declare replacement.
57099         * lib/renameat.c (rpl_renameat): Implement fix.
57101         renameat: new module
57102         * modules/renameat: New file.
57103         * lib/renameat.c (renameat): Likewise.
57104         * m4/renameat.m4 (gl_FUNC_RENAMEAT): Likewise.
57105         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add witnesses.
57106         * modules/stdio (Makefile.am): Substitute them.
57107         * lib/stdio.in.h (renameat): Declare it.
57108         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
57109         * doc/posix-functions/renameat.texi (renameat): Likewise.
57110         * modules/renameat-tests: New test.
57111         * tests/test-renameat.c: Likewise.
57113         rename: fix mingw bugs
57114         * lib/rename.c (rpl_rename) [W32]: Fix trailing slash and
57115         directory overwrite bugs.
57117         rename: fix another cygwin 1.5 bug
57118         * m4/rename.m4 (gl_FUNC_RENAME): Split cygwin bugs into two
57119         checks.
57120         * lib/rename.c (rpl_rename): Don't penalize NetBSD with
57121         unnecessary cygwin workarounds.  Also work around bug with moving
57122         full directory onto an empty one.
57123         * modules/rename (Depends-on): Add canonicalize-lgpl, rmdir.
57125         rename-dest-slash: merge into rename module
57126         * modules/rename-dest-slash (Status): Mark obsolete.
57127         (Depends-on): Add rename.
57128         (Files): Let rename do it all.
57129         * m4/rename.m4 (gl_FUNC_RENAME): Also test for NetBSD bugs,
57130         subsuming the test from gl_FUNC_RENAME_TRAILING_DEST_SLASH...
57131         * m4/rename-dest-slash.m4: ...so this file can be deleted.
57132         * lib/rename-dest-slash.c (rpl_rename_dest_slash): Delete.
57133         * lib/rename.c (rpl_rename): Update comments.
57135         rename: fix cygwin 1.5.x bugs
57136         * m4/rename.m4 (gl_FUNC_RENAME): Detect cygwin bugs.
57137         * lib/rename.c (rpl_rename): Work around them.
57138         * modules/rename (Depends-on): Add same-inode.
57140         rename: fix Solaris 10 bug
57141         * m4/rename.m4 (gl_FUNC_RENAME): Detect Solaris bug.
57142         * lib/rename.c (rpl_rename): Don't cripple POSIX behavior if this
57143         was the only bug.
57145         rename: fix Solaris 9 bug
57146         * lib/rename.c (rpl_rename): Rewrite to recognize trailing slash
57147         on non-directory.  Avoid calling exit.
57148         * modules/rename (Depends-on): Drop xalloc; add lstat, stdbool,
57149         strdup.
57150         * modules/rename-tests (Depends-on): Drop lstat.
57151         * m4/rename.m4 (gl_FUNC_RENAME): Detect Solaris bug.
57152         (gl_PREREQ_RENAME): Delete unused macro.
57154         rename-dest-slash: fix NetBSD bug
57155         * lib/rename-dest-slash.c (rpl_rename_dest_slash): Detect hard
57156         links.
57157         * modules/rename-dest-slash (Depends-on): Add same-inode.
57159         rename-tests: new test, exposes several platform bugs
57160         * modules/rename-tests: New file.
57161         * tests/test-rename.h: Likewise.
57162         * tests/test-rename.c: Likewise.
57163         * doc/posix-functions/rename.texi (rename): Improve documentation,
57164         including bugs that will eventually be fixed in gnulib.
57166 2009-10-02  Paolo Bonzini  <bonzini@gnu.org>
57168         * lib/uname.c: Include <stdlib.h>
57169         (uname): Assume version info is available.
57171 2009-10-02  Jim Meyering  <meyering@redhat.com>
57173         gnu-web-doc-update: correct --help output
57174         * build-aux/gnu-web-doc-update: Make --help output relevant.
57176         gnu-web-doc-update: add standard options
57177         * build-aux/gnu-web-doc-update: Add --help, --version, etc.
57179         gnu-web-doc-update: New module.
57180         Use this script to automatically update the on-line web documentation
57181         for your GNU project at http://www.gnu.org/software/$pkg/manual/
57182         * modules/gnu-web-doc-update: New file, from coreutils.
57183         * build-aux/gnu-web-doc-update: New script.
57185 2009-10-01  Paolo Bonzini  <bonzini@gnu.org>
57187         link: LoadLibrary is not needed.
57188         * lib/link.c: Use GetModuleHandle.
57190 2009-10-01  Eric Blake  <ebb9@byu.net>
57192         getopt: bump serial number
57193         * m4/getopt.m4: Increment serial number, to account for 2009-09-24
57194         change.
57196         tests: tighten link, rmdir, and remove tests
57197         * tests/test-link.h (includes): No need to use <config.h> here.
57198         Clean up if directory hard link was created, otherwise test for
57199         trailing '.'.
57200         * tests/test-linkat.c (main): Simplify.
57201         * tests/test-remove.c (main): Enhance test for trailing '.'.
57202         * tests/test-rmdir.h (test_rmdir_func): Likewise.
57204 2009-10-01  Jim Meyering  <meyering@redhat.com>
57206         maint.mk: requiring "make major" was annoying, for a "minor" release.
57207         What is intended is "stable", to contrast with alpha and beta,
57208         so require "make stable", not "make major".
57209         * build-aux/announce-gen (%valid_release_types): s/major/stable/.
57210         (get_tool_versions): Likewise.
57211         * top/maint.mk (ALL_RECURSIVE_TARGETS): s/major/stable/
57213 2009-09-30  Ben Pfaff  <blp@gnu.org>
57215         Fix broken build of replacement for Windows tmpfile().
57216         * lib/tmpfile.c (tmpfile): Fix call to gen_tempname() to provide
57217         flags argument added along with the 'mkostemp' module.
57219 2009-09-28  Bruno Haible  <bruno@clisp.org>
57221         Avoid identifier clash with POSIX function 'remove' defined as a macro.
57222         * lib/gl_list.h (struct gl_list_implementation): Rename field 'remove'
57223         to 'remove_elt'.
57224         (gl_list_remove): Update.
57225         * lib/gl_list.c (gl_list_remove): Update.
57226         * lib/gl_oset.h (struct gl_oset_implementation): Rename field 'remove'
57227         to 'remove_elt'.
57228         (gl_oset_remove): Update.
57229         * lib/gl_list.c (gl_oset_remove): Update.
57230         Reported by Eric Blake.
57232 2009-09-28  Eric Blake  <ebb9@byu.net>
57234         doc: mention yet more cygwin 1.7 status
57235         * doc/posix-functions/fexecve.texi (fexecve): Now implemented in
57236         cygwin.
57237         * doc/glibc-functions/execvpe.texi (execvpe): New file.
57238         * doc/gnulib.texi (Glibc unistd.h): Mention it.
57240         argp: fix test failure
57241         * lib/argp-help.c (hol_entry_cmp): Don't use _tolower on values
57242         that are not upper-case.  Pass correct range to tolower.
57244 2009-09-27  Jim Meyering  <meyering@redhat.com>
57246         test-yesno: work around sparc-dash here-document infelicity
57247         Without this change, the literal \177 byte in a here document
57248         would make dash 0.5.5.1-3 access uninitialized memory.
57249         * tests/test-yesno.sh: Don't put the \177 byte in the here document.
57250         Instead, use a marker, "@", and filter through tr to create the desired
57251         contents.  Reported as <http://bugs.debian.org/548493> by Kurt Roeckx.
57253 2009-09-27  Bruno Haible  <bruno@clisp.org>
57255         Disable untested support for new flavours of ACLs on AIX.
57256         * lib/file-has-acl.c (file_has_acl): Mark newer AIX code as work in
57257         progress.
57258         * lib/set-mode-acl.c (qset_acl): Likewise.
57260 2008-12-07  Bruno Haible  <bruno@clisp.org>
57262         Add support for new flavours of ACLs on AIX. (Untested.)
57263         * lib/file-has-acl.c [AIX] (acl_nfs4_nontrivial): New function.
57264         (file_has_acl): Add support for newer AIX.
57265         * lib/set-mode-acl.c (qset_acl): Likewise.
57266         * tests/test-sameacls.c (main): Fix use of aclx_get function. Hint by
57267         Rainer Tammer <tammer@tammer.net>.
57269 2009-09-26  Eric Blake  <ebb9@byu.net>
57271         argp: fix compilation of getopt
57272         * lib/getopt.in.h (includes): Use different guard than glibc.
57273         Reported by Sergey Poznyakoff.
57275         doc: mention more cygwin 1.7 status
57276         * doc/posix-functions/access.texi (access): Mention cygwin 1.5
57277         bug.
57278         * doc/posix-functions/execl.texi (execl): Likewise.
57279         * doc/posix-functions/execle.texi (execle): Likewise.
57280         * doc/posix-functions/execlp.texi (execlp): Likewise.
57281         * doc/posix-functions/execv.texi (execv): Likewise.
57282         * doc/posix-functions/execve.texi (execve): Likewise.
57283         * doc/posix-functions/execvp.texi (execvp): Likewise.
57284         * doc/glibc-functions/canonicalize_file_name.texi
57285         (canonicalize_file_name): Cygwin 1.7 now provides this.
57286         * doc/glibc-functions/euidaccess.texi (euidaccess): Likewise.
57287         * doc/posix-functions/fchmodat.texi (fchmodat): Mention limitation
57288         on AT_SYMLINK_NOFOLLOW.
57290 2009-09-24  Eric Blake  <ebb9@byu.net>
57292         test-linkat: make test more robust
57293         * tests/test-linkat.c (main): Avoid collision with EEXIST.
57295         getopt: fix inclusion guards for cygwin
57296         * modules/getopt-posix (Depends-on): Add include-next.
57297         (Makefile.am): Substitute more items in replacement header.
57298         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Also check for native
57299         <getopt.h>.
57300         * lib/getopt.in.h (includes): Use split inclusion guard, and
57301         prefer <getopt.h> over include <unistd.h> when one is present.
57302         (option): Also override name of 'struct option'.
57304         same-inode: revert prior change; it is not yet ready
57305         * NEWS: Undo mention of this change.
57306         * lib/same-inode.h (same-inode.h): Undo tri-state change.
57307         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Update caller.
57308         * lib/cycle-check.c (cycle_check): Likewise.
57309         * lib/same.c (same_name): Likewise.
57310         * lib/at-func2.c (at_func2): Likewise.
57312 2009-09-23  Eric Blake  <ebb9@byu.net>
57314         linkat: new module
57315         * modules/linkat: New file.
57316         * lib/at-func2.c (at_func2): Likewise.
57317         * lib/linkat.c (linkat): Likewise.
57318         * m4/linkat.m4 (gl_FUNC_LINKAT): Likewise.
57319         * lib/openat-priv.h (at_func2): Add declaration.
57320         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
57321         * modules/unistd (Makefile.am): Substitute them.
57322         * lib/unistd.in.h (linkat): Declare it.
57323         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
57324         * doc/posix-functions/linkat.texi (linkat): Likewise.
57325         * doc/posix-functions/link.texi (link): Tweak wording.
57326         * tests/test-link.c (main): Move guts...
57327         * tests/test-link.h (test_link): ...into new file.
57328         * modules/linkat-tests: New test.
57329         * tests/test-linkat.c: Likewise.
57330         * modules/link-tests (Files): Ship new file.
57331         (Depends-on): Add stdbool.
57333         dirname: add library-safe mdir_name
57334         * lib/dirname.h (mdir_name): New prototype.
57335         * lib/dirname.c (dir_name): Move guts...
57336         (mdir_name): ...to new function that avoids xalloc_die.
57338         fchdir: another mingw fix
57339         * modules/fchdir (Depends-on): Drop canonicalize-lgpl.
57340         * lib/fchdir.c (get_name): New helper method; skips canonicalize
57341         on mingw (where it has not yet been ported), and make it optional
57342         elsewhere.
57343         (_gl_register_fd): Use it.
57345         same-inode: make SAME_INODE tri-state, to port to mingw
57346         * NEWS: Mention this change.
57347         * lib/same-inode.h (same-inode.h): Recognize mingw limitation of
57348         st_ino always being 0.
57349         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Update caller.
57350         * lib/cycle-check.c (cycle_check): Likewise.
57351         * lib/same.c (same_name): Likewise.
57353         lstat: avoid mingw compilation error
57354         * m4/lstat.m4 (gl_FUNC_LSTAT): Avoid duplicate calls to
57355         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK, and deal with missing
57356         lstat ourselves.
57357         * lib/lstat.c [!HAVE_LSTAT]: Do nothing if <sys/stat.h> override
57358         was adequate.
57359         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Let lstat module handle
57360         the checks for lstat.
57361         (gl_SYS_STAT_H_DEFAULTS): Set default for HAVE_LSTAT.
57363         link: fix test failure on Solaris 9
57364         * lib/link.c (rpl_link): Don't assume link will catch bogus
57365         trailing slash on source.
57367         test-symlinkat: enhance test
57368         * tests/test-readlink.c (main): Move guts...
57369         * tests/test-readlink.h (test_readlink): ...into new file.
57370         * tests/test-symlink.c (main): Move guts...
57371         * tests/test-symlink.h (test_symlink): ...into new file.
57372         * tests/test-symlinkat.c (main): Use new files for further
57373         coverage.
57374         (do_symlink, do_readlink): New helper functions.
57375         * modules/symlink-tests (Files): Ship new file.
57376         (Depends-on): Add stdbool.
57377         * modules/readlink-tests (Files): Ship new file.
57378         (Depends-on): Add stdbool.
57379         * modules/symlinkat-tests (Files): Use new files.
57381 2009-09-23  Eric Blake  <ebb9@byu.net>
57383         readlink: document portability issue with symlink length
57384         * doc/posix-functions/lstat.texi (lstat): Mention that some file
57385         systems have bogus st_size on symlinks, and mention the
57386         areadlink-with-size module.
57387         * doc/posix-functions/fstatat.texi (fstatat): Likewise.
57388         * doc/posix-functions/readlink.texi (readlink): Mention the
57389         areadlink module, and ERANGE failure.
57390         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
57391         * tests/test-readlink.c (main): Relax test for AIX, HP-UX.
57393         readlink: fix Solaris 9 bug with trailing slash
57394         * lib/readlink.c (rpl_readlink): Work around trailing slash bug.
57395         * m4/readlink.m4 (gl_FUNC_READLINK): Detect the bug.
57396         * doc/posix-functions/readlink.texi (readlink): Document this.
57397         * modules/readlink-tests: New test.
57398         * tests/test-readlink.c: Likewise.
57400         readlink: fix cygwin 1.5.x bug with return type
57401         * m4/readlink.m4 (gl_FUNC_READLINK): Require correct signature.
57402         * lib/unistd.in.h (readlink): Use ssize_t.
57403         * lib/readlink.c (readlink): Likewise.
57404         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
57405         * modules/unistd (Makefile.am): Substitute it.
57406         * lib/unistd.in.h (readlink): Declare replacement.
57407         * doc/posix-functions/readlink.texi (readlink): Document this.
57409         symlink: use throughout gnulib
57410         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Omit symlink check.
57411         * lib/symlinkat.c (symlinkat) [!HAVE_SYMLINK]: Document why
57412         symlink is not used.
57413         * modules/symlinkat (Depends-on): Add symlink.
57414         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
57415         * modules/canonicalize-tests (Depends-on): Likewise.
57416         * modules/lstat-tests (Depends-on): Likewise.
57417         * modules/openat-tests (Depends-on): Likewise.
57418         * modules/remove-tests (Depends-on): Likewise.
57419         * modules/rmdir-tests (Depends-on): Likewise.
57420         * modules/unlink-tests (Depends-on): Likewise.
57421         * tests/test-canonicalize-lgpl.c (symlink): Delete stub.
57422         * tests/test-canonicalize.c (symlink): Likewise.
57423         * tests/test-fstatat.c (symlink): Likewise.
57424         * tests/test-lstat.c (symlink): Likewise.
57425         * tests/test-remove.c (symlink): Likewise.
57426         * tests/test-rmdir.c (symlink): Likewise.
57427         * tests/test-unlink.c (symlink): Likewise.
57428         * tests/test-unlinkat.c (symlink): Likewise.
57430         symlink: new module, for Solaris 9 bug
57431         * modules/symlink: New file.
57432         * m4/symlink.m4 (gl_FUNC_SYMLINK): Likewise.
57433         * lib/symlink.c: Likewise.
57434         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add defaults.
57435         * modules/unistd (Makefile.am): Substitute them.
57436         * lib/unistd.in.h (symlink): Declare replacement.
57437         * MODULES.html.sh (File system functions): Mention it.
57438         * doc/posix-functions/symlink.texi (symlink): Likewise.
57439         * modules/symlink-tests: New test.
57440         * tests/test-symlink.c: Likewise.
57442 2009-09-23  Bruno Haible  <bruno@clisp.org>
57444         * gnulib-tool (func_import): Add 'link-warning' to testsrelated_modules
57445         when needed.
57446         Test case: gnulib-tool --import --with-tests atexit inttypes.
57447         Reported by Pauli Miettinen <pauli.miettinen@cs.helsinki.fi>.
57449 2009-09-23  Bruno Haible  <bruno@clisp.org>
57451         * gnulib-tool (func_emit_tests_Makefile_am): Set uses_subdirs in a
57452         subcommand, not in a subshell.
57454 2009-09-22  Eric Blake  <ebb9@byu.net>
57456         unistd: sort replacement declarations
57457         * lib/unistd.in.h: Sort declarations.
57459         open, openat: minor optimization
57460         * lib/open.c (open): If open succeeded, len is non-zero.
57461         * lib/openat.c (rpl_openat): Likewise.
57463         link-follow: ensure correct result
57464         * m4/fcntl_h.m4 (gl_FCNTL_H): Clean up temporary file.
57465         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Likewise, and
57466         distinguish between possible failures.
57468 2009-09-21  Eric Blake  <ebb9@byu.net>
57470         fts: avoid compiler warning
57471         * lib/fts.c (dirent_inode_sort_may_be_useful)
57472         (leaf_optimization_applies) [!__linux__]: Mark unused parameters.
57474 2009-09-19  Bruno Haible  <bruno@clisp.org>
57476         * lib/progreloc.c (canonicalize_file_name): New declaration.
57478 2009-09-19  Eric Blake  <ebb9@byu.net>
57480         link: fix quoting
57481         * m4/link.m4 (gl_FUNC_LINK): Fix shell quoting.
57483         openat: fix openat bugs on Solaris 9
57484         * lib/openat.c (rpl_openat): Work around Solaris 9 bug.
57485         * m4/openat.m4 (gl_FUNC_OPENAT): Also replace openat on Solaris.
57486         * modules/openat (Depends-on): Add open.
57487         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Provide new default.
57488         * modules/fcntl-h (Makefile.am): Substitute it.
57489         * lib/fcntl.in.h (openat): Declare replacement.
57490         * doc/posix-functions/openat.texi (openat): Document this.
57492         openat: move fstatat and unlinkat into correct files
57493         * m4/openat.m4 (gl_FUNC_OPENAT): Adjust which files will be
57494         compiled.
57495         * lib/openat.c (fstatat, unlinkat): Move...
57496         * lib/fstatat.c (fstatat): ...into correct files.
57497         * lib/unlinkat.c (unlinkat): Likewise.
57499         openat: fix unlinkat bugs on Solaris 9
57500         * lib/unlinkat.c (unlinkat): New file.
57501         * modules/openat (Depends-on): Add unlink.
57502         (Files): Distribute it.
57503         * m4/openat.m4 (gl_FUNC_OPENAT): Mark unlinkat for replacement if
57504         trailing slash behavior is broken.
57505         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
57506         * modules/unistd (Makefile.am): Substitute it.
57507         * lib/unistd.in.h (unlinkat): Declare replacement.
57508         * doc/posix-functions/unlinkat.texi (unlinkat): Document this.
57510         openat: fix fstatat bugs on Solaris 9
57511         * lib/fstatat.c (rpl_fstatat): Copy recent fixes from lstat and
57512         stat.
57513         * doc/posix-functions/fstatat.texi (fstatat): Document this.
57515         test-unlinkat: enhance test, to expose Solaris 9 bug
57516         * tests/test-unlink.c (main): Factor guts...
57517         * tests/test-unlink.h (test_rmdir_func): ...into new file.
57518         * tests/test-rmdir.h (test_rmdir_func): Add parameter.
57519         * tests/test-rmdir.c (main): Adjust caller.
57520         * tests/test-unlinkat.c (main): Likewise.  Add unlink tests.
57521         (unlinker): New helper function.
57522         (rmdirat): Enhance check.
57523         * modules/rmdir-tests (Depends-on): Add stdbool.
57524         * modules/unlink-tests (Depends-on): Likewise.
57525         (Files): Add test-unlink.h.
57526         * modules/openat-tests (Files): Likewise.
57527         (Depends-on): Add unlinkdir.
57529         test-fstatat: new test, to expose Solaris 9 bugs
57530         * tests/test-stat.c (main): Factor guts...
57531         * tests/test-stat.h (test_stat_func): ...into new file.
57532         * tests/test-lstat.c (main): Factor guts...
57533         * tests/test-lstat.h (test_lstat_func): ...into new file.
57534         * tests/test-fstatat.c: New file.
57535         * modules/stat-tests (Files): Add test-stat.h.
57536         * modules/lstat-tests (Files): Add test-lstat.h.
57537         (Depends-on): Add stdbool.
57538         * modules/openat-tests (Depends-on): Add pathmax.
57539         (Files): Add test-lstat.h, test-stat.h, test-fstatat.c.
57540         (Makefile.am): Run new test.
57542         remove: new module, for mingw and Solaris 9 bugs
57543         * modules/remove: New file.
57544         * lib/remove.c: Likewise.
57545         * m4/remove.m4 (gl_FUNC_REMOVE): Likewise.
57546         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add witnesses.
57547         * modules/stdio (Makefile.am): Use them.
57548         * lib/stdio.in.h (remove): Declare replacement.
57549         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
57550         * doc/posix-functions/remove.texi (remove): Likewise.
57551         * modules/remove-tests: New test.
57552         * tests/test-remove.c: Likewise.
57554         unlink: new module, for Solaris 9 bug
57555         * modules/unlink: New file.
57556         * lib/unlink.c: Likewise.
57557         * m4/unlink.m4 (gl_FUNC_UNLINK): Likewise.
57558         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
57559         * modules/unistd (Makefile.am): Use them.
57560         * lib/unistd.in.h (stat): Declare replacement.
57561         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
57562         * doc/posix-functions/unlink.texi (unlink): Likewise.
57563         * modules/unlink-tests: New test.
57564         * tests/test-unlink.c: Likewise.
57566         lstat: fix Solaris 9 bug
57567         * lib/lstat.c (lstat): Also check for trailing slash on
57568         non-symlink, non-directories.  Use stat module to simplify logic.
57569         * doc/posix-functions/lstat.texi (lstat): Document it.
57570         * modules/lstat-tests (Depends-on): Add errno, same-inode.
57571         (configure.ac): Check for symlink.
57572         * tests/test-lstat.c (main): Add more tests.
57574         stat: add as dependency to other modules
57575         * modules/chown (Depends-on): Add stat.
57576         * modules/euidaccess (Depends-on): Likewise.
57577         * modules/fchdir (Depends-on): Likewise.
57578         * modules/isdir (Depends-on): Likewise.
57579         * modules/link (Depends-on): Likewise.
57580         * modules/lstat (Depends-on): Likewise.
57581         * modules/mkdir-p (Depends-on): Likewise.
57582         * modules/modechange (Depends-on): Likewise.
57583         * modules/open (Depends-on): Likewise.
57584         * modules/readlink (Depends-on): Likewise.
57585         * modules/same (Depends-on): Likewise.
57587         stat: fix Solaris 9 bug
57588         * m4/stat.m4 (gl_FUNC_STAT): Detect Solaris 9 bug with trailing
57589         slash.
57590         * lib/stat.c (rpl_stat): Work around it.
57591         * doc/posix-functions/stat.texi (stat): Update documentation.
57593         stat: new module, for mingw bug
57594         * modules/stat: New file.
57595         * lib/stat.c: Likewise.
57596         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
57597         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
57598         * modules/sys_stat (Makefile.am): Use them.
57599         * lib/sys_stat.in.h (stat): Declare replacement.
57600         * lib/openat.c (fstatat): Deal with lstat and stat being function
57601         macros.
57602         * modules/openat (Depends-on): Add inline.
57603         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
57604         * doc/posix-functions/stat.texi (stat): Likewise.
57605         * modules/stat-tests: New test.
57606         * tests/test-stat.c: Likewise.
57608 2009-09-19  Jim Meyering  <meyering@redhat.com>
57610         syntax-check: detect unnecessary inclusion of canonicalize.h
57611         * top/maint.mk (sc_prohibit_canonicalize_without_use): New rule.
57613 2009-09-19  Eric Blake  <ebb9@byu.net>
57615         canonicalize-lgpl: adjust clients to use correct header
57616         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE)
57617         (gl_CANONICALIZE_LGPL): Use correct shell quoting.
57618         * modules/relocatable-prog-wrapper (Files): Drop canonicalize.h.
57619         * lib/fchdir.c (includes): Use <stdlib.h>, not "canonicalize.h".
57620         * lib/progreloc.c (includes): Likewise.
57622 2009-09-19  Jim Meyering  <meyering@redhat.com>
57624         test-posixtm.c: correct a comment
57625         * tests/test-posixtm.c: Correct first-line comment.
57626         Spotted by Eric Blake.
57628 2009-09-16  Jim Meyering  <meyering@redhat.com>
57630         posixtm-tests: make T const-correct; add a test case
57631         * tests/test-posixtm.c (T): Declare const.
57632         Add a test for -(2^31+1).
57633         Remove useless can-succeed-only-in-2002 test.
57635         posixtm-tests: adjust the sole failing test
57636         * tests/test-posixtm.c: Correct 0000-01-01 00:00:00 test so that
57637         expected output matches what mktime now produces.  Cross-checked via
57638         erlang's calendar:datetime_to_gregorian_seconds({{1970,1,1},{0,0,0}})
57640         posixtm: move #ifdef'd tests into a new module
57641         * lib/posixtm.c (posixtime): Remove #ifdef'd tests.  Move to...
57642         * tests/test-posixtm.c: ... this new file.
57643         * modules/posixtm-tests: New module.
57645 2009-09-19  Eric Blake  <ebb9@byu.net>
57647         openat: simplify use of at-func.c
57648         * lib/at-func.c (includes): Include prerequisites here, to
57649         simplify requirements on client files.
57650         * lib/openat-priv.h: Add double-inclusion guard.
57651         * lib/faccessat.c (includes): Simplify.
57652         * lib/fchmodat.c (includes): Likewise.
57653         * lib/fchownat.c (includes): Likewise.
57654         * lib/mkdirat.c (includes): Likewise.
57655         * lib/mkfifoat.c (includes): Likewise.
57656         * lib/symlinkat.c (includes): Likewise.
57658         openat: allow return of fd 0
57659         * modules/chdir-long (Depends-on): Relax openat-safer to openat.
57660         * modules/save-cwd (Depends-on): Replace fcntl-safer with
57661         unistd-safer.
57662         * lib/chdir-long.c (includes): Replace "fcntl--.h" with
57663         <fcntl.h>; this module does not leak fds.
57664         * lib/openat.c (includes): Do not use "fcntl_safer"; plain openat
57665         must be allowed to return 0, leaving openat_safer to add the
57666         safety.
57667         (openat_permissive): Avoid writing to just-opened fd 2 if
57668         restoring the current directory fails.
57669         * lib/openat-die.c (openat_restore_fail): Add comment.
57670         * lib/save-cwd.c (includes): Make "fcntl--.h" conditional.
57671         (save_cwd): Guarantee safe fd, but without use of open_safer.
57672         * tests/test-openat.c: New test.
57673         * modules/openat-tests (Files, Makefile.am): Distribute and build
57674         new file.
57676         relocatable-prog-wrapper: fix build
57677         * modules/relocatable-prog-wrapper (Files): Update name of
57678         canonicalize m4 file, broken on 2009-09-17.
57679         Reported by emad hajjar <aleppos@hotmail.com>.
57681 2009-09-19  Bruno Haible  <bruno@clisp.org>
57683         * lib/safe-alloc.h: Use the standard header with GPL copyright.
57684         * lib/safe-alloc.c: Likewise.
57685         Reported by Ian Beckwith <ianb@erislabs.net>.
57687 2009-09-18  Bruno Haible  <bruno@clisp.org>
57689         * gnulib-tool: Add advice to "cannot find configure.ac" error message.
57690         Reported by <erobles@sensacd.com.mx>.
57692 2009-09-17  Eric Blake  <ebb9@byu.net>
57694         canonicalize: in CAN_ALL_BUT_LAST, allow trailing slash
57695         * lib/canonicalize.c (canonicalize_filename_mode): Skip trailing
57696         slashes when checking if last component is missing.
57697         * tests/test-canonicalize.c (main): Test this.
57699         canonicalize, canonicalize-lgpl: honor // if distinct from /
57700         * modules/canonicalize (Files): Add double-slash-root.m4.
57701         * modules/canonicalize-lgpl (Files): Likewise.
57702         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE)
57703         (gl_CANONICALIZE_LGPL_SEPARATE): Add dependency.
57704         * lib/canonicalize.c (DOUBLE_SLASH_IS_DISTINCT_ROOT): Provide
57705         fallback definition.
57706         (canonicalize_filename_mode): Use it to protect //.
57707         * lib/canonicalize-lgpl.c (DOUBLE_SLASH_IS_DISTINCT_ROOT)
57708         (__realpath): Likewise.
57709         * tests/test-canonicalize.c (main): Test this.
57710         * tests/test-canonicalize-lgpl.c (main): Likewise.
57711         * modules/canonicalize-tests (Depends-on): Add same-inode.
57712         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
57714         canonicalize-lgpl: fix glibc bug with trailing slash
57715         * m4/canonicalize-lgpl.m4: Move contents...
57716         * m4/canonicalize.m4: ...here.
57717         (gl_CANONICALIZE_LGPL): Factor realpath check...
57718         (gl_FUNC_REALPATH_WORKS): ...into new macro.  Enhance to catch
57719         glibc 2.3.5 bug, fixed 2005-04-27.
57720         (gl_FUNC_CANONICALIZE_FILENAME_MODE): Use it.
57721         (gl_PREREQ_CANONICALIZE_LGPL): Inline...
57722         (gl_CANONICALIZE_LGPL_SEPARATE): ...into this macro.
57723         * modules/canonicalize-lgpl (Files): Manage file rename.
57724         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide default.
57725         * modules/stdlib (Makefile.am): Substitute witness.
57726         * lib/stdlib.in.h (canonicalize_file_name): Declare if replacement
57727         is needed.
57728         * lib/canonicalize-lgpl.c: Also compile if canonicalize_file_name
57729         replacement is required.
57730         * lib/canonicalize.c (canonicalize_file_name): Likewise.
57731         * doc/glibc-functions/canonicalize_file_name.texi
57732         (canonicalize_file_name): Document this.
57733         * doc/posix-functions/realpath.texi (realpath): Likewise.
57735         canonicalize-lgpl: reject non-directory with trailing slash
57736         * lib/canonicalize-lgpl.c (__realpath): Synchronize with glibc.
57737         * tests/test-canonicalize-lgpl.c (main): Enhance test.  This
57738         catches failures in glibc 2.3.5.
57739         * tests/test-canonicalize.c (main): Likewise.
57741         canonicalize-lgpl: use native realpath if it works
57742         * lib/canonicalize-lgpl.c (realpath): Guard with
57743         FUNC_REALPATH_WORKS.
57744         * lib/stdlib.in.h (realpath): Make declaration optional based on
57745         HAVE_REALPATH.
57746         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL): Check whether
57747         native realpath works.
57748         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide default.
57749         * modules/stdlib (Makefile.am): Substitute witness.
57751         canonicalize, canonicalize-lgpl: use <stdlib.h>
57752         * modules/canonicalize-lgpl (Files): Drop canonicalize.h.
57753         (Include): Mention <stdlib.h>.
57754         (configure.ac): Mention functions we provide.
57755         * modules/canonicalize (configure.ac): Likewise.
57756         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL): Always replace
57757         realpath if canonicalize_file_name is missing.
57758         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide defaults.
57759         * modules/stdlib (Makefile.am): Substitute witnesses.
57760         * lib/stdlib.in.h (canonicalize_file_name, realpath): Declare.
57761         * lib/canonicalize-lgpl.c (includes): Adjust accordingly.
57762         * lib/canonicalize.h (canonicalize_file_name): Drop declaration.
57763         * NEWS: Document this.
57764         * doc/glibc-functions/canonicalize_file_name.texi
57765         (canonicalize_file_name): Likewise.
57766         * doc/posix-functions/realpath.texi (realpath): Likewise.
57767         * tests/test-canonicalize-lgpl.c (includes): Use <stdlib.h>.
57769         test-canonicalize: consolidate into single C program
57770         * tests/test-canonicalize.sh: Delete; move setup into...
57771         * tests/test-canonicalize.c (main): ...the program, making it
57772         easier to run in debugger.  Add some tests.
57773         * modules/canonicalize-tests (Files): Remove unused file.
57774         (Depends-on): Add progname.
57775         (configure.ac, Makefile.am): Simplify.
57777         test-canonicalize-lgpl: consolidate into single C program
57778         * tests/test-canonicalize-lgpl.sh: Delete; move setup into...
57779         * tests/test-canonicalize-lgpl.c (main): ...the program, making it
57780         easier to run in debugger.  Add some tests.
57781         * modules/canonicalize-lgpl-tests (Files): Remove unused file.
57782         (configure.ac, Makefile.am): Simplify.
57784         canonicalize: avoid resolvepath
57785         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE): Delete
57786         unnecessary checks.
57787         * lib/canonicalize.c (includes): Simplify.
57788         (canonicalize_file_name): Drop resolvepath implementation.
57789         * modules/canonicalize (Depends-on): Drop filenamecat.
57791         canonicalize: don't lose errno
57792         * lib/canonicalize.c (canonicalize_filename_mode): Protect errno
57793         over calls to free.
57795         canonicalize: simplify errno handling
57796         * lib/canonicalize.c (__set_errno): Delete macro, and use direct
57797         assignment.
57799         canonicalize, canonicalize-lgpl: update module dependencies
57800         * modules/canonicalize (Depends-on): Add extensions, lstat,
57801         pathmax, stdlib.
57802         (Files): Drop pathmax.h.
57803         (configure.ac): Adjust macro name.
57804         * modules/canonicalize-lgpl (Depends-on): Add errno, extensions,
57805         lstat, stdlib, sys_stat.
57806         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Rename...
57807         (gl_FUNC_CANONICALIZE_FILENAME_MODE): ...to this, and require
57808         extensions.
57809         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL)
57810         (gl_CANONICALIZE_LGPL_SEPARATE): Require extensions.
57811         (gl_PREREQ_CANONICALIZE_LGPL): Assume unistd.h.
57812         * lib/canonicalize.h (canonicalize_file_name): Use <stdlib.h>
57813         declaration, if available.
57814         * lib/canonicalize-lgpl.c [HAVE_READLINK]: Delete this condition;
57815         we can rely on the readlink module.
57816         (MAXSYMLINKS): Also consult SYMLOOP_MAX.
57817         (includes): Use <unistd.h> unconditionally.
57819 2009-09-17  Eric Blake  <ebb9@byu.net>
57821         maint: make Include sections of modules consistent
57822         * modules/alloca: Use only header name; no need to list #include.
57823         * modules/alloca-opt: Likewise.
57824         * modules/arpa_inet: Likewise.
57825         * modules/canon-host: Likewise.
57826         * modules/configmake: Likewise.
57827         * modules/dirent: Likewise.
57828         * modules/eealloc: Likewise.
57829         * modules/environ: Likewise.
57830         * modules/fchdir: Likewise.
57831         * modules/fcntl: Likewise.
57832         * modules/fcntl-h: Likewise.
57833         * modules/gethrxtime: Likewise.
57834         * modules/gettime: Likewise.
57835         * modules/ignore-value: Likewise.
57836         * modules/inet_ntop: Likewise.
57837         * modules/inet_pton: Likewise.
57838         * modules/inttypes: Likewise.
57839         * modules/isnand-nolibm: Likewise.
57840         * modules/isnanf-nolibm: Likewise.
57841         * modules/mbchar: Likewise.
57842         * modules/mbfile: Likewise.
57843         * modules/mbiter: Likewise.
57844         * modules/mbuiter: Likewise.
57845         * modules/netdb: Likewise.
57846         * modules/netinet_in: Likewise.
57847         * modules/nproc: Likewise.
57848         * modules/pagealign_alloc: Likewise.
57849         * modules/poll: Likewise.
57850         * modules/printf-frexp: Likewise.
57851         * modules/pthread: Likewise.
57852         * modules/putenv: Likewise.
57853         * modules/random_r: Likewise.
57854         * modules/relocatable-prog: Likewise.
57855         * modules/search: Likewise.
57856         * modules/select: Likewise.
57857         * modules/selinux-h: Likewise.
57858         * modules/settime: Likewise.
57859         * modules/signal: Likewise.
57860         * modules/size_max: Likewise.
57861         * modules/socklen: Likewise.
57862         * modules/ssize_t: Likewise.
57863         * modules/stdarg: Likewise.
57864         * modules/stdbool: Likewise.
57865         * modules/stddef: Likewise.
57866         * modules/stdint: Likewise.
57867         * modules/stdio: Likewise.
57868         * modules/stdlib: Likewise.
57869         * modules/string: Likewise.
57870         * modules/strings: Likewise.
57871         * modules/sys_file: Likewise.
57872         * modules/sys_ioctl: Likewise.
57873         * modules/sys_select: Likewise.
57874         * modules/sys_socket: Likewise.
57875         * modules/sys_stat: Likewise.
57876         * modules/sys_time: Likewise.
57877         * modules/sys_times: Likewise.
57878         * modules/sys_utsname: Likewise.
57879         * modules/sys_wait: Likewise.
57880         * modules/sysexits: Likewise.
57881         * modules/time: Likewise.
57882         * modules/times: Likewise.
57883         * modules/tmpfile: Likewise.
57884         * modules/trim: Likewise.
57885         * modules/unistd: Likewise.
57886         * modules/wchar: Likewise.
57887         * modules/wctype: Likewise.
57889 2009-09-17  Bruno Haible  <bruno@clisp.org>
57891         Make getdate.y compile on QNX and NetBSD 5 / i386.
57892         * m4/getdate.m4 (gl_GETDATE): Conditionally define
57893         TIME_T_FITS_IN_LONG_INT.
57894         * lib/getdate.y (long_time_t): New type.
57895         (relative_time): Change type of 'seconds' field to long_time_t.
57896         (get_date): Update types of local variables. Check against overflow
57897         during conversion from long_time_t to time_t.
57898         Reported by Matt Kraai <kraai@ftbfs.org>
57899         and Hasso Tepper <hasso@netbsd.org>.
57901 2009-09-17  Bruno Haible  <bruno@clisp.org>
57903         * modules/COPYING: Update copyright years.
57904         * modules/README: Likeiwse.
57905         * doc/gnulib-intro.texi (Copyright): Use a wildcard year.
57906         Reported by Ian Beckwith <ianb@erislabs.net>.
57908 2009-09-17  Ian Beckwith  <ianb@erislabs.net>  (tiny change)
57910         * users.txt: Update references for gnuit package.
57912 2009-09-17  Ian Beckwith  <ianb@erislabs.net>  (tiny change)
57914         * m4/getdelim.m4: Fix typo in copyright line.
57916 2009-09-17  Bruno Haible  <bruno@clisp.org>
57918         * lib/atoll.c: Use the standard header with GPL copyright.
57919         * lib/argz.in.h: Likewise.
57920         * lib/glob.c: Likewise.
57921         * lib/glob-libc.h: Likewise.
57922         * lib/random_r.c: Likewise.
57923         * lib/siglist.h: Likewise.
57924         * lib/strsignal.c: Likewise.
57925         Reported by Ian Beckwith <ianb@erislabs.net>.
57927 2009-09-17  Eric Blake  <ebb9@byu.net>
57929         rmdir: ensure correct dependency order
57930         * m4/rmdir.m4 (gl_FUNC_RMDIR): Require unistd defaults.
57932 2009-09-17  Bruno Haible  <bruno@clisp.org>
57934         Disable assertion that fails on NetBSD 5 / i386.
57935         * lib/mktime.c (ydhms_diff): Disable assertion about time_t size.
57936         Reported by Sam Steingold <sds@gnu.org>
57937         and Hasso Tepper <hasso@netbsd.org>.
57939 2009-09-16  Eric Blake  <ebb9@byu.net>
57941         unlinkdir: port to mingw
57942         * m4/unlinkdir.m4 (gl_UNLINKDIR): Add mingw to list of platforms
57943         on which no one can unlink a directory.
57945         stdlib: sort witness names
57946         * modules/stdlib (Makefile.am): Sort replacements.
57947         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Likewise.
57948         * lib/stdlib.in.h: Likewise.
57950         parse-duration-tests: avoid link failure
57951         * modules/parse-duration-tests (test_parse_duration_LDADD): Add
57952         LIBINTL.
57953         Reported by Tom G. Christensen.
57955         openat-tests: ensure unlinkat behaves like rmdir
57956         * tests/test-rmdir.c (main): Factor guts...
57957         * tests/test-rmdir.h (test_rmdir_func): ...into new file.
57958         * modules/rmdir-tests (Files): Ship new file.
57959         * modules/openat-tests: New test.
57960         * tests/test-unlinkat.c: Likewise.
57962         rmdir-errno: mark obsolete, it is unsafe for cross-compilation
57963         * modules/rmdir-errno (Status, Notice): Now obsolete.
57965         rmdir: work around cygwin 1.5.x and mingw bugs
57966         * m4/rmdir.m4 (gl_FUNC_RMDIR): Detect the bugs.
57967         * lib/rmdir.c (rmdir): Work around it.
57968         * modules/rmdir (Status, Notice): No longer obsolete.
57969         (Files): Add dos.m4.
57970         (Depends-on): Add unistd.
57971         (configure.ac): Set witnesses.
57972         (License): Relax to LGPLv2+.
57973         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set defaults.
57974         * modules/unistd (Makefile.am): Substitute witnesses.
57975         * lib/unistd.in.h (rmdir): Declare replacement.
57976         * doc/posix-functions/rmdir.texi (rmdir): Document this.
57977         * modules/rmdir-tests: New tests.
57978         * tests/test-rmdir.c: Likewise.
57980 2009-09-15  Eric Blake  <ebb9@byu.net>
57982         fchdir: improve use of replacement functions
57983         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set appropriate witnesses.
57984         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add REPLACE_FSTAT.
57985         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Add REPLACE_OPENDIR,
57986         REPLACE_CLOSEDIR.
57987         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add REPLACE_DUP.
57988         * modules/sys_stat (Makefile.am): Substitute correct witness.
57989         * modules/dirent (Makefile.am): Likewise.
57990         * modules/unistd (Makefile.am): Likewise.
57991         * lib/dirent.in.h (opendir, closedir): Use better witnesses.
57992         * lib/unistd.in.h (dup): Likewise.
57993         * lib/sys_stat.in.h (fstat): Likewise.
57995         maint: ignore gnulib-tool temp files
57996         * .gitignore: Ignore files created during gnulib-tool --test.
57998 2009-09-13  Jim Meyering  <meyering@redhat.com>
58000         posixtm: don't reject a time that specify "60" as the number of seconds
58001         * lib/posixtm.c (posixtime): The code to reject invalid dates
58002         would also reject a time specified with the .60 suffix.
58003         But POSIX allows that, in order to accommodate leap seconds.
58004         So don't reject it.
58005         (main): Adjust tests accordingly.
58006         * modules/posixtm (Depends-on): Add stpcpy.
58008 2009-09-11  Jim Meyering  <meyering@redhat.com>
58010         announce-gen: include [$release_type] in emitted Subject:
58011         * build-aux/announce-gen (get_tool_versions): Include [$release_type],
58012         e.g., [stable] in the emitted Subject: line.
58014 2009-09-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
58016         Remove obsolete macros from several modules.
58017         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Replace
58018         obsolete Autoconf macros with their modern counterparts.
58019         * m4/check-math-lib.m4 (gl_CHECK_MATH_LIB): Likewise.
58020         * m4/gc-camellia.m4 (gl_GC_CAMELLIA): Likewise.
58021         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Likewise.
58022         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Likewise.
58023         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Likewise.
58024         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
58025         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
58026         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
58027         * m4/poll.m4 (gl_FUNC_POLL): Likewise.
58028         * m4/readline.m4 (gl_FUNC_READLINE): Likewise.
58029         * m4/round.m4 (gl_FUNC_ROUND): Likewise.
58030         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
58031         * m4/select.m4 (gl_FUNC_SELECT): Likewise.
58032         * m4/sockets.m4 (gl_SOCKETS): Likewise.
58033         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Likewise.
58034         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Likewise.
58035         * m4/sysexits.m4 (gl_SYSEXITS): Likewise.
58036         * m4/time_r.m4 (gl_TIME_R): Likewise.
58037         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Likewise.
58038         * m4/vararrays.m4 (AC_C_VARARRAYS): Likewise.
58039         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
58041         Fix copyright header in build-aux scripts.
58042         * build-aux/git-version-gen: Fix copyright header to match GPLv3
58043         recommendation.
58044         * build-aux/ncftpput-ftp: Likewise.
58045         * build-aux/update-copyright: Likewise.
58047 2009-09-09  Eric Blake  <ebb9@byu.net>
58049         test-link: allow Linux choice of errno
58050         * tests/test-link.c (main): Relax test for alternate error.
58052         strndup: fix improper m4 caching
58053         * m4/strndup.m4 (gl_FUNC_STRNDUP): Rework to avoid side effects
58054         inside AC_CACHE_CHECK.  Use REPLACE_STRNDUP, not HAVE_STRNDUP.
58055         (gl_PREREQ_STRNDUP): Delete.
58056         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Update default.
58057         * modules/string (Makefile.am): Substitute it.
58058         * lib/string.in.h (strndup): Modernize prototype.
58060         getcwd: port to mingw
58061         * m4/getcwd.m4 (gl_FUNC_GETCWD): Mingw directories are very
58062         different from the POSIX assumptions made throughout the getcwd
58063         module; fortunately, the mingw getcwd does not need replacement.
58064         (gl_FUNC_GETCWD_NULL): Skip test on mingw.
58065         * modules/getcwd-tests: New test.
58066         * tests/test-getcwd.c: Likewise.
58068         link: fix platform bugs
58069         * m4/link.m4 (gl_FUNC_LINK): Detect Solaris and Cygwin bugs.
58070         * lib/link.c (link): Work around them.  Fix related mingw bug.
58071         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add REPLACE_LINK.
58072         * modules/unistd (Makefile.am): Substitute it.
58073         * lib/unistd.in.h (link): Declare replacement.
58074         * doc/posix-functions/link.texi (link): Document this.
58075         * modules/link (Depends-on): Add strdup-posix, sys_stat.
58077         test-link: consolidate into single C program, test more cases
58078         * tests/test-link.sh: Delete.
58079         * tests/test-link.c: Test more error conditions.  Exposes bugs on
58080         at least Cygwin and Solaris.
58081         * modules/link-tests (Files): Remove unused file.
58082         (Depends-on): Add errno, sys_stat.
58083         (Makefile.am): Simplify.
58085 2009-09-08  Bruno Haible  <bruno@clisp.org>
58087         Work around towlower, towupper bug on mingw.
58088         * lib/wctype.in.h (towlower, towupper) [__MINGW32__]: New replacements.
58089         * m4/wctype.m4 (gl_WCTYPE_H): Replace <wctype.h> also on mingw.
58090         * doc/posix-functions/towlower.texi: Mention the mingw bug.
58091         * doc/posix-functions/towupper.texi: Likewise.
58092         Reported by Eric Blake.
58094 2009-09-08  Jim Meyering  <meyering@redhat.com>
58096         build: don't try to run autoheader if we don't use it
58097         * build-aux/bootstrap: Define AUTOHEADER=true when AC_CONFIG_HEADERS
58098         is not used in configure.ac.
58100 2009-09-08  Eric Blake  <ebb9@byu.net>
58102         euidaccess: fix compilation error
58103         * lib/euidaccess.c (includes): Add <fcntl.h>, for AT_EACCESS.
58105         rawmemchr: relax license
58106         * modules/rawmemchr (License): Derived from glibc, so LGPLv2+ is
58107         okay.
58108         Reported by Jim Meyering.
58110         mkfifoat: new module
58111         * modules/mkfifoat: New file.
58112         * lib/mkfifoat.c: Likewise.
58113         * m4/mkfifoat.m4 (gl_FUNC_MKFIFOAT): Likewise.
58114         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
58115         * modules/sys_stat (Makefile.am): Use them.
58116         * lib/sys_stat.in.h (mkfifoat, mknodat): Declare them.
58117         * MODULES.html.sh (File system functions): Mention module.
58118         * doc/posix-functions/mkfifoat.texi (mkfifoat): Likewise.
58119         * doc/posix-functions/mknodat.texi (mknodat): Likewise.
58120         * modules/mkfifoat-tests: New test.
58121         * tests/test-mkfifoat.c: Likewise.
58123         strchrnul: relax license
58124         * modules/strchrnul (License): Derived from glibc, so LGPLv2+ is
58125         okay.
58126         Reported by Jim Meyering.
58128 2009-09-08  Eric Blake  <ebb9@byu.net>
58130         fstatat: fix compilation on Solaris
58131         * lib/fstatat.c (includes): Add fcntl.h.
58132         Reported by Pádraig Brady.
58134 2009-09-07  Eric Blake  <ebb9@byu.net>
58136         rename: modernize replacement
58137         * modules/rename (Depends-on): Add stdio.
58138         (configure.ac): Declare witness.
58139         * m4/rename.m4 (gl_FUNC_RENAME): Ensure dependency order, and let
58140         stdio take care of replacement.
58141         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add new defaults.
58142         * modules/stdio (Makefile.am): Substitute them.
58143         * lib/stdio.in.h (rename): Declare replacement.
58144         * lib/rename.c (includes): Allow cross-compilation to non-windows
58145         machines.
58146         * doc/posix-functions/rename.texi (rename): Improve
58147         documentation.
58149         stdio: sort witness names
58150         * modules/stdio (Makefile.am): Sort replacements.
58151         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
58152         * lib/stdio.in.h: Likewise.
58154         getcwd: minor cleanups
58155         * lib/getcwd.c (AT_FDCWD): Delete; rely on <fcntl.h> instead.
58156         (is_ENAMETOOLONG): Delete; ENAMETOOLONG is portable.
58158         openat: provide more convenience names
58159         * modules/faccessat (configure.ac): Add C witness.
58160         * lib/unistd.in.h (readlinkat): Fix typo.
58161         * lib/openat.h (statat, lstatat, accessat, euidaccessat): New
58162         convenience wrappers.
58163         * top/maint.mk (sc_prohibit_openat_without_use): Allow these
58164         wrappers in syntax checks.
58166 2009-09-06  Eric Blake  <ebb9@byu.net>
58168         doc: fix comments in recent patches
58169         * lib/faccessat.c: Mention correct function.
58170         * lib/fchmodat.c: Likewise.
58171         * lib/fchownat.c: Likewise.
58172         * lib/symlinkat.c: Likewise.
58173         * doc/posix-headers/fcntl.texi (fcntl.h): Cygwin 1.7 has AT_*
58174         constants.
58176         faccessat, symlinkat: continue cleanup of previous patch
58177         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Ensure dependency order.
58178         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Likewise.
58179         * modules/unistd (Makefile.am): Substitute GNULIB_READLINKAT.
58180         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Offer GNULIB_READLINKAT.
58181         * modules/symlinkat (configure.ac): Set GNULIB_READLINKAT.
58182         * lib/unistd.in.h (readlinkat): Declare if GNULIB_READLINKAT is
58183         set.
58185 2009-09-06  Bruno Haible  <bruno@clisp.org>
58187         * lib/sys_stat.in.h (fchmodat): Declare if GNULIB_FCHMODAT is set.
58188         (fstatat): Declare if GNULIB_FSTATAT is set.
58189         (mkdirat): Declare if GNULIB_MKDIRAT is set.
58190         * lib/unistd.in.h (fchownat): Declare if GNULIB_FCHOWNAT is set.
58191         (unlinkat): Declare if GNULIB_UNLINKAT is set.
58192         * modules/fcntl-h (Files): Remove m4/openat.m4.
58193         * modules/sys_stat (Files): Remove m4/openat.m4.
58194         (Makefile.am): Substitute GNULIB_FCHMODAT, GNULIB_FSTATAT,
58195         GNULIB_MKDIRAT instead of GNULIB_OPENAT.
58196         * modules/unistd (Files): Remove m4/openat.m4.
58197         (Makefile.am): Substitute GNULIB_FCHOWNAT, GNULIB_UNLINKAT instead of
58198         GNULIB_OPENAT.
58199         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Initialize GNULIB_OPENAT,
58200         HAVE_OPENAT here. Don't require gl_OPENAT_DEFAULTS.
58201         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize
58202         GNULIB_FCHMODAT, GNULIB_FSTATAT, GNULIB_MKDIRAT, HAVE_FCHMODAT,
58203         HAVE_FSTATAT, HAVE_MKDIRAT, REPLACE_FSTATAT here. Don't require
58204         gl_OPENAT_DEFAULTS.
58205         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_FCHOWNAT,
58206         GNULIB_UNLINKAT, HAVE_FCHOWNAT, HAVE_UNLINKAT, REPLACE_FCHOWNAT here.
58207         Don't require gl_OPENAT_DEFAULTS.
58208         * m4/openat.m4 (gl_FUNC_OPENAT): Require gl_FCNTL_H_DEFAULTS,
58209         gl_SYS_STAT_H_DEFAULTS, gl_UNISTD_H_DEFAULTS. Set GNULIB_FCHMODAT,
58210         GNULIB_FSTATAT, GNULIB_MKDIRAT, GNULIB_FCHOWNAT, GNULIB_UNLINKAT.
58211         (gl_OPENAT_DEFAULTS): Remove macro.
58213 2009-09-06  Bruno Haible  <bruno@clisp.org>
58215         * modules/openat (configure.ac): Remove unneeded witness.
58217 2009-09-06  Bruno Haible  <bruno@clisp.org>
58219         Set errno to ENOSYS when a function is entirely unsupported.
58220         * lib/chown.c (rpl_chown) [!HAVE_CHOWN]: Set errno to ENOSYS instead of
58221         EOPNOTSUPP.
58222         * lib/lchown.c (lchown) [!HAVE_CHOWN]: Likewise.
58223         * modules/chown (Depends-on): Remove errno.
58225 2009-09-06  Bruno Haible  <bruno@clisp.org>
58227         * doc/posix-headers/fcntl.texi (AT_*): Mention affected platforms.
58229 2009-09-06  Bruno Haible  <bruno@clisp.org>
58231         * lib/sys_stat.in.h: Fix preprocessor command indentation.
58233 2009-09-06  Ben Pfaff  <blp@gnu.org>
58234             Bruno Haible  <bruno@clisp.org>
58236         Work around a glibc bug in strtok_r.
58237         * lib/string.in.h (strtok_r): Replace if REPLACE_STRTOK_R is set.
58238         Undefine if UNDEFINE_STRTOK_R is set.
58239         * lib/strtok_r.c (strtok_r, __strtok_r) [!_LIBC]: Don't undefine.
58240         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
58241         REPLACE_STRTOK_R and UNDEFINE_STRTOK_R.
58242         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Check against the glibc bug.
58243         * modules/string (Makefile.am): Substitute REPLACE_STRTOK_R,
58244         UNDEFINE_STRTOK_R.
58245         * doc/posix-functions/strtok_r.texi: Mention the glibc 2.7 bug.
58247 2009-09-06  Sergey Poznyakoff  <gray@gnu.org.ua>
58249         exclude: minor fix
58250         * lib/exclude.c: Include wctype.h
58252 2009-09-06  Akim Demaille  <demaille@gostai.com>
58254         bootstrap: improve error message
58255         * build-aux/bootstrap (find_tool): Upon failure, report the list
58256         of candidates.
58257         Honor the initial value of the envvar.
58259 2009-09-05  Eric Blake  <ebb9@byu.net>
58261         symlinkat: new module
58262         * modules/symlinkat: New file.
58263         * lib/symlinkat.c: Likewise.
58264         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Likewise.
58265         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
58266         * modules/unistd (Makefile.am): Use them.
58267         * lib/unistd.in.h (symlinkat, readlinkat): Declare them.
58268         (faccessat) [GNULIB_POSIXCHECK]: Fix typo.
58269         * lib/at-func.c (FUNC_RESULT): New macro, defaulting to int.
58270         * MODULES.html.sh (File system functions): Mention module.
58271         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
58272         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
58273         * modules/symlinkat-tests: New test.
58274         * tests/test-symlinkat.c: Likewise.
58276         test-openat-safer: add more checks
58277         * tests/test-openat-safer.c (main): Check more code paths.
58279 2009-09-05  Jim Meyering  <meyering@redhat.com>
58281         syntax-check: detect unnecessary inclusion of openat.h
58282         * top/maint.mk (sc_prohibit_openat_without_use): New rule.
58284 2009-09-05  Bruno Haible  <bruno@clisp.org>
58286         Support towlower, towupper.
58287         * doc/posix-functions/towlower.texi: Mention module wctype.
58288         * doc/posix-functions/towupper.texi: Likewise.
58289         * lib/wctype.in.h (towlower, towupper): New functions.
58290         * tests/test-wctype.c: Include stdio.h, stdlib.h.
58291         (ASSERT): New macro.
58292         (e): New variable.
58293         (main): Test also towlower, towupper. Test WEOF argument.
58294         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
58296 2009-09-05  Bruno Haible  <bruno@clisp.org>
58298         Fix conversion behaviour when the input is invalid.
58299         * lib/striconveh.c (mem_cd_iconveh_internal): Fix storing of question
58300         mark occurring in first pass of indirect conversion.
58301         * tests/test-striconveh.c (main): Test conversion of invalid ASCII
58302         input.
58303         Found by clang's static analyzer.
58305 2009-09-05  Bruno Haible  <bruno@clisp.org>
58307         * tests/test-striconveh.c (main): Test indirect conversion on platforms
58308         where direct conversion is possible.
58310 2009-09-04  Eric Blake  <ebb9@byu.net>
58312         openat: fail with ENOENT on empty name
58313         * lib/openat-proc.c (openat_proc_name): Special-case the empty
58314         buffer.
58316         link-follow: fix logic bug in prior patch
58317         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Fix bug that
58318         reversed sense of yes and no in prior patch.  Avoid confusing
58319         compilation failure with desired semantics.
58321         link-follow: accommodate mingw and cross-compilation
58322         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Rename...
58323         (gl_FUNC_LINK_FOLLOWS_SYMLINK): ...to this.  Change
58324         cross-compilation results to -1, to make linkat easier to
58325         implement when cross-compiling.  Trivially support mingw.
58326         * modules/link-follow (configure.ac): Call new name.
58327         * NEWS: Mention this.
58329 2009-09-03  Eric Blake  <ebb9@byu.net>
58331         faccessat: compile replacement
58332         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Build replacement when
58333         needed.
58335         fts: fix compilation error
58336         * lib/fts.c (includes): Re-add "openat.h", for
58337         openat_needs_fchdir.
58339         faccessat: new module
58340         * modules/faccessat: New file.
58341         * lib/faccessat.c: Likewise.
58342         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Likewise.
58343         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
58344         * modules/unistd (Makefile.am): Use it.
58345         * lib/unistd.in.h (faccessat): Declare it.
58346         (F_OK, X_OK, W_OK, R_OK): Provide definitions.
58347         * lib/fcntl.in.h (AT_SYMLINK_FOLLOW, AT_EACCESS): Likewise.
58348         * MODULES.html.sh (File system functions): Mention it.
58349         * doc/posix-functions/faccessat.texi (faccessat): Likewise.
58350         * doc/posix-headers/fcntl.texi (fcntl.h): Likewise.
58352         euidaccess: prefer POSIX over non-standard implementation
58353         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Check for faccessat.
58354         * lib/euidaccess.c (euidaccess): Use it if available.
58356         openat: make template easier to use
58357         * lib/at-func.c (CALL_FUNC): Allow AT_FUNC_USE_F1_COND and
58358         AT_FUNC_F2 to be undefined.
58359         (VALIDATE_FLAG): New macro; use it to reject bad flags.
58360         (AT_FUNC_USE_F1_COND): Change sense to just flag bit.
58361         * lib/fchmodat.c (AT_FUNC_USE_F1_COND): Adjust.
58362         * lib/fchownat.c (AT_FUNC_USE_F1_COND): Likewise.
58363         * lib/openat.c (AT_FUNC_USE_F1_COND) [fstatat, unlinkat]:
58364         Likewise.
58365         * lib/mkdirat.c (AT_FUNC_F2, AT_FUNC_USE_F1_COND): Delete.
58366         * lib/selinux-at.c (AT_FUNC_F2, AT_FUNC_USE_F1_COND)
58367         [getfileconat, lgetfileconat, setfileconat, lsetfileconat]:
58368         Likewise.
58370         openat: declare in POSIX headers
58371         * NEWS: Mention this.
58372         * modules/openat (configure.ac): Declare witnesses.
58373         (Depends-on): Add fcntl-h, sys_stat, unistd.
58374         (Include): Mention correct headers.
58375         * modules/fcntl-h (Depends-on): Add link-warning.
58376         (Files): Add openat.m4.
58377         (Makefile.am): Substitute witnesses.
58378         * modules/sys_stat (Files, Makefile.am): Likewise.
58379         * modules/unistd (Files, Makefile.am): Likewise.
58380         * m4/openat.m4 (gl_FUNC_OPENAT, gl_FUNC_FCHOWNAT): Set witnesses.
58381         (gl_OPENAT_DEFAULTS): New macro.
58382         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Use it.
58383         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Likewise.
58384         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Likewise.
58385         (SYS_STAT_H): Remove unused variable.
58386         * doc/posix-headers/fcntl.texi (fcntl.h): Update content.
58387         * lib/fcntl--.h (includes): Remove unneeded header.
58388         * lib/openat-safer.c (includes): Likewise.
58389         * lib/openat.h (AT_FDCWD, AT_SYMLINK_NOFOLLOW, AT_REMOVEDIR)
58390         (openat, fstatat, unlinkat, mkdirat, fchmodat, fchownat): Move to
58391         appropriate headers.
58392         (__OPENAT_PREFIX): Delete.
58393         * lib/fcntl.in.h (openat): Provide declaration.
58394         (AT_FDCWD): Fix Solaris bug.
58395         (AT_SYMLINK_NOFOLLOW, AT_REMOVEDIR): Provide macros.
58396         * lib/sys_stat.in.h (fstatat, mkdirat): Provide declaration.
58397         * lib/fchmodat.c (includes):  Adjust to find declaration.
58398         * lib/fchownat.c (includes): Likewise.
58399         * lib/mkdirat.c (includes): Likewise.
58400         * lib/fstatat.c (includes): Likewise.  Ensure original fstatat is
58401         still visible.
58403 2009-09-02  Eric Blake  <ebb9@byu.net>
58405         errno: use consistently
58406         * lib/c-stack.c (ENOTSUP): <errno.h> guarantees a definition.
58407         * lib/canonicalize-lgpl.c (ENAMETOOLONG): Likewise.
58408         * lib/canonicalize.c (ELOOP): Likewise.
58409         * lib/inet_ntop.c (EAFNOSUPPORT): Likewise.
58410         * lib/inet_pton.c (EAFNOSUPPORT): Likewise.
58411         * lib/lchown.c (EOPNOTSUPP): Likewise.
58412         * lib/openat-priv.h (ENOSYS, EOPNOTSUPP): Likewise.
58413         * lib/savewd.c (ESTALE): Likewise.
58414         * lib/settime.c (ENOSYS): Likewise.
58415         * lib/utimens.c (ENOSYS): Likewise.
58416         * lib/xgethostname.c (ENAMETOOLONG): Likewise.
58417         * lib/chdir-safer.c (ELOOP): Likewise.
58418         (chdir_no_follow): Use HAVE_READLINK, not ELOOP, as witness.
58419         * modules/c-stack (Depends-on): Add errno.
58420         * modules/canonicalize (Depends-on): Likewise.
58421         * modules/chdir-safer (Depends-on): Likewise.
58422         * modules/fdopendir (Depends-on): Likewise.
58423         * modules/inet_ntop (Depends-on): Likewise.
58424         * modules/inet_pton (Depends-on): Likewise.
58425         * modules/lchown (Depends-on): Likewise.
58426         * modules/openat (Depends-on): Likewise.
58427         * modules/savewd (Depends-on): Likewise.
58428         * modules/settime (Depends-on): Likewise.
58429         * m4/chdir-safer.m4 (gl_CHDIR_SAFER): Check for readlink.
58431         fts: avoid leaking fds
58432         * modules/fts (Depends-on): Add cloexec.
58433         * lib/fts.c (opendirat, diropen, fts_build): Set close-on-exec
58434         flag.
58436         fts: make directory fds more robust
58437         * lib/fts.c (O_DIRECTORY): Let <fcntl.h> take care of this.
58438         (opendirat): Specify O_DIRECTORY, and add fallbacks for safety.
58440         backupfile, chdir-long, fts, savedir: make safer
58441         * lib/backupfile.c (includes): Use "dirent--.h", since
58442         numbered_backup can write to stderr during readdir.
58443         * lib/savedir.c (includes): Likewise.
58444         * lib/chdir-long.c (includes): Use "fcntl--.h", since openat
58445         emulation can write to stderr on failure.
58446         * lib/fts.c (includes) [!_LIBC]: Likewise for opendir and openat.
58447         * lib/getcwd.c: Document why opendir_safer is unused.
58448         * lib/glob.c: Likewise.
58449         * lib/scandir.c: Likewise.
58450         * lib/openat-proc.c: Likewise, for open_safer.
58451         * modules/backupfile (Depends-on): Add dirent-safer.
58452         * modules/savedir (Depends-on): Likewise.
58453         * modules/fts (Depends-on): Add dirent-safer and openat-safer.
58454         * modules/chdir-long (Depends-on): Add openat-safer.
58456         openat-safer: new module
58457         * modules/openat-safer: New file.
58458         * lib/openat-safer.c: Likewise.
58459         * m4/fcntl-safer.m4 (gl_OPENAT_SAFER): New macro.
58460         * lib/fcntl-safer.h (openat_safer): Declare.
58461         * lib/fcntl--.h (openat): Override.
58462         * MODULES.html.sh (File descriptor based I/O): Mention it.
58463         * lib/openat.h: Add double-inclusion guards.
58464         * lib/openat.c (includes): Only include "fcntl-safer.h", not
58465         "fcntl--.h", so we can implement openat.
58466         * modules/openat-safer-tests: New test.
58467         * tests/test-openat-safer.c: New file.
58469         dirent-safer: new module
58470         * modules/dirent-safer: New file.
58471         * lib/dirent--.h: Likewise.
58472         * lib/dirent-safer.h: Likewise.
58473         * lib/opendir-safer.c: Likewise.
58474         * m4/dirent-safer.m4: Likewise.
58475         * MODULES.html.sh (Enhancements for POSIX:2008): Mention it.
58476         * modules/dirent-safer-tests: New test.
58477         * tests/test-dirent-safer.c: New file.
58478         * lib/fdopendir.c (includes): Ensure fdopendir is also safe.
58480         fdopendir: optimize on mingw
58481         * lib/unistd.in.h (_gl_directory_name): New prototype.
58482         * lib/fchdir.c (_gl_directory_name): Implement it.
58483         (fchdir): Use it to simplify implementation.
58484         * lib/fdopendir.c (fdopendir) [REPLACE_FCHDIR]: Use metadata from
58485         fchdir, when available, to avoid calling [f]chdir().
58487         fdopendir: split into its own module
58488         * lib/openat.c (fdopendir): Move...
58489         * lib/fdopendir.c: ...into new file.
58490         * modules/fdopendir: New module.
58491         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): New file.
58492         * modules/openat (Depends-on): Add fdopendir.
58493         * m4/openat.m4 (gl_FUNC_OPENAT): No longer need to check for
58494         fdopendir here.
58495         * modules/savedir (Depends-on): Only need fdopendir, not full
58496         openat.
58497         * lib/savedir.c (include): Use <dirent.h>, not "openat.h".
58498         * lib/openat.h (fdopendir): Drop prototype.
58499         * lib/dirent.in.h (fdopendir): Provide prototype.
58500         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Add replacements.
58501         * modules/dirent (Makefile.am): Substitute them.
58502         * MODULES.html.sh (File system functions): Mention it.
58503         * doc/posix-functions/fdopendir.texi (fdopendir): Likewise.
58504         * modules/fdopendir-tests: New file.
58505         * tests/test-fdopendir.c: Likewise.
58507         fchdir: use more consistent macro convention
58508         * lib/fcntl.in.h (_gl_register_fd): Move declaration to unistd.
58509         * lib/sys_stat.in.h (rpl_fstat): Declare via make-time
58510         REPLACE_FCHDIR, rather than relying on config.h macros.
58511         * lib/unistd.in.h (fchdir): Move all fchdir internal declarations
58512         inside a single make-time REPLACE_FCHDIR block, rather than using
58513         the config.h FCHDIR_REPLACEMENT.
58514         * m4/fchdir.m4 (gl_FUNC_FCHDIR): REPLACE_FCHDIR was already
58515         AC_SUBST'd, also AC_DEFINE it.  Don't define FCHDIR_REPLACEMENT.
58516         Manage fstat replacement.
58517         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Pick up
58518         REPLACE_FCHDIR.
58519         * modules/sys_stat (Files): Add m4/unistd_h.m4.
58520         (Makefile.am): Substitute REPLACE_FCHDIR.
58521         * lib/close.c (rpl_close): Use REPLACE_FCHDIR, not
58522         FCHDIR_REPLACEMENT.
58523         * lib/dup-safer.c (dup_safer): Likewise.
58524         * lib/dup2.c (rpl_dup2): Likewise.
58525         * lib/dup3.c (rpl_dup3): Likewise.
58526         * lib/open.c (rpl_open): Likewise.
58528         fchdir: simplify error handling, and support dup3
58529         * modules/fchdir (Depends-on): Use strdup-posix, not strdup.  Add
58530         stdbool, malloc-posix, realloc-posix.
58531         * lib/fchdir.c (struct dir_info_t): Delete saved_errno.
58532         (ensure_dirs_slot): Return false on allocation failure.
58533         (rpl_dup2): Delete.
58534         (_gl_register_dup): New function.
58535         (_gl_unregister_fd, rpl_opendir, rpl_dup): Update callers.
58536         (_gl_register_fd): Close fd on allocation failure.
58537         * lib/fcntl.in.h (_gl_register_fd): Update signature.
58538         * lib/unistd.in.h (_gl_register_dup) [FCHDIR_REPLACEMENT]: New
58539         prototype.
58540         (rpl_dup2_fchdir): Delete prototype.
58541         * lib/open.c (open): Update caller.
58542         * lib/dup2.c (dup2): Track fchdir metadata.
58543         * lib/dup3.c (dup3): Likewise.
58544         * m4/dup2.m4 (gl_REPLACE_DUP2): New macro.
58545         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Use it.
58547 2009-09-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
58549         * gnulib-tool (func_create_testdir, func_create_megatestdir): Use
58550         AC_CONFIG_HEADERS instead of AM_CONFIG_HEADER. Use AC_CONFIG_FILES and
58551         don't pass arguments to AC_OUTPUT.
58553 2009-09-02  Bruno Haible  <bruno@clisp.org>
58555         * modules/mkdtemp (License): Relicense under LGPLv2+.
58556         Reported by Paolo Bonzini.
58558 2009-09-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
58560         Replace uses of obsolete autoconf macros in Jim's modules.
58561         The Autoconf macros AC_TRY_CPP, AC_TRY_COMPILE, AC_TRY_LINK and
58562         AC_TRY_RUN have been obsolete since Autoconf 2.55, and each use
58563         can evoke a warning from autoconf when run with -Wobsolete
58564         enabled.  They were declared obsolete for good reasons (see
58565         the `AC_FOO_IFELSE vs AC_TRY_FOO' node in the Autoconf manual,
58566         recently renamed to `AC_ACT_IFELSE vs AC_TRY_ACT'), and we
58567         should not continue using the deprecated macros.
58568         * m4/d-type.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Replace
58569         obsolete Autoconf macros with modern counterparts.
58570         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
58571         * m4/dos.m4 (gl_AC_DOS): Likewise.
58572         * m4/fpending.m4 (gl_FUNC_FPENDING): Likewise.
58573         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Likewise.
58574         * m4/getloadavg.m4 (gl_PREREQ_GETLOADAVG): Likewise.
58575         * m4/jm-winsz1.m4 (gl_WINSIZE_IN_PTEM): Likewise.
58576         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Likewise.
58577         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Likewise.
58578         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Likewise.
58579         * m4/mode_t.m4 (gl_PROMOTED_TYPE_MODE_T): Likewise.
58580         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH):
58581         Likewise.
58582         * m4/rename.m4 (gl_FUNC_RENAME): Likewise.
58583         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Likewise.
58584         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Likewise.
58585         * m4/st_dm_mode.m4 (AC_STRUCT_ST_DM_MODE): Likewise.
58586         * m4/stat-time.m4 (gl_STAT_TIME): Likewise.
58587         * m4/utimes-null.m4 (gl_FUNC_UTIMES_NULL): Likewise.
58589 2009-09-01  Eric Blake  <ebb9@byu.net>
58591         fchdir: fix off-by-one bug in previous patch
58592         * lib/fchdir.c (rpl_fstat): Use correct bounds.
58593         (_gl_unregister_fd): Delete useless if.
58595 2009-09-01  Daniel P. Berrange  <berrange@redhat.com>
58597         maint.mk: sort the list of syntax-check rules
58598         * top/maint.mk (syntax-check-rules): Sort syntax-check rules, so it's
58599         easier to get a sense of progress when the rules are run sequentially
58600         and take a long time.
58602 2009-09-01  Simon Josefsson  <simon@josefsson.org>
58604         * modules/arpa_inet: Use $(MKDIR_P) instead of @MKDIR_P@.
58605         * modules/netinet_in: Likewise.
58606         * modules/sys_file: Likewise.
58607         * modules/sys_ioctl: Likewise.
58608         * modules/sys_select: Likewise.
58609         * modules/sys_socket: Likewise.
58610         * modules/sys_stat: Likewise.
58611         * modules/sys_time: Likewise.
58612         * modules/sys_times: Likewise.
58613         * modules/sys_utsname: Likewise.
58614         * modules/sys_wait: Likewise.
58616 2009-09-01  Jim Meyering  <meyering@redhat.com>
58618         fts: help ensure that return values are not ignored
58619         * lib/fts_.h (__GNUC_PREREQ): Define.
58620         (__attribute_warn_unused_result__): Define.
58621         (fts_children, fts_close, fts_open, fts_read): Declare with
58622         __attribute_warn_unused_result__.
58624         fts: fts_close now fails also when closing a dir file descriptor fails
58625         * lib/fts.c (fts_close): Detect close failure, not just fchdir failure,
58626         and propagate to caller, along with errno.
58628         announce-gen: correct formatting in --help output
58629         * build-aux/announce-gen (usage): Move the one-line description in
58630         --help output "up", to where it belongs, just after Usage:.
58632 2009-08-31  Eric Blake  <ebb9@byu.net>
58634         fchdir: port to mingw
58635         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Check for mingw bug.
58636         * lib/open.c (open) [FCHDIR_REPLACEMENT]: If directories can't be
58637         opened, then use a substitute.
58638         * lib/sys_stat.in.h (fstat) [REPLACE_OPEN_DIRECTORY]: Declare
58639         replacement.
58640         * lib/fchdir.c (fstat) [REPLACE_OPEN_DIRECTORY]: Implement it.
58641         (_gl_register_fd): No need to check stat if open already filters
58642         all directories.
58643         (fchdir): Fix error condition to match POSIX.
58644         * modules/fchdir (Depends-on): Add sys_stat.
58645         * doc/posix-functions/open.texi (open): Document the limitation.
58646         * modules/fchdir-tests: New file.
58647         * tests/test-fchdir.c: Likewise.
58649         canonicalize: allow cross-testing from cygwin to mingw
58650         * modules/canonicalize-tests (configure.ac): Define HAVE_SYMLINK.
58651         (Makefile.am): Pass it through TESTS_ENVIRONMENT.
58652         * modules/canonicalize-lgpl-tests (configure.ac, Makefile.am):
58653         Likewise.
58654         * tests/test-canonicalize.sh: Also skip test if 'ln -s' works, but
58655         target does not support symlinks.
58656         * tests/test-canonicalize-lgpl.sh: Likewise.
58658         chown: avoid compilation warning on mingw
58659         * m4/chown.m4 (gl_FUNC_CHOWN): Recognize missing chown.
58660         * lib/chown.c (rpl_chown) [!HAVE_CHOWN]: Always return failure on
58661         mingw.
58662         * lib/lchown.c (lchown) [!HAVE_CHOWN]: Likewise.
58663         * modules/chown (Depends-on): Add errno.
58665 2009-08-31  Stefano Lattarini  <stefano.lattarini@gmail.com>  (tiny change)
58667         * gnulib-tool: Fix test whether $CONFIG_SHELL has a working 'echo'
58668         command.
58670 2009-08-31  Jim Meyering  <meyering@redhat.com>
58672         canonicalize: remove useless initialization
58673         * lib/canonicalize.c (canonicalize_filename_mode): Remove useless
58674         initialization of local, "end".
58676 2009-08-30  Bruno Haible  <bruno@clisp.org>
58678         Fix an unnecessary error on Solaris 10 on NFSv3 file systems.
58679         * lib/set-mode-acl.c (qset_acl) [Solaris 10 new]: Treat EOPNOTSUPP like
58680         ENOSYS.
58682 2009-08-30  Bruno Haible  <bruno@clisp.org>
58684         * tests/test-pipe-filter-ii1.sh: Prefer /usr/xpg6/bin/tr over
58685         /usr/xpg4/bin/tr when it exists.
58686         * tests/test-pipe-filter-gi1.sh: Likewise.
58688 2009-08-30  Bruno Haible  <bruno@clisp.org>
58690         Work around deficient /usr/bin/id program on Solaris.
58691         * tests/test-file-has-acl.sh (ID): New variable.
58692         * tests/test-set-mode-acl.sh (ID): Likewise.
58693         * tests/test-copy-acl.sh (ID): Likewise.
58694         * tests/test-copy-file.sh (ID): Likewise.
58696 2009-08-30  Bruno Haible  <bruno@clisp.org>
58698         New module 'xstriconveh'.
58699         * lib/xstriconveh.h: New file.
58700         * lib/xstriconveh.c: New file.
58701         * modules/xstriconveh: New file.
58703 2009-08-30  Bruno Haible  <bruno@clisp.org>
58705         Make it easier to use mem_cd_iconveh.
58706         * lib/striconveh.h (iconveh_t): New type.
58707         (iconveh_open, iconveh_close): New declarations.
58708         (mem_cd_iconveh, str_cd_iconveh): Replace the three iconv_t arguments
58709         with a single 'const iconveh_t *' argument.
58710         * lib/striconveh.c (iconveh_open, iconveh_close): New functions.
58711         (mem_cd_iconveh, str_cd_iconveh): Replace the three iconv_t arguments
58712         with a single 'const iconveh_t *' argument.
58713         (mem_iconveh, str_iconveh): Use iconveh_open, iconveh_close.
58714         * tests/test-striconveh.c (main): Update.
58715         * NEWS: Mention the change.
58717 2009-08-30  Bruno Haible  <bruno@clisp.org>
58719         * doc/posix-functions/iconv_open.texi: Mention indirect conversion
58720         problem.
58722 2009-08-30  Bruno Haible  <bruno@clisp.org>
58724         Work around iconv_open problem on Solaris.
58725         * lib/iconv_open-solaris.gperf: New file.
58726         * lib/iconv_open.c (ICONV_FLAVOR_SOLARIS): New macro.
58727         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Also handle Solaris.
58728         * modules/iconv_open (Files): Add lib/iconv_open-solaris.gperf.
58729         (Makefile.am): Add rule for iconv_open-solaris.h. Augment
58730         BUILT_SOURCES, MOSTLYCLEANFILES, MAINTAINERCLEANFILES, EXTRA_DIST.
58731         * doc/posix-functions/iconv_open.texi: Mention the Solaris problem.
58733 2009-08-29  Jim Meyering  <meyering@redhat.com>
58735         maint.mk: remove more coreutils-specific targets; XZ_OPT=-9ev
58736         * top/maint.mk (cvs-check): Remove target; it was just an alias
58737         to the better-named vc-diff-check.
58738         (maintainer-distcheck): Remove rule.  It was used only from
58739         the (alpha/beta/major) target, and all of its commands but one
58740         were coreutils-specific.
58741         (vc-dist): Remove rule.
58742         (alpha beta major): Run "$(MAKE) distcheck" explicitly.
58743         Run vc-diff-check, not vc-dist.
58744         Run $(MAKE) dist with XZ_OPT=-9ev.  Note spelling, with "-".
58746 2009-08-27  Bruno Haible  <bruno@clisp.org>
58748         * tests/test-bitrotate.c (main): Remove test that uses a shift count
58749         of 0.
58751 2009-08-27  Bruno Haible  <bruno@clisp.org>
58753         * tests/test-func.c (main): Don't verify sizeof __func__ on SunPRO C
58754         compilers.
58755         * doc/func.texi: Document the SunPRO C bug.
58757 2009-08-27  Bruno Haible  <bruno@clisp.org>
58759         Fix link error on Solaris.
58760         * tests/test-parse-duration.c (xstrdup): Remove function.
58762 2009-08-26  Pádraig Brady  <P@draigbrady.com>
58764         ignore-value: handle pointer types, too
58765         * lib/ignore-value.h (__attribute__): Remove definition.
58766         (ignore_value): Remove use of "__attribute__ ((unused))" in favor
58767         of a more concise and more-often effective "(void) i" statement.
58768         (ignore_ptr): New function to suppress warnings from functions that
58769         return pointers, and to make it explicit that one function doesn't
58770         handle all cases.
58772 2009-08-25  Bruno Haible  <bruno@clisp.org>
58774         dup2: work around a Linux bug.
58775         * m4/dup2.m4 (gl_FUNC_DUP2): Test for the Linux bug.
58776         * lib/dup2.c (rpl_dup2): Correct the return value if it is -EBADF.
58777         * doc/posix-functions/dup2.texi: Mention the Linux bug.
58778         Reported by Simon Josefsson.
58780 2009-08-25  Jim Meyering  <meyering@redhat.com>
58782         libguestfs uses gnulib
58783         * users.txt: Add libguestfs.
58785 2009-08-24  Eric Blake  <ebb9@byu.net>
58787         dup2, pipe2: fix some recent test failures on cygwin 1.5.x
58788         * lib/pipe2.c (includes): Add binary-io.h.
58789         * lib/dup2.c (rpl_dup2): Correct buggy errno value.
58791 2009-08-24  Bruno Haible  <bruno@clisp.org>
58793         Tolerate declared but missing accept4 syscall.
58794         * lib/accept4.c (accept4): Invoke original accept4 function first, if
58795         available.
58796         * lib/sys_socket.in.h (accept4): If the function is already present,
58797         override it.
58798         * m4/accept4.m4 (gl_FUNC_ACCEPT4): Remove AC_LIBOBJ invocation.
58799         * modules/accept4 (Makefile.am): Compile accept4.c always.
58800         Reported by Paolo Bonzini and Eric Blake.
58802 2009-08-23  Bruno Haible  <bruno@clisp.org>
58804         New module 'accept4'.
58805         * lib/sys_socket.in.h (accept4): New declaration.
58806         * lib/accept4.c: New file.
58807         * m4/accept4.m4: New file.
58808         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Initialize
58809         GNULIB_ACCEPT4, HAVE_ACCEPT4.
58810         * modules/sys_socket (Makefile.am): Substitute GNULIB_ACCEPT4,
58811         HAVE_ACCEPT4.
58812         * modules/accept4: New file.
58813         * doc/glibc-functions/accept4.texi: Mention the new module.
58815 2009-08-24  Jim Meyering  <meyering@redhat.com>
58817         progname: also set global program_invocation_name, when possible
58818         Before this change, a libtool-enabled program that calls glibc's
58819         error function would report the program name as
58820         "/abs/dir/.libs/lt-program_name" rather than the desired program_name.
58821         * modules/progname (configure.ac): Check for a declaration of
58822         program_invocation_name.
58823         * lib/progname.c:  Include <errno.h>.
58824         (set_program_name) [HAVE_DECL_PROGRAM_INVOCATION_NAME]:
58825         Set program_invocation_name.
58827 2009-08-23  Bruno Haible  <bruno@clisp.org>
58829         * lib/dup3.c: Include <string.h>.
58831 2009-08-23  Bruno Haible  <bruno@clisp.org>
58833         * lib/dup3.c (dup3): Test only once whether the system actually exists.
58834         * lib/pipe2.c (pipe2): Likewise.
58835         Suggested by Eric Blake.
58837 2009-08-23  Bruno Haible  <bruno@clisp.org>
58839         Tolerate declared but missing dup3 syscall.
58840         * lib/dup3.c (dup3): Invoke original dup3 function first, if available.
58841         * lib/unistd.in.h (dup3): If the function is already present,
58842         override it.
58843         * m4/dup3.m4 (gl_FUNC_DUP3): Remove AC_LIBOBJ invocation.
58844         * modules/dup3 (Makefile.am): Compile dup3.c always.
58845         Reported by Paolo Bonzini.
58847 2009-08-23  Bruno Haible  <bruno@clisp.org>
58849         Tolerate declared but missing pipe2 syscall.
58850         * lib/pipe2.c (pipe2): Invoke original pipe2 function first, if
58851         available.
58852         * lib/unistd.in.h (pipe2): If the function is already present,
58853         override it.
58854         * m4/pipe2.m4 (gl_FUNC_PIPE2): Remove AC_LIBOBJ invocation.
58855         * modules/pipe2 (Makefile.am): Compile pipe2.c always.
58856         Reported by Paolo Bonzini.
58858 2009-08-23  Bruno Haible  <bruno@clisp.org>
58860         * lib/pipe2.c (pipe2): Move #ifs inside function.
58862 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
58864         quotearg: document limitations of quote_these_too
58865         * lib/quotearg.c (quotearg_buffer_restyled): Add comments where
58866         those limitations are created.
58867         * lib/quotearg.h (set_char_quoting): Document that digits and
58868         letters that are special after backslash are not permitted.
58869         (quotearg_char): Cross-reference set_char_quoting documentation.
58871 2009-08-23  Joel E. Denny  <jdenny@clemson.edu>
58873         quotearg: implement custom_quoting_style
58874         * lib/quotearg.c: (struct quoting_options): Add left_quote and
58875         right_quote fields.
58876         (set_custom_quoting): New public function.
58877         (quotearg_buffer_restyled): Add left_quote and right_quote
58878         arguments, handle them very much like locale quoting, and update
58879         all uses.
58880         (quotearg_n_custom): New public function.
58881         (quotearg_n_custom_mem): New public function.
58882         (quotearg_custom): New public function.
58883         (quotearg_custom_mem): New public function.
58884         * lib/quotearg.h: Prototype and document new public functions.
58885         (enum quoting_style): For escape_quoting_style and
58886         clocale_quoting_style, comment that QA_SPLIT_TRIGRAPHS is
58887         ignored even though they're otherwise like c_quoting_style.
58888         Add custom_quoting_style member and document with comparison to
58889         clocale_quoting_style.
58890         * tests/test-quotearg.c (custom_quotes): New array.
58891         (custom_results): New array.
58892         (main): Extend to test custom quoting.
58894 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
58896         quotearg: fix right quote escaping when it's in quote_these_too
58897         * lib/quotearg.c (quotearg_buffer_restyled): Upon seeing a right
58898         quote, be sure to prepend only one backslash.
58899         * tests/test-quotearg.c (use_quote_double_quotes): New function.
58900         (main): Test it.
58902 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
58904         quotearg-tests: test escaping of embedded locale quotes
58905         * tests/test-quotearg.c (struct result_strings): Add member for
58906         new input.
58907         (LQ_ENC, RQ_ENC, RQ_ESC): New macros.
58908         (inputs): Add new input.
58909         (results_g): Add expected results.
58910         (flag_results): Likewise.
58911         (locale_results): Likewise.
58912         (compare_strings): Check those.
58914 2009-08-23  Bruno Haible  <bruno@clisp.org>
58916         Tests for module 'dup3'.
58917         * modules/dup3-tests: New file.
58918         * tests/test-dup3.c: New file.
58920         New module 'dup3'.
58921         * lib/unistd.in.h (dup3): New declaration.
58922         * lib/dup3.c: New file.
58923         * m4/dup3.m4: New file.
58924         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_DUP3 and
58925         HAVE_DUP3.
58926         * modules/unistd (Makefile.am): Substitute GNULIB_DUP3 and HAVE_DUP3.
58927         * modules/dup3: New file.
58928         * doc/glibc-functions/dup3.texi: Mention the new module.
58930 2009-08-23  Bruno Haible  <bruno@clisp.org>
58932         Tweak the dup2 test.
58933         * tests/test-dup2.c (main): Create the test file empty. Verify that an
58934         out-of-range fd yields EBADF. Verify that after writing to /dev/null,
58935         the test file is still empty. Fix argument order of lseek.
58937 2009-08-23  Bruno Haible  <bruno@clisp.org>
58939         Avoid test link errors when the modules getopt-gnu, gettext are used.
58940         * modules/getopt-posix-tests (Makefile.am): Define test_getopt_LDADD.
58941         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
58943 2009-08-23  Bruno Haible  <bruno@clisp.org>
58945         Fix getdtablesize() on mingw.
58946         * lib/getdtablesize.c (getdtablesize): Implement differently.
58947         * lib/unistd.in.h (getdtablesize): Improve comment.
58949 2009-08-23  Bruno Haible  <bruno@clisp.org>
58951         New module 'mkostemp'.
58952         Based on Ulrich Drepper's 2007-08-10 change in glibc.
58953         * lib/stdlib.in.h (mksotemp): New declaration.
58954         * lib/mkostemp.c: New file, from glibc with modifications.
58955         * lib/tempname.h (GT_FILE): Remove outdated comment.
58956         (gen_tempname): Add flags argument.
58957         * lib/tempname.c (__GT_BIGFILE): Remove macro.
58958         (__GT_FILE): Map to 1.
58959         (small_open, large_open): Remove macros.
58960         (__gen_tempname): Add flags argument. Remove code for __GT_BIGFILE.
58961         * lib/mkstemp.c (mkstemp): Update.
58962         * lib/mkdtemp.c (mkdtemp): Likewise.
58963         * m4/mkostemp.m4: New file.
58964         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_MKOSTEMP,
58965         HAVE_MKOSTEMP.
58966         * modules/stdlib (Makefile.am): Substitute GNULIB_MKOSTEMP,
58967         HAVE_MKOSTEMP.
58968         * modules/mkostemp: New file, based on modules/mkstemp.
58969         * doc/glibc-functions/mkostemp.texi: Mention the new module.
58970         * NEWS: Mention the change.
58972 2009-08-23  Bruno Haible  <bruno@clisp.org>
58974         * lib/pipe2.c (pipe2): Support O_TEXT, O_BINARY on all platforms.
58975         Reported by Eric Blake.
58977 2009-08-23  Bruno Haible  <bruno@clisp.org>
58979         * lib/pipe2.c (pipe2): Fix test of fcntl's return value.
58980         Reported by Eric Blake.
58982 2009-08-23  Bruno Haible  <bruno@clisp.org>
58984         * modules/fchdir (Depends-on): Use fcntl-h instead of fcntl.
58985         * modules/pipe2 (Depends-on): Likewise.
58987 2009-08-23  Eric Blake  <ebb9@byu.net>
58989         fcntl-h: add O_TTY_INIT support
58990         * lib/fcntl.in.h (O_TTY_INIT): Support another POSIX macro.
58991         * tests/test-fcntl-h.c (o): Test it.
58992         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
58994         fcntl-h: rename from fcntl, in preparation for fcntl(2)
58995         * modules/fcntl: Move <fcntl.h> header replacement...
58996         * modules/fcntl-h: ...to new name, so as not to collide with
58997         like-named function.
58998         * tests/test-fcntl.c: Rename...
58999         * tests/test-fcntl-h.c: ...to this.  Test FD_CLOEXEC.
59000         * modules/fcntl-tests: Rename...
59001         * modules/fcntl-h-tests: ...to this.  Update test file name.
59002         * modules/chdir-long (Depends-on): Update clients.
59003         * modules/chdir-safer (Depends-on): Likewise.
59004         * modules/fcntl-safer (Depends-on): Likewise.
59005         * modules/fts (Depends-on): Likewise.
59006         * modules/mkancesdirs (Depends-on): Likewise.
59007         * modules/mkdir-p (Depends-on): Likewise.
59008         * modules/open (Depends-on): Likewise.
59009         * modules/savewd (Depends-on): Likewise.
59010         * MODULES.html.sh (systems lacking POSIX:2008): Update name.
59011         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
59013 2009-08-22  Bruno Haible  <bruno@clisp.org>
59015         * modules/binary-io (License): Relicense under LGPL.
59016         * modules/pipe2 (License): Likewise.
59018 2009-08-22  Bruno Haible  <bruno@clisp.org>
59020         * lib/pipe-filter-ii.c (pipe_filter_ii_execute): Fix test of fcntl's
59021         return value.
59022         * lib/pipe-filter-gi.c (filter_init): Likewise.
59023         Reported by Eric Blake.
59025 2009-08-22  Bruno Haible  <bruno@clisp.org>
59027         * lib/pipe.c (create_pipe): Use pipe2 instead of _pipe.
59028         * modules/pipe (Depends-on): Add pipe2.
59030 2009-08-22  Bruno Haible  <bruno@clisp.org>
59032         Tests for module 'pipe2'.
59033         * modules/pipe2-tests: New file.
59034         * tests/test-pipe2.c: New file.
59036         New module 'pipe2'.
59037         * lib/unistd.in.h (pipe2): New declaration.
59038         * lib/pipe2.c: New file.
59039         * m4/pipe2.m4: New file.
59040         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_PIPE2 and
59041         HAVE_PIPE2.
59042         * modules/unistd (Makefile.am): Substitute GNULIB_PIPE2 and HAVE_PIPE2.
59043         * modules/pipe2: New file.
59044         * doc/glibc-functions/pipe2.texi: Mention the new module.
59046 2009-08-22  Bruno Haible  <bruno@clisp.org>
59048         Reference some new glibc functions.
59049         * doc/glibc-functions/accept4.texi: New file.
59050         * doc/glibc-functions/dup3.texi: New file.
59051         * doc/glibc-functions/mkostemp.texi: New file.
59052         * doc/glibc-functions/pipe2.texi: New file.
59053         * doc/gnulib.texi (Glibc stdlib.h): Refer to mkostemp.
59054         (Glibc sys/socket.h): Refer to accept4.
59055         (Glibc unistd.h): Refer to dup3, pipe2.
59056         Reported by Eric Blake.
59058 2009-08-22  Jim Meyering  <meyering@redhat.com>
59059             Bruno Haible  <bruno@clisp.org>
59061         annotate automake snippets with $(AM_V_GEN) and $(AM_V_at)
59062         This makes it so packages using automake-1.11's silent-rules option
59063         can print e.g., a single "GEN    configmake.h" line, rather than
59064         the 30+ statements that perform the job.  If you want to see the
59065         actual commands, you can still run "make V=1".
59066         * modules/alloca-opt: Add $(AM_V_GEN) and $(AM_V_at) prefixes
59067         so that make output is abbreviated when those variables are defined
59068         appropriately.
59069         * modules/argz: Likewise.
59070         * modules/arpa_inet: Likewise.
59071         * modules/byteswap: Likewise.
59072         * modules/configmake: Likewise.
59073         * modules/dirent: Likewise.
59074         * modules/errno: Likewise.
59075         * modules/fcntl: Likewise.
59076         * modules/float: Likewise.
59077         * modules/fnmatch: Likewise.
59078         * modules/getopt-posix: Likewise.
59079         * modules/glob: Likewise.
59080         * modules/iconv_open: Likewise.
59081         * modules/inttypes: Likewise.
59082         * modules/localcharset: Likewise.
59083         * modules/locale: Likewise.
59084         * modules/math: Likewise.
59085         * modules/netdb: Likewise.
59086         * modules/netinet_in: Likewise.
59087         * modules/poll: Likewise.
59088         * modules/posix_spawnp-tests: Likewise.
59089         * modules/sched: Likewise.
59090         * modules/search: Likewise.
59091         * modules/selinux-h: Likewise.
59092         * modules/signal: Likewise.
59093         * modules/spawn: Likewise.
59094         * modules/stdarg: Likewise.
59095         * modules/stdbool: Likewise.
59096         * modules/stddef: Likewise.
59097         * modules/stdint: Likewise.
59098         * modules/stdio: Likewise.
59099         * modules/stdlib: Likewise.
59100         * modules/string: Likewise.
59101         * modules/strings: Likewise.
59102         * modules/sys_file: Likewise.
59103         * modules/sys_ioctl: Likewise.
59104         * modules/sys_select: Likewise.
59105         * modules/sys_socket: Likewise.
59106         * modules/sys_stat: Likewise.
59107         * modules/sys_time: Likewise.
59108         * modules/sys_times: Likewise.
59109         * modules/sys_utsname: Likewise.
59110         * modules/sys_wait: Likewise.
59111         * modules/sysexits: Likewise.
59112         * modules/time: Likewise.
59113         * modules/unistd: Likewise.
59114         * modules/wchar: Likewise.
59115         * modules/wctype: Likewise.
59117 2009-08-22  Jim Meyering  <meyering@redhat.com>
59119         announce-gen: detect write failure
59120         * build-aux/announce-gen: Add Coda at end.
59121         Remove equivalent-but-more-verbose block at top.
59123 2009-08-19  Akim Demaille  <demaille@gostai.com>
59125         bootstrap: --help to stdout.
59126         * bootstrap (usage): Don't send --help to stderr.
59127         Use a here doc instead of a long string.
59129 2009-08-21  Eric Blake  <ebb9@byu.net>
59131         test-popen-safer: split from test-popen
59132         * tests/test-popen.c (main): Move...
59133         * tests/test-popen.h: ...into new file.
59134         * tests/test-popen-safer2.c: New file.
59135         * modules/popen-tests (Files): Add test-popen.h.
59136         * modules/popen-safer-tests (Files): Add test-popen-safer2.c.
59137         Suggested by Bruno Haible.
59139         test-fcntl-safer: split from test-open
59140         * tests/test-open.c (main): Move...
59141         * tests/test-open.h: ...into new file.
59142         * tests/test-fcntl-safer.c: New file.
59143         * modules/open-tests (Files): Add test-open.h.
59144         * modules/fcntl-safer-tests: New file.
59145         Suggested by Bruno Haible.
59147         test-fopen-safer: split from test-fopen
59148         * tests/test-fopen.c (main): Move...
59149         * tests/test-fopen.h: ...into new file.
59150         * tests/test-fopen-safer.c: New file.
59151         * modules/fopen-tests (Files): Add test-fopen.h.
59152         * modules/fopen-safer-tests: New file.
59153         Suggested by Bruno Haible.
59155 2009-08-21  Paolo Bonzini  <bonzini@gnu.org>
59157         popen-safer: test O_CLOEXEC at run-time.
59158         * lib/popen-safer.c: Test O_CLOEXEC at run-time.
59160 2009-08-21  Paolo Bonzini  <bonzini@gnu.org>
59162         fcntl: move more flags to the header
59163         * lib/cloexec.c: Do not define FD_CLOEXEC here.
59164         * lib/popen-safer.c: Do not alias O_NOINHERIT to O_CLOEXEC here.
59165         * lib/fcntl.in.h: Do both things here.
59167 2009-08-21  Jim Meyering  <meyering@redhat.com>
59169         consistently remove $@-t before redirecting to it
59170         * modules/argz: Remove $@-t and $@ before redirecting to the former.
59171         * modules/alloca-opt: Likewise.
59172         * modules/byteswap: Likewise.
59173         * modules/fnmatch: Likewise.
59174         * modules/getopt-posix: Likewise.
59175         * modules/glob: Likewise.
59176         * modules/poll: Likewise.
59177         * modules/posix_spawnp-tests: Likewise.
59178         * modules/sys_socket: Likewise.
59179         * modules/sysexits: Likewise.
59181 2009-08-21  Eric Blake  <ebb9@byu.net>
59183         popen: simplify access to original popen
59184         * lib/popen.c (rpl_popen): No need to worry about popen being a
59185         macro.
59186         Reported by Bruno Haible.
59188 2009-08-20  Eric Blake  <ebb9@byu.net>
59190         build: avoid some compiler warnings
59191         * lib/selinux-at.h: Use dir_fd, not dirfd, to avoid shadowing.
59192         * lib/exclude.c (fnmatch_pattern_has_wildcards): Use correct
59193         type.
59194         (new_exclude_segment, excluded_file_pattern_p)
59195         (excluded_file_name_p): Reduce scope.
59196         * lib/vasnprintf.c (decimal_point_char): Avoid warning on
59197         old-style declaration.
59199 2009-08-20  Simon Josefsson  <simon@josefsson.org>
59201         * tests/test-exclude1.sh: Handle Windows EOL.
59202         * tests/test-exclude2.sh: Likewise.
59203         * tests/test-exclude3.sh: Likewise.
59204         * tests/test-exclude4.sh: Likewise.
59205         * tests/test-exclude5.sh: Likewise.
59206         * tests/test-exclude6.sh: Likewise.
59207         * tests/test-exclude7.sh: Likewise.
59209 2009-08-19  Akim Demaille  <demaille@gostai.com>
59211         bootstrap: find sha1sum when named gsha1sum.
59212         * bootstrap (find_tool): New.
59213         ($SHA1SUM): New.
59214         Use it.
59216 2009-08-20  Jim Meyering  <meyering@redhat.com>
59218         maint.mk: _header_without_use: fix a quoting bug and remove a bash'ism
59219         * top/maint.mk (_header_without_use): Use "\\\\", not "\\" in the sed
59220         expression that converts "." in a file name to "\." in the resulting
59221         regexp.  Start with a dummy statement, so that prior shell variable
59222         definitions are expanded portably.  Reported by Simon Josefsson.
59224 2009-08-20  Paolo Bonzini  <bonzini@gnu.org>
59226         Fix polling for writeability of a screen buffer.
59227         * lib/poll.c: Distinguish input and screen buffers for the
59228         Win32 implementation.
59229         * lib/select.c: Likewise.
59231 2009-08-19  Eric Blake  <ebb9@byu.net>
59233         popen-safer: prevent popen from clobbering std descriptors
59234         * modules/popen-safer: New file.
59235         * lib/popen-safer.c: Likewise.
59236         * m4/stdio-safer.m4 (gl_POPEN_SAFER): New macro.
59237         * lib/stdio--.h (popen): Provide override.
59238         * lib/stdio-safer.h (popen_safer): Provide declaration.
59239         * tests/test-popen.c (includes): Partially test this.
59240         * modules/popen-safer-tests: New file, for more tests.
59241         * tests/test-popen-safer.c: Likewise.
59242         * MODULES.html.sh (file stream based Input/Output): Mention it.
59244         tests: test some of the *-safer modules
59245         * modules/fopen-safer (Depends-on): Add fopen.
59246         * modules/fcntl-safer (Depends-on): Add fcntl.
59247         * modules/stdlib-safer (Depends-on): Add stdlib.
59248         (configure.ac): Set indicator.
59249         * modules/unistd-safer (configure.ac): Likewise.
59250         * modules/tmpfile-safer (configure.ac): Likewise.
59251         (Depends-on): Add tmpfile.
59252         * lib/stdio--.h (fopen, tmpfile): Don't override unless module is
59253         active.
59254         * tests/test-fopen.c (includes): Test safer versions when they are
59255         in use.
59256         * tests/test-open.c (includes): Likewise.
59258         popen: fix cygwin 1.5 bug when stdin closed
59259         * doc/posix-functions/popen.texi (popen): Document cygwin bugs.
59260         * modules/popen: New file.
59261         * modules/popen-tests: Likewise.
59262         * tests/test-popen.c: Likewise.
59263         * m4/popen.m4: Likewise.
59264         * lib/popen.c: Likewise.
59265         * lib/stdio.in.h (popen): New declaration.
59266         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add popen.
59267         * modules/stdio (Makefile.am): Likewise.
59268         * MODULES.html.sh (systems lacking POSIX:2008): Mention it.
59270 2009-08-17  Joel E. Denny  <jdenny@clemson.edu>
59272         maint.mk: give full control over update-copyright exclusions
59273         * top/maint.mk (VC_LIST_EXCEPT): Instead of ChangeLog, use
59274         ${VC_LIST_EXCEPT_DEFAULT-ChangeLog} as the default exclusion.
59275         (update-copyright): Don't force inclusion of top-level
59276         ChangeLog.  Don't force exclusion of all COPYING files, but make
59277         them the default exclusion instead.
59279 2009-08-16  Bruno Haible  <bruno@clisp.org>
59281         Fix test failures on Solaris 10.
59282         * tests/uniconv/test-u8-conv-from-enc.c (main): Disable autodetect_jp
59283         tests when Solaris iconv() is used.
59284         * tests/uniconv/test-u16-conv-from-enc.c (main): Likewise.
59285         * tests/uniconv/test-u32-conv-from-enc.c (main): Likewise.
59286         * tests/uniconv/test-u8-strconv-from-enc.c (main): Likewise.
59287         * tests/uniconv/test-u16-strconv-from-enc.c (main): Likewise.
59288         * tests/uniconv/test-u32-strconv-from-enc.c (main): Likewise.
59290 2009-08-16  Bruno Haible  <bruno@clisp.org>
59292         Fix test failures on Solaris 10.
59293         * tests/test-pipe-filter-ii1.sh: Determine the filename of a working
59294         'tr' program and pass it as first argument.
59295         * tests/test-pipe-filter-gi1.sh: Likewise.
59296         * tests/test-pipe-filter-ii1.c (main): Except the filename of a 'tr'
59297         program as first argument.
59298         * tests/test-pipe-filter-gi1.c (main): Likewise.
59300 2009-08-16  Eric Blake  <ebb9@byu.net>
59302         fpurge: fix previous commits
59303         * modules/fpurge (Makefile.am): Make replacement conditional,
59304         partially reverting 2007-04-29 change; missed in previous
59305         attempt.
59306         * m4/fpurge.m4 (gl_FUNC_FPURGE): Also compile fpurge.c when fpurge
59307         is missing.
59309 2009-08-16  Bruno Haible  <bruno@clisp.org>
59311         Clarify fpurge's effect on the file position.
59312         * lib/stdio.in.h (fpurge): Specify the file position after fpurge.
59313         * tests/test-fpurge.c (main): Make a second pass for checking the file
59314         position.
59316 2009-08-16  Bruno Haible  <bruno@clisp.org>
59318         * m4/fpurge.m4 (gl_FUNC_FPURGE): Don't compile fpurge.c if only the
59319         declaration of fpurge is missing.
59320         * tests/test-fpurge.c (main): Check that the file has not more contents
59321         than expected. Close the file before removing it.
59323 2009-08-15  Eric Blake  <ebb9@byu.net>
59325         fpurge: don't wrap working cygwin implementation
59326         * lib/fpurge.c (fpurge): Fix comment typo.
59327         * m4/fpurge.m4 (gl_FUNC_FPURGE): Detect BSD bug, allowing cygwin
59328         1.7 to avoid replacement.
59329         * tests/test-fpurge.c (main): Enhance test.
59331 2009-08-15  Eric Blake  <ebb9@byu.net>
59332         and Jim Meyering  <meyering@redhat.com>
59334         test-update-copyright: skip if perl is insufficient
59335         * tests/test-update-copyright.sh: Failure to run maintainer tool
59336         should not cause testsuite failure on cygwin 1.5.
59338 2009-08-14  Eric Blake  <ebb9@byu.net>
59340         doc: mention more functions added in cygwin 1.7.0
59341         * doc/posix-headers/limits.texi (limits.h): Update for recent
59342         cygwin additions.
59343         * doc/posix-headers/wordexp.texi (wordexp.h): Likewise.
59344         * doc/posix-functions/wordexp.texi (wordexp): Likewise.
59345         * doc/posix-functions/wordfree.texi (wordfree): Likewise.
59346         * doc/posix-functions/setlocale.texi (setlocale): Likewise.
59347         * doc/posix-functions/nl_langinfo.texi (nl_langinfo): Likewise.
59349 2009-08-14  Eric Blake  <ebb9@byu.net>
59351         maint.mk: simplify update-copyright rule
59352         * top/maint.mk (update-copyright-local): Delete, and document how
59353         to do it in cfg.mk instead.
59354         (update-copyright-exclude-regexp): Delete, and document how to do
59355         it in .x-update-copyright instead.
59356         (update-copyright): Simplify, thanks to VC_LIST_EXCEPT.  Don't
59357         exclude ChangeLog.
59359 2009-08-14  Bruno Haible  <bruno@clisp.org>
59361         * m4/wchar.m4 (gl_WCHAR_H): Undo invalid optimization in last commit.
59363 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
59365         maint.mk: support update-copyright-env
59366         * top/maint.mk (update-copyright-env): Define place-holder.
59367         (update-copyright): Expand $(update-copyright-env) before
59368         invoking update-copyright.
59370 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
59372         update-copyright: implement forced reformatting
59373         * build-aux/update-copyright: Implement and document
59374         UPDATE_COPYRIGHT_FORCE.
59375         * tests/test-update-copyright.sh: Test it.
59377 2009-08-14  Eric Blake  <ebb9@byu.net>
59378         and Bruno Haible  <bruno@clisp.org>
59380         stddef: fix NetBSD 5.0 NULL bug, rather than working around it
59381         * tests/test-locale.c: Revert previous patch related to NULL.
59382         * tests/test-stdio.c: Likewise.
59383         * tests/test-stdlib.c: Likewise.
59384         * tests/test-string.c: Likewise.
59385         * tests/test-unistd.c: Likewise.
59386         * modules/time-tests (Depends-on): Add verify.
59387         * modules/wchar-tests (Depends-on): Likewise.
59388         * tests/test-time.c: Test for NULL compliance.
59389         * tests/test-wchar.c: Likewise.
59390         * modules/locale (Depends-on): Add stddef.
59391         * modules/stdio (Depends-on): Likewise.
59392         * modules/stdlib (Depends-on): Likewise.
59393         * modules/string (Depends-on): Likewise.
59394         * modules/time (Depends-on): Likewise.
59395         * modules/unistd (Depends-on): Likewise.
59396         * modules/wchar (Depends-on): Likewise.
59397         * lib/locale.in.h (includes): Use <stddef.h> to fix NULL.
59398         * lib/stdlib.in.h (includes): Likewise.
59399         * lib/string.in.h (includes): Likewise.
59400         * lib/time.in.h (includes): Likewise.
59401         * lib/unistd.in.h (includes): Likewise.
59402         * m4/locale_h.m4 (gl_LOCALE_H): Replace locale.h if stddef.h was
59403         replaced.
59404         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
59405         * m4/stddef_h.m4: New file.
59406         * modules/stddef: Likewise.
59407         * lib/stddef.in.h: Likewise.
59408         * modules/stddef-tests: Likewise.
59409         * tests/test-stddef.c: Likewise.
59410         * MODULES.html.sh (Basic types <stddef.h>): Mention new module.
59411         * doc/posix-headers/stddef.texi (stddef.h): Document the bug.
59412         * doc/posix-headers/locale.texi (locale.h): Likewise.
59413         * doc/posix-headers/stdio.texi (stdio.h): Likewise.
59414         * doc/posix-headers/stdlib.texi (stdlib.h): Likewise.
59415         * doc/posix-headers/string.texi (string.h): Likewise.
59416         * doc/posix-headers/time.texi (time.h): Likewise.
59417         * doc/posix-headers/unistd.texi (unistd.h): Likewise.
59418         * doc/posix-headers/wchar.texi (wchar.h): Likewise.
59420 2009-08-14  Eric Blake  <ebb9@byu.net>
59422         doc: improve git diff of texinfo files
59423         * .gitattributes: Add rule for *.texi files, with hint on how to
59424         use it.
59425         Copied from m4, and based on a report by Bruno Haible.
59427 2009-08-14  Bruno Haible  <bruno@clisp.org>
59429         Disable multithread support by default on Cygwin 1.5.x for real.
59430         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): Fix last commit.
59432 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
59434         update-copyright: much ado about intervals
59435         * build-aux/update-copyright: Implement and document
59436         UPDATE_COPYRIGHT_USE_INTERVALS to control expansion and collapse
59437         of copyright year intervals.
59438         Also, document UPDATE_COPYRIGHT_YEAR.
59439         * tests/test-update-copyright.sh: Test it.
59441         update-copyright: convert 2-digit to 4-digit years
59442         * build-aux/update-copyright: Implement and document.
59443         * tests/test-update-copyright.sh: Update.
59445 2009-08-14  Jim Meyering  <meyering@redhat.com>
59447         test-exclude: avoid coreutils "make check" failure
59448         * tests/test-exclude.c (ARGMATCH_DIE_DECL) [ARGMATCH_DIE_DECL]: Define,
59449         just as in test-argmatch.c.
59451 2009-08-13  Eric Blake  <ebb9@byu.net>
59453         test-dup2: fix bad assumption
59454         * tests/test-dup2.c (main): Tolerate leaked fds from environment.
59455         Reported by Peter Breitenlohner <peb@mppmu.mpg.de>.
59457         test-version-etc: fix CRLF portability issue
59458         * tests/test-version-etc.sh: Use tr, not sed, as not all sed
59459         recognize \r.
59460         * tests/test-argp-version-etc-1.sh: Likewise.
59462         getopt: update client modules
59463         * modules/argp (Depends-on): Use getopt-gnu.
59464         * modules/git-merge-changelog (Depends-on): Likewise.
59465         * modules/long-options (Depends-on): Likewise.
59466         * modules/xstrtol (Depends-on): Likewise.
59468 2009-08-13  Simon Josefsson  <simon@josefsson.org>
59470         * tests/test-version-etc.sh: Don't fail on different
59471         project/version.  Don't fail on CRLF differences.  Rewrite to use
59472         multiple -e instead of multiple sed forks, suggested by Eric Blake
59473         <ebb9@byu.net>.
59474         * tests/test-argp-version-etc-1.sh: Likewise.
59476 2009-08-13  Simon Josefsson  <simon@josefsson.org>
59478         * tests/test-version-etc.sh: Don't fail on different
59479         project/version.
59481 2009-08-12  Bruno Haible  <bruno@clisp.org>
59483         Tests for modules 'getopt-posix', 'getopt-gnu'.
59484         * modules/getopt-posix-tests: New file.
59485         * tests/test-getopt.c: New file.
59486         * tests/test-getopt.h: New file.
59487         * tests/test-getopt_long.h: New file.
59489         New modules 'getopt-posix', 'getopt-gnu'.
59490         * modules/getopt-gnu: New file, renamed from modules/getopt.
59491         * modules/getopt-posix: New file.
59492         * modules/getopt: Turn into an obsolete alias for getopt-gnu.
59493         * m4/getopt.m4 (gl_FUNC_GETOPT_POSIX, gl_FUNC_GETOPT_GNU): New macros.
59494         (gl_GETOPT): Remove macro.
59495         (gl_GETOPT_CHECK_HEADERS): Do some checks only for gl_FUNC_GETOPT_GNU.
59496         Disable the test against BSD systems that declare optreset. Test
59497         against mingw bug. Test against lack of support of optional arguments
59498         on many platforms.
59499         * doc/glibc-headers/getopt.texi: Update module name and list of
59500         relevant platforms.
59501         * doc/posix-functions/getopt.texi: Mention modules 'getopt-posix' and
59502         'getopt-gnu' and more portability problems.
59503         * NEWS: Mention the changes.
59505 2009-08-12  Bruno Haible  <bruno@clisp.org>
59507         Ensure that optarg etc. get declared by <unistd.h>.
59508         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Require
59509         AC_USE_SYSTEM_EXTENSIONS.
59510         * modules/getopt (Depends-on): Add 'extensions'.
59512 2009-08-12  Bruno Haible  <bruno@clisp.org>
59514         Avoid test link errors.
59515         * modules/pipe-filter-ii-tests (Makefile.am): Define
59516         test_pipe_filter_ii1_LDADD and test_pipe_filter_ii2_main_LDADD.
59517         * modules/pipe-filter-gi-tests (Makefile.am): Define
59518         test_pipe_filter_gi1_LDADD and test_pipe_filter_gi2_main_LDADD.
59519         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
59521 2009-08-12  Bruno Haible  <bruno@clisp.org>
59523         * m4/getopt.m4 (gl_REPLACE_GETOPT): New macro, was called
59524         gl_GETOPT_SUBSTITUTE before.
59525         (gl_GETOPT): Use it.
59526         * m4/argp.m4 (gl_ARGP): Update.
59527         Reported by Sergey Poznyakoff.
59529         * m4/getopt.m4: Reorder macros.
59530         (gl_GETOPT): Inline gl_GETOPT_SUBSTITUTE.
59531         (gl_GETOPT_SUBSTITUTE): Remove macro.
59533 2009-08-12  Sergey Poznyakoff  <gray@gnu.org.ua>
59535         Minor improvement in gitlog-to-changelog
59537         * build-aux/gitlog-to-changelog: New option `--format' makes
59538         output format string configurable.
59540 2009-08-12  Sergey Poznyakoff  <gray@gnu.org.ua>
59542         Optimize exclude: use hash tables for non-wildcard patterns.
59544         * lib/exclude.c: Include hash.h and mbuiter.h
59545         (struct exclude_pattern, exclude_segment): New data types.
59546         (struct exclude): Rewrite.
59547         (fnmatch_pattern_has_wildcards): New function.
59548         (new_exclude_segment, free_exclude_segment): New functions.
59549         (excluded_file_pattern_p, excluded_file_name_p): New functions.
59550         (excluded_file_name, add_exclude): Rewrite using new struct exclude.
59551         * lib/exclude.h (is_fnmatch_pattern): New prototype.
59552         * modules/exclude: Depend on hash and mbuiter.
59554         * modules/exclude-tests: New file.
59555         * tests/test-exclude.c: New file.
59556         * tests/test-exclude1.sh: New file.
59557         * tests/test-exclude2.sh: New file.
59558         * tests/test-exclude3.sh: New file.
59559         * tests/test-exclude4.sh: New file.
59560         * tests/test-exclude5.sh: New file.
59561         * tests/test-exclude6.sh: New file.
59562         * tests/test-exclude7.sh: New file.
59564 2009-08-12  Bruno Haible  <bruno@clisp.org>
59566         Ensure that getopt() gets declared by <unistd.h>.
59567         * lib/unistd.in.h: Conditionally include getopt.h.
59568         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): Require gl_UNISTD_H_DEFAULTS.
59569         Set GNULIB_UNISTD_H_GETOPT.
59570         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
59571         GNULIB_UNISTD_H_GETOPT.
59572         * modules/unistd (Makefile.am): Substitute GNULIB_UNISTD_H_GETOPT.
59574 2009-08-12  Bruno Haible  <bruno@clisp.org>
59576         Clarify logic.
59577         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS, gl_GETOPT_IFELSE): Use
59578         gl_replace_getopt instead of GETOPT_H.
59580 2009-08-12  Bruno Haible  <bruno@clisp.org>
59582         * m4/getopt.m4: Add comments.
59584 2009-08-12  Bruno Haible  <bruno@clisp.org>
59586         Disable multithread support by default on Cygwin 1.5.x.
59587         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): On Cygwin 1.5.x and older,
59588         set gl_use_threads=no if not specified otherwise.
59590 2009-08-11  Bruno Haible  <bruno@clisp.org>
59592         Avoid compilation error on NetBSD 5.0.
59593         * tests/test-locale.c: Write sizeof (NULL) instead of sizeof NULL.
59594         * tests/test-stdio.c: Likewise.
59595         * tests/test-stdlib.c: Likewise.
59596         * tests/test-string.c: Likewise.
59597         * tests/test-unistd.c: Likewise.
59598         Reported by Greg Troxel <gdt@ir.bbn.com>
59599         at <https://savannah.gnu.org/support/?106973>.
59601 2009-08-11  Bruno Haible  <bruno@clisp.org>
59603         * modules/dup2-tests (Depends-on): Remove close.
59605         Undo 2009-07-19 commit.
59606         * modules/acl-tests (Depends-on): Remove close.
59607         * modules/binary-io-tests (Depends-on): Likewise.
59608         * modules/closein-tests (Depends-on): Likewise.
59609         * modules/flock-tests (Depends-on): Likewise.
59610         * modules/fsync-tests (Depends-on): Likewise.
59611         * modules/lseek-tests (Depends-on): Likewise.
59612         * modules/pipe-tests (Depends-on): Likewise.
59613         * modules/posix_spawn-tests (Depends-on): Likewise.
59614         * modules/posix_spawnp-tests (Depends-on): Likewise.
59615         * modules/stat-time-tests (Depends-on): Likewise.
59616         * modules/yesno-tests (Depends-on): Likewise.
59618 2009-08-10  Bruno Haible  <bruno@clisp.org>
59620         * lib/vasnprintf.c (DCHAR_SET): Undefine at the end.
59622 2009-08-10  Bruno Haible  <bruno@clisp.org>
59624         Fix a gcc warning.
59625         * lib/write.c (rpl_write): Cast result of _get_osfhandle.
59627 2009-08-10  Bruno Haible  <bruno@clisp.org>
59629         Don't optimize AC_LIBOBJs, as they may appear in different contexts.
59630         * m4/close.m4 (gl_REPLACE_CLOSE): Execute AC_LIBOBJ unconditionally,
59631         not only the first time.
59632         * m4/fclose.m4 (gl_REPLACE_FCLOSE): Likewise.
59633         * m4/open.m4 (gl_REPLACE_OPEN): Likewise.
59634         * m4/strstr.m4 (gl_FUNC_STRSTR): Execute AC_LIBOBJ when REPLACE_STRSTR
59635         is 1, not only the first time.
59637 2009-08-10  Bruno Haible  <bruno@clisp.org>
59639         Make it possible to use module 'gethostname' without module 'close'.
59640         * lib/unistd.in.h (close): Evoke a link error only if
59641         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS is set.
59642         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
59643         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
59644         * modules/unistd (Makefile.am): Substitute
59645         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
59646         * lib/sys_ioctl.in.h (ioctl): Evoke a link error only if
59647         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS is set.
59648         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H_DEFAULTS): Initialize
59649         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
59650         * modules/sys_ioctl (Makefile.am): Substitute
59651         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
59652         * modules/socket (configure.ac): On native Windows, set
59653         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS and
59654         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
59655         Reported by Sam Steingold <sds@gnu.org>.
59657 2009-08-10  Bruno Haible  <bruno@clisp.org>
59659         * m4/close.m4 (gl_FUNC_CLOSE): Add comment.
59660         * modules/ioctl (configure.ac): Likewise.
59662 2009-08-10  Bruno Haible  <bruno@clisp.org>
59664         Avoid collision between gnulib wrapper and libintl wrapper.
59665         * lib/stdio-write.c (printf): Don't define if a printf wrapper is
59666         already defined in intl/printf.c.
59667         (vprintf): Test REPLACE_VPRINTF_POSIX, not REPLACE_VFPRINTF_POSIX.
59668         (vfprintf): Test REPLACE_VFPRINTF_POSIX, not REPLACE_VPRINTF_POSIX.
59670 2009-08-09  Bruno Haible  <bruno@clisp.org>
59672         Make <sys/select.h> really self-contained, also on Solaris 10.
59673         * lib/sys_select.in.h: Include <string.h>.
59674         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Test also against
59675         Solaris 10 problem.
59676         * tests/test-sys_select.c (main): Add check that FD_ZERO can be used.
59677         * doc/posix-headers/sys_select.texi: Mention the Solaris 10 problem.
59678         Reported by Jim Meyering.
59680 2009-08-09  Bruno Haible  <bruno@clisp.org>
59682         Avoid warnings from 'aclocal' that are due to a use of macro name
59683         AM_XGETTEXT_OPTION that is not defined in automake.
59684         * modules/argp (configure.ac): Hide use of AM_XGETTEXT_OPTION from
59685         automake.
59686         * modules/error (configure.ac): Likewise.
59687         * modules/propername (configure.ac): Likewise.
59688         * modules/vasprintf (configure.ac): Likewise.
59689         * modules/verror (configure.ac): Likewise.
59690         * modules/xprintf (configure.ac): Likewise.
59691         * modules/xvasprintf (configure.ac): Likewise.
59693 2009-08-08  Bruno Haible  <bruno@clisp.org>
59695         Avoid compilation error in C++ mode.
59696         * lib/gettimeofday.c (rpl_gettimeofday): Cast timezone argument.
59697         Reported by Sam Steingold <sds@gnu.org>.
59699 2009-08-08  Bruno Haible  <bruno@clisp.org>
59701         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Define HOST_NAME_MAX also
59702         for the various Unix platforms.
59703         * doc/posix-headers/limits.texi: Update platforms list regarding
59704         HOST_NAME_MAX.
59705         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
59707 2009-08-07  Jim Meyering  <meyering@redhat.com>
59709         selinux-at: fix typo in a comment
59710         * lib/selinux-at.h: s/getfileconat/getfilecon/ in a comment.
59711         Spotted by Paolo Bonzini.
59713         selinux-at: remove redundant m4 code, add documentation
59714         * modules/selinux-at (configure.ac): Remove redundant code.
59715         LIB_SELINUX is already set via the dependent module, selinux-h.
59716         (Include): Add quotes around selinux-at.h.
59717         * lib/selinux-at.h: Add documentation.
59718         Reported by Bruno Haible in
59719         http://marc.info/?l=gnulib-bug&m=124958988300749
59721 2009-08-07  Bruno Haible  <bruno@clisp.org>
59723         Avoid link error on MacOS X 10.3 and 10.4.
59724         * lib/argp-ba.c (argp_program_bug_address): Explicitly zero-initialize
59725         on non-ELF systems.
59726         * lib/argp-pv.c (argp_program_version): Likewise.
59727         Reported by Simon Josefsson.
59729 2009-08-07  Simon Josefsson  <simon@josefsson.org>
59731         * tests/test-version-etc.sh: Use $EXEEXT.
59733 2009-08-06  Joel E. Denny  <jdenny@clemson.edu>
59735         update-copyright: update documentation to point to maint.mk
59736         * build-aux/update-copyright: Here.
59738 2009-08-06  Jim Meyering  <meyering@redhat.com>
59740         maint.mk: support update-copyright-local
59741         * top/maint.mk (update-copyright-local): Define place-holder.
59742         (update-copyright): Depend on $(update-copyright-local).
59744 2009-08-06  Jim Meyering  <meyering@redhat.com>
59746         selinux-at: new module
59747         Initially written for coreutils, this module will soon be
59748         used by findutils, too.
59749         * MODULES.html.sh [Misc]: Add selinux-at.
59750         * lib/selinux-at.h: New file, from coreutils.
59751         * lib/selinux-at.c: Likewise.
59752         * modules/selinux-at: Likewise.
59753         (License): Change from LGPL to GPL, since it depends
59754         on the GPL'd openat module.
59756         doc: update README
59757         * README: Remove references to cogito.
59758         Remove cvs-repo-updating instructions from 2007.
59759         Don't imply that CVS is better if you have limited disk space.
59761 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
59763         update-copyright: support C-style comments
59764         * build-aux/update-copyright: Implement and document.
59765         * tests/test-update-copyright.sh: Test.
59767 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
59769         update-copyright: support omitted "(C)"
59770         * build-aux/update-copyright: Implement and document.  Also,
59771         allow variable whitespace before "(C)".
59772         * tests/test-update-copyright.sh: Test.
59774 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
59776         update-copyright: don't trip on non-FSF copyright statements
59777         * build-aux/update-copyright: Fix so that the first correctly
59778         formatted FSF copyright statement is recognized no matter what
59779         appears before it.  Update documentation.
59780         * tests/test-update-copyright.sh: Test that.
59782 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
59784         update-copyright: clean up code a little
59785         * build-aux/update-copyright: Append "_re" to the name of any
59786         variable holding a regular expression.
59787         Replace "old" and "new" with "stmt" in variable names.
59788         Do not accept 2-digit UPDATE_COPYRIGHT_YEAR, which was not
59789         handled correctly.
59790         Format code more consistently.
59792 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
59794         update-copyright-tests: improve portability
59795         * tests/test-update-copyright.sh: Use cmp if diff cannot handle
59796         -u or /dev/null.  Suggested by Jim Meyering and Eric Blake.
59798 2009-08-03  Joel E. Denny  <jdenny@clemson.edu>
59800         update-copyright: support @copyright{} and &copy;
59801         * build-aux/update-copyright: Implement and document.
59802         * tests/test-update-copyright.sh: Test.
59804 2009-08-04  Jim Meyering  <meyering@redhat.com>
59806         update-copyright-tests: correctly test EOL=\r\n handling
59807         * tests/test-update-copyright.sh: Put \r at the end of some lines
59808         for the dos-eol tests.  Based on a patch by Joel E. Denny.
59810         maint.mk: make update-copyright exclusion list more configurable
59811         * top/maint.mk (update-copyright): Default to excluding COPYING,
59812         but allow an override, in case someone does want to update that file.
59814         maint.mk: don't update copyright date in COPYING
59815         * top/maint.mk (update-copyright): Exclude COPYING.
59817         maint.mk: add a copyright-updating rule
59818         * top/maint.mk (update-copyright): New rule.
59819         Derived from coreutils/Makefile.am.
59821         update-copyright: rename some variables
59822         * build-aux/update-copyright: Rename a few variables for clarity.
59823         Tweak syntax.  List Joel E. Denny as coauthor.
59825 2009-08-03  Joel E. Denny  <jdenny@clemson.edu>
59827         update-copyright: fix bug for 2-digit last year and add tests
59828         * build-aux/update-copyright: Fix bug.
59829         Use UPDATE_COPYRIGHT_YEAR from environment as current year if
59830         specified.
59831         * modules/update-copyright-tests: New
59832         * tests/test-update-copyright.sh: New.
59834 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
59836         update-copyright: handle leading tabs in line prefix
59837         * build-aux/update-copyright: Count leading tabs as 8 spaces
59838         when computing margin.  This helps with the formatting of
59839         ChangeLogs, for example.
59840         Fix documentation a little.
59842 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
59844         update-copyright: support EOL=\r\n
59845         * build-aux/update-copyright: Implement that.
59847 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
59849         update-copyright: automatically format copyright statements
59850         * build-aux/update-copyright: Implement that.
59851         Also, be a little more predictable and safer by always failing
59852         when the full copyright format is not perfectly recognized as an
59853         unbroken whole.  Discussed at
59854         <http://lists.gnu.org/archive/html/bug-gnulib/2009-07/msg00131.html>.
59855         Rewrite documentation.
59857 2009-08-03  Bruno Haible  <bruno@clisp.org>
59859         * m4/iconv.m4 (AM_ICONV): Fix displayed message with autoconf-2.64.
59861 2009-08-02  Bruno Haible  <bruno@clisp.org>
59863         Tests for module 'uname'.
59864         * modules/uname-tests: New file.
59865         * tests/test-uname.c: New file.
59867         New module 'uname'.
59868         * lib/uname.c: New file.
59869         * m4/uname.m4: New file.
59870         * modules/uname: New file.
59871         * doc/posix-functions/uname.texi: Mention the new module.
59873 2009-08-02  Bruno Haible  <bruno@clisp.org>
59875         Tests for module 'sys_utsname'.
59876         * modules/sys_utsname-tests: New file.
59877         * tests/test-sys_utsname.c: New file.
59879         New module 'sys_utsname'.
59880         * lib/sys_utsname.in.h: New file, based on glibc's <sys/utsname.h>.
59881         * m4/sys_utsname_h.m4: New file.
59882         * modules/sys_utsname: New file.
59883         * doc/posix-headers/sys_utsname.texi: Mention the new module.
59885 2009-08-02  Bruno Haible  <bruno@clisp.org>
59887         Implicitly initialize the sockets library.
59888         * lib/gethostname.c: Include sockets.h.
59889         (rpl_gethostname): Invoke gl_sockets_startup.
59890         * lib/socket.c: Include sockets.h.
59891         (rpl_socket): Invoke gl_sockets_startup.
59892         * modules/gethostname (Depends-on): Add sockets.
59893         * modules/socket (Depends-on): Likewise.
59894         * tests/test-poll.c: Don't include sockets.h.
59895         (main): Don't invoke gl_sockets_startup.
59896         * tests/test-select.c: Don't include sockets.h.
59897         (main): Don't invoke gl_sockets_startup.
59899 2009-08-02  Bruno Haible  <bruno@clisp.org>
59901         Allow multiple calls to gl_sockets_startup.
59902         * lib/sockets.c (initialized_sockets_version): New variable.
59903         (gl_sockets_startup): Do nothing if already called for this or a higher
59904         version.
59905         (gl_sockets_cleanup): Reset initialized_sockets_version.
59907 2009-08-03  Simon Josefsson  <simon@josefsson.org>
59909         * tests/test-argp-version-etc-1.sh: Use EXEEXT.  Don't fail on
59910         different project/version.
59912 2009-08-02  Paolo Bonzini  <bonzini@gnu.org>
59913             Bruno Haible  <bruno@clisp.org>
59915         Tests for module 'pipe-filter-gi'.
59916         * modules/pipe-filter-gi-tests: New file.
59917         * tests/test-pipe-filter-gi1.sh: New file.
59918         * tests/test-pipe-filter-gi1.c: New file.
59919         * tests/test-pipe-filter-gi2.sh: New file.
59920         * tests/test-pipe-filter-gi2-main.c: New file.
59921         * tests/test-pipe-filter-gi2-child.c: New file.
59923         New module 'pipe-filter-gi'.
59924         * lib/pipe-filter-gi.c: New file.
59925         * modules/pipe-filter-gi: New file.
59927 2009-08-02  Bruno Haible  <bruno@clisp.org>
59928             Paolo Bonzini  <bonzini@gnu.org>
59930         Tests for module 'pipe-filter-ii'.
59931         * modules/pipe-filter-ii-tests: New file.
59932         * tests/test-pipe-filter-ii1.sh: New file.
59933         * tests/test-pipe-filter-ii1.c: New file.
59934         * tests/test-pipe-filter-ii2.sh: New file.
59935         * tests/test-pipe-filter-ii2-main.c: New file.
59936         * tests/test-pipe-filter-ii2-child.c: New file.
59938         New module 'pipe-filter-ii'.
59939         * lib/pipe-filter.h: New file.
59940         * lib/pipe-filter-ii.c: New file.
59941         * lib/pipe-filter-aux.h: New file.
59942         * modules/pipe-filter-ii: New file.
59944 2009-08-02  Simon Josefsson  <simon@josefsson.org>
59946         * lib/gc-libgcrypt.c: Change copyright to FSF.
59947         * lib/gc-gnulib.c: Likewise.
59949 2009-08-02  Martin Lambers  <marlam@marlam.de>  (tiny change)
59951         * lib/gethostname.c: Include limits.h.
59953 2009-08-02  Simon Josefsson  <simon@josefsson.org>
59954             Bruno Haible  <bruno@clisp.org>
59956         Ensure HOST_NAME_MAX as part of the gethostname module.
59957         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): On native Windows platforms,
59958         define also HOST_NAME_MAX.
59959         * tests/test-gethostname.c: Include <limits.h>.
59960         (main): Check also HOST_NAME_MAX.
59961         * doc/posix-headers/limits.texi: Document the mingw problem.
59963 2009-08-02  Bruno Haible  <bruno@clisp.org>
59965         * lib/gethostname.c (gethostname): Fix handling of large len argument.
59966         Add comments.
59968 2009-03-31  Simon Josefsson  <simon@josefsson.org>
59970         * lib/gethostname.c: Add Windows wrapper.
59971         * m4/gethostname.m4: Look for gethostname in -lws2_32.
59972         * modules/gethostname: Depend on sys_socket & errno, for also
59973         added lib/w32sock.h.  Add GETHOSTNAME_LIB link directive.
59974         * modules/gethostname-tests: Link to @GETHOSTNAME_LIB@.
59976 2009-07-31  Jim Meyering  <meyering@redhat.com>
59978         getloadavg: fix symbol name in comment
59979         * lib/getloadavg.c: Correct a typo I introduced when adding
59980         comments to Matt's change: s/NLIST_POINTER/N_NAME_POINTER/.
59981         Matt Kraai spotted the problem.
59983 2009-07-29  Matt Kraai  <mkraai@beckman.com>
59985         getloadavg: check whether n_name is a pointer, for QNX 6.4.1
59986         * lib/getloadavg.c (getloadavg): Use the strcpy-into-nlist.n_name
59987         code also if ! defined N_NAME_POINTER.
59988         * m4/getloadavg.m4 (gl_GETLOADAVG): Add a link-test for N_NAME_POINTER.
59989         This is required on QNX 6.4.1, where /usr/include/nlist.h exists,
59990         but the n_name member is a 12-byte array.
59992 2009-07-29  Joel E. Denny  <jdenny@clemson.edu>
59994         update-copyright: generalize comment handling
59995         * build-aux/update-copyright: Handle copyright statements
59996         within more comment styles.
59997         Document usage.
59998         Report any file with an external copyright holder or parse failure.
60000 2009-07-29  Jim Meyering  <meyering@redhat.com>
60002         mktime: correct setting of REPLACE_MKTIME
60003         * m4/mktime.m4 (gl_FUNC_MKTIME): Set REPLACE_MKTIME=0, when required.
60005         update-copyright: new module
60006         * modules/update-copyright: New file.
60007         * build-aux/update-copyright: New file.
60008         * MODULES.html.sh (maint+release support): Add update-copyright.
60010 2009-07-27  Bruno Haible  <bruno@clisp.org>
60012         Fix compilation error when <ctime> is used and mktime is replaced.
60013         * lib/time.in.h (mktime): New declaration.
60014         * m4/mktime.m4 (gl_FUNC_MKTIME): Require gl_HEADER_TIME_H_DEFAULTS. Set
60015         REPLACE_MKTIME instead of defining mktime in config.h.
60016         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize REPLACE_MKTIME.
60017         * modules/time (Makefile.am): Substitute REPLACE_MKTIME.
60018         Reported by Ross McFarland <rwmcfa1@neces.com>.
60020 2009-07-27  Bruno Haible  <bruno@clisp.org>
60022         * lib/math.in.h (cosl, logl, sinl): Undefine before declaring it.
60023         Reported by Matt Kraai <mkraai@beckman.com>.
60025 2009-07-25  Jim Meyering  <meyering@redhat.com>
60027         maint.mk: avoid warnings about missing files
60028         * top/maint.mk (PREV_VERSION): Suppress stderr, to hide a
60029         diagnostic when .prev-version does not exist.
60030         (_cfg_mk): Define, so it can be empty when cfg.mk does not exist.
60031         (syntax-check-rules): Use $(_cfg_mk) to avoid a diagnostic about
60032         nonexistent cfg.mk.
60033         Suggestions from Simon Josefsson.
60035 2009-07-25  Bruno Haible  <bruno@clisp.org>
60037         * lib/math.in.h (cosl, logl, sinl): Don't declare if they are already
60038         defined as macros. Needed on QNX 6.4.1.
60039         Reported by Matt Kraai <mkraai@beckman.com>.
60041 2009-07-23  Jim Meyering  <meyering@redhat.com>
60043         maint.mk: invoke "make dist" with a working value of XZ_OPT
60044         * top/maint.mk (vc-dist): Use no "-" in the value of XZ_OPT.
60046 2009-07-22  Matt Kraai  <mkraai@beckman.com>  (tiny change)
60048         Make fseeko.c compile on QNX.
60049         * lib/fseeko.c (rpl_fseeko): Use the numerical value of _MWRITE.
60051 2009-07-22  Peter Simons  <simons@cryp.to>
60053         C++: wrap md2,md5,sha1,etc. function declarations in extern "C" scope
60054         * lib/md2.h [__cplusplus]: Wrap declarations in extern "C" scope.
60055         * lib/md4.h: Likewise.
60056         * lib/md5.h: Likewise.
60057         * lib/sha1.h: Likewise.
60058         * lib/sha256.h: Likewise.
60059         * lib/sha512.h: Likewise.
60061         tests-sha1: don't assign literal string to 'char *' variable
60062         * tests/test-sha1.c (main): Declare locals with "const" to match
60063         attributes of the right hand side.
60065 2009-07-21  Eric Blake  <ebb9@byu.net>
60067         dup2: fix more mingw problems
60068         * lib/dup2.c (rpl_dup2) [_WIN32]: Avoid hanging when duplicating
60069         fd to itself.
60070         * doc/posix-functions/dup2.texi (dup2): Document the bug.
60071         * lib/unistd.in.h (dup2) [REPLACE_FCHDIR]: Avoid name collision.
60072         * lib/fchdir.c (dup2): Manage preprocessor macros correctly.
60073         (rpl_dup2_fchdir): Rename from rpl_dup2, and let dup2 module take
60074         care of mingw bugs.
60076 2009-07-21  Jim Meyering  <meyering@redhat.com>
60078         vc-list-files: avoid failure when /bin/sh is dash
60079         * build-aux/vc-list-files: Avoid a shell portability problem with dash.
60080         On some Debian based systems, /bin/sh is a symlink to dash, and running
60081         this command would omit the "/" following each 'tests' prefix:
60082           dash -x build-aux/vc-list-files -C . tests
60083         That is because bash and dash work differently:
60084           $ for i in bash dash; do $i -c 'a=odd; a=ok b=$a; echo '$i' $b'; done
60085           bash ok
60086           dash odd
60088 2009-07-21  Eric Blake  <ebb9@byu.net>
60090         dup2-tests: test previous patch
60091         * modules/dup2-tests: New file.
60092         * tests/test-dup2.c: Likewise.
60093         * tests/test-open.c (main): Avoid unspecified behavior.
60094         * tests/test-pipe.c (child_main): Use dup2 semantics to simplify
60095         test.
60097         dup2: work around mingw and cygwin 1.5 bug
60098         * m4/dup2.m4 (gl_FUNC_DUP2): Detect mingw bug.
60099         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
60100         * modules/unistd (Makefile.am): Substitute it.
60101         * lib/unistd.in.h (dup2): Declare the replacement.
60102         * lib/dup2.c (dup2) [REPLACE_DUP2]: Implement it.
60103         * doc/posix-functions/dup2.texi (dup2): Document the bugs.
60104         * lib/fchdir.c (rpl_dup2): Don't collide with mingw replacement.
60105         * modules/execute (Depends-on): Add dup2.
60106         * modules/fseterr (Depends-on): Likewise.
60107         * modules/pipe (Depends-on): Likewise.
60108         * modules/posix_spawn-internal (Depends-on): Likewise.
60110 2009-07-21  Bruno Haible  <bruno@clisp.org>
60112         * modules/.gitattributes: New file.
60114 2009-07-20  Bruno Haible  <bruno@clisp.org>
60116         * tests/test-pipe.c (BACKUP_STDERR_FILENO): New macro.
60117         (main): Use it.
60119 2009-07-20  Eric Blake  <ebb9@byu.net>
60121         test-pipe: make a bit more robust.
60122         * tests/test-pipe.c (myerr): Allow error messages regardless of
60123         what we do to stderr.
60124         (test_pipe): Rearrange to avoid deadlock.
60125         (child_main): Try a larger read, to ensure we avoided deadlock.
60126         * lib/pipe.c (create_pipe) [_WIN32]: Fix comment.
60127         * lib/pipe.h (create_pipe_bidi): Document potential for deadlock
60128         if misused.
60130 2009-07-19  Jim Meyering  <meyering@redhat.com>
60132         fts: avoid false-positive cycle-detection
60133         * lib/fts.c (fts_read): Reinitialize cycle-detection data structures
60134         for each new command line argument.
60136 2009-07-19  Bruno Haible  <bruno@clisp.org>
60138         Fix build error on mingw with the modules sys_select and unistd.
60139         * modules/acl-tests (Depends-on): Add close.
60140         * modules/binary-io-tests (Depends-on): Likewise.
60141         * modules/closein-tests (Depends-on): Likewise.
60142         * modules/flock-tests (Depends-on): Likewise.
60143         * modules/fsync-tests (Depends-on): Likewise.
60144         * modules/lseek-tests (Depends-on): Likewise.
60145         * modules/pipe-tests (Depends-on): Likewise.
60146         * modules/posix_spawn-tests (Depends-on): Likewise.
60147         * modules/posix_spawnp-tests (Depends-on): Likewise.
60148         * modules/stat-time-tests (Depends-on): Likewise.
60149         * modules/yesno-tests (Depends-on): Likewise.
60151 2009-07-19  Bruno Haible  <bruno@clisp.org>
60153         Unify conditionals.
60154         * lib/pipe.h: Detect native Win32 by looking at _WIN32 and __WIN32__
60155         macros, not at the compiler macros.
60156         * lib/pipe.c: Likewise.
60157         * lib/execute.c: Likewise.
60158         * lib/spawni.c: Likewise.
60160 2009-07-19  Bruno Haible  <bruno@clisp.org>
60162         Fix handling of closed stdin/stdout/stderr on mingw.
60163         * lib/w32spawn.h: Include unistd.h.
60164         (dup_noinherit): Return -1 if the old handle is invalid. Allocate new
60165         file descriptor with O_NOINHERIT flag.
60166         (fd_safer_noinherit): New function, based on fd-safer.c.
60167         (dup_safer_noinherit): New function, based on dup-safer.c.
60168         (undup_safer_noinherit): New function.
60169         * lib/execute.c (execute) [WIN32]: Use dup_safer_noinherit instead of
60170         dup_noinherit. Use undup_safer_noinherit instead of dup2 and close.
60171         * lib/pipe.c (create_pipe) [WIN32]: Likewise. Use fd_safer_noinherit
60172         instead of fd_safer.
60173         * tests/test-pipe.c: Include <windows.h>.
60174         (child_main) [WIN32]: Test the handle of STDERR_FILENO, not its close()
60175         result.
60177         * tests/test-pipe.c (child_main, parent_main): New functions, extracted
60178         from main.
60179         (test_pipe): Pass an extra argument for disambiguation.
60180         (main): Invoke parent_main or child_main.
60182         * tests/test-pipe.c (test_pipe): Pass slave_process = true argument
60183         consistently.
60185 2009-07-18  Eric Blake  <ebb9@byu.net>
60187         test-pipe: fix mingw build
60188         * tests/test-pipe.c (main): Avoid fcntl on mingw.
60190 2009-07-18  Bruno Haible  <bruno@clisp.org>
60192         * modules/pipe-tests (Makefile.am): Fix typo.
60194 2009-07-18  Eric Blake  <ebb9@byu.net>
60196         error: fix mingw build
60197         * lib/error.c (error, error_at_line): Avoid fcntl on mingw.
60198         Reported by Bruno Haible.
60200         error: avoid undefined use of stdout
60201         * lib/error.c (error, error_at_line): Check that fd 1 is open
60202         before flushing stdout.  Avoids a crash on cygwin when libsigsegv
60203         is handling faults and the close_stdout module wants to report the
60204         detection of closed stdout as an error.
60206 2009-07-17  Eric Blake  <ebb9@byu.net>
60208         pipe: be robust in face of closed fds
60209         * lib/pipe.c (create_pipe): Closed standard descriptors in parent
60210         should cause child to misbehave.
60211         * modules/pipe-tests: New module.
60212         * tests/test-pipe.c: New file.
60213         * tests/test-pipe.sh: New file.
60214         Reported by Akim Demaille.
60216 2009-07-14  Bruno Haible  <bruno@clisp.org>
60218         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Guess it works on glibc systems.
60219         Reported by anonymous kc.
60221 2009-07-07  Jim Meyering  <meyering@redhat.com>
60223         maint.mk: don't look for translatable strings in *.m4 or *.mk
60224         * top/maint.mk (sc_po_check): Skip *.m4 and *.mk files,
60225         when searching for translatable strings.
60227 2009-07-05  Jim Meyering  <meyering@redhat.com>
60229         remove superfluous parentheses in STREQ definition
60230         * tests/test-argv-iter.c (STREQ): Remove redundant parentheses.
60231         * lib/getugroups.c (STREQ): Likewise.
60232         * lib/fnmatch.c (STREQ): Likewise.
60233         Spotted by Bruno Haible.
60235 2009-07-04  Jim Meyering  <meyering@redhat.com>
60237         argv-iter: new module
60238         * MODULES.html.sh: Add argv-iter.
60239         * lib/argv-iter.c, lib/argv-iter.h: New files.
60240         * modules/argv-iter: New file.
60241         * modules/argv-iter-tests: New file.
60242         * tests/test-argv-iter.c: Test it.
60244 2009-07-04  Bruno Haible  <bruno@clisp.org>
60246         Fix assertion.
60247         * lib/git-merge-changelog.c (compute_mapping): In the case where file1
60248         contains more exact copies of a given entry than file2, leave the extra
60249         copies unpaired rather than aborting.
60250         Reported by Eric Blake.
60252 2009-07-02  Bruno Haible  <bruno@clisp.org>
60254         Speedup git-merge-changelog for git cherry-pick.
60255         * lib/git-merge-changelog.c (struct entries_mapping): New type.
60256         (entries_mapping_get): New function, extracted from compute_mapping.
60257         (entries_mapping_reverse_get): New function.
60258         (compute_mapping): Add a 'full' argument. Return the result in a
60259         'struct entries_mapping'.
60260         (main): Update. Access the mappings through entries_mapping_get.
60261         Reported by Eric Blake.
60263 2009-07-02  Bruno Haible  <bruno@clisp.org>
60265         * lib/git-merge-changelog.c (compute_mapping): Fix determination of
60266         best_i.
60268 2009-07-02  Bruno Haible  <bruno@clisp.org>
60270         Speed up approximate search for matching ChangeLog entries.
60271         * lib/git-merge-changelog.c (entry_fstrcmp): Add a lower_bound
60272         argument. Call fstrcmp_bounded instead of fstrcmp.
60273         (compute_mapping, try_split_merged_entry, main): Update callers.
60275 2009-07-02  Bruno Haible  <bruno@clisp.org>
60277         * lib/git-merge-changelog.c (main): Add comment about git cherry-pick.
60279 2009-06-30  Bruno Haible  <bruno@clisp.org>
60281         Reduce the number of uc_is_cased calls.
60282         * lib/unicase.h (casing_suffix_context_t): Add
60283         'first_char_except_ignorable' field.
60284         * lib/unicase/context.h (SCC_FINAL_SIGMA_MASK): Remove macro.
60285         (SCC_MORE_ABOVE_MASK, SCC_BEFORE_DOT_MASK): Update.
60286         * lib/unicase/empty-suffix-context.c (unicase_empty_suffix_context):
60287         Update initializer.
60288         * lib/unicase/u-casemap.h (FUNC): Don't invoke uc_is_cased on
60289         case-ignorable characters.
60290         * lib/unicase/u-ct-totitle.h (FUNC): Likewise.
60291         * lib/unicase/u-suffix-context.h (FUNC2): Don't call uc_is_cased here.
60292         * modules/unicase/u8-suffix-context (Depends-on): Remove unicase/cased.
60293         * modules/unicase/u16-suffix-context (Depends-on): Likewise.
60294         * modules/unicase/u32-suffix-context (Depends-on): Likewise.
60296 2009-06-30  Bruno Haible  <bruno@clisp.org>
60298         Tests for module 'unicase/ignorable'.
60299         * modules/unicase/ignorable-tests: New file.
60300         * tests/unicase/test-ignorable.c: New file, generated by
60301         gen-uni-tables.
60303         Tests for module 'unicase/cased'.
60304         * modules/unicase/cased-tests: New file.
60305         * tests/unicase/test-cased.c: New file, generated by gen-uni-tables.
60306         * tests/unicase/test-predicate-part1.h: New file, derived from
60307         tests/unictype/test-predicate-part1.h.
60308         * tests/unicase/test-predicate-part2.h: New file, same as
60309         tests/unictype/test-predicate-part2.h.
60311         Fix evaluation of "Before C" condition of FINAL_SIGMA.
60312         * lib/gen-uni-tables.c (is_cased, is_case_ignorable): New functions.
60313         (output_casing_properties): New function.
60314         (main): Call it.
60315         * lib/unicase/cased.h: New file, generated by gen-uni-tables.
60316         * lib/unicase/cased.c: Include unictype/bitmap.h.
60317         (uc_is_cased): Define through a bitmap lookup.
60318         * lib/unicase/ignorable.h: New file, generated by gen-uni-tables.
60319         * lib/unicase/ignorable.c: Include unictype/bitmap.h.
60320         (uc_is_case_ignorable): Define through a bitmap lookup.
60321         * modules/unicase/cased (Files): Add lib/unicase/cased.h,
60322         lib/unictype/bitmap.h.
60323         (Depends-on): Add inline. Clean up.
60324         * modules/unicase/ignorable (Files): Add lib/unicase/ignorable.h,
60325         lib/unictype/bitmap.h.
60326         (Depends-on): Add inline. Clean up.
60327         * tests/unicase/test-u8-tolower.c (main): Add more tests of FINAL_SIGMA
60328         recognition.
60329         * tests/unicase/test-u16-tolower.c (main): Likewise.
60330         * tests/unicase/test-u32-tolower.c (main): Likewise.
60332 2009-06-30  Bruno Haible  <bruno@clisp.org>
60334         * lib/unicase/u8-casemap.c: Don't include uniwbrk.h.
60335         * lib/unicase/u16-casemap.c: Likewise.
60336         * lib/unicase/u32-casemap.c: Likewise.
60338 2009-06-29  Bruno Haible  <bruno@clisp.org>
60340         Define u32_casefold as a wrapper around u32_ct_casefold.
60341         * lib/unicase/u32-casefold.c: Update.
60342         * modules/unicase/u32-casefold (Depends-on): Add
60343         unicase/u32-ct-casefold, unicase/empty-prefix-context,
60344         unicase/empty-suffix-context. Clean up.
60346         Define u16_casefold as a wrapper around u16_ct_casefold.
60347         * lib/unicase/u16-casefold.c: Update.
60348         * modules/unicase/u16-casefold (Depends-on): Add
60349         unicase/u16-ct-casefold, unicase/empty-prefix-context,
60350         unicase/empty-suffix-context. Clean up.
60352         Define u8_casefold as a wrapper around u8_ct_casefold.
60353         * lib/unicase/u-casefold.h (FUNC): Delegate to U_CT_CASEFOLD.
60354         * lib/unicase/u8-casefold.c: Update.
60355         * modules/unicase/u8-casefold (Depends-on): Add unicase/u8-ct-casefold,
60356         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
60358         Define u32_totitle as a wrapper around u32_ct_totitle.
60359         * lib/unicase/u32-totitle.c: Update.
60360         * modules/unicase/u32-totitle (Depends-on): Add unicase/u32-ct-totitle,
60361         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
60363         Define u16_totitle as a wrapper around u16_ct_totitle.
60364         * lib/unicase/u16-totitle.c: Update.
60365         * modules/unicase/u16-totitle (Depends-on): Add unicase/u16-ct-totitle,
60366         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
60368         Define u8_totitle as a wrapper around u8_ct_totitle.
60369         * lib/unicase/u-totitle.h (is_cased, is_case_ignorable): Remove
60370         functions.
60371         (FUNC): Delegate to U_CT_TOTITLE.
60372         * lib/unicase/u8-totitle.c: Update.
60373         * modules/unicase/u8-totitle (Depends-on): Add unicase/u8-ct-totitle,
60374         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
60376         * lib/unicase/u32-tolower.c (u32_tolower): Update u32_casemap
60377         invocation.
60378         * modules/unicase/u32-tolower (Depends-on): Add
60379         unicase/empty-prefix-context, unicase/empty-suffix-context.
60381         * lib/unicase/u16-tolower.c (u16_tolower): Update u16_casemap
60382         invocation.
60383         * modules/unicase/u16-tolower (Depends-on): Add
60384         unicase/empty-prefix-context, unicase/empty-suffix-context.
60386         * lib/unicase/u8-tolower.c (u8_tolower): Update u8_casemap invocation.
60387         * modules/unicase/u8-tolower (Depends-on): Add
60388         unicase/empty-prefix-context, unicase/empty-suffix-context.
60390         * lib/unicase/u32-toupper.c (u32_toupper): Update u32_casemap
60391         invocation.
60392         * modules/unicase/u32-toupper (Depends-on): Add
60393         unicase/empty-prefix-context, unicase/empty-suffix-context.
60395         * lib/unicase/u16-toupper.c (u16_toupper): Update u16_casemap
60396         invocation.
60397         * modules/unicase/u16-toupper (Depends-on): Add
60398         unicase/empty-prefix-context, unicase/empty-suffix-context.
60400         * lib/unicase/u8-toupper.c (u8_toupper): Update u8_casemap invocation.
60401         * modules/unicase/u8-toupper (Depends-on): Add
60402         unicase/empty-prefix-context, unicase/empty-suffix-context.
60404         New module 'unicase/u32-ct-casefold'.
60405         * lib/unicase/u32-ct-casefold.c: New file.
60406         * modules/unicase/u32-ct-casefold: New file.
60408         New module 'unicase/u16-ct-casefold'.
60409         * lib/unicase/u16-ct-casefold.c: New file.
60410         * modules/unicase/u16-ct-casefold: New file.
60412         New module 'unicase/u8-ct-casefold'.
60413         * lib/unicase/u8-ct-casefold.c: New file.
60414         * lib/unicase/u-ct-casefold.h: New file, derived from
60415         lib/unicase/u-casefold.h.
60416         * modules/unicase/u8-ct-casefold: New file.
60418         New module 'unicase/u32-ct-totitle'.
60419         * lib/unicase/u32-ct-totitle.c: New file.
60420         * modules/unicase/u32-ct-totitle: New file.
60422         New module 'unicase/u16-ct-totitle'.
60423         * lib/unicase/u16-ct-totitle.c: New file.
60424         * modules/unicase/u16-ct-totitle: New file.
60426         New module 'unicase/u8-ct-totitle'.
60427         * lib/unicase/u8-ct-totitle.c: New file.
60428         * lib/unicase/u-ct-totitle.h: New file, derived from
60429         lib/unicase/u-totitle.h.
60430         * modules/unicase/u8-ct-totitle: New file.
60432         New module 'unicase/u32-ct-tolower'.
60433         * lib/unicase/u32-ct-tolower.c: New file.
60434         * modules/unicase/u32-ct-tolower: New file.
60436         New module 'unicase/u16-ct-tolower'.
60437         * lib/unicase/u16-ct-tolower.c: New file.
60438         * modules/unicase/u16-ct-tolower: New file.
60440         New module 'unicase/u8-ct-tolower'.
60441         * lib/unicase/u8-ct-tolower.c: New file.
60442         * modules/unicase/u8-ct-tolower: New file.
60444         New module 'unicase/u32-ct-toupper'.
60445         * lib/unicase/u32-ct-toupper.c: New file.
60446         * modules/unicase/u32-ct-toupper: New file.
60448         New module 'unicase/u16-ct-toupper'.
60449         * lib/unicase/u16-ct-toupper.c: New file.
60450         * modules/unicase/u16-ct-toupper: New file.
60452         New module 'unicase/u8-ct-toupper'.
60453         * lib/unicase/u8-ct-toupper.c: New file.
60454         * modules/unicase/u8-ct-toupper: New file.
60456         Add context arguments to u*_casemap functions.
60457         * lib/unicase/unicasemap.h: Include unicase.h.
60458         (u8_casemap, u16_casemap, u32_casemap): Add prefix_context and
60459         suffix_context arguments.
60460         * lib/unicase/u-casemap.h (is_cased, is_case_ignorable): Remove
60461         functions.
60462         (FUNC): Add prefix_context and suffix_context arguments. Use
60463         uc_is_cased and uc_is_case_ignorable.
60464         * lib/unicase/u8-casemap.c: Include caseprop.h and context.h.
60465         * lib/unicase/u16-casemap.c: Likewise.
60466         * lib/unicase/u32-casemap.c: Likewise.
60467         * modules/unicase/u8-casemap (Files): Add lib/unicase/context.h.
60468         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
60469         * modules/unicase/u16-casemap (Files): Add lib/unicase/context.h.
60470         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
60471         * modules/unicase/u32-casemap (Files): Add lib/unicase/context.h.
60472         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
60474         New module 'unicase/u32-suffix-context'.
60475         * lib/unicase/u32-suffix-context.c: New file.
60476         * modules/unicase/u32-suffix-context: New file.
60478         New module 'unicase/u16-suffix-context'.
60479         * lib/unicase/u16-suffix-context.c: New file.
60480         * modules/unicase/u16-suffix-context: New file.
60482         New module 'unicase/u8-suffix-context'.
60483         * lib/unicase/u8-suffix-context.c: New file.
60484         * lib/unicase/u-suffix-context.h: New file.
60485         * modules/unicase/u8-suffix-context: New file.
60487         New module 'unicase/empty-suffix-context'.
60488         * lib/unicase/empty-suffix-context.c: New file.
60489         * modules/unicase/empty-suffix-context: New file.
60491         New module 'unicase/u32-prefix-context'.
60492         * lib/unicase/u32-prefix-context.c: New file.
60493         * modules/unicase/u32-prefix-context: New file.
60495         New module 'unicase/u16-prefix-context'.
60496         * lib/unicase/u16-prefix-context.c: New file.
60497         * modules/unicase/u16-prefix-context: New file.
60499         New module 'unicase/u8-prefix-context'.
60500         * lib/unicase/u8-prefix-context.c: New file.
60501         * lib/unicase/u-prefix-context.h: New file.
60502         * lib/unicase/context.h: New file.
60503         * modules/unicase/u8-prefix-context: New file.
60505         New module 'unicase/empty-prefix-context'.
60506         * lib/unicase/empty-prefix-context.c: New file.
60507         * modules/unicase/empty-prefix-context: New file.
60509         New module 'unicase/ignorable'.
60510         * lib/unicase/ignorable.c: New file.
60511         * modules/unicase/ignorable: New file.
60513         New module 'unicase/cased'.
60514         * lib/unicase/caseprop.h: New file.
60515         * lib/unicase/cased.c: New file.
60516         * modules/unicase/cased: New file.
60518         New functions for case mapping of substrings.
60519         * lib/unicase.h (casing_prefix_context_t): New type.
60520         (unicase_empty_prefix_context): New variable.
60521         (u8_casing_prefix_context, u16_casing_prefix_context,
60522         u32_casing_prefix_context, u8_casing_prefixes_context,
60523         u16_casing_prefixes_context, u32_casing_prefixes_context): New
60524         declarations.
60525         (casing_suffix_context_t): New type.
60526         (unicase_empty_suffix_context): New variable.
60527         (u8_casing_suffix_context, u16_casing_suffix_context,
60528         u32_casing_suffix_context, u8_casing_suffixes_context,
60529         u16_casing_suffixes_context, u32_casing_suffixes_context,
60530         u8_ct_toupper, u16_ct_toupper, u32_ct_toupper, u8_ct_tolower,
60531         u16_ct_tolower, u32_ct_tolower, u8_ct_totitle, u16_ct_totitle,
60532         u32_ct_totitle, u8_ct_casefold, u16_ct_casefold, u32_ct_casefold): New
60533         declarations.
60535 2009-06-28  Jim Meyering  <meyering@redhat.com>
60537         boostrap: indent only with spaces
60538         * build-aux/bootstrap: Indent only with spaces, never TABs.
60540         bootstrap: split long lines
60541         * build-aux/bootstrap: Keep line length < 80.
60543         bootstrap: sync from coreutils
60544         * build-aux/bootstrap: Honor variables like $ACLOCAL, etc.,
60545         just as autoreconf does.  Verify a list of prerequisite
60546         package-name,version-number pairs if defined in bootstrap.conf.
60547         Refer to README-prereq, if prerequisites are not satisfied.
60549 2009-06-27  Eric Blake  <ebb9@byu.net>
60551         tests: add test for bogus NULL definition
60552         * tests/test-stdio.c: Ensure POSIX 2008 requirement on NULL.
60553         * tests/test-stdlib.c: Likewise.
60554         * tests/test-string.c: Likewise.
60555         * tests/test-locale.c: Likewise.
60556         * tests/test-unistd.c: Likewise.
60557         * modules/stdio-tests (Depends-on): Add verify.
60558         * modules/stdlib-tests (Depends-on): Likewise.
60559         * modules/string-tests (Depends-on): Likewise.
60560         * modules/locale-tests (Depends-on): Likewise.
60561         * modules/unistd-tests (Depends-on): Likewise.
60563 2009-06-27  Paolo Bonzini  <bonzini@gnu.org>
60565         * m4/selinux-context-h (gl_HEADERS_SELINUX_CONTEXT_H): Remove
60566         self-explaining comment.
60567         * m4/selinux-selinux-h: Update serial.
60568         (gl_LIBSELINUX): New macro, adding a warning for missing development
60569         packages to code extracted from...
60570         (gl_HEADERS_SELINUX_SELINUX_H): ... this one.  Require gl_LIBSELINUX.
60571         Add warning for missing development packages here, too.
60573 2009-06-26  Paolo Bonzini  <bonzini@gnu.org>
60575         * build-aux/bootstrap: Do not use GIT_CONFIG_LOCAL.
60577 2009-06-25  Eric Blake  <ebb9@byu.net>
60579         version-etc: fix regression
60580         * lib/version-etc.h (ATTRIBUTE_SENTINEL): Define for new enough
60581         gcc.
60582         (version_etc): Use it, to catch bugs with trailing NULL.
60583         * lib/version-etc.c (version_etc_arn): Delete unused argument.
60584         (version_etc_va): Fix logic bug.
60585         * modules/version-etc-tests: Add test.
60586         * tests/test-version-etc.c: New file.
60587         * tests/test-version-etc.sh: Likewise.
60589 2009-06-25  Sam Steingold  <sds@gnu.org>
60591         * mbrtowc.m4 (gl_MBRTOWC_SANITYCHECK): Include <stdlib.h>, for the
60592         mbtowc declaration.
60594 2009-06-25  Eric Blake  <ebb9@byu.net>
60596         fpurge: migrate into <stdio.h>
60597         * lib/fpurge.h: Delete...
60598         * lib/stdio.in.h (fpurge): ...and declare here, instead.
60599         * lib/fpurge.c (fpurge): Change declaring header.
60600         * modules/fpurge (Files): Drop deleted file.
60601         (Depends-on): Add stdio.
60602         (configure.ac): Set witness.
60603         * modules/stdio (Makefile.am): Support fpurge macros.
60604         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
60605         * m4/fpurge.m4 (gl_FUNC_FPURGE): Set appropriate variables.
60606         * lib/fflush.c: Update client.
60607         * tests/test-fpurge.c: Likewise.
60608         * NEWS: Mention the change.
60610 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
60612         * lib/argp-version-etc.c (program_authors): Add const
60613         qualifier.
60614         * lib/version-etc.c: Fix typos in the comments.
60615         * modules/argp-version-etc: Depends on version-etc.
60617 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
60619         argp-version-etc: new module.
60621         * lib/argp-version-etc.c: New file.
60622         * lib/argp-version-etc.h: New file.
60623         * modules/argp-version-etc: New file.
60624         * modules/argp-version-etc-tests: New file.
60625         * tests/test-argp-version-etc.c: New test.
60626         * tests/test-argp-version-etc-1.sh: New test.
60628 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
60630         Provide additional interfaces and documentation for version-etc
60631         module.
60633         * lib/version-etc.c (version_etc_arn, version_etc_ar): New
60634         interfaces.
60635         * lib/version-etc.h (version_etc_arn, version_etc_ar): New
60636         prototypes.
60638 2009-06-24  Bruno Haible  <bruno@clisp.org>
60640         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Fix description of
60641         HAVE_LIB${NAME} macro.
60642         Reported by Sam Steingold <sds@gnu.org>.
60644 2009-06-23  Simon Josefsson  <simon@josefsson.org>
60646         * modules/hash-tests (test_hash_LDADD): Link to libintl when
60647         needed.
60649 2009-06-21  Bruno Haible  <bruno@clisp.org>
60651         Make two consecutive identical invocations of AC_LIB_HAVE_LINKFLAGS
60652         work.
60653         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Reset HAVE_LIB${NAME}
60654         together with LIB${NAME}, LTLIB${NAME}.
60655         Reported by Sam Steingold <sds@gnu.org>.
60657 2009-06-20  Jim Meyering  <meyering@redhat.com>
60659         tests: make sc_require_test_exit_idiom more generic
60660         * top/maint.mk (Exit_witness_file): New overridable variable.
60661         (sc_require_test_exit_idiom): Don't hard-code tests/test-lib.sh.
60662         Relax test for /^Exit \$fail$$/ to just /^Exit ./.
60664 2009-06-19  Jim Meyering  <meyering@redhat.com>
60666         hash: reverse order of src/dst parameters in an internal interface
60667         * lib/hash.c (transfer_entries): Reverse order of parameters to
60668         put DST before SRC.  Adjust callers.
60670         tests: test-hash: avoid wholesale duplication
60671         * tests/test-hash.c (main): Don't copy/paste a 60-line loop.
60672         Instead, use a loop and add a single conditional.
60674         tests: test-hash: allow seed selection via a command line argument
60675         * tests/test-hash.c (get_seed): New function.
60676         (main): Use it.
60678 2009-06-19  Eric Blake  <ebb9@byu.net>
60680         hash: avoid memory leak on allocation failure
60681         * lib/hash.c: (hash_rehash): Avoid memory leak on allocation
60682         failure.  Factor repeated algorithm...
60683         (transfer_entries): ...into new helper routine.
60684         (hash_delete): React to hash_rehash return value.
60686         hash: reduce memory pressure in hash_rehash no-op case
60687         * lib/hash.c (next_prime): Avoid overflow.
60688         (hash_initialize): Factor bucket size computation...
60689         (compute_bucket_size): ...into new helper function.
60690         (hash_rehash): Use new function and open coding to reduce memory
60691         pressure, and avoid a memory leak in USE_OBSTACK code.
60692         Reported by Jim Meyering.
60694 2009-06-18  Eric Blake  <ebb9@byu.net>
60696         hash: make rotation more obvious
60697         * modules/hash (Depends-on): Add bitrotate and stdint.
60698         * lib/bitrotate.h (rotl_sz, rotr_sz): New functions.
60699         * lib/hash.c (headers): Drop limits.h.  Add stdint.h.
60700         (SIZE_MAX): Rely on headers for definition.
60701         (hash_string) [USE_DIFF_HASH]: Use rotl_sz.
60702         (raw_hasher): Use rotr_sz.
60703         Suggested by Jim Meyering.
60705         hash: fix memory leak in last patch
60706         * lib/hash.c (hash_rehash): Avoid memory leak.
60708         hash: avoid no-op rehashing
60709         * lib/hash.c (hash_rehash): Recognize useless rehash attempts.
60711         hash: provide default callback functions
60712         * lib/hash.c (raw_hasher, raw_comparator): New functions.
60713         (hash_initialize): Use them as defaults.
60714         * tests/test-hash.c (main): Test this.
60716         hash: minor optimization
60717         * lib/hash.c (hash_lookup, hash_find_entry): Avoid function call
60718         when possible.
60719         (hash_initialize): Document this promise.
60720         (hash_do_for_each, hash_clear, hash_free): Use C89 syntax.
60721         * tests/test-hash.c (hash_compare_strings): Test this.
60723 2009-06-18  Bruno Haible  <bruno@clisp.org>
60725         * m4/strstr.m4 (gl_FUNC_STRSTR): Skip linear time test if strstr is
60726         going to be replaced anyway.
60728 2009-06-18  Bruno Haible  <bruno@clisp.org>
60730         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Invoke AC_LIBOBJ only
60731         in one place.
60732         (gl_FUNC_STRCASESTR): Skip linear time test if strcasestr is going to
60733         be replaced anyway.
60735 2009-06-18  Eric Blake  <ebb9@byu.net>
60737         hash: check for resize before insertion
60738         * lib/hash.c (hash_insert): Check whether bucket usage exceeds
60739         threshold before insertion, so that a pathological hash_rehash
60740         that fills every bucket can still trigger another rehash.
60742 2009-06-18  Jim Meyering  <meyering@redhat.com>
60744         hash-tests: add a loop around the small tests
60745         * tests/test-hash.c (main): Repeat small tests with selected
60746         small initial table sizes.
60748 2009-06-17  Eric Blake  <ebb9@byu.net>
60750         hash: minor cleanups
60751         * lib/hash.h (hash_entry): Make opaque, by moving...
60752         * lib/hash.c (hash_entry): ...here.
60753         (hash_insert): Clarify restrictions on what can be inserted.
60754         (hash_get_next): Clarify when it is safe to remove an element
60755         during traversal.
60756         (check_tuning): Skip verification when tuning is known safe.
60757         (hash_initialize): Clarify restrictions on tuning.
60759 2009-06-17  Jim Meyering  <jim@meyering.net>
60760         and Eric Blake  <ebb9@byu.net>
60762         hash-tests: new module
60763         * modules/hash-tests: New file.
60764         * tests/test-hash.c: New file.
60766 2009-06-17  Eric Blake  <ebb9@byu.net>
60768         strstr-simple: document new module
60769         * MODULES.html.sh: Document new module.
60771         strstr, strcasestr: replace on platforms with broken memchr
60772         * modules/strstr: Split into...
60773         * modules/strstr-simple: ...new module that does not care about
60774         performance, but does care about glibc bug.
60775         * m4/strstr.m4 (gl_FUNC_STRSTR): Split...
60776         (gl_FUNC_STRSTR_SIMPLE): ...into new macro, which replaces strstr
60777         if platform memchr is broken, per Debian bug 521737.
60778         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): React to broken
60779         memchr.
60780         * m4/memchr.m4 (gl_FUNC_MEMCHR): Only expand once.
60781         * doc/posix-functions/strstr.texi (strstr): Document the fix.
60782         * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
60783         * modules/mountlist (Depends-on): Add strstr-simple.
60784         * modules/gen-uni-tables (Depends-on): Likewise.
60785         * modules/argz (Depends-on): Add strstr.
60787 2009-06-17  Bruno Haible  <bruno@clisp.org>
60789         * modules/posix_spawn-internal (Depends-on): Add errno.
60791 2009-06-17  Bruno Haible  <bruno@clisp.org>
60793         Define missing ESTALE on Interix 3.5.
60794         * lib/errno.in.h (ESTALE): Assign a value if missing.
60795         * lib/strerror.c (rpl_strerror): Handle missing ESTALE and ECANCELED.
60796         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Also test whether ESTALE is
60797         missing.
60798         * doc/posix-headers/errno.texi: Mention the Interix bug.
60799         Reported by Jay Krell <jay.krell@cornell.edu> via Eric Blake.
60801 2009-06-15  Eric Blake  <ebb9@byu.net>
60803         memchr, memchr2: add valgrind exception
60804         * lib/memchr.valgrind: New file.
60805         * lib/memchr2.valgrind: New file.
60806         * modules/memchr (Files): Distribute valgrind file.
60807         * modules/memchr2 (Files): Likewise.
60809         docs: memchr is no longer obsolete
60810         * MODULES.html.sh: Move memchr from obsolete to string.h section.
60811         * lib/string.in.h (memchr): Simplify logic.
60813 2009-06-14  Jim Meyering  <meyering@redhat.com>
60815         link-follow: fix the "checking..." message to not mention trailing slash
60816         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): This test has
60817         never considered trailing slashes.
60819 2009-06-14  Bruno Haible  <bruno@clisp.org>
60821         * m4/memchr.m4: Mention also the bug on IA-64.
60822         * doc/posix-functions/memchr.texi: Likewise.
60824 2009-06-12  Eric Blake  <ebb9@byu.net>
60826         memchr: detect broken x86_64 and alpha implementations
60827         * modules/memchr-tests (Depends-on): Move mmap detection...
60828         * modules/memchr (Depends-on): ...here.
60829         (configure.ac): Set indicator.
60830         * lib/string.in.h (memchr): Declare replacement.
60831         * modules/string (Makefile.am): Trigger replacement.
60832         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Likewise.
60833         * m4/memchr.m4 (gl_FUNC_MEMCHR): Use mmap to detect platform
60834         bugs.
60835         * doc/posix-functions/memchr.texi (memchr): Document the bug.
60836         * modules/getpagesize (License): Relax license.
60838 2009-06-11  Bruno Haible  <bruno@clisp.org>
60840         * lib/idpriv.h: Add more references.
60842 2009-06-08  Bruno Haible  <bruno@clisp.org>
60844         Tests for module 'idpriv-droptemp'.
60845         * modules/idpriv-droptemp-tests: New file.
60846         * tests/test-idpriv-droptemp.sh: New file.
60847         * tests/test-idpriv-droptemp.su.sh: New file.
60848         * tests/test-idpriv-droptemp.c: New file.
60850         New module 'idpriv-droptemp'.
60851         * lib/idpriv-droptemp.c: New file.
60852         * modules/idpriv-droptemp: New file.
60854 2009-06-08  Bruno Haible  <bruno@clisp.org>
60856         Tests for module 'idpriv-drop'.
60857         * modules/idpriv-drop-tests: New file.
60858         * tests/test-idpriv-drop.sh: New file.
60859         * tests/test-idpriv-drop.su.sh: New file.
60860         * tests/test-idpriv-drop.c: New file.
60862         New module 'idpriv-drop'.
60863         * lib/idpriv.h: New file.
60864         * lib-idpriv-drop.c: New file.
60865         * m4/idpriv.m4: New file.
60866         * modules/idpriv-drop: New file.
60868 2009-06-08  Bruno Haible  <bruno@clisp.org>
60870         * modules/unistdio/u8-vasnprintf (Depends-on): Add memchr.
60871         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
60872         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
60873         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
60874         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
60875         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
60876         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
60878 2009-06-08  Eric Blake  <ebb9@byu.net>
60880         test-strstr: use memory fence, when possible
60881         * tests/test-strstr.c (main): Use memory fence, in order to be
60882         more likely to trigger Debian bug 521737.
60883         * modules/strstr-tests (Files): Pull in additional files.
60885         memchr: no longer obsolete, for wider field testing
60886         * modules/memchr (Status, Notice): Delete, this module is no
60887         longer obsolete.
60888         * modules/vasnprintf (Depends-on): Add memchr.
60890 2009-06-07  Jim Meyering  <meyering@redhat.com>
60892         hash: declare some functions with the warn_unused_result attribute
60893         * lib/hash.h (__attribute__, ATTRIBUTE_WUR): Define.
60895 2009-06-07  Bruno Haible  <bruno@clisp.org>
60897         * tests/test-alignof.c: Don't test int64_t if it does not exist.
60898         Reported by Eric Blake.
60900 2009-06-06  Eric Blake  <ebb9@byu.net>
60902         test-alignof: fix typo with long double
60903         * tests/test-alignof.c (CHECK): Use longdouble typedef to avoid
60904         compiler error.
60906 2009-06-06  Neil Jerram  <neil@ossau.uklinux.net>  (tiny change)
60908         Escape non-texinfo { and }s.
60909         * doc/ld-output-def.texi (Visual Studio Compatibility): Fix
60910         markup error.
60912 2009-06-04  Jim Meyering  <meyering@redhat.com>
60914         gitlog-to-changelog: don't infloop on an empty commit log
60915         * build-aux/gitlog-to-changelog: Warn about an empty log message.
60916         Reported by Boris Petersen <transacid@centerim.org>.
60918 2009-06-03  Mike Frysinger  <vapier@gentoo.org>
60920         version-etc: extend for packagers
60921         Add three new configure options, intended for packagers:
60922           --with-packager="packager name"
60923           --with-packager-version="packager-specific version"
60924           --with-packager-bug-reports="packager bug reporting"
60925         An example with coreutils:
60926           $ ./configure \
60927             --with-packager=Gentoo \
60928             --with-packager-bug-report=http://bugs.gentoo.org/ \
60929             --with-packager-version="patchset 1.6"
60930           $ ./src/ls --version | head -n2
60931           ls (GNU coreutils) 7.1-dirty
60932           Packaged by Gentoo (patchset 1.6)
60933         Note that the bug reporting info via --help doesn't show up because
60934         coreutils uses its own custom emit_bug_reporting_address() implementation
60935         in src/system.h.  If it didn't, it'd look like:
60936           $ ./src/ls --help | tail -n4
60937           Report bugs to <bug-coreutils@gnu.org>.
60938           Report Gentoo bugs to <http://bugs.gentoo.org/>.
60939           GNU coreutils home page: <http://www.gnu.org/software/coreutils/>.
60940           General help using GNU software: <http://www.gnu.org/gethelp/>.
60941         * lib/version-etc.c: Print new information, if provided.
60942         * m4/version-etc.m4: New file.
60943         * modules/version-etc (Files): Add m4/version-etc.m4.
60944         (configure.ac): Add gl_VERSION_ETC.
60946 2009-05-31  Bruno Haible  <bruno@clisp.org>
60948         * tests/test-alignof.c: Include <stdint.h>. Check also 'long double'
60949         and 'int64_t'.
60950         * modules/alignof-tests (Dependencies): Add stdint.
60951         Reported by Eric Blake.
60953 2009-05-31  Bruno Haible  <bruno@clisp.org>
60955         * lib/alignof.h (alignof_slot, alignof_type, alignof): Document
60956         restriction due to compiler bugs.
60957         Reported by Eric Blake.
60959 2009-05-31  Simon Josefsson  <simon@josefsson.org>
60960             Bruno Haible  <bruno@clisp.org>
60962         Fix test-alignof failure.
60963         * lib/alignof.h (alignof_slot): New macro.
60964         (alignof_type): New macro, with the same semantics as the previous
60965         'alignof'.
60966         (alignof): Alias to alignof_slot.
60967         * tests/test-alignof.c (CHECK): Check alignof_slot, not alignof. Also
60968         check that the results are usable as constant expressions.
60970 2009-05-31  Bruno Haible  <bruno@clisp.org>
60972         * tests/zerosize-ptr.h (zerosize_ptr): Specify more details.
60973         * tests/test-memchr.c (main): Check that memchr does not read past the
60974         first occurrence of the byte.
60975         * tests/test-strstr.c (main): Update comment.
60976         Suggested by Eric Blake.
60978 2009-05-30  Bruno Haible  <bruno@clisp.org>
60980         * doc/ld-output-def.texi (Visual Studio Compatibility): Explain in more
60981         detail how to use dumpbin.
60982         Reported by David Byron <dbyron@dbyron.com>.
60984 2009-06-02  Simon Josefsson  <simon@josefsson.org>
60986         * tests/test-parse-duration.sh: Don't use non-portable 'read -u3'.
60988 2009-06-02  Simon Josefsson  <simon@josefsson.org>
60990         * m4/manywarnings.m4: Add GCC 4.4 warnings.
60992 2009-05-28  Bruno Haible  <bruno@clisp.org>
60994         * gnulib-tool (func_import): Don't do HAVE_CONFIG_H replacements on
60995         build-aux/ files.
60997 2009-05-28  Simon Josefsson  <simon@josefsson.org>
60999         * gnulib-tool (func_import): Transform license on build-aux/ files too.
61001 2009-05-27  Simon Josefsson  <simon@josefsson.org>
61003         * gnulib-tool (sed_transform_main_lib_file)
61004         (sed_transform_testsrelated_lib_file): : Don't use non-POSIX
61005         regexps.
61007 2009-05-26  Simon Josefsson  <simon@josefsson.org>
61009         * tests/test-strstr.c: Add another self-test.
61010         * tests/test-strstr.c: Rewrite to use malloc/strcpy instead of
61011         strdup.  Suggested by Eric Blake  <ebb9@byu.net>.
61013 2009-05-23  Bruno Haible  <bruno@clisp.org>
61015         * doc/havelib.texi (AC_LIB_HAVE_LINKFLAGS): Update for 2009-04-26
61016         change.
61018 2009-05-21  Bruno Haible  <bruno@clisp.org>
61020         Simplify use of mode_t varargs.
61021         * lib/open.c (open): Use PROMOTED_MODE_T instead of a conditional that
61022         uses 'mode_t' or 'int'.
61023         * lib/openat.c (openat): Likewise.
61024         * lib/open-safer.c (open_safer): Likewise.
61025         * m4/mode_t.m4: New file.
61026         * m4/open.m4 (gl_PREREQ_OPEN): Require gl_PROMOTED_TYPE_MODE_T.
61027         * m4/openat.m4 (gl_PREREQ_OPENAT): Likewise.
61028         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Likewise.
61029         * modules/open (Files): Add m4/mode_t.m4.
61030         * modules/openat (Files): Likewise.
61031         * modules/fcntl-safer (Files): Likewise.
61032         Suggested by Eric Blake.
61034 2009-05-21  Pádraig Brady  <P@draigbrady.com>
61036         * doc/glibc-functions/fallocate.texi: New file.
61037         * doc/gnulib.texi: Include it.
61039 2009-05-21  Eric Blake  <ebb9@byu.net>
61040             Bruno Haible  <bruno@clisp.org>
61042         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Remove redundant m4_quote
61043         invocations.
61044         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
61046 2009-05-21  Eric Blake  <ebb9@byu.net>
61047             Bruno Haible  <bruno@clisp.org>
61049         Second attempt to work around an AIX 5.3, 6.1 compiler bug with
61050         include_next. Fix of 2008-11-20 commit.
61051         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Also set
61052         NEXT_AS_FIRST_DIRECTIVE_FOO_H.
61053         * lib/math.in.h: Use NEXT_AS_FIRST_DIRECTIVE_MATH_H instead of
61054         NEXT_MATH_H.
61055         * modules/math (Makefile.am): Substitute NEXT_AS_FIRST_DIRECTIVE_MATH_H
61056         instead of NEXT_MATH_H.
61058 2009-05-21  Bruno Haible  <bruno@clisp.org>
61060         Avoid redefinition warnings for SIZE_MAX.
61061         * m4/size_max.m4 (gl_SIZE_MAX): Avoid redefining SIZE_MAX in config.h.
61062         Reported by Simon Josefsson.
61064 2009-05-21  Bruno Haible  <bruno@clisp.org>
61066         * m4/size_max.m4 (gl_SIZE_MAX): Use AC_CACHE_CHECK instead of
61067         AC_CACHE_VAL.
61069 2009-05-20  Bruno Haible  <bruno@clisp.org>
61071         Make zeroptr.h work on mingw.
61072         * tests/zerosize-ptr.h: Test for the presence of <sys/mman.h> and
61073         mprotect.
61074         * modules/memchr-tests (configure.ac): Also test for sys/mman.h.
61075         * modules/memchr2-tests (configure.ac): Likewise.
61076         * modules/memcmp-tests (configure.ac): Likewise.
61077         * modules/memmem-tests (configure.ac): Likewise.
61078         * modules/memrchr-tests (configure.ac): Likewise.
61079         Reported by Simon Josefsson.
61081 2009-05-20  Simon Josefsson  <simon@josefsson.org>
61083         * tests/test-glob.c: Include string.h for strcmp prototype.
61085 2009-05-20  Simon Josefsson  <simon@josefsson.org>
61087         * modules/getdelim (Depends-on): Add explicit stdint, although it
61088         was implicitly already pulled in via realloc-posix.
61089         * lib/getdelim.c: Get SIZE_MAX from stdint.h.
61091 2009-05-20  Simon Josefsson  <simon@josefsson.org>
61093         MinGW and IRIX does not have sa_family_t type.  Reported by "Tom
61094         G. Christensen" <tgc@jupiterrise.com>.
61095         * m4/sys_socket_h.m4: Check for sa_family_t.
61096         * lib/sys_socket.in.h: Typedef sa_family_t when needed.
61097         * modules/sys_socket: Substitute HAVE_SA_FAMILY_T.
61098         * tests/test-sys_socket.c: Check that sa_family_t works.
61100 2009-05-18  Eric Blake  <ebb9@byu.net>
61102         maint.mk: allow gnulib_dir in VPATH build
61103         * top/maint.mk (gnulib_dir): Make relative to $(srcdir).
61105 2009-05-15  Jim Meyering  <meyering@redhat.com>
61107         maint.mk: Give gnulib_dir a default definition.
61108         * top/maint.mk (gnulib_dir): Define to 'gnulib', by default.
61109         Thus, most packages no longer need to specify this variable in cfg.mk
61111 2009-05-14  Tom Prince  <tom.prince@ualberta.net>  (tiny change)
61113         rename.m4: fix typos that would make non-mingw cross-configure fail
61114         * m4/rename.m4 (gl_FUNC_RENAME): Fix typos.
61116 2009-05-13  Eric Blake  <ebb9@byu.net>
61118         mmap-anon: avoid out-of-order autoconf expansion
61119         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Use correct
61120         SYSTEM_EXTENSIONS macro to silence warnings from autoconf 2.63b.
61121         * modules/memchr-tests (Depends-on): Add extensions.
61122         * modules/memchr2-tests (Depends-on): Add extensions.
61123         * modules/memcmp-tests (Depends-on): Add extensions.
61124         * modules/memmem-tests (Depends-on): Add extensions.
61125         * modules/memrchr-tests (Depends-on): Add extensions.
61127 2009-05-13  Bruno Haible  <bruno@clisp.org>
61129         Make some tests ISO C 99 compliant.
61130         * tests/zerosize-ptr.h: New file.
61131         * tests/test-memchr.c: Include zerosize-ptr.h.
61132         (main): Use a zero-size object pointer instead of NULL.
61133         * tests/test-memchr2.c: Include zerosize-ptr.h.
61134         (main): Use a zero-size object pointer instead of NULL.
61135         * tests/test-memcmp.c: Include zerosize-ptr.h.
61136         (main): Use a zero-size object pointer instead of NULL.
61137         * tests/test-memmem.c: Include zerosize-ptr.h.
61138         (main): Use a zero-size object pointer instead of NULL.
61139         * tests/test-memrchr.c: Include zerosize-ptr.h.
61140         (main): Use a zero-size object pointer instead of NULL.
61141         * modules/memchr-tests (Files): Add tests/zerosize-ptr.h,
61142         m4/mmap-anon.m4.
61143         (Depends-on): Add getpagesize.
61144         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
61145         * modules/memchr2-tests (Files): Add tests/zerosize-ptr.h,
61146         m4/mmap-anon.m4.
61147         (Depends-on): Add getpagesize.
61148         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
61149         * modules/memcmp-tests (Files): Add tests/zerosize-ptr.h,
61150         m4/mmap-anon.m4.
61151         (Depends-on): Add getpagesize.
61152         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
61153         * modules/memmem-tests (Files): Add tests/zerosize-ptr.h,
61154         m4/mmap-anon.m4.
61155         (Depends-on): Add getpagesize.
61156         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
61157         * modules/memrchr-tests (Files): Add tests/zerosize-ptr.h,
61158         m4/mmap-anon.m4.
61159         (Depends-on): Add getpagesize.
61160         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
61162 2009-05-12  Bruno Haible  <bruno@clisp.org>
61164         Tests for module 'alignof'.
61165         * modules/alignof-tests: New file.
61166         * tests/test-alignof.c: New file.
61168 2009-05-12  Bruno Haible  <bruno@clisp.org>
61170         Fix alignof macro.
61171         * lib/alignof.h (alignof): Remove special cases for AIX and HP-UX
61172         vendor compilers that are always correct.
61174 2009-05-12  Bruno Haible  <bruno@clisp.org>
61176         Make the MAP_ANONYMOUS detection work on HP-UX 11.
61177         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Check whether mmap exists, but
61178         not whether its fully works.
61180 2009-05-12  Bruno Haible  <bruno@clisp.org>
61182         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Add comments.
61184 2009-05-12  Jim Meyering  <meyering@redhat.com>
61186         * top/maint.mk: Adjust backslash alignment.
61188 2009-05-11  Simon Josefsson  <simon@josefsson.org>
61190         * top/maint.mk: Make $(srcdir)/build-aux configurable.
61192 2009-05-11  Eric Blake  <ebb9@byu.net>
61194         argp: avoid undefined behavior
61195         * lib/argp-fmtstream.c (weak_alias): Pass correct types to ctype
61196         macros.
61198 2009-05-08  Simon Josefsson  <simon@josefsson.org>
61200         * tests/test-vc-list-files-git.sh: Do git config of user.email and
61201         user.name to prevent git commit from complaining.
61203 2009-05-10  Bruno Haible  <bruno@clisp.org>
61205         * gnulib-tool (func_import, func_create_testdir, copy-file): Change
61206         sed_rewrite_old_files, sed_rewrite_new_files, sed_rewrite_files so that
61207         it rewrites every file name only once.
61208         Reported by Simon Josefsson. Helped by Ralf Wildenhues.
61210 2009-05-08  Bruno Haible  <bruno@clisp.org>
61212         * lib/sys_socket.in.h (_SS_PADSIZE): Use a conditional expression
61213         instead of 'max'.
61215 2009-05-08  Simon Josefsson  <simon@josefsson.org>
61217         * m4/sys_socket_h.m4: Test for ws2tcpip.h earlier, needed for
61218         sockaddr_storage test.
61220 2009-05-07  Simon Josefsson  <simon@josefsson.org>
61222         * modules/sys_socket (Makefile.am): Substitute
61223         HAVE_STRUCT_SOCKADDR_STORAGE.  Depend on alignof.
61224         * m4/sys_socket_h.m4: Check for sockaddr_storage.
61225         * lib/sys_socket.in.h (sockaddr_storage): Define when needed.
61226         * tests/test-sys_socket.c: Check sockaddr_storage.
61228 2009-05-08  Bruno Haible  <bruno@clisp.org>
61230         New module 'alignof'.
61231         * lib/alignof.h: New file.
61232         * modules/alignof: New file.
61234 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
61235             Bruno Haible  <bruno@clisp.org>
61237         Fix test-file-has-acl on FreeBSD.
61238         * tests/test-file-has-acl.sh: Also test a directory. On FreeBSD, the
61239         mask is implicitly added.
61240         * tests/test-file-has-acl.c: Include <signal.h>.
61241         (main): Terminate the test after 5 seconds.
61242         * modules/acl-tests (configure.ac): Check for alarm function.
61244 2009-05-04  Bruno Haible  <bruno@clisp.org>
61246         Exploit new semantics of AC_DEFUN_ONCE available since 2009-01-26.
61247         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Remove outdated comment.
61248         * modules/errno (configure.ac): Drop AC_REQUIRE.
61249         * m4/multiarch.m4 (gl_MULTIARCH): Remove outdated comment.
61250         * modules/multiarch (configure.ac): Drop AC_REQUIRE.
61252 2009-05-04  Simon Josefsson  <simon@josefsson.org>
61254         * modules/glob-tests: New module.
61255         * tests/test-glob.c: Add.
61257 2009-05-04  Simon Josefsson  <simon@josefsson.org>
61259         * modules/fnmatch-tests: New module.
61260         * tests/test-fnmatch.c: Add.
61262 2009-05-04  Eric Blake  <ebb9@byu.net>
61264         maint: make the new no-submodule-changes rule VPATH-safe
61265         * top/maint.mk (no-submodule-changes): Don't assume a srcdir build.
61267 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
61268             Bruno Haible  <bruno@clisp.org>
61270         acl: Fix infinite loop on FreeBSD.
61271         * lib/acl_entries.c (acl_entries) [Linux, FreeBSD]: Fix interpretation
61272         of return value from acl_get_entry.
61273         * lib/file-has-acl.c (acl_access_nontrivial) [Linux, FreeBSD]:
61274         Likewise.
61276 2009-05-03  Bruno Haible  <bruno@clisp.org>
61278         * lib/acl-internal.h (acl_entries): Clarify return value.
61279         * lib/acl_entries.c (acl_entries): Likewise.
61281 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
61283         Bug fix in acl module.
61284         * lib/set-mode-acl.c: Use correct struct with ACL_SETACL.
61286 2009-05-03  Bruno Haible  <bruno@clisp.org>
61288         Create gperf-generated file in the source dir, not in the build dir.
61289         * modules/iconv_open (iconv_open-aix.h, iconv_open-hpux.h,
61290         iconv_open-irix.h, iconv_open-osf.h): Create file in the source tree.
61291         * modules/unicase/locale-language (unicase/locale-languages.h):
61292         Likewise.
61293         * modules/unicase/special-casing (unicase/special-casing-table.h):
61294         Likewise.
61295         * modules/unictype/property-byname (unictype/pr_byname.h): Likewise.
61296         * modules/unictype/scripts (unictype/scripts_byname.h): Likewise.
61297         * modules/uninorm/composition (uninorm/composition-table.h): Likewise.
61298         Reported by Ralf Wildenhues.
61300 2009-05-03  Bruno Haible  <bruno@clisp.org>
61302         * modules/fnmatch (Description, configure.ac): Taken from
61303         fnmatch-posix.
61304         * modules/fnmatch-posix: Turn into a symbolic reference to the
61305         'fnmatch' module, and deprecate.
61306         * doc/posix-functions/fnmatch.texi: Mention the fnmatch module.
61308 2009-05-03  Bruno Haible  <bruno@clisp.org>
61310         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF,
61311         gl_PREREQ_VASNPRINTF_LONG_DOUBLE): Define through AC_DEFUN_ONCE.
61312         Reported by Ralf Wildenhues.
61314 2009-05-04  Simon Josefsson  <simon@josefsson.org>
61316         * m4/fnmatch.m4: Fix fnmatch re-define.
61318 2009-04-27  David Bartley  <dtbartle@csclub.uwaterloo.ca>
61320         priv-set: new module and tests; adapt write-any-file
61321         * lib/priv-set.c: New file.
61322         * lib/priv-set.h: New file.
61323         * lib/unlinkdir.c: Make cannot_unlink_dir thread-safe.
61324         * lib/write-any-file.c: Simplify by using priv-set module.
61325         * m4/priv-set.m4: New file.
61326         * modules/priv-set: New file.
61327         * modules/unlinkdir: Add dependency on priv-set module.
61328         * modules/write-any-file: Likewise.
61330         Tests for module 'priv-set'.
61331         * modules/priv-set-tests: New file.
61332         * tests/test-priv-set.c: New file.
61334 2009-05-03  Jim Meyering  <meyering@redhat.com>
61335             Bruno Haible  <bruno@clisp.org>
61337         * lib/propername.c (proper_name_utf8): Ignore no-op translations;
61338         use the converted UTF-8 variant of the name instead.
61340 2009-05-03  Jim Meyering  <meyering@redhat.com>
61342         tests: tighten some getdate tests
61343         * tests/test-getdate.c (main): Tighten tests: require equality,
61344         not just greater than.  Set TZ envvar to UTC0.
61346 2009-05-03  Giuseppe Scrivano  <gscrivano@gnu.org>
61348         getdate: correctly interpret "next monday" when run on a Monday
61349         * lib/getdate.y (get_date): Correct the calculation of tm_mday so
61350         that e.g., "next tues" (when run on a tuesday) results in a date
61351         that is one week in the future, and not today's date.
61352         I.e., add a week when the wday is the same as the current one.
61353         Reported by Tom Broadhurst in http://savannah.gnu.org/bugs/?25406,
61354         and earlier by Martin Bernreuther and Jan Minář.
61355         * tests/test-getdate.c (main): Check that "next DAY" is always in
61356         the future and that "last DAY" is always in the past.
61358 2009-05-02  Jim Meyering  <meyering@redhat.com>
61360         build: ensure that a release build fails when a submodule is unclean
61361         * top/maint.mk (no-submodule-changes): New rule.
61362         (alpha beta major): Depend on it.
61364 2009-05-02  Bruno Haible  <bruno@clisp.org>
61366         Remove incompatibility between modules fnmatch-posix and fnmatch-gnu.
61367         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX, gl_FUNC_FNMATCH_GNU): Use a
61368         shell variable gl_fnmatch_required to detect which variant is
61369         requested.
61370         (_AC_FUNC_FNMATCH_IF, _AC_LIBOBJ_FNMATCH): Remove macros. Inlined into
61371         gl_FUNC_FNMATCH_POSIX.
61372         * gnulib-tool (func_create_testdir, func_create_megatestdir): Don't
61373         exclude fnmatch-posix.
61375 2009-05-02  Bruno Haible  <bruno@clisp.org>
61377         Relicense mbsrtowcs and strnlen1 under LGPLv2+.
61378         * modules/mbsrtowcs (License): Change to LGPLv2+.
61379         * modules/strnlen1 (License): Likewise.
61380         Reported by Simon Josefsson.
61382 2009-05-02  Bruno Haible  <bruno@clisp.org>
61384         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Say "guessing no" instead of
61385         "cross".
61386         (gl_FUNC_FNMATCH_POSIX, gl_FUNC_FNMATCH_GNU): Update. Don't assume that
61387         gnulib-tool was called with option --source-base=lib.
61389 2009-05-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
61391         Use automake *-local hooks without commands, for extensibility.
61392         * modules/localcharset (Makefile.am): Rename install-exec-local
61393         rule to install-exec-localcharset, and make it a prerequisite of
61394         install-exec-local.  Likewise, rename the uninstall-local rule to
61395         uninstall-localcharset, and make it a prerequisite of the former.
61397 2009-05-01  Bruno Haible  <bruno@clisp.org>
61399         * lib/wchar.in.h (wcsnrtombs): Define if REPLACE_WCSNRTOMBS is 1.
61400         * m4/wcsnrtombs.m4 (gl_FUNC_WCSRTOMBS): Invoke gl_MBSTATE_T_BROKEN, and
61401         set REPLACE_WCSNRTOMBS if mbstate_t must be replaced.
61402         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCSNRTOMBS.
61403         * modules/wchar (Makefile.am): Substitute REPLACE_WCSNRTOMBS.
61404         * modules/wcsnrtombs (Files): Add m4/mbrtowc.m4, m4/locale-ja.m4,
61405         m4/locale-zh.m4, m4/codeset.m4.
61407         * m4/wcsrtombs.m4 (gl_FUNC_WCSNRTOMBS): Invoke gl_MBSTATE_T_BROKEN, and
61408         set REPLACE_WCSRTOMBS if mbstate_t must be replaced.
61409         * modules/wcsrtombs (Files): Add m4/mbrtowc.m4, m4/locale-ja.m4,
61410         m4/locale-zh.m4.
61412         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Invoke gl_MBSTATE_T_BROKEN, and set
61413         REPLACE_WCRTOMB if mbstate_t must be replaced.
61414         * modules/wcrtomb (Files): Add m4/mbrtowc.m4.
61415         Reported by Jens Rehsack <rehsack@googlemail.com> via Eric Blake.
61417 2009-05-01  Bruno Haible  <bruno@clisp.org>
61419         Avoid compiler warnings when redefining macros defined by <libintl.h>.
61420         * lib/gettext.h [!ENABLE_NLS] (gettext, dgettext, dcgettext, ngettext,
61421         dngettext, dcngettext, textdomain, bindtextdomain,
61422         bind_textdomain_codeset): Undefine before redefining.
61424 2009-04-30  Bruno Haible  <bruno@clisp.org>
61426         Fix bug introduced on 2009-04-25.
61427         * lib/math.in.h (gl_signbitf_OPTIMIZED_MACRO,
61428         gl_signbitd_OPTIMIZED_MACRO, gl_signbitl_OPTIMIZED_MACRO): New macros.
61429         * lib/signbitf.c (gl_signbitd): Undefine if gl_signbitf_OPTIMIZED_MACRO
61430         is defined.
61431         * lib/signbitd.c (gl_signbitd): Undefine if gl_signbitd_OPTIMIZED_MACRO
61432         is defined.
61433         * lib/signbitl.c (gl_signbitd): Undefine if gl_signbitl_OPTIMIZED_MACRO
61434         is defined.
61435         Reported by Elbert_Pol <elbert.pol@gmail.com>.
61437 2009-04-28  Bruno Haible  <bruno@clisp.org>
61439         Comment tweaks.
61440         * lib/unistr.h (u*_cmp2): Clarify what memcmp2 is.
61441         * lib/uninorm.h (u*_normxfrm): Fix description of return value.
61442         * lib/unicase.h (u*_casexfrm): Likewise.
61443         Reported by Paolo Bonzini.
61445 2009-04-28  Bruno Haible  <bruno@clisp.org>
61447         Fix a compilation error.
61448         * lib/mbsrtowcs-state.c (_gl_mbsrtowcs_state): Fix initializer.
61449         * lib/wcsrtombs-state.c (_gl_wcsrtombs_state): Likewise.
61450         Reported by Jim Meyering.
61452 2009-04-27  Bruno Haible  <bruno@clisp.org>
61454         New module 'libunistring'.
61455         * modules/libunistring: New file.
61456         * m4/libunistring.m4: New file.
61457         * MODULES.html.sh (Unicode string functions): Add it.
61459 2009-04-27  Eric Blake  <ebb9@byu.net>
61461         maint.mk: allow package-specific header to provide <config.h>
61462         * top/maint.mk (sc_require_config_h): New variable.
61463         (sc_require_config_h, sc_require_config_h_first): Use it.
61465 2009-04-27  Simon Josefsson  <simon@josefsson.org>
61467         * top/maint.mk (sc_avoid_if_before_free): Except
61468         useless-if-before-free script.
61470 2009-04-27  Eric Blake  <ebb9@byu.net>
61472         maintainer-makefile: depend on all required helper scripts
61473         * modules/maintainer-makefile (Depends-on): Add vc-list-files and
61474         useless-if-before-free.
61475         * top/maint.mk (VC_LIST, sc_avoid_if_before_free): Use local
61476         version, rather than assuming gnulib checkout is available.
61477         Reported by Simen Josefsson.
61479 2009-04-26  Bruno Haible  <bruno@clisp.org>
61481         Make the lib vs. lib64 recognition work on openSUSE 11 with "gcc -m32".
61482         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): Ignore paths that end in
61483         "../" or "..".
61485 2009-04-26  Bruno Haible  <bruno@clisp.org>
61487         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Accept a fifth argument.
61488         * m4/libsigsegv.m4 (gl_LIBSIGSEGV): Simplify by using
61489         AC_LIB_HAVE_LINKFLAGS.
61491 2009-04-26  Bruno Haible  <bruno@clisp.org>
61493         Simplify calling convention of u*_conv_from_encoding.
61494         * lib/uniconv.h (u8_conv_from_encoding, u16_conv_from_encoding,
61495         u32_conv_from_encoding): Expect a resultbuf argument and return the
61496         result directly as a pointer.
61497         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Likewise.
61498         * lib/uniconv/u-conv-from-enc.h (FUNC): Likewise.
61499         * lib/uniconv/u-strconv-from-enc.h (FUNC): Update.
61500         * lib/unicase/ulc-casecmp.c (ulc_u8_casefold): Update.
61501         * lib/unicase/ulc-casexfrm.c (ulc_casexfrm): Update.
61502         * lib/unilbrk/ulc-possible-linebreaks.c (ulc_possible_linebreaks):
61503         Update.
61504         * lib/unilbrk/ulc-width-linebreaks.c (ulc_width_linebreaks): Update.
61505         * lib/uniwbrk/ulc-wordbreaks.c (ulc_wordbreaks): Update.
61506         * lib/vasnprintf.c (VASNPRINTF): Update.
61507         * tests/uniconv/test-u8-conv-from-enc.c (main): Update.
61508         * tests/uniconv/test-u16-conv-from-enc.c (main): Update.
61509         * tests/uniconv/test-u32-conv-from-enc.c (main): Update.
61510         * NEWS: Mention the change.
61512 2009-04-26  Bruno Haible  <bruno@clisp.org>
61514         Simplify calling convention of u*_conv_to_encoding.
61515         * lib/uniconv.h (u8_conv_to_encoding, u16_conv_to_encoding,
61516         u32_conv_to_encoding): Expect a resultbuf argument and return the
61517         result directly as a pointer.
61518         * lib/uniconv/u8-conv-to-enc.c (u8_conv_to_encoding): Likewise.
61519         * lib/uniconv/u-conv-to-enc.h (FUNC): Likewise. Preserve errno while
61520         freeing scaled_offsets if mem_iconveha failed.
61521         * lib/unicase/u-casexfrm.h (FUNC): Update.
61522         * lib/uninorm/u-normxfrm.h (FUNC): Update.
61523         * lib/vasnprintf.c (VASNPRINTF): Update.
61524         * tests/uniconv/test-u8-conv-to-enc.c (main): Update.
61525         * tests/uniconv/test-u16-conv-to-enc.c (main): Update.
61526         * tests/uniconv/test-u32-conv-to-enc.c (main): Update.
61527         * NEWS: Mention the change.
61529 2009-04-26  Bruno Haible  <bruno@clisp.org>
61531         Avoid test failures on AIX and OSF/1.
61532         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Avoid calling
61533         malloc(0).
61534         * lib/uniconv/u8-conv-to-enc.c (u8_conv_to_encoding): Likewise.
61535         * lib/unilbrk/ulc-possible-linebreaks.c (ulc_possible_linebreaks):
61536         Likewise.
61537         * lib/unilbrk/ulc-width-linebreaks.c (ulc_width_linebreaks): Likewise.
61538         * lib/uniwbrk/ulc-wordbreaks.c (ulc_wordbreaks): Likewise.
61539         * lib/uniconv/u-conv-to-enc.h (FUNC): Likewise. Fix memory leak.
61540         * lib/unistr/u-cpy-alloc.h (FUNC): Call malloc(1) instead of malloc(0).
61541         * doc/posix-functions/malloc.texi: Document the portability problem
61542         related to malloc(0).
61544 2009-04-26  Bruno Haible  <bruno@clisp.org>
61546         * modules/unistr/u8-cpy-alloc (Depends-on): Add malloc-posix.
61547         * modules/unistr/u16-cpy-alloc (Depends-on): Likewise.
61548         * modules/unistr/u32-cpy-alloc (Depends-on): Likewise.
61550 2009-04-25  Bruno Haible  <bruno@clisp.org>
61552         Avoid link error when creating a namespace clean library.
61553         * lib/math.in.h (gl_signbitf, gl_signbitd, gl_signbitl): Don't define
61554         as macro with arguments if already defined as an alias.
61555         * lib/signbitf.c (gl_signbitf): Don't undefine.
61556         * lib/signbitd.c (gl_signbitd): Don't undefine.
61557         * lib/signbitl.c (gl_signbitl): Don't undefine.
61559 2009-04-25  Jim Meyering  <meyering@redhat.com>
61561         vc-list-files: fix another quoting bug
61562         * build-aux/vc-list-files: Avoid sed backslash expansion
61563         of pathological directory names.
61565 2009-04-25  Eric Blake  <ebb9@byu.net>
61567         vc-list-files: fix shell quoting error
61568         * build-aux/vc-list-files: Protect against $ in $dir.  Normalize
61569         timestamp.
61571 2009-04-25  Jim Meyering  <meyering@redhat.com>
61573         vc-list-files: restore lost functionality with subdir argument
61574         * build-aux/vc-list-files: When given a non-"." sub-directory
61575         argument, substitute the $dir/ prefix back onto each resulting name.
61576         Otherwise, coreutils' root_tests check would fail.
61578 2009-04-24  Eric Blake  <ebb9@byu.net>
61580         vc-list-files: ignore git symlinks
61581         * build-aux/vc-list-files (.git): Use ls-tree and a filter, rather
61582         than ls-files, to ignore git symlinks.
61584         maint.mk: import improvements from m4
61585         * top/maint.mk (VC-tag): Use signing key from cfg.mk.
61586         (move_if_change): Delete unused macro.
61587         (news-date-check, vc-diff-check): Support VPATH builds.
61588         (announcement): Likewise.  Split --bootstrap-tools list...
61589         (boostrap-tools): ...into separate list, which can be overridden
61590         in cfg.mk.
61591         (sc_avoid_if_before_free): Point to $(gnulib_dir), rather than
61592         requiring dependency on useless-if-before-free module.
61593         (VC_LIST, VC_LIST_EXCEPT): Likewise for vc-list-files module.
61594         Support VPATH builds.
61596 2009-04-24  Jim Meyering  <meyering@redhat.com>
61598         maint.mk: remove coreutils-specific rules and variables
61599         * top/maint.mk (bin, taint-distcheck, coreutils-path-check, t): Remove.
61600         (fake_home, install-transform-check, my-instcheck, pfx, TMPDIR): Remove.
61601         (t_prefix, t_taint, tp, warn_cflags, write_loser, my-distcheck): Remove.
61603         maint.mk: remove obsolete rule
61604         * top/maint.mk (rel-check): Remove rule.
61605         (WGET, WGETFLAGS): Remove now-unused variables.
61607 2009-04-24  Simon Josefsson  <simon@josefsson.org>
61609         * top/maint.mk (makefile-check): Renamed to sc_makefile_check for
61610         consistency.
61612         * modules/vc-list-files-tests (TESTS_ENVIRONMENT): Use
61613         '$(PATH_SEPARATOR)' instead of ':'.
61615 2009-04-24  Simon Josefsson  <simon@josefsson.org>
61617         * lib/getopt1.c (main): Use 'const' for static array.
61619 2009-04-24  Simon Josefsson  <simon@josefsson.org>
61621         * top/maint.mk: Sync with coreutils.
61622         * NEWS: Explain incompatibilities.
61624 2009-04-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
61625             Bruno Haible  <bruno@clisp.org>
61627         Fix cross-compilation results.
61628         * m4/btowc.m4 (gl_FUNC_BTOWC): Use no-op statement, rather than empty
61629         statement, as third argument of AC_TRY_RUN.
61630         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE, gl_MBRTOWC_SANITYCHECK,
61631         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL):
61632         Likewise.
61633         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
61634         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_TERMINATION, gl_WCSRTOMBS_NULL):
61635         Likewise.
61636         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
61637         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise. Update for AIX 4.3.
61638         * doc/posix-functions/wcrtomb.texi: Mention the bug on AIX 4.3.
61640 2009-04-20  Bruno Haible  <bruno@clisp.org>
61642         Avoid test failure on mingw.
61643         * tests/uniwidth/test-uc_width2.sh: Convert newlines in output.
61645 2009-04-20  Bruno Haible  <bruno@clisp.org>
61647         Avoid compilation error on mingw.
61648         * modules/localename-tests (Depends-on): Add locale.
61650 2009-04-19  Bruno Haible  <bruno@clisp.org>
61652         Support for building a shared library on Windows platforms.
61653         * tests/uninorm/test-nfc.c (n): Don't define if WOE32DLL.
61654         (main): Test the presence of UNINORM_NFC here.
61655         * tests/uninorm/test-nfd.c (n): Don't define if WOE32DLL.
61656         (main): Test the presence of UNINORM_NFD here.
61657         * tests/uninorm/test-nfkc.c (n): Don't define if WOE32DLL.
61658         (main): Test the presence of UNINORM_NFKC here.
61659         * tests/uninorm/test-nfkd.c (n): Don't define if WOE32DLL.
61660         (main): Test the presence of UNINORM_NFKD here.
61662 2009-04-19  Bruno Haible  <bruno@clisp.org>
61664         Avoid a compiler warning.
61665         * tests/uninorm/test-u32-normalize-big.c (read_normalization_test_file):
61666         Change type of variable 'sequence'.
61668 2009-04-19  Bruno Haible  <bruno@clisp.org>
61670         * modules/configmake (Makefile.am): When the contents of configmake.h
61671         does not change, arrange to preserve its modification time.
61673 2009-04-17  Simon Josefsson  <simon@josefsson.org>
61675         * top/maint.mk (PO_DOMAIN): New variable, allows overriding of
61676         gettext domain.
61678 2009-04-16  Jim Meyering  <meyering@redhat.com>
61680         useless-if-before-free: improve conversion code
61681         * build-aux/useless-if-before-free: Adjust code-in-comment to match
61682         "...!= 0" as well as "...!= NULL".  emacs has one of the former.
61684 2009-04-14  Bruno Haible  <bruno@clisp.org>
61686         * modules/fcntl (Depends-on): Add extensions.
61687         * m4/fcntl_h.m4 (gl_FCNTL_H): Add a comment.
61689 2009-04-12  Ben Pfaff  <blp@gnu.org>
61691         Make fcntl module detect O_NOATIME, O_NOFOLLOW on GNU/Linux.
61692         * m4/fcntl_h.m4 (gl_FCNTL_H): Require AC_USE_SYSTEM_EXTENSIONS.
61694 2009-03-20  Ben Pfaff  <blp@gnu.org>
61696         Make rename replace existing destinations on Windows.
61697         * m4/rename.m4: Add test for Mingw.
61698         * lib/rename.c: Add rename replacement that uses MoveFileEx with
61699         MOVEFILE_REPLACE_EXISTING to replace existing destination files.
61700         * doc/posix-functions/rename.texi: Document.
61702 2009-04-10  Bruno Haible  <bruno@clisp.org>
61704         New include file "iconveh.h".
61705         * lib/iconveh.h: New file, extracted from lib/striconveh.h.
61706         * lib/striconveh.h: Include it.
61707         (enum iconv_ilseq_handler): Remove definition.
61708         * lib/striconveha.h: Include <stddef.h> and iconveh.h instead of
61709         striconveh.h.
61710         * lib/striconveha.c: Include striconveh.h.
61711         * lib/uniconv.h: Include iconveh.h instead of striconveh.h.
61712         * modules/striconveh (Files): Add lib/iconveh.h.
61713         * modules/uniconv/base (Files): Add lib/iconveh.h. Remove
61714         lib/striconveh.h.
61716 2009-04-10  Bruno Haible  <bruno@clisp.org>
61718         * lib/uniconv.h: Update comment.
61720 2009-04-10  Bruno Haible  <bruno@clisp.org>
61722         * lib/unistr/u8-mbtouc-aux.c: Inside libunistring, define the function
61723         always.
61724         * lib/unistr/u8-mbtouc-unsafe-aux.c: Likewise.
61725         * lib/unistr/u16-mbtouc-aux.c: Likewise.
61726         * lib/unistr/u16-mbtouc-unsafe-aux.c: Likewise.
61727         * lib/unistr/u8-mbtouc.c: Inside libunistring, include
61728         "unistring-notinline.h", so that the function gets defined always.
61729         * lib/unistr/u8-mbtouc-unsafe.c: Likewise.
61730         * lib/unistr/u8-uctomb.c: Likewise.
61731         * lib/unistr/u16-mbtouc.c: Likewise.
61732         * lib/unistr/u16-mbtouc-unsafe.c: Likewise.
61733         * lib/unistr/u16-uctomb.c: Likewise.
61734         * lib/unistr/u32-mbtouc.c: Likewise.
61735         * lib/unistr/u32-mbtouc-unsafe.c: Likewise.
61736         * lib/unistr/u32-uctomb.c: Likewise.
61738 2009-04-10  Bruno Haible  <bruno@clisp.org>
61740         Mark 'utime' obsolete.
61741         * modules/utime (Status, Notice): New sections.
61742         Suggested by Jim Meyering.
61744         Fix cross-compile guess for utime test.
61745         * m4/utime.m4 (AC_FUNC_UTIME_NULL): Add definition from newest unstable
61746         autoconf.
61747         * doc/posix-functions/utime.texi: Give more precisions.
61748         Reported by Jan <ipif@ymail.com>.
61750 2009-04-09  Kamil Dudka  <kdudka@redhat.com>
61752         filevercmp: correct today's change
61753         * lib/filevercmp.c: Also handle coreutils' test inputs.
61754         * tests/test-filevercmp.c: Add inputs from one of coreutils' test scripts.
61756         Fix regression in 'filevercmp' module. Thanks Sven Joachim
61757         for reporting it.
61758         * lib/filevercmp.c: Special handle for "", "." and "..".
61759         * tests/test-filevercmp.c: Enlarge the set suite.
61761 2009-04-07  Jim Meyering  <meyering@redhat.com>
61763         useless-if-before-free: show how to remove braced useless free, too
61764         * build-aux/useless-if-before-free: still only in a comment, though.
61766 2009-04-07  Reuben Thomas  <rrt@sc3d.org>
61768         maint.mk: import changes to syntax-check macros from coreutils
61769         * top/maint.mk (_prohibit_regexp, _header_without_use): Define.
61770         Use them in the relevant macros.
61772 2009-04-06  Bruno Haible  <bruno@clisp.org>
61774         Fix unportable use of bit-fields.
61775         * lib/unicase/special-casing.h (struct special_casing_rule): Change the
61776         bit-field type from 'int' to 'signed int'. Otherwise Solaris cc,
61777         AIX xlc, and OSF/1 cc interpret it as 'unsigned int'.
61779 2009-04-06  Bruno Haible  <bruno@clisp.org>
61781         Avoid test failures on AIX and OSF/1.
61782         * tests/unicase/test-u8-casefold.c (check): Account for the possibility
61783         that malloc(0) = NULL.
61784         * tests/unicase/test-u8-tolower.c (check): Likewise.
61785         * tests/unicase/test-u8-totitle.c (check): Likewise.
61786         * tests/unicase/test-u8-toupper.c (check): Likewise.
61787         * tests/unicase/test-u16-casefold.c (check): Likewise.
61788         * tests/unicase/test-u16-tolower.c (check): Likewise.
61789         * tests/unicase/test-u16-totitle.c (check): Likewise.
61790         * tests/unicase/test-u16-toupper.c (check): Likewise.
61791         * tests/unicase/test-u32-casefold.c (check): Likewise.
61792         * tests/unicase/test-u32-tolower.c (check): Likewise.
61793         * tests/unicase/test-u32-totitle.c (check): Likewise.
61794         * tests/unicase/test-u32-toupper.c (check): Likewise.
61795         * tests/uninorm/test-u8-nfc.c (check): Likewise.
61796         * tests/uninorm/test-u8-nfd.c (check): Likewise.
61797         * tests/uninorm/test-u8-nfkc.c (check): Likewise.
61798         * tests/uninorm/test-u8-nfkd.c (check): Likewise.
61799         * tests/uninorm/test-u16-nfc.c (check): Likewise.
61800         * tests/uninorm/test-u16-nfd.c (check): Likewise.
61801         * tests/uninorm/test-u16-nfkc.c (check): Likewise.
61802         * tests/uninorm/test-u16-nfkd.c (check): Likewise.
61803         * tests/uninorm/test-u32-nfc.c (check): Likewise.
61804         * tests/uninorm/test-u32-nfd.c (check): Likewise.
61805         * tests/uninorm/test-u32-nfkc.c (check): Likewise.
61806         * tests/uninorm/test-u32-nfkd.c (check): Likewise.
61808 2009-04-05  Bruno Haible  <bruno@clisp.org>
61810         Work around an autoconf limitation.
61811         * gnulib-tool (func_emit_lib_Makefile_am): Omit the "Reproduce by"
61812         comment line if it would be longer than 3 KB.
61814 2009-04-05  Bruno Haible  <bruno@clisp.org>
61816         Avoid test failure with libiconv-1.13.
61817         * tests/test-striconveh.c (main): Allow result of libiconv 1.13 as one
61818         of the expected test results.
61820 2009-04-05  Bruno Haible  <bruno@clisp.org>
61822         * gnulib-tool (func_emit_lib_Makefile_am): Don't add the library to
61823         noinst_LTLIBRARIES if the Makefile.am in the same directory specifies
61824         that it should be installed.
61826 2009-04-05  Bruno Haible  <bruno@clisp.org>
61828         * gnulib-tool: New option --copy-file.
61829         (func_usage): Document it.
61830         (func_dest_tmpfilename): Moved out of func_import.
61831         (func_add_file, func_update_file): New functions, extracted from
61832         func_import.
61833         (func_import): Update.
61835 2009-04-05  Karl Berry  <karl@gnu.org>
61837         * README: prominently mention gnulib-tool.
61838         Rearrange sections so getting the code is near the top.
61840 2009-04-05  Bruno Haible  <bruno@clisp.org>
61842         * lib/unicase.h: Mention u*_cmp2.
61843         * lib/unicase/u-casecmp.h (FUNC): Invoke U_CMP2 instead of U_CMP.
61844         * lib/unicase/u8-casecmp.c: Use u8_cmp2 instead of u8_cmp.
61845         * lib/unicase/ulc-casecmp.c: Likewise.
61846         * lib/unicase/u16-casecmp.c: Use u16_cmp2 instead of u16_cmp.
61847         * lib/unicase/u32-casecmp.c: Use u32_cmp2 instead of u32_cmp.
61848         * modules/unicase/u8-casecmp (Depends-on): Add unistr/u8-cmp2, remove
61849         unistr/u8-cmp.
61850         * modules/unicase/ulc-casecmp (Depends-on): Likewise.
61851         * modules/unicase/u16-casecmp (Depends-on): Add unistr/u16-cmp2, remove
61852         unistr/u16-cmp.
61853         * modules/unicase/u32-casecmp (Depends-on): Add unistr/u32-cmp2, remove
61854         unistr/u32-cmp.
61856         * lib/uninorm.h: Mention u*_cmp2.
61857         * lib/uninorm/u-normcmp.h (FUNC): Invoke U_CMP2 instead of U_CMP.
61858         * lib/uninorm/u8-normcmp.c: Use u8_cmp2 instead of u8_cmp.
61859         * lib/uninorm/u16-normcmp.c: Use u16_cmp2 instead of u16_cmp.
61860         * lib/uninorm/u32-normcmp.c: Use u32_cmp2 instead of u32_cmp.
61861         * modules/uninorm/u8-normcmp (Depends-on): Add unistr/u8-cmp2, remove
61862         unistr/u8-cmp.
61863         * modules/uninorm/u16-normcmp (Depends-on): Add unistr/u16-cmp2, remove
61864         unistr/u16-cmp.
61865         * modules/uninorm/u32-normcmp (Depends-on): Add unistr/u32-cmp2, remove
61866         unistr/u32-cmp.
61868         New module 'unistr/u32-cmp2'.
61869         * lib/unistr/u32-cmp2.c: New file.
61870         * modules/unistr/u32-cmp2: New file.
61872         New module 'unistr/u16-cmp2'.
61873         * lib/unistr/u16-cmp2.c: New file.
61874         * modules/unistr/u16-cmp2: New file.
61876         New module 'unistr/u8-cmp2'.
61877         * lib/unistr.h (u8_cmp2, u16_cmp2, u32_cmp2): New declarations.
61878         * lib/unistr/u8-cmp2.c: New file.
61879         * lib/unistr/u-cmp2.h: New file.
61880         * modules/unistr/u8-cmp2: New file.
61882 2009-04-05  Bruno Haible  <bruno@clisp.org>
61884         * lib/unictype.h (uc_property_is_valid): New macro.
61885         * tests/unictype/test-pr_byname.c (main): Use it.
61887         * lib/unistr.h: Doc fixes.
61888         * lib/uniconv.h: Doc fixes.
61889         * lib/unictype.h: Doc fixes.
61891 2009-04-03  Paul Eggert  <eggert@cs.ucla.edu>
61893         Port coreutils 7.2 to Solaris 8.
61895         * modules/arpa_inet (arpa/inet.h): Depend on arpa_inet.in.h.
61896         * m4/inet_ntop.m4 (gl_INET_NTOP): Search for inet_ntop in -lnsl,
61897         for Solaris 8.  This is a bit of a hack, as it means it's the
61898         caller's responsibility to add -lnsl if needed, but most likely it
61899         won't be needed since only getaddrinfo uses this and getaddrinfo
61900         isn't needed on Solaris 8.
61902         * modules/fnmatch (Depends-on): Add mbsrtowcs, to fix a porting
61903         problem to Solaris 8 encountered with coreutils 7.2, which
61904         resulted in a message "fnmatch.c:292: warning: passing argument 4
61905         of 'mbsrtowcs' from incompatible pointer type".  Also, add mbsinit
61906         at the suggestion of Bruno Haible, since fnmatch uses mbsinit.
61908 2009-04-03  Simon Josefsson  <simon@josefsson.org>
61910         * m4/ld-version-script.m4: Add FIXME comment.
61912 2009-04-02  Simon Josefsson  <simon@josefsson.org>
61914         * doc/ld-output-def.texi: Use DLL_VERSION instead of confusing
61915         SOVERSION variable.
61917 2009-04-02  Bruno Haible  <bruno@clisp.org>
61919         * Makefile (info, html, dvi, pdf): Combine the rules.
61920         Suggested by Jim Meyering.
61922 2009-04-01  Bruno Haible  <bruno@clisp.org>
61924         * Makefile (info, html, dvi, pdf): New targets.
61925         Reported by Reuben Thomas <rrt@sc3d.org>.
61927 2009-04-01  Bruno Haible  <bruno@clisp.org>
61929         * doc/gnulib-tool.texi (Invoking gnulib-tool): Document how gnulib-tool
61930         can be put into PATH.
61931         Reported by Reuben Thomas <rrt@sc3d.org>. Suggested by Karl Berry.
61933 2009-04-01  Bruno Haible  <bruno@clisp.org>
61935         * doc/lib-symbol-visibility.texi: Follow texinfo style conventions.
61937 2009-04-01  Bruno Haible  <bruno@clisp.org>
61939         Rename module 'visibility'.
61940         * modules/lib-symbol-visibility: Renamed from modules/visibility.
61941         * doc/lib-symbol-visibility.texi: Renamed from visibility.texi.
61942         * doc/gnulib.texi: Update.
61943         * MODULES.html.sh (Misc): Update.
61944         * NEWS: Mention the change.
61946 2009-04-01  Simon Josefsson  <simon@josefsson.org>
61948         * modules/lib-msvc-compat: New module.  Thanks to Bruno Haible
61949         <bruno@clisp.org>, Ralf Wildenhues <Ralf.Wildenhues@gmx.de>, and
61950         Eric Blake <ebb9@byu.net> for review.
61951         * MODULES.html.sh: Add lib-msvc-compat.
61952         * doc/gnulib.texi: Link to new section.
61953         * m4/ld-output-def.m4: New file.
61954         * doc/ld-output-def.texi: New file.
61956 2009-04-01  Simon Josefsson  <simon@josefsson.org>
61958         Rename ld-version-script to lib-symbol-versions.  Suggested by
61959         Bruno Haible <bruno@clisp.org>.
61960         * modules/ld-version-script: Renamed to lib-symbol-versions.
61961         * doc/ld-version-script.texi: Fix module name.
61962         * MODULES.html.sh: Add lib-symbol-versions.
61964 2009-03-31  Simon Josefsson  <simon@josefsson.org>
61966         * modules/u64-tests: New file.
61967         * tests/test-u64.c: New file.
61969 2009-03-04  Simon Josefsson  <simon@josefsson.org>
61971         * MODULES.html.sh: Mention u64.
61972         * modules/u64: New module.
61973         * modules/crypto/sha512: Depend on u64 module instead of providing
61974         u64.h.
61976 2009-03-27  Eric Blake  <ebb9@byu.net>
61978         test-strerror: make debugging EAI_SYSTEM easier
61979         * modules/getaddrinfo-tests (Depends-on): Add strerror.
61980         * test-getaddrinfo.c (simple) [ENABLE_DEBUGGING]: Report errno if
61981         failure was EAI_SYSTEM.
61983 2009-03-25  Bruno Haible  <bruno@clisp.org>
61985         Fix a problem with --enable-relocatable on Solaris 7.
61986         * modules/relocatable-prog-wrapper (Depends-on): Add environ. Needed
61987         since 2008-02-24.
61989 2009-03-25  Eric Blake  <ebb9@byu.net>
61991         test-sockets: avoid gcc warning
61992         * tests/test-sockets.c (main): Silence compiler warning.
61994 2009-03-25  Paul Eggert  <eggert@cs.ucla.edu>
61996         New modules nproc, pthread, contributed by Glen Lenker.
61998         * MODULES.html.sh: Add pthread, nproc.
61999         * lib/nproc.c: New file.
62000         * lib/nproc.h: New file.
62001         * lib/pthread.in.h: New file.
62002         * m4/pthread.m4: New file.
62003         * modules/nproc: New file.
62004         * modules/pthread: New file.
62006 2009-03-24  Simon Josefsson  <simon@josefsson.org>
62008         * modules/unicase/locale-language-tests (test_locale_language_LDADD):
62009         New variable.
62011 2009-03-24  Kamil Dudka  <kdudka@redhat.com>
62013         filevercmp: handle simple~ and numbered.~3~ backup suffixes
62014         * lib/filevercmp.c: Handle simple~ and numbered.~3~ backup suffixes.
62015         * tests/test-filevercmp.c: Add tests for backup suffixes.
62017 2009-03-24  Simon Josefsson  <simon@josefsson.org>
62019         * modules/stdlib (Depends-on): Add stdint, needed when defining
62020         struct random_data on, for example, HP-UX 10.20.  Reported by
62021         Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
62023 2009-03-24  Simon Josefsson  <simon@josefsson.org>
62025         * lib/readline.c (readline): Call fflush on stdout after printing
62026         prompt.
62028 2009-03-20  Bruno Haible  <bruno@clisp.org>
62030         Remove dependency from 'close' module to -lws2_32 on native Windows.
62031         * lib/close-hook.h: New file.
62032         * lib/close-hook.c: New file.
62033         * lib/close.c: Include close-hook.h. Don't include <sys/socket.h>,
62034         w32sock.h.
62035         (_gl_close_fd_maybe_socket): Remove function.
62036         (rpl_close): Invoke execute_all_close_hooks instead of
62037         _gl_close_fd_maybe_socket.
62038         * lib/sockets.c: Include close-hook.h, w32sock.h.
62039         (close_fd_maybe_socket): New function, essentially from lib/close.c.
62040         (close_sockets_hook): New variable.
62041         (gl_sockets_startup): Register close_fd_maybe_socket as a hook.
62042         (gl_sockets_cleanup): Unregister it.
62043         * lib/unistd.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET): Remove macro.
62044         * m4/close.m4 (gl_REPLACE_CLOSE): Undo 2009-02-05 change.
62045         * modules/close-hook: New file.
62046         * modules/close (Files): Remove lib/w32sock.h.
62047         (Depends-on): Add close-hook.
62048         (Link): Remove section.
62049         * modules/sockets (Files): Add lib/w32sock.h.
62050         (Depends-on): Add close-hook.
62051         * modules/sys_socket (configure.ac): Remove gl_MODULE_INDICATOR
62052         invocation.
62053         * NEWS: Mention that LIB_CLOSE is gone.
62055 2009-03-23  Eric Blake  <ebb9@byu.net>
62057         signal-tests: test previous patch
62058         * tests/test-signal.c: New file.
62059         * modules/signal-tests: Likewise.
62061         signal.h: always support 'volatile sig_atomic_t'
62062         * m4/signal_h.m4 (gl_SIGNAL_H): Check for AIX limitation.
62063         (gl_SIGNAL_H_DEFAULTS): Add a default.
62064         * modules/signal (Makefile.am): Substitute if needed.
62065         * lib/signal.in.h (sig_atomic_t): Redefine if needed, so that
62066         users can blindly add volatile.
62067         * doc/posix-headers/signal.texi (signal.h): Document it.
62068         Reported by Matthew Woehlke.
62070 2009-03-23  Jim Meyering  <meyering@redhat.com>
62072         pathmax: PATH_MAX: use pathconf only when available
62073         * lib/pathmax.h (PATH_MAX): Select the pathconf-using definition
62074         only if HAVE_PATHCONF is defined.  Patch by Sylvain Beucler.
62075         * m4/pathmax.m4 (gl_PATHMAX): Check for pathconf.
62076         This avoids a link failure in a PSP cross-compilation environment
62077         described in http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/17048
62079         * lib/vasnprintf.c (divide): Fix typo in comment.
62081 2009-03-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
62083         * gnulib-tool (func_filter_filelist): Fix comment.
62085 2009-03-20  Bruno Haible  <bruno@clisp.org>
62087         Make sockets.h self-contained.
62088         * lib/sockets.c: Include sockets.h first.
62089         * lib/sockets.h: Include <sys/socket.h> before using the SOCKET type.
62091 2009-03-19  Eric Blake  <ebb9@byu.net>
62093         doc: mention more functions added in cygwin 1.7.0
62094         * doc/posix-functions/log2.texi: Mention recent cygwin 1.7.0
62095         addition.
62096         * doc/posix-functions/log2f.texi: Likewise.
62098 2009-03-19  Jim Meyering  <meyering@redhat.com>
62100         fsusage: avoid syntax error due to statement-before-declaration
62101         * lib/fsusage.c (get_fs_usage): Put warning-avoidance statement
62102         after all declarations.  Reported by Matthew Woehlke in
62103         http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/16231
62105 2009-03-18  Eric Blake  <ebb9@byu.net>
62107         build-aux/compile: sync from automake
62108         * build-aux/compile: New file, from automake.
62109         * config/srclist.txt: Mention build-aux/compile.
62111 2009-03-17  Bruno Haible  <bruno@clisp.org>
62113         * lib/git-merge-changelog.c: Fix typo in comment.
62114         Reported by Reuben Thomas <rrt@sc3d.org>.
62116 2009-03-17  Reuben Thomas  <rrt@sc3d.org>
62118         * m4/regex.m4: update and improve help for
62119         --without-included-regex.
62121 2009-03-17  Simon Josefsson  <simon@josefsson.org>
62123         * modules/isnanl-nolibm-tests (Files): Add tests/nan.h to avoid
62124         failure on missing include files.
62126 2009-03-17  Eric Blake  <ebb9@byu.net>
62128         doc: mention more functions added in cygwin 1.7.0
62129         * doc/posix-functions/fwprintf.texi: Mention recent cygwin 1.7.0
62130         addition.
62131         * doc/posix-functions/fwscanf.texi: Likewise.
62132         * doc/posix-functions/swprintf.texi: Likewise.
62133         * doc/posix-functions/swscanf.texi: Likewise.
62134         * doc/posix-functions/vfwprintf.texi: Likewise.
62135         * doc/posix-functions/vfwscanf.texi: Likewise.
62136         * doc/posix-functions/vswprintf.texi: Likewise.
62137         * doc/posix-functions/vswscanf.texi: Likewise.
62138         * doc/posix-functions/vwprintf.texi: Likewise.
62139         * doc/posix-functions/vwscanf.texi: Likewise.
62140         * doc/posix-functions/wcscasecmp.texi: Likewise.
62141         * doc/posix-functions/wcsdup.texi: Likewise.
62142         * doc/posix-functions/wcsftime.texi: Likewise.
62143         * doc/posix-functions/wcsncasecmp.texi: Likewise.
62144         * doc/posix-functions/wprintf.texi: Likewise.
62145         * doc/posix-functions/wscanf.texi: Likewise.
62146         * doc/glibc-functions/gethostbyname2.texi: Likewise.
62148 2009-03-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
62150         maint.mk: really add $(AM_MAKEFLAGS)
62151         * top/maint.mk (init-coverage, build-coverage): `$(AM_MAKEFLAGS)'
62152         was inadvertently omitted in the last commit.
62153         Spotted by Bruno Haible.
62155         maint.mk: use $(MAKE) $(AM_MAKEFLAGS) not make
62156         * top/maint.mk (init-coverage, build-coverage): Use `$(MAKE)
62157         $(AM_MAKEFLAGS)' rather than plain `make'.
62159         gnulib-tool: execute $MAKE not make
62160         * gnulib-tool: Default $MAKE to 'make'.
62161         (func_create_testdir, func_create_megatestdir): Use $MAKE rather
62162         than make.  Initialize $MAKE in the do-autobuild script.
62164         gnulib-tool: use $MAKE not make in generated files
62165         * gnulib-tool (func_create_megatestdir): Use $MAKE rather than
62166         make, in generated files.  Initialize $MAKE in the do-autobuild
62167         script.
62169         * top/GNUmakefile (_have-git-version-gen): Fix typo.
62171         GNUmakefile: disable parallelism only for multiple, recursive targets
62172         * top/GNUmakefile (ALL_RECURSIVE_TARGETS): New macro; allow user
62173         additions in the Makefile.
62174         (AM_RECURSIVE_TARGETS): New macro, override only if not provided
62175         by Automake.
62176         (.NOTPARALLEL): Only disable parallel builds if multiple targets
62177         are listed on the command line and at least one of them is
62178         listed in $(ALL_RECURSIVE_TARGETS).
62180 2009-03-14  Bruno Haible  <bruno@clisp.org>
62182         * modules/unilbrk/u8-possible-linebreaks (Depends-on): Replace
62183         utf8-ucs4-unsafe with unistr/u8-mbtouc-unsafe.
62184         * modules/unilbrk/u8-width-linebreaks (Depends-on): Likewise.
62185         * modules/unilbrk/u16-possible-linebreaks (Depends-on): Replace
62186         utf16-ucs4-unsafe with unistr/u16-mbtouc-unsafe.
62187         * modules/unilbrk/u16-width-linebreaks (Depends-on): Likewise.
62188         * modules/unistr/u8-chr (Depends-on): Replace ucs4-utf8 with
62189         unistr/u8-uctomb.
62190         * modules/unistr/u8-strchr (Depends-on): Likewise.
62191         * modules/unistr/u8-strrchr (Depends-on): Likewise.
62192         * modules/unistr/u16-chr (Depends-on): Replace ucs4-utf16 with
62193         unistr/u16-uctomb.
62194         * modules/unistr/u16-strchr (Depends-on): Likewise.
62195         * modules/unistr/u16-strrchr (Depends-on): Likewise.
62197 2009-03-12  Bruno Haible  <bruno@clisp.org>
62199         Work around select() bug on Interix 3.5.
62200         * lib/sys_select.in.h (select): Also replace if REPLACE_SELECT is 1.
62201         * lib/select.c (rpl_select): Add an implementation for Unix platforms.
62202         * m4/select.m4: New file.
62203         * m4/sys_select_h.m4 (gl_SYS_SELECT_H_DEFAULTS): Initialize REPLACE_SELECT.
62204         * modules/sys_select (Makefile.am): Substitute REPLACE_SELECT.
62205         * modules/select (Files): Add m4/select.m4.
62206         (configure.ac): Move conditional to m4/select.m4. Invoke gl_FUNC_SELECT.
62207         * modules/nanosleep (Depends-on): Add select.
62208         * modules/poll (Depends-on): Likewise.
62209         * doc/posix-functions/select.texi: Mention the Interix bug.
62210         Reported by Markus Duft <mduft@gentoo.org>.
62212         * lib/select.c: Renamed from lib/winsock-select.c.
62213         * modules/select (Files): Add lib/select.c, remove
62214         lib/winsock-select.c.
62215         (configure.ac): Update.
62217 2009-03-12  Jim Meyering  <meyering@redhat.com>
62219         avoid gcc warnings about unused macro definitions
62220         * lib/readtokens.c (STREQ): Remove unused definition.
62221         * lib/xmalloc.c (SIZE_MAX): Likewise.
62222         * lib/openat-die.c (N_): Likewise.
62223         * lib/mountlist.c (SIZE_MAX): Remove definition.
62224         Instead, include <stdint.h>.
62225         * lib/readutmp.c: Likewise.
62226         * modules/readutmp (Depends-on): Add stdint.
62227         * modules/mountlist (Depends-on): Add stdint.
62228         * lib/userspec.c (ISDIGIT): Move definition into #if block where used.
62230 2009-03-10  Bruno Haible  <bruno@clisp.org>
62232         Tests for module 'mbmemcasecoll'.
62233         * modules/mbmemcasecoll-tests: New file.
62234         * tests/test-mbmemcasecoll1.sh: New file.
62235         * tests/test-mbmemcasecoll2.sh: New file.
62236         * tests/test-mbmemcasecoll3.sh: New file.
62237         * tests/test-mbmemcasecoll.c: New file.
62239         New module 'mbmemcasecoll'.
62240         * lib/mbmemcasecoll.h: New file.
62241         * lib/mbmemcasecoll.c: New file.
62242         * modules/mbmemcasecoll: New file.
62244         * tests/test-mbmemcasecmp.h: New file, extracted from
62245         tests/test-mbmemcasecmp.c.
62246         * tests/test-mbmemcasecmp.c: Include test-mbmemcasecmp.h.
62247         (test_ascii, test_iso_8859_1, test_utf_8): Remove functions.
62248         (main): Update.
62249         * modules/mbmemcasecmp-tests (Files): Add tests/test-mbmemcasecmp.h.
62251 2009-03-09  Bruno Haible  <bruno@clisp.org>
62253         Tests for module 'mbmemcasecmp'.
62254         * modules/mbmemcasecmp-tests: New file.
62255         * tests/test-mbmemcasecmp1.sh: New file.
62256         * tests/test-mbmemcasecmp2.sh: New file.
62257         * tests/test-mbmemcasecmp3.sh: New file.
62258         * tests/test-mbmemcasecmp.c: New file.
62260         New module 'mbmemcasecmp'.
62261         * lib/mbmemcasecmp.h: New file.
62262         * lib/mbmemcasecmp.c: New file.
62263         * modules/mbmemcasecmp: New file.
62265 2009-03-09  Bruno Haible  <bruno@clisp.org>
62267         Tests for module 'unicase/ulc-casecoll'.
62268         * modules/unicase/ulc-casecoll-tests: New file.
62269         * tests/unicase/test-ulc-casecoll1.sh: New file.
62270         * tests/unicase/test-ulc-casecoll2.sh: New file.
62271         * tests/unicase/test-ulc-casecoll.c: New file.
62273         New module 'unicase/ulc-casecoll'.
62274         * lib/unicase.h (ulc_casecoll): New declaration.
62275         * lib/unicase/ulc-casecoll.c: New file.
62276         * modules/unicase/ulc-casecoll: New file.
62278         New module 'unicase/ulc-casexfrm'.
62279         * lib/unicase.h (ulc_casexfrm): New declaration.
62280         * lib/unicase/ulc-casexfrm.c: New file.
62281         * modules/unicase/ulc-casexfrm: New file.
62283 2009-03-09  Bruno Haible  <bruno@clisp.org>
62285         Followup to 2008-12-22 commit: Remove unnecessary AC_FUNC_MBRTOWC
62286         invocations.
62288         * m4/mbscasecmp.m4: Remove file.
62289         * modules/mbscasecmp (Files): Remove it and m4/mbrtowc.m4
62290         (configure.ac): Remove gl_FUNC_MBSCASECMP invocation.
62292         * m4/mbscasestr.m4: Remove file.
62293         * modules/mbscasestr (Files): Remove it and m4/mbrtowc.m4
62294         (configure.ac): Remove gl_FUNC_MBSCASESTR invocation.
62296         * m4/mbschr.m4: Remove file.
62297         * modules/mbschr (Files): Remove it and m4/mbrtowc.m4
62298         (configure.ac): Remove gl_FUNC_MBSCHR invocation.
62300         * m4/mbscspn.m4: Remove file.
62301         * modules/mbscspn (Files): Remove it and m4/mbrtowc.m4
62302         (configure.ac): Remove gl_FUNC_MBSCSPN invocation.
62304         * m4/mbslen.m4: Remove file.
62305         * modules/mbslen (Files): Remove it and m4/mbrtowc.m4
62306         (configure.ac): Remove gl_FUNC_MBSLEN invocation.
62308         * m4/mbsncasecmp.m4: Remove file.
62309         * modules/mbsncasecmp (Files): Remove it and m4/mbrtowc.m4
62310         (configure.ac): Remove gl_FUNC_MBSNCASECMP invocation.
62312         * m4/mbsnlen.m4: Remove file.
62313         * modules/mbsnlen (Files): Remove it and m4/mbrtowc.m4
62314         (configure.ac): Remove gl_FUNC_MBSNLEN invocation.
62316         * m4/mbspbrk.m4: Remove file.
62317         * modules/mbspbrk (Files): Remove it and m4/mbrtowc.m4
62318         (configure.ac): Remove gl_FUNC_MBSPBRK invocation.
62320         * m4/mbspcasecmp.m4: Remove file.
62321         * modules/mbspcasecmp (Files): Remove it and m4/mbrtowc.m4
62322         (configure.ac): Remove gl_FUNC_MBSPCASECMP invocation.
62324         * m4/mbsrchr.m4: Remove file.
62325         * modules/mbsrchr (Files): Remove it and m4/mbrtowc.m4
62326         (configure.ac): Remove gl_FUNC_MBSRCHR invocation.
62328         * m4/mbssep.m4: Remove file.
62329         * modules/mbssep (Files): Remove it and m4/mbrtowc.m4
62330         (configure.ac): Remove gl_FUNC_MBSSEP invocation.
62332         * m4/mbsspn.m4: Remove file.
62333         * modules/mbsspn (Files): Remove it and m4/mbrtowc.m4
62334         (configure.ac): Remove gl_FUNC_MBSSPN invocation.
62336         * m4/mbsstr.m4: Remove file.
62337         * modules/mbsstr (Files): Remove it and m4/mbrtowc.m4
62338         (configure.ac): Remove gl_FUNC_MBSSTR invocation.
62340         * m4/mbstok_r.m4: Remove file.
62341         * modules/mbstok_r (Files): Remove it and m4/mbrtowc.m4
62342         (configure.ac): Remove gl_FUNC_MBSTOK_R invocation.
62344         * m4/mbswidth.m4 (gl_MBSWIDTH): Remove AC_FUNC_MBRTOWC invocation.
62346         * m4/quotearg.m4 (gl_QUOTEARG): Remove mbsinit test and
62347         AC_TYPE_MBSTATE_T, AC_FUNC_MBRTOWC invocations.
62349         * modules/trim (configure.ac): Remove AC_FUNC_MBRTOWC invocation.
62351 2009-03-08  Bruno Haible  <bruno@clisp.org>
62353         Tests for module 'unicase/ulc-casecmp'.
62354         * modules/unicase/ulc-casecmp-tests: New file.
62355         * tests/unicase/test-ulc-casecmp1.sh: New file.
62356         * tests/unicase/test-ulc-casecmp2.sh: New file.
62357         * tests/unicase/test-ulc-casecmp.c: New file.
62359         New module 'unicase/ulc-casecmp'.
62360         * lib/unicase.h (ulc_casecmp): New declaration.
62361         * lib/unicase/ulc-casecmp.c: New file.
62362         * lib/unicase/u-casecmp.h (FUNC): Change argument types to
62363         'const SRC_UNIT *'.
62364         * lib/unicase/u8-casecmp.c (SRC_UNIT): Define like UNIT.
62365         * lib/unicase/u16-casecmp.c (SRC_UNIT): Likewise.
62366         * lib/unicase/u32-casecmp.c (SRC_UNIT): Likewise.
62367         * modules/unicase/ulc-casecmp: New file.
62369         Tests for module 'unicase/u32-is-cased'.
62370         * modules/unicase/u32-is-cased-tests: New file.
62371         * tests/unicase/test-u32-is-cased.c: New file.
62373         Tests for module 'unicase/u16-is-cased'.
62374         * modules/unicase/u16-is-cased-tests: New file.
62375         * tests/unicase/test-u16-is-cased.c: New file.
62377         Tests for module 'unicase/u8-is-cased'.
62378         * modules/unicase/u8-is-cased-tests: New file.
62379         * tests/unicase/test-u8-is-cased.c: New file.
62380         * tests/unicase/test-is-cased.h: New file.
62382         New module 'unicase/u32-is-cased'.
62383         * lib/unicase/u32-is-cased.c: New file.
62384         * modules/unicase/u32-is-cased: New file.
62386         New module 'unicase/u16-is-cased'.
62387         * lib/unicase/u16-is-cased.c: New file.
62388         * modules/unicase/u16-is-cased: New file.
62390         New module 'unicase/u8-is-cased'.
62391         * lib/unicase/u8-is-cased.c: New file.
62392         * lib/unicase/u-is-cased.h: New file.
62393         * modules/unicase/u8-is-cased: New file.
62395         Tests for module 'unicase/u32-is-casefolded'.
62396         * modules/unicase/u32-is-casefolded-tests: New file.
62397         * tests/unicase/test-u32-is-casefolded.c: New file.
62399         Tests for module 'unicase/u16-is-casefolded'.
62400         * modules/unicase/u16-is-casefolded-tests: New file.
62401         * tests/unicase/test-u16-is-casefolded.c: New file.
62403         Tests for module 'unicase/u8-is-casefolded'.
62404         * modules/unicase/u8-is-casefolded-tests: New file.
62405         * tests/unicase/test-u8-is-casefolded.c: New file.
62406         * tests/unicase/test-is-casefolded.h: New file.
62408         New module 'unicase/u32-is-casefolded'.
62409         * lib/unicase/u32-is-casefolded.c: New file.
62410         * modules/unicase/u32-is-casefolded: New file.
62412         New module 'unicase/u16-is-casefolded'.
62413         * lib/unicase/u16-is-casefolded.c: New file.
62414         * modules/unicase/u16-is-casefolded: New file.
62416         New module 'unicase/u8-is-casefolded'.
62417         * lib/unicase/u8-is-casefolded.c: New file.
62418         * modules/unicase/u8-is-casefolded: New file.
62420         Tests for module 'unicase/u32-is-titlecase'.
62421         * modules/unicase/u32-is-titlecase-tests: New file.
62422         * tests/unicase/test-u32-is-titlecase.c: New file.
62424         Tests for module 'unicase/u16-is-titlecase'.
62425         * modules/unicase/u16-is-titlecase-tests: New file.
62426         * tests/unicase/test-u16-is-titlecase.c: New file.
62428         Tests for module 'unicase/u8-is-titlecase'.
62429         * modules/unicase/u8-is-titlecase-tests: New file.
62430         * tests/unicase/test-u8-is-titlecase.c: New file.
62431         * tests/unicase/test-is-titlecase.h: New file.
62433         New module 'unicase/u32-is-titlecase'.
62434         * lib/unicase/u32-is-titlecase.c: New file.
62435         * modules/unicase/u32-is-titlecase: New file.
62437         New module 'unicase/u16-is-titlecase'.
62438         * lib/unicase/u16-is-titlecase.c: New file.
62439         * modules/unicase/u16-is-titlecase: New file.
62441         New module 'unicase/u8-is-titlecase'.
62442         * lib/unicase/u8-is-titlecase.c: New file.
62443         * modules/unicase/u8-is-titlecase: New file.
62445         Tests for module 'unicase/u32-is-lowercase'.
62446         * modules/unicase/u32-is-lowercase-tests: New file.
62447         * tests/unicase/test-u32-is-lowercase.c: New file.
62449         Tests for module 'unicase/u16-is-lowercase'.
62450         * modules/unicase/u16-is-lowercase-tests: New file.
62451         * tests/unicase/test-u16-is-lowercase.c: New file.
62453         Tests for module 'unicase/u8-is-lowercase'.
62454         * modules/unicase/u8-is-lowercase-tests: New file.
62455         * tests/unicase/test-u8-is-lowercase.c: New file.
62456         * tests/unicase/test-is-lowercase.h: New file.
62458         New module 'unicase/u32-is-lowercase'.
62459         * lib/unicase/u32-is-lowercase.c: New file.
62460         * modules/unicase/u32-is-lowercase: New file.
62462         New module 'unicase/u16-is-lowercase'.
62463         * lib/unicase/u16-is-lowercase.c: New file.
62464         * modules/unicase/u16-is-lowercase: New file.
62466         New module 'unicase/u8-is-lowercase'.
62467         * lib/unicase/u8-is-lowercase.c: New file.
62468         * modules/unicase/u8-is-lowercase: New file.
62470         Tests for module 'unicase/u32-is-uppercase'.
62471         * modules/unicase/u32-is-uppercase-tests: New file.
62472         * tests/unicase/test-u32-is-uppercase.c: New file.
62474         Tests for module 'unicase/u16-is-uppercase'.
62475         * modules/unicase/u16-is-uppercase-tests: New file.
62476         * tests/unicase/test-u16-is-uppercase.c: New file.
62478         Tests for module 'unicase/u8-is-uppercase'.
62479         * modules/unicase/u8-is-uppercase-tests: New file.
62480         * tests/unicase/test-u8-is-uppercase.c: New file.
62481         * tests/unicase/test-is-uppercase.h: New file.
62483         New module 'unicase/u32-is-uppercase'.
62484         * lib/unicase/u32-is-uppercase.c: New file.
62485         * modules/unicase/u32-is-uppercase: New file.
62487         New module 'unicase/u16-is-uppercase'.
62488         * lib/unicase/u16-is-uppercase.c: New file.
62489         * modules/unicase/u16-is-uppercase: New file.
62491         New module 'unicase/u8-is-uppercase'.
62492         * lib/unicase/u8-is-uppercase.c: New file.
62493         * modules/unicase/u8-is-uppercase: New file.
62495         New module 'unicase/u32-is-invariant'.
62496         * lib/unicase/u32-is-invariant.c: New file.
62497         * modules/unicase/u32-is-invariant: New file.
62499         New module 'unicase/u16-is-invariant'.
62500         * lib/unicase/u16-is-invariant.c: New file.
62501         * modules/unicase/u16-is-invariant: New file.
62503         New module 'unicase/u8-is-invariant'.
62504         * lib/unicase/u8-is-invariant.c: New file.
62505         * lib/unicase/invariant.h: New file.
62506         * lib/unicase/u-is-invariant.h: New file.
62507         * modules/unicase/u8-is-invariant: New file.
62509         Tests for module 'unicase/u32-casecoll'.
62510         * modules/unicase/u32-casecoll-tests: New file.
62511         * tests/unicase/test-u32-casecoll.c: New file.
62513         Tests for module 'unicase/u16-casecoll'.
62514         * modules/unicase/u16-casecoll-tests: New file.
62515         * tests/unicase/test-u16-casecoll.c: New file.
62517         Tests for module 'unicase/u8-casecoll'.
62518         * modules/unicase/u8-casecoll-tests: New file.
62519         * tests/unicase/test-u8-casecoll.c: New file.
62521         New module 'unicase/u32-casecoll'.
62522         * lib/unicase/u32-casecoll.c: New file.
62523         * modules/unicase/u32-casecoll: New file.
62525         New module 'unicase/u16-casecoll'.
62526         * lib/unicase/u16-casecoll.c: New file.
62527         * modules/unicase/u16-casecoll: New file.
62529         New module 'unicase/u8-casecoll'.
62530         * lib/unicase/u8-casecoll.c: New file.
62531         * lib/unicase/u-casecoll.h: New file.
62532         * modules/unicase/u8-casecoll: New file.
62534         New module 'unicase/u32-casexfrm'.
62535         * lib/unicase/u32-casexfrm.c: New file.
62536         * modules/unicase/u32-casexfrm: New file.
62538         New module 'unicase/u16-casexfrm'.
62539         * lib/unicase/u16-casexfrm.c: New file.
62540         * modules/unicase/u16-casexfrm: New file.
62542         New module 'unicase/u8-casexfrm'.
62543         * lib/unicase/u8-casexfrm.c: New file.
62544         * lib/unicase/u-casexfrm.h: New file.
62545         * modules/unicase/u8-casexfrm: New file.
62547         Tests for module 'unicase/u32-casecmp'.
62548         * modules/unicase/u32-casecmp-tests: New file.
62549         * tests/unicase/test-u32-casecmp.c: New file.
62551         Tests for module 'unicase/u16-casecmp'.
62552         * modules/unicase/u16-casecmp-tests: New file.
62553         * tests/unicase/test-u16-casecmp.c: New file.
62555         Tests for module 'unicase/u8-casecmp'.
62556         * modules/unicase/u8-casecmp-tests: New file.
62557         * tests/unicase/test-u8-casecmp.c: New file.
62558         * tests/unicase/test-casecmp.h: New file.
62560         New module 'unicase/u32-casecmp'.
62561         * lib/unicase/u32-casecmp.c: New file.
62562         * modules/unicase/u32-casecmp: New file.
62564         New module 'unicase/u16-casecmp'.
62565         * lib/unicase/u16-casecmp.c: New file.
62566         * modules/unicase/u16-casecmp: New file.
62568         New module 'unicase/u8-casecmp'.
62569         * lib/unicase/u8-casecmp.c: New file.
62570         * lib/unicase/u-casecmp.h: New file.
62571         * modules/unicase/u8-casecmp: New file.
62573         Tests for module 'unicase/u32-casefold'.
62574         * modules/unicase/u32-casefold-tests: New file.
62575         * tests/unicase/test-u32-casefold.c: New file.
62577         Tests for module 'unicase/u16-casefold'.
62578         * modules/unicase/u16-casefold-tests: New file.
62579         * tests/unicase/test-u16-casefold.c: New file.
62581         Tests for module 'unicase/u8-casefold'.
62582         * modules/unicase/u8-casefold-tests: New file.
62583         * tests/unicase/test-u8-casefold.c: New file.
62585         New module 'unicase/u32-casefold'.
62586         * lib/unicase/u32-casefold.c: New file.
62587         * modules/unicase/u32-casefold: New file.
62589         New module 'unicase/u16-casefold'.
62590         * lib/unicase/u16-casefold.c: New file.
62591         * modules/unicase/u16-casefold: New file.
62593         New module 'unicase/u8-casefold'.
62594         * lib/unicase/u8-casefold.c: New file.
62595         * lib/unicase/u-casefold.h: New file.
62596         * modules/unicase/u8-casefold: New file.
62598         New module 'unicase/tocasefold'.
62599         * lib/unicase/casefold.h: New file.
62600         * lib/unicase/tocasefold.c: New file.
62601         * lib/unicase/tocasefold.h: New file, generated by gen-uni-tables.c.
62602         * modules/unicase/tocasefold: New file.
62604         Tests for module 'unicase/u32-totitle'.
62605         * modules/unicase/u32-totitle-tests: New file.
62606         * tests/unicase/test-u32-totitle.c: New file.
62608         Tests for module 'unicase/u16-totitle'.
62609         * modules/unicase/u16-totitle-tests: New file.
62610         * tests/unicase/test-u16-totitle.c: New file.
62612         Tests for module 'unicase/u8-totitle'.
62613         * modules/unicase/u8-totitle-tests: New file.
62614         * tests/unicase/test-u8-totitle.c: New file.
62616         New module 'unicase/u32-totitle'.
62617         * lib/unicase/u32-totitle.c: New file.
62618         * modules/unicase/u32-totitle: New file.
62620         New module 'unicase/u16-totitle'.
62621         * lib/unicase/u16-totitle.c: New file.
62622         * modules/unicase/u16-totitle: New file.
62624         New module 'unicase/u8-totitle'.
62625         * lib/unicase/u8-totitle.c: New file.
62626         * lib/unicase/u-totitle.h: New file.
62627         * modules/unicase/u8-totitle: New file.
62629         Tests for module 'unicase/u32-tolower'.
62630         * modules/unicase/u32-tolower-tests: New file.
62631         * tests/unicase/test-u32-tolower.c: New file.
62633         Tests for module 'unicase/u16-tolower'.
62634         * modules/unicase/u16-tolower-tests: New file.
62635         * tests/unicase/test-u16-tolower.c: New file.
62637         Tests for module 'unicase/u8-tolower'.
62638         * modules/unicase/u8-tolower-tests: New file.
62639         * tests/unicase/test-u8-tolower.c: New file.
62641         New module 'unicase/u32-tolower'.
62642         * lib/unicase/u32-tolower.c: New file.
62643         * modules/unicase/u32-tolower: New file.
62645         New module 'unicase/u16-tolower'.
62646         * lib/unicase/u16-tolower.c: New file.
62647         * modules/unicase/u16-tolower: New file.
62649         New module 'unicase/u8-tolower'.
62650         * lib/unicase/u8-tolower.c: New file.
62651         * modules/unicase/u8-tolower: New file.
62653         Tests for module 'unicase/u32-toupper'.
62654         * modules/unicase/u32-toupper-tests: New file.
62655         * tests/unicase/test-u32-toupper.c: New file.
62657         Tests for module 'unicase/u16-toupper'.
62658         * modules/unicase/u16-toupper-tests: New file.
62659         * tests/unicase/test-u16-toupper.c: New file.
62661         Tests for module 'unicase/u8-toupper'.
62662         * modules/unicase/u8-toupper-tests: New file.
62663         * tests/unicase/test-u8-toupper.c: New file.
62665         New module 'unicase/u32-toupper'.
62666         * lib/unicase/u32-toupper.c: New file.
62667         * modules/unicase/u32-toupper: New file.
62669         New module 'unicase/u16-toupper'.
62670         * lib/unicase/u16-toupper.c: New file.
62671         * modules/unicase/u16-toupper: New file.
62673         New module 'unicase/u8-toupper'.
62674         * lib/unicase/u8-toupper.c: New file.
62675         * modules/unicase/u8-toupper: New file.
62677         New module 'unicase/u32-casemap'.
62678         * lib/unicase/u32-casemap.c: New file.
62679         * modules/unicase/u32-casemap: New file.
62681         New module 'unicase/u16-casemap'.
62682         * lib/unicase/u16-casemap.c: New file.
62683         * modules/unicase/u16-casemap: New file.
62685         New module 'unicase/u8-casemap'.
62686         * lib/unicase/unicasemap.h: New file.
62687         * lib/unicase/u8-casemap.c: New file.
62688         * lib/unicase/u-casemap.h: New file.
62689         * modules/unicase/u8-casemap: New file.
62691         New module 'unicase/special-casing'.
62692         * lib/unicase/special-casing.h: New file.
62693         * lib/unicase/special-casing.c: New file.
62694         * lib/unicase/special-casing-table.gperf: New file, generated by
62695         gen-uni-tables.c.
62696         * modules/unicase/special-casing: New file.
62698         Tests for module 'unicase/locale-language'.
62699         * modules/unicase/locale-language-tests: New file.
62700         * tests/unicase/test-locale-language.sh: New file.
62701         * tests/unicase/test-locale-language.c: New file.
62703         New module 'unicase/locale-language'.
62704         * lib/unicase/locale-language.c: New file.
62705         * lib/unicase/locale-languages.gperf: New file.
62706         * modules/unicase/locale-language: New file.
62708         Generate more tables for case conversion and case folding.
62709         * lib/gen-uni-tables.c (SCC_*): New enum items.
62710         (struct special_casing_rule): New type.
62711         (casing_rules, num_casing_rules, allocated_casing_rules): New
62712         variables.
62713         (add_casing_rule, fill_casing_rules): New functions.
62714         (struct casefold_rule): New type.
62715         (casefolding_rules, num_casefolding_rules,
62716         allocated_casefolding_rules): New variables.
62717         (fill_casefolding_rules): New function.
62718         (unicode_casefold): New variable.
62719         (to_casefold, redistribute_casefolding_rules, compare_casing_rules,
62720         sort_casing_rules, output_casing_rules): New functions.
62721         (main): Accept to more arguments: SpecialCasing.txt and
62722         CaseFolding.txt. Invoke fill_casing_rules, fill_casefolding_rules,
62723         redistribute_casefolding_rules, sort_casing_rules, output_casing_rules.
62724         Output mapping for casefolding.
62726         * lib/unicase.h: Include stdbool.h, uninorm.h.
62727         (u8_toupper, u16_toupper, u32_toupper, u8_tolower, u16_tolower,
62728         u32_tolower, u8_totitle, u16_totitle, u32_totitle): Add nf argument.
62729         (u8_casefold, u16_casefold, u32_casefold): Add iso639_language and nf
62730         arguments.
62731         (u8_casecmp, u16_casecmp, u32_casecmp): Add iso639_language, nf,
62732         resultp arguments.
62733         (u8_casexfrm, u16_casexfrm, u32_casexfrm): New declarations.
62734         (u8_casecoll, u16_casecoll, u32_casecoll): Add iso639_language, nf,
62735         resultp arguments.
62736         (u8_is_uppercase, u16_is_uppercase, u32_is_uppercase, u8_is_lowercase,
62737         u16_is_lowercase, u32_is_lowercase, u8_is_titlecase, u16_is_titlecase,
62738         u32_is_titlecase, u8_is_casefolded, u16_is_casefolded,
62739         u32_is_casefolded, u8_is_cased, u16_is_cased, u32_is_cased): New
62740         declarations.
62741         * modules/unicase/base (Depends-on): Add uninorm/base, stdbool.
62743 2009-03-08  Bruno Haible  <bruno@clisp.org>
62745         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp, u8_normcoll,
62746         u16_normcoll, u32_normcoll): Rename argument 'result' to 'resultp'.
62747         * lib/uninorm/u-normcmp.h (FUNC): Likewise.
62748         * lib/uninorm/u-normcoll.h (FUNC): Likewise.
62750 2009-03-07  Bruno Haible  <bruno@clisp.org>
62752         Adjust u*_normcmp, u*_normcoll API.
62753         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp, u8_normcoll,
62754         u16_normcoll, u32_normcoll): Change failure conventions.
62755         * lib/uninorm/u-normcmp.h (FUNC): Upon failure, store the error code in
62756         errno and return -1.
62757         * lib/uninorm/u-normcoll.h (FUNC): Likewise.
62759 2009-03-07  Bruno Haible  <bruno@clisp.org>
62761         Tests for module 'uninorm/u32-normcoll'.
62762         * modules/uninorm/u32-normcoll-tests: New file.
62763         * tests/uninorm/test-u32-normcoll.c: New file.
62765         Tests for module 'uninorm/u16-normcoll'.
62766         * modules/uninorm/u16-normcoll-tests: New file.
62767         * tests/uninorm/test-u16-normcoll.c: New file.
62769         Tests for module 'uninorm/u8-normcoll'.
62770         * modules/uninorm/u8-normcoll-tests: New file.
62771         * tests/uninorm/test-u8-normcoll.c: New file.
62773 2009-03-07  Bruno Haible  <bruno@clisp.org>
62775         * tests/uninorm/test-u32-normcmp.h: New file, extracted from
62776         tests/uninorm/test-u32-normcmp.c.
62777         * tests/uninorm/test-u32-normcmp.c: Include it.
62778         (test_nonascii): New function, extracted from main. Add some more
62779         tests.
62780         (main): Invoke test_ascii and test_nonascii.
62781         * modules/uninorm/u32-normcmp-tests (Files): Add
62782         tests/uninorm/test-u32-normcmp.h.
62783         (Depends-on): Remove uninorm/u32-normcmp.
62785         * tests/uninorm/test-u16-normcmp.h: New file, extracted from
62786         tests/uninorm/test-u16-normcmp.c.
62787         * tests/uninorm/test-u16-normcmp.c: Include it.
62788         (test_nonascii): New function, extracted from main. Add some more
62789         tests.
62790         (main): Invoke test_ascii and test_nonascii.
62791         * modules/uninorm/u16-normcmp-tests (Files): Add
62792         tests/uninorm/test-u16-normcmp.h.
62793         (Depends-on): Remove uninorm/u16-normcmp.
62795         * tests/uninorm/test-u8-normcmp.h: New file, extracted from
62796         tests/uninorm/test-u8-normcmp.c.
62797         * tests/uninorm/test-u8-normcmp.c: Include it.
62798         (test_nonascii): New function, extracted from main. Add some more
62799         tests.
62800         (main): Invoke test_ascii and test_nonascii.
62801         * modules/uninorm/u8-normcmp-tests (Files): Add
62802         tests/uninorm/test-u8-normcmp.h.
62803         (Depends-on): Remove uninorm/u8-normcmp.
62805 2009-03-07  Bruno Haible  <bruno@clisp.org>
62807         New module 'uninorm/u32-normcoll'.
62808         * lib/uninorm/u32-normcoll.c: New file.
62809         * modules/uninorm/u32-normcoll: New file.
62811         New module 'uninorm/u16-normcoll'.
62812         * lib/uninorm/u16-normcoll.c: New file.
62813         * modules/uninorm/u16-normcoll: New file.
62815         New module 'uninorm/u8-normcoll'.
62816         * lib/uninorm.h (u8_normcoll, u16_normcoll, u32_normcoll): New
62817         declarations.
62818         * lib/uninorm/u8-normcoll.c: New file.
62819         * lib/uninorm/u-normcoll.h: New file.
62820         * modules/uninorm/u8-normcoll: New file.
62822         New module 'uninorm/u32-normxfrm'.
62823         * lib/uninorm/u32-normxfrm.c: New file.
62824         * modules/uninorm/u32-normxfrm: New file.
62826         New module 'uninorm/u16-normxfrm'.
62827         * lib/uninorm/u16-normxfrm.c: New file.
62828         * modules/uninorm/u16-normxfrm: New file.
62830         New module 'uninorm/u8-normxfrm'.
62831         * lib/uninorm.h (u8_normxfrm, u16_normxfrm, u32_normxfrm): New
62832         declarations.
62833         * lib/uninorm/u8-normxfrm.c: New file.
62834         * lib/uninorm/u-normxfrm.h: New file.
62835         * modules/uninorm/u8-normxfrm: New file.
62837 2009-03-07  Bruno Haible  <bruno@clisp.org>
62839         * modules/uninorm/u8-normcmp (Depends-on): Add uninorm/base.
62840         * modules/uninorm/u16-normcmp (Depends-on): Likewise.
62841         * modules/uninorm/u32-normcmp (Depends-on): Likewise.
62843 2009-03-07  Bruno Haible  <bruno@clisp.org>
62845         New module 'memxfrm'.
62846         * lib/memxfrm.h: New file.
62847         * lib/memxfrm.c: New file.
62848         * modules/memxfrm: New file.
62850 2009-03-07  Bruno Haible  <bruno@clisp.org>
62852         New module 'memcmp2'.
62853         * lib/memcmp2.h: New file.
62854         * lib/memcmp2.c: New file.
62855         * modules/memcmp2: New file.
62857 2009-03-07  Bruno Haible  <bruno@clisp.org>
62859         Tests for module 'uninorm/decomposing-form'.
62860         * modules/uninorm/decomposing-form-tests: New file.
62861         * tests/uninorm/test-decomposing-form.c: New file.
62863         New module 'uninorm/decomposing-form'.
62864         * lib/uninorm.h (uninorm_decomposing_form): New declaration.
62865         * lib/uninorm/normalize-internal.h (struct unicode_normalization_form):
62866         Add 'decomposing_variant' field.
62867         * lib/uninorm/decomposing-form.c: New file.
62868         * lib/uninorm/nfc.c (uninorm_nfc): Update.
62869         * lib/uninorm/nfd.c (uninorm_nfd): Update.
62870         * lib/uninorm/nfkc.c (uninorm_nfkc): Update.
62871         * lib/uninorm/nfkd.c (uninorm_nfkd): Update.
62872         * modules/uninorm/decomposing-form: New file.
62873         * modules/uninorm/nfc (Depends-on): Add uninorm/nfd.
62874         * modules/uninorm/nfkc (Depends-on): Add uninorm/nfkd.
62876 2009-03-07  Bruno Haible  <bruno@clisp.org>
62878         * lib/uninorm/u-normcmp.h (FUNC): Use stack=allocated buffers for small
62879         strings.
62881 2009-03-06  Bruno Haible  <bruno@clisp.org>
62883         Tests for module 'uninorm/u32-normcmp'.
62884         * tests/uninorm/test-u32-normcmp.c: New file.
62885         * modules/uninorm/u32-normcmp-tests: New file.
62887         Tests for module 'uninorm/u16-normcmp'.
62888         * tests/uninorm/test-u16-normcmp.c: New file.
62889         * modules/uninorm/u16-normcmp-tests: New file.
62891         Tests for module 'uninorm/u8-normcmp'.
62892         * tests/uninorm/test-u8-normcmp.c: New file.
62893         * modules/uninorm/u8-normcmp-tests: New file.
62895         New module 'uninorm/u32-normcmp'.
62896         * lib/uninorm/u32-normcmp.c: New file.
62897         * modules/uninorm/u32-normcmp: New file.
62899         New module 'uninorm/u16-normcmp'.
62900         * lib/uninorm/u16-normcmp.c: New file.
62901         * modules/uninorm/u16-normcmp: New file.
62903         New module 'uninorm/u8-normcmp'.
62904         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp): New
62905         declarations.
62906         * lib/uninorm/u8-normcmp.c: New file.
62907         * lib/uninorm/u-normcmp.h: New file.
62908         * modules/uninorm/u8-normcmp: New file.
62910 2009-03-06  Bruno Haible  <bruno@clisp.org>
62912         * lib/w32spawn.h (dup_noinherit): Add cast, to avoid gcc warning.
62913         Reported by Eric Blake.
62915 2009-03-06  Eric Blake  <ebb9@byu.net>
62916             Bruno Haible  <bruno@clisp.org>
62918         * lib/spawni.c (__spawni) [WIN32_NATIVE]: Define as a stub.
62919         * modules/posix_spawn-tests (configure.ac): Define POSIX_SPAWN_PORTED
62920         condition.
62921         (Makefile.am): Do nothing if POSIX_SPAWN_PORTED is false.
62922         * modules/posix_spawnp-tests (configure.ac): Define POSIX_SPAWN_PORTED
62923         condition.
62924         (Makefile.am): Do nothing if POSIX_SPAWN_PORTED is false.
62926 2009-03-06  Eric Blake  <ebb9@byu.net>
62928         * lib/execute.c (execute) [WIN32_NATIVE]: Cast arguments of spawnvpe,
62929         to avoid compiler warnings.
62930         * lib/pipe.c (create_pipe) [WIN32_NATIVE]: Likewise.
62932 2009-03-05  Bruno Haible  <bruno@clisp.org>
62934         * tests/test-ftell.c (main): Disable test beyond end of file on
62935         FreeMiNT.
62936         Patch by Alan Hourihane <alanh@fairlite.co.uk>.
62938 2009-03-05  Kamil Dudka  <kdudka@redhat.com>
62940         * lib/filevercmp.c: Move hidden files up in ordering.
62941         * tests/test-filevercmp.c: Add tests for hidden files.
62943 2009-03-04  Bruno Haible  <bruno@clisp.org>
62945         * modules/visibility (Makefile.am): Augment AM_CFLAGS.
62946         * gnulib-tool (func_emit_lib_Makefile_am): Emit initialization of
62947         AM_CFLAGS.
62948         Reported by Simon Josefsson.
62950 2009-03-03  Bruno Haible  <bruno@clisp.org>
62952         * doc/visibility.texi: Recommend to use HAVE_VISIBILITY as a C macro.
62953         Reported by Simon Josefsson.
62955         * doc/ld-version-script.texi: Update node reference.
62957 2009-03-03  Bruno Haible  <bruno@clisp.org>
62959         * modules/visibility (License): Change to 'unlimited'.
62960         Suggested by Simon Josefsson.
62962 2009-03-03  Jim Meyering  <meyering@redhat.com>
62964         unlinkdir: cannot_unlink_dir may modify process state
62965         * lib/unlinkdir.c (cannot_unlink_dir): Add a comment warning that
62966         it's neither thread-safe nor appropriate for use in a library.
62968 2009-03-03  Eric Blake  <ebb9@byu.net>
62970         test-closein: silence test under Darwin
62971         * tests/test-closein.sh: Ignore stderr from cat, since we don't
62972         care if it dies from EPIPE or EBADF.
62974 2009-03-03  Bruno Haible  <bruno@clisp.org>
62976         * doc/gnulib.texi: Include visibility.texi and ld-version-script.texi
62977         earlier.
62978         * doc/visibility.texi: Fix @node and @section.
62980 2009-03-03  Simon Josefsson  <simon@josefsson.org>
62982         * doc/gnulib.texi: Link to sections for ld version script and
62983         visibility.
62984         * doc/visibility.texi: Add @node and @section.
62985         * modules/ld-version-script: New module.
62986         * m4/ld-version-script.m4: New file.
62987         * doc/ld-version-script.texi: New file.
62989 2009-03-02  David Lutterkort  <lutter@redhat.com>
62991         * lib/safe-alloc.h (__GNUC_PREREQ): New macro.
62992         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
62994 2009-03-02  Bruno Haible  <bruno@clisp.org>
62996         * doc/visibility.texi: Mention libtool's -export-symbols option.
62998 2009-03-02  Jim Meyering  <meyering@redhat.com>
63000         announce-gen: new option: --no-print-checksums
63001         * build-aux/announce-gen (usage): Describe it.
63002         (print_checksums): Print a newline here, not in the [*] footnote.
63003         (main): Honor it.
63005 2009-03-01  Bruno Haible  <bruno@clisp.org>
63007         Use socklen_t in the native Windows replacements prototypes.
63008         * lib/sys_socket.in.h (rpl_getsockopt, rpl_setsockopt): Use socklen_t
63009         instead of 'int'.
63010         * lib/getsockopt.c (rpl_getsockopt): Likewise.
63011         * lib/setsockopt.c (rpl_setsockopt): Likewise.
63012         * modules/getsockopt (Depends-on): Add socklen.
63013         * modules/setsockopt (Depends-on): Add socklen.
63015 2009-03-01  Bruno Haible  <bruno@clisp.org>
63017         * gnulib-tool (sed): Do alias as "sed --posix" if sed's version is at
63018         least 4.2.
63020 2009-03-01  Eric Blake  <ebb9@byu.net>
63021             Bruno Haible  <bruno@clisp.org>
63023         * lib/wait-process.h (wait_subprocess): Describe effect of termsigp on
63024         error messages.
63025         * lib/wait-process.c (wait_subprocess): Omit error message about
63026         deadly signal sent to the child of termsigp != NULL.
63028 2009-03-01  Eric Blake  <ebb9@byu.net>
63030         * lib/wait-process.c (wait_subprocess): Remove unnecessary cast.
63032 2009-03-01  Bruno Haible  <bruno@clisp.org>
63034         Avoid a gcc warning.
63035         * tests/test-sched.c (b): Make global.
63036         Reported by Eric Blake.
63038 2009-01-19  Martin Lambers  <marlam@marlam.de>
63040         Provide POSIX semantics for socket timeout options on W32.
63041         * lib/setsockopt.c: Convert struct timeval to milliseconds on W32.
63042         * lib/getsockopt.c: Convert milliseconds to struct timeval on W32.
63043         * modules/setsockopt: Depend on sys_time module for struct timeval.
63044         * modules/getsockopt: Depend on sys_time module for struct timeval.
63046 2009-03-01  Simon Josefsson  <simon@josefsson.org>
63048         * lib/gai_strerror.c (values): Use EAI_INPROGRESS instead of
63049         __USE_GNU, for consistency with netdb.in.h.
63050         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
63052 2009-03-01  Bruno Haible  <bruno@clisp.org>
63054         More support for FreeMiNT.
63055         * lib/fseeko.c (rpl_fseeko): Complete last commit.
63056         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
63058 2009-03-01  Bruno Haible  <bruno@clisp.org>
63060         More support for FreeMiNT.
63061         * lib/fpurge.c (fpurge): Correct last commit.
63062         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
63064 2009-03-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
63066         Fix unportable awk script in vc-list-files.
63067         * build-aux/vc-list-files: In the replacement awk script, use
63068         substr with a second argument of 1, not zero.
63069         Report by Simon Josefsson.
63071 2009-02-28  Bruno Haible  <bruno@clisp.org>
63073         More support for FreeMiNT.
63074         * lib/freading.c (freading) [__MINT__]: Use new macros that were added
63075         to FreeMiNT today.
63076         * lib/fwriting.c (fwriting): Likewise.
63077         Based on patch by Alan Hourihane <alanh@fairlite.co.uk>.
63079 2009-02-28  Bruno Haible  <bruno@clisp.org>
63081         * tests/test-freadseek.c (main): Disable test beyond end of file on
63082         FreeMiNT.
63083         * tests/test-ftello.c (main): Likewise.
63084         Patch by Alan Hourihane <alanh@fairlite.co.uk>.
63086 2009-02-28  Bruno Haible  <bruno@clisp.org>
63088         Add tentative support for FreeMiNT.
63089         * lib/fbufmode.c (fbufmode) [__MINT__]: Add conditional code.
63090         * lib/fpurge.c (fpurge): Likewise.
63091         * lib/freadable.c (freadable): Likewise.
63092         * lib/freading.c (freading): Likewise.
63093         * lib/freadptr.c (freadptr): Likewise.
63094         * lib/freadseek.c (freadptrinc): Likewise.
63095         * lib/fseeko.c (rpl_fseeko): Likewise.
63096         * lib/fseterr.c (fseterr): Likewise.
63097         * lib/fwritable.c (fwritable): Likewise.
63098         * lib/fwriting.c (fwriting): Likewise.
63099         * lib/freadahead.c (freadahead): Likewise, based on code by Alan
63100         Hourihane.
63101         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
63103 2009-02-28  Bruno Haible  <bruno@clisp.org>
63105         * lib/wait-process.h (wait_subprocess): Clarify restriction regarding
63106         SIGCHLD.
63107         Reported by Jim Meyering.
63109 2009-02-28  Bruno Haible  <bruno@clisp.org>
63111         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Separate the two first tests.
63112         Mention the results of these tests on various platforms.
63113         * doc/posix-functions/fprintf.texi: Mention platforms in canonical
63114         order.
63115         * doc/posix-functions/printf.texi: Likewise.
63116         * doc/posix-functions/snprintf.texi: Likewise.
63117         * doc/posix-functions/sprintf.texi: Likewise.
63118         * doc/posix-functions/vfprintf.texi: Likewise.
63119         * doc/posix-functions/vprintf.texi: Likewise.
63120         * doc/posix-functions/vsnprintf.texi: Likewise.
63121         * doc/posix-functions/vsprintf.texi: Likewise.
63122         * doc/glibc-functions/obstack_printf.texi: Likewise.
63123         * doc/glibc-functions/obstack_vprintf.texi: Likewise.
63125 2009-02-28  Bruno Haible  <bruno@clisp.org>
63127         * build-aux/po/Makefile.in.in: Update from GNU gettext 0.17.
63128         Reported by Loïc Minier <lool@dooz.org>.
63130 2009-02-27  Bruno Haible  <bruno@clisp.org>
63132         * gnulib-tool (func_import): Make the sed expression used to create the
63133         sed script for updating the .gitignore file POSIX compliant.
63134         Reported by Eric Blake.
63136 2009-02-27  Bruno Haible  <bruno@clisp.org>
63138         * gnulib-tool (sed): Don't alias as "sed --posix".
63139         Reported by Eric Blake.
63141 2009-02-27  Bruno Haible  <bruno@clisp.org>
63143         Avoid test link errors.
63144         * modules/uninorm/nfc-tests (test_u32_nfc_big_LDADD): New variable.
63145         * modules/uninorm/nfd-tests (test_u32_nfd_big_LDADD): New variable.
63146         * modules/uninorm/nfkc-tests (test_u32_nfkc_big_LDADD): New variable.
63147         * modules/uninorm/nfkd-tests (test_u32_nfkd_big_LDADD): New variable.
63148         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
63150 2009-02-27  Bruno Haible  <bruno@clisp.org>
63152         Avoid spurious "(cached)" in configure output.
63153         * m4/gnulib-common.m4 (gl_CACHE_VAL_SILENT): New macro.
63154         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Use it instead of AC_CACHE_VAL.
63155         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
63156         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
63157         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
63158         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Likewise.
63159         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
63160         * m4/stdarg.m4 (gl_STDARG_H): Likewise.
63161         Reported by Eric Blake.
63163 2009-02-27  Eric Blake  <ebb9@byu.net>
63165         printf: fix regression in previous patch
63166         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Fix compilation error.
63168 2009-02-27  Bruno Haible  <bruno@clisp.org>
63170         * lib/inttypes.in.h: Test merely whether _LP64 is defined, not its
63171         value.
63172         * lib/stdint.in.h: Likewise.
63173         Suggested by Eric Blake. Reported by Peter Bray <pdb_ml@yahoo.com.au>.
63175 2009-02-27  Eric Blake  <ebb9@byu.net>
63177         doc: mention more functions added in cygwin 1.7.0
63178         * doc/posix-functions/mbsnrtowcs.texi: Mention recent cygwin 1.7.0
63179         addition.
63180         * doc/posix-functions/open_wmemstream.texi: Likewise.
63181         * doc/posix-functions/wcsnlen.texi: Likewise.
63182         * doc/posix-functions/wcsnrtombs.texi: Likewise.
63183         * doc/posix-functions/wcstod.texi: Likewise.
63184         * doc/posix-functions/wcstof.texi: Likewise.
63185         * doc/posix-functions/wcstoimax.texi: Likewise.
63186         * doc/posix-functions/wcstok.texi: Likewise.
63187         * doc/posix-functions/wcstoumax.texi: Likewise.
63189         Detect bug in cygwin 1.5.x *printf on 1-character %ls.
63190         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Enhance filter.
63191         * doc/posix-functions/fprintf.texi: Update.
63192         * doc/posix-functions/printf.texi: Update.
63193         * doc/posix-functions/snprintf.texi: Update.
63194         * doc/posix-functions/sprintf.texi: Update.
63195         * doc/posix-functions/vfprintf.texi: Update.
63196         * doc/posix-functions/vprintf.texi: Update.
63197         * doc/posix-functions/vsnprintf.texi: Update.
63198         * doc/posix-functions/vsprintf.texi: Update.
63199         * doc/glibc-functions/obstack_printf.texi: Update.
63200         * doc/glibc-functions/obstack_vprintf.texi: Update.
63202 2009-02-26  Eric Blake  <ebb9@byu.net>
63204         avoid gcc 3.4.3 bug on long double NaN on Irix 6.5
63205         * tests/nan.h (NaNl): Rewrite as function on Irix, to avoid
63206         compilation bug by using runtime conversion.
63207         * m4/isfinite.m4 (gl_ISFINITE): Likewise.
63208         * m4/isnanl.m4 (gl_FUNC_ISNANL): Likewise.
63209         * modules/ceill-tests (Files): Use nan.h.
63210         * modules/floorl-tests (Files): Likewise.
63211         * modules/frexpl-tests (Files): Likewise.
63212         * modules/isnanl-tests (Files): Likewise.
63213         * modules/ldexpl-tests (Files): Likewise.
63214         * modules/roundl-tests (Files): Likewise.
63215         * modules/truncl-tests (Files): Likewise.
63216         * tests/test-ceill.c (main): Use a working NaN.
63217         * tests/test-floorl.c (main): Likewise.
63218         * tests/test-frexpl.c (main): Likewise.
63219         * tests/test-isnan.c (test_long_double): Likewise.
63220         * tests/test-isnanl.h (main): Likewise.
63221         * tests/test-ldexpl.h (main): Likewise.
63222         * tests/test-roundl.h (main): Likewise.
63223         * tests/test-truncl.h (main): Likewise.
63224         See http://lists.gnu.org/archive/html/bug-gnulib/2009-02/msg00190.html.
63226 2009-02-26  Eric Blake  <ebb9@byu.net>
63227             Bruno Haible  <bruno@clisp.org>
63229         Work around a *printf bug with %ls on Solaris.
63230         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Also test whether, when a
63231         precision is specified, sprintf stops converting the wide string
63232         argument when the number of bytes that have been produced by this
63233         conversion equals or exceeds the precision.
63234         * doc/posix-functions/fprintf.texi: Update.
63235         * doc/posix-functions/printf.texi: Update.
63236         * doc/posix-functions/snprintf.texi: Update.
63237         * doc/posix-functions/sprintf.texi: Update.
63238         * doc/posix-functions/vfprintf.texi: Update.
63239         * doc/posix-functions/vprintf.texi: Update.
63240         * doc/posix-functions/vsnprintf.texi: Update.
63241         * doc/posix-functions/vsprintf.texi: Update.
63242         * doc/glibc-functions/obstack_printf.texi: Update.
63243         * doc/glibc-functions/obstack_vprintf.texi: Update.
63245 2009-02-26  Eric Blake  <ebb9@byu.net>
63247         stdlib: favor compiler check of random.h
63248         * m4/stdlib_h.m4 (gl_STDLIB_H): Skip preprocessor check.  Needed
63249         to avoid an ObjC random.h installed by Swarm.
63251 2009-02-26  Bruno Haible  <bruno@clisp.org>
63253         Work around *printf bug with %g directive and 0.0 on HP-UX 10.20.
63254         * m4/printf.m4 (gl_PRINTF_INFINITE): Also test for %g output of -0.0.
63255         Reported by Gary V. Vaughan <gary@gnu.org>.
63257 2009-02-26  Bruno Haible  <bruno@clisp.org>
63259         Fix *printf behaviour regarding the %ls directive.
63260         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): New macro.
63261         * lib/vasnprintf.c (local_wcslen, VASNPRINTF): Handle
63262         NEED_PRINTF_DIRECTIVE_LS.
63263         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_LS): New macro.
63264         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
63265         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
63266         gl_PREREQ_VASNPRINTF_DIRECTIVE_LS and test its result. Invoke
63267         gl_PREREQ_VASNPRINTF_DIRECTIVE_LS.
63268         * m4/dprintf-posix.m4 (gl_FUNC_DPRINTF_POSIX): Likewise.
63269         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX): Likewise.
63270         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
63271         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
63272         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
63273         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
63274         * m4/vdprintf-posix.m4 (gl_FUNC_VDPRINTF_POSIX): Likewise.
63275         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
63276         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
63277         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
63278         * doc/posix-functions/fprintf.texi: Update.
63279         * doc/posix-functions/printf.texi: Update.
63280         * doc/posix-functions/snprintf.texi: Update.
63281         * doc/posix-functions/sprintf.texi: Update.
63282         * doc/posix-functions/vfprintf.texi: Update.
63283         * doc/posix-functions/vprintf.texi: Update.
63284         * doc/posix-functions/vsnprintf.texi: Update.
63285         * doc/posix-functions/vsprintf.texi: Update.
63286         * doc/glibc-functions/obstack_printf.texi: Update.
63287         * doc/glibc-functions/obstack_vprintf.texi: Update.
63288         Reported by Eric Blake.
63290 2009-02-25  Bruno Haible  <bruno@clisp.org>
63292         * m4/mbrtowc.m4 (gl_MBRTOWC_NUL_RETVAL): Update guess for Solaris 8
63293         with known value.
63294         Reported by Gary V. Vaughan <gary@gnu.org>.
63296 2009-02-25  Bruno Haible  <bruno@clisp.org>
63298         Work around mbrtowc bug in zh_CN.GB18030 locale on Solaris 8.
63299         * m4/mbrtowc.m4 (gl_MBRTOWC_SANITYCHECK): New macro.
63300         (gl_MBSTATE_T_BROKEN): Invoke it. Replace mbstate_t when it says "no".
63301         * doc/posix-functions/mbrtowc.texi: Document the Solaris 8 bug.
63302         Reported by Gary V. Vaughan <gary@gnu.org>.
63304 2009-02-25  Bruno Haible  <bruno@clisp.org>
63306         Work around broken INT8_MAX, UINT8_MAX etc. values on HP-UX 11.23.
63307         * m4/stdint.m4 (gl_STDINT_H): Also check whether the expansions of
63308         INT8_MAX, UINT8_MAX etc. contain casts to elementary types.
63309         * doc/posix-headers/stdint.texi: Mention the HP-UX bug.
63310         Reported by Gary V. Vaughan <gary@gnu.org>.
63312 2009-02-25  Eric Blake  <ebb9@byu.net>
63314         tests: skip fseek/ftell tests if ungetc is broken
63315         * m4/ungetc.m4: New file.
63316         * modules/fseek-tests: Split test, so ungetc dependency is
63317         separate from rest of test.
63318         * modules/fseeko-tests: Likewise.
63319         * modules/ftell-tests: Likewise.
63320         * modules/ftello-tests: Likewise.
63321         * tests/test-fseek.c (main): Isolate ungetc dependency.
63322         * tests/test-fseeko.c (main): Likewise.
63323         * tests/test-ftell.c (main): Likewise.
63324         * tests/test-ftello.c (main): Likewise.
63325         * tests/test-fseek2.sh: New file.
63326         * tests/test-fseeko2.sh: Likewise.
63327         * tests/test-ftell2.sh: Likewise.
63328         * tests/test-ftello2.sh: Likewise.
63330 2009-02-25  Ondřej Vašík  <ovasik@redhat.com>
63332         test-getaddrinfo: fix usage of skip return code 77
63333         * tests/test-gettaddrinfo.c: Return skip code 77 only
63334         for first occurrence of skip (4x77 is not 77)
63336 2009-02-25  Gary V. Vaughan  <gary@gnu.org>
63338         strtod: avoid C99 decl-after-statement
63339         * m4/strtod.m4 (gl_FUNC_STRTOD): Rearrange declaration.
63341 2009-02-24  Eric Blake  <ebb9@byu.net>
63343         strtod: detect HP-UX 11.31 bug
63344         * m4/strtod.m4 (gl_FUNC_STRTOD): Detect errno handling bug.
63345         Reported by Gary V. Vaughan.
63347 2009-02-23  Bruno Haible  <bruno@clisp.org>
63349         Fix invalid read past end of memory block.
63350         * lib/vasnprintf.c (DCHAR_SET): Define.
63351         (local_wcslen): Define only when needed.
63352         (local_strnlen, local_wcsnlen): New functions.
63353         (VASNPRINTF) [!USE_SNPRINTF && HAVE_WCHAR_T]: Implement the %s and %ls
63354         directives that involve a conversion ourselves.
63355         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Also check for strnlen,
63356         wcsnlen, mbrtowc, wcrtomb.
63357         * tests/test-vasnprintf-posix.c (test_function): Add tests for %.*s.
63358         * tests/test-vasprintf-posix.c (test_function): Likewise.
63359         * tests/test-snprintf-posix.h (test_function): Likewise.
63360         * tests/test-sprintf-posix.h (test_function): Likewise.
63361         Reported by Ben Pfaff <blp@cs.stanford.edu>.
63363 2009-02-22  Bruno Haible  <bruno@clisp.org>
63365         Implement new clarified decomposition of Hangul syllables.
63366         * lib/uninorm/decomposition.c (uc_decomposition): For Hangul syllables
63367         of type LTV, return only a pairwise decomposition.
63368         * lib/uninorm/canonical-decomposition.c (uc_canonical_decomposition):
63369         Likewise.
63370         * tests/uninorm/test-decomposition.c (main): Updated expected result.
63371         * tests/uninorm/test-canonical-decomposition.c (main): Likewise.
63372         * tests/uninorm/test-compat-decomposition.c (main): Likewise.
63374 2009-02-22  Bruno Haible  <bruno@clisp.org>
63376         * lib/uninorm/u-normalize-internal.h (FUNC): At the end, handle
63377         zero-length results and shrink excess allocated memory.
63378         * tests/uninorm/test-u8-nfc.c (test_u8_nfc): Check empty string result.
63379         * tests/uninorm/test-u8-nfd.c (test_u8_nfd): Likewise.
63380         * tests/uninorm/test-u8-nfkc.c (test_u8_nfkc): Likewise.
63381         * tests/uninorm/test-u8-nfkd.c (test_u8_nfkd): Likewise.
63382         * tests/uninorm/test-u16-nfc.c (test_u16_nfc): Likewise.
63383         * tests/uninorm/test-u16-nfd.c (test_u16_nfd): Likewise.
63384         * tests/uninorm/test-u16-nfkc.c (test_u16_nfkc): Likewise.
63385         * tests/uninorm/test-u16-nfkd.c (test_u16_nfkd): Likewise.
63386         * tests/uninorm/test-u32-nfc.c (test_u32_nfc): Likewise.
63387         * tests/uninorm/test-u32-nfd.c (test_u32_nfd): Likewise.
63388         * tests/uninorm/test-u32-nfkc.c (test_u32_nfkc): Likewise.
63389         * tests/uninorm/test-u32-nfkd.c (test_u32_nfkd): Likewise.
63391 2009-02-21  Bruno Haible  <bruno@clisp.org>
63393         * doc/gnulib.texi: Include safe-alloc.texi earlier.
63394         * doc/safe-alloc.texi: Terminate sentences with a period. Use two
63395         spaces after a period. Put a space between a macro name and its
63396         argument list. Trivial rewordings.
63397         * lib/safe-alloc.c: Include safe-alloc.h right after config.h.
63398         * tests/test-safe-alloc.c: Likewise. Include stdlib.h.
63399         (main): Return 0 explicitly.
63401 2009-02-21  Bruno Haible  <bruno@clisp.org>
63403         Tests for module 'uninorm/filter'.
63404         * tests/uninorm/test-uninorm-filter-nfc.c: New file.
63405         * modules/uninorm/filter-tests: New file.
63407         New module 'uninorm/filter'.
63408         * lib/uninorm.h (uninorm_filter_create, uninorm_filter_write,
63409         uninorm_filter_flush, uninorm_filter_free): New declarations.
63410         * lib/uninorm/uninorm-filter.c: New file.
63411         * modules/uninorm/filter: New file.
63413 2009-02-21  Bruno Haible  <bruno@clisp.org>
63415         Tests for module 'uninorm/nfkc'.
63416         * tests/uninorm/test-nfkc.c: New file.
63417         * tests/uninorm/test-u8-nfkc.c: New file.
63418         * tests/uninorm/test-u16-nfkc.c: New file.
63419         * tests/uninorm/test-u32-nfkc.c: New file.
63420         * tests/uninorm/test-u32-nfkc-big.sh: New file.
63421         * tests/uninorm/test-u32-nfkc-big.c: New file.
63422         * modules/uninorm/nfkc-tests: New file.
63424         New module 'uninorm/nfkc'.
63425         * lib/uninorm/nfkc.c: New file.
63426         * modules/uninorm/nfkc: New file.
63428         Tests for module 'uninorm/nfkd'.
63429         * tests/uninorm/test-nfkd.c: New file.
63430         * tests/uninorm/test-u8-nfkd.c: New file.
63431         * tests/uninorm/test-u16-nfkd.c: New file.
63432         * tests/uninorm/test-u32-nfkd.c: New file.
63433         * tests/uninorm/test-u32-nfkd-big.sh: New file.
63434         * tests/uninorm/test-u32-nfkd-big.c: New file.
63435         * modules/uninorm/nfkd-tests: New file.
63437         New module 'uninorm/nfkd'.
63438         * lib/uninorm/nfkd.c: New file.
63439         * modules/uninorm/nfkd: New file.
63441         Tests for module 'uninorm/nfc'.
63442         * tests/uninorm/test-nfc.c: New file.
63443         * tests/uninorm/test-u8-nfc.c: New file.
63444         * tests/uninorm/test-u16-nfc.c: New file.
63445         * tests/uninorm/test-u32-nfc.c: New file.
63446         * tests/uninorm/test-u32-nfc-big.sh: New file.
63447         * tests/uninorm/test-u32-nfc-big.c: New file.
63448         * modules/uninorm/nfc-tests: New file.
63450         New module 'uninorm/nfc'.
63451         * lib/uninorm/nfc.c: New file.
63452         * modules/uninorm/nfc: New file.
63454         Tests for module 'uninorm/nfd'.
63455         * tests/uninorm/test-nfd.c: New file.
63456         * tests/uninorm/test-u8-nfd.c: New file.
63457         * tests/uninorm/test-u16-nfd.c: New file.
63458         * tests/uninorm/test-u32-nfd.c: New file.
63459         * tests/uninorm/test-u32-nfd-big.sh: New file.
63460         * tests/uninorm/test-u32-nfd-big.c: New file.
63461         * tests/uninorm/test-u32-normalize-big.h: New file.
63462         * tests/uninorm/test-u32-normalize-big.c: New file.
63463         * tests/uninorm/NormalizationTest.txt: New file, created from
63464         Unicode 5.1.0 NormalizationTest.txt.
63465         * modules/uninorm/nfd-tests: New file.
63467         New module 'uninorm/nfd'.
63468         * lib/uninorm/nfd.c: New file.
63469         * modules/uninorm/nfd: New file.
63471         New module 'uninorm/u32-normalize'.
63472         * lib/uninorm/u32-normalize.c: New file.
63473         * modules/uninorm/u32-normalize: New file.
63475         New module 'uninorm/u16-normalize'.
63476         * lib/uninorm/u16-normalize.c: New file.
63477         * modules/uninorm/u16-normalize: New file.
63479         New module 'uninorm/u8-normalize'.
63480         * lib/uninorm/u8-normalize.c: New file.
63481         * lib/uninorm/normalize-internal.h: New file.
63482         * lib/uninorm/u-normalize-internal.h: New file.
63483         * modules/uninorm/u8-normalize: New file.
63485         New module 'uninorm/decompose-internal'.
63486         * lib/uninorm/decompose-internal.c: New file.
63487         * modules/uninorm/decompose-internal: New file.
63489         Tests for module 'uninorm/composition'.
63490         * tests/uninorm/test-composition.c: New file.
63491         * modules/uninorm/composition-tests: New file.
63493         New module 'uninorm/composition'.
63494         * lib/uninorm/composition.c: New file.
63495         * lib/uninorm/composition-table.gperf: New file, generated by
63496         gen-uni-tables.
63497         * modules/uninorm/composition: New file.
63499         Tests for module 'uninorm/compat-decomposition'.
63500         * tests/uninorm/test-compat-decomposition.c: New file.
63501         * modules/uninorm/compat-decomposition-tests: New file.
63503         New module 'uninorm/compat-decomposition'.
63504         * lib/uninorm/decompose-internal.h: New file.
63505         * lib/uninorm/compat-decomposition.c: New file.
63506         * modules/uninorm/compat-decomposition: New file.
63508         Tests for module 'uninorm/canonical-decomposition'.
63509         * tests/uninorm/test-canonical-decomposition.c: New file.
63510         * modules/uninorm/canonical-decomposition-tests: New file.
63512         New module 'uninorm/canonical-decomposition'.
63513         * lib/uninorm/canonical-decomposition.c: New file.
63514         * modules/uninorm/canonical-decomposition: New file.
63516         Tests for module 'uninorm/decomposition'.
63517         * tests/uninorm/test-decomposition.c: New file.
63518         * modules/uninorm/decomposition-tests: New file.
63520         New module 'uninorm/decomposition'.
63521         * lib/uninorm/decomposition.c: New file.
63522         * modules/uninorm/decomposition: New file.
63524         New module 'uninorm/decomposition-table'.
63525         * lib/uninorm/decomposition-table.h: New file.
63526         * lib/uninorm/decomposition-table.c: New file.
63527         * lib/uninorm/decomposition-table1.h: New file, generated by
63528         gen-uni-tables.
63529         * lib/uninorm/decomposition-table2.h: New file, generated by
63530         gen-uni-tables.
63531         * modules/uninorm/decomposition-table: New file.
63533         * lib/gen-uni-tables.c (MAX_DECOMP_LENGTH): New macro.
63534         (UC_DECOMP_*): New enumeration items.
63535         (get_decomposition): New function.
63536         (struct decomp_table): New type.
63537         (output_decomposition, output_decomposition_tables): New functions.
63538         (unicode_composition_exclusions): New variable.
63539         (fill_composition_exclusions, debug_output_composition_tables): New
63540         functions.
63541         (main): Accept one more argument. Invoke fill_composition_exclusions.
63542         Output decomposition and composition tables.
63544         New module 'uninorm/base'.
63545         * lib/uninorm.h: New file.
63546         * lib/unictype.h: Update comment.
63547         * modules/uninorm/base: New file.
63549 2009-02-21  David Lutterkort  <lutter@redhat.com>
63551         Tests for module 'safe-alloc'.
63552         * tests/test-safe-alloc.c: New file.
63553         * modules/safe-alloc-tests: New file.
63555         New module 'safe-alloc'.
63556         * lib/safe-alloc.h: New file.
63557         * lib/safe-alloc.c: New file.
63558         * m4/safe-alloc.m4: New file.
63559         * modules/safe-alloc: New file.
63560         * doc/safe-alloc.texi: New file.
63561         * doc/gnulib.texi: Include it.
63562         * MODULES.html.sh (Memory management functions <stdlib.h>): Add
63563         safe-alloc.
63565 2009-02-18  Bruno Haible  <bruno@clisp.org>
63567         Fix link error on non-glibc systems.
63568         * modules/uniwbrk/ulc-wordbreaks-tests (test_ulc_wordbreaks_LDADD): New
63569         variable.
63570         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
63572 2009-02-18  Jim Meyering  <meyering@redhat.com>
63574         fts: avoid used-uninitialized error due to recent change
63575         * lib/fts.c (fts_read): Guard uses of the new member,
63576         parent->fts_n_dirs_remaining, since it's not relevant for
63577         the parent of a directory specified on the command-line.
63579 2009-02-17  James Youngman  <jay@gnu.org>
63580             Bruno Haible  <bruno@clisp.org>
63582         * m4/include_next.m4: Reformulate comment.
63584 2009-02-16  Jim Meyering  <meyering@redhat.com>
63586         fts: add #if guards so that the fts_lgpl module still builds
63587         * lib/fts.c: Guard just-added hash-table-using parts with
63588         #if GNULIB_FTS, so as not to break builds of the fts_lgpl module.
63589         Reported by Simon Josefsson.
63591 2009-02-15  Bruno Haible  <bruno@clisp.org>
63593         * modules/array-mergesort-tests: New file.
63594         * tests/test-array-mergesort.c: New file.
63596         New module 'array-mergesort'.
63597         * modules/array-mergesort: New file.
63598         * lib/array-mergesort.h: New file.
63600 2009-02-15  Bruno Haible  <bruno@clisp.org>
63602         Fix 2009-02-07 commit.
63603         * lib/gen-uni-tables.c (output_predicate, output_category,
63604         output_combclass, output_bidi_category, output_decimal_digit,
63605         output_digit, output_numeric, output_mirror, output_scripts,
63606         output_ident_category, output_simple_mapping): Fix format directives.
63607         (output_lbp, output_wbp): Don't convert -1 to a size_t implicitly.
63609 2009-02-15  Albert Chin-A-Young  <china@thewrittenword.com>
63611         * m4/include_next.m4: Update comment about IBM C 9.0/10.1 bug, now that
63612         fixes are available from IBM.
63614 2009-02-13  Jim Meyering  <meyering@redhat.com>
63616         fts: arrange not to stat non-directories in more cases
63617         This makes GNU find (when it doesn't need to stat each file)
63618         *much* more efficient at traversing reiserfs file systems.
63619         * lib/fts_.h (struct ftsent) [fts_n_dirs_remaining]: New member.
63620         (struct FTS) [fts_leaf_optimization_works_ht]: Add member.
63621         * lib/fts.c (fts_close): Free ->fts_leaf_optimization_works_ht.
63622         (S_MAGIC_REISERFS, S_MAGIC_PROC): Define.
63623         (leaf_optimization_applies): New function.
63624         (LCO_hash, LCO_compare): New helper functions.
63625         (link_count_optimize_ok): New function.
63626         (fts_stat): Initialize new member (if dir).
63627         (fts_read): Decrement parent's fts_n_dirs_remaining count if
63628         we've just stat'ed a directory.  Skip the stat call when possible.
63629         ---
63630         Note this AFS-related exchange:
63631         http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=143111
63632         and note find's pioctl call in find/fstype.c.
63633         But that is necessary only if you want to enable the
63634         optimization for AFS, and for now, I don't.
63636         fts: move a function definition "up" (no semantic change)
63637         * lib/fts.c (dirent_inode_sort_may_be_useful): Move definition
63638         "up" to precede upcoming use of a related function.
63640 2009-02-11  Jim Meyering  <meyering@redhat.com>
63642         fts: correct internal computation of nlinks (optimization-related)
63643         * lib/fts.c (fts_build): ISSET(FTS_NOSTAT) has no bearing on
63644         whether the current entry is a directory, so don't test it.
63646 2009-02-10  Bruno Haible  <bruno@clisp.org>
63648         Tests for module 'uniwbrk/ulc-wordbreaks'.
63649         * modules/uniwbrk/ulc-wordbreaks-tests: New file.
63650         * tests/uniwbrk/test-ulc-wordbreaks.sh: New file.
63651         * tests/uniwbrk/test-ulc-wordbreaks.c: New file.
63653         Tests for module 'uniwbrk/u32-wordbreaks'.
63654         * modules/uniwbrk/u32-wordbreaks-tests: New file.
63655         * tests/uniwbrk/test-u32-wordbreaks.c: New file.
63657         Tests for module 'uniwbrk/u16-wordbreaks'.
63658         * modules/uniwbrk/u16-wordbreaks-tests: New file.
63659         * tests/uniwbrk/test-u16-wordbreaks.c: New file.
63661         Tests for module 'uniwbrk/u8-wordbreaks'.
63662         * modules/uniwbrk/u8-wordbreaks-tests: New file.
63663         * tests/uniwbrk/test-u8-wordbreaks.c: New file.
63665 2009-02-10  Bruno Haible  <bruno@clisp.org>
63667         * modules/uniwbrk/u8-wordbreaks (Depends-on): Add uniwbrk/wordbreak
63668         property.
63669         * modules/uniwbrk/u16-wordbreaks (Depends-on): Likewise.
63670         * modules/uniwbrk/u32-wordbreaks (Depends-on): Likewise.
63671         * modules/uniwbrk/ulc-wordbreaks (Depends-on): Add localcharset.
63673 2009-02-10  Simon Josefsson  <simon@josefsson.org>
63675         * m4/sockets.m4: Call AC_C_INLINE since sockets.h now can use
63676         inline keywords.  Reported by Bruno Haible <bruno@clisp.org>.
63678 2009-02-10  Bruno Haible  <bruno@clisp.org>
63680         * lib/unilbrk/lbrktables.h: Renamed from lib/unilbrk/tables.h.
63681         * lib/unilbrk/lbrktables.c: Renamed from lib/unilbrk/tables.c.
63682         * modules/unilbrk/tables (Files, Makefile.am, Include): Update.
63683         * lib/unilbrk/u8-possible-linebreaks.c: Update.
63684         * lib/unilbrk/u16-possible-linebreaks.c: Likewise.
63685         * lib/unilbrk/u32-possible-linebreaks.c: Likewise.
63687 2009-02-09  Simon Josefsson  <simon@josefsson.org>
63689         * lib/sockets.h (gl_fd_to_handle): New function.
63691         * tests/test-sockets.c: Call gl_fd_to_handle.
63693 2009-02-09  Bruno Haible  <bruno@clisp.org>
63695         * doc/havelib.texi: Document the conventions on bi-arch systems.
63697 2009-02-08  Bruno Haible  <bruno@clisp.org>
63699         Document the AC_LIB_LINKFLAGS macro.
63700         * doc/havelib.texi: New file, mostly written on 2005-05-24.
63701         * doc/gnulib.texi: Include it.
63703 2009-02-08  Bruno Haible  <bruno@clisp.org>
63705         Fix wrong order of sections, compared to TOC.
63706         * doc/gnulib.texi: Include relocatable-maint.texi after the
63707         "Regular expressions" node, not before.
63709 2009-02-08  Bruno Haible  <bruno@clisp.org>
63711         Tests for module 'unicase/totitle'.
63712         * modules/unicase/totitle-tests: New file.
63714         Tests for module 'unicase/tolower'.
63715         * modules/unicase/tolower-tests: New file.
63717         Tests for module 'unicase/toupper'.
63718         * modules/unicase/toupper-tests: New file.
63719         * tests/unicase/test-mapping-part1.h: New file.
63720         * tests/unicase/test-mapping-part2.h: New file.
63722         New module 'unicase/totitle'.
63723         * modules/unicase/totitle: New file.
63724         * lib/unicase/totitle.c: New file.
63726         New module 'unicase/tolower'.
63727         * modules/unicase/tolower: New file.
63728         * lib/unicase/tolower.c: New file.
63730         New module 'unicase/toupper'.
63731         * modules/unicase/toupper: New file.
63732         * lib/unicase/toupper.c: New file.
63733         * lib/unicase/simple-mapping.h: New file.
63735         * lib/gen-uni-tables.c (output_simple_mapping_test): New function.
63736         (mapping_table): New structure.
63737         (output_simple_mapping): New function.
63738         (main): Invoke output_simple_mapping_test and output_simple_mapping.
63739         * modules/gen-uni-tables (Description): Update.
63740         * lib/unicase/toupper.h: New file, automatically generated by
63741         gen-uni-tables.
63742         * lib/unicase/tolower.h: New file, automatically generated by
63743         gen-uni-tables.
63744         * lib/unicase/totitle.h: New file, automatically generated by
63745         gen-uni-tables.
63746         * tests/unicase/test-uc_toupper.c: New file, automatically generated by
63747         gen-uni-tables.
63748         * tests/unicase/test-uc_tolower.c: New file, automatically generated by
63749         gen-uni-tables.
63750         * tests/unicase/test-uc_totitle.c: New file, automatically generated by
63751         gen-uni-tables.
63753         New module 'unicase/base'.
63754         * modules/unicase/base: New file.
63755         * lib/unicase.h: New file.
63757 2009-02-08  Bruno Haible  <bruno@clisp.org>
63759         New module 'uniwbrk/ulc-wordbreaks'.
63760         * modules/uniwbrk/ulc-wordbreaks: New file.
63761         * lib/uniwbrk/ulc-wordbreaks.c: New file.
63763         New module 'uniwbrk/u32-wordbreaks'.
63764         * modules/uniwbrk/u32-wordbreaks: New file.
63765         * lib/uniwbrk/u32-wordbreaks.c: New file.
63767         New module 'uniwbrk/u16-wordbreaks'.
63768         * modules/uniwbrk/u16-wordbreaks: New file.
63769         * lib/uniwbrk/u16-wordbreaks.c: New file.
63771         New module 'uniwbrk/u8-wordbreaks'.
63772         * modules/uniwbrk/u8-wordbreaks: New file.
63773         * lib/uniwbrk/u8-wordbreaks.c: New file.
63774         * lib/uniwbrk/u-wordbreaks.h: New file.
63776         New module 'uniwbrk/table'.
63777         * modules/uniwbrk/table: New file.
63778         * lib/uniwbrk/wbrktable.h: New file.
63779         * lib/uniwbrk/wbrktable.c: New file.
63781         New module 'uniwbrk/wordbreak-property'.
63782         * modules/uniwbrk/wordbreak-property: New file.
63783         * lib/uniwbrk/wordbreak-property.c: New file.
63785         * lib/gen-uni-tables.c (WBP_*): New enum items.
63786         (get_wbp, debug_output_wbp, debug_output_wbrk_tables): New functions.
63787         (unicode_org_wbp): New variable.
63788         (fill_org_wbp, debug_output_org_wbp, debug_output_org_wbrk_tables):
63789         New functions.
63790         (wbp_table): New structure.
63791         (output_wbp, output_wbrk_tables): New functions.
63792         (main): Accept additional argument. Invoke fill_org_wbp,
63793         debug_output_wbrk_tables, debug_output_org_wbrk_tables,
63794         output_wbrk_tables.
63795         * modules/gen-uni-tables (Description): Update.
63796         * lib/uniwbrk/wbrkprop.h: New file, automatically generated by
63797         gen-uni-tables.
63799         New module 'uniwbrk/base'.
63800         * modules/uniwbrk/base: New file.
63801         * lib/uniwbrk.h: New file.
63803 2009-02-08  Bruno Haible  <bruno@clisp.org>
63805         Update to Unicode 5.1.0.
63806         * lib/gen-uni-tables.c (is_property_alphabetic): Include
63807         U+2185..U+2188.
63808         (is_property_default_ignorable_code_point): Don't include characters
63809         of category Cc or Cs and not-a-characters.
63810         (get_lbp): Assume REVISION_22. Special handling of U+0609, U+060A,
63811         U+0D79, U+109E, U+109F, U+A60C.
63812         * lib/unictype/bidi_of.h: Regenerated.
63813         * lib/unictype/blocks.h: Regenerated.
63814         * lib/unictype/categ_C.h: Regenerated.
63815         * lib/unictype/categ_Cf.h: Regenerated.
63816         * lib/unictype/categ_Cn.h: Regenerated.
63817         * lib/unictype/categ_L.h: Regenerated.
63818         * lib/unictype/categ_Ll.h: Regenerated.
63819         * lib/unictype/categ_Lm.h: Regenerated.
63820         * lib/unictype/categ_Lo.h: Regenerated.
63821         * lib/unictype/categ_Lu.h: Regenerated.
63822         * lib/unictype/categ_M.h: Regenerated.
63823         * lib/unictype/categ_Mc.h: Regenerated.
63824         * lib/unictype/categ_Me.h: Regenerated.
63825         * lib/unictype/categ_Mn.h: Regenerated.
63826         * lib/unictype/categ_N.h: Regenerated.
63827         * lib/unictype/categ_Nd.h: Regenerated.
63828         * lib/unictype/categ_Nl.h: Regenerated.
63829         * lib/unictype/categ_No.h: Regenerated.
63830         * lib/unictype/categ_P.h: Regenerated.
63831         * lib/unictype/categ_Pd.h: Regenerated.
63832         * lib/unictype/categ_Pe.h: Regenerated.
63833         * lib/unictype/categ_Pf.h: Regenerated.
63834         * lib/unictype/categ_Pi.h: Regenerated.
63835         * lib/unictype/categ_Po.h: Regenerated.
63836         * lib/unictype/categ_Ps.h: Regenerated.
63837         * lib/unictype/categ_S.h: Regenerated.
63838         * lib/unictype/categ_Sk.h: Regenerated.
63839         * lib/unictype/categ_Sm.h: Regenerated.
63840         * lib/unictype/categ_So.h: Regenerated.
63841         * lib/unictype/categ_of.h: Regenerated.
63842         * lib/unictype/combining.h: Regenerated.
63843         * lib/unictype/ctype_alnum.h: Regenerated.
63844         * lib/unictype/ctype_alpha.h: Regenerated.
63845         * lib/unictype/ctype_graph.h: Regenerated.
63846         * lib/unictype/ctype_lower.h: Regenerated.
63847         * lib/unictype/ctype_print.h: Regenerated.
63848         * lib/unictype/ctype_punct.h: Regenerated.
63849         * lib/unictype/ctype_upper.h: Regenerated.
63850         * lib/unictype/decdigit.h: Regenerated.
63851         * lib/unictype/digit.h: Regenerated.
63852         * lib/unictype/mirror.h: Regenerated.
63853         * lib/unictype/numeric.h: Regenerated.
63854         * lib/unictype/pr_alphabetic.h: Regenerated.
63855         * lib/unictype/pr_bidi_arabic_digit.h: Regenerated.
63856         * lib/unictype/pr_bidi_arabic_right_to_left.h: Regenerated.
63857         * lib/unictype/pr_bidi_boundary_neutral.h: Regenerated.
63858         * lib/unictype/pr_bidi_eur_num_terminator.h: Regenerated.
63859         * lib/unictype/pr_bidi_left_to_right.h: Regenerated.
63860         * lib/unictype/pr_bidi_non_spacing_mark.h: Regenerated.
63861         * lib/unictype/pr_bidi_other_neutral.h: Regenerated.
63862         * lib/unictype/pr_combining.h: Regenerated.
63863         * lib/unictype/pr_dash.h: Regenerated.
63864         * lib/unictype/pr_decimal_digit.h: Regenerated.
63865         * lib/unictype/pr_default_ignorable_code_point.h: Regenerated.
63866         * lib/unictype/pr_deprecated.h: Regenerated.
63867         * lib/unictype/pr_diacritic.h: Regenerated.
63868         * lib/unictype/pr_extender.h: Regenerated.
63869         * lib/unictype/pr_format_control.h: Regenerated.
63870         * lib/unictype/pr_grapheme_base.h: Regenerated.
63871         * lib/unictype/pr_grapheme_extend.h: Regenerated.
63872         * lib/unictype/pr_grapheme_link.h: Regenerated.
63873         * lib/unictype/pr_id_continue.h: Regenerated.
63874         * lib/unictype/pr_id_start.h: Regenerated.
63875         * lib/unictype/pr_ideographic.h: Regenerated.
63876         * lib/unictype/pr_ignorable_control.h: Regenerated.
63877         * lib/unictype/pr_lowercase.h: Regenerated.
63878         * lib/unictype/pr_math.h: Regenerated.
63879         * lib/unictype/pr_numeric.h: Regenerated.
63880         * lib/unictype/pr_other_alphabetic.h: Regenerated.
63881         * lib/unictype/pr_other_default_ignorable_code_point.h: Regenerated.
63882         * lib/unictype/pr_other_grapheme_extend.h: Regenerated.
63883         * lib/unictype/pr_other_id_continue.h: Regenerated.
63884         * lib/unictype/pr_other_lowercase.h: Regenerated.
63885         * lib/unictype/pr_other_math.h: Regenerated.
63886         * lib/unictype/pr_punctuation.h: Regenerated.
63887         * lib/unictype/pr_sentence_terminal.h: Regenerated.
63888         * lib/unictype/pr_soft_dotted.h: Regenerated.
63889         * lib/unictype/pr_terminal_punctuation.h: Regenerated.
63890         * lib/unictype/pr_unassigned_code_value.h: Regenerated.
63891         * lib/unictype/pr_unified_ideograph.h: Regenerated.
63892         * lib/unictype/pr_uppercase.h: Regenerated.
63893         * lib/unictype/pr_xid_continue.h: Regenerated.
63894         * lib/unictype/pr_xid_start.h: Regenerated.
63895         * lib/unictype/pr_zero_width.h: Regenerated.
63896         * lib/unictype/scripts.h: Regenerated.
63897         * lib/unictype/scripts_byname.gperf: Regenerated.
63898         * lib/unictype/sy_java_ident.h: Regenerated.
63899         * lib/unilbrk/lbrkprop1.h: Regenerated.
63900         * lib/unilbrk/lbrkprop2.h: Regenerated.
63901         * tests/unictype/test-categ_C.c: Regenerated.
63902         * tests/unictype/test-categ_Cf.c: Regenerated.
63903         * tests/unictype/test-categ_Cn.c: Regenerated.
63904         * tests/unictype/test-categ_L.c: Regenerated.
63905         * tests/unictype/test-categ_Ll.c: Regenerated.
63906         * tests/unictype/test-categ_Lm.c: Regenerated.
63907         * tests/unictype/test-categ_Lo.c: Regenerated.
63908         * tests/unictype/test-categ_Lu.c: Regenerated.
63909         * tests/unictype/test-categ_M.c: Regenerated.
63910         * tests/unictype/test-categ_Mc.c: Regenerated.
63911         * tests/unictype/test-categ_Me.c: Regenerated.
63912         * tests/unictype/test-categ_Mn.c: Regenerated.
63913         * tests/unictype/test-categ_N.c: Regenerated.
63914         * tests/unictype/test-categ_Nd.c: Regenerated.
63915         * tests/unictype/test-categ_Nl.c: Regenerated.
63916         * tests/unictype/test-categ_No.c: Regenerated.
63917         * tests/unictype/test-categ_P.c: Regenerated.
63918         * tests/unictype/test-categ_Pd.c: Regenerated.
63919         * tests/unictype/test-categ_Pe.c: Regenerated.
63920         * tests/unictype/test-categ_Pf.c: Regenerated.
63921         * tests/unictype/test-categ_Pi.c: Regenerated.
63922         * tests/unictype/test-categ_Po.c: Regenerated.
63923         * tests/unictype/test-categ_Ps.c: Regenerated.
63924         * tests/unictype/test-categ_S.c: Regenerated.
63925         * tests/unictype/test-categ_Sk.c: Regenerated.
63926         * tests/unictype/test-categ_Sm.c: Regenerated.
63927         * tests/unictype/test-categ_So.c: Regenerated.
63928         * tests/unictype/test-ctype_alnum.c: Regenerated.
63929         * tests/unictype/test-ctype_alpha.c: Regenerated.
63930         * tests/unictype/test-ctype_graph.c: Regenerated.
63931         * tests/unictype/test-ctype_lower.c: Regenerated.
63932         * tests/unictype/test-ctype_print.c: Regenerated.
63933         * tests/unictype/test-ctype_punct.c: Regenerated.
63934         * tests/unictype/test-ctype_upper.c: Regenerated.
63935         * tests/unictype/test-decdigit.h: Regenerated.
63936         * tests/unictype/test-digit.h: Regenerated.
63937         * tests/unictype/test-numeric.h: Regenerated.
63938         * tests/unictype/test-pr_alphabetic.c: Regenerated.
63939         * tests/unictype/test-pr_bidi_arabic_digit.c: Regenerated.
63940         * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Regenerated.
63941         * tests/unictype/test-pr_bidi_boundary_neutral.c: Regenerated.
63942         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Regenerated.
63943         * tests/unictype/test-pr_bidi_left_to_right.c: Regenerated.
63944         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Regenerated.
63945         * tests/unictype/test-pr_bidi_other_neutral.c: Regenerated.
63946         * tests/unictype/test-pr_combining.c: Regenerated.
63947         * tests/unictype/test-pr_dash.c: Regenerated.
63948         * tests/unictype/test-pr_decimal_digit.c: Regenerated.
63949         * tests/unictype/test-pr_default_ignorable_code_point.c: Regenerated.
63950         * tests/unictype/test-pr_deprecated.c: Regenerated.
63951         * tests/unictype/test-pr_diacritic.c: Regenerated.
63952         * tests/unictype/test-pr_extender.c: Regenerated.
63953         * tests/unictype/test-pr_format_control.c: Regenerated.
63954         * tests/unictype/test-pr_grapheme_base.c: Regenerated.
63955         * tests/unictype/test-pr_grapheme_extend.c: Regenerated.
63956         * tests/unictype/test-pr_grapheme_link.c: Regenerated.
63957         * tests/unictype/test-pr_id_continue.c: Regenerated.
63958         * tests/unictype/test-pr_id_start.c: Regenerated.
63959         * tests/unictype/test-pr_ideographic.c: Regenerated.
63960         * tests/unictype/test-pr_ignorable_control.c: Regenerated.
63961         * tests/unictype/test-pr_lowercase.c: Regenerated.
63962         * tests/unictype/test-pr_math.c: Regenerated.
63963         * tests/unictype/test-pr_numeric.c: Regenerated.
63964         * tests/unictype/test-pr_other_alphabetic.c: Regenerated.
63965         * tests/unictype/test-pr_other_default_ignorable_code_point.c:
63966         Regenerated.
63967         * tests/unictype/test-pr_other_grapheme_extend.c: Regenerated.
63968         * tests/unictype/test-pr_other_id_continue.c: Regenerated.
63969         * tests/unictype/test-pr_other_lowercase.c: Regenerated.
63970         * tests/unictype/test-pr_other_math.c: Regenerated.
63971         * tests/unictype/test-pr_punctuation.c: Regenerated.
63972         * tests/unictype/test-pr_sentence_terminal.c: Regenerated.
63973         * tests/unictype/test-pr_soft_dotted.c: Regenerated.
63974         * tests/unictype/test-pr_terminal_punctuation.c: Regenerated.
63975         * tests/unictype/test-pr_unassigned_code_value.c: Regenerated.
63976         * tests/unictype/test-pr_unified_ideograph.c: Regenerated.
63977         * tests/unictype/test-pr_uppercase.c: Regenerated.
63978         * tests/unictype/test-pr_xid_continue.c: Regenerated.
63979         * tests/unictype/test-pr_xid_start.c: Regenerated.
63980         * tests/unictype/test-pr_zero_width.c: Regenerated.
63982         Update to Unicode 5.1.0.
63983         * lib/uniwidth/width.c (nonspacing_table_data): Add U+0487,
63984         U+0616..U+061A, U+0A51, U+0A75, U+0B44, U+0B62..U+0B63, U+0C62..U+0C63,
63985         U+0D44, U+0D62..U+0D63, U+1033..U+1035, U+103A, U+103D..U+103E,
63986         U+105E..U+1060, U+1071..U+1074, U+1082, U+1085..U+1086, U+108D,
63987         U+1B80..U+1B81, U+1BA2..U+1BA5, U+1BA8..U+1BA9, U+1C2C..U+1C33,
63988         U+1C36..U+1C37, U+1DCB..U+1DE6, U+2064, U+20F0, U+2DE0..U+2DFF,
63989         U+A66F..U+A672, U+A67C..U+A67D, U+A8C4, U+A926..U+A92D, U+A947..U+A951,
63990         U+AA29..U+AA2E, U+AA31..U+AA32, U+AA35..U+AA36, U+AA43, U+AA4C,
63991         U+FE24..U+FE26, U+101FD. Remove U+1929..U+192B.
63992         (nonspacing_table_ind): Update.
63993         * tests/uniwidth/test-uc_width2.sh: Update expected result.
63995         Update to Unicode 5.1.0.
63996         * lib/uniname/gen-uninames.lisp (main): Add the range 0x1Fxxx to the
63997         code transform.
63998         * lib/uniname/uniname.c (unicode_character_name,
63999         unicode_name_character): Add the range 0x1Fxxx to the code transform.
64000         * lib/uniname/uninames.h: Regenerated.
64001         * tests/uniname/UnicodeDataNames.txt: Update to Unicode 5.1.0.
64003 2009-02-07  Bruno Haible  <bruno@clisp.org>
64005         Merge gen-ctype and gen-lbrk into a single program.
64006         * lib/gen-uni-tables.c: New file, incorporating
64007         lib/unictype/gen-ctype.c and lib/unilbrk/gen-lbrk.c.
64008         Add directory prefixes to the names of the generated files.
64009         * lib/unictype/gen-ctype.c: Remove file.
64010         * lib/unilbrk/gen-lbrk.c: Remove file.
64011         * modules/gen-uni-tables: New file.
64012         * modules/unictype/gen-ctype: Remove file.
64013         * modules/unilbrk/gen-lbrk: Remove file.
64015 2009-02-07  Bruno Haible  <bruno@clisp.org>
64017         * lib/unistr.h (u8_strcoll, u16_strcoll, u32_strcoll): New declations.
64019         New module 'unistr/u32-strcoll'.
64020         * modules/unistr/u32-strcoll: New file.
64021         * lib/unistr/u32-strcoll.c: New file.
64023         New module 'unistr/u16-strcoll'.
64024         * modules/unistr/u16-strcoll: New file.
64025         * lib/unistr/u16-strcoll.c: New file.
64027         New module 'unistr/u8-strcoll'.
64028         * modules/unistr/u8-strcoll: New file.
64029         * lib/unistr/u8-strcoll.c: New file.
64030         * lib/unistr/u-strcoll.h: New file.
64032 2009-02-07  Bruno Haible  <bruno@clisp.org>
64034         * test-mbrtowc4.sh (LOCALE_ZH_CN): Fix default value.
64035         * test-mbsnrtowcs4.sh (LOCALE_ZH_CN): Likewise.
64036         * test-mbsrtowcs4.sh (LOCALE_ZH_CN): Likewise.
64037         * test-wcrtomb.sh (LOCALE_ZH_CN): Likewise.
64038         * test-wcsnrtombs4.sh (LOCALE_ZH_CN): Likewise.
64039         * test-wcsrtombs4.sh (LOCALE_ZH_CN): Likewise.
64041 2009-02-07  Bruno Haible  <bruno@clisp.org>
64043         Make 64-bit clean.
64044         * lib/unictype/gen-ctype.c (output_predicate, output_category,
64045         output_combclass, output_bidi_category, output_decimal_digit,
64046         output_digit, output_numeric, output_mirror, output_scripts,
64047         output_ident_category): Use proper width specifier in format strings.
64049 2009-02-07  Bruno Haible  <bruno@clisp.org>
64051         * doc/posix-functions/dirfd.texi: Clarify situation on mingw. Document
64052         failure behaviour.
64054 2009-02-07  Jim Meyering  <meyering@redhat.com>
64056         regex: avoid compilation failure with upcoming gcc-4.4
64057         * lib/regex_internal.h: Revert e48d8b47fb3eee81d341b71c3e006efe9e3433a7
64058         [workaround for PGC prior to 6.1-2].  Otherwise, we'd get this:
64059         "... error: integer overflow in preprocessor expression".
64061 2009-02-05  Ben Pfaff  <blp@gnu.org>
64063         Fix link errors on Windows when close module is used.
64064         * modules/close: Add $(LIB_CLOSE) to Link section.
64065         * m4/close.m4 (gl_REPLACE_CLOSE): Substitute -lws2_32 into
64066         $(LIB_CLOSE) on Windows.
64068 2009-02-05  Jim Meyering  <meyering@redhat.com>
64070         still avoid unused-parameter warnings, but do it cleanly
64071         * lib/fsusage.c (UNUSED_PARAM): Remove definition.
64072         (get_fs_usage): Cast to void instead.
64073         * lib/mountlist.c (UNUSED_PARAM): Remove definition.
64074         (dev_from_mount_options, read_file_system_list): Cast to void.
64075         Prompted by Bruno Haible.
64077 2009-02-04  Jim Meyering  <meyering@redhat.com>
64079         fsusage.c: correct copyright year
64080         * lib/fsusage.c: Reflect year in which the change is pushed into
64082         avoid misc. warnings
64083         * lib/fsusage.c (UNUSED_PARAM): Define.
64084         (get_fs_usage): Mark parameter "disk" as unused.
64085         * lib/getugroups.c (getgrent): Use "void" in prototype.
64086         * lib/mountlist.c: Mark unused parameters.
64087         (read_file_system_list): Declare a local with "const".
64088         * lib/nanosleep.c (getnow): Declare static.
64089         * lib/strftime.c: Include strftime.h, for declaration of nstrftime.
64091         dirfd: set errno upon failure
64092         * lib/dirfd.c: Include <errno.h>.
64093         Set errno to ENOTSUP when returning -1.
64094         * modules/dirfd (Depends-on): Add errno.
64095         Suggested by John Kodis <kodis@comcast.net>.
64097 2009-02-01  Bruno Haible  <bruno@clisp.org>
64099         Don't assume sizeof (long) >= sizeof (void *).
64100         * lib/memcmp.c: Include stdint.h.
64101         (memcmp_bytes): Change argument types to op_t. Change type of srcp1,
64102         srcp2 to 'const byte *'.
64103         (memcmp_common_alignment, memcmp_not_common_alignment): Change argument
64104         types to uintptr_t.
64105         (rpl_memcmp): Change type of srcp1, srcp2 to 'uintptr_t'.
64106         * modules/memcmp (Depends-on): Add stdint.
64107         Reported by Ozkan Sezer <sezeroz@gmail.com>.
64109 2009-01-30  Eric Blake  <ebb9@byu.net>
64111         fix more require-before-expand issues
64112         * m4/pmccabe2html.m4 (gl_PMCCABE2HTML): Require, rather than
64113         expand, AC_PROG_AWK.
64114         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): Use AC_DEFUN_ONCE.
64116 2009-01-28  Eric Blake  <ebb9@byu.net>
64118         version-etc: use consistent URL formatting
64119         * lib/version-etc.c (emit_bug_reporting_address, version_etc_va):
64120         Improve formatting.  Use fputs for string without %.
64122 2009-01-28  Jim Meyering  <meyering@redhat.com>
64124         00gnulib.m4: add m4 quotes in shell comment to avoid autoconf warning
64125         * m4/00gnulib.m4 (AC_DEFUN_ONCE): Add quotes to avoid an
64126         "underquoted definition of NAME" from autoconf-2.59.
64128 2009-01-28  Bruno Haible  <bruno@clisp.org>
64130         * doc/gnulib.texi: Add "Obsolete modules" to index.
64132 2009-01-28  Jim Meyering  <meyering@redhat.com>
64134         useless-if-before-free: recognize more variants
64135         * build-aux/useless-if-before-free: Also recognize e.g.,
64136         if (NULL != p) free (p);
64138 2009-01-27  Mark McLoughlin  <markmc@redhat.com>
64140         test-getaddrinfo: skip (don't fail) this test when there's no network
64141         * tests/test-getaddrinfo.c: Skip test upon failure with EAI_AGAIN,
64142         on the presumption that it means you lack network access.
64144 2009-01-26  Jim Meyering  <meyering@redhat.com>
64146         fflush: avoid warnings on modern systems
64147         * lib/fflush.c (rpl_fflush): Move declarations of locals,
64148         pos and result, into scopes where they're used.
64150 2009-01-26  Eric Blake  <ebb9@byu.net>
64152         Silence warning reintroduced by recent extensions patch.
64153         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS)
64154         (gl_USE_SYSTEM_EXTENSIONS): Use AC_DEFUN_ONCE to silence newer
64155         autoconf.
64157         Backport improved autoconf semantics of AC_DEFUN_ONCE.
64158         * m4/00gnulib.m4: New file.
64159         * gnulib-tool (func_get_filelist): Always use it.
64160         * m4/gnulib-common.m4 (gl_COMMON): Force the file to be used.
64161         Reported by Bruno Haible, with suggestions from Paolo Bonzini.
64163 2009-01-25  Bruno Haible  <bruno@clisp.org>
64165         Make test-quotearg work on MacOS X and AIX.
64166         * tests/test-quotearg.sh: New file.
64167         * tests/locale/fr/LC_MESSAGES/test-quotearg.po: New file.
64168         * tests/locale/fr/LC_MESSAGES/test-quotearg.mo: New file.
64169         * tests/test-quotearg.c: Include <locale.h> and gettext.h. Don't
64170         include <libintl.h>.
64171         (fake_locale): Remove variable.
64172         (gettext, dgettext, dcgettext): Remove functions.
64173         (main): Instead of setting a fake locale, set a real locale. Call
64174         textdomain and bindtextdomain.
64175         * modules/quotearg-tests (Files): Add the new files.
64176         (Depends-on): Add gettext, setenv, unsetenv.
64177         (configure.ac): Invoke gt_LOCALE_FR and gt_LOCALE_FR_UTF8.
64178         (Makefile.am): Add test-quotearg.sh to TESTS, remove test-quotearg.
64179         Augment TESTS_ENVIRONMENT.
64181 2009-01-25  Bruno Haible  <bruno@clisp.org>
64183         * m4/locale-fr.m4 (gt_LOCALE_FR): Remove special code that hid the
64184         fr_FR.ISO8859-1 locale on MacOS X.
64185         * m4/locale-ja.m4 (gt_LOCALE_JA): Remove special code that hid the
64186         ja_JP.eucJP locale on MacOS X.
64187         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Remove special code that hid the
64188         zh_CN.GB18030 locale on MacOS X.
64190 2009-01-25  Bruno Haible  <bruno@clisp.org>
64192         Avoid link errors on MacOS X 10.3.
64193         * lib/mbsrtowcs-state.c (_gl_mbsrtowcs_state): Add initializer.
64194         * lib/wcsrtombs-state.c (_gl_wcsrtombs_state): Likewise.
64196 2009-01-25  Bruno Haible  <bruno@clisp.org>
64198         * lib/pipe.c: On Unix, assume HAVE_POSIX_SPAWN and use posix_spawnp.
64199         * m4/pipe.m4 (gl_PIPE): Remove tests for vfork() based code.
64200         * modules/pipe (Files): Remove m4/posix_spawn.m4.
64201         (Depends-on): Add spawn, posix_spawnp, posix_spawn_file_actions_init,
64202         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2,
64203         posix_spawn_file_actions_addopen, posix_spawn_file_actions_destroy,
64204         posix_spawnattr_init, posix_spawnattr_setsigmask,
64205         posix_spawnattr_setflags, posix_spawnattr_destroy.
64207         * lib/execute.c: On Unix, assume HAVE_POSIX_SPAWN and use posix_spawnp.
64208         * m4/execute.m4 (gl_EXECUTE): Remove tests for vfork() based code.
64209         * modules/execute (Files): Remove m4/posix_spawn.m4.
64210         (Depends-on): Add spawn, posix_spawnp, posix_spawn_file_actions_init,
64211         posix_spawn_file_actions_addopen, posix_spawn_file_actions_destroy,
64212         posix_spawnattr_init, posix_spawnattr_setsigmask,
64213         posix_spawnattr_setflags, posix_spawnattr_destroy.
64215 2009-01-25  Bruno Haible  <bruno@clisp.org>
64217         * lib/glthread/threadlib.c: Include <stdlib.h>.
64219 2009-01-25  Bruno Haible  <bruno@clisp.org>
64221         * lib/glthread/threadlib.c (dummy): New declaration.
64223 2009-01-25  Bruno Haible  <bruno@clisp.org>
64225         * lib/mbrtowc.c (mbrtowc): Distinguish invalid and incomplete
64226         multibyte characters also for the GB18030 encoding. Don't crash when
64227         the encoding is unknown and nstate = 0. Needed on OSF/1 5.1.
64229 2009-01-25  Bruno Haible  <bruno@clisp.org>
64231         Avoid redefining 'struct random_data' on OSF/1 5.1.
64232         * lib/stdlib.in.h: Include <random.h> if it exists.
64233         * m4/stdlib_h.m4 (gl_STDLIB_H): Test whether <random.h> exists. Set
64234         HAVE_RANDOM_H. Include <random.h> when testing whether
64235         'struct random_data' exists.
64236         * modules/stdlib (Makefile.am): Substitute HAVE_RANDOM_H.
64238 2009-01-25  Bruno Haible  <bruno@clisp.org>
64240         Don't install charset.alias on MacOS X >= 10.3.
64241         * lib/localcharset.c (DARWIN7): New macro.
64242         (get_charset_aliases): Hardcode the result for Darwin7.
64243         * modules/localcharset (install-exec-local): Don't install
64244         charset.alias on MacOS X >= 10.3, if the file does not yet exist.
64246 2009-01-25  Bruno Haible  <bruno@clisp.org>
64248         Don't install charset.alias on mingw and Cygwin.
64249         * modules/localcharset (install-exec-local): Don't install
64250         charset.alias on mingw and Cygwin, if the file does not yet exist.
64251         The result for these platforms is hardcoded in localcharset.c.
64253 2009-01-25  Bruno Haible  <bruno@clisp.org>
64255         Make it possible again to use AC_GNU_SOURCE together with gnulib.
64256         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Require AC_GNU_SOURCE
64257         before requiring AC_USE_SYSTEM_EXTENSIONS.
64259 2009-01-25  Jim Meyering  <meyering@redhat.com>
64261         c-strtod: avoid warnings
64262         * lib/c-strtod.c (C_STRTOD): Cast nptr to (char *) to avoid
64263         "assignment discards qualifiers from pointer target type" warnings.
64265 2009-01-24  Bruno Haible  <bruno@clisp.org>
64267         Add support for non-UTF-8 locales on MacOS X.
64268         * lib/config.charset: Add CP1131, ARMSCII-8, PT154 to the list of
64269         canonical encodings. For Darwin 7 and newer, don't map traditional
64270         encodings to UTF-8.
64271         Reported by Vincent Lefevre <vincent@vinc17.org>
64272         at <http://savannah.gnu.org/bugs/?25235>.
64274 2009-01-24  Bruno Haible  <bruno@clisp.org>
64276         * doc/gnulib.texi (Obsolete modules): New section.
64277         Reported by Mike Frysinger <vapier@gentoo.org>.
64279 2009-01-24  Bruno Haible  <bruno@clisp.org>
64281         * doc/Makefile (%.pdf): Clarify where to find texmf.cnf.
64282         (%.dvi): New rule.
64284 2009-01-24  Bruno Haible  <bruno@clisp.org>
64286         * lib/c-strtod.h (c_strtod, c_strtold): Adjust specification.
64287         Reported by Eric Blake.
64289 2009-01-24  Bruno Haible  <bruno@clisp.org>
64291         * lib/c-stack.c (segv_handler): If !HAVE_XSI_STACK_OVERFLOW_HEURISTIC,
64292         set signo = 0 also if info->si_code <= 0. Needed on HP-UX 11.11.
64293         Reported by Gary V. Vaughan <gary@gnu.org>.
64295 2009-01-24  Bruno Haible  <bruno@clisp.org>
64297         * lib/c-strtod.h (c_strtod, c_strtold): Add specification.
64299 2009-01-23  Bruno Haible  <bruno@clisp.org>
64301         Make c-strtod, c-strtold usable in libraries.
64302         * lib/c-strtod.c: Include string.h instead of xalloc.h.
64303         (C_STRTOD): Call strdup instead of xstrdup.
64304         * modules/c-strtod (Depends-on): Add strdup-posix, remove xalloc.
64305         * modules/c-strtold (Depends-on): Likewise.
64306         * doc/c-strtod.texi: Remove the sentence mentioning xalloc_die.
64307         * NEWS: Mention the change.
64308         Reported by Michael Gold <mgold@ncf.ca>.
64310 2009-01-23  Jim Meyering  <meyering@redhat.com>
64312         c-strtod: when ENDPTR is non-NULL, set *ENDPTR in new failure path
64313         * lib/c-strtod.c (C_STRTOD) [LC_ALL_MASKC]: Ensure that when
64314         ENDPTR is non-NULL, *ENDPTR is set to NPTR upon failure.
64316 2009-01-23  Simon Josefsson  <simon@josefsson.org>
64318         * lib/version-etc.c: Add emit_bug_reporting_address, inspired by
64319         GNU CoreUtils.
64320         * lib/version-etc.h: Add prototype for emit_bug_reporting_address.
64321         * modules/version-etc (Description): Update.
64323 2009-01-22  Bruno Haible  <bruno@clisp.org>
64325         Cache the C locale object.
64326         * lib/c-strtod.c (c_locale_cache): New variable.
64327         (c_locale): New function.
64328         (C_STRTOD): Use it, and don't call freelocale.
64329         * m4/c-strtod.m4 (gl_C_STRTOD, gl_C_STRTOLD): Require AC_C_INLINE.
64330         Suggested by Paolo Bonzini.
64332 2009-01-21  Bruno Haible  <bruno@clisp.org>
64334         * lib/getloadavg.c (getloadavg): Check c_strtod result against error
64335         conditions other than overflow.
64337 2009-01-21  Bruno Haible  <bruno@clisp.org>
64339         * lib/c-strtod.c: Include errno.h.
64340         (C_STRTOD): Check against NULL return from newlocale. Preserve errno
64341         value from STRTOD_L and STRTOD.
64343 2009-01-21  Bruno Haible  <bruno@clisp.org>
64344         and Jim Meyering  <meyering@redhat.com>
64346         nanosleep: skip configure test (fail it) for apple universal builds
64347         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Require gl_MULTIARCH. In Apple
64348         universal builds, assume that nanosleep does not work.
64349         * modules/nanosleep (Depends-on): Add multiarch.
64351         mktime: skip configure test (fail it) for apple universal builds
64352         * m4/mktime.m4 (AC_FUNC_MKTIME): Require gl_MULTIARCH. In Apple
64353         universal builds, assume that mktime does not work.
64354         * modules/mktime (Depends-on): Add multiarch.
64356 2009-01-21  Eric Blake  <ebb9@byu.net>
64358         multiarch: avoid expand-before-require warning
64359         * modules/multiarch (configure.ac): Require, rather than expand,
64360         gl_MULTIARCH.
64361         * m4/multiarch.m4 (gl_MULTIARCH_BODY): Merge...
64362         (gl_MULTIARCH): ...into this macro, and use AC_DEFUN_ONCE to
64363         enforce that all clients require it.  Partial reversion of
64364         2008-12-29 patch.
64366         error: avoid expand-before-require warning
64367         * modules/errno (configure.ac): Require, rather than expand,
64368         gl_HEADER_ERRNO_H.
64369         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Merge...
64370         (gl_HEADER_ERRNO_H): ...into this macro, and use AC_DEFUN_ONCE to
64371         enforce that all clients require it.
64373         gnulib-tool: avoid warnings from using obsolete AC_GNU_SOURCE
64374         * gnulib-tool (func_dest_tmpfilename, func_create_testdir): Using
64375         obsolete AC_GNU_SOURCE causes out-of-order expansion; avoid it,
64376         and rely solely on gl_USE_SYSTEM_EXTENSIONS.
64378 2009-01-21  Paolo Bonzini  <bonzini@gnu.org>
64380         Revert:
64381         2009-01-20  Paolo Bonzini  <bonzini@gnu.org>
64383         regex: do not depend on obsolete modules.
64384         * modules/regex: Remove memcmp and memmove.
64386 2009-01-20  Bruno Haible  <bruno@clisp.org>
64388         Make the 'link' module link on Windows NT 4.
64389         * lib/link.c (_WIN32_WINNT): Don't define.
64390         (CreateHardLinkFuncType): New type.
64391         (CreateHardLinkFunc, initialized): New variables.
64392         (initialize): New function.
64393         (link): Invoke CreateHardLink indirectly through the function pointer.
64395 2009-01-20  Bruno Haible  <bruno@clisp.org>
64397         Fix compilation failure on mingw.
64398         * tests/test-link.c (main): Don't assume that EOPNOTSUPP exists.
64400 2009-01-20  Michael Gold  <mgold@ncf.ca>  (tiny change)
64402         * doc/c-strtod.texi: Mention a couple of restrictions.
64404 2009-01-20  Jim Meyering  <meyering@redhat.com>
64406         gettimeofday: move more declarations out of functions
64407         * lib/gettimeofday.c: Move extern declarations of tzset and
64408         gmtime out of containing functions.  Prompted by Bruno Haible.
64410 2009-01-20  Paolo Bonzini  <bonzini@gnu.org>
64412         regex: do not depend on obsolete modules.
64413         * modules/regex: Remove memcmp and memmove.
64415 2009-01-19  Bruno Haible  <bruno@clisp.org>
64417         Don't use AC_REQUIRE([AC_C_BIGENDIAN]).
64418         * modules/uniconv/u16-conv-from-enc (configure.ac): Require
64419         gl_BIGENDIAN, not AC_C_BIGENDIAN.
64420         * modules/uniconv/u16-conv-to-enc (configure.ac): Likewise.
64421         * modules/uniconv/u16-strconv-to-enc (configure.ac): Likewise.
64423 2009-01-19  Bruno Haible  <bruno@clisp.org>
64425         * tests/test-link.c: Include <errno.h>.
64426         (main): Exit with code 77 when a hard link cannot be created due to
64427         the file system.
64428         * tests/test-link.sh: Skip test when a hard link cannot be created due
64429         to the file system.
64430         Suggested by Eric Blake.
64432 2009-01-19  Martin Lambers  <marlam@marlam.de>
64434         * modules/link-tests: New file.
64435         * tests/test-link.sh: New file.
64436         * tests/test-link.c: New file.
64438 2009-01-19  Eric Blake  <ebb9@byu.net>
64440         doc: mention another function added in cygwin 1.7.0
64441         * doc/glibc-functions/glob_pattern_p.texi (glob_pattern_p):
64442         Another new function in cygwin 1.7.
64444 2009-01-19  Bruno Haible  <bruno@clisp.org>
64446         Don't use AC_REQUIRE([AC_C_BIGENDIAN]).
64447         * m4/gnulib-common.m4 (gl_BIGENDIAN): New macro.
64448         * m4/exponentl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Require
64449         gl_BIGENDIAN, not AC_C_BIGENDIAN.
64450         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
64451         * m4/isinf.m4 (gl_ISINFL_WORKS): Likewise.
64452         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
64453         * m4/md4.m4 (gl_MD4): Likewise.
64454         * m4/md5.m4 (gl_MD5): Likewise.
64455         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Likewise.
64456         * m4/sha1.m4 (gl_SHA1): Likewise.
64457         * m4/sha256.m4 (gl_SHA256): Likewise.
64458         * m4/sha512.m4 (gl_SHA512): Likewise.
64460 2009-01-19  Bruno Haible  <bruno@clisp.org>
64462         * modules/uniname/uniname-tests (Depends-on): Add progname.
64463         * tests/uniname/test-uninames.c: Include progname.h.
64464         (main): Call set_program_name.
64466         * modules/unistdio/u8-vsprintf-tests (Depends-on): Add progname.
64467         * tests/unistdio/test-u8-vsprintf1.c: Include progname.h.
64468         (main): Call set_program_name.
64470         * modules/unistdio/u8-vsnprintf-tests (Depends-on): Add progname.
64471         * tests/unistdio/test-u8-vsnprintf1.c: Include progname.h.
64472         (main): Call set_program_name.
64474         * modules/unistdio/u16-vsprintf-tests (Depends-on): Add progname.
64475         * tests/unistdio/test-u16-vsprintf1.c: Include progname.h.
64476         (main): Call set_program_name.
64478         * modules/unistdio/u16-vsnprintf-tests (Depends-on): Add progname.
64479         * tests/unistdio/test-u16-vsnprintf1.c: Include progname.h.
64480         (main): Call set_program_name.
64482         * modules/unistdio/u32-vsprintf-tests (Depends-on): Add progname.
64483         * tests/unistdio/test-u32-vsprintf1.c: Include progname.h.
64484         (main): Call set_program_name.
64486         * modules/unistdio/u32-vsnprintf-tests (Depends-on): Add progname.
64487         * tests/unistdio/test-u32-vsnprintf1.c: Include progname.h.
64488         (main): Call set_program_name.
64490         * modules/unistdio/ulc-vsprintf-tests (Depends-on): Add progname.
64491         * tests/unistdio/test-ulc-vsprintf1.c: Include progname.h.
64492         (main): Call set_program_name.
64494         * modules/unistdio/ulc-vsnprintf-tests (Depends-on): Add progname.
64495         * tests/unistdio/test-ulc-vsnprintf1.c: Include progname.h.
64496         (main): Call set_program_name.
64498 2009-01-19  Eric Blake  <ebb9@byu.net>
64500         test-unistd: test previous patch
64501         * tests/test-unistd.c: Test *_FILENO macros.
64503         unistd: guarantee STDIN_FILENO here, for OS/2 EMX
64504         * lib/unistd.in.h (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
64505         Guarantee a definition.
64506         * doc/posix-headers/unistd.texi (unistd.h): Document the bug.
64507         * modules/unistd-safer (Depends-on): Add dependency on unistd.
64508         * lib/c-stack.c (STDERR_FILENO): Rely on <unistd.h>.
64509         * lib/dup-safer.c (STDERR_FILENO): Likewise.
64510         * lib/execute.c (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
64511         Likewise.
64512         * lib/fd-safer.c (STDIN_FILENO, STDERR_FILENO): Likewise.
64513         * lib/fopen-safer.c (STDERR_FILENO): Likewise.
64514         * lib/pipe.c (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
64515         Likewise.
64516         * lib/tmpfile-safer.c (STDERR_FILENO): Likewise.
64517         * tests/test-posix_spawn1.c (STDIN_FILENO, STDOUT_FILENO)
64518         (STDERR_FILENO): Likewise.
64519         * tests/test-posix_spawn2.c (STDIN_FILENO, STDOUT_FILENO)
64520         (STDERR_FILENO): Likewise.
64521         * tests/test-posix_spawn3.c (STDIN_FILENO, STDOUT_FILENO)
64522         (STDERR_FILENO): Likewise.
64523         Reported by Elbert Pol.
64525 2009-01-19  Eric Blake  <ebb9@byu.net>
64527         doc: mention more functions added in cygwin 1.7.0
64528         * doc/posix-functions/abort.texi (abort): Update wording related
64529         to cygwin.
64530         * doc/posix-functions/daylight.texi (daylight): Likewise.
64531         * doc/posix-functions/optarg.texi (optarg): Likewise.
64532         * doc/posix-functions/optarg.texi (opterr): Likewise.
64533         * doc/posix-functions/optarg.texi (optind): Likewise.
64534         * doc/posix-functions/optarg.texi (optopt): Likewise.
64535         * doc/posix-functions/wprintf.texi (wprintf): Cygwin wprintf never
64536         worked in 1.5.x, and was withdrawn in 1.7.
64537         * doc/posix-functions/vwprintf.texi (vwprintf): Likewise.
64538         * doc/posix-functions/fprintf.texi (fprintf): Tighten mention of
64539         cygwin versions.
64540         * doc/posix-functions/perror.texi (perror): Likewise.
64541         * doc/posix-functions/printf.texi (printf): Likewise.
64542         * doc/posix-functions/snprintf.texi (snprintf): Likewise.
64543         * doc/posix-functions/sprintf.texi (sprintf): Likewise.
64544         * doc/posix-functions/vfprintf.texi (vfprintf): Likewise.
64545         * doc/posix-functions/vprintf.texi (vprintf): Likewise.
64546         * doc/posix-functions/vsnprintf.texi (vsnprintf): Likewise.
64547         * doc/posix-functions/vsprintf.texi (vsprintf): Likewise.
64548         * doc/glibc-functions/obstack_printf.texi (obstack_printf):
64549         Likewise.
64550         * doc/glibc-functions/obstack_vprintf.texi (obstack_vprintf):
64551         Likewise.
64552         * doc/glibc-functions/cfmakeraw.texi (cfmakeraw): Cygwin 1.7 adds
64553         this function.
64554         * doc/glibc-functions/in6addr_any.texi (in6addr_any): Likewise.
64555         * doc/glibc-functions/in6addr_loopback.texi (in6addr_loopback):
64556         Likewise.
64557         * doc/glibc-functions/updwtmpx.texi (updwtmpx): Likewise.
64558         * doc/posix-functions/_Exit_C99.texi (_Exit): Likewise.
64559         * doc/posix-functions/confstr.texi (confstr): Likewise.
64560         * doc/posix-functions/dprintf.texi (dprintf): Likewise.
64561         * doc/posix-functions/fgetwc.texi (fgetwc): Likewise.
64562         * doc/posix-functions/fgetws.texi (fgetws): Likewise.
64563         * doc/posix-functions/fputwc.texi (fputwc): Likewise.
64564         * doc/posix-functions/fputws.texi (fputws): Likewise.
64565         * doc/posix-functions/fwide.texi (fwide): Likewise.
64566         * doc/posix-functions/getwc.texi (getwc): Likewise.
64567         * doc/posix-functions/getwchar.texi (getwchar): Likewise.
64568         * doc/posix-functions/putwc.texi (putwc): Likewise.
64569         * doc/posix-functions/putwchar.texi (putwchar): Likewise.
64570         * doc/posix-functions/sigignore.texi (sigignore): Likewise.
64571         * doc/posix-functions/ungetwc.texi (ungetwc): Likewise.
64572         * doc/posix-functions/vdprintf.texi (vdprintf): Likewise.
64573         * doc/posix-functions/wcpcpy.texi (wcpcpy): Likewise.
64574         * doc/posix-functions/wcpncpy.texi (wcpncpy): Likewise.
64575         * doc/posix-functions/wcstol.texi (wcstol): Likewise.
64576         * doc/posix-functions/wcstoll.texi (wcstoll): Likewise.
64577         * doc/posix-functions/wcstoul.texi (wcstoul): Likewise.
64578         * doc/posix-functions/wcstoull.texi (wcstoull): Likewise.
64579         * doc/posix-functions/wcsxfrm.texi (wcsxfrm): Likewise.
64581 2009-01-19  Daniel P. Berrange  <berrange@redhat.com>
64583         ioctl: avoid warning: no previous prototype for 'rpl_ioctl'
64584         * lib/ioctl.c: Include <sys/ioctl.h>.
64586 2009-01-19  Simon Josefsson  <simon@josefsson.org>
64588         * modules/getdate-tests (Depends-on): Add progname.
64589         * tests/test-getdate.c: Use progname module, to avoid link errors
64590         on non-glibc systems.
64592 2009-01-18  Simon Josefsson  <simon@josefsson.org>
64594         * modules/filenamecat-tests (Depends-on): Add progname.
64595         * modules/fstrcmp-tests (Depends-on): Likewise.
64597         * tests/test-filenamecat.c: Use progname module, to avoid link
64598         errors on non-glibc systems.
64599         * tests/test-fstrcmp.c: Likewise.
64601 2009-01-19  Daniel P. Berrange  <berrange@redhat.com>
64603         gettimeofday: avoid warning: nested extern declaration of 'localtime'
64604         * lib/gettimeofday.c: Move extern declaration out of function.
64606 2009-01-18  Bruno Haible  <bruno@clisp.org>
64608         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't test for mblen and mbrlen.
64609         * lib/strftime.c (HAVE_MBLEN, HAVE_MBRLEN): Remove macros.
64610         (MULTIBYTE_IS_FORMAT_SAFE): Define to 1 on all platforms except OSF/1.
64612 2009-01-18  Bruno Haible  <bruno@clisp.org>
64614         * lib/strftime.c (MEMPCPY): Remove unused macro.
64615         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't test for mempcpy.
64617 2009-01-18  Martin Lambers  <marlam@marlam.de>
64619         New module 'link'.
64620         * lib/unistd.in.h (link): New declaration.
64621         * lib/link.c: New file.
64622         * m4/link.m4: New file.
64623         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_LINK,
64624         HAVE_LINK.
64625         * modules/unistd (Makefile.am): Substitute GNULIB_LINK, HAVE_LINK.
64626         * modules/link: New file.
64627         * doc/posix-functions/link.texi: Mention the new module.
64629 2009-01-18  Bruno Haible  <bruno@clisp.org>
64631         * tests/test-avltree_list.c (main): Call set_program_name.
64632         * tests/test-avltree_oset.c (main): Likewise.
64633         * tests/test-obstack-printf.c: Include progname.h.
64634         (main): Call set_program_name.
64635         * tests/test-quotearg.c: Include progname.h.
64636         (main): Call set_program_name.
64637         * tests/test-xmemdup0.c: Include progname.h.
64638         (main): Call set_program_name.
64640 2009-01-18  Bruno Haible  <bruno@clisp.org>
64642         New module 'alphasort'.
64643         * lib/dirent.in.h (alphasort): New declaration.
64644         * lib/alphasort.c: New file, from glibc with modifications.
64645         * m4/alphasort.m4: New file.
64646         * modules/alphasort: New file.
64647         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_ALPHASORT,
64648         HAVE_ALPHASORT.
64649         * modules/dirent (Makefile.am): Substitute GNULIB_ALPHASORT,
64650         HAVE_ALPHASORT.
64651         * doc/posix-functions/alphasort.texi: Mention the new module and the
64652         portability problems.
64654 2009-01-18  Bruno Haible  <bruno@clisp.org>
64656         New module 'scandir'.
64657         * lib/dirent.in.h (scandir): New declaration.
64658         * lib/scandir.c: New file, from glibc with modifications.
64659         * m4/scandir.m4: New file.
64660         * modules/scandir: New file.
64661         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_SCANDIR,
64662         HAVE_SCANDIR.
64663         * modules/dirent (Makefile.am): Substitute GNULIB_SCANDIR,
64664         HAVE_SCANDIR.
64665         * doc/posix-functions/scandir.texi: Mention the new module and the
64666         portability problems.
64668 2009-01-17  Bruno Haible  <bruno@clisp.org>
64670         * gnulib-tool (func_remove_prefix): Escape all dots in the prefix.
64671         Update documentation.
64672         (func_remove_suffix): Escape all dots in the suffix. Update
64673         documentation.
64674         (func_filter_filelist): Update documentation.
64675         Reported by Ralf Wildenhues.
64677 2009-01-17  Bruno Haible  <bruno@clisp.org>
64679         * modules/dprintf-posix-tests: New file.
64680         * tests/test-dprintf-posix.sh: New file.
64681         * tests/test-dprintf-posix.c: New file.
64683         New modules 'dprintf', 'dprintf-posix'.
64684         * lib/stdio.in.h (dprintf): New declaration.
64685         * lib/dprintf.c: New file.
64686         * m4/dprintf.m4: New file.
64687         * m4/dprintf-posix.m4: New file.
64688         * modules/dprintf: New file.
64689         * modules/dprintf-posix: New file.
64690         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_DPRINTF,
64691         HAVE_DPRINTF, REPLACE_DPRINTF.
64692         * modules/stdio (Makefile.am): Substitute also GNULIB_DPRINTF,
64693         HAVE_DPRINTF, REPLACE_DPRINTF.
64694         * doc/posix-functions/dprintf.texi: Mention the new modules.
64696 2009-01-17  Bruno Haible  <bruno@clisp.org>
64698         * modules/vdprintf-posix-tests: New file.
64699         * tests/test-vdprintf-posix.sh: New file.
64700         * tests/test-vdprintf-posix.c: New file.
64702         New modules 'vdprintf', 'vdprintf-posix'.
64703         * lib/stdio.in.h (vdprintf): New declaration.
64704         * lib/vdprintf.c: New file.
64705         * m4/vdprintf.m4: New file.
64706         * m4/vdprintf-posix.m4: New file.
64707         * modules/vdprintf: New file.
64708         * modules/vdprintf-posix: New file.
64709         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_VDPRINTF,
64710         HAVE_VDPRINTF, REPLACE_VDPRINTF.
64711         * modules/stdio (Makefile.am): Substitute also GNULIB_VDPRINTF,
64712         HAVE_VDPRINTF, REPLACE_VDPRINTF.
64713         * doc/posix-functions/vdprintf.texi: Mention the new modules.
64715 2009-01-17  Bruno Haible  <bruno@clisp.org>
64717         Fix replacement of fopen on mingw.
64718         * m4/fopen.m4 (gl_FUNC_FOPEN): Define FOPEN_TRAILING_SLASH_BUG also on
64719         mingw.
64721 2009-01-17  Bruno Haible  <bruno@clisp.org>
64723         Fix compilation error on HP-UX 11.00, present since 2008-09-24.
64724         * lib/fopen.c: Include <sys/types.h> and <sys/types.h>.
64726 2009-01-17  Bruno Haible  <bruno@clisp.org>
64728         Avoid test-fflush2.sh failure on mingw.
64729         * tests/test-fflush2.c: Include binary-io.h.
64730         (main): Put standard input into binary mode.
64731         * modules/fflush-tests (Depends-on): Add binary-io.
64733 2009-01-17  Bruno Haible  <bruno@clisp.org>
64735         * lib/wchar.in.h: In another particular situation, include only the
64736         system's <wchar.h> file.
64737         (_GL_ALREADY_INCLUDING_WCHAR_H): New macro.
64738         Reported by Albert Chin-A-Young <china@thewrittenword.com>
64739         and Thomas Guyot-Sionnest <dermoth@aei.ca>.
64741 2009-01-17  Bruno Haible  <bruno@clisp.org>
64743         Support for stripping executables in --enable-relocatable.
64744         * build-aux/install-reloc: Expect one more argument, or an environment
64745         variable RELOC_STRIP_PROG. If set, strip the destination program and
64746         its wrapper.
64747         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): In INSTALL_PROGRAM_ENV, set
64748         RELOC_STRIP_PROG.
64749         * doc/relocatable-maint.texi (Supporting Relocation): Mention the need
64750         to set RELOCATABLE_STRIP.
64751         * NEWS: Mention the new Makefile requirement.
64753 2009-01-17  Bruno Haible  <bruno@clisp.org>
64755         * build-aux/install-reloc: Remove debugging information left over by
64756         C compiler on MacOS X.
64758 2009-01-17  Bruno Haible  <bruno@clisp.org>
64760         Update use of _NSGetExecutablePath after API change in MacOS X 10.4.
64761         * lib/progreloc.c (find_executable): Fix type of pointer passed to
64762         _NSGetExecutablePath.
64764 2009-01-16  Jim Meyering  <meyering@redhat.com>
64766         strerror: avoid warnings about discarding "const"
64767         * lib/strerror.c (rpl_strerror): Instead of returning a const
64768         string from each and every "case", use a variable, and add a single
64769         cast after the switch.
64771 2009-01-16  Albert Chin-A-Young  <china@thewrittenword.com>
64773         * lib/arpa_inet.in.h: Add extern "C" block for C++.
64775 2009-01-16  Bruno Haible  <bruno@clisp.org>
64777         * m4/printf.m4 (gl_SNPRINTF_SIZE1, gl_VSNPRINTF_ZEROSIZE_C99): Use an
64778         array initializer syntax that also works in C++ mode.
64779         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
64781 2009-01-16  Jim Meyering  <meyering@redhat.com>
64783         poll: suppress a warning
64784         * lib/poll.c: Use #pragma GCC diagnostic ignored "-Wtype-limits"
64785         to ignore "...unsigned expression < 0 is always false" warnings.
64787 2009-01-16  Daniel P. Berrange  <berrange@redhat.com>
64789         poll: remove declarations of unused variables
64790         * lib/poll.c (poll) [WIN32_NATIVE]: Remove declarations of unused
64791         sockbuf and optlen.
64793 2009-01-15  Bruno Haible  <bruno@clisp.org>
64795         Make fflush-after-ungetc POSIX compliant on BSD systems.
64796         * lib/fflush.c (clear_ungetc_buffer_preserving_position): New function.
64797         (clear_ungetc_buffer): Implement also for other systems.
64798         (rpl_fflush): On glibc systems, invoke
64799         clear_ungetc_buffer_preserving_position. Otherwise, invoke
64800         clear_ungetc_buffer after fetching the stream's position, not before.
64802 2009-01-15  Bruno Haible  <bruno@clisp.org>
64804         Make fflush-after-ungetc POSIX compliant on glibc systems.
64805         * m4/fflush.m4 (gl_FUNC_FFLUSH): Test also the behaviour of fflush
64806         after ungetc.
64807         * lib/fflush.c (clear_ungetc_buffer): Implement for glibc systems.
64808         (rpl_fflush): On glibc systems, simply call the system's fflush
64809         function after clearing the ungetc buffer.
64810         * lib/fseeko.c (rpl_fseeko): Don't try to lseek past the end of file.
64811         Instead, lseek only to the end of file, then use the system's fseeko
64812         for the rest. On glibc systems, reset the EOF indicator bit.
64814 2009-01-15  Jim Meyering  <meyering@redhat.com>
64816         openmp.m4: revert quote-adding change, for portability to older autoconf
64817         * m4/openmp.m4: Remove the quotes added on 2009-01-14.
64818         This reverts part of 42d1eda5dcce2d68deab7a642e7f29bcd7144a0d.
64819         Simon Josefsson noticed the problem when using autoconf-2.61.
64821 2009-01-15  Bruno Haible  <bruno@clisp.org>
64823         * tests/test-fflush2.sh: Invoke test-fflush2 twice.
64824         * tests/test-fflush2.c (ASSERT): Always fail.
64825         (main): Add two tests for fflush() after ungetc(), taking into account
64826         the Austin Group's clarification.
64827         Suggested by Eric Blake.
64829 2009-01-15  Albert Chin-A-Young  <china@thewrittenword.com>
64831         mktime.m4: remove K&R-style function prototypes
64832         * m4/mktime.m4 (AC_FUNC_MKTIME): Remove K&R-style function prototypes
64833         for the Sun C++ compiler.
64835 2009-01-14  Bruno Haible  <bruno@clisp.org>
64837         * lib/stdint.in.h (_GL_JUST_INCLUDE_SYSTEM_WCHAR_H): New macro, defined
64838         while including <wchar.h>.
64839         * lib/wchar.in.h: In two particular situations on HP-UX, include only
64840         the system's <wchar.h> file.
64841         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
64843 2009-01-14  Bruno Haible  <bruno@clisp.org>
64845         * m4/csharp.m4: Don't mention gettext on the serial number line.
64846         * m4/csharpexec.m4: Likewise.
64847         * m4/eaccess.m4: Likewise.
64848         * m4/javaexec.m4: Likewise.
64849         * m4/sig_atomic_t.m4: Likewise.
64850         * m4/tmpdir.m4: Likewise.
64851         * m4/intldir.m4: Bump gettext version.
64852         * m4/lib-ld.m4: Likewise.
64854 2009-01-14  Bruno Haible  <bruno@clisp.org>
64856         * lib/progname.c (set_program_name): Add more comments.
64857         Reported by Sergey Poznyakoff <gray@gnu.org.ua>.
64859 2009-01-14  Simon Josefsson  <simon@josefsson.org>
64861         * lib/sys_stat.in.h: Include sys/types.h for nlink_t on systems
64862         were sys/stat.h does not define it.
64864 2009-01-14  Jim Meyering  <meyering@redhat.com>
64866         many *.m4 files: improve m4 quoting
64867         99% of this change was performed by running the following commands:
64868         git ls-files | grep '\.m4$' | xargs perl -pi \
64869           -e 's/(AC_\w+\()([^[()]+?)([,)])/$1\[$2]$3/g;' \
64870           -e 's/(AC_\w+\((?:\[[^,]+?\], ){1})([^,[()]+?)([,)])/$1\[$2]$3/g;' \
64871           -e 's/(AC_\w+\((?:\[[^,]+?\], ){2})([^,[()]+?)([,)])/$1\[$2]$3/g;' \
64872           -e 's/(AC_\w+\((?:\[[^,]+?\], ){3})([^,[()]+?)([,)])/$1\[$2]$3/g'
64873         perl -pi -e 's/\[\.\.\.\]/.../' m4/onceonly.m4
64874         The remainder were to add Copyright dates, increment serial numbers,
64875         undo some changes in comments, exclude m4/intl.m4, and add quotes
64876         around the "1" in ",1" where the unusual spacing prohibited the
64877         above regexps from doing the job.  For more details, see
64878         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/16175>.
64879         * m4/acl.m4: Modified.
64880         * m4/afs.m4: Likewise.
64881         * m4/alloca.m4: Likewise.
64882         * m4/argp.m4: Likewise.
64883         * m4/argz.m4: Likewise.
64884         * m4/atexit.m4: Likewise.
64885         * m4/bison-i18n.m4: Likewise.
64886         * m4/bison.m4: Likewise.
64887         * m4/byteswap.m4: Likewise.
64888         * m4/c-stack.m4: Likewise.
64889         * m4/c-strtod.m4: Likewise.
64890         * m4/calloc.m4: Likewise.
64891         * m4/canonicalize-lgpl.m4: Likewise.
64892         * m4/chown.m4: Likewise.
64893         * m4/clock_time.m4: Likewise.
64894         * m4/codeset.m4: Likewise.
64895         * m4/copy-file.m4: Likewise.
64896         * m4/csharp.m4: Likewise.
64897         * m4/csharpcomp.m4: Likewise.
64898         * m4/csharpexec.m4: Likewise.
64899         * m4/d-ino.m4: Likewise.
64900         * m4/d-type.m4: Likewise.
64901         * m4/dirfd.m4: Likewise.
64902         * m4/double-slash-root.m4: Likewise.
64903         * m4/eaccess.m4: Likewise.
64904         * m4/eealloc.m4: Likewise.
64905         * m4/environ.m4: Likewise.
64906         * m4/errno_h.m4: Likewise.
64907         * m4/euidaccess.m4: Likewise.
64908         * m4/execute.m4: Likewise.
64909         * m4/fatal-signal.m4: Likewise.
64910         * m4/fchdir.m4: Likewise.
64911         * m4/fcntl_h.m4: Likewise.
64912         * m4/fileblocks.m4: Likewise.
64913         * m4/filenamecat.m4: Likewise.
64914         * m4/findprog.m4: Likewise.
64915         * m4/flexmember.m4: Likewise.
64916         * m4/fnmatch.m4: Likewise.
64917         * m4/fopen.m4: Likewise.
64918         * m4/fpending.m4: Likewise.
64919         * m4/fprintf-posix.m4: Likewise.
64920         * m4/free.m4: Likewise.
64921         * m4/frexp.m4: Likewise.
64922         * m4/frexpl.m4: Likewise.
64923         * m4/fsusage.m4: Likewise.
64924         * m4/ftruncate.m4: Likewise.
64925         * m4/gc-camellia.m4: Likewise.
64926         * m4/gc-random.m4: Likewise.
64927         * m4/gc.m4: Likewise.
64928         * m4/getaddrinfo.m4: Likewise.
64929         * m4/getcwd-abort-bug.m4: Likewise.
64930         * m4/getcwd-path-max.m4: Likewise.
64931         * m4/getdate.m4: Likewise.
64932         * m4/getdomainname.m4: Likewise.
64933         * m4/getgroups.m4: Likewise.
64934         * m4/gethostname.m4: Likewise.
64935         * m4/gethrxtime.m4: Likewise.
64936         * m4/getline.m4: Likewise.
64937         * m4/getloadavg.m4: Likewise.
64938         * m4/getndelim2.m4: Likewise.
64939         * m4/getpass.m4: Likewise.
64940         * m4/gettext.m4: Likewise.
64941         * m4/gettime.m4: Likewise.
64942         * m4/gettimeofday.m4: Likewise.
64943         * m4/gnulib-common.m4: Likewise.
64944         * m4/group-member.m4: Likewise.
64945         * m4/host-os.m4: Likewise.
64946         * m4/iconv.m4: Likewise.
64947         * m4/iconv_open.m4: Likewise.
64948         * m4/inet_ntop.m4: Likewise.
64949         * m4/inet_pton.m4: Likewise.
64950         * m4/inline.m4: Likewise.
64951         * m4/intldir.m4: Likewise.
64952         * m4/intlmacosx.m4: Likewise.
64953         * m4/intmax.m4: Likewise.
64954         * m4/intmax_t.m4: Likewise.
64955         * m4/inttypes.m4: Likewise.
64956         * m4/inttypes_h.m4: Likewise.
64957         * m4/inttypes-pri.m4: Likewise.
64958         * m4/isapipe.m4: Likewise.
64959         * m4/isnand.m4: Likewise.
64960         * m4/isnanf.m4: Likewise.
64961         * m4/isnanl.m4: Likewise.
64962         * m4/javacomp.m4: Likewise.
64963         * m4/javaexec.m4: Likewise.
64964         * m4/jm-winsz1.m4: Likewise.
64965         * m4/jm-winsz2.m4: Likewise.
64966         * m4/lchown.m4: Likewise.
64967         * m4/lcmessage.m4: Likewise.
64968         * m4/ldexpl.m4: Likewise.
64969         * m4/lib-ld.m4: Likewise.
64970         * m4/lib-link.m4: Likewise.
64971         * m4/libsigsegv.m4: Likewise.
64972         * m4/link-follow.m4: Likewise.
64973         * m4/localcharset.m4: Likewise.
64974         * m4/locale-fr.m4: Likewise.
64975         * m4/locale-ja.m4: Likewise.
64976         * m4/locale-tr.m4: Likewise.
64977         * m4/locale-zh.m4: Likewise.
64978         * m4/lock.m4: Likewise.
64979         * m4/longlong.m4: Likewise.
64980         * m4/ls-mntd-fs.m4: Likewise.
64981         * m4/lstat.m4: Likewise.
64982         * m4/malloc.m4: Likewise.
64983         * m4/mathl.m4: Likewise.
64984         * m4/mbrtowc.m4: Likewise.
64985         * m4/mbstate_t.m4: Likewise.
64986         * m4/mbswidth.m4: Likewise.
64987         * m4/memchr.m4: Likewise.
64988         * m4/memcmp.m4: Likewise.
64989         * m4/memcpy.m4: Likewise.
64990         * m4/memmem.m4: Likewise.
64991         * m4/memmove.m4: Likewise.
64992         * m4/mempcpy.m4: Likewise.
64993         * m4/memrchr.m4: Likewise.
64994         * m4/memset.m4: Likewise.
64995         * m4/minmax.m4: Likewise.
64996         * m4/mkdir-slash.m4: Likewise.
64997         * m4/mkdtemp.m4: Likewise.
64998         * m4/mktime.m4: Likewise.
64999         * m4/mmap-anon.m4: Likewise.
65000         * m4/mountlist.m4: Likewise.
65001         * m4/nanosleep.m4: Likewise.
65002         * m4/nls.m4: Likewise.
65003         * m4/nocrash.m4: Likewise.
65004         * m4/open.m4: Likewise.
65005         * m4/openat.m4: Likewise.
65006         * m4/openmp.m4: Likewise.
65007         * m4/pathmax.m4: Likewise.
65008         * m4/perl.m4: Likewise.
65009         * m4/physmem.m4: Likewise.
65010         * m4/pipe.m4: Likewise.
65011         * m4/po.m4: Likewise.
65012         * m4/poll.m4: Likewise.
65013         * m4/posixtm.m4: Likewise.
65014         * m4/posixver.m4: Likewise.
65015         * m4/printf-frexp.m4: Likewise.
65016         * m4/printf-frexpl.m4: Likewise.
65017         * m4/printf-posix.m4: Likewise.
65018         * m4/printf-posix-rpl.m4: Likewise.
65019         * m4/printf.m4: Likewise.
65020         * m4/progtest.m4: Likewise.
65021         * m4/putenv.m4: Likewise.
65022         * m4/readline.m4: Likewise.
65023         * m4/readlink.m4: Likewise.
65024         * m4/readutmp.m4: Likewise.
65025         * m4/realloc.m4: Likewise.
65026         * m4/regex.m4: Likewise.
65027         * m4/relocatable.m4: Likewise.
65028         * m4/relocatable-lib.m4: Likewise.
65029         * m4/rename-dest-slash.m4: Likewise.
65030         * m4/rename.m4: Likewise.
65031         * m4/rmdir-errno.m4: Likewise.
65032         * m4/rmdir.m4: Likewise.
65033         * m4/roundf.m4: Likewise.
65034         * m4/roundl.m4: Likewise.
65035         * m4/rpmatch.m4: Likewise.
65036         * m4/save-cwd.m4: Likewise.
65037         * m4/selinux-selinux-h.m4: Likewise.
65038         * m4/setenv.m4: Likewise.
65039         * m4/settime.m4: Likewise.
65040         * m4/sig2str.m4: Likewise.
65041         * m4/sig_atomic_t.m4: Likewise.
65042         * m4/signalblocking.m4: Likewise.
65043         * m4/signbit.m4: Likewise.
65044         * m4/sigpipe.m4: Likewise.
65045         * m4/sockets.m4: Likewise.
65046         * m4/sockpfaf.m4: Likewise.
65047         * m4/st_dm_mode.m4: Likewise.
65048         * m4/stat-time.m4: Likewise.
65049         * m4/stdbool.m4: Likewise.
65050         * m4/stdint.m4: Likewise.
65051         * m4/stdint_h.m4: Likewise.
65052         * m4/stpcpy.m4: Likewise.
65053         * m4/stpncpy.m4: Likewise.
65054         * m4/strcase.m4: Likewise.
65055         * m4/strchrnul.m4: Likewise.
65056         * m4/strcspn.m4: Likewise.
65057         * m4/strdup.m4: Likewise.
65058         * m4/strftime.m4: Likewise.
65059         * m4/strndup.m4: Likewise.
65060         * m4/strnlen.m4: Likewise.
65061         * m4/strpbrk.m4: Likewise.
65062         * m4/strptime.m4: Likewise.
65063         * m4/strsep.m4: Likewise.
65064         * m4/strtod.m4: Likewise.
65065         * m4/strtoimax.m4: Likewise.
65066         * m4/strtok_r.m4: Likewise.
65067         * m4/strtol.m4: Likewise.
65068         * m4/strtoll.m4: Likewise.
65069         * m4/strtoul.m4: Likewise.
65070         * m4/strtoull.m4: Likewise.
65071         * m4/strtoumax.m4: Likewise.
65072         * m4/strverscmp.m4: Likewise.
65073         * m4/threadlib.m4: Likewise.
65074         * m4/timegm.m4: Likewise.
65075         * m4/tm_gmtoff.m4: Likewise.
65076         * m4/tmpdir.m4: Likewise.
65077         * m4/tmpfile.m4: Likewise.
65078         * m4/tzset.m4: Likewise.
65079         * m4/uintmax_t.m4: Likewise.
65080         * m4/unlinkdir.m4: Likewise.
65081         * m4/unlocked-io.m4: Likewise.
65082         * m4/uptime.m4: Likewise.
65083         * m4/userspec.m4: Likewise.
65084         * m4/utimbuf.m4: Likewise.
65085         * m4/utime.m4: Likewise.
65086         * m4/utimes-null.m4: Likewise.
65087         * m4/utimes.m4: Likewise.
65088         * m4/vararrays.m4: Likewise.
65089         * m4/vasnprintf.m4: Likewise.
65090         * m4/vfprintf-posix.m4: Likewise.
65091         * m4/vprintf-posix.m4: Likewise.
65092         * m4/wait-process.m4: Likewise.
65093         * m4/wchar_t.m4: Likewise.
65094         * m4/wint_t.m4: Likewise.
65095         * m4/write-any-file.m4: Likewise.
65096         * m4/yield.m4: Likewise.
65098 2009-01-13  Bruno Haible  <bruno@clisp.org>
65100         Avoid test-copy-file.sh failures when ACL support insufficient.
65101         * modules/copy-file-tests (Makefile.am): Pass USE_ACL in
65102         TESTS_ENVIRONMENT.
65103         * tests/test-copy-file.sh: Skip the ACL comparisons if USE_ACL is 0.
65104         Reported by Jim Meyering.
65106 2009-01-13  Bruno Haible  <bruno@clisp.org>
65108         * modules/unistdio/u-printf-args (Files): Add m4/stdint_h.m4 and
65109         m4/inttypes_h.m4, needed by m4/intmax_t.m4.
65110         * modules/unistdio/u8-printf-parse (Files): Likewise.
65111         * modules/unistdio/u32-printf-parse (Files): Likewise.
65112         * modules/unistdio/ulc-printf-parse (Files): Likewise.
65114 2009-01-13  Simon Josefsson  <simon@josefsson.org>
65116         * modules/unistdio/u16-printf-parse (Files): Add m4/stdint_h.m4
65117         and m4/inttypes_h.m4 too.
65119 2009-01-12  Eric Blake  <ebb9@byu.net>
65121         tests: IRIX 6.2 cc can't compile -0.0 into .data
65122         * tests/test-ceill.c (minus_zero): Compute -0.0L at runtime,
65123         rather than at compile-time.
65124         * tests/test-floorl.c (minus_zero): Likewise.
65125         * tests/test-frexpl.c (minus_zero): Likewise.
65126         * tests/test-isnan.c (minus_zerol): Likewise.
65127         * tests/test-isnanl.h (minus_zero): Likewise.
65128         * tests/test-ldexpl.c (minus_zero): Likewise.
65129         * tests/test-roundl.c (minus_zero): Likewise.
65130         * tests/test-signbit.c (minus_zerol): Likewise.
65131         * tests/test-snprintf-posix.h (minus_zerol): Likewise.
65132         * tests/test-sprintf-posix.h (minus_zerol): Likewise.
65133         * tests/test-truncl.c (minus_zero): Likewise.
65134         * tests/test-vasnprintf-posix.c (minus_zerol): Likewise.
65135         * tests/test-vasprintf-posix.c (minus_zerol): Likewise.
65136         Reported by Tom G. Christensen and Nelson H. F. Beebe.
65138 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
65140         regex: fix glibc bug 9697
65141         * lib/regcomp.c (re_compile_fastmap_iter): Rewrite COMPLEX_BRACKET
65142         handling.
65144 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
65146         regex: fix glibc bug 697
65147         * lib/regexec.c (prune_impossible_nodes): Handle sifted_states[0]
65148         being NULL also if there are no backreferences.
65150 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
65152         regex: merge glibc changes
65153         * lib/regcomp.c (re_compile_fastmap_iter): Use __mbrtowc.
65154         * lib/regex_internal.c (build_wcs_buffer, build_wcs_upper_buffer,
65155         re_string_skip_chars, re_string_reconstruct): Likewise.
65156         * lib/regex_internal.h [!_LIBC] (__mbrtowc): New #define.
65158 2009-01-07  Jim Meyering  <meyering@redhat.com>
65160         poll: filter through cppi
65161         * lib/poll.c: Indent cpp directives to reflect nesting.
65163 2009-01-07  Daniel P. Berrange  <berrange@redhat.com>
65165         poll: don't return uninitialized
65166         * lib/poll.c (poll) [WIN32_NATIVE]: Initialize "rc".
65168 2009-01-06  Jeremy Olexa  <darkside@gentoo.org>  (tiny change)
65170         avoid compile failure on AIX 6.1
65171         * lib/getloadavg.c [HAVE_LIBPERFSTAT]: Include <sys/protosw.h>.
65172         Details in http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/15465
65174 2009-01-04  Jim Meyering  <meyering@redhat.com>
65176         remove duplicate inclusion of <stdio.h>
65177         * tests/test-fprintf-posix.c: Likewise.
65178         * tests/test-printf-posix.c: Likewise.
65179         * tests/test-snprintf-posix.c: Likewise.
65180         * tests/test-sprintf-posix.c: Likewise.
65181         * tests/test-vasprintf-posix.c: Likewise.
65182         * tests/test-vfprintf-posix.c: Likewise.
65183         * tests/test-vprintf-posix.c: Likewise.
65184         * tests/test-vsnprintf-posix.c: Likewise.
65185         * tests/test-vsprintf-posix.c: Likewise.
65187 2009-01-03  Jim Meyering  <meyering@redhat.com>
65189         gnulib-tool: fix sed-based filtering
65190         * gnulib-tool (func_filter_filelist): Remove extra backslash
65191         in sed_fff_filter definition.
65193 2009-01-02  Jim Meyering  <meyering@redhat.com>
65195         strftime: avoid compilation failure on Solaris 2.6
65196         * modules/strftime (Depends-on): Add mbrlen and mbsinit.
65197         * lib/strftime.c [DO_MULTIBYTE]: Include <wchar.h> unconditionally.
65198         Don't #define mbrlen or mbsinit, since now they're guaranteed to
65199         be available.  Reported by Tom G. Christensen.  Details in
65200         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/16180>.
65202 2009-01-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
65203             Bruno Haible  <bruno@clisp.org>
65205         Speed up gnulib-tool by doing more string processing through shell
65206         built-ins.
65207         * gnulib-tool (fast_func_append): New variable.
65208         (func_remove_prefix, func_remove_suffix): New functions.
65209         (fast_func_remove_prefix, fast_func_remove_suffix): New variables.
65210         (func_filter_filelist): New function.
65211         (func_get_dependencies): Use func_remove_suffix instead of sed.
65212         (func_get_automake_snippet): Use func_filter_filelist instead of a
65213         subshell and sed invocation.
65215 2009-01-01  Bruno Haible  <bruno@clisp.org>
65217         Fix a security bug.
65218         * gnulib-tool (func_import, import, update): Don't allow the characters
65219         '"', '$', '`', '\' in macro arguments that become part of commands that
65220         are evaluated.
65222 2009-01-01  Bruno Haible  <bruno@clisp.org>
65224         * gnulib-tool (func_reset_sigpipe): Add more comments.
65226 2009-01-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
65228         * gnulib-tool (func_modules_add_dummy, func_emit_lib_Makefile_am,
65229         func_emit_tests_Makefile_am, func_import): Abort loops early if we
65230         already know the answer.
65232 2009-01-01  Jim Meyering  <meyering@redhat.com>
65234         * lib/version-etc.c (version_etc_va): Update copyright year.
65236 2008-12-30  Bruno Haible  <bruno@clisp.org>
65238         * m4/lib-prefix.m4 (AC_LIB_LINKFLAGS_BODY): Don't overwrite
65239         LIB${NAME}_PREFIX when considering the dependencies of lib${name}.
65240         Reported by Charles Wilson <cygwin@cwilson.fastmail.fm>.
65242 2008-12-29  Eric Blake  <ebb9@byu.net>
65244         multiarch: avoid autoconf AC_REQUIRE bug
65245         * m4/multiarch.m4 (gl_MULTIARCH): Split body...
65246         (gl_MULTIARCH_BODY): ...into new macro, to work around bug in Autoconf
65247         2.63 and older.
65248         Reported by Bruno Haible, and analyzed in
65249         http://lists.gnu.org/archive/html/bug-autoconf/2008-12/msg00039.html
65251 2008-12-29  Bruno Haible  <bruno@clisp.org>
65253         * gnulib-tool (func_import): When generating sed-ignore-removed, handle
65254         files in subdirectories correctly.
65255         Reported by Ralf Wildenhues.
65257 2008-12-29  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
65259         * gnulib-tool (func_update_ignorelist): Use 'join - FILE'
65260         rather than 'join FILE -', for Solaris join.
65262 2008-12-29  Bruno Haible  <bruno@clisp.org>
65264         * m4/codeset.m4 (AM_LANGINFO_CODESET): More systematic m4 argument
65265         quoting.
65266         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
65267         * m4/glibc2.m4 (gt_GLIBC2): Likewise.
65268         * m4/glibc21.m4 (gl_GLIBC21): Likewise.
65269         * m4/iconv.m4 (AM_ICONV_LINK, AM_ICONV): Likewise.
65270         * m4/intdiv0.m4 (gt_INTDIV0): Likewise.
65271         * m4/intlmacosx.m4 (gt_INTL_MACOSX): Likewise.
65272         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Likewise.
65273         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Likewise.
65274         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
65275         * m4/lcmessage.m4 (gt_LC_MESSAGES): Likewise.
65276         * m4/nls.m4 (AM_NLS): Likewise.
65277         * m4/po.m4 (AM_PO_SUBDIRS): Likewise.
65278         * m4/printf-posix.m4 (gt_PRINTF_POSIX): Likewise.
65279         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
65280         * m4/size_max.m4 (gl_SIZE_MAX): Likewise.
65281         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Likewise.
65282         * m4/threadlib.m4 (gl_THREADLIB_BODY): Likewise.
65283         * m4/uintmax_t.m4 (gl_AC_TYPE_UINTMAX_T): Likewise.
65284         * m4/visibility.m4 (gl_VISIBILITY): Likewise.
65285         * m4/wchar_t.m4 (gt_TYPE_WCHAR_T): Likewise.
65286         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
65287         * m4/xsize.m4 (gl_XSIZE): Likewise.
65288         Suggested by Jim Meyering.
65290 2008-11-17  Bruce Korb  <bkorb@gnu.org>
65292         * lib/parse-duration.h: non-iso form accepts years, months weeks, too
65293         * lib/parse-duration.c: use a switch instead of cascading if's.
65295 2008-12-29  Eric Blake  <ebb9@byu.net>
65297         wchar.h: supply WEOF on Irix 5.3
65298         * lib/wchar.in.h (wint_t): Also supply WEOF.
65299         * lib/wctype.in.h (wint_t): Likewise.
65300         * doc/posix-headers/wchar.texi (wchar.h): Document the bug.
65301         * doc/posix-headers/wctype.texi (wctype.h): Likewise.
65302         Reported by Tom G. Christensen.
65304 2008-12-26  Bruno Haible  <bruno@clisp.org>
65306         * m4/multiarch.m4 (gl_MULTIARCH): Recognize also the architecture names
65307         i486, i586, i686.
65309 2008-12-26  Bruno Haible  <bruno@clisp.org>
65311         * lib/stdlib.in.h (struct random_data): Fix indentation of comments.
65313 2008-12-26  Bruno Haible  <bruno@clisp.org>
65315         * lib/stdint.in.h: Move the include of <wchar.h> down until after all
65316         the types are defined. Also conditionalize it on __STDC_LIMIT_MACROS,
65317         not __STDC_CONSTANT_MACROS.
65318         Reported by Nelson H. F. Beebe <beebe@math.utah.edu> via Eric Blake.
65320 2008-12-25  Bruno Haible  <bruno@clisp.org>
65322         Add support for universal builds to vasnprintf.
65323         * m4/printf.m4 (gl_PRINTF_ENOMEM): Require gl_MULTIARCH. In Apple
65324         universal builds, guess no.
65325         * modules/vasnprintf-posix (Depends-on): Add multiarch.
65326         * modules/vasprintf-posix (Depends-on): Likewise.
65327         * modules/fprintf-posix (Depends-on): Likewise.
65328         * modules/vfprintf-posix (Depends-on): Likewise.
65329         * modules/snprintf-posix (Depends-on): Likewise.
65330         * modules/vsnprintf-posix (Depends-on): Likewise.
65331         * modules/sprintf-posix (Depends-on): Likewise.
65332         * modules/vsprintf-posix (Depends-on): Likewise.
65333         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
65334         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
65335         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
65336         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
65337         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
65338         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
65339         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
65341         Add support for universal builds to <inttypes.h>.
65342         * lib/inttypes.in.h (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX,
65343         _SCNu64_PREFIX): In Apple
65344         universal builds, define directly, using _LP64.
65345         * m4/inttypes.m4 (gl_INTTYPES_H): In Apple universal builds, set
65346         INT64_MAX_EQ_LONG_MAX and UINT64_MAX_EQ_ULONG_MAX to -1.
65347         * modules/inttypes (Depends-on): Add multiarch.
65348         (Makefile.am): Substitute APPLE_UNIVERSAL_BUILD.
65350         Add support for universal builds to <stdint.h>.
65351         * lib/stdint.in.h (PDFDIFF_MIN, PTRDIFF_MAX, SIZE_MAX): In Apple
65352         universal builds, define directly, using _LP64.
65353         * m4/stdint.m4 (gl_STDINT_TYPE_PROPERTIES): Require gl_MULTIARCH. In
65354         Apple universal builds, don't test for the size and suffix of ptrdiff_t
65355         and size_t.
65356         * modules/stdint (Depends-on): Add multiarch.
65357         (Makefile.am): Substitute APPLE_UNIVERSAL_BUILD.
65359         New module 'multiarch'.
65360         * modules/multiarch: New file.
65361         * m4/multiarch.m4: New file.
65363 2008-12-25  Bruno Haible  <bruno@clisp.org>
65365         * gnulib-tool (func_create_testdir): Avoid failure of mv command.
65367 2008-12-25  Bruno Haible  <bruno@clisp.org>
65369         * modules/btowc (License): Relicense under LGPLv2+.
65370         * modules/mbsinit (License): Likewise.
65371         * modules/mbrtowc (License): Likewise.
65372         * modules/wcrtomb (License): Likewise.
65373         * modules/streq (License): Likewise.
65374         Reported by David Lutterkort <lutter@redhat.com>.
65376 2008-12-23  Bruno Haible  <bruno@clisp.org>
65378         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Fix conditional and comment.
65380 2008-12-23  Bruno Haible  <bruno@clisp.org>
65382         Module getaddrinfo requires linking with $(GETADDRINFO_LIB).
65383         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Put link options into
65384         GETADDRINFO_LIB, not in LIBS.
65385         * modules/getaddrinfo (Link): Set to $(GETADDRINFO_LIB).
65386         * modules/canon-host (Link): Likewise.
65387         * NEWS: Mention the change.
65388         * modules/getaddrinfo-tests (test_getaddrinfo_LDADD): Add the
65389         GETADDRINFO_LIB.
65391 2008-12-22  Bruno Haible  <bruno@clisp.org>
65393         * doc/posix-functions/iswalnum_l.texi: Mention limitation of wchar_t.
65394         * doc/posix-functions/iswalpha_l.texi: Likewise.
65395         * doc/posix-functions/iswblank_l.texi: Likewise.
65396         * doc/posix-functions/iswcntrl_l.texi: Likewise.
65397         * doc/posix-functions/iswctype_l.texi: Likewise.
65398         * doc/posix-functions/iswdigit_l.texi: Likewise.
65399         * doc/posix-functions/iswgraph_l.texi: Likewise.
65400         * doc/posix-functions/iswlower_l.texi: Likewise.
65401         * doc/posix-functions/iswprint_l.texi: Likewise.
65402         * doc/posix-functions/iswpunct_l.texi: Likewise.
65403         * doc/posix-functions/iswspace_l.texi: Likewise.
65404         * doc/posix-functions/iswupper_l.texi: Likewise.
65405         * doc/posix-functions/iswxdigit_l.texi: Likewise.
65406         * doc/posix-functions/mbsnrtowcs.texi: Likewise.
65407         * doc/posix-functions/open_wmemstream.texi: Likewise.
65408         * doc/posix-functions/swscanf.texi: Likewise.
65409         * doc/posix-functions/towctrans_l.texi: Likewise.
65410         * doc/posix-functions/towlower.texi: Likewise.
65411         * doc/posix-functions/towlower_l.texi: Likewise.
65412         * doc/posix-functions/towupper.texi: Likewise.
65413         * doc/posix-functions/towupper_l.texi: Likewise.
65414         * doc/posix-functions/vfwprintf.texi: Likewise.
65415         * doc/posix-functions/vfwscanf.texi: Likewise.
65416         * doc/posix-functions/vswscanf.texi: Likewise.
65417         * doc/posix-functions/vwprintf.texi: Likewise.
65418         * doc/posix-functions/vwscanf.texi: Likewise.
65419         * doc/posix-functions/wcpcpy.texi: Likewise.
65420         * doc/posix-functions/wcpncpy.texi: Likewise.
65421         * doc/posix-functions/wcscasecmp.texi: Likewise.
65422         * doc/posix-functions/wcscasecmp_l.texi: Likewise.
65423         * doc/posix-functions/wcscoll_l.texi: Likewise.
65424         * doc/posix-functions/wcsdup.texi: Likewise.
65425         * doc/posix-functions/wcsncasecmp.texi: Likewise.
65426         * doc/posix-functions/wcsncasecmp_l.texi: Likewise.
65427         * doc/posix-functions/wcsnlen.texi: Likewise.
65428         * doc/posix-functions/wcsnrtombs.texi: Likewise.
65429         * doc/posix-functions/wcsxfrm_l.texi: Likewise.
65430         * doc/posix-functions/wctrans_l.texi: Likewise.
65431         * doc/posix-functions/wctype_l.texi: Likewise.
65432         * doc/glibc-functions/fgetwc_unlocked.texi: Likewise.
65433         * doc/glibc-functions/fgetws_unlocked.texi: Likewise.
65434         * doc/glibc-functions/fputwc_unlocked.texi: Likewise.
65435         * doc/glibc-functions/fputws_unlocked.texi: Likewise.
65436         * doc/glibc-functions/getwc_unlocked.texi: Likewise.
65437         * doc/glibc-functions/getwchar_unlocked.texi: Likewise.
65438         * doc/glibc-functions/putwc_unlocked.texi: Likewise.
65439         * doc/glibc-functions/putwchar_unlocked.texi: Likewise.
65440         * doc/glibc-functions/wcschrnul.texi: Likewise.
65441         * doc/glibc-functions/wcsftime_l.texi: Likewise.
65442         * doc/glibc-functions/wcstod_l.texi: Likewise.
65443         * doc/glibc-functions/wcstof_l.texi: Likewise.
65444         * doc/glibc-functions/wcstol_l.texi: Likewise.
65445         * doc/glibc-functions/wcstold_l.texi: Likewise.
65446         * doc/glibc-functions/wcstoll_l.texi: Likewise.
65447         * doc/glibc-functions/wcstoq.texi: Likewise.
65448         * doc/glibc-functions/wcstoul_l.texi: Likewise.
65449         * doc/glibc-functions/wcstoull_l.texi: Likewise.
65450         * doc/glibc-functions/wcstouq.texi: Likewise.
65451         * doc/glibc-functions/wmempcpy.texi: Likewise.
65453 2008-12-22  Ingo Weinhold  <ingo_weinhold@gmx.de>  (tiny change)
65454             Eric Blake  <ebb9@byu.net>
65455             Paolo Bonzini  <bonzini@gnu.org>
65456             Bruno Haible  <bruno@clisp.org>
65458         Make c-stack work on Haiku.
65459         * lib/c-stack.c (SA_ONSTACK): Define fallback.
65460         (c_stack_action): Use SA_ONSTACK flag.
65462 2008-12-22  Bruno Haible  <bruno@clisp.org>
65464         * m4/locale-fr.m4 (gt_LOCALE_FR_UTF8): Treat Haiku like BeOS.
65466 2008-12-22  Bruno Haible  <bruno@clisp.org>
65468         Work around mbrlen() bugs on AIX, HP-UX, OSF/1, Solaris.
65469         * m4/mbrlen.m4 (gl_FUNC_MBRLEN): Set REPLACE_MBRLEN if mbrtowc is
65470         being overridden.
65471         (gl_MBRLEN_INCOMPLETE_STATE, gl_MBRLEN_RETVAL, gl_MBRLEN_NUL_RETVAL):
65472         New macros.
65473         * lib/wchar.in.h (mbrlen): Override if REPLACE_MBRLEN is set.
65474         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBRLEN.
65475         * modules/wchar (Makefile.am): Substitute REPLACE_MBRLEN.
65476         * doc/posix-functions/mbrlen.texi: Mention the various platform bugs.
65478 2008-12-22  Bruno Haible  <bruno@clisp.org>
65480         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE): Remove unused variable
65481         from test code.
65483 2008-12-22  Eric Blake  <ebb9@byu.net>
65485         Avoid gcc warnings on cygwin.
65486         * lib/regex_internal.c (re_string_reconstruct) [!RE_ENABLE_I18N]:
65487         Avoid unused variable.
65488         * lib/regexec.c (check_arrival_add_next_nodes) [!RE_ENABLE_I18N]:
65489         Likewise.
65491 2008-12-22  Bruno Haible  <bruno@clisp.org>
65493         Remove HAVE_MBRTOWC conditionals.
65494         * lib/mbscasecmp.c: Include mbuiter.h unconditionally.
65495         (mbscasecmp): Assume mbrtowc function.
65496         * lib/mbscasestr.c: Include mbuiter.h unconditionally.
65497         (knuth_morris_pratt_multibyte, mbscasestr): Assume mbrtowc function.
65498         * lib/mbschr.c: Include mbuiter.h unconditionally.
65499         (mbschr): Assume mbrtowc function.
65500         * lib/mbscspn.c: Include mbuiter.h unconditionally.
65501         (mbscspn): Assume mbrtowc function.
65502         * lib/mbslen.c: Include mbuiter.h unconditionally.
65503         (mbslen): Assume mbrtowc function.
65504         * lib/mbsncasecmp.c: Include mbuiter.h unconditionally.
65505         (mbsncasecmp): Assume mbrtowc function.
65506         * lib/mbsnlen.c: Include mbiter.h unconditionally.
65507         (mbsnlen): Assume mbrtowc function.
65508         * lib/mbspbrk.c: Include mbuiter.h unconditionally.
65509         (mbspbrk): Assume mbrtowc function.
65510         * lib/mbspcasecmp.c: Include mbuiter.h unconditionally.
65511         (mbspcasecmp): Assume mbrtowc function.
65512         * lib/mbsrchr.c: Include mbuiter.h unconditionally.
65513         (mbsrchr): Assume mbrtowc function.
65514         * lib/mbssep.c: Include mbuiter.h unconditionally.
65515         (mbssep): Assume mbrtowc function.
65516         * lib/mbsspn.c: Include mbuiter.h unconditionally.
65517         (mbsspn): Assume mbrtowc function.
65518         * lib/mbsstr.c: Include mbuiter.h unconditionally.
65519         (knuth_morris_pratt_multibyte, mbsstr): Assume mbrtowc function.
65520         * lib/mbstok_r.c: Include mbuiter.h unconditionally.
65521         (mbstok_r): Assume mbrtowc function.
65522         * lib/propername.c: Include mbuiter.h unconditionally.
65523         (mbsstr_trimmed_wordbounded): Assume mbrtowc function.
65524         * lib/trim.c: Include mbchar.h, mbiter.h uncondtionally.
65525         (trim2): Assume mbrtowc function.
65526         * lib/mbswidth.c (mbsinit): Remove fallback definition.
65527         (mbsnwidth): Assume mbrtowc function.
65528         * modules/mbswidth (Depends-on): Add mbrtowc, mbsinit.
65529         * lib/quotearg.c (MB_CUR_MAX, mbstate_t, mbrtowc, iswprint): Remove
65530         fallback definitions.
65531         * modules/quotearg (Depends-on): Add mbrtowc, mbsinit.
65533 2008-12-22  Bruno Haible  <bruno@clisp.org>
65535         * doc/posix-functions/mbtowc.texi: Mention a glibc bug.
65537 2008-12-22  Paolo Bonzini  <bonzini@gnu.org>
65539         * modules/regex: Request emulations for the mb*/wc* functions we need.
65540         * m4/regex.m4: Don't look for those functions here.
65541         * lib/regex_internal.h: Do not check HAVE_WCRTOMB and HAVE_MBRTOWC.
65543 2008-12-22  Bruno Haible  <bruno@clisp.org>
65545         * modules/fnmatch (Depends-on): Remove duplicated dependency.
65547 2008-12-21  Bruno Haible  <bruno@clisp.org>
65549         Make mbiter.h, mbuiter.h, mbfile.h usable unconditionally.
65550         * modules/mbiter (Depends-on): Add mbrtowc, mbsinit.
65551         (Include): Remove conditionalization.
65552         * modules/mbuiter (Depends-on): Add mbrtowc, mbsinit.
65553         (Include): Remove conditionalization.
65554         * modules/mbfile (Depends-on): Add mbrtowc, mbsinit.
65555         (Include): Remove conditionalization.
65556         * m4/mbiter.m4 (gl_MBITER): Deprecate the use of AC_FUNC_MBRTOWC.
65557         * m4/mbfile.m4 (gl_MBFILE): Likewise.
65558         * NEWS: Mention the change.
65559         Reported by Alan Hourihane <alanh@fairlite.co.uk>
65560         via Sergey Poznyakoff <gray@gnu.org.ua>.
65562 2008-12-21  Bruno Haible  <bruno@clisp.org>
65564         * MODULES.html.sh (Extended multibyte and wide character utilities
65565         <wchar.h>): Add btowc, wctob, mbsinit, mbrlen, mbrtowc, mbsrtowcs,
65566         wcrtomb, wcsrtombs.
65567         (Support for systems lacking POSIX:2008): Add accept, bind, close,
65568         connect, fclose, getpeername, getsockname, getsockopt, hostent, listen,
65569         mbsnrtowcs, posix_spawn*, recv, recvfrom, sched, select, send, sendto,
65570         setsockopt, shutdown, socket, spawn, sys_wait, wcsnrtombs, write.
65572 2008-12-21  Bruno Haible  <bruno@clisp.org>
65574         * MODULES.html.sh: Change section titles to refer to POSIX:2008.
65576 2008-12-21  Bruno Haible  <bruno@clisp.org>
65578         * modules/wcsnrtombs-tests: New file.
65579         * tests/test-wcsnrtombs1.sh: New file.
65580         * tests/test-wcsnrtombs2.sh: New file.
65581         * tests/test-wcsnrtombs3.sh: New file.
65582         * tests/test-wcsnrtombs4.sh: New file.
65583         * tests/test-wcsnrtombs.c: New file.
65585         New module 'wcsnrtombs'.
65586         * lib/wchar.in.h (wcsnrtombs): New declaration.
65587         * lib/wcsnrtombs.c: New file.
65588         * lib/wcsrtombs-state.c: New file.
65589         * lib/wcsrtombs.c: Refer to _gl_wcsrtombs_state.
65590         (internal_state): Remove variable.
65591         * m4/wcsnrtombs.m4: New file.
65592         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): Add wcsrtombs-state.c to the
65593         compilation units.
65594         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNRTOMBS,
65595         HAVE_WCSNRTOMBS.
65596         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNRTOMBS,
65597         HAVE_WCSNRTOMBS.
65598         * modules/wcsnrtombs: New file.
65599         * modules/wcsrtombs (Files): Add lib/wcsrtombs-state.c.
65600         * doc/posix-functions/wcsnrtombs.texi: Mention the new module.
65602 2008-12-21  Bruno Haible  <bruno@clisp.org>
65604         * modules/wcsrtombs-tests: New file.
65605         * tests/test-wcsrtombs1.sh: New file.
65606         * tests/test-wcsrtombs2.sh: New file.
65607         * tests/test-wcsrtombs3.sh: New file.
65608         * tests/test-wcsrtombs4.sh: New file.
65609         * tests/test-wcsrtombs.c: New file.
65611         New module 'wcsrtombs'.
65612         * lib/wchar.in.h (wcsrtombs): New declaration.
65613         * lib/wcsrtombs.c: New file.
65614         * m4/wcsrtombs.m4: New file.
65615         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSRTOMBS,
65616         HAVE_WCSRTOMBS, REPLACE_WCSRTOMBS.
65617         * modules/wchar (Makefile.am): Substitute GNULIB_WCSRTOMBS,
65618         HAVE_WCSRTOMBS, REPLACE_WCSRTOMBS.
65619         * modules/wcsrtombs: New file.
65620         * doc/posix-functions/wcsrtombs.texi: Mention the new module and the
65621         bugs.
65623 2008-12-21  Bruno Haible  <bruno@clisp.org>
65625         Work around a wcrtomb() bug on Solaris 10 and OSF/1 5.1.
65626         * lib/wchar.in.h (wcrtomb): Override if REPLACE_WCRTOMB is set.
65627         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Test the return value of wcrtomb
65628         with NULL destination argument in various locales. Set REPLACE_WCRTOMB
65629         if not correct.
65630         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCRTOMB.
65631         * modules/wchar (Makefile.am): Substitute REPLACE_WCRTOMB.
65632         * modules/wcrtomb (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
65633         m4/locale-zh.m4, m4/codeset.m4.
65634         * doc/posix-functions/wcrtomb.texi: Document the bug.
65636 2008-12-21  Bruno Haible  <bruno@clisp.org>
65638         Work around a btowc() bug on IRIX 6.5.
65639         * lib/wchar.in.h (btowc): Override if REPLACE_BTOWC is set.
65640         * m4/btowc.m4 (gl_FUNC_BTOWC): Test whether btowc(EOF) is correct. Set
65641         REPLACE_WTOBC if not.
65642         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_BTOWC.
65643         * modules/wchar (Makefile.am): Substitute REPLACE_BTOWC.
65644         * doc/posix-functions/btowc.texi: Mention the IRIX bug.
65646 2008-12-21  Bruno Haible  <bruno@clisp.org>
65648         * modules/wcrtomb-tests: New file.
65649         * tests/test-wcrtomb.sh: New file.
65650         * tests/test-wcrtomb.c: New file.
65652         New module 'wcrtomb'.
65653         * lib/wchar.in.h (wcrtomb): New declaration.
65654         * lib/wcrtomb.c: New file.
65655         * m4/wcrtomb.m4: New file.
65656         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCRTOMB,
65657         HAVE_WCRTOMB.
65658         * modules/wchar (Makefile.am): Substitute GNULIB_WCRTOMB,
65659         HAVE_WCRTOMB.
65660         * modules/wcrtomb: New file.
65661         * doc/posix-functions/wcrtomb.texi: Mention the new module.
65663 2008-12-21  Bruno Haible  <bruno@clisp.org>
65665         * modules/mbrtowc (Files): Add m4/codeset.m4, needed by m4/locale-fr.m4.
65666         * modules/mbsrtowcs (Files): Likewise.
65667         * modules/wctob (Files): Likewise.
65668         * modules/c-strcase-tests (Files): Likewise.
65669         * modules/unistdio/u8-vasnprintf-tests (Files): Likewise.
65670         * modules/unistdio/u16-vasnprintf-tests (Files): Likewise.
65671         * modules/unistdio/u32-vasnprintf-tests (Files): Likewise.
65672         * modules/unistdio/ulc-vasnprintf-tests (Files): Likewise.
65673         * modules/vasnprintf-posix-tests (Files): Likewise.
65675 2008-12-21  William Pursell  <bill.pursell@gmail.com>
65677         gitlog-to-changelog: pass all command-line arguments to git-log
65678         * build-aux/gitlog-to-changelog: When producing a ChangeLog,
65679         it is sometimes convenient to filter the commits in various ways.
65680         gitlog-to-changelog only allows --since to specify a start date,
65681         but git-log itself supports many other filtering mechanisms.
65682         At the moment, I want to filter by branch name.  Rather than
65683         adding a --branch option to gitlog-to-changelog, it seems more
65684         flexible to simply pass all options directly to git-log and let
65685         git do the work.  Notice that this effectively makes --since a
65686         redundant option for gitlog-to-changelog, but removing it would
65687         require current usage to change since calls would then require
65688         an additional '--'.
65690 2008-12-21  Bruno Haible  <bruno@clisp.org>
65692         * modules/mbsnrtowcs-tests: New file.
65693         * tests/test-mbsnrtowcs1.sh: New file.
65694         * tests/test-mbsnrtowcs2.sh: New file.
65695         * tests/test-mbsnrtowcs3.sh: New file.
65696         * tests/test-mbsnrtowcs4.sh: New file.
65697         * tests/test-mbsnrtowcs.c: New file.
65699         New module 'mbsnrtowcs'.
65700         * lib/wchar.in.h (mbsnrtowcs): New declaration.
65701         * lib/mbsnrtowcs.c: New file.
65702         * lib/mbsrtowcs-state.c: New file.
65703         * lib/mbsrtowcs.c: Refer to _gl_mbsrtowcs_state.
65704         (internal_state): Remove variable.
65705         * m4/mbsnrtowcs.m4: New file.
65706         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): Add mbsrtowcs-state.c to the
65707         compilation units.
65708         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSNRTOWCS,
65709         HAVE_MBSNRTOWCS, REPLACE_MBSNRTOWCS.
65710         * modules/wchar (Makefile.am): Substitute GNULIB_MBSNRTOWCS,
65711         HAVE_MBSNRTOWCS, REPLACE_MBSNRTOWCS.
65712         * modules/mbsnrtowcs: New file.
65713         * modules/mbsrtowcs (Files): Add lib/mbsrtowcs-state.c.
65714         * doc/posix-functions/mbsnrtowcs.texi: Mention the new module and a
65715         portability problem.
65717 2008-12-21  Bruno Haible  <bruno@clisp.org>
65719         Work around mbsrtowcs bug.
65720         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): New macro.
65721         (gl_FUNC_MBSRTOWCS): Invoke it.
65722         * modules/mbsrtowcs (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
65723         m4/locale-zh.m4.
65724         * doc/posix-functions/mbsrtowcs.texi: Document the bug.
65726 2008-12-21  Bruno Haible  <bruno@clisp.org>
65728         * tests/test-mbsrtowcs.c (main): Execute the loop also for unlimited=1.
65730 2008-12-21  Bruno Haible  <bruno@clisp.org>
65732         Update doc for AIX.
65733         * doc/pastposix-functions/wcswcs.texi: Mention that AIX has only a
65734         16-bit wchar_t type.
65735         * doc/posix-functions/btowc.texi: Likewise.
65736         * doc/posix-functions/fgetwc.texi: Likewise.
65737         * doc/posix-functions/fgetws.texi: Likewise.
65738         * doc/posix-functions/fputwc.texi: Likewise.
65739         * doc/posix-functions/fputws.texi: Likewise.
65740         * doc/posix-functions/fwide.texi: Likewise.
65741         * doc/posix-functions/fwprintf.texi: Likewise.
65742         * doc/posix-functions/fwscanf.texi: Likewise.
65743         * doc/posix-functions/getwchar.texi: Likewise.
65744         * doc/posix-functions/getwc.texi: Likewise.
65745         * doc/posix-functions/iswalnum.texi: Likewise.
65746         * doc/posix-functions/iswalpha.texi: Likewise.
65747         * doc/posix-functions/iswblank.texi: Likewise.
65748         * doc/posix-functions/iswcntrl.texi: Likewise.
65749         * doc/posix-functions/iswctype.texi: Likewise.
65750         * doc/posix-functions/iswdigit.texi: Likewise.
65751         * doc/posix-functions/iswgraph.texi: Likewise.
65752         * doc/posix-functions/iswlower.texi: Likewise.
65753         * doc/posix-functions/iswprint.texi: Likewise.
65754         * doc/posix-functions/iswpunct.texi: Likewise.
65755         * doc/posix-functions/iswspace.texi: Likewise.
65756         * doc/posix-functions/iswupper.texi: Likewise.
65757         * doc/posix-functions/iswxdigit.texi: Likewise.
65758         * doc/posix-functions/mbrtowc.texi: Likewise.
65759         * doc/posix-functions/mbsrtowcs.texi: Likewise.
65760         * doc/posix-functions/mbstowcs.texi: Likewise.
65761         * doc/posix-functions/mbtowc.texi: Likewise.
65762         * doc/posix-functions/putwchar.texi: Likewise.
65763         * doc/posix-functions/putwc.texi: Likewise.
65764         * doc/posix-functions/swprintf.texi: Likewise.
65765         * doc/posix-functions/tolower.texi: Likewise.
65766         * doc/posix-functions/toupper.texi: Likewise.
65767         * doc/posix-functions/towctrans.texi: Likewise.
65768         * doc/posix-functions/ungetwc.texi: Likewise.
65769         * doc/posix-functions/vswprintf.texi: Likewise.
65770         * doc/posix-functions/wcrtomb.texi: Likewise.
65771         * doc/posix-functions/wcscat.texi: Likewise.
65772         * doc/posix-functions/wcschr.texi: Likewise.
65773         * doc/posix-functions/wcscmp.texi: Likewise.
65774         * doc/posix-functions/wcscoll.texi: Likewise.
65775         * doc/posix-functions/wcscpy.texi: Likewise.
65776         * doc/posix-functions/wcscspn.texi: Likewise.
65777         * doc/posix-functions/wcsftime.texi: Likewise.
65778         * doc/posix-functions/wcslen.texi: Likewise.
65779         * doc/posix-functions/wcsncat.texi: Likewise.
65780         * doc/posix-functions/wcsncmp.texi: Likewise.
65781         * doc/posix-functions/wcsncpy.texi: Likewise.
65782         * doc/posix-functions/wcspbrk.texi: Likewise.
65783         * doc/posix-functions/wcsrchr.texi: Likewise.
65784         * doc/posix-functions/wcsrtombs.texi: Likewise.
65785         * doc/posix-functions/wcsspn.texi: Likewise.
65786         * doc/posix-functions/wcsstr.texi: Likewise.
65787         * doc/posix-functions/wcstod.texi: Likewise.
65788         * doc/posix-functions/wcstof.texi: Likewise.
65789         * doc/posix-functions/wcstoimax.texi: Likewise.
65790         * doc/posix-functions/wcstok.texi: Likewise.
65791         * doc/posix-functions/wcstold.texi: Likewise.
65792         * doc/posix-functions/wcstoll.texi: Likewise.
65793         * doc/posix-functions/wcstol.texi: Likewise.
65794         * doc/posix-functions/wcstombs.texi: Likewise.
65795         * doc/posix-functions/wcstoull.texi: Likewise.
65796         * doc/posix-functions/wcstoul.texi: Likewise.
65797         * doc/posix-functions/wcstoumax.texi: Likewise.
65798         * doc/posix-functions/wcswidth.texi: Likewise.
65799         * doc/posix-functions/wcsxfrm.texi: Likewise.
65800         * doc/posix-functions/wctob.texi: Likewise.
65801         * doc/posix-functions/wctomb.texi: Likewise.
65802         * doc/posix-functions/wctrans.texi: Likewise.
65803         * doc/posix-functions/wctype.texi: Likewise.
65804         * doc/posix-functions/wcwidth.texi: Likewise.
65805         * doc/posix-functions/wmemchr.texi: Likewise.
65806         * doc/posix-functions/wmemcmp.texi: Likewise.
65807         * doc/posix-functions/wmemcpy.texi: Likewise.
65808         * doc/posix-functions/wmemmove.texi: Likewise.
65809         * doc/posix-functions/wmemset.texi: Likewise.
65810         * doc/posix-functions/wprintf.texi: Likewise.
65811         * doc/posix-functions/wscanf.texi: Likewise.
65813 2008-12-21  Bruno Haible  <bruno@clisp.org>
65815         Update doc for HP-UX 11.11.
65816         * doc/posix-functions/btowc.texi: Clarify that the function is missing
65817         in HP-UX version 11.00, not in all versions of HP-UX 11.
65818         * doc/posix-functions/fwide.texi: Likewise.
65819         * doc/posix-functions/fwprintf.texi: Likewise.
65820         * doc/posix-functions/fwscanf.texi: Likewise.
65821         * doc/posix-functions/inet_ntop.texi: Likewise.
65822         * doc/posix-functions/inet_pton.texi: Likewise.
65823         * doc/posix-functions/mbrlen.texi: Likewise.
65824         * doc/posix-functions/mbrtowc.texi: Likewise.
65825         * doc/posix-functions/mbsinit.texi: Likewise.
65826         * doc/posix-functions/mbsrtowcs.texi: Likewise.
65827         * doc/posix-functions/swprintf.texi: Likewise.
65828         * doc/posix-functions/swscanf.texi: Likewise.
65829         * doc/posix-functions/towctrans.texi: Likewise.
65830         * doc/posix-functions/vfwprintf.texi: Likewise.
65831         * doc/posix-functions/vswprintf.texi: Likewise.
65832         * doc/posix-functions/vwprintf.texi: Likewise.
65833         * doc/posix-functions/wcrtomb.texi: Likewise.
65834         * doc/posix-functions/wcsrtombs.texi: Likewise.
65835         * doc/posix-functions/wcsstr.texi: Likewise.
65836         * doc/posix-functions/wctob.texi: Likewise.
65837         * doc/posix-functions/wctrans.texi: Likewise.
65838         * doc/posix-functions/wmemchr.texi: Likewise.
65839         * doc/posix-functions/wmemcmp.texi: Likewise.
65840         * doc/posix-functions/wmemcpy.texi: Likewise.
65841         * doc/posix-functions/wmemmove.texi: Likewise.
65842         * doc/posix-functions/wmemset.texi: Likewise.
65843         * doc/posix-functions/wprintf.texi: Likewise.
65844         * doc/posix-functions/wscanf.texi: Likewise.
65846 2008-12-21  Bruno Haible  <bruno@clisp.org>
65848         Work around a portability problem.
65849         * tests/test-mbsrtowcs.c (main): Use a temporary conversion state.
65850         * doc/posix-functions/mbsrtowcs.texi: Document the portability problem.
65852 2008-12-20  Bruno Haible  <bruno@clisp.org>
65854         * lib/wchar.in.h (mbsrtowcs): Redefine if REPLACE_MBSRTOWCS is set.
65855         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): Invoke gl_MBSTATE_T_BROKEN. Set
65856         REPLACE_MBSRTOWCS if mbsrtowcs needs to be overridden.
65857         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBSRTOWCS.
65858         * modules/wchar (Makefile.am): Substitute REPLACE_MBSRTOWCS.
65860         Work around mbrtowc bugs on AIX, HP-UX, OSF/1, Solaris.
65861         * lib/wchar.in.h (mbstate_t): Redefine also if REPLACE_MBSTATE_T is
65862         set.
65863         (GNULIB_defined_mbstate_t): New macro.
65864         (mbsinit): Redefine if REPLACE_MBSINIT is set.
65865         (mbrtowc): Redefine if REPLACE_MBRTOWC is set.
65866         * lib/mbrtowc.c (rpl_mbrtowc): Add an alternative implementation that
65867         reuses the system's mbrtowc function but works around the bugs.
65868         * m4/mbrtowc.m4 (gl_MBSTATE_T_BROKEN, gl_MBRTOWC_INCOMPLETE_STATE,
65869         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL): New
65870         macros.
65871         (gl_FUNC_MBRTOWC): Invoke them. Set REPLACE_MBRTOWC if mbrtowc needs to
65872         be overridden. Optionally define MBRTOWC_NULL_ARG_BUG,
65873         MBRTOWC_RETVAL_BUG, MBRTOWC_NUL_RETVAL_BUG.
65874         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Invoke gl_MBSTATE_T_BROKEN. Set
65875         REPLACE_MBSINIT if mbsinit needs to be overridden.
65876         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBSTATE_T,
65877         REPLACE_MBSINIT, REPLACE_MBRTOWC.
65878         * modules/wchar (Makefile.am): Substitute REPLACE_MBSTATE_T,
65879         REPLACE_MBSINIT, REPLACE_MBRTOWC.
65880         * modules/mbrtowc (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
65881         m4/locale-zh.m4.
65882         (Depends): Add mbsinit.
65883         * modules/mbsinit (Depends): Add mbrtowc.
65884         * doc/posix-functions/mbrtowc.texi: Mention the various bugs.
65886 2008-12-20  Bruno Haible  <bruno@clisp.org>
65888         * tests/test-mbrtowc.c (main): Change sample string in EUC-JP encoding
65889         so that there are no conversion errors on AIX.
65890         * tests/test-mbsrtowcs.c (main): LIkewise.
65892 2008-12-20  Bruno Haible  <bruno@clisp.org>
65894         Work around wctob bug on Solaris <= 9.
65895         * lib/wchar.in.h (wctob): Redefine if REPLACE_WCTOB is set.
65896         * m4/wctob.m4 (gl_FUNC_WCTOB): Test whether wctob works.
65897         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCTOB.
65898         * modules/wchar (Makefile.am): Substitute REPLACE_WCTOB.
65899         * modules/wctob (Files): Add m4/locale-fr.m4.
65900         * doc/posix-functions/wctob.texi: Mention the Solaris bug.
65902 2008-12-20  Bruno Haible  <bruno@clisp.org>
65904         * doc/posix-functions/select.texi: Mention Solaris 2.6 bug with
65905         /dev/null.
65906         * tests/test-select-in.sh: Likewise.
65907         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
65909 2008-12-20  Bruno Haible  <bruno@clisp.org>
65911         Don't pretend that Cygwin has a ja_JP.EUC-JP locale.
65912         * m4/locale-ja.m4 (gt_LOCALE_JA): Add test for MB_CUR_MAX. Needed on
65913         Cygwin 1.5.x.
65915 2008-12-20  Bruno Haible  <bruno@clisp.org>
65917         Ensure mbstate_t is defined on HP-UX 11.11.
65918         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Require
65919         AC_CANONICAL_HOST. On HP-UX, define _XOPEN_SOURCE to 500.
65920         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Require
65921         AC_USE_SYSTEM_EXTENSIONS.
65922         * modules/fnmatch (Depends-on): Add extensions.
65923         * modules/mbrlen (Depends-on): Likewise.
65924         * modules/mbrtowc (Depends-on): Likewise.
65925         * modules/mbsinit (Depends-on): Likewise.
65926         * modules/mbsrtowcs (Depends-on): Likewise.
65927         * modules/mbswidth (Depends-on): Likewise.
65928         * modules/quotearg (Depends-on): Likewise.
65929         * modules/strftime (Depends-on): Likewise.
65931 2008-12-20  Bruno Haible  <bruno@clisp.org>
65933         Ensure wctob is declared on IRIX 6.5.
65934         * lib/wchar.in.h (wctob): Declare also when HAVE_DECL_WCTOB is 0.
65935         * m4/wctob.m4 (gl_FUNC_WCTOB): Set HAVE_DECL_WCTOB instead of
65936         HAVE_WCTOB. Also test whether <wchar.h> declares wctob.
65937         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize HAVE_DECL_WCTOB instead
65938         of HAVE_WCTOB.
65939         * modules/wchar (Makefile.am): Substitute HAVE_DECL_WCTOB instead of
65940         HAVE_WCTOB.
65941         * doc/posix-functions/wctob.texi: Mention missing declaration on IRIX.
65943 2008-12-19  Bruno Haible  <bruno@clisp.org>
65945         * modules/mbsrtowcs-tests: New file.
65946         * tests/test-mbsrtowcs1.sh: New file.
65947         * tests/test-mbsrtowcs2.sh: New file.
65948         * tests/test-mbsrtowcs3.sh: New file.
65949         * tests/test-mbsrtowcs4.sh: New file.
65950         * tests/test-mbsrtowcs.c: New file.
65952         New module 'mbsrtowcs'.
65953         * lib/wchar.in.h (mbsrtowcs): New declaration.
65954         * lib/mbsrtowcs.c: New file.
65955         * m4/mbsrtowcs.m4: New file.
65956         * modules/mbsrtowcs: New file.
65957         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSRTOWCS and
65958         HAVE_MBSRTOWCS.
65959         * modules/wchar (Makefile.am): Substitute GNULIB_MBSRTOWCS and
65960         HAVE_MBSRTOWCS.
65961         * doc/posix-functions/mbsrtowcs.texi: Document the new module.
65963 2008-12-19  Bruno Haible  <bruno@clisp.org>
65965         New module 'mbrlen'.
65966         * lib/wchar.in.h (mbrlen): New declaration.
65967         * lib/mbrlen.c: New file.
65968         * m4/mbrlen.m4: New file.
65969         * modules/mbrlen: New file.
65970         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBRLEN and
65971         HAVE_MBRLEN.
65972         * modules/wchar (Makefile.am): Substitute GNULIB_MBRLEN and
65973         HAVE_MBRLEN.
65974         * doc/posix-functions/mbrlen.texi: Document the new module.
65976 2008-12-19  Bruno Haible  <bruno@clisp.org>
65978         * lib/mbrtowc.c: Include verify.h. Verify an assumption.
65979         * modules/mbrtowc (Depends-on): Add verify.
65980         Suggested by Paul Eggert.
65982 2008-12-18  Bruno Haible  <bruno@clisp.org>
65984         * modules/mbsinit-tests: New file.
65985         * tests/test-mbsinit.sh: New file.
65986         * tests/test-mbsinit.c: New file.
65988 2008-12-18  Bruno Haible  <bruno@clisp.org>
65990         * modules/mbrtowc-tests: New file.
65991         * tests/test-mbrtowc1.sh: New file.
65992         * tests/test-mbrtowc2.sh: New file.
65993         * tests/test-mbrtowc3.sh: New file.
65994         * tests/test-mbrtowc4.sh: New file.
65995         * tests/test-mbrtowc.c: New file.
65997         New module 'mbrtowc'.
65998         * lib/wchar.in.h (mbstate_t): Override when the system does not have
65999         mbsinit and mbrtowc.
66000         (mbrtowc): New declaration.
66001         * lib/mbrtowc.c: New file.
66002         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC, gl_PREREQ_MBRTOWC): New macros.
66003         * modules/mbrtowc: New file.
66004         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBRTOWC and
66005         HAVE_MBRTOWC.
66006         * modules/wchar (Makefile.am): Substitute GNULIB_MBRTOWC and
66007         HAVE_MBRTOWC.
66008         * doc/posix-functions/mbrtowc.texi: Document the new module.
66010 2008-12-18  Bruno Haible  <bruno@clisp.org>
66012         New module 'wctob'.
66013         * lib/wchar.in.h (wctob): New declaration.
66014         * lib/wctob.c: New file.
66015         * m4/wctob.m4: New file.
66016         * modules/wctob: New file.
66017         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCTOB and
66018         HAVE_WCTOB.
66019         * modules/wchar (Makefile.am): Substitute GNULIB_WCTOB and HAVE_WCTOB.
66020         * doc/posix-functions/wctob.texi: Document the new module.
66022 2008-12-18  Bruno Haible  <bruno@clisp.org>
66024         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Invoke gl_REPLACE_WCHAR_H.
66025         * m4/btowc.m4 (gl_FUNC_BTOWC): Likewise.
66027 2008-12-18  Simon Josefsson  <simon@josefsson.org>
66029         * lib/flock.c: Use proper #if symbol in check.  Reported by "Tom
66030         G. Christensen" <tgc@jupiterrise.com>.
66032         * lib/flock.c: Need to include errno.h.  Reported by "Tom
66033         G. Christensen" <tgc@jupiterrise.com>.
66035         * lib/flock.c: Need to include string.h.  Reported by "Tom
66036         G. Christensen" <tgc@jupiterrise.com> and Eric Blake
66037         <ebb9@byu.net>.
66039 2008-12-18  Bruno Haible  <bruno@clisp.org>
66041         * m4/locale-ja.m4: New file, from GNU gettext.
66043 2008-12-17  Bruno Haible  <bruno@clisp.org>
66045         * m4/mbrtowc.m4 (AC_FUNC_MBRTOWC): Don't override in autoconf >= 2.60.
66046         Suggested by Eric Blake.
66048 2008-12-17  Bruno Haible  <bruno@clisp.org>
66050         * m4/errno_h.m4 (AC_COMPUTE_INT): Provide fallback definition.
66052 2008-12-17  Bruno Haible  <bruno@clisp.org>
66054         * lib/mbsinit.c: Include verify.h. Verify an assumption.
66055         * modules/mbsinit (Depends-on): Add verify.
66056         Suggested by Paul Eggert.
66058 2008-12-17  Bruno Haible  <bruno@clisp.org>
66060         * m4/mbrtowc.m4 (AC_FUNC_MBRTOWC): Renamed from gl_FUNC_MBRTOWC.
66061         * m4/mbfile.m4 (gl_MBFILE): Use AC_FUNC_MBRTOWC instead of
66062         gl_FUNC_MBRTOWC.
66063         * m4/mbiter.m4 (gl_MBITER): LIkewise.
66064         * m4/mbscasecmp.m4 (gl_PREREQ_MBSCASECMP): Likewise.
66065         * m4/mbscasestr.m4 (gl_PREREQ_MBSCASESTR): Likewise.
66066         * m4/mbschr.m4 (gl_PREREQ_MBSCHR): Likewise.
66067         * m4/mbscspn.m4 (gl_PREREQ_MBSCSPN): Likewise.
66068         * m4/mbslen.m4 (gl_PREREQ_MBSLEN): Likewise.
66069         * m4/mbsncasecmp.m4 (gl_PREREQ_MBSNCASECMP): Likewise.
66070         * m4/mbsnlen.m4 (gl_PREREQ_MBSNLEN): Likewise.
66071         * m4/mbspbrk.m4 (gl_PREREQ_MBSPBRK): Likewise.
66072         * m4/mbspcasecmp.m4 (gl_PREREQ_MBSPCASECMP): Likewise.
66073         * m4/mbsrchr.m4 (gl_PREREQ_MBSRCHR): Likewise.
66074         * m4/mbssep.m4 (gl_PREREQ_MBSSEP): Likewise.
66075         * m4/mbsspn.m4 (gl_PREREQ_MBSSPN): Likewise.
66076         * m4/mbsstr.m4 (gl_PREREQ_MBSSTR): Likewise.
66077         * m4/mbstok_r.m4 (gl_PREREQ_MBSTOK_R): Likewise.
66078         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
66079         * m4/quotearg.m4 (gl_QUOTEARG): Likewise.
66080         * modules/trim (configure.ac): Likewise.
66082 2008-12-17  Bruno Haible  <bruno@clisp.org>
66084         * modules/btowc-tests: New file.
66085         * tests/test-btowc1.sh: New file.
66086         * tests/test-btowc2.sh: New file.
66087         * tests/test-btowc.c: New file.
66089         New module 'btowc'.
66090         * lib/wchar.in.h (btowc): New declaration.
66091         * lib/btowc.c: New file.
66092         * m4/btowc.m4: New file.
66093         * modules/btowc: New file.
66094         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_BTOWC and
66095         HAVE_BTOWC.
66096         * modules/wchar (Makefile.am): Substitute GNULIB_BTOWC and HAVE_BTOWC.
66097         * doc/posix-functions/btowc.texi: Document the new module.
66099 2008-12-17  Bruno Haible  <bruno@clisp.org>
66101         New module 'mbsinit'.
66102         * lib/wchar.in.h (mbsinit): New declaration.
66103         * lib/mbsinit.c: New file.
66104         * m4/mbsinit.m4: New file.
66105         * modules/mbsinit: New file.
66106         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSINIT and
66107         HAVE_MBSINIT.
66108         * modules/wchar (Makefile.am): Substitute GNULIB_MBSINIT and
66109         HAVE_MBSINIT.
66110         * doc/posix-functions/mbsinit.texi: Document the new module.
66112 2008-12-16  Bruno Haible  <bruno@clisp.org>
66114         * lib/unistd.in.h: Add comment.
66115         * tests/test-environ.c: Don't include <stdlib.h>.
66117 2008-12-16  Bruno Haible  <bruno@clisp.org>
66119         * lib/parse-duration.h (parse_duration): Document return value
66120         convention.
66121         * lib/parse-duration.c: Include specification header first. Add
66122         comments.
66123         (_): Remove macro.
66124         (parse_year_month_day, parse_hour_minute_second): Move side effects
66125         outside of strchr call.
66126         (parse_non_iso8601): Move side effects outside of isspace call.
66127         (parse_duration): Don't test errno is res != BAD_TIME. Remove fprintf
66128         call.
66130 2008-12-16  Bruno Haible  <bruno@clisp.org>
66132         * tests/test-parse-duration.sh: Produce no output when the test
66133         succeeds.
66135 2008-12-16  Bruno Haible  <bruno@clisp.org>
66137         * tests/test-parse-duration.sh: Fix quoting of $tmp and $tmpf
66138         expressions.
66140 2008-12-15  Bruno Haible  <bruno@clisp.org>
66142         * doc/glibc-functions/fgetxattr.texi: Tweak wording.
66143         * doc/glibc-functions/flistxattr.texi: Likewise.
66144         * doc/glibc-functions/fopencookie.texi: Likewise.
66145         * doc/glibc-functions/fremovexattr.texi: Likewise.
66146         * doc/glibc-functions/fsetxattr.texi: Likewise.
66147         * doc/glibc-functions/getxattr.texi: Likewise.
66148         * doc/glibc-functions/lgetxattr.texi: Likewise.
66149         * doc/glibc-functions/listxattr.texi: Likewise.
66150         * doc/glibc-functions/llistxattr.texi: Likewise.
66151         * doc/glibc-functions/lremovexattr.texi: Likewise.
66152         * doc/glibc-functions/lsetxattr.texi: Likewise.
66153         * doc/glibc-functions/removexattr.texi: Likewise.
66154         * doc/glibc-functions/setxattr.texi: Likewise.
66155         * doc/posix-functions/open_memstream.texi: Likewise.
66157 2008-12-15  Eric Blake  <ebb9@byu.net>
66159         Update doc for cygwin 1.7.
66160         * doc/posix-functions/faccessat.texi: Cygwin 1.7 added several new
66161         functions.
66162         * doc/posix-functions/fchmodat.texi: Likewise.
66163         * doc/posix-functions/fchownat.texi: Likewise.
66164         * doc/posix-functions/fdopendir.texi: Likewise.
66165         * doc/posix-functions/fmemopen.texi: Likewise.
66166         * doc/posix-functions/freeaddrinfo.texi: Likewise.
66167         * doc/posix-functions/fstatat.texi: Likewise.
66168         * doc/posix-functions/futimens.texi: Likewise.
66169         * doc/posix-functions/gai_strerror.texi: Likewise.
66170         * doc/posix-functions/getaddrinfo.texi: Likewise.
66171         * doc/posix-functions/getnameinfo.texi: Likewise.
66172         * doc/posix-functions/if_freenameindex.texi: Likewise.
66173         * doc/posix-functions/if_indextoname.texi: Likewise.
66174         * doc/posix-functions/if_nameindex.texi: Likewise.
66175         * doc/posix-functions/if_nametoindex.texi: Likewise.
66176         * doc/posix-functions/insque.texi: Likewise.
66177         * doc/posix-functions/linkat.texi: Likewise.
66178         * doc/posix-functions/llrint.texi: Likewise.
66179         * doc/posix-functions/llrintf.texi: Likewise.
66180         * doc/posix-functions/llrintl.texi: Likewise.
66181         * doc/posix-functions/lockf.texi: Likewise.
66182         * doc/posix-functions/lrintl.texi: Likewise.
66183         * doc/posix-functions/mkdirat.texi: Likewise.
66184         * doc/posix-functions/mkfifoat.texi: Likewise.
66185         * doc/posix-functions/mknodat.texi: Likewise.
66186         * doc/posix-functions/mq_close.texi: Likewise.
66187         * doc/posix-functions/mq_getattr.texi: Likewise.
66188         * doc/posix-functions/mq_notify.texi: Likewise.
66189         * doc/posix-functions/mq_open.texi: Likewise.
66190         * doc/posix-functions/mq_receive.texi: Likewise.
66191         * doc/posix-functions/mq_send.texi: Likewise.
66192         * doc/posix-functions/mq_setattr.texi: Likewise.
66193         * doc/posix-functions/mq_timedreceive.texi: Likewise.
66194         * doc/posix-functions/mq_timedsend.texi: Likewise.
66195         * doc/posix-functions/mq_unlink.texi: Likewise.
66196         * doc/posix-functions/open_memstream.texi: Likewise.
66197         * doc/posix-functions/openat.texi: Likewise.
66198         * doc/posix-functions/posix_fadvise.texi: Likewise.
66199         * doc/posix-functions/posix_fallocate.texi: Likewise.
66200         * doc/posix-functions/posix_madvise.texi: Likewise.
66201         * doc/posix-functions/posix_memalign.texi: Likewise.
66202         * doc/posix-functions/posix_openpt.texi: Likewise.
66203         * doc/posix-functions/readlinkat.texi: Likewise.
66204         * doc/posix-functions/remque.texi: Likewise.
66205         * doc/posix-functions/renameat.texi: Likewise.
66206         * doc/posix-functions/rintl.texi: Likewise.
66207         * doc/posix-functions/sem_unlink.texi: Likewise.
66208         * doc/posix-functions/shm_open.texi: Likewise.
66209         * doc/posix-functions/shm_unlink.texi: Likewise.
66210         * doc/posix-functions/signgam.texi: Likewise.
66211         * doc/posix-functions/sigset.texi: Likewise.
66212         * doc/posix-functions/stpcpy.texi: Likewise.
66213         * doc/posix-functions/stpncpy.texi: Likewise.
66214         * doc/posix-functions/strerror.texi: Likewise.
66215         * doc/posix-functions/strtod.texi: Likewise.
66216         * doc/posix-functions/symlinkat.texi: Likewise.
66217         * doc/posix-functions/unlinkat.texi: Likewise.
66218         * doc/posix-functions/utimensat.texi: Likewise.
66219         * doc/glibc-functions/bindresvport.texi: Likewise.
66220         * doc/glibc-functions/dn_expand.texi: Likewise.
66221         * doc/glibc-functions/exp10.texi: Likewise.
66222         * doc/glibc-functions/exp10f.texi: Likewise.
66223         * doc/glibc-functions/fgetxattr.texi: Likewise.
66224         * doc/glibc-functions/flistxattr.texi: Likewise.
66225         * doc/glibc-functions/fopencookie.texi: Likewise.
66226         * doc/glibc-functions/freeifaddrs.texi: Likewise.
66227         * doc/glibc-functions/fremovexattr.texi: Likewise.
66228         * doc/glibc-functions/fsetxattr.texi: Likewise.
66229         * doc/glibc-functions/getifaddrs.texi: Likewise.
66230         * doc/glibc-functions/getxattr.texi: Likewise.
66231         * doc/glibc-functions/lgetxattr.texi: Likewise.
66232         * doc/glibc-functions/listxattr.texi: Likewise.
66233         * doc/glibc-functions/llistxattr.texi: Likewise.
66234         * doc/glibc-functions/lremovexattr.texi: Likewise.
66235         * doc/glibc-functions/lsetxattr.texi: Likewise.
66236         * doc/glibc-functions/pow10.texi: Likewise.
66237         * doc/glibc-functions/pow10f.texi: Likewise.
66238         * doc/glibc-functions/rcmd_af.texi: Likewise.
66239         * doc/glibc-functions/removexattr.texi: Likewise.
66240         * doc/glibc-functions/res_init.texi: Likewise.
66241         * doc/glibc-functions/res_mkquery.texi: Likewise.
66242         * doc/glibc-functions/res_query.texi: Likewise.
66243         * doc/glibc-functions/res_querydomain.texi: Likewise.
66244         * doc/glibc-functions/res_send.texi: Likewise.
66245         * doc/glibc-functions/rresvport_af.texi: Likewise.
66246         * doc/glibc-functions/setxattr.texi: Likewise.
66247         * doc/glibc-functions/strcasestr.texi: Likewise.
66249 2008-12-15  Bruno Haible  <bruno@clisp.org>
66251         Fix compilation error on OSF/1 4.0.
66252         * lib/sys_select.in.h: When invoked from OSF/1 <sys/types.h> or
66253         <sys/time.h>, simply delegate to the system header.
66254         Reported by Daniel Richard G. <oss@teragram.com>.
66256 2008-12-15  Bruno Haible  <bruno@clisp.org>
66258         * doc/posix-functions/openat.texi: Mention the 'openat' module.
66259         * doc/posix-functions/fchmodat.texi: Likewise.
66260         * doc/posix-functions/fchownat.texi: Likewise.
66261         * doc/posix-functions/fdopendir.texi: Likewise.
66262         * doc/posix-functions/fstatat.texi: Likewise.
66263         * doc/posix-functions/mkdirat.texi: Likewise.
66264         * doc/posix-functions/unlinkat.texi: Likewise.
66266 2008-12-14  Bruno Haible  <bruno@clisp.org>
66268         Update doc for POSIX:2008.
66269         * doc/posix-functions/faccessat.texi: New file.
66270         * doc/posix-functions/fchmodat.texi: New file.
66271         * doc/posix-functions/fchownat.texi: New file.
66272         * doc/posix-functions/fdopendir.texi: New file.
66273         * doc/posix-functions/fstatat.texi: New file.
66274         * doc/posix-functions/futimens.texi: New file.
66275         * doc/posix-functions/linkat.texi: New file.
66276         * doc/posix-functions/mkdirat.texi: New file.
66277         * doc/posix-functions/mkfifoat.texi: New file.
66278         * doc/posix-functions/mknodat.texi: New file.
66279         * doc/posix-functions/open_wmemstream.texi: New file.
66280         * doc/posix-functions/openat.texi: New file.
66281         * doc/posix-functions/psiginfo.texi: New file.
66282         * doc/posix-functions/pthread_mutex_consistent.texi: New file.
66283         * doc/posix-functions/pthread_mutexattr_getrobust.texi: New file.
66284         * doc/posix-functions/pthread_mutexattr_setrobust.texi: New file.
66285         * doc/posix-functions/readlinkat.texi: New file.
66286         * doc/posix-functions/renameat.texi: New file.
66287         * doc/posix-functions/strerror_l.texi: New file.
66288         * doc/posix-functions/symlinkat.texi: New file.
66289         * doc/posix-functions/unlinkat.texi: New file.
66290         * doc/posix-functions/utimensat.texi: New file.
66291         * doc/gnulib.texi (Function Substitutes): Add these subsections.
66293 2008-12-14  Bruno Haible  <bruno@clisp.org>
66295         Update doc for POSIX:2008.
66296         * doc/posix-functions/alphasort.texi: Renamed from
66297         doc/glibc-functions/alphasort.texi.
66298         * doc/posix-functions/dirfd.texi: Renamed from
66299         doc/glibc-functions/dirfd.texi.
66300         * doc/posix-functions/dprintf.texi: Renamed from
66301         doc/glibc-functions/dprintf.texi.
66302         * doc/posix-functions/duplocale.texi: Renamed from
66303         doc/glibc-functions/duplocale.texi.
66304         * doc/posix-functions/fexecve.texi: Renamed from
66305         doc/glibc-functions/fexecve.texi.
66306         * doc/posix-functions/fmemopen.texi: Renamed from
66307         doc/glibc-functions/fmemopen.texi.
66308         * doc/posix-functions/freelocale.texi: Renamed from
66309         doc/glibc-functions/freelocale.texi.
66310         * doc/posix-functions/getdate_err.texi: Renamed from
66311         doc/glibc-functions/getdate_err.texi.
66312         * doc/posix-functions/isalnum_l.texi: Renamed from
66313         doc/glibc-functions/isalnum_l.texi.
66314         * doc/posix-functions/isalpha_l.texi: Renamed from
66315         doc/glibc-functions/isalpha_l.texi.
66316         * doc/posix-functions/isblank_l.texi: Renamed from
66317         doc/glibc-functions/isblank_l.texi.
66318         * doc/posix-functions/iscntrl_l.texi: Renamed from
66319         doc/glibc-functions/iscntrl_l.texi.
66320         * doc/posix-functions/isdigit_l.texi: Renamed from
66321         doc/glibc-functions/isdigit_l.texi.
66322         * doc/posix-functions/isgraph_l.texi: Renamed from
66323         doc/glibc-functions/isgraph_l.texi.
66324         * doc/posix-functions/islower_l.texi: Renamed from
66325         doc/glibc-functions/islower_l.texi.
66326         * doc/posix-functions/isprint_l.texi: Renamed from
66327         doc/glibc-functions/isprint_l.texi.
66328         * doc/posix-functions/ispunct_l.texi: Renamed from
66329         doc/glibc-functions/ispunct_l.texi.
66330         * doc/posix-functions/isspace_l.texi: Renamed from
66331         doc/glibc-functions/isspace_l.texi.
66332         * doc/posix-functions/isupper_l.texi: Renamed from
66333         doc/glibc-functions/isupper_l.texi.
66334         * doc/posix-functions/iswalnum_l.texi: Renamed from
66335         doc/glibc-functions/iswalnum_l.texi.
66336         * doc/posix-functions/iswalpha_l.texi: Renamed from
66337         doc/glibc-functions/iswalpha_l.texi.
66338         * doc/posix-functions/iswblank_l.texi: Renamed from
66339         doc/glibc-functions/iswblank_l.texi.
66340         * doc/posix-functions/iswcntrl_l.texi: Renamed from
66341         doc/glibc-functions/iswcntrl_l.texi.
66342         * doc/posix-functions/iswctype_l.texi: Renamed from
66343         doc/glibc-functions/iswctype_l.texi.
66344         * doc/posix-functions/iswdigit_l.texi: Renamed from
66345         doc/glibc-functions/iswdigit_l.texi.
66346         * doc/posix-functions/iswgraph_l.texi: Renamed from
66347         doc/glibc-functions/iswgraph_l.texi.
66348         * doc/posix-functions/iswlower_l.texi: Renamed from
66349         doc/glibc-functions/iswlower_l.texi.
66350         * doc/posix-functions/iswprint_l.texi: Renamed from
66351         doc/glibc-functions/iswprint_l.texi.
66352         * doc/posix-functions/iswpunct_l.texi: Renamed from
66353         doc/glibc-functions/iswpunct_l.texi.
66354         * doc/posix-functions/iswspace_l.texi: Renamed from
66355         doc/glibc-functions/iswspace_l.texi.
66356         * doc/posix-functions/iswupper_l.texi: Renamed from
66357         doc/glibc-functions/iswupper_l.texi.
66358         * doc/posix-functions/iswxdigit_l.texi: Renamed from
66359         doc/glibc-functions/iswxdigit_l.texi.
66360         * doc/posix-functions/isxdigit_l.texi: Renamed from
66361         doc/glibc-functions/isxdigit_l.texi.
66362         * doc/posix-functions/mbsnrtowcs.texi: Renamed from
66363         doc/glibc-functions/mbsnrtowcs.texi.
66364         * doc/posix-functions/mkdtemp.texi: Renamed from
66365         doc/glibc-functions/mkdtemp.texi.
66366         * doc/posix-functions/newlocale.texi: Renamed from
66367         doc/glibc-functions/newlocale.texi.
66368         * doc/posix-functions/nl_langinfo_l.texi: Renamed from
66369         doc/glibc-functions/nl_langinfo_l.texi.
66370         * doc/posix-functions/open_memstream.texi: Renamed from
66371         doc/glibc-functions/open_memstream.texi.
66372         * doc/posix-functions/opterr.texi: Renamed from
66373         doc/glibc-functions/opterr.texi.
66374         * doc/posix-functions/optind.texi: Renamed from
66375         doc/glibc-functions/optind.texi.
66376         * doc/posix-functions/optopt.texi: Renamed from
66377         doc/glibc-functions/optopt.texi.
66378         * doc/posix-functions/psignal.texi: Renamed from
66379         doc/glibc-functions/psignal.texi.
66380         * doc/posix-functions/scandir.texi: Renamed from
66381         doc/glibc-functions/scandir.texi.
66382         * doc/posix-functions/sched_get_priority_min.texi: Renamed from
66383         doc/glibc-functions/sched_get_priority_min.texi.
66384         * doc/posix-functions/signgam.texi: Renamed from
66385         doc/glibc-functions/signgam.texi.
66386         * doc/posix-functions/stpcpy.texi: Renamed from
66387         doc/glibc-functions/stpcpy.texi.
66388         * doc/posix-functions/stpncpy.texi: Renamed from
66389         doc/glibc-functions/stpncpy.texi.
66390         * doc/posix-functions/strcasecmp_l.texi: Renamed from
66391         doc/glibc-functions/strcasecmp_l.texi.
66392         * doc/posix-functions/strcoll_l.texi: Renamed from
66393         doc/glibc-functions/strcoll_l.texi.
66394         * doc/posix-functions/strfmon_l.texi: Renamed from
66395         doc/glibc-functions/strfmon_l.texi.
66396         * doc/posix-functions/strftime_l.texi: Renamed from
66397         doc/glibc-functions/strftime_l.texi.
66398         * doc/posix-functions/strncasecmp_l.texi: Renamed from
66399         doc/glibc-functions/strncasecmp_l.texi.
66400         * doc/posix-functions/strndup.texi: Renamed from
66401         doc/glibc-functions/strndup.texi.
66402         * doc/posix-functions/strnlen.texi: Renamed from
66403         doc/glibc-functions/strnlen.texi.
66404         * doc/posix-functions/strsignal.texi: Renamed from
66405         doc/glibc-functions/strsignal.texi.
66406         * doc/posix-functions/strxfrm_l.texi: Renamed from
66407         doc/glibc-functions/strxfrm_l.texi.
66408         * doc/posix-functions/timer_gettime.texi: Renamed from
66409         doc/glibc-functions/timer_gettime.texi.
66410         * doc/posix-functions/tolower_l.texi: Renamed from
66411         doc/glibc-functions/tolower_l.texi.
66412         * doc/posix-functions/toupper_l.texi: Renamed from
66413         doc/glibc-functions/toupper_l.texi.
66414         * doc/posix-functions/towctrans_l.texi: Renamed from
66415         doc/glibc-functions/towctrans_l.texi.
66416         * doc/posix-functions/towlower_l.texi: Renamed from
66417         doc/glibc-functions/towlower_l.texi.
66418         * doc/posix-functions/towupper_l.texi: Renamed from
66419         doc/glibc-functions/towupper_l.texi.
66420         * doc/posix-functions/uselocale.texi: Renamed from
66421         doc/glibc-functions/uselocale.texi.
66422         * doc/posix-functions/vdprintf.texi: Renamed from
66423         doc/glibc-functions/vdprintf.texi.
66424         * doc/posix-functions/wcpcpy.texi:
66425         Renamed from doc/glibc-functions/wcpcpy.texi.
66426         * doc/posix-functions/wcpncpy.texi: Renamed from
66427         doc/glibc-functions/wcpncpy.texi.
66428         * doc/posix-functions/wcscasecmp.texi: Renamed from
66429         doc/glibc-functions/wcscasecmp.texi.
66430         * doc/posix-functions/wcscasecmp_l.texi: Renamed from
66431         doc/glibc-functions/wcscasecmp_l.texi.
66432         * doc/posix-functions/wcscoll_l.texi: Renamed from
66433         doc/glibc-functions/wcscoll_l.texi.
66434         * doc/posix-functions/wcsdup.texi: Renamed from
66435         doc/glibc-functions/wcsdup.texi.
66436         * doc/posix-functions/wcsncasecmp.texi: Renamed from
66437         doc/glibc-functions/wcsncasecmp.texi.
66438         * doc/posix-functions/wcsncasecmp_l.texi: Renamed from
66439         doc/glibc-functions/wcsncasecmp_l.texi.
66440         * doc/posix-functions/wcsnlen.texi: Renamed from
66441         doc/glibc-functions/wcsnlen.texi.
66442         * doc/posix-functions/wcsnrtombs.texi: Renamed from
66443         doc/glibc-functions/wcsnrtombs.texi.
66444         * doc/posix-functions/wcsxfrm_l.texi: Renamed from
66445         doc/glibc-functions/wcsxfrm_l.texi.
66446         * doc/posix-functions/wctrans_l.texi: Renamed from
66447         doc/glibc-functions/wctrans_l.texi.
66448         * doc/posix-functions/wctype_l.texi: Renamed from
66449         doc/glibc-functions/wctype_l.texi.
66450         * doc/gnulib.texi (Function Substitutes): Add these subsections.
66451         (Glibc ctype.h, Glibc dirent.h, Glibc getopt.h, Glibc math.h,
66452         Glibc sched.h, Glibc signal.h, Glibc stdio.h, Glibc stdlib.h,
66453         Glibc string.h, Glibc time.h, Glibc unistd.h, Glibc wchar.h): Remove
66454         these subsections.
66455         (Glibc langinfo.h, Glibc locale.h, Glibc monetary.h, Glibc wctype.h):
66456         Remove sections.
66458 2008-12-14  Bruno Haible  <bruno@clisp.org>
66460         Update doc for POSIX:2008.
66461         * doc/posix-functions/*.texi: Update URL of POSIX specification.
66463 2008-12-14  Bruno Haible  <bruno@clisp.org>
66465         Update doc for POSIX:2008.
66466         * doc/pastposix-functions/bcmp.texi: Renamed from
66467         doc/posix-functions/bcmp.texi.
66468         * doc/pastposix-functions/bcopy.texi: Renamed from
66469         doc/posix-functions/bcopy.texi.
66470         * doc/pastposix-functions/bsd_signal.texi: Renamed from
66471         doc/posix-functions/bsd_signal.texi.
66472         * doc/pastposix-functions/bzero.texi: Renamed from
66473         doc/posix-functions/bzero.texi.
66474         * doc/pastposix-functions/ecvt.texi: Renamed from
66475         doc/posix-functions/ecvt.texi.
66476         * doc/pastposix-functions/fcvt.texi: Renamed from
66477         doc/posix-functions/fcvt.texi.
66478         * doc/pastposix-functions/ftime.texi: Renamed from
66479         doc/posix-functions/ftime.texi.
66480         * doc/pastposix-functions/gcvt.texi: Renamed from
66481         doc/posix-functions/gcvt.texi.
66482         * doc/pastposix-functions/getcontext.texi: Renamed from
66483         doc/posix-functions/getcontext.texi.
66484         * doc/pastposix-functions/gethostbyaddr.texi: Renamed from
66485         doc/posix-functions/gethostbyaddr.texi.
66486         * doc/pastposix-functions/gethostbyname.texi: Renamed from
66487         doc/posix-functions/gethostbyname.texi.
66488         * doc/pastposix-functions/getwd.texi: Renamed from
66489         doc/posix-functions/getwd.texi.
66490         * doc/pastposix-functions/h_errno.texi: Renamed from
66491         doc/posix-functions/h_errno.texi.
66492         * doc/pastposix-functions/index.texi: Renamed from
66493         doc/posix-functions/index.texi.
66494         * doc/pastposix-functions/makecontext.texi: Renamed from
66495         doc/posix-functions/makecontext.texi.
66496         * doc/pastposix-functions/mktemp.texi: Renamed from
66497         doc/posix-functions/mktemp.texi.
66498         * doc/pastposix-functions/pthread_attr_getstackaddr.texi: Renamed from
66499         doc/posix-functions/pthread_attr_getstackaddr.texi.
66500         * doc/pastposix-functions/pthread_attr_setstackaddr.texi: Renamed from
66501         doc/posix-functions/pthread_attr_setstackaddr.texi.
66502         * doc/pastposix-functions/rindex.texi: Renamed from
66503         doc/posix-functions/rindex.texi.
66504         * doc/pastposix-functions/scalb.texi: Renamed from
66505         doc/posix-functions/scalb.texi.
66506         * doc/pastposix-functions/setcontext.texi: Renamed from
66507         doc/posix-functions/setcontext.texi.
66508         * doc/pastposix-functions/swapcontext.texi: Renamed from
66509         doc/posix-functions/swapcontext.texi.
66510         * doc/pastposix-functions/ualarm.texi: Renamed from
66511         doc/posix-functions/ualarm.texi.
66512         * doc/pastposix-functions/usleep.texi: Renamed from
66513         doc/posix-functions/usleep.texi.
66514         * doc/pastposix-functions/vfork.texi: Renamed from
66515         doc/posix-functions/vfork.texi.
66516         * doc/pastposix-functions/wcswcs.texi: Renamed from
66517         doc/posix-functions/wcswcs.texi.
66518         * doc/gnulib.texi (Legacy Function Substitutes): New chapter.
66519         (Function Substitutes): Update.
66521 2008-12-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
66523         * modules/relocatable-prog-wrapper (Depends-on): Add errno, needed by
66524         m4/strerror.m4.
66526 2008-12-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
66527             Bruno Haible  <bruno@clisp.org>
66529         * modules/unilbrk/tables (Depends-on): Add unilbrk/base.
66531 2008-12-13  Bruno Haible  <bruno@clisp.org>
66533         * modules/strtoull (Depends-on): Remove unistd.
66535 2008-12-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
66537         * modules/strtoull (Depends-on): Add stdlib.
66539 2008-12-11  Simon Josefsson  <simon@josefsson.org>
66541         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Add more warnings.
66543 2008-12-10  Jim Meyering  <meyering@redhat.com>
66545         gl_ASSERT: don't say assertions are disabled when they're not
66546         * m4/assert.m4 (gl_ASSERT): Do not make configure report
66547         "checking whether to enable assertions... no", when they are in
66548         fact enabled.  This is solely a bug in the output of configure.
66549         In spite of saying "no", NDEBUG was not defined in that case.
66550         Also, as noted by Eric Blake, leave assertions enabled upon
66551         --enable-assert=INVALID.
66553 2008-12-10  Bruno Haible  <bruno@clisp.org>
66555         Change MODULES.html to refer to POSIX:2008 where possible.
66556         * MODULES.html.sh (POSIX2008_URL): New variable.
66557         (posix_headers): Remove sys/timeb, ucontext.
66558         (posix2001_headers): New variable.
66559         (posix_functions): Remove bcmp, bcopy, bsd_signal, bzero, ecvt, fcvt,
66560         ftime, gcvt, getcontext, gethostbyaddr, gethostbyname, getwd, h_errno,
66561         index, makecontext, mktemp, pthread_attr_getstackaddr,
66562         pthread_attr_setstackaddr, rindex, scalb, setcontext, swapcontext,
66563         ualarm, usleep, vfork, wcswcs. Add the new POSIX:2008 functions.
66564         (posix2001_functions): New variable.
66565         (func_module): Use URLs to POSIX:2008 where possible and to POSIX:2001
66566         otherwise.
66568 2008-12-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
66570         add missing include to parse-duration.c
66571         * lib/parse-duration.c: #include "xalloc.h", for xstrdup.
66572         * modules/parse-duration (Depends-on): Add xalloc.
66574         fix sed script reading maint.mk
66575         * top/maint.mk (MYSELF): New macro, define as $(srcdir)/$(ME).
66576         (syntax-check-rules): Use it.
66578 2008-12-09  Bruno Haible  <bruno@clisp.org>
66580         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): Add another check, that fails on
66581         MacOS X 10.4/PowerPC.
66582         Reported by Simon Josefsson.
66584 2008-12-08  Jim Meyering  <meyering@redhat.com>
66586         work around mingw's lack of some S_IF definitions
66587         * lib/fts.c (S_IFLNK, S_IFSOCK): Define if not already defined.
66588         Reported by Simon Josefsson.
66590 2008-12-08  Bruno Haible  <bruno@clisp.org>
66592         * m4/signbitl.m4 (gl_SIGNBIT_TEST_PROGRAM): Add a link check of signbit
66593         applied to variables. Needed on MacOS X 10.4/PowerPC.
66594         Reported by Simon Josefsson.
66596 2008-12-08  William Pursell  <bill.pursell@gmail.com>  (tiny change)
66597         and Eric Blake  <ebb9@byu.net>
66599         assert: honor --enable-assert
66600         * m4/assert.m4 (gl_ASSERT): Synchronize with autoconf 2.64, in
66601         order to honor --enable-assert, rather than treating it as a
66602         synonym for --disable-assert.
66604 2008-12-08  Jim Meyering  <meyering@redhat.com>
66606         * lib/posixtm.c: Remove now-useless declaration of mktime.
66608         * build-aux/announce-gen (get_tool_versions): Accept .xz tarballs.
66610 2008-12-07  Bruno Haible  <bruno@clisp.org>
66612         * tests/test-lock.c (test_lock, test_rwlock, test_recursive_lock,
66613         test_once): Mark functions as static.
66614         * tests/test-tls.c (test_tls): Likewise.
66616 2008-12-07  Bruno Haible  <bruno@clisp.org>
66618         * lib/striconveha.h (uniconv_register_autodetect): Renamed from
66619         iconv_register_autodetect.
66621 2008-12-07  Jim Meyering  <meyering@redhat.com>
66623         posixtm.c: avoid a warning
66624         * lib/posixtm.c (posixtime): Don't initialize tm0.
66625         It's no longer needed to placate gcc4's -Wuninitialized,
66626         and the attempt to placate would elicit a new warning.
66628         unicodeio.c: mark unused parameters
66629         * lib/unicodeio.c (exit_failure_callback): Mark unused parameter.
66630         (fallback_failure_callback): Likewise.
66632 2008-12-07  Bruno Haible  <bruno@clisp.org>
66634         * gnulib-tool (func_create_testdir): When building the tests
66635         subdirectory, ignore the modules gnumakefile and maintainer-makefile.
66636         Reported by Simon Josefsson.
66638 2008-12-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
66640         * doc/manywarnings.texi, doc/gnulib-intro.texi: Fix typos.
66642 2008-12-06  Bruno Haible  <bruno@clisp.org>
66644         * lib/c-stack.h (c_stack_action): Clarify possible side effects.
66645         Suggested by Eric Blake.
66647 2008-12-06  Bruno Haible  <bruno@clisp.org>
66649         Fix a c-stack test failure on MacOS X.
66650         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Require
66651         AC_CANONICAL_HOST. Define FAULT_YIELDS_SIGBUS. If set, install a signal
66652         handler for SIGBUS as well.
66653         * lib/c-stack.c (c_stack_action): If FAULT_YIELDS_SIGBUS is set,
66654         install a signal handler for SIGBUS as well.
66655         Reported by Bruce Dugan <bld0401@gmail.com> via Eric Blake.
66657 2008-12-06  Bruno Haible  <bruno@clisp.org>
66659         Advocacy documentation.
66660         * doc/gnulib-intro.texi (Benefits): New section.
66661         * doc/gnulib.texi: Update.
66663 2008-12-06  Bruno Haible  <bruno@clisp.org>
66665         Document the 'manywarnings' module.
66666         * doc/manywarnings.texi: New file.
66667         * doc/gnulib.texi: Include it.
66669 2008-12-05  Eric Blake  <ebb9@byu.net>
66671         tests: silence some gcc warnings
66672         * tests/test-getdate.c (LOG) [!DEBUG]: Mark no-op void.
66673         * tests/uniwidth/test-uc_width2.c (finish_interval): Avoid printf
66674         type mismatches.
66676 2008-12-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
66677             Bruno Haible  <bruno@clisp.org>
66679         * m4/openmp.m4 (AC_OPENMP): Do not define with Autoconf 2.62 or newer.
66681 2008-11-29  Jim Meyering  <meyering@redhat.com>
66683         unicodeio.c: mark unused parameters
66684         * lib/unicodeio.c (exit_failure_callback): Mark unused parameter.
66685         (fallback_failure_callback): Likewise.
66687         fts: fix a thinko
66688         * lib/fts.c (s_ifmt_shift_bits): Remove function.  Not needed after all.
66689         (set_stat_type): Return S_IF*-valued "type" directly.
66690         Prompted by James Youngman's spotting a related bug.
66691         Confirmed by further testing through find.
66693         fts: provide dirent.d_type via FTSENT.fts_statp, when possible
66694         * lib/fts.c (D_TYPE): Define.
66695         (DT_UNKNOWN, DT_BLK, DT_CHR) [HAVE_STRUCT_DIRENT_D_TYPE]: Define.
66696         (DT_DIR, DT_FIFO, DT_LNK, DT_REG, DT_SOCK): Likewise.
66697         (s_ifmt_shift_bits): New function.
66698         (set_stat_type): New function.
66699         (fts_build): When not calling fts_stat, call set_stat_type
66700         to propagate dirent.d_type info to fts_read caller.
66701         * lib/fts_.h (FTSENT) [FTS_DEFER_STAT]: Mention that
66702         fts_statp->st_mode type information may be valid.
66704 2008-11-28  Simon Josefsson  <simon@josefsson.org>
66706         * lib/sys_time.in.h: Add extern "C" block for C++.  Suggested by
66707         Brian Dessent <brian@dessent.net>.  Reported by Sam Steingold
66708         <sds@gnu.org>.
66710 2008-11-20  Bruno Haible  <bruno@clisp.org>
66712         Attempt to work around an AIX 5.3, 6.1 compiler bug with include_next.
66713         * lib/math.in.h: Use INCLUDE_NEXT_AS_FIRST_DIRECTIVE instead of
66714         INCLUDE_NEXT.
66715         * m4/include_next.m4 (gl_INCLUDE_NEXT): Set also
66716         INCLUDE_NEXT_AS_FIRST_DIRECTIVE.
66717         * modules/math (Makefile.am): Substitute
66718         INCLUDE_NEXT_AS_FIRST_DIRECTIVE instead of INCLUDE_NEXT.
66719         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
66721 2008-11-18  Alexandre Duret-Lutz  <adl@lrde.epita.fr>
66722             Bruno Haible  <bruno@clisp.org>
66724         * lib/stdint.in.h: Define all type macros so that their expansion is
66725         a single typedef'ed token. Fixes a compilation failure in Boost which
66726         does "using ::int8_t;".
66728 2008-11-18  Simon Josefsson  <simon@josefsson.org>
66730         * m4/manywarnings.m4: New file with gl_MANYWARN_COMPLEMENT and
66731         gl_MANYWARN_ALL_GCC.
66732         * m4/warnings.m4: Removed gl_WARN_SUPPORTED and
66733         gl_WARN_COMPLEMENT.  Suggested by Bruno Haible <bruno@clisp.org>.
66734         * modules/manywarnings: New file.
66735         * MODULES.html.sh: Mention manywarnings module.
66737 2008-11-18  Bruno Haible  <bruno@clisp.org>
66739         * doc/gnulib-tool.texi (Unit tests): New section.
66741 2008-11-18  Simon Josefsson  <simon@josefsson.org>
66743         * top/maint.mk (refresh-po): Fix sed regexp to avoid problems with
66744         paths like 'lib/po/foo.po'.
66746 2008-11-17  Simon Josefsson  <simon@josefsson.org>
66748         * m4/warnings.m4: Improve code.  Reported by Ralf Wildenhues
66749         <Ralf.Wildenhues@gmx.de> and Paolo Bonzini <bonzini@gnu.org>.
66751 2008-11-17  Simon Josefsson  <simon@josefsson.org>
66753         * m4/warnings.m4: Use CPPFLAGS to really check whether the
66754         parameter works.
66756 2008-11-17  Simon Josefsson  <simon@josefsson.org>
66758         * m4/warnings.m4: Add gl_WARN_COMPLEMENT and gl_WARN_SUPPORTED.
66760 2008-11-17  Bruce Korb  <bkorb@gnu.org>
66762         * modules/parse-duration-tests: New file.
66763         * tests/test-parse-duration.sh: New file.
66764         * tests/test-parse-duration.c: New file.
66766         New module 'parse-duration'.
66767         * lib/parse-duration.h: New file.
66768         * lib/parse-duration.c: New file.
66769         * modules/parse-duration: New file.
66771 2008-11-17  Bruno Haible  <bruno@clisp.org>
66773         * tests/test-select-out.sh: Comment out the first pipe test.
66774         Reported by Simon Josefsson.
66776 2008-11-17  Bruno Haible  <bruno@clisp.org>
66778         * modules/getaddrinfo (Depends-on): Add servent, hostent.
66779         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Use gl_SERVENT and
66780         gl_HOSTENT.
66782 2008-11-17  Bruno Haible  <bruno@clisp.org>
66784         * m4/sockets.m4 (gl_SOCKETS): After trying -lsocket, try also
66785         -lnetwork and -lnet. Needed for Haiku and BeOS.
66787 2008-11-16  Bruno Haible  <bruno@clisp.org>
66789         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Fix indentation.
66791 2008-11-16  Bruno Haible  <bruno@clisp.org>
66793         Avoid test failure on Haiku.
66794         * tests/test-fsync.c: Include <errno.h>.
66795         (main): Don't require that fsync (0) fails.
66797 2008-11-15  Bruno Haible  <bruno@clisp.org>
66799         New module 'hostent'.
66800         * modules/hostent: New file.
66801         * m4/hostent.m4: New file, based on code in m4/getaddrinfo.m4.
66803 2008-11-15  Bruno Haible  <bruno@clisp.org>
66805         New module 'servent'.
66806         * modules/servent: New file.
66807         * m4/servent.m4: New file, based on code in m4/getaddrinfo.m4.
66809 2008-11-15  Bruno Haible  <bruno@clisp.org>
66811         Avoid generating same test program with two different rules.
66812         * modules/frexp-nolibm-tests (Makefile.am): Rename test program from
66813         test-frexp to test-frexp-nolibm.
66814         * modules/frexpl-nolibm-tests (Makefile.am): Rename test program from
66815         test-frexpl to test-frexpl-nolibm.
66817 2008-11-15  Bruno Haible  <bruno@clisp.org>
66819         * modules/frexpl-tests (Makefile.am): Link test-frexpl with
66820         $(FREXPL_LIBM).
66822 2008-11-15  Bruno Haible  <bruno@clisp.org>
66824         * lib/netdb.in.h: Activate the definitions also when the system's
66825         <netdb.h> has 'struct addrinfo'.
66826         * m4/netdb_h.m4 (gl_HEADER_NETDB): Replace netdb.h also when it lacks
66827         EAI_OVERFLOW or AI_NUMERICSERV.
66828         * doc/posix-headers/netdb.texi: Document the problem.
66830 2008-11-15  Bruno Haible  <bruno@clisp.org>
66832         * tests/test-sched.c: Test also the existence of the SCHED_* macros.
66834         Make the 'sched' module work on platforms where <sched.h> exists but
66835         is incomplete (such as Haiku).
66836         * lib/sched.in.h; Include the system's <sched.h> if it exists.
66837         (SCHED_FIFO, SCHED_RR, SCHED_OTHER): New macros.
66838         * m4/sched_h.m4 (gl_SCHED_H): Test whether <sched.h> exists and also
66839         defines SCHED_FIFO, SCHED_RR, SCHED_OTHER. Set HAVE_SCHED_H,
66840         HAVE_STRUCT_SCHED_PARAM.
66841         * modules/sched (Depends-on): Add include_next.
66842         (Makefile.am): Substitute HAVE_SCHED_H, INCLUDE_NEXT,
66843         PRAGMA_SYSTEM_HEADER, NEXT_SCHED_H, HAVE_STRUCT_SCHED_PARAM.
66844         * doc/posix-headers/sched.texi: Document the issue.
66846 2008-11-13  Jim Meyering  <meyering@redhat.com>
66848         test-argp-2: avoid test failure when PACKAGE_BUGREPORT is defined
66849         * tests/test-argp-2.sh: When PACKAGE_BUGREPORT was defined, this
66850         test would fail due to the difference in the Report bugs to ...
66851         line.  The expected address is empty, "<>", while the actual
66852         would contain e.g., "<bug-tar@gnu.org>".  Filter out any address.
66854 2008-11-12  Bruno Haible  <bruno@clisp.org>
66856         lstat: don't compile lstat.c on systems lacking lstat
66857         * m4/lstat.m4 (gl_FUNC_LSTAT): Don't compile lstat.c on systems
66858         which don't have lstat; this is handled by lib/sys_stat.in.h already.
66859         Reported by Daniel P. Berrange via Jim Meyering.
66861 2008-11-12  Jim Meyering  <meyering@redhat.com>
66863         * lib/unicodeio.c (unicode_to_mb): Correct spelling of u8_uctomb.
66865 2008-11-12  Simon Josefsson  <simon@josefsson.org>
66867         * modules/warnings (configure.ac): Do AC_SUBST([WARN_CFLAGS]) here
66868         instead.
66870 2008-11-12  Bruno Haible  <bruno@clisp.org>
66872         * lib/unicodeio.c: Include unistr.h.
66873         (utf8_wctomb): Remove function.
66874         (unicode_to_mb): Use utf8_uctomb instead of utf8_wctomb.
66876 2008-11-12  Simon Josefsson  <simon@josefsson.org>
66878         * m4/warnings.m4 (gl_WARN_INIT): Remove, suggested by Ralf
66879         Wildenhues <Ralf.Wildenhues@gmx.de> and Bruno Haible
66880         <bruno@clisp.org>.
66881         * modules/warnings (configure.ac): Don't call gl_WARN_INIT.
66883 2008-11-12  Simon Josefsson  <simon@josefsson.org>
66885         * doc/warnings.texi: New file, from Bruno Haible <bruno@clisp.org>.
66886         * doc/gnulib.texi: Add section for warnings.
66888 2008-11-11  Bruno Haible  <bruno@clisp.org>
66890         * lib/sockets.h: Add a comment.
66892 2008-11-11  Karl Berry  <karl@gnu.org>
66894         * config/srclist.txt (fdl.texi): add, syncing from gnustandards.
66896 2008-11-11  Eric Blake  <ebb9@byu.net>
66898         fdl.texi: avoid git symlinks
66899         * doc/fdl.texi: Copy, rather than link, fdl-1.3.texi.
66901 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
66903         * m4/warnings.m4 (gl_WARN_ADD): Don't AC_SUBST the empty string.
66905 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
66907         * m4/warnings.m4 (gl_WARN_INIT): Substitute WARN_CFLAGS.
66908         (gl_WARN_ADD): Substitute $2 if literal.
66910 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
66912         * m4/warning.m4: Remove.
66914 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
66916         * m4/warnings.m4: Almost complete rewrite. :-)
66918 2008-11-10  Simon Josefsson  <simon@josefsson.org>
66920         * modules/warnings: New module.
66921         * m4/warnings.m4: New file.
66922         * MODULES.html.sh: Mention warnings module.
66923         With review improvements from Paolo Bonzini <bonzini@gnu.org> and
66924         Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
66926 2008-11-10  Eric Blake  <ebb9@byu.net>
66928         fdl.texi: make a symlink to the latest version
66929         * doc/standards.texi: Revert today's earlier change.
66930         * doc/fdl-1.2.texi: Rename from old fdl.texi...
66931         * doc/fdl.texi: ...and replace this with a symlink to the newer
66932         fdl-1.3.texi.
66934 2008-11-10  Bruno Haible  <bruno@clisp.org>
66936         * tests/test-select-fd.c (main): Accept the result file name as fourth
66937         argument.
66938         * tests/test-select-in.sh: Pass t-select-in.tmp as fourth argument.
66939         * tests/test-select-out.sh: Pass t-select-out.tmp as fourth argument.
66941 2008-11-10  Bruno Haible  <bruno@clisp.org>
66943         * lib/netdb.in.h: Use HAVE_STRUCT_ADDRINFO, HAVE_DECL_GETADDRINFO,
66944         HAVE_DECL_FREEADDRINFO, HAVE_DECL_GAI_STRERROR, HAVE_DECL_GETNAMEINFO
66945         as autoconf-substituted macros.
66946         * m4/netdb_h.m4 (gl_NETDB_H_DEFAULTS): Initialize these variables to 1.
66947         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Require
66948         gl_NETDB_H_DEFAULTS. Set these variables.
66949         * modules/netdb (Makefile.am): Substitute these variables.
66951 2008-11-10  Eric Blake  <ebb9@byu.net>
66953         standards.texi: include correct file for FDL 1.3
66954         * doc/standards.texi (GNU Free Documentation License): Change
66955         include file to pull in FDL 1.3, not 1.2.
66957         fdl.texi: revert accidental change to license
66958         * doc/fdl.texi: This is FDL 1.2, not 1.3.
66960 2008-11-10  Bruno Haible  <bruno@clisp.org>
66962         * m4/printf.m4 (gl_PRINTF_ENOMEM): Guess yes on Haiku. Use the
66963         cross-compiling guesses also when the native compile gives no result.
66965 2008-11-10  Bruno Haible  <bruno@clisp.org>
66967         * lib/spawni.c (__spawni): Force variable into the stack.
66969 2008-11-10  Bruno Haible  <bruno@clisp.org>
66971         Add support for Haiku.
66972         * lib/fbufmode.c (fbufmode): Test a symbol that is not only defined on
66973         glibc and BeOS, but also on Haiku.
66974         * lib/fpurge.c (fpurge): Likewise.
66975         * lib/freadable.c (freadable): Likewise.
66976         * lib/freadahead.c (freadahead): Likewise.
66977         * lib/freading.c (freading): Likewise.
66978         * lib/freadptr.c (freadptr): Likewise.
66979         * lib/freadseek.c (freadptrinc): Likewise.
66980         * lib/fseeko.c (rpl_fseeko): Likewise.
66981         * lib/fseterr.c (fseterr): Likewise.
66982         * lib/fwritable.c (fwritable): Likewise.
66983         * lib/fwriting.c (fwriting): Likewise.
66984         Reported by Ingo Weinhold <ingo_weinhold@gmx.de>.
66986 2008-11-10  Ingo Weinhold  <ingo_weinhold@gmx.de>
66988         * lib/config.charset: Treat Haiku like BeOS.
66990 2008-11-10  Ingo Weinhold  <ingo_weinhold@gmx.de>
66992         * lib/binary-io.h (O_BINARY, O_TEXT): Treat Haiku like BeOS.
66993         * lib/fcntl.in.h (O_BINARY, O_TEXT): Likewise.
66995 2008-11-08  Bruno Haible  <bruno@clisp.org>
66997         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Avoid using AC_CHECK_DECL inside
66998         AC_CACHE_CHECK.
67000 2008-11-08  Bruno Haible  <bruno@clisp.org>
67002         * modules/select-tests (configure.ac): Check for unistd.h, sys/wait.h.
67004 2008-11-08  Bruno Haible  <bruno@clisp.org>
67006         * tests/test-select-fd.c: New file.
67007         * tests/test-select-in.sh: New file.
67008         * tests/test-select-out.sh: New file.
67009         * tests/test-select-stdin.c: New file.
67010         * modules/select-tests (Files): Add the new files.
67011         (Depends-on): Add gettimeofday.
67012         (Makefile.am): Add test-select-in.sh, test-select-out.sh to TESTS.
67013         Set TESTS_ENVIRONMENT. Add test-select-fd, test-select-stdin to
67014         check_PROGRAMS. Define test_select_fd_LDADD, test_select_stdin_LDADD.
67016 2008-11-06  Alexander V. Lukyanov  <lav@netis.ru>
67017             Bruno Haible  <bruno@clisp.org>
67019         * lib/sys_stat.in.h: Enclose function definitions in extern "C".
67021 2008-10-12  Giuseppe Scrivano  <gscrivano@gnu.org>
67023         * build-aux/pmccabe2html: Added support for C++ source files.
67025 2008-11-05  Ben Pfaff  <blp@gnu.org>
67027         Fix lib/close.c build on Windows.
67028         * modules/close (Files): Add lib/w32sock.h.
67030 2008-11-05  Joel E. Denny  <jdenny@ces.clemson.edu>
67032         Accept Bison's NEWS format.
67033         * build-aux/announce-gen (print_news_deltas): Tweak
67034         $re_prefix.
67036 2008-11-04  Bruno Haible  <bruno@clisp.org>
67038         * modules/random_r (Maintainer): Add glibc.
67040 2008-11-04  Simon Josefsson  <simon@josefsson.org>
67042         * doc/alloca-opt.texi: Change license to GFDLv1.3+, as suggested
67043         by karl@freefriends.org (Karl Berry).
67044         * doc/alloca.texi: Likewise.
67045         * doc/c-ctype.texi: Likewise.
67046         * doc/c-strcase.texi: Likewise.
67047         * doc/c-strcaseeq.texi: Likewise.
67048         * doc/c-strcasestr.texi: Likewise.
67049         * doc/c-strstr.texi: Likewise.
67050         * doc/c-strtod.texi: Likewise.
67051         * doc/c-strtold.texi: Likewise.
67052         * doc/ctime.texi: Likewise.
67053         * doc/error.texi: Likewise.
67054         * doc/fdl.texi: Likewise.
67055         * doc/gcd.texi: Likewise.
67056         * doc/getdate.texi: Likewise.
67057         * doc/gnulib-intro.texi: Likewise.
67058         * doc/gnulib-tool.texi: Likewise.
67059         * doc/gnulib.texi: Likewise.
67060         * doc/inet_ntoa.texi: Likewise.
67061         * doc/maintain.texi: Likewise.
67062         * doc/make-stds.texi: Likewise.
67063         * doc/quote.texi: Likewise.
67064         * doc/regexprops-generic.texi: Likewise.
67065         * doc/standards.texi: Likewise.
67066         * doc/verify.texi: Likewise.
67067         * doc/visibility.texi: Likewise.
67068         * doc/gnulib.texi (GNU Free Documentation License): Include
67069         fdl-1.3.texi instead of fdl.texi.
67071 2008-11-04  Simon Josefsson  <simon@josefsson.org>
67073         * doc/fdl-1.3.texi: New file, from
67074         <http://www.gnu.org/licenses/fdl-1.3.texi>.
67075         * modules/fdl-1.3: Add.
67076         * MODULES.html.sh: Add fdl-1.3.
67078 2008-11-03  Bruno Haible  <bruno@clisp.org>
67080         Make determination of absolute name of header file work with AIX xlc.
67081         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Require
67082         AC_CANONICAL_HOST. On AIX, use "$CPP -C" rather than "$CPP" for
67083         preprocessing.
67084         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
67085         Reported by Gary V. Vaughan <gary@thewrittenword.com>.
67087 2008-11-03  Simon Josefsson  <simon@josefsson.org>
67089         * top/maint.mk (COVERAGE_CCOPTS): Use --coverage instead of
67090         -fprofile-arcs -ftest-coverage.  Suggested by Ludovic Courtès
67091         <ludo@gnu.org>.
67093 2008-11-02  Bruno Haible  <bruno@clisp.org>
67095         Mark 'strpbrk' obsolete.
67096         * modules/strpbrk (Status, Notice): New sections.
67097         * modules/strtok_r (Depends-on): Add strpbrk.
67099 2008-11-02  Bruno Haible  <bruno@clisp.org>
67101         Mark 'strdup' obsolete.
67102         * modules/strdup (Status, Notice): New sections.
67103         * modules/findprog (Depends-on): Add strdup.
67104         * modules/getaddrinfo (Depends-on): Likewise.
67105         * modules/localename (Depends-on): Likewise.
67106         * modules/relocatable-lib (Depends-on): Likewise.
67107         * modules/relocatable-lib-lgpl (Depends-on): Likewise.
67108         * modules/relocatable-prog (Depends-on): Likewise.
67109         * modules/trim (Depends-on): Likewise.
67110         * modules/unictype/gen-ctype (Depends-on): Likewise.
67111         * modules/unilbrk/gen-lbrk (Depends-on): Likewise.
67113 2008-11-02  Bruno Haible  <bruno@clisp.org>
67115         Mark 'strcspn' obsolete.
67116         * modules/strcspn (Status, Notice): New sections.
67118 2008-11-02  Bruno Haible  <bruno@clisp.org>
67120         Mark 'rmdir' obsolete.
67121         * modules/rmdir (Status, Notice): New sections.
67122         * modules/clean-temp (Depends-on): Add rmdir.
67123         * modules/openat (Depends-on): Likewise.
67125 2008-11-02  Bruno Haible  <bruno@clisp.org>
67127         Mark 'raise' obsolete.
67128         * modules/raise (Status, Notice): New sections.
67129         (Include): Specify <signal.h>.
67130         * modules/stdio (Depends-on): Add raise.
67131         * modules/write (Depends-on): Likewise.
67133 2008-11-02  Bruno Haible  <bruno@clisp.org>
67135         Mark 'memset' obsolete.
67136         * modules/memset (Status, Notice): New sections.
67138 2008-11-02  Bruno Haible  <bruno@clisp.org>
67140         Mark 'memmove' obsolete.
67141         * modules/memmove (Status, Notice): New sections.
67142         * modules/argp (Depends-on): Add memmove.
67143         * modules/argz (Depends-on): Likewise.
67144         * modules/canonicalize (Depends-on): Likewise.
67145         * modules/canonicalize-lgpl (Depends-on): Likewise.
67146         * modules/fts (Depends-on): Likewise.
67147         * modules/getcwd (Depends-on): Likewise.
67148         * modules/human (Depends-on): Likewise.
67149         * modules/regex (Depends-on): Likewise.
67150         * modules/striconveh (Depends-on): Likewise.
67151         * modules/trim (Depends-on): Likewise.
67152         * modules/unistr/u8-move (Depends-on): Likewise.
67153         * modules/unistr/u16-move (Depends-on): Likewise.
67154         * modules/unistr/u32-move (Depends-on): Likewise.
67156 2008-11-02  Bruno Haible  <bruno@clisp.org>
67158         Mark 'memcpy' obsolete.
67159         * modules/memcpy (Status, Notice): New sections.
67161 2008-11-02  Bruno Haible  <bruno@clisp.org>
67163         Mark 'memcmp' obsolete.
67164         * modules/memcmp (Status, Notice): New sections.
67165         * modules/argmatch (Depends-on): Add memchr.
67166         * modules/backupfile (Depends-on): Likewise.
67167         * modules/c-strcasestr (Depends-on): Likewise.
67168         * modules/crypto/des (Depends-on): Likewise.
67169         * modules/csharpcomp (Depends-on): Likewise.
67170         * modules/fnmatch (Depends-on): Likewise.
67171         * modules/git-merge-changelog (Depends-on): Likewise.
67172         * modules/isnand (Depends-on): Likewise.
67173         * modules/isnand-nolibm (Depends-on): Likewise.
67174         * modules/isnanf (Depends-on): Likewise.
67175         * modules/isnanf-nolibm (Depends-on): Likewise.
67176         * modules/isnanl (Depends-on): Likewise.
67177         * modules/isnanl-nolibm (Depends-on): Likewise.
67178         * modules/mbchar (Depends-on): Likewise.
67179         * modules/memcoll (Depends-on): Likewise.
67180         * modules/quotearg (Depends-on): Likewise.
67181         * modules/regex (Depends-on): Likewise.
67182         * modules/relocatable-prog (Depends-on): Likewise.
67183         * modules/same (Depends-on): Likewise.
67184         * modules/signbit (Depends-on): Likewise.
67185         * modules/strcasestr-simple (Depends-on): Likewise.
67186         * modules/unictype/gen-ctype (Depends-on): Likewise.
67187         * modules/unilbrk/gen-lbrk (Depends-on): Likewise.
67188         * modules/uniname/uniname (Depends-on): Likewise.
67189         * modules/unistr/u8-cmp (Depends-on): Likewise.
67191 2008-11-02  Bruno Haible  <bruno@clisp.org>
67193         Mark 'memchr' obsolete.
67194         * modules/memchr (Status, Notice): New sections.
67195         * modules/argp (Depends-on): Add memchr.
67196         * modules/base64 (Depends-on): Likewise.
67197         * modules/c-strcasestr (Depends-on): Likewise.
67198         * modules/chdir-long (Depends-on): Likewise.
67199         * modules/fnmatch (Depends-on): Likewise.
67200         * modules/getsubopt (Depends-on): Likewise.
67201         * modules/git-merge-changelog (Depends-on): Likewise.
67202         * modules/glob (Depends-on): Likewise.
67203         * modules/strcasestr-simple (Depends-on): Likewise.
67204         * modules/strnlen (Depends-on): Likewise.
67206 2008-11-02  Bruno Haible  <bruno@clisp.org>
67208         Mark 'atexit' obsolete.
67209         * modules/atexit (Status, Notice): New sections.
67210         * modules/chdir-long (Depends-on): Add atexit.
67211         * modules/wait-process (Depends-on): Likewise.
67213 2008-11-02  Bruno Haible  <bruno@clisp.org>
67215         * gnulib-tool: New option --with-obsolete.
67216         (func_usage): Document it.
67217         (func_modules_transitive_closure): Drop obsolete dependencies if
67218         incobsolete is not true.
67219         (func_import): Read and save the incobsolete variable to the cache.
67221 2008-11-02  Bruno Haible  <bruno@clisp.org>
67223         * modules/TEMPLATE-EXTENDED: New field 'Status'.
67224         * gnulib-tool: New option --extract-status.
67225         (func_usage): Document it.
67226         (sed_extract_prog): Recognize it.
67227         (func_get_status): New function.
67229 2008-10-30  Simon Josefsson  <simon@josefsson.org>
67231         * modules/sockets (License): Change from LGPL to LGPLv2+.
67233 2008-10-28  Simon Josefsson  <simon@josefsson.org>
67235         * top/maint.mk: Add coverage rules, inspired by scripts in gnupdf.
67237 2008-10-28  Simon Josefsson  <simon@josefsson.org>
67239         * MODULES.html.sh (Support for systems lacking POSIX:2001):
67240         Mention times and sys_times.
67241         * modules/sys_times, modules/sys_times-tests: New modules.
67242         * modules/times, modules/times-tests: Likewise
67243         * m4/sys_times_h.m4: New file.
67244         * lib/sys_times.in.h: Likewise
67245         * lib/times.c: Likewise.
67246         * tests/test-sys_times.c: Likewise.
67247         * tests/test-times.c: Likewise.
67248         * doc/posix-headers/sys_times.texi: Update.
67249         * doc/posix-functions/times.texi: Update.
67251 2008-10-28  Jim Meyering  <meyering@redhat.com>
67253         * modules/tempname (Depends-on): Add lstat.
67255         * modules/lstat (License): Relicense: LGPL -> LGPLv2+.
67257 2008-10-28  Simon Josefsson  <simon@josefsson.org>
67259         * gnulib-tool (func_emit_tests_Makefile_am): Revert last commit.
67260         * modules/argp-tests (test_argp_LDADD): Set EXEEXT here instead,
67261         using idiom used elsewhere in gnulib.
67263 2008-10-27  Jim Meyering  <meyering@redhat.com>
67265         * modules/gethostname (License): Relicense: LGPL -> LGPLv2+.
67267 2008-10-27  Simon Josefsson  <simon@josefsson.org>
67269         * gnulib-tool (func_emit_tests_Makefile_am): Set EXEEXT in
67270         TESTS_ENVIRONMENT, for shell scripts that needs to call built
67271         programs.
67272         * tests/test-argp-2.sh: Use $EXEEXT when needed.
67274 2008-10-27  Simon Josefsson  <simon@josefsson.org>
67276         * lib/sys_stat.in.h (lstat): Fix declaration for mingw.
67278 2008-10-27  Bruno Haible  <bruno@clisp.org>
67280         * tests/test-lstat.c: Include <stdio.h>.
67282 2008-10-27  Simon Josefsson  <simon@josefsson.org>
67284         * modules/lstat-tests: New module.
67285         * tests/test-lstat.c: New file.
67287 2008-10-26  Jim Meyering  <meyering@redhat.com>
67289         * lib/mkdir.c (rpl_mkdir) [_WIN32...]: Mark mode as an unused parameter.
67291 2008-10-26  Simon Josefsson  <simon@josefsson.org>
67292             Bruno Haible  <bruno@clisp.org>
67294         Fix a clash between the type DATADIR on Windows and the macro DATADIR.
67295         * modules/configmake (Include): Add a note that the include must come
67296         after all system headers.
67297         * lib/javaversion.c: Include configmake.h after all other includes.
67299 2008-10-26  Bruno Haible  <bruno@clisp.org>
67301         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Set default of
67302         HAVE_STRUCT_RANDOM_DATA to 1.
67303         (gl_STDLIB_H): Simplify.
67305 2008-10-26  Simon Josefsson  <simon@josefsson.org>
67307         * m4/stdlib_h.m4: Check for struct random_data.  Initialize and
67308         substitute HAVE_STRUCT_RANDOM_DATA.
67309         * lib/stdlib.in.h [!HAVE_STRUCT_RANDOM_DATA]: Provide struct
67310         random_data.
67311         * modules/stdlib (Makefile.am): Substitute
67312         HAVE_STRUCT_RANDOM_DATA.
67314 2008-10-26  Simon Josefsson  <simon@josefsson.org>
67316         * doc/gnulib.texi (@copying): Use GFDLv1.2+.
67317         * doc/gnulib-intro.texi (Copyright): Likewise.
67319 2008-10-26  Simon Josefsson  <simon@josefsson.org>
67321         * doc/gnulib.texi (Header files): C++ fixes, based on Bruno's
67322         findings.
67324 2008-10-25  Ben Pfaff  <blp@cs.stanford.edu>
67325             Bruno Haible  <bruno@clisp.org>
67327         * lib/unistd.in.h: Include <winsock2.h>.
67328         (socket, connect,accept, bind, getpeername, getsockname, getsockopt,
67329         listen, recv, send, recvfrom, sendto, setsockopt, shutdown, select):
67330         Provide dummy declarations.
67331         (gethostname): Override.
67332         * lib/sys_socket.in.h (gethostname): Provide dummy declaration.
67333         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Invoke
67334         gl_PREREQ_SYS_H_WINSOCK2.
67335         * modules/gethostname (Files): Add m4/sys_socket_h.m4.
67336         * doc/posix-functions/gethostname.texi: More details.
67338 2008-10-25  Bruno Haible  <bruno@clisp.org>
67340         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Require
67341         gl_UNISTD_H_DEFAULTS, gl_SYS_IOCTL_H_DEFAULTS only if they exist.
67342         * modules/sys_socket (Files): Remove m4/unistd_h.m4, m4/sys_ioctl_h.m4.
67344         * lib/sys_socket.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET); Move macro from
67345         here ...
67346         * lib/unistd.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET); ... to here.
67347         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Remove invocation of
67348         gl_UNISTD_H_DEFAULTS.
67350 2008-10-25  Eric Blake  <ebb9@byu.net>
67352         signbit: avoid spurious compiler failure
67353         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Move non-constant
67354         declarations inside function.
67356 2008-10-24  Simon Josefsson  <simon@josefsson.org>
67357             Bruno Haible  <bruno@clisp.org>
67359         * lib/stdlib.in.h (@GNULIB_RANDOM_R@): Include stdint.h.
67360         * modules/random_r (Depends-on): Add stdint.
67362 2008-10-24  Bruno Haible  <bruno@clisp.org>
67364         * modules/intprops (License): Change to LGPLv2+, with approval by Paul
67365         Eggert.
67366         * modules/strerror (License): Likewise.
67368 2008-10-24  Jim Meyering  <meyering@redhat.com>
67370         sys_socket: fix typo that inhibited expansion of @GNULIB_SEND@
67371         * modules/sys_socket (Depends-on) [Depends-on]: Fix typo.
67373 2008-10-24  Eric Blake  <ebb9@byu.net>
67375         getgroups: fix compilation when getgroups is available
67376         * lib/getgroups.c (includes): Include <unistd.h> for getgroups,
67377         but with <config.h> override of getgroups disabled.
67379 2008-10-24  Simon Josefsson  <simon@josefsson.org>
67381         * doc/gnulib.texi (Header files): Add note about C++ problems.
67382         Explained by Bruno Haible <bruno@clisp.org>.
67384 2008-10-23  Bruno Haible  <bruno@clisp.org>
67386         Define a dummy SA_NODEFER macro on Interix.
67387         * lib/signal.in.h (SA_NODEFER): Define fallback.
67388         Reported by Aleksey Cheusov <cheusov@tut.by> via
67389         Thomas Klausner <wiz@netbsd.org> and Eric Blake.
67391 2008-10-23  Bruno Haible  <bruno@clisp.org>
67393         * modules/freadahead (License): Change to LGPLv2+.
67394         Suggested by Simon Josefsson.
67396 2008-10-23  Jim Meyering  <meyering@redhat.com>
67398         random_r: new module
67399         * modules/random_r: New file.
67400         * m4/random_r.m4: New file.
67401         * lib/random_r.c: New file, from glibc.
67402         * modules/random_r-tests: New file.
67403         * tests/test-random_r.c: New file.
67404         * lib/stdlib.in.h (srandom_r, initstate_r, setstate_r, random_r):
67405          Declare.
67406         (RAND_MAX): Define.
67407         * m4/stdlib_h.m4: Define and AC_SUBST GNULIB_RANDOM_R and HAVE_RANDOM_R.
67408         * modules/stdlib: Substitute them, too.
67409         * MODULES.html.sh (Extra functions based on POSIX:2001) [Misc]: Add it.
67410         * doc/glibc-functions/initstate_r.texi: Mention the new module.
67411         * doc/glibc-functions/random_r.texi: Likewise.
67412         * doc/glibc-functions/setstate_r.texi: Likewise.
67413         * doc/glibc-functions/srandom_r.texi: Likewise.
67414         * config/srclist.txt: Mention it.
67416 2008-10-23  David Lutterkort  <lutter@redhat.com>
67418         * modules/selinux-h: Search for LIB_SELINUX and mark it as a
67419         link requirement
67421 2008-10-23  Jim Meyering  <meyering@redhat.com>
67423         selinux-h: mark parameters of stub functions as intentionally unused
67424         * lib/se-selinux.in.h: Mark parameters as _UNUSED_PARAMETER_.
67425         * lib/se-context.in.h: Likewise.
67427 2008-10-22  Simon Josefsson  <simon@josefsson.org>
67429         * lib/sys_socket.in.h (FD_ISSET): Fix warnings under mingw.
67431 2008-10-22  Simon Josefsson  <simon@josefsson.org>
67433         * m4/getgroups.m4: Avoid invoking test with wrong parameters.
67435 2008-10-22  Eric Blake  <ebb9@byu.net>
67437         glthread/thread: avoid compiler warning
67438         * lib/glthread/thread.c (gl_thread_exit_func) [USE_WIN32_THREADS]:
67439         Add unreachable abort to silence compiler.
67441 2008-10-22  Eric Blake  <ebb9@byu.net>
67443         netdb: also supply struct addrinfo for cygwin 1.5.x
67444         * m4/netdb_h.m4 (gl_HEADER_NETDB): Check for incomplete header on
67445         older cygwin.
67446         * lib/netdb.in.h [!HAVE_STRUCT_ADDRINFO]: Also supply contents for
67447         cygwin.
67448         * doc/posix-headers/netdb.texi (netdb.h): Document this.
67450 2008-10-22  Bruno Haible  <bruno@clisp.org>
67452         * users.txt: Update entry about pspp.
67454 2008-10-21  Bruno Haible  <bruno@clisp.org>
67456         Simplification.
67457         * lib/sys_socket.in.h (_gl_close_fd_maybe_socket): Remove declaration.
67458         * lib/close.c (_gl_close_fd_maybe_socket): Make static.
67460         Simplification.
67461         * lib/ioctl.c (ioctl): Don't undefine.
67462         * lib/socket.c (socket): Don't undefine.
67464         Remove unused module indicator macros.
67465         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Don't define
67466         GNULIB_$1 as a C macro.
67468         * doc/posix-functions/close.texi: Undo last change.
67469         * doc/posix-functions/ioctl.texi: Merge the two paragraphs about
67470         Windows platforms.
67472 2008-10-21  Bruno Haible  <bruno@clisp.org>
67474         Add gethostname() declaration to <unistd.h>.
67475         * lib/unistd.in.h (gethostname): New declaration.
67476         * lib/gethostname.c: Include <unistd.h>.
67477         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Require
67478         gl_UNISTD_H_DEFAULTS. Set HAVE_GETHOSTNAME.
67479         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETHOSTNAME
67480         and HAVE_GETHOSTNAME.
67481         * modules/gethostname (Depends-on): Add unistd.
67482         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
67483         (Include): Specify <unistd.h>.
67484         * modules/unistd (Makefile.am): Substitute GNULIB_GETHOSTNAME and
67485         HAVE_GETHOSTNAME.
67486         * tests/test-gethostname.c: Include <unistd.h> first.
67488 2008-10-21  Bruno Haible  <bruno@clisp.org>
67490         * modules/poll-tests (Depends-on): Add sys_ioctl, ioctl.
67491         * modules/select-tests (Depends-on): Likewise.
67492         Reported by Simon Josefsson.
67494 2008-10-21  Simon Josefsson  <simon@josefsson.org>
67496         * lib/close.c: Add _gl_close_fd_maybe_socket from winsock.c.
67497         * lib/accept.c: New file, based on winsock.c.
67498         * lib/bind.c: New file, based on winsock.c.
67499         * lib/connect.c: New file, based on winsock.c.
67500         * lib/getpeername.c: New file, based on winsock.c.
67501         * lib/getsockname.c: New file, based on winsock.c.
67502         * lib/getsockopt.c: New file, based on winsock.c.
67503         * lib/ioctl.c: New file, based on winsock.c.
67504         * lib/listen.c: New file, based on winsock.c.
67505         * lib/recv.c: New file, based on winsock.c.
67506         * lib/recvfrom.c: New file, based on winsock.c.
67507         * lib/send.c: New file, based on winsock.c.
67508         * lib/sendto.c: New file, based on winsock.c.
67509         * lib/setsockopt.c: New file, based on winsock.c.
67510         * lib/shutdown.c: New file, based on winsock.c.
67511         * lib/socket.c: New file, based on winsock.c.
67512         * lib/w32sock.h: New file, based on winsock.c.
67513         * lib/winsock.c: Remove file.
67514         * modules/accept: Likewise.
67515         * modules/bind: Likewise.
67516         * modules/connect: Likewise.
67517         * modules/getpeername: Likewise.
67518         * modules/getsockname: Likewise.
67519         * modules/getsockopt: Likewise.
67520         * modules/ioctl: Likewise.
67521         * modules/listen: Likewise.
67522         * modules/recv: Likewise.
67523         * modules/recvfrom: Likewise.
67524         * modules/send: Likewise.
67525         * modules/sendto: Likewise.
67526         * modules/setsockopt: Likewise.
67527         * modules/shutdown: Likewise.
67528         * modules/socket: Use socket.c instead of winsock.c.
67529         * modules/sys_socket: Remove (unneeded?) dependency on winsock.c.
67530         * doc/posix-functions/accept.texi: Doc fix.
67531         * doc/posix-functions/bind.texi: Doc fix.
67532         * doc/posix-functions/close.texi: Doc fix.
67533         * doc/posix-functions/connect.texi: Doc fix.
67534         * doc/posix-functions/getpeername.texi: Doc fix.
67535         * doc/posix-functions/getsockname.texi: Doc fix.
67536         * doc/posix-functions/getsockopt.texi: Doc fix.
67537         * doc/posix-functions/ioctl.texi: Doc fix.
67538         * doc/posix-functions/listen.texi: Doc fix.
67539         * doc/posix-functions/recv.texi: Doc fix.
67540         * doc/posix-functions/recvfrom.texi: Doc fix.
67541         * doc/posix-functions/send.texi: Doc fix.
67542         * doc/posix-functions/sendto.texi: Doc fix.
67543         * doc/posix-functions/setsockopt.texi: Doc fix.
67544         * doc/posix-functions/shutdown.texi: Doc fix.
67545         * doc/posix-functions/socket.texi: Doc fix.
67547 2008-10-20  Bruno Haible  <bruno@clisp.org>
67549         Take into account the role of SIGABRT_COMPAT on Windows 2008.
67550         * lib/sigprocmask.c (SIGABRT_COMPAT, SIGABRT_COMPAT_MASK): New macros.
67551         (sigismember, sigaddset, sigdelset, sigfillset, rpl_signal): Handle it
67552         as an alias for SIGABRT.
67553         * lib/sigaction.c (SIGABRT_COMPAT): New macro.
67554         (sigaction): Map it to SIGABRT.
67555         Reported by Ramiro Polla <ramiro.polla@gmail.com> via Eric Blake.
67557 2008-10-20  Bruno Haible  <bruno@clisp.org>
67559         * lib/fts.c: Don't include lstat.h.
67560         * lib/openat.c: Include <sys/stat.h> instead of lstat.h.
67562         Move the lstat() declaration to <sys/stat.h>.
67563         * lib/lstat.h: Remove file.
67564         * lib/sys_stat.in.h: Add special invocation convention.
67565         (lstat): New declaration.
67566         * lib/lstat.c (orig_lstat): New function.
67567         (rpl_lstat): Use orig_lstat instead of lstat.
67568         * m4/lstat.m4 (gl_FUNC_LSTAT): Require gl_SYS_STAT_H_DEFAULTS and
67569         AC_C_INLINE. Set REPLACE_LSTAT.
67570         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize GNULIB_LSTAT
67571         and REPLACE_LSTAT.
67572         * modules/lstat (Files): Remove lib/lstat.h.
67573         (configure.ac): Invoke gl_SYS_STAT_MODULE_INDICATOR.
67574         (Include): Specify <sys/stat.h> instead of lstat.h.
67575         * modules/sys_stat (Makefile.am): Substitute GNULIB_LSTAT and
67576         REPLACE_LSTAT.
67577         * NEWS: Mention the change.
67579 2008-10-20  Bruno Haible  <bruno@clisp.org>
67581         * modules/posix_spawn-tests: New file.
67582         * tests/test-posix_spawn3.c: New file.
67584 2008-10-20  Bruno Haible  <bruno@clisp.org>
67586         * modules/posix_spawnp-tests (Depends-on): Add sys_wait.
67587         * tests/test-posix_spawn1.c (WTERMSIG, WCOREDUMP, WEXITSTATUS,
67588         WIFSIGNALED, WIFEXITED, WIFSTOPPED): Remove fallback definitions.
67589         * tests/test-posix_spawn2.c (WTERMSIG, WCOREDUMP, WEXITSTATUS,
67590         WIFSIGNALED, WIFEXITED, WIFSTOPPED): Likewise.
67592 2008-10-20  Bruno Haible  <bruno@clisp.org>
67594         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Test against another bug
67595         of posix_spawn on AIX 5.3.
67597 2008-10-20  Bruno Haible  <bruno@clisp.org>
67599         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Make the check on MacOS X.
67601 2008-10-20  Bruno Haible  <bruno@clisp.org>
67603         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Use AC_LANG_SOURCE instead
67604         of AC_LANG_PROGRAM.
67606 2008-10-20  Simon Josefsson  <simon@josefsson.org>
67608         * lib/netdb.in.h: Don't define GNU specific constants until they
67609         are supported or needed.  Reported by Bruno Haible
67610         <bruno@clisp.org>.
67612 2008-10-20  Simon Josefsson  <simon@josefsson.org>
67614         * lib/canon-host.c: Include netdb.h instead of getaddrinfo.h.
67616 2008-10-20  Simon Josefsson  <simon@josefsson.org>
67618         * lib/getaddrinfo.h: Remove file.
67619         * modules/getaddrinfo: Reflect move from getaddrinfo.h to netdb.h.
67620         * m4/getaddrinfo.m4: Call gl_HEADER_NETDB.  Don't check for netdb.h.
67621         * lib/netdb.in.h: Add declarations from getaddrinfo.h.
67622         * m4/netdb_h.m4: Initialize GNULIB_GETADDRINFO to 0.
67623         * modules/netdb: Substitute GNULIB_GETADDRINFO.
67624         * lib/getaddrinfo.c: Include netdb.h instead of getaddrinfo.h.
67625         * tests/test-getaddrinfo.c: Likewise.
67626         * lib/gai_strerror.c: Likewise.  Also drop HAVE_NETDB_H check.
67627         * NEWS: Mention change.
67629 2008-10-19  Bruno Haible  <bruno@clisp.org>
67631         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Remove unneeded code.
67633 2008-10-19  Bruno Haible  <bruno@clisp.org>
67635         * lib/wait-process.c: Include simply <sys/wait.h>.
67636         (waitpid, WTERMSIG, WCOREDUMP, WEXITSTATUS, WIFSIGNALED, WIFEXITED,
67637         WIFSTOPPED): Remove fallback definitions.
67638         * modules/wait-process (Depends-on): Add sys_wait.
67640         New module 'sys_wait'.
67641         * modules/sys_wait: New file.
67642         * lib/sys_wait.in.h: New file, partially copied from
67643         lib/wait-process.c.
67644         * m4/sys_wait_h.m4: New file.
67645         * doc/posix-headers/sys_wait.texi: Mention the new module.
67647 2008-10-19  Bruno Haible  <bruno@clisp.org>
67649         * m4/wait-process.m4 (gl_WAIT_PROCESS): Remove test for unistd.h.
67651 2008-10-19  Bruno Haible  <bruno@clisp.org>
67653         Assume that waitpid() fills an 'int' status, not a 'union wait'.
67654         * lib/wait-process.c (WAIT_T): Remove type.
67655         (WTERMSIG, WCOREDUMP, WEXITSTATUS): Define fallbacks using bit masks.
67656         (wait_subprocess): Update.
67658 2008-10-19  Bruno Haible  <bruno@clisp.org>
67660         New module 'atoll'.
67661         * modules/atoll: New file.
67662         * lib/stdlib.in.h (atoll): New declaration.
67663         * lib/atoll.c: New file, from glibc with modifications.
67664         * m4/atoll.m4: New file.
67665         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_ATOLL,
67666         HAVE_ATOLL.
67667         * modules/stdlib (Makefile.am): Substitute GNULIB_ATOLL, HAVE_ATOLL.
67668         * doc/posix-functions/atoll.texi: Mention the new module.
67670 2008-10-19  Bruno Haible  <bruno@clisp.org>
67672         Add strtoull() declaration to <stdlib.h>.
67673         * lib/stdlib.in.h (strtoull): New declaration.
67674         * m4/strtoull.m4 (gl_FUNC_STRTOLL): Require gl_STDLIB_H_DEFAULTS.
67675         Set HAVE_STRTOULL.
67676         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_STRTOULL,
67677         HAVE_STRTOULL.
67678         * modules/strtoull (Depends-on): Add stdlib.
67679         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
67680         * modules/stdlib (Makefile.am): Substitute GNULIB_STRTOULL,
67681         HAVE_STRTOULL.
67683 2008-10-19  Bruno Haible  <bruno@clisp.org>
67685         Add strtoll() declaration to <stdlib.h>.
67686         * lib/stdlib.in.h (strtoll): New declaration.
67687         * m4/strtoll.m4 (gl_FUNC_STRTOLL): Require gl_STDLIB_H_DEFAULTS.
67688         Set HAVE_STRTOLL.
67689         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_STRTOLL,
67690         HAVE_STRTOLL.
67691         * modules/strtoll (Depends-on): Add stdlib.
67692         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
67693         * modules/stdlib (Makefile.am): Substitute GNULIB_STRTOLL, HAVE_STRTOLL.
67695 2008-10-19  Bruno Haible  <bruno@clisp.org>
67697         * modules/bcopy (Depends-on): Add strings.
67698         (Include): Specify <strings.h>.
67700 2008-10-19  Bruno Haible  <bruno@clisp.org>
67702         * doc/posix-functions/atexit.texi: Update doc regarding mingw.
67704 2008-10-19  Bruno Haible  <bruno@clisp.org>
67706         * lib/openat-die.c (openat_save_fail, openat_restore_fail): Rename
67707         the parameter from 'errno' to 'errnum'. Fixes a compilation error on
67708         mingw.
67710 2008-10-19  Bruno Haible  <bruno@clisp.org>
67712         * lib/atanl.c: Don't include isnanl.h.
67713         * lib/cosl.c: Likewise.
67714         * lib/ldexpl.c: Likewise.
67715         * lib/logl.c: Likewise.
67716         * lib/sinl.c: Likewise.
67717         * lib/sqrtl.c: Likewise.
67718         * lib/tanl.c: Likewise.
67720         Move the isnanf(), isnand(), isnanl() declarations to <math.h>.
67721         * lib/isnanf.h: Remove file.
67722         * lib/isnand.h: Remove file.
67723         * lib/isnanl.h: Remove file.
67724         * lib/math.in.h: Include the contents of lib/isnanf.h, lib/isnand.h,
67725         lib/isnanl.h. Use HAVE_ISNANF, HAVE_ISNAND, HAVE_ISNANL as substituted
67726         macros.
67727         * m4/isnanf.m4 (gl_FUNC_ISNANF): Require gl_MATH_H_DEFAULTS. Set
67728         HAVE_ISNANF, don't define it as a C macro.
67729         * m4/isnand.m4 (gl_FUNC_ISNAND): Require gl_MATH_H_DEFAULTS. Set
67730         HAVE_ISNAND, don't define it as a C macro.
67731         * m4/isnanl.m4 (gl_FUNC_ISNANL): Require gl_MATH_H_DEFAULTS. Set
67732         HAVE_ISNANL, don't define it as a C macro.
67733         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_ISNAN[FDL] and
67734         HAVE_ISNAN[FDL].
67735         * modules/isnanf (Files): Remove lib/isnanf.h.
67736         (Depends-on): Add math.
67737         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
67738         (Include): Specify <math.h> instead of isnanf.h.
67739         * modules/isnand (Files): Remove lib/isnand.h.
67740         (Depends-on): Add math.
67741         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
67742         (Include): Specify <math.h> instead of isnand.h.
67743         * modules/isnanl (Files): Remove lib/isnanl.h.
67744         (Depends-on): Add math.
67745         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
67746         (Include): Specify <math.h> instead of isnanl.h.
67747         * modules/math (Makefile.am): Substitute GNULIB_ISNAN[FDL] and
67748         HAVE_ISNAN[FDL].
67749         * tests/test-isnanf.c: Include <math.h> instead of isnanf.h.
67750         * tests/test-isnand.c: Include <math.h> instead of isnand.h.
67751         * tests/test-isnanl.c: Include <math.h> instead of isnanl.h.
67752         * NEWS: Mention the change.
67754 2008-10-18  Bruno Haible  <bruno@clisp.org>
67756         Add getusershell(), setusershell(), endusershell() declarations to
67757         <unistd.h>.
67758         * lib/unistd.in.h (getusershell, setusershell, endusershell): New
67759         declarations.
67760         * lib/getusershell.c: Include unistd.h.
67761         * m4/getusershell.m4 (gl_FUNC_GETUSERSHELL): Require
67762         gl_UNISTD_H_DEFAULTS and AC_USE_SYSTEM_EXTENSIONS. Set
67763         HAVE_GETUSERSHELL.
67764         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETUSERSHELL
67765         and HAVE_GETUSERSHELL.
67766         * modules/getusershell (Depends-on): Add unistd, extensions.
67767         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
67768         (Include): Specify <unistd.h>.
67769         * modules/unistd (Makefile.am): Substitute GNULIB_GETUSERSHELL and
67770         HAVE_GETUSERSHELL.
67772 2008-10-18  Bruno Haible  <bruno@clisp.org>
67774         Add a getloadavg() declaration to <stdlib.h>.
67775         * lib/stdlib.in.h; Include <sys/loadavg.h> when needed for the
67776         getloadavg declaration.
67777         (getloadavg): New declaration.
67778         * lib/getloadavg.c: Include <stdlib.h> first.
67779         * m4/getloadavg.m4 (gl_GETLOADAVG): Require gl_STDLIB_H_DEFAULTS and
67780         AC_USE_SYSTEM_EXTENSIONS. Test whether sys/loadavg.h exists. Set
67781         HAVE_SYS_LOADAVG_H and HAVE_DECL_GETLOADAVG.
67782         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_GETLOADAVG,
67783         HAVE_SYS_LOADAVG_H, HAVE_DECL_GETLOADAVG.
67784         * modules/getloadavg (Depends-on): Add stdlib, extensions.
67785         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
67786         (Include): Specify <stdlib.h>.
67787         * modules/stdlib (Makefile.am): Substitute GNULIB_GETLOADAVG,
67788         HAVE_SYS_LOADAVG_H, HAVE_DECL_GETLOADAVG.
67790 2008-10-18  Bruno Haible  <bruno@clisp.org>
67792         * lib/dirchownmod.c: Don't include lchmod.h.
67794         Move the lchmod() declaration to <sys/stat.h>.
67795         * lib/lchmod.h: Remove file.
67796         * lib/sys_stat.in.h: Add placeholder for GL_LINK_WARNING.
67797         (lchmod): New declaration, moved here from lib/lchown.h.
67798         * m4/lchmod.m4 (gl_FUNC_LCHMOD): Require gl_SYS_STAT_H_DEFAULTS and
67799         AC_USE_SYSTEM_EXTENSIONS. Set HAVE_LCHMOD.
67800         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize GNULIB_LCHMOD
67801         and HAVE_LCHMOD.
67802         * modules/lchmod (Files): Remove lib/lchmod.h.
67803         (Depends-on): Add sys_stat, extensions.
67804         (configure.ac): Invoke gl_SYS_STAT_MODULE_INDICATOR.
67805         (Include): Specify <sys/stat.h> instead of lchmod.h.
67806         * modules/sys_stat (Depends-on): Add link-warning.
67807         (Makefile.am): Substitute GNULIB_LCHMOD, HAVE_LCHMOD, and the
67808         definition of GL_LINK_WARNING.
67809         * NEWS: Mention the change.
67811 2008-10-18  Bruno Haible  <bruno@clisp.org>
67813         * lib/fchdir.c: Don't include dirfd.h.
67814         * lib/fts.c: Likewise.
67815         * lib/getcwd.c: Likewise.
67816         * lib/glob.c: Likewise.
67818         Move the dirfd() declaration to <dirent.h>.
67819         * lib/dirfd.h: Remove file.
67820         * lib/dirent.in.h: Add placeholder for GL_LINK_WARNING.
67821         (dirfd): New declaration.
67822         * lib/dirfd.c: Include <dirent.h> instead of dirfd.h.
67823         * m4/dirfd.m4 (gl_FUNC_DIRFD): Require gl_DIRENT_H_DEFAULTS and
67824         AC_USE_SYSTEM_EXTENSIONS. Invoke gl_REPLACE_DIRENT_H. Set
67825         HAVE_DECL_DIRFD.
67826         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_DIRFD and
67827         HAVE_DECL_DIRFD.
67828         * modules/dirfd (Files): Remove lib/dirfd.h.
67829         (Depends-on): Add dirent, extensions.
67830         (configure.ac): Invoke gl_DIRENT_MODULE_INDICATOR.
67831         (Include): Specify <dirent.h> instead of dirfd.h.
67832         * modules/dirent (Depends-on): Add link-warning.
67833         (Makefile.am): Substitute GNULIB_DIRFD, HAVE_DECL_DIRFD, and
67834         definition of GL_LINK_WARNING.
67835         * NEWS: Mention the change.
67837 2008-10-18  Bruno Haible  <bruno@clisp.org>
67839         Move the euidaccess() declaration to <unistd.h>.
67840         * lib/euidaccess.h: Remove file.
67841         * lib/unistd.in.h (euidaccess): New declaration.
67842         * lib/euidaccess.c: Don't include euidaccess.h.
67843         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Require gl_UNISTD_H_DEFAULTS.
67844         Don't check whether euidaccess is declared. Set HAVE_EUIDACCESS.
67845         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_EUIDACCESS
67846         and HAVE_EUIDACCESS.
67847         * modules/euidaccess (Files): Remove lib/euidaccess.h.
67848         (Depends-on): Add unistd.
67849         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
67850         (Include): Specify <unistd.h> instead of euidaccess.h.
67851         * modules/unistd (Makefile.am): Substitute GNULIB_EUIDACCESS and
67852         HAVE_EUIDACCESS.
67853         * NEWS: Mention the change.
67855 2008-10-18  Bruno Haible  <bruno@clisp.org>
67857         * lib/xgetdomainname.c: Include <unistd.h> instead of getdomainname.h.
67859         Move the getdomainname() declaration to <unistd.h>.
67860         * lib/getdomainname.h: Remove file.
67861         * lib/unistd.in.h (getdomainname): New declaration.
67862         * lib/getdomainname.c: Include <unistd.h> instead of getdomainname.h.
67863         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Require
67864         gl_UNISTD_H_DEFAULTS and AC_USE_SYSTEM_EXTENSIONS. Set
67865         HAVE_GETDOMAINNAME.
67866         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
67867         GNULIB_GETDOMAINNAME and HAVE_GETDOMAINNAME.
67868         * modules/getdomainname (Files): Remove lib/getdomainname.h.
67869         (Depends-on): Add unistd, extensions.
67870         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
67871         (Includes): Specify <unistd.h> instead of getdomainname.h.
67872         * modules/unistd (Makefile.am): Substitute GNULIB_GETDOMAINNAME and
67873         HAVE_GETDOMAINNAME.
67874         * NEWS: Mention the change.
67876 2008-10-18  Bruno Haible  <bruno@clisp.org>
67878         * modules/dirent: New file.
67879         * m4/dirent_h.m4: New file.
67880         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_DIRENT_H_DEFAULTS.
67881         Invoke gl_REPLACE_DIRENT_H. Don't assign DIRENT_H directly.
67882         * modules/fchdir (Files): Remove lib/dirent.in.h.
67883         (Depends-on): Add dirent.
67884         (Makefile.am): Move rules to modules/dirent.
67885         * doc/posix-headers/dirent.texi: Mention the new module.
67887 2008-10-18  Bruno Haible  <bruno@clisp.org>
67889         Avoid -Wunused-parameter warnings in public gnulib header files.
67890         * m4/gnulib-common.m4 (gl_COMMON_BODY): Define _UNUSED_PARAMETER_ as a
67891         macro.
67892         * lib/unistr.h (u32_mbtouc_unsafe, u32_mbtouc): Use it.
67894 2008-10-18  Bruno Haible  <bruno@clisp.org>
67896         * doc/glibc-functions/dirfd.texi: Mention the module 'dirfd'.
67897         * doc/glibc-functions/error.texi: Mention the module 'error'.
67898         * doc/glibc-functions/euidaccess.texi: Mention the module 'euidaccess'.
67899         * doc/glibc-functions/getdomainname.texi: Mention the module
67900         'getdomainname'.
67901         * doc/glibc-functions/getloadavg.texi: Mention the module 'getloadavg'.
67902         * doc/glibc-functions/getpagesize.texi: Mention the module
67903         'getpagesize'.
67904         * doc/glibc-functions/getusershell.texi: Mention the module
67905         'getusershell'.
67906         * doc/glibc-functions/isnanl.texi: Mention the module 'isnanl'.
67907         * doc/glibc-functions/lchmod.texi: Mention the module 'lchmod'.
67908         * doc/glibc-functions/mempcpy.texi: Mention the module 'mempcpy'.
67909         * doc/glibc-functions/memrchr.texi: Mention the module 'memrchr'.
67910         * doc/glibc-functions/mkdtemp.texi: Mention the module 'mkdtemp'.
67911         * doc/glibc-functions/rpmatch.texi: Mention the module 'rpmatch'.
67912         * doc/glibc-functions/stpcpy.texi: Mention the module 'stpcpy'.
67913         * doc/glibc-functions/stpncpy.texi: Mention the module 'stpncpy'.
67914         * doc/glibc-functions/strchrnul.texi: Mention the module 'strchrnul'.
67915         * doc/glibc-functions/strndup.texi: Mention the module 'strndup'.
67916         * doc/glibc-functions/strnlen.texi: Mention the module 'strnlen'.
67917         * doc/glibc-functions/strsep.texi: Mention the module 'strsep'.
67918         * doc/glibc-functions/timegm.texi: Mention the module 'timegm'.
67919         * doc/glibc-functions/vasprintf.texi: Mention the module 'vasprintf'.
67921 2008-10-17  Bruno Haible  <bruno@clisp.org>
67923         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): On platforms other than
67924         HP-UX and IRIX, use -0.0L.
67925         * tests/test-ceill.c (minus_zero): Likewise.
67926         * tests/test-floorl.c (minus_zero): Likewise.
67927         * tests/test-frexpl.c (minus_zero): Likewise.
67928         * tests/test-isnan.c (minus_zerol): Likewise.
67929         * tests/test-isnanl.h (minus_zero): Likewise.
67930         * tests/test-ldexpl.c (minus_zero): Likewise.
67931         * tests/test-roundl.c (minus_zero): Likewise.
67932         * tests/test-signbit.c (minus_zerol): Likewise.
67933         * tests/test-snprintf-posix.h (minus_zerol): Likewise.
67934         * tests/test-sprintf-posix.h (minus_zerol): Likewise.
67935         * tests/test-truncl.c (minus_zero): Likewise.
67936         * tests/test-vasnprintf-posix.c (minus_zerol): Likewise.
67937         * tests/test-vasprintf-posix.c (minus_zerol): Likewise.
67938         Reported by Markus Armbruster <armbru@redhat.com> via Jim Meyering
67939         and by Nelson H. F. Beebe <beebe@math.utah.edu> via Eric Blake.
67941 2008-10-17  Bruno Haible  <bruno@clisp.org>
67943         Avoid gcc warnings because of #pragma GCC system_header on older gcc.
67944         * lib/arpa_inet.in.h: Encloses reference to PRAGMA_SYSTEM_HEADER so
67945         that it gets activated only for gcc >= 3.0.
67946         * lib/dirent.in.h: Likewise.
67947         * lib/errno.in.h: Likewise.
67948         * lib/fcntl.in.h: Likewise.
67949         * lib/float.in.h: Likewise.
67950         * lib/iconv.in.h: Likewise.
67951         * lib/inttypes.in.h: Likewise.
67952         * lib/locale.in.h: Likewise.
67953         * lib/math.in.h: Likewise.
67954         * lib/netdb.in.h: Likewise.
67955         * lib/netinet_in.in.h: Likewise.
67956         * lib/search.in.h: Likewise.
67957         * lib/signal.in.h: Likewise.
67958         * lib/spawn.in.h: Likewise.
67959         * lib/stdarg.in.h: Likewise.
67960         * lib/stdint.in.h: Likewise.
67961         * lib/stdio.in.h: Likewise.
67962         * lib/stdlib.in.h: Likewise.
67963         * lib/string.in.h: Likewise.
67964         * lib/strings.in.h: Likewise.
67965         * lib/sys_file.in.h: Likewise.
67966         * lib/sys_ioctl.in.h: Likewise.
67967         * lib/sys_select.in.h: Likewise.
67968         * lib/sys_socket.in.h: Likewise.
67969         * lib/sys_stat.in.h: Likewise.
67970         * lib/sys_time.in.h: Likewise.
67971         * lib/sysexits.in.h: Likewise.
67972         * lib/time.in.h: Likewise.
67973         * lib/unistd.in.h: Likewise.
67974         * lib/wchar.in.h: Likewise.
67975         * lib/wctype.in.h: Likewise.
67976         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
67978 2008-10-17  Jim Meyering  <meyering@redhat.com>
67980         ignore-value: don't depend on inline module
67981         * modules/ignore-value (Depends-on): Remove 'inline'.
67982         (configure.ac): Instead, add AC_REQUIRE([AC_C_INLINE]) here.
67983         Suggestion from Bruno Haible.
67985 2008-10-17  Bruno Haible  <bruno@clisp.org>
67987         New implementation of condition variables for Win32.
67988         * lib/glthread/cond.h (struct gl_waitqueue_link): New type.
67989         (gl_linked_waitqueue_t): New type.
67990         (gl_cond_t): Use it.
67991         * lib/glthread/cond.c (struct gl_waitqueue_element): New type.
67992         (gl_waitqueue_init, gl_waitqueue_add, gl_waitqueue_remove,
67993         gl_waitqueue_notify_first, gl_waitqueue_notify_all): New functions.
67994         (glthread_cond_init_func, glthread_cond_wait_func,
67995         glthread_cond_timedwait_func, glthread_cond_signal_func,
67996         glthread_cond_broadcast_func, glthread_cond_destroy_func):
67997         Reimplemented on the basis of gl_linked_waitqueue_t.
67998         * lib/glthread/lock.h (gl_carray_waitqueue_t): Renamed from
67999         gl_waitqueue_t.
68000         (gl_rwlock_t): Update.
68001         * lib/glthread/lock.c (gl_waitqueue_t): Alias to gl_carray_waitqueue_t.
68003 2008-10-17  Simon Josefsson  <simon@josefsson.org>
68005         * modules/recvfrom (Depends-on): Add dependency on getpeername.
68006         Reported by Yoann Vandoorselaere <yoann@prelude-ids.org>.
68008 2008-10-17  Jim Meyering  <meyering@redhat.com>
68010         ignore-value: new module
68011         * modules/ignore-value: New file.
68012         * lib/ignore-value.h: New file.
68013         * MODULES.html.sh (Compiler warning management): New section,
68014         just for this module.  More to come.
68016 2008-10-16  Paul Eggert  <eggert@cs.ucla.edu>
68018         open-safer.c: avoid 'signed and unsigned in conditional...' warning
68019         * lib/open-safer.c (open_safer): Use an "if/else" statement in place
68020         of the ternary operator.  Reported by Reuben Thomas <rrt@sc3d.org>.
68022 2008-10-16  Jim Meyering  <meyering@redhat.com>
68024         openat-die.c: avoid 'no previous prototype' warning
68025         * lib/openat-die.c: Include "openat.h".
68026         Reported by Reuben Thomas <rrt@sc3d.org>.
68028 2008-10-16  Simon Josefsson  <simon@josefsson.org>
68030         * m4/netdb_h.m4: Assume that if netdb.h exists, it works.
68031         * lib/netdb.in.h: Fix typo.
68032         Reported by Bruno Haible  <bruno@clisp.org>
68034         * lib/netdb.in.h: Include sys/socket.h for platforms without
68035         netdb.h, to get structures like hostent on MinGW.
68036         * modules/netdb (Depends-on): Add sys_socket.
68038 2008-10-15  Simon Josefsson  <simon@josefsson.org>
68040         * modules/netdb, modules/netdb-tests: New file.
68041         * m4/netdb_h.m4: New file.
68042         * lib/netdb.in.h: Add, currently just an empty file pending
68043         definitions.
68044         * tests/test-netdb.c: New file.
68045         * doc/posix-headers/netdb.texi: Mention that we replace it if
68046         needed.
68047         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
68048         netdb.
68050 2008-10-15  Simon Josefsson  <simon@josefsson.org>
68052         * doc/gnulib.texi (Getaddrinfo and WINVER): Sync documentation
68053         with code.
68055 2008-10-13  Bruno Haible  <bruno@clisp.org>
68057         * lib/glthread/cond.c (glthread_cond_wait_func,
68058         glthread_cond_timedwait_func): Add a comment.
68060 2008-10-13  Yoann Vandoorselaere  <yoann@prelude-ids.org>
68062         * tests/test-poll.c: Include <sys/ioctl.h>, for ioctl().
68063         * tests/test-select.c: Likewise,
68065 2008-10-13  Bruno Haible  <bruno@clisp.org>
68067         * lib/glthread/cond.c (glthread_cond_wait_func,
68068         glthread_cond_timedwait_func): Fix variable name.
68069         Reported by Yoann Vandoorselaere <yoann@prelude-ids.org>.
68071 2008-10-13  Paolo Bonzini  <bonzini@gnu.org>
68073         fix getaddrinfo emulation for systems with struct sockaddr.sa_len
68074         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Detect
68075         struct sockaddr.sa_len.
68076         * lib/getaddrinfo.c (getaddrinfo): Set it if appropriate.
68078 2008-10-13  Simon Josefsson  <simon@josefsson.org>
68080         * build-aux/pmccabe2html: Add css and css_url parameters.
68082 2008-10-12  Bruno Haible  <bruno@clisp.org>
68084         * tests/test-sameacls.c (main) [AIX]: Clear type argument before
68085         calling aclx_get.
68086         Reported by Rainer Tammer <tammer@tammer.net>.
68088 2008-10-12  Bruno Haible  <bruno@clisp.org>
68090         Use msvcrt aware primitives for creation/termination of Win32 threads.
68091         * lib/glthread/thread.c: Include <process.h>.
68092         (glthread_create_func): Use _beginthreadex instead of CreateThread.
68093         (wrapper_func): Update signature.
68094         (gl_thread_exit_func): Use _endthreadex instead of EndThread.
68096 2008-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
68097             Bruno Haible  <bruno@clisp.org>
68099         Provide a Win32 implementation of the 'cond' module.
68100         * lib/glthread/cond.h [USE_WIN32]: New implementation.
68101         * lib/glthread/cond.c (glthread_cond_init_func,
68102         glthread_cond_wait_func, glthread_cond_timedwait_func,
68103         glthread_cond_signal_func, glthread_cond_broadcast_func,
68104         glthread_cond_destroy_func) [USE_WIN32]: New functions.
68105         * modules/cond (Dependencies): Add gettimeofday.
68107 2008-10-11  Bruno Haible  <bruno@clisp.org>
68109         Make sleep work on older versions of mingw.
68110         * m4/sleep.m4 (gl_FUNC_SLEEP): Test whether 'sleep' is declared, not
68111         only whether it exists.
68112         * doc/posix-functions/sleep.texi: Mention the problem with older
68113         versions of mingw.
68115 2008-10-11  Bruno Haible  <bruno@clisp.org>
68117         New module 'shutdown'.
68118         * modules/shutdown: New file.
68119         * lib/sys_socket.in.h (shutdown): New declaration.
68120         * lib/winsock.c (shutdown): New function.
68121         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Initialize
68122         GNULIB_SHUTDOWN.
68123         * modules/sys_socket (Makefile.am): Substitute GNULIB_SHUTDOWN.
68124         * doc/posix-functions/shutdown.texi: Document the new module.
68126 2008-10-11  Jim Meyering  <meyering@redhat.com>
68128         * lib/fclose.c: Fix typo in comment: s/close/fclose/.
68130 2008-10-11  Bruno Haible  <bruno@clisp.org>
68132         New module 'fclose'.
68133         * modules/fclose: New file.
68134         * lib/stdio.in.h (fclose): New declaration.
68135         * lib/fclose.c: New file.
68136         * m4/fclose.m4: New file.
68137         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FCLOSE,
68138         REPLACE_FCLOSE.
68139         * m4/close.m4 (gl_REPLACE_CLOSE): Invoke gl_REPLACE_FCLOSE.
68140         * modules/stdio (Makefile.am): Substitute GNULIB_FCLOSE,
68141         REPLACE_FCLOSE.
68142         * modules/close (Depends-on): fclose.
68143         * doc/posix-functions/fclose.texi: Mention the problem on Windows.
68145 2008-10-11  Bruno Haible  <bruno@clisp.org>
68147         * lib/winsock.c (_gl_close_fd_maybe_socket): If closesocket fails,
68148         set errno and don't call _close.
68150 2008-10-10  Bruno Haible  <bruno@clisp.org>
68152         * lib/copy-acl.c (qcopy_acl) [CYGWIN]: Call chmod before setting the
68153         ACL, not afterwards. Fixes test failure on Cygwin.
68155 2008-10-09  Ben Pfaff  <blp@gnu.org>
68157         * build-aux/announce-gen: Fix gnulib version related part of usage
68158         message.  Die with a useful error message if no tarballs are
68159         found.
68161 2008-10-10  Jim Meyering  <meyering@redhat.com>
68163         bootstrap: use git's --depth=N option only if it's supported
68164         * build-aux/bootstrap: Work with git-1.4.4.4, which does not
68165         recognize the --depth option.  Reported by Pádraig Brady.
68167 2008-10-09  Bruno Haible  <bruno@clisp.org>
68169         New module 'ioctl'.
68170         * modules/ioctl: New file.
68171         * lib/sys_socket.in.h (ioctl): Remove declaration.
68172         * lib/winsock.c: Include <sys/ioctl.h>.
68173         (rpl_ioctl): Define only of the gnulib module 'ioctl' is present.
68174         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Require
68175         gl_SYS_IOCTL_H_DEFAULTS. Set also SYS_IOCTL_H_HAVE_WINSOCK2_H.
68176         * modules/sys_socket (Files): Add m4/sys_ioctl_h.m4.
68177         * doc/posix-functions/ioctl.texi: Mention the new module.
68179 2008-10-09  Bruno Haible  <bruno@clisp.org>
68181         New module 'sys_ioctl'.
68182         * lib/sys_ioctl.in.h: New file.
68183         * m4/sys_ioctl_h.m4: New file.
68184         * modules/sys_ioctl: New file.
68185         * doc/glibc-headers/sys_ioctl.texi: Mention the new module.
68187 2008-10-09  Bruno Haible  <bruno@clisp.org>
68189         * lib/sys_socket.in.h (ioctl): Make signature POSIX compliant.
68190         * lib/winsock.c: Include <stdarg.h>.
68191         (rpl_ioctl): Change to second argument 'int' and then varargs.
68193 2008-10-09  Bruno Haible  <bruno@clisp.org>
68195         * m4/close.m4 (gl_FUNC_CLOSE): Arrange to replace the close() function
68196         when the sys_socket module is present and the system has <winsock2.h>.
68198 2008-10-09  Bruno Haible  <bruno@clisp.org>
68200         * doc/posix-functions/close.texi: Mention module 'close' instead of
68201         module 'sys_socket'.
68203 2008-10-09  Bruno Haible  <bruno@clisp.org>
68205         * doc/glibc-headers/sys_ioctl.texi: New file.
68206         * doc/gnulib.texi: Include it.
68208 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
68209             Bruno Haible  <bruno@clisp.org>
68211         Combine the two replacements of 'close'.
68212         * lib/sys_socket.in.h (close): Define to a reminder to include
68213         <unistd.h>.
68214         (_gl_close_fd_maybe_socket): New declaration.
68215         (HAVE__GL_CLOSE_FD_MAYBE_SOCKET): New macro.
68216         * lib/winsock.c (close): Remove undefinition.
68217         (_gl_close_fd_maybe_socket): Renamed from rpl_close. Define only when
68218         needed for the gnulib module 'close'.
68219         * lib/unistd.in.h (close): If the gnulib module 'close' is not used,
68220         define to an error symbol or to a warning, if suitable.
68221         * lib/close.c: Include <sys/socket.h>.
68222         (rpl_close): Invoke _gl_close_fd_maybe_socket when gnulib defines it.
68223         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Set also
68224         UNISTD_H_HAVE_WINSOCK2_H.
68225         (gl_SYS_SOCKET_H_DEFAULTS): Require gl_UNISTD_H_DEFAULTS.
68226         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
68227         UNISTD_H_HAVE_WINSOCK2_H.
68228         * modules/sys_socket (Files): Add m4/unistd_h.m4.
68229         (configure.ac): Set a module indicator.
68230         (Makefile.am): Substitute GNULIB_CLOSE.
68231         * modules/unistd (Makefile.am): Substitute UNISTD_H_HAVE_WINSOCK2_H.
68232         * modules/poll-tests (Depends-on): Add close.
68233         * modules/select-tests (Depends-on): Likewise.
68235 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
68236             Bruno Haible  <bruno@clisp.org>
68238         New module 'close'.
68239         * modules/close: New file.
68240         * lib/unistd.in.h (close): Move declaration out of the
68241         FCHDIR_REPLACEMENT scope.
68242         (_gl_unregister_fd): New declaration.
68243         * lib/close.c: New file.
68244         * lib/fchdir.c (rpl_close): Remove function.
68245         * m4/close.m4: New file.
68246         * m4/fchdir.m4 (gl_FUNC_FCHDIR): When replacing fchdir, also replace
68247         close.
68248         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_CLOSE and
68249         REPLACE_CLOSE.
68250         * modules/unistd (Makefile.am): Substitute GNULIB_CLOSE and
68251         REPLACE_CLOSE.
68252         * modules/fchdir (Depends-on): Add close.
68254 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
68255             Bruno Haible  <bruno@clisp.org>
68257         * lib/fcntl.in.h (open): Simplify conditionals.
68258         (_gl_register_fd): New declaration.
68259         * lib/fchdir.c (rpl_open): Remove function.
68260         * lib/open.c: When FCHDIR_REPLACEMENT is defined, compile the file
68261         also.
68262         (open): When FCHDIR_REPLACEMENT is defined, invoke _gl_register_fd.
68263         * m4/fchdir.m4 (gl_FUNC_FCHDIR): When replacing fchdir, also replace
68264         open.
68266 2008-10-09  Jim Meyering  <meyering@redhat.com>
68268         GNUmakefile: use the more name-space-friendly "_version"
68269         * top/GNUmakefile (_dummy): Update.
68270         (_version): Rename from "version".
68272 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
68273             Bruno Haible  <bruno@clisp.org>
68275         * lib/fchdir.c (_gl_unregister_fd): New functions, extracted from
68276         rpl_close.
68277         (_gl_register_fd): New function, extracted from rpl_open.
68278         (rpl_close, rpl_closedir): Use _gl_unregister_fd.
68279         (rpl_open, rpl_opendir): Use _gl_register_fd.
68281 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
68283         Fix organization of 'open' replacement.
68284         * m4/open.m4 (gl_REPLACE_OPEN): New macro.
68285         (gl_FUNC_OPEN): Use it.
68286         (gl_PREREQ_OPEN): Add a : to make the body non-empty.
68288 2008-10-08  Bruno Haible  <bruno@clisp.org>
68290         * modules/getdate-tests (test_getdata_LDADD): Add LIBINTL.
68292 2008-10-08  Simon Josefsson  <simon@josefsson.org>
68294         * m4/sys_socket_h.m4: Don't AC_LIBOBJ(winsock).  The file is
68295         AC_LIBOBJ'ed by each gnulib module that needs it (e.g., socket,
68296         listen).
68298 2008-10-08  Eric Blake  <ebb9@byu.net>
68300         GNUmakefile: add 'make version' target
68301         * top/GNUmakefile (_curr-ver): Split version update rules...
68302         (version): ...into a target.
68304 2008-10-07  Bruno Haible  <bruno@clisp.org>
68306         Use a more portable replacement expression for -0.0L.
68307         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Use -LDBL_MIN * LDBL_MIN
68308         instead of -0.0L. Fix m4 quotation.
68310         * tests/test-signbit.c: Include <float.h>.
68311         (minus_zero): New variable.
68312         (test_signbitl): Use minus_zero instead of -zero.
68313         * modules/signbit-tests (Depends-on): Add float.
68315         * tests/test-ceill.c: Include <float.h>.
68316         (zero): Remove variable.
68317         (minus_zero): New variable.
68318         (main): Use minus_zero instead of -zero.
68319         * modules/ceill-tests (Depends-on): Add float.
68321         * tests/test-floorl.c: Include <float.h>.
68322         (zero): Remove variable.
68323         (minus_zero): New variable.
68324         (main): Use minus_zero instead of -zero.
68325         * modules/floorl-tests (Depends-on): Add float.
68327         * tests/test-roundl.c: Include <float.h>.
68328         (zero): Remove variable.
68329         (minus_zero): New variable.
68330         (main): Use minus_zero instead of -zero.
68331         * modules/roundl-tests (Depends-on): Add float.
68333         * tests/test-truncl.c: Include <float.h>.
68334         (zero): Remove variable.
68335         (minus_zero): New variable.
68336         (main): Use minus_zero instead of -zero.
68337         * modules/truncl-tests (Depends-on): Add float.
68339         * tests/test-frexpl.c (zero): Remove variable.
68340         (minus_zero): New variable.
68341         (main): Use minus_zero instead of -zero.
68342         * modules/frexpl-tests (Depends-on): Add float.
68344         * tests/test-isnan.c (zerol): Remove variable.
68345         (minus_zerol): New variable.
68346         (test_long_double): Use minus_zerol instead of -zerol.
68347         * modules/isnan-tests (Depends-on): Add float.
68349         * tests/test-isnanl.h (zero): Remove variable.
68350         (minus_zero): New variable.
68351         (main): Use minus_zero instead of -zero.
68352         * modules/isnanl-nolibm-tests (Depends-on): Add float.
68353         * modules/isnanl-tests (Depends-on): Add float.
68355         * tests/test-ldexpl.c (zero): Remove variable.
68356         (minus_zero): New variable.
68357         (main): Use minus_zero instead of -zero.
68358         * modules/ldexpl-tests (Depends-on): Add float.
68360         * tests/test-snprintf-posix.h (zerol): Remove variable.
68361         (minus_zerol): New variable.
68362         (test_function): Use minus_zerol instead of -zerol.
68363         * modules/snprintf-posix-tests (Depends-on): Add float.
68364         * modules/vsnprintf-posix-tests (Depends-on): Add float.
68366         * tests/test-sprintf-posix.h (zerol): Remove variable.
68367         (minus_zerol): New variable.
68368         (test_function): Use minus_zerol instead of -zerol.
68369         * modules/sprintf-posix-tests (Depends-on): Add float.
68370         * modules/vsprintf-posix-tests (Depends-on): Add float.
68372         * tests/test-vasnprintf-posix.c (zerol): Remove variable.
68373         (minus_zerol): New variable.
68374         (test_function): Use minus_zerol instead of -zerol.
68375         * modules/vasnprintf-posix-tests (Depends-on): Add float.
68377         * tests/test-vasprintf-posix.c (zerol): Remove variable.
68378         (minus_zerol): New variable.
68379         (test_function): Use minus_zerol instead of -zerol.
68380         * modules/vasprintf-posix-tests (Depends-on): Add float.
68382 2008-10-07  Simon Josefsson  <simon@josefsson.org>
68384         * MODULES.html.sh (Support for building documentation): Mention
68385         pmccabe2html.  Sort entries.
68387         Add pmccabe2html module, from gnupdf.
68388         * build-aux/pmccabe.css: New file.
68389         * build-aux/pmccabe2html: New file.
68390         * m4/pmccabe2html.m4: New file.
68391         * modules/pmccabe2html: New file.
68393 2008-10-07  Richard W.M. Jones  <rjones@redhat.com>
68395         flock: new module
68396         * MODULES.html.sh: Add to list of modules.
68397         * lib/flock.c: flock implementation for Windows and Unix systems
68398         which have fcntl.
68399         * doc/glibc-functions/flock.texi: Update documentation.
68400         * lib/sys_file.in.h: <sys/file.h> header file.
68401         * m4/flock.m4: M4 macros.
68402         * m4/sys_file_h.m4: M4 macros for replacement sys/file.h.
68403         * modules/flock: flock module.
68404         * modules/flock-tests: flock tests module.
68405         * modules/sys_file: sys/file.h module.
68406         * tests/test-flock.c: test suite for flock.
68408 2008-10-06  Jim Meyering  <meyering@redhat.com>
68410         bootstrap: check for LT_INIT more portably still ;-)
68411         * build-aux/bootstrap: Don't rely on \>, since it's not portable.
68412         Spotted by Bruno Haible.
68414 2008-10-06  Eric Blake  <ebb9@byu.net>
68416         test-signbit: avoid tripping Irix cc bug on -0.0L
68417         * tests/test-signbit.c (minus_zerol): Delete, and replace with
68418         '-zerol'.  This may break on HP-UX/hppa, but at least makes the
68419         entire testsuite consistent and avoids an Irix 6.2 bug.
68421 2008-10-05  Bruno Haible  <bruno@clisp.org>
68422             Jim Meyering  <jim@meyering.net>
68424         Add an option for ignoring EPIPE during close_stdout.
68425         * lib/closeout.h: Include <stdbool.h>.
68426         (close_stdout_set_ignore_EPIPE): New declaration.
68427         * lib/closeout.c: Include <stdbool.h>.
68428         (ignore_EPIPE): New variable.
68429         (close_stdout_set_ignore_EPIPE): New function.
68430         (close_stdout): Ignore EPIPE error if ignore_EPIPE is set.
68431         * lib/close-stream.c (close_stream): Mention the possible EPIPE
68432         failure.
68433         * modules/closeout (Depends-on): Add stdbool.
68435 2008-10-05  Bruno Haible  <bruno@clisp.org>
68437         * modules/accept: New file.
68438         * modules/bind: New file.
68439         * modules/connect: New file.
68440         * modules/getpeername: New file.
68441         * modules/getsockname: New file.
68442         * modules/getsockopt: New file.
68443         * modules/listen: New file.
68444         * modules/recv: New file.
68445         * modules/recvfrom: New file.
68446         * modules/send: New file.
68447         * modules/sendto: New file.
68448         * modules/setsockopt: New file.
68449         * modules/socket: New file.
68450         * lib/sys_socket.in.h: Include the GL_LINK_WARNING definition.
68451         (socket, connect, accept, bind, getpeername, getsockname, getsockopt,
68452         listen, recv, send, recvfrom, sendto, setsockopt): Declare only when
68453         the particular module is requested. Add a link warning when the
68454         particular module is not requested.
68455         * lib/winsock.c (rpl_socket, rpl_connect, rpl_accept, rpl_bind,
68456         rpl_getpeername, rpl_getsockname, rpl_getsockopt, rpl_listen, rpl_recv,
68457         rpl_send, rpl_recvfrom, rpl_sendto, rpl_setsockopt): Define only when
68458         the particular module is requested.
68459         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR,
68460         gl_SYS_SOCKET_H_DEFAULTS): New macros.
68461         (gl_HEADER_SYS_SOCKET): Require gl_SYS_SOCKET_H_DEFAULTS.
68462         * modules/sys_socket (Depends-on): Add link-warning.
68463         (Makeifle.am): Substitute GNULIB_SOCKET, GNULIB_CONNECT, GNULIB_ACCEPT,
68464         GNULIB_BIND, GNULIB_GETPEERNAME, GNULIB_GETSOCKNAME, GNULIB_GETSOCKOPT,
68465         GNULIB_LISTEN, GNULIB_RECV, GNULIB_SEND, GNULIB_RECVFROM,
68466         GNULIB_SENDTO, GNULIB_SETSOCKOPT, and the definition of
68467         GL_LINK_WARNING.
68468         * doc/posix-functions/accept.texi: Mention the new module 'accept'.
68469         * doc/posix-functions/bind.texi: Mention the new module 'bind'.
68470         * doc/posix-functions/connect.texi: Mention the new module 'connect'.
68471         * doc/posix-functions/getpeername.texi: Mention the new module
68472         'getpeername'.
68473         * doc/posix-functions/getsockname.texi: Mention the new module
68474         'getsockname'.
68475         * doc/posix-functions/getsockopt.texi: Mention the new module
68476         'getsockopt'.
68477         * doc/posix-functions/listen.texi: Mention the new module 'listen'.
68478         * doc/posix-functions/recv.texi: Mention the new module 'recv'.
68479         * doc/posix-functions/recvfrom.texi: Mention the new module 'recvfrom'.
68480         * doc/posix-functions/send.texi: Mention the new module 'send'.
68481         * doc/posix-functions/sendto.texi: Mention the new module 'sendto'.
68482         * doc/posix-functions/setsockopt.texi: Mention the new module
68483         'setsockopt'.
68484         * doc/posix-functions/socket.texi: Mention the new module 'socket'.
68485         * modules/poll-tests (Depends-on): Add socket, bind, getsockopt,
68486         listen, connect, accept.
68487         * modules/select-tests (Depends-on): Likewise.
68489 2008-10-05  Bruno Haible  <bruno@clisp.org>
68491         * lib/winsock.c (strerror): Remove unused #undef.
68492         (rpl_close): Remove unused local variable.
68494         * modules/sys_socket (Depends-on); Add errno.
68496 2008-10-05  Bruno Haible  <bruno@clisp.org>
68498         * lib/sys_select.in.h: Include the GL_LINK_WARNING definition.
68499         (select): Add a link warning when the 'select' module is not used.
68500         * modules/sys_select (Depends-on): Add link-warning.
68501         (Makefile.am): Substitute the definition of GL_LINK_WARNING.
68502         Suggested by Paolo Bonzini.
68504 2008-10-05  Jim Meyering  <meyering@redhat.com>
68506         bootstrap: check for LT_INIT more portably
68507         * build-aux/bootstrap: Avoid using grep -E, since it's not
68508         portable enough.  Suggestion from Bruno Haible.
68510 2008-10-05  Bruno Haible  <bruno@clisp.org>
68512         * doc/posix-headers/sys_select.texi: Mention 'struct timeval' problem
68513         as being fixed by gnulib.
68515 2008-10-05  Bruno Haible  <bruno@clisp.org>
68517         * modules/select-tests: New file, mostly copied from
68518         modules/sys_select-tests.
68519         * tests/test-select.c: New file, mostly copied from
68520         tests/test-sys_select.c.
68521         * tests/test-sys_select.c: Move most of the code to tests/test-select.c.
68522         * modules/sys_select-tests (Depends-on): Remove all dependencies.
68523         (Makefile.am): Remove test_sys_select_LDADD.
68525         * lib/sys_select.in.h (select): If GNULIB_SELECT is not set, define it
68526         to an undefined symbol, for an error message.
68527         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): New macro.
68528         (gl_SYS_SELECT_H_DEFAULTS): New macro.
68529         (gl_HEADER_SYS_SELECT): Require it. Don't require compilation of
68530         winsock-select.c here.
68531         * modules/sys_select (Files): Remove lib/winsock-select.c.
68532         (Depends-on): Remove alloca.
68533         (Makefile.am): Substitute GNULIB_SELECT.
68534         * modules/select: New file.
68535         * doc/posix-functions/select.texi: Update.
68537 2008-10-05  Bruno Haible  <bruno@clisp.org>
68539         * lib/spawn_faction_addclose.c (__sysconf): Use getdtablesize always.
68540         * lib/spawn_faction_adddup2.c (__sysconf): Likewise.
68541         * lib/spawn_faction_addopen.c (__sysconf): Likewise.
68542         * modules/posix_spawn_file_actions_addclose (Depends-on): Add
68543         getdtablesize.
68544         * modules/posix_spawn_file_actions_adddup2 (Depends-on): Likewise.
68545         * modules/posix_spawn_file_actions_addopen (Depends-on): Likewise.
68547 2008-10-05  Bruno Haible  <bruno@clisp.org>
68549         * modules/getdtablesize-tests: New file.
68550         * tests/test-getdtablesize.c: New file.
68552         New module 'getdtablesize'.
68553         * lib/unistd.in.h (getdtablesize): New declaration.
68554         * lib/getdtablesize.c: New file.
68555         * m4/getdtablesize.m4: New file.
68556         * modules/getdtablesize: New file.
68557         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
68558         GNULIB_GETDTABLESIZE, HAVE_GETDTABLESIZE.
68559         * modules/unistd (Makefile.am): Substitute GNULIB_GETDTABLESIZE,
68560         HAVE_GETDTABLESIZE.
68561         * doc/glibc-functions/getdtablesize.texi: Mention the new module.
68563 2008-10-05  Bruno Haible  <bruno@clisp.org>
68565         * modules/sched (Makefile.am): Fix typo.
68566         Reported by Simon Josefsson.
68568 2008-10-05  Jim Meyering  <meyering@redhat.com>
68570         bootstrap: check for LT_INIT, too
68571         * build-aux/bootstrap: Both AC_PROG_LIBTOOL and AM_PROG_LIBTOOL
68572         are deprecated.  Suggestion from Ralf Wildenhues.
68574 2008-10-05  Bruno Haible  <bruno@clisp.org>
68576         * lib/spawn.in.h (POSIX_SPAWN_*): Use the system's values, rather than
68577         overriding them by ours.
68578         (POSIX_SPAWN_USEVFORK): Use the next free bit position.
68580 2008-10-05  Jim Meyering  <meyering@redhat.com>
68582         bootstrap: check for AC_PROG_LIBTOOL as well as AM_PROG_LIBTOOL
68583         * build-aux/bootstrap: Check for AC_PROG_LIBTOOL, as well as the
68584         obsolete AM_PROG_LIBTOOL.  Spotted by Debarshi Ray <rishi@gnu.org>.
68586 2008-10-04  Bruno Haible  <bruno@clisp.org>
68588         * modules/dup2 (License): Change to LGPLv2+.
68589         * modules/sleep (License): Likewise.
68590         * modules/perror (License): Likewise.
68591         * modules/fopen (License): Change to LGPLv2+, with approval by Eric
68592         Blake.
68593         * modules/signal (License): Likewise.
68594         * modules/sigprocmask (License): Likewise.
68595         * modules/raise (License): Change to LGPLv2+, with approval by Jim
68596         Meyering.
68598 2008-10-04  Bruno Haible  <bruno@clisp.org>
68600         * lib/spawn.in.h (POSIX_SPAWN_*): Undefine before redefining.
68601         Reported by Rainer Tammer <tammer@tammer.net>.
68603 2008-10-03  Paolo Bonzini  <bonzini@gnu.org>
68604             Bruno Haible  <bruno@clisp.org>
68606         * lib/errno.in.h (EWOULDBLOCK) [win32]: Define to EAGAIN.
68607         * lib/winsock.c (set_winsock_errno): Map WSAEWOULDBLOCK to EWOULDBLOCK.
68608         * lib/strerror.c (rpl_strerror): Remove error string for EWOULDBLOCK.
68610 2008-10-03  Kamil Dudka  <kdudka@redhat.com>
68612         filevercmp: new module
68613         * lib/filevercmp.h: New function filevercmp comparing version strings.
68614         * lib/filevercmp.c: Implementation of filevercmp function.
68615         * modules/filevercmp: Module metadata.
68616         * tests/test-filevercmp.c: Unit test for new module.
68617         * modules/filevercmp-tests: Unit test metadata.
68618         * MODULES.html.sh: Add filevercmp module.
68620 2008-10-03  Bruno Haible  <bruno@clisp.org>
68622         * lib/c-ctype.h: Add comment.
68623         Reported by Jim Meyering.
68625 2008-10-02  Bruno Haible  <bruno@clisp.org>
68627         * modules/posix_spawn-internal (Depends-on): Add 'open'.
68629 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
68631         * build-aux/bootstrap: Allow renaming bootstrap, and change the
68632         name of bootstrap.conf accordingly.
68634 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
68636         * build-aux/bootstrap: Install git-merge-changelog configuration
68637         items into .gitconfig if needed.
68639 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
68641         * build-aux/bootstrap: Recognize `gnulib' being a submodule in a
68642         git repository, and initialize/update it accordingly.
68644 2008-10-02  Richard W.M. Jones  <rjones@redhat.com>
68646         * modules/fsync-tests: New file.
68647         * tests/test-fsync.c: New file.
68649         New module 'fsync'.
68650         * lib/fsync.c: New file.
68651         * m4/fsync.m4: New file.
68652         * modules/fsync: New file.
68653         * lib/unistd.in.h (fsync): New declaration.
68654         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Define and AC_SUBST both
68655         GNULIB_FSYNC and HAVE_FSYNC.
68656         * modules/unistd: Substitute GNULIB_FSYNC and HAVE_FSYNC.
68657         * MODULES.html.sh (posix_functions): Add fsync.
68658         * doc/posix-functions/fsync.texi: Mention the new module.
68660 2008-10-02  Jim Meyering  <meyering@redhat.com>
68662         fts.c: sync with similar code from coreutils' remove.c
68663         * lib/fts.c (dirent_inode_sort_may_be_useful): Merge from coreutils.
68664         Guard also with "#if defined __linux__", since for now at least,
68665         this code is Linux-kernel-specific.
68667 2008-10-02  Jim Meyering  <meyering@redhat.com>
68669         fts: bug fixes
68670         * lib/fts.c: Remove unnecessary "defined" in cpp directive.
68671         Include <sys/vfs.h>, not <sys/statfs.h>.
68673         * m4/fts.m4 (gl_FUNC_FTS_CORE): Fix typo s/vfs/vfs.h/.
68674         Include <sys/vfs.h>, not <sys/statfs.h>.
68676 2008-10-01  Bruno Haible  <bruno@clisp.org>
68678         Avoid the broken posix_spawn function on AIX 5.3 and 6.1.
68679         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): New macro.
68680         (gl_POSIX_SPAWN_BODY): Invoke it. Set REPLACE_POSIX_SPAWN if needed.
68681         * doc/posix-functions/posix_spawn.texi: Mention the AIX bugs.
68682         * doc/posix-functions/posix_spawnp.texi: Likewise.
68683         * m4/execute.m4 (gl_EXECUTE): Invoke gl_POSIX_SPAWN_WORKS, to check
68684         whether posix_spawn actually works.
68685         * m4/pipe.m4 (gl_PIPE): Likewise.
68686         * modules/execute (Files): Add m4/posix_spawn.m4.
68687         * modules/pipe (Files): Add m4/posix_spawn.m4.
68688         Reported and analyzed by Rainer Tammer <tammer@tammer.net>.
68690 2008-10-01  Jim Meyering  <meyering@redhat.com>
68692         remove trailing spaces
68693         * NEWS: Likewise.
68694         * lib/poll.c (poll): Likewise.
68695         * lib/sys_socket.in.h (SHUT_RDWR): Likewise.
68696         * lib/winsock.c (rpl_close): Likewise.
68697         * m4/memcmp.m4 (gl_FUNC_MEMCMP): Likewise.
68698         * modules/yield: Likewise.
68699         * tests/test-poll.c (connect_to_socket, poll1): Likewise.
68700         * tests/test-sys_select.c (connect_to_socket): Likewise.
68702         fts.c: adjust a new interface to be more generally useful
68703         * lib/fts.c (dirent_inode_sort_may_be_useful): Take an FD parameter.
68704         (fts_build): Adjust caller.
68706 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
68708         * modules/cond-tests: New file.
68709         * tests/test-cond.c: New file.
68711 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
68712             Bruno Haible  <bruno@clisp.org>
68714         * modules/cond (Dependencies): Add errno, time.
68715         * lib/glthread/cond.h: Include <time.h>.
68716         (gl_cond_define, gl_cond_define_initialized): Use the same definition
68717         across platforms.
68719 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
68720             Bruno Haible  <bruno@clisp.org>
68722         * m4/thread.m4 (gl_THREAD): Fix detection of pthread_atfork function.
68724 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
68725             Bruno Haible  <bruno@clisp.org>
68727         * modules/tls-tests (Depends-on): Add thread, yield.
68728         (configure.ac): Remove all checks.
68729         (test_tls_LDADD): Use YIELD_LIB instead of LIBSCHED.
68730         * tests/test-tls.c (gl_thread_t, gl_thread_join, gl_thread_yield,
68731         gl_thread_self): Remove definitions. Include glthread/thread.h and
68732         glthread/yield.h instead.
68733         (test_tls): Pass an additional NULL argument to gl_thread_join.
68735 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
68736             Bruno Haible  <bruno@clisp.org>
68738         * modules/lock-tests (Depends-on): Add thread, yield.
68739         (configure.ac): Remove all checks.
68740         (test_lock_LDADD): Use YIELD_LIB instead of LIBSCHED.
68741         * tests/test-lock.c (gl_thread_t, gl_thread_join, gl_thread_yield,
68742         gl_thread_self): Remove definitions. Include glthread/thread.h and
68743         glthread/yield.h instead.
68744         (test_lock, test_rwlock, test_recursive_lock, test_once): Pass an
68745         additional NULL argument to gl_thread_join.
68747 2008-09-30  Bruno Haible  <bruno@clisp.org>
68749         Fix the Win32 implementation of the 'thread' module.
68750         * lib/glthread/thread.h [USE_WIN32_THREADS] (gl_thread_t): Change to a
68751         pointer type.
68752         (gl_thread_self): Invoke gl_thread_self_func.
68753         (gl_thread_self_func): New declaration.
68754         * lib/glthread/thread.c [USE_WIN32_THREADS] (self_key): New variable.
68755         (do_init_self_key, init_self_key): New functions.
68756         (struct gl_thread_struct): Renamed from 'struct thread_extra'.
68757         Remove some fields.
68758         (running_threads, running_lock): Remove variables.
68759         (get_current_thread_handle): New function.
68760         (gl_thread_self_func, wrapper_func, glthread_create_func,
68761         glthread_join_func, gl_thread_exit_func): Largely rewritten and
68762         simplified.
68764 2008-09-30  Bruno Haible  <bruno@clisp.org>
68766         * lib/winsock-select.c (win32_poll_handle): Add shortcut for regular
68767         files.
68769 2008-09-30  Jim Meyering  <meyering@redhat.com>
68771         fts.m4: correct the test for statfs.f_type
68772         * m4/fts.m4 (gl_FUNC_FTS_CORE): Include <sys/statfs.h>
68773         when checking for statfs.f_type.
68775 2008-09-15  Simon Josefsson  <simon@josefsson.org>
68777         tests: avoid some compiler warnings
68778         * tests/test-memchr.c (main): Pass NULL indirectly.
68779         * tests/test-getdate.c (main): Remove unused variable 'ret'.
68781 2008-09-29  Ondřej Vašík  <ovasik@redhat.com>
68783         getdate.y: disallow countable dayshifts like "4 yesterday ago"
68784         * lib/getdate.y (relative_time_table) [tDAY_SHIFT]: New type for
68785         exactly specified dayshifts.
68786         (dayshift): New rule.
68787         (rel): Add dayshift.
68788         (relative_time_table) [tomorrow, yesterday, today, now]:
68789         Use tDAY_SHIFT in place of tDAY_UNIT.
68790         * tests/test-getdate.c: Add tests for now-disallowed countable
68791         dayshifts, e.g., "4 yesterday ago".
68793 2008-09-29  Bruno Haible  <bruno@clisp.org>
68795         * tests/test-posix_spawn1.c: Renamed from tests/test-posix_spawn.c.
68796         * tests/test-posix_spawn1.in.sh: Renamed from
68797         tests/test-posix_spawn.in.sh.
68798         * tests/test-posix_spawn2.c: New file.
68799         * tests/test-posix_spawn2.in.sh: New file.
68800         * modules/posix_spawnp-tests (Files): Update.
68801         (Makefile.am): Update. Add test-posix_spawn2 to the tests.
68803 2008-09-29  Bruno Haible  <bruno@clisp.org>
68805         Propagate effects of putenv/setenv/unsetenv to child processes.
68806         * lib/execute.c (execute): Use spawnvpe instead of spawnvp.
68807         * lib/pipe.c (create_pipe): Likewise.
68809 2008-09-29  Bruno Haible  <bruno@clisp.org>
68811         Enable use of shell scripts as executables in mingw.
68812         * lib/execute.c (execute): When spawnv fails with error ENOEXEC,
68813         run the program as a shell script.
68814         * lib/pipe.c (create_pipe): Likewise.
68815         * lib/w32spawn.h (prepare_spawn): Add a hidden element in front of the
68816         resulting array.
68818 2008-09-29  Eric Blake  <ebb9@byu.net>
68820         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): Fix typo.
68822 2008-08-24  Paolo Bonzini  <bonzini@gnu.org>
68824         * doc/posix-functions/accept.texi: Update mingw problems.
68825         * doc/posix-functions/bind.texi: Update mingw problems.
68826         * doc/posix-functions/close.texi: Update mingw problems.
68827         * doc/posix-functions/connect.texi: Update mingw problems.
68828         * doc/posix-functions/getpeername.texi: Update mingw problems.
68829         * doc/posix-functions/getsockname.texi: Update mingw problems.
68830         * doc/posix-functions/getsockopt.texi: Update mingw problems.
68831         * doc/posix-functions/ioctl.texi: Update mingw problems.
68832         * doc/posix-functions/listen.texi: Update mingw problems.
68833         * doc/posix-functions/recv.texi: Update mingw problems.
68834         * doc/posix-functions/recvfrom.texi: Update mingw problems.
68835         * doc/posix-functions/select.texi: Update mingw problems.
68836         * doc/posix-functions/send.texi: Update mingw problems.
68837         * doc/posix-functions/sendto.texi: Update mingw problems.
68838         * doc/posix-functions/setsockopt.texi: Update mingw problems.
68839         * doc/posix-functions/socket.texi: Update mingw problems.
68841 2008-09-29  Paolo Bonzini  <bonzini@gnu.org>
68842             Bruno Haible  <bruno@clisp.org>
68844         * lib/sys_select.in.h: Include sys/time.h.
68845         * m4/sys_select.h.m4: Test that struct timeval is fully defined.
68846         * modules/sys_select: Depend on sys_time.
68847         * tests/test-sys_select.c: Test that sys/select.h defines struct
68848         timeval fully.
68850 2008-09-29  Bruno Haible  <bruno@clisp.org>
68852         * lib/sys_socket.in.h: Wrap the definitions in 'extern "C"'.
68853         * lib/sys_select.in.h: Likewise.
68855 2008-09-29  Bruno Haible  <bruno@clisp.org>
68857         * lib/winsock.c (rpl_close, rpl_socket): Remove unused variables.
68859 2008-09-29  Bruno Haible  <bruno@clisp.org>
68861         * m4/sockets.m4 (gl_SOCKETS): Check also for the need to use -lsocket.
68862         Set LIBSOCKET instead of augmenting LIBS.
68863         * modules/sockets (Link): New section.
68864         * modules/sockets-tests (test_sockets_LDADD): New variable.
68865         * modules/sys_select-tests (test_sys_select_LDADD): New variable.
68866         * modules/poll-tests (test_poll_LDADD): New variable.
68867         * NEWS: Document the change.
68869 2008-09-29  Bruno Haible  <bruno@clisp.org>
68871         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): New macro.
68872         * m4/inet_ntop.m4 (gl_INET_NTOP): Invoke it instead of assigning
68873         ARPA_INET_H directly.
68874         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
68876 2008-09-28  Bruno Haible  <bruno@clisp.org>
68878         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): New macro, extracted
68879         from gl_HEADER_SYS_SOCKET.
68880         (gl_HEADER_SYS_SOCKET): Invoke it.
68881         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
68883 2008-09-28  Bruno Haible  <bruno@clisp.org>
68885         * doc/posix-headers/sys_select.texi: Mention 'struct timeval' problem.
68886         * tests/test-sys_select.c: Include <sys/time.h>, for struct timeval.
68887         Needed on OSF/1 4.0.
68889 2008-09-28  Bruno Haible  <bruno@clisp.org>
68891         Override open more carefully.
68892         * lib/open.c (orig_open): New function.
68893         (rpl_open): Use orig_open instead of open.
68894         * lib/fcntl.in.h: Add special invocation convention.
68895         * m4/open.m4 (gl_PREREQ_OPEN): New macro.
68896         (gl_FUNC_OPEN): Invoke it.
68898         Override freopen more carefully.
68899         * lib/freopen.c (orig_freopen): New function.
68900         (rpl_freopen): Use orig_freopen instead of freopen.
68901         * m4/freopen.m4 (gl_PREREQ_FREOPEN): New macro.
68902         (gl_FUNC_FREOPEN): Invoke it.
68904         Override fopen more carefully.
68905         * lib/fopen.c (orig_fopen): New function.
68906         (rpl_fopen): Use orig_fopen instead of fopen.
68907         * m4/fopen.m4 (gl_PREREQ_FOPEN): New macro.
68908         (gl_FUNC_FOPEN): Invoke it.
68909         Needed on AIX. Reported by Rainer Tammer <tammer@tammer.net>.
68911 2008-09-28  Bruno Haible  <bruno@clisp.org>
68913         * lib/pipe.h (create_pipe_out, create_pipe_bidi): Add comment about
68914         SIGPIPE.
68916 2008-09-28  Bruno Haible  <bruno@clisp.org>
68918         * tests/test-sigaction.c (handler, main): Disable the check whether
68919         SA_RESETHAND has reverted the installed handler to SIG_DFL. Needed on
68920         glibc systems with LinuxThreads.
68922 2008-09-28  Bruno Haible  <bruno@clisp.org>
68924         * doc/posix-functions/freopen.texi: Mention the trailing slash problem.
68926         * lib/stdio.in.h (fopen, freopen): Undefine before redefining. Needed
68927         with AIX xlc.
68928         * lib/fcntl.in.h (open): Likewise.
68929         Reported by Rainer Tammer <tammer@tammer.net>.
68931 2008-09-28  Bruno Haible  <bruno@clisp.org>
68933         * modules/posix_spawnp-tests: New file.
68934         * tests/test-posix_spawn.c: New file.
68935         * tests/test-posix_spawn.in.sh: New file.
68937         New module 'posix_spawnp'.
68938         * modules/posix_spawnp: New file.
68939         * lib/spawnp.c: New file, from GNU libc with modifications.
68940         * doc/posix-functions/posix_spawnp.texi: Mention the new module.
68942         New module 'posix_spawn'.
68943         * modules/posix_spawn: New file.
68944         * lib/spawn.c: New file, from GNU libc with modifications.
68945         * doc/posix-functions/posix_spawn.texi: Mention the new module.
68947         New module 'posix_spawnattr_destroy'.
68948         * modules/posix_spawnattr_destroy: New file.
68949         * lib/spawnattr_destroy.c: New file, from GNU libc with modifications.
68950         * doc/posix-functions/posix_spawnattr_destroy.texi: Mention the new
68951         module.
68953         New module 'posix_spawnattr_setsigmask'.
68954         * modules/posix_spawnattr_setsigmask: New file.
68955         * lib/spawnattr_setsigmask.c: New file, from GNU libc with
68956         modifications.
68957         * doc/posix-functions/posix_spawnattr_setsigmask.texi: Mention the
68958         new module.
68960         New module 'posix_spawnattr_getsigmask'.
68961         * modules/posix_spawnattr_getsigmask: New file.
68962         * lib/spawnattr_getsigmask.c: New file, from GNU libc with
68963         modifications.
68964         * doc/posix-functions/posix_spawnattr_getsigmask.texi: Mention the
68965         new module.
68967         New module 'posix_spawnattr_setsigdefault'.
68968         * modules/posix_spawnattr_setsigdefault: New file.
68969         * lib/spawnattr_setdefault.c: New file, from GNU libc with
68970         modifications.
68971         * doc/posix-functions/posix_spawnattr_setsigdefault.texi: Mention the
68972         new module.
68974         New module 'posix_spawnattr_getsigdefault'.
68975         * modules/posix_spawnattr_getsigdefault: New file.
68976         * lib/spawnattr_getdefault.c: New file, from GNU libc with
68977         modifications.
68978         * doc/posix-functions/posix_spawnattr_getsigdefault.texi: Mention the
68979         new module.
68981         New module 'posix_spawnattr_setschedpolicy'.
68982         * modules/posix_spawnattr_setschedpolicy: New file.
68983         * lib/spawnattr_setschedpolicy.c: New file, from GNU libc with
68984         modifications.
68985         * doc/posix-functions/posix_spawnattr_setschedpolicy.texi: Mention the
68986         new module.
68988         New module 'posix_spawnattr_getschedpolicy'.
68989         * modules/posix_spawnattr_getschedpolicy: New file.
68990         * lib/spawnattr_getschedpolicy.c: New file, from GNU libc with
68991         modifications.
68992         * doc/posix-functions/posix_spawnattr_getschedpolicy.texi: Mention the
68993         new module.
68995         New module 'posix_spawnattr_setschedparam'.
68996         * modules/posix_spawnattr_setschedparam: New file.
68997         * lib/spawnattr_setschedparam.c: New file, from GNU libc with
68998         modifications.
68999         * doc/posix-functions/posix_spawnattr_setschedparam.texi: Mention the
69000         new module.
69002         New module 'posix_spawnattr_getschedparam'.
69003         * modules/posix_spawnattr_getschedparam: New file.
69004         * lib/spawnattr_getschedparam.c: New file, from GNU libc with
69005         modifications.
69006         * doc/posix-functions/posix_spawnattr_getschedparam.texi: Mention the
69007         new module.
69009         New module 'posix_spawnattr_setpgroup'.
69010         * modules/posix_spawnattr_setpgroup: New file.
69011         * lib/spawnattr_setpgroup.c: New file, from GNU libc with
69012         modifications.
69013         * doc/posix-functions/posix_spawnattr_setpgroup.texi: Mention the new
69014         module.
69016         New module 'posix_spawnattr_getpgroup'.
69017         * modules/posix_spawnattr_getpgroup: New file.
69018         * lib/spawnattr_getpgroup.c: New file, from GNU libc with
69019         modifications.
69020         * doc/posix-functions/posix_spawnattr_getpgroup.texi: Mention the new
69021         module.
69023         New module 'posix_spawnattr_setflags'.
69024         * modules/posix_spawnattr_setflags: New file.
69025         * lib/spawnattr_setflags.c: New file, from GNU libc with modifications.
69026         * doc/posix-functions/posix_spawnattr_setflags.texi: Mention the new
69027         module.
69029         New module 'posix_spawnattr_getflags'.
69030         * modules/posix_spawnattr_getflags: New file.
69031         * lib/spawnattr_getflags.c: New file, from GNU libc with modifications.
69032         * doc/posix-functions/posix_spawnattr_getflags.texi: Mention the new
69033         module.
69035         New module 'posix_spawnattr_init'.
69036         * modules/posix_spawnattr_init: New file.
69037         * lib/spawnattr_init.c: New file, from GNU libc with modifications.
69038         * doc/posix-functions/posix_spawnattr_init.texi: Mention the new
69039         module.
69041         New module 'posix_spawn_file_actions_destroy'.
69042         * modules/posix_spawn_file_actions_destroy: New file.
69043         * lib/spawn_faction_destroy.c: New file, from GNU libc with
69044         modifications.
69045         * doc/posix-functions/posix_spawn_file_actions_destroy.texi: Mention
69046         the new module.
69048         New module 'posix_spawn_file_actions_addopen'.
69049         * modules/posix_spawn_file_actions_addopen: New file.
69050         * lib/spawn_faction_addopen.c: New file, from GNU libc with
69051         modifications.
69052         * doc/posix-functions/posix_spawn_file_actions_addopen.texi: Mention
69053         the new module.
69055         New module 'posix_spawn_file_actions_adddup2'.
69056         * modules/posix_spawn_file_actions_adddup2: New file.
69057         * lib/spawn_faction_adddup2.c: New file, from GNU libc with
69058         modifications.
69059         * doc/posix-functions/posix_spawn_file_actions_adddup2.texi: Mention
69060         the new module.
69062         New module 'posix_spawn_file_actions_addclose'.
69063         * modules/posix_spawn_file_actions_addclose: New file.
69064         * lib/spawn_faction_addclose.c: New file, from GNU libc with
69065         modifications.
69066         * doc/posix-functions/posix_spawn_file_actions_addclose.texi: Mention
69067         the new module.
69069         New module 'posix_spawn_file_actions_init'.
69070         * modules/posix_spawn_file_actions_init: New file.
69071         * lib/spawn_faction_init.c: New file, from GNU libc with modifications.
69072         * doc/posix-functions/posix_spawn_file_actions_init.texi: Mention the
69073         new module.
69075         New module 'posix_spawn-internal'.
69076         * modules/posix_spawn-internal: New file.
69077         * lib/spawn_int.h: New file, from GNU libc with modifications.
69078         * lib/spawni.c: New file, from GNU libc with modifications.
69079         * m4/posix_spawn.m4: New file.
69081         New module 'spawn'.
69082         * modules/spawn: New file.
69083         * lib/spawn.in.h: New file, from GNU libc with modifications.
69084         * m4/spawn_h.m4: New file.
69085         * doc/posix-headers/spawn.texi: Mention the new module.
69087 2008-09-28  Bruno Haible  <bruno@clisp.org>
69089         * modules/sched-tests: New file.
69090         * tests/test-sched.c: New file.
69092         New module 'sched'.
69093         * modules/sched: New file.
69094         * lib/sched.in.h: New file.
69095         * m4/sched_h.m4: New file.
69096         * doc/posix-headers/sched.texi: Mention the new module.
69098 2008-09-27  Eric Blake  <ebb9@byu.net>
69100         Fix previous patch, and tweak references to $0.
69101         * posix-modules: Call func_gnulib_dir before using $gnulib_dir.
69102         (func_version, func_gnulib_dir): Don't call this program
69103         gnulib-tool.
69104         (func_gnulib_dir, func_tmpdir, func_fatal_error): Avoid shell bugs
69105         with using $0 in function.
69106         * gnulib-tool (func_gnulib_dir, func_tmpdir): Likewise.
69107         (func_fatal_error): Reuse the name the user invoked us with.
69109 2008-09-27  Bruno Haible  <bruno@clisp.org>
69111         * m4/iconv_h.m4 (gl_REPLACE_ICONV_H): New macro.
69112         (gl_ICONV_H_DEFAULTS): Initialize ICONV_H here...
69113         (gl_ICONV_H): Not here.
69114         * m4/iconv_open.m4 (gl_REPLACE_ICONV_OPEN): Invoke gl_REPLACE_ICONV_H
69115         instead of assigning ICONV_H directly.
69117         * m4/wchar.m4 (gl_REPLACE_WCHAR_H): New macro.
69118         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Invoke it instead of assigning
69119         WCHAR_H directly.
69121 2008-09-27  Bruno Haible  <bruno@clisp.org>
69123         * lib/arpa_inet.in.h: Include the GL_LINK_WARNING anchor.
69124         * modules/arpa_inet (Depends-on): Add link-warning.
69125         (Makefile.am): Insert the definition of GL_LINK-WARNING.
69126         * modules/unistd (Makefile.am): Likewise.
69128 2008-09-26  Bruno Haible  <bruno@clisp.org>
69130         * posix-modules (cvsdatestamp, last_checkin_date, version): Remove
69131         variables.
69132         (func_version): Essentially copied from gnulib-tool.
69133         (func_exit, func_gnulib_dir, func_tmpdir, func_fatal_error,
69134         func_readlink): Copied from gnulib-tool.
69136 2008-09-26  Bruno Haible  <bruno@clisp.org>
69138         * gnulib-tool (func_version): Change directory to $gnulib_dir before
69139         invoking git-version-gen.
69141 2008-09-26  Bruno Haible  <bruno@clisp.org>
69143         * posix-modules: Update to directory names changed on 2008-01-19.
69144         Remove commas in output before splitting into words. No more need to
69145         avoid 'ftruncate' since 2007-02-19.
69147 2008-09-26  Bruno Haible  <bruno@clisp.org>
69149         * doc/posix-headers/errno.texi: Remove mention of module 'EOVERFLOW'.
69151 2008-09-26  Bruno Haible  <bruno@clisp.org>
69153         * lib/fwriteerror.c (do_fwriteerror): Ignore error EPIPE.
69154         * modules/fwriteerror (Depends-on): Add errno.
69156 2008-09-26  Bruno Haible  <bruno@clisp.org>
69158         * tests/test-vc-list-files-git.sh: Explain reason for skipping test.
69159         * tests/test-vc-list-files-cvs.sh: Likewise.
69161 2008-09-26  Bruno Haible  <bruno@clisp.org>
69163         * doc/posix-headers/sys_resource.texi: Reorder items.
69165 2008-09-26  Jim Meyering  <meyering@redhat.com>
69167         fts: tweak inode comparison function
69168         * lib/fts.c (fts_compare_ino): Sort on increasing, not decreasing
69169         inode numbers, as documented.
69171         fts: sort dirent entries on inode number before traversing
69172         This avoids a quadratic, seek-related performance penalty when
69173         operating on a directory containing many entries (measurable at 10k;
69174         3.5 hours at 2 million entries with a cold cache) on certain types
69175         of file systems, including ext3 and ext4, but not tmpfs.
69176         * lib/fts.c (DT_MUST_BE, NOT_AN_INODE_NUMBER, D_INO): Define.
69177         (FTS_INODE_SORT_DIR_ENTRIES_THRESHOLD): Define if not defined.
69178         (S_MAGIC_TMPFS, S_MAGIC_NFS): Define.
69179         (fs_handles_readdir_ordered_dirents_efficiently): New function.
69180         (dirent_inode_sort_may_be_useful, fts_compare_ino): Likewise.
69181         (fts_build): Set the stat.st_ino member from D_INO.
69182         If it is likely to be useful, sort dirent entries on inode number.
69184         * m4/fts.m4 (gl_FUNC_FTS_CORE): Check for fstatfs, sys/vfs.h,
69185         and the struct statfs.f_type member.
69186         * modules/fts (Depends-on): Add d-ino.
69188 2008-09-26  Bruno Haible  <bruno@clisp.org>
69190         * modules/sigpipe-die (Depends-on): Add sigpipe.
69192         * lib/stdio.in.h (fprintf, vfprintf, printf, vprintf, fputc, putc,
69193         putchar, fputs, puts, fwrite): Replace when REPLACE_STDIO_WRITE_FUNCS
69194         and GNULIB_STDIO_H_SIGPIPE are set.
69195         * lib/stdio-write.c: New file.
69196         * m4/stdio_h.m4 (gl_STDIO_H): Set GNULIB_FPRINTF, GNULIB_PRINTF,
69197         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
69198         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
69199         REPLACE_STDIO_WRITE_FUNCS.
69200         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FPRINTF, GNULIB_PRINTF,
69201         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
69202         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
69203         GNULIB_STDIO_H_SIGPIPE, REPLACE_STDIO_WRITE_FUNCS.
69204         * modules/stdio (Files): Add lib/stdio-write.c.
69205         (Makefile.am): Substitute GNULIB_FPRINTF, GNULIB_PRINTF,
69206         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
69207         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
69208         GNULIB_STDIO_H_SIGPIPE, REPLACE_STDIO_WRITE_FUNCS.
69209         * m4/fprintf-posix.m4 (gl_REPLACE_FPRINTF): Define
69210         REPLACE_FPRINTF_POSIX.
69211         * m4/printf-posix-rpl.m4 (gl_REPLACE_PRINTF): Define
69212         REPLACE_PRINTF_POSIX.
69213         * m4/vfprintf-posix.m4 (gl_REPLACE_VFPRINTF): Define
69214         REPLACE_VFPRINTF_POSIX.
69215         * m4/vprintf-posix.m4 (gl_REPLACE_VPRINTF): Define
69216         REPLACE_VPRINTF_POSIX.
69217         * doc/posix-functions/fprintf.texi: Mention the sigpipe module and the
69218         SIGPIPE issue.
69219         * doc/posix-functions/fputc.texi: Likewise.
69220         * doc/posix-functions/fputs.texi: Likewise.
69221         * doc/posix-functions/fwrite.texi: Likewise.
69222         * doc/posix-functions/printf.texi: Likewise.
69223         * doc/posix-functions/putc.texi: Likewise.
69224         * doc/posix-functions/putchar.texi: Likewise.
69225         * doc/posix-functions/puts.texi: Likewise.
69226         * doc/posix-functions/vfprintf.texi: Likewise.
69227         * doc/posix-functions/vprintf.texi: Likewise.
69229         * modules/safe-write (Depends-on): Add write.
69231         * modules/sigpipe-tests: New file.
69232         * tests/test-sigpipe.c: New file.
69233         * tests/test-sigpipe.sh: New file.
69235         * modules/write: New file.
69236         * lib/unistd.in.h: Include <sys/types.h>.
69237         (write): New declaration.
69238         * lib/write.c: New file.
69239         * m4/write.m4: New file.
69240         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
69241         GNULIB_UNISTD_H_SIGPIPE, GNULIB_WRITE, REPLACE_WRITE.
69242         * modules/unistd (Makefile.am): Substitute GNULIB_UNISTD_H_SIGPIPE,
69243         GNULIB_WRITE, REPLACE_WRITE.
69244         * doc/posix-functions/write.texi: Mention the write, sigpipe modules
69245         and the SIGPIPE issue.
69247         * lib/signal.in.h (SIGPIPE): Define to a replacement value.
69248         (raise): New declaration.
69249         * lib/sigprocmask.c (SIGPIPE_handler): New variable.
69250         (ext_signal): New function.
69251         (rpl_raise): New function.
69252         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Initialize
69253         GNULIB_SIGNAL_H_SIGPIPE.
69254         * modules/signal (Makefile.am): Substitute GNULIB_SIGNAL_H_SIGPIPE.
69255         * doc/posix-headers/signal.texi: Mention the SIGPIPE issue.
69257         * modules/sigpipe: New file.
69258         * m4/sigpipe.m4: New file.
69260 2008-09-25  Derek Price  <derek@ximbiot.com>
69261             Bruno Haible  <bruno@clisp.org>
69263         * gnulib-tool (func_import): Report all license incompatibilities, not
69264         just the first one.
69266 2008-09-25  Bruno Haible  <bruno@clisp.org>
69268         * gnulib-tool (func_import): When computing the edits, consider not
69269         only the Makefile.ams that exist but also those that will be generated.
69271 2008-09-25  Simon Josefsson  <simon@josefsson.org>
69273         * modules/sys_select-tests (Depends-on): Remove sys_select itself,
69274         fixes gnulib-tool --test warning about duplicate dependency.
69276 2008-09-25  Bruno Haible  <bruno@clisp.org>
69278         * gnulib-tool: Don't ask the user to perform edits in the generated
69279         Makefile.ams.
69280         (func_emit_lib_Makefile_am): Emit empty SUBDIRS. Execute edits that
69281         apply to the Makefile.am being generated.
69282         (func_emit_tests_Makefile_am): Execute edits that apply to the
69283         Makefile.am being generated.
69284         (func_import): Setup list of Makefile.am edits before emitting the
69285         Makefile.ams, not at the end.
69286         (func_create_testdir): Update.
69287         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
69289 2008-09-25  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
69291         * gnulib-tool (func_import): Store the --tests-base option in the
69292         comment in gnulib-cache.m4.
69294 2008-09-24  Paolo Bonzini  <bonzini@gnu.org>
69296         * NEWS: Document increased portability that sys_select now provides.
69298         * lib/sys_select.in.h: Install select wrapper.
69299         * lib/sys_socket.in.h: Use more descriptive name when there is no
69300         select wrapper.
69301         * lib/winsock-select.c: New.
69302         * m4/sys_select_h.m4: Compile lib/winsock-select.c if WinSock is used.
69303         Require gl_HEADER_SYS_SOCKET.
69304         * modules/sys_select: Depend on alloca, add lib/winsock-select.c.
69305         * modules/sys_select-tests: Copy dependencies from modules/poll-tests.
69306         * tests/test-sys_select.c: Add functional tests.
69308 2008-09-24  Eric Blake  <ebb9@byu.net>
69310         open, fopen: close fd leak in last patch
69311         * lib/open.c (rpl_open): Close fd before returning error.
69312         * lib/fopen.c (rpl_fopen): Close fd before returning error.
69313         * doc/posix-functions/open.texi (open): Document that Irix also
69314         has the bug.
69315         * doc/posix-functions/fopen.texi (fopen): Likewise.
69316         Reported by Paolo Bonzini.
69318 2008-09-24  Bruno Haible  <bruno@clisp.org>
69320         Ensure that a filename ending in a slash cannot be used to access a
69321         non-directory.
69322         * lib/open.c (rpl_open): When the filename ends in a slash, use fstat()
69323         to check whether it's really a directory.
69324         * lib/fopen.c: Include fcntl.h, unistd.h.
69325         (rpl_fopen): When the filename ends in a slash, use open(), fstat(),
69326         and fdopen().
69327         * modules/fopen (Depends-on): Add unistd.
69328         * tests/test-open.c (main): Try to open "/dev/null/" as a directory.
69329         * tests/test-fopen.c (main): Likewise.
69330         * doc/posix-functions/open.texi: Mention the HP-UX, Solaris bug.
69331         * doc/posix-functions/fopen.texi: Likewise.
69332         Reported by Eric Blake.
69334 2008-09-23  Eric Blake  <ebb9@byu.net>
69336         c-stack: avoid compiler optimizations when provoking overflow
69337         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Make
69338         recursion harder to optimize, to ensure a stack overflow occurs.
69339         * tests/test-c-stack.c (recurse): Likewise.
69340         Borrowed from libsigsegv.
69342         c-stack: work around Irix sigaltstack bug
69343         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Check
69344         whether sigaltstack uses wrong end of stack_t (copied in part from
69345         libsigsegv).
69346         * lib/c-stack.c (c_stack_action) [!HAVE_LIBSIGSEGV]: Work around
69347         Irix bug, without requiring an over-allocation.
69348         * doc/posix-functions/sigaltstack.texi (sigaltstack): Document the
69349         bug.
69351         fopen: document mingw bug on directories
69352         * doc/posix-functions/fopen.texi (fopen): Mention mingw bug for
69353         not allowing a stream visiting a directory, even though reading
69354         from such a stream is not portable.
69356 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
69358         * lib/poll.c: Rewrite.
69359         * modules/poll: Depend on alloca.
69361 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
69363         * lib/sys_socket.in.h: Do not implement rpl_setsockopt here,
69364         instead define prototypes for a full set of wrappers.  Ensure
69365         that Cygwin does not use the compatibility code, which is only
69366         for MinGW.
69367         * lib/winsock.c: New.
69368         * m4/sys_socket_h.m4: Compile lib/winsock.c if WinSock is being used.
69369         * modules/sys_socket: Add lib/winsock.c.
69371         * modules/poll-tests: Add errno and perror.
69372         * tests/test-poll.c: Use ioctl, not ioctlsocket.
69374 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
69376         * tests/test-poll.c: Downgrade minimum needed Winsock version.
69378 2008-09-23  Bruno Haible  <bruno@clisp.org>
69380         * doc/posix-functions/*: Add info about functions missing on IRIX 5.3.
69381         * doc/glibc-functions/*: Likewise.
69383 2008-09-23  Simon Josefsson  <simon@josefsson.org>
69385         * tests/test-perror.sh (tmpfiles): Cleanup temporary files on
69386         success.
69388 2008-09-22  Eric Blake  <ebb9@byu.net>
69389             Bruno Haible  <bruno@clisp.org>
69391         vasnprintf: fix x86/glibc regression on printf("%La", 0.0L)
69392         * lib/vasnprintf.c (VASNPRINTF): Support 0.0 on platforms that
69393         supply %A but mishandle pseudo-NaN.
69394         Reported by Simon Josefsson.
69396 2008-09-21  Bruno Haible  <bruno@clisp.org>
69398         * tests/test-lock.c (main): Tweak skip message.
69399         * tests/test-tls.c (main): Likewise.
69401 2008-09-21  Bruno Haible  <bruno@clisp.org>
69403         * m4/sigaction.m4 (gl_SIGACTION): Remove unnecessary AC_SUBST. Check
69404         whether 'struct sigaction' has sa_sigaction here...
69405         (gl_PREREQ_SIG_HANDLER_H): ... not here.
69406         (gl_PREREQ_SIGACTION): Remove unnecessary AC_SUBST.
69408 2008-09-21  Bruno Haible  <bruno@clisp.org>
69410         * MODULES.html.sh (Support for obsolete systems lacking ANSI C 89): New
69411         section.
69412         (Support for systems lacking ANSI C 89): Move stdlib, exit, strtol,
69413         strtoul, memchr, memcmp, memcpy, memmove, memset, strcspn, strpbrk to
69414         the new section.
69415         (Support for obsolete systems lacking POSIX:2001): New section.
69416         (String handling <string.h>): Move strdup to the new section.
69417         Suggested by Simon Josefsson and Paolo Bonzini.
69419 2008-09-21  Bruno Haible  <bruno@clisp.org>
69421         * tests/test-vasnprintf-posix.c (test_function): Allow 3-digit
69422         exponents in %e and %g results on 'long double'. Needed for mingw's
69423         improved *printf functions.
69424         * tests/test-vasprintf-posix.c (test_function): Likewise.
69425         * tests/test-snprintf-posix.h (test_function): Likewise.
69426         * tests/test-sprintf-posix.h (test_function): Likewise.
69427         Reported by Eric Blake.
69429 2008-09-21  Bruno Haible  <bruno@clisp.org>
69431         * tests/test-snprintf-posix.h (test_function): Remove useless ASSERTs.
69432         * tests/test-sprintf-posix.h (test_function): Likewise.
69434 2008-09-21  Bruno Haible  <bruno@clisp.org>
69436         * modules/getpass (Depends-on): Add strdup-posix.
69438         New module 'strdup-posix'.
69439         * modules/strdup-posix: New file.
69440         * m4/strdup.m4 (gl_FUNC_STRDUP_POSIX): New macro.
69441         * lib/string.in.h (strdup): Replace if REPLACE_STRDUP is 1.
69442         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
69443         REPLACE_STRDUP.
69444         * modules/string (Makefile.am): Substitute REPLACE_STRDUP.
69445         * doc/posix-functions/strdup.texi: Mention module strdup-posix.
69446         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
69447         strdup-posix.
69449         * modules/strdup (Depends-on): Remove malloc-posix.
69451 2008-09-20  Bruno Haible  <bruno@clisp.org>
69453         * lib/fstrcmp.c: Add data about branch probabilities, from Ralf
69454         Wildenhues.
69456 2008-09-20  Bruno Haible  <bruno@clisp.org>
69458         Ensure that wint_t gets defined on IRIX 5.3.
69459         * lib/wchar.in.h (wint_t): Define if not defined by the system.
69460         * lib/wctype.in.h (wint_t): Likewise.
69461         (__wctype_wint_t): Remove type.
69462         (isw*): Use wint_t instead of __wctype_wint_t.
69463         * m4/wchar.m4 (gl_WCHAR_H): Invoke gt_TYPE_WINT_T and set HAVE_WINT_T.
69464         * modules/wchar (Files): Add m4/wint_t.m4.
69465         (Makefile.am): Substitute HAVE_WINT_T.
69466         * tests/test-wchar.c: Check that wchar_t and wint_t are defined.
69467         * tests/test-wctype.c: Check that wint_t is defined.
69468         * doc/posix-headers/wchar.texi: Mention the IRIX 5 problem.
69469         * doc/posix-headers/wctype.texi: Likewise.
69470         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
69472 2008-09-18  Bruno Haible  <bruno@clisp.org>
69474         * gnulib-tool (func_exit): Update comment.
69476 2008-09-18  Simon Josefsson  <simon@josefsson.org>
69478         * modules/getaddrinfo (Depends-on): Remove strdup, this module
69479         assumes strdup exists and does not depend on strdup to return
69480         ENOMEM on out of memory conditions.
69482 2008-09-18  Bruno Haible  <bruno@clisp.org>
69484         * lib/vasnprintf.c (VASNPRINTF): When printing ±0.0L in
69485         NEED_PRINTF_INFINITE_LONG_DOUBLE case with 'e' format, always use two
69486         digits for the exponent.
69488 2008-09-18  Jim Meyering  <meyering@redhat.com>
69489             Bruno Haible  <bruno@clisp.org>
69491         * lib/vasnprintf.c (decimal_point_char): Define also if
69492         NEED_PRINTF_INFINITE_LONG_DOUBLE.
69494 2008-09-16  Bruno Haible  <bruno@clisp.org>
69495         and Eric Blake  <ebb9@byu.net>
69497         vasnprintf: support Irix 5.3
69498         * lib/vasnprintf.c (VASNPRINTF): Also handle -0.0L on platforms
69499         that mishandle long double infinity.
69500         Reported by Tom G. Christensen.
69502 2008-09-16  Bruno Haible  <bruno@clisp.org>
69504         * doc/glibc-functions/scandir.texi: Mention the function is missing on
69505         Solaris 9.
69506         * doc/glibc-functions/alphasort.texi: Likewise.
69507         Reported by Michael Haubenwallner <michael.haubenwallner@salomon.at>.
69509 2008-09-16  Jim Meyering  <meyering@redhat.com>
69511         posix-shell.m4: reject opensolaris's "sh (AT&T Research) 1993-12-28 s+"
69512         * m4/posix-shell.m4 (gl_POSIX_SHELL): Reject a shell that lets
69513         a umask modification leak out of a subshell.  Otherwise, the
69514         opensolaris /bin/sh would be accepted and thus cause unwarranted
69515         failures in the coreutils test suite.
69517 2008-09-16  Paolo Bonzini  <bonzini@gnu.org>
69519         * tests/test-poll.c (connect_to_socket): Allow non-blocking connect
69520         to succeed.
69522 2008-09-16  Jim Meyering  <meyering@redhat.com>
69524         avoid spurious test failure when library is built without ACL support
69525         * m4/acl.m4 (USE_ACL): Define as a shell variable, too, for...
69526         * modules/acl-tests (Makefile.am) [TESTS_ENVIRONMENT]: Add USE_ACL.
69527         * tests/test-file-has-acl.sh: Skip if USE_ACL == 0.
69528         * tests/test-copy-acl.sh: Likewise.
69530 2008-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
69532         * lib/fstrcmp.c (fstrcmp_bounded): Use a second, less quick upper bound
69533         based on character occurrence counts.
69535 2008-09-15  Eric Blake  <ebb9@byu.net>
69537         tests: avoid some compiler warnings
69538         * tests/test-memchr.c (main): Pass NULL indirectly.
69539         * tests/test-closein.c (main): Avoid unused variable.
69541 2008-09-15  Bruno Haible  <bruno@clisp.org>
69543         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Test for all the macros that
69544         are missing on OpenBSD 4.0 individually.
69545         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
69547 2008-09-15  Bruno Haible  <bruno@clisp.org>
69549         * doc/posix-headers/errno.texi: Mention the Cygwin problem.
69550         * doc/posix-functions/strerror.texi: Mention also Cygwin.
69551         * doc/posix-functions/perror.texi: Likewise.
69552         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Test also whether ECANCELED
69553         is missing.
69554         Reported by Eric Blake.
69556         * lib/errno.in.h: Use replacement values >= 2000.
69557         Reported by Eric Blake.
69559 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
69561         * lib/fstrcmp.c (EXTRA_CONTEXT_FIELDS): Add field 'edit_count_limit'.
69562         (EARLY_ABORT): Return true when the edit_count has grown too beyond the
69563         limit.
69564         (fstrcmp_bounded): Initialize the edit_count_limit. Return 0 when
69565         compareseq was aborted.
69567 2008-09-14  Bruno Haible  <bruno@clisp.org>
69569         * lib/fstrcmp.c (EXTRA_CONTEXT_FIELDS): Combine xvec_edit_count and
69570         yvec_edit_count.
69571         (NOTE_DELETE, NOTE_INSERT): Increment the combined edit count.
69572         (fstrcmp_bounded): Simplify result computation accordingly.
69574 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
69576         * lib/fstrcmp.h (fstrcmp_bounded): New declaration.
69577         (fstrcmp): Define in terms of fstrcmp_bounded.
69578         * lib/fstrcmp.c (fstrcmp_bounded): Renamed from fstrcmp. Add
69579         lower_bound argument.
69580         Return quickly if the result is certainly < lower_bound.
69581         * tests/test-fstrcmp.c (check_fstrcmp): Test also fstrcmp_bounded.
69583 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
69585         * lib/diffseq.h (EARLY_ABORT): New macro.
69586         (compareseq): Change return type to bool. Return true when EARLY_ABORT
69587         evaluates to true.
69589 2008-09-14  Bruno Haible  <bruno@clisp.org>
69591         * modules/perror-tests: New file.
69592         * tests/test-perror.sh: New file.
69593         * tests/test-perror.c: New file.
69595         New module 'perror'.
69596         * lib/stdio.in.h (perror): New declaration.
69597         * lib/perror.c: New file.
69598         * m4/perror.m4: New file.
69599         * modules/perror: New file.
69600         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add perror.
69601         * doc/posix-functions/perror.texi: Mention the perror module.
69602         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_PERROR,
69603         REPLACE_PERROR.
69604         * modules/stdio (Makefile.am): Substitute GNULIB_PERROR,
69605         REPLACE_PERROR.
69607 2008-09-14  Bruno Haible  <bruno@clisp.org>
69609         * modules/stdio (Makefile.am): Reorder to match the order in
69610         lib/stdio.in.h.
69611         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
69613 2008-09-13  Bruno Haible  <bruno@clisp.org>
69615         * lib/sys_socket.in.h (EINPROGRESS, ...): Remove definitions.
69617 2008-09-13  Bruno Haible  <bruno@clisp.org>
69619         Extend strerror to cover the added errno values.
69620         * lib/strerror.c: Include errno.h and winsock2.h if it exists.
69621         (rpl_strerror): Provide error messages for the added errno values and
69622         for the WSA* values.
69623         * m4/strerror.m4 (gl_FUNC_STRERROR): Test REPLACE_STRERROR.
69624         (gl_FUNC_STRERROR_SEPARATE): If errno.h is replaced, always replace
69625         strerror.
69626         (gl_PREREQ_STRERROR): Test whether winsock2.h exists.
69627         * modules/strerror (Depends-on): Add errno.
69628         * doc/posix-functions/strerror.texi: Document the change.
69629         * tests/test-strerror.c (main): Check also the string for ETIMEDOUT
69630         and EOVERFLOW.
69632 2008-09-13  Bruno Haible  <bruno@clisp.org>
69634         * modules/EOVERFLOW: Remove file.
69635         * m4/eoverflow.m4: Remove file.
69636         * modules/EOVERFLOW-tests: Remove file.
69637         * tests/test-EOVERFLOW.c: Remove file.
69638         * modules/fprintf-posix (Depends-on): Replace EOVERFLOW with errno.
69639         * modules/ftell (Depends-on): Likewise.
69640         * modules/getdelim (Depends-on): Likewise.
69641         * modules/getugroups (Depends-on): Likewise.
69642         * modules/poll (Depends-on): Likewise.
69643         * modules/snprintf (Depends-on): Likewise.
69644         * modules/sprintf-posix (Depends-on): Likewise.
69645         * modules/vasnprintf (Depends-on): Likewise.
69646         * modules/vasprintf (Depends-on): Likewise.
69647         * modules/vfprintf-posix (Depends-on): Likewise.
69648         * modules/vsnprintf (Depends-on): Likewise.
69649         * modules/vsprintf-posix (Depends-on): Likewise.
69650         * modules/xvasprintf (Depends-on): Likewise.
69651         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
69652         * modules/unistdio/u8-vasprintf (Depends-on): Likewise.
69653         * modules/unistdio/u8-vsnprintf (Depends-on): Likewise.
69654         * modules/unistdio/u8-vsprintf (Depends-on): Likewise.
69655         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
69656         * modules/unistdio/u8-u8-vasprintf (Depends-on): Likewise.
69657         * modules/unistdio/u8-u8-vsnprintf (Depends-on): Likewise.
69658         * modules/unistdio/u8-u8-vsprintf (Depends-on): Likewise.
69659         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
69660         * modules/unistdio/u16-u16-vasprintf (Depends-on): Likewise.
69661         * modules/unistdio/u16-u16-vsnprintf (Depends-on): Likewise.
69662         * modules/unistdio/u16-u16-vsprintf (Depends-on): Likewise.
69663         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
69664         * modules/unistdio/u16-vasprintf (Depends-on): Likewise.
69665         * modules/unistdio/u16-vsnprintf (Depends-on): Likewise.
69666         * modules/unistdio/u16-vsprintf (Depends-on): Likewise.
69667         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
69668         * modules/unistdio/u32-vasprintf (Depends-on): Likewise.
69669         * modules/unistdio/u32-vsnprintf (Depends-on): Likewise.
69670         * modules/unistdio/u32-vsprintf (Depends-on): Likewise.
69671         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
69672         * modules/unistdio/u32-u32-vasprintf (Depends-on): Likewise.
69673         * modules/unistdio/u32-u32-vsnprintf (Depends-on): Likewise.
69674         * modules/unistdio/u32-u32-vsprintf (Depends-on): Likewise.
69675         * modules/unistdio/ulc-fprintf (Depends-on): Likewise.
69676         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
69677         * modules/unistdio/ulc-vasprintf (Depends-on): Likewise.
69678         * modules/unistdio/ulc-vfprintf (Depends-on): Likewise.
69679         * modules/unistdio/ulc-vsnprintf (Depends-on): Likewise.
69680         * modules/unistdio/ulc-vsprintf (Depends-on): Likewise.
69681         * MODULES.html.sh: Remove EOVERFLOW.
69682         * NEWS: Mention the change.
69684 2008-09-13  Bruno Haible  <bruno@clisp.org>
69686         * modules/errno-tests: New file.
69687         * tests/test-errno.c: New file, incorporating tests/test-EOVERFLOW.c.
69689         * lib/errno.in.h: New file.
69690         * m4/errno_h.m4: New file, borrowing from m4/eoverflow.m4.
69691         * modules/errno: New file.
69692         * doc/posix-headers/errno.texi: Update documentation.
69693         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add errno.
69695 2008-09-13  Bruno Haible  <bruno@clisp.org>
69697         * tests/test-poll.c: Use #if for native Windows, rather than testing
69698         __MSVCRT__.
69700 2008-09-13  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
69701             Bruno Haible  <bruno@clisp.org>
69703         * lib/glob.c: Don't include <pwd.h> on native Windows.
69704         (WINDOWS32): New macro.
69705         (glob) [WINDOW32]: Provide a reasonable replacement for getenv("HOME").
69707 2008-09-13  Bruno Haible  <bruno@clisp.org>
69709         * lib/glthread/cond.h [USE_SOLARIS_THREADS]
69710         (ETIMEDOUT): Remove macro.
69711         (glthread_cond_timedwait_multithreaded): New declaration.
69712         (glthread_cond_timedwait): Use it.
69713         * lib/glthread/cond.c [USE_SOLARIS_THREADS]
69714         (glthread_cond_timedwait_multithreaded): New function.
69716 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
69718         * modules/poll-tests: Do not check for io.h.
69719         * tests/test-poll.c: Check for __MSVCRT__ instead.
69721 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
69723         * lib/sys_socket.in.h (EINPROGRESS): Define for Winsock case.
69724         * modules/poll-tests: Add inet_pton, stdbool, sockets.
69725         * tests/test-poll.c: Use them.  Use _pipe on Windows.
69727 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
69729         * modules/poll-tests: New.
69730         * tests/test-poll.c: New.
69732 2008-09-12  Eric Blake  <ebb9@byu.net>
69734         frexp: test for NetBSD failure on -0.0
69735         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Enhance test, since some, but
69736         not all, bugs from NetBSD 3.0 have been fixed.
69737         * doc/posix-functions/frexp.texi (frexp): Document bug.
69738         Reported by Thomas Klausner.
69740         signbit: work around bug of HP-UX 10.20 cc with -0.0 literal
69741         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Rewrite test to avoid
69742         literal -0.0.
69743         Reported by Jonathan C. Patschke <jp@centtech.com>.
69745 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
69747         * lib/glthread/cond.h: Use dummy implementation also if
69748         USE_WIN32_THREADS.
69750 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
69752         * modules/fnmatch-posix (License): Change to LGPLv2+.
69753         * modules/fnmatch-gnu (License): Likewise.
69755 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
69757         * lib/poll.c (poll): Fix polling unconnected server sockets on WIN32.
69759 2008-09-11  Jim Meyering  <meyering@redhat.com>
69761         * users.txt: Add gtk-vnc.
69763 2008-09-08  Simon Josefsson  <simon@josefsson.org>
69765         * tests/test-bitrotate.c: Test 8/16-bit rotates with 0 and maximum
69766         rotate amounts.
69768         * lib/bitrotate.h: Doc fix, mention that N can be wider than minimally
69769         required for 16-bit and 8-bit rotates.
69770         * lib/bitrotate.h (rotl64, rotr64, rotl32, rotl32, rotl16, rotr16,
69771         rotl8, rotr8): Use UINT64_MAX, UINT32_MAX, UINT16_MAX, and
69772         UINT8_MAX instead of hard-coded constants.
69773         Suggested by Paul Eggert.
69775 2008-09-07  Bruno Haible  <bruno@clisp.org>
69777         * tests/test-striconveh.c (main): Check behaviour when converting from
69778         UTF-7.
69780         Make striconveh work better with stateful encodings.
69781         * lib/striconveh.c (iconv_carefully, iconv_carefully_1): Don't assume
69782         that iconv does not increment the inptr when returning -1/EINVAL.
69784 2008-09-07  Bruno Haible  <bruno@clisp.org>
69786         * build-aux/config.rpath: Update according to libtool-2.2.6.
69787         * build-aux/config.libpath: Likewise.
69789 2008-09-06  Bruno Haible  <bruno@clisp.org>
69791         * lib/freadahead.c (freadahead): Add conditional for SLOW_BUT_NO_HACKS.
69792         * lib/freadptr.c (freadptr): Likewise.
69793         * lib/freadseek.c (freadptrinc): Likewise.
69794         Reported by Simon Josefsson.
69796 2008-09-06  Bruno Haible  <bruno@clisp.org>
69798         * modules/freadptr (License): Change to LGPLv2+.
69799         * modules/freadseek (License): Likewise.
69800         Suggested by Eric Blake.
69802         * modules/memchr2 (License): Change to LGPLv2+.
69803         Approved by Eric Blake.
69805 2008-09-04  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
69806             Bruno Haible  <bruno@clisp.org>
69808         Make gnulib-tool work with native 'sed' on AIX.
69809         * gnulib-tool (sed_noop): New variable.
69810         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am, func_import,
69811         func_add_or_update, func_create_testdir): Use it to initialize sed
69812         script variables.
69813         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
69815 2008-09-04  Albert Chin  <bug-gnulib@mlists.thewrittenword.com>
69816             Bruno Haible  <bruno@clisp.org>
69818         * m4/include_next.m4 (gl_INCLUDE_NEXT): Add check whether #include_next
69819         also works after #include directives.
69821 2008-09-04  Ondřej Vašík  <ovasik@redhat.com>
69823         getdate.y: reject an out-of-range timezone value
69824         * lib/getdate.y (time_zone_hhmm): Reject any TZ offset that is outside
69825         the range [-24...+24].  When specified with only one or two digits,
69826         * tests/test-getdate.c: Tests for the fix.
69827         * doc/getdate.texi: Document this change.
69829 2008-09-03  Bruno Haible  <bruno@clisp.org>
69831         * doc/glibc-functions/strverscmp.texi: Mention the strverscmp module.
69833 2008-09-02  Simon Josefsson  <simon@josefsson.org>
69835         * lib/bitrotate.h (rotl64, rotr64): Add.  Suggested by Bruce Korb
69836         <bruce.korb@gmail.com> with ideas from Ben Pfaff
69837         <blp@cs.stanford.edu>, Bruno Haible <bruno@clisp.org> and Eric
69838         Blake <ebb9@byu.net>.
69840         * tests/test-bitrotate.c: Add more test vectors.
69842 2008-09-02  Eric Blake  <ebb9@byu.net>
69844         vasnprintf-posix: handle large precision via %.*d
69845         * lib/vasnprintf.c (VASNPRINTF): Don't pass precision to snprintf
69846         when handling it ourselves.
69847         * tests/test-vasnprintf-posix.c (test_function): Add test.
69848         * tests/test-snprintf-posix.h (test_function): Likewise.
69849         * tests/test-sprintf-posix.h (test_function): Likewise.
69850         * tests/test-vasprintf-posix.c (test_function): Likewise.
69851         Reported by Alain Guibert.
69853 2008-09-01  Eric Blake  <ebb9@byu.net>
69855         c-stack: make configure-time check more robust
69856         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Check for
69857         successful sigaction call.
69858         Reported by Tom G. Christensen.
69860 2008-09-01  Bruno Haible  <bruno@clisp.org>
69862         New module 'findprog-lgpl'.
69863         * modules/findprog-lgpl: New file.
69864         * lib/findprog-lgpl.c: New file.
69865         * lib/findprog.c: Compile nothing in findprog.c if findprog-lgpl.c is
69866         also compiled. Consider the possibly defined symbol IN_FINDPROG_LGPL
69867         to decide whether to use strdup or xstrdup, concatenated_filename or
69868         xconcatenated_filename.
69870 2008-09-01  Bruno Haible  <bruno@clisp.org>
69872         Split module 'concat-filename' into 'concat-filename' (LGPL) and
69873         'xconcat-filename' (GPL).
69874         * modules/concat-filename (Depends-on): Add malloc-posix, remove xalloc.
69875         (License): Change to LGPLv2+.
69876         * modules/xconcat-filename: New file.
69877         * lib/concat-filename.h (concatenated_filename): Change specification.
69878         (xconcatenated_filename): New declaration.
69879         * lib/concat-filename.c: Include errno.h, stdlib.h, not xalloc.h.
69880         (concatenated_filename): Use malloc instead of xalloc. Handle out-of-
69881         memory situations.
69882         * lib/xconcat-filename.c: New file.
69883         * NEWS: Mention the change.
69884         * lib/findprog.c: Include concat-filename.h, not filename.h.
69885         (find_in_path): Use xconcatenated_filename instead of
69886         concatenated_filename.
69887         * lib/javacomp.c: Include concat-filename.h, not filename.h.
69888         (is_envjavac_gcj43_usable, is_envjavac_oldgcj_14_14_usable,
69889         is_envjavac_oldgcj_14_13_usable, is_envjavac_nongcj_usable,
69890         is_gcj_present, is_gcj43_usable, is_oldgcj_14_14_usable,
69891         is_oldgcj_14_13_usable, is_javac_usable): Use xconcatenated_filename
69892         instead of concatenated_filename.
69893         * lib/javaexec.c: Include concat-filename.h, not filename.h.
69894         (execute_java_class): Use xconcatenated_filename instead of
69895         concatenated_filename.
69896         * modules/findprog (Depends-on): Add xconcat-filename, remove filename.
69897         * modules/javacomp (Depends-on): Likewise.
69898         * modules/javaexec (Depends-on): Likewise.
69900 2008-09-01  Bruno Haible  <bruno@clisp.org>
69902         Split module 'filename' into 'filename' and 'concat-filename'.
69903         * modules/filename: Keep only lib/filename.h.
69904         (License): Change to LGPLv2+.
69905         * modules/concat-filename: New file, extracted from modules/filename.
69906         * lib/filename.h (concatenated_filename): Remove declaration.
69907         * lib/concat-filename.h: New file, extracted from lib/filename.h.
69908         * lib/concat-filename.c: Include concat-filename.h.
69909         * NEWS: Mention the change.
69911 2008-09-01  Simon Josefsson  <simon@josefsson.org>
69913         * lib/bitrotate.h (rotl8, rotr8): Add.
69915         * modules/bitrotate (configure.ac): Need
69916         AC_REQUIRE([AC_C_INLINE]).
69917         (Description): Mention stdint.h.  Reported by Bruno Haible
69918         <bruno@clisp.org>.
69920         * lib/bitrotate.h (rotr16, rotl16): Fix mask value.  Reported by
69921         Paolo Bonzini <bonzini@gnu.org>.
69923 2008-08-31  Bruno Haible  <bruno@clisp.org>
69925         Assume Solaris specific bi-arch conventions on Solaris systems.
69926         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): On Solaris in 64-bit
69927         mode, set acl_libdirstem to lib/64. Also set acl_libdirstem2.
69928         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): If acl_libdirstem does not
69929         work, try acl_libdirstem2 as fallback. Otherwise treat acl_libdirstem2
69930         like acl_libdirstem.
69931         (AC_LIB_LINKFLAGS_FROM_LIBS): Treat acl_libdirstem2 like
69932         acl_libdirstem.
69933         * NEWS: Mention the change.
69934         Reported by Ben Taylor <bentaylor.solx86@gmail.com>.
69936 2008-08-31  Jim Meyering  <meyering@redhat.com>
69938         * lib/strftime.h: Add comments describing the two added arguments.
69940         remove duplicate #include directives
69941         * lib/chdir-long.c [TEST_CHDIR]: Remove duplicate #include <stdio.h>.
69942         * lib/putenv.c: Remove duplicate #include <stdlib.h>.
69944 2008-08-31  Bruno Haible  <bruno@clisp.org>
69946         New module 'sigpipe-die'.
69947         * modules/sigpipe-die: New file.
69948         * lib/sigpipe-die.h: New file.
69949         * lib/sigpipe-die.c: New file.
69950         * MODULES.html.sh (Signal handling): Add sigpipe-die.
69952 2008-08-31  Bruno Haible  <bruno@clisp.org>
69954         Don't override previously installed signal handlers.
69955         * lib/fatal-signal.c (saved_sigactions): New variable.
69956         (uninstall_handlers): Reset the signal to the saved handler, not
69957         to SIG_DFL (except when ignored).
69958         (install_handlers): Save the previous handlers.
69960 2008-08-30  Bruno Haible  <bruno@clisp.org>
69962         * gnulib-tool (func_reset_sigpipe): New function.
69963         (func_get_automake_snippet, func_modules_transitive_closure,
69964         func_import): Invoke it before a join command that reads from stdin,
69965         to avoid "echo: write error: Broken pipe" error messages on stderr.
69966         Reported by Sam Steingold <sds@gnu.org>.
69968 2008-08-30  Bruno Haible  <bruno@clisp.org>
69970         * m4/fopen.m4 (gl_FUNC_FOPEN): Test against bug with trailing slash.
69971         Code copied from m4/open.m4.
69972         * lib/fopen.c (rpl_fopen): Return NULL if the mode specifies write
69973         access and the filename ends in a slash. Code copied from lib/open.c.
69974         * doc/posix-functions/fopen.texi: Document bug with trailing slash.
69975         * tests/test-fopen.c (main): Check against bug with trailing slash.
69977 2008-08-29  Bruno Haible  <bruno@clisp.org>
69979         Avoid some "gcc -pedantic" warnings.
69980         * m4/include_next.m4 (gl_INCLUDE_NEXT): Set also PRAGMA_SYSTEM_HEADER.
69981         * lib/arpa_inet.in.h: Use PRAGMA_SYSTEM_HEADER.
69982         * lib/dirent.in.h: Likewise.
69983         * lib/fcntl.in.h: Likewise.
69984         * lib/float.in.h: Likewise.
69985         * lib/iconv.in.h: Likewise.
69986         * lib/inttypes.in.h: Likewise.
69987         * lib/locale.in.h: Likewise.
69988         * lib/math.in.h: Likewise.
69989         * lib/netinet_in.in.h: Likewise.
69990         * lib/search.in.h: Likewise.
69991         * lib/signal.in.h: Likewise.
69992         * lib/stdarg.in.h: Likewise.
69993         * lib/stdint.in.h: Likewise.
69994         * lib/stdio.in.h: Likewise.
69995         * lib/stdlib.in.h: Likewise.
69996         * lib/string.in.h: Likewise.
69997         * lib/strings.in.h: Likewise.
69998         * lib/sys_select.in.h: Likewise.
69999         * lib/sys_socket.in.h: Likewise.
70000         * lib/sys_stat.in.h: Likewise.
70001         * lib/sys_time.in.h: Likewise.
70002         * lib/sysexits.in.h: Likewise.
70003         * lib/time.in.h: Likewise.
70004         * lib/unistd.in.h: Likewise.
70005         * lib/wchar.in.h: Likewise.
70006         * lib/wctype.in.h: Likewise.
70007         * modules/arpa_inet (Makefile.am): Also substitute PRAGMA_SYSTEM_HEADER.
70008         * modules/fchdir (Makefile.am): Likewise.
70009         * modules/fcntl (Makefile.am): Likewise.
70010         * modules/float (Makefile.am): Likewise.
70011         * modules/iconv_open (Makefile.am): Likewise.
70012         * modules/inttypes (Makefile.am): Likewise.
70013         * modules/locale (Makefile.am): Likewise.
70014         * modules/math (Makefile.am): Likewise.
70015         * modules/netinet_in (Makefile.am): Likewise.
70016         * modules/search (Makefile.am): Likewise.
70017         * modules/signal (Makefile.am): Likewise.
70018         * modules/stdarg (Makefile.am): Likewise.
70019         * modules/stdint (Makefile.am): Likewise.
70020         * modules/stdio (Makefile.am): Likewise.
70021         * modules/stdlib (Makefile.am): Likewise.
70022         * modules/string (Makefile.am): Likewise.
70023         * modules/strings (Makefile.am): Likewise.
70024         * modules/sys_select (Makefile.am): Likewise.
70025         * modules/sys_socket (Makefile.am): Likewise.
70026         * modules/sys_stat (Makefile.am): Likewise.
70027         * modules/sys_time (Makefile.am): Likewise.
70028         * modules/sysexits (Makefile.am): Likewise.
70029         * modules/time (Makefile.am): Likewise.
70030         * modules/unistd (Makefile.am): Likewise.
70031         * modules/wchar (Makefile.am): Likewise.
70032         * modules/wctype (Makefile.am): Likewise.
70033         Reported by Reuben Thomas <rrt@sc3d.org>.
70035 2008-08-29  Bruno Haible  <bruno@clisp.org>
70037         * m4/include_next.m4 (gl_INCLUDE_NEXT): Don't define HAVE_INCLUDE_NEXT
70038         any more.
70040 2008-08-29  Simon Josefsson  <simon@josefsson.org>
70042         * MODULES.html.sh (Misc): Add bitrotate.
70044         * modules/bitrotate: New file.
70046         * lib/bitrotate.h: New file.
70048         * modules/bitrotate-tests: New file.
70050         * tests/test-bitrotate.c: New file.
70052         * modules/crypto/gc-arctwo, modules/crypto/arctwo: Add dependency
70053         on the bitrotate module.
70055         * lib/arctwo.c: Use new bitrotate module.
70057 2008-08-29  Jim Meyering  <meyering@redhat.com>
70059         bootstrap: merge changes from coreutils
70060         * build-aux/bootstrap (cp_mark_as_generated): Preserve perms
70061         of copied files.  Remove a kludge, now that this is fixed.
70062         * build-aux/bootstrap: Fix unportable expr usage. (by Ralf Wildenhues)
70063         * build-aux/bootstrap: Remove $bt and $bt2 also when not using gettext.
70064         * build-aux/bootstrap: Remove coreutils-specific SUBDIRS-related code.
70066 2008-08-29  Bruno Haible  <bruno@clisp.org>
70068         * MODULES.html.sh: Remove --cvs-urls option.
70070 2008-08-28  Jose E. Marchesi  <jemarch@gnu.org>  (tiny change)
70072         maint.mk: adjust to file name change
70073         * top/maint.mk: s/Makefile.cfg/cfg.mk/.
70075 2008-08-28  Jim Meyering  <meyering@redhat.com>
70077         * modules/getndelim2 (License): Relicense to LGPLv2+.
70078         Approved by Richard Stallman for the version of 1995, and by
70079         Paul Eggert, Bruno Haible, Eric Blake for their contributions.
70081 2008-08-27  Paolo Bonzini  <bonzini@gnu.org>
70083         * lib/getdelim.c (flockfile, funlockfile): Make all of them
70084         dummy if one is not available.  Do not touch them if
70085         USE_UNLOCKED_IO, instead letting unlocked-io.h do that.
70086         (getc_maybe_unlocked): New.
70087         * m4/getdelim.m4 (gl_PREREQ_GETDELIM): Check for getc_unlocked.
70089 2008-08-26  Eric Blake  <ebb9@byu.net>
70091         doc/INSTALL: resync from autoconf
70092         * doc/Makefile (INSTALL, INSTALL.ISO, INSTALL.UTF-8): Simplify.
70093         (INSTALL_PRELUDE): Delete; this is done more efficiently by
70094         moving...
70095         * install.texi [!autoconf]: ...here.  Resync from autoconf.
70096         * INSTALL: Regenerate.
70097         * INSTALL.ISO: New file.
70098         * INSTALL.UTF-8: Likewise.
70100 2008-08-26  Jim Meyering  <meyering@redhat.com>
70102         GNUmakefile: cfg.mk definitions override default autoreconf-rerun policy
70103         * top/GNUmakefile (_is-dist-target, _is-install-target): Make
70104         these definitions conditional, so that they may be overridden, too.
70106 2008-08-26  Bruno Haible  <bruno@clisp.org>
70108         Generate INSTALL file variants with prettier quotes.
70109         * doc/Makefile (INSTALL_PRELUDE): New macro.
70110         (INSTALL): Use it.
70111         (INSTALL.ISO, INSTALL.UTF-8): New rules.
70113 2008-08-26  Bruno Haible  <bruno@clisp.org>
70115         Run makeinfo in an English locale.
70116         * doc/Makefile (MAKEINFO): New variable.
70118 2008-08-26  Bruno Haible  <bruno@clisp.org>
70120         * doc/Makefile (INSTALL): Use --no-validate instead of --no-warn.
70121         Suggested by Eric Blake.
70123 2008-08-25  Bruno Haible  <bruno@clisp.org>
70125         * doc/Makefile (INSTALL): Generate with @firstparagraphindent set.
70127 2008-08-25  Eric Blake  <ebb9@byu.net>
70129         c-stack: test that stack overflow can be caught
70130         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Also check
70131         that platform allows handling stack overflow; at least OS/2 EMX
70132         has sigaltstack, but crashes before transferring control to
70133         handler on stack overflow.
70134         * lib/c-stack.c [HAVE_SIGALTSTACK]: Adjust conditions to also
70135         check for HAVE_STACK_OVERFLOW_HANDLING.
70136         Reported by Elbert Pol.
70138 2008-08-25  Bruno Haible  <bruno@clisp.org>
70140         * doc/posix-functions/strftime.texi: Fix description of strftime
70141         module.
70143 2008-08-24  Bruno Haible  <bruno@clisp.org>
70145         * tests/uniwidth/test-uc_width2.c: New file.
70146         * tests/uniwidth/test-uc_width2.sh: New file.
70147         * modules/uniwidth/width-tests (Files): Add the new files.
70148         (TESTS): Add uniwidth/test-uc_width2.sh.
70149         (TESTS_ENVIRONMENT): New variable.
70150         (check_PROGRAMS): Add test-uc_width2.
70151         (test_uc_width2_SOURCES): New variable.
70153         Fix uc_width(0x00AB) bug, introduced on 2007-07-08.
70154         * lib/uniwidth/width.c (nonspacing_table_data): Set bit for 0x00AD,
70155         not 0x00AB.
70156         Reported by Alexander V. Lukyanov <lav@netis.ru>.
70158 2008-08-22  Eric Blake  <ebb9@byu.net>
70160         test-lock, test-tls: mention why a test is skipped
70161         * tests/test-lock.c (main) [!USE_*_THREADS]: Print why test is
70162         skipped.
70163         * tests/test-tls.c (main) [!USE_*_THREADS]: Likewise.
70165         count-one-bits: relax license
70166         * modules/count-one-bits (License): Relicense to LGPLv2+.
70167         Suggested by Ludovic Courtès, approved by Ben Pfaff.
70169 2008-08-22  Andreas Schwab  <schwab@suse.de>
70171         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX):
70172         Remove spurious space in assignment.
70174 2008-08-21  Simon Josefsson  <simon@josefsson.org>
70176         * m4/autobuild.m4: Use TZ=UTC0 instead of TZ=UTC.  Reported by
70177         Paul Eggert <eggert@CS.UCLA.EDU>.
70179 2008-08-20  Paolo Bonzini  <bonzini@gnu.org>
70181         * modules/gettext: Add m4/threadlib.m4.
70183 2008-08-19  Eric Blake  <ebb9@byu.net>
70185         test-c-stack: fix compilation failure on FreeBSD 5.0
70186         * tests/test-c-stack.c [HAVE_SETRLIMIT]: Include prerequisite
70187         headers before <sys/resource.h>.
70188         * doc/posix-headers/sys_resource.texi (sys/resource.h): Document
70189         the bug.
70190         Reported by Nelson H. F. Beebe.
70192         strverscmp: migrate from "strverscmp.h" to <string.h>
70193         * modules/string (Makefile.am): Add new hooks.
70194         * modules/strverscmp (Files): Remove strverscmp.h.
70195         (Depends-on): Add string.
70196         (configure.ac): Add indicator.
70197         (Include): Mention new header.
70198         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Provide new
70199         defaults.
70200         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Inform string module of
70201         results.
70202         * lib/strverscmp.h: Delete.
70203         * lib/string.in.h (strverscmp): Provide declaration, when needed.
70204         * tests/test-strverscmp.c (includes): Adjust client.
70205         * lib/check-version.c (includes): Likewise.
70206         * NEWS: Document the change.
70208         strverscmp: add unit test
70209         * modules/strverscmp-tests: New file.
70210         * tests/test-strverscmp.c: Likewise.
70212 2008-08-19  Simon Josefsson  <simon@josefsson.org>
70214         * lib/gc-gnulib.c: Indentation cleanup.  Add some comments
70215         regarding Windows crypto stuff, from Mono.
70217 2008-08-19  Adam Strzelecki  <ono@java.pl>  (tiny change)
70219         * lib/gc-gnulib.c: Use CRYPT_VERIFY_CONTEXT.  Try to use Intel CSP
70220         if present, for intel RND.  Return error on failures.
70222 2008-08-18  Ben Pfaff  <blp@gnu.org>
70224         gitlog-to-changelog: give better diagnostic for failed pipe-open
70225         * build-aux/gitlog-to-changelog: Improve error message: suggest
70226         that the version of Git may be too old.
70228 2008-08-18  Simon Josefsson  <simon@josefsson.org>
70230         * m4/autobuild.m4: Use TZ=UTC to avoid time zone complexity.  Use
70231         ISO 8601 format.  Suggested by Greg Troxel <gdt@ir.bbn.com>.
70233 2008-08-18  Bruno Haible  <bruno@clisp.org>
70235         * lib/glthread/thread.h [USE_SOLARIS_THREADS]: Use thread_in_use(), not
70236         pthread_in_use().
70238 2008-08-18  Bruno Haible  <bruno@clisp.org>
70240         * lib/glthread/threadlib.c: Include <pthread.h>.
70242 2008-08-18  Bruno Haible  <bruno@clisp.org>
70244         * lib/glthread/lock.h [USE_SOLARIS_THREADS]: Fix
70245         glthread_recursive_lock_* macros.
70246         * lib/glthread/lock.c (glthread_recursive_lock_destroy_multithreaded):
70247         Fix syntax error.
70249 2008-08-18  Bruno Haible  <bruno@clisp.org>
70251         * lib/glthread/thread.c: Avoid forcing a context switch right after
70252         thread creation.
70254 2008-08-17  Bruno Haible  <bruno@clisp.org>
70256         * lib/glthread/thread.c: New file, based on code from tests/test-lock.c.
70257         * lib/glthread/thread.h: Provide Win32 specific implementation.
70258         * modules/thread (Files): Add lib/glthread/thread.c.
70259         (Depends-on): Add lock.
70260         (Makefile.am): Add glthread/thread.c to lib_SOURCES.
70262 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
70264         New module 'yield'.
70265         * modules/yield: New file.
70266         * lib/glthread/yield.h: New file.
70267         * m4/yield.m4: New file.
70268         * MODULES.html.sh (Multithreading): Add yield.
70270 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
70272         New module 'thread'.
70273         * modules/thread: New file.
70274         * lib/glthread/thread.h: New file.
70275         * m4/thread.m4: New file.
70276         * MODULES.html.sh (Multithreading): Add thread.
70278 2008-08-17  Bruno Haible  <bruno@clisp.org>
70280         * lib/glthread/lock.h: Include <stdlib.h> always.
70281         * lib/glthread/tls.h: Likewise.
70282         * lib/glthread/cond.h: Likewise.
70284 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
70286         New module 'cond'.
70287         * modules/cond: New file.
70288         * lib/glthread/cond.h: New file.
70289         * lib/glthread/cond.c: New file.
70290         * m4/cond.m4: New file.
70291         * MODULES.html.sh (Multithreading): Add cond.
70293 2008-08-16  Eric Blake  <ebb9@byu.net>
70295         c-stack: fix regression on Irix 5.3 from 2008-06-21
70296         * m4/c-stack.m4 (gl_PREREQ_C_STACK): Move check for
70297         sa_sigaction...
70298         * m4/sigaction.m4 (gl_PREREQ_SIG_HANDLER_H): ...here.
70299         (gl_PREREQ_SIGACTION): Depend on sig-handler.h prereq's.
70300         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Set the default.
70301         * modules/signal (Makefile.am): Use the value.
70302         * lib/signal.in.h (sa_sigaction) [HAVE_SIGACTION
70303         && !HAVE_STRUCT_SIGACTION_SA_SIGACTION]: Define.
70304         * doc/posix-headers/signal.texi (signal.h): Document this
70305         portability issue.
70306         * doc/posix-functions/sigaction.texi (sigaction): Likewise.
70307         Reported by Tom G. Christensen.
70309 2008-08-17  Bruno Haible  <bruno@clisp.org>
70311         New module 'threadlib'.
70312         * modules/threadlib: New file.
70313         * lib/glthread/threadlib.c: New file, extracted from
70314         lib/glthread/lock.c.
70315         * lib/glthread/lock.c (dummy_thread_func, glthread_in_use): Remove
70316         functions.
70317         * m4/threadlib.m4: New file, from m4/lock.m4, renaming gl_LOCK to
70318         gl_THREADLIB and gl_LOCK_EARLY to gl_THREADLIB_EARLY.
70319         * m4/lock.m4 (gl_LOCK_EARLY, gl_LOCK_EARLY_BODY, gl_LOCK_BODY): Remove
70320         macros.
70321         (gl_LOCK): Just require gl_THREADLIB and perform checks for lock.h.
70322         (gl_DISABLE_THREADS): Remove macro.
70323         * modules/lock (Files): Remove build-aux/config.rpath.
70324         (Depends-on): Remove havelib. Add threadlib.
70325         (configure.ac-early): Remove section.
70326         * m4/tls.m4 (gl_TLS): Require gl_THREADLIB instead of gl_LOCK.
70327         * modules/tls (Depends-on): Remove lock. Add threadlib.
70328         (Link): New section, copied from threadlib.
70329         * MODULES.html.sh (Multithreading): Add threadlib.
70331 2008-08-14  Bruno Haible  <bruno@clisp.org>
70333         * lib/glthread/lock.h (glthread_lock_lock, glthread_lock_unlock,
70334         glthread_lock_destroy, glthread_rwlock_rdlock, glthread_rwlock_wrlock,
70335         glthread_rwlock_unlock, glthread_rwlock_destroy,
70336         glthread_recursive_lock_lock, glthread_recursive_lock_unlock,
70337         glthread_recursive_lock_destroy): Define as macros always.
70338         * lib/glthread/lock.c (glthread_lock_lock_func): Renamed from
70339         glthread_lock_lock.
70340         (glthread_lock_unlock_func): Renamed from glthread_lock_unlock.
70341         (glthread_lock_destroy_func): Renamed from glthread_lock_destroy.
70342         (glthread_rwlock_rdlock_func): Renamed from glthread_rwlock_rdlock.
70343         (glthread_rwlock_wrlock_func): Renamed from glthread_rwlock_wrlock.
70344         (glthread_rwlock_unlock_func): Renamed from glthread_rwlock_unlock.
70345         (glthread_rwlock_destroy_func): Renamed from glthread_rwlock_destroy.
70346         (glthread_recursive_lock_lock_func): Renamed from
70347         glthread_recursive_lock_lock.
70348         (glthread_recursive_lock_unlock_func): Renamed from
70349         glthread_recursive_lock_unlock.
70350         (glthread_recursive_lock_destroy_func): Renamed from
70351         glthread_recursive_lock_destroy.
70353 2008-08-14  Bruno Haible  <bruno@clisp.org>
70355         * lib/glthread/lock.h: Renamed from lib/lock.h.
70356         * lib/glthread/lock.c: Renamed from lib/lock.c. Update includes.
70357         * lib/glthread/tls.h: Renamed from lib/tls.h.
70358         * lib/glthread/tls.c: Renamed from lib/tls.c. Update includes.
70359         * lib/fstrcmp.c: Update includes.
70360         * lib/strsignal.c: Update includes.
70361         * modules/lock (Files, Makefile.am): Update.
70362         (Include): Change to "glthread/lock.h".
70363         * modules/tls (Files, Makefile.am): Update.
70364         (Include): Change to "glthread/tls.h".
70365         * tests/test-lock.c: Update includes.
70366         * tests/test-tls.c: Update includes.
70367         * NEWS: Mention the renamed header files.
70369 2008-08-11  Jim Meyering  <meyering@redhat.com>
70371         * lib/fts_.h: Fix grammar (insert a missing "is") in a comment.
70373 2008-08-11  Eric Blake  <ebb9@byu.net>
70375         test-c-stack: avoid C99-ism
70376         * tests/test-c-stack.c (main): Fix whitespace, move declaration
70377         before statement.
70378         Reported by Alain Guibert.
70380 2008-08-10  Jim Meyering  <meyering@redhat.com>
70382         ensure that return value of uinttostr et al are not ignored
70383         * lib/inttostr.h (__GNUC_PREREQ): Define.
70384         (__attribute_warn_unused_result__): Define.
70385         (offtostr, imaxtostr, umaxtostr, uinttostr): Apply the attribute.
70387 2008-08-07  Paolo Bonzini  <bonzini@gnu.org>
70389         * lib/lock.c (glthread_recursive_lock_init_multithreaded)
70390         [!PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: Fix typo.
70392 2008-08-07  Jim Meyering  <meyering@redhat.com>
70394         * m4/inet_pton.m4: Fix typo in comment: s/inet_ntop/inet_pton/.
70396         * modules/mkstemp (License): Relicense under LGPLv2+.
70397         * modules/tempname (License): Likewise.
70399 2008-08-06  Bruno Haible  <bruno@clisp.org>
70401         * lib/poll.c (poll): Further micro-optimization.
70403 2008-08-06  Jim Meyering  <meyering@redhat.com>
70405         inet_pton.c: use locale-independent tolower
70406         * lib/inet_pton.c: Include <c-ctype.h> rather than <ctype.h>.
70407         (inet_pton6): Use c_tolower rather than tolower.
70408         * modules/inet_pton (Depends-on): Add c-ctype.
70410 2008-08-06  Paolo Bonzini  <bonzini@gnu.org>
70412         * lib/poll.c (poll): Avoid division when timeout is 0, cache
70413         _SC_OPEN_MAX, avoid repeated access to errno.  Check for nfd < 0.
70415 2008-08-06  Jim Meyering  <meyering@redhat.com>
70417         * modules/inet_pton (License): Relicense under LGPLv2+.
70419 2008-08-03  Bruno Haible  <bruno@clisp.org>
70421         Additional non-aborting API for lock and tls.
70422         * lib/lock.h: Include <errno.h>.
70423         (glthread_lock_init): New macro/function.
70424         (gl_lock_init): Define as wrapper around glthread_lock_init.
70425         (glthread_lock_lock): New macro/function.
70426         (gl_lock_lock): Define as wrapper around glthread_lock_lock.
70427         (glthread_lock_unlock): New macro/function.
70428         (gl_lock_unlock): Define as wrapper around glthread_lock_unlock.
70429         (glthread_lock_destroy): New macro/function.
70430         (gl_lock_destroy): Define as wrapper around glthread_lock_destroy.
70431         (glthread_rwlock_init): New macro/function.
70432         (gl_rwlock_init): Define as wrapper around glthread_rwlock_init.
70433         (glthread_rwlock_rdlock): New macro/function.
70434         (gl_rwlock_rdlock): Define as wrapper around glthread_rwlock_rdlock.
70435         (glthread_rwlock_wrlock): New macro/function.
70436         (gl_rwlock_wrlock): Define as wrapper around glthread_rwlock_wrlock.
70437         (glthread_rwlock_unlock): New macro/function.
70438         (gl_rwlock_unlock): Define as wrapper around glthread_rwlock_unlock.
70439         (glthread_rwlock_destroy): New macro/function.
70440         (gl_rwlock_destroy): Define as wrapper around glthread_rwlock_destroy.
70441         (glthread_recursive_lock_init): New macro/function.
70442         (gl_recursive_lock_init): Define as wrapper around
70443         glthread_recursive_lock_init.
70444         (glthread_recursive_lock_lock): New macro/function.
70445         (gl_recursive_lock_lock): Define as wrapper around
70446         glthread_recursive_lock_lock.
70447         (glthread_recursive_lock_unlock): New macro/function.
70448         (gl_recursive_lock_unlock): Define as wrapper around
70449         glthread_recursive_lock_unlock.
70450         (glthread_recursive_lock_destroy): New macro/function.
70451         (gl_recursive_lock_destroy): Define as wrapper around
70452         glthread_recursive_lock_destroy.
70453         (glthread_once): New macro/function.
70454         (gl_once): Define as wrapper around glthread_once.
70455         Update function declarations.
70456         * lib/lock.c (glthread_rwlock_init_multithreaded): Renamed from
70457         glthread_rwlock_init. Return error code.
70458         (glthread_rwlock_rdlock_multithreaded): Renamed from
70459         glthread_rwlock_rdlock. Return error code.
70460         (glthread_rwlock_wrlock_multithreaded): Renamed from
70461         glthread_rwlock_wrlock. Return error code.
70462         (glthread_rwlock_unlock_multithreaded): Renamed from
70463         glthread_rwlock_unlock. Return error code.
70464         (glthread_rwlock_destroy_multithreaded): Renamed from
70465         glthread_rwlock_destroy. Return error code.
70466         (glthread_recursive_lock_init_multithreaded): Renamed from
70467         glthread_recursive_lock_init. Return error code.
70468         (glthread_recursive_lock_lock_multithreaded): Renamed from
70469         glthread_recursive_lock_lock. Return error code.
70470         (glthread_recursive_lock_unlock_multithreaded): Renamed from
70471         glthread_recursive_lock_unlock. Return error code.
70472         (glthread_recursive_lock_destroy_multithreaded): Renamed from
70473         glthread_recursive_lock_destroy. Return error code.
70474         (glthread_once_call): Make static.
70475         (glthread_once_multithreaded): Renamed from glthread_once.
70476         * lib/tls.h: Include <errno.h>.
70477         (glthread_tls_key_init): New macro/function.
70478         (gl_tls_key_init): Define as wrapper around glthread_tls_key_init.
70479         (glthread_tls_set): New macro/function.
70480         (gl_tls_set): Define as wrapper around glthread_tls_set.
70481         (glthread_tls_key_destroy): New macro/function.
70482         (gl_tls_key_destroy): Define as wrapper around glthread_tls_key_destroy.
70483         Update function declarations.
70484         * lib/tls.c (glthread_tls_get_multithreaded): Renamed from
70485         glthread_tls_get.
70486         Suggested by Yoann Vandoorselaere <yoann@prelude-ids.org>.
70488 2008-08-04  Eric Blake  <ebb9@byu.net>
70490         gnumakefile: use space, not TAB, outside of targets
70491         * top/GNUmakefile (_dummy): Fix whitespace error in prior edit.
70493 2008-08-02  Jim Meyering  <meyering@redhat.com>
70495         getdate.y: avoid locale-dependent date parsing failure
70496         In Turkish locales, getdate would fail to recognize keywords
70497         containing a lowercase "i".  The solution is not to rely on
70498         locale-sensitive case-conversion.
70499         * lib/getdate.y: Include <c-ctype.h> rather than <ctype.h>.
70500         (lookup_word): Use c_toupper in place of toupper.
70501         (yylex, get_date): Use c_ prefixed variants of isspace and isalpha, too.
70502         Reported by Vefa Bicakci <bicave@superonline.com> in
70503         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/14184>.
70504         * modules/getdate (Depends-on): Add c-ctype.
70506 2008-08-02  Bruno Haible  <bruno@clisp.org>
70508         * gnulib-tool (func_import): When updating or creating a .gitignore
70509         file, prepend each added line with a slash, and ignore leading slashes
70510         from the existing lines.
70511         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
70513 2008-08-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
70515         Portability fix for GNU make 3.79.1.
70516         * top/GNUmakefile: Avoid 'else COND', which older GNU make
70517         versions do not understand.
70519 2008-08-01  Bruno Haible  <bruno@clisp.org>
70521         Work around bug of HP-UX 10.20 cc with -0.0 literal.
70522         * tests/test-isnanf.h (zero): New variable.
70523         (main): Avoid literal -0.0f.
70524         * tests/test-isnand.h (zero): New variable.
70525         (main): Avoid literal -0.0.
70526         * tests/test-isnanl.h (zero): New variable.
70527         (main): Avoid literal -0.0L.
70528         * tests/test-isnan.c (zerof, zerod, zerol): New variables.
70529         (test_float, test_double, test_long_double): Avoid literals -0.0f,
70530         -0.0, -0.0L.
70531         * tests/test-signbit.c (test_signbitf): Avoid literal -0.0f.
70532         (test_signbitd): Avoid literal -0.0.
70533         (test_signbitl): Avoid literal -0.0L.
70534         * tests/test-ceilf1.c (zero): New variable.
70535         (main): Avoid literal -0.0f.
70536         * tests/test-ceill.c (zero): New variable.
70537         (main): Avoid literal -0.0L.
70538         * tests/test-floorf1.c (zero): New variable.
70539         (main): Avoid literal -0.0f.
70540         * tests/test-floorl.c (zero): New variable.
70541         (main): Avoid literal -0.0L.
70542         * tests/test-roundf1.c (zero): New variable.
70543         (main): Avoid literal -0.0f.
70544         * tests/test-round1.c (zero): New variable.
70545         (main): Avoid literal -0.0.
70546         * tests/test-roundl.c (zero): New variable.
70547         (main): Avoid literal -0.0L.
70548         * tests/test-truncf1.c (zero): New variable.
70549         (main): Avoid literal -0.0f.
70550         * tests/test-trunc1.c (zero): New variable.
70551         (main): Avoid literal -0.0.
70552         * tests/test-truncl.c (zero): New variable.
70553         (main): Avoid literal -0.0L.
70554         * tests/test-frexp.c (zero): New variable.
70555         (main): Avoid literal -0.0.
70556         * tests/test-frexpl.c (zero): New variable.
70557         (main): Avoid literal -0.0L.
70558         * tests/test-ldexpl.c (zero): New variable.
70559         (main): Avoid literal -0.0L.
70560         * tests/test-snprintf-posix.h (have_minus_zero): Avoid literal -0.0.
70561         (zerod, zerol): New variables.
70562         (test_function): Avoid literals -0.0, -0.0L.
70563         * tests/test-sprintf-posix.h (have_minus_zero): Avoid literal -0.0.
70564         (zerod, zerol): New variables.
70565         (test_function): Avoid literals -0.0, -0.0L.
70566         * tests/test-vasnprintf-posix.c (have_minus_zero): Avoid literal -0.0.
70567         (zerod, zerol): New variables.
70568         (test_function): Avoid literals -0.0, -0.0L.
70569         * tests/test-vasprintf-posix.c (have_minus_zero): Avoid literal -0.0.
70570         (zerod, zerol): New variables.
70571         (test_function): Avoid literals -0.0, -0.0L.
70572         * tests/test-strtod.c (zero): New variable.
70573         (main): Avoid literal -0.0.
70574         Reported by Jonathan C. Patschke <jp@centtech.com>.
70576 2008-07-31  Jim Meyering  <meyering@redhat.com>
70578         sha256.h: correct definition of SHA224_DIGEST_SIZE
70579         * lib/sha256.h (SHA224_DIGEST_SIZE): Define to 28, not 24.
70580         Reported by Paulie Pena IV <paulie4@gmail.com>.
70581         Define as 224 / 8, rather than as a literal.
70582         (SHA256_DIGEST_SIZE): Define as 256/8 rather than equivalent literal.
70583         * lib/sha512.h (SHA384_DIGEST_SIZE): Likewise, define as equiv: 384/8.
70584         (SHA512_DIGEST_SIZE): Likewise, define as equivalent quotient: 512/8.
70586 2008-07-31  Bruno Haible  <bruno@clisp.org>
70588         * lib/regex_internal.h (BITSET_WORD_BITS): Make first conditional work
70589         on HP-UX 10.20 with "cc -Ae". Fix second conditional.
70590         Reported by Jonathan Patschke <jp@centtech.com>.
70592 2008-07-31  Bruno Haible  <bruno@clisp.org>
70594         * gnulib-tool (func_import): Make change from 2008-06-23 more robust.
70595         Reported by Paolo Bonzini <bonzini@gnu.org>.
70597 2008-07-30  Eric Blake  <ebb9@byu.net>
70599         test-strtod: allow compilation without -lm
70600         * tests/test-strtod.c (main): Avoid link dependence on fabs.
70601         Reported by Dennis Clarke <blastwave@gmail.com>.
70603 2008-07-28  Jim Meyering  <meyering@redhat.com>
70605         bootstrap: work also when there are no .po files in po/
70606         * build-aux/bootstrap (update_po_files): Complete the change
70607         that I began in bc960df8c789c878f1c1c54a28a3c2648dead8d9.
70609 2008-07-27  Jim Meyering  <meyering@redhat.com>
70611         * users.txt: Add zile.
70613 2008-07-26  Ben Pfaff  <blp@gnu.org>
70615         Add missing dependencies on new m4/exponent[fdl].m4 files.
70616         * modules/isnanf-nolibm: Add m4/exponentf.m4.
70617         * modules/isnand-nolibm: Add m4/exponentd.m4.
70618         * modules/isnanl-nolibm: Add m4/exponentl.m4.
70619         * modules/signbit-tests: Use m4/exponent[fdl].m4 instead of
70620         m4/isnan[fdl].m4, because the macros actually used moved.
70621         Reported by Jim Meyering.
70623 2008-07-14  Ben Pfaff  <blp@gnu.org>
70625         Add isinf module.
70626         * lib/isinf.c: New file.
70627         * lib/math.in.h: Define isinf macro if we have decided to replace
70628         it.
70629         * m4/isinf.m4: New file.
70630         * m4/math_h.m4: Initialize and substitute variables for isinf
70631         module.
70632         * modules/isinf: New file.
70633         * modules/isinf-tests: New file.
70634         * modules/math: Add substitutions for new module.
70635         * tests/test-isinf.c: New file.
70636         * doc/posix-functions/isinf.texi: Mention new module.
70637         * MODULES.html.sh: Mention new module.
70639 2008-07-14  Ben Pfaff  <blp@gnu.org>
70641         Factor out some macros for use by additional modules.
70642         * m4/isnanf.m4 (gl_FLOAT_EXPONENT_LOCATION): Move into new file
70643         exponentf.m4.
70644         * m4/isnand.m4 (gl_DOUBLE_EXPONENT_LOCATION): Move into new file
70645         exponentd.m4.
70646         * m4/isnanl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Move into new
70647         file exponentl.m4.
70648         * m4/exponentf.m4: New file.
70649         * m4/exponentd.m4: New file.
70650         * m4/exponentl.m4: New file.
70651         * modules/isnanf: Use new file m4/exponentf.m4.
70652         * modules/isnand: Use new file m4/exponentd.m4.
70653         * modules/isnanl: Use new file m4/exponentl.m4.
70655 2008-07-23  Ulrich Drepper  <drepper@redhat.com>
70657         mktime.c: normalize tp->tm_isdst value to -1/0/1.
70658         * lib/mktime.c (__mktime_internal): Normalize tp->tm_isdst value.
70659         Reported by Michael Ringe <Michael.Ringe@gmx.de> in
70660         <http://sourceware.org/bugzilla/show_bug.cgi?id=6723>.
70662         * lib/canonicalize-lgpl.c (__realpath): Avoid buffer overflow after
70663         readlink on platforms without PATH_MAX.
70665 2008-07-21  Eric Blake  <ebb9@byu.net>
70667         Warn, not fail, on stale version.
70668         * top/GNUmakefile (_curr-ver): Tone down previous patch.
70670         Don't allow installation with stale devel version number.
70671         * top/GNUmakefile (_is-install-target): New macro.
70672         (_curr-ver): Forbid installation with stale version number.
70674 2008-07-20  Bruno Haible  <bruno@clisp.org>
70676         * modules/c-stack-tests (Makefile.am): Add LIBSIGSEGV to
70677         TESTS_ENVIRONMENT.
70678         * tests/test-c-stack2.sh: React differently if LIBSIGSEGV is in use.
70680 2008-07-20  Bruno Haible  <bruno@clisp.org>
70682         * lib/c-stack.h (c_stack_action): Add documentation.
70683         * lib/c-stack.c (c_stack_action): Remove incomplete documentation.
70685 2008-07-20  Bruno Haible  <bruno@clisp.org>
70687         * modules/canonicalize-lgpl (License): Relicense under LGPLv2+.
70688         * modules/readlink (License): Likewise.
70690 2008-07-17  Eric Blake  <ebb9@byu.net>
70692         * modules/c-stack (Link): Fix typo.
70694         Make c-stack use libsigsegv, when available.
70695         * modules/c-stack (Depends-on): Add libsigsegv.
70696         * modules/c-stack-tests (Makefile.am): Link with libsigsegv, if
70697         needed.
70698         * lib/c-stack.c (SIGSTKSZ): Define fallback.
70699         (segv_handler, overflow_handler, c_stack_action)
70700         [HAVE_LIBSIGSEGV && !HAVE_XSI_STACK_OVERFLOW_HEURISTIC]: Add new
70701         implementation when libsigsegv is available, but only when using
70702         the library is necessary.
70703         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Add
70704         comment, explaining why XSI check fails on Linux.
70705         (gl_PREREQ_C_STACK): Supply LIBCSTACK, LTLIBCSTACK.
70706         * tests/test-c-stack2.sh: Tweak skip message.
70707         * NEWS: Document new link-time requirements.
70709 2008-07-16  Eric Blake  <ebb9@byu.net>
70711         c-stack: Expose false positives when not using libsigsegv.
70712         * modules/c-stack-tests (Files): Expand test.
70713         * tests/test-c-stack.c (main): Add means to conditionally trigger
70714         non-overflow SIGSEGV.
70715         * tests/test-c-stack2.sh: New file.
70717 2008-07-14  Bruno Haible  <bruno@clisp.org>
70719         * m4/libsigsegv.m4: Remove unneeded AC_PREREQ.
70720         Reported by Eric Blake.
70722 2008-07-14  Sam Steingold  <sds@gnu.org>
70723             Bruno Haible  <bruno@clisp.org>
70725         New module libsigsegv.
70726         * modules/libsigsegv: New file.
70727         * m4/libsigsegv.m4: New file, from GNU clisp sigsegv.m4 with
70728         modifications.
70729         * MODULES.html.sh (Signal handling): New section.
70731 2008-07-14  Bruno Haible  <bruno@clisp.org>
70733         * modules/unictype/ctype-* (Description): Add the word "function".
70734         Improves the resulting doc in MODULES.html.
70736 2008-07-12  Ben Pfaff  <blp@gnu.org>
70738         Add longlong module.
70739         * modules/longlong: New file.
70741 2008-07-12  Bruno Haible  <bruno@clisp.org>
70743         * m4/isnan.m4 (gl_ISNAN): When the replacement is used, set ISNAN_LIBM
70744         to empty.
70746 2008-07-10  Ben Pfaff  <blp@gnu.org>
70748         Add isnan module.
70749         * doc/posix-functions/isnan.texi: Mention new module.
70750         * lib/math.in.h: Define isnan macro if we have decided to replace
70751         it.
70752         * m4/isnan.m4: New file.
70753         * m4/isnanl.m4 (gl_FUNC_ISNANL): Factor out some code into new
70754         macro gl_BUILD_ISNANL so that isnan.m4 can use that functionality
70755         also.
70756         (gl_FUNC_ISNANL_NO_LIBM): Factor out same code, to reduce
70757         redundancy.
70758         * m4/math_h.m4: Initialize and substitute variables for isnan
70759         module.
70760         * modules/isnan: New file.
70761         * modules/isnan-tests: New file.
70762         * modules/math: Add substitutions for new module.
70763         * tests/test-isnan.c: New file.
70764         * MODULES.html.sh: Mention new module.
70766 2008-07-10  Ben Pfaff  <blp@gnu.org>
70768         Add isnanf module.
70769         * lib/isnanf.m4: New file.
70770         * m4/isnanf.m4 (gl_FUNC_ISNANF): New macro.
70771         (gl_HAVE_ISNANF_IN_LIBM): New macro.
70772         (gl_BUILD_ISNANF): New macro used by gl_FUNC_ISNANF,
70773         gl_FUNC_ISNANF_NO_LIBM, and gl_FUNC_ISNAN.
70774         * modules/isnanf: New file.
70775         * modules/isnanf-tests: New file.
70776         * modules/isnanf-nolibm-tests: Add tests/test-isnanf.h to list of
70777         files.
70778         * tests/test-isnanf-nolibm.c: factored most of its contents into
70779         new file tests/test-isnanf.h.
70780         * tests/test-isnanf.h: New file.
70781         * tests/test-isnanf.c: New file.
70782         * MODULES.html.sh: Mention new module.
70783         * doc/glibc-functions/isnanf.texi: Mention new module.
70785 2008-07-10  Ben Pfaff  <blp@gnu.org>
70787         Add isnand module.
70788         * lib/isnand.h: New file.
70789         * m4/isnand.m4 (gl_FUNC_ISNAND): New macro.
70790         (gl_FUNC_ISNAND_NO_LIBM): Split partially into new macro
70791         gl_HAVE_ISNAND_NO_LIBM so that gl_FUNC_ISNAND can use that
70792         functionality also.
70793         (gl_BUILD_ISNAND): New macro used by gl_FUNC_ISNAND,
70794         gl_FUNC_ISNAND_NO_LIBM, and gl_FUNC_ISNAN.
70795         (gl_HAVE_ISNAND_IN_LIBM): New macro.
70796         * modules/isnand: New file.
70797         * modules/isnand-tests: New file.
70798         * modules/isnand-nolibm-tests: Add tests/test-isnand.h to list of
70799         files.
70800         * tests/test-isnand-nolibm.c: factored most of its contents into
70801         new file tests/test-isnand.h.
70802         * tests/test-isnand.h: New file.
70803         * tests/test-isnand.c: New file.
70804         * MODULES.html.sh: Mention new module.
70806 2008-07-10  Ben Pfaff  <blp@gnu.org>
70808         * lib/isnanf.h: Rename lib/isnanf-nolibm.h.
70809         * lib/isnand.h: Rename lib/isnand-nolibm.h.
70810         * tests/test-isnanf.c: Rename tests/test-isnanf-nolibm.c.
70811         * tests/test-isnand.c: Rename tests/test-isnand-nolibm.c.
70812         * modules/isnanf-nolibm: Update references to renamed files.
70813         * modules/isnand-nolibm: Likewise.
70814         * modules/isnanf-nolibm-tests: Likewise.
70815         * modules/isnand-nolibm-tests: Likewise.
70816         * lib/frexp.c: Likewise.
70817         * lib/isfinite.c: Likewise.
70818         * lib/signbitd.c: Likewise.
70819         * lib/signbitf.c: Likewise.
70820         * lib/vasnprintf.c: Likewise.
70821         * tests/test-ceilf1.c: Likewise.
70822         * tests/test-ceilf2.c: Likewise.
70823         * tests/test-floorf1.c: Likewise.
70824         * tests/test-floorf2.c: Likewise.
70825         * tests/test-frexp.c: Likewise.
70826         * tests/test-round1.c: Likewise.
70827         * tests/test-round2.c: Likewise.
70828         * tests/test-roundf1.c: Likewise.
70829         * tests/test-strtod.c: Likewise.
70830         * tests/test-trunc1.c: Likewise.
70831         * tests/test-trunc2.c: Likewise.
70832         * tests/test-truncf1.c: Likewise.
70833         * tests/test-truncf2.c: Likewise.
70834         * NEWS: Mention the renamed header files.
70836 2008-07-11  Jim Meyering  <meyering@redhat.com>
70838         vc-list-files: make the last-resort awk code more portable
70839         * build-aux/vc-list-files: Don't rely on awk's "sub" command.
70840         /bin/awk from OpenSolaris 11's SUNWesu version 2008.03.22.10.56
70841         does not support it.
70843 2008-07-10  Eric Blake  <ebb9@byu.net>
70845         Work with tar's bootstrap.
70846         * gnulib-tool (func_emit_initmacro_end): Use m4_defn in the case
70847         where LIBSOURCES_DIR contains .#bootmp but must not be treated as
70848         an m4 comment.
70850 2008-07-09  Jim Meyering  <meyering@redhat.com>
70852         posix-shell.m4: fix typo that made this test malfunction
70853         * m4/posix-shell.m4: Remove capitalization in variable name.
70855 2008-07-08  Bruno Haible  <bruno@clisp.org>
70857         * m4/onceonly.m4: Update comments.
70858         Reported by Ben Pfaff <blp@cs.stanford.edu>.
70860 2008-07-04  Jim Meyering  <meyering@redhat.com>
70862         * users.txt: Add vc-dwim.
70863         (bison, coreutils): Use the gitweb URL.
70865 2008-07-03  Jim Meyering  <meyering@redhat.com>
70867         * users.txt: Add libffcall.  From Sam Steingold.
70869 2008-07-03  Ondřej Vašík  <ovasik@redhat.com>
70871         getdate.y: do not ignore TZ with relative day, month or year offset
70872         * lib/getdate.y (get_date): Move the tz-handling block to follow the
70873         relative-date-handling, since otherwise, the latter would clobber the
70874         sole output (an updated Start value) of the tz-handling block.
70875         * tests/test-getdate.c: Tests for the fix
70877 2008-07-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
70879         Recognize 'foo_LIBRARIES += libgnu.a'.
70880         * gnulib-tool (func_emit_lib_Makefile_am): Recognize if a
70881         makefile snippet has already specified an installation location,
70882         also using '+='.
70884 2008-07-02  Ondřej Vašík  <ovasik@redhat.com>
70886         getdate.y: factor out common actions
70887         * lib/getdate.y (apply_relative_time, set_hhmmss): New functions.
70888         Use them in place of open-coded actions.
70890 2008-07-01  Simon Josefsson  <simon@josefsson.org>
70892         Add self-test for getdate module.
70893         * modules/getdate-tests: New file.
70894         * tests/test-getdate.c: New file.
70896 2008-06-29  Bruno Haible  <bruno@clisp.org>
70898         * gnulib-tool (func_import): Put gnulib-comp.m4 into .cvsignore or
70899         .gitignore.
70900         Reported by Sylvain Beucler <beuc@beuc.net>.
70902 2008-06-29  Bruno Haible  <bruno@clisp.org>
70904         * doc/gnulib-tool.texi (VCS Issues): Mention --no-vc-files option.
70905         * m4/gnulib-tool.m4: Update to match current gnulib-tool.
70907 2008-06-29  Bruno Haible  <bruno@clisp.org>
70909         * gnulib-tool (func_import): Recommend to put gnulib-cache.m4 into
70910         EXTRA_DIST.
70911         Reported by Sylvain Beucler <beuc@beuc.net>.
70913 2008-06-26  Jim Meyering  <meyering@redhat.com>
70915         make several modules depend on the "open" module
70916         This provides slightly increased consistency when opening-for-write
70917         the name of a non-directory spelled with a trailing slash.
70918         * modules/chdir-safer: Likewise.
70919         * modules/chown: Likewise.
70920         * modules/clean-temp: Likewise.
70921         * modules/copy-file: Likewise.
70922         * modules/fchdir: Likewise.
70923         * modules/fcntl-safer: Likewise.
70924         * modules/pipe: Likewise.
70925         * modules/utime: Likewise.
70926         Prompted by Eric Blake and Bruno Haible.
70928 2008-06-24  Andreas Schwab  <schwab@suse.de>
70930         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Don't test whether compound
70931         literals can be used as initializers for global variables.
70933 2008-06-23  Eric Blake  <ebb9@byu.net>
70935         Make gnulib-cache.m4 easier to diff.
70936         * gnulib-tool (func_import): Allow newlines when reading cached
70937         gl_MODULES, and generate newlines when creating gnulib-cache.m4.
70939 2008-06-23  Bruno Haible  <bruno@clisp.org>
70941         * m4/signalblocking.m4 (gl_PREREQ_SIG_HANDLER_H): Remove macro.
70942         (gl_PREREQ_SIGPROCMASK): Don't invoke it.
70943         * m4/sigaction.m4 (gl_PREREQ_SIG_HANDLER_H): New macro, moved here from
70944         m4/signalblocking.m4.
70945         (gl_PREREQ_SIGACTION): Don't invoke it.
70946         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Invoke
70947         gl_PREREQ_SIG_HANDLER_H.
70948         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
70949         Don't check for sigaction here.
70951 2008-06-23  Bruno Haible  <bruno@clisp.org>
70953         * lib/fatal-signal.c (fatal_signal_handler): Update comment.
70954         (install_handlers): Don't set the SA_RESETHAND flag.
70956 2008-06-23  Bruno Haible  <bruno@clisp.org>
70958         * m4/sigaction.m4: Comment fixes.
70959         * lib/signal.in.h: Likewise.
70961 2008-06-23  Eric Blake  <ebb9@byu.net>
70963         Fix typo.
70964         * tests/test-sigaction.c (MASK_SA_FLAGS): Add missing operator.
70966         Avoid SA_ namespace.
70967         * tests/test-sigaction.c (MASK_SA_FLAGS): Rename from SA_MASK.
70968         Reported by Ralf Wildenhues.
70970         Avoid test failure due to SA_RESTORER.
70971         * tests/test-sigaction.c (SA_MASK): New macro.
70972         (main): Avoid failing due to extension flags being set.
70973         Reported by Jim Meyering.
70975         Revert use of sig-handler.h in sigprocmask.c.
70976         * modules/sigprocmask (Files): Don't rely on sig-handler.h, since
70977         it requires the existence of struct sigaction.
70978         * lib/sigprocmask.c (handler_t): Restore typedef.
70979         (rpl_signal, old_handlers): Use local type.
70981 2008-06-22  Bruno Haible  <bruno@clisp.org>
70983         * tests/test-stdint.c: Disable the INTMAX_MAX preprocessor test
70984         conditionally.
70985         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
70987 2008-06-22  Bruno Haible  <bruno@clisp.org>
70989         * doc/posix-functions/siginterrupt.texi: Move note.
70991         * lib/signal.in.h (SA_RESTART): New macro.
70992         * lib/sigaction.c: Update comment.
70994         * m4/sigaction.m4 (gl_SIGACTION): Require gl_SIGNAL_H_DEFAULTS.
70996         * m4/signalblocking.m4 (gl_PREREQ_SIG_HANDLER_H): New macro.
70997         (gl_PREREQ_SIGPROCMASK): Invoke it.
70998         * m4/sigaction.m4 (gl_PREREQ_SIGACTION): Likewise.
71000         * lib/nanosleep.c (rpl_nanosleep): Setup newact only when it is needed.
71002         * lib/sigprocmask.c: Update a comment.
71004 2008-06-21  Eric Blake  <ebb9@byu.net>
71006         Use sigaction module rather than signal().
71007         * modules/c-stack (Depends-on): Add sigaction.
71008         * modules/fatal-signal (Depends-on): Likewise.
71009         * modules/nanosleep (Depends-on): Likewise.
71010         * modules/sigprocmask (Files): Add sig-handler.h.
71011         * modules/sigaction (Files): Likewise.
71012         * lib/sig-handler.h (get_handler): New file, suggested by Paul
71013         Eggert.
71014         * lib/c-stack.c (SIGACTION_WORKS): Simplify conditions.
71015         (c_stack_action) [!SIGACTION_WORKS]: Use sigaction, not signal.
71016         * lib/fatal-signal.c (uninstall_handlers, install_handlers)
71017         (init_fatal_signals): Likewise.
71018         * lib/nanosleep.c (rpl_nanosleep): Likewise.
71019         (siginterrupt): Delete fallback.
71020         * lib/sigprocmask.c (handler_t, old_handlers): Use sa_handler_t
71021         instead.
71022         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Drop check for
71023         siginterrupt.
71025         New module sigaction, for mingw.
71026         * modules/sigaction: New module...
71027         * modules/sigaction-tests: ...and its test.
71028         * m4/sigaction.m4: New file.
71029         * lib/sigaction.c: Likewise.
71030         * tests/test-sigaction.c: Likewise.
71031         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Add sigaction variables.
71032         * modules/signal (Makefile.am): Likewise.
71033         * lib/signal.in.h (!@HAVE_SIGACTION@): Define replacements when
71034         needed.
71035         * doc/posix-headers/signal.texi (signal.h): Mention provided
71036         types.
71037         * doc/posix-functions/siginterrupt.texi (siginterrupt): Mention
71038         that sigaction is preferable.
71039         * doc/posix-functions/sigaction.texi (sigaction): Mention new
71040         module.
71041         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
71042         sigaction.
71044         Improve robustness of sigprocmask by overriding signal.
71045         * lib/signal.in.h (rpl_signal): Override signal when sigprocmask
71046         is in use.
71047         * lib/sigprocmask.c (blocked_handler): Reinstall block handler.
71048         (SIGKILL, SIGSTOP): Provide fallbacks.
71049         (rpl_signal): Implement.
71050         (old_handlers, blocked_set): Mark volatile, since sigprocmask and
71051         signal can be called inside handlers.
71053         Fix nanosleep module on mingw.
71054         * modules/nanosleep (Depends-on): Add sys_select.
71055         * lib/nanosleep.c (HAVE_SYS_SELECT_H): Rely on gnulib module.
71057         Fix licensing of sigprocmask.
71058         * modules/raise (License): Relicense as LGPL.
71060 2008-06-21  Bruno Haible  <bruno@clisp.org>
71062         * lib/propername.c (proper_name_utf8): Don't use the transliterated
71063         result if it contains question marks.
71064         Reported by Michael Geng <linux@michaelgeng.de>.
71066 2008-06-19  Bruno Haible  <bruno@clisp.org>
71068         Fix CVS-ism.
71069         * doc/gnulib.texi: Include updated-stamp.texi.
71070         * doc/Makefile (GNULIB_TEXI_FILES): New variable.
71071         (updated-stamp.texi): New rule.
71072         (gnulib.info): Depend on it.
71073         * doc/.gitignore: Add updated-stamp.texi.
71074         Based on a patch by Thien-Thi Nguyen <ttn@gnuvola.org>.
71076 2008-06-19  Bruno Haible  <bruno@clisp.org>
71078         * doc/Makefile (gnulib.info): Update and simplify dependencies.
71079         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
71081 2008-06-19  Eric Blake  <ebb9@byu.net>
71083         Fix VPATH 'make dist' with GNU make and non-VCS tarball.
71084         * top/GNUmakefile (_curr-ver): Don't use $(srcdir) unnecessarily.
71085         Reported by Stepan Kasal.
71087 2008-06-18  Bruno Haible  <bruno@clisp.org>
71089         * lib/fatal-signal.c (init_fatal_signals): Add comment.
71090         Reported by Eric Blake.
71092 2008-06-18  Eric Blake  <ebb9@byu.net>
71094         Work around cygwin 1.5.25 strsignal bug.
71095         * tests/test-strsignal.c: Allow for const char *.
71096         * doc/glibc-functions/strsignal.texi (strsignal): Document the bug.
71098 2008-06-18  Simon Josefsson  <simon@josefsson.org>
71100         * users.txt: Update URL to article and add author/date
71101         information.
71103 2008-06-17  Bruno Haible  <bruno@clisp.org>
71105         New macro gl_DISABLE_THREADS.
71106         * m4/lock.m4 (gl_LOCK_EARLY_BODY): Use value gl_use_threads_default
71107         if the user did not pass --enable-threads or --disable-threads option.
71108         (gl_DISABLE_THREADS): New macro.
71109         Reported by Eric Blake <ebb9@byu.net>.
71111 2008-06-17  Bruno Haible  <bruno@clisp.org>
71113         * lib/tls.h (gl_tls_key_init): Evaluate the destructor argument also
71114         when the macro ignores it.
71115         Based on a patch by Eric Blake <ebb9@byu.net>.
71117 2008-06-17  Bruno Haible  <bruno@clisp.org>
71119         * modules/tls (License): Change to LGPLv2+.
71120         Reported by Eric Blake.
71122 2008-06-17  Eric Blake  <ebb9@byu.net>
71124         Simplify c-stack prerequisites.
71125         * lib/c-stack.c (includes): Remove unused <sys/resource.h>.
71126         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Posix 200x
71127         no longer requires <ucontext.h> to exist.  Optimize setrlimit
71128         check.
71129         (gl_PREREQ_C_STACK): Remove check for unused getcontext and
71130         <sys/resource.h>.
71132         Move c-stack test into testsuite.
71133         * modules/c-stack-tests: New file.
71134         * lib/c-stack.c [DEBUG]: Move test program...
71135         * tests/test-c-stack.c: ...into this new file.  Skip rather than
71136         fail test if sigaltstack is lacking.
71137         * tests/test-c-stack.sh: New driver file.
71139 2008-06-16  Eric Blake  <ebb9@byu.net>
71141         Use raise module consistently.
71142         * modules/fatal-signal (Depends-on): Add raise.
71143         * modules/sigprocmask (Depends-on): Likewise.
71144         * lib/fatal-signal.c (fatal_signal_handler): Rely on raise.
71145         * lib/sigprocmask.c (sigprocmask): Likewise.
71146         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
71147         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Likewise.
71149         Fix compliance bug in sigpending.
71150         * lib/sigprocmask.c (sigpending): Return pending array via
71151         parameter, not return value.
71153 2008-06-14  Eric Blake  <ebb9@byu.net>
71155         Improve obstack-printf test code.
71156         * tests/test-obstack-printf.c (test_function): Fix comment, and
71157         simplify usage of obstack_* in macros.  Add a test for coverage.
71158         Reported by Bruno Haible.
71160 2008-06-14  Bruno Haible  <bruno@clisp.org>
71162         * lib/obstack_printf.c (obstack_vprintf): Define the stack-allocated
71163         array size as a constant, not as a const variable.
71164         * m4/obstack-printf.m4 (gl_FUNC_OBSTACK_PRINTF): Require
71165         AC_USE_SYSTEM_EXTENSIONS.
71166         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX): Likewise.
71167         Test whether the obstack_printf function actually exists.
71168         * modules/obstack-printf (Depends-on): Add extensions.
71169         (Include): Remove obstack.h.
71170         * modules/obstack-printf-posix (Depends-on): Add extensions.
71171         (Include): Remove obstack.h.
71173 2008-06-13  Eric Blake  <ebb9@byu.net>
71175         Add obstack-printf and obstack-printf-posix modules.
71176         * modules/obstack-printf: New file.
71177         * modules/obstack-printf-posix: Likewise.
71178         * MODULES.html.sh (Misc): Mention them.
71179         * doc/glibc-functions/obstack_printf.texi (obstack_printf):
71180         Likewise.
71181         * doc/glibc-functions/obstack_vprintf.texi (obstack_vprintf):
71182         Likewise.
71183         * modules/stdio (Makefile.am): Accomodate new modules.
71184         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
71185         * lib/stdio.in.h (rpl_obstack_printf, rpl_obstack_vprintf):
71186         Declare.
71187         * lib/obstack_printf.c (obstack_printf, obstack_vprintf): New
71188         functions.
71189         * m4/obstack-printf.m4 (gl_OBSTACK_PRINTF)
71190         (gl_REPLACE_OBSTACK_PRINTF): New macros
71191         * m4/obstack-printf-posix.m4 (gl_OBSTACK_PRINTF_POSIX): Likewise.
71192         * tests/test-obstack-printf.c: New file.
71193         * modules/obstack-printf-tests: Likewise.
71194         * modules/obstack-printf-posix-tests: Likewise.
71196 2008-06-11  Bruno Haible  <bruno@clisp.org>
71198         * m4/open.m4 (gl_FUNC_OPEN): Add test against trailing slash bug.
71199         * lib/open.c: Include errno.h.
71200         (open): Fail when attempting to write to a file that has a trailing
71201         slash.
71202         * tests/test-open.c (main): Test against trailing slash bug.
71203         * doc/posix-functions/open.texi: Mention the trailing slash bug.
71205 2008-06-10  Bruno Haible  <bruno@clisp.org>
71207         * tests/test-vc-list-files-git.sh: Make double use of 'exit'. Needed
71208         for $? to work inside the trap command, with various /bin/sh-s.
71209         * tests/test-vc-list-files-cvs.sh: Likewise.
71211 2008-06-10  Bruno Haible  <bruno@clisp.org>
71213         * lib/acl-internal.h: Don't include gettext.h here.
71214         * lib/set-mode-acl.c: Include gettext.h here.
71215         * lib/copy-acl.c: Likewise.
71217 2008-06-10  Bruno Haible  <bruno@clisp.org>
71219         * lib/wait-process.h (wait_subprocess): Add termsigp argument.
71220         * lib/wait-process.c (wait_subprocess): Likewise.
71221         * lib/execute.h (execute): Add termsigp argument.
71222         * lib/execute.c (execute): Likewise.
71223         * lib/csharpcomp.c (compile_csharp_using_pnet,
71224         compile_csharp_using_mono, compile_csharp_using_sscli): Update.
71225         * lib/csharpexec.c (execute_csharp_using_pnet,
71226         execute_csharp_using_mono, execute_csharp_using_sscli): Update.
71227         * lib/javacomp.c (compile_using_envjavac, compile_using_gcj,
71228         compile_using_javac, compile_using_jikes, is_envjavac_gcj,
71229         is_envjavac_gcj43, is_gcj_present, is_gcj_43, is_javac_present,
71230         is_jikes_present): Update.
71231         * lib/javaexec.c (execute_java_class): Update.
71232         * lib/javaversion.c (execute_and_read_line): Update.
71233         * NEWS: Document the changes.
71234         Reported by Eric Blake.
71236 2008-06-10  Eric Blake  <ebb9@byu.net>
71238         Add missing include.
71239         * tests/test-strstr.c (includes): Add <signal.h>.
71240         * tests/test-strcasestr.c (includes): Likewise.
71241         * tests/test-memmem.c (includes): Likewise.
71243 2008-06-10  Bruno Haible  <bruno@clisp.org>
71245         * lib/wait-process.c (wait_subprocess): Add an assertion.
71247 2008-06-10  Bruno Haible  <bruno@clisp.org>
71249         * lib/wait-process.c (wait_subprocess): Try to fix waitid() based code.
71251 2008-06-10  Bruno Haible  <bruno@clisp.org>
71253         * tests/test-memmem.c (main): Reset SIGALRM to default handling before
71254         using alarm().
71255         * tests/test-strcasestr.c (main): Likewise.
71256         * tests/test-strstr.c (main): Likewise.
71258 2008-06-09  Bruno Haible  <bruno@clisp.org>
71260         Work around the Solaris 10 ACE ACLs ABI change.
71261         * lib/acl-internal.h (acl_nontrivial, acl_ace_nontrivial): Don't
71262         declare if ACL_NO_TRIVIAL is present.
71263         (ACE_ACCESS_ALLOWED_ACE_TYPE, ACE_ACCESS_DENIED_ACE_TYPE,
71264         NEW_ACE_OWNER, NEW_ACE_GROUP, NEW_ACE_IDENTIFIER_GROUP, ACE_EVERYONE,
71265         NEW_ACE_READ_DATA, NEW_ACE_WRITE_DATA, NEW_ACE_EXECUTE): New macros.
71266         * lib/file-has-acl.c (acl_nontrivial, acl_ace_nontrivial): Don't
71267         define if ACL_NO_TRIVIAL is present.
71268         (acl_ace_nontrivial): Detect whether the old or new ABI is in use,
71269         and use the current ABI.
71270         (file_has_acl): Use same #if condition as elsewhere.
71271         * lib/set-mode-acl.c (qset_acl): Detect whether the old or new ABI is
71272         in use, and use the current ABI.
71273         * doc/acl-resources.txt: More doc about newer Solaris 10 versions.
71274         Reported by Jim Meyering.
71276 2008-06-09  Eric Blake  <ebb9@byu.net>
71278         Work around environments that (stupidly) ignore SIGALRM.
71279         * m4/strstr.m4 (gl_FUNC_STRSTR): Reset SIGALRM to default handling
71280         before using alarm().
71281         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
71282         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
71283         Reported by Ian Beckwith <ianb@erislabs.net>.
71285         Produce autobuild blurb earlier in log.
71286         * modules/autobuild (configure.ac-early): Move AB_INIT here.
71288 2008-06-09  Jim Meyering  <meyering@redhat.com>
71289         and Ondřej Vašík  <ovasik@redhat.com>
71291         utimens.c: correct kernel bug work-around
71292         Ondřej Vašík found that the invalid return value of 280 indicates
71293         failure, not success, and the kernel bug we're trying to work
71294         around affects not just the utimensat call, but also the fallback
71295         futimens call.
71296         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT]: Simulate failure,
71297         not success.
71298         [HAVE_FUTIMENS]: Use the same work-around, here.
71300 2008-06-09  Jim Meyering  <meyering@redhat.com>
71302         add more guards around definition of ACE_-related code
71303         * lib/file-has-acl.c (acl_ace_nontrivial): Define only if
71304         ALLOW and ACE_OWNER are also defined.
71306 2008-06-08  Bruno Haible  <bruno@clisp.org>
71308         * lib/acl-internal.h: Add me as co-author.
71309         * lib/file-has-acl.c: Likewise.
71310         * lib/set-mode-acl.c: Likewise.
71311         * lib/copy-acl.c: Likewise.
71313 2008-06-08  Bruno Haible  <bruno@clisp.org>
71315         Add support for AIX ACLs.
71316         * lib/acl-internal.h (acl_nontrivial): New declaration.
71317         * lib/file-has-acl.c (acl_nontrivial): New function.
71318         (file_has_acl): Add implementation using AIX 4 ACL API.
71319         * lib/set-mode-acl.c (qset_acl): Likewise.
71320         * lib/copy-acl.c (qcopy_acl): Likewise.
71322 2008-06-08  Bruno Haible  <bruno@clisp.org>
71324         Add support for HP-UX ACLs.
71325         * lib/acl-internal.h (acl_nontrivial): New declaration.
71326         * lib/file-has-acl.c (acl_nontrivial): New function.
71327         (file_has_acl): Add implementation using HP-UX 11 ACL API.
71328         * lib/set-mode-acl.c (qset_acl): Likewise.
71329         * lib/copy-acl.c (qcopy_acl): Likewise.
71331 2008-06-08  Bruno Haible  <bruno@clisp.org>
71333         Add support for Cygwin ACLs.
71334         * lib/acl-internal.h (MODE_INSIDE_ACL): New macro for Solaris-like API.
71335         * lib/set-mode-acl.c (qset_acl) [!MODE_INSIDE_ACL]: Don't optimize away
71336         the chmod_or_fchmod call.
71337         * lib/copy-acl.c (qcopy_acl) [!MODE_INSIDE_ACL]: Likewise.
71339 2008-06-08  Bruno Haible  <bruno@clisp.org>
71341         Fix bug with setuid modes in Solaris 10+ code.
71342         * lib/set-mode-acl.c (qset_acl): Call chmod_or_fchmod when acl_set
71343         succeeded, when the mode contains some special bits.
71345 2008-06-08  Bruno Haible  <bruno@clisp.org>
71347         Add support for Solaris 7..10 ACLs.
71348         * lib/acl-internal.h (acl_nontrivial, acl_ace_nontrivial): New
71349         declarations.
71350         * lib/file-has-acl.c (acl_nontrivial, acl_ace_nontrivial): New
71351         functions.
71352         (file_has_acl): Add implementation using Solaris 7..10 ACL API.
71353         * lib/set-mode-acl.c (qset_acl): Likewise.
71354         * lib/copy-acl.c (qcopy_acl): Likewise.
71356 2008-06-08  Bruno Haible  <bruno@clisp.org>
71358         * lib/acl-internal.h (acl_extended_nontrivial) [MacOS X]: New
71359         declaration.
71360         * lib/file-has-acl.c (acl_extended_nontrivial) [MacOS X]: New function.
71361         (acl_access_nontrivial): Remove MacOS X case.
71362         (file_has_acl): Use acl_extended_nontrivial.
71363         * lib/copy-acl.c (qcopy_acl): Likewise.
71365 2008-06-08  Bruno Haible  <bruno@clisp.org>
71367         * lib/set-mode-acl.c (qset_acl): Trivial code simplifications.
71369 2008-06-08  Jim Meyering  <meyering@redhat.com>
71371         * modules/acl (Maintainer): Add Bruno Haible.
71373 2008-06-07  Bruno Haible  <bruno@clisp.org>
71375         Improve support for Tru64 ACLs.
71376         * lib/file-has-acl.c (file_has_acl): Don't test the ACL_TYPE_DEFAULT
71377         ACL on OSF/1.
71379 2008-06-07  Bruno Haible  <bruno@clisp.org>
71381         Add support for MacOS X ACLs.
71382         * lib/file-has-acl.c (file_has_acl): Use ACL_TYPE_EXTENDED instead of
71383         ACL_TYPE_ACCESS and ACL_TYPE_DEFAULT.
71384         * lib/set-mode-acl.c (qset_acl): Likewise.
71385         * lib/copy-acl.c (qcopy_acl): Likewise.
71387 2008-06-07  Bruno Haible  <bruno@clisp.org>
71389         Fix memory leak introduced on 2008-05-22.
71390         * lib/set-mode-acl.c (qset_acl) [!MODE_INSIDE_ACL]: Free ACLs after
71391         use.
71393 2008-06-07  Bruno Haible  <bruno@clisp.org>
71395         * lib/set-mode-acl.c (qset_acl): Use acl_init(), not acl_from_text(),
71396         to construct an empty ACL.
71398 2008-06-07  Bruno Haible  <bruno@clisp.org>
71400         * lib/set-mode-acl.c (chmod_or_fchmod): Document return value
71401         precisely.
71402         * lib/copy-acl.c (qcopy_acl): Trivial code simplifications.
71404 2008-06-07  Bruno Haible  <bruno@clisp.org>
71406         * lib/copy-acl.c (qcopy_acl): Make the #if branches independent.
71407         * lib/set-mode-acl.c (qset_acl): Choose better local variable names.
71409 2008-06-07  Bruno Haible  <bruno@clisp.org>
71411         * doc/posix-functions/_setjmp.texi: Explain the use of this function
71412         regardless of POSIX.
71413         * doc/posix-functions/_longjmp.texi: Likewise.
71414         * doc/posix-functions/setjmp.texi: Mention HP-UX as not counting as a
71415         SystemV platform in this case.
71417 2008-06-06  Eric Blake  <ebb9@byu.net>
71419         Document abort() bugs.
71420         * doc/posix-functions/abort.texi (abort): Mention anomalies.
71422         * doc/posix-functions/setjmp.texi (setjmp): Mingw has setjmp.
71423         * doc/posix-functions/sigsetjmp.texi (sigsetjmp): Cygwin has
71424         sigsetjmp.
71425         * doc/posix-functions/siglongjmp.texi (siglongjmp): Cygwin has
71426         siglongjmp, but only as a macro.
71427         * doc/posix-functions/_longjmp.texi (_longjmp): Mention that this
71428         is obsolete.
71429         * doc/posix-functions/_setjmp.texi (_setjmp): Likewise.
71431         Tweak documentation to cover cygwin argz bugs.
71432         * m4/argz.m4 (gl_FUNC_ARGZ): Mention date of last known cygwin
71433         argz bug fix; no code change needed since no cygwin releases
71434         occurred between the last fix and the bug being tested.
71435         * doc/glibc-functions/argz_add.texi (argz_add): Document the argz
71436         module and recently fixed cygwin bugs.
71437         * doc/glibc-functions/argz_add_sep.texi (argz_add_sep): Likewise.
71438         * doc/glibc-functions/argz_append.texi (argz_append): Likewise.
71439         * doc/glibc-functions/argz_count.texi (argz_count): Likewise.
71440         * doc/glibc-functions/argz_create.texi (argz_create): Likewise.
71441         * doc/glibc-functions/argz_create_sep.texi (argz_create_sep):
71442         Likewise.
71443         * doc/glibc-functions/argz_delete.texi (argz_delete): Likewise.
71444         * doc/glibc-functions/argz_extract.texi (argz_extract): Likewise.
71445         * doc/glibc-functions/argz_insert.texi (argz_insert): Likewise.
71446         * doc/glibc-functions/argz_next.texi (argz_next): Likewise.
71447         * doc/glibc-functions/argz_replace.texi (argz_replace): Likewise.
71448         * doc/glibc-functions/argz_stringify.texi (argz_stringify):
71449         Likewise.
71451         Avoid gcc warning on cygwin.
71452         * lib/copy-acl.c (qcopy_acl) [!HAVE_ACL_GET_FILE &&
71453         !ACL_NO_TRIVIAL]: Avoid unused variable.
71455 2008-06-05  Eric Blake  <ebb9@byu.net>
71457         Be tolerant of UNKNOWN version in gnulib-tool test dir.
71458         * top/GNUmakefile (_dummy): Warn rather than reconfigure if
71459         git-version-gen fails to come up with a version.
71460         Reported by Simon Josefsson.
71462 2008-06-05  Jim Meyering  <meyering@redhat.com>
71463             Paul Eggert  <eggert@cs.ucla.edu>
71465         utimens.c: work around a probable Linux kernel bug
71466         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT]: Work around what
71467         appears to be a kernel bug that causes utimensat to return 280
71468         instead of 0, indicating success.
71470 2008-06-04  Bruno Haible  <bruno@clisp.org>
71472         * lib/copy-acl.c (qcopy_acl): Call qset_acl, not set_acl. Fixes
71473         2008-06-01 commit.
71475 2008-06-04  Bruno Haible  <bruno@clisp.org>
71477         * lib/acl-internal.h (acl_access_nontrivial): New declaration.
71478         * lib/file-has-acl.c (acl_access_nontrivial): New function.
71479         (file_has_acl): Use it. Save errno afterwards.
71480         * lib/copy-acl.c (qcopy_acl): Use acl_access_nontrivial.
71482 2008-06-03  Bruno Haible  <bruno@clisp.org>
71484         * lib/file-has-acl.c (file_has_acl): Put Solaris 10 code after POSIX-
71485         draft code. Simplify #ifs.
71486         * lib/set-mode-acl.c (qset_acl): Don't test for symlink if !USE_ACL.
71487         Put Solaris code after POSIX-draft code. Fix comments regarding
71488         Solaris 10, HP-UX. Mention Cygwin.
71489         * lib/copy-acl.c (qcopy_acl): Simplify #ifs.
71491 2008-06-03  Eric Blake  <ebb9@byu.net>
71493         Provide fallback for older kernels.
71494         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT, HAVE_FUTIMENS]:
71495         Provide runtime fallback if kernel lacks support.
71496         Reported by Mike Frysinger.
71498 2008-06-02  Bruno Haible  <bruno@clisp.org>
71500         * lib/acl-internal.h (ACL_NOT_WELL_SUPPORTED): Include EOPNOTSUPP if
71501         it exists.
71503 2008-06-02  Bruno Haible  <bruno@clisp.org>
71505         * lib/acl_entries.c (acl_entries): Rewrite to use acl_get_entry.
71506         * lib/copy-acl.c (qcopy_acl): Update comment.
71508 2008-06-02  Bruno Haible  <bruno@clisp.org>
71510         * lib/acl-entries.h: Enclose most definitions in #ifs for POSIX-draft
71511         like ACL APIs.
71513 2008-06-02  Bruno Haible  <bruno@clisp.org>
71515         * tests/test-file-has-acl.sh: Use different code for Cygwin.
71516         * tests/test-set-mode-acl.sh: Likewise.
71517         * tests/test-copy-acl.sh: Likewise.
71518         * tests/test-copy-file.sh: Likewise.
71520 2008-06-02  Bruno Haible  <bruno@clisp.org>
71522         * tests/test-file-has-acl.sh: Remove unused code.
71524 2008-06-01  Bruno Haible  <bruno@clisp.org>
71526         * lib/copy-acl.c (qcopy_acl): New function, extracted from copy_acl.
71527         (copy_acl): Just a wrapper around qcopy_acl that emits the error
71528         messages.
71529         * lib/set-mode-acl.c (qset_acl): Document return value precisely.
71531 2008-06-01  Bruno Haible  <bruno@clisp.org>
71533         * m4/acl.m4 (gl_FUNC_ACL): Separate the POSIX-like and the Solaris
71534         tests. Test for libpacl, needed for OSF/1. Test for extended ACLs,
71535         needed for MacOS X. Test for HP-UX API. Test for newer and older AIX
71536         APIs.
71537         * modules/acl-tests (configure.ac): Remove tests now contained in
71538         m4/acl.m4.
71540 2008-06-02  Jim Meyering  <meyering@redhat.com>
71542         announce-gen: use a better key-server host name
71543         * build-aux/announce-gen (main): Recommend keys.gnupg.net, since
71544         it may be more consistently reliable.  Suggested by Werner Koch
71545         in <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/13717>.
71547 2008-06-01  Bruno Haible  <bruno@clisp.org>
71549         * lib/stdio-impl.h (fp_ub): Use fp_. Needed for DragonFly BSD.
71550         Reported by Voroskoi Andras <voroskoi@gmail.com>.
71552 2008-06-01  Voroskoi Andras  <voroskoi@gmail.com>  (tiny change)
71554         * lib/stdio-impl.h [__DragonFly__]: Fix typo.
71556 2008-06-01  Bruno Haible  <bruno@clisp.org>
71558         New ACL tests.
71559         * tests/test-file-has-acl.sh: New file.
71560         * tests/test-file-has-acl.c: New file.
71561         * tests/test-set-mode-acl.sh: New file.
71562         * tests/test-set-mode-acl.c: New file.
71563         * tests/test-copy-acl.sh: New file, based on tests/test-copy-file.sh.
71564         * tests/test-copy-acl.c: New file.
71565         * modules/acl-tests: New file, based on modules/copy-file-tests.
71566         * modules/copy-file-tests (Files): Remove tests/test-sameacls.c.
71567         (Depends-on): Add acl-tests.
71568         (configure.ac): Remove checks.
71569         (Makefile.am): Don't create test-sameacls program here any more.
71571 2008-06-01  Bruno Haible  <bruno@clisp.org>
71573         * tests/test-copy-file.sh: Portability fixes for Solaris, HP-UX, IRIX.
71574         * tests/test-sameacls.c: Include progname.h.
71575         (main): Invoke set_program_name. Portability fixes for MacOS X,
71576         Solaris, HP-UX.
71578 2008-06-01  Bruno Haible  <bruno@clisp.org>
71580         * lib/freadahead.c (freadahead) [__DragonFly__]: Use the __sreadahead
71581         function.
71582         Reported by VOROSKOI Andras <voroskoi@gmail.com>.
71584 2008-06-01  Bruno Haible  <bruno@clisp.org>
71586         * modules/rpmatch (Depends-on): Add strdup.
71588 2008-06-01  Bruno Haible  <bruno@clisp.org>
71590         * lib/pipe.c: Include unistd-safer.h.
71591         (create_pipe): Ensure the returned file descriptors are not in {0,1,2}.
71592         * modules/pipe (Depends-on): Add unistd-safer.
71594 2008-05-30  Simon Josefsson  <simon@josefsson.org>
71596         * modules/autobuild (configure.ac): Call AB_INIT.
71598 2008-05-30  Simon Josefsson  <simon@josefsson.org>
71600         * tests/test-getaddrinfo.c: Don't print debug messages by default.
71601         Suggested by Bruno Haible <bruno@clisp.org>.
71603 2008-05-30  Simon Josefsson  <simon@josefsson.org>
71605         * tests/test-base64.c: Cast size_t to unsigned long when invoking
71606         printf.  Use %lu instead of %d.  Reported by Bruno Haible
71607         <bruno@clisp.org>.
71609 2008-05-29  Eric Blake  <ebb9@byu.net>
71611         Prefer new POSIX 200x interfaces over futimesat.
71612         * m4/utimens.m4 (gl_UTIMENS): Check for futimens, utimensat.
71613         * lib/utimens.c (gl_futimens): Use them for nanosecond resolution
71614         when available.
71615         [HAVE_BUGGY_NFS_TIME_STAMPS]: Allow C89 compilation.
71617 2008-05-28  Bruno Haible  <bruno@clisp.org>
71619         * modules/stpcpy (License): Change to LGPLv2+.
71620         Requested by David Lutterkort <dlutter@redhat.com>.
71622 2008-05-27  Bruno Haible  <bruno@clisp.org>
71624         * lib/localename.c (SUBLANG_TIBETAN_BHUTAN): Force value 2. Needed for
71625         current mingw.
71626         Reported by Jose E. Marchesi <jemarch@gnu.org>.
71628 2008-05-27  Bruno Haible  <bruno@clisp.org>
71630         * modules/iconv_open (Link): New section, from module 'iconv'.
71631         * modules/striconv (Link): Likewise.
71632         * modules/striconveh (Link): Likewise.
71633         * modules/xstriconv (Link): Likewise.
71634         * modules/unicodeio (Link): Likewise.
71635         * modules/propername (Link): Likewise.
71636         Reported by Jim Meyering.
71638 2008-05-26  Jim Meyering  <meyering@redhat.com>
71640         sha256: do not artificially restrict buffer length to be < 2^32
71641         * lib/sha256.h (struct sha256_ctx) [buflen]: Change type from
71642         uint32_t to size_t.
71643         * lib/sha256.c (sha256_conclude_ctx): Change type of a local
71644         to match.
71646         avoid unaligned access errors, e.g., on sparc
71647         * lib/sha512.c (sha512_conclude_ctx): Use set_uint64 rather than
71648         direct access through a possibly-unaligned uint64* pointer.
71649         * lib/sha256.c (sha256_conclude_ctx): Use set_uint32 rather than
71650         direct access through a possibly-unaligned uint32* pointer.
71651         Prompted by this patch from Tom "spot" Callaway:
71652         http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/13638
71654         sha512.c: fix typo in comment
71655         * lib/sha512.c (sha512_conclude_ctx): Length is 128-bit, not 64-bit.
71657 2008-05-25  Bruno Haible  <bruno@clisp.org>
71659         * lib/set-mode-acl.c: Renamed from lib/acl.c.
71660         * modules/acl (Files): Add lib/set-mode-acl.c, remove lib/acl.c.
71661         (Makefile.am): Update lib_SOURCES.
71663 2008-05-25  Bruno Haible  <bruno@clisp.org>
71665         * m4/acl.m4 (gl_FUNC_ACL): Don't set LIB_ACL_TRIVIAL.
71667 2008-05-25  Jim Meyering  <meyering@redhat.com>
71669         useless-if-before-free: freed expr may have white-space differences
71670         * build-aux/useless-if-before-free: Recognize cases in which the
71671         freed expression differs from the tested one in embedded white
71672         space, e.g., if (p[i + 1]) free(p[i+1]).  Correct thinko in prev:
71673         $1 was used, so we can't make any regexp shy.  Improved tests now
71674         detect this.
71676         useless-if-before-free: accept white space in the expression.
71677         * build-aux/useless-if-before-free: For now, any white space
71678         in the expression must be identical in the free argument.
71680         useless-if-before-free: efficiency tweak
71681         * build-aux/useless-if-before-free: Make the expression-matching
71682         regexp "shy".
71683         Make the *outer* regexp shy, not the expr-matching one.
71685         update code-in-comment to accept cast of free arg
71686         * build-aux/useless-if-before-free: Update regexp.
71688 2008-05-25  Bruno Haible  <bruno@clisp.org>
71690         * tests/test-sameacls.c: Renamed from tests/test-copy-file-sameacls.c.
71691         * modules/copy-file-tests (Files, Makefile.am): Update.
71692         * tests/test-copy-file.c (func_test_copy): Update.
71694 2008-05-24  Andreas Färber  <andreas.faerber@web.de>  (tiny change)
71696         * lib/stdbool.in.h [__HAIKU__]: Disable __BEOS__ workarounds.
71698 2008-05-23  Bruno Haible  <bruno@clisp.org>
71700         Improve support for ACLs on OSF/1.
71701         * lib/acl.c (qset_acl): For OSF/1, use a string that ends in a comma.
71702         Remove fallback for unknown flavors of ACLs.
71704 2008-05-22  Bruno Haible  <bruno@clisp.org>
71706         Add support for ACLs on OSF/1.
71707         * lib/acl-internal.h (acl_get_fd, acl_set_fd): New inline function
71708         replacements.
71709         (acl_free_text): New macro fallback.
71710         * lib/acl_entries.c (acl_entries): Use acl_free_text instead of
71711         acl_free.
71712         * m4/acl.m4 (gl_FUNC_ACL): Look also in libpacl library. Test for
71713         acl_free_text function. Require AC_C_INLINE.
71715 2008-05-22  Bruno Haible  <bruno@clisp.org>
71717         Make copy_acl work on MacOS X 10.5.
71718         * lib/acl-internal.h (MODE_INSIDE_ACL): New macro.
71719         (ACL_NOT_WELL_SUPPORTED): On MacOS X, also handle ENOENT.
71720         * lib/acl.c (qset_acl): Add different code branch for !MODE_INSIDE_ACL.
71721         If MODE_INSIDE_ACL, don't assume that every system has the same text
71722         representation for ACLs as FreeBSD.
71723         * lib/copy-acl.c (copy_acl): Add support for platforms with
71724         !MODE_INSIDE_ACL.
71725         * lib/file-has-acl.c (file_has_acl): Likewise.
71726         * m4/acl.m4 (gl_FUNC_ACL): Test for some functions that are witness of
71727         FreeBSD, MacOS X, or IRIX, respectively.
71729 2008-05-22  Bruno Haible  <bruno@clisp.org>
71731         * lib/acl.h: Don't include <sys/acl.h>.
71732         (GETACLCNT): Move fallback to lib/acl-internal.h.
71733         * lib/acl-internal.h: Include <sys/acl.h> here.
71734         (GETACLCNT): New macro fallback, moved here from lib/acl.h.
71736 2008-05-22  Bruno Haible  <bruno@clisp.org>
71738         Split off copy_acl function to separate file.
71739         * lib/copy-acl.c: New file, extracted from lib/acl.c.
71740         * lib/acl.c (copy_acl): Moved function to separate file.
71741         * m4/acl.m4 (gl_FUNC_ACL): Remove unconditional AC_LIBOBJs.
71742         * modules/acl (Files): Add lib/copy-acl.c.
71743         (Makefiles.am): Augment lib_SOURCES.
71745 2008-05-22  Bruno Haible  <bruno@clisp.org>
71747         * modules/copy-file-tests: New file.
71748         * tests/test-copy-file.sh: New file.
71749         * tests/test-copy-file.c: New file.
71750         * tests/test-copy-file-sameacls.c: New file.
71752 2008-05-22  Eric Blake  <ebb9@byu.net>
71754         Avoid gcc warning.
71755         * tests/test-memcmp.c (main): Pass NULL indirectly.
71757 2008-05-21  Bruno Haible  <bruno@clisp.org>
71759         Add reference doc about ACLs.
71760         * doc/acl-resources.txt: New file.
71761         * doc/acl-cygwin.txt: New file.
71763 2008-05-21  Bruno Haible  <bruno@clisp.org>
71765         Avoid one more warning from gcc.
71766         * lib/vasnprintf.c (IF_LINT): Update comments.
71767         (VASNPRINTF): Use it also for the 'prefix' array initializer.
71769 2008-05-21  Jim Meyering  <meyering@redhat.com>
71771         avoid a warning from gcc
71772         * lib/vasnprintf.c (IF_LINT): Define.
71773         (scale10_round_decimal_long_double):
71774         Use it to avoid a "may be used uninitialized" warning.
71775         (scale10_round_decimal_double): Likewise.
71777 2008-05-21  Simon Josefsson  <simon@josefsson.org>
71779         * m4/memcmp.m4: When cross-compiling, assume memcmp works if it is
71780         declared.
71782 2008-05-20  Bruno Haible  <bruno@clisp.org>
71784         * tests/test-memcmp.c (main): Test also the sign of the result. Test
71785         against two known bugs; code taken from autoconf's AC_FUNC_MEMCMP.
71787 2008-05-20  Simon Josefsson  <simon@josefsson.org>
71789         * modules/memcmp-tests: New file.
71790         * tests/test-memcmp.c: New file.
71792 2008-05-19  Bruno Haible  <bruno@clisp.org>
71794         * modules/propername (Notice, configure.ac): Put quoted "..." into
71795         --keyword option.
71796         * lib/propername.h: Update comments accordingly.
71797         Reported by Eric Blake.
71799 2008-05-19  Martin Lambers  <marlam@marlam.de>  (tiny change)
71801         * modules/getpass-gnu (Depends-on): Add fseeko.
71803 2008-05-19  Simon Josefsson  <simon@josefsson.org>
71805         * modules/base64-tests: New file.
71807 2008-05-19  Bo Borgerson  <gigabo@gmail.com>
71809         * lib/base64.c (base64_decode_ctx): If a decode context structure
71810         was passed in use it to ignore newlines.  If a context structure
71811         was _not_ passed in, continue to treat newlines as garbage (this
71812         is the historical behavior).  Formerly base64_decode.
71813         (base64_decode_alloc_ctx): Formerly base64_decode_alloc.  Now
71814         takes a decode context structure.
71815         * lib/base64.h (base64_decode): Macro for four-argument calls.
71816         (base64_decode_alloc): Likewise.
71817         * lib/base64.c (base64_decode_ctx): If a decode context structure
71818         was passed in use it to ignore newlines.  If a context structure
71819         was _not_ passed in, continue to treat newlines as garbage (this
71820         is the historical behavior).  Formerly base64_decode.
71821         (base64_decode_alloc_ctx): Formerly base64_decode_alloc.  Now
71822         takes a decode context structure.
71823         * lib/base64.h (base64_decode): Macro for four-argument calls.
71824         (base64_decode_alloc): Likewise.
71826 2008-05-19  Jim Meyering  <meyering@redhat.com>
71828         avoid a warning from gcc
71829         * lib/trim.c (IF_LINT): Define.
71830         (trim2): Use it to avoid a "may be used uninitialized" warning.
71832         Fix doc typo.
71833         * doc/glibc-functions/getpass.texi (getpass): s/PATH_MAX/PASS_MAX/.
71835 2008-05-19  Bruno Haible  <bruno@clisp.org>
71837         * doc/glibc-functions/getpass.texi: Document limits of other
71838         implementations.
71840 2008-05-19  Simon Josefsson  <simon@josefsson.org>
71841             Bruno Haible <bruno@clisp.org>
71843         * doc/glibc-functions/getpass.texi: Document gnulib implementation.
71845 2008-05-18  Bruno Haible  <bruno@clisp.org>
71847         * modules/propername: New file, from GNU gettext.
71848         * lib/propername.h: New file, from GNU gettext.
71849         * lib/propername.c: New file, from GNU gettext.
71850         * MODULES.html.sh (Internationalization functions): Add propername.
71852 2008-05-16  Jim Meyering  <meyering@redhat.com>
71853             Bruno Haible  <bruno@clisp.org>
71855         Avoid some warnings from "gcc -Wshadow".
71856         * lib/vasnprintf.c (exp, remainder): Define to different identifiers.
71858 2008-05-15  Eric Blake  <ebb9@byu.net>
71860         Extend previous patch to cygwin 1.7.0.
71861         * m4/memmem.m4 (gl_FUNC_MEMMEM): When cross-compiling, assume a
71862         fast implementation in cygwin >= 1.7.0.
71863         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
71864         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
71866 2008-05-15  Bruno Haible  <bruno@clisp.org>
71868         * m4/memmem.m4 (gl_FUNC_MEMMEM): When cross-compiling, assume a fast
71869         implementation in glibc >= 2.9.
71870         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
71871         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
71873 2008-05-15  Bruno Haible  <bruno@clisp.org>
71875         * MODULES.html.sh (Internationalization functions): Remove linebreak.
71876         (Unicode string functions): Add unilbrk/*.
71877         Reported by Karl Berry.
71879 2008-05-15  Eric Blake  <ebb9@byu.net>
71881         Fix violation of <stdbool.h> replacement in regex.
71882         * lib/regcomp.c (re_compile_internal): Avoid implicit cast to bool.
71883         * lib/regexec.c (re_search_internal): Likewise.
71884         Reported by Heinrich Mislik <Heinrich.Mislik@univie.ac.at>.
71886 2008-05-15  Jim Meyering  <meyering@redhat.com>
71888         avoid distracting test output when git or cvs is not found
71889         * tests/test-vc-list-files-cvs.sh: Suppress 'init' error output.
71890         * tests/test-vc-list-files-git.sh: Likewise.
71892 2008-05-15  Eric Blake  <ebb9@byu.net>
71894         Glibc finally accepted the memmem speedup code, bugzilla #5514.
71895         * doc/glibc-functions/memmem.texi (memmem): Mention last broken
71896         glibc version.
71897         * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
71898         * doc/posix-functions/strstr.texi (strstr): Likewise.
71899         * lib/str-two-way.h (MAX): Sychronize with glibc.
71901 2008-05-15  Paolo Bonzini  <bonzini@gnu.org>
71903         * lib/regcomp.c (optimize_utf8): Add a note on why we test
71904         opr.ctx_type.
71905         (calc_first): Initialize constraint field.
71906         (duplicate_node_closure): Use it instead of special casing ANCHORS.
71907         Fix grammar.
71908         (duplicate_node): Merge constraint field for all node types.
71909         (calc_eclosure_iter): Look at constraint field for all node types.
71910         * lib/regex_internal.c (create_cd_newstate): Don't look at
71911         opr.ctx_type.
71913 2008-05-14  Bruno Haible  <bruno@clisp.org>
71915         Help GCC to do better code generation.
71916         * lib/eealloc.h (eemalloc) [GCC >= 3]: Declare with attribute 'malloc'.
71917         * lib/pagealign_alloc.h (pagealign_alloc, pagealign_xalloc): Likewise.
71918         * lib/xalloc.h (ATTRIBUTE_MALLOC): New macro.
71919         (xmalloc, xzalloc, xcalloc, xmemdup, xstrdup, xnmalloc, xcharalloc):
71920         Declare with attribute 'malloc' if supported.
71922 2008-05-14  Lasse Collin  <lasse.collin@tukaani.org>
71924         use "echo STR|wc -c" rather than unportable "expr length STR"
71925         * build-aux/mktempd (mktempd): Vendor-supplied expr from at least
71926         OpenBSD 4.3 and Solaris 10 do not honor expr's "length" function.
71928 2008-05-14  Jim Meyering  <meyering@redhat.com>
71930         use dd ibs=$n count=1 ... rather than less-portable head -c$n
71931         * build-aux/mktempd (rand_bytes): head's -cN option is not accepted
71932         by Solaris 10's /bin/head or by the one from HP-UX 11.x.
71933         Reported in http://sourceforge.net/forum/message.php?msg_id=4960334
71934         via Collin Lasse.
71936 2008-05-14  Eric Blake  <ebb9@byu.net>
71938         Avoid quadratic growth in gl_LIBSOURCES.
71939         * gnulib-tool (func_emit_initmacro_done): s/\(m4_append\)_uniq/\1/.
71940         Suggested by Bruno Haible.
71942         Test xmemdup0.
71943         * modules/xmemdup0-tests: New file.
71944         * tests/test-xmemdup0.c: Likewise.
71946 2008-05-13  Eric Blake  <ebb9@byu.net>
71948         Split xmemdup0 into its own module.
71949         * modules/xmemdup0: New file.
71950         * lib/xmemdup0.h: Likewise.
71951         * lib/xmemdup0.c: Likewise.
71952         * MODULES.html.sh (Memory management functions): Add xmemdup0.
71953         * lib/xalloc.h (xmemdup0): Remove.
71954         * lib/xmalloc.c (xmemdup0): Likewise.
71956 2008-05-13  Eric Blake  <ebb9@byu.net>
71957             Bruno Haible  <bruno@clisp.org>
71959         Reduce number of forks required during autoconf.
71960         * gnulib-tool (func_emit_initmacro_start): Prepare gl_LIBSOURCES_LIST
71961         and gl_LIBSOURCES_DIR.
71962         (func_emit_initmacro_end): Use them here in a single m4_syscmd...
71963         (func_emit_initmacro_done) <gl_LIBSOURCES>: ...rather than in one
71964         m4_syscmd per file.
71965         <m4_foreach_w>: Move...
71966         * m4/gnulib-common.m4 (m4_foreach_w): ...here.
71968 2008-05-13  Eric Blake  <ebb9@byu.net>
71970         * gnulib-tool: Fix various comment typos.
71972 2008-05-12  Bruno Haible  <bruno@clisp.org>
71974         Tailor the linebreaking algorithm.
71975         * lib/unilbrk/tables.c (unilbrk_table): Change (IS,AL) entry.
71977 2008-05-12  Bruno Haible  <bruno@clisp.org>
71979         Update to Unicode 5.0.0.
71980         * lib/unilbrk/tables.h (LBP_*): Add LBP_WJ, LBP_H2, LBP_H3, LBP_JL,
71981         LBP_JV, LBP_JT. Redistribute values.
71982         (unilbrk_table): Change size.
71983         * lib/unilbrk/tables.c (unilbrk_table): Change size. Update to match
71984         Unicode TR#14 rev. 22.
71985         * lib/unilbrk/gen-lbrk.c (LBP_*): Add LBP_WJ, LBP_H2, LBP_H3, LBP_JL,
71986         LBP_JV, LBP_JT. Redistribute values.
71987         (get_lbp): Update to match Unicode TR#14 rev. 21/22 and Unicode 5.0.0.
71988         (debug_output_lbp, fill_org_lbp, debug_output_org_lbp, output_lbp):
71989         Update.
71990         * lib/unilbrk/lbrkprop1.h: Regenerated.
71991         * lib/unilbrk/lbrkprop2.h: Regenerated.
71992         * lib/unilbrk/u8-possible-linebreaks.c (u8_possible_linebreaks):
71993         Change handling of LBP_CM after LBP_ZW. Update for new value of LBP_BK.
71994         * lib/unilbrk/u16-possible-linebreaks.c (u16_possible_linebreaks):
71995         Likewise.
71996         * lib/unilbrk/u32-possible-linebreaks.c (u32_possible_linebreaks):
71997         Likewise.
71998         * tests/unilbrk/test-u8-possible-linebreaks.c (main): Update expected
71999         result.
72000         * tests/unilbrk/test-u16-possible-linebreaks.c (main): Likewise.
72001         * tests/unilbrk/test-u32-possible-linebreaks.c (main): Likewise.
72002         * tests/unilbrk/test-ulc-possible-linebreaks.c (main): Likewise.
72003         * tests/unilbrk/test-u8-width-linebreaks.c (main): Likewise.
72004         * tests/unilbrk/test-u16-width-linebreaks.c (main): Likewise.
72005         * tests/unilbrk/test-u32-width-linebreaks.c (main): Likewise.
72007 2008-05-11  Bruno Haible  <bruno@clisp.org>
72009         * lib/unilbrk/gen-lbrk.c (output_lbp): Fix whitespace.
72011 2008-05-11  Bruno Haible  <bruno@clisp.org>
72013         * lib/unilbrk/gen-lbrk.c: New file, from GNU gettext (gen-lbrkprop.c).
72014         * modules/unilbrk/gen-lbrk: New file.
72016 2008-05-11  Bruno Haible  <bruno@clisp.org>
72018         * m4/sha256.m4 (gl_SHA256): Require AC_C_INLINE.
72019         * m4/sha512.m4 (gl_SHA512): Likewise.
72021 2008-05-11  Jim Meyering  <meyering@redhat.com>
72023         New modules: crypto/sha256, crypto/sha512 (from coreutils)
72024         * modules/crypto/sha256: New file.
72025         * modules/crypto/sha512: Likewise.
72026         * lib/sha256.c: Likewise.
72027         * lib/sha256.h: Likewise.
72028         * lib/sha512.c: Likewise.
72029         * lib/sha512.h: Likewise.
72030         * lib/u64.h: Likewise.
72031         * m4/sha256.m4: Likewise.
72032         * m4/sha512.m4: Likewise.
72033         * MODULES.html.sh (Cryptographic computations (low-level)): List them.
72035 2008-05-10  Bruno Haible  <bruno@clisp.org>
72037         * MODULES.html.sh (Environment variables <stdlib.h>): Add unsetenv.
72038         (Input/Output <stdio.h>): Add xprintf.
72039         (Signal handling <signal.h>): Add strsignal.
72040         (Cryptographic computations (high-level)): Add crypto/gc-camellia.
72041         (Core language properties): Add func.
72042         (Mathematics <math.h>): Add ceil, floor, frexp-nolibm.
72043         (Support for systems lacking POSIX:2001): Add environ, EOVERFLOW,
72044         strings.
72045         (Enhancements for POSIX:2001 functions): Add iconv_open-utf.
72046         (Input/output): New section.
72047         (File system functions): Add openat-die, stat-macros.
72048         (Networking functions): Add sockets.
72049         (Unicode string functions): Add unictype/*.
72050         (Support for building libraries and executables): Add gperf.
72051         (Support for building documentation): Add agpl-3.0.
72052         (Misc): Add nocrash.
72054 2008-05-10  Bruno Haible  <bruno@clisp.org>
72056         * modules/unictype/gen-ctype: New file.
72058 2008-05-10  Jim Meyering  <meyering@redhat.com>
72060         Make chdir-safer.c more efficient on a system with no symlinks.
72061         * lib/chdir-safer.c (chdir_no_follow): Skip lstat and fstat calls
72062         also if ELOOP is zero.  Suggested by Bruno Haible.
72064         Make chdir-safer.c slightly safer.
72065         * lib/chdir-safer.c (chdir_no_follow): Test HAVE_WORKING_O_NOFOLLOW,
72066         not O_NOFOLLOW, in case the latter is nonzero and open ignores it.
72068         Avoid compile failure on systems without ELOOP (like mingw).
72069         * lib/chdir-safer.c (ELOOP): Define if not already defined.
72070         Reported by Bruno Haible.
72072 2008-05-10  Bruno Haible  <bruno@clisp.org>
72074         * lib/unilbrk/ulc-common.c: Include c-strcaseeq.h instead of streq.h.
72075         (is_utf8_encoding): Use a case-insensitive comparison.
72076         * modules/unilbrk/ulc-common (Depends-on): Add c-strcaseeq. Remove
72077         streq.
72079 2008-05-10  Bruno Haible  <bruno@clisp.org>
72081         * lib/unilbrk/ulc-common.c: Don't include <stdlib.h>.
72082         (iconv_string_length, iconv_string_keeping_offsets): Remove functions.
72083         * lib/unilbrk/ulc-common.h (iconv_string_length,
72084         iconv_string_keeping_offsets): Remove declarations.
72085         * lib/unilbrk/ulc-possible-linebreaks.c: Include <string.h>, uniconv.h.
72086         Don't include <iconv.h>, streq.h, xsize.h.
72087         (ulc_possible_linebreaks): Use u8_conv_from_encoding for doing the
72088         conversion.
72089         * lib/unilbrk/ulc-width-linebreaks.c: Include uniconv.h. Don't include
72090         <iconv.h>, streq.h, xsize.h.
72091         (ulc_width_linebreaks): Use u8_conv_from_encoding for doing the
72092         conversion.
72093         * modules/unilbrk/ulc-common (Depends-on): Remove iconv.
72094         * modules/unilbrk/ulc-possible-linebreaks (Depends-on): Add
72095         uniconv/u8-conv-from-enc. Remove iconv_open, streq, xsize.
72096         * modules/unilbrk/ulc-width-linebreaks (Depends-on): Likewise.
72098 2008-05-10  Bruno Haible  <bruno@clisp.org>
72100         * modules/unilbrk/ulc-width-linebreaks-tests: New file.
72101         * tests/unilbrk/test-ulc-width-linebreaks.c: New file.
72103         * modules/unilbrk/u32-width-linebreaks-tests: New file.
72104         * tests/unilbrk/test-u32-width-linebreaks.c: New file.
72106         * modules/unilbrk/u16-width-linebreaks-tests: New file.
72107         * tests/unilbrk/test-u16-width-linebreaks.c: New file.
72109         * modules/unilbrk/u8-width-linebreaks-tests: New file.
72110         * tests/unilbrk/test-u8-width-linebreaks.c: New file.
72112         * modules/unilbrk/ulc-possible-linebreaks-tests: New file.
72113         * tests/unilbrk/test-ulc-possible-linebreaks.c: New file.
72115         * modules/unilbrk/u32-possible-linebreaks-tests: New file.
72116         * tests/unilbrk/test-u32-possible-linebreaks.c: New file.
72118         * modules/unilbrk/u16-possible-linebreaks-tests: New file.
72119         * tests/unilbrk/test-u16-possible-linebreaks.c: New file.
72121         * modules/unilbrk/u8-possible-linebreaks-tests: New file.
72122         * tests/unilbrk/test-u8-possible-linebreaks.c: New file.
72124 2008-05-10  Bruno Haible  <bruno@clisp.org>
72126         Split up 'linebreak' module.
72127         * lib/unilbrk.h: New file, based on lib/linebreak.h.
72128         * lib/unilbrk/lbrkprop1.h: New file, extracted from lib/lbrkprop.h.
72129         * lib/unilbrk/lbrkprop2.h: New file, renamed from lib/lbrkprop.h with
72130         modifications.
72131         * lib/unilbrk/tables.h: New file, extracted from lib/linebreak.c.
72132         * lib/unilbrk/tables.c: New file, extracted from lib/linebreak.c.
72133         * lib/unilbrk/u8-possible-linebreaks.c: New file, extracted from
72134         lib/linebreak.c.
72135         * lib/unilbrk/u16-possible-linebreaks.c: New file, extracted from
72136         lib/linebreak.c.
72137         * lib/unilbrk/u32-possible-linebreaks.c: New file, extracted from
72138         lib/linebreak.c.
72139         * lib/unilbrk/ulc-common.h: New file, extracted from lib/linebreak.c.
72140         * lib/unilbrk/ulc-common.c: New file, extracted from lib/linebreak.c.
72141         * lib/unilbrk/ulc-possible-linebreaks.c: New file, extracted from
72142         lib/linebreak.c.
72143         * lib/unilbrk/u8-width-linebreaks.c: New file, extracted from
72144         lib/linebreak.c.
72145         * lib/unilbrk/u16-width-linebreaks.c: New file, extracted from
72146         lib/linebreak.c.
72147         * lib/unilbrk/u32-width-linebreaks.c: New file, extracted from
72148         lib/linebreak.c.
72149         * lib/unilbrk/ulc-width-linebreaks.c: New file, extracted from
72150         lib/linebreak.c.
72151         * modules/unilbrk/base: New file.
72152         * modules/unilbrk/tables: New file.
72153         * modules/unilbrk/u8-possible-linebreaks: New file.
72154         * modules/unilbrk/u16-possible-linebreaks: New file.
72155         * modules/unilbrk/u32-possible-linebreaks: New file.
72156         * modules/unilbrk/ulc-common: New file.
72157         * modules/unilbrk/ulc-possible-linebreaks: New file.
72158         * modules/unilbrk/u8-width-linebreaks: New file.
72159         * modules/unilbrk/u16-width-linebreaks: New file.
72160         * modules/unilbrk/u32-width-linebreaks: New file.
72161         * modules/unilbrk/ulc-width-linebreaks: New file.
72162         * lib/linebreak.h: Remove file.
72163         * lib/linebreak.c: Remove file.
72164         * m4/linebreak.m4: Remove file.
72165         * modules/linebreak: Remove file.
72166         * NEWS: Mention the changes.
72168 2008-05-09  Eric Blake  <ebb9@byu.net>
72170         Add xmemdup0.
72171         * lib/xalloc.h (xmemdup0): New prototype and C++ typesafe
72172         implementation.
72173         * lib/xmalloc.c (xmemdup0): New C implementation.
72175 2008-05-08  Bruno Haible  <bruno@clisp.org>
72177         * m4/wctype.m4 (gl_WCTYPE_H): Correct indentation.
72179 2008-05-07  Eric Blake  <ebb9@byu.net>
72181         Support cross-compilation of <wctype.h>.
72182         * m4/wctype.m4 (gl_WCTYPE_H): Fix improper nesting in
72183         AC_CACHE_CHECK.
72185 2008-05-06  Soren Hansen  <soren@ubuntu.com>  (tiny change)
72187         * build-aux/vc-list-files: Add support for bzr.
72189 2008-05-03  Jim Meyering  <meyering@redhat.com>
72191         avoid failed assertion with tight malloc
72192         * tests/test-getndelim2.c: Correct an off-by-one assertion.
72194 2008-05-03  Simon Josefsson  <simon@josefsson.org>
72196         * m4/inet_pton.m4: Set HAVE_DECL_INET_PTON to 0 when declarations
72197         are needed from arpa/inet.h.
72198         * m4/inet_ntop.m4: Likewise, for HAVE_DECL_INET_NTOP.
72199         Reported by Bruno Haible.
72201 2008-05-02  Jim Meyering  <meyering@redhat.com>
72203         avoid compilation error on FreeBSD 6
72204         * tests/test-getaddrinfo.c [!defined EAI_NODATA] (EAI_NODATA): Define.
72206 2008-05-01  Jim Meyering  <meyering@redhat.com>
72208         useless-if-before-free: correct --help's exit status description
72209         * build-aux/useless-if-before-free (usage): Like grep, exit 0
72210         for one or more matches, etc.  Reported by Bruno Haible.
72212         vc-list-files: make the stand-alone gnulib test work
72213         * modules/vc-list-files-tests (configure.ac):
72214         Define and AC_SUBST abs_aux_dir.
72215         (Makefile.am) [TESTS_ENVIRONMENT]: Rather than passing
72216         $(abs_top_srcdir) to each script and having each of them
72217         duplicate the work of setting PATH, set PATH here, using
72218         the new variable, abs_aux_dir instead.
72219         * tests/test-vc-list-files-cvs.sh: Don't set PATH here.
72220         * tests/test-vc-list-files-git.sh: Likewise.
72221         Reported by Bruno Haible.
72223 2008-05-01  Bruno Haible  <bruno@clisp.org>
72225         * lib/getndelim2.c (getndelim2): Fix newsize computation during
72226         reallocation. Rename 'done' to 'found_delimiter'.
72228 2008-05-01  Jim Meyering  <meyering@redhat.com>
72230         vc-list-files: accommodate /bin/sh like the one from Solaris 10
72231         * build-aux/vc-list-files: Use `...`, not $(...).
72233 2008-04-30  Jim Meyering  <meyering@redhat.com>
72235         add tests for vc-list-files
72236         * modules/vc-list-files-tests: New module.
72237         * tests/test-vc-list-files-cvs.sh: New file.
72238         * tests/test-vc-list-files-git.sh: New file.
72240         avoid a warning from gcc
72241         * lib/getndelim2.c (IF_LINT): Define.
72242         (getndelim2): Use it to avoid a "may be used uninitialized" warning.
72244         vc-list-files: work properly with build-aux/cvsu, too
72245         * build-aux/vc-list-files: Hoist the "./"-removing code to apply
72246         to all cvs-based clauses.
72248         vc-list-files: work properly in the CVS+awk case, too
72249         * build-aux/vc-list-files: In the CVS+awk case, remove "./" prefix.
72251         vc-list-files: avoid use of ${*-*} that fails when /bin/sh is dash
72252         * build-aux/vc-list-files: Simplify ${*-*} to $dir, since we no longer
72253         take more than one file argument, so .  Add quotes, just in case $dir
72254         ever contains a shell meta-character.  Prompted by Soren Hansen in
72255         <http://thread.gmane.org/gmane.comp.emulators.libvirt/6221/focus=6240>.
72257 2008-04-29  Eric Blake  <ebb9@byu.net>
72259         Optimize getndelim2 to use block operations when possible.
72260         * modules/getndelim2 (Depends-on): Add stdbool, freadptr,
72261         freadseek, and memchr2.
72262         * lib/getndelim2.c (getndelim2): Use them for block reads.
72264 2008-04-29  Bruno Haible  <bruno@clisp.org>
72266         * m4/inet_ntop.m4 (gl_INET_NTOP): Require gl_USE_SYSTEM_EXTENSIONS.
72267         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
72268         * modules/inet_ntop (Depends-on): Add extensions.
72269         * modules/inet_pton (Depends-on): Likewise.
72270         Reported by Simon Josefsson.
72272 2008-04-29  Jim Meyering  <meyering@redhat.com>
72274         When the is more than one match in a block, match all of them.
72275         * build-aux/useless-if-before-free: Iterate through each block
72276         until there are no more matches.
72278         Fix broken useless-if-before-free script.
72279         * build-aux/useless-if-before-free: Fix typo: missing "?" after
72280         the expression to match cast of argument to free-like function.
72282 2008-04-29  Eric Blake  <ebb9@byu.net>
72284         Use new header.
72285         * lib/getaddrinfo.c (includes): s/"inet_ntop.h"/<arpa/inet.h>/.
72287 2008-04-29  Jim Meyering  <meyering@redhat.com>
72289         Avoid test segfault on x86_64 due to lack of inet_ntop declaration.
72290         * tests/test-getaddrinfo.c: Include <arpa/inet.h>, now guaranteed
72291         by gnulib to exist and to declare e.g., inet_ntop.
72292         Don't include "inet_ntop.h", now removed.
72294         * m4/arpa_inet_h.m4: Remove trailing blanks.
72296 2008-04-29  Eric Blake  <ebb9@byu.net>
72298         Silence valgrind on safe reads beyond potential array bounds.
72299         * lib/rawmemchr.valgrind: New file.
72300         * lib/strchrnul.valgrind: Likewise.
72301         * modules/rawmemchr (Files): Distribute new file.
72302         * modules/strchrnul (Files): Likewise.
72303         Suggested by Bruno Haible.
72305 2008-04-29  Bruno Haible  <bruno@clisp.org>
72307         * lib/arpa_inet.in.h: Include system's <arpa/inet.h> if it exists.
72308         (inet_ntop, inet_pton): Change portability warning's wording.
72309         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Set HAVE_ARPA_INET_H.
72310         Invoke gl_CHECK_NEXT_HEADERS.
72311         (gl_ARPA_INET_H_DEFAULTS): Initialize ARPA_INET_H.
72312         * m4/inet_ntop.m4 (gl_INET_NTOP): Require gl_ARPA_INET_H_DEFAULTS and
72313         set ARPA_INET_H.
72314         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
72315         * modules/arpa_inet (Description): No longer only for systems that
72316         lack it.
72317         (Depends-on): Add include_next.
72318         (Makeile.am): Substitute INCLUDE_NEXT, NEXT_ARPA_INET_H,
72319         HAVE_ARPA_INET_H.
72321 2008-04-29  Jim Meyering  <meyering@redhat.com>
72323         * modules/mkdir (License): Re-license as LGPLv2+.
72325 2008-04-29  Bruno Haible  <bruno@clisp.org>
72327         * modules/rawmemchr (Maintainer): Set to Eric.
72328         * modules/strchrnul (Maintainer): Likewise.
72330 2008-04-29  Simon Josefsson  <simon@josefsson.org>
72332         * m4/arpa_inet_h.m4 (gl_ARPA_INET_H_DEFAULTS): Set
72333         HAVE_DECL_INET_NTOP and HAVE_DECL_INET_PTON.
72335         * modules/arpa_inet (arpa/inet.h): Use them.
72337 2008-04-28  Eric Blake  <ebb9@byu.net>
72339         Test getndelim2.
72340         * modules/getndelim2-tests: New file.
72341         * tests/test-getndelim2.c: Likewise.
72342         * lib/getndelim2.c (getndelim2): Never return 0.  Lock the
72343         stream.
72344         * m4/getndelim2.m4 (gl_GETNDELIM2): Check for lock functions.
72346         * MODULES.html.sh: Document new module.
72348 2008-04-20  Bruno Haible  <bruno@clisp.org>
72350         * lib/c-stack.c (die): Use raise.
72351         * modules/c-stack (Depends-on): Add raise.
72353 2008-04-28  Bruno Haible  <bruno@clisp.org>
72355         Expect rpmatch to be declared.
72356         * lib/yesno.c (rpmatch): Remove declaration.
72358         Declare rpmatch.
72359         * lib/stdlib.in.h (rpmatch): New declaration.
72360         * lib/rpmatch.c: Include <stdlib.h> first.
72361         * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Require AC_USE_SYSTEM_EXTENSIONS and
72362         gl_STDLIB_H_DEFAULTS. Set HAVE_RPMATCH.
72363         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_RPMATCH,
72364         HAVE_RPMATCH.
72365         * modules/rpmatch (Depends-on): Add stdlib, extensions.
72366         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
72367         (Include): Set to <stdlib.h>.
72368         * modules/stdlib (Makefile.am): Substitute GNULIB_RPMATCH and
72369         HAVE_RPMATCH.
72370         * NEWS: Document the change.
72372 2008-04-28  Bruno Haible  <bruno@clisp.org>
72374         Change rpmatch to use nl_langinfo when appropriate.
72375         * lib/rpmatch.c: Include stdbool.h, string.h, langinfo.h.
72376         (N_): New macro.
72377         (localized_pattern): New function/macro.
72378         (try): Remove match, nomatch arguments. Copy the pattern into safe
72379         memory before caching it.
72380         (rpmatch): Use localized_pattern. Add translator comments.
72381         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Test for nl_langinfo and YESEXPR.
72382         Suggested by Eric Blake.
72383         * modules/rpmatch (Depends-on): Add stdbool.
72385 2008-04-28  Eric Blake  <ebb9@byu.net>
72387         Add rawmemchr module, matching glibc.
72388         * modules/string (Makefile.am): New indicator.
72389         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Set it.
72390         * lib/string.in.h (rawmemchr): Declare when appropriate.
72391         * modules/rawmemchr: New file.
72392         * m4/rawmemchr.m4: Likewise.
72393         * lib/rawmemchr.c: Likewise.
72394         * modules/rawmemchr-tests: Likewise.
72395         * tests/test-rawmemchr.c: Likewise.
72396         * doc/glibc-functions/rawmemchr.texi (rawmemchr): Document
72397         module.
72398         * modules/strchrnul (Depends-on): Add rawmemchr.
72399         * lib/strchrnul.c (strchrnul): Optimize a corner case.
72401         Whitespace cleanup.
72402         * tests/test-strchrnul.c: Reindent.
72403         * lib/strchrnul.c: Likewise.
72405         Optimize and test strchrnul.
72406         * lib/strchrnul.c (strchrnul): Rewrite to do parallel search.
72407         * modules/strchrnul-tests: New file.
72408         * tests/test-strchrnul.c: Likewise.
72410         Remove intprops dependency.
72411         * modules/memchr (Depends-on): Remove intprops.
72412         * modules/memrchr (Depends-on): Likewise.
72413         * modules/memchr2 (Depends-on): Likewise.
72414         * lib/memchr.c (__memchr): Hand-inline the TYPE_MAXIMUM check.
72415         * lib/memrchr.c (__memrchr): Likewise.
72416         * lib/memrchr2.c (memchr2): Likewise.
72417         Reported by Simon Josefsson.
72419 2008-04-28  Simon Josefsson  <simon@josefsson.org>
72421         * m4/sys_socket_h.m4: Move AC_REQUIRE([AC_C_INLINE]) to top.
72422         Suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
72424 2008-04-28  Simon Josefsson  <simon@josefsson.org>
72426         * lib/inet_ntop.h, lib/inet_pton.h: Remove files.
72428         * lib/inet_ntop.c: Include arpa/inet.h instead of inet_ntop.h.
72430         * lib/inet_pton.c: Include arpa/inet.h instead of inet_pton.h.
72432         * lib/arpa_inet.in.h [@GNULIB_INET_NTOP@]: Inline inet_ntop.h
72433         declarations.
72434         [@GNULIB_INET_PTON@]: Inline inet_pton.h declarations.
72436         * m4/inet_pton.m4: Don't check for header files.
72438         * m4/inet_ntop.m4: Don't check for header files.
72440 2008-04-28  Simon Josefsson  <simon@josefsson.org>
72442         * m4/sys_socket_h.m4: Require AC_C_INLINE when necessary.
72443         * lib/sys_socket.in.h (setsockopt): Use proper win32 tests (don't
72444         trigger for cygwin).
72445         Reported by Bruno Haible  <bruno@clisp.org>.
72447 2008-04-28  Bruno Haible  <bruno@clisp.org>
72449         * doc/posix-functions/strdup.texi: Mention mingw problem.
72451 2008-04-27  Bruno Haible  <bruno@clisp.org>
72453         * modules/stat-time-tests (Depends-on): Add sleep.
72454         * tests/test-stat-time.c (force_unlink): New function.
72455         (cleanup): Use it.
72456         (test_mtime): Remove the ctime related tests.
72457         (test_ctime): New function, containing the ctime related tests.
72458         (main): Call test_ctime, except on native Windows platforms.
72460 2008-04-27  Bruno Haible  <bruno@clisp.org>
72462         * lib/rpmatch.c (rpmatch): Add some comments.
72463         Reported by James Youngman <jay@gnu.org>.
72465 2008-04-27  Bruno Haible  <bruno@clisp.org>
72467         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Also test the behaviour on
72468         quiet NaNs.
72470 2008-04-27  Bruno Haible  <bruno@clisp.org>
72472         Make test-yesno.sh work on mingw.
72473         * tests/test-yesno.sh: Postprocess the output to convert CR/LF to LF.
72474         * tests/test-yesno.c: Include yesno.h first. Include binary-io.h.
72475         (main): Set stdin to binary mode.
72476         * modules/yesno-tests (Depends-on): Add binary-io.
72478 2008-04-27  Bruno Haible  <bruno@clisp.org>
72480         Fix 'isfinite' on x86, x86_64, ia64 platforms.
72481         * tests/test-isfinite.c (test_isfinitel): Also test the behavior on
72482         argument that lie outside the IEEE 854 domain.
72483         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): New macro.
72484         (gl_ISFINITE): Use it.
72485         * doc/posix-functions/isfinite.texi: Document the fixed bugs.
72487 2008-04-27  Bruno Haible  <bruno@clisp.org>
72489         Allow local renaming in config.h.
72490         * lib/memrchr.c (memrchr): Don't undefine outside libc.
72492 2008-04-27  Bruno Haible  <bruno@clisp.org>
72494         * lib/memchr.c (__memchr): Change type of 'i'.
72495         * lib/memchr2.c (memchr2): Likewise.
72497 2008-04-26  Eric Blake  <ebb9@byu.net>
72498         and Bruno Haible  <bruno@clisp.org>
72500         Optimize and test memrchr.
72501         * modules/memrchr (Depends-on): Add intprops.
72502         * lib/memrchr.c (__memrchr): Avoid false positives in loop.
72503         * modules/memrchr-tests: New file.
72504         * tests/test-memrchr.c: New file.
72506 2008-04-26  Bruno Haible  <bruno@clisp.org>
72508         Add tentative support for DragonFly BSD.
72509         * lib/stdio-impl.h: Add macros for DragonFly BSD.
72510         * lib/fbufmode.c (fbufmode): Update conditionals. Use fp_ instead of
72511         fp.
72512         * lib/fflush.c (clear_ungetc_buffer, disable_seek_optimization,
72513         restore_seek_optimization, update_fpos_cache, rpl_fflush: Likewise.
72514         * lib/fpurge.c (fpurge): Likewise.
72515         * lib/freadable.c (freaadable): Likewise.
72516         * lib/freadahead.c (freadahead): Likewise.
72517         * lib/freading.c (freading): Likewise.
72518         * lib/freadptr.c (freadptr): Likewise.
72519         * lib/freadseek.c (freadptrinc): Likewise.
72520         * lib/fseeko.c (fseeko): Likewise.
72521         * lib/fseterr.c (fseterr): Likewise.
72522         * lib/fwritable.c (fwritable): Likewise.
72523         * lib/fwriting.c (fwriting): Likewise.
72525 2008-04-26  Bruno Haible  <bruno@clisp.org>
72527         * lib/stdio-impl.h: New file.
72528         * lib/fbufmode.c: Include stdio-impl.h.
72529         (fbufmode): Use fp_, remove redundant #defines.
72530         * lib/fflush.c: Include stdio-impl.h.
72531         (clear_ungetc_buffer): Remove redundant #defines.
72532         * lib/fpurge.c: Include stdio-impl.h.
72533         (fpurge): Remove redundant #defines.
72534         * lib/freadable.c: Include stdio-impl.h.
72535         (freadable): Remove redundant #defines.
72536         * lib/freadahead.c: Include stdio-impl.h.
72537         (freadahead): Remove redundant #defines.
72538         * lib/freading.c: Include stdio-impl.h.
72539         (freading): Remove redundant #defines.
72540         * lib/freadptr.c: Include stdio-impl.h.
72541         (freadptr): Remove redundant #defines.
72542         * lib/freadseek.c: Include stdio-impl.h.
72543         (freadptrinc): Remove redundant #defines.
72544         * lib/fseeko.c: Include stdio-impl.h.
72545         (rpl_fseeko): Remove redundant #defines.
72546         * lib/fseterr.c: Include stdio-impl.h.
72547         (fseterr): Remove redundant #defines.
72548         * lib/fwritable.c: Include stdio-impl.h.
72549         (fwritable: Remove redundant #defines.
72550         * lib/fwriting.c: Include stdio-impl.h.
72551         (fwriting): Remove redundant #defines.
72552         * modules/fbufmode (Files): Add lib/stdio-impl.h.
72553         * modules/fflush (Files): Likewise.
72554         * modules/fpurge (Files): Likewise.
72555         * modules/freadable (Files): Likewise.
72556         * modules/freadahead (Files): Likewise.
72557         * modules/freading (Files): Likewise.
72558         * modules/freadptr (Files): Likewise.
72559         * modules/freadseek (Files): Likewise.
72560         * modules/fseeko (Files): Likewise.
72561         * modules/fseterr (Files): Likewise.
72562         * modules/fwritable (Files): Likewise.
72563         * modules/fwriting (Files): Likewise.
72565 2008-04-26  Bruno Haible  <bruno@clisp.org>
72567         * lib/fflush.c (clear_ungetc_buffer, disable_seek_optimization,
72568         restore_seek_optimization, update_fpos_cache): New functions, extracted
72569         from rpl_fflush.
72570         (rpl_fflush): Use them.
72571         * m4/fflush.m4 (gl_PREREQ_FFLUSH): New macro.
72572         (gl_REPLACE_FFLUSH): Use it.
72574 2008-04-26  Bruno Haible  <bruno@clisp.org>
72576         * tests/test-xstrtol.sh: Work around limitation of an old 'tr' program
72577         on Solaris.
72578         * tests/test-xstrtoimax.sh: Likewise.
72579         * tests/test-xstrtoumax.sh: Likewise.
72580         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
72582 2008-04-26  Bruno Haible  <bruno@clisp.org>
72584         * modules/memchr-tests: New file.
72585         * tests/test-memchr.c; New file, based on tests/test-memchr2.c.
72587 2008-04-26  Eric Blake  <ebb9@byu.net>
72588             Bruno Haible  <bruno@clisp.org>
72590         * lib/memchr.c: Include intprops.h.
72591         (__memchr): Optimize parallel detection of matching bytes. Rename local
72592         variables. Add explanatory comments.
72594 2008-04-26  Bruno Haible  <bruno@clisp.org>
72596         Fix module 'memchr', broken since 2000-10-28.
72597         * lib/memchr.c: Outside glibc, define memchr, not __memchr.
72599 2008-04-26  Bruno Haible  <bruno@clisp.org>
72601         * lib/memchr2.c (memchr2): Rename local variables. Add explanatory
72602         comments.
72604 2008-04-25  Eric Blake  <ebb9@byu.net>
72606         Use native fstatat on cygwin 1.7.0.
72607         * m4/openat.m4 (gl_FUNC_OPENAT): Make sure lstat check is made
72608         first.
72610 2008-04-23  Eric Blake  <ebb9@byu.net>
72612         Improve memchr2 performance.
72613         * lib/memchr2.c (memchr2): Further optimize parallel detection of
72614         NUL bytes.
72615         * modules/memchr2 (Depends-on): Use intprops.h.
72617 2008-04-23  Simon Josefsson  <simon@josefsson.org>
72619         * lib/sys_socket.in.h (setsockopt): Be more type safe by declaring
72620         an inline function instead of a CPP macro.  Patch by Ben Pfaff
72621         <blp@cs.stanford.edu>.
72623 2008-04-23  Simon Josefsson  <simon@josefsson.org>
72625         * lib/arpa_inet.in.h: New file.
72627         * modules/arpa_inet (Files): Add lib/arpa_inet.in.h.
72628         (Makefile.am): Sed in substitute header file.
72630         * m4/arpa_inet_h.m4: Add gl_ARPA_INET_H_DEFAULTS and
72631         gl_ARPA_INET_MODULE_INDICATOR.  Use them.
72633         * modules/inet_ntop (configure.ac): Use
72634         gl_ARPA_INET_MODULE_INDICATOR.
72636         * modules/inet_pton (configure.ac): Use
72637         gl_ARPA_INET_MODULE_INDICATOR.
72639 2008-04-22  Jim Meyering  <meyering@redhat.com>
72641         * modules/verify (License): Re-license as LGPLv2+.
72643 2008-04-22  Simon Josefsson  <simon@josefsson.org>
72645         * lib/sys_socket.in.h: Define setsockopt macro to cast fourth
72646         parameter to void* as per POSIX standard (MinGW uses char*).
72648 2008-04-21  Bruno Haible  <bruno@clisp.org>
72650         * lib/wctype.in.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
72651         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit):
72652         Define to replacements if REPLACE_ISWCNTRL is 1.
72653         * m4/wctype.m4 (gl_WCTYPE_H): Test whether the isw* functions work.
72654         If not, set WCTYPE_H to nonempty and REPLACE_ISWCNTRL to 1.
72655         * modules/wctype (Makefile.am): Substitute REPLACE_ISWCNTRL.
72656         * doc/posix-functions/iswalnum.texi: Mention the 'wctype' module and
72657         what it fixes.
72658         * doc/posix-functions/iswalpha.texi: Likewise.
72659         * doc/posix-functions/iswblank.texi: Likewise.
72660         * doc/posix-functions/iswcntrl.texi: Likewise.
72661         * doc/posix-functions/iswdigit.texi: Likewise.
72662         * doc/posix-functions/iswgraph.texi: Likewise.
72663         * doc/posix-functions/iswlower.texi: Likewise.
72664         * doc/posix-functions/iswprint.texi: Likewise.
72665         * doc/posix-functions/iswpunct.texi: Likewise.
72666         * doc/posix-functions/iswspace.texi: Likewise.
72667         * doc/posix-functions/iswupper.texi: Likewise.
72668         * doc/posix-functions/iswxdigit.texi: Likewise.
72669         Reported by Alain Guibert.
72671 2008-04-21  Bruno Haible  <bruno@clisp.org>
72673         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Fix typo in last commit.
72674         Patch by Alain Guibert.
72676 2008-04-21  Bruno Haible  <bruno@clisp.org>
72678         Fix test failures on mingw.
72679         * tests/test-xstrtol.c (print_no_progname): New function.
72680         (main): Install it in error_print_progname hook.
72681         * tests/test-xstrtol.sh: Convert CR/LF to NL in output.
72682         * tests/test-xstrtoimax.sh: Likewise.
72683         * tests/test-xstrtoumax.sh: Likewise.
72685 2008-04-21  Bruno Haible  <bruno@clisp.org>
72687         Fix test failure on mingw.
72688         * tests/test-argp-2.sh (func_compare): Remove CRs from sed's output.
72690 2008-04-21  Bruno Haible  <bruno@clisp.org>
72692         * lib/localename.c (SUBLANG_TIBETAN_PRC, SUBLANG_TIBETAN_BHUTAN):
72693         Actually assign a value.
72695 2008-04-20  Bruno Haible  <bruno@clisp.org>
72697         Fix conflict between modules 'canonicalize' and 'canonicalize-lgpl',
72698         take 2.
72699         * lib/canonicalize.c (canonicalize_file_name): Elide if the
72700         'canonicalize-lgpl' module is also used.
72701         * lib/canonicalize-lgpl.c: Undo last change.
72702         * modules/canonicalize-lgpl (configure.ac): Invoke gl_MODULE_INDICATOR.
72704 2008-04-20  Bruno Haible  <bruno@clisp.org>
72706         * lib/mkdir.c (mkdir): Undefine after the includes, not right after
72707         config.h. Provide _mkdir based fallback for mingw.
72708         * lib/sys_stat.in.h (mkdir): Define through an 'extern' declaration
72709         if REPLACE_MKDIR is 1. Otherwise, test for mingw directly.
72710         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Require
72711         gl_SYS_STAT_H_DEFAULTS. When doing the replacement, set REPLACE_MKDIR
72712         rather than defining mkdir in config.h.
72713         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): New macro.
72714         (gl_SYS_STAT_H_DEFAULTS): New macro.
72715         (gl_HEADER_SYS_STAT_H): Require it. Don't set HAVE_DECL_MKDIR and
72716         HAVE_IO_H any more.
72717         * modules/sys_stat (Makefile.am): Substitute REPLACE_MKDIR instead of
72718         HAVE_DECL_MKDIR and HAVE_IO_H.
72720 2008-04-20  Bruno Haible  <bruno@clisp.org>
72722         * lib/isapipe.c: Port to native Windows platforms.
72724 2008-04-20  Bruno Haible  <bruno@clisp.org>
72726         * lib/gc-gnulib.c: Include <windows.h> before <wincrypt.h>.
72728 2008-04-21  Eric Blake  <ebb9@byu.net>
72730         Work around preprocessors that don't handle UINTMAX_MAX.
72731         * lib/memchr2.c (memchr2): Avoid embedded #if.
72732         Reported by Alain Guibert, fix suggested by Bruno Haible.
72734 2008-04-21  Simon Josefsson  <simon@josefsson.org>
72736         * doc/posix-functions/strftime.texi (strftime): Explain better
72737         Windows incompatibility.  Suggested by Micah Cowan
72738         <micah@cowan.name>.
72740 2008-04-20  Bruno Haible  <bruno@clisp.org>
72742         * modules/uniconv/u32-conv-to-enc (Depends-on): Add unistr/u32-mblen,
72743         unistr/u8-mblen.
72745 2008-04-20  Bruno Haible  <bruno@clisp.org>
72747         Fix test failure on platforms with non-GNU iconv.
72748         * lib/uniconv/u16-conv-to-enc.c (u16_to_u8_lenient): New function.
72749         (U_TO_U8): Use it, rather than u16_to_u8.
72750         * lib/uniconv/u-conv-to-enc.h (FUNC): Allow an incomplete sequence of
72751         units at the end of the input string.
72752         * modules/uniconv/u16-conv-to-enc (Depends-on): Update.
72754 2008-04-20  Bruno Haible  <bruno@clisp.org>
72756         * tests/uniconv/test-u8-conv-to-enc.c (main): Accept result == NULL
72757         when the resulting length is 0.
72758         * tests/uniconv/test-u16-conv-to-enc.c (main): Likewise.
72760 2008-04-20  Bruno Haible  <bruno@clisp.org>
72762         * m4/roundf.m4 (gl_FUNC_ROUNDF): Add test whether roundf actually
72763         works.
72764         * doc/posix-functions/roundf.texi: Mention roundf bug on mingw.
72766 2008-04-20  Bruno Haible  <bruno@clisp.org>
72768         * tests/test-tsearch.c (main): Don't use initstate if it is missing.
72769         * modules/tsearch-tests (configure.ac): Test for initstate function.
72771 2008-04-20  Bruno Haible  <bruno@clisp.org>
72773         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Also provided a substitute
72774         for nlink_t if missing.
72775         * tests/test-sys_stat.c: Check the existence of the nlink_t type.
72777 2008-04-19  Bruno Haible  <bruno@clisp.org>
72779         Work around snprintf bug on Linux libc5.
72780         * m4/printf.m4 (gl_SNPRINTF_SIZE1): New macro.
72781         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
72782         gl_SNPRINTF_SIZE1.
72783         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
72784         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Likewise. Replace snprintf if
72785         that test failed.
72786         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Likewise.
72787         * lib/vasnprintf.c (USE_SNPRINTF): Set to 0 on Linux libc5 systems.
72788         * modules/snprintf (Files): Add m4/printf.m4.
72789         * modules/vsnprintf (Files): Likewise.
72790         * doc/posix-functions/snprintf.texi: Document Linux libc5 problem.
72791         * doc/posix-functions/vsnprintf.texi: Likewise.
72793 2008-04-19  Bruno Haible  <bruno@clisp.org>
72795         * lib/vasnprintf.c (floorlog10l, floorlog10): Reduce maximum error
72796         from 0.0058 to less than 10^-7.
72798 2008-04-19  Bruno Haible  <bruno@clisp.org>
72800         Fix rounding when a precision is given.
72801         * lib/vasnprintf.c (is_borderline): New function.
72802         (VASNPRINTF): For %e and %g, consider replacing the digits 10....0 with
72803         9...9x.
72804         * tests/test-vasnprintf-posix.c (test_function): Test rounding with %f,
72805         %e, %g.
72806         * tests/test-vasprintf-posix.c (test_function): Likewise.
72807         * tests/test-snprintf-posix.h (test_function): Likewise.
72808         * tests/test-sprintf-posix.h (test_function): Likewise.
72809         * tests/test-fprintf-posix.h (test_function): Test rounding with %f.
72810         * tests/test-printf-posix.h (test_function): Likewise.
72811         * tests/test-printf-posix.output: Update.
72812         Reported by John Darrington <john@darrington.wattle.id.au> via
72813         Ben Pfaff <blp@cs.stanford.edu>.
72815 2008-04-18  Simon Josefsson  <simon@josefsson.org>
72817         * doc/posix-functions/strftime.texi (strftime): Clarify platform.
72818         Suggested by Bruno Haible <bruno@clisp.org>.
72820 2008-04-17  Bruno Haible  <bruno@clisp.org>
72822         * lib/lock.h (gl_lock_destroy, gl_rwlock_destroy,
72823         gl_recursive_lock_destroy): Provide no-op definitions for the dummy
72824         implementation.
72825         Patch by Bruce Merry <bmerry@gmail.com>.
72827 2008-04-17  Simon Josefsson  <simon@josefsson.org>
72829         * doc/posix-functions/strftime.texi (strftime): Mention that %e
72830         doesn't work under Windows.
72832 2008-04-16  Bruno Haible  <bruno@clisp.org>
72834         * lib/localename.c (LANG_MAORI, LANG_QUECHUA, LANG_SOTHO, LANG_UIGHUR):
72835         New macros.
72836         (SUBLANG_BOSNIAN_BOSNIA_HERZEGOVINA_LATIN,
72837         SUBLANG_BOSNIAN_BOSNIA_HERZEGOVINA_CYRILLIC,
72838         SUBLANG_CROATIAN_CROATIA, SUBLANG_CROATIAN_BOSNIA_HERZEGOVINA_LATIN,
72839         SUBLANG_MONGOLIAN_CYRILLIC_MONGOLIA, SUBLANG_MONGOLIAN_PRC,
72840         SUBLANG_QUECHUA_BOLIVIA, SUBLANG_QUECHUA_ECUADOR, SUBLANG_QUECHUA_PERU,
72841         SUBLANG_RUSSIAN_RUSSIA, SUBLANG_RUSSIAN_MOLDAVIA, SUBLANG_SPANISH_US,
72842         SUBLANG_TIBETAN_PRC, SUBLANG_TIBETAN_BHUTAN, SUBLANG_UIGHUR_PRC): New
72843         macros.
72844         (gl_locale_name_from_win32_LANGID): Refine code for Croatian/Bosnian,
72845         Mongolian, Russian, Spanish, Tibetan. Add code for Maori, Quechua,
72846         Northern Sotho, Uighur.
72848 2008-04-16  Bruno Haible  <bruno@clisp.org>
72850         * lib/localename.c (SUBLANG_SINDHI_INDIA): New macro.
72851         (SUBLANG_SINDHI_PAKISTAN): Change value from 1 to 2.
72852         (gl_locale_name_from_win32_LANGID): Fix code for Sindhi.
72853         Reported by Daniel Bergström <daniel@octocode.com>.
72855 2007-12-25  KJK::Hyperion  <hackbunny@reactos.com>
72856             Bruno Haible  <bruno@clisp.org>
72858         * lib/localename.c (gl_locale_name_canonicalize) [WIN32_NATIVE]: New
72859         function.
72860         (gl_locale_name_from_win32_LANGID, gl_locale_name_from_win32_LCID):
72861         New functions, mostly extracted from gl_locale_name_default.
72862         (gl_locale_name_default): Use gl_locale_name_from_win32_LCID.
72864 2008-04-16  Eric Blake  <ebb9@byu.net>
72866         Adjust strtod detection to catch glibc 2.7 bug.
72867         * m4/strtod.m4 (gl_FUNC_STRTOD): Test "nan()" behavior.
72868         Reported by John Gatewood Ham.
72870 2008-04-16  Bruno Haible  <bruno@clisp.org>
72872         Add tentative support for Linux libc5.
72873         * lib/fbufmode.c (fbufmode) [__GNU_LIBRARY__==1]: Reuse glibc2 code.
72874         * lib/fpurge.c (fpurge): Likewise.
72875         * lib/freadable.c (freadable): Likewise.
72876         * lib/freadahead.c (freadahead): Likewise.
72877         * lib/freading.c (freading): Likewise.
72878         * lib/freadptr.c (freadptr): Likewise.
72879         * lib/freadseek.c (freadptrinc): Likewise.
72880         * lib/fseeko.c (rpl_fseeko): Likewise.
72881         * lib/fseterr.c (fseterr): Likewise.
72882         * lib/fwritable.c (fwritable): Likewise.
72883         * lib/fwriting.c (fwriting): Likewise.
72884         Reported by Alain Guibert <alguibert+bts@free.fr>.
72886 2008-04-15  Bruno Haible  <bruno@clisp.org>
72888         * modules/mathl (configure.ac): Define module indicator.
72890 2008-04-15  Bruno Haible  <bruno@clisp.org>
72892         * lib/logl.c (logl): Remove unused variables.
72894 2008-04-15  Bruno Haible  <bruno@clisp.org>
72896         * lib/uniconv/u-conv-to-enc.h (FUNC): Fix return value when U_TO_U8
72897         fails.
72899 2008-04-15  Bruno Haible  <bruno@clisp.org>
72901         * lib/trim.c (trim2): Fix argument of isspace() macro.
72903 2008-04-15  Paolo Bonzini  <bonzini@gnu.org>
72905         * lib/tanl.c (kernel_tanl): Rename flag to invert, initialize it
72906         to 0.
72907         * lib/trigl.c (ieee754_rem_pio2l): Fix range checks.
72909 2008-04-14  Bruno Haible  <bruno@clisp.org>
72911         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Fix underquoting of
72912         AC_LANG_PROGRAM argument.
72913         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Likewise.
72914         * m4/gethrxtime.m4 (gl_ARITHMETIC_HRTIME_T): Likewise.
72915         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
72916         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
72917         * m4/math_h.m4 (gl_MATH_H): Likewise.
72918         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Likewise.
72919         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
72920         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Likewise.
72921         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): Likewise.
72922         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
72923         * m4/regex.m4 (gl_REGEX): Likewise.
72924         * m4/stdint.m4 (gl_INTEGER_TYPE_SUFFIX): Likewise.
72925         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET): Likewise.
72926         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
72927         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Likewise.
72928         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
72929         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
72930         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
72931         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
72933 2008-04-14  Jim Meyering  <meyering@redhat.com>
72935         test-strtod: fix typos: s/abs/fabs/
72936         * tests/test-strtod.c (main): Use fabs, not narrowing-to-int "abs".
72938 2008-04-13  Bruno Haible  <bruno@clisp.org>
72940         Fix conflict between modules 'canonicalize' and 'canonicalize-lgpl'.
72941         * lib/canonicalize-lgpl.c: Elide the contents if the 'canonicalize'
72942         module is also used and while not building the reloc-wrapper.
72944 2008-04-13  Bruno Haible  <bruno@clisp.org>
72946         * tests/test-getaddrinfo.c (simple): Ignore EAI_NODATA error.
72948 2008-04-13  Bruno Haible  <bruno@clisp.org>
72950         Fix AIX compilation failure introduced on 2008-04-02.
72951         * tests/test-frexp.c (exp): Undefine before redefining.
72952         * tests/test-frexpl.c (exp): Likewise.
72954 2008-04-13  Bruno Haible  <bruno@clisp.org>
72956         Work around a HP-UX stdio bug.
72957         * tests/test-ftell.c (main): Disable the fseek/ftell test on HP-UX.
72958         * tests/test-ftello.c (main): Likewise.
72959         * doc/posix-functions/ftell.texi: Mention HP-UX bug.
72960         * doc/posix-functions/ftello.texi: Likewise.
72962 2008-04-13  Bruno Haible  <bruno@clisp.org>
72964         Make test-signbit pass on HP-UX/hppa.
72965         * tests/test-signbit.c (minus_zerol): New variable.
72966         (test_signbitl): Use it.
72968 2008-04-13  Bruno Haible  <bruno@clisp.org>
72970         Make truncl work on OSF/1 4.0.
72971         * m4/truncl.m4 (gl_FUNC_TRUNCL): Test whether truncl actually works.
72972         Set REPLACE_TRUNCL, not HAVE_DECL_TRUNCL.
72973         * lib/math.in.h (truncl): Test REPLACE_TRUNCL, not HAVE_DECL_TRUNCL.
72974         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_TRUNCL, not
72975         HAVE_DECL_TRUNCL.
72976         * modules/math (Makefile.am): Substitute REPLACE_TRUNCL, not
72977         HAVE_DECL_TRUNCL.
72978         * doc/posix-functions/truncl.texi: Document the OSF/1 4.0 problem.
72980 2008-04-13  Bruno Haible  <bruno@clisp.org>
72982         * lib/unictype.h: Remove trailing comma from enumeration definitions.
72984 2008-04-13  Bruno Haible  <bruno@clisp.org>
72986         * lib/count-one-bits.h (COUNT_ONE_BITS): Rewrite verification
72987         expression, so as to avoid HP-UX 11 cc compiler bug.
72989 2008-04-13  Bruno Haible  <bruno@clisp.org>
72991         * m4/regex.m4 (gl_PREREQ_REGEX): Also check for <libintl.h>.
72993 2008-04-13  Bruno Haible  <bruno@clisp.org>
72995         * lib/git-merge-changelog.c: Remove empty declaration outside of
72996         functions.
72998 2008-04-13  Bruno Haible  <bruno@clisp.org>
73000         * modules/quotearg-tests (Makefile.am): Define test_quotearg_LDADD.
73002 2008-04-13  Bruno Haible  <bruno@clisp.org>
73004         * doc/posix-headers/sys_socket.texi: Document the problem on EMX.
73005         * lib/sys_socket.in.h (SHUT_RD, SHUT_WR, SHUT_RDWR): Define if missing.
73006         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Replace <sys/socket.h>
73007         also if it exists but lacks definitions of the SHUT_* macros.
73008         * modules/sys_socket (Description): Update.
73009         Reported by Elbert Pol <e.pol@chello.nl>.
73011 2008-04-13  Bruno Haible  <bruno@clisp.org>
73013         * lib/localcharset.c (OS2): Don't redefine if already defined.
73014         Reported by Elbert Pol <e.pol@chello.nl>.
73016 2008-04-13  Bruno Haible  <bruno@clisp.org>
73018         * lib/binary-io.h [__EMX__]: Include <io.h>.
73019         Reported by Elbert Pol <e.pol@chello.nl>.
73021 2008-04-12  Bruno Haible  <bruno@clisp.org>
73023         * lib/fpucw.h: Enable the definitions also for x86_64.
73024         Needed for NetBSD/x86_64.
73025         Reported by Thomas Klausner <tk@giga.or.at>.
73027 2008-04-12  Bruno Haible  <bruno@clisp.org>
73029         * tests/test-strtod.c: Include isnand.h.
73030         (main): Use isnand instead of isnan.
73031         Reported by Jim Meyering.
73033 2008-04-12  Bruno Haible  <bruno@clisp.org>
73035         * m4/isnanf.m4 (gl_ISNANF_WORKS): Add a test for a special NaN.
73036         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
73038 2008-04-12  Jim Meyering  <meyering@redhat.com>
73040         * m4/math_h.m4 (gl_MATH_H): Fix typos.
73042 2008-04-12  Bruno Haible  <bruno@clisp.org>
73044         * lib/freadptr.c (freadptr) [__EMX__]: Fix wrong assertion.
73045         Reported by Elbert Pol <e.pol@chello.nl>.
73047 2008-04-12  Eric Blake  <ebb9@byu.net>
73049         Work around Solaris 10 math.h bug.
73050         * m4/math_h.m4 (gl_MATH_H): Check for bug.
73051         (gl_MATH_H_DEFAULTS): Set up default.
73052         * modules/math (Makefile.am): Replace new indicators.
73053         * lib/math.in.h (NAN, HUGE_VAL): Provide replacements.
73054         * tests/test-math.c (main): Test this.
73055         * m4/strtod.m4 (gl_FUNC_STRTOD): Don't rely on HUGE_VAL.
73056         * doc/posix-headers/math.texi (math.h): Mention bug.
73057         Reported by Nelson H. F. Beebe and Jim Meyering.
73059 2008-04-11  Bruno Haible  <bruno@clisp.org>
73061         Adapt to future versions of Apple GCC.
73062         * lib/argp-fmtstream.h (ARGP_FS_EI): Don't test __GNUC_GNU_INLINE__.
73063         Reported by Peter O'Gorman <peter@pogma.com>.
73065 2008-04-11  Bruno Haible  <bruno@clisp.org>
73067         * tests/test-getaddrinfo.c (simple): Ignore EAI_NONAME error.
73069 2008-04-11  Bruno Haible  <bruno@clisp.org>
73071         * modules/strsignal-tests (Makefile.am): Define test_strsignal_LDADD.
73073         * modules/getaddrinfo-tests (Makefile.am): Define
73074         test_getaddrinfo_LDADD.
73076 2008-04-11  Bruno Haible  <bruno@clisp.org>
73078         * lib/strsignal.c (_sys_siglist): Don't declare if already declared.
73079         (init): Fix syntax error.
73080         * m4/strsignal.m4 (gl_PREREQ_STRSIGNAL): Check whether _sys_siglist
73081         is declared.
73083 2008-04-11  Bruno Haible  <bruno@clisp.org>
73085         * lib/glob.c: Include <stdbool.h>. Needed at least with IRIX cc.
73086         * modules/glob (Depends-on): Add stdbool.
73088 2008-04-11  Bruno Haible  <bruno@clisp.org>
73090         * lib/trim.c: Include <string.h>.
73092 2008-04-11  Eric Blake  <ebb9@byu.net>
73094         Avoid compile failure on OS/2.
73095         * lib/regex_internal.h (internal_function): Disable optimization
73096         on OS/2 (__EMX__), where it caused compiler error.
73097         Reported by Elbert Pol.
73099 2008-04-11  Bruno Haible  <bruno@clisp.org>
73101         Flush the standard error stream before aborting. Needed on mingw.
73102         * tests/test-argmatch.c (ASSERT): Call fflush(stderr) before abort().
73103         * tests/test-array_list.c (ASSERT): Likewise.
73104         * tests/test-array_oset.c (ASSERT): Likewise.
73105         * tests/test-avltree_list.c (ASSERT): Likewise.
73106         * tests/test-avltree_oset.c (ASSERT): Likewise.
73107         * tests/test-avltreehash_list.c (ASSERT): Likewise.
73108         * tests/test-binary-io.c (ASSERT): Likewise.
73109         * tests/test-byteswap.c (ASSERT): Likewise.
73110         * tests/test-c-ctype.c (ASSERT): Likewise.
73111         * tests/test-c-strcasecmp.c (ASSERT): Likewise.
73112         * tests/test-c-strcasestr.c (ASSERT): Likewise.
73113         * tests/test-c-strncasecmp.c (ASSERT): Likewise.
73114         * tests/test-c-strstr.c (ASSERT): Likewise.
73115         * tests/test-canonicalize-lgpl.c (ASSERT): Likewise.
73116         * tests/test-canonicalize.c (ASSERT): Likewise.
73117         * tests/test-carray_list.c (ASSERT): Likewise.
73118         * tests/test-ceilf1.c (ASSERT): Likewise.
73119         * tests/test-ceilf2.c (ASSERT): Likewise.
73120         * tests/test-ceill.c (ASSERT): Likewise.
73121         * tests/test-count-one-bits.c (ASSERT): Likewise.
73122         * tests/test-fbufmode.c (ASSERT): Likewise.
73123         * tests/test-fflush2.c (ASSERT): Likewise.
73124         * tests/test-floorf1.c (ASSERT): Likewise.
73125         * tests/test-floorf2.c (ASSERT): Likewise.
73126         * tests/test-floorl.c (ASSERT): Likewise.
73127         * tests/test-fopen.c (ASSERT): Likewise.
73128         * tests/test-fpending.c (ASSERT): Likewise.
73129         * tests/test-fprintf-posix.c (ASSERT): Likewise.
73130         * tests/test-fpurge.c (ASSERT): Likewise.
73131         * tests/test-freadable.c (ASSERT): Likewise.
73132         * tests/test-freadahead.c (ASSERT): Likewise.
73133         * tests/test-freading.c (ASSERT): Likewise.
73134         * tests/test-freadptr.c (ASSERT): Likewise.
73135         * tests/test-freadptr2.c (ASSERT): Likewise.
73136         * tests/test-freadseek.c (ASSERT): Likewise.
73137         * tests/test-freopen.c (ASSERT): Likewise.
73138         * tests/test-frexp.c (ASSERT): Likewise.
73139         * tests/test-frexpl.c (ASSERT): Likewise.
73140         * tests/test-fseek.c (ASSERT): Likewise.
73141         * tests/test-fseeko.c (ASSERT): Likewise.
73142         * tests/test-fstrcmp.c (ASSERT): Likewise.
73143         * tests/test-ftell.c (ASSERT): Likewise.
73144         * tests/test-ftello.c (ASSERT): Likewise.
73145         * tests/test-func.c (ASSERT): Likewise.
73146         * tests/test-fwritable.c (ASSERT): Likewise.
73147         * tests/test-fwriting.c (ASSERT): Likewise.
73148         * tests/test-getdelim.c (ASSERT): Likewise.
73149         * tests/test-getline.c (ASSERT): Likewise.
73150         * tests/test-i-ring.c (ASSERT): Likewise.
73151         * tests/test-iconv-utf.c (ASSERT): Likewise.
73152         * tests/test-iconv.c (ASSERT): Likewise.
73153         * tests/test-isfinite.c (ASSERT): Likewise.
73154         * tests/test-isnand.c (ASSERT): Likewise.
73155         * tests/test-isnanf.c (ASSERT): Likewise.
73156         * tests/test-isnanl.h (ASSERT): Likewise.
73157         * tests/test-ldexpl.c (ASSERT): Likewise.
73158         * tests/test-linked_list.c (ASSERT): Likewise.
73159         * tests/test-linkedhash_list.c (ASSERT): Likewise.
73160         * tests/test-localename.c (ASSERT): Likewise.
73161         * tests/test-lseek.c (ASSERT): Likewise.
73162         * tests/test-mbscasecmp.c (ASSERT): Likewise.
73163         * tests/test-mbscasestr1.c (ASSERT): Likewise.
73164         * tests/test-mbscasestr2.c (ASSERT): Likewise.
73165         * tests/test-mbscasestr3.c (ASSERT): Likewise.
73166         * tests/test-mbscasestr4.c (ASSERT): Likewise.
73167         * tests/test-mbschr.c (ASSERT): Likewise.
73168         * tests/test-mbscspn.c (ASSERT): Likewise.
73169         * tests/test-mbsncasecmp.c (ASSERT): Likewise.
73170         * tests/test-mbspbrk.c (ASSERT): Likewise.
73171         * tests/test-mbspcasecmp.c (ASSERT): Likewise.
73172         * tests/test-mbsrchr.c (ASSERT): Likewise.
73173         * tests/test-mbsspn.c (ASSERT): Likewise.
73174         * tests/test-mbsstr1.c (ASSERT): Likewise.
73175         * tests/test-mbsstr2.c (ASSERT): Likewise.
73176         * tests/test-mbsstr3.c (ASSERT): Likewise.
73177         * tests/test-memchr2.c (ASSERT): Likewise.
73178         * tests/test-memmem.c (ASSERT): Likewise.
73179         * tests/test-open.c (ASSERT): Likewise.
73180         * tests/test-printf-frexp.c (ASSERT): Likewise.
73181         * tests/test-printf-frexpl.c (ASSERT): Likewise.
73182         * tests/test-printf-posix.c (ASSERT): Likewise.
73183         * tests/test-quotearg.c (ASSERT): Likewise.
73184         * tests/test-rbtree_list.c (ASSERT): Likewise.
73185         * tests/test-rbtree_oset.c (ASSERT): Likewise.
73186         * tests/test-rbtreehash_list.c (ASSERT): Likewise.
73187         * tests/test-round1.c (ASSERT): Likewise.
73188         * tests/test-roundf1.c (ASSERT): Likewise.
73189         * tests/test-roundl.c (ASSERT): Likewise.
73190         * tests/test-signbit.c (ASSERT): Likewise.
73191         * tests/test-sleep.c (ASSERT): Likewise.
73192         * tests/test-snprintf-posix.c (ASSERT): Likewise.
73193         * tests/test-snprintf.c (ASSERT): Likewise.
73194         * tests/test-sprintf-posix.c (ASSERT): Likewise.
73195         * tests/test-stat-time.c (ASSERT): Likewise.
73196         * tests/test-strcasestr.c (ASSERT): Likewise.
73197         * tests/test-strerror.c (ASSERT): Likewise.
73198         * tests/test-striconv.c (ASSERT): Likewise.
73199         * tests/test-striconveh.c (ASSERT): Likewise.
73200         * tests/test-striconveha.c (ASSERT): Likewise.
73201         * tests/test-strsignal.c (ASSERT): Likewise.
73202         * tests/test-strstr.c (ASSERT): Likewise.
73203         * tests/test-strtod.c (ASSERT): Likewise.
73204         * tests/test-trunc1.c (ASSERT): Likewise.
73205         * tests/test-trunc2.c (ASSERT): Likewise.
73206         * tests/test-truncf1.c (ASSERT): Likewise.
73207         * tests/test-truncf2.c (ASSERT): Likewise.
73208         * tests/test-truncl.c (ASSERT): Likewise.
73209         * tests/test-vasnprintf-posix.c (ASSERT): Likewise.
73210         * tests/test-vasnprintf-posix2.c (ASSERT): Likewise.
73211         * tests/test-vasnprintf.c (ASSERT): Likewise.
73212         * tests/test-vasprintf-posix.c (ASSERT): Likewise.
73213         * tests/test-vasprintf.c (ASSERT): Likewise.
73214         * tests/test-vfprintf-posix.c (ASSERT): Likewise.
73215         * tests/test-vprintf-posix.c (ASSERT): Likewise.
73216         * tests/test-vsnprintf-posix.c (ASSERT): Likewise.
73217         * tests/test-vsnprintf.c (ASSERT): Likewise.
73218         * tests/test-vsprintf-posix.c (ASSERT): Likewise.
73219         * tests/test-wcwidth.c (ASSERT): Likewise.
73220         * tests/test-xfprintf-posix.c (ASSERT): Likewise.
73221         * tests/test-xprintf-posix.c (ASSERT): Likewise.
73222         * tests/test-xvasprintf.c (ASSERT): Likewise.
73223         * tests/uniconv/test-u16-conv-from-enc.c (ASSERT): Likewise.
73224         * tests/uniconv/test-u16-conv-to-enc.c (ASSERT): Likewise.
73225         * tests/uniconv/test-u16-strconv-from-enc.c (ASSERT): Likewise.
73226         * tests/uniconv/test-u16-strconv-to-enc.c (ASSERT): Likewise.
73227         * tests/uniconv/test-u32-conv-from-enc.c (ASSERT): Likewise.
73228         * tests/uniconv/test-u32-conv-to-enc.c (ASSERT): Likewise.
73229         * tests/uniconv/test-u32-strconv-from-enc.c (ASSERT): Likewise.
73230         * tests/uniconv/test-u32-strconv-to-enc.c (ASSERT): Likewise.
73231         * tests/uniconv/test-u8-conv-from-enc.c (ASSERT): Likewise.
73232         * tests/uniconv/test-u8-conv-to-enc.c (ASSERT): Likewise.
73233         * tests/uniconv/test-u8-strconv-from-enc.c (ASSERT): Likewise.
73234         * tests/uniconv/test-u8-strconv-to-enc.c (ASSERT): Likewise.
73235         * tests/unictype/test-bidi_byname.c (ASSERT): Likewise.
73236         * tests/unictype/test-bidi_name.c (ASSERT): Likewise.
73237         * tests/unictype/test-bidi_of.c (ASSERT): Likewise.
73238         * tests/unictype/test-bidi_test.c (ASSERT): Likewise.
73239         * tests/unictype/test-block_list.c (ASSERT): Likewise.
73240         * tests/unictype/test-block_of.c (ASSERT): Likewise.
73241         * tests/unictype/test-block_test.c (ASSERT): Likewise.
73242         * tests/unictype/test-categ_and.c (ASSERT): Likewise.
73243         * tests/unictype/test-categ_and_not.c (ASSERT): Likewise.
73244         * tests/unictype/test-categ_byname.c (ASSERT): Likewise.
73245         * tests/unictype/test-categ_name.c (ASSERT): Likewise.
73246         * tests/unictype/test-categ_none.c (ASSERT): Likewise.
73247         * tests/unictype/test-categ_of.c (ASSERT): Likewise.
73248         * tests/unictype/test-categ_or.c (ASSERT): Likewise.
73249         * tests/unictype/test-categ_test_withtable.c (ASSERT): Likewise.
73250         * tests/unictype/test-combining.c (ASSERT): Likewise.
73251         * tests/unictype/test-decdigit.c (ASSERT): Likewise.
73252         * tests/unictype/test-digit.c (ASSERT): Likewise.
73253         * tests/unictype/test-mirror.c (ASSERT): Likewise.
73254         * tests/unictype/test-numeric.c (ASSERT): Likewise.
73255         * tests/unictype/test-pr_byname.c (ASSERT): Likewise.
73256         * tests/unictype/test-pr_test.c (ASSERT): Likewise.
73257         * tests/unictype/test-predicate-part1.h (ASSERT): Likewise.
73258         * tests/unictype/test-scripts.c (ASSERT): Likewise.
73259         * tests/unictype/test-sy_c_ident.c (ASSERT): Likewise.
73260         * tests/unictype/test-sy_java_ident.c (ASSERT): Likewise.
73261         * tests/unistdio/test-u16-asnprintf1.c (ASSERT): Likewise.
73262         * tests/unistdio/test-u16-vasnprintf1.c (ASSERT): Likewise.
73263         * tests/unistdio/test-u16-vasnprintf2.c (ASSERT): Likewise.
73264         * tests/unistdio/test-u16-vasnprintf3.c (ASSERT): Likewise.
73265         * tests/unistdio/test-u16-vasprintf1.c (ASSERT): Likewise.
73266         * tests/unistdio/test-u16-vsnprintf1.c (ASSERT): Likewise.
73267         * tests/unistdio/test-u16-vsprintf1.c (ASSERT): Likewise.
73268         * tests/unistdio/test-u32-asnprintf1.c (ASSERT): Likewise.
73269         * tests/unistdio/test-u32-vasnprintf1.c (ASSERT): Likewise.
73270         * tests/unistdio/test-u32-vasnprintf2.c (ASSERT): Likewise.
73271         * tests/unistdio/test-u32-vasnprintf3.c (ASSERT): Likewise.
73272         * tests/unistdio/test-u32-vasprintf1.c (ASSERT): Likewise.
73273         * tests/unistdio/test-u32-vsnprintf1.c (ASSERT): Likewise.
73274         * tests/unistdio/test-u32-vsprintf1.c (ASSERT): Likewise.
73275         * tests/unistdio/test-u8-asnprintf1.c (ASSERT): Likewise.
73276         * tests/unistdio/test-u8-vasnprintf1.c (ASSERT): Likewise.
73277         * tests/unistdio/test-u8-vasnprintf2.c (ASSERT): Likewise.
73278         * tests/unistdio/test-u8-vasnprintf3.c (ASSERT): Likewise.
73279         * tests/unistdio/test-u8-vasprintf1.c (ASSERT): Likewise.
73280         * tests/unistdio/test-u8-vsnprintf1.c (ASSERT): Likewise.
73281         * tests/unistdio/test-u8-vsprintf1.c (ASSERT): Likewise.
73282         * tests/unistdio/test-ulc-asnprintf1.c (ASSERT): Likewise.
73283         * tests/unistdio/test-ulc-vasnprintf1.c (ASSERT): Likewise.
73284         * tests/unistdio/test-ulc-vasnprintf2.c (ASSERT): Likewise.
73285         * tests/unistdio/test-ulc-vasnprintf3.c (ASSERT): Likewise.
73286         * tests/unistdio/test-ulc-vasprintf1.c (ASSERT): Likewise.
73287         * tests/unistdio/test-ulc-vsnprintf1.c (ASSERT): Likewise.
73288         * tests/unistdio/test-ulc-vsprintf1.c (ASSERT): Likewise.
73289         * tests/uniwidth/test-u16-strwidth.c (ASSERT): Likewise.
73290         * tests/uniwidth/test-u16-width.c (ASSERT): Likewise.
73291         * tests/uniwidth/test-u32-strwidth.c (ASSERT): Likewise.
73292         * tests/uniwidth/test-u32-width.c (ASSERT): Likewise.
73293         * tests/uniwidth/test-u8-strwidth.c (ASSERT): Likewise.
73294         * tests/uniwidth/test-u8-width.c (ASSERT): Likewise.
73295         * tests/uniwidth/test-uc_width.c (ASSERT): Likewise.
73296         Reported by Eric Blake.
73298 2008-04-11  Bruno Haible  <bruno@clisp.org>
73300         * lib/wchar.in.h: Tweak comment.
73302 2008-04-11  Bruno Haible  <bruno@clisp.org>
73304         Fix __GNUC_STDC_INLINE__ predefine with Apple GCC on MacOS X 10.5.
73305         * gnulib-tool (func_emit_initmacro_start): Emit an invocation of
73306         gl_COMMON.
73307         * m4/gnulib-common.m4 (gl_COMMON, gl_COMMON_BODY): New macros.
73309 2008-04-11  Bruno Haible  <bruno@clisp.org>
73311         * modules/git-merge-changelog (git_merge_changelog_LDADD): Add LIBINTL.
73313 2008-04-11  Simon Josefsson  <simon@josefsson.org>
73315         * lib/gc-gnulib.c: On Windows, use CryptGenRandom from CSP instead
73316         of attempting to use non-existing /dev/*random.  Based on patch
73317         from Adam Strzelecki <ono@java.pl> in
73318         <http://lists.gnu.org/archive/html/help-gsasl/2008-02/msg00000.html>.
73320 2008-04-08  Bruno Haible  <bruno@clisp.org>
73322         Add tentative support for emx+gcc.
73323         * lib/fbufmode.c (fbufmode) [__EMX__]: Add conditional code.
73324         * lib/fpurge.c (fpurge): Likewise.
73325         * lib/freadable.c (freadable): Likewise.
73326         * lib/freadahead.c (freadahead): Likewise.
73327         * lib/freading.c (freading): Likewise.
73328         * lib/freadptr.c (freadptr): Likewise.
73329         * lib/freadseek.c (freadptrinc): Likewise.
73330         * lib/fseeko.c (rpl_fseeko): Likewise.
73331         * lib/fseterr.c (fseterr): Likewise.
73332         * lib/fwritable.c (fwritable): Likewise.
73333         * lib/fwriting.c (fwriting): Likewise.
73334         * m4/fpending.m4 (gl_FUNC_FPENDING): Add a variant for emx+gcc.
73336 2008-04-09  Eric Blake  <ebb9@byu.net>
73338         Avoid some autoconf warnings.
73339         * m4/regex.m4 (gl_REGEX): s/AC_HELP_STRING/AS_HELP_STRING/.
73340         * m4/acl.m4 (gl_FUNC_ACL): Likewise.
73341         * m4/afs.m4 (gl_AFS): Likewise.
73342         * m4/gc-random.m4 (gl_GC_RANDOM): Likewise.
73343         * m4/include_next.m4 (gl_INCLUDE_NEXT): s/AC_FOREACH/m4_foreach_w/.
73344         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
73345         * m4/stdint.m4 (gl_STDINT_BITSIZEOF, gl_CHECK_TYPES_SIGNED)
73346         (gl_INTEGER_TYPE_SUFFIX): Likewise.
73347         * m4/onceonly_2_57.m4 (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE)
73348         (AC_CHECK_DECLS_ONCE): Likewise.
73349         Rename file...
73350         * m4/onceonly.m4: ...to this, and delete 2.54 variant, now that
73351         gnulib-tool requires autoconf 2.59 or better.
73352         * gnulib-tool (func_get_filelist): s/\(onceonly\)_2_57.m4/\1.m4/.
73354 2008-04-08  Eric Blake  <ebb9@byu.net>
73356         Use 'git describe --match' if present (added in git 1.5.5).
73357         * build-aux/git-version-gen: Limit result to tags that match 'v*'
73358         if possible.
73360 2008-04-08  Bruno Haible  <bruno@clisp.org>
73362         Add tentative support for OpenServer.
73363         * lib/fbufmode.c (fbufmode): Add conditional define for _flag, _base,
73364         _ptr, _cnt.
73365         * lib/fpurge.c (fpurge): Likewise.
73366         * lib/freadable.c (freadable): Likewise.
73367         * lib/freadahead.c (freadahead): Likewise.
73368         * lib/freading.c (freading): Likewise.
73369         * lib/freadptr.c (freadptr): Likewise.
73370         * lib/freadseek.c (freadptrinc): Likewise.
73371         * lib/fseeko.c (rpl_fseeko): Likewise.
73372         * lib/fseterr.c (fseterr): Likewise.
73373         * lib/fwritable.c (fwritable): Likewise.
73374         * lib/fwriting.c (fwriting): Likewise.
73375         Reported by Roger Cornelius <rac@tenzing.org> and
73376         Brian K. White <brian@aljex.com>.
73378 2008-04-06  Jim Meyering  <meyering@redhat.com>
73380         * gnulib-tool (func_add_or_update): s/backuped/backed up/ in diagnostic
73382 2008-04-06  Bruno Haible  <bruno@clisp.org>
73384         Avoid possible error with non-ASCII bytes in UTF-8 locales.
73385         * tests/test-fprintf-posix.sh: Use "LC_ALL=C tr" instead of "tr".
73386         * tests/test-printf-posix.sh: Likewise.
73387         * tests/test-vfprintf-posix.sh: Likewise.
73388         * tests/test-vprintf-posix.sh: Likewise.
73389         * tests/test-xprintf-posix.sh: Likewise.
73391 2008-04-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
73393         * m4/double-slash-root.m4 (gl_DOUBLE_SLASH_ROOT): Fix quoting,
73394         hide error from 'ls', needed on OS/2.
73395         Report by Elbert Pol <elbert.pol@gmail.com>.
73397 2008-04-04  Eric Blake  <ebb9@byu.net>
73399         Make test-fseeko.c failures meaningful.
73400         * tests/test-fseeko.c: Print line number on failure.
73401         * tests/test-fseek.c: Likewise.
73402         Reported by Nelson H. F. Beebe.
73404         Improve strtod bug detection check.
73405         * m4/strtod.m4 (gl_FUNC_STRTOD): Also check for hex-float parsing,
73406         required for Solaris 10.
73407         Reported by Bob Friesenhahn and Nelson H. F. Beebe.
73409 2008-04-04  Bruno Haible  <bruno@clisp.org>
73411         * modules/relocatable-prog-wrapper (Files): Add m4/environ.m4. Needed
73412         by m4/setenv.m4.
73414 2008-04-03  Eric Blake  <ebb9@byu.net>
73416         Ensure sane .version contents.
73417         * top/GNUmakefile (_dummy): Also delete .version when rebuilding
73418         version string.
73419         * build-aux/git-version-gen: Improve documentation.
73421         Make GNU make output nicer.
73422         * top/GNUmakefile [!_have-Makefile]: Add dependency on
73423         MAKECMDGOALS to enforce message for all command line targets.  Set
73424         srcdir for use in maint.mk.
73426         Another maintainer tweak.
73427         * top/GNUmakefile (_is-dist-target): Allow maintainer-distcheck as
73428         a target that regenerates version.
73430 2008-04-03  Jim Meyering  <meyering@redhat.com>
73432         vc-list-files: don't cause coreutils "make po-check" failure
73433         * build-aux/vc-list-files: Skip postprocessing when $2 is '.'
73435 2008-04-03  Eric Blake  <ebb9@byu.net>
73437         Allow VPATH usage of vc-list-files.
73438         * build-aux/vc-list-files (scriptversion): Add timestamp.
73439         (options): Add --help, --version, -C.
73440         (CVS): Support installed cvsu.
73442 2008-04-02  Bruno Haible  <bruno@clisp.org>
73444         Avoid some "statement with no effect" warnings from gcc.
73445         * tests/test-wctype.c (main): Explicitly ignore unused values.
73446         Reported by Jim Meyering.
73448 2008-04-02  Jim Meyering  <meyering@redhat.com>
73450         Avoid some warnings from "gcc -Wshadow".
73451         * tests/test-frexp.c (exp): Define to a different identifier.
73452         * tests/test-frexpl.c (exp): Likewise.
73454 2008-04-03  Jim Meyering  <meyering@redhat.com>
73456         bootstrap: remove dangling *.[ch] symlinks from lib
73457         * build-aux/bootstrap [dangling symlink removal]: Move find's
73458         -depth option to precede all others, to avoid a warning.
73459         Remove *.[ch] files too, and from "$source_base" (usually lib/).
73461 2008-04-02  Bruno Haible  <bruno@clisp.org>
73463         Avoid some warnings from "gcc -Wshadow".
73464         * tests/tests-vfprintf-posix.c (my_fprintf): Move after test_function.
73465         * tests/tests-vprintf-posix.c (my_printf): Move after test_function.
73466         * tests/tests-vsnprintf-posix.c (my_snprintf): Move after test_function.
73467         * tests/tests-vsprintf-posix.c (my_sprintf): Move after test_function.
73468         Reported by Jim Meyering.
73470 2008-04-01  Bruno Haible  <bruno@clisp.org>
73472         Fix test to work on IRIX 6.5 with cc.
73473         * tests/test-math.c (numeric_equal): New function.
73474         (main): Use it.
73476 2008-04-01  Bruno Haible  <bruno@clisp.org>
73478         * doc/posix-headers/math.texi: Refine documentation of NAN problem.
73480 2008-04-01  Bruno Haible  <bruno@clisp.org>
73482         * tests/test-vasnprintf-posix.c: Include nan.h instead of <math.h>.
73483         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
73484         * modules/vasnprintf-posix-tests (Files): Add tests/nan.h.
73485         (Depends-on): Remove math.
73487         * tests/test-vasprintf-posix.c: Include nan.h instead of <math.h>.
73488         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
73489         * modules/vasprintf-posix-tests (Files): Add tests/nan.h.
73490         (Depends-on): Remove math.
73492         * tests/test-snprintf-posix.h: Include nan.h instead of <math.h>.
73493         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
73494         * modules/snprintf-posix-tests (Files): Add tests/nan.h.
73495         (Depends-on): Remove math.
73496         * modules/vsnprintf-posix-tests (Files): Add tests/nan.h.
73497         (Depends-on): Remove math.
73499         * tests/test-sprintf-posix.h: Include nan.h instead of <math.h>.
73500         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
73501         * modules/sprintf-posix-tests (Files): Add tests/nan.h.
73502         (Depends-on): Remove math.
73503         * modules/vsprintf-posix-tests (Files): Add tests/nan.h.
73504         (Depends-on): Remove math.
73506         * tests/test-round1.c: Include nan.h.
73507         (main): Use NaNd instead of NAN.
73508         * modules/round-tests (Files): Add tests/nan.h.
73510         * tests/test-trunc1.c: Include nan.h.
73511         (main): Use NaNd instead of NAN.
73512         * modules/trunc-tests (Files): Add tests/nan.h.
73514         * tests/test-roundf1.c: Include nan.h.
73515         (main): Use NaNf instead of NAN.
73516         * modules/roundf-tests (Files): Add tests/nan.h.
73518         * tests/test-truncf1.c: Include nan.h.
73519         (main): Use NaNf instead of NAN.
73520         * modules/truncf-tests (Files): Add tests/nan.h.
73522         * tests/test-ceilf1.c: Include nan.h.
73523         (main): Use NaNf instead of NAN.
73524         * modules/ceilf-tests (Files): Add tests/nan.h.
73526         * tests/test-floorf1.c: Include nan.h.
73527         (main): Use NaNf instead of NAN.
73528         * modules/floorf-tests (Files): Add tests/nan.h.
73530         * tests/test-isnanf.c: Include nan.h instead of <math.h>.
73531         (main): Use NaNf instead of NAN.
73532         * modules/isnanf-nolibm-tests (Files): Add tests/nan.h.
73534         * tests/test-isnand.c: Include nan.h instead of <math.h>.
73535         (main): Use NaNd instead of NAN.
73536         * modules/isnand-nolibm-tests (Files): Add tests/nan.h.
73538         * tests/test-frexp.c: Include nan.h.
73539         (main): Use NaNd instead of NAN.
73540         * modules/frexp-tests (Files): Add tests/nan.h.
73542         * lib/isnan.c: Don't include <math.h>.
73543         (FUNC): Don't use NAN macro.
73544         * modules/isnand-nolibm (Depends-on): Remove math.
73545         * modules/isnanf-nolibm (Depends-on): Remove math.
73546         * modules/isnanl (Depends-on): Remove math.
73547         * modules/isnanl-nolibm (Depends-on): Remove math.
73549         * tests/nan.h: New file.
73551 2008-04-01  Eric Blake  <ebb9@byu.net>
73553         Fix typos.
73554         * tests/test-strtod.c (main): s/FLT_/DBL_/ for minimum and epsilon
73555         values to be the right type.
73557         For now, cater to gnulib strtod inaccuracies.
73558         * tests/test-strtod.c (main): Allow 1-ulp error on expected
73559         fractional results.  While not as nice from a QoI perspective, it
73560         is a quicker patch than correctly implementing decimal to binary
73561         rounding.
73563 2008-03-31  Eric Blake  <ebb9@byu.net>
73565         Guarantee a definition of NAN.
73566         * lib/math.in.h (NAN): Define if missing.
73567         * tests/test-math.c (main): Test it.
73568         * doc/posix-headers/math.texi (math.h): Document this.
73569         * lib/isnan.c (rpl_isnand): Use it.
73570         * tests/test-ceilf1.c (NaN): Delete, and use NAN instead.
73571         * tests/test-floorf1.c (NaN): Likewise.
73572         * tests/test-frexp.c (NaN): Likewise.
73573         * tests/test-isnand.c (NaN): Likewise.
73574         * tests/test-isnanf.c (NaN): Likewise.
73575         * tests/test-round1.c (NaN): Likewise.
73576         * tests/test-roundf1.c (NaN): Likewise.
73577         * tests/test-snprintf-posix.h (NaN): Likewise.
73578         * tests/test-sprintf-posix.h (NaN): Likewise.
73579         * tests/test-trunc1.c (NaN): Likewise.
73580         * tests/test-truncf1.c (NaN): Likewise.
73581         * tests/test-vasnprintf-posix.c (NaN): Likewise.
73582         * tests/test-vasprintf-posix.c (NaN): Likewise.
73583         * modules/isnand-nolibm (Depends-on): Add math.
73584         * modules/isnanf-nolibm (Depends-on): Likewise.
73585         * modules/isnanl (Depends-on): Likewise.
73586         * modules/isnanl-nolibm (Depends-on): Likewise.
73587         * modules/snprintf-posix-tests (Depends-on): Likewise.
73588         * modules/sprintf-posix-tests (Depends-on): Likewise.
73589         * modules/vsnprintf-posix-tests (Depends-on): Likewise.
73590         * modules/vsprintf-posix-tests (Depends-on): Likewise.
73591         * modules/vasnprintf-posix-tests (Depends-on): Likewise.
73592         * modules/vasprintf-posix-tests (Depends-on): Likewise.
73594 2008-03-31  Bruno Haible  <bruno@clisp.org>
73596         * tests/test-strtod.c (main): Update results for OSF/1 platforms.
73597         * doc/posix-functions/strtod.texi: Likewise.
73599 2008-03-31  Bruno Haible  <bruno@clisp.org>
73601         * tests/test-strtod.c (main): Don't use C99 syntax.
73603 2008-03-31  Bruno Haible  <bruno@clisp.org>
73605         * tests/test-strtod.c (main): Don't test NAN macro. Needed for Solaris.
73606         Reported by Eric Blake.
73608 2008-03-31  Jim Meyering  <meyering@redhat.com>
73610         Don't compare actual signbit return values.
73611         * tests/test-strtod.c (main): Rather, compare only their
73612         zero/non-zero nature.
73614 2008-03-31  Eric Blake  <ebb9@byu.net>
73616         More strtod documentation.
73617         * doc/posix-functions/strtod.texi (strtod): Interpret more test
73618         failures as distinct bugs.
73620 2008-03-30  Paul Eggert  <eggert@cs.ucla.edu>
73622         * lib/wchar.in.h [defined __need_mbstate_t]: Just include <wchar.h>.
73623         Problem reported by Erik Benada in
73624         <http://lists.gnu.org/archive/html/bug-gnulib/2008-03/msg00249.html>.
73626 2008-03-30  Bruno Haible  <bruno@clisp.org>
73628         * tests/test-strtod.c: Add comments about which assertion fails on which
73629         platform.
73630         * doc/posix-functions/strtod.texi: Add info about many more platforms.
73632 2008-03-30  Eric Blake  <ebb9@byu.net>
73634         Test signbit behavior on zeros.
73635         * tests/test-signbit.c (test_signbitf): Add tests for zero.
73636         (test_signbitd, test_signbitl): Likewise.
73638         More strtod touchups.
73639         * tests/test-strtod.c (main): Ignore tests for signbit on NaN, and
73640         sign of negative underflow, for now.  Use .5, not .1.
73641         * doc/posix-functions/strtod.texi (strtod): Mention these
73642         limitations.
73643         Reported by Jim Meyering.
73645 2008-03-30  Bruno Haible  <bruno@clisp.org>
73647         * lib/striconveh.h (mem_iconveh, str_iconveh): Optimize the conversion
73648         from UTF-8 to UTF-8//TRANSLIT in the same way as from UTF-8 to UTF-8.
73650 2008-03-30  Bruno Haible  <bruno@clisp.org>
73652         Avoid failure when attempting to return empty iconv results on some
73653         platforms.
73654         * lib/striconveh.c (mem_cd_iconveh_internal): In the final memory
73655         allocation, don't report ENOMEM when the resulting string is empty.
73657 2008-03-30  Bruno Haible  <bruno@clisp.org>
73659         Fix buffer overrun.
73660         * lib/vasnprintf.c (VASNPRINTF): If !USE_SNPRINTF && pad_ourselves:
73661         Don't consider the width for tmp_length. Check count against tmp_length
73662         before doing the padding. Ensure enough allocation during padding.
73664 2008-03-30  Eric Blake  <ebb9@byu.net>
73666         strtod touchups.
73667         * lib/strtod.c (strtod): Avoid compiler warnings.
73668         Reported by Jim Meyering.
73670 2008-03-30  Bruno Haible  <bruno@clisp.org>
73672         * lib/unistdio/u-vsprintf.h (EOVERFLOW): Remove fallback.
73673         * modules/unistdio/ulc-vsprintf (Depends-on): Add EOVERFLOW.
73674         * modules/unistdio/u8-vsprintf (Depends-on): Add EOVERFLOW.
73675         * modules/unistdio/u8-u8-vsprintf (Depends-on): Add EOVERFLOW.
73676         * modules/unistdio/u16-vsprintf (Depends-on): Add EOVERFLOW.
73677         * modules/unistdio/u16-u16-vsprintf (Depends-on): Add EOVERFLOW.
73678         * modules/unistdio/u32-vsprintf (Depends-on): Add EOVERFLOW.
73679         * modules/unistdio/u32-u32-vsprintf (Depends-on): Add EOVERFLOW.
73681         * lib/unistdio/u-vsnprintf.h (EOVERFLOW): Remove fallback.
73682         * modules/unistdio/ulc-vsnprintf (Depends-on): Add EOVERFLOW.
73683         * modules/unistdio/u8-vsnprintf (Depends-on): Add EOVERFLOW.
73684         * modules/unistdio/u8-u8-vsnprintf (Depends-on): Add EOVERFLOW.
73685         * modules/unistdio/u16-vsnprintf (Depends-on): Add EOVERFLOW.
73686         * modules/unistdio/u16-u16-vsnprintf (Depends-on): Add EOVERFLOW.
73687         * modules/unistdio/u32-vsnprintf (Depends-on): Add EOVERFLOW.
73688         * modules/unistdio/u32-u32-vsnprintf (Depends-on): Add EOVERFLOW.
73690         * lib/unistdio/u-vasprintf.h (EOVERFLOW): Remove fallback.
73691         * modules/unistdio/ulc-vasprintf (Depends-on): Add EOVERFLOW.
73692         * modules/unistdio/u8-vasprintf (Depends-on): Add EOVERFLOW.
73693         * modules/unistdio/u8-u8-vasprintf (Depends-on): Add EOVERFLOW.
73694         * modules/unistdio/u16-vasprintf (Depends-on): Add EOVERFLOW.
73695         * modules/unistdio/u16-u16-vasprintf (Depends-on): Add EOVERFLOW.
73696         * modules/unistdio/u32-vasprintf (Depends-on): Add EOVERFLOW.
73697         * modules/unistdio/u32-u32-vasprintf (Depends-on): Add EOVERFLOW.
73699         * lib/unistdio/ulc-vfprintf.c (EOVERFLOW): Remove fallback.
73700         * modules/unistdio/ulc-vfprintf (Depends-on): Add EOVERFLOW.
73702         * lib/unistdio/ulc-fprintf.c (EOVERFLOW): Remove fallback.
73703         * modules/unistdio/ulc-fprintf (Depends-on): Add EOVERFLOW.
73705         * lib/xvasprintf.c (EOVERFLOW): Remove fallback.
73706         * modules/xvasprintf (Depends-on): Add EOVERFLOW.
73708         * lib/vsprintf.c (EOVERFLOW): Remove fallback.
73709         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Drop gl_EOVERFLOW.
73710         * modules/vsprintf-posix (Depends-on): Add EOVERFLOW.
73712         * lib/vsnprintf.c (EOVERFLOW): Remove fallback.
73713         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Drop gl_EOVERFLOW.
73714         * modules/vsnprintf (Depends-on): Add EOVERFLOW.
73716         * lib/vfprintf.c (EOVERFLOW): Remove fallback.
73717         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Drop gl_EOVERFLOW.
73718         * modules/vfprintf-posix (Depends-on): Add EOVERFLOW.
73720         * lib/vasprintf.c (EOVERFLOW): Remove fallback.
73721         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Drop gl_EOVERFLOW.
73722         * modules/vasprintf (Depends-on): Add EOVERFLOW.
73724         * lib/vasnprintf.c (EOVERFLOW): Remove fallback.
73725         * m4/vasnprintf.m4 (gl_FUNC_VASNPRINTF): Drop gl_EOVERFLOW.
73726         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Drop gl_EOVERFLOW.
73727         * modules/vasnprintf (Files): Remove m4/eoverflow.m4.
73728         (Depends-on): Add EOVERFLOW.
73729         * modules/unistdio/ulc-vasnprintf (Files): Remove m4/eoverflow.m4.
73730         (Depends-on): Add EOVERFLOW.
73731         * modules/unistdio/u8-vasnprintf (Files): Remove m4/eoverflow.m4.
73732         (Depends-on): Add EOVERFLOW.
73733         * modules/unistdio/u8-u8-vasnprintf (Files): Remove m4/eoverflow.m4.
73734         (Depends-on): Add EOVERFLOW.
73735         * modules/unistdio/u16-vasnprintf (Files): Remove m4/eoverflow.m4.
73736         (Depends-on): Add EOVERFLOW.
73737         * modules/unistdio/u16-u16-vasnprintf (Files): Remove m4/eoverflow.m4.
73738         (Depends-on): Add EOVERFLOW.
73739         * modules/unistdio/u32-vasnprintf (Files): Remove m4/eoverflow.m4.
73740         (Depends-on): Add EOVERFLOW.
73741         * modules/unistdio/u32-u32-vasnprintf (Files): Remove m4/eoverflow.m4.
73742         (Depends-on): Add EOVERFLOW.
73744         * lib/sprintf.c (EOVERFLOW): Remove fallback.
73745         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Drop gl_EOVERFLOW.
73746         * modules/sprintf-posix (Depends-on): Add EOVERFLOW.
73748         * lib/snprintf.c (EOVERFLOW): Remove fallback.
73749         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Drop gl_EOVERFLOW.
73750         * modules/snprintf (Depends-on): Add EOVERFLOW.
73752         * lib/poll.c (EOVERFLOW): Remove fallback.
73753         * modules/poll (Depends-on): Add EOVERFLOW.
73755         * lib/getugroups.c (EOVERFLOW): Remove fallback.
73756         * modules/getugroups (Depends-on): Add EOVERFLOW.
73758         * lib/getdelim.c (EOVERFLOW): Remove fallback.
73759         * modules/getdelim (Depends-on): Add EOVERFLOW.
73761         * lib/ftell.c (EOVERFLOW): Remove fallback.
73762         * modules/ftell (Depends-on): Add EOVERFLOW.
73764         * lib/fprintf.c (EOVERFLOW): Remove fallback.
73765         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Drop gl_EOVERFLOW.
73766         * modules/fprintf-posix (Depends-on): Add EOVERFLOW.
73768         * lib/c-stack.c (EOVERFLOW): Remove unused fallback.
73770         * modules/EOVERFLOW-tests: New file.
73771         * tests/test-EOVERFLOW.c: New file.
73773         * modules/EOVERFLOW: New file.
73774         * doc/posix-headers/errno.texi: Mention EOVERFLOW portability problem.
73776 2008-03-30  Bruno Haible  <bruno@clisp.org>
73778         Fix bug introduced on 2007-06-10.
73779         * lib/vasnprintf.c (VASNPRINTF): When performing zero-padding, use
73780         spaces instead of 0 digits for 's' also when ENABLE_UNISTDIO.
73782 2008-03-30  Bruno Haible  <bruno@clisp.org>
73784         Improve freadseek's efficiency after ungetc.
73785         * lib/freadseek.c: Include freadahead.h.
73786         (freadptrinc): New function, extracted from freadseek.
73787         (freadseek): Use it in a loop. Use freadahead to determine the number
73788         of loop iterations.
73789         * modules/freadseek (Depends-on): Add freadahead.
73790         (configure.ac): Require AC_C_INLINE.
73792 2008-03-30  Bruno Haible  <bruno@clisp.org>
73794         * lib/freadseek.c (freadseek): Don't ignore the return value of
73795         freadptr.
73797 2008-03-29  Eric Blake  <ebb9@byu.net>
73799         Add hex float support.
73800         * modules/strtod (Depends-on): Add c-ctype.
73801         (Link): Mention POW_LIB.
73802         * lib/strtod.c (strtod): Recognize hex floats.  Don't allow
73803         whitespace between 'e' and exponent.
73804         * tests/test-strtod.c (main): Enable hex float tests.
73805         * doc/posix-functions/strtod.texi (strtod): Document what gnulib
73806         now provides.
73808         Document various strtod bugs, with some fixes.
73809         * doc/posix-functions/strtod.texi (strtod): Document bugs with
73810         "-0x", "inf", "nan", and hex constants.
73811         * doc/posix-functions/atof.texi (atof): Likewise.
73812         * modules/stdlib (Makefile.am): Support strtod.
73813         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Likewise.
73814         * m4/strtod.m4 (gl_FUNC_STRTOD): Fit in stdlib framework, and
73815         detect additional strtod bugs.
73816         * lib/stdlib.in.h (rpl_strtod): Add declarations.
73817         * lib/strtod.c (strtod): Return -0.0 on negative underflow.  Use
73818         bool where appropriate.  Parse 'inf' and 'nan'.
73819         * tests/test-strtod.c: New file.
73820         * modules/strtod (Depends-on): Add stdbool, stdlib.
73821         (configure.ac): Turn on module indicator.
73822         * modules/strtod-tests: New module.
73824 2008-03-29  Eric Blake  <ebb9@byu.net>
73826         Fix ftell on mingw.
73827         * lib/ftell.c (EOVERFLOW): Define if the system lacks it.
73828         * modules/ftell-tests (Depends-on): Add binary-io.
73829         * modules/ftello-tests (Depends-on): Likewise.
73830         * tests/test-ftell.c (main): Enhance test to cover behavior after
73831         ungetc.  Enforce binary mode.
73832         * tests/test-ftello.c (main): Likewise.
73834         Pass test-freadseek on cygwin.
73835         * modules/freadseek (Depends-on): Use freadptr, not freadahead.
73836         * lib/freadseek.c (freadseek): Don't increment beyond bounds of
73837         ungetc buffer.
73839         * tests/test-fflush2.c (main): Fix typo.
73841 2008-03-29  Bruno Haible  <bruno@clisp.org>
73843         * tests/test-fflush2.c (main): Temporarily disable the contents of
73844         this test.
73845         * m4/fflush.m4 (gl_FUNC_FFLUSH): Add a TODO.
73846         Reported by Eric Blake.
73848 2008-03-28  Simon Josefsson  <simon@josefsson.org>
73850         * lib/gc.h (enum Gc_hash): Add GC_SHA224.
73851         (GC_SHA224_DIGEST_SIZE): Add.
73853         * lib/gc-libgcrypt.c (gc_hash_open): Handle SHA-224.
73854         (gc_hash_digest_length): Likewise.
73855         (gc_hash_buffer): Likewise.
73857 2008-03-25  Bruno Haible  <bruno@clisp.org>
73859         * doc/gnulib-tool.texi (gettextize and autopoint): Explain in more
73860         detail which gettext release to use.
73861         Reported by Simon Josefsson.
73863 2008-03-26  Jim Meyering  <meyering@redhat.com>
73865         gnumakefile: remove file from $(top_builddir), not from $(top_srcdir)
73866         * modules/gnumakefile (clean-GNUmakefile): Also, use
73867         test ... && ... || : syntax rather than if-then ... fi.
73869         gnumakefile: Don't double-quote-expand $(VPATH) value.
73870         * modules/gnumakefile (clean-GNUmakefile): Use single quotes.
73872 2008-03-24  Eric Blake  <ebb9@byu.net>
73874         Alter GNUmakefile to install into top directory.
73875         * modules/maintainer-makefile: Split, and add dependency...
73876         * modules/gnumakefile: to this new module.
73877         * build-aux/GNUmakefile: Move...
73878         * top/GNUmakefile: ...here.
73879         * build-aux/maint.mk: Move...
73880         * top/maint.mk: ...here.
73881         * MODULES.html.sh (Support for maintaining...): Document new
73882         module.
73884 2008-03-23  Bruno Haible  <bruno@clisp.org>
73886         * gnulib-tool: New options --vc-files, --no-vc-files.
73887         (func_usage): Document them.
73888         (vc_files): New variable.
73889         (func_import): Consider vc_files.
73890         (func_create_testdir): Set vc_files to empty.
73891         Suggested by Jim Meyering and Karl Berry.
73893 2008-03-23  Bruno Haible  <bruno@clisp.org>
73895         Fix regex compilation error on HP-UX 11.
73896         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_TYPE_MBSTATE_T.
73897         * modules/regex (Files): Add m4/mbstate_t.m4.
73898         Reported by Ton Voon <ton.voon@altinity.com>.
73900 2008-03-23  Bruno Haible  <bruno@clisp.org>
73902         * doc/gnulib-tool.texi (gettextize and autopoint): New section.
73904 2008-03-23  Eric Blake  <ebb9@byu.net>
73905             Bruno Haible  <bruno@clisp.org>
73907         Install files from top/ in the destination directory.
73908         * gnulib-tool (func_get_automake_snippet): Synthesize an EXTRA_DIST
73909         augmentation also for the files from top/.
73910         (func_import, func_create_testdir): Rewrite file names:
73911         top/filename -> filename.
73913 2008-03-23  Bruno Haible  <bruno@clisp.org>
73915         Tweak "gnulib --version" output.
73916         * gnulib-tool (func_version): Replace "-dirty" suffix with "-modified".
73918 2008-03-23  Bruno Haible  <bruno@clisp.org>
73920         Tweak "gnulib --version" output.
73921         * gnulib-tool (func_version): Use date of last commit to ChangeLog,
73922         rather than contents of ChangeLog, when possible.
73924 2008-03-21  Eric Blake  <ebb9@byu.net>
73926         More --version tweaks.
73927         * gnulib-tool (func_version): Obey GNU Coding Standards.  Output
73928         date of last ChangeLog entry.
73930 2008-03-21  Jim Meyering  <meyering@redhat.com>
73932         * build-aux/GNUmakefile (_have-git-version-gen): Split long line.
73934 2008-03-20  Eric Blake  <ebb9@byu.net>
73936         VPATH fix.
73937         * build-aux/GNUmakefile (_have_git-version-gen): Look in correct dir.
73939 2008-03-20  Simon Josefsson  <simon@josefsson.org>
73941         * build-aux/GNUmakefile: Make git-version-gen optional.  Add
73942         _build-aux variable.  Suggested by Eric Blake <ebb9@byu.net>.
73944 2008-03-20  Eric Blake  <ebb9@byu.net>
73946         Sync GNUmakefile with coreutils.
73947         * build-aux/GNUmakefile (have-Makefile): Rename...
73948         (_have-Makefile): ...to this, for namespace consideration.
73949         (GNUmakefile.cfg): Include, if present.
73950         (_autoreconf): Define a default.
73951         (_is-dist-target): New rule for rebuilds to pick up intra-release
73952         version.
73953         (maint-cfg.mk): Rename...
73954         (cfg.mk): ...to this.
73956 2008-03-18  Jim Meyering  <meyering@redhat.com>
73958         New script and module: mktempd
73959         * MODULES.html.sh (maint+release support): Add mktempd.
73960         * build-aux/mktempd: New file.
73961         * modules/mktempd: New file.
73963 2008-03-15  Jim Meyering  <meyering@redhat.com>
73965         Undo last change.
73966         * lib/sha1.c, lib/md5.c: 63 != ~63.
73967         Reported by Andreas Schwab.
73969         sha1.c, md5.c: Hoist a redundant expression.
73970         * lib/sha1.c (sha1_process_bytes): AND-off the low bits in
73971         "ctx->buflen" only once, before calling *_process_block.
73972         * lib/md5.c (md5_process_bytes): Likewise.
73974 2008-03-14  Eric Blake  <ebb9@byu.net>
73976         Bump copyright year in files generated by gnulib-tool.
73977         * gnulib-tool (func_emit_copyright_notice): Extract copyright from
73978         gnulib-tool, rather than hard-coding it.
73980         Fix 'gnulib-tool --version' output to work with git.
73981         * gnulib-tool (func_gnulib_dir): New function, extracted from...
73982         (startup): ...here.
73983         (func_version): Use it to invoke git-version-gen, rather than
73984         relying on CVS keyword expansion.  Modernize wording.
73985         (cvsdatestamp, last_checkin_date, version): Kill unused
73986         variables.
73988 2008-03-12  Jim Meyering  <meyering@redhat.com>
73990         Recognize optional cast of the argument to free.
73991         * build-aux/useless-if-before-free: Update regexps.
73993         * build-aux/bootstrap (gnulib_tool): Remove trailing blanks.
73995 2008-03-11  Bruno Haible  <bruno@clisp.org>
73997         Extend AC_LIB_LINKFLAGS to the situation of several libraries provided
73998         by a single package.
73999         * m4/lib-link.m4 (AC_LIB_FROMPACKAGE): New macro.
74000         (AC_LIB_LINKFLAGS_BODY): Use the information stored by
74001         AC_LIB_FROMPACKAGE. Use AC_ARG_WITH instead of AC_LIB_ARG_WITH.
74002         Reported by Sam Steingold <sds@gnu.org>.
74004 2008-03-12  Sergey Poznyakoff  <gray@gnu.org.ua>
74006         * build-aux/bootstrap (version_controlled_file): Adapt for SVN
74007         repositories.
74009 2008-03-11  Bruno Haible  <bruno@clisp.org>
74011         Avoid conflicts between local macro definitions.
74012         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
74013         AC_LIB_LINKFLAGS_BODY): Use pushdef/popdef instead of define/undefine.
74015 2008-03-10  Peter O'Gorman  <bug-gnulib@mlists.thewrittenword.com>
74016             Bruno Haible  <bruno@clisp.org>
74018         Make va_copy work with some version of xlc on AIX 5.1.
74019         * lib/stdarg.in.h: New file.
74020         * m4/stdarg.m4 (gl_STDARG_H): Initialize STDARG_H and NEXT_STDARG_H.
74021         On AIX, use a <stdarg.h> file substitute.
74022         * modules/stdarg (Files): Add lib/stdarg.in.h.
74023         (Depends-on): Add include_next.
74024         (Makefile.am): Build a stdarg.h substitute if requested.
74025         * doc/posix-functions/va_copy.texi: Document the platforms lacking it.
74027 2008-03-10  Bruno Haible  <bruno@clisp.org>
74029         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Document a restriction.
74030         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
74031         Reported by Peter O'Gorman <bug-gnulib@mlists.thewrittenword.com>.
74033 2008-03-10  Bruno Haible  <bruno@clisp.org>
74035         * modules/stdlib (Depends-on): Add include_next, remove
74036         absolute-header.
74038 2008-03-09  Bruno Haible  <bruno@clisp.org>
74040         * lib/freadahead.h (freadahead): Document more precisely.
74041         * lib/freadahead.c (freadahead): When an ungetc is in effect, return
74042         the sum of both buffer sizes.
74043         * tests/test-freadahead.c (main): Also test behaviour after ungetc.
74044         * NEWS: Document the change.
74046 2008-03-09  Bruno Haible  <bruno@clisp.org>
74048         Extend freadptr to return also the buffer size.
74049         * lib/freadptr.h (freadptr): Add sizep argument.
74050         * lib/freadptr.c: Include freadptr.h, not freadahead.h.
74051         (freadptr): Add sizep argument. Determine buffer size like freadahead
74052         does.
74053         * tests/test-freadptr.c: Don't include freadahead.h.
74054         (main): Adapt for new calling convention of freadptr.
74055         * tests/test-freadptr2.c: New file, based on tests/test-freadahead.c.
74056         * tests/test-freadptr2.sh: New file, based on tests/test-freadahead.sh.
74057         * modules/freadptr-tests (Files): Add tests/test-freadptr2.c,
74058         tests/test-freadptr2.sh.
74059         (Depends): Remove freadahead.
74060         (TESTS): Add test-freadptr2.sh.
74061         (check_PROGRAMS): Add test-freadptr2.
74063 2008-03-09  Bruno Haible  <bruno@clisp.org>
74065         * doc/Makefile (%.pdf): Explain how to remedy the save_size error.
74066         Report and solution by Simon Josefsson.
74068 2008-03-06  Bruno Haible  <bruno@clisp.org>
74070         Make fflush after ungetc work on BSD platforms.
74071         * lib/fflush.c (rpl_fflush): Discard ungetc buffer if possible.
74072         * tests/test-fflush2.c: New file.
74073         * tests/test-fflush2.sh: New file.
74074         * modules/fflush-tests (Files): Add tests/test-fflush2.sh,
74075         tests/test-fflush2.c.
74076         (Makefile.am): Build test-fflush2 and run test-fflush2.sh.
74077         * doc/posix-functions/fflush.texi: Document fflush after ungetc bug.
74079 2008-03-06  Eric Blake  <ebb9@byu.net>
74081         Likewise for ftello.
74082         * modules/ftello (Dependencies): Add extensions.
74083         * m4/ftello.m4 (gl_FUNC_FTELLO): Require AC_USE_SYSTEM_EXTENSIONS.
74085 2008-03-06  Bruno Haible  <bruno@clisp.org>
74087         * modules/fseeko (Dependencies): Add extensions.
74088         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Require AC_USE_SYSTEM_EXTENSIONS.
74089         Needed on glibc systems.
74091 2008-03-06  Bruno Haible  <bruno@clisp.org>
74093         * doc/gnulib-tool.texi (@nosuchmodulenote): Avoid line break inside
74094         email address.
74095         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
74097 2008-03-06  Bruno Haible  <bruno@clisp.org>
74099         * users.txt: Add libgnupdf.
74101 2008-03-06  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
74103         * doc/gnulib-tool.texi (@nosuchmodulenote): New macro.
74104         (Header File Substitutes, Function Substitutes,
74105         Glibc Header File Substitutes, Glibc Function Substitutes): Use it.
74106         (Build robot for gnulib): Fix typo.
74108 2008-03-06  Bruno Haible  <bruno@clisp.org>
74110         * doc/gnulib-tool.texi (VCS Issues): Small updates.
74111         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
74113 2008-03-06  Bruno Haible  <bruno@clisp.org>
74115         * doc/func.texi: New file, extracted from doc/gnulib.texi.
74116         * doc/gnulib.texi: Include it.
74118 2008-03-06  Simon Josefsson  <simon@josefsson.org>
74120         * modules/func (License): Change license to unlimited; there was
74121         no LGPL parts in the module anyway.
74123 2008-03-06  Simon Josefsson  <simon@josefsson.org>
74125         * modules/__func__: Renamed to modules/func.
74126         * modules/__func__-tests: Renamed to modules/func-tests.
74127         * tests/test-__func__.c: Renamed to tests/test-func.c.
74128         * m4/__func__.m4: Renamed to m4/func.m4.
74129         * doc/gnulib.texi (__func__): Section renamed to func.
74130         Suggested by Eric Blake <ebb9@byu.net>.
74132 2008-03-06  Simon Josefsson  <simon@josefsson.org>
74134         * doc/gnulib.texi (__func__): Use C99 terminology when talking
74135         about __func__.  Make example self-contained.  Suggested by Eric
74136         Blake <ebb9@byu.net>.
74138         * tests/test-__func__.c (main): Avoid extraneous () around __func.
74139         Suggested by Eric Blake <ebb9@byu.net>.
74141 2008-03-06  Simon Josefsson  <simon@josefsson.org>
74143         * modules/__func__: New file.
74144         * modules/__func__-tests: New file.
74145         * tests/test-__func__.c: New file.
74146         * m4/__func__.m4: New file.
74147         * doc/gnulib.texi (__func__): Document __func__ module.
74149 2008-03-05  Simon Josefsson  <simon@josefsson.org>
74151         * modules/byteswap (License): Re-license as LGPLv2+.
74153 2008-03-05  Simon Josefsson  <simon@josefsson.org>
74155         * doc/Makefile: Add pdf target.
74157 2008-03-05  Simon Josefsson  <simon@josefsson.org>
74159         * modules/inline (License): Use 'unlimited', since there are only
74160         *.m4 files in this module.
74162 2008-03-03  John E. Malmberg  <wb8tyw@qsl.net>  (tiny change)
74163             Bruno Haible  <bruno@clisp.org>
74165         Add support for HP C 7.1 on OpenVMS 8.3.
74166         * lib/alloca.in.h (alloca): Define as alias for DEC C on VMS.
74168 2008-03-03  John E. Malmberg  <wb8tyw@qsl.net>  (tiny change)
74170         Update VMS specifics.
74171         * lib/getopt.c [VMS]: Remove include of unixlib.h.
74173 2008-03-02  Jim Meyering  <meyering@redhat.com>
74175         Remove the last dependency on the "free" module.
74176         * m4/readutmp.m4 (gl_READUTMP): Don't require gl_FUNC_FREE.
74177         Reported by Bob Proulx.
74179         * lib/getdelim.c (getdelim): Don't leak memory upon failed realloc.
74181         Remove useless "if" tests before free.  Deprecate "free" module.
74182         * doc/posix-functions/free.texi: Mention that this
74183         module is no longer useful.
74184         * modules/free (Notice): Say this module is obsolete.
74185         * modules/readutmp (Depends-on): Remove free.
74186         * lib/save-cwd.c (free_cwd): Remove useless "if" before free.
74187         * lib/putenv.c (putenv): Likewise.
74188         * lib/gc-gnulib.c (gc_cipher_close): Likewise.
74189         * lib/getaddrinfo.c (freeaddrinfo): Likewise.
74190         * tests/test-c-strcasestr.c (main): Likewise.
74191         * tests/test-c-strstr.c (main): Likewise.
74192         * tests/test-mbscasestr1.c (main): Likewise.
74193         * tests/test-mbscasestr2.c (main): Likewise.
74194         * tests/test-mbsstr1.c (main): Likewise.
74195         * tests/test-mbsstr2.c (main): Likewise.
74196         * tests/test-memmem.c (main): Likewise.
74197         * tests/test-strcasestr.c (main): Likewise.
74198         * tests/test-striconv.c (main): Likewise.
74199         * tests/test-striconveh.c (main): Likewise.
74200         * tests/test-striconveha.c (main): Likewise.
74201         * tests/test-strstr.c (main): Likewise.
74203         * build-aux/git-version-gen: Adjust a comment and the Usage string.
74205         bootstrap: sync from coreutils again
74206         * build-aux/bootstrap: Remove dangling m4/*.m4 symlinks.
74208 2008-03-01  Jim Meyering  <meyering@redhat.com>
74210         bootstrap: sync from coreutils
74211         * build-aux/bootstrap (update_po_files): Copy a .po file into place
74212         also when the target doesn't exist.
74214 2008-03-01  Eric Blake  <ebb9@byu.net>
74216         Fix bugs in last patch.
74217         * lib/memchr2.c (memchr2): Fix typo.
74218         * tests/test-memchr2.c: Test previous bug, and don't use GNU
74219         extension.
74220         Reported by Bruce Korb.
74222         New module 'memchr2'.
74223         * modules/memchr2: New file.
74224         * modules/memchr2-tests: Likewise.
74225         * lib/memchr2.h: Likewise.
74226         * lib/memchr2.c: Likewise, based on memchr.c.
74227         * tests/test-memchr2.c: New test.
74228         * MODULES.html.sh (String handling): Add memchr2.
74230 2008-02-29  Bruno Haible  <bruno@clisp.org>
74232         * modules/freadseek-tests: New file.
74233         * tests/test-freadseek.sh: New file.
74234         * tests/test-freadseek.c: New file.
74236         New module 'freadseek'.
74237         * modules/freadseek: New file.
74238         * lib/freadseek.h: New file.
74239         * lib/freadseek.c: New file.
74240         * MODULES.html.sh (File stream based Input/Output): Add freadseek.
74242 2008-02-29  Sergey Poznyakoff  <gray@gnu.org.ua>
74244         * users.txt: Add anubis, cpio, mailfromd, mailutils, radius,
74245         wydawca.
74247         * m4/argp.m4 (gl_ARGP): Use AC_TRY_LINK to test if
74248         program_invocation_name and program_invocation_short_name are
74249         present.
74251 2008-02-28  Bruno Haible  <bruno@clisp.org>
74253         * tests/test-freadptr.c: Add a test for behaviour after ungetc.
74254         * tests/test-freadptr.sh: Also test non-seekable stdin.
74256 2008-02-28  Sergey Poznyakoff  <gray@gnu.org.ua>
74258         * build-aux/bootstrap (source_base, m4_base)
74259         (doc_base, tests_base): New variables.
74260         (gnulib_tool_options): Do not hardcode base directories, use
74261         the above variables instead.
74263 2008-02-28  Atsushi SAKAI  <sakaia@jp.fujitsu.com>
74265         * lib/xsize.h: Fix typo in comment: s/tupe/type/.
74267 2008-02-28  Bruno Haible  <bruno@clisp.org>
74269         * modules/freadptr-tests: New file.
74270         * tests/test-freadptr.sh: New file.
74271         * tests/test-freadptr.c: New file.
74273         New module 'freadptr'.
74274         * modules/freadptr: New file.
74275         * lib/freadptr.h: New file.
74276         * lib/freadptr.c: New file.
74277         * MODULES.html.sh (File stream based Input/Output): Add freadptr.
74279 2008-02-26  Karl Berry  <karl@freefriends.org>
74281         Sync from Libtool:
74282         * libltdl/argz.c (argz_add, argz_count): New functions.
74283         * libltdl/argz.in.h: Declare them.
74284         Report by Juan Manuel Guerrero <juan.guerrero@gmx.de>.
74286 2008-02-22  Bruno Haible  <bruno@clisp.org>
74288         * m4/time_r.m4 (gl_TIME_R): Also check that localtime_r's return type
74289         is a pointer type.  Needed for HP-UX 10.
74290         * doc/posix-functions/localtime_r.texi: Mention HP-UX 10.
74291         * doc/posix-functions/gmtime_r.texi: Likewise.
74292         Reported by Peter O'Gorman <bug-gnulib@mlists.thewrittenword.com>.
74294 2008-02-24  Bruno Haible  <bruno@clisp.org>
74296         * modules/environ-tests: New file.
74297         * tests/test-environ.c: New file.
74299         New module 'environ'.
74300         * modules/environ: New file.
74301         * lib/unistd.in.h (environ): New declaration.
74302         * m4/environ.m4: New file.
74303         (gt_CHECK_VAR_DECL): Moved here from m4/setenv.m4. Undefine gt_cv_var
74304         after use.
74305         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_ENVIRON and
74306         HAVE_DECL_ENVIRON.
74307         * modules/unistd (Makefile.am): Substitute also GNULIB_ENVIRON and
74308         HAVE_DECL_ENVIRON.
74309         * doc/posix-functions/environ.texi: Mention module 'environ'. Remove
74310         wrong claim that 'environ' is missing on some systems.
74311         * modules/execute (Depends-on): Add environ.
74312         * lib/execute.c (environ): Remove fallback declaration.
74313         * modules/pipe (Depends-on): Add environ.
74314         * lib/pipe.c (environ): Remove fallback declaration.
74315         * modules/setenv (Depends-on): Add environ.
74316         * lib/setenv.c (environ): Remove fallback declaration.
74317         * modules/unsetenv (Depends-on): Add environ.
74318         * lib/unsetenv.c (environ): Remove fallback declaration.
74319         * m4/setenv.m4 (gt_CHECK_VAR_DECL): Remove macro. Moved to
74320         m4/environ.m4.
74321         (gl_PREREQ_SETENV): Require gl_ENVIRON instead of testing for environ.
74322         (gl_PREREQ_UNSETENV): Likewise.
74324 2008-02-24  Bruno Haible  <bruno@clisp.org>
74326         * doc/posix-functions/environ.texi: Document the MacOS X problem.
74328 2008-02-20  Bob Proulx  <bob@proulx.com>
74330         Enable use of older two part flavor 'git describe'.
74331         * build-aux/git-version-gen: If using the older two part flavor of
74332         git version then recreate the third part now present in the
74333         newer three part flavor of git describe.
74335 2008-02-20  Martin Buchholz  <martin@xemacs.org>  (tiny change)
74337         * lib/fts.c (fts_build): Typo correction to comment.
74339 2008-02-17  Bruno Haible  <bruno@clisp.org>
74341         * lib/git-merge-changelog.c (main) [split_merged_entry]: Avoid
74342         generating no-op conflicts.
74344 2008-02-17  Bruno Haible  <bruno@clisp.org>
74346         Speed up by 10%.
74347         * lib/git-merge-changelog.c (main): Use the iterator to iterate through
74348         result_entries, rather than an index-based loop.
74350 2008-02-17  Bruno Haible  <bruno@clisp.org>
74352         Speed up by 25%.
74353         * lib/git-merge-changelog.c (struct entry): New fields 'hashcode',
74354         'hashcode_cached'.
74355         (entry_create): New function.
74356         (entry_hashcode): Use the cached hashcode if possible.
74357         (read_changelog_file, try_split_merged_entry): Use entry_create.
74359 2008-02-17  Bruno Haible  <bruno@clisp.org>
74361         Speed up from O(n^2) to O(n) for long ChangeLog files.
74362         * lib/git-merge-changelog.c: Include gl_rbtreehash_list.h.
74363         (read_changelog_file): Change implementation of entries_reversed list
74364         to rbtreehash.
74365         * modules/git-merge-changelog (Depends-on): Add rbtreehash-list.
74367 2008-02-17  Bruno Haible  <bruno@clisp.org>
74369         New option --split-merged-entry.
74370         * lib/git-merge-changelog.c (FSTRCMP_STRICTER_THRESHOLD): New macro.
74371         (find_paragraph_end, try_split_merged_entry): New functions.
74372         (long_options): Add option --split-merged-entry.
74373         (usage): Document option --split-merged-entry.
74374         (main): Implement option --split-merged-entry.
74375         Reported by Eric Blake.
74377 2008-02-17  Bruno Haible  <bruno@clisp.org>
74379         * lib/git-merge-changelog.c: Include c-strstr.h.
74380         (main): Support the "git pull --rebase" situation.
74381         * modules/git-merge-changelog (Depends-on): Add c-strstr.
74382         Reported by Eric Blake.
74384 2008-02-16  Eric Blake  <ebb9@byu.net>
74386         Avoid doubling \ in common case of "c-maybe" quoting style.
74387         * lib/quotearg.c (quotearg_buffer_restyled): Don't escape \ when
74388         eliding outer quotes.
74389         * lib/quotearg.h: Document this.
74390         * tests/test-quotearg.c (result_strings, inputs, results_g)
74391         (flag_results, locale_results): Test it by adding a new string to
74392         each test group.
74393         (compare_strings): Test new string.
74395 2008-02-13  Eric Blake  <ebb9@byu.net>
74397         Avoid trigraph quoting in default output.
74398         * lib/quotearg.h (enum quoting_flags): Add QA_SPLIT_TRIGRAPHS.
74399         * lib/quotearg.c (quotearg_buffer_restyled): Don't quote trigraphs
74400         unless explicitly requested.
74401         * tests/test-quotearg.c (flag_results, main): Add additional tests.
74403 2008-02-13  Lasse Collin  <lasse.collin@tukaani.org>
74405         Don't rely on signed integer overflowing to negative value.
74406         * lib/getugroups.c (getugroups): Include <limits.h>.
74407         Instead, compare against INT_MAX, and increment only if the test passes.
74409 2008-02-13  Jim Meyering  <meyering@redhat.com>
74410         and Eric Blake  <ebb9@byu.net>
74412         Avoid shadowing warning and compile errors on Linux.
74413         * tests/test-quotearg.c [ENABLE_NLS]: Disable <libintl.h>
74414         forwarding macros on Linux.
74415         (dcgettext): Define a stub, for Linux.
74416         (results_g, main): Avoid warnings.
74418 2008-02-12  Eric Blake  <ebb9@byu.net>
74420         Silence warning in last patch.
74421         * lib/quotearg.c (quotearg_buffer_restyled): Add missing const.
74423         Quotearg part 4: add tests, fix c-maybe colon quoting.
74424         * lib/quotearg.h: Improve documentation.
74425         * lib/quotearg.c (quotearg_buffer_restyled): Don't add extra
74426         escapes when adding outer quotes.  When quoting trigraphs, use
74427         valid C notation.  When quoting NUL, omit extra characters if next
74428         character is not digit.  Alter prototype.
74429         (quotearg_buffer, quotearg_alloc_mem, quotearg_n_options): Adjust
74430         callers.
74431         * modules/quotearg-tests: New module.
74432         * tests/test-quotearg.c: New test.
74434 2008-02-07  Eric Blake  <ebb9@byu.net>
74436         Quotearg part 3: add flag to control outer quote elision.
74437         * lib/quotearg.h (c_maybe_quoting_style): New style.
74438         (enum quoting_flags): Better documentation of flags.
74439         * lib/quotearg.c (quoting_style_args, quoting_style_vals): Add
74440         c-maybe style.
74441         (quotearg_buffer_restyled): Handle new flag to elide outer
74442         quotes.
74444         Quotearg part 2: add flag that can control NUL elision.
74445         * lib/quotearg.h (set_quoting_flags): New prototype.
74446         * lib/quotearg.c (struct quoting_options): Add flag field.
74447         (set_quoting_flags): New function.
74448         (quotearg_buffer_restyled): Add flags parameter.
74449         (quotearg_alloc_mem): Set the flag if length cannot be returned.
74450         (quotearg_n_options): Set the flag, since length cannot be
74451         returned.
74452         (quoting_options_from_style): Default flags correctly.
74454         Quotearg part 1: more wrappers, restore quotearg_char state.
74455         * lib/quotearg.h (quotearg_alloc_mem, quotearg_n_mem)
74456         (quotearg_mem, quotearg_style_mem, quotearg_char_mem)
74457         (quotearg_colon_mem): New wrappers.
74458         * lib/quotearg.c (quotearg_alloc, quotearg_char): Rewrite...
74459         (quotearg_alloc_mem, quotearg_char_mem): ...in terms of these new
74460         functions.
74461         (quotearg_n_mem, quotearg_mem, quotearg_style_mem)
74462         (quotearg_colon_mem): New functions.
74464 2008-02-11  Bruno Haible  <bruno@clisp.org>
74466         * modules/git-merge-changelog (Makefile.am): Don't use -L and -l for a
74467         library in the current directory: it does not work with parallel make.
74468         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
74470 2008-02-11  Bruno Haible  <bruno@clisp.org>
74472         * .gitattributes: New file.
74474 2008-02-11  Jim Meyering  <meyering@redhat.com>
74476         useless-if-before-free: Fix reversed exit values.
74477         * build-aux/useless-if-before-free: Use correct values
74478         for EXIT_MATCH and EXIT_NO_MATCH.
74480         * build-aux/useless-if-before-free: Close stdout carefully.
74482 2008-02-10  Bruno Haible  <bruno@clisp.org>
74484         New module 'git-merge-changelog'.
74485         * modules/git-merge-changelog: New file.
74486         * lib/git-merge-changelog.c: New file.
74488 2008-02-10  Jim Meyering  <meyering@redhat.com>
74490         useless-if-before-free: New option: --list (-l).
74492         useless-if-before-free: Don't exit immediately upon open failure.
74493         * build-aux/useless-if-before-free: Exit 2 for errors.
74494         Upon failure to open a file, don't exit immediately.
74495         Rather, just warn and continue with any remaining files.
74497 2008-02-10  Bruno Haible  <bruno@clisp.org>
74499         New abstract list operation 'node_set_value'.
74500         * lib/gl_list.h (gl_list_node_set_value): New function.
74501         (struct gl_list_implementation): New field node_set_value.
74502         * lib/gl_list.c (gl_list_node_set_value): New function.
74503         * lib/gl_array_list.c (gl_array_node_set_value): New function.
74504         (gl_array_list_implementation): Update.
74505         * lib/gl_carray_list.c (gl_carray_node_set_value): New function.
74506         (gl_carray_list_implementation): Update.
74507         * lib/gl_anylinked_list2.h (gl_linked_node_set_value): New function.
74508         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
74509         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
74510         * lib/gl_anytree_list2.h (gl_tree_node_set_value): New function.
74511         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
74512         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
74513         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
74514         Update.
74515         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Update.
74516         * lib/gl_sublist.c (gl_sublist_node_set_value): New function.
74517         (gl_sublist_list_implementation): Update.
74519 2008-02-10  Bruno Haible  <bruno@clisp.org>
74521         * lib/diffseq.h: Write "ELEMENT const" instead of "const ELEMENT".
74522         Needed when ELEMENT is #defined to 'some_type *'.
74524 2008-02-10  Jim Meyering  <meyering@redhat.com>
74526         New script and module: useless-if-before-free
74527         * MODULES.html.sh (maint+release support): Add useless-if-before-free.
74528         * build-aux/useless-if-before-free: New file.
74529         * modules/useless-if-before-free: New file.
74531         * build-aux/gitlog-to-changelog: Use committer date, not author date.
74533         xstrtol_error: Fix typo.
74534         * lib/xstrtol-error.c (xstrtol_error): The parameter was unused:
74535         s/exit_failure/exit_status/.
74537 2008-02-09  Jim Meyering  <meyering@redhat.com>
74539         New script and module: gitlog-to-changelog
74540         * MODULES.html.sh (maint+release support): Add gitlog-to-changelog.
74541         * modules/gitlog-to-changelog: New file.
74542         * build-aux/gitlog-to-changelog: New file.
74544 2008-02-08  Jim Meyering  <meyering@redhat.com>
74546         Avoid two "parameter unused" warnings.
74547         * lib/stat-time.h (get_stat_birthtime_ns, get_stat_birthtime):
74548         Mark "st" as used.
74550         Use "git COMMAND", not "git-COMMAND".
74551         * build-aux/bootstrap (version_controlled_file): s/git-rm/git-rm/.
74552         * build-aux/announce-gen (get_tool_versions): Correct a diagnostic.
74553         * build-aux/git-version-gen: Use "git status", not "git-status".
74555 2008-02-07  Bruno Haible  <bruno@clisp.org>
74557         * lib/vasnprintf.c (VASNPRINTF): Don't use %n on native Woe32 systems.
74558         Avoids a crash on Windows Vista.
74559         Reported by Adam Strzelecki <ono@java.pl> via
74560         Simon Josefsson <simon@josefsson.org>.
74562 2008-02-06  Bruno Haible  <bruno@clisp.org>
74564         Fix *printf behaviour regarding the left-adjust flag on HP-UX 10.20.
74565         * m4/printf.m4 (gl_PRINTF_FLAG_LEFTADJUST): New macro.
74566         * lib/vasnprintf.c (VASNPRINTF): Handle NEED_PRINTF_FLAG_LEFTADJUST.
74567         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_LEFTADJUST): New macro.
74568         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
74569         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
74570         gl_PRINTF_FLAG_LEFTADJUST and test its result. Invoke
74571         gl_PREREQ_VASNPRINTF_FLAG_LEFTADJUST.
74572         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
74573         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
74574         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
74575         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
74576         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
74577         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
74578         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
74579         * tests/test-vasnprintf-posix.c (test_function): Add testcases for the
74580         left-adjust flag.
74581         * tests/test-snprintf-posix.h (test_function): Likewise.
74582         * tests/test-sprintf-posix.h (test_function): Likewise.
74583         * tests/test-vasprintf-posix.c (test_function): Likewise.
74584         * doc/posix-functions/fprintf.texi: Update.
74585         * doc/posix-functions/printf.texi: Update.
74586         * doc/posix-functions/snprintf.texi: Update.
74587         * doc/posix-functions/sprintf.texi: Update.
74588         * doc/posix-functions/vfprintf.texi: Update.
74589         * doc/posix-functions/vprintf.texi: Update.
74590         * doc/posix-functions/vsnprintf.texi: Update.
74591         * doc/posix-functions/vsprintf.texi: Update.
74592         Reported by Peter Fales <psfales@alcatel-lucent.com>.
74594 2008-02-06  Bruno Haible  <bruno@clisp.org>
74596         Fix bug introduced on 2008-01-26.
74597         * lib/isnan.c (FUNC): Set to rpl_isnand, not rpl_isnan.
74599 2008-02-06  Bruno Haible  <bruno@clisp.org>
74601         Fix bug introduced on 2007-06-10.
74602         * lib/vasnprintf.c (VASNPRINTF): Perform zero-padding also if
74603         !NEED_PRINTF_FLAG_ZERO.
74605 2008-02-05  Peter O'Gorman  <pogma@thewrittenword.com>
74607         getloadavg: use libperfstat on AIX5
74608         * lib/getloadavg.c, m4/getloadavg.m4 [aix]: Use libperfstat
74610 2008-02-03  Bruno Haible  <bruno@clisp.org>
74612         * lib/diffseq.h: Add comments about required #includes.
74613         Reported by Michael Biggs <gnulib@doubleplum.net>.
74615 2008-02-01  Bruno Haible  <bruno@clisp.org>
74617         * users.txt: Add gnuit.
74619 2008-01-31  Bruno Haible  <bruno@clisp.org>
74621         * lib/md4.c (set_uint32): Mark as inline.
74622         * lib/md5.c (set_uint32): Likewise.
74623         * lib/sha1.c (set_uint32): Likewise.
74624         * m4/md4.m4 (gl_MD4): Require AC_C_INLINE.
74625         * m4/md5.m4 (gl_MD5): Likewise.
74626         * m4/sha1.m4 (gl_SHA1): Likewise.
74628 2008-01-31  Jim Meyering  <meyering@redhat.com>
74630         Use "sizeof VAR", rather than a literal "4".
74631         * lib/md5.c (md5_read_ctx): Use sizeof ctx->A, not 4.
74632         * lib/md4.c (md4_read_ctx): Likewise.
74633         * lib/sha1.c (sha1_read_ctx): Likewise.
74635 2008-01-31  Simon Josefsson  <simon@josefsson.org>
74637         * tests/test-sha1.c: New file, based on test-md5.c.
74639         * modules/crypto/sha1-tests: New file.
74641 2008-01-31  Simon Josefsson  <simon@josefsson.org>
74643         * lib/sha1.h (SHA1_DIGEST_SIZE): Define.
74645 2008-01-31  Jim Meyering  <meyering@redhat.com>
74647         Prefer "sizeof v" over the equivalent "4".
74648         * lib/md4.c (set_uint32): Use "sizeof v" as memcpy length, not 4.
74649         * lib/md5.c (set_uint32): Likewise.
74650         * lib/sha1.c (set_uint32): Likewise.
74652 2008-01-31  Simon Josefsson  <simon@josefsson.org>
74654         * lib/sha1.c (set_uint32): Mark function as static.
74656 2008-01-31  Simon Josefsson  <simon@josefsson.org>
74658         md2: clarify comments to say that alignment is not required.
74659         * lib/md2.h: Remove warning about alignment in comment.
74660         * lib/md2.c (md2_read_ctx, md2_finish_ctx): Doc fix, alignment has
74661         never been required.
74663 2008-01-31  Simon Josefsson  <simon@josefsson.org>
74665         md4: adapt alignment constraint fix from sha1.
74666         * lib/md4.c (set_uint32): New function, from sha1.c
74667         (md4_read_ctx): Use it.
74668         (md4_finish_ctx): Doc fix.
74669         * lib/md4.h: Doc fix.
74671 2008-01-31  Simon Josefsson  <simon@josefsson.org>
74673         md5: adapt alignment constraint fix from sha1.
74674         * lib/md5.c (set_uint32): New function, from sha1.c
74675         (md5_read_ctx): Use it.
74676         (md5_finish_ctx): Doc fix.
74677         * lib/md5.h: Doc fix.
74679 2008-01-30  Peter Palfrader  <weasel@debian.org>
74681         sha1: remove the result buffer alignment constraint
74682         * lib/sha1.c (set_uint32): New function.
74683         (sha1_read_ctx): Rewrite to remove the result buffer alignment
74684         constraint.
74685         (sha1_finish_ctx): Remove comment warning about alignment constraint.
74686         * lib/sha1.h: Likewise.
74688 2008-01-30  Andreas Schwab  <schwab@suse.de>
74689             Bruno Haible  <bruno@clisp.org>
74691         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Include <float.h> and ensure a
74692         correct definition of LDBL_MIN_EXP.
74694 2008-01-30  Karl Berry  <karl@gnu.org>
74696         * config/srclist-update: try to preserve x bit on updates.
74697         * config/srclistvars.sh: update for karl.
74699 2008-01-29  Jim Meyering  <meyering@redhat.com>
74701         vasnprintf.c: Avoid warning about unused label
74702         * lib/vasnprintf.c (VASNPRINTF) [!USE_SNPRINTF]: Guard the
74703         "overflow" label definition and associated code with the
74704         same cpp condition that guards the sole use of that label.
74706 2008-01-26  Bruno Haible  <bruno@clisp.org>
74708         * m4/isnanl.m4 (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM,
74709         gl_FUNC_ISNANL_WORKS): Test the GCC >= 4.0 built-in.
74710         * lib/isnanl.h (isnanl): Use the GCC >= 4.0 built-in.
74711         * lib/isnanl-nolibm.h (isnanl): Likewise.
74712         Reported by Paul Eggert <eggert@cs.ucla.edu>.
74714 2008-01-26  Bruno Haible  <bruno@clisp.org>
74716         * m4/isnand.m4 (gl_FUNC_ISNAND_NO_LIBM): Test the GCC >= 4.0 built-in.
74717         * lib/isnand.h (isnand): Use the GCC >= 4.0 built-in.
74719 2008-01-26  Bruno Haible  <bruno@clisp.org>
74721         * m4/isnanf.m4 (gl_HAVE_ISNANF_NO_LIBM, gl_ISNANF_WORKS): Test the
74722         GCC >= 4.0 built-in.
74723         * lib/isnanf.h (isnanf): Use the GCC >= 4.0 built-in.
74725 2008-01-26  Bruno Haible  <bruno@clisp.org>
74727         Rename isnan, applicable to 'double' only, to isnand.
74728         * modules/isnand-nolibm: Renamed from modules/isnan-nolibm.
74729         (Files): Add lib/isnand.h, lib/isnand.c. Remove lib/isnan.h.
74730         (configure.ac): Update.
74731         (Include): Replace "isnan.h" with "isnand.h".
74732         * m4/isnand.m4: Renamed from m4/isnan.m4.
74733         (gl_FUNC_ISNAND_NO_LIBM): Renamed from gl_FUNC_ISNAN_NO_LIBM. Set
74734         HAVE_ISNAND_IN_LIBC instead of HAVE_ISNAN_IN_LIBC. Build isnand.c
74735         instead of isnan.c.
74736         * lib/isnand.h: Renamed from lib/isnan.h. Test HAVE_ISNAND_IN_LIBC
74737         instead of HAVE_ISNAN_IN_LIBC.
74738         (isnand): Renamed from isnan.
74739         * lib/isnand.c: New file.
74740         * modules/isnand-nolibm-tests: Renamed from modules/isnan-nolibm-tests.
74741         (Files): Add tests/test-isnand.c. Remove tests/test-isnan.c.
74742         (Makefile.am): Update.
74743         * tests/test-isnand.c: Renamed from tests/test-isnan.c.
74744         Include isnand.h instead of isnan.h.
74745         (main): Test isnand instead of isnan.
74746         * modules/fprintf-posix (Depends-on): Add isnand-nolibm, remove
74747         isnan-nolibm.
74748         * modules/frexp (Depends-on): Likewise.
74749         * modules/frexp-tests (Depends-on): Likewise.
74750         * modules/frexp-nolibm (Depends-on): Likewise.
74751         * modules/frexp-nolibm-tests (Depends-on): Likewise.
74752         * modules/isfinite (Depends-on): Likewise.
74753         * modules/round-tests (Depends-on): Likewise.
74754         * modules/signbit (Depends-on): Likewise.
74755         * modules/signbit-tests (Depends-on): Likewise.
74756         * modules/snprintf-posix (Depends-on): Likewise.
74757         * modules/sprintf-posix (Depends-on): Likewise.
74758         * modules/trunc-tests (Depends-on): Likewise.
74759         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
74760         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
74761         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
74762         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
74763         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
74764         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
74765         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
74766         * modules/vasnprintf-posix (Depends-on): Likewise.
74767         * modules/vasprintf-posix (Depends-on): Likewise.
74768         * modules/vfprintf-posix (Depends-on): Likewise.
74769         * modules/vsnprintf-posix (Depends-on): Likewise.
74770         * modules/vsprintf-posix (Depends-on): Likewise.
74771         * lib/frexp.c: Include isnand.h instead of isnan.h.
74772         (ISNAN): Set to isnand instead of isnan.
74773         * lib/isfinite.c: Include isnand.h instead of isnan.h.
74774         (gl_isfinited): Use isnand instead of isnan.
74775         * lib/signbitd.c: Include isnand.h instead of isnan.h.
74776         (gl_signbitd): Use isnand instead of isnan.
74777         * lib/vasnprintf.c: Include isnand.h instead of isnan.h.
74778         (is_infinite_or_zero, VASNPRINTF): Use isnand instead of isnan.
74779         * tests/test-frexp.c: Include isnand.h instead of isnan.h.
74780         (main): Use isnand instead of isnan.
74781         * tests/test-round1.c: Include isnand.h.
74782         (main): Use isnand instead of isnan.
74783         * tests/test-round2.c: Include isnand.h instead of isnan.h.
74784         (ISNAN): Set to isnand instead of isnan.
74785         * tests/test-trunc1.c: Include isnand.h.
74786         (main): Use isnand instead of isnan.
74787         * tests/test-trunc2.c: Include isnand.h instead of isnan.h.
74788         (equal): Use isnand instead of isnan.
74789         * MODULES.html.sh (Mathematics <math.h>): Replace isnan-nolibm with
74790         isnand-nolibm.
74791         * NEWS: Mention the change.
74793 2008-01-25  Paul Eggert  <eggert@cs.ucla.edu>
74794             Bruno Haible  <bruno@clisp.org>
74796         * m4/signbit.m4 (gl_SIGNBIT): Require a macro definition. Test whether
74797         the GCC builtins for signbits are present and set
74798         REPLACE_SIGNBIT_USING_GCC if so.
74799         * lib/math.in.h (signbit): Define using GCC builtins if
74800         REPLACE_SIGNBIT_USING_GCC is set.
74801         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize
74802         REPLACE_SIGNBIT_USING_GCC.
74803         * modules/math (Makefile.am): Substitute REPLACE_SIGNBIT_USING_GCC.
74805 2008-01-25  Jim Meyering  <meyering@redhat.com>
74807         Prefer <config.h> over "config.h".  See autoconf doc for explanation.
74808         * lib/poll.c: Include <config.h>, not "config.h".
74809         * tests/test-getaddrinfo.c: Likewise.
74811 2008-01-25  Simon Josefsson  <simon@josefsson.org>
74813         * modules/sockets-tests: New file.
74815 2008-01-24  Simon Josefsson  <simon@josefsson.org>
74817         * modules/sockets: New module, can be used to call WSA_Startup and
74818         WSA_Cleanup when needed.
74820         * lib/sockets.h, lib/sockets.c: New files.
74822         * m4/sockets.m4: New file.
74824         * tests/test-sockets.c: New file.
74826 2008-01-19  Bruno Haible  <bruno@clisp.org>
74828         * doc/posix-headers: Renamed from doc/headers.
74829         * doc/posix-functions: Renamed from doc/functions.
74830         * doc/gnulib.texi: Update.
74832 2008-01-19  Bruno Haible  <bruno@clisp.org>
74834         * doc/glibc-functions/strcasestr.texi: Include contents of
74835         doc/functions/strcasestr.texi, fixing the list of platforms.
74836         * doc/functions/strcasestr.texi: Remove file.
74838 2008-01-19  Bruno Haible  <bruno@clisp.org>
74840         * doc/glibc-functions/memmem.texi: Include contents of
74841         doc/functions/memmem.texi.
74842         * doc/functions/memmem.texi: Remove file.
74844 2008-01-18  Bruno Haible  <bruno@clisp.org>
74846         * doc/glibc-functions/*.texi: New files.
74847         * doc/gnulib.texi (Glibc Function Substitutes): Completely rewritten
74848         to use the new files.
74850 2008-01-17  Bruno Haible  <bruno@clisp.org>
74852         * tests/test-gethostname.c (main): Fix printf statement.
74854 2008-01-17  Simon Josefsson  <simon@josefsson.org>
74856         * modules/gethostname-tests: New file.
74858         * tests/test-gethostname.c: New file.
74860 2008-01-17  Simon Josefsson  <simon@josefsson.org>
74862         * lib/gethostname.c: Include string.h unconditionally, strncpy is
74863         used by the UNAME case.  Reported by Bruno Haible
74864         <bruno@clisp.org>.
74866 2008-01-17  Eric Blake  <ebb9@byu.net>
74868         Convert c-strcasestr to be more efficient.
74869         * modules/c-strcasestr (Files): Use Two-Way, not KMP.
74870         (Depends-on): Add c-strcase, remove malloca, strnlen.
74871         * tests/test-c-strcasestr.c (main): Enhance test.
74872         * lib/c-strcasestr.c (c_strcasestr): Rewrite to new algorithm.
74874 2007-01-16  Paolo Bonzini  <bonzini@gnu.org>
74876         * build-aux/bootstrap (MSGID_BUGS_ADDRESS): New overridable variable.
74877         Use it in creating po/Makevars.
74879 2008-01-15  Simon Josefsson  <simon@josefsson.org>
74881         * lib/gc-libgcrypt.c (gc_init): Disable secure memory by default.
74882         Applications that requires it should initialize libgcrypt
74883         manually.
74885 2008-01-16  Simon Josefsson  <simon@josefsson.org>
74887         * lib/gethostname.c [!HAVE_UNAME]: Need string.h for strcpy.
74889 2008-01-15  Paul Eggert  <eggert@cs.ucla.edu>
74891         Fix problem with getdate on mingw32 reported by Simon Josefsson
74892         in <http://lists.gnu.org/archive/html/bug-gnulib/2008-01/msg00192.html>.
74893         * lib/getdate.y (get_date): Check "HAVE_DECL_TZNAME", not "defined
74894         tzname", when deciding whether to declare tzname.
74895         * lib/strftime.c (tzname): Likewise.
74897 2008-01-15  Bruno Haible  <bruno@clisp.org>
74899         Work around a MacOS X 10.5 bug in frexpl().
74900         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Also check denormalized numbers.
74901         * doc/functions/frexpl.texi: Document the bug.
74902         Reported by Elias Pipping <pipping@gentoo.org>.
74904 2008-01-14  Eric Blake  <ebb9@byu.net>
74906         Touch up previous patch.
74907         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Fix typo.
74908         * doc/functions/strcasestr.texi (strcasestr): Document OpenBSD bug.
74910         Convert strcasestr module to use Two-Way algorithm.
74911         * modules/strcasestr-simple: New module, based on the old
74912         strcasestr, but with Two-Way rather than KMP.
74913         * modules/strcasestr (Depends-on): Change to strcasestr-simple.
74914         * lib/string.in.h (rpl_strcasestr): Declare.
74915         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Check for linear
74916         performance.
74917         * lib/strcasestr.c (strcasestr): Simplify, and avoid malloc.
74918         * modules/string (Makefile.am): Support strcasestr.
74919         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Likewise.
74920         * modules/strcasestr-tests (Depends-on): Check for alarm.
74921         * tests/test-strcasestr.c: Augment test.
74922         * lib/str-two-way.h: Clean up stray macro.
74923         * NEWS: Document new module.
74924         * MODULES.html.sh (string handling): Likewise.
74925         * doc/functions/strcasestr.texi: New file.
74926         * doc/gnulib.texi (Function Substitutes): New node.  Move memmem
74927         here, since it is not a POSIX function.
74929 2008-01-14  Colin Watson  <cjwatson@debian.org>
74930             Bruno Haible  <bruno@clisp.org>
74932         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Also check whether strsignal
74933         works fine; if not, set REPLACE_STRSIGNAL.
74934         (gl_PREREQ_STRSIGNAL): Require AC_DECL_SYS_SIGLIST.
74935         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
74936         REPLACE_STRSIGNAL.
74937         * lib/string.in.h (strsignal): Consider REPLACE_STRSIGNAL.
74938         * modules/string (Makefile.am): Substitute REPLACE_STRSIGNAL.
74939         * tests/test-strsignal.c (main): Check out-of-range signal numbers.
74941 2008-01-14  Bruno Haible  <bruno@clisp.org>
74943         * modules/strsignal (Include): Change to <string.h>.
74945 2008-01-14  Colin Watson  <cjwatson@debian.org>
74947         * modules/argp (Notice): Add a notice recommending to change
74948         XGETTEXT_OPTIONS.
74949         (configure.ac): Invoke AM_XGETTEXT_OPTION if it exists.
74951 2008-01-13  Colin Watson  <cjwatson@debian.org>
74953         * modules/strsignal-tests: New file.
74954         * tests/test-strsignal.c: New file.
74956         * lib/strsignal.c: New file, from glibc with modifications.
74957         * lib/siglist.h: New file, from glibc with modifications.
74958         * lib/string.in.h (strsignal): New declaration.
74959         * m4/strsignal.m4: New file.
74960         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
74961         GNULIB_STRSIGNAL and HAVE_DECL_STRSIGNAL.
74962         * modules/strsignal: New file.
74963         * modules/string (Makefile.am): Substitute GNULIB_STRSIGNAL and
74964         HAVE_DECL_STRSIGNAL.
74966 2008-01-13  Bruno Haible  <bruno@clisp.org>
74968         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Check that the
74969         locale encoding is not ASCII. Needed for OpenBSD 4.0.
74970         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
74971         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
74973 2008-01-13  Bruno Haible  <bruno@clisp.org>
74975         * lib/argp-fmtstream.h (__attribute__): Don't redefine if
74976         __STRICT_ANSI__ is set: it's not needed by any version of gcc.
74977         * lib/argp.h (__attribute__): Likewise.
74978         * lib/c-stack.c (__attribute__): Likewise.
74979         * lib/error.h (__attribute__): Likewise.
74980         * lib/fts.c (__attribute__): Likewise.
74981         * lib/openat.h (__attribute__): Likewise.
74982         * lib/stdio.in.h (__attribute__): Likewise.
74983         * lib/string.in.h (__attribute__): Likewise.
74984         * lib/utimens.c (__attribute__): Likewise.
74985         * lib/vasnprintf.h (__attribute__): Likewise.
74986         * lib/xalloc.h (__attribute__): Likewise.
74987         * lib/xprintf.h (__attribute__): Likewise.
74988         * lib/xstrtol.h (__attribute__): Likewise.
74989         * lib/xvasprintf.h (__attribute__): Likewise.
74991 2008-01-12  Bruno Haible  <bruno@clisp.org>
74993         * doc/gnulib.texi (Glibc Header File Substitutes): New chapter.
74994         * doc/glibc-headers/a.out.texi: New file.
74995         * doc/glibc-headers/aliases.texi: New file.
74996         * doc/glibc-headers/alloca.texi: New file.
74997         * doc/glibc-headers/ar.texi: New file.
74998         * doc/glibc-headers/argp.texi: New file.
74999         * doc/glibc-headers/argz.texi: New file.
75000         * doc/glibc-headers/byteswap.texi: New file.
75001         * doc/glibc-headers/crypt.texi: New file.
75002         * doc/glibc-headers/endian.texi: New file.
75003         * doc/glibc-headers/envz.texi: New file.
75004         * doc/glibc-headers/err.texi: New file.
75005         * doc/glibc-headers/error.texi: New file.
75006         * doc/glibc-headers/execinfo.texi: New file.
75007         * doc/glibc-headers/fpu_control.texi: New file.
75008         * doc/glibc-headers/fstab.texi: New file.
75009         * doc/glibc-headers/fts.texi: New file.
75010         * doc/glibc-headers/getopt.texi: New file.
75011         * doc/glibc-headers/ieee754.texi: New file.
75012         * doc/glibc-headers/ifaddrs.texi: New file.
75013         * doc/glibc-headers/libintl.texi: New file.
75014         * doc/glibc-headers/mcheck.texi: New file.
75015         * doc/glibc-headers/mntent.texi: New file.
75016         * doc/glibc-headers/obstack.texi: New file.
75017         * doc/glibc-headers/paths.texi: New file.
75018         * doc/glibc-headers/printf.texi: New file.
75019         * doc/glibc-headers/pty.texi: New file.
75020         * doc/glibc-headers/resolv.texi: New file.
75021         * doc/glibc-headers/shadow.texi: New file.
75022         * doc/glibc-headers/sysexits.texi: New file.
75023         * doc/glibc-headers/ttyent.texi: New file.
75025 2008-01-12  Jim Meyering  <meyering@redhat.com>
75027         announce-gen: emit Gnulib's git-based version string.
75028         * build-aux/announce-gen: Remove option: --gnulib-snapshot-time-stamp=S.
75029         New option --gnulib-version=V, where V is expected to be
75030         the output of running git describe in the gnulib directory.
75031         (get_tool_versions): Request feedback on xdelta.  I suspect it's
75032         not useful, and plan to stop publishing an xdelta file with each
75033         coreutils release.
75035         * build-aux/announce-gen: Also check for lzma-compressed files.
75037 2008-01-11  Bruno Haible  <bruno@clisp.org>
75039         * tests/test-memmem.c (main): Increase maximum allowed time.
75040         * tests/test-strstr.c (main): Likewise.
75042 2008-01-11  Bruno Haible  <bruno@clisp.org>
75044         * doc/functions/memmem.texi: Add more precisions about platforms.
75045         * doc/functions/strstr.texi: Likewise.
75047 2008-01-10  Eric Blake  <ebb9@byu.net>
75049         * m4/strstr.m4: Delete cruft from copy-n-paste.
75050         Reported by Bruno Haible.
75052 2008-01-10  Bruno Haible  <bruno@clisp.org>
75054         Make c-strstr rely on strstr.
75055         * lib/c-strstr.c: Don't include str-kmp.h.
75056         (c_strstr): Define in terms of strstr.
75057         * modules/c-strstr (Files): Remove lib/str-kmp.h.
75058         (Depends-on): Remove stdbool, malloca, strnlen. Add strstr.
75060 2008-01-10  Bruno Haible  <bruno@clisp.org>
75062         * doc/gnulib.texi (String Functions in C Locale): New section.
75063         * doc/c-ctype.texi: New file.
75064         * doc/c-strcase.texi: New file.
75065         * doc/c-strcaseeq.texi: New file.
75066         * doc/c-strcasestr.texi: New file.
75067         * doc/c-strstr.texi: New file.
75068         * doc/c-strtod.texi: New file.
75069         * doc/c-strtold.texi: New file.
75071 2008-01-10  Eric Blake  <ebb9@byu.net>
75073         * lib/relocatable.h: Fix a comment.
75075 2008-01-10  Eric Blake  <ebb9@byu.net>
75077         Share two-way algorithm.
75078         * lib/str-two-way.h: New file, merged from...
75079         * lib/memmem.c: ...here...
75080         * lib/strstr.c: ...and here.
75081         * modules/memmem (Files): Use it.
75082         * modules/strstr (Files): Likewise.
75084         Avoid quadratic strstr implementations.
75085         * lib/strstr.c: New file.
75086         * m4/strstr.m4: Likewise.
75087         * modules/strstr: Likewise.
75088         * modules/strstr-tests: Likewise.
75089         * tests/test-strstr.c: Likewise.
75090         * lib/string.in.h (rpl_strstr): Declare.
75091         (memmem) [GNULIB_POSIXCHECK]: Document speed issue.
75092         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Support strstr.
75093         * modules/string (Makefile.am): Likewise.
75094         * MODULES.html.sh (string handling): Mention new module.
75095         * doc/functions/strstr.texi (strstr): Document the bug.
75097 2008-01-10  Bruno Haible  <bruno@clisp.org>
75099         * lib/relocatable.h (relocate): State whether result is freshly
75100         allocated or not.
75101         * lib/relocatable.c (relocate): Return a freshly allocated string
75102         instead of a pointer to a privately held string.
75103         Reported by Sylvain Beucler <beuc@gnu.org>.
75105 2008-01-10  Colin Watson  <cjwatson@debian.org>
75107         * lib/canonicalize-lgpl.c [!_LIBC]: Fix typo in #if directive:
75108         s/S_ISNLK/S_ISLNK/.
75110 2008-01-09  Bruno Haible  <bruno@clisp.org>
75112         * doc/functions/memmem.texi: Use the same structure as snprintf.texi
75113         and other files.
75114         * m4/memmem.m4 (gl_FUNC_MEMMEM): Say "guessing no" instead of "no"
75115         if it's only a guess.
75116         * modules/memmem: Simplify by depending on memmem-simple.
75118 2008-01-09  Bruno Haible  <bruno@clisp.org>
75120         Work around OpenBSD 4.0 tdelete() bug.
75121         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Also check tdelete's return value.
75122         * lib/search.in.h: If REPLACE_TSEARCH is 1, define tsearch etc. as
75123         macros and don't redefine the enum values.
75124         * m4/search_h.m4 (gl_SEARCH_H_DEFAULTS): Initialize REPLACE_TSEARCH.
75125         * modules/search (Makefile.am): Also substitute REPLACE_TSEARCH.
75126         * doc/functions/tdelete.texi: Document the OpenBSD 4.0 bug.
75128 2008-01-09  Bruno Haible  <bruno@clisp.org>
75130         * tests/test-wcwidth.c: Include <string.h> and localcharset.h.
75131         (main): Don't perform the tests if setlocale did not install a UTF-8
75132         locale. Needed on OpenBSD 4.0.
75133         * modules/wcwidth-tests (Depends-on): Add localcharset.
75135 2008-01-09  Paul Eggert  <eggert@cs.ucla.edu>
75137         gl_FUNC_ALLOCA no longer defines HAVE_ALLOCA_H unconditionally.
75138         See <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00149.html>.
75139         * NEWS: announce this.
75140         * m4/alloca.m4 (gl_FUNC_ALLOCA): Don't define HAVE_ALLOCA_H.
75142 2008-01-09  Simon Josefsson  <simon@josefsson.org>
75143         and Eric Blake  <ebb9@byu.net>
75145         Add memmem-simple module.
75146         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): New macro.
75147         (gl_FUNC_MEMMEM): Separate performance from presence checks.
75148         * modules/memmem-simple: New file.
75149         * modules/memmem (Description): Tweak.
75150         * MODULES.html.sh (string handling): Mention new module.
75151         * doc/functions/memmem.texi (memmem): Distinguish which flaws are
75152         addressed by memmem-simple.
75153         * NEWS: Document the difference.
75155 2008-01-09  Eric Blake  <ebb9@byu.net>
75157         Give gcc some memmem optimization hints.
75158         * lib/string.in.h (memmem, memrchr, strchrnul, strnlen, strpbrk)
75159         (strcasestr): Declare as pure.
75160         * modules/memmem (Maintainer): Claim my implementation.
75162 2008-01-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
75164         Support AIX 6.1 and higher.
75165         * build-aux/config.libpath: Likewise.
75166         * build-aux/config.rpath: Likewise.
75168 2008-01-08  Jim Meyering  <meyering@redhat.com>
75169             Bruno Haible  <bruno@clisp.org>
75171         * lib/printf-parse.c (PRINTF_PARSE): Handle a size specifier "q"
75172         on MacOS X and a size specifier "I64" on mingw. Needed for PRIdMAX.
75173         Reported by Peter Fales in
75174         <http://lists.gnu.org/archive/html/bug-coreutils/2007-12/msg00148.html>.
75176 2008-01-08  Bruno Haible  <bruno@clisp.org>
75178         * modules/unictype/category-of (Depends-on): Add
75179         unictype/category-none.
75180         * modules/unictype/category-and-tests (Depends-on): Add
75181         unictype/category-{L,N,Lu,Nd}.
75182         * modules/unictype/category-and-not-tests (Depends-on): Likewise.
75183         * modules/unictype/category-or-tests (Depends-on): Add
75184         unictype/category-{L,N}.
75185         * modules/unictype/category-name-tests (Depends-on): Add
75186         unictype/category-{Z,Nl}.
75187         Reported by Simon Josefsson.
75189 2008-01-08  Bruno Haible  <bruno@clisp.org>
75191         * lib/str-kmp.h (knuth_morris_pratt_unibyte): Document the calling
75192         convention better.
75193         * lib/mbsstr.c (knuth_morris_pratt_multibyte): Likewise.
75194         * lib/mbscasestr.c (knuth_morris_pratt_multibyte): Likewise.
75195         Reported by Peter Miller <millerp@canb.auug.org.au>.
75197 2008-01-08  Eric Blake  <ebb9@byu.net>
75199         Rewrite memmem to guarantee linear complexity without malloc.
75200         * lib/memmem.c (memmem): Use Two-Way rather than
75201         Knuth-Morris-Pratt, to allow O(1) space usage.
75202         (critical_factorization, two_way_short_needle)
75203         (two_way_long_needle): New functions.
75204         (knuth_morris_pratt): Delete.
75205         * modules/memmem (Depends-on): No longer need malloca or stdbool.
75206         Add stdint.
75207         * tests/test-memmem.c (main): Add tests for periodic needle and
75208         sublinear performance.
75209         * doc/functions/memmem.texi (memmem): Document other deficiencies
75210         in cygwin and older glibc.
75212 2008-01-08  Bruno Haible  <bruno@clisp.org>
75214         * modules/memmem-tests (Makefile.am): Remove TESTS_ENVIRONMENT
75215         augmentation.
75217 2008-01-08  Mike Frysinger  <vapier@gentoo.org>
75219         Add a configure time option: --disable-acl.
75220         * m4/acl.m4 (gl_FUNC_ACL): Wrap all ACL logic in a call to
75221         AC_ARG_ENABLE(acl).
75223 2008-01-06  Simon Josefsson  <simon@josefsson.org>
75225         * tests/test-localename.c: Don't include obsolete "setenv.h".
75227         * modules/localename-tests (Depends-on): Need unsetenv.
75229 2008-01-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
75231         * DEPENDENCIES: Require Texinfo version 4.6 or newer.
75233 2008-01-06  Colin Watson  <cjwatson@debian.org>
75235         * users.txt: Add man-db.
75237 2008-01-07  Bruno Haible  <bruno@clisp.org>
75239         * doc/gnulib-intro.texi (Library vs Reusable Code): Restore the
75240         previous section name.
75242 2008-01-07  Bruno Haible  <bruno@clisp.org>
75244         * lib/progname.c (set_program_name): Don't strip off a leading
75245         "lt-" prefix outside a .libs directory.
75246         Suggested by Paul Eggert.
75248 2008-01-01  Sylvain Beucler  <beuc@gnu.org>
75249             Bruno Haible  <bruno@clisp.org>
75251         Improve memory cleanup in 'relocatable' module.
75252         * lib/relocatable.h (compute_curr_prefix): Change return type to
75253         'char *'.
75254         * lib/relocatable.c (compute_curr_prefix): Change return type to
75255         'char *'. Free curr_installdir after use.
75256         (relocate): Free curr_prefix_better after use.
75257         * lib/progreloc.c (prepare_relocate): Free curr_prefix after use.
75259 2008-01-01  Bruno Haible  <bruno@clisp.org>
75261         * tests/test-wcwidth.c (main): Relax test of U+2060. Avoids a test
75262         failure on older glibc systems.
75263         Reported by Peter Fales <psfales@alcatel-lucent.com>.
75265 2008-01-05  Eric Blake  <ebb9@byu.net>
75267         Avoid quadratic system memmem.
75268         * m4/memmem.m4 (gl_FUNC_MEMMEM): Check for quadratic memmem.
75269         Reported by Ralf Wildenhues.
75271         Fix memmem test for mingw.
75272         * modules/memmem-tests (configure.ac): Check for alarm.
75273         * tests/test-memmem.c (main): Avoid alarm on platforms that lack
75274         it.
75275         * doc/functions/memmem.texi: New file.
75276         * doc/gnulib.texi (Function Substitutes): Add memmem.
75277         Reported by Bruno Haible.
75279 2008-01-04  Bruno Haible  <bruno@clisp.org>
75281         * m4/strcase.m4 (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP):
75282         Require gl_HEADER_STRINGS_H_DEFAULTS, not
75283         gl_HEADER_STRING_H_DEFAULTS.
75285 2008-01-04  Eric Blake  <ebb9@byu.net>
75287         Shorten duration of memmem test.
75288         * tests/test-memmem.c (main): Use alarm to declare failure if test
75289         is taking too long.
75290         Reported by Ralf Wildenhues.
75292 2007-12-21  Simon Josefsson  <simon@josefsson.org>
75294         * modules/relocatable-prog-wrapper (Depends-on): Add intprops and
75295         string, needed by strerror.
75297 2008-01-03  Colin Watson  <cjwatson@debian.org>
75298             Bruno Haible  <bruno@clisp.org>
75300         * doc/gnulib-tool.texi (Localization): New section.
75302 2008-01-02  Bruno Haible  <bruno@clisp.org>
75304         * lib/memmem.c (knuth_morris_pratt, memmem): Change all 'char *'
75305         variables to 'unsigned char *' type.
75306         Reported by Paul Eggert.
75308 2008-01-02  Jim Meyering  <jim@meyering.net>
75310         * lib/version-etc.c (COPYRIGHT_YEAR): Increase for new year.
75312 2007-12-31  Jim Meyering  <jim@meyering.net>
75314         Avoid use of private FTS type name.
75315         * lib/fts.c (fts_sort): Use FTSENT rather than "struct _ftsent".
75317 2007-12-30  Karl Berry  <karl@gnu.org>
75319         * doc/gnulib.texi (Library vs. Reusable Code): remove period, to
75320         work around defect in Texinfo and/or the standalone Info browser.
75322 2007-12-30  Bruno Haible  <bruno@clisp.org>
75324         Unify 5 copies of the KMP code.
75325         * lib/str-kmp.h: New file.
75326         * lib/c-strcasestr.c: Include str-kmp.h.
75327         (knuth_morris_pratt): Remove function.
75328         (c_strcasestr): Update.
75329         * lib/c-strstr.c: Include str-kmp.h.
75330         (knuth_morris_pratt): Remove function.
75331         (c_strcasestr): Update.
75332         * lib/mbscasestr.c: Include str-kmp.h.
75333         (knuth_morris_pratt_unibyte): Remove function.
75334         * lib/mbsstr.c: Include str-kmp.h.
75335         (knuth_morris_pratt_unibyte): Remove function.
75336         * lib/strcasestr.c: Include str-kmp.h.
75337         (knuth_morris_pratt): Remove function.
75338         (strcasestr): Update.
75339         * modules/c-strcasestr (Files): Add lib/str-kmp.h.
75340         * modules/c-strstr (Files): Likewise.
75341         * modules/mbscasestr (Files): Likewise.
75342         * modules/mbsstr (Files): Likewise.
75343         * modules/strcasestr (Files): Likewise.
75344         Suggested by Paul Eggert.
75346 2007-12-30  Bruno Haible  <bruno@clisp.org>
75348         * lib/xmalloca.c (xmmalloca): Don't define if HAVE_ALLOCA is not
75349         defined.
75351 2007-12-30  Bruno Haible  <bruno@clisp.org>
75353         * lib/xmalloca.h: Include xalloc.h.
75354         (xnmalloca): New macro.
75356 2007-12-30  Bruno Haible  <bruno@clisp.org>
75358         * lib/malloca.h (nmalloca): New macro.
75359         * lib/c-strcasestr.c (knuth_morris_pratt): Use it.
75360         * lib/c-strstr.c (knuth_morris_pratt): Likewise.
75361         * lib/mbscasestr.c (knuth_morris_pratt_unibyte,
75362         knuth_morris_pratt_multibyte): Likewise.
75363         * lib/mbsstr.c (knuth_morris_pratt_unibyte,
75364         knuth_morris_pratt_multibyte): Likewise.
75365         * lib/memmem.c (knuth_morris_pratt): Likewise.
75366         * lib/strcasestr.c (knuth_morris_pratt): Likewise.
75368 2007-12-25  Bruno Haible  <bruno@clisp.org>
75370         Fixup after 2007-10-17 commit. Ensure that 'glob' stays under LGPLv2+.
75371         * lib/glob.c: Don't include openat.h.
75372         (link_exists2_p): Add back the code that deals with the
75373         !GLOB_ALTDIRFUNC case.
75374         (link_exists_p) [!_LIBC && !HAVE_FSTATAT]: Just call link_exists2_p and
75375         let it do the filename concatenation.
75376         * m4/glob.m4 (gl_PREREQ_GLOB): Add check for fstatat.
75377         * modules/glob (Depends-on): Remove openat.
75379 2007-12-31  Bruno Haible  <bruno@clisp.org>
75381         * modules/dirfd (License): Change to LGPLv2+.
75382         Approved by Jim Meyering.
75384 2007-12-29  Paul Eggert  <eggert@cs.ucla.edu>
75386         * lib/memmem.c (knuth_morris_pratt): Check for size_t overflow
75387         when multiplying M by sizeof (size_t).
75389 2007-12-10  Martin Lambers  <marlam@marlam.de>
75391         Override getpagesize on mingw.
75392         * lib/getpagesize.c: New file.
75393         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Enable replacement on mingw.
75394         * modules/getpagesize (Files): Add lib/getpagesize.c.
75395         * lib/unistd.in.h (getpagesize): Declare if we are using a replacement.
75396         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
75397         REPLACE_GETPAGESIZE.
75398         * modules/unistd (Makefile.am): Substitute REPLACE_GETPAGESIZE.
75400 2007-12-25  Bruno Haible  <bruno@clisp.org>
75402         * modules/localcharset (Notice): New field.
75403         (configure.ac): Define LOCALCHARSET_TESTS_ENVIRONMENT.
75404         Suggested by Ben Pfaff <blp@cs.stanford.edu>.
75406 2007-12-25  Paul Eggert  <eggert@cs.ucla.edu>
75407             Bruno Haible  <bruno@clisp.org>
75409         Avoid using the syntax symbol() in formatted documentation.
75410         * MODULES.html.sh (func_module): When replacing symbol() with a
75411         hyperlink, remove the parentheses. Show an error if some remain.
75412         Recognize and render the '...' syntax.
75413         * doc/alloca-opt.texi: Remove parentheses from symbol reference.
75414         Rework. Add paragraph about GCC's inlining.
75415         * doc/alloca.texi: Likewise.
75416         * doc/error.texi: Remove parentheses from symbol reference.
75417         * doc/gnulib-intro.texi: Likewise.
75418         * doc/gnulib.texi (alloca, alloca-opt): New nodes.
75419         * modules/fnmatch (Description): Reword to say "the ... function".
75420         * modules/full-read (Description): Likewise.
75421         * modules/full-write (Description): Likewise.
75422         * modules/safe-read (Description): Likewise.
75423         * modules/safe-write (Description): Likewise.
75424         * modules/strchrnul (Description): Likewise.
75425         * modules/trim (Description): Likewise.
75426         * modules/error (Description): Remove parentheses from symbol
75427         references.
75428         * modules/verror (Description): Likewise.
75429         Reported by Karl Berry.
75431 2007-12-25  Bruno Haible  <bruno@clisp.org>
75433         Fixup after 2007-10-16 commit.
75434         * lib/glob.c (glob_in_dir): Don't use ISO C99 syntax.
75436 2007-12-24  Bruno Haible  <bruno@clisp.org>
75438         Make --enable-relocatable work with DESTDIR.
75439         * build-aux/install-reloc: Accept another argument 'destdir'. Use it
75440         to compute installdir from destprog.
75441         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): In INSTALL_PROGRAM_ENV,
75442         also set the RELOC_DESTDIR variable.
75443         Reported by Левашев Иван <octagram@bluebottle.com>.
75445 2007-12-24  Bruno Haible  <bruno@clisp.org>
75447         Fix link error due to xalloc_die().
75448         * lib/progreloc.c: When NO_XMALLOC is defined, use areadlink instead
75449         of xreadlink.
75450         * lib/relocwrapper.c: Update comments.
75451         * build-aux/install-reloc: Remove xreadlink.c from file list.
75452         * modules/relocatable-prog-wrapper (Files): Remove xreadlink.h and
75453         xreadlink.c.
75454         Reported by Левашев Иван <octagram@bluebottle.com>.
75456 2007-12-24  Bruno Haible  <bruno@clisp.org>
75458         Split setenv module into setenv and unsetenv. Get rid of setenv.h.
75459         * lib/setenv.h: Remove file.
75460         * lib/stdlib.in.h (setenv, unsetenv): New declarations, moved here from
75461         lib/setenv.h.
75462         * modules/setenv (Files): Remove lib/setenv.h, lib/unsetenv.c.
75463         (Depends-on): Add stdlib.
75464         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR. Don't invoke
75465         gl_FUNC_UNSETENV.
75466         (Include): Replace setenv.h with <stdlib.h>.
75467         * modules/unsetenv: New file.
75468         * lib/setenv.c: Include <stdlib.h> first, after alloca.h.
75469         * lib/unsetenv.c: Include <stdlib.h> first.
75470         * m4/setenv.m4 (gl_FUNC_SETENV, gl_FUNC_SETENV_SEPARATE): Require
75471         gl_STDLIB_H_DEFAULTS. Conditionally set HAVE_SETENV to 0.
75472         (gl_FUNC_UNSETENV): Require gl_STDLIB_H_DEFAULTS. Conditionally set
75473         HAVE_UNSETENV to 0. Set VOID_UNSETENV as an AC_SUBSTed variable.
75474         * modules/stdlib (Makefile.am): Substitute also GNULIB_SETENV,
75475         HAVE_SETENV, GNULIB_UNSETENV, HAVE_UNSETENV, VOID_UNSETENV.
75476         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_SETENV,
75477         HAVE_SETENV, GNULIB_UNSETENV, HAVE_UNSETENV, VOID_UNSETENV.
75478         * doc/functions/unsetenv.texi: Update.
75479         * modules/xsetenv (Depends-on): Add unsetenv.
75480         * modules/getdate (Depends-on): Likewise.
75481         * lib/xsetenv.h: Include <stdlib.h> instead of setenv.h.
75482         * lib/xsetenv.c: Don't include setenv.h.
75483         * lib/getdate.y: Likewise.
75484         * lib/relocwrapper.c: Likewise.
75485         * modules/relocatable-prog-wrapper (Files): Remove lib/setenv.h.
75486         (Depends-on): Add stdlib.
75487         * NEWS: Mention the changes.
75488         Reported by Левашев Иван <octagram@bluebottle.com>.
75490 2007-12-23  Bruno Haible  <bruno@clisp.org>
75492         * lib/memmem.c (memmem): Use lowercase variable names. Tab
75493         indentation.
75495 2007-12-23  Bruno Haible  <bruno@clisp.org>
75497         * lib/c-strcasestr.c: Add more comments.
75498         * lib/c-strstr.c: Likewise.
75499         * lib/mbscasestr.c: Likewise.
75500         * lib/mbsstr.c: Likewise.
75501         * lib/strcasestr.c: Likewise.
75502         * lib/memmem.c: Likewise.
75504 2007-12-23  Bruno Haible  <bruno@clisp.org>
75506         * tests/test-memmem.c: Include <string.h> first.
75508 2007-12-22  Bruno Haible  <bruno@clisp.org>
75510         * gnulib-tool (func_create_testdir): Change $auxdir while generating
75511         the contents of $testsbase.
75512         Reported by Ralf Wildenhues.
75514 2007-12-22  Bruno Haible  <bruno@clisp.org>
75516         * gnulib-tool (func_emit_tests_Makefile_am): Replace local_ldadd with
75517         two variables local_ldadd_before, local_ldadd_last.
75519 2007-12-20  Eric Blake  <ebb9@byu.net>
75521         Work around circular library issue when cross-compiling.
75522         * lib/progname.c (set_program_name): Use strncmp, not memcmp, so
75523         that progname.o does not need to pull in rpl_memcmp.
75525 2007-12-19  Eric Blake  <ebb9@byu.net>
75527         Fix memmem to avoid O(n^2) worst-case complexity.
75528         * lib/memmem.c (knuth_morris_pratt): New function.
75529         (memmem): Use it if first few naive iterations fail.
75530         * m4/memmem.m4 (gl_FUNC_MEMMEM): Detect cygwin bug.
75531         * modules/memcmp (License): Set to LGPLv2+, not LGPL.
75532         * modules/memchr (License): Likewise.
75533         * modules/memmem (Depends-on): Add memcmp, memchr, stdbool, and
75534         malloca.
75535         * tests/test-memmem.c: Rewrite, borrowing ideas from
75536         test-mbsstr1.c; the old version wouldn't even compile!
75537         * modules/memmem-tests: New file.
75538         * lib/string.in.h (rpl_memmem): Add declaration.
75539         * modules/string (Makefile.am): Substitute REPLACE_MEMMEM.
75540         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Default for
75541         REPLACE_MEMMEM.
75543 2007-12-18  Paul Eggert  <eggert@cs.ucla.edu>
75545         Fix problem with _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H on VMS.
75546         * lib/stdint.in.h (_GL_JUST_INCLUDE_SYSTEM_INTTYPES_H): Define
75547         before any system include files, and undef after them all.  This
75548         should fix a problem on VMS reported by John E. Malmberg in
75549         <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00118.html>.
75551 2007-12-17  Eric Blake  <ebb9@byu.net>
75553         Revert addition of verify, for BSD/OS.
75554         * lib/fseeko.c [!HAVE_FSEEKO]: Allow off_t > long, even though it
75555         can't handle large files, for the sake of obsolete platforms.
75556         * modules/fseeko (Depends-on): Remove verify.
75557         * doc/functions/fseeko.texi (fseeko): Document BSD/OS limitation.
75558         * doc/functions/ftello.texi (ftello): Likewise.
75559         * doc/functions/fgetpos.texi (fgetpos): Likewise.
75560         Reported by Larry Jones.
75562 2007-12-17  Petr Salinger  <Petr.Salinger@seznam.cz>
75564         getcwd.c: Use a more readable witness: HAVE_OPENAT_SUPPORT
75565         * lib/getcwd.c: Define and use HAVE_OPENAT_SUPPORT, in place of AT_FDCWD.
75567 2007-12-17  Jim Meyering  <meyering@redhat.com>
75569         Port to GNU/kFreeBSD - FreeBSD kernel + GNU libc,
75570         which has no openat syscall, yet <fcntl.h> does define AT_FDCWD.
75571         * lib/getcwd.c: Undef AT_FDCWD if there is no openat function.
75572         * modules/getcwd (Depends-on): Add openat.
75573         Reported by Petr Salinger.
75575 2007-12-17  Bruno Haible  <bruno@clisp.org>
75577         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Use GL_NOCRASH to
75578         avoid a segmentation fault of the configure test on x86_64 systems.
75580 2007-12-15  Jim Meyering  <meyering@redhat.com>
75582         * build-aux/gnupload (GPG): Don't hard-code absolute name of gpg binary.
75584 2007-12-13  Eric Blake  <ebb9@byu.net>
75586         Another fseek test.
75587         * tests/test-fseek.c (main): Also test ungetc handling.
75588         * tests/test-fseeko.c (main): Likewise.
75589         * modules/fseeko (Depends-on): Add verify.
75590         * lib/fseeko.c [!HAVE_FSEEKO]: Verify that off_t is not too
75591         large.
75592         Reported by Larry Jones.
75594         Fix fseeko on mingw.
75595         * lib/fseeko.c (rpl_fseeko) [_IOERR]: Reset EOF flag on successful
75596         seek.
75598         Beef up fseek tests.
75599         * tests/test-fseek.c (main): Also test eof handling.
75600         * tests/test-fseeko.c (main): Likewise.
75601         Reported by Larry Jones.
75603 2007-12-13  Larry Jones  <lawrence.jones@siemens.com>  (tiny change)
75605         Fix fseeko on BSD-based platforms.
75606         * lib/fseeko.c (rpl_fseeko) [__sferror]: Reset EOF flag on
75607         successful seek.
75609 2007-12-12  Eric Blake  <ebb9@byu.net>
75611         Allow circular dependency of separate libtests.a
75612         * gnulib-tool (func_emit_tests_Makefile_am): Add AM_LIBTOOLFLAGS
75613         when use_libtests.
75615 2007-12-11  Eric Blake  <ebb9@byu.net>
75617         Fix bug with -0.0L in previous patch.
75618         * lib/isnan.c (rpl_isnanl): Make robust to -0.0L and pad bits.
75619         * tests/test-isnan.c (main): Also test on zeroes.
75620         * tests/test-isnanf.c (main): Likewise.
75621         * tests/test-isnanl.h (main): Likewise.
75623         Detect pseudo-denormals on x86 even when cross-compiling.
75624         * lib/isnan.c (rpl_isnanl) [!KNOWN_EXPBIT0_LOCATION
75625         && USE_LONG_DOUBLE && x86]: Add one more check to filter out
75626         invalid bit patterns that happen to satisfy ==.
75628         Avoid link failures with separate libtests.a.
75629         * gnulib-tool (func_emit_tests_Makefile_am): Also list local_ldadd
75630         last, to satisfy circular dependencies.
75632 2007-12-11  Eric Blake  <ebb9@byu.net>
75633         and Bruno Haible  <bruno@clisp.org>
75635         Fix OpenBSD 4.0 <float.h> handling of long double.
75636         * m4/float_h.m4 (gl_FLOAT_H): Also claim OpenBSD is broken.
75637         * lib/float.in.h [__OpenBSD__]: Add fixes for OpenBSD.
75638         * doc/headers/float.texi (float.h): Document OpenBSD bug.
75640 2007-12-11  Jim Meyering  <meyering@redhat.com>
75642         * users.txt: Add libvirt.
75644         Support versions of autoconf prior to 2.59c.
75645         * gnulib-tool (func_emit_initmacro_done): Define m4_foreach_w
75646         if it is not already defined.
75648 2007-12-09  Bruno Haible  <bruno@clisp.org>
75650         Let 'gnulib-tool --import' collect sources needed for the tests in
75651         tests/ rather than in lib/.
75652         * gnulib-tool (func_emit_tests_Makefile_am): Accept use_libtests
75653         argument. If true, add rules to generate libtests.a, and put libtests.a
75654         into $(LDADD). Consider source files in subdirectories and set
75655         uses_subdirs.
75656         (func_emit_initmacro_start, func_emit_initmacro_end,
75657         func_emit_initmacro_done): Pass all arguments explicitly.
75658         (func_import): Determine two module lists main_modules,
75659         testsrelated_modules. Determine use_libtests. Determine two variables
75660         sed_transform_main_lib_file, sed_transform_testsrelated_lib_file
75661         instead of just sed_transform_lib_file. Determine two variables
75662         main_files and testsrelated_files. Compute 'files' as the union of
75663         both. Adjust sed_rewrite_old_files, sed_rewrite_new_files,
75664         func_add_or_update. In the generated gnulib-comp.m4, collect the
75665         object files for tests/ in different variables than those for lib/.
75666         Substitute LIBTESTS_LIBDEPS.
75667         (func_create_testdir): Combine the uses_subdirs results from
75668         func_emit_lib_Makefile_am and from func_emit_tests_Makefile_am.
75670 2007-12-09  Bruno Haible  <bruno@clisp.org>
75672         * gnulib-tool (func_emit_tests_Makefile_am): Expand references to
75673         the build-aux directory.
75675 2007-12-09  Bruno Haible  <bruno@clisp.org>
75677         * gnulib-tool (func_emit_tests_Makefile_am): Remove redundant code
75678         introduced on 2006-09-09.
75680 2007-12-07  Jim Meyering  <meyering@redhat.com>
75682         Let these macros work also with autoconf-2.59.
75683         * m4/getline.m4 (gl_FUNC_GETLINE): Require only autoconf-2.59.  2.60
75684         is not needed, since gnulib now permits use of AC_CHECK_DECLS_ONCE.
75685         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
75687 2007-12-06  Jim Meyering  <meyering@redhat.com>
75689         Avoid a configure-time syntax error in gl_FUNC_ACL.
75690         * m4/acl.m4 (gl_FUNC_ACL): Be careful to check for the acl_trivial
75691         function in each branch, before testing the cache variable.
75693 2007-12-04  Eric Blake  <ebb9@byu.net>
75695         Make scripts executable.
75696         * build-aux/config.guess: Add execute permissions.
75697         * build-aux/config.sub: Likewise.
75698         * build-aux/gendocs.sh: Likewise.
75700         Fix frexp on mingw.
75701         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Detect mingw bug when
75702         cross-compiling.
75703         * doc/functions/frexp.texi (frexp): Document the bug.
75705         Make cygwin fseeko check more reliable.
75706         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET) [__CYGWIN__]: Use cygwin
75707         version numbers, rather than unrelated feature check.
75708         * doc/functions/fseeko.texi (fseeko): Tweak failure report.
75709         * doc/functions/ftello.texi (ftello): Likewise.
75710         Reported by Bruno Haible.
75712         * m4/strerror.m4: Bump version number.
75714 2007-12-03  Bruno Haible  <bruno@clisp.org>
75716         * doc/functions/mprotect.texi: Mention the mingw problem.
75718 2007-12-03  Eric Blake  <ebb9@byu.net>
75720         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Ensure
75721         REPLACE_STRERROR is initialized before this macro.
75723 2007-12-03  Paul Eggert  <eggert@cs.ucla.edu>
75725         Add support for Solaris 10 ACLs.  Also, ACLs are Gnulib, not Autoconf.
75726         * modules/acl (configure.ac): Rename AC_FUNC_ACL to gl_FUNC_ACL.
75727         * m4/acl.m4 (gl_FUNC_ACL): Renamed from AC_FUNC_ACL.  On Solaris,
75728         put -lsec in even for programs other than 'ls'.  This fixes a problem
75729         for gettext reported by Bruno Haible in
75730         <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00007.html>.
75731         * lib/acl.c (copy_acl, qset_acl) [USE_ACL && defined ACL_NO_TRIVIAL]:
75732         Add support for Solaris 10.  This isn't efficient, but should get the
75733         job done for now.
75735 2007-12-03  James Youngman  <jay@gnu.org>
75737         * doc/regexprops-generic.texi: change "an close-group" to "a
75738         close-group" and "illegal" to "not allowed".
75740 2007-11-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
75742         * lib/unictype/pr_byname.c: Include unictype/pr_byname.h instead of
75743         pr_byname.h. Needed for the rare case when the maintainer has done
75744         "make maintainer-clean" in the source directory and then attempts a
75745         build outside the source directory.
75746         * lib/unictype/scripts.c: Include unictype/scripts_byname.h instead of
75747         scripts_byname.h.
75749 2007-12-02  Martin Lambers  <marlam@marlam.de>
75750             Bruno Haible  <bruno@clisp.org>
75752         * lib/getpagesize.h: Remove file.
75753         * lib/unistd.in.h: Include declaration of getpagesize here.
75754         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Renamed from gl_GETPAGESIZE.
75755         Invoke gl_UNISTD_H_DEFAULTS. Set HAVE_GETPAGESIZE, HAVE_OS_H,
75756         HAVE_SYS_PARAM_H.
75757         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETPAGESIZE,
75758         HAVE_GETPAGESIZE, HAVE_OS_H, HAVE_SYS_PARAM_H.
75759         * modules/getpagesize (Files): Remove lib/getpagesize.h.
75760         (Depends-on): Add unistd.
75761         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
75762         (Include): Use <unistd.h> instead of getpagesize.h.
75763         * modules/unistd (Makefile.am): Substitute also GNULIB_GETPAGESIZE,
75764         HAVE_GETPAGESIZE, HAVE_OS_H, HAVE_SYS_PARAM_H.
75765         * m4/pagealign_alloc.m4 (gl_PREREQ_PAGEALIGN_ALLOC): Remove
75766         gl_GETPAGESIZE invocation, already handled by module dependency.
75767         * lib/pagealign_alloc.c: Don't include getpagesize.h.
75769 2007-12-02  Bruno Haible  <bruno@clisp.org>
75771         * modules/strings-tests: New file.
75772         * tests/test-strings.c: New file.
75774         Move declarations of str{,n}casecmp from <string.h> to <strings.h>.
75775         * lib/strings.in.h: New file.
75776         * lib/string.in.h (strcasecmp, strncasecmp): Remove declarations.
75777         * m4/strings_h.m4: New file.
75778         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Remove initialization
75779         of HAVE_STRCASECMP, HAVE_DECL_STRNCASECMP.
75780         * modules/strings: New file.
75781         * modules/string (Makefile.am): Update.
75782         * modules/strcase (Include): Mention <strings.h>, not <string.h>.
75783         Reported by Karl Berry.
75785 2007-12-01  Eric Blake  <ebb9@byu.net>
75787         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET) [__CYGWIN__]: Rewrite to
75788         accommodate fix in cygwin 1.5.25.
75790 2007-12-01  Jim Meyering  <meyering@redhat.com>
75792         Fix a bug that inhibited much of the utf8-optimization in regcomp.c.
75793         * lib/regcomp.c (optimize_utf8): Fix a typo, s/idx/ctx_type/,
75794         that would inhibit utf8-optimization of a regexp containing line-
75795         or buffer-anchors, e.g., `^', `$'.
75797 2007-11-30  Bruno Haible  <bruno@clisp.org>
75799         * lib/lock.h (gl_recursive_lock_init) [PTHREAD &&
75800         PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: Call
75801         glthread_recursive_lock_init.
75802         * lib/lock.c (glthread_recursive_lock_init)
75803         [PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: New function.
75804         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
75806 2007-11-28  Paul Eggert  <eggert@cs.ucla.edu>
75808         New function qset_acl, like set_acl but with syscall semantics.
75809         * lib/acl.h (qset_acl): New decl.
75810         * lib/acl.c (qset_acl): New function.
75811         (set_acl): Use new function.  Use more-consistent diagnostics.
75813 2007-11-28  Jim Meyering  <meyering@redhat.com>
75815         * modules/physmem (License): Change from GPL to LGPLv2+.
75817 2007-11-26  Bruno Haible  <bruno@clisp.org>
75819         * lib/vasnprintf.c (decode_long_double): Don't abort if the
75820         'long double' type has excess precision.
75821         Reported by Jim Meyering in
75822         <http://lists.gnu.org/archive/html/bug-gnulib/2007-11/msg00120.html>.
75824 2007-11-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
75826         * doc/fdl.texi, doc/gpl-3.0.texi, doc/lgpl-3.0.texi:
75827         Sync from <http://gnu.org/licenses>.
75828         * modules/agpl-3.0, doc/agpl-3.0.texi: New module,
75829         with license text from same location.
75830         * doc/maintain.texi, doc/standards.texi:  Sync from
75831         <http://savannah.gnu.org/projects/gnustandards>.
75833 2007-11-22  Ondřej Vašík  <ovasik@redhat.com>
75834         and Jim Meyering  <meyering@redhat.com>
75836         Adjust getdate' grammar to accept a slightly more regular language.
75837         E.g., accept "YYYYMMDD +N days" as well as "YYYYMMDD N days".
75838         Before, the former was rejected.
75839         * lib/getdate.y (digits_to_date_time): New function, factored
75840         out of ...
75841         (number): ...here.  Just call digits_to_date_time.
75842         (hybrid): New non-terminal to handle an <unsigned number,
75843         signed relative offset> sequence consistently.
75845 2007-11-18  Jim Meyering  <meyering@redhat.com>
75847         Pull my changes from coreutils:
75848         bootstrap: fix typo to enable use of $gnulib_tool_option_extras.
75849         * build-aux/bootstrap (gnulib_tool_options): Add a space before the
75850         use of $gnulib_tool_option_extras, so that it's separated from the
75851         preceding argument.
75853         Fix bootstrap failure to handle files like lib/uniwidth/cjk.h.
75854         * build-aux/bootstrap (cp_mark_as_generated): Create any required
75855         parent destination directories before copying a file into place.
75857 2007-11-18  Sergey Poznyakoff  <gray@gnu.org.ua>
75859         bootstrap: work also with 4-argument variant of AC_INIT
75860         * build-aux/bootstrap (gnulib_extra_files): Adjust sed command.
75862 2007-11-16  Paul Eggert  <eggert@cs.ucla.edu>
75864         Port test-getaddrinfo to Solaris.
75865         Problem reported by Bruno Haible in
75866         <http://lists.gnu.org/archive/html/bug-gnulib/2007-03/msg00171.html>.
75867         * tests/test-getaddrinfo.c (simple): Add a comment asking for an
75868         explanation of setting 'hints'.
75869         Don't reject an implementation merely because it returns EAI_SERVICE.
75870         (EAI_SERVICE): Define to 0 if not defined.
75872 2007-11-15  Paul Eggert  <eggert@cs.ucla.edu>
75874         The license of gnu-make and posix-shell is now "GPLed build tool".
75875         * modules/gnu-make (License): Likewise.
75876         * modules/posix-shell (License): Likewise.
75878         New module posix-shell, for determining a POSIX shell
75879         or perhaps something that is close enough to a POSIX shell.
75880         * m4/posix-shell.m4: New file.
75881         * modules/posix-shell: New file.
75883         * MODULES.html.sh: Mention new module.
75885         New module gnu-make, for determining whether we're using GNU Make.
75886         * m4/gnu-make.m4: New file.
75887         * modules/gnu-make: New file.
75888         * MODULES.html.sh: Mention new module.
75890 2007-11-14  Jim Meyering  <meyering@redhat.com>
75892         Define a sometimes-link-required function using ARGMATCH_DIE_DECL.
75893         * tests/test-argmatch.c (ARGMATCH_DIE_DECL): When defined,
75894         use this macro to create a function _definition_.
75895         Remove useless "#undef ARGMATCH_DIE".
75897 2007-11-14  Bruno Haible  <bruno@clisp.org>
75899         * lib/config.charset: Update for OpenBSD 4.1.
75900         Reported and helped by Ben Pfaff <blp@cs.stanford.edu>.
75902 2007-11-12  Paul Eggert  <eggert@cs.ucla.edu>
75904         Document 64-bit #if problems in stdint.texi.
75905         * doc/headers/stdint.texi (stdint.h): Mention problems with
75906         64-bit-#if, and how to work around them.
75908         Don't insist on 'long long int' support in the preprocessor.  It
75909         breaks too many things.  For example, PRIdMAX still uses a 'long
75910         long int' format with the latest Sun compiler, even though
75911         HAVE_LONG_LONG_INT isn't defined due to that compiler's
75912         preprocessor problem.  This causes the latest coreutils to dump
75913         core on Solaris 10 sparc with the Sun C compiler.
75914         Instead, fix the 2007-10-16 problem in a different way, by evaluating
75915         the troublesome expressions at configure-time, not at #if-time.
75916         * m4/longlong.m4 (_AC_TYPE_LONG_LONG_SNIPPET): Don't test the
75917         preprocessor.
75918         * m4/inttypes.m4 (gl_INTTYPES_H): Move the #if checks into
75919         compile-time C checks, done at 'configure'-time.
75920         (gl_INTTYPES_CHECK_LONG_LONG_INT_CONDITION): New macro.
75921         * modules/inttypes (Makefile): Substitute the new symbols that
75922         gl_INTTYPES_H now generates.
75923         * lib/inttypes.in.h: Don't use constants wider than 'long' in #if.
75925 2007-11-12  Bruno Haible  <bruno@clisp.org>
75927         Tests for Unicode character classification functions.
75929         * modules/unictype/bidicategory-byname-tests: New file.
75930         * modules/unictype/bidicategory-name-tests: New file.
75931         * modules/unictype/bidicategory-of-tests: New file.
75932         * modules/unictype/bidicategory-test-tests: New file.
75933         * modules/unictype/block-list-tests: New file.
75934         * modules/unictype/block-of-tests: New file.
75935         * modules/unictype/block-test-tests: New file.
75936         * modules/unictype/category-C-tests: New file.
75937         * modules/unictype/category-Cc-tests: New file.
75938         * modules/unictype/category-Cf-tests: New file.
75939         * modules/unictype/category-Cn-tests: New file.
75940         * modules/unictype/category-Co-tests: New file.
75941         * modules/unictype/category-Cs-tests: New file.
75942         * modules/unictype/category-L-tests: New file.
75943         * modules/unictype/category-Ll-tests: New file.
75944         * modules/unictype/category-Lm-tests: New file.
75945         * modules/unictype/category-Lo-tests: New file.
75946         * modules/unictype/category-Lt-tests: New file.
75947         * modules/unictype/category-Lu-tests: New file.
75948         * modules/unictype/category-M-tests: New file.
75949         * modules/unictype/category-Mc-tests: New file.
75950         * modules/unictype/category-Me-tests: New file.
75951         * modules/unictype/category-Mn-tests: New file.
75952         * modules/unictype/category-N-tests: New file.
75953         * modules/unictype/category-Nd-tests: New file.
75954         * modules/unictype/category-Nl-tests: New file.
75955         * modules/unictype/category-No-tests: New file.
75956         * modules/unictype/category-P-tests: New file.
75957         * modules/unictype/category-Pc-tests: New file.
75958         * modules/unictype/category-Pd-tests: New file.
75959         * modules/unictype/category-Pe-tests: New file.
75960         * modules/unictype/category-Pf-tests: New file.
75961         * modules/unictype/category-Pi-tests: New file.
75962         * modules/unictype/category-Po-tests: New file.
75963         * modules/unictype/category-Ps-tests: New file.
75964         * modules/unictype/category-S-tests: New file.
75965         * modules/unictype/category-Sc-tests: New file.
75966         * modules/unictype/category-Sk-tests: New file.
75967         * modules/unictype/category-Sm-tests: New file.
75968         * modules/unictype/category-So-tests: New file.
75969         * modules/unictype/category-Z-tests: New file.
75970         * modules/unictype/category-Zl-tests: New file.
75971         * modules/unictype/category-Zp-tests: New file.
75972         * modules/unictype/category-Zs-tests: New file.
75973         * modules/unictype/category-and-not-tests: New file.
75974         * modules/unictype/category-and-tests: New file.
75975         * modules/unictype/category-byname-tests: New file.
75976         * modules/unictype/category-name-tests: New file.
75977         * modules/unictype/category-none-tests: New file.
75978         * modules/unictype/category-of-tests: New file.
75979         * modules/unictype/category-or-tests: New file.
75980         * modules/unictype/category-test-withtable-tests: New file.
75981         * modules/unictype/combining-class-tests: New file.
75982         * modules/unictype/ctype-alnum-tests: New file.
75983         * modules/unictype/ctype-alpha-tests: New file.
75984         * modules/unictype/ctype-blank-tests: New file.
75985         * modules/unictype/ctype-cntrl-tests: New file.
75986         * modules/unictype/ctype-digit-tests: New file.
75987         * modules/unictype/ctype-graph-tests: New file.
75988         * modules/unictype/ctype-lower-tests: New file.
75989         * modules/unictype/ctype-print-tests: New file.
75990         * modules/unictype/ctype-punct-tests: New file.
75991         * modules/unictype/ctype-space-tests: New file.
75992         * modules/unictype/ctype-upper-tests: New file.
75993         * modules/unictype/ctype-xdigit-tests: New file.
75994         * modules/unictype/decimal-digit-tests: New file.
75995         * modules/unictype/digit-tests: New file.
75996         * modules/unictype/mirror-tests: New file.
75997         * modules/unictype/numeric-tests: New file.
75998         * modules/unictype/property-alphabetic-tests: New file.
75999         * modules/unictype/property-ascii-hex-digit-tests: New file.
76000         * modules/unictype/property-bidi-arabic-digit-tests: New file.
76001         * modules/unictype/property-bidi-arabic-right-to-left-tests: New file.
76002         * modules/unictype/property-bidi-block-separator-tests: New file.
76003         * modules/unictype/property-bidi-boundary-neutral-tests: New file.
76004         * modules/unictype/property-bidi-common-separator-tests: New file.
76005         * modules/unictype/property-bidi-control-tests: New file.
76006         * modules/unictype/property-bidi-embedding-or-override-tests: New file.
76007         * modules/unictype/property-bidi-eur-num-separator-tests: New file.
76008         * modules/unictype/property-bidi-eur-num-terminator-tests: New file.
76009         * modules/unictype/property-bidi-european-digit-tests: New file.
76010         * modules/unictype/property-bidi-hebrew-right-to-left-tests: New file.
76011         * modules/unictype/property-bidi-left-to-right-tests: New file.
76012         * modules/unictype/property-bidi-non-spacing-mark-tests: New file.
76013         * modules/unictype/property-bidi-other-neutral-tests: New file.
76014         * modules/unictype/property-bidi-pdf-tests: New file.
76015         * modules/unictype/property-bidi-segment-separator-tests: New file.
76016         * modules/unictype/property-bidi-whitespace-tests: New file.
76017         * modules/unictype/property-byname-tests: New file.
76018         * modules/unictype/property-combining-tests: New file.
76019         * modules/unictype/property-composite-tests: New file.
76020         * modules/unictype/property-currency-symbol-tests: New file.
76021         * modules/unictype/property-dash-tests: New file.
76022         * modules/unictype/property-decimal-digit-tests: New file.
76023         * modules/unictype/property-default-ignorable-code-point-tests: New file.
76024         * modules/unictype/property-deprecated-tests: New file.
76025         * modules/unictype/property-diacritic-tests: New file.
76026         * modules/unictype/property-extender-tests: New file.
76027         * modules/unictype/property-format-control-tests: New file.
76028         * modules/unictype/property-grapheme-base-tests: New file.
76029         * modules/unictype/property-grapheme-extend-tests: New file.
76030         * modules/unictype/property-grapheme-link-tests: New file.
76031         * modules/unictype/property-hex-digit-tests: New file.
76032         * modules/unictype/property-hyphen-tests: New file.
76033         * modules/unictype/property-id-continue-tests: New file.
76034         * modules/unictype/property-id-start-tests: New file.
76035         * modules/unictype/property-ideographic-tests: New file.
76036         * modules/unictype/property-ids-binary-operator-tests: New file.
76037         * modules/unictype/property-ids-trinary-operator-tests: New file.
76038         * modules/unictype/property-ignorable-control-tests: New file.
76039         * modules/unictype/property-iso-control-tests: New file.
76040         * modules/unictype/property-join-control-tests: New file.
76041         * modules/unictype/property-left-of-pair-tests: New file.
76042         * modules/unictype/property-line-separator-tests: New file.
76043         * modules/unictype/property-logical-order-exception-tests: New file.
76044         * modules/unictype/property-lowercase-tests: New file.
76045         * modules/unictype/property-math-tests: New file.
76046         * modules/unictype/property-non-break-tests: New file.
76047         * modules/unictype/property-not-a-character-tests: New file.
76048         * modules/unictype/property-numeric-tests: New file.
76049         * modules/unictype/property-other-alphabetic-tests: New file.
76050         * modules/unictype/property-other-default-ignorable-code-point-tests: New file.
76051         * modules/unictype/property-other-grapheme-extend-tests: New file.
76052         * modules/unictype/property-other-id-continue-tests: New file.
76053         * modules/unictype/property-other-id-start-tests: New file.
76054         * modules/unictype/property-other-lowercase-tests: New file.
76055         * modules/unictype/property-other-math-tests: New file.
76056         * modules/unictype/property-other-uppercase-tests: New file.
76057         * modules/unictype/property-paired-punctuation-tests: New file.
76058         * modules/unictype/property-paragraph-separator-tests: New file.
76059         * modules/unictype/property-pattern-syntax-tests: New file.
76060         * modules/unictype/property-pattern-white-space-tests: New file.
76061         * modules/unictype/property-private-use-tests: New file.
76062         * modules/unictype/property-punctuation-tests: New file.
76063         * modules/unictype/property-quotation-mark-tests: New file.
76064         * modules/unictype/property-radical-tests: New file.
76065         * modules/unictype/property-sentence-terminal-tests: New file.
76066         * modules/unictype/property-soft-dotted-tests: New file.
76067         * modules/unictype/property-space-tests: New file.
76068         * modules/unictype/property-terminal-punctuation-tests: New file.
76069         * modules/unictype/property-test-tests: New file.
76070         * modules/unictype/property-titlecase-tests: New file.
76071         * modules/unictype/property-unassigned-code-value-tests: New file.
76072         * modules/unictype/property-unified-ideograph-tests: New file.
76073         * modules/unictype/property-uppercase-tests: New file.
76074         * modules/unictype/property-variation-selector-tests: New file.
76075         * modules/unictype/property-white-space-tests: New file.
76076         * modules/unictype/property-xid-continue-tests: New file.
76077         * modules/unictype/property-xid-start-tests: New file.
76078         * modules/unictype/property-zero-width-tests: New file.
76079         * modules/unictype/scripts-tests: New file.
76080         * modules/unictype/syntax-c-ident-tests: New file.
76081         * modules/unictype/syntax-c-whitespace-tests: New file.
76082         * modules/unictype/syntax-java-ident-tests: New file.
76083         * modules/unictype/syntax-java-whitespace-tests: New file.
76084         * tests/unictype/test-bidi_byname.c: New file.
76085         * tests/unictype/test-bidi_name.c: New file.
76086         * tests/unictype/test-bidi_of.c: New file.
76087         * tests/unictype/test-bidi_test.c: New file.
76088         * tests/unictype/test-block_list.c: New file.
76089         * tests/unictype/test-block_of.c: New file.
76090         * tests/unictype/test-block_test.c: New file.
76091         * tests/unictype/test-categ_and.c: New file.
76092         * tests/unictype/test-categ_and_not.c: New file.
76093         * tests/unictype/test-categ_byname.c: New file.
76094         * tests/unictype/test-categ_name.c: New file.
76095         * tests/unictype/test-categ_none.c: New file.
76096         * tests/unictype/test-categ_of.c: New file.
76097         * tests/unictype/test-categ_or.c: New file.
76098         * tests/unictype/test-categ_test_withtable.c: New file.
76099         * tests/unictype/test-combining.c: New file.
76100         * tests/unictype/test-decdigit.c: New file.
76101         * tests/unictype/test-digit.c: New file.
76102         * tests/unictype/test-mirror.c: New file.
76103         * tests/unictype/test-numeric.c: New file.
76104         * tests/unictype/test-pr_byname.c: New file.
76105         * tests/unictype/test-pr_test.c: New file.
76106         * tests/unictype/test-predicate-part1.h: New file.
76107         * tests/unictype/test-predicate-part2.h: New file.
76108         * tests/unictype/test-scripts.c: New file.
76109         * tests/unictype/test-sy_c_ident.c: New file.
76110         * tests/unictype/test-sy_java_ident.c: New file.
76112         * tests/unictype/test-categ_C.c: New file, generated by gen-ctype.c
76113         for Unicode 5.0.0.
76114         * tests/unictype/test-categ_Cc.c: Likewise.
76115         * tests/unictype/test-categ_Cf.c: Likewise.
76116         * tests/unictype/test-categ_Cn.c: Likewise.
76117         * tests/unictype/test-categ_Co.c: Likewise.
76118         * tests/unictype/test-categ_Cs.c: Likewise.
76119         * tests/unictype/test-categ_L.c: Likewise.
76120         * tests/unictype/test-categ_Ll.c: Likewise.
76121         * tests/unictype/test-categ_Lm.c: Likewise.
76122         * tests/unictype/test-categ_Lo.c: Likewise.
76123         * tests/unictype/test-categ_Lt.c: Likewise.
76124         * tests/unictype/test-categ_Lu.c: Likewise.
76125         * tests/unictype/test-categ_M.c: Likewise.
76126         * tests/unictype/test-categ_Mc.c: Likewise.
76127         * tests/unictype/test-categ_Me.c: Likewise.
76128         * tests/unictype/test-categ_Mn.c: Likewise.
76129         * tests/unictype/test-categ_N.c: Likewise.
76130         * tests/unictype/test-categ_Nd.c: Likewise.
76131         * tests/unictype/test-categ_Nl.c: Likewise.
76132         * tests/unictype/test-categ_No.c: Likewise.
76133         * tests/unictype/test-categ_P.c: Likewise.
76134         * tests/unictype/test-categ_Pc.c: Likewise.
76135         * tests/unictype/test-categ_Pd.c: Likewise.
76136         * tests/unictype/test-categ_Pe.c: Likewise.
76137         * tests/unictype/test-categ_Pf.c: Likewise.
76138         * tests/unictype/test-categ_Pi.c: Likewise.
76139         * tests/unictype/test-categ_Po.c: Likewise.
76140         * tests/unictype/test-categ_Ps.c: Likewise.
76141         * tests/unictype/test-categ_S.c: Likewise.
76142         * tests/unictype/test-categ_Sc.c: Likewise.
76143         * tests/unictype/test-categ_Sk.c: Likewise.
76144         * tests/unictype/test-categ_Sm.c: Likewise.
76145         * tests/unictype/test-categ_So.c: Likewise.
76146         * tests/unictype/test-categ_Z.c: Likewise.
76147         * tests/unictype/test-categ_Zl.c: Likewise.
76148         * tests/unictype/test-categ_Zp.c: Likewise.
76149         * tests/unictype/test-categ_Zs.c: Likewise.
76150         * tests/unictype/test-ctype_alnum.c: Likewise.
76151         * tests/unictype/test-ctype_alpha.c: Likewise.
76152         * tests/unictype/test-ctype_blank.c: Likewise.
76153         * tests/unictype/test-ctype_cntrl.c: Likewise.
76154         * tests/unictype/test-ctype_digit.c: Likewise.
76155         * tests/unictype/test-ctype_graph.c: Likewise.
76156         * tests/unictype/test-ctype_lower.c: Likewise.
76157         * tests/unictype/test-ctype_print.c: Likewise.
76158         * tests/unictype/test-ctype_punct.c: Likewise.
76159         * tests/unictype/test-ctype_space.c: Likewise.
76160         * tests/unictype/test-ctype_upper.c: Likewise.
76161         * tests/unictype/test-ctype_xdigit.c: Likewise.
76162         * tests/unictype/test-decdigit.h: Likewise.
76163         * tests/unictype/test-digit.h: Likewise.
76164         * tests/unictype/test-numeric.h: Likewise.
76165         * tests/unictype/test-pr_alphabetic.c: Likewise.
76166         * tests/unictype/test-pr_ascii_hex_digit.c: Likewise.
76167         * tests/unictype/test-pr_bidi_arabic_digit.c: Likewise.
76168         * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Likewise.
76169         * tests/unictype/test-pr_bidi_block_separator.c: Likewise.
76170         * tests/unictype/test-pr_bidi_boundary_neutral.c: Likewise.
76171         * tests/unictype/test-pr_bidi_common_separator.c: Likewise.
76172         * tests/unictype/test-pr_bidi_control.c: Likewise.
76173         * tests/unictype/test-pr_bidi_embedding_or_override.c: Likewise.
76174         * tests/unictype/test-pr_bidi_eur_num_separator.c: Likewise.
76175         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Likewise.
76176         * tests/unictype/test-pr_bidi_european_digit.c: Likewise.
76177         * tests/unictype/test-pr_bidi_hebrew_right_to_left.c: Likewise.
76178         * tests/unictype/test-pr_bidi_left_to_right.c: Likewise.
76179         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Likewise.
76180         * tests/unictype/test-pr_bidi_other_neutral.c: Likewise.
76181         * tests/unictype/test-pr_bidi_pdf.c: Likewise.
76182         * tests/unictype/test-pr_bidi_segment_separator.c: Likewise.
76183         * tests/unictype/test-pr_bidi_whitespace.c: Likewise.
76184         * tests/unictype/test-pr_combining.c: Likewise.
76185         * tests/unictype/test-pr_composite.c: Likewise.
76186         * tests/unictype/test-pr_currency_symbol.c: Likewise.
76187         * tests/unictype/test-pr_dash.c: Likewise.
76188         * tests/unictype/test-pr_decimal_digit.c: Likewise.
76189         * tests/unictype/test-pr_default_ignorable_code_point.c: Likewise.
76190         * tests/unictype/test-pr_deprecated.c: Likewise.
76191         * tests/unictype/test-pr_diacritic.c: Likewise.
76192         * tests/unictype/test-pr_extender.c: Likewise.
76193         * tests/unictype/test-pr_format_control.c: Likewise.
76194         * tests/unictype/test-pr_grapheme_base.c: Likewise.
76195         * tests/unictype/test-pr_grapheme_extend.c: Likewise.
76196         * tests/unictype/test-pr_grapheme_link.c: Likewise.
76197         * tests/unictype/test-pr_hex_digit.c: Likewise.
76198         * tests/unictype/test-pr_hyphen.c: Likewise.
76199         * tests/unictype/test-pr_id_continue.c: Likewise.
76200         * tests/unictype/test-pr_id_start.c: Likewise.
76201         * tests/unictype/test-pr_ideographic.c: Likewise.
76202         * tests/unictype/test-pr_ids_binary_operator.c: Likewise.
76203         * tests/unictype/test-pr_ids_trinary_operator.c: Likewise.
76204         * tests/unictype/test-pr_ignorable_control.c: Likewise.
76205         * tests/unictype/test-pr_iso_control.c: Likewise.
76206         * tests/unictype/test-pr_join_control.c: Likewise.
76207         * tests/unictype/test-pr_left_of_pair.c: Likewise.
76208         * tests/unictype/test-pr_line_separator.c: Likewise.
76209         * tests/unictype/test-pr_logical_order_exception.c: Likewise.
76210         * tests/unictype/test-pr_lowercase.c: Likewise.
76211         * tests/unictype/test-pr_math.c: Likewise.
76212         * tests/unictype/test-pr_non_break.c: Likewise.
76213         * tests/unictype/test-pr_not_a_character.c: Likewise.
76214         * tests/unictype/test-pr_numeric.c: Likewise.
76215         * tests/unictype/test-pr_other_alphabetic.c: Likewise.
76216         * tests/unictype/test-pr_other_default_ignorable_code_point.c: Likewise.
76217         * tests/unictype/test-pr_other_grapheme_extend.c: Likewise.
76218         * tests/unictype/test-pr_other_id_continue.c: Likewise.
76219         * tests/unictype/test-pr_other_id_start.c: Likewise.
76220         * tests/unictype/test-pr_other_lowercase.c: Likewise.
76221         * tests/unictype/test-pr_other_math.c: Likewise.
76222         * tests/unictype/test-pr_other_uppercase.c: Likewise.
76223         * tests/unictype/test-pr_paired_punctuation.c: Likewise.
76224         * tests/unictype/test-pr_paragraph_separator.c: Likewise.
76225         * tests/unictype/test-pr_pattern_syntax.c: Likewise.
76226         * tests/unictype/test-pr_pattern_white_space.c: Likewise.
76227         * tests/unictype/test-pr_private_use.c: Likewise.
76228         * tests/unictype/test-pr_punctuation.c: Likewise.
76229         * tests/unictype/test-pr_quotation_mark.c: Likewise.
76230         * tests/unictype/test-pr_radical.c: Likewise.
76231         * tests/unictype/test-pr_sentence_terminal.c: Likewise.
76232         * tests/unictype/test-pr_soft_dotted.c: Likewise.
76233         * tests/unictype/test-pr_space.c: Likewise.
76234         * tests/unictype/test-pr_terminal_punctuation.c: Likewise.
76235         * tests/unictype/test-pr_titlecase.c: Likewise.
76236         * tests/unictype/test-pr_unassigned_code_value.c: Likewise.
76237         * tests/unictype/test-pr_unified_ideograph.c: Likewise.
76238         * tests/unictype/test-pr_uppercase.c: Likewise.
76239         * tests/unictype/test-pr_variation_selector.c: Likewise.
76240         * tests/unictype/test-pr_white_space.c: Likewise.
76241         * tests/unictype/test-pr_xid_continue.c: Likewise.
76242         * tests/unictype/test-pr_xid_start.c: Likewise.
76243         * tests/unictype/test-pr_zero_width.c: Likewise.
76244         * tests/unictype/test-sy_c_whitespace.c: Likewise.
76245         * tests/unictype/test-sy_java_whitespace.c: Likewise.
76247 2007-11-12  Bruno Haible  <bruno@clisp.org>
76249         Unicode character classification functions.
76250         * lib/unictype.h: New file.
76251         * modules/unictype/base: New file.
76252         * modules/unictype/category-L: New file.
76253         * modules/unictype/category-Lu: New file.
76254         * modules/unictype/category-Ll: New file.
76255         * modules/unictype/category-Lt: New file.
76256         * modules/unictype/category-Lm: New file.
76257         * modules/unictype/category-Lo: New file.
76258         * modules/unictype/category-M: New file.
76259         * modules/unictype/category-Mn: New file.
76260         * modules/unictype/category-Mc: New file.
76261         * modules/unictype/category-Me: New file.
76262         * modules/unictype/category-N: New file.
76263         * modules/unictype/category-Nd: New file.
76264         * modules/unictype/category-Nl: New file.
76265         * modules/unictype/category-No: New file.
76266         * modules/unictype/category-P: New file.
76267         * modules/unictype/category-Pc: New file.
76268         * modules/unictype/category-Pd: New file.
76269         * modules/unictype/category-Ps: New file.
76270         * modules/unictype/category-Pe: New file.
76271         * modules/unictype/category-Pi: New file.
76272         * modules/unictype/category-Pf: New file.
76273         * modules/unictype/category-Po: New file.
76274         * modules/unictype/category-S: New file.
76275         * modules/unictype/category-Sm: New file.
76276         * modules/unictype/category-Sc: New file.
76277         * modules/unictype/category-Sk: New file.
76278         * modules/unictype/category-So: New file.
76279         * modules/unictype/category-Z: New file.
76280         * modules/unictype/category-Zs: New file.
76281         * modules/unictype/category-Zl: New file.
76282         * modules/unictype/category-Zp: New file.
76283         * modules/unictype/category-C: New file.
76284         * modules/unictype/category-Cc: New file.
76285         * modules/unictype/category-Cf: New file.
76286         * modules/unictype/category-Cs: New file.
76287         * modules/unictype/category-Co: New file.
76288         * modules/unictype/category-Cn: New file.
76289         * modules/unictype/category-or: New file.
76290         * modules/unictype/category-of: New file.
76291         * modules/unictype/category-test: New file.
76292         * modules/unictype/category-test-withtable: New file.
76293         * modules/unictype/category-byname: New file.
76294         * modules/unictype/category-none: New file.
76295         * modules/unictype/category-and: New file.
76296         * modules/unictype/category-and-not: New file.
76297         * modules/unictype/category-name: New file.
76298         * modules/unictype/combining-class: New file.
76299         * modules/unictype/category-all: New file.
76300         * modules/unictype/bidicategory-all: New file.
76301         * modules/unictype/bidicategory-byname: New file.
76302         * modules/unictype/bidicategory-name: New file.
76303         * modules/unictype/bidicategory-of: New file.
76304         * modules/unictype/bidicategory-test: New file.
76305         * modules/unictype/decimal-digit: New file.
76306         * modules/unictype/digit: New file.
76307         * modules/unictype/numeric: New file.
76308         * modules/unictype/mirror: New file.
76309         * modules/unictype/property-white-space: New file.
76310         * modules/unictype/property-alphabetic: New file.
76311         * modules/unictype/property-other-alphabetic: New file.
76312         * modules/unictype/property-not-a-character: New file.
76313         * modules/unictype/property-default-ignorable-code-point: New file.
76314         * modules/unictype/property-other-default-ignorable-code-point: New
76315         file.
76316         * modules/unictype/property-deprecated: New file.
76317         * modules/unictype/property-logical-order-exception: New file.
76318         * modules/unictype/property-variation-selector: New file.
76319         * modules/unictype/property-private-use: New file.
76320         * modules/unictype/property-unassigned-code-value: New file.
76321         * modules/unictype/property-uppercase: New file.
76322         * modules/unictype/property-other-uppercase: New file.
76323         * modules/unictype/property-lowercase: New file.
76324         * modules/unictype/property-other-lowercase: New file.
76325         * modules/unictype/property-titlecase: New file.
76326         * modules/unictype/property-soft-dotted: New file.
76327         * modules/unictype/property-id-start: New file.
76328         * modules/unictype/property-other-id-start: New file.
76329         * modules/unictype/property-id-continue: New file.
76330         * modules/unictype/property-other-id-continue: New file.
76331         * modules/unictype/property-xid-start: New file.
76332         * modules/unictype/property-xid-continue: New file.
76333         * modules/unictype/property-pattern-white-space: New file.
76334         * modules/unictype/property-pattern-syntax: New file.
76335         * modules/unictype/property-join-control: New file.
76336         * modules/unictype/property-grapheme-base: New file.
76337         * modules/unictype/property-grapheme-extend: New file.
76338         * modules/unictype/property-other-grapheme-extend: New file.
76339         * modules/unictype/property-grapheme-link: New file.
76340         * modules/unictype/property-bidi-control: New file.
76341         * modules/unictype/property-bidi-left-to-right: New file.
76342         * modules/unictype/property-bidi-hebrew-right-to-left: New file.
76343         * modules/unictype/property-bidi-arabic-right-to-left: New file.
76344         * modules/unictype/property-bidi-european-digit: New file.
76345         * modules/unictype/property-bidi-eur-num-separator: New file.
76346         * modules/unictype/property-bidi-eur-num-terminator: New file.
76347         * modules/unictype/property-bidi-arabic-digit: New file.
76348         * modules/unictype/property-bidi-common-separator: New file.
76349         * modules/unictype/property-bidi-block-separator: New file.
76350         * modules/unictype/property-bidi-segment-separator: New file.
76351         * modules/unictype/property-bidi-whitespace: New file.
76352         * modules/unictype/property-bidi-non-spacing-mark: New file.
76353         * modules/unictype/property-bidi-boundary-neutral: New file.
76354         * modules/unictype/property-bidi-pdf: New file.
76355         * modules/unictype/property-bidi-embedding-or-override: New file.
76356         * modules/unictype/property-bidi-other-neutral: New file.
76357         * modules/unictype/property-hex-digit: New file.
76358         * modules/unictype/property-ascii-hex-digit: New file.
76359         * modules/unictype/property-ideographic: New file.
76360         * modules/unictype/property-unified-ideograph: New file.
76361         * modules/unictype/property-radical: New file.
76362         * modules/unictype/property-ids-binary-operator: New file.
76363         * modules/unictype/property-ids-trinary-operator: New file.
76364         * modules/unictype/property-zero-width: New file.
76365         * modules/unictype/property-space: New file.
76366         * modules/unictype/property-non-break: New file.
76367         * modules/unictype/property-iso-control: New file.
76368         * modules/unictype/property-format-control: New file.
76369         * modules/unictype/property-dash: New file.
76370         * modules/unictype/property-hyphen: New file.
76371         * modules/unictype/property-punctuation: New file.
76372         * modules/unictype/property-line-separator: New file.
76373         * modules/unictype/property-paragraph-separator: New file.
76374         * modules/unictype/property-quotation-mark: New file.
76375         * modules/unictype/property-sentence-terminal: New file.
76376         * modules/unictype/property-terminal-punctuation: New file.
76377         * modules/unictype/property-currency-symbol: New file.
76378         * modules/unictype/property-math: New file.
76379         * modules/unictype/property-other-math: New file.
76380         * modules/unictype/property-paired-punctuation: New file.
76381         * modules/unictype/property-left-of-pair: New file.
76382         * modules/unictype/property-combining: New file.
76383         * modules/unictype/property-composite: New file.
76384         * modules/unictype/property-decimal-digit: New file.
76385         * modules/unictype/property-numeric: New file.
76386         * modules/unictype/property-diacritic: New file.
76387         * modules/unictype/property-extender: New file.
76388         * modules/unictype/property-ignorable-control: New file.
76389         * modules/unictype/property-test: New file.
76390         * modules/unictype/property-byname: New file.
76391         * modules/unictype/property-all: New file.
76392         * modules/unictype/scripts: New file.
76393         * modules/unictype/scripts-all: New file.
76394         * modules/unictype/block-of: New file.
76395         * modules/unictype/block-test: New file.
76396         * modules/unictype/block-list: New file.
76397         * modules/unictype/block-all: New file.
76398         * modules/unictype/syntax-c-whitespace: New file.
76399         * modules/unictype/syntax-java-whitespace: New file.
76400         * modules/unictype/syntax-c-ident: New file.
76401         * modules/unictype/syntax-java-ident: New file.
76402         * modules/unictype/ctype-alnum: New file.
76403         * modules/unictype/ctype-alpha: New file.
76404         * modules/unictype/ctype-cntrl: New file.
76405         * modules/unictype/ctype-digit: New file.
76406         * modules/unictype/ctype-graph: New file.
76407         * modules/unictype/ctype-lower: New file.
76408         * modules/unictype/ctype-print: New file.
76409         * modules/unictype/ctype-punct: New file.
76410         * modules/unictype/ctype-space: New file.
76411         * modules/unictype/ctype-upper: New file.
76412         * modules/unictype/ctype-xdigit: New file.
76413         * modules/unictype/ctype-blank: New file.
76414         * lib/unictype/bidi_byname.c: New file.
76415         * lib/unictype/bidi_name.c: New file.
76416         * lib/unictype/bidi_of.c: New file.
76417         * lib/unictype/bidi_test.c: New file.
76418         * lib/unictype/bitmap.h: New file.
76419         * lib/unictype/block_test.c: New file.
76420         * lib/unictype/blocks.c: New file.
76421         * lib/unictype/categ_C.c: New file.
76422         * lib/unictype/categ_Cc.c: New file.
76423         * lib/unictype/categ_Cf.c: New file.
76424         * lib/unictype/categ_Cn.c: New file.
76425         * lib/unictype/categ_Co.c: New file.
76426         * lib/unictype/categ_Cs.c: New file.
76427         * lib/unictype/categ_L.c: New file.
76428         * lib/unictype/categ_Ll.c: New file.
76429         * lib/unictype/categ_Lm.c: New file.
76430         * lib/unictype/categ_Lo.c: New file.
76431         * lib/unictype/categ_Lt.c: New file.
76432         * lib/unictype/categ_Lu.c: New file.
76433         * lib/unictype/categ_M.c: New file.
76434         * lib/unictype/categ_Mc.c: New file.
76435         * lib/unictype/categ_Me.c: New file.
76436         * lib/unictype/categ_Mn.c: New file.
76437         * lib/unictype/categ_N.c: New file.
76438         * lib/unictype/categ_Nd.c: New file.
76439         * lib/unictype/categ_Nl.c: New file.
76440         * lib/unictype/categ_No.c: New file.
76441         * lib/unictype/categ_P.c: New file.
76442         * lib/unictype/categ_Pc.c: New file.
76443         * lib/unictype/categ_Pd.c: New file.
76444         * lib/unictype/categ_Pe.c: New file.
76445         * lib/unictype/categ_Pf.c: New file.
76446         * lib/unictype/categ_Pi.c: New file.
76447         * lib/unictype/categ_Po.c: New file.
76448         * lib/unictype/categ_Ps.c: New file.
76449         * lib/unictype/categ_S.c: New file.
76450         * lib/unictype/categ_Sc.c: New file.
76451         * lib/unictype/categ_Sk.c: New file.
76452         * lib/unictype/categ_Sm.c: New file.
76453         * lib/unictype/categ_So.c: New file.
76454         * lib/unictype/categ_Z.c: New file.
76455         * lib/unictype/categ_Zl.c: New file.
76456         * lib/unictype/categ_Zp.c: New file.
76457         * lib/unictype/categ_Zs.c: New file.
76458         * lib/unictype/categ_and.c: New file.
76459         * lib/unictype/categ_and_not.c: New file.
76460         * lib/unictype/categ_byname.c: New file.
76461         * lib/unictype/categ_name.c: New file.
76462         * lib/unictype/categ_none.c: New file.
76463         * lib/unictype/categ_of.c: New file.
76464         * lib/unictype/categ_or.c: New file.
76465         * lib/unictype/categ_test.c: New file.
76466         * lib/unictype/combining.c: New file.
76467         * lib/unictype/ctype_alnum.c: New file.
76468         * lib/unictype/ctype_alpha.c: New file.
76469         * lib/unictype/ctype_blank.c: New file.
76470         * lib/unictype/ctype_cntrl.c: New file.
76471         * lib/unictype/ctype_digit.c: New file.
76472         * lib/unictype/ctype_graph.c: New file.
76473         * lib/unictype/ctype_lower.c: New file.
76474         * lib/unictype/ctype_print.c: New file.
76475         * lib/unictype/ctype_punct.c: New file.
76476         * lib/unictype/ctype_space.c: New file.
76477         * lib/unictype/ctype_upper.c: New file.
76478         * lib/unictype/ctype_xdigit.c: New file.
76479         * lib/unictype/decdigit.c: New file.
76480         * lib/unictype/digit.c: New file.
76481         * lib/unictype/identsyntaxmap.h: New file.
76482         * lib/unictype/mirror.c: New file.
76483         * lib/unictype/numeric.c: New file.
76484         * lib/unictype/pr_alphabetic.c: New file.
76485         * lib/unictype/pr_ascii_hex_digit.c: New file.
76486         * lib/unictype/pr_bidi_arabic_digit.c: New file.
76487         * lib/unictype/pr_bidi_arabic_right_to_left.c: New file.
76488         * lib/unictype/pr_bidi_block_separator.c: New file.
76489         * lib/unictype/pr_bidi_boundary_neutral.c: New file.
76490         * lib/unictype/pr_bidi_common_separator.c: New file.
76491         * lib/unictype/pr_bidi_control.c: New file.
76492         * lib/unictype/pr_bidi_embedding_or_override.c: New file.
76493         * lib/unictype/pr_bidi_eur_num_separator.c: New file.
76494         * lib/unictype/pr_bidi_eur_num_terminator.c: New file.
76495         * lib/unictype/pr_bidi_european_digit.c: New file.
76496         * lib/unictype/pr_bidi_hebrew_right_to_left.c: New file.
76497         * lib/unictype/pr_bidi_left_to_right.c: New file.
76498         * lib/unictype/pr_bidi_non_spacing_mark.c: New file.
76499         * lib/unictype/pr_bidi_other_neutral.c: New file.
76500         * lib/unictype/pr_bidi_pdf.c: New file.
76501         * lib/unictype/pr_bidi_segment_separator.c: New file.
76502         * lib/unictype/pr_bidi_whitespace.c: New file.
76503         * lib/unictype/pr_byname.c: New file.
76504         * lib/unictype/pr_byname.gperf: New file.
76505         * lib/unictype/pr_combining.c: New file.
76506         * lib/unictype/pr_composite.c: New file.
76507         * lib/unictype/pr_currency_symbol.c: New file.
76508         * lib/unictype/pr_dash.c: New file.
76509         * lib/unictype/pr_decimal_digit.c: New file.
76510         * lib/unictype/pr_default_ignorable_code_point.c: New file.
76511         * lib/unictype/pr_deprecated.c: New file.
76512         * lib/unictype/pr_diacritic.c: New file.
76513         * lib/unictype/pr_extender.c: New file.
76514         * lib/unictype/pr_format_control.c: New file.
76515         * lib/unictype/pr_grapheme_base.c: New file.
76516         * lib/unictype/pr_grapheme_extend.c: New file.
76517         * lib/unictype/pr_grapheme_link.c: New file.
76518         * lib/unictype/pr_hex_digit.c: New file.
76519         * lib/unictype/pr_hyphen.c: New file.
76520         * lib/unictype/pr_id_continue.c: New file.
76521         * lib/unictype/pr_id_start.c: New file.
76522         * lib/unictype/pr_ideographic.c: New file.
76523         * lib/unictype/pr_ids_binary_operator.c: New file.
76524         * lib/unictype/pr_ids_trinary_operator.c: New file.
76525         * lib/unictype/pr_ignorable_control.c: New file.
76526         * lib/unictype/pr_iso_control.c: New file.
76527         * lib/unictype/pr_join_control.c: New file.
76528         * lib/unictype/pr_left_of_pair.c: New file.
76529         * lib/unictype/pr_line_separator.c: New file.
76530         * lib/unictype/pr_logical_order_exception.c: New file.
76531         * lib/unictype/pr_lowercase.c: New file.
76532         * lib/unictype/pr_math.c: New file.
76533         * lib/unictype/pr_non_break.c: New file.
76534         * lib/unictype/pr_not_a_character.c: New file.
76535         * lib/unictype/pr_numeric.c: New file.
76536         * lib/unictype/pr_other_alphabetic.c: New file.
76537         * lib/unictype/pr_other_default_ignorable_code_point.c: New file.
76538         * lib/unictype/pr_other_grapheme_extend.c: New file.
76539         * lib/unictype/pr_other_id_continue.c: New file.
76540         * lib/unictype/pr_other_id_start.c: New file.
76541         * lib/unictype/pr_other_lowercase.c: New file.
76542         * lib/unictype/pr_other_math.c: New file.
76543         * lib/unictype/pr_other_uppercase.c: New file.
76544         * lib/unictype/pr_paired_punctuation.c: New file.
76545         * lib/unictype/pr_paragraph_separator.c: New file.
76546         * lib/unictype/pr_pattern_syntax.c: New file.
76547         * lib/unictype/pr_pattern_white_space.c: New file.
76548         * lib/unictype/pr_private_use.c: New file.
76549         * lib/unictype/pr_punctuation.c: New file.
76550         * lib/unictype/pr_quotation_mark.c: New file.
76551         * lib/unictype/pr_radical.c: New file.
76552         * lib/unictype/pr_sentence_terminal.c: New file.
76553         * lib/unictype/pr_soft_dotted.c: New file.
76554         * lib/unictype/pr_space.c: New file.
76555         * lib/unictype/pr_terminal_punctuation.c: New file.
76556         * lib/unictype/pr_test.c: New file.
76557         * lib/unictype/pr_titlecase.c: New file.
76558         * lib/unictype/pr_unassigned_code_value.c: New file.
76559         * lib/unictype/pr_unified_ideograph.c: New file.
76560         * lib/unictype/pr_uppercase.c: New file.
76561         * lib/unictype/pr_variation_selector.c: New file.
76562         * lib/unictype/pr_white_space.c: New file.
76563         * lib/unictype/pr_xid_continue.c: New file.
76564         * lib/unictype/pr_xid_start.c: New file.
76565         * lib/unictype/pr_zero_width.c: New file.
76566         * lib/unictype/scripts.c: New file.
76567         * lib/unictype/sy_c_ident.c: New file.
76568         * lib/unictype/sy_c_whitespace.c: New file.
76569         * lib/unictype/sy_java_ident.c: New file.
76570         * lib/unictype/sy_java_whitespace.c: New file.
76572         * lib/unictype/bidi_of.h: New file, generated by gen-ctype.c for
76573         Unicode 5.0.0.
76574         * lib/unictype/blocks.h: Likewise.
76575         * lib/unictype/categ_C.h: Likewise.
76576         * lib/unictype/categ_Cc.h: Likewise.
76577         * lib/unictype/categ_Cf.h: Likewise.
76578         * lib/unictype/categ_Cn.h: Likewise.
76579         * lib/unictype/categ_Co.h: Likewise.
76580         * lib/unictype/categ_Cs.h: Likewise.
76581         * lib/unictype/categ_L.h: Likewise.
76582         * lib/unictype/categ_Ll.h: Likewise.
76583         * lib/unictype/categ_Lm.h: Likewise.
76584         * lib/unictype/categ_Lo.h: Likewise.
76585         * lib/unictype/categ_Lt.h: Likewise.
76586         * lib/unictype/categ_Lu.h: Likewise.
76587         * lib/unictype/categ_M.h: Likewise.
76588         * lib/unictype/categ_Mc.h: Likewise.
76589         * lib/unictype/categ_Me.h: Likewise.
76590         * lib/unictype/categ_Mn.h: Likewise.
76591         * lib/unictype/categ_N.h: Likewise.
76592         * lib/unictype/categ_Nd.h: Likewise.
76593         * lib/unictype/categ_Nl.h: Likewise.
76594         * lib/unictype/categ_No.h: Likewise.
76595         * lib/unictype/categ_P.h: Likewise.
76596         * lib/unictype/categ_Pc.h: Likewise.
76597         * lib/unictype/categ_Pd.h: Likewise.
76598         * lib/unictype/categ_Pe.h: Likewise.
76599         * lib/unictype/categ_Pf.h: Likewise.
76600         * lib/unictype/categ_Pi.h: Likewise.
76601         * lib/unictype/categ_Po.h: Likewise.
76602         * lib/unictype/categ_Ps.h: Likewise.
76603         * lib/unictype/categ_S.h: Likewise.
76604         * lib/unictype/categ_Sc.h: Likewise.
76605         * lib/unictype/categ_Sk.h: Likewise.
76606         * lib/unictype/categ_Sm.h: Likewise.
76607         * lib/unictype/categ_So.h: Likewise.
76608         * lib/unictype/categ_Z.h: Likewise.
76609         * lib/unictype/categ_Zl.h: Likewise.
76610         * lib/unictype/categ_Zp.h: Likewise.
76611         * lib/unictype/categ_Zs.h: Likewise.
76612         * lib/unictype/categ_of.h: Likewise.
76613         * lib/unictype/combining.h: Likewise.
76614         * lib/unictype/ctype_alnum.h: Likewise.
76615         * lib/unictype/ctype_alpha.h: Likewise.
76616         * lib/unictype/ctype_blank.h: Likewise.
76617         * lib/unictype/ctype_cntrl.h: Likewise.
76618         * lib/unictype/ctype_digit.h: Likewise.
76619         * lib/unictype/ctype_graph.h: Likewise.
76620         * lib/unictype/ctype_lower.h: Likewise.
76621         * lib/unictype/ctype_print.h: Likewise.
76622         * lib/unictype/ctype_punct.h: Likewise.
76623         * lib/unictype/ctype_space.h: Likewise.
76624         * lib/unictype/ctype_upper.h: Likewise.
76625         * lib/unictype/ctype_xdigit.h: Likewise.
76626         * lib/unictype/decdigit.h: Likewise.
76627         * lib/unictype/digit.h: Likewise.
76628         * lib/unictype/mirror.h: Likewise.
76629         * lib/unictype/numeric.h: Likewise.
76630         * lib/unictype/pr_alphabetic.h: Likewise.
76631         * lib/unictype/pr_ascii_hex_digit.h: Likewise.
76632         * lib/unictype/pr_bidi_arabic_digit.h: Likewise.
76633         * lib/unictype/pr_bidi_arabic_right_to_left.h: Likewise.
76634         * lib/unictype/pr_bidi_block_separator.h: Likewise.
76635         * lib/unictype/pr_bidi_boundary_neutral.h: Likewise.
76636         * lib/unictype/pr_bidi_common_separator.h: Likewise.
76637         * lib/unictype/pr_bidi_control.h: Likewise.
76638         * lib/unictype/pr_bidi_embedding_or_override.h: Likewise.
76639         * lib/unictype/pr_bidi_eur_num_separator.h: Likewise.
76640         * lib/unictype/pr_bidi_eur_num_terminator.h: Likewise.
76641         * lib/unictype/pr_bidi_european_digit.h: Likewise.
76642         * lib/unictype/pr_bidi_hebrew_right_to_left.h: Likewise.
76643         * lib/unictype/pr_bidi_left_to_right.h: Likewise.
76644         * lib/unictype/pr_bidi_non_spacing_mark.h: Likewise.
76645         * lib/unictype/pr_bidi_other_neutral.h: Likewise.
76646         * lib/unictype/pr_bidi_pdf.h: Likewise.
76647         * lib/unictype/pr_bidi_segment_separator.h: Likewise.
76648         * lib/unictype/pr_bidi_whitespace.h: Likewise.
76649         * lib/unictype/pr_combining.h: Likewise.
76650         * lib/unictype/pr_composite.h: Likewise.
76651         * lib/unictype/pr_currency_symbol.h: Likewise.
76652         * lib/unictype/pr_dash.h: Likewise.
76653         * lib/unictype/pr_decimal_digit.h: Likewise.
76654         * lib/unictype/pr_default_ignorable_code_point.h: Likewise.
76655         * lib/unictype/pr_deprecated.h: Likewise.
76656         * lib/unictype/pr_diacritic.h: Likewise.
76657         * lib/unictype/pr_extender.h: Likewise.
76658         * lib/unictype/pr_format_control.h: Likewise.
76659         * lib/unictype/pr_grapheme_base.h: Likewise.
76660         * lib/unictype/pr_grapheme_extend.h: Likewise.
76661         * lib/unictype/pr_grapheme_link.h: Likewise.
76662         * lib/unictype/pr_hex_digit.h: Likewise.
76663         * lib/unictype/pr_hyphen.h: Likewise.
76664         * lib/unictype/pr_id_continue.h: Likewise.
76665         * lib/unictype/pr_id_start.h: Likewise.
76666         * lib/unictype/pr_ideographic.h: Likewise.
76667         * lib/unictype/pr_ids_binary_operator.h: Likewise.
76668         * lib/unictype/pr_ids_trinary_operator.h: Likewise.
76669         * lib/unictype/pr_ignorable_control.h: Likewise.
76670         * lib/unictype/pr_iso_control.h: Likewise.
76671         * lib/unictype/pr_join_control.h: Likewise.
76672         * lib/unictype/pr_left_of_pair.h: Likewise.
76673         * lib/unictype/pr_line_separator.h: Likewise.
76674         * lib/unictype/pr_logical_order_exception.h: Likewise.
76675         * lib/unictype/pr_lowercase.h: Likewise.
76676         * lib/unictype/pr_math.h: Likewise.
76677         * lib/unictype/pr_non_break.h: Likewise.
76678         * lib/unictype/pr_not_a_character.h: Likewise.
76679         * lib/unictype/pr_numeric.h: Likewise.
76680         * lib/unictype/pr_other_alphabetic.h: Likewise.
76681         * lib/unictype/pr_other_default_ignorable_code_point.h: Likewise.
76682         * lib/unictype/pr_other_grapheme_extend.h: Likewise.
76683         * lib/unictype/pr_other_id_continue.h: Likewise.
76684         * lib/unictype/pr_other_id_start.h: Likewise.
76685         * lib/unictype/pr_other_lowercase.h: Likewise.
76686         * lib/unictype/pr_other_math.h: Likewise.
76687         * lib/unictype/pr_other_uppercase.h: Likewise.
76688         * lib/unictype/pr_paired_punctuation.h: Likewise.
76689         * lib/unictype/pr_paragraph_separator.h: Likewise.
76690         * lib/unictype/pr_pattern_syntax.h: Likewise.
76691         * lib/unictype/pr_pattern_white_space.h: Likewise.
76692         * lib/unictype/pr_private_use.h: Likewise.
76693         * lib/unictype/pr_punctuation.h: Likewise.
76694         * lib/unictype/pr_quotation_mark.h: Likewise.
76695         * lib/unictype/pr_radical.h: Likewise.
76696         * lib/unictype/pr_sentence_terminal.h: Likewise.
76697         * lib/unictype/pr_soft_dotted.h: Likewise.
76698         * lib/unictype/pr_space.h: Likewise.
76699         * lib/unictype/pr_terminal_punctuation.h: Likewise.
76700         * lib/unictype/pr_titlecase.h: Likewise.
76701         * lib/unictype/pr_unassigned_code_value.h: Likewise.
76702         * lib/unictype/pr_unified_ideograph.h: Likewise.
76703         * lib/unictype/pr_uppercase.h: Likewise.
76704         * lib/unictype/pr_variation_selector.h: Likewise.
76705         * lib/unictype/pr_white_space.h: Likewise.
76706         * lib/unictype/pr_xid_continue.h: Likewise.
76707         * lib/unictype/pr_xid_start.h: Likewise.
76708         * lib/unictype/pr_zero_width.h: Likewise.
76709         * lib/unictype/scripts.h: Likewise.
76710         * lib/unictype/scripts_byname.gperf: Likewise.
76711         * lib/unictype/sy_c_ident.h: Likewise.
76712         * lib/unictype/sy_c_whitespace.h: Likewise.
76713         * lib/unictype/sy_java_ident.h: Likewise.
76714         * lib/unictype/sy_java_whitespace.h: Likewise.
76716         * lib/unictype/Makefile: New file.
76717         * lib/unictype/gen-ctype.c: New file, based on gen-unicode-ctype.c in
76718         glibc.
76719         * lib/unictype/3level.h: New file, copied from glibc.
76720         * lib/unictype/3levelbit.h: New file.
76722 2007-11-11  Bruno Haible  <bruno@clisp.org>
76724         * modules/gperf: New file.
76725         * modules/iconv_open (Depends-on): Add it.
76726         (Makefile.am): Remove the GPERF definition.
76728 2007-11-11  Bruno Haible  <bruno@clisp.org>
76730         * m4/round.m4 (gl_FUNC_ROUND): Test against NetBSD 3.0 bug.
76731         * doc/functions/round.texi: Mention the NetBSD 3.0 bug.
76733 2007-11-11  Bruno Haible  <bruno@clisp.org>
76735         * tests/test-argmatch.c (ARGMATCH_DIE): Undefine.
76736         (usage): Remove function.
76738 2007-11-11  Bruno Haible  <bruno@clisp.org>
76740         * m4/roundf.m4 (gl_FUNC_ROUNDF): Use gl_FUNC_FLOORF_LIBS and
76741         gl_FUNC_CEILF_LIBS.
76742         * m4/round.m4 (gl_FUNC_ROUND): Use gl_FUNC_FLOOR_LIBS and
76743         gl_FUNC_CEIL_LIBS.
76744         * m4/roundl.m4 (gl_FUNC_ROUNDL): Use gl_FUNC_FLOORL_LIBS and
76745         gl_FUNC_CEILL_LIBS.
76746         * modules/roundf (Files): Add m4/floorf.m4, m4/ceilf.m4.
76747         * modules/round (Files): Add m4/floor.m4, m4/ceil.m4.
76748         * modules/roundl (Files): Add m4/floorl.m4, m4/ceill.m4.
76750 2007-11-11  Bruno Haible  <bruno@clisp.org>
76752         * m4/roundf.m4 (gl_FUNC_ROUNDF): Handle the case that floorf and
76753         roundf were declared but do not exist on functions.
76754         * m4/roundl.m4 (gl_FUNC_ROUNDL): Handle the case that floorl and
76755         roundl were declared but do not exist on functions.
76756         * lib/round.c (HAVE_FLOOR_AND_CEIL): Use HAVE_FLOORF_AND_CEILF and
76757         HAVE_FLOORL_AND_CEILL, respectively.
76758         Needed for Sun C on Solaris 10.
76760 2007-11-11  Bruno Haible  <bruno@clisp.org>
76762         * m4/roundf.m4 (gl_FUNC_ROUNDF): Set REPLACE_ROUNDF instead of
76763         HAVE_DECL_ROUNDF. Remove redundant AC_SUBST.
76764         * m4/round.m4 (gl_FUNC_ROUND): Set REPLACE_ROUND instead of
76765         HAVE_DECL_ROUND. Remove redundant AC_SUBST.
76766         * m4/roundl.m4 (gl_FUNC_ROUNDL): Set REPLACE_ROUNDL instead of
76767         HAVE_DECL_ROUNDL. Remove redundant AC_SUBST.
76768         * lib/math.in.h (roundf): Use REPLACE_ROUNDF instead of
76769         HAVE_DECL_ROUNDF.
76770         (round): Use REPLACE_ROUND instead of HAVE_DECL_ROUND.
76771         (roundl): Use REPLACE_ROUNDL instead of HAVE_DECL_ROUNDL.
76772         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_ROUND* instead
76773         of HAVE_DECL_ROUND*.
76774         * modules/math (Makefile.am): Update.
76776 2007-11-10  Bruno Haible  <bruno@clisp.org>
76778         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Use same check for
76779         ptrdiff_t as m4/intl.m4.
76781 2007-11-10  Jim Meyering  <meyering@redhat.com>
76783         Avoid link failure for the argmatch test.
76784         * tests/test-argmatch.c (usage): Define function to avoid a link
76785         failure: argmatch_die requires a usage function.
76787 2007-11-09  Bruno Haible  <bruno@clisp.org>
76789         * doc/functions/snprintf.texi: Mention BeOS deficiency.
76790         * doc/functions/vsnprintf.texi: Likewise.
76791         * lib/vasnprintf.c (VASNPRINTF): Ensure that we never call snprintf
76792         with a size argument < 2.
76794 2007-11-09  Bruno Haible  <bruno@clisp.org>
76796         * lib/vasnprintf.c (VASNPRINTF): Increase reallocation of snprintf
76797         buffer. Fixes an inefficiency introduced on 2007-11-03.
76799 2007-11-09  Bruno Haible  <bruno@clisp.org>
76801         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8) [BeOS]: Make this test return
76802         none instead of tr_TR. Fixes a failure of test-c-strcasecmp.c.
76804 2007-11-08  Jim Meyering  <meyering@redhat.com>
76806         Change cache variable name prefix "jm_" to "gl_" everywhere.
76807         * m4/d-type.m4, m4/jm-winsz1.m4, m4/jm-winsz2.m4, m4/link-follow.m4:
76808         * m4/putenv.m4, m4/strtoimax.m4, m4/strtoumax.m4, m4/unlink-busy.m4:
76809         * m4/uptime.m4: s/gl_/jm_/
76811 2007-11-07  Bruno Haible  <bruno@clisp.org>
76813         Update to GNU gettext 0.17.
76814         * m4/intl.m4: Update to GNU gettext 0.17.
76815         * m4/po.m4: Likewise.
76816         * modules/gettext (Files): Remove m4/ulonglong.m4.
76817         (configure.ac): Require gettext infrastructure from version 0.17.
76819 2007-11-06  Bruno Haible  <bruno@clisp.org>
76821         * lib/fbufmode.c (fbufmode) [QNX]: Use numerical values for flags; the
76822         symbolic values are not defined in a public header.
76823         * lib/freadable.c (freadable) [QNX]: Likewise.
76824         * lib/freadahead.c (freadahead) [QNX]: Likewise.
76825         * lib/freading.c (freading) [QNX]: Likewise.
76826         * lib/fseterr.c (fseterr) [QNX]: Likewise.
76827         * lib/fwritable.c (fwritable) [QNX]: Likewise.
76828         * lib/fwriting.c (fwriting) [QNX]: Likewise.
76829         * lib/fpurge.c (fpurge) [QNX]: Likewise. Add a return statement.
76830         Reported by Alain Magloire.
76832         * m4/fpending.m4 (gl_FUNC_FPENDING): Add a variant for QNX.
76834 2007-11-05  Bruno Haible  <bruno@clisp.org>
76836         * lib/vasnprintf.c (VASNPRINTF): Expand the NEED_PRINTF_DIRECTIVE_A
76837         code when NEED_PRINTF_LONG_DOUBLE or NEED_PRINTF_DOUBLE is set.
76838         Needed on Cygwin, where !NEED_PRINTF_DIRECTIVE_A && NEED_PRINTF_DOUBLE.
76839         Reported by Eric Blake.
76841 2007-10-27  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
76842             Bruno Haible  <bruno@clisp.org>
76844         * modules/malloc (configure.ac): Define GNULIB_MALLOC_GNU always.
76845         * modules/realloc (configure.ac): Define GNULIB_REALLOC_GNU always.
76846         * lib/realloc.c (SYSTEM_MALLOC_GLIBC_COMPATIBLE): New macro.
76847         (malloc): Undefine also before including <stdlib.h>.
76848         (rpl_realloc): Turn malloc(0) into malloc(1) if necessary.
76849         Needed on OSF/1 4.0.
76851 2007-11-05  Jim Meyering  <meyering@redhat.com>
76853         git-version-gen: sync from coreutils.
76854         * build-aux/git-version-gen: Add comments.
76855         Change the first '-' to '.' in the snapshot version string,
76856         e.g., 6.9-377-08144 -> 6.9.377-08144
76857         Remove first parameter.
76858         Don't declare a version "-dirty" merely because a time
76859         stamp has changed.
76861 2007-11-04  Bruno Haible  <bruno@clisp.org>
76863         * lib/lock.h: Protect all macro definitions containing an 'if'
76864         statement through a "do { ... } while (0)".
76865         * lib/tls.h: Likewise.
76867 2007-11-04  Bruno Haible  <bruno@clisp.org>
76869         * lib/vasnprintf.c (DCHAR_IS_TCHAR, DCHAR_CPY): Undefine at the end.
76871 2007-11-04  Bruno Haible  <bruno@clisp.org>
76873         * m4/printf.m4 (gl_PRINTF_ENOMEM): Use GL_NOCRASH.
76874         * modules/fprintf-posix (Depends-on): Add nocrash.
76875         * modules/snprintf-posix (Depends-on): Likewise.
76876         * modules/sprintf-posix (Depends-on): Likewise.
76877         * modules/vasnprintf-posix (Depends-on): Likewise.
76878         * modules/vasprintf-posix (Depends-on): Likewise.
76879         * modules/vfprintf-posix (Depends-on): Likewise.
76880         * modules/vsnprintf-posix (Depends-on): Likewise.
76881         * modules/vsprintf-posix (Depends-on): Likewise.
76882         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
76883         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
76884         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
76885         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
76886         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
76887         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
76888         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
76890 2007-11-04  Bruno Haible  <bruno@clisp.org>
76892         * modules/nocrash: New file.
76893         * m4/nocrash.m4: New file, taken from GNU clisp. Code taken from
76894         GNU libsigsegv, with permission of GNU libsigsegv's copyright holders.
76896 2007-11-04  Bruno Haible  <bruno@clisp.org>
76898         * tests/test-vasnprintf-posix.c (test_function): Add some tests of
76899         precision handling.
76900         * tests/test-vasprintf-posix.c (test_function): Likewise.
76901         * tests/test-snprintf-posix.h (test_function): Likewise.
76902         * tests/test-sprintf-posix.h (test_function): Likewise.
76904         Fix *printf behaviour for large precisions on mingw and BeOS.
76905         * m4/printf.m4 (gl_PRINTF_PRECISION): New macro.
76906         * lib/vasnprintf.c (VASNPRINTF): Handle NEED_PRINTF_UNBOUNDED_PRECISION.
76907         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_PRECISION): New macro.
76908         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
76909         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
76910         gl_PRINTF_PRECISION and test its result. Invoke
76911         gl_PREREQ_VASNPRINTF_PRECISION.
76912         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
76913         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
76914         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
76915         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
76916         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
76917         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
76918         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
76919         * doc/functions/fprintf.texi: Update.
76920         * doc/functions/printf.texi: Update.
76921         * doc/functions/snprintf.texi: Update.
76922         * doc/functions/sprintf.texi: Update.
76923         * doc/functions/vfprintf.texi: Update.
76924         * doc/functions/vprintf.texi: Update.
76925         * doc/functions/vsnprintf.texi: Update.
76926         * doc/functions/vsprintf.texi: Update.
76928 2007-11-04  Bruno Haible  <bruno@clisp.org>
76930         * lib/vasnprintf.c (scale10_round_decimal_decoded): Fix shift loop.
76932 2007-11-04  Bruno Haible  <bruno@clisp.org>
76934         * modules/relocatable-prog (Files): Add m4/lib-ld.m4.
76935         Reported by Sylvain Beucler <beuc@gnu.org>.
76937 2007-11-03  Bruno Haible  <bruno@clisp.org>
76939         * tests/test-fprintf-posix2.sh: New file.
76940         * tests/test-fprintf-posix2.c: New file.
76941         * modules/fprintf-posix-tests (Files): Add them.
76942         (TESTS): Add test-fprintf-posix2.sh.
76943         (configure.ac): Check for getrlimit and setrlimit.
76944         (check_PROGRAMS): Add test-fprintf-posix2.
76946         * tests/test-printf-posix2.sh: New file.
76947         * tests/test-printf-posix2.c: New file.
76948         * modules/printf-posix-tests (Files): Add them.
76949         (TESTS): Add test-printf-posix2.sh.
76950         (configure.ac): Check for getrlimit and setrlimit.
76951         (check_PROGRAMS): Add test-printf-posix2.
76953         Fix *printf behaviour in out-of-memory situations on MacOS X and *BSD.
76954         * m4/printf.m4 (gl_PRINTF_ENOMEM): New macro.
76955         * lib/vasnprintf.c: Implement NEED_PRINTF_DOUBLE.
76956         (decode_double): New function, copied from decode_long_double.
76957         (scale10_round_decimal_decoded): New function, extracted from
76958         scale10_round_decimal_long_double.
76959         (scale10_round_decimal_long_double): Use it.
76960         (scale10_round_decimal_double): New function.
76961         (floorlog10): New function.
76962         (VASNPRINTF): Handle NEED_PRINTF_DOUBLE case.
76963         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_ENOMEM): New macro.
76964         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
76965         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
76966         gl_PRINTF_ENOMEM and test its result. Invoke
76967         gl_PREREQ_VASNPRINTF_ENOMEM.
76968         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
76969         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
76970         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
76971         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
76972         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
76973         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
76974         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
76975         * modules/fprintf-posix (Depends-on): Add frexp-nolibm.
76976         * modules/snprintf-posix (Depends-on): Likewise.
76977         * modules/sprintf-posix (Depends-on): Likewise.
76978         * modules/vasnprintf-posix (Depends-on): Likewise.
76979         * modules/vasprintf-posix (Depends-on): Likewise.
76980         * modules/vfprintf-posix (Depends-on): Likewise.
76981         * modules/vsnprintf-posix (Depends-on): Likewise.
76982         * modules/vsprintf-posix (Depends-on): Likewise.
76983         * doc/functions/fprintf.texi: Update.
76984         * doc/functions/printf.texi: Update.
76985         * doc/functions/snprintf.texi: Update.
76986         * doc/functions/sprintf.texi: Update.
76987         * doc/functions/vfprintf.texi: Update.
76988         * doc/functions/vprintf.texi: Update.
76989         * doc/functions/vsnprintf.texi: Update.
76990         * doc/functions/vsprintf.texi: Update.
76992 2007-11-03  Bruno Haible  <bruno@clisp.org>
76994         * modules/frexp-nolibm-tests: New file.
76996         * modules/frexp-nolibm: New file.
76997         * m4/frexp.m4 (gl_FUNC_FREXP_NO_LIBM): New macro.
76999 2007-11-03  Bruno Haible  <bruno@clisp.org>
77001         * lib/vasnprintf.c (VASNPRINTF): Don't assume that snprintf's return
77002         value is C99 compliant.
77003         Needed for OSF/1 5.1.
77005 2007-11-03  Bruno Haible  <bruno@clisp.org>
77007         Fix out-of-memory handling of vasnprintf.
77008         * lib/printf-parse.c: Include <errno.h>.
77009         (PRINTF_PARSE): When failing, set errno to EINVAL or ENOMEM.
77010         * lib/vasnprintf.c (VASNPRINTF): When PRINTF_PARSE fails, assume errno
77011         is already set.
77013 2007-11-02  Eric Blake  <ebb9@byu.net>
77015         Fix tests on cygwin.
77016         * modules/xprintf-posix-tests (Makefile.am): Link against -lintl.
77018 2007-11-01  Bruno Haible  <bruno@clisp.org>
77020         * lib/stdlib.in.h (putenv): Remove the "not POSIX compliant everywhere"
77021         warning.
77022         * doc/functions/putenv.texi: Clarify that the 'putenv' module is not
77023         needed for POSIX compatibility.
77025 2007-11-01  Paul Eggert  <eggert@cs.ucla.edu>
77027         * m4/putenv.m4 (gl_FUNC_PUTENV): Also mention that we're checking
77028         for compatibility with GNU.
77030 2007-11-01  Bruno Haible  <bruno@clisp.org>
77032         * lib/putenv.c: Include <stdlib.h>. Remove rpl_putenv declaration.
77033         (putenv): Renamed from rpl_putenv. Change argument type from
77034         'const char *' to 'char *'.
77035         * m4/putenv.m4 (gl_FUNC_PUTENV): Require gl_STDLIB_H_DEFAULTS. Instead
77036         of defining putenv in config.h, just set REPLACE_PUTENV.
77037         * modules/putenv (Depends-on): Add stdlib.
77038         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
77039         (Include): Use <stdlib.h>.
77040         * lib/stdlib.in.h (putenv): New declaration.
77041         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_PUTENV and
77042         REPLACE_PUTENV.
77043         * modules/stdlib (Makefile.am): Substitute GNULIB_PUTENV and
77044         REPLACE_PUTENV.
77045         Needed for MacOS X 10.5.0.
77046         Reported by Peter O'Gorman <peter@pogma.com>.
77048 2007-11-01  Jim Meyering  <meyering@redhat.com>
77050         Treat an empty date string exactly like "0".
77051         * lib/getdate.y (get_date): Once any isspace or TZ= prefix is consumed,
77052         if the remaining date string (to be parsed) is empty, use "0".
77053         Reported by Mischa Molhoek and discussed in this thread:
77054         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/11726>.
77056 2007-10-31  Bruno Haible  <bruno@clisp.org>
77058         * m4/intmax_t.m4 (gl_AC_TYPE_INTMAX_T, gt_AC_TYPE_INTMAX_T): Use
77059         AC_TYPE_LONG_LONG_INT instead of gl_AC_TYPE_LONG_LONG.
77060         * m4/uintmax_t.m4 (gl_AC_TYPE_UINTMAX_T): Use
77061         AC_TYPE_UNSIGNED_LONG_LONG_INT instead of gl_AC_TYPE_UNSIGNED_LONG_LONG.
77062         * m4/longlong.m4 (gl_AC_TYPE_LONG_LONG): Remove macro.
77063         * m4/ulonglong.m4 (gl_AC_TYPE_UNSIGNED_LONG_LONG): Remove macro.
77065 2007-10-31  Bruno Haible  <bruno@clisp.org>
77067         * m4/longlong.m4 (_AC_TYPE_LONG_LONG_SNIPPET): New macro, extracted
77068         from AC_TYPE_LONG_LONG_INT and AC_TYPE_UNSIGNED_LONG_LONG_INT.
77069         (AC_TYPE_LONG_LONG_INT): Use it.
77070         (AC_TYPE_UNSIGNED_LONG_LONG_INT): Moved here from m4/ulonglong.m4. Use
77071         it as well.
77072         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Remove macro; moved
77073         to m4/longlong.m4.
77074         * modules/stdint (Files): Remove m4/ulonglong.m4.
77075         * modules/strtoull (Files): Use m4/longlong.m4 instead of
77076         m4/ulonglong.m4.
77077         * modules/strtoumax (Files): Likewise.
77079 2007-10-30  Bruno Haible  <bruno@clisp.org>
77081         * modules/xvasprintf-posix: New file.
77082         Suggested by Eric Blake.
77084 2007-10-30  Bruno Haible  <bruno@clisp.org>
77086         * modules/xprintf-posix-tests: New file.
77087         * tests/test-xprintf-posix.sh: New file.
77088         * tests/test-xprintf-posix.c: New file.
77089         * tests/test-xfprintf-posix.c: New file.
77091         * modules/xprintf-posix: New file.
77093 2007-10-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
77095         * modules/fbufmode-tests (MOSTLYCLEANFILES): Remove temp files.
77096         * modules/freadable-tests (MOSTLYCLEANFILES): Likewise.
77097         * modules/fwritable-tests (MOSTLYCLEANFILES): Likewise.
77099 2007-10-29  Bruno Haible  <bruno@clisp.org>
77101         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Rename the cache variable to
77102         contain the special marker '_cv_'.
77103         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
77104         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
77105         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
77106         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Likewise.
77107         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
77108         Reported by Ralf Wildenhues.
77110 2007-10-29  Bruno Haible  <bruno@clisp.org>
77112         * gnulib-tool (func_import): When --lgpl is not specified, set
77113         sed_transform_lib_file to convert LGPL and GPLv2+ copyright headers to
77114         GPLv3.
77115         Reported by Simon Josefsson.
77117 2007-10-28  Bruno Haible  <bruno@clisp.org>
77119         * lib/math.in.h: Test REPLACE_ISFINITE instead of HAVE_DECL_ISFINITE.
77120         * m4/isfinite.m4 (gl_ISFINITE): Initialize REPLACE_ISFINITE instead of
77121         HAVE_DECL_ISFINITE.
77122         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Update.
77123         * modules/math (Makefile.am): Substitute REPLACE_ISFINITE instead of
77124         HAVE_DECL_ISFINITE.
77126 2007-10-28  Bruno Haible  <bruno@clisp.org>
77128         * lib/stdint.in.h (_STDINT_MAX): Subtract 1 from an unused signed
77129         integer shift in the signed case. Fixes warnings with OSF/1 5.1 cc.
77131 2007-10-28  Bruno Haible  <bruno@clisp.org>
77133         Fix link errors with Sun C 5.0 on Solaris 10.
77134         * m4/floorf.m4 (gl_FUNC_FLOORF): Consider also the case that the
77135         function is declared but not present in the compiler's libm.
77136         * m4/floorl.m4 (gl_FUNC_FLOORL): Likewise.
77137         * m4/ceilf.m4 (gl_FUNC_CEILF): Likewise.
77138         * m4/ceill.m4 (gl_FUNC_CEILL: Likewise.
77139         * lib/math.in.h: Test REPLACE_CEILF instead of HAVE_DECL_CEILF.
77140         Test REPLACE_CEILL instead of HAVE_DECL_CEILL.
77141         Test REPLACE_FLOORF instead of HAVE_DECL_FLOORF.
77142         Test REPLACE_FLOORL instead of HAVE_DECL_FLOORL.
77143         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Update.
77144         * modules/math (Makefile.am): Substitute REPLACE_CEILF instead of
77145         HAVE_DECL_CEILF, REPLACE_CEILL instead of HAVE_DECL_CEILL,
77146         REPLACE_FLOORF instead of HAVE_DECL_FLOORF, REPLACE_FLOORL instead of
77147         HAVE_DECL_FLOORL.
77149 2007-10-28  Bruno Haible  <bruno@clisp.org>
77151         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): New macro, extracted from
77152         gl_FUNC_FLOORL. Cache the result.
77153         (gl_FUNC_FLOORL): Use it.
77154         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): New macro, extracted from
77155         gl_FUNC_CEILL. Cache the result.
77156         (gl_FUNC_CEILL): Use it.
77158         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): New macro, extracted from
77159         gl_FUNC_FLOOR. Cache the result.
77160         (gl_FUNC_FLOOR): Use it.
77161         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): New macro, extracted from
77162         gl_FUNC_CEIL. Cache the result.
77163         (gl_FUNC_CEIL): Use it.
77165         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): New macro, extracted from
77166         gl_FUNC_FLOORF. Cache the result.
77167         (gl_FUNC_FLOORF): Use it.
77168         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): New macro, extracted from
77169         gl_FUNC_CEILF. Cache the result.
77170         (gl_FUNC_CEILF): Use it.
77172 2007-10-28  Bruno Haible  <bruno@clisp.org>
77174         * gnulib-tool: Allow specifying the LGPL version number through
77175         --lgpl=2 or --lgpl=3.
77176         (func_usage): Document --lgpl with argument.
77177         Handle --lgpl=... arguments.
77178         (func_import): Recognize also gl_LGPL calls with an argument. When
77179         --lgpl=2 is used and the module's license is just LGPL, report an
77180         error. Set sed_transform_lib_file according to the lgpl variable. In
77181         the generated files, use --lgpl or gl_LGPL invocations with argument,
77182         if necessary.
77183         * doc/gnulib-intro.texi (Copyright): Explain how to get modules under
77184         an LGPv2+ license.
77185         * doc/gnulib-tool.texi (Modified imports): Update explanation of
77186         gl_LGPL macro.
77188 2007-10-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
77189             Bruno Haible  <bruno@clisp.org>
77191         * lib/unistr.h (u8_uctomb_aux): Declare also if !HAVE_INLINE.
77192         (u16_uctomb_aux): Likewise.
77193         * lib/unistr/u8-uctomb-aux.c (u8_uctomb_aux): Define also if
77194         !HAVE_INLINE.
77195         * lib/unistr/u16-uctomb-aux.c (u16_uctomb_aux): Likewise
77197 2007-10-28  Bruno Haible  <bruno@clisp.org>
77199         * modules/error: Add a notice recommending to change XGETTEXT_OPTIONS.
77200         Invoke AM_GETTEXT_OPTION if it exists.
77201         * modules/vasprintf: Likewise.
77202         * modules/verror: Likewise.
77203         * modules/xprintf: Likewise.
77204         * modules/xvasprintf: Likewise.
77206 2007-10-27  Ben Pfaff  <blp@gnu.org>
77208         * lib/math.in.h: Define isfinite macro and prototypes for
77209         gl_isfinitef, gl_isfinited, gl_isfinitel if we are providing
77210         implementations.
77211         * m4/math_h.m4: New substitutions for isfinite module.
77212         * lib/isfinite.c: New file.
77213         * m4/isfinite.m4: New file.
77214         * modules/math: Replace isfinite-related @VARS@ in math.in.h.
77215         * modules/isfinite: New file.
77216         * modules/isfinite-tests: New file.
77217         * tests/tests-isfinite.c: New file.
77218         * doc/functions/isfinite.texi: Mention isfinite module.
77219         * MODULES.html.sh: Mention new module.
77221 2007-10-27  Ben Pfaff  <blp@gnu.org>
77223         Ralf Wildenhues reported that Tru64 4.0D declares the round
77224         functions but does not have definitions.
77225         * m4/check-math-lib.m4 (gl_CHECK_MATH_LIB): If the target function
77226         cannot be found in any library, set the output variable to
77227         "missing" instead of "".
77228         * m4/round.m4: Also use our substitute if we cannot find round in
77229         any library, even if it is declared.
77230         * m4/roundf.m4: Likewise for roundf.
77231         * m4/roundl.m4: Likewise for roundl.
77232         * lib/math.in.h: Undefine roundf, round, roundl before defining
77233         their replacements, to allow for hypothetical systems where these
77234         may be defined as macros but not available in libraries.
77236 2007-10-27  Bruno Haible  <bruno@clisp.org>
77238         * doc/gnulib.texi: Invoke @firstparagraphindent.
77239         * doc/gnulib-tool.texi (Simple update): Mention possible incompatible
77240         changes in gnulib.
77241         (Source changes): New section.
77243 2007-10-26  Bruno Haible  <bruno@clisp.org>
77245         * m4/gnulib-common.m4 (AC_C_RESTRICT): New overriding definition,
77246         borrowed from autoconf.
77248 2007-10-26  Bruno Haible  <bruno@clisp.org>
77250         * lib/strerror.c (rpl_strerror): Return "Unknown error ..." also if
77251         strerror returned the empty string. Needed on HP-UX 11.00.
77253 2007-10-24  Micah Cowan  <micah@cowan.name>
77255         Remove vestiges of cvs-gnulib-checkout process.  Now we use git.
77256         * build-aux/bootstrap: Remove support for now-unnecessary option,
77257         --cvs-user, and envvars CVS_USER, CVS_RSH.
77259 2007-10-24  Jim Meyering  <meyering@redhat.com>
77261         Avoid diagnostics from sha1sum when there is no cached checksum.
77262         * build-aux/bootstrap (update_po_files): Skip the sha1sum check
77263         if the po.s1 file hasn't been created yet.
77265         * build-aux/bootstrap: Sync from coreutils:
77266         2007-10-24  Jim Meyering  <meyering@redhat.com>
77267         Get gnulib from the git repository, not from an obsolete cvs one.
77268         * build-aux/bootstrap: Suggestion from Micah Cowan.
77269         2007-10-04  Jim Meyering  <jim@meyering.net>
77270         * build-aux/bootstrap (slurp): Adapt to _.h -> .in.h name change.
77271         (update_po_files): Work also when there are no .po files in po/.
77273 2007-10-24  Paul Eggert  <eggert@cs.ucla.edu>
77275         * README: Append ".git" to git and cg examples.
77276         Problem reported by Benoit Sigoure.
77278 2007-10-23  Micah Cowan  <micah@cowan.name>
77280         * users.txt: Add wget.
77282 2007-10-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
77284         Fix linking of some unistdio tests on FreeBSD.
77285         * modules/unistdio/u16-vsnprintf-tests
77286         (test_u16_vsprintf1_LDADD): Add @LIBINTL@.
77287         * modules/unistdio/u16-vsprintf-tests
77288         (test_u16_vsnprintf1_LDADD): Likewise.
77289         * modules/unistdio/u32-vsnprintf-tests
77290         (test_u32_vsnprintf1_LDADD): Likewise.
77291         * modules/unistdio/u32-vsprintf-tests
77292         (test_u32_vsprintf1_LDADD): Likewise.
77293         * modules/unistdio/u8-vsnprintf-tests
77294         (test_u8_vsnprintf1_LDADD): Likewise.
77295         * modules/unistdio/u8-vsprintf-tests
77296         (test_u8_vsprintf1_LDADD): Likewise.
77297         * modules/unistdio/ulc-vsnprintf-tests
77298         (test_ulc_vsnprintf1_LDADD): Likewise.
77299         * modules/unistdio/ulc-vsprintf-tests
77300         (test_ulc_vsprintf1_LDADD): Likewise.
77302         Fix linking of some uniconv tests on FreeBSD.
77303         * modules/uniconv/u16-conv-from-enc-tests
77304         (test_u16_conv_from_enc_LDADD): Link $(LDADD) before @LIBICONV@.
77305         * modules/uniconv/u16-conv-to-enc-tests
77306         (test_u16_conv_to_enc_LDADD): Likewise.
77307         * modules/uniconv/u16-strconv-from-enc-tests
77308         (test_u16_strconv_from_enc_LDADD): Likewise.
77309         * modules/uniconv/u16-strconv-to-enc-tests
77310         (test_u16_strconv_to_enc_LDADD): Likewise.
77311         * modules/uniconv/u32-conv-from-enc-tests
77312         (test_u32_conv_from_enc_LDADD): Likewise.
77313         * modules/uniconv/u32-conv-to-enc-tests
77314         (test_u32_conv_to_enc_LDADD): Likewise.
77315         * modules/uniconv/u32-strconv-from-enc-tests
77316         (test_u32_strconv_from_enc_LDADD): Likewise.
77317         * modules/uniconv/u32-strconv-to-enc-tests
77318         (test_u32_strconv_to_enc_LDADD): Likewise.
77319         * modules/uniconv/u8-conv-from-enc-tests
77320         (test_u8_conv_from_enc_LDADD): Likewise.
77321         * modules/uniconv/u8-conv-to-enc-tests
77322         (test_u8_conv_to_enc_LDADD): Likewise.
77323         * modules/uniconv/u8-strconv-from-enc-tests
77324         (test_u8_strconv_from_enc_LDADD): Likewise.
77325         * modules/uniconv/u8-strconv-to-enc-tests
77326         (test_u8_strconv_to_enc_LDADD): Likewise.
77328 2007-10-22  Bruno Haible  <bruno@clisp.org>
77330         * lib/stdint.in.h: Add check that intmax_t and uintmax_t have the same
77331         size.
77333 2007-10-22  Eric Blake  <ebb9@byu.net>
77335         Tweak x*printf documentation.
77336         * lib/xprintf.c (xprintf, xvprintf, xfprintf, xvfprintf): Adjust
77337         variable name and comments.
77338         Suggested by Bruno Haible.
77340 2007-10-22  Bruno Haible  <bruno@clisp.org>
77342         * lib/acl.c (copy_acl): Fix file name in comment.
77344 2007-10-22  Paul Eggert  <eggert@cs.ucla.edu>
77346         Fix Tru64 problem with stdbool.h.
77347         * lib/stdbool.in.h (false, true):
77348         [! (defined __cplusplus || defined __BEOS__) && !defined __GNUC__]:
77349         Don't declare as an enum in this situation; it runs afoul of Tru64.
77350         Problem reported by Steven M. Schweda in
77351         <http://lists.gnu.org/archive/html/bug-autoconf/2007-10/msg00019.html>.
77353 2007-10-22  Eric Blake  <ebb9@byu.net>
77355         Also wrap vf?printf.
77356         * lib/xprintf.h (xvprintf, xvfprintf): New declarations.
77357         * lib/xprintf.c (xprintf, xfprintf): Work for C89.
77358         (xvprintf, xvfprintf): New functions.
77360 2007-10-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
77362         * modules/fstrcmp-tests (test_fstrcmp_LDADD): New, add
77363         @LIBINTL@ for FreeBSD 6.2, $(LIBTHREAD) for AIX 4.3.3.
77365         * lib/uniconv/u16-conv-to-enc.c (U_MBLEN): Define.
77366         * lib/uniconv/u32-conv-to-enc.c (U_MBLEN): Likewise.
77368 2007-10-22  Paul Eggert  <eggert@cs.ucla.edu>
77370         * lib/acl.c (copy_acl): Adjust to IRIX 6.5.  Problem reported
77371         by Bruno Haible.
77373 2007-10-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
77375         * lib/getloadavg.c
77376         [defined (__osf__) && (defined (__alpha) || defined (__alpha__)]:
77377         Undef `sys' after including sys/table.h, for Tru64 4.0D.
77379         * tests/test-i-ring.c: Work for C89.
77381 2007-10-22  Bruno Haible  <bruno@clisp.org>
77383         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Use -1ull, not
77384         -1u, in preprocessor expression, so that we don't test for the bug
77385         in HP-UX 11.00 cpp.  Testing for this bug caused problems; see
77386         <http://lists.gnu.org/archive/html/bug-gnulib/2007-10/msg00329.html>.
77388 2007-10-22  Eric Blake  <ebb9@byu.net>
77390         * tests/test-yesno.sh: Silence stderr during test.
77392 2007-10-22  Simon Josefsson  <simon@josefsson.org>
77394         * modules/crypto/gc-camellia: New file.
77396         * m4/gc-camellia.m4: New file.
77398         * lib/gc-libgcrypt.c (gc_cipher_open): Support Camellia.
77400         * lib/gc.h (enum Gc_cipher): Add GC_CAMELLIA128, GC_CAMELLIA256.
77402 2007-10-22  Simon Josefsson  <simon@josefsson.org>
77404         * build-aux/maint.mk (gzip_rsyncable): Don't fail if gzip sends
77405         --help to stdout.  Reported by sms@antinode.org (Steven
77406         M. Schweda).
77408 2007-10-22  Simon Josefsson  <simon@josefsson.org>
77410         * users.txt: Fix link to libksba.
77412 2007-10-21  Ben Pfaff  <blp@gnu.org>
77414         * modules/roundf-tests: Add dependency on floorf, ceilf to allow
77415         round.c roundf implementation that depends on floorf and ceilf to
77416         be tested unconditionally.
77418 2007-10-21  Ben Pfaff  <blp@gnu.org>
77420         * m4/check-libm-func.m4: Removed.
77421         * m4/check-math-lib.m4: New file.
77422         * m4/round.m4: Rewrite to use gl_CHECK_MATH_LIB.
77423         * m4/roundf.m4: Ditto, and fix lack of HAVE_DECL_ROUNDF
77424         definition and lack of AC_LIBOBJ([roundf]).
77425         * m4/roundl.m4: Ditto, and similarly for roundl.
77426         * modules/round: Reference new m4 file.
77427         * modules/roundf: Ditto.
77428         * modules/roundl: Ditto.
77429         * tests/test-round2.c (main): Use ROUND instead of round.
77430         Bug report from Bruno Haible.
77432 2007-10-21  Bruno Haible  <bruno@clisp.org>
77434         * lib/printf-parse.c: Don't assume <stdint.h> exists in IN_LIBASPRINTF
77435         context.
77437 2007-10-21  Bruno Haible  <bruno@clisp.org>
77439         * tests/test-wcwidth.c (main): Allow negative result for some control
77440         characters.
77442         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Check also the width of U+200B.
77443         Needed on OSF/1 5.1.
77445 2007-10-21  Bruno Haible  <bruno@clisp.org>
77447         * tests/test-floorf1.c: Include isnanf.h.
77448         (main): Use isnanf() instead of isnan().
77449         * tests/test-ceilf1.c: Include isnanf.h.
77450         (main): Use isnanf() instead of isnan().
77451         * tests/test-truncf1.c: Include isnanf.h.
77452         (main): Use isnanf() instead of isnan().
77453         * tests/test-roundf1.c: Include isnanf.h.
77454         (main): Use isnanf() instead of isnan().
77456 2007-10-21  Eric Blake  <ebb9@byu.net>
77458         * users.txt: Update URL for m4.
77460 2007-10-21  Bruno Haible  <bruno@clisp.org>
77462         * users.txt: Add clisp. Update URLs to Simon Josefsson's projects.
77464 2007-10-21  Bruno Haible  <bruno@clisp.org>
77466         * gnulib-tool (func_create_megatestdir): Determine the cvsdate from
77467         Git's management files if the CVS files are not present.
77469 2007-10-20  Bruno Haible  <bruno@clisp.org>
77471         * lib/count-one-bits.h (COUNT_ONE_BITS): Use the builtin also for
77472         gcc-3.4.x.
77474 2007-10-20  Ben Pfaff  <blp@gnu.org>
77476         * lib/math.in.h: Declare round, roundf, roundl if we are providing
77477         implementations.
77478         * m4/math_h.m4: New substitutions for round, roundf, roundl modules.
77479         * lib/round.c: New file.
77480         * lib/roundf.c: New file.
77481         * lib/roundl.c: New file.
77482         * m4/round.m4: New file.
77483         * m4/roundf.m4: New file.
77484         * m4/roundl.m4: New file.
77485         * m4/check-libm-func-m4: New file.
77486         * modules/math: Replace round, roundf, roundl related @VARS@ in
77487         math.in.h.
77488         * modules/round: New file.
77489         * modules/round-tests: New file.
77490         * modules/roundf: New file.
77491         * modules/roundf-tests: New file.
77492         * modules/roundl: New file.
77493         * modules/roundl-tests: New file.
77494         * tests/test-round1.c: New file.
77495         * tests/test-round2.c: New file.
77496         * tests/test-roundf1.c: New file.
77497         * tests/test-roundf2.c: New file.
77498         * tests/test-roundl.c: New file.
77499         * doc/functions/round.texi: Mention round module.
77500         * doc/functions/roundf.texi: Mention roundf module.
77501         * doc/functions/roundl.texi: Mention roundl module.
77502         * MODULES.html.sh: Mention new modules.
77503         Thanks to Bruno Haible for suggestions.
77505 2007-10-20  Jim Meyering  <meyering@redhat.com>
77507         * lib/xprintf.c: Include <config.h> unconditionally.
77509         Change xprintf's license to GPL.
77510         * modules/xprintf (License): s/LGPL/GPL/, since this module
77511         depends on modules (exit and exitfail) which are GPL.
77512         Suggestion from Bruno Haible.
77514         xprintf fixes.
77515         * lib/xprintf.c (xprintf, xfprintf): Use va_end.
77516         Use a clearer diagnostic.
77517         Patch from Bruno Haible.
77519 2007-10-20  Bruno Haible  <bruno@clisp.org>
77521         * lib/vasnprintf.c (VASNPRINTF): Don't report overflow if the available
77522         length is INT_MAX and sizeof (DCHAR_T) > sizeof (TCHAR_T).
77523         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
77525 2007-10-20  Bruno Haible  <bruno@clisp.org>
77527         * tests/test-floorf2.c (correct_result_p): Don't rely on excess
77528         precision in the comparison result > x - 1 or similar.
77529         * tests/test-ceilf2.c (correct_result_p): Likewise.
77530         * tests/test-truncf2.c (correct_result_p): Likewise.
77531         * tests/test-trunc2.c (correct_result_p): Likewise.
77532         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
77534 2007-10-20  Bruno Haible  <bruno@clisp.org>
77536         * modules/ceil: New file.
77537         * m4/ceil.m4: New file.
77538         * doc/functions/ceil.texi: Mention the 'ceil' module.
77540 2007-10-20  Bruno Haible  <bruno@clisp.org>
77542         * modules/floor: New file.
77543         * m4/floor.m4: New file.
77544         * doc/functions/floor.texi: Mention the 'floor' module.
77546 2007-10-20  Bruno Haible  <bruno@clisp.org>
77548         * modules/ceilf-tests (Depends-on): Add fprintf-posix. Needed for use
77549         of %a.
77550         * modules/floorf-tests (Depends-on): Likewise.
77551         * modules/truncf-tests (Depends-on): Likewise.
77552         * modules/trunc-tests (Depends-on): Likewise.
77553         Reported by Ben Pfaff.
77555 2007-10-19  Jim Meyering  <meyering@redhat.com>
77557         * lib/xprintf.c (xprintf, xfprintf): Test err < 0, not just "err".
77558         Don't bother testing specific errno values.  Just test ferror.
77560         New module: xprintf
77561         * modules/xprintf, lib/xprintf.c, lib/xprintf.h: New files.
77563 2007-10-19  Bruno Haible  <bruno@clisp.org>
77565         * modules/csharpexec (Makefile.am): Use @FOO@ syntax instead of $(FOO)
77566         syntax.
77567         * modules/javaexec (Makefile.am): Likewise.
77568         * modules/relocatable-prog (Makefile.am): Likewise.
77569         Suggested by Jim Meyering.
77571 2007-10-18  Bruno Haible  <bruno@clisp.org>
77573         * lib/vasnprintf.c (VASNPRINTF): Don't use %n on glibc >= 2.3 systems.
77574         Reported by Jim Meyering.
77576 2007-10-18  Eric Blake  <ebb9@byu.net>
77578         * modules/filenamecat-tests (Makefile.am): Link against -lintl.
77580 2007-10-18  Bruno Haible  <bruno@clisp.org>
77582         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_N, gl_SNPRINTF_DIRECTIVE_N): Put
77583         the format string into writable memory. Needed in Fortify conditions.
77585 2007-10-18  Colin Watson  <cjwatson@debian.org>  (tiny change)
77586             Bruno Haible  <bruno@clisp.org>
77588         * lib/trim.c: Include config.h unconditionally. Include trim.h always.
77589         Include ctype.h always. Include stdlib.h, not mbuiter.h, for MB_CUR_MAX.
77590         * modules/trim (Depends-on): Add mbchar.
77591         (configure.ac): Add gl_FUNC_MBRTOWC.
77592         (Makefile.am): Augment lib_SOURCES.
77594 2007-10-17  Paul Eggert  <eggert@cs.ucla.edu>
77596         Modify glob.c to use fstatat and dirfd, to simplify it.
77597         Suggested by Eric Blake.
77598         * lib/glob.c (__fxstatat64) [!_LIBC]: New macro.
77599         Don't include <stdbool.h>; not used.
77600         (link_exists2_p, glob_in_dir) [!_LIBC]: No longer a special case.
77601         (link_exists_p): Simplify implementation, since we can now assume
77602         dirfd and fstatat.
77603         * modules/glob (Depends-on): Add dirfd, openat.  Remove stdbool.
77605 2007-10-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
77607         * gnulib-tool (func_get_dependencies): Fix sed script to
77608         match only tests.
77610 2007-10-17  Bruno Haible  <bruno@clisp.org>
77612         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): On Cygwin, don't
77613         allow locale names without encoding suffix.
77614         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
77615         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
77617 2007-10-16  Bruno Haible  <bruno@clisp.org>
77619         * lib/getcwd.c (__getcwd): Define with explicit rpl_ prefix.
77620         * lib/getgroups.c (getgroups): Likewise.
77621         * lib/gettimeofday.c (localtime, gmtime, tzset): Likewise.
77623 2007-10-16  Bruno Haible  <bruno@clisp.org>
77625         * modules/absolute-header (License): Change from LGPL to LGPLv2+.
77626         * modules/malloc-posix (License): Likewise.
77627         * modules/realloc-posix (License): Likewise.
77628         * modules/calloc-posix (License): Likewise.
77629         * modules/intprops (License): Change from GPL to LGPL, with
77630         Paul Eggert's approval.
77632 2007-10-16  Paul Eggert  <eggert@cs.ucla.edu>
77634         Merge glibc changes into lib/glob.c.
77636         * lib/glob.c (glob_in_dir): Sync with glibc/posix/glob.c, dated
77637         2007-10-15 04:59:03 UTC.  Here are the changes:
77639         2007-10-14  Ulrich Drepper  <drepper@redhat.com>
77641         * lib/glob.c: Reimplement link_exists_p to use fstatat64.
77643         * lib/glob.c: Add some branch prediction throughout.
77645         2007-10-07  Ulrich Drepper  <drepper@redhat.com>
77647         [BZ #5103]
77648         * lib/glob.c (glob): Recognize patterns starting \/.
77650         2007-02-14  Jakub Jelinek  <jakub@redhat.com>
77652         [BZ #3996]
77653         * lib/glob.c (attribute_hidden): Define if not defined.
77654         (glob): Unescape dirname, filename or username when needed and not
77655         GLOB_NOESCAPE.  Handle \/ correctly.  Handle GLOB_MARK if filename
77656         is NULL.  Handle unescaped [ in pattern without closing ].
77657         Don't pass GLOB_CHECK down to recursive glob for directories.
77658         (__glob_pattern_type): New function.
77659         (__glob_pattern_p): Implement using __glob_pattern_type.
77660         (glob_in_dir): Handle GLOB_NOCHECK patterns containing no meta
77661         characters and backslashes if not GLOB_NOESCAPE or unterminated [.
77662         Remove unreachable code.
77664         2006-09-30  Ulrich Drepper  <drepper@redhat.com>
77666         * lib/glob.c (glob_in_dir): Add some comments and asserts to
77667         explain why there are no leaks.
77669         2006-09-25  Jakub Jelinek  <jakub@redhat.com>
77671         [BZ #3253]
77672         * lib/glob.c (glob_in_dir): Don't alloca one struct globlink at a
77673         time, rather allocate increasingly bigger arrays of pointers, if
77674         possible with alloca, if too large with malloc.
77676 2007-10-16  Paul Eggert  <eggert@cs.ucla.edu>
77678         Check for 64-bit int errors in HP-UX 10.20 preprocessor.
77679         Problem reported by H.Merijn Brand in
77680         <http://lists.gnu.org/archive/html/bug-tar/2007-10/msg00018.html>.
77681         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Check preprocessor too.
77682         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Likewise.
77684 2007-10-15  Bruno Haible  <bruno@clisp.org>
77686         * lib/fchdir.c (close, open, closedir, opendir, dup, dup2): Define
77687         with explicit rpl_ prefix.
77688         * lib/fopen.c (fopen): Likewise.
77689         * lib/freopen.c (freopen): Likewise.
77690         * lib/iconv.c (iconv): Likewise.
77691         * lib/iconv_close.c (iconv_close): Likewise.
77693 2007-10-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
77695         * m4/iconv_open (gl_FUNC_ICONV_OPEN_UTF): Fix cache variable name.
77697 2007-10-15  Bruno Haible  <bruno@clisp.org>
77699         * m4/getaddrinfo.m4 (gl_GETADDRINFO, gl_PREREQ_GETADDRINFO): Use
77700         <stddef.h> instead of <stdlib.h> since we only need NULL.
77701         Reported by Ben Pfaff <blp@cs.stanford.edu>.
77703 2007-10-15  Bruno Haible  <bruno@clisp.org>
77705         * doc/gnulib-tool.texi (Initial import): Swap order of -I directives.
77706         Replace paragraph talking about LIBOBJS.
77707         Reported by Colin Watson <cjwatson@debian.org>.
77709 2007-10-15  Bruno Haible  <bruno@clisp.org>
77711         * m4/getaddrinfo.m4 (gl_GETADDRINFO, gl_PREREQ_GETADDRINFO): Include
77712         <stdlib.h> before using NULL.
77714 2007-10-15  Simon Josefsson  <simon@josefsson.org>
77716         * m4/getaddrinfo.m4: Use NULL rather than 0 for pointers.
77717         Reported by Albert Chin <china@thewrittenword.com>.
77719 2007-10-14  Bruno Haible  <bruno@clisp.org>
77721         * modules/iconv_open-utf-tests: New file.
77722         * tests/test-iconv-utf.c: New file.
77724         Enhance iconv_open to support UTF-16BE, UTF-16LE, UTF-32BE, UTF-32LE.
77725         * modules/iconv_open-utf: New file.
77726         * lib/iconv.in.h (_ICONV_UTF8_UTF*, _ICONV_UTF*_UTF8): New macros.
77727         (iconv, iconv_close): New declarations.
77728         * lib/iconv_open.c: Include c-strcase.h. Don't require ICONV_FLAVOR to
77729         be defined.
77730         (iconv_open): Add special handling of conversion between UTF-8 and
77731         UTF-{16,32}{BE,LE}.
77732         * lib/iconv.c: New file, incorporating code from GNU libiconv 1.11.
77733         * lib/iconv_close.c: New file.
77734         * m4/iconv_open.m4 (gl_REPLACE_ICONV_OPEN): New macro, extracted from
77735         gl_FUNC_ICONV_OPEN.
77736         (gl_FUNC_ICONV_OPEN): Use it.
77737         (gl_FUNC_ICONV_OPEN_UTF): New macro.
77738         * m4/iconv_h.m4 (gl_ICONV_H_DEFAULTS): Initialize also REPLACE_ICONV
77739         and REPLACE_ICONV_UTF.
77740         * modules/iconv_open (Depends-on): Add c-strcase.
77741         (Makefile.am): Substitute also REPLACE_ICONV, REPLACE_ICONV_UTF,
77742         ICONV_CONST.
77743         * doc/functions/iconv_open.texi: Mention the iconv_open-utf module.
77745 2007-10-13  Albert Chin  <china@thewrittenword.com>
77746             Bruno Haible  <bruno@clisp.org>
77748         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Perform the test for getaddrinfo
77749         through a link check that includes <netdb.h>. Needed for OSF/1 5.1.
77751 2007-10-13  Bruno Haible  <bruno@clisp.org>
77753         * lib/argp-fmtstream.h (ARGP_FS_EI): If __GNUC_STDC_INLINE__ is
77754         defined, use the ISO C99 inline semantics.
77755         * lib/argp.h (ARGP_EI): Likewise.
77757 2007-10-13  Bruno Haible  <bruno@clisp.org>
77759         Handle 'inline' change in gcc 4.3.0.
77760         * lib/argp-fmtstream.h (argp_fmtstream_putc, argp_fmtstream_puts,
77761         argp_fmtstream_write, argp_fmtstream_set_lmargin,
77762         argp_fmtstream_set_rmargin, argp_fmtstream_set_wmargin,
77763         argp_fmtstream_point): Disable 'extern' declaration if the function
77764         definition is going to be provided inline.
77765         (ARGP_FS_EI): If __GNUC_STDC_INLINE__ is defined, use the GNU C inline
77766         semantics, not the ISO C99 inline semantics.
77767         * lib/argp.h (argp_usage, _option_is_short, _option_is_end): Disable
77768         'extern' declaration if the function definition is going to be provided
77769         inline.
77770         (ARGP_EI): Don't assume GNU C. If __GNUC_STDC_INLINE__ is defined, use
77771         the GNU C inline semantics, not the ISO C99 inline semantics. With
77772         GCC 4.2, avoid a warning.
77774 2007-10-13  Bruno Haible  <bruno@clisp.org>
77776         * lib/freading.h (freading): Enable the use of __freading for
77777         glibc >= 2.7.
77778         * lib/freading.c (freading): Likewise.
77780 2007-10-12  Paul Eggert  <eggert@cs.ucla.edu>
77782         * lib/argp-fmtstream.h (ARGP_FS_EI): Work around GCC 4.2.1 diagnostic
77783         "warning: C99 inline functions are not supported; using GNU89".
77785 2007-10-12  Bruno Haible  <bruno@clisp.org>
77787         * lib/ceil.c (FUNC): Avoid rounding errors for values near a power
77788         of 2.
77789         * tests/test-ceilf2.c: New file.
77790         * modules/ceilf-tests: (Files, Depends-on, Makefile.am): Add new test.
77792         * tests/test-ceilf1.c: Renamed from tests/test-ceilf.c.
77793         * modules/ceilf-tests: Update.
77795 2007-10-12  Bruno Haible  <bruno@clisp.org>
77797         * lib/floor.c (FUNC): Avoid rounding errors for values near a power
77798         of 2.
77799         * tests/test-floorf2.c: New file.
77800         * modules/floorf-tests: (Files, Depends-on, Makefile.am): Add new test.
77802         * tests/test-floorf1.c: Renamed from tests/test-floorf.c.
77803         * modules/floorf-tests: Update.
77805 2007-10-12  Bruno Haible  <bruno@clisp.org>
77807         * tests/test-trunc2.c: New file.
77808         * modules/trunc-tests: (Files, Depends-on, Makefile.am): Add new test.
77810         * tests/test-trunc1.c: Renamed from tests/test-trunc.c.
77811         * modules/trunc-tests: Update.
77813 2007-10-12  Bruno Haible  <bruno@clisp.org>
77815         * lib/trunc.c (FUNC): Avoid rounding errors for values near a power
77816         of 2.
77817         * tests/test-truncf2.c: New file.
77818         * modules/truncf-tests: (Files, Depends-on, Makefile.am): Add new test.
77820         * tests/test-truncf1.c: Renamed from tests/test-truncf.c.
77821         * modules/truncf-tests: Update.
77823 2007-10-11  Eric Blake  <ebb9@byu.net>
77825         Don't claim strerror is broken on Interix.
77826         * doc/functions/strerror.texi (strerror): Known broken systems are
77827         now Solaris 8, and not Interix.
77828         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): No longer filter out
77829         Interix on cross-compile.
77830         Reported by Martin Koeppe in
77831         http://lists.gnu.org/archive/html/bug-gnulib/2007-10/msg00005.html.
77833 2007-10-11  Bruno Haible  <bruno@clisp.org>
77835         * modules/i-ring-tests: New file.
77836         * tests/test-i-ring.c: Renamed from lib/i-ring-test.c. Use ASSERT
77837         instead of assert.
77839 2007-10-11  Bruno Haible  <bruno@clisp.org>
77841         * modules/filenamecat-tests: New file.
77842         * tests/test-filenamecat.c: New file, extracted from lib/filenamecat.c.
77843         * lib/filenamecat.c: Remove test code.
77845 2007-10-11  Paul Eggert  <eggert@cs.ucla.edu>
77847         Simplify and modernize strerror substitute, partly to fix Solaris 8 bug.
77849         * lib/strerror.c: Include <string.h> always, to test interface,
77850         and to remove the need for the dummy.
77851         Include intprops.h to compute width instead of doing it ourselves
77852         and missing a CHAR_BIT declaration, which broke tar 1.19 on Solaris 8.
77853         (strerror): Define it to return NULL if there's no system strerror.
77854         (rpl_strerror): Use INT_STRLEN_BOUND to compute bound.
77855         Omit !HAVE_STRERROR code.  We don't need to worry about supporting
77856         ancient pre-strerror Unix systems well any more.  Saying "unknown
77857         system error" is enough.
77858         * lib/string.in.h (strerror): Simplify the ifdef to reflect the
77859         simpler strerror.c implementation.
77860         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE, gl_PREREQ_STDERROR):
77861         Simplify the tests to reflect the simpler strerror implementation.
77862         * modules/strerror (Depends-on): Add intprops.
77864 2007-10-09  Eric Blake  <ebb9@byu.net>
77866         Silence test-fpending.
77867         * modules/fpending-tests (Files): Add wrapper script.
77868         * tests/test-fpending.sh: New file.
77870 2007-10-09  Bruno Haible  <bruno@clisp.org>
77872         * MODULES.html.sh (func_module): Don't create a hyperlink for
77873         function names like 'printf_frexp'.
77874         (Misc): Add crc, memxor.
77875         (Characteristics of floating types): New section.
77876         (Mathematics): Add ceilf, ceill, floorf, floorl, frexpl-nolibm,
77877         isnanf-nolibm, signbit, trunc, truncf, truncl.
77878         (Enhancements for ISO C 99 functions): New subsection Input/output.
77879         (Support for systems lacking POSIX:2001): Add arpa_inet, calloc-posix,
77880         fcntl, fopen, freopen, fseek, fseeko, ftell, ftello, iconv_open,
77881         locale, malloc-posix, netinet_in, open, realloc-posix, signal, sleep.
77882         (Compatibility checks for POSIX:2001 functions): Add clock-time.
77883         (Enhancements for POSIX:2001 functions): Add chdir-long.
77884         (File system functions): Add areadlink, chdir-safer, read-file.
77885         Remove cycle-check.
77886         (File system as inode set): New section.
77887         (Date and time): Add gethrxtime.
77888         (Multithreading): Add openmp.
77889         (Internationalization functions): Add localename.
77890         (Unicode string functions): Add unistr/u*-mbsnlen.
77891         (Support for maintaining and releasing projects): Add git-version-gen.
77892         (Lone files): Remove directories.
77894 2007-10-08  Ben Pfaff  <blp@gnu.org>
77896         * lib/xmalloca.h: Fix typo in comment.
77898 2007-10-08  Paul Eggert  <eggert@cs.ucla.edu>
77900         * lib/xnanosleep.c (xnanosleep): Don't assume GCC 4.3.0 behavior
77901         when avoiding problems with integer overflow.  Use a portable test
77902         instead.
77904 2007-10-08  Simon Josefsson  <simon@josefsson.org>
77906         * modules/dummy (License): Change to LGPLv2+.
77907         * modules/float (License): Likewise
77908         * modules/realloc (License): Likewise
77909         * modules/stdlib (License): Likewise
77911 2007-10-07  Bruno Haible  <bruno@clisp.org>
77913         * trunc.c (TWO_MANT_DIG): Change type to DOUBLE.
77914         * floor.c (TWO_MANT_DIG): Likewise.
77915         * ceil.c (TWO_MANT_DIG): Likewise.
77916         Reported by Ben Pfaff.
77918 2007-10-07  Bruno Haible  <bruno@clisp.org>
77920         Avoid gcc warnings "declaration of 'exp' shadows a global declaration".
77921         * lib/math.in.h (frexp, frexpl): Change parameter name to 'expptr'.
77922         * lib/frexp.c (FUNC): Likewise.
77923         * lib/printf-frexp.h (printf_frexp): Likewise.
77924         * lib/printf-frexpl.h (printf_frexpl): Likewise.
77925         * lib/printf-frexp.c (FUNC): Likewise.
77926         Suggested by Jim Meyering.
77928 2007-10-07  Jim Meyering  <meyering@redhat.com>
77930         Make xnanosleep's integer overflow test more robust.
77931         * lib/xnanosleep.c (xnanosleep): Declare a temporary to be "volatile",
77932         so that gcc-4.3.0 doesn't optimize away this test for overflow.
77934 2007-10-07  Bruno Haible  <bruno@clisp.org>
77936         * NEWS: Mention the license change.
77938         * doc/gnulib-intro.texi (Copyright): Update the meaning of the license
77939         abbreviations in the modules files.
77941         Change copyright notice from GPLv2+ to GPLv3+.
77942         * README: Change copyright notice.
77943         * MODULES.html.sh: Likewise.
77944         * build-aux/bootstrap.conf: Likewise.
77945         * build-aux/config.libpath: Likewise.
77946         * build-aux/csharpcomp.sh.in: Likewise.
77947         * build-aux/csharpexec.sh.in: Likewise.
77948         * build-aux/install-reloc: Likewise.
77949         * build-aux/javacomp.sh.in: Likewise.
77950         * build-aux/javaexec.sh.in: Likewise.
77951         * build-aux/ldd.sh.in: Likewise.
77952         * build-aux/reloc-ldflags: Likewise.
77953         * build-aux/relocatable.sh.in: Likewise.
77954         * build-aux/x-to-1.in: Likewise.
77955         * check-module: Likewise.
77956         * config/srclistvars.sh: Likewise.
77957         * gnulib-tool: Likewise.
77958         * lib/acl-internal.h: Likewise.
77959         * lib/acl.c: Likewise.
77960         * lib/acl.h: Likewise.
77961         * lib/acl_entries.c: Likewise.
77962         * lib/areadlink-with-size.c: Likewise.
77963         * lib/areadlink.c: Likewise.
77964         * lib/areadlink.h: Likewise.
77965         * lib/argmatch.c: Likewise.
77966         * lib/argmatch.h: Likewise.
77967         * lib/argp-ba.c: Likewise.
77968         * lib/argp-eexst.c: Likewise.
77969         * lib/argp-fmtstream.c: Likewise.
77970         * lib/argp-fmtstream.h: Likewise.
77971         * lib/argp-fs-xinl.c: Likewise.
77972         * lib/argp-help.c: Likewise.
77973         * lib/argp-namefrob.h: Likewise.
77974         * lib/argp-parse.c: Likewise.
77975         * lib/argp-pin.c: Likewise.
77976         * lib/argp-pv.c: Likewise.
77977         * lib/argp-pvh.c: Likewise.
77978         * lib/argp-xinl.c: Likewise.
77979         * lib/argp.h: Likewise.
77980         * lib/at-func.c: Likewise.
77981         * lib/atanl.c: Likewise.
77982         * lib/backupfile.c: Likewise.
77983         * lib/backupfile.h: Likewise.
77984         * lib/basename.c: Likewise.
77985         * lib/binary-io.h: Likewise.
77986         * lib/byteswap.in.h: Likewise.
77987         * lib/c-stack.c: Likewise.
77988         * lib/c-stack.h: Likewise.
77989         * lib/c-strcasestr.c: Likewise.
77990         * lib/c-strcasestr.h: Likewise.
77991         * lib/c-strstr.c: Likewise.
77992         * lib/c-strstr.h: Likewise.
77993         * lib/c-strtod.c: Likewise.
77994         * lib/calloc.c: Likewise.
77995         * lib/canon-host.c: Likewise.
77996         * lib/canon-host.h: Likewise.
77997         * lib/canonicalize-lgpl.c: Likewise.
77998         * lib/canonicalize.c: Likewise.
77999         * lib/canonicalize.h: Likewise.
78000         * lib/ceil.c: Likewise.
78001         * lib/ceilf.c: Likewise.
78002         * lib/ceill.c: Likewise.
78003         * lib/chdir-long.c: Likewise.
78004         * lib/chdir-long.h: Likewise.
78005         * lib/chdir-safer.c: Likewise.
78006         * lib/chdir-safer.h: Likewise.
78007         * lib/chown.c: Likewise.
78008         * lib/classpath.c: Likewise.
78009         * lib/classpath.h: Likewise.
78010         * lib/clean-temp.c: Likewise.
78011         * lib/clean-temp.h: Likewise.
78012         * lib/cloexec.c: Likewise.
78013         * lib/close-stream.c: Likewise.
78014         * lib/closein.c: Likewise.
78015         * lib/closein.h: Likewise.
78016         * lib/closeout.c: Likewise.
78017         * lib/closeout.h: Likewise.
78018         * lib/concat-filename.c: Likewise.
78019         * lib/copy-file.c: Likewise.
78020         * lib/copy-file.h: Likewise.
78021         * lib/count-one-bits.h: Likewise.
78022         * lib/crc.c: Likewise.
78023         * lib/crc.h: Likewise.
78024         * lib/creat-safer.c: Likewise.
78025         * lib/csharpcomp.c: Likewise.
78026         * lib/csharpcomp.h: Likewise.
78027         * lib/csharpexec.c: Likewise.
78028         * lib/csharpexec.h: Likewise.
78029         * lib/cycle-check.c: Likewise.
78030         * lib/cycle-check.h: Likewise.
78031         * lib/diacrit.c: Likewise.
78032         * lib/diacrit.h: Likewise.
78033         * lib/diffseq.h: Likewise.
78034         * lib/dirchownmod.c: Likewise.
78035         * lib/dirent.in.h: Likewise.
78036         * lib/dirfd.c: Likewise.
78037         * lib/dirfd.h: Likewise.
78038         * lib/dirname.c: Likewise.
78039         * lib/dirname.h: Likewise.
78040         * lib/dummy.c: Likewise.
78041         * lib/dup-safer.c: Likewise.
78042         * lib/dup2.c: Likewise.
78043         * lib/eealloc.h: Likewise.
78044         * lib/error.c: Likewise.
78045         * lib/error.h: Likewise.
78046         * lib/euidaccess.c: Likewise.
78047         * lib/exclude.c: Likewise.
78048         * lib/exclude.h: Likewise.
78049         * lib/execute.c: Likewise.
78050         * lib/execute.h: Likewise.
78051         * lib/exitfail.c: Likewise.
78052         * lib/exitfail.h: Likewise.
78053         * lib/expl.c: Likewise.
78054         * lib/fatal-signal.c: Likewise.
78055         * lib/fatal-signal.h: Likewise.
78056         * lib/fbufmode.c: Likewise.
78057         * lib/fbufmode.h: Likewise.
78058         * lib/fchdir.c: Likewise.
78059         * lib/fchmodat.c: Likewise.
78060         * lib/fchownat.c: Likewise.
78061         * lib/fcntl--.h: Likewise.
78062         * lib/fcntl-safer.h: Likewise.
78063         * lib/fcntl.in.h: Likewise.
78064         * lib/fd-safer.c: Likewise.
78065         * lib/fflush.c: Likewise.
78066         * lib/file-has-acl.c: Likewise.
78067         * lib/file-set.c: Likewise.
78068         * lib/file-type.c: Likewise.
78069         * lib/file-type.h: Likewise.
78070         * lib/fileblocks.c: Likewise.
78071         * lib/filemode.c: Likewise.
78072         * lib/filemode.h: Likewise.
78073         * lib/filename.h: Likewise.
78074         * lib/filenamecat.c: Likewise.
78075         * lib/filenamecat.h: Likewise.
78076         * lib/findprog.c: Likewise.
78077         * lib/findprog.h: Likewise.
78078         * lib/float.in.h: Likewise.
78079         * lib/floor.c: Likewise.
78080         * lib/floorf.c: Likewise.
78081         * lib/floorl.c: Likewise.
78082         * lib/fopen-safer.c: Likewise.
78083         * lib/fopen.c: Likewise.
78084         * lib/fpending.c: Likewise.
78085         * lib/fpending.h: Likewise.
78086         * lib/fprintf.c: Likewise.
78087         * lib/fprintftime.h: Likewise.
78088         * lib/fpucw.h: Likewise.
78089         * lib/fpurge.c: Likewise.
78090         * lib/fpurge.h: Likewise.
78091         * lib/freadable.c: Likewise.
78092         * lib/freadable.h: Likewise.
78093         * lib/freadahead.c: Likewise.
78094         * lib/freadahead.h: Likewise.
78095         * lib/freading.c: Likewise.
78096         * lib/freading.h: Likewise.
78097         * lib/free.c: Likewise.
78098         * lib/freopen.c: Likewise.
78099         * lib/frexp.c: Likewise.
78100         * lib/frexpl.c: Likewise.
78101         * lib/fseek.c: Likewise.
78102         * lib/fseterr.c: Likewise.
78103         * lib/fseterr.h: Likewise.
78104         * lib/fstatat.c: Likewise.
78105         * lib/fstrcmp.c: Likewise.
78106         * lib/fstrcmp.h: Likewise.
78107         * lib/fsusage.c: Likewise.
78108         * lib/fsusage.h: Likewise.
78109         * lib/ftell.c: Likewise.
78110         * lib/ftello.c: Likewise.
78111         * lib/fts-cycle.c: Likewise.
78112         * lib/fts.c: Likewise.
78113         * lib/fts_.h: Likewise.
78114         * lib/full-read.c: Likewise.
78115         * lib/full-read.h: Likewise.
78116         * lib/full-write.c: Likewise.
78117         * lib/full-write.h: Likewise.
78118         * lib/fwritable.c: Likewise.
78119         * lib/fwritable.h: Likewise.
78120         * lib/fwriteerror.c: Likewise.
78121         * lib/fwriteerror.h: Likewise.
78122         * lib/fwriting.c: Likewise.
78123         * lib/fwriting.h: Likewise.
78124         * lib/gcd.c: Likewise.
78125         * lib/gcd.h: Likewise.
78126         * lib/getcwd.c: Likewise.
78127         * lib/getdate.h: Likewise.
78128         * lib/getdate.y: Likewise.
78129         * lib/getdomainname.c: Likewise.
78130         * lib/getdomainname.h: Likewise.
78131         * lib/getgroups.c: Likewise.
78132         * lib/gethostname.c: Likewise.
78133         * lib/gethrxtime.c: Likewise.
78134         * lib/gethrxtime.h: Likewise.
78135         * lib/getloadavg.c: Likewise.
78136         * lib/getndelim2.c: Likewise.
78137         * lib/getndelim2.h: Likewise.
78138         * lib/getnline.c: Likewise.
78139         * lib/getnline.h: Likewise.
78140         * lib/getopt.c: Likewise.
78141         * lib/getopt.in.h: Likewise.
78142         * lib/getopt1.c: Likewise.
78143         * lib/getopt_int.h: Likewise.
78144         * lib/getpagesize.h: Likewise.
78145         * lib/getsubopt.c: Likewise.
78146         * lib/gettime.c: Likewise.
78147         * lib/getugroups.c: Likewise.
78148         * lib/getugroups.h: Likewise.
78149         * lib/getusershell.c: Likewise.
78150         * lib/gl_anyavltree_list1.h: Likewise.
78151         * lib/gl_anyavltree_list2.h: Likewise.
78152         * lib/gl_anyhash_list1.h: Likewise.
78153         * lib/gl_anyhash_list2.h: Likewise.
78154         * lib/gl_anylinked_list1.h: Likewise.
78155         * lib/gl_anylinked_list2.h: Likewise.
78156         * lib/gl_anyrbtree_list1.h: Likewise.
78157         * lib/gl_anyrbtree_list2.h: Likewise.
78158         * lib/gl_anytree_list1.h: Likewise.
78159         * lib/gl_anytree_list2.h: Likewise.
78160         * lib/gl_anytree_oset.h: Likewise.
78161         * lib/gl_anytreehash_list1.h: Likewise.
78162         * lib/gl_anytreehash_list2.h: Likewise.
78163         * lib/gl_array_list.c: Likewise.
78164         * lib/gl_array_list.h: Likewise.
78165         * lib/gl_array_oset.c: Likewise.
78166         * lib/gl_array_oset.h: Likewise.
78167         * lib/gl_avltree_list.c: Likewise.
78168         * lib/gl_avltree_list.h: Likewise.
78169         * lib/gl_avltree_oset.c: Likewise.
78170         * lib/gl_avltree_oset.h: Likewise.
78171         * lib/gl_avltreehash_list.c: Likewise.
78172         * lib/gl_avltreehash_list.h: Likewise.
78173         * lib/gl_carray_list.c: Likewise.
78174         * lib/gl_carray_list.h: Likewise.
78175         * lib/gl_linked_list.c: Likewise.
78176         * lib/gl_linked_list.h: Likewise.
78177         * lib/gl_linkedhash_list.c: Likewise.
78178         * lib/gl_linkedhash_list.h: Likewise.
78179         * lib/gl_list.c: Likewise.
78180         * lib/gl_list.h: Likewise.
78181         * lib/gl_oset.c: Likewise.
78182         * lib/gl_oset.h: Likewise.
78183         * lib/gl_rbtree_list.c: Likewise.
78184         * lib/gl_rbtree_list.h: Likewise.
78185         * lib/gl_rbtree_oset.c: Likewise.
78186         * lib/gl_rbtree_oset.h: Likewise.
78187         * lib/gl_rbtreehash_list.c: Likewise.
78188         * lib/gl_rbtreehash_list.h: Likewise.
78189         * lib/gl_sublist.c: Likewise.
78190         * lib/gl_sublist.h: Likewise.
78191         * lib/group-member.c: Likewise.
78192         * lib/group-member.h: Likewise.
78193         * lib/hard-locale.c: Likewise.
78194         * lib/hard-locale.h: Likewise.
78195         * lib/hash-pjw.c: Likewise.
78196         * lib/hash-pjw.h: Likewise.
78197         * lib/hash-triple.c: Likewise.
78198         * lib/hash.c: Likewise.
78199         * lib/hash.h: Likewise.
78200         * lib/human.c: Likewise.
78201         * lib/human.h: Likewise.
78202         * lib/i-ring.c: Likewise.
78203         * lib/i-ring.h: Likewise.
78204         * lib/idcache.c: Likewise.
78205         * lib/imaxabs.c: Likewise.
78206         * lib/imaxdiv.c: Likewise.
78207         * lib/inet_pton.c: Likewise.
78208         * lib/inet_pton.h: Likewise.
78209         * lib/intprops.h: Likewise.
78210         * lib/inttostr.c: Likewise.
78211         * lib/inttostr.h: Likewise.
78212         * lib/inttypes.in.h: Likewise.
78213         * lib/isapipe.c: Likewise.
78214         * lib/isdir.c: Likewise.
78215         * lib/isnan.c: Likewise.
78216         * lib/isnan.h: Likewise.
78217         * lib/isnanf.c: Likewise.
78218         * lib/isnanf.h: Likewise.
78219         * lib/isnanl-nolibm.h: Likewise.
78220         * lib/isnanl.c: Likewise.
78221         * lib/isnanl.h: Likewise.
78222         * lib/javacomp.c: Likewise.
78223         * lib/javacomp.h: Likewise.
78224         * lib/javaexec.c: Likewise.
78225         * lib/javaexec.h: Likewise.
78226         * lib/javaversion.c: Likewise.
78227         * lib/javaversion.h: Likewise.
78228         * lib/javaversion.java: Likewise.
78229         * lib/lbrkprop.h: Likewise.
78230         * lib/lchmod.h: Likewise.
78231         * lib/lchown.c: Likewise.
78232         * lib/ldexpl.c: Likewise.
78233         * lib/linebreak.c: Likewise.
78234         * lib/linebreak.h: Likewise.
78235         * lib/linebuffer.c: Likewise.
78236         * lib/linebuffer.h: Likewise.
78237         * lib/locale.in.h: Likewise.
78238         * lib/logl.c: Likewise.
78239         * lib/long-options.c: Likewise.
78240         * lib/long-options.h: Likewise.
78241         * lib/lstat.c: Likewise.
78242         * lib/lstat.h: Likewise.
78243         * lib/math.in.h: Likewise.
78244         * lib/mbchar.c: Likewise.
78245         * lib/mbchar.h: Likewise.
78246         * lib/mbfile.h: Likewise.
78247         * lib/mbiter.h: Likewise.
78248         * lib/mbscasecmp.c: Likewise.
78249         * lib/mbscasestr.c: Likewise.
78250         * lib/mbschr.c: Likewise.
78251         * lib/mbscspn.c: Likewise.
78252         * lib/mbslen.c: Likewise.
78253         * lib/mbsncasecmp.c: Likewise.
78254         * lib/mbsnlen.c: Likewise.
78255         * lib/mbspbrk.c: Likewise.
78256         * lib/mbspcasecmp.c: Likewise.
78257         * lib/mbsrchr.c: Likewise.
78258         * lib/mbssep.c: Likewise.
78259         * lib/mbsspn.c: Likewise.
78260         * lib/mbsstr.c: Likewise.
78261         * lib/mbstok_r.c: Likewise.
78262         * lib/mbswidth.c: Likewise.
78263         * lib/mbswidth.h: Likewise.
78264         * lib/mbuiter.h: Likewise.
78265         * lib/memcasecmp.c: Likewise.
78266         * lib/memcasecmp.h: Likewise.
78267         * lib/memchr.c: Likewise.
78268         * lib/memcmp.c: Likewise.
78269         * lib/memcoll.c: Likewise.
78270         * lib/memcoll.h: Likewise.
78271         * lib/memcpy.c: Likewise.
78272         * lib/memrchr.c: Likewise.
78273         * lib/mkancesdirs.c: Likewise.
78274         * lib/mkdir-p.c: Likewise.
78275         * lib/mkdir-p.h: Likewise.
78276         * lib/mkdir.c: Likewise.
78277         * lib/mkdirat.c: Likewise.
78278         * lib/mkdtemp.c: Likewise.
78279         * lib/mkstemp-safer.c: Likewise.
78280         * lib/mkstemp.c: Likewise.
78281         * lib/modechange.c: Likewise.
78282         * lib/modechange.h: Likewise.
78283         * lib/mountlist.c: Likewise.
78284         * lib/mountlist.h: Likewise.
78285         * lib/mpsort.c: Likewise.
78286         * lib/nanosleep.c: Likewise.
78287         * lib/obstack.c: Likewise.
78288         * lib/obstack.h: Likewise.
78289         * lib/open-safer.c: Likewise.
78290         * lib/open.c: Likewise.
78291         * lib/openat-die.c: Likewise.
78292         * lib/openat-priv.h: Likewise.
78293         * lib/openat-proc.c: Likewise.
78294         * lib/openat.c: Likewise.
78295         * lib/openat.h: Likewise.
78296         * lib/pagealign_alloc.c: Likewise.
78297         * lib/pagealign_alloc.h: Likewise.
78298         * lib/physmem.c: Likewise.
78299         * lib/physmem.h: Likewise.
78300         * lib/pipe-safer.c: Likewise.
78301         * lib/pipe.c: Likewise.
78302         * lib/pipe.h: Likewise.
78303         * lib/posixtm.c: Likewise.
78304         * lib/posixtm.h: Likewise.
78305         * lib/posixver.c: Likewise.
78306         * lib/printf-frexp.c: Likewise.
78307         * lib/printf-frexp.h: Likewise.
78308         * lib/printf-frexpl.c: Likewise.
78309         * lib/printf-frexpl.h: Likewise.
78310         * lib/printf.c: Likewise.
78311         * lib/progname.c: Likewise.
78312         * lib/progname.h: Likewise.
78313         * lib/progreloc.c: Likewise.
78314         * lib/putenv.c: Likewise.
78315         * lib/quote.c: Likewise.
78316         * lib/quote.h: Likewise.
78317         * lib/quotearg.c: Likewise.
78318         * lib/quotearg.h: Likewise.
78319         * lib/raise.c: Likewise.
78320         * lib/readline.c: Likewise.
78321         * lib/readline.h: Likewise.
78322         * lib/readlink.c: Likewise.
78323         * lib/readtokens.c: Likewise.
78324         * lib/readtokens.h: Likewise.
78325         * lib/readtokens0.c: Likewise.
78326         * lib/readtokens0.h: Likewise.
78327         * lib/readutmp.c: Likewise.
78328         * lib/readutmp.h: Likewise.
78329         * lib/realloc.c: Likewise.
78330         * lib/relocwrapper.c: Likewise.
78331         * lib/rename-dest-slash.c: Likewise.
78332         * lib/rename.c: Likewise.
78333         * lib/rmdir.c: Likewise.
78334         * lib/rpmatch.c: Likewise.
78335         * lib/safe-read.c: Likewise.
78336         * lib/safe-read.h: Likewise.
78337         * lib/safe-write.c: Likewise.
78338         * lib/safe-write.h: Likewise.
78339         * lib/same-inode.h: Likewise.
78340         * lib/same.c: Likewise.
78341         * lib/same.h: Likewise.
78342         * lib/save-cwd.c: Likewise.
78343         * lib/save-cwd.h: Likewise.
78344         * lib/savedir.c: Likewise.
78345         * lib/savedir.h: Likewise.
78346         * lib/savewd.c: Likewise.
78347         * lib/savewd.h: Likewise.
78348         * lib/search.in.h: Likewise.
78349         * lib/setenv.c: Likewise.
78350         * lib/setenv.h: Likewise.
78351         * lib/settime.c: Likewise.
78352         * lib/sh-quote.c: Likewise.
78353         * lib/sh-quote.h: Likewise.
78354         * lib/sig2str.c: Likewise.
78355         * lib/sig2str.h: Likewise.
78356         * lib/signal.in.h: Likewise.
78357         * lib/signbitd.c: Likewise.
78358         * lib/signbitf.c: Likewise.
78359         * lib/signbitl.c: Likewise.
78360         * lib/sigprocmask.c: Likewise.
78361         * lib/sincosl.c: Likewise.
78362         * lib/sleep.c: Likewise.
78363         * lib/sprintf.c: Likewise.
78364         * lib/sqrtl.c: Likewise.
78365         * lib/stat-time.h: Likewise.
78366         * lib/stdio--.h: Likewise.
78367         * lib/stdio-safer.h: Likewise.
78368         * lib/stdlib--.h: Likewise.
78369         * lib/stdlib-safer.h: Likewise.
78370         * lib/stdlib.in.h: Likewise.
78371         * lib/stpcpy.c: Likewise.
78372         * lib/stpncpy.c: Likewise.
78373         * lib/strchrnul.c: Likewise.
78374         * lib/strcspn.c: Likewise.
78375         * lib/strerror.c: Likewise.
78376         * lib/strftime.c: Likewise.
78377         * lib/strftime.h: Likewise.
78378         * lib/striconveh.c: Likewise.
78379         * lib/striconveh.h: Likewise.
78380         * lib/striconveha.c: Likewise.
78381         * lib/striconveha.h: Likewise.
78382         * lib/stripslash.c: Likewise.
78383         * lib/strnlen1.c: Likewise.
78384         * lib/strnlen1.h: Likewise.
78385         * lib/strtod.c: Likewise.
78386         * lib/strtoimax.c: Likewise.
78387         * lib/strtok_r.c: Likewise.
78388         * lib/strtol.c: Likewise.
78389         * lib/strtoll.c: Likewise.
78390         * lib/strtoul.c: Likewise.
78391         * lib/strtoull.c: Likewise.
78392         * lib/sysexits.in.h: Likewise.
78393         * lib/tempname.c: Likewise.
78394         * lib/tempname.h: Likewise.
78395         * lib/timespec.h: Likewise.
78396         * lib/tls.c: Likewise.
78397         * lib/tls.h: Likewise.
78398         * lib/tmpdir.c: Likewise.
78399         * lib/tmpdir.h: Likewise.
78400         * lib/tmpfile-safer.c: Likewise.
78401         * lib/tmpfile.c: Likewise.
78402         * lib/trigl.c: Likewise.
78403         * lib/trigl.h: Likewise.
78404         * lib/trim.c: Likewise.
78405         * lib/trim.h: Likewise.
78406         * lib/trunc.c: Likewise.
78407         * lib/truncf.c: Likewise.
78408         * lib/truncl.c: Likewise.
78409         * lib/tsearch.c: Likewise.
78410         * lib/unicodeio.c: Likewise.
78411         * lib/unicodeio.h: Likewise.
78412         * lib/unistd--.h: Likewise.
78413         * lib/unistd-safer.h: Likewise.
78414         * lib/unistdio/ulc-fprintf.c: Likewise.
78415         * lib/unistdio/ulc-vfprintf.c: Likewise.
78416         * lib/unlinkdir.c: Likewise.
78417         * lib/unlinkdir.h: Likewise.
78418         * lib/unlocked-io.h: Likewise.
78419         * lib/unsetenv.c: Likewise.
78420         * lib/userspec.c: Likewise.
78421         * lib/utime.c: Likewise.
78422         * lib/utimecmp.c: Likewise.
78423         * lib/utimecmp.h: Likewise.
78424         * lib/utimens.c: Likewise.
78425         * lib/verify.h: Likewise.
78426         * lib/verror.c: Likewise.
78427         * lib/verror.h: Likewise.
78428         * lib/version-etc-fsf.c: Likewise.
78429         * lib/version-etc.c: Likewise.
78430         * lib/version-etc.h: Likewise.
78431         * lib/vfprintf.c: Likewise.
78432         * lib/vprintf.c: Likewise.
78433         * lib/vsprintf.c: Likewise.
78434         * lib/w32spawn.h: Likewise.
78435         * lib/wait-process.c: Likewise.
78436         * lib/wait-process.h: Likewise.
78437         * lib/wcwidth.c: Likewise.
78438         * lib/write-any-file.c: Likewise.
78439         * lib/xalloc-die.c: Likewise.
78440         * lib/xalloc.h: Likewise.
78441         * lib/xasprintf.c: Likewise.
78442         * lib/xgetcwd.c: Likewise.
78443         * lib/xgetcwd.h: Likewise.
78444         * lib/xgetdomainname.c: Likewise.
78445         * lib/xgetdomainname.h: Likewise.
78446         * lib/xgethostname.c: Likewise.
78447         * lib/xmalloc.c: Likewise.
78448         * lib/xmalloca.c: Likewise.
78449         * lib/xmalloca.h: Likewise.
78450         * lib/xmemcoll.c: Likewise.
78451         * lib/xnanosleep.c: Likewise.
78452         * lib/xreadlink.c: Likewise.
78453         * lib/xreadlink.h: Likewise.
78454         * lib/xsetenv.c: Likewise.
78455         * lib/xsetenv.h: Likewise.
78456         * lib/xstriconv.c: Likewise.
78457         * lib/xstriconv.h: Likewise.
78458         * lib/xstrndup.c: Likewise.
78459         * lib/xstrndup.h: Likewise.
78460         * lib/xstrtod.c: Likewise.
78461         * lib/xstrtod.h: Likewise.
78462         * lib/xstrtol-error.c: Likewise.
78463         * lib/xstrtol.c: Likewise.
78464         * lib/xstrtol.h: Likewise.
78465         * lib/xtime.h: Likewise.
78466         * lib/xvasprintf.c: Likewise.
78467         * lib/xvasprintf.h: Likewise.
78468         * lib/yesno.c: Likewise.
78469         * lib/yesno.h: Likewise.
78470         * posix-modules: Likewise.
78471         * tests/test-alloca-opt.c: Likewise.
78472         * tests/test-arcfour.c: Likewise.
78473         * tests/test-arctwo.c: Likewise.
78474         * tests/test-argmatch.c: Likewise.
78475         * tests/test-argp-2.sh: Likewise.
78476         * tests/test-argp.c: Likewise.
78477         * tests/test-arpa_inet.c: Likewise.
78478         * tests/test-array_list.c: Likewise.
78479         * tests/test-array_oset.c: Likewise.
78480         * tests/test-atexit.c: Likewise.
78481         * tests/test-avltree_list.c: Likewise.
78482         * tests/test-avltree_oset.c: Likewise.
78483         * tests/test-avltreehash_list.c: Likewise.
78484         * tests/test-base64.c: Likewise.
78485         * tests/test-binary-io.c: Likewise.
78486         * tests/test-byteswap.c: Likewise.
78487         * tests/test-c-ctype.c: Likewise.
78488         * tests/test-c-strcasecmp.c: Likewise.
78489         * tests/test-c-strcasestr.c: Likewise.
78490         * tests/test-c-strncasecmp.c: Likewise.
78491         * tests/test-c-strstr.c: Likewise.
78492         * tests/test-canonicalize-lgpl.c: Likewise.
78493         * tests/test-canonicalize.c: Likewise.
78494         * tests/test-carray_list.c: Likewise.
78495         * tests/test-ceilf.c: Likewise.
78496         * tests/test-ceill.c: Likewise.
78497         * tests/test-count-one-bits.c: Likewise.
78498         * tests/test-crc.c: Likewise.
78499         * tests/test-dirname.c: Likewise.
78500         * tests/test-fbufmode.c: Likewise.
78501         * tests/test-fcntl.c: Likewise.
78502         * tests/test-fflush.c: Likewise.
78503         * tests/test-floorf.c: Likewise.
78504         * tests/test-floorl.c: Likewise.
78505         * tests/test-fopen.c: Likewise.
78506         * tests/test-fprintf-posix.c: Likewise.
78507         * tests/test-fprintf-posix.h: Likewise.
78508         * tests/test-fpurge.c: Likewise.
78509         * tests/test-freadable.c: Likewise.
78510         * tests/test-freadahead.c: Likewise.
78511         * tests/test-freading.c: Likewise.
78512         * tests/test-freopen.c: Likewise.
78513         * tests/test-frexp.c: Likewise.
78514         * tests/test-frexpl.c: Likewise.
78515         * tests/test-fseek.c: Likewise.
78516         * tests/test-fseeko.c: Likewise.
78517         * tests/test-fseterr.c: Likewise.
78518         * tests/test-fstrcmp.c: Likewise.
78519         * tests/test-ftell.c: Likewise.
78520         * tests/test-ftello.c: Likewise.
78521         * tests/test-fwritable.c: Likewise.
78522         * tests/test-fwriting.c: Likewise.
78523         * tests/test-getaddrinfo.c: Likewise.
78524         * tests/test-getpass.c: Likewise.
78525         * tests/test-gettimeofday.c: Likewise.
78526         * tests/test-hmac-md5.c: Likewise.
78527         * tests/test-hmac-sha1.c: Likewise.
78528         * tests/test-iconv.c: Likewise.
78529         * tests/test-iconvme.c: Likewise.
78530         * tests/test-inttypes.c: Likewise.
78531         * tests/test-isnan.c: Likewise.
78532         * tests/test-isnanf.c: Likewise.
78533         * tests/test-isnanl-nolibm.c: Likewise.
78534         * tests/test-isnanl.c: Likewise.
78535         * tests/test-isnanl.h: Likewise.
78536         * tests/test-ldexpl.c: Likewise.
78537         * tests/test-linked_list.c: Likewise.
78538         * tests/test-linkedhash_list.c: Likewise.
78539         * tests/test-locale.c: Likewise.
78540         * tests/test-localename.c: Likewise.
78541         * tests/test-lock.c: Likewise.
78542         * tests/test-lseek.c: Likewise.
78543         * tests/test-malloca.c: Likewise.
78544         * tests/test-math.c: Likewise.
78545         * tests/test-mbscasecmp.c: Likewise.
78546         * tests/test-mbscasestr1.c: Likewise.
78547         * tests/test-mbscasestr2.c: Likewise.
78548         * tests/test-mbscasestr3.c: Likewise.
78549         * tests/test-mbscasestr4.c: Likewise.
78550         * tests/test-mbschr.c: Likewise.
78551         * tests/test-mbscspn.c: Likewise.
78552         * tests/test-mbsncasecmp.c: Likewise.
78553         * tests/test-mbspbrk.c: Likewise.
78554         * tests/test-mbspcasecmp.c: Likewise.
78555         * tests/test-mbsrchr.c: Likewise.
78556         * tests/test-mbsspn.c: Likewise.
78557         * tests/test-mbsstr1.c: Likewise.
78558         * tests/test-mbsstr2.c: Likewise.
78559         * tests/test-mbsstr3.c: Likewise.
78560         * tests/test-md5.c: Likewise.
78561         * tests/test-memmem.c: Likewise.
78562         * tests/test-netinet_in.c: Likewise.
78563         * tests/test-open.c: Likewise.
78564         * tests/test-printf-frexp.c: Likewise.
78565         * tests/test-printf-frexpl.c: Likewise.
78566         * tests/test-printf-posix.c: Likewise.
78567         * tests/test-printf-posix.h: Likewise.
78568         * tests/test-rbtree_list.c: Likewise.
78569         * tests/test-rbtree_oset.c: Likewise.
78570         * tests/test-rbtreehash_list.c: Likewise.
78571         * tests/test-read-file.c: Likewise.
78572         * tests/test-rijndael.c: Likewise.
78573         * tests/test-search.c: Likewise.
78574         * tests/test-signbit.c: Likewise.
78575         * tests/test-sleep.c: Likewise.
78576         * tests/test-snprintf-posix.c: Likewise.
78577         * tests/test-snprintf-posix.h: Likewise.
78578         * tests/test-snprintf.c: Likewise.
78579         * tests/test-sprintf-posix.c: Likewise.
78580         * tests/test-sprintf-posix.h: Likewise.
78581         * tests/test-stat-time.c: Likewise.
78582         * tests/test-stdbool.c: Likewise.
78583         * tests/test-stdint.c: Likewise.
78584         * tests/test-stdio.c: Likewise.
78585         * tests/test-stdlib.c: Likewise.
78586         * tests/test-stpncpy.c: Likewise.
78587         * tests/test-strcasestr.c: Likewise.
78588         * tests/test-striconv.c: Likewise.
78589         * tests/test-striconveh.c: Likewise.
78590         * tests/test-striconveha.c: Likewise.
78591         * tests/test-string.c: Likewise.
78592         * tests/test-sys_select.c: Likewise.
78593         * tests/test-sys_socket.c: Likewise.
78594         * tests/test-sys_stat.c: Likewise.
78595         * tests/test-sys_time.c: Likewise.
78596         * tests/test-sysexits.c: Likewise.
78597         * tests/test-time.c: Likewise.
78598         * tests/test-tls.c: Likewise.
78599         * tests/test-trunc.c: Likewise.
78600         * tests/test-truncf.c: Likewise.
78601         * tests/test-truncl.c: Likewise.
78602         * tests/test-unistd.c: Likewise.
78603         * tests/test-vasnprintf-posix.c: Likewise.
78604         * tests/test-vasnprintf-posix2.c: Likewise.
78605         * tests/test-vasnprintf.c: Likewise.
78606         * tests/test-vasprintf-posix.c: Likewise.
78607         * tests/test-vasprintf.c: Likewise.
78608         * tests/test-verify.c: Likewise.
78609         * tests/test-vfprintf-posix.c: Likewise.
78610         * tests/test-vprintf-posix.c: Likewise.
78611         * tests/test-vsnprintf-posix.c: Likewise.
78612         * tests/test-vsnprintf.c: Likewise.
78613         * tests/test-vsprintf-posix.c: Likewise.
78614         * tests/test-wchar.c: Likewise.
78615         * tests/test-wctype.c: Likewise.
78616         * tests/test-wcwidth.c: Likewise.
78617         * tests/test-xstrtol.c: Likewise.
78618         * tests/test-xvasprintf.c: Likewise.
78619         * tests/uniconv/test-u16-conv-from-enc.c: Likewise.
78620         * tests/uniconv/test-u16-conv-to-enc.c: Likewise.
78621         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
78622         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
78623         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
78624         * tests/uniconv/test-u32-conv-to-enc.c: Likewise.
78625         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
78626         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
78627         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
78628         * tests/uniconv/test-u8-conv-to-enc.c: Likewise.
78629         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
78630         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
78631         * tests/uniname/test-uninames.c: Likewise.
78632         * tests/unistdio/test-u16-asnprintf1.c: Likewise.
78633         * tests/unistdio/test-u16-asnprintf1.h: Likewise.
78634         * tests/unistdio/test-u16-printf1.h: Likewise.
78635         * tests/unistdio/test-u16-vasnprintf1.c: Likewise.
78636         * tests/unistdio/test-u16-vasnprintf2.c: Likewise.
78637         * tests/unistdio/test-u16-vasnprintf3.c: Likewise.
78638         * tests/unistdio/test-u16-vasprintf1.c: Likewise.
78639         * tests/unistdio/test-u16-vsnprintf1.c: Likewise.
78640         * tests/unistdio/test-u16-vsprintf1.c: Likewise.
78641         * tests/unistdio/test-u32-asnprintf1.c: Likewise.
78642         * tests/unistdio/test-u32-asnprintf1.h: Likewise.
78643         * tests/unistdio/test-u32-printf1.h: Likewise.
78644         * tests/unistdio/test-u32-vasnprintf1.c: Likewise.
78645         * tests/unistdio/test-u32-vasnprintf2.c: Likewise.
78646         * tests/unistdio/test-u32-vasnprintf3.c: Likewise.
78647         * tests/unistdio/test-u32-vasprintf1.c: Likewise.
78648         * tests/unistdio/test-u32-vsnprintf1.c: Likewise.
78649         * tests/unistdio/test-u32-vsprintf1.c: Likewise.
78650         * tests/unistdio/test-u8-asnprintf1.c: Likewise.
78651         * tests/unistdio/test-u8-asnprintf1.h: Likewise.
78652         * tests/unistdio/test-u8-printf1.h: Likewise.
78653         * tests/unistdio/test-u8-vasnprintf1.c: Likewise.
78654         * tests/unistdio/test-u8-vasnprintf2.c: Likewise.
78655         * tests/unistdio/test-u8-vasnprintf3.c: Likewise.
78656         * tests/unistdio/test-u8-vasprintf1.c: Likewise.
78657         * tests/unistdio/test-u8-vsnprintf1.c: Likewise.
78658         * tests/unistdio/test-u8-vsprintf1.c: Likewise.
78659         * tests/unistdio/test-ulc-asnprintf1.c: Likewise.
78660         * tests/unistdio/test-ulc-asnprintf1.h: Likewise.
78661         * tests/unistdio/test-ulc-printf1.h: Likewise.
78662         * tests/unistdio/test-ulc-vasnprintf1.c: Likewise.
78663         * tests/unistdio/test-ulc-vasnprintf2.c: Likewise.
78664         * tests/unistdio/test-ulc-vasnprintf3.c: Likewise.
78665         * tests/unistdio/test-ulc-vasprintf1.c: Likewise.
78666         * tests/unistdio/test-ulc-vsnprintf1.c: Likewise.
78667         * tests/unistdio/test-ulc-vsprintf1.c: Likewise.
78668         * tests/uniwidth/test-u16-strwidth.c: Likewise.
78669         * tests/uniwidth/test-u16-width.c: Likewise.
78670         * tests/uniwidth/test-u32-strwidth.c: Likewise.
78671         * tests/uniwidth/test-u32-width.c: Likewise.
78672         * tests/uniwidth/test-u8-strwidth.c: Likewise.
78673         * tests/uniwidth/test-u8-width.c: Likewise.
78674         * tests/uniwidth/test-uc_width.c: Likewise.
78675         * config/srclist-update: Likewise.
78676         (fixlicense): Update to GPLv3+.
78678         Change copyright notice from LGPLv2.1+ to LGPLv3+.
78679         * tests/test-tsearch.c: Change copyright notice.
78681         Change copyright notice from LGPLv2.0+ to LGPLv3+.
78682         * lib/c-strcaseeq.h: Change copyright notice.
78683         * lib/streq.h: Likewise.
78684         * lib/uniconv.h: Likewise.
78685         * lib/uniconv/u-conv-from-enc.h: Likewise.
78686         * lib/uniconv/u-conv-to-enc.h: Likewise.
78687         * lib/uniconv/u-strconv-from-enc.h: Likewise.
78688         * lib/uniconv/u-strconv-to-enc.h: Likewise.
78689         * lib/uniconv/u16-conv-from-enc.c: Likewise.
78690         * lib/uniconv/u16-conv-to-enc.c: Likewise.
78691         * lib/uniconv/u16-strconv-from-enc.c: Likewise.
78692         * lib/uniconv/u16-strconv-from-locale.c: Likewise.
78693         * lib/uniconv/u16-strconv-to-enc.c: Likewise.
78694         * lib/uniconv/u16-strconv-to-locale.c: Likewise.
78695         * lib/uniconv/u32-conv-from-enc.c: Likewise.
78696         * lib/uniconv/u32-conv-to-enc.c: Likewise.
78697         * lib/uniconv/u32-strconv-from-enc.c: Likewise.
78698         * lib/uniconv/u32-strconv-from-locale.c: Likewise.
78699         * lib/uniconv/u32-strconv-to-enc.c: Likewise.
78700         * lib/uniconv/u32-strconv-to-locale.c: Likewise.
78701         * lib/uniconv/u8-conv-from-enc.c: Likewise.
78702         * lib/uniconv/u8-conv-to-enc.c: Likewise.
78703         * lib/uniconv/u8-strconv-from-enc.c: Likewise.
78704         * lib/uniconv/u8-strconv-from-locale.c: Likewise.
78705         * lib/uniconv/u8-strconv-to-enc.c: Likewise.
78706         * lib/uniconv/u8-strconv-to-locale.c: Likewise.
78707         * lib/uniname.h: Likewise.
78708         * lib/uniname/uniname.c: Likewise.
78709         * lib/unistdio.h: Likewise.
78710         * lib/unistdio/u-asnprintf.h: Likewise.
78711         * lib/unistdio/u-asprintf.h: Likewise.
78712         * lib/unistdio/u-printf-args.c: Likewise.
78713         * lib/unistdio/u-printf-args.h: Likewise.
78714         * lib/unistdio/u-printf-parse.h: Likewise.
78715         * lib/unistdio/u-snprintf.h: Likewise.
78716         * lib/unistdio/u-sprintf.h: Likewise.
78717         * lib/unistdio/u-vasprintf.h: Likewise.
78718         * lib/unistdio/u-vsnprintf.h: Likewise.
78719         * lib/unistdio/u-vsprintf.h: Likewise.
78720         * lib/unistdio/u16-asnprintf.c: Likewise.
78721         * lib/unistdio/u16-asprintf.c: Likewise.
78722         * lib/unistdio/u16-printf-parse.c: Likewise.
78723         * lib/unistdio/u16-snprintf.c: Likewise.
78724         * lib/unistdio/u16-sprintf.c: Likewise.
78725         * lib/unistdio/u16-u16-asnprintf.c: Likewise.
78726         * lib/unistdio/u16-u16-asprintf.c: Likewise.
78727         * lib/unistdio/u16-u16-snprintf.c: Likewise.
78728         * lib/unistdio/u16-u16-sprintf.c: Likewise.
78729         * lib/unistdio/u16-u16-vasnprintf.c: Likewise.
78730         * lib/unistdio/u16-u16-vasprintf.c: Likewise.
78731         * lib/unistdio/u16-u16-vsnprintf.c: Likewise.
78732         * lib/unistdio/u16-u16-vsprintf.c: Likewise.
78733         * lib/unistdio/u16-vasnprintf.c: Likewise.
78734         * lib/unistdio/u16-vasprintf.c: Likewise.
78735         * lib/unistdio/u16-vsnprintf.c: Likewise.
78736         * lib/unistdio/u16-vsprintf.c: Likewise.
78737         * lib/unistdio/u32-asnprintf.c: Likewise.
78738         * lib/unistdio/u32-asprintf.c: Likewise.
78739         * lib/unistdio/u32-printf-parse.c: Likewise.
78740         * lib/unistdio/u32-snprintf.c: Likewise.
78741         * lib/unistdio/u32-sprintf.c: Likewise.
78742         * lib/unistdio/u32-u32-asnprintf.c: Likewise.
78743         * lib/unistdio/u32-u32-asprintf.c: Likewise.
78744         * lib/unistdio/u32-u32-snprintf.c: Likewise.
78745         * lib/unistdio/u32-u32-sprintf.c: Likewise.
78746         * lib/unistdio/u32-u32-vasnprintf.c: Likewise.
78747         * lib/unistdio/u32-u32-vasprintf.c: Likewise.
78748         * lib/unistdio/u32-u32-vsnprintf.c: Likewise.
78749         * lib/unistdio/u32-u32-vsprintf.c: Likewise.
78750         * lib/unistdio/u32-vasnprintf.c: Likewise.
78751         * lib/unistdio/u32-vasprintf.c: Likewise.
78752         * lib/unistdio/u32-vsnprintf.c: Likewise.
78753         * lib/unistdio/u32-vsprintf.c: Likewise.
78754         * lib/unistdio/u8-asnprintf.c: Likewise.
78755         * lib/unistdio/u8-asprintf.c: Likewise.
78756         * lib/unistdio/u8-printf-parse.c: Likewise.
78757         * lib/unistdio/u8-snprintf.c: Likewise.
78758         * lib/unistdio/u8-sprintf.c: Likewise.
78759         * lib/unistdio/u8-u8-asnprintf.c: Likewise.
78760         * lib/unistdio/u8-u8-asprintf.c: Likewise.
78761         * lib/unistdio/u8-u8-snprintf.c: Likewise.
78762         * lib/unistdio/u8-u8-sprintf.c: Likewise.
78763         * lib/unistdio/u8-u8-vasnprintf.c: Likewise.
78764         * lib/unistdio/u8-u8-vasprintf.c: Likewise.
78765         * lib/unistdio/u8-u8-vsnprintf.c: Likewise.
78766         * lib/unistdio/u8-u8-vsprintf.c: Likewise.
78767         * lib/unistdio/u8-vasnprintf.c: Likewise.
78768         * lib/unistdio/u8-vasprintf.c: Likewise.
78769         * lib/unistdio/u8-vsnprintf.c: Likewise.
78770         * lib/unistdio/u8-vsprintf.c: Likewise.
78771         * lib/unistdio/ulc-asnprintf.c: Likewise.
78772         * lib/unistdio/ulc-asprintf.c: Likewise.
78773         * lib/unistdio/ulc-printf-parse.c: Likewise.
78774         * lib/unistdio/ulc-snprintf.c: Likewise.
78775         * lib/unistdio/ulc-sprintf.c: Likewise.
78776         * lib/unistdio/ulc-vasnprintf.c: Likewise.
78777         * lib/unistdio/ulc-vasprintf.c: Likewise.
78778         * lib/unistdio/ulc-vsnprintf.c: Likewise.
78779         * lib/unistdio/ulc-vsprintf.c: Likewise.
78780         * lib/unistr.h: Likewise.
78781         * lib/unistr/u-cpy-alloc.h: Likewise.
78782         * lib/unistr/u-cpy.h: Likewise.
78783         * lib/unistr/u-endswith.h: Likewise.
78784         * lib/unistr/u-move.h: Likewise.
78785         * lib/unistr/u-set.h: Likewise.
78786         * lib/unistr/u-startswith.h: Likewise.
78787         * lib/unistr/u-stpcpy.h: Likewise.
78788         * lib/unistr/u-stpncpy.h: Likewise.
78789         * lib/unistr/u-strcat.h: Likewise.
78790         * lib/unistr/u-strcpy.h: Likewise.
78791         * lib/unistr/u-strcspn.h: Likewise.
78792         * lib/unistr/u-strdup.h: Likewise.
78793         * lib/unistr/u-strlen.h: Likewise.
78794         * lib/unistr/u-strncat.h: Likewise.
78795         * lib/unistr/u-strncpy.h: Likewise.
78796         * lib/unistr/u-strnlen.h: Likewise.
78797         * lib/unistr/u-strpbrk.h: Likewise.
78798         * lib/unistr/u-strspn.h: Likewise.
78799         * lib/unistr/u-strstr.h: Likewise.
78800         * lib/unistr/u-strtok.h: Likewise.
78801         * lib/unistr/u16-check.c: Likewise.
78802         * lib/unistr/u16-chr.c: Likewise.
78803         * lib/unistr/u16-cmp.c: Likewise.
78804         * lib/unistr/u16-cpy-alloc.c: Likewise.
78805         * lib/unistr/u16-cpy.c: Likewise.
78806         * lib/unistr/u16-endswith.c: Likewise.
78807         * lib/unistr/u16-mblen.c: Likewise.
78808         * lib/unistr/u16-mbsnlen.c: Likewise.
78809         * lib/unistr/u16-mbtouc-aux.c: Likewise.
78810         * lib/unistr/u16-mbtouc-unsafe-aux.c: Likewise.
78811         * lib/unistr/u16-mbtouc-unsafe.c: Likewise.
78812         * lib/unistr/u16-mbtouc.c: Likewise.
78813         * lib/unistr/u16-mbtoucr.c: Likewise.
78814         * lib/unistr/u16-move.c: Likewise.
78815         * lib/unistr/u16-next.c: Likewise.
78816         * lib/unistr/u16-prev.c: Likewise.
78817         * lib/unistr/u16-set.c: Likewise.
78818         * lib/unistr/u16-startswith.c: Likewise.
78819         * lib/unistr/u16-stpcpy.c: Likewise.
78820         * lib/unistr/u16-stpncpy.c: Likewise.
78821         * lib/unistr/u16-strcat.c: Likewise.
78822         * lib/unistr/u16-strchr.c: Likewise.
78823         * lib/unistr/u16-strcmp.c: Likewise.
78824         * lib/unistr/u16-strcpy.c: Likewise.
78825         * lib/unistr/u16-strcspn.c: Likewise.
78826         * lib/unistr/u16-strdup.c: Likewise.
78827         * lib/unistr/u16-strlen.c: Likewise.
78828         * lib/unistr/u16-strmblen.c: Likewise.
78829         * lib/unistr/u16-strmbtouc.c: Likewise.
78830         * lib/unistr/u16-strncat.c: Likewise.
78831         * lib/unistr/u16-strncmp.c: Likewise.
78832         * lib/unistr/u16-strncpy.c: Likewise.
78833         * lib/unistr/u16-strnlen.c: Likewise.
78834         * lib/unistr/u16-strpbrk.c: Likewise.
78835         * lib/unistr/u16-strrchr.c: Likewise.
78836         * lib/unistr/u16-strspn.c: Likewise.
78837         * lib/unistr/u16-strstr.c: Likewise.
78838         * lib/unistr/u16-strtok.c: Likewise.
78839         * lib/unistr/u16-to-u32.c: Likewise.
78840         * lib/unistr/u16-to-u8.c: Likewise.
78841         * lib/unistr/u16-uctomb-aux.c: Likewise.
78842         * lib/unistr/u16-uctomb.c: Likewise.
78843         * lib/unistr/u32-check.c: Likewise.
78844         * lib/unistr/u32-chr.c: Likewise.
78845         * lib/unistr/u32-cmp.c: Likewise.
78846         * lib/unistr/u32-cpy-alloc.c: Likewise.
78847         * lib/unistr/u32-cpy.c: Likewise.
78848         * lib/unistr/u32-endswith.c: Likewise.
78849         * lib/unistr/u32-mblen.c: Likewise.
78850         * lib/unistr/u32-mbsnlen.c: Likewise.
78851         * lib/unistr/u32-mbtouc-unsafe.c: Likewise.
78852         * lib/unistr/u32-mbtouc.c: Likewise.
78853         * lib/unistr/u32-mbtoucr.c: Likewise.
78854         * lib/unistr/u32-move.c: Likewise.
78855         * lib/unistr/u32-next.c: Likewise.
78856         * lib/unistr/u32-prev.c: Likewise.
78857         * lib/unistr/u32-set.c: Likewise.
78858         * lib/unistr/u32-startswith.c: Likewise.
78859         * lib/unistr/u32-stpcpy.c: Likewise.
78860         * lib/unistr/u32-stpncpy.c: Likewise.
78861         * lib/unistr/u32-strcat.c: Likewise.
78862         * lib/unistr/u32-strchr.c: Likewise.
78863         * lib/unistr/u32-strcmp.c: Likewise.
78864         * lib/unistr/u32-strcpy.c: Likewise.
78865         * lib/unistr/u32-strcspn.c: Likewise.
78866         * lib/unistr/u32-strdup.c: Likewise.
78867         * lib/unistr/u32-strlen.c: Likewise.
78868         * lib/unistr/u32-strmblen.c: Likewise.
78869         * lib/unistr/u32-strmbtouc.c: Likewise.
78870         * lib/unistr/u32-strncat.c: Likewise.
78871         * lib/unistr/u32-strncmp.c: Likewise.
78872         * lib/unistr/u32-strncpy.c: Likewise.
78873         * lib/unistr/u32-strnlen.c: Likewise.
78874         * lib/unistr/u32-strpbrk.c: Likewise.
78875         * lib/unistr/u32-strrchr.c: Likewise.
78876         * lib/unistr/u32-strspn.c: Likewise.
78877         * lib/unistr/u32-strstr.c: Likewise.
78878         * lib/unistr/u32-strtok.c: Likewise.
78879         * lib/unistr/u32-to-u16.c: Likewise.
78880         * lib/unistr/u32-to-u8.c: Likewise.
78881         * lib/unistr/u32-uctomb.c: Likewise.
78882         * lib/unistr/u8-check.c: Likewise.
78883         * lib/unistr/u8-chr.c: Likewise.
78884         * lib/unistr/u8-cmp.c: Likewise.
78885         * lib/unistr/u8-cpy-alloc.c: Likewise.
78886         * lib/unistr/u8-cpy.c: Likewise.
78887         * lib/unistr/u8-endswith.c: Likewise.
78888         * lib/unistr/u8-mblen.c: Likewise.
78889         * lib/unistr/u8-mbsnlen.c: Likewise.
78890         * lib/unistr/u8-mbtouc-aux.c: Likewise.
78891         * lib/unistr/u8-mbtouc-unsafe-aux.c: Likewise.
78892         * lib/unistr/u8-mbtouc-unsafe.c: Likewise.
78893         * lib/unistr/u8-mbtouc.c: Likewise.
78894         * lib/unistr/u8-mbtoucr.c: Likewise.
78895         * lib/unistr/u8-move.c: Likewise.
78896         * lib/unistr/u8-next.c: Likewise.
78897         * lib/unistr/u8-prev.c: Likewise.
78898         * lib/unistr/u8-set.c: Likewise.
78899         * lib/unistr/u8-startswith.c: Likewise.
78900         * lib/unistr/u8-stpcpy.c: Likewise.
78901         * lib/unistr/u8-stpncpy.c: Likewise.
78902         * lib/unistr/u8-strcat.c: Likewise.
78903         * lib/unistr/u8-strchr.c: Likewise.
78904         * lib/unistr/u8-strcmp.c: Likewise.
78905         * lib/unistr/u8-strcpy.c: Likewise.
78906         * lib/unistr/u8-strcspn.c: Likewise.
78907         * lib/unistr/u8-strdup.c: Likewise.
78908         * lib/unistr/u8-strlen.c: Likewise.
78909         * lib/unistr/u8-strmblen.c: Likewise.
78910         * lib/unistr/u8-strmbtouc.c: Likewise.
78911         * lib/unistr/u8-strncat.c: Likewise.
78912         * lib/unistr/u8-strncmp.c: Likewise.
78913         * lib/unistr/u8-strncpy.c: Likewise.
78914         * lib/unistr/u8-strnlen.c: Likewise.
78915         * lib/unistr/u8-strpbrk.c: Likewise.
78916         * lib/unistr/u8-strrchr.c: Likewise.
78917         * lib/unistr/u8-strspn.c: Likewise.
78918         * lib/unistr/u8-strstr.c: Likewise.
78919         * lib/unistr/u8-strtok.c: Likewise.
78920         * lib/unistr/u8-to-u16.c: Likewise.
78921         * lib/unistr/u8-to-u32.c: Likewise.
78922         * lib/unistr/u8-uctomb-aux.c: Likewise.
78923         * lib/unistr/u8-uctomb.c: Likewise.
78924         * lib/unitypes.h: Likewise.
78925         * lib/uniwidth.h: Likewise.
78926         * lib/uniwidth/cjk.h: Likewise.
78927         * lib/uniwidth/u16-strwidth.c: Likewise.
78928         * lib/uniwidth/u16-width.c: Likewise.
78929         * lib/uniwidth/u32-strwidth.c: Likewise.
78930         * lib/uniwidth/u32-width.c: Likewise.
78931         * lib/uniwidth/u8-strwidth.c: Likewise.
78932         * lib/uniwidth/u8-width.c: Likewise.
78933         * lib/uniwidth/width.c: Likewise.
78935 2007-10-07  Bruno Haible  <bruno@clisp.org>
78937         * lib/inttypes.in.h: Change copyright notice from LGPL to GPL.
78938         The file is still under LGPL (see modules/inttypes).
78940 2007-10-06  Bruno Haible  <bruno@clisp.org>
78942         * modules/trunc (Dependencies): Add 'extensions'.
78943         * m4/trunc.m4 (gl_FUNC_TRUNC): Require gl_USE_SYSTEM_EXTENSIONS.
78944         Reported by Ben Pfaff <blp@gnu.org>.
78946 2007-10-06  Bruno Haible  <bruno@clisp.org>
78948         * modules/freopen-tests: New file.
78949         * tests/test-freopen.c: New file.
78951         * modules/fopen-tests: New file.
78952         * tests/test-fopen.c: New file.
78954         * modules/fopen: New file.
78955         * lib/fopen.c: New file.
78956         * m4/fopen.m4: New file.
78957         * modules/freopen: New file.
78958         * lib/freopen.c: New file.
78959         * m4/freopen.m4: New file.
78960         * lib/stdio.in.h (fopen, freopen): New declarations.
78961         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize also GNULIB_FOPEN,
78962         GNULIB_FREOPEN, REPLACE_FOPEN, REPLACE_FREOPEN.
78963         * modules/stdio (Makefile.am): Substitute also GNULIB_FOPEN,
78964         GNULIB_FREOPEN, REPLACE_FOPEN, REPLACE_FREOPEN.
78965         * doc/functions/fopen.texi: Mention the 'fopen' module.
78966         * doc/functions/freopen.texi: Mention the 'freopen' module.
78968 2007-10-06  Bruno Haible  <bruno@clisp.org>
78970         * modules/open-tests: New file.
78971         * tests/test-open.c: New file.
78973         * modules/open: New file.
78974         * lib/open.c: New file.
78975         * m4/open.m4: New file.
78976         * lib/fchdir.c (open): If the gnulib module 'open' is used, do what
78977         lib/open.c does.
78978         * lib/fcntl.in.h (open): Declare also if replaced by the 'open' module.
78979         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR, gl_FCNTL_H_DEFAULTS): New
78980         macros.
78981         (gl_FCNTL_H): Require gl_FCNTL_H_DEFAULTS.
78982         * modules/fcntl (Makefile.am): Also substitute GNULIB_OPEN and
78983         REPLACE_OPEN.
78984         * doc/functions/open.texi: Mention the 'open' module.
78986 2007-10-04  Bruno Haible  <bruno@clisp.org>
78988         * modules/ceill-tests: New file.
78989         * tests/test-ceill.c: New file.
78991         * modules/ceill: New file.
78992         * lib/ceill.c: Replace entire file.
78993         * m4/ceill.m4: New file.
78994         * lib/math.in.h (ceill): Replace declaration.
78995         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEILL.
78996         * modules/math (Makefile.am): Substitute also GNULIB_CEILL.
78997         * doc/functions/ceill.texi: Mention the 'ceill' module.
78998         * modules/mathl (Files): Remove lib/ceill.c.
78999         (Depends-on): Add ceill.
79001 2007-10-04  Bruno Haible  <bruno@clisp.org>
79003         * modules/ceilf-tests: New file.
79004         * tests/test-ceilf.c: New file.
79006         * modules/ceilf: New file.
79007         * lib/ceil.c: New file.
79008         * lib/ceilf.c: New file.
79009         * m4/ceilf.m4: New file.
79010         * lib/math.in.h (ceilf): New declaration.
79011         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEILF and
79012         HAVE_DECL_CEILF.
79013         * modules/math (Makefile.am): Substitute also GNULIB_CEILF and
79014         HAVE_DECL_CEILF.
79015         * doc/functions/ceilf.texi: Mention the 'ceilf' module.
79017 2007-10-04  Bruno Haible  <bruno@clisp.org>
79019         * modules/floorl-tests: New file.
79020         * tests/test-floorl.c: New file.
79022         * modules/floorl: New file.
79023         * lib/floorl.c: Replace entire file.
79024         * m4/floorl.m4: New file.
79025         * lib/math.in.h (floorl): Replace declaration.
79026         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOORL.
79027         * modules/math (Makefile.am): Substitute also GNULIB_FLOORL.
79028         * doc/functions/floorl.texi: Mention the 'floorl' module.
79029         * modules/mathl (Files): Remove lib/floorl.c.
79030         (Depends-on): Add floorl.
79032 2007-10-04  Bruno Haible  <bruno@clisp.org>
79034         * modules/floorf-tests: New file.
79035         * tests/test-floorf.c: New file.
79037         * modules/floorf: New file.
79038         * lib/floor.c: New file.
79039         * lib/floorf.c: New file.
79040         * m4/floorf.m4: New file.
79041         * lib/math.in.h (floorf): New declaration.
79042         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOORF and
79043         HAVE_DECL_FLOORF.
79044         * modules/math (Makefile.am): Substitute also GNULIB_FLOORF and
79045         HAVE_DECL_FLOORF.
79046         * doc/functions/floorf.texi: Mention the 'floorf' module.
79048 2007-10-04  Benoit Sigoure  <tsuna@lrde.epita.fr>
79049             Bruno Haible  <bruno@clisp.org>
79051         Advertise for the Git server instead of the CVS server.
79052         * doc/gnulib-intro.texi (Steady Development): Mention the Git
79053         repository instead of the CVS one.
79054         * doc/gnulib-tool.texi (VCS Issues): Renamed from "CVS Issues". Talk
79055         about all VCS systems generically.
79056         * doc/gnulib.texi (Introduction): Capitalize `Git'.
79058 2007-10-04  Bruno Haible  <bruno@clisp.org>
79060         * doc/gnulib.texi (Function Substitutes): Explain what an absent module
79061         means.
79062         Reported by Benoît Sigoure <tsuna@lrde.epita.fr>.
79064 2007-10-04  Bruno Haible  <bruno@clisp.org>
79066         * modules/truncl-tests: New file.
79067         * tests/test-truncl.c: New file.
79069         * modules/truncl: New file.
79070         * lib/truncl.c: New file.
79071         * m4/truncl.m4: New file.
79072         * lib/math.in.h (truncl): New declaration.
79073         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNCL and
79074         HAVE_DECL_TRUNCL.
79075         * modules/math (Makefile.am): Substitute also GNULIB_TRUNCL and
79076         HAVE_DECL_TRUNCL.
79077         * doc/functions/truncl.texi: Mention the 'truncl' module.
79079 2007-10-04  Bruno Haible  <bruno@clisp.org>
79081         * modules/truncf-tests: New file.
79082         * tests/test-truncf.c: New file.
79084         * modules/truncf: New file.
79085         * lib/trunc.c: Make paramerizable through USE_* macros.
79086         * lib/truncf.c: New file.
79087         * m4/truncf.m4: New file.
79088         * lib/math.in.h (truncf): New declaration.
79089         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNCF and
79090         HAVE_DECL_TRUNCF.
79091         * modules/math (Makefile.am): Substitute also GNULIB_TRUNCF and
79092         HAVE_DECL_TRUNCF.
79093         * doc/functions/truncf.texi: Mention the 'truncf' module.
79095 2007-10-03  Bruno Haible  <bruno@clisp.org>
79097         * gnulib-tool (func_get_automake_snippet): Synthesize an EXTRA_DIST
79098         augmentation also for tests modules.
79099         * modules/argp-tests (Makefile.am): Remove EXTRA_DIST augmentation.
79100         * modules/atexit-tests (Makefile.am): Likewise.
79101         * modules/binary-io-tests (Makefile.am): Likewise.
79102         * modules/c-strcase-tests (Makefile.am): Likewise.
79103         * modules/canonicalize-lgpl-tests (Makefile.am): Likewise.
79104         * modules/canonicalize-tests (Makefile.am): Likewise.
79105         * modules/closein-tests (Makefile.am): Likewise.
79106         * modules/fprintf-posix-tests (Makefile.am): Likewise.
79107         * modules/freadahead-tests (Makefile.am): Likewise.
79108         * modules/fseek-tests (Makefile.am): Likewise.
79109         * modules/fseeko-tests (Makefile.am): Likewise.
79110         * modules/ftell-tests (Makefile.am): Likewise.
79111         * modules/ftello-tests (Makefile.am): Likewise.
79112         * modules/isnanl-nolibm-tests (Makefile.am): Likewise.
79113         * modules/isnanl-tests (Makefile.am): Likewise.
79114         * modules/lseek-tests (Makefile.am): Likewise.
79115         * modules/mbscasecmp-tests (Makefile.am): Likewise.
79116         * modules/mbscasestr-tests (Makefile.am): Likewise.
79117         * modules/mbschr-tests (Makefile.am): Likewise.
79118         * modules/mbscspn-tests (Makefile.am): Likewise.
79119         * modules/mbsncasecmp-tests (Makefile.am): Likewise.
79120         * modules/mbspbrk-tests (Makefile.am): Likewise.
79121         * modules/mbspcasecmp-tests (Makefile.am): Likewise.
79122         * modules/mbsrchr-tests (Makefile.am): Likewise.
79123         * modules/mbsspn-tests (Makefile.am): Likewise.
79124         * modules/mbsstr-tests (Makefile.am): Likewise.
79125         * modules/printf-posix-tests (Makefile.am): Likewise.
79126         * modules/snprintf-posix-tests (Makefile.am): Likewise.
79127         * modules/sprintf-posix-tests (Makefile.am): Likewise.
79128         * modules/tsearch-tests (Makefile.am): Likewise.
79129         * modules/uniname/uniname-tests (Makefile.am): Likewise.
79130         * modules/unistdio/u16-vasnprintf-tests (Makefile.am): Likewise.
79131         * modules/unistdio/u32-vasnprintf-tests (Makefile.am): Likewise.
79132         * modules/unistdio/u8-vasnprintf-tests (Makefile.am): Likewise.
79133         * modules/unistdio/ulc-vasnprintf-tests (Makefile.am): Likewise.
79134         * modules/vasnprintf-posix-tests (Makefile.am): Likewise.
79135         * modules/vfprintf-posix-tests (Makefile.am): Likewise.
79136         * modules/vprintf-posix-tests (Makefile.am): Likewise.
79137         * modules/vsnprintf-posix-tests (Makefile.am): Likewise.
79138         * modules/vsprintf-posix-tests (Makefile.am): Likewise.
79139         * modules/xstrtoimax-tests (Makefile.am): Likewise.
79140         * modules/xstrtol-tests (Makefile.am): Likewise.
79141         * modules/xstrtoumax-tests (Makefile.am): Likewise.
79142         * modules/yesno-tests (Makefile.am): Likewise.
79144 2007-10-03  Bruno Haible  <bruno@clisp.org>
79146         * modules/trunc-tests: New file.
79147         * tests/test-trunc.c: New file.
79149         * modules/trunc: New file.
79150         * lib/trunc.c: New file.
79151         * m4/trunc.m4: New file.
79152         * lib/math.in.h (trunc): New declaration.
79153         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNC and
79154         HAVE_DECL_TRUNC.
79155         * modules/math (Makefile.am): Substitute also GNULIB_TRUNC and
79156         HAVE_DECL_TRUNC.
79157         * doc/functions/trunc.texi: Mention the 'trunc' module.
79159 2007-10-03  Bruno Haible  <bruno@clisp.org>
79161         * tests/test-fpending.c: New file, mostly copied
79162         from coreutils/lib/t-fpending.c.
79163         * modules/fpending-tests: New file.
79165 2007-10-03  Bruno Haible  <bruno@clisp.org>
79167         Port the stdio extensions to QNX (untested).
79168         * lib/fseterr.c (fseterr): Add support for QNX.
79169         * lib/fbufmode.c (fbufmode): Likewise.
79170         * lib/freadable.c (freadable): Likewise.
79171         * lib/fwritable.c (fwritable): Likewise.
79172         * lib/freading.c (freading): Likewise.
79173         * lib/fwriting.c (fwriting): Likewise.
79174         * lib/freadahead.c (freadahed): Likewise.
79175         * lib/fpurge.c (fpurge): Likewise.
79176         * lib/fseeko.c (rpl_fseeko): Likewise.
79178 2007-10-03  Bruno Haible  <bruno@clisp.org>
79179             Jim Meyering  <jim@meyering.net>
79180             Eric Blake  <ebb9@byu.net>
79182         * doc/relocatable.texi: Use @command instead of @program.
79184 2007-10-02  Jim Meyering  <jim@meyering.net>
79186         Perform one more "_.h" -> ".in.h" substitution.
79187         * modules/unistd (Makefile.am) [unistd.h]: Use unistd.h.in
79188         instead of unistd_.h here, too.
79190 2007-10-01  Bruno Haible  <bruno@clisp.org>
79192         * gnulib-tool (func_emit_initmacro_done): Special case for alloca.c.
79193         Needed for the alloca-opt module.
79195 2007-09-30  Bruno Haible  <bruno@clisp.org>
79197         * lib/alloca.in.h: Renamed from lib/alloca_.h.
79198         * modules/alloca-opt (Files, Makefile.am): Use alloca.in.h instead of
79199         alloca_.h.
79200         * lib/argz.in.h: Renamed from lib/argz_.h.
79201         * modules/argz (Files, Makefile.am): Use argz.in.h instead of argz_.h.
79202         * lib/byteswap.in.h: Renamed from lib/byteswap_.h.
79203         * modules/byteswap (Files, Makefile.am): Use byteswap.in.h instead of
79204         byteswap_.h.
79205         * lib/dirent.in.h: Renamed from lib/dirent_.h.
79206         * modules/fchdir (Files, Makefile.am): Use dirent.in.h instead of
79207         dirent_.h.
79208         * lib/fcntl.in.h: Renamed from lib/fcntl_.h.
79209         * modules/fcntl (Files, Makefile.am): Use fcntl.in.h instead of
79210         fcntl_.h.
79211         * lib/float.in.h: Renamed from lib/float_.h.
79212         * modules/float (Files, Makefile.am): Use float.in.h instead of
79213         float_.h.
79214         * lib/fnmatch.in.h: Renamed from lib/fnmatch_.h.
79215         * modules/fnmatch (Files, Makefile.am): Use fnmatch.in.h instead of
79216         fnmatch_.h.
79217         * lib/getopt.in.h: Renamed from lib/getopt_.h.
79218         * modules/getopt (Files, Makefile.am): Use getopt.in.h instead of
79219         getopt_.h.
79220         * lib/glob.in.h: Renamed from lib/glob_.h.
79221         * modules/glob (Files, Makefile.am): Use glob.in.h instead of glob_.h.
79222         * lib/iconv.in.h: Renamed from lib/iconv_.h.
79223         * modules/iconv_open (Files, Makefile.am): Use iconv.in.h instead of
79224         iconv_.h.
79225         * lib/inttypes.in.h: Renamed from lib/inttypes_.h.
79226         * modules/inttypes (Files, Makefile.am): Use inttypes.in.h instead of
79227         inttypes_.h.
79228         * lib/locale.in.h: Renamed from lib/locale_.h.
79229         * modules/locale (Files, Makefile.am): Use locale.in.h instead of
79230         locale_.h.
79231         * lib/math.in.h: Renamed from lib/math_.h.
79232         * modules/math (Files, Makefile.am): Use math.in.h instead of math_.h.
79233         * lib/netinet_in.in.h: Renamed from lib/netinet_in_.h.
79234         * modules/netinet_in (Files, Makefile.am): Use netinet_in.in.h instead
79235         of netinet_in_.h. Add dependency.
79236         * lib/poll.in.h: Renamed from lib/poll_.h.
79237         * modules/poll (Files, Makefile.am): Use poll.in.h instead of poll_.h.
79238         * lib/search.in.h: Renamed from lib/search_.h.
79239         * modules/search (Files, Makefile.am): Use search.in.h instead of
79240         search_.h.
79241         * lib/signal.in.h: Renamed from lib/signal_.h.
79242         * modules/signal (Files, Makefile.am): Use signal.in.h instead of
79243         _signal.h.
79244         * lib/stdbool.in.h: Renamed from lib/stdbool_.h.
79245         * modules/stdbool (Files, Makefile.am): Use stdbool.in.h instead of
79246         stdbool_.h.
79247         * lib/stdint.in.h: Renamed from lib/stdint_.h.
79248         * modules/stdint (Files, Makefile.am): Use stdint.in.h instead of
79249         stdint_.h.
79250         * lib/stdio.in.h: Renamed from lib/stdio_.h.
79251         * modules/stdio (Files, Makefile.am): Use stdio.in.h instead of
79252         stdio_.h.
79253         * lib/stdlib.in.h: Renamed from lib/stdlib_.h.
79254         * modules/stdlib (Files, Makefile.am): Use stdlib.in.h instead of
79255         stdlib_.h.
79256         * lib/string.in.h: Renamed from lib/string_.h.
79257         * modules/string (Files, Makefile.am): Use string.in.h instead of
79258         string_.h.
79259         * doc/gnulib-tool.texi (Initial import): Update.
79260         * lib/sys_select.in.h: Renamed from lib/sys_select_.h.
79261         * modules/sys_select (Files, Makefile.am): Use sys_select.in.h instead
79262         of sys_select_.h. Add dependency.
79263         * lib/sys_socket.in.h: Renamed from lib/sys_socket_.h.
79264         * modules/sys_socket (Files, Makefile.am): Use sys_socket.in.h instead
79265         of sys_socket_.h.
79266         * lib/sys_stat.in.h: Renamed from lib/sys_stat_.h.
79267         * modules/sys_stat (Files, Makefile.am): Use sys_stat.in.h instead of
79268         sys_stat_.h.
79269         * lib/sys_time.in.h: Renamed from lib/sys_time_.h.
79270         * modules/sys_time (Files, Makefile.am): Use sys_time.in.h instead of
79271         sys_time_.h.
79272         * lib/sysexits.in.h: Renamed from lib/sysexits_.h.
79273         * modules/sysexits (Files, Makefile.am): Use sysexits.in.h instead of
79274         sysexits_.h.
79275         * lib/time.in.h: Renamed from lib/time_.h.
79276         * modules/time (Files, Makefile.am): Use time.in.h instead of time_.h.
79277         * lib/unistd.in.h: Renamed from lib/unistd_.h.
79278         * modules/unistd (Files, Makefile.am): Use unistd.in.h instead of
79279         unistd_.h.
79280         * lib/wchar.in.h: Renamed from lib/wchar_.h.
79281         * modules/wchar (Files, Makefile.am): Use wchar.in.h instead of
79282         wchar_.h.
79283         * lib/wctype.in.h: Renamed from lib/wctype_.h.
79284         * modules/wctype (Files, Makefile.am): Use wctype.in.h instead of
79285         wctype_.h.
79286         * build-aux/bootstrap (slurp): Update.
79287         * lib/.cppi-disable: Update.
79289 2007-09-30  Bruno Haible  <bruno@clisp.org>
79291         * tests/test-getaddrinfo.c (AF_UNSPEC): Provide a fallback definition.
79292         Needed on BeOS.
79294 2007-09-30  Bruno Haible  <bruno@clisp.org>
79296         * modules/dirname-tests (check_PROGRAMS): Renamed from noinst_PROGRAMS.
79298 2007-09-29  Bruno Haible  <bruno@clisp.org>
79300         * lib/stdio_.h (getdelim, getline): Add identifiers. Doc tweak.
79302 2007-09-29  Bruno Haible  <bruno@clisp.org>
79304         * lib/xreadlink.c (xreadlink): Simplify to a wrapper around areadlink.
79305         * modules/xreadlink (Depends-on): Add areadlink, remove readlink etc.
79306         * build-aux/install-reloc: Compile also areadlink.c.
79307         * modules/relocatable-prog-wrapper (Files): Add lib/areadlink.[hc].
79309 2007-09-29  Bruno Haible  <bruno@clisp.org>
79311         * gnulib-tool (func_emit_initmacro_done): Indentation.
79313 2007-09-29  Bruno Haible  <bruno@clisp.org>
79315         * README: Add CVS checkout update instructions.
79316         Info from Bob Proulx <bob@proulx.com>.
79318 2007-09-28  Eric Blake  <ebb9@byu.net>
79320         Provide move-if-change.
79321         * build-aux/move-if-change: New file, based on best practice
79322         rather than any canonical upstream location.
79324 2007-09-28  Jim Meyering  <jim@meyering.net>
79326         Fix canonicalize loop-detection corner case.
79327         Do not attempt to stat the symlink values stored via seen_triple.
79328         Without this, coreutils' tests/misc/readlink-fp-loop test would fail
79329         on linux-2.6.18, (but not 2.6.22).
79330         * lib/canonicalize.c (seen_triple): Use triple_compare_ino_str, not
79331         triple_compare.  The former compares dev,ino,filename, while the latter
79332         would actually stat dirname(filename) when dev and ino were equal.
79333         * lib/hash-triple.c: Install <string.h>.
79334         (STREQ): Define.
79335         (triple_compare_ino_str): New function.
79336         * lib/hash-triple.h (triple_compare_ino_str): Declare it.
79338 2007-09-28  Eric Blake  <ebb9@byu.net>
79340         Enforce that AC_REPLACE_FUNCS files exist.
79341         * gnulib-tool (func_emit_initmacro_done): Make AC_LIBSOURCES
79342         override check for typos.
79344         Fix test-closein on Solaris 10.
79345         * tests/test-closein.c (main): Don't assume stdin can be inherited
79346         closed on all systems.
79347         * tests/test-closein.sh: Likewise.
79348         Reported by Piotr Tarnowski.
79350 2007-09-28  Jim Meyering  <jim@meyering.net>
79352         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Fix typo in comment.
79354 2007-09-27  Jim Meyering  <jim@meyering.net>
79356         canonicalize: Avoid a false-positive cycle failure.
79357         * modules/canonicalize (Depends-on): Add file-set and hash-triple.
79358         Sort.  Remove cycle-check.
79359         * lib/canonicalize.c: Include file-set.h and hash-triple.h,
79360         not cycle-check.h.
79361         (seen_triple): New function.
79362         (canonicalize_filename_mode): Use it instead of cycle-check.
79363         * tests/test-canonicalize.c: Add a test for this bug.
79364         * tests/test-canonicalize.sh: Set up and run the test.
79366         New module, file-set, from coreutils.
79367         * modules/file-set: Define it.
79368         * lib/file-set.c, lib/file-set.h: Implement.
79370         New module, hash-triple, from coreutils.
79371         * modules/hash-triple: Define it.
79372         * lib/hash-triple.c, lib/hash-triple.h: Implement.
79374 2007-09-25  Eric Blake  <ebb9@byu.net>
79376         Fix strerror on Interix.
79377         * lib/string_.h (strerror): Declare replacement.
79378         * doc/functions/strerror.texi (strerror): Document the Interix
79379         shortcoming.
79380         * modules/string (Makefile.am): Support new hooks.
79381         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Add new hooks.
79382         * m4/strerror.m4 (gl_FUNC_STRERROR): Defer to
79383         gl_FUNC_STRERROR_SEPARATE.
79384         (gl_FUNC_STRERROR_SEPARATE): Check for Interix bug.
79385         * lib/strerror.c (rpl_strerror): Provide replacement.
79386         * modules/strerror (Depends-on): Add string.
79387         (configure.ac): Detect use of module.
79388         * tests/test-strerror.c: New file.
79389         * modules/strerror-tests: New test module.
79390         * modules/argp (Depends-on): Add strerror.
79391         * modules/error (Depends-on): Likewise.
79392         Reported by Martin Koeppe.
79394 2007-09-24  Bruno Haible  <bruno@clisp.org>
79396         * README: Update git instructions.
79398 2007-09-24  Eric Blake  <ebb9@byu.net>
79400         Revert fpending breakage from 2007-09-08.
79401         * m4/fpending.m4 (gl_FUNC_FPENDING): Don't require existence of
79402         __fpending.c.
79404 2007-09-24  Jim Meyering  <jim@meyering.net>
79406         filenamecat.c: Add a test.
79407         * lib/filenamecat.c (main) [TEST_FILE_NAME_CONCAT]: Add a test
79408         showing how the function works when DIR is the empty string.
79410 2007-09-21  Simon Josefsson  <simon@josefsson.org>
79412         * tests/test-canonicalize.sh: Turn on executable bit.
79414 2007-09-19  Eric Blake  <ebb9@byu.net>
79416         * README: Update CVS instructions.
79418 2007-09-18  Bruno Haible  <bruno@clisp.org>
79420         * modules/areadlink: New file.
79421         * lib/areadlink.h (areadlink): New declaration.
79422         * lib/areadlink.c: New file, based on lib/xreadlink.c.
79424 2007-09-17  Jim Meyering  <jim@meyering.net>
79426         * lib/savewd.c (ESTALE) [!defined]: Define.
79427         Reported to be required on Interix by Martin Koeppe.
79429 2007-09-17  Bruno Haible  <bruno@clisp.org>
79431         * gnulib-tool (func_version): Use $version.
79433 2007-09-16  Bruno Haible  <bruno@clisp.org>
79435         * m4/printf.m4 (gl_PRINTF_LONG_DOUBLE, gl_PRINTF_INFINITE,
79436         gl_PRINTF_INFINITE_LONG_DOUBLE): Increase buf's size from 100 to 10000.
79437         Needed on glibc-2.6.1 with -fstack-protector -D_FORTIFY_SOURCE=2.
79438         Reported by Greg Schafer <gschafer@zip.com.au>.
79440 2007-09-15  Bruno Haible  <bruno@clisp.org>
79442         * gnulib-tool (sed): Try a little harder to make bash understand the
79443         alias.
79444         Reported by Bruce Korb <bruce.korb@gmail.com>.
79446 2007-09-13  Eric Blake  <ebb9@byu.net>
79448         * ChangeLog: Remove conflict markers.
79450 2007-09-13  Simon Josefsson  <simon@josefsson.org>
79452         * lib/gc-gnulib.c (gc_hash_open): Catch NULL calloc return value.
79453         Reported by Bruno Haible <bruno@clisp.org>.
79455 2007-09-12  Bruno Haible  <bruno@clisp.org>
79457         * m4/lock.m4: Don't provide an AC_USE_SYSTEM_EXTENSIONS definition.
79458         (gl_LOCK_EARLY_BODY): Use AC_GNU_SOURCE when AC_USE_SYSTEM_EXTENSIONS
79459         is not defined.
79461 2007-09-12  Eric Blake  <ebb9@byu.net>
79463         Track CVS Autoconf on AC_USE_SYSTEM_EXTENSIONS.
79464         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Update to CVS
79465         Autoconf definition.
79466         * modules/euidaccess (Depends-on): Add extensions, for
79467         AC_USE_SYSTEM_EXTENSIONS with autoconf <= 2.59.
79468         * modules/fnmatch (Depends-on): Likewise.
79469         * modules/getaddrinfo (Depends-on): Likewise.
79470         * modules/getdelim (Depends-on): Likewise.
79471         * modules/getline (Depends-on): Likewise.
79472         * modules/getsubopt (Depends-on): Likewise.
79473         * modules/gettext (Depends-on): Likewise.
79474         * modules/group-member (Depends-on): Likewise.
79475         * modules/mbchar (Depends-on): Likewise.
79476         * modules/memmem (Depends-on): Likewise.
79477         * modules/mempcpy (Depends-on): Likewise.
79478         * modules/memrchr (Depends-on): Likewise.
79479         * modules/pagealign_alloc (Depends-on): Likewise.
79480         * modules/readutmp (Depends-on): Likewise.
79481         * modules/stpcpy (Depends-on): Likewise.
79482         * modules/stpncpy (Depends-on): Likewise.
79483         * modules/strchrnul (Depends-on): Likewise.
79484         * modules/strndup (Depends-on): Likewise.
79485         * modules/strsep (Depends-on): Likewise.
79486         * modules/strverscmp (Depends-on): Likewise.
79487         * modules/vasprintf (Depends-on): Likewise.
79488         * modules/wcwidth (Depends-on): Likewise.
79489         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): AC_GNU_SOURCE will be
79490         obsolete in Autoconf 2.62; use AC_USE_SYSTEM_EXTENSIONS instead.
79491         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_GNU): Likewise.
79492         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDR_INFO): Likewise.
79493         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
79494         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
79495         * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Likewise.
79496         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
79497         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER): Likewise.
79498         * m4/mbchar.m4 (gl_MBCHAR): Likewise.
79499         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
79500         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Likewise.
79501         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Likewise.
79502         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Likewise.
79503         * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC): Likewise.
79504         * m4/readutmp.m4 (gl_READUTMP): Likewise.
79505         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
79506         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Likewise.
79507         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
79508         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Likewise.
79509         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
79510         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Likewise.
79511         * m4/strsep.m4 (gl_FUNC_STRSEP): Likewise.
79512         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Likewise.
79513         * m4/vasprintf.m4 (gl_PREREQ_VASPRINTF_H): Likewise.
79514         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
79515         * m4/lock.m4 (gl_LOCK_EARLY_BODY): Likewise, but provide fallback,
79516         so that lock.m4 can be used in gettext without extensions module.
79518 2007-09-11  Bruno Haible  <bruno@clisp.org>
79520         * m4/isc-posix.m4: Remove file.
79521         Suggested by Eric Blake.
79523 2007-09-11  Eric Blake  <ebb9@byu.net>
79525         * ChangeLog: Restore lines accidentally truncated 2007-04-06.
79527 2007-09-10  Bruno Haible  <bruno@clisp.org>
79529         * posix-modules: Fix typo in error message.
79530         Reported by Matt <mkraai@beckman.com>.
79532 2007-09-09  Bruno Haible  <bruno@clisp.org>
79534         * doc/functions/getdelim.texi: Update list of platforms lacking the
79535         function.
79536         * doc/functions/getline.texi: Likewise.
79538 2007-09-09  Jim Meyering  <jim@meyering.net>
79540         * lib/hash.c (hash_initialize): Detect calloc failure.
79541         Reported by Bruno Haible.
79543 2007-09-09  Bruno Haible  <bruno@clisp.org>
79545         * lib/canonicalize-lgpl.c (__realpath): Set errno to ENOMEM when
79546         malloc or realloc fails.
79548 2007-09-09  Bruno Haible  <bruno@clisp.org>
79550         * modules/getcwd (Depends-on): Add malloc-posix.
79551         * modules/glob (Depends-on): Likewise.
79552         * modules/putenv (Depends-on): Likewise.
79553         * modules/strdup (Depends-on): Likewise.
79554         * modules/getdelim (Depends-on): Add realloc-posix.
79555         * modules/read-file (Depends-on): Likewise.
79557 2007-09-09  Bruno Haible  <bruno@clisp.org>
79559         * m4/malloc.m4 (gl_CHECK_MALLOC_POSIX): New macro.
79560         (gl_FUNC_MALLOC_POSIX): Require it.
79561         * m4/realloc.m4 (gl_FUNC_REALLOC_POSIX): Likewise.
79562         * m4/calloc.m4 (gl_FUNC_CALLOC_POSIX): Likewise.
79563         * modules/realloc (Files): Add m4/malloc.m4.
79564         * modules/calloc (Files): Likewise.
79566 2007-09-09  Bruno Haible  <bruno@clisp.org>
79568         * modules/malloc-posix: New file.
79569         * modules/malloc (Depends-on): Add malloc-posix.
79570         * lib/malloc.c: Include errno.h.
79571         (rpl_malloc): Merge the requirements of a glibc-compatible malloc
79572         and a POSIX-compatible malloc into a single function. Set ENOMEM
79573         when returning NULL.
79574         * m4/malloc.m4: New file.
79575         * doc/functions/malloc.texi: Mention the malloc-posix module.
79576         * lib/stdlib_.h (malloc): New declaration.
79577         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
79578         GNULIB_MALLOC_POSIX and HAVE_MALLOC_POSIX.
79579         * modules/stdlib (stdlib.h): Substitute also GNULIB_MALLOC_POSIX
79580         and HAVE_MALLOC_POSIX.
79582 2007-09-09  Bruno Haible  <bruno@clisp.org>
79584         * modules/realloc-posix: New file.
79585         * modules/realloc (Depends-on): Add realloc-posix.
79586         * lib/realloc.c: Include errno.h.
79587         (rpl_realloc): Merge the requirements of a glibc-compatible realloc
79588         and a POSIX-compatible realloc into a single function. Set ENOMEM
79589         when returning NULL.
79590         * m4/realloc.m4: New file.
79591         * doc/functions/realloc.texi: Mention the realloc-posix module.
79592         * lib/stdlib_.h (realloc): New declaration.
79593         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
79594         GNULIB_REALLOC_POSIX and HAVE_REALLOC_POSIX.
79595         * modules/stdlib (stdlib.h): Substitute also GNULIB_REALLOC_POSIX
79596         and HAVE_REALLOC_POSIX.
79598 2007-09-09  Bruno Haible  <bruno@clisp.org>
79600         * modules/calloc-posix: New file.
79601         * modules/calloc (Depends-on): Add calloc-posix.
79602         * lib/calloc.c: Include errno.h.
79603         (rpl_calloc): Merge the requirements of a glibc-compatible calloc
79604         and a POSIX-compatible calloc into a single function. Set ENOMEM
79605         when returning NULL.
79606         * m4/calloc.m4 (gl_FUNC_CALLOC_POSIX): New macro.
79607         * doc/functions/calloc.texi: Mention the calloc-posix module.
79608         * lib/stdlib_.h (calloc): New declaration.
79609         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
79610         GNULIB_CALLOC_POSIX and HAVE_CALLOC_POSIX.
79611         * modules/stdlib (stdlib.h): Substitute also GNULIB_CALLOC_POSIX
79612         and HAVE_CALLOC_POSIX.
79614 2007-09-09  Bruno Haible  <bruno@clisp.org>
79616         Allow for modules to show an arbitrary notice.
79617         * modules/TEMPLATE-EXTENDED: Add 'Notice' field.
79618         * gnulib-tool: New option --extract-notice.
79619         (func_usage): Document it.
79620         (sed_extract_prog): Update.
79621         (func_get_notice): New function.
79622         (func_modules_notice): New function.
79623         (func_import, func_create_testdir): Invoke it.
79624         Suggested by Jim Meyering.
79626 2007-09-09  Bruno Haible  <bruno@clisp.org>
79628         * gnulib-tool: New options --verbose, --quiet.
79629         (func_usage): Document them.
79630         (verbose): New variable.
79631         (func_execute_command): New function.
79632         (func_import): Don't show the module list and the file list if
79633         $verbose < 0.
79634         (func_create_testdir): Likewise. Use func_execute_command.
79635         (func_create_megatestdir): Use func_execute_command.
79637 2007-09-08  Bruno Haible  <bruno@clisp.org>
79639         * gnulib-tool (func_import): Prefer rsync over wget when available,
79640         for fetching the PO files.
79642 2007-09-08  Bruno Haible  <bruno@clisp.org>
79644         * posix-modules: New file. Portions copied from gnulib-tool.
79645         * doc/gnulib.texi (POSIX Substitutes Library): New chapter.
79647 2007-09-08  Jim Meyering  <jim@meyering.net>
79649         Rename __fpending.c -> fpending.c and __fpending.h -> fpending.h
79650         * lib/fpending.h: Rename from __fpending.h.
79651         * lib/fpending.c: Rename from __fpending.c.
79652         Include "fpending.h", not "__fpending.h".
79653         * lib/__fpending.h, lib/__fpending.c: Remove files.
79654         * modules/fpending (Files): Reflect new file names.
79655         * lib/close-stream.c: Include "fpending.h", not "__fpending.h".
79657 2007-09-08  Bruno Haible  <bruno@clisp.org>
79659         * m4/inttypes-h.m4: Remove stub file.
79661 2007-09-07  Simon Josefsson  <simon@josefsson.org>
79663         * doc/headers/stdint.texi: Discuss #include_next issue.
79665 2007-09-06  Paul Eggert  <eggert@cs.ucla.edu>
79667         * build-aux/bootstrap: Remove obsolete comment about wget --help.
79669 2007-09-06  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
79671         * m4/time_h.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Fix misspelling
79672         in variable name.
79674 2007-09-03  Jim Meyering  <jim@meyering.net>
79676         New module: git-version-gen.
79677         * modules/git-version-gen: New file.
79679         Import changes from coreutils for bootstrap script.
79681         * build-aux/bootstrap (WGET_COMMAND): Remove code to set this variable.
79683         bootstrap: uses rsync to download the .po files
79684         * build-aux/bootstrap (po_download_command_format): New global.
79685         (download_po_files): Use rsync.
79686         (update_po_files): Don't remove .po files after download,
79687         so future rsync runs can take advantage of the copies.
79689         * build-aux/bootstrap (gnulib_tool): Make sha1sum check quietly.
79691         Solve the unnecessary-.po-file-regeneration problem once and for all.
79692         * build-aux/bootstrap (download_po_files): New function, renamed from
79693         get_translations.  Now, downloads, but doesn't update LINGUAS.
79694         (update_po_files): New function.
79696         bootstrap: Ignore more.
79697         * build-aux/bootstrap (symlink_to_dir): Add a directory name like
79698         uniwidth to e.g., lib/.gitignore.
79699         (slurp): Handle the sys_stat_.h -> sys mapping, too.
79701         * build-aux/bootstrap: New setting: vc_ignore.
79702         (insert_sorted_if_absent): Create $file if absent.
79703         Adapt to new, possibly empty, list: $vc_ignore.
79705         bootstrap: generate more ignorable names
79706         * build-aux/bootstrap (slurp): When generating ignorable names,
79707         also map .sin to .sed, .gperf to .c, and .y to .c.
79709 2007-09-03  Jim Meyering  <jim@meyering.net>
79711         * build-aux/git-version-gen: New file, from coreutils.  For details, see
79712         http://git.sv.gnu.org/gitweb/?p=coreutils.git;a=commitdiff;h=bfe49f506
79714 2007-09-02  Bruno Haible  <bruno@clisp.org>
79716         Fix mis-recognition of 'mcs' on QNX 6.
79717         * m4/csharpcomp.m4 (gt_CSHARPCOMP): Test whether the "mcs --version"
79718         output contains the string "Mono".
79719         * lib/csharpcomp.c (compile_csharp_using_mono): Likewise.
79720         Reported by <kraai@ftbfs.org> at <https://savannah.gnu.org/bugs/?18337>.
79722 2007-09-01  Bruno Haible  <bruno@clisp.org>
79724         Fix collision between uniwidth/* and linebreak modules.
79725         * lib/linebreak.h (locale_charset, uc_width, u8_width, u16_width,
79726         u32_width): Remove declarations.
79727         * lib/linebreak.c: Include uniwidth.h, uniwidth/cjk.h, streq.h.
79728         (u32_mbtouc_unsafe, streq9, streq8, streq7, streq6, streq5, streq4,
79729         streq3, streq2, streq1, streq0): Remove functions.
79730         (STREQ): Remove macro.
79731         (is_cjk_encoding): Remove function.
79732         (nonspacing_table_data, nonspacing_table_ind): Remove constants.
79733         (uc_width, u8_width, u16_width, u32_width): Remove functions.
79734         * modules/linebreak (Depends-on): Add streq, uniwidth/width.
79735         * NEWS: Document the change.
79737 2007-09-01  Bruno Haible  <bruno@clisp.org>
79739         * lib/streq.h: Add double-inclusion guard.
79741 2007-09-01  Karl Berry  <karl@gnu.org>
79743         * MODULES.html.sh: Rename mreadlink_with_size to areadlink_with_size.
79745 2007-08-28  Jim Meyering  <jim@meyering.net>
79747         Rename mreadlink_with_size to areadlink_with_size.
79748         * NEWS: Document the change.
79749         * lib/mreadlink-with-size.c (mreadlink_with_size): Rename this to...
79750         * lib/areadlink-with-size.c (areadlink_with_size): ...this.
79751         * lib/mreadlink.h: Rename this to...
79752         * lib/areadlink.h: ...this.
79753         * modules/mreadlink-with-size: Rename this to...
79754         * modules/areadlink-with-size: ...this.
79755         * lib/canonicalize.c: Reflect the renaming.
79756         * modules/canonicalize: Likewise.
79758 2007-08-26  Bruno Haible  <bruno@clisp.org>
79760         * gnulib-tool (func_import): When deciding which files to remove,
79761         consider also dangling symbolic links.
79762         Reported by Eric Blake.
79764 2007-08-26  Bruno Haible  <bruno@clisp.org>
79766         * gnulib-tool (func_ln_if_changed): Use "test -h", not "test -L".
79768 2007-08-23  Simon Josefsson  <simon@josefsson.org>
79770         * lib/readline.c: Don't include getline.h, the prototype is now
79771         found in stdio.h.
79773 2007-08-23  Jim Meyering  <jim@meyering.net>
79775         Getdelim touchup.
79776         * lib/getdelim.c (getdelim): Don't bother to save/restore errno
79777         around the funlockfile call, since funlockfile never sets errno.
79778         Don't set errno upon failed realloc.
79780 2007-08-22  Eric Blake  <ebb9@byu.net>
79782         Getline touchups.
79783         * lib/getdelim.c (getdelim): Revert regression that required *n to
79784         be 0 when *lineptr is NULL.  Preserve errno across funlockfile.
79785         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Check for declaration of
79786         getdelim, rather than whether implementation is missing.
79787         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise for getline.
79788         * lib/stdio_.h (getline): Also declare if replacement is
79789         required.
79790         * doc/functions/getdelim.texi: New file.
79791         * doc/functions/getline.texi: Likewise.
79792         * doc/gnulib.texi (Function Substitutes): Add new files.
79793         Reported by Bruno Haible.
79795 2007-08-22  Ludovic Courtès  <ludo@gnu.org>
79797         * users.txt: Add Guile.
79799 2007-08-22  Eric Blake  <ebb9@byu.net>
79801         * tests/test-getdelim.c (main): Use remove, not unlink.
79802         * tests/test-getline.c (main): Likewise.
79804         Move getline and getdelim into stdio.h, per POSIX 200x.
79805         * modules/getline (Files): Remove getline.h.
79806         (Depends-on): Add stdio.
79807         (configure.ac): Add module indicator.
79808         * modules/getdelim (Files): Remove getdelim.h.
79809         (Depends-on): Add stdio.
79810         (configure.ac): Add module indicator.
79811         * modules/stdio (Makefile.am): Work with new indicators.
79812         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add new defaults.
79813         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Work with stdio needs.
79814         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
79815         * lib/getdelim.h: Delete.
79816         * lib/getline.h: Delete.
79817         * lib/stdio_.h (getdelim, getline): Declare.
79818         * modules/getdelim-tests: New module.
79819         * modules/getline-tests: Likewise.
79820         * tests/test-getdelim.c: New file.
79821         * tests/test-getline.c: Likewise.
79822         * NEWS: Document the change.
79823         * lib/getline.c: Update choice of header.
79824         * lib/csharpcomp.c: Likewise.
79825         * lib/getpass.c: Likewise.
79826         * lib/javacomp.c: Likewise.
79827         * lib/javaversion.c: Likewise.
79828         * lib/yesno.c: Likewise.
79829         * lib/getdelim.c: Likewise.
79830         (getdelim): Set errno on failure, and avoid memory leak.
79832 2007-08-19  Bruno Haible  <bruno@clisp.org>
79834         * modules/closein (Depends-on): Add freadahead.
79835         * lib/closein.c: Include freadahead.h.
79836         (close_stdin): Skip the fseeko and fflush calls if freadahead(stdin)
79837         is zero.
79839 2007-08-19  Bruno Haible  <bruno@clisp.org>
79841         * modules/freadahead-tests: New file.
79842         * tests/test-freadahead.sh: New file.
79843         * tests/test-freadahead.c: New file.
79845         * modules/freadahead: New file.
79846         * lib/freadahead.h: New file.
79847         * lib/freadahead.c: New file.
79848         * MODULES.html.sh (File stream based Input/Output): Add freadahead,
79849         fbufmode, fpurge, freadable, fwritable.
79851 2007-08-19  Eric Blake  <ebb9@byu.net>
79853         Test yesno in combination with closein.
79854         * lib/yesno.c (yesno): Document use of stdin.
79855         * modules/yesno-tests (Files): New module.
79856         * tests/test-yesno.c (main): New file.
79857         * tests/test-yesno.sh: Likewise.
79859 2007-08-19  Bruno Haible  <bruno@clisp.org>
79861         * lib/fbufmode.c (fbufmode): Add tentative support for Solaris/AMD64.
79862         * lib/fseeko.c (rpl_fseeko): Likewise.
79863         * lib/fseterr.c (fseterr): Likewise.
79865 2007-08-19  Bruno Haible  <bruno@clisp.org>
79867         * tests/test-lseek.c (main): Disable a test for BeOS.
79868         * doc/functions/lseek.texi: Document the BeOS bug.
79870 2007-08-19  Bruno Haible  <bruno@clisp.org>
79871             Eric Blake  <ebb9@byu.net>
79873         * lib/lseek.c: Include <sys/stat.h>.
79874         (rpl_lseek): Add workaround code also for Unix platforms.
79875         Needed for BeOS.
79876         * m4/lseek.m4 (gl_FUNC_LSEEK): When cross-compiling, fail on BeOS.
79877         * doc/functions/lseek.texi: Document BeOS definiency.
79879 2007-08-18  Bruno Haible  <bruno@clisp.org>
79881         * modules/fstrcmp-tests: New file.
79882         * tests/test-fstrcmp.c: New file.
79884 2007-08-18  Bruno Haible  <bruno@clisp.org>
79886         * modules/fstrcmp: New file, from GNU gettext with modifications.
79887         * lib/fstrcmp.h: New file, from GNU gettext.
79888         * lib/fstrcmp.c: New file, from GNU gettext.
79889         * MODULES.html.sh (String handling): Add fstrcmp.
79891 2007-08-18  Bruno Haible  <bruno@clisp.org>
79893         * lib/diffseq.h (struct context): Change type of 'heuristic' field to
79894         'bool'.
79895         (diag, compareseq): Remove const from the ctxt argument.
79896         (USE_HEURISTIC): Undefine at the end.
79898 2007-08-18  Jim Meyering  <jim@meyering.net>
79900         New file: lib/idcache.h
79901         * NEWS: Mention the addition.
79902         * modules/idcache (Files): Add lib/idcache.h
79903         * lib/idcache.c: Include "idcache.h".
79904         Don't include <sys/types.h>.
79905         Add a FIXME comment.
79906         Move file-scoped "static" declarations to the top.
79907         * lib/idcache.h: New file.  Include <sys/types.h> here, instead.
79909 2007-08-17  Bruno Haible  <bruno@clisp.org>
79910         and Paul Eggert  <eggert@cs.ucla.edu>
79912         * MODULES.html.sh: Add diffseq.
79913         * modules/diffseq: New file.
79914         * lib/diffseq.h: New file, from GNU gettext with a few minor changes,
79915         extracted from GNU gettext's fstrcmp.c and GNU diff's analyze.c.
79917 2007-08-15  Paul Eggert  <eggert@cs.ucla.edu>
79919         Import changes from coreutils for bootstrap script.
79921         2007-07-21  Paul Eggert  <eggert@cs.ucla.edu>
79923         * build-aux/bootstrap (slurp): Work even in environments where
79924         "ls" defaults to "ls -A".  Put in a FIXME, though, since the
79925         current code does not slurp files whose names start with ".", and
79926         this looks like it might be a troublesome area.
79928         2007-07-11  Jim Meyering  <jim@meyering.net>
79930         If there's a GPL vN copyright comment, require that N == 3.
79932         2007-07-08  Jim Meyering  <jim@meyering.net>
79934         Run the coreutils-specific code only if tests/Makefile.am.in exists.
79935         * build-aux/bootstrap (mam_template): Move definition out of loop.
79937         Create symlinks for gl/{lib,m4}/*, just as for gnulib/{lib,m4}/*.
79939         * build-aux/bootstrap (symlink_to_dir): Rename function from
79940         symlink_to_gnulib.  Add a directory parameter.  Update all
79941         callers.
79942         (cp_mark_as_generated): Also check for -- and link to -- files in
79943         gl/.
79945         2007-07-08  Jim Meyering  <jim@meyering.net>
79947         Adapt to deeper hierarchy in gnulib.
79948         * build-aux/bootstrap (symlink_to_dir): If the destination
79949         directory doesn't exist, create it. This is required at least for
79950         "lib/uniwidth/cjk.h".
79952         2007-05-15  Jim Meyering  <jim@meyering.net>
79954         * build-aux/bootstrap: Now that generated Makefile.am files
79955         are no longer under version control, they must be created at
79956         bootstrap time.
79958 2007-08-14  Ben Pfaff  <blp@gnu.org>
79960         * lib/count-one-bits.h: Add comments.  From Bruno Haible.
79962 2007-08-14  Paul Eggert  <eggert@cs.ucla.edu>
79964         * lib/count-one-bits.h: Don't include <limits.h>; no longer needed
79965         given the changes below.
79966         (COUNT_ONE_BITS): Use 'verify' rather than 'verify_true'.  Work
79967         even on hosts that have padding bits beyond the supported 64.
79969 2007-08-10  Paul Eggert  <eggert@cs.ucla.edu>
79971         * NEWS: In xstrtol, remove STRTOL_FATAL_ERROR and add xstrtol_fatal.
79972         * lib/xstrtol.h: Don't include exitfail.h; that's now internal to
79973         xstrtol.c.  Include getopt.h, since xstrtol_fatal's signature
79974         depends on it.
79975         (xstrtol_error): Remove.
79976         (xstrtol_fatal): New decl, replacing the functionality of xstrtol_error
79977         but with a different signature.
79978         (ATTRIBUTE_NORETURN, __attribute__): New macros.
79979         * lib/xstrtol-error.c: Include exitfail.h.
79980         (xstrtol_fatal): New function, with a different signature from the
79981         old xstrtol_error, so that the caller need not worry about passing
79982         in an exit status, or about storage management of the option argument.
79983         (xstrtol_error): Now a static function.  Redo signature to
79984         implement xstrtol_fatal.  Output the correct number of hyphens in
79985         front of the option so that the caller need not worry about
79986         storage management.
79987         (N_): New macro.
79988         (_): Remove; not used now.
79989         * modules/xstrtol: Depend on getopt.
79990         * tests/test-xstrtol.c (main): Use new xstrtol_error function instead
79991         of old STRTOL_FATAL_ERROR macro.
79992         * tests/test-xstrtol.sh (t-xstrtol.xo): Adjust to match new behavior
79993         of test program.
79994         * tests/test-xstrtoimax.sh (t-xstrtoimax.xo): Likewise.
79995         * tests/test-xstrtoumax.sh (t-xstrtoumax.xo): Likewise.
79997 2007-08-08  Eric Blake  <ebb9@byu.net>
79999         * lib/xstrtol-error.c: Add missing include.
80001         Move xstrtol messages into gnulib domain, when --pobase is used.
80002         * lib/xstrtol.h (_STRTOL_ERROR): Move messages out of macro...
80003         * lib/xstrtol-error.c (xstrtol_error): ...into new file.
80004         * modules/xstrtol (Files): Distribute new file.
80005         * m4/xstrtol.m4 (gl_XSTRTOL): Build new file.
80006         * lib/xstrtol.c (TESTING_XSTRTO): Move tests...
80007         * tests/test-xstrtol.c: ...into new file.
80008         * tests/test-xstrtoul.c: Also test xstrtoul.
80009         * tests/test-xstrtoimax.c: Also test xstrtoimax.
80010         * tests/test-xstrtoumax.c: Also test xstrtoumax.
80011         * tests/test-xstrtol.sh: Drive the tests.
80012         * tests/test-xstrtoimax.sh: Likewise.
80013         * tests/test-xstrtoumax.sh: Likewise.
80014         * modules/xstrtol-tests: New module.
80015         * modules/xstrtoimax-tests: Likewise.
80016         * modules/xstrtoumax-tests: Likewise.
80018 2007-08-08  Jim Meyering  <jim@meyering.net>
80020         New function: mfile_name_concat.
80021         * lib/filenamecat.c (mfile_name_concat): New function, just like
80022         file_name_concat, but return NULL upon failure rather than exiting
80023         with a diagnostic.
80024         * lib/filenamecat.h: Declare it.
80026 2007-08-07  Bruno Haible  <bruno@clisp.org>
80028         * m4/inttypes.m4 (gl_INTTYPES_H): Use GL_TRIGGER_STDC_LIMIT_MACROS
80029         instead of __STDC_LIMIT_MACROS_TRIGGER. This avoids a redefinition
80030         warning from gcc.
80031         Reported by Eric Blake.
80033 2007-08-07  Simon Josefsson  <simon@josefsson.org>
80035         * modules/crypto/arctwo (License): Use the synonymous term "LGPLv2+".
80036         * modules/crypto/arcfour (License): Likewise.
80037         * modules/crypto/des-tests (License): Likewise.
80038         * modules/crypto/gc-arctwo-tests (License): Likewise.
80039         * modules/crypto/gc-des-tests (License): Likewise.
80040         * modules/crypto/gc-hmac-md5-tests (License): Likewise.
80041         * modules/crypto/gc-hmac-sha1-tests (License): Likewise.
80042         * modules/crypto/gc-md2-tests (License): Likewise.
80043         * modules/crypto/gc-md4-tests (License): Likewise.
80044         * modules/crypto/gc-md5-tests (License): Likewise.
80045         * modules/crypto/gc-pbkdf2-sha1-tests (License): Likewise.
80046         * modules/crypto/gc-rijndael-tests (License): Likewise.
80047         * modules/crypto/gc-sha1-tests (License): Likewise.
80048         * modules/crypto/gc-tests (License): Likewise.
80049         * modules/crypto/hmac-md5 (License): Likewise.
80050         * modules/crypto/hmac-sha1 (License): Likewise.
80051         * modules/crypto/md2-tests (License): Likewise.
80052         * modules/crypto/md4-tests (License): Likewise.
80053         * modules/crypto/md5 (License): Likewise.
80054         * modules/crypto/rijndael (License): Likewise.
80055         * modules/crypto/sha1 (License): Likewise.
80056         * modules/memxor (License): Likewise.
80058 2007-08-06  Paul Eggert  <eggert@cs.ucla.edu>
80059         and Bruno Haible  <bruno@clisp.org>
80061         * NEWS: Describe interface changes to human, xstrtol.
80062         * lib/human.h: Include <xstrtol.h>.
80063         (human_options): Return enum strtol_error, not int.  Remove
80064         bool arg; take int * instead.
80065         * lib/human.c: Don't include "gettext.h".
80066         (_): Remove; no longer used.
80067         Don't include <xstrtol.h>, since human.h does it.
80068         (human_options): Adjust to abovementioned interface changes.
80069         Do not report error to stderr; that's now the caller's
80070         responsibility.
80071         * lib/xstrtol.c (main) [defined TESTING_XSTRTO]: Adjust to
80072         interface change.
80073         * lib/xstrtol.h (_STRTOL_ERROR): Take Option, Arg rather than
80074         Str, Argument_type_string.  All uses changed.  Put " argument"
80075         in diagnostics to make them clearer.  Change wording of suffix
80076         message for clarity.
80077         (STRTOL_FATAL_ERROR): Take Option, Arg rather than Str,
80078         Argument_type_string.
80079         (STRTOL_FATAL_WARN): Remove; no longer used.
80080         * modules/human (Depends-on): Remove gettext-h.
80082 2007-08-06  Simon Josefsson  <simon@josefsson.org>
80084         * build-aux/maint.mk, build-aux/GNUmakefile: Relicense to GPLv3+.
80086 2007-07-31  Bruno Haible  <bruno@clisp.org>
80088         * m4/stdint.m4 (gl_STDINT_H): Test whether WCHAR_MIN and WCHAR_MAX
80089         are defined by <stdint.h> (as opposed to <wchar.h>, as on Dragonfly).
80090         Reported by Joerg Sonnenberger <joerg@britannica.bec.de>.
80092 2007-07-31  Bruno Haible  <bruno@clisp.org>
80094         * lib/fflush.c (rpl_fflush): On BSD systems, use the __SNPT flag.
80095         Suggested by Joerg Sonnenberger <joerg@britannica.bec.de>.
80097 2007-07-30  Bruno Haible  <bruno@clisp.org>
80099         * modules/base64 (License): Use the synonymous term "LGPLv2+".
80100         * modules/c-ctype (License): Likewise.
80101         * modules/c-strcase (License): Likewise.
80102         * modules/check-version (License): Likewise.
80103         * modules/iconv (License): Likewise.
80104         * modules/iconv_open (License): Likewise.
80105         * modules/read-file (License): Likewise.
80106         * modules/striconv (License): Likewise.
80107         * modules/strverscmp (License): Likewise.
80108         * modules/vasprintf (License): Likewise.
80109         * modules/crypto/des (License): Likewise.
80110         * modules/crypto/gc (License): Likewise.
80111         * modules/crypto/gc-arcfour (License): Likewise.
80112         * modules/crypto/gc-arctwo (License): Likewise.
80113         * modules/crypto/gc-des (License): Likewise.
80114         * modules/crypto/gc-hmac-md5 (License): Likewise.
80115         * modules/crypto/gc-hmac-sha1 (License): Likewise.
80116         * modules/crypto/gc-md2 (License): Likewise.
80117         * modules/crypto/gc-md4 (License): Likewise.
80118         * modules/crypto/gc-md5 (License): Likewise.
80119         * modules/crypto/gc-pbkdf2-sha1 (License): Likewise.
80120         * modules/crypto/gc-random (License): Likewise.
80121         * modules/crypto/gc-rijndael (License): Likewise.
80122         * modules/crypto/gc-sha1 (License): Likewise.
80123         * modules/crypto/md2 (License): Likewise.
80124         * modules/crypto/md4 (License): Likewise.
80126 2007-07-30  Jim Meyering  <jim@meyering.net>
80128         * lib/fts.c (fts_read): Upon failure to chdir into a subdirectory,
80129         set fts_info to FTS_DNR, not to FTS_ERR, so that the caller knows
80130         it has valid stat data.  This bug would cause du not to count the
80131         sizes of inaccessible directories.
80132         Patch by Bryan Mason <bmason@redhat.com>, via Jose Maria Plans
80133         in <http://bugzilla.redhat.com/250077>.
80135 2007-07-25  Peter O'Gorman  <peter@pogma.com>
80136             Bruno Haible  <bruno@clisp.org>
80138         * m4/include_next.m4 (gl_INCLUDE_NEXT): Test whether #include_next
80139         really works. Needed because AIX 4.3 "xlc -E" doesn't understand
80140         #include_next, gives a diagnostic about it, but reports no error in
80141         the exit code.
80142         Reported by Gary V. Vaughan <gary@thewrittenword.com>.
80144 2007-07-24  Ben Pfaff  <blp@gnu.org>
80146         Improve name: "count-one-bits" is better than "popcount".
80147         * MODULES.html.sh: Update name.
80148         * lib/popcount.h: Renamed lib/count-one-bits.h.
80149         (popcount): Renamed count_one_bits.
80150         (popcountl): Renamed count_one_bits_l.
80151         (popcountll): Renamed count_one_bits_ll.
80152         * m4/popcount.m4: Renamed m4/count-one-bits.m4.
80153         * modules/popcount: Renamed module/count-one-bits.
80154         * modules/popcount-tests: Renamed module/count-one-bits-tests.
80155         * tests/test-popcount.c: Renamed tests/test-count-one-bits.c.
80157 2007-07-23  Ben Pfaff  <blp@gnu.org>
80159         * lib/popcount.h (popcount32): Reduce size of constants, to allow
80160         better code generation, and add U to large constants to avoid
80161         warnings, in non-GCC case.
80162         Suggested by Bruno Haible.
80164 2007-07-23  Ben Pfaff  <blp@gnu.org>
80166         * lib/popcount.h: Use verify_true instead of if...abort.
80167         * modules/popcount: Depend on verify module.
80168         Suggested by Jim Meyering.
80170 2007-07-23  Bruno Haible  <bruno@clisp.org>
80172         * gnulib-tool (func_import): Create a .cvsignore file also when the
80173         directory is not yet in CVS but the toplevel directory is. When
80174         creating a .cvsignore file, add ".deps" and ".dirstamp" to it.
80175         Reported by Karl Berry.
80177 2007-07-22  Ben Pfaff  <blp@gnu.org>
80179         * lib/popcount.h: Use faster, branchless algorithm for non-GCC
80180         case.
80181         Suggested by Eric Blake.
80183 2007-07-22  Ben Pfaff  <blp@gnu.org>
80185         New module: popcount.
80186         * MODULES.html.sh: Add popcount.
80187         * modules/popcount: New file.
80188         * modules/popcount-tests: New file.
80189         * tests/test-popcount.c: New file.
80190         * lib/popcount.h: New file.
80191         * m4/popcount.m4: New file.
80193 2007-07-22  Paul Eggert  <eggert@cs.ucla.edu>
80195         * build-aux/announce-gen: Update to GPLv3.
80197         * build-aux/config.guess: Update from config.
80199 2007-07-21  Bruno Haible  <bruno@clisp.org>
80201         * lib/error.c (_) [ENABLE_NLS]: Define to gettext.
80202         * lib/verror.c (_) [ENABLE_NLS]: Likewise.
80204 2007-07-20  Jim Meyering  <jim@meyering.net>
80206         * check-module: Diagnose a self-dependency.
80208 2007-07-19  Bruno Haible  <bruno@clisp.org>
80210         * gnulib-tool (func_import): Don't abort if pobase or po_domain is
80211         empty.
80212         Reported by Eric Blake.
80214 2007-07-18  Bruno Haible  <bruno@clisp.org>
80216         * gnulib-tool: New options --po-base, --po-domain.
80217         (func_usage): Document them.
80218         (pobase, po_domain): New variables.
80219         (func_emit_lib_Makefile_am): Augment AM_CPPFLAGS, defining
80220         DEFAULT_TEXT_DOMAIN.
80221         (func_emit_po_Makevars, func_emit_po_POTFILES_in): New functions.
80222         (func_import): Consider pobase and po_domain. Create a po/ directory.
80223         (func_create_testdir): Set pobase and po_domain to empty.
80224         * build-aux/po/Makefile.in.in: New file, from GNU gettext 0.16.1.
80225         * build-aux/po/remove-potcdate.sin: New file, from GNU gettext 0.16.1.
80227 2007-07-18  Bruno Haible  <bruno@clisp.org>
80229         * gnulib-tool (func_get_automake_snippet): Synthesize also an
80230         EXTRA_DIST augmentation for files in build-aux/.
80232 2007-07-16  Bruno Haible  <bruno@clisp.org>
80234         * modules/lseek (License): Use the synonymous term "LGPLv2+".
80235         * modules/getdelim (License): Likewise.
80237 2007-07-16  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
80239         * modules/arpa_inet (License): Use the synonymous term LGPLv2+.
80240         * modules/d-type (License): Likewise.
80241         * modules/extensions (License): Likewise.
80242         * modules/fnmatch (License): Likewise.
80243         * modules/fseeko (License): Likewise.
80244         * modules/getaddrinfo (License): Likewise.
80245         * modules/getline (License): Likewise.
80246         * modules/getlogin_r (License): Likewise.
80247         * modules/getpass (License): Likewise.
80248         * modules/gettimeofday (License): Likewise.
80249         * modules/glob (License): Likewise.
80250         * modules/inet_ntop (License): Likewise.
80251         * modules/malloc (License): Likewise.
80252         * modules/malloca (License): Likewise.
80253         * modules/memmem (License): Likewise.
80254         * modules/mempcpy (License): Likewise.
80255         * modules/memset (License): Likewise.
80256         * modules/minmax (License): Likewise.
80257         * modules/mktime (License): Likewise.
80258         * modules/netinet_in (License): Likewise.
80259         * modules/pathmax (License): Likewise.
80260         * modules/poll (License): Likewise.
80261         * modules/regex (License): Likewise.
80262         * modules/snprintf (License): Likewise.
80263         * modules/stdbool (License): Likewise.
80264         * modules/stdint (License): Likewise.
80265         * modules/stdio (License): Likewise.
80266         * modules/strcase (License): Likewise.
80267         * modules/strcasestr (License): Likewise.
80268         * modules/strdup (License): Likewise.
80269         * modules/string (License): Likewise.
80270         * modules/strndup (License): Likewise.
80271         * modules/strnlen (License): Likewise.
80272         * modules/strpbrk (License): Likewise.
80273         * modules/strptime (License): Likewise.
80274         * modules/strsep (License): Likewise.
80275         * modules/sys_select (License): Likewise.
80276         * modules/sys_socket (License): Likewise.
80277         * modules/sys_stat (License): Likewise.
80278         * modules/sys_time (License): Likewise.
80279         * modules/time (License): Likewise.
80280         * modules/time_r (License): Likewise.
80281         * modules/timegm (License): Likewise.
80282         * modules/unistd (License): Likewise.
80283         * modules/vsnprintf (License): Likewise.
80284         * modules/wctype (License): Likewise.
80286 2007-07-16  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
80288         * modules/argz (License): LGPLv2+.
80290 2007-07-15  Karl Berry  <karl@gnu.org>
80292         * doc/gnulib.texi: revise node structure per new fdl.texi.
80294 2007-07-14  Bruno Haible  <bruno@clisp.org>
80296         * lib/uniname/gen-uninames.lisp (main): Emit a "do not edit" line to
80297         the output file.
80298         * lib/uniname/uninames.h: Regenerated.
80300 2007-07-14  Karl Berry  <karl@gnu.org>
80302         * doc/*gpl*.texi, doc/fdl.texi: new versions, consistently
80303         omitting sectioning and index commands.
80305 2007-07-13  Bruno Haible  <bruno@clisp.org>
80307         New gnulib-tool option --more-symlinks.
80308         * gnulib-tool (func_usage): Document --more-symlinks.
80309         (do_copyrights): New variable.
80310         Recognize option --more-symlinks.
80311         (func_import): Don't add a copyright notice transform to
80312         sed_transform_lib_file if do_copyrights is empty.
80314 2007-07-13  Bruno Haible  <bruno@clisp.org>
80316         * lib/vasnprintf.c (decimal_point_char): Define also if
80317         (NEED_PRINTF_LONG_DOUBLE || NEED_PRINTF_INFINITE_DOUBLE)
80318         && !NEED_PRINTF_DIRECTIVE_A.
80319         Reported by Clemens Koller <clemens.koller@anagramm.de> via
80320         Gary V. Vaughan <gary@gnu.org>.
80322 2007-07-13  Paul Eggert  <eggert@cs.ucla.edu>
80324         * lib/inttypes_.h: Undo previous change, since it was fixed
80325         in a different way in the 2007-07-02 fix to m4/inttypes.m4.
80327 2007-07-13  Bruno Haible  <bruno@clisp.org>
80329         * lib/stdint_.h: Fix typo: _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H was
80330         misspelled as _GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H.
80332 2007-07-13  Jim Meyering  <jim@meyering.net>
80334         df: Don't fail for Tru64's "file-on-file mount".
80335         * m4/fsusage.m4 (gl_FSUSAGE): Reject Tru64's buggy statvfs,
80336         so we fall through and use statfs instead.  Details here:
80337         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/10878>
80338         Reported by Albert Chin.
80340 2007-07-13  Bruno Haible  <bruno@clisp.org>
80342         * modules/alloca-opt (License): Use the synonymous term "LGPLv2+".
80343         * modules/configmake (License): Likewise.
80344         * modules/gettext (License): Likewise.
80345         * modules/gettext-h (License): Likewise.
80346         * modules/include_next (License): Likewise.
80347         * modules/link-warning (License): Likewise.
80348         * modules/localcharset (License): Likewise.
80349         * modules/localename (License): Likewise.
80350         * modules/lock (License): Likewise.
80351         * modules/relocatable-lib-lgpl (License): Likewise.
80352         * modules/size_max (License): Likewise.
80353         * modules/vasnprintf (License): Likewise.
80354         * modules/wchar (License): Likewise.
80355         * modules/xsize (License): Likewise.
80357 2007-07-13  Bruno Haible  <bruno@clisp.org>
80359         * gnulib-tool (func_import): Treat LGPLv2 as synonymous to LGPL.
80360         (func_create_testdir): Handle copying terms "GPLv2+" and "LGPLv2+".
80362 2007-07-12  Bruno Haible  <bruno@clisp.org>
80364         * doc/gnulib-intro.texi (Copyright): Clarify the license abbreviations
80365         in the modules files.
80367 2007-07-11  Karl Berry  <karl@gnu.org>
80369         * MODULES.html.sh (func_module): use
80370          sed -e '\|^'"${includefile}"'$|d'
80371          instead of /.../d, to avoid errors on $includefile's containing /.
80373 2007-07-10  Sergey Poznyakoff  <gray@gnu.org.ua>
80375         * gnulib-tool (func_import): Avoid duplication of --avoid
80376         statements
80377         (func_dest_tmpfilename,func_create_testdir): Translate `-' in file
80378         names to `_' in variable names.
80380 2007-07-10  Eric Blake  <ebb9@byu.net>
80382         * lib/version-etc.c (version_etc_va): Default to GPLv3+.
80383         * NEWS: Document this change.
80385 2007-07-08  Bruno Haible  <bruno@clisp.org>
80387         Update to Unicode 5.0.
80388         * lib/uniwidth/width.c (nonspacing_table_data): Add U+00AD,
80389         U+0350..U+035F, U+05A2, U+05BA, U+05C5, U+05C7, U+0600..U+0603,
80390         U+0610..U+0615, U+0656..U+065E, U+07EB..U+07F3, U+0A01, U+0AE2..U+0AE3,
80391         U+0CBC. Remove U+0CBF, U+0CC6. Add U+0CE2..U+0CE3, U+135F,
80392         U+17B4..U+17B5, U+17DD. Remove U+180E. Add U+1920..U+1922,
80393         U+1927..U+192B, U+1932, U+1939..U+193B, U+1A17..U+1A18, U+1B00..U+1B03,
80394         U+1B34, U+1B36..U+1B3A, U+1B3C, U+1B42, U+1B6B..U+1B73, U+1DC0..U+1DCA,
80395         U+1DFE..U+1DFF, U+20EB..U+20EF, U+A802, U+A806, U+A80B, U+A825..U+A826,
80396         U+10A01..U+10A03, U+10A05..U+10A06, U+10A0C..U+10A0F, U+10A38..U+10A3A,
80397         U+10A3F, U+1D242..U+1D244.
80398         (nonspacing_table_ind): Update.
80399         (uc_width): Assign width 0 to U+E0100..U+E01EF. Assign width 1 to
80400         U+4DC0..U+4DFF. Assign width 2 to U+2329..U+232A, U+FE10..U+FE1F.
80402 2007-07-08  Bruno Haible  <bruno@clisp.org>
80404         Update to Unicode 5.0.
80405         * lib/uniname/gen-uninames.lisp (main): Add the range 0x12xxx to the
80406         code transform. Extend the name index field of unicode_name_to_code and
80407         unicode_code_to_name from 16 to 24 bits.
80408         * lib/uniname/uniname.c (unicode_character_name,
80409         unicode_name_character): Add the range 0x12xxx to the code transform.
80410         * lib/uniname/uninames.h: Regenerated.
80411         * tests/uniname/UnicodeDataNames.txt: Update to Unicode 5.0.
80413 2007-07-07  Bruno Haible  <bruno@clisp.org>
80415         * modules/wcwidth-tests: New file.
80416         * tests/test-wcwidth.c: New file.
80418         Work around MacOS X wcwidth() bug.
80419         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Test against MacOS X 10.3 bug.
80420         * lib/wcwidth.c: Include localcharset.h, streq.h, uniwidth.h.
80421         (rpl_wcwidth): Special-case the UTF-8 locales. Fall back to the
80422         original wcwidth in non-UTF-8 locales.
80423         * modules/wcwidth (Depends-on): Add localcharset, streq,
80424         uniwidth/width.
80425         * doc/functions/wcwidth.texi: Update.
80427 2007-07-07  Bruno Haible  <bruno@clisp.org>
80429         * lib/wchar_.h: Include the GL_LINK_WARNING macro.
80430         (wcwidth): New declaration.
80431         * m4/wchar.m4 (gl_WCHAR_MODULE_INDICATOR, gl_WCHAR_H_DEFAULTS): New
80432         macros.
80433         (gl_WCHAR_H): Require gl_WCHAR_H_DEFAULTS. Don't set WCHAR_H to empty
80434         here. Prepare for creating <wchar.h> unconditionally.
80435         * modules/wchar (Depends-on): Add link-warning.
80436         (Makefile.am): Substitute also GNULIB_WCWIDTH, HAVE_DECL_WCWIDTH,
80437         REPLACE_WCWIDTH, and GL_LINK_WARNING.
80438         * lib/wcwidth.h: Remove file.
80439         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Require gl_WCHAR_H_DEFAULTS. Set
80440         HAVE_DECL_WCWIDTH, REPLACE_WCWIDTH, WCHAR_H.
80441         * modules/wcwidth (Files): Remove lib/wcwidth.h.
80442         (configure.ac): Invoke gl_WCHAR_MODULE_INDICATOR.
80443         (Include): Replace wcwidth.h with <wchar.h>.
80444         * lib/wcwidth.c: Include <wchar.h> instead of wcwidth.h.
80445         * lib/mbchar.h: Don't include wcwidth.h.
80446         * lib/mbswidth.c: Likewise.
80447         * NEWS: Mention the change.
80449 2007-07-07  Bruno Haible  <bruno@clisp.org>
80451         * lib/wcwidth.c: New file, extracted from lib/wcwidth.h.
80452         * lib/wcwidth.h: Don't include wctype.h. Replace inline function
80453         definition with an external declaration.
80454         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Use wcwidth.c when wcwidth is not
80455         defined as a function. Remove AC_C_INLINE requirement.
80456         * modules/wcwidth (Files): Add lib/wcwidth.c.
80457         (Makefile.am): Remove redundant statement.
80459 2007-07-07  Bruno Haible  <bruno@clisp.org>
80461         * MODULES.html.sh (Unicode string functions): Add the new modules.
80463         * tests/uniwidth/test-u32-strwidth.c: New file.
80464         * modules/uniwidth/u32-strwidth-tests: New file.
80466         * lib/uniwidth/u32-strwidth.c: New file.
80467         * modules/uniwidth/u32-strwidth: New file.
80469         * tests/uniwidth/test-u16-strwidth.c: New file.
80470         * modules/uniwidth/u16-strwidth-tests: New file.
80472         * lib/uniwidth/u16-strwidth.c: New file.
80473         * modules/uniwidth/u16-strwidth: New file.
80475         * tests/uniwidth/test-u8-strwidth.c: New file.
80476         * modules/uniwidth/u8-strwidth-tests: New file.
80478         * lib/uniwidth/u8-strwidth.c: New file.
80479         * modules/uniwidth/u8-strwidth: New file.
80481         * tests/uniwidth/test-u32-width.c: New file.
80482         * modules/uniwidth/u32-width-tests: New file.
80484         * lib/uniwidth/u32-width.c: New file.
80485         * modules/uniwidth/u32-width: New file.
80487         * tests/uniwidth/test-u16-width.c: New file.
80488         * modules/uniwidth/u16-width-tests: New file.
80490         * lib/uniwidth/u16-width.c: New file.
80491         * modules/uniwidth/u16-width: New file.
80493         * tests/uniwidth/test-u8-width.c: New file.
80494         * modules/uniwidth/u8-width-tests: New file.
80496         * lib/uniwidth/u8-width.c: New file.
80497         * modules/uniwidth/u8-width: New file.
80499         * tests/uniwidth/test-uc_width.c: New file.
80500         * modules/uniwidth/width-tests: New file.
80502         * lib/uniwidth/width.c: New file, from GNU libiconv.
80503         * lib/uniwidth/cjk.h: New file, from GNU libiconv.
80504         * modules/uniwidth/width: New file.
80506         * lib/uniwidth.h: New file, from GNU libiconv.
80507         * modules/uniwidth/base: New file.
80509 2007-07-07  Bruno Haible  <bruno@clisp.org>
80511         * lib/uniname.h: New file, from GNU gettext.
80512         * lib/uniname/gen-uninames.lisp: New file, from GNU gettext.
80513         * lib/uniname/uninames.h: New file, from GNU gettext.
80514         * lib/uniname/uniname.c: New file, from GNU gettext.
80515         * tests/uniname/test-uninames.sh: New file.
80516         * tests/uniname/test-uninames.c: New file, from GNU gettext.
80517         * tests/uniname/UnicodeDataNames.txt: New file, from GNU gettext.
80518         * modules/uniname/base: New file.
80519         * modules/uniname/uniname: New file.
80520         * modules/uniname/uniname-tests: New file.
80521         * MODULES.html.sh (Unicode string functions): Add the new modules.
80523 2007-07-06  Bruno Haible  <bruno@clisp.org>
80525         * doc/Makefile (TEXI2HTML): Specify a --reference-limit.
80527 2007-07-06  Bruno Haible  <bruno@clisp.org>
80529         * lib/sys_time_.h: Use a recursion-safe inclusion guard rather than
80530         a split double-inclusion guard. Needed for cygwin, where <sys/time.h>
80531         includes <cygwin/sys_time.h> which includes <sys/select.h> which
80532         include <sys/time.h>.
80533         Reported by Eric Blake.
80535 2007-07-06  Eric Blake  <ebb9@byu.net>
80537         Fix testing canonicalize on cygwin.
80538         * modules/canonicalize-lgpl-tests (test_canonicalize_lgpl_LDADD):
80539         Revert patch from 2007-06-19.
80540         * tests/test-canonicalize-lgpl.c (main): Instead, skip test when
80541         canonicalize module is also in use.
80542         * tests/test-canonicalize.c: New file.
80543         * tests/test-canonicalize.sh: Likewise.
80544         * modules/canonicalize-tests: Likewise.
80546 2007-07-06  Jim Meyering  <jim@meyering.net>
80548         * lib/getugroups.c (getugroups): Detect getgrent failure.
80549         Adjust comment to reflect reality: this function may return -1.
80551 2007-07-05  Sergey Poznyakoff  <gray@gnu.org.ua>
80553         * build-aux/bootstrap (TP_URL,get_translations): Update to use
80554         the new TP address.
80555         (usage): Fix typo
80556         (gnulib_mk): New variable.
80558 2007-07-05  Jim Meyering  <jim@meyering.net>
80560         Don't let endgrent clobber errno, no matter how improbable.
80561         * lib/getugroups.c (getugroups): Save and restore errno around
80562         endgrent call.
80564         Close the group DB even when failing with 2^31 or more members.
80565         * lib/getugroups.c (getugroups): Don't return without calling endgrent.
80567 2007-07-04  Jim Meyering  <jim@meyering.net>
80569         * lib/getugroups.h: New file.
80570         * lib/getugroups.c: Include "getugroups.h".
80571         Remove uses of "register" keyword.
80572         Move local variable, "cp", down into scope where used.
80573         Give "username" parameter the "const" attribute.
80574         * modules/getugroups (Files): Add lib/getugroups.h
80576 2007-07-04  Karl Berry  <karl@gnu.org>
80578         * MODULES.html.sh (func_all_modules): Complete rename of
80579         gpl/lgpl to gpl-2.0 and lgpl-2.1, and add gpl-3.0.
80581 2007-07-02  Bruno Haible  <bruno@clisp.org>
80583         * m4/inttypes.m4 (gl_INTTYPES_H): Define __STDC_LIMIT_MACROS in C++
80584         mode, when inttypes.h comes from gnulib.
80585         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
80587 2007-07-02  Simon Josefsson  <simon@josefsson.org>
80589         * NEWS: Mention lgpl module name change.
80591         * modules/lgpl-2.1: Renamed from lgpl.
80593         * NEWS: Mention gpl module name change.
80595         * modules/gpl-3.0: New file, based on gpl-2.0.
80597         * modules/gpl-2.0: Renamed from gpl.
80599         * modules/gpl: Fix filename, doc/gpl.texi is now found at
80600         doc/gpl-2.0.texi.
80602 2007-07-02  Paul Eggert  <eggert@cs.ucla.edu>
80604         * lib/inttypes_.h [defined __cplusplus&&!defined __STDC_LIMIT_MACROS]:
80605         #define __STDC_LIMIT_MACROS temporarily while including
80606         <stdint.h>, so that __STDC_LIMIT_MACROS is defined.
80607         Problem reported by Joel E. Denny in
80608         <http://lists.gnu.org/archive/html/bug-gnulib/2007-07/msg00008.html>.
80610 2007-07-01  Bruno Haible  <bruno@clisp.org>
80612         * lib/unistdio.h: New file.
80613         * lib/unistdio/u-asnprintf.h: New file.
80614         * lib/unistdio/u-asprintf.h: New file.
80615         * lib/unistdio/u-printf-args.c: New file.
80616         * lib/unistdio/u-printf-args.h: New file.
80617         * lib/unistdio/u-printf-parse.h: New file.
80618         * lib/unistdio/u-snprintf.h: New file.
80619         * lib/unistdio/u-sprintf.h: New file.
80620         * lib/unistdio/u-vasprintf.h: New file.
80621         * lib/unistdio/u-vsnprintf.h: New file.
80622         * lib/unistdio/u-vsprintf.h: New file.
80623         * lib/unistdio/ulc-asnprintf.c: New file.
80624         * lib/unistdio/ulc-asprintf.c: New file.
80625         * lib/unistdio/ulc-fprintf.c: New file, based on lib/fprintf.c.
80626         * lib/unistdio/ulc-printf-parse.c: New file.
80627         * lib/unistdio/ulc-snprintf.c: New file.
80628         * lib/unistdio/ulc-sprintf.c: New file.
80629         * lib/unistdio/ulc-vasnprintf.c: New file.
80630         * lib/unistdio/ulc-vasprintf.c: New file.
80631         * lib/unistdio/ulc-vfprintf.c: New file, based on lib/vfprintf.c.
80632         * lib/unistdio/ulc-vsnprintf.c: New file.
80633         * lib/unistdio/ulc-vsprintf.c: New file.
80634         * lib/unistdio/u8-asnprintf.c: New file.
80635         * lib/unistdio/u8-asprintf.c: New file.
80636         * lib/unistdio/u8-printf-parse.c: New file.
80637         * lib/unistdio/u8-snprintf.c: New file.
80638         * lib/unistdio/u8-sprintf.c: New file.
80639         * lib/unistdio/u8-vasnprintf.c: New file.
80640         * lib/unistdio/u8-vasprintf.c: New file.
80641         * lib/unistdio/u8-vsnprintf.c: New file.
80642         * lib/unistdio/u8-vsprintf.c: New file.
80643         * lib/unistdio/u8-u8-asnprintf.c: New file.
80644         * lib/unistdio/u8-u8-asprintf.c: New file.
80645         * lib/unistdio/u8-u8-snprintf.c: New file.
80646         * lib/unistdio/u8-u8-sprintf.c: New file.
80647         * lib/unistdio/u8-u8-vasnprintf.c: New file.
80648         * lib/unistdio/u8-u8-vasprintf.c: New file.
80649         * lib/unistdio/u8-u8-vsnprintf.c: New file.
80650         * lib/unistdio/u8-u8-vsprintf.c: New file.
80651         * lib/unistdio/u16-asnprintf.c: New file.
80652         * lib/unistdio/u16-asprintf.c: New file.
80653         * lib/unistdio/u16-printf-parse.c: New file.
80654         * lib/unistdio/u16-snprintf.c: New file.
80655         * lib/unistdio/u16-sprintf.c: New file.
80656         * lib/unistdio/u16-vasnprintf.c: New file.
80657         * lib/unistdio/u16-vasprintf.c: New file.
80658         * lib/unistdio/u16-vsnprintf.c: New file.
80659         * lib/unistdio/u16-vsprintf.c: New file.
80660         * lib/unistdio/u16-u16-asnprintf.c: New file.
80661         * lib/unistdio/u16-u16-asprintf.c: New file.
80662         * lib/unistdio/u16-u16-snprintf.c: New file.
80663         * lib/unistdio/u16-u16-sprintf.c: New file.
80664         * lib/unistdio/u16-u16-vasnprintf.c: New file.
80665         * lib/unistdio/u16-u16-vasprintf.c: New file.
80666         * lib/unistdio/u16-u16-vsnprintf.c: New file.
80667         * lib/unistdio/u16-u16-vsprintf.c: New file.
80668         * lib/unistdio/u32-asnprintf.c: New file.
80669         * lib/unistdio/u32-asprintf.c: New file.
80670         * lib/unistdio/u32-printf-parse.c: New file.
80671         * lib/unistdio/u32-snprintf.c: New file.
80672         * lib/unistdio/u32-sprintf.c: New file.
80673         * lib/unistdio/u32-vasnprintf.c: New file.
80674         * lib/unistdio/u32-vasprintf.c: New file.
80675         * lib/unistdio/u32-vsnprintf.c: New file.
80676         * lib/unistdio/u32-vsprintf.c: New file.
80677         * lib/unistdio/u32-u32-asnprintf.c: New file.
80678         * lib/unistdio/u32-u32-asprintf.c: New file.
80679         * lib/unistdio/u32-u32-snprintf.c: New file.
80680         * lib/unistdio/u32-u32-sprintf.c: New file.
80681         * lib/unistdio/u32-u32-vasnprintf.c: New file.
80682         * lib/unistdio/u32-u32-vasprintf.c: New file.
80683         * lib/unistdio/u32-u32-vsnprintf.c: New file.
80684         * lib/unistdio/u32-u32-vsprintf.c: New file.
80685         * tests/unistdio/test-ulc-asnprintf1.c: New file.
80686         * tests/unistdio/test-ulc-asnprintf1.h: New file.
80687         * tests/unistdio/test-ulc-printf1.h: New file.
80688         * tests/unistdio/test-ulc-vasnprintf1.c: New file.
80689         * tests/unistdio/test-ulc-vasnprintf2.c: New file.
80690         * tests/unistdio/test-ulc-vasnprintf2.sh: New file.
80691         * tests/unistdio/test-ulc-vasnprintf3.c: New file.
80692         * tests/unistdio/test-ulc-vasnprintf3.sh: New file.
80693         * tests/unistdio/test-ulc-vasprintf1.c: New file.
80694         * tests/unistdio/test-ulc-vsnprintf1.c: New file.
80695         * tests/unistdio/test-ulc-vsprintf1.c: New file.
80696         * tests/unistdio/test-u8-asnprintf1.c: New file.
80697         * tests/unistdio/test-u8-asnprintf1.h: New file.
80698         * tests/unistdio/test-u8-printf1.h: New file.
80699         * tests/unistdio/test-u8-vasnprintf1.c: New file.
80700         * tests/unistdio/test-u8-vasnprintf2.c: New file.
80701         * tests/unistdio/test-u8-vasnprintf2.sh: New file.
80702         * tests/unistdio/test-u8-vasnprintf3.c: New file.
80703         * tests/unistdio/test-u8-vasnprintf3.sh: New file.
80704         * tests/unistdio/test-u8-vasprintf1.c: New file.
80705         * tests/unistdio/test-u8-vsnprintf1.c: New file.
80706         * tests/unistdio/test-u8-vsprintf1.c: New file.
80707         * tests/unistdio/test-u16-asnprintf1.c: New file.
80708         * tests/unistdio/test-u16-asnprintf1.h: New file.
80709         * tests/unistdio/test-u16-printf1.h: New file.
80710         * tests/unistdio/test-u16-vasnprintf1.c: New file.
80711         * tests/unistdio/test-u16-vasnprintf2.c: New file.
80712         * tests/unistdio/test-u16-vasnprintf2.sh: New file.
80713         * tests/unistdio/test-u16-vasnprintf3.c: New file.
80714         * tests/unistdio/test-u16-vasnprintf3.sh: New file.
80715         * tests/unistdio/test-u16-vasprintf1.c: New file.
80716         * tests/unistdio/test-u16-vsnprintf1.c: New file.
80717         * tests/unistdio/test-u16-vsprintf1.c: New file.
80718         * tests/unistdio/test-u32-asnprintf1.c: New file.
80719         * tests/unistdio/test-u32-asnprintf1.h: New file.
80720         * tests/unistdio/test-u32-printf1.h: New file.
80721         * tests/unistdio/test-u32-vasnprintf1.c: New file.
80722         * tests/unistdio/test-u32-vasnprintf2.c: New file.
80723         * tests/unistdio/test-u32-vasnprintf2.sh: New file.
80724         * tests/unistdio/test-u32-vasnprintf3.c: New file.
80725         * tests/unistdio/test-u32-vasnprintf3.sh: New file.
80726         * tests/unistdio/test-u32-vasprintf1.c: New file.
80727         * tests/unistdio/test-u32-vsnprintf1.c: New file.
80728         * tests/unistdio/test-u32-vsprintf1.c: New file.
80729         * modules/unistdio/base: New file.
80730         * modules/unistdio/u-printf-args: New file.
80731         * modules/unistdio/ulc-asnprintf: New file.
80732         * modules/unistdio/ulc-asprintf: New file.
80733         * modules/unistdio/ulc-fprintf: New file.
80734         * modules/unistdio/ulc-printf-parse: New file.
80735         * modules/unistdio/ulc-snprintf: New file.
80736         * modules/unistdio/ulc-sprintf: New file.
80737         * modules/unistdio/ulc-vasnprintf: New file.
80738         * modules/unistdio/ulc-vasprintf: New file.
80739         * modules/unistdio/ulc-vfprintf: New file.
80740         * modules/unistdio/ulc-vsnprintf: New file.
80741         * modules/unistdio/ulc-vsprintf: New file.
80742         * modules/unistdio/u8-asnprintf: New file.
80743         * modules/unistdio/u8-asprintf: New file.
80744         * modules/unistdio/u8-printf-parse: New file.
80745         * modules/unistdio/u8-snprintf: New file.
80746         * modules/unistdio/u8-sprintf: New file.
80747         * modules/unistdio/u8-vasnprintf: New file.
80748         * modules/unistdio/u8-vasprintf: New file.
80749         * modules/unistdio/u8-vsnprintf: New file.
80750         * modules/unistdio/u8-vsprintf: New file.
80751         * modules/unistdio/u8-u8-asnprintf: New file.
80752         * modules/unistdio/u8-u8-asprintf: New file.
80753         * modules/unistdio/u8-u8-snprintf: New file.
80754         * modules/unistdio/u8-u8-sprintf: New file.
80755         * modules/unistdio/u8-u8-vasnprintf: New file.
80756         * modules/unistdio/u8-u8-vasprintf: New file.
80757         * modules/unistdio/u8-u8-vsnprintf: New file.
80758         * modules/unistdio/u8-u8-vsprintf: New file.
80759         * modules/unistdio/u16-asnprintf: New file.
80760         * modules/unistdio/u16-asprintf: New file.
80761         * modules/unistdio/u16-printf-parse: New file.
80762         * modules/unistdio/u16-snprintf: New file.
80763         * modules/unistdio/u16-sprintf: New file.
80764         * modules/unistdio/u16-vasnprintf: New file.
80765         * modules/unistdio/u16-vasprintf: New file.
80766         * modules/unistdio/u16-vsnprintf: New file.
80767         * modules/unistdio/u16-vsprintf: New file.
80768         * modules/unistdio/u16-u16-asnprintf: New file.
80769         * modules/unistdio/u16-u16-asprintf: New file.
80770         * modules/unistdio/u16-u16-snprintf: New file.
80771         * modules/unistdio/u16-u16-sprintf: New file.
80772         * modules/unistdio/u16-u16-vasnprintf: New file.
80773         * modules/unistdio/u16-u16-vasprintf: New file.
80774         * modules/unistdio/u16-u16-vsnprintf: New file.
80775         * modules/unistdio/u16-u16-vsprintf: New file.
80776         * modules/unistdio/u32-asnprintf: New file.
80777         * modules/unistdio/u32-asprintf: New file.
80778         * modules/unistdio/u32-printf-parse: New file.
80779         * modules/unistdio/u32-snprintf: New file.
80780         * modules/unistdio/u32-sprintf: New file.
80781         * modules/unistdio/u32-vasnprintf: New file.
80782         * modules/unistdio/u32-vasprintf: New file.
80783         * modules/unistdio/u32-vsnprintf: New file.
80784         * modules/unistdio/u32-vsprintf: New file.
80785         * modules/unistdio/u32-u32-asnprintf: New file.
80786         * modules/unistdio/u32-u32-asprintf: New file.
80787         * modules/unistdio/u32-u32-snprintf: New file.
80788         * modules/unistdio/u32-u32-sprintf: New file.
80789         * modules/unistdio/u32-u32-vasnprintf: New file.
80790         * modules/unistdio/u32-u32-vasprintf: New file.
80791         * modules/unistdio/u32-u32-vsnprintf: New file.
80792         * modules/unistdio/u32-u32-vsprintf: New file.
80793         * modules/unistdio/ulc-asnprintf-tests: New file.
80794         * modules/unistdio/ulc-vasnprintf-tests: New file.
80795         * modules/unistdio/ulc-vasprintf-tests: New file.
80796         * modules/unistdio/ulc-vsnprintf-tests: New file.
80797         * modules/unistdio/ulc-vsprintf-tests: New file.
80798         * modules/unistdio/u8-asnprintf-tests: New file.
80799         * modules/unistdio/u8-vasnprintf-tests: New file.
80800         * modules/unistdio/u8-vasprintf-tests: New file.
80801         * modules/unistdio/u8-vsnprintf-tests: New file.
80802         * modules/unistdio/u8-vsprintf-tests: New file.
80803         * modules/unistdio/u16-asnprintf-tests: New file.
80804         * modules/unistdio/u16-vasnprintf-tests: New file.
80805         * modules/unistdio/u16-vasprintf-tests: New file.
80806         * modules/unistdio/u16-vsnprintf-tests: New file.
80807         * modules/unistdio/u16-vsprintf-tests: New file.
80808         * modules/unistdio/u32-asnprintf-tests: New file.
80809         * modules/unistdio/u32-vasnprintf-tests: New file.
80810         * modules/unistdio/u32-vasprintf-tests: New file.
80811         * modules/unistdio/u32-vsnprintf-tests: New file.
80812         * modules/unistdio/u32-vsprintf-tests: New file.
80813         * MODULES.html.sh (Unicode string functions): Add the new modules.
80815 2007-07-01  Bruno Haible  <bruno@clisp.org>
80817         * lib/sprintf.c (sprintf): Limit the available length estimation,
80818         to avoid address wraparound.
80819         * lib/vsprintf.c (vsprintf): Likewise.
80820         * modules/sprintf-posix (Dependencies): Add stdint.
80821         * modules/vsprintf-posix (Dependencies): Likewise.
80823 2007-07-01  Bruno Haible  <bruno@clisp.org>
80825         * gnulib-tool (self_abspathname): Determine PATH_SEPARATOR and handle
80826         Windows PATH as well. Conservative double-quoting. Comments.
80828 2007-07-01  Bruno Haible  <bruno@clisp.org>
80829             Eric Blake  <ebb9@byu.net>
80830             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
80832         * gnulib-tool (self_abspathname): Fix algorithm to cope with
80833         empty components in $PATH, denoting '.'.
80835 2007-07-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
80837         * gnulib-tool: Fix indentation.
80838         (func_create_megatestdir): Likewise.
80839         Report by Bruno Haible.
80841 2007-06-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
80843         Sync from Automake.
80844         * build-aux/gnupload: Fix shell portability issues with for loops.
80845         Report by Karl Berry.
80847 2007-06-29  Simon Josefsson  <simon@josefsson.org>
80849         * build-aux/maint.mk (POURL): Use translationproject.org.
80851 2007-06-27  Simon Josefsson  <simon@josefsson.org>
80852             Bruno Haible  <bruno@clisp.org>
80854         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Require gl_HEADER_SYS_SOCKET
80855         before using HAVE_WS2TCPIP_H. Check for gai_strerror through an
80856         explicit link test, rather than AC_REPLACE_FUNCS - for mingw.
80857         (gl_PREREQ_GETADDRINFO): Require gl_HEADER_SYS_SOCKET before using
80858         HAVE_SYS_SOCKET_H and HAVE_WS2TCPIP_H.
80860 2007-06-27  Bruno Haible  <bruno@clisp.org>
80862         * build-aux/config.rpath: Upgrade to libtool-1.5.24.
80863         * build-aux/config.libpath: Upgrade to libtool-1.5.24.
80865 2007-06-26  Karl Berry  <karl@gnu.org>
80867         * MODULES.html.sh: remove xreadlink-with-size.
80869 2007-06-23  Paul Eggert  <eggert@cs.ucla.edu>
80871         * lib/time_.h: Port to Solaris 8 with Sun Studio 11, using a
80872         method that I hope also handles the double-include problem noted
80873         by Bruno Haible in
80874         <http://lists.gnu.org/archive/html/bug-gnulib/2007-05/msg00186.html>.
80876 2007-06-23  Bruno Haible  <bruno@clisp.org>
80878         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
80879         Don't let the 'mostlyclean' target fail if the last subdirectory could
80880         not be removed.
80881         Reported by Karl Berry.
80883 2007-06-23  Bruno Haible  <bruno@clisp.org>
80885         * gnulib-tool (echo): Add a speedier workaround for ksh.
80886         * tests/test-echo.sh: Likewise.
80888 2007-06-23  Bruno Haible  <bruno@clisp.org>
80890         * gnulib-tool (echo): Add workarounds also for bash versions < 2.04.
80891         * tests/test-echo.sh: Likewise.
80893 2007-06-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
80895         * gnulib-tool (IFS): Initialize early, so we don't set it to
80896         empty later.
80897         (self_abspathname): Rewrite algorithm to set it, reindent.
80898         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am)
80899         (func_create_megatestdir): Merge some sed scripts.
80901 2007-06-23  Paul Eggert  <eggert@cs.ucla.edu>
80903         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Check some typos
80904         exposed by Sun Studio 11 cc on Solaris 8.
80906 2007-06-22  Bruno Haible  <bruno@clisp.org>
80908         * gnulib-tool (echo): Ensure the echo primitive does not interpret
80909         backslashes.
80910         * tests/test-echo.sh: New file.
80912 2007-06-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
80914         * gnulib-tool (func_add_or_update, func_create_testdir): Do not
80915         simplify `sed_replace_build_aux' scripts, they are portable but
80916         echoing them with `echo' is not.
80917         Report and analysis by Fernando Ferreira <fernando.prog@netcabo.pt>.
80919 2007-06-21  Karl Berry  <karl@gnu.org>
80921         * config/srclist.txt: guess we can't handle the licenses via
80922         srclist at the moment.
80924 2007-06-21  Paul Eggert  <eggert@cs.ucla.edu>
80926         * MODULES.html.sh: Add include_next.
80927         * modules/include_next: New file.
80929 2007-06-20  Paul Eggert  <eggert@cs.ucla.edu>
80931         * m4/include_next.m4 (gl_INCLUDE_NEXT): Define and AC_SUBST
80932         INCLUDE_NEXT.
80933         (gl_CHECK_NEXT_HEADERS): New macro.
80934         * m4/fcntl_h.m4 (gl_FCNTL_H): use gl_CHECK_NEXT_HEADERS instead of
80935         the obsolescent gl_ABSOLUTE_HEADER.
80936         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Likewise.
80937         * m4/float_h.m4 (gl_FLOAT_H): Likewise.
80938         * m4/iconv_h.m4 (gl_ICONV_H): Likewise.
80939         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
80940         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
80941         * m4/math_h.m4 (gl_MATH_H): Likewise.
80942         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Likewise.
80943         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
80944         * m4/signal_h.m4 (gl_SIGNAL_H): Likewise.
80945         * m4/stdint.m4 (gl_STDINT_H): Likewise.
80946         * m4/stdio_h.m4 (gl_STDIO_H): Likewise.
80947         * m4/stdlib_h.m4 (gl_STDLIB_H): Likewise.
80948         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Likewise.
80949         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
80950         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
80951         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Likewise.
80952         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Likewise.
80953         * m4/sysexits.m4 (gl_SYSEXITS): Likewise.
80954         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Likewise.
80955         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
80956         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
80957         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
80958         * m4/inttypes.m4 (gl_INTTYPES_H): Define
80959         _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H to avoid the problem of unclean
80960         builds, since ABSOLUTE_INTTYPES_H is no longer being defined.
80961         * m4/stdint.m4 (gl_STDINT_H): Likewise, for
80962         _GL_JUST_INCLUDE_SYSTEM_STDINT_H.
80963         * lib/fcntl_.h: Use @INCLUDE_NEXT@ @NEXT_foo_H@
80964         rather than @HAVE_INCLUDE_NEXT@ and @ABSOLUTE_foo_H@.
80965         * lib/float_.h: Likewise.
80966         * lib/inttypes_.h: Likewise.
80967         * lib/math_.h: Likewise.
80968         * lib/search_.h: Likewise.
80969         * lib/signal_.h: Likewise.
80970         * lib/stdint_.h: Likewise.
80971         * lib/stdio_.h: Likewise.
80972         * lib/stdlib_.h: Likewise.
80973         * lib/string_.h: Likewise.
80974         * lib/sys_stat_.h: Likewise.
80975         * lib/sys_time_.h: Likewise.
80976         * lib/time_.h: Likewise.
80977         * lib/unistd_.h: Likewise.
80978         * lib/wchar_.h: Likewise.
80979         * lib/wctype_.h: Likewise.
80980         * lib/dirent_.h: Likewise.
80981         * lib/iconv_.h: Likewise.
80982         * lib/locale_.h: Likewise.
80983         * lib/netinet_in_.h: Likewise.
80984         * lib/sys_select_.h: Likewise.
80985         * lib/sys_socket_.h: Likewise.
80986         * lib/sysexits_.h: Likewise.
80987         * modules/fcntl (Depends-on): Depend on include_next, not
80988         absolute_header.
80989         (Makefile): Substitute INCLUDE_NEXT and NEXT_foo_H, not
80990         HAVE_INCLUDE_NEXT and ABSOLUTE_foo_H.
80991         * modules/fchdir: Likewise.
80992         * modules/float: Likewise.
80993         * modules/iconv_open: Likewise.
80994         * modules/inttypes: Likewise.
80995         * modules/locale: Likewise.
80996         * modules/math: Likewise.
80997         * modules/netinet_in: Likewise.
80998         * modules/search: Likewise.
80999         * modules/signal: Likewise.
81000         * modules/stdint: Likewise.
81001         * modules/stdio: Likewise.
81002         * modules/stdlib: Likewise.
81003         * modules/string: Likewise.
81004         * modules/sys_select: Likewise.
81005         * modules/sys_socket: Likewise.
81006         * modules/sys_stat: Likewise.
81007         * modules/sys_time: Likewise.
81008         * modules/sysexits: Likewise.
81009         * modules/time: Likewise.
81010         * modules/unistd: Likewise.
81011         * modules/wchar: Likewise.
81012         * modules/wctype: Likewise.
81013         * modules/sys_stat: Change maintainer to "all".
81014         * modules/unistd: Likewise.
81016 2007-06-20  Karl Berry  <karl@gnu.org>
81018         * config/srclist.txt: track www changes in license files.
81020 2007-06-20  Sergey Poznyakoff  <gray@gnu.org.ua>
81022         * build-aux/bootstrap: Remove stray dot.
81023         Make sure build_aux settings are honored when linking
81024         gnulib_extra_files.
81026 2007-06-19  Eric Blake  <ebb9@byu.net>
81028         * modules/canonicalize-lgpl-tests (test_canonicalize_lgpl_LDADD):
81029         Allow compilation on cygwin.
81031 2007-06-19  Jim Meyering  <jim@meyering.net>
81033         xreadlink-with-size: Remove module.  No longer used.
81034         Ex-callers now use xreadlink or mreadlink-with-size.
81035         * modules/xreadlink-with-size: Remove module.
81036         * lib/xreadlink-with-size.c: Remove file.
81037         * lib/xreadlink.h (xreadlink_with_size): Remove prototype.
81038         (xreadlink): Remove inaccurate comment.  The one in xreadlink.c,
81039         just before the function definition *is* accurate.
81041         Eliminate one way canonicalize_filename_mode could exit.
81042         * lib/canonicalize.c (canonicalize_filename_mode):
81043         Use mreadlink_with_size, not xreadlink_with_size.
81045 2007-06-18  Paul Eggert  <eggert@cs.ucla.edu>
81047         Detect porting problems to FreeBSD/arm, which has time_t wider than
81048         long int.  Original problem reported for GNU diff by Xin Li in
81049         <http://lists.gnu.org/archive/html/bug-gnu-utils/2007-06/msg00091.html>.
81050         * modules/getdate (Depends-on): Add intprops, verify.
81051         * lib/getdate.y: Include intprops.h, verify.h.  Verify that time_t
81052         is an integer type no wider than long int.
81054 2007-06-18  Jim Meyering  <jim@meyering.net>
81056         New module: mreadlink-with-size.
81057         * MODULES.html.sh: Add mreadlink-with-size.
81058         * modules/mreadlink-with-size: New module
81059         * modules/canonicalize (Depends-on): Depend on mreadlink-with-size,
81060         not xreadlink-with-size.
81061         * lib/mreadlink-with-size.c, lib/mreadlink.h: New files.
81063 2007-06-16  Bruno Haible  <bruno@clisp.org>
81065         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Catch the MacOS X 10.4 bug.
81066         * doc/functions/frexpl.texi: Document the MacOS X 10.4 bug.
81067         Reported by Gary V. Vaughan <gary@gnu.org>.
81069 2007-06-15  Paul Eggert  <eggert@cs.ucla.edu>
81071         Revamp lchown so that it lives in unistd.h where it belongs.
81072         * lib/lchown.h: Remove.
81073         * lib/dirchownmod.c: Don't include lib/lchown.h.
81074         * lib/fchownat.c: Likewise.
81075         * lib/openat.c: Likewise.
81076         * lib/lchown.c (REPLACE_CHOWN): Define to 0 if the system chown
81077         does not follow symlinks.
81078         (EOPNOTSUPP): Define if not defined.
81079         * lib/unistd_.h (chown): Do not replace if REPLADE_CHOWN
81080         is defined to 0.
81081         (lchown): New decl.
81082         * m4/lchown.m4 (gl_FUNC_LCHOWN): Require gl_UNISTD_H_DEFAULTS.
81083         Do not check for lchown decl.
81084         Set REPLACE_LCHOWN.
81085         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set GNULIB_LCHOWN,
81086         REPLACE_LCHOWN.
81087         * modules/chown: Make it clear it follows symlinks.
81088         * modules/lchown: Make it clear it doesn't follow symlinks.
81089         (Files): Remove lib/lchown.h
81090         (Depends-on): Add unistd.
81091         (configure.ac): Add gl_UNISTD_MODULE_INDICATOR([lchown]).
81092         (Include): Include <unistd.h>, not "lchown.h".
81093         * modules/unistd (unistd.h): Substitude GNULIB_LCHOWN and
81094         REPLACE_LCHOWN.
81096 2007-06-15  Jim Meyering  <jim@meyering.net>
81098         Change license (GPL to LGPL) of fsusage and dependents.
81099         * modules/fsusage (License): Change to LGPL.
81100         * modules/full-read (License): Likewise.
81101         * modules/full-write (License): Likewise.
81102         * modules/safe-read (License): Likewise.
81103         * modules/safe-write (License): Likewise.
81105 2007-06-14  Ben Pfaff  <blp@gnu.org>
81107         Missing part of allocsa -> malloca transition.
81108         * modules/relocatable-prog-wrapper: gl_ALLOCSA should be
81109         gl_MALLOCA.
81111 2007-06-12  Bruno Haible  <bruno@clisp.org>
81113         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Guess no when cross-compiling
81114         to ia64, x86_64, i386.
81115         Reported by Eric Blake.
81117 2007-06-12  Bruno Haible  <bruno@clisp.org>
81119         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Guess no also when
81120         cross-compiling to x86_64.
81122 2007-06-12  Paul Eggert  <eggert@cs.ucla.edu>
81124         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Fix POSIX sed portability
81125         glitch reported by Ralf Wildenhues in
81126         <http://lists.gnu.org/archive/html/bug-gnulib/2007-06/msg00114.html>.
81128         * m4/regex.m4 (gl_REGEX): Catch a bug with [[:alnum:]_-] reported by
81129         Vin Shelton.
81131 2007-06-11  Bruno Haible  <bruno@clisp.org>
81133         * lib/printf-args.c (PRINTF_FETCHARGS) [ENABLE_UNISTDIO]: Fix NULL
81134         replacement string.
81135         Reported by Eric Blake.
81137 2007-06-10  Bruno Haible  <bruno@clisp.org>
81139         Prepare vasnprintf code for use with Unicode strings.
81140         * lib/printf-args.h (PRINTF_FETCHARGS): New macro.
81141         (arg_type) [ENABLE_UNISTDIO]: Define TYPE_U8_STRING, TYPE_U16_STRING,
81142         TYPE_U32_STRING.
81143         (argument) [ENABLE_UNISTDIO]: Add a_u8_string, a_u16_string,
81144         a_u32_string variants.
81145         (PRINTF_FETCHARGS): Renamed from printf_fetchargs.
81146         * lib/printf-args.c: Don't include config.h and the specification
81147         header if PRINTF_FETCHARGS is already defined.
81148         (PRINTF_FETCHARGS): Renamed from printf_fetchargs.
81149         (PRINTF_FETCHARGS) [ENABLE_UNISTDIO]: Add code for TYPE_U8_STRING,
81150         TYPE_U16_STRING, TYPE_U32_STRING.
81151         * lib/printf-parse.h [ENABLE_UNISTDIO] (u8_directive, u8_directives,
81152         u16_directive, u16_directives, u32_directive, u32_directives): New
81153         types.
81154         (ulc_printf_parse, u8_printf_parse, u16_printf_parse, u32_printf_parse):
81155         New declarations.
81156         * lib/printf-parse.c: Don't include config.h and the specification
81157         header if PRINTF_PARSE is already defined. Eliminate the set of
81158         parameters for WIDE_CHAR_VERSION; the user of this file must provide
81159         them now. Include c-ctype.h.
81160         (PRINTF_PARSE) [ENABLE_UNISTDIO]: Add code implementing the 'U'
81161         directive and CHAR_T_ONLY_ASCII.
81162         * lib/vasnprintf.c: Don't include config.h and the specification header
81163         if VASNPRINTF is already defined.
81164         (DCHAR_IS_TCHAR, DCHAR_CPY): New macros.
81165         (VASNPRINTF): Use PRINTF_FETCHARGS instead of printf_fetchargs. Use
81166         DCHAR_CPY. Handle the case that DCHAR_T and FCHAR_T are not the same
81167         type. Handle the case that TCHAR_T and FCHAR_T are not of the same
81168         size. Handle the case that DCHAR_T and TCHAR_T are not the same type,
81169         add a conversion from TCHAR_T[] to DCHAR_T[], and rework the padding
81170         code accordingly.
81171         (VASNPRINTF) [ENABLE_UNISTDIO]: Implement the 'U' directive. Enable
81172         pad_ourselves also in this case, with the 'c' and 's' directives, and
81173         with a different notion of "width".
81174         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): New macros.
81176 2007-06-10  Bruno Haible  <bruno@clisp.org>
81178         * modules/unistr/u32-mbsnlen: New file.
81179         * lib/unistr/u32-mbsnlen.c: New file.
81181         * modules/unistr/u16-mbsnlen: New file.
81182         * lib/unistr/u16-mbsnlen.c: New file.
81184         * modules/unistr/u8-mbsnlen: New file.
81185         * lib/unistr/u8-mbsnlen.c: New file.
81187         * lib/unistr.h (u8_mbsnlen, u16_mbsnlen, u32_mbsnlen): New
81188         declarations.
81190 2007-06-10  Bruno Haible  <bruno@clisp.org>
81192         * lib/string_.h (mbsnlen): New declaration.
81193         * lib/mbsnlen.c: New file.
81194         * m4/mbsnlen.m4: New file.
81195         * modules/mbsnlen: New file.
81196         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Set GNULIB_MBSNLEN.
81197         * modules/string (string.h): Substitute GNULIB_MBSNLEN.
81198         * MODULES.html.sh (Internationalization functions): Add mbsnlen.
81200 2007-06-10  Bruno Haible  <bruno@clisp.org>
81202         * lib/mbslen.c: Include <stdlib.h>, needed for MB_CUR_MAX.
81204 2007-06-10  Bruno Haible  <bruno@clisp.org>
81206         * lib/mbiter.h: Include <stddef.h>, needed for ptrdiff_t.
81207         * lib/mbuiter.h: Likewise.
81209 2007-06-10  Bruno Haible  <bruno@clisp.org>
81211         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Check for _snprintf
81212         declaration.
81214 2007-06-10  Karl Berry  <karl@gnu.org>
81216         * config/srclist.txt: remove gettext entries, Bruno prefers
81217         to update individually.
81219 2007-06-10  Bruno Haible  <bruno@clisp.org>
81221         * lib/vasnprintf.c (VASNPRINTF) [!USE_SNPRINTF]: Remove variable
81222         'maxlen'. Ensure only length + width bytes are allocated, not
81223         length + 1 + width.
81225 2007-06-09  Bruno Haible  <bruno@clisp.org>
81227         * lib/vasnprintf.c (FCHAR_T, DCHAR_T, TCHAR_T): New macros.
81228         (CHAR_T): Remove macro.
81229         (VASNPRINTF): Update.
81231 2007-06-09  Bruno Haible  <bruno@clisp.org>
81233         * MODULES.html.sh (Unicode string functions): Add the new modules.
81235         * modules/uniconv/u32-conv-to-enc: New file.
81236         * lib/uniconv/u32-conv-to-enc.c: New file.
81237         * modules/uniconv/u32-conv-to-enc-tests: New file.
81238         * tests/uniconv/test-u32-conv-to-enc.c: New file.
81240         * modules/uniconv/u16-conv-to-enc: New file.
81241         * lib/uniconv/u16-conv-to-enc.c: New file.
81242         * lib/uniconv/u-conv-to-enc.h: New file.
81243         * modules/uniconv/u16-conv-to-enc-tests: New file.
81244         * tests/uniconv/test-u16-conv-to-enc.c: New file.
81246         * modules/uniconv/u8-conv-to-enc: New file.
81247         * lib/uniconv/u8-conv-to-enc.c: New file.
81248         * modules/uniconv/u8-conv-to-enc-tests: New file.
81249         * tests/uniconv/test-u8-conv-to-enc.c: New file.
81251         * lib/uniconv.h (u8_conv_to_encoding, u16_conv_to_encoding,
81252         u32_conv_to_encoding): New declarations.
81254 2007-06-09  Bruno Haible  <bruno@clisp.org>
81256         * tests/uniconv/test-u32-strconv-to-enc.c (main): Remove unused code.
81258 2007-06-09  Bruno Haible  <bruno@clisp.org>
81260         Rename 'allocsa' -> 'malloca', 'freesa' -> 'freea'.
81261         * modules/malloca: Renamed from modules/allocsa, updated.
81262         * lib/malloca.h: Renamed from lib/allocsa.h, updated.
81263         * lib/malloca.c: Renamed from lib/allocsa.c, updated.
81264         * lib/malloca.valgrind: Renamed from lib/allocsa.valgrind, updated.
81265         * m4/malloca.m4: Renamed from m4/allocsa.m4, updated.
81266         * modules/malloca-tests: Renamed from modules/allocsa-tests, updated.
81267         * tests/test-malloca.c: Renamed from tests/test-allocsa.c, updated.
81268         * modules/xmalloca: Renamed from modules/xallocsa, updated.
81269         * lib/xmalloca.h: Renamed from lib/xallocsa.h, updated.
81270         * lib/xmalloca.c: Renamed from lib/xallocsa.c, updated.
81271         * modules/c-strcasestr (Depends-on): Update.
81272         * lib/c-strcasestr.c: Update.
81273         * modules/c-strstr (Depends-on): Update.
81274         * lib/c-strstr.c: Update.
81275         * modules/canonicalize-lgpl (Depends-on): Update.
81276         * lib/canonicalize-lgpl.c: Update.
81277         * modules/clean-temp (Depends-on): Update.
81278         * lib/clean-temp.c: Update.
81279         * modules/csharpcomp (Depends-on): Update.
81280         * lib/csharpcomp.c: Update.
81281         * modules/csharpexec (Depends-on): Update.
81282         * lib/csharpexec.c: Update.
81283         * modules/javacomp (Depends-on): Update.
81284         * lib/javacomp.c: Update.
81285         * modules/javaexec (Depends-on): Update.
81286         * lib/javaexec.c: Update.
81287         * modules/mbscasestr (Depends-on): Update.
81288         * lib/mbscasestr.c: Update.
81289         * modules/mbsstr (Depends-on): Update.
81290         * lib/mbsstr.c: Update.
81291         * modules/setenv (Depends-on): Update.
81292         * lib/setenv.c: Update.
81293         * modules/strcasestr (Depends-on): Update.
81294         * lib/strcasestr.c: Update.
81295         * modules/striconveha (Depends-on): Update.
81296         * lib/striconveha.c: Update.
81297         * modules/relocatable-prog-wrapper (Files): Update.
81298         * lib/relocwrapper.c: Update.
81299         * build-aux/install-reloc: Update.
81300         * MODULES.html.sh (Memory management functions <stdlib.h>): Update.
81302 2007-06-08  Bruno Haible  <bruno@clisp.org>
81304         Port to uClibc.
81305         * lib/fbufmode.c (fbufmode): Add special code for uClibc.
81306         * lib/fpurge.c (fpurge): Likewise.
81307         * lib/freading.c (freading): Likewise.
81308         * lib/fseeko.c (rpl_fseeko): Likewise.
81309         * lib/fseterr.c (fseterr): Likewise.
81310         * lib/fwriting.c (fwriting): Likewise.
81311         * tests/test-fflush.c (main): Avoid a failure on uClibc.
81313 2007-06-08  Bruno Haible  <bruno@clisp.org>
81315         * m4/intlmacosx.m4: New file, extracted from gettext.m4.
81316         * m4/gettext.m4 (gt_INTL_MACOSX): Remove macro, moved to intlmacosx.m4.
81317         * modules/gettext (Files): Add m4/intlmacosx.m4.
81319 2007-06-07  Bruno Haible  <bruno@clisp.org>
81321         * modules/localename-tests: New file.
81322         * tests/test-localename.c: New file.
81324         New module 'localename'.
81325         * lib/localename.h: New file.
81326         * lib/localename.c: New file, from GNU gettext.
81327         * m4/localename.m4: New file.
81328         * modules/localename: New file.
81330 2007-06-07  Bruno Haible  <bruno@clisp.org>
81332         Work around the lack of <wchar.h> on some builds of uClibc.
81333         * doc/headers/wchar.texi: Update.
81334         * lib/wchar_.h: Include <wchar.h> only if it exists.
81335         * m4/wchar.m4 (gl_WCHAR_H): Check for <wchar.h>. Set HAVE_WCHAR_H.
81336         * m4/stdint.m4 (gl_STDINT_H): Check for <wchar.h>.
81337         (gl_STDINT_TYPE_PROPERTIES): Don't try to include <wchar.h> if it
81338         doesn't exist.
81339         * modules/wchar (wchar.h): Substitute HAVE_WCHAR_H.
81340         * modules/mbfile (Depends-on): Add wchar.
81341         * modules/mbiter (Depends-on): Likewise.
81342         * modules/mbuiter (Depends-on): Likewise.
81343         Reported by Simon Josefsson.
81345 2007-06-06  Paul Eggert  <eggert@cs.ucla.edu>
81347         Work around problem reported by Steven M. Schweda in
81348         <http://lists.gnu.org/archive/html/bug-tar/2007-06/msg00002.html>:
81349         Tru64 5.1B with the Compaq compiler environment installed declares
81350         an 'isblank' function but does not define it in the C library.
81351         * lib/fnmatch.c (isblank): Check for HAVE_ISBLANK, too.
81352         * lib/regex_internal.h (isblank): Likewise.
81353         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for isblank existence.
81354         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
81356 2007-06-05  Bruno Haible  <bruno@clisp.org>
81358         Fix *printf so that it recognizes non-IEEE numbers on i386, x86_64,
81359         ia64.
81360         * modules/printf-safe: New file.
81361         * modules/fprintf-posix (Depends-on): Add printf-safe.
81362         * modules/printf-posix (Depends-on): Likewise.
81363         * modules/snprintf-posix (Depends-on): Likewise.
81364         * modules/sprintf-posix (Depends-on): Likewise.
81365         * modules/vasnprintf-posix (Depends-on): Likewise.
81366         * modules/vasprintf-posix (Depends-on): Likewise.
81367         * modules/vfprintf-posix (Depends-on): Likewise.
81368         * modules/vprintf-posix (Depends-on): Likewise.
81369         * modules/vsnprintf-posix (Depends-on): Likewise.
81370         * modules/vsprintf-posix (Depends-on): Likewise.
81371         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Require
81372         AC_C_BIGENDIAN. Define CHECK_PRINTF_SAFE if printf-safe is used. Test
81373         non-IEEE numbers on i386, x86_64, ia64. When cross-compiling, guess
81374         "no" on i386, x86_64, ia64.
81375         * tests/test-snprintf-posix.h (LDBL80_WORDS): New macro.
81376         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
81377         on i386, x86_64, ia64.
81378         * tests/test-sprintf-posix.h (LDBL80_WORDS): New macro.
81379         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
81380         on i386, x86_64, ia64.
81381         * tests/test-vasnprintf-posix.c: Include float.h.
81382         (LDBL80_WORDS): New macro.
81383         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
81384         on i386, x86_64, ia64.
81385         * tests/test-vasprintf-posix.c: Include float.h.
81386         (LDBL80_WORDS): New macro.
81387         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
81388         on i386, x86_64, ia64.
81389         * tests/test-snprintf-posix.c: Include float.h.
81390         * tests/test-sprintf-posix.c: Likewise.
81391         * tests/test-vsnprintf-posix.c: Likewise.
81392         * tests/test-vsprintf-posix.c: Likewise.
81394 2007-06-05  Bruno Haible  <bruno@clisp.org>
81396         Fix isnanl so that it recognizes non-IEEE numbers on i386, x86_64, ia64.
81397         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Require AC_C_BIGENDIAN. Test
81398         non-IEEE numbers on i386, x86_64, ia64.
81399         (gl_LONG_DOUBLE_EXPONENT_LOCATION): Require AC_C_BIGENDIAN.
81400         * lib/isnan.c (FUNC): Add special code for i386, x86_64, ia64.
81401         * tests/test-isnanl.h: Include float.h.
81402         (main): Check also non-IEEE numbers on i386, x86_64, ia64.
81404 2007-06-05  Bruno Haible  <bruno@clisp.org>
81406         * lib/vasnprintf.c (VASNPRINTF): Do the extra handling of NaN and Inf
81407         also the %a / %A. Handle the %a / %A code before this extra handling.
81409 2007-06-05  Bruno Haible  <bruno@clisp.org>
81411         * lib/vasnprintf.c [NEED_PRINTF_LONG_DOUBLE ||
81412         NEED_PRINTF_INFINITE_LONG_DOUBLE]: Include fpucw.h.
81414 2007-06-05  Bruno Haible  <bruno@clisp.org>
81416         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE): Fix
81417         typo in variable name.
81419 2007-06-05  Eric Blake  <ebb9@byu.net>
81421         * m4/lseek.m4 (gl_FUNC_LSEEK): Work when cross-compiling.
81422         Reported by Simon Josefsson.
81424 2007-06-04  Bruno Haible  <bruno@clisp.org>
81426         Avoid test failures on some PowerPC platforms.
81427         * tests/test-printf-frexpl.c (MIN_NORMAL_EXP, MIN_SUBNORMAL_EXP):
81428         Define differently for PowerPC.
81429         * tests/test-frexpl.c (MIN_NORMAL_EXP): Likewise.
81430         Reported by Gary V. Vaughan <gary@gnu.org>.
81432 2007-06-02  Bruno Haible  <bruno@clisp.org>
81434         Fix test-stdint failure on FreeBSD/ia64.
81435         * m4/stdint.m4 (gl_STDINT_H): Check the values of PTRDIFF_MIN,
81436         PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX, SIZE_MAX, WCHAR_MIN,
81437         WCHAR_MAX, WINT_MIN, WINT_MAX entirely, not only for plausibility.
81438         * doc/headers/stdint.texi: Update.
81440 2007-06-01  Bruno Haible  <bruno@clisp.org>
81442         * tests/test-binary-io.c (main): Pass a third argument to open().
81443         Reported by Gary V. Vaughan <gary@gnu.org>.
81445 2007-06-01  Bruno Haible  <bruno@clisp.org>
81447         * doc/functions/frexpl.texi: Update for mingw.
81449 2007-06-01  Bruno Haible  <bruno@clisp.org>
81451         * tests/test-lseek.c (main): Disable test of errno for invalid third
81452         argument.
81453         * doc/functions/lseek.texi: Update.
81454         Reported by Gary V. Vaughan <gary@gnu.org>.
81456 2007-05-28  Bruno Haible  <bruno@clisp.org>
81458         * m4/intl.m4 (AM_INTL_SUBDIR): Substitute variables WOE32, WINDRES.
81460 2007-05-31  Eric Blake  <ebb9@byu.net>
81462         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Guess no on mingw when
81463         cross compiling.
81465 2007-05-30  Eric Blake  <ebb9@byu.net>
81466         and Bruno Haible  <bruno@clisp.org>
81468         Work around mingw test failures exposed by m4-1.4.9b.
81469         * m4/stdint.m4 (gl_STDINT_H): Detect mingw bug.
81470         * tests/test-unistd.c: Disable uid_t and git_t tests for the
81471         moment.
81473 2007-05-30  Bruno Haible  <bruno@clisp.org>
81475         * tests/test-lseek.c: Explicitly close file descriptors 0 and 1 before
81476         assuming that they are closed. Needed on HP-UX 11.
81478 2007-05-29  Bruno Haible  <bruno@clisp.org>
81480         Fix a problem with #include_next.
81481         * lib/dirent_.h: Split the double-inclusion guard.
81482         * lib/fcntl_.h: Likewise.
81483         * lib/float_.h: Likewise.
81484         * lib/iconv_.h: Likewise.
81485         * lib/inttypes_.h: Likewise.
81486         * lib/locale_.h: Likewise.
81487         * lib/math_.h: Likewise.
81488         * lib/netinet_in_.h: Likewise.
81489         * lib/search_.h: Likewise.
81490         * lib/signal_.h: Likewise.
81491         * lib/stdint_.h: Likewise.
81492         * lib/stdio_.h: Likewise.
81493         * lib/stdlib_.h: Likewise.
81494         * lib/string_.h: Likewise.
81495         * lib/sys_select_.h: Likewise.
81496         * lib/sys_socket_.h: Likewise.
81497         * lib/sys_stat_.h: Likewise.
81498         * lib/sys_time_.h: Likewise.
81499         * lib/sysexits_.h: Likewise.
81500         * lib/time_.h: Likewise.
81501         * lib/unistd_.h: Likewise.
81502         * lib/wchar_.h: Likewise.
81503         * lib/wctype_.h: Likewise.
81505 2007-05-29  Bruno Haible  <bruno@clisp.org>
81507         * tests/test-unistd.c: Disable the tests for useconds_t and intptr_t
81508         for the moment.
81510 2007-05-29  Bruno Haible  <bruno@clisp.org>
81512         * m4/isnan.m4 (gl_DOUBLE_EXPONENT_LOCATION): Silence the AC_C_BIGENDIAN
81513         invocation.
81514         Reported by Eric Blake.
81516 2007-05-29  Bruno Haible  <bruno@clisp.org>
81518         * m4/isnanf.m4 (gl_FLOAT_EXPONENT_LOCATION): Fix typo in cross-
81519         compiling case.
81521 2007-05-29  Eric Blake  <ebb9@byu.net>
81522             Bruno Haible  <bruno@clisp.org>
81524         * m4/isnanf.m4 (gl_FUNC_ISNANF_NO_LIBM): Avoid syntax error on
81525         cross compiles.
81527 2007-05-28  Eric Blake  <ebb9@byu.net>
81529         * modules/closein-tests (test_closein_LDADD): Support test on
81530         cygwin with libtool.
81532 2007-05-28  Bruno Haible  <bruno@clisp.org>
81534         * tests/uniconv/test-u16-conv-from-enc.c: Remove #ifdef HAVE_CONFIG_H.
81535         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
81536         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
81537         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
81538         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
81539         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
81540         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
81541         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
81542         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
81544 2007-05-28  Eric Blake  <ebb9@byu.net>
81546         Unconditionally include <config.h> in unit tests.
81547         * tests/test-alloca-opt.c: Remove #ifdef HAVE_CONFIG_H.
81548         * tests/test-allocsa.c, tests/test-arcfour.c,
81549         tests/test-arctwo.c, tests/test-argmatch.c, tests/test-argp.c,
81550         tests/test-array_list.c, tests/test-array_oset.c,
81551         tests/test-atexit.c, test-avltree_list.c, test-avltree_oset.c,
81552         test-avltreehash_list.c, test-base64.c, test-binary-io.c,
81553         test-c-ctype.c, test-c-strcasecmp.c, test-c-strcasestr.c,
81554         test-c-strncasecmp.c, test-c-strstr.c, test-canonicalize-lgpl.c,
81555         test-carray_list.c, test-crc.c, test-des.c, test-dirname.c,
81556         test-fflush.c, test-fprintf-posix.c, test-gc-arcfour.c,
81557         test-gc-arctwo.c, test-gc-des.c, test-gc-hmac-md5.c,
81558         test-gc-hmac-sha1.c, test-gc-md2.c, test-gc-md4.c, test-gc-md5.c,
81559         test-gc-pbkdf2-sha1.c, test-gc-rijndael.c, test-gc-sha1.c,
81560         test-gc.c, test-getpass.c, test-hmac-md5.c, test-hmac-sha1.c,
81561         test-iconv.c, test-linked_list.c, test-linkedhash_list.c,
81562         test-lock.c, test-mbscasecmp.c, test-mbscasestr1.c,
81563         test-mbscasestr2.c, test-mbscasestr3.c, test-mbscasestr4.c,
81564         test-mbschr.c, test-mbscspn.c, test-mbsncasecmp.c, test-mbspbrk.c,
81565         test-mbspcasecmp.c, test-mbsrchr.c, test-mbsspn.c, test-mbsstr1.c,
81566         test-mbsstr2.c, test-mbsstr3.c, test-md2.c, test-md4.c,
81567         test-md5.c, test-memmem.c, test-printf-posix.c,
81568         test-rbtree_list.c, test-rbtree_oset.c, test-rbtreehash_list.c,
81569         test-read-file.c, test-rijndael.c, test-snprintf-posix.c,
81570         test-snprintf.c, test-sprintf-posix.c, test-stdint.c,
81571         test-strcasestr.c, test-striconv.c, test-striconveh.c,
81572         test-striconveha.c, test-tls.c, test-vasnprintf-posix.c,
81573         test-vasnprintf-posix2.c, test-vasnprintf.c,
81574         test-vasprintf-posix.c, test-vasprintf.c, test-verify.c,
81575         test-vfprintf-posix.c, test-vprintf-posix.c,
81576         test-vsnprintf-posix.c, test-vsnprintf.c, test-vsprintf-posix.c,
81577         test-xvasprintf.c: Likewise.
81579 2007-05-28  Bruno Haible  <bruno@clisp.org>
81581         * gnulib-tool (func_import): Remember the --with-tests command-line
81582         option through the macro gl_WITH_TESTS in the gnulib-cache.m4.
81583         Reported by Eric Blake.
81585 2007-05-28  Bruno Haible  <bruno@clisp.org>
81587         * modules/ftell-tests: New file.
81588         * tests/test-ftell.c: New file, based on tests/test-ftello.c.
81589         * tests/test-ftell.sh: New file, based on tests/test-ftello.sh.
81591         * lib/ftell.c: New file.
81592         * modules/ftell: New file.
81593         * m4/ftell.m4: New file.
81594         * doc/functions/ftell.texi: Update.
81595         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FTELL,
81596         REPLACE_FTELL.
81597         * lib/stdio_.h (rpl_ftell): New declaration.
81598         * modules/stdio (Makefile.am): Substitute also GNULIB_FTELL,
81599         REPLACE_FTELL.
81601 2007-05-28  Eric Blake  <ebb9@byu.net>
81603         * lib/allocsa.h (safe_alloca): Avoid compiler warning.
81605 2007-05-28  Bruno Haible  <bruno@clisp.org>
81607         * modules/fseek-tests: New file.
81608         * tests/test-fseek.c: New file, based on tests/test-fseeko.c.
81609         * tests/test-fseek.sh: New file, based on tests/test-fseeko.sh.
81611         * lib/fseek.c: New file.
81612         * modules/fseek: New file.
81613         * m4/fseek.m4: New file.
81614         * doc/functions/fseek.texi: Update.
81615         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FSEEK,
81616         REPLACE_FSEEK.
81617         * lib/stdio_.h (rpl_fseek): New declaration.
81618         * modules/stdio (Makefile.am): Substitute also GNULIB_FSEEK,
81619         REPLACE_FSEEK.
81621 2007-05-28  Bruno Haible  <bruno@clisp.org>
81623         * lib/stdio_.h (fflush): More comments.
81625 2007-05-28  Bruno Haible  <bruno@clisp.org>
81627         * m4/lseek.m4 (gl_FUNC_LSEEK): When not cross-compiling, perform a real
81628         runtime test.
81630 2007-05-28  Eric Blake  <ebb9@byu.net>
81632         Improve lseek module.
81633         * lib/lseek.c (rpl_lseek): Detect EBADF on mingw.
81634         * lib/unistd_.h (lseek): Scale back link warning message.
81635         * tests/test-lseek.c: Beef up test.
81636         * tests/test-lseek.sh: Exercise more facets of lseek.
81637         Reported by Bruno Haible.
81639 2007-05-28  Bruno Haible  <bruno@clisp.org>
81641         * tests/test-unistd.c: Test all the types that <unistd.h> is expected
81642         to define.
81644 2007-05-27  Bruno Haible  <bruno@clisp.org>
81646         * m4/iconv.m4 (AM_ICONV_LINK): Fix 2007-03-31 patch.
81648 2007-05-27  Bruno Haible  <bruno@clisp.org>
81650         * modules/openmp: New file.
81651         * m4/openmp.m4: New file, taken from autoconf's CVS with changes by
81652         Noah Misch.
81654 2007-05-26  Bruno Haible  <bruno@clisp.org>
81656         * modules/chdir-long (Depends-on): Add fchdir.
81657         * modules/chdir-safer (Depends-on): Likewise.
81658         * modules/fts (Depends-on): Likewise.
81659         * modules/fts-lgpl (Depends-on): Likewise.
81660         * modules/openat (Depends-on): Likewise.
81661         * modules/savewd (Depends-on): Likewise.
81663 2007-05-24  Eric Blake  <ebb9@byu.net>
81665         Fix lseek on mingw.
81666         * modules/lseek: New module.
81667         * m4/lseek.m4: New file.
81668         * lib/lseek.c: New file.
81669         * modules/lseek-tests: New file.
81670         * tests/test-lseek.c: New file.
81671         * tests/test-lseek.sh: New file.
81672         * MODULES.html.sh: Document lseek module.
81673         * modules/fflush (Depends-on): Add lseek, fseeko.
81674         * modules/fseeko (Depends-on): Likewise.
81675         * modules/ftello (Depends-on): Likewise.
81676         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Replace fseek[o] if lseek is
81677         broken.
81678         * m4/ftello.m4 (gl_FUNC_FTELLO): Replace ftell[o] if lseek is
81679         broken.
81680         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Trigger fseeko module.
81681         * lib/fseeko.c (rpl_fseeko): Quit early on non-seekable files.
81682         * lib/ftello.c (rpl_ftello): Likewise.
81683         * tests/test-fseeko.c (main): Test this.
81684         * tests/test-fseeko.sh: Likewise.
81685         * tests/test-ftello.c (main): Likewise.
81686         * tests/test-ftello.sh: Likewise.
81687         * lib/stdio_.h (fseek, ftell): Simplify, since missing fseeko now
81688         implies replacing fseek.
81689         * modules/stdio (Makefile.am): No longer need HAVE_FSEEKO,
81690         HAVE_FTELLO.
81691         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add lseek info.
81692         * modules/unistd (Makefile.am): Likewise.
81693         * lib/unistd_.h (lseek): Declare a replacement.
81694         * doc/functions/lseek.texi (lseek): Document this fix.
81695         * doc/functions/fseek.texi (fseek): Likewise.
81696         * doc/functions/ftell.texi (ftell): Likewise.
81698 2007-05-24  Bruno Haible  <bruno@clisp.org>
81700         * tests/test-vasnprintf-posix.c (test_function): Allow up to 50 bytes
81701         in the printed representation of a NaN.
81702         * tests/test-vasprintf-posix.c (test_function): Likewise.
81703         * tests/test-snprintf-posix.h (test_function): Likewise.
81704         * tests/test-sprintf-posix.h (test_function): Likewise.
81705         Reported by Eric Blake.
81707 2007-05-23  Eric Blake  <ebb9@byu.net>
81709         Fix fseeko/ftello on cygwin 1.5.24.
81710         * doc/functions/fseeko.texi (fseeko): Document the fix.
81711         * doc/functions/ftello.texi (ftello): Document the fix.
81712         * doc/functions/stdin.texi (stdin): Document the cygwin bug.
81713         * doc/functions/stdout.text (stdout): New file.
81714         * doc/functions/stderr.text (stderr): New file.
81715         * doc/gnulib.texi (Function Substitutes): Use new files.
81716         * tests/test-fseeko.c (main): Check for broken fseeko on cygwin
81717         prior to 1.7.0.
81718         * tests/test-ftello.c (main): Likewise for ftello.
81719         * tests/test-fseeko.sh: New file.
81720         * tests/test-ftello.sh: New file.
81721         * modules/fseeko-tests (Makefile.am): Ensure test-fseeko is run
81722         with seekable stdin.
81723         * modules/ftello-tests (Makefile.am): Likewise for test-ftello.
81724         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Detect the cygwin bug.
81725         (gl_REPLACE_FSEEKO): New macro.
81726         * m4/ftello.m4 (gl_FUNC_FTELLO, gl_REPLACE_FTELLO): Likewise.
81727         * modules/fseeko (Files): Distribute fseeko.c.
81728         * modules/ftello (Files): Distribute ftello.c.
81729         * lib/fseeko.c (rpl_fseeko) [__CYGWIN__]: Convert stdin to 64-bit
81730         mode.
81731         * lib/ftello.c (rpl_ftello): New file.
81732         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Allow replacement of
81733         fseeko, ftello.
81734         (gl_STDIN_LARGE_OFFSET): New macro.
81735         * modules/stdio (Makefile.am): Perform the replacement.
81736         * lib/stdio_.h (rpl_fseeko, rpl_ftello): Define when needed.
81738 2007-05-23  Bruno Haible  <bruno@clisp.org>
81740         * lib/stdio_.h (fseeko, ftello): Provide a link warning only if
81741         GNULIB_POSIXCHECK is defined.
81743 2007-05-21  Bruno Haible  <bruno@clisp.org>
81745         * m4/printf.m4 (gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE):
81746         Check also the output for NaN arguments. When cross-compiling, guess
81747         no on IRIX.
81748         * lib/vasnprintf.c: Update comments.
81749         * tests/test-vasnprintf-posix.c (strisnan): New function.
81750         (test_function): Use it.
81751         * tests/test-vasprintf-posix.c (strisnan): New function.
81752         (test_function): Use it.
81753         * tests/test-snprintf-posix.h (strisnan): New function.
81754         (test_function): Use it.
81755         * tests/test-sprintf-posix.h (strisnan): New function.
81756         (test_function): Use it.
81757         Reported by Eric Blake.
81759 2007-05-20  Bruno Haible  <bruno@clisp.org>
81761         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Add test for large finite
81762         numbers that fails on BeOS.
81763         * doc/functions/frexpl.texi: Update.
81765 2007-05-20  Jim Meyering  <jim@meyering.net>
81767         * NEWS: Mention the incompatible change (s/futimens/gl_futimens/)
81768         forced upon us by glibc-2.6.
81770 2007-05-20  Bruno Haible  <bruno@clisp.org>
81772         Fix *printf result for NaN, Inf on AIX, Solaris, OSF/1.
81773         * m4/printf.m4 (gl_PRINTF_INFINITE): Update cross-compiling guesses.
81774         (gl_PRINTF_INFINITE_LONG_DOUBLE): New macro.
81775         * lib/vasnprintf.c: Use NEED_PRINTF_INFINITE_DOUBLE instead of
81776         NEED_PRINTF_INFINITE.
81777         (is_infinitel): New function.
81778         (VASNPRINTF): Handle NEED_PRINTF_INFINITE_LONG_DOUBLE case.
81779         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE_DOUBLE): Renamed from
81780         gl_PREREQ_VASNPRINTF_INFINITE.
81781         (gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE): New macro.
81782         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
81783         gl_PRINTF_INFINITE_LONG_DOUBLE and test its result. Invoke
81784         gl_PREREQ_VASNPRINTF_INFINITE_DOUBLE and
81785         gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE instead of
81786         gl_PREREQ_VASNPRINTF_INFINITE.
81787         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
81788         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
81789         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
81790         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
81791         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
81792         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
81793         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
81794         * doc/functions/fprintf.texi: Update.
81795         * doc/functions/printf.texi: Update.
81796         * doc/functions/snprintf.texi: Update.
81797         * doc/functions/sprintf.texi: Update.
81798         * doc/functions/vfprintf.texi: Update.
81799         * doc/functions/vprintf.texi: Update.
81800         * doc/functions/vsnprintf.texi: Update.
81801         * doc/functions/vsprintf.texi: Update.
81803 2007-05-20  Bruno Haible  <bruno@clisp.org>
81805         * m4/frexpl.m4 (gl_FUNC_FREXPL_NO_LIBM): Set REPLACE_FREXPL if frexpl
81806         was not found in libc.
81807         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
81809 2007-05-20  Bruno Haible  <bruno@clisp.org>
81811         * tests/test-vasnprintf-posix.c (test_function): Allow NaN to be
81812         printed as "-nan" instead of "nan".
81813         * tests/test-vasprintf-posix.c (test_function): Likewise.
81814         * tests/test-snprintf-posix.h (test_function): Likewise.
81815         * tests/test-sprintf-posix.h (test_function): Likewise.
81816         Needed for HP-UX 11.
81818 2007-05-20  Jim Meyering  <jim@meyering.net>
81820         Fix buggy test for the fchownat-deref bug.
81821         * m4/openat.m4 (gl_FUNC_FCHOWNAT_DEREF_BUG): Create the dangling
81822         symlink required for the run-test.  Without it, this test would
81823         always declare that fchownat doesn't work, and client code would
81824         unnecessarily use the replacement function with fixed libc.
81825         (gl_FUNC_FCHOWNAT): Eliminate a variable that wasn't initialized.
81826         Reported by Greg Schafer.
81828 2007-05-19  Bruno Haible  <bruno@clisp.org>
81830         * m4/isnanf.m4 (gl_ISNANF_WORKS): New macro.
81831         (gl_FUNC_ISNANF_NO_LIBM): Invoke it.
81832         * lib/isnan.c (FUNC): Use run-time expressions for SGI compiler.
81833         Needed for IRIX 6.5 and Solaris 2.5.1.
81835 2007-05-19  Bruno Haible  <bruno@clisp.org>
81837         * tests/test-vasnprintf-posix.c (have_minus_zero): New function.
81838         (test_function): Skip tests involving -0.0 on platforms where
81839         -0.0 = 0.0.
81840         * tests/test-vasprintf-posix.c (have_minus_zero): New function.
81841         (test_function): Skip tests involving -0.0 on platforms where
81842         -0.0 = 0.0.
81843         * tests/test-snprintf-posix.h (have_minus_zero): New function.
81844         (test_function): Skip tests involving -0.0 on platforms where
81845         -0.0 = 0.0.
81846         * tests/test-sprintf-posix.h (have_minus_zero): New function.
81847         (test_function): Skip tests involving -0.0 on platforms where
81848         -0.0 = 0.0.
81849         * tests/test-fprintf-posix.h (test_function): Remove all -0.0 related
81850         tests.
81851         * tests/test-printf-posix.h (test_function): Likewise.
81852         * tests/test-printf-posix.output: Remove all -0.0 related results.
81853         Needed for IRIX 6.5.
81855 2007-05-19  Bruno Haible  <bruno@clisp.org>
81857         * tests/test-vasnprintf-posix.c (test_function): Allow NaN to be
81858         printed as "nan0x7fffffff" instead of "nan".
81859         * tests/test-vasprintf-posix.c (test_function): Likewise.
81860         * tests/test-snprintf-posix.h (test_function): Likewise.
81861         * tests/test-sprintf-posix.h (test_function): Likewise.
81862         * tests/test-fprintf-posix.h (NaN): Remove macro.
81863         (test_function): Remove all NaN related tests.
81864         * tests/test-printf-posix.h (NaN): Remove macro.
81865         (test_function): Remove all NaN related tests.
81866         * tests/test-printf-posix.output: Remove all NaN related results.
81867         Needed for IRIX 6.5.
81869 2007-05-19  Bruno Haible  <bruno@clisp.org>
81871         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Fix C89 syntax error in test code.
81872         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Likewise.
81874 2007-05-19  Bruno Haible  <bruno@clisp.org>
81876         * lib/float_.h: New file.
81877         * m4/float_h.m4: New file.
81878         * modules/float: New file.
81879         * modules/isnanl (Dependencies): Add float.
81880         * modules/isnanl-nolibm (Dependencies): Likewise.
81881         * modules/mathl (Dependencies): Likewise.
81882         * modules/printf-frexpl (Dependencies): Likewise.
81883         * modules/signbit (Dependencies): Likewise.
81884         * modules/vasnprintf (Dependencies): Likewise.
81885         * doc/headers/float.texi: Update.
81887 2007-05-19  Jim Meyering  <jim@meyering.net>
81889         * lib/utimens.c (gl_futimens): Rename from futimens,
81890         now that glibc-2.6 declares futimens.
81891         * lib/utimens.h: Likewise.
81893 2007-05-19  Bruno Haible  <bruno@clisp.org>
81895         Avoid test failures on mingw.
81896         * tests/test-fprintf-posix.sh: Convert CR/LF to LF in output.
81897         * tests/test-printf-posix.sh: Likewise.
81898         * tests/test-vfprintf-posix.sh: Likewise.
81899         * tests/test-vprintf-posix.sh: Likewise.
81901 2007-05-19  Bruno Haible  <bruno@clisp.org>
81903         Fix *printf result for NaN, Inf, -0.0 on mingw.
81904         * m4/printf.m4 (gl_PRINTF_INFINITE): New macro.
81905         * lib/vasnprintf.c: Include math.h and isnan.h.
81906         (is_infinite_or_zero): New function.
81907         (VASNPRINTF): Fix also the handling of infinite or zero 'double'
81908         values in the %f, %F, %e, %E, %g, %G directives.
81909         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE): New macro.
81910         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
81911         gl_PRINTF_INFINITE and test its result. Invoke
81912         gl_PREREQ_VASNPRINTF_INFINITE.
81913         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
81914         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
81915         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
81916         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
81917         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
81918         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
81919         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
81920         * doc/functions/fprintf.texi: Update.
81921         * doc/functions/printf.texi: Update.
81922         * doc/functions/snprintf.texi: Update.
81923         * doc/functions/sprintf.texi: Update.
81924         * doc/functions/vfprintf.texi: Update.
81925         * doc/functions/vprintf.texi: Update.
81926         * doc/functions/vsnprintf.texi: Update.
81927         * doc/functions/vsprintf.texi: Update.
81929 2007-05-19  Bruno Haible  <bruno@clisp.org>
81931         * lib/vasnprintf.c (convert_to_decimal): Add an extra_zeroes argument.
81932         (scale10_round_decimal_long_double): Inline scale10_round_long_double.
81933         Instead of multiplying with 10^k, set extra_zeroes to k.
81934         (scale10_round_long_double): Remove function.
81936 2007-05-18  Bruno Haible  <bruno@clisp.org>
81938         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_ZERO]: Fix logic bug
81939         introduced on 2007-05-06.
81941 2007-05-18  Bruno Haible  <bruno@clisp.org>
81943         * tests/test-vasnprintf-posix.c (test_function): Also test the %e and
81944         %g directives.
81945         * tests/test-vasprintf-posix.c (test_function): Likewise.
81946         * tests/test-snprintf-posix.h (test_function): Likewise.
81947         * tests/test-sprintf-posix.h (test_function): Likewise.
81949 2007-05-18  Bruno Haible  <bruno@clisp.org>
81951         * tests/test-vasnprintf-posix.c (SIZEOF): New macro.
81952         (strmatch): New function.
81953         (test_function): Test the %f directive on numbers of various exponents.
81954         * tests/test-vasprintf-posix.c (SIZEOF): New macro.
81955         (strmatch): New function.
81956         (test_function): Test the %f directive on numbers of various exponents.
81957         * tests/test-snprintf-posix.h (strmatch): New function.
81958         (test_function): Test the %f directive on numbers of various exponents.
81959         * tests/test-sprintf-posix.h (strmatch): New function.
81960         (test_function): Test the %f directive on numbers of various exponents.
81961         * tests/test-snprintf-posix.c (SIZEOF): New macro.
81962         * tests/test-sprintf-posix.c (SIZEOF): New macro.
81963         * tests/test-vsnprintf-posix.c (SIZEOF): New macro.
81964         * tests/test-vsprintf-posix.c (SIZEOF): New macro.
81966 2007-05-18  Bruno Haible  <bruno@clisp.org>
81968         Add support for 'long double' number output.
81969         * m4/printf.m4 (gl_PRINTF_LONG_DOUBLE): New macro.
81970         * lib/vasnprintf.c: Include math.h and float+.h.
81971         (mp_limb_t): New type.
81972         (GMP_LIMB_BITS): New macro.
81973         (mp_twolimb_t): New type.
81974         (GMP_TWOLIMB_BITS): New macro.
81975         (mpn_t): New type.
81976         (multiply, divide, convert_to_decimal, decode_long_double,
81977         scale10_round_long_double, scale10_round_decimal_long_double,
81978         floorlog10l): New functions.
81979         (VASNPRINTF) [NEED_PRINTF_LONG_DOUBLE]: Implement 'long double' support
81980         for the %f, %F, %e, %E, %g, %G directives.
81981         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_LONG_DOUBLE): New macro.
81982         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
81983         gl_PRINTF_LONG_DOUBLE and test its result. Invoke
81984         gl_PREREQ_VASNPRINTF_LONG_DOUBLE.
81985         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
81986         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
81987         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
81988         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
81989         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
81990         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
81991         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
81992         * modules/fprintf-posix (Depends-on): Add frexpl-nolibm.
81993         * modules/snprintf-posix (Depends-on): Likewise.
81994         * modules/sprintf-posix (Depends-on): Likewise.
81995         * modules/vasnprintf-posix (Depends-on): Likewise.
81996         * modules/vasprintf-posix (Depends-on): Likewise.
81997         * modules/vfprintf-posix (Depends-on): Likewise.
81998         * modules/vsnprintf-posix (Depends-on): Likewise.
81999         * modules/vsprintf-posix (Depends-on): Likewise.
82000         * modules/vasnprintf (Files): Add lib/float+.h.
82001         * doc/functions/fprintf.texi: Update.
82002         * doc/functions/printf.texi: Update.
82003         * doc/functions/snprintf.texi: Update.
82004         * doc/functions/sprintf.texi: Update.
82005         * doc/functions/vfprintf.texi: Update.
82006         * doc/functions/vprintf.texi: Update.
82007         * doc/functions/vsnprintf.texi: Update.
82008         * doc/functions/vsprintf.texi: Update.
82010 2007-05-18  Bruno Haible  <bruno@clisp.org>
82012         * lib/vasnprintf.c (USE_SNPRINTF): Define to 0 on BeOS.
82014 2007-05-18  Bruno Haible  <bruno@clisp.org>
82016         * lib/vasnprintf.c (VASNPRINTF) [WIN32]: Use %I64d instead of %lld
82017         for printing 64-bit integers. Needed for mingw.
82019 2007-05-18  Bruno Haible  <bruno@clisp.org>
82021         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Invoke
82022         gl_FUNC_FREXPL_WORKS.
82023         * modules/printf-frexpl (Files): Add m4/frexpl.m4.
82025 2007-05-18  Bruno Haible  <bruno@clisp.org>
82027         * modules/frexpl-nolibm-tests: New file.
82029         * modules/frexpl-nolibm: New file.
82030         * m4/frexpl.m4 (gl_FUNC_FREXPL_NO_LIBM): New macro.
82032 2007-05-17  Paul Eggert  <eggert@cs.ucla.edu>
82034         * lib/dirent_.h: Prefer #include_next <foo.h> to #include
82035         @ABSOLUTE_FOO_H@ if @HAVE_INCLUDE_NEXT@.  This works better with
82036         GCC 4.2, which otherwise issues a lot of warnings.
82037         * lib/iconv_.h, lib/locale_.h, lib/netinet_in_.h, lib/sys_select_.h:
82038         * lib/sys_socket_.h, lib/sys_stat_.h, lib/sysexits_.h, lib/unistd_.h:
82039         Likewise.
82040         * modules/fchdir (dirent.h): Substitute @HAVE_INCLUDE_NEXT@.
82041         * modules/iconv_open (iconv.h): Likewise.
82042         * modules/locale (locale.h): Likewise.
82043         * modules/netinet_in (netinet/in.h): Likewise.
82044         * modules/sys_select (sys_select.h): Likewise.
82045         * modules/sys_socket (sys/socket.h): Likewise.
82046         * modules/sys_stat (sys/stat.h): Likewise.
82047         * modules/sysexits (sysexits.h): Likewise.
82048         * modules/unistd (unistd.h): Likewise.
82050 2007-05-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
82052         * modules/closein-tests (Makefile.am): Distribute
82053         `test-closein.sh'.
82055 2007-05-17  Bruno Haible  <bruno@clisp.org>
82057         * tests/test-printf-posix.output: Renamed from
82058         tests/test-fprintf-posix.out.
82059         * modules/fprintf-posix-tests: Update.
82060         * modules/printf-posix-tests: Update.
82061         * modules/vfprintf-posix-tests: Update.
82062         * modules/vprintf-posix-tests: Update.
82063         * tests/test-fprintf-posix.sh: Update.
82064         * tests/test-printf-posix.sh: Update.
82065         * tests/test-vfprintf-posix.sh: Update.
82066         * tests/test-vprintf-posix.sh: Update.
82067         Reported by Ralf Wildenhues.
82069 2007-05-16  Paul Eggert  <eggert@cs.ucla.edu>
82071         * lib/fcntl_.h: Prefer #include_next <foo.h> to #include
82072         @ABSOLUTE_FOO_H@ if @HAVE_INCLUDE_NEXT@.  This works better with
82073         GCC 4.2, which otherwise issues a lot of warnings.
82074         * lib/inttypes_.h, lib/math_.h, lib/search_.h, lib/signal_.h:
82075         * lib/stdint_.h, lib/stdio_.h, lib/stdlib_.h, lib/string_.h:
82076         * lib/sys_time_.h, lib/time_.h, lib/wchar_.h, lib/wctype_.h: Likewise.
82077         * lib/stdlib_.h: Don't bother with #pragma GCC system_header, as
82078         it should no longer be needed.
82079         * lib/string_.h: Likewise.
82080         * modules/absolute-header (HAVE_INCLUDE_NEXT): New 'make' define.
82081         * modules/fcntl (fcntl.h): Substitute @HAVE_INCLUDE_NEXT@.
82082         * modules/inttypes (inttypes.h): Likewise.
82083         * modules/math (math.h): Likewise.
82084         * modules/search (search.h): Likewise.
82085         * modules/signal (signal.h): Likewise.
82086         * modules/stdint (stdint.h): Likewise.
82087         * modules/stdio (stdio.h): Likewise.
82088         * modules/stdlib (stdlib.h): Likewise.
82089         * modules/string (string.h): Likewise.
82090         * modules/sys_time (sys/time.h): Likewise.
82091         * modules/time (time.h): Likewise.
82092         * modules/wchar (wchar.h): Likewise.
82093         * modules/wctype (wtype.h): Likewise.
82095 2007-05-16  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
82097         * doc/gnulib-tool.texi (CVS Issues): Fix typo.
82099 2007-05-13  Bruno Haible  <bruno@clisp.org>
82101         * stpcpy.m4 (gl_FUNC_STPCPY): Require AC_C_RESTRICT.
82102         * stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
82103         * strsep.m4 (gl_FUNC_STRSEP): Likewise.
82104         * strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
82105         (gl_PREREQ_STRTOK_R): Don't require it here.
82107 2007-05-13  Bruno Haible  <bruno@clisp.org>
82109         * lib/stdlib_.h (mkdtemp, mkstemp): Comment out argument name. Needed
82110         when used in C++ mode.
82112 2007-05-12  Bruno Haible  <bruno@clisp.org>
82114         * lib/linebuffer.h: Tweak doc.
82115         * lib/linebuffer.c: Likewise.
82117 2007-05-12  James Youngman  <jay@gnu.org>
82119         * lib/linebuffer.c (readlinebuffer_delim): New function,
82120         like readlinebuffer, but use a caller-specified delimiter.
82121         (readlinebuffer): Just call readlinebuffer_delim with '\n'
82122         as the delimiter.
82123         * lib/linebuffer.h (readlinebuffer_delim): Declare it.
82125 2007-05-12  Sergey Poznyakoff  <gray@gnu.org.ua>
82127         * m4/openat.m4 (gl_FUNC_OPENAT): Do not require openat-die.
82128         * modules/openat (Files): Remove openat-die.c.
82129         (Depends-on): Add openat-die.
82130         * modules/openat-die: New module.
82132 2007-05-06  Bruno Haible  <bruno@clisp.org>
82134         * m4/printf.m4 (gl_PRINTF_FLAG_GROUPING, gl_VSNPRINTF_ZEROSIZE_C99):
82135         Update with info about Cygwin.
82136         * doc/functions/fprintf.texi: Update.
82137         * doc/functions/printf.texi: Update.
82138         * doc/functions/snprintf.texi: Update.
82139         * doc/functions/sprintf.texi: Update.
82140         * doc/functions/vfprintf.texi: Update.
82141         * doc/functions/vprintf.texi: Update.
82142         * doc/functions/vsnprintf.texi: Update.
82143         * doc/functions/vsprintf.texi: Update.
82144         Reported by Eric Blake.
82146 2007-05-06  Bruno Haible  <bruno@clisp.org>
82148         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_ZERO]: Perform the
82149         padding ourselves for the floating-point directives.
82150         * m4/printf.m4 (gl_PRINTF_FLAG_ZERO): New macro.
82151         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_ZERO): New macro.
82152         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
82153         gl_PRINTF_FLAG_ZERO and test its result. Invoke
82154         gl_PREREQ_VASNPRINTF_FLAG_ZERO.
82155         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
82156         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Likewise.
82157         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
82158         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
82159         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
82160         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
82161         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
82162         * tests/test-snprintf-posix.h (test_function): Also check the width
82163         and some flags in the %f directive.
82164         * tests/test-sprintf-posix.h (test_function): Likewise.
82165         * tests/test-vasnprintf-posix.c (test_function): Likewise.
82166         * tests/test-vasprintf-posix.c (test_function): Likewise.
82167         * doc/functions/fprintf.texi: Update.
82168         * doc/functions/printf.texi: Update.
82169         * doc/functions/snprintf.texi: Update.
82170         * doc/functions/sprintf.texi: Update.
82171         * doc/functions/vfprintf.texi: Update.
82172         * doc/functions/vprintf.texi: Update.
82173         * doc/functions/vsnprintf.texi: Update.
82174         * doc/functions/vsprintf.texi: Update.
82176 2007-05-06  Bruno Haible  <bruno@clisp.org>
82178         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_GROUPING]: Don't
82179         pass the ' flag character to sprintf or snprintf.
82180         * m4/printf.m4 (gl_PRINTF_FLAG_GROUPING): New macro.
82181         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_GROUPING): New macro.
82182         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
82183         gl_PRINTF_FLAG_GROUPING and test its result. Invoke
82184         gl_PREREQ_VASNPRINTF_FLAG_GROUPING.
82185         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
82186         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Likewise.
82187         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
82188         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
82189         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
82190         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
82191         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
82192         * tests/test-snprintf-posix.h (test_function): Also check the grouping
82193         flag.
82194         * tests/test-sprintf-posix.h (test_function): Likewise.
82195         * tests/test-vasnprintf-posix.c (test_function): Likewise.
82196         * tests/test-vasprintf-posix.c (test_function): Likewise.
82197         * doc/functions/fprintf.texi: Update.
82198         * doc/functions/printf.texi: Update.
82199         * doc/functions/snprintf.texi: Update.
82200         * doc/functions/sprintf.texi: Update.
82201         * doc/functions/vfprintf.texi: Update.
82202         * doc/functions/vprintf.texi: Update.
82203         * doc/functions/vsnprintf.texi: Update.
82204         * doc/functions/vsprintf.texi: Update.
82206 2007-05-01  Bruno Haible  <bruno@clisp.org>
82208         * tests/test-argp-2.sh (func_compare): Drop .exe suffix.
82210 2007-05-03  Paul Eggert  <eggert@cs.ucla.edu>
82212         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Use better
82213         comment for D_INO_IN_DIRENT.  Problem reported by James Youngman.
82215 2007-05-02  Paul Eggert  <eggert@cs.ucla.edu>
82217         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Test whether
82218         readdir returns garbage in d_ino.  Problem reported by Kaz Sasayama in
82219         <http://lists.gnu.org/archive/html/bug-gnulib/2007-05/msg00021.html>.
82221 2007-05-02  Sergey Poznyakoff  <gray@gnu.org.ua>
82223         * lib/argp-help.c (struct hol_entry): New member `ord'.
82224         (HOL_ENTRY_PTRCMP): Use ord for comparison
82225         (hol_sort): Initialize ord.
82227 2007-05-01  Bruno Haible  <bruno@clisp.org>
82229         * doc/functions/_Exit_C99.texi: Renamed from doc/functions/_Exit.texi.
82230         Reported by Eric Blake.
82231         * doc/gnulib.texi (Function Substitutes): Update.
82233 2007-05-01  Bruno Haible  <bruno@clisp.org>
82235         * doc/functions.texi: Remove file, now redundant through
82236         doc/functions/*.texi.
82238 2007-05-01  Bruno Haible  <bruno@clisp.org>
82240         * modules/argp (Depends-on): Add sleep.
82242 2007-05-01  Bruno Haible  <bruno@clisp.org>
82244         * modules/sleep-tests: New file.
82245         * tests/test-sleep.c: New file.
82247         * modules/sleep: New file.
82248         * lib/sleep.c: New file.
82249         * m4/sleep.m4: New file.
82250         * lib/unistd_.h (sleep): New declaration.
82251         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_SLEEP,
82252         HAVE_SLEEP.
82253         * modules/unistd (Makefile.am): Substitute GNULIB_SLEEP, HAVE_SLEEP.
82254         * doc/functions/sleep.texi: Document the sleep module.
82256 2007-05-01  Bruno Haible  <bruno@clisp.org>
82258         * lib/sigprocmask.h: Remove file.
82259         * lib/signal_.h: Incorporate the previous contents of sigprocmask.h.
82260         * lib/sigprocmask.c: Include <signal.h> instead of sigprocmask.h.
82261         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Substitute GNULIB_SIGPROCMASK,
82262         HAVE_POSIX_SIGNALBLOCKING, HAVE_SIGSET_T.
82263         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Require
82264         gl_SIGNAL_H_DEFAULTS. Set HAVE_POSIX_SIGNALBLOCKING as a shell variable.
82265         (gl_PREREQ_SIGPROCMASK): Require gl_SIGNAL_H_DEFAULTS. Set
82266         HAVE_SIGSET_T as a shell variable.
82267         * modules/signal (Makefile.am): Substitute GNULIB_SIGPROCMASK,
82268         HAVE_POSIX_SIGNALBLOCKING, HAVE_SIGSET_T into signal.h.
82269         * modules/sigprocmask (Files): Remove lib/sigprocmask.h.
82270         (Depends-on): Add signal. Remove verify.
82271         (configure.ac): Invoke gl_SIGNAL_MODULE_INDICATOR.
82272         (Include): Mention <signal.h> instead of sigprocmask.h.
82273         * NEWS: Mention the change.
82274         * lib/fatal-signal.c: Don't include sigprocmask.h.
82276 2007-05-01  Bruno Haible  <bruno@clisp.org>
82278         * modules/signal: New file.
82279         * lib/signal_.h: New file.
82280         * m4/signal_h.m4: New file.
82282 2007-05-01  Bruno Haible  <bruno@clisp.org>
82284         * lib/wctype_.h: Test HAVE_ISWCNTRL at configure time.
82285         * m4/wctype.m4 (gl_WCTYPE_H): Substitute HAVE_ISWCNTRL.
82286         * modules/wctype (Makefile.am): Substitute HAVE_ISWCNTRL instead of
82287         HAVE_WCTYPE_CTMP_BUG into wctype.h.
82289 2007-05-01  Bruno Haible  <bruno@clisp.org>
82291         * lib/sys_stat_.h: Test HAVE_LSTAT, HAVE_DECL_MKDIR, HAVE_IO_H at
82292         configure time.
82293         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Substitute HAVE_LSTAT,
82294         HAVE_DECL_MKDIR, HAVE_IO_H via AC_SUBST.
82295         * modules/sys_stat (Makefile.am): Substitute their values into
82296         sys/stat.h.
82298 2007-05-01  Bruno Haible  <bruno@clisp.org>
82300         * lib/glob_.h: Test HAVE_SYS_CDEFS_H at configure time.
82301         * m4/glob.m4 (gl_PREREQ_GLOB): Substitute HAVE_SYS_CDEFS_H via AC_SUBST.
82302         * modules/glob (Makefile.am): Put HAVE_SYS_CDEFS_H value into glob.h.
82304 2007-05-01  Bruno Haible  <bruno@clisp.org>
82306         * doc/header/assert.texi: Undo last change: don't mention the gnulib
82307         'assert' module here.
82309 2007-05-01  Bruno Haible  <bruno@clisp.org>
82311         * doc/functions/*.texi: New files.
82312         * doc/functions/google-ranking.txt: New file.
82313         * doc/gnulib.texi (Function Substitutes): New chapter.
82314         (ctime, inet_ntoa): Remove sections.
82315         * doc/ctime.texi: Remove file.
82316         * doc/inet_ntoa.texi: Remove file.
82317         * doc/Makefile (gnulib.info, gnulib.html, gnulib.dvi): Update
82318         dependencies.
82319         (%.info): New rule, specifying a --reference-limit.
82321 2007-05-01  Bruno Haible  <bruno@clisp.org>
82323         * MODULES.html.sh (posix_functions): Remove 'exec', 'toc'.
82325 2007-05-01  Bruno Haible  <bruno@clisp.org>
82327         * modules/mkdir (Depends-on): Add sys_stat, because sys_stat provides
82328         the portability of 'mkdir' to mingw systems.
82330 2007-05-01  Bruno Haible  <bruno@clisp.org>
82332         * doc/headers/google-ranking.txt: New file.
82334 2007-04-30  Eric Blake  <ebb9@byu.net>
82336         Prefer fseeko to fseek.
82337         * modules/getpass (Depends-on): Add fseeko.
82338         * lib/getpass.c (getpass): Use fseeko, not fseek.
82340 2007-04-30  Sergey Poznyakoff  <gray@gnu.org.ua>
82342         * lib/argp-help.c (hol_entry_cmp): Option sorting algorithm
82343         assumes the sorting is stable, while most qsort implementations
82344         are not.  Use argument addresses to ensure they never compare as
82345         equal.
82347         * tests/test-argp-2.sh (usage-indent test): Fix output
82348         (func_compare): Restore diff options
82349         * tests/test-argp.c: Restore #include "progname.h"
82351 2007-04-29  Bruno Haible  <bruno@clisp.org>
82353         * m4/printf.m4 (gl_VSNPRINTF_ZEROSIZE_C99): New macro.
82354         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
82355         gl_VSNPRINTF_ZEROSIZE_C99. Test gl_cv_func_vsnprintf_zerosize_c99.
82356         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
82357         * modules/snprintf-posix-tests (Files): Add tests/test-snprintf.c.
82358         (configure.ac): Define CHECK_SNPRINTF_POSIX.
82359         (TESTS, check_PROGRAMS): Add test-snprintf.
82360         * modules/vsnprintf-posix-tests (Files): Add tests/test-vsnprintf.c.
82361         (configure.ac): Define CHECK_VSNPRINTF_POSIX.
82362         (TESTS, check_PROGRAMS): Add test-vsnprintf.
82363         * tests/test-snprintf.c (main) [!CHECK_SNPRINTF_POSIX]: Disable
82364         assertions that fail on HP-UX, OSF/1, or IRIX.
82365         * tests/test-vsnprintf.c (main) [!CHECK_VSNPRINTF_POSIX]: Likewise.
82367 2007-04-29  Bruno Haible  <bruno@clisp.org>
82369         * MODULES.html.sh (posix_functions): Remove 'contents'.
82371 2007-04-29  Karl Berry  <karl@gnu.org>
82373         * config/srclist.txt (gendocs_template_min): new entry.
82375 2007-04-29  Bruno Haible  <bruno@clisp.org>
82377         Work around fpurge bug on BSD systems.
82378         * modules/fpurge (Makefile.am): Compile fpurge.c unconditionally.
82379         * m4/fpurge.m4 (gl_FUNC_FPURGE): Don't invoke AC_LIBOBJ.
82380         * lib/fpurge.h (fpurge): Don't handle __fpurge wrapper here. Define
82381         fpurge to rpl_fpurge if the system already has this function.
82382         * lib/fpurge.c (fpurge): Handle also the __fpurge wrapper case and
82383         the case where the system already has this function. Correct invariants
82384         on BSD systems.
82385         * lib/fseeko.c (rpl_fseeko): Update recognition of preceding fflush on
82386         BSD systems.
82388 2007-04-29  Sergey Poznyakoff  <gray@gnu.org.ua>
82390         * lib/argp-help.c (hol_cluster_cmp): Reverse comparison.  Change
82391         proposed by Sven Verdoolaege.
82393         * tests/test-argp.c: Fix option ordering.  Test deeply clustered
82394         options.
82395         * tests/test-argp-2.sh (func_compare): Use diff instead of cmp.
82396         (usage and help tests): Update
82398 2007-04-29  Bruno Haible  <bruno@clisp.org>
82400         * tests/test-fflush.c (main): Use a file of size 17, not 10.
82401         Print more information in case of failure. Disable a test on BeOS.
82403 2007-04-29  Bruno Haible  <bruno@clisp.org>
82405         * tests/**/test-*.[hc] (ASSERT): Use fprintf to show the line number.
82406         This helps debugging on systems on which no gdb is available.
82408 2007-04-29  Bruno Haible  <bruno@clisp.org>
82410         * lib/freading.h: Improve comments.
82411         * lib/fwriting.h: Likewise.
82412         * tests/test-freading.c (main): Don't check freading immediately after
82413         repositioning. Needed for glibc.
82415 2007-04-29  Bruno Haible  <bruno@clisp.org>
82417         * lib/freading.c (freading): Trivial simplification.
82419 2007-04-28  Bruno Haible  <bruno@clisp.org>
82421         * tests/test-fwriting.c (main): Also test the interaction between
82422         fflush and fwriting.
82423         * modules/fwriting-tests (Depends-on): Add fflush.
82425         * tests/test-freading.c (main): Also test the interaction between
82426         fflush and freading.
82427         * modules/freading-tests (Depends-on): Add fflush.
82429 2007-04-28  Bruno Haible  <bruno@clisp.org>
82431         * lib/stdio_.h (fseek, ftell): Provide link warnings suggesting to use
82432         fseeko and ftello.
82433         Suggested by Eric Blake.
82435 2007-04-28  Jim Meyering  <jim@meyering.net>
82437         Avoid false-negative in gl_STDINT_H's C99 conformance test.
82438         * m4/stdint.m4 (gl_STDINT_H): When checking whether stdint.h conforms
82439         to C99, include all of gl_STDINT_INCLUDES, not just <stddef.h>.
82441 2007-04-27  Eric Blake  <ebb9@byu.net>
82443         * doc/headers/assert.texi (assert.h): Document assert module use.
82445 2007-04-27  Bruno Haible  <bruno@clisp.org>
82447         * doc/headers/*.texi: New files.
82448         * doc/gnulib.texi (Header File Substitutes): New chapter.
82449         * doc/Makefile (gnulib.info, gnulib.html, gnulib.dvi): Specify
82450         dependencies.
82451         (standards.info ,standards.html, standards.dvi): Update dependencies.
82452         (mostlyclean, clean): New targets.
82454 2007-04-27  Bruno Haible  <bruno@clisp.org>
82456         * lib/sysexits_.h: Renamed from lib/sysexit_.h.
82457         * modules/sysexits (Files, Makefile.am): Update.
82459         * lib/sys_socket_.h: Renamed from lib/socket_.h.
82460         * modules/sys_socket (Files, Makefile.am): Update.
82462         * lib/sys_stat_.h: Renamed from lib/stat_.h.
82463         * modules/sys_stat (Files, Makefile.am): Update.
82465 2007-04-27  Eric Blake  <ebb9@byu.net>
82467         * lib/freading.h: Improve comments.
82468         * lib/fwriting.h: Likewise.
82469         * lib/fflush.c: Likewise.
82471         Fix closein for mingw.
82472         * modules/closein-tests: Add tests for closein.
82473         * tests/test-closein.c: New file.
82474         * tests/test-closein.sh: Likewise.
82475         * lib/unistd_.h [!SEEK_CUR]: Mingw also needs stdlib.h for _exit.
82476         * lib/closein.c (close_stdin): Don't fflush non-seekable streams.
82478 2007-04-27  Bruno Haible  <bruno@clisp.org>
82480         * lib/inttypes_.h [_DECC]: Don't use #include_next if the compiler
82481         version is < 6.
82482         * lib/math_.h [__DECC]: Likewise.
82483         * lib/stdio_.h [__DECC]: Likewise.
82484         * lib/stdlib_.h [__DECC]: Likewise.
82485         * lib/string_.h [__DECC]: Likewise.
82486         * lib/time_.h [__DECC]: Likewise.
82487         * lib/wchar_.h [__DECC]: Likewise.
82488         * lib/wctype_.h [__DECC]: Likewise.
82490 2007-04-27  Bruno Haible  <bruno@clisp.org>
82492         * tests/test-fbufmode.c (main): Relax test, to avoid failure on mingw.
82494 2007-04-27  Bruno Haible  <bruno@clisp.org>
82496         * lib/fflush.c: Add comments.
82497         * modules/fpurge-tests (Depends-on): Add fflush.
82498         * modules/freadable-tests (Depends-on): Likewise.
82499         * modules/fwritable-tests (Depends-on): Likewise.
82501 2007-04-27  Charles Wilson  <libtool@cwilson.fastmail.fm>
82503         * m4/argz.m4 (gl_FUNC_ARGZ): Use !HAVE_WORKING_ARGZ instead of
82504         SYSTEM_ARGZ_IS_BROKEN.  Also, minor stylistic improvements.
82505         Report by Bruno Haible <bruno@clisp.org>.
82507 2007-04-26  Eric Blake  <ebb9@byu.net>
82509         Fix fflush on mingw.
82510         * modules/fflush (Depends-on): Add freading.
82511         * lib/fflush.c (rpl_fflush): Use freading to avoid losing buffered
82512         but unread data.
82514 2007-04-26  Eric Blake  <ebb9@byu.net>
82515         and Bruno Haible  <bruno@clisp.org>
82517         Implement freading and fwriting.
82518         * lib/freading.c: New file.
82519         * lib/freading.h: Likewise.
82520         * m4/freading.m4: Likewise.
82521         * modules/freading: Likewise.
82522         * modules/freading-tests: Likewise.
82523         * tests/test-freading.c: Likewise.
82524         * lib/fwriting.c: New file.
82525         * lib/fwriting.h: Likewise.
82526         * m4/fwriting.m4: Likewise.
82527         * modules/fwriting: Likewise.
82528         * modules/fwriting-tests: Likewise.
82529         * tests/test-fwriting.c: Likewise.
82530         * MODULES.html.sh (File stream based Input/Output): Mention them.
82532 2007-04-26  Bruno Haible  <bruno@clisp.org>
82534         * lib/stdio_.h (fseeko, ftello): Check that off_t has the same size as
82535         'long' when we assume it.
82536         Suggested by Eric Blake.
82538 2007-04-26  Bruno Haible  <bruno@clisp.org>
82540         Ensure fseeko, ftello are declared on glibc systems.
82541         * modules/fflush (configure.ac-early): Require AC_FUNC_FSEEKO.
82542         * modules/fseeko (configure.ac-early): Likewise.
82543         * modules/ftello (configure.ac-early): Likewise.
82544         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Don't define HAVE_FSEEKO, rely on
82545         AC_FUNC_FSEEKO for this.
82546         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Inline gl_CHECK_FSEEKO.
82547         (gl_CHECK_FSEEKO): Remove macro.
82549 2007-04-26  Bruno Haible  <bruno@clisp.org>
82551         * tests/test-fflush.c (main): Also check the ftell result after
82552         fflush and fseek/fseeko.
82553         * lib/fflush.c (rpl_fflush): For BSD implementations, update the
82554         file descriptor position cache in the stream.
82555         * lib/fseeko.c (rpl_fseeko): Likewise.
82557 2007-04-26  Bruno Haible  <bruno@clisp.org>
82559         * modules/fflush-tests (Depends-on): Add fseeko.
82561 2007-04-25  Charles Wilson  <libtool@cwilson.fastmail.fm>
82562             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
82564         * lib/argz_.h: ensure error_t definition is obtained in same
82565         mechanism system argz.h would have.
82566         * m4/argz.m4 (gl_FUNC_ARGZ): add new test to check if $host's
82567         argz facilities are known bad.  Err on the side of caution if
82568         cross-compiling.
82570 2007-04-25  Eric Blake  <ebb9@byu.net>
82572         * lib/fpurge.c (includes): Use stdlib.h for free.
82573         * tests/test-fflush.c (main): Also test fflush-fseeko.
82575 2007-04-25  Bruno Haible  <bruno@clisp.org>
82577         Make fflush+fseek POSIX-compliant on FreeBSD and MacOS X.
82578         * lib/fseeko.c: New file.
82579         * lib/stdio_.h: Include <sys/types.h> when off_t is needed.
82580         (fseeko, fseek): Define to replacements if REPLACE_FFLUSH.
82581         * m4/fseeko.m4 (gl_CHECK_FSEEKO): New macro, extracted from
82582         gl_FUNC_FSEEKO.
82583         (gl_FUNC_FSEEKO): Invoke it.
82584         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Arrange to compile fseeko.c. Invoke
82585         gl_CHECK_FSEEKO. Define HAVE_FSEEKO.
82586         * modules/fflush (Files): Add lib/fseeko.c, m4/fseeko.m4.
82588 2007-04-25  Bruno Haible  <bruno@clisp.org>
82590         * modules/fflush (Depends-on): Add ftello.
82592 2007-04-25  Bruno Haible  <bruno@clisp.org>
82594         * modules/ftello-tests: New file.
82595         * tests/test-ftello.c: New file.
82597         * modules/ftello: New file.
82598         * m4/ftello.m4: New file.
82599         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FTELLO,
82600         HAVE_FTELLO.
82601         * lib/stdio_.h (ftello): New declaration.
82602         * modules/stdio (Makefile.am): Substitute also GNULIB_FTELLO,
82603         HAVE_FTELLO.
82605 2007-04-25  Bruno Haible  <bruno@clisp.org>
82607         * modules/fseeko-tests: New file.
82608         * tests/test-fseeko.c: New file.
82610         * modules/fseeko: New file.
82611         * m4/fseeko.m4: New file.
82612         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FSEEKO,
82613         HAVE_FSEEKO.
82614         * lib/stdio_.h (fseeko): New declaration.
82615         * modules/stdio (Makefile.am): Substitute also GNULIB_FSEEKO,
82616         HAVE_FSEEKO.
82618 2007-04-25  Bruno Haible  <bruno@clisp.org>
82620         * lib/stdio_.h (fflush): Add support for GNULIB_POSIXCHECK.
82622 2007-04-25  Bruno Haible  <bruno@clisp.org>
82624         * lib/unistd_.h: Include <stdio.h> if needed to get the SEEK_* macros.
82625         * tests/test-stdio.c: Check that the various SEEK_* macros are defined.
82626         * tests/test-unistd.c: Likewise.
82627         * tests/test-fcntl.c: Likewise.
82629 2007-04-23  Eric Blake  <ebb9@byu.net>
82631         * lib/fflush.c: Fix missing include.
82632         Reported by Bruno Haible.
82634 2007-04-23  Bruno Haible  <bruno@clisp.org>
82636         * lib/fpurge.c (fpurge) [glibc, BSD]: Free a malloc()ed ungetc buffer.
82637         Reported by Eric Blake.
82639 2007-04-23  Bruno Haible  <bruno@clisp.org>
82641         * lib/fbufmode.c (fbufmode): Port to Solaris/SPARC64.
82643 2007-04-23  Bruno Haible  <bruno@clisp.org>
82645         * lib/fseterr.c (fseterr): Don't hardcode the value of _IOERR.
82647 2007-04-23  Bruno Haible  <bruno@clisp.org>
82649         * tests/test-fbufmode.c (main): Be prepared to a failure of setvbuf.
82650         Needed on HP-UX 11.
82652 2007-04-16  Eric Blake  <ebb9@byu.net>
82654         Make fflush rely on fpurge.
82655         * lib/fflush.c (rpl_fflush): Rely on fpurge module, rather than
82656         open coding all variants.
82657         * modules/fflush (Depends-on): Add fpurge and unistd.
82658         * modules/fflush-tests (Depends-on): Unistd is no longer extra.
82659         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Simplify.
82661         Fix --with-tests compilation on cygwin.
82662         * modules/argmatch-tests (Makefile.am): List gnulib library first
82663         in LDADD.
82664         * modules/argp-tests (Makefile.am): Likewise.
82665         * modules/array-list-tests (Makefile.am): Likewise.
82666         * modules/array-oset-tests (Makefile.am): Likewise.
82667         * modules/avltree-list-tests (Makefile.am): Likewise.
82668         * modules/avltree-oset-tests (Makefile.am): Likewise.
82669         * modules/avltreehash-list-tests (Makefile.am): Likewise.
82670         * modules/carray-list-tests (Makefile.am): Likewise.
82671         * modules/dirname-tests (Makefile.am): Likewise.
82672         * modules/frexp-tests (Makefile.am): Likewise.
82673         * modules/isnanl-tests (Makefile.am): Likewise.
82674         * modules/linked-list-tests (Makefile.am): Likewise.
82675         * modules/linkedhash-list-tests (Makefile.am): Likewise.
82676         * modules/lock-tests (Makefile.am): Likewise.
82677         * modules/rbtree-list-tests (Makefile.am): Likewise.
82678         * modules/rbtree-oset-tests (Makefile.am): Likewise.
82679         * modules/rbtreehash-list-tests (Makefile.am): Likewise.
82680         * modules/tls-tests (Makefile.am): Likewise.
82681         * modules/tsearch-tests (Makefile.am): Likewise.
82682         * modules/xvasprintf-tests (Makefile.am): Likewise.
82684         Fix fpurge for cygwin.
82685         * lib/fpurge.c (fpurge): Fix order of operation flub, and return a
82686         value.
82687         * modules/fpurge-tests (Depends-on): Clean up trash.
82689 2007-04-16  Simon Josefsson  <simon@josefsson.org>
82691         * lib/gc-libgcrypt.c (gc_hash_open): Shut up compiler warnings.
82693         * m4/autobuild.m4: Re-indent.
82695 2007-04-13  Bruno Haible  <bruno@clisp.org>
82697         * modules/fpurge-tests: New file.
82698         * tests/test-fpurge.c: New file.
82700         * modules/fpurge: New file.
82701         * lib/fpurge.h: New file.
82702         * lib/fpurge.c: New file.
82703         * m4/fpurge.m4: New file.
82705 2007-04-13  Bruno Haible  <bruno@clisp.org>
82707         * modules/fbufmode-tests: New file.
82708         * tests/test-fbufmode.c: New file.
82710         * modules/fbufmode: New file.
82711         * lib/fbufmode.h: New file.
82712         * lib/fbufmode.c: New file.
82713         * m4/fbufmode.m4: New file.
82715 2007-04-13  Bruno Haible  <bruno@clisp.org>
82717         * modules/fwritable-tests: New file.
82718         * tests/test-fwritable.c: New file.
82720         * modules/fwritable: New file.
82721         * lib/fwritable.h: New file.
82722         * lib/fwritable.c: New file.
82723         * m4/fwritable.m4: New file.
82725 2007-04-13  Bruno Haible  <bruno@clisp.org>
82727         * modules/freadable-tests: New file.
82728         * tests/test-freadable.c: New file.
82730         * modules/freadable: New file.
82731         * lib/freadable.h: New file.
82732         * lib/freadable.c: New file.
82733         * m4/freadable.m4: New file.
82735 2007-04-13  Bruno Haible  <bruno@clisp.org>
82737         * modules/fflush-tests (Makefile.am): Remove EXTRA_DIST. Augment
82738         MOSTLYCLEANFILES.
82740 2007-04-13  Paul Eggert  <eggert@cs.ucla.edu>
82742         * build-aux/bootstrap (gnulib_tool_option_extras): New var, used by
82743         gzip bootstrap.conf to avoid dragging in i18n machinery.
82744         (gnulib_tool_option): Use it.
82746 2007-04-13  Bruno Haible  <bruno@clisp.org>
82748         * tests/test-vasnprintf-posix.c (test_function): Add tests for %f and
82749         %F directives.
82750         * tests/test-vasprintf-posix.c (test_function): Likewise.
82751         * tests/test-snprintf-posix.h (test_function): Likewise.
82752         * tests/test-sprintf-posix.h (test_function): Likewise.
82753         * tests/test-fprintf-posix.h (test_function): Likewise.
82754         * tests/test-printf-posix.h (test_function): Likewise.
82755         * tests/test-fprintf-posix.out: Likewise.
82757 2007-04-13  Bruno Haible  <bruno@clisp.org>
82759         * modules/lock-tests (configure.ac): For LIBSCHED, try also -lposix4.
82760         * modules/tls-tests (configure.ac): Likewise.
82761         Reported by Arto C. Nirkko <anirkko@insel.ch>.
82763 2007-04-13  Bruno Haible  <bruno@clisp.org>
82765         * lib/tls.c (glthread_tls_get): Fix return type.
82766         Patch by Arto C. Nirkko <anirkko@insel.ch>.
82768 2007-04-12  Eric Blake  <ebb9@byu.net>
82770         * modules/gettime (Depends-on): Remove gettime.
82771         Reported by Dmitry V. Levin.
82773 2007-04-12  Bruno Haible  <bruno@clisp.org>
82775         * modules/fflush (Include): Mention <stdio.h>.
82776         * modules/strtoimax (Include): Mention <inttypes.h>.
82777         * modules/strtoumax (Include): Likewise.
82779 2007-04-12  Eric Blake  <ebb9@byu.net>
82781         * .cvsignore: New file.
82782         * .gitignore: Likewise.
82784 2007-04-12  Bruno Haible  <bruno@clisp.org>
82786         * modules/iconv-tests (test_iconv_LDADD): Mention -liconv after LDADD,
82787         not before, since $(LDADD) often contains libgnu.a.
82788         * modules/striconv-tests (test_striconv_LDADD): Likewise.
82789         * modules/striconveh-tests (test_striconveh_LDADD): Likewise.
82790         * modules/striconveha-tests (test_striconveha_LDADD): Likewise.
82791         Needed on Cygwin.
82793 2007-04-12  Eric Blake  <ebb9@byu.net>
82795         Work around glibc's failure to flush stdin on fclose.
82796         * lib/closein.c (close_stdin): Flush stdin before closing.
82798         Work around glibc's failure to reset seekable stdin on exit.
82799         * modules/closein: New module.
82800         * lib/closein.c: New file.
82801         * lib/closein.h: Likewise.
82802         * m4/closein.m4: Likewise.
82803         * MODULES.html.sh (File stream based Input/Output): Document it.
82805 2007-04-12  Simon Josefsson  <simon@josefsson.org>
82807         * gnulib-tool: Rename generated 'autobuild' script to
82808         'do-autobuild' in --create-megatestdir output.
82810         * doc/gnulib.texi (Build robot for gnulib): Fix.
82812 2007-04-12  Simon Josefsson  <simon@josefsson.org>
82814         * modules/sysexits (Depends-on): Add absolute-header.
82816 2007-04-12  Eric Blake  <ebb9@byu.net>
82818         No need to preserve errno on success.
82819         * lib/fflush.c (rpl_fflush): Simplify errno tracking.
82820         Reported by Bruno Haible.
82822 2007-04-12  Simon Josefsson  <simon@josefsson.org>
82824         * MODULES.html.sh (Support for maintaining and releasing
82825         projects): Add autobuild.  Suggested by Eric Blake <ebb9@byu.net>.
82827 2007-04-12  Simon Josefsson  <simon@josefsson.org>
82829         * gnulib-tool (func_modules_add_dummy): Respect --avoid=dummy.
82831 2007-04-12  Simon Josefsson  <simon@josefsson.org>
82833         * modules/autobuild: New module.
82835         * m4/autobuild.m4: New file.
82837 2007-04-11  Bruno Haible  <bruno@clisp.org>
82839         * lib/vasnprintf.c (VASNPRINTF): Implement the %F directive using the
82840         %f directive, if NEED_PRINTF_DIRECTIVE_F is defined.
82841         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_F): New macro.
82842         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_F): New macro.
82843         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
82844         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
82845         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
82846         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
82847         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
82848         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
82849         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Invoke
82850         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
82851         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
82852         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Invoke
82853         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
82854         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
82855         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Invoke
82856         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
82857         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
82858         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Invoke
82859         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
82860         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
82861         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Invoke
82862         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
82863         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
82864         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Invoke
82865         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
82866         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
82867         Reported by Eric Blake.
82869 2007-04-11  Bruno Haible  <bruno@clisp.org>
82871         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Fix test. It always failed.
82873 2007-04-10  Bruno Haible  <bruno@clisp.org>
82875         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Add a test for correct result
82876         for NaN and Infinity. Needed on FreeBSD 6.1.
82877         * tests/test-vasnprintf-posix.c (test_function): Undo last change
82878         regarding results for "%010a" of Infinity and NaN.
82879         * tests/test-vasprintf-posix.c (test_function): Likewise.
82880         * tests/test-snprintf-posix.h (test_function): Likewise.
82881         * tests/test-sprintf-posix.h (test_function): Likewise.
82882         * tests/test-fprintf-posix.h (test_function): Likewise.
82883         * tests/test-printf-posix.h (test_function): Likewise.
82884         * tests/test-fprintf-posix.out: Likewise.
82886 2007-04-10  Bruno Haible  <bruno@clisp.org>
82888         * modules/locale-tests: New file.
82889         * tests/test-locale.c: New file.
82891         * modules/locale: New file.
82892         * lib/locale_.h: New file.
82893         * m4/locale_h.m4: New file.
82895 2007-04-10  Paul Eggert  <eggert@cs.ucla.edu>
82896             Bruno Haible  <bruno@clisp.org>
82898         * m4/signbit.m4 (gl_SIGNBIT): When the sign bit position could not
82899         be determined, test for availability of the copysignf, copysign,
82900         copysignl functions.
82901         * lib/signbitf.c (gl_signbitf): Use copysignf if available in libc.
82902         * lib/signbitd.c (gl_signbitd): Use copysign if available in libc.
82903         * lib/signbitl.c (gl_signbitl): Use copysignl if available in libc.
82905 2007-04-09  Eric Blake  <ebb9@byu.net>
82907         * lib/stdio_.h [REPLACE_FFLUSH]: Declare rpl_fflush.
82908         * modules/stdio (Makefile.am): Support fflush.
82909         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
82910         * modules/fflush: New file.
82911         * lib/fflush.c: Likewise.
82912         * m4/fflush.m4: Likewise.
82913         * modules/fflush-tests: New test.
82914         * tests/test-fflush.c: Likewise.
82915         * MODULES.html.sh (Input/output <stdio.h>): Document new module.
82917 2007-04-06  Bruno Haible  <bruno@clisp.org>
82919         * lib/vasnprintf.c: Include <math.h>. Don't include float+.h.
82920         (VASNPRINTF): Use signbit for faster determination whether to print a
82921         minus sign.
82922         * modules/vasnprintf (Files): Remove lib/float+.h.
82923         * modules/fprintf-posix (Depends-on): Add signbit.
82924         * modules/snprintf-posix (Depends-on): Likewise.
82925         * modules/sprintf-posix (Depends-on): Likewise.
82926         * modules/vasnprintf-posix (Depends-on): Likewise.
82927         * modules/vasprintf-posix (Depends-on): Likewise.
82928         * modules/vfprintf-posix (Depends-on): Likewise.
82929         * modules/vsnprintf-posix (Depends-on): Likewise.
82930         * modules/vsprintf-posix (Depends-on): Likewise.
82932 2007-04-06  Bruno Haible  <bruno@clisp.org>
82934         * tests/test-frexp.c (main): Test also the sign bit of zero results.
82935         * tests/test-frexpl.c (main): Likewise.
82936         * tests/test-ldexpl.c (main): Likewise.
82937         * modules/frexp-tests (Depends-on): Add signbit.
82938         * modules/frexpl-tests (Depdends-on): Likewise.
82939         * modules/ldexpl-tests (Depdends-on): Likewise.
82941 2007-04-06  Bruno Haible  <bruno@clisp.org>
82943         * modules/signbit-tests: New file.
82944         * tests/test-signbit.c: New file.
82946         * modules/signbit: New file.
82947         * lib/signbitf.c: New file.
82948         * lib/signbitd.c: New file.
82949         * lib/signbitl.c: New file.
82950         * m4/signbit.m4: New file.
82951         * lib/math_.h (gl_signbitf, gl_signbitd, gl_signbitl): New declarations.
82952         (signbit): New macro.
82953         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_SIGNBIT and
82954         REPLACE_SIGNBIT.
82955         * modules/math (Makefile.am): Substitute also GNULIB_SIGNBIT and
82956         REPLACE_FREXPL into math.h.
82958 2007-04-06  Bruno Haible  <bruno@clisp.org>
82960         * modules/isnanf-nolibm-tests: New file.
82961         * tests/test-isnanf.c: New file.
82963         * modules/isnanf-nolibm: New file.
82964         * lib/isnanf.h: New file.
82965         * lib/isnanf.c: New file.
82966         * lib/isnan.c: Consider the USE_FLOAT macro.
82967         * m4/isnanf.m4: New file.
82969 2007-04-06  Bruno Haible  <bruno@clisp.org>
82971         * modules/gettext-h (configure.ac): AC_SUBST LIBINTL and LTLIBINTL.
82972         (Link): New section.
82974         * modules/canonicalize-lgpl-tests (Makefile.am): Undo last change.
82976 2007-04-06  Bruno Haible  <bruno@clisp.org>
82978         Assume the 'long double' type.
82979         * m4/longdouble.m4: Remove file.
82980         * config/srclist.txt: Don't mention longdouble.m4.
82981         * lib/allocsa.h: Assume HAVE_LONG_DOUBLE to be true.
82982         * lib/float+.h: Likewise.
82983         * lib/frexp.c: Likewise.
82984         * lib/printf-args.h: Likewise.
82985         * lib/printf-args.c: Likewise.
82986         * lib/printf-frexp.c: Likewise.
82987         * lib/printf-parse.c: Likewise.
82988         * lib/vasnprintf.c: Likewise.
82989         * m4/allocsa.m4: Remove gt_TYPE_LONGDOUBLE invocation.
82990         * m4/intl.m4: Likewise.
82991         * m4/isnanl.m4: Likewise.
82992         * m4/printf.m4: Likewise.
82993         * m4/printf-frexpl.m4: Likewise.
82994         * m4/vasnprintf.m4: Likewise.
82995         * modules/allocsa (Files): Remove m4/longdouble.m4.
82996         * modules/gettext (Files): Likewise.
82997         * modules/relocatable-prog-wrapper (Files): Likewise.
82998         * modules/vasnprintf (Files): Likewise.
82999         * modules/isnanl (Files): Likewise.
83000         (Include): Simplify.
83001         * modules/isnanl-nolibm (Files): Remove m4/longdouble.m4.
83002         (Include): Simplify.
83003         * modules/printf-frexpl (Files): Remove m4/longdouble.m4.
83004         (Include): Simplify.
83005         * modules/snprintf-posix-tests (Files): Remove m4/longdouble.m4.
83006         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
83007         * modules/sprintf-posix-tests (Files): Remove m4/longdouble.m4.
83008         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
83009         * modules/vasnprintf-posix-tests (Files): Remove m4/longdouble.m4.
83010         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
83011         * modules/vasprintf-posix-tests (Files): Remove m4/longdouble.m4.
83012         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
83013         * modules/vsnprintf-posix-tests (Files): Remove m4/longdouble.m4.
83014         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
83015         * modules/vsprintf-posix-tests (Files): Remove m4/longdouble.m4.
83016         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
83017         * tests/test-isnanl-nolibm.c: Assume HAVE_LONG_DOUBLE to be true.
83018         * tests/test-isnanl.c: Likewise.
83019         * tests/test-snprintf-posix.h: Likewise.
83020         * tests/test-sprintf-posix.h: Likewise.
83021         * tests/test-vasnprintf-posix.c: Likewise.
83022         * tests/test-vasnprintf-posix2.c: Likewise.
83023         * tests/test-vasprintf-posix.c: Likewise.
83025 2007-04-06  Bruno Haible  <bruno@clisp.org>
83027         Fix problem with Compaq (ex-DEC) Desktop C compiler on Tru64.
83028         * lib/math_.h [__DECC]: Include the overridden include file through
83029         #include_next, outside the double-inclusion guard.
83030         * lib/stdio_.h [__DECC]: Likewise.
83031         * lib/stdlib_.h [__DECC]: Likewise.
83032         * lib/string_.h [__DECC]: Likewise.
83033         * lib/time_.h [__DECC]: Likewise.
83034         * lib/wchar_.h [__DECC]: Likewise.
83035         * lib/wctype_.h [__DECC]: Likewise.
83036         * lib/inttypes_.h [__DECC]: Likewise.
83037         Reported by Albert Chin <china@thewrittenword.com> in
83038         <http://lists.gnu.org/archive/html/bug-gnulib/2007-04/msg00088.html>.
83040 2007-04-04  Eric Blake  <ebb9@byu.net>
83042         * m4/stdint.m4 (gl_STDINT_H): Detect WINT_MAX bug in cygwin
83043         1.5.x.
83045 2007-04-04  Bruno Haible  <bruno@clisp.org>
83047         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Add a test for correct
83048         rounding. Don't assume that FreeBSD 6 and NetBSD 4 pass this test.
83050 2007-04-04  Bruno Haible  <bruno@clisp.org>
83052         * tests/test-vasnprintf-posix.c (test_function): Allow two possible
83053         results for "%010a" of Infinity and NaN.
83054         * tests/test-vasprintf-posix.c (test_function): Likewise.
83055         * tests/test-snprintf-posix.h (test_function): Likewise.
83056         * tests/test-sprintf-posix.h (test_function): Likewise.
83057         * tests/test-fprintf-posix.h (test_function): Remove these tests.
83058         * tests/test-printf-posix.h (test_function): Likewise.
83059         * tests/test-fprintf-posix.out: Update.
83060         Needed for FreeBSD 6.1.
83062 2007-04-04  Bruno Haible  <bruno@clisp.org>
83064         * DEPENDENCIES: Remove mentions of tar and gzip, since they are not
83065         directly used by the gnulib modules nor by gnulib-tool.
83067 2007-04-04  Paul Eggert  <eggert@cs.ucla.edu>
83069         * DEPENDENCIES: Give overall description of version dependency
83070         desirability.  Use more-typical names for apps.
83071         Add shell, coreutils, diffutils, grep, tar, gzip.
83073 2007-04-04  Simon Josefsson  <simon@josefsson.org>
83075         * MODULES.html.sh: Rename crypto modules.  Remove iconvme.
83077 2007-04-04  Karl Berry  <karl@gnu.org>
83079         * MODULES.html.sh (func_module): missing '.
83081 2007-04-03  Bruno Haible  <bruno@clisp.org>
83083         * modules/argmatch-tests (Makefile.am): New variable
83084         test_argmatch_LDADD.
83085         * modules/argp-tests (Makefile.am): New variable test_argp_LDADD.
83086         * modules/array-list-tests (Makefile.am): New variable
83087         test_array_list_LDADD.
83088         * modules/array-oset-tests (Makefile.am): New variable
83089         test_array_oset_LDADD.
83090         * modules/avltree-list-tests (Makefile.am): New variable
83091         test_avltree_list_LDADD.
83092         * modules/avltree-oset-tests (Makefile.am): New variable
83093         test_avltree_oset_LDADD.
83094         * modules/avltreehash-list-tests (Makefile.am): New variable
83095         test_avltreehash_list_LDADD.
83096         * modules/canonicalize-lgpl-tests (Makefile.am): New variable
83097         test_canonicalize_lgpl_LDADD.
83098         * modules/carray-list-tests (Makefile.am): New variable
83099         test_carray_list_LDADD.
83100         * modules/dirname-tests (Makefile.am): New variable
83101         test_dirname_LDADD.
83102         * modules/linked-list-tests (Makefile.am): New variable
83103         test_linked_list_LDADD.
83104         * modules/linkedhash-list-tests (Makefile.am): New variable
83105         test_linkedhash_list_LDADD.
83106         * modules/rbtree-list-tests (Makefile.am): New variable
83107         test_rbtree_list_LDADD.
83108         * modules/rbtree-oset-tests (Makefile.am): New variable
83109         test_rbtree_oset_LDADD.
83110         * modules/rbtreehash-list-tests (Makefile.am): New variable
83111         test_rbtreehash_list_LDADD.
83112         * modules/xvasprintf-tests (Makefile.am): New variable
83113         test_xvasprintf_LDADD.
83114         Reported by Eric Blake.
83116 2007-04-03  Eric Blake  <ebb9@byu.net>
83118         * DEPENDENCIES: Weaken m4 requirements.
83120 2007-04-03  Bruno Haible  <bruno@clisp.org>
83122         * modules/frexp-tests (configure.ac): Remove AC_SUBST.
83123         * modules/isnanl-tests (configure.ac): Likewise.
83125 2007-04-03  Ben Pfaff  <blp@gnu.org>
83127         * modules/iconv_open: Add $(srcdir)/ to source directory
83128         references in Makefile fragments that call gperf, to fix VPATH
83129         builds.
83131 2007-04-03  Bruno Haible  <bruno@clisp.org>
83133         * modules/ldexpl (Depends-on): Add isnanl, remove isnanl-nolibm.
83134         * lib/ldexpl.c: Undo last change.
83136 2007-04-03  Bruno Haible  <bruno@clisp.org>
83138         * modules/printf-frexpl (Depends-on): Undo last change.
83139         (Files): Add m4/ldexpl.m4.
83141 2007-04-03  Bruno Haible  <bruno@clisp.org>
83143         * m4/isnanl.m4 (gl_FUNC_ISNANL): Substitute ISNANL_LIBM.
83144         * modules/isnanl (Link): New section.
83146         * m4/frexp.m4 (gl_FUNC_FREXP): Substitute FREXP_LIBM.
83147         * modules/frexp (Link): New section.
83149         * m4/frexpl.m4 (gl_FUNC_FREXPL): Substitute FREXPL_LIBM.
83150         * modules/frexpl (Link): New section.
83152         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Substitute LDEXPL_LIBM.
83153         * modules/ldexpl (Link): New section.
83155 2007-04-03  Bruno Haible  <bruno@clisp.org>
83157         * modules/TEMPLATE-EXTENDED: New file.
83158         * gnulib-tool (func_all_modules, func_verify_module): Exclude it.
83160 2007-04-03  Bruno Haible  <bruno@clisp.org>
83162         * DEPENDENCIES: New file.
83163         Suggested by Simon Josefsson.
83165 2007-04-03  Bruno Haible  <bruno@clisp.org>
83167         * doc/gnulib.texi: Escape @.
83169 2007-04-03  James Youngman  <jay@gnu.org>
83170         and Paul Eggert  <eggert@cs.ucla.edu>
83172         * lib/stat-time.h (get_stat_birthtime): Check for zero-valued
83173         birthtime on all systems that have birthtime, not just those which
83174         use st_birthtimensec rather than st_birthtim.  Putting zero in
83175         st_birthtim.tv_sec is how (for example) FreeBSD/x86 6.1 indicates
83176         that the birth time is not available for files on an NFS mount.
83178 2007-04-03  Simon Josefsson  <simon@josefsson.org>
83180         * modules/memxor: Move back from crypto/, suggested by Bruno.
83181         * modules/crypto/hmac-sha1: Fix memxor dependency.
83183         * modules/crypto/gc: Moved from ../.
83185 2007-04-02  Eric Blake  <ebb9@byu.net>
83187         * lib/ldexpl.c (includes): Avoid libm.
83189         * modules/printf-frexpl (Depends-on): Depend on ldexpl.
83191 2007-04-02  Bruno Haible  <bruno@clisp.org>
83193         * lib/sysexit_.h (EX_OK): Disable the EX_OK definition from <unistd.h>
83194         on IRIX.
83196 2007-04-02  Bruno Haible  <bruno@clisp.org>
83198         * m4/intdiv0.m4 (gt_INTDIV0): Avoid performing the test for real on
83199         x86 or x86_64 platforms running MacOS X.
83200         Reported by Ryan Schmidt <@ryandesign.com>.
83202 2007-04-02  Bruno Haible  <bruno@clisp.org>
83204         * m4/intdiv0.m4 (gt_INTDIV0): When cross-compiling, treat x86_64 like
83205         i386.
83207 2007-04-01  Simon Josefsson  <simon@josefsson.org>
83209         * modules/crypto/arcfour: Moved from ../.
83210         * modules/crypto/arcfour-tests: Moved from ../.
83211         * modules/crypto/arctwo: Moved from ../.
83212         * modules/crypto/arctwo-tests: Moved from ../.
83213         * modules/crypto/des: Moved from ../.
83214         * modules/crypto/des-tests: Moved from ../.
83215         * modules/crypto/gc-arcfour: Moved from ../.
83216         * modules/crypto/gc-arcfour-tests: Moved from ../.
83217         * modules/crypto/gc-arctwo: Moved from ../.
83218         * modules/crypto/gc-arctwo-tests: Moved from ../.
83219         * modules/crypto/gc-des: Moved from ../.
83220         * modules/crypto/gc-des-tests: Moved from ../.
83221         * modules/crypto/gc-hmac-md5: Moved from ../.
83222         * modules/crypto/gc-hmac-md5-tests: Moved from ../.
83223         * modules/crypto/gc-hmac-sha1: Moved from ../.
83224         * modules/crypto/gc-hmac-sha1-tests: Moved from ../.
83225         * modules/crypto/gc-md2: Moved from ../.
83226         * modules/crypto/gc-md2-tests: Moved from ../.
83227         * modules/crypto/gc-md4: Moved from ../.
83228         * modules/crypto/gc-md4-tests: Moved from ../.
83229         * modules/crypto/gc-md5: Moved from ../.
83230         * modules/crypto/gc-md5-tests: Moved from ../.
83231         * modules/crypto/gc-pbkdf2-sha1: Moved from ../.
83232         * modules/crypto/gc-pbkdf2-sha1-tests: Moved from ../.
83233         * modules/crypto/gc-random: Moved from ../.
83234         * modules/crypto/gc-rijndael: Moved from ../.
83235         * modules/crypto/gc-rijndael-tests: Moved from ../.
83236         * modules/crypto/gc-sha1: Moved from ../.
83237         * modules/crypto/gc-sha1-tests: Moved from ../.
83238         * modules/crypto/gc-tests: Moved from ../.
83239         * modules/crypto/hmac-md5: Moved from ../.
83240         * modules/crypto/hmac-md5-tests: Moved from ../.
83241         * modules/crypto/hmac-sha1: Moved from ../.
83242         * modules/crypto/hmac-sha1-tests: Moved from ../.
83243         * modules/crypto/md2: Moved from ../.
83244         * modules/crypto/md2-tests: Moved from ../.
83245         * modules/crypto/md4: Moved from ../.
83246         * modules/crypto/md4-tests: Moved from ../.
83247         * modules/crypto/md5: Moved from ../.
83248         * modules/crypto/md5-tests: Moved from ../.
83249         * modules/crypto/memxor: Moved from ../.
83250         * modules/crypto/rijndael: Moved from ../.
83251         * modules/crypto/rijndael-tests: Moved from ../.
83252         * modules/crypto/sha1: Moved from ../.
83254 2007-03-30  James Youngman  <jay@gnu.org>
83256         * tests/test-stat-time.c (prepare_test): use chmod() rather than
83257         rename() to change the ctime of a file (because ctime is unaffected
83258         by rename on jfs2 on AIX 5.1).
83259         (main): Start by doing cleanup, in case a previous run failed leaving
83260         test files behind.
83262 2007-03-31  Bruno Haible  <bruno@clisp.org>
83264         Support old proprietary implementations of iconv.
83265         * modules/iconv_open: New file.
83266         * lib/iconv_.h: New file.
83267         * m4/iconv_h.m4: New file.
83268         * lib/iconv_open.c: New file.
83269         * lib/iconv_open-aix.gperf: New file.
83270         * lib/iconv_open-hpux.gperf: New file.
83271         * lib/iconv_open-irix.gperf: New file.
83272         * lib/iconv_open-osf.gperf: New file.
83273         * m4/iconv_open.m4: New file.
83274         * modules/linebreak (Depends-on): Add iconv_open.
83275         * modules/striconv (Depends-on): Likewise.
83276         * modules/striconveh (Depends-on): Likewise.
83277         * modules/unicodeio (Depends-on): Likewise.
83278         * lib/striconveh.h (mem_cd_iconveh, str_cd_iconveh): Allow cd to be
83279         (iconv_t)(-1).
83280         * lib/striconveh.c (mem_cd_iconveh_internal): Use an indirect
83281         conversion if cd is (iconv_t)(-1).
83282         (mem_iconveh, str_iconveh): Don't fail just because a direct conversion
83283         is not possible.
83285 2007-03-31  Bruno Haible  <bruno@clisp.org>
83287         * tests/test-striconveha.c (main): Don't expect "autodetect_jp" to
83288         work on Solaris either. Protect also second use of "autodetect_jp".
83290 2007-03-31  Bruno Haible  <bruno@clisp.org>
83292         * m4/frexpl.m4 (gl_FUNC_FREXPL): Set HAVE_DECL_FREXPL to 0 when
83293         the function is not present.
83295 2007-03-31  Bruno Haible  <bruno@clisp.org>
83297         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Set HAVE_DECL_LDEXPL to 0 when
83298         the function is not present.
83300 2007-03-31  Bruno Haible  <bruno@clisp.org>
83302         * m4/iconv.m4 (AM_ICONV_LINK): Fix 2007-03-29 patch. Test also against
83303         a bug in HP-UX iconv_open().
83305 2007-03-31  Bruno Haible  <bruno@clisp.org>
83307         * MODULES.html.sh (func_module): Don't show gnulib-common.m4.
83308         (Mathematics <math.h>): New section, add fpieee.
83309         (Input/output <stdio.h>): Add fseterr.
83310         (Mathematics <math.h>): New section, add printf-frexp.
83311         (Container data structures): Add sublist.
83312         (Core language properties): Add fpucw, inline.
83313         (Functions for greatest-width integer types <inttypes.h>): Add
83314         imaxabs, imaxdiv, inttypes.
83315         (Mathematics <math.h>): Add frexp, frexpl, isnan-nolibm, isnanl,
83316         isnanl-nolibm, ldexp.
83317         (Mathematics <math.h>): New section, add printf-frexpl.
83318         (Support for systems lacking POSIX:2001): Add fprintf-posix,
83319         printf-posix, snprintf-posix, sprintf-posix, string, search, socklen,
83320         sys_select, sys_socket, vasnprintf-posix, vasprintf-posix,
83321         vfprintf-posix, vprintf-posix, vsnprintf-posix, vsprintf-posix.
83322         (Unicode string functions): Add unistr/u*-mbtoucr.
83323         (Java): Add javacomp-script, javaexec-script.
83324         (C#): Add csharpcomp-script, csharpexec-script.
83325         (Support for building libraries and executables): Add havelib,
83326         relocatable-*.
83327         (Support for maintaining and releasing projects): Renamed from
83328         'Support for maintaining and release projects'. Add announce-gen.
83330 2007-03-31  Bruno Haible  <bruno@clisp.org>
83332         * README: Talk primarily about git.
83333         (git and CVS): Renamed from CVS.
83334         * doc/gnulib.texi (Introduction, Build robot for gnulib): Mention that
83335         gnulib is available through git.
83336         * doc/gnulib-tool.texi (CVS Issues): Mention git and svn as well.
83338 2007-03-30  Bruno Haible  <bruno@clisp.org>
83340         * lib/alloca_.h: Change prefix of double-inclusion guard macro to _GL_.
83341         * lib/poll_.h: Likewise.
83342         * lib/stat_.h: Likewise.
83343         * lib/sys_time_.h: Likewise.
83344         * lib/sysexit_.h: Likewise.
83345         * lib/glob_.h: Prefix double-inclusion guard macro with _GL_.
83346         * lib/stdbool_.h: Likewise.
83347         * lib/byteswap_.h: Add double-inclusion guard.
83349 2007-03-30  Sergey Poznyakoff  <gray@mirddin.farlep.net>
83351         * lib/sysexit_.h: Prefix double-inclusion guard macro with _GNULIB.
83353 2007-03-30  Karl Berry  <karl@gnu.org>
83355         * config/srclist-update: double space after USA in the license
83356         substitution, since that's how it's usually (?) written.
83358 2007-03-30  Paul Eggert  <eggert@cs.ucla.edu>
83360         * lib/write-any-file.c (can_write_any_file): Fix else-else bug
83361         reported by Bruno Haible.
83363 2007-03-29  Bruno Haible  <bruno@clisp.org>
83365         * m4/iconv.m4 (AM_ICONV_LINK): Require AC_CANONICAL_HOST. Test against
83366         a bug in AIX iconv().
83368 2007-03-29  Bruno Haible  <bruno@clisp.org>
83370         * modules/ldexpl-tests: New file.
83371         * tests/test-ldexpl.c: New file.
83373 2007-03-29  Bruno Haible  <bruno@clisp.org>
83375         * lib/ldexpl.c: Include fpucw.h.
83376         (ldexpl): Use BEGIN/END_LONG_DOUBLE_ROUNDING. Skip the last unneeded
83377         multiplication.
83378         * modules/ldexpl (Depends-on): Add fpucw.
83380 2007-03-29  Bruno Haible  <bruno@clisp.org>
83382         * modules/ldexpl: New file.
83383         * m4/ldexpl.m4: New file.
83384         * lib/math_.h (ldexpl): Define to a replacement if REPLACE_LDEXPL is
83385         set.
83386         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize also GNULIB_LDEXPL,
83387         REPLACE_LDEXPL.
83388         * modules/math (Makefile.am): Substitute also GNULIB_LDEXPL,
83389         REPLACE_LDEXPL.
83390         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Invoke
83391         gl_FUNC_LDEXPL_WORKS.
83392         * m4/mathl.m4 (gl_FUNC_LONG_DOUBLE_MATH): Remove test for ldexpl.
83393         * modules/mathl (Files): Remove lib/ldexpl.c.
83394         (Depends-on): Add ldexpl.
83396 2007-03-29  Bruno Haible  <bruno@clisp.org>
83398         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Declare frexpl.
83400 2007-03-29  Bruno Haible  <bruno@clisp.org>
83402         * tests/test-striconveh.c (main): Don't assume that a direct conversion
83403         between ISO-8859-1 and ISO-8859-2 is possible. Needed for OSF/1, IRIX
83404         and possibly also HP-UX.
83405         * tests/test-striconveha.c (main): Don't expect "autodetect_jp" to
83406         work on AIX, IRIX, HP-UX, OSF/1.
83407         * tests/uniconv/test-u16-conv-from-enc.c (main): Likewise.
83408         * tests/uniconv/test-u16-strconv-from-enc.c (main): Likewise.
83409         * tests/uniconv/test-u32-conv-from-enc.c (main): Likewise.
83410         * tests/uniconv/test-u32-strconv-from-enc.c (main): Likewise.
83411         * tests/uniconv/test-u8-conv-from-enc.c (main): Likewise.
83412         * tests/uniconv/test-u8-strconv-from-enc.c (main): Likewise.
83414 2007-03-29  Bruno Haible  <bruno@clisp.org>
83416         * tests/test-stat-time.c: Include <fcntl.h>, not <sys/fcntl.h>.
83418 2007-03-29  Paul Eggert  <eggert@cs.ucla.edu>
83420         * lib/acl-internal.h (acl_get_fd, acl_set_fd): undef before defining,
83421         to work around a problem on OSF/1 5.1 reported by Bruno Haible.
83423 2007-03-29  Eric Blake  <ebb9@byu.net>
83425         * lib/acl-internal.h: Remove redundant include.
83426         (ACL_NOT_WELL_SUPPORTED): Also filter on EBUSY, returned by
83427         Cygwin when a file is locked.
83429 2007-03-29  Bruno Haible  <bruno@clisp.org>
83431         * lib/vasprintf.c [IN_LIBASPRINTF]: Include different specification
83432         file.
83433         * lib/asprintf.c [IN_LIBASPRINTF]: Likewise.
83435 2007-03-29  Paul Eggert  <eggert@cs.ucla.edu>
83437         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Don't bother to
83438         try to remove a parent directory if the child couldn't be removed
83439         (except for the first rmdir, which could fail because the child
83440         doesn't exist).  Problem reported by Jeff Blaine in
83441         <http://lists.gnu.org/archive/html/bug-tar/2007-03/msg00014.html>.
83443 2007-03-28  Bruno Haible  <bruno@clisp.org>
83445         * lib/striconveh.c (utf8conv_carefully): New function.
83446         (mem_cd_iconveh_internal): Invoke it.
83448 2007-03-28  Bruno Haible  <bruno@clisp.org>
83450         * lib/striconveh.c (mem_cd_iconveh_internal): Use u8_mbtoucr instead
83451         of u8_mbtouc in order to distinguish invalid and incomplete UTF-8
83452         input.
83453         * modules/striconveh (Depends-on): Add unistr/u8-mbtoucr. Replace
83454         utf8-ucs4 with unistr/u8-mbtouc. Replace ucs4-utf8 with
83455         unistr/u8-uctomb.
83457 2007-03-28  Bruno Haible  <bruno@clisp.org>
83459         * modules/unistr/u8-mbtoucr: New file.
83460         * lib/unistr/u8-mbtoucr.c: New file.
83461         * modules/unistr/u16-mbtoucr: New file.
83462         * lib/unistr/u16-mbtoucr.c: New file.
83463         * modules/unistr/u16-mbtoucr: New file.
83464         * lib/unistr/u16-mbtoucr.c: New file.
83465         * lib/unistr.h (u8_mbtoucr, u16_mbtoucr, u32_mbtoucr): New declarations.
83467 2007-03-27  Simon Josefsson  <simon@josefsson.org>
83468             Bruno Haible  <bruno@clisp.org>
83470         * m4/vasprintf.m4: Convert AC_SUBST into shell variable for
83471         REPLACE_VASPRINTF.  Set HAVE_VASPRINTF.  Add
83472         AC_REQUIRE([gl_STDIO_H_DEFAULTS]).
83474         * m4/stdio_h.m4: Add stubs for vasprintf too.
83476         * modules/stdio: Support vasprintf in sed command.
83478         * modules/vasprintf: Depend on stdio for prototypes.  Remove
83479         vasprintf.h.  Add stdio module indicator.
83481         * lib/stdio_.h: Declare asprintf and vasprintf, based on
83482         vasprintf.h.
83484         * lib/vasprintf.h: File removed.
83486         * lib/asprintf.c: Use stdio.h instead of vasprintf.h.
83487         * lib/vasprintf.c: Ditto.
83488         * lib/xvasprintf.c: Ditto.
83489         * tests/test-vasprintf-posix.c: Ditto.
83490         * tests/test-vasprintf.c: Ditto.
83492 2007-03-27  Bruno Haible  <bruno@clisp.org>
83494         Make vasnprintf multithread-safe.
83495         * lib/vasnprintf.c (decimal_point_char): New function.
83496         (VASNPRINTF): Use it.
83497         Suggested by Simon Josefsson.
83499 2007-03-27  Eric Blake  <ebb9@byu.net>
83501         Support sub-second birthtime on cygwin.
83502         * m4/stat-time.m4 (gl_STAT_BIRTHTIME): Also check for st_birthtim.
83503         * lib/stat-time.h (STAT_TIMESPEC): Adjust comments.
83504         (get_stat_birthtime): Also work with st_birthtim.
83506 2007-03-27  Paul Eggert  <eggert@cs.ucla.edu>
83508         * lib/stat-time.h (USE_BIRTHTIME): Remove.
83509         (get_stat_atime_ns, get_stat_ctime_ns, get_stat_mtime_ns):
83510         (get_stat_birthtime_ns): Do not try to use "spare" fields.
83511         (get_stat_birthtime_ns): Simplify compile-time tests.
83512         (get_stat_birthtime): Change the API to look like
83513         get_stat_mtime etc., except return a negative tv_nsec on error.
83514         * m4/stat-time.m4 (gl_STAT_TIME, gl_STAT_BIRTHTIME):
83515         Don't check for "spare" fields.
83516         (gl_STAT_BIRTHTIME): Don't check for struct stat.st_birthtimespec.tv_sec
83517         or for struct stat.st_birthtime, as these tests aren't used.
83518         * tests/test-stat-time.c (test_birthtime): Adjust to new API.
83520 2007-03-27  Bruno Haible  <bruno@clisp.org>
83522         * lib/stat-time.h: Include <sys/stat.h>.
83524 2007-03-27  James Youngman  <jay@gnu.org>
83526         * lib/stat-time.h (get_stat_birthtime): New function for
83527           retrieving st_birthtime as provided by UFS2 (hence *BSD).
83528         * m4/stat-time.m4 (gl_STAT_BIRTHTIME): Probe for st_birthtime
83529           and its variants.
83530         * modules/stat-time (configure.ac): call gl_STAT_BIRTHTIME.
83531         * modules/stat-time-test: New file.
83532         * tests/test-stat-time.c: New test, devised by Bruno Haible.
83534 2007-03-26  Bruno Haible  <bruno@clisp.org>
83536         Better support of signalling NaNs.
83537         * lib/atanl.c: Include isnanl.h.
83538         (atanl): Perform test for NaN at the beginning of the function and
83539         through a call to isnanl.
83540         * lib/cosl.c: Include isnanl.h.
83541         (cosl): Perform test for NaN at the beginning of the function and
83542         through a call to isnanl.
83543         * lib/ldexpl.c: Include isnanl.h.
83544         (ldexpl): Perform test for NaN through a call to isnanl.
83545         * lib/logl.c: Include isnanl.h.
83546         (logl): Perform test for NaN at the beginning of the function and
83547         through a call to isnanl.
83548         * lib/sinl.c: Include isnanl.h.
83549         (sinl): Perform test for NaN at the beginning of the function and
83550         through a call to isnanl.
83551         * lib/sqrtl.c: Include isnanl.h.
83552         (sqrtl): Perform test for NaN at the beginning of the function and
83553         through a call to isnanl.
83554         * lib/tanl.c: Include isnanl.h.
83555         (tanl): Perform test for NaN at the beginning of the function and
83556         through a call to isnanl.
83557         * lib/trigl.c (ieee754_rem_pio2l): Remove test for NaN.
83558         * modules/mathl (Depends-on): Add isnanl.
83560 2007-03-26  Eric Blake  <ebb9@byu.net>
83562         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): Fix
83563         regression in logic sense of previous patch.
83565 2007-03-26  Bruno Haible  <bruno@clisp.org>
83567         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): Don't use
83568         unportable shell command "if ! ...".
83569         Reported by Ralf Wildenhues.
83571 2007-03-25  Bruno Haible  <bruno@clisp.org>
83573         * lib/sysexit_,h: If HAVE_SYSEXITS_H is defined, include the original
83574         <sysexits.h> file, and only add EX_CONFIG.
83575         * m4/sysexits.m4 (gl_SYSEXITS): If <sysexits.h> exists, check its
83576         absolute file name and whether it is sufficient. Substitute also
83577         HAVE_SYSEXITS_H and ABSOLUTE_SYSEXITS_H.
83578         * modules/sysexits (Makefile.am): Substitute HAVE_SYSEXITS_H and
83579         ABSOLUTE_SYSEXITS_H into sysexits.h.
83581 2007-03-25  Bruno Haible  <bruno@clisp.org>
83583         * lib/getaddrinfo.c (getaddrinfo): Don't access hints->ai_flags when
83584         hints is NULL.
83586 2007-03-25  Bruno Haible  <bruno@clisp.org>
83588         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Add a cast.
83589         * lib/uniconv/u8-strconv-to-enc.c (u8_strconv_to_encoding): Likewise.
83591 2007-03-25  Bruno Haible  <bruno@clisp.org>
83593         * lib/vasnprintf.c: Include langinfo.h.
83594         (VASNPRINTF): Prefer nl_langinfo over localeconv, since it's more
83595         multithread-safe.
83596         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): New macro.
83597         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke it.
83598         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
83599         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
83600         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
83601         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
83602         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
83603         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX: Likewise.
83604         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
83605         Reported by Simon Josefsson.
83607 2007-03-25  Bruno Haible  <bruno@clisp.org>
83609         * lib/printf-parse.c [!IN_LIBINTL]: Include <stdint.h>, for intmax_t.
83610         (PRINTF_PARSE): Make the support for size specifier 'j' unconditional.
83611         * modules/vasnprintf (Depends-on): Add stdint.
83613 2007-03-25  Bruno Haible  <bruno@clisp.org>
83615         * modules/fpieee: New file.
83616         * m4/fpieee.m4: New file.
83617         * modules/isnan-nolibm (Depends-on): Add fpieee.
83618         * modules/isnanl-nolibm (Depends-on): Add fpieee.
83619         * modules/isnanl (Depends-on): Add fpieee.
83621 2007-03-25  Bruno Haible  <bruno@clisp.org>
83623         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Test also finite numbers.
83625 2007-03-25  Bruno Haible  <bruno@clisp.org>
83627         Avoid test failures on IRIX 6.5.
83628         * tests/test-frexpl.c (MIN_NORMAL_EXP): New macro.
83629         (main): Use it.
83630         * tests/test-printf-frexpl.c (MIN_NORMAL_EXP, MIN_SUBNORMAL_EXP): New
83631         macros.
83632         (main): Use them.
83634 2007-03-25  Bruno Haible  <bruno@clisp.org>
83636         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): New macro.
83637         (gl_FUNC_FREXPL): Invoke it. Set REPLACE_FREXPL to 1 if it frexpl
83638         exists but doesn't work.
83639         * lib/math_.h (frexpl): Define as a replacement macro if REPLACE_FREXPL
83640         is set. Don't provide a prototype if REPLACE_FREXPL is not set.
83641         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_FREXPL.
83642         * modules/math (Makefile.am): Substitute also REPLACE_FREXPL into
83643         math.h.
83645 2007-03-25  Bruno Haible  <bruno@clisp.org>
83647         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Add check whether frexp(inf)
83648         returns inf. Needed on IRIX 6.5.
83650 2007-03-25  Bruno Haible  <bruno@clisp.org>
83652         * tests/test-frexpl.c: Include isnanl-nolibm.h.
83653         (main): Use isnanl instead of x != x idiom.
83654         * modules/frexpl-tests (Depends-on): Add isnanl-nolibm.
83656         * tests/test-frexp.c: Include isnan.h.
83657         (main): Use isnan instead of x != x idiom.
83658         * modules/frexp-tests (Depends-on): Add isnan-nolibm.
83660 2007-03-25  Bruno Haible  <bruno@clisp.org>
83662         * tests/test-frexp.c (NaN): New function/macro.
83663         (main): Use it instead of 0.0 / 0.0.
83664         * tests/test-isnan.c (NaN): New function/macro.
83665         (main): Use it instead of 0.0 / 0.0.
83666         * tests/test-vasnprintf-posix.c (NaN): New function/macro.
83667         (test_function): Use it instead of 0.0 / 0.0.
83668         * tests/test-vasprintf-posix.c (NaN): New function/macro.
83669         (test_function): Use it instead of 0.0 / 0.0.
83670         * tests/test-snprintf-posix.h (NaN): New function/macro.
83671         (test_function): Use it instead of 0.0 / 0.0.
83672         * tests/test-sprintf-posix.h (NaN): New function/macro.
83673         (test_function): Use it instead of 0.0 / 0.0.
83674         * tests/test-fprintf-posix.h (NaN): New function/macro.
83675         (test_function): Use it instead of 0.0 / 0.0.
83676         * tests/test-printf-posix.h (NaN): New function/macro.
83677         (test_function): Use it instead of 0.0 / 0.0.
83679         * lib/isnan.c (FUNC): Work around a DEC C compiler bug.
83681 2007-03-25  Bruno Haible  <bruno@clisp.org>
83683         * lib/glob_.h: Include <sys/stat.h>. Avoids warnings on AIX 5.1.
83685 2007-03-25  Bruno Haible  <bruno@clisp.org>
83687         * lib/regexec.c (merge_state_with_log): Make static.
83689 2007-03-25  Bruno Haible  <bruno@clisp.org>
83691         * lib/trigl.c (kernel_rem_pio2): Make static.
83693 2007-03-25  Bruno Haible  <bruno@clisp.org>
83695         * lib/sincosl.c (sincosl_table): Make static.
83697 2007-03-25  Bruno Haible  <bruno@clisp.org>
83699         * lib/argp.h (__restrict): Define to empty, rather than to 'restrict',
83700         if the compiler does not support C99.
83702 2007-03-25  Bruno Haible  <bruno@clisp.org>
83704         * modules/time (Makefile.am): Ensure all rule action lines start with a
83705         tab.
83707 2007-03-24  Bruno Haible  <bruno@clisp.org>
83709         * modules/tsearch-tests: New file.
83710         * tests/test-tsearch.sh: New file.
83711         * tests/test-tsearch.c: New file, mostly copied from glibc.
83713         * modules/search-tests: New file.
83714         * tests/test-search.c: New file.
83716         * modules/search: New file.
83717         * lib/search_.h: New file, incorporating lib/tsearch.h.
83718         * m4/search_h.m4: New file.
83719         * lib/tsearch.h: Remove file.
83720         * lib/tsearch.c: Include search.h instead of tsearch.h.
83721         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Require gl_SEARCH_H_DEFAULTS. Set
83722         HAVE_TSEARCH.
83723         * modules/tsearch (Files): Remove lib/tsearch.h.
83724         (Depends-on): Add search.
83725         (configure.ac): Invoke gl_SEARCH_MODULE_INDICATOR.
83726         (Include): Change tsearch.h into search.h.
83728 2007-03-24  Bruno Haible  <bruno@clisp.org>
83730         * modules/fpucw: New file.
83731         * lib/fpucw.h: New file.
83732         * lib/frexp.c: Include fpucw.h.
83733         (DECL_ROUNDING, BEGIN_ROUNDING, END_ROUNDING): New macros.
83734         (FUNC): Use them.
83735         * lib/printf-frexp.c: Include fpucw.h.
83736         (DECL_ROUNDING, BEGIN_ROUNDING, END_ROUNDING): New macros.
83737         (FUNC): Use them.
83738         * lib/vasnprintf.c: Include fpucw.h.
83739         (VASNPRINTF): Invoke BEGIN/END_LONG_DOUBLE_ROUNDING around the
83740         'long double' calculations.
83741         * tests/test-frexpl.c: Include fpucw.h.
83742         (main): Invoke BEGIN_LONG_DOUBLE_ROUNDING.
83743         * tests/test-printf-frexpl.c: Include fpucw.h.
83744         (main): Invoke BEGIN_LONG_DOUBLE_ROUNDING.
83745         * modules/frexpl (Depends-on): Add fpucw.
83746         * modules/printf-frexpl (Depends-on): Likewise.
83747         * modules/fprintf-posix (Depends-on): Likewise.
83748         * modules/snprintf-posix (Depends-on): Likewise.
83749         * modules/sprintf-posix (Depends-on): Likewise.
83750         * modules/vasnprintf-posix (Depends-on): Likewise.
83751         * modules/vasprintf-posix (Depends-on): Likewise.
83752         * modules/vfprintf-posix (Depends-on): Likewise.
83753         * modules/vsnprintf-posix (Depends-on): Likewise.
83754         * modules/vsprintf-posix (Depends-on): Likewise.
83755         * modules/frexpl-tests (Depends-on): Likewise.
83756         * modules/printf-frexpl-tests (Depends-on): Likewise.
83758 2007-03-24  Bruno Haible  <bruno@clisp.org>
83760         * lib/float+.h: New file.
83761         * lib/isnan.c: Include float+.h.
83762         (SIZE): New macro.
83763         (FUNC): Compare only SIZE bytes of the value.
83764         * lib/vasnprintf.c: Include float+.h.
83765         (VASNPRINTF): When comparing against +0.0L or +0.0, compare only
83766         SIZEOF_LDBL or SIZEOF_DBL bytes.
83767         * modules/isnan-nolibm (Files): Add lib/float+.h.
83768         * modules/isnanl-nolibm (Files): Add lib/float+.h.
83769         * modules/isnanl (Files): Add lib/float+.h.
83770         * modules/vasnprintf (Files): Add lib/float+.h.
83772 2007-03-24  Bruno Haible  <bruno@clisp.org>
83774         * lib/vasnprintf.c [!HAVE_LONG_DOUBLE]: Include printf-frexp.h. Don't
83775         include isnanl-nolibm.h.
83777 2007-03-24  Bruno Haible  <bruno@clisp.org>
83779         * tests/test-read-file.c (main): Don't produce spurious output for
83780         expected situations. Make the test fail if it encountered unexpected
83781         results.
83783 2007-03-24  Bruno Haible  <bruno@clisp.org>
83785         * m4/locale-fr.m4 (gt_LOCALE_FR): Remove the special-casing of NetBSD,
83786         since its fr_FR.ISO8859-1 locale wouldn't pass the tests.
83788 2007-03-24  Bruno Haible  <bruno@clisp.org>
83790         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Fix last change.
83792 2007-03-24  Bruno Haible  <bruno@clisp.org>
83794         * modules/unistr/base (Depends-on): Remove utf8-ucs4-unsafe,
83795         utf16-ucs4-unsafe, utf8-ucs4, utf16-ucs4, ucs4-utf8, ucs4-utf16.
83797         * modules/unistr/u8-mbtouc: Add source files from module utf8-ucs4.
83798         * modules/utf8-ucs4: Turn into a symbolic link to module
83799         unistr/u8-mbtouc.
83801         * modules/unistr/u8-mbtouc-unsafe: Add source files from module
83802         utf8-ucs4-unsafe.
83803         * modules/utf8-ucs4-unsafe: Turn into a symbolic link to module
83804         unistr/u8-mbtouc-unsafe.
83806         * modules/unistr/u16-mbtouc: Add source files from module utf16-ucs4.
83807         * modules/utf16-ucs4: Turn into a symbolic link to module
83808         unistr/u16-mbtouc.
83810         * modules/unistr/u16-mbtouc-unsafe: Add source files from module
83811         utf16-ucs4-unsafe.
83812         * modules/utf16-ucs4-unsafe: Turn into a symbolic link to module
83813         unistr/u16-mbtouc-unsafe.
83815         * modules/unistr/u8-uctomb: Add source files from module utf4-utf8.
83816         * modules/ucs4-utf8: Turn into a symbolic link to module
83817         unistr/u8-ubtomb.
83819         * modules/unistr/u16-uctomb: Add source files from module utf4-utf16.
83820         * modules/ucs4-utf16: Turn into a symbolic link to module
83821         unistr/u16-ubtomb.
83823 2007-03-24  Bruno Haible  <bruno@clisp.org>
83825         * lib/unistr/u8-mbtouc-aux.c: Renamed from lib/unistr/utf8-ucs4.c.
83826         Enable the function only if HAVE_INLINE.
83827         * lib/unistr/u8-mbtouc-unsafe-aux.c: Renamed from
83828         lib/unistr/utf8-ucs4-unsafe.c. Enable the function only if HAVE_INLINE.
83829         * lib/unistr/u16-mbtouc-aux.c: Renamed from lib/unistr/utf16-ucs4.c.
83830         Enable the function only if HAVE_INLINE.
83831         * lib/unistr/u16-mbtouc-unsafe-aux.c: Renamed from
83832         lib/unistr/utf16-ucs4-unsafe.c. Enable the function only if HAVE_INLINE.
83833         * lib/unistr/u8-uctomb-aux.c: Renamed from lib/unistr/ucs4-utf8.c.
83834         Enable the function only if HAVE_INLINE.
83835         * lib/unistr/u16-uctomb-aux.c: Renamed from lib/unistr/ucs4-utf16.c.
83836         Enable the function only if HAVE_INLINE.
83837         * modules/utf8-ucs4: Update.
83838         * modules/utf8-ucs4-unsafe: Update.
83839         * modules/utf16-ucs4: Update.
83840         * modules/utf16-ucs4-unsafe: Update.
83841         * modules/ucs4-utf8: Update.
83842         * modules/ucs4-utf16: Update.
83844 2007-03-24  Bruno Haible  <bruno@clisp.org>
83846         * lib/utf8-ucs4.h: Remove file.
83847         * lib/utf8-ucs4-unsafe.h: Remove file.
83848         * lib/utf16-ucs4.h: Remove file.
83849         * lib/utf16-ucs4-unsafe.h: Remove file.
83850         * lib/ucs4-utf8.h: Remove file.
83851         * lib/ucs4-utf16.h: Remove file.
83852         * lib/unistr.h: Include their previous contents.
83853         * m4/utf-ucs4.m4: Remove file.
83854         * m4/ucs4-utf.m4: Remove file.
83855         * modules/utf8-ucs4 (Files): Remove lib/utf8-ucs4.h.
83856         (Depends-on): Add unistr/base.
83857         (configure.ac): Remove gl_UTF_UCS4.
83858         (Makefile.am): Update.
83859         (Include): Change to unistr.h.
83860         * modules/utf8-ucs4-unsafe (Files): Remove lib/utf8-ucs4-unsafe.h.
83861         (Depends-on): Add unistr/base.
83862         (configure.ac): Remove gl_UTF_UCS4.
83863         (Makefile.am): Update.
83864         (Include): Change to unistr.h.
83865         * modules/utf16-ucs4 (Files): Remove lib/utf16-ucs4.h.
83866         (Depends-on): Add unistr/base.
83867         (configure.ac): Remove gl_UTF_UCS4.
83868         (Makefile.am): Update.
83869         (Include): Change to unistr.h.
83870         * modules/utf16-ucs4-unsafe (Files): Remove lib/utf16-ucs4-unsafe.h.
83871         (Depends-on): Add unistr/base.
83872         (configure.ac): Remove gl_UTF_UCS4.
83873         (Makefile.am): Update.
83874         (Include): Change to unistr.h.
83875         * modules/ucs4-utf8 (Files): Remove lib/ucs4-utf8.h.
83876         (Depends-on): Add unistr/base.
83877         (configure.ac): Remove gl_UCS4_UTF.
83878         (Makefile.am): Update.
83879         (Include): Change to unistr.h.
83880         * modules/ucs4-utf16 (Files): Remove lib/ucs4-utf16.h.
83881         (Depends-on): Add unistr/base.
83882         (configure.ac): Remove gl_UCS4_UTF.
83883         (Makefile.am): Update.
83884         (Include): Change to unistr.h.
83885         * lib/unistr/utf8-ucs4.c: Include unistr.h instead of utf8-ucs4.h.
83886         * lib/unistr/utf8-ucs4-unsafe.c: Include unistr.h instead of
83887         utf8-ucs4-unsafe.h.
83888         * lib/unistr/utf16-ucs4.c: Include unistr.h instead of utf16-ucs4.h.
83889         * lib/unistr/utf16-ucs4-unsafe.c: Include unistr.h instead of
83890         utf16-ucs4-unsafe.h.
83891         * lib/unistr/ucs4-utf8.c: Include unistr.h instead of ucs4-utf8.h.
83892         * lib/unistr/ucs4-utf16.c: Include unistr.h instead of ucs4-utf16.h.
83893         * lib/unistr/u8-chr.c: Don't include ucs4-utf8.h.
83894         * lib/unistr/u8-strchr.c: Likewise.
83895         * lib/unistr/u8-strrchr.c: Likewise.
83896         * lib/unistr/u16-chr.c: Don't include ucs4-utf16.h.
83897         * lib/unistr/u16-strchr.c: Likewise.
83898         * lib/unistr/u16-strrchr.c: Likewise.
83899         * lib/striconveh.c: Update.
83900         * lib/linebreak.c: Update.
83902 2007-03-24  Bruno Haible  <bruno@clisp.org>
83904         * lib/argp-help.c (fill_in_uparams, canon_doc_option): Cast the
83905         arguments of isspace, isalpha, isalnum, isdigit to 'unsigned char'.
83907 2007-03-22  Bruno Haible  <bruno@clisp.org>
83909         * lib/strptime.c (__strptime_internal): Use ANSI C syntax.
83911 2007-03-23  Paul Eggert  <eggert@cs.ucla.edu>
83913         * MODULES.html.sh (File system functions): New module write-any-file.
83914         * modules/write-any-file, lib/write-any-file.c, lib/write-any-file.h:
83915         * m4/write-any-file.m4: New files.
83917 2007-03-23  Eric Blake  <ebb9@byu.net>
83919         * gnulib-tool: Rearrange space-tab sequences, since some editors
83920         like to eat them.
83922 2007-03-23  Eric Blake  <ebb9@byu.net>
83924         * lib/version-etc.c (version_etc_va): Update license wording to
83925         be more concise.  Recommended by Richard Stallman.
83927 2007-03-22  Bruno Haible  <bruno@clisp.org>
83929         * lib/poll.c (MSG_PEEK): New fallback definition.
83931 2007-03-22  Bruno Haible  <bruno@clisp.org>
83933         * modules/sys_socket-tests (configure.ac): Check for shutdown function.
83934         * tests/test-sys_socket.c (a): Test only if shutdown() exists.
83935         (main): Update.
83936         Fixes a compilation error on BeOS.
83938 2007-03-22  Bruno Haible  <bruno@clisp.org>
83940         * modules/frexpl-tests: New file.
83941         * tests/test-frexpl.c: New file.
83943         * modules/frexpl: New file.
83944         * m4/frexpl.m4: New file.
83945         * modules/math (Makefile.am): Also substitute GNULIB_FREXPL into math.h.
83946         * lib/math_.h (frexpl): Test GNULIB_FREXPL instead of GNULIB_MATHL.
83947         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FREXPL.
83948         * modules/mathl (Files): Remove lib/frexpl.c, lib/frexp.c.
83949         (Depends-on): Add frexpl. Remove isnanl-nolibm.
83950         * m4/mathl.m4 (gl_FUNC_LONG_DOUBLE_MATH): Don't test for frexpl.
83952 2007-03-22  Bruno Haible  <bruno@clisp.org>
83954         * lib/frexpl.c: Share code with lib/frexp.c.
83955         * modules/mathl (Files): Add lib/frexp.c.
83956         (Depends-on): Add isnanl-nolibm.
83958 2007-03-22  Bruno Haible  <bruno@clisp.org>
83960         * modules/printf-frexp (Files): Add m4/frexp.m4.
83961         * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Define HAVE_FREXP_IN_LIBC
83962         only if the found frexp function actually works.
83964 2007-03-22  Bruno Haible  <bruno@clisp.org>
83966         * lib/frexp.c: Remove older implementation that uses divisions.
83968 2007-03-21  Bruno Haible  <bruno@clisp.org>
83970         * modules/frexp-tests: New file.
83971         * tests/test-frexp.c: New file.
83973         * modules/frexp: New file.
83974         * lib/frexp.c: New file.
83975         * m4/frexp.m4: New file.
83976         * lib/math_.h (frexp): New declaration.
83977         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Also initialize GNULIB_FREXP and
83978         REPLACE_FREXP.
83979         * modules/math (math.h): Also substitute GNULIB_FREXP, REPLACE_FREXP.
83981 2007-03-21  Bruno Haible  <bruno@clisp.org>
83983         * modules/isnanl-tests: New file.
83984         * tests/test-isnanl.c: New file.
83986         * modules/isnanl: New file.
83987         * lib/isnanl.h: New file.
83988         * m4/isnanl.m4 (gl_FUNC_ISNANL): New macro.
83989         (gl_FUNC_ISNANL_NO_LIBM): Invoke gl_HAVE_ISNANL_NO_LIBM,
83990         gl_FUNC_ISNANL_WORKS.
83991         (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM, gl_FUNC_ISNANL_WORKS):
83992         New macros.
83994 2007-03-21  Bruno Haible  <bruno@clisp.org>
83996         * modules/isnanl-nolibm (Files): Add lib/isnanl-nolibm.h, remove
83997         lib/isnanl.h.
83998         (Include): Update.
83999         * lib/isnanl-nolibm.h: Renamed from lib/isnanl.h.
84000         * lib/vasnprintf.c: Update.
84001         * modules/isnanl-nolibm-tests (Files): Add tests/test-isnanl-nolibm.c,
84002         tests/test-isnanl.h, remove tests/test-isnanl.c.
84003         (Makefile.am): Update.
84004         * tests/test-isnanl-nolibm.c: New file.
84005         * tests/test-isnanl.h: New file.
84006         * tests/test-isnanl.c: Remove file.
84008 2007-03-21  Jim Meyering  <jim@meyering.net>
84010         When trying to open ".", treat ESTALE like EACCES.
84011         * lib/savewd.c (savewd_save): Resort to forking not just upon
84012         failure with EACCES, but also when errno is ESTALE.
84014 2007-03-20  Bruno Haible  <bruno@clisp.org>
84016         * lib/string_.h (strndup): Enable declaration also if HAVE_STRNDUP.
84017         Needed on AIX 5.1. Reported by Matthew Woehlke.
84019 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
84021         Suggestions by Bruno Haible:
84022         * lib/acl-internal.h: Include "gettext.h" rather than rolling
84023         our own.
84024         (ACL_NOT_WELL_SUPPORTED): Parenthesize arg when used.
84025         * modules/acl (Depends-on): Add gettext.
84027 2007-03-19  Bruno Haible  <bruno@clisp.org>
84029         * modules/iconvme: Remove file.
84030         * lib/iconvme.h: Remove file.
84031         * lib/iconvme.c: Remove file.
84032         * m4/iconvme.m4: Remove file.
84034 2007-03-19  Bruno Haible  <bruno@clisp.org>
84036         * doc/relocatable-maint.texi: Break long shell script line.
84037         Suggested by Thien-Thi Nguyen <ttn@gnuvola.org>.
84039 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
84041         Add limited support for Solaris 10 ZFS-style ACLs: just enough to
84042         handle file_has_acl.
84043         * lib/acl-internal.h, lib/acl_entries.c, lib/file-has-acl.c: New files.
84044         * lib/acl.c: Move header inclusions and related macro defns into
84045         lib/acl-internal.h.
84046         (S_ISLNK): Remove defn, since that's now done for us.
84047         (file_has_acl): Move to lib/file-has-acl.c.
84048         Call acl_trivial if available.  This is the crucial part of the fix.
84049         (acl_entries): Move to lib/acl_entries.c.  Now extern, since it's
84050         shared within the library.  Rewrite a bit, partly to make it compatible
84051         with the GNU coding style.
84052         * m4/acl.m4 (AC_FUNC_ACL): Add AC_LIBOBJ([file-has-acl]).
84053         Remove unnecessary double-quotes.
84054         Don't test for acl_to_text; the build will catch that.
84055         Replace acl_entries if it doesn't exist and it is needed.
84056         Check for -lsec and acl_trivial (as used on Solaris 10).
84057         * modules/acl (Files): Add lib/acl-internal.h, lib/acl_entries.c,
84058         lib/file-has-acl.c.
84059         (Depends-on): Add sys_stat, for S_ISLNK.
84061 2007-03-19  Ben Pfaff  <blp@gnu.org>
84063         * doc/gnulib.texi: Fix typos.
84064         Suggested by Thien-Thi Nguyen <ttn@gnuvola.org>.
84066 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
84068         * lib/getcwd.c (__getcwd): Remove redundant comparison of buf to NULL.
84069         If size is zero here, buf must be zero.
84071 2007-03-19  Simon Josefsson  <simon@josefsson.org>
84073         * des.c: Remove weak_keys_chksum.  Reported by Bruno Haible
84074         <bruno@clisp.org>.
84076 2007-03-18  Bruno Haible  <bruno@clisp.org>
84078         * lib/vasnprintf.c (VASNPRINTF): Undo first part of last patch.
84079         Suggested by Eric Blake.
84081 2007-03-18  Ben Pfaff  <blp@gnu.org>
84083         * doc/relocatable.texi: Recommend using as prefix a directory
84084         that does not exist and will never be created.  Based on
84085         discussion with Bruno Haible, Ralf Wildenhues, Matthew Woehlke,
84086         and others.
84088 2007-03-17  Bruno Haible  <bruno@clisp.org>
84090         * lib/fchownat.c: Include lchown.h.
84092 2007-03-17  Bruno Haible  <bruno@clisp.org>
84094         Fix endless loop when the given allocated size was > INT_MAX.
84095         * lib/vasnprintf.c (EOVERFLOW): New fallback definition.
84096         (VASNPRINTF): Fail with EOVERFLOW when the given allocated size is
84097         larger than INT_MAX, or when it grow to a value larger than INT_MAX.
84098         * lib/vsprintf.c (vsprintf): Don't pass a size > INT_MAX to vasnprintf.
84099         * lib/sprintf.c (sprintf): Likewise.
84101 2007-03-17  Bruno Haible  <bruno@clisp.org>
84103         * tests/test-argp-2.sh (func_compare): Output a context diff.
84105 2007-03-17  Bruno Haible  <bruno@clisp.org>
84107         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Check also the
84108         locale's decimal-point character.
84110 2007-03-17  Bruno Haible  <bruno@clisp.org>
84112         * lib/vasnprintf.c (VASNPRINTF): Clear out the memory used for arg_mem
84113         before comparing it. Needed because on some platforms (e.g. x86) a
84114         'long double' occupies less bytes than sizeof (long double).
84116 2007-03-17  Bruno Haible  <bruno@clisp.org>
84118         * tests/test-crc.c (main): Make printf statements 64-bit clean.
84119         * tests/test-gc-pbkdf2-sha1.c (main): Likewise.
84120         * tests/test-getaddrinfo.c (simple): Likewise.
84121         * tests/test-read-file.c (main): Likewise.
84123 2007-03-17  Bruno Haible  <bruno@clisp.org>
84125         * tests/test-dirname.c (main): Make printf statements 64-bit clean.
84127 2007-03-17  Bruno Haible  <bruno@clisp.org>
84129         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Remove
84130         unused variable.
84132 2007-03-17  Bruno Haible  <bruno@clisp.org>
84134         * tests/test-c-strcasecmp.c: Include c-strcase.h.
84135         * tests/test-c-strncasecmp.c: Likewise.
84137 2007-03-17  Bruno Haible  <bruno@clisp.org>
84139         * modules/stdlib (Depends-on): Add unistd.
84140         * lib/stdlib_.h: Include <unistd.h> if mkstemp is desired.
84141         Needed for MacOS X 10.3.
84143 2007-03-17  Bruno Haible  <bruno@clisp.org>
84145         * lib/unistr/u-strdup.h: Include <stdlib.h>.
84147 2007-03-17  Bruno Haible  <bruno@clisp.org>
84149         * lib/unistr/u-cpy-alloc.h: Include <stdlib.h>.
84151 2007-03-17  Bruno Haible  <bruno@clisp.org>
84153         * gnulib-tool (func_import): Update .cvsignore and .gitignore files
84154         to reflect files copied from gnulib (with or without modifications).
84155         Suggested by Jim Meyering.
84157 2007-03-17  Eric Blake  <ebb9@byu.net>
84159         * NEWS: Document stdlib change from 2007-02-18.
84161 2007-03-17  Jim Meyering  <jim@meyering.net>
84163         Detect use of AC_CONFIG_AUX_DIR also when its argument is quoted.
84164         * build-aux/bootstrap: Put ""s around use of $build_aux, in case
84165         someone uses a name containing shell meta-characters.
84166         Reported by Alfred M. Szmidt.
84168         * build-aux/bootstrap: Don't use \> in grep regexp.  For HP-UX.
84170 2007-03-16  Alfred M. Szmidt  <ams@gnu.org>
84172         * build-aux/bootstrap (with_gettext): New variable.  Run autopoint
84173         and copy gettext configuration files only if configure.ac contains
84174         a use of AM_GNU_GETTEXT_VERSION.
84176 2007-03-16  Alfred M. Szmidt  <ams@gnu.org>
84178         * build-aux/bootstrap (gnulib_name): New variable.
84179         (gnulib_tool_options): Use it.
84181 2007-03-13  Simon Josefsson  <simon@josefsson.org>
84183         * tests/test-des.c: Use new namespace.
84185 2007-03-15  Bruno Haible  <bruno@clisp.org>
84187         * lib/dummy.c (gl_dummy_symbol): Renamed from 'dummy'.
84188         Reported by James Youngman <jay@gnu.org>.
84190 2007-03-15  Bruno Haible  <bruno@clisp.org>
84192         * lib/glob.c (glob): Add 'restrict' so that prototype matches the
84193         declared prototype. Needed with cc on OSF/1 5.1.
84195 2007-03-15  Bruno Haible  <bruno@clisp.org>
84197         * lib/gl_list.h (gl_listelement_dispose_fn): New type.
84198         (gl_list_create_empty, gl_list_create): Add dispose_fn argument.
84199         (struct gl_list_implementation): Add dispose_fn argument to the
84200         'create_empty', 'create' methods.
84201         (struct gl_list_impl_base): Add field 'dispose_fn'.
84202         * lib/gl_list.c (gl_list_create_empty, gl_list_create): Add dispose_fn
84203         argument.
84204         * lib/gl_array_list.c (gl_array_create_empty, gl_array_create): Add
84205         dispose_fn argument.
84206         (gl_array_remove_node, gl_array_remove_at, gl_array_list_free): Call
84207         dispose_fn on the dropped values.
84208         * lib/gl_carray_list.c (gl_carray_create_empty, gl_carray_create): Add
84209         dispose_fn argument.
84210         (gl_carray_remove_at, gl_carray_list_free): Call dispose_fn on the
84211         dropped values.
84212         * lib/gl_anyavltree_list2.h (gl_tree_create): Add dispose_fn argument.
84213         (gl_tree_remove_node): Call dispose_fn on the dropped value.
84214         * lib/gl_anyrbtree_list2.h (gl_tree_create): Add dispose_fn argument.
84215         (gl_tree_remove_node): Call dispose_fn on the dropped value.
84216         * lib/gl_anytree_list2.h (gl_tree_create_empty): Add dispose_fn
84217         argument.
84218         (gl_tree_list_free): Call dispose_fn on the dropped values.
84219         * lib/gl_anytreehash_list2.h (gl_tree_list_free): Call dispose_fn on
84220         the dropped values.
84221         * lib/gl_anylinked_list2.h (gl_linked_create_empty, gl_linked_create):
84222         Add dispose_fn argument.
84223         (gl_linked_remove_node, gl_linked_remove_at, gl_linked_list_free):
84224         Call dispose_fn on the dropped values.
84225         * lib/gl_sublist.c (gl_sublist_create_empty, gl_sublist_create_fill):
84226         Add dispose_fn argument.
84227         (gl_sublist_create): Initialize the 'dispose_fn' field.
84228         * lib/clean-temp.c (create_temp_dir, register_fd): Update.
84229         * tests/test-array_list.c (main): Update.
84230         * tests/test-carray_list.c (main): Update.
84231         * tests/test-avltree_list.c (main): Update.
84232         * tests/test-rbtree_list.c (main): Update.
84233         * tests/test-avltreehash_list.c (main): Update.
84234         * tests/test-rbtreehash_list.c (main): Update.
84235         * tests/test-linked_list.c (main): Update.
84236         * tests/test-linkedhash_list.c (main): Update.
84237         * tests/test-array_oset.c (main): Update.
84239 2007-03-15  Bruno Haible  <bruno@clisp.org>
84241         * lib/gl_oset.h (gl_setelement_dispose_fn): New type.
84242         (gl_oset_create_empty): Add dispose_fn argument.
84243         (struct gl_oset_implementation): Add dispose_fn argument to
84244         'create_empty' method.
84245         (struct gl_oset_impl_base): Add dispose_fn field.
84246         * lib/gl_oset.c (gl_oset_create_empty): Add dispose_fn argument.
84247         * lib/gl_array_oset.c (gl_array_create_empty): Add dispose_fn argument.
84248         (gl_array_remove_at, gl_array_free): Call dispose_fn on the dropped
84249         values.
84250         * lib/gl_anytree_oset.h (gl_tree_create_empty): Add dispose_fn argument.
84251         (gl_tree_oset_free): Call dispose_fn on the dropped values.
84252         * lib/gl_avltree_oset.c (gl_tree_remove_node): Call dispose_fn on the
84253         dropped value.
84254         * lib/gl_rbtree_oset.c (gl_tree_remove_node): Call dispose_fn on the
84255         dropped value.
84256         * tests/test-array_oset.c (main): Update.
84257         * tests/test-avltree_oset.c (main): Update.
84258         * tests/test-rbtree_oset.c (main): Update.
84259         * lib/gl_anytreehash_list1.h (add_to_bucket): Update.
84261 2007-03-13  Bruno Haible  <bruno@clisp.org>
84263         * tests/test-stdbool.c (i): Update after last patch.
84265 2007-03-12  Bruno Haible  <bruno@clisp.org>
84267         * lib/quotearg.c: Include <wctype.h> early, before the definition of
84268         the iswprint macro. Needed on Solaris 2.5.1.
84270 2007-03-12  Bruno Haible  <bruno@clisp.org>
84272         * tests/test-printf-frexp.c (main): Declare x as volatile.
84274 2007-03-12  Simon Josefsson  <simon@josefsson.org>
84276         * doc/gnulib.texi (Build robot for gnulib): New section.
84278 2007-03-12  Jim Meyering  <jim@meyering.net>
84280         * build-aux/bootstrap: New file.
84281         * build-aux/bootstrap.conf: New file, from coreutils.
84283 2007-03-11  Bruno Haible  <bruno@clisp.org>
84285         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Require AC_C_INLINE.
84287 2007-03-12  Simon Josefsson  <simon@josefsson.org>
84289         * lib/des.h, lib/des.c, lib/gc-gnulib.c: Use gl_ namespace, to
84290         avoid collisions with 'des_setkey'.  Reported by Bruno Haible
84291         <bruno@clisp.org>.  Also change 'tripledes_' to '3des_'.
84293 2007-03-11  Bruno Haible  <bruno@clisp.org>
84295         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): If the test program fails to
84296         compile, set LOCALE_TR_UTF8 to 'none' instead of empty.
84298 2007-03-11  Bruno Haible  <bruno@clisp.org>
84300         * lib/stdint_.h (INT64_MIN, INTMAX_MIN): Avoid using the ~INT..._MAX
84301         formula. Needed for SunPRO C 5.0.
84303 2007-03-11  Bruno Haible  <bruno@clisp.org>
84305         * modules/long-options (Depends-on): Add getopt.
84307 2007-03-11  Bruno Haible  <bruno@clisp.org>
84309         * modules/modechange (Depends-on): Add stdbool.
84311 2007-03-11  Bruno Haible  <bruno@clisp.org>
84313         * modules/i-ring (Depends-on): Add stdbool.
84315 2007-03-11  Bruno Haible  <bruno@clisp.org>
84317         * modules/gc-des (Depends-on): Add stdbool.
84319 2007-03-11  Bruno Haible  <bruno@clisp.org>
84321         * m4/mktime.m4 (gl_PREREQ_MKTIME): Require AC_C_INLINE.
84323 2007-03-11  Bruno Haible  <bruno@clisp.org>
84325         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Require AC_C_RESTRICT.
84327 2007-03-11  Bruno Haible  <bruno@clisp.org>
84329         * lib/unistr/u32-mbtouc-unsafe.c (u32_mbtouc_unsafe): Fix syntax error.
84331 2007-03-11  Bruno Haible  <bruno@clisp.org>
84333         * lib/vasnprintf.c (sprintf): Undefine.
84335 2007-03-11  Bruno Haible  <bruno@clisp.org>
84337         * lib/isnan.c (rpl_isnan, rpl_isnanl): Work around bug regarding
84338         initializers in SunPRO C and Compaq C compilers.
84340 2007-03-11  Bruno Haible  <bruno@clisp.org>
84342         * lib/gl_array_oset.c (gl_array_iterator_next): Make pointer
84343         decrementing code ANSI C compliant.
84345 2007-03-11  Bruno Haible  <bruno@clisp.org>
84347         * lib/dummy.c [__sun]: Define a dummy variable, not just a typedef.
84348         Needed for Solaris 2.5.1 ranlib and SunPRO C 5.0.
84350 2007-03-11  Bruno Haible  <bruno@clisp.org>
84352         * tests/test-stdbool.c (s, d, e, xlcbug): Disable checks that gnulib's
84353         <stdbool.h> substitute doesn't pass.
84355 2007-03-11  Bruno Haible  <bruno@clisp.org>
84357         * lib/vasnprintf.c (snprintf): Undefine. Avoids an endless recursion.
84359 2007-03-11  Bruno Haible  <bruno@clisp.org>
84361         * gnulib-tool (func_create_megatestdir): Create also an autobuild
84362         script, for submission to autobuild.josefsson.org.
84364 2007-03-10  Bruno Haible  <bruno@clisp.org>
84366         * modules/canonicalize-lgpl-tests: New file.
84367         * tests/test-canonicalize-lgpl.sh: New file.
84368         * tests/test-canonicalize-lgpl.c: New file.
84370         * modules/c-strcase-tests: New file.
84371         * tests/test-c-strcase.sh: New file.
84372         * tests/test-c-strcasecmp.c: New file.
84373         * tests/test-c-strncasecmp.c: New file.
84375         * modules/atexit-tests: New file.
84376         * tests/test-atexit.sh: New file.
84377         * tests/test-atexit.c: New file.
84379 2007-03-10  Bruno Haible  <bruno@clisp.org>
84381         * tests/test-binary-io.sh: Use temporary filenames that are not so
84382         likely to clash with those of other tests (in a parallel make).
84383         * tests/test-binary-io.c: Likewise.
84385 2007-03-10  Bruno Haible  <bruno@clisp.org>
84387         * lib/fseterr.c (fseterr): Port to Solaris/SPARC64. Deactivate the
84388         fallback; use #error instead.
84389         Suggested by Simon Josefsson.
84391 2007-03-10  Bruno Haible  <bruno@clisp.org>
84393         * gnulib-tool (func_create_testdir): Treat MOSTLYCLEANFILES like
84394         CLEANFILES. Put spaces in each line of $cleaned_files, not only the
84395         first and the last.
84397 2007-03-10  Bruno Haible  <bruno@clisp.org>
84399         * lib/stdint_.h (uint_least64_t): Fix typo in last patch.
84401 2007-03-10  Bruno Haible  <bruno@clisp.org>
84403         * modules/snprintf-posix-tests (EXTRA_DIST): New variable. Needed for
84404         "make distcheck".
84405         * modules/sprintf-posix-tests (EXTRA_DIST): Likewise.
84406         * modules/vsnprintf-posix-tests (EXTRA_DIST): Likewise.
84407         * modules/vsprintf-posix-tests (EXTRA_DIST): Likewise.
84409 2007-03-10  Bruno Haible  <bruno@clisp.org>
84411         * modules/allocsa-tests (test_allocsa_SOURCES): Remove redundant
84412         variable.
84413         * modules/dirname-tests (test_dirname_SOURCES): Remove redundant
84414         variable.
84416 2007-03-09  Eric Blake  <ebb9@byu.net>
84417         and Matthew Woehlke  <mw_triad@users.sourceforge.net>  (tiny change)
84419         * lib/stdint_.h (int64_t, uint64_t): Don't undefine if 64-bit
84420         types are not being provided by gnulib.
84421         (GL_INT64_T, GL_UINT64_T): New witnesses of whether gnulib 64-bit
84422         types are supported.
84424 2007-03-10  Bruno Haible  <bruno@clisp.org>
84426         * lib/stdio_.h (__attribute__): New macro.
84427         (fprintf, vfprintf, printf, vprintf, snprintf, vsnprintf, sprintf,
84428         vsprintf): Specify __attribute__ __format__ for GCC.
84429         Suggested by Eric Blake.
84431 2007-03-09  Bruno Haible  <bruno@clisp.org>
84433         * modules/printf-posix-tests: New file.
84434         * tests/test-printf-posix.sh: New file.
84435         * tests/test-printf-posix.c: New file.
84437         * modules/printf-posix: New file.
84438         * lib/printf.c: New file.
84439         * m4/printf-posix-rpl.m4: New file.
84440         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_PRINTF_POSIX,
84441         REPLACE_PRINTF.
84442         * lib/stdio_.h (printf): New declaration.
84443         (format, __format__, ____printf____, ____scanf____, ____strftime____,
84444         ____strfmon____): New macros.
84445         * modules/stdio (Makefile.am): Substitute also GNULIB_PRINTF_POSIX,
84446         REPLACE_PRINTF.
84448 2007-03-09  Bruno Haible  <bruno@clisp.org>
84450         * tests/test-vasnprintf-posix2.sh: New file.
84451         * tests/test-vasnprintf-posix2.c: New file.
84452         * modules/vasnprintf-posix-tests (Files): Add them and m4/locale-fr.m4.
84453         (configure.ac): Invoke gt_LOCALE_FR and gt_LOCALE_FR_UTF8.
84454         (Makefile.am): Activate test-vasnprintf-posix2.sh.
84456         * lib/vasnprintf.c (VASNPRINTF): For the 'a' and 'A' directives, use
84457         a locale dependent decimal point, rather than always '.'.
84459 2007-03-09  Eric Blake  <ebb9@byu.net>
84461         * lib/stdlib_.h (EXIT_FAILURE): GNU code expects this to be 1, in
84462         spite of platforms like Tandem/NSK that define it to -1.
84464 2007-03-08  Bruno Haible  <bruno@clisp.org>
84466         * modules/vprintf-posix-tests: New file.
84467         * tests/test-vprintf-posix.sh: New file.
84468         * tests/test-vprintf-posix.c: New file.
84469         * tests/test-printf-posix.h: New file.
84471         * modules/vprintf-posix: New file.
84472         * lib/vprintf.c: New file.
84473         * m4/vprintf-posix.m4: New file.
84474         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VPRINTF_POSIX,
84475         REPLACE_VPRINTF.
84476         * lib/stdio_.h (vprintf): New declaration.
84477         * modules/stdio (Makefile.am): Substitute also GNULIB_VPRINTF_POSIX,
84478         REPLACE_VPRINTF.
84480 2007-03-08  Bruno Haible  <bruno@clisp.org>
84482         * modules/fprintf-posix-tests: New file.
84483         * tests/test-fprintf-posix.sh: New file.
84484         * tests/test-fprintf-posix.c: New file.
84486         * modules/fprintf-posix: New file.
84487         * lib/fprintf.c: New file.
84488         * m4/fprintf-posix.m4: New file.
84489         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FPRINTF_POSIX,
84490         REPLACE_FPRINTF.
84491         * lib/stdio_.h (fprintf): New declaration.
84492         * modules/stdio (Makefile.am): Substitute also GNULIB_FPRINTF_POSIX,
84493         REPLACE_FPRINTF.
84495 2007-03-08  Bruno Haible  <bruno@clisp.org>
84497         * modules/vfprintf-posix-tests: New file.
84498         * tests/test-vfprintf-posix.sh: New file.
84499         * tests/test-vfprintf-posix.c: New file.
84500         * tests/test-fprintf-posix.h: New file.
84501         * tests/test-fprintf-posix.out: New file.
84503         * modules/vfprintf-posix: New file.
84504         * lib/vfprintf.c: New file.
84505         * m4/vfprintf-posix.m4: New file.
84506         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VFPRINTF_POSIX,
84507         REPLACE_VFPRINTF.
84508         * lib/stdio_.h (vfprintf): New declaration.
84509         * modules/stdio (Makefile.am): Substitute also GNULIB_VFPRINTF_POSIX,
84510         REPLACE_VFPRINTF.
84512 2007-03-08  Bruno Haible  <bruno@clisp.org>
84514         * lib/stdio_.h: Treat __need___FILE like __need_FILE.
84516 2007-03-08  Bruno Haible  <bruno@clisp.org>
84518         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Use 'case' statements
84519         instead of 'expr' invocations.
84520         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
84521         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
84522         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
84523         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
84524         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
84525         Suggested by Paul Eggert.
84527 2007-03-08  Bruno Haible  <bruno@clisp.org>
84529         * modules/fseterr-tests: New file.
84530         * tests/test-fseterr.c: New file.
84532         * modules/fseterr: New file.
84533         * lib/fseterr.h: New file.
84534         * lib/fseterr.c: New file.
84536 2007-03-08  Bruno Haible  <bruno@clisp.org>
84538         * lib/fnmatch_.h: Convert tabs in the middle of lines to spaces.
84539         * lib/getopt_.h: Likewise.
84540         * lib/mbswidth.h: Likewise.
84541         * lib/setenv.h: Likewise.
84542         * lib/vasnprintf.h: Likewise.
84543         * lib/vasprintf.h: Likewise.
84544         * lib/verror.h: Likewise.
84545         * lib/xsetenv.h: Likewise.
84546         * lib/xvasprintf.h: Likewise.
84548 2007-03-08  Jim Meyering  <jim@meyering.net>
84550         * users.txt: Add parted.
84552         * ChangeLog: Restore 1500 lines mistakenly removed from the end.
84554 2007-03-07  Bruno Haible  <bruno@clisp.org>
84556         * m4/printf.m4: Make the shell script snippets copy&pastable.
84558 2007-03-02  Bruno Haible  <bruno@clisp.org>
84560         * lib/netinet_in_.h: New file.
84561         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Test whether netinet/in.h
84562         is self-contained. Set ABSOLUTE_NETINET_IN_H, HAVE_NETINET_IN_H.
84563         * modules/netinet_in (Files): Add lib/netinet_in_.h.
84564         (Depends-on): Add absolute-header.
84565         (Makefile.am): Substitute ABSOLUTE_NETINET_IN_H, HAVE_NETINET_IN_H
84566         into netinet/in.h.
84568 2007-03-03  Bruno Haible  <bruno@clisp.org>
84570         * lib/sys_select_.h: New file.
84571         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SELECT): Test whether sys/select.h
84572         is self-contained. Set ABSOLUTE_SYS_SELECT_H, HAVE_SYS_SELECT_H.
84573         * modules/sys_select (Files): Add lib/sys_select_.h.
84574         (Depends-on): Add absolute-header.
84575         (Makefile.am): Substitute ABSOLUTE_SYS_SELECT_H, HAVE_SYS_SELECT_H
84576         into sys/select.h.
84578 2007-03-02  Bruno Haible  <bruno@clisp.org>
84580         * lib/socket_.h: If sys/socket.h exists, include that and <sys/types.h>
84581         before it. Turn HAVE_WINSOCK2_H and HAVE_WS2TCPIP_H into configute-time
84582         values.
84583         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Test also whether
84584         <sys/socket.h> is self-contained. Set ABSOLUTE_SYS_SOCKET_H,
84585         HAVE_SYS_SOCKET_H, HAVE_WINSOCK2_H, HAVE_WS2TCPIP_H.
84586         * modules/sys_socket (Depends-on): Add absolute-header.
84587         (Makefile.am): Substitute ABSOLUTE_SYS_SOCKET_H, HAVE_SYS_SOCKET_H,
84588         HAVE_WINSOCK2_H, HAVE_WS2TCPIP_H into sys/socket.h.
84589         (Include): Remove requirement of inclusion of <sys/types.h>.
84591 2007-03-02  Bruno Haible  <bruno@clisp.org>
84593         * lib/byteswap_.h (bswap_32): Fix formula.
84595 2007-03-06  Bruno Haible  <bruno@clisp.org>
84597         * modules/sprintf-posix-tests: New file.
84598         * tests/test-sprintf-posix.c: New file.
84600         * modules/sprintf-posix: New file.
84601         * lib/sprintf.c: New file.
84602         * m4/sprintf-posix.m4: New file.
84603         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_SPRINTF_POSIX,
84604         REPLACE_SPRINTF.
84605         * lib/stdio_.h (sprintf): New declaration.
84606         * modules/stdio (Makefile.am): Substitute also GNULIB_SPRINTF_POSIX,
84607         REPLACE_SPRINTF.
84609 2007-03-06  Bruno Haible  <bruno@clisp.org>
84611         * modules/vsprintf-posix-tests: New file.
84612         * tests/test-vsprintf-posix.c: New file.
84613         * tests/test-sprintf-posix.h: New file.
84615         * modules/vsprintf-posix: New file.
84616         * lib/vsprintf.c: New file.
84617         * m4/vsprintf-posix.m4: New file.
84618         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VSPRINTF_POSIX,
84619         REPLACE_VSPRINTF.
84620         * lib/stdio_.h (vsprintf): New declaration.
84621         * modules/stdio (Makefile.am): Substitute also GNULIB_VSPRINTF_POSIX,
84622         REPLACE_VSPRINTF.
84624 2007-03-06  Bruno Haible  <bruno@clisp.org>
84626         * modules/vsnprintf (Depend-on): Remove minmax.
84628 2007-03-06  Bruno Haible  <bruno@clisp.org>
84630         * modules/snprintf-posix-tests: New file.
84631         * tests/test-snprintf-posix.c: New file.
84633         * modules/snprintf-posix: New file.
84634         * m4/snprintf-posix.m4: New file.
84635         * m4/snprintf.m4 (gl_REPLACE_SNPRINTF): New macro, extracted from
84636         gl_FUNC_SNPRINTF.
84637         (gl_FUNC_SNPRINTF): Invoke it.
84638         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also REPLACE_SNPRINTF.
84639         * lib/stdio_.h (snprintf): Define as a replacement if REPLACE_SNPRINTF
84640         is set.
84641         * modules/stdio (Makefile.am): Substitute also REPLACE_SNPRINTF.
84643 2007-03-06  Bruno Haible  <bruno@clisp.org>
84645         * modules/vsnprintf-posix-tests: New file.
84646         * tests/test-vsnprintf-posix.c: New file.
84647         * tests/test-snprintf-posix.h: New file.
84649         * modules/vsnprintf-posix: New file.
84650         * m4/vsnprintf-posix.m4: New file.
84651         * m4/vsnprintf.m4 (gl_REPLACE_VSNPRINTF): New macro, extracted from
84652         gl_FUNC_VSNPRINTF.
84653         (gl_FUNC_VSNPRINTF): Invoke it.
84654         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also REPLACE_VSNPRINTF.
84655         * lib/stdio_.h (vsnprintf): Define as a replacement if
84656         REPLACE_VSNPRINTF is set.
84657         * modules/stdio (Makefile.am): Substitute also REPLACE_VSNPRINTF.
84659 2007-03-06  Bruno Haible  <bruno@clisp.org>
84661         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): Test for vasnprintf here.
84662         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): ... not here.
84664 2007-03-06  Bruno Haible  <bruno@clisp.org>
84666         * lib/math_.h (acosl): Declare also if HAVE_DECL_ACOSL is set.
84667         (asinl): Declare also if HAVE_DECL_ASINL is set.
84668         (atanl): Declare also if HAVE_DECL_ATANL is set.
84669         (ceill): Declare also if HAVE_DECL_CEILL is set.
84670         (cosl): Declare also if HAVE_DECL_COSL is set.
84671         (expl): Declare also if HAVE_DECL_EXPL is set.
84672         (floorl): Declare also if HAVE_DECL_FLOORL is set.
84673         (frexpl): Declare also if HAVE_DECL_FREXPL is set.
84674         (ldexpl): Declare also if HAVE_DECL_LDEXPL is set.
84675         (logl): Declare also if HAVE_DECL_LOGL is set.
84676         (sinl): Declare also if HAVE_DECL_SINL is set.
84677         (sqrtl): Declare also if HAVE_DECL_SQRTL is set.
84678         (tanl): Declare also if HAVE_DECL_TANL is set.
84679         * modules/math (Makefile.am): Substitute the values of HAVE_DECL_*.
84680         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Set HAVE_DECL_* to 1.
84681         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Fix tests for the
84682         declaration of frexpl, ldexpl.
84683         * modules/printf-frexpl (Depends-on): Add math.
84684         * lib/printf-frexp.c (frexpl, ldexpl): Undo last change.
84686 2007-03-05  Bruno Haible  <bruno@clisp.org>
84688         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Also test whether
84689         frexpl and ldexpl are declared.
84690         * lib/printf-frexp.c (frexpl, ldexpl): Provide fallback declarations.
84692 2007-03-05  Bruno Haible  <bruno@clisp.org>
84694         * gnulib-tool (func_get_automake_snippet): Don't synthesize an
84695         EXTRA_lib_SOURCES augmentation for the relocatable-prog-wrapper module.
84697 2007-03-05  Bruno Haible  <bruno@clisp.org>
84699         * lib/stdio_.h: Include <stddef.h>.
84701 2007-03-05  Bruno Haible  <bruno@clisp.org>
84703         * m4/printf.m4 (gl_SNPRINTF_DIRECTIVE_N): New macro.
84705 2007-03-05  Bruno Haible  <bruno@clisp.org>
84707         * m4/printf.m4: Update with info about OpenBSD 3.9, HP-UX 10.20,
84708         NetBSD 4, from Ralf Wildenhues.
84710 2007-03-04  Bruno Haible  <bruno@clisp.org>
84712         * lib/vasprintf.h: Update #if logic for the case when the functions
84713         exist but are overridden.
84715 2007-03-04  Bruno Haible  <bruno@clisp.org>
84717         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Exclude two buggy
84718         implementations: glibc-2.4 and MacOS X 10.3.
84719         * tests/test-vasnprintf-posix.c (test_function): Test also the case
84720         that exhibits the bugs in glibc-2.4 and MacOS X 10.3.
84721         * tests/test-vasprintf-posix.c (test_function): Likewise.
84723 2007-03-04  Bruno Haible  <bruno@clisp.org>
84725         * modules/vasprintf-posix-tests: New file.
84726         * tests/test-vasprintf-posix.c: New file.
84728         * modules/vasprintf-posix: New file.
84729         * lib/vasprintf.h (asprintf, vasprintf): Rename if REPLACE_VASPRINTF is
84730         defined.
84731         * m4/vasprintf-posix.m4: New file.
84732         * m4/vasprintf.m4 (gl_REPLACE_VASPRINTF): New macro, extracted from
84733         gl_FUNC_VASPRINTF.
84734         (gl_FUNC_VASPRINTF): Invoke it.
84735         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): Define REPLACE_VASNPRINTF
84736         here.
84737         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Not here.
84739 2007-03-04  Bruno Haible  <bruno@clisp.org>
84741         * lib/sys_time_.h: Rename GETTIMEOFDAY_REPLACEMENT to
84742         REPLACE_GETTIMEOFDAY.
84743         * modules/sys_time (Makefile.am): Likewise.
84744         * m4/sys_time_h.m4: Likewise.
84745         * m4/gettimeofday.m4: Likewise.
84747 2007-03-04  Bruno Haible  <bruno@clisp.org>
84749         * modules/vasnprintf-posix-tests: New file.
84750         * tests/test-vasnprintf-posix.c: New file.
84752         * modules/vasnprintf-posix: New file.
84753         * lib/vasnprintf.c: Include isnan.h, isnanl.h, printf-frexp.h,
84754         printf-frexpl.h.
84755         (VASNPRINTF): Handle the 'a' and 'A' directives here, if needed.
84756         * lib/vasnprintf.h (asnprintf, vasnprintf): Rename if
84757         REPLACE_VASNPRINTF is defined.
84758         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): New macro, extracted from
84759         gl_FUNC_VASNPRINTF.
84760         (gl_FUNC_VASNPRINTF): Invoke it.
84761         * m4/vasnprintf-posix.m4: New file.
84762         * m4/printf.m4: New file.
84764 2007-03-04  Bruno Haible  <bruno@clisp.org>
84766         Compile progreloc.c only if --enable-relocatable is specified.
84767         * m4/relocatable.m4 (gl_RELOCATABLE): Arrange to compile progreloc.c
84768         if --enable-relocatable was specified.
84769         * modules/relocatable-prog (Makefile.am): Remove progreloc.c from
84770         lib_SOURCES.
84772 2007-03-04  Jim Meyering  <jim@meyering.net>
84774         * lib/acl.c (ACL_NOT_WELL_SUPPORTED): New macro.
84775         Use it consistently, rather than enumerating errno constants.
84777 2007-03-04  Bruno Haible  <bruno@clisp.org>
84779         * modules/xvasprintf-tests: New file.
84780         * tests/test-xvasprintf.c: New file.
84782         * modules/vasprintf-tests: New file.
84783         * tests/test-vasprintf.c: New file.
84785         * modules/vasnprintf-tests: New file.
84786         * tests/test-vasnprintf.c: New file.
84788         * modules/vsnprintf-tests: New file.
84789         * tests/test-vsnprintf.c: New file.
84791         * modules/snprintf-tests: New file.
84792         * tests/test-snprintf.c: New file.
84794 2007-03-04  Bruno Haible  <bruno@clisp.org>
84796         Compile relocatable.c only if --enable-relocatable is specified.
84797         * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY_BODY): Renamed from
84798         gl_RELOCATABLE_LIBRARY.
84799         (gl_RELOCATABLE_LIBRARY, gl_RELOCATABLE_LIBRARY_SEPARATE): New macros.
84800         * m4/relocatable.m4 (gl_RELOCATABLE): Invoke gl_RELOCATABLE_LIBRARY.
84801         (gl_RELOCATABLE_BODY): Require gl_RELOCATABLE_LIBRARY_BODY instead of
84802         gl_RELOCATABLE_LIBRARY.
84803         * modules/relocatable-lib (configure.ac): Invoke gl_RELOCATABLE_LIBRARY.
84804         (Makefile.am): Remove lib_SOURCES.
84805         * modules/relocatable-lib-lgpl (configure.ac): Invoke
84806         gl_RELOCATABLE_LIBRARY.
84807         (Makefile.am): Remove lib_SOURCES.
84808         * modules/relocatable-prog (Makefile.am): Don't compile relocatable.c
84809         always.
84810         * modules/relocatable-prog-wrapper (configure.ac): Invoke
84811         gl_RELOCATABLE_LIBRARY_SEPARATE instead of gl_RELOCATABLE_LIBRARY.
84813 2007-03-04  Bruno Haible  <bruno@clisp.org>
84815         * modules/argmatch-tests: New file.
84816         * tests/test-argmatch.c: New file.
84818         * tests/test-allocsa.c (main): Halve the number of loop runs.
84820         * modules/alloca-opt-tests: New file.
84821         * tests/test-alloca-opt.c: New file.
84823 2007-03-04  Jim Meyering  <jim@meyering.net>
84825         Work around difference between Linux ACLs and Solaris 10 ZFS.
84826         * lib/acl.c (set_acl): Revert to using chmod_or_fchmod also
84827         for EINVAL.
84829 2007-03-03  Bruno Haible  <bruno@clisp.org>
84831         * modules/relocatable-prog (Depends-on): Add back progreloc's
84832         dependencies: canonicalize-lgpl, xalloc, xreadlink, stdbool, unistd.
84834 2007-03-03  Bruno Haible  <bruno@clisp.org>
84836         * modules/relocatable-lib-lgpl: Renamed from modules/relocatable-lib.
84837         * modules/relocatable-lib: New file.
84839 2007-03-03  Bruno Haible  <bruno@clisp.org>
84841         * modules/relocatable-prog: Renamed from modules/relocatable.
84842         * doc/relocatable-maint.texi: Talk about module 'relocatable-prog'.
84844 2007-03-03  Bruno Haible  <bruno@clisp.org>
84846         * modules/relocatable-script (Files): Add doc/relocatable.texi,
84847         m4/relocatable-lib.m4.
84848         (Depends-on): Remove 'relocatable'.
84849         (configure.ac): Add gl_RELOCATABLE_NOP.
84851 2007-03-03  Bruno Haible  <bruno@clisp.org>
84853         * modules/relocatable-prog-wrapper: New file.
84854         * modules/relocatable (Depends-on): Add it. Remove all other
84855         dependencies except progname.
84856         (Files): Remove build-aux/install-reloc, lib/relocwrapper.c.
84858         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): New macro.
84859         (gl_FUNC_STRERROR): Nop.
84860         * lib/strerror.c: Compile the file only if !HAVE_STRERROR.
84862         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): New macro.
84863         * lib/setenv.c: Compile the file only if _LIBC || !HAVE_SETENV.
84865         * m4/readlink.m4 (gl_FUNC_READLINK_SEPARATE): New macro.
84866         (gl_FUNC_READLINK): Update.
84868         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL_SEPARATE): New macro.
84870 2007-03-03  Bruno Haible  <bruno@clisp.org>
84872         * lib/xreadlink.c: Include <unistd.h> unconditionally.
84873         * modules/xreadlink (Depends-on): Add unistd.
84874         * modules/xreadlink-with-size (Depends-on): Likewise.
84876 2007-03-03  Bruno Haible  <bruno@clisp.org>
84878         * m4/setenv.m4 (gl_FUNC_SETENV, gl_FUNC_UNSETENV): New macros,
84879         extracted from gt_FUNC_SETENV.
84880         (gt_FUNC_SETENV): Remove macro.
84881         * modules/setenv (configure.ac): Add gl_FUNC_SETENV, gl_FUNC_UNSETENV,
84882         remove gt_FUNC_SETENV.
84884 2007-03-03  Bruno Haible  <bruno@clisp.org>
84886         * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY): Define
84887         ENABLE_RELOCATABLE here.
84888         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): Don't define it here.
84890 2007-03-03  Bruno Haible  <bruno@clisp.org>
84892         * modules/rbtreehash-list-tests (Depends-on): Add progname.
84893         * tests/test-rbtreehash_list.c: Include progname.h.
84894         (main): Call set_program_name.
84896         * modules/rbtree-oset-tests (Depends-on): Add progname.
84897         * tests/test-rbtree_oset.c: Include progname.h.
84898         (main): Call set_program_name.
84900         * modules/rbtree-list-tests (Depends-on): Add progname.
84901         * tests/test-rbtree_list.c: Include progname.h.
84902         (main): Call set_program_name.
84904         * modules/linked-list-tests (Depends-on): Add progname.
84905         * tests/test-linked_list.c: Include progname.h.
84906         (main): Call set_program_name.
84908 2007-03-03  Bruno Haible  <bruno@clisp.org>
84910         * lib/glob-libc.h (_Restrict_): New macro, copied from lib/regex.h.
84911         All uses of __restrict changed to _Restrict_.
84912         * lib/glob_.h (__restrict): Remove macro.
84914 2007-03-02  Bruno Haible  <bruno@clisp.org>
84916         * modules/gettext (configure.ac): Require gettext infrastructure
84917         from version 0.16.1.
84919 2007-03-02  Bruno Haible  <bruno@clisp.org>
84921         * modules/linkedhash-list-tests (Depends-on): Add progname.
84922         * tests/test-linkedhash_list.c: Include progname.h.
84923         (main): Call set_program_name.
84925         * modules/carray-list-tests (Depends-on): Add progname.
84926         * tests/test-carray_list.c: Include progname.h.
84927         (main): Call set_program_name.
84929         * modules/avltreehash-list-tests (Depends-on): Add progname.
84930         * tests/test-avltreehash_list.c: Include progname.h.
84931         (main): Call set_program_name.
84933         * modules/avltree-oset-tests (Depends-on): Add progname.
84934         * tests/test-avltree_oset.c: Include progname.h.
84935         (main): Call set_program_name.
84937         * modules/avltree-list-tests (Depends-on): Add progname.
84938         * tests/test-avltree_list.c: Include progname.h.
84939         (main): Call set_program_name.
84941         * modules/array-oset-tests (Depends-on): Add progname.
84942         * tests/test-array_oset.c: Include progname.h.
84943         (main): Call set_program_name.
84945         * modules/array-list-tests (Depends-on): Add progname.
84946         * tests/test-array_list.c: Include progname.h.
84947         (main): Call set_program_name.
84949         * modules/argp-tests (Depends-on): Add progname.
84950         * tests/test-argp.c: Include argp.h first. Include progname.h.
84951         (main): Call set_program_name.
84953 2007-03-02  Paul Eggert  <eggert@cs.ucla.edu>
84955         * doc/gnulib-tool.texi (Initial import): Reword description of
84956         _FILE_OFFSET_BITS and _GNU_SOURCE, since they sometimes have a
84957         limited effect even if defined after the first system include.
84959 2007-03-01  Bruno Haible  <bruno@clisp.org>
84961         * build-aux/config.libpath: Update to libtool-1.5.22.
84962         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
84964 2007-03-01  Bruno Haible  <bruno@clisp.org>
84966         * doc/relocatable-maint.texi: Recommend to set foo_CPPFLAGS, not
84967         foo_CFLAGS.
84968         Reported by Ralf Wildenhues.
84970 2007-03-01  Bruno Haible  <bruno@clisp.org>
84972         * build-aux/install-reloc: Remove object files left over by some
84973         compilers.
84974         Reported by Ralf Wildenhues.
84976 2007-03-01  Bruno Haible  <bruno@clisp.org>
84978         * build-aux/install-reloc: Break long lines.
84980 2007-03-01  Bruno Haible  <bruno@clisp.org>
84982         * doc/relocatable.texi: Document that it may not work on OpenBSD.
84983         Reported by Ralf Wildenhues.
84985 2007-03-01  Bruno Haible  <bruno@clisp.org>
84987         * doc/gnulib-tool.texi (Initial import): Remove paragraph about
84988         include ordering constraints.
84990 2007-03-01  Paul Eggert  <eggert@cs.ucla.edu>
84992         Followup to the 2007-02-12 patch, using suggestions from Bruno Haible in
84993         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00136.html>.
84994         * doc/gnulib-tool.texi (Initial import): Mention _FILE_OFFSET_BITS
84995         as another example.
84996         * lib/time_.h: Fix misspelling.
84997         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
84998         Require gl_HEADER_TIME_H_DEFAULTS.
84999         * m4/strptime.m4 (gl_FUNC_STRPTIME): Likewise.
85000         * m4/time_r.m4 (gl_TIME_R): Likewise.
85001         * m4/timegm.m4 (gl_FUNC_TIMEGM): Likewise.
85003 2007-03-01  Bruno Haible  <bruno@clisp.org>
85005         * m4/utimecmp.m4 (gl_UTIMECMP): Don't require gl_TIMESPEC.
85006         * m4/utimens.m4 (gl_UTIMENS): Likewise.
85008 2007-03-01  Jim Meyering  <jim@meyering.net>
85010         * modules/xreadlink (Maintainer): Add my name.
85011         * modules/xreadlink-with-size (Depends-on): Alphabetize.
85013 2007-02-26  Ben Pfaff  <blp@cs.stanford.edu>
85014             Bruno Haible  <bruno@clisp.org>
85016         * build-aux/install-reloc: Compile also c-ctype.c.
85017         * build-aux/relocatable.sh.in: New file.
85018         * doc/relocatable.texi: New file.
85019         * doc/relocatable-maint.texi: New file.
85020         * doc/gnulib.texi: Include relocatable-maint.texi.
85021         * lib/progreloc.c: Include unistd.h unconditionally.
85022         * lib/relocwrapper.c: Include unistd.h unconditionally.
85023         Include c-ctype.h.
85024         (add_dotbin): Use c_tolower.
85025         * m4/relocatable-lib.m4: New file, extracted from m4/relocatable.m4.
85026         (gl_RELOCATABLE_LIBRARY): Renamed from AC_RELOCATABLE_LIBRARY.
85027         (gl_RELOCATABLE_NOP): Renamed from AC_RELOCATABLE_NOP.
85028         * m4/relocatable.m4 (AC_RELOCATABLE_LIBRARY, AC_RELOCATABLE_NOP): Move
85029         to m4/relocatable-lib.m4.
85030         (gl_RELOCATABLE): Renamed from AC_RELOCATABLE. Set also
85031         RELOCATABLE_CONFIG_H_DIR, RELOCATABLE_SRC_DIR, RELOCATABLE_BUILD_DIR.
85032         (gl_RELOCATABLE_BODY): Renamed from AC_RELOCATABLE_BODY. Don't
85033         require obsolete macro AC_EXEEXT. Don't check for unistd.h. Don't set
85034         SET_RELOCATABLE. Instead set RELOCATABLE_LDFLAGS, INSTALL_PROGRAM_ENV.
85035         * modules/relocatable: New file.
85036         * modules/relocatable-lib: New file.
85037         * modules/relocatable-script: New file.
85039 2007-02-28  Bruno Haible  <bruno@clisp.org>
85041         Import --enable-relocatable infrastructure.
85042         * build-aux/config.libpath: New file, from GNU gettext.
85043         * build-aux/install-reloc: New file, from GNU gettext.
85044         * build-aux/reloc-ldflags: New file, from GNU gettext.
85045         * lib/relocatable.h: New file, from GNU gettext.
85046         * lib/relocatable.c: New file, from GNU gettext.
85047         * lib/relocwrapper.c: New file, from GNU gettext.
85048         * m4/relocatable.m4: New file, from GNU gettext.
85050 2007-02-28  Bruno Haible  <bruno@clisp.org>
85052         * MODULES.html.sh (File system functions): Add xreadlink-with-size.
85054         * modules/xreadlink: New file, from GNU gettext with modifications.
85055         * lib/xreadlink.c: New file, from GNU gettext.
85056         * lib/xreadlink.h: Add comments.
85057         (xreadlink): New declaration.
85059         * modules/xreadlink-with-size: Renamed from modules/xreadlink.
85060         (Files): Remove m4/xreadlink.m4. Replace lib/xreadlink.c with
85061         lib/xreadlink-with-size.c.
85062         (configure.ac): Remove gl_XREADLINK invocation.
85063         (Makefile.am): Augment lib_SOURCES.
85064         * m4/xreadlink.m4: Remove file.
85065         * lib/xreadlink-with-size.c: Renamed from lib/xreadlink.c.
85066         (xreadlink_with_size): Renamed from xreadink.
85067         * lib/xreadlink.h (xreadlink_with_size): Renamed from xreadink.
85068         * modules/canonicalize (Depends-on): Replace xreadlink with
85069         xreadlink-with-size.
85070         * lib/canonicalize.c (canonicalize_filename_mode): Update.
85072 2007-02-25  Jim Meyering  <jim@meyering.net>
85074         * build-aux/announce-gen: When complaining about excess arguments,
85075         list them.
85077 2007-02-25  Paul Eggert  <eggert@cs.ucla.edu>
85079         * README: Document signed integer overflow situation more
85080         accurately.
85082 2007-02-25  Bruno Haible  <bruno@clisp.org>
85084         * lib/vasnprintf.c (VASNPRINTF): Fix estimate of size needed for a
85085         'a' or 'A' conversion.
85087 2007-02-25  Bruno Haible  <bruno@clisp.org>
85089         * modules/filename: Renamed from modules/pathname.
85090         (Files): Replace lib/pathname.h with lib/filename.h. Replace
85091         lib/concatpath.c with lib/concat-filename.c.
85092         (Makefile.am): Update.
85093         (Include): Replace pathname.h with filename.h.
85094         * lib/filename.h: Renamed from lib/pathname.h.
85095         (concatenated_filename): Renamed from concatenated_pathname.
85096         * lib/concat-filename.c: Renamed from lib/concatpath.c.
85097         (concatenated_filename): Renamed from concatenated_pathname.
85098         * lib/findprog.c: Include filename.h instead of pathname.h.
85099         (find_in_path): Update.
85100         * lib/javacomp.c: Include filename.h instead of pathname.h.
85101         (is_envjavac_gcj43_usable, is_envjavac_oldgcj_14_14_usable,
85102         is_envjavac_oldgcj_14_13_usable, is_envjavac_nongcj_usable,
85103         is_gcj_present, is_gcj43_usable, is_oldgcj_14_14_usable,
85104         is_oldgcj_14_13_usable, is_javac_usable): Update.
85105         * lib/javaexec.c: Include filename.h instead of pathname.h.
85106         (execute_java_class): Update.
85107         * modules/findprog: Update.
85108         * modules/javacomp: Update.
85109         * modules/javaexec: Update.
85110         * MODULES.html.sh (File system functions): Add 'filename', remove
85111         'pathname'.
85113 2007-02-25  Bruno Haible  <bruno@clisp.org>
85115         * modules/printf-frexpl-tests: New file.
85116         * tests/test-printf-frexpl.c: New file.
85118         * modules/printf-frexpl: New file.
85119         * lib/printf-frexpl.h: New file.
85120         * lib/printf-frexpl.c: New file.
85121         * m4/printf-frexpl.m4: New file.
85123 2007-02-25  Bruno Haible  <bruno@clisp.org>
85125         * modules/printf-frexp-tests: New file.
85126         * tests/test-printf-frexp.c: New file.
85128         * modules/printf-frexp: New file.
85129         * lib/printf-frexp.h: New file.
85130         * lib/printf-frexp.c: New file.
85131         * m4/printf-frexp.m4: New file.
85133 2007-02-25  Bruno Haible  <bruno@clisp.org>
85135         Assume automake >= 1.10 for the tests.
85136         * modules/arcfour-tests (TESTS): Remove $(EXEEXT) suffix.
85137         * modules/arctwo-tests: Likewise.
85138         * modules/argp-tests: Likewise.
85139         * modules/avltree-list-tests: Likewise.
85140         * modules/avltree-oset-tests: Likewise.
85141         * modules/avltreehash-list-tests: Likewise.
85142         * modules/carray-list-tests: Likewise.
85143         * modules/crc-tests: Likewise.
85144         * modules/des-tests: Likewise.
85145         * modules/gc-arcfour-tests: Likewise.
85146         * modules/gc-arctwo-tests: Likewise.
85147         * modules/gc-des-tests: Likewise.
85148         * modules/gc-hmac-md5-tests: Likewise.
85149         * modules/gc-hmac-sha1-tests: Likewise.
85150         * modules/gc-md2-tests: Likewise.
85151         * modules/gc-md4-tests: Likewise.
85152         * modules/gc-md5-tests: Likewise.
85153         * modules/gc-pbkdf2-sha1-tests: Likewise.
85154         * modules/gc-rijndael-tests: Likewise.
85155         * modules/gc-sha1-tests: Likewise.
85156         * modules/gc-tests: Likewise.
85157         * modules/getaddrinfo-tests: Likewise.
85158         * modules/hmac-md5-tests: Likewise.
85159         * modules/hmac-sha1-tests: Likewise.
85160         * modules/linked-list-tests: Likewise.
85161         * modules/linkedhash-list-tests: Likewise.
85162         * modules/lock-tests: Likewise.
85163         * modules/md2-tests: Likewise.
85164         * modules/md4-tests: Likewise.
85165         * modules/md5-tests: Likewise.
85166         * modules/rbtree-list-tests: Likewise.
85167         * modules/rbtree-oset-tests: Likewise.
85168         * modules/rbtreehash-list-tests: Likewise.
85169         * modules/read-file-tests: Likewise.
85170         * modules/rijndael-tests: Likewise.
85171         * modules/stdint-tests: Likewise.
85172         * modules/tls-tests: Likewise.
85174 2007-02-24  Bruno Haible  <bruno@clisp.org>
85176         * lib/isnanl.h (isnanl): Define through isnan if isnan is a macro.
85177         * m4/isnan.m4 (gl_FUNC_ISNAN_NO_LIBM): Don't check for isnan as a
85178         function; instead check whether isnan with a double argument links.
85179         * m4/isnanl.m4 (gl_FUNC_ISNANL_NO_LIBM): Don't check for isnanl as a
85180         function; instead check whether isnan with a 'long double' argument
85181         links.
85182         Reported by Eric Blake <ebb9@byu.net>.
85184 2007-02-24  Bruno Haible  <bruno@clisp.org>
85186         * lib/isnan.c: Support the 'long double' case if USE_LONG_DOUBLE is
85187         defined.
85188         * lib/isnanl.c: Remove all code. Just include isnan.c.
85189         * modules/isnanl-nolibm (Files): Add lib/isnan.c.
85191 2007-02-25  Jim Meyering  <jim@meyering.net>
85193         Avoid conflicting types for 'unsetenv' on FreeBSD.
85194         * lib/putenv.c (_unsetenv): Rename from "unsetenv", to avoid
85195         conflicting with FreeBSD's (5.0 and 6.1) function declaration
85196         in stdlib.h.
85198 2007-02-24  Bruno Haible  <bruno@clisp.org>
85200         * modules/isnanl-nolibm-tests: New file.
85201         * tests/test-isnanl.c: New file.
85203         * modules/isnanl-nolibm: New file.
85204         * lib/isnanl.h: New file.
85205         * lib/isnanl.c: New file.
85206         * m4/isnanl.m4: New file.
85208 2007-02-24  Bruno Haible  <bruno@clisp.org>
85210         * modules/isnan-nolibm-tests: New file.
85211         * tests/test-isnan.c: New file.
85213         * modules/isnan-nolibm: New file.
85214         * lib/isnan.h: New file.
85215         * lib/isnan.c: New file.
85216         * m4/isnan.m4: New file.
85218 2007-02-24  Bruno Haible  <bruno@clisp.org>
85220         * lib/frexpl.c (frexpl): Correct return values for x = 1.0L. Don't
85221         assume that an exponent fits in 20 bits.
85223 2007-02-24  Jim Meyering  <jim@meyering.net>
85225         * m4/regex.m4: Update the description of the configure-time option,
85226         --without-included-regex, to state accurately what the defaults are,
85227         and perhaps to give people an idea why using this option is risky.
85229 2007-02-24  Paul Eggert  <eggert@cs.ucla.edu>
85231         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Check for a nanosleep that
85232         loops on small arguments.  This attempts to avoid the problem
85233         Bruno Haible reported for AIX 4.3.2 in
85234         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00309.html>.
85236 2007-02-23  Bruno Haible  <bruno@clisp.org>
85238         * m4/perl.m4 (gl_PERL): Require version 5.005, not 5.003.
85239         Needed for help2man.
85241 2007-02-23  Karl Berry  <karl@gnu.org>
85243         * doc/gnulib-tool.texi (CVS Issues): mention that when foo_.h
85244         exists, foo.h should be cvs-ignored, not committed.
85246 2007-02-23  Eric Blake  <ebb9@byu.net>
85248         * lib/getdate.h (includes):  Include <time.h>, not "timespec.h".
85249         * lib/stat-time.h (includes): Likewise.
85250         * lib/utimecmp.c (includes): Likewise.
85251         * lib/utimens.h (includes): Likewise.
85252         * lib/getdate.y (includes): Also include "timespec.h" for use
85253         internal to the module.
85254         * modules/utimens (Depends-on): Revert yesterday's patch.
85255         * modules/nanosleep (Depends-on): Add missing dependency.
85257 2007-02-22  Bruno Haible  <bruno@clisp.org>
85259         * lib/glob.c: Don't include getlogin_r.h.
85261 2007-02-22  Jim Meyering  <jim@meyering.net>
85263         * modules/utimens (Depends-on): Add timespec, required for
85264         utimens.h's inclusion of timespec.h.
85266 2007-02-21  Paul Eggert  <eggert@cs.ucla.edu>
85268         * lib/getcwd.c (__getcwd): Undo previous change; it mishandled
85269         long unreadable paths in GNU/Linux.  Problem reported by Andreas
85270         Schwab in
85271         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00261.html>.
85272         I'll try to think of a better way to fix the Solaris problem.
85274         * lib/getcwd.c (__getcwd): Don't assume getcwd (NULL, 0) works
85275         like glibc; on Solaris 10, it fails with errno == EINVAL.
85276         POSIX says the behavior is unspecified if the first argument is NULL,
85277         so play it safe and never pass NULL to the system getcwd.
85279 2007-02-21  Jim Meyering  <jim@meyering.net>
85281         * lib/gettimeofday.c (rpl_gettimeofday): Remove declaration
85282         of gettimeofday.  It would conflict with the one now always
85283         provided via sys_time_.h.  Reported by Matthew Woehlke, as
85284         an IRIX 6.5 build failure.
85286 2007-02-20  Paul Eggert  <eggert@cs.ucla.edu>
85288         Minor fixups to port to Solaris 10 with Sun C 5.8.
85289         * lib/getcwd.c [!_LIBC]: Include dirfd.h, since we use dirfd.
85290         * modules/getcwd (Depends-on): Add dirfd.
85291         * lib/putenv.c (putenv): #undef it.
85292         (rpl_putenv): New decl.
85293         (malloc, free): Include <stdlib.h> rather than prototyping separately.
85295 2007-02-20  Bruno Haible  <bruno@clisp.org>
85297         * modules/stdio-tests: New file.
85298         * tests/test-stdio.c: New file.
85300         * modules/vsnprintf (Files): Remove lib/vsnprintf.h.
85301         (Depends-on): Add stdio.
85302         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
85303         (Include): Use <stdio.h> instead of vsnprintf.h.
85304         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Require gl_STDIO_H_DEFAULTS. Set
85305         HAVE_DECL_VSNPRINTF.
85306         * lib/vsnprintf.c: Include <stdio.h> instead of vsnprintf.h.
85308         * modules/snprintf (Files): Remove lib/snprintf.h.
85309         (Depends-on): Add stdio.
85310         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
85311         (Include): Use <stdio.h> instead of snprintf.h.
85312         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Require gl_STDIO_H_DEFAULTS. Set
85313         HAVE_DECL_SNPRINTF.
85314         * lib/snprintf.c: Include <stdio.h> instead of snprintf.h.
85315         * lib/getaddrinfo.c: Likewise.
85317         * modules/stdio: New file.
85318         * lib/stdio_.h: New file, incorporating snprintf.h and vsnprintf.h.
85319         * lib/snprintf.h: Remove file.
85320         * lib/vsnprintf.h: Remove file.
85321         * lib/.cppi-disable: Remove snprintf.h.
85322         * m4/stdio_h.m4: New file.
85323         * MODULES.html.sh (Support for systems lacking ISO C 99): Add stdio.
85325 2007-02-20  Jim Meyering  <jim@meyering.net>
85327         * lib/ftruncate.c [HAVE_CHSIZE]: Document that this code is
85328         used by e.g., mingw.  From Bruno Haible.
85330 2007-02-19  Bruno Haible  <bruno@clisp.org>
85332         * lib/string_.h: Use "#pragma GCC system_header" to suppress some gcc
85333         warnings.
85334         Reported by Ben Pfaff <blp@cs.stanford.edu>.
85336 2007-02-19  Bruno Haible  <bruno@clisp.org>
85338         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Don't request a complaint mail
85339         from mingw users.
85341 2007-02-19  Bruno Haible  <bruno@clisp.org>
85343         * lib/stdlib_.h: Use "#pragma GCC system_header" to suppress some gcc
85344         warnings.
85345         Reported by Joel E. Denny <jdenny@ces.clemson.edu> via Paul Eggert.
85347 2007-02-19  Jim Meyering  <jim@meyering.net>
85349         Don't use FD after a successful "fdopendir (fd)".
85350         * lib/getcwd.c (__getcwd) [AT_FDCWD]: fdopendir (fd) usually closes fd.
85351         Reset it by calling dirfd on the just-obtained DIR*.
85353         * m4/ftruncate.m4: Adjust comment to give this module a 3-year reprieve.
85354         Prompted by a report from Bruno Haible that mingw lacks ftruncate.
85356 2007-02-18  Bruno Haible  <bruno@clisp.org>
85358         * lib/readlink.c: Include <unistd.h>.
85359         * m4/readlink.m4 (gl_FUNC_READLINK): Require gl_UNISTD_H_DEFAULTS. Set
85360         HAVE_READLINK.
85361         * modules/readlink (Depends-on): Add unistd.
85362         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
85363         (Include): Add <unistd.h>.
85365         * lib/getlogin_r.h: Remove file.
85366         * lib/getlogin_r.c: Include <unistd.h> instead of getlogin_r.h.
85367         * m4/getlogin_r.m4 (gl_GETLOGIN_R_SUBSTITUTE): Remove macro.
85368         (gl_GETLOGIN_R): Inline it here. Require gl_UNISTD_H_DEFAULTS. Set
85369         HAVE_DECL_GETLOGIN_R.
85370         * modules/getlogin_r (Files): Remove lib/getlogin_r.h.
85371         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
85372         (Include): Use <unistd.h> instead of getlogin_r.h.
85374         * lib/getcwd.h: Remove file.
85375         * lib/getcwd.c: Include <unistd.h> instead of getcwd.h.
85376         * lib/xgetcwd.c: Likewise.
85377         * m4/getcwd.m4 (gl_FUNC_GETCWD): Require gl_UNISTD_H_DEFAULTS. Set
85378         REPLACE_GETCWD. Don't define __GETCWD_PREFIX.
85379         * modules/getcwd (Files): Remove lib/getcwd.h.
85380         (Depends-on): Add unistd.
85381         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
85382         (Include): Use <unistd.h> instad of getcwd.h.
85384         * lib/ftruncate.c: Include <unistd.h> first.
85385         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Require gl_UNISTD_H_DEFAULTS.
85386         Set HAVE_FTRUNCATE.
85387         * modules/ftruncate (Depends-on): Add unistd.
85388         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
85390         * lib/fchdir.c: Include <unistd.h> first.
85391         * lib/dirent_.h: Test REPLACE_FCHDIR, not FCHDIR_REPLACEMENT.
85392         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_UNISTD_H_DEFAULTS instead
85393         of gl_HEADER_UNISTD_DEFAULTS. Set REPLACE_FCHDIR. Don't set UNISTD_H.
85394         * modules/fchdir (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
85395         (Makefile.am): Substitute also REPLACE_FCHDIR into dirent.h.
85397         * lib/dup2.c: Include <unistd.h> first.
85398         * m4/dup2.m4 (gl_FUNC_DUP2): Require gl_UNISTD_H_DEFAULTS. Set
85399         HAVE_DUP2.
85400         * modules/dup2 (Depends-on): Add unistd.
85401         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
85403         * lib/chown.c: Include <unistd.h> first. Undefine chown later.
85404         * m4/chown.m4 (gl_FUNC_CHOWN): Require gl_UNISTD_H_DEFAULTS. Set
85405         REPLACE_CHOWN. Don't define chown as a macro here.
85406         * modules/chown (Depends-on): Add unistd.
85407         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
85409         * lib/unistd_.h: Test HAVE_UNISTD_H determined at configure time.
85410         Add definition for GL_LINK_WARNING.
85411         (chown, dup2): New declarations.
85412         (fchdir): Test REPLACE_FCHDIR, not FCHDIR_REPLACEMENT. Provide optional
85413         link warning.
85414         (ftruncate): New declaration.
85415         (getcwd): New declaration, taken from old getcwd.h.
85416         (getlogin_r): New declaration, taken from old getlogin_r.h.
85417         (readlink): New declaration.
85418         * m4/unistd_h.m4 (gl_UNISTD_H): Renamed from gl_HEADER_UNISTD. Don't
85419         set UNISTD_H. Inline gl_PREREQ_UNISTD. Set HAVE_UNISTD_H.
85420         (gl_PREREQ_UNISTD): Remove macro.
85421         (gl_UNISTD_MODULE_INDICATOR): New macro.
85422         (gl_UNISTD_H_DEFAULTS): Renamed from gl_HEADER_UNISTD_DEFAULTS. Set
85423         many new variables. Don't set UNISTD_H.
85424         * modules/unistd (Description): Change.
85425         (Depends-on): Add link-warning.
85426         (configure.ac): Update.
85427         (Makefile.am): Create unistd.h always. Substitute many new variables
85428         into it.
85430 2007-02-18  Bruno Haible  <bruno@clisp.org>
85432         * lib/stdlib_.h (getsubopt): New declaration, copied from getsubopt.h.
85433         * modules/stdlib (stdlib.h): Also substitute GNULIB_GETSUBOPT and
85434         HAVE_GETSUBOPT.
85435         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Also initialize
85436         GNULIB_GETSUBOPT and HAVE_GETSUBOPT.
85437         * lib/getsubopt.h: Remove file.
85438         * modules/getsubopt (Files): Remove lib/getsubopt.h.
85439         (Depends-on): Add stdlib.
85440         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
85441         (Includes): Use <stdlib.h> instead of getsubopt.h.
85442         * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Require gl_STDLIB_H_DEFAULTS.
85443         Set HAVE_GETSUBOPT.
85444         * lib/getsubopt.c: Don't include getsubopt.h.
85446 2007-02-18  Bruno Haible  <bruno@clisp.org>
85448         * modules/fchdir (Depends-on): Add dup2.
85450 2007-02-18  Bruno Haible  <bruno@clisp.org>
85452         * lib/stdlib_.h: Handle glibc's special invocation convention
85453         specially.
85455 2007-02-18  Bruno Haible  <bruno@clisp.org>
85457         * modules/stdlib-tests: New file.
85458         * tests/test-stdlib.c: New file.
85460         * modules/mkstemp (Files): Remove lib/mkstemp.h.
85461         (Depends-on): Add stdlib.
85462         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
85463         (Includes): Use <stdlib.h> instead of mkstemp.h.
85464         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Require gl_STDLIB_H_DEFAULTS. Set
85465         REPLACE_MKSTEMP. Remove definition of __MKSTEMP_PREFIX.
85466         * lib/mkstemp.c: Don't include mkstemp.h.
85467         * lib/mkstemp-safer.c: Include <stdlib.h> instead of mkstemp.h.
85468         * lib/stdlib--.h: Don't include mkstemp.h.
85470         * modules/mkdtemp (Files): Remove lib/mkdtemp.h.
85471         (Depends-on): Add stdlib.
85472         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
85473         (Includes): Use <stdlib.h> instead of mkdtemp.h.
85474         * m4/mkdtemp.m4 (gt_FUNC_MKDTEMP): Require gl_STDLIB_H_DEFAULTS. Set
85475         HAVE_MKDTEMP.
85476         * lib/mkdtemp.c: Don't include mkdtemp.h.
85477         * lib/clean-temp.c: Don't include mkdtemp.h.
85479         * modules/exit (Files): Remove lib/exit.h.
85480         (Depends-on): Add stdlib.
85481         (Makefile.am): Remove lib_SOURCES.
85482         (Include): Use <stdlib.h> instead of exit.h.
85483         * lib/argmatch.c: Don't include exit.h.
85484         * lib/execute.c: Likewise.
85485         * lib/pagealign_alloc.c: Likewise.
85486         * lib/pipe.c: Likewise.
85487         * lib/wait-process.c: Likewise.
85488         * lib/copy-file.c: Include <stdlib.h> instead of exit.h.
85489         * lib/exitfail.c: Likewise.
85490         * lib/savewd.c: Likewise.
85491         * lib/xsetenv.c: Likewise.
85493         * modules/stdlib: New file.
85494         * lib/stdlib_.h: New file, incorporating exit.h, mkdtemp.h, mkstemp.h
85495         and extra comments about mkstemp().
85496         * lib/exit.h: Remove file.
85497         * lib/mkdtemp.h: Remove file.
85498         * lib/mkstemp.h: Remove file.
85499         * m4/stdlib_h.m4: New file.
85500         * MODULES.html.sh (Support for systems lacking ANSI C 89): Add stdlib.
85502 2007-02-18  Bruno Haible  <bruno@clisp.org>
85504         * modules/math-tests: New file.
85505         * tests/test-math.c: New file.
85507         * modules/math: New file.
85508         * modules/mathl (Files): Remove lib/mathl.h.
85509         (Depends-on): Add math.
85510         (Makefile.am): Don't mention mathl.h.
85511         (Include): Use <math.h> instead of mathl.h.
85512         * lib/math_.h: New file.
85513         * lib/mathl.h: Remove file.
85514         * lib/acosl.c: Include <config.h> and <math.h> first. Don't include
85515         mathl.h.
85516         * lib/asinl.c: Likewise.
85517         * lib/atanl.c: Likewise.
85518         * lib/ceill.c: Likewise.
85519         * lib/cosl.c: Likewise.
85520         * lib/expl.c: Likewise.
85521         * lib/floorl.c: Likewise.
85522         * lib/frexpl.c: Likewise.
85523         * lib/ldexpl.c: Likewise.
85524         * lib/logl.c: Likewise.
85525         * lib/sincosl.c: Likewise.
85526         * lib/sinl.c: Likewise.
85527         * lib/sqrtl.c: Likewise.
85528         * lib/tanl.c: Likewise.
85529         * lib/trigl.c: Likewise.
85530         * m4/math_h.m4: New file.
85531         * MODULES.html.sh (Mathematics): Add math.
85533 2007-02-17  Bruno Haible  <bruno@clisp.org>
85535         * modules/wctype-tests: New file.
85536         * tests/test-wctype.c: New file.
85538         * modules/wchar-tests: New file.
85539         * tests/test-wchar.c: New file.
85541         * modules/unistd-tests: New file.
85542         * tests/test-unistd.c: New file.
85544         * modules/time-tests: New file.
85545         * tests/test-time.c: New file.
85547         * modules/sysexits-tests: New file.
85548         * tests/test-sysexits.c: New file.
85550         * modules/sys_time-tests: New file.
85551         * tests/test-sys_time.c: New file.
85553         * modules/sys_stat-tests: New file.
85554         * tests/test-sys_stat.c: New file.
85556         * modules/sys_socket-tests: New file.
85557         * tests/test-sys_socket.c: New file.
85559         * modules/sys_select-tests: New file.
85560         * tests/test-sys_select.c: New file.
85562         * modules/string-tests: New file.
85563         * tests/test-string.c: New file.
85565         * modules/stdbool-tests: New file.
85566         * tests/test-stdbool.c: New file.
85568         * modules/netinet_in-tests: New file.
85569         * tests/test-netinet_in.c: New file.
85571         * modules/inttypes-tests: New file.
85572         * tests/test-inttypes.c: New file.
85574         * modules/fcntl-tests: New file.
85575         * tests/test-fcntl.c: New file.
85577         * modules/byteswap-tests: New file.
85578         * tests/test-byteswap.c: New file.
85580         * modules/arpa_inet-tests: New file.
85581         * tests/test-arpa_inet.c: New file.
85583 2007-02-17  Bruno Haible  <bruno@clisp.org>
85585         * lib/inttypes_.h: Add definition for GL_LINK_WARNING.
85586         (imaxabs, imaxdiv, strtoimax, strtoumax): Don't declare the function
85587         if the corresponding module is not enabled. Emit link warnings if
85588         the function is used nevertheless.
85589         * m4/inttypes.m4 (gl_INTTYPES_H): Never use the existing <inttypes.h>.
85590         Don't AC_SUBST HAVE_DECL_IMAXABS, HAVE_DECL_IMAXDIV,
85591         HAVE_DECL_STRTOIMAX, HAVE_DECL_STRTOUMAX.
85592         (gl_INTTYPES_MODULE_INDICATOR, gl_INTTYPES_H_DEFAULTS): New macros.
85593         * modules/inttypes (Depends-on): Add link-warning.
85594         (Makefile.am): Copy the contents of build-aux/link-warning.h into
85595         inttypes.h. Substitute also GNULIB_IMAXABS, GNULIB_IMAXDIV,
85596         GNULIB_STRTOIMAX, GNULIB_STRTOUMAX.
85597         * modules/imaxabs (configure.ac): Invoke gl_INTTYPES_MODULE_INDICATOR.
85598         * modules/imaxdiv (configure.ac): Likewise.
85599         * modules/strtoimax (configure.ac): Likewise.
85600         * modules/strtoumax (configure.ac): Likewise.
85602 2007-02-17  Bruno Haible  <bruno@clisp.org>
85604         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Include the contents of
85605         gl_STRING_MODULE_INDICATOR_DEFAULTS.
85606         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Remove macro.
85607         (gl_HEADER_STRING_H_BODY, gl_STRING_MODULE_INDICATOR): Update.
85609 2007-02-17  Bruno Haible  <bruno@clisp.org>
85611         * modules/link-warning: New file.
85612         * build-aux/link-warning.h: New file, extracted from lib/string_.h.
85613         * lib/string_.h (GL_LINK_WARNING): Remove definition.
85614         * modules/string (Depends-on): Add link-warning.
85615         (Makefile.am): Copy the contents of build-aux/link-warning.h into
85616         string.h.
85617         * MODULES.html.sh (Support for building libraries and executables): Add
85618         link-warning.
85620 2007-02-17  Bruno Haible  <bruno@clisp.org>
85622         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strcasecmp,
85623         strncasecmp, strchr, strchrnul, strdup, strndup, strnlen, strcspn,
85624         strpbrk, strspn, strrchr, strsep, strstr, strcasestr, strtok_r): Break
85625         long lines.
85627 2007-02-17  Ben Pfaff  <blp@cs.stanford.edu>
85628             Bruno Haible  <bruno@clisp.org>
85630         * modules/tmpfile: New file.
85631         * lib/tmpfile.c: New file.
85632         * m4/tmpfile.m4: New file.
85633         * MODULES.html.sh (func_all_modules): New section "Input/output".
85635 2007-02-15  Bruno Haible  <bruno@clisp.org>
85637         * lib/clean-temp.c [WIN32 && !CYGWIN]: Include <windows.h>.
85638         (supports_delete_on_close): New function.
85639         (open_temp, fopen_temp): Use _O_TEMPORARY when supported.
85641 2007-02-14  Bruno Haible  <bruno@clisp.org>
85643         * modules/mbspcasecmp-tests: New file.
85644         * tests/test-mbspcasecmp.sh: New file.
85645         * tests/test-mbspcasecmp.c: New file.
85647         New module mbspcasecmp.
85648         * modules/mbspcasecmp: New file.
85649         * lib/mbspcasecmp.c: New file.
85650         * lib/string_.h (strncasecmp): Change warning message.
85651         (mbspcasecmp): New declaration.
85652         * m4/mbspcasecmp.m4: New file.
85653         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
85654         GNULIB_MBSPCASECMP.
85655         * modules/string (string.h): Also substitute GNULIB_MBSPCASECMP.
85656         * MODULES.html.sh (Internationalization functions): Add mbspcasecmp.
85658 2007-02-14  Bruno Haible  <bruno@clisp.org>
85660         * modules/mbsncasecmp-tests: New file.
85661         * tests/test-mbsncasecmp.sh: New file.
85662         * tests/test-mbsncasecmp.c: New file.
85664         New module mbsncasecmp.
85665         * modules/mbsncasecmp: New file.
85666         * lib/mbsncasecmp.c: New file.
85667         * lib/string_.h (mbsncasecmp): New declaration.
85668         * m4/mbsncasecmp.m4: New file.
85669         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
85670         GNULIB_MBSNCASECMP.
85671         * modules/string (string.h): Also substitute GNULIB_MBSNCASECMP.
85672         * MODULES.html.sh (Internationalization functions): Add mbsncasecmp.
85674 2007-02-14  Paul Eggert  <eggert@cs.ucla.edu>
85676         * lib/exclude.c (FNM_EXTMATCH): Define if system does not.
85677         Verify that it doesn't overlap with our flags.
85678         (fnmatch_no_wildcards): Don't use strcasecmp or strncasecmp, which
85679         do not have the desired effect in multibyte locales; instead, use
85680         mbscasecmp.
85681         * modules/exclude (Depends-on): Depend on mbscasecmp, not strcase.
85682         Add dependency on xalloc.  Depend on fnmatch, not fnmatch-gnu, since
85683         we don't require GNU fnmatch ourselves (if our users require it, they
85684         should do so explicitly).
85686         Fix regex code so it doesn't rely on strcasecmp.
85687         * lib/regex_internal.h: Include <langinfo.h> only if _LIBC is defined.
85688         Otherwise, include gnulib's langinfo.h.
85689         * lib/regcomp.c (init_dfa): Don't use strcasecmp, as it can have
85690         undesirable behavior in non-C locales.  Instead, rely on localecharset.
85691         * m4/regex.m4 (gl_PREREQ_REGEX): Don't require AM_LANGINFO_CODESET.
85692         * modules/regex (FILES): Remove m4/codeset.m4.
85693         (Depends-on): Add localcharset.  Remove strcase.
85695 2007-02-13  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
85697         * m4/unlinkdir.m4 (gl_UNLINKDIR): Fix m4 quoting bug.
85698         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Likewise.
85700 2007-02-13  Bruno Haible  <bruno@clisp.org>
85702         * m4/intdiv0.m4 (gt_INTDIV0): Assume ANSI C. Fix underquoting bug.
85703         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
85705 2007-02-12  Bruno Haible  <bruno@clisp.org>
85707         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strchrnul,
85708         strdup, strndup, strnlen, strpbrk, strsep, strtok_r): If
85709         GNULIB_POSIXCHECK and the gnulib module not enabled, provoke a link-
85710         time warning rather than a link error.
85712 2007-02-12  Bruno Haible  <bruno@clisp.org>
85714         * m4/locale-fr.m4 (gt_LOCALE_FR): Fix m4 quoting bug.
85715         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
85716         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
85718 2007-02-12  Paul Eggert  <eggert@cs.ucla.edu>
85720         * lib/string_.h (strncasecmp): Fix typo: this macro takes 3
85721         args, not 2.
85723 2007-02-12  Paul Eggert  <eggert@cs.ucla.edu>
85725         New module 'time', so that apps can include <time.h> as per
85726         POSIX and GNU instead of separate include files like time_r.h
85727         and timegm.h.  This implementation tries out a simpler approach
85728         for replacing decls in standard include files (as compared to
85729         the string module), somewhat as an experiment.
85731         * config/srclist.txt: Comment out mktime.c for now.
85732         * doc/gnulib-tool.texi (Initial import): Don't use time_r as an example
85733         since it doesn't apply any more.  Use generic wording instead.
85734         * MODULES.html.sh (Support for systems lacking POSIX:2001): New module
85735         'time'.
85736         * lib/time_.h, m4/time_h.m4, modules/time: New files.
85737         * lib/strptime.h, lib/time_r.h, lib/timegm.h: Remove.
85738         * lib/mktime.c: Include config.h depending on _LIBC, not HAVE_CONFIG_H.
85739         Don't include <sys/types.h>; no longer needed since we assume C89.
85740         * lib/mktime.c: Don't include "time_r.h"; no longer needed.
85741         * lib/strftime.c: Likewise.
85742         * lib/time_r.c: Likewise.
85743         * lib/nanosleep.c (nanosleep): #undef after include files, not before.
85744         * lib/nanosleep.c: Include <time.h> first, to check interface.
85745         * lib/strptime.c: Likewise.
85746         * lib/time_r.c: Likewise.
85747         * lib/timegm.c: Likewise.
85748         * lib/strptime.c: Don't include strptime.h or time_r.h; no longer
85749         needed.
85750         * lib/timegm.c: Don't include timegm.h; no longer needed.
85751         * lib/timespec.h: Don't include <sys/time.h> before <time.h>;
85752         time.h now handles any problems in that area.
85753         (struct timespec, nanosleep): Remove; time.h now arranges for these.
85754         * lib/xnanosleep.c: Don't include timespec.h; no longer needed now
85755         that time.h defines struct timespec.
85756         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Check that nanosleep is declared.
85757         Set REPLACE_NANOSLEEP.  Don't AC_DEFINE nanosleep; the time module now
85758         handles that.
85759         * m4/strptime.m4 (gl_FUNC_STPRTIME): Set REPLACE_STRPTIME.
85760         * m4/time_r.m4 (gl_TIME_R): Don't define HAVE_TIME_R_POSIX; no longer
85761         needed.  Set REPLACE_LOCALTIME.
85762         * m4/timegm.m4 (gl_FUNC_TIMEGM): Set REPLACE_TIMEGM.
85763         * m4/timespec.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Move to time_h.m4.
85764         (gl_TIMESPEC): Don't check for sys/time.h or struct timespec or
85765         nanosleep; time_h.m4 now does that.  Don't require
85766         gl_USE_SYSTEM_EXTENSIONS; no longer needed directly, and the time
85767         module handles this now.
85768         * modules/getdate (Depends-on): Remove timespec.  Add time.
85769         * modules/nanosleep (Depends-on): Likewise.
85770         * modules/stat-time (Depends-on): Likewise.
85771         * modules/nanosleep (Include): Include time.h, not timespec.h.
85772         * modules/strptime (Files): Remove lib/strptime.h.
85773         (Depends-on): Add extensions, time.
85774         (Include): Include time.h, not strptime.h.
85775         * modules/time_r (Files): Remove lib/time_r.h.
85776         (Depends-on): Add time.
85777         (Include): Include time.h, not time_r.h.
85778         * modules/timegm: Likewise.
85779         * modules/timespec (Description): Now does timespec-related decls
85780         of our own, instead of struct timespec itself.
85781         (Depends-on): Add time; remove extensions.
85782         (Maintainer): Add self.
85783         * modules/utimecmp (Depends-on): Add time; remove timespec.
85784         * modules/utimens (Depends-on): Likewise.
85785         * modules/xnanosleep (Depends-on): Likewise.
85787 2007-02-11  Bruno Haible  <bruno@clisp.org>
85789         * lib/c-strstr.c: Include allocsa.h.
85790         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
85791         * lib/c-strcasestr.c: Include allocsa.h.
85792         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
85793         * lib/strcasestr.c: Include allocsa.h.
85794         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
85795         * lib/mbsstr.c: Include allocsa.h.
85796         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): Use
85797         allocsa/freesa instead of malloc/free.
85798         * lib/mbscasestr.c: Include allocsa.h.
85799         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): Use
85800         allocsa/freesa instead of malloc/free.
85801         * modules/c-strstr (Depends-on): Add allocsa.
85802         * modules/c-strcasestr (Depends-on): Likewise.
85803         * modules/strcasestr (Depends-on): Likewise.
85804         * modules/mbsstr (Depends-on): Likewise.
85805         * modules/mbscasestr (Depends-on): Likewise.
85807 2007-02-11  Bruno Haible  <bruno@clisp.org>
85809         * lib/mbsspn.c (mbsspn): Fix bug. Remove unnecessary strlen call.
85811         * modules/mbsspn-tests: New file.
85812         * tests/test-mbsspn.sh: New file.
85813         * tests/test-mbsspn.c: New file.
85815 2007-02-11  Bruno Haible  <bruno@clisp.org>
85817         * lib/mbspbrk.c (mbspbrk): Remove unneeded cast.
85819         * modules/mbspbrk-tests: New file.
85820         * tests/test-mbspbrk.sh: New file.
85821         * tests/test-mbspbrk.c: New file.
85823 2007-02-11  Bruno Haible  <bruno@clisp.org>
85825         * lib/mbscspn.c (mbscspn): Remove unnecessary strlen call and
85826         unneeded cast.
85828         * modules/mbscspn-tests: New file.
85829         * tests/test-mbscspn.sh: New file.
85830         * tests/test-mbscspn.c: New file.
85832 2007-02-11  Bruno Haible  <bruno@clisp.org>
85834         * modules/mbscasecmp-tests: New file.
85835         * tests/test-mbscasecmp.sh: New file.
85836         * tests/test-mbscasecmp.c: New file.
85838 2007-02-11  Bruno Haible  <bruno@clisp.org>
85840         Ensure O(n) worst-case complexity of mbscasestr.
85841         * lib/mbscasestr.c: Include stdbool.h.
85842         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): New
85843         functions.
85844         (mbscasestr): Add some bookkeeping. Invoke knuth_morris_pratt_* when
85845         the bookkeeping indicates that it's worth it.
85846         * modules/mbscasestr (Depends-on): Add stdbool, mbslen, strnlen.
85848         * modules/mbscasestr-tests: New file.
85849         * tests/test-mbscasestr1.c: New file.
85850         * tests/test-mbscasestr2.sh: New file.
85851         * tests/test-mbscasestr2.c: New file.
85852         * tests/test-mbscasestr3.sh: New file.
85853         * tests/test-mbscasestr3.c: New file.
85854         * tests/test-mbscasestr4.sh: New file.
85855         * tests/test-mbscasestr4.c: New file.
85856         * m4/locale-tr.m4: New file.
85858 2007-02-11  Bruno Haible  <bruno@clisp.org>
85860         Ensure O(n) worst-case complexity of mbsstr.
85861         * lib/mbsstr.c: Include stdbool.h.
85862         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): New
85863         functions.
85864         (mbsstr): Add some bookkeeping. Invoke knuth_morris_pratt_* when the
85865         bookkeeping indicates that it's worth it.
85866         * modules/mbsstr (Depends-on): Add stdbool, mbslen, strnlen.
85868         * modules/mbsstr-tests: New file.
85869         * tests/test-mbsstr1.c: New file.
85870         * tests/test-mbsstr2.sh: New file.
85871         * tests/test-mbsstr2.c: New file.
85872         * tests/test-mbsstr3.sh: New file.
85873         * tests/test-mbsstr3.c: New file.
85874         * m4/locale-fr.m4: New file.
85876 2007-02-11  Bruno Haible  <bruno@clisp.org>
85878         * lib/mbsrchr.c (mbsrchr): Fix bug.
85880         * modules/mbsrchr-tests: New file.
85881         * tests/test-mbsrchr.sh: New file.
85882         * tests/test-mbsrchr.c: New file.
85884 2007-02-11  Bruno Haible  <bruno@clisp.org>
85886         * lib/mbschr.c (mbschr): Fix bug.
85888         * modules/mbschr-tests: New file.
85889         * tests/test-mbschr.sh: New file.
85890         * tests/test-mbschr.c: New file.
85891         * m4/locale-zh.m4: New file.
85893 2007-02-11  Bruno Haible  <bruno@clisp.org>
85895         Support for copying multibyte string iterators.
85896         * lib/mbiter.h: Include <string.h>.
85897         (mbiter_multi_copy): New function.
85898         (mbi_copy): New macro.
85899         * lib/mbuiter.h: Include <string.h>.
85900         (mbuiter_multi_copy): New function.
85901         (mbui_copy): New macro.
85903 2007-02-11  Bruno Haible  <bruno@clisp.org>
85905         New module mbslen.
85906         * modules/mbslen: New file.
85907         * lib/mbslen.c: New file.
85908         * lib/string_.h (mbslen): New declaration.
85909         * m4/mbslen.m4: New file.
85910         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
85911         GNULIB_MBSLEN.
85912         * modules/string (string.h): Also substitute GNULIB_MBSLEN.
85913         * MODULES.html.sh (Internationalization functions): Add mbslen.
85915 2007-02-11  Bruno Haible  <bruno@clisp.org>
85917         Ensure O(n) worst-case complexity of strcasestr substitute.
85918         * lib/strcasestr.c: Include stdbool.h.
85919         (knuth_morris_pratt): New function.
85920         (strcasestr): Add some bookkeeping. Invoke knuth_morris_pratt when the
85921         bookkeeping indicates that it's worth it.
85922         * modules/strcasestr (Depends-on): Add stdbool, strnlen.
85924         * modules/strcasestr-tests: New file.
85925         * tests/test-strcasestr.c: New file.
85927 2007-02-11  Bruno Haible  <bruno@clisp.org>
85929         Ensure O(n) worst-case complexity of c_strcasestr.
85930         * lib/c-strcasestr.c: Include stdbool.h, string.h.
85931         (knuth_morris_pratt): New function.
85932         (c_strcasestr): Add some bookkeeping. Invoke knuth_morris_pratt when
85933         the bookkeeping indicates that it's worth it.
85934         * modules/c-strcasestr (Depends-on): Add stdbool, strnlen.
85936         * modules/c-strcasestr-tests: New file.
85937         * tests/test-c-strcasestr.c: New file.
85939 2007-02-11  Bruno Haible  <bruno@clisp.org>
85941         Ensure O(n) worst-case complexity of c_strstr.
85942         * lib/c-strstr.c: Include stdbool.h, string.h.
85943         (knuth_morris_pratt): New function.
85944         (c_strstr): Add some bookkeeping. Invoke knuth_morris_pratt when the
85945         bookkeeping indicates that it's worth it.
85946         * modules/c-strstr (Depends-on): Add stdbool, strnlen.
85948         * lib/c-strstr.c: Complete rewrite for maintainability.
85950         * modules/c-strstr-tests: New file.
85951         * tests/test-c-strstr.c: New file.
85953 2007-02-11  Bruno Haible  <bruno@clisp.org>
85955         * m4/javacomp.m4 (gt_JAVACOMP): Work around a 'tr' bug in coreutils
85956         5.2.1 and earlier, whereby \055 was treated just like the range
85957         delimiter '-'.
85958         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
85960 2007-02-08  Bruno Haible  <bruno@clisp.org>
85962         * modules/regex (Depends-on): Add stdbool.
85963         Reported by Dalibor Topic <robilad@kaffe.org>.
85965 2007-02-05  Paul Eggert  <eggert@cs.ucla.edu>
85967         * m4/regex.m4 (gl_REGEX): Check for glibc bug #3957.
85968         Prefer returning from main to exiting from it.
85969         Remove unnecessary parens after sizeof.
85971 2007-02-05  Bruno Haible  <bruno@clisp.org>
85973         New module mbssep.
85974         * modules/mbssep: New file.
85975         * lib/mbssep.c: New file.
85976         * lib/string_.h (strsep): Add a conditional link warning.
85977         (mbssep): New declaration.
85978         * m4/mbssep.m4: New file.
85979         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
85980         GNULIB_MBSSEP.
85981         * modules/string (string.h): Also substitute GNULIB_MBSSEP.
85982         * MODULES.html.sh (Internationalization functions): Add mbssep.
85984 2007-02-05  Bruno Haible  <bruno@clisp.org>
85986         * lib/strsep.c (strsep): Fix actions in case of no delimiters.
85987         Optimize search in case of 1 delimiter.
85989 2007-02-05  Paolo Bonzini  <bonzini@gnu.org>
85991         * lib/acl.h: Include sys/types.h before sys/acl.h.
85993 2007-02-05  Paolo Bonzini  <bonzini@gnu.org>
85995         Merge upstream fix for glibc bugzilla #3957:
85997         2007-02-05  Jakub Jelinek  <jakub@redhat.com>
85999         * lib/regcomp.c (parse_bracket_exp): Set '\n' bit rather than '\0'
86000         bit for RE_HAT_LISTS_NOT_NEWLINE.
86001         (build_charclass_op): Remove bogus comment.
86003 2007-02-05  Simon Josefsson  <simon@josefsson.org>
86005         * lib/gc.h, lib/gc-libgcrypt.c: Support SHA-256/384/512.
86007 2007-02-04  Paul Eggert  <eggert@cs.ucla.edu>
86009         * lib/getsubopt.c [!_LIBC]: Include config.h and getsubopt.h.
86010         * lib/memmem.c [!defined _LIBC]: Include config.h.
86012 2007-02-04  Bruno Haible  <bruno@clisp.org>
86014         * lib/string_.h (GL_LINK_WARNING2): Put the word "warning:" into the
86015         warning message.
86017 2007-02-04  Bruno Haible  <bruno@clisp.org>
86019         New module mbstok_r.
86020         * modules/mbstok_r: New file.
86021         * lib/mbstok_r.c: New file.
86022         * lib/string_.h (strtok_r): Change argument names to match the
86023         comments. Add a conditional link warning.
86024         (mbstok_r): New declaration.
86025         * m4/mbstok_r.m4: New file.
86026         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
86027         GNULIB_MBSTOK_R.
86028         * modules/string (string.h): Also substitute GNULIB_MBSTOK_R.
86029         * MODULES.html.sh (Internationalization functions): Add mbstok_r.
86031 2007-02-04  Bruno Haible  <bruno@clisp.org>
86033         New module mbsspn.
86034         * modules/mbsspn: New file.
86035         * lib/mbsspn.c: New file.
86036         * lib/string_.h (strspn): Add a conditional link warning.
86037         (mbsspn): New declaration.
86038         * m4/mbsspn.m4: New file.
86039         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
86040         GNULIB_MBSSPN.
86041         * modules/string (string.h): Also substitute GNULIB_MBSSPN.
86042         * MODULES.html.sh (Internationalization functions): Add mbsspn.
86044 2007-02-04  Bruno Haible  <bruno@clisp.org>
86046         New module mbspbrk.
86047         * modules/mbspbrk: New file.
86048         * lib/mbspbrk.c: New file.
86049         * lib/string_.h (strpbrk): Add a conditional link warning.
86050         (mbspbrk): New declaration.
86051         * m4/mbspbrk.m4: New file.
86052         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
86053         GNULIB_MBSPBRK.
86054         * modules/string (string.h): Also substitute GNULIB_MBSPBRK.
86055         * MODULES.html.sh (Internationalization functions): Add mbspbrk.
86057 2007-02-04  Bruno Haible  <bruno@clisp.org>
86059         New module mbscspn.
86060         * modules/mbscspn: New file.
86061         * lib/mbscspn.c: New file.
86062         * lib/string_.h (strcspn): Add a conditional link warning.
86063         (mbscspn): New declaration.
86064         * m4/mbscspn.m4: New file.
86065         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
86066         GNULIB_MBSCSPN.
86067         * modules/string (string.h): Also substitute GNULIB_MBSCSPN.
86068         * MODULES.html.sh (Internationalization functions): Add mbscspn.
86070 2007-02-04  Bruno Haible  <bruno@clisp.org>
86072         New module mbscasestr, reduced goal of strcasestr.
86073         * modules/mbscasestr: New file.
86074         * lib/mbscasestr.c: New file, copied from lib/strcasestr.c.
86075         (mbscasestr): Renamed from strcasestr.
86076         * lib/strcasestr.c: Don't include mbuiter.h.
86077         (strcasestr): Remove support for multibyte locales.
86078         * lib/string_.h (strcasestr): Don`t rename. Declare only if missing.
86079         Change the conditional link warning.
86080         (mbscasestr): New declaration.
86081         * m4/mbscasestr.m4: New file.
86082         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Enable the replacement only if
86083         the system does not have strcasestr. Set HAVE_STRCASESTR instead of
86084         REPLACE_STRCASESTR.
86085         (gl_PREREQ_STRCASESTR): Don't require gl_FUNC_MBRTOWC.
86086         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
86087         HAVE_STRCASESTR instead of REPLACE_STRCASESTR.
86088         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize GNULIB_MBSCASESTR.
86089         * modules/string (string.h): Also substitute GNULIB_MBSCASESTR.
86090         Substitute HAVE_STRCASESTR instead of REPLACE_STRCASESTR.
86091         * modules/strcasestr (Files): Remove m4/mbrtowc.m4.
86092         (Depends-on): Remove mbuiter.
86093         * MODULES.html.sh (Internationalization functions): Add mbscasestr.
86095 2007-02-04  Bruno Haible  <bruno@clisp.org>
86097         Simplify handling of strncasecmp.
86098         * lib/string_.h (strncasecmp): Remove test for GNULIB_STRCASE. Change
86099         the conditional link warning.
86100         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
86101         HAVE_STRCASECMP, not REPLACE_STRCASECMP.
86102         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Don't initialize GNULIB_STRCASE.
86103         * modules/strcase (configure.ac): Don't invoke
86104         gl_STRING_MODULE_INDICATOR.
86105         * modules/string (string.h): Don't substitute GNULIB_STRCASE.
86107 2007-02-04  Bruno Haible  <bruno@clisp.org>
86109         New module mbscasecmp, reduced goal of strcasecmp.
86110         * modules/mbscasecmp: New file.
86111         * lib/mbscasecmp.c: New file, copied from lib/strcasecmp.c.
86112         (mbscasecmp): Renamed from strcasecmp.
86113         * lib/strcasecmp.c: Don't include mbuiter.h.
86114         (strcasecmp): Remove support for multibyte locales.
86115         * lib/string_.h (strcasecmp): Don`t rename. Declare only if missing.
86116         Change the conditional link warning.
86117         (mbscasecmp): New declaration.
86118         * m4/mbscasecmp.m4: New file.
86119         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Enable the replacement only if
86120         the system lacks strcasecmp. Set HAVE_STRCASECMP instead of
86121         REPLACE_STRCASECMP.
86122         (gl_PREREQ_STRCASECMP): Don't require gl_FUNC_MBRTOWC.
86123         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
86124         GNULIB_MBSCASECMP.
86125         * modules/string (string.h): Also substitute GNULIB_MBSCASECMP.
86126         Substitute HAVE_STRCASECMP instead of REPLACE_STRCASECMP.
86127         * modules/strcase (Files): Remove m4/mbrtowc.m4.
86128         (Depends-on): Remove mbuiter.
86129         * MODULES.html.sh (Internationalization functions): Add mbscasecmp.
86131 2007-02-04  Bruno Haible  <bruno@clisp.org>
86133         New module mbsstr. Remove module strstr.
86134         * modules/mbsstr: New file.
86135         * modules/strstr: Remove file.
86136         * lib/mbsstr.c: Renamed from lib/strstr.c.
86137         (mbsstr): Renamed from strstr.
86138         * lib/string_.h (strstr): Remove declaration. Change the conditional
86139         link warning.
86140         (mbsstr): New declaration.
86141         * m4/mbsstr.m4: New file.
86142         * m4/strstr.m4: Remove file.
86143         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Don't initialize
86144         REPLACE_STRSTR.
86145         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize GNULIB_MBSSTR.
86146         Don't initialize GNULIB_STRSTR.
86147         * modules/string (string.h): Also substitute GNULIB_MBSSTR. Don't
86148         substitute GNULIB_STRSTR and REPLACE_STRSTR.
86149         * MODULES.html.sh (Internationalization functions): Add mbsstr.
86150         (Support for systems lacking ANSI C 89): Remove strstr.
86152 2007-02-04  Bruno Haible  <bruno@clisp.org>
86154         New module mbsrchr.
86155         * modules/mbsrchr: New file.
86156         * lib/mbsrchr.c: New file.
86157         * lib/string_.h (strrchr): Add a conditional link warning.
86158         (mbsrchr): New declaration.
86159         * m4/mbsrchr.m4: New file.
86160         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
86161         GNULIB_MBSRCHR.
86162         * modules/string (string.h): Also substitute GNULIB_MBSRCHR.
86163         * MODULES.html.sh (Internationalization functions): Add mbsrchr.
86165 2007-02-04  Bruno Haible  <bruno@clisp.org>
86167         New module mbschr.
86168         * modules/mbschr: New file.
86169         * lib/mbschr.c: New file.
86170         * lib/string_.h (strchr): Add a conditional link warning.
86171         (mbschr): New declaration.
86172         * m4/mbschr.m4: New file.
86173         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
86174         GNULIB_MBSCHR.
86175         * modules/string (string.h): Also substitute GNULIB_MBSCHR.
86176         * MODULES.html.sh (Internationalization functions): Add mbschr.
86178 2007-02-04  Paul Eggert  <eggert@cs.ucla.edu>
86180         * lib/stdbool_.h: Mention that bool bit-fields aren't supported.
86182         * modules/stdarg (configure.ac-early): Require AC_PROG_CC_STDC.
86184 2007-02-04  Bruno Haible  <bruno@clisp.org>
86186         New module description section 'configure.ac-early'.
86187         * gnulib-tool (sed_extract_prog): Recognize configure.ac-early.
86188         (func_get_autoconf_early_snippet): New function.
86189         (func_import, func_create_testdir): Use it. Remove special cases for
86190         modules 'extensions' and 'lock'.
86191         * modules/extensions (configure.ac-early): Require
86192         gl_USE_SYSTEM_EXTENSIONS.
86193         * modules/lock (configure.ac-early): Require gl_LOCK_EARLY.
86195 2007-02-04  Bruno Haible  <bruno@clisp.org>
86197         Make use of gcj-4.3's -fsource and -ftarget option.
86198         * m4/javacomp.m4 (gt_JAVACOMP): Test whether gcj is in version >= 4.3,
86199         and if so try the options -fsource and -ftarget.
86200         * lib/javacomp.c (compile_using_gcj): Add fsource_option,
86201         source_version, ftarget_option, target_version arguments.
86202         (is_envjavac_gcj43, is_envjavac_gcj43_usable): New functions.
86203         (is_envjavac_oldgcj_14_14_usable): Renamed from
86204         is_envjavac_gcj_14_14_usable.
86205         (is_envjavac_oldgcj_14_13_usable): Renamed from
86206         is_envjavac_gcj_14_13_usable.
86207         (is_gcj_present): Update.
86208         (is_gcj_43, is_gcj43_usable): New functions.
86209         (is_oldgcj_14_14_usable): Renamed from is_gcj_14_14_usable. Update.
86210         (is_oldgcj_14_13_usable): Renamed from is_gcj_14_13_usable. Update.
86211         (compile_java_class): Test whether gcj is in version >= 4.3, and if so
86212         try the options -fsource and -ftarget.
86214 2007-02-03  Paul Eggert  <eggert@cs.ucla.edu>
86216         * lib/xalloc.h (x2nrealloc): Fix an unlikely bug in the overflow
86217         checking code.  Set N = ceil (1.5 * N) rather than to a slightly
86218         larger value.
86220 2007-02-03  Jim Meyering  <jim@meyering.net>
86222         Give tools a better chance to allocate space for very large buffers.
86223         * lib/xalloc.h (x2nrealloc): Use 3/2, not 2, as buffer size factor.
86225         Make pwd and readlink work also when run with an unreadable parent dir
86226         on systems with openat support.
86227         * lib/getcwd.c (__getcwd) [HAVE_PARTLY_WORKING_GETCWD]: Use the system
86228         provided getcwd function, even when we have openat support.
86229         Reported by Dmitry V. Levin in <http://bugzilla.redhat.com/227168>.
86231 2007-02-02  Bruno Haible  <bruno@clisp.org>
86233         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strchrnul,
86234         strdup, strndup, strnlen, strpbrk, strsep, strtok_r): Provoke a link
86235         error only if GNULIB_POSIXCHECK is defined. Needed to avoid artificial
86236         portability problems if one of these functions is only used on specific
86237         platforms.
86238         Reported by Paul Eggert.
86240 2007-02-02  Paul Eggert  <eggert@cs.ucla.edu>
86242         Avoid mempcpy in the regex code, as the string.h mempcpy stuff
86243         is causing more trouble than it's curing.
86244         * lib/regex_internal.h (__mempcpy): Remove.
86245         * lib/regcomp.c (regerror): Rewrite to avoid the need for mempcpy
86246         (and make the code a tad smaller to boot).
86247         * m4/regex.m4 (gl_PREREQ_REGEX): Don't check for mempcpy.
86249 2007-02-02  Jim Meyering  <jim@meyering.net>
86251         * modules/arpa_inet: Put AC_PROG_MKDIR_P in the configure.ac:
86252         section, not in the Makefile.am: one.
86254 2007-02-02  Eric Blake  <ebb9@byu.net>
86256         * lib/strchrnul.c: Always include config.h first.
86258         * modules/mountlist (Depends-on): Revert 2007-01-31 change,
86259         gnulib strstr is not necessary here.
86261 2007-02-02  Simon Josefsson  <simon@josefsson.org>
86263         * m4/socklen.m4: Fix typo.
86265 2007-02-02  Eric Blake  <ebb9@byu.net>
86267         * modules/arpa_inet (Makefile.am): Use MKDIR_P to avoid races.
86268         * modules/netinet_in (Makefile.am): Likewise.
86270 2007-02-01  Bruno Haible  <bruno@clisp.org>
86272         * lib/string_.h (GL_LINK_WARNING): New macro.
86273         (strcasecmp, strstr, strcasestr): If provided by the system,
86274         conditionally define as a macro that leads to a warning instead of to
86275         an error.
86276         (strncasecmp): Conditionally define as a macro that leads to a warning.
86278 2007-02-01  Karl Berry  <karl@gnu.org>
86280         * config/srclist.txt (strtok_r.c): lose sync, no more strtok_r.h.
86282 2007-02-01  Bruno Haible  <bruno@clisp.org>
86284         * MODULES.html.sh (Unicode string functions): Update after 2007-01-27
86285         renamings.
86287 2007-02-01  Eric Blake  <ebb9@byu.net>
86289         * modules/regex (Depends-on): Revert dependence on mempcpy.
86290         * lib/regex_internal.h [! _LIBC && !__mempcpy]: Undo string
86291         module's definition of mempcpy.
86292         Reported by Paul Eggert.
86294 2007-02-01  Paul Eggert  <eggert@cs.ucla.edu>
86296         * lib/string_.h: If the gnulib module XYZ is not present, undefine
86297         the symbol XYZ before redefining it.  This fixes a problem with
86298         programs that don't use XYZ, when compiled on systems that define
86299         XYZ to something else.
86301 2007-01-31  Paul Eggert  <eggert@cs.ucla.edu>
86303         * lib/mkdir-p.c (make_dir_parents): Close a race condition that
86304         occurs when "mkdir -m foo" creates a setgid directory that is (1)
86305         writeable to group or other and (2) is intended to have a special
86306         mode bit that is set or cleared.  In such a case, the directory
86307         should be neither group- nor other-writeable until the special
86308         mode bits are right.
86310 2007-01-31  Eric Blake  <ebb9@byu.net>
86312         * modules/mountlist (Depends-on): Add strstr.
86314         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Correct m4 usage
86315         bug.
86316         * modules/string (Makefile.am): Remove redundant replacement.
86317         * modules/regex (Depends-on): Add mempcpy.
86319 2007-01-31  Bruno Haible  <bruno@clisp.org>
86321         New module description field 'Link'.
86322         * gnulib-tool (func_usage): Document --extract-link-directive.
86323         (sed_extract_prog): Recognize 'Link' directive.
86324         (func_get_link_directive): New function.
86325         (func_import): Show summary of link directives.
86326         Handle --extract-link-directive option.
86327         * modules/acl (Link): New section.
86328         * modules/clock-time (Link): New section.
86329         * modules/euidaccess (Link): New section.
86330         * modules/gettext (Link): New section.
86331         * modules/iconv (Link): New section.
86332         * modules/lock (Link): New section.
86333         * modules/nanosleep (Link): New section.
86334         * modules/readline (Link): New section.
86336 2007-01-27  Bruno Haible  <bruno@clisp.org>
86338         Enforce the use of gnulib modules for unportable <string.h> functions.
86339         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): New macro.
86340         (gl_STRING_MODULE_INDICATOR_DEFAULTS): New macro.
86341         (gl_HEADER_STRING_H_BODY): Require it.
86342         * lib/string_.h: If the gnulib module XYZ is not present, redefine
86343         the symbol XYZ to one that gives a link error.
86344         * modules/string (Makefile.am): Also substitute the GNULIB_* variables.
86345         * modules/memmem (configure.ac): Invoke gl_STRING_MODULE_INDICATOR.
86346         * modules/mempcpy (configure.ac): Likewise.
86347         * modules/memrchr (configure.ac): Likewise.
86348         * modules/stpcpy (configure.ac): Likewise.
86349         * modules/stpncpy (configure.ac): Likewise.
86350         * modules/strcase (configure.ac): Likewise.
86351         * modules/strcasestr (configure.ac): Likewise.
86352         * modules/strchrnul (configure.ac): Likewise.
86353         * modules/strdup (configure.ac): Likewise.
86354         * modules/strndup (configure.ac): Likewise.
86355         * modules/strnlen (configure.ac): Likewise.
86356         * modules/strpbrk (configure.ac): Likewise.
86357         * modules/strsep (configure.ac): Likewise.
86358         * modules/strstr (configure.ac): Likewise.
86359         * modules/strtok_r (configure.ac): Likewise.
86361 2007-01-31  Jean-Louis Martineau  <martineau@zmanda.com>  (tiny change)
86363         * lib/gai_strerror.c (values): Add EAI_OVERFLOW.
86365 2007-01-30  Jim Meyering  <jim@meyering.net>
86367         * lib/mpsort.c (mpsort): Remove spurious "return" in void function.
86369 2007-01-29  Bruno Haible  <bruno@clisp.org>
86371         * lib/allocsa.h: Use '#if HAVE_*' instead of '#ifdef HAVE_*'.
86372         * lib/execute.c: Likewise.
86373         * lib/pipe.c: Likewise.
86374         * lib/printf-args.h: Likewise.
86375         * lib/printf-args.c: Likewise.
86376         * lib/printf-parse.c: Likewise.
86377         * lib/vasnprintf.c: Likewise.
86379 2007-01-29  Eric Blake  <ebb9@byu.net>
86381         * lib/memrchr.c: Assume <string.h> unconditionally, to pull in
86382         declaration.
86384 2007-01-29  Paul Eggert  <eggert@cs.ucla.edu>
86386         * lib/strptime.h (strptime): Use 'restrict' for args where
86387         POSIX requires this.
86388         * lib/strptime.c (strptime): Likewise.
86389         Change license notice from LGPL to GPL, since gnulib-tool will
86390         change this as needed.
86391         Include <config.h> if _LIBC is not defined, not if HAVE_CONFIG_H is
86392         defined.
86393         Include "strptime.h" first, to check interface.
86394         Do not #undef _LIBC and _NL_CURRENT.
86395         Do not include <stdlib.h>; no longer needed.
86396         Include "time_r.h" and declare ptime_locale_status
86397         only if _LIBC is not defined.
86398         (__P): Remove unused macro.
86399         (match_string): Bring back glibc version, but use it only if _LIBC
86400         is defined.
86401         (__strptime_internal): Compile tm_gmtoff code if _LIBC is defined, too.
86402         Remove unnecessary assertion and abort() call.
86403         Use #ifdef _NL_CURRENT rather than #if 0, for benefit of glibc.
86404         * m4/strptime.m4: Fix serial number comment.
86405         (gl_FUNC_STRPTIME): Require AC_C_RESTRICT, gl_TM_GMTOFF.
86406         * modules/strptime (Files): Add m4/tm_gmtoff.m4.
86407         (Depends-on): Add time_r.
86409 2007-01-29  Bruno Haible  <bruno@clisp.org>
86411         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
86412         strptime.
86413         * modules/strptime (Depends-on): Add stdbool.
86414         * lib/strptime.h: Include <time.h> always. Add comments.
86416 2007-01-29  Yoann Vandoorselaere  <yoann@prelude-ids.org>
86418         * modules/strptime: New file.
86419         * lib/strptime.h: New file.
86420         * lib/strptime.c: New file.
86421         * m4/strptime.m4: New file.
86423 2007-01-28  Paul Eggert  <eggert@cs.ucla.edu>
86425         * MODULES.html.sh: New module mpsort.
86426         * lib/mpsort.c, lib/mpsort.h, m4/mpsort.m4, modules/mpsort: New files.
86428         * lib/regex.h (_Restrict_): Renamed from __restrict, to avoid
86429         a circularity problem with HP-UX ia64 reported by Bob Proulx in
86430         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00394.html>.
86431         All uses changed.
86432         (_Restrict_arr_): Renamed from __restrict_arr, for similar reasons.
86433         All uses changed.
86434         * lib/regcomp.c, lib/regexec.c: Change all uses from __restrict
86435         to _Restrict_.
86436         * lib/regexec.c (regexec): Declare pmatch with _Restrict_arr_, so that
86437         the parameter matches the prototype.
86439 2007-01-28  Jim Meyering  <jim@meyering.net>
86441         * modules/sys_time (Makefile.am) [MOSTLYCLEANFILES]: Do use
86442         sys/time.h here, reverting that part of the previous patch:
86443         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/8959>.
86445 2007-01-28  Bruno Haible  <bruno@clisp.org>
86447         * modules/sys_time (Makefile.am): Build sys/time.h only when it's the
86448         value of $(SYS_TIME_H).
86449         [MOSTLYCLEANFILES]: Now that sys/time.h is created only when needed,
86450         remove it conditionally, too. [added by Jim Meyering]
86451         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Set SYS_TIME_H.
86452         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY):
86453         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Set SYS_TIME_H when setting
86454         GETTIMEOFDAY_REPLACEMENT to 1.
86456 2007-01-28  Bruno Haible  <bruno@clisp.org>
86458         * m4/unistd_h.m4 (gl_HEADER_UNISTD_DEFAULTS): New macro.
86459         (gl_HEADER_UNISTD): Require it. Don't set UNISTD_H to empty here.
86460         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_HEADER_UNISTD_DEFAULTS.
86461         Set UNISTD_H instead of UNISTD_H2.
86462         * modules/fchdir (BUILT_SOURCES): Drop $(UNISTD_H2).
86464 2007-01-28  Bruno Haible  <bruno@clisp.org>
86466         * modules/mbchar (Makefile.am): Add mbchar.c to lib_SOURCES.
86467         * m4/mbchar.m4 (gl_MBCHAR): Remove AC_LIBOBJ invocation.
86469 2007-01-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
86471         * gnulib-tool (func_emit_lib_Makefile_am, func_add_or_update)
86472         (func_create_testdir): Ensure C locale for `grep' and `tr'
86473         character ranges.
86474         (func_create_megatestdir): Avoid one `grep'.  Fix bug in
86475         ACLOCAL_AMFLAGS parsing state machine.
86477 2007-01-27  Bruno Haible  <bruno@clisp.org>
86479         * modules/unistr/base: Update.
86481 2007-01-27  Bruno Haible  <bruno@clisp.org>
86483         Rename u32-mbtouc -> u32-mbtouc-unsafe, u32-mbtouc-safe -> u32-mbtouc,
86484         u32_mbtouc -> u32_mbtouc_unsafe, u32_mbtouc_safe -> u32_mbtouc.
86485         * modules/unistr/u32-mbtouc-unsafe: Renamed from
86486         modules/unistr/u32-mbtouc.
86487         * lib/unistr/u32-mbtouc-unsafe.c: Renamed from lib/unistr/u32-mbtouc.c.
86488         * lib/unistr.h: Update.
86489         * lib/linebreak.c: Update.
86490         * modules/unistr/u32-mbtouc: Renamed from
86491         modules/unistr/u32-mbtouc-safe.
86492         * lib/unistr/u32-mbtouc.c: Renamed from lib/unistr/u32-mbtouc-safe.c.
86493         * lib/unistr.h: Update.
86494         * lib/unistr/u32-to-u8.c: Update.
86495         * lib/unistr/u32-to-u16.c: Update.
86497 2007-01-27  Bruno Haible  <bruno@clisp.org>
86499         Rename utf16-ucs4 -> utf16-ucs4-unsafe, utf16-ucs4-safe -> utf16-ucs4,
86500         u16_mbtouc -> u16_mbtouc_unsafe, u16_mbtouc_safe -> u16_mbtouc.
86501         * modules/utf16-ucs4-unsafe: Renamed from modules/utf16-ucs4.
86502         * lib/utf16-ucs4-unsafe.h: Renamed from lib/utf16-ucs4.h.
86503         * lib/unistr/utf16-ucs4-unsafe.c: Renamed from lib/unistr/utf16-ucs4.c.
86504         * modules/unistr/u16-mbtouc-unsafe: Renamed from
86505         modules/unistr/u16-mbtouc.
86506         * lib/unistr/u16-mbtouc-unsafe.c: Renamed from lib/unistr/u16-mbtouc.c.
86507         * lib/unistr.h: Update.
86508         * lib/linebreak.c: Update.
86509         * modules/linebreak: Update.
86510         * modules/utf16-ucs4: Renamed from modules/utf16-ucs4-safe.
86511         * lib/utf16-ucs4.h: Renamed from lib/utf16-ucs4-safe.h.
86512         * lib/unistr/utf16-ucs4.c: Renamed from lib/unistr/utf16-ucs4-safe.c.
86513         * modules/unistr/u16-mbtouc: Renamed from
86514         modules/unistr/u16-mbtouc-safe.
86515         * lib/unistr/u16-mbtouc.c: Renamed from lib/unistr/u16-mbtouc-safe.c.
86516         * lib/unistr.h: Update.
86517         * lib/unistr/u16-to-u8.c: Update.
86518         * modules/unistr/u16-to-u8: Update.
86519         * lib/unistr/u16-to-u32.c: Update.
86520         * modules/unistr/u16-to-u32: Update.
86522 2007-01-27  Bruno Haible  <bruno@clisp.org>
86524         Rename utf8-ucs4 -> utf8-ucs4-unsafe, utf8-ucs4-safe -> utf8-ucs4,
86525         u8_mbtouc -> u8_mbtouc_unsafe, u8_mbtouc_safe -> u8_mbtouc.
86526         * modules/utf8-ucs4-unsafe: Renamed from modules/utf8-ucs4.
86527         * lib/utf8-ucs4-unsafe.h: Renamed from lib/utf8-ucs4.h.
86528         * lib/unistr/utf8-ucs4-unsafe.c: Renamed from lib/unistr/utf8-ucs4.c.
86529         * modules/unistr/u8-mbtouc-unsafe: Renamed from
86530         modules/unistr/u8-mbtouc.
86531         * lib/unistr/u8-mbtouc-unsafe.c: Renamed from lib/unistr/u8-mbtouc.c.
86532         * lib/unistr.h: Update.
86533         * lib/striconveh.c: Update.
86534         * modules/striconveh: Update.
86535         * lib/linebreak.c: Update.
86536         * modules/linebreak: Update.
86537         * modules/utf8-ucs4: Renamed from modules/utf8-ucs4-safe.
86538         * lib/utf8-ucs4.h: Renamed from lib/utf8-ucs4-safe.h.
86539         * lib/unistr/utf8-ucs4.c: Renamed from lib/unistr/utf8-ucs4-safe.c.
86540         * modules/unistr/u8-mbtouc: Renamed from modules/unistr/u8-mbtouc-safe.
86541         * lib/unistr/u8-mbtouc.c: Renamed from lib/unistr/u8-mbtouc-safe.c.
86542         * lib/unistr.h: Update.
86543         * lib/striconveh.c: Update.
86544         * modules/striconveh: Update.
86545         * lib/unistr/u8-to-u16.c: Update.
86546         * modules/unistr/u8-to-u16: Update.
86547         * lib/unistr/u8-to-u32.c: Update.
86548         * modules/unistr/u8-to-u32: Update.
86550 2007-01-27  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
86552         Sync from Libtool.
86553         * lib/argz.c: Do not include strings.h nor memory.h, include
86554         string.h unconditionally.  Patch by Simon Josefsson.
86556 2007-01-27  Bruno Haible  <bruno@clisp.org>
86558         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): New macro, extracted
86559         from gl_HEADER_STRING_H_BODY.
86560         (gl_HEADER_STRING_H_BODY): Require it.
86561         * m4/memmem.m4 (gl_FUNC_MEMMEM): Require gl_HEADER_STRING_H_DEFAULTS.
86562         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Likewise.
86563         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Likewise.
86564         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Likewise.
86565         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
86566         * m4/strcase.m4 (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP): Likewise.
86567         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
86568         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Likewise.
86569         * m4/strdup.m4 (gl_FUNC_STRDUP): Likewise.
86570         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
86571         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Likewise.
86572         * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Likewise.
86573         * m4/strsep.m4 (gl_FUNC_STRSEP): Likewise.
86574         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
86575         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
86577 2007-01-27  Bruno Haible  <bruno@clisp.org>
86579         * gnulib-tool (func_emit_lib_Makefile_am): If $for_test is true, turn
86580         check_PROGRAMS into noinst_PROGRAMS.
86581         (func_emit_tests_Makefile_am): Likewise. Also don't initialize
86582         check_PROGRAMS in this case.
86583         (func_import): Set for_test to false.
86584         (func_create_testdir): Set for_test to true.
86586 2007-01-27  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
86587             Bruno Haible  <bruno@clisp.org>
86589         * modules/strcasestr (Files): Remove lib/strcasestr.h.
86590         (Depends-on): Add string.
86591         (Includes): Use <string.h> instead of strcasestr.h.
86592         * modules/string (Makefile.am): Also substitute the value of
86593         REPLACE_STRCASESTR.
86594         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Don't define strcasestr here;
86595         assume strcasestr is declared in <string.h> not <strings.h>. Also
86596         set REPLACE_STRCASESTR.
86597         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Provide a default value for
86598         REPLACE_STRCASESTR.
86599         * lib/strcasestr.h: Remove file.
86600         * lib/strcasestr.c: Include <string.h> instead of strcasestr.h.
86601         * lib/string_.h (strcasestr): New declaration.
86603 2007-01-27  Bruno Haible  <bruno@clisp.org>
86605         * lib/string_.h: Use 'extern'.
86607 2007-01-27  Jim Meyering  <jim@meyering.net>
86609         * lib/regex_internal.c (re_string_reconstruct): Remove declaration
86610         of set-but-not-used local, "q".
86612         * lib/mempcpy.c: Include <config.h> before <string.h>.
86613         This fixes a compilation error on HP-UX, due to the system's
86614         "restrict"-using mempcpy prototype.
86616 2007-01-26  Bruno Haible  <bruno@clisp.org>
86618         Small optimization.
86619         * lib/javacomp.c: Include c-strstr.h.
86620          (is_envjavac_gcj): Use c_strstr instead of strstr.
86621         * modules/javacomp (Depends-on): Add c-strstr, remove strstr.
86623 2007-01-26  Bruno Haible  <bruno@clisp.org>
86625         * MODULES.html.sh (Unicode string functions): Add the new modules.
86627         * modules/uniconv/u32-strconv-to-locale: New file.
86628         * lib/uniconv/u32-strconv-to-locale.c: New file.
86630         * modules/uniconv/u16-strconv-to-locale: New file.
86631         * lib/uniconv/u16-strconv-to-locale.c: New file.
86633         * modules/uniconv/u8-strconv-to-locale: New file.
86634         * lib/uniconv/u8-strconv-to-locale.c: New file.
86636         * modules/uniconv/u32-strconv-from-locale: New file.
86637         * lib/uniconv/u32-strconv-from-locale.c: New file.
86639         * modules/uniconv/u16-strconv-from-locale: New file.
86640         * lib/uniconv/u16-strconv-from-locale.c: New file.
86642         * modules/uniconv/u8-strconv-from-locale: New file.
86643         * lib/uniconv/u8-strconv-from-locale.c: New file.
86645         * modules/uniconv/u32-strconv-to-enc: New file.
86646         * lib/uniconv/u32-strconv-to-enc.c: New file.
86647         * modules/uniconv/u32-strconv-to-enc-tests: New file.
86648         * tests/uniconv/test-u32-strconv-to-enc.c: New file.
86650         * modules/uniconv/u16-strconv-to-enc: New file.
86651         * lib/uniconv/u16-strconv-to-enc.c: New file.
86652         * lib/uniconv/u-strconv-to-enc.h: New file.
86653         * modules/uniconv/u16-strconv-to-enc-tests: New file.
86654         * tests/uniconv/test-u16-strconv-to-enc.c: New file.
86656         * modules/uniconv/u8-strconv-to-enc: New file.
86657         * lib/uniconv/u8-strconv-to-enc.c: New file.
86658         * modules/uniconv/u8-strconv-to-enc-tests: New file.
86659         * tests/uniconv/test-u8-strconv-to-enc.c: New file.
86661         * modules/uniconv/u32-strconv-from-enc: New file.
86662         * lib/uniconv/u32-strconv-from-enc.c: New file.
86663         * modules/uniconv/u32-strconv-from-enc-tests: New file.
86664         * tests/uniconv/test-u32-strconv-from-enc.c: New file.
86666         * modules/uniconv/u16-strconv-from-enc: New file.
86667         * lib/uniconv/u16-strconv-from-enc.c: New file.
86668         * modules/uniconv/u16-strconv-from-enc-tests: New file.
86669         * tests/uniconv/test-u16-strconv-from-enc.c: New file.
86671         * modules/uniconv/u8-strconv-from-enc: New file.
86672         * lib/uniconv/u8-strconv-from-enc.c: New file.
86673         * lib/uniconv/u-strconv-from-enc.h: New file.
86674         * modules/uniconv/u8-strconv-from-enc-tests: New file.
86675         * tests/uniconv/test-u8-strconv-from-enc.c: New file.
86677         * modules/uniconv/u32-conv-from-enc: New file.
86678         * lib/uniconv/u32-conv-from-enc.c: New file.
86679         * modules/uniconv/u32-conv-from-enc-tests: New file.
86680         * tests/uniconv/test-u32-conv-from-enc.c: New file.
86682         * modules/uniconv/u16-conv-from-enc: New file.
86683         * lib/uniconv/u16-conv-from-enc.c: New file.
86684         * lib/uniconv/u-conv-from-enc.h: New file.
86685         * modules/uniconv/u16-conv-from-enc-tests: New file.
86686         * tests/uniconv/test-u16-conv-from-enc.c: New file.
86688         * modules/uniconv/u8-conv-from-enc: New file.
86689         * lib/uniconv/u8-conv-from-enc.c: New file.
86690         * modules/uniconv/u8-conv-from-enc-tests: New file.
86691         * tests/uniconv/test-u8-conv-from-enc.c: New file.
86693         * modules/uniconv/base: New file.
86694         * lib/uniconv.h: New file.
86696 2007-01-26  Paul Eggert  <eggert@cs.ucla.edu>
86698         * doc/gnulib-tool.texi (Initial import): Update to match current
86699         behavior with strdup module.
86700         * lib/.cppi-disable: Remove strcase.h, strdup.h, strndup.h, strnlen.h.
86701         * lib/memmem.h: Remove; all uses removed.  This is now done
86702         by <string.h>.
86703         * lib/mempcpy.h: Likewise.
86704         * lib/memrchr.h: Likewise.
86705         * lib/stpcpy.h: Likewise.
86706         * lib/stpncpy.h: Likewise.
86707         * lib/strcase.h: Likewise.
86708         * lib/strchrnul.h: Likewise.
86709         * lib/strdup.h: Likewise.
86710         * lib/strndup.h: Likewise.
86711         * lib/strnlen.h: Likewise.
86712         * lib/strpbrk.h: Likewise.
86713         * lib/strsep.h: Likewise.
86714         * lib/strstr.h: Likewise.
86715         * lib/strtok_r.h: Likewise.
86716         * lib/string_.h: New file.
86717         * lib/argp-namefrob.h: Don't include no-longer-existent include files.
86718         Rely on <string.h> instead.
86719         * lib/canon-host.c: Likewise.
86720         * lib/chdir-long.c: Likewise.
86721         * lib/concatpath.c: Likewise.
86722         * lib/exclude.c: Likewise.
86723         * lib/fchdir.c: Likewise.
86724         * lib/getaddrinfo.c: Likewise.
86725         * lib/getcwd.c: Likewise.
86726         * lib/getsubopt.c: Likewise.
86727         * lib/glob.c: Likewise.
86728         * lib/hard-locale.c: Likewise.
86729         * lib/iconvme.c: Likewise.
86730         * lib/javacomp.c: Likewise.
86731         * lib/mempcpy.c: Likewise.
86732         * lib/memrchr.c: Likewise.
86733         * lib/regex_internal.h: Likewise.
86734         * lib/stpncpy.c: Likewise.
86735         * lib/strcasecmp.c: Likewise.
86736         * lib/strchrnul.c: Likewise.
86737         * lib/strdup.c: Likewise.
86738         * lib/striconv.c: Likewise.
86739         * lib/striconveh.c: Likewise.
86740         * lib/striconveha.c: Likewise.
86741         * lib/strncasecmp.c: Likewise.
86742         * lib/strndup.c: Likewise.
86743         * lib/strnlen.c: Likewise.
86744         * lib/strsep.c: Likewise.
86745         * lib/strstr.c: Likewise.
86746         * lib/strtok_r.c: Likewise.
86747         * lib/userspec.c: Likewise.
86748         * lib/w32spawn.h: Likewise.
86749         * lib/xstrndup.c: Likewise.
86750         * lib/mountlist.c (strstr): Remove decl.
86751         * m4/string_h.m4: New file.
86752         * m4/memmem.m4 (gl_FUNC_MEMMEM): Set HAVE_DECL_MEMMEM if necessary.
86753         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Set HAVE_MEMPCPY if necessary.
86754         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Set HAVE_MEMRCHR
86755         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Set HAVE_STPCPY if necessary.
86756         * m4/stpncpy.m4 (gl_PREREQ_STPNCPY): Set HAVE_STPNCPY if necessary.
86757         * m4/strcase.m4 (gl_FUNC_STRCASECMP):
86758         Set REPLACE_STRCASECMP if necessary.
86759         (gl_FUNC_STRNCASECMP): Set HAVE_DECL_STRNCASECMP if necessary.
86760         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Set HAVE_STRCHRNUL if necessary.
86761         * m4/strdup.m4 (gl_FUNC_STRDUP): Set HAVE_DECL_STRDUP if necessary.
86762         * m4/strndup.m4 (gl_FUNC_STRNDUP): Set HAVE_DECL_STRNLEN and
86763         HAVE_DECL_STRDUP if necessary.
86764         (gl_PREREQ_STRNLEN): Don't bother to check for strnlen decl,
86765         since gl_FUNC_STRNDUP does that now.
86766         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Set HAVE_DECL_STRNLEN if necessary.
86767         Check for decl here...
86768         (gl_PREREQ_STRNLEN): ... not here.
86769         * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Set HAVE_STRPBRK if necessary.
86770         * m4/strsep.m4 (gl_FUNC_STRSEP): Set HAVE_STRSEP if necessary.
86771         * m4/strstr.m4 (gl_FUNC_STRSTR): Set REPLACE_STRSTR if necessary.
86772         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Set HAVE_DECL_STRTOK_R if
86773         necessary.
86774         * modules/string: New file.
86775         * modules/memmem (Files): Remove special-purpose include file.
86776         (Depends-on): Add string.
86777         (Include): Include <string.h>, not the removed file.
86778         * modules/mempcpy: Likewise.
86779         * modules/memrchr: Likewise.
86780         * modules/stpcpy: Likewise.
86781         * modules/stpncpy: Likewise.
86782         * modules/strcase: Likewise.
86783         * modules/strchrnul: Likewise.
86784         * modules/strdup: Likewise.
86785         * modules/strndup: Likewise.
86786         * modules/strnlen: Likewise.
86787         * modules/strpbrk: Likewise.
86788         * modules/strsep: Likewise.
86789         * modules/strstr: Likewise.
86790         * modules/strtok_r: Likewise.
86791         * tests/test-dirname.c: Don't include "strdup.h", since
86792         <string.h> now suffices.
86793         * tests/test-memmem.c: Don't include "memmem.h", since
86794         <string.h> now suffices.
86796 2007-01-25  Bruno Haible  <bruno@clisp.org>
86798         * lib/striconveh.c (mem_cd_iconveh_internal): Ignore *lengthp if
86799         *resultp is 0.
86801         * lib/unistr/u16-to-u8.c (u16_to_u8): Fix u8_uctomb invocation.
86802         * lib/unistr/u32-to-u8.c (u32_to_u8): Likewise.
86803         * lib/unistr/u8-to-u16.c (u8_to_u16): Fix u16_uctomb invocation.
86804         * lib/unistr/u32-to-u16.c (u32_to_u16): Likewise.
86806         * modules/unistr/u8-to-u16 (Depends-on): Add missing modules.
86807         * modules/unistr/u8-to-u32 (Depends-on): Add missing modules.
86808         * modules/unistr/u16-to-u8 (Depends-on): Add missing modules.
86809         * modules/unistr/u16-to-u32 (Depends-on): Add missing modules.
86810         * modules/unistr/u32-to-u8 (Depends-on): Add missing modules.
86811         * modules/unistr/u32-to-u16 (Depends-on): Add missing modules.
86813 2007-01-24  Bruno Haible  <bruno@clisp.org>
86815         Don't AC_REQUIRE autoconf macros that invoke AC_LIBOBJ. See
86816         <http://lists.gnu.org/archive/html/bug-gnulib/2006-10/msg00279.html>.
86817         * m4/argp.m4 (gl_ARGP): Invoke, don't require, gl_GETOPT_SUBSTITUTE.
86818         * m4/fts.m4 (gl_FUNC_FTS, gl_FUNC_FTS_LGPL): Invoke, don't require,
86819         gl_FUNC_FTS_CORE.
86820         (gl_FUNC_FTS_CORE): Invoke, don't require, gl_FUNC_OPENAT.
86821         * m4/lstat.m4 (gl_FUNC_LSTAT): Invoke, don't require,
86822         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
86823         * m4/memcmp.m4 (gl_FUNC_MEMCMP): Invoke, don't require, AC_FUNC_MEMCMP.
86824         * m4/mktime.m4 (gl_FUNC_MKTIME): Invoke, don't require, AC_FUNC_MKTIME.
86825         * m4/openat.m4 (gl_FUNC_OPENAT): Invoke, don't require,
86826         gl_FUNC_FCHOWNAT.
86827         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME): Invoke, don't require,
86828         gl_FUNC_STRFTIME.
86829         * m4/strtod.m4 (gl_FUNC_STRTOD): Invoke, don't require, AC_FUNC_STRTOD.
86830         Reported by Ralf Wildenhues.
86832 2007-01-24  Bruno Haible  <bruno@clisp.org>
86834         Drop AC_REQUIRE calls that are redundant with the module dependencies.
86835         * m4/canon-host.m4 (gl_PREREQ_CANON_HOST): Don't require
86836         gl_GETADDRINFO.
86837         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Don't require AM_STDBOOL_H,
86838         gl_FUNC_MEMPCPY, gl_FUNC_OPENAT, gl_FUNC_MEMRCHR.
86839         * m4/openat.m4 (gl_PREREQ_OPENAT): Don't require gl_SAVE_CWD.
86841 2007-01-24  Paul Eggert  <eggert@cs.ucla.edu>
86843         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Add test for glibc bug 361.
86844         Don't use 'exit'; just return from 'main'.
86845         (_AC_LIBOBJ_FNMATCH): Check for headers and functions just once.
86847         * lib/fnmatch_.h: Readjust white space and comments to match
86848         glibc, to avoid spurious diffs.
86850 2007-01-23  Paul Eggert  <eggert@cs.ucla.edu>
86852         * lib/fnmatch_loop.c (internal_fnmatch) [!_LIBC]: #if-out the
86853         2004-12-01 change by Jakub Jelinek, since this code won't compile
86854         if !LIBC.  Problem reported by Bob Proulx.
86856 2007-01-23  Bruno Haible  <bruno@clisp.org>
86858         * lib/striconveh.c: Include c-strcaseeq.h.
86859         (mem_iconveh, str_iconveh): Use STRCASEEQ instead of c_strcasecmp.
86860         * modules/striconveh (Depends-on): Add c-strcaseeq.
86862 2007-01-23  Bruno Haible  <bruno@clisp.org>
86864         * MODULES.html.sh (String handling): Add streq, c-strcaseeq.
86866         * modules/c-strcaseeq: New file.
86867         * lib/c-strcaseeq.h: New file.
86869         * modules/streq: New file.
86870         * lib/streq.h: New file.
86872 2007-01-23  Bruno Haible  <bruno@clisp.org>
86874         * modules/striconveha-tests: New file.
86875         * tests/test-striconveha.c: New file.
86877         * lib/striconveha.h: Include <stdbool.h>.
86878         (mem_iconveha, str_iconveha): Add 'transliterate' argument.
86879         * lib/striconveha.c: Include allocsa.h, strdup.h, c-strcase.h.
86880         (mem_iconveha_notranslit): Renamed from mem_iconveha.
86881         (mem_iconveha): New function.
86882         (str_iconveha_notranslit): Renamed from str_iconveha.
86883         (str_iconveha): New function.
86884         * modules/striconveha (Depends-on): Add stdbool, allocsa, strdup,
86885         c-strcase.
86887 2007-01-23  Bruno Haible  <bruno@clisp.org>
86889         * lib/striconveha.c (mem_iconveha): Fix endless recursion. Try all
86890         encodings without forgiving before trying any encoding with handler.
86891         (str_iconveha): Try all encodings without forgiving before trying any
86892         encoding with handler.
86894 2007-01-23  Paul Eggert  <eggert@cs.ucla.edu>
86896         Import the following changes from libc.
86898         2005-10-14  Ulrich Drepper  <drepper@redhat.com>
86900         * lib/fnmatch_loop.c: Adjust for changed secondary hash function.
86902         2004-12-01  Jakub Jelinek  <jakub@redhat.com>
86904         * lib/fnmatch_loop.c (internal_fnmatch): Clear is_seqval after
86905         normal_bracket label.
86907         2004-09-01  Jakub Jelinek  <jakub@redhat.com>
86909         [BZ #361]
86910         * lib/fnmatch_loop.c (FCT): For backslash between brackets, branch
86911         to normal_bracket after fetching the next character.
86913 2007-01-22  Bruno Haible  <bruno@clisp.org>
86915         * lib/striconveh.h (mem_cd_iconveh, mem_iconveh): Add 'offsets'
86916         argument.
86917         * lib/striconveh.c (iconv_carefully_1): New function.
86918         (mem_cd_iconveh_internal, mem_cd_iconveh, mem_iconveh): Add 'offsets'
86919         argument.
86920         (str_cd_iconveh): Update.
86921         * lib/striconveha.h (mem_iconveha): Add 'offsets' argument.
86922         * lib/striconveha.c (mem_iconveha): Add 'offsets' argument.
86923         * tests/test-striconveh.c (MAGIC): New macro.
86924         (new_offsets): New function.
86925         (main): Test call with and without offsets.
86927 2007-01-22  Bruno Haible  <bruno@clisp.org>
86929         * modules/sys_stat (Makefile.am): Use @MKDIR_P@ instead of $(MKDIR_P).
86930         * modules/sys_select (Makefile.am): Likewise.
86931         * modules/sys_socket (Makefile.am): Likewise.
86932         * modules/sys_time (Makefile.am): Likewise.
86934 2007-01-22  Paul Eggert  <eggert@cs.ucla.edu>
86936         * modules/gettimeofday (License): Change from GPL to LGPL, since
86937         gettimeofday is a library function.
86939 2007-01-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
86941         * lib/poll.c (rpl_poll): Don't check against FD_SETSIZE under Win32.
86943 2007-01-21  Bruno Haible  <bruno@clisp.org>
86945         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): New macro.
86947 2007-01-21  Bruno Haible  <bruno@clisp.org>
86949         * modules/striconveha: New file.
86950         * lib/striconveha.h: New file.
86951         * lib/striconveha.c: New file.
86952         * MODULES.html.sh (Internationalization functions): Add striconveha.
86953         * lib/striconv.c (str_iconv): Optimize the case of an empty input
86954         string.
86955         * lib/striconveh.c (mem_iconveh, str_iconveh): Likewise.
86957 2007-01-21  Bruno Haible  <bruno@clisp.org>
86959         * lib/striconv.c (str_iconv): Guarantee errno is set when strdup fails.
86960         * lib/striconveh.c (str_iconveh): Likewise.
86962 2007-01-21  Bruno Haible  <bruno@clisp.org>
86964         * lib/striconveh.h (mem_iconveh): New declaration.
86965         * lib/striconveh.c (mem_iconveh): New function.
86966         * tests/test-striconveh.c (main): Add tests for mem_iconveh.
86968 2007-01-21  Bruno Haible  <bruno@clisp.org>
86970         * lib/xstriconv.h (xmem_cd_iconv): Change specification.
86972         * lib/striconveh.h (mem_cd_iconveh): Change specification.
86973         * lib/striconveh.c (mem_cd_iconveh): Don't free the user-supplied
86974         original result buffer.
86975         (str_cd_iconveh): Update.
86976         * tests/test-striconveh.c (main): Update.
86978         * lib/striconv.h (mem_cd_iconv): Change specification.
86979         * lib/striconv.c (mem_cd_iconv): Don't free the user-supplied original
86980         result buffer.
86981         (str_cd_iconv): Update.
86982         * tests/test-striconv.c (main): Update.
86984 2007-01-21  Bruno Haible  <bruno@clisp.org>
86986         * gnulib-tool: Fix test whether sed is GNU sed supporting --posix.
86988 2007-01-20  Jim Meyering  <jim@meyering.net>
86990         * lib/userspec.c (parse_with_separator): If a user or group string
86991         starts with "+", skip the corresponding name-to-ID look-up, since
86992         such a look-up must fail: user and group names may not include "+".
86994 2007-01-19  Paul Eggert  <eggert@cs.ucla.edu>
86996         * lib/poll.c: Include sys/time.h and time.h unconditionally,
86997         since we now assume the sys_time module.
86998         * m4/poll.m4 (gl_PREREQ_POLL): Don't require AC_HEADER_TIME or
86999         check for sys/time.h; no longer needed.
87000         * modules/poll (Depends-on): Depend on sys_time.
87002 2007-01-18  Bruno Haible  <bruno@clisp.org>
87004         * m4/mktime.m4 (AC_FUNC_MKTIME): Remove test for <sys/time.h>.
87005         * m4/strftime.m4 (gl_FUNC_STRFTIME): Likewise.
87007         * m4/tempname.m4 (gl_PREREQ_TEMPNAME): Remove tests for sys/time.h and
87008         gettimeofday.
87010         * tests/test-gettimeofday.c: Include <time.h>.
87011         (dummy): Remove variable.
87013         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Renamed from
87014         gl_HEADER_SYS_TIME_H.
87015         (gl_HEADER_SYS_TIME_H): New macro.
87017         * lib/sys_time_.h: Test GETTIMEOFDAY_REPLACEMENT instead of
87018         HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
87019         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY,
87020         gl_FUNC_GETTIMEOFDAY_CLOBBER): Set GETTIMEOFDAY_REPLACEMENT instead of
87021         HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
87022         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H): Initialize
87023         GETTIMEOFDAY_REPLACEMENT instead of HAVE_GETTIMEOFDAY_POSIX_SIGNATURE
87024         and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
87025         * modules/sys_time (sys/time.h): Substitute GETTIMEOFDAY_REPLACEMENT
87026         instead of HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and
87027         GETTIMEOFDAY_CLOBBERS_LOCALTIME.
87029         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Undo the
87030         last change; it caused a compilation error when cross-compiling to
87031         Cygwin.
87033 2007-01-18  Jim Meyering  <jim@meyering.net>
87035         Use "$(MKDIR_P) sys", not race-prone "test -d sys || mkdir sys".
87036         * modules/sys_stat (Makefile.am): Use "$(MKDIR_P) sys", rather
87037         than the race-prone "test -d sys || mkdir sys".
87038         (configure.ac): Use AC_PROG_MKDIR_P.
87039         * modules/sys_select: Likewise.
87040         * modules/sys_socket: Likewise.
87041         * modules/sys_time: Likewise.
87043 2007-01-18  Eric Blake  <ebb9@byu.net>
87045         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Also
87046         replace gettimeofday.
87047         * lib/gettimeofday.c (rpl_gettimeofday): Declare with replacement
87048         name, to avoid infinite recursion.
87050 2007-01-17  Paul Eggert  <eggert@cs.ucla.edu>
87052         * MODULES.html.sh (Support for systems lacking POSIX:2001): New
87053         module sys_time.
87054         * lib/gethrxtime.c: Include <sys/time.h>, since we can no longer
87055         assume timespec.h defines struct timeval.
87056         * lib/settime.c: Likewise.
87057         * lib/utimens.c: Likewise.
87058         * lib/gettime.c (gettime): Remove test against HAVE_GETTIMEOFDAY,
87059         since we now assume the gettimeofday module.
87060         * lib/tempname.c (__gen_tempname): Likewise.
87061         * lib/gettimeofday.h: Remove.
87062         * lib/gettimeofday.c: Include <sys/time.h> instead of "gettimeofday.h".
87063         Don't include <sys/types.h> and <stdlib.h>; shouldn't be needed.
87064         Include <time.h>, for 'time()'.
87065         (localtime_buffer_addr): Also use this workaround if
87066         TZSET_CLOBBERS_LOCALTIME.  Set to a dummy static variable by default,
87067         to simplify the uses.  All uses changed.
87068         (localtime, gmtime, tzset, gettimeofday): Reformat slightly so
87069         that #undef is inside {}, and 'const' follows type name consistently.
87070         (tzset): Define replacement only if TZSET_CLOBBERS_LOCALTIME.
87071         (gettimeofday): Do not use the maximum possible value for
87072         tv->tv_usec, since that might break usages other than ls.c.
87073         Instead, we'll leave ls.c alone.  This undoes today's patch
87074         by Bruno.  Add a compile-time warning for 1s-clock resolution;
87075         we've never observed the problem but might as well keep the
87076         canary.
87077         * lib/nanosleep.c: Include timespec.h first, for interface check.
87078         * lib/nanosleep.c: Include <sys/time.h> unconditionally, since we
87079         now assume the sys_time module.
87080         * lib/tempname.c: Likewise.
87081         * lib/timespec.h: Likewise.
87082         * lib/nanosleep.c: Don't worry about TIME_WITH_SYS_TIME; no longer
87083         needed.
87084         * lib/strftime.c: Likewise.
87085         * lib/timespec.h: Likewise.
87086         * lib/posixtm.c: Include posixtm.h first, for interface check.
87087         Don't worry about TM_IN_SYS_TIME; that's wayyy obsolete.
87088         * lib/posixtm.h: Include stdbool.h and time.h, for proper interface.
87089         * lib/strftime.c: Don't include <sys/types.h>; shouldn't be needed.
87090         * lib/sys_time_.h: New file.
87091         * lib/timespec.h (struct timespec): Use long int, not long.
87092         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY):
87093         (gl_FUNC_GETTIMEOFDAY_CLOBBER, gl_PREREQ_GETTIMEOFDAY):
87094         Remove obsolescent call to AC_HEADER_TIME.
87095         * m4/mktime.m4 (AC_FUNC_MKTIME): Likewise.
87096         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
87097         * m4/strftime.m4 (gl_FUNC_STRFTIME): Likewise.
87098         * m4/timespec.m4 (gl_TIMESPEC, gl_CHECK_TYPE_STRUCT_TIMESPEC):
87099         Likewise.
87100         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Likewise.
87101         * m4/utimbuf.m4 (gl_CHECK_TYPE_STRUCT_UTIMBUF): Likewise.
87102         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Move sys/time.h tests
87103         into the sys_time module.  Check for gettimeofday just once.
87104         Prefix our variables with gl_, not with ac_ or jm_.  Tighten test
87105         for gettimeofday signature to just check the signature.  Merely
87106         compile it, since linking doesn't test signature.  Improve test for
87107         whether gettimeofday.o is actually needed.
87108         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Renamed from
87109         AC_FUNC_GETTIMEOFDAY_CLOBBER.  All uses changed.  Use
87110         AC_RUN_IFELSE rather than AC_TRY_RUN.  If clobbering, set
87111         and define GETTIMEOFDAY_CLOBBERS_LOCALTIME.
87112         (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Don't define
87113         GETTIMEOFDAY_CLOBBERS_LOCALTIME; that's gl_FUNC_GETTIMEOFDAY_CLOBBER's
87114         job.  Don't define tzset; that's gl_FUNC_TZSET_CLOBBER's job.
87115         * m4/mktime.m4 (AC_FUNC_MKTIME): Just include <time.h> rather
87116         than worrying about sys/time.h.
87117         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
87118         Don't bother worrying about TIME_WITH_SYS_TIME.
87119         * m4/stat-time.m4 (gl_STAT_TIME): Likewise.
87120         * m4/posixtm.m4 (gl_POSIXTM): Remove obsolescent call to AC_STRUCT_TM.
87121         * m4/sys_time_h.m4: New file.
87122         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Require gl_HEADER_SYS_TIME_H.
87123         Don't include sys/time.h.  Return from main rather than exiting.
87124         Define TZSET_CLOBBERS_LOCALTIME, for consistency with other names;
87125         all uses changed.
87126         * modules/gethrxtime (Depends-on): Add sys_time.
87127         * modules/gettime (Depends-on): Likewise.
87128         * modules/gettimeofday (Depends-on): Likewise.
87129         * modules/nanosleep (Depends-on): Likewise.
87130         * modules/settime (Depends-on): Likewise.
87131         * modules/tempname (Depends-on): Likewise.
87132         * modules/utimens (Depends-on): Likewise.
87133         * modules/gettimeofday (Files): Remove lib/gettimeofday.h.
87134         (Include): Change back to <sys/time.h>.
87135         (Maintainer): Add self.
87136         * modules/sys_time: New file.
87137         * modules/tempname (Depends-on): Add gettimeofday.
87138         * tests/test-gettimeofday.c: Include <sys/time.h>
87139         rather than gettimeofday.h.
87141 2007-01-17  Bruno Haible  <bruno@clisp.org>
87143         * gnulib-tool (func_get_license): Revert last patch. Instead, let
87144         the license default to GPL.
87145         (func_create_testdir): Don't complain if a module is LGPL and its
87146         tests module depends on GPLed modules.
87148 2007-01-17  Bruno Haible  <bruno@clisp.org>
87150         * lib/gettimeofday.c (gettimeofday): Add code for the case
87151         HAVE_GETTIMEOFDAY && !GETTIMEOFDAY_CLOBBERS_LOCALTIME. Use the
87152         maximum possible value for tv->tv_usec, rather than the minimum one.
87154 2005-10-08  Martin Lambers  <marlam@marlam.de>
87155 2005-10-08  Paul Eggert  <eggert@cs.ucla.edu>
87156 2007-01-16  Bruno Haible  <bruno@clisp.org>
87158         * modules/gettimeofday (Files): Add lib/gettimeofday.h.
87159         (configure.ac): Remove AC_FUNC_GETTIMEOFDAY_CLOBBER. Add
87160         gl_FUNC_GETTIMEOFDAY.
87161         (Include): Add gettimeofday.h.
87162         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): New macro.
87163         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Don't invoke gl_PREREQ_GETTIMEOFDAY.
87164         (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Define
87165         GETTIMEOFDAY_CLOBBERS_LOCALTIME. Invoke gl_PREREQ_GETTIMEOFDAY here.
87166         (gl_PREREQ_GETTIMEOFDAY): Check for <sys/timeb.h> and _ftime.
87167         * lib/gettimeofday.h: New file.
87168         * lib/gettimeofday.c: Include <sys/timeb.h>.
87169         (localtime_buffer_addr, rpl_localtime, rpl_gmtime, rpl_tzset): Define
87170         only if GETTIMEOFDAY_CLOBBERS_LOCALTIME.
87171         (rpl_gettimeofday) [!HAVE_GETTIMEOFDAY]: Use _ftime() when available;
87172         fall back on time().
87174         * tests/test-gettimeofday.c: New file.
87175         * modules/gettimeofday-tests: New file.
87177 2007-01-16  Eric Blake  <ebb9@byu.net>
87179         * modules/fnmatch (Depends-on): Depend on wchar.
87180         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Assume <wchar.h>.
87181         * m4/fnmatch.m4: Likewise.
87182         * modules/mbchar (Makefile.am): Assume <wchar.h>.
87183         * m4/mbchar.m4: Likewise.
87184         * modules/mbswidth (Depends-on): Depend on wchar.
87185         * lib/mbswidth.c: Assume <wchar.h>.
87186         * m4/mbswidth.m4: Likewise.
87187         * modules/quotearg (Depends-on): Depend on wchar.
87188         * lib/quotearg.c: Assume <wchar.h>.
87189         * m4/quotearg.m4: Likewise.
87190         * modules/regex (Depends-on): Depend on wchar.
87191         * lib/regex_internal.h: Assume <wchar.h>.
87192         * m4/regex.m4: Likewise.
87193         * modules/stdint (Depends-on): Depend on wchar.
87194         * lib/stdint_.h [!defined WCHAR_MIN]: Assume <wchar.h>.
87195         * m4/stdint.m4: Likewise.
87196         * tests/test-stdint.c [HAVE_WINT_T]: Likewise.
87197         * modules/strftime (Depends-on): Depend on wchar.
87198         * lib/strftime.c (DO_MULTIBYTE): Assume <wchar.h>.
87199         * modules/strtol (Depends-on): Depend on wchar.
87200         * lib/strtol.c: Assume <wchar.h>.
87201         * modules/wcwidth (Depends-on): Depend on wchar.
87202         * lib/wcwidth.h: Assume <wchar.h>.
87203         * m4/wcwidth.m4: Likewise.
87205 2007-01-16  Bruno Haible  <bruno@clisp.org>
87207         * modules/csharpexec-script: New, created from...
87208         * modules/csharpexec: ... this.
87210 2007-01-16  Paolo Bonzini  <bonzini@gnu.org>
87212         * modules/javaexec-script: New, created from...
87213         * modules/javaexec: ... this.
87215 2007-01-16  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
87217         * modules/poll (Dependencies): Add sys_select.
87219 2007-01-15  Jim Meyering  <jim@meyering.net>
87221         * m4/readutmp.m4 (gl_READUTMP): Work around AIX 4.3 struct-
87222         redefinition bug when using both <utmp.h> and <utmpx.h> headers.
87223         * lib/readutmp.h: Likewise.  Reported by Daniel Richard G. in
87224         <http://article.gmane.org/gmane.comp.gnu.core-utils.bugs/9415>.
87226 2007-01-15  Bruno Haible  <bruno@clisp.org>
87228         * modules/striconveh: New file.
87229         * lib/striconveh.h: New file.
87230         * lib/striconveh.c: New file.
87231         * MODULES.html.sh (Internationalization functions): Add striconveh.
87233         * modules/striconveh-tests: New file.
87234         * tests/test-striconveh.c: New file.
87236 2007-01-15  Bruno Haible  <bruno@clisp.org>
87238         * lib/striconv.c (str_cd_iconv): Use the first algorithm if iconv is
87239         not from GNU libiconv or GNU libc.
87241 2007-01-15  Bruno Haible  <bruno@clisp.org>
87243         * doc/gnulib-intro.texi (Copyright): Explain the different license
87244         terms for module descriptions, autoconf macros, tests, documentation.
87246 2007-01-14  Bruno Haible  <bruno@clisp.org>
87248         * modules/striconv-tests: New file.
87249         * tests/test-striconv.c: New file.
87251 2007-01-14  Bruno Haible  <bruno@clisp.org>
87253         * modules/iconv-tests: New file.
87254         * tests/test-iconv.c: New file.
87256 2007-01-14  Bruno Haible  <bruno@clisp.org>
87258         * gnulib-tool (func_get_license): For test modules, use the license of
87259         the main module.
87261 2007-01-14  Bruno Haible  <bruno@clisp.org>
87263         * modules/iconv (Include): Clarify that <iconv.h> can only be included
87264         if iconv is found to exist.
87266 2007-01-14  Bruno Haible  <bruno@clisp.org>
87268         * modules/c-ctype-tests: New file.
87269         * tests/test-c-ctype.c: New file.
87271 2007-01-14  Bruno Haible  <bruno@clisp.org>
87273         * modules/binary-io-tests: New file.
87274         * tests/test-binary-io.sh: New file.
87275         * tests/test-binary-io.c: New file.
87277 2007-01-14  Bruno Haible  <bruno@clisp.org>
87279         * modules/array-oset-tests: New file.
87280         * tests/test-array_oset.c: New file.
87282 2007-01-14  Bruno Haible  <bruno@clisp.org>
87284         * modules/array-list-tests: New file.
87285         * tests/test-array_list.c: New file.
87287 2007-01-14  Bruno Haible  <bruno@clisp.org>
87289         * gnulib-tool (func_create_testdir): Don't unnecessarily run configure
87290         and make.
87291         Reported by Simon Josefsson in
87292         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00139.html>
87294 2007-01-14  Bruno Haible  <bruno@clisp.org>
87296         * modules/allocsa-tests: New file.
87297         * tests/test-allocsa.c: New file.
87299 2007-01-14  Bruno Haible  <bruno@clisp.org>
87301         * modules/fchdir (Depends-on): Add absolute-header.
87302         * modules/unistd (Depends-on): Likewise.
87304 2006-12-30  Bruno Haible  <bruno@clisp.org>
87306         * modules/fchdir: New file.
87307         * modules/unistd (Files): Add lib/unistd_.h.
87308         (Makefile.am): Generate unistd.h from unistd_.h.
87309         * lib/fchdir.c: New file.
87310         * lib/dirent_.h: New file.
87311         * lib/unistd_.h: New file.
87312         * lib/fcntl_.h (open) [FCHDIR_REPLACEMENT]: New replacement.
87313         * m4/fchdir.m4: New file.
87314         * m4/unistd_h.m4 (gl_PREREQ_UNISTD): New macro.
87315         (gl_HEADER_UNISTD): Invoke it.
87316         * lib/dup-safer.c (dup_safer) [FCHDIR_REPLACEMENT]: Use the dup
87317         function.
87318         * lib/backupfile.c (opendir, closedir): Undefine.
87319         * lib/chown.c (open, close): Undefine.
87320         * lib/clean-temp.c (open, close): Undefine.
87321         * lib/copy-file.c (open, close): Undefine.
87322         * lib/execute.c (open, close): Undefine.
87323         * lib/fsusage.c (open, close): Undefine.
87324         * lib/gc-gnulib.c (open, close): Undefine.
87325         * lib/getcwd.c (opendir, closedir): Undefine.
87326         * lib/glob.c (opendir, closedir): Undefine.
87327         * lib/javacomp.c (open, close): Undefine.
87328         * lib/mountlist.c (open, close, opendir, closedir): Undefine.
87329         * lib/openat-proc.c (open, close): Undefine.
87330         * lib/pagealign_alloc.c (open, close): Undefine.
87331         * lib/pipe.c (open, close): Undefine.
87332         * lib/progreloc.c (open, close): Undefine.
87333         * lib/savedir.c (opendir, closedir): Undefine.
87334         * lib/utime.c (open, close): Undefine.
87335         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add fchdir.
87337 2007-01-10  Bruno Haible  <bruno@clisp.org>
87339         * lib/striconv.c (mem_cd_iconv): Align the temporary buffer.
87341 2007-01-12  Eric Blake  <ebb9@byu.net>
87343         Provide a robust <wchar.h>.  Further simplifications are now
87344         possible in other modules, but not included here.
87345         * modules/wchar: New module.
87346         * m4/wchar.m4: New file.
87347         * lib/wchar_.h: Likewise.
87348         * modules/mbchar (Depends-on): Depend on wchar, as the first use
87349         of the new module.
87350         * MODULES.html.sh (Extended multibyte and wide character utilities):
87351         New section.
87353 2007-01-12  Paul Eggert  <eggert@cs.ucla.edu>
87355         * lib/xreadlink.c (SYMLINK_MAX) [!defined SYMLINK_MAX]: Define
87356         to a reasonable default for memory allocation.
87357         (xreadlink): Don't allocate a huge buffer, to work around a buggy
87358         file system that reports garbage st_size values for symlinks.
87359         Problem reported by Liyang Hu.
87361 2007-01-11  Simon Josefsson  <simon@josefsson.org>
87363         * gnulib-tool (func_all_modules): Exclude all .* files (e.g.,
87364         Emacs .#* auto-save files).
87366 2007-01-11  Bruno Haible  <bruno@clisp.org>
87368         * gnulib-tool (func_all_modules): Exclude all files inside the CVS
87369         directory.
87371 2007-01-10  Paul Eggert  <eggert@cs.ucla.edu>
87373         Use @...@ consistently in lib/wctype_.h.
87374         * lib/wctype_.h [HAVE_WINT_T]: Go back to using @...@, but rely
87375         on it being set to 1 or 0.
87376         * m4/wctype.m4 (gl_WCTYPE_H): Set HAVE_WINT_T to 1 or 0, and
87377         go back to AC_SUBSTing it.
87378         * modules/wctype (Makefile.am): Undo previous change.
87380 2007-01-10  Eric Blake  <ebb9@byu.net>
87382         * lib/wctype_.h [HAVE_WINT_T]: Rely on AC_DEFINE.
87383         * m4/wctype.m4 (gl_WCTYPE_H): No need to AC_SUBST(HAVE_WINT_T).
87384         * modules/wctype (Makefile.am): Likewise.
87385         Reported by Chris McGuire.
87387 2007-01-10  Jim Meyering  <jim@meyering.net>
87389         fts.c: a small readability/maintainability improvement
87390         * lib/fts.c (fts_read): Make this code slightly more readable and
87391         maintainable by hoisting the "sp->fts_cur = p" assignments to
87392         immediately follow the statements that set P.  Derived from
87393         the patch by Miloslav Trmac in http://bugzilla.redhat.com/222089.
87395 2007-01-10  Eric Blake  <ebb9@byu.net>
87397         * lib/wctype_.h [HAVE_WINT_T]: Include <stddef.h> before
87398         <wchar.h>, to work around BSDI bug in BSD/OS 4.0.1.
87399         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
87400         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
87401         Reported by Chris McGuire.
87403 2007-01-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
87405         * gnulib-tool (func_all_modules): Use POSIX conforming escaping
87406         in sed script.
87408 2007-01-09  Bruno Haible  <bruno@clisp.org>
87410         * MODULES.html.sh: Accept options --cvs-urls, --git-urls.
87411         (repo_url_prefix, repo_url_suffix, repo_url_suffix_repl): New
87412         variables.
87413         (func_module): Use them.
87415 2007-01-09  Bruno Haible  <bruno@clisp.org>
87417         * modules/unistr/base: New file.
87418         * lib/unistr.h: New file.
87420         * modules/unistr/u8-to-u16: New file.
87421         * lib/unistr/u8-to-u16.c: New file.
87423         * modules/unistr/u8-to-u32: New file.
87424         * lib/unistr/u8-to-u32.c: New file.
87426         * modules/unistr/u16-to-u8: New file.
87427         * lib/unistr/u16-to-u8.c: New file.
87429         * modules/unistr/u16-to-u32: New file.
87430         * lib/unistr/u16-to-u32.c: New file.
87432         * modules/unistr/u32-to-u8: New file.
87433         * lib/unistr/u32-to-u8.c: New file.
87435         * modules/unistr/u32-to-u16: New file.
87436         * lib/unistr/u32-to-u16.c: New file.
87438         * modules/unistr/u8-check: New file.
87439         * modules/unistr/u16-check: New file.
87440         * modules/unistr/u32-check: New file.
87441         * lib/unistr/u8-check.c: New file.
87442         * lib/unistr/u16-check.c: New file.
87443         * lib/unistr/u32-check.c: New file.
87445         * modules/unistr/u8-chr: New file.
87446         * modules/unistr/u16-chr: New file.
87447         * modules/unistr/u32-chr: New file.
87448         * lib/unistr/u8-chr.c: New file.
87449         * lib/unistr/u16-chr.c: New file.
87450         * lib/unistr/u32-chr.c: New file.
87452         * modules/unistr/u8-cmp: New file.
87453         * modules/unistr/u16-cmp: New file.
87454         * modules/unistr/u32-cmp: New file.
87455         * lib/unistr/u8-cmp.c: New file.
87456         * lib/unistr/u16-cmp.c: New file.
87457         * lib/unistr/u32-cmp.c: New file.
87459         * modules/unistr/u8-cpy: New file.
87460         * modules/unistr/u16-cpy: New file.
87461         * modules/unistr/u32-cpy: New file.
87462         * lib/unistr/u8-cpy.c: New file.
87463         * lib/unistr/u16-cpy.c: New file.
87464         * lib/unistr/u32-cpy.c: New file.
87465         * lib/unistr/u-cpy.h: New file.
87467         * modules/unistr/u8-cpy-alloc: New file.
87468         * modules/unistr/u16-cpy-alloc: New file.
87469         * modules/unistr/u32-cpy-alloc: New file.
87470         * lib/unistr/u8-cpy-alloc.c: New file.
87471         * lib/unistr/u16-cpy-alloc.c: New file.
87472         * lib/unistr/u32-cpy-alloc.c: New file.
87473         * lib/unistr/u-cpy-alloc.h: New file.
87475         * modules/unistr/u8-endswith: New file.
87476         * modules/unistr/u16-endswith: New file.
87477         * modules/unistr/u32-endswith: New file.
87478         * lib/unistr/u8-endswith.c: New file.
87479         * lib/unistr/u16-endswith.c: New file.
87480         * lib/unistr/u32-endswith.c: New file.
87481         * lib/unistr/u-endswith.h: New file.
87483         * modules/unistr/u8-mblen: New file.
87484         * modules/unistr/u16-mblen: New file.
87485         * modules/unistr/u32-mblen: New file.
87486         * lib/unistr/u8-mblen.c: New file.
87487         * lib/unistr/u16-mblen.c: New file.
87488         * lib/unistr/u32-mblen.c: New file.
87490         * modules/unistr/u8-mbtouc: New file.
87491         * modules/unistr/u16-mbtouc: New file.
87492         * modules/unistr/u32-mbtouc: New file.
87493         * lib/unistr/u8-mbtouc.c: New file.
87494         * lib/unistr/u16-mbtouc.c: New file.
87495         * lib/unistr/u32-mbtouc.c: New file.
87497         * modules/unistr/u8-mbtouc-safe: New file.
87498         * modules/unistr/u16-mbtouc-safe: New file.
87499         * modules/unistr/u32-mbtouc-safe: New file.
87500         * lib/unistr/u8-mbtouc-safe.c: New file.
87501         * lib/unistr/u16-mbtouc-safe.c: New file.
87502         * lib/unistr/u32-mbtouc-safe.c: New file.
87504         * modules/unistr/u8-move: New file.
87505         * modules/unistr/u16-move: New file.
87506         * modules/unistr/u32-move: New file.
87507         * lib/unistr/u8-move.c: New file.
87508         * lib/unistr/u16-move.c: New file.
87509         * lib/unistr/u32-move.c: New file.
87510         * lib/unistr/u-move.h: New file.
87512         * modules/unistr/u8-next: New file.
87513         * modules/unistr/u16-next: New file.
87514         * modules/unistr/u32-next: New file.
87515         * lib/unistr/u8-next.c: New file.
87516         * lib/unistr/u16-next.c: New file.
87517         * lib/unistr/u32-next.c: New file.
87519         * modules/unistr/u8-prev: New file.
87520         * modules/unistr/u16-prev: New file.
87521         * modules/unistr/u32-prev: New file.
87522         * lib/unistr/u8-prev.c: New file.
87523         * lib/unistr/u16-prev.c: New file.
87524         * lib/unistr/u32-prev.c: New file.
87526         * modules/unistr/u8-set: New file.
87527         * modules/unistr/u16-set: New file.
87528         * modules/unistr/u32-set: New file.
87529         * lib/unistr/u8-set.c: New file.
87530         * lib/unistr/u16-set.c: New file.
87531         * lib/unistr/u32-set.c: New file.
87532         * lib/unistr/u-set.h: New file.
87534         * modules/unistr/u8-startswith: New file.
87535         * modules/unistr/u16-startswith: New file.
87536         * modules/unistr/u32-startswith: New file.
87537         * lib/unistr/u8-startswith.c: New file.
87538         * lib/unistr/u16-startswith.c: New file.
87539         * lib/unistr/u32-startswith.c: New file.
87540         * lib/unistr/u-startswith.h: New file.
87542         * modules/unistr/u8-stpcpy: New file.
87543         * modules/unistr/u16-stpcpy: New file.
87544         * modules/unistr/u32-stpcpy: New file.
87545         * lib/unistr/u8-stpcpy.c: New file.
87546         * lib/unistr/u16-stpcpy.c: New file.
87547         * lib/unistr/u32-stpcpy.c: New file.
87548         * lib/unistr/u-stpcpy.h: New file.
87550         * modules/unistr/u8-stpncpy: New file.
87551         * modules/unistr/u16-stpncpy: New file.
87552         * modules/unistr/u32-stpncpy: New file.
87553         * lib/unistr/u8-stpncpy.c: New file.
87554         * lib/unistr/u16-stpncpy.c: New file.
87555         * lib/unistr/u32-stpncpy.c: New file.
87556         * lib/unistr/u-stpncpy.h: New file.
87558         * modules/unistr/u8-strcat: New file.
87559         * modules/unistr/u16-strcat: New file.
87560         * modules/unistr/u32-strcat: New file.
87561         * lib/unistr/u8-strcat.c: New file.
87562         * lib/unistr/u16-strcat.c: New file.
87563         * lib/unistr/u32-strcat.c: New file.
87564         * lib/unistr/u-strcat.h: New file.
87566         * modules/unistr/u8-strchr: New file.
87567         * modules/unistr/u16-strchr: New file.
87568         * modules/unistr/u32-strchr: New file.
87569         * lib/unistr/u8-strchr.c: New file.
87570         * lib/unistr/u16-strchr.c: New file.
87571         * lib/unistr/u32-strchr.c: New file.
87573         * modules/unistr/u8-strcmp: New file.
87574         * modules/unistr/u16-strcmp: New file.
87575         * modules/unistr/u32-strcmp: New file.
87576         * lib/unistr/u8-strcmp.c: New file.
87577         * lib/unistr/u16-strcmp.c: New file.
87578         * lib/unistr/u32-strcmp.c: New file.
87580         * modules/unistr/u8-strcpy: New file.
87581         * modules/unistr/u16-strcpy: New file.
87582         * modules/unistr/u32-strcpy: New file.
87583         * lib/unistr/u8-strcpy.c: New file.
87584         * lib/unistr/u16-strcpy.c: New file.
87585         * lib/unistr/u32-strcpy.c: New file.
87586         * lib/unistr/u-strcpy.h: New file.
87588         * modules/unistr/u8-strcspn: New file.
87589         * modules/unistr/u16-strcspn: New file.
87590         * modules/unistr/u32-strcspn: New file.
87591         * lib/unistr/u8-strcspn.c: New file.
87592         * lib/unistr/u16-strcspn.c: New file.
87593         * lib/unistr/u32-strcspn.c: New file.
87594         * lib/unistr/u-strcspn.h: New file.
87596         * modules/unistr/u8-strdup: New file.
87597         * modules/unistr/u16-strdup: New file.
87598         * modules/unistr/u32-strdup: New file.
87599         * lib/unistr/u8-strdup.c: New file.
87600         * lib/unistr/u16-strdup.c: New file.
87601         * lib/unistr/u32-strdup.c: New file.
87602         * lib/unistr/u-strdup.h: New file.
87604         * modules/unistr/u8-strlen: New file.
87605         * modules/unistr/u16-strlen: New file.
87606         * modules/unistr/u32-strlen: New file.
87607         * lib/unistr/u8-strlen.c: New file.
87608         * lib/unistr/u16-strlen.c: New file.
87609         * lib/unistr/u32-strlen.c: New file.
87610         * lib/unistr/u-strlen.h: New file.
87612         * modules/unistr/u8-strmblen: New file.
87613         * modules/unistr/u16-strmblen: New file.
87614         * modules/unistr/u32-strmblen: New file.
87615         * lib/unistr/u8-strmblen.c: New file.
87616         * lib/unistr/u16-strmblen.c: New file.
87617         * lib/unistr/u32-strmblen.c: New file.
87619         * modules/unistr/u8-strmbtouc: New file.
87620         * modules/unistr/u16-strmbtouc: New file.
87621         * modules/unistr/u32-strmbtouc: New file.
87622         * lib/unistr/u8-strmbtouc.c: New file.
87623         * lib/unistr/u16-strmbtouc.c: New file.
87624         * lib/unistr/u32-strmbtouc.c: New file.
87626         * modules/unistr/u8-strncat: New file.
87627         * modules/unistr/u16-strncat: New file.
87628         * modules/unistr/u32-strncat: New file.
87629         * lib/unistr/u8-strncat.c: New file.
87630         * lib/unistr/u16-strncat.c: New file.
87631         * lib/unistr/u32-strncat.c: New file.
87632         * lib/unistr/u-strncat.h: New file.
87634         * modules/unistr/u8-strncmp: New file.
87635         * modules/unistr/u16-strncmp: New file.
87636         * modules/unistr/u32-strncmp: New file.
87637         * lib/unistr/u8-strncmp.c: New file.
87638         * lib/unistr/u16-strncmp.c: New file.
87639         * lib/unistr/u32-strncmp.c: New file.
87641         * modules/unistr/u8-strncpy: New file.
87642         * modules/unistr/u16-strncpy: New file.
87643         * modules/unistr/u32-strncpy: New file.
87644         * lib/unistr/u8-strncpy.c: New file.
87645         * lib/unistr/u16-strncpy.c: New file.
87646         * lib/unistr/u32-strncpy.c: New file.
87647         * lib/unistr/u-strncpy.h: New file.
87649         * modules/unistr/u8-strnlen: New file.
87650         * modules/unistr/u16-strnlen: New file.
87651         * modules/unistr/u32-strnlen: New file.
87652         * lib/unistr/u8-strnlen.c: New file.
87653         * lib/unistr/u16-strnlen.c: New file.
87654         * lib/unistr/u32-strnlen.c: New file.
87655         * lib/unistr/u-strnlen.h: New file.
87657         * modules/unistr/u8-strpbrk: New file.
87658         * modules/unistr/u16-strpbrk: New file.
87659         * modules/unistr/u32-strpbrk: New file.
87660         * lib/unistr/u8-strpbrk.c: New file.
87661         * lib/unistr/u16-strpbrk.c: New file.
87662         * lib/unistr/u32-strpbrk.c: New file.
87663         * lib/unistr/u-strpbrk.h: New file.
87665         * modules/unistr/u8-strrchr: New file.
87666         * modules/unistr/u16-strrchr: New file.
87667         * modules/unistr/u32-strrchr: New file.
87668         * lib/unistr/u8-strrchr.c: New file.
87669         * lib/unistr/u16-strrchr.c: New file.
87670         * lib/unistr/u32-strrchr.c: New file.
87672         * modules/unistr/u8-strspn: New file.
87673         * modules/unistr/u16-strspn: New file.
87674         * modules/unistr/u32-strspn: New file.
87675         * lib/unistr/u8-strspn.c: New file.
87676         * lib/unistr/u16-strspn.c: New file.
87677         * lib/unistr/u32-strspn.c: New file.
87678         * lib/unistr/u-strspn.h: New file.
87680         * modules/unistr/u8-strstr: New file.
87681         * modules/unistr/u16-strstr: New file.
87682         * modules/unistr/u32-strstr: New file.
87683         * lib/unistr/u8-strstr.c: New file.
87684         * lib/unistr/u16-strstr.c: New file.
87685         * lib/unistr/u32-strstr.c: New file.
87686         * lib/unistr/u-strstr.h: New file.
87688         * modules/unistr/u8-strtok: New file.
87689         * modules/unistr/u16-strtok: New file.
87690         * modules/unistr/u32-strtok: New file.
87691         * lib/unistr/u8-strtok.c: New file.
87692         * lib/unistr/u16-strtok.c: New file.
87693         * lib/unistr/u32-strtok.c: New file.
87694         * lib/unistr/u-strtok.h: New file.
87696         * modules/unistr/u8-uctomb: New file.
87697         * modules/unistr/u16-uctomb: New file.
87698         * modules/unistr/u32-uctomb: New file.
87699         * lib/unistr/u8-uctomb.c: New file.
87700         * lib/unistr/u16-uctomb.c: New file.
87701         * lib/unistr/u32-uctomb.c: New file.
87703         * MODULES.html.sh (Unicode string functions): Add the new modules.
87705 2007-01-08  Bruno Haible  <bruno@clisp.org>
87707         * gnulib-tool (func_all_modules): Use find, not ls, to traverse the
87708         modules directory. Filter out CVS, ChangeLog, COPYING, README also from
87709         subdirectories.
87711 2007-01-08  Karl Berry  <karl@gnu.org>
87713         * doc/error.texi: mention that main() fns must set program_name
87714         when progname is used.
87716 2007-01-08  Paul Eggert  <eggert@cs.ucla.edu>
87718         * m4/wctype.m4 (gl_WCTYPE_H): Compute ABSOLUTE_WCTYPE_H even if
87719         WCTYPE_H is empty, for the benefit of builds from non-distclean
87720         directories.  Problem reported by Eric Blake in
87721         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00157.html>.
87723 2007-01-08  Bruno Haible  <bruno@clisp.org>
87725         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Remove
87726         PROVIDE_CANONICALIZE_FILENAME_MODE macro definition.
87727         * lib/canonicalize.h: Test GNULIB_CANONICALIZE instead of
87728         PROVIDE_CANONICALIZE_FILENAME_MODE.
87729         * modules/canonicalize (configure.ac): Use gl_MODULE_INDICATOR.
87731 2007-01-08  Bruno Haible  <bruno@clisp.org>
87733         * m4/fts.m4 (gl_FUNC_FTS_LGPL): Remove _LGPL_PACKAGE macro definition.
87734         * lib/fts_.h (_LGPL_PACKAGE): Remove macro.
87735         Use !GNULIB_FTS instead of _LGPL_PACKAGE.
87736         * lib/fts.c: Likewise.
87737         * modules/fts (configure.ac): Use gl_MODULE_INDICATOR.
87739 2006-12-25  Bruno Haible  <bruno@clisp.org>
87741         * modules/utf8-ucs4-safe: New file.
87742         * lib/utf8-ucs4-safe.h: New file.
87743         * lib/unistr/utf8-ucs4-safe.c: New file.
87745         * modules/utf16-ucs4-safe: New file.
87746         * lib/utf16-ucs4-safe.h: New file.
87747         * lib/unistr/utf16-ucs4-safe.c: New file.
87749         * MODULES.html.sh (Unicode string functions): Add the new modules.
87751 2007-01-08  Bruno Haible  <bruno@clisp.org>
87753         * modules/utf8-ucs4 (Files, lib_SOURCES): Add unistr/utf8-ucs4.c.
87754         (Depends-on): Add unitypes.
87755         * lib/utf8-ucs4.h: Add double-inclusion guard. Include unitypes.h.
87756         (u8_mbtouc_aux): Move out to separate file.
87757         (u8_mbtouc): Use ucs4_t, uint8_t types.
87758         * lib/unistr/utf8-ucs4.c: New file.
87760         * modules/utf16-ucs4 (Files, lib_SOURCES): Add unistr/utf16-ucs4.c.
87761         (Depends-on): Add unitypes.
87762         * lib/utf16-ucs4.h: Add double-inclusion guard. Include unitypes.h.
87763         (u16_mbtouc_aux): Move out to separate file.
87764         (u16_mbtouc): Use ucs4_t, uint16_t types.
87765         * lib/unistr/utf16-ucs4.c: New file.
87767         * modules/ucs4-utf8 (Files, lib_SOURCES): Add unistr/ucs4-utf8.c.
87768         (Depends-on): Add unitypes.
87769         * lib/ucs4-utf8.h: Add double-inclusion guard. Include unitypes.h.
87770         (u8_uctomb_aux): Move out to separate file.
87771         (u8_uctomb): Use ucs4_t, uint8_t types.
87772         * lib/unistr/ucs4-utf8.c: New file.
87774         * modules/ucs4-utf16 (Files, lib_SOURCES): Add unistr/ucs4-utf16.c.
87775         (Depends-on): Add unitypes.
87776         * lib/ucs4-utf16.h: Add double-inclusion guard. Include unitypes.h.
87777         (u16_uctomb_aux): Move out to separate file.
87778         (u16_uctomb): Use ucs4_t, uint16_t types.
87779         * lib/unistr/ucs4-utf16.c: New file.
87781 2006-12-25  Bruno Haible  <bruno@clisp.org>
87783         * modules/unitypes: New file.
87784         * lib/unitypes.h: New file.
87785         * MODULES.html.sh (func_all_modules): New section "Unicode string
87786         functions". Move ucs4-utf8, ucs4-utf16, utf8-ucs4, utf16-ucs4 to
87787         this section. Add unitypes.
87789 2007-01-08  Bruno Haible  <bruno@clisp.org>
87791         Avoid variable names that conflict with those from libtool.
87792         * m4/lib-link.m4 (AC_LIB_RPATH, AC_LIB_LINKFLAGS_BODY,
87793         AC_LIB_LINKFLAGS_FROM_LIBS): Rename libext to acl_libext,
87794         shlibext to acl_shlibext, libname_spec to acl_libname_spec,
87795         library_names_spec to acl_library_names_spec, hardcode_* to
87796         acl_hardcode_*.
87797         Reported by Ralf Wildenhues.
87799 2007-01-08  Bruno Haible  <bruno@clisp.org>
87801         * m4/gc-arcfour.m4 (gl_GC_ARCFOUR): Remove GC_USE_ARCFOUR macro
87802         definition.
87803         * m4/gc-arctwo.m4 (gl_GC_ARCTWO): Remove GC_USE_ARCTWO macro
87804         definition.
87805         * m4/gc-des.m4 (gl_GC_DES): Remove GC_USE_DES macro definition.
87806         * m4/gc-hmac-md5.m4 (gl_GC_HMAC_MD5): Remove GC_USE_HMAC_MD5 macro
87807         definition.
87808         * m4/gc-hmac-sha1.m4 (gl_GC_HMAC_SHA1): Remove GC_USE_HMAC_SHA1 macro
87809         definition.
87810         * m4/gc-md2.m4 (gl_GC_MD2): Remove GC_USE_MD2 macro definition.
87811         * m4/gc-md4.m4 (gl_GC_MD4): Remove GC_USE_MD4 macro definition.
87812         * m4/gc-md5.m4 (gl_GC_MD5): Remove GC_USE_MD5 macro definition.
87813         * m4/gc-random.m4 (gl_GC_RANDOM): Remove GC_USE_RANDOM macro
87814         definition.
87815         * m4/gc-rijndael.m4 (gl_GC_RIJNDAEL): Remove GC_USE_RIJNDAEL macro
87816         definition.
87817         * m4/gc-sha1.m4 (gl_GC_SHA1): Remove GC_USE_SHA1 macro definition.
87818         * lib/gc-gnulib.c: Use GNULIB_GC_<algorithm> instead of
87819         GC_USE_<algorithm>.
87820         * lib/gc-libgcrypt.c: Likewise.
87821         * modules/gc-arcfour (configure.ac): Use gl_MODULE_INDICATOR.
87822         * modules/gc-arctwo (configure.ac): Likewise.
87823         * modules/gc-des (configure.ac): Likewise.
87824         * modules/gc-hmac-md5 (configure.ac): Likewise.
87825         * modules/gc-hmac-sha1 (configure.ac): Likewise.
87826         * modules/gc-md2 (configure.ac): Likewise.
87827         * modules/gc-md4 (configure.ac): Likewise.
87828         * modules/gc-md5 (configure.ac): Likewise.
87829         * modules/gc-random (configure.ac): Likewise.
87830         * modules/gc-rijndael (configure.ac): Likewise.
87831         * modules/gc-sha1 (configure.ac): Likewise.
87833 2007-01-08  Bruno Haible  <bruno@clisp.org>
87835         * m4/close-stream.m4 (gl_CLOSE_STREAM): Remove GNULIB_CLOSE_STREAM
87836         macro definition.
87837         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Remove GNULIB_FCNTL_SAFER macro
87838         definition.
87839         * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Remove GNULIB_FOPEN_SAFER macro
87840         definition.
87841         * modules/close-stream (configure.ac): Invoke gl_MODULE_INDICATOR.
87842         * modules/fcntl-safer (configure.ac): Likewise.
87843         * modules/fopen-safer (configure.ac): Likewise.
87844         * modules/fwriteerror (configure.ac): Likewise. Remove explicit
87845         GNULIB_FWRITEERROR macro definition.
87847 2007-01-08  Bruno Haible  <bruno@clisp.org>
87849         * m4/gnulib-common.m4: New file.
87850         * gnulib-tool (func_get_autoconf_snippet): Undo last change.
87851         (func_get_filelist): Add m4/gnulib-common.m4.
87853 2007-01-08  Bruno Haible  <bruno@clisp.org>
87855         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Simplify the sorting
87856         command.
87858 2007-01-08  Jim Meyering  <jim@meyering.net>
87860         Use a more robust test for a "can't happen" condition.
87861         * lib/fts.c (fts_read): Revert the change of 2006-11-22, since it
87862         narrowed the st_size value.  Presuming the "can't happen" condition
87863         is true, that narrowing could conceivably convert an invalid st_size
87864         value into a valid one.  Instead, use a change based on Matthew
87865         Woehlke's original patch.
87867         Slight readability improvement: use an assert-like macro
87868         in place of literal "abort ()" uses.
87869         * lib/fts.c (fts_assert): Define.
87870         (fts_set_stat_required, cwd_advance_fd, fts_read, fd_ring_check):
87871         Use this macro instead of a bare 'abort'.
87873 2007-01-05  Paul Eggert  <eggert@cs.ucla.edu>
87875         Don't worry about using IRIX 5.3's wctype.h broken definitions;
87876         simply work around them.
87877         * lib/wctype_.h: Remove test for HAVE_WCTYPE_CTMP_BUG.
87878         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph, iswlower):
87879         (iswprint, iswpunct, iswspace, iswupper, iswxdigit): Undef before
87880         declaring.
87881         Don't bother to define as macros, since the standard doesn't require it.
87882         * m4/wctype.m4 (WCTYPE_H, ABSOLUTE_WCTYPE_H): Simplify, since we no
87883         longer worry about IRIX 5.3.
87884         (HAVE_WCTYPE_CTMP_BUG): Remove.
87886 2007-01-04  Paul Eggert  <eggert@cs.ucla.edu>
87888         * lib/wctype_.h (_ctmp_) [HAVE_WCTYPE_CTMP_BUG]: Now of type wchar_t,
87889         not wint_t.  Also, include <ctype.h>, to fix another IRIX bug.
87890         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
87891         Problems reported by Georg Schwarz for IRIX 5.3.
87893         * gnulib-tool (autoconf_minversion): Take the maximum version number
87894         found, not the minimum.  Problem reported by James Youngman.
87896 2007-01-03  Karl Berry  <karl@gnu.org>
87898         * doc/error.texi: new file, explaining interaction with progname.
87899         * doc/gnulib.texi: include it.  Update copyright.
87901 2007-01-03  Simon Josefsson  <simon@josefsson.org>
87903         * gnulib-tool (func_create_testdir): Run AC_CANONICAL_BUILD and
87904         AC_CANONICAL_HOST, to improve autobuild outputs.
87906 2007-01-03  Paolo Bonzini  <bonzini@gnu.org>
87907             Yoann Vandoorselaere <yoann.v@prelude-ids.com>
87909         * lib/poll.c (poll): Use recv on Mac OS X to distinguish connected
87910         sockets, server sockets, and other file descriptors.  Count errors
87911         to compute the return value.  Reorder the code a bit to be easier
87912         to follow.  Don't set event bits that were not requested (except
87913         POLLERR and POLLHUP).
87915 2007-01-01  Bruno Haible  <bruno@clisp.org>
87917         * modules/lchmod (Include): Require lchmod.h, not lchown.h.
87919 2007-01-03  Jim Meyering  <jim@meyering.net>
87921         * modules/fts-lgpl (Depends-on): Add i-ring.  Reported by Bruno Haible.
87923 2007-01-02  Bruno Haible  <bruno@clisp.org>
87925         * modules/settime (Include): Require timespec.h.
87926         * modules/nanosleep (Include): Likewise.
87928 2007-01-01  Bruno Haible  <bruno@clisp.org>
87930         * gnulib-tool (func_emit_copyright_notice): Bump year.
87931         (func_get_autoconf_snippet): Emit a GNULIB_<modulename> macro.
87933 2007-01-01  Bruno Haible  <bruno@clisp.org>
87935         Improve support for OpenBSD.
87936         * build-aux/config.rpath (libname_spec): Export.
87937         (library_names_spec): New variable. Export.
87938         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Extract libname_spec and
87939         library_names_spec from the config.rpath output. Locate shared library
87940         through the name pattern in library_names_spec.
87942 2007-01-01  Eric Blake  <ebb9@byu.net>
87944         * lib/version-etc.c (COPYRIGHT_YEAR): Bump for new year.
87946 2006-12-30  Paul Eggert  <eggert@cs.ucla.edu>
87948         * gnulib-tool (SORT): Remove, since we no longer assume GNU sort.
87949         Rewrite so as not to assume GNU sort or "tail -1".  Also, don't
87950         assume the C locale, and avoid an "eval" that could cause trouble.
87951         Problem with SORT reported by Bob Proulx.
87953         * lib/getpagesize.h (getpagesize) [defined __amigaos4__]:
87954         Define.  Trivial patch from Henning Nielsen Lund, originally
87955         sent to bug-grep@gnu.org today.
87957 2006-12-29  Paul Eggert  <eggert@cs.ucla.edu>
87959         * lib/acl.h: Include sys/types.h and sys/stat.h, for mode_t and
87960         struct stat.  Problem reported by Henning Nielsen Lund.
87961         * lib/acl.c: Include acl.h first, to check interface.  Don't
87962         bother to include sys/types.h and sys/stat.h again.
87964 2006-12-28  Paul Eggert  <eggert@cs.ucla.edu>
87966         Import the following change from libc; problem reported by
87967         Sven Verdoolaege.
87969         2005-10-13  Ulrich Drepper  <drepper@redhat.com>
87971         [BZ #1373]
87972         * lib/argp.h: Remove __NTH for __argp_usage inline function.
87974 2006-12-28  Jim Meyering  <jim@meyering.net>
87976         * build-aux/announce-gen: Do not assume that the package
87977         builds any of tar.gz, tar.bz2, and .xdelta files.
87978         Suggestion from Simon Josefsson.
87980 2006-12-28  Simon Josefsson  <simon@josefsson.org>
87982         * modules/announce-gen: New file.
87984 2006-12-27  Paul Eggert  <eggert@cs.ucla.edu>
87986         * lib/mbchar.h: Just include <wctype.h>; the wctype module
87987         handles its gotchas now.
87988         * lib/mbswidth.c: Likewise.
87989         * lib/wcwidth.h: Likewise.
87990         * m4/mbchar.m4 (gl_MBCHAR): Don't bother checking for wctype.h
87991         and iswcntrl; the wctype module does this stuff now.
87992         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
87993         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
87994         * modules/mbchar (Depends-on): Add wctype.
87995         * modules/mbswidth (Depends-on): Likewise.
87996         * modules/wcwidth (Depends-on): Likewise.
87998 2006-12-27  Eric Blake  <ebb9@byu.net>
88000         * lib/fnmatch.c: Reinstate inclusion of <wchar.h>, since this
88001         module uses more than what <wctype.h> is required to provide.
88003 2006-12-26  Eric Blake  <ebb9@byu.net>
88005         * gnulib-tool (sed_extract_prog): Avoid space-tab.
88007 2006-12-26  Eric Blake  <ebb9@byu.net>
88009         * modules/absolute-header: New module.
88010         * modules/fcntl (Depends-on): Depend on it.
88011         * modules/inttypes (Depends-on): Likewise.
88012         * modules/stdint (Depends-on): Likewise.
88013         * modules/sys_stat (Depends-on): Likewise.
88014         * modules/wctype (Depends-on): Likewise.
88015         * MODULES.html.sh (Support for building libraries and
88016         executables): Document it.
88018 2006-12-25  Paul Eggert  <eggert@cs.ucla.edu>
88020         * gnulib-tool (SED): Remove, undoing previous change.
88021         The problem was that it broke coreutils on Solaris, because
88022         "sed --posix" leaked into a makefile.
88023         (sed): New alias, if 'alias' and GNU sed.
88025 2006-12-24  Jim Meyering  <jim@meyering.net>
88027         Work around an fchownat bug in glibc-2.4:
88028         http://lists.ubuntu.com/archives/ubuntu-users/2006-September/093218.html
88029         This bug would cause "chown -RP ... DIR" to follow symlinks in DIR,
88030         in spite of the -P option.
88031         * m4/openat.m4 (gl_FUNC_FCHOWNAT, gl_FUNC_FCHOWNAT_DEREF_BUG):
88032         New macros.
88033         (gl_PREREQ_OPENAT): Require gl_FUNC_FCHOWNAT.
88034         * modules/openat (Files): Add lib/fchownat.c.
88035         * lib/openat.c (fchownat): Don't define here.  Move to...
88036         * lib/fchownat.c: ...this new file.
88038 2006-12-23  Paul Eggert  <eggert@cs.ucla.edu>
88040         Fix bug reported by Bruno Haible in
88041         <http://lists.gnu.org/archive/html/bug-gnulib/2006-12/msg00228.html>
88042         where quotearg.c didn't compile on Mac OS X 10.2 because it
88043         lacks <wchar.h> and wint_t.
88044         * lib/wctype_.h (__wctype_wint_t): New type.
88045         Include <stdio.h>, <time.h>, <wchar.h> only if HAVE_WINT_T.
88046         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph):
88047         (iswlower, iswprint, iswpunct, iswspace, iswupper, ixwxdigit):
88048         Arg is now of type __wctype_wint_t, not wint_t.
88049         * m4/wctype.m4 (gl_WCTYPE_H): Require gt_TYPE_WINT_T, and
88050         substitute HAVE_WINT_T.
88051         * modules/wctype (Files): Add m4/wint_t.m4.
88052         (wctype.h): Substitute HAVE_WINT_T.
88054 2006-12-23  Bruno Haible  <bruno@clisp.org>
88056         * lib/safe-read.h [C++]: Wrap declarations in extern "C".
88058 2006-12-23  Bruno Haible  <bruno@clisp.org>
88060         * lib/canonicalize-lgpl.c (__realpath): Test HAVE_READLINK instead of
88061         S_ISLNK.
88062         Needed because gnulib's sys/stat.h replacement defines S_ISLNK on
88063         mingw.
88065 2006-12-22  Bruno Haible  <bruno@clisp.org>
88067         * lib/copy-file.c: Include acl.h.
88068         (copy_file_preserving) [USE_ACL]: Use copy_acl instead of chmod.
88069         Close the file descriptors only after being done with copy_acl.
88070         * modules/copy-file (Depends-on): Add acl.
88072 2006-12-22  Bruno Haible  <bruno@clisp.org>
88074         * gnulib-tool (SED): New variable.
88075         Use $SED instead of sed everywhere.
88077 2006-12-22  Bruno Haible  <bruno@clisp.org>
88079         * modules/no-c++: New file.
88080         * m4/no-c++.m4: New file.
88081         * MODULES.html.sh (Support for building libraries and executables):
88082         Add no-c++.
88084 2006-12-22  Paul Eggert  <eggert@cs.ucla.edu>
88086         * m4/mktime.m4 (AC_FUNC_MKTIME): Sync from Autoconf.
88087         Include <limits.h>, and use its INT_MAX to rewrite the
88088         j loop so that it does not overflow 'int'.  Problem reported by
88089         Ralf Wildenhues in
88090         <http://lists.gnu.org/archive/html/bug-gnulib/2006-12/msg00084.html>.
88091         Play it safe by shifting left by 1 rather than multiplying by 2,
88092         as GCC is less likely to optimize this away when the value
88093         is signed (when it assumes overflow leads to undefined behavior).
88094         Also, don't assume time_t uses two's complement.
88096 2006-12-21  Paul Eggert  <eggert@cs.ucla.edu>
88098         * MODULES.html.sh: New module wctype.
88099         * lib/wctype_.h, m4/wctype.m4, modules/wctype: New files.
88100         * lib/fnmatch.c: Don't bother to include <wchar.h> before
88101         <wctype.h>, since the new wctype module should fix this.
88102         * lib/quotearg.c: Include <wctype.h> unconditionally, since
88103         the wctype module should arrange for it.
88104         * lib/regex_internal.h: Likewise.
88105         * m4/quotearg.m4 (gl_QUOTEARG): Don't check for wctype.h or iswprint,
88106         since the wctype module should handle this now.
88107         * m4/regex.m4 (gl_PREREQ_REGEX): Don't check for wctype.h.
88108         * modules/fnmatch (Depends-on): Add wctype.
88109         * modules/quotearg (Depends-on): Likewise.
88110         * modules/regex (Depends-on): Likewise.
88112 2006-12-19  Bruno Haible  <bruno@clisp.org>
88114         * lib/strdup.h [C++]: Wrap definitions in extern "C".
88115         Suggested by Lorenzo Bettini <bettini@dsi.unifi.it>.
88117 2006-12-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
88119         * modules/savewd (Depends-on): Fix dependency on fcntl.
88121 2006-12-18  Paul Eggert  <eggert@cs.ucla.edu>
88123         * m4/stdint.m4 (gl_STDINT_H): Set STDINT_H to empty if stdint.h
88124         conforms to C99, rather than relying on the user's environment
88125         setting of STDINT_H.
88127 2006-12-18  Paul Eggert  <eggert@cs.ucla.edu>
88128         and Eric Blake  <ebb9@byu.net>
88130         * lib/dirname.h (DOUBLE_SLASH_IS_DISTINCT_ROOT): Default to 0, not 1.
88131         This is more consistent with the other defines here.
88132         * m4/double-slash-root.m4 (gl_DOUBLE_SLASH_ROOT):
88133         Port to z/OS.  Problem reported by Paul Gilmartin.
88134         Change local vars to use gl_ prefix rather than ac_.
88135         Don't define DOUBLE_SLASH_IS_DISTINCT_ROOT to 0, for consistency
88136         with other defines.
88137         * modules/double-slash-root: New module.
88138         * modules/dirname (Files): Remove m4/double-slash-root.m4.
88139         (Depends-on): Add double-slash-root.
88140         * MODULES.html.sh (File system functions): Mention new module.
88142 2006-12-14  Paul Eggert  <eggert@cs.ucla.edu>
88144         * lib/yesno.c [!ENABLE_NLS]: Don't include getline.h.
88145         (yesno) [!ENABLE_NLS]: Don't invoke getline or rpmatch.
88146         This is for the benefit of gzip, which doesn't do i18n.
88148 2006-12-12  Jim Meyering  <jim@meyering.net>
88150         * m4/acl.m4 (gl_ACL_GET_FILE): Fix logic error.
88151         Reported by Andreas Schwab <schwab@suse.de>.
88153 2006-12-12  Bruno Haible  <bruno@clisp.org>
88155         Merge these changes.
88156         2006-09-05  Bruno Haible  <bruno@clisp.org>
88157         * lib/iconvme.c (iconv_string): No need to save and restore errno when
88158         iconv_alloc succeeded.
88159         (iconv_alloc): Don't assume that malloc() or realloc(), when failing,
88160         sets errno to ENOMEM. (malloc on GNU/kFreeBSD doesn't.) No need to
88161         test for " && dest " at the end - dest is always != NULL there. Call
88162         iconv with 4xNULL arguments initially, to reset the state. Call iconv
88163         with 2xNULL arguments, also to flush the state storage. Handle the
88164         IRIX iconv behaviour. Realloc the final result, to throw away unused
88165         memory.
88167 2006-12-11  Paul Eggert  <eggert@cs.ucla.edu>
88169         * m4/openat.m4 (gl_FUNC_OPENAT): Don't compile mkdirat
88170         and fchmodat unconditionally, since glibc 2.4 has them.
88171         Problem reported by Arkadiusz Miskiewicz.
88173 2006-12-10  Bruno Haible  <bruno@clisp.org>
88175         * gnulib-tool (func_import): Show the include files only for those
88176         modules that are copied and specified.
88177         Reported by Karl Berry.
88179 2006-12-08  Jim Meyering  <jim@meyering.net>
88181         * build-aux/announce-gen ($VERSION): Don't use of $Revision...$.
88182         Instead, use Emacs' time-stamp write hook.  Note that the time is UTC.
88184         * build-aux/announce-gen: Add two new options, both optional:
88185         --bootstrap-tools=TOOL_LIST
88186               a comma-separated list of tools, e.g.,
88187               autoconf,automake,bison,gnulib
88188         --gnulib-snapshot-date=DATE
88189               if gnulib is in the bootstrap tool list,
88190               then report this as the snapshot date.
88191               If not specified, use the current date/time.
88192               If you specify a date here, be sure it's UTC.
88194 2006-12-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
88196         * tests/test-argp-2.sh: Fix test to match actual output.
88197         (func_compare): Fix sed script to be portable.
88199 2006-12-05  Paul Eggert  <eggert@cs.ucla.edu>
88201         * lib/utimens.c (futimens) [HAVE_BUGGY_NFS_TIME_STAMPS]: Add a
88202         workaround for this case.  It is not autoconfigured now; offhand
88203         it's hard to see how to autoconfigure it.
88205 2006-12-03  Paul Eggert  <eggert@cs.ucla.edu>
88207         * lib/mkdir-p.c (make_dir_parents): Fix race condition when making
88208         a directory that is about to be chowned.  Such a directory's
88209         initial file permissions should permit the owner only and this
88210         should not be changed until after the chown, since the group and
88211         other bits would be incorrect if they granted permission before
88212         the chown.
88214         Fix porting problem for iswctype reported by Georg Schwarz in:
88215         http://lists.gnu.org/archive/html/bug-coreutils/2006-12/msg00017.html
88216         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Require HAVE_ISWCTYPE, too.
88217         * lib/regex_internal.h (RE_ENABLE_I18N): Likewise.
88218         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for iswctype, too.
88219         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
88221 2006-12-03  Jim Meyering  <jim@meyering.net>
88223         * lib/fts.c (fts_load): Don't set sp->fts_dev here, since
88224         p->fts_statp may not yet be defined.
88225         (fts_read): Instead, set it in the caller, once p->fts_statp is
88226         sure to be defined, and corresponds to a top-level directory.
88227         This bug made du -x fail.  Here's the coreutils test case:
88228         http://git.sv.gnu.org/gitweb/?p=coreutils.git;a=commit;h=ba45154d8e9f
88229         Reported by Mike Frysinger.
88231 2006-12-01  Jim Meyering  <jim@meyering.net>
88233         * modules/savewd (Depends-on): Add fcntl_h to avoid self-test
88234         build failure due to missing definition of HAVE_WORKING_O_NOFOLLOW.
88235         Reported by Simon Josefsson.
88237 2006-11-30  Jim Meyering  <jim@meyering.net>
88239         * m4/warning.m4: Use the all-permissive copyright notice
88240         recommended by RMS (rather than LGPL).
88241         * m4/vararrays.m4: Likewise.
88242         * m4/flexmember.m4: Likewise.
88244 2006-11-29  Bruno Haible  <bruno@clisp.org>
88246         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
88247         noinst_LIBRARIES. Augment noinst_LIBRARIES and noinst_LTLIBRARIES
88248         using +=.
88249         Reported by Simon Josefsson <simon@josefsson.org>.
88251 2006-11-28  James Youngman  <jay@gnu.org>
88253         * README: Advise users that they might find the bug-gnulib@gnu.org
88254         and autotools-announce@gnu.org mailing lists useful.
88256 2006-11-28  Bruno Haible  <bruno@clisp.org>
88258         * m4/ptrdiff_max.m4: Remove file.
88260 2006-11-21  Bruno Haible  <bruno@clisp.org>
88262         * m4/eoverflow.m4 (gl_EOVERFLOW): Use AC_COMPUTE_INT instead of
88263         _AC_COMPUTE_INT.
88264         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
88265         * m4/ptrdiff_max.m4 (gl_PTRDIFF_MAX): Use AC_COMPUTE_INT instead of
88266         _AC_COMPUTE_INT.
88267         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
88268         * m4/size_max.m4 (gl_SIZE_MAX): Use AC_COMPUTE_INT instead of
88269         _AC_COMPUTE_INT.
88270         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
88272 2006-11-28  Jim Meyering  <jim@meyering.net>
88274         * lib/regcomp.c (parse_branch): Rename local, exp->expr, to avoid
88275         warning from "gcc -Wshadow" about shadowing the builtin.
88277 2006-11-27  Bruno Haible  <bruno@clisp.org>
88279         * m4/stdint.m4 (gl_STDINT_BITSIZEOF): Use AC_COMPUTE_INT instead of
88280         _AC_COMPUTE_INT.
88281         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
88283 2006-11-27  Bruno Haible  <bruno@clisp.org>
88284             Paul Eggert  <eggert@cs.ucla.edu>
88286         * lib/regex.h (__restrict_arr): Redo logic of #if, for clarity.
88288 2006-11-26  Bruno Haible  <bruno@clisp.org>
88290         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
88291         noinst_LTLIBRARIES.
88293 2006-11-27  Paul Eggert  <eggert@cs.ucla.edu>
88294             Bruno Haible  <bruno@clisp.org>
88296         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Define to 0
88297         if compiling with "gcc -ansi".
88299 2006-11-26  Paul Eggert  <eggert@cs.ucla.edu>
88301         Fix some incompatibilities with gcc -ansi -pedantic.
88302         * lib/regex.h (__restrict_arr): Don't use the [restrict] syntax
88303         if compiling pedantically with GCC, unless it's C99 or later.
88304         Don't trust sys/cdefs.h's definition of __restrict_arr, either, as
88305         it mishandles gcc -ansi -pedantic as well.
88306         * lib/regex_internal.h (re_token_t): Don't use enum bitfields
88307         if gcc -pedantic.
88308         * lib/regexec.c (check_node_accept_bytes): Don't use auto
88309         initializers for struct if -pedantic, unless it's C99 or later.
88311 2006-11-25  Nix  <nix@esperi.org.uk>  (tiny change)
88313         * m4/fcntl_h.m4 (gl_FCNTL_H): Test the atime, not the mtime.
88314         Don't close an fd more than once. Identical atimes indicate
88315         success, not failure.
88317 2006-11-22  Robinson Mittmann  <bob@hoplon.com>  (tiny change)
88319         * lib/sincosl.c (kernel_sinl): Fix typo in threshold.
88321 2006-11-23  Jim Meyering  <jim@meyering.net>
88323         * build-aux/announce-gen: New file.  From coreutils.
88325 2006-11-22  Jim Meyering  <jim@meyering.net>
88327         Work around a compile-time error from the HP-UX 11.00 /bin/cc.
88328         * lib/fts.c (enum Fts_stat): Give this previously-anon enum a name.
88329         (fts_read): Use a temporary to narrow the overused st_size member
88330         before using it in a switch statement.  Reported by Matthew Woehlke.
88332         * m4/clock_time.m4 (gl_CLOCK_TIME): Quote AC_SUBST argument.
88333         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
88335 2006-11-20  Bruno Haible  <bruno@clisp.org>
88337         * gettext.m4 (AM_GNU_GETTEXT): Revert 2005-07-28 patch: Use
88338         changequote instead of pairs of brackets.
88339         Reported by Andreas Schwab <schwab@suse.de>.
88341 2006-11-21  Jim Meyering  <jim@meyering.net>
88343         * lib/fts.c (fts_safe_changedir): Move a declaration "up",
88344         so as to remain compatible with older compilers.
88345         Patch from Michael Deutschmann.
88347 2006-11-20  Paul Eggert  <eggert@cs.ucla.edu>
88349         * MODULES.html.sh (File system functions): Add openat.
88351         * lib/openat.h (rpl_fstatat): New macro, if
88352         [HAVE_OPENAT && ! LSTAT_FOLLOWS_SLASHED_SYMLINK.
88353         (fstatat): Define to rpl_fstatat under the same conditions,
88354         unless COMPILING_FSTATAT.
88355         * m4/openat.m4 (gl_FUNC_OPENAT): Compile fstatat.c too, if fstatat
88356         seems to have the bug.
88357         * lib/fstatat.c: New file.
88358         * modules/openat (Files): Add it.
88360 2006-11-20  Bruno Haible  <bruno@clisp.org>
88362         * Makefile: New file.
88364 2006-11-20  Jim Meyering  <jim@meyering.net>
88366         The beginnings of syntax-related checks for gnulib.
88367         * lib/Makefile: New file.
88368         * lib/t-idcache: New script.  Ensure that the two halves of
88369         idcache.c stay in sync.
88371         * lib/idcache.c: Adjust comments in user- and group- portions to
88372         be more accurate, and to be consistent with one another.
88374 2006-11-20  Jim Meyering  <jim@meyering.net>
88376         * lib/idcache.c: Restore most of the 2006-11-06 patch, so as to
88377         continue using the flexible array member (thus, this module performs
88378         half as many malloc calls), with the addition that...
88379         (getgroup, getuser): Consistently record a non-match via an empty
88380         "name" string, and map an empty string match to a NULL return value.
88381         * modules/idcache (Depends-on): Re-add flexmember.
88383         * lib/idcache.c (getuser): Remove all uses of the register keyword.
88384         (getuidbyname, getgroup, getgidbyname): Likewise.
88386         Use cleaner syntax: NULL rather than 0.
88387         * lib/idcache.c (getuidbyname, getgidbyname): Return NULL, not 0.
88389 2006-11-20  Paul Eggert  <eggert@cs.ucla.edu>
88391         * lib/idcache.c: Undo most recent patch, dated 2006-11-06.
88392         It mishandled the case where the group was missing.
88393         Problem reported by Greg Schafer.
88394         * modules/idcache: Likewise.
88396 2006-11-18  Jim Meyering  <jim@meyering.net>
88398         * check-module (%exempt_header): Add exception for some
88399         conditionally-included headers.
88401         * modules/i-ring (Depends-on): Add verify.
88402         (License): Change to LGPL.
88404 2006-11-16  Paul Eggert  <eggert@cs.ucla.edu>
88406         * modules/getaddrinfo (Depends-on): Remove inttostr; add snprintf.
88407         * lib/getaddrinfo.c: Include snprintf.h rather than intprops.h
88408         and inttostr.h.  Use snprintf rather than uinttostr, so that
88409         LGPLed code doesn't depend on GPLed.
88411 2006-11-17  Paul Eggert  <eggert@cs.ucla.edu>
88413         * modules/inline (License): Change from GPL to LGPL.
88415 2006-11-17  Jim Meyering  <jim@meyering.net>
88417         * modules/d-type (License): Switch to LGPL.
88419 2006-11-15  Bruno Haible  <bruno@clisp.org>
88421         * m4/alloca.m4 (gl_FUNC_ALLOCA): Fix the AC_CACHE_CHECK message.
88423 2006-11-15  Eric Blake  <ebb9@byu.net>
88425         * m4/allocsa.m4 (gl_ALLOCSA): Don't invoke macro already picked up by
88426         the module dependency.
88428 2006-11-15  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
88429             Bruno Haible  <bruno@clisp.org>
88431         * gnulib-tool (func_create_testdir): Add license consistency check.
88433 2006-11-15  Eric Blake  <ebb9@byu.net>
88435         * m4/alloca.m4 (gl_FUNC_ALLOCA): Use AC_CACHE_CHECK to avoid a
88436         random "(cached)" in configure output.
88438 2006-11-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
88440         * m4/inttypes.m4 (gl_INTTYPES_H): Use AC_CACHE_CHECK so that the
88441         test for conforming inttypes.h is both announced and cached.
88443         * MODULES.html.sh (seen_modules, seen_files): New variables.
88444         (func_module): Rewrite to use a few less gnulib-tool and sed
88445         invocations.  Avoid a couple of quadratic algorithms for ...
88446         (missed_modules, missed_files): ... these, with ...
88447         (func_append, func_tmpdir): ... these new functions, from
88448         gnulib-tool.  Analogously, install traps for cleanup.
88450         * tests/test-gc.c (main): Remove unused variables.
88451         * tests/test-read-file.c: Include stdlib.h, for 'free'.
88453 2006-11-14  Paul Eggert  <eggert@cs.ucla.edu>
88455         * modules/inttostr (License): Change to LGPL.
88457 2006-11-14  Eric Blake  <ebb9@byu.net>
88459         * modules/tempname (License): Change to LGPL.
88461 2006-11-14  Eric Blake  <ebb9@byu.net>
88463         * doc/functions.texi (Function Portability): *printf functions on
88464         Cygwin now understand all POSIX size specifiers.
88466 2006-11-14  Bruno Haible  <bruno@clisp.org>
88468         * modules/c-ctype (License): Change to LGPL.
88470 2006-11-12  Bruno Haible  <bruno@clisp.org>
88472         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
88473         AC_LIB_LINKFLAGS_BODY): Also set a LIB${NAME}_PREFIX variable. Needed
88474         for GNOME libraries, for which the include files are installed in
88475         subdirectories of $prefix/include.
88477 2006-11-12  Bruno Haible  <bruno@clisp.org>
88479         * m4/lib-link.m4: Require at least autoconf-2.54.
88480         (AC_LIB_LINKFLAGS_BODY) [autoconf < 2.61]: Turn dots into the library
88481         name to underscores for the --with option.
88483 2006-11-13  Bruno Haible  <bruno@clisp.org>
88485         * gnulib-tool (func_create_testdir): Set gl_source_base correctly in
88486         the tests directory.
88487         Reported by Ralf Wildenhues.
88489 2006-11-13  Bruno Haible  <bruno@clisp.org>
88491         * gnulib-tool (func_emit_initmacro_start): Also override AC_LIBSOURCES.
88492         (func_emit_initmacro_end): Undo the override here.
88493         (func_emit_initmacro_done): Emit a definition for gl_LIBSOURCES.
88494         Works around the famous automake error in coreutils.
88496 2006-11-13  Eric Blake  <ebb9@byu.net>
88498         * lib/gl_anytree_oset.h (gl_tree_search_atleast): Return the
88499         element, not its node.
88501 2006-11-12  Bruno Haible  <bruno@clisp.org>
88503         * gnulib-tool (func_emit_lib_Makefile_am): Replace occurrences of
88504         '$(top_srcdir)/build-aux/', taking into account the real auxdir.
88506 2006-11-12  Bruno Haible  <bruno@clisp.org>
88508         * gnulib-tool: New option --local-symlink.
88509         (func_usage): Document it.
88510         (lsymbolic): New variable.
88511         (func_import, func_create_testdir): If --symlink was not specified,
88512         test whether --local-symlink was specified and the file comes from
88513         the local_gnulib_dir.
88515 2006-11-12  Bruno Haible  <bruno@clisp.org>
88517         * gnulib-tool (func_ln): New function.
88518         (func_ln_if_changed, func_create_testdir): Use it instead of "ln -s".
88520 2006-11-12  Bruno Haible  <bruno@clisp.org>
88522         Finish support for source files in subdirectories.
88523         * gnulib-tool (func_emit_lib_Makefile_am): If some of the source files
88524         are in subdirectories, set uses_subdirs and add 'subdir-objects' to
88525         AUTOMAKE_OPTIONS.
88526         (func_import, func_create_testdir): Invoke AM_PROG_CC_C_O in this case.
88528 2006-11-12  Bruno Haible  <bruno@clisp.org>
88530         * gnulib-tool (func_get_automake_snippet): Synthesize also an
88531         EXTRA_lib_SOURCES augmentation.
88532         (func_emit_lib_Makefile_am): Initialize EXTRA_lib..._SOURCES to empty.
88534 2006-11-12  Jim Meyering  <jim@meyering.net>
88536         Make fts (in FTS_CWDFD mode) more efficient by caching a few open
88537         file descriptors.  This also averts a failure on systems with
88538         native openat support when a traversed directory lacks "x" access.
88539         * lib/fts_.h: Include "i-ring.h"
88540         (struct FTS) [fts_fd_ring]: New member.
88541         * lib/fts.c (RESTORE_INITIAL_CWD): Also call fd_ring_clear.
88542         (FCHDIR): Add parentheses.
88543         (fd_ring_check, fd_ring_print) [!FTS_DEBUG]: Define away.
88544         (cwd_advance_fd): Add a 3rd parameter.  Adjust all callers.
88545         When descending, rather than simply closing the previous
88546         fts_cwd_fd value, push that file descriptor onto the ring.
88547         (same_fd, fd_ring_print, fd_ring_check) [FTS_DEBUG]: New functions.
88548         (fts_open): Initialize the new fd_ring member.
88549         (fts_close): Clear the ring.
88550         (fts_safe_changedir): When possible, use our new fd_ring to skip
88551         the diropen and fstat and dev/ino comparison that would normally
88552         accompany a virtual `chdir ("..")'.
88554         * modules/fts (Depends-on): Add i-ring.
88555         * modules/i-ring: New module.
88556         * lib/i-ring.c, lib/i-ring.h, lib/i-ring-test.c: New files.
88557         * m4/i-ring.m4: New file.
88559 2006-11-12  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
88561         * gnulib-tool (func_create_testdir): Fix replacement of
88562         `build-aux' in configure.ac.  Run autotools in gltests
88563         subdirectory.
88564         (func_create_testdir, func_create_megatestdir, test): There is
88565         no need for '--force' in most autotool invocations in a new
88566         tree.  Actually fail the whole test if any of the tools, or the
88567         configure or make stages fail.
88569         Sync from Automake.
88570         * build-aux/gnupload: Revert last change.  Add pointer to upload
88571         instructions of the GNU Maintenance Instructions.
88572         Suggestion by Karl Berry.
88574 2006-11-10  Jim Meyering  <jim@meyering.net>
88576         * lib/fts.c [FTS_DEBUG]: Don't try to print a pointer via %s.
88578 2006-11-09  Paul Eggert  <eggert@cs.ucla.edu>
88580         * lib/gettext.h (dgettext, dcgettext, ngettext) [! ENABLE_NLS]:
88581         (dngettext, dcngettext, bindtextdomain) [! ENABLE_NLS]:
88582         (bind_textdomain_codeset) [! ENABLE_NLS]:
88583         Evaluate all the arguments.  That way, callers get compatible behavior
88584         if the arguments have side effects.  Also, it avoids some GCC
88585         diagnostics in some cases; Joel E. Denny reported problems when Bison
88586         was configured with --enable-gcc-warnigs.
88588 2006-11-10  Jim Meyering  <jim@meyering.net>
88590         * m4/inline.m4 (gl_INLINE): Check with the compiler, not cpp, so that
88591         relevant options in CFLAGS (like -O, -fno-inline) are taken into
88592         account.
88594 2006-11-10  Jim Meyering  <jim@meyering.net>
88596         * modules/inline: New file/module.
88597         * modules/xalloc (Files): Remove m4/inline.m4.
88598         (Depends-on): Add inline, instead.
88599         * modules/oset: Likewise.
88600         * modules/list: Likewise.
88602 2006-11-09  Paul Eggert  <eggert@cs.ucla.edu>
88604         * lib/stdint_.h (uintmax_t): Fix typo: int64_t -> uint64_t.
88605         Problem reported by Matthew Woehlke.
88607 2006-11-09  Bruno Haible  <bruno@clisp.org>
88609         * lib/tempname.c (gen_tempname): Remove variant that invokes
88610         __gen_tempname.
88611         * m4/tempname.m4 (gl_FUNC_GEN_TEMPNAME): Don't test for
88612         __gen_tempname.
88614 2006-11-08  Bruno Haible  <bruno@clisp.org>
88616         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Set ac_cv_type_long_long_int
88617         to 'yes' instead of 'cross-compiling'.
88619 2006-11-08  Paul Eggert  <eggert@cs.ucla.edu>
88621         * lib/quotearg.h (quotearg_free): New decl.
88622         * lib/quotearg.c (quotearg_free): New function.
88623         (slot0, nslots, slotvec0, slotvec):
88624         Now file-scope so that quotearg_free can get at them.
88626 2006-11-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
88628         Sync from Automake.
88629         * build-aux/gnupload: Add missing 'gnu' to example URL.
88630         Report by Karl Berry.
88632 2006-11-08  Bruno Haible  <bruno@clisp.org>
88634         * m4/inline.m4 (gl_INLINE): Also test __NO_INLINE__.
88635         Suggested by Paul Eggert.
88637 2006-11-08  Jim Meyering  <jim@meyering.net>
88639         * lib/fts.c [!_LGPL_PACKAGE]: Don't include fcntl--.h twice.
88640         It's already included if !_LIBC.
88641         (fts_safe_changedir): Add a comment.
88643 2006-11-07  Paul Eggert  <eggert@cs.ucla.edu>
88645         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Detect bug in
88646         Tandem NonStop Kernel (OSS) cc -O circa 2004, reported by
88647         Matthew Woehlke.
88649         * lib/xalloc.h (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): Move
88650         definitions up, to avoid colliding with change below.
88651         (static_inline) [HAVE_INLINE]: New macro.
88652         (xnmalloc, xnrealloc, x2nrealloc, xcharalloc):
88653         Provide extern decls when !HAVE_INLINE.  Do not define unless
88654         static_inline is defined, either by us or by xmalloc.c.  Use
88655         static_inline rather than static inline.
88656         (XCALLOC): Optimize sizeof(T) = 1 case.
88657         * lib/xmalloc.c (static_inline) [!HAVE_INLINE]: New macro.
88659 2006-11-07  Bruno Haible  <bruno@clisp.org>
88661         * lib/xalloc.h (XNMALLOC): Restore optimization of sizeof(T) = 1 case.
88662         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Require gl_INLINE instead of
88663         AC_C_INLINE.
88664         * modules/xalloc (Files): Add m4/inline.m4.
88666 2006-11-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
88668         * README: Fix typo.
88669         * doc/gnulib.texi (Miscellaneous Notes): Likewise, rename...
88670         (Miscellanous Notes): ...from this.
88672 2006-11-07  Paul Eggert  <eggert@cs.ucla.edu>
88674         * m4/flexmember.m4 (AC_C_FLEXIBLE_ARRAY_MEMBER):
88675         Mention that offsetof should be used instead of sizeof.
88676         From Bruno Haible.
88678 2006-11-07  Bruno Haible  <bruno@clisp.org>
88680         * lib/w32spawn.h (prepare_spawn): Use XNMALLOC instead of xmalloc.
88682 2006-11-06  Paul Eggert  <eggert@cs.ucla.edu>
88684         Simplify xmalloc expressions. Add overflow check in xmalloc arguments.
88685         * lib/gl_anyavltree_list2.h (create_subtree_with_contents):
88686         (gl_tree_create, gl_tree_add_first, gl_tree_add_last):
88687         (gl_tree_add_before, gl_tree_add_after):
88688         Use XMALLOC instead of xmalloc, and XCALLOC instead of xzalloc.
88689         * lib/gl_anyhash_list2.h (hash_resize): Likewise.
88690         * lib/gl_anylinked_list2.h (gl_linked_create_empty, gl_linked_create):
88691         (gl_linked_add_first, gl_linked_add_last, gl_linked_add_before):
88692         (gl_linked_add_after, gl_linked_add_at): Likewise.
88693         * lib/gl_anyrbtree_list2.h (create_subtree_with_contents):
88694         (gl_tree_create, gl_tree_add_first, gl_tree_add_last):
88695         (gl_tree_add_before, gl_tree_add_after): Likewise.
88696         * lib/gl_anytree_list2.h (gl_tree_create_empty): Likewise.
88697         * lib/gl_anytree_oset.h (gl_tree_create_empty): Likewise.
88698         * lib/gl_anytreehash_list1.h (add_to_bucket): Likewise.
88700 2006-11-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
88702         * lib/gl_oset.h: Use C comment style, not C++ comment style.
88704 2006-11-06  Bruno Haible  <bruno@clisp.org>
88706         * m4/inline.m4: New file.
88707         * m4/gl_list.m4 (gl_LIST): Require gl_INLINE.
88708         * modules/list (Files): Add m4/inline.m4.
88709         * modules/oset (Files): Likewise.
88711 2006-11-06  Paul Eggert  <eggert@cs.ucla.edu>
88713         * lib/idcache.c: Include <stddef.h>, for offsetof.
88714         (struct userid.name): Change from char * to a flexible array member.
88715         All uses changed.
88716         * modules/idcache (Depends-on): Add flexmember.
88718         * MODULES.html.sh (Core language properties): New module flexmember.
88719         * modules/flexmember, m4/flexmember.m4: New files.
88721         * lib/xalloc.h (xnmalloc, xnrealloc, x2nrealloc): Now static
88722         inline functions that are identical with the old xnmalloc_inline,
88723         xnrealloc_inline, x2nrealloc_inline of lib/xmalloc.c.  This is so
88724         that we can avoid some unnecessary integer multiplications and
88725         divisions in the common case where the element size is known at
88726         compile time.
88727         (XNMALLOC) [HAVE_INLINE]: Remove special case, which is no longer
88728         needed.
88729         (xnboundedmalloc): Remove.
88730         (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): Use lower-case letters for
88731         arguments, for consistency with rest of this header.
88732         (xcharalloc): Rewrite using XNMALLOC.
88733         * lib/xmalloc.c (xnmalloc_inline, xnmalloc, xnrealloc_inline):
88734         (xnrealloc, x2nrealloc_inline, x2nrealloc): Remove.  The *_inline
88735         versions have been moved to lib/xalloc.h and renamed to be the
88736         non-*_inline versions.
88737         (xmalloc, xrealloc): Implement without reference to the xnmalloc
88738         and xnrealloc functions, since those functions are now inline and
88739         now call us.
88740         (x2realloc): Invoke x2realloc, not x2realloc_inline, to accommodate
88741         renaming described above.
88742         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Remove AC_C_INLINE since
88743         xmalloc.c no longer uses inline directly.  gl_PREREQ_XALLOC now
88744         captures the dependency in AC_C_INLINE.
88746         New module canonicalize-lgpl, proposed by Charles Wilson in
88747         <http://lists.gnu.org/archive/html/bug-gnulib/2006-11/msg00020.html>
88748         with a few small changes afterwards.
88749         * MODULES.html.sh (File system functions): New module
88750         canonicalize-lgpl.
88751         * lib/canonicalize.h: Add comments for canonicalize_filename_mode
88752         and canonicalize_file_name.
88753         * lib/canonicalize-lgpl.c, m4/canonicalize-lgpl.m4:
88754         * modules/canonicalize-lgpl: New files.
88756 2006-11-05  Bruno Haible  <bruno@clisp.org>
88758         * gnulib-tool (func_import, func_create_testdir): Create directories
88759         also for files in subdirectories of lib/.
88761 2006-11-05  Bruno Haible  <bruno@clisp.org>
88763         * lib/gl_array_list.c (gl_array_iterator_next): Make pointer decrement
88764         ANSI C compliant.
88766 2006-11-03  Bruno Haible  <bruno@clisp.org>
88768         Simplify xmalloc expressions. Add overflow check in xmalloc arguments.
88769         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Require AC_C_INLINE.
88770         * lib/xalloc.h (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): New macros.
88771         (xnboundedmalloc): New inline function.
88772         * lib/classpath.c (new_classpath): Use XNMALLOC instead of xmalloc.
88773         * lib/clean-temp.c (create_temp_dir): Use XNMALLOC, XMALLOC instead of
88774         xmalloc.
88775         * lib/concatpath.c (concatenated_pathname): Use XNMALLOC instead of
88776         xmalloc.
88777         * lib/fatal-signal.c (at_fatal_signal): Use XNMALLOC instead of xmalloc.
88778         * lib/findprog.c (find_in_path): Use XNMALLOC instead of xmalloc.
88779         * lib/gl_array_list.c (gl_array_create_empty): Use XMALLOC instead of
88780         xmalloc.
88781         (gl_array_create): Use XNMALLOC, XMALLOC instead of xmalloc.
88782         * lib/gl_array_oset.c (gl_array_create_empty): Use XNMALLOC instead of
88783         xmalloc.
88784         * lib/gl_avltree_oset.c (gl_tree_add_first, gl_tree_add_before,
88785         gl_tree_add_after): Use XMALLOC instead of xmalloc.
88786         * lib/gl_carray_list.c (gl_carray_create_empty): Use XMALLOC instead of
88787         xmalloc.
88788         (gl_carray_create): Use XNMALLOC, XMALLOC instead of xmalloc.
88789         * lib/gl_rbtree_oset.c (gl_tree_add_first, gl_tree_add_before,
88790         gl_tree_add_after): Use XMALLOC instead of xmalloc.
88791         * lib/gl_sublist.c (gl_sublist_create): Use XMALLOC instead of xmalloc.
88792         * lib/pagealign_alloc.c (new_memnode): Use XMALLOC instead of xmalloc.
88793         * lib/sh-quote.c (shell_quote_argv): Use XNMALLOC instead of xmalloc.
88794         * lib/xvasprintf.c (xstrcat): Use XNMALLOC instead of xmalloc.
88796 2006-11-03  Bruno Haible  <bruno@clisp.org>
88798         * lib/c-ctype.h [C++]: Define functions without name mangling.
88799         * lib/fwriteerror.h [C++]: Likewise.
88800         * lib/gcd.h [C++]: Likewise.
88801         * lib/linebreak.h [C++]: Likewise.
88803 2006-11-03  Paul Eggert  <eggert@cs.ucla.edu>
88805         * lib/canonicalize.h: (canonicalize_mode_t, CAN_EXISTING):
88806         (CAN_ALL_BUT_LAST, CAN_MISSING, canonicalize_filename_mode):
88807         Define only if PROVIDE_CANONICALIZE_FILENAME_MODE is defined.
88808         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME):
88809         Check for functions and headers just once.
88810         Check for declaration of canonicalize_file_name.
88811         Define PROVIDE_CANONICALIZE_FILENAME_MODE.
88813 2006-11-02  Charles Wilson  <cygwin@cwilson.fastmail.fm>
88815         * gnulib-tool (func_import): Fix typo in actioncmd.
88817 2006-11-02  Bruno Haible  <bruno@clisp.org>
88819         * gnulib-tool (func_get_automake_snippet): Interpret a backslash-
88820         newline sequence in the Makefile.am snippet as a space, like "make"
88821         does.
88822         Reported by Roger Persson <perrog@gmail.com>.
88824 2006-11-01  Bruno Haible  <bruno@clisp.org>
88826         * m4/strcase.m4 (gl_FUNC_STRNCASECMP): Check whether strncasecmp is
88827         already declared in <string.h>.
88828         * lib/strcase.h (strncasecmp): Don't declare it if yes.
88830 2006-11-01  Bruno Haible  <bruno@clisp.org>
88832         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Don't define strcasecmp here.
88833         * lib/strcase.h: Include <string.h>.
88834         (strcasecmp): Define to rpl_strcasecmp here.
88836 2006-11-01  Bruno Haible  <bruno@clisp.org>
88838         * lib/printf-parse.c (PRINTF_PARSE): Cast malloc/realloc results.
88840 2006-11-01  Eric Blake  <ebb9@byu.net>
88842         * lib/mkstemp-safer.c (mkstemp_safer): Allow C++ compilation.
88844         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Allow C++ configuration.
88846 2006-10-29  Bruno Haible  <bruno@clisp.org>
88848         Make it compile in C++ mode.
88849         * lib/full-write.c (full_rw): Add a cast.
88851 2006-11-01  Bruno Haible  <bruno@clisp.org>
88853         * gnulib-tool (func_get_automake_snippet): Change sed_combine_lines to
88854         be POSIX compliant.
88855         Reported by Roger Persson <perrog@gmail.com>.
88857 2006-11-01  Eric Blake  <ebb9@byu.net>
88859         * lib/getopt_.h: Fix comments.
88861 2006-10-31  Eric Blake  <ebb9@byu.net>
88863         * modules/tmpdir (Depends-on): Add sys_stat.
88864         * modules/mkdtemp (Depends-on): Add tempname, drop unistd.
88865         * lib/mkdtemp.c (gen_tempname): Remove; tempname covers this.
88866         * lib/tmpdir.c (S_ISDIR): Simplify, thanks to sys_stat.
88867         * m4/mkdtemp.m4 (gl_PREREQ_MKDTEMP): Simplify, thanks to
88868         tempname.
88870 2006-10-31  Paul Eggert  <eggert@cs.ucla.edu>
88872         Avoid some C++ diagnostics reported by Bruno Haible.
88873         * lib/quotearg.c (clone_quoting_options): Use xmemdup rather than
88874         xmalloc.
88875         (quotearg_alloc): Use xcharalloc rather than xmalloc.
88876         (struct slotvec): Move to top level.
88877         (quotearg_n_options): Rewrite to avoid xmalloc.
88878         * lib/xalloc.h (xcharalloc): New function.
88879         * (xrealloc, xnrealloc, x2realloc, x2nrealloc, xmemdup):
88880         [defined __cplusplus]: Add function template that provides result
88881         type propagation.  This part of the change is from Bruno Haible.
88883 2006-10-29  Bruno Haible  <bruno@clisp.org>
88885         Make it compile in C++ mode.
88886         * lib/striconv.c (mem_cd_iconv): Cast malloc/realloc result.
88887         * lib/strnlen1.c (strnlen1): Cast memchr result.
88888         * lib/mbchar.h (mb_copy): Rename arguments to 'new_mbc', 'old_mbc'.
88889         * lib/clean-temp.c (string_equals, string_hash): Add casts.
88890         (create_temp_dir): Rename local variable 'template'.
88891         (compile_csharp_using_sscli): Add cast.
88892         * lib/fatal-signal.c (at_fatal_signal): Cast xmalloc result.
88893         * lib/findprog.c (find_in_path): Likewise.
88894         * lib/linebreak.c (mbs_width_linebreaks): Cast malloc result.
88895         * lib/wait-process.c (register_slave_subprocess): Likewise.
88897 2006-10-22  Bruno Haible  <bruno@clisp.org>
88899         * modules/tsearch: New file.
88900         * lib/tsearch.h: New file.
88901         * lib/tsearch.c: New file, from glibc-2.5 with small modifications.
88902         * m4/tsearch.m4: New file.
88903         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add tsearch.
88905 2006-10-29  Eric Blake  <ebb9@byu.net>
88907         * lib/arcfour.c: Assume config.h.
88908         * lib/arctwo.c: Likewise.
88909         * lib/base64.c: Likewise.
88910         * lib/check-version.c: Likewise.
88911         * lib/crc.c: Likewise.
88912         * lib/des.c: Likewise.
88913         * lib/gc-gnulib.c: Likewise.
88914         * lib/gc-libgcrypt.c: Likewise.
88915         * lib/gc-pbkdf2-sha1.c: Likewise.
88916         * lib/getaddrinfo.c: Likewise.
88917         * lib/getdelim.c: Likewise.
88918         * lib/getline.c: Likewise.
88919         * lib/hmac-md5.c: Likewise.
88920         * lib/hmac-sha1.c: Likewise.
88921         * lib/iconvme.c: Likewise.
88922         * lib/md2.c: Likewise.
88923         * lib/md4.c: Likewise.
88924         * lib/memxor.c: Likewise.
88925         * lib/read-file.c: Likewise.
88926         * lib/readline.c: Likewise.
88927         * lib/rijndael-alg-fst.c: Likewise.
88928         * lib/rijndael-api-fst.c: Likewise.
88929         * lib/xgetdomainname.c: Likewise.
88931 2006-10-28  Eric Blake  <ebb9@byu.net>
88933         * lib/xstrndup.c: Assume config.h.
88935 2006-10-27  Paul Eggert  <eggert@cs.ucla.edu>
88937         Move stat.h-substitute stuff from lib/stat-macros.h to lib/stat_.h.
88938         stat-macros.h is now for our own macros, whereas stat_h is for
88939         macros in the <sys/stat.h> name space.
88940         * lib/stat-macros.h: Remove copyright notice, as this file is now tiny.
88941         (STAT_MACROS_H): Remove.
88942         (S_IFMT, S_ISBLK, S_ISCHR, S_ISDIR, S_ISFIFO, S_ISLNK, S_ISNAM):
88943         (S_ISMPB, S_ISMPC, S_ISNWK, S_ISREG, S_ISSOCK, S_ISDOOR, S_ISPORT):
88944         (S_TYPEISMQ, S_TYPEISTMO, S_TYPEISSEM, S_TYPEISSHM, S_ISCTG, S_ISOFD):
88945         (S_ISOFL, S_ISWHT, S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IRGRP):
88946         (S_IROTH, S_IWUSR, S_IWGRP, S_IWOTH, S_IXUSR, S_IXGRP, S_IXOTH):
88947         (S_IRWXU, S_IRWXG, S_IRWXO, S_IXUGO, S_IRWXUGO):
88948         Move these macros to ...
88949         * lib/stat_.h: here.  Don't include stat-macros.h.
88950         * lib/canonicalize.c: Don't include stat-macros.h.
88951         * lib/chown.c: Likewise.
88952         * lib/euidaccess.c: Likewise.
88953         * lib/file-type.c: Likewise.
88954         * lib/filemode.c: Likewise.
88955         * lib/glob.c: Likewise.
88956         * lib/isapipe.c: Likewise.
88957         * lib/lchown.c: Likewise.
88958         * lib/lstat.c: Likewise.
88959         * lib/mkdir-p.c: Likewise.
88960         * lib/rmdir.c: Likewise.
88961         * m4/lchown.m4 (gl_FUNC_LCHOWN): Don't require gl_STAT_MACROS.
88962         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Don't check for io.h
88963         unless mkdir isn't declared, to speed up 'configure'.
88964         Always create sys/stat.h, since it's unlikely any real sys/stat.h
88965         would define all the S_* symbols.
88966         * modules/canonicalize (Depends-on):
88967         Depend on sys_stat, not stat-macros.
88968         * modules/chown: Likewise.
88969         * modules/euidaccess: Likewise.
88970         * modules/filemode: Likewise.
88971         * modules/file-type: Likewise.
88972         * modules/glob: Likewise.
88973         * modules/isapipe: Likewise.
88974         * modules/lchown: Likewise.
88975         * modules/lstat: Likewise.
88976         * modules/mkancesdirs: Likewise.
88977         * modules/rmdir: Likewise.
88978         * modules/mkdir-p (Depends-on): Also depend on sys_stat.
88979         * modules/modechange: Likewise.
88980         * modules/stat-macros (Files): Remove m4/stat-macros.m4.
88981         (configure.ac): Remove gl_STAT_MACROS.
88982         * modules/sys_stat (Depends-on): Remove stat-macros.
88984 2006-10-27  Bruno Haible  <bruno@clisp.org>
88986         * m4/signed.m4: Remove file.
88987         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_ARGS_: Remove bh_C_SIGNED
88988         invocation.
88989         * modules/vasnprintf (Files): Remove m4/signed.m4.
88991 2006-10-27  Bruno Haible  <bruno@clisp.org>
88993         Update to GNU gettext 0.16.
88994         * modules/gettext (Files): Add m4/intl.m4, m4/intldir.m4. Remove
88995         m4/inttypes-h.m4, m4/signed.m4.
88996         * m4/gettext.m4: Update to GNU gettext 0.16.
88997         * m4/intl.m4: New file, from GNU gettext.
88998         * m4/intldir.m4: New file, from GNU gettext.
88999         * config/srclist.txt: Update
89001 2006-10-27  Eric Blake  <ebb9@byu.net>
89003         * MODULES.html.sh: Document tempname.
89004         * modules/mkstemp (Depends-on): Add tempname, and drop transitive
89005         dependencies.
89006         (Files): Move lib/tempname.c...
89007         * modules/tempname: ...to this new module.
89008         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Remove tempname checks.
89009         (gl_PREREQ_TEMPNAME): Move...
89010         * m4/tempname.m4: ...to this new file.
89011         * lib/mkstemp.c (includes) [!_LIBC]: Use tempname.h.
89012         * modules/sys_stat (Depends-on): Add stat-macros.
89013         * lib/stat_.h (includes): Pick up stat macros.
89014         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Replace <sys/stat.h>
89015         if stat macros are broken.
89016         * lib/tempname.c (includes): No need to include "stat-macros.h".
89017         (__gen_tempname) [!_LIBC]: Expose as gen_tempname.
89018         (direxists, __path_search) [!_LIBC]: Don't compile these in
89019         gnulib; the tmpdir module covers that.
89020         * lib/tempname.h: New file.
89022 2006-10-26  Paul Eggert  <eggert@cs.ucla.edu>
89024         * COPYING: Explain how gnulib-tool converts licence headers.
89025         Almost all wording by Eric Blake.
89027 2006-10-25  Paul Eggert  <eggert@cs.ucla.edu>
89029         * lib/mbchar.h (is_basic_table): Make read-only.
89030         * lib/mbchar.c (is_basic_table): Likewise.
89031         Reported by John Darrington.
89033 2006-10-25  Bruno Haible  <bruno@clisp.org>
89035         * lib/progname.h (set_program_name): Undefine before defining.
89037 2006-10-25  Bruno Haible  <bruno@clisp.org>
89039         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Define to
89040         false for non-gcc C++ compilers.
89041         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
89043 2006-10-24  Bruno Haible  <bruno@clisp.org>
89045         * lib/striconv.c (mem_cd_iconv, str_cd_iconv): Treat all non-GNU
89046         iconv implementations like Irix iconv.
89048 2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
89050         * modules/vararrays: New file.
89051         * m4/vararrays.m4: New file, taken from diffutils.
89052         * MODULES.html.sh: New module vararrays.
89054 2006-10-24  Karl Berry  <karl@gnu.org>
89056         * doc/gnulib-intro.texi: --- instead of --; non-naive naive.
89057         Don't call GNU Unix.
89059 2006-10-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
89061         * users.txt: Add Libtool.
89063         Sync from Libtool:
89065         2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
89067         * lib/argz.c: Remove check for HAVE_CONFIG_H, to conform
89068         to gnulib's policy of including config.h unconditionally.
89070 2006-10-24  Bruno Haible  <bruno@clisp.org>
89072         * modules/wcwidth (Files): Add m4/wint_t.m4.
89073         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Require gt_TYPE_WINT_T.
89074         * lib/wcwidth.h (iswprint): Use 'int' if 'wint_t' is not defined.
89076 2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
89078         * lib/getdate.y (yyerror): Make the arguments pointer-to-const,
89079         to pacify GCC with some -W flags enabled.  Problem reported by
89080         Bruno Haible.
89082 2006-10-24  Jim Meyering  <jim@meyering.net>
89084         * MODULES.html.sh: Remove uinttostr.  It's not a module.
89085         Reported by Karl Berry.
89087 2006-10-23  Bruno Haible  <bruno@clisp.org>
89089         * lib/fts.c (fts_build): Move variable declaration, for C89 compliance.
89091 2006-10-24  Bruno Haible  <bruno@clisp.org>
89093         * lib/gl_list.h: Use C comment style, not C++ comment style.
89095 2006-10-23  Eric Blake  <ebb9@byu.net>
89097         * lib/getaddrinfo.c (includes): Add missing include.
89099 2006-10-23  Bruno Haible  <bruno@clisp.org>
89100             Paul Eggert  <eggert@cs.ucla.edu>
89102         Ability to rename obstack_free.
89103         * lib/obstack.h (__obstack_free): New macro. Declare instead of
89104         obstack_free.
89105         (obstack_free): Invoke the __obstack_free macro.
89106         * lib/obstack.c (obstack_free): Use __obstack_free macro.
89108 2006-10-23  Bruno Haible  <bruno@clisp.org>
89109             Paul Eggert  <eggert@cs.ucla.edu>
89111         * lib/argp.h (argp_parse, __argp_parse): Comment out the identifiers
89112         __argc, __argv from the declaration. (They are defined as macros on
89113         mingw.)
89115 2006-10-22  Bruno Haible  <bruno@clisp.org>
89117         * doc/gnulib-intro.texi: New file.
89118         * doc/gnulib.texi: Include it.
89120 2006-10-21  Bruno Haible  <bruno@clisp.org>
89122         * doc/gnulib.texi: Split the chapter "Gnulib" into 3 chapters
89123         "Introduction", "Miscellanous Notes", "Particular Modules".
89125 2006-10-21  Bruno Haible  <bruno@clisp.org>
89127         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
89128         Change mostlyclean-local rule to avoid sh syntax error from bash
89129         versions 2.00..2.05 when $(MOSTLYCLEANDIRS) is empty.
89131 2006-10-23  Jim Meyering  <jim@meyering.net>
89133         * lib/getaddrinfo.c (getnameinfo): Use new lightweight uinttostr,
89134         in place of snprintf.
89136         * modules/inttostr (Files): Add lib/uinttostr.c.
89137         * lib/uinttostr.c (inttostr): New file/function.
89138         * lib/inttostr.h (uinttostr): Declare.
89139         * m4/inttostr.m4: Add AC_LIBOBJ([uinttostr]).
89140         * MODULES.html.sh (Numeric conversion functions <stdlib.h>):
89141         Add uinttostr.
89142         * modules/getaddrinfo (Depends-on): Remove snprintf.  Add inttostr.
89144 2006-10-21  Paul Eggert  <eggert@cs.ucla.edu>
89146         * lib/canonicalize.c (ELOOP): Define if not already defined.
89147         Problem reported by Bruno Haible in
89148         <http://lists.gnu.org/archive/html/bug-gnulib/2006-10/msg00282.html>.
89150 2006-10-21  Paul Eggert  <eggert@cs.ucla.edu>
89152         * lib/stdint_.h [defined _AIX]: Don't include <sys/types.h>.
89153         Problem reported by Perry Smith and Ville Laurikari.
89155         * lib/getndelim2.c (SSIZE_MAX): Use same defn that getdelim.c
89156         uses.
89158 2006-10-19  Bruno Haible  <bruno@clisp.org>
89160         * lib/getndelim2.c (SSIZE_MAX): Provide fallback definition. Needed
89161         for mingw.
89163 2006-10-19  Bruno Haible  <bruno@clisp.org>
89165         * lib/openat-priv.h (EOPNOTSUPP): Provide fallback definition.
89166         Needed for mingw.
89168 2006-10-19  Bruno Haible  <bruno@clisp.org>
89170         * m4/size_max.m4 (gl_SIZE_MAX): Cache the result.
89172 2006-10-19  Bruno Haible  <bruno@clisp.org>
89174         * m4/allocsa.m4 (gl_ALLOCSA): Invoke gl_FUNC_ALLOCA, don't AC_REQUIRE
89175         it.
89177 2006-10-19  Bruno Haible  <bruno@clisp.org>
89179         * m4/alloca.m4 (gl_FUNC_ALLOCA): Cache the result of the AC_EGREP_CPP
89180         invocation.
89182 2006-10-19  Bruno Haible  <bruno@clisp.org>
89184         * gnulib-tool (func_create_testdir): Don't include ftruncate and
89185         mountlist by default.
89187 2006-10-16  Bruno Haible  <bruno@clisp.org>
89189         * lib/c-strstr.c: Include c-strstr.h.
89191 2006-10-18  Charles Wilson  <cygwin@cwilson.fastmail.fm>
89193         * gnulib-tool: Don't clobber $sourcebase when $local_gnulib_dir ends
89194         in a slash.
89196 2006-10-18  Bruno Haible  <bruno@clisp.org>
89198         * lib/lock.h [C++]: Wrap definitions in extern "C".
89200 2006-10-18  Bruno Haible  <bruno@clisp.org>
89202         * gnulib-tool (func_emit_initmacro_end): Remove duplicates from the
89203         gl_LIBOBJS list.
89205 2006-10-18  Bruno Haible  <bruno@clisp.org>
89207         * lib/findprog.c (find_in_path): Avoid "gcc -Wwrite-strings" warning.
89209 2006-10-19  Paul Eggert  <eggert@cs.ucla.edu>
89211         * lib/xstrtol.h: Include gettext.h.
89212         (_STRTOL_ERROR): Wrap English-language formats inside gettext.
89213         Problem reported by Eric Blake.
89214         * modules/xstrtol (Depends-on): Add gettext-h.
89216 2006-10-19  Paul Eggert  <eggert@cs.ucla.edu>  (tiny change)
89218         * lib/strftime.c (advance): New macro.
89219         (add): Use it to avoid adding 0 to a FILE *.  FILE can be an
89220         incomplete type, so you can't add 0 to it.  Problem and patch
89221         reported by Eelco Dolstra for dietlibc.
89223 2006-10-18  Jim Meyering  <jim@meyering.net>
89225         * lib/readutmp.c (desirable_utmp_entry): Use "bool" as the
89226         type for a local, and rename it: s/up/user_proc/.
89228 2006-10-18  Sergey Poznyakoff  <gray@gnu.org.ua>
89230         * lib/readutmp.c (desirable_utmp_entry): Implement new flag:
89231         READ_UTMP_USER_PROCESS.
89232         * lib/readutmp.h (READ_UTMP_USER_PROCESS): New flag
89234 2006-10-17  Paul Eggert  <eggert@cs.ucla.edu>
89236         * lib/localcharset.c: Do not check HAVE_SETLOCALE.
89237         * m4/localcharset.m4 (gl_LOCALCHARSET): Don't check for setlocale.
89239 2006-10-17  Eric Blake  <ebb9@byu.net>
89241         * lib/sigprocmask.c (sigprocmask): Fix typo.
89243         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Fix typo.
89245         * modules/clean-temp (Makefile.am): Don't add to make output...
89246         (configure.ac): ...instead define SIGNAL_SAFE_LIST inside
89247         config.h.
89249 2006-10-17  Bruno Haible  <bruno@clisp.org>
89251         * lib/gettext.h (gettext, ngettext, pgettext, npgettext): Define
89252         differently if DEFAULT_TEXT_DOMAIN is set.
89254 2006-10-16  Bruno Haible  <bruno@clisp.org>
89256         * lib/clean-temp.c: Include fwriteerror.h.
89258 2006-10-16  Bruno Haible  <bruno@clisp.org>
89260         * getndelim2.m4 (gl_GETNDELIM2): Remove 2003-10-23 hack.
89262 2006-10-16  Bruno Haible  <bruno@clisp.org>
89264         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Also test for sigset_t.
89265         * lib/sigprocmask.h: Include <sys/types.h>.
89266         (sigset_t): Use the system's definition if present.
89268 2006-10-17  Eric Blake  <ebb9@byu.net>
89270         * lib/xvasprintf.c (includes): Assume config.h.
89271         * lib/xasprintf.c (includes): Likewise.
89273 2006-10-16  Paul Eggert  <eggert@cs.ucla.edu>
89275         * lib/fsusage.c (PROPAGATE_ALL_ONES): Don't assume uintmax_t is
89276         at least as wide as intmax_t.
89278 2006-10-16  Alexandre Duret-Lutz  <adl@gnu.org>
89280         (Imported from Automake.)
89281         * build-aux/gnupload: Update to version 1.1 of directive file.
89283 2006-10-16  Eric Blake  <ebb9@byu.net>
89285         * modules/configmake (Makefile.am): Add pkglibexecdir support, to
89286         match Automake 1.10a.
89288 2006-10-14  Bruno Haible  <bruno@clisp.org>
89290         * modules/sigprocmask: New file.
89291         * lib/sigprocmask.h: New file.
89292         * lib/sigprocmask.c: New file.
89293         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Renamed from
89294         gt_SIGNALBLOCKING. When not defining HAVE_POSIX_SIGNALBLOCKING,
89295         request sigprocmask.o.
89296         (gl_PREREQ_SIGPROCMASK): New macro.
89297         * modules/fatal-signal (Files): Remove m4/signalblocking.m4.
89298         (Depends-on): Add sigprocmask.
89299         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Don't require
89300         gt_SIGNALBLOCKING. Test for 'raise' only once.
89301         * lib/fatal-signal.c: Include sigprocmask.h.
89302         (fatal_signal_set, init_fatal_signal_set, block_fatal_signals,
89303         unblock_fatal_signals): Define always.
89304         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
89305         sigprocmask.
89307 2006-10-14  Paul Eggert  <eggert@cs.ucla.edu>
89309         Sync from Automake.
89310         * build-aux/install-sh (posix_mkdir): Reject FreeBSD 6.1 mkdir -p -m,
89311         which incorrectly sets the mode of an existing destination
89312         directory.  In some cases the unpatched install-sh could do the
89313         equivalent of "chmod 777 /" or "chmod 0 /" on a buggy FreeBSD
89314         system.  We hope this is rare in practice, but it's clearly worth
89315         fixing.  Problem reported by Alex Unleashed in
89316         <http://lists.gnu.org/archive/html/bug-autoconf/2006-10/msg00012.html>.
89317         Also, don't bother to check for -m bugs unless we're using -m;
89318         suggested by Stepan Kasal.
89320 2006-10-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
89322         Sync from Automake.
89323         * build-aux/depcomp (gcc3): Put dependency extraction flags before the
89324         `-c' flag, so they appear at the same position as in %FASTDEP%
89325         mode in depend2.am.  Fixes build failure for FreeBSD's c89,
89326         which ignores unknown options only after the first non-option.
89327         Bug report against M4 by Nelson H. F. Beebe.
89329 2006-10-13  Jim Meyering  <jim@meyering.net>
89331         Fix a bug in yesterday's change.
89332         * lib/fts.c (fts_open): When using FTS_XDEV|FTS_NOSTAT,
89333         p->fts_statp->st_dev would be used uninitialized.
89334         Ensures that we always call fts_stat on the very first entry.
89335         Miklos Szeredi reported that find -xdev stopped working.
89337 2006-10-12  Bruno Haible  <bruno@clisp.org>
89339         * gnulib-tool (func_get_automake_snippet): Append an automatically
89340         computed EXTRA_DIST augmentation.
89341         * modules/acl (Makefile.am): Remove EXTRA_DIST augmentation.
89342         * modules/alloca-opt (Makefile.am): Likewise.
89343         * modules/allocsa (Makefile.am): Likewise.
89344         * modules/arcfour (Makefile.am): Likewise.
89345         * modules/arctwo (Makefile.am): Likewise.
89346         * modules/argmatch (Makefile.am): Likewise.
89347         * modules/argz (Makefile.am): Likewise.
89348         * modules/atexit (Makefile.am): Likewise.
89349         * modules/backupfile (Makefile.am): Likewise.
89350         * modules/byteswap (Makefile.am): Likewise.
89351         * modules/c-strtod (Makefile.am): Likewise.
89352         * modules/c-strtold (Makefile.am): Likewise.
89353         * modules/calloc (Makefile.am): Likewise.
89354         * modules/canon-host (Makefile.am): Likewise.
89355         * modules/canonicalize (Makefile.am): Likewise.
89356         * modules/chdir-long (Makefile.am): Likewise.
89357         * modules/chdir-safer (Makefile.am): Likewise.
89358         * modules/check-version (Makefile.am): Likewise.
89359         * modules/chown (Makefile.am): Likewise.
89360         * modules/cloexec (Makefile.am): Likewise.
89361         * modules/close-stream (Makefile.am): Likewise.
89362         * modules/closeout (Makefile.am): Likewise.
89363         * modules/crc (Makefile.am): Likewise.
89364         * modules/csharpexec (Makefile.am): Likewise.
89365         * modules/cycle-check (Makefile.am): Likewise.
89366         * modules/des (Makefile.am): Likewise.
89367         * modules/dev-ino (Makefile.am): Likewise.
89368         * modules/dirfd (Makefile.am): Likewise.
89369         * modules/dirname (Makefile.am): Likewise.
89370         * modules/dup2 (Makefile.am): Likewise.
89371         * modules/eealloc (Makefile.am): Likewise.
89372         * modules/error (Makefile.am): Likewise.
89373         * modules/euidaccess (Makefile.am): Likewise.
89374         * modules/exclude (Makefile.am): Likewise.
89375         * modules/exitfail (Makefile.am): Likewise.
89376         * modules/fcntl-safer (Makefile.am): Likewise.
89377         * modules/fcntl (Makefile.am): Likewise.
89378         * modules/file-type (Makefile.am): Likewise.
89379         * modules/fileblocks (Makefile.am): Likewise.
89380         * modules/filemode (Makefile.am): Likewise.
89381         * modules/filenamecat (Makefile.am): Likewise.
89382         * modules/fnmatch (Makefile.am): Likewise.
89383         * modules/fopen-safer (Makefile.am): Likewise.
89384         * modules/fpending (Makefile.am): Likewise.
89385         * modules/fprintftime (Makefile.am): Likewise.
89386         * modules/free (Makefile.am): Likewise.
89387         * modules/fsusage (Makefile.am): Likewise.
89388         * modules/ftruncate (Makefile.am): Likewise.
89389         * modules/fts (Makefile.am): Likewise.
89390         * modules/gc-arcfour (Makefile.am): Likewise.
89391         * modules/gc-des (Makefile.am): Likewise.
89392         * modules/gc-hmac-md5 (Makefile.am): Likewise.
89393         * modules/gc-hmac-sha1 (Makefile.am): Likewise.
89394         * modules/gc-md4 (Makefile.am): Likewise.
89395         * modules/gc-pbkdf2-sha1 (Makefile.am): Likewise.
89396         * modules/gc-sha1 (Makefile.am): Likewise.
89397         * modules/gc (Makefile.am): Likewise.
89398         * modules/getaddrinfo (Makefile.am): Likewise.
89399         * modules/getcwd (Makefile.am): Likewise.
89400         * modules/getdelim (Makefile.am): Likewise.
89401         * modules/getdomainname (Makefile.am): Likewise.
89402         * modules/getgroups (Makefile.am): Likewise.
89403         * modules/gethostname (Makefile.am): Likewise.
89404         * modules/gethrxtime (Makefile.am): Likewise.
89405         * modules/getline (Makefile.am): Likewise.
89406         * modules/getloadavg (Makefile.am): Likewise.
89407         * modules/getlogin_r (Makefile.am): Likewise.
89408         * modules/getndelim2 (Makefile.am): Likewise.
89409         * modules/getopt (Makefile.am): Likewise.
89410         * modules/getpagesize (Makefile.am): Likewise.
89411         * modules/getpass-gnu (Makefile.am): Likewise.
89412         * modules/getpass (Makefile.am): Likewise.
89413         * modules/getsubopt (Makefile.am): Likewise.
89414         * modules/gettime (Makefile.am): Likewise.
89415         * modules/gettimeofday (Makefile.am): Likewise.
89416         * modules/getugroups (Makefile.am): Likewise.
89417         * modules/getusershell (Makefile.am): Likewise.
89418         * modules/glob (Makefile.am): Likewise.
89419         * modules/group-member (Makefile.am): Likewise.
89420         * modules/hard-locale (Makefile.am): Likewise.
89421         * modules/hash (Makefile.am): Likewise.
89422         * modules/hmac-md5 (Makefile.am): Likewise.
89423         * modules/hmac-sha1 (Makefile.am): Likewise.
89424         * modules/human (Makefile.am): Likewise.
89425         * modules/idcache (Makefile.am): Likewise.
89426         * modules/imaxabs (Makefile.am): Likewise.
89427         * modules/imaxdiv (Makefile.am): Likewise.
89428         * modules/inet_ntop (Makefile.am): Likewise.
89429         * modules/inet_pton (Makefile.am): Likewise.
89430         * modules/intprops (Makefile.am): Likewise.
89431         * modules/inttostr (Makefile.am): Likewise.
89432         * modules/inttypes (Makefile.am): Likewise.
89433         * modules/isapipe (Makefile.am): Likewise.
89434         * modules/javaversion (Makefile.am): Likewise.
89435         * modules/lchmod (Makefile.am): Likewise.
89436         * modules/lchown (Makefile.am): Likewise.
89437         * modules/localcharset (Makefile.am): Likewise.
89438         * modules/long-options (Makefile.am): Likewise.
89439         * modules/lstat (Makefile.am): Likewise.
89440         * modules/malloc (Makefile.am): Likewise.
89441         * modules/mathl (Makefile.am): Likewise.
89442         * modules/mbchar (Makefile.am): Likewise.
89443         * modules/md2 (Makefile.am): Likewise.
89444         * modules/md4 (Makefile.am): Likewise.
89445         * modules/md5 (Makefile.am): Likewise.
89446         * modules/memcasecmp (Makefile.am): Likewise.
89447         * modules/memchr (Makefile.am): Likewise.
89448         * modules/memcmp (Makefile.am): Likewise.
89449         * modules/memcoll (Makefile.am): Likewise.
89450         * modules/memcpy (Makefile.am): Likewise.
89451         * modules/memmem (Makefile.am): Likewise.
89452         * modules/memmove (Makefile.am): Likewise.
89453         * modules/mempcpy (Makefile.am): Likewise.
89454         * modules/memrchr (Makefile.am): Likewise.
89455         * modules/memset (Makefile.am): Likewise.
89456         * modules/memxor (Makefile.am): Likewise.
89457         * modules/mkancesdirs (Makefile.am): Likewise.
89458         * modules/mkdir-p (Makefile.am): Likewise.
89459         * modules/mkdir (Makefile.am): Likewise.
89460         * modules/mkdtemp (Makefile.am): Likewise.
89461         * modules/mkstemp (Makefile.am): Likewise.
89462         * modules/mktime (Makefile.am): Likewise.
89463         * modules/modechange (Makefile.am): Likewise.
89464         * modules/mountlist (Makefile.am): Likewise.
89465         * modules/nanosleep (Makefile.am): Likewise.
89466         * modules/obstack (Makefile.am): Likewise.
89467         * modules/openat (Makefile.am): Likewise.
89468         * modules/pagealign_alloc (Makefile.am): Likewise.
89469         * modules/pathmax (Makefile.am): Likewise.
89470         * modules/physmem (Makefile.am): Likewise.
89471         * modules/poll (Makefile.am): Likewise.
89472         * modules/posixtm (Makefile.am): Likewise.
89473         * modules/posixver (Makefile.am): Likewise.
89474         * modules/putenv (Makefile.am): Likewise.
89475         * modules/quote (Makefile.am): Likewise.
89476         * modules/quotearg (Makefile.am): Likewise.
89477         * modules/raise (Makefile.am): Likewise.
89478         * modules/read-file (Makefile.am): Likewise.
89479         * modules/readline (Makefile.am): Likewise.
89480         * modules/readlink (Makefile.am): Likewise.
89481         * modules/readtokens (Makefile.am): Likewise.
89482         * modules/readutmp (Makefile.am): Likewise.
89483         * modules/realloc (Makefile.am): Likewise.
89484         * modules/regex (Makefile.am): Likewise.
89485         * modules/rename-dest-slash (Makefile.am): Likewise.
89486         * modules/rename (Makefile.am): Likewise.
89487         * modules/rijndael (Makefile.am): Likewise.
89488         * modules/rmdir (Makefile.am): Likewise.
89489         * modules/rpmatch (Makefile.am): Likewise.
89490         * modules/safe-read (Makefile.am): Likewise.
89491         * modules/safe-write (Makefile.am): Likewise.
89492         * modules/same-inode (Makefile.am): Likewise.
89493         * modules/same (Makefile.am): Likewise.
89494         * modules/save-cwd (Makefile.am): Likewise.
89495         * modules/savedir (Makefile.am): Likewise.
89496         * modules/setenv (Makefile.am): Likewise.
89497         * modules/settime (Makefile.am): Likewise.
89498         * modules/sha1 (Makefile.am): Likewise.
89499         * modules/sig2str (Makefile.am): Likewise.
89500         * modules/snprintf (Makefile.am): Likewise.
89501         * modules/stat-macros (Makefile.am): Likewise.
89502         * modules/stat-time (Makefile.am): Likewise.
89503         * modules/stdbool (Makefile.am): Likewise.
89504         * modules/stdint (Makefile.am): Likewise.
89505         * modules/stdlib-safer (Makefile.am): Likewise.
89506         * modules/stpcpy (Makefile.am): Likewise.
89507         * modules/stpncpy (Makefile.am): Likewise.
89508         * modules/strcase (Makefile.am): Likewise.
89509         * modules/strcasestr (Makefile.am): Likewise.
89510         * modules/strchrnul (Makefile.am): Likewise.
89511         * modules/strcspn (Makefile.am): Likewise.
89512         * modules/strdup (Makefile.am): Likewise.
89513         * modules/strerror (Makefile.am): Likewise.
89514         * modules/strftime (Makefile.am): Likewise.
89515         * modules/strndup (Makefile.am): Likewise.
89516         * modules/strnlen (Makefile.am): Likewise.
89517         * modules/strpbrk (Makefile.am): Likewise.
89518         * modules/strsep (Makefile.am): Likewise.
89519         * modules/strstr (Makefile.am): Likewise.
89520         * modules/strtod (Makefile.am): Likewise.
89521         * modules/strtoimax (Makefile.am): Likewise.
89522         * modules/strtok_r (Makefile.am): Likewise.
89523         * modules/strtol (Makefile.am): Likewise.
89524         * modules/strtoll (Makefile.am): Likewise.
89525         * modules/strtoul (Makefile.am): Likewise.
89526         * modules/strtoull (Makefile.am): Likewise.
89527         * modules/strtoumax (Makefile.am): Likewise.
89528         * modules/strverscmp (Makefile.am): Likewise.
89529         * modules/sys_socket (Makefile.am): Likewise.
89530         * modules/sys_stat (Makefile.am): Likewise.
89531         * modules/sysexits (Makefile.am): Likewise.
89532         * modules/time_r (Makefile.am): Likewise.
89533         * modules/timegm (Makefile.am): Likewise.
89534         * modules/timespec (Makefile.am): Likewise.
89535         * modules/tmpfile-safer (Makefile.am): Likewise.
89536         * modules/trim (Makefile.am): Likewise.
89537         * modules/unistd-safer (Makefile.am): Likewise.
89538         * modules/unlinkdir (Makefile.am): Likewise.
89539         * modules/unlocked-io (Makefile.am): Likewise.
89540         * modules/userspec (Makefile.am): Likewise.
89541         * modules/utime (Makefile.am): Likewise.
89542         * modules/utimecmp (Makefile.am): Likewise.
89543         * modules/utimens (Makefile.am): Likewise.
89544         * modules/vasnprintf (Makefile.am): Likewise.
89545         * modules/vasprintf (Makefile.am): Likewise.
89546         * modules/vsnprintf (Makefile.am): Likewise.
89547         * modules/xalloc (Makefile.am): Likewise.
89548         * modules/xgetcwd (Makefile.am): Likewise.
89549         * modules/xnanosleep (Makefile.am): Likewise.
89550         * modules/xreadlink (Makefile.am): Likewise.
89551         * modules/xstrtod (Makefile.am): Likewise.
89552         * modules/xstrtol (Makefile.am): Likewise.
89553         * modules/xstrtold (Makefile.am): Likewise.
89554         * modules/yesno (Makefile.am): Likewise.
89555         * modules/getdate (Makefile.am): Don't add getdate.h to EXTRA_DIST.
89557 2006-10-12  Paul Eggert  <eggert@cs.ucla.edu>
89559         * modules/error (Makefile.am): Distribute files through
89560         EXTRA_DIST, not lib_SOURCES.
89562 2006-10-12  Eric Blake  <ebb9@byu.net>
89564         * modules/error (Makefile.am): Distribute files in /lib.
89565         * modules/obstack (Makefile.am): Likewise.
89567 2006-10-12  Bruno Haible  <bruno@clisp.org>
89569         * modules/acl (Makefile.am): Distribute all files in lib/ through
89570         EXTRA_DIST.
89571         * modules/arcfour (Makefile.am): Likewise.
89572         * modules/arctwo (Makefile.am): Likewise.
89573         * modules/argmatch (Makefile.am): Likewise.
89574         * modules/argz (Makefile.am): Likewise.
89575         * modules/atexit (Makefile.am): Likewise.
89576         * modules/backupfile (Makefile.am): Likewise.
89577         * modules/c-strtod (Makefile.am): Likewise.
89578         * modules/c-strtold (Makefile.am): Likewise.
89579         * modules/calloc (Makefile.am): Likewise.
89580         * modules/canon-host (Makefile.am): Likewise.
89581         * modules/canonicalize (Makefile.am): Likewise.
89582         * modules/chdir-long (Makefile.am): Likewise.
89583         * modules/chdir-safer (Makefile.am): Likewise.
89584         * modules/check-version (Makefile.am): Likewise.
89585         * modules/chown (Makefile.am): Likewise.
89586         * modules/cloexec (Makefile.am): Likewise.
89587         * modules/close-stream (Makefile.am): Likewise.
89588         * modules/closeout (Makefile.am): Likewise.
89589         * modules/crc (Makefile.am): Likewise.
89590         * modules/cycle-check (Makefile.am): Likewise.
89591         * modules/des (Makefile.am): Likewise.
89592         * modules/dirfd (Makefile.am): Likewise.
89593         * modules/dirname (Makefile.am): Likewise.
89594         * modules/dup2 (Makefile.am): Likewise.
89595         * modules/euidaccess (Makefile.am): Likewise.
89596         * modules/exclude (Makefile.am): Likewise.
89597         * modules/exitfail (Makefile.am): Likewise.
89598         * modules/fcntl-safer (Makefile.am): Likewise.
89599         * modules/file-type (Makefile.am): Likewise.
89600         * modules/fileblocks (Makefile.am): Likewise.
89601         * modules/filemode (Makefile.am): Likewise.
89602         * modules/filenamecat (Makefile.am): Likewise.
89603         * modules/fnmatch (Makefile.am): Likewise.
89604         * modules/fopen-safer (Makefile.am): Likewise.
89605         * modules/fpending (Makefile.am): Likewise.
89606         * modules/fprintftime (Makefile.am): Likewise.
89607         * modules/free (Makefile.am): Likewise.
89608         * modules/fsusage (Makefile.am): Likewise.
89609         * modules/ftruncate (Makefile.am): Likewise.
89610         * modules/fts (Makefile.am): Likewise.
89611         * modules/gc (Makefile.am): Likewise.
89612         * modules/gc-pbkdf2-sha1 (Makefile.am): Likewise.
89613         * modules/getaddrinfo (Makefile.am): Likewise.
89614         * modules/getcwd (Makefile.am): Likewise.
89615         * modules/getdelim (Makefile.am): Likewise.
89616         * modules/getdomainname (Makefile.am): Likewise.
89617         * modules/getgroups (Makefile.am): Likewise.
89618         * modules/gethostname (Makefile.am): Likewise.
89619         * modules/gethrxtime (Makefile.am): Likewise.
89620         * modules/getline (Makefile.am): Likewise.
89621         * modules/getloadavg (Makefile.am): Likewise.
89622         * modules/getlogin_r (Makefile.am): Likewise.
89623         * modules/getopt (Makefile.am): Likewise.
89624         * modules/getpass (Makefile.am): Likewise.
89625         * modules/getpass-gnu (Makefile.am): Likewise.
89626         * modules/getsubopt (Makefile.am): Likewise.
89627         * modules/gettime (Makefile.am): Likewise.
89628         * modules/gettimeofday (Makefile.am): Likewise.
89629         * modules/getugroups (Makefile.am): Likewise.
89630         * modules/getusershell (Makefile.am): Likewise.
89631         * modules/glob (Makefile.am): Likewise.
89632         * modules/group-member (Makefile.am): Likewise.
89633         * modules/hard-locale (Makefile.am): Likewise.
89634         * modules/hash (Makefile.am): Likewise.
89635         * modules/hmac-md5 (Makefile.am): Likewise.
89636         * modules/hmac-sha1 (Makefile.am): Likewise.
89637         * modules/human (Makefile.am): Likewise.
89638         * modules/idcache (Makefile.am): Likewise.
89639         * modules/imaxabs (Makefile.am): Likewise.
89640         * modules/imaxdiv (Makefile.am): Likewise.
89641         * modules/inet_ntop (Makefile.am): Likewise.
89642         * modules/inet_pton (Makefile.am): Likewise.
89643         * modules/inttostr (Makefile.am): Likewise.
89644         * modules/isapipe (Makefile.am): Likewise.
89645         * modules/lchown (Makefile.am): Likewise.
89646         * modules/long-options (Makefile.am): Likewise.
89647         * modules/lstat (Makefile.am): Likewise.
89648         * modules/malloc (Makefile.am): Likewise.
89649         * modules/mathl (Makefile.am): Likewise.
89650         * modules/mbchar (Makefile.am): Likewise.
89651         * modules/md2 (Makefile.am): Likewise.
89652         * modules/md4 (Makefile.am): Likewise.
89653         * modules/md5 (Makefile.am): Likewise.
89654         * modules/memcasecmp (Makefile.am): Likewise.
89655         * modules/memchr (Makefile.am): Likewise.
89656         * modules/memcmp (Makefile.am): Likewise.
89657         * modules/memcoll (Makefile.am): Likewise.
89658         * modules/memcpy (Makefile.am): Likewise.
89659         * modules/memmem (Makefile.am): Likewise.
89660         * modules/memmove (Makefile.am): Likewise.
89661         * modules/mempcpy (Makefile.am): Likewise.
89662         * modules/memrchr (Makefile.am): Likewise.
89663         * modules/memset (Makefile.am): Likewise.
89664         * modules/memxor (Makefile.am): Likewise.
89665         * modules/mkancesdirs (Makefile.am): Likewise.
89666         * modules/mkdir (Makefile.am): Likewise.
89667         * modules/mkdir-p (Makefile.am): Likewise.
89668         * modules/mkdtemp (Makefile.am): Likewise.
89669         * modules/mkstemp (Makefile.am): Likewise.
89670         * modules/mktime (Makefile.am): Likewise.
89671         * modules/modechange (Makefile.am): Likewise.
89672         * modules/mountlist (Makefile.am): Likewise.
89673         * modules/nanosleep (Makefile.am): Likewise.
89674         * modules/openat (Makefile.am): Likewise.
89675         * modules/pagealign_alloc (Makefile.am): Likewise.
89676         * modules/physmem (Makefile.am): Likewise.
89677         * modules/poll (Makefile.am): Likewise.
89678         * modules/posixtm (Makefile.am): Likewise.
89679         * modules/posixver (Makefile.am): Likewise.
89680         * modules/putenv (Makefile.am): Likewise.
89681         * modules/quote (Makefile.am): Likewise.
89682         * modules/quotearg (Makefile.am): Likewise.
89683         * modules/raise (Makefile.am): Likewise.
89684         * modules/read-file (Makefile.am): Likewise.
89685         * modules/readline (Makefile.am): Likewise.
89686         * modules/readlink (Makefile.am): Likewise.
89687         * modules/readtokens (Makefile.am): Likewise.
89688         * modules/readutmp (Makefile.am): Likewise.
89689         * modules/realloc (Makefile.am): Likewise.
89690         * modules/regex (Makefile.am): Likewise.
89691         * modules/rename (Makefile.am): Likewise.
89692         * modules/rename-dest-slash (Makefile.am): Likewise.
89693         * modules/rijndael (Makefile.am): Likewise.
89694         * modules/rmdir (Makefile.am): Likewise.
89695         * modules/rpmatch (Makefile.am): Likewise.
89696         * modules/safe-read (Makefile.am): Likewise.
89697         * modules/safe-write (Makefile.am): Likewise.
89698         * modules/same (Makefile.am): Likewise.
89699         * modules/save-cwd (Makefile.am): Likewise.
89700         * modules/savedir (Makefile.am): Likewise.
89701         * modules/setenv (Makefile.am): Likewise.
89702         * modules/settime (Makefile.am): Likewise.
89703         * modules/sha1 (Makefile.am): Likewise.
89704         * modules/sig2str (Makefile.am): Likewise.
89705         * modules/snprintf (Makefile.am): Likewise.
89706         * modules/stdlib-safer (Makefile.am): Likewise.
89707         * modules/stpcpy (Makefile.am): Likewise.
89708         * modules/stpncpy (Makefile.am): Likewise.
89709         * modules/strcase (Makefile.am): Likewise.
89710         * modules/strcasestr (Makefile.am): Likewise.
89711         * modules/strchrnul (Makefile.am): Likewise.
89712         * modules/strcspn (Makefile.am): Likewise.
89713         * modules/strdup (Makefile.am): Likewise.
89714         * modules/strerror (Makefile.am): Likewise.
89715         * modules/strftime (Makefile.am): Likewise.
89716         * modules/strndup (Makefile.am): Likewise.
89717         * modules/strnlen (Makefile.am): Likewise.
89718         * modules/strpbrk (Makefile.am): Likewise.
89719         * modules/strsep (Makefile.am): Likewise.
89720         * modules/strstr (Makefile.am): Likewise.
89721         * modules/strtod (Makefile.am): Likewise.
89722         * modules/strtoimax (Makefile.am): Likewise.
89723         * modules/strtok_r (Makefile.am): Likewise.
89724         * modules/strtol (Makefile.am): Likewise.
89725         * modules/strtoll (Makefile.am): Likewise.
89726         * modules/strtoul (Makefile.am): Likewise.
89727         * modules/strtoull (Makefile.am): Likewise.
89728         * modules/strtoumax (Makefile.am): Likewise.
89729         * modules/strverscmp (Makefile.am): Likewise.
89730         * modules/time_r (Makefile.am): Likewise.
89731         * modules/timegm (Makefile.am): Likewise.
89732         * modules/tmpfile-safer (Makefile.am): Likewise.
89733         * modules/unistd-safer (Makefile.am): Likewise.
89734         * modules/unlinkdir (Makefile.am): Likewise.
89735         * modules/userspec (Makefile.am): Likewise.
89736         * modules/utime (Makefile.am): Likewise.
89737         * modules/utimecmp (Makefile.am): Likewise.
89738         * modules/utimens (Makefile.am): Likewise.
89739         * modules/vasnprintf (Makefile.am): Likewise.
89740         * modules/vasprintf (Makefile.am): Likewise.
89741         * modules/vsnprintf (Makefile.am): Likewise.
89742         * modules/xalloc (Makefile.am): Likewise.
89743         * modules/xgetcwd (Makefile.am): Likewise.
89744         * modules/xnanosleep (Makefile.am): Likewise.
89745         * modules/xreadlink (Makefile.am): Likewise.
89746         * modules/xstrtod (Makefile.am): Likewise.
89747         * modules/xstrtol (Makefile.am): Likewise.
89748         * modules/xstrtold (Makefile.am): Likewise.
89749         * modules/yesno (Makefile.am): Likewise.
89751 2006-10-12  Jim Meyering  <jim@meyering.net>
89753         * m4/getloadavg.m4: Revert the change below.
89755         * m4/getloadavg.m4 (gl_GETLOADAVG): Test for the existence of
89756         lib/getloadavg.c using "ls -L", not "test -f".  The latter would
89757         fail with a symlink, which is what coreutils' ./bootstrap now
89758         creates by default.
89760 2006-10-12  Bruno Haible  <bruno@clisp.org>
89762         * lib/inttypes_.h (_LONG_LONG_FORMAT_PREFIX): Don't define for MSVC or
89763         mingw.
89764         (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX, _SCNu64_PREFIX): Handle
89765         MSVC and mingw explicitly.
89767 2006-10-11  Simon Josefsson  <jas@extundo.com>
89768             Bruno Haible  <bruno@clisp.org>
89770         Add support for multiple gnulib-tool invocations in the scope of a
89771         single configure.ac file.
89772         * gnulib-tool (func_emit_lib_Makefile_am): In the _LIBADD variable,
89773         use a private [LT]LIBOBJS variant. Define a _DEPENDENCIES variable
89774         with the same contents as the _LIBADD variable.
89775         (func_emit_initmacro_start, func_emit_initmacro_end,
89776         func_emit_initmacro_done): New functions.
89777         (func_import, func_create_testdir): Invoke them. Allow the identifiers
89778         gl_LIBOBJS and gl_LTLIBOBJS.
89780 2006-10-11  Bruno Haible  <bruno@clisp.org>
89782         * gnulib-tool (GETTEXTPATH, AUTOHEADER, AUTOPOINT): New variables.
89783         (func_create_testdir): Don't create po/Makefile.am, don't invoke
89784         autoreconf. Instead, invoke autopoint explicitly but move back the
89785         *.m4 files from gnulib.
89787 2006-10-11  Bruno Haible  <bruno@clisp.org>
89789         * gnulib-tool (func_usage): Make module names after --create-testdir
89790         optional.
89791         (func_create_testdir): If no module was specified, use nearly all
89792         modules.
89794 2006-10-12  Jim Meyering  <jim@meyering.net>
89796         Big performance improvement for fts-based tools that use FTS_NOSTAT.
89797         Avoid spurious inode-mismatch problems on non-POSIX file systems.
89798         Details: http://article.gmane.org/gmane.comp.lib.gnulib.bugs/7416
89799         * lib/fts_.h (FTS_DEFER_STAT): Define new flag.
89800         (FTS_OPTIONMASK): Extend the mask to reflect this addition.
89801         * lib/fts.c (DT_IS_KNOWN, DT_MUST_BE): Define.
89802         (FTS_NO_STAT_REQUIRED, FTS_STAT_REQUIRED): Define.
89803         (fts_set_stat_required): New function.
89804         (fts_open): Defer the calls to fts_stat, if possible or requested.
89805         Move the code that maps a command-line fts_info value FTS_DOT to FTS_D
89806         into fts_stat itself.
89807         (fts_read): Perform any required (deferred) fts_stat call.
89808         (fts_build): Likewise, for the directory we're about to open and read.
89809         In the readdir loop, carefully decide whether each entry will require
89810         an eventual call to fts_stat, using dirent.d_type info if available.
89811         (fts_stat): Move the test for whether to honor FTS_COMFOLLOW on
89812         a command line argument into this function.  Update all callers.
89813         Map a return value of FTS_DOT to FTS_D for a command line argument.
89814         * modules/fts (Depends-on): Add d-type.  Alphabetize.
89815         Thanks to Miklos Szeredi for his tenacity and for the initial
89816         bug report about "find" failing on a FUSE-based file system.
89818         * lib/fts.c (fts_open): Use consistent indentation.
89820 2006-10-12  Paul Eggert  <eggert@cs.ucla.edu>
89822         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Renamed from
89823         gl_USE_SYSTEM_EXTENSIONS, to fix a coreutils bootstrap failure
89824         reported by Jim Meyering.  All uses of cache variables renamed
89825         to match Autoconf's.
89826         (gl_USE_SYSTEM_EXTENSIONS): New macro, which simply requires
89827         the other one.
89829         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH):
89830         Fix misspelling in diagnostic.
89832 2006-10-11  Paul Eggert  <eggert@cs.ucla.edu>
89834         * lib/mkdir-p.c (HAVE_FCHMOD): Define to false if not already
89835         defined.  Problem reported by Matthew Woehlke.
89837         * lib/inttypes_.h (_LONG_LONG_FORMAT_PREFIX): New macro.
89838         Add support for Tandem NonStop R series.
89839         (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX, _SCNu64_PREFIX):
89840         Use new macro.
89842         * lib/rename-dest-slash.c: Include stdbool.h but not string.h.
89843         (has_trailing_slash): Omit size arg; all callers changed.
89844         Omit 'inline', since it doesn't help performance and we'd
89845         need to configure it.
89846         Don't count //, ///, etc. as having a trailing slash.
89847         As a side effect, this removes a C99ism reported by Matthew Woehlke.
89848         (rpl_rename_dest_slash): On failure, use rename's errno rather
89849         than (in some cases) an incorrect or junk errno.
89850         Simplify code by removing need to compute length; this does
89851         cause it to make two passes instead of one over the file name,
89852         but it's worth it.
89854         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Undo previous
89855         change, since Autoconf's version may no longer be appropriate now
89856         that we are using CVS Autoconf's version.  Add support for Tandem.
89858 2006-10-11  Paul Eggert  <eggert@cs.ucla.edu>
89859             Bruno Haible  <bruno@clisp.org>
89861         * lib/allocsa.h (sa_alignment_longlong, sa_alignment_max): Test
89862         HAVE_LONG_LONG_INT instead of HAVE_LONG_LONG.
89863         * m4/allocsa.m4 (gl_ALLOCSA): Invoke AC_TYPE_LONG_LONG_INT instead of
89864         gl_AC_TYPE_LONG_LONG.
89866         * lib/printf-args.h (arg_type, argument): Test HAVE_LONG_LONG_INT
89867         instead of HAVE_LONG_LONG.
89868         * lib/printf-args.c (printf_fetchargs): Likewise.
89869         * lib/printf-parse.c (PRINTF_PARSE): Likewise.
89870         * lib/vasnprintf.c (VASNPRINTF): Likewise.
89871         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_ARGS, gl_PREREQ_PRINTF_PARSE,
89872         gl_PREREQ_VASNPRINTF): Invoke AC_TYPE_LONG_LONG_INT instead of
89873         gl_AC_TYPE_LONG_LONG.
89875 2006-10-11  Bruno Haible  <bruno@clisp.org>
89877         * m4/longlong.m4: Add comments.
89878         * m4/ulonglong.m4: Likewise.
89880 2006-10-10  Bruno Haible  <bruno@clisp.org>
89882         Make it possible to #define stpcpy, strdup to aliases.
89883         * lib/stpcpy.c (stpcpy) [!_LIBC]: Don't undefine.
89884         * lib/strdup.c (strdup) [!_LIBC]: Don't undefine.
89886 2006-10-10  Bruno Haible  <bruno@clisp.org>
89888         Make it possible to #define gcd to an alias.
89889         * lib/gcd.c: Include config.h.
89891 2006-10-10  Bruno Haible  <bruno@clisp.org>
89893         Make it possible to #define c_isascii to an alias.
89894         * lib/c-ctype.h: Don't define the macros if NO_C_CTYPE_MACROS is
89895         defined. Undefine the macros before defining them, to avoid gcc
89896         warnings.
89897         * lib/c-ctype.c: Include config.h. Don't undefine the macros; instead,
89898         define NO_C_CTYPE_MACROS early.
89900 2006-10-10  Bruno Haible  <bruno@clisp.org>
89902         Make it possible to #define set_program_name to an alias.
89903         * lib/progname.c: Don't undefine set_program_name; instead, undefine
89904         ENABLE_RELOCATABLE early.
89906 2006-10-10  Paul Eggert  <eggert@cs.ucla.edu>
89908         Port to Tandem NSK OSS, which has 64-bit signed int but at most
89909         32-bit unsigned int.  Problem reported by Matthew Woehlke in:
89910         http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00062.html
89911         More generally, don't assume that 64-bit signed int is available
89912         if unsigned int is, and vice versa.
89913         * lib/inttypes_.h (_PRIu64_PREFIX, _SCNu64_PREFIX): Depend on
89914         unsigned symbols, not on their signed counterparts.
89915         * lib/stdint_.h (uint64_t, uint_least64_t, uint_fast64_t, uintmax_t):
89916         (UINT64_MAX, UINT_LEAST64_MAX, UINT_FAST64_MAX, UINTMAX_MAX):
89917         (UINT64_C, UINTMAX_C):
89918         Likewise.
89919         * lib/strtoimax.c (strtoll): Depend on signed symbols, not their
89920         unsigned counterparts.
89921         (Have_long_long, Unsigned): New macros.
89922         (Int): Renamed from INT.
89923         (strtoimax): Use the new macros.
89924         * m4/stdint.m4 (gl_STDINT_H): Require AC_TYPE_UNSIGNED_LONG_LONG_INT
89925         and substitute HAVE_UNSIGNED_LONG_LONG_INT.
89926         * modules/inttypes (inttypes.h): Substitute
89927         HAVE_UNSIGNED_LONG_LONG_INT.
89928         * modules/stdint (stdint.h): Likewise.
89929         (Files): Add m4/ulonglong.m4.
89931 2006-10-10  Bruno Haible  <bruno@clisp.org>
89933         Fix a gcc -Wshadow warning.
89934         * lib/gl_anyhash_list2.h (hash_resize): Rename local variable 'index'
89935         to 'bucket'.
89936         * lib/gl_anylinked_list2.h (gl_linked_search_from_to,
89937         gl_linked_indexof_from_to): Likewise.
89938         * lib/gl_linkedhash_list.c (add_to_bucket, remove_from_bucket):
89939         Likewise.
89940         * lib/gl_anytreehash_list1.h (add_to_bucket, remove_from_bucket):
89941         Likewise.
89942         * lib/gl_anytreehash_list2.h (gl_tree_search_from_to): Likewise.
89943         Reported by Eric Blake.
89945 2006-10-09  Paul Eggert  <eggert@cs.ucla.edu>
89947         * lib/filemode.h [HAVE_DECL_STRMODE]: Include unistd.h too,
89948         for NetBSD.  Problem reported by Bruno Haible.
89950 2006-10-09  Jim Meyering  <jim@meyering.net>
89952         * lib/lchown.c: Include <sys/stat.h> before "stat-macros.h".
89953         Patch from Bruno Haible.
89955 2006-10-09  Jim Meyering  <jim@meyering.net>
89957         * lib/fts-cycle.c (leave_dir): When "leaving" a top level directory due
89958         to FTS_SKIP, don't copy the parent's uninitialized dev/ino values.
89959         Trigger with e.g., mkdir d && valgrind ./chmod u+rwx d d
89961 2006-10-08  Paul Eggert  <eggert@cs.ucla.edu>
89963         Don't include <config.h> twice; this doesn't work in some cases,
89964         e.g., when config.h has "#define intmax_t long long int" and
89965         we include <config.h>, <inttypes.h>, <config.h> in that order.
89966         Problem reported by Matthew Woehlke in:
89967         http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00073.html
89968         * lib/fprintftime.c: Don't include config.h or fprintftime.h.
89969         * lib/fts-cycle.c: Don't include config.h.
89970         * lib/strftime.c: Include fprintftime.h if FPRINTFTIME is defined.
89971         * lib/xstrtoimax.c: Remove copyright notice since it's short tnow.
89972         Don't include config.h or xstrtol.h.  Define STRTOL_T_MINIMUM
89973         and STRTOL_T_MAXIMUM unconditionally, since we now assume gnulib
89974         inttypes.h.
89975         * lib/xstrtoumax.c: Likewise.
89976         * lib/xstrtol.c: Include config.h and xstrtol.h after defining
89977         __strtol and the like, so that this module is more like its siblings.
89978         (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM) [! defined STRTOL_T_MINIMUM]:
89979         Remove; no longer needed now that we assume gnulib inttypes.h.
89981 2006-10-08  Bruno Haible  <bruno@clisp.org>
89983         * doc/gnulib-tool.texi: Emphasize the drawbacks of the --symlink
89984         option.
89986 2006-10-07  Jim Meyering  <jim@meyering.net>
89988         * modules/inttypes (inttypes.h): Revert what seems to have been
89989         an inadvertent part of today's change: use "|", not "/" in the
89990         substitution for the "/"-containing string, $(ABSOLUTE_INTTYPES_H).
89992 2006-10-07  Bruno Haible  <bruno@clisp.org>
89994         * modules/sublist: New file.
89996 2006-10-07  Bruno Haible  <bruno@clisp.org>
89998         * modules/alloca-opt (alloca.h): Add a "DO NOT EDIT" comment.
89999         * modules/argz (argz.h): Likewise.
90000         * modules/arpa_inet (arpa/inet.h): Likewise.
90001         * modules/byteswap (byteswap.h): Likewise.
90002         * modules/configmake (configmake.h): Likewise.
90003         * modules/fcntl (fcntl.h): Likewise.
90004         * modules/fnmatch (fnmatch.h): Likewise.
90005         * modules/getopt (getopt.h): Likewise.
90006         * modules/glob (glob.h): Likewise.
90007         * modules/inttypes (inttypes.h): Likewise.
90008         * modules/netinet_in (netinet/in.h): Likewise.
90009         * modules/poll (poll.h): Likewise.
90010         * modules/stdbool (stdbool.h): Likewise.
90011         * modules/stdint (stdint.h): Likewise.
90012         * modules/sys_select (sys/select.h): Likewise.
90013         * modules/sys_socket (sys/socket.h): Likewise.
90014         * modules/sys_stat (sys/stat.h): Likewise.
90015         * modules/sysexits (sysexits.h): Likewise.
90016         * modules/unistd (unistd.h): Likewise.
90017         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
90018         Add a "DO NOT EDIT" comment to the generated file.
90019         (func_import): Likewise for gnulib-comp.m4.
90021 2006-10-07  Bruno Haible  <bruno@clisp.org>
90023         * lib/gl_sublist.h: New file.
90024         * lib/gl_sublist.c: New file.
90026 2006-10-06  Paul Eggert  <eggert@cs.ucla.edu>
90028         * lib/mkancesdirs.c (mkancesdirs): Pass to MAKE_DIR both the full file
90029         name (relative to the original working directory) and the file
90030         name component (relative to the temporary working directory).  All
90031         callers changed.
90032         * lib/mkancesdirs.h (mkancesdirs): Adjust prototype to match.
90033         * lib/mkdir-p.c (make_dir_parents): Likewise.
90034         * lib/mkdir-p.h (make_dir_parents): Likewise.
90036 2006-10-06  Eric Blake  <ebb9@byu.net>
90038         Define several macros for use by the clean-temp module.
90039         * m4/close-stream.m4 (gl_CLOSE_STREAM): Define GNULIB_CLOSE_STREAM.
90040         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Define GNULIB_FCNTL_SAFER.
90041         * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Define GNULIB_FOPEN_SAFER.
90043         * lib/clean-temp.h (close_stream_temp): New declaration.
90044         * lib/clean-temp.c (includes): Pull in headers according to what
90045         other modules are in use.
90046         (close_stream_temp) [GNULIB_CLOSE_STREAM]: New function.
90048 2006-10-06  Bruno Haible  <bruno@clisp.org>
90050         * lib/javacomp.c (write_temp_file): Use fopen_temp, fwriteerror_temp
90051         instead of fopen, fwriteerror.
90053 2006-10-06  Bruno Haible  <bruno@clisp.org>
90055         * lib/clean-temp.h (cleanup_temp_file, cleanup_temp_subdir,
90056         cleanup_temp_dir_contents, cleanup_temp_dir): Change return type to
90057         int.
90058         * lib/clean-temp.c (do_unlink, do_rmdir, cleanup_temp_file,
90059         cleanup_temp_subdir, cleanup_temp_dir_contents, cleanup_temp_dir):
90060         Return an error indicator.
90061         Suggested by Eric Blake.
90063 2006-10-06  Bruno Haible  <bruno@clisp.org>
90065         * lib/clean-temp.c (PATH_MAX): Provide a fallback for GNU Hurd.
90066         Reported by Eric Blake.
90068 2006-10-06  Bruno Haible  <bruno@clisp.org>
90070         * modules/closeout (Description): Mention stderr too.
90072 2006-10-06  Bruno Haible  <bruno@clisp.org>
90073         and Paul Eggert  <eggert@cs.ucla.edu>
90075         * lib/closeout.c (close_stdout): Also close stderr.
90076         * lib/closeout.h: Update comment.
90078 2006-10-05  Paul Eggert  <eggert@cs.ucla.edu>
90080         Fix some Darwin-7.9.0 porting problems reported by Bruno Haible in
90081         <http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00063.html>.
90082         * lib/dirchownmod.c: Include lchown.h.
90083         * lib/lchown.c: Don't include files that lchown.h now includes.
90084         Don't declare chown, since lchown.h now does that.
90085         * lib/lchown.h: Include errno.h, sys/types.h, unistd.h.
90086         (lchown): Define to rpl_chown if lchown is declared but
90087         does not exist.  Declare using a prototype if lchown is not
90088         declared.  Add a copyright notice.
90089         * lib/mkstemp.h: Include <unistd.h>.
90090         * lib/openat.c: Include lchown.h.
90092         * lib/fcntl_.h (O_NOFOLLOW): Don't depend on O_NOFOLLOW_IS_INEFFECTIVE;
90093         we now test for that separately.
90094         * lib/fts.c (fts_safe_changedir): Inspect HAVE_WORKING_O_NOFOLLOW
90095         rather than O_NOFOLLOW, when testing whether it's possible to
90096         avoid a race condition reliably.
90097         * lib/savewd.c (savewd_chdir): Likewise.
90099         Remove macros that are no longer needed now that stdint.h is
90100         reliable.
90101         * lib/fsusage.c (UINTMAX_MAX): Remove.
90102         * lib/human.c (SIZE_MAX, UINTMAX_MAX): Remove.
90103         * lib/utimecmp.c (SIZE_MAX): Remove.
90105         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check whether lchown is declared.
90107         * m4/fcntl_h.m4 (gl_FCNTL_H): Define HAVE_WORKING_O_NOFOLLOW instead
90108         of O_NOFOLLOW_IS_INEFFECTIVE.  Define HAVE_WORKING_O_NOATIME if
90109         O_NOATIME works.
90111 2006-10-05  Bruno Haible  <bruno@clisp.org>
90113         * lib/gl_list.h (gl_sortedlist_search_from_to,
90114         gl_sortedlist_indexof_from_to): New declarations.
90115         (gl_list_implementation): New fields sortedlist_search_from_to,
90116         sortedlist_indexof_from_to.
90117         (gl_sortedlist_search_from_to, gl_sortedlist_indexof_from_to): New
90118         inline functions.
90119         * lib/gl_list.c (gl_sortedlist_search_from_to,
90120         gl_sortedlist_indexof_from_to): New functions.
90121         * lib/gl_array_list.c (gl_array_sortedlist_indexof_from_to): New
90122         function.
90123         (gl_array_sortedlist_indexof, gl_array_sortedlist_search): Use it.
90124         (gl_array_sortedlist_search_from_to): New function.
90125         (gl_array_list_implementation): Update.
90126         * lib/gl_carray_list.c (gl_carray_sortedlist_indexof_from_to): New
90127         function.
90128         (gl_carray_sortedlist_indexof, gl_carray_sortedlist_search): Use it.
90129         (gl_carray_sortedlist_search_from_to): New function.
90130         (gl_carray_list_implementation): Update.
90131         * lib/gl_anylinked_list2.h (gl_linked_sortedlist_search_from_to,
90132         gl_linked_sortedlist_indexof_from_to): New functions.
90133         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
90134         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
90135         * lib/gl_anytree_list2.h (gl_tree_sortedlist_search_from_to,
90136         gl_tree_sortedlist_indexof_from_to): New functions.
90137         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
90138         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
90139         Update.
90140         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
90141         * lib/gl_rbtreehash_list.c (gl_avltreehash_list_implementation):
90142         Update.
90144 2006-10-05  Bruno Haible  <bruno@clisp.org>
90146         * lib/gl_list.h (gl_list_search_from, gl_list_search_from_to,
90147         gl_list_indexof_from, gl_list_indexof_from_to): New declarations.
90148         (struct gl_list_implementation): Add fields search_from_to,
90149         indexof_from_to. Remove fields search, indexof.
90150         (gl_list_search): Use the search_from_to method.
90151         (gl_list_search_from, gl_list_search_from_to): New functions.
90152         (gl_list_indexof): Use the indexof_from_to method.
90153         (gl_list_indexof_from, gl_list_indexof_from_to): New functions.
90154         * lib/gl_list.c (gl_list_search): Use the search_from_to method.
90155         (gl_list_search_from, gl_list_search_from_to): New functions.
90156         (gl_list_indexof): Use the indexof_from_to method.
90157         (gl_list_indexof_from, gl_list_indexof_from_to): New functions.
90158         * lib/gl_array_list.c (gl_array_indexof_from_to): Renamed from
90159         gl_array_indexof. Add start_index, end_index arguments.
90160         (gl_array_search_from_to): Renamed from gl_array_search. Add
90161         start_index, end_index arguments.
90162         (gl_array_remove, gl_array_list_implementation): Update.
90163         * lib/gl_carray_list.c (gl_carray_indexof_from_to): Renamed from
90164         gl_carray_indexof. Add start_index, end_index arguments.
90165         (gl_carray_search_from_to): Renamed from gl_carray_search. Add
90166         start_index, end_index arguments.
90167         (gl_carray_remove, gl_carray_list_implementation): Update.
90168         * lib/gl_anylinked_list2.h (gl_linked_search_from_to): Renamed from
90169         gl_linked_search. Add start_index, end_index arguments.
90170         (gl_linked_indexof_from_to): Renamed from gl_linked_indexof. Add
90171         start_index, end_index arguments.
90172         (gl_linked_remove): Update.
90173         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
90174         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
90175         * lib/gl_anytree_list1.h (iterstack_item_t): Change type of 'rightp'
90176         field to 'size_t'.
90177         * lib/gl_anytree_list2.h (gl_tree_search_from_to): Renamed from
90178         gl_tree_search. Add start_index, end_index arguments.
90179         (gl_tree_indexof_from_to): Renamed from gl_tree_indexof. Add
90180         start_index, end_index arguments.
90181         (gl_tree_remove): Update.
90182         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
90183         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
90184         * lib/gl_anytreehash_list1.h (compare_position_threshold): New
90185         function.
90186         * lib/gl_anytreehash_list2.h (gl_tree_search_from_to): Renamed from
90187         gl_tree_search. Add start_index, end_index arguments.
90188         (gl_tree_indexof_from_to): Renamed from gl_tree_indexof. Add
90189         start_index, end_index arguments.
90190         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
90191         Update.
90192         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Update.
90194 2006-10-05  Bruno Haible  <bruno@clisp.org>
90196         * modules/fwriteerror (configure.ac): Define GNULIB_FWRITEERROR.
90198         * lib/clean-temp.h (open_temp, fopen_temp, close_temp, fclose_temp,
90199         fwriteerror_temp): New declarations.
90200         * lib/clean-temp.c (uintptr_t): Provide fallback definition.
90201         (descriptors): New variable.
90202         (cleanup): First, close the descriptors.
90203         (register_fd, unregister_fd, open_temp, fopen_temp, close_temp,
90204         fclose_temp, fwriteerror_temp): New functions.
90206 2006-10-04  Jim Meyering  <jim@meyering.net>
90208         * lib/fts.c (fts_open): Tiny comment change.
90210 2006-10-04  Bruno Haible  <bruno@clisp.org>
90212         Make it possible to invoke AC_GNU_SOURCE after gl_LOCK_EARLY.
90213         * m4/lock.m4 (gl_LOCK_EARLY_BODY): New macro, extracted code from
90214         gl_LOCK_BODY.
90215         (gl_LOCK_EARLY): Require gl_LOCK_EARLY_BODY, not gl_LOCK_BODY.
90216         (gl_LOCK_BODY): Remove settings of CPPFLAGS, now done in
90217         gl_LOCK_EARLY_BODY.
90218         (gl_LOCK): Require gl_LOCK_BODY.
90220 2006-10-04  Bruno Haible  <bruno@clisp.org>
90222         * lib/gl_oset.h (gl_setelement_threshold_fn): New type.
90223         (gl_oset_search_atleast): New declaration.
90224         (struct gl_oset_implementation): Add field 'search_atleast'.
90225         (gl_oset_search_atleast): New inline function.
90226         * lib/gl_oset.c (gl_oset_search_atleast): New function.
90227         * lib/gl_array_oset.c (gl_array_search_atleast): New function.
90228         (gl_array_oset_implementation): Update.
90229         * lib/gl_anytree_oset.h (gl_tree_search_atleast): New function.
90230         * lib/gl_avltree_oset.c (gl_avltree_oset_implementation): Update.
90231         * lib/gl_rbtree_oset.c (gl_rbtree_oset_implementation): Update.
90233 2006-10-04  Bruno Haible  <bruno@clisp.org>
90235         * lib/fatal-signal.c (fatal_signals) [WOE32]: Add the SIGBREAK signal.
90237 2006-10-03  Bruno Haible  <bruno@clisp.org>
90239         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Renamed
90240         from gl_avltreehash_list_implementation.
90242 2006-10-03  Bruno Haible  <bruno@clisp.org>
90244         * lib/gl_oset.c (gl_oset_add): Fix return type.
90246 2006-10-02  Paolo Bonzini  <bonzini@gnu.org>  (tiny change)
90248         * lib/quotearg.c (mbstate_t) [!HAVE_MBRTOWC]: #define to int.
90250 2006-10-02  Eric Blake  <ebb9@byu.net>
90252         * modules/strnlen (Depends-on): Add extensions.
90254 2006-10-02  Eric Blake  <ebb9@byu.net>
90256         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Use autoconf's
90257         definition in 2.60+.
90259 2006-10-02  Dmitry V. Levin  <ldv@altlinux.org>
90261         * lib/fts.c (fts_close, fts_build, fts_palloc): Remove redundant
90262         checks.
90264 2006-10-02  Bruno Haible  <bruno@clisp.org>
90266         * gnulib-tool (func_emit_lib_Makefile_am): Don't add no-dependencies
90267         to the AUTOMAKE_OPTIONS.
90268         Reported by Jim Meyering.
90270 2006-09-29  Paul Eggert  <eggert@cs.ucla.edu>
90272         Work around bug in Solaris 10 /proc file system:
90273         /proc/self/fd/NNN/.. isn't the parent directory of
90274         the directory whose file descriptor is NNN.  This needs to
90275         be worked around at run time, not compile time, since a
90276         program might be built on Solaris 8, where things work, and
90277         run on Solaris 10.
90278         * lib/openat-priv.h (BUILD_PROC_NAME): Remove.  All callers changed
90279         to use the following interface instead:
90280         (OPENAT_BUFFER_SIZE): New macro.
90281         (openat_proc_name): New function.
90282         * lib/at-func.c (AT_FUNC_NAME): Adjust to above changes.
90283         * lib/openat.c (openat_permissive, openat_needs_fchdir, fdopendir):
90284         Likewise.
90285         * lib/openat-proc.c: New file.
90286         * modules/openat (Files): Add lib/openat-proc.c.
90287         (Depends-on): Add same-inode, stdbool.
90288         * m4/openat.m4 (gl_FUNC_OPENAT): Add AC_LIBOBJ(openat-proc).
90290 2006-09-29  Bruno Haible  <bruno@clisp.org>
90292         * lib/fwriteerror.h (fwriteerror_no_ebadf): New declaration.
90293         * lib/(do_fwriteerror): Renamed from fwriteerror. Add ignore_ebadf
90294         argument. Set stdout_closed before testing for ferror, not after.
90295         (fwriteerror, fwriteerror_no_ebadf): New functions.
90297 2006-09-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
90299         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Avoid unused variables warning.
90301 2006-09-28  Paolo Bonzini  <bonzini@gnu.org>
90303         * lib/poll.c (rpl_poll) [__APPLE__]: Use FIONREAD instead of MSG_PEEK.
90304         * m4/poll.m4: Look for sys/ioctl.h and sys/filio.h.
90306 2006-09-28  Jim Meyering  <jim@meyering.net>
90308         * lib/mkdir-p.c: Include "dirchownmod.h", not "dirchownmod.c".
90309         Include <unistd.h>.
90311 2006-09-28  Bruno Haible  <bruno@clisp.org>
90313         * modules/avltreehash-list (Depends-on): Add stdint, remove size_max.
90314         * modules/linkedhash-list (Depends-on): Likewise.
90315         * modules/rbtreehash-list (Depends-on): Likewise.
90317 2006-09-28  Bruno Haible  <bruno@clisp.org>
90319         * lib/strndup.h: Simplify the redefinition of strndup.
90320         (_GL_CONCAT, _GL_XCONCAT, __STRNDUP_ID): Remove macros.
90321         * m4/strndup.m4 (gl_FUNC_STRNDUP): Don't define __STRNDUP_PREFIX.
90323 2006-09-28  Bruno Haible  <bruno@clisp.org>
90325         * lib/gl_avltreehash_list.c: Include <stdint.h> instead of size_max.h.
90326         * lib/gl_linkedhash_list.c: Likewise.
90327         * lib/gl_rbtreehash_list.c: Likewise.
90329 2006-09-27  Paul Eggert  <eggert@cs.ucla.edu>
90331         * lib/canon-host.c (canon_host_r): Work around bug in Darwin 7.9.0
90332         getaddrinfo.
90334         * lib/__fpending.h: Don't include <stdio_ext.h> unless
90335         HAVE_DECL___FPENDING.  This avoids a bug with lsbcc, where
90336         it causes <stdio_ext.h> to cause a compile-time error.
90337         Problem reported by Nelson H. F. Beebe.
90338         * lib/getpass.c: Likewise, except for HAVE_DECL___FSETLOCKING instead
90339         of HAVE_DECL___PENDING.
90341         * m4/fpending.m4 (gl_FUNC_FPENDING): Check for stdio_ext at most once.
90342         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for __fsetlocking's
90343         declaration.
90345 2006-09-27  Jim Meyering  <jim@meyering.net>
90347         This file could end up with a definition for a function
90348         named __strndup, rather than rpl_strndup on a system with
90349         incomplete weak_alias support.
90350         * lib/strndup.c (strndup): Rename from __strndup.
90351         Remove #defines that used to map __strndup to strndup.
90352         Don't use K&R prototypes.
90353         Remove LIBC-related code, since this file is not sync'd with glibc.
90354         * lib/strndup.h: Revamp, accordingly.
90355         * m4/strndup.m4: Modernize.
90357 2006-09-26  Paul Eggert  <eggert@cs.ucla.edu>
90359         * modules/savewd (Depends-on): Add 'raise'.
90360         * lib/savewd.c: Include <signal.h>, for 'raise'.
90362 2006-09-26  Jim Meyering  <jim@meyering.net>
90364         * m4/acl.m4 (AC_FUNC_ACL): Disable ACL support altogether
90365         when we detect Darwin 8.7.0's acl_get_file bug.
90366         Rearrange to perform the new (below) run-test while $LIBS
90367         contains any acl-related library.  Set USE_ACL at the end.
90368         (gl_ACL_GET_FILE): New function.
90370 2006-09-26  Eric Blake  <ebb9@byu.net>
90372         * lib/verror.c: Include <config.h> unconditionally.
90374 2006-09-25  Paul Eggert  <eggert@cs.ucla.edu>
90376         * modules/clock-time (Maintainer): Add self.
90377         * modules/getlogin_r (Depends-on): Add extensions.
90379 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
90381         * modules/clock-time: New module.
90382         * modules/nanosleep (Depends-on): Add clock-time.
90383         * modules/gethrxtime (Depends-on): Likewise.
90384         * modules/gettime (Depends-on): Likewise.
90385         * modules/settime (Depends-on): Likewise.
90387         * modules/fts-lgpl: Depend on openat.
90388         * modules/mkancesdirs: Depend on savewd.
90389         * modules/mkdir-p: Likewise.
90391 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
90393         * m4/host-os.m4 (gl_HOST_OS): Require AC_CANONICAL_HOST.
90395         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Rename cache variable from
90396         `gl_have_arbitrary_file_name_length_limit' to
90397         `gl_cv_have_arbitrary_file_name_length_limit', so that caching
90398         actually works between configure runs.
90400 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
90401             Bruno Haible  <bruno@clisp.org>
90403         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Include <string.h>.
90405 2006-09-25  Jim Meyering  <jim@meyering.net>
90407         * m4/fcntl_h.m4 (gl_FCNTL_H): Fix typo in test for failed open.
90408         This typo caused coreutils/tests/dd/misc to fail on Darwin 8.7.0.
90410 2006-09-25  Eric Blake  <ebb9@byu.net>
90412         * gnulib-tool (func_import, func_create_testdir): Fix typos in
90413         exec's in 2006-09-18 patch when shuffling fds.
90415 2006-09-25  Bruno Haible  <bruno@clisp.org>
90417         * m4/getloadavg.m4 (gl_GETLOADAVG): Fix directory in error message.
90418         Reported by Jim Meyering.
90420 2006-09-24  Jim Meyering  <jim@meyering.net>
90422         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Don't use '>' to
90423         compare a pointer against a literal "0".  That caused failures with
90424         at least HP-UX's hpcc.
90426 2006-09-22  Simon Josefsson  <jas@extundo.com>
90428         * modules/gc-sha1:
90429         * modules/gc-md4:
90430         * modules/gc-hmac-sha1:
90431         * modules/gc-hmac-md5:
90432         * modules/gc-des:
90433         * modules/gc-arcfour: Distribute more files.
90435 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
90437         * lib/gl_anylinked_list2.h [lint] (gl_linked_iterator)
90438         (gl_linked_iterator_from_to): Initialize struct completely.
90439         * lib/gl_anytree_list2.h [lint] (gl_tree_iterator): Likewise.
90440         (gl_tree_iterator_from_to): Likewise
90441         * lib/gl_anytree_oset.h [lint] (gl_tree_iterator): Likewise.
90442         * lib/gl_array_list.c [lint] (gl_array_iterator)
90443         (gl_array_iterator_from_to): Likewise.
90444         * lib/gl_array_oset.c [lint] (gl_array_iterator): Likewise.
90445         * lib/gl_carray_list.c [lint] (gl_carray_iterator)
90446         (gl_carray_iterator_from_to): Likewise.
90448         * lib/gc-gnulib.c [GC_USE_HMAC_SHA1]: include hmac.h for hmac_sha1.
90449         * lib/md4.c (md4_process_block): Remove unused variable.
90450         * lib/rijndael-api-fst.c (rijndaelBlockDecrypt): GCC suggests
90451         parentheses for clarity.
90453 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
90455         * modules/bison-i18n (Depends-on): Add gettext.
90457 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
90459         * m4/fsusage.m4 (gl_STATFS_TRUNCATES): Avoid unused variable.
90460         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Likewise.
90461         * m4/jm-winsz1.m4 (gl_HEADER_TIOCGWINSZ_IN_TERMIOS_H): Likewise;
90462         also add missing comma that caused broken test.
90463         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Include
90464         stdlib.h, for `abort'.
90465         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Avoid unused
90466         variables.
90467         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Check for and
90468         include unistd.h if present, for `rmdir'.
90469         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): Avoid unused
90470         variables.
90471         * m4/putenv.m4 (gl_FUNC_PUTENV): Rewrite using AC_RUN_IFELSE, and
90472         in the process include standard headers for prototypes.
90473         * m4/readutmp.m4 (gl_READUTMP): Require AC_GNU_SOURCE, so utmpxname
90474         gets declared on GNU/Linux.
90475         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Check for and include
90476         unistd.h, for `rmdir'.
90477         * m4/time_r.m4 (gl_TIME_R): Avoid unused variables.
90479         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Avoid expression that is
90480         always true.
90481         * m4/strndup.m4 (gl_FUNC_STRNDUP): include stdlib.h, for `free'.
90483         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Avoid gcc -Wall warnings.
90485 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
90487         * gnulib-tool (func_version): Create output all at once.  This
90488         may help avoid triggering unnecessary SIGPIPEs, and at any
90489         rate it doesn't hurt.
90491 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
90492             Bruno Haible  <bruno@clisp.org>
90494         * m4/lock.m4 (gl_LOCK_BODY): Avoid unused variables warning.
90495         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
90496         * m4/signed.m4 (bh_C_SIGNED): Likewise.
90498         * m4/vasprintf.m4 (gl_PREREQ_VASPRINTF_H): New macro.
90499         (gl_FUNC_VASPRINTF): Invoke it.
90501 2006-09-22  Bruno Haible  <bruno@clisp.org>
90503         * m4/getloadavg.m4 (gl_GETLOADAVG): Expect the directory of
90504         getloadavg.c as first argument.
90506 2006-09-22  Bruno Haible  <bruno@clisp.org>
90508         * gnulib-tool (func_import, func_create_testdir): Set gl_source_base
90509         at the beginning of the gl_INIT macro.
90510         * modules/getloadavg (configure.ac): Pass $gl_source_base to
90511         gl_GETLOADAVG.
90513 2006-09-22  Bruno Haible  <bruno@clisp.org>
90515         * gnulib-tool (func_create_megatestdir): Don't include the config-h
90516         module.
90517         Suggested by Ralf Wildenhues.
90519 2006-09-20  Paul Eggert  <eggert@cs.ucla.edu>
90521         Import this patch from libc:
90523         2006-09-06  Jakub Jelinek  <jakub@redhat.com>
90525         * lib/regex_internal.c (re_string_reconstruct): Handle
90526         offset < pstr->valid_raw_len && pstr->offsets_needed case.
90527         Ensure no bytes read before raw_mbs array.  Pass a saved copy of
90528         pstr->valid_len - 1 rather than pstr->valid_raw_len - 1 to
90529         re_string_context_at.
90531         * m4/regex.m4 (gl_REGEX): Check for locale.h, since the test
90532         now requires it.
90533         (gl_PREREQ_REGEX): Don't check for locale.h any more, since
90534         gl_REGEX now does it for us.
90535         (gl_REGEX): Add test taken from
90536         http://sourceware.org/ml/libc-hacker/2006-09/msg00008.html.
90538         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Require AC_SYS_LARGEFILE.
90539         Check that large offsets work.  Modernize Autoconf usages.
90540         Prefer "yes" to mean a good thing rather than a bad.
90541         Don't put "#define mkstemp" in config.h, as this might interfere
90542         with standard system headers that "#define mkstemp mkstemp64".
90544         * modules/mkstemp (Depends-on): Add extensions, so that
90545         mkstemp is visible on some platforms.
90546         (Makefile.am): Add mkstemp.h to EXTRA_DIST.
90547         (Include): Change to "mkstemp.h" from <stdlib.h>.
90548         (Files): Add mkstemp.h.
90550         * lib/mkstemp.h: New file, since some standard headers
90551         #define mkstemp.
90552         * lib/mkstemp.c: Revamp to put the !_LIBC code together.
90553         Include "mkstemp.h".
90554         Make the _LIBC code resemble glibc original more,
90555         e.g., use K&R style.
90556         * lib/mkstemp-safer.c: Include "mkstemp.h" instead of <stdlib.h>.
90557         (mkstemp): Remove, since mkstemp.h does this for us.
90558         * lib/stdlib--.h: Include mkstemp.h.
90560         Import this patch from libc:
90562         2006-04-07  Ulrich Drepper  <drepper@redhat.com>
90564         * lib/tempname.c (__gen_tempname): Change attempts_min
90565         into a macro.  Use preprocessor to decide how to initialize
90566         attempts [Coverity CID 67].
90568 2006-09-20  Bruno Haible  <bruno@clisp.org>
90570         * lib/mkdtemp.c: Import from libc.
90571         2006-04-07  Ulrich Drepper  <drepper@redhat.com>
90572                 * sysdeps/posix/tempname.c (__gen_tempname): Change
90573                 attempts_min into a macro.  Use preprocessor to decide how to
90574                 initialize attempts [Coverity CID 67].
90575         2001-11-27  Paul Eggert  <eggert@twinsun.com>
90576                 * sysdeps/posix/tempname.c (__gen_tempname): Try at least
90577                 ATTEMPTS_MIN or TMP_MAX times, whichever is greater.
90579 2006-09-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
90581         * gnulib-tool (func_exit): New function, to allow to pass the
90582         exit status portably through the trap.  Use everywhere.
90583         (--help, --version): Signal a write error.
90584         (trap): catch SIGPIPE, for write errors.
90585         Exit at the end of the trap, with the correct exit status.
90587 2006-09-19  Karl Berry  <karl@gnu.org>
90589         * doc/gnulib.texi: note about the license texinfo files.
90591 2006-09-19  Eric Blake  <ebb9@byu.net>
90593         * gnulib-tool: Avoid space-tab.
90595 2006-09-18  Paul Eggert  <eggert@cs.ucla.edu>
90597         * lib/getaddrinfo.c (getaddrinfo) [defined HAVE_IPV6]: Fix typo
90598         that prevented coreutils 6.1 from building.  Problem reported
90599         by Petter Reinholdtsen.
90601 2006-09-18  Paul Eggert  <eggert@cs.ucla.edu>
90603         * gnulib-tool (avoidlist): Fix typo that broke options like
90604         --avoid=lock that are used by coreutils bootstrap.
90606 2006-09-18  Mark D. Baushke  <mdb@gnu.org>
90608         * m4/inttypes.m4 (gl_INTTYPES_H): Quote "test" args
90609         more systematically.
90611 2006-09-18  Jim Meyering  <jim@meyering.net>
90613         * lib/savewd.c (savewd_restore): Don't shadow: s/status/child_status/.
90615 2006-09-18  Bruno Haible  <bruno@clisp.org>
90617         * modules/inttypes (Files): Remove m4/inttypes-h.m4.
90619 2006-09-18  Bruno Haible  <bruno@clisp.org>
90621         * m4/inttypes-h.m4 (gl_HEADER_INTTYPES_H): Remove macro.
90622         * m4/inttypes-pri.m4: Require autoconf >= 2.52.
90623         (gt_INTTYPES_PRI): Invoke AC_CHECK_HEADERS on inttypes.h. Test
90624         ac_cv_header_inttypes_h instead of gl_cv_header_inttypes_h.
90625         * m4/gettext.m4: Require autoconf >= 2.52.
90626         (gt_INTL_SUBDIR_CORE): Invoke AC_CHECK_HEADERS on inttypes.h.
90627         * m4/inttypes.m4 (gl_INTTYPES_H): Test ac_cv_header_inttypes_h instead
90628         of gl_cv_header_inttypes_h.
90630 2006-09-18  Bruno Haible  <bruno@clisp.org>
90632         * lib/javaversion.c: Include configmake.h.
90634 2006-09-18  Bruno Haible  <bruno@clisp.org>
90636         * gnulib-tool (func_import, func_create_testdir): Use exec tricks to
90637         avoid that the while loops be executed in a subshell.
90639 2006-09-18  Bruno Haible  <bruno@clisp.org>
90641         * MODULES.html.sh (func_module): Break long lines.
90642         Suggested by Bruce Korb <bkorb@gnu.org>.
90644 2006-09-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
90646         Speed up by a factor of 1.12.
90647         * gnulib-tool (nl): New variable.
90648         (func_import): Rewrite include directive extraction to only read each
90649         directive once.
90651 2006-09-17  Bruno Haible  <bruno@clisp.org>
90653         * modules/javaversion (Makefile.am): Remove DEFS setting.
90654         (Depends-on): Add configmake, for PKGDATADIR definition.
90656 2006-09-17  Bruno Haible  <bruno@clisp.org>
90658         * gnulib-tool (func_create_testdir): Rewrite all files at once.
90660 2006-09-17  Bruno Haible  <bruno@clisp.org>
90662         * gnulib-tool (func_append): New function, stolen from libtool.m4.
90663         (func_modules_transitive_closure, func_modules_add_dummy,
90664         func_modules_to_filelist, func_import, func_create_testdir,
90665         func_create_megatestdir, ...): Use it wherever possible.
90666         Suggested by Ralf Wildenhues.
90668 2006-09-16  Karl Berry  <karl@gnu.org>
90670         * doc/fdl.texi (ADDENDUM): switch to @heading from @appendixsubsec,
90671         to avoid sectioning errors.
90672         * doc/lgpl.texi, gpl.texi (Copying): downcase @unnumbered title.
90673         [ifinfo]: blank line after @center-ed titles.
90674         * doc/lgpl.texi (Library Copying): Rename main node to GNU LGPL.
90675         Spell FSF address consistently with others.
90676         (These changes approved by rms.)
90678 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
90680         Speed up by a factor of 1.61.
90681         * gnulib-tool (func_modules_transitive_closure): Rewrite to not check
90682         already checked module names again.
90684 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
90686         Speed up by a factor of 1.13.
90687         * gnulib-tool (func_import): Rewrite all old_files at once; likewise
90688         for new_files, and the input to func_add_or_update.
90690 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
90692         * gnulib-tool (func_all_modules, func_modules_to_filelist, func_import,
90693         func_create_testdir, ...): Change 'sort | uniq' to 'sort -u'.
90695 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
90697         * modules/mkancesdirs (Depends-on): Add fcntl.
90698         * modules/savewd: New file.
90699         * MODULES.html.sh (File system functions): Add savewd.
90701         * modules/configmake (Makefile.am): Add support for the
90702         Automake-supplied PKGLIBDIR, PKGINCLUDEDIR, PKGDATADIR.
90704 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
90706         * m4/savewd.m4: New file.
90708 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
90710         * lib/dirchownmod.c: Don't include fcntl.h; no longer needed.
90711         (dirchownmod): New arg FD.  All callers changed.
90712         Use FD rather than opening the directory ourself, as opening is
90713         now the caller's responsibility.
90714         * lib/dirchownmod.h: Likewise.
90715         * lib/mkancesdirs.c: Include <sys/types.h>, for portability to older
90716         hosts that require <sys/types.h> before <sys/stat.h>.  Include
90717         fcntl.h, savewd.h, and unistd.h, not dirname.h and stat-macros.h.
90718         (test_dir): Remove.
90719         (mkancesdirs): Return length of prefix of FILE that has already
90720         been made, or -2 if there is a child doing the work.  Redo
90721         algorithm so that it is O(N) rather than O(N**2).  Optimize away
90722         ".", and treat ".." specially since it might stray back into
90723         already-created areas.  Use a subprocess if necessary.  New arg
90724         WD; all users changed.  MAKE_DIR function should now return 1
90725         if it creates a directory that is not readable.  Return -2 if
90726         a child process is spun off.
90727         * lib/mkancesdirs.h: Include <stddef.h>, for ptrdiff_t.
90728         Adjust signature to match code.
90729         * lib/mkdir-p.c: Include dirname.h, for IS_ABSOLUTE_FILE_NAME.
90730         (make_dir_parents): Use a subprocess if necessary.  New arg WD;
90731         all users changed.
90732         * lib/savewd.c, lib/savewd.h: New files.
90734 2006-09-15  Jim Meyering  <jim@meyering.net>
90736         * modules/rename-dest-slash: New module.
90737         * MODULES.html.sh (posix_compat): Add it here.
90739         * modules/rename: Reflect vb_FUNC_RENAME -> gl_FUNC_RENAME change.
90741 2006-09-15  Jim Meyering  <jim@meyering.net>
90743         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH): New
90744         file.
90746         * m4/rename.m4 (gl_FUNC_RENAME): Rename from vb_FUNC_RENAME.
90748 2006-09-15  Jim Meyering  <jim@meyering.net>
90750         * lib/rename-dest-slash.c (has_trailing_slash): Use
90751         FILE_SYSTEM_PREFIX_LEN, for non-POSIX systems.
90752         (rpl_rename_dest_slash): Perform the cheaper trailing slash
90753         test before testing whether SRC is a directory.
90754         Suggestions from Bruno Haible.
90756         Avoid a warning about an unused variable.
90757         * lib/regex_internal.c (re_dfa_add_node): Move declaration of "type"
90758         into the #ifdef block where it's used.
90760         * lib/rename-dest-slash.c: New file.
90762 2006-09-14  Bruno Haible  <bruno@clisp.org>
90764         * lib/allocsa.c: Include <config.h> unconditionally.
90765         * lib/asnprintf.c: Likewise.
90766         * lib/asprintf.c: Likewise.
90767         * lib/c-strcasecmp.c: Likewise.
90768         * lib/c-strcasestr.c: Likewise.
90769         * lib/c-strncasecmp.c: Likewise.
90770         * lib/c-strstr.c: Likewise.
90771         * lib/classpath.c: Likewise.
90772         * lib/clean-temp.c: Likewise.
90773         * lib/concatpath.c: Likewise.
90774         * lib/copy-file.c: Likewise.
90775         * lib/csharpcomp.c: Likewise.
90776         * lib/csharpexec.c: Likewise.
90777         * lib/execute.c: Likewise.
90778         * lib/fatal-signal.c: Likewise.
90779         * lib/findprog.c: Likewise.
90780         * lib/fwriteerror.c: Likewise.
90781         * lib/gl_array_list.c: Likewise.
90782         * lib/gl_array_oset.c: Likewise.
90783         * lib/gl_avltree_list.c: Likewise.
90784         * lib/gl_avltree_oset.c: Likewise.
90785         * lib/gl_avltreehash_list.c: Likewise.
90786         * lib/gl_carray_list.c: Likewise.
90787         * lib/gl_linked_list.c: Likewise.
90788         * lib/gl_linkedhash_list.c: Likewise.
90789         * lib/gl_list.c: Likewise.
90790         * lib/gl_oset.c: Likewise.
90791         * lib/gl_rbtree_list.c: Likewise.
90792         * lib/gl_rbtree_oset.c: Likewise.
90793         * lib/gl_rbtreehash_list.c: Likewise.
90794         * lib/imaxabs.c: Likewise.
90795         * lib/imaxdiv.c: Likewise.
90796         * lib/javacomp.c: Likewise.
90797         * lib/javaexec.c: Likewise.
90798         * lib/javaversion.c: Likewise.
90799         * lib/linebreak.c: Likewise.
90800         * lib/localcharset.c: Likewise.
90801         * lib/lock.c: Likewise.
90802         * lib/mbchar.c: Likewise.
90803         * lib/mbswidth.c: Likewise.
90804         * lib/mkdtemp.c: Likewise.
90805         * lib/pipe.c: Likewise.
90806         * lib/printf-args.c: Likewise.
90807         * lib/printf-parse.c: Likewise.
90808         * lib/progname.c: Likewise.
90809         * lib/progreloc.c: Likewise.
90810         * lib/readlink.c: Likewise.
90811         * lib/sh-quote.c: Likewise.
90812         * lib/stpcpy.c: Likewise.
90813         * lib/stpncpy.c: Likewise.
90814         * lib/strcasecmp.c: Likewise.
90815         * lib/strcasestr.c: Likewise.
90816         * lib/strcspn.c: Likewise.
90817         * lib/striconv.c: Likewise.
90818         * lib/strncasecmp.c: Likewise.
90819         * lib/strnlen1.c: Likewise.
90820         * lib/strstr.c: Likewise.
90821         * lib/strtok_r.c: Likewise.
90822         * lib/tls.c: Likewise.
90823         * lib/tmpdir.c: Likewise.
90824         * lib/unicodeio.c: Likewise.
90825         * lib/unsetenv.c: Likewise.
90826         * lib/vasnprintf.c: Likewise.
90827         * lib/vasprintf.c: Likewise.
90828         * lib/wait-process.c: Likewise.
90829         * lib/xallocsa.c: Likewise.
90830         * lib/xsetenv.c: Likewise.
90831         * lib/xstriconv.c: Likewise.
90833 2006-09-13  Simon Josefsson  <jas@extundo.com>
90835         * m4/getdate.m4: Don't AC_LIBOBJ([getdate]), automake takes care of
90836         that internally, suggested by Ralf Wildenhues
90837         <Ralf.Wildenhues@gmx.de>.
90839 2006-09-13  Simon Josefsson  <jas@extundo.com>
90841         * gnulib-tool (func_emit_lib_Makefile_am): Use $(LIBOBJS), not
90842         @LIBOBJS@.
90843         Suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
90845 2006-09-13  Paul Eggert  <eggert@cs.ucla.edu>
90847         * lib/_fpending.c: Include <config.h> unconditionally, since we no
90848         longer worry about uses that don't define HAVE_CONFIG_H.
90849         * lib/acl.c, lib/alloca.c, lib/argmatch.c, lib/atexit.c:
90850         * lib/backupfile.c, lib/basename.c, lib/c-stack.c, lib/c-strtod.c:
90851         * lib/calloc.c,lib/ canon-host.c, lib/canonicalize.c, lib/chdir-long.c:
90852         * lib/chdir-safer.c, lib/chown.c, lib/cloexec.c, lib/close-stream.c:
90853         * lib/closeout.c, lib/creat-safer.c, lib/cycle-check.c, lib/diacrit.c:
90854         * lib/dirchownmod.c, lib/dirfd.c, lib/dirname.c, lib/dup-safer.c:
90855         * lib/dup2.c, lib/error.c, lib/euidaccess.c, lib/exclude.c:
90856         * lib/exitfail.c, lib/fchmodat.c, lib/fchown-stub.c, lib/fd-safer.c:
90857         * lib/file-type.c, lib/fileblocks.c, lib/filemode.c, lib/filenamecat.c:
90858         * lib/fnmatch.c, lib/fopen-safer.c, lib/fprintftime.c, lib/free.c:
90859         * lib/fsusage.c, lib/ftruncate.c, lib/fts-cycle.c, lib/fts.c:
90860         * lib/full-write.c, lib/gai_strerror.c, lib/getcwd.c, lib/getdate.y:
90861         * lib/getdomainname.c, lib/getgroups.c, lib/gethostname.c:
90862         * lib/gethrxtime.c, lib/getloadavg.c, lib/getlogin_r.c:
90863         * lib/getndelim2.c, lib/getnline.c, lib/getopt.c, lib/getopt1.c:
90864         * lib/getpass.c, lib/gettime.c, lib/gettimeofday.c, lib/getugroups.c:
90865         * lib/getusershell.c, lib/glob.c, lib/group-member.c:
90866         * lib/hard-locale.c, lib/hash-pjw.c, lib/hash.c, lib/human.c:
90867         * lib/idcache.c, lib/inet_ntop.c, lib/inet_pton.c, lib/inttostr.c:
90868         * lib/isdir.c, lib/lchown.c, lib/linebuffer.c, lib/long-options.c:
90869         * lib/lstat.c, lib/malloc.c, lib/md5.c, lib/memcasecmp.c, lib/memchr.c:
90870         * lib/memcmp.c, lib/memcoll.c, lib/memcpy.c, lib/memmove.c:
90871         * lib/memrchr.c, lib/mkancesdirs.c, lib/mkdir-p.c, lib/mkdir.c:
90872         * lib/mkdirat.c, lib/mkstemp-safer.c, lib/mkstemp.c, lib/modechange.c:
90873         * lib/mountlist.c, lib/nanosleep.c, lib/obstack.c, lib/open-safer.c:
90874         * lib/openat-die.c, lib/openat.c, lib/pagealign_alloc.c, lib/physmem.c:
90875         * lib/pipe-safer.c, lib/posixtm.c, lib/posixver.c, lib/putenv.c:
90876         * lib/quote.c, lib/quotearg.c, lib/raise.c, lib/readtokens.c:
90877         * lib/readtokens0.c, lib/readutmp.c, lib/realloc.c, lib/regex.c:
90878         * lib/rename.c, lib/rmdir.c, lib/rpmatch.c, lib/safe-read.c:
90879         * lib/same.c, lib/save-cwd.c, lib/savedir.c, lib/setenv.c:
90880         * lib/settime.c, lib/sha1.c, lib/sig2str.c, lib/snprintf.c:
90881         * lib/strdup.c, lib/strerror.c, lib/strftime.c, lib/stripslash.c:
90882         * lib/strndup.c, lib/strnlen.c, lib/strpbrk.c, lib/strtod.c:
90883         * lib/strtoimax.c, lib/strtol.c, lib/strverscmp.c, lib/tempname.c:
90884         * lib/time_r.c, lib/timegm.c, lib/tmpfile-safer.c, lib/unlinkdir.c:
90885         * lib/userspec.c, lib/utime.c, lib/utimecmp.c, lib/utimens.c:
90886         * lib/version-etc-fsf.c, lib/version-etc.c, lib/xalloc-die.c:
90887         * lib/xgetcwd.c, lib/xgethostname.c, lib/xmalloc.c, lib/xmemcoll.c:
90888         * lib/xnanosleep.c, lib/xreadlink.c, lib/xstrtod.c, lib/xstrtoimax.c:
90889         * lib/xstrtol.c, lib/xstrtoumax.c, lib/yesno.c:
90890         Likewise.
90892 2006-09-13  Eric Blake  <ebb9@byu.net>
90894         * lib/getopt.c: Fix typo in last commit.
90896 2006-09-12  Sergey Poznyakoff  <gray@gnu.org.ua>
90898         * lib/argp-help.c (argp_doc): Make sure NULL is not passed to
90899         dgettext.
90901 2006-09-12  Jim Meyering  <jim@meyering.net>
90903         * lib/nanosleep.c: Include <sys/types.h> before sys/select.h, to avoid
90904         compilation failure (due to use of pid_t in latter) on NetBSD 1.6.
90905         Reported by Nelson H. F. Beebe.
90907 2006-09-10  Sergey Poznyakoff  <gray@gnu.org.ua>
90909         * lib/argp-parse.c (__argp_parse) [!_LIBC]: Make sure
90910         program_invocation_name and program_invocation_short_name are
90911         initialized.
90912         * lib/argp-namefrob.h: Move declarations of program_invocation_name
90913         and program_invocation_short_name to argp.h, so they are visible
90914         to user programs.
90915         * lib/argp.h: Likewise
90917 2006-09-10  Bruno Haible  <bruno@clisp.org>
90919         * modules/mkdtemp (Files): Remove m4/ulonglong.m4, m4/stdint_h.m4,
90920         m4/inttypes_h.m4, m4/uintmax_t.m4.
90922 2006-09-10  Bruno Haible  <bruno@clisp.org>
90924         * m4/mkdtemp.m4 (gl_PREREQ_MKDTEMP): Don't require
90925         gl_AC_TYPE_UINTMAX_T.
90927 2006-09-10  Bruno Haible  <bruno@clisp.org>
90929         * lib/mkdtemp.c: Include <stdint.h> always. Don't include <inttypes.h>.
90931 2006-09-09  Sergey Poznyakoff  <gray@gnu.org.ua>
90933         * lib/argp.h (struct argp): Document the N_("..") "\v" N_("..")
90934         convention.  Text proposed by Bruno Haible.
90935         (struct argp_option): Document the use of N_() wrappers.
90937         * lib/argp-help.c (argp_doc): Split the untranslated doc string on
90938         '\v', and translate the two parts separately, instead of feeding
90939         the whole string to gettext.  This allows to exclude
90940         '\v' from the strings visible to the translator by writing doc
90941         strings as N_("..") "\v" N_("..").
90943 2006-09-09  Paul Eggert  <eggert@cs.ucla.edu>
90945         * config/srclist.txt: Undo latest change; the bug was fixed.
90947 2006-09-09  Bruno Haible  <bruno@clisp.org>
90949         * gnulib-tool (func_emit_lib_Makefile_am): Eliminate lib_LDFLAGS
90950         assignments if building a library without libtool.
90951         (func_emit_tests_Makefile_am): Likewise. Handle lib_* variables as
90952         in func_emit_lib_Makefile_am.
90953         (func_import): When building a static library libfoo.a, arrange to
90954         define variables LIBFOO_LIBDEPS and LIBFOO_LTLIBDEPS.
90955         (func_create_testdir): Likewise.
90956         * modules/gc (configure.ac, Makefile.am): If building statically,
90957         augment gl_libdeps and gl_ltlibdeps instead of lib_LDFLAGS.
90958         * modules/iconvme (configure.ac, Makefile.am): Likewise.
90959         * modules/striconv (configure.ac, Makefile.am): Likewise.
90960         Based on a suggestion by Ralf Wildenhues.
90962 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
90964         * m4/mktime.m4 (AC_FUNC_MKTIME): Sync from Autoconf.
90965         Check for unistd.h too, since Autoconf doesn't assume POSIX.
90966         Also:
90968         2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
90969         Add year_2050_test to catch glibc bug 2821
90970         <http://sourceware.org/bugzilla/show_bug.cgi?id=2821>.
90972         2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
90973         Prefer #ifdef to #if.
90975         2006-04-02  Paul Eggert  <eggert@cs.ucla.edu>
90976         Return from 'main' instead of calling 'exit'.
90978 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
90980         * lib/mktime.c (guess_time_tm): Fix bug where mktime
90981         returned the maximum time_t value rather than (time_t) -1.
90982         Problem originally reported by William Bardwell
90983         <http://sourceware.org/bugzilla/show_bug.cgi?id=2821>.
90985         * lib/isapipe.h (HAVE_FIFO_PIPES) [!defined HAVE_FIFO_PIPES]:
90986         Moved to here ...
90987         * lib/isapipe.c (HAVE_FIFO_PIPES) [!defined HAVE_FIFO_PIPES]:
90988         ... from here.
90990 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
90992         * config/srclist.txt: Temporarily comment out mktime.c until glibc bug
90993         2821 is fixed.
90995 2006-09-08  Jim Meyering  <jim@meyering.net>
90997         Don't make generated files read-only.  That would bother too many
90998         people.  However, do retain the ability to work when targets are
90999         read-only: remove the destination and temporary files before writing
91000         them (when generated via sed or echo), or by using the -f option for
91001         both cp and mv commands.  Suggestion to use -f from Paul Eggert.
91002         * modules/alloca-opt, modules/argz, modules/arpa_inet:
91003         * modules/byteswap, modules/configmake, modules/fcntl:
91004         * modules/fnmatch, modules/getopt, modules/glob, modules/inttypes:
91005         * modules/localcharset, modules/netinet_in, modules/poll:
91006         * modules/stdbool, modules/stdint, modules/sys_select:
91007         * modules/sys_socket, modules/sys_stat, modules/sysexits:
91009 2006-09-08  Jim Meyering  <jim@meyering.net>
91011         Avoid new build failure on FreeBSD 6.0.
91012         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Include
91013         <sys/param.h> when testing whether getmntinfo uses statvfs.  Patch by
91014         Pavel Tsekov, in <http://savannah.gnu.org/bugs/?17643>.
91016 2006-09-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
91018         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Don't use plain echo.
91020 2006-09-07  Jim Meyering  <jim@meyering.net>
91022         Fix global typo in last change: use chmod u-w, not chmod u-x.
91023         Spotted by Paul Eggert and Bruce Korb.
91024         * modules/alloca-opt, modules/argz, modules/arpa_inet:
91025         * modules/byteswap, modules/configmake, modules/fcntl:
91026         * modules/fnmatch, modules/getopt, modules/glob, modules/inttypes:
91027         * modules/localcharset, modules/netinet_in, modules/poll:
91028         * modules/stdbool, modules/stdint, modules/sys_select:
91029         * modules/sys_socket, modules/sys_stat, modules/sysexits:
91031 2006-09-06  Jim Meyering  <jim@meyering.net>
91033         Make generated files be read-only.
91034         * modules/alloca-opt (Makefile.am): Work also when $@ is read-only.
91035         Ensure that each generated file is now read-only.
91036         * modules/argz: Likewise.
91037         * modules/arpa_inet: Likewise.
91038         * modules/byteswap: Likewise.
91039         * modules/configmake: Likewise.
91040         * modules/fcntl: Likewise.
91041         * modules/fnmatch: Likewise.
91042         * modules/getopt: Likewise.
91043         * modules/glob: Likewise.
91044         * modules/inttypes: Likewise.
91045         * modules/netinet_in: Likewise.
91046         * modules/poll: Likewise.
91047         * modules/stdbool: Likewise.
91048         * modules/stdint: Likewise.
91049         * modules/sys_select: Likewise.
91050         * modules/sys_socket: Likewise.
91051         * modules/sys_stat: Likewise.
91052         * modules/sysexits: Likewise.
91053         * modules/localcharset: Same as above, but continue using temporary
91054         file named "t-$@" (why different?) rather than the "$@-t" used
91055         everywhere else.
91057         * modules/sysexits (Makefile.am): Replace literal occurrences
91058         of "sysexit.h" more readable, and more consistent, "$@".
91060 2006-09-06  Bruno Haible  <bruno@clisp.org>
91062         * modules/striconv: New file.
91063         * modules/xstriconv: New file.
91064         * MODULES.html.sh (Internationalization functions): Add striconv,
91065         xstriconv.
91067 2006-09-06  Bruno Haible  <bruno@clisp.org>
91069         * modules/gc (Makefile.am): Augment lib_LDFLAGS, not lib_LIBADD.
91070         * modules/iconvme (Makefile.am): Likewise. Also handle the case of
91071         not using libtool correctly.
91073 2006-09-06  Bruno Haible  <bruno@clisp.org>
91075         * lib/striconv.h: New file.
91076         * lib/striconv.c: New file, merging iconvme.c with GNU gettext's
91077         iconvstring.c.
91078         * lib/xstriconv.h: New file.
91079         * lib/xstriconv.c: New file.
91081 2006-09-06  Bruno Haible  <bruno@clisp.org>
91083         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
91084         lib_..._LDFLAGS.
91086 2006-09-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
91088         * lib/argz_.h: Sync from Libtool.
91090         2006-09-04  George Bosilca <bosilca@cs.utk.edu>
91091                 and Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
91093         * lib/libltdl/argz_.h: It's __cplusplus, not _cplusplus.
91095 2006-09-05  Davide Angelocola  <davide.angelocola@tiscali.it>
91097         * modules/trim: New file.
91099 2006-09-05  Davide Angelocola  <davide.angelocola@tiscali.it>
91101         * lib/trim.h: New file.
91102         * lib/trim.c: New file.
91104 2006-09-05  Bruno Haible  <bruno@clisp.org>
91106         * MODULES.html.sh (String handling): Add trim.
91108 2006-09-04  Karl Berry  <karl@gnu.org>
91110         * config/srclist.txt (signed.m4, gettext.m4): changes not propagated
91111         until next release.
91113 2006-09-03  Bruno Haible  <bruno@clisp.org>
91115         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Locate mingw shared libraries
91116         correctly.
91118 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
91120         * m4/getloadavg.m4 (gl_GETLOADAVG): Use CONFIGURING_GETLOADAVG,
91121         not gl_GETLOADAVG.  Omit unneeded semicolons.
91122         Problems reported by Ralf Wildenhues in
91123         <http://lists.gnu.org/archive/html/bug-gnulib/2006-09/msg00000.html>.
91124         (gl_PREREQ_GETLOADAVG): Use AC_DEFUN, not m4_define.  Put
91125         at the end, which is the usual gnulib style.
91127         * m4/fstypename.m4 (gl_FSTYPENAME): Use AC_CHECK_MEMBERS instead
91128         of doing all the work ourselves.
91129         * m4/fsusage.m4 (gl_PREREQ_FSUSAGE_EXTRA): Don't check for
91130         sys/statvfs.h since the code doesn't use HAVE_SYS_STATVFS_H.
91132 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
91134         * lib/getloadavg.c: Use CONFIGURING_GETLOADAVG, not gl_GETLOADAVG.
91135         Problem reported by Ralf Wildenhues in
91136         <http://lists.gnu.org/archive/html/bug-gnulib/2006-09/msg00000.html>.
91138         * lib/mountlist.c: All uses of HAVE_F_FSTYPENAME_IN_STATFS replaced by
91139         HAVE_STRUCT_STATFS_F_FSTYPENAME.
91141 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
91143         * gnulib-tool (func_emit_lib_Makefile_am): Fix typos in
91144         yesterday's patch by changing test -n to test -z.
91146 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
91148         * modules/getloadavg (Files): Add m4/getloadavg.m4.
91149         (configure.ac): AC_FUNC_GETLOADAVG -> gl_GETLOADAVG, as
91150         the former is now obsolescent.
91152         * modules/chdir-long (Depends-on): Add fcntl.
91154 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
91156         * m4/fnmatch.m4: Add comment that Autoconf AC_FUNC_FNMATCH is
91157         obsolescent, and programs should use gnulib instead.
91158         * m4/getloadavg.m4: New file, with contents taken from Autoconf
91159         but with prefixes changed.
91161 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
91163         * lib/getloadavg.c [defined gl_GETLOADAVG]: Don't include config.h
91164         or stdbool.h, because they might not exist while configuring.
91166         * lib/chdir-long.c: Include <fcntl.h>, for O_DIRECTORY.
91167         Don't include unistd.h or limits.h; not needed, since chdir-long.h
91168         does that for us.
91169         (O_DIRECTORY): Remove.
91171 2006-08-31  Eric Blake  <ebb9@byu.net>
91173         * gnulib-tool: Don't let emacs change spaces to TAB.
91175 2006-08-31  Bruno Haible  <bruno@clisp.org>
91177         * gnulib-tool: When calling func_import more than once, do it in a
91178         subshell.
91179         Reported by Eric Blake <ebb9@byu.net>.
91181 2006-08-31  Bruno Haible  <bruno@clisp.org>
91183         * gnulib-tool (nl): Remove variable.
91184         (sed_transform_lib_file): Use more robust test for config-h module.
91185         (func_import): Fix typo in 2006-08-25 patch.
91187 2006-08-31  Bruno Haible  <bruno@clisp.org>
91189         * gnulib-tool (func_emit_lib_Makefile_am): When --makefile-name was
91190         specified, augment Makefile.am variables instead of assigning them.
91192 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
91194         Work around a bug in both the Linux and SunOS 64-bit kernels:
91195         nanosleep mishandles sleeps for longer than 2**31 seconds.
91196         Problem reported by Frank v Waveren in
91197         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00298.html>.
91198         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Require gl_CLOCK_TIME.
91199         Check for nanosleep bug.
91200         (LIB_NANOSLEEP): Append clock_gettime library if needed.
91202 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
91204         Work around a bug in both the Linux and SunOS 64-bit kernels:
91205         nanosleep mishandles sleeps for longer than 2**31 seconds.
91206         Problem reported by Frank v Waveren in
91207         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00298.html>.
91208         * lib/nanosleep.c (BILLION): New constant.
91209         (getnow) [HAVE_BUG_BIG_NANOSLEEP]: New functions.
91210         (rpl_nanosleep) [HAVE_BUG_BIG_NANOSLEEP]: Completely new
91211         implementation.
91213 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
91215         * modules/nanosleep (Depends-on): Add gettime.
91217 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
91218         and Simon Josefsson  <jas@extundo.com>
91219         and Oskar Liljeblad  <oskar@osk.mine.nu>
91221         * MODULES.html.sh (Support for building documentation): Add gpl, lgpl.
91222         * gnulib-tool (func_import): New license type 'unmodifiable license
91223         text'.
91224         * modules/fdl: Use it.  Longer description.
91225         * module/gpl, module/lgpl: New files.
91227 2006-08-30  Jim Meyering  <jim@meyering.net>
91229         * lib/isapipe.c (isapipe): Rename local s/fd/fd_pair/ to avoid
91230         shadowing the parameter.
91232 2006-08-29  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
91234         Sync from Libtool:
91236         2006-08-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
91238         * lib/libltdl/argz.c: Use `#ifdef HAVE_CONFIG_H', to facilitate code
91239         sharing with gnulib.  Report by Eric Blake.
91241 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
91243         * modules/isapipe: New file.
91244         * MODULES.html.sh (File descriptor based Input/Output): Add isapipe.
91246 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
91248         * modules/configmake (Makefile.am): Add a comment, and omit
91249         the CONFIGMAKE_ prefix from generated macro names.  Suggested
91250         by Bruno Haible.
91252 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
91254         * m4/isapipe.m4: New file.
91256 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
91258         * lib/isapipe.c, lib/isapipe.h: New files.
91260 2006-08-29  Jim Meyering  <jim@meyering.net>
91262         * modules/configmake (Makefile.am): Make configmake.h depend on
91263         Makefile.  Otherwise, a stale configmake.h could hang around.
91265 2006-08-29  Eric Blake  <ebb9@byu.net>
91267         * lib/error.c (error_at_line, print_errno_message): Match libc, after
91268         resolution of upstream bug 3044.
91270 2006-08-29  Bruno Haible  <bruno@clisp.org>
91272         * modules/localcharset (Depends-on): Add configmake.
91273         (Makefile.am): Remove setting of LIBDIR through DEFS.
91275 2006-08-29  Bruno Haible  <bruno@clisp.org>
91277         * lib/localcharset.c: Include configmake.h in order to get LIBDIR
91278         defined.
91280 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
91282         * modules/fcntl: New file.
91283         * modules/chdir-safer (Depends-on): Add fcntl.
91284         * modules/fts: Likewise.
91285         * modules/mkdir-p: Likewise.
91287         * modules/stdint (Makefile.am): Do not substitute ABSOLUTE_INTTYPES_H.
91288         This undoes the most recent change, since we're now addressing the
91289         problem in a different way.
91291         * gnulib-tool (emit_lib_Makefile_am): Don't put $makefile_name
91292         into output, since the output might be called Makefile.am even
91293         if $makefile_name is something different.
91294         (func_import): Use $makefile_am rather than
91295         ${makefile_name-Makefile.am}, to fix a bug where makefile_name was
91296         empty.
91298         * modules/inttypes (Files): Add m4/inttypes-h.m4.
91300 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
91302         * m4/inttypes.m4 (gl_INTTYPES_H): Move ABSOLUTE_INTTYPES_H code here...
91303         * m4/stdint.m4 (gl_STDINT_H): ... from here.  This undoes the most
91304         recent change to stdint.m4, since we're now addressing the problem in a
91305         different way.
91307 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
91309         * m4/fcntl_h.m4: New file.
91311 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
91313         * lib/fcntl_.h: New file.
91314         * lib/chdir-safer.c (O_DIRECTORY, O_NOFOLLOW): Remove, now that we have
91315         the fcntl module.
91316         * lib/dirchownmod.c: Likewise.
91317         * lib/fts.c: Likewise.
91319         * lib/inttypes_.h [defined _GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H]:
91320         Include @ABSOLUTE_INTTYPES_H@ if available, but do nothing else.
91321         * lib/stdint_.h (_GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H): Define
91322         just before including <inttypes.h>, to avoid circular inclusion.
91324 2006-08-28  Jim Meyering  <jim@meyering.net>
91326         * doc/visibility.texi: Actually read and correct the grammar of the
91327         sentence affected by yesterday's change.
91329 2006-08-28  Eric Blake  <ebb9@byu.net>
91331         * modules/inttypes (Makefile.am): Fix sed error when inttypes.h
91332         needs wrapper.
91334 2006-08-28  Eric Blake  <ebb9@byu.net>
91336         * m4/inttypes.m4 (gl_INTTYPES_H): Fix missing #endif.
91338 2006-08-28  Eric Blake  <ebb9@byu.net>
91340         * m4/codeset.m4 (AM_LANGINFO_CODESET): Avoid compiler warning.
91342 2006-08-28  Bruno Haible  <bruno@clisp.org>
91344         * modules/c-strstr: New file, from GNU gettext.
91345         * MODULES.html.sh (String handling): Add c-strstr.
91347 2006-08-28  Bruno Haible  <bruno@clisp.org>
91349         * m4/inttypes.m4 (gl_INTTYPES_H): Don't test for the existence of SCNX*
91350         macros.
91351         Reported by Eric Blake.
91353 2006-08-28  Bruno Haible  <bruno@clisp.org>
91355         * lib/vasnprintf.c (EOVERFLOW): Remove definition.
91356         (VASNPRINTF): Return a string of length > INT_MAX without failing.
91357         * lib/vasprintf.c: Include errno.h, limits.h.
91358         (EOVERFLOW): New fallback definition.
91359         (vasprintf): Test here whether the string length is > INT_MAX.
91360         * lib/vsnprintf.c: Include errno.h, limits.h.
91361         (EOVERFLOW): New fallback definition.
91362         (vsnprintf): Fix bug when generated string was too long for the buffer.
91363         Test here whether the string length is > INT_MAX.
91365 2006-08-28  Bruno Haible  <bruno@clisp.org>
91367         * lib/inttypes_.h (SCNX*): Remove definitions.
91368         Reported by Eric Blake.
91370 2006-08-28  Bruno Haible  <bruno@clisp.org>
91372         * lib/c-strstr.h: New file, from GNU gettext.
91373         * lib/c-strstr.c: New file, from GNU gettext.
91375 2006-08-28  Bruno Haible  <bruno@clisp.org>
91377         * gnulib-tool: Reorder some statements.
91379 2006-08-28  Bruno Haible  <bruno@clisp.org>
91381         * gnulib-tool: New option --makefile-name.
91382         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Use
91383         $makefile_name.
91384         (func_import): Write $makefile_name to the cache file, and read it from
91385         there unless explicitly specified. Use $makefile_name as file name
91386         instead of Makefile.am. Adjust the recommendations accordingly.
91388 2006-08-28  Bruno Haible  <bruno@clisp.org>
91390         * gnulib-tool (func_verify_module): Check against misapplying patch.
91392 2006-08-28  Bruno Haible  <bruno@clisp.org>
91394         * gnulib-tool (func_relativize, func_relconcat): New functions.
91395         Give an error if --local-dir is given with --update.
91396         Remove trailing slashes from $local_gnulib_dir.
91397         (func_import): Store the relativized $local_gnulib_dir in
91398         gnulib-cache.m4, and read it from there if not specified explicitly.
91400 2006-08-28  Bruno Haible  <bruno@clisp.org>
91402         * gnulib-tool (func_get_tests_module): Don't assume that $gnulib_dir
91403         is the current directory. Respect also $local_gnulib_dir.
91405 2006-08-28  Bruno Haible  <bruno@clisp.org>
91406             Simon Josefsson  <jas@extundo.com>
91408         BeOS portability.
91409         * lib/getaddrinfo.c (PF_INET, PF_UNSPEC): New macros.
91411 2006-08-27  Jim Meyering  <jim@meyering.net>
91413         * doc/visibility.texi: Remove duplicate word: "pointer".
91415 2006-08-26  Bruno Haible  <bruno@clisp.org>
91417         * modules/inttypes (Files): Add lib/inttypes_.h, remove lib/inttypes.h.
91418         Add m4/inttypes.m4, remove m4/_inttypes_h.m4 and m4/include_next.m4.
91419         (Makefile.am): Create inttypes.h from inttypes_.h.
91420         * modules/stdint (Makefile.am): Substitute also ABSOLUTE_INTTYPES_H.
91422         * modules/imaxabs: New file.
91424         * modules/imaxdiv: New file.
91426 2006-08-26  Bruno Haible  <bruno@clisp.org>
91428         * m4/inttypes.m4: New file.
91429         * m4/_inttypes_h.m4: Remove file.
91430         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Also AC_SUBST
91431         PRI_MACROS_BROKEN.
91432         * m4/stdint.m4 (gl_STDINT_H): Define also ABSOLUTE_INTTYPES_H.
91434         * m4/imaxabs.m4: New file.
91436         * m4/imaxdiv.m4: New file.
91438 2006-08-26  Bruno Haible  <bruno@clisp.org>
91440         * lib/inttypes_.h: New file.
91441         * lib/inttypes.h: Remove file.
91442         * lib/stdint_.h: Include <inttypes.h> through its absolute filename.
91444         * lib/imaxabs.c: New file.
91446         * lib/imaxdiv.c: New file.
91448 2006-08-25  Paul Eggert  <eggert@cs.ucla.edu>
91450         New config-h module, so that "make" output needn't be cluttered
91451         by -DHAVE_CONFIG_H.
91452         * MODULES.html.sh (Support for building libraries and executables):
91453         Add config-h.
91454         * modules/config-h: New file.
91455         * gnulib-tool (nl, sed_transform_lib_file): New vars.
91456         (func_import): Turn "#ifdef HAVE_CONFIG_H" to "#if 1" if
91457         the config-h module is used.
91459         New configmake module, so that "make" output needn't be cluttered
91460         by fluff like '-DLIBDIR=\"/usr/local/lib\"'.
91461         * MODULES.html.sh (Support for building libraries and executables):
91462         Add configmake.
91463         * modules/configmake: New file.
91465 2006-08-25  Paul Eggert  <eggert@cs.ucla.edu>
91467         * m4/config-h.m4: New file.
91469 2006-08-24  Paul Eggert  <eggert@cs.ucla.edu>
91471         * config/srclist.txt: Add elisp-comp.
91473 2006-08-24  Paul Eggert  <eggert@cs.ucla.edu>
91475         * MODULES.html.sh (Support for building libraries and executables):
91476         Add elisp-comp.
91477         * build-aux/elisp-comp: New file.
91478         * modules/elisp-comp: New file.
91480 2006-08-24  Bruno Haible  <bruno@clisp.org>
91482         * gnulib-tool (func_create_testdir): Use non-default values of
91483         sourcebase and m4base.
91485 2006-08-24  Bruno Haible  <bruno@clisp.org>
91487         * MODULES.html.sh (Compatibility checks for POSIX:2001 functions: Fix
91488         HTML structure.
91490 2006-08-23  Paul Eggert  <eggert@cs.ucla.edu>
91492         * modules/openat (Depends-on): Add lchown.
91494 2006-08-23  Bruno Haible  <bruno@clisp.org>
91496         * gnulib-tool (func_import, func_create_testdir): Emit an invocation
91497         of gl_LOCK_EARLY instead of gl_LOCK.
91499 2006-08-23  Bruno Haible  <bruno@clisp.org>
91501         * m4/lock.m4 (gl_LOCK_BODY): Change the default value of gl_use_threads
91502         on OSF/1 to no.
91503         Reported by Stephen Cartwright <sgcartwr@ucalgary.ca>.
91505 2006-08-23  Bruno Haible  <bruno@clisp.org>
91507         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Don't consider BeOS statvfs
91508         as unusable.
91510         * m4/lock.m4 (gl_LOCK_EARLY): Renamed from gl_LOCK.
91511         (gl_LOCK_BODY): Remove gl_PREREQ_LOCK invocation.
91512         (gl_LOCK): New macro.
91514 2006-08-22  Simon Josefsson  <jas@extundo.com>
91516         * modules/gc-md5 (Makefile.am): Need to add md5.h, after changes
91517         to md5 module.
91519 2006-08-22  Simon Josefsson  <jas@extundo.com>
91521         * MODULES.html.sh: Add "Support for maintaining and release
91522         projects".
91524         * build-aux/gnupload: New file, from coreutils.
91526 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
91528         Avoid the need for AC_LIBSOURCES in m4 macros.
91529         * modules/arcfour (EXTRA_DIST): Add arcfour.h.
91530         * modules/arctwo (EXTRA_DIST): Add arctwo.h.
91531         * modules/check-version (EXTRA_DIST): Add check-version.h.
91532         * modules/crc (EXTRA_DIST): Add crc.h.
91533         * modules/des (EXTRA_DIST): Add des.h.
91534         * modules/gc (EXTRA_DIST): Add gc.h.
91535         * modules/getdelim (EXTRA_DIST): Add getdelim.h.
91536         * modules/getline (EXTRA_DIST): Add getline.h.
91537         * modules/getlogin_r (EXTRA_DIST): Add getlogin_r.h.
91538         * modules/hmac-md5 (EXTRA_DIST): Add hmac.h.
91539         * modules/hmac-sha1 (EXTRA_DIST): Add hmac.h.
91540         * modules/md2 (EXTRA_DIST): Add md2.h.
91541         * modules/md4 (EXTRA_DIST): Add md4.h.
91542         * modules/pagealign_alloc (EXTRA_DIST): Add pagealign_alloc.h.
91543         * modules/read-file (EXTRA_DIST): Add read-file.h.
91544         * modules/readline (EXTRA_DIST): Add readline.h.
91545         * modules/rijndael (EXTRA_DIST): Add rijndael-alg-fst.h,
91546         rijndael-api-fst.h.
91548 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
91550         * m4/rijndael.m4 (gl_ARCFOUR):
91551         * m4/arctwo.m4 (gl_ARCTWO):
91552         * m4/check-version.m4 (gl_CHECK_VERSION):
91553         * m4/crc.m4 (gl_CRC):
91554         * m4/des.m4 (gl_DES):
91555         * m4/gc-pbkdf2-sha1.m4 (gl_GC_PBKDF2_SHA1):
91556         * m4/gc.m4 (gl_GC):
91557         * m4/getdelim.m4 (gl_FUNC_GETDELIM):
91558         * m4/getline.m4 (gl_FUNC_GETLINE):
91559         * m4/getlogin_r.m4 (gl_GETLOGIN_R_SUBSTITUTE):
91560         * m4/hmac-md5.m4 (gl_HMAC_MD5):
91561         * m4/hmac-sha1.m4 (gl_HMAC_SHA1):
91562         * m4/md2.m4 (gl_MD2):
91563         * m4/md4.m4 (gl_MD4):
91564         * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC):
91565         * m4/read-file.m4 (gl_FUNC_READ_FILE):
91566         * m4/readline.m4 (gl_FUNC_READLINE):
91567         * m4/rijndael.m4 (gl_RIJNDAEL):
91568         Don't use AC_LIBSOURCES; instead, rely on the files in ../modules/
91569         to get the necessary .h files and whatnot.
91571 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
91573         * config/srclist.txt: Remove gnupload, since coreutils now syncs from
91574         gnulib rather than the other way around.
91575         * config/srclistvars.sh (COREUTILS): Remove.
91577 2006-08-22  Jim Meyering  <jim@meyering.net>
91579         * modules/mkdir-p (Makefile.am): Fix typo: s/lib+SOURCES/lib_SOURCES/.
91581         * modules/getpass-gnu (Makefile.am): Add getpass.h to EXTRA_DIST.
91583 2006-08-22  Eric Blake  <ebb9@byu.net>
91585         * modules/regexprops-generic: New file.
91586         * MODULES.html.sh (Support for building documentation): List it.
91588 2006-08-22  Eric Blake  <ebb9@byu.net>
91590         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Avoid compiler warning.
91591         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
91592         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Likewise.
91593         * m4/intmax_t.m4 (gt_AC_TYPE_INTMAX_T): Likewise.
91595 2006-08-22  Bruno Haible  <bruno@clisp.org>
91597         * gnulib-tool (func_emit_lib_Makefile_am): Don't treat lib_LIBRARIES
91598         and lib_LTLIBRARIES like the other lib_* variables.
91600 2006-08-22  Bruno Haible  <bruno@clisp.org>
91602         * build-aux/x-to-1.in: New file, from GNU gettext.
91604 2006-08-22  Bruno Haible  <bruno@clisp.org>
91606         * m4/readutmp.m4 (gl_READUTMP): Compile readutmp.c only if <utmp.h> or
91607         <utmpx.h> exists.
91609 2006-08-22  Bruno Haible  <bruno@clisp.org>
91611         * lib/readutmp.h: Skip most definitions if neither <utmp.h> nor
91612         <utmpx.h> exists.
91614 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
91616         BeOS portability.
91617         * lib/dirchownmod.c (dirchownmod): Don't use fchmod if it doesn't
91618         exist.
91619         Problem reported by Bruno Haible.
91621 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
91623         Avoid the need for AC_LIBSOURCES in m4 macros.
91624         * modules/acl (EXTRA_DIST): Add acl.h.
91625         * modules/argmatch (Files): Add m4/argmatch.m4.
91626         (configure.ac): Add gl_ARGMATCH.
91627         (EXTRA_DIST): Renamed from lib_SOURCES, for
91628         consistency with the other modules.  Remove argmatch.c.
91629         * modules/backupfile (EXTRA_DIST): Add backupfile.h.
91630         * modules/c-strtod (EXTRA_DIST): Add c-strtod.h.
91631         * modules/c-strtold (EXTRA_DIST): Add c-strtod.c, c-strtod.h.
91632         * modules/canonhost (EXTRA_DIST): Add c-canonhost.h.
91633         * modules/canonicalize (EXTRA_DIST): Add canonicalize.h.
91634         * modules/chdir-long (EXTRA_DIST): Add chdir-long.h.
91635         * modules/chdir-safer (EXTRA_DIST): Add chdir-safer.h.
91636         * modules/cloexec (EXTRA_DIST): Add cloexec.h.
91637         * modules/close-stream (EXTRA_DIST): Add close-stream.h.
91638         * modules/closeout (EXTRA_DIST): Add closeout.h.
91639         * modules/cycle-check (EXTRA_DIST): Add cycle-check.h.
91640         * modules/dev-ino (EXTRA_DIST): Add dev-ino.h.
91641         * modules/dirfd (EXTRA_DIST): Add dirfd.h.
91642         * modules/dirname (EXTRA_DIST): Renamed from lib_SOURCES.  Add
91643         dirname.h; remove basename.c and stripslash.c.
91644         * modules/exclude (EXTRA_DIST): Add exclude.h.
91645         * modules/exitfail (EXTRA_DIST): Add exitfail.h.
91646         * modules/fcntl-safer (EXTRA_DIST): Add fcntl-safer.h fcntl--.h.
91647         * modules/file-type (EXTRA_DIST): Add file-type.h.
91648         * modules/filemode (EXTRA_DIST): Add filemode.h.
91649         * modules/filenamecat (EXTRA_DIST): Add filenamecat.h.
91650         * modules/fopen-safer (EXTRA_DIST): Add stdio-safer.h stdio--.h.
91651         * modules/fpending (EXTRA_DIST): Add __fpending.h.
91652         * modules/fprintftime (EXTRA_DIST): Add fprintftime.h.
91653         * modules/fsusage (EXTRA_DIST): Add fsusage.h.
91654         * modules/fts (EXTRA_DIST): Add fts_.h fts-cycle.c.
91655         * modules/getcwd (EXTRA_DIST): Add getcwd.h.
91656         * modules/getdate (EXTRA_DIST): Add getdate.c.
91657         * modules/gethrxtime (EXTRA_DIST): Add gethrxtime.h xtime.h.
91658         * modules/getpagesize (EXTRA_DIST): Add getpagesize.h.
91659         * modules/getpass (EXTRA_DIST): Add getpass.h.
91660         * modules/glob (EXTRA_DIST): Add glob_.h glob-libc.h.
91661         * modules/group-member (EXTRA_DIST): Add group-member.h.
91662         * modules/hard-locale (EXTRA_DIST): Add hard-locale.h.
91663         * modules/hash (EXTRA_DIST): Add hash.h.
91664         * modules/human (EXTRA_DIST): Add human.h.
91665         * modules/inttypes (EXTRA_DIST): Add inttypes.h.
91666         * modules/lchmod (EXTRA_DIST): Add lchmod.h.
91667         * modules/lchown (EXTRA_DIST): Add lchown.h.
91668         * modules/long-options (EXTRA_DIST): Add long-options.h.
91669         * modules/lstat (EXTRA_DIST): Add lstat.h.
91670         * modules/md5 (EXTRA_DIST): Add memcasecmp.h.
91671         * modules/memcoll (EXTRA_DIST): Add memcoll.h.
91672         * modules/mempcpy (EXTRA_DIST): Add mempcpy.h.
91673         * modules/memrchr (EXTRA_DIST): Add memrchr.h.
91674         * modules/memxor (EXTRA_DIST): Add memxor.h.
91675         * modules/mkancesdirs (EXTRA_DIST): Add mkancesdirs.h.
91676         * modules/mkdir-p (EXTRA_DIST): Add modechange.h.
91677         * modules/mountlist (EXTRA_DIST): Add mountlist.h.
91678         * modules/openat (EXTRA_DIST): Add at-func.c openat.h openat-priv.h.
91679         * modules/pathmax (EXTRA_DIST): Add pathmax.h.
91680         * modules/physmem (EXTRA_DIST): Add physmem.h.
91681         * modules/posixtm (EXTRA_DIST): Add posixtm.h.
91682         * modules/posixver (EXTRA_DIST): Add posixver.h.
91683         * modules/quote (EXTRA_DIST): Add quote.h.
91684         * modules/quotearg (EXTRA_DIST): Add quotearg.h.
91685         * modules/readtokens (EXTRA_DIST): Add readtokens.h.
91686         * modules/readutmp (EXTRA_DIST): Add readutmp.h.
91687         * modules/regex (EXTRA_DIST): Add regcomp.c regex.h regex_internal.c
91688         regex_internal.h regexec.c.
91689         * modules/safe-read (EXTRA_DIST): Add safe-read.h.
91690         * modules/safe-write (EXTRA_DIST): Add safe-write.h.
91691         * modules/same (EXTRA_DIST): Add same.h.
91692         * modules/same-inode (EXTRA_DIST): Add same-inode.h.
91693         * modules/save-cwd (EXTRA_DIST): Add save-cwd.h.
91694         * modules/savedir (EXTRA_DIST): Add savedir.h.
91695         * modules/sha1 (EXTRA_DIST): Add sha1.h.
91696         * modules/sig2str (EXTRA_DIST): Add sig2str.h.
91697         * modules/stat-macros (EXTRA_DIST): Add stat-macros.h.
91698         * modules/stat-time (EXTRA_DIST): Add stat-time.h.
91699         * modules/stdlib-safer (EXTRA_DIST): Add stdlib-safer.h stdlib--.h.
91700         * modules/strdup (EXTRA_DIST): Add strdup.h.
91701         * modules/strftime (EXTRA_DIST): Add strftime.h.
91702         * modules/strndup (EXTRA_DIST): Add strndup.h.
91703         * modules/strnlen (EXTRA_DIST): Add strnlen.h.
91704         * modules/strverscmp (EXTRA_DIST): Add strverscmp.h.
91705         * modules/time_r (EXTRA_DIST): Add time_r.h.
91706         * modules/timespec (EXTRA_DIST): Add timespec.h.
91707         * modules/tmpfile-safer (EXTRA_DIST): Add stdio-safer.h stdio--.h.
91708         * modules/unistd-safer (EXTRA_DIST): Add unistd-safer.h unistd--.h.
91709         * modules/unlinkdir (EXTRA_DIST): Add unlinkdir.h.
91710         * modules/unlocked-io (EXTRA_DIST): Add unlocked-io.h.
91711         * modules/userspec (EXTRA_DIST): Add userspec.h.
91712         * modules/utimecmp (EXTRA_DIST): Add utimecmp.h.
91713         * modules/utimens (EXTRA_DIST): Add utimens.h.
91714         * modules/xalloc (EXTRA_DIST): Add xalloc.h.
91715         * modules/xgetcwd (EXTRA_DIST): Add xgetcwd.h.
91716         * modules/xnanosleep (EXTRA_DIST): Add xnanosleep.h.
91717         * modules/xreadlink (EXTRA_DIST): Add xreadlink.h.
91718         * modules/xstrtod (EXTRA_DIST): Add xstrtod.h.
91719         * modules/xstrtol (EXTRA_DIST): Add xstrtol.h.
91720         * modules/xstrtold (EXTRA_DIST): Add xstrtod.c xstrtod.h.
91721         * modules/yesno (EXTRA_DIST): Add yesno.h.
91723 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
91725         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Check for fchmod.
91727         * m4/argmatch.m4: New file, from coreutils with AC_LIBSOURCES removed.
91728         * m4/dev-ino.m4, same-inode.m4: Remove.
91730         * m4/_inttypes_h.m4 (gl_INTTYPES_H):
91731         * m4/acl.m4 (AC_FUNC_ACL):
91732         * m4/backupfile.m4 (gl_BACKUPFILE):
91733         * m4/c-strtod.m4 (gl_C99_STRTOLD):
91734         * m4/canon-host.m4 (gl_CANON_HOST):
91735         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME):
91736         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG):
91737         * m4/chdir-safer.m4 (gl_CHDIR_SAFER):
91738         * m4/cloexec.m4 (gl_CLOEXEC):
91739         * m4/close-stream.m4 (gl_CLOSE_STREAM):
91740         * m4/closeout.m4 (gl_CLOSEOUT):
91741         * m4/dirfd.m4 (gl_FUNC_DIRFD):
91742         * m4/dirname.m4 (gl_DIRNAME):
91743         * m4/exclude.m4 (gl_EXCLUDE):
91744         * m4/exitfail.m4 (gl_EXITFAIL):
91745         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER):
91746         * m4/file-type.m4 (gl_FILE_TYPE):
91747         * m4/filemode.m4 (gl_FILEMODE):
91748         * m4/filenamecat.m4 (gl_FILE_NAME_CONCAT):
91749         * m4/fpending.m4 (gl_FUNC_FPENDING):
91750         * m4/fprintftime.m4 (gl_FPRINTFTIME):
91751         * m4/fts.m4 (gl_FUNC_FTS):
91752         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL):
91753         * m4/getdate.m4 (gl_GETDATE):
91754         * m4/gethrxtime.m4 (gl_GETHRXTIME):
91755         * m4/getpagesize.m4 (gl_GETPAGESIZE):
91756         * m4/getpass.m4 (gl_FUNC_GETPASS):
91757         * m4/gettime.m4 (gl_GETTIME):
91758         * m4/getugroups.m4 (gl_GETUGROUPS):
91759         * m4/glob.m4 (gl_GLOB_SUBSTITUTE):
91760         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER):
91761         * m4/hard-locale.m4 (gl_HARD_LOCALE):
91762         * m4/hash.m4 (gl_HASH):
91763         * m4/idcache.m4 (gl_IDCACHE):
91764         * m4/lchmod.m4 (gl_FUNC_LCHMOD):
91765         * m4/lchown.m4 (gl_FUNC_LCHOWN):
91766         * m4/long-options.m4 (gl_LONG_OPTIONS):
91767         * m4/lstat.m4 (gl_FUNC_LSTAT):
91768         * m4/md5.m4 (gl_MD5):
91769         * m4/memcasecmp.m4 (gl_MEMCASECMP):
91770         * m4/memcoll.m4 (gl_MEMCOLL):
91771         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY):
91772         * m4/memrchr.m4 (gl_FUNC_MEMRCHR):
91773         * m4/memxor.m4 (gl_MEMXOR):
91774         * m4/mkancesdirs.m4 (gl_MKANCESDIRS):
91775         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS):
91776         * m4/modechange.m4 (gl_MODECHANGE):
91777         * m4/mountlist.m4 (gl_MOUNTLIST):
91778         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
91779         * m4/openat.m4 (gl_FUNC_OPENAT):
91780         * m4/pathmax.m4 (gl_PATHMAX):
91781         * m4/physmem.m4 (gl_PHYSMEM):
91782         * m4/posixtm.m4 (gl_POSIXTM):
91783         * m4/posixver.m4 (gl_POSIXVER):
91784         * m4/quote.m4 (gl_QUOTE):
91785         * m4/quotearg.m4 (gl_QUOTEARG):
91786         * m4/readtokens.m4 (gl_READTOKENS):
91787         * m4/readutmp.m4 (gl_READUTMP):
91788         * m4/regex.m4 (gl_REGEX):
91789         * m4/safe-read.m4 (gl_SAFE_READ):
91790         * m4/safe-write.m4 (gl_SAFE_WRITE):
91791         * m4/same.m4 (gl_SAME):
91792         * m4/save-cwd.m4 (gl_SAVE_CWD):
91793         * m4/savedir.m4 (gl_SAVEDIR):
91794         * m4/settime.m4 (gl_SETTIME):
91795         * m4/sha1.m4 (gl_SHA1):
91796         * m4/sig2str.m4 (gl_FUNC_SIG2STR):
91797         * m4/stat-macros.m4 (gl_STAT_MACROS):
91798         * m4/stat-time.m4 (gl_STAT_TIME):
91799         * m4/stdio-safer.m4 (gl_FOPEN_SAFER):
91800         * m4/stdlib-safer.m4 (gl_STDLIB_SAFER):
91801         * m4/strdup.m4 (gl_FUNC_STRDUP):
91802         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME):
91803         * m4/strndup.m4 (gl_FUNC_STRNDUP):
91804         * m4/strnlen.m4 (gl_FUNC_STRNLEN):
91805         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP):
91806         * m4/time_r.m4 (gl_TIME_R):
91807         * m4/timespec.m4 (gl_TIMESPEC):
91808         * m4/unistd-safer.m4 (gl_UNISTD_SAFER):
91809         * m4/unlinkdir.m4 (gl_UNLINKDIR):
91810         * m4/unlocked-io.m4 (gl_FUNC_GLIBC_UNLOCKED_IO):
91811         * m4/userspec.m4 (gl_USERSPEC):
91812         * m4/utimecmp.m4 (gl_UTIMECMP):
91813         * m4/utimens.m4 (gl_UTIMENS):
91814         * m4/xalloc.m4 (gl_XALLOC):
91815         * m4/xgetcwd.m4 (gl_XGETCWD):
91816         * m4/xnanosleep.m4 (gl_XNANOSLEEP):
91817         * m4/xreadlink.m4 (gl_XREADLINK):
91818         * m4/xstrtod.m4 (gl_XSTRTOD):
91819         * m4/yesno.m4 (gl_YESNO):
91820         Don't use AC_LIBSOURCES; instead, rely on the files in ../modules/
91821         to get the necessary .h files and whatnot.
91823 2006-08-21  Mark D. Baushke  <mdb@gnu.org>
91824             Bruno Haible  <bruno@clisp.org>
91826         * gnulib-tool (func_verify_module): Work around Sun's non-POSIX 1003.2
91827         /bin/sh understanding of '!' conditional negation.
91829 2006-08-21  Jim Meyering  <jim@meyering.net>
91831         * modules/openat (Depends-on): Really alphabetize.
91833         * modules/acl (Depends-on): Add error and quote.
91835         * check-module (find_included_lib_files): Add at-func.c to the
91836         ok-to-include-more-than-once white list.
91838         * modules/openat (Depends-on): Add lstat.  Alphabetize.
91840 2006-08-21  Bruno Haible  <bruno@clisp.org>
91842         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
91843         Emit a pkgdata_DATA variable only if some snippets add contents to it.
91844         Reported by Martin Lambers <marlam@marlam.de>.
91846 2006-08-21  Bruno Haible  <bruno@clisp.org>
91848         * gnulib-tool (func_emit_lib_Makefile_am): If the snippets already
91849         specify an installation location, don't emit a noinst_LIBRARIES or
91850         noinst_LTLIBRARIES assignment.
91852 2006-08-21  Bruno Haible  <bruno@clisp.org>
91854         BeOS portability.
91855         * modules/mbchar (Include): Don't test HAVE_WCTYPE_H any more, since
91856         BeOS has mbrtowc() but no <wctype.h>.
91858 2006-08-21  Bruno Haible  <bruno@clisp.org>
91860         BeOS portability.
91861         * m4/mbchar.m4 (gl_MBCHAR): Compile mbchar.c also if <wctype.h> doesn't
91862         exist.
91864 2006-08-21  Bruno Haible  <bruno@clisp.org>
91866         BeOS portability.
91867         * lib/mbchar.h: Include <wctype.h> only if it exists.
91869 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
91871         Remove files that are no longer needed by their respective modules.
91872         * m4/obstack.m4: Remove.
91873         * m4/strerror_r.m4: Remove.
91874         * m4/uint32_t.m4: Remove.
91875         * m4/uintptr_t.m4: Remove.
91876         * m4/ullong_max.m4: Remove.
91877         * m4/xstrtoimax.m4: Remove.
91878         * m4/xstrtoumax.m4: Remove.
91880         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Do not require
91881         gl_AC_TYPE_UINTMAX_T, gl_STRUCT_DEV_INO, or gl_SAME_INODE, since gnulib
91882         dependencies now capture this.
91884         * m4/cycle-check.m4 (gl_CYCLE_CHECK):
91885         Do not use AC_LIBSOURCES, since gnulib modules now do this.
91886         * m4/fsusage.m4 (gl_FSUSAGE): Likewise.
91887         * m4/human.m4 (gl_HUMAN): Likewise.
91888         * m4/inttostr.m4 (gl_INTTOSTR): Likewise.
91889         * m4/xstrtol.m4 (gl_XSTRTOL): Likewise.
91891         * m4/filemode.m4 (gl_FILEMODE): Require AC_STRUCT_ST_DM_MODE.
91893         * m4/filemode.m4 (gl_PREREQ_FSUSAGE_EXTRA): Do not require
91894         gl_AC_TYPE_INTMAX_T or gl_AC_TYPE_UINTMAX_T, since we now require
91895         stdint.
91896         * m4/human.m4 (gl_HUMAN): Likewise.
91897         * m4/inttostr.m4 (gl_PREREQ_INTTOSTR): Likewise.
91898         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Likewise.
91899         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Likewise.
91900         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Likewise.
91901         * m4/xstrtol (gl_XSTRTOL): Likewise.
91903         * m4/gethrxtime.m4 (gl_XTIME): gl_AC_TYPE_LONG_LONG ->
91904         AC_TYPE_LONG_LONG_INT.
91905         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Likewise.
91906         * m4/strtoll.m4 (gl_FUNC_STRTOLL): Likewise.
91907         * m4/strtoull.m4 (gl_FUNC_STRTOULL): Likewise, for unsigned long.
91908         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Likewise.
91910         * m4/human.m4 (gl_HUMAN): Do not require AM_STDBOOL_H since we depend
91911         on stdbool.
91913         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL_H, gl_PREREQ_XSTRTOL): Remove.
91914         (gl_PREREQ_XSTRTOUL): Remove.
91916         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Check for hasmntopt.
91918         * m4/posixver.m4: Fix comment since head -1 now works even in POSIX
91919         mode.
91921 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
91923         Add and change modules to make it easier for coreutils to use
91924         gnulib-tool.
91925         * modules/backupfile (Files): Remove m4/d-ino.m4.
91926         (Depends-on): Add d-ino.
91927         * modules/cycle-check (Depends-on): Add stdint.
91928         (lib_SOURCES): Add cycle-check.h.
91929         * modules/d-ino: New module.
91930         * modules/d-type: New module.
91931         * modules/error (Files): Remove m4/strerror_r.m4.
91932         * modules/filemode (Files): Add m4/st_dm_mode.m4.
91933         * modules/fsuage (Files): Remove m4/ulonglong.m4, m4/stdint_h.m4,
91934         m4/inttypes_h.m4, m4/uintmax_t.m4.
91935         (Depends-on): Add stdint.
91936         (lib_SOURCES): Add fsusage.h.
91937         * modules/getcwd (Files): Remove d-ino.m4.
91938         (Depends-on): Add d-ino.
91939         * modules/getndelim2 (Depends-on): Add stdint.
91940         * modules/glob (Files): Remove m4/d-type.m4.
91941         (Depends-on): Add d-type.
91942         * modules/host-os: New module.
91943         * modules/human (Files):  Remove m4/ulonglong.m4, m4/stdint_h.m4,
91944         m4/inttypes_h.m4, m4/uintmax_t.m4.
91945         * Depends-on: Add stdint.
91946         (lib_SOURCES): Add human.h.
91947         * modules/inttostr (Files): Remove m4/intmax_t.m4,
91948         m4/inttostr.m4, m4/inttypes_h.m4, m4/longlong.m4, m4/stdint_h.m4,
91949         m4/uintmax_t.m4, m4/ulonglong.m4.
91950         (Depends-on): Add stdint.
91951         (EXTRA_DIST): Add inttostr.h.
91952         * modules/lchmod: New module.
91953         * modules/link-follow: New module.
91954         * modules/mkdir-p (Files): Remove lib/lchmod.h, m4/lchmod.m4.
91955         (Depends-on): Add lchmod.
91956         * modules/mkstemp (Files): Remove m4/ulonglong.m4,
91957         m4/stdint_h.m4, m4/inttypes_h.m4, m4/uintmax_t.m4.
91958         (Depends-on): Add stdint.
91959         * modules/obstack (Files): Remove m4/inttypes_h.m4, m4/obstack.m4,
91960         m4/stdint_h.m4, m4/uintmax_t.m4, m4/ulonglong.m4.
91961         (Depends-on): Add stdint.
91962         (configure.ac): Change gl_OBSTACK to AC_FUNC_OBSTACK.
91963         * modules/perl: New module.
91964         * modules/regex (Depends-on): Add stdint.
91965         * modules/rmdir-errno: New module.
91966         * modules/strtoimax (Files): Remove m4/stdint_h.m4, m4/inttypes_h.m4,
91967         m4/intmax_t.m4.
91968         (Depends-on): Add stdint.
91969         * modules/strtoumax (Files): Remove m4/stdint_h.m4, m4/inttypes_h.m4,
91970         m4/uintmax_t.m4.
91971         (Depends-on): Add stdint.
91972         * modules/unlink-busy: New module.
91973         * modules/utimecmp (Depends-on): Add stdint.
91974         * modules/uptime: New module.
91975         * modules/winsz-ioctl: New module.
91976         * modules/winsz-termios: New module.
91977         * modules/xnanosleep (Depends-on): Add nanosleep.
91978         * modules/ullong_max: Remove.
91979         * modules/xstrtoimax (Files): Remove m4/xstrtoimax.m4.
91980         (configure.ac): Remove gl_XSTRTOIMAX; no action needed now.
91981         * modules/xstrtol (Files): Remove m4/ulonglong.m4, m4/longlong.m4,
91982         m4/stdint_h.m4, m4/inttypes_h.m4, m4/uintmax_t.m4, m4/intmax_t.m4.
91983         (Depends-on): Add inttypes.
91984         (lib_SOURCES): Add xstrtol.h.
91985         * modules/xstrtoumax (Files): Remove m4/xstrtoumax.m4.
91986         (configure.ac): Remove gl_XSTRTOUMAX; no action needed now.
91987         * MODULES.html.sh: Move 'assert' into the assert section.
91988         Move 'dummy' into the linking section.
91989         Remove ullong_max.
91990         Add section for compatibility checks for POSIX:2001 functions,
91991         and put d-ino, d-type, link-follow, rmdir-errno, unlink-busy,
91992         winsz-ioctl, and winsz-termios into it.
91993         Add lchmod.
91994         Add top-level Misc section and put host-os, perl, and uptime
91995         into it.
91997 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
91999         * lib/cycle-check.h: Include <stdint.h> unconditionally, since we
92000         now assume the stdint module.  Do not include inttypes.h.
92001         * lib/fsusage.h: Likewise.
92002         * lib/getndelim2.c: Likewise.
92003         * lib/human.h: Likewise.
92004         * lib/inttostr.h: Likewise.
92005         * lib/obstack.c: Likewise.
92006         * lib/regex_internal.h: Likewise.
92007         * lib/tempname.c: Likewise.
92008         * lib/utimecmp.c: Likewise.
92009         * lib/xstrtol.h: Likewise.
92011         * lib/stat_.h: Fix typo: HAVE_FUNC_LSTAT -> HAVE_LSTAT.
92013         * lib/strtoimax.c: Adjust to macro name changes in Autoconf,
92014         e.g., HAVE_LONG_LONG -> HAVE_LONG_LONG_INT.
92015         * lib/xtime.h: Likewise.
92017 2006-08-19  Paul Eggert  <eggert@cs.ucla.edu>
92019         * modules/openat (Files): Add lib/fchmodat.c.
92020         Fixes problem reported by Jay Youngman.
92022 2006-08-19  Paul Eggert  <eggert@cs.ucla.edu>
92024         * lib/fchmodat.c: New file, from coreutils.  This was inadvertently
92025         omitted in the 2006-08-17 update.  Problem reported by Jay Youngman.
92027 2006-08-18  Paul Eggert  <eggert@cs.ucla.edu>
92028             Bruno Haible  <bruno@clisp.org>
92030         * m4/bison-i18n.m4 (BISON_I18N): Also handle the case where yacc exists
92031         and is a script that invokes bison. Tighten the code. Add comments.
92033 2006-08-18  Jim Meyering  <jim@meyering.net>
92035         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Also check for
92036         CLOCK_REALTIME, since gethrxtime may revert to using clock_gettime via
92037         gettime.c.  Gabor Z. Papp reported that gethrxtime-using programs
92038         failed to link due to unresolved clock_gettime on a linux-2.4.x system.
92040 2006-08-18  Bruno Haible  <bruno@clisp.org>
92042         * modules/bison-i18n: New file.
92043         * MODULES.html.sh (Internationalization functions): Add it.
92045 2006-08-18  Bruno Haible  <bruno@clisp.org>
92047         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Also check for
92048         sys/statvfs.h. When getmntinfo was found, check its declaration and
92049         set either MOUNTED_GETMNTINFO or MOUNTED_GETMNTINFO2 depending on it.
92051 2006-08-18  Bruno Haible  <bruno@clisp.org>
92053         * m4/bison-i18n.m4: New file, from bison.
92055 2006-08-18  Bruno Haible  <bruno@clisp.org>
92057         * lib/mountlist.c [MOUNTED_GETMNTINFO2]: Include sys/statvfs.h.
92058         (ME_DUMMY): Treat "kernfs" as a dummy.
92059         (read_file_system_list) [MOUNTED_GETMNTINFO2]: Implement.
92061 2006-08-17  Paul Eggert  <eggert@cs.ucla.edu>
92063         Update from coreutils.
92065         2006-08-15  Jim Meyering  <jim@meyering.net>
92067         * m4/openat.m4 (gl_FUNC_OPENAT): Add at-func.c via AC_LIBSOURCES.
92069         2006-01-17  Jim Meyering  <jim@meyering.net>
92071         * m4/fts.m4 (gl_FUNC_FTS_CORE): Depend on gl_FUNC_OPENAT.
92073         2006-01-11  Jim Meyering  <jim@meyering.net>
92075         * m4/openat.m4 (gl_FUNC_OPENAT): Require and compile fchmodat.c.
92076         Check for the lchmod function.
92078 2006-08-17  Paul Eggert  <eggert@cs.ucla.edu>
92080         Update from coreutils.
92082         * lib/__fpending.h: Add copyright notice.
92083         * lib/fprintftime.h: Likewise.
92084         * lib/savedir.c: Use (C) in copyright notice.
92085         * lib/savedir.h: Likewise.
92087         2006-08-15  Jim Meyering  <jim@meyering.net>
92089         * lib/at-func.c: New file, with the logic of all emulated at-functions.
92090         * lib/openat-priv.h: Include <errno.h> and define ENOSYS,
92091         in support of the EXPECTED_ERRNO macro.
92092         * lib/openat.c (fstatat, unlinkat, fchownat): Remove function
92093         definitions.  Instead, define the appropriate symbols and include
92094         "at-func.c".
92095         * lib/mkdirat.c (mkdirat): Likewise.
92096         * lib/fchmodat.c (fchmodat): Likewise.
92097         (ENOSYS): Remove definition.
92098         * lib/openat.c: Don't include <errno.h>, now that "openat-priv.h" does
92099         it.  Don't include "unistd--.h" -- it wasn't ever used.
92101         2006-01-17  Jim Meyering  <jim@meyering.net>
92103         Rewrite fts.c not to change the current working directory,
92104         by using openat, fstatat, fdopendir, etc..
92106         * lib/fts.c [! _LIBC]: Include "openat.h" and "unistd--.h".
92107         (HAVE_OPENAT_SUPPORT): Define.
92108         [_LIBC] (fchdir): Don't undef or define; no longer used.
92109         (FCHDIR): Define in terms of cwd_advance_fd rather than fchdir.
92110         Now, this `function' always succeeds, and consumes its file descriptor
92111         parameter -- so callers must not close such FDs.  Update callers.
92112         (diropen_fd, opendirat, cwd_advance_fd): New functions.
92113         (diropen): Add parameter, SP.  Adjust all callers.
92114         Implement using diropen_fd, rather than open.
92115         (fts_open): Initialize new member, fts_cwd_fd.
92116         Remove fts_rft-setting code.
92117         (fts_close): Close fts_cwd_fd, if necessary.
92118         (__opendir2): Define in terms of opendir or opendirat,
92119         depending on whether the FST_NOCHDIR flag is set.
92120         (fts_build): Since fts_safe_changedir consumes its FD, and since
92121         this code must do `closedir(dirp)', dup the dirfd(dirp) argument,
92122         and close the dup'd file descriptor upon failure.
92123         (fts_stat): Use fstatat(...AT_SYMLINK_NOFOLLOW) in place of lstat.
92124         (fts_safe_changedir): Tweak semantics to reflect that this function
92125         now calls cwd_advance_fd and hence consumes its FD argument.
92126         * lib/fts_.h [struct FTS] (fts_cwd_fd): New member.
92127         [struct FTS] (fts_rft): Remove now-unused member.
92128         [struct FTS] (fts_cycle.state): Improve comment.
92130         * lib/openat.c (openat_needs_fchdir): New function.
92131         * lib/openat.h (openat_needs_fchdir): Declare it.
92133 2006-08-16  Paul Eggert  <eggert@cs.ucla.edu>
92135         * lib/memcoll.c (memcoll): Set errno = 0 in the shortcut case, too.
92136         Problem and fix reported by Pádraig Brady in
92137         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00099.html>.
92139 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
92141         * modules/cycle-check (configure.ac): Add gl_CYCLE_CHECK.
92143 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
92145         * lib/memcoll.c (memcoll): Optimize for the common case where the
92146         arguments are bytewise equal.
92148 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
92150         * doc/regexprops-generic.texi: Add a copyright notice.
92152 2006-08-15  Bruno Haible  <bruno@clisp.org>
92154         * modules/tmpdir (License): Change to LGPL.
92156 2006-08-15  Bruno Haible  <bruno@clisp.org>
92158         * gnulib-tool (func_all_modules, func_verify_module): COPYING is not a
92159         module.
92161 2006-08-14  Simon Josefsson  <jas@extundo.com>
92163         * config/srclist.txt: Add gnupload.
92165 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
92167         Change copyright notice from LGPL 2 to GPL 2, since that's the
92168         standard form used in the gnulib repository.
92169         * tests/test-lock.c: Likewise.
92170         * tests/test-stdint.c: Likewise.
92171         * tests/test-tls.c: Likewise.
92173         * users.txt: Add bison, diffutils, libprelude, prelude-lml,
92174         prelude-manager.  User shorter URLs for GNU projects, without '?'.
92175         Add copyright notice.
92177         * check-module: Add copyright notice.  Output a copyright
92178         notice if "--version" is specified.
92179         * modules/COPYING: New file.
92180         * tests/test-getaddrinfo.c: Add copyright notice.
92181         * tests/test-verify.c: Likewise.
92183 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
92185         Change copyright notice from LGPL 2 to GPL 2, since that's the
92186         standard form used in the gnulib repository.
92187         * lib/lock.c: LGPL -> GPL.
92188         * lib/lock.h: Likewise.
92189         * lib/strnlen1.c: Likewise.
92190         * lib/strnlen1.h: Likewise.
92191         * lib/tls.c: Likewise.
92192         * lib/tls.h: Likewise.
92193         * lib/tmpdir.c: Likewise.
92195         * lib/TODO: Remove; this belongs only in coreutils.
92197 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
92199         Add copyright notices to long-enough files that lack them, since
92200         otherwise the files aren't clearly free.  Use the same notice that
92201         getdate.texi already uses.
92202         * doc/alloca-opt.texi: Add copyright notice.
92203         * doc/alloca.texi: Likewise.
92204         * doc/ctime.texi: Likewise.
92205         * doc/functions.texi: Likewise.
92206         * doc/gcd.texi: Likewise.
92207         * doc/gnulib-tool.texi: Likewise.
92208         * doc/inet_ntoa.texi: Likewise.
92209         * doc/visibility.texi: Likewise.
92211         * doc/getdate.texi: Update FDL version from 1.1 to 1.2.
92212         * doc/quote.texi: Add copyright notice.
92214         * doc/solaris-versions: Add SunOS 5.10, SunOS 1.x, SunOS 4.0, SunOS
92215         4.0.x, SunOS 4.1.1.1, SunOS 4.1.1_U1, SunOS 4.1.3B.  SunOS 4.1.3
92216         was Solaris 1.1A.  Remove space before B in Solaris 1.1.1B.
92217         Mention SunOS 5.11.  Mention that everything before SunOS 5.7
92218         is now obsolete, and give a pointer to the Sun list.
92219         Add copyright notice.
92221 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
92223         * config/srclistvars.sh: Add copyright notice.
92225 2006-08-14  Eric Blake  <ebb9@byu.net>
92227         Import the following change from libc:
92229         2006-08-12  Ulrich Drepper  <drepper@redhat.com>
92231         Upstream bug 2997.
92232         * lib/misc/error.c: Add space between program name and message if file
92233         name is missing.
92235 2006-08-12  Karl Berry  <karl@gnu.org>
92237         * config/srclist.txt (ssize_t.m4, sig_atomic_t.m4, signalblocking.m4):
92238         remove, these originate in gnulib now.
92240 2006-08-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
92242         * doc/Makefile (standards.info standards.html standards.dvi):
92243         Also depend on make-stds.texi.
92245 2006-08-11  Paul Eggert  <eggert@cs.ucla.edu>
92247         * lib/pipe-safer.c (pipe_safer): Fix misspelling: HAVE_FUNC_PIPE ->
92248         HAVE_PIPE.  Fix a file descriptor leak when fd_safer fails.
92250         * lib/regex_internal.c (re_string_skip_chars): Don't assume WEOF fits
92251         in wchar_t.  Problem reported by Eric Blake.
92253         * lib/snprintf.c (snprintf): memcpy LEN bytes, not SIZE - 1, when
92254         LEN is smaller than SIZE.  Suggested by Bruno Haible.
92255         Also, help the compiler to keep LEN in a register.
92257 2006-08-11  Eric Blake  <ebb9@byu.net>
92259         * users.txt: Sort.  Add tar.
92261 2006-08-11  Bruno Haible  <bruno@clisp.org>
92263         * users.txt: New file.
92265 2006-08-11  Bruno Haible  <bruno@clisp.org>
92267         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Include <stdio.h> and <time.h>
92268         before <wchar.h>. Needed for OSF/1 and BSD/OS.
92270 2006-08-10  Paul Eggert  <eggert@cs.ucla.edu>
92272         * modules/snprintf (Depends-on): Remove minmax.
92273         (Maintainer): Add self and Bruno.
92275 2006-08-10  Paul Eggert  <eggert@cs.ucla.edu>
92277         * lib/.cppi-disable: Add snprintf.h, socket_.h.
92278         * lib/snprintf.c: Include <errno.h> and <limits.h>.
92279         (EOVERFLOW): Define if the system does not.
92280         Do not include "minmax.h"; it wasn't used.
92281         (snprintf): Don't assume size_t promotes to an unsigned type.
92282         Fix bug when generated string was too long for the buffer: the
92283         buffer's contents are supposed to be the initial prefix of the
92284         output.  Don't assume vasnprintf returns EOVERFLOW if the size
92285         exceeds INT_MAX; do the check ourselves.
92287         Import the following changes from libc:
92289         2006-06-02  Jakub Jelinek  <jakub@redhat.com>
92291         * lib/posix/regex_internal.c (re_string_skip_chars): If no character
92292         has been converted at all, set *last_wc to WEOF.  If mbrtowc failed,
92293         set wc to the byte which couldn't be converted.
92294         (re_string_reconstruct): Don't clear valid_raw_len before calling
92295         re_string_skip_chars.  If wc is WEOF after re_string_skip_chars, set
92296         tip_context using re_string_context_at.
92298         2006-05-02  Ulrich Drepper  <drepper@redhat.com>
92300         * lib/posix/regex.h: g++ still cannot handled [restrict].
92302         2006-04-21  Ulrich Drepper  <drepper@redhat.com>
92304         * lib/posix/regex.h: Remove special handling for VMS.
92306 2006-08-10  Jim Meyering  <jim@meyering.net>
92308         * modules/same-inode: New module.
92309         * modules/dev-ino: New module.
92310         * modules/cycle-check: Depend on these modules, rather than simply
92311         including their .h files.
92312         (Makefile.am): Don't list cycle-check.[ch] here, now that they're
92313         required via m4/cycle-check.m4.
92314         * modules/same: Depend on new same-inode module, rather than
92315         including same-inode.h.
92316         * modules/chdir-safer: New file.
92318         * modules/chown (Depends-on): Add stat-macros.
92320 2006-08-10  Jim Meyering  <jim@meyering.net>
92322         * m4/cycle-check.m4: New file.
92323         Require gl_STRUCT_DEV_INO and gl_SAME_INODE.
92324         * m4/dev-ino.m4, m4/same-inode.m4: New files.
92326 2006-08-10  Eric Blake  <ebb9@byu.net>
92328         * modules/verror (Depends-on): Remove bogus gl_VERROR that snuck
92329         in from original proposal.
92331 2006-08-10  Eric Blake  <ebb9@byu.net>
92332         and Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
92334         * gnulib-tool (func_import): Detect unexpanded macros in gnulib
92335         namespace.
92337 2006-08-10  Bruno Haible  <bruno@clisp.org>
92339         * gnulib-tool (func_create_testdir): Detect unexpanded macros here
92340         as well.
92342 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
92344         Sync from coreutils.
92346         2006-07-19  Mike Frysinger  <vapier@gentoo.org>
92348         * lib/mountlist.c [ME_REMOTE]: Filter out cifs.
92349         Reported by Toralf Förster in <http://bugs.gentoo.org/141012>.
92351 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
92353         * modules/restrict: Remove; no longer needed now that we assume
92354         Autoconf 2.59 or later.
92355         * MODULES.html.sh: Remove 'restrict'.
92356         * modules/argp (Depends-on): Remove 'restrict'.
92357         * modules/base64 (Depends-on): Likewise.
92358         * modules/gc (Depends-on): Likewise.
92359         * modules/getaddrinfo (Depends-on): Likewise.
92360         * modules/glob (Depends-on): Likewise.
92361         * modules/inet_ntop (Depends-on): Likewise.
92362         * modules/inet_pton (Depends-on): Likewise.
92363         * modules/memxor (Depends-on): Likewise.
92364         * modules/regex (Depends-on): Likewise.
92365         * modules/strtok_r (Depends-on): Likewise.
92366         * modules/time_r (Depends-on): Likewise.
92368 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
92370         * m4/argp.m4 (gl_ARGP): Require AC_C_RESTRICT.
92371         * m4/gc.m4 (gl_PREREQ_GC): Likewise.
92372         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
92373         * m4/inet_ntop.m4 (gl_PREREQ_INET_NTOP): Likewise.
92374         * m4/inet_pton.m4 (gl_PREREQ_INET_PTON): Likewise.
92375         * m4/memxor.m4 (gl_MEMXOR): Likewise.
92376         * m4/restrict.m4: Remove; no longer needed.  All remaining uses of
92377         gl_C_RESTRICT replaced by AC_C_RESTRICT.
92379         Merge from coreutils.
92380         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_C_RESTRICT, not
92381         gl_C_RESTRICT, now that we assume Autoconf 2.59 or later.
92382         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
92383         * m4/time_r.m4 (gl_TIME_R): Likewise.
92385 2006-08-09  Karl Berry  <karl@gnu.org>
92387         * config/srclist.txt: no more gettext-tools, per Bruno.
92389 2006-08-08  Eric Blake  <ebb9@byu.net>
92391         * modules/verror: New module.
92392         * MODULES.html.sh: Document it.
92394 2006-08-08  Eric Blake  <ebb9@byu.net>
92396         * lib/verror.h, lib/verror.c: New files.
92398 2006-08-08  Eric Blake  <ebb9@byu.net>
92400         * lib/verror.c (verror_at_line): Work around glibc bug 2997, so that
92401         verror_at_line output complies with GNU Coding Standards even when
92402         file is NULL.
92404 2006-08-07  Bruno Haible  <bruno@clisp.org>
92406         * lib/allocsa.h (sa_alignof) [_AIX]: Also consider 'long long' in newer
92407         versions of AIX.
92408         Reported by Ralf Wildenhues.
92410 2006-08-07  Bruno Haible  <bruno@clisp.org>
92412         * gnulib-tool (func_create_testdir): Wrap the set of autoconf snippets
92413         in an AC_DEFUN. Needed so that the autoconf snippets can use
92414         AC_REQUIRE.
92416 2006-08-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
92418         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
92419         Initialize pkgdata_DATA.
92420         * modules/javaversion (Makefile.am): Add to pkgdata_DATA, rather than
92421         overriding it.
92423 2006-08-06  Eric Blake  <ebb9@byu.net>
92425         * lib/error.h: Fold in some upstream changes from glibc.
92426         * lib/error.c: Likewise.
92428 2006-08-04  Bruno Haible  <bruno@clisp.org>
92430         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
92431         Make the mostlyclean-local rule depend on mostlyclean-generic.
92432         Reported by Jim Meyering. Solution suggested by Ralf Wildenhues.
92434 2006-07-31  Bruno Haible  <bruno@clisp.org>
92436         * m4/localcharset.m4 (gl_LOCALCHARSET): Remove tests for <stddef.h>,
92437         <stdlib.h>, <string.h>.
92439 2006-07-30  Bruno Haible  <bruno@clisp.org>
92441         * modules/readlink (License): Change to LGPL.
92443 2006-07-30  Bruno Haible  <bruno@clisp.org>
92445         * modules/javaversion (Makefile.am): Distribute javaversion.java and
92446         javaversion.class. Also install javaversion.class in $(pkgdatadir) and
92447         set PKGDATADIR to point to it.
92449 2006-07-30  Bruno Haible  <bruno@clisp.org>
92451         * modules/csharpexec (configure.ac): Comment out macro invocation.
92452         * modules/javaexec (configure.ac): Likewise.
92453         * modules/javacomp-script (configure.ac): Likewise.
92455         * modules/csharpcomp-script (configure.ac): Use AC_REQUIRE.
92457 2006-07-30  Bruno Haible  <bruno@clisp.org>
92459         * modules/clean-temp (Depends-on): Add linkedhash-list, remove
92460         linked-list.
92462 2006-07-30  Bruno Haible  <bruno@clisp.org>
92464         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Assume <string.h> exists.
92466 2006-07-30  Bruno Haible  <bruno@clisp.org>
92468         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
92469         Initialize MOSTLYCLEANFILES to core and *.stackdump, so that core dumps
92470         get removed.
92472 2006-07-29  Bruno Haible  <bruno@clisp.org>
92474         Make it possible for gnulib-tool to work with locally modified or
92475         augmented gnulib repositories.
92476         * gnulib-tool (func_usage): Document --local-dir option.
92477         (local_gnulib_dir): New variable.
92478         Handle --local-dir option.
92479         (func_lookup_file): New function.
92480         (func_all_modules, func_verify_module): Look also in $local_gnulib_dir.
92481         (func_get_description, func_get_filelist, func_get_description,
92482         func_get_filelist, func_get_dependencies, func_get_autoconf_snippet,
92483         func_get_automake_snippet, func_get_include_directive,
92484         func_get_license, func_get_maintainer): Use func_lookup_file.
92485         (func_import, func_create_testdir): Use func_lookup_file.
92487 2006-07-29  Bruno Haible  <bruno@clisp.org>
92489         * modules/setenv (Depends-on): Add unistd.
92491 2006-07-29  Bruno Haible  <bruno@clisp.org>
92493         * lib/setenv.c: Undo unintended modification done on 2006-02-27.
92495 2006-07-29  Bruno Haible  <bruno@clisp.org>
92497         * lib/localcharset.c: Assume <stddef.h>, <stdlib.h>, <string.h> exist.
92499 2006-07-29  Bruno Haible  <bruno@clisp.org>
92501         * gnulib-tool (import, update): If there is no Makefile.am, look at
92502         aclocal.m4, instead of bailing out.
92504 2006-07-29  Bruno Haible  <bruno@clisp.org>
92506         * gnulib-tool (func_usage): Revert most of the 2006-07-15 change.
92507         Categorize the options by when they are useful.
92509 2006-07-29  Bruno Haible  <bruno@clisp.org>
92511         * gnulib-tool (func_usage): Document option --no-libtool.
92512         Handle option --no-libtool.
92513         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Update
92514         for changed semantics of $libtool variable.
92515         (func_import): Likewise. If libtool is not used, show this through
92516         an option --no-libtool.
92517         (func_create_testdir): Update.
92519 2006-07-29  Bruno Haible  <bruno@clisp.org>
92521         * gnulib-tool (func_import): Extend error message about missing
92522         --doc-base.
92524 2006-07-29  Bruno Haible  <bruno@clisp.org>
92526         * gnulib-tool (func_import): Don't create the $docbase directory if
92527         there is no file to store there.
92529 2006-07-29  Bruno Haible  <bruno@clisp.org>
92531         * gnulib-tool (autoconf_minversion): If a --dir option is given and
92532         relevant, look for configure.ac there, not in the current directory.
92533         Also use a simple search for AC_PREREQ, not "autoconf --trace".
92535 2006-07-29  Bruno Haible  <bruno@clisp.org>
92537         * gnulib-tool (SORT): New variable.
92538         (func_usage): Undocument --assume-autoconf option.
92539         Remove --assume-autoconf option handling.
92540         (autoconf_minversion): Determine from the contents of configure.ac.
92541         (func_import): Remove autoconf_minversion handling.
92542         Suggested by Eric Blake.
92544 2006-07-29  Bruno Haible  <bruno@clisp.org>
92546         * doc/gnulib-tool.texi (gl_LIBTOOL): Mention --no-libtool option.
92548 2006-07-29  Bruno Haible  <bruno@clisp.org>
92550         * config/srclist.txt (*setenv.[ch]): Remove rules.
92552 2006-07-28  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
92554         * m4/inet_pton.m4, inet_ntop.m4: Check for netinet/in.h too.
92556 2006-07-28  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
92558         * lib/inet_ntop.h, inet_pton.h: Need to include netinet/in.h before
92559         arpa/inet.h.
92561 2006-07-28  Simon Josefsson  <jas@extundo.com>
92563         * modules/inet_ntop (Depends-on): Depend on arpa_inet.
92564         * modules/inet_pton (Depends-on): Likewise.
92566 2006-07-28  Simon Josefsson  <jas@extundo.com>
92568         * m4/netinet_in_h.m4: New file.
92570 2006-07-28  Simon Josefsson  <jas@extundo.com>
92572         * lib/inet_ntop.h, inet_pton.h: No need to guard netinet/in.h
92573         #include's.
92575 2006-07-28  Simon Josefsson  <jas@extundo.com>
92577         * lib/inet_ntop.h, inet_pton.h: No need to guard arpa/inet.h
92578         #include's.
92580 2006-07-28  Paul Eggert  <eggert@cs.ucla.edu>
92582         * lib/modechange.c (mode_compile): Numeric modes now affect setuid and
92583         setgid on directories only if they set these bits.
92584         * lib/modechange.h: Remove obsolete comment about masks.
92586 2006-07-28  Eric Blake  <ebb9@byu.net>
92588         * lib/regex_internal.h (struct re_dfa_t) [!_LIBC]: Avoid invalid C89
92589         macro expansion.
92591 2006-07-28  Bruno Haible  <bruno@clisp.org>
92593         * lib/inet_ntop.h, inet_pton.h: Use #if HAVE* instead of #ifdef HAVE*.
92595 2006-07-28  Bruno Haible  <bruno@clisp.org>
92597         * m4/mbchar.m4 (gl_MBCHAR): Also test for iswcntrl.
92599 2006-07-28  Bruno Haible  <bruno@clisp.org>
92601         * lib/mbchar.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
92602         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit):
92603         Define fallbacks.
92604         Avoids link error on FreeBSD 4.x.
92605         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
92607         * lib/wcwidth.h (iswprint): Assume an ASCII compatible wide character
92608         encoding.
92609         * lib/mbswidth.c (iswcntrl): Likewise.
92611 2006-07-27  Bruno Haible  <bruno@clisp.org>
92613         * m4/stdint.m4 (gl_STDINT_H): Define __STDC_CONSTANT_MACROS during the
92614         test.
92616 2006-07-27  Bruno Haible  <bruno@clisp.org>
92618         * lib/stdint_.h (INT*_C, UINT*_C) [C++]: Define these if
92619         __STDC_CONSTANT_MACROS is defined, not if __STDC_LIMIT_MACROS is
92620         defined.
92622 2006-07-26  Eric Blake  <ebb9@byu.net>
92624         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Check for missing pipe.
92626 2006-07-26  Eric Blake  <ebb9@byu.net>
92628         * lib/mkstemp-safer.c [! HAVE_MKSTEMP]: Add prototype for platforms
92629         like mingw that lack mkstemp.
92630         * lib/pipe-safer.c (pipe_safer) [!HAVE_FUNC_PIPE]: Provide fallback to
92631         avoid compilation warning on mingw.
92633 2006-07-26  Bruno Haible  <bruno@clisp.org>
92635         * m4/stdint.m4 (gl_STDINT_H): Also verify the existence of the macros
92636         INT*_MIN, INT_LEAST*_MAX, INT_LEAST*_MIN, UINT_LEAST*_MAX,
92637         INT_FAST*_MIN, INTPTR_MIN.
92639 2006-07-25  Bruno Haible  <bruno@clisp.org>
92641         * modules/version-etc (Depends-on): Add stdarg.
92643 2006-07-25  Bruno Haible  <bruno@clisp.org>
92645         * m4/stdint.m4 (gl_INTEGER_TYPE_SUFFIX): Avoid 'eval' in front of
92646         complex commands.
92648 2006-07-25  Bruno Haible  <bruno@clisp.org>
92650         * lib/version-etc.c (version_etc_va): Use va_copy, assumed to be
92651         defined in <stdarg.h> or config.h.
92653 2006-07-24  Paul Eggert  <eggert@cs.ucla.edu>
92655         * m4/stdio-safer.m4 (gl_FOPEN_SAFER, gl_TMPFILE_SAFER): New macros.
92656         (gl_STDIO_SAFER): Remove.
92658 2006-07-24  Paul Eggert  <eggert@cs.ucla.edu>
92660         * MODULES.html.sh (File stream based Input/Output):
92661         Add fopen-safer, tmpfile-safer; remove stdio-safer.
92662         * modules/getusershell (Depends-on): Change stdio-safer to fopen-safer.
92663         * modules/fopen-safer, modules/tmpfile-safer: New files.
92664         * modules/stdio-safer: Remove.
92666 2006-07-24  Bruno Haible  <bruno@clisp.org>
92668         * modules/tmpdir: New file.
92669         * MODULES.html.sh (File system functions): Add it.
92671 2006-07-24  Bruno Haible  <bruno@clisp.org>
92673         * modules/javacomp (Depends-on): Add unistd, javaversion, binary-io,
92674         getline, pathname, fwriteerror, clean-temp, xvasprintf, strstr.
92676 2006-07-24  Bruno Haible  <bruno@clisp.org>
92678         * modules/clean-temp: New file.
92680 2006-07-24  Bruno Haible  <bruno@clisp.org>
92682         * m4/tmpdir.m4: New file, from GNU gettext.
92684 2006-07-24  Bruno Haible  <bruno@clisp.org>
92686         * lib/tmpdir.h: New file, from GNU gettext.
92687         * lib/tmpdir.c: New file, from GNU gettext.
92689 2006-07-24  Bruno Haible  <bruno@clisp.org>
92691         * lib/clean-temp.h: New file, from GNU gettext.
92692         * lib/clean-temp.c: New file, from GNU gettext.
92694 2006-07-23  Eric Blake  <ebb9@byu.net>
92696         * modules/stdio-safer (Files): Add tmpfile-safer.c.
92697         (Depends-on): Add binary-io.
92699 2006-07-23  Eric Blake  <ebb9@byu.net>
92701         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Add tmpfile-safer.c.
92703 2006-07-23  Eric Blake  <ebb9@byu.net>
92705         * lib/tmpfile-safer.c: New file.
92706         * lib/stdio-safer.h (fopen_safer): Add prototype.
92707         * lib/stdio--.h (tmpfile): Make safer.
92709 2006-07-23  Bruno Haible  <bruno@clisp.org>
92711         * lib/gl_anylinked_list2.h (ASYNCSAFE): New macro.
92712         (gl_linked_add_first, gl_linked_add_last, gl_linked_add_before,
92713         gl_linked_add_after, gl_linked_add_at, gl_linked_remove_node,
92714         gl_linked_remove_at): Use it.
92716 2006-07-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
92717         and Simon Josefsson <jas@extundo.com>
92719         * lib/getaddrinfo.h (AI_PASSIVE): Make sure it is defined.
92721         * lib/getaddrinfo.c (getaddrinfo): Support AI_PASSIVE.
92723 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
92725         * modules/close-stream: New file.
92726         * modules/closeout (Description): Make it clear that it exits
92727         with a diagnostic on error.
92728         (Depends-on): Add close-stream.  Remove fpending, stdbool.
92729         * MODULES.html.sh (File stream based Input/Output): Add close-stream.
92731 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
92733         * m4/close-stream.m4: New file.
92735 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
92737         * lib/close-stream.c, lib/close-stream.h: New files.
92739 2006-07-22  Bruno Haible  <bruno@clisp.org>
92741         Merge from GNU gettext 0.15.
92743         2006-05-01  Bruno Haible  <bruno@clisp.org>
92745                 * build-aux/javacomp.sh.in: Update for changed javacomp.m4.
92747         2006-07-22  Bruno Haible  <bruno@clisp.org>
92749                 * modules/javaversion: New file.
92750                 * MODULES.html.sh (Java): Add javaversion.
92752         2006-03-12  Bruno Haible  <bruno@clisp.org>
92754                 * build-aux/javaexec.sh.in: Update for changed javaexec.m4.
92756         2005-12-04  Bruno Haible  <bruno@clisp.org>
92758                 * build-aux/csharpexec.sh.in: Add support for 'clix' launcher
92759                 (untested).
92761         2006-06-21  Bruno Haible  <bruno@clisp.org>
92763                 Avoid warnings from recent versions of mcs.
92764                 * build-aux/csharpcomp.sh.in (options_mcs): Don't use options
92765                 -o, -L, -r any more. Use options documented since mcs-1.0
92766                 instead. Similarly for -g.
92768         2005-12-04  Bruno Haible  <bruno@clisp.org>
92770                 * build-aux/csharpcomp.sh.in: Suffix for resources is
92771                 .resources, not .resource.
92773         2005-07-09  Bruno Haible  <bruno@clisp.org>
92775                 * build-aux/csharpcomp.sh.in (options_csc): For -l option,
92776                 add a .dll suffix.
92777                 Reported by Mark Junker <mjscod@gmx.de>.
92779         2006-07-22  Bruno Haible  <bruno@clisp.org>
92781                 * modules/gettext: Upgrade to gettext-0.15.
92782                 (Files): Remove m4/isc-posix.m4. Add m4/lock.m4,
92783                 m4/visibility.m4.
92784                 Replace m4/inttypes.m4 with m4/inttypes-h.m4.
92786 2006-07-22  Bruno Haible  <bruno@clisp.org>
92788         Merge from GNU gettext 0.15.
92790         2006-03-25  Bruno Haible  <bruno@clisp.org>
92792                 * lib-link.m4 (AC_LIB_LINKFLAGS_FROM_LIBS): New macro.
92794         2006-07-21  Bruno Haible  <bruno@clisp.org>
92796                 * javacomp.m4 (gt_JAVACOMP): Convert target_version "null" to
92797                 "1.1".
92799         2006-05-09  Bruno Haible  <bruno@clisp.org>
92801                 * javacomp.m4 (gt_JAVACOMP): On Cygwin, set
92802                 CLASSPATH_SEPARATOR to a semicolon. Use CLASSPATH_SEPARATOR
92803                 for the conftestver execution.
92805         2006-05-01  Bruno Haible  <bruno@clisp.org>
92807                 * javacomp.m4 (gt_JAVACOMP): Accept a source-version and an
92808                 optional target-version argument. Verify that the compiler
92809                 groks source of the specified source-version, or add -source
92810                 option as necessary. Verify that the compiler produces
92811                 bytecode in the specified target-version, or add -target and
92812                 -source options as necessary. Make the result of the test
92813                 available as variable CONF_JAVAC. Also log error output in
92814                 config.log.
92816         2006-03-11  Bruno Haible  <bruno@clisp.org>
92818                 * javacomp.m4 (gt_JAVACOMP): Treat gcj-4.x like gcj-3.x.
92820         2006-05-09  Bruno Haible  <bruno@clisp.org>
92822                 * javaexec.m4 (gt_JAVAEXEC): On Cygwin, set
92823                 CLASSPATH_SEPARATOR to a semicolon.
92825         2006-03-12  Bruno Haible  <bruno@clisp.org>
92827                 * javaexec.m4 (gt_JAVAEXEC): Make the result of the test
92828                 available as variable CONF_JAVA, for subsequent autoconf
92829                 tests. Also log error output in config.log.
92831         2006-07-19  Bruno Haible  <bruno@clisp.org>
92833                 * getline.m4 (AM_FUNC_GETLINE): When cross-compiling, assume
92834                 that getline works on glibc2 systems. Needed to avoid trouble
92835                 in relocatable.c.
92836                 Reported by Nils Magnus Larsgard <nmlarsgaard@atmel.no>.
92838         2005-12-04  Bruno Haible  <bruno@clisp.org>
92840                 * csharpexec.m4 (gt_CSHARPEXEC): Add support for 'clix'
92841                 launcher (untested).
92843         2005-12-04  Bruno Haible  <bruno@clisp.org>
92845                 * csharpcomp.m4 (gt_CSHARPCOMP): Also set CSHARPCOMPFLAGS.
92847         2006-07-22  Bruno Haible  <bruno@clisp.org>
92849                 * gettext.m4: Update from GNU gettext-0.15.
92850                 * nls.m4: Likewise.
92851                 * po.m4: Likewise.
92852                 * inttypes-pri.m4: Likewise.
92853                 * inttypes-h.m4: Renamed from inttypes.m4.
92854                 (gl_HEADER_INTTYPES_H): Renamed from gt_HEADER_INTTYPES_H.
92856 2006-07-22  Bruno Haible  <bruno@clisp.org>
92858         Merge from GNU gettext 0.15.
92860         2005-07-05  Bruno Haible  <bruno@clisp.org>
92862                 * printf-args.c (printf_fetchargs): Work around broken
92863                 definition of wint_t on mingw.
92865         2005-02-12  Bruno Haible  <bruno@clisp.org>
92867                 * xallocsa.h: Add extern "C" for C++.
92869         2006-05-17  Bruno Haible  <bruno@clisp.org>
92871                 Cygwin portability.
92872                 * progreloc.c (WIN32_NATIVE): Renamed from WIN32.
92874         2006-04-30  Bruno Haible  <bruno@clisp.org>
92876                 * progreloc.c: Include <mach-o/dyld.h> if available.
92877                 (find_executable): Use _NSGetExecutablePath when possible.
92879         2006-05-06  Charles Wilson  <cygwin@cwilson.fastmail.fm>
92881                 * progreloc.c (maybe_executable) [CYGWIN]: Use the access()
92882                 function.
92884         2005-12-29  Bruno Haible  <bruno@clisp.org>
92886                 * progreloc.c (set_program_name_and_installdir): Fix
92887                 compilation error.
92889         2005-12-04  Bruno Haible  <bruno@clisp.org>
92891                 Cygwin portability.
92892                 * progreloc.c: Include <windows.h> also on Cygwin.
92893                 (find_executable): Add support for Cygwin.
92894                 (set_program_name_and_installdir): Handle also platforms with
92895                 nonempty EXEEXT.
92897         2006-07-11  Bruno Haible  <bruno@clisp.org>
92899                 * javacomp.c: Fix a comment.
92900                 Reported by Jim Meyering.
92902         2006-04-30  Bruno Haible  <bruno@clisp.org>
92904                 * javacomp.h (compile_java_class): Add source_version,
92905                 target_version arguments.
92906                 * javacomp.c: Rewritten to choose only a compiler that
92907                 respects the specified source_version and target_version.
92909         2006-06-27  Bruno Haible  <bruno@clisp.org>
92911                 Assume correct S_ISDIR macro.
92912                 * mkdtemp.c: Remove test of STAT_MACROS_BROKEN.
92914         2006-07-22  Bruno Haible  <bruno@clisp.org>
92916                 * javaversion.h: New file, from GNU gettext.
92917                 * javaversion.c: New file, from GNU gettext.
92918                 * javaversion.java: New file, from GNU gettext.
92919                 * javaversion.class: New file, from GNU gettext.
92921         2006-05-17  Bruno Haible  <bruno@clisp.org>
92923                 Cygwin portability.
92924                 * javaexec.c (execute_java_class): Test for jview program
92925                 also on Cygwin.
92927         2006-04-09  Bruno Haible  <bruno@clisp.org>
92929                 * fatal-signal.c: Don't include string.h.
92930                 (at_fatal_signal): Use a copying loop instead of memcpy.
92932         2005-12-04  Bruno Haible  <bruno@clisp.org>
92934                 * csharpexec.c: Add support for 'clix' launcher (untested).
92935                 (execute_csharp_using_sscli): New function.
92936                 (execute_csharp_program): Call it.
92938         2006-06-21  Bruno Haible  <bruno@clisp.org>
92940                 Avoid warnings from recent versions of mcs.
92941                 * csharpcomp.c (compile_csharp_using_mono): Don't use options
92942                 -o, -L, -r any more. Use options documented since mcs-1.0
92943                 instead. Similarly for -g.
92945         2005-07-09  Bruno Haible  <bruno@clisp.org>
92947                 * csharpcomp.c (compile_csharp_using_sscli): For -l option,
92948                 add a .dll suffix.
92949                 Reported by Mark Junker <mjscod@gmx.de>.
92951         2006-06-17  Bruno Haible  <bruno@clisp.org>
92953                 * config.charset: Update for NetBSD 3.0.
92955         2006-05-17  Bruno Haible  <bruno@clisp.org>
92957                 Cygwin portability.
92958                 * localcharset.c (WIN32_NATIVE): Renamed from WIN32.
92960         2006-05-16  Bruno Haible  <bruno@clisp.org>
92962                 * localcharset.c [CYGWIN]: Include <windows.h>.
92963                 (get_charset_aliases): For Cygwin, return the same CPxxx
92964                 aliases list as under WIN32.
92965                 (locale_charset) [CYGWIN]: Try to retrieve the encoding from
92966                 the environment variables. Fall back to GetACP().
92968         2006-04-05  Bruno Haible  <bruno@clisp.org>
92970                 * config.charset: Update Juan Manuel Guerrero's address.
92972         2005-02-12  Bruno Haible  <bruno@clisp.org>
92974                 * allocsa.h: Add extern "C" for C++.
92976         2005-02-10  Bruno Haible  <bruno@clisp.org>
92978                 * allocsa.h (sa_alignof): Define differently with AIX xlc, to
92979                 avoid a bug of this compiler on AIX 3.2.5 dealing with enums.
92981         2006-07-22  Bruno Haible  <bruno@clisp.org>
92983                 * gettext.h: Update to GNU gettext-0.15.
92985 2006-07-22  Bruno Haible  <bruno@clisp.org>
92987         * config/srclist.txt: Resync printf-args.c, vasnprintf.c,
92988         localcharset.c, mkdtemp.c, config.rpath, lib-ld.m4, lib-link.m4,
92989         lib-prefix.m4, longdouble.m4, ssize_t.m4.
92991 2006-07-21  Eric Blake  <ebb9@byu.net>
92993         * modules/stdlib-safer: New file.
92994         * MODULES.html.sh (File stream based Input/Output): Add
92995         stdlib-safer.
92997 2006-07-21  Eric Blake  <ebb9@byu.net>
92999         * lib/stdlib-safer.h: New file from coreutils, required by
93000         stdlib--.h.
93002 2006-07-20  Paul Eggert  <eggert@cs.ucla.edu>
93004         * gnulib-tool (func_usage): Document --assume-autoconf='latest-stable'.
93006 2006-07-20  Bruno Haible  <bruno@clisp.org>
93008         * gnulib-tool: Recognize new option --assume-autoconf.
93009         (autoconf_minversion): New variable.
93010         (func_get_filelist): Use it to decide whether to add onceonly_2_57.m4.
93012 2006-07-20  Bruno Haible  <bruno@clisp.org>
93014         * MODULES.html.sh (func_all_modules): Add a missing func_begin_table.
93016 2006-07-19  Derek R. Price  <derek@ximbiot.com>
93018         * lib/getaddrinfo.h: Don't define unimplemented AI_* flags.
93019         Reindent and repaginate.
93021 2006-07-19  Derek Price  <derek@ximbiot.com>
93023         * doc/gnulib.texi (Libtool and Windows):  Eliminate passive voice.
93024         Correct grammar.
93026 2006-07-17  Bruno Haible  <bruno@clisp.org>
93028         * modules/list: New file.
93029         * modules/array-list: New file.
93030         * modules/carray-list, modules/carray-list-tests: New files.
93031         * modules/linked-list, modules/linked-list-tests: New files.
93032         * modules/avltree-list, modules/avltree-list-tests: New files.
93033         * modules/rbtree-list, modules/rbtree-list-tests: New files.
93034         * modules/linkedhash-list, modules/linkedhash-list-tests: New files.
93035         * modules/avltreehash-list, modules/avltreehash-list-tests: New files.
93036         * modules/rbtreehash-list, modules/rbtreehash-list-tests: New files.
93037         * modules/oset: New file.
93038         * modules/array-oset: New file.
93039         * modules/avltree-oset, modules/avltree-oset-tests: New files.
93040         * modules/rbtree-oset, modules/rbtree-oset-tests: New files.
93041         * tests/test-carray_list.c: New file.
93042         * tests/test-linked_list.c: New file.
93043         * tests/test-avltree_list.c: New file.
93044         * tests/test-rbtree_list.c: New file.
93045         * tests/test-linkedhash_list.c: New file.
93046         * tests/test-avltreehash_list.c: New file.
93047         * tests/test-rbtreehash_list.c: New file.
93048         * tests/test-avltree_oset.c: New file.
93049         * tests/test-rbtree_oset.c: New file.
93050         * MODULES.html.sh (Container data structures): New section.
93052 2006-07-17  Bruno Haible  <bruno@clisp.org>
93054         * m4/gl_list.m4: New file.
93056 2006-07-17  Bruno Haible  <bruno@clisp.org>
93058         * lib/gl_list.h: New file.
93059         * lib/gl_list.c: New file.
93060         * lib/gl_array_list.h: New file.
93061         * lib/gl_array_list.c: New file.
93062         * lib/gl_carray_list.h: New file.
93063         * lib/gl_carray_list.c: New file.
93064         * lib/gl_linked_list.h: New file.
93065         * lib/gl_linked_list.c: New file.
93066         * lib/gl_anylinked_list1.h: New file.
93067         * lib/gl_anylinked_list2.h: New file.
93068         * lib/gl_avltree_list.h: New file.
93069         * lib/gl_avltree_list.c: New file.
93070         * lib/gl_anyavltree_list1.h: New file.
93071         * lib/gl_anyavltree_list2.h: New file.
93072         * lib/gl_rbtree_list.h: New file.
93073         * lib/gl_rbtree_list.c: New file.
93074         * lib/gl_anyrbtree_list1.h: New file.
93075         * lib/gl_anyrbtree_list2.h: New file.
93076         * lib/gl_anytree_list1.h: New file.
93077         * lib/gl_anytree_list2.h: New file.
93078         * lib/gl_linkedhash_list.h: New file.
93079         * lib/gl_linkedhash_list.c: New file.
93080         * lib/gl_anyhash_list1.h: New file.
93081         * lib/gl_anyhash_list2.h: New file.
93082         * lib/gl_avltreehash_list.h: New file.
93083         * lib/gl_avltreehash_list.c: New file.
93084         * lib/gl_rbtreehash_list.h: New file.
93085         * lib/gl_rbtreehash_list.c: New file.
93086         * lib/gl_anytreehash_list1.h: New file.
93087         * lib/gl_anytreehash_list2.h: New file.
93089         * lib/gl_oset.h: New file.
93090         * lib/gl_oset.c: New file.
93091         * lib/gl_array_oset.h: New file.
93092         * lib/gl_array_oset.c: New file.
93093         * lib/gl_avltree_oset.h: New file.
93094         * lib/gl_avltree_oset.c: New file.
93095         * lib/gl_rbtree_oset.h: New file.
93096         * lib/gl_rbtree_oset.c: New file.
93097         * lib/gl_anytree_oset.h: New file.
93099 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
93101         * m4/mkancesdirs.m4: New file.
93102         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Mention dirchownmod.c,
93103         dirchownmod.h.  Don't require AC_FUNC_ALLOCA, gl_AFS, gl_CHDIR_SAFER;
93104         no longer needed.  Require gl_FUNC_LCHOWN, since dirchownmod.c needs
93105         it.
93107 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
93109         * lib/dirchownmod.c, lib/dirchownmod.h, lib/mkancesdirs.c:
93110         * lib/mkancesdirs.h: New files.
93111         * lib/mkdir-p.c: Don't include alloca.h, stdio.h, sys/types.h,
93112         unistd.h, string.h, chdir-safer.h, dirname.h, lchmod.h, lchown.h,
93113         save-cwd.h.  Instead, include dirchownmod.h and mkancesdirs.h.
93114         (make_dir_parents): New args MAKE_ANCESTOR, OPTIONS, ANNOUNCE,
93115         MODE_BITS.  Remove options VERBOSE_FMT_STRING, CWD_ERRNO.  All
93116         callers changed.  Revamp internals significantly, by not
93117         attempting to create directories that are temporarily more
93118         permissive than the final results.  Do not attempt to use
93119         save_cwd/restore_cwd; it isn't worth it for mkdir and install.
93120         This removes some race conditions, fixes some bugs, and simplifies
93121         things.  Use new dirchownmod function to do owner and mode changes.
93122         * lib/mkdir-p.h: Likewise.
93123         * lib/modechange.c (octal_to_mode): New function.
93124         (struct mode_change): New member mentioned.
93125         (make_node_op_equals): New arg mentioned.  All callers changed.
93126         (mode_compile): Keep track of which mode bits the user has explicitly
93127         mentioned.
93128         (mode_adjust): New arg DIR, so that we implement the X op correctly.
93129         New arg PMODE_BITS, to keep track of which mode bits the user
93130         mentioned; it treats S_ISUID and S_ISGID speciall.
93131         All callers changed.
93132         * lib/modechange.h: Likewise.
93134 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
93136         * MODULES.html.sh: Add mkancestors.
93137         * modules/mkancesdirs: New module.
93138         * modules/mkdir-p (Files): Remove lib/chdir-safer.c, lib/chdir-safer.h,
93139         lib/same-inode.h, m4/afs.m4, m4/chdir-safer.m4.
93140         The chdir-safer and afs files are now orphans; I'll remove them
93141         unless someone speaks up.
93142         Add lib/dirchownmod.c, lib/dirchownmod.h.
93143         (Depends-on): Remove alloca, chown, save-cwd, dirname.
93144         Add lchown, mkancesdirs.
93145         (Maintainer): Add self.
93147 2006-07-15  Karl Berry  <karl@gnu.org>
93149         * gnulib-tool: help message wording/arrangement.
93151 2006-07-14  Simon Josefsson  <jas@extundo.com>
93153         * doc/gnulib.texi (Libtool and Windows): New section.
93155 2006-07-12  Simon Josefsson  <jas@extundo.com>
93157         * modules/gendocs (License): Fix license, approved by Karl.
93159 2006-07-12  Eric Blake  <ebb9@byu.net>
93161         * MODULES.html.sh: Add gendocs.
93163 2006-07-11  Eric Blake  <ebb9@byu.net>
93165         * modules/fdl: New module, to install doc/fdl.texi.
93166         * MODULES.html.sh: Add new section for documentation modules.
93167         * gnulib-tool: Avoid space-tab.
93168         (--doc-base): New option, to manage files from doc.
93170 2006-07-11  Eric Blake  <ebb9@byu.net>
93172         * m4/absolute-header.m4: Fix comments to match recent change.
93174 2006-07-11  Eric Blake  <ebb9@byu.net>
93176         * gnulib-tool: List --doc-base before --tests-base.
93178 2006-07-11  Derek R. Price  <derek@ximbiot.com>
93180         * lib/glob.c: s/NAMLEN/_D_EXACT_NAMLEN/.
93182 2006-07-11  Bruno Haible  <bruno@clisp.org>
93184         * README: Mention where to put documentation.
93186 2006-07-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
93188         * doc/functions.texi, gnulib-tool.texi, gnulib.texi: Fix some typos.
93190 2006-07-10  Paul Eggert  <eggert@cs.ucla.edu>
93192         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Like today's change
93193         to stdint.m4.
93195 2006-07-10  Paul Eggert  <eggert@cs.ucla.edu>
93197         * m4/stdint.m4 (gl_STDINT_H): Like yesterday's change to
93198         absolute-header.m4.  Also, set ABSOLUTE_STDINT_H to a string
93199         "no/such/file/stdint.h" when there is no such file, so that
93200         the resulting C code can be parsed by dodgy compilers.
93201         Problems reported by Bob Proulx.
93203 2006-07-10  Derek R. Price  <derek@ximbiot.com>
93205         * lib/backupfile.c, dirfd.h, fts.c, getcwd.c, glob.c, glob_.h:
93206         Ignore the obsolescent !HAVE_DIRENT_H case.  Consolidate NAMLEN
93207         macros into the GNU _D_EXACT_NAMLEN.
93208         * lib/savedir.c:  Likewise.
93209         (savedirstream): Use _D_EXACT_NAMLEN in preference to strlen.
93211 2006-07-10  Derek R. Price  <derek@ximbiot.com>
93212         and Paul Eggert  <eggert@cs.ucla.edu>
93214         * m4/backupfile.m4, d-ino.m4, d-type.m4, dirfd.m4, fts.m4, getcwd.m4:
93215         * m4/savedir.m4:
93216         Ignore the obsolescent !HAVE_DIRENT_H case.  Consolidate NAMLEN
93217         macros into the GNU _D_EXACT_NAMLEN.
93219 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
93221         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Use "" rather than <>
93222         around the absolute name, to work around a problem with the HP-UX
93223         11.23 native C compiler, reported by Bob Proulx.
93225 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
93227         * doc/maintain.texi, make-stds.texi: Sync from
93228         <http://savannah.gnu.org/projects/gnustandards>.
93230 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
93232         * build-aux/depcomp, build-aux/install-sh: Sync from Automake.
93234 2006-07-09  Jim Meyering  <jim@meyering.net>
93236         * m4/glob.m4: Remove a doubled word in a comment.
93238 2006-07-09  Jim Meyering  <jim@meyering.net>
93240         * lib/argp-pv.c: Remove a doubled word in a comment.
93241         * lib/check-version.c (check_version): Likewise.
93242         * lib/javacomp.c (compile_java_class): Likewise.
93244 2006-07-08  Paul Eggert  <eggert@cs.ucla.edu>
93246         * gnulib-tool (func_get_filelist): Don't echo m4/onceonly_2_57.m4,
93247         for the benefit of people using Autoconf 2.60.  If you want to
93248         support older Autoconf versions you can copy m4/onceonly_2_57.m4
93249         (or m4/onceonly.m4, if pre-2.57) manually.
93251 2006-07-08  Jim Meyering  <jim@meyering.net>
93253         * m4/link-follow.m4: Remove one of two adjacent "whether"s in a
93254         comment.
93255         * m4/getopt.m4: Remove one of two adjacent "your"s in a comment.
93256         * m4/regex.m4 (gl_REGEX): Remove one of two adjacent "the"s in a
93257         comment.
93259 2006-07-08  Jim Meyering  <jim@meyering.net>
93261         * lib/getndelim2.h (getndelim2): Remove doubled "after" in comment.
93263 2006-07-07  Simon Josefsson  <jas@extundo.com>
93265         * tests/test-crc.c: Change expected crc value, the test vector
93266         were probably computed using the old broken crc.c?
93268 2006-07-06  Simon Josefsson  <jas@extundo.com>
93270         * modules/sys_socket (Files): Add m4/sockpfaf.m4 (this module is
93271         now the canonical place for the M4 file).
93273         * modules/getaddrinfo (Files): Remove m4/sockpfaf.m4, we get it
93274         from the sys_socket dependency now.
93276         * modules/inet_pton (Files): Ditto.
93278         * modules/inet_ntop (Files): Ditto.
93280 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
93282         * modules/getusershell (configure.ac): Use gl_FUNC_GETUSERSHELL,
93283         not gl_PREREQ_GETUSERSHELL.
93285 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
93287         * m4/_inttypes_h.m4 (gl_INTTYPES_H): Use AC_CHECK_DECLS_ONCE
93288         with only one argument, for Autoconf 2.60.
93289         * m4/fileblocks.m4 (gl_PREREQ_FILEBLOCKS): AC_CHECK_DECLS_ONCE may
93290         expand to nothing, so add a shell command to avoid syntax error.
93291         * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
93293 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
93295         * lib/strtod.c (strtod): cast the argument of tolower to unsigned char.
93297 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
93299         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Don't check for getenv decl;
93300         no longer needed.  Check for isblank decl.
93301         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Don't check for getenv decl.
93302         * m4/regex.m4 (gl_PREREQ_REGEX): Dheck for isblank decl instead
93303         of existence.
93305 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
93307         * lib/getloadavg.c: Use __VMS, not VMS.
93308         * lib/getopt.c: Likewise.
93309         * lib/getpagesize.h: Likewise.
93310         * lib/glob.c: Remove most VMS cruft; it hasn't been tested for a while
93311         and probably does not work.
93313 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
93315         * lib/.cppi-disable: Add wcwidth.
93316         * lib/fnmatch.c (ISBLANK): Remove.  All uses changed to isblank.
93317         (isblank) [! (defined isblank || HAVE_DECL_ISBLANK)]: New macro.
93318         (ISGRAPH): Remove.  All uses changed to isgraph.
93319         (FOLD) [!defined _LIBC]: Remove special case.
93320         * lib/getdate.y (lookup_word): Remove no-longer-needed call to islower.
93321         * lib/regex_internal.h (isblank): Depend on HAVE_DECL_ISBLANK, not
93322         HAVE_ISBLANK.
93323         * lib/strftime.c (TOLOWER, TOUPPER) [!defined _LIBC]: Remove special
93324         case.
93326 2006-07-06  Jim Hyslop  <jhyslop@dreampossible.ca>  (tiny change)
93328         * lib/getaddrinfo.c: Changes to compile under MSVC6: changed
93329         '#if WIN32_NATIVE' to '#ifdef' & moved WSAAPI macro inside
93330         brackets.  Other minor changes to suppress some compiler
93331         warnings.
93333 2006-07-06  Derek R. Price  <derek@ximbiot.com>
93334         and Paul Eggert  <eggert@cs.ucla.edu>
93336         * m4/backupfile.m4 (gl_BACKUPFILE): Check for dirent.h, instead
93337         of invoking obsolescent AC_HEADER_DIRENT macro.
93338         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Likewise.
93339         * m4/d-type.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Likewise.
93340         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
93341         * m4/fts.m4 (gl_FUNC_FTS_CORE): Likewise.
93342         * m4/getcwd.m4 (gl_PREREQ_GETCWD): Likewise.
93343         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
93344         * m4/savedir.m4 (gl_SAVEDIR): Likewise.
93345         * m4/readdir.m4: Remove; no longer needed.
93347 2006-07-06  Derek R. Price  <derek@ximbiot.com>
93348         and Paul Eggert  <eggert@cs.ucla.edu>
93350         * lib/backupfile.c [HAVE_DIRENT_H && ! HAVE_NDIR_H]:
93351         Don't worry about this obsolete case any more.
93352         (HAVE_DIR): Remove.  All uses removed; we now assume you can read
93353         directories.
93354         * lib/dirfd.h [HAVE_DIRENT_H && ! HAVE_NDIR_H]: Don't
93355         worry about this obsolete case any more.
93356         * lib/fts.c: Likewise.
93357         * lib/getcwd.c: Likewise.
93358         * lib/glob.h: Likewise.
93359         * lib/savedir.c: Likewise.
93361 2006-07-05  Paul Eggert  <eggert@cs.ucla.edu>
93363         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Use AC_CHECK_DECLS_ONCE
93364         rather than AC_CHECK_DECLS for strtoimax and strtoumax.
93365         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Remove; no longer
93366         needed.
93367         All uses removed.
93368         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
93369         * m4/strtoul.m4 (gl_PREREQ_STRTOUL): Likewise.
93370         * m4/exclude.m4 (gl_EXCLUDE): Don't check for isascii; no longer
93371         needed.
93372         * m4/getdate.m4 (gl_GETDATE): Likewise.
93373         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Likewise.
93374         * m4/memcasecmp.m4 (gl_MEMCASECMP): Likewise.
93375         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
93376         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
93377         * m4/strtoul.m4 (gl_PREREQ_STRTOUL): Likewise.
93378         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
93379         * m4/exclude.m4 (gl_EXCLUDE): Don't require AC_C_INLINE; no longer
93380         needed.
93382 2006-07-05  Paul Eggert  <eggert@cs.ucla.edu>
93384         * lib/memcasecmp.c: Include <limits.h>.
93385         (memcasecmp): Don't assume UCHAR_MAX <= INT_MAX.
93386         * lib/strtod.c (strtod): Don't assume isspace works on negative chars.
93387         Don't assume isdigit succeeds only on '0' through '9'.
93389 2006-07-05  Eric Blake  <ebb9@byu.net>
93391         * modules/getaddrinfo (Depends-on): Add snprintf.
93393 2006-07-05  Eric Blake  <ebb9@byu.net>
93395         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Use gl_HEADER_SYS_SOCKET
93396         to avoid 'header present but could not be compiled' on cygwin.
93398 2006-07-05  Eric Blake  <ebb9@byu.net>
93400         * lib/getaddrinfo.h (NI_NUMERICHOST, NI_NUMERICSERV): Define if
93401         missing from netdb.h.
93402         * lib/getaddrinfo.c (includes): Include inet_ntop and snprintf.
93404 2006-07-05  Derek R. Price  <derek@ximbiot.com>
93406         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Don't require AC_HEADER_STDC;
93407         no longer needed.
93408         * m4/exclude.m4 (gl_EXCLUDE): Likewise.
93409         * m4/getdate.m4 (gl_GETDATE): Likewise.
93410         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Likewise.
93411         * m4/memcasecmp.m4 (gl_MEMCASECMP): Likewise.
93412         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
93413         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
93414         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
93416 2006-07-05  Derek R. Price  <derek@ximbiot.com>
93418         * lib/exclude.c (IN_CTYPE_DOMAIN, is_space): Remove; no longer needed.
93419         All uses of is_space replaced by isspace.
93420         * lib/exit.h: Don't talk about STDC_HEADERS.
93421         * lib/fnmatch.c (ISASCII): Remove; no longer needed.  All uses removed.
93422         (ISPRINT, ISDIGIT, ISALNUM, ISALPHA, ISCNTRL, ISLOWER, ISPUNCT):
93423         (ISSPACE, ISUPPER, ISXDIGIT): Remove; no longer needed.  All uses
93424         replaced by isprint etc.
93425         * lib/getdate.y (IN_CTYPE_DOMAIN, ISSPACE, ISALPHA, ISLOWER): Likewise.
93426         * lib/getusershell.c (IN_CTYPE_DOMAIN, ISSPACE): Likewise.
93427         * lib/memcasecmp.c (IN_CTYPE_DOMAIN, ISLOWER, TOUPPER): Likewise.
93428         * lib/strtod.c (IN_CTYPE_DOMAIN, ISSPACE, ISDIGIT, TOLOWER): Likewise.
93429         * lib/strtol.c (IN_CTYPE_DOMAIN): Likewise.
93430         * lib/xstrtol.c (IN_CTYPE_DOMAIN, ISSPACE): Likewise.
93432 2006-07-05  Bruno Haible  <bruno@clisp.org>
93434         * m4/strndup.m4 (gl_FUNC_STRNDUP): When cross-compiling, check whether
93435         the function exists, before testing against AIX.
93436         Reported by Martin Lambers <marlam@marlam.de>.
93438 2006-07-04  Paul Eggert  <eggert@cs.ucla.edu>
93440         * modules/cycle-check (lib_SOURCES): Add same-inode.h.
93441         From Mark D. Baushke.
93443 2006-07-04  Paul Eggert  <eggert@cs.ucla.edu>
93445         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Prepend three slashes
93446         to the absolute name, not just one, to bypass Sun C 5.8's
93447         "warning: #include of /usr/include/... may be non-portable".
93449 2006-07-04  Eric Blake  <ebb9@byu.net>
93451         * modules/dirname-tests: New test module.
93452         * tests/test-dirname.c: New file, replacing dirname.c
93453         TEST_DIRNAME section that was recently deleted.
93455 2006-07-04  Bruno Haible  <bruno@clisp.org>
93457         Assume ANSI C header files and <ctype.h> functions.
93458         * lib/mbswidth.c (IN_CTYPE_DOMAIN, ISPRINT, ISCNTRL): Remove macros.
93459         (mbsnwidth): Use isprint, iscntrl instead.
93461 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
93463         Merge from coreutils.
93464         * MODULES.html.sh: Add xstrtold.
93465         * modules/xstrtold: New file.
93466         * modules/cycle-check (Files): Add lib/same-inode.h.
93467         * modules/dirname (Files): Add m4/double-slash-root.m4.
93468         * modules/getcwd (Files): Add m4/getcwd-abort-bug.m4.
93469         * modules/mkdir-p (Files): Add lib/same-inode.h.
93470         * modules/same (Files): Add lib/same-inode.h.
93472 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
93474         * m4/absolute-header.m4: Renamed from full-header-path.m4.
93475         This is to keep the terminology clean; POSIX talks about
93476         "absolute pathnames", not "full pathnames", but the GNU
93477         Coding Standards say to use "path" for something else;
93478         so use "absolute" to keep both sides happy.
93479         (gl_ABSOLUTE_HEADER): Renamed from gl_FULL_HEADER_PATH.
93480         Set gl_absolute_header, not gl_full_header_path.
93481         Set gl_cv_absolute_<header>, not gl_full_path_<header>.
93482         Define ABSOLUTE_<HEADER>, not FULL_PATH_<HEADER>.
93483         All uses changed.
93485         Merge from coreutils.
93487         2006-06-30  Paul Eggert  <eggert@cs.ucla.edu>
93489         * m4/c-strtod.m4 (gl_C_STRTOLD): Add c-strtod.c to LIBSOURCES.
93490         Require gl_USE_SYSTEM_EXTENSIONS, not gl_C_STRTOD, since we don't
93491         want to require the building of c-strtod.o.
93492         * m4/lib-check.m4 (cu_LIB_CHECK): Remove SEQ_LIBM, since seq no longer
93493         needs -lm directly.
93494         * m4/xstrtod.m4 (gl_XSTRTOLD): New macro.
93496         2006-06-19  Paul Eggert  <eggert@cs.ucla.edu>
93498         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Prefer binutils's
93499         --as-needed option if available.  Problem reported by Albert Chin in
93500         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00114.html>.
93501         However, use -Wl,--as-needed, not bare --as-needed, since HP-UX 11.11
93502         cc merely issues a bunch of annoying warnings for --as-needed
93503         (this problem was reported by Bob Proulx).  Also, try linking with
93504         -lm to detect a bug in binutils 2.16 (this problem was reported
93505         by Ralf Wildenhues).
93507         2006-06-18  Jim Meyering  <jim@meyering.net>
93509         Test for a bug that causes glibc's getcwd to suffer a failed assertion.
93510         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): New file and
93511         macro.
93512         * m4/getcwd.m4 (gl_FUNC_GETCWD): If we detect support for getcwd_null,
93513         also check for glibc-2.4's abort-inducing bug.
93515         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Fix typo.
93516         Low-probability clean-up should be to use rmdir to get rid of
93517         the just-created directory, not unlink.
93519         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): If ftruncate is missing, make
93520         configure fail, and request a bug report to inform us about it.
93521         Add a comment that, barring reports to the contrary, in 2007 we'll
93522         assume ftruncate is universally available.
93524         2006-04-17  Paul Eggert  <eggert@cs.ucla.edu>
93526         * m4/filemode.m4 (gl_FILEMODE): Check for strmode declaration.
93528         2006-03-12  Jim Meyering  <jim@meyering.net>
93530         * m4/chdir-safer.m4 (gl_CHDIR_SAFER): Add same-inode.h to the list.
93531         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Likewise.
93532         * m4/same.m4 (gl_SAME): Likewise.
93533         * m4/root-dev-ino.m4 (gl_ROOT_DEV_INO): Likewise.
93535         2006-03-11  Eric Blake  <ebb9@byu.net>
93537         * m4/double-slash-root.m4: New file, provides gl_DOUBLE_SLASH_ROOT.
93538         * m4/dirname.m4 (gl_DIRNAME): Use gl_DOUBLE_SLASH_ROOT.
93539         * m4/dos.m4 (FILE_SYSTEM_PREFIX_LEN): Move from here to dirname.h.
93540         (FILE_SYSTEM_DRIVE_PREFIX_CAN_BE_RELATIVE): New define.
93542 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
93544         * lib/stdint_.h: Include <sys/types.h> after @FULL_PATH_STDINT_H@, for
93545         MacOS X 10.4.6.  Don't mention <sys/int_types.h>.  Problems
93546         reported by Mark D. Baushke, one in
93547         <http://lists.gnu.org/archive/html/bug-gnulib/2006-07/msg00015.html>.
93549         Merge from coreutils.
93551         * lib/.cppi-disable: Add stdint_.h.
93552         * lib/.cvsignore: Add stdint.h.
93554         2006-06-30  Paul Eggert  <eggert@cs.ucla.edu>
93556         * lib/xstrtod.c (XSTRTOD, DOUBLE): New macros, so that we can support
93557         both double and long double versions.
93558         (XSTRTOD): Renamed from xstrtod.  Use DOUBLE internally.
93559         * lib/xstrtold.c: New file.
93560         * lib/xstrtod.h (xstrtold): New decl.
93562         2006-05-22  Paul Eggert  <eggert@cs.ucla.edu>
93564         * lib/filemode.c (setst): Remove.
93565         (strmode): Rewrite to avoid setst.  This makes the code shorter,
93566         (arguably) clearer, and the generated code is a bit smaller on my
93567         Debian GNU/Linux stable x86 host.
93569         2006-04-17  Paul Eggert  <eggert@cs.ucla.edu>
93571         * lib/filemode.c: Include "filemode.h" first, to test the interface.
93572         Assume that filemode.h includes sys/types.h and sys/stat.h.
93573         (HAVE_ST_DM_MODE): New macro, moved here from ls.c.
93574         (ftypelet): Reorder to put common cases first, for efficiency.
93575         Add 'P', 'w'.  Remove 'M', since it's now the caller's responsibility
93576         to do 'M'.
93577         (strmode): Renamed from mode_string, and now stores 12 bytes instead
93578         of 10, for compatibility with FreeBSD.  All callers changed.
93579         (filemodestring): Now stores 12 bytes instead of 10, and sets file
93580         types that can't be deduced solely from st_mode.  First arg is now a
93581         const pointer.
93582         * lib/filemode.h (HAVE_DECL_STRMODE): Include <string.h> for strmode.
93583         (strmode): Renamed from mode_string.
93584         (filemodestring): New decl.
93585         * lib/stat-macros.h: Don't undef S_ISDOOR, since it's never buggy.
93586         (S_ISDOOR): Don't bother with S_IFDOOR, since that code is never
93587         needed.
93588         (S_ISPORT, S_ISWHT): New macros, if not already defined.
93590         2006-04-12  Paul Eggert  <eggert@cs.ucla.edu>
93592         * lib/fsusage.c: Don't include <inttypes.h> or <stdint.h>, since
93593         fsusage.h now does that.  Include fsusage.h first, to test interface.
93594         Prefer statvfs if it works, since it's blessed by POSIX.  Attempt
93595         at most one method (the old code could have generated decls that
93596         didn't conform to C89, not that this was ever exercised).
93597         * lib/fsusage.h: Include <inttypes.h> and <stdint.h> if they exist.
93599         2006-03-19  Jim Meyering  <jim@meyering.net>
93601         Work even in a chroot where d_ino values for entries in "/"
93602         don't match the stat.st_ino values for the same names.
93603         * lib/getcwd.c (__getcwd): When no d_ino value matches the target inode
93604         number, iterate through all entries again, using lstat instead.
93605         Reported by Kenshi Muto in http://bugs.debian.org/355810, and by
93606         Zouhir Hafidi in https://bugzilla.redhat.com/bugzilla/190656.
93608         * lib/getcwd.c (__getcwd): Clarify a comment.
93609         Use memcpy in place of a call to strcpy.
93611         2006-03-12  Jim Meyering  <jim@meyering.net>
93613         * lib/fts-cycle.c (leave_dir): If cycle-check's saved dev-ino pair
93614         matches that of the current directory (which we're about to chdir ".."
93615         out of), then save the dev-ino of the parent, instead.
93617         * lib/same-inode.h (SAME_INODE): New file/macro.
93618         * lib/chdir-safer.c (SAME_INODE): Remove definition.
93619         Include "same-inode.h", instead.
93620         * lib/same.c: Likewise.
93621         * lib/cycle-check.h: Include "same-inode.h".
93622         (CYCLE_CHECK_REFLECT_CHDIR_UP): Define.
93623         * lib/cycle-check.c (SAME_INODE): Remove definition.
93624         * lib/root-dev-ino.h: Include "same-inode.h".
93626         2006-03-11  Eric Blake  <ebb9@byu.net>
93628         * lib/same.c (same_name): s/base_name/last_component/
93629         * lib/backupfile.c (check_extension, numbered_backup): Likewise.
93630         * lib/filenamecat.c (file_name_concat): Likewise.
93632         2006-03-11  Eric Blake  <ebb9@byu.net>,
93633                     Paul Eggert  <eggert@cs.ucla.edu>
93635         * lib/dirname.h (FILE_SYSTEM_PREFIX_LEN): Move here from dos.m4.
93636         [FILE_SYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX]: Don't treat 1: as a
93637         drive prefix.
93638         (IS_ABSOLUTE_FILE_NAME): Treat all drive letters as absolute on
93639         platforms like cygwin with FILE_SYSTEM_DRIVE_PREFIX_IS_ABSOLUTE.
93640         (last_component): New method.
93641         * lib/dirname.c (dir_len): Determine when drive letters need a
93642         subsequent slash.  Preserve // when it is special.
93643         (dir_name): Don't append dot when drive letter is absolute.
93644         [TEST_DIRNAME]: Move into a full-blown gnulib test.
93645         * lib/basename.c (base_name): New semantics - malloc the result.
93646         Preserve // when it is special.  Preserve relative files that look
93647         like drive letters.
93648         (base_len): Preserve // when it is special.
93649         (last_component): New method, similar to old base_name semantics.
93650         * lib/stripslash.c (strip_trailing_slashes): Use last_component, not
93651         base_name.  Strip redundant slashes from ///.
93653 2006-07-03  Jim Meyering  <jim@meyering.net>
93655         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Abort if this
93656         macro is used before the first cycle_check call.
93658 2006-07-03  Eric Blake  <ebb9@byu.net>
93660         * modules/dirname (Depends-on): Add xstrndup.
93662 2006-07-02  Paul Eggert  <eggert@cs.ucla.edu>
93664         * m4/stdint.m4 (gl_STDINT_H): Use more-mnemonic identifiers for
93665         test cases, so that config.log is a bit easier to follow.
93667 2006-07-02  Paul Eggert  <eggert@cs.ucla.edu>
93669         * lib/stdint_.h (intmax_t, uintmax_t): Prefer long to long long if
93670         both are 64 bits, since this seems to be the tradition, and this
93671         prevents gcc -Wformat from warning about usages with PRIuMAX.  If
93672         we ever run into a host that prefers long long to long in this
93673         case, we'll need another configure-time test.  Problem reported by
93674         Jim Meyering.
93676 2006-07-02  Eric Blake  <ebb9@byu.net>
93678         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Simplify by using AC_CHECK_DECLS.
93680 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
93682         * modules/inttypes (Depends-on): No longer depends on stdint.
93683         * modules/stdint (Description): Say more about assumptions.
93684         Say that the fast types might differ.  Say macros are used.
93685         (Files): Remove m4/size_max.m4, m4/wchar_t.m4.  Add m4/longlong.m4.
93686         (Makefile.am): Revise list of substituted symbols to match
93687         new stdint.m4.
93688         * modules/stdint-tests (Files): Add m4/wchar_t.m4, m4/wint_t.m4.
93689         (configure.ac): Add gt_TYPE_WCHAR_T, gt_TYPE_WINT_T.
93690         * tests/test-stdint.c (verify_same_types)
93691         [! (__GNUC__ >= 2 && DO_PEDANTIC)]: Put in a decl, so that
93692         the code conforms to C99/C89.
93693         Test for WCHAR_MIN and WCHAR_MAX only if HAVE_WCHAR_T.
93694         Test for WINT_MIN and WINT_MAX only if HAVE_WINT_T.
93696 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
93698         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Backport from Autoconf 2.60,
93699         but fix a bug, by requiring at least 64 bits.
93700         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Likewise.
93701         * m4/longlong.m4 (gl_AC_TYPE_LONG_LONG): Now just call
93702         AC_TYPE_LONG_LONG_INT.  This macro is obsolete and will go soon.
93703         * m4/ulonglong.m4 (gl_AC_TYPE_UNSIGNED_LONG_LONG): Likewise.
93705         * m4/stdint.m4 (gl_STDINT_H): Rewrite to accommodate stdint_.h
93706         changes.  Make 2.59 a prerequisite.  Check and substitute for
93707         HAVE_LONG_LONG_INT.  Rely on Autoconf to check for stdint.h and
93708         inttypes.h.  Do not use special include files; just use the
93709         defaults.  Check for sys/inttypes.h and sys/bitypes.h in the usual
93710         way now.  Remove no-longer-needed tests for HAVE_LONG_64BIT,
93711         HAVE_LONG_LONG_64BIT, int8_t, int16_t, int32_t, int64_t, uint8_t,
93712         uint16_t, uint32_t uint64_t, int_least8_t, int_least16_t,
93713         int_least32_t, int_least64_t, uint_least8_t, uint_least16_t,
93714         uint_least32_t, uint_least64_t, int_fast8_t, int_fast16_t,
93715         int_fast32_t, int_fast64_t, uint_fast8_t uint_fast16_t,
93716         uint_fast32_t, uint_fast64_t, intptr_t, uintptr_t, intmax_t,
93717         uintmax_t, INT8_MIN, INT8_MAX, UINT8_MAX, INT16_MIN, INT16_MAX,
93718         UINT16_MAX, INT32_MIN, INT32_MAX, UINT32_MAX, INT64_MIN,
93719         INT64_MAX, UINT64_MAX, INT_LEAST8_MIN, INT_LEAST8_MAX,
93720         UINT_LEAST8_MAX, INT_LEAST16_MIN, INT_LEAST16_MAX,
93721         UINT_LEAST16_MAX, INT_LEAST32_MIN, INT_LEAST32_MAX,
93722         UINT_LEAST32_MAX, INT_LEAST64_MIN, INT_LEAST64_MAX,
93723         UINT_LEAST64_MAX, INT_FAST8_MIN, INT_FAST8_MAX, UINT_FAST8_MAX,
93724         INT_FAST16_MIN, INT_FAST16_MAX, UINT_FAST16_MAX, INT_FAST32_MIN,
93725         INT_FAST32_MAX, UINT_FAST32_MAX, INT_FAST64_MIN, INT_FAST64_MAX,
93726         UINT_FAST64_MAX, INTPTR_MIN, INTPTR_MAX, UINTPTR_MAX, INTMAX_MIN,
93727         INTMAX_MAX, UINTMAX_MAX, PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN,
93728         SIG_ATOMIC_MAX, SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN,
93729         WINT_MAX.  Check for C99 conformance more strictly, by detecting
93730         bugs in glibc 2.4, Solaris 10, and OpenBSD 3.9.  On the other hand do
93731         not check for things that C99 does not require, e.g., int8_t.  If
93732         a test isn't needed unless <stdint.h> isn't working, and is
93733         unlikely to be needed for any other reason, then don't do it
93734         unless <stdint.h> isn't working.  Do not check for ptrdiff_t or
93735         size_t, since we assume C89 freestanding at least.  Do not check
93736         for sig_atomic_t, wchar_t, or wint_t, since the code now does
93737         the right thing even if the types are not defined.  Instead use:
93738         (gl_STDINT_TYPE_PROPERTIES): New macro.
93739         (gl_HEADER_STDINT_H, gl_HEADER_INTTYPES_H): Remove.  Don't bother
93740         testing whether <sys/types.h> clashes, as Autoconf does this for
93741         us now.  All uses removed.
93742         (gl_STDINT_CHECK_TYPES, gl_STDINT_MISSING_BOUND):
93743         (gl_STDINT_MISSING_BOUNDS, gl_STDINT_MISSING_BOUNDS2):
93744         (gl_CHECK_TYPE_SAME):
93745         Remove; no longer needed.
93746         (gl_STDINT_BITSIZEOF): Don't bother to check whether the type
93747         exists, since we'll return 0 anyway in that case.
93748         (gl_INTEGER_TYPE_SUFFIX, gl_STDINT_INCLUDES): New macros.
93750 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
93752         * lib/stdint_.h (_GL_STDINT_H): Renamed from _STDINT_H, to avoid
93753         possible collision with system files.
93754         (<stdio.h>, <time.h>, <wchar.h>) [defined __cplusplus && ! defined
93755         __STDC_CONSTANT_MACROS)]: Do not include, since we don't need
93756         WCHAR_MIN and WCHAR_MAX in this case.
93757         (<stddef.h>): Do not include; no longer needed.
93758         (<sys/types.h>): Include if @HAVE_SYS_TYPES_H@, not if
93759         (defined(__OpenBSD__) || defined(__bsdi__) || defined(__sgi)).
93760         (<sys/inttypes.h>): Include if @HAVE_SYS_INTTYPES_H@ &&
93761         !@HAVE_INTTYPES_H@, not if (defined(__FreeBSD__)
93762         && (__FreeBSD__ >= 3) && (__FreeBSD__ <= 4)).
93763         (__STDINT_H__) [@HAVE_STDINT_H@ && defined __sgi && ! defined
93764         __c99]: Define, to work around IRIX <stdint.h> incompatibility.
93765         (@FULL_PATH_STDINT_H@) [!(defined(__sgi) && @HAVE_INTTYPES_H@ &&
93766         !defined(__c99))]: Include in this case too, since it's harmless
93767         now.
93768         (<inttypes.h>) [@HAVE_INTTYPES_H@]: Include, since it's no longer
93769         dangerous to do so.
93770         (@FULL_PATH_INTTYPES_H@) [(defined(__hpux) || defined(_AIX)) &&
93771         @HAVE_INTTYPES_H@]: Do not include, since we now include <inttypes.h>.
93772         (_STDINT_MIN, _STDINT_MAX): New macros.
93773         (int8_t, uint8_t, int16_t, uint16_t, int32_t, uint32_t, int64_t):
93774         (uint64_t, int_least8_t, uint_least8_t, int_least16_t):
93775         (uint_least16_t, int_least32_t, uint_least32_t, int_least64_t):
93776         (uint_least64_t, int_fast8_t, uint_fast8_t, int_fast16_t):
93777         (uint_fast16_t, int_fast32_t, uint_fast32_t, int_fast64_t):
93778         (uint_fast64_t, intptr_t, uintptr_t, intmax_t, uintmax_t): Now
93779         macros, not typedefs; this simplifies things quite a bit.
93780         Use long int for all types narrower than int64_t.
93781         (intmax_t, uintmax_t, INTMAX_C, UINTMAX_C):
93782         Define in terms of long long int or int64_t or long int,
93783         not int64_t or int32_t.  This saves some compile-time testing.
93784         (INT8_MIN, INT8_MAX, UINT8_MAX, INT16_MIN, INT16_MAX, UINT16_MAX):
93785         (INT32_MIN, INT32_MAX, UINT32_MAX, INT64_MIN, INT64_MAX):
93786         (UINT64_MAX, INT_LEAST8_MIN, INT_LEAST8_MAX, UINT_LEAST8_MAX):
93787         (INT_LEAST16_MIN, INT_LEAST16_MAX, UINT_LEAST16_MAX):
93788         (INT_LEAST32_MIN, INT_LEAST32_MAX, UINT_LEAST32_MAX):
93789         (INT_LEAST64_MIN, INT_LEAST64_MAX, UINT_LEAST64_MAX, INT_FAST8_MIN):
93790         (INT_FAST8_MAX, UINT_FAST8_MAX, INT_FAST16_MIN, INT_FAST16_MAX):
93791         (UINT_FAST16_MAX, INT_FAST32_MIN, INT_FAST32_MAX, UINT_FAST32_MAX):
93792         (INT_FAST64_MIN, INT_FAST64_MAX, UINT_FAST64_MAX, INTPTR_MIN):
93793         (INTPTR_MAX, UINTPTR_MAX, INTMAX_MIN, INTMAX_MAX, UINTMAX_MAX):
93794         (PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX):
93795         (SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN, WINT_MAX):
93796         undef any previous version and define our own version, for
93797         simplicity and consistency with the new macros for types.
93798         (PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX):
93799         (SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN, WINT_MAX):
93800         Simplify definitions by using _STDINT_MIN and _STDINT_MAX
93801         where appropriate.  Rely on new symbols @PTRDIFF_T_SUFFIX@,
93802         @SIG_ATOMIC_T_SUFFIX@, @SIZE_T_SUFFIX@, @WCHAR_T_SUFFIX@,
93803         @WINT_T_SUFFIX@ to keep things simple here.
93804         (UINT8_C, UINT16_C, UINT32_C, INT64_C, UINT64_C):
93805         Simplify by assuming typical 8/16/32/64 host, since we're
93806         already doing that elsewhere anyway.
93807         Use (LONG_MAX >> 31 >> 31 == 1) rather than @HAVE_LONG_64BIT@,
93808         and assume long long int is 64 bits if available.  This
93809         speeds up 'configure'.
93811 2006-07-01  Eric Blake  <ebb9@byu.net>
93813         * m4/stdarg.m4 (gl_STDARG_H): Use proper AH_VERBATIM.
93814         Reported by Andreas Buening.
93816 2006-07-01  Eric Blake  <ebb9@byu.net>
93818         * m4/stdarg.m4 (gl_STDARG_H): Properly parenthesize gl_va_copy.
93820 2006-06-30  Jim Hyslop  <jhyslop@dreampossible.ca>  (tiny change)
93822         * lib/getaddrinfo.c: fixed typo
93824 2006-06-29  Jim Meyering  <jim@meyering.net>
93826         * modules/strftime (Maintainer): Add my name, since with the
93827         FPRINTFTIME changes strftime.c has forked from glibc.
93829 2006-06-29  Eric Blake  <ebb9@byu.net>
93831         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Use AC_C_INLINE.
93833 2006-06-29  Eric Blake  <ebb9@byu.net>
93835         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): New file.
93837 2006-06-29  Eric Blake  <ebb9@byu.net>
93839         * lib/stat_.h: New file.
93841 2006-06-29  Eric Blake  <ebb9@byu.net>
93843         * lib/stat_.h (rpl_mkdir): Declare inline, to avoid warnings about
93844         unused static function.
93846 2006-06-29  Eric Blake  <ebb9@byu.net>
93848         * doc/functions.texi (Function Portability): Document missing lstat
93849         on mingw.
93851 2006-06-29  Eric Blake  <ebb9@byu.net>
93853         * MODULES.html.sh: Add sys_stat.
93854         * modules/sys_stat: New module.
93855         * modules/mkstemp (Depends-on): Add sys_stat.
93857 2006-06-29  Derek R. Price  <derek@ximbiot.com>
93859         * m4/strftime.m4: Don't call AC_FUNC_STRFTIME.
93861 2006-06-29  Derek R. Price  <derek@ximbiot.com>
93863         * m4/c-bs-a.m4: Removed.
93865 2006-06-29  Derek R. Price  <derek@ximbiot.com>
93867         * lib/strftime.c: Assume strftime() exists.
93869 2006-06-29  Derek Price  <derek@ximbiot.com>
93871         * modules/c-bs-a: Removed - \a is C89.
93872         * MODULES.html.sh: Remove c-bs-a.
93874 2006-06-29  Bruno Haible  <bruno@clisp.org>
93876         * modules/wcwidth (License): Change to LGPL.
93878 2006-06-28  Simon Josefsson  <jas@extundo.com>
93880         * tests/test-getaddrinfo.c: Test getnameinfo too.  Call WSAStartup
93881         on _WIN32.
93883         * modules/getaddrinfo (Depends-on): Add inet_ntop, needed by
93884         getnameinfo.
93886 2006-06-28  Simon Josefsson  <jas@extundo.com>
93888         * m4/getaddrinfo.m4: Look for getnameinfo prototypes too.
93890 2006-06-28  Simon Josefsson  <jas@extundo.com>
93892         * lib/getaddrinfo.c: Try to load ws2_32.dll on Windows, to find the
93893         functions there.  It will succeed on Windows XP, but on Windows
93894         2000 and (presumably) earlier, it will fail, and use the internal
93895         re-implementation.
93896         (use_win32_p): New function.
93897         (getaddrinfo): Use strtoul on servname, to support numeric ports.
93898         Support AI_NUMERICSERV to disable getservbyname.
93899         (getnameinfo): New function, only supports
93900         NI_NUMERICHOST|NI_NUMERICSERV for now.
93902         * lib/getaddrinfo.h: Test and check for AI_* flags separately, MinGW
93903         only have some of them.  Add AI_NUMERICSERV.  Add prototype for
93904         getnameinfo.
93906 2006-06-28  Eric Blake  <ebb9@byu.net>
93908         * modules/wcwidth: New file.
93909         * modules/mbchar (Depends-on): Add wcwidth.
93910         * modules/mbswidth (Depends-on): Add wcwidth.
93911         * MODULES.html.sh: Add wcwidth.
93913 2006-06-28  Eric Blake  <ebb9@byu.net>
93915         * m4/mbswidth.m4 (gl_MBSDWIDTH): Move wcwidth from here...
93916         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): ...to this new file.
93918 2006-06-28  Eric Blake  <ebb9@byu.net>
93920         * lib/xvasprintf.h: Fix comments.
93922 2006-06-28  Eric Blake  <ebb9@byu.net>
93924         * lib/mbchar.h (wcwidth): Include wcwidth.h.
93925         * lib/mbswidth.c (wcwidth): Move from here...
93926         * lib/wcwidth.h: ...to this new file.
93928 2006-06-28  Derek R. Price  <derek@ximbiot.com>
93930         * m4/savedir.m4: Remove AC_FUNC_CLOSEDIR_VOID requirement.
93932         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Don't require AC_C_CONST, since
93933         it's obsolete.
93934         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME): Likewise.
93936 2006-06-28  Derek R. Price  <derek@ximbiot.com>
93938         * lib/savedir.c (CLOSEDIR): Remove.  All uses changed to closedir.
93939         Autoconf 2.60 says this stuff was obsolete.
93941 2006-06-28  Bruno Haible  <bruno@clisp.org>
93943         * modules/wcwidth (Files): Add m4/wchar_t.m4.
93945 2006-06-28  Bruno Haible  <bruno@clisp.org>
93947         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Also require AC_C_INLINE and
93948         gt_TYPE_WCHAR_T.
93950 2006-06-28  Bruno Haible  <bruno@clisp.org>
93952         * lib/wcwidth.h: Declare nothing if !HAVE_WCHAR_T. Provide a fallback
93953         declaration for wcwidth.
93954         * lib/mbswidth.c: Restore the includes of <wchar.h> and <wctype.h>.
93956 2006-06-28  Bruno Haible  <bruno@clisp.org>
93958         * lib/mkdtemp.c [MINGW]: Include <io.h>.
93959         (mkdir): Define using _mkdir.
93961 2006-06-28  Bruno Haible  <bruno@clisp.org>
93963         * lib/getaddrinfo.h: Fix POSIX URL.
93964         * lib/getaddrinfo.c (WIN32_NATIVE): New macro. Use it instead of
93965         _WIN32.
93966         (use_win32_p): Make static.
93967         (getaddrinfo): Reject service name if it is empty or does not consist
93968         solely of decimal digits, or if its value is > 65535.
93969         (getnameinfo): Remove useless casts.
93971 2006-06-27  Simon Josefsson  <jas@extundo.com>
93973         * modules/sys_select: New file, suggested by Bruno Haible, Paul
93974         Eggert and Martin Lambers.
93976 2006-06-27  Simon Josefsson  <jas@extundo.com>
93978         * m4/sys_select_h.m4: New file, suggested by Bruno Haible, Paul
93979         Eggert and Martin Lambers.
93981 2006-06-27  Bruno Haible  <bruno@clisp.org>
93983         * m4/stdint.m4 (gl_STDINT_BITSIZEOF): For nonexistent types, set the
93984         result to 0, not to empty.
93985         Reported by Martin Neitzel <neitzel@sco.gaertner.de>.
93987 2006-06-27  Bruno Haible  <bruno@clisp.org>
93989         * lib/stdint_.h (intmax_t, uintmax_t): Undefine before typedef.
93991 2006-06-26  Simon Josefsson  <jas@extundo.com>
93993         * m4/inet_ntop.m4: Don't check for sys/types.h, we assume it is
93994         present.
93996 2006-06-26  Paul Eggert  <eggert@cs.ucla.edu>
93998         * lib/base64.c (B64): Use _ as the formal parameter, not x, to avoid
93999         bug in IBM C V6 for AIX.  Problem reported by Larry Jones in
94000         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00181.html>.
94002 2006-06-26  Mark D. Baushke  <mdb@gnu.org>
94004         * m4/stdint.m4 (gl_STDINT_H): Treat BSD/OS like OpenBSD.
94006 2006-06-26  Bruno Haible  <bruno@clisp.org>
94008         * modules/stdint (Makefile.am): Also substitute HAVE_WCHAR_H.
94010 2006-06-26  Bruno Haible  <bruno@clisp.org>
94012         * m4/stdint.m4 (gl_STDINT_H): Test also for <wchar.h>.
94014 2006-06-26  Bruno Haible  <bruno@clisp.org>
94016         * m4/stdint.m4 (gl_STDINT_H): Don't include <stdint.h> when using the
94017         SGI C compiler in pre-C99 mode.
94018         Suggested by Mark D. Baushke and Larry Jones.
94020 2006-06-26  Bruno Haible  <bruno@clisp.org>
94022         * lib/stdint_.h: Include <wchar.h> if necessary for WCHAR_MIN or
94023         WCHAR_MAX.
94024         Reported by Mark D. Baushke and Larry Jones.
94026 2006-06-26  Bruno Haible  <bruno@clisp.org>
94028         * lib/stdint_.h: Don't include <stdint.h> when using the SGI C compiler
94029         in pre-C99 mode.
94030         Suggested by Mark D. Baushke and Larry Jones.
94032 2006-06-23  Simon Josefsson  <jas@extundo.com>
94033             Bruno Haible  <bruno@clisp.org>
94035         * gnulib-tool (func_emit_lib_Makefile_am): Define MOSTLYCLEANDIRS.
94036         Emit mostlyclean-local rule.
94037         (func_emit_tests_Makefile_am): Likewise.
94038         * modules/sys_socket (Makefile.am): Use MOSTLYCLEANDIRS.
94040 2006-06-23  Mark D. Baushke  <mdb@gnu.org>
94042         * lib/stdint_.h: Treat BSD/OS like OpenBSD.
94044 2006-06-23  Bruno Haible  <bruno@clisp.org>
94046         * tests/test-stdint.c: Update to match ISO C 99 Technical
94047         Corrigendum 1.
94049 2006-06-23  Bruno Haible  <bruno@clisp.org>
94051         * m4/stdint.m4 (gl_STDINT_H): Treat IRIX like OpenBSD.
94053 2006-06-23  Bruno Haible  <bruno@clisp.org>
94055         * lib/stdint_.h: Treat IRIX like OpenBSD.
94057 2006-06-23  Bruno Haible  <bruno@clisp.org>
94059         * lib/stdint_.h (UINT8_C, UINT16_C, UINT32_C): Define according to
94060         ISO C 99 Technical Corrigendum 1.
94062 2006-06-22  Simon Josefsson  <jas@extundo.com>
94064         * m4/sockpfaf.m4: Include winsock2.h too, to make it work under
94065         MinGW.
94067 2006-06-22  Paul Eggert  <eggert@cs.ucla.edu>
94069         * lib/glob.c (collated_compare): Remove 'const' uses that weren't
94070         needed.  Some compiler complained about some of them.  Problem reported
94071         by Larry Jones in
94072         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00172.html>.
94074 2006-06-21  Simon Josefsson  <jas@extundo.com>
94076         * tests/test-getaddrinfo.c: New file.
94078         * modules/getaddrinfo-tests: New file.
94080         * MODULES.html.sh: Add inet_pton.
94082         * modules/inet_pton: New file.
94084 2006-06-21  Simon Josefsson  <jas@extundo.com>
94086         * m4/getaddrinfo.m4: Don't define WINVER.  Look for gethostbyname in
94087         -lws2_32 too.  Fixes getaddrinfo on Windows 2000, with the price
94088         of using the (limited) gnulib implementation on Windows XP.
94090         * m4/inet_pton.m4: New file.
94092 2006-06-21  Simon Josefsson  <jas@extundo.com>
94094         * lib/getaddrinfo.c (getaddrinfo): Set ai_family in the return
94095         variable.
94097         * lib/socket_.h: Don't define WINVER.
94099         * lib/inet_pton.h, inet_pton.c: New file, taken from glibc but
94100         slightly modified to work in gnulib.
94102 2006-06-21  Simon Josefsson  <jas@extundo.com>
94104         * doc/gnulib.texi (Windows sockets): Add.
94106 2006-06-21  Paul Eggert  <eggert@cs.ucla.edu>
94108         * lib/read-file.c (fread_file): Start with buffer allocation of
94109         0 bytes rather than 1 byte; this simplifies the code.
94110         Don't invoke feof; it's not needed.  Refactor to avoid duplicate
94111         code to free buffer and save/restore errno.
94112         (internal_read_file): Remove unused local.
94114 2006-06-20  Paul Eggert  <eggert@cs.ucla.edu>
94116         * lib/openat.c (openat): Use ?:, not if, to work around GCC bug 4210
94117         <http://gcc.gnu.org/bugzilla/show_bug.cgi?id=4210>.
94118         Problem reported by Denis Excoffier in
94119         <http://lists.gnu.org/archive/html/bug-tar/2006-06/msg00023.html>.
94121 2006-06-19  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
94123         * modules/sys_socket, modules/socklen: Include sys/types since
94124         FreeBSD 4.x's sys/socket.h needs it.
94126 2006-06-19  Simon Josefsson  <jas@extundo.com>
94128         * lib/inet_ntop.c: Always build inet_ntop4, since inet_ntop6 calls it.
94130 2006-06-19  Paul Eggert  <eggert@cs.ucla.edu>
94132         * lib/alloca_.h (alloca) [defined alloca]: Don't define or declare.
94134 2006-06-19  Bruno Haible  <bruno@clisp.org>
94136         * m4/stdint.m4 (gl_STDINT_H): Enclose the values of FULL_PATH_STDINT_H
94137         and FULL_PATH_INTTYPES_H in angle brackets.
94138         Reported by Mark D. Baushke <mdb@gnu.org>.
94140 2006-06-17  Eric Blake  <ebb9@byu.net>
94142         * m4/rmdir-errno.m4 (gl_FUNC_FMDIR_NOTEMPTY): Assume errno.h declares
94143         errno.
94145 2006-06-17  Bruno Haible  <bruno@clisp.org>
94147         * m4/stdint.m4 (gl_STDINT_H) [FreeBSD >= 5]: Don't include
94148         <sys/inttypes.h>.
94150 2006-06-17  Bruno Haible  <bruno@clisp.org>
94152         * m4/setenv.m4 (gl_PREREQ_SETENV, gl_PREREQ_UNSETENV): Remove test
94153         whether errno is declared. Assume <errno.h> declares errno.
94155 2006-06-17  Bruno Haible  <bruno@clisp.org>
94157         * lib/stdint_.h [FreeBSD >= 5]: Don't include <sys/inttypes.h>.
94159 2006-06-17  Bruno Haible  <bruno@clisp.org>
94161         * lib/stdint_.h (_UINT8_T, _UINT32_T, _UINT64_T): New macros. Fixes a
94162         problem on Solaris 2.5.1.
94164 2006-06-16  Eric Blake  <ebb9@byu.net>
94166         * lib/unsetenv.c [!defined errno]: Assume errno.h declares errno.
94167         * lib/unicodeio.c [!defined errno]: Likewise.
94168         * lib/strtol.c [!defined errno]: Likewise.
94169         * lib/strtod.c [!defined errno]: Likewise.
94171 2006-06-15  Eric Blake  <ebb9@byu.net>
94173         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Work in spite of -Werror.
94175 2006-06-15  Eric Blake  <ebb9@byu.net>
94177         * config/srclist.txt (ssize_t.m4): Lose sync.
94179 2006-06-15  Bruno Haible  <bruno@clisp.org>
94181         * modules/stdint (Files): Include m4/full-header-path.m4,
94182         m4/size_max.m4, m4/wchar_t.m4.
94183         (Makefile.am): Many more substitutions.
94184         * modules/stdint-tests: New file.
94185         * tests/test-stdint.c: New file.
94187 2006-06-15  Bruno Haible  <bruno@clisp.org>
94189         * m4/stdint.m4 (gl_STDINT_H): Rewritten to produce a complete stdint.h.
94190         (gl_HEADER_STDINT_H, gl_HEADER_INTTYPES_H, gl_STDINT_CHECK_TYPES,
94191         gl_STDINT_MISSING_BOUND, gl_STDINT_MISSING_BOUNDS,
94192         gl_STDINT_MISSING_BOUNDS2, gl_STDINT_BITSIZEOF, gl_CHECK_TYPES_SIGNED,
94193         gl_CHECK_TYPE_SAME): New macros.
94195 2006-06-15  Bruno Haible  <bruno@clisp.org>
94197         * m4/size_max.m4 (gl_SIZE_MAX): Make it work also when cross-compiling.
94199 2006-06-15  Bruno Haible  <bruno@clisp.org>
94201         * lib/stdint_.h: Rewritten to be fully auto-configured.
94202         Fixes bug on HP-UX/IA64.
94204 2006-06-11  Paul Eggert  <eggert@cs.ucla.edu>
94206         * lib/getdate.y (__attribute__): Don't define if already defined.
94207         Problem reported by Larry Jones.
94208         * lib/utimens.c (__attribute__): Likewise.
94210 2006-06-04  Paul Eggert  <eggert@cs.ucla.edu>
94212         * lib/regexec.c (group_nodes_into_DFAstates): Fix a buffer overrun
94213         reported by Andreas Schwab.
94215 2006-05-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
94216             Bruno Haible  <bruno@clisp.org>
94218         * m4/strndup.m4 (gl_FUNC_STRNDUP): Replace the AC_REPLACE_FUNCS with a
94219         check for the declaration of strnlen and a run test that exposes the
94220         AIX 5.1 strnlen bug.  In the failure case, #define strndup to
94221         rpl_strndup.
94223 2006-05-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
94224             Bruno Haible  <bruno@clisp.org>
94226         * lib/strndup.c (strndup) [!_LIBC]: Don't undefine macro definition.
94228 2006-05-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
94230         * m4/c-strtod.m4 (gl_C99_STRTOLD): Use a link test rather than a
94231         compile test, for Tru64 4.0D.
94233 2006-05-28  Karl Berry  <karl@gnu.org>
94235         * config/srclist.txt (printf-args.c): lose sync.
94237 2006-05-26  Martin Lambers  <marlam@marlam.de>
94239         * lib/getpass.c: Updates the test for the native W32 API, and adds
94240         missing includes, thus fixing compilation warnings.
94242 2006-05-25  Sergey Poznyakoff  <gray@gnu.org.ua>
94244         * lib/exclude.c (exclude_fnmatch): New function.
94245         (excluded_file_name): Call exclude_fnmatch.
94246         * lib/exclude.h (excluded_file_name): New prototype
94248 2006-05-25  Paul Eggert  <eggert@cs.ucla.edu>
94250         * lib/tempname.c (small_open, large_open): New macros.
94251         (__open, __open64) [!_LIBC]: Remove.
94252         (__gen_tempname): Use small_open and large_open instead of __open
94253         and __open64.  This fixes a portability bug on HP-UX 11.11i
94254         reported by Simon Wing-Tang in
94255         <http://lists.gnu.org/archive/html/bug-coreutils/2006-05/msg00114.html>.
94257 2006-05-24  Bruno Haible  <bruno@clisp.org>
94259         * lib/printf-args.c (printf_fetchargs): Turn NULL pointers for
94260         TYPE_STRING and TYPE_WIDE_STRING into a non-NULL replacement.
94261         Reported by Thorsten Maerz <torte@netztorte.de> via
94262         Aaron Stone <aaron@serendipity.cx>.
94264 2006-05-19  Paul Eggert  <eggert@cs.ucla.edu>
94266         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Rename cache variables to use
94267         gl_ rather than jm_.  Link, don't run, so that cross-compiles are
94268         allowed.  Check that resulting type is arithmetic.  Move AC_REQUIRE
94269         and AC_CHECK_HEADERS_ONCE outside of AC_CACHE_CHECK, since they're
94270         not really conditional on the cache.
94271         (gl_PREREQ_NANOSLEEP): Check for sys/select.h.
94273 2006-05-19  Paul Eggert  <eggert@cs.ucla.edu>
94275         * lib/nanosleep.c [HAVE_SYS_SELECT_H]: Include <sys/select.h>.
94276         Use the usual Autoconf way to include <time.h> and/or sys/time.h.
94277         (my_usleep): Don't mishandle maximum value.
94279 2006-05-19  Jim Meyering  <jim@meyering.net>
94281         * lib/getugroups.c: Correct an outdated comment.  From Bruno Haible.
94283 2006-05-17  Bruno Haible  <bruno@clisp.org>
94285         Cygwin portability.
94286         * lib/classpath.c (PATH_SEPARATOR) [CYGWIN]: Define as ':'.
94288 2006-05-17  Bruno Haible  <bruno@clisp.org>
94290         * lib/stdint_.h: Fix recognition of Cygwin.
94292 2006-05-15  Bruno Haible  <bruno@clisp.org>
94294         * build-aux/config.rpath: Improve support for Sun C 5.9 on Linux, based
94295         on libtool patch by Ralf Wildenhues.
94297 2006-05-14  Paul Eggert  <eggert@cs.ucla.edu>
94299         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Fix overly-picky
94300         test for C99 conformance; (bool) 0.5 is an integer constant
94301         expression, but (bool) -0.5 is not.  Problem reported by Fedor
94302         Sergeev in <http://forum.sun.com/jive/thread.jspa?threadID=96202>.
94304 2006-05-11  Simon Josefsson  <jas@extundo.com>
94306         * m4/xvasprintf.m4: Fix obvious typo.
94308 2006-05-11  Jim Meyering  <jim@meyering.net>
94310         * lib/sha1.c (sha1_buffer): Correct comment: s/MD5/SHA1/.  From
94311         James Lemley.
94313 2006-05-10  Simon Josefsson  <jas@extundo.com>
94315         * lib/md4.c: Typo fix, update copyright years.
94316         (K1, K2): Don't use L because it turn computations into 64-bit on
94317         64-bit platforms.
94319 2006-05-10  Paul Eggert  <eggert@cs.ucla.edu>
94321         * lib/crc.c (crc32_update): Remove unnecessary L suffix.
94322         * lib/md4.c (rol): Cast right-shift arg to uint32_t to prevent
94323         unwanted sign propagation, e.g., on hosts with 64-bit int.
94324         There still are some problems with reeelly weird theoretical hosts
94325         (e.g., 33-bit int) but it's not worth worrying about now.
94326         * lib/sha1.c (rol): Likewise.
94327         (K1, K2, K3, K4): Remove unnecessary L suffix.
94329 2006-05-10  Bruno Haible  <bruno@clisp.org>
94331         * lib/des.c: Cast to avoid warnings.
94333 2006-05-09  Bruno Haible  <bruno@clisp.org>
94335         * modules/xvasprintf (Files): Add m4/xvasprintf.m4.
94336         (Depends-on): Depend also on xsize, stdarg.
94337         (configure.ac): Add gl_XVASPRINTF.
94339 2006-05-09  Bruno Haible  <bruno@clisp.org>
94341         * m4/xvasprintf.m4: New file.
94343 2006-05-09  Bruno Haible  <bruno@clisp.org>
94345         * lib/xvasprintf.c: Include limits.h, string.h, xsize.h.
94346         (EOVERFLOW): Define fallback value.
94347         (xstrcat): New function.
94348         (xvasprintf): Recognize the special case of a string concatenation.
94350 2006-05-08  Eric Blake  <ebb9@byu.net>
94352         * gnulib-tool (func_version): Base copyright year on CVS date.
94353         (func_emit_copyright_notice): New function.
94354         (func_emit_lib_Makefile_am): Use it.
94355         (func_emit_tests_Makefile_am): Likewise.
94356         (func_import): Likewise.
94358 2006-05-08  Bruno Haible  <bruno@clisp.org>
94360         * modules/stdarg: New file.
94361         * MODULES.html.sh (func_all_modules): Add section for <stdarg.h>.
94363 2006-05-08  Bruno Haible  <bruno@clisp.org>
94365         * m4/stdarg.m4: New file, from GNU gettext.
94367 2006-05-08  Bruno Haible  <bruno@clisp.org>
94369         * config/srclist.txt (build-aux/config.rpath): different from latest
94370         release.
94372 2006-05-08  Bruno Haible  <bruno@clisp.org>
94374         * build-aux/config.rpath: Add support for Sun C 5.9 on Linux.
94376 2006-05-05  Jim Meyering  <jim@meyering.net>
94378         * m4/warning.m4: New file, derived from bison's file by the same name.
94380 2006-05-03  Bruno Haible  <bruno@clisp.org>
94382         * lib/stdint_.h: Shorter URL.
94383         * lib/inttypes.h: Likewise.
94385 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
94387         * modules/inttypes (Maintainer): Change from Derek Price to 'all'.
94389 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
94391         * lib/verify.h: Document the internals better.  Most of this change
94392         was written by Bruno Haible.
94394 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
94396         * doc/verify.texi: New file, partly based on a proposal by
94397         Bruno Haible.
94399 2006-05-02  Bruno Haible  <bruno@clisp.org>
94401         * m4/full-header-path.m4 (gl_FULL_HEADER_PATH): Move the include_next
94402         test from here...
94403         * m4/_inttypes_h.m4 (gl_INTTYPES_H): ... to here.
94405 2006-04-29  Bruno Haible  <bruno@clisp.org>
94407         * lib/gcd.c: Use WORD_T and GCD instead of unsigned long and gcd.
94408         Suggested by Oskar Liljeblad <oskar@osk.mine.nu>.
94410 2006-04-29  Bruno Haible  <bruno@clisp.org>
94412         * gnulib-tool: Make --update option actually work.
94414 2006-04-29  Bruno Haible  <bruno@clisp.org>
94416         * doc/gcd.texi: New file.
94417         * doc/gnulib.texi: Include it.
94419 2006-04-25  Paul Eggert  <eggert@cs.ucla.edu>
94421         * lib/getdate.y (get_date): When adding relative date, start with the
94422         initial time, not with the result of the first mktime call.
94424 2006-04-25  Bruno Haible  <bruno@clisp.org>
94426         * gnulib-tool (func_import): Output the include directives in three
94427         blocks, sorted separately.
94428         Reported by Ben Pfaff <blp@cs.stanford.edu>.
94430 2006-04-24  Paul Eggert  <eggert@cs.ucla.edu>
94432         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Use prototype
94433         to define main with arguments, for C++.  Reported by Eric Blake.
94434         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC):
94435         Prefer 'int main ()' to 'int main (void)', for C++.
94436         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
94437         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Specify a return type
94438         for 'main', for C99 and C++.
94440 2006-04-24  Paul Eggert  <eggert@cs.ucla.edu>
94442         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Use return, not exit.
94443         Don't assume that exit status -1 is valid.
94444         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
94445         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
94446         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Likewise.
94447         * m4/readdir.m4 (GL_FUNC_READDIR): Include <stdlib.h>.
94448         * m4/rename.m4 (vb_FUNC_RENAME): Likewise.
94449         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Use AC_RUN_IFELSE,
94450         not AC_TRY_RUN.  Use return, not exit.  Don't assume that
94451         functions can be used without declaring them, or that you can
94452         exit with status -1.
94453         * m4/utimes-null.m4 (gl_FUNC_UTIMES_NULL): Likewise.
94455 2006-04-24  Karl Berry  <karl@gnu.org>
94457         * config/srclist.txt (longdouble.m4): sync lost.
94459 2006-04-24  Eric Blake  <ebb9@byu.net>
94461         * m4/strerror_r.m4 (AC_FUNC_STRERROR_R): Avoid unused variable warning.
94463 2006-04-24  Bruno Haible  <bruno@clisp.org>
94465         * m4/poll.m4 (gl_FUNC_POLL): When cross-compiling, reject also the
94466         poll() implementation in AIX.
94467         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
94469 2006-04-24  Bruno Haible  <bruno@clisp.org>
94471         * m4/poll.m4 (gl_FUNC_POLL): Rearrange code, so that POLL_H gets
94472         assigned exactly once.
94474 2006-04-23  Claudio Fontana  <claudio@gnu.org>
94475             Bruno Haible  <bruno@clisp.org>
94477         * modules/gettext (Makefile.am): Add a -I flag for <libintl.h>.
94478         * gnulib-tool (func_emit_lib_Makefile_am): Emit empty default value
94479         for AM_CPPFLAGS.
94481 2006-04-23  Bruno Haible  <bruno@clisp.org>
94483         * modules/copy-file: Depend on unistd.
94484         * modules/execute: Likewise.
94485         * modules/fatal-signal: Likewise.
94486         * modules/findprog: Likewise.
94487         * modules/mkdtemp : Likewise.
94488         * modules/pipe: Likewise.
94489         * modules/wait-process: Likewise.
94491 2006-04-23  Bruno Haible  <bruno@clisp.org>
94493         * lib/fwriteerror.c (fwriteerror): Call fclose also when an error
94494         condition was already detected.
94495         Reported by Ben Pfaff <blp@cs.stanford.edu>.
94497 2006-04-23  Bruno Haible  <bruno@clisp.org>
94499         * lib/copy-file.c: Include <unistd.h> unconditionally.
94500         * lib/execute.c: Likewise.
94501         * lib/fatal-signal.c: Likewise.
94502         * lib/findprog.c: Likewise.
94503         * lib/mkdtemp.c: Likewise.
94504         * lib/pipe.h: Likewise.
94505         * lib/pipe.c: Likewise.
94506         * lib/wait-process.h: Likewise.
94508 2006-04-23  Bruno Haible  <bruno@clisp.org>
94510         * gnulib-tool (func_usage): Fix --import description. Document
94511         --update.
94512         (func_import): Create temporary file in a temporary directory, if
94513         --dry-run is specified. Silence errors from 'grep' when there are no
94514         m4 files in $m4dir.
94515         (func_create_testdir): Silence errors from 'grep' when there are no
94516         m4 files in $m4dir.
94517         Reported by Karl Berry <karl@freefriends.org>.
94519 2006-04-20  Bruno Haible  <bruno@clisp.org>
94521         * m4/argp.m4 (gl_ARGP): Don't call AC_CHECK_DECLS_ONCE with more than
94522         one argument, so that the code will be portable to Autoconf 2.60.
94523         * m4/getlogin_r.m4 (gl_PREREQ_GETLOGIN_R): Likewise.
94524         * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
94525         * m4/unlocked-io.m4 (gl_FUNC_GLIBC_UNLOCKED_IO): Likewise.
94527 2006-04-19  Derek Price  <derek@ximbiot.com>
94528             Eric Blake  <ebb9@byu.net>
94530         * m4/full-header-path.m4 (gl_FULL_HEADER_PATH): Use </full/path.h>
94531         rather than "/full/path.h".  Update comment to match.  Shorten &
94532         generalize m4_translit call via AS_TR_CPP.
94534 2006-04-19  Derek Price  <derek@ximbiot.com>
94535             Eric Blake  <ebb9@byu.net>
94537         * lib/inttypes.h: Correct grammar in comment.
94539 2006-04-18  Derek Price  <derek@ximbiot.com>
94540             Paul Eggert  <eggert@cs.ucla.edu>
94542         * modules/inttypes: New file.
94543         * modules/strtoimax, modules/strtoumax: Depend on inttypes.
94545 2006-04-18  Derek Price  <derek@ximbiot.com>
94546             Paul Eggert  <eggert@cs.ucla.edu>
94548         * m4/_inttypes_h.m4, m4/full-header-path.m4, m4/include_next.m4:
94549         New files.
94551 2006-04-18  Derek Price  <derek@ximbiot.com>
94552             Paul Eggert  <eggert@cs.ucla.edu>
94554         * lib/inttypes.h: New file.
94555         * lib/strtoimax.c: Assume <inttypes.h>.
94557 2006-04-15  Paul Eggert  <eggert@cs.ucla.edu>
94559         * lib/utimens.c (futimens): glibc futimesat messes up if /proc
94560         isn't mounted.  Problem reported by Kir Kolyshkin.
94562 2006-04-13  Paul Eggert  <eggert@cs.ucla.edu>
94564         * lib/regcomp.c (init_dfa): Don't use wchar_t or wctype_t if
94565         RE_ENABLE_I18N is not defined.  Problem reported by Mark D. Baushke via
94566         Derek R. Price.
94567         * lib/regex.h (RE_DUP_MAX): Update comment to match current
94568         implementation.
94570 2006-04-12  Eric Blake  <ebb9@byu.net>
94572         * modules/time_r (Makefile.am): Remove lib_SOURCES line, as this
94573         is now done automatically by the corresponding Autoconf macro.
94575 2006-04-11  Paul Eggert  <eggert@cs.ucla.edu>
94577         * m4/time_r.m4 (gl_TIME_R): Add AC_LIBSOURCES for time_r.c and
94578         time_r.h.
94580 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
94582         Merge regex changes from libc, removing some of our
94583         POSIX-conformance changes that were rejected and redoing them in a
94584         less-intrusive way.
94586         * lib/regcomp.c (re_compile_internal, init_dfa):
94587         Length arg is now size_t, not Idx.  All uses changed.
94588         (peek_token): Forward decl now says internal_function.
94589         (__re_error_msgid, __re_error_msgid_idx):
94590         Now static rather than extern with attribute_hidden.
94591         (re_compile_pattern) [!defined _LIBC]: Use K&R-style defn.
94592         For some reason libc prefers K&R style defns for external functions.
94593         (regerror) [!defined _LIBC]: Likewise.
94594         (re_set_syntax, re_compile_fastmap, regcomp, regfree, re_comp):
94595         (seek_collating_symbol_entry, lookup_collation_sequence_value):
94596         (build_range_exp, build_collating_symbol):
94597         Use K&R-style defn.
94598         (re_compile_fastmap): Use '\0' to memset, not 0.
94599         (utf8_sb_map): Make the calculations more obvious.
94600         (init_dfa, parse_bracket_exp, build_charclass_op):
94601         Call calloc and cast result, as glibc does.
94602         (init_word_char, fetch_token, peek_token, peek_token_bracket):
94603         (build_range_exp, build_collating_symbol):
94604         Now internal functions.
94606         * lib/regex.c [!defined _LIBC]: Allow compiling with C++ compilers.
94608         * lib/regex.h (__USE_GNU_REGEX): New macro.  Don't depend on
94609         _REGEX_SOURCE any more; depend on _GNU_SOURCE instead.
94610         Don't depend on VMS; depend on __VMS instead, for POSIX
94611         namespace cleanness.
94612         (regoff_t): Define to ssize_t, not long int.
94614         Remove the REG_ macros named below.  Instead, make the old names
94615         (e.g., RE_BACKSLASH_ESCAPE_IN_LISTS) visible only if
94616         __USE_GNU_REGEX.
94617         (REG_BACKSLASH_ESCAPE_IN_LISTS):
94618         (REG_BK_PLUS_QM, REG_CHAR_CLASSES, REG_CONTEXT_INDEP_ANCHORS):
94619         (REG_CONTEXT_INDEP_OPS, REG_CONTEXT_INVALID_OPS):
94620         (REG_DOT_NEWLINE, REG_DOT_NOT_NULL, REG_HAT_LISTS_NOT_NEWLINE):
94621         (REG_INTERVALS, REG_LIMITED_OPS, REG_NEWLINE_ALT):
94622         (REG_NO_BK_BRACES, REG_NO_BK_PARENS, REG_NO_BK_REFS):
94623         (REG_NO_BK_VBAR, REG_NO_EMPTY_RANGES):
94624         (REG_UNMATCHED_RIGHT_PAREN_ORD, REG_NO_POSIX_BACKTRACKING):
94625         (REG_NO_GNU_OPS, REG_DEBUG, REG_INVALID_INTERVAL_ORD):
94626         (REG_IGNORE_CASE, REG_CARET_ANCHORS_HERE):
94627         (REG_CONTEXT_INVALID_DUP, REG_NO_SUB, REG_SYNTAX_EMACS):
94628         (REG_SYNTAX_AWK, REG_SYNTAX_GNU_AWK, REG_SYNTAX_POSIX_AWK):
94629         (REG_SYNTAX_GREP, REG_SYNTAX_EGREP, REG_SYNTAX_POSIX_EGREP):
94630         (REG_SYNTAX_ED, REG_SYNTAX_SED, _REG_SYNTAX_POSIX_COMMON):
94631         (REG_SYNTAX_POSIX_BASIC, REG_SYNTAX_POSIX_MINIMAL_BASIC):
94632         (REG_SYNTAX_POSIX_EXTENDED, REG_SYNTAX_POSIX_MINIMAL_EXTENDED):
94633         (REG_DUP_MAX, REG_UNALLOCATED, REG_REALLOCATE, REG_FIXED):
94634         (REG_NREGS):
94635         Remove.  All uses replaced by the old RE_* names.
94636         (RE_BACKSLASH_ESCAPE_IN_LISTS):
94637         (RE_BK_PLUS_QM, RE_CHAR_CLASSES, RE_CONTEXT_INDEP_ANCHORS):
94638         (RE_CONTEXT_INDEP_OPS, RE_CONTEXT_INVALID_OPS):
94639         (RE_DOT_NEWLINE, RE_DOT_NOT_NULL, RE_HAT_LISTS_NOT_NEWLINE):
94640         (RE_INTERVALS, RE_LIMITED_OPS, RE_NEWLINE_ALT):
94641         (RE_NO_BK_BRACES, RE_NO_BK_PARENS, RE_NO_BK_REFS):
94642         (RE_NO_BK_VBAR, RE_NO_EMPTY_RANGES):
94643         (RE_UNMATCHED_RIGHT_PAREN_ORD, RE_NO_POSIX_BACKTRACKING):
94644         (RE_NO_GNU_OPS, RE_DEBUG, RE_INVALID_INTERVAL_ORD):
94645         (RE_IGNORE_CASE, RE_CARET_ANCHORS_HERE):
94646         (RE_CONTEXT_INVALID_DUP, RE_NO_SUB):
94647         Don't bother having these macros be independent of each others'
94648         values, since they no longer exist in the POSIX name space.
94650         Rename the following member names back to their old names,
94651         unless !__USE_GNU_REGEX.  All uses changed back.
94652         (buffer): Renamed from re_buffer.
94653         (allocated): Renamed from re_allocated.
94654         (used): Renamed from re_used.
94655         (syntax): Renamed from re_syntax.
94656         (fastmap): Renamed from re_fastmap.
94657         (translate): Renamed from re_translate.
94658         (can_be_null): Renamed from re_can_be_null.
94659         (regs_allocated): Renamed from re_regs_allocated.
94660         (fastmap_accurate): Renamed from re_fastmap_accurate.
94661         (no_sub): Renamed from re_no_sub.
94662         (not_bol): Renamed from re_not_bol.
94663         (not_eol): Renamed from re_not_eol.
94664         (newline_anchor): Renamed from re_newline_anchor.
94665         (num_regs): Renamed from rm_num_regs.
94666         (start): Renamed from rm_start.
94667         (end): Renamed from rm_end.
94669         (free_state): Move up a bit.
94671         * lib/regex_internal.h (inline) [__GNUC__ < 3 && defined _LIBC]:
94672         #define to be empty.
94673         (ASCII_CHARS): New macro, replacing all uses of 0x80 and/or SBC_MAX / 2
94674         when that is what is intended.
94675         (SBC_MAX): Define to UCHAR_MAX + 1, not 256.
94676         (__re_error_msgid, __re_error_msgid_idx): Remove decls; not needed.
94677         (MAX): New macro.
94678         (re_xmalloc, re_calloc, re_xrealloc, re_x2realloc): Remove.
94679         All uses changed back to re_malloc, etc.  It's now the caller's
94680         responsibility to check for overflow; all callers changed.
94681         (re_alloc_oversized, re_x2alloc_oversized, re_xnmalloc, re_xnrealloc):
94682         (re_x2nrealloc): Remove.
94683         (free_state): Remove decl.
94685         * lib/regexc.c (regexec, re_match, re_search, re_match_2, re_search_2):
94686         (re_set_registers, re_exec):
94687         Use K&R-style defn.
94689         2006-01-31  Roland McGrath  <roland@redhat.com>
94691         * lib/regcomp.c (calc_eclosure_iter): Remove dead variables.
94692         Reported by Mike Frysinger <vapier@gentoo.org>.
94694         2006-01-15  Andreas Jaeger  <aj@suse.de>
94696         [BZ #1950]
94697         * lib/regex_internal.c (re_string_reconstruct): Adjust for
94698         build_wcs_upper_buffer change.
94699         (build_wcs_upper_buffer): Change return type.
94701         2005-12-10  Ulrich Drepper  <drepper@redhat.com>
94703         * lib/regex_internal.h: Include <stdint.h> if available.
94705         2005-12-06  Paolo Bonzini  <bonzini@gnu.org>
94707         * lib/regex_internal.h (SIZE_MAX): Provide a default definition.
94709         2005-10-14  Ulrich Drepper  <drepper@redhat.com>
94711         * lib/regcomp.c: Adjust for changed secondary hash function.
94713         2005-09-30  Ulrich Drepper  <drepper@redhat.com>
94715         * lib/regex.h: Pretty printing.
94716         Clean up namespace a bit.
94718         2005-09-30  Jakub Jelinek  <jakub@redhat.com>
94720         * lib/regexec.c (update_cur_sifted_state, check_arrival,
94721         check_arrival_add_next_nodes): Avoid using uninitialized variable.
94723         2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
94724                     Ulrich Drepper  <drepper@redhat.com>
94726         [BZ #1302]
94727         * lib/regex_internal.h (bitset_t): Renamed from bitset.  All uses
94728         changed.
94729         (bitset_word_t): Renamed from bitset_word.  All uses changed.
94731         2005-09-22  Ulrich Drepper  <drepper@redhat.com>
94733         [BZ #281]
94734         * lib/regex.h: Define RE_TRANSLATE_TYPE as unsigned char *.
94735         * lib/regcomp.c: Remove unnecessary uses of
94736         unsigned RE_TRANSLATE_TYPE.
94737         * lib/regex_internal.h: Likewise.
94738         * lib/regex_internal.c: Likewise.
94739         * lib/regexec.c: Likewise.
94740         Based on a patch by Stepan Kasal <kasal@ucw.cz>.
94742         2005-09-07  Ulrich Drepper  <drepper@redhat.com>
94744         * lib/regexec.c (find_recover_state): Remove unnecessary
94745         initialization.
94746         (transit_state_bkref): Make DFA a const pointer.
94747         (get_subexp): Likewise.
94748         (check_arrival): Likewise.
94749         (update_cur_sifted_state): Likewise.
94750         (re_search_internal): Likewise.
94751         (prune_impossible_nodes): Likewise.
94752         (acquire_init_state_context): Likewise.
94753         (proceed_next_node): Likewise.
94754         (set_regs): Likewise.
94755         (free_fail_stack_return): Likewise.
94756         (check_arrival_expand_ecl): Mark DFA parameter as const.
94757         (check_arrival_expand_ecl_sub): Likewise.
94758         (check_subexp_limits): Likewise.
94759         (sub_epsilon_src_nodes):  Likewise.
94760         (add_epsilon_src_nodes):  Likewise.
94761         (merge_state_array): Likewise.
94762         (update_regs): Likewise.
94763         (build_trtable): Likewise.
94764         (sift_states_backward): Mark MCTX parameter as const.
94765         (build_sifted_states): Likewise.
94766         (update_cur_sifted_state): Likewise.
94767         (sift_states_mkref): Likewise.
94768         (check_arrival_expand_ecl): Mark eclosure as const.
94769         (check_dst_limits_calc_pos_1): Likewise.
94770         * lib/regex_internal.h (re_match_context_t): Make dfa a const
94771         pointer.
94773         2005-09-06  Ulrich Drepper  <drepper@redhat.com>
94775         * lib/regexec.c (merge_state_with_log): Define dfa as const pointer.
94776         (transit_state_sb): Likewise.
94777         (transit_state_mb): Likewise.
94778         (sift_states_iter_mb): Likewise.
94779         (check_arrival_add_next_nodes): Likewise.
94780         (check_node_accept_bytes): Change first parameter to pointer-to-const.
94781         [_LIBC] (re_search_2_stub): Use mempcpy.
94783         * lib/regex_internal.c (re_string_reconstruct): Avoid calling
94784         mbrtowc for very simple UTF-8 case.
94786         * lib/regex_internal.c (re_acquire_state): Make DFA pointer arg
94787         a pointer-to-const.
94788         (re_acquire_state_context): Likewise.
94789         * lib/regex_internal.h: Adjust prototypes.
94791         * lib/regex.c: Prevent using C++ compilers.
94793         * lib/regex_internal.c (re_acquire_state): Minor code rearrangement.
94794         (re_acquire_state_context): Likewise.
94796 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
94798         * modules/regex (Depends-on): Add ssize_t.
94800 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
94802         * m4/regex.m4 (gl_REGEX): Check for new glibc interface to
94803         translation table.
94805 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
94807         * doc/gnulib-tool.texi (Modified imports): pathname -> file name.
94809 2006-03-29  Mark D. Baushke  <mdb@gnu.org>
94810             Bruno Haible  <bruno@clisp.org>
94812         * lib/stdint_.h: On OpenBSD, don't redefine types already included in
94813         <sys/types.h> and <inttypes.h>.
94815 2006-03-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
94817         * m4/argz.m4 (gl_FUNC_ARGZ): If we define `error_t', also define
94818         `__error_t_defined', so argp.h will not typedef the former.
94820 2006-03-25  Paul Eggert  <eggert@cs.ucla.edu>
94822         * m4/regex.m4 (gl_REGEX): Don't insist on REG_SYNTAX_POSIX_EGREP,
94823         REG_SYNTAX_EMACS, and REG_IGNORE_CASE.  Settle for the traditional
94824         glibc names.  Even if glibc is changed to conform to POSIX, the
94825         traditional names will be available anyway, since regex depends on
94826         the extensions module.  Also, fix a longstanding typo in the
94827         implementation of Spencer ERE test #75 from grep 2.3.  Problems
94828         reported by Emanuele Giaquinta.  Also, change sense of cached
94829         variable, so that the message makes sense.
94831 2006-03-24  Simon Josefsson  <jas@extundo.com>
94833         * lib/base64.c: Fix problems reported by Eric Blake <ebb9@byu.net>,
94834         including some doc fixes.
94835         (base64_encode_alloc): Fix +1 bug on allocation failures.
94837 2006-03-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
94839         * lib/base64.c (base64_encode): Do not read past end of array with
94840         unsanitized input on systems with CHAR_BIT > 8.
94842 2006-03-24  Eric Blake  <ebb9@byu.net>
94844         * lib/time_r.c (copy_string_result): Remove, as it is no longer used.
94846 2006-03-22  Karl Berry  <karl@gnu.org>
94848         * config/srclist.txt (*setenv.[ch]): get from coreutils.
94849         * config/srclistvars.sh (COREUTILS): new var.
94851 2006-03-17  Jim Meyering  <jim@meyering.net>
94853         * m4/regex.m4 (gl_REGEX): Fix typo in last change:
94854         s/_REGEX_WIDE_OFFSETS/_REGEX_LARGE_OFFSETS/.
94856 2006-03-16  Paul Eggert  <eggert@cs.ucla.edu>
94858         * m4/regex.m4 (gl_REGEX): Don't check for off_t, since the code
94859         no longer needs it.  Instead, check that regoff_t is as least
94860         as wide as ptrdiff_t.
94862         Don't define _REGEX_WIDE_OFFSETS unless using the included regex,
94863         so that our regex.h stays compatible with the installed regex.
94864         This is helpful for installers who configure --without-included-regex.
94865         Problem reported by Emanuele Giaquinta.
94867 2006-03-16  Paul Eggert  <eggert@cs.ucla.edu>
94869         * lib/regex.h (regoff_t) [defined _REGEX_LARGE_OFFSETS]:
94870         Typedef to long int, not to off_, as POSIX will likely change
94871         in that direction.
94873 2006-03-15  Eric Blake  <ebb9@byu.net>
94875         * m4/dirfd.m4 (gl_FUNC_DIRFD): Use AC_REQUIRE for AC_HEADER_DIRENT.
94877 2006-03-13  Sergey Poznyakoff  <gray@gnu.org.ua>
94879         * lib/argp-help.c (validate_uparams): Fix typo
94880         * lib/argp-parse.c (argp_default_options): Consistently begin help
94881         messages with a lowercase letter.
94883 2006-03-11  Paul Eggert  <eggert@cs.ucla.edu>
94885         * lib/time_r.h (asctime_r, ctime_r): Remove.  These functions can
94886         overrun buffers and shouldn't be used (much as gets shouldn't be
94887         used).
94888         * lib/time_r.c (asctime_r, ctime_r): Likewise.
94890 2006-03-08  Simon Josefsson  <jas@extundo.com>
94892         * m4/gc-random.m4: Permit 'no' as variable values and fix warnings,
94893         suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
94895 2006-03-08  Simon Josefsson  <jas@extundo.com>
94897         * m4/gc-random.m4: Call AC_CANONICAL_HOST and use $host_os instead of
94898         $target, suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
94900 2006-03-08  Simon Josefsson  <jas@extundo.com>
94902         * lib/gc-gnulib.c (randomize): Don't open files called 'no', they
94903         signal that configure disabled the device.
94905 2006-03-08  Simon Josefsson  <jas@extundo.com>
94907         * build-aux/maint.mk: Fix refresh-po, to handle no translated
94908         languages.
94910 2006-03-07  Simon Josefsson  <jas@extundo.com>
94912         * modules/getopt (Depends-on): Add unistd.
94914         * modules/unistd: New file.
94916 2006-03-07  Simon Josefsson  <jas@extundo.com>
94918         * modules/gc-random: New file.
94920 2006-03-07  Simon Josefsson  <jas@extundo.com>
94922         * m4/unistd_h.m4: New file.
94924 2006-03-07  Simon Josefsson  <jas@extundo.com>
94926         * m4/readline.m4 (gl_FUNC_READLINE): Rewrite the cached part of the
94927         test to be side-effect free by storing the result in the cache
94928         variable gl_cv_lib_readline, and moving the assignment of
94929         LIBREADLINE and LTLIBREADLINE outside the COMMANDS-TO-SET-IT.
94930         From Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
94932 2006-03-07  Simon Josefsson  <jas@extundo.com>
94934         * m4/gc-random.m4: New file, mostly from gc.m4.  Warn instead of
94935         error on missing devices (the functions will return an error).
94937         * m4/gc.m4: Move random stuff to gc-random.m4
94939 2006-03-07  Simon Josefsson  <jas@extundo.com>
94941         * lib/unistd_.h: New file.
94943 2006-03-07  Simon Josefsson  <jas@extundo.com>
94945         * lib/gc-libgcrypt.c, gc-gnulib.c: Use GC_USE_RANDOM.
94947 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
94949         * m4/unistd_h.m4 (gl_HEADER_UNISTD): Rename, to match modules file.
94950         Problem reported by Juan Manuel Guerrero.
94952 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
94954         * lib/c-stack.c: Include unistd.h unconditionally, since we now assume
94955         the unistd module.
94956         * lib/getlogin_r.c: Likewise.
94957         * lib/getlogin_r.h: Likewise.
94958         * lib/glob.c: Likewise.
94959         * lib/pagealign_alloc.c: Likewise.
94960         * lib/unistd_.h: Remove; no longer needed.
94962 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
94964         * MODULES.html.sh (Support for systems lacking POSIX:2001):
94965         Add unistd.
94966         * modules/c-stack (Depends-on): Add unistd.
94967         * modules/getlogin_r: Likewise.
94968         * modules/glob: Likewise.
94969         * modules/pagealign_alloc: Likewise.
94970         * modules/unistd (Files): Remove lib/unistd_.h.
94971         (EXTRA_DIST): Remove.
94972         (unistd.h): Create using 'echo' rather than 'cp', so that we don't
94973         need unistd_.h.
94974         (MOSTLYCLEANFILES): Remove unistd.h-t.
94976 2006-03-03  Simon Josefsson  <jas@extundo.com>
94978         * build-aux/maint.mk: Add several syntax checks from CoreUtils.
94980 2006-03-03  Simon Josefsson  <jas@extundo.com>
94982         * build-aux/maint.mk: Add refresh-po rule, based on ideas from
94983         libidn and bison.
94985 2006-03-03  Simon Josefsson  <jas@extundo.com>
94987         * build-aux/maint.mk: Add indent target.
94989 2006-03-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de> (tiny change)
94991         * m4/poll.m4 (gl_FUNC_POLL): If we deem poll(2) unacceptable, use
94992         our replacement poll.h in any case, to avoid a differing
94993         declaration from a system header.  Seen on AIX.
94995 2006-03-01  Simon Josefsson  <jas@extundo.com>
94997         * lib/readline.c: Fix typo, tiny patch from Stepan Kasal
94998         <kasal@ucw.cz>.
95000 2006-03-01  Paul Eggert  <eggert@cs.ucla.edu>
95002         * modules/gettime (Depends-on): Add extensions module.
95003         * modules/nanosleep (Depends-on): Likewise.
95004         * modules/settime (Depends-on): Likewise.
95006 2006-03-01  Paul Eggert  <eggert@cs.ucla.edu>
95008         * m4/clock_time.m4 (gl_CLOCK_TIME): Require gl_USE_SYSTEM_EXTENSIONS,
95009         not merely AC_GNU_SOURCE, for the benefit of Solaris 10 when compiled
95010         pedantically.
95011         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
95012         * m4/timespec.m4 (gl_TIMESPEC): Likewise.
95014         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Use "=" with "test",
95015         not "==".  Reported by Ralf Wildenhues.
95017 2006-03-01  Karl Berry  <karl@gnu.org>
95019         * doc/Copyright/request-*: new files, synced from gnuorg.
95021 2006-03-01  Karl Berry  <karl@gnu.org>
95023         * config/srclist.txt (Copyright/*): new entries.
95025 2006-02-28  Simon Josefsson  <jas@extundo.com>
95027         * lib/getopt.c: Protect #include of unistd.h, for MSVS.
95029 2006-02-27  Simon Josefsson  <jas@extundo.com>
95031         * lib/base64.h: Indent #define's.  From Jim Meyering
95032         <jim@meyering.net>.
95034 2006-02-27  Jim Meyering  <jim@meyering.net>
95036         Revert the change of 2006-02-24, so these files can continue
95037         to be sync'd from gettext.
95038         * lib/mkdtemp.c, setenv.c, unsetenv.c: *Un*-normalize inclusion
95039         of `config.h'.
95041 2006-02-26  Paul Eggert  <eggert@cs.ucla.edu>
95043         * modules/intprops: New file.
95044         * MODULES.html.sh (Numeric conversion functions <stdlib.h>):
95045         Add intprops.
95046         * modules/getloadavg (Files): Remove lib/intprops.h.
95047         (Depends-on): Add intprops.
95048         * modules/human: Likewise.
95049         * modules/inttostr: Likewise.
95050         * modules/openat: Likewise.
95051         * modules/sig2str: Likewise.
95052         * modules/userspec: Likewise.
95053         * modules/utimecmp: Likewise.
95054         * modules/xnanosleep: Likewise.
95055         * modules/xstrtol: Likewise.
95057 2006-02-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny changes)
95059         * modules/xstrtod: Omit xstrtod.h, xstrtod.c; they're in LIB_SOURCES.
95060         * modules/lock-tests (TESTS): Use $(EXEEXT).
95061         * modules/tls-tests: Likewise.
95062         * modules/argp-tests: Likewise.
95063         (check_PROGRAMS): New var, replacing...
95064         (noinst_PROGRAMS, test_argp_SOURCES): Remove.
95066 2006-02-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
95068         * lib/mkdtemp.c, lib/setenv.c, lib/unsetenv.c: Normalize inclusion of
95069         `config.h'.
95071 2006-02-24  Paul Eggert  <eggert@cs.ucla.edu>
95073         * lib/glob.c: Say "invalid" rather than "illegal" in comments.
95075 2006-02-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
95077         Sync from coreutils.
95078         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Require gl_FUNC_LCHMOD and
95079         gl_CHDIR_SAFER.
95081 2006-02-22  Jim Meyering  <jim@meyering.net>
95083         Sync from coreutils.
95084         * m4/chdir-safer.m4: New file.
95086 2006-02-20  Paul Eggert  <eggert@cs.ucla.edu>
95088         * lib/getcwd.c (AT_FDCWD): Work around a bug in Solaris 9 and 10, where
95089         AT_FDCWD exceeds INT_MAX.
95090         * lib/openat.h (AT_FDCWD): Likewise.
95092 2006-02-17  Eric Blake  <address@hidden>
95094         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Fix caching error.
95096 2006-02-16  Simon Josefsson  <jas@extundo.com>
95098         * modules/getaddrinfo (Depends-on): Add sys_socket.
95100 2006-02-15  Simon Josefsson  <jas@extundo.com>
95102         * build-aux/maint.mk: Add dsyntax-check rule.
95104 2006-02-15  Eric Blake  <ebb9@byu.net>
95106         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Don't attempt using
95107         winsock2.h or ws2tcpip.h when sys/socket.h is present. Fixes
95108         'present but cannot compile' warnings on cygwin.
95109         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Use gl_HEADER_SYS_SOCKET.  Don't
95110         use ws2tcpip.h if sys/socket.h works.
95111         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Use gl_HEADER_SYS_SOCKET.
95112         (gl_GETADDRINFO): Don't use ws2tcpip.h when sys/socket.h is present.
95114 2006-02-14  Simon Josefsson  <jas@extundo.com>
95116         * modules/maintainer-makefile (Files): Rename.
95118         * build-aux/GNUmakefile: Rename Makefile.maint to maint.mk
95119         and (the local) Makefile.cfg to maint-cfg.mk.
95121         * build-aux/Makefile.maint, build-aux/maint.mk: Renamed the former
95122         to the latter.
95124         * modules/maintainer-makefile: New module.
95126         * build-aux/Makefile.maint: New file, from GNU CoreUtils, although
95127         severaly stripped to make it possible to build it up from scratch
95128         with reliable tests.
95130         * build-aux/GNUmakefile: New file, from GNU CoreUtils with some
95131         fixes to permit overriding the default actions when configure and
95132         makefile are not available.
95134 2006-02-14  Paul Eggert  <eggert@cs.ucla.edu>
95136         Sync from coreutils.
95137         * modules/lstat (Depends-on): Don't depend on xalloc.
95138         (License): Change from GPL to LGPL, since this is now simply a
95139         replacement for a libc function.
95141 2006-02-14  Jim Meyering  <jim@meyering.net>
95143         Sync from coreutils.
95145         Eliminate the unwelcome (albeit unlikely) possibility of xmalloc
95146         failure on deficient systems, and simplify gnulib lgpl dependencies.
95147         * lib/lstat.c (rpl_lstat): Rewrite to use stat() in place of the
95148         xmalloc/lstat combination.  Based on a patch from Bruno Haible.
95150         * lib/xalloc-die.c: Remove unused definition of N_.
95152 2006-02-14  Jim Meyering  <jim@meyering.net>
95154         Sync from coreutils.
95155         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): Invoke
95156         AC_CHECK_FUNCS(getmntent) unconditionally so that tests of
95157         $ac_cv_func_getmntent (e.g., in gl_LIST_MOUNTED_FILE_SYSTEMS) need not
95158         double-quote uses of that variable, to accommodate the rare case in
95159         which getmntent is available in none of the libraries checked.  This
95160         happens at least on FreeBSD 5.0.
95162 2006-02-13  Simon Josefsson  <jas@extundo.com>
95164         * gnulib-tool (Usage): Fix --import, from
95165         karl@freefriends.org (Karl Berry).
95167 2006-02-13  Sergey Poznyakoff  <gray@gnu.org.ua>
95169         * lib/argp-fmtstream.c: Restore another bugfix lost on 2005-12-12
95171 2006-02-07  Sergey Poznyakoff  <gray@gnu.org.ua>
95173         * lib/argp-namefrob.h: Restore changes accidentally lost during the
95174         "autoupdate" on 2005-12-12.
95176 2006-02-07  Paul Eggert  <eggert@cs.ucla.edu>
95178         * modules/closeout (Depends-on): Remove atexit.
95180 2006-02-07  Paul Eggert  <eggert@cs.ucla.edu>
95182         * lib/closeout.c (close_stdout): Don't assume 'bool' converts nonzero
95183         ints to 0 or 1, as this isn't true for the stdbool.h substitute.
95185 2006-02-05  Paul Eggert  <eggert@cs.ucla.edu>
95187         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Don't #define
95188         __EXTENSIONS__ if this causes compilation to fail.  Problem
95189         reported by Nelson H. F. Beebe with Solaris 10 and Sun C 5.7
95190         c89 -D_XOPEN_SOURCE -D_XOPEN_SOURCE_EXTENDED.
95192 2006-01-27  Paul Eggert  <eggert@cs.ucla.edu>
95194         * lib/fnmatch.c (L_): Renamed from L, to work around a bug in
95195         Mac OS X 10.3.9 with GCC 3 reported by Claudio Fontana in
95196         <http://lists.gnu.org/archive/html/bug-gnulib/2006-01/msg00074.html>.
95197         All uses changed.
95199 2006-01-26  Simon Josefsson  <jas@extundo.com>
95201         * lib/socket_.h: Set WINVER to 0x0501, to make sure getaddrinfo
95202         prototype is visible on mingw32.
95204         * lib/getaddrinfo.h: Define EAI_ADDRFAMILY and EAI_SYSTEM if not set,
95205         for mingw32.
95207         * lib/gai_strerror.c, getaddrinfo.h: Protect netdb.h #include (for
95208         mingw32).
95210 2006-01-26  Paul Eggert  <eggert@cs.ucla.edu>
95212         * lib/fts.c (diropen): Open with O_NOCTTY | O_NONBLOCK too.  Don't
95213         attempt to open for write; this always fails, at least on POSIX
95214         hosts.  This reinstates the 2006-01-09 change, which was
95215         inadvertently removed.
95217 2006-01-26  Bruno Haible  <bruno@clisp.org>
95219         * gnulib-tool (func_import): Use "trap 'exit $?' instead of "trap :".
95220         Reported by Paul Eggert.
95222 2006-01-26  Bruno Haible  <bruno@clisp.org>
95223             Paul Eggert  <eggert@cs.ucla.edu>
95225         * lib/stdbool_.h (_Bool)
95226         [(! (defined __cplusplus || defined __BEOS__)
95227           && !defined __GNUC__
95228           && !(defined __HP_cc || defined __xlc__
95229                || (defined __SUNPRO_C && (__SUNPRO_C < 0x550 || __STDC__ == 1))
95230                || defined __sgi))]:
95231         #define to signed char in these cases too; this simplifies
95232         the code (so that we don't have to worry about HP-UX, AIX, SunPRO,
95233         etc., separately) and makes it more conservative.
95235 2006-01-25  Simon Josefsson  <jas@extundo.com>
95237         * m4/getaddrinfo.m4: Look for getaddrinfo inside ws2tcip.h and
95238         -lws2_32.  Protect sys/socket.h and netdb.h #include's.  Include
95239         ws2tcpip.h with WINVER=0x0501.  All for mingw32.
95241 2006-01-25  Sergey Poznyakoff  <gray@gnu.org.ua>
95243         * lib/argp-namefrob.h: Bugfix. Remove stray #
95245 2006-01-25  Paul Eggert  <eggert@cs.ucla.edu>
95247         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check for xlc bug if __GCC__ too,
95248         so that we test the test.
95249         Check for yet another HP-UX cc bug involving *bool |= bool.
95251 2006-01-25  Karl Berry  <karl@gnu.org>
95253         * config/srclist.txt (vasnprintf.c): sync lost.
95255 2006-01-25  Jim Meyering  <jim@meyering.net>
95257         Sync from the stable (b5) branch of coreutils:
95259         * lib/fts.c (fts_children): Don't let close() clobber errno from
95260         failed fchdir().
95262         * lib/fts.c (fts_stat): When following a symlink-to-directory,
95263         don't necessarily interpret stat-fails+lstat-succeeds as indicating
95264         a dangling symlink.  That can also happen at least for ELOOP.
95265         The fix: return FTS_SLNONE only when the stat errno is ENOENT.
95266         FYI, this bug predates the inclusion of fts.c in coreutils.
95268         * lib/fts.c (fts_open): Put new maxarglen declaration and uses
95269         in their own block, so pre-c99 compilers don't object.
95271         Avoid the double-free (first in fts_read, second in fts_close) that
95272         would occur when an `active' directory is made inaccessible (e.g.,
95273         via chmod a-x) during a traversal.
95274         * lib/fts.c (fts_read): After a failed fchdir, update sp->fts_cur
95275         before returning.  Reproduce this failure by
95276         mkdir -p a/b; cd a; chmod a-x . b
95277         Reported by Stavros Passas.
95279 2006-01-25  Jim Meyering  <jim@meyering.net>
95281         * lib/fileblocks.c: Remove more useless parentheses.
95282         * lib/readutmp.h: Likewise.
95284 2006-01-25  Bruno Haible  <bruno@clisp.org>
95286         * lib/stdbool_.h (_Bool) [IRIX cc]: Define as 'signed char', to avoid
95287         warnings.
95288         Reported by Paul Eggert.
95290 2006-01-25  Bruno Haible  <bruno@clisp.org>
95292         * gnulib-tool (func_import): Use "trap :" instead of "trap -" to get
95293         rid of a trap command. For Solaris sh.
95294         Reported by Mark D. Baushke <mdb@gnu.org>.
95296 2006-01-24  Simon Josefsson  <jas@extundo.com>
95298         * lib/socket_.h (SHUT_WR, SHUT_RDWR): Don't hardcode, suggested by
95299         Bruno.
95301 2006-01-24  Karl Berry  <karl@gnu.org>
95303         * config/srclist.txt (argp-namefrob.h): sync lost.
95305 2006-01-24  Jim Meyering  <jim@meyering.net>
95307         * modules/openat (Files): Add lib/intprops.h.
95308         From Mark D. Baushke.
95310 2006-01-24  Jim Meyering  <jim@meyering.net>
95312         * m4/openat.m4 (gl_FUNC_OPENAT): Add AC_LIBSOURCES([intprops.h]).
95313         Reported by Mark D. Baushke.
95315 2006-01-24  Jim Meyering  <jim@meyering.net>
95317         * lib/socket_.h: Remove useless parentheses in uses of cpp `defined'.
95319 2006-01-24  Bruno Haible  <bruno@clisp.org>
95321         * modules/strnlen (Maintainer): Change from glibc to all.
95323 2006-01-24  Bruno Haible  <bruno@clisp.org>
95325         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check for IBM and HP-UX bugs.
95326         Patch by Paul Eggert.
95328 2006-01-24  Bruno Haible  <bruno@clisp.org>
95330         * lib/stdbool_.h (_Bool) [__cplusplus]: Don't define if the compiler
95331         already has it.
95332         Report and patch by Albert Chin-A-Young  <china@thewrittenword.com> on
95333         2005-11-26.
95335         * lib/stdbool_.h (_Bool) [HP-UX cc, AIX cc,xlc]: Define as
95336         'signed char' to avoid problems with the built-in _Bool type.
95337         Reported by Paul Eggert on 2005-11-26.
95339 2006-01-24  Bruno Haible  <bruno@clisp.org>
95341         * gnulib-tool (func_import): Avoid constructing complicated sed
95342         expressions inside backquote.
95343         Report and solution by Mark D. Baushke <mdb@gnu.org>.
95345 2006-01-23  Ulrich Drepper  <drepper@redhat.com>
95347         These changes imported from libc.
95348         * lib/getopt.c: Use __fxprintf instead of inline stream orientation
95349         test and two separate function calls.
95350         * lib/strndup.c (__strndup): Add libc_hidden_def.
95352 2006-01-23  Simon Josefsson  <jas@extundo.com>
95354         * modules/lock-tests: Use check_PROGRAMS instead of noinst_PROGRAMS.
95355         Remove the test_*_SOURCES variable: automake infers it by default.
95356         * modules/tls-tests: Likewise.
95358 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
95360         Work around porting bugs reported by Dieter in
95361         <http://lists.gnu.org/archive/html/bug-bison/2006-01/msg00049.html>.
95362         * lib/getopt.c (_NOPROTO): Remove; no longer needed.
95363         Include <stdlib.h> and <unistd.h> in all environments; it's safe now.
95364         Include "getopt.h" first, to check interface.
95365         (getenv): Declare only if defined HAVE_DECL_GETENV &&
95366         !HAVE_DECL_GETENV.
95367         * lib/strndup.c [!_LIBC]: Include "strndup.h" to get prototype.
95368         (__strndup): Revert to K&R-style function dfns, the glibc style.
95369         * lib/strnlen.c: Don't claim it's taken from glibc; it's not.
95370         (strnlen, __strnlen): Remove #defines and #undefs; not needed.
95371         Include strnlen.h first, to get prototype properly.
95372         (strnlen): Renamed from __strnlen.
95373         Remove weak alias.
95375 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
95377         * m4/getopt.m4 (gl_PREREQ_GETOPT): Check for getenv decl.
95379 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
95381         * config/srclist.txt: Adjust to reflect glibc reorganization.
95382         This affects only comments.
95384 2006-01-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
95386          * gnulib-tool, build-aux/csharpcomp.sh.in: Do not pass `-q' to mktemp.
95387          Reported by Bruce Korb <bkorb@gnu.org>.
95389 2006-01-22  Paul Eggert  <eggert@cs.ucla.edu>
95391         * lib/quotearg.c (quotearg_buffer_restyled): Add "default: break;"
95392         to pacify gcc -Wswitch-default.
95394 2006-01-22  Bruno Haible  <bruno@clisp.org>
95396         * lib/vasnprintf.c (VASNPRINTF): In the computation of the size of the
95397         temporary buffer for sprintf, take into account the precision also
95398         for 'd', 'i', 'u', 'o', 'x', 'X'.
95400 2006-01-21  Sergey Poznyakoff  <gray@gnu.org.ua>
95402         * modules/argp-tests: New module
95403         * tests/test-argp.c: New file
95404         * tests/test-argp-2.sh: New file
95406 2006-01-21  Sergey Poznyakoff  <gray@gnu.org.ua>
95408         * lib/argp-help.c (usage_long_opt): Do not print DOC options.
95409         (__argp_base_name): Removed
95410         * lib/argp-namefrob.h (__argp_basename): Removed definition. Was a
95411         typo.
95412         (__argp_base_name): Provide macro definition or extern declaration
95413         depending on the configuration
95415 2006-01-20  Simon Josefsson  <jas@extundo.com>
95417         * modules/inet_ntop (Depends-on): Depend on sys_socket.
95419 2006-01-20  Simon Josefsson  <jas@extundo.com>
95421         * lib/inet_ntop.h: Unconditionally include sys/socket.h.
95423 2006-01-20  Paul Eggert  <eggert@cs.ucla.edu>
95425         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Use -Wl,-z,ignore
95426         rather than -Xlinker -z -Xlinker ignore, as it's more portable.
95427         Suggested by Bruno Haible.
95429 2006-01-20  Karl Berry  <karl@gnu.org>
95431         * config/srclist.txt (argp-fmtstream.h, localcharset.c): comment out
95432         until changes propagate, I guess.
95434 2006-01-19  Simon Josefsson  <jas@extundo.com>
95436         * m4/socklen.m4: Look in ws2tcpip.h too, for mingw32.
95438 2006-01-19  Simon Josefsson  <jas@extundo.com>
95440         * lib/socket_.h: Map SHUT_RD, SHUT_WR, SHUT_RDWR correctly.
95442 2006-01-19  Simon Josefsson  <jas@extundo.com>
95444         * gnulib-tool: Set check_PROGRAMS.
95446         * modules/arcfour-tests, modules/arctwo-tests, modules/crc-tests,
95447         modules/des-tests, modules/gc-arcfour-tests,
95448         modules/gc-arctwo-tests, modules/gc-des-tests,
95449         modules/gc-hmac-md5-tests, modules/gc-hmac-sha1-tests,
95450         modules/gc-md2-tests, modules/gc-md4-tests, modules/gc-md5-tests,
95451         modules/gc-pbkdf2-sha1-tests, modules/gc-rijndael-tests,
95452         modules/gc-sha1-tests, modules/gc-tests, modules/hmac-md5-tests,
95453         modules/hmac-sha1-tests, modules/md2-tests, modules/md4-tests,
95454         modules/md5-tests, modules/readline, modules/rijndael-tests: Use
95455         check_PROGRAMS instead of noinst_PROGRAMS to be able to remove
95456         test_*_SOURCES.
95458 2006-01-18  Simon Josefsson  <jas@extundo.com>
95460         * modules/socklen (Depends-on): Depend on sys_socket.
95462 2006-01-18  Simon Josefsson  <jas@extundo.com>
95464         * modules/arcfour-tests, modules/arctwo-tests, modules/crc-tests,
95465         modules/des-tests, modules/gc-arcfour-tests,
95466         modules/gc-arctwo-tests, modules/gc-des-tests,
95467         modules/gc-hmac-md5-tests, modules/gc-hmac-sha1-tests,
95468         modules/gc-md2-tests, modules/gc-md4-tests, modules/gc-md5-tests,
95469         modules/gc-pbkdf2-sha1-tests, modules/gc-rijndael-tests,
95470         modules/gc-sha1-tests, modules/gc-tests, modules/hmac-md5-tests,
95471         modules/hmac-sha1-tests, modules/md2-tests, modules/md4-tests,
95472         modules/md5-tests, modules/readline, modules/rijndael-tests: Add
95473         $(EXEEXT) to automake TESTS variable, for mingw32.
95475 2006-01-17  Simon Josefsson  <jas@extundo.com>
95477         * modules/socklen (Include): Need sys/socket.h.
95479 2006-01-17  Bruno Haible  <bruno@clisp.org>
95481         * modules/ssize_t (Include): Add <sys/types.h>.
95483 2006-01-16  Paul Eggert  <eggert@cs.ucla.edu>
95485         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Don't use ldd, as
95486         it's not portable and it doesn't work with cross-compiles.
95487         Problem reported by Bruno Haible.  Fix missing-$ typo in
95488         'test "gl_cv_ignore_unused_libraries" ...' that prevented
95489         -zignore from being used with Sun's C compiler.
95491 2006-01-12  Simon Josefsson  <jas@extundo.com>
95493         * lib/base64.c: Fix warning, reported by Bruno Haible
95494         <bruno@clisp.org> and patch by Paul Eggert <eggert@CS.UCLA.EDU>.
95496 2006-01-12  Bruno Haible  <bruno@clisp.org>
95498         * modules/ldd: New file.
95499         * build-aux/ldd.sh.in: New file.
95500         * MODULES.html.sh (Support for building libraries and executables): Add
95501         ldd.
95503 2006-01-12  Bruno Haible  <bruno@clisp.org>
95505         * m4/ldd.m4: New file.
95507 2006-01-12  Bruno Haible  <bruno@clisp.org>
95509         * gnulib-tool (func_import, func_create_testdir): Don't go into an
95510         endless loop while replacing $auxdir with build-aux.
95512 2006-01-11  Simon Josefsson  <jas@extundo.com>
95514         * lib/stdint_.h (SIZE_MAX): Add missing (.
95516 2006-01-11  Paul Eggert  <eggert@cs.ucla.edu>
95518         Sync from coreutils.
95519         * lib/md5.c: Fix commentary typos.
95520         (alignof, UNALIGNED_P): No need for a GCC-specific version.
95521         * lib/md5.h (__attribute__): Remove; unused.
95522         * lib/sha1.c: Fix commentary to match md5 better.
95523         * lib/sha1.h (struct sha1_ctx): Use a word buffer, not a byte buffer,
95524         so that we don't need to worry about alignment.  All uses changed.
95525         This merges the 2005-10-28 md5 change into sha1.
95527 2006-01-11  Jim Meyering  <jim@meyering.net>
95529         Sync from coreutils.
95530         * lib/md5.c (OP): Fix spacing.
95532 2006-01-11  Bruno Haible  <bruno@clisp.org>
95534         Ensure automatic ordering between gl_LOCK and gl_ARGP.
95535         * m4/lock.m4 (gl_LOCK_BODY): Renamed from gl_LOCK.
95536         (gl_LOCK): New macro, requiring gl_LOCK_BODY.
95538 2006-01-11  Bruno Haible  <bruno@clisp.org>
95540         Ensure automatic ordering between gl_LOCK and gl_ARGP.
95541         * gnulib-tool (func_import, func_create_testdir): Put gl_LOCK into
95542         the "early" section as well.
95544 2006-01-11  Bruno Haible  <bruno@clisp.org>
95546         Avoid "ar: no archive members specified" error on MacOS X.
95547         * gnulib-tool (func_modules_add_dummy): New function.
95548         (func_import, func_create_testdir): Invoke it.
95550 2006-01-11  Bruno Haible  <bruno@clisp.org>
95552         * gnulib-tool (func_import, func_create_testdir): Replace build-aux
95553         with $auxdir in AC_CONFIG_FILES statements.
95555 2006-01-11  Bruno Haible  <bruno@clisp.org>
95557         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
95558         Initialize also noinst_HEADERS to empty.
95560 2006-01-11  Bruno Haible  <bruno@clisp.org>
95562         * gnulib-tool (AUTOMAKEPATH, AUTOCONF, ACLOCAL, AUTOMAKE): New
95563         variables.
95564         (func_create_megatestdir): Call aclocal, autoconf, automake here, not
95565         autoreconf.
95567 2006-01-11  Bruno Haible  <bruno@clisp.org>
95569         * gnulib-tool (AUTOCONF, ACLOCAL, AUTOMAKE, AUTORECONF): Make
95570         overridable by the user.
95571         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
95573 2006-01-10  Simon Josefsson  <jas@extundo.com>
95575         * modules/sys_socket: New file.
95577 2006-01-10  Simon Josefsson  <jas@extundo.com>
95579         * m4/sys_socket_h.m4: New file.
95581 2006-01-10  Simon Josefsson  <jas@extundo.com>
95583         * lib/socket_.h: New file.
95585 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
95587         * modules/readutmp (Maintainer): Add myself.
95589 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
95591         * m4/memcoll.m4 (gl_MEMCOLL): Don't require AC_FUNC_MEMCMP, undoing
95592         the 2002-12-31 change.  Problem and fix reported by Bruno Haible.
95593         People who are still concerned with buggy memcmp implementations
95594         can invoke gl_FUNC_MEMCMP themselves.
95596 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
95598         * lib/regex_internal.h (BITSET_WORD_BITS):
95599         Work around a bug in 64-bit PGC (before version 6.1-2), where the
95600         preprocessor mishandles large unsigned values as if they were signed.
95601         Problem reported by Claudio Fontana in
95602         <http://lists.gnu.org/archive/html/bug-gnulib/2005-12/msg00061.html>.
95604 2006-01-10  Jim Meyering  <jim@meyering.net>
95606         Avoid the double-free (first in fts_read, second in fts_close) that
95607         would occur when an `active' directory is made inaccessible (e.g.,
95608         via chmod a-x) during a traversal.
95609         * lib/fts.c (fts_read): After a failed fchdir, update sp->fts_cur
95610         before returning.  Reproduce this failure by
95611         mkdir -p a/b; cd a; chmod a-x . b
95612         Reported by Stavros Passas.
95614         Sync from coreutils.
95615         * lib/sha1.c: Tweak grammar in a comment.
95617 2006-01-10  Jim Meyering  <jim@meyering.net>
95619         * m4/fpending.m4: Also include <stdio.h>, for Dragonfly.
95620         Patch by Joerg Sonnenberger.
95622 2006-01-10  Bruno Haible  <bruno@clisp.org>
95624         * modules/readutmp: Depend on module free.
95625         * modules/strtok_r: Depend on module restrict.
95627 2006-01-10  Bruno Haible  <bruno@clisp.org>
95629         * modules/gettext (configure.ac): Add an invocation of
95630         AM_GNU_GETTEXT_VERSION. Needed since autoreconf is used by gnulib-tool.
95632 2006-01-10  Bruno Haible  <bruno@clisp.org>
95634         * m4/localcharset.m4 (gl_LOCALCHARSET): Also test for getc_unlocked.
95635         Reported by Werner Lemberg <wl@gnu.org>.
95637 2006-01-10  Bruno Haible  <bruno@clisp.org>
95639         * lib/localcharset.c: Update from GNU gettext.
95641 2006-01-10  Bruno Haible  <bruno@clisp.org>
95643         * lib/argp.h (__const): Remove macro. Use const instead.
95644         * lib/argp-fmtstream.h (__const): Likewise.
95645         * lib/glob_.h (__const): Remove macro.
95646         * lib/glob-libc.h: Use const instead of __const.
95648 2006-01-10  Bruno Haible  <bruno@clisp.org>
95650         * gnulib-tool (func_emit_tests_Makefile_am): Emit an empty SUBDIR
95651         variable.
95652         Needed to avoid an automake error regarding the 'gettext' module.
95654 2006-01-09  Simon Josefsson  <jas@extundo.com>
95656         * modules/inet_ntop (Depends-on): Add restrict.
95658 2006-01-09  Simon Josefsson  <jas@extundo.com>
95660         * modules/gc-rijndael-tests (License): Put under LGPL.
95662         * modules/gc-des-tests (License): Likewise.
95664         * modules/gc-arcfour-tests (License): Likewise.
95666         * modules/gc-arctwo-tests (License): Likewise.
95668         * modules/gc-pbkdf2-sha1-tests (License): Likewise.
95670         * modules/gc-hmac-sha1-tests (Files): Likewise.
95672         * modules/gc-hmac-md5-tests (License): Likewise.
95674         * modules/gc-sha1-tests (License): Likewise.
95676         * modules/gc-md5-tests (License): Likewise.
95678         * modules/gc-md4-tests (License): Likewise.
95680         * modules/gc-md2-tests (License): Likewise.
95682         * modules/gc-tests (License): Likewise.
95684         * modules/des-tests (License): Likewise.
95686         * modules/md4-tests (License): Likewise.
95688         * modules/md2-tests (License): Likewise.
95690 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
95692         Sync from coreutils:
95694         * MODULES.html.sh (build_lib): New section, with new lib-ignore module.
95695         * modules/lib-ignore: New file.
95696         * modules/mkdir-p (Files): Add chdir-safer.c, chdir-safer.h, lchmod.h,
95697         chdir-safer.m4, lchmod.m4.
95698         * modules/openat: Add mkdirat.c, openat-priv.h.
95700 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
95702         Sync from coreutils.
95703         * m4/lib-ignore.m4: New file.
95704         * m4/lchmod.m4: New file.
95706 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
95708         Sync from coreutils.
95709         * lib/chdir-long.c (cdb_free): Don't bother trying to open directory
95710         for write access: POSIX says that must fail.
95711         * lib/fts.c (diropen): Likewise.
95712         * lib/save-cwd.c (save_cwd): Likewise.
95713         * lib/chdir-long.c (cdb_free): Open with O_NOCTTY | O_NONBLOCK as
95714         well, for minor improvements on hosts that lack O_DIRECTORY.
95715         * lib/chown.c (rpl_chown) [CHOWN_MODIFIES_SYMLINK]:
95716         Don't try O_WRONLY unless O_RDONLY failed wth EACCES.
95717         Fall back on chown if open failed with EACCES.
95719         * lib/gettime.c (gettime) [!defined OK_TO_USE_1S_CLOCK]:
95720         Report an error at compile-time if only a 1-second nominal clock
95721         resolution is found.
95723         * lib/lchmod.h: New file.
95724         * lib/mkdir-p.c: Include lchmod.h, lchown.h.
95725         (make_dir_parents): Use lchown rather than chown, and
95726         lchmod rather than chmod.
95728         * lib/mountlist.c (ME_DUMMY): "none" and "proc" file systems are
95729         dummies too.  Problem with "none" reported by Bob Proulx.  Problem with
95730         "proc" reported by n0dalus.
95732         * lib/mountlist.c: Include <limits.h>.
95733         (dev_from_mount_options)
95734         [defined MOUNTED_GETMNTENT1 || defined MOUNTED_GETMNTENT2]:
95735         New function.  It no longer assumes "dev=" has the System V meaning
95736         on Linux (since it doesn't).  It also parses "dev=" more carefully.
95737         (read_file_system_list)
95738         [defined MOUNTED_GETMNTENT1 || defined MOUNTED_GETMNTENT2]: Use it.
95739         MOUNTED_GETMNTENT2 is new here; the code didn't used to look for
95740         dev= in that case.
95742         * lib/posixtm.h (PDS_PRE_2000): New macro.
95743         * lib/posixtm.c (year): Arg is now syntax_bits rather than
95744         allow_century.  All usages changed.  Reject dates outside the range
95745         1969-1999 if PDS_PRE_2000 is used.
95747 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
95749         Sync from coreutils.
95750         * doc/getdate.texi (General date syntax): Invalid dates are rejected.
95751         (Time of day items): Mention the possibility of leap seconds.
95752         Problem reported by Dr. David Alan Gilbert.
95754 2006-01-09  Jim Meyering  <jim@meyering.net>
95756         Sync from coreutils.
95758         * lib/version-etc.c (COPYRIGHT_YEAR): Update to 2006.
95760         * lib/chdir-safer.h, lib/chdir-safer.c: New files.
95762         * lib/modechange.c (mode_compile): Reject an invalid mode string
95763         that starts with an octal digit.  From Andreas Gruenbacher.
95765         * lib/openat.c: Include "fcntl--.h" and "unistd--.h", to map open
95766         and dup to open_safer and dup_safer, respectively.
95767         (openat_permissive): Fix typo in comment.
95769         * lib/openat.c: Don't include <stdlib.h>, <unistd.h>, <fcntl.h>,
95770         "gettext.h"; either no longer needed or are guaranteed by openat.h.
95771         (_): Remove; no longer needed.
95772         (openat): Renamed from rpl_openat; no need for rpl_openat
95773         since openat.h renames openat for us.
95774         Replace most of the body with a call to openat_permissive,
95775         to avoid duplicate code.
95776         Port to (probably hypothetical) environments were mode_t is
95777         wider than int.
95778         (openat_permissive): Require mode arg, so that we can check
95779         types better.  Put it just after flags.  Change cwd failure
95780         indicator from pointer-to-bool to pointer-to-errno-value.
95781         All callers changed.
95782         Invoke openat_save_fail and/or openat_restore_fail if
95783         cwd_errno is null, so that openat can call us.
95784         (openat_permissive, fdopendir, fstatat, unlinkat):
95785         Simplify errno handling to avoid some duplicate code,
95786         as it's OK to set errno on success.
95787         * lib/openat.h: Revamp code so that function macros depend on
95788         __OPENAT_PREFIX only, not also on AT_FDCWD.
95789         (openat_ro): Remove.  Caller changed to use openat_permissive.
95790         (openat_permissive): Now a macro, if not a function.
95791         (openat_restore_fail, openat_save_fail): Now always functions,
95792         since mkdirat needs them even if __OPENAT_PREFIX is defined.
95794         * lib/openat-priv.h: New file, defining macros used by mkdirat.c
95795         and openat.c.
95796         * lib/mkdirat.c: Include openat-priv.h.
95797         Remove definitions of macros defined therein.
95798         * lib/openat.c: Likewise.
95800         * lib/mkdirat.c (mkdirat): New file and function.
95801         * lib/openat.h (mkdirat): Declare.
95803         * lib/openat.c (fdopendir): Don't change errno when returning non-NULL.
95805         * lib/openat.h (openat_permissive): Declare.
95806         (openat_ro): Define.
95808         * lib/openat.c (EXPECTED_ERRNO): New macro.
95809         (openat_permissive): New function -- used in remove.c rewrite.
95810         (all functions): Set errno just before returning, only if there
95811         was an actual failure.
95812         Use EXPECTED_ERRNO rather than comparing against only ENOTDIR.
95814         Emulate openat-family functions using Linux's procfs, if possible.
95815         Idea and some code based on Ulrich Drepper's glibc changes.
95817         * lib/openat.c: (BUILD_PROC_NAME): New macro.
95818         Include <stdio.h>, <string.h>, "alloca.h" and "intprops.h".
95819         (rpl_openat): Emulate by trying to open /proc/self/fd/%d/%s,
95820         before falling back on save_cwd and restore_cwd.
95821         (fdopendir, fstatat, unlinkat): Likewise.
95823         * lib/openat.c (fstatat, unlinkat): Perform the syscall directly,
95824         skipping the save_cwd...restore_cwd overhead, if FILE is absolute.
95826         * lib/openat.c (rpl_openat): Use the promoted type (int), not mode_t,
95827         as second argument to va_arg.  Otherwise, some versions of gcc
95828         warn that `if this code is reached, the program will abort'.
95830 2006-01-09  Jim Meyering  <jim@meyering.net>
95832         Sync from coreutils.
95833         * m4/openat.m4 (gl_FUNC_OPENAT): Require and compile mkdirat.c.
95834         Require openat-priv.h.
95836 2006-01-09  Bruno Haible  <bruno@clisp.org>
95838         * modules/strnlen (Include): Use strnlen.h.
95840 2006-01-09  Bruno Haible  <bruno@clisp.org>
95842         * m4/stdint.m4 (gl_STDINT_H): Also test for <sys/bitypes.h>.
95844 2006-01-09  Bruno Haible  <bruno@clisp.org>
95846         * lib/sysexit_.h (EX_OK): New macro.
95847         Suggested by Martin Lambers <marlam@marlam.de>.
95849 2006-01-09  Bruno Haible  <bruno@clisp.org>
95851         * lib/stdint_.h: On Linux libc4 and libc5, include <sys/bitypes.h> and
95852         don't define _STDINT_H_NEED_SIGNED_INT_TYPES.
95854 2006-01-09  Bruno Haible  <bruno@clisp.org>
95856         * lib/stdint_.h (SIZE_MAX): Write the value without involving negative
95857         numbers.
95859 2006-01-09  Bruno Haible  <bruno@clisp.org>
95861         * lib/javacomp.sh.in: Move to ../build-aux/javacomp.sh.in.
95862         * lib/javaexec.sh.in: Move to ../build-aux/javaexec.sh.in.
95863         * lib/csharpcomp.sh.in: Move to ../build-aux/csharpcomp.sh.in.
95864         * lib/csharpexec.sh.in: Move to ../build-aux/csharpexec.sh.in.
95866 2006-01-09  Bruno Haible  <bruno@clisp.org>
95868         * build-aux/javacomp.sh.in: New file, moved from lib/.
95869         * modules/javacomp-script (Files): Update.
95870         (configure.ac): Add AC_CONFIG_FILES invocation.
95871         (EXTRA_DIST): Remove variable.
95873         * build-aux/javaexec.sh.in: New file, moved from lib/.
95874         * modules/javaexec (Files): Update.
95875         (configure.ac): Add AC_CONFIG_FILES invocation.
95876         (EXTRA_DIST): Remove javaexec.sh.in.
95878         * build-aux/csharpcomp.sh.in: New file, moved from lib/.
95879         * modules/csharpcomp-script (Files): Update.
95880         (configure.ac): Add AC_CONFIG_FILES invocation.
95881         (EXTRA_DIST): Remove variable.
95883         * build-aux/csharpexec.sh.in: New file, moved from lib/.
95884         * modules/csharpexec (Files): Update.
95885         (configure.ac): Add AC_CONFIG_FILES invocation.
95886         (EXTRA_DIST): Remove csharpexec.sh.in.
95888 2006-01-09  Andreas Gruenbacher  <agruen@suse.de>
95890         Sync from coreutils.
95892         Add POSIX ACL support
95893         * lib/acl.h (copy_acl, set_acl): Add declarations.
95894         * lib/acl.c (acl_entries): Add fallback implementation for POSIX ACL
95895         systems other than Linux.
95896         (chmod_or_fchmod): New function: use fchmod when possible,
95897         and chmod otherwise.
95898         (file_has_acl): Add a POSIX ACL implementation, with a
95899         Linux-specific subcase.
95900         (copy_acl): Add: copy an acl and S_ISUID, S_ISGID, and
95901         S_ISVTX from one file to another.  Fall back to fchmod/chmod when
95902         acls are unsupported.
95903         (set_acl): Add: set a file's acl and S_ISUID, S_ISGID, and
95904         S_ISVTX to a defined value.  Fall back to fchmod/chmod when acls
95905         are unsupported.
95907 2006-01-09  Andreas Gruenbacher  <agruen@suse.de>
95909         Sync from coreutils.
95910         * m4/acl.m4 (AC_FUNC_ACL): Add POSIX ACL and Linux-specific acl tests.
95912 2006-01-07  Bruno Haible  <bruno@clisp.org>
95914         * gnulib-tool (func_import): Add an AC_PROG_RANLIB dependency to
95915         gl_EARLY.
95917 2006-01-04  Paul Eggert  <eggert@cs.ucla.edu>
95919         * lib/strftime.c (tzname): Don't declare if it is already #defined.
95920         Problem reported for Mingw by Mark Junker.
95922 2006-01-04  Paul Eggert  <eggert@cs.ucla.edu>
95924         * README: Gnulib normally doesn't generate a tarball.
95926 2006-01-03  Paul Eggert  <eggert@cs.ucla.edu>
95928         * lib/xtime.h (xtime_make, xtime_nonnegative_nsec, xtime_nsec): Use
95929         long int, not int, for nanosecond counts, so that people who are
95930         used to POSIX struct timespec won't be surprised.  Reported by Jim
95931         Meyering.
95933 2005-12-28  Bruno Haible  <bruno@clisp.org>
95935         * build-aux/config.rpath: Update from GNU gettext.
95937 2005-12-16  Jim Meyering  <jim@meyering.net>
95939         * modules/fprintftime: New module.
95940         * MODULES.html.sh (Date and time <time.h>): Add fprintftime.
95942 2005-12-16  Jim Meyering  <jim@meyering.net>
95944         * m4/fprintftime.m4: New file.
95946 2005-12-16  Jim Meyering  <jim@meyering.net>
95948         * lib/fprintftime.c, lib/fprintftime.h: New files.
95950 2005-12-15  Simon Josefsson  <jas@extundo.com>
95952         * modules/socklen (configure.ac): Fix M4 macro name, to align with
95953         new m4/socklen.m4.
95955 2005-12-10  Sergey Poznyakoff  <gray@gnu.org.ua>
95957         * m4/argp.m4: Define HAVE_DECL_PROGRAM_INVOCATION_NAME and
95958         HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME
95960 2005-12-10  Sergey Poznyakoff  <gray@gnu.org.ua>
95962         * lib/argp-fmtstream.c (__argp_fmtstream_update): Fix coredump
95963         * lib/argp-help.c (fill_in_uparams): Check if the constructed
95964         struct uparams is valid. Fall back to the default values if it is
95965         not.
95967 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
95969         * modules/argp (Files): Add argp-pin.c
95970         (Depends-on): dirname
95971         (lib_SOURCES): Add argp-pin.c
95973 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
95975         * m4/argp.m4:  Check if program_invocation_name and
95976         program_invocation_short_name are declared and define appropriate
95977         macros if they are not.
95979 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
95981         * lib/argp-help.c (__argp_base_name): New function
95982         (__argp_short_program_name): Rewrite using __argp_base_name
95983         * lib/argp-namefrob.h: Define program_invocation_name and
95984         program_invocation_short_name if requested
95985         (__argp_base_name): Add prototype
95986         * lib/argp-parse.c (argp_def): Use gettext wrappers
95987         (argp_default_parser): Use __argp_base_name
95988         * lib/argp-pin.c: New file. Defines program_invocation_name and
95989         program_invocation_short_name on systems that lack them.
95991 2005-12-07  Paul Eggert  <eggert@cs.ucla.edu>
95993         * m4/stat-time.m4 (gl_STAT_TIME): Add check for
95994         TYPEOF_STRUCT_STAT_ST_ATIM_IS_STRUCT_TIMESPEC, to fix IRIX 5.3
95995         porting problem reported by Georg Schwarz in
95996         <http://lists.gnu.org/archive/html/bug-coreutils/2005-12/msg00083.html>.
95998 2005-12-07  Paul Eggert  <eggert@cs.ucla.edu>
96000         * lib/stat-time.h (STATE_TIMESPEC, STAT_TIMESPEC_NS): Add check for
96001         TYPEOF_STRUCT_STAT_ST_ATIM_IS_STRUCT_TIMESPEC, to fix IRIX 5.3
96002         porting problem reported by Georg Schwarz in
96003         <http://lists.gnu.org/archive/html/bug-coreutils/2005-12/msg00083.html>.
96005 2005-12-05  Bruno Haible  <bruno@clisp.org>
96007         * lib/csharpcomp.sh.in (options_csc): For -l option, add a .dll suffix.
96008         * lib/csharpcomp.c (compile_csharp_using_sscli): Likewise.
96009         Reported by Mark Junker <mjscod@gmx.de>.
96011 2005-12-02  Paul Eggert  <eggert@cs.ucla.edu>
96013         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Renamed from gl_SOCKLEN_T.
96014         Use implementation from Albert Chin, with some
96015         comments/corrections by Stepan Kasal and myself.
96017 2005-12-02  Bruno Haible  <bruno@clisp.org>
96019         * gnulib-tool (func_import): Accept GPLed build tool modules when
96020         --lgpl is given.
96021         * modules/csharpcomp-script: New file.
96022         * modules/csharpcomp: Depend on it.
96023         * modules/javacomp-script: New file.
96024         * modules/javacomp: Depend on it.
96025         Suggested by Simon Josefsson.
96027 2005-12-01  Paul Eggert  <eggert@cs.ucla.edu>
96029         * m4/regex.m4 (gl_REGEX): Check whether off_t can be used in a switch
96030         statement, to work around an HP-UX 10.20 compiler bug reported by
96031         Peter O'Gorman.
96033 2005-11-29  Paul Eggert  <eggert@cs.ucla.edu>
96035         * modules/savedir (Depends-on): Add openat.
96037 2005-11-29  Paul Eggert  <eggert@cs.ucla.edu>
96039         * lib/stdint_.h (intmax_t) [defined intmax_t]: Do not declare.
96040         (uintmax_t) [defined uintmax_t]: Do not declare.
96041         (SIZE_MAX) [defined SIZE_MAX]: Do not define.
96042         This works around a problem if intmax_t.m4 and/or uintmax_t.m4
96043         and/or size_max.m4 are also used.  Problem reported by Mark D. Baushke.
96044         (SIZE_MAX): Define to ((size_t) -1), not (~(size_t)0), for the
96045         sake of portability to weird hosts that C allows (though we don't
96046         know of any practical examples).
96048         * lib/savedir.h (fdsavedir): New decl.
96049         * lib/savedir.c (fdsavedir, savedirstream): New functions; the latter
96050         contains most of the former guts of savedir.
96051         (savedir): Use savedirstream.
96052         Include "openat.h".
96054 2005-11-25  Paul Eggert  <eggert@cs.ucla.edu>
96056         * modules/obstack (Files): Add m4/ulonglong.m4.
96057         Problem reported by Davide Angelocola.
96059 2005-11-15  Paul Eggert  <eggert@cs.ucla.edu>
96061         * lib/xstrtod.c: Don't bother with #pragma STDC FENV_ACCESS ON, as
96062         coreutils no longer futzes with rounding modes.
96064 2005-11-14  Jim Meyering  <jim@meyering.net>
96066         * lib/mkstemp-safer.c: Include <config.h>, required for possible
96067         replacement of mkstemp.
96069 2005-11-10  Simon Josefsson  <jas@extundo.com>
96071         * lib/readline.c: Remove EOL.
96073 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
96075         * modules/gethrxtime (Depends-on): Add gettime.
96077 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
96079         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Don't require AC_HEADER_TIME
96080         or gettimeofday; no longer needed.
96082 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
96084         * lib/gethrxtime.c: Include "timespec.h" rather than the sys/time /
96085         time business.
96086         (gethrxtime) [! (HAVE_NANOUPTIME
96087         || (defined CLOCK_MONOTONIC && HAVE_CLOCK_GETTIME)
96088         || HAVE_MICROUPTIME)]: Fall back on gettime rather than rolling
96089         our own approximation.
96091 2005-11-08  Eric Blake  <ebb9@byu.net>
96093         * lib/inet_ntop.h: Use #if !, not #ifndef, for AC_CHECK_DECLS.
96095 2005-11-08  Eric Blake  <ebb9@byu.net>
96097         * lib/getaddrinfo.h: Use #if !, not #ifndef, for AC_CHECK_DECLS.
96099 2005-11-04  Bruno Haible  <bruno@clisp.org>
96101         * gnulib-tool: Implement --update mode.
96103 2005-10-30  Paul Eggert  <eggert@cs.ucla.edu>
96105         Fix porting problem reported by Theodoros V. Kalamatianos.
96106         * lib/utimens.c (futimens) [HAVE_WORKING_UTIMES && HAVE_FUTIMES]:
96107         Don't assume that futimes failing means we must fail.
96109 2005-10-30  Paul Eggert  <eggert@cs.ucla.edu>
96111         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Revamp wording and local
96112         variables to suggest the intended function of the PATH_MAX check.
96114 2005-10-30  Kean Johnston  <jkj@sco.com>
96116         Trivial changes to support SCO systems.
96117         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Check for MAXPATHLEN as well
96118         as PATH_MAX.
96119         * m4/fpending.m4 (gl_FUNC_FPENDING): Correct check for SCO systems,
96120         where __ptr is null when no I/O is pending.
96122 2005-10-29  Paul Eggert  <eggert@cs.ucla.edu>
96124         * lib/getcwd.c (__getcwd): Don't assume that system calls after readdir
96125         leave errno alone.  Problem reported by Dmitry V. Levin.
96127 2005-10-28  Simon Josefsson  <jas@extundo.com>
96129         * tests/test-gc-md4.c, tests/test-gc-md5.c, tests/test-gc-sha1.c:
96130         Test more.
96132         * tests/test-gc-md2.c, tests/test-md2.c: New files.
96134         * modules/md2, modules/md2-tests: New files.
96136 2005-10-28  Simon Josefsson  <jas@extundo.com>
96138         * m4/inet_ntop.m4: More tests.
96140         * m4/gc-md2.m4, md2.m4: New file.
96142 2005-10-28  Simon Josefsson  <jas@extundo.com>
96144         * lib/inet_ntop.h, inet_ntop.c: Make it work under mingw32: Add
96145         "restrict" keywords, as per POSIX.  Protect the function
96146         declaration around HAVE_DECL_INET_NTOP rather than HAVE_INET_NTOP.
96147         Don't use K&R prototypes.  Check the sprintf return values.
96148         Re-define EAFNOSUPPORT if not present.  Indent.
96150         * lib/md5.h, md5.c: Simplify buffer handling visavi alignment,
96151         suggested by Bruno Haible <bruno@clisp.org>.
96153         * lib/gc-gnulib.c, gc-libgcrypt.c: Check calloc return value.
96155         * lib/gc.h: Add MD2 and RMD160 length defines.  Add prototypes.
96157         * lib/gc-libgcrypt.c: Add MD2 (which is not available through
96158         libgcrypt).
96160         * lib/gc-gnulib.c: Add MD2.  Implement gc_hash_* API.
96162         * lib/md2.h, lib/md2.c: New files.
96164 2005-10-28  Paul Eggert  <eggert@cs.ucla.edu>
96166         * lib/savedir.c (savedir): Don't assume that xrealloc etc. leave
96167         errno alone.  Problem reported by Frederic Jolliton.
96169 2005-10-27  Paul Eggert  <eggert@cs.ucla.edu>
96171         * modules/verify (License): Change from GPL to LGPL.  This is a
96172         tiny module and there are apparently near-equivalents that are
96173         under the BSD license.
96175 2005-10-24  Simon Josefsson  <jas@extundo.com>
96177         * modules/sha1: Relicense to LGPL.
96179 2005-10-24  Simon Josefsson  <jas@extundo.com>
96181         * lib/md4.h: Shrink buffer size, now that we changed the type.
96183 2005-10-23  Simon Josefsson  <jas@extundo.com>
96185         * gnulib-tool (func_import): Fix --tests-base.
96187 2005-10-22  Simon Josefsson  <jas@extundo.com>
96189         * modules/arcfour (Depends-on): Need stdint.
96191 2005-10-22  Simon Josefsson  <jas@extundo.com>
96193         * m4/gc.m4: Don't be fooled by --disable-*random-device parameters,
96194         suggested by Bruno Haible <bruno@clisp.org>.  Fix error messages.
96196 2005-10-22  Simon Josefsson  <jas@extundo.com>
96198         * lib/md4.h, md4.c: Simplify buffer handling visavi alignment,
96199         suggested by Bruno Haible <bruno@clisp.org>.
96201 2005-10-22  Simon Josefsson  <jas@extundo.com>
96203         * lib/crc.h: Include stddef.h, for size_t.
96205 2005-10-22  Simon Josefsson  <jas@extundo.com>
96207         * lib/arcfour.h, arcfour.c: Use fixed size indices in the
96208         arcfour_context struct (simplify test vector testing in GNU
96209         Shishi).
96211 2005-10-21  Simon Josefsson  <jas@extundo.com>
96213         * modules/des, modules/des-tests: New files.
96215         * modules/gc-des, modules/gc-des-tests: New files.
96217         * tests/test-des.c, tests/test-gc-des.c: New file.
96219 2005-10-21  Simon Josefsson  <jas@extundo.com>
96221         * modules/arctwo, modules/arctwo-tests: New files.
96223         * tests/test-arctwo.c: New file.
96225         * modules/gc-arctwo, modules/gc-arctwo-tests: New files.
96227         * tests/test-gc-arctwo.c: New file.
96229 2005-10-21  Simon Josefsson  <jas@extundo.com>
96231         * m4/gc.m4: Don't use libgcrypt if gcrypt.h isn't found, suggested by
96232         Bruno Haible <bruno@clisp.org>.
96234         * m4/gc-des.m4: New file.
96236 2005-10-21  Simon Josefsson  <jas@extundo.com>
96238         * m4/arctwo.m4: New file.
96240         * m4/gc-arctwo.m4: New file.
96242 2005-10-21  Simon Josefsson  <jas@extundo.com>
96244         * lib/rijndael-api-fst.c: Fix bugs in CBC mode for more than one
96245         block.
96247 2005-10-21  Simon Josefsson  <jas@extundo.com>
96249         * lib/hmac-md5.c (hmac_md5): Add comments, suggested by Bruno Haible
96250         <bruno@clisp.org>.
96252         * lib/hmac-sha1.c (hmac_sha1): Likewise.
96254         * lib/crc.c (crc32_update): Actually use crc parameter, suggested by
96255         Bruno Haible <bruno@clisp.org>.
96257         * lib/crc.h: Include stdint.h directly, suggested by Bruno Haible
96258         <bruno@clisp.org>.
96260 2005-10-21  Simon Josefsson  <jas@extundo.com>
96262         * lib/gc-libgcrypt.c (gc_cipher_open): Handle ECB.
96264 2005-10-21  Simon Josefsson  <jas@extundo.com>
96266         * lib/gc-gnulib.c: Support ARCTWO in CBC mode.
96268 2005-10-21  Simon Josefsson  <jas@extundo.com>
96270         * lib/des.h, lib/des.c: New files.
96272         * lib/gc-gnulib.c: Support DES.c
96274 2005-10-21  Simon Josefsson  <jas@extundo.com>
96276         * lib/arctwo.h, lib/arctwo.c: New files.
96278         * lib/gc-gnulib.c: Support ARCTWO.
96280 2005-10-21  Simon Josefsson  <jas@extundo.com>
96282         * lib/arctwo.h (arctwo_setkey): Protect variable in CPP macro,
96283         suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
96285 2005-10-21  Simon Josefsson  <jas@extundo.com>
96287         * gnulib-tool (func_import, func_create_testdir): Define automake
96288         conditional GL_COND_LIBTOOL if libtool is used (to be used by modules
96289         Makefile.am snippet),
96290         suggested by Bruno Haible <bruno@clisp.org>.
96292         * modules/gc (Makefile.am): Use it.
96294 2005-10-21  Bruno Haible  <bruno@clisp.org>
96296         * gnulib-tool (func_import, func_create_testdir): Add quoting to last
96297         patch.
96299 2005-10-19  Simon Josefsson  <jas@extundo.com>
96301         * tests/test-gc-rijndael.c: New file.
96303         * modules/gc-rijndael, modules/gc-rijndael-test: New files.
96305 2005-10-19  Simon Josefsson  <jas@extundo.com>
96307         * tests/test-gc-md4.c, tests/test-gc-md5.c: Test gc_hash_buffer
96308         interface too.
96310 2005-10-19  Simon Josefsson  <jas@extundo.com>
96312         * tests/test-gc-arcfour.c: New file.
96314         * modules/gc-arcfour, modules/gc-arcfour-tests: New files.
96316 2005-10-19  Simon Josefsson  <jas@extundo.com>
96318         * modules/gc-md4, modules/gc-md4-tests: New file.
96320         * tests/test-gc-md4.c: New file.
96322 2005-10-19  Simon Josefsson  <jas@extundo.com>
96324         * m4/gc-md4.m4: New file.
96326 2005-10-19  Simon Josefsson  <jas@extundo.com>
96328         * m4/gc-hmac-md5.m4, gc-hmac-sha1.m4, gc-md4.m4,
96329         gc-md5.m4, gc-sha1.m4: Fix typo, suggested by Stepan Kasal
96330         <kasal@ucw.cz>.
96332 2005-10-19  Simon Josefsson  <jas@extundo.com>
96334         * m4/gc-arcfour.m4: New file.
96336         * m4/gc-rijndael.m4: New file.
96338 2005-10-19  Simon Josefsson  <jas@extundo.com>
96340         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Support MD4.
96342 2005-10-19  Simon Josefsson  <jas@extundo.com>
96344         * lib/gc-gnulib.c: Support ARCFOUR.
96346 2005-10-19  Simon Josefsson  <jas@extundo.com>
96348         * lib/gc-gnulib.c: Implement gc_cipher_* API, currently only with AES
96349         support.
96351         * lib/gc.h: Add ECB enum type.
96353         * lib/hmac-md5.c, hmac-sha1.c: Include memxor.h.
96355 2005-10-18  Simon Josefsson  <jas@extundo.com>
96357         * tests/test-md5.c: New file.
96359         * modules/md5-tests: New file.
96361 2005-10-18  Simon Josefsson  <jas@extundo.com>
96363         * tests/test-md4.c: New file.
96365         * modules/md4, modules/md4-tests: New files.
96367 2005-10-18  Simon Josefsson  <jas@extundo.com>
96369         * m4/md4.m4: New file.
96371 2005-10-18  Simon Josefsson  <jas@extundo.com>
96373         * lib/md4.h, lib/md4.c: New files, based on md5.?.
96375 2005-10-17  Stepan Kasal  <kasal@ucw.cz>
96377         * gnulib-tool (func_create_testdir): Omit the second check whether
96378         BUILT_SOURCES in nonempty.
96380 2005-10-17  Simon Josefsson  <jas@extundo.com>
96382         * tests/test-rijndael.c: New file.
96384 2005-10-17  Simon Josefsson  <jas@extundo.com>
96386         * modules/sha1: Depend on stdint instead of md5.
96388         * modules/md5: Depend on stdint, remove uint32_t.
96390 2005-10-17  Simon Josefsson  <jas@extundo.com>
96392         * modules/gc-sha1-tests: New file.
96394         * tests/test-gc-sha1.c: New file.
96396 2005-10-17  Simon Josefsson  <jas@extundo.com>
96398         * m4/md5.m4: Remove call to uint32_t.m4.
96400 2005-10-17  Simon Josefsson  <jas@extundo.com>
96402         * lib/sha1.c: Use uint32_t instead of md5_uint32.t
96404         * lib/sha1.h: Use stdint.h and uint32_t instead of md5_uint32 from
96405         md5.h.
96407         * lib/md5.c: Use uin32_t.  Fix non-gcc UNALIGNED_P macro.
96409         * lib/md5.h: Use stdint.h and uint32_t.  Doc fix.
96411 2005-10-17  Simon Josefsson  <jas@extundo.com>
96413         * lib/gc.h, gc-libgcrypt.c: Add more hash types/functions.
96415 2005-10-17  Simon Josefsson  <jas@extundo.com>
96417         * lib/gc.h, gc-libgcrypt.c: Add ciphers.
96419 2005-10-17  Simon Josefsson  <jas@extundo.com>
96421         * lib/gc-libgcrypt.c (gc_hmac_sha1): Fix assert.
96423         * lib/gc.h (gc_nonce, gc_pseudo_random, gc_random): Add prototypes.
96425 2005-10-17  Bruno Haible  <bruno@clisp.org>
96427         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Change the return statement so
96428         that it can also be used in a test.
96430 2005-10-16  Bruno Haible  <bruno@clisp.org>
96432         * gnulib-tool (func_emit_tests_Makefile_am): Also define
96433         TESTS_ENVIRONMENT, so that individual tests can augment it.
96435         * gnulib-tool (func_create_testdir): Use an intermediate target for
96436         building $(BUILT_SOURCES). Needed because BUILT_SOURCES can contain
96437         macros, like $(ALLOCA_H), which cannot be passed through the command
96438         line.
96440 2005-10-15  Simon Josefsson  <jas@extundo.com>
96442         * modules/rijndael-tests: New file.
96444         * modules/rijndael: New file.
96446 2005-10-15  Simon Josefsson  <jas@extundo.com>
96448         * m4/rijndael.m4: New file.
96450 2005-10-15  Simon Josefsson  <jas@extundo.com>
96452         * lib/rijndael-api-fst.h, lib/rijndael-api-fst.c: New files.
96454         * lib/rijndael-alg-fst.h, lib/rijndael-alg-fst.c: New files.
96456 2005-10-14  Simon Josefsson  <jas@extundo.com>
96458         * tests/test-arcfour.c: New file.
96460         * modules/arcfour, modules/arcfour-tests: New files.
96462 2005-10-14  Simon Josefsson  <jas@extundo.com>
96464         * m4/arcfour.m4: New file.
96466 2005-10-14  Simon Josefsson  <jas@extundo.com>
96468         * lib/arcfour.h, lib/arcfour.c: New files.
96470 2005-10-14  Roland McGrath  <roland@redhat.com>
96472         Import from libc.  [BZ #1331]
96473         * lib/obstack.h [!__STDC__] (obstack_int_grow_fast): Fix misnamed
96474         macro argument.
96475         Reported by Matej Vela <vela@debian.org>.
96477 2005-10-14  Paul Eggert  <eggert@cs.ucla.edu>
96479         * lib/obstack.c [defined _LIBC && defined USE_IN_LIBIO]: Don't
96480         include <wchar.h>; no longer needed.
96482 2005-10-14  Paul Eggert  <eggert@cs.ucla.edu>
96484         * config/srclist.txt: Add glibc bug 321 for obstack.c, obstack.h.
96486 2005-10-14  Jakub Jelinek  <jakub@redhat.com>
96487         and  Ulrich Drepper  <drepper@redhat.com>
96489         Import from libc.
96490         * lib/obstack.c (print_and_abort) [defined _LIBC]: Use __fxprintf
96491         instead of inline stream orientation test and two separate
96492         function calls.  Pay no attention to USE_IN_LIBIO.
96494 2005-10-13  Simon Josefsson  <jas@extundo.com>
96496         * modules/gc-hmac-md5-tests: New file.
96498         * tests/test-gc-hmac-sha1.c: New file.
96500         * tests/test-gc.c (main): Remove MD5 and HMAC-MD5 tests.
96502         * modules/gc-hmac-md5-tests: New file.
96504         * tests/test-gc-md5.c: New file.
96506         * modules/gc-md5-tests: New file.
96508 2005-10-13  Simon Josefsson  <jas@extundo.com>
96510         * lib/gc-pbkdf2-sha1.c (gc_pbkdf2_sha1): Optimize CEIL computation.
96511         Move memory allocation outside of loop.
96513 2005-10-13  Paul Eggert  <eggert@cs.ucla.edu>
96515         * lib/mkdir-p.c (make_dir_parents): Don't report an error if an
96516         intermediate directory is in a read-only file system.  Problem
96517         reported by Eric Blake.
96519 2005-10-13  Oskar Liljeblad  <oskar@osk.mine.nu>
96521         * modules/human (Depends-on): Depend on xstrtoumax, not xstrtol.
96523 2005-10-12  Simon Josefsson  <jas@extundo.com>
96525         * tests/test-hmac-sha1.c: New file.
96527         * modules/hmac-sha1-tests: New file.
96529         * modules/hmac-sha1: New file.
96531 2005-10-12  Simon Josefsson  <jas@extundo.com>
96533         * modules/gc-sha1: New file.
96535 2005-10-12  Simon Josefsson  <jas@extundo.com>
96537         * modules/gc-pbkdf2-sha1, modules/gc-pbkdf2-sha1-tests: New files.
96539         * tests/test-gc-pbkdf2-sha1.c: New file.
96541 2005-10-12  Simon Josefsson  <jas@extundo.com>
96543         * modules/gc-md5, modules/gc-hmac-md5: New files.
96545         * modules/gc (Files): Remove md5, memxor and hmac files.
96547 2005-10-12  Simon Josefsson  <jas@extundo.com>
96549         * m4/gc-pbkdf2-sha1.m4: New file.
96551         * m4/gc-hmac-sha1.m4: New file.
96553         * m4/gc-sha1: New file.
96555         * m4/hmac-sha1.m4: New file.
96557 2005-10-12  Simon Josefsson  <jas@extundo.com>
96559         * m4/gc-md5.m4, m4/gc-hmac-md5.m4: New files.
96561         * m4/gc.m4: Don't call gl_MD5, gl_MEMXOR or gl_HMAC_MD5.
96563 2005-10-12  Simon Josefsson  <jas@extundo.com>
96565         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Use Gc_rc for return types,
96566         suggested by Bruno Haible <bruno@clisp.org>.
96568 2005-10-12  Simon Josefsson  <jas@extundo.com>
96570         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Support SHA-1.
96572 2005-10-12  Simon Josefsson  <jas@extundo.com>
96574         * lib/gc-pbkdf2-sha1.c: New file.
96576         * lib/gc.h: Add gc_pbkdf2_sha1 prototype.
96578 2005-10-12  Simon Josefsson  <jas@extundo.com>
96580         * lib/gc-libgcrypt.c (gc_hmac_sha1): New function.
96582         * lib/gc-gnulib.c (gc_hmac_sha1): New function.
96584 2005-10-12  Simon Josefsson  <jas@extundo.com>
96586         * lib/gc-gnulib.c: Condition MD5 and HMAC-MD5 use on GC_USE_MD5 and
96587         GC_USE_HMAC_MD5, respectively.
96589         * lib/gc-libgcrypt.c (gc_md5): Fix assert call.
96590         (gc_md5): Fix typo.
96592         * lib/gc.h (gc_hash_buffer): Use gc_hash in prototype.
96594         * lib/gc-libgcrypt.c (gc_hash_buffer): Ditto.
96596         * lib/gc-gnulib.c (gc_hash_buffer): Ditto.
96598 2005-10-12  Bruno Haible  <bruno@clisp.org>
96600         * m4/stdbool.m4 (gl_STDBOOL_H): Define as an alias of AM_STDBOOL_H.
96601         Reported by Stepan Kasal <kasal@ucw.cz>.
96603 2005-10-11  Simon Josefsson  <jas@extundo.com>
96605         * tests/test-crc.c: New file.
96607         * modules/crc, modules/crc-tests: New files.
96609 2005-10-11  Simon Josefsson  <jas@extundo.com>
96611         * m4/crc.m4: New file.
96613 2005-10-11  Simon Josefsson  <jas@extundo.com>
96615         * lib/gc.h: Add gc_hash and gc_hash_buffer.
96617         * lib/gc-gnulib.c (gc_hash_buffer): Add.  Reorder #include's.
96619         * lib/gc-libgcrypt.c (gc_hash_buffer): Add.
96621 2005-10-11  Simon Josefsson  <jas@extundo.com>
96623         * lib/crc.h, lib/crc.c: New files.
96625         * lib/gc.h (gc_hash_buffer): Add doc.
96627 2005-10-11  Bruno Haible  <bruno@clisp.org>
96629         * modules/c-strcasestr: New file.
96630         * MODULES.html.sh (String handling <string.h>): Add c-strcasestr.
96632 2005-10-11  Bruno Haible  <bruno@clisp.org>
96634         * modules/c-strcase: New file.
96635         * MODULES.html.sh (String handling <string.h>): Add c-strcase.
96637 2005-10-11  Bruno Haible  <bruno@clisp.org>
96639         * lib/strcasecmp.c: Include limits.h.
96640         (strcasecmp): Avoid integer overflow on exotic platforms.
96641         * lib/strncasecmp.c: Include limits.h.
96642         (strncasecmp): Avoid integer overflow on exotic platforms.
96643         Reported by Paul Eggert.
96645 2005-10-11  Bruno Haible  <bruno@clisp.org>
96647         * lib/c-strcasestr.h: New file, from GNU gettext.
96648         * lib/c-strcasestr.c: New file, from GNU gettext.
96650 2005-10-11  Bruno Haible  <bruno@clisp.org>
96652         * lib/c-strcase.h: New file, from GNU gettext.
96653         * lib/c-strcasecmp.c: New file, from GNU gettext.
96654         * lib/c-strncasecmp.c: New file, from GNU gettext.
96656 2005-10-10  Paul Eggert  <eggert@cs.ucla.edu>
96658         * modules/mempcpy (License): GPL -> LGPL.
96659         * modules/strchrnul (License): Likewise.
96660         * modules/sysexits (License): Likewise.
96662 2005-10-08  Simon Josefsson  <jas@extundo.com>
96664         * config/srclist.txt: Bug 1423 is closed, but 1439 remains.
96666 2005-10-07  Simon Josefsson  <jas@extundo.com>
96668         * m4/memxor.m4: Remove gl_C_RESTRICT call.
96670 2005-10-06  Simon Josefsson  <jas@extundo.com>
96672         * tests/test-hmac-md5.c: New file.
96674         * modules/hmac-md5-tests: New file.
96676         * modules/hmac-md5: New file.
96678 2005-10-06  Simon Josefsson  <jas@extundo.com>
96680         * m4/hmac-md5.m4: New file.
96682         * m4/memxor.m4: Require gl_C_RESTRICT.
96684 2005-10-06  Simon Josefsson  <jas@extundo.com>
96686         * lib/memxor.c (memxor): Avoid casts and warnings.
96688 2005-10-06  Simon Josefsson  <jas@extundo.com>
96690         * lib/hmac-md5.c: New file.
96692         * lib/hmac.h: New file.
96694 2005-10-06  Paul Eggert  <eggert@cs.ucla.edu>
96696         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check that bool
96697         promotes to int, not unsigned int, to catch the AIX 5.3
96698         compiler bug.
96700 2005-10-05  Simon Josefsson  <jas@extundo.com>
96702         * modules/memxor: New file.
96704         * modules/iconv (Files): Move config.rpath to havelib, it is used
96705         there.
96707         * modules/havelib (Files): Add config.rpath.
96709 2005-10-05  Simon Josefsson  <jas@extundo.com>
96711         * m4/memxor.m4: New file.
96713 2005-10-05  Simon Josefsson  <jas@extundo.com>
96715         * lib/memxor.c (memxor): Fix compiler error.
96717         * lib/md5.h (MD5_DIGEST_SIZE, MD5_BLOCK_SIZE): Add, see also
96718         <http://sourceware.org/bugzilla/show_bug.cgi?id=1423>.
96720         * lib/memxor.h, lib/memxor.c: New files.
96722         * lib/getaddrinfo.h: Don't protect sys/types.h with HAVE_SYS_TYPES_H,
96723         we assume all systems have it, suggested by Jim Meyering
96724         <jim@meyering.net>.  Remove HAVE_SYS_SOCKET_H test too, to see if
96725         any systems lack sys/socket.h; mingw32 is known to lack it, but we
96726         don't support it yet anyway.  Also remove HAVE_NETDB_H test, for
96727         same reasons.
96729 2005-10-05  Simon Josefsson  <jas@extundo.com>
96731         * config/srclist.txt: Add glibc bug 1423 for md5.h.
96733 2005-10-05  Paul Eggert  <eggert@cs.ucla.edu>
96735         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Don't check for
96736         sys/socket.h, netdb.h, sys/types.h; the checks areno longer
96737         needed, since the source code now assumes these .h files.
96739 2005-10-05  Derek Price  <derek@ximbiot.com>
96741         * lib/getdelim.c (SIZE_MAX): New macro, if not already defined.
96743 2005-10-05  Bruno Haible  <bruno@clisp.org>
96745         * modules/stdint (License): Change to LGPL.
96747 2005-10-04  Simon Josefsson  <jas@extundo.com>
96749         * lib/getaddrinfo.h: Move sys/types.h include first, reported by "Mark
96750         D. Baushke" <mdb@gnu.org>.
96752 2005-10-04  Bruno Haible  <bruno@clisp.org>
96754         * lib/verify.h (verify_true): Provide alternative definition for C++.
96756 2005-10-03  Paul Eggert  <eggert@cs.ucla.edu>
96758         * lib/getdelim.c: Include getdelim.h first.  Include <limits.h>.
96759         (SSIZE_MAX): New macro, if not already defined.
96760         (getdelim): Fix buffer overrun on 64-bit hosts with lines longer
96761         than 2 GiB.
96763 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
96765         Sync from coreutils.
96766         * m4/openat.m4 (gl_FUNC_OPENAT): Check for fdopendir.
96767         * m4/ullong_max.m4 (gl_ULLONG_MAX): Simplify so that it merely
96768         defines ULONG_MAX_LT_ULLONG_MAX.  Thomas M.Ott reports that
96769         ULLONG_MAX doesn't work with 2.7.2.1.
96771 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
96773         * modules/xreadlink (Makefile.am): Remove lib_SOURCES.
96774         From Ben Pfaff.
96776         * modules/exclude (Depends-on): Depend on verify.
96777         * modules/strtoimax (Depends-on): Likewise.
96778         * modules/utimecmp (Depends-on): Likewise.
96780 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
96782         * lib/exclude.c: Include verify.h.
96783         (verify): Remove.  All callers changed to use verify.h's version.
96784         * lib/strtoimax.c: Likewise.
96785         * lib/utimecmp.c: Likewis.e
96787         Sync from coreutils.
96788         * lib/.cppi-disable: Add getaddrinfo.h, getdelim.h, getline.h,
96789         getpass.c, mbchar.h, mbuiter.h, strcase.h, strnlen.h, strnlen1.h.
96790         * lib/.cvsignore: Add fts.h, search.h, t-fpending.
96791         * lib/settime.c (settime): Fix { typo in previous patch.  Also, don't
96792         bother returning ENOSYS if settimeofday or stime fails; just let
96793         them return whatever errno they want to return.
96794         * lib/utimens.c: Include unistd.h, for dup2.
96795         (futimens): Fix typo: HAVE_FUTIMESAT was misspelled in an #if.
96796         (futimens) [! HAVE_FUTIMESAT]: If !file, set errno before returning -1.
96798 2005-10-02  Jim Meyering  <jim@meyering.net>
96800         Sync from coreutils.
96801         * m4/utimes.m4 (gl_FUNC_UTIMES): Detect the version of utimes
96802         from glibc-2.2.5 that fails for read-only files.
96804 2005-10-02  Jim Meyering  <jim@meyering.net>
96806         Sync from coreutils.
96807         * lib/fts-cycle.c [HAVE_CONFIG_H]: Include <config.h>.
96808         * lib/openat-die.c: Use `#ifdef HAVE_CONFIG_H', not
96809         `#if HAVE_CONFIG_H'.
96810         * lib/openat.c (fdopendir): Do not define if HAVE_FDOPENDIR.
96811         Remove AT_FDCWD test.
96812         Do not consume the fd unless successful.
96813         * lib/openat.h (fdopendir): Do not define if HAVE_FDOPENDIR.
96814         * lib/settime.c (settime): Move the HAVE_STIME block `up' into an #elif
96815         block, so that we don't even try to compile it if settimeofday is
96816         available.  This works around a compilation failure on OSF1 V5.1,
96817         due to stime requiring a `long int*' while tv_sec is `int'.
96819 2005-10-02  Alfred M. Szmidt  <ams@gnu.org>
96821         Sync from coreutils.
96822         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Compare $gl_have_path...
96823         against `yes', rather than just testing for nonempty.
96825 2005-10-01  Simon Josefsson  <jas@extundo.com>
96827         * m4/getaddrinfo.m4: Include sys/types.h for sys/socket.h, on FreeBSD
96828         and Darwin.
96830         * m4/getaddrinfo.m4: Use AC_GNU_SOURCE, GNU only declare getaddrinfo
96831         as an (POSIX) extension.  Check for sys/types.h, sys/socket.h, and
96832         netdb.h too, needed by getaddrinfo.h.  Check if getaddrinfo,
96833         freeaddrinfo and gai_strerror are declared by the POSIX headers.
96834         Check if struct addrinfo is declared.
96836 2005-10-01  Simon Josefsson  <jas@extundo.com>
96838         * lib/getaddrinfo.h: Protect #include's of sys/socket.h and netdb.h.
96839         Only define struct addrinfo if !HAVE_STRUCT_ADDRINFO.  Protect
96840         AI_* and EAI_* definitions.  Protect function declarations.
96842 2005-10-01  Jim Meyering  <jim@meyering.net>
96844         Sync from coreutils.
96846         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Look for getservbyname in these
96847         libraries [inet nsl socket xnet].  Nelson Beebe reported that with
96848         native cc on Solaris 7, getaddrinfo.c requires -lsocket.
96849         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Check for gethostbyname
96850         in the inet and nsl libraries.  Required on Solaris 5.7.
96852 2005-10-01  Jim Meyering  <jim@meyering.net>
96854         Sync from coreutils.
96855         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Check for gethostbyname
96856         in the inet and nsl libraries.  Required on Solaris 5.7.
96858 2005-10-01  Eric Blake  <ebb9@byu.net>  (tiny change)
96860         * lib/getdelim.c (getdelim): Remove unused variables.
96862 2005-09-29  Paul Eggert  <eggert@cs.ucla.edu>
96864         * lib/xtime.h (XTIME_PRECISION): Now of type int, not long long int,
96865         so that the code works even with ancient cpp.  Portability problem
96866         with GCC 2.7.2.1 reported by Thomas M.Ott.
96868 2005-09-27  Paul Eggert  <eggert@cs.ucla.edu>
96870         * modules/regex (Depends-on): Add strcase.
96872         * modules/gethostname (Licence): Change from GPL to LGPL, since
96873         gethostname.c is a trivial implementation of a standard library
96874         function.
96875         * modules/poll (License): Change from GPL to LGPL, since it's
96876         derived from LGPL code.
96878 2005-09-27  Jim Meyering  <jim@meyering.net>
96880         * lib/getcwd.c: Change #ifdef<TAB>HAVE_CONFIG_H to #ifdef
96881         HAVE_CONFIG_H.
96883         * lib/intprops.h (signed_type_or_expr__): Define.
96884         (INT_STRLEN_BOUND) [__GNUC__]: Use a slightly tighter bound
96885         for unsigned types.
96887 2005-09-26  Paul Eggert  <eggert@cs.ucla.edu>
96889         * lib/verify.h (verify_expr): Remove, replacing with:
96890         (verify_true): New macro that returns true instead of void.
96891         (verify_type__): Remove.
96892         (verify): Use verify_true rather than verify_type__.
96894 2005-09-26  Bruno Haible  <bruno@clisp.org>
96896         * modules/mbchar (Include): Mention that HAVE_WCHAR_H && HAVE_WCTYPE_H
96897         is necessary.
96898         (lib_SOURCES): Remove mbchar.c.
96899         * modules/mbfile (Include): Mention that HAVE_MBRTOWC is necessary.
96900         (Files): Add m4/mbrtowc.m4.
96901         * modules/mbiter: Likewise.
96902         * modules/mbuiter: Likewise.
96904 2005-09-26  Bruno Haible  <bruno@clisp.org>
96906         * m4/mbchar.m4 (gl_MBCHAR): Check for wchar.h and wctype.h. Don't
96907         compile mbchar.c if they are not both present.
96908         * m4/mbfile.m4 (gl_MBFILE): Require gl_FUNC_MBRTOWC.
96909         * m4/mbiter.m4 (gl_MBITER): Likewise.
96910         * m4/strstr.m4 (gl_PREREQ_STRSTR): Use AC_REQUIRE.
96911         * m4/strcasestr.m4 (gl_PREREQ_STRCASESTR): Likewise.
96912         * m4/strcase.m4 (gl_PREREQ_STRCASECMP): Likewise.
96914 2005-09-25  Jim Meyering  <jim@meyering.net>
96916         * modules/inet_ntop (Depends-on): Add socklen, since inet_ntop.c
96917         also uses socklen_t.
96919 2005-09-24  Paul Eggert  <eggert@cs.ucla.edu>
96921         * lib/utimens.c (ENOSYS): Define if not already defined.
96922         (futimens): Support having a null PATH if the file descriptor
96923         is nonnegative.
96925         * lib/regex_internal.h (__GNUC_PREREQ, always_inline, inline, pure):
96926         Remove.
96927         (__attribute): Define to empty unless GCC 3.1 or later.
96928         This works around a core dump on OpenBSD 3.4, which has GCC
96929         2.95.3, which dumps core when given __attribute__(()).  It also
96930         simplifies other tests, since we really don't want to bother with
96931         worrying about which ancient version of GCC supported what.
96932         Original problem reported by Yoann Vandoorselaere, with part of
96933         the fix suggested by Derek Price.
96935 2005-09-24  Jim Meyering  <jim@meyering.net>
96937         * lib/verify.h (verify_type__): Use `unsigned int' as the bitfield type
96938         so we can once again use a positive bitfield width of 1 -- now we
96939         don't have to explain why we were using a bitfield width of 2.
96941 2005-09-23  Paul Eggert  <eggert@cs.ucla.edu>
96943         * m4/regex.m4 (gl_REGEX): If replacing, define regcomp to rpl_regcomp,
96944         and similarly for the other external symbols.  Problem reported
96945         by James Gallager.
96947         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Catch Sun Studio 10u1 on Linux
96948         bug reported by Jim Meyering.
96950         * m4/utimens.m4 (gl_UTIMENS): Check for futimesat.
96951         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Undo previous change;
96952         not needed, since socklen is a prerequisite module.
96954 2005-09-23  Paul Eggert  <eggert@cs.ucla.edu>
96956         * lib/getaddrinfo.c [HAVE_NETINET_IN_H]: Include <netinet/in.h>.
96957         Problem reported by Eric Blake.
96958         (getaddrinfo): Initialize se so that it's not garbage.
96959         Redo internal storage allocation so that it doesn't make unportable
96960         assumptions about alignment.
96961         Fix a memory leak.
96963         * lib/utimens.c (futimens): Use futimesat if available.
96964         Prefer it to futimes since it doesn't have the futimes bug.
96966         * lib/verify.h (GL_CONCAT0, GL_CONCAT): Remove.
96967         (verify): Don't use the __LINE__ trick, as it doesn't work in general.
96968         Instead, declare a function that returns a pointer to an array,
96969         and use verify_type__ to declare the size of the array.
96970         Problem and germ of a solution reported by Bruno Haible.
96971         (verify_type__): Use 2, not 1, for bitfield size, to avoid
96972         a warning with Irix 6.5 cc.  Problem reported by Bruno Haible.
96974 2005-09-23  Jim Meyering  <jim@meyering.net>
96976         Sync from coreutils.
96977         Correct build failure (socklen_t not defined) on at least
96978         mips-sgi-irix6.5 and alphaev67-dec-osf5.1.
96979         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Require gl_SOCKLEN_T.
96981 2005-09-23  Jim Meyering  <jim@meyering.net>
96983         * modules/getaddrinfo (Depends-on): Add socklen.
96985 2005-09-23  Bruno Haible  <bruno@clisp.org>
96987         * tests/test-verify.c: New file.
96989 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
96991         Sync from coreutils.
96993         * modules/argmatch (Depends-on): Add verify.
96994         * modules/getloadavg (Depends-on): Depend on fcntl-safer, not
96995         unistd-safer.
96996         * modules/save-cwd (Depends-on): Likewise.
96998         * modules/openat (Files): Add lib/openat-die.c.
96999         (Depends-on): Remove error, exitfail.
97000         Add dirname.
97002         * modules/verify: New file.
97003         * MODULES.html.sh (Diagnostics <assert.h>): New section,
97004         with "verify" module.
97006 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
97008         Sync from coreutils.
97010         * m4/backupfile.m4, calloc.m4, chown.m4, cloexec.m4, dup2.m4:
97011         * m4/fileblocks.m4, free.m4, ftruncate.m4, getcwd.m4, getpagesize.m4:
97012         * m4/getugroups.m4, group-member.m4, idcache.m4, link-follow.m4:
97013         * m4/mkstemp.m4, mktime.m4, mountlist.m4, nanosleep.m4, pathmax.m4:
97014         * m4/physmem.m4, posixver.m4, putenv.m4, safe-read.m4, same.m4:
97015         * m4/save-cwd.m4, stdio-safer.m4, unistd-safer.m4, unlinkdir.m4:
97016         * m4/userspec.m4, xgetcwd.m4, xreadlink.m4:
97017         Don't bother checking for string.h, stdlib.h, unistd.h.
97018         * m4/fts.m4 (gl_FUNC_FTS_CORE): Don't require
97019         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK; that's now the lstat
97020         module's job.
97021         * m4/jm-macros.m4 (gl_MACROS): Likewise.
97022         * m4/prereq.m4 (gl_PREREQ): Add gl_FUNC_LSTAT.
97024         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): New macro.
97025         (gl_GETDATE): Use it.
97027         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Don't bother checking for unistd.h.
97029 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
97031         Sync from coreutils.
97033         * lib/.cppi-disable: Add regcomp.c, regex_internal.c, regex_internal.h,
97034         stat-time.h.
97035         * lib/argmatch.h: Include verify.h
97036         (ARGMATCH_VERIFY): Use verify rather than rolling our own.
97037         (ARGMATCH_ASSERT): Remove; unused.
97038         * lib/canonicalize.c: Assume STDC_HEADERS.
97039         * lib/exclude.c: Include "strcase.h".
97040         * lib/regex_internal.h [!defined _LIBC]: Likewise.
97041         * lib/getusershell.c: Include stdio--.h rather than stdio.h
97042         and stdio-safer.h.
97043         (getusershell): Call fopen, not fopen_safer.
97044         * lib/save-cwd.c: Include fcntl--.h rather than fcntl.h.
97045         Do not include unistd-safer.h.
97046         (save_cwd): Don't call fd_safer; no longer needed
97047         now that we include fcntl--.h.
97049         * lib/getdate.y (relative_time): New type.
97050         (RELATIVE_TIME_0): New constant.
97051         (parser_control): Use relative_time instead of doing it ourselves.
97052         (%union): Add new relative_time rel member.
97053         (tYEAR_UNIT, tMONTH_UNIT, tHOUR_UNIT, tMINUTE_UNIT, tSEC_UNIT):
97054         Now typeless.
97055         (relunit, relunit_snumber): Now of type rel.
97056         (zone, rel, relunit, get_date): Adjust to above changes.
97058         * lib/getloadavg.c: Include fcntl--.h rather than fcntl.h.
97059         Do not include unistd-safer.h.
97060         (getloadavg): Don't call fd_safer; no longer needed
97061         now that we include fcntl--.h.
97063         * lib/mkdir-p.c (ENOSYS): Define to EEXIST if not defined.
97064         (make_dir_parents): Treat ENOSYS like EEXIST.
97066         Improve quality of diagnostics on restore_cwd failure.
97067         * lib/mkdir-p.h (make_dir): Remove.  All uses replaced by mkdir.
97068         (make_dir_parents): Last arg is now int * (for errno), not bool *.
97069         * lib/mkdir-p.c (make_dir, make_dir_parents): Likewise.
97070         Rewrite "mkdir -p" algorithm to avoid the need for "stat"
97071         each time through the loop.  Do not diagnose restore_cwd failure;
97072         that is the caller's job (and perhaps the caller does not care).
97074         * lib/mkdir-p.c (CLEANUP_CWD, CLEANUP): Remove.
97075         (make_dir_parents): Revamp to avoid need for CLEANUP_CWD, CLEANUP.
97076         If the file already exists but is not a directory, don't bother
97077         to try to make its parents.
97078         Close potential file descriptor leak if we can't chdir("/") (!).
97079         Don't always return true if chdir($PWD) fails; return true only
97080         if the requested action was done successfully (except for the
97081         chdir($PWD)).
97082         Don't log final directory unless we actually made it.
97083         Refactor to avoid duplicate code to fix up permissions.
97084         Don't attempt to fix up parent permissions if chdir($PWD) fails.
97086         * lib/strftime.c (my_strftime): Rewrite the previous change slightly,
97087         to make it a bit faster and (I hope) clearer.
97088         * lib/strftime.c (my_strftime): Add support for %:z, %::z, %:::z.
97089         Fix bug in formats like %2N.
97091         * lib/verify.h: New file.
97093 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
97095         Sync from coreutils.
97096         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Check for netinet/in.h.
97098 2005-09-22  Jim Meyering  <jim@meyering.net>
97100         Sync from coreutils.
97102         * m4/lstat.m4 (gl_FUNC_LSTAT):
97103         Use AC_LIBSOURCES to require lstat.c and lstat.h.
97104         Remove obsolete comment.
97105         * m4/xreadlink.m4: Use AC_LIBSOURCES and AC_LIBOBJ.
97106         * m4/xstrtod.m4: Likewise.
97108         * m4/openat.m4 (gl_FUNC_OPENAT): Add openat-die.c.
97110 2005-09-22  Jim Meyering  <jim@meyering.net>
97112         Sync from coreutils.
97114         * lib/backupfile.c: Use ARGMATCH_VERIFY, just in case.
97116         * lib/posixtm.c (posixtime) [lint]: Initialize *all* of tm0, not just
97117         the .tm_year member, since otherwise gcc-4.0 would now warn about
97118         tm_zone, tm_gmtoff, tm_isdst, tm_yday, tm_wday.
97120         * lib/quotearg.c (quotearg_n_options): Change code to be suboptimal, in
97121         order to avoid an unsuppressible warning from gcc on 64-bit systems.
97123         * lib/getdate.y (get_date): Undo part of the 2005-04-04 change, so that
97124         the command "date -d'2005-03-27 +1 day'" succeeds once again, even
97125         when run in a time zone for which daylight savings time is in effect
97126         for the starting date.
97128         * lib/mkdir-p.c (make_dir_parents): Don't let a failed chdir($PWD)
97129         stop us from restricting permissions of just-created absolute-named
97130         directories.
97131         * lib/mkdir-p.c (CLEANUP_CWD): Return *true*, not false when failing
97132         to restore initial working directory.
97133         * lib/mkdir-p.c (make_dir_parents): New parameter:
97134         different_working_dir, to tell caller if/when we change the working
97135         directory and are unable to return to the initial one.
97136         * lib/mkdir-p.h (make_dir_parents): Update prototype.
97137         * lib/mkdir-p.c (CLEANUP_CWD): Change one more `return 1' to
97138         `return false'.  This fixes a bug introduced on 2004-07-30.
97140         * lib/openat.c (fdopendir): Be sure to close the supplied
97141         file descriptor before returning.  This makes our replacement
97142         implementation a little closer to Solaris's, where fdopendir
97143         ties the file descriptor to the returned DIR* pointer.
97144         * lib/openat.c (unlinkat): New function.
97145         * lib/openat.h (unlinkat): Add prototype.
97146         * lib/openat-die.c (openat_save_fail): Rename from openat_save_die.
97147         (openat_restore_fail): Rename from openat_restore_die.
97148         * lib/openat.c, openat.h: Reflect s/_die/_fail/ renaming.
97150         Provide an alternative to exiting immediately upon save_cwd or
97151         restore_cwd failure.  Now, an application can arrange e.g.,
97152         to perform a longjump in that case.
97153         * lib/openat.c: Include dirname.h.
97154         Use IS_ABSOLUTE_FILE_NAME rather than testing for leading slash.
97155         (rpl_openat, fdopendir, fstatat): Call openat_save_die
97156         and openat_restore_die rather than calling error directly.
97157         Don't include "error.h" or "exitfail.h"; they're no longer needed.
97159         * lib/openat-die.c (openat_save_die, openat_restore_die): New file.
97160         * lib/openat.h (openat_save_die, openat_restore_die): Declare and
97161         define.
97163         * lib/strftime.c [FPRINTFTIME] (fprintftime): Provide a new interface:
97164         size_t fprintftime (FILE *fp, char const *fmt, struct tm const *tm,
97165                             int utc, int nanoseconds);
97166         Background:
97167         date should not have to allocate a megabyte of virtual memory to
97168         handle a format argument like +%1048575T.  When implemented with
97169         strftime, it must allocate such a buffer, use strftime to fill it
97170         in, print it, then free it.
97171         With fprintftime, it simply prints everything and exits.
97172         With no need for memory allocation, that's one fewer way to fail.
97173         * lib/strftime.c (my_strftime): Parse the colons of %:::z *after* the
97174         optional field width, not before, so we accept %9:z, not %:9z.
97175         (my_strftime): Be sure to use L_('x') for literals.
97177         * lib/backupfile.c, lib/canon-host.c, lib/canonicalize.c, lib/chown.c:
97178         * lib/cloexec.c, lib/dup-safer.c, lib/dup2.c, lib/euidaccess.c:
97179         * lib/fd-safer.c, lib/fileblocks.c, lib/fopen-safer.c, lib/fsusage.c:
97180         * lib/ftruncate.c, lib/getcwd.c, lib/getcwd.h, lib/getloadavg.c:
97181         * lib/getopt_.h, lib/getpagesize.h, lib/getugroups.c:
97182         * lib/group-member.c, lib/human.h, lib/idcache.c, lib/mkdir-p.c:
97183         * lib/mountlist.c, lib/nanosleep.c, lib/pathmax.h, lib/physmem.c:
97184         * lib/posixver.c, lib/putenv.c, lib/raise.c, lib/safe-read.c:
97185         * lib/same.c, lib/save-cwd.c, lib/setenv.c, lib/settime.c:
97186         * lib/tempname.c, lib/unlinkdir.c, lib/unsetenv.c, lib/userspec.c:
97187         * lib/xgethostname.c, lib/xreadlink.c:
97188         Assume HAVE_UNISTD_H, i.e., include <unistd.h> unconditionally.
97190         * lib/chown.c, lib/cloexec.c, lib/dup-safer.c, lib/dup2.c:
97191         * lib/fsusage.c, lib/getcwd.c, lib/getloadavg.c, lib/mountlist.c:
97192         * lib/openat.h, lib/save-cwd.c, lib/tempname.c:
97193         Assume HAVE_FCNTL_H (i.e., include <fcntl.h> unconditionally,
97194         and don't include <sys/file.h>).
97196 2005-09-22  Eric Blake  <ebb9@byu.net>  (tiny change)
97198         Sync from coreutils.
97200         * lib/getloadavg.c (getloadavg) [__CYGWIN__]: Port to cygwin.
97201         [__linux__]: Allocate a big enough buffer for /proc/loadavg.
97202         [!LDAV_DONE]: Avoid unused variable warning.
97204 2005-09-21  Bruno Haible  <bruno@clisp.org>
97206         * lib/unicodeio.h (unicode_to_mb): New declaration.
97208 2005-09-20  Derek Price  <derek@ximbiot.com>
97210         * lib/getaddrinfo.c: Don't include <netdb.h> included from
97211         getaddrinfo.h.
97213 2005-09-20  Bruno Haible  <bruno@clisp.org>
97215         * gnulib-tool: Remove trailing slashes from the values specified for
97216         --source-base, --m4-base, --tests-base, --aux-dir.
97217         Suggested by Simon Josefsson <jas@extundo.com>.
97219 2005-09-20  Bruno Haible  <bruno@clisp.org>
97221         * gnulib-tool (func_all_modules, func_modules_transitive_closure,
97222         func_modules_to_filelist, func_import, func_create_testdir): Make all
97223         sorting results locale-independent, so that gnulib-cache.m4 doesn't
97224         change when gnulib-tool is invoked in a different locale.
97226 2005-09-19  Simon Josefsson  <jas@extundo.com>
97228         * m4/socklen.m4: Fix typo.
97230 2005-09-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
97232         Use a consistent style for including <config.h>.
97233         * lib/__fpending.c, lib/acl.c, lib/argmatch.c, lib/argp-help.c,
97234         lib/argp-parse.c, lib/argp-pvh.c, lib/backupfile.c, lib/basename.c,
97235         lib/c-stack.c, lib/calloc.c, lib/check-version.c, lib/cloexec.c,
97236         lib/closeout.c, lib/copy-file.c, lib/creat-safer.c, lib/cycle-check.c,
97237         lib/dirfd.c, lib/dirname.c, lib/dup-safer.c, lib/dup2.c,
97238         lib/euidaccess.c, lib/exclude.c, lib/exitfail.c, lib/fatal-signal.c,
97239         lib/fd-safer.c, lib/file-type.c, lib/fileblocks.c, lib/filemode.c,
97240         lib/filenamecat.c, lib/findprog.c, lib/fnmatch.c, lib/fopen-safer.c,
97241         lib/free.c, lib/fsusage.c, lib/ftruncate.c, lib/full-write.c,
97242         lib/fwriteerror.c, lib/getaddrinfo.c, lib/getcwd.c, lib/getdelim.c,
97243         lib/getline.c, lib/getlogin_r.c, lib/getndelim2.c, lib/getnline.c,
97244         lib/getopt1.c, lib/getpass.c, lib/group-member.c, lib/hard-locale.c,
97245         lib/hash-pjw.c, lib/hash.c, lib/human.c, lib/idcache.c,
97246         lib/inet_ntop.c, lib/isdir.c, lib/long-options.c, lib/malloc.c,
97247         lib/memcasecmp.c, lib/memcmp.c, lib/memcoll.c, lib/memcpy.c,
97248         lib/memmove.c, lib/mkdir-p.c, lib/modechange.c, lib/mountlist.c,
97249         lib/open-safer.c, lib/physmem.c, lib/pipe-safer.c, lib/pipe.c,
97250         lib/poll.c, lib/posixver.c, lib/progname.c, lib/progreloc.c,
97251         lib/putenv.c, lib/quote.c, lib/quotearg.c, lib/readline.c,
97252         lib/readlink.c, lib/realloc.c, lib/regex.c, lib/rename.c, lib/rmdir.c,
97253         lib/rpmatch.c, lib/safe-read.c, lib/same.c, lib/save-cwd.c,
97254         lib/savedir.c, lib/sig2str.c, lib/strcspn.c, lib/strerror.c,
97255         lib/stripslash.c, lib/strncasecmp.c, lib/strndup.c, lib/strnlen.c,
97256         lib/strnlen1.c, lib/strsep.c, lib/strstr.c, lib/strtod.c,
97257         lib/strtoimax.c, lib/strtol.c, lib/strverscmp.c, lib/tempname.c,
97258         lib/time_r.c, lib/userspec.c, lib/utimecmp.c, lib/version-etc-fsf.c,
97259         lib/version-etc.c, lib/wait-process.c, lib/xalloc-die.c, lib/xgetcwd.c,
97260         lib/xmalloc.c, lib/xmemcoll.c, lib/xnanosleep.c, lib/xreadlink.c,
97261         lib/xsetenv.c, lib/xstrndup.c, lib/xstrtoimax.c, lib/xstrtol.c,
97262         lib/xstrtoumax.c, lib/yesno.c:
97263         Standardize inclusion of config.h.
97264         * lib/__fpending.h, lib/dirfd.h, lib/getdate.h, lib/human.h,
97265         lib/inttostr.h:  Removed inclusion of config.h from header files.
97266         * lib/inttostr.c:  Adjusted in-tree users.
97267         * lib/timespec.h: Remove superfluous warning to include config.h.
97268         * lib/atexit.c, lib/chdir-long.c, lib/chown.c, lib/fchown-stub.c,
97269         lib/getgroups.c, lib/gettimeofday.c, lib/lchown.c, lib/lstat.c,
97270         lib/mkdir.c, lib/mkstemp.c, lib/nanosleep.c, lib/openat.c, lib/raise.c,
97271         lib/readtokens0.c, lib/readutmp.c, lib/unlinkdir.c: Guard inclusion of
97272         config.h with HAVE_CONFIG_H.
97274 2005-09-19  Jim Meyering  <jim@meyering.net>
97276         * modules/pathmax (License): Change to LGPL.
97278 2005-09-19  Derek Price  <derek@ximbiot.com>
97280         * config/srclist.txt: glibc's glob.h is now in lib/glob-libc.h.
97282 2005-09-19  Bruno Haible  <bruno@clisp.org>
97284         * gnulib-tool (import): Provide default for --tests-base.
97286 2005-09-19  Bruno Haible  <bruno@clisp.org>
97288         * doc/quote.texi: New file, extracted from gnulib.texi.
97289         * doc/ctime.texi: New file, extracted from gnulib.texi.
97290         * doc/inet_ntoa.texi: New file, extracted from gnulib.texi.
97291         * doc/gnulib-tool.texi: New file, extracted from gnulib.texi.
97292         * doc/gnulib.texi: Include them.
97294 2005-09-18  Bruno Haible  <bruno@clisp.org>
97296         Portability fix.
97297         * gnulib-tool (func_readlink): New function.
97298         (func_ln_if_changed): Use it.
97300 2005-09-18  Bruno Haible  <bruno@clisp.org>
97302         * gnulib-tool: Support --with-tests also with --import.
97303         (func_emit_tests_Makefile_am): Use variables $m4base and $testsbase.
97304         (func_import): Use variables $testsbase and $inctests. Emit a
97305         gl_TESTS_BASE form into gnulib-cache.m4. Create $testsbase/Makefile.am.
97306         Remind the user to add AC_CONFIG_FILES($testsdir/Makefile) and
97307         SUBDIRS += $testsdir.
97308         (func_create_testdir): Update.
97310 2005-09-18  Bruno Haible  <bruno@clisp.org>
97312         * gnulib-tool: Revise --dry-run implementation. Use variable $doit
97313         instead of $dry_run.
97314         (func_cp_if_changed, func_mv_if_changed): Remove functions.
97315         (func_ln_if_changed): Don't handle dry-run here.
97316         (func_import): In dry-run mode, detect more precisely which actions
97317         would be performed, and don't use "...ing" verbs.
97319 2005-09-18  Bruno Haible  <bruno@clisp.org>
97321         * gnulib-tool (func_tmpdir): New function, taken from GNU gettextize.
97322         (func_import): Use join on two temporary files instead of three nested
97323         loops, in order to determine which files are new or old.
97325 2005-09-18  Bruno Haible  <bruno@clisp.org>
97327         * gnulib-tool (func_import): Comment out code that spits out the
97328         new files with --dry-run.
97330 2005-09-18  Bruno Haible  <bruno@clisp.org>
97332         * doc/gnulib.texi (Invoking gnulib-tool): 50% rewritten.
97334 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
97336         * lib/stat-time.h: New file.
97337         * lib/timespec.h (ST_TIME_CMP_NS, ST_TIME_CMP, ATIME_CMP, CTIME_CMP):
97338         (MTIME_CMP, TIMESPEC_NS): Remove.  Now done by stat-time.h,
97339         in a different way.
97340         (timespec_cmp): New function.
97341         * lib/utimecmp.c: Include stat-time.h.
97342         (SYSCALL_RESOLUTION): Depend on whether various struct stat
97343         members exist, not on the obsolescent ST_MTIM_NSEC.
97344         (utimecmp): Use the new stat-time functions rater than TIMESPEC_NS.
97346 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
97348         * config/srclist.txt: Remove glibc bug 1033 and uncomment mktime.c.
97350 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
97352         * MODULES.html.sh (File system functions): Add stat-time.
97353         * modules/stat-time: New file.
97354         * modules/timespec (Files): Remove m4/st_mtim.m4; this
97355         is now done in a different way, by the stat-time module.
97356         * modules/utimecmp (Depends-on): Add stat-time.
97358 2005-09-15  Paul Eggert  <eggert@cs.ucla.edu>
97360         * m4/st_mtim.m4: Remove.  Superseded by...
97361         * m4/stat-time.m4: New file.
97362         * m4/timespec.m4 (gl_TIMESPEC): Require AC_C_INLINE.
97363         Do not invoke AC_STRUCT_ST_MTIM_NSEC; no longer needed.
97365 2005-09-15  Derek Price  <derek@ximbiot.com>
97367         * m4/strstr.m4 (gl_FUNC_STRSTR): Don't define strstr here.
97369 2005-09-15  Derek Price  <derek@ximbiot.com>
97371         * lib/regex_internal.h: Blank `pure' for GNUC < 3.
97372         * lib/regex_internal.c: Ditto, using this...
97373         (__GNUC_PREREQ): ...new macro.
97374         * lib/regcomp.c, regexec.c: Blank `always_inline' for GNUC < 3.1
97375         using...
97376         (__GNUC_PREREQ): ...this new macro.
97378         * lib/strstr.h: Include string.h. Define strstr as a macro here.
97380 2005-09-15  Derek Price  <derek@ximbiot.com>
97381             Paul Eggert  <eggert@cs.ucla.edu>
97383         * lib/regcomp.c, regexec.c, regex_internal.c: Back out previous
97384         changes, consolidating in...
97385         * lib/regex_internal.h: ...this file.
97387 2005-09-13  Jim Meyering  <jim@meyering.net>
97389         * lib/canon-host.c: Filter through gnu indent and reword comments
97390         slightly.
97391         * lib/canon-host.h (ch_strerror_r): Tweak cpp indentation and spacing.
97393 2005-09-13  Derek Price  <derek@ximbiot.com>
97395         * lib/canon-host.c (canon_host_r): Set *cherror on memory allocation
97396         failure.
97397         Reported by Jim Meyering  <jim@meyering.net>.
97399 2005-09-12  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
97401         * lib/base64.c: Typo.
97402         (base64_encode): Put b64str in initialized data section.
97404 2005-09-12  Paul Eggert  <eggert@cs.ucla.edu>
97406         Merge glibc and coreutils changes into gnulib, plus a few
97407         extra fixes.
97408         * lib/md5.c: Use #error rather than a string.
97409         (CYCLIC): New macro, from glibc source.  Use it instead of rol.
97410         * lib/md5.h (__GNUC_PREREQ, __THROW): Define if not defined already.
97411         (__attribute__): Define to empty for non recent-GCC.
97412         (__md5_buffer, __md5_finish_ctx, __md5_init_ctx, __md5_process_block):
97413         (__md5_process_bytes, __md5_read_ctx, __md5_stream):
97414         Renamed from their non-__ counterparts, with new macros replacing
97415         them if not _LIBC.  Add __THROW attribute.
97416         (rol): Remove.
97417         (struct md5_ctx): Align buffer if using GCC.
97418         * lib/sha1.h (struct sha1_ctx): Likewise.
97419         * lib/sha1.c (SWAP): Renamed from the NOTSWAP.  All uses changed.
97420         The old name was backwards.
97421         (NOTSWAP): Remove; not used.
97422         (rol): New macro, moved here from md5.h.
97423         (sha1_process_block): Remove a FIXME that doesn't make sense.
97425 2005-09-12  Derek Price  <derek@ximbiot.com>
97427         Return usable errors from canon-host.
97428         * lib/canon-host.h: New file.
97429         * lib/canon-host.c (canon_host): Wrap...
97430         (canon_host_r): ...this new function, which now relies exclusively on
97431         getaddrinfo.
97432         (ch_strerror): New function.
97433         (last_cherror): New global.
97434         * lib/getaddrinfo.c: Move include of getaddrinfo.h first to test
97435         interface.
97436         (getaddrinfo): Add AI_CANONNAME functionality.  Don't do arithmetic on
97437         void *.
97438         (freeaddrinfo): Free ai->ai_canonname when set.
97440 2005-09-12  Derek Price  <derek@ximbiot.com>
97442         Make canon-host require getaddrinfo.
97443         * m4/canon-host.m4 (gl_CANON_HOST): Remove most dependencies.
97444         AC_LIBSOURCE canon-host.h.  Call...
97445         (gl_PREREQ_CANON_HOST): ...this new function, which requires
97446         gl_GETADDRINFO.
97447         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Compile gai_strerror when needed.
97449 2005-09-12  Derek Price  <derek@ximbiot.com>
97451         * modules/canon-host: Add canon-host.h.  Depend on getaddrinfo.  Make
97452         LGPL.
97453         * modules/getaddrinfo: Add link to opengroup spec.  Depend on strdup.
97455 2005-09-12  Derek Price  <derek@ximbiot.com>
97457         * lib/gai_strerror.c: Include config.h when available.  Include
97458         getaddrinfo.h before other headers to test interface.
97459         Reported by Larry Jones <lawrence.jones@ugs.com>.
97461 2005-09-12  Derek Price  <derek@ximbiot.com>
97462             Paul Eggert  <eggert@cs.ucla.edu>
97464         * modules/glob (Files): Add glob-libc.h.
97466 2005-09-12  Derek Price  <derek@ximbiot.com>
97467             Paul Eggert  <eggert@cs.ucla.edu>
97469         * m4/glob.m4 (gl_GLOB_SUBSTITUTE): AC_LIBSOURCES for glob.c,
97470         glob_.h, glob-libc.h.
97471         (gl_PREREQ_GLOB): Remove _SYS_CDEFS_H hack; no longer needed.
97473 2005-09-12  Derek Price  <derek@ximbiot.com>
97474             Paul Eggert  <eggert@cs.ucla.edu>
97476         * lib/glob-libc.h: Renamed from glob_.h.  The new version is
97477         taken from libc's glob.h, except with '#ifdef __GLOB_GNULIB'
97478         protecting things that should be done only in gnulib contexts.
97479         * lib/glob_.h: New file, containing only the glob things needed for
97480         gnulib.
97481         (GLOB_PREFIX): Remove.  All uses changed to look for __GLOB_GNULIB.
97482         (__GLOB_CONCAT, __GLOB_XCONCAT, __GLOB_ID): Remove; no longer needed.
97483         (glob, globfree, glob_pattern_p): Now defined simply in terms of
97484         rpl_glob, rpl_globfree, rpl_glob_pattern_p.
97485         (__GLOB_GNULIB): New macro, to keep the glob.h changes clearer
97486         and to respect the namespace rules better.
97488 2005-09-08  Simon Josefsson  <jas@extundo.com>
97490         * modules/socklen: New file.
97492 2005-09-08  Simon Josefsson  <jas@extundo.com>
97494         * m4/socklen.m4: New file.
97496 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
97498         * modules/utimens (Files): Add m4/utimbuf.m4, since
97499         m4/utimens.m4 requires gl_CHECK_TYPE_STRUCT_UTIMBUF.
97500         Reported by Sergey Poznyakoff.
97502 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
97504         * lib/glob.c (glob, globfree, __glob_pattern_p): Use old-style function
97505         definitions, since that's the preferred style in glibc.
97506         Fix a minor spacing issue, and update copyright notice to match
97507         glibc's.
97509 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
97511         * config/srclist.txt: Remove glibc bug 1061; it's been fixed.
97513 2005-09-06  Simon Josefsson  <jas@extundo.com>
97515         * lib/getpass.c (getpass): Fix typo, test for HAVE_TCSETATTR and not
97516         TCSETATTR.  Reported by Derek Price <derek@ximbiot.com>.
97518 2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
97520         * lib/regex_internal.h (bitset_not): Add parens to avoid gcc -Wall
97521         warning.
97523 2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
97525         * config/srclist.txt: Add glibc bug 1302.
97527 2005-09-05  Paul Eggert  <eggert@cs.ucla.edu>
97529         Change bitset word type from unsigned int to unsigned long int,
97530         as this has better performance on typical 64-bit hosts.
97531         Port bitset code to hosts with unusual word sizes.
97532         * lib/regcomp.c (build_equiv_class, build_charclass, build_range_exp):
97533         (build_collating_symbol):
97534         Prefer bitset to re_bitset_ptr_t in prototypes, when the actual
97535         argument is a bitset.  This is merely a style issue, but it makes
97536         it clearer that an entire array is expected.
97537         (re_compile_fastmap_iter, init_dfa, init_word_char, optimize_subexps):
97538         * lib/regcomp.c (lower_subexp, parse_bracket_exp, built_charclass_op):
97539         Port to the case where bitset_word is not the same as unsigned int.
97540         * lib/regex_internal.h (bitset_set, bitset_clear, bitset_contain):
97541         (bitset_not, bitset_merge, bitset_set_all, bitset_mask):
97542         Likewise.
97543         * lib/regexec.c (check_dst_limits_calc_pos_1,
97544         check_subexp_matching_top):
97545         (build_trtable, group_nodes_into_DFAstates):
97546         Likewise.
97547         * lib/regcomp.c (re_compile_fastmap_iter, utf8_sb_map, optimize_utf8):
97548         Don't assume that SBC_MAX is a multiple of BITSET_WORD_BITS.
97549         * lib/regex_internal.h (bitset_set_all, bitset_not): Likewise.
97550         * lib/regexec.c (group_nodes_into_DFAstates): Likewise.
97551         * lib/regcomp.c (utf8_sb_map): Don't assume UINT_MAX == 0xffffffff.
97552         * lib/regcomp.c (optimize_subexps, lower_subexp):
97553         Work even if bitset_word has holes in its bitwise representation.
97554         * lib/regex_internal.h (BITSET_WORD_BITS): Likewise.
97555         * lib/regexec.c (check_dst_limits_calc_pos_1,
97556         check_subexp_matching_top):
97557         Likewise.
97558         * lib/regex_internal.c (re_string_reconstruct):
97559         Don't assume UCHAR_MAX == 255.
97560         * lib/regex_internal.h (bitset_set_all): Likewise.
97561         * lib/regex_internal.h (BITSET_WORD_BITS): Renamed from UINT_BITS.
97562         All uses changed.
97563         (BITSET_WORDS): Renamed from BITSET_UINTS.  All uses changed.
97564         (bitset_word): New type, replacing 'unsigned int' for bitset uses.
97565         All uses changed.
97566         (BITSET_WORD_MAX): New macro.
97567         (bitset_set, bitset_clear, bitset_contain, bitset_empty):
97568         (bitset_set_all, bitset_copy):  Now inline functions, not macros.
97569         (bitset_empty, bitset_copy):
97570         Prefer sizeof (bitset) to multiplying it out ourselves.
97571         (bitset_not_merge): Remove; unused.
97572         (bitset_contain): Return bool, not unsigned int with one bit on.
97573         All callers changed.
97574         * lib/regexec.c (build_trtable): Don't assume bitset has no stricter
97575         alignment than re_node_set; do this by defining a new internal
97576         type struct dests_alloc and using it to allocate memory.
97578 2005-09-05  Bruno Haible  <bruno@clisp.org>
97580         * gnulib-tool (func_import): Fix comparison in handling of symbolic
97581         links.
97583 2005-09-04  Martin Lambers  <marlam@marlam.de>  (tiny change)
97585         * modules/size_max (Makefile.am): Add size_max.h
97587 2005-09-04  Derek Price  <derek@ximbiot.com>
97589         * gnulib-tool (func_import): Fix reversed $symbolic logic.
97591 2005-09-03  Simon Josefsson  <jas@extundo.com>
97593         * gnulib-tool: Fix typo.
97595 2005-09-03  Simon Josefsson  <jas@extundo.com>
97597         * config/srclist.txt: Add glibc bug 1293.
97599 2005-09-03  Derek Price  <derek@ximbiot.com>
97601         * m4/getlogin_r (gl_GETLOGIN_R): Fix cut & paste error.
97602         From Larry Jones <lawrence.jones@ugs.com>.
97604 2005-09-02  Simon Josefsson  <jas@extundo.com>
97606         * modules/socklen: New file.
97608 2005-09-02  Simon Josefsson  <jas@extundo.com>
97610         * modules/havelib: New module.
97612         * modules/gettext, modules/iconv, modules/lock, modules/readline:
97613         Use havelib.
97615 2005-09-02  Paul Eggert  <eggert@cs.ucla.edu>
97617         Check for arithmetic overflow when calculating sizes, to prevent
97618         some buffer-overflow issues.  These patches are conservative, in the
97619         sense that when I couldn't determine whether an overflow was possible,
97620         I inserted a run-time check.
97621         * lib/regex_internal.h (re_xmalloc, re_xrealloc, re_x2realloc): New
97622         macros.
97623         (SIZE_MAX) [!defined SIZE_MAX]: New macro.
97624         (re_alloc_oversized, re_x2alloc_oversized, re_xnmalloc):
97625         (re_xnrealloc, re_x2nrealloc): New inline functions.
97626         * lib/regcomp.c (init_dfa, analyze, build_range_exp,
97627         parse_bracket_exp):
97628         (build_equiv_class, build_charclass): Check for arithmetic overflow
97629         in size expression calculations.
97630         * lib/regex_internal.c (re_string_realloc_buffers):
97631         (build_wcs_upper_buffer, re_node_set_add_intersect):
97632         (re_node_set_init_union, re_node_set_insert, re_node_set_insert_last):
97633         (re_dfa_add_node, register_state): Likewise.
97634         * lib/regexec.c (re_search_stub, re_copy_regs, re_search_internal):
97635         (prune_impossible_nodes, push_fail_stack, set_regs, check_arrival):
97636         (build_trtable, extend_buffers, match_ctx_init, match_ctx_add_entry):
97637         (match_ctx_add_subtop, match_ctx_add_sublast): Likewise.
97639 2005-09-02  Paul Eggert  <eggert@cs.ucla.edu>
97641         * modules/inttostr (Files): Add m4/inttypes_h.m4, m4/stdint_h.m4,
97642         m4/ulonglong.m4.  Problem reported by Martin Lambers.
97644 2005-09-02  Bruno Haible  <bruno@clisp.org>
97646         Support for lib vs. lib64 distinction on biarch platforms.
97647         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): New macro.
97648         (AC_LIB_PREFIX): Require it. Use $acl_libdirstem instead of 'lib'.
97649         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Likewise.
97651 2005-09-02  Bruno Haible  <bruno@clisp.org>
97653         * gnulib-tool (import): In the other first-use case, provide defaults
97654         as well.
97656 2005-09-02  Bruno Haible  <bruno@clisp.org>
97658         * config/srclist.txt: lib-link.m4 and lib-prefix.m4 currently have
97659         patches not yet found in the latest gettext release.
97661 2005-09-01  Paul Eggert  <eggert@cs.ucla.edu>
97663         * lib/glob.c (GET_LOGIN_NAME_MAX): Renamed from LOGIN_NAME_MAX,
97664         to avoid a collision with bits/local_lim.h in glibc.
97665         All uses changed.  Problem reported by Dmitry V. Levin in
97666         <http://sources.redhat.com/bugzilla/show_bug.cgi?id=1060>.
97668         * lib/regex_internal.c (build_wcs_upper_buffer): Fix portability
97669         bugs in int versus size_t comparisons.
97670         (re_string_context_at): Fix bug where the code assumed that
97671         Idx is signed.
97673         Use bool where appropriate.
97674         * lib/regcomp.c (re_set_fastmap): ICASE arg is bool, not int.
97675         All callers changed.
97676         (calc_eclosure_iter): Likewise, for ROOT arg.
97677         (parse_bracket_element): Likewise, for ACCEPT_HYPHEN arg.
97678         (build_charclass_op): Likewise, for NON_MATCH arg.
97679         * lib/regex_internal.c (re_string_allocate, re_string_construct):
97680         (re_string_construct_common): Likewise, for ICASE arg.
97681         * lib/regexec.c (re_search_2_stub, re_search_stub):
97682         Likewise, for RET_LEN arg.
97683         (check_matching): Likewise, for FL_LONGEST_MATCH arg.
97684         (set_regs): Likewise, for FL_BACKTRACK arg.
97685         * lib/regcomp.c (re_compile_fastmap_iter, optimize_utf8):
97686         (duplicate_node_closure, calc_inveclosure, calc_eclosure):
97687         (calc_eclosure_iter, parse_bracket_exp):
97688         Use bool for internal variables that are booleans.
97689         * lib/regexec.c (re_search_internal, check_matching,
97690         proceed_next_node):
97691         (set_regs, build_sifted_states, sift_states_bkref):
97692         (check_arrival_add_next_nodes, check_arrival_expand_ecl_sub):
97693         (expand_bkref_cache, build_trtable, group_nodes_into_DFAstates):
97694         (find_collation_sequence_value):
97695         Likewise.
97696         * lib/regex_internal.c (re_node_set_insert, re_node_set_insert_last):
97697         (re_node_set_compare):
97698         Return bool, not int. All callers changed.
97699         * lib/regexec.c (check_halt_node_context, check_dst_limits):
97700         (build_trtable, check_node_accept): Likewise.
97701         * lib/regex_internal.h: Include stdbool.h.
97703         Fix bugs uncovered when converting to bool.
97704         * lib/regcomp.c (calc_eclosure_iter): Check for storage allocation
97705         failure instead of charging ahead blindly.
97706         * lib/regex_internal.c (register_state): Likewise.
97707         * lib/regexec.c (re_search_2_stub): Use simpler method than boolean
97708         for freeing internal storage.
97709         (group_nodes_into_DFA_states): Use unsigned int, not int, for
97710         bitset pieces used as boolean, to avoid undefined behavior
97711         on hosts that do int overflow checking.
97713 2005-09-01  Paul Eggert  <eggert@cs.ucla.edu>
97715         * config/srclist.txt: Add glibc bugs 1285-1287.
97717 2005-09-01  Jim Meyering  <jim@meyering.net>
97719         * m4/lchown.m4: Require gl_FUNC_CHOWN, for the definition of
97720         CHOWN_MODIFIES_SYMLINK, which is used by lchown.c.
97721         Require gl_STAT_MACROS, too.
97723 2005-09-01  Bruno Haible  <bruno@clisp.org>
97725         * gnulib-tool (import): In the first-use case, provide defaults.
97727 2005-09-01  Bruno Haible  <bruno@clisp.org>
97729         * gnulib-tool (func_import): Remove the .tmp files.
97731 2005-09-01  Bruno Haible  <bruno@clisp.org>
97733         * gnulib-tool (func_import): Fix handling of symbolic links.
97735 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
97737         On 64-bit hosts (where size_t is 64 bits and int is 32 bits), the
97738         old glibc regex code mishandles strings longer than 2**31 bytes.
97739         This patch fixes this when the regex code is used in gnulib
97740         (i.e., outside glibc).
97742         This patch should not affect the use of the regex code inside
97743         glibc.  No doubt this problem also needs to be handled for glibc
97744         as well, but the result will be an incompatible change to the
97745         glibc ABI, and the old ABI will have to be supported too.  That
97746         can be the subject for another patch.
97748         * lib/regex.h (_REGEX_LARGE_OFFSETS): New feature-test macro,
97749         governing whether the rest of this patch is active.  By default,
97750         the macro is disabled and the patch has no effect.
97751         (regoff_t) [defined _REGEX_LARGE_OFFSETS]: Define to off_t, not int.
97752         (__re_idx_t, __re_size_t, __re_long_size_t): New types.
97753         (struct re_pattern_buffer, re_search, re_search_2, re_match):
97754         (re_match_2, re_set_registers): Use the new types.
97755         * lib/regex_internal.h (Idx, re_hashval_t): New types.
97756         (REG_MISSING, REG_ERROR, REG_VALID_INDEX, REG_VALID_NONZERO_INDEX):
97757         New macros.
97758         (re_node_set, re_charset_t, re_token_t, re_string_realloc_buffers):
97759         (re_string_context_at, bin_tree_t, re_dfastate_t):
97760         (struct re_state_table_entry, state_array_t, re_sub_match_last_t):
97761         (re_sub_match_top_t, re_match_context_t, re_sift_context_t):
97762         (struct re_fail_stack_ent_t, struct re_fail_stack_t, struct re_dfa_t):
97763         (re_string_char_size_at, re_string_wchar_at):
97764         (re_string_elem_size_at):
97765         Use the new types and macros to port to 64-bit hosts.
97766         Use unsigned types for internal values, so that the code
97767         mostly works even for arrays larger than SSIZE_MAX.
97768         * lib/regcomp.c (re_compile_internal, init_dfa, duplicate_node):
97769         (search_duplicated_node, calc_eclosure_iter, fetch_number):
97770         (parse_reg_exp, parse_branch, parse_expression, parse_sub_exp):
97771         (build_equiv_class, build_charclass, re_compile_fastmap_iter):
97772         (free_dfa_content, create_initial_state, optimize_utf8, analyze):
97773         (optimize_subexps, calc_first, link_nfa_nodes, duplicate_node_closure):
97774         (calc_inveclosure, parse_dup_op, build_range_exp):
97775         (build_collating_symbol, parse_bracket_exp, build_charclass_op):
97776         (fetch_number, create_token_tree, mark_opt_subexp):
97777         Likewise.
97778         * lib/regex_internal.c (re_string_construct_common,
97779         create_ci_newstate):
97780         (create_cd_newstate, re_string_allocate, re_string_construct):
97781         (re_string_realloc_buffers, build_wcs_upper_buffer):
97782         (re_string_skip_chars, build_upper_buffer, re_string_translate_buffer):
97783         (re_string_reconstruct, re_string_peek_byte_case):
97784         (re_string_fetch_byte_case, re_string_context_at):
97785         (re_node_set_alloc, re_node_set_init_1, re_node_set_init_2):
97786         (re_node_set_init_copy, re_node_set_add_intersect):
97787         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
97788         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
97789         (re_node_set_remove_at, re_dfa_add_node, calc_state_hash):
97790         (re_acquire_state, re_acquire_state_context, register_state):
97791         Likewise.
97792         * lib/regex.c (match_ctx_init, match_ctx_add_entry,
97793         search_cur_bkref_entry):
97794         (match_ctx_add_subtop, match_ctx_add_sublast, sift_ctx_init):
97795         (re_search_internal, re_search_2_stub, re_search_stub)
97796         (re_copy_regs, check_matching, check_halt_state_context, update_regs):
97797         (push_fail_stack, sift_states_iter_mb, build_sifted_states):
97798         (update_cur_sifted_state, check_dst_limits):
97799         (check_dst_limits_calc_pos_1, check_dst_limits_calc_pos):
97800         (check_subexp_limits, sift_states_bkref, merge_state_array):
97801         (check_subexp_matching_top, get_subexp, get_subexp_sub):
97802         (find_subexp_node, check_arrival, check_arrival_add_next_nodes):
97803         (check_arrival_expand_ecl, check_arrival_expand_ecl_sub):
97804         (expand_bkref_cache, check_node_accept_bytes):
97805         (group_nodes_into_DFAstates, check_node_accept, regexec, re_match):
97806         (re_search, re_match_2, re_search_2, prune_impossible_nodes):
97807         (acquire_init_state_context, check_halt_node_context):
97808         (proceed_next_node, pop_fail_stack, set_regs, free_fail_stack_return):
97809         (sift_states_backward, clean_state_log_if_needed):
97810         (sub_epsilon_src_nodes, add_epsilone_src_nodes, merge_state_with_log):
97811         (find_recover_state, transit_state_sb, transit_state_mb):
97812         (transit_state_bkref, build_trtable, match_ctx_clean):
97813         Likewise.
97814         * lib/regcomp.c (parse_dup_op): Add an extra test if Idx is unsigned,
97815         to work around an assumption that REG_MISSING is negative.
97817         * lib/regcomp.c (re_comp) [defined _REGEX_RE_COMP || defined _LIBC]:
97818         (seek_collating_symbol_entry) [defined _LIBC]:
97819         (lookup_collation_sequence_value) [defined _LIBC]:
97820         (build_range_exp, build_collating_symbol) [defined _LIBC]:
97821         Use prototypes rather than old-style function definitions.
97822         * lib/regexec.c (re_exec) [defined _REGEX_RE_COMP || defined _LIBC]:
97823         (transit_state_sb) [0]:
97824         (find_collation_sequence_value) [defined _LIBC]: Likewise.
97826         * lib/regexec.c (re_search_internal): Simplify update of rm_so and
97827         rm_eo.
97829         * lib/regcomp.c (re_compile_fastmap_iter, init_dfa, init_word_char):
97830         (optimize_subexps, lower_subexp):
97831         Don't assume 1<<31 has defined behavior on hosts with 32-bit int,
97832         since the signed shift might overflow.  Use 1u<<31 instead.
97833         * lib/regex_internal.h (bitset_set, bitset_clear, bitset_contain):
97834         Likewise.
97835         * lib/regexec.c (check_dst_limits_calc_pos_1,
97836         check_subexp_matching_top): Likewise.
97838         * lib/regcomp.c (optimize_subexps, lower_subexp):
97839         Use CHAR_BIT rather than 8, for clarity.
97840         * lib/regexec.c (check_dst_limits_calc_pos_1):
97841         (check_subexp_matching_top): Likewise.
97842         * lib/regcomp.c (init_dfa): Make table_size unsigned, so that we don't
97843         have to worry about portability issues when shifting it left.
97844         Remove no-longer-needed test for table_size > 0.
97845         * lib/regcomp.c (parse_sub_exp): Do not shift more bits than there are
97846         in a word, as the resulting behavior is undefined.
97847         * lib/regexec.c (check_dst_limits_calc_pos_1): Likewise;
97848         in one case, a <= should have been an <, and in another case the
97849         whole test was missing.
97850         * lib/regex_internal.h (BYTE_BITS): Remove.  All uses changed to
97851         the standard name CHAR_BIT.
97852         * lib/regexec.c (match_ctx_add_entry): Don't assume that ~0 == -1;
97853         this is not true on one's complement and signed-magnitude hosts.
97855         * lib/regex_internal.h (re_sub_match_top_t): Remove unused member
97856         next_last_offset.
97857         (struct re_dfa_t): Remove unused member states_alloc.
97858         * lib/regcomp.c (init_dfa): Don't initialize unused members.
97860 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
97862         * m4/regex.m4 (gl_REGEX): Require AC_SYS_LARGEFILE, Define
97863         _REGEX_LARGE_OFFSETS).  Test for regoff_t/off_t bug in 64-bit
97864         and large-file glibc and in 32-bit large-file Solaris.
97866 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
97868         * lib/regex_internal.c (re_string_reconstruct): Don't assume buffer
97869         lengths fit in regoff_t; this isn't true if regoff_t is the same
97870         width as size_t.
97871         * lib/regex.c (re_search_internal): 5th arg is LAST_START
97872         (= START + RANGE) instead of RANGE.  This avoids overflow
97873         problems when regoff_t is the same width as size_t.
97874         All callers changed.
97875         (re_search_2_stub): Check for overflow when adding the
97876         sizes of the two strings.
97877         (re_search_stub): Check for overflow when adding START
97878         to RANGE; if it occurs, substitute the extreme value.
97880 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
97882         * config/srclist.txt: Add glibc bugs 1273, 1278-1282, 1284.
97884 2005-08-31  Jim Meyering  <jim@meyering.net>
97886         * lib/regcomp.c (search_duplicated_node): Make first pointer arg
97887         a pointer-to-const.
97888         * lib/regex_internal.c (create_ci_newstate, create_cd_newstate):
97889         (register_state): Likewise.
97890         * lib/regexec.c (search_cur_bkref_entry, check_dst_limits):
97891         (check_dst_limits_calc_pos_1, check_dst_limits_calc_pos):
97892         (group_nodes_into_DFAstates): Likewise.
97894 2005-08-31  Jim Meyering  <jim@meyering.net>
97896         * check-module: Add a FIXME comment.
97898 2005-08-31  Eric Blake  <ebb9@byu.net>
97900         * modules/unistd-safer (Files): Add unistd--.h.
97901         * modules/stdio-safer (Files): Add stdio--.h.
97903 2005-08-31  Derek Price  <derek@ximbiot.com>
97905         * lib/getdelim.c (getdelim): Return EOF on EOF.
97906         Reported by Larry Jones <lawrence.jones@ugs.com>.
97908 2005-08-31  Bruno Haible  <bruno@clisp.org>
97910         Avoid unnecessary diffs in the generated lib/Makefile.am.
97911         * gnulib-tool (func_emit_lib_Makefile_am): Don't write the cmd into
97912         the generated files.
97913         (func_import): Don't set cmd.
97915 2005-08-31  Bruno Haible  <bruno@clisp.org>
97917         * lib/strstr.c: Include <stddef.h>, for NULL.
97918         * lib/strcasestr.c: Likewise.
97919         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
97921 2005-08-31  Bruno Haible  <bruno@clisp.org>
97923         * gnulib-tool: New option --macro-prefix.
97924         (func_import): Use macro_prefix.
97925         (import): Handle option --macro-prefix.
97927 2005-08-31  Bruno Haible  <bruno@clisp.org>
97929         * gnulib-tool (import): Rename most ac_* variables to cached_*.
97930         Also use new variables cached_lgpl, cached_libtool.
97932 2005-08-31  Bruno Haible  <bruno@clisp.org>
97934         * gnulib-tool (func_import): Require AC_GNU_SOURCE etc. instead of
97935         always instantiating them.
97937 2005-08-31  Bruno Haible  <bruno@clisp.org>
97939         * gnulib-tool (func_import): Read the previous cached settings
97940         from gnulib-cache.m4 and gnulib-comp.m4. Remove files that were
97941         earlier added by gnulib but are now dropped. Warn when a gnulib file
97942         overwrites a non-gnulib file.
97944 2005-08-31  Bruno Haible  <bruno@clisp.org>
97946         * gnulib-tool (func_import): Generate two files gnulib-cache.m4 and
97947         gnulib-comp.m4 instead of a single gnulib.m4, to make it easy for
97948         projects that don't keep autogenerated files in CVS. Put into
97949         actioncmd only the specified modules, not the transitive closure.
97951 2005-08-31  Bruno Haible  <bruno@clisp.org>
97953         * gnulib-tool (func_import): Fix defaulting of $libname and $libtool.
97954         Create directories that shall be filled.
97955         (import): Don't look for gl_* macros in configure.ac. Recurse across
97956         all directories containing a gnulib-cache.m4 files, if meaningful.
97958 2005-08-31  Bruno Haible  <bruno@clisp.org>
97960         * gnulib-tool (func_import): Emit also a stub for gl_LIBTOOL.
97961         (import): Set seen_libtool when we see gl_LIBTOOL.
97963 2005-08-31  Bruno Haible  <bruno@clisp.org>
97965         * gnulib-tool (func_import): Also copy m4/gnulib-tool.m4. Omit
97966         declaration macro definitions from generated gnulib.m4.
97968 2005-08-30  Oskar Liljeblad  <oskar@osk.mine.nu>
97970         * lib/iconvme.h: Add prototype for iconv_alloc.
97972 2005-08-29  Simon Josefsson  <jas@extundo.com>
97974         * lib/iconvme.c: Fix errno.
97976 2005-08-29  Bruno Haible  <bruno@clisp.org>
97978         * gnulib-tool: Enclose all occurrences of $destdir in "...", so
97979         that it works when the directory contains spaces.
97981 2005-08-29  Bruno Haible  <bruno@clisp.org>
97983         * gnulib-tool (import): Avoid unnecessary spaces in $avoidlist.
97985 2005-08-29  Bruno Haible  <bruno@clisp.org>
97987         * gnulib-tool (func_import): Emit more comments into gnulib.m4.
97988         Emit more advice.
97990 2005-08-29  Bruno Haible  <bruno@clisp.org>
97991         and Stepan Kasal  <kasal@ucw.cz>
97993         * check-module: If more parameters are given, check each of them
97994         separately; add more exceptions, as noted by Jim Meyering.
97995         (check_module): New procedure.
97996         (%exempt_header): Now contains all exceptions.
97998 2005-08-29  Ben Pfaff  <blp@cs.stanford.edu>
98000         * modules/byteswap (Makefile.am): Fix rule to not assume GNU make.
98002 2005-08-29  Oskar Liljeblad  <oskar@osk.mine.nu>
98004         * lib/iconvme.c: Split iconv_string into iconv_alloc.
98006 2005-08-28  Bruno Haible  <bruno@clisp.org>
98008         * m4/gnulib-tool.m4: New file.
98010 2005-08-27  Jim Meyering  <jim@meyering.net>
98012         * modules/unistd-safer (Files): Add pipe-safer.c.
98013         * modules/fcntl-safer (Files): Add creat-safer.c.
98015 2005-08-27  Jim Meyering  <jim@meyering.net>
98017         * m4/stdlib-safer.m4: New file.  From coreutils.
98018         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Add stdio--.h.
98019         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Add creat-safer.c to the
98020         AC_LIBSOURCES list and arrange to compile it via AC_LIBOBJ.
98021         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Likewise, add pipe-safer.c.
98022         Add pipe-safer.c and unistd--.h to the AC_LIBSOURCES list.
98024 2005-08-27  Jim Meyering  <jim@meyering.net>
98026         * lib/fopen-safer.c: Merge minor changes from coreutils.
98027         * lib/dup-safer.c: Likewise.
98028         * lib/fd-safer.c: Likewise.
98030         Merge from coreutils.
98031         * lib/stdio--.h: New file.
98032         * lib/stdlib--.h: New file.
98033         * lib/mkstemp-safer.c: New file.
98035         GNU tar needs these.
98036         * lib/pipe-safer.c: New file.
98037         * lib/creat-safer.c: New file.
98038         * lib/fcntl--.h (creat): Define to creat_safer.
98039         * lib/fcntl-safer.h: Include <sys/types.h> and declare creat_safer.
98040         * lib/unistd--.h (pipe): Define to pipe_safer.
98041         * lib/unistd-safer.h: Declare pipe_safer.
98043 2005-08-26  Simon Josefsson  <jas@extundo.com>
98045         * lib/getpass.c: Use _WIN32 instead of WIN32, suggested by Bruno
98046         Haible <bruno@clisp.org>.
98048 2005-08-26  Paul Eggert  <eggert@cs.ucla.edu>
98050         * lib/regex_internal.h: Remove all references to
98051         RE_NO_INTERNAL_PROTOTYPES; no longer neeeded now that we assume C89
98052         or better.
98053         (bitset_not, bitset_merge, bitset_not_merge):
98054         (bitset_mask, re_string_allocate, re_string_construct):
98055         (re_string_reconstruct, re_string_destruct, re_string_elem_size_at):
98056         (re_string_char_size_at, re_string_wchar_at, re_string_peek_byte_case):
98057         (re_string_fetch_byte_case, re_node_set_alloc, re_node_set_init_1):
98058         (re_node_set_init_2, re_node_set_init_copy, re_node_set_add_intersect):
98059         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
98060         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
98061         (re_node_set_remove_at, re_dfa_add_node, re_acquire_state):
98062         (re_acquire_state_context):
98063         Remove unnecessary forward decls.
98064         (re_string_char_size_at, re_string_wchar_at, re_string_elem_size_at):
98065         Put __attribute at function definition,
98066         now that the function decl has been removed.
98067         * lib/regex_internal.c (re_string_peek_byte_case):
98068         (re_string_fetch_byte_case, re_node_set_compare, re_node_set_contains):
98069         Likewise.
98071 2005-08-25  Stepan Kasal  <kasal@ucw.cz>
98073         * m4/regex.m4: Add AC_PREREQ(2.50).
98074         (gl_REGEX): If --with-included-regex was given, skip the autodetection.
98076 2005-08-25  Simon Josefsson  <jas@extundo.com>
98078         * m4/getpass.m4: Check for termios.h, tcgetattr, tcsetattr, and
98079         __fsetlocking.
98081 2005-08-25  Simon Josefsson  <jas@extundo.com>
98083         * lib/getpass.c: Add WIN32 implementation.  Conditionalize use of
98084         termios.h, tcgetattr, tcsetattr and __fsetlocking.  Remove some
98085         GLIBC specific code.
98087 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
98089         Make regex safe for g++.  This fixes one real bug (an "err"
98090         that should have been "*err").  g++ problem reported by
98091         Sam Steingold.
98092         * lib/regex_internal.h (re_calloc): New macro, consistent with
98093         re_malloc etc.  All callers of calloc changed to use re_calloc.
98094         * lib/regex_internal.c (build_wcs_upper_buffer): Return reg_errcode_t,
98095         not int.  All callers changed.
98096         * lib/regcomp.c (re_compile_fastmap_iter): Don't use
98097         alloca (mb_cur_max); just use an array of size MB_LEN_MAX.
98098         * lib/regexec.c (push_fail_stack): Use re_realloc, not realloc.
98099         (find_recover_state): Change "err" to "*err"; this fixes what
98100         appears to be a real bug.
98101         (check_arrival_expand_ecl_sub): Be consistent about reg_errcode_t
98102         versus int.
98104 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
98106         * modules/regex (Depends-on): Add malloc, since the code
98107         assumes that !malloc(0) means failure.
98109 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
98111         * lib/regexec.c (set_regs): Don't alloca with an unbounded size.
98113         alloca modernization/simplification for regex.
98114         * lib/regex.c: Remove portability cruft for alloca.  This no longer
98115         needs to be at the start of the file, and can be moved into
98116         regex_internal.h and simplified.
98117         * lib/regex_internal.h: Include <alloca.h>.
98118         (__libc_use_alloca) [!defined _LIBC]: New macro.
98119         * lib/regexec.c (build_trtable): Remove "#ifdef _LIBC", since the code
98120         now works outside glibc.
98122 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
98124         * config/srclist.txt: Add glibc bugs 1241, 1245.
98126 2005-08-25  Jim Meyering  <jim@meyering.net>
98128         * lib/open-safer.c: Include <config.h>.
98129         Otherwise, we'd lose LARGEFILE support in any file using
98130         e.g. "fcntl--.h"
98132 2005-08-25  Bruno Haible  <bruno@clisp.org>
98134         * m4/minmax.m4: Require autoconf 2.52.
98135         (gl_MINMAX_IN_HEADER): Add comments. Use m4_pushdef/m4_popdef instead
98136         of define/undefine. Use AS_TR_SH and AS_TR_CPP as more robust
98137         alternatives of translit over the alphabet.
98138         Based on a patch from Stepan Kasal <kasal@ucw.cz>.
98140 2005-08-24  Simon Josefsson  <jas@extundo.com>
98142         * tests/test-getpass.c: New file.
98144 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
98146         * m4/regex.m4 (gl_REGEX): Use POSIX-compliant spellings when testing
98147         for GNU regex features.
98149 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
98151         * lib/regcomp.c (regerror): 2nd arg is 'restrict', as per POSIX.
98152         * lib/regex.h (regerror): Likewise.
98154         * lib/regex.c: Do not include <sys/types.h>, as POSIX no longer
98155         requires this.  (The code never needed it.)
98157         * lib/regcomp.c, regex_internal.c, regex_internal.h, regexec.c:
98158         All uses of recently-renamed identifiers changed to use the new,
98159         POSIX-compliant names.  The code will build and run just fine
98160         without these changes, but it's better to eat our own dog food
98161         and use the standard-conforming names.
98163         * lib/regex.h: Fix a multitude of POSIX name space violations.
98164         These changes have an effect only for programs that define
98165         _POSIX_C_SOURCE, _POSIX_SOURCE, or _XOPEN_SOURCE; they
98166         do not change anything for programs compiled in the normal way.
98167         Also, there is no effect on the ABI.
98169         (_REGEX_SOURCE): New macro.
98170         Do not include <stddef.h> if _XOPEN_SOURCE and VMS are both
98171         defined and _GNU_SOURCE is not; this fixes a name space violation.
98173         Rename the following macros to obey POSIX requirements.
98174         The old names are still visible as macros if _REGEX_SOURCE is defined.
98175         (REG_BACKSLASH_ESCAPE_IN_LISTS): renamed from
98176         RE_BACKSLASH_ESCAPE_IN_LISTS.
98177         (REG_BK_PLUS_QM): renamed from RE_BK_PLUS_QM.
98178         (REG_CHAR_CLASSES): renamed from RE_CHAR_CLASSES.
98179         (REG_CONTEXT_INDEP_ANCHORS): renamed from RE_CONTEXT_INDEP_ANCHORS.
98180         (REG_CONTEXT_INDEP_OPS): renamed from RE_CONTEXT_INDEP_OPS.
98181         (REG_CONTEXT_INVALID_OPS): renamed from RE_CONTEXT_INVALID_OPS.
98182         (REG_DOT_NEWLINE): renamed from RE_DOT_NEWLINE.
98183         (REG_DOT_NOT_NULL): renamed from RE_DOT_NOT_NULL.
98184         (REG_HAT_LISTS_NOT_NEWLINE): renamed from RE_HAT_LISTS_NOT_NEWLINE.
98185         (REG_INTERVALS): renamed from RE_INTERVALS.
98186         (REG_LIMITED_OPS): renamed from RE_LIMITED_OPS.
98187         (REG_NEWLINE_ALT): renamed from RE_NEWLINE_ALT.
98188         (REG_NO_BK_BRACES): renamed from RE_NO_BK_BRACES.
98189         (REG_NO_BK_PARENS): renamed from RE_NO_BK_PARENS.
98190         (REG_NO_BK_REFS): renamed from RE_NO_BK_REFS.
98191         (REG_NO_BK_VBAR): renamed from RE_NO_BK_VBAR.
98192         (REG_NO_EMPTY_RANGES): renamed from RE_NO_EMPTY_RANGES.
98193         (REG_UNMATCHED_RIGHT_PAREN_ORD): renamed from
98194         RE_UNMATCHED_RIGHT_PAREN_ORD.
98195         (REG_NO_POSIX_BACKTRACKING): renamed from RE_NO_POSIX_BACKTRACKING.
98196         (REG_NO_GNU_OPS): renamed from RE_NO_GNU_OPS.
98197         (REG_DEBUG): renamed from RE_DEBUG.
98198         (REG_INVALID_INTERVAL_ORD): renamed from RE_INVALID_INTERVAL_ORD.
98199         (REG_IGNORE_CASE): renamed from RE_ICASE.  This renaming is a bit
98200         unusual, since we can't clash with the POSIX REG_ICASE.
98201         (REG_CARET_ANCHORS_HERE): renamed from RE_CARET_ANCHORS_HERE.
98202         (REG_CONTEXT_INVALID_DUP): renamed from RE_CONTEXT_INVALID_DUP.
98203         (REG_NO_SUB): renamed from RE_NO_SUB.
98204         (REG_SYNTAX_EMACS): renamed from RE_SYNTAX_EMACS.
98205         (REG_SYNTAX_AWK): renamed from RE_SYNTAX_AWK.
98206         (REG_SYNTAX_GNU_AWK): renamed from RE_SYNTAX_GNU_AWK.
98207         (REG_SYNTAX_POSIX_AWK): renamed from RE_SYNTAX_POSIX_AWK.
98208         (REG_SYNTAX_GREP): renamed from RE_SYNTAX_GREP.
98209         (REG_SYNTAX_EGREP): renamed from RE_SYNTAX_EGREP.
98210         (REG_SYNTAX_POSIX_EGREP): renamed from RE_SYNTAX_POSIX_EGREP.
98211         (REG_SYNTAX_ED): renamed from RE_SYNTAX_ED.
98212         (REG_SYNTAX_SED): renamed from RE_SYNTAX_SED.
98213         (_REG_SYNTAX_POSIX_COMMON): renamed from _RE_SYNTAX_POSIX_COMMON.
98214         (REG_SYNTAX_POSIX_BASIC): renamed from RE_SYNTAX_POSIX_BASIC.
98215         (REG_SYNTAX_POSIX_MINIMAL_BASIC): renamed from
98216         RE_SYNTAX_POSIX_MINIMAL_BASIC.
98217         (REG_SYNTAX_POSIX_EXTENDED): renamed from RE_SYNTAX_POSIX_EXTENDED.
98218         (REG_SYNTAX_POSIX_MINIMAL_EXTENDED): renamed from
98219         RE_SYNTAX_POSIX_MINIMAL_EXTENDED.
98220         (REG_DUP_MAX): renamed from RE_DUP_MAX.  No need to undef it.
98221         (REG_UNALLOCATED): Renamed from REGS_UNALLOCATED.
98222         (REG_REALLOCATE): Renamed from REGS_REALLOCATE.
98223         (REG_FIXED): Renamed from REGS_FIXED.
98224         (REG_NREGS): Renamed from RE_NREGS.
98226         (REG_ICASE, REG_NEWLINE, REG_NOSUB): Do not depend on the values
98227         of other REG_* macros, since POSIX says the user is allowed to
98228         #undef these macros selectively.
98230         (reg_errcode_t): Update comment stating what other tables need
98231         to be consistent.
98233         Rename the following enum values to obey POSIX requirements.
98234         The old names are still visible as macros.
98235         (_REG_ENOSYS): Renamed from REG_ENOSYS.  Define even if _XOPEN_SOURCE
98236         is not defined, since GNU is supposed to be a superset of POSIX as
98237         much as possible, and since we want reg_errcode_t to be a signed
98238         type for implementation consistency.
98239         (_REG_NOERROR): Renamed from REG_NOERROR.
98240         (_REG_NOMATCH): Renamed from REG_NOMATCH.
98241         (_REG_BADPAT): Renamed from REG_BADPAT.
98242         (_REG_ECOLLATE): Renamed from REG_ECOLLATE.
98243         (_REG_ECTYPE): Renamed from REG_ECTYPE.
98244         (_REG_EESCAPE): Renamed from REG_EESCAPE.
98245         (_REG_ESUBREG): Renamed from REG_ESUBREG.
98246         (_REG_EBRACK): Renamed from REG_EBRACK.
98247         (_REG_EPAREN): Renamed from REG_EPAREN.
98248         (_REG_EBRACE): Renamed from REG_EBRACE.
98249         (_REG_BADBR): Renamed from REG_BADBR.
98250         (_REG_ERANGE): Renamed from REG_ERANGE.
98251         (_REG_ESPACE): Renamed from REG_ESPACE.
98252         (_REG_BADRPT): Renamed from REG_BADRPT.
98253         (_REG_EEND): Renamed from REG_EEND.
98254         (_REG_ESIZE): Renamed from REG_ESIZE.
98255         (_REG_ERPAREN): Renamed from REG_ERPAREN.
98256         (REG_ENOSYS, REG_NOERROR, REG_NOMATCH, REG_BADPAT, REG_ECOLLATE):
98257         (REG_ECTYPE, REG_EESCAPE, REG_ESUBREG, REG_EBRACK, REG_EPAREN):
98258         (REG_EBRACE, REG_BADBR, REG_ERANGE, REG_ESPACE, REG_BADRPT, REG_EEND):
98259         (REG_ESIZE, REG_ERPAREN): Now macros, not enum constants.
98261         (_REG_RE_NAME, _REG_RM_NAME): New macros.
98262         (REG_TRANSLATE_TYPE): Renamed from RE_TRANSLATE_TYPE.  All uses
98263         changed.  But support the old name if the new one is not defined
98264         and if _REGEX_SOURCE.
98266         Change the following member names in struct re_pattern_buffer.
98267         The old names are still supported if !_REGEX_SOURCE.
98268         The new names are always supported, regardless of _REGEX_SOURCE.
98269         (re_buffer): Renamed from buffer.
98270         (re_allocated): Renamed from allocated.
98271         (re_used): Renamed from used.
98272         (re_syntax): Renamed from syntax.
98273         (re_fastmap): Renamed from fastmap.
98274         (re_translate): Renamed from translate.
98275         (re_can_be_null): Renamed from can_be_null.
98276         (re_regs_allocated): Renamed from regs_allocated.
98277         (re_fastmap_accurate): Renamed from fastmap_accurate.
98278         (re_no_sub): Renamed from no_sub.
98279         (re_not_bol): Renamed from not_bol.
98280         (re_not_eol): Renamed from not_eol.
98281         (re_newline_anchor): Renamed from newline_anchor.
98283         Change the following member names in struct re_registers.
98284         The old names are still supported if !_REGEX_SOURCE.
98285         The new names are always supported, regardless of _REGEX_SOURCE.
98286         (rm_num_regs): Renamed from num_regs.
98287         (rm_start): Renamed from start.
98288         (rm_end): Renamed from end.
98290         (re_set_syntax, re_compile_pattern, re_compile_fastmap):
98291         (re_search, re_search_2, re_match, re_match_2, re_set_registers):
98292         Prepend __ to parameter names.
98294         Undo yesterday's changes.
98296 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
98298         * config/srclist.txt: Remove glibc bug 1233 and add 1236, which
98299         supersedes it. Add glibc bugs 1237, 1238, 1240.  Comment out
98300         lib/regex.c.
98302 2005-08-24  Jim Meyering  <jim@meyering.net>
98304         Sync from coreutils.
98305         * m4/fcntl-safer.m4: New file.
98307         * m4/xgetcwd.m4: Use AC_LIBSOURCES and AC_LIBOBJ to indicate source
98308         and object files for this module.
98310 2005-08-24  Jim Meyering  <jim@meyering.net>
98312         Sync from coreutils.
98313         * lib/fcntl--.h, lib/fcntl-safer.h, lib/open-safer.c: New files.
98315 2005-08-24  Jim Meyering  <jim@meyering.net>
98317         * modules/xgetcwd (Makefile.am): Remove `lib_SOURCES += ...' line,
98318         now that xgetcwd.m4 requires xgetcwd.c and xgetcwd.h.
98320 2005-08-24  Jim Meyering  <jim@meyering.net>
98322         * modules/fcntl-safer: New module.
98323         * modules/fts (Depends-on): Add fcntl-safer.
98324         * MODULES.html.sh (File descriptor based Input/Output):
98325         Add fcntl-safer.
98327 2005-08-24  Bruno Haible  <bruno@clisp.org>
98329         Support for unit test modules.
98330         * modules/README: Mention tests modules.
98331         * modules/TEMPLATE-TESTS: New file.
98332         * gnulib-tool: New options --extract-tests-module, --with-tests and
98333         --tests-base (unused for the moment).
98334         (testsbase, inctests): New variables.
98335         (func_all_modules): Exclude TEMPLATE-TESTS and *-tests.
98336         (func_verify_module): Exclude TEMPLATE-TESTS.
98337         (func_verify_nontests_module, func_verify_tests_module): New functions.
98338         (func_get_dependencies): Add implicit dependency for tests modules.
98339         (func_get_tests_module): New function.
98340         (func_modules_transitive_closure): When --with-tests was specified,
98341         include the unit tests as well, unless explicitly avoided.
98342         (func_emit_lib_Makefile_am): Ignore the tests modules here.
98343         (func_emit_tests_Makefile_am): New function.
98344         (func_create_testdir): When --with-tests was specified, emit a
98345         tests/ directory.
98346         * MODULES.html.sh (Future developments): Update.
98348 2005-08-24  Bruno Haible  <bruno@clisp.org>
98350         * modules/tls-tests: New file.
98351         * tests/test-tls.c: New file, from GNU gettext.
98353 2005-08-24  Bruno Haible  <bruno@clisp.org>
98355         * modules/lock-tests: New file.
98356         * tests/test-lock.c: New file, from GNU gettext.
98358 2005-08-24  Bruno Haible  <bruno@clisp.org>
98360         * lib/lock.h: Add multiple inclusion guard.
98361         * lib/tls.h: Add multiple inclusion guard.
98363 2005-08-24  Bruno Haible  <bruno@clisp.org>
98365         * gnulib-tool: Add support for the --aux-dir option to
98366         --create-testdir, --create-megatestdir, --test, --megatest.
98367         (func_create_testdir, func_create_megatestdir): Optionally emit a
98368         AC_CONFIG_AUX_DIR directive.
98369         (create-testdir, create-megatestdir, test, megatest): Provide a
98370         default value for $auxdir.
98372 2005-08-24  Bruno Haible  <bruno@clisp.org>
98374         * gnulib-tool (import): Use compound statement instead of subshell
98375         where possible.
98377 2005-08-24  Bruno Haible  <bruno@clisp.org>
98379         * gnulib-tool (import): Change --aux-dir default to "build-aux".
98381 2005-08-24  Bruno Haible  <bruno@clisp.org>
98383         * gnulib-tool (func_version): Update.
98385 2005-08-24  Bruno Haible  <bruno@clisp.org>
98387         * gnulib-tool (func_import, func_create_testdir,
98388         func_create_megatestdir): Quote all autoconf macro arguments.
98390 2005-08-24  Bruno Haible  <bruno@clisp.org>
98392         * gnulib-tool (func_create_megatestdir): Call autoreconf without the
98393         option --force, because --force causes the aclocal.m4 of each
98394         subdirectory to be newer than the corresponding config.h.in.
98396 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
98398         * m4/regex.m4 (gl_INCLUDED_REGEX): Remove; no longer used.
98399         All contents moved to gl_REGEX.
98400         (gl_REGEX): Don't bother checking whether lib/regex.c exists;
98401         assume that it does.
98403 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
98405         * lib/regex.h (REG_NOSYS)
98406         [!defined _XOPEN_SOURCE && 200112L <= _POSIX_C_SOURCE]:
98407         Define, since POSIX requires it as of 2001.
98408         (_REG_ENOSYS)
98409         [! (defined _XOPEN_SOURCE || 200112L <= _POSIX_C_SOURCE)]:
98410         New private symbol, used to keep the enum signed in all cases.
98411         * lib/regex.h (RE_NO_EMPTY_RANGES): Fix doc bug reported by James
98412         Youngman in
98413         <http://lists.gnu.org/archive/html/bug-gnulib/2005-07/msg00132.html>.
98415         * lib/regex_internal.c (re_string_skip_chars, register_state):
98416         (calc_state_hash):
98417         Remove forward decls; no longer needed now that we use prototypes.
98418         * lib/regexec.c (acquire_init_state_context, check_halt_node_context):
98419         (proceed_next_node, pop_fail_stack, sub_epsilon_src_nodes):
98420         (clean_state_log_if_needed): Likewise.
98422 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
98424         * config/srclist.txt: Add glibc bugs 1231-1233.
98426 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
98428         Fix problems reported by Sam Steingold in
98429         <http://lists.gnu.org/archive/html/bug-gnulib/2005-08/msg00007.html>.
98430         * lib/regexec.c (sift_states_bkref): Fix portability bug: the code
98431         assumed that reg_errcode_t is a signed type, which is not
98432         necessarily true if _XOPEN_SOURCE is not defined.
98433         * lib/regex_internal.c (calc_state_hash): Put 'inline' before type,
98434         since some compilers warn about it otherwise.
98436 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
98438         * lib/regcomp.c (create_initial_state): Remove duplicate decl.
98439         (init_word_char, create_initial_state, duplicate_node_closure):
98440         (fetch_token, peek_token_bracket, build_range_exp):
98441         (build_collating_symbol): Remove forward decls; no longer needed
98442         now that we use prototypes.
98444         * lib/regcomp.c:
98445         (re_compile_pattern, re_set_syntax, re_compile_fastmap):
98446         (re_compile_fastmap_iter, regcomp, regerror, regfree):
98447         (re_compile_internal, init_dfa, init_word_char, free_workarea_compile):
98448         (create_initial_state, optimize_utf8, analyze, postorder, preorder):
98449         (optimize_subexps, lower_subexps, lower_subexp, calc_first, calc_next):
98450         (link_nfa_nodes, duplicate_node_closure, search_duplicated_node):
98451         (duplicate_node, calc_inveclosure, calc_eclosure, calc_eclosure_iter):
98452         (fetch_token, peek_token, peek_token_bracket, parse, parse_reg_exp):
98453         (parse_branch, parse_expression, parse_sub_exp, parse_dup_op):
98454         (build_range_exp, build_collating_symbol, parse_bracket_exp):
98455         (parse_bracket_element, parse_bracket_symbol, build_equiv_class):
98456         (build_charclass, build_charclass_op, fetch_number, create_tree):
98457         (create_token_tree, mark_opt_subexp, duplicate_tree):
98458         Use prototypes rather than old-style definitions.
98460         * lib/regex_internal.c:
98461         (re_string_allocate, re_string_construct, re_string_realloc_buffers):
98462         (re_string_construct_common, build_wcs_buffer, build_wcs_upper_buffer):
98463         (re_string_skip_chars, build_upper_buffer, re_string_translate_buffer):
98464         (re_string_reconstruct, re_string_peek_byte_case):
98465         (re_string_fetch_byte_case, re_string_destruct, re_string_context_at):
98466         (re_node_set_alloc, re_node_set_init_1, re_node_set_init_2):
98467         (re_node_set_init_copy, re_node_set_add_intersect):
98468         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
98469         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
98470         (re_node_set_remove_at, re_dfa_add_node, calc_state_hash):
98471         (re_acquire_state, re_acquire_state_context, register_state):
98472         (create_ci_newstate, create_cd_newstate, free_state):
98473         Likewise.
98474         * lib/regexec.c (regexec, re_match, re_search, re_match_2,
98475         re_search_2):
98476         (re_search_2_stub, re_search_stub, re_copy_regs, re_set_registers):
98477         (re_search_internal, prune_impossible_nodes):
98478         (acquire_init_state_context, check_matching, static):
98479         (check_halt_node_context, check_halt_state_context, proceed_next_node):
98480         (push_fail_stack, pop_fail_stack, set_regs, free_fail_stack_return):
98481         (update_regs, sift_states_backward, build_sifted_states):
98482         (clean_state_log_if_needed, merge_state_array):
98483         (update_cur_sifted_state, add_epsilon_src_nodes):
98484         (sub_epsilon_src_nodes, check_dst_limits, check_dst_limits_calc_pos_1):
98485         (check_dst_limits_calc_pos, check_subexp_limits, sift_states_bkref):
98486         (sift_states_iter_mb, transit_state, merge_state_with_log, static):
98487         (find_recover_state, check_subexp_matching_top, transit_state_mb):
98488         (transit_state_bkref, get_subexp, get_subexp_sub, find_subexp_node):
98489         (check_arrival, check_arrival_add_next_nodes):
98490         (check_arrival_expand_ecl, check_arrival_expand_ecl_sub):
98491         (expand_bkref_cache, build_trtable, group_nodes_into_DFAstates):
98492         (check_node_accept_bytes, check_node_accept, extend_buffers):
98493         (match_ctx_init, match_ctx_clean, match_ctx_free, match_ctx_add_entry):
98494         (search_cur_bkref_entry, match_ctx_add_subtop, match_ctx_add_sublast):
98495         (sift_ctx_init):
98496         Likewise.
98498         * lib/regex_internal.h:
98499         (re_string_allocate, re_string_construct, re_string_reconstruct):
98500         (re_string_realloc_buffers, build_wcs_buffer, build_wcs_upper_buffer):
98501         (build_upper_buffer, re_string_translate_buffer, re_string_destruct):
98502         (re_string_elem_size_at, re_string_char_size_at, re_string_wchar_at):
98503         (re_string_context_at, re_string_peek_byte_case):
98504         (re_string_fetch_byte_case): Declare even if RE_NO_INTERNAL_PROTOTYPES
98505         is defined, since we now use prototypes always.
98507         * lib/regex.h (_RE_ARGS): Remove.  No longer needed, since we assume
98508         C89 or better.  All uses removed.
98510 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
98512         * config/srclist.txt: Add glibc bugs 1220-1227.
98514 2005-08-20  Jim Meyering  <jim@meyering.net>
98516         * lib/regexec.c (regexec, re_search_stub) [!_LIBC]: Omit declaration
98517         of unused local, dfa.
98519 2005-08-20  Bruno Haible  <bruno@clisp.org>
98521         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_GNU_SOURCE.
98523 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
98525         * lib/regex_internal.c (re_string_realloc_buffers, re_node_set_insert):
98526         (re_node_set_insert_last, re_dfa_add_node):
98527         Rename local variables to avoid GCC shadowing warnings.
98529 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
98531         * lib/regex_internal.c (re_acquire_state, re_acquire_state_context)
98532         [defined lint]: Suppress bogus uninitialized-variable warnings.
98534         * lib/regcomp.c (duplicate_node): Return new index, not an error code,
98535         and let the caller return REG_ESPACE if out of space.  This
98536         removes an uninitialied-variable warning with GCC 4.0.1, and also
98537         avoids taking the address of a local variable.  All callers
98538         changed.
98540 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
98542         * config/srclist.txt: Comment out $LIBCSRC/posix/regex_internal.c,
98543         $LIBCSRC/posix/regexec.c.
98544         Add glibc bug 1217 for regcomp.c.
98546 2005-08-19  Jim Meyering  <jim@meyering.net>
98548         * lib/regexec.c (proceed_next_node): Redo local variables to
98549         avoid GCC shadowing warnings.
98551 2005-08-18  Bruno Haible  <bruno@clisp.org>
98553         * lib/strstr.c (strstr): Fix return value in multibyte case.
98554         * lib/strcasestr.c (strcasestr): Likewise.
98556 2005-08-17  Paul Eggert  <eggert@cs.ucla.edu>
98558         * lib/regex.h: Remove useless space-before-tab.  From coreutils.
98560 2005-08-17  Jim Meyering  <jim@meyering.net>
98562         Make the %s format (seconds since the epoch) work for a negative
98563         number and when used with a zero-padded field width, e.g. %015s.
98565         * lib/strftime.c (my_strftime): Move the `do_number_sign_and_padding'
98566         label so that it precedes the code to set `digits'.  Otherwise,
98567         %0Ns wouldn't work.  Before this change, `date -d @-22 +%05s' would
98568         print `00-22'.  Now, it prints `-0022', as it should.
98570 2005-08-17  Bruno Haible  <bruno@clisp.org>
98572         * modules/strstr (Files): Add m4/mbrtowc.m4.
98573         (Depends-on): Add mbuiter.
98575 2005-08-17  Bruno Haible  <bruno@clisp.org>
98577         * modules/strcasestr: New file.
98578         * MODULES.html.sh (String handling, based on ANSI C 89): Add
98579         strcasestr.
98581 2005-08-17  Bruno Haible  <bruno@clisp.org>
98583         * modules/strcase (Depends-on): Add mbuiter. Remove strnlen1, mbchar.
98585 2005-08-17  Bruno Haible  <bruno@clisp.org>
98587         * modules/mbuiter: New file.
98588         * MODULES.html.sh (Extended multibyte and wide character utilities):
98589         Add mbuiter.
98591 2005-08-17  Bruno Haible  <bruno@clisp.org>
98593         * m4/strstr.m4 (gl_FUNC_STRSTR): Use the replacement function always.
98594         (gl_PREREQ_STRSTR): Use gl_FUNC_MBRTOWC.
98596 2005-08-17  Bruno Haible  <bruno@clisp.org>
98598         * m4/strcasestr.m4: New file.
98600 2005-08-17  Bruno Haible  <bruno@clisp.org>
98602         * lib/strstr.h: Ignore HAVE_STRSTR, always declare the gnulib function.
98603         * lib/strstr.c: Completely rewritten, with multibyte locale support.
98605 2005-08-17  Bruno Haible  <bruno@clisp.org>
98607         * lib/strcasestr.h: New file.
98608         * lib/strcasestr.c: New file.
98610 2005-08-17  Bruno Haible  <bruno@clisp.org>
98612         * lib/strcasecmp.c: Use mbuiter.h.
98614 2005-08-17  Bruno Haible  <bruno@clisp.org>
98616         * lib/mbuiter.h: New file.
98618 2005-08-16  Paul Eggert  <eggert@cs.ucla.edu>
98620         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Do not override the results
98621         of gl_GETOPT_SUBSTITUTE.  That way, if both gl_GETOPT_SUBSTITUTE
98622         and gl_GETOPT are both invoked via different paths (as happens
98623         with GNU tar CVS because it uses both argp and getopt), the former
98624         wins.
98626 2005-08-16  Bruno Haible  <bruno@clisp.org>
98628         * modules/tls: New file.
98629         * MODULES.html.sh (Multithreading): Add tls.
98631 2005-08-16  Bruno Haible  <bruno@clisp.org>
98633         * modules/strnlen1: New file.
98634         * MODULES.html.sh (String handling): Add strnlen1.
98636 2005-08-16  Bruno Haible  <bruno@clisp.org>
98638         * modules/strcase (Files): Add m4/mbrtowc.m4.
98639         (Depends-on): Add strnlen1, mbchar.
98641 2005-08-16  Bruno Haible  <bruno@clisp.org>
98643         * modules/mbiter: New file.
98644         * MODULES.html.sh (Extended multibyte and wide character utilities):
98645         Add mbiter.
98647 2005-08-16  Bruno Haible  <bruno@clisp.org>
98649         * modules/mbfile: New file.
98650         * MODULES.html.sh (Extended multibyte and wide character utilities):
98651         Add mbfile.
98653 2005-08-16  Bruno Haible  <bruno@clisp.org>
98655         * modules/mbchar: New file.
98656         * MODULES.html.sh (Extended multibyte and wide character utilities):
98657         New section.
98659 2005-08-16  Bruno Haible  <bruno@clisp.org>
98661         * m4/tls.m4: New file, from GNU gettext.
98663 2005-08-16  Bruno Haible  <bruno@clisp.org>
98665         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Use the replacement function
98666         always.
98667         (gl_PREREQ_STRCASECMP): Use gl_FUNC_MBRTOWC.
98669 2005-08-16  Bruno Haible  <bruno@clisp.org>
98671         * m4/mbiter.m4: New file.
98673 2005-08-16  Bruno Haible  <bruno@clisp.org>
98675         * m4/mbfile.m4: New file.
98677 2005-08-16  Bruno Haible  <bruno@clisp.org>
98679         * m4/mbchar.m4: New file.
98681 2005-08-16  Bruno Haible  <bruno@clisp.org>
98683         * lib/tls.h: New file, from GNU gettext.
98684         * lib/tls.c: New file, from GNU gettext.
98686 2005-08-16  Bruno Haible  <bruno@clisp.org>
98688         * lib/strnlen1.h: New file.
98689         * lib/strnlen1.c: New file.
98691 2005-08-16  Bruno Haible  <bruno@clisp.org>
98693         * lib/strcasecmp.c (struct mbiter_multi): Remove at_end field.
98694         (mbi_init): Update.
98695         (mbi_avail, mbi_advance): Let the iteration end before the terminating
98696         NUL byte, not after it.
98698 2005-08-16  Bruno Haible  <bruno@clisp.org>
98700         * lib/strcase.h (strcasecmp): Add note in comments.
98701         * lib/strncasecmp.c: Use code from strcasecmp.c.
98702         * lib/strcasecmp.c: Use mbchar module. Define private mbiter variant.
98703         (strcasecmp): Work correctly in multibyte locales.
98705 2005-08-16  Bruno Haible  <bruno@clisp.org>
98707         * lib/mbiter.h: New file.
98709 2005-08-16  Bruno Haible  <bruno@clisp.org>
98711         * lib/mbfile.h: New file.
98713 2005-08-16  Bruno Haible  <bruno@clisp.org>
98715         * lib/mbchar.h: New file.
98716         * lib/mbchar.c: New file.
98718 2005-08-16  Bruno Haible  <bruno@clisp.org>
98720         * lib/mbchar.h (mb_cmp, mb_casecmp): Order the invalid characters after
98721         the valid ones. Makes the comparison operations transitive:
98722         cmp (a, b) < 0 && cmp (b, c) < 0 ==> cmp (a, c) < 0.
98723         * lib/strcasecmp.c (strcasecmp): Use mb_casecmp.
98725 2005-08-15  Simon Josefsson  <jas@extundo.com>
98727         * modules/ssize_t (License): Change to 'unlimited'.
98729         * gnulib-tool (sed_extract_prog): Recognize 'unlimited' license.
98731 2005-08-15  Paul Eggert  <eggert@cs.ucla.edu>
98733         * config/srclist.txt: Comment out $LIBCSRC/posix/regex.h.
98734         Add comments for each pending glibc patch.
98736 2005-08-15  Bruno Haible  <bruno@clisp.org>
98738         * lib/regex.h (__restrict_arr): Don't define to __restrict if
98739         __cplusplus is defined.
98741 2005-08-14  Jim Meyering  <jim@meyering.net>
98743         Sync from coreutils.
98745         * lib/fts-cycle.c (setup_dir, enter_dir, leave_dir, free_dir):
98746         Use the hash-table-based cycle-detection code not just when
98747         FTS_TIGHT_CYCLE_CHECK if specified, but also with FTS_LOGICAL.
98748         Reported by James Youngman in
98749         <http://lists.gnu.org/archive/html/bug-gnulib/2005-08/msg00011.html>.
98750         * lib/fts_.h: Mention that with FTS_LOGICAL, we use
98751         FTS_TIGHT_CYCLE_CHECK.
98752         * lib/fts.c (fts_cross_check) [FTS_DEBUG]:
98753         s/active_dir_ht/fts_cycle.ht/. This lets us compile with -DFTS_DEBUG,
98754         once again.
98755         * lib/fts.c [! _LIBC]: Include "lstat.h" rather than rolling our own.
98756         * lib/fts.c (fd_safer): Remove decl.
98757         Include fcntl--.h rather than unistd-safer.h
98758         (fts_safe_changedir): Don't call fd_safer; no longer needed
98759         now that we include fcntl--.h.
98761 2005-08-12  Simon Josefsson  <jas@extundo.com>
98763         * modules/getndelim2: Use ssize_t module.
98764         * modules/getnline: Likewise.
98765         * modules/safe-read: Likewise.
98766         * modules/xreadlink: Likewise.
98768         * modules/ssize_t: New file.
98770 2005-08-12  Simon Josefsson  <jas@extundo.com>
98772         * m4/readline.m4: Look for termcap, curses or ncurses if required.
98774 2005-08-12  Simon Josefsson  <jas@extundo.com>
98776         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
98777         ssize_t.
98779 2005-08-12  Simon Josefsson  <jas@extundo.com>
98781         * MODULES.html.sh (Extra functions based on ANSI C 89: Misc): Add
98782         readline, getdelim and check_version.
98783         (Support for systems lacking ISO C 99: Sizes of integer types):
98784         Add size_max.
98786 2005-08-12  Bruno Haible  <bruno@clisp.org>
98788         * m4/readline.m4 (gl_FUNC_READLINE): Look for ncurses first.
98790 2005-08-11  Simon Josefsson  <jas@extundo.com>
98792         * modules/readline: New file.
98794         * modules/strnlen (Files): Add strnlen.h.
98796 2005-08-11  Simon Josefsson  <jas@extundo.com>
98798         * m4/readline.m4: New file.
98800 2005-08-11  Simon Josefsson  <jas@extundo.com>
98802         * lib/readline.h, readline.c: New file.
98804 2005-08-11  Simon Josefsson  <jas@extundo.com>
98806         * doc/gnulib.texi (Initial import, Finishing touches): Mention
98807         gl_AVOID.
98809 2005-08-11  Bruno Haible  <bruno@clisp.org>
98811         * lib/strnlen.h (strnlen): Change parameter name to match comment.
98813 2005-08-10  Stepan Kasal  <kasal@ucw.cz>
98815         * m4/onceonly_2_57.m4: Really require Autoconf 2.57.
98817 2005-08-10  Simon Josefsson  <jas@extundo.com>
98819         * tests/test-iconvme.c: New file.
98821 2005-08-10  Simon Josefsson  <jas@extundo.com>
98823         * m4/strnlen.m4: New file.
98825         * m4/strndup.m4: Don't check for strnlen declaration, done in
98826         strnlen.m4.
98828 2005-08-10  Simon Josefsson  <jas@extundo.com>
98830         * lib/strndup.c: Use strnlen.h.
98832         * lib/strnlen.h: New file.
98834 2005-08-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
98836         * README: Typos.
98838 2005-08-02  Simon Josefsson  <jas@extundo.com>
98840         * modules/readline: New file.
98842 2005-08-02  Simon Josefsson  <jas@extundo.com>
98844         * modules/getdelim: New file.
98846         * modules/getline: Rewrite, don't use getndelim2.
98848 2005-08-02  Simon Josefsson  <jas@extundo.com>
98850         * m4/getline.m4: Separate out getdelim stuff into separate module.
98852         * m4/getdelim.m4: New file.
98854 2005-08-02  Simon Josefsson  <jas@extundo.com>
98856         * lib/getline.h, getline.c: Rewrite.
98858         * lib/getdelim.h, lib/getdelim.c: New files, ported from glibc.
98860 2005-07-31  Bruno Haible  <bruno@clisp.org>
98862         * lib/lock.h (gl_lock_initializer): New macro.
98863         (gl_lock_define_initialized): Use it.
98864         (gl_rwlock_initializer): New macro.
98865         (gl_rwlock_define_initialized): Use it.
98866         (gl_recursive_lock_initializer): New macro.
98867         (gl_recursive_lock_define_initialized): Use it.
98869 2005-07-30  Karl Berry  <karl@gnu.org>
98871         * doc/gnulib.texi (Initial import): mention -I$(top_builddir)/lib.
98872         Report from Ben Pfaff, regarding getopt.
98874 2005-07-26  Paul Eggert  <eggert@cs.ucla.edu>
98876         Add support to getopt for Emacs, which doesn't use LIBOBJS in the
98877         normal way.
98878         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE_HEADER): New macro.
98879         (gl_GETOPT_SUBSTITUTE): Use it.  Invoke gl_PREREQ_GETOPT.
98880         (gl_GETOPT_IFELSE, gl_GETOPT_CHECK_HEADERS): New macros.
98881         (gl_GETOPT): Use the new macros.  Most of the implementation
98882         is moved to the new macros.  This is for programs like Emacs
98883         that don't want all the functionality of gl_GETOPT.
98885 2005-07-26  Bruno Haible  <bruno@clisp.org>
98887         * m4/lock.m4: Update from GNU gettext.
98889 2005-07-26  Bruno Haible  <bruno@clisp.org>
98891         * lib/lock.h: Update from GNU gettext.
98892         * lib/lock.c: Update from GNU gettext.
98894 2005-07-25  Paul Eggert  <eggert@cs.ucla.edu>
98896         * m4/regex.m4 (gl_INCLUDED_REGEX): Use AC_RUN_IFELSE instead of the
98897         obsolescent AC_TRY_RUN.  Include the default includes files, for
98898         'exit'.
98900 2005-07-24  Bruno Haible  <bruno@clisp.org>
98902         * modules/visibility: New file.
98903         * MODULES.html.sh (Misc): Add visibility.
98905 2005-07-24  Bruno Haible  <bruno@clisp.org>
98907         * m4/visibility.m4: New file.
98909 2005-07-24  Bruno Haible  <bruno@clisp.org>
98911         * doc/visibility.texi: New file.
98913 2005-07-22  Bruno Haible  <bruno@clisp.org>
98915         * modules/alloca-opt (Makefile.am): Remove explicit dependency on
98916         $(ALLOCA_H), redundant through BUILT_SOURCES.
98917         * modules/argz (Makefile.am): Remove explicit dependency on $(ARGZ_H),
98918         redundant through BUILT_SOURCES.
98919         * modules/byteswap (Makefile.am): Remove explicit dependency on
98920         $(BYTESWAP_H), redundant through BUILT_SOURCES.
98921         * modules/fnmatch (Makefile.am): Remove explicit dependency on
98922         $(FNMATCH_H), redundant through BUILT_SOURCES.
98923         * modules/getopt (Makefile.am): Remove explicit dependency on
98924         $(GETOPT_H), redundant through BUILT_SOURCES.
98925         * modules/glob (Makefile.am): Remove explicit dependency on $(GLOB_H),
98926         redundant through BUILT_SOURCES.
98927         * modules/poll (Makefile.am): Remove explicit dependency on $(POLL_H),
98928         redundant through BUILT_SOURCES.
98929         * modules/stdbool (Makefile.am): Remove explicit dependency on
98930         $(STDBOOL_H), redundant through BUILT_SOURCES.
98931         * modules/stdint (Makefile.am): Remove explicit dependency on
98932         $(STDINT_H), redundant through BUILT_SOURCES.
98933         * modules/sysexits (Makefile.am): Add $(SYSEXITS_H) to BUILT_SOURCES.
98934         Remove explicit dependency on $(SYSEXITS_H).
98935         Reported by Alexandre Duret-Lutz <adl@src.lip6.fr>.
98937 2005-07-18  Simon Josefsson  <jas@extundo.com>
98939         * lib/check-version.c (check_version): Accept identical versions too.
98941 2005-07-18  Bruno Haible  <bruno@clisp.org>
98943         * modules/lock: New file.
98944         * MODULES.html.sh (Multithreading): New section.
98946 2005-07-18  Bruno Haible  <bruno@clisp.org>
98948         * m4/lock.m4: New file, from GNU gettext.
98950 2005-07-18  Bruno Haible  <bruno@clisp.org>
98952         * lib/lock.h: New file, from GNU gettext.
98953         * lib/lock.c: New file, from GNU gettext.
98955 2005-07-18  Bruno Haible  <bruno@clisp.org>
98957         * lib/lock.h (gl_once_t): New type.
98958         (gl_once_define, gl_once): New macros.
98959         * lib/lock.c (fresh_once): New variable.
98960         (glthread_once, glthread_once_call, glthread_once_singlethreaded): New
98961         functions.
98963 2005-07-16  Simon Josefsson  <jas@extundo.com>
98965         * doc/gnulib.texi (Library version handling): Add ELF symbol collision
98966         workaround, suggested by Bruno.
98968 2005-07-15  Paul Eggert  <eggert@cs.ucla.edu>
98970         * modules/xalloc (Depends-on): Add xalloc-die.
98971         * modules/xvasprintf (Depends-on): Add xalloc-die.
98973 2005-07-15  Paul Eggert  <eggert@cs.ucla.edu>
98975         * lib/quotearg.c: Add translator comment suggested by Bruno Haible,
98976         with a minor change.
98978 2005-07-15  Bruno Haible  <bruno@clisp.org>
98980         * m4/poll.m4 (gl_FUNC_POLL): Check against MacOS X 10.4 poll() bug.
98981         When using lib/poll.c, define poll as rpl_poll.
98983 2005-07-14  Paul Eggert  <eggert@cs.ucla.edu>
98985         * modules/argp (Depends-on): Remove unlocked-io.
98987 2005-07-14  Derek Price  <derek@ximbiot.com>
98989         * m4/glob.m4 (gl_GLOB): Cache glob interface check result.  Add check
98990         for glob symlink bug.
98992 2005-07-14  Bruno Haible  <bruno@clisp.org>
98994         * m4/argp.m4 (gl_ARGP): Remove invocation of gl_FUNC_GLIBC_UNLOCKED_IO.
98995         Instead, test for *_unlocked function declarations directly.
98997 2005-07-11  Simon Josefsson  <jas@extundo.com>
98999         * modules/size_max: New file.
99001         * modules/xsize: Depend on size_max module for size_max.m4.
99003 2005-07-11  Simon Josefsson  <jas@extundo.com>
99005         * lib/size_max.h: New file.
99007 2005-07-11  Paul Eggert  <eggert@cs.ucla.edu>
99009         * lib/version-etc-fsf.c (version_etc_copyright): Parameterize the
99010         copyright symbol and the year.
99011         * lib/version-etc.c (COPYRIGHT_YEAR): New constant.
99012         (version_etc_va): Use parameterized copyright notice.
99013         Reword to conform to the current GNU coding standards.
99015 2005-07-11  Karl Berry  <karl@gnu.org>
99017         * doc/gnulib.texi (Quoting): new node.
99018         (Initial import): more info, from Patrice.
99020 2005-07-11  Bruno Haible  <bruno@clisp.org>
99022         * gnulib-tool (func_usage): Document option --avoid.
99023         (Command line options): Handle --avoid.
99024         (func_acceptable): New function.
99025         (func_modules_transitive_closure): Use it.
99027 2005-07-11  Bruno Haible  <bruno@clisp.org>
99029         * MODULES.html.sh: Use shortcut URLs to the www.opengroup.org site.
99030         Reported by Jim Meyering.
99032 2005-07-10  Bruno Haible  <bruno@clisp.org>
99034         * m4/size_max.m4 (gl_SIZE_MAX): Cast ~(size_t)0 back to size_t.
99035         Needed when size_t is smaller than 'unsigned int'.
99036         Reported by Paul Eggert.
99038 2005-07-09  Sergey Poznyakoff  <gray@gnu.org.ua>
99040         * modules/argp (Depends-on): Add unlocked-io
99042 2005-07-09  Sergey Poznyakoff  <gray@gnu.org.ua>
99044         * lib/argp-namefrob.h: Include unlocked-io.h. Removed unnecessary
99045         block of defines.
99047 2005-07-08  Paul Eggert  <eggert@cs.ucla.edu>
99049         * config/srclist.txt: Comment out regcomp.c, since we have a porting
99050         fix now.
99052 2005-07-08  Eric Blake  <ebb9@byu.net>  (tiny change)
99053         and Paul Eggert  <eggert@cs.ucla.edu>
99055         * lib/regcomp.c (init_dfa, build_range_exp): Store __btowc value
99056         in wint_t, not wchar_t.  Remove now-unnecessary cast.
99058 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
99060         * modules/regex (Files): Add lib/regex_internal.c,
99061         lib/regex_internal.h, lib/regexec.c, lib/regcomp.c, m4/codeset.m4.
99062         (Depends-on): Add extensions.
99063         (Makefile.am): Remove lib_SOURCES; now done by m4 code.
99065 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
99067         * m4/backupfile.m4 (gl_BACKUPFILE): Use AC_CHECK_FUNCS_ONCE on
99068         pathconf.
99069         * m4/same.m4 (gl_SAME): Likewise.
99070         Require AC_SYS_LONG_FILE_NAMES; bug reported by Gerrit P. Haase.
99072         * m4/regex.m4: Adjust to new libc regex implementation.
99073         (gl_INCLUDED_REGEX): Add AC_LIBSOURCES for
99074         all the .c and .h parts of (the new) regex.
99075         Quote the m4 stuff better.
99076         Check for RE_ICASE bug of old gnulib.
99077         Check for REG_STARTEND of recent libc.
99078         Rename local variables from jm_* to gl_*.
99079         Quote operand of "test -f".
99080         Say "recent enough" version of libc, not "version 2".
99081         (gl_PREREQ_REGEX): Remove AC_FUNC_ALLOCA, since alloca is a
99082         prerequisite module.  Remove AC_HEADER_STDC; no longer needed.
99083         Check for locale.h, isblank, mbrtowc, wcrtomb, wcscoll.
99084         Remove check for btowc, isascii.
99085         Require AM_LANGINFO_CODESET.
99087 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
99089         * lib/regex.c, regex.h: Sync from libc.
99090         * lib/regcomp.c, lib/regexec_internal.c, lib/regex_internal.h:
99091         * lib/regexec.c:
99092         New files, synced from libc, except that regex_internal.h
99093         currently has a small porting fix.
99095 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
99097         * config/srclist.txt: Add regcomp.c, regex.c, regex.h,
99098         regex_internal.c, regexec.c.
99099         Add regex_internal.h too, but as a comment, since the libc version
99100         is currently broken in gnulib mode.
99102 2005-07-06  Paul Eggert  <eggert@cs.ucla.edu>
99104         Support programs like Emacs that use gnulib but not gettext.
99105         * MODULES.html.sh (Internationalization functions): Add gettext-h.
99106         * modules/gettext-h: New file.
99107         * modules/gettext (Files): Remove lib/gettext.h.
99108         (Depends-on): Add gettext-h.
99109         (Makefile.am): Remove lib_SOURCES.
99110         * modules/argmatch, modules/c-stack, modules/closeout:
99111         * modules/copy-file, modules/csharpcomp, modules/csharpexec:
99112         * modules/execute, modules/file-type, modules/getaddrinfo:
99113         * modules/getopt, modules/human, modules/javacomp:
99114         * modules/javaexec, modules/mkdir-p, modules/obstack:
99115         * modules/openat, modules/pagealign_alloc, modules/pipe:
99116         * modules/quotearg, modules/regex, modules/rpmatch:
99117         * modules/unicodeio, modules/userspec, modules/version-etc:
99118         * modules/wait-process, modules/xalloc-die, modules/xmemcoll:
99119         * modules/xsetenv:
99120         Depend on gettext-h, not gettext.
99122 2005-07-05  Paul Eggert  <eggert@cs.ucla.edu>
99124         * gnulib-tool (func_import): Add support for 'public domain' license.
99125         * modules/alloca, modules/atexit, modules/memmove:
99126         Now public domain, not GPL.
99127         * modules/dup2, modules/getpagesize, modules/malloc, modules/memset:
99128         * modules/realloc, modules/strerror, modules/strtod:
99129         Now LGPL, not GPL.
99131 2005-07-05  Bruno Haible  <bruno@clisp.org>
99133         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): Upgrade to version from current
99134         autoconf CVS. Needed for mingw.
99136 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
99138         Remove the dependency of the strftime module on the tzset module.
99139         * modules/strftime (Depends-on): Remove dependency on tzset.
99141 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
99143         Remove the dependency of the strftime module on the tzset module.
99144         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't require
99145         gl_FUNC_TZSET_CLOBBER.
99147 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
99149         Remove the dependency of the strftime module on the tzset module.
99150         * lib/strftime.c (my_strftime)
99151         [! defined _LIBC && ! HAVE_RUN_TZSET_TEST]:
99152         Copy the input structure, to work around some of the bug with
99153         Solaris 2.5.1 and Solaris 2.6.  If you still care about these old
99154         Solaris releases, you should also use the tzset module, but we won't
99155         require it as a dependency any more since we don't want LGPLed code
99156         to depend on GPLed code.
99158 2005-07-02  Jim Meyering  <jim@meyering.net>
99160         * m4/chown.m4, cloexec.m4, dup2.m4, fsusage.m4:
99161         * m4/getcwd-path-max.m4, getcwd.m4, mkstemp.m4, mountlist.m4:
99162         * m4/pagealign_alloc.m4, save-cwd.m4, unistd-safer.m4:
99163         Don't check for fcntl.h, and don't test for HAVE_FCNTL_H.
99165 2005-07-02  Jim Meyering  <jim@meyering.net>
99167         * lib/backupfile.c (backup_args): Change a `0' to NULL.
99169 2005-07-01  Paul Eggert  <eggert@cs.ucla.edu>
99171         * lib/xnanosleep.c: Include timespec.h, since OpenBSD 3.4 <time.h>
99172         declares only 'struct timespec;' (!).
99174 2005-07-01  Jim Meyering  <jim@meyering.net>
99176         * lib/chown.c, cloexec.c, dup-safer.c, dup2.c, fsusage.c, getcwd.c:
99177         * lib/getloadavg.c, mountlist.c, openat.h, pagealign_alloc.c:
99178         * lib/save-cwd.c, tempname.c:
99179         Assume HAVE_FCNTL_H (i.e., include <fcntl.h> unconditionally,
99180         and don't include <sys/file.h>).
99182 2005-06-29  Jim Meyering  <jim@meyering.net>
99184         * lib/mkdir-p.c (make_dir_parents): Don't apply sizeof to a hard-coded
99185         type name.  Use the variable name instead.
99186         * lib/idcache.c (getuser, getuidbyname, getgroup, getgidbyname):
99187         Likewise.
99189 2005-06-28  Simon Josefsson  <jas@extundo.com>
99191         * modules/check-version (Files): Add check-version.m4.
99193 2005-06-28  Simon Josefsson  <jas@extundo.com>
99195         * m4/check-version.m4: New file, suggested by Jim Meyering
99196         <jim@meyering.net>.
99198 2005-06-28  Simon Josefsson  <jas@extundo.com>
99200         * lib/check-version.h, lib/check-version.c: New files.
99202 2005-06-28  Simon Josefsson  <jas@extundo.com>
99204         * lib/base64.c (base64_encode): Indent.  Rename 'b64' to avoid
99205         collision with global variable.  Better indentation.  Don't
99206         increment buffer pointer beyond buffer end.  Based on comments
99207         from Paul Eggert <eggert@cs.ucla.edu>.
99209         * lib/base64.h: Indent.
99211 2005-06-28  Simon Josefsson  <jas@extundo.com>
99213         * doc/gnulib.texi (Library version handling): New section.
99215 2005-06-28  Jim Meyering  <jim@meyering.net>
99217         * check-module (find_included_lib_files): Hard-code another
99218         pair of exceptions: fts.c includes fts-cycle.c and unistd-safer.h
99219         but modules/fts-lgpl (correctly) does not list those files.
99221         * modules/canonicalize (Files): Add lib/pathmax.h.
99223 2005-06-25  Simon Josefsson  <jas@extundo.com>
99225         * modules/check-version: New file.
99227 2005-06-24  Paul Eggert  <eggert@cs.ucla.edu>
99229         * lib/canon-host.c (canon-host): Append trailing "," to 0 in
99230         initializer of struct addrinfo, as an indication that we don't
99231         care how many members the structure has.
99233 2005-06-24  Derek Price  <derek@ximbiot.com>
99234         and Bruno Haible  <bruno@clisp.org>
99236         Remove stat module & update lstat.
99237         * m4/lstat.m4 (gl_FUNC_LSTAT): Drop AC_FUNC_LSTAT in favor of
99238         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
99239         * m4/stat.m4: Remove this file.
99241 2005-06-24  Derek Price  <derek@ximbiot.com>
99242         and Bruno Haible  <bruno@clisp.org>
99244         Remove stat module & update lstat.
99245         * lib/stat.c: Remove this file...
99246         (slash_aware_lstat): ...moving this content and its support...
99247         * lib/lstat.c (rpl_lstat): ...into here.
99248         * lib/lstat.h: New file.
99250 2005-06-24  Derek Price  <derek@ximbiot.com>
99251         and Bruno Haible  <bruno@clisp.org>
99253         Remove stat module & update lstat.
99254         * config/srclist.txt (libc sources): Remove stat.
99256 2005-06-24  Derek Price  <derek@ximbiot.com>
99257         and Bruno Haible  <bruno@clisp.org>
99259         Remove stat module & update lstat.
99260         * MODULES.html.sh (stat): Remove.
99261         * MODULES.html: Regenerated.
99262         * modules/lstat (Description): Correct function name.
99263         (Files): Add "lstat.h".
99264         (Depends-on): Remove stat, add xalloc, stat-macros.
99265         * modules/stat: Remove this file.
99266         (Include): Add "lstat.h", remove <sys/stat.h>.
99268 2005-06-23  Paul Eggert  <eggert@cs.ucla.edu>
99270         * lib/mktime.c: Include <string.h> even if !DEBUG.  (From glibc.)
99271         (ranged_convert): Don't save conversion in a temporary struct.
99272         This causes a warning with GCC 4.0.0, and anyway in the typical
99273         case it's not worth the extra 100 bytes or so of code.
99274         (ranged_convert, __mktime_internal): When calling a function via a
99275         pointer P, use P () rather than (*P) (), as we now assume C89 or
99276         better.
99278 2005-06-22  Paul Eggert  <eggert@cs.ucla.edu>
99280         * lib/readutmp.c (desirable_utmp_entry): Fix bug where "who -b" and
99281         "who -r" failed to give output.  Problem reported by Tim Waugh.
99283         * lib/xmalloc.c (HAVE_GNU_CALLOC): New constant.
99284         (xcalloc): Use it to avoid needless tests.
99285         Problem reported by Jim Meyering.
99287 2005-06-20  Derek Price  <derek@ximbiot.com>
99289         * m4/bison.m4: Note that precious decls of YACC & YFLAGS will be
99290         unnecessary for Autoconfs > 2.59c.
99292 2005-06-16  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
99294         * lib/argp.h (__option_is_short): Check upper limit of
99295         __key. Isprint() requires its argument to have the value
99296         of an unsigned char or EOF.
99298 2005-06-16  Jim Meyering  <jim@meyering.net>
99300         * lib/calloc.c (rpl_calloc): Allocate a 1-byte buffer (not 1xS or Nx1)
99301         when either N or S is zero.
99303 2005-06-16  Derek Price  <derek@ximbiot.com>
99305         * m4/bison.m4: Declare YACC & YFLAGS precious.
99307 2005-06-10  Paul Eggert  <eggert@cs.ucla.edu>
99309         * lib/fnmatch.c (fnmatch): If there is an encoding error in a
99310         multibyte string or pattern, fall back on unibyte matching.
99311         Problem reported by James Youngman.
99313 2005-06-08  Bruno Haible  <bruno@clisp.org>
99315         * modules/csharpcomp: New file.
99316         * MODULES.html.sh (C#): Add csharpcomp.
99318 2005-06-08  Bruno Haible  <bruno@clisp.org>
99320         * m4/csharpcomp.m4: New file, from GNU gettext.
99322 2005-06-08  Bruno Haible  <bruno@clisp.org>
99324         * lib/csharpcomp.h: New file, from GNU gettext.
99325         * lib/csharpcomp.c: New file, from GNU gettext.
99326         * lib/csharpcomp.sh.in: New file, from GNU gettext.
99328 2005-06-08  Bruno Haible  <bruno@clisp.org>
99330         * lib/binary-io.h (fileno): Undefine before defining it. Avoids a gcc
99331         warning on mingw.
99333 2005-06-07  Derek Price  <derek@ximbiot.com>
99335         Sync from CVS.
99336         * lib/glob_.h: Indent nested #ifdef.
99338 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
99340         Sync from coreutils.
99341         Use "file name" when talking about file names, instead of "filename"
99342         or "path", as per the GNU coding standards.
99343         * lib/mkdir-p.c: Renamed from makepath.c.
99344         (make_dir_parents): Renamed from make_path.  All callers changed.
99345         * lib/mkdir-p.h: Likewise.  All includers changed.
99346         * lib/filenamecat.c: Renamed from path-concat.c.
99347         (file_name_concat): Renamed from path_concat.  All callers changed.
99348         [TEST_FILE_NAME_CONCAT]: Renamed from TEST_PATH_CONCAT.
99349         * lib/filenamecat.h: Likewise.  All includers changed.
99350         * lib/acl.c: Don't use "path" or "filename" to mean "file name"
99351         in comments or local variable names.
99352         * lib/basename.c: Likewise.
99353         * lib/canonicalize.c, canonicalize.h: Likewise.
99354         * lib/dirname.c, dirname.h: Likewise.
99355         * lib/euidaccess.c: Likewise.
99356         * lib/exclude.c: Likewise
99357         * lib/fnmatch_.h, fnmatch_loop.c: Likewise.
99358         * lib/fsusage.c, fsuage.h: Likewise.
99359         * lib/fts.c, fts_.h: Likewise.
99360         * lib/getcwd.c: Likewise.
99361         * lib/getloadavg.c: Likewise.
99362         * lib/mkstemp.c: Likewise.
99363         * lib/mountlist.c, mountlist.h: Likewise.
99364         * lib/openat.c, openat.h: Likewise.
99365         * lib/readlink-stub.c: Likewise.
99366         * lib/readutmp.c, readutmp.h: Likewise.
99367         * lib/rename.c: Likewise.
99368         * lib/rmdir.c: Likewise.
99369         * lib/same.c: Likewise.
99370         * lib/savedir.c: Likewise.
99371         * lib/stripslash.c: Likewise.
99372         * lib/tempname.c: Likewise.
99373         * lib/xreadlink.c: Likewise.
99374         * lib/exclude.c (excluded_file_name): Renamed from excluded_filename.
99375         All uses changed.
99376         * lib/exclude.h: Likewise.
99378         * lib/euidaccess.c (getuid, getgid, getuid, getegid)
99379         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
99380         * lib/idcache.c (getpwuid, getpwnam, getgrgid, getgrnam)
99381         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
99382         * lib/pathmax.h: Include <limits.h> unconditionally, since other
99383         files have been getting away with it for years (MORE/BSD 4.3
99384         is extinct now).
99385         * lib/userspec.c (getpwnam, getgrnam, getgrgid)
99386         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
99388         * lib/pathmax.h (_POSIX_PATH_MAX) [!defined _POSIX_PATH_MAX]:
99389         Define to 256, not 255, as per modern POSIX.
99391 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
99393         Sync from coreutils.
99394         Use "file name" when talking about file names, instead of "filename"
99395         or "path", as per the GNU coding standards.
99396         * MODULES.html.sh: mkdir-p renamed from makepath.
99397         filenamecat renamed from path-concat.
99398         * modules/filenamecat: Renamed from modules/path-concat.
99399         (Files): filenamecat.h and filenamecat.c renamed from
99400         path-concat.h and path-concat.c.
99401         (configure.ac): gl_FILE_NAME_CONCAT, not gl_PATH_CONCAT.
99402         (Include): filenamecat.h, not path-concat.h.
99403         * modules/mkdir-p: Renamed from modules/makepath.
99404         (Files): mkdir-p.h and mkdir-p.c renamed from makepath.h and
99405         makepath.c.
99406         (configure.ac): gl_MKDIR_PARENTS, not gl_MAKEPATH.
99407         (Include): mkdir-p.h, not makepath.h.
99409 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
99411         Sync from coreutils.
99412         * m4/mkdir-p.m4: Renamed from makepath.m4.
99413         (gl_MKDIR_PARENTS): Renamed from gl_MAKEPATH.  All uses changed.
99414         Rename files from makepath.c to mkdir-p.c, and from
99415         makepath.h to mkdir-p.h.
99416         * m4/filenamecat.m4: Renamed from path-concat.m4.
99417         (gl_FILE_NAME_CONCAT): Renamed from gl_PATH_CONCAT.  All uses changed.
99418         Rename files from path-concat.c to filenamecat.c,
99419         and from path-concat.h to filenamecat.h.
99420         * m4/getcwd-path-max.m4: Don't use "path" or "filename" to mean
99421         "file name" in local variables or comments.
99422         * m4/rename.m4: Likewise.
99424 2005-06-01  Bruno Haible  <bruno@clisp.org>
99426         * modules/csharpexec: New file.
99427         * MODULES.html.sh (C#): New section.
99429 2005-06-01  Bruno Haible  <bruno@clisp.org>
99431         * m4/csharp.m4: New file, from GNU gettext.
99432         * m4/csharpexec.m4: New file, from GNU gettext.
99434 2005-06-01  Bruno Haible  <bruno@clisp.org>
99436         * lib/csharpexec.h: New file, from GNU gettext.
99437         * lib/csharpexec.c: New file, from GNU gettext.
99438         * lib/csharpexec.sh.in: New file, from GNU gettext.
99440 2005-05-31  Derek Price  <derek@ximbiot.com>
99441             Paul Eggert  <eggert@cs.ucla.edu>
99443         Sync from cvs.
99444         * m4/glob.m4: s/MISSING_SYS_CDEFS_H/_SYS_CDEFS_H/ and comment.
99446 2005-05-31  Derek Price  <derek@ximbiot.com>
99447             Paul Eggert  <eggert@cs.ucla.edu>
99449         Sync from cvs.
99450         * lib/glob_.h: s/MISSING_SYS_CDEFS_H/_SYS_CDEFS_H/ and comment.
99452 2005-05-29  Derek Price  <derek@ximbiot.com>
99454         * config/srclist.txt (glob_.h, glob.c): Add these files.
99456 2005-05-29  Derek Price  <derek@ximbiot.com>
99458         * MODULES.html.sh: Add glob to Enhanced POSIX.2001 section.
99459         * modules/glob: New file.
99460         * modules/getlogin_r: Add link to POSIX spec in description.
99462 2005-05-29  Derek Price  <derek@ximbiot.com>
99463             Paul Eggert  <eggert@cs.ucla.edu>
99465         * m4/glob.m4: New file.
99467 2005-05-29  Derek Price  <derek@ximbiot.com>
99468             Paul Eggert  <eggert@cs.ucla.edu>
99470         * lib/glob_.h, lib/glob.c: New files.
99472 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
99474         * modules/fts (Files): Remove m4/inttypes-pri.m4.
99475         * modules/fts-lgpl (Depends-on): Remove gettext.
99477 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
99479         * m4/fts.m4 (gl_FUNC_FTS_CORE): Don't check for inttypes.h or stdint.h,
99480         and don't require gt_INTTYPES_PRI.
99482 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
99484         * lib/getlogin_r.c (getlogin_r): Don't set errno to 0 on return.
99486         * lib/fts.c: Don't worry about debugging on pre-C99-compatible hosts;
99487         the configuration hassle isn't worth it.
99488         Include inttypes.h and stdint.h unconditionally if FTS_DEBUG.
99489         (LONGEST_MODIFIER, PRIuMAX): Remove.
99491 2005-05-27  Bruno Haible  <bruno@clisp.org>
99493         * lib/getlogin_r.h: Remove second include of <stddef.h>.
99495 2005-05-26  Paul Eggert  <eggert@cs.ucla.edu>
99497         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Define
99498         _POSIX_PTHREAD_SEMANTICS for Solaris.
99500 2005-05-25  Derek Price  <derek@ximbiot.com>
99502         * MODULES.html.sh: Add getlogin_r to POSIX.2001 support section.
99504 2005-05-25  Derek Price  <derek@ximbiot.com>
99505             Paul Eggert  <eggert@cs.ucla.edu>
99507         * modules/getlogin_r, m4/getlogin_r.m4: New files.
99508         * lib/getlogin_r.c, getlogin_r.h: New files.
99510 2005-05-25  Bruno Haible  <bruno@clisp.org>
99511             Derek Price  <derek@ximbiot.com>
99513         * lib/getlogin_r.h: Simplify API documentation.
99515 2005-05-23  Derek Price  <derek@ximbiot.com>
99517         * modules/minmax (Files): Add m4/minmax.m4.
99518         (configure.ac): Add gl_MINMAX.
99520 2005-05-22  Paul Eggert  <eggert@cs.ucla.edu>
99522         * lib/fts.c (fd_safer) [_LGPL_PACKAGE]: New static function,
99523         so that unistd-safer.h (GPL'ed code) need not be included.
99525 2005-05-22  Bruno Haible  <bruno@clisp.org>
99527         * m4/minmax.m4: New file.
99528         Based on a patch by Derek Price <derek@ximbiot.com>.
99530 2005-05-22  Bruno Haible  <bruno@clisp.org>
99532         * lib/stdint_.h (_STDINT_H_HAVE_INT64): New macro. Use it in #ifdefs.
99533         (INT64_MIN): Fix definition.
99534         Suggested by Paul Eggert <eggert@cs.ucla.edu>.
99536         * lib/stdint_.h (_STDINT_H_NEED_SIGNED_INT_TYPES): Renamed from
99537         NEED_SIGNED_INT_TYPES.
99539         * lib/stdint_.h (_STDINT_H_HAVE_SYSTEM_INTTYPES): Renamed from
99540         HAVE_SYSTEM_INTTYPES.
99542 2005-05-22  Bruno Haible  <bruno@clisp.org>
99544         * lib/minmax.h: Include <limits.h> only when it defines MIN, MAX.
99545         Also include <sys/param.h> if it defines MIN, MAX.
99546         Based on a patch by Derek Price <derek@ximbiot.com>.
99548 2005-05-21  Jim Meyering  <jim@meyering.net>
99550         * modules/fts (Files): Add m4/inttypes-pri.m4.
99551         (Depends-on): Add lstat and remove gettext.  Alphabetize.
99553 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
99555         New fts module.
99556         * lib/fts.c: Don't include "cycle-check.h" or "hash.h".
99557         (setup_dir, free_dir): New functions.
99558         (enter_dir, leave_dir): Define trivial
99559         alternatives of _LGPL_PACKAGE.  Move to fts-cycle.c if !_LGPL_PACKAGE.
99560         (HT_INITIAL_SIZE, ENTER_DIR): Remove.  All uses removed.
99561         (LEAVE_DIR): Fix typo: pass Fts and Ent to leave_dir.
99562         (struct Active_dir, AD_compare, AD_hash, enter_dir, leave_dir):
99563         Move to fts-cycle.c.
99564         (fts_open): Use setup_dir.
99565         (fts_close): Use free_dir.
99566         (fts_read): Have just one copy of the ENTER_DIR code rather than three.
99567         This adds a label and some gotos, but the alternatives were messier.
99568         Check for memory allocation failure when entering a dir.
99569         (fts_stat) [_LGPL_PACKAGE]: Bring back glibc cycle detection code.
99570         * lib/fts_.h (_LGPL_PACKAGE) [defined _LIBC]: New macro.
99571         (FTS): New member fts_cycle, that is a union that contains the
99572         old active_dir_ht and cycle_state.  All uses changed to mention
99573         fts_cycle.ht and fts_cycle.state.
99574         * lib/fts-cycle.c: New file, containing GPL'ed code migrated out of
99575         fts.c, with the following changes:
99576         (setup_dir, free_dir): New functions.
99577         (enter_dir): Now returns bool.  Return true if successful, false
99578         if memory exhausted.  All callers changed.
99579         Do not bother partly cleaning up on
99580         memory allocation failure; that is free_dir's job.
99581         However, free ad if hash_insert fails, to avoid memory leak.
99582         (enter_dir, leave_dir): Accommodate change to FTS by inspecting
99583         fts->fts_options to see which union member to use.
99585 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
99587         * m4/fts.m4 (gl_FUNC_FTS_CORE): Renamed from gl_FUNC_FTS.
99588         (gl_FUNC_FTS, gl_FUNC_FTS_LGPL): New macros.
99590 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
99592         * MODULES.html.sh (File system functions): Add fts, fts-lgpl.
99594 2005-05-20  Jim Meyering  <jim@meyering.net>
99596         * lib/unlinkdir.h (cannot_unlink_dir) [UNLINK_CANNOT_UNLINK_DIR]:
99597         Now a macro, to pacify GCC.
99599 2005-05-20  Eric Blake  <ebb9@byu.net>  (tiny change)
99601         * m4/chown.m4 (gl_FUNC_CHOWN): Correct sense of test for honoring IDs
99602         of -1.
99604 2005-05-20  Eric Blake  <ebb9@byu.net>  (tiny change)
99606         * lib/chown.c (rpl_chown): Return -1 on failure.
99608 2005-05-18  Paul Eggert  <eggert@cs.ucla.edu>
99610         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME]):
99611         Don't check for stddef.h.
99612         * m4/fts.m4 (gl_FUNC_FTS): Don't require AC_HEADER_STDC, as we
99613         don't use its results.
99614         Don't check for fcntl.h, stddef.h, stdlib.h, string.h, unistd.h,
99615         since we include them unconditionally.  Don't require
99616         AM_STDBOOL_H, since stdbool is a prerequisite.
99617         Don't require AC_C_CONST, AC_TYPE_SIZE_T or check for ptrdiff_t
99618         since we assume C89 or better.
99619         Don't require AC_FUNC_CLOSEDIR_VOID, AC_FUNC_LSTAT, or AC_FUNC_STAT,
99620         as we don't use their results.
99621         Don't check for fchdir, memmove, memset, strrchr, as we use
99622         them unconditionally.
99623         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER): Don't define
99624         GETTIMEOFDAY_CLOBBERS_LOCALTIME_BUFFER, since nobody uses it.
99626 2005-05-18  Paul Eggert  <eggert@cs.ucla.edu>
99628         * lib/canonicalize.c: Include canonicalize.h first, to test interface.
99629         Include <stddef.h> unconditionally, since we assume C89 now.
99630         All uses of PTR_INT_TYPE replaced by ptrdiff_t.
99631         * lib/fts.c: Include fts_.h first, to check interface.
99632         Do not include intprops.h; no longer needed.
99633         Include cycle-check.h and hash.h, since fts_.h no longer does.
99634         Remove unnecessary casts of closedir to void.
99635         (fts_build): Use a simpler method (not involving TYPE_SIGNED) to
99636         decide whether to decrement nlinks.
99637         * lib/fts_.h: Do not include hash.h or cycle-check.h; no longer needed.
99638         (FTS): Use struct hash_table * instead of Hash_table, so that
99639         we no longer need to include hash.h here.
99641 2005-05-18  Jim Meyering  <jim@meyering.net>
99643         * modules/dirfd (License): Change to LGPL.  Most of the code
99644         is already in the public domain.
99646 2005-05-18  Jim Meyering  <jim@meyering.net>
99648         * m4/fts.m4 (AC_LIBSOURCES): Add intprops.h to the list.
99649         Reported by Yoann Vandoorselaere.
99651 2005-05-17  Jim Meyering  <jim@meyering.net>
99653         * m4/fts.m4: New file, from coreutils.
99655 2005-05-17  Jim Meyering  <jim@meyering.net>
99657         * lib/fts.c, lib/fts_.h: New files, from coreutils.
99659 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
99661         Sync from coreutils.
99662         * m4/unlinkdir.m4: New file.
99664 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
99666         Sync from coreutils.
99667         * lib/unlinkdir.c, lib/unlinkdir.h: New files.
99668         * lib/gethrxtime.c, lib/gethrxtime.h, lib/getpass.h, lib/mountlist.h,
99669         lib/path-concat.c, lib/regex.h, lib/unlocked-io.h, lib/xtime.h:
99670         White space changes only.
99671         * lib/makepath.c (make_path): Port to hosts where leading "//" is
99672         special.
99673         * lib/yesno.c: Include getline.h, not ctype.h.
99674         (yesno): Don't remove leading white space; POSIX doesn't allow it.
99675         Use getline to remove arbitrary restriction on response length.
99677 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
99679         * config/srclist-update: Spell out "Street" in FSF postal
99680         mail address; this is the style the FSF seems to prefer.
99682         * build-aux/depcomp, build-aux/install-sh, build-aux/mdate-sh,
99683         build-aux/missing, build-aux/mkinstalldirs: Sync from Automake;
99684         this updates FSF postal mail address.
99686         Sync from coreutils.
99687         * modules/unlinkdir: New file.
99688         * modules/yesno (Depends-on): Add getline.
99689         * MODULES.html.sh (File system functions): Add unlinkdir.
99691 2005-05-13  Paul Eggert  <eggert@cs.ucla.edu>
99693         * lib/byteswap_.h, lib/getsubopt.h, lib/iconvme.h, lib/strsep.c,
99694         lib/strsep.h:
99695         Change the initial comment to refer to GPL, not LGPL.
99696         gnulib-tool will change it to LGPL as needed.
99698         * lib/__fpending.c, lib/acl.c, lib/acl.h, lib/alloca_.h, lib/allocsa.c,
99699         lib/allocsa.h, lib/argmatch.c, lib/argmatch.h, lib/argp-ba.c,
99700         lib/argp-eexst.c, lib/argp-fmtstream.c, lib/argp-fmtstream.h,
99701         lib/argp-fs-xinl.c, lib/argp-help.c, lib/argp-namefrob.h,
99702         lib/argp-parse.c, lib/argp-pv.c, lib/argp-pvh.c, lib/argp-xinl.c,
99703         lib/argp.h, lib/argz.c, lib/argz_.h, lib/asnprintf.c, lib/asprintf.c,
99704         lib/atanl.c, lib/backupfile.c, lib/backupfile.h, lib/base64.c,
99705         lib/base64.h, lib/basename.c, lib/binary-io.h, lib/byteswap_.h,
99706         lib/c-ctype.c, lib/c-ctype.h, lib/c-stack.c, lib/c-stack.h,
99707         lib/c-strtod.c, lib/calloc.c, lib/canon-host.c, lib/canonicalize.c,
99708         lib/canonicalize.h, lib/ceill.c, lib/chdir-long.c, lib/chdir-long.h,
99709         lib/chown.c, lib/classpath.c, lib/classpath.h, lib/cloexec.c,
99710         lib/closeout.c, lib/closeout.h, lib/concatpath.c, lib/config.charset,
99711         lib/copy-file.c, lib/copy-file.h, lib/cycle-check.c, lib/cycle-check.h,
99712         lib/diacrit.c, lib/diacrit.h, lib/dirfd.c, lib/dirfd.h, lib/dirname.c,
99713         lib/dirname.h, lib/dummy.c, lib/dup-safer.c, lib/dup2.c, lib/eealloc.h,
99714         lib/error.c, lib/error.h, lib/euidaccess.c, lib/exclude.c,
99715         lib/exclude.h, lib/execute.c, lib/execute.h, lib/exit.h,
99716         lib/exitfail.c, lib/exitfail.h, lib/expl.c, lib/fatal-signal.c,
99717         lib/fatal-signal.h, lib/fd-safer.c, lib/file-type.c, lib/file-type.h,
99718         lib/fileblocks.c, lib/filemode.c, lib/filemode.h, lib/findprog.c,
99719         lib/findprog.h, lib/floorl.c, lib/fnmatch.c, lib/fnmatch_.h,
99720         lib/fnmatch_loop.c, lib/fopen-safer.c, lib/free.c, lib/frexpl.c,
99721         lib/fsusage.c, lib/fsusage.h, lib/full-read.c, lib/full-read.h,
99722         lib/full-write.c, lib/full-write.h, lib/fwriteerror.c,
99723         lib/fwriteerror.h, lib/gai_strerror.c, lib/gcd.c, lib/gcd.h,
99724         lib/getaddrinfo.c, lib/getaddrinfo.h, lib/getcwd.c, lib/getcwd.h,
99725         lib/getdate.h, lib/getdate.y, lib/getdomainname.c, lib/getdomainname.h,
99726         lib/getgroups.c, lib/gethostname.c, lib/gethrxtime.c, lib/gethrxtime.h,
99727         lib/getline.c, lib/getline.h, lib/getloadavg.c, lib/getndelim2.c,
99728         lib/getndelim2.h, lib/getnline.c, lib/getnline.h, lib/getopt.c,
99729         lib/getopt1.c, lib/getopt_.h, lib/getopt_int.h, lib/getpagesize.h,
99730         lib/getpass.c, lib/getpass.h, lib/getsubopt.c, lib/getsubopt.h,
99731         lib/gettext.h, lib/gettime.c, lib/gettimeofday.c, lib/getugroups.c,
99732         lib/getusershell.c, lib/group-member.c, lib/group-member.h,
99733         lib/hard-locale.c, lib/hard-locale.h, lib/hash-pjw.c, lib/hash-pjw.h,
99734         lib/hash.c, lib/hash.h, lib/human.c, lib/human.h, lib/iconvme.c,
99735         lib/iconvme.h, lib/idcache.c, lib/inet_ntop.h, lib/intprops.h,
99736         lib/inttostr.c, lib/inttostr.h, lib/isdir.c, lib/javacomp.c,
99737         lib/javacomp.h, lib/javacomp.sh.in, lib/javaexec.c, lib/javaexec.h,
99738         lib/javaexec.sh.in, lib/lbrkprop.h, lib/lchown.c, lib/ldexpl.c,
99739         lib/linebreak.c, lib/linebreak.h, lib/linebuffer.c, lib/linebuffer.h,
99740         lib/localcharset.c, lib/localcharset.h, lib/logl.c, lib/long-options.c,
99741         lib/long-options.h, lib/lstat.c, lib/makepath.c, lib/makepath.h,
99742         lib/malloc.c, lib/mathl.h, lib/mbswidth.c, lib/mbswidth.h, lib/md5.c,
99743         lib/md5.h, lib/memcasecmp.c, lib/memcasecmp.h, lib/memchr.c,
99744         lib/memcmp.c, lib/memcoll.c, lib/memcoll.h, lib/memcpy.c, lib/memmem.c,
99745         lib/memmem.h, lib/mempcpy.c, lib/mempcpy.h, lib/memrchr.c,
99746         lib/memrchr.h, lib/memset.c, lib/minmax.h, lib/mkdir.c, lib/mkdtemp.c,
99747         lib/mkdtemp.h, lib/mkstemp.c, lib/mktime.c, lib/modechange.c,
99748         lib/modechange.h, lib/mountlist.c, lib/mountlist.h, lib/nanosleep.c,
99749         lib/obstack.c, lib/obstack.h, lib/openat.c, lib/openat.h,
99750         lib/pagealign_alloc.c, lib/pagealign_alloc.h, lib/path-concat.c,
99751         lib/path-concat.h, lib/pathmax.h, lib/pathname.h, lib/physmem.c,
99752         lib/physmem.h, lib/pipe.c, lib/pipe.h, lib/poll.c, lib/poll_.h,
99753         lib/posixtm.c, lib/posixtm.h, lib/posixver.c, lib/printf-args.c,
99754         lib/printf-args.h, lib/printf-parse.c, lib/printf-parse.h,
99755         lib/progname.c, lib/progname.h, lib/progreloc.c, lib/putenv.c,
99756         lib/quote.c, lib/quote.h, lib/quotearg.c, lib/quotearg.h, lib/raise.c,
99757         lib/readlink.c, lib/readtokens.c, lib/readtokens.h, lib/readtokens0.c,
99758         lib/readtokens0.h, lib/readutmp.c, lib/readutmp.h, lib/realloc.c,
99759         lib/ref-add.sin, lib/ref-del.sin, lib/regex.c, lib/regex.h,
99760         lib/rename.c, lib/rmdir.c, lib/rpmatch.c, lib/safe-read.c,
99761         lib/safe-read.h, lib/safe-write.c, lib/safe-write.h, lib/same.c,
99762         lib/same.h, lib/save-cwd.c, lib/save-cwd.h, lib/savedir.c,
99763         lib/savedir.h, lib/setenv.c, lib/setenv.h, lib/settime.c,
99764         lib/sh-quote.c, lib/sh-quote.h, lib/sha1.c, lib/sha1.h, lib/sig2str.c,
99765         lib/sig2str.h, lib/sincosl.c, lib/snprintf.c, lib/snprintf.h,
99766         lib/sqrtl.c, lib/stat-macros.h, lib/stat.c, lib/stdbool_.h,
99767         lib/stdint_.h, lib/stdio-safer.h, lib/stpcpy.c, lib/stpcpy.h,
99768         lib/stpncpy.c, lib/stpncpy.h, lib/strcase.h, lib/strcasecmp.c,
99769         lib/strchrnul.c, lib/strchrnul.h, lib/strcspn.c, lib/strdup.c,
99770         lib/strdup.h, lib/strerror.c, lib/strftime.c, lib/strftime.h,
99771         lib/stripslash.c, lib/strndup.c, lib/strndup.h, lib/strnlen.c,
99772         lib/strpbrk.c, lib/strpbrk.h, lib/strsep.c, lib/strsep.h, lib/strstr.c,
99773         lib/strstr.h, lib/strtod.c, lib/strtoimax.c, lib/strtok_r.c,
99774         lib/strtok_r.h, lib/strtol.c, lib/strtoll.c, lib/strtoul.c,
99775         lib/strtoull.c, lib/strverscmp.c, lib/strverscmp.h, lib/sysexit_.h,
99776         lib/tempname.c, lib/time_r.c, lib/time_r.h, lib/timegm.c, lib/timegm.h,
99777         lib/timespec.h, lib/trigl.c, lib/trigl.h, lib/ucs4-utf16.h,
99778         lib/ucs4-utf8.h, lib/unicodeio.c, lib/unicodeio.h, lib/unistd-safer.h,
99779         lib/unlocked-io.h, lib/unsetenv.c, lib/userspec.c, lib/utf16-ucs4.h,
99780         lib/utf8-ucs4.h, lib/utime.c, lib/utimecmp.c, lib/utimecmp.h,
99781         lib/utimens.c, lib/vasnprintf.c, lib/vasnprintf.h, lib/vasprintf.c,
99782         lib/vasprintf.h, lib/version-etc-fsf.c, lib/version-etc.c,
99783         lib/version-etc.h, lib/vsnprintf.c, lib/vsnprintf.h, lib/w32spawn.h,
99784         lib/wait-process.c, lib/wait-process.h, lib/xalloc-die.c, lib/xalloc.h,
99785         lib/xallocsa.c, lib/xallocsa.h, lib/xasprintf.c, lib/xgetcwd.c,
99786         lib/xgetcwd.h, lib/xgetdomainname.c, lib/xgetdomainname.h,
99787         lib/xgethostname.c, lib/xmalloc.c, lib/xmemcoll.c, lib/xnanosleep.c,
99788         lib/xreadlink.c, lib/xreadlink.h, lib/xsetenv.c, lib/xsetenv.h,
99789         lib/xsize.h, lib/xstrndup.c, lib/xstrndup.h, lib/xstrtod.c,
99790         lib/xstrtod.h, lib/xstrtoimax.c, lib/xstrtol.c, lib/xstrtol.h,
99791         lib/xstrtoumax.c, lib/xtime.h, lib/xvasprintf.c, lib/xvasprintf.h,
99792         lib/yesno.c, lib/yesno.h:
99793         Update FSF postal mail address.
99795 2005-05-13  Paul Eggert  <eggert@cs.ucla.edu>
99797         * MODULES.html.sh, README, gnulib-tool, tests/test-base64.c,
99798         tests/test-memmem.c, tests/test-stpncpy.c:
99799         Update FSF postal mail address.
99801 2005-05-13  Bruno Haible  <bruno@clisp.org>
99803         * lib/stdint_.h (int64_t, uint64_t, int_least64_t, uint_least64_t,
99804         int_fast64_t, uint_fast64_t, intmax_t, uintmax_t, INT64_MIN, INT64_MAX,
99805         UINT64_MAX, INT_LEAST64_MIN, INT_LEAST64_MAX, UINT_LEAST64_MAX,
99806         INT_FAST64_MIN, INT_FAST64_MAX, UINT_FAST64_MAX, INTMAX_MIN,
99807         INTMAX_MAX, UINTMAX_MAX, INT64_C, UINT64_C, INTMAX_C, UINTMAX_C):
99808         Add support for 64-bit integers in the MSVC compiler.
99810 2005-05-12  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
99812         * modules/getdate (Makefile.am): Add getdate.c to EXTRA_DIST
99814 2005-05-12  Eric Blake  <ebb9@byu.net>  (tiny change)
99816         * gnulib-tool (func_import): Sort and uniquify recommended includes.
99818 2005-05-11  Paul Eggert  <eggert@cs.ucla.edu>
99820         * doc/getdate.texi (General date syntax): Don't say that date
99821         date --iso-8601=ns generates acceptable dates; it doesn't yet.
99822         Problem reported by Nic Ferrier.
99824 2005-05-10  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
99826         * lib/getaddrinfo.c: Don't fail when SOCK_STREAM or SOCK_DGRAM are
99827         specified in ai_socktype. Fix invalid ai_protocol
99828         check. ai_protocol is usually set to 0 or depending on
99829         ai_family/ai_socktype to IPPROTO_TCP / IPPROTO_UDP.  Checking for
99830         SOCK_STREAM / SOCK_DGRAM in ai_protocol was invalid.  Set
99831         ai_socktype / ai_protocol in the returned addrinfo structure.
99833 2005-05-10  Simon Josefsson  <jas@extundo.com>
99835         * m4/getaddrinfo.m4: Look in libnsl/libsocket for getaddrinfo, from
99836         Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
99838 2005-05-10  Karl Berry  <karl@gnu.org>
99840         * doc/fdl.texi, gpl.texi, lgpl.texi, COPYING: update FSF address
99841         (from http://www.gnu.org/licenses).
99842         * doc/COPYING.LIB: also rename to COPYING.LESSER.
99843         * doc/COPYING.DOC: remove; per rms, only needed in doc files, so
99844         fdl.texi suffices.
99846 2005-05-10  Karl Berry  <karl@gnu.org>
99848         * config/srclist.txt (COPYING.LESSER): rename from COPYING.LIB.
99849         (COPYING.DOC): remove.
99851         * config/srclist-update: new FSF address.
99853 2005-05-10  Derek Price  <derek@ximbiot.com>
99855         * m4/getopt.m4 (gl_GETOPT): Check for Solaris 10 bug, not decl, when
99856         possible.
99858 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
99859             Bruno Haible  <bruno@clisp.org>
99861         * modules/inet_ntop: New file.
99862         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
99863         inet_ntop.
99865 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
99866             Bruno Haible  <bruno@clisp.org>
99868         * m4/inet_ntop.m4: New file.
99870 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
99871             Bruno Haible  <bruno@clisp.org>
99873         * lib/inet_ntop.h: New file.
99874         * lib/inet_ntop.c: New file, from glibc with modifications.
99876 2005-05-09  Paul Eggert  <eggert@cs.ucla.edu>
99878         * modules/time_r (License): Change to LGPL.
99879         * modules/extensions (License): Change to LGPL.  Actually,
99880         the license is more permissive than that, but currently gnulib-tool
99881         doesn't know how to handle more-permissive licenses.
99883         * modules/stat-macros (Depends-on): Don't depend on stat-macros (!).
99884         Problem reported by Dave Love.
99886 2005-05-08  Jim Meyering  <jim@meyering.net>
99888         * lib/classpath.c (PATH_SEPARATOR): Remove insignificant trailing
99889         blank.
99891 2005-05-06  Paul Eggert  <eggert@cs.ucla.edu>
99893         * modules/argmatch (Depends-on): Add stdbool.
99894         * modules/backupfile (Depends-on): Likewise.
99895         * modules/chdir-long (Depends-on): Likewise.
99896         * modules/closeout (Depends-on): Likewise.
99897         * modules/cycle-check (Depends-on): Likewise.
99898         * modules/dirname (Depends-on): Likewise.
99899         * modules/fnmatch (Depends-on): Likewise.
99900         * modules/fsusage (Depends-on): Likewise.
99901         * modules/fwriteerror (Depends-on): Likewise.
99902         * modules/getcwd (Depends-on): Likewise.
99903         * modules/getloadavg (Depends-on): Likewise.
99904         * modules/hard-locale (Depends-on): Likewise.
99905         * modules/makepath (Depends-on): Likewise.
99906         * modules/mountlist (Depends-on): Likewise.
99907         * modules/nanosleep (Depends-on): Likewise.
99908         * modules/posixtm (Depends-on): Likewise.
99909         * modules/quotearg (Depends-on): Likewise.
99910         * modules/readtokens (Depends-on): Likewise.
99911         * modules/readtokens0 (Depends-on): Likewise.
99912         * modules/readutmp (Depends-on): Likewise.
99913         * modules/save-cwd (Depends-on): Likewise.
99914         * modules/strftime (Depends-on): Likewise.
99915         * modules/userspec (Depends-on): Likewise.
99916         * modules/utimecmp (Depends-on): Likewise.
99917         * modules/xgetcwd (Depends-on): Likewise.
99918         * modules/xnanosleep (Depends-on): Likewise.
99919         * modules/xstrtod (Depends-on): Likewise.
99920         * modules/yesno (Depends-on): Likewise.
99922 2005-05-05  Paul Eggert  <eggert@cs.ucla.edu>
99924         * m4/getopt.m4 (gl_GETOPT): Check for Solaris 10 getopt, and avoid
99925         needless checks.
99927 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
99929         Merge from coreutils.  Among other things,
99930         add bulletproofing for cases where stdin, stdout, or stderr are closed.
99931         * lib/fd-safer.c: New file.
99932         * lib/fcntl-safer.h, open-safer.c: Remove.
99933         * lib/chdir-long.c: Fix comment "fetish" -> "coreutils".
99934         * lib/dup-safer.c: Include unistd-safer.h first.
99935         Don't include errno.h.
99936         (dup_safer) [!defined F_DUPFD]: Let fd_safer do the real work.
99937         * lib/file-type.h: Don't assume invoker included sys/stat.h first.
99938         * lib/file-type.c: Rely on file-type.h change.
99939         * lib/getloadavg.c: Include unistd-safer.h.
99940         (getloadavg): Use safer open.
99941         * lib/getusershell.c: Include "stdio-safer.h".
99942         (getusershell): Use safer fopen.
99943         * lib/long-options.c (long_options): Use NULL rather than 0.
99944         * lib/modechange.h (mode_free): Remove; all callers changed to invoke
99945         'free'.
99946         * lib/modechange.c: Likewise.
99947         xstrtol.h, stdbool.h, stddef.h: Don't include; no longer needed.
99948         (MODE_DONE): New constant.
99949         (struct mode_change): Remove 'next' member.
99950         (make_node_op_equals): New function; like the old one of the
99951         same name, except it allocates an array.
99952         (mode_compile, mode_create_from_ref): Use it.
99953         (mode_compile): Allocate result as an array, not a linked list.
99954         Parse octal string ourself, so that we catch mistakes like "+0".
99955         (mode_adjust): Arg is an array, not a linked list.
99956         * lib/modechange.c: Include stat-macros.h, xalloc.h.
99957         (S_ISDIR, S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IWUSR, S_IXUSR):
99958         (S_IRGRP, S_IWGRP, S_IXGRP, S_IROTH, S_IWOTH, S_IXOTH, S_IRXWU):
99959         (S_IRWXG, S_IRWXO, CHMOD_MODE_BITS):
99960         Remove.  This is now stat-macros.h's job.
99961         (talloc): Remove.  All callers replaced by xalloc, so that
99962         our invokers don't have to worry about reporting memory failures.
99963         (make_node_op_equals): Remove.
99964         (MODE_ORDINARY_CHAGE, MODE_X_IF_ANY_X, MODE_COPY_EXISTING):
99965         New constants.
99966         (struct mode_change): Moved here from modechange.h.
99967         (mode_append_entry): Remove.
99968         (mode_compile): Remove MASKED_OPS arg, since it encouraged
99969         apps to have incorrect behavior.  Use simpler algorithm for head
99970         and tail.  Don't futz with umask; that's now the job of mode_adjust.
99971         Detect more invalid usages rather than having somewhat-random behavior.
99972         Don't insert an "a=" action, as that leads to incorrect behavior.
99973         (mode_compile, mode_create_from_ref): Return NULL on error instead
99974         of an enum, since now there's only one way to have an error.  All
99975         callers changed.
99976         (mode_adjust): Accept new arg UMASK_VALUE, and interpret it
99977         at the correct time.  Simplify calculation of "+u" and its ilk.
99978         Don't mishandle "+X".
99979         (mode_free): Remove "register" and localize decls.
99980         * lib/modechange.h (MODE_X_IF_ANY_X, MODE_COPY_EXISTING):
99981         (struct mode_change): Move to modechange.c; callers don't
99982         need to see this stuff.
99983         (MODE_MASK_EQUALS, MODE_MASK_PLUS, MODE_MASK_MINUS, MODE_MASK_ALL):
99984         (MODE_INVALID, MODE_MEMORY_EXHAUSTED, MODE_BAD_REFERENCE): Remove.
99985         (mode_change, mode_adjust): Reflect the new signatures noted above.
99986         * lib/nanosleep.c (rpl_nanosleep): Include "timespec.h" before macros
99987         that might redefine system include files.
99988         (siginterrupt) [!HAVE_SIGINTERRUPT]: New macro.
99989         (my_usleep): Use NULL rather than (void *) 0.
99990         (rpl_nanosleep) [!defined SA_NOCLDSTOP]:
99991         Use siginterrupt to specify that system calls should be interrupted.
99992         (rpl_nanosleep): Move initialization of suspended closer to call of
99993         my_usleep.
99994         * lib/readutmp.h (read_utmp): New arg OPTIONS.  All uses changed.
99995         * lib/readutmp.c: Likewise.  Include signal.h, stdbool.h.
99996         (desirable_utmp_entry): New function.
99997         (read_utmp) [defined UTMP_NAME_FUNCTION]: Redo memory allocation
99998         using x2nrealloc, to simplify logic.
99999         (read_utmp) [!defined UTMP_NAME_FUNCTION]: Check for overflow in
100000         size calculation.  Do not assume utmp file is a regular file.
100001         * lib/readutmp.h (UT_PID): Moved here from ../src/who.c.
100002         (READ_UTMP_CHECK_PIDS): New constant.
100003         * lib/save-cwd.c: Include unistd-safer.h.
100004         (save_cwd): Use fd_safer.
100005         * lib/tempname.c (S_ISDIR, S_IRUSR, S_IRUSR, S_IWUSR, S_IXUSR): Remove.
100006         [!_LIBC] Include "stat-macros.h" instead.
100007         * lib/unistd-safer.h (fd_safer): New decl.
100009 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
100011         * modules/getloadavg (Depends-on): Add unistd-safer.
100012         * modules/getusershell (Depends-on): Add stdio-safer.
100013         * modules/lstat (Depends-on): Remove xalloc.
100014         * modules/mkstemp (Depends-on): Add stat-macros.
100015         * modules/modechange (Depends-on): Remove xstrtol.
100016         Add stat-macros, xalloc.
100017         * modules/save-cwd (Depends-on): Add unistd-safer.
100018         * modules/stdio-safer (Makefile.am): Remove lib_SOURCES.
100019         * modules/unistd-safer (Files): Add lib/fd-safer.c
100020         (Makefile.am): Remove lib_SOURCES.
100022         * MODULES.html.sh (Enhancements for POSIX:2001 functions):
100023         Remove fcntl-safer; unistd-safer supersedes it.
100025 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
100027         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Don't require
100028         AC_HEADER_STAT.
100029         * m4/lchown.m4 (gl_FUNC_CHOWN): Likewise.
100030         (gl_PREREQ_CHOWN): Remove.
100031         * m4/lstat.m4 (gl_FUNC_LSTAT): Require AC_FUNC_LSTAT instead of calling
100032         it.  Don't require AC_HEADER_STAT.
100033         (gl_PREREQ_LSTAT): Remove.
100034         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Check stdint.h only once.
100035         Don't require AC_HEADER_STAT.
100036         * m4/rmdir.m4 (gl_FUNC_RMDIR): Don't require AC_HEADER_STAT.
100037         (gl_PREREQ_RMDIR): Remove.
100038         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Don't
100039         mention stat-macros.h or AC_HEADER_STAT, since we'll make
100040         the stat-macros module a prerequisite.
100041         * m4/file-type.m4 (gl_FILE_TYPE): Likewise.
100042         * m4/filemode.m4 (gl_FILEMODE): Likewise.
100043         * m4/makepath.m4 (gl_MAKEPATH): Likewise.
100044         * m4/modechange.m4 (gl_MODECHANGE): Likewise.
100045         * m4/clock_time.m4 (gl_CLOCK_TIME): Use gl_ rather than fetish_ for
100046         variable names.
100047         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Renamed from
100048         fetish_FUNC_RMDIR_NOTEMPTY.  All uses changed.  Use gl_ for
100049         variable prefixes.
100050         * m4/fcntl-safer.m4: Remove.
100051         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Use AC_LIBSOURCES and AC_LIBOBJ.
100052         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Likewise.
100053         Invoke gl_PREREQ_FD_SAFER.
100054         (gl_PREREQ_FD_SAFER): New macro.
100055         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Check for siginterrupt.
100056         * m4/readutmp.m4 (gl_READUTMP): Require AC_C_INLINE.
100057         Use AC_CHECK_HEADERS_ONCE and AC_CHECK_FUNCS_ONCE when possible.
100058         Remove duplicate call to AC_LIBOBJ(readutmp).
100059         (gl_PREREQ_READUTMP): Remove.  All uses inlined.
100061         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Check for message, not for
100062         MAP_ANON.  Problem reported by Moriyoshi Koizumi to bug-cvs.
100064 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
100066         * MODULES.html.sh (Misc): Add byteswap.
100068 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
100070         * modules/getcwd (Depends-on): Add extensions.
100071         * modules/openat (Depends-on): Likewise.
100073 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
100075         * modules/byteswap: New file.
100077 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
100079         * m4/byteswap.m4: New file.
100081 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
100083         * lib/byteswap_.h: New file.
100085 2005-04-25  Karl Berry  <karl@gnu.org>
100087         * m4/gettext.m4: Update from GNU gettext 0.14.4.
100089 2005-04-25  Albert Chin  <china@thewrittenword.com>
100091         * lib/regex.c: Include <stdio.h>, as a workaround to a Compaq Desktop
100092         Toolkit C bug.
100094 2005-04-21  Oskar Liljeblad  <oskar@osk.mine.nu>
100096         * gnulib-tool (Options): Add -s for --symlink/--symbolic.
100097         (func_ln_if_changed): Remove forcibly for no error message
100098         in case file does not exist.
100100 2005-04-19  Simon Josefsson  <jas@extundo.com>
100102         * gnulib-tool (Options): Make --symlink mean --symbolic.
100104 2005-04-18  Oskar Liljeblad  <oskar@osk.mine.nu>
100106         * doc/gnulib.texi (Initial import): Fix.  Mention --aux-dir.
100108 2005-04-16  Simon Josefsson  <jas@extundo.com>
100110         * modules/getpass-gnu (Makefile.am): Don't mention getpass.h.
100112 2005-04-15  Simon Josefsson  <jas@extundo.com>
100114         * m4/getpass.m4 (gl_FUNC_GETPASS): Use AC_LIBSOURCES.
100116 2005-04-15  Simon Josefsson  <jas@extundo.com>
100118         * gnulib-tool: Rename --symlink to --symbolic.
100120 2005-04-15  Oskar Liljeblad  <oskar@osk.mine.nu>
100122         * gnulib-tool: Add -s, --symlink option to gnulib-tool to make
100123         symbolic links to files instead of copying/moving.  Add --aux-dir,
100124         specifying directory relative --dir where auxiliary build tools
100125         are placed.
100127 2005-04-14  Bruno Haible  <bruno@clisp.org>
100129         * modules/allocsa (License): Change to LGPL.
100130         Requested by Yoann Vandoorselaere <yoann@prelude-ids.org>.
100132 2005-04-13  Paul Eggert  <eggert@cs.ucla.edu>
100134         * lib/getdate.y (zone): Allow relunit_snumber after tZONE, so
100135         that "UTC +1 second" continues to work.  Problem reported
100136         by Dmitry V. Levin.
100137         (relunit_snumber): New rule.
100138         (relunit): Use it.
100140 2005-04-12  Paul Eggert  <eggert@cs.ucla.edu>
100142         * lib/getdate.y (universal_time_zone_table): New constant.
100143         (time_zone_table): Remove GMT, UT, UTC entries; they're now in
100144         universal_time_zone_table.
100145         (lookup_zone): Prefer universal_time_zone_table to
100146         local_time_zone_table, so that "GMT" time stamps are allowed in
100147         London during the summer.  Problem reported by Ian Abbott.
100149 2005-04-12  Jim Meyering  <jim@meyering.net>
100151         * lib/human.c (humblock): Set *options even when returning due to
100152         xstrtoumax conversion failure.  Thanks to a used-uninitialized
100153         warning from gcc-4.
100155 2005-04-09  Jim Meyering  <jim@meyering.net>
100157         * lib/posixtm.c (posixtime) [lint]: Avoid spurious warning from gcc-4's
100158         -Wuninitialized: initialize tm0.tm_year.
100160 2005-04-04  Paul Eggert  <eggert@cs.ucla.edu>
100162         * lib/getdate.y (parser_control): rels_seen is now a boolean, not a
100163         count, since there's no maximum.  All uses changed.
100164         Add member dsts_seen.
100165         (local_zone): Accumulate dsts_seen rather than relying on tm_isdst
100166         not being INT_MAX.
100167         (get_date): Initialize dsts_seen, and check that it doesn't go over 1.
100168         Use pc_rels_seen to decide whether a date is absolute.
100170         * lib/getdate.y (number): Don't overwrite year.
100171         (get_date): Initialize pc.year.digits to 0, not 4, to enable above
100172         check.
100174 2005-04-02  Simon Josefsson  <jas@extundo.com>
100176         * lib/getaddrinfo.h: Fix OpenBSD compilation failure, inspired by tiny
100177         patch from Yoann Vandoorselaere <yoann@prelude-ids.org>.
100179 2005-03-28  Eric Blake  <ebb9@byu.net>  (tiny change)
100181         * m4/getcwd-path-max.m4: Return success on systems such as Cygwin
100182         where no absolute path name can be longer than PATH_MAX.
100184 2005-03-27  Jim Meyering  <jim@meyering.net>
100186         * lib/argmatch.c: Clarify comment: null-terminated -> NULL-terminated.
100188 2005-03-26  Paul Eggert  <eggert@cs.ucla.edu>
100190         * lib/intprops.h (INT_STRLEN_BOUND, INT_BUFSIZE_BOUND):
100191         "one's complement" -> "ones' complement" in comment, as per Knuth.
100192         "value of type" -> "type or expression" in comment.
100193         * lib/mktime.c, strftime.c: Propagate intprops.h comment nits.
100195 2005-03-26  Jim Meyering  <jim@meyering.net>
100197         Comment nits.
100198         * lib/intprops.h: Add the apostrophe in `(one|two)'s complement'.
100199         Correct typos: s/or/of/.
100201 2005-03-26  Jim Meyering  <jim@meyering.net>
100203         * modules/check-include-files: Move to ../ and rename to...
100204         * check-module: ...this.
100206 2005-03-25  Jim Meyering  <jim@meyering.net>
100208         * modules/xvasprintf (Files): Add xalloc.h.
100210 2005-03-23  Paul Eggert  <eggert@cs.ucla.edu>
100212         * modules/gettext (Files): config/config.rpath ->
100213         build-aux/config.rpath
100214         * modules/iconv (Files): Likewise.
100215         Problem reported by Oskar Liljeblad.
100217 2005-03-23  Jim Meyering  <jim@meyering.net>
100219         * modules/check-include-files: New script to check for
100220         missing dependencies, multiple includes, etc.
100222         * modules/c-strtold (Depends-on): Add xalloc.
100223         * modules/c-strtod (Depends-on): Add xalloc.
100224         * modules/hash (Depends-on): Add xalloc.
100225         (Files): Remove lib/xalloc.h.
100227         * modules/gethrxtime (Files): Add lib/gethrxtime.h.
100228         * modules/userspec (Files): Add lib/inttostr.h.
100230 2005-03-23  Jim Meyering  <jim@meyering.net>
100232         * lib/canonicalize.c: Remove duplicate `#include "stat-macros.h"'.
100234 2005-03-22  Jim Meyering  <jim@meyering.net>
100236         * modules/stat-macros: New module.
100237         * modules/canonicalize, modules/euidaccess, modules/file-type,
100238         * modules/filemode, modules/lchown, modules/makepath,
100239         * modules/rmdir, modules/stat: Depend on new stat-macros module
100240         rather than listing lib/stat-macros.h manually.
100241         Don't add stat-macros.h to lib_SOURCES or list it in Files: section.
100243 2005-03-22  Jim Meyering  <jim@meyering.net>
100245         * m4/stat-macros.m4 (gl_STAT_MACROS): New file/macro.
100247 2005-03-22  Bruno Haible  <bruno@clisp.org>
100249         * config/srclist.txt: Replace target directory 'config' with
100250         'build-aux'.
100251         * config/config.guess, config.sub, config.rpath, depcomp, install-sh:
100252         * config/mdate-sh, missing, mkinstalldirs, texinfo.tex: Move to
100253         ../build-aux/.
100255 2005-03-21  Paul Eggert  <eggert@cs.ucla.edu>
100257         * modules/chdir-long (Depends-on): Add mempcpy.
100259         * modules/acl, modules/backupfile, modules/c-strtod,
100260         modules/c-strtold, modules/canon-host, modules/canonicalize,
100261         modules/cloexec, modules/closeout, modules/dirfd, modules/dirname,
100262         modules/exclude, modules/exitfail, modules/file-type,
100263         modules/filemode, modules/fpending, modules/fsusage, modules/getcwd,
100264         modules/getdate, modules/getline, modules/getpagesize,
100265         modules/getpass, modules/getugroups, modules/group-member,
100266         modules/hard-locale, modules/hash, modules/human, modules/idcache,
100267         modules/inttostr, modules/long-options, modules/makepath,
100268         modules/md5, modules/memcasecmp, modules/memcoll,
100269         modules/modechange, modules/mountlist, modules/path-concat,
100270         modules/pathmax, modules/physmem, modules/posixtm, modules/posixver,
100271         modules/quote, modules/quotearg, modules/readtokens, modules/readutmp,
100272         modules/safe-read, modules/safe-write, modules/same, modules/savedir,
100273         modules/settime, modules/sha1, modules/sig2str, modules/strdup,
100274         modules/strftime, modules/strndup, modules/strverscmp,
100275         modules/timespec, modules/unlocked-io, modules/userspec,
100276         modules/utimecmp, modules/utimens, modules/xalloc, modules/xstrtol,
100277         modules/yesno:
100278         Remove lib_SOURCES line from Makefile.am section, as this is now
100279         done automatically by the corresponding Autoconf macro.
100281 2005-03-21  Jim Meyering  <jim@meyering.net>
100283         Changes imported from coreutils.
100285         * lib/cycle-check.c: Don't include xalloc.h.
100287         * lib/path-concat.c: Don't include assert.h.
100288         (path_concat): Remove assertion that would have triggered
100289         for ABASE starting with more than one slash.
100290         Reported by Andreas Schwab.
100292         * lib/path-concat.c (path_concat): Set *BASE_IN_RESULT
100293         properly when ABASE is an absolute file name.
100294         Correct the description of this function.
100295         Include <assert.h>.
100296         Add an assertion and a test driver.
100297         This fixes a bug introduced on 2004-07-02.
100298         Andreas Schwab reported the resulting failure of cp --parents:
100299         http://lists.gnu.org/archive/html/bug-coreutils/2005-01/msg00130.html
100301 2005-03-21  Jim Meyering  <jim@meyering.net>
100303         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Invoke gl_FUNC_MEMRCHR.
100304         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Check for memrchr decl.
100306 2005-03-21  Jim Meyering  <jim@meyering.net>
100307         and  Paul Eggert  <eggert@cs.ucla.edu>
100309         * m4/acl.m4, m4/backupfile.m4, m4/c-strtod.m4, m4/canon-host.m4,
100310         m4/canonicalize.m4, m4/cloexec.m4, m4/closeout.m4, m4/dirfd.m4,
100311         m4/dirname.m4, m4/exclude.m4, m4/exitfail.m4, m4/file-type.m4,
100312         m4/filemode.m4, m4/fpending.m4, m4/fsusage.m4, m4/getcwd.m4,
100313         m4/getdate.m4, m4/getline.m4, m4/getpagesize.m4, m4/getpass.m4,
100314         m4/getugroups.m4, m4/group-member.m4, m4/hard-locale.m4, m4/hash.m4,
100315         m4/human.m4, m4/idcache.m4, m4/inttostr.m4, m4/long-options.m4,
100316         m4/makepath.m4, m4/md5.m4, m4/memcasecmp.m4, m4/memcoll.m4,
100317         m4/modechange.m4, m4/mountlist.m4, m4/nanosleep.m4, m4/path-concat.m4,
100318         m4/pathmax.m4, m4/physmem.m4, m4/posixtm.m4, m4/posixver.m4,
100319         m4/quote.m4, m4/quotearg.m4, m4/readtokens.m4, m4/readutmp.m4,
100320         m4/safe-read.m4, m4/safe-write.m4, m4/same.m4, m4/savedir.m4,
100321         m4/settime.m4, m4/sha1.m4, m4/sig2str.m4, m4/strdup.m4, m4/strftime.m4,
100322         m4/strndup.m4, m4/strverscmp.m4, m4/timespec.m4, m4/unlocked-io.m4,
100323         m4/userspec.m4, m4/utimecmp.m4, m4/utimens.m4, m4/xalloc.m4,
100324         m4/xnanosleep.m4, m4/xstrtol.m4, m4/yesno.m4:
100325         Use AC_LIBSOURCES and AC_LIBOBJ to indicate source and object files
100326         for these modules.
100328 2005-03-18  Paul Eggert  <eggert@cs.ucla.edu>
100330         * lib/strftime.c (my_strftime): If the underlying strftime returns 0
100331         (which shouldn't happen), generate nothing instead of returning 0
100332         immediately, so that nstrftime (NULL, ...) doesn't return 0.
100334 2005-03-16  Bruno Haible  <bruno@clisp.org>
100336         * modules/stdint (Makefile.am): Use HAVE_LONG_LONG_64BIT instead of
100337         HAVE_LONGLONG_64BIT.
100339 2005-03-16  Bruno Haible  <bruno@clisp.org>
100341         * m4/stdint.m4 (gl_STDINT_H): Define HAVE_LONG_LONG_64BIT instead of
100342         HAVE_LONGLONG_64BIT.
100344 2005-03-16  Bruno Haible  <bruno@clisp.org>
100346         * lib/stdint_.h: Use HAVE_LONG_LONG_64BIT instead of
100347         HAVE_LONGLONG_64BIT.
100349 2005-03-15  Paul Eggert  <eggert@cs.ucla.edu>
100351         * lib/strftime.c (my_strftime): Prepend space to format so that we can
100352         reliably distinguish strftime failure from empty output on POSIX
100353         hosts.
100355 2005-03-15  Paul Eggert  <eggert@cs.ucla.edu>
100357         * lib/iconvme.c (SIZE_MAX): New macro, if not already defined.
100358         (iconv_string): Don't guess a size-zero buffer, as that might cause
100359         buffer overrun.  Instead, avoid multiplying by MB_LEN_MAX if the
100360         result would be 'too large', where 'too large' is (heuristically)
100361         the square root of SIZE_MAX, divided by MB_LEN_MAX to allay
100362         overflow concerns.  This will prevent some unwanted malloc failures
100363         when the inputs are very large.
100365 2005-03-15  Karl Berry  <karl@gnu.org>
100367         * config/srclist.txt (config.rpath): from gettext.
100368         * config/config.rpath: update.
100370 2005-03-15  Bruno Haible  <bruno@clisp.org>
100372         * lib/regex.c (byte_re_match_2_internal): Rename local variable 'not'
100373         to 'negate'.
100375         * lib/regex.c (byte_re_match_2_internal): Reduce scope of same_str_p
100376         variable.
100378         * lib/regex.c (EXTEND_BUFFER, regcomp): Cast the realloc/malloc
100379         results.
100381 2005-03-14  Simon Josefsson  <jas@extundo.com>
100383         * lib/timegm.h: Use proper prototype CPP guards, reported by Dave Love
100384         <fx@gnu.org>.
100386 2005-03-14  Paul Eggert  <eggert@cs.ucla.edu>
100388         * lib/mktime.c (TYPE_TWOS_COMPLEMENT, TYPE_ONES_COMPLEMENT,
100389         TYPE_SIGNED_MAGNITUDE, TYPE_MINIMUM, TYPE_MAXIMUM): Sync from
100390         intprops.h.
100391         * lib/strtol.c: Likewise.
100393 2005-03-14  Jim Meyering  <jim@meyering.net>
100395         * lib/strftime.c (my_strftime) [HAVE_STRFTIME && ! (_NL_CURRENT
100396         && HAVE_STRUCT_ERA_ENTRY)]: Initialize the first byte of ubuf[]
100397         to be nonzero so that we (and caller) can detect the difference
100398         between a valid zero-length expansion and an error return, even
100399         when the underlying strftime fails before writing anything into
100400         that location.
100402 2005-03-14  Bruno Haible  <bruno@clisp.org>
100404         * m4/lib-link.m4, gettext.m4, nls.m4, po.m4:
100405         Update from GNU gettext 0.14.3.
100407 2005-03-10  Jim Meyering  <jim@meyering.net>
100409         * m4/save-cwd.m4 (gl_SAVE_CWD): Check for fchdir.
100411 2005-03-10  Jim Meyering  <jim@meyering.net>
100413         * lib/save-cwd.c [!HAVE_FCHDIR]: Define open, fchdir, and chdir_long
100414         so that this module works on systems without fchdir.
100416 2005-03-09  Paul Eggert  <eggert@cs.ucla.edu>
100418         Factor int-properties macros into a single file, except for
100419         glibc-related files.
100420         * lib/intprops.h: New file.
100421         * lib/getloadavg.c: Include it instead of limits.h.
100422         (INT_STRLEN_BOUND): Remove.
100423         * lib/human.c: Include intprops.h.
100424         (group_number): Use INT_STRLEN_BOUND instead of rolling it ourself.
100425         * lib/human.h (LONGEST_HUMAN_READABLE): Use 146/485 rather than
100426         302/1000.
100427         * lib/inttostr.h: Include intprops.h instead of limits.h.
100428         (INT_STRLEN_BOUND, INT_BUFSIZE_BOUND): Remove.
100429         * lib/mktime.c (TYPE_IS_INTEGER, TYPE_TWOS_COMPLEMENT): New macros,
100430         for consistency with intprops.h.
100431         (time_t_is_integer, twos_complement_arithmetic): Use them.
100432         * lib/sig2str.h: Include <signal.h>, intprops.h.
100433         (INT_STRLEN_BOUND): Remove.
100434         * lib/strftime.c (TYPE_SIGNED): Remove.
100435         (INT_STRLEN_BOUND): Switch to same implementation as intprops.h.
100436         * lib/strtol.c: Adjust comments to match intprops.h.
100437         * lib/userspec.c: Include intprops.h.
100438         (TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Remove.
100439         * lib/utimecmp.c, xnanosleep.c, xstrtol.c: Likewise.
100440         * lib/utimecmp.c (utimecmp): Use TYPE_IS_INTEGER, TYPE_TWOS_COMPLEMENT
100441         instead of rolling our own expressions.
100442         * lib/xstrtol.c: Include xstrtol.h first, to test interface.
100444         * lib/strftime.c: Include <stdbool.h>.  Use bool where appropriate,
100445         instead of int.
100446         (my_strftime): Do not mishandle years close to INT_MAX, by doing
100447         the right thing even if adding 1900 would overflow.  Similarly
100448         for tm_mon + 1 and tm_yday + 1.
100449         Make %Y always equivalent to %C%y, and similarly for %G and %g.
100450         (DO_NUMBER, DO_NUMBER_SPACEPAD): Set digits to d, not a conditional.
100451         (DO_SIGNED_NUMBER): New macro.
100452         (my_strftime) [HAVE_TZNAME]: Don't dump core if tp->tm_dst > 1.
100454 2005-03-07  Bruno Haible  <bruno@clisp.org>
100456         * m4/mmap-anon.m4 (MAP_FILE, MAP_FAILED): Remove definitions.
100458 2005-03-07  Bruno Haible  <bruno@clisp.org>
100460         * lib/pagealign_alloc.c (MAP_FILE, MAP_FAILED): Define fallbacks.
100462 2005-03-04  Derek R. Price  <derek@ximbiot.com>
100464         * gnulib-tool (func_cp_if_changed, func_mv_if_changed): New functions.
100465         (func_import): Only replace files via --import when they have actually
100466         changed.
100468 2005-03-03  Derek R. Price  <derek@ximbiot.com>
100470         * m4/mmap-anon.m4: New file.
100471         * m4/pagealign_alloc.m4: New file.
100473 2005-03-03  Derek R. Price  <derek@ximbiot.com>
100474             Bruno Haible  <bruno@clisp.org>
100476         * modules/pagealign_alloc: New file.
100477         * MODULES.html.sh (Memory management functions): Add pagealign_alloc.
100479 2005-03-03  Derek R. Price  <derek@ximbiot.com>
100480             Bruno Haible  <bruno@clisp.org>
100482         * lib/pagealign_alloc.h: New file.
100483         * lib/pagealign_alloc.c: New file.
100485 2005-03-03  Bruno Haible  <bruno@clisp.org>
100487         * m4/inttypes.m4, isc-posix.m4, once-only.m4:
100488         Use an all-permissive copyright notice, recommended by RMS.
100490 2005-03-02  Bruno Haible  <bruno@clisp.org>
100492         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Undo the replacement here. Because
100493         of AIX, the replacement has to be done only after <string.h> is
100494         included, therefore not in config.h. stpncpy.h does the replacement,
100495         and stpncpy.c uses it.
100497 2005-03-02  Bruno Haible  <bruno@clisp.org>
100499         * lib/stpncpy.h (stpncpy): Define as a macro without arguments, so that
100500         stpncpy.c uses it.
100502 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
100504         Remove workaround for bug in Linux kernel 2.6.8 or thereabouts.
100505         The workaround isn't strictly needed for POSIX conformance, and
100506         it's too much of a pain to configure and maintain.  We'll ask
100507         people to fix their kernels instead.
100508         * lib/xnanosleep.c: Don't include gethrxtime.h or xtime.h.
100509         (NANOSLEEP_BUG_WORKAROUND): Remove.
100510         (xnanosleep): Remove the workaround.
100512 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
100514         * modules/gettime (Makefile.am): Remove lib_SOURCES line.
100515         Reported by Derek Price.
100516         (Include): Add "timespec.h".
100518         * modules/xnanosleep (Depends-on): Remove gethrxtime.
100520 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
100522         * m4/xnanosleep.m4 (gl_XNANOSLEEP): Remove configuration attempting
100523         to detect nanosleep bug.
100525 2005-03-01  Bruno Haible  <bruno@clisp.org>
100527         * lib/vasnprintf.c (EOVERFLOW): Define to a fallback if needed.
100529 2005-02-26  Paul Eggert  <eggert@cs.ucla.edu>
100531         * modules/gethrxtime: New file.
100532         * modules/xnanosleep (Files): Add m4/xnanosleep.m4.
100533         (Depends-on): Add gethrxtime.
100534         (configure.ac): Add gl_XNANOSLEEP.
100535         (Makefile.am): Remove lib_SOURCES line.
100537 2005-02-25  Paul Eggert  <eggert@cs.ucla.edu>
100539         * m4/gethrxtime.m4, m4/xnanosleep.m4: New files.
100540         * m4/gettime.m4 (gl_GETTIME): Check for nanotime.
100542 2005-02-25  Paul Eggert  <eggert@cs.ucla.edu>
100544         * lib/gethrxtime.h, lib/gethrxtime.c, lib/xtime.h: New files.
100545         * lib/timespec.h (gettime): Return void, since it always
100546         succeeds now.  All uses changed.
100547         * lib/gettime.c (gettime): Likewise.
100548         [HAVE_NANOTIME]: Prefer nanotime.
100549         Assume gettimeofday succeeds, as POSIX requires.
100550         Assime time () succeeds, since other code already does.
100551         * lib/xnanosleep.c: Include xtime.h and gethrxtime.h, not xalloc.h.
100552         (timespec_subtract): Remove.
100553         (NANOSLEEP_BUG_WORKAROUND): New constant.
100554         (xnanosleep): Use gethrxtime rather than gettime; this simplifies
100555         things considerably.  Use it only on GNU/Linux hosts, since the
100556         workaround shouldn't be needed elsewhere.
100558 2005-02-24  Bruno Haible  <bruno@clisp.org>
100560         * modules/gettext (Files): Add m4/glibc2.m4.
100562 2005-02-24  Bruno Haible  <bruno@clisp.org>
100564         * m4/gettext.m4, intdiv0.m4, intmax.m4, inttypes-pri.m4, lcmessage.m4:
100565         * m4/lib-link.m4, lib-prefix.m4, nls.m4, po.m4, printf-posix.m4:
100566         * m4/progtest.m4:
100567         Update from GNU gettext 0.14.2.
100568         * m4/glibc2.m4: New file, from GNU gettext 0.14.2.
100570 2005-02-24  Bruno Haible  <bruno@clisp.org>
100572         * lib/localcharset.c: Update from GNU gettext 0.14.2.
100573         * lib/config.charset: Update from GNU gettext 0.14.2.
100575 2005-02-24  Bruno Haible  <bruno@clisp.org>
100577         * lib/gettext.h: Update from GNU gettext 0.14.2.
100579 2005-02-23  Simon Josefsson  <jas@extundo.com>
100581         * m4/iconvme.m4: New file.
100583 2005-02-23  Jim Meyering  <jim@meyering.net>
100585         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Revert yesteday's
100586         change.
100587         Thanks to Bruno Haible for catching it.
100589 2005-02-22  Simon Josefsson  <jas@extundo.com>
100591         * modules/iconvme: New file.
100593         * MODULES.html.sh: Add iconvme.
100595 2005-02-22  Simon Josefsson  <jas@extundo.com>
100597         * lib/iconvme.h, lib/iconvme.c: New files, from libc.
100599 2005-02-22  Simon Josefsson  <jas@extundo.com>
100601         * config/srclist.txt: Sync iconvme.h, iconvme.c from libc.
100603 2005-02-22  Jim Meyering  <jim@meyering.net>
100605         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Fix typo:
100606         s/ifndef/ifdef/.
100608 2005-02-20  Neil Conway  <neilc@samurai.com>
100610         * lib/xgethostname.c (xgethostname): Check for ENOMEM, which is
100611         returned by OSX/Darwin if the specified buffer is not large
100612         enough for the hostname.
100614 2005-02-03  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
100616         * lib/argp-help.c (__argp_help): Create a fake struct argp_state and
100617         pass it to _help, otherwise the latter coredumps trying to
100618         dereference state.root_argp.
100620 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
100622         * modules/chdir-long (Depends-on): Add memrchr.
100623         * modules/memrchr (Files): Add lib/memrchr.h.
100624         (Include): "memrchr.h".
100626 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
100628         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Add AC_LIBSOURCES, for memrchr.h.
100630 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
100632         * lib/memrchr.h: New file.
100633         * lib/chdir-long.c: Include it.
100634         * lib/memrchr.c [!defined _LIBC]: Include it rather than <string.h>
100635         Don't bother including stddef.h.
100637 2005-02-01  Paul Eggert  <eggert@cs.ucla.edu>
100639         * lib/mountlist.h (MOUNTLIST_H_): New macro, to protect against double
100640         inclusion.
100641         Include <sys/types.h>, for dev_t.
100642         (ME_DUMMY, ME_REMOTE): Move from here....
100643         * lib/mountlist.c (ME_DUMMY, ME_REMOTE): To here.
100644         (ME_DUMMY): Count "subfs" as a dummy.  Problem reported by
100645         Dmitry V. Levin.
100646         Include mountlist.h first, to test the interface.
100648 2005-01-29  Bruno Haible  <bruno@clisp.org>
100650         * lib/progname.c (program_name): Initialize.
100651         Needed when linking statically on MacOS X.
100653 2005-01-28  Paul Eggert  <eggert@cs.ucla.edu>
100655         Sync from coreutils.
100656         * modules/getloadavg (Files): Remove m4/getloadavg.m4.
100657         (Depends-on): Add c-strtod.
100658         (configure.ac): Replace gl_FUNC_GETLOADAVG with AC_FUNC_GETLOADAVG.
100660 2005-01-28  Paul Eggert  <eggert@cs.ucla.edu>
100662         Sync from coreutils.
100663         * m4/getloadavg.m4, glibc.m4, search-libs.m4: Remove.
100665         Remove files that are specific to coreutils.
100666         * m4/check-decl.m4, jm-macros.m4, lib-check.m4, prereq.m4: Remove.
100668 2005-01-28  Bruno Haible  <bruno@clisp.org>
100670         * modules/javacomp: New file.
100671         * MODULES.html.sh (Java): Add javacomp.
100673 2005-01-28  Bruno Haible  <bruno@clisp.org>
100675         * m4/javacomp.m4: New file, from GNU gettext.
100677 2005-01-28  Bruno Haible  <bruno@clisp.org>
100679         * lib/javacomp.sh.in: New file, from GNU gettext.
100680         * lib/javacomp.h: New file, from GNU gettext.
100681         * lib/javacomp.c: New file, from GNU gettext.
100683 2005-01-26  Simon Josefsson  <jas@extundo.com>
100685         * lib/gai_strerror.c: Use GPL in header.
100687 2005-01-26  Bruno Haible  <bruno@clisp.org>
100689         * modules/javaexec: New file.
100690         * MODULES.html.sh (Java): Add javaexec.
100692 2005-01-26  Bruno Haible  <bruno@clisp.org>
100694         * m4/javaexec.m4: New file, from GNU gettext.
100696 2005-01-26  Bruno Haible  <bruno@clisp.org>
100698         * lib/javaexec.sh.in: New file, from GNU gettext.
100699         * lib/javaexec.h: New file, from GNU gettext.
100700         * lib/javaexec.c: New file, from GNU gettext.
100702 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
100704         * modules/lchown (Depends-on): Remove lchown.h
100706 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
100708         * m4/sysexits.m4 (gl_SYSEXITS): Reverted logic. SYSEXITS_H
100709         must be defined if the header file was not found, in order
100710         to provide a replacement. Reported by Todd Vierling <tv@duh.org>
100712 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
100714         * lib/argp-help.c (hol_entry_help): Avoid using non-constant
100715         initializers for struct pentry_state.
100716         (__argp_error): Check return value of __asprintf
100717         (__argp_failure): Translate error message
100719         * lib/argp-parse.c: Removed braces around the expansion of N_()
100721 2005-01-23  Paul Eggert  <eggert@cs.ucla.edu>
100723         * m4/acl.m4, afs.m4, alloca.m4, argp.m4, assert.m4, atexit.m4,
100724         backupfile.m4, base64.m4, bison.m4, c-bs-a.m4, c-stack.m4,
100725         c-strtod.m4, calloc.m4, canon-host.m4, canonicalize.m4,
100726         clock_time.m4, cloexec.m4, closeout.m4, d-ino.m4, d-type.m4,
100727         dirfd.m4, dirname.m4, dos.m4, dup2.m4, error.m4, euidaccess.m4,
100728         exclude.m4, exitfail.m4, extensions.m4, fcntl-safer.m4,
100729         file-type.m4, fileblocks.m4, filemode.m4, fnmatch.m4, fpending.m4,
100730         free.m4, fstypename.m4, fsusage.m4, ftruncate.m4, getaddrinfo.m4,
100731         getcwd-path-max.m4, getcwd.m4, getdate.m4, getdomainname.m4,
100732         getgroups.m4, gethostname.m4, getline.m4, getndelim2.m4,
100733         getnline.m4, getopt.m4, getpagesize.m4, getpass.m4, getsubopt.m4,
100734         gettime.m4, gettimeofday.m4, getugroups.m4, getusershell.m4,
100735         group-member.m4, hard-locale.m4, hash.m4, host-os.m4, human.m4,
100736         idcache.m4, inttostr.m4, isdir.m4, jm-winsz1.m4, jm-winsz2.m4,
100737         link-follow.m4, long-options.m4, ls-mntd-fs.m4, lstat.m4,
100738         makepath.m4, mathl.m4, md5.m4, memcasecmp.m4, memchr.m4,
100739         memcmp.m4, memcoll.m4, memcpy.m4, memmem.m4, memmove.m4,
100740         memrchr.m4, memset.m4, mkdir-slash.m4, mkstemp.m4, mktime.m4,
100741         modechange.m4, mountlist.m4, nanosleep.m4, obstack.m4,
100742         path-concat.m4, pathmax.m4, perl.m4, physmem.m4, poll.m4,
100743         posixtm.m4, posixver.m4, putenv.m4, quote.m4, quotearg.m4,
100744         readdir.m4, readtokens.m4, readutmp.m4, regex.m4, rename.m4,
100745         restrict.m4, rmdir-errno.m4, rmdir.m4, rpmatch.m4, same.m4,
100746         savedir.m4, settime.m4, sha1.m4, sig2str.m4, snprintf.m4,
100747         sockpfaf.m4, st_dm_mode.m4, st_mtim.m4, stat.m4, stdint.m4,
100748         stdio-safer.m4, strchrnul.m4, strdup.m4, strerror.m4,
100749         strerror_r.m4, strftime.m4, strndup.m4, strnlen.m4, strsep.m4,
100750         strtod.m4, strtoimax.m4, strtok_r.m4, strtol.m4, strtoll.m4,
100751         strtoul.m4, strtoull.m4, strtoumax.m4, strverscmp.m4, sysexits.m4,
100752         time_r.m4, timegm.m4, timespec.m4, tm_gmtoff.m4, tzset.m4,
100753         uint32_t.m4, uintptr_t.m4, unistd-safer.m4, unlink-busy.m4,
100754         unlocked-io.m4, uptime.m4, userspec.m4, utimbuf.m4, utime.m4,
100755         utimecmp.m4, utimens.m4, utimes-null.m4, vsnprintf.m4, xalloc.m4,
100756         xgetcwd.m4, xreadlink.m4, xstrndup.m4, xstrtod.m4, xstrtoimax.m4,
100757         xstrtol.m4, xstrtoumax.m4, yesno.m4:
100758         Use an all-permissive copyright notice, recommended by RMS.
100760 2005-01-21  Paul Eggert  <eggert@cs.ucla.edu>
100762         * modules/chdir-long (Depends-on): Remove mempcpy.
100764 2005-01-21  Jim Meyering  <jim@meyering.net>
100766         * lib/openat.h (AT_SYMLINK_NOFOLLOW): Define to 4096, so it's the
100767         same value as for Solaris 9.
100769         * lib/chdir-long.c (chdir_long): Rewrite to remove limitation on
100770         component length.  This included changing the parameter to be
100771         of type `char *' rather than `char const *'.
100772         * lib/chdir-long.h (chdir_long): Update prototype.
100774         * lib/openat.c (fdopendir, fstatat): New functions.
100775         * lib/openat.h: Include headers required for use of DIR and struct
100776         stat.
100777         [AT_SYMLINK_NOFOLLOW]: Define.
100778         (fdopendir, fstatat): Add prototypes.
100780 2005-01-21  Bruno Haible  <bruno@clisp.org>
100782         * modules/classpath: New file.
100783         * MODULES.html.sh (Java): Add classpath.
100785 2005-01-21  Bruno Haible  <bruno@clisp.org>
100787         * lib/classpath.h: New file, from GNU gettext.
100788         * lib/classpath.c: New file, from GNU gettext.
100790 2005-01-20  Simon Josefsson  <jas@extundo.com>
100792         * modules/version-etc-fsf: New file.
100794 2005-01-20  Simon Josefsson  <jas@extundo.com>
100796         * lib/version-etc-fsf.c: New file, with version_etc_copyright.
100797         * lib/version-etc.c: Remove version_etc_copyright.
100798         * lib/version-etc.h (version_etc_copyright): Use [] instead of * in
100799         prototype, suggested by Paul Eggert <eggert@CS.UCLA.EDU>.
100801 2005-01-20  Simon Josefsson  <jas@extundo.com>
100803         * lib/base64.h (isbase64): Add.
100805         * lib/base64.c (isb64): Rename to isbase64, use to_uchar instead of
100806         using a unsigned prototype, don't inline.
100807         (base64_decode): Use it.
100809 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
100811         * m4/save-cwd.m4 (gl_SAVE_CWD): Remove check for fcntl; we now assume
100812         it.
100814 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
100816         * lib/save-cwd.c (save_cwd): Remove code to support the case
100817         where fchdir is missing or flaky.
100819 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
100821         * MODULES.html.sh (Command-line arguments): Add version-etc-fsf.
100823 2005-01-19  Paul Eggert  <eggert@cs.ucla.edu>
100825         * modules/mempcpy (Makefile.am): Remove mention of mempcpy.h;
100826         AC_LIBSOURCES now does this.
100827         * MODULES.html.sh (Sizes of integer types <limits.h>): New element,
100828         with new ullong_max module.
100830 2005-01-19  Bruno Haible  <bruno@clisp.org>
100832         * modules/sh-quote: New file.
100833         * MODULES.html.sh (Executing programs): Add sh-quote.
100835 2005-01-19  Bruno Haible  <bruno@clisp.org>
100837         * lib/sh-quote.h: New file, from GNU gettext.
100838         * lib/sh-quote.c: New file, from GNU gettext.
100840 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
100842         Merge from coreutils.
100843         * m4/ullong_max.m4: New file.
100844         * m4/jm-macros.m4 (gl_MACROS): Require gl_ULLONG_MAX.
100845         (gl_MACROS): Assume localeconv exists.
100847 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
100849         Merge changes from coreutils, as described below in several
100850         changelogs dated today.
100852         * lib/save-cwd.c: Include "save-cwd.h" before other include files.
100853         (O_DIRECTORY): Remove; not needed here, since "." must be
100854         a directory.  All uses removed.
100855         (save_cwd): Use __sgi || __sun, not sun || __sun.  __sun is
100856         universal on Suns, and we also need to test for IRIX.
100857         Revamp code to use 'if' rather than '#if'.
100858         Avoid unnecessary comparison of cwd->desc to 0.
100860         * lib/utimens.c (futimens): Robustify the previous patch, by checking
100861         for known valid error numbers rather than observed invalid ones.
100863 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
100865         * modules/ullong_max: New file.
100867         * modules/chdir-long, modules/openat: New files.
100868         * modules/save-cwd (Depends-on): Depend on chdir-long.
100869         (Makefile.am): Remove lib_SOURCES; now handled by AC_LIBSOURCES.
100871 2005-01-18  Jim Meyering  <jim@meyering.net>
100873         Merge from coreutils.
100874         * m4/chdir-long.m4, m4/openat.m4: New files.
100875         * m4/save-cwd.m4 (gl_SAVE_CWD): Add AC_LIBSOURCES for save-cwd.c,
100876         save-cwd.h.  Add AC_LIBOBJ for save-cwd.
100877         * m4/chown.m4 (gl_FUNC_CHOWN): When cross-compiling, assume that chown
100878         is sane and DOES follow symlinks.  Besides, testing 20 different
100879         systems found no broken chown implementations.
100880         Prompted by a change in rsync's copy of this macro.
100881         * m4/jm-macros.m4 (gl_MACROS): Require gl_FUNC_CHDIR_LONG.
100883         * m4/lchown.m4 (gl_FUNC_LCHOWN): Use AC_LIBSOURCES.
100885         * m4/utimes.m4: Work around tests/touch/empty-file failure on a system
100886         (sparc64, Linux-2.4.28, glibc-2.3.3) that didn't honor utimes'
100887         NULL-means-set-to-current-time semantics.
100888         Remove temporary file immediately, rather than waiting
100889         for configure's at-exit trap code to do it.
100891 2005-01-18  Jim Meyering  <jim@meyering.net>
100893         * lib/version-etc.c (version_etc_copyright): Update copyright date.
100895         * lib/utimens.c (futimens): Account for the fact that futimes
100896         can also fail with errno == ENOSYS or errno == ENOENT.
100897         Patch from Dmitry V. Levin.
100899         Change the name of the robust chdir function from chdir to chdir_long.
100900         * lib/save-cwd.c: Include chdir-long.h rather than chdir.h.
100901         (restore_cwd): Use chdir_long, not chdir.
100902         * lib/chdir-long.c: Renamed from chdir.c.
100903         * lib/chdir-long.h: Renamed from chdir.h.
100904         [!defined PATH_MAX]: Define chdir_long to chdir on systems like the
100905         Hurd.
100907 2005-01-18  Bruno Haible  <bruno@clisp.org>
100909         * m4/allocsa.m4, m4/codeset.m4, m4/copy-file.m4, m4/eaccess.m4:
100910         * m4/eealloc.m4, m4/eoverflow.m4, m4/execute.m4, m4/fatal-signal.m4:
100911         * m4/findprog.m4, m4/glibc21.m4, m4/iconv.m4, m4/intmax_t.m4:
100912         * m4/inttypes_h.m4, m4/lib-ld.m4, m4/lib-link.m4, m4/lib-prefix.m4:
100913         * m4/linebreak.m4, m4/localcharset.m4, m4/longdouble.m4:
100914         * m4/longlong.m4, m4/mbrtowc.m4, m4/mbstate_t.m4, m4/mbswidth.m4:
100915         * m4/mkdtemp.m4, m4/pipe.m4, m4/readlink.m4, m4/safe-read.m4:
100916         * m4/safe-write.m4, m4/setenv.m4, m4/sig_atomic_t.m4:
100917         * m4/signalblocking.m4, m4/signed.m4, m4/size_max.m4, m4/ssize_t.m4:
100918         * m4/stdbool.m4, m4/stdint_h.m4, m4/stpcpy.m4, m4/stpncpy.m4:
100919         * m4/strcase.m4, m4/strcspn.m4, m4/strpbrk.m4, m4/strstr.m4:
100920         * m4/ucs4-utf.m4, m4/uintmax_t.m4, m4/ulonglong.m4, m4/unicodeio.m4:
100921         * m4/utf-ucs4.m4, m4/vasnprintf.m4, m4/vasprintf.m4:
100922         * m4/wait-process.m4, m4/wchar_t.m4, m4/wint_t.m4, m4/xsize.m4:
100923         Use an all-permissive copyright notice, recommended by RMS.
100925 2005-01-18  Bob Proulx  <bob@proulx.com>
100927         * lib/obstack.c [DEFAULT_ALIGNMENT]: Use an intermediate type to
100928         simplify offsetof() macro construct to avoid compile failure with
100929         native HP-UX 11.0 ANSI C compiler.
100931 2005-01-17  Bruno Haible  <bruno@clisp.org>
100933         * lib/stpncpy.c: Remove HAVE_STPNCPY and gnu_stpncpy renaming,
100934         redundant because stpncpy.m4 takes care of it.
100936 2005-01-17  Bruno Haible  <bruno@clisp.org>
100938         * lib/progreloc.c: Include xalloc.h instead of xmalloc.h.
100940 2005-01-17  Bruno Haible  <bruno@clisp.org>
100942         * lib/progreloc.c (xstrdup): Define as strdup if no xmalloc should be
100943         used.
100945 2005-01-17  Bruno Haible  <bruno@clisp.org>
100947         * lib/fwriteerror.h (fwriteerror): Change specification to include
100948         fclose.
100949         * lib/fwriteerror.c: Include <stdbool.h>.
100950         (fwriteerror): At the end, close the file stream. Record whether
100951         stdout was already closed.
100953 2005-01-17  Bruno Haible  <bruno@clisp.org>
100955         * lib/execute.c (environ): Declare if needed.
100956         * lib/pipe.c (environ): Likewise.
100957         Reported by Michael Schloh von Bennewitz <michael.schloh@cw.com>.
100959 2005-01-11  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
100961         * modules/argp: Depend on vsnprintf
100963 2005-01-10  Jim Meyering  <jim@meyering.net>
100965         * modules/closeout (Depends-on): Add atexit.
100967 2005-01-06  Bruno Haible  <bruno@clisp.org>
100969         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Rename stpncpy to gnu_stpncpy here.
100971 2005-01-04  Paul Eggert  <eggert@cs.ucla.edu>
100973         * lib/human.c (SIZE_MAX, UINTMAX_MAX): Move these conditional
100974         definitions to be after all include files, to avoid collisions.
100975         Problem reported by Bob Proulx.
100977 2005-01-04  Jim Meyering  <jim@meyering.net>
100979         Changes imported from coreutils.
100980         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Rather than using "conftestXXXXXX"
100981         as the mkstemp template, use a temporary directory and an
100982         8.3-friendly template to avoid trouble on systems like DJGPP.
100983         Reported by Juan M. Guerrero via Stepan Kasal.
100984         * m4/(gl_FUNC_MKSTEMP): Include <unistd.h> for the declaration of
100985         close. Remove the temporary directory right away, rather than waiting
100986         for configure's at-exit trap code to do it.
100987         Suggestion from Stepan Kasal.
100989 2005-01-01  Simon Josefsson  <jas@extundo.com>
100991         * gnulib-tool: Print #include directives when --import'ing.
100993 2004-12-28  Simon Josefsson  <jas@extundo.com>
100995         * tests/test-base64.c: Include required header files.  Remove
100996         unused variables.
100998 2004-12-28  Paul Eggert  <eggert@cs.ucla.edu>
101000         * modules/error (Depends-on): Remove gettext.
101002 2004-12-28  Paul Eggert  <eggert@cs.ucla.edu>
101004         * lib/error.c [!_LIBC && !ENABLE_NLS]: Do not include "gettext.h";
101005         not needed.  This removes a dependency on the gettext module.
101006         [defined _LIBC]: Do not include <libintl.h>; not needed.
101008 2004-12-24  Paul Eggert  <eggert@cs.ucla.edu>
101010         * m4/c-strtod.m4 (gl_C99_STRTOLD): New macro.
101011         (gl_C_STRTOD): Use it instead of AC_CHECK_DECLS_ONCE(strtold).
101013 2004-12-24  Paul Eggert  <eggert@cs.ucla.edu>
101015         * lib/c-strtod.c (STRTOD): Depend on HAVE_C99_STRTOLD, not
101016         HAVE_DECL_STRTOLD.
101018 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
101020         * modules/getdate (Depends-on): Remove alloca-opt.
101022 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
101024         * m4/getdate.m4 (gl_GETDATE): Remove AC_FUNC_ALLOCA.
101026 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
101028         * lib/argp-parse.c: Include <stddef.h>.
101029         (alignof, alignto): New macros.
101030         (parser_init): Don't assume that void * is aligned sufficiently
101031         for struct option.
101033         * lib/getdate.y (YYSTACK_USE_ALLOCA): Define to 0, since there's no
101034         need to extend the stack.
101035         (YYINITDEPTH): New macro, so that the initial stack isn't overly
101036         large.
101038 2004-12-22  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
101040         * lib/argp-parse.c (parser_init): Avoid arithmetics on void pointers.
101042 2004-12-19  Paul Eggert  <eggert@cs.ucla.edu>
101044         * modules/regex (lib_SOURCES): Remove regex.c, undoing previous
101045         (2004-10-24) change.  Apparently this was a false alarm.
101047         * modules/getdate: Depend on alloca-opt, not alloca.
101049 2004-12-19  Paul Eggert  <eggert@cs.ucla.edu>
101051         * lib/alloca_.h: Conditionalize on _GNULIB_ALLOCA_H, not _ALLOCA_H.
101052         Remove now-obsolete comment about AIX.
101053         * lib/getdate.y: Include <alloca.h> only if HAVE_ALLOCA.
101054         (YYSTACK_USE_ALLOCA): Define to 0 if !HAVE_ALLOCA.
101055         (YYMAXDEPTH): New macro.
101057 2004-12-18  Simon Josefsson  <jas@extundo.com>
101059         * modules/alloca: Depend on alloca-opt, instead of duplicating it.
101061 2004-12-18  Bruno Haible  <bruno@clisp.org>
101063         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Also test for sigaction.
101065 2004-12-18  Bruno Haible  <bruno@clisp.org>
101067         * lib/fatal-signal.c (fatal_signals): Make non-const.
101068         (init_fatal_signals): New function.
101069         (uninstall_handlers, install_handlers): Ignore signals that were set to
101070         SIG_IGN.
101071         (at_fatal_signal): Call init_fatal_signals.
101072         (init_fatal_signal_set): Likewise. Ignore signals that were set to
101073         SIG_IGN.
101074         Reported by Paul Eggert.
101076 2004-12-18  Bruno Haible  <bruno@clisp.org>
101078         * doc/alloca.texi: New file.
101079         * doc/alloca-opt.texi: New file.
101081 2004-12-17  Jim Meyering  <jim@meyering.net>
101083         * config/install-sh: Use `(exit N); exit N', not `(exit N); exit'.
101084         Otherwise, install-sh could exit with improper exit status when
101085         exiting via a trapped interrupt.  Thanks to a report from Bob Proulx.
101087 2004-12-16  Simon Josefsson  <jas@extundo.com>
101089         * tests/test-base64.c: Add license.
101091 2004-12-15  Stepan Kasal  <address@hidden>
101093         * gnulib-tool (func_emit_lib_Makefile_am): Shorten a long sed command.
101095 2004-12-12  Paul Eggert  <eggert@cs.ucla.edu>
101097         * modules/getcwd (Files): Add m4/d-ino.m4.
101098         Suggested by Mark D. Baushke.
101100 2004-12-08  Paul Eggert  <eggert@cs.ucla.edu>
101102         * lib/getdate.y (textint): New member "negative".
101103         (time_zone_hhmm): New function.
101104         Expect 14 shift-reduce conflicts, not 13.
101105         (o_colon_minutes): New rule.
101106         (time, zone): Use it to add support for +HH:MM, UTC+HH:MM.
101107         (yylex): Set the "negative" member of signed numbers.
101109 2004-12-08  Paul Eggert  <eggert@cs.ucla.edu>
101111         * doc/getdate.texi (Time of day items, Time zone items):
101112         Describe new formats +00:00, UTC+00:00.
101114 2004-12-07  Paul Eggert  <eggert@cs.ucla.edu>
101116         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): Fix typo in previous change:
101117         spurious "-l"s.  Problem reported by Stepan Kasal.
101119 2004-12-06  Paul Eggert  <eggert@cs.ucla.edu>
101121         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): New macro, to work around bug
101122         in Autoconf 2.59.  Problem reported by Mark D. Baushke.
101124 2004-12-04  Simon Josefsson  <jas@extundo.com>
101126         * modules/getaddrinfo (License): Add LGPL, reported by Yoann
101127         Vandoorselaere <yoann@prelude-ids.org>.
101129 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
101131         Changes imported from coreutils.
101132         * m4/hard-locale.m4 (gl_HARD_LOCALE): Assume locale.h and setlocale
101133         exist.
101134         * m4/human.m4 (gl_HUMAN): Assume locale.h and localeconv exist.
101136 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
101138         Changes imported from coreutils.
101139         * lib/hard-locale.c: Assume <locale.h> exists.
101140         Include "strdup.h".
101141         (GLIBC_VERSION): New macro.
101142         (hard_locale): Assume setlocale exists.
101143         Rewrite to avoid #ifdef.
101144         Use strdup rather than malloc + strcpy.
101145         * lib/human.c: Assume <locale.h> exists.
101146         (human_readable): Assume localeconv exists.
101148 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
101150         * modules/hard-locale (Depends-on): Add strdup.
101152 2004-12-01  Jakub Jelinek  <jakub@redhat.com>
101154         * lib/mktime.c (__mktime_internal): If SEC_REQUESTED != SEC,
101155         convert T2, not T.  (Imported from libc.)
101157 2004-11-30  Simon Josefsson  <jas@extundo.com>
101159         * modules/restrict (License): Change to LGPL.
101161 2004-11-30  Simon Josefsson  <jas@extundo.com>
101163         * m4/restrict.m4: Add copyright and copying conditions.
101165 2004-11-30  Simon Josefsson  <jas@extundo.com>
101167         * m4/base64.m4: New file.
101169 2004-11-30  Simon Josefsson  <jas@extundo.com>
101171         * MODULES.html.sh (Extra functions based on ANSI C 89): Add
101172         base64.
101174         * tests/test-base64.c: New file.
101176         * modules/base64: New file.
101178 2004-11-30  Paul Eggert  <eggert@cs.ucla.edu>
101180         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX):
101181         Define HAVE_PARTLY_WORKING_GETCWD if getcwd is partly working.
101183         * m4/readutmp.m4 (gl_READUTMP): Don't check for sys/param.h.
101185 2004-11-30  Paul Eggert  <eggert@cs.ucla.edu>
101187         * lib/getcwd.c (is_ENAMETOOLONG): New macro.
101188         (__getcwd.c): Don't restore errno; glibc doesn't.
101189         [HAVE_PARTLY_WORKING_GETCWD && !defined AT_FDCWD]: Try system getcwd
101190         first, falling back to our code only if its results look suspicious.
101191         Ensure that the resulting buffer is only as large as necessary.
101193         * lib/readutmp.c: Include readutmp.h first.
101194         Include <errno.h>, since readutmp.h no longer does that.
101195         * lib/readutmp.h: Don't include <errno.h>,
101196         <sys/param.h>, <time.h>; not needed to establish interface.
101197         (errno): Remove decl.
101198         (HAVE_STRUCT_XTMP_UT_TYPE): Remove; no longer needed.
101199         (UT_TYPE_EQ, UT_TYPE_NOT_DEFINED, UT_TYPE_BOOT_TIME,
101200         UT_TYPE_USER_PROCESS, IS_USER_PROCESS): New macros.
101202 2004-11-28  Simon Josefsson  <jas@extundo.com>
101204         * lib/base64.h, base64.c: New file.
101206 2004-11-27  Paul Eggert  <eggert@cs.ucla.edu>
101208         * lib/getcwd.h: New file, which I forgot to check in on 2004-11-25.
101210 2004-11-26  Paul Eggert  <eggert@cs.ucla.edu>
101212         * modules/getcwd (Files): Add lib/getcwd.h, m4/getcwd.m4.
101213         (Depends-on): Remove pathmax, same.  Add mempcpy.
101214         (configure.ac): GL_FUNC_GETCWD_PATH_MAX -> gl_FUNC_GETCWD.
101215         (Makefile.am): Append getcwd.h to lib_SOURCES.
101216         (Include): Add getcwd.h.
101217         (Maintainer): Change from Jim Meyering to "all, glibc",
101218         since getdate now uses intended-for-glibc code.
101219         * modules/xgetcwd (Files): Remove m4/getcwd.m4.
101220         (Depends-on): Depend on getcwd.  Do not depend on pathmax.
101222 2004-11-25  Paul Eggert  <eggert@cs.ucla.edu>
101224         Fix problems reported by Scott S. Tinsley for HP-UX 11.11 using
101225         HP's ANSI C compiler.
101226         * lib/fsusage.c (statvfs) [HAVE_SYS_STATVFS_H]: Remove decl.
101227         Declaring int functions causes warnings on some modern systems and
101228         shouldn't be needed to compile on ancient ones.
101229         * lib/same.c (MIN) [defined MIN]: Don't define, since it's already
101230         defined.
101232         * lib/getcwd.c: Replace by a copy of glibc/sysdeps/posix/getcwd.c, but
101233         with the following changes.
101234         (__set_errno): Parenthesize properly.
101235         Include <stdbool.h>.
101236         (MIN, MAX, MATCHING_INO): New macros.
101237         (__getcwd): Define with prototype, not K&R form.
101238         Use heuristics to allocate default buffer on stack if possible.
101239         If AT_FDCWD is defined, use openat and fstatat to avoid O(N**2)
101240         behavior, and to avoid the PATH_MAX limit when computing
101241         ../../../../...
101242         Use MATCHING_INO to compare inode number to file.
101243         Check for arithmetic overflow in size calculations.
101244         Fix bug in reallocation of dot array that caused getcwd to fail
101245         on directories nested deeper than 75.
101246         Be more careful about saving errno on error.
101247         Do not use realloc; use only free+malloc, as this is a bit
101248         more flexible and avoids a needless copy operation.
101249         Do not inspect st_dev and st_ino for symbolic links; POSIX
101250         doesn't specify the latter.
101251         Check for closedir errors.
101252         Avoid needless casts.
101253         Use "#ifdef weak_alias" around weak_alias, to be like other
101254         glibc code.
101255         The following changes to getcwd.c have effect only when used in
101256         gnulib; they have no effect inside glibc proper.
101257         (#pragma alloca) [defined _AIX && !defined __GNUC__]: Remove,
101258         as alloca isn't used.
101259         (alloca, __alloca): Likewise.
101260         [!_LIBC]: Include "getcwd.h", "mempcpy.h".
101261         Include <stddef.h>, <stdlib.h>, <string.h>, <limits.h>
101262         unconditionally, as gnulib assumes C89 or better.
101263         Do not include <sys/param.h>.
101264         (errno) [!defined __GNU_LIBRARY__ && !defined STDC_HEADERS]: Remove
101265         no-longer-necessary 'extern int errno' decl; gnulib assumes C89 or
101266         better.
101267         (NULL) [!defined NULL]: Remove; we assume C89 or better.
101268         Include <dirent.h> in a way that is compatible with modern Autoconf.
101269         (_D_ALLOC_NAMELEN, _D_EXACT_NAMLEN):
101270         New macros, if not already defined.
101271         Include <unistd.h> if _LIBC, not if __GNU_LIBRARY__.
101272         Use "_LIBC", not "defined _LIBC", for consistency.
101273         (HAVE_MEMPCPY): Remove; no longer needed now that gnulib has
101274         a mempcpy module.
101275         (__lstat, __closedir, __opendir, __readdir) [!_LIBC]: New macros.
101276         (GETCWD_RETURN_TYPE): Remove.  All uses replaced by char *.
101277         * lib/xgetcwd.c: David MacKenzie's old code was removed, so give
101278         credit only to Jim Meyering and adjust the copyright dates.
101279         Do not include <limits.h>, <stdio.h>, <sys/types.h>,
101280         <stdlib.h>, <unistd.h>, "pathmax.h".
101281         Instead, include "xgetcwd.h" (first) and "getcwd.h".
101282         (INITIAL_BUFFER_SIZE): Remove.
101283         (xgetcwd): Rely on getcwd, since we now depend on a reliable one.
101285 2004-11-25  Paul Eggert  <eggert@cs.ucla.edu>
101287         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Renamed from
101288         GL_FUNC_GETCWD_PATH_MAX for consistency.  All uses changed.
101289         Use the _ONCE methods, for efficiency.
101290         Check for fcntl.h.  In test program, include <errno.h>
101291         and <fcntl.h> if available.  Remove old K&R cruft from
101292         test program.  Check for common errors in GNU/Linux,
101293         OpenBSD, and Solaris.  Just set gl_cv_func_getcwd_path_max;
101294         don't do AC_LIBOBJ, as that's getcwd.m4's job.
101295         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Renamed from
101296         AC_FUNC_GETCWD_NULL.  All used changed.  Change cache variable
101297         name accordingly.
101298         (gl_FUNC_GETCWD, gl_PREREQ_GETCWD): New macros.  Revamp to
101299         accommodate new getcwd.c.
101300         * m4/jm-macros.m4 (gl_MACROS): Don't require GL_FUNC_GETCWD_PATH_MAX.
101301         * m4/prereq.m4 (gl_PREREQ): Add gl_FUNC_MEMPCPY.
101302         * m4/xgetcwd.m4 (gl_XGETCWD): Replace with gl_FUNC_GETCWD, since
101303         that's all we need now.
101305 2004-11-23  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
101307         * m4/argp.m4 (gl_ARGP): Require gl_GETOPT_SUBSTITUTE unconditionally:
101308         argp-parse.c depends on getopt internals, that means we should
101309         always use our getopt, to be on the safe side.
101310         * m4/getopt.m4 (gl_GETOPT): Check if GETOPT_H is already set, in
101311         order not to spoil the result of an eventual previous invocation
101312         of gl_GETOPT_SUBSTITUTE.
101314 2004-11-23  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
101316         * lib/getopt_.h: Re-addition of __getopt_argv_const caused
101317         redefinition warnings. To avoid them, include the defines
101318         in `#if !defined __need_getopt ... #endif'. The only place
101319         where __getopt_argv_const is used is in definitions
101320         of getopt_long and getopt_long_only below, which are as well
101321         protected by `#ifndef __need_getopt'.
101322         [defined __GETOPT_PREFIX && !defined __need_getopt]: Undef
101323         __need_getopt after including <stdio.h> and <unistd.h> These
101324         headers might have defined it.
101326 2004-11-23  Paul Eggert  <eggert@cs.ucla.edu>
101328         * m4/utimens.m4 (gl_UTIMENS): Check for futimes function.
101330 2004-11-23  Paul Eggert  <eggert@cs.ucla.edu>
101332         * lib/utimens.c (__attribute__, ATTRIBUTE_UNUSED): New macros.
101333         (futimens): New function, which uses futimes if available.
101334         (futimens, utimens): Support timespec==NULL, with same semantics
101335         as utime and utimens.
101336         * lib/utimens.h (futimens): New decl.
101338 2004-11-23  Jim Meyering  <jim@meyering.net>
101340         * lib/getopt_.h: Remove trailing blanks.
101342 2004-11-23  Jim Meyering  <jim@meyering.net>
101344         * lib/__fpending.c: Add comment.
101346 2004-11-22  Paul Eggert  <eggert@cs.ucla.edu>
101348         * modules/canonicalize (Depends-on): Add xreadlink.
101349         Problem reported by James Youngman.
101351 2004-11-20  Paul Eggert  <eggert@cs.ucla.edu>
101353         * lib/getopt_.h (__GETOPT_CONCAT, __GETOPT_XCONCAT, __GETOPT_ID):
101354         New macros.
101355         (getopt, getopt_long, getopt_long_only, optarg, opterr, optind,
101356         optopt): Use them instead of invoking ## directly; otherwise, the
101357         symbols will be __GETOPT_PREFIXgetopt rather than rpl_getopt.
101359 2004-11-19  Bruno Haible  <bruno@clisp.org>
101361         * lib/strtok_r.c: Move comments from here...
101362         * lib/strtok_r.h: ... to here.
101364 2004-11-17  Paul Eggert  <eggert@cs.ucla.edu>
101366         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Check for buggy calloc
101367         implementations that mishandle size_t overflow.
101369 2004-11-17  Paul Eggert  <eggert@cs.ucla.edu>
101371         * lib/realloc.c (rpl_realloc): Call 'free' if n==0, since realloc
101372         might fail.  Problem reported by Yoann Vandoorselaere.
101373         * lib/calloc.c (rpl_calloc): Defend against buggy calloc
101374         implementations that mishandle size_t overflow.
101376 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
101378         * modules/canon-host (Depends-on): Add strdup.
101380 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
101382         * m4/canon-host.m4 (gl_CANON_HOST): Check for getaddrinfo.
101384 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
101386         * lib/canon-host.c: Include "strdup.h".
101387         (canon_host): Use getaddrinfo if available, so that IPv6 works.
101388         Use strdup instead of malloc/strcpy to duplicate strings.
101390         * lib/human.h (LONGEST_HUMAN_READABLE): Add 1 for space before unit.
101391         (human_space_before_unit): New constant.
101392         * lib/human.c (human_readable): Support it.
101394         * lib/xgetcwd.c: Include <limits.h>, for PATH_MAX.
101395         (xgetcwd): Set errno correctly when failing.
101396         Work around Solaris 9 bug: getcwd sets errno==ERANGE even though
101397         the failure is actually due to a PATH_MAX problem.
101399         Further getopt changes to make it more likely that glibc will
101400         buy the changes back.
101401         * lib/getopt.c (POSIXLY_CORRECT): New constant.
101402         (getopt): Use it, so to preserve glibc semantic
101403         * lib/getopt1.c (getopt_long, getopt_long_only): Arg is char * const *
101404         when compiling for libc.
101405         * lib/getopt_.h (__getopt_argv_const): Bring it back.
101406         (getopt_long, getopt_long_only): Use it.
101408         * lib/getopt.c (_getopt_initialize, _getopt_internal_r,
101409         _getopt_internal): New arg POSIXLY_CORRECT.  All callers changed.
101410         (getopt): Argv is now char * const *, as per standard.
101411         (_getopt_internal_r, _getopt_internal): Argv is now char **,
101412         not char *__getopt_argv_const *.
101413         * lib/getopt1.c (getopt_long, _getopt_long_r, getopt_long_only,
101414         _getopt_long_only_r): Likewise.
101415         * lib/getopt_.h (getopt, getopt_long, geopt_long_only): Likewise.
101416         * lib/getopt_int.h (_getopt_internal, _getopt_internal_r,
101417         _getopt_long_r, _getopt_long_only_r): Likewise.
101418         * lib/getopt_.h (__getopt_argv_const): Remove.
101419         (getopt): Argv is now char * const *, as per standard.
101421         * lib/getdate.y (tORDINAL): New token.
101422         (day, relunit): Allow it for relative times.
101423         (relative_time_table): Use tORDINAL for ordinals.
101425 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
101427         * doc/getdate.texi (General date syntax): "next" is 1, not 2.
101428         Document that "second" isn't allowed as an ordinal number.
101430 2004-11-16  Jim Meyering  <jim@meyering.net>
101432         * modules/closeout (Depends-on): Add fpending.
101434 2004-11-15  Jim Meyering  <jim@meyering.net>
101436         * lib/closeout.c: Include "__fpending.h" once again.
101437         Include <stdbool.h>.
101438         (close_stdout): Don't fail just because stdout was closed initially,
101439         since some programs don't write to stdout in the normal course of
101440         operation (other than --version and --help), and we don't want this
101441         function to make e.g. `touch file >&-' fail.
101442         But do fail if it was closed and someone has tried to write to it.
101443         E.g., `printf foo >&-' must fail.
101445 2004-11-13  Jim Meyering  <jim@meyering.net>
101447         * m4/jm-macros.m4: Do require gl_FUNC_FPENDING.
101449 2004-11-12  Simon Josefsson  <jas@extundo.com>
101451         * config/srclist.txt: Add strtok_r.c, glibc bought our changes, but a
101452         small doc fix is still pending.
101454 2004-11-11  Simon Josefsson  <jas@extundo.com>
101456         * modules/strtok_r: New file.
101458         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
101459         strtok_r.
101461 2004-11-11  Simon Josefsson  <jas@extundo.com>
101463         * m4/strtok_r.m4: New file.
101465         * m4/getopt.m4: Replace opterr.
101467 2004-11-11  Simon Josefsson  <jas@extundo.com>
101469         * lib/strtok_r.h, strtok_r.c: New file.
101471 2004-11-11  Paul Eggert  <eggert@cs.ucla.edu>
101473         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): Define __GETOPT_PREFIX instead
101474         of replacing opterr, getopt, etc.  This should handle the
101475         powerpc-apple-darwin5.5 problem recently noted by Simon Josefsson.
101477 2004-11-11  Paul Eggert  <eggert@cs.ucla.edu>
101479         * lib/getopt_.h (__getopt_argv_const): New macro, to be used so that
101480         we can stop lying to compilers about the constness of argv when we
101481         are compiled outside glibc.
101482         (getopt, getopt_long, getopt_long_only): Use it.
101483         * lib/getopt.c (_getopt_initialize, _getopt_internal_r,
101484         _getopt_internal, getopt): Likewise.
101485         * lib/getopt1.c (getopt_long, _getopt_long_r, getopt_long_only,
101486         _getopt_long_only_r): Likewise.
101487         * lib/getopt_int.h (_getopt_internal, _getopt_internal_r,
101488         _getopt_long_r, _getopt_long_only_r): Likewise.
101490         * lib/getopt_.h [defined __GETOPT_PREFIX && !defined __need_getopt]:
101491         Include <stdlib.h> and <stdio.h>, and <unistd.h> if available.
101492         Then rename getopt to __GETOPT_PREFIX##getopt, and so forth for
101493         the other external symbols.
101494         (getopt) [!defined __GNU_LIBRARY]: Use prototype, not old-style
101495         declaration, since the above renaming now works around collisions.
101497 2004-11-11  Jim Meyering  <jim@meyering.net>
101499         * lib/linebreak.c: Remove trailing blanks.
101500         * lib/alloca_.h: Likewise.
101501         * lib/acosl.c: Likewise.
101502         * lib/euidaccess.c: Likewise.
101503         * lib/allocsa.h: Likewise.
101505 2004-11-10  Simon Josefsson  <jas@extundo.com>
101507         * m4/getaddrinfo.m4: New file.
101509 2004-11-10  Simon Josefsson  <jas@extundo.com>
101511         * lib/getaddrinfo.h, lib/getaddrinfo.c: New files.
101513 2004-11-10  Simon Josefsson  <jas@extundo.com>
101515         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
101516         getaddrinfo.
101518         * modules/getaddrinfo: New file.
101520 2004-11-10  Paul Eggert  <eggert@cs.ucla.edu>
101522         * m4/prereq.m4 (gl_PREREQ): Require gt_FUNC_SETENV.
101524 2004-11-10  Paul Eggert  <eggert@cs.ucla.edu>
101526         * lib/mktime.c (SHR): New macro, which is a portable
101527         substitute for >> that should work even on Crays.
101528         (TIME_T_MIDPOINT, ydhms_diff, __mktime_internal): Use it.
101529         Problem reported by Mark D. Baushke in
101530         <http://lists.gnu.org/archive/html/bug-gnulib/2004-11/msg00071.html>.
101531         * lib/getdate.y (SHR): Likewise.
101532         (tm_diff): Use it.
101533         * lib/strftime.c (SHR): Likewise.
101534         (tm_diff): Use it.
101535         * lib/quotearg.c (struct quoting_options): Use unsigned int for
101536         quote_these_too, so that right shifts are well defined.  All uses
101537         changed.
101539 2004-11-10  Jim Meyering  <jim@meyering.net>
101541         Ensure that no close failure goes unreported.
101542         * lib/closeout.c (close_stdout): Always close stdout.  I.e., don't
101543         return early when it seems there's nothing to flush.
101544         Don't include __fpending.h.
101546 2004-11-10  Jim Meyering  <jim@meyering.net>
101548         * modules/closeout (Depends-on): Remove fpending.
101550 2004-11-10  Jim Meyering  <jim@meyering.net>
101552         * m4/jm-macros.m4 (gl_MACROS): Don't require gl_FUNC_FPENDING.
101554 2004-11-09  Paul Eggert  <eggert@cs.ucla.edu>
101556         * m4/strftime.m4 (_gl_STRFTIME_PREREQS): Remove.  Move its body to
101557         gl_FUNC_STRFTIME.
101558         (gl_FUNC_STRFTIME): Use AC_CHECK_FUNCS_ONCE and AC_CHECK_HEADERS_ONCE
101559         and AC_REQUIRE when possible, to avoid duplicate checks.
101560         Check for <wchar.h>.
101562 2004-11-09  Paul Eggert  <eggert@cs.ucla.edu>
101564         * lib/strftime.c (DO_MULTIBYTE): Check for wchar.h, too.
101566 2004-11-09  Bruno Haible  <bruno@clisp.org>
101568         * m4/sockpfaf.m4: New file.
101570 2004-11-05  Bruno Haible  <bruno@clisp.org>
101572         * lib/readlink.c: Include stddef.h, needed for size_t on Woe32.
101573         Reported by Mark D. Baushke <mdb@cvshome.org>.
101575 2004-11-04  Bruno Haible  <bruno@clisp.org>
101577         2004-09-11  Bruno Haible  <bruno@clisp.org>
101578                 * allocsa.valgrind: New file.
101579         2004-02-06  Bruno Haible  <bruno@clisp.org>
101580                 * allocsa.h (sa_alignof): Define differently with HP-UX cc, to
101581                 avoid a bug of this cc on HP-UX 10.20 dealing with enums.
101582                 Reported by Christopher Seip <chris.seip@hp.com>.
101584 2004-11-04  Bruno Haible  <bruno@clisp.org>
101586         * modules/allocsa (Files): Add lib/allocsa.valgrind.
101587         (Makefile.am): Distribute it.
101589 2004-11-03  Paul Eggert  <eggert@cs.ucla.edu>
101591         * lib/xreadlink.c (xreadlink): AIX and HP-UX readlink return -1
101592         with errno == ERANGE if the buffer is too small.
101593         Problem reported by Mark D. Baushke.
101595 2004-11-03  Albert Chin  <china@thewrittenword.com>
101596             Paul Eggert  <eggert@cs.ucla.edu>
101598         * m4/uint32_t.m4 (gl_AC_TYPE_UINT32_T): When determining uint32_t
101599         equivalent, substitute $ac_type for equivalent type rather than
101600         blindly using uint32_t *always* which won't work if uint32_t is not
101601         available.  Define _UINT32_T to work around typedef of uint32_t if
101602         <sys/sched.h>, <pthread.h>, or <semaphore.h> used on Solaris
101603         2.5.1.
101605 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
101607         * m4/jm-macros.m4: Sync from coreutils.
101608         (gl_MACROS): Check for mbrlen, for pathchk.
101609         (gl_CHECK_ALL_TYPES): Require AC_TYPE_MBSTATE_T, for pathchk.
101611 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
101613         * lib/xreadlink.c (MAXSIZE): New macro.
101614         (xreadlink): Use it instead of SSIZE_MAX.  Ensure initial buffer
101615         size does not exceed MAXSIZE.  Avoid cast.
101616         As suggested by Mark D. Baushke in
101617         <http://lists.gnu.org/archive/html/bug-gnulib/2004-11/msg00009.html>,
101618         if readlink fails with buffer size just under MAXSIZE, try again
101619         with MAXSIZE.
101621 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
101623         * config/srclist.txt: Add mktime.c; glibc bought all our changes.
101625 2004-11-02  Derek R. Price  <derek@ximbiot.com>
101626         and  Paul Eggert  <eggert@cs.ucla.edu>
101628         * lib/getdate.y [!TEST]: Include <stdio.h>, since we use sprintf now.
101629         (get_date): Overparenthesize to avoid GCC warning.
101631 2004-11-02  Bruno Haible  <bruno@clisp.org>
101633         * m4/setenv.m4 (gt_FUNC_SETENV): Define VOID_UNSETENV if unsetenv()
101634         returns void.
101636 2004-11-02  Bruno Haible  <bruno@clisp.org>
101638         * lib/setenv.h (unsetenv): Define as a macro if the system's unsetenv()
101639         function returns void.
101641 2004-11-01  Paul Eggert  <eggert@cs.ucla.edu>
101643         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for declarations of
101644         fflush_unlocked, flockfile, funlockfile, funlockfile,
101645         fputs_unlocked, putc_unlocked.
101647 2004-11-01  Paul Eggert  <eggert@cs.ucla.edu>
101649         * lib/getpass.c (fflush_unlocked, flockfile, funlockfile)
101650         (funlockfile, fputs_unlocked, putc_unlocked): Don't define if
101651         already declared.
101653 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
101655         * modules/getdate (Files): Add doc/getdate.texi.
101656         (Depends-on): Add setenv, xalloc.
101658 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
101660         * lib/getdate.y: Add support for TZ="foo" within a date string.
101661         Fix some bugs near time_t boundaries.  Reject dates with
101662         out-of-range components, e.g., "Sept 31".
101663         Include <stdlib.h>, "setenv.h", "xalloc.h".
101664         (ISDIGIT_LOCALE): Remove; unused.
101665         Note that the TZ and time functions used here are not reentrant.
101666         (mktime_ok, get_tz): New functions.
101667         (TZBUFSIZE): New constant.
101668         (get_date): Parse leading TZ="foo".  Reject out-of-range components;.
101669         This requires that we sometimes generate our own TZ="XXX..." setting.
101671 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
101673         * doc/getdate.texi: New file, from coreutils with modifications for
101674         the new TZ parsing.
101676 2004-10-27  Derek R. Price  <derek@ximbiot.com>
101678         * lib/mktime.c (not_equal_tm): Remove redundant check.
101680 2004-10-24  Paul Eggert  <eggert@cs.ucla.edu>
101682         * modules/regex (lib_SOURCES): Add regex.c.
101683         Reported by James Youngman in
101684         <http://lists.gnu.org/archive/html/bug-gnulib/2004-10/msg00199.html>.
101686 2004-10-24  Paul Eggert  <eggert@cs.ucla.edu>
101688         * lib/getdate.y: Use Bison 1.875 features, and some minor
101689         code cleanups.  This change does not affect semantics.
101690         Don't include <stdlib.h>; no longer needed.
101691         Don't include unlocked-io.h; only the "#if TEST" code uses
101692         stdio, and performance isn't crucial there.
101693         (PC, YYLEX_PARAM, YYPARSE_PARAM): Remove; replaced by
101694         Bison 1.875 features as described below.
101695         All uses of "PC." replaced by "pc->".
101696         (YYSTYPE): Add a forward declaration.
101697         (yylex, yyerror): Use full prototypes in forward decls.
101698         Use "%pure-parser" rather than obsolescent "%pure_parser".
101699         Use %parse-param and %lex-param instead of obsolescent
101700         YYPARSE_PARAM and YYLEX_PARAM.
101701         (meridian_table, month_and_day_table, time_units_table,
101702         relative_time_table, time_zone_table, military_table,
101703         lookup_zone, lookup_word, get_date):
101704         Use NULL instead of 0 where appropriate.
101705         (to_hour): Avoid abort (), to avoid a dependency on
101706         stdlib.h.
101707         (yyerror, yylex): Now accepts parser_control * arg.
101708         (main) [TEST]: Use '\0' rather than 0 for char.
101710 2004-10-22  Paul Eggert  <eggert@cs.ucla.edu>
101712         * m4/getpagesize.m4 (gl_GETPAGESIZE): Check for <sys/param.h>.
101714 2004-10-22  Paul Eggert  <eggert@cs.ucla.edu>
101716         * lib/getpagesize.c (getpagesize): Don't assume <sys/param.h> exists.
101717         It's now the caller's responsibility to handle the case where
101718         !HAVE_GETPAGESIZE && !defined getpagesize.
101720         * lib/mktime.c (leapyear): Arg is long int, not int.
101722 2004-10-18  Paul Eggert  <eggert@cs.ucla.edu>
101724         * lib/argp-fs-xinl.c, argp-xinl.c: Update from glibc.
101726 2004-10-17  Paul Eggert  <eggert@cs.ucla.edu>
101728         * gnulib-tool (func_emit_lib_Makefile_am): Fix typo: a $ was
101729         missing.  Problem reported by James Youngman.
101731 2004-10-16  Simon Josefsson  <jas@extundo.com>
101733         * gnulib-tool: Fix comments.  Fix parse problem.
101734         (func_emit_lib_Makefile_am): Don't hard code a in libgl_a_SOURCES.
101736 2004-10-15  Paul Eggert  <eggert@cs.ucla.edu>
101738         * m4/getopt.m4 (gl_GETOPT): Detect and reject the incompatible BSD
101739         implementation of getopt_long.  Problem reported by Alexander Taler in:
101740         http://lists.gnu.org/archive/html/bug-gnulib/2004-10/msg00103.html
101742 2004-10-15  Bruno Haible  <bruno@clisp.org>
101744         * gnulib-tool: Untabify. Initialize supplied_libname.
101745         (func_usage): More homogenous output.
101746         (func_modules_transitive_closure, func_modules_to_filelist,
101747         func_emit_lib_Makefile_am): New functions.
101748         (func_import): New function, extracted from big case statement. Use
101749         func_get_license, func_modules_transitive_closure,
101750         func_modules_to_filelist, func_emit_lib_Makefile_am. Initialize
101751         opt_lgpl. Don't use test -a, as it's not portable.
101752         (func_create_testdir): Use func_modules_transitive_closure,
101753         func_modules_to_filelist, func_emit_lib_Makefile_am.
101755 2004-10-15  Bruno Haible  <bruno@clisp.org>
101757         * gnulib-tool (func_import): Let gl_INIT define LTALLOCA when needed.
101759 2004-10-15  Bruno Haible  <bruno@clisp.org>
101761         * gnulib-tool (func_emit_lib_Makefile_am): Add markers to separate
101762         the portions belonging to each module.
101763         Suggested by Derek Robert Price <derek@ximbiot.com>.
101765 2004-10-12  Simon Josefsson  <jas@extundo.com>
101767         * lib/getpass.c (fflush_unlocked, flockfile, funlockfile)
101768         (fputs_unlocked, putc_unlocked) [!_LIBCS && !USE_UNLOCKED_IO]: Map
101769         to real functions.
101771 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
101773         * modules/vsnprintf: New file.
101775 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
101777         * m4/vsnprintf.m4: New file.
101779 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
101781         * lib/vsnprintf.h: New file.
101782         * lib/vsnprintf.c: New file.
101784 2004-10-11  Bruno Haible  <bruno@clisp.org>
101786         * MODULES.html.sh (Support for systems lacking ISO C 99): Add
101787         vsnprintf.
101789 2004-10-10  Paul Eggert  <eggert@cs.ucla.edu>
101791         * config/srclistvars.sh: Add GNUSTANDARDS (for eggert only).
101793 2004-10-07  Bruno Haible  <bruno@clisp.org>
101795         * lib/snprintf.c (snprintf): Avoid a memory allocation if the result
101796         fits into the provided buffer.
101798 2004-10-06  Paul Eggert  <eggert@cs.ucla.edu>
101800         * lib/diacrit.c, diacrit.h: Add GPL notice.
101802         * lib/atanl.c, logl.c: Add GPL notice, to match glibc's added LGPL
101803         notice.
101804         * lib/atanl.c (atanl): Keep the code as similar to glibc as possible.
101805         * lib/logl.c (logl): Keep the code as similar to glibc as possible.
101806         This avoids a potential constant-folding bug.
101808 2004-10-05  Bruno Haible  <bruno@clisp.org>
101810         * m4/strsep.m4 (gl_FUNC_STRSEP): Require AC_GNU_SOURCE. Don't check
101811         for the declaration of strsep.
101813 2004-10-05  Bruno Haible  <bruno@clisp.org>
101815         * lib/strsep.h: Don't declare strsep() if HAVE_STRSEP.
101817 2004-10-04  Simon Josefsson  <jas@extundo.com>
101819         * modules/memmem: New file.
101820         * tests/test-memmem.c: New file.
101821         * MODULES.html.sh (Extra functions based on ANSI C 89): Add memmem.
101823 2004-10-04  Simon Josefsson  <jas@extundo.com>
101825         * m4/memmem.m4: New file.
101827 2004-10-04  Simon Josefsson  <jas@extundo.com>
101829         * lib/memmem.h: New file.
101830         * lib/memmem.c: New file, taken from glibc.
101832 2004-10-04  Simon Josefsson  <jas@extundo.com>
101834         * lib/error.c, md5.c, regex.c: Use '#if USE_UNLOCKED_IO' instead of
101835         '#ifdef USE_UNLOCKED_IO'.
101837 2004-10-04  Simon Josefsson  <jas@extundo.com>
101839         * config/srclist.txt: Add memmem from glibc.
101841 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
101843         * modules/xalloc (Files, Makefile.am): Remove xstrdup.c.
101845         * modules/argmatch, modules/argp, modules/closeout, modules/error,
101846         modules/exclude, modules/getdate, modules/getline,
101847         modules/getndelim2, modules/getpass, modules/getpass-gnu,
101848         modules/getusershell, modules/linebuffer, modules/md5,
101849         modules/mountlist, modules/posixtm, modules/readtokens,
101850         modules/readutmp, modules/regex, modules/sha1,
101851         modules/version-etc, modules/yesno:
101852         Remove dependency on unlocked-io.
101854 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
101856         * m4/xalloc.m4 (gl_PREREQ_XSTRDUP): Remove.  All uses removed.
101858         * m4/unlocked-io.m4: Add copyright notice.
101859         (gl_FUNC_GLIBC_UNLOCKED_IO): Define USE_UNLOCKED_IO.
101861 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
101863         * lib/xalloc.h (xmemdup): Renamed from xclone.  All uses changed.
101864         * lib/xmalloc.c (xmemdup): Likewise.
101865         * lib/xalloc.h (CCLONE, CLONE, NEW, XCALLOC, XMALLOC, XREALLOC,
101866         XFREE): Remove these long-obsolescent macros.
101867         * lib/xmalloc.c (xstrdup): Implementation moved here from xstrdup.c
101868         * lib/xstrdup.c: Remove.
101870         * lib/regex.c (re_comp): Cast gettext return value to char *,
101871         Problem reported by Martin Neitzel via Mark D. Baushke.
101873 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
101875         * lib/argmatch.c, closeout.c, error.c, exclude.c, getdate.y,
101876         getndelim2.c, getpass.c, getusershell.c, linebuffer.c,
101877         md5.c, mountlist.c, posixtm.c, readtokens.c, readutmp.c,
101878         regex.c, sha1.c, version-etc.c, yesno.c:
101879         Include "unlocked-io.h" only if USE_UNLOCKED_IO.
101880         * lib/unlocked-io.h: Don't worry about USE_UNLOCKED_IO; that's now
101881         the includer's responsibility.
101883         Sync from coreutils.
101885         * lib/modechange.c (mode_compile): Don't decrement a pointer that
101886         points to the start of a string, as the C Standard says the
101887         resulting behavior is undefined.
101889         * lib/backupfile.h (enum backuptype): Rename none -> no_backups,
101890         simple -> simple_backups, numbered_existing ->
101891         numbered_existing_backups, numbered -> numbered_backups
101892         to avoid shadowing problems.  All uses changed.
101893         * lib/argmatch.c (enum backuptype) [defined TEST]: Likewise.
101894         * lib/backupfile.c (check_extension, numbered_backup):
101895         Rename locals to avoid shadowing 'basename'.
101896         * lib/backupfile.h (VALID_BACKUP_TYPE): Don't evaluate arg more than
101897         once.
101899         * lib/.cppi-disable: Add getopt_.h, getopt_int.h.
101900         * lib/.cvsignore: Add getopt.h.
101902 2004-10-04  Bruno Haible  <bruno@clisp.org>
101904         * modules/README: New file.
101905         * gnulib-tool (func_all_modules, func_verify_module): modules/README is
101906         not a module.
101908 2004-10-02  Jim Meyering  <jim@meyering.net>
101910         * lib/dirfd.h, getpagesize.h: Add copyright notice.
101912 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
101914         * modules/strsep: New file.
101916 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
101918         * m4/strsep.m4: New file.
101920 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
101922         * lib/strsep.h: New file.
101923         * lib/strsep.c: New file.
101925 2004-10-01  Simon Josefsson  <jas@extundo.com>
101927         * lib/snprintf.c (snprintf): Handle size==0.
101929 2004-10-01  Simon Josefsson  <jas@extundo.com>
101930             Bruno Haible  <bruno@clisp.org>
101932         * lib/snprintf.c: Include <stdarg.h>, <stdlib.h>, <string.h>.
101933         (snprintf): Declare 'args'.
101935 2004-10-01  Paul Eggert  <eggert@cs.ucla.edu>
101937         * lib/snprintf.c: Remove comments as to why each header is needed.
101939 2004-10-01  Bruno Haible  <bruno@clisp.org>
101941         * MODULES.html.sh: Add strsep.
101943 2004-09-30  Simon Josefsson  <jas@extundo.com>
101945         * modules/snprintf: New file.
101947 2004-09-30  Simon Josefsson  <jas@extundo.com>
101949         * m4/snprintf.m4: New file.
101951 2004-09-30  Simon Josefsson  <jas@extundo.com>
101953         * lib/snprintf.h, lib/snprintf.c: New files.
101955 2004-09-30  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
101957         * lib/argp-help.c (canon_doc_option): Fixed coredump if *name==NULL
101958         (hol_entry_help): Never translate an empty string.
101959         Do not translate option tag (opt->name) if OPTION_NO_TRANS is set
101960         * lib/argp.h (OPTION_NO_TRANS): New option.
101962 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
101964         * modules/argp (Maintainer): Replace Simon Josefsson
101965         by Sergey Poznyakoff.
101967 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
101969         * config/srclist.txt: Comment-out argp/argp.h, until we get the argp
101970         changes merged back into glibc.
101972 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
101974         * MODULES.html.sh (Support for systems lacking ISO C 99): Add snprintf.
101976 2004-09-29  Oskar Liljeblad  <oskar@osk.mine.nu>
101978         * lib/xvasprintf.c: Include xalloc.h.
101979         (xvasprintf): Use xalloc_die, not xmalloc_die.
101981 2004-09-29  Bruno Haible  <bruno@clisp.org>
101983         * modules/alloca-opt: New file, derived from modules/alloca.
101984         * modules/allocsa: Depend on alloca-opt instead of alloca.
101985         * modules/setenv: Likewise.
101986         * modules/vasnprintf: Likewise.
101987         * MODULES.html.sh: Add alloca-opt.
101989 2004-09-28  Simon Josefsson  <jas@extundo.com>
101991         * gnulib-tool: New parameter --lgpl, to asseert that modules are
101992         LGPL, and to replace license template from GPL to LGPL.
101994 2004-09-28  Paul Eggert  <eggert@cs.ucla.edu>
101996         * modules/dummy: Change license to LGPL.
101998 2004-09-28  Paul Eggert  <eggert@cs.ucla.edu>
102000         * lib/dummy.c: Change copyright notice to FSF, and license to GPL.
102002 2004-09-24  Simon Josefsson  <jas@extundo.com>
102004         * modules/minmax (License): Change from GPL to LGPL.
102006 2004-09-23  Simon Josefsson  <jas@extundo.com>
102008         * gnulib-tool (--import): Typo.
102010 2004-09-23  Simon Josefsson  <jas@extundo.com>
102012         * gnulib-tool (--import): Make sure *.m4 end up in m4/ by default.
102014 2004-09-22  Bruno Haible  <bruno@clisp.org>
102016         * modules/*: Add 'License' field.
102017         * gnulib-tool: Accept --extract-license option.
102018         (func_get_license): New function.
102020 2004-09-21  Bruno Haible  <bruno@clisp.org>
102022         * modules/vasnprintf (Files): Add m4/stdint_h.m4, m4/inttypes_h.m4.
102023         Reported by Simon Josefsson.
102025 2004-09-20  Paul Eggert  <eggert@cs.ucla.edu>
102027         * modules/inttostr (Files): Add m4/longlong.m4, since it uses
102028         gl_AC_TYPE_LONG_LONG.
102030 2004-09-20  Paul Eggert  <eggert@cs.ucla.edu>
102032         * config/srclist.txt: Add getsubopt.c, since libc bought our changes.
102034 2004-09-18  Simon Josefsson  <jas@extundo.com>
102035         and  Paul Eggert  <eggert@cs.ucla.edu>
102037         * gnulib-tool: Replace various ad-hoc automake/autoconf/aclocal
102038         calls with autoreconf.  Define GL_LIB.
102040 2004-09-14  Karl Berry  <karl@gnu.org>
102042         * config/srclist.txt: unsync setenv.c, sigh.
102044 2004-09-13  Paul Eggert  <eggert@cs.ucla.edu>
102046         * lib/argp-pvh.c (argp_program_version_hook): Provide initial value.
102047         Problem reported by Bruno Haible in:
102048         http://lists.gnu.org/archive/html/bug-tar/2004-09/msg00023.html
102050 2004-09-13  Paul Eggert  <eggert@cs.ucla.edu>
102052         * config/srclist.txt: Comment out argp-pvh.c.
102054 2004-09-11  Paul Eggert  <eggert@cs.ucla.edu>
102056         * lib/mempcpy.h: Wrap the entire include file inside #ifndef mempcpy,
102057         in case some system header has #define'd it.  Problem reported by
102058         Soeren D. Schulze in
102059         <http://lists.gnu.org/archive/html/bug-gnulib/2004-09/msg00017.html>.
102061 2004-09-09  Karl Berry  <karl@gnu.org>
102063         * regex.[ch]: delete from the root.  These were supposed to be
102064                 synced with emacs cvs, but this has not happened for about
102065                 a year, and anyway nothing else uses emacs regex.[ch].
102066                 bug-gnulib mail from Jeff Bailey, 9 Sep 2004 15:49:24 -0700.
102067                 lib/regex[.ch] is untouched.
102069 2004-09-09  Bruno Haible  <bruno@clisp.org>
102071         * modules/vasnprintf (Files): Add m4/eoverflow.m4.
102073 2004-09-09  Bruno Haible  <bruno@clisp.org>
102075         * m4/eoverflow.m4: New file, taken from GNU libiconv eilseq.m4 with
102076         modifications.
102077         * m4/vasnprintf.m4 (gl_FUNC_VASNPRINTF): Require gl_EOVERFLOW.
102079 2004-09-08  Oskar Liljeblad  <oskar@osk.mine.nu>
102081         * modules/xvasprintf: New file.
102082         * MODULES.html.sh (Extra functions based on ANSI C 89): Add vasprintf.
102084 2004-09-08  Oskar Liljeblad  <oskar@osk.mine.nu>
102086         * lib/xvasprintf.h: New file.
102087         * lib/xvasprintf.c: New file.
102088         * lib/xasprintf.c: New file.
102090 2004-09-08  Bruno Haible  <bruno@clisp.org>
102092         * m4/stdint.m4: New file, taken from GNU clisp with modifications.
102094 2004-09-08  Bruno Haible  <bruno@clisp.org>
102096         * lib/vasnprintf.c (VASNPRINTF): Signal EOVERFLOW if the resulting
102097         length is > INT_MAX.
102098         * lib/vasprintf.c (vasprintf): Don't test for length > INT_MAX any
102099         more.
102101 2004-09-08  Bruno Haible  <bruno@clisp.org>
102103         * lib/stdint_.h: New file, taken from GNU clisp.
102105 2004-09-08  Bruno Haible  <bruno@clisp.org>
102106             Oskar Liljeblad  <oskar@osk.mine.nu>
102108         * modules/stdint: New file.
102109         * MODULES.html.sh (Support for systems lacking ISO C 99): Add stdint.
102111 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
102113         Import from coreutils.
102114         * lib/userspec.c: Don't use <alloca.h>, so that we don't use alloca on
102115         strings on unbounded length.  alloca's performance benefits aren't
102116         that important here.
102117         (V_STRDUP): Remove.
102118         (parse_with_separator): New function, with most of the internals
102119         of the old parse_user_spec.  Allow user to omit both user and group,
102120         for compatibility with FreeBSD.
102121         Clone only the user name, not the entire spec.
102122         Do not set *uid, *gid unless entirely successful.
102123         Avoid memory leak in some failing cases.
102124         Fix regression for USER.GROUP reported by Dmitry V. Levin in
102125         <http://lists.gnu.org/archive/html/bug-coreutils/2004-08/msg00102.html>
102126         (parse_user_spec): Rewrite to use parse_with_separator.
102128 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
102130         * modules/userspec: Don't depend on alloca.
102132 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
102134         * m4/userspec.m4 (gl_USERSPEC): Don't require AC_FUNC_ALLOCA.
102136 2004-08-17  Paul Eggert  <eggert@cs.ucla.edu>
102138         * MODULES.html.sh: Add xalloc-die, c-strtod, c-strtold, raise,
102139         readtokens0, getcwd, fcntl-safer, canonicalize, cycle-check,
102140         utimecmp, utimens, xnanosleep.  Rename sha to sha1.
102142 2004-08-16  Simon Josefsson  <jas@extundo.com>
102144         * gnulib-tool: Use sed instead of autoconf --trace, inspired by
102145         libtoolize behaviour by "Gary V. Vaughan" <gary@gnu.org>.
102146         Add --dry-run for --import.
102147         Let user provided command line parameters override configure.ac
102148         settings.
102150 2004-08-12  Simon Josefsson  <jas@extundo.com>
102152         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): New macro,
102153         as discussed with Paul Eggert in threads rooted at
102154         <http://lists.gnu.org/archive/html/bug-gnulib/2004-06/msg00039.html>
102155         and
102156         <http://lists.gnu.org/archive/html/bug-gnulib/2004-07/msg00001.html>.
102157         Before, the test was empty, and relied on ELIDE_CODE in source
102158         code.)
102159         (gl_PREREQ_GETOPT): New macro.
102160         (gl_GETOPT): Use them.
102162 2004-08-12  Simon Josefsson  <jas@extundo.com>
102164         * lib/getopt.c, getopt1.c: Remove ELIDE_CODE hack.
102165         * lib/getopt_.h: Renamed from getopt.h.
102167 2004-08-12  Simon Josefsson  <jas@extundo.com>
102169         * gnulib-tool: Add --source-base, --m4-base, --libtool options.
102170         Change default library name from libfoo to libgnu.
102171         Now, if you have a configure.ac that says:
102172                 gl_SOURCE_BASE(gl)
102173                 gl_M4_BASE(gl/m4)
102174                 gl_MODULES(error getopt etcetera)
102175                 gl_INIT
102176         you can import all you need by running:
102177                 ../gnulib/gnulib-tool --import
102179         * modules/getopt (Files): Rename getopt.h to getopt_.h.
102180         (Makefile.am): Rewrite, use logic from argz.
102181         (Include): Use <getopt.h> instead of "getopt.h".
102183 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
102185         * modules/argp (Files): Add m4/unlocked-io.m4.
102186         (Depends-on): Add extensions.
102188 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
102190         * m4/argp.m4 (gl_ARGP): Do not check for argp.h or argp_parse; nobody
102191         uses HAVE_ARGP_H or HAVE_ARGP_PARSE.
102192         Require gl_FUNC_GLIBC_UNLOCKED_IO, gl_USE_SYSTEM_EXTENSIONS.
102193         Check for program_invocation_name, program_invocation_short_name,
102194         flockfile, funlockfile, features.h, _getopt_long_only_r.
102196 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
102198         * lib/argp-help.c, argp-parse.c: Use "gettext.h" instead of
102199         its complicated substitute.
102200         * lib/argp-help.c: Include <errno.h>, for program_invocation_short_name
102201         and program_invocation_name.
102202         (__argp_basename) [!_LIBC]: Remove; the only use was
102203         replaced by its body.
102204         (__argp_short_program_name): Change condition from
102205         !defined __argp_short_program_name to
102206         ! (defined _LIBC || HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME),
102207         to match argp-namefrob.h.
102208         (__argp_failure): Don't assume strerror_r returns char *.
102209         * lib/argp-parse.c (N_): Define unconditionally.
102210         (argp_default_options): Fill out initializers with 0 to avoid
102211         gcc warnings.
102213 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
102215         * config/srclist.txt: Remove getopt.c, getopt.h (renamed to getopt_.h),
102216         getopt1.c.
102218 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
102220         Merge from coreutils.
102222         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for wmemchr and wmemcpy.
102224         * m4/obstack.m4 (gl_PREREQ_OBSTACK): Require
102225         gl_AC_HEADER_INTTYPES_H, gl_AC_HEADER_STDINT_H, gl_AC_TYPE_UINTMAX_T.
102227 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
102229         Merge from coreutils.
102231         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Don't set to 1 if missing
102232         wmemchr or wmemcpy.  Problem reported by Robert Dahlem
102233         for Reliant Unix 5.43.
102235         * lib/obstack.c: Include <inttypes.h> and <stdint.h> if available.
102236         (union fooround): Use uintmax_t, not long int.
102237         The rest is a merge from libc:
102238         [defined _LIBC]: Include <shlib-compat.h>.
102239         (_obstack) [defined _LIBC]: Remove after 2.3.4.
102241         * lib/settime.c (settime): Recode to avoid warning with
102242         Sun Forte C 6U2.
102244         * lib/strverscmp.c: Convert to UTF-8.
102246 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
102248         * modules/obstack (Files): Add m4/inttypes_h.m4, m4/stdint_h.m4,
102249         m4/uintmax_t.m4.
102251 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
102253         * modules/xalloc-die: New file.
102254         * modules/xalloc: Remove dependencies on error, gettext, exitfail.
102256         * modules/md5 (Files): Add m4/uint32_t.m4.
102257         * modules/sha1: Renamed from modules/sha.
102258         (Files):
102259         Rename lib/sha.h to lib/sha1.h.
102260         Rename lib/sha.c to lib/sha1.c.
102261         Rename m4/sha.m4 to m4/sha1.m4.
102262         (lib_SOURCES): Likewise.
102263         (configure.ac): Rename gl_SHA to gl_SHA1.
102264         (Include): sha.h -> sha1.h.
102266 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
102268         * m4/uint32_t.m4, m4/uintptr_t.m4: New files.
102269         * m4/sha1.m4: Renamed from sha.m4.
102270         (gl_SHA1): Renamed from gl_SHA.  All uses changed.
102272 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
102274         * lib/obstack.h (obstack_empty_p):
102275         Don't assume that chunk->contents is suitably aligned.
102276         * lib/obstack.c (_obstack_begin, _obstack_begin_1, _obstack_newchunk):
102277         Likewise. Problem reported by Benno in
102278         <http://sources.redhat.com/ml/libc-alpha/2004-08/msg00055.html>.
102280         * lib/chown.c (rpl_chown): Work even if the file is writeable but not
102281         readable.  This could be improved further but it'd take some work.
102283 2004-08-08  Simon Josefsson  <jas@extundo.com>
102285         * modules/xgethostname (Depends-on): Remove exit and error (not
102286         used).
102288         * modules/getpass-gnu: Add getpass.h.
102289         (Depends-on): Add stdbool.
102290         * modules/getpass: Add getpass.h.
102292 2004-08-08  Simon Josefsson  <jas@extundo.com>
102294         * m4/getpass.m4 (gl_FUNC_GETPASS, gl_FUNC_GETPASS_GNU):
102295         Check getpass declaration.
102297 2004-08-08  Simon Josefsson  <jas@extundo.com>
102299         * lib/xgethostname.c: Don't include error.h (not used).
102301         * lib/getpass.h: Add.
102302         * lib/getpass.c: Include getpass.h first.
102304 2004-08-08  Paul Eggert  <eggert@cs.ucla.edu>
102306         * lib/xalloc-die.c: New file.
102307         * lib/xalloc.h (xalloc_fail_func, xalloc_msg_memory_exhausted): Remove.
102308         All uses removed.
102309         * lib/xmalloc.c (xalloc_fail_func, xalloc_msg_memory_exhausted):
102310         Likewise. Move inclusions of gettext.h, error.h, exitfail.h to
102311         xalloc-die.c.
102312         (_, N_, xalloc_die): Move to xalloc-die.c.
102313         * lib/userspec.c (parse_user_spaec): Use xstrdup rather than strdup,
102314         so that we needn't mess with xalloc_msg_memory_exhausted.
102316         * lib/sha1.h: Renamed from sha.h.
102317         (SHA1_H): Renamed from _SHA_H.
102318         (sha1_ctx): Renamed from sha_ctx.
102319         (sha1_init_ctx): Renamed from sha_init_ctx.
102320         (sha1_process_block): Renamed from sha_process_block.
102321         (sha1_process_bytes): Renamed from sha_process_bytes.
102322         (sha1_finish_ctx): Renamed from sha_finish_ctx.
102323         (sha1_read_ctx): Renamed from sha_read_ctx.
102324         (sha1_stream): Renamed from sha_stream.
102325         (sha1_buffer): Renamed from sha_buffer.
102326         * lib/sha1.c: Likewise; renamed from sha.c.
102327         Do not include <sys/types.h>.
102328         Include <stddef.h> rather than <stdlib.h>.
102330 2004-08-08  Bruno Haible  <bruno@clisp.org>
102332         * lib/pathname.h (FILE_SYSTEM_PREFIX_LEN): Renamed from
102333         FILESYSTEM_PREFIX_LEN.
102334         * lib/progreloc.c: Likewise.
102335         * lib/concatpath.c (concatenated_pathname): Use FILE_SYSTEM_PREFIX_LEN.
102337 2004-08-06  Simon Josefsson  <jas@extundo.com>
102339         * modules/progname (Depends-on): Don't depend on stdbool.
102341 2004-08-06  Simon Josefsson  <jas@extundo.com>
102343         * modules/getsubopt: New file.
102344         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
102345         getsubopt.
102347 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
102349         More merge from coreutils.
102351         * m4/utimens.m4, m4/utimecmp.m4: New files.
102352         * m4/backupfile.m4, euidacces.m4, acl.m4, afs.m4, calloc.m4, dirfd.m4,
102353         fsusage.m4, jm-macros.m4, ls-mntd-fs.m4, md5.m4, mountlist.m4,
102354         prereq.m4, sha.m4: Import changes from coreutils.
102356 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
102358         More merge from coreutils.
102359         * modules/raise, modules/readtokens0, modules/utimens:
102360         * modules/utimecmp, module/xnanosleep: New files.
102361         * modules/strftime: Add lib/strftime.h.
102362         Change include from <time.h> to "strftime.h".
102363         * modules/yesno: Add lib/yesno.h.
102364         * modules/backupfile: Remove lib/addext.c.
102365         * modules/euidaccess: Add stat-macros.h.
102366         * modules/canonicalize, modules/euidaccess,
102367         modules/filemode, modules/lchown, modules/makepath,
102368         modules/rmdir, modules/stat: Likewise.
102370 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
102372         Merge from tar.
102373         * lib/argp-help.c (make_hol, hol_append): Don't assume that
102374         SIZE_MAX is a valid preprocessor constant.
102375         (__argp_basename): Change from "#ifndef _LIBC"
102376         to "#ifndef __argp_short_program_name", so that
102377         we don't compile these functions for tar.
102379         More merges from coreutils.
102380         * lib/raise.c, lib/readtokens0.h, lib/readtokens0.c, lib/strftime.h:
102381         * lib/utimens.h, lib/utimens.c, lib/utimecmp.h, lib/utimecmp.c:
102382         * lib/xnanosleep.h, lib/xnanosleep.c, lib/yesno.h: New files.
102383         * lib/addext.c: Remove; no longer needed.
102384         * lib/yesno.c, lib/argmatch.h, lib/argmatch.c, lib/backupfile.h,
102385         lib/backupfile.c, lib/euidaccess.c, lib/filemode.c, lib/closeout.c,
102386         lib/dup2.c, lib/exclude.c, lib/fileblocks.c, lib/filemode.c,
102387         lib/fnmatch.c, lib/fnmtahc_loop.c, lib/fopen-safer.c, lib/fsusage.c,
102388         lib/fsusage.h, lib/ftruncate.c, lib/full-write.c, lib/getdate.y,
102389         lib/getloadavg.c, lib/getugroups.c, lib/hard-locale.c,
102390         lib/hard-locale.h, lib/hash.c, lib/human.c, lib/human.h, lib/lchown.c,
102391         lib/lchown.h, lib/makepath.c, lib/makepath.h, lib/md5.c, lib/md5.h,
102392         lib/memchr.c, lib/memcoll.c, lib/memrchr.c, lib/modechange.c,
102393         lib/modechange.h, lib/mountlist.c, lib/mountlist.h, lib/nanosleep.c,
102394         lib/posixtm.c, lib/putenv.c, quotearg.c, lib/quotearg.h,
102395         lib/readtokens.c, lib/readutmp.c, lib/readutmp.h, lib/rmdir.c,
102396         lib/safe-read.c, lib/save-cwd.c, lib/savedir.c, lib/setenv.c,
102397         lib/sig2str.c, lib/stat.c, lib/strtoimax.c, lib/strverscmp.c,
102398         lib/userspec.c, lib/utime.c, lib/version-etc.c., lib/xgethostname.c,
102399         lib/xmemcoll.c, lib/xreadlink.c, lib/xstrtod.c, lib/xstrtod.h,
102400         lib/xstrtoimax.c, lib/xstrtol.c, lib/xstrtol.h, lib/xstrtoumax.c:
102401         Import changes from coreutils.
102403 2004-08-05  Simon Josefsson  <jas@extundo.com>
102405         * m4/strdup.m4: Always run gl_PREREQ_STRDUP, since strdup.h need it.
102407 2004-08-05  Simon Josefsson  <jas@extundo.com>
102409         * m4/getsubopt.m4: New file.
102411 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
102413         Merge from coreutils.
102415         * m4/c-strtod.m4, m4/canonicalize.m4, m4/fcntl-safer.m4:
102416         * m4/getcwd-path-max.m4: New files.
102418         * m4/dos.m4 (gl_AC_DOS): filesystem -> file system renaming.
102419         FILESYSTEM_PREFIX_LEN ->
102420         FILE_SYSTEM_PREFIX_LEN.
102421         FILESYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX ->
102422         FILE_SYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX.
102423         FILESYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR ->
102424         FILE_SYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR.
102426         * m4/path-concat.m4 (gl_PATH_CONCAT): Don't require gl_AC_DOS, the
102427         prerequisite modules now handle the DOS stuff.
102428         Don't check for unistd.h.
102430 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
102432         Merge from coreutils.
102434         * lib/.gdb-history: Remove; this doesn't belong here.
102436         * lib/c-strtod.c, lib/c-strtod.h, lib/c-strtold.c, lib/cycle-check.c:
102437         * lib/cycle-check.h, lib/dev-ino.h, lib/canonicalize.h:
102438         * lib/canonicalize.c, lib/fcntl-safer.h, lib/fcntl-safer.c:
102439         * lib/getcwd.c: New files.
102441         * lib/dirname.h: Include <stdbool.h>.
102442         (FILE_SYSTEM_PREFIX_LEN): Renamed from FILESYSTEM_PREFIX_LEN,
102443         for consistency with POSIX terminology.  All uses changed.
102444         (IS_ABSOLUTE_FILE_NAME, IS_RELATIVE_FILE_NAME): New macros.
102445         (strip_trailing_slashes): Use bool for booleans.
102446         * lib/stripslash.c (strip_trailing_slashes): Likewise.
102448         * lib/error.c: Work around bug in OpenBSD 3.4 sterror_r: it
102449         sometimes returns a positive errno value even when it succeeds.
102450         (print_errno_message) [!LIBC]: Fall back on strerror if
102451         __strerror_r fails.
102453         * lib/path-concat.c (mempcpy): Don't define if a system header defines
102454         it. Don't include stdio.h, stdlib.h, unistd.h, strdup.h.
102455         (longest_relative_suffix): New function.
102456         (path_concat): Use it.  Assume first argument is not NULL.
102457         Port to DOS.  Omit redundant separators.
102458         Report an error instead of returning NULL.
102459         Use mempcpy instead of memcpy.
102460         (xpath_concat): Remove: not declared or used.
102462         * lib/same.h: Include <stdbool.h>
102463         (same_name): Return bool, not int.
102464         * lib/same.c (same_name): Likewise.
102465         (errno): Don't declare; we assume C89 or better now.
102467         * lib/stat-macros (S_ISCTG, S_ISOFD, S_ISOFL): New macros,
102468         if not already defined.
102470         * lib/xgetcwd.c (errno): Don't declare; we assume C89 or better now.
102471         * lib/dup-safer.c (errno): Likewise.
102473 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
102475         Merge from coreutils.
102476         * modules/c-strtod, modules/c-strtold, modules/canonicalize:
102477         * modules/cycle-check, modules/fcntl-safer, modules/getcwd: New files.
102478         * modules/path-concat: Don't depend on strdup.
102480 2004-08-03  Simon Josefsson  <jas@extundo.com>
102482         * lib/strdup.h: Only use HAVE_DECL_STRDUP if defined.
102483         * lib/progname.h: Don't include stdbool.h.
102485 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
102487         * modules/fatal: Remove, as the "fatal" module wasn't used or working.
102488         * MODULES.html.sh (func_all_modules): Remove fatal.
102490 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
102492         * m4/fatal.m4: Remove, as the "fatal" module wasn't used or working.
102494 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
102496         * lib/fatal.c, fatal.h: Remove as the "fatal" module wasn't used or
102497         working.
102499 2004-08-02  Simon Josefsson  <jas@extundo.com>
102501         * lib/getsubopt.h: New file, with comments from Bruno Haible.
102502         * lib/getsubopt.c: New file, from glibc, but slightly modified based on
102503         suggestions from Paul Eggert <eggert@cs.ucla.edu>.
102505 2004-08-01  Simon Josefsson  <jas@extundo.com>
102507         * lib/xgetdomainname.c: Include stdlib.h, for free().
102509 2004-07-19  Bruno Haible  <bruno@clisp.org>
102511         * MODULES.html.sh (func_all_modules): Add dummy.
102513 2004-07-16  Simon Josefsson  <jas@extundo.com>
102515         * modules/dummy: New file.
102517 2004-07-16  Simon Josefsson  <jas@extundo.com>
102519         * lib/dummy.c: New file.
102521 2004-07-16  Bruno Haible  <bruno@clisp.org>
102523         * lib/backupfile.h: Add extern "C" for C++.
102524         * lib/closeout.h: Likewise.
102525         * lib/copy-file.h: Likewise.
102526         * lib/findprog.h: Likewise.
102527         * lib/full-write.h: Likewise.
102528         * lib/pathname.h: Likewise.
102529         * lib/progname.h: Likewise.
102530         * lib/stpcpy.h: Likewise.
102531         * lib/stpncpy.h: Likewise.
102532         * lib/strcase.h: Likewise.
102533         * lib/strstr.h: Likewise.
102534         * lib/xalloc.h: Likewise.
102536         * lib/mbswidth.h: Add extern "C" for C++.
102537         Reported by Albert Chin-A-Young <china@thewrittenword.com>.
102539 2004-07-13  Robert Millan  <robertmh@gnu.org>
102541         * m4/host-os.m4: s/KNetBSD/kNetBSD/g and s/KFreeBSD/kFreeBSD/g.
102543 2004-07-09  Simon Josefsson  <jas@extundo.com>
102545         * lib/getndelim2.c: Include stddef.h, for ptrdiff_t.  (FreeBSD 4.9
102546         failed without this.)
102548 2004-07-09  Paul Eggert  <eggert@cs.ucla.edu>
102550         * modules/chown (Files): Add lib/fchown-stub.c, since
102551         gl_PREREQ_CHOWN invokes AC_LIBOBJ(fchown-stub).
102553 2004-07-09  Paul Eggert  <eggert@cs.ucla.edu>
102555         * lib/fchown-stub.c: New file.
102557 2004-06-24  Jim Meyering  <jim@meyering.net>
102559         * lib/obstack.h (obstack_base): Cast to (void *), per documentation.
102561 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
102563         * modules/argz: Omit "#include".
102565         * MODULES.html.sh (func_all_modules): Add calloc, to match
102566         2004-06-01 addition of calloc module.
102568 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
102570         * m4/argz.m4: New file, which is autoupdated from libtool.
102572 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
102574         * lib/argz.c, lib/argz_.h: New files, which are autoupdated from
102575         libtool.
102577 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
102579         * config/srclist-update: Don't insist on "USA." before the
102580         close-comment, as libtool omits the period and puts the */ on a
102581         separate line.
102582         * config/srclist.txt: Add argz.c, argz_.h, argz.m4.
102583         * config/srclistvars.sh: Add LIBTOOL (for eggert only).
102585 2004-06-22  Gary V. Vaughan  <gary@gnu.org>
102587         * modules/argz: New file.
102588         * MODULES.html.sh (func_all_modules): Add argz.
102590 2004-06-12  Jim Meyering  <jim@meyering.net>
102591         and  Paul Eggert  <eggert@cs.ucla.edu>
102593         * modules/hash (Files): Add lib/xalloc.h.
102594         * modules/pipe (Depends-on): Add wait-process.
102595         * modules/stat (Depends-on): Add xalloc.
102596         * modules/userspec (Files): Add lib/userspec.h.
102597         * modules/xstrto
102599         Upgrade from gettext-0.13.
102600         * modules/gettext (Files): Add m4/intmax.m4, m4/longdouble.m4,
102601         m4/longlong.m4, m4/printf-posix.m4, m4/signed.m4, m4/size_max.m4,
102602         m4/wchar_t.m4, m4/wint_t.m4, m4/xsize.m4.
102604 2004-06-10  Jim Meyering  <jim@meyering.net>
102606         * lib/calloc.c: New file.
102608 2004-06-06  Paul Eggert  <eggert@cs.ucla.edu>
102610         * lib/getdate.y (yylex): Allow space between sign and number.
102611         Problem reported by Dan Jacobson.
102613 2004-06-01  Paul Eggert  <eggert@cs.ucla.edu>
102615         Merge from coreutils CVS.
102617         * m4/backupfile.m4, dirname.m4, human.m4, inttypes.m4, longlong.m4,
102618         makepath.m4, memchr.m4, memcmp.m4, mountlist.m4, path-concat.m4,
102619         putenv.m4, quotearg.m4, readutmp.m4, strtoimax.m4, strtoll.m4,
102620         strtoull.m4, strtoumax.m4, ulonglong.m4, vasnprintf.m4,
102621         xstrtol.m4: Fix copyright date and/or serial number.
102623         * m4/chown.m4 (gl_PREREQ_CHOWN): Check for fcntl.h.
102624         See if we need an fchown replacement.
102625         (gl_FUNC_CHOWN_FOLLOWS_SYMLINK): New macro.
102626         (gl_FUNC_CHOWN): Require gl_FUNC_CHOWN_FOLLOWS_SYMLINK,
102627         and use the replacement function if we detect either defect.
102629         * m4/prereq.m4 (gl_PREREQ): Add gl_ALLOCSA, gl_CLOEXEC, gl_INTTOSTR,
102630         gl_UTIMECMP.
102632 2004-06-01  Paul Eggert  <eggert@cs.ucla.edu>
102633         and  Jim Meyering  <jim@meyering.net>
102635         Merge from coreutils CVS.
102637         * lib/stat-macros.h: New file, with contents from file-type.h
102638         and coreutils' system.h.
102639         * lib/file-type.c: Include "stat-macros.h".
102640         * lib/file-type.h (file_type): Move all macro definitions to new file,
102641         stat-macros.h.
102643         * lib/chown.c (rpl_chown) [CHOWN_FAILS_TO_HONOR_ID_OF_NEGATIVE_ONE]:
102644         Wrap old code with this conditional.
102645         [CHOWN_MODIFIES_SYMLINK]: Try to work around a chown
102646         function that does not dereference symlinks.
102647         * lib/lchown.c (lchown) [CHOWN_MODIFIES_SYMLINK]: Just call chown.
102649         * lib/xreadlink.c: Include xreadlink.h first, to catch .h file
102650         dependency problems.
102651         (xreadlink): Accept new arg SIZE, for efficiency.
102652         All decls and uses changed.
102653         * lib/xreadlink.h: Include <stddef.h>, for size_t.
102655         * lib/.cppi-disable: Add alloca_.h, allocsa.h, exit.h, getndelim2.h,
102656         gettext.h, localcharset.h, strdup.h, strndup.h, strtoul.c, time_r.h.
102658         * lib/.cvsignore: Add alloca.h, fnmatch.h, poll.h, stdbool.h,
102659         sysexits.h.
102661 2004-06-01  Jim Meyering  <jim@meyering.net>
102663         * m4/calloc.m4: New file.
102665 2004-05-31  Paul Eggert  <eggert@cs.ucla.edu>
102667         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Detect _Bool bug in HP aC++/ANSI
102668         C B3910B A.05.55 [Dec 04 2003].  Problem reported by Jim Meyering.
102669         Also, fix a typo in a diagnostic.
102671 2004-05-30  Paul Eggert  <eggert@cs.ucla.edu>
102673         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Do not require AC_FUNC_MALLOC
102674         or AC_FUNC_REALLOC.
102676 2004-05-30  Paul Eggert  <eggert@cs.ucla.edu>
102678         * lib/xmalloc.c (HAVE_MALLOC, HAVE_REALLOC): Do not require these
102679         macros to be defined.
102680         (xnmalloc_inline, xnrealloc_inline, xcalloc): Do not die if
102681         the allocator returns NULL because the requested size is zero.
102683 2004-05-20  Paul Eggert  <eggert@cs.ucla.edu>
102685         * lib/malloc/obstack.c (_obstack) [defined _LIBC]: Bring back this
102686         var.  Add comment explaining why libc still defines it.  This
102687         merges the following patch from glibc:
102688         http://sources.redhat.com/ml/libc-alpha/2004-05/msg00157.html
102690 2004-05-20  Andreas Schwab  <schwab@suse.de>
102692         * m4/free.m4: Replace free if it not known to work, not the other
102693         way round.
102695 2004-05-19  Paul Eggert  <eggert@cs.ucla.edu>
102697         * lib/obstack.c (_obstack): Remove unused variable.  It hasn't been
102698         present in glibc since revision 1.1 of this file.
102699         * lib/obstack.h (_obstack_free, obstack_1grow, obstack_1grow_fast,
102700         obstack_alignment_mask, obstack_alloc, obstack_base,
102701         obstack_blank, obstack_blank_fast, obstack_chunk_size,
102702         obstack_copy, obstack_copy0, obstack_finish, obstack_grow,
102703         obstack_grow0, obstack_init, obstack_int_grow,
102704         obstack_int_grow_fast, obstack_make_room, obstack_memory_used,
102705         obstack_next_free, obstack_object_size, obstack_ptr_grow,
102706         obstack_ptr_grow_fast, obstack_room): Remove declarations of
102707         nonexistent functions.
102709 2004-05-18  Karl Berry  <karl@gnu.org>
102711         * config/srclist.txt: break link for vasnprintf.c.
102713 2004-05-17  Paul Eggert  <eggert@cs.ucla.edu>
102715         Port obstack to the AS/400, where pointers are 16 bytes wide and
102716         you cannot cast an integer to a valid pointer.  This patch is
102717         currently waiting to be integrated into glibc; see
102718         <http://sources.redhat.com/ml/libc-alpha/2004-05/msg00073.html>.
102720         * lib/obstack.h (__PTR_TO_INT, __INT_TO_PTR): Remove.
102721         All uses of __INT_TO_PTR (PTR_TO_INT ...) replaced by __PTR_ALIGN.
102722         (__BPTR_ALIGN, __PTR_ALIGN): New macros.
102723         (struct obstack): temp member is now a union of a pointer and
102724         an integer, instead of an integer.  All integer uses changed.
102725         This does not affect the physical layout of struct obstack,
102726         except on hosts (like the AS/400) where the size or alignment of
102727         void * is greater than that of ptrdiff_t.
102728         (obstack_finish) [! (defined __GNUC__ && defined __STDC__ &&
102729         __STDC__)]: Store temporary in pointer member of union, not
102730         integer member.
102731         * lib/obstack.c: Include <stddef.h>, for offsetof.
102732         (struct fooalign): Remove; it doesn't need a name.
102733         (union fooround): Change double to long double, and add void *.
102734         (DEFAULT_ALIGNMENT): Use offsetof to compute.
102735         (DEFAULT_ALIGNMENT, DEFAULT_ROUNDING): Now an enum constant,
102736         not a macro.  Hence the values are always int; so remove all
102737         casts-to-int in uses.
102739 2004-05-17  Paul Eggert  <eggert@cs.ucla.edu>
102741         * config/srclist.txt: Break link for argp-help.c and argp-parse.c until
102742         we can get this patch merged into glibc.
102744 2004-05-17  Derek R. Price  <derek@ximbiot.com>
102745             Paul Eggert  <eggert@cs.ucla.edu>
102747         * m4/argp: Depend on alloca.
102749 2004-05-17  Derek R. Price  <derek@ximbiot.com>
102750             Paul Eggert  <eggert@cs.ucla.edu>
102752         * lib/argp-help.c, argp-parse.c: Assume <alloca.h> rather than
102753         freecoding.
102755 2004-05-17  Bruno Haible  <bruno@clisp.org>
102757         * lib/vasnprintf.c (VASNPRINTF): Correctly handle the case of a
102758         precision that consists of a '.' followed by an empty digit string.
102759         Patch by Tor Lillqvist <tml@iki.fi>.
102761 2004-05-16  Paul Eggert  <eggert@cs.ucla.edu>
102763         * m4/alloca.m4 (gl_FUNC_ALLOCA): Define HAVE_ALLOCA_H always,
102764         for backward compatibility with older code.  We need our own
102765         alloca.h if _AIX is defined.  Define HAVE_ALLOCA if we discover
102766         it under some other name, and our alloca.h will define it.
102768 2004-05-16  Paul Eggert  <eggert@cs.ucla.edu>
102769             Derek Price  <derek@ximbiot.com>
102771         * lib/alloca.c: Include <alloca.h>, to get our interface.
102772         * lib/alloca_.h: Use __alloca on AIX, so that we don't have to
102773         include <alloca.h> first.  Use C89 prototype for alloca; this
102774         requires including <stddef.h> for size_t.  Use extern "C" if C++.
102775         Use #elif for simplicity, since we can assume C89 now.
102776         Don't try to source the system alloca.h since it will not be found
102777         and to prevent recursively including its replacement.
102778         * lib/fnmatch.c: Include <alloca.h> instead of opencoding.
102779         * lib/regex.c: Likewise.
102781 2004-05-16  Derek Price  <derek@ximbiot.com>
102782             Paul Eggert  <eggert@cs.ucla.edu>
102784         getline cleanup.  This changes the getndelim2 API: both order of
102785         arguments, and meaning of delim2 (now uses EOF, not 0, to indicate
102786         no delimiter).
102788         * lib/getline.c: Don't include stddef.h or stdio.h, since our
102789         interface does that.
102790         (getline): Always use getdelim, so that we don't have two
102791         copies of this code.
102792         * lib/getndelim2.c: Include <limits.h>, <inttypes.h>, <stdint.h>
102793         if available.
102794         (PTRDIFF_MAX, SIZE_MAX, SSIZE_MAX): Define if not defined.
102795         (GETNDELIM2_MAXIMUM): New macro.
102796         (getndelim2): Reorder arguments.  delim==EOF now means no delimiter,
102797         instead of the old practice of delim2==0.  All callers changed.
102798         Return -1 on overflow, instead of returning junk.
102799         Do not set *linesize unless allocation succeeds.
102800         * lib/getndelim2.h: Do not include stddef.h; no longer needed, now
102801         that we include sys/types.h.
102802         * lib/getnline.h: Likewise.
102803         * lib/getndelim2.h (GETNLINE_NO_LIMIT): New macro.
102804         (getndelim2): Reorder arguments.
102805         * lib/getnline.c (getnline, getndelim):
102806         Don't discard the NMAX argument.
102807         (getnline): Invoke getndelim, to avoid code duplication.
102808         * lib/getnline.h (GETNLINE_NO_LIMIT): New macro, used instead
102809         of (size_t) -1 by callers of the getnline family.
102811 2004-05-13  Paul Eggert  <eggert@cs.ucla.edu>
102813         * m4/gettime.m4 (gl_GETTIME): Require gl_TIMESPEC.
102814         Check for gettimeofday.
102815         * m4/settime.m4 (gl_SETTIME): Require gl_TIMESPEC.
102816         Check for settimeofday, stime.
102818 2004-05-13  Paul Eggert  <eggert@cs.ucla.edu>
102820         * lib/nanosleep.c (suspended): Change its type from int to
102821         sig_atomic_t volatile.
102822         (first_call): Make it private to rpl_nanosleep, and have it
102823         be zero initially as that's a bit faster.
102824         (my_usleep): Round up fractional times instead of truncating them,
102825         as this is the usual meaning for 'sleep'.
102827         * lib/gettime.c (gettime): Fall back on `time' if `gettimeofday'
102828         doesn't work.
102829         * lib/settime.c: Include <unistd.h>, for stime (on Solaris 8, anyway).
102830         (ENOSYS): Define if not defined.
102831         (settime): Fall back on stime if it exists and settimeofday fails.
102832         But don't bother with fallbacks if a method fails with errno == EPERM.
102834 2004-05-11  Jim Meyering  <jim@meyering.net>
102836         Prior to this change, the save_cwd caller required read access to the
102837         current directory on most systems (ones with the fchdir function).
102839         * lib/save-cwd.c (save_cwd) [HAVE_FCHDIR]: If opening `.' read-only
102840         fails, try write-only, and finally, resort to using xgetcwd.
102842 2004-05-06  Paul Eggert  <eggert@cs.ucla.edu>
102844         * lib/obstack.c, obstack.h: Import changes from libc.
102846 2004-04-28  Bruno Haible  <bruno@clisp.org>
102848         * lib/findprog.c (find_in_path): Treat Cygwin like Windows, since it
102849         also implicitly appends .exe to executables.
102850         * lib/localcharset.c (ISSLASH): Treat Cygwin like Windows, since it now
102851         accepts Windows pathnames.
102852         * lib/pathname.h (ISSLASH, IS_PATH_WITH_DIR, FILESYSTEM_PREFIX_LEN):
102853         Treat Cygwin like Windows, since it now accepts Windows pathnames.
102854         * lib/progreloc.c (ISSLASH, IS_PATH_WITH_DIR, FILESYSTEM_PREFIX_LEN):
102855         Treat Cygwin like Windows, since it now accepts Windows pathnames.
102856         Reported by Derek Robert Price <derek@ximbiot.com>.
102858 2004-04-21  Karl Berry  <karl@gnu.org>
102860         * config/srclist.txt (localcharset.c): break sync.
102862 2004-04-20  Paul Eggert  <eggert@twinsun.com>
102864         * m4/host-os.m4: Add a copyright notice.
102866 2004-04-20  Jim Meyering  <jim@meyering.net>
102868         Change UTILS_ to gl_ in AC_DEFINE'd names.
102869         Change utils_- and jm_-prefixed variables, too.
102870         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Renamed from
102871         UTILS_FUNC_MKDIR_TRAILING_SLASH.
102872         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Renamed from UTILS_FUNC_MKSTEP.
102874         * m4/dirfd.m4 (gl_FUNC_DIRFD): Rename from UTILS_FUNC_DIRFD.
102875         Don't emit trailing blanks.
102876         Also rename jm_-prefixed variables to have gl_ prefix.
102878         * m4/host-os.m4 (gl_HOST_OS): Rename from UTILS_HOST_OS.
102879         Also rename jm_-prefixed variables to have gl_ prefix.
102881         * m4/jm-macros.m4: Reflect the renamings.
102882         * m4/prereq.m4: Likewise.
102884 2004-04-20  Jim Meyering  <jim@meyering.net>
102886         * lib/getndelim2.c (getndelim2): Upon realloc failure, don't leak
102887         memory.
102889 2004-04-20  Jim Meyering  <jim@meyering.net>
102890             Bruno Haible  <bruno@clisp.org>
102892         * lib/localcharset.c (get_charset_aliases) [!VMS && !WIN32]: Don't leak
102893         memory when realloc fails.
102895 2004-04-19  Jim Meyering  <jim@meyering.net>
102897         * m4/readutmp.m4 (gl_PREREQ_READUTMP): Require gl_FUNC_FREE,
102898         now that readutmp.c may call `free (0)'.
102900 2004-04-19  Bruno Haible  <bruno@clisp.org>
102902         * m4/mbrtowc.m4: Change jm_ to gl_ in cache variables as well.
102903         * m4/inttypes_h.m4: Likewise.
102904         * m4/stdint_h.m4: Likewise.
102905         * m4/intmax_t.m4: Likewise.
102906         * m4/uintmax_t.m4: Likewise.
102908 2004-04-18  Jim Meyering  <jim@meyering.net>
102910         * m4/prereq.m4: Don't forbid jm_ prefix.
102912         * m4/afs.m4, m4/allocsa.m4, m4/assert.m4, m4/backupfile.m4:
102913         * m4/bison.m4, m4/check-decl.m4, m4/chown.m4, m4/d-ino.m4:
102914         * m4/d-type.m4, m4/dirname.m4, m4/dos.m4, m4/error.m4, m4/fpending.m4:
102915         * m4/fstypename.m4, m4/fsusage.m4, m4/ftruncate.m4, m4/getdate.m4:
102916         * m4/getgroups.m4, m4/gettext.m4, m4/glibc21.m4, m4/group-member.m4:
102917         * m4/human.m4, m4/intmax.m4, m4/intmax_t.m4, m4/inttostr.m4:
102918         * m4/inttypes.m4, m4/inttypes_h.m4, m4/jm-macros.m4, m4/jm-winsz1.m4:
102919         * m4/jm-winsz2.m4, m4/lchown.m4, m4/lib-check.m4, m4/link-follow.m4:
102920         * m4/localcharset.m4, m4/longlong.m4, m4/ls-mntd-fs.m4, m4/lstat.m4:
102921         * m4/makepath.m4, m4/mbrtowc.m4, m4/mbswidth.m4, m4/memchr.m4:
102922         * m4/memcmp.m4, m4/mkdtemp.m4, m4/mkstemp.m4, m4/mountlist.m4:
102923         * m4/nanosleep.m4, m4/path-concat.m4, m4/perl.m4, m4/prereq.m4:
102924         * m4/putenv.m4, m4/quotearg.m4, m4/regex.m4, m4/stat.m4:
102925         * m4/stdint_h.m4, m4/strftime.m4, m4/strtoimax.m4, m4/strtoll.m4:
102926         * m4/strtoull.m4, m4/strtoumax.m4, m4/timespec.m4, m4/uintmax_t.m4:
102927         * m4/ulonglong.m4, m4/unlink-busy.m4, m4/unlocked-io.m4, m4/uptime.m4,
102928         * m4/utimbuf.m4, m4/utime.m4, m4/utimes-null.m4, m4/vasnprintf.m4:
102929         * m4/xstrtoimax.m4, m4/xstrtol.m4, m4/xstrtoumax.m4:
102930         Change jm_ to gl_ in AC_DEFINE'd names. Update all uses.
102932 2004-04-18  Jim Meyering  <jim@meyering.net>
102934         * lib/readutmp.c (read_utmp) [UTMP_NAME_FUNCTION]: Upon realloc
102935         failure, don't leak memory and do call END_UTMP_ENT.
102937 2004-04-16  Jim Meyering  <jim@meyering.net>
102939         * m4/prereq.m4 (jm_PREREQ_STAT): Remove macro.  It is specific to
102940         coreutils' stat program.
102941         (gl_PREREQ): Don't require jm_PREREQ_STAT.
102943 2004-04-11  Paul Eggert  <eggert@twinsun.com>
102945         * lib/inttostr.h: Include <limits.h> unconditionally, since we assume
102946         C89.
102947         (CHAR_BIT): Remove, since we assume C89.
102948         Include <stdint.h> if available, as per current Autoconf CVS advice.
102950 2004-03-31  Jim Meyering  <jim@meyering.net>
102952         * m4/prereq.m4: Require AC_FUNC_MALLOC, not jm_FUNC_MALLOC.
102953         Require AC_FUNC_REALLOC, not jm_FUNC_REALLOC.
102954         * m4/xalloc.m4: Likewise.
102956 2004-03-30  Paul Eggert  <eggert@twinsun.com>
102958         Merge from coreutils.
102960         * m4/inttostr.m4: New file.
102961         * m4/getdate.m4 (gl_GETDATE): Remove time-related stuff.
102962         Require AM_STDBOOL_H and gl_TIMESPEC instead.
102963         Require gl_CLOCK_TIME.
102964         * m4/clock_time.m4 (gl_CLOCK_TIME): Require AC_GNU_SOURCE.
102966 2004-03-30  Paul Eggert  <eggert@twinsun.com>
102968         * lib/cloexec.h, cloexec.c (set_cloexec_flag): Return int
102969         not bool, to be more consistent with Unix conventions.
102970         Suggested by Bruno Haible.
102972         Merge from coreutils.
102974         * lib/imaxtostr.c, lib/inttostr.c, lib/inttostr.h, lib/offtostr.c:
102975         * lib/umaxtostr.c: New files.
102977         * lib/getdate.h: Include stdbool.h, and timespec.h instead of
102978         the usual <time.h> dance.
102979         (get_date): Change signature to support fractional time stamps.
102980         All callers changed.
102981         * lib/getdate.y: Include "getdate.h" first, as we can now
102982         assume C89 and don't need to worry about 'const'.
102983         Similarly, include "unlocked-io.h" near start, not in middle.
102984         Include <limits.h>.
102985         (textint.value): Use long int rather than int.
102986         (textint.digits): Use size_t rather than int.
102987         (BILLION, LOG10_BILLION): New constants.
102988         (parser_control): New member rel_ns.  Members day_ordinal,
102989         time_zone, month, day, hour, minutes, rel_year, rel_month,
102990         rel_day, rel_hour, rel_minutes, rel_seconds
102991         are now long int, not int.  Member seconds is now struct timespec,
102992         not int.  New member timespec_seen.  Members dates_seen, days_seen,
102993         local_zones_seen, rels_seen, times_seen, zones_seen are now size_t,
102994         not int.
102995         (%union.intval): Now long int, not int.
102996         New member timespec.
102997         (tSDECIMAL_NUMBER, tUDECIMAL_NUMBER): New tokens.
102998         (seconds, signed_seconds, unsigned_seconds): New nonterminals.
102999         (spec): Now is a timespec or an item list.
103000         (timespec, items): New nonterminals.
103001         (time, rel, relunit, number, get_date):
103002         Add support for fractional seconds.
103003         (time): Fix bug: seconds weren't cleared in "00:00 +0000" syntax.
103004         (gmtime, localtime, mktime): Remove decls; not needed with C89.
103005         (to_hour): First arg is now long int, not int.
103006         (to_year): Returns long int, not int.
103007         Don't treat year -70 like 70.
103008         (tm_diff): Returns long int, not int.
103009         (lookup_word): Use bool instead of int when appropriate.
103010         (yylex): Use size_t for count, not int.
103011         Detect overflow when parsing large integer constants.
103012         Add support for fractions.
103013         (get_date): Make pointers 'const' if possible.
103014         Use more-portable code to detect integer overflow.
103015         (main) [TEST]: Adjust to above changes.  Test for localtime failure.
103016         Don't use ctime; it's not reliable if the year has >4 digits.
103018         * lib/human.c (humblock): Inspect BLOCKSIZE if BLOCK_SIZE isn't set.
103019         This is for compatibility with BSD.
103021         * lib/timespec.h (ST_TIME_CMP_NS, ST_TIME_CMP): Define.
103022         (ATIME_CMP, CTIME_CMP, MTIME_CMP, TIMESPEC_NS): Likewise.
103023         From coreutils' system.h.
103025         * lib/userspec.c: Don't include "posixver.h".
103026         (parse_user_spec): Fall back on USER.GROUP parsing, regardless
103027         of POSIX version, as POSIX 1003.1-2001 allows that behavior as a
103028         compatible extension.  Simplify code by removing a boolean int
103029         that was always nonzero if a string was nonnull.
103031 2004-03-30  Jim Meyering  <jim@meyering.net>
103033         Merge from coreutils.
103035         Avoid a configure-time warning about sys/ucred.h on OSF V4.0.
103036         * m4/ls-mntd-fs.m4: Test for sys/ucred.h separately, since
103037         on some systems one must include <grp.h> before it.
103038         Reported by Christian Krackowizer.
103040 2004-03-30  Jim Meyering  <jim@meyering.net>
103042         Merge from coreutils.
103044         * lib/mountlist.c [HAVE_SYS_UCRED_H]: Include grp.h before sys/ucred.h.
103046         * lib/readtokens.c (readtoken): Don't leak 64 bytes when reading
103047         an empty input stream.
103049         * lib/readtokens.c: Include <stdbool.h>.
103050         (readtoken): Use `size_t' rather than int/long.
103051         All callers adjusted.
103052         Use `bool' rather than `int' where appropriate.
103053         Use memset rather than an explicit loop.
103054         Use x2nrealloc rather than xrealloc.
103055         Allow the use of `\0' as a delimiter.
103056         (readtokens): Likewise.
103057         * lib/readtokens.h (readtoken, readtokens): Update prototypes.
103059 2004-03-30  Jim Meyering  <jim@meyering.net>
103061         * m4/realloc.m4: Remove file, since now it does no more than
103062         AC_REQUIRE([AC_FUNC_REALLOC]), and that can be done via
103063         the `configure.ac' section of module/realloc.
103064         * m4/malloc.m4: Likewise, but for AC_FUNC_MALLOC.
103066 2004-03-30  Bruno Haible  <bruno@clisp.org>
103068         * lib/getloadavg.c (getloadavg): Don't assume setlocale returns
103069         nonnull.
103071 2004-03-29  Paul Eggert  <eggert@twinsun.com>
103073         Merge changes to getloadavg.c from coreutils and Emacs.
103075         * lib/getloadavg.c [!defined HAVE_SETLOCALE] (setlocale):
103076         Define to an expression, not to the empty string.
103077         Include cloexec.h and xalloc.h.
103078         (getloadavg): Restore LC_NUMERIC locale after setting it temporarily.
103079         Use set_cloexec_flag rather than rolling our own.
103080         * lib/cloexec.c, lib/cloexec.h: New files.
103082 2004-03-29  Paul Eggert  <eggert@twinsun.com>
103084         * m4/cloexec.m4: New file.
103086 2004-03-18  Paul Eggert  <eggert@twinsun.com>
103088         * lib/getopt.h: Sync with libc CVS.
103090 2004-03-18  Paul Eggert  <eggert@twinsun.com>
103091             Bruno Haible  <bruno@clisp.org>
103093         * m4/mbswidth.m4 (gl_MBSWIDTH): Also test whether <wchar.h> declares
103094         mbswidth.
103096 2004-03-18  Paul Eggert  <eggert@twinsun.com>
103097             Bruno Haible  <bruno@clisp.org>
103099         * lib/mbswidth.h: Include <wchar.h> only if
103100         HAVE_DECL_MBSWIDTH_IN_WCHAR_H, not on all platforms that have
103101         <wchar.h>.
103102         * lib/mbswidth.c: Include <stdio.h> and <time.h> before <wchar.h>.
103104 2004-03-09  Paul Eggert  <eggert@twinsun.com>
103106         * lib/argp-parse.c, getopt.c, getopt.h, getopt1.c:
103107         Sync with libc CVS.
103108         * lib/getopt_int.h: New file, also synced from libc.
103110 2004-03-09  Paul Eggert  <eggert@twinsun.com>
103112         * config/srclistvars.sh: Add GNUWWWLICENSES for eggert.
103113         * config/srclist.txt: Sync getopt with libc.  Add getopt_int.h.
103114         Bring back getopt.c, getopt.h, getopt1.c.
103116 2004-03-07  Paul Eggert  <eggert@twinsun.com>
103118         * m4/c-stack.m4 (gl_PREREQ_C_STACK): Renamed from jm_PREREQ_C_STACK.
103119         All uses changed.  Check for sa_sigaction member; this fixes
103120         a bug first reported by Jason Andrade in
103121         <http://mail.gnu.org/archive/html/bug-textutils/2003-03/msg00027.html>.
103123 2004-03-07  Paul Eggert  <eggert@twinsun.com>
103125         * lib/c-stack.c (SIGACTION_WORKS): New macro.  Use it instead of long
103126         '#if' expressions.  Unlike the code it replaces, it does not
103127         depend on (defined _SC_PAGESIZE).  However, it does depend on
103128         HAVE_STRUCT_SIGACTION_SA_SIGACTION; this last change fixes a bug
103129         first reported by Jason Andrade in
103130         <http://mail.gnu.org/archive/html/bug-textutils/2003-03/msg00027.html>.
103132 2004-02-25  Simon Josefsson  <jas@extundo.com>
103134         * m4/strdup.m4 (gl_PREREQ_STRDUP): Check whether strdup is declared.
103136 2004-02-25  Simon Josefsson  <jas@extundo.com>
103138         * lib/strdup.h: New file.
103139         * lib/strdup.c: Include it.
103140         * lib/path-concat.c: Include strdup.h. Drop strdup declaration.
103141         * lib/userspec.c: Include strdup.h. Drop strdup declaration.
103143 2004-02-23  Karl Berry  <karl@gnu.org>
103145         * doc/maintain.texi, doc/standards.texi, doc/make-stds.texi: new files
103146         (from fencepost.gnu.org:/gd/gnuorg).
103148 2004-02-23  Karl Berry  <karl@gnu.org>
103150         * config/srclistvars.sh (GNUORG) [karl]: redefine.
103151         * config/srclist.txt: add maintain/standards documents.
103153 2004-02-18  Bruno Haible  <bruno@clisp.org>
103155         * m4/xsize.m4 (gl_XSIZE): Require AC_C_INLINE.
103156         Reported by Derek Robert Price <derek@ximbiot.com>.
103158 2004-02-16  Karl Berry  <karl@gnu.org>
103160         * config/mkinstalldirs, install-sh: update from automake.
103162 2004-02-06  Karl Berry  <karl@gnu.org>
103164         * m4/po.m4: update from gettext 0.14.1.
103166 2004-02-06  Karl Berry  <karl@gnu.org>
103168         * lib/config.charset: update from gettext 0.14.1.
103170 2004-02-05  Paul Eggert  <eggert@twinsun.com>
103172         Add comments and code, prompted by suggestions from Bruno Haible
103173         for sh-quote.
103174         * lib/quotearg.h (quotearg_alloc): New decl.  Improve the comments
103175         describing the enum quoting_style values.
103176         * lib/quotearg.c (quotearg_alloc): New function.
103177         (quotearg_buffer_restyled): Treat lone { and } as special.
103178         Treat = as special.  Work around bug with older shells
103179         that "see" a '\' that is really the 2nd byte of a multibyte char.
103180         Quote empty string with shell_quoting_style.
103182 2004-02-03  Bruno Haible  <bruno@clisp.org>
103184         * m4/pipe.m4: New file, from GNU gettext.
103186 2004-02-03  Bruno Haible  <bruno@clisp.org>
103188         * lib/pipe.h: New file, from GNU gettext.
103189         * lib/pipe.c: New file, from GNU gettext.
103191 2004-01-27  Bruno Haible  <bruno@clisp.org>
103193         * m4/execute.m4: New file, from GNU gettext.
103195 2004-01-27  Bruno Haible  <bruno@clisp.org>
103197         * lib/execute.h: New file, from GNU gettext.
103198         * lib/execute.c: New file, from GNU gettext.
103199         * lib/w32spawn.h: New file, from GNU gettext.
103201 2004-01-24  Paul Eggert  <eggert@twinsun.com>
103203         Merge from diffutils.
103205         * lib/file-type.c (file_type): Add typed memory objects.
103206         * lib/file-type.h (S_TYPEISTMO): New macro.
103208         * lib/c-stack.h (c_stack_action): Remove argv argument.
103209         * lib/c-stack.c (c_stack_action): Likewise.  All uses changed.
103210         (die): Don't calculate message unless segv_action returns.
103211         (get_stack_location, min_address_from_argv, max_address_from_argv,
103212         volatile stack_base, volatile_stack_size): Remove.
103213         (segv_handler): If ! HAVE_XSI_STACK_OVERFLOW_HEURISTIC, assume
103214         that every segmentation violation is a stack overflow.  (Ouch!)
103215         See Debian bug 136249 (still outstanding) for more info about why
103216         HAVE_XSI_STACK_OVERFLOW_HEURISTIC fails on Linux kernels.
103218 2004-01-24  Paul Eggert  <eggert@twinsun.com>
103220         Exit-status fix from coreutils.
103222         Use exit_failure consistently in place of EXIT_FAILURE,
103223         so that program exit statuses are consistent on failure.
103225         * lib/argmatch.c (ARGMATCH_DIE) [! defined ARGMATCH_DIE]:
103226         Include "exitfail.h", and use exit_failure rather than EXIT_FAILURE.
103227         * lib/argmatch.h: Comment fix to match the above.
103228         * lib/obstack.c (obstack_exit_failure) [!defined _LIBC]:
103229         Now a macro referring to exit_failure, instead of a separate
103230         variable.  Include "exitfail.h" to get it.
103231         * lib/xstrtol.h: Include "exitfail.h".
103232         (STRTOL_FATAL_ERROR): Exit with status exit_failure, not 2.
103234         * lib/long-options.c (parse_long_options): Use prototype
103235         for usage function arg.  Pass it EXIT_SUCCESS rather than 0,
103236         for clarity.
103238 2004-01-21  Jim Meyering  <jim@meyering.net>
103240         * lib/mktime.c (__mktime_internal) [!_LIBC]: Define to mktime_internal
103241         so as not to conflict with a different-sized __mktime_internal
103242         function in GNU libc.
103243         * lib/timegm.c (__mktime_internal) [!_LIBC]: Likewise.
103244         Problem building statically-linked `ls' reported by Michael Brunnbauer.
103246 2004-01-20  Karl Berry  <karl@gnu.org>
103248         * config/config.guess: update from config.
103250         * config/srclistvars.sh: GNUWWWLICENSES for karl.
103252 2004-01-20  Bruno Haible  <bruno@clisp.org>
103254         Safer stack allocation.
103255         * lib/setenv.c: Include allocsa.h.
103256         (alloca): Remove fallback definition.
103257         (freea): Remove macro.
103258         (__add_to_environ) [!_LIBC]: Use allocsa instead of alloca. Use freesa
103259         instead of freea.
103261 2004-01-20  Bruno Haible  <bruno@clisp.org>
103263         * m4/eealloc.m4: New file, from GNU gettext.
103265 2004-01-20  Bruno Haible  <bruno@clisp.org>
103267         * m4/allocsa.m4: New file, from GNU gettext.
103269 2004-01-20  Bruno Haible  <bruno@clisp.org>
103271         * lib/xallocsa.h: New file, from GNU gettext.
103272         * lib/xallocsa.c: New file, from GNU gettext.
103274 2004-01-20  Bruno Haible  <bruno@clisp.org>
103276         * lib/wait-process.c: On Windows, include windows.h. Needed on mingw.
103278 2004-01-20  Bruno Haible  <bruno@clisp.org>
103280         * lib/wait-process.c (wait_subprocess): Add ignore_sigpipe argument.
103281         * lib/wait-process.c (wait_subprocess): Likewise. Handle SIGPIPE
103282         specially.
103284 2004-01-20  Bruno Haible  <bruno@clisp.org>
103286         * lib/wait-process.c (wait_process): Disable the 2003-10-31 waitid()
103287         patch.
103289 2004-01-20  Bruno Haible  <bruno@clisp.org>
103291         * lib/wait-process.c (cleanup_slaves): Use ANSI C declaration.
103293 2004-01-20  Bruno Haible  <bruno@clisp.org>
103295         * lib/eealloc.h: New file.
103297 2004-01-20  Bruno Haible  <bruno@clisp.org>
103299         * lib/binary-io.h: Avoid warnings on Cygwin.
103301 2004-01-20  Bruno Haible  <bruno@clisp.org>
103303         * lib/allocsa.h: New file, from GNU gettext.
103304         * lib/allocsa.c: New file, from GNU gettext.
103306 2004-01-18  Karl Berry  <karl@gnu.org>
103308         * doc/gpl.texi, doc/lgpl.texi: new files.
103310 2004-01-18  Karl Berry  <karl@gnu.org>
103312         * config/srclistvars.sh (GNUWWWLICENSES): new variable.
103313         * config/srclist.txt ({fdl,gpl,lgpl}.text): get from there.
103315 2004-01-15  Paul Eggert  <eggert@twinsun.com>
103317         Merge from coreutils.
103319         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Check for uintptr_t.
103320         * m4/posixver.m4 (gl_POSIXVER): Require gl_DEFAULT_POSIX2_VERSION.
103321         (gl_DEFAULT_POSIX2_VERSION): Move
103322         the documentation from 'configure' into 'config.hin',
103323         so that 'configure --help' isn't burdened by it and
103324         we don't have to worry about its formatting there.
103325         Reword the documentation so that it's more succinct
103326         and can be run together into a single paragraph.
103327         * m4/same.m4 (gl_SAME): Check for pathconf.
103329 2004-01-15  Paul Eggert  <eggert@twinsun.com>
103331         Merge from coreutils.
103333         * lib/posixver.c: Include posixver.h.
103335         * lib/same.c: Include <stdbool.h>, <limits.h>.
103336         (_POSIX_NAME_MAX): Define if not defined.
103337         (MIN): New macro.
103338         (same_name): If file names are silently truncated, report
103339         that the file names are the same if they are the same after
103340         the silent truncation.
103342         * lib/xstrtod.h (xstrtod): Accept an extra arg, specifying the
103343         conversion function.
103344         * lib/xstrtod.c (xstrtod): Likewise.  All callers changed to
103345         include c-strtod.h and use c_strtod.  Don't include stdlib.h; no
103346         longer needed.
103348 2004-01-15  Jim Meyering  <jim@meyering.net>
103350         Merge from coreutils.
103352         * m4/clock_time.m4 (gl_CLOCK_TIME): Don't set LIB_CLOCK_GETTIME
103353         if no library is required.
103354         * m4/jm-macros.m4: Don't require UTILS_SYS_OPEN_MAX.
103355         * m4/jm-macros.m4 (jm_MACROS): Require gl_FUNC_FREE.
103356         * m4/jm-macros.m4 (jm_MACROS): Require autoconf-2.58.
103357         (AC_LANG_SOURCE): Remove definition, now that we require autoconf-2.58.
103358         * m4/jm-macros.m4 (jm_MACROS): Don't require AC_FUNC_FTW.
103359         * m4/lib-check.m4 (jm_LIB_CHECK): Do not set LIB_CRYPT to the
103360         value, $ac_cv_search_crypt, if it's "none required".
103361         * m4/posixver.m4 (gl_DEFAULT_POSIX2_VERSION): New macro.
103362         * m4/prereq.m4 (jm_PREREQ): Require AC_FUNC_GETLOADAVG,
103363         not gl_FUNC_GETLOADAVG.
103364         * m4/prereq.m4 (jm_PREREQ): Require gl_READTOKENS, gl_MD5, gl_MAKEPATH,
103365         gl_LONG_OPTIONS, and gl_IDCACHE, gl_GETUGROUPS.
103367 2004-01-15  Jim Meyering  <jim@meyering.net>
103369         Merge from coreutils.
103371         * lib/md5.h (rol) [__GNUC__ && __i386__]: Don't use `asm' code.  These
103372         days, gcc-3.x does better all by itself.  Patch from Dean Gaudet:
103373         http://mail.gnu.org/archive/html/bug-coreutils/2003-11/msg00144.html
103375         * lib/posixver.c (DEFAULT_POSIX2_VERSION): Use definition of new,
103376         optional configure-time default.
103378         * lib/version-etc.c (version_etc_copyright): Update copyright date.
103380         * lib/xreadlink.c (xreadlink): Correct outdated comment.
103382 2004-01-15  Alexandre Duret-Lutz  <adl@gnu.org>
103384         Merge from coreutils.
103386         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Do not set LIB_NANOSLEEP to the
103387         value, $ac_cv_search_nanosleep, if it's "none required".
103389 2004-01-14  Paul Eggert  <eggert@twinsun.com>
103391         * lib/fnmatch_loop.c (ALLOCA_LIMIT): Remove macro, which collided
103392         with like-named macro in fnmatch.c.
103393         (EXT): Use an internal constant instead.
103395         Merge fnmatch patches from glibc.
103396         * lib/fnmatch.c (mbsinit): Remove define.
103397         Add libc_hidden_ver (__fnmatch, fnmatch).
103398         * lib/fnmatch_loop.c (FCT): Cast to int32_t and UCHAR when appropriate.
103399         Adjust to renaming of collseq_table_lookup to __collseq_table_lookup.
103401 2004-01-14  Karl Berry  <karl@gnu.org>
103403         * config/install-sh: update from automake.
103405 2004-01-13  Karl Berry  <karl@gnu.org>
103407         * config/install-sh: update from automake.
103409 2004-01-09  Karl Berry  <karl@gnu.org>
103411         * config/install-sh: update from automake.
103413 2004-01-05  Karl Berry  <karl@gnu.org>
103415         * config/config.{sub,guess}: update from config.
103417 2003-12-31  Karl Berry  <karl@gnu.org>
103419         * config/depcomp: update from automake.
103421 2003-12-14  Karl Berry  <karl@gnu.org>
103423         * lib/config.charset: update from gettext-runtime.
103425 2003-12-03  Paul Eggert  <eggert@twinsun.com>
103427         * lib/getgroups.c (getgroups): xmalloc takes one argument, not two.
103428         Bug reported by Alfred M. Szmidt.
103430 2003-12-03  Bruno Haible  <bruno@clisp.org>
103432         * m4/gettext.m4: Upgrade from gettext-0.13.
103433         * m4/po.m4: Upgrade from gettext-0.13.
103434         * m4/size_max.m4 (gl_SIZE_MAX): Don't use the _ONCE macros here.
103435         * m4/intmax.m4: New file, from gettext-0.13.
103436         * m4/printf-posix.m4: New file, from gettext-0.13.
103438 2003-11-29  Karl Berry  <karl@gnu.org>
103440         * lib/argp-{help.c,parse.c,namefrob.h}, argp.h: update from libc.
103442 2003-11-25  Paul Eggert  <eggert@twinsun.com>
103443             Bruno Haible  <bruno@clisp.org>
103445         * lib/printf-parse.h: Don't include sys/types.h.
103446         (ARG_NONE): New macro.
103447         (char_directive): Change type of *arg_index fields to size_t.
103448         * lib/printf-parse.c: Don't include sys/types.h.
103449         (SSIZE_MAX): Remove macro.
103450         (PRINTF_PARSE): Change the type of the arg_index variables to size_t.
103451         Remove unnecessary overflow check.
103452         * lib/vasnprintf.c (VASNPRINTF): Update for type change of *arg_index
103453         fields.
103455 2003-11-25  Bruno Haible  <bruno@clisp.org>
103457         * modules/vasnprintf (Files): Remove m4/ssize_t.m4.
103459 2003-11-25  Bruno Haible  <bruno@clisp.org>
103461         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Don't require
103462         gt_TYPE_SSIZE_T.
103464 2003-11-24  Paul Eggert  <eggert@twinsun.com>
103466         * modules/alloca: Remove dependency on xalloc.
103468 2003-11-24  Paul Eggert  <eggert@twinsun.com>
103470         * lib/alloca.c: Remove dependency on xalloc module.
103471         (xalloc_die): Remove.
103472         (memory_full) [!defined emacs]: New macro.
103473         [!defined emacs]: Don't include xalloc.h.
103474         (alloca): Invoke memory_full, not xalloc_die, if malloc fails or
103475         address arithmetic overflows.  Change datatypes a bit to avoid
103476         unnecessary casts.
103478 2003-11-22  Jim Meyering  <jim@meyering.net>
103480         * lib/xmalloc.c (x2nrealloc_inline): Fix typos in comments:
103481         s/size/size_t/.
103483 2003-11-21  Karl Berry  <karl@gnu.org>
103485         * config/config.{sub,guess}: update from config.
103487 2003-11-18  Karl Berry  <karl@gnu.org>
103489         * config/config.{sub,guess}: update from config.
103491         * config/(printf-{parse,args}.[ch]): sync broken, sigh.
103493 2003-11-17  Paul Eggert  <eggert@twinsun.com>
103495         * README: Mention that S+T cannot overflow if S is the size of
103496         an existing object and T is sufficiently small.
103498 2003-11-17  Jim Meyering  <jim@meyering.net>
103500         On systems without utime and without a utimes function capable of
103501         dealing with a NULL struct utimbuf* argument, this utime replacement
103502         could -- in unusual circumstances -- leak a file descriptor.
103503         * lib/utime.c: Include <unistd.h> and <errno.h>.
103504         (utime_null): Be sure to close `fd' and to preserve errno.
103505         Reported by Geoff Collyer via Arnold Robbins.
103507 2003-11-17  Bruno Haible  <bruno@clisp.org>
103509         * modules/vasnprintf (Files): Add m4/ssize_t.m4.
103510         (Depends-on): Add xsize.
103512 2003-11-17  Bruno Haible  <bruno@clisp.org>
103514         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Require gt_TYPE_SSIZE_T.
103516 2003-11-17  Bruno Haible  <bruno@clisp.org>
103518         * lib/vasnprintf.c (alloca): Remove fallback definition.
103519         (freea): Remove definition.
103520         (VASNPRINTF): Use alloca only for small sizes, say <= 4000 bytes.
103521         Reported by Paul Eggert.
103523 2003-11-16  Paul Eggert  <eggert@twinsun.com>
103524             Bruno Haible  <bruno@clisp.org>
103526         Protect against address arithmetic overflow.
103527         * lib/printf-args.h: Include stddef.h.
103528         (arguments): Change type of field 'count' to size_t.
103529         * lib/printf-args.c (printf_fetchargs): Use size_t instead of
103530         'unsigned int' where appropriate.
103531         * lib/printf-parse.h: Include sys/types.h.
103532         (char_directive): Change type of *arg_index fields to ssize_t.
103533         (char_directives): Change type of fields 'count', max_*_length to
103534         size_t.
103535         * lib/printf-parse.c: Include sys/types.h and xsize.h.
103536         (SSIZE_MAX): Define fallback value.
103537         (PRINTF_PARSE): Use size_t instead of 'unsigned int' and ssize_t
103538         instead of 'int' where appropriate. Check a_allocated, d_allocated
103539         against overflow. Reject %m$ argument numbers > SSIZE_MAX + 1.
103540         * lib/vasnprintf.c: Include xsize.h.
103541         (VASNPRINTF): Use size_t instead of 'unsigned int' where appropriate.
103542         Check alloca, malloc, realloc, ENSURE_ALLOCATION arguments against
103543         overflow. Avoid wraparound when converting a width or precision from
103544         decimal to binary.
103546 2003-11-16  Bruno Haible  <bruno@clisp.org>
103548         Update from GNU gettext.
103549         * lib/printf-parse.c: Generalize to it can be compiled for wide
103550         strings.
103551         (PRINTF_PARSE, CHAR_T, DIRECTIVE, DIRECTIVES): New macros.
103552         * lib/vasnprintf.c: Generalize to it can be compiled for wide strings.
103553         (VASNPRINTF, CHAR_T, DIRECTIVE, DIRECTIVES, PRINTF_PARSE, USE_SNPRINTF,
103554         SNPRINTF): New macros.
103555         Don't include <alloca.h> if the file is used inside libintl.
103556         (local_wcslen): New function, for Solaris 2.5.1.
103557         (VASNPRINTF): Use it instead of wcslen.
103559 2003-11-16  Bruno Haible  <bruno@clisp.org>
103561         * lib/xsize.h (xmax): New function.
103562         (xsum, xsum3, xsum4): Declare as "pure" functions.
103564 2003-11-12  Paul Eggert  <eggert@twinsun.com>
103566         * modules/xalloc (Files): Undo latest change, since xalloc.h
103567         no longer needs SIZE_MAX or PTRDIFF_MAX.
103569 2003-11-12  Paul Eggert  <eggert@twinsun.com>
103571         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Do not require gl_SIZE_MAX or
103572         gl_PTRDIFF_MAX.
103574 2003-11-12  Paul Eggert  <eggert@twinsun.com>
103576         * lib/xstrtol.c (__xstrtol): Remove "break" immediately after
103577         "return", to pacify some unknown compiler.  Problem reported
103578         by Joerg Schilling.
103580 2003-11-12  Paul Eggert  <eggert@twinsun.com>
103582         * lib/xalloc.h: Do not include <limits.h> or <stdint.h>.
103583         (xalloc_oversized): Use sizeof (ptrdiff_t) and sizeof (size_t) for
103584         the heuristic, rather than PTRDIFF_MAX and SIZE_MAX.  This
103585         heuristic is just as accurate as far as we know, and it removes a
103586         dependency on size_max.m4 and ptrdiff_max.m4.
103588 2003-11-11  Bruno Haible  <bruno@clisp.org>
103590         * modules/xsize (Files): Add m4/size_max.m4.
103591         * modules/xalloc (Files): Add m4/size_max.m4, m4/ptrdiff_max.m4.
103593 2003-11-11  Bruno Haible  <bruno@clisp.org>
103595         * m4/size_max.m4: New file.
103596         * m4/ptrdiff_max.m4: New file.
103597         * m4/xsize,m4 (gl_XSIZE): Require gl_SIZE_MAX.
103598         * m4/xalloc.m4 (gl_PREREQ_XALLOC): New macro.
103599         (gl_XALLOC): Invoke it.
103601 2003-11-11  Bruno Haible  <bruno@clisp.org>
103603         * lib/xsize.h (SIZE_MAX): Remove fallback definition.
103604         * lib/xalloc.h: Include limits.h. Assume SIZE_MAX and PTRDIFF_MAX are
103605         defined.
103607 2003-11-10  Paul Eggert  <eggert@twinsun.com>
103609         * lib/xalloc.h (xalloc_oversized): [! (defined PTRDIFF_MAX &&
103610         PTRDIFF_MAX < SIZE_MAX)]: Fix off-by-one error that would have
103611         rejected some allocations of exactly SIZE_MAX - 2 bytes.
103612         From Bruno Haible.
103613         [defined PTRDIFF_MAX && PTRDIFF_MAX < SIZE_MAX]: Use SIZE_MAX,
103614         not (size_t) -1, since it's defined here.
103616 2003-11-09  Karl Berry  <karl@gnu.org>
103618         * config/mkinstalldirs, depcomp, mdate-sh: update from automake.
103620 2003-11-06  Paul Eggert  <eggert@twinsun.com>
103622         * lib/xalloc.h [HAVE_STDINT_H]: Include <stdint.h>.
103623         (xalloc_oversized) [! (PTRDIFF_MAX < SIZE_MAX)]:
103624         Reject sizes of exactly SIZE_MAX bytes.
103625         * lib/xreadlink.c: Include "xalloc.h" before checking whether SIZE_MAX
103626         is defined, since "xalloc.h" now defines SIZE_MAX on modern hosts.
103628 2003-11-05  Bruno Haible  <bruno@clisp.org>
103630         * lib/xsize.h: Include limits.h, to avoid a possible collision with
103631         SIZE_MAX defined in <limits.h> on Solaris.
103633 2003-11-04  Jim Meyering  <jim@meyering.net>
103635         * modules/sysexits: Use the `$(VAR)' notation for AC_SUBST'd
103636         variable names, rather than @VAR@.
103637         * modules/poll: Likewise.
103639 2003-11-04  Bruno Haible  <bruno@clisp.org>
103641         * modules/xsize: New file.
103642         * modules/linebreak: Depend on xsize.
103643         * MODULES.html.sh (func_all_modules): Add xsize.
103645 2003-11-04  Bruno Haible  <bruno@clisp.org>
103647         * m4/xsize.m4: New file.
103649 2003-11-04  Bruno Haible  <bruno@clisp.org>
103651         * lib/xsize.h: New file.
103652         * lib/linebreak.c: Include xsize.h.
103653         (mbs_possible_linebreaks, mbs_width_linebreaks): Check malloc()
103654         argument for overflow.
103655         Suggested by Paul Eggert.
103657 2003-11-03  Karl Berry  <karl@gnu.org>
103659         * config/config.{guess,sub}: update from config.
103661 2003-11-03  Jim Meyering  <jim@meyering.net>
103663         * modules/userspec (lib_SOURCES): Add userspec.h.
103664         (Include): Add "userspec.h".
103665         Improve description.
103667 2003-11-03  Jim Meyering  <jim@meyering.net>
103669         * lib/userspec.c: Include "userspec.h".
103670         * lib/userspec.h: New file.
103672 2003-11-03  Bruno Haible  <bruno@clisp.org>
103674         * m4/wait-process.m4 (gl_WAIT_PROCESS): Also check for waitid.
103676 2003-11-03  Bruno Haible  <bruno@clisp.org>
103678         * lib/wait-process.c (wait_process): Use waitid with WNOWAIT if
103679         available, to avoid (extremely rare) race condition.
103680         Suggested by Paul Eggert.
103682 2003-11-02  Karl Berry  <karl@gnu.org>
103684         * config/srclist.txt (vasprintf.c): sync broken, sigh.
103686 2003-10-31  Paul Eggert  <eggert@twinsun.com>
103688         * lib/mountlist.h (struct mount_entry.me_type_malloced): New member.
103689         * lib/mountlist.c (SIZE_MAX): Define if not defined already.
103690         (read_filesystem_list): Set and use me_type_malloced.
103691         Use "sizeof *me" rather than "sizeof (struct mount_entry)" (or
103692         whatever the type happens to be), for brevity and consistency.
103693         Check for size calculation overflow on Alphas running OSF/1.
103695 2003-10-31  Jim Meyering  <jim@meyering.net>
103697         * lib/hash.c: Include "xalloc.h" for use of xalloc_oversized.
103699         * lib/linebuffer.c: Include <string.h> for declaration of memset.
103701 2003-10-30  Paul Eggert  <eggert@twinsun.com>
103702             Bruno Haible  <bruno@clisp.org>
103704         * lib/vasprintf.c: Include <limits.h>, <stdlib.h>.
103705         (vasprintf): Fail if the resulting length doesn't fit in an 'int'.
103707 2003-10-30  Paul Eggert  <eggert@cs.ucla.edu>
103709         * m4/host-os.m4 (UTILS_HOST_OS): Change netbsd*-gnu pattern back to
103710         netbsd*-gnu*.  Suggested by Robert Millan.
103712 2003-10-29  Paul Eggert  <eggert@twinsun.com>
103714         * modules/group-member: Depend on stdbool.
103716 2003-10-29  Paul Eggert  <eggert@twinsun.com>
103718         * m4/xalloc.m4 (gl_XALLOC): Undo previous change.
103720 2003-10-29  Paul Eggert  <eggert@twinsun.com>
103722         * m4/host-os.m4 (UTILS_HOST_OS): Resurrect netbsd*-gnu.  Add comments
103723         to it, and to knetbsd*-gnu and kfreebsd*-gnu.  Remove the '*' from
103724         after the 'gnu' in these cases.  This fixes some bugs in the
103725         previous change, and is based on suggestions by Robert Millan.
103727 2003-10-29  Paul Eggert  <eggert@twinsun.com>
103729         * lib/xalloc.h (xalloc_oversized): Now a macro, not a function,
103730         so that it works even if SIZE_MAX < N.  Do not include <stdbool.h>;
103731         no longer needed.
103732         * lib/quotearg.c (quotearg_n_options): Use it.
103733         * lib/group-member.c: Include <stdbool.h>.
103734         (free_group_info): Arg is now const *; don't free arg.
103735         (get_group_info): Now returns bool and accepts struct group_info *,
103736         rather than returning a malloc'ed struct group_info *.
103737         All uses changed.  Check for overflow in internal size calculation.
103739         * lib/getusershell.c (readname): Simplify the code by using x2nrealloc
103740         rather than xmalloc/xrealloc.
103741         * lib/linebuffer.c (initbuffer, readlinebuffer): Simplify the code by
103742         using x2realloc rather than xmalloc/xrealloc.  Also, fix a C
103743         conformance bug: the old code used a pointer after freeing the
103744         storage that it addressed.
103745         * lib/hash.c (hash_initialize): Simplify the code by using
103746         xalloc_oversized rather than doing it by hand.
103747         * lib/getgroups.c (getgroups): Don't use xrealloc, since we don't need
103748         the buffer preserved.  Use free and xmalloc instead.
103749         * lib/quotearg.c (quotearg_n_options): Likewise.
103750         Use a simpler test for size overflow.  Don't use xalloc_oversized
103751         because unsigned int might be wider than size_t (!); this suggests
103752         that we should switch from unsigned int to size_t for slot numbers.
103754 2003-10-28  Paul Eggert  <eggert@twinsun.com>
103756         * m4/host-os.m4 (UTILS_HOST_OS): Identify GNU/KFreeBSD and
103757         GNU/KNetBSD.  These implementations use glibc atop the FreeBSD and
103758         NetBSD kernels.  Requested by Richard Stallman.
103760 2003-10-27  Paul Eggert  <eggert@twinsun.com>
103762         * lib/exclude.c (new_exclude): Use xzalloc rather than xmalloc
103763         to allocate the returned structure.  Do not allocate a subarray,
103764         as x2nrealloc will do that.
103765         (add_exclude): Use x2nrealloc to reallocate ex->exclude,
103766         instead of xnrealloc.
103767         (add_exclude_file): Use x2realloc instead of malloc + xnrealloc.
103769 2003-10-27  Bruno Haible  <bruno@clisp.org>
103771         * lib/stdbool_.h: Better support for BeOS.
103773 2003-10-26  Paul Eggert  <eggert@twinsun.com>
103775         * m4/xalloc.m4 (gl_XALLOC): Requore AC_C_INLINE, since xalloc.h
103776         now uses inline.
103778 2003-10-26  Paul Eggert  <eggert@twinsun.com>
103780         * lib/xalloc.h (xalloc_oversized): New static inline function, for
103781         callers that want to do their own size-overflow checking.  Include
103782         <stdbool.h>, since xalloc_oversized returns bool.
103783         * lib/xalloc.c (array_size_overflow): Remove.  All callers changed
103784         to use xalloc_oversized.
103786         Add two functions x2realloc, x2nrealloc, for programs that grow
103787         arrays dynamically by doubling their sizes.
103788         * lib/xalloc.h (x2realloc, x2nrealloc): New decls.
103789         * lib/xmalloc.c (x2nrealloc_inline, x2nrealloc, x2realloc):
103790         New functions.
103792         Port to C99 semantics for 'inline' of external functions.
103793         Bug reported by Bruno Haible.
103794         * lib/xmalloc.c (xnmalloc_inline): New static inline function,
103795         with the old contents of xnmalloc.
103796         (xnmalloc, xmalloc): Use it.
103797         (xnrealloc_inline): New static inline function,
103798         with the old contents of xnrealloc.
103799         (xnrealloc, xrealloc): Use it.
103801         * lib/alloc.c (alloca): xmalloc cannot return NULL, so don't test for
103802         that.
103804 2003-10-26  Karl Berry  <karl@gnu.org>
103806         * config/srclist.txt (COPYING.DOC): no longer available from
103807         /gd/gnuorg; don't know where the ultimate source is.
103809 2003-10-25  Paul Eggert  <eggert@twinsun.com>
103811         Fix several address-calculation bugs in the hash modules,
103812         plus some minor code cleanup.
103814         * lib/hash.h: Include <stdbool.h>, for bool.
103815         * lib/hash.c: Don't include <stdbool.h>, since hash.h does it now.
103816         * lib/hash.h (Hash_hasher, hash_get_n_buckets, hash_get_n_buckets_used,
103817         hash_get_n_entries, hash_get_max_bucket_length,
103818         hash_get_entries, hash_do_for_each, hash_string, hash_initialize,
103819         hash_rehash): Use size_t rather than unsigned.
103820         * lib/hash.c (struct hash_table, hash_get_n_buckets,
103821         hash_get_n_buckets_used, hash_get_n_entries,
103822         hash_get_max_bucket_length, hash_table_ok, hash_print_statistics,
103823         hash_get_entries, hash_do_for_each, hash_string, is_prime,
103824         next_prime, hash_initialize, hash_rehash, hash_delete, hash_print):
103825         Likewise.
103826         (SIZE_MAX): Define if not defined.
103827         (hash_get_max_bucket_length, hash_table_ok, hash_lookup,
103828         hash_get_first, hash_get_next, hash_get_entries, hash_do_for_each,
103829         hash_print):
103830         Use const * when possible.
103831         (hash_string): Use (unsigned char) *P rather than *(unsigned char *) P.
103832         (check_tuning): Fix bug: if tuning parameters were very close to
103833         0 or 1, rounding errors could have caused subscript violations.
103834         (hash_initialize, allocate_entry, hash_print): Remove unnecessary cast.
103835         (hash_initialize): Add 'fail:' label
103836         to free table and return NULL, and use it to simplify code.
103837         Use calloc rather than clearing the storage ourself.
103838         (hash_initialize, hash_rehash): Check for arithmetic overflow in
103839         buffer size calculations.
103840         * lib/hash-pjw.h (hash_pjw): Use size_t, not unsigned.
103841         Include <stddef.h>, for size_t.
103842         * lib/hash-pjw.c (hash_pjw): Likewise.
103843         Switch to method described by Bruno Haible.
103844         Include <limits.h>, for CHAR_BIT.
103845         (SIZE_BITS): New macro.
103847 2003-10-23  Paul Eggert  <eggert@twinsun.com>
103849         * m4/getline.m4 (AM_FUNC_GETLINE):
103850         Don't include getndelim2.o twice into LIBOBJS; this breaks on some
103851         hosts.  Problem reported by Derek Robert Price in
103852         <http://mail.gnu.org/archive/html/bug-gnulib/2003-10/msg00092.html>.
103853         This patch can be withdrawn after Autoconf 2.58 is required for gnulib.
103854         * m4/getndelim2.m4 (gl_GETNDELIM2): Likewise.
103856 2003-10-21  Paul Eggert  <eggert@twinsun.com>
103858         * lib/getndelim2.c (getndelim2): When size calculation overflows,
103859         ceiling the allocation at NMAX bytes rather than silently
103860         discarding input bytes before NMAX is reached.  This makes
103861         a difference only if NMAX exceeds SIZE_MAX / 2.
103863         * lib/obstack.c: Merge from glibc.
103864         [defined _LIBC]: Include <obstack.h>, not "obstack.h".
103865         Add libc_hidden_def (_obstack_newchunk).
103866         (_obstack_free) [! defined _LIBC]: Remove.
103867         [defined _LIBC]: Make a strong alias from obstack_free, rather than
103868         a clone of the function body.
103869         (fputs) [defined _LIBC && defined USE_IN_LIBIO]: Remove.
103870         [defined _LIBC && !defined USE_IN_LIBIO]: Include <libio/iolibio.h>.
103872         * lib/obstack.h: Indenting cleanup, to make it easier to merge with
103873         glibc.
103874         (obstack_grow, obstack_grow0): Remove unnecessary parentheses around
103875         arg to memcpy.
103877         * lib/obstack.h (obstack_1grow_fast): Properly parenthesize arg.
103878         (obstack_ptr_grow_fast, obstack_int_grow_fast):
103879         Don't use lvalue casts, as GCC plans to remove support for them
103880         in GCC 3.5.  Reported by Joseph S. Myers.  This bug
103881         was also present in the non-GCC version, indicating that this
103882         code had always been buggy and had never been widely used.
103883         (obstack_1grow, obstack_ptr_grow, obstack_int_grow, obstack_blank):
103884         Use the fast variant of each macro, rather than copying the
103885         definiens of the fast variant; that way, we'll be more likely to
103886         catch future bugs in the fast variants.
103888 2003-10-20  Bruno Haible  <bruno@clisp.org>
103890         * modules/wait-process: New file.
103891         * MODULES.html.sh (func_all_modules): Add wait-process.
103893 2003-10-20  Bruno Haible  <bruno@clisp.org>
103895         * m4/wait-process.m4: New file.
103897 2003-10-20  Bruno Haible  <bruno@clisp.org>
103899         * lib/wait-process.h: New file, from GNU gettext.
103900         * lib/wait-process.c: New file, from GNU gettext.
103902 2003-10-19  Jim Meyering  <jim@meyering.net>
103904         * lib/vasnprintf.c (vasnprintf): Work around losing snprintf on
103905         HPUX 10.20.
103907 2003-10-18  Karl Berry  <karl@gnu.org>
103909         * config/config.guess: update from config.
103911 2003-10-16  Paul Eggert  <eggert@twinsun.com>
103913         * lib/getgroups.c: Include <errno.h>, <stdlib.h>.
103914         (getgroups): First arg is int, not size_t.
103915         Don't let 'free' mangle errno.
103917 2003-10-16  Paul Eggert  <eggert@twinsun.com>
103919         * README: Mention that gnulib assumes that (foo *) NULL + 0 == NULL.
103921 2003-10-16  Karl Berry  <karl@gnu.org>
103923         * config/config.{guess,sub}: update from config.
103925 2003-10-16  Jim Meyering  <jim@meyering.net>
103927         * lib/xmalloc.c: Include <string.h>, for declarations of memset and
103928         memcpy.
103930 2003-10-15  Paul Eggert  <eggert@twinsun.com>
103932         * lib/exclude.c: Do not include <inttypes.h> or <stdint.h>.
103933         (SIZE_MAX): Remove.
103934         (new_exclude, add_exclude_file): Initial size no longer needs to
103935         be a power of 2.
103936         (add_exclude, add_exclude_file): Use xnrealloc instead of rolling
103937         our own address arithmetic overflow checking.
103939         * lib/fnmatch.c (SIZE_MAX): Define if standard headers don't.
103940         (fnmatch): Do not alloca more than 2000 wide characters;
103941         instead, use malloc for large buffers.
103942         Check for address arithmetic overflow, and return -1
103943         with errno set to ENOMEM in that case.
103944         * lib/fnmatch_loop.c (ALLOCA_LIMIT): New macro.
103945         (NEW_PATTERN): Do not alloca more than 8000 bytes;
103946         instead, return -1.  Check for address arithmetic overflow.
103948 2003-10-14  Paul Eggert  <eggert@twinsun.com>
103950         Handle invalid suffixes and overflow independently, so that
103951         callers can treat them independently as needed.  Fix some bugs in
103952         suffix handling, e.g., "100k@" was not diagnosed as an invalid
103953         suffix for a human-readable blocksize.  The major caller-visible
103954         change is the addition of a new
103955         LONGINT_INVALID_SUFFIX_CHAR_WITH_OVERFLOW enum value, indicating
103956         that both overflow and suffix chars were found.
103958         * lib/human.c (humblock): Don't check separately for invalid suffix
103959         char; that is xstrtoumax's job (now that its bug is fixed).
103960         * lib/xstrtoimax.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM) [defined
103961         INTMAX_MAX]: New macros.
103962         * lib/xstrtol.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM, TYPE_MINIMUM,
103963         TYPE_MAXIMUM): New macros.
103964         (bkm_scale, bkm_scale_by_power): Return strtol_error, not int.
103965         (bkm_scale, bkm_scale_by_power, __xstrtol): Return maximal values
103966         if overflow occurs, as it's what __strtol does and it's more useful
103967         in practice.
103968         (__xstrtol): If __strtol reports some error other than ERANGE,
103969         reflect it to the caller as LONGINT_INVALID.  If it reports
103970         ERANGE, continue the rest of parsing, and report LONGINT_OVERFLOW
103971         | LONGINT_INVALID_SUFFIX_CHAR if both errors occur.
103972         * lib/xstrtol.h (LONGINT_INVALID_SUFFIX_CHAR_WITH_OVERFLOW): New enum
103973         value.
103974         (_STRTOL_ERROR): Handle it.  Abort when given unknown error codes.
103975         * lib/xstrtoul.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM): New macros.
103976         * lib/xstrtoumax.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM)
103977         [defined UINTMAX_MAX]: New macros.
103979 2003-10-14  Bruno Haible  <bruno@clisp.org>
103981         * modules/fatal-signal: Add m4/sig_atomic_t.m4 to file list.
103983 2003-10-14  Bruno Haible  <bruno@clisp.org>
103985         * m4/sig_atomic_t: New file, from GNU gettext.
103986         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Require gt_TYPE_SIG_ATOMIC_T.
103988 2003-10-14  Bruno Haible  <bruno@clisp.org>
103990         * lib/fatal-signal.h: Improved comments. Suggested by Paul Eggert.
103991         * lib/fatal-signal.c: Use sig_atomic_t. Suggested by Paul Eggert.
103992         Also use volatile where needed.
103994 2003-10-12  Paul Eggert  <eggert@twinsun.com>
103996         * modules/xalloc: Do not depend on 'exit'.  Depend on 'stdbool'.
103997         Change maintainer from Bruno Haible to 'all'.
103999 2003-10-12  Paul Eggert  <eggert@twinsun.com>
104001         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Require AC_C_INLINE.
104003 2003-10-12  Paul Eggert  <eggert@twinsun.com>
104005         * lib/xalloc.h (xnmalloc, xzalloc, xnrealloc, xclone): New decls.
104006         (XMALLOC, XCALLOC, XREALLOC, XFREE, CCLONE, CLONE): Deprecate,
104007         and define in terms of the other primitives.
104008         * lib/xmalloc.c: Include stdbool.h; do not include exit.h.
104009         (SIZE_MAX): Define if not already defined.
104010         (array_size_overflow): New function.
104011         (xalloc_die): Abort instead of exiting if 'error' returns.
104012         (xnmalloc, xnrealloc, xzalloc, xclone): New functions.
104013         (xmalloc, xrealloc): Use them.
104014         (xcalloc): Check for address arithmetic overflow.
104015         * lib/xstrdup.c (xstrdup): Use xclone, since memcpy should be
104016         a bit faster than strcpy.
104018 2003-10-10  Simon Josefsson  <jas@extundo.com>
104020         * modules/argp (Depends-on): Add restrict and strcase.
104022 2003-10-10  Simon Josefsson  <jas@extundo.com>
104024         * m4/argp.m4: Add AC_C_INLINE.
104026 2003-10-08  Paul Eggert  <eggert@twinsun.com>
104028         Merge getpass from libc, plus a few fixes.
104030         * lib/getpass.c (HAVE_STDIO_EXT) [_LIBC]: Define to 1.
104031         Include <stdbool.h>.
104032         Include <stdio_ext.h> if HAVE_STDIO_H, otherwise define
104033         __fsetlocking to empty.
104034         [_LIBC]: Do not include "getline.h" or "unlocked-io.h", but
104035         do include <bits/libc-lock.h>.
104036         Do not include <fcntl.h>; not needed.
104037         [_LIBC]: Include <wchar.h>.
104038         (NOTCANCEL_MODE): New macro.
104039         (flockfile, funlockfile) [_LIBC]: New macros.
104040         (__libc_cleanup_push, __libc_cleanup_pop, __getline, __tcgetattr)
104041         [!_LIBC]: New macros.
104042         (call_fclose): New function.
104043         (getpass): Use it.  Save tty stream separately; this simplifies the
104044         code and makes it more reliable if stdin happens to equal stdout.
104045         Invoke __fsetlocking on tty.
104046         Handle thread cancellation if needed.
104047         Namespace cleanup (use __tcgetattr, __getline).
104048         Use bool for Booleans.
104049         [USE_IN_LIBIO]: Handle wide streams.
104050         [!_LIBC]: Unconditionally do the fseek, since we don't know what
104051         stream might go where.
104053         * lib/unlocked-io.h: Include <stdio.h>, so that the caller
104054         doesn't have to include <stdio.h> before us.
104055         (clearerr_unlocked, feof_unlocked, ferror_unlocked,
104056         fflush_unlocked, fgets_unlocked, fputc_unlocked, fputs_unlocked,
104057         fread_unlocked, fwrite_unlocked, getc_unlocked, getchar_unlocked,
104058         putc_unlocked, putchar_unlocked): Define to the unlocked counterpart
104059         if not declared, so that we can use getpass.c code from libc without
104060         rewriting it.
104061         (flockfile, ftrylockfile, funlockfile): New macros.
104063 2003-10-08  Paul Eggert  <eggert@twinsun.com>
104065         * modules/getpass: Depend on stdbool.
104067 2003-10-08  Paul Eggert  <eggert@twinsun.com>
104069         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for stdio_ext.h.
104071 2003-10-07  Karl Berry  <karl@gnu.org>
104073         * config/config.{guess,sub}: update from config.
104075 2003-10-06  Jim Meyering  <jim@meyering.net>
104076             Bruno Haible  <bruno@clisp.org>
104078         This lets translators provide better translations for the
104079         "Written by ..." part of --version output.
104080         * lib/version-etc.h: Include stdarg.h.
104081         (version_etc_copyright): Declare as readonly.
104082         (version_etc): Make this function variadic with a NULL-terminated list
104083         of author name strings.
104084         (version_etc_va): New declaration.
104085         * lib/version-etc.c: Include stdarg.h, stdlib.h.
104086         (version_etc_copyright): Declare as readonly.
104087         (version_etc_va): New function. Provide a different translatable string
104088         for each possible number of authors < 10. Abbreviate when there are 10
104089         authors or more.
104090         (version_etc): Make this function variadic. Call version_etc_va.
104091         Suggestion from Gary V. Vaughan.
104093         * lib/long-options.h (parse_long_options): Change prototype: the
104094         authors string is moved to the end and becomes variadic.
104095         * lib/long-options.c: Include stdarg.h.
104096         (parse_long_options): Make this function variadic, too.
104097         Call version_etc_va, not version_etc.
104099 2003-10-06  Bruno Haible  <bruno@clisp.org>
104101         * modules/version-etc-2: Remove file.
104102         * MODULES.html.sh (func_all_modules): Remove version-etc-2.
104104 2003-10-06  Bruno Haible  <bruno@clisp.org>
104106         * modules/fatal-signal: New file.
104107         * MODULES.html.sh (func_all_modules): Add fatal-signal.
104109 2003-10-06  Bruno Haible  <bruno@clisp.org>
104111         * m4/fatal-signal.m4: New file.
104112         * m4/signalblocking.m4: New file, from GNU gettext.
104114 2003-10-06  Bruno Haible  <bruno@clisp.org>
104116         * lib/version-etc-2.h: Remove file.
104117         * lib/version-etc-2.c: Remove file.
104119 2003-10-06  Bruno Haible  <bruno@clisp.org>
104121         * lib/fatal-signal.h: New file, from GNU gettext.
104122         * lib/fatal-signal.c: New file, from GNU gettext.
104124 2003-10-05  Paul Eggert  <eggert@twinsun.com>
104126         * README: Rework advice for preventing empty .o files.
104127         Don't recommend ELIDE constructs.  Recommend <stddef.h>,
104128         not <sys/types.h>.
104130 2003-10-04  Karl Berry  <karl@gnu.org>
104132         * lib/argp*: update from libc.
104134 2003-10-04  Karl Berry  <karl@gnu.org>
104136         * config/config.{guess,sub}: update from config.
104138 2003-10-02  Bruno Haible  <bruno@clisp.org>
104140         * modules/lchown (Include): Add lchown.h.
104141         * modules/time_r (Include): Use "..." syntax.
104142         * modules/xgetdomainname (Include): Add xgetdomainname.h.
104144 2003-10-01  Simon Josefsson  <jas@extundo.com>
104146         * MODULES.html.sh (func_all_modules): Move gethostname from section
104147         'based on' to section 'lacking' POSIX:2001.
104149 2003-10-01  Larry Jones  <lawrence.jones@eds.com>
104151         * lib/getpass.c (getpass): Use a no-op fseek when switching from input
104152         to output mode on the same stream.
104154 2003-09-29  Paul Eggert  <eggert@twinsun.com>
104156         * lib/strftime.c (tm_diff) [! HAVE_TM_GMTOFF]:
104157         Fix arg typo in previous patch.
104159 2003-09-28  Jim Meyering  <jim@meyering.net>
104161         * lib/error.c: Correct cpp indentation.
104163 2003-09-27  Paul Eggert  <eggert@twinsun.com>
104165         * modules/free: New file.
104167 2003-09-27  Paul Eggert  <eggert@twinsun.com>
104169         * m4/free.m4: New file.
104171 2003-09-27  Paul Eggert  <eggert@twinsun.com>
104173         * lib/minmax.h (MIN, MAX)
104174         [__STDC__ && defined __GNUC__ && __GNUC__ >= 2]:
104175         Omit the special code that used __typeof__, since we worry that
104176         it could be more trouble than it's worth.  See:
104177         http://mail.gnu.org/archive/html/bug-gnulib/2003-01/msg00090.html
104178         http://mail.gnu.org/archive/html/bug-gnulib/2003-01/msg00095.html
104180         * lib/free.c: New file.
104182 2003-09-27  Oskar Liljeblad  <oskar@osk.mine.nu>
104184         Trivial fixes to Makefile.am parts of module listings.
104185         * modules/strstr: Append strstr.h to lib_SOURCES.
104186         * modules/strcase: Likewise, for strcase.h.
104188 2003-09-27  Karl Berry  <karl@gnu.org>
104190         * config/mkinstalldirs: update from automake.
104192 2003-09-26  Paul Eggert  <eggert@twinsun.com>
104194         * lib/error.c (SIZE_MAX) [!defined SIZE_MAX]: Define.
104195         (error_tail): Do not loop, reallocating temporary buffer, since
104196         the output cannot contain more wide characters than the input
104197         contains bytes, the size must be big enough already.  This avoids
104198         one potential size overflow calculation.  Check for size overflow
104199         when calculating temporary buffer size.  Free temporary buffer
104200         when done, if it was allocated with malloc; this plugs a memory
104201         leak.  Remove casts from void * to pointers, that are no longer
104202         needed now that we're assuming C89 or better.
104204         Merge error changes from glibc.
104206         * lib/error.c, error.h: Update copyright notice header to match glibc.
104207         * lib/error.c [defined _LIBC]: Include <errno.h>, <bits/libc-lock.h>.
104208         (error, error_at_line) [defined _LIBC && defined __libc_ptf_call]:
104209         Disable cancellation while printing error.
104210         * lib/error.h: Prepend __ to parameter names.
104212 2003-09-26  Jim Meyering  <jim@meyering.net>
104214         * lib/error.c (error_tail): Move some declarations
104215         into inner scope where the local variables are used.
104217 2003-09-26  Bruno Haible  <bruno@clisp.org>
104219         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Add comments about the AIX
104220         stpncpy().
104221         Don't define stpncpy through config.h; it's now done through stpncpy.h.
104223 2003-09-26  Bruno Haible  <bruno@clisp.org>
104225         * lib/stpncpy.h (gnu_stpncpy): New declaration.
104226         (stpncpy): Define as alias for gnu_stpncpy.
104227         * lib/stpncpy.c [!_LIBC]: Define gnu_stpncpy, not stpncpy.
104229 2003-09-25  Simon Josefsson  <jas@extundo.com>
104231         * lib/xgetdomainname.h: New file.
104232         * lib/xgetdomainname.c: New file.
104234 2003-09-25  Simon Josefsson  <jas@extundo.com>
104235             Bruno Haible  <bruno@clisp.org>
104237         * modules/getdomainname: New file.
104238         * modules/xgetdomainname: New file.
104239         * MODULES.html.sh (func_all_modules): Add getdomainname,
104240         xgetdomainname.
104242 2003-09-25  Simon Josefsson  <jas@extundo.com>
104243             Bruno Haible  <bruno@clisp.org>
104245         * m4/getdomainname.m4: New file.
104247 2003-09-25  Simon Josefsson  <jas@extundo.com>
104248             Bruno Haible  <bruno@clisp.org>
104250         * lib/getdomainname.h: New file.
104251         * lib/getdomainname.c: New file.
104253 2003-09-25  Karl Berry  <karl@gnu.org>
104255         * lib/argp-fmtstream.c, argp-help.c: update from libc.
104257 2003-09-25  Karl Berry  <karl@gnu.org>
104259         * config/install-sh: update from automake.
104261 2003-09-25  Bruno Haible  <bruno@clisp.org>
104263         * modules/version-etc-2: New file, from modules/version-etc with
104264         modifications.
104265         * MODULES.html.sh (func_all_modules): Add version-etc-2.
104267 2003-09-25  Bruno Haible  <bruno@clisp.org>
104269         * lib/version-etc-2.h: New file, from version-etc.h with modifications.
104270         * lib/version-etc-2.c: New file, from version-etc.c with modifications.
104272 2003-09-24  Simon Josefsson  <jas@extundo.com>
104274         * modules/xgethostname: Add xgethostname.h.
104276 2003-09-24  Paul Eggert  <eggert@twinsun.com>
104278         * lib/linebuffer.c (freebuffer): Don't free the argument, just
104279         the buffer associated with the argument.  Bug reported by
104280         Simon Josefsson.
104282 2003-09-24  Paul Eggert  <eggert@twinsun.com>
104284         * README: Document assumptions that 'int' is at least 32 bits
104285         wide, that integer arithmetic is 2's complement without overflow,
104286         that there are no holes in integer values, that adding sizes of
104287         two nonoverlapping objects can't overflow, and that all-bits-zero
104288         yields scalar zero.  Fix spelling and capitalization typos.
104290 2003-09-19  Karl Berry  <karl@gnu.org>
104292         * lib/argp.h: update from libc.
104294 2003-09-17  Paul Eggert  <eggert@twinsun.com>
104296         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Call AC_BEFORE first,
104297         to avoid spurious warnings like "AC_RUN_IFELSE was called before
104298         gl_USE_SYSTEM_EXTENSIONS" from autoreconf.
104300 2003-09-17  Paul Eggert  <eggert@twinsun.com>
104302         * gnulib-tool: Use "test -h", not "test -L", for portability
104303         to Solaris 8 /bin/sh.  (This bug is fixed in Solaris 9.)
104304         (tags_regexp): Remove, since \| doesn't conform to POSIX.
104305         (sed_extract_prog): Issue s commands one-by-one, rather than
104306         using \| in one s command.
104308 2003-09-16  Paul Eggert  <eggert@twinsun.com>
104310         * lib/linebuffer.c (readlinebuffer): Return NULL immediately upon
104311         input error, instead of returning NULL the next time we are called
104312         (and therefore losing track of errno).
104314 2003-09-16  Bruno Haible  <bruno@clisp.org>
104316         * gnulib-tool (func_create_testdir): Warn about duplicated
104317         dependencies.
104319 2003-09-15  Paul Eggert  <eggert@twinsun.com>
104321         * modules/argmatch, modules/fatal, modules/obstack,
104322         modules/xalloc, modules/xgethostname: Sort dependencies by
104323         importance, not alphabetically.
104325 2003-09-15  Paul Eggert  <eggert@twinsun.com>
104327         * lib/getndelim2.c (getndelim2): Don't trash errno when a read
104328         fails, so that the caller gets the proper errno.
104330         * lib/readutmp.c (read_utmp): Likewise.
104331         Check for fstat error.  Close stream and free storage
104332         when failing.
104334 2003-09-14  Karl Berry  <karl@gnu.org>
104336         * config/srclist.txt (strdup.c): disable for c89 changes.
104338 2003-09-14  Jim Meyering  <jim@meyering.net>
104340         * lib/getloadavg.c: Correct cpp indentation.
104341         * lib/strdup.c: Likewise.
104342         * lib/vasnprintf.c: Likewise.
104344 2003-09-14  Bruno Haible  <bruno@clisp.org>
104346         * modules/fwriteerror: New file.
104347         * MODULES.html.sh (func_all_modules): Add fwriteerror.
104349 2003-09-14  Bruno Haible  <bruno@clisp.org>
104351         * lib/fwriteerror.h: New file.
104352         * lib/fwriteerror.c: New file.
104354 2003-09-12  Paul Eggert  <eggert@twinsun.com>
104356         * modules/argmatch, modules/exitfail, modules/fatal, modules/obstack,
104357         modules/xgethostname, modules/xalloc: Depend on exit.
104359 2003-09-12  Paul Eggert  <eggert@twinsun.com>
104361         * m4/error.m4: Require AC_FUNC_STRERROR_R rather than invoking it.
104363         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Require AC_AIX
104364         and AC_MINIX, too, so that their extensions are available.
104366         * m4/prereq.m4 (jm_PREREQ_ADDEXT): Remove.  All uses removed.
104367         This macro has been superseded by gl_BACKUPFILE.
104369         More patches to assume C89 or better.
104371         * m4/error.m4 (gl_ERROR): Don't check for vprintf.
104373         * m4/check-decl.m4 (jm_CHECK_DECLS): Include <string.h>, <stdlib.h>
104374         unconditionally.
104375         * m4/closeout.m4 (gl_CLOSEOUT): Don't check for stdlib.h.
104376         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER):
104377         Include <string.h>, <stdlib.h> unconditionally.
104378         * m4/lstat.m4 (gl_PREREQ_LSTAT): Don't check for stdlib.h, free.
104379         * m4/readdir.m4 (GL_FUNC_READDIR): Don't check for string.h.
104380         * m4/readutmp.m4 (gl_PREREQ_READUTMP): Don't check for standard C
104381         headers or for string.h.
104382         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Don't check for stdlib.h
104383         or strtoul.
104385         * m4/mkstemp.m4 (jm_PREREQ_TEMPNAME): Do not require standard C
104386         headers.
104387         * m4/strdup.m4 (gl_PREREQ_STRDUP): Likewise.
104388         * m4/userspec.m4 (gl_USERSPEC): Likewise.
104389         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Likewise.
104390         * m4/xstrtod.m4 (gl_XSTRTOD): Likewise.
104391         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
104392         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't check for limits.h,
104393         memcpy, memset.
104394         (jm_FUNC_GNU_STRFTIME): Don't require standard C headers.
104395         * m4/strtod.m4 (gl_FUNC_STRTOD): Do not check for float.h.
104396         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Do not check for stdlib.h,
104397         strtol.
104398         * m4/strtol.m4 (gl_FUNC_STRTOL): Do not check for limits.h.
104399         * m4/userspec.m4 (gl_USERSPEC): Do not check for string.h.
104400         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Do not check for string.h, strtol,
104401         strtoul.
104403 2003-09-12  Paul Eggert  <eggert@twinsun.com>
104405         * lib/argmatch.c, fatal.c, xgethostname.c, xmalloc.c: Include exit.h.
104406         * lib/obstack.c [!defined _LIBC]: Likewise.
104407         * lib/argmatch.c (EXIT_FAILURE): Remove; now done by exit.h
104408         * lib/exitfail.c, fatal.c, xgethostname.c, xmalloc.c: Likewise.
104409         * lib/exitfail.c: Don't include stdlib.h; no longer needed.
104411         More changes to assume C89 or better.
104413         * lib/error.c (error_tail): Assume vprintf.
104415         * lib/argmatch.c (getenv): Remove decl.
104416         * lib/progreloc.c (get_full_program_name): Define via prototype.
104417         * lib/setenv.c (clearenv): Likewise.
104418         * lib/stpncpy.c: Do not include <string.h> or <sys/types.h>; not
104419         needed.
104420         * lib/strdup.c: Include <stdlib.h>, <string.h> unconditionally.
104421         (malloc, memcpy): Remove decls.
104422         * lib/strftime.c (HAVE_LIMITS_H, STDC_HEADERS) [defined _LIBC]: Remove.
104423         (HAVE_MEMCPY) [defined emacs && !defined HAVE_BCOPY]: Remove.
104424         Include <limits.h>, <stddef.h>, <stdlib.h>, <string.h> unconditionally.
104425         (memcpy): Remove macro.
104426         (MEMCPY) [!defined COMPILE_WIDE]: Define to memcpy unconditionally.
104427         (__P): Remove.  All uses removed.
104428         (PTR): Remove.  All uses changed to void *.
104429         (CHAR_BIT, NULL): Remove.
104430         (spaces, zeros, memset_space, memset_zero)
104431         [!defined memset && !defined HAVE_MEMSET && !defined _LIBC]:
104432         Remove.
104433         (LOCALE_PARAM, LOCALE_PARAM_DECL): Remove.
104434         (memcpy_lowcase, memcpy_uppcase, tm_diff, iso_week_days):
104435         Define with prototype.
104436         Remove now-unnecessary prototype decl.
104437         (extra_args_spec): Assume ANSI C.  All uses changed.
104438         (extra_args_spec_iso): Remove.
104439         (my_strftime, emacs_strftimeu): Define via prototype.
104440         * lib/strtod.c: Include <float.h>, <stdlib.h>, <string.h>
104441         unconditionally.
104442         (DBL_MAX, DBL_MIN, HUGE_VAL, NULL): Remove decls.
104443         * lib/strtoimax.c: Include <stdlib.h> unconditionally.
104444         (strtoul, strtol): Remove decls.
104445         * lib/strtol.c (STDC_HEADERS, HAVE_LIMITS_H, NULL, ULONG_MAX,
104446         LONG_MAX): Remove.
104447         Include <limits.h>, <stddef.h>, <stdlib.h>, <string.h> unconditionally.
104448         (LOCALE_PARAM_DECL): Remove.  All uses changed to LOCALE_PARAM_PROTO.
104449         (LOCALE_PARAM_PROTO): New macro.
104450         (INTERNAL, INTERNAL1, WEAKNAME): Assume ANSI C, not K&R.
104451         (INTERNAL (strtol), strtol): Define with a prototype.
104452         (PARAMS): Remove.  All uses removed.
104453         * lib/tempname.c: Include <string.h> unconditionally.
104454         * lib/userspec.c: Include <stdlib.h>, <string.h> unconditionally.
104455         * lib/xgethostname.c (main): Define with a prototype.
104456         * lib/xmalloc.c: Include "xalloc.h" first, to check interface.
104457         Include <stdlib.h> unconditionally.
104458         (calloc, malloc, realloc, free): Remove decls.
104459         * lib/xstrtod.c: Include "xstrtod.h" first, to check interface.
104460         Include <stdlib.h> unconditionally.  Sort include file names.
104461         (strtod): Remove.
104462         (xstrtod): Define with a prototype.
104463         * lib/xstrtol.c: Include <stdlib.h>, <string.h> unconditionally.
104464         (strtol, strtoul): Remove decls.
104466 2003-09-11  Paul Eggert  <eggert@twinsun.com>
104468         More patches to assume C89 or better.
104469         * m4/strndup.m4 (gl_PREREQ_STRNDUP): Remove STDC_HEADERS check.
104470         * m4/strnlen.m4 (gl_PREREQ_STRNLEN): Don't check for memory.h,
104471         string.h, memchr, STDC_HEADERS.
104473 2003-09-11  Paul Eggert  <eggert@twinsun.com>
104475         * lib/strndup.c: Don't include <stdio.h>, <sys/types.h>.
104476         Include <stdlib.h>, <string.h> unconditionally.
104477         Remove now-unnecessary cast to char *.
104478         * lib/strnlen.c: Include <string.h> unconditionally.
104479         * lib/yesno.c (yesno): Define with a prototype.
104481 2003-09-11  Bruno Haible  <bruno@clisp.org>
104483         * config/srclist.txt (setenv.c, unsetenv.c): Disable for the moment.
104485 2003-09-10  Jim Meyering  <jim@meyering.net>
104487         * lib/error.c: Correct indentation of cpp directives.
104489 2003-09-10  Bruno Haible  <bruno@clisp.org>
104491         * m4/strcspn.m4 (gl_PREREQ_STRCSPN): Remove <string.h> check.
104492         * m4/strpbrk.m4 (gl_PREREQ_STRPBRK): Remove <string.h> check.
104493         * m4/strstr.m4 (gl_PREREQ_STRSTR): Remove <string.h> check.
104494         * m4/unicodeio.m4 (gl_UNICODEIO): Remove <string.h> check.
104495         * m4/setenv.m4 (gl_PREREQ_SETENV, gl_PREREQ_UNSETENV): Remove
104496         <stdlib.h> and <string.h> checks.
104497         * m4/xreadlink.m4 (gl_XREADLINK): Remove <stdlib.h> check.
104498         * m4/yesno.m4 (gl_YESNO): Remove <stdlib.h> check.
104500 2003-09-10  Bruno Haible  <bruno@clisp.org>
104502         * lib/strcspn.c: Include <string.h> unconditionally.
104503         * lib/strpbrk.c: Include <string.h> unconditionally.
104504         * lib/strstr.c: Include <string.h> unconditionally.
104505         * lib/unicodeio.c: Include <string.h> unconditionally.
104506         * lib/setenv.c: Include <stdlib.h> and <string.h> unconditionally.
104507         * lib/unsetenv.c: Likewise.
104508         * lib/xreadlink.c: Include <stdlib.h> unconditionally.
104509         * lib/yesno.c: Include <stdlib.h> unconditionally.
104510         (rpmatch): Add prototype.
104512 2003-09-09  Paul Eggert  <eggert@twinsun.com>
104514         More patches to assume C89 or better.
104515         * m4/getcwd.m4 (AC_FUNC_GETCWD_NULL): Don't check for stdlib.h.
104516         * m4/getopt.m4 (gl_GETOPT): Don't check for string.h.
104517         * m4/getugroups.m4 (gl_GETUGROUPS): Do not check for standard C headers
104518         or for string.h.
104519         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Do not check for
104520         stdlib.h.
104521         * m4/group-member.m4 (gl_PREREQ_GROUP_MEMBER): Do not require standard
104522         C headers.
104523         * m4/hard-locale.m4 (gl_HARD_LOCALE): Do not check for stdlib.h,
104524         string.h.
104525         * m4/hash.m4 (gl_HASH): Do not check for stdlib.h, malloc, free.
104526         * m4/human.m4 (gl_HUMAN): Do not check for stdlib.h, string.h, getenv.
104527         * m4/idcache.m4 (gl_IDCACHE): Do not check for standard C headers,
104528         or for string.h.
104529         * m4/long-options.m4 (gl_LONG_OPTIONS): Do not check for stdlib.h.
104530         * m4/makepath.m4 (gl_MAKEPATH): Do not check for string.h or standard
104531         C headers.
104532         * m4/md5.m4 (gl_MD5): Don't check for limits.h, standard C headers,
104533         memcpy.
104534         * m4/sha.m4 (gl_SHA): Don't check for standard Cheaders, memcpy.
104535         * m4/memchr.m4 (jm_PREREQ_MEMCHR): Don't check for limits.h, stdlib.h.
104536         * m4/memcmp.m4 (gl_PREREQ_MEMCMP): Don't check for string.h.
104537         * m4/memcoll.m4 (gl_MEMCOLL): Likewise.
104538         * m4/memrchr.c (gl_PREREQ_MEMRCHR): Don't check for limits.h.
104539         * m4/mkdir-slash.m4 (gl_PREREQ_MKDIR): Don't check for stdlib.h,
104540         string.h, free.
104541         * m4/mktime.m4 (gl_PREREQ_MKTIME): Don't check for standard C headers.
104542         * m4/modechange.m4 (gl_MODECHANGE): Don't check for standard C headers.
104543         * m4/mountlist.m4 (gl_PREREQ_MOUNTLIST_EXTRA): Don't check for standard
104544         C headers, or for string.h.
104545         * m4/obstack.m4 (gl_OBSTACK): Don't check for stddefe.h, string.h.
104546         (gl_PREREQ_OBSTACK): Don't check for stdlib.h.
104547         * m4/path-concat.m4 (gl_PATH_CONCAT): Don't check for standard C
104548         headers, memory.h, stdlib.h, string.h, strings.h.
104549         * m4/posixtm.m4 (gl_POSIXTM): Don't check for stdlib.h, string.h.
104550         * m4/posixver.m4 (gl_POSIXVER): Don't check for getenv.
104551         * m4/putenv.m4 (gl_PREREQ_PUTENV): Don't check for string.h, memcpy,
104552         strchr.
104553         * m4/readtokens.m4 (gl_READTOKENS): Don't check for standard C
104554         headers, memory.h, string.h.
104555         * m4/regex.m4 (jm_PREREQ_REGEX): Do not check for limits.h, string.h.
104556         * m4/rename.m4 (gl_PREREQ_RENAME): Do not check for stdlib.h, string.h,
104557         free.
104558         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Don't check for standard C
104559         headers.
104560         * m4/same.m4 (gl_SAME): Don't check for stdlib.h, string.h, free.
104561         * m4/save-cwd.m4 (gl_SAVE_CWD): Don't check for standard C headers.
104562         * m4/savedir.m4 (gl_SAVEDIR): Don't check for standard C headers.
104563         * m4/strchrnul.m4 (gl_PREREQ_STRCHRNUL): Don't check for string.h.
104564         * m4/xgetcwd.m4 (gl_XGETCWD): Don't check for stdlib.h.
104566 2003-09-09  Paul Eggert  <eggert@twinsun.com>
104568         More K&R removal.
104570         * lib/acosl.c (main): Use a prototype.
104571         * lib/asinl.c, cosl.c, expl.c, frexpl.c, ldexpl.c, sinl.c,
104572         tanl.c: Likewise.
104574         * lib/getloadavg.c (getloadavg, main): Define via prototypes.
104576         * lib/getopt.h (struct option.name): Assume C89, and use 'const'.
104577         (getopt, etopt_long, getopt_long_only, _getopt_internal)
104578         [defined __GNU_LIBRARY__]: Assume C89, so we can always declare
104579         with a prototype.
104580         * lib/getopt.c (const): Remove macro.
104581         Include <string.h> unconditionally.
104582         (my_index): Remove; all uses changed to strchr.
104583         (strlen): Remove decl.
104584         (exchange): Remove forward decl; no longer needed.
104585         (exchange, _getopt_initialize, _getopt_internal, getopt, main):
104586         Define with prototype.
104587         * lib/getopt1.c (const): Remove macro.
104588         (getopt_long, getopt_long_only, main): Define with prototype.
104590         * lib/getugroups.c: Include <string.h> unconditionally.
104592         * lib/getusershell.c: Include <stdlib.h> unconditionally.
104593         (getusershell, setusershell, endusershell, readname, main):
104594         Define with prototypes.
104596         * lib/group-member.c: Include group-member.h first.
104597         Include <stdlib.h> unconditionally.
104599         * lib/hard-locale.c: Include hard-locale.h first.
104600         Include <stdlib.h>, <string.h> unconditionally.
104602         * lib/hash.c (free, malloc): Remove decls.
104603         Include <stdlib.h> unconditionally.
104605         * lib/human.c: Include <stdlib.h>, <string.h> unconditionally.
104606         (getenv): Do not declare.
104608         * lib/idcache.c: Include <string.h> unconditionally.
104610         * lib/long-options.c: Include long-options.h first, to test interface.
104611         Include <stdlib.h> unconditionally.
104613         * lib/makepath.c: Include makepath.h first, to test interface.
104614         Include <stdlib.h> and <string.h> unconditionally.
104616         * lib/linebuffer.c: Include <stdlib.h>.
104617         (free): Remove decl.
104619         * lib/malloc.c: Include <stdlib.h>, for malloc; don't bother with
104620         stddef.h. rpl_malloc returns void *, not char *.
104621         * lib/realloc.c (rpl_realloc): Likewise.  Also, define with a
104622         prototype.
104624         * lib/md5.h: Include <limits.h> unconditionally.
104625         (UINT_MAX_32_BITS): Don't worry about non-__STDC__ case.
104626         (__P): Remove; all uses removed.
104627         * lib/md5.c: Include "md5.h" first.
104628         (md5_init_ctx, md5_read_ctx, md5_finish_ctx, md5_stream,
104629         md5_buffer, md5_process_bytes, md5_process_block):
104630         Define with prototypes.
104631         * lib/sha.h (__P): Remove all uses.  (It wasn't defined??)
104632         * lib/sha.c: Include "sha.h" first.
104633         Include <stdlib.h>, <string.h> unconditionally.
104635         * lib/memchr.c (__ptr_t): Remove; all uses changed to void *.
104636         * lib/memcmp.c (__ptr_t): Likewise.
104637         * lib/memrchr.c (__ptr_t): Likewise.
104638         * lib/memchr.c, memcmp.c, memcoll.c, memrchr.c:
104639         Include <string.h> unconditionally.
104640         * lib/memchr.c, memrchr.c: Include <limits.h> unconditionally.
104641         * lib/memchr.c: Include <stdlib.h> unconditionally.
104642         * lib/memchr.c (LONG_MAX): Remove.
104643         * lib/memrchr.c (LONG_MAX): Likewise.
104644         * lib/memchr.c (__memchr): Define via a prototype.
104645         * lib/memrchr.c (__memrchr): Likewise.
104646         * lib/memcmp.c (__P): Remove, and remove all uses.
104647         (memcmp_bytes, memcmp_common_alignment, memcmp_not_common_alignment):
104648         Remove forward decls; no longer needed.
104649         * lib/memcpy.c, memmove.c, memset.c: Include <stddef.h>.
104650         Use types required by C89 in prototype.
104652         * lib/mkdir.c: Include <stdlib.h>, <string.h> unconditionally.
104653         * lib/savedir.c: Likewise.
104654         * lib/mkdir.c (free): Remove decl.
104655         * lib/rmdir.c (rmdir): Define with a prototype.
104656         * lib/savedir.c: Include savedir.h first, to test interface.
104658         * lib/mktime.c (STDC_HEADERS): Remove.
104659         Include <stdlib.h>, <string.h> unconditionally.
104661         * lib/modechange.c: Include <stdlib.h> unconditionally.
104662         (malloc): Remove decl.
104664         * lib/mountlist.c: Include <stdlib.h>, <string.h> unconditionally.
104665         (free): Remove decl.
104667         * lib/obstack.h (PTR_INT_TYPE) [!defined __PTRDIFF_TYPE__]:
104668         Define to ptrdiff_t, without bothering to check HAVE_STDDEF_H.
104669         (This type really should be intptr_t, but that's a C99ism.)
104670         (_obstack_memcpy): Remove: all uses changed to memcpy.
104671         Include <string.h> unconditionally.
104672         (struct obstack): Assume __STDC__ for types of members
104673         chunkfun, freefun, extra_arg.
104674         (_obstack_newchunk, _obstack_free, _obstack_begin, _obstack_begin_1,
104675         _obstack_memory_used, obstack_alloc_failed_handler, obstack_init,
104676         obstack_begin, obstack_specify_allocation,
104677         obstack_specify_allocation_with_arg, obstack_chunkfun,
104678         obstack_freefun, obstack_free) [! (defined __STDC__ && __STDC__)]:
104679         Remove unprototyped decls and the macros that use them.
104680         * lib/obstack.c (POINTER): Remove.  All uses changed to void *.
104681         (obstack_alloc_failed_handler, CALL_CHUNKFUN, CALL_FREEFUN,
104682         _obstack_begin, _obstack_begin_1, _obstack_allocated_p)
104683         (defined __STDC__ && __STDC__)]:
104684         Remove nonprototyped code.
104685         Include <stdlib.h> unconditionally.
104686         (_obstack_begin, _obstack_begin_1, _obstack_newchunk,
104687         _obstack_allocated_p, _obstack_free, obstack_free,
104688         _obstack_memory_used, print_and_abort):
104689         Define using prototypes.
104690         (obstack_1grow, obstack_1grow_fast, obstack_alloc, obstack_base,
104691         obstack_blank, obstack_blank_fast, obstack_copy, obstack_copy0,
104692         obstack_finish, obstack_grow, obstack_grow0, obstack_make_room,
104693         obstack_next_free, obstack_object_size, obstack_room) [0]:
104694         Remove unused, unprototyped code.
104696         * lib/path-concat.c: Include <stdlib.h>, <string.h> unconditionally.
104698         * lib/physmem.c (physmem_total, physmem_available, main): Define
104699         with prototypes.
104701         * lib/posixtm.c: Include <stdlib.h>, <string.h> unconditionally.
104702         (main): Define with a prototype.
104704         * lib/posixver.c (getenv): Remove decl.
104706         * lib/putenv.c (malloc): Returns void *, not char *.
104707         Include <string.h> unconditionally.
104708         (strchr, memcpy, NULL): Do not define.
104710         * lib/readtokens.c: Include readtokens.h first, to test interface.
104711         Include <stdlib.h>, <string.h> unconditionally.
104712         (init_tokenbuffer): Define with a prototype.
104714         * lib/regex.c (PARAMS): Remove.  All uses removed.
104715         All uses of _RE_ARGS removed, too.
104716         Include <stddef.h>, <stdlib.h>, <string.h>, <limits.h>
104717         unconditionally.
104718         (bzero): Assume memset exists.
104719         (memcmp, memcpy, NULL): Remove.
104720         (SIGN_EXTEND_CHAR): Remove; all uses replaced by casts to signed
104721         char, or assignments to local vars of type signed char.
104722         (init_syntax_once, PREFIX(extract_number_and_incr),
104723         PREFIX(print_partial_compiled_pattern),
104724         PREFIX(print_compiled_pattern), PREFIX(print_double_string),
104725         convert_mbs_to_wcs, print_fastmap, re_set_syntax,
104726         PREFIX(regex_grow_registers), PREFIX(regex_compile),
104727         PREFIX(store_op1), PREFIX(store_op2), PREFIX(insert_op1),
104728         PREFIX(insert_op2), PREFIX(at_begline_loc_p),
104729         PREFIX(at_endline_loc_p), group_in_compile_stack, insert_space,
104730         wcs_compile_range, byte_compile_range, truncate_wchar,
104731         PREFIX(re_compile_fastmap), re_compile_fastmap, re_set_registers,
104732         re_search, re_search_2, PREFIX(re_search_2), re_match, re_match_2,
104733         count_mbs_length, wcs_re_match_2_internal,
104734         byte_re_match_2_internal, PREFIX(group_match_null_string_p),
104735         PREFIX(alt_match_null_string_p),
104736         PREFIX(common_op_match_null_string_p), PREFIX(bcmp_translate),
104737         re_compile_pattern, re_comp, re_exec, regcomp, regexec, regerror,
104738         regfree, PREFIX(extract_number)): Define with prototype.  Remove
104739         now-unnecessary declaration, if any.
104740         (byte_compile_range, PREFIX(regex_compile), re_comp, re_exec,
104741         regcomp, regexec):
104742         Remove now-unnecessary casts among pointer types.
104743         * lib/regex.h (_RE_ARGS): Remove.  All uses removed.
104745         * lib/rename.c: Include <stdlib.h>, <string.h> unconditionally.
104746         (free): Remove decl.
104748         * lib/rpmatch.c: Include <stdlib.h> unconditionally.
104750         * lib/same.c: Include <stdlib.h>, <string.h> unconditionally.
104751         (free): Remove decl.
104753         * lib/save-cwd.c: Include <stdlib.h> unconditionally.
104754         * lib/xgetcwd.c: Likewise.
104756         * lib/stat.c: Include <stdlib.h>, <string.h> unconditionally.
104757         (free): Remove decl.
104759         * lib/strchrnul.c (strchrnul): Define with a prototype.
104760         Fix bug: c_in was not converted to char before searching.
104762         The following changes are not K&R related:
104764         * lib/group-member.h: Include <sys/types.h>, so that this file is
104765         self-contained.
104766         * lib/makepath.h: Likewise.
104768         * lib/getusershell.c (readname, default_index, line_size, readname):
104769         Use size_t, not int, for sizes.
104770         (readname): If the size overflows, report an error instead of
104771         looping forever.
104773 2003-09-09  Paul Eggert  <eggert@twinsun.com>
104775         * config/srclist.txt: Do not get getopt.h, getopt1.c, or regex.h from
104776         libc.
104778 2003-09-09  Paul Eggert  <eggert@twinsun.com>
104780         * README: New section: portability guidelines.
104782 2003-09-09  Derek Robert Price  <derek@ximbiot.com>
104784         * m4/getndelim2.m4 (gl_PREREQ_GETNDELIM2): Assume stdlib.h per the
104785         C89 spec.
104787 2003-09-09  Derek Robert Price  <derek@ximbiot.com>
104789         * lib/getndelim2.c: Assume stdlib.h per the C89 spec.
104791 2003-09-08  Paul Eggert  <eggert@twinsun.com>
104793         Assume C89 or better; remove K&R cruft.
104794         A few of these changes were first proposed by Derek Robert Price
104795         in <http://mail.gnu.org/archive/html/bug-gnulib/2003-07/msg00105.html>.
104797         * lib/addext.c: Include <string.h> unconditionally.
104798         * lib/backupfile.c: Include <string.h>, <stdlib.h> unconditionally.
104799         Don't declare getenv or malloc.
104801         * lib/alloca.c: Include <string.h>, <stdlib.h> unconditionally.
104802         (POINTER_TYPE, pointer): Remove; all uses changed to void *.
104803         (NULL): Remove.
104804         (find_stack_direction, alloca): Use prototypes.
104806         * lib/atexit.c (atexit): Define using a prototype.
104808         * lib/basename.c, dirname.c, stripslash.c:
104809         Include <string.h> unconditionally.
104811         * lib/bcopy.c: Include <stddef.h>.
104812         (bcopy): Define with prototype, using 'const' and 'void' and 'size_t'.
104814         * lib/canon-host.c: Include <stdlib.h>, <string.h> unconditionally.
104816         * lib/error.h (error, error_at_line, error_print_progname)
104817         [! (defined (__STDC__) && __STDC__)]: Remove decls.
104818         * lib/error.c: Include error.h first, to check interface.
104819         Include <stdarg.h>, <stdlib.h>, <string.h> unconditionally.
104820         (VA_START): Remove; all uses changeed to va_start.
104821         (exit, strerror): Remove decls.
104822         (error_print_progname): Prototype uncondionally.
104823         Don't include <errno.h>; no longer needed.
104824         (private_strerror): Remove.
104825         (error_tail): Always define.
104826         (error, error_at_line): Assume C89 or better; always use prototypes.
104827         * lib/fatal.c: Include "fatal.h" first, to test interface.
104828         Include <stdarg.h>, <stdlib.h>, <string.h> unconditionally.
104829         (VA_START): Remove; all uses changed to va_start.
104830         [! (HAVE_VPRINTF || HAVE_DOPRNT || _LIBC)]: Remove support for
104831         this case.
104832         (exit): Remove decl.
104833         (fatal): Prototype unconditionally.  Assume va_start works.
104834         Abort at end, to pacify gcc.
104836         * lib/euidaccess.c (main): Define with a prototype.
104838         * lib/exclude.c: Include <stdlib.h>, <string.h> unconditionally.
104840         * lib/exitfail.c: Include <stdlib.h> unconditionally.
104842         * lib/fnmatch_.h (__P): Remove.  All uses changed to assume
104843         prototypes.
104844         * lib/fnmatch.c: Include fnmatch.h first, to test interface.
104845         Include <string.h>, <stddef.h>, <stdlib.h> unconditionally.
104846         (getenv): Remove decl.
104847         (fnmatch): Define using a prototype.
104848         * lib/fnmatch_loop.c (FCT): Remove forward decl; no longer needed.
104849         (FCT): Define using a prototype.
104851         * lib/getdate.y: Include <stdlib.h>, <string.h> unconditionally.
104853         * lib/gethostname.c: Include <stddef.h>.
104854         (gethostname): Define with prototype.  Length is size_t, not int.
104856 2003-09-08  Paul Eggert  <eggert@twinsun.com>
104858         Assume C89 or better; remove K&R cruft.
104859         * m4/alloca.m4 (gl_PREREQ_ALLOCA): Don't check for stdlib.h, string.h.
104860         * m4/backupfile.m4 (gl_BACKUPFILE): Don't check for stdlib.h,
104861         string.h, getenv, malloc.
104862         * m4/dirname.m4 (gl_DIRNAME): Don't check for string.h or C standard
104863         headers.
104864         * m4/canon-host.m4 (gl_CANON_HOST): Don't check for string.h, stdlib.h.
104865         * m4/error.m4 (jm_PREREQ_ERROR): Do not require STDC headers, and
104866         do not check for strerror.
104867         * m4/exclude.m4: Do not check for stdlib.h, string.h, strings.h.
104868         * m4/exitfail.m4 (gl_EXITFAIL): Do not check for stdlib.h.
104869         * m4/fatal.m4 (gl_FATAL): Do not require STDC headers, and
104870         do not check for doprnt or vprintf.
104871         * m4/fnmatch.m4 (gl_PREREQ_FNMATCH_EXTRA): Remove.  All uses removed.
104872         * m4/getdate.m4 (gl_GETDATE): Don't check for stdlib.h or string.h.
104874 2003-09-08  Paul Eggert  <eggert@twinsun.com>
104876         * lib/getversion.c: Remove; was migrated to backupfile.c in 1997.
104877         getversion.c should have been removed then, but was accidentally
104878         preserved.
104880         * lib/utime.c [!HAVE_UTIMES_NULL]: Include <sys/stat.h>, <fcntl.h>.
104881         (utime_null): Fix typo: 'st' was sometimes called 'sb'.
104883 2003-09-08  Karl Berry  <karl@gnu.org>
104885         * config/config.sub, config.guess, srclistvars.sh: update from savannah
104886                 config, forget about prep.
104888         * config/depcomp, missing: update from automake.
104890 2003-09-07  Paul Eggert  <eggert@twinsun.com>
104892         * modules/time_r: Depend on 'restrict'.  Fix from Simon Josefsson in
104893         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00028.html>.
104895 2003-09-07  Paul Eggert  <eggert@twinsun.com>
104897         * lib/time_r.c (gmtime_r, localtime_r): Fix silly typo: missing arg to
104898         copy_tm_result.  Bug reported by Simon Josefsson in
104899         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00028.html>.
104901 2003-09-06  Paul Eggert  <eggert@twinsun.com>
104903         * m4/time_r.m4: New file.
104904         * m4/mktime.m4 (gl_PREREQ_MKTIME): Remove check for limits.h.
104905         * m4/timegm.m4 (gl_FUNC_TIMEGM): Assume that timegm is buggy if mktime
104906         is. Check for timegm declaration.
104907         (gl_PREREQ_TIMEGM): Require gl_FUNC_MKTIME.
104908         Do not check for gmtime_r.
104909         Replace mktime if __mktime_internal does not exist and if mktime
104910         hasn't been replaced already.
104912 2003-09-06  Paul Eggert  <eggert@twinsun.com>
104914         * lib/time_r.c, lib/time_r.h: New files.
104916         * lib/mktime.c (my_mktime_localtime_r): Remove; all uses changed to
104917         __localtime_r.
104918         (__localtime_r) [!defined _LIBC]: New macro.  Include <time_r.h>.
104919         (__mktime_internal) [!defined _LIBC]: Now extern, not static.
104921         * lib/strftime.c (my_strftime_gmtime_r): Remove; all uses changed to
104922         __gmtime_r.
104923         (my_strftime_localtime_r): Remove; all uses changed to __localtime_r.
104924         (__gtime_r, __localtime_r) [!HAVE_TM_GMTOFF]: New macros.
104925         Include <time_r.h>.
104927         * lib/timegm.c: Switch to glibc implementation, with the following
104928         changes:
104929         [defined HAVE_CONFIG_H]: Include <config.h>.
104930         [!defined _LIBC]: Include "timegm.h" rather than <time.h>.
104931         (__mktime_internal) [!defined _LIBC]: New decl.
104932         (__gmtime_r) [!defined _LIBC]: New macro and function.
104933         (timegm): Use a prototype, since gnulib assumes C89.
104934         Do not bother declaring tmp to be const, as it's not really usefu.
104935         * lib/timegm.h: Hoist "#include <time.h>" out of #ifdef.
104936         (timegm): Declare only if HAVE_DECL_TIMEGM.
104938 2003-09-06  Paul Eggert  <eggert@twinsun.com>
104940         * MODULES.html.sh (func_all_modules): Add time_r.
104941         * modules/time_r: New file.
104942         * modules/mktime, modules/strftime, modules/timegm: Depend on time_r.
104943         * modules/timegm: Depend on mktime.  Change maintainer to "all, glibc".
104945 2003-09-03  Paul Eggert  <eggert@twinsun.com>
104947         * lib/human.c (human_readable): Fix bug that rounded 10501 to 10k.
104948         Bug reported by Lute Kamstra in
104949         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00003.html>.
104951         * lib/getdate.y (relative_time_table): Use tDAY_UNIT for "tomorrow",
104952         "yesterday", "today", and "now" rather than tMINUTE_UNIT.  Of
104953         course with correspondingly smaller numbers for tomorrow and
104954         yesterday.  From Tadayoshi Funaba.  Originally installed into
104955         sh-utils on 1999-08-07, but the patch got lost (I guess during the
104956         coreutils merge?).
104958 2003-08-31  Simon Josefsson  <jas@extundo.com>
104960         * modules/timegm: New file.
104961         * MODULES.html.sh (func_all_modules): Add timegm.
104963 2003-08-31  Simon Josefsson  <jas@extundo.com>
104965         * m4/timegm.m4: New file.
104967 2003-08-31  Simon Josefsson  <jas@extundo.com>
104969         * lib/timegm.h: New file.
104970         * lib/timegm.c: New file.  Based on
104971         wget-1.8.2/src/http.c:mktime_from_utc.
104973 2003-08-31  Karl Berry  <karl@gnu.org>
104975         * lib/argp.h: update from libc.
104977 2003-08-28  Bruno Haible  <bruno@clisp.org>
104979         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Remove AC_DEFINE of fnmatch here.
104980         This avoids havoc on compilers for which '#define fnmatch rpl_fnmatch'
104981         followed by '#define fnmatch fnmatch_posix' gives an error.
104983 2003-08-28  Bruno Haible  <bruno@clisp.org>
104985         * lib/binary-io.h: Undefine O_BINARY before defining it. This avoids a
104986         warning on QNX, which defines O_BINARY to 000000.
104988 2003-08-27  Jim Meyering  <jim@meyering.net>
104990         * m4/mkstemp.m4: Require that the system mkstemp be able to create
104991         70 temporary files, not just 30.  Tru64 V4.0F's mkstemp function
104992         would fail after 32.  Reported by Danny Levinson.  Details here:
104993         http://mail.gnu.org/archive/html/bug-coreutils/2003-08/msg00124.html
104995 2003-08-24  Bruno Haible  <bruno@clisp.org>
104997         * lib/binary-io.h: Include <stdio.h>, to avoid a compilation error when
104998         MSVC7 <stdio.h> is included later.
105000 2003-08-22  Simon Josefsson  <jas@extundo.com>
105002         * modules/strndup (Makefile.am): Add strndup.h to lib_SOURCES.
105004 2003-08-20  Karl Berry  <karl@gnu.org>
105006         * m4/lib-ld.m4: serial 1003 from gettext, no changes besides serial.
105008 2003-08-20  Bruno Haible  <bruno@clisp.org>
105010         * modules/progname: New file.
105011         * MODULES.html.sh (func_all_modules): Add progname.
105013 2003-08-20  Bruno Haible  <bruno@clisp.org>
105015         * lib/progname.h: New file, from GNU gettext.
105016         * lib/progname.c: New file, from GNU gettext.
105017         * lib/progreloc.c: New file, from GNU gettext.
105019 2003-08-19  Jim Meyering  <jim@meyering.net>
105021         * m4/lib-ld.m4: Revert yesterday's change, per Bruno's request here:
105022         http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00155.html
105024 2003-08-19  Bruno Haible  <bruno@clisp.org>
105026         * m4/xalloc.m4 (gl_PREREQ_XSTRDUP): Don't check for <string.h> any
105027         more.
105029 2003-08-19  Bruno Haible  <bruno@clisp.org>
105031         * lib/xstrdup.c: Assume <string.h> exists.
105033 2003-08-18  Paul Eggert  <eggert@twinsun.com>
105035         * modules/stdbool: Add BUILT_SOURCES.  Prefer $@ to target name
105036         in makefile rules.
105038 2003-08-18  Jim Meyering  <jim@meyering.net>
105040         * m4/getloadavg.m4: Use [\t ], not [ \t] (where \t is a literal TAB).
105041         * m4/lib-ld.m4: Likewise.
105043 2003-08-18  Jim Meyering  <jim@meyering.net>
105045         * lib/setenv.h: Indent nested cpp directive.
105046         * lib/vasnprintf.c: Remove trailing blanks.
105048 2003-08-17  Simon Josefsson  <jas@extundo.com>
105050         * modules/xstrndup: New file.
105051         * MODULES.html.sh (func_all_modules): Add xstrndup.
105053 2003-08-17  Simon Josefsson  <jas@extundo.com>
105055         * modules/argp: Fix autoconf macro name. Add more dependencies.
105057 2003-08-17  Simon Josefsson  <jas@extundo.com>
105059         * m4/xstrndup.m4: New file.
105061 2003-08-17  Simon Josefsson  <jas@extundo.com>
105063         * m4/argp.m4: New file.
105065 2003-08-17  Simon Josefsson  <jas@extundo.com>
105066             Bruno Haible  <bruno@clisp.org>
105068         * lib/xstrndup.h: New file.
105069         * lib/xstrndup.c: New file.
105071 2003-08-17  Bruno Haible  <bruno@clisp.org>
105073         * modules/strndup (Files, Include): Add lib/strndup.h.
105075 2003-08-17  Bruno Haible  <bruno@clisp.org>
105077         * modules/euidaccess (Files): Add lib/euidaccess.h.
105079 2003-08-17  Bruno Haible  <bruno@clisp.org>
105081         * lib/strndup.h: New file.
105083 2003-08-17  Bruno Haible  <bruno@clisp.org>
105085         * gnulib-tool (func_create_testdir): Handle gl_USE_SYSTEM_EXTENSIONS
105086         like AC_GNU_SOURCE.
105087         * modules/extensions (configure.ac): Comment out the invocation of
105088         gl_USE_SYSTEM_EXTENSIONS.
105090 2003-08-16  Paul Eggert  <eggert@twinsun.com>
105092         Merges from coreutils, etc.
105093         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Insert ':' to prevent a syntax
105094         error in gl_FUNC_MATCH.  This fixes a bug I introduced on 2003-05-28.
105095         * m4/readlink.m4 (gl_PREREQ_READLINK): Renamed from gl_PREREQ_READLINE,
105096         fixing a typo.
105097         * m4/host-os.m4 (UTILS_HOST_OS): Add GNU/NetBSD, GNU/FreeBSD.
105098         * m4/hash.m4 (gl_HASH): Use AM_STDBOOL_H, not AC_HEADER_STDBOOL.
105100 2003-08-16  Paul Eggert  <eggert@twinsun.com>
105102         Document merge from coreutils.
105103         * modules/alloca: Append $(ALLOCA_H) to BUILT_SOURCES.
105104         * modules/fnmatch: Append $(FNMATCH_H) to BUILT_SOURCES.
105105         * modules/utime: Add m4/utimes-null.m4.
105107 2003-08-16  Paul Eggert  <eggert@twinsun.com>
105109         * lib/regex.h, strdup.c, strtoll.c, strtoul.c: Do not normalize white
105110         space, undoing this 2003-08-12 change:
105111         <http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00080.html>
105113 2003-08-16  Paul Eggert  <eggert@twinsun.com>
105115         * config/srclist.txt: Get regex.h, strdup.c, strtoll.c,
105116         strtoul.c from libc, undoing this 2003-08-12 change:
105117         <http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00080.html>
105119 2003-08-16  Jim Meyering  <jim@meyering.net>
105121         Merges from coreutils.
105122         * m4/readdir.m4 (GL_FUNC_READDIR): Change name to have GL_ (not jm_)
105123         prefix.  Adjust cache variables similarly.  Create 500 rather than
105124         just 300 files, to exercise bug on Darwin6.5, too.
105125         * m4/perl.m4 (jm_PERL): Use $am_missing_run, not undefined
105126         $missing_dir.
105127         * m4/jm-winsz1.m4: Require AC_SYS_POSIX_TERMIOS, not
105128         AM_SYS_POSIX_TERMIOS.
105129         Reported by mkc@mathdogs.com.
105130         Also change use of $am_cv_sys_posix_termios
105131         to $ac_cv_sys_posix_termios.  Reported by Andreas Schwab.
105132         * m4/getgroups.m4 (jm_FUNC_GETGROUPS): Rewrite to use AC_FUNC_GETGROUPS
105133         and (if needed) to call AC_LIBOBJ and to set GETGROUPS_LIB.
105134         * m4/fsusage.m4 [__GLIBC__]: GNU libc's statvfs stats each mount point
105135         in /proc/mounts until it finds one with matching device number.  This
105136         is unnecessary when the FILE argument *is* a mount point.  No stat call
105137         is necessary in that case.  So, disable the statvfs-testing code on
105138         systems with GNU libc.  Reported by Andrei Gaponenko via Tim Waugh
105139         as RedHat bug# 84846.
105140         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Limit stack size
105141         to 1MB, so as not to render systems with no stack size limit (e.g.,
105142         linux-2.2.x) unusable.  Suggestion and code from Bruno Haible.
105143         Include <unistd.h>.  On some systems,
105144         it is required for the definition of _SC_PAGESIZE.
105146 2003-08-16  Jim Meyering  <jim@meyering.net>
105148         Merge from coreutils.
105149         * lib/xstrtoimax.c: #else #if -> #elif.
105150         * lib/xstrtoumax.c: Likewise.
105152 2003-08-16  Jim Meyering  <jim@meyering.net>
105154         * m4/utimes.m4 (gl_FUNC_UTIMES): New file.
105155         * m4/utimes.m4: Removed.
105156         * m4/utimes-null.m4: Renamed from utimes.m4.
105158         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Limit stack size
105159         to 1MB, so as not to render systems with no stack size limit (e.g.,
105160         linux-2.2.x) unusable.  Suggestion and code from Bruno Haible.
105161         Include <unistd.h>.  On some systems,
105162         it is required for the definition of _SC_PAGESIZE.
105164 2003-08-16  Jim Meyering  <jim@meyering.net>
105165         and Paul Eggert  <eggert@cs.ucla.edu>
105167         Merges from coreutils, etc.
105169         * m4/jm-macros.m4 (AC_LANG_SOURCE(C)): New macro, undefine, then define
105170         using the latest version from cvs.  This avoids problems with #line
105171         directives using a vendor (Sun) compiler.
105172         (jm_MACROS): Bump prerequisite from 2.52g to 2.57.
105173         Don't set GETGROUPS_LIB here; now it's
105174         done via getgroups.m4's wrapper function.
105175         AC_SUBST OPTIONAL_BIN_PROGS, OPTIONAL_BIN_ZCRIPTS, and MAN here,
105176         rather than just in sh-util/configure.in, so that the
105177         now-shared-by-fileutils-and-textutils lib/Makefile.am are all the
105178         same.
105179         Use AC_CONFIG_LIBOBJ_DIR(lib) to tell the new
105180         AC_FUNC_GETLOADAVG where to find getloadavg.c.
105181         Require AC_FUNC_FTW, gt_INTTYPES_PRI, gl_CLOCK_TIME,
105182         UTILS_SYS_OPEN_MAX, GL_FUNC_GETCWD_PATH_MAX, GL_FUNC_READDIR,
105183         gl_FSUSAGE, gl_MOUNTLIST, AC_FUNC_CANONICALIZE_FILE_NAME.
105184         Remove code that is now done by the newly-required macros.
105185         Append $(EXEEXT) to DF_PROG.
105186         AC_LIBOBJ fchdir-stub if fchdir doesn't exist; similarly for fchown.
105187         Do not invoke or require the following here,
105188         since prereq.m4 or some gnulib .m4 now does this for us:
105189         gl_REGEX, UTILS_FUNC_MKDIR_TRAILING_SLASH, jm_BISON, gl_FUNC_MKTIME,
105190         jm_FUNC_LSTAT, jm_FUNC_STAT, jm_FUNC_REALLOC, jm_FUNC_MALLOC,
105191         jm_FUNC_NANOSLEEP, jm_FUNC_READDIR, jm_FUNC_MEMCMP,
105192         jm_FUNC_GLIBC_UNLOCKED_IO, AC_FUNC_FNMATCH_GNU, jm_FUNC_PUTENV,
105193         jm_AC_PREREQ_XSTRTOUMAX, jm_AC_PREREQ_XSTRTOIMAX,
105194         AC_FUNC_ERROR_AT_LINE, jm_FUNC_GNU_STRFTIME, AC_FUNC_VPRINTF,
105195         vb_FUNC_RENAME, UTILS_FUNC_MKSTEP, jm_FUNC_UTIME, AM_FUNC_GETLINE,
105196         AC_FUNC_OBSTACK.
105197         Do not replace the following functions, as this is now the job
105198         of some gnulib .m4: strcasecmp, strncasecmp, dup2, gethostname,
105199         getusershell, sig2str, strcspn, stpcpy, strstr, strtol, strtoul
105200         strpbrk, euidaccess, memcmp, rmdir, rpmatch, strndup, strverscmp,
105201         atexit getpass, strdup, getpagesize.
105202         Replace 'raise'.
105203         Do not check for the following functions, as this is now the job
105204         of some gnulib .m4: bcopy, canonicalize_file_name, fchdir, ftime,
105205         getcwd, getmntinfo, resolvepath.  But check for sysctl, setreuid,
105206         setregid.
105207         (jm_CHECK_ALL_HEADERS): Do not check for fenv.h.
105208         Check for sys/sysctl.h.
105209         (jm_CHECK_ALL_TYPES): Do not require AC_STRUCT_TM, AC_STRUCT_TIMEZONE,
105210         jm_CHECK_TYPE_STRUCT_TIMESPEC.  Invoke gt_TYPE_SSIZE_T instead
105211         of checking for ssize_t ourselves.
105213         * m4/prereq.m4 (jm_PREREQ): Don't invoke macros; AC_REQUIRE them.
105214         Require every macro that gnulib/modules/* suggests for us.
105215         (jm_PREREQ_ADDEXT): New macro.
105216         (jm_PREREQ_STAT): Check for 'struct statfs' on Ultrix 4.4.
105217         Require jm_AC_TYPE_LONG_LONG instead of invoking it.
105219         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): New macro.
105220         (gl_PHYSMEM): Use it.
105221         Also check for `table' function.
105222         Check for new headers and functions.
105223         Add check for sys/sysmp.h.
105224         With suggestions from Kaveh Ghazi.
105225         Ignore headers that are present but cannot be compiled.  This
105226         avoids spurious warnings on Solaris 9 sparc with Forte Developer 7
105227         C 5.4.
105229 2003-08-15  Paul Eggert  <eggert@twinsun.com>
105231         Document merge from coreutils.
105232         * modules/userspec: Depend on posixver.
105233         * modules/strftime: Depend on tzset.
105235 2003-08-15  Paul Eggert  <eggert@twinsun.com>
105237         * lib/config.charset, ref-add.sin, ref-del.sin: Use three spaces,
105238         rather than tab, after '#' in shell-script copyright notices.
105239         Suggested by Bruno Haible.
105241 2003-08-15  Paul Eggert  <eggert@twinsun.com>
105243         * config/srclist-update: Use three spaces, rather than tab, after '#'
105244         in shell-script copyright notices.  Suggested by Bruno Haible.
105245         Remove unnecessary parenthesization in regular expression.
105247 2003-08-15  Jim Meyering  <jim@meyering.net>
105249         Merge from coreutils.
105250         * lib/xgethostname.c: Include <stdlib.h>.
105251         (xghostname): Don't exit for anything other than memory-related
105252         failure; just return NULL.
105253         * lib/userspec.c: Include "posixver.h".
105254         (parse_user_spec): Accept `.' as a separator only
105255         in pre-POSIX-200112 mode.
105256         * lib/strtoimax.c: Use #elif rather than #else #if.
105257         * lib/strftime.c (my_strftime) [!_LIBC && HAVE_TZNAME && HAVE_TZSET]:
105258         Remove function, now that we can rely on a working tzset function.
105259         [!_LIBC]: Ensure that the required autoconf test has been run.
105260         [!defined _NL_CURRENT && HAVE_STRFTIME]:
105261         Use underlying_strftime for %r.
105262         * lib/sha.c: Merge in some clean-up and optimization changes from
105263         glibc.
105264         * lib/sha.c (sha_stream) [BLOCKSIZE]: Move definition to top of file.
105265         Ensure that it is a multiple of 64.
105266         Rearrange loop exit tests so as to avoid performing an
105267         additional fread after encountering an error or EOF.
105268         * lib/realloc.c: Update copyright date.
105270 2003-08-15  Jim Meyering  <jim@meyering.net>
105271         and Paul Eggert  <eggert@twinsun.com>
105273         Merge from coreutils.
105274         * lib/readutmp.h (HAVE_UTMPX_H): Undef if struct utmp has the ut_exit
105275         member but strut utmpx does not.  Needed for AIX 4.3.3.
105276         (UT_EXIT_E_TERMINATION, UT_EXIT_E_EXIT): Define.
105278 2003-08-15  Jim Meyering  <jim@meyering.net>
105279         and Paul Eggert  <eggert@cs.ucla.edu>
105281         Merges from coreutils, etc.
105282         * m4/strftime.m4 (_jm_STRFTIME_PREREQS):
105283         Require gl_FUNC_TZSET_CLOBBER.
105284         * m4/readutmp.m4 (gl_READUTMP): Check for ut_exit.ut_exit,
105285         ut_exit.e_exit, ut_exit.ut_termination, and ut_exit.e_termination
105286         members.
105288 2003-08-14  Paul Eggert  <eggert@twinsun.com>
105290         Help the merge from coreutils.
105291         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): New macro.
105292         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Use it.
105293         * m4/tzset.m4: Use it too.
105295 2003-08-14  Paul Eggert  <eggert@twinsun.com>
105297         * modules/tzset: New file.
105299 2003-08-14  Jim Meyering  <jim@meyering.net>
105301         Merges from coreutils.
105302         * modules/fnmatch: Use the `$(FNMATCH_H)' notation for AC_REPLACED
105303         variable names, rather than @FNMATCH_H@.
105304         * modules/alloca: Likewise for $(ALLOCA_H).
105306         * modules/fnmatch (fnmatch.h): Use `$@' in the commands, in place of
105307         the three copies of the literal target, `fnmatch.h'.
105308         * modules/alloca (alloca.h): Likewise.
105310 2003-08-14  Jim Meyering  <jim@meyering.net>
105312         Merge from coreutils.
105313         * m4/tzset.m4: New file.
105314         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Move the
105315         MOUNTED_VMOUNT test to precede the MOUNTED_GETMNTENT1 tests, since
105316         otherwise, AIX 5.1 systems would end up using the latter.
105317         MOUNTED_GETMNTENT1 support is inadequate on such systems: 1) detecting
105318         whether a file system is remote doesn't work  2) the MOUNTED_VMOUNT
105319         code reports the HOSTNAME:/MOUNT_POINT, while the MOUNTED_GETMNTENT1
105320         code reports merely /MOUNT_POINT.  Reported by Mike Jetzer.
105322 2003-08-14  Jim Meyering  <jim@meyering.net>
105324         Merge from coreutils.
105325         * lib/obstack.h: Whitespace changes.
105326         * lib/mountlist.c: Remove anachronistic casts of xmalloc, xrealloc,
105327         and xcalloc return values.
105328         (read_filesystem_list) [MOUNTED_GETFSSTAT]:
105329         Use MNT_NOWAIT, rather than MNT_WAIT.  Otherwise, `df DIR' could
105330         hang on OSF/1 5.1 for DIR on both local and remote file systems.
105331         Reported by (and fix confirmed by) Nelson H. F. Beebe.
105332         (read_filesystem_list) [MOUNTED_VMOUNT]: Detect any
105333         error from mntctl.
105334         Use mntctl's return value to drive the entry-processing loop, since
105335         we can't rely on the value of the vmt_length member in the last
105336         entry.  On some systems doing so could result in exhausting
105337         virtual memory.  Based in part on a patch from Mike Jetzer.
105339 2003-08-14  Jim Meyering  <jim@meyering.net>
105340         and Paul Eggert  <eggert@twinsun.com>
105342         Merges from coreutils, plus other fixes.
105343         * lib/physmem.c: Merge in portability changes from gcc/libiberty
105344         to support AIX, IRIX, Tru64, and Windows.  See the ChangeLog there
105345         for credits and details.  Thanks to Kaveh Ghazi for helping
105346         to keep these files in sync.
105347         (ARRAY_SIZE): Define it.
105348         (physmem_total, physmem_available): Add comments. From Kaveh Ghazi.
105349         * lib/memcasecmp.c: Remove unnecessary parentheses after 'defined'.
105350         (memcasecmp): Don't assume size_t fits in unsigned int.
105351         Remove casts and duplicate code.
105352         * lib/md5.c: Include <string.h> and <stdlib.h> unconditionally.
105353         (memcpy): Remove definition.
105354         Merge in some clean-up and optimization changes from glibc.
105355         [BLOCKSIZE]: Move definition to top of file.
105356         Ensure that it is a multiple of 64.
105357         Rearrange loop exit tests so as to avoid performing an
105358         additional fread after encountering an error or EOF.
105359         * lib/md5.h (md5_uintptr): Define.
105360         * lib/makepath.c (CLEANUP_CWD): Report an error if we failed to
105361         return to the initial working directory.  Preserve errno
105362         for caller.
105363         * lib/idcache.c: Include "xalloc.h".
105364         (xmalloc, xrealloc): Remove decls.
105365         (getuser): Remove casts no longer required in C89.
105366         * lib/human.c: Include stdio.h, for sprintf.
105367         * lib/group-member.c: Include "xalloc.h".
105368         (xmalloc, xrealloc): Remove decls.
105369         (get_group_info): Remove casts no longer required in C89.
105370         * lib/getusershell.c (readname): Remove casts no longer required in
105371         C89.
105372         * lib/gettimeofday.c (rpl_gmtime, rpl_tzset): New functions.
105373         * lib/getline.c: Whitespace fix, from coreutils.
105375 2003-08-13  Paul Eggert  <eggert@twinsun.com>
105377         * m4/exclude.m4 (gl_EXCLUDE): Require AC_C_INLINE, AC_HEADER_STDC.
105378         Check for isascii.
105380         * m4/gettext.m4, iconv.m4, intdiv0.m4, inttypes-pri.m4, lib-link.m4,
105381         lib-prefix.m4, longdouble.m4, po.m4, progtest.m4, signed.m4:
105382         Undo previous (whitespace-only) change.
105384 2003-08-13  Paul Eggert  <eggert@twinsun.com>
105386         * lib/exclude.c: Include <ctype.h>
105387         (IN_CTYPE_DOMAIN): New macro.
105388         (is_space): New fn.
105389         (add_exclude_file): If LINE_END is a space, ignore trailing spaces
105390         and empty lines.
105392         * lib/argp-help.c, argp-parse.c, config.charset, getopt.h:
105393         Undo previous (whitespace-only) change.
105395 2003-08-13  Paul Eggert  <eggert@twinsun.com>
105397         * config/srclist-update: Change update back to the old behavior,
105398         leaving whitespace alone.  Use one 'sed' command rather than a
105399         pipeline.
105400         (fixlicense): Now a variable, not a function.
105401         (remove_trailing_blanks): Remove.
105402         (fixfile): Don't invoke unexpand or cat, or remove trailing blanks.
105403         * config/config.guess, config.sub, install-sh, missing, texinfo.tex:
105404         Undo previous (whitespace-only) change.
105406 2003-08-12  Paul Eggert  <eggert@twinsun.com>
105408         Merge from coreutils.
105409         * modules/euidaccess: Add lib_SOURCES, include for new
105410         file euidaccess.h
105412 2003-08-12  Paul Eggert  <eggert@twinsun.com>
105414         * m4/gettext.m4, iconv.m4, intdiv0.m4, inttypes-pri.m4, lib-link.m4,
105415         lib-prefix.m4, longdouble.m4, po.m4, progtest.m4, signed.m4:
105416         Normalize leading white space and remove trailing white space.
105418         Merge from coreutils
105419         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Check for euidaccess decl.
105421         * m4/lib-ld.m4, lib-link.m4, lib-prefix.m4: Regenerate from gettext
105422         0.12.1.  These files are now being upgraded automatically by
105423         ../config/srclist-update.
105425 2003-08-12  Paul Eggert  <eggert@twinsun.com>
105427         * lib/argp-help.c, argp-parse.c, config.charset, getopt.h:
105428         Normalize leading white space and remove trailing white space.
105429         * lib/ref-add.sin, ref-del.sin: Use '#' before empty line in copyright
105430         notice, as per ../config/srclist-update.
105432         Merge from coreutils.
105433         * lib/euidaccess.h: New file.
105434         * lib/euidaccess.c: Include it.
105435         * lib/.cppi-disable: Add printf-args.h, printf-parse.h, stdbool_.h,
105436         vasnprintf.h, vasprintf.h.  Remove strdup.c, gettext.h.
105437         * lib/regex.h, strdup.c, strtoll.c, strtoul.c: Normalize white space.
105439 2003-08-12  Paul Eggert  <eggert@twinsun.com>
105441         * config/srclist-update: Add copyright notice.
105442         (remove_id_lines, remove_trailing_blanks): New constants.
105443         (fixfile): Use them to normalize spacing a bit in copied files.
105444         * config/config.guess, config.sub, install-sh, missing, texinfo.tex:
105445         Normalize leading white space and remove trailing white space.
105447         * config/texinfo.tex: Sync with texinfo.
105449         * config/srclist.txt: Don't get regex.h, strdup.c, strtoll.c,
105450         strtoul.c from libc, to merge coreutils whitespace changes.
105452         * config/srclist.txt: Get the following m4 files from gettext:
105453         codeset.m4, gettext.m4, glibc21.m4, iconv.m4, intdiv0.m4,
105454         inttypes-pri.m4, lcmessage.m4, lib-ld.m4, lib-link.m4, lib-prefix.m4,
105455         longdouble.m4, nls.m4, po.m4, progtest.m4, signed.m4, wchar_t.m4,
105456         wint_t.m4.
105458 2003-08-12  Karl Berry  <karl@gnu.org>
105460         * config/srclist.txt: can't sync vasnprintf.c any more, changes have
105461         been made.
105463 2003-08-11  Paul Eggert  <eggert@twinsun.com>
105465         * modules/gnu-source, m4/gnu-source.m4:
105466         Remove; we're assuming Autoconf 2.54 or later now.
105467         Suggested by Bruno Haible.
105468         * MODULES.html.sh (func_all_modules): Remove gnu-source.
105470 2003-08-11  Bruno Haible  <bruno@clisp.org>
105472         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Also check for wcslen.
105474 2003-08-11  Bruno Haible  <bruno@clisp.org>
105476         * lib/vasnprintf.c (local_wcslen): New function, for Solaris 2.5.1.
105477         (vasnprintf): Use it instead of wcslen.
105479 2003-08-11  Bruno Haible  <bruno@clisp.org>
105481         * lib/stdbool_.h (_Bool): Undo last change; instead use a negative enum
105482         value to ensure that _Bool promotes to int. Use #define for _Bool when
105483         using the Solaris C compiler. Adds comments suggested by Paul Eggert.
105485 2003-08-10  Karl Berry  <karl@gnu.org>
105487         * lib/regex.h: update from libc (whitespace fix).
105489 2003-08-09  Paul Eggert  <eggert@twinsun.com>
105491         Merge some files from coreutils.  These changes were
105492         originally made by Jim Meyering.
105493         * lib/acl.c: Include <sys/types.h> before <sys/stat.h>;
105494         many older Unixes require this.
105495         * lib/alloca.c (alloca): Remove cast to argument of free;
105496         no longer needed in C89.
105497         * lib/alloca_.h, regex.h: Fix white space to match
105498         what GNU indent does.
105500 2003-08-09  Paul Eggert  <eggert@twinsun.com>
105502         * m4/regex.m4 (jm_INCLUDED_REGEX): Change "\201" to "\371";
105503         apparently Emacs's Unicode mode got confused before my 2003-08-05
105504         checkin.
105506 2003-08-08  Paul Eggert  <eggert@twinsun.com>
105508         * m4/extensions.m4: New file.
105509         * m4/timespec.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC):
105510         Require gl_USE_SYSTEM_EXTENSIONS.
105511         * m4/unlocked-io.m4 (jm_FUNC_GLIBC_UNLOCKED_IO):
105512         Require gl_USE_SYSTEM_EXTENSIONS rather than AC_GNU_SOURCE.
105514 2003-08-08  Paul Eggert  <eggert@twinsun.com>
105516         * MODULES.html.sh (func_all_modules): Add extensions, gnu-source.
105517         * modules/extensions, modules/gnu-source: New files.
105518         * modules/timespec, modules/unlocked-io: Depend on extensions.
105520 2003-08-07  Paul Eggert  <eggert@twinsun.com>
105522         * modules/restrict: New file.
105523         * MODULES.html.sh (func_all_modules): Add restrict.
105524         * modules/regex: Depend on restrict.
105526 2003-08-07  Paul Eggert  <eggert@twinsun.com>
105528         * m4/restrict.m4: New file.
105529         * m4/regex.m4 (jm_PREREQ_REGEX): Add gl_C_RESTRICT.
105531 2003-08-07  Bruno Haible  <bruno@clisp.org>
105533         * modules/getndelim2 (Makefile.am): Add the files to EXTRA_DIST, not
105534         lib_SOURCES, because getndelim2.m4 now uses AC_LIBOBJ(getndelim2).
105536 2003-08-07  Bruno Haible  <bruno@clisp.org>
105538         * m4/getndelim2.m4 (gl_GETNDELIM2): Use AC_LIBOBJ(getndelim2). This
105539         makes the module 'getndelim2' compatible with the module 'getline'.
105541 2003-08-05  Paul Eggert  <eggert@twinsun.com>
105543         * m4/regex.m4 (jm_INCLUDED_REGEX): Replace a single non-ASCII
105544         byte with "\201" to avoid glitches when editing that source file
105545         with multi-gnome-terminal.
105547 2003-08-05  Paul Eggert  <eggert@twinsun.com>
105549         * lib/bumpalloc.h: Remove.
105551 2003-08-05  Paul Eggert  <eggert@twinsun.com>
105553         * MODULES.html.sh (func_all_modules): Remove bumpalloc.
105554         * modules/bumpalloc: Remove.
105556 2003-08-04  Paul Eggert  <eggert@twinsun.com>
105558         * lib/getloadavg.c: Change copyright notice and spacing to conform to
105559         GNU coding style.
105561         Merge from coreutils.
105562         * lib/error.c [!USE_IN_LIBIO]: Omit this case; assume USE_IN_LIBIO is
105563         1. From glibc.
105564         * lib/getdate.y (date): Also accept dates like May-23-2003; suggestion
105565         from Karl Berry, implemented by Jim Meyering.
105566         * lib/getgroups.c: Include "xalloc.h" instead of declaring xalloc fns;
105567         from Dmitry V. Levin.
105568         Remove anachronistic cast of xrealloc.
105569         * lib/fnmatch_.h (__const): Remove.  Use 'const'.
105570         * lib/fnmatch_loop.c (NEW_PATTERN): Cast alloca return value to proper
105571         type. Otherwise, it wouldn't compile with at least /bin/cc on
105572         ymp-cray-unicos9.0.2.X.
105573         Combine two mostly-identical uses of alloca into one.
105574         Thanks to the Cray-Cyber project for access to a Cray Y-MP.
105576 2003-08-04  Dave Love  <d.love@dl.ac.uk>
105578         [From Emacs.]
105580         * lib/getloadavg.c: Check `__unix' as well as `unix'.  Use #ifdef, not
105581         #if.  Check HAVE_LIBKSTAT as well as LOAD_AVE_TYPE.  Check
105582         F_SETFD, not FD_SETFD.  Use HAVE_STRUCT_NLIST_N_UN_N_NAME, not
105583         obsolete NLIST_NAME_UNION.
105584         [__GNU__]: Undef BSD and FSCALE.
105585         [!NLIST_STRUCT]: Remove conditional definition of NLIST_STRUCT.
105587 2003-08-03  Paul Eggert  <eggert@twinsun.com>
105589         * lib/stdbool_.h (_Bool): Make it signed char, instead of
105590         an enum type, so that it's guaranteed to promote to int.  See:
105591         <http://mail.gnu.org/archive/html/bug-gnulib/2003-07/msg00124.html>
105593 2003-08-03  Karl Berry  <karl@gnu.org>
105595         * config/depcomp: update from automake.
105597 2003-07-31  Paul Eggert  <eggert@twinsun.com>
105599         * lib/strerror.c: Include config.h, limits.h.  Declare sprintf.
105600         (strerror): Don't assume that a printable int fits in 14 bytes.
105602 2003-07-31  Bruno Haible  <bruno@clisp.org>
105604         * modules/getpass-gnu: New file.
105605         * MODULES.html.sh (func_all_modules): Add getpass-gnu.
105607 2003-07-31  Bruno Haible  <bruno@clisp.org>
105609         * m4/getpass.m4 (gl_FUNC_GETPASS_GNU): New macro.
105611 2003-07-24  Karl Berry  <karl@gnu.org>
105613         * config/missing: update from automake.
105615 2003-07-24  Derek Robert Price  <derek@ximbiot.com>
105616             Bruno Haible  <bruno@clisp.org>
105618         * lib/getline.h (getline, getdelim): Change return type to ssize_t.
105619         * lib/getline.c (getline, getdelim): Likewise.
105620         Remove _GNU_SOURCE define; now it's defined in config.h through
105621         m4/getline.m4.
105623 2003-07-23  Karl Berry  <karl@gnu.org>
105625         * config/config.sub: update from prep.
105627 2003-07-22  Paul Eggert  <eggert@twinsun.com>
105629         * modules/xalloc (Depends-on): Add exitfail.
105630         * modules/xmemcoll: Likewise.
105632 2003-07-22  Paul Eggert  <eggert@twinsun.com>
105634         * lib/xalloc.h (XCALLOC, XREALLOC, CCLONE): Fix under- and
105635         over-parenthesization in macros.
105637         Sync with coreutils.
105639         * lib/xalloc.h (XMALLOC, XCALLOC, XREALLOC): Remove casts not
105640         required by C99.
105642         Use `exit_failure' for xalloc and xmemcoll instead of their own
105643         private exit-failure variables.
105644         * lib/xalloc.h (xalloc_exit_failure): Remove.
105645         * lib/xmalloc.c: Likewise.  Include exitfail.h.
105646         (xalloc_die): Use exit_failure instead of xalloc_exit_failure.
105647         * lib/xmemcoll.h (xmemcoll_exit_failure): Remove.
105648         * lib/xmemcoll.c: Likewise.  Include exitfail.h.
105649         (xmemcoll): Use exit_failure instead of xalloc_exit_failure.
105651 2003-07-20  Jim Meyering  <jim@meyering.net>
105653         * modules/closeout (Depends-on): Add exitfail.
105654         Suggestion from Bruno Haible.
105656 2003-07-19  Karl Berry  <karl@gnu.org>
105658         * config/config.sub: update from prep.
105660 2003-07-18  Paul Eggert  <eggert@twinsun.com>
105662         * lib/closeout.h (close_stdout_set_status, close_stdout_status):
105663         Remove.
105664         * lib/closeout.c: Likewise.  Include "closeout.h" right after config.h,
105665         to test that it can stand by itself.  Include "exitfail.h".
105666         Clients should set exit_failure instead.
105667         (EXIT_FAILURE): Remove; no longer needed.  Do not include <stdlib.h>.
105669 2003-07-18  Bruno Haible  <bruno@clisp.org>
105671         * modules/getndelim2: New file.
105672         * modules/getline: Share files with module getndelim2.
105673         * modules/getnline: Depend on getndelim2 instead of sharing files with
105674         it. Add getnline.c to lib_SOURCES.
105675         * MODULES.html.sh (func_all_modules): Add getndelim2.
105677 2003-07-18  Bruno Haible  <bruno@clisp.org>
105679         * m4/getndelim2.m4: New file.
105680         * m4/getline.m4 (AM_FUNC_GETLINE): Add AC_LIBOBJ of getndelim2.c and
105681         invoke gl_PREREQ_GETNDELIM2.
105682         (gl_PREREQ_GETLINE): Drop AC_HEADER_STDC, now done by
105683         gl_PREREQ_GETNDELIM2.
105684         * m4/getnline.m4 (gl_GETNLINE): Drop AC_HEADER_STDC, now done by
105685         gl_GETNDELIM2.
105687 2003-07-18  Bruno Haible  <bruno@clisp.org>
105689         * lib/getndelim2.h: New file.
105690         * lib/getndelim2.c: Make into a module of its own. Include config.h,
105691         getndelim2.h.
105692         (getndelim2): Make non-static. Change return type to ssize_t.
105693         * lib/getline.h: Change argument names.
105694         * lib/getline.c: Include getndelim2.h instead of getndelim2.c.
105695         * lib/getnline.c: Include getndelim2.h.
105697 2003-07-18  Andreas Schwab  <schwab@suse.de>
105699         * lib/memcoll.c (memcoll) [!HAVE_STRCOLL]: Clear errno.
105701 2003-07-17  Karl Berry  <karl@gnu.org>
105703         * config/config.sub: update from prep.
105705 2003-07-17  Bruno Haible  <bruno@clisp.org>
105707         * modules/getnline: New file.
105708         * modules/getline: Add lib/getndelim2.c to source file list.
105709         * MODULES.html.sh (func_all_modules): Add getnline.
105711 2003-07-17  Bruno Haible  <bruno@clisp.org>
105713         * m4/getnline.m4: New file.
105715 2003-07-17  Bruno Haible  <bruno@clisp.org>
105717         * m4/Makefile.am.in: Remove file.
105718         * m4/Makefile.am: Remove file.
105719         * m4/Makefile.in: Remove file.
105721 2003-07-17  Bruno Haible  <bruno@clisp.org>
105723         * lib/getnline.h: New file.
105724         * lib/getnline.c: New file.
105725         * lib/getndelim2.c: New file, extracted from getline.c.
105726         (getndelim2): Renamed from getdelim2, with added nmax argument.
105727         * lib/getline.c: Include getndelim2.c.
105728         (getdelim2): Moved out to getndelim2.c.
105729         (getline, getdelim): Update.
105731 2003-07-17  Bruno Haible  <bruno@clisp.org>
105733         * lib/Makefile.am: Remove file.
105734         * lib/Makefile.in: Remove file.
105736 2003-07-17  Bruno Haible  <bruno@clisp.org>
105738         * configure.in: Remove file.
105739         * Makefile.in: Remove file.
105741 2003-07-17  Bruno Haible  <bruno@clisp.org>
105743         * MODULES.html.sh: Put the </BODY> right before </HTML>.
105745 2003-07-16  Karl Berry  <karl@gnu.org>
105747         * config/srclist-update: was running fixlicense twice, which caused
105748                 texinfo.tex to be nullified for some reason.  Simplify,
105749                 $gplsrc is no longer needed as far as I can see?
105751 2003-07-16  Jim Meyering  <jim@meyering.net>
105753         * modules/save-cwd: Depend on xgetcwd.  From Derek Price.
105755 2003-07-15  Paul Eggert  <eggert@twinsun.com>
105757         * config/srclist.txt: Get the following files from gettext-runtime/intl
105758         instead: config.charset, localcharset.c, localcharset.h, ref-add.sin,
105759         ref-del.sin.  From Bruno Haible.
105760         * config/srclist-update (fixfile): Change grep pattern again, since the
105761         previous fix didn't work (there was another trailing $).  Use
105762         '[$]' to escape the $s.
105764 2003-07-15  Karl Berry  <karl@gnu.org>
105766         * lib/vasnprintf.c: update from gettext.
105768 2003-07-15  Karl Berry  <karl@gnu.org>
105770         * config/srclist-update (fixfile): Change grep pattern, since 'Id'
105771         gets expanded when surrounded by '$'.
105773 2003-07-15  Jim Meyering  <jim@meyering.net>
105775         * modules/save-cwd: Don't depend on error.  From Derek Price.
105777 2003-07-15  Jim Meyering  <jim@meyering.net>
105779         * lib/makepath.c (make_path): Enclose diagnostic in _(...).
105781 2003-07-14  Simon Josefsson  <jas@extundo.com>
105783         * modules/mempcpy: New file.
105784         * MODULES.html.sh (func_all_modules): Add mempcpy.
105786 2003-07-14  Simon Josefsson  <jas@extundo.com>
105788         * m4/mempcpy.m4: New file.
105790 2003-07-14  Simon Josefsson  <jas@extundo.com>
105792         * lib/mempcpy.h: New file.
105793         * lib/mempcpy.c: New file.
105795 2003-07-14  Paul Eggert  <eggert@twinsun.com>
105797         * modules/getdate, modules/posixtm: Depend on mktime.
105799 2003-07-14  Paul Eggert  <eggert@twinsun.com>
105801         * lib/ceill.c, expl.c, floorl.c, frexpl.c, ldexpl.c, mathl.h,
105802         sincosl.c, sqrtl.c, trigl.c, trigl.h, poll.c, poll_.h, mkstemp.c,
105803         unicodeio.c, unicodeio.h, unlocked-io.h:
105804         Switch from LGPL to GPL.
105806 2003-07-14  Paul Eggert  <eggert@twinsun.com>
105808         * lib/asnprintf.c, asprintf.c, config.charset, gettext.h,
105809         localcharset.c, localcharset.h, mkdtemp.c, printf-args.c,
105810         printf-args.h, printf-parse.c, printf-parse.h, ref-add.sin,
105811         ref-del.sin, setenv.c, unsetenv.c, vasnprintf.c, vasnprintf.h,
105812         vasprintf.c, vasprintf.h: Regenerate.  These files are now being
105813         updated automatically by ../config/srclist-update.  This changes
105814         their license from LPGL to GPL.
105816 2003-07-14  Paul Eggert  <eggert@twinsun.com>
105818         * config/srclist.txt: Add tons more gettext files.  $GETTEXT is now
105819         assumed to refer to the root of the most recent stable gettext version.
105820         * config/srclistvars.sh: Add defaults for eggert.
105821         * config/srclist-update: Convert LGPL to GPL in shell scripts, too.
105822         Match "This program" as well as "The program".  This is needed
105823         for gettext.
105825 2003-07-14  Jim Meyering  <jim@meyering.net>
105827         Don't emit diagnostics.  Let callers do that.
105828         * lib/save-cwd.c: Don't include "error.h".
105829         (save_cwd): Don't call error.  Ensure that errno is valid
105830         when returning nonzero.
105832         * lib/save-cwd.h (restore_cwd): Update prototype.
105833         * lib/save-cwd.c (restore_cwd): Remove two parameters.
105834         Simplify.  Don't call error upon failure.  Let callers do that.
105835         (save_cwd): Mention that Irix 5.3 has the same problem as SunOS 4
105836         when auditing is enabled.  But don't bother updating the #if.
105838 2003-07-11  Alexandre Duret-Lutz  <adl@gnu.org>
105840         * lib/obstack.h (__INT_TO_PTR): Revert change of 2003-03-13;
105841         it breaks C++ compilation.
105842         [!__GNUC__ || !__STDC__] (obstack_finish): Cast result to void*.
105844 2003-07-10  Simon Josefsson  <jas@extundo.com>
105846         * modules/strchrnul (Makefile.am): Add strchrnul.h.
105848 2003-07-10  Jim Meyering  <jim@meyering.net>
105850         * m4/clock_time.m4: Remove trailing blank.
105851         * m4/intmax_t.m4: Likewise.
105853 2003-07-10  Jim Meyering  <jim@meyering.net>
105855         * lib/vasnprintf.c: Remove trailing blanks.
105856         Make cpp indentation consistent.
105858 2003-07-09  Paul Eggert  <eggert@twinsun.com>
105860         * lib/alloca_.h, euidaccess.c, getpass.c, memrchr.c, obstack.h,
105861         posixver.c, strftime.c, strnlen.c, strverscmp.c:
105862         Switch from LGPL to GPL.
105864 2003-07-09  Paul Eggert  <eggert@twinsun.com>
105866         * config/srclist.txt: Sort sublists.  Add
105867         $LIBCSRC/sysdeps/generic/strtoul.c. In comments, add more libc files
105868         that differ from gnulib for one reason or another; we'd like this list
105869         to be smaller but for now let's document what we have.
105871 2003-07-08  Paul Eggert  <eggert@twinsun.com>
105873         * config/srclist-update: Port to POSIX 1003.1-2001 hosts by avoiding
105874         the use of GNU extensions.  Change "x=`eval echo $x`" to the shorter
105875         and sweeter "eval x=$x".
105876         * config/srclist.txt: Get lib/argp* from glibc.
105878 2003-07-07  Paul Eggert  <eggert@twinsun.com>
105880         * lib/mktime.c: Fix some boundary cases and remove need for floating
105881         point.
105883         Issue a compile-time diagnostic if time_t is floating point, or if
105884         two's complement arithmetic is not in effect, or if arithmetic
105885         right shift does not propagate the sign.  These assumptions were
105886         all in the original code but they weren't checked.
105888         (TIME_T_MIDPOINT, verify): New macros.
105889         (__isleap): Remove; it has integer overflow problems.
105890         (leapyear): New function, without those problems.
105891         (ydhms_tm_diff): Remove; splitting into two parts.
105892         (ydhms_diff): New function, containing the arithmetic part of
105893         the old ydhms_tm_diff function.  Issue a compile-time
105894         diagnostic if we are not using C99 integer division.
105895         Avoid casts when possible.
105896         (guess_time_tm): New function, containing the checking part of
105897         the old ydhms_tm_diff function.  Return the new value, rather than
105898         the difference between it and the old.  Accept a new argument T
105899         so that *T specifies the old value.  Check for overflow in the result.
105901         (__mktime_internal): Use a time_t offset, not a long int offset.
105902         This undoes the 2003-06-04 change, which is no longer needed now
105903         that we have better overflow checking.
105904         (localtime_offset): Likewise.
105906         (__mktime_internal): Avoid harmful overflow on hosts where time_t
105907         and long are 64-bit but int is only 32-bit.
105908         (ydhms_diff): Use long int to store year1 and yday1.
105909         Issue a compile-time diagnostic if long int is not wide enough.
105911         (__mktime_internal): Use long int to store adjusted year and yday.
105912         Use plain C rather than preprocessor commands, if that doesn't
105913         affect efficiency.
105914         Check for overflow (and try to repair) after each probe
105915         rather than checking only at the very end.  This avoids some bugs
105916         (e.g., southern hemisphere, behind GMT, and GMT offset at minimum time
105917         does not equal GMT offset at maximum time).
105918         Use integer to check for overflow rather than floating point; this
105919         is more portable to non-IEEE hosts, and is a tad faster.
105920         When we detect that we are oscillating between two values,
105921         don't check whether tm_isdst has the requested value, since
105922         we already know the answer.  When tm_isdst has the wrong value,
105923         use a different heuristic to find the right one, based on the
105924         extreme values actually observed in practice in tz2003a,
105925         rather than the (overly optimistic) "previous 3 calendar quarters".
105927         (not_equal_tm, print_tm, check_result): Use "const T" rather than
105928         "T const" to accommodate glibc style.
105929         (check_result): Use less-confusing report format.  "long" -> "long int.
105930         (main): Likewise.
105931         Don't loop if the iteration overflows time_t.
105932         Allow a negative step in the iteration.
105934 2003-07-06  Karl Berry  <karl@gnu.org>
105936         * config/depcomp: update from automake.
105937         * config/config.sub: update from prep.
105939 2003-07-03  Karl Berry  <karl@gnu.org>
105941         * config/config.guess: update from prep.
105943 2003-07-01  Paul Eggert  <eggert@twinsun.com>
105945         * m4/xreadlink.m4 (gl_XREADLINK): Don't check for sys/types.h, since
105946         xreadlink.c now includes it unconditionally.
105948 2003-07-01  Paul Eggert  <eggert@twinsun.com>
105950         * lib/xreadlink.c: Include <sys/types.h> unconditionally, instead of
105951         having it depend on HAVE_SYS_TYPES_H.
105953 2003-07-01  Bruno Haible  <bruno@clisp.org>
105955         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Don't include <unistd.h>.
105956         <sys/types.h> should be sufficient.
105957         Reported by Paul Eggert.
105959 2003-06-26  Karl Berry  <karl@gnu.org>
105961         * config/depcomp: update from automake.
105963 2003-06-26  Bruno Haible  <bruno@clisp.org>
105965         * modules/human: Depend on module stdbool.
105967 2003-06-25  Bruno Haible  <bruno@clisp.org>
105969         * modules/readlink: New file.
105970         * modules/xreadlink: Depend on it.
105971         * MODULES.html.sh (func_all_modules): Add readlink.
105973 2003-06-25  Bruno Haible  <bruno@clisp.org>
105975         * m4/readlink.m4: New file.
105977 2003-06-25  Bruno Haible  <bruno@clisp.org>
105979         * lib/readlink.c: New file.
105981 2003-06-22  Karl Berry  <karl@gnu.org>
105983         * config/srclist.txt: update mkinstalldirs from automake.
105984         * config/mkinstalldirs: update.
105986 2003-06-22  Bruno Haible  <bruno@clisp.org>
105988         Portability to mingw32.
105989         * m4/ssize_t.m4: New file, from GNU gettext.
105990         * m4/safe-read.m4 (gl_PREREQ_SAFE_READ): Require gt_TYPE_SSIZE_T.
105991         * m4/xreadlink.m4 (gl_XREADLINK): Require gt_TYPE_SSIZE_T.
105993 2003-06-22  Bruno Haible  <bruno@clisp.org>
105995         * modules/safe-read: Add m4/ssize_t.m4.
105996         * modules/xreadlink: Add m4/ssize_t.m4.
105998 2003-06-20  Bruno Haible  <bruno@clisp.org>
106000         Assume C89, so PARAMS isn't needed.
106001         * lib/unicodeio.h (PARAMS): Remove.
106002         * lib/unicodeio.c: Don't use PARAMS.
106004 2003-06-18  Karl Berry  <karl@gnu.org>
106006         * config/config.{guess,sub}: update from prep.
106008 2003-06-18  Jim Meyering  <jim@meyering.net>
106010         Merge changes from coreutils.
106011         * lib/readutmp.c: Include <string.h> and <stdlib.h> unconditionally.
106012         Remove explicit declarations of xmalloc and realloc.
106013         Include xalloc.h.
106014         (read_utmp): Remove anachronistic cast of xmalloc.
106016 2003-06-17  Paul Eggert  <eggert@twinsun.com>
106018         Assume C89, so PARAMS isn't needed.
106019         * lib/backupfile.h (PARAMS): Remove.  All uses removed.
106020         * lib/closeout.h, lib/dirname.h, lib/filemode.h, lib/fsusage.h,
106021         lib/getdate.h, lib/getline.h, lib/group-member.h, lib/hard-locale.h,
106022         lib/hash.h, lib/linebuffer.h, lib/long-options.h, lib/makepath.h,
106023         lib/memcasecmp.h, lib/memcoll.h, lib/modechange.h, lib/mountlist.h,
106024         lib/path-concat.h, lib/physmem.h, lib/posixtm.h, lib/quote.h,
106025         lib/readutmp.h, lib/same.h, lib/save-cwd.h, lib/savedir.h,
106026         lib/stdio-safer.h, lib/strtoimax.c, lib/strverscmp.h,
106027         lib/unistd-safer.h, lib/version-etc.h, lib/xalloc.h, lib/xreadlink.h,
106028         lib/xstrtod.h, lib/xstrtol.h: Likewise.
106029         * lib/filemode.h, lib/hard-locale.h, lib/memcoll.h, lib/modechange.h,
106030         lib/physmem.h, lib/same.h, lib/strverscmp.h: Do not include config.h;
106031         no longer needed. Anyway, config.h should always be included before any
106032         other file.
106034 2003-06-11  Simon Josefsson  <jas@extundo.com>
106036         * modules/sysexits: New file.
106037         * MODULES.html.sh (func_all_modules): Add sysexits.
106039 2003-06-11  Simon Josefsson  <jas@extundo.com>
106041         * lib/sysexit_.h: New file.
106043 2003-06-11  Derek Price  <derek@ximbiot.com>
106045         * lib/stat.c [LSTAT]: Compile/use slash_aware_lstat only if it is
106046         necessary.
106048 2003-06-11  Bruno Haible  <bruno@clisp.org>
106050         * m4/sysexits.m4: New file.
106052 2003-06-10  Simon Josefsson  <jas@extundo.com>
106054         * lib/argp.h: New file, from glibc.
106055         * lib/argp-ba.c: New file, from glibc.
106056         * lib/argp-eexst.c: New file, from glibc.
106057         * lib/argp-fmtstream.c: New file, from glibc.
106058         * lib/argp-fmtstream.h: New file, from glibc.
106059         * lib/argp-fs-xinl.c: New file, from glibc.
106060         * lib/argp-help.c: New file, from glibc.
106061         * lib/argp-namefrob.h: New file, from glibc.
106062         * lib/argp-parse.c: New file, from glibc.
106063         * lib/argp-pv.c: New file, from glibc.
106064         * lib/argp-pvh.c: New file, from glibc.
106065         * lib/argp-xinl.c: New file, from glibc.
106067 2003-06-10  Simon Josefsson  <jas@extundo.com>
106069         * modules/strchrnul: New file.
106071 2003-06-10  Simon Josefsson  <jas@extundo.com>
106073         * modules/argp: New file.
106075 2003-06-10  Simon Josefsson  <jas@extundo.com>
106077         * m4/strchrnul.m4: New file.
106079 2003-06-10  Simon Josefsson  <jas@extundo.com>
106081         * lib/strchrnul.h: New file.
106082         * lib/strchrnul.c: New file.
106084 2003-06-10  Bruno Haible  <bruno@clisp.org>
106086         * MODULES.html.sh (func_all_modules): Add strchrnul and argp.
106088 2003-06-07  Karl Berry  <karl@gnu.org>
106090         * config/config.{guess,sub}: update from prep.
106092 2003-06-07  Jim Meyering  <jim@meyering.net>
106094         * modules/strtod: Use $(...) notation, not @...@ for
106095         AC_REPLACE'd variables.
106096         * modules/localcharset: Likewise.
106098 2003-06-07  Jim Meyering  <jim@meyering.net>
106100         * lib/readtokens.h: Put `Free Software Foundation, Inc.'
106101         in place of my name in the copyright comment.
106102         Remove definition and uses of __P.
106104         From coreutils.
106105         * lib/stat.c: Don't declare xmalloc explicitly.
106106         Instead, include "xalloc.h".
106107         * lib/readtokens.c (readtokens): Remove anachronistic casts of xmalloc,
106108         xrealloc, and xcalloc return values.
106109         * lib/xgetcwd.c (xgetcwd): Include "xgetcwd.h".
106110         Improve comment.
106111         * lib/xgetcwd.h: Remove definition/uses of PARAMS.
106113 2003-06-07  Bruno Haible  <bruno@clisp.org>
106115         * modules/poll (Makefile.am): Use explicit creation rule for poll.h, to
106116         avoid AC_CONFIG_LINKS.
106117         * modules/fnmatch (Makefile.am): Use explicit creation rule for
106118         fnmatch.h, to avoid AC_CONFIG_LINKS.
106119         * modules/alloca (Makefile.am): Make creation of alloca.h Ctrl-C safe.
106121 2003-06-07  Bruno Haible  <bruno@clisp.org>
106123         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH, gl_FUNC_FNMATCH_POSIX,
106124         gl_FUNC_FNMATCH_GNU): Set FNMATCH_H instead of invoking
106125         AC_CONFIG_LINKS. Needed to allow for a different name of the lib
106126         directory.
106127         * m4/poll.m4 (gl_FUNC_POLL): Set POLL_H instead of invoking
106128         AC_CONFIG_LINKS. Needed to allow for a different name of the lib
106129         directory.
106131 2003-06-06  Jim Meyering  <jim@meyering.net>
106133         Merge from coreutils.
106134         * lib/same.c: (same_name): Declare *_basename locals to be `const'.
106135         Consolidate declarations and initializations of *_base* locals.
106137         Merge from coreutils.
106138         This avoids a core dump on systems without GNU putenv,
106139         when running `env -u SOME_ALREADY_UNSET_VARIABLE'.
106140         * lib/putenv.c (__set_errno, LOCK, UNLOCK): Define.
106141         (unsetenv): New static function, from GNU libc.
106142         (rpl_putenv): Use it.
106144         * lib/modechange.c: Remove trailing blanks.
106146         Merge from coreutils.
106147         * lib/fsusage.c: Remove declaration of statfs.
106148         It conflicted with one from OSF/1 5.1 in <sys/mount.h>.
106150         * lib/posixtm.c: Include <stdbool.h> unconditionally.
106152 2003-06-06  Jim Meyering  <jim@meyering.net>
106154         * lib/stdbool_.h: Renamed from stdbool.h.in.
106156 2003-06-06  Jim Meyering  <jim@meyering.net>
106157             Bruno Haible  <bruno@clisp.org>
106159         * modules/stdbool: Reflect renaming: stdbool.h.in -> stdbool_.h.
106160         Adjust Makefile.am snippet not to redirect directly to target.
106161         Use $(STDBOOL_H) notation, not @STDBOOL_H@ for AC_REPLACE'd variables.
106163 2003-06-05  Paul Eggert  <eggert@twinsun.com>
106165         * lib/mktime.c (__mktime_internal): When resolving a tm_isdst
106166         mismatch, look in future quarters as well as past.  This fixes a
106167         bug when processing fall-backwards gaps immediately after a long
106168         period of daylight-saving time.
106170         * lib/mktime.c: Assume freestanding C89 or better.
106171         (HAVE_LIMITS_H): Remove.  Assume it's 1.
106172         (__P): Remove; not used.
106173         (CHAR_BIT, INT_MIN, INT_MAX): Remove; <limits.h> defines them.
106174         (mktime, not_equal_tm, print_tm, check_result,
106175         main): Use prototypes.  Use const * where appropriate.
106176         (main): Fix typo in testing code that uncovered by above changes.
106177         (Local Variables): Remove -DHAVE_LIMITS_H from compile-command.
106179 2003-06-04  Paul Eggert  <eggert@twinsun.com>
106181         * m4/human.m4 (gl_HUMAN): Require AM_STDBOOL_H.  Check for
106182         locale.h, localeconv.  This merges changes from coreutils.
106184         * m4/mktime.m4 (AC_FUNC_MKTIME): New macro, taken from Autoconf CVS.
106185         It can be removed after the next Autoconf is released.
106186         * m4/exclude.m4 (gl_EXCLUDE): Don't check for sys/types.h; no loner
106187         needed.
106189 2003-06-04  Paul Eggert  <eggert@twinsun.com>
106191         * lib/mktime.c: Fix Debian bug 177940
106192         <http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=177940>.
106193         (localtime_offset): Now long int, not time_t, because we want it
106194         to be guaranteed to be signed.  All uses changed.
106195         (__mktime_internal): If overflow would occur when adding offset,
106196         don't add it.
106198         Merge 'human' changes from coreutils.  Rewrite to support
106199         locale-specific notations like thousands separators.
106200         * lib/human.c: Simplify authorship notice.
106201         Include human.h immediately after config.h.
106202         <sys/types.h>, <stdio.h>: Do not include; no longer needed.
106203         <limits.h>: Do not include, since human.h does.
106204         (SIZE_MAX, UINTMAX_MAX): New macros.
106205         <strings.h>: Include if HAVE_STRINGS_H, not if !HAVE_STRING_H.
106206         <locale.h>: Include if HAVE_LOCALE_H and HAVE_LOCALECONV.
106207         (HUMAN_READABLE_SUFFIX_LENGTH_MAX): New macro.
106208         (power_letter): Renamed from suffixes.
106209         (generate_suffix_backwards): Remove.
106210         (adjust_value): Now takes int style (because of human.h changes)
106211         and long double value (for greater precision on some platforms).
106212         (group_number): New function.
106213         (human_readable): Use it.  Use integer options, not enum.
106214         Put the options before the sizes in the arg list.
106215         Support all the new options.
106216         The old human_readable function has been removed;
106217         use inttostr.h instead.
106218         (human_readable, default_block_size, humblock):
106219         Use uintmax_t, not int, for block sizes.
106220         (human_readable_inexact, block_size_types): Remove.
106221         (block_size_opts): New constant.
106222         (human_options): Renamed from human_block_size, with new signature
106223         that allows block sizes up to UINTMAX_MAX.  All callers changed.
106224         * lib/human.h: Add copyright and authorship notice.
106225         Include <limits.h> and <stdbool.h> unconditionally.
106226         (PARAMS): Remove.  All uses removed.
106227         (LONGEST_HUMAN_READABLE): Add support for thousands separator.
106228         (enum human_inexact_style): Remove tag; now a nameless enum.
106229         (human_floor, human_ceiling, human_round_to_even): Now have
106230         values 2, 0, 1 rather than -1, 1, 0.
106231         (human_group_digits, human_suppress_point_zero, human_autoscale,
106232         human_base_1024, human_SI, human_B): New constants.
106233         (human_readable_inexact, human_block_size): Remove.
106234         (human_readable): Size args are now uintmax_t, not int.
106235         (human_options): New decl.
106237         * lib/exclude.c: (new_exclude, add_exclude): Remove casts that are
106238         unnecessary now that we assume C89 or better.  This change
106239         imported from coreutils.
106241         * lib/mktime.c (__mktime_internal): Do not reject negative timestamps
106242         arbitrarily.  This is the same patch as 2003-05-28, but it got lost
106243         in the 2003-05-30 sync from glibc.
106245         .h files should stand alone, but we shouldn't include <sys/types.h>
106246         if we can get away with just <stddef.h>.
106248         * lib/__fpending.h, addext.c, backupfile.c, exclude.c, getline.c,
106249         malloc.c, putenv.c, realloc.c, strcasecmp.c: Include <stddef.h>
106250         rather than <sys/types.h>, as we merely need size_t.
106251         * lib/dirname.h, memcoll.h, xalloc.h, xmemcoll.h: Include <stddef.h>,
106252         to get size_t.
106253         * lib/hash.h, linebuffer.h, readtokens.h, stdio-safer.h, version-etc.h:
106254         Include <stdio.h>, to get FILE.
106255         * lib/memcasecmp.c: Don't include <sys/types.h>, as we can assume
106256         memcasecmp.h has included <stddef.h> and all we need is size_t.
106257         * lib/memcoll.c: Include "memcoll.h", which gets us size_t and checks
106258         our interface, instead of including <sys/types.h>
106260 2003-06-04  Paul Eggert  <eggert@twinsun.com>
106262         * config/srclist.txt ($LIBCSRC/time/mktime.c lib gpl): Comment out for
106263         now, as glibc mktime is buggy on non-glibc systems.
106265 2003-06-03  Karl Berry  <karl@gnu.org>
106267         * config/config.sub: update from prep.
106269 2003-06-02  Paul Eggert  <eggert@twinsun.com>
106271         [from coreutils]
106272         Fix some minor time-related bugs with POSIX time arguments.
106273         Some valid time stamps were being rejected (notably -1, and
106274         time stamps before 1900 on 64-bit hosts).  And some invalid
106275         time stamps were being accepted, e.g. September 31.
106277         * lib/posixtm.h (posixtime): Return bool instead of time_t, so
106278         that we can return (time_t) -1 successfully.
106279         * lib/posixtm.c: Likewise.
106280         [HAVE_STDBOOL_H]: Include <stdbool.h>.
106281         (bool, false, true) [!HAVE_STDBOOL_H]: New type.
106282         (t): Remove static var.
106283         (year, posix_time_parse): Now takes struct tm * arg to modify, instead
106284         of static var.  All uses changed.
106285         (year): Do not reject years before 1900; they can occur with
106286         64-bit time_t.
106287         (posix_time_parse): Do not check for out-of-range components;
106288         that is now the caller's responsibility, since our checks were
106289         only approximations.
106290         (posixtime): Use mktime to check for out-of-range components,
106291         since it knows them exactly.
106292         If mktime returns (time_t) -1, check whether an error actually occurred
106293         by invoking localtime on -1.
106294         (main) [TEST_POSIXTIME]: Check for input data errors, and report
106295         posixtime failures better.
106296         Improve the test data (in comments only).
106298 2003-06-02  Karl Berry  <karl@gnu.org>
106300         * config/mkinstalldirs (version): new variable.
106301         (--version): new option.
106302         (usage): improve message.
106304 2003-05-30  Karl Berry  <karl@gnu.org>
106306         * lib/mktime.c: update from libc.
106308 2003-05-30  Bruno Haible  <bruno@clisp.org>
106310         * modules/gettext: Add files m4/nls.m4 and m4/po.m4.
106311         * config/config.rpath: Upgrade to gettext-0.12.1.
106313 2003-05-30  Bruno Haible  <bruno@clisp.org>
106315         * m4/gettext.m4: Upgrade to gettext-0.12.1.
106316         * m4/nls.m4: New file, from gettext-0.12.1.
106317         * m4/po.m4: New file, from gettext-0.12.1.
106318         * m4/progtest.m4: Upgrade to gettext-0.12.1.
106320 2003-05-30  Bruno Haible  <bruno@clisp.org>
106322         * lib/config.charset: Upgrade to gettext-0.12.1 and libiconv-1.9.1.
106323         * lib/localcharset.h: Likewise.
106324         * lib/localcharset.c: Likewise.
106326 2003-05-29  Karl Berry  <karl@gnu.org>
106328         * config/config.rpath: update from gettext.
106330 2003-05-28  Paul Eggert  <eggert@twinsun.com>
106332         Assume the headers required for C89 freestanding compilers.
106333         * m4/backupfile.m4 (gl_BACKUPFILE): Don't check for limits.h.
106334         * m4/fsusage.m4 (gl_PREREQ_FSUSAGE_EXTRA): Likewise.
106335         * m4/human.m4 (gl_HUMAN): Likewise.
106336         * m4/pathmax.m4 (gl_PATHMAX): Likewise.
106337         * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Likewise.
106338         * m4/userspec.m4 (gl_USERSPEC): Likewise.
106339         * m4/xreadlink.m4 (gl_XREADLINK): Likewise.
106340         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
106341         * m4/quote.m4 (gl_QUOTE): Don't check for stddef.h.
106343 2003-05-28  Paul Eggert  <eggert@twinsun.com>
106345         Assume the headers required for C89 freestanding compilers.
106346         * lib/addext.c, lib/backupfile.c, lib/fsusage.c, lib/human.c,
106347         lib/pathmax.h, lib/rpmatch.c, lib/userspec.c, lib/xreadlink.c,
106348         lib/xstrtol.c: Include <limits.h> without checking for HAVE_LIMITS_H.
106349         * lib/backupfile.c, lib/fsusage.c, lib/hash.c, lib/human.c,
106350         lib/safe-read.c, lib/userspec.c, lib/xstrtol.c (CHAR_BIT): Don't
106351         define, since <limits.h> is guaranteed to do that.
106352         * lib/fatal.c: Include <stdarg.h> without checking for __STDC__.
106353         * lib/exclude.c: Include <stdbool.h> unconditionally.
106354         * lib/tempname.c: Include <stddef.h> unconditionally.
106355         * lib/hash.c: Include <limits.h>, since we no longer define CHAR_BIT.
106356         * lib/modechange.c, rpmatch.c (NULL): Don't define, since
106357         <stddef.h> does that.
106358         * lib/quote.c: Dont include <stddef.h> or <sys/types.h>; not needed.
106359         * lib/safe-read.c (INT_MAX): Don't define, since <limits.h> does that.
106360         * lib/safe-read.c (TYPE_MINIMUM, TYPE_MAXIMUM): Remove; no longer
106361         needed.
106362         * lib/xstrtol.c: Likewise.
106363         * lib/safe-read.c: Remove TYPE_SIGNED; no longer needed.
106364         * lib/savedir.c: Include <stddef.h> instead of defining NULL.
106366         * lib/addext.c (addext): Use assignment rather than cast, to avoid
106367         warnings on some platforms.
106369         * lib/mktime.c (__mktime_internal): Do not reject negative timestamps
106370         arbitrarily.
106372 2003-05-26  Jim Meyering  <jim@meyering.net>
106374         Merge in a change from coreutils:
106375         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Test the cache variable, not one
106376         that is guaranteed to be `no'.  Use `no_such_member' to indicate
106377         that condition, rather than `-1' which is slightly misleading.
106378         Change the name of the cache variable to have the gl_ prefix.
106379         Prompted by a patch from Richard Dawe for DJGPP.
106381 2003-05-24  Karl Berry  <karl@gnu.org>
106383         * config/config.guess: update from prep.
106385 2003-05-22  Karl Berry  <karl@gnu.org>
106387         * gnulib-tool (func_usage): =LIBRARY not =libRARY in help msg.
106389 2003-05-20  Karl Berry  <karl@gnu.org>
106391         * config/config.guess: update from prep.
106393 2003-05-18  Karl Berry  <karl@gnu.org>
106395         * config/srclistvars.sh (TEXMF): use TEXMFROOT instead, since TEXMF
106396         might actually be set by the user.
106398         * config/depcomp, install-sh, mdate-sh: update from automake.
106400 2003-05-17  Bruno Haible  <bruno@clisp.org>
106402         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Fix a quoting bug leading to an
106403         invalid expansion for AC_EGREP_CPP.
106404         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Likewise.
106405         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Likewise.
106406         Suggested by Akim Demaille <akim@epita.fr> in
106407         http://mail.gnu.org/archive/html/bug-autoconf/2003-05/threads.html
106409 2003-05-12  Jim Meyering  <jim@meyering.net>
106411         * lib/strftime.c (my_strftime): Let the `-' (no-pad) flag affect
106412         the space-padded-by-default conversion specifiers, %e, %k, %l.
106414 2003-05-12  Bruno Haible  <bruno@clisp.org>
106416         * lib/linebreak.c (iconv_string_length): Don't return -1 just because
106417         the string is longer than 4 KB.
106419 2003-05-11  Karl Berry  <karl@gnu.org>
106421         * config/config.{guess,sub}: update from prep.
106423 2003-05-09  Bruno Haible  <bruno@clisp.org>
106425         * modules/error: Add m4/strerror_r.m4 to file list.
106427 2003-05-03  Bruno Haible  <bruno@clisp.org>
106429         Upgrade to Unicode-4.0.
106430         * lib/linebreak.c (nonspacing_table_data): Change width of U+00AD,
106431         U+0350..U+0357, U+035D..U+035F, U+0600..U+0603, U+0610..U+0615,
106432         U+0656..U+0658, U+0A01, U+0AE2..U+0AE3, U+0CBC, U+17B4..U+17B5,
106433         U+17DD, U+1920..U+1922, U+1927..U+192B, U+1932, U+1939..U+193B
106434         from 1 to 0. Change width of U+0CBF, U+0CC6, U+180E from 0 to 1.
106435         (uc_width): Change width of U+4DC0..U+4DFF from 2 to 1. Change width
106436         of U+2A6D7..U+2F7FF, U+2FA1E..U+2FFFD, U+30000..U+3FFFD from 1 to 2.
106437         Change width of U+E0100..U+E01EF from 1 to 0.
106439 2003-04-25  Jim Meyering  <jim@meyering.net>
106441         * lib/copy-file.c (copy_file_preserving): Declare buf_size to be
106442         of type size_t, not int.
106444 2003-04-25  Bruno Haible  <bruno@clisp.org>
106446         * lib/copy-file.c: Include <stddef.h>, for size_t.
106448 2003-04-21  Paul Eggert  <eggert@twinsun.com>
106450         * m4/error.m4 (gl_ERROR): Do not put under dynamic conditions some
106451         code which expansion is under static control.  Patch imported from
106452         Akim Demaille's patch to Bison; see
106453         <http://mail.gnu.org/archive/html/bison-patches/2003-03/msg00057.html>.
106455 2003-04-14  Bruno Haible  <bruno@clisp.org>
106457         * m4/error.m4 (jm_PREREQ_ERROR): Use AC_FUNC_VPRINTF.
106459 2003-04-11  Jim Meyering  <jim@meyering.net>
106461         Merge changes from Coreutils.
106463         2003-03-22  Jim Meyering  <jim@meyering.net>
106465         * lib/strftime.c (widen): Cast alloca return value to proper type.
106467         2003-01-19  Ulrich Drepper  <drepper@redhat.com>
106469         From GNU libc.
106470         * lib/strftime.c (my_strftime): Handle very large width
106471         specifications for numeric values correctly.  Improve checks for
106472         overflow.
106474         2003-01-19  Jim Meyering  <jim@meyering.net>
106476         * lib/strftime.c (widen) [COMPILE_WIDE]: Merge nearly-identical
106477         definitions.
106478         (nl_get_alt_digit) [! defined my_strftime]: Define.
106479         (my_strftime) [_NL_CURRENT]: Merge nearly-identical uses of
106480         _nl_get_alt_digit and _nl_get_walt_digit.
106482         * lib/strftime.c (my_strftime): Merge in locale-related changes from
106483         libc. These changes have no effect outside of _LIBC.
106485 2003-04-10  Bruno Haible  <bruno@clisp.org>
106487         * modules/findprog: New file.
106488         * MODULES.html.sh (func_all_modules): Add it.
106490 2003-04-10  Bruno Haible  <bruno@clisp.org>
106492         * m4/findprog.m4: New file.
106493         * m4/eaccess.m4: New file.
106495 2003-04-10  Bruno Haible  <bruno@clisp.org>
106497         * lib/findprog.h: New file, from GNU gettext.
106498         * lib/findprog.c: New file, from GNU gettext.
106500 2003-04-05  Jim Meyering  <jim@meyering.net>
106502         Merge changes from Coreutils.
106504         * lib/exclude.h (PARAMS): Remove definition and uses.
106505         * lib/exclude.c: Remove uses of `PARAMS'.
106507         * lib/dirname.c [TEST_DIRNAME]: Update build instructions for test.
106508         Add test-cases for DOS filenames. Declare program_name.
106509         (main): Set up program_name.  Patch by Rich Dawe.
106511         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Detect any
106512         error from mntctl.
106513         Use mntctl's return value to drive the entry-processing loop, since
106514         we can't rely on the value of the vmt_length member in the last
106515         entry.  On some systems doing so could result in exhausting
106516         virtual memory.  Based in part on a patch from Mike Jetzer.
106518 2003-04-04  Bruno Haible  <bruno@clisp.org>
106520         * modules/linebreak: New file.
106521         * MODULES.html.sh (func_all_modules): Add it.
106523 2003-04-04  Bruno Haible  <bruno@clisp.org>
106525         * m4/linebreak.m4: New file.
106527 2003-04-04  Bruno Haible  <bruno@clisp.org>
106529         * lib/linebreak.h: New file, from GNU gettext.
106530         * lib/linebreak.c: New file, from GNU gettext with slight
106531         modifications.
106532         * lib/lbrkprop.h: New file, from GNU gettext.
106534 2003-04-03  Bruno Haible  <bruno@clisp.org>
106536         * modules/utf8-ucs4: New file.
106537         * modules/utf16-ucs4: New file.
106538         * modules/ucs4-utf8: New file.
106539         * modules/ucs4-utf16: New file.
106540         * MODULES.html.sh (func_all_modules): Add them.
106542 2003-04-03  Bruno Haible  <bruno@clisp.org>
106544         * m4/utf-ucs4.m4: New file.
106545         * m4/ucs4-utf.m4: New file.
106547 2003-04-03  Bruno Haible  <bruno@clisp.org>
106549         * lib/utf8-ucs4.h: New file, from GNU gettext.
106550         * lib/utf16-ucs4.h: New file, from GNU gettext.
106551         * lib/ucs4-utf8.h: New file, from GNU gettext.
106552         * lib/ucs4-utf16.h: New file, from GNU gettext.
106554 2003-04-02  Bruno Haible  <bruno@clisp.org>
106556         * modules/binary-io: New file.
106557         * MODULES.html.sh (func_all_modules): Add it.
106559 2003-04-02  Bruno Haible  <bruno@clisp.org>
106561         * lib/binary-io.h: New file, from GNU gettext.
106563 2003-04-01  Bruno Haible  <bruno@clisp.org>
106565         * modules/pathname: New file.
106566         * MODULES.html.sh (func_all_modules): Add it.
106568 2003-04-01  Bruno Haible  <bruno@clisp.org>
106570         * lib/pathname.h: New file, from GNU gettext.
106571         * lib/concatpath.c: New file, from GNU gettext.
106573 2003-03-30  Bruno Haible  <bruno@clisp.org>
106575         * m4/copy-file.m4 (gl_COPY_FILE): Add check for chown().
106577 2003-03-30  Bruno Haible  <bruno@clisp.org>
106579         * lib/copy-file.c (copy_file_preserving): Don't set owner if the
106580         function chown() doesn't exist.
106582 2003-03-28  Bruno Haible  <bruno@clisp.org>
106584         * modules/copy-file: New file.
106585         * MODULES.html.sh (func_all_modules): Add it.
106587 2003-03-28  Bruno Haible  <bruno@clisp.org>
106589         * m4/copy-file.m4: New file.
106591 2003-03-28  Bruno Haible  <bruno@clisp.org>
106593         * lib/copy-file.h: New file, from GNU gettext.
106594         * lib/copy-file.c: New file, from GNU gettext.
106596 2003-03-18  Jim Meyering  <jim@meyering.net>
106598         * lib/quote.c (quote_n): Fix typo in comment.
106600 2003-03-18  Bruno Haible  <bruno@clisp.org>
106602         * m4/onceonly.m4: Use m4_defn instead of defn, for better error
106603         checking.
106604         * m4/onceonly_2_57.m4: Likewise.
106606 2003-03-17  Bruno Haible  <bruno@clisp.org>
106608         * m4/onceonly.m4: Require autoconf 2.54 or newer.
106609         (m4_quote): Remove macro.
106610         * m4/onceonly_2_57.m4: Require autoconf 2.54 or newer.
106612 2003-03-14  Jim Meyering  <jim@meyering.net>
106614         Merge changes from Coreutils.
106615         * lib/obstack.h (obstack_object_size): Declare temporary, __o,
106616         to be const, in order to avoid warnings.
106617         (obstack_room): Likewise.
106618         (obstack_empty_p): Likewise.
106620 2003-03-14  Bruno Haible  <bruno@clisp.org>
106622         * m4/onceonly_2_57.m4 (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE,
106623         AC_CHECK_DECLS_ONCE): Quote AC_FOREACH variable-expansions properly.
106625 2003-03-13  Paul Eggert  <eggert@twinsun.com>
106627         Merge changes from Bison.
106628         * lib/obstack.h: (__INT_TO_PTR) [__STDC__]: Cast result to
106629         (void *) to avoid diagnostic with native c89 on SGI IRIX 6.5
106630         when compiling Bison 1.875's `bitset bset = obstack_alloc
106631         (bobstack, bytes);'.  Problem reported by Nelson H. F. Beebe.
106632         * lib/hash.c: Include <stdbool.h> unconditionally.
106634 2003-03-13  Paul Eggert  <eggert@twinsun.com>
106636         * m4/onceonly.m4 (m4_quote): New macro.
106637         (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE, AC_CHECK_DECLS_ONCE):
106638         Quote AC_FOREACH variable-expansions properly.
106640 2003-03-13  Paul Eggert  <eggert@twinsun.com>
106642         * doc/COPYING.DOC, fdl.texi: Sync with latest FSF version.
106644 2003-03-09  Paul Eggert  <eggert@twinsun.com>
106646         * lib/argmatch.c (EXIT_FAILURE): Define if the system doesn't.
106647         Reported by Bruce Becker; see:
106648         http://mail.gnu.org/archive/html/bug-bison/2003-03/msg00017.html
106650 2003-03-03  Paul Eggert  <eggert@twinsun.com>
106651             Bruno Haible  <bruno@clisp.org>
106653         * lib/mbswidth.h: Include <wchar.h>. Needed for UnixWare 7.1.1.
106654         Reported by John Hughes, see
106655         http://mail.gnu.org/archive/html/bug-bison/2003-02/msg00030.html
106657 2003-02-20  Bruno Haible  <bruno@clisp.org>
106659         * MODULES.html.sh (func_all_modules): Add poll.
106661 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
106663         * modules/poll: New file.
106665 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
106667         * lib/poll_.h: New file.
106668         * lib/poll.c: New file.
106670 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
106672         * m4/poll.m4: New file.
106674 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
106676         * modules/mathl: New file.
106678 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
106680         * lib/mathl.h: New file.
106681         * lib/acosl.c: New file.
106682         * lib/asinl.c: New file.
106683         * lib/atanl.c: New file.
106684         * lib/ceill.c: New file.
106685         * lib/cosl.c: New file.
106686         * lib/expl.c: New file.
106687         * lib/floorl.c: New file.
106688         * lib/frexpl.c: New file.
106689         * lib/ldexpl.c: New file.
106690         * lib/logl.c: New file.
106691         * lib/sincosl.c: New file.
106692         * lib/sinl.c: New file.
106693         * lib/sqrtl.c: New file.
106694         * lib/tanl.c: New file.
106695         * lib/trigl.c: New file.
106696         * lib/trigl.h: New file.
106698 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
106700         * m4/mathl.m4: New file.
106702 2003-02-18  Bruno Haible  <bruno@clisp.org>
106704         * MODULES.html.sh (func_all_modules): Add mathl.
106706 2003-02-17  Bruno Haible  <bruno@clisp.org>
106708         * modules/mkdtemp: New module.
106709         * MODULES.html.sh (func_all_modules): Add it.
106711 2003-02-17  Bruno Haible  <bruno@clisp.org>
106713         * m4/mkdtemp.m4: New file, from GNU gettext with modifications.
106715 2003-02-17  Bruno Haible  <bruno@clisp.org>
106717         * lib/mkdtemp.h: New file, from GNU gettext.
106718         * lib/mkdtemp.c: New file, from GNU gettext.
106720 2003-02-02  Jim Meyering  <jim@meyering.net>
106722         * m4/regex.m4 (jm_INCLUDED_REGEX): Detect broken re_search in
106723         e.g. glibc-2.2.93.
106725 2003-01-31  Bruno Haible  <bruno@clisp.org>
106727         * m4/rename.m4 (vb_FUNC_RENAME): Add a redirection from 'rename' to
106728         'rpl_rename'.
106729         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Add a redirection from 'strnlen' to
106730         'rpl_strnlen'.
106731         * m4/strtod.m4 (gl_FUNC_STRTOD): Add a redirection from 'strtod' to
106732         'rpl_strtod'.
106733         * m4/utime.m4 (jm_FUNC_UTIME): Add a redirection from 'utime' to
106734         'rpl_utime'.
106736 2003-01-31  Bruno Haible  <bruno@clisp.org>
106738         * lib/rename.c: #undef rename before defining rpl_rename.
106739         * lib/strnlen.c: #undef strnlen, define rpl_strnlen instead of strnlen.
106741 2003-01-30  Bruno Haible  <bruno@clisp.org>
106743         * modules/vasnprintf, modules/vasprintf: New modules.
106744         * MODULES.html.sh (func_all_modules): Add them.
106746 2003-01-30  Bruno Haible  <bruno@clisp.org>
106748         * m4/signed.m4: New file, from GNU gettext.
106749         * m4/longdouble.m4: New file, from GNU gettext.
106750         * m4/wchar_t.m4: New file, from GNU gettext.
106751         * m4/wint_t.m4: New file, from GNU gettext.
106752         * m4/vasnprintf.m4: New file.
106753         * m4/vasprintf.m4: New file.
106755 2003-01-30  Bruno Haible  <bruno@clisp.org>
106757         * lib/printf-args.h: New file, from GNU gettext.
106758         * lib/printf-args.c: New file, from GNU gettext.
106759         * lib/printf-parse.h: New file, from GNU gettext.
106760         * lib/printf-parse.c: New file, from GNU gettext.
106761         * lib/vasnprintf.h: New file, from GNU gettext.
106762         * lib/vasnprintf.c: New file, from GNU gettext.
106763         * lib/asnprintf.c: New file, from GNU gettext.
106764         * lib/vasprintf.h: New file, from GNU gettext with modifications.
106765         * lib/vasprintf.c: New file, from GNU gettext.
106766         * lib/asprintf.c: New file, from GNU gettext.
106768 2003-01-29  Bruno Haible  <bruno@clisp.org>
106770         * modules/stpncpy: New module.
106771         * MODULES.html.sh (func_all_modules): Add it.
106773 2003-01-29  Bruno Haible  <bruno@clisp.org>
106775         * m4/stpncpy.m4: New file.
106777 2003-01-29  Bruno Haible  <bruno@clisp.org>
106779         * lib/stpncpy.h: New file, from GNU gettext with modifications.
106780         * lib/stpncpy.c: New file, from GNU gettext with modifications.
106782 2003-01-28  Bruno Haible  <bruno@clisp.org>
106784         * modules/c-ctype: New module.
106785         * MODULES.html.sh (func_all_modules): Add it.
106787 2003-01-28  Bruno Haible  <bruno@clisp.org>
106789         * lib/c-ctype.h: New file, from GNU gettext, with changes suggested by
106790         Paul Eggert.
106791         * lib/c-ctype.c: New file, from GNU gettext, with changes suggested by
106792         Paul Eggert.
106794 2003-01-27  Bruno Haible  <bruno@clisp.org>
106796         * modules/xsetenv: New module.
106797         * MODULES.html.sh (func_all_modules): Add it.
106799 2003-01-27  Bruno Haible  <bruno@clisp.org>
106801         * lib/xsetenv.h: New file, from GNU gettext.
106802         * lib/xsetenv.c: New file, from GNU gettext.
106804 2003-01-23  Jim Meyering  <jim@meyering.net>
106806         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Correct typo: s/-1/no/ that kept this
106807         from working on systems without dirfd (at least Irix and OSF1/Tru64).
106809 2003-01-23  Bruno Haible  <bruno@clisp.org>
106811         * modules/minmax: New module.
106812         * MODULES.html.sh (func_all_modules): Add it.
106814 2003-01-23  Bruno Haible  <bruno@clisp.org>
106816         * lib/minmax.h: New file, from GNU gettext, with comments from Paul
106817         Eggert.
106819 2003-01-22  Bruno Haible  <bruno@clisp.org>
106821         * modules/exit: New module.
106822         * MODULES.html.sh (func_all_modules): Add it.
106824 2003-01-22  Bruno Haible  <bruno@clisp.org>
106826         * lib/exit.h: New file, from GNU gettext.
106828 2003-01-19  Bruno Haible  <bruno@clisp.org>
106830         * gnulib-tool: Recognize option --extract-maintainer.
106831         (func_get_maintainer): New function.
106832         * modules/*: Add Maintainer entry.
106834 2003-01-16  Jim Meyering  <jim@meyering.net>
106836         * m4/regex.m4: The `regex' struct is both input and output.
106837         Initialize it before each use.  Patch by Tim Waugh.
106839 2003-01-16  Bruno Haible  <bruno@clisp.org>
106841         * MODULES.html.sh: Add a table of contents. Add the module name as
106842         leftmost column. Add hyperlinks.
106844 2003-01-15  Bruno Haible  <bruno@clisp.org>
106846         * m4/md5.m4 (gl_MD5): Require AC_C_INLINE.
106848 2003-01-15  Bruno Haible  <bruno@clisp.org>
106850         * m4/longlong.m4 (jm_AC_TYPE_LONG_LONG): Also test the LL suffix.
106851         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Also test the ULL
106852         suffix.
106854 2003-01-15  Bruno Haible  <bruno@clisp.org>
106856         * m4/alloca.m4 (gl_FUNC_ALLOCA): Invoke AC_EGREP_CPP prerequisites.
106858 2003-01-15  Bruno Haible  <bruno@clisp.org>
106860         * lib/stpcpy.h (stpcpy): Use ANSI C function declarations.
106861         * lib/strcase.h (strcasecmp, strncasecmp): Likewise.
106863 2003-01-14  Jim Meyering  <jim@meyering.net>
106865         * lib/same.c (same_name): Tweak a comment.
106867 2003-01-14  Bruno Haible  <bruno@clisp.org>
106869         * lib/same.c (same_name): Reorder tests so as to avoid calling stat()
106870         when a string comparison is sufficient.
106872 2003-01-14  Bruno Haible  <bruno@clisp.org>
106874         * lib/readtokens.c (readtoken): Cast character to 'unsigned char', not
106875         'unsigned int'.
106877 2003-01-14  Bruno Haible  <bruno@clisp.org>
106879         * lib/hash-pjw.c: Add comment about low quality of this function.
106881 2003-01-13  Bruno Haible  <bruno@clisp.org>
106883         * modules/stpcpy: Distribute lib/stpcpy.h.
106884         * modules/setenv: Depend on alloca. Distribute lib/setenv.h.
106886 2003-01-13  Bruno Haible  <bruno@clisp.org>
106888         * modules/*: Add a description.
106889         * modules/strpbrk: Fix Makefile.am snippet.
106890         * modules/strtoimax: Fix dependencies.
106891         * modules/strtoumax: Likewise.
106893 2003-01-13  Bruno Haible  <bruno@clisp.org>
106895         * gnulib-tool (func_create_testdir): Substitute lib_OBJECTS.
106896         * modules/alloca (Makefile.am): All object files depend on alloca.h.
106897         * modules/stdbool (Makefile.am): All object files depend on stdbool.h.
106899 2003-01-13  Bruno Haible  <bruno@clisp.org>
106901         * gnulib-tool (func_create_testdir): Store config/* files in the main
106902         directory.
106903         * config.rpath: Move to ...
106904         * config/config.rpath: ... here.
106905         * modules/gettext: Contains config/config.rpath, not config.rpath.
106906         * modules/iconv: Likewise.
106908 2003-01-12  Paul Eggert  <eggert@twinsun.com>
106910         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
106911         to avoid collisions with libcurses and libreadline.
106913         * m4/getstr.m4: Remove.
106914         * m4/getline.m4 (gl_PREREQ_GETLINE): Require AC_HEADER_STDC.
106916 2003-01-12  Paul Eggert  <eggert@twinsun.com>
106918         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
106919         to avoid collisions with libcurses and libreadline.
106921         * lib/Makefile.am (libfetish_a_SOURCES): Remove getstr.c, getstr.h.
106922         * lib/getstr.h, getstr.c: Remove.
106923         * lib/getline.c: Include "getline.h", to check interface.
106924         Move body of old getstr.c here: this defines MIN_CHUNK and
106925         declares getdelim2, which is renamed from getstr.
106926         (getline, getdelim): Adjust to renaming of getstr -> getdelim2.
106928         * lib/linebuffer.c (readlinebuffer): Renamed from readline.
106929         All uses changed.
106930         * lib/linebuffer.h: Likewise.
106931         (readline): Remove backward-compatibility macro.
106933 2003-01-12  Paul Eggert  <eggert@twinsun.com>
106935         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
106936         to avoid collisions with libcurses and libreadline.
106937         * getstr: Remove.
106938         * MODULES.html.sh: Remove getstr.
106939         * modules/getline: Depend on unlocked-io, not getstr.
106941 2003-01-12  Jim Meyering  <jim@meyering.net>
106943         * lib/makepath.c: Don't test HAVE_ERRNO_H.  It's not necessary.
106945 2003-01-10  Bruno Haible  <bruno@clisp.org>
106947         * modules/alloca: Change Makefile.am requirements. Simplify Include
106948         requirements. Add lib/alloca_.h to file list.
106950 2003-01-10  Bruno Haible  <bruno@clisp.org>
106952         * m4/alloca.m4 (gl_FUNC_ALLOCA): Also define ALLOCA_H.
106954 2003-01-10  Bruno Haible  <bruno@clisp.org>
106956         * lib/alloca_.h: New file.
106957         * lib/getdate.y: Unconditionally include alloca.h.
106958         * lib/makepath.c: Likewise.
106959         * lib/setenv.c: Likewise.
106960         * lib/userspec.c: Likewise.
106962 2003-01-09  Karl Berry  <karl@gnu.org>
106964         * MODULES.html.sh: include `dirname $0` in PATH, to find
106965         gnulib-tool.
106967 2003-01-09  Bruno Haible  <bruno@clisp.org>
106969         * modules/stdbool: Change configure.ac, Makefile.am requirements.
106970         Simplify Include requirements. Add lib/stdbool.h.in to file list.
106972 2003-01-09  Bruno Haible  <bruno@clisp.org>
106974         * m4/stdbool.m4 (AM_STDBOOL_H): New macro.
106976 2003-01-09  Bruno Haible  <bruno@clisp.org>
106978         * lib/stdbool.h.in: New file.
106980 2003-01-09  Bruno Haible  <bruno@clisp.org>
106982         * gnulib-tool (func_all_modules): Ignore files ending in ~.
106983         * MODULES.html.sh: Likewise.
106985 2003-01-08  Jim Meyering  <jim@meyering.net>
106987         * lib/full-write.c: Undefine and define-away `const' after inclusion
106988         of errno.h, not before.  Suggestion from Bruno Haible.
106990 2003-01-08  Bruno Haible  <bruno@clisp.org>
106992         * modules/full-read: Depend on full-write.
106994 2003-01-08  Bruno Haible  <bruno@clisp.org>
106996         * lib/safe-read.c: Include specification header first, to ensure its
106997         selfcontainedness.
106998         * lib/full-write.c: Likewise.
107000 2003-01-07  Jim Meyering  <jim@meyering.net>
107002         * lib/full-write.c: Rework so that it may serve to define full_read,
107003         too.
107004         * lib/full-read.c: Simply #define FULL_READ and include full-write.c.
107006 2003-01-07  Bruno Haible  <bruno@clisp.org>
107008         * lib/strtoimax.c: Include <stdint.h> as an alternative to
107009         <inttypes.h>.
107010         * lib/xstrtol.h: Likewise.
107011         * lib/xstrtoimax.c: Likewise.
107012         * lib/xstrtoumax.c: Likewise.
107013         * lib/human.h: Likewise.
107015         * lib/tempname.c: Include <inttypes.h> too. Avoids a compilation error
107016         on systems that have <inttypes.h> but not <stdint.h>.
107018 2003-01-07  Bruno Haible  <bruno@clisp.org>
107020         * MODULES.html.sh: Add copyright notice.
107021         (missed_files): Omit CVS directory entries.
107022         (func_module): Make it work with sed-3.02.
107023         * MODULES.txt: Remove file.
107025 2003-01-06  Jim Meyering  <jim@meyering.net>
107027         * lib/version-etc.c: Update year in translatable copyright string.
107029 2003-01-03  Karl Berry  <karl@gnu.org>
107031         * config/config.{guess,sub}: update from prep.
107033 2003-01-02  Karl Berry  <karl@gnu.org>
107035         * doc/COPYING.DOC: belatedly updated to 1.2.
107037 2003-01-01  Karl Berry  <karl@gnu.org>
107039         * gnulib-tool (func_verify_module): report module name $module in
107040         error message, not $1.
107041         * gnulib-tool (create-testdir): don't complain if destdir couldn't
107042         be created, only if it doesn't exist.
107043         * gnulib-tool (last_checkin_date): don't expand the $Date here.
107045 2002-12-31  Paul Eggert  <eggert@twinsun.com>
107047         * m4/memcoll.m4 (gl_MEMCOLL): Require AC_FUNC_MEMCMP.
107049 2002-12-31  Paul Eggert  <eggert@twinsun.com>
107051         * lib/memcoll.c (memcoll): Fall back on a simple algorithm using
107052         memcmp if strcoll doesn't work.
107054 2002-12-31  Bruno Haible  <bruno@clisp.org>
107056         * lib/utime.c (utime_null): No need to call ftruncate if the file was
107057         nonempty.
107059 2002-12-31  Bruno Haible  <bruno@clisp.org>
107061         * lib/memcoll.c (STRCOLL): New macro.
107062         (memcoll): Use it.
107064 2002-12-31  Bruno Haible  <bruno@clisp.org>
107066         * lib/localcharset.h: New file.
107067         * lib/localcharset.c: Include it.
107068         * lib/unicodeio.c: Likewise.
107070 2002-12-31  Bruno Haible  <bruno@clisp.org>
107072         * lib/getstr.h (getstr): Define, to avoid clash with libcurses.
107073         * lib/linebuffer.h (readline): Define, to avoid clash with libreadline.
107075 2002-12-31  Bruno Haible  <bruno@clisp.org>
107077         * lib/getline.h: Include <stddef.h>, for size_t.
107079         * lib/unicodeio.h: Include <stddef.h>, for size_t.
107080         * lib/unicodeio.c: Don't include <stddef.h>.
107082 2002-12-31  Bruno Haible  <bruno@clisp.org>
107084         * lib/getdate.y (get_date): Test HAVE_STRUCT_TM_TM_ZONE, not
107085         HAVE_TM_ZONE.
107087 2002-12-24  Karl Berry  <karl@gnu.org>
107089         * config/config.guess: update from prep.
107091 2002-12-24  Bruno Haible  <bruno@clisp.org>
107093         General infrasructure.
107094         * m4/README: Rewritten.
107095         * m4/onceonly.m4: New file.
107096         * m4/onceonly_2_57.m4: New file.
107098         Module atexit.
107099         * m4/atexit.m4: New file.
107101         Module strtod.
107102         * m4/strtod.m4: New file.
107104         Module strtol.
107105         * m4/strtol.m4: New file.
107107         Module strtoul.
107108         * m4/strtoul.m4: New file.
107110         Module memchr.
107111         * m4/memchr.m4: New file.
107113         Module memcmp.
107114         * m4/memcmp.m4 (gl_PREREQ_MEMCMP): New macro.
107115         (jm_FUNC_MEMCMP): Invoke it.
107117         Module memcpy.
107118         * m4/memcpy.m4: New file.
107120         Module memmove.
107121         * m4/memmove.m4: New file.
107123         Module memset.
107124         * m4/memset.m4: New file.
107126         Module strcspn.
107127         * m4/strcspn.m4: New file.
107129         Module strpbrk.
107130         * m4/strpbrk.m4: New file.
107132         Module strstr.
107133         * m4/strstr.m4: New file.
107135         Module strerror.
107136         * m4/strerror.m4: New file.
107138         Module mktime.
107139         * m4/mktime.m4: Renamed from jm-mktime.m4.
107140         (gl_PREREQ_MKTIME): New macro.
107141         (gl_FUNC_MKTIME): Renamed from jm_FUNC_MKTIME. Invoke gl_PREREQ_MKTIME.
107143         Module malloc.
107144         * m4/malloc.m4 (gl_PREREQ_MALLOC): New macro.
107145         (jm_FUNC_MALLOC): Use AC_FUNC_MALLOC. Invoke gl_PREREQ_MALLOC.
107146         Don't define HAVE_DONE_WORKING_MALLOC_CHECK, since nothing uses it.
107148         Module realloc.
107149         * m4/realloc.m4 (gl_PREREQ_REALLOC): New macro.
107150         (jm_FUNC_REALLOC): Use AC_FUNC_REALLOC. Invoke gl_PREREQ_REALLOC.
107151         Don't define HAVE_DONE_WORKING_REALLOC_CHECK, since nothing uses it.
107153         Module strftime.
107154         * m4/tm_gmtoff.m4: New file, extracted from strftime.m4.
107155         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Use AC_FUNC_STRFTIME.
107156         Don't test for bcopy (we are not emacs). Invoke AC_TYPE_MBSTATE_T and
107157         gl_TM_GMTOFF.
107158         (_jm_STRFTIME_PREREQS, jm_FUNC_GNU_STRFTIME): Use onceonly macros.
107160         Module xalloc.
107161         * m4/xalloc.m4: New file.
107163         Module alloca.
107164         * m4/alloca.m4: New file.
107166         Module putenv.
107167         * m4/putenv.m4 (gl_PREREQ_PUTENV): New macro.
107168         (jm_FUNC_PUTENV): Invoke it.
107170         Module setenv.
107171         * m4/setenv.m4 (gt_FUNC_SETENV): New macro.
107172         (gt_CHECK_VAR_DECL): Fix quoting error that led to infinite loop in m4
107173         when invoked twice.
107174         (gt_PREREQ_SETENV, gt_PREREQ_UNSETENV): New macros, replacing old
107175         gt_FUNC_SETENV.
107177         Module memrchr.
107178         * m4/memrchr.m4: New file.
107180         Module stpcpy.
107181         * m4/stpcpy.m4: New file.
107183         Module strcase.
107184         * m4/strcase.m4: New file.
107186         Module strdup.
107187         * m4/strdup.m4: New file.
107189         Module strnlen.
107190         * m4/strnlen.m4: New file.
107192         Module strndup.
107193         * m4/strndup.m4: New file.
107195         Module xstrtod.
107196         * m4/xstrtod.m4: New file.
107198         Module xstrtol.
107199         * m4/xstrtol.m4: New file.
107201         Module getdate.
107202         * m4/getdate.m4: New file.
107204         Module unlocked-io.
107205         * m4/unlocked-io.m4: Renamed from jm-glibc-io.m4.
107206         (jm_FUNC_GLIBC_UNLOCKED_IO): Invoke AC_GNU_SOURCE. Use onceonly macros.
107207         * m4/jm-glibc-io.m4n: Remove file.
107209         Module long-options.
107210         * m4/long-options.m4: New file.
107212         Module md5.
107213         * m4/md5.m4: New file.
107215         Module sha.
107216         * m4/sha.m4: New file.
107218         Module getstr.
107219         * m4/getstr.m4: New file.
107221         Module getline.
107222         * m4/getline.m4 (gl_PREREQ_GETLINE): New macro.
107223         (AM_FUNC_GETLINE): Invoke AC_GNU_SOURCE. Use <stdlib.h>, not
107224         <sys/types.h>, for size_t. Use the function name gnu_getline, not
107225         simply getline. Infoke gl_PREREQ_GETLINE.
107227         Module obstack.
107228         * m4/obstack.m4: New file.
107230         Module hash.
107231         * m4/hash.m4: New file.
107233         Module readtokens.
107234         * m4/readtokens.m4: New file.
107236         Module strverscmp.
107237         * m4/strverscmp.m4: New file.
107239         Module stdbool.
107240         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Add test for _Bool. Needed for
107241         OSF/1.
107243         Module strtoll.
107244         * m4/strtoll.m4: New file.
107246         Module strtoull.
107247         * m4/strtoull.m4: New file.
107249         Module strtoimax.
107250         * m4/strtoimax.m4: New file.
107252         Module strtoumax.
107253         * m4/strtoumax.m4: New file.
107255         Module xstrtoimax.
107256         * m4/xstrtoimax.m4 (jm_XSTRTOIMAX): Renamed from
107257         jm_AC_PREREQ_XSTRTOIMAX.
107258         Moved the strtol prerequisites to strtol.m4.
107259         Moved the strtoll prerequisites to strtoll.m4.
107260         Moved the strtoimax prerequisites to strtoimax.m4.
107262         Module xstrtoumax.
107263         * m4/xstrtoumax.m4 (jm_XSTRTOUMAX): Renamed from
107264         jm_AC_PREREQ_XSTRTOUMAX.
107265         Moved the strtoul prerequisites to strtoul.m4.
107266         Moved the strtoull prerequisites to strtoull.m4.
107267         Moved the strtoumax prerequisites to strtoumax.m4.
107269         Module chown.
107270         * m4/chown.m4 (gl_PREREQ_CHOWN): New macro.
107271         (jm_FUNC_CHOWN): Use AC_FUNC_CHOWN. Invoke gl_PREREQ_CHOWN.
107273         Module dup2.
107274         * m4/dup2.m4: New file.
107276         Module ftruncate.
107277         * m4/ftruncate.m4 (gl_PREREQ_FTRUNCATE): New macro.
107278         (jm_FUNC_FTRUNCATE): Use AC_REPLACE_FUNCS. Invoke gl_PREREQ_FTRUNCATE.
107280         Module getgroups.
107281         * m4/getgroups.m4 (gl_PREREQ_GETGROUPS): New macro.
107282         (jm_FUNC_GETGROUPS): Use AC_FUNC_GETGROUPS. Invoke gl_PREREQ_GETGROUPS.
107284         Module gettimeofday.
107285         * m4/gettimeofday.m4 (gl_PREREQ_GETTIMEOFDAY): New macro.
107286         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Use onceonly macros. Invoke
107287         gl_PREREQ_GETTIMEOFDAY.
107289         Module mkdir.
107290         * m4/mkdir-slash.m4 (gl_PREREQ_MKDIR): New macro.
107291         (UTILS_FUNC_MKDIR_TRAILING_SLASH): Invoke gl_PREREQ_MKDIR.
107293         Module mkstemp.
107294         * m4/mkstemp.m4 (gl_PREREQ_MKSTEMP): New macro.
107295         (jm_PREREQ_TEMPNAME): New macro, from prereq.m4. Also invoke
107296         jm_AC_TYPE_UINTMAX_T.
107297         (UTILS_FUNC_MKSTEMP): Invoke gl_PREREQ_MKSTEMP and jm_PREREQ_TEMPNAME.
107299         Module stat.
107300         * m4/stat.m4 (gl_PREREQ_STAT): New macro.
107301         (jm_FUNC_STAT): Use AC_FUNC_STAT. Invoke gl_PREREQ_STAT.
107303         Module lstat.
107304         * m4/lstat.m4 (gl_PREREQ_LSTAT): New macro.
107305         (jm_FUNC_LSTAT): Use AC_FUNC_LSTAT. Invoke gl_PREREQ_LSTAT.
107307         Module timespec.
107308         * m4/timespec.m4 (gl_TIMESPEC): New macro.
107309         (jm_CHECK_TYPE_STRUCT_TIMESPEC): Add check for <sys/time.h>.
107310         * m4/st_mtim.m4: Indentation.
107312         Module nanosleep.
107313         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): New macro.
107314         (jm_FUNC_NANOSLEEP): Add check for <sys/time.h>. Invoke
107315         gl_PREREQ_NANOSLEEP.
107317         Module regex.
107318         * m4/regex.m4 (jm_PREREQ_REGEX): New macro.
107319         (jm_INCLUDED_REGEX): Invoke jm_PREREQ_REGEX.
107320         (gl_REGEX): New macro.
107322         Module rename.
107323         * m4/rename.m4 (gl_PREREQ_RENAME): New macro.
107324         (vb_FUNC_RENAME): Invoke gl_PREREQ_RENAME.
107326         Module rmdir.
107327         * m4/rmdir.m4: New file.
107329         Module utime.
107330         * m4/utimbuf.m4 (jm_CHECK_TYPE_STRUCT_UTIMBUF): Use onceonly macros.
107331         * m4/utime.m4 (gl_PREREQ_UTIME): New macro.
107332         (jm_FUNC_UTIME): Invoke gl_PREREQ_UTIME.
107334         Module dirname.
107335         * m4/dirname.m4: New file.
107337         Module getopt.
107338         * m4/getopt.m4: New file.
107340         Module unistd-safer.
107341         * m4/unistd-safer.m4: New file.
107343         Module fnmatch.
107344         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Include <stdlib.h>, for exit()
107345         declaration.
107346         (gl_PREREQ_FNMATCH_EXTRA): New macro.
107347         (gl_FUNC_FNMATCH_POSIX): New macro.
107348         (gl_FUNC_FNMATCH_GNU): Renamed from AC_FUNC_FNMATCH_GNU. Invoke
107349         gl_PREREQ_FNMATCH_EXTRA. Use the function name gnu_fnmatch, not
107350         simply fnmatch.
107352         Module exclude.
107353         * m4/exclude.m4: New file.
107355         Module human.
107356         * m4/human.m4: New file.
107358         Module acl.
107359         * m4/acl.m4: Nop.
107361         Module backupfile.
107362         * m4/backupfile.m4: New file.
107363         * m4/d-ino.m4: Indentation.
107365         Module fsusage.
107366         * m4/fsusage.m4 (gl_FSUSAGE): New macro.
107367         (jm_STATFS_TRUNCATES): New macro, from coreutils-4.5.4/configure.ac.
107368         (gl_PREREQ_FSUSAGE_EXTRA): New macro.
107370         Module dirfd.
107371         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Invoke some AC_EGREP_CPP
107372         requirements.
107374         Module euidaccess.
107375         * m4/euidaccess.m4: New file.
107377         Module file-type.
107378         * m4/file-type.m4: New file.
107380         Module fileblocks.
107381         * m4/fileblocks.m4: New file.
107383         Module filemode.
107384         * m4/filemode.m4: New file.
107386         Module isdir.
107387         * m4/isdir.m4: New file.
107389         Module lchown.
107390         * m4/lchown.m4 (gl_PREREQ_LCHOWN): New macro.
107391         (jm_FUNC_LCHOWN): Invoke gl_PREREQ_LCHOWN.
107393         Module makepath.
107394         * m4/makepath.m4: New file.
107396         Module modechange.
107397         * m4/modechange.m4: New file.
107399         Module mountlist.
107400         * m4/mountlist.m4: New file.
107401         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Use onceonly macros.
107402         Indentation.
107404         Module path-concat.
107405         * m4/path-concat.m4: New file.
107407         Module pathmax.
107408         * m4/pathmax.m4: New file.
107410         Module same.
107411         * m4/same.m4: New file.
107413         Module save-cwd.
107414         * m4/save-cwd.m4: New file.
107416         Module savedir.
107417         * m4/savedir.m4: New file.
107419         Module xgetcwd.
107420         * m4/xgetcwd.m4: New file.
107421         * m4/getcwd.m4 (AC_FUNC_GETCWD_NULL): Use onceonly macros.
107423         Module xreadlink.
107424         * m4/xreadlink.m4: New file.
107426         Module safe-read.
107427         * m4/safe-read.m4: New file.
107429         Module safe-write.
107430         * m4/safe-write.m4: New file.
107432         Module closeout.
107433         * m4/closeout.m4: New file.
107435         Module stdio-safer.
107436         * m4/stdio-safer.m4: New file.
107438         Module getpass.
107439         * m4/getpass.m4: New file.
107441         Module getugroups.
107442         * m4/getugroups.m4: New file.
107444         Module group-member.
107445         * m4/group-member.m4 (gl_PREREQ_GROUP_MEMBER): New macro.
107446         (jm_FUNC_GROUP_MEMBER): Invoke AC_GNU_SOURCE, gl_PREREQ_GROUP_MEMBER.
107448         Module idcache.
107449         * m4/idcache.m4: New file.
107451         Module userspec.
107452         * m4/userspec.m4: New file.
107454         Module gettime.
107455         * m4/clock_time.m4: New file.
107456         * m4/gettime.m4: New file.
107458         Module settime.
107459         * m4/settime.m4: New file.
107461         Module posixtm.
107462         * m4/posixtm.m4: New file.
107464         Module gethostname.
107465         * m4/gethostname.m4: New file.
107467         Module canon-host.
107468         * m4/canon-host.m4: New file.
107470         Module gettext.
107471         * m4/codeset.m4: New file, from gettext-0.11.5.
107472         * m4/gettext.m4: New file, from gettext-0.11.5.
107473         * m4/glibc21.m4: New file, from gettext-0.11.5.
107474         * m4/iconv.m4: New file, from gettext-0.11.5.
107475         * m4/intdiv0.m4: New file, from gettext-0.11.5.
107476         * m4/inttypes-pri.m4: New file, from gettext-0.11.5.
107477         * m4/inttypes.m4: New file, from gettext-0.11.5.
107478         * m4/inttypes_h.m4: New file, from gettext-0.11.5 with modifications.
107479         * m4/isc-posix.m4: New file, from gettext-0.11.5.
107480         * m4/lcmessage.m4: New file, from gettext-0.11.5.
107481         * m4/lib-ld.m4: New file, from gettext-0.11.5.
107482         * m4/lib-link.m4: New file, from gettext-0.11.5.
107483         * m4/lib-prefix.m4: New file, from gettext-0.11.5.
107484         * m4/progtest.m4: New file, from gettext-0.11.5.
107485         * m4/stdint_h.m4: New file, from gettext-0.11.5 with modifications.
107486         * m4/uintmax_t.m4: New file, from gettext-0.11.5 with modifications.
107487         * m4/ulonglong.m4: New file, from gettext-0.11.5 with modifications.
107489         Module localcharset.
107490         * m4/localcharset.m4: New file.
107492         Module hard-locale.
107493         * m4/hard-locale.m4: New file.
107495         Module mbswidth.
107496         * m4/mbswidth.m4 (gl_MBSWIDTH): Renamed from jm_PREREQ_MBSWIDTH. Use
107497         onceonly macros.
107498         * m4/mbrtowc.m4: Add comment.
107500         Module memcasecmp.
107501         * m4/memcasecmp.m4: New file.
107503         Module memcoll.
107504         * m4/memcoll.m4: New file.
107506         Module unicodeio.
107507         * m4/unicodeio.m4: New file.
107509         Module rpmatch.
107510         * m4/rpmatch.m4: New file.
107512         Module yesno.
107513         * m4/yesno.m4: New file.
107515         Module exitfail.
107516         * m4/exitfail.m4: New file.
107518         Module c-stack.
107519         * m4/c-stack.m4 (gl_C_STACK): New macro.
107520         (jm_PREREQ_C_STACK): Check for <sys/time.h>. Use onceonly macros.
107522         Module error.
107523         * m4/error.m4 (gl_ERROR): New macro.
107524         (jm_PREREQ_ERROR): Use onceonly macros.
107526         Module fatal.
107527         * m4/fatal.m4: New file.
107529         Module getloadavg.
107530         * m4/getloadavg.m4 (AC_FUNC_GETLOADAVG): Use onceonly macros.
107531         (gl_FUNC_GETLOADAVG, gl_PREREQ_GETLOADAVG): New macros.
107533         Module getpagesize.
107534         * m4/getpagesize.m4: New file.
107536         Module getusershell.
107537         * m4/getusershell.m4: New file.
107539         Module physmem.
107540         * m4/physmem.m4: New file.
107542         Module posixver.
107543         * m4/posixver.m4: New file.
107545         Module quotearg.
107546         * m4/quotearg.m4: New file.
107548         Module quote.
107549         * m4/quote.m4: New file.
107551         Module readutmp.
107552         * m4/readutmp.m4: New file, based on jm_PREREQ_READUTMP from prereq.m4.
107554         Module sig2str.
107555         * m4/sig2str.m4: New file.
107557         Other.
107558         * m4/longlong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Remove, moved to
107559         ulonglong.m4.
107560         * m4/intmax_t.m4: New file.
107561         * m4/d-type.m4: Indentation.
107562         * m4/jm-macros.m4: Update.
107563         * m4/prereq.m4 (jm_PREREQ): Update.
107564         (jm_PREREQ_ADDEXT): Remove, obsoleted by backupfile.m4.
107565         (jm_PREREQ_CANON_HOST): Remove, obsoleted by canon-host.m4.
107566         (jm_PREREQ_DIRNAME): Remove, obsoleted by dirname.m4.
107567         (jm_PREREQ_EXCLUDE): Remove, obsoleted by exclude.m4.
107568         (jm_PREREQ_GETPAGESIZE): Remove, obsoleted by getpagesize.m4.
107569         (jm_PREREQ_HARD_LOCALE): Remove, obsoleted by hard-locale.m4.
107570         (jm_PREREQ_HASH): Remove, obsoleted by hash.m4.
107571         (jm_PREREQ_HUMAN): Remove, obsoleted by human.m4.
107572         (jm_PREREQ_MEMCHR): Remove, obsoleted by memchr.m4.
107573         (jm_PREREQ_PHYSMEM): Remove, obsoleted by physmem.m4.
107574         (jm_PREREQ_POSIXVER): Remove, obsoleted by posixver.m4.
107575         (jm_PREREQ_QUOTEARG): Remove, obsoleted by quotearg.m4.
107576         (jm_PREREQ_READUTMP): Remove, obsoleted by readutmp.m4.
107577         (jm_PREREQ_REGEX): Remove, obsoleted by regex.m4.
107578         (jm_PREREQ_STRNLEN): Remove, obsoleted by strnlen.m4.
107579         (jm_PREREQ_TEMPNAME): Remove, obsoleted by mkstemp.m4.
107580         (jm_PREREQ_XGETCWD): Remove, obsoleted by xgetcwd.m4.
107581         (jm_PREREQ_XREADLINK): Remove, obsoleted by xreadlink.m4.
107582         * m4/readdir.m4 (jm_FUNC_READDIR): Use onceonly macros.
107584 2002-12-24  Bruno Haible  <bruno@clisp.org>
107586         * MODULES.txt: Update according to m4/ changes.
107588         Module gettext.
107589         * config.rpath: New file, from gettext-0.11.5.
107591         * modules/*: New module descriptions.
107592         * gnulib-tool: New file.
107593         * MODULES.html.sh: New file.
107595 2002-12-21  Karl Berry  <karl@gnu.org>
107597         * doc/fdl.texi: update to version 1.2.
107599 2002-12-19  Karl Berry  <karl@gnu.org>
107601         * config/config.guess: update from prep.
107603 2002-12-18  Bruno Haible  <bruno@clisp.org>
107605         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't test for localtime_r.
107606         * m4/jm-mktime.m4 (jm_FUNC_MKTIME): Likewise.
107608 2002-12-17  Bruno Haible  <bruno@clisp.org>
107610         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Remove checks for limits.h,
107611         stdlib.h, string.h.
107613 2002-12-17  Bruno Haible  <bruno@clisp.org>
107615         * lib/canon-host.c (strdup): Remove unused declaration.
107617         * lib/fsusage.c: Include full_read.h.
107618         (get_fs_usage): Use full_read instead of safe_read.
107620         * lib/utime.c (utime_null): Use SAFE_READ_ERROR.
107622 2002-12-12  Karl Berry  <karl@gnu.org>
107624         * config/config.guess: update from prep.
107626 2002-12-11  Bruno Haible  <bruno@clisp.org>
107628         * m4/setenv.m4: New file, from gettext-0.11.5.
107630 2002-12-11  Bruno Haible  <bruno@clisp.org>
107632         * lib/setenv.h: Rewritten to cope with systems that have setenv() but
107633         not unsetenv().
107634         * lib/setenv.c, unsetenv.c: Taken from glibc-2.2.4 with the following
107635         modifications:
107637         2002-12-11  Bruno Haible  <bruno@clisp.org>
107639                 * setenv.c (alloca): Fall back to malloc.
107640                 (freea): New macro.
107641                 (setenv): Use freea() to free memory allocated with alloca().
107643         2002-11-13  Bruno Haible  <bruno@clisp.org>
107645                 * setenv.c (compar_fn_t, __add_to_environ, setenv): Use ANSI C
107646                 function declarations.
107647                 * unsetenv.c (unsetenv): Likewise.
107649         2002-03-04  Bruno Haible  <bruno@clisp.org>
107651                 Portability to AIX 4.3.3.
107652                 * unsetenv.c: New file, extracted from setenv.c.
107653                 * setenv.c: Move the unsetenv() function to unsetenv.c.
107655         2001-12-20  Bruno Haible  <bruno@clisp.org>
107657                 * setenv.c (__add_to_environ): Don't call realloc(NULL,...),
107658                 use malloc instead. For SunOS 4.
107660         2001-12-11  Bruno Haible  <bruno@clisp.org>
107662                 * setenv.c: Declare alloca.
107663                 (compar_fn_t): New typedef.
107664                 (KNOWN_VALUE, STORE_VALUE): Use it.
107666         * lib/Makefile.am (libfetish_a_SOURCES): Add setenv.c, unsetenv.c,
107667         setenv.h.
107669 2002-12-10  Paul Eggert  <eggert@twinsun.com>
107671         Port exclude.c and exclude.h to more non-GNU systems, e.g. Solaris 7.
107672         * lib/exclude.h (EXCLUDE_ANCHORED, EXCLUDE_INCLUDE, EXCLUDE_WILDCARDS):
107673         Choose values that are less likely to collide with system fnmatch
107674         options.
107675         * lib/exclude.c (FNM_CASEFOLD, FNM_LEADING_DIR): Define to 0 if not
107676         defined (e.g., a pure POSIX system).
107677         (EXCLUDE_macros_do_not_collide_with_FNM_macros): Use FNM_PATHNAME
107678         instead of FNM_FILE_NAME, for compatibility with pure POSIX sytems.
107680 2002-12-06  Paul Eggert  <eggert@twinsun.com>
107682         Undo the 2001-07-02 change for jm-glibc-io, as it was too much of
107683         a pain in practice to deal with generated m4 files.  This change
107684         goes together with the 2002-12-04 unlocked-io.h change in ../lib.
107686         * m4/Makefile.am.in (Makefile.am): Don't mention jm-glibc-io.m4n
107687         and jm-glibc-io.m4, as they are no longer a special case.
107688         * m4/jm-glibc-io.m4: Rename from jm-glibc-io.m4n, and remove the
107689         kludge and the auto-generation stuff.  Check only whether the
107690         functions are declared, not whether they exist, since older hosts
107691         that don't declare the functions can't use the optimization anyway.
107693 2002-12-06  Jim Meyering  <jim@meyering.net>
107695         * lib/error.c: Be consistent: change `#ifndef _LIBC' to `#if !_LIBC'.
107697         Merge in changes from libc's misc/error.c, in preparation
107698         for the merge of gnulib's changes back into libc.
107700         * lib/error.c (_): Define only if not already defined.
107701         Move definition to follow all #include directives.
107702         Include unlocked-io.h only if !_LIBC.
107703         [_LIBC]: Include <libio/libioP.h>.
107704         [USE_IN_LIBIO]: Include <libio/iolibio.h>
107705         (fflush): Tweak definition to use INTUSE.
107706         (putc): Define.
107708 2002-12-05  Paul Eggert  <eggert@twinsun.com>
107710         * lib/alloca.c [defined emacs]: Include "lisp.h".
107711         (xalloc_die) [defined emacs]: New macro.
107712         (free) [defined emacs && defined EMACS_FREE]: Define to EMACS_FREE.
107713         [! defined emacs]: Include <xalloc.h>.
107714         (POINTER_TYPE) [!defined POINTER_TYPE]: New macro.
107715         (pointer): Typedef to POINTER_TYPE *.
107716         (malloc): Remove decl; we now always use xmalloc.
107717         (alloca): Use old-style definition, since Emacs needs this.
107718         Check for arithmetic overflow when computing combined size.
107720 2002-12-04  Paul Eggert  <eggert@twinsun.com>
107722         Do not generate unlocked-io.h automatically, since it's easier to
107723         maintain it by hand.
107725         * lib/unlocked-io.h: New file, from GNU diffutils,
107726         but with proper copyright notice and attribution.
107727         * lib/gen-uio: Remove.
107728         * lib/Makefile.am: Add copyright notice.
107729         (libfetish_a_SOURCES): Add unlocked-io.h.
107730         (BUILT_SOURCES, all-local): Remove unlocked-io.h.
107731         (DISTCLEANFILES, io_functions): Remove macros.
107732         (EXTRA_DIST): Remove gen_uio.
107733         (unlocked-io.h): Remove rule.
107735 2002-12-04  Jim Meyering  <jim@meyering.net>
107737         Reflect the fact that stat.c and lstat.c are no longer generated.
107738         * lib/Makefile.am (BUILT_SOURCES): Remove stat.c and lstat.c.
107739         (DISTCLEANFILES): Likewise.
107740         (EXTRA_DIST): Likewise.
107741         (all_local): Don't depend on stat.c or lstat.c.
107742         (stat.c, lstat.c): Remove rules.
107743         (EXTRA_DIST): Remove xstat.in.
107745         * lib/xstat.in: Remove file.  Contents moved into stat.c.
107746         * lib/stat.c: New file.  Contents mostly from xstat.in.
107747         * lib/stat.c: Rework so that it may serve to define rpl_lstat, too.
107748         * lib/lstat.c: New file. Simply #define LSTAT and include stat.c.
107750         * lib/safe-read.c: Rework so that it may serve to define safe_write,
107751         too.
107752         * lib/safe-write.c: Simply #define SAFE_WRITE and include safe-read.c.
107754 2002-12-03  Jim Meyering  <jim@meyering.net>
107756         * lib/safe-read.c, safe-write.c: Change variable names and comments,
107757         but not semantics, to minimize the differences between these two files.
107758         (safe_read): Change comment to mention SAFE_READ_ERROR.
107760         * lib/safe-read.c (IS_EINTR): Define.
107761         (safe_read): Use IS_EINTR in place of in-function cpp directives.
107763 2002-12-02  Jim Meyering  <jim@meyering.net>
107765         * lib/safe-read.c (EINTR): Define.
107766         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Define.
107767         (INT_MAX): Provide fallback.
107768         (safe_read): Rewrite to iterate IFF the read fails with EINTR.
107770         * lib/safe-read.h (SAFE_READ_ERROR): Define.
107772 2002-12-02  Bruno Haible  <bruno@clisp.org>
107774         * lib/safe-write.c (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM):
107775         Define, taken from safe-read.c.
107776         (INT_MAX): Provide fallback.
107777         (safe_write): Rewrite to iterate IFF the write fails with EINTR.
107778         * lib/safe-write.h (SAFE_WRITE_ERROR): Define.
107780         * lib/safe-read.c (EINTR): Remove definition.
107781         (safe_read): Don't use EINTR if it is absent.
107783 2002-12-01  Jim Meyering  <jim@meyering.net>
107785         * lib/safe-read.c: (safe_read): Also exit the loop when read returns
107786         zero.
107787         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM, INT_MAX): Define.
107789 2002-11-27  Paul Eggert  <eggert@twinsun.com>
107791         * lib/hash.c (hash_lookup, hash_get_first, hash_get_next,
107792         hash_find_entry, hash_rehash): Replace `if (limit <= value) abort ();'
107793         with `if (! (value < limit)) abort ();', for readability.
107795 2002-11-26  Karl Berry  <karl@gnu.org>
107797         * lib/strdup.c: copy from libc again, with jim's ok.
107798         * lib/.cppi-disable: re-add strdup.c
107800 2002-11-25  Karl Berry  <karl@gnu.org>
107802         * lib/strtoll.c: copy from libc, meaning we now #include <strtol.c>
107803         instead of "strtol.c".
107805 2002-11-25  Karl Berry  <karl@gnu.org>
107807         * config/install-sh: update from automake for variable quoting, $0 in
107808         error msgs, etc.
107810         * config/srclist.txt ($LIBCSRC/time/mktime.c lib gpl): new entry.
107811         * config/srclist.txt ($LIBCSRC/sysdeps/generic/strtoll.c lib gpl): new
107812         entry.
107814 2002-11-25  Jim Meyering  <jim@meyering.net>
107816         * lib/mktime.c: Sync from libc, now that it has the latest fix.
107818 2002-11-24  Karl Berry  <karl@gnu.org>
107820         * lib/error.c, getopt.c, getopt.h, getopt1.c, obstack.c, regex.c,
107821         regex.h, strdup.c, strtoll.c, tempname.c: change license to gpl.
107823 2002-11-24  Jim Meyering  <jim@meyering.net>
107825         Update from coreutils:
107827         * lib/mktime.c: Merge in changes from libc.
107829         Avoid a link-time failure on some Linux systems.
107830         * lib/mktime.c (STATIC): Define to be empty (_LIBC) or `static'
107831         (otherwise).
107832         (__mon_yday): Declare with the STATIC attribute.
107833         (__mktime_internal): Likewise.
107834         Based on a report from Greg Schafer.
107836 2002-11-23  Jim Meyering  <jim@meyering.net>
107838         * lib/sig2str.c (str2signum, sig2str): Avoid a warning from gcc:
107839         Use `unsigned', not `int', as type of index.
107841         * lib/xstat.in [@BEGIN_LSTAT_ONLY@]: Include <string.h>.
107843         * lib/fsusage.c: Remove unneeded parentheses around operands of
107844         `defined'.
107846 2002-11-22  Paul Eggert  <eggert@twinsun.com>
107848         * lib/quotearg.h: Allow multiple inclusion by surrounding with
107849         "#ifndef QUOTEARG_H_".  Include <stddef.h>, for size_t,
107850         so that we can be included first.
107851         (PARAMS): Remove; we now assume C89 or later.  All uses removed.
107852         * lib/quotearg.c: Include quotearg.h immediately after config.h.
107853         No need to include stddef.h or sys/types.h any more.
107854         Surround local include files with "", not "<>".
107855         Assume HAVE_LIMITS_H unconditionally, as we assume C89.
107856         Similarly, assume HAVE_C_BACKSLASH_A, CHAR_BIT, UCHAR_MAX, UINT_MAX,
107857         HAVE_STDLIB_H, HAVE_STRING_H, STDC_HEADERS.
107858         (HAVE_MBSINIT): Undef if !HAVE_MBRTOWC.
107859         (mbsinit): Define to 1 if !defined mbsinit && !HAVE_MBSINIT.
107860         (ISPRINT): Remove; no longer needed now that we assume C89.
107862         (clone_quoting_options, quotearg_buffer, quotearg_n_options):
107863         Preserve errno.
107865         (quotearg_buffer_restyled, quotearg_n, quotearg_n_style,
107866         quotearg_char): Use SIZE_MAX rather than
107867         (size_t) -1 when we are talking about "infinity".
107869         (quotearg_buffer_restyled): Fix bug when quoting trigraphs.
107871 2002-11-22  Paul Eggert  <eggert@twinsun.com>
107873         * lib/hash.c: Avoid use of <assert.h>, as the GNU Coding Standards
107874         hint that one should use `if (! x) abort ();' rather than `assert
107875         (x);', and anyway it's one less thing to worry about configuring.
107876         (hash_lookup, hash_get_first, hash_get_next, hash_find_entry,
107877         hash_rehash, hash_insert): Use abort rather than assert.
107879 2002-11-22  Bruno Haible  <bruno@clisp.org>
107881         * lib/safe-read.h: Assume C89. Add comments.
107882         (safe_read): Change return type to size_t.
107883         * lib/safe-read.c (safe_read): Change return type to size_t. Handle
107884         byte counts > SSIZE_MAX correctly.
107885         * lib/safe-write.h: New file.
107886         * lib/safe-write.c: New file.
107887         * lib/full-read.h: New file.
107888         * lib/full-read.c: New file.
107889         * lib/full-write.h: Assume C89. Add comments.
107890         * lib/full-write.c: Include safe-write.h.
107891         (full_write): Rewritten to use safe_write.
107892         Suggested by Jim Meyering and Paul Eggert.
107894 2002-11-21  Jim Meyering  <jim@meyering.net>
107896         * lib/strdup.c (strdup): Tweak comment and initial #if/#include.
107898         Merge in changes from the coreutils.
107900         2002-09-25  Paul Eggert  <eggert@twinsun.com>
107901         * lib/fsusage.c [! HAVE_INTTYPES_H && HAVE_STDINT_H] Include
107902         <stdint.h>.
107903         (UINTMAX_MAX) [!defined UINTMAX_MAX]: New macro.
107904         (PROPAGATE_ALL_ONES): Work even if X is unsigned and narrower than
107905         int.  Work more efficiently if X is the same width as uintmax_t.
107906         Do not compare X to -1, to avoid bogus compiler warning.
107907         (get_fs_usage): (uintmax_t) -1 -> UINTMAX_MAX to avoid a cast.
107908         Don't assume that f_frsize and f_bsize are the same type.
107910         * lib/mountlist.c: #undef MNT_IGNORE before defining it, to avoid
107911         warning on FreeBSD.
107913         * lib/makepath.c (make_path): Restore umask *before* creating the final
107914         component.
107915         (make_path): Minor reformatting.
107917         * lib/xmalloc.c: Adjust to work with new autoconf macros,
107918         AC_FUNC_MALLOC and AC_FUNC_REALLOC: test #ifndef
107919         HAVE_MALLOC/HAVE_REALLOC.
107921         * lib/mountlist.h (ME_DUMMY): Don't count entries of type `auto' as
107922         dummy ones.  At least on GNU/Linux systems, `auto' means something
107923         else.
107924         From Michael Stone.
107926 2002-11-21  Bruno Haible  <bruno@clisp.org>
107928         Remove case insensitive option matching.
107929         * lib/argmatch.h (argcasematch): Remove declaration.
107930         (ARGCASEMATCH): Remove macro.
107931         (__xargmatch_internal): Remove case_sensitive argument.
107932         (XARGMATCH): Update.
107933         (XARGCASEMATCH): Remove macro.
107934         * lib/argmatch.c (argmatch): Renamed from __argmatch_internal. Remove
107935         case_sensitive argument.
107936         (argcasematch): Remove function.
107937         (__xargmatch_internal): Remove case_sensitive argument.
107938         (main): Use XARGMATCH instead of XARGCASEMATCH.
107940         * lib/xmalloc.c: Change compile-time error message. Add comment about
107941         required autoconf version.
107943 2002-11-20  Paul Eggert  <eggert@twinsun.com>
107945         Merge argmatch cleanups from Bison.  Assume C89.
107947         * lib/argmatch.c: Include config.h here, not in argmatch.h.
107948         Include stdlib.h, for EXIT_FAILURE.
107949         Always include <string.h>, since we assume C89.
107950         (EXIT_FAILURE): Remove pre-C89 bug workaround.
107951         * lib/argmatch.h: Do not include <config.h> or <sys/types.h>.
107952         Include <stddef.h> instead, since it's all we need for size_t.
107953         (PARAMS): Remove.  All uses removed.
107954         (ARRAY_CARDINALITY): Do not bother to #undef.
107955         (ARRAY_CARDINALITY, ARGMATCH, ARGCASEMATCH, invalid_arg,
107956         ARGMATCH_VALID, XARGMATCH, XARGCASEMATCH):
107957         Remove unnecessary parentheses.
107958         (ARGMATCH_VALID, XARGMATCH, XARGCASEMATCH):
107959         Insert necessary parentheses.
107960         (ARGMATCH_CONSTRAINT, ARGMATCH_VERIFY): New macros.
107961         (ARGMATCH_ASSERT): Use ARGMATCH_CONSTRAINT.
107963 2002-11-19  Bruno Haible  <bruno@clisp.org>
107965         * lib/mbswidth.c: Include mbswidth.h right at the beginning.
107966         * lib/mbswidth.h: Include <stddef.h>, for size_t.
107968         * lib/mbswidth.h (PARAMS): Remove macro.
107969         (mbswidth, mbsnwidth): Use ANSI C function declarations.
107970         * lib/mbswidth.c (mbswidth, mbsnwidth): Likewise.
107972         * lib/gcd.h (PARAMS): Remove macro.
107973         (gcd): Use ANSI C function declarations.
107974         * lib/gcd.c (gcd): Likewise.
107976 2002-11-15  Bruno Haible  <bruno@clisp.org>
107978         * lib/strcspn.c: Include <stddef.h>.
107979         (strcspn): Use ANSI C function declaration. Change return type to
107980         size_t. Use NULL.
107981         * lib/strpbrk.c: Minimize diffs to glibc. Include <stddef.h>.
107982         (strpbrk): Use NULL.
107983         * lib/strpbrk.h (PARAMS): Remove macro.
107984         (strpbrk): Use ANSI C function declaration.
107985         * lib/strstr.c: Don't include <sys/types.h>.
107986         * lib/strstr.h (PARAMS): Remove macro.
107987         (strstr): Use ANSI C function declarations.
107989 2002-11-14  Karl Berry  <karl@gnu.org>
107991         * config/mkinstalldirs: `do' on separate line, instead of
107992         `for var; do'.
107994 2002-11-06  Bruno Haible  <bruno@clisp.org>
107996         * lib/gcd.h (gcd): Change argument type to 'unsigned long'.
107997         * lib/gcd.c (gcd): Likewise.
107999 2002-11-05  Bruno Haible  <bruno@clisp.org>
108001         * lib/gcd.h: New file, from gettext-0.11.5.
108002         * lib/gcd.c: New file, from gettext-0.11.5.
108004 2002-11-05  Bruno Haible  <bruno@clisp.org>
108006         * lib/error.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
108007         * lib/getopt.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
108008         * lib/obstack.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
108009         * lib/regex.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
108011         * lib/argmatch.c: Include gettext.h instead of <locale.h> and
108012         <libintl.h>.
108013         * lib/makepath.c: Include gettext.h instead of <locale.h> and
108014         <libintl.h>.
108016         * lib/closeout.c: Include gettext.h instead of <libintl.h>.
108017         * lib/human.c: Include gettext.h instead of <libintl.h>.
108018         * lib/quotearg.c: Include gettext.h instead of <libintl.h>.
108019         * lib/rpmatch.c: Include gettext.h instead of <libintl.h>.
108020         * lib/unicodeio.c: Include gettext.h instead of <libintl.h>.
108021         * lib/userspec.c: Include gettext.h instead of <libintl.h>.
108022         * lib/version-etc.c: Include gettext.h instead of <libintl.h>.
108023         * lib/xmalloc.c: Include gettext.h instead of <libintl.h>.
108024         (textdomain): Remove definition.
108025         * lib/xmemcoll.c: Include gettext.h instead of <libintl.h>.
108027         * lib/long-options.c: Remove include of <libintl.h> and definition of
108028         _.
108029         * lib/same.c: Remove include of <libintl.h> and definition of _.
108031 2002-11-04  Owen Taylor  <otaylor@redhat.com>
108033         * lib/config.charset: A few additions for Solaris.
108035 2002-11-04  Bruno Haible  <haible@clisp.cons.org>
108037         Make it possible to build libcharset with CC=gcc CFLAGS="-x c++".
108038         * lib/localcharset.c (locale_charset): Declare as extern "C".
108040 2002-11-04  Bruno Haible  <haible@clisp.cons.org>
108042         * lib/config.charset: msdos in uk_UA uses CP1125.
108044 2002-11-04  Bruno Haible  <bruno@clisp.org>
108046         * lib/stpcpy.h: New file, from GNU gettext-0.11.5.
108047         * lib/strcase.h: New file, from GNU gettext-0.11.5.
108048         * lib/strpbrk.h: New file, from GNU gettext-0.11.5.
108049         * lib/strstr.h: New file, from GNU gettext-0.11.5.
108050         * lib/xgetcwd.h: New file, from GNU gettext-0.11.5.
108052 2002-11-04  Bruno Haible  <bruno@clisp.org>
108054         * lib/localcharset.c (locale_charset): Don't return an empty string.
108056 2002-11-04  Bruno Haible  <bruno@clisp.org>
108058         * lib/localcharset.c (get_charset_aliases): Add more Windows specific
108059         aliases.
108061 2002-11-04  Bruno Haible  <bruno@clisp.org>
108063         * lib/config.charset: Update for newest glibc. Add canonical names
108064         ISO-8859-14, KOI8-T, TCVN5712-1, GEORGIAN-PS.
108066 2002-11-04  Bruno Haible  <bruno@clisp.org>
108068         * lib/config.charset: Add support for NetBSD.
108070 2002-11-04  Bruno Haible  <bruno@clisp.org>
108072         * lib/config.charset [msdosdjgpp]: For Russian, use CP866.
108074 2002-11-01  Bruno Haible  <bruno@clisp.org>
108076         * configure.in: Add AC_CONFIG_AUX_DIR call.
108077         (AC_OUTPUT): Add m4/Makefile, lib/Makefile. Remove doc/Makefile,
108078         test/Makefile.
108079         * Makefile.in (subdirs): Add m4, lib. Remove doc, test.
108081 2002-09-28  Karl Berry  <karl@gnu.org>
108083         * config/srclist.txt: can't copy install-sh/mkinstalldirs from
108084         installed automake until the next release, since changes have been
108085         made.
108087 2002-09-25  Karl Berry  <karl@gnu.org>
108089         * lib/strdup.c: copy from libc/string (via ../config/srclist*).
108090         * lib/getopt*: copy from libc/posix.
108091         * lib/gettext.h: copy from gettext.
108092         * lib/.cppi-disable: add strdup.c, gettext.h.
108094 2002-09-25  Karl Berry  <karl@gnu.org>
108096         * config/srclist.txt: enable gettext.h check.
108097         * config/config.{guess,sub}: update from prep.
108098         * config/depcomp, install-sh, mdate-sh, missing, mkinstalldirs: update
108099                 from automake 1.6.3.
108100         See srclist*.
108102 2002-08-23  Stefan Monnier  <monnier@cs.yale.edu>
108104         * regex.c (PATFETCH): Remove the translating fetch.
108105         (PATFETCH_RAW): Rename to PATFETCH.
108106         (set_image_of_range): New fun.
108107         (SET_RANGE_TABLE_WORK_AREA): Use it.
108108         (regex_compile): Don't translate the pattern chars so eagerly.
108109         Only do it when inserting an `exactn' bytecode or when handling
108110         a char-range.
108111         (mutually_exclusive_p): Avoid empty statement.
108113 2002-07-06  Jim Meyering  <meyering@lucent.com>
108115         * m4/README: Don't mention Makefile.am.in.
108116         Outline how I've tested changes to .m4 files.  Yep, it's a pain.
108118 2002-07-01  Jim Meyering  <meyering@lucent.com>
108120         * lib/c-stack.c: Include sys/time.h.
108121         From Volker Borchert.
108123 2002-06-26  Paul Eggert  <eggert@twinsun.com>
108125         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for btowc.
108127 2002-06-26  Paul Eggert  <eggert@twinsun.com>
108129         * lib/fnmatch.c, fnmatch_loop.c (WIDE_CHAR_SUPPORT):
108130         New macro.  Use it uniformly instead of
108131         (defined HAVE_WCTYPE_H && defined HAVE_WCHAR_H).
108132         It also uses HAVE_BTOWC, to fix a porting bug on Solaris 2.5.1
108133         reported by Vin Shelton.
108135 2002-06-22  Paul Eggert  <eggert@twinsun.com>
108137         * lib/c-stack.h (segv_handler, c_stack_action) [! defined SA_SIGINFO]:
108138         Do not assume SA_SIGINFO behavior.
108139         Bug reported by Jim Meyering on NetBSD 1.5.2.
108141 2002-06-22  Jim Meyering  <meyering@lucent.com>
108143         * m4/c-stack.m4: New file, from diffutils-2.8.2.
108144         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_C_STACK.
108146         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Don't require AC__GNU_SOURCE,
108147         now that configure.ac uses AC_GNU_SOURCE.
108148         (jm_MACROS): Rename: jm_FUNC_FNMATCH to AC_FUNC_FNMATCH_GNU.
108149         * m4/prereq.m4 (jm_PREREQ_EXCLUDE): Likewise, wrt jm_FUNC_FNMATCH.
108151         Update to latest tools.  Suggestions from Paul Eggert.
108152         * m4/stdbool.m4: New file, from diffutils-2.8.2.
108153         * m4/gnu-source.m4: Update from diffutils-2.8.2.
108154         * m4/fnmatch.m4: Likewise.
108155         * m4/prereq.m4: Change each use of AC_CHECK_HEADERS(stdbool.h)
108156         to AC_HEADER_STDBOOL
108158 2002-06-22  Jim Meyering  <meyering@lucent.com>
108160         * lib/fnmatch.c (ISASCII, ISPRINT): Undefine, to avoid warning about
108161         redefinition due to Solaris 2.6's definition in /usr/include/sys/euc.h.
108163 2002-06-22  Jim Meyering  <meyering@lucent.com>
108165         * lib/c-stack.c, lib/c-stack.h: New files, from diffutils-2.8.2.
108167         * lib/exitfail.c, exitfail.h: Likewise.
108168         * lib/Makefile.am (libfetish_a_SOURCES): Add exitfail.c and exitfail.h.
108170         * lib/Makefile.am (libfetish_a_SOURCES): Add fnmatch_.h in place
108171         of fnmatch.h.
108172         (EXTRA_DIST): Add fnmatch_loop.c.
108173         (libfetish_a_SOURCES): Add c-stack.c and c-stack.h.
108175         * lib/fnmatch_loop.c: New file, from diffutils-2.8.2.
108176         * lib/fnmatch.c: Update from diffutils-2.8.2.
108177         * lib/fnmatch_.h: New file.  From diffutils-2.8.2.
108178         * lib/fnmatch.h: Remove file.
108180 2002-06-21  Jim Meyering  <meyering@lucent.com>
108182         * m4/c-bs-a.m4: Add comment, from diffutils-2.8.2.
108183         * m4/mbrtowc.m4: Likewise.
108185         * m4/mbstate_t.m4: Update from diffutils-2.8.2.
108186         * m4/mbswidth.m4: Reflect name change:
108187         s/AC_MBSTATE_T/AC_TYPE_MBSTATE_T.
108188         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Likewise.
108190         * m4/lib-link.m4: Update from gettext-0.11.2.
108191         * m4/gettext.m4: Likewise.
108193         * m4/jm-macros.m4 (jm_CHECK_ALL_HEADERS): Check for hurd.h.
108194         From Alfred M. Szmidt.
108196 2002-06-18  Paul Eggert  <eggert@twinsun.com>
108198         * lib/file-type.h: Report an error if neither S_ISREG nor
108199         S_IFREG is defined, instead of using a test specific to glibc
108200         2.2.  This should be safe, since POSIX requires S_ISREG and
108201         Unix Version 7 had S_IFREG.  We don't need to check for
108202         <sys/types.h> since we don't use any symbols that it defines.
108204 2002-06-15  Richard Dawe  <richdawe@bigfoot.com>
108206         * lib/Makefile.am (lstat.c, stat.c, .sin.sed): Use t-$@, rather than
108207         $@-t, so that each temporary file name is unique and valid in the first
108208         8 characters, for operation under DOS.
108210 2002-06-15  Paul Eggert  <eggert@twinsun.com>
108212         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Check for st_author.
108214 2002-06-15  Jim Meyering  <meyering@lucent.com>
108216         Work even with DJGPP 2.03, which lacks support for symlinks.
108217         From Richard Dawe.
108218         * lib/xstat.in (S_ISLNK): Define to 0 if neither S_ISLNK nor S_IFLNK
108219         is defined.
108220         * lib/lchown.c (S_ISLNK): Likewise.
108222 2002-06-15  Jim Meyering  <meyering@lucent.com>
108224         * lib/file-type.h (FILE_TYPE_H): Guard entire contents with #ifndef.
108225         For GNU libc 2.2 and newer, ensure that <sys/types.h> and <sys/stat.h>
108226         have been included before this file.
108228 2002-06-14  Jim Meyering  <meyering@lucent.com>
108230         * lib/file-type.h: Use the version from diffutils-2.8.2.
108231         * lib/file-type.c: Likewise.
108233 2002-06-07  Jim Meyering  <meyering@lucent.com>
108235         * m4/prereq.m4 (jm_PREREQ_STAT): Check for sys/param.h and sys/mount.h.
108236         They're needed at least for NetBSD 1.5.2.
108237         ($statxfs_includes): Include those same headers.
108238         ($statxfs_includes): Include sys/vfs.h if available.
108239         ($statxfs_includes): Likewise for sys/statvfs.h.
108240         Check for the following members in both structs statfs and statvfs:
108241         f_basetype, f_type, f_fsid.__val, f_namemax, f_namelen.
108243 2002-06-01  Jim Meyering  <meyering@lucent.com>
108245         * m4/d-type.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Rename macro:
108246         s/D_TYPE_IN_DIRENT/HAVE_STRUCT_DIRENT_D_TYPE/.
108248 2002-05-28  Jim Meyering  <meyering@lucent.com>
108250         * m4/readdir.m4 (jm_FUNC_READDIR): Undefine `mkdir', not `rmdir'.
108251         Reported by Volker Borchert.
108253 2002-05-27  Jim Meyering  <meyering@lucent.com>
108255         Fix a problem seen only on nonconforming systems whereby ls.c's
108256         use of localtime, and then of gettimeofday would cause trouble:
108257         the localtime call used to initialize rpl_gettimeofday's save
108258         mechanism would clobber ls's current local time information so
108259         that in any long listing the first file would always be listed
108260         with date 1970-01-01.  Analysis by Volker Borchert.
108262         * lib/gettimeofday.c (localtime): Undefine.
108263         (rpl_localtime): New function.
108265 2002-05-27  Jim Meyering  <meyering@lucent.com>
108267         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER): Also replace
108268         localtime.
108270         * m4/readdir.m4 (jm_FUNC_READDIR): Undefine `rmdir' so we don't try to
108271         use the replacement function; it wouldn't resolve at link time.
108272         Reported by Volker Borchert.
108274 2002-05-22  Jim Meyering  <meyering@lucent.com>
108276         * lib/Makefile.am (libfetish_a_SOURCES): Add file-type.c and
108277         file-type.h.
108278         * lib/file-type.h: New file.
108279         * lib/file-type.c (file_type): New file/function.  Extracted from
108280         diffutils.
108282 2002-04-30  Jim Meyering  <meyering@lucent.com>
108284         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_STAT.
108286 2002-04-29  Paul Eggert  <eggert@twinsun.com>
108288         * m4/prereq.m4 (jm_PREREQ_SIG2STR): Remove; all callers changed.
108290 2002-04-29  Paul Eggert  <eggert@twinsun.com>
108292         * m4/prereq.m4 (jm_PREREQ_HARD_LOCALE): Check for stdlib.h.
108293         Do not check for alloca.h (no longer used) or stdbool.h (was never
108294         used?).  Add AM_C_PROTOTYPES since hard-locale.h uses it.
108296 2002-04-29  Paul Eggert  <eggert@twinsun.com>
108298         * lib/hard-locale.c: Upgrade to version used in GNU Diffutils 2.8.1.
108300 2002-04-29  Jim Meyering  <meyering@lucent.com>
108302         * m4/jm-macros.m4 (jm_MACROS): Remove use of AC_FUNC_STRNLEN.
108303         * m4/prereq.m4: Add jm_PREREQ_STRNLEN.
108304         Use AC_FUNC_STRNLEN here instead.
108306         * m4/jm-macros.m4: Don't AC_REQUIRE([AC_PROG_CC_STDC]).
108307         With autoconf-2.53a, it's part of AC_PROG_CC.
108309 2002-04-28  Paul Eggert  <eggert@twinsun.com>
108311         * m4/jm-macros.m4 (jm_MACROS): Add AC_REPLACE_FUNCS(sig2str).
108312         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_SIG2STR.
108314 2002-04-28  Paul Eggert  <eggert@twinsun.com>
108316         * lib/sig2str.h, lib/sig2str.c: New files.
108317         * lib/Makefile.am (libfetish_a_SOURCES): Add sig2str.h.
108319 2002-04-28  Paul Eggert  <eggert@twinsun.com>
108321         * lib/sig2str.h (SIGNUM_BOUND): Do not use WTERMSIG, to avoid
108322         depending on <sys/wait.h> and WTERMSIG.  Default to 64 instead
108323         of 127, since 64 is the largest conceivable number for ancient
108324         nonstandard hosts.
108325         * lib/sig2str.c: Do not include <sys/wait.h>; no longer needed.
108327 2002-04-28  Jim Meyering  <meyering@lucent.com>
108329         * lib/sig2str.c (WTERMSIG): Remove definition (unused).
108331 2002-04-24  Jim Meyering  <meyering@lucent.com>
108333         * m4/prereq.m4 (jm_PREREQ_HARD_LOCALE): New macro.
108334         (jm_PREREQ): Use it.
108336         * m4/getloadavg.m4: Check for these headers: locale.h unistd.h
108337         mach/mach.h fcntl.h.
108338         Check for this function: setlocale.
108340 2002-04-24  Jim Meyering  <meyering@lucent.com>
108342         * lib/gettext.h: New file, from Gettext.
108343         * lib/Makefile.am (INCLUDES): Remove -I../intl.
108344         (libfetish_a_SOURCES): Add gettext.h.
108346 2002-04-16  Jim Meyering  <meyering@lucent.com>
108348         * m4/prereq.m4 (jm_PREREQ_READUTMP): Also check for these members:
108349         ut_pid, ut_id, ut_exit.
108351 2002-04-16  Jim Meyering  <meyering@lucent.com>
108353         * lib/readutmp.h (UT_TYPE): Remove definition (now in who.c).
108354         (HAVE_STRUCT_XTMP_UT_EXIT, HAVE_STRUCT_XTMP_UT_ID): Define.
108355         (HAVE_STRUCT_XTMP_UT_PID, HAVE_STRUCT_XTMP_UT_TYPE): Define.
108357 2002-04-12  Jim Meyering  <meyering@lucent.com>
108359         * m4/ls-mntd-fs.m4 (checking for getmntinfo function...): Remove
108360         now-bogus check for f_type in sys/mount.h.  Instead, just test for the
108361         existence of the getmntinfo function.  Needed for Darwin 5.3.
108363         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Also detect when dirfd is a macro.
108364         This is necessary at least on Darwin 5.3.
108366         * m4/jm-macros.m4: Don't AC_REPLACE(strnlen), now that we use
108367         AC_FUNC_STRNLEN.  Otherwise, we'd end up putting two copies of
108368         strnlen.o in the library, and that makes some versions of ranlib
108369         object.
108371 2002-04-12  Jim Meyering  <meyering@lucent.com>
108373         * lib/dirfd.h (dirfd): Elide prototype if dirfd is a macro.
108375 2002-04-09  Jim Meyering  <meyering@lucent.com>
108377         * m4/malloc.m4: (jm_FUNC_MALLOC): Change the `checking ...' message
108378         to be more precise.  Rather than saying we're checking whether the
108379         function `works', say what we're testing.
108380         * m4/realloc.m4 (jm_FUNC_REALLOC): Likewise.
108381         Reported by Bruno Haible.
108383 2002-03-10  Jim Meyering  <meyering@lucent.com>
108385         * lib/makepath.c (make_path): Remove a comma from a diagnostic.
108386         Suggestion from Santiago Vila.
108388 2002-03-08  Jim Meyering  <meyering@lucent.com>
108390         * lib/rename.c: Mention that this wrapper is needed also on
108391         mips-dec-ultrix4.4 systems.
108393 2002-03-02  Jim Meyering  <meyering@lucent.com>
108395         * lib/gettime.c (gettime): Test HAVE_CLOCK_GETTIME,
108396         not HAVE_CLOCK_SETTIME.
108398 2002-02-27  Paul Eggert  <eggert@twinsun.com>
108400         * m4/jm-macros.m4 (jm_MACROS): Do not replace stime; no longer used.
108401         Check for clock_settime.
108403 2002-02-27  Paul Eggert  <eggert@twinsun.com>
108405         * lib/nanosleep.h: Rename to....
108406         * lib/timespec.h: New name for nanosleep.h.  All uses changed.
108408         * lib/gettime.c: New file.
108409         * lib/settime.c: New file.
108410         * lib/stime.c: Remove.
108412         * lib/Makefile.am (libfetish_a_SOURCES): Add gettime.c, settime.c,
108413         timespec.h.  Remove nanosleep.h.
108415 2002-02-25  Paul Eggert  <eggert@twinsun.com>
108417         * m4/acl.m4: New file.
108418         * m4/jm-macros.m4 (jm_MACROS): Require AC_FUNC_ACL.
108419         Do not check for acl or sys/acl.h, as AC_FUNC_ACL does that now.
108421 2002-02-25  Paul Eggert  <eggert@twinsun.com>
108423         * lib/acl.c, lib/acl.h: New files.
108424         * lib/Makefile.am (libfetish_a_SOURCES): Add acl.h, acl.c.
108426 2002-02-24  Jim Meyering  <meyering@lucent.com>
108428         * lib/strnlen.c (strnlen): Define-away/undef so that an inconsistent
108429         prototype in string.h (on at least AIX4.3.2.0 w/gcc-2.95.3) doesn't
108430         cause trouble.  Reported by Nelson Beebe.
108432 2002-02-23  Paul Eggert  <eggert@twinsun.com>
108434         * lib/path-concat.c (xpath_concat): Reorder code to pacify
108435         compilers that don't know that xalloc_die never returns.
108437 2002-02-20  Jim Meyering  <meyering@lucent.com>
108439         * lib/getdate.c: Regenerate using bison-1.33.
108441 2002-02-17  Jim Meyering  <meyering@lucent.com>
108443         * config/config.guess (main): Don't use `head -1'; it's no longer
108444         portable. Use `sed 1q' instead.
108446 2002-02-16  gettextize  <bug-gnu-gettext@gnu.org>
108448         * m4/codeset.m4: Upgrade to gettext-0.11.
108449         * m4/gettext.m4: Upgrade to gettext-0.11.
108450         * m4/glibc21.m4: Upgrade to gettext-0.11.
108451         * m4/iconv.m4: Upgrade to gettext-0.11.
108452         * m4/isc-posix.m4: Upgrade to gettext-0.11.
108453         * m4/lcmessage.m4: Upgrade to gettext-0.11.
108454         * m4/lib-ld.m4: New file, from gettext-0.11.
108455         * m4/lib-link.m4: New file, from gettext-0.11.
108456         * m4/lib-prefix.m4: New file, from gettext-0.11.
108457         * m4/progtest.m4: Upgrade to gettext-0.11.
108459 2002-02-15  Paul Eggert  <eggert@twinsun.com>
108461         * m4/prereq.m4 (jm_PREREQ_POSIXVER): New macro.
108462         (jm_PREREQ): Use it.
108464 2002-02-15  Paul Eggert  <eggert@twinsun.com>
108466         * lib/posixver.c, lib/posixver.h: New files.
108467         * lib/Makefile.am (libfetish_a_SOURCES): Add them.
108469 2002-02-02  Paul Eggert  <eggert@twinsun.com>
108470             Bruno Haible  <bruno@clisp.org>
108472         * lib/unicodeio.h (print_unicode_char): Add exit_on_error argument.
108473         (fwrite_success_callback): New declaration.
108474         * lib/unicodeio.c (unicode_to_mb): New function, extracted from
108475         print_unicode_char. Call failure callback instead of error.
108476         (fwrite_success_callback): New function.
108477         (exit_failure_callback): New function.
108478         (fallback_failure_callback): New function.
108479         (print_unicode_char): Call unicode_to_mb.
108481 2002-01-26  Jim Meyering  <meyering@lucent.com>
108483         * m4/jm-macros.m4 (jm_MACROS): Require autoconf-2.52g.
108484         * m4/strnlen.m4: Remove file, now that it's part of autoconf.
108486 2002-01-26  Jim Meyering  <meyering@lucent.com>
108488         * lib/Makefile.am (getdate$U.o): Depend on unlocked-io.h.
108490 2002-01-22  Paul Eggert  <eggert@twinsun.com>
108492         * m4/jm-macros.m4 (jm_MACROS): Require AC_FUNC_FSEEKO.
108494 2002-01-22  Jim Meyering  <meyering@lucent.com>
108496         * lib/Makefile.am (Makefile): Don't depend on $(BUILT_SOURCES).
108497         Otherwise, some versions of automake would omit the rule that makes
108498         Makefile from Makefile.in.
108500 2002-01-21  Paul Eggert  <eggert@twinsun.com>
108502         * lib/xmemcoll.h, lib/xmemcoll.c: New files.
108503         * lib/Makefile.am (libfetish_a_SOURCES): Add them.
108504         * lib/memcoll.c: Include errno.h, and declare errno if not defined.
108505         (memcoll): Set errno to zero if there is no error.
108507         * lib/quotearg.c (quotearg_buffer_restyled):
108508         Fix bug with quoting buffers containing NUL when backslashing escapes.
108509         This bug was exposed by the other changes in this patch.
108510         (quotearg_n_options): New arg ARGSIZE.
108511         All callers changed.
108512         (quoting_options_from_style): New function.
108513         (quotearg_n_style): Use it.
108514         (quotearg_n_style_mem): New function.
108516         * lib/quotearg.h (quotearg_n_style_mem): New function.
108518 2002-01-19  Jim Meyering  <meyering@lucent.com>
108520         * m4/jm-macros.m4 (jm_MACROS): Use AC_FUNC_STRNLEN.
108521         Remove useless quotes: DF_PROG="df".
108522         * m4/strnlen.m4: New file.
108524 2002-01-16  Paul Eggert  <eggert@twinsun.com>
108526         * lib/backupfile.c (ISDIGIT): Comment fix.
108527         * lib/getdate.y (ISDIGIT): Likewise.
108528         * lib/posixtm.c (ISDIGIT, year): Likewise.
108529         * lib/strverscmp.c (ISDIGIT): Likewise.
108530         * lib/userspec.c (ISDIGIT): Likewise.
108532 2002-01-16  Jim Meyering  <meyering@lucent.com>
108534         * lib/getdate.y: Add three semicolons, each just before a closing
108535         brace. Bison (as of version 1.31) no longer papers over that mistake.
108537 2002-01-05  Jim Meyering  <meyering@lucent.com>
108539         * lib/version-etc.c (version_etc_copyright): Update copyright year.
108541 2001-12-19  Paul Eggert  <eggert@twinsun.com>
108543         * lib/closeout.c (close_stdout_status): If ferror (stdout), do
108544         not silently exit merely because the output buffer happens to
108545         have nothing pending.
108547 2001-12-18  Paul Eggert  <eggert@twinsun.com>
108549         See the big note in ../ChangeLog.
108550         * lib/human.c (suffixes): Prefer K to k for 1024.
108551         (generate_suffix_backwards): New function.
108552         (human_readable_inexact): Use it.
108553         * lib/xstrtol.c (__xstrtol): If there is no number but there
108554         is a valid suffix, assume 1.  "MB" now means decimal, "MiB" binary.
108555         Accept 'K' as well as 'k'.
108557 2001-12-15  Jim Meyering  <meyering@lucent.com>
108559         * lib/regex.h (__restrict_arr): Update from libc.
108561         * lib/mountlist.h (ME_REMOTE): Recognize file systems of type smbfs
108562         as `remote' if the name starts with `//'.  Suggested by Michael Stone.
108563         (STREQ): Define.
108565 2001-12-14  Jim Meyering  <meyering@lucent.com>
108567         * m4/jm-macros.m4 (jm_MACROS): Check for iswspace.
108568         Suggestion from Bruno Haible.
108570 2001-12-10  Jim Meyering  <meyering@lucent.com>
108572         * lib/linebuffer.c: Remove explicit declarations of xmalloc and
108573         xrealloc, Instead, include "xalloc.h".
108574         (initbuffer): Don't cast xmalloc return value to char*.
108575         (readline): Reword comment.
108576         Don't cast xrealloc return value to char*
108577         Return NULL, not 0.
108579 2001-12-09  Jim Meyering  <meyering@lucent.com>
108581         * lib/modechange.c (mode_compile): Add cast to avoid pedantic warning
108582         about `signed and unsigned type in conditional expression'.
108583         * lib/posixtm.c (posix_time_parse): Likewise.
108585         * lib/xreadlink.c (xreadlink): Add cast to avoid a pedantic warning.
108587         * lib/readtokens.c (readtoken): Declare an index to be of type unsigned
108588         to avoid a pedantic warning.
108590         * lib/getstr.c: Don't include assert.h.
108591         (getstr): Remove warning-evoking assertions.
108592         Return -1 if offset parameter is out of bounds.
108593         Change the type of a local from int to size_t.
108595         * lib/strftime.c (my_strftime_localtime_r): Include this function
108596         definition in the `#if ! HAVE_TM_GMTOFF' block.
108598         * lib/xgethostname.c: Remove declarations of xmalloc and xrealloc.
108599         Include xalloc.h instead.
108601 2001-12-02  Jim Meyering  <meyering@lucent.com>
108603         * lib/tempname.c: Don't declare getenv, thus reverting the change of
108604         2001-11-18.  It's no longer necessary, now that stdlib.h is always
108605         included.
108607         * lib/regex.c [!__BOUNDED_POINTERS__]: Define away __bounded,
108608         __unbounded, and __ptrvalue.  Reported by Uwe H. Steinfeld.
108610 2001-11-30  Akim Demaille  <akim@epita.fr>
108612         * lib/xstrdup.c: Include xalloc.h, so that xstrdup is declared
108613         before being defined.
108615 2001-11-27  Paul Eggert  <eggert@twinsun.com>
108617         * lib/quotearg.h (quotearg_n, quotearg_n_style):
108618         First arg is int, not unsigned.
108619         * lib/quotearg.c (quotearg_n, quotearg_n_style): Likewise.
108620         (SIZE_MAX, UINT_MAX): New macros.
108621         (quotearg_n_options): Abort if N is negative.
108622         Avoid overflow check on hosts where size_t is 64 bits and int
108623         is 32 bits, as overflow is impossible there.
108624         Fix off-by-one typo that caused unnecessary reallocation.
108626 2001-11-27  Jim Meyering  <meyering@lucent.com>
108628         * lib/tempname.c: Merge with version from libc.
108629         * lib/regex.c: Likewise.
108631         * lib/tempname.c: Include stdlib.h unconditionally.  On some old
108632         systems for which STDC_HEADERS is 0, it was not included, resulting in
108633         a warning about an integer-to-pointer conversion problem with getenv.
108634         Reported by Volker Borchert.
108636 2001-11-26  Jim Meyering  <meyering@lucent.com>
108638         * lib/gtod.h: Remove file.
108639         * lib/Makefile.am (libfetish_a_SOURCES): Remove gtod.h.
108640         * lib/gettimeofday.c: Don't include gtod.h.
108641         (GTOD_init): Remove function.
108642         (rpl_gettimeofday): Do its job here instead, rather than aborting.
108643         Suggestion from Volker Borchert.
108645 2001-11-23  Jim Meyering  <meyering@lucent.com>
108647         * lib/hash.h (struct hash_table): Don't define here.  Merely declare
108648         it.
108649         * lib/hash.c (struct hash_table): Define it here instead.
108651 2001-11-22  Jim Meyering  <meyering@lucent.com>
108653         * lib/hash.h: Bracket contents of file with #ifndef HASH_H_ ... #endif.
108655 2001-11-20  Jim Meyering  <meyering@lucent.com>
108657         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Update comment to reflect that
108658         SunOS 4.1.4 and Solaris 2.5.1 lose, too.
108660 2001-11-19  Jim Meyering  <meyering@lucent.com>
108662         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Don't bother with a temporary
108663         directory.  Use "conftestXXXXXX" as the template.
108664         Suggestion from Paul Eggert.
108666         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Close each descriptor
108667         immediately, so the test doesn't mistakenly hit the max-open-files
108668         limit.
108670 2001-11-18  Paul Eggert  <eggert@twinsun.com>
108672         * lib/tempname.c (TMP_MAX): Remove; no longer needed.
108673         (TEMPORARIES): New macro.
108674         (__gen_tempname): Use TEMPORARIES rather than TMP_MAX.  This
108675         removes an artificial limitation (e.g. HP-UX 10.20, where
108676         TMP_MAX is 17576).
108678 2001-11-18  Jim Meyering  <meyering@lucent.com>
108680         * m4/prereq.m4 (jm_PREREQ_TEMPNAME): Check for declaration of getenv.
108682 2001-11-18  Jim Meyering  <meyering@lucent.com>
108684         * lib/tempname.c [!HAVE_DECL_GETENV]: Declare getenv to avoid warning
108685         on SunOS 4.
108687         * lib/Makefile.am (Makefile): Depend on $(BUILT_SOURCES), so those
108688         files will be created before anything else.
108690 2001-11-17  Paul Eggert  <eggert@twinsun.com>
108692         * m4/jm-winsz1.m4 (jm_WINSIZE_IN_PTEM): Do not define
108693         WINSIZE_IN_PTEM if <termios.h> defines struct winsize.
108695 2001-11-17  Jim Meyering  <meyering@lucent.com>
108697         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): New file and macro.
108698         Prompted by a report from Bob Proulx.
108700         * m4/jm-macros.m4 (jm_MACROS): Don't test for mkstemp here.
108701         Instead, require UTILS_FUNC_MKSTEMP.
108703 2001-11-17  Jim Meyering  <meyering@lucent.com>
108705         * m4/jm-macros.m4 (jm_MACROS): Remove code to set POW_LIBM.
108706         Now, that's done as part of AC_FUNC_STRTOD.
108708 2001-11-17  Jim Meyering  <meyering@lucent.com>
108710         * lib/modechange.c (mode_adjust): Fix error introduced on 1999-04-26
108711         that made e.g., `chmod a=,o=w,g=o F' cause F to be group readable
108712         rather than group writable.  Patch by Juan F. Codagnone.
108714         * lib/readtokens.c: Remove explicit declarations of xmalloc and
108715         xrealloc, Instead, include "xalloc.h".
108717         * lib/mountlist.c: Include unlocked-io.h after all system headers.
108718         Remove explicit declarations of xmalloc, xrealloc,
108719         and xstrdup.  Instead, include "xalloc.h".
108721         * lib/argmatch.c, closeout.c, error.c, exclude.c: Include
108722         unlocked-io.h.
108723         * lib/fatal.c, getdate.y, getpass.c, getstr.c, getusershell.c:
108724         Likewise.
108725         * lib/mountlist.c, posixtm.c, readtokens.c, readutmp.c: Likewise.
108727         * lib/regex.c, sha.c, version-etc.c, yesno.c: Likewise.
108728         Reported by Padraig Brady.
108730         * lib/mkstemp.c: #undef mkstemp.
108731         Include config.h.
108732         (rpl_mkstemp): Rename from mkstemp.
108733         Protoize.
108735 2001-11-16  Jim Meyering  <meyering@lucent.com>
108737         * lib/physmem.c [HAVE_SYS_PSTAT_H]: Include <sys/pstat.h>.
108738         (physmem_total) [HAVE_PSTAT_GETSTATIC]: If sysconf couldn't be used to
108739         determine the amount of total physical memory, use pstat_getstatic.
108740         HPUX-11 doesn't define _SC_PHYS_PAGES.
108741         (physmem_available) [HAVE_PSTAT_GETSTATIC && HAVE_PSTAT_GETDYNAMIC]:
108742         If sysconf couldn't be used to determine the amount of available
108743         physical memory, use both pstat_getstatic and pstat_getdynamic.
108744         Based on a patch from Bob Proulx.
108746 2001-11-10  Jim Meyering  <meyering@lucent.com>
108748         * m4/prereq.m4 (jm_PREREQ_PHYSMEM): New function.
108749         (jm_PREREQ): Use it.
108751 2001-11-09  Jim Meyering  <meyering@lucent.com>
108753         * m4/jm-macros.m4: Require autoconf-2.52f.
108754         (AC_FUNC_ERROR_AT_LINE, AC_FUNC_OBSTACK, AC_FUNC_STRTOD):
108755         Use these AC_-prefixed names, not the AM_-prefixed ones.
108757         * m4/afs.m4 (jm_AFS): Quote the body.  Patch by Akim Demaille.
108759 2001-11-05  Jim Meyering  <meyering@lucent.com>
108761         * lib/xstat.in (slash_aware_lstat): Correct a misleading comment.
108763 2001-11-04  Jim Meyering  <meyering@lucent.com>
108765         * m4/fpending.m4: Remove unused cruft that saved, set, and restored
108766         $DEFS.
108768 2001-11-03  Jim Meyering  <meyering@lucent.com>
108770         * m4/jm-glibc-io.m4n (jm_FUNC_GLIBC_UNLOCKED_IO): Quote first arg
108771         of AC_DEFUN.
108773         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Rework so dirfd.c doesn't have to
108774         know the name of the variable in the macro definition.
108776 2001-11-03  Jim Meyering  <meyering@lucent.com>
108778         * lib/argmatch.h (ARGMATCH_TO_ARGUMENT): Remove casts of first two args
108779         in argmatch_to_argument call.
108781         * lib/dirfd.c (dirfd): Reflect the fact that DIR_TO_FD now takes an
108782         argument.
108784         * lib/hash.c (hash_clear): Fix a bug that could lead to an infloop or
108785         e.g., a fault due to an attempt to free a NULL pointer.
108787 2001-11-01  Jim Meyering  <meyering@lucent.com>
108789         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): New macro.
108790         * m4/jm-macros.m4 (jm_MACROS): Require UTILS_FUNC_DIRFD.
108792 2001-11-01  Jim Meyering  <meyering@lucent.com>
108794         * lib/dirfd.c, lib/dirfd.h: New files.
108795         * lib/Makefile.am (libfetish_a_SOURCES): Add dirfd.h.
108797         * lib/hash.c (hash_print) [TESTING]: Clean up.
108799 2001-10-22  Paul Eggert  <eggert@twinsun.com>
108801         * lib/hard-locale.c (alloca): Define to __builtin_alloca if __GNUC__,
108802         to avoid a warning if -Wall.
108804 2001-10-22  Jeff Bailey  <jbailey@outpost.dnsalias.org>
108806         * README: New file
108807         * doc/*: Add COPYING, COPYING.LIB, COPYING.DOC, fdl.texi
108808         (per RMS's instructions, this is now the canonical source)
108809         * lgpl/, gpl/: New directories.
108811 2001-10-21  Paul Eggert  <eggert@twinsun.com>
108813         * lib/regex.c (uintptr_t): Remove macro and decl; it's config.h's job.
108815 2001-10-21  Jim Meyering  <meyering@lucent.com>
108817         * lib/obstack.c (_): Honor the setting of ENABLE_NLS.  Otherwise,
108818         this code would end up calling gettext even in packages built
108819         with --disable-nls.
108820         * lib/getopt.c (_): Likewise.
108821         * lib/regex.c (_): Likewise.
108823 2001-10-20  Paul Eggert  <eggert@twinsun.com>
108825         * m4/error.m4 (jm_PREREQ_ERROR):
108826         Do not invoke AC_CHECK_FUNCS with strerror_r, as
108827         AC_FUNC_STRERROR_R does that.
108828         Check for strerror declaration.
108830         * m4/strerror_r.m4: Add copyright notice, as nontrivial m4 files
108831         are supposed to have them these days.
108832         (AC_FUNC_STRERROR_R): Always do char* test, so that it gets cached.
108833         Merge changes from latest Autoconf CVS.
108834         Rename ac_cv_func_strerror_r_works to ac_cv_func_strerror_r_char_p,
108835         and rename HAVE_WORKING_STRERROR_R to STRERROR_R_CHAR_P, since
108836         POSIX decided to standardize on the int flavor of strerror_r.
108838 2001-10-20  Paul Eggert  <eggert@twinsun.com>
108840         * lib/error.c (strerror_r): Do not declare unless !_LIBC.
108841         Do not check for HAVE_DECL_STRERROR_R missing unless STRERROR_R_CHAR_P.
108842         Use strerror_r that is only a macro, even if it is not a function.
108843         (strerror): Check for HAVE_DECL_STRERROR before declaring.
108844         (private_strerror): Use prototypes, not old-style function definition.
108845         (print_errno_message): New function.
108846         Support the POSIX 'int'-flavored strerror_r, as well as the traditional
108847         char*-flavored one.
108848         (error_tail, error, error_at_line): Use it.
108850 2001-10-11  Jim Meyering  <meyering@lucent.com>
108852         * lib/argmatch.c (argmatch_invalid): Use quotearg_n_style (0, ...
108853         and quote_n (1, ... to avoid clobbering a buffer.
108855 2001-10-05  Jim Meyering  <meyering@lucent.com>
108857         * lib/Makefile.am: (libfetish_a_SOURCES): Add hash-pjw.c and
108858         hash-pjw.h.
108859         * lib/hash-pjw.c: New file (factored out of fileutils' remove.c).
108860         * lib/hash-pjw.h: New file.
108862 2001-09-30  Jim Meyering  <meyering@lucent.com>
108864         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): See if
108865         `struct fsstat' has the `f_fstypename' member.
108866         Use that to define FS_TYPE, which is now used to make
108867         the getfsstat link test tighter.
108869 2001-09-30  Jim Meyering  <meyering@lucent.com>
108871         * lib/mountlist.c [MOUNTED_GETFSSTAT]:
108872         Include <sys/ucred.h>, for Apple Darwin.
108873         Include sys/mount.h and sys/fs_types.h only if available.
108874         (FS_TYPE): Define.
108875         (read_filesystem_list): Use FS_TYPE.
108877 2001-09-29  Paul Eggert  <eggert@twinsun.com>
108879         * lib/exclude.c (excluded_filename): 0 -> false, since it's
108880         a boolean context.
108882 2001-09-29  Jim Meyering  <meyering@lucent.com>
108884         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS)
108885         [one-argument getmntent function]): Include stdio.h before mntent.h.
108886         SunOS 4.1.x needs it for the declaration of `FILE'.
108887         Patch by Volker Borchert.
108889         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS)
108890         Check for these headers: sys/param.h sys/ucred.h sys/mount.h
108891         sys/fs_types.h, and make the link-test for getfsstat guard #include
108892         directives with appropriate #if HAVE_*_H tests so that we can
108893         detect getfsstat on Apple Darwin1.3.7 systems.
108894         Reported by Nelson Beebe.
108895         Fix harmless typo in cache variable name: s/getsstat/getfsstat/.
108897 2001-09-28  Paul Eggert  <eggert@twinsun.com>
108899         Fix bug reported by Petter Reinholdtsen for HP-UX 10.20, which
108900         #defines strtoimax.  Also treat the other strto* functions
108901         like strtoimax.
108903         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX):
108904         Check for strtoul and strtoumax,
108905         as those declarations are made even in the signed case.
108906         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX):
108907         Likewise, for strtol and strtoimax.
108909 2001-09-28  Paul Eggert  <eggert@twinsun.com>
108911         Fix bug reported by Petter Reinholdtsen for HP-UX 10.20, which
108912         #defines strtoimax.  Also treat the other strto* functions
108913         like strtoimax.
108915         * lib/xstrtol.c (strtol): Do not declare if HAVE_DECL_STRTOL.
108916         (strtoul): Do not declare if HAVE_DECL_STRTOUL.
108917         (strtoimax, strtoumax): Do not declare if already defined as a macro.
108919 2001-09-26  Jim Meyering  <meyering@lucent.com>
108921         Most macros in unlocked-io.h had the wrong number of arguments.
108922         * lib/gen-uio: New script.
108923         (USE_UNLOCKED_IO): Define to 1 if not already defined.
108924         * lib/unlocked-io.hin: Remove file.
108925         * lib/Makefile.am (unlocked-io.h): Rewrite to use a separate script,
108926         rather than trying to embed it here.
108927         (EXTRA_DIST): Add gen-uio.  Remove unlocked-io.hin
108928         Reported by Padraig Brady.
108930 2001-09-25  Volker Borchert  <bt@teknon.de>
108932         * lib/gettimeofday.c (rpl_gettimeofday): Declare local variable
108933         `result'.
108935 2001-09-24  Jim Meyering  <meyering@lucent.com>
108937         * m4/gettext.m4: Use the version from gettext-0.10.40, not CVS.
108939 2001-09-23  Jim Meyering  <meyering@lucent.com>
108941         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Add a compile-test
108942         instead of the mere test for existence of mntent.h.  The latter
108943         would get a false-positive on AIX 3.4 systems.
108944         In the outer getmntent if-block, don't die if neither of the getmntent
108945         tests succeeds.  Instead, just fall through and continue with the
108946         remaining tests.
108948 2001-09-23  Jim Meyering  <meyering@lucent.com>
108950         * lib/mountlist.c: Remove useless parentheses in #if directives.
108951         (MOUNTED) [!defined MOUNTED]: Define to _PATH_MOUNTED, for when
108952         the deprecated MOUNTED symbol is no longer defined in mntent.h.
108954 2001-09-22  Jim Meyering  <meyering@lucent.com>
108956         * m4/gettext.m4: New file.  From gettext.
108957         * m4/lcmessage.m4: Sync with gettext -- this changes only comments.
108958         * m4/progtest.m4: Likewise
108959         * m4/isc-posix.m4: Decrement serial number to sync with gettext.
108960         * m4/glibc21.m4: Likewise.
108962         * m4/libintl.m4: Remove.  No longer used.
108964 2001-09-22  Jim Meyering  <meyering@lucent.com>
108966         * lib/localcharset.c: Update from latest gettext.
108967         * lib/config.charset: Likewise.
108969 2001-09-20  Jim Meyering  <meyering@lucent.com>
108971         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX): Check for declaration of
108972         strtoimax.
108973         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Check for declaration of
108974         strtoumax.
108976 2001-09-20  Jim Meyering  <meyering@lucent.com>
108978         * lib/xstrtol.c (strtoimax): Guard declaration with
108979         `#if !HAVE_DECL_STRTOIMAX', rather than just `#ifndef strtoimax'.
108980         The latter fails because some systems (at least rs6000-ibm-aix4.3.3.0)
108981         have their own, conflicting declaration of strtoimax in sys/inttypes.h.
108982         (strtoumax): Likewise, for completeness (it wasn't necessary).
108984 2001-09-17  Paul Eggert  <eggert@twinsun.com>
108986         * lib/strtoimax.c (HAVE_LONG_LONG):
108987         Redefine to HAVE_UNSIGNED_LONG_LONG if unsigned.
108988         (strtoimax): Use sizeof (long), not sizeof strtol (ptr, endptr, base),
108989         to work around bug in IBM C compiler.
108991 2001-09-17  Jim Meyering  <meyering@lucent.com>
108993         * m4/chown.m4, fstypename.m4, getgroups.m4, gettimeofday.m4,
108994         * m4/jm-mktime.m4, lstat.m4, malloc.m4, memcmp.m4, mkdir-slash.m4,
108995         * m4/nanosleep.m4, putenv.m4, readdir.m4, realloc.m4, rename.m4,
108996         * m4/st_dm_mode.m4, stat.m4, strerror_r.m4, timespec.m4, utimbuf.m4,
108997         * m4/utimes.m4: Use AC_DEFINE rather than AC_DEFINE_UNQUOTED,
108998         whenever the right hand side need not be expanded by the shell.
109000 2001-09-16  Paul Eggert  <eggert@twinsun.com>
109002         * m4/fnmatch.m4 (jm_FUNC_FNMATCH): Remove test for GNU C
109003         library.  It's not correct, as some older glibcs are buggy.
109004         fnmatch wasn't fixed until glibc 2.2.
109006         Use AC_DEFINE, not AC_DEFINE_UNQUOTED, as there's no
109007         special shell magic here.
109009 2001-09-16  Jim Meyering  <meyering@lucent.com>
109011         * m4/mkdir-slash.m4 (UTILS_FUNC_MKDIR_TRAILING_SLASH): New file/macro.
109012         * m4/jm-macros.m4: Require it.
109014 2001-09-16  Jim Meyering  <meyering@lucent.com>
109016         * lib/mkdir.c: New file.
109018 2001-09-15  Jim Meyering  <meyering@lucent.com>
109020         * m4/jm-macros.m4: Check for help2man.
109022 2001-09-11  Jim Meyering  <meyering@lucent.com>
109024         * m4/host-os.m4 (UTILS_HOST_OS): New file/macro.
109025         The body, by Paul Eggert, was moved here from configure.in.
109026         * m4/jm-macros.m4: Require UTILS_HOST_OS.
109028 2001-09-04  Paul Eggert  <eggert@twinsun.com>
109030         * m4/prereq.m4 (jm_PREREQ_XREADLINK): New macro.
109031         (jm_PREREQ): Use it.
109033 2001-09-04  Paul Eggert  <eggert@twinsun.com>
109035         * lib/xreadlink.c (xreadlink): Omit size_t* arg.  All uses changed.
109036         Use ssize_t, not int, to store result of readlink.
109037         Check for ssize_t overflow as well as size_t overflow,
109038         as POSIX says the result of readlink is implementation-defined
109039         when ssize_t overflows.
109040         Remove unnecessary cast to char*.
109041         Use free+malloc instead of realloc, as the storage doesn't need
109042         to be preserved and it's clearer and can be more efficient that way.
109043         (SIZE_MAX, SSIZE_MAX): New macros, if <limits.h> doesn't declare.
109044         * lib/xreadlink.h (xreadlink): Update prototype.
109046 2001-09-04  Paul Eggert  <eggert@twinsun.com>
109048         * lib/xgetcwd.c: Revert some of the previous change; intead,
109049         fix the HAVE_GETCWD_NULL code to behave more like the
109050         !HAVE_GETCWD_NULL code used to.
109052         Include "xalloc.h".
109053         (xgetcwd): Do not return NULL when memory is exhausted; instead,
109054         invoke xalloc_die.
109056 2001-09-03  Paul Eggert  <eggert@twinsun.com>
109058         * m4/prereq.m4 (jm_PREREQ_XGETCWD): Check for limits.h and
109059         sys/param.h, as pathmax.h includes them.
109061 2001-09-03  Paul Eggert  <eggert@twinsun.com>
109063         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_XGETCWD.
109064         (jm_PREREQ_XGETCWD): New macro.
109066         * m4/getcwd.m4: New file.
109068 2001-09-03  Paul Eggert  <eggert@twinsun.com>
109070         * lib/xgetcwd.c: Fix the !HAVE_GETCWD_NULL code to behave more
109071         like the HAVE_GETCWD_NULL code.
109072         Include pathmax.h if not HAVE_GETCWD.
109073         Do not include xalloc.h.
109074         (INITIAL_BUFFER_SIZE): New symbol.
109075         Do not use xmalloc / xrealloc, since the caller is responsible for
109076         handling errors.  Preserve errno around `free' during failure.
109077         Do not overrun buffer when using getwd.
109079 2001-09-03  Paul Eggert  <eggert@twinsun.com>
109081         * lib/xgetcwd.c (xgetcwd): Use HAVE_GETCWD_NULL, not (defined
109082         __GLIBC__ && __GLIBC__ >= 2), to decide whether to use
109083         getcwd (NULL, 0).
109085 2001-09-03  Paul Eggert  <eggert@twinsun.com>
109087         * lib/exclude.c (fnmatch_no_wildcards): Fix confusion between
109088         usage of FNM_CASEFOLD and FNM_LEADING_DIR.  The bug was
109089         spotted by Jim Meyering.
109091 2001-09-03  Jim Meyering  <meyering@lucent.com>
109093         * lib/xreadlink.c (xreadlink): Preserve errno around `free' during
109094         failure.
109096 2001-09-02  Jim Meyering  <meyering@lucent.com>
109098         * lib/error.c: Update from GNU libc.
109100 2001-09-01  Jim Meyering  <meyering@lucent.com>
109102         * m4/jm-macros.m4 (jm_MACROS): Check for canonicalize_file_name.
109103         Used by df.
109105 2001-09-01  Jim Meyering  <meyering@lucent.com>
109107         * lib/xreadlink.c: New file.
109108         * lib/xreadlink.h: New file.
109109         * lib/Makefile.am (libfetish_a_SOURCES): Add xreadlink.c and
109110         xreadlink.h.
109112         * lib/regex.c (uintptr_t) [!_LIBC]: Define to private_uintptr_t, so it
109113         doesn't conflict with sparc Solaris 7's definition in
109114         /usr/include/sys/int_types.h.
109116         * lib/exclude.c: Use `""', not `<>' to #include non-system header
109117         files.
109118         (fnmatch_no_wildcards): Rewrite not to use function names, strcasecmp
109119         and strncasecmp as r-values.  Unixware didn't have declarations.
109121 2001-08-31  Paul Eggert  <eggert@twinsun.com>
109123         * lib/xstrtol.h: Add copyright notice.
109124         (_DECLARE_XSTRTOL): Improve quality of diagnostic for
109125         LONGINT_INVALID_SUFFIX_CHAR.
109127 2001-08-31  Paul Eggert  <eggert@twinsun.com>
109129         * lib/xstrtol.c (strtoimax): New decl.
109131 2001-08-31  Paul Eggert  <eggert@twinsun.com>
109133         * lib/xgetcwd.c: Don't include pathmax.h.
109134         Include stdlib.h and unistd.h if available.
109135         Include xalloc.h.
109136         (xmalloc, xstrdup, free): Remove decls.
109137         (xgetcwd): Don't assume sizes fit in unsigned.
109138         Check for overflow when computing sizes.
109139         Simplify reallocation code.
109141 2001-08-31  Paul Eggert  <eggert@twinsun.com>
109143         * lib/savedir.c (savedir): Remove size parameter, as POSIX says that
109144         a directory's st_size can have an arbitrary value, so the old
109145         usage could waste an arbitrary amount of memory.  All uses
109146         changed.
109147         * lib/savedir.h: Update prototype.
109149 2001-08-31  Paul Eggert  <eggert@twinsun.com>
109151         * lib/Makefile.am (libfetish_a_SOURCES): Remove strtoxmax.c.
109153         * lib/strtoimax.c: Renamed from strtoxmax.c, removing the
109154         old strtoimax.c.
109156         Also, make the following further changes to make this file's
109157         configuration more similar to that of strtol.c:
109158         (UNSIGNED): Renamed from STRTOUXMAX_UNSIGNED.  All uses changed.
109159         (strtoumax, uintmax_t, strtoull, strtol): Remove.
109160         (intmax_t, strtoimax, strtol, strtoll): New macros, if UNSIGNED.
109161         (strtoimax): Renamed from strtoumax.  All uses of unsigned values
109162         changed to signed values.
109164         And make the following changes as well:
109165         Fix copyright notice, as 1999 was missing.
109166         (verify): New macro.
109167         (strtoimax): Check sizes at compile-time, not run-time.
109168         Prefer strtol to strtoll if both work.
109169         (main): Remove; it was not that useful and was a pain to maintain.
109171         * lib/strtoumax.c: Include strtoimax.c, not strtouxmax.c.
109173 2001-08-31  Jim Meyering  <meyering@lucent.com>
109175         * lib/xgetcwd.c (xgetcwd): Reorganize to avoid some duplication.
109176         Use an initial, malloc'd, buffer of length 128 rather than
109177         a statically allocated one of length 1024.
109179 2001-08-30  Paul Eggert  <eggert@twinsun.com>
109181         Simplify code, partly by assuming autoconf 2.52 semantics.
109183         * m4/Makefile.am (EXTRA_DIST): Remove uintmax_t.m4.
109185         * m4/inttypes.m4 (AC_PREREQ): Bump to 2.52.
109186         (jm_AC_HEADER_INTTYPES_H): Remove; now done by autoconf in 2.52.
109187         All uses removed.
109188         (jm_AC_TYPE_INTMAX_T, jm_AC_TYPE_UINTMAX_T):
109189         Move AC_REQUIRE to next-to-top level, to avoid confusion.
109190         Use 2.52's AC_CHECK_TYPE instead of merely looking for the header.
109191         * m4/prereq.m4 (jm_PREREQ_HUMAN): Don't require
109192         jm_AC_HEADER_INTTYPES_H.
109193         * m4/jm-macros.m4 (jm_MACROS): Likewise.
109195         * m4/uintmax_t.m4: Remove, as it duplicates inttypes.m4.
109197         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX):
109198         Quote first arg of AC_DEFUN.
109199         Require jm_AC_TYPE_UINTMAX_T and jm_AC_TYPE_UNSIGNED_LONG_LONG
109200         since they are needed to parse the include file even if we need
109201         only xstrtoimax.  Simplify logic behind the args to AC_REPLACE.
109202         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Likewise,
109203         but with opposite signedness.
109205 2001-08-30  Paul Eggert  <eggert@twinsun.com>
109207         Merge 'exclude' changes from tar 1.13.22.
109208         This fixes one or two unlikely storage allocation overflow bugs,
109209         but doesn't change user-visible behavior otherwise.
109211 2001-08-30  Paul Eggert  <eggert@twinsun.com>
109213         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_EXCLUDE.
109214         (jm_PREREQ_EXCLUDE): New macro.
109216 2001-08-30  Paul Eggert  <eggert@twinsun.com>
109218         * lib/quotearg.c: BSD/OS 4.1 wchar.h requires FILE and struct
109219         tm to be declared.
109221 2001-08-30  Paul Eggert  <eggert@twinsun.com>
109223         * lib/hash.c: Remove '2001' from copyright notice.
109225 2001-08-30  Paul Eggert  <eggert@twinsun.com>
109227         * lib/full-write.h: New file.
109228         * lib/Makefile.am (libfetish_a_SOURCES): Add full-write.h.
109229         * lib/full-write.c: Correct credits, as cccp.c no longer
109230         exists and anyway it was so heavily changed from the old cccp
109231         code as to be unrecognizable.  Include full-write.h.
109232         (full_write): Return size_t, with short writes meaning failure.
109233         All callers changed.  This fixes a bug with large buffers
109234         on 64-bit hosts.
109235         * lib/utime.c: Include full-write.h.
109237 2001-08-30  Paul Eggert  <eggert@twinsun.com>
109239         * lib/exclude.c (bool): Declare, perhaps by including stdbool.h.
109240         (<sys/types.h>): Include only if HAVE_SYS_TYPES_H.
109241         (<stdlib.h>, <string.h>, <strings.h>, <inttypes.h>, <stdint.h>):
109242         Include if available.
109243         (<xalloc.h>): Include
109244         (SIZE_MAX): Define if <stdint.h> or <inttypes.h> doesn't.
109245         (verify): New macro.  Use it to verify that EXCLUDE macros do not
109246         collide with FNM macros.
109247         (struct patopts): New struct.
109248         (struct exclude): Use it, as exclude patterns now come with options.
109249         (new_exclude): Support above changes.
109250         (new_exclude, add_exclude_file):
109251         Initial size must now be a power of two to simplify overflow checking.
109252         (free_exclude, fnmatch_no_wildcards): New function.
109253         (excluded_filename): No longer requires options arg, as the options
109254         are determined by add_exclude.  Now returns bool, not int.
109255         (excluded_filename, add_exclude):
109256         Add support for the fancy new exclusion options.
109257         (add_exclude, add_exclude_file): Now takes int options arg.
109258         Check for arithmetic overflow when computing sizes.
109259         (add_exclude_file): xrealloc might modify errno, so don't
109260         realloc until after errno might be used.
109262         * lib/exclude.h (EXCLUDE_ANCHORED, EXCLUDE_INCLUDE,EXCLUDE_WILDCARDS):
109263         New macros.
109264         (free_exclude): New decl.
109265         (add_exclude, add_exclude_file): Now takes int options arg.
109266         (excluded_filename): No longer requires options arg, as the options
109267         are determined by add_exclude.  Now returns bool, not int.
109269 2001-08-30  Paul Eggert  <eggert@twinsun.com>
109271         * lib/alloca.c (alloca): Arg is of type size_t, not unsigned.
109273 2001-08-27  Jim Meyering  <meyering@lucent.com>
109275         * lib/Makefile.am (libfetish_a_SOURCES): Add strtoxmax.c
109277         * lib/version-etc.c (N_): Remove definition.
109278         Revert most of last change.
109279         Instead, simply don't mark the `Copyright...' string for translation.
109280         Based on advice from Paul Eggert.
109282         * lib/strtoxmax.c: Tweak comment.
109284 2001-08-26  Jim Meyering  <meyering@lucent.com>
109286         * m4/jm-macros.m4: Require jm_AC_PREREQ_XSTRTOIMAX.
109288         * m4/xstrtoimax.m4: New file.
109289         * m4/xstrtoumax.m4: Add comments explaining why we
109290         AC_REPLACE_FUNCS(strtol).
109292 2001-08-26  Jim Meyering  <meyering@lucent.com>
109294         * lib/version-etc.c (version_etc_copyright_fmt): Replace literal year
109295         of copyright with `%s' so translators don't get an untranslated
109296         message in 2002.
109297         (COPYRIGHT_YEAR): Define.
109298         (version_etc): Use fprintf rather than fputs.
109299         Suggestion from Ulrich Drepper.
109301         * lib/Makefile.am (libfetish_a_SOURCES): Add xstrtoimax.c.
109303         * lib/strtoll.c: New file, from GNU libc.
109304         * lib/xstrtoimax.c: New file.
109306         * lib/xstrtol.h: Add xstrtoimax.
109307         * lib/strtoumax.c: New file.  Simply include "strtoumax.c".
109308         * lib/strtoimax.c: New file.  Likewise, but first define
109309         STRTOUXMAX_SIGNED.
109311         * lib/strtoumax.c: Factor to work both for unsigned and signed types,
109312         ...
109313         * lib/strtoxmax.c: ... then renamed to this.
109315 2001-08-18  Paul Eggert  <eggert@twinsun.com>
109317         * m4/inttypes.m4: Add AC_PREREQ(2.13).
109318         (jm_AC_HEADER_INTTYPES_H): Test for intmax_t, too.
109319         (jm_AC_TYPE_INTMAX_T): New macro.
109320         (jm_AC_TYPE_UINTMAX_T): Moved here from uintmax_t.m4.
109322         * m4/longlong.m4 (jm_AC_TYPE_LONG_LONG): New macro.
109324         * m4/longlong.m4: Renamed from ulonglong.m4.
109325         * m4/inttypes.m4: Renamed from inttypes_h.m4.
109326         * m4/uintmax_t.m4: Removed.
109328 2001-08-13  Paul Eggert  <eggert@twinsun.com>
109330         * lib/Makefile.am (unlocked-io.h): Do not append "_unlocked" twice.
109331         Port to Solaris 8, where 'sed' requires a space after the 'r'
109332         command, and where sh dislikes "$/".  Clean up the spacing a bit.
109333         Redirect output to $tmp just once.
109335 2001-08-12  Paul Eggert  <eggert@sic.twinsun.com>
109337         * lib/addext.c (<errno.h>): Include.
109338         (errno): Declare if not defined.
109339         (addext): Work correctly when pathconf returns -1 and leaves
109340         errno alone because there is no limit.  Also, work even if
109341         pathconf returns a value greater than SIZE_MAX.
109343 2001-08-12  Jim Meyering  <meyering@lucent.com>
109345         * m4/afs.m4, assert.m4, bison.m4, check-decl.m4, chown.m4, d-ino.m4,
109346         d-type.m4, dos.m4, error.m4, fnmatch.m4, fpending.m4, fstypename.m4,
109347         fsusage.m4, ftruncate.m4, getgroups.m4, glibc.m4, gnu-source.m4,
109348         group-member.m4, jm-glibc-io.m4, jm-macros.m4, jm-mktime.m4,
109349         jm-winsz1.m4, jm-winsz2.m4, lchown.m4, lib-check.m4, libintl.m4,
109350         link-follow.m4, ls-mntd-fs.m4, lstat.m4, malloc.m4, mbrtowc.m4,
109351         mbstate_t.m4, mbswidth.m4, memcmp.m4, nanosleep.m4, perl.m4,
109352         prereq.m4, putenv.m4, readdir.m4, realloc.m4, regex.m4, rename.m4,
109353         rmdir-errno.m4, search-libs.m4, st_dm_mode.m4, st_mtim.m4, stat.m4,
109354         strftime.m4, timespec.m4, unlink-busy.m4, uptime.m4, utimbuf.m4,
109355         utime.m4, utimes.m4, xstrtoumax.m4:
109356         Quote the first argument in each use of AC_DEFUN.
109358 2001-08-12  Jim Meyering  <meyering@lucent.com>
109360         * lib/xgetcwd.c (xgetcwd) [defined __GLIBC__ && __GLIBC__ >= 2]:
109361         Simply `return getcwd (NULL, 0);'.
109362         [! (defined __GLIBC__ && __GLIBC__ >= 2)]:
109363         Use 1300 as initial value for length, not PATH_MAX.
109365         * lib/pathmax.h: Clean up cpp syntax.
109367 2001-08-12  Jim Meyering  <meyering@lucent.com>
109369         * lib/gettimeofday.c: New file.
109370         * lib/gtod.h: New file.
109371         * lib/Makefile.am (libfetish_a_SOURCES): Add gtod.h.
109373 2001-08-05  Jim Meyering  <meyering@lucent.com>
109375         * m4/jm-macros.m4: Require autoconf-2.52.
109377 2001-08-04  Jim Meyering  <meyering@lucent.com>
109379         * lib/error.h (__attribute__): Remove `|| __STRICT_ANSI__' from #if
109380         stmt, to get in sync with glibc.
109382 2001-08-03  Paul Eggert  <eggert@twinsun.com>
109384         The following changes are from gettext 0.10.39 as maintained by
109385         Bruno Haible.
109387         * lib/mbswidth.h (MBSW_REJECT_UNPRINTABLE, MBSW_REJECT_INVALID):
109388         Renamed from MBSW_ACCEPT_UNPRINTABLE and MBSW_ACCEPT_INVALID
109389         with inverted sense.  All uses changed.
109391         * lib/mbswidth.c: Don't include <limits.h>.
109392         Include <stdlib.h> and <string.h> unconditionally.
109393         (iswcntrl, mbsinit, ISCNTRL): New macros.
109394         (mbsnwidth): Use K&R style function declarations.
109395         Don't bother checking for MB_LEN_MAX == 1, since the compiler
109396         can optimize it when MB_CUR_MAX == 1.
109397         The width of control characters is zero, not 1.
109399 2001-08-03  Paul Eggert  <eggert@twinsun.com>
109401         The following changes are from gettext 0.10.39 as maintained by
109402         Bruno Haible, except that getline.m4 continues to use AC_LIBOBJ.
109404         * m4/codeset.m4: Upgrade to serial AM1.
109405         (AM_LANGINFO_CODESET): Renamed from jm_LANGINFO_CODESET;
109406         all uses changed.  Quote first arg of AC_DEFUN.
109407         (am_cv_langinfo_codeset): Renamed from jm_cv_langinfo_codeset.
109409         * m4/iconv.m4: Upgrade to serial AM2.
109410         (AM_ICONV): Renamed from jm_ICONV; all uses changed.
109411         Add --with-libconv-prefix.
109412         Quote first arg of AC_DEFUN.  Add description for ICONV_CONST.
109413         (am_cv_func_iconv): Renamed from jm_cv_func_iconv.
109414         (am_cv_lib_iconv): Renamed from jm_cv_lib_iconv.
109415         (am_cv_proto_iconv): Renamed from jm_cv_proto_iconv.
109416         * m4/jm-macros.m4 (jm_MACROS): Reflect s/jm_/AM_/ renamings.
109418         * m4/c-bs-a.m4 (AC_C_BACKSLASH_A): Quote first arg of AC_DEFUN.
109419         * m4/getline.m4 (AM_FUNC_GETLINE): Likewise.
109420         * m4/glibc21.m4 (jm_GLIBC21): Likewise.
109421         * m4/inttypes_h.m4 (jm_AC_HEADER_INTTYPES_H): Likewise.
109422         * m4/isc-posix.m4 (AC_ISC_POSIX): Likewise.
109423         * m4/lcmessage.m4 (AM_LC_MESSAGES): Likewise.
109424         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
109425         * m4/uintmax_t.m4 (jm_AC_TYPE_UINTMAX_T): Likewise.
109426         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Likewise.
109428         * m4/getline.m4 (AM_FUNC_GETLINE): Don't bother checking for
109429         string.h any more.
109431         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): If not found, print "no",
109432         not the default value.
109434         2001-06-25  Bruno Haible  <haible@clisp.cons.org>
109435         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Don't require AM_C_PROTOTYPES.
109436         Also check for mbsinit.  Needed for SCO 3.2v5.0.2.
109437         Also include <string.h>; this is where AIX 3.2.5 declares wcwidth.
109438         Also check for iswcntrl, used for wcwidth fallback.
109439         Use AC_TRY_COMPILE to emulate AC_CHECK_DECLS, for portability
109440         to Autoconf 2.13.
109442 2001-08-03  Jim Meyering  <meyering@lucent.com>
109444         * m4/mbrtowc.m4 (jm_FUNC_MBRTOWC): Use `#include', not `@%:@include',
109445         as it was in the original.  Reported by Paul Eggert.
109447 2001-07-16  Jim Meyering  <meyering@lucent.com>
109449         * m4/gettimeofday.m4: New file.
109450         Prompted by a report from Bernhard Baehr.
109452 2001-07-15  Jim Meyering  <meyering@lucent.com>
109454         * m4/Makefile.am.in (Makefile.am): Remove most of the unlocked-io.h
109455         stuff. Now it's in ../Makefile.cfg.
109457 2001-07-15  Jim Meyering  <meyering@lucent.com>
109459         * lib/Makefile.am (EXTRA_DIST): Add unlocked-io.hin.
109460         (BUILT_SOURCES): Add unlocked-io.h.
109461         (io_functions): Define.
109462         (unlocked-io.h): New rule.
109463         (DISTCLEANFILES): Add unlocked-io.h.
109464         (all-local): Depend on unlocked-io.h, to ensure it is created.
109466         * lib/unlocked-io.hin: New file
109468         * lib/regex.c: Update from glibc.
109470 2001-07-05  Jim Meyering  <meyering@lucent.com>
109472         * lib/Makefile.am (noinst_HEADERS): Remove definition, per new automake
109473         recommendation.
109474         (libfetish_a_SOURCES): Put all .h files here instead.
109475         Remove a thus-exposed (better checks in automake) duplicate and
109476         two unnecessary .h files.
109478 2001-07-04  Jim Meyering  <meyering@lucent.com>
109480         * m4/Makefile.am.in (glibc-io.struct): New target.  Rework the code
109481         that generates jm-glibc-io.m4 so that it doesn't trigger any make
109482         distcheck failure.
109484 2001-07-02  Jim Meyering  <meyering@lucent.com>
109486         The following changes were prompted by suggestions from Bruno Haible.
109488         * m4/jm-glibc-io.m4n: New file, the template from which jm-glibc-io.m4
109489         is now generated.
109490         * m4/Makefile.am.in (Makefile.am): Include jm-glibc-io.m4n in emitted
109491         definition of EXTRA_DIST.
109492         (Makefile.am): Emit the dependency, `all-local: jm-glibc-io.m4' to
109493         ensure that the generated file is created/updated whenever the list
109494         of $(unlocked_functions) is changed.
109495         (jm-glibc-io.m4): New rule.
109496         (unlocked-io.h): New rule -- currently unused.
109498 2001-06-24  Jim Meyering  <meyering@lucent.com>
109500         * m4/regex.m4 (jm_INCLUDED_REGEX): Use a quadrigraph to represent an
109501         unmatched right bracket, rather than kludging it with an extra,
109502         falsely-matching quote in a comment.  Patch by Akim Demaille.
109504 2001-06-11  Jim Meyering  <meyering@lucent.com>
109506         * lib/regex.c: Update from GNU libc.
109508 2001-05-27  Jim Meyering  <meyering@lucent.com>
109510         * m4/prereq.m4 (jm_PREREQ_READUTMP): Check for ut_type in struct utmpx.
109511         Check for ut_type in struct utmp.
109513 2001-05-27  Jim Meyering  <meyering@lucent.com>
109515         * lib/readutmp.h (UT_TYPE): Define.
109517 2001-05-24  Jim Meyering  <meyering@lucent.com>
109519         * lib/argmatch.c: Include "quote.h".
109520         (argmatch_invalid): Remove explicit `' quotes.  Instead, use the
109521         quote function.  Reported by Göran Uddeborg.
109523 2001-05-22  Jim Meyering  <meyering@lucent.com>
109525         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't use AC_LIBOBJ(strftime),
109526         now that we use the package-supplied version unconditionally.
109527         (jm_FUNC_STRFTIME): Don't replace strftime, for the same reason.
109529 2001-05-21  Jim Meyering  <meyering@lucent.com>
109531         * m4/regex.m4: Change a couple backticks to single quotes to avoid
109532         shell syntax errors.
109534 2001-05-21  Alexandre Duret-Lutz  <duret_g@epita.fr>
109536         * m4/dos.m4 (jm_AC_DOS): Check for _WIN32, __WIN32__, and __MSDOS__.
109538 2001-05-20  Paul Eggert  <eggert@twinsun.com>
109540         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME):
109541         Don't bother to check library strftime, since
109542         we'll be using our own my_strftime function anyway.
109543         Define my_strftime instead of strftime.
109545 2001-05-20  Alexandre Duret-Lutz  <duret_g@epita.fr>
109547         * lib/dirname.c (dir_name): Compute append_dot using path, not newpath
109548         which is not yet declared.
109550 2001-05-15  Jim Meyering  <meyering@lucent.com>
109552         * m4/regex.m4: Use proper quoting so brackets appear in the test
109553         program.
109554         Reported by, and with help from, Bruno Haible.
109556 2001-05-13  Jim Meyering  <meyering@lucent.com>
109558         * m4/jm-macros.m4 (major_t, minor_t): Define to unsigned int if
109559         undefined.
109561 2001-05-11  Paul Eggert  <eggert@twinsun.com>
109563         dirname code cleanup.  base_name now behaves more compatibly
109564         with POSIX basename when given file names that have trailing
109565         slashes, and similarly for dir_name.  Add new primitives
109566         base_len and dir_len.  Put the directory-name-related decls
109567         into dirname.h.
109569         * lib/addext.c (ISSLASH, base_name): Remove; now in dirname.h.
109570         * lib/backupfile.c (base_name): Likewise.
109571         * lib/basename.c (FILESYSTEM_PREFIX_LEN, PARAMS, ISSLASH): Likewise.
109572         * lib/dirname.c (FILESYSTEM_PREFIX_LEN, ISSLASH): Likewise.
109573         * lib/makepath.c (strip_trailing_slashes): Likewise.
109574         * lib/path-concat.c (DIRECTORY_SEPARATOR, FILESYSTEM_PREFIX_LEN,
109575         ISSLASH): Likewise.
109576         * lib/rename.c (strip_trailing_slashes): Likewise.
109577         * lib/same.c (base_name): Likewise.
109578         * lib/stripslash.c (ISSLASH): Likewise.
109580         * lib/addext.c: Include <dirname.h> after size_t is defined.
109581         * lib/backupfile.c: Likewise.
109583         * lib/addext.c (addext): Use base_len to trim redundant
109584         trailing slashes instead of doing it ourselves.
109585         But do not trim the last slash if it is not redundant.
109587         * lib/backupfile.c (find_backup_file_name,
109588         max_backup_version): Use base_len instead of rolling it ourselves.
109589         Handle the case of "" and (on DOS) "C:" correctly.
109591         * lib/basename.c: Do not include <stdio.h>, <assert.h>; no longer
109592         needed. Include <string.h>, <dirname.h>.
109593         (base_name): Allow file names ending in slashes, other than names
109594         that are all slashes.  In this case, return the basename followed
109595         by the slashes.  This is more general, and can be used in places
109596         where the original base_name purposely had an assertion failure.
109597         (base_len): New function.
109599         * lib/dirname.c: Include <string.h> instead of <stdlib.h>.
109600         Do not include <assert.h>; no longer needed.
109601         Include xalloc.h.
109602         (memrchr): Remove decl.
109603         (dir_name_r): Remove.
109604         (dir_len): Renamed from dirlen.  All callers changed.
109605         Rewrite in terms of base_name, for simplicity and consistency.
109606         (dir_name): Never return NULL.  All callers changed.
109607         Do not include <stdlib.h> in test program; no longer needed.
109608         return 0; is fine for test program.
109610         * lib/dirname.h (DIRECTORY_SEPARATOR, ISSLASH, FILESYSTEM_PREFIX_LEN):
109611         New macros.
109612         (base_name, base_len, dir_len, strip_trailing_slashes): New decls.
109614         * lib/path-concat.c (path_concat): Use base_len to compute
109615         base length, not strlen; this means we cannot rely on memcpy
109616         to null-terminate.
109618         * lib/same.c (STREQ): Remove.
109619         (same_name): Handle the case where the basename ends in trailing '/'.
109621         * lib/stripslash.c (strip_trailing_slashes): Return nonzero if
109622         a slash was stripped.  Do not strip the last slash after a
109623         file system prefix.
109625 2001-05-11  Paul Eggert  <eggert@twinsun.com>
109627         * lib/Makefile.am (libfetish_a_SOURCES):
109628         Add strftime.c, since we now compile it on all hosts.
109630         * lib/strftime.c (my_strftime):
109631         Define to nstrftime if emacs, but only if my_strftime is not defined.
109632         (extra_args, extra_args_spec, extra_args_spec_iso): Rename from
109633         ut_argument, ut_argument_spec, ut_argument_spec_iso, respectively.
109634         Add one more extra argument: a nanoseconds value.
109635         All uses changed.
109636         (ns): New macro.
109637         (my_strftime function): Add %N format.
109638         (emacs_strftimeu): Renamed from emacs_strftime,
109639         with extra ut argument.
109641 2001-05-09  Paul Eggert  <eggert@twinsun.com>
109643         * m4/jm-macros.m4 (jm_MACROS): Do not check for fseeko; no longer used.
109645 2001-04-21  Jim Meyering  <meyering@lucent.com>
109647         * m4/rmdir-errno.m4: Write to a new file, so that a restrictive umask
109648         doesn't interfere.
109650 2001-04-21  Alexandre Duret-Lutz  <duret_g@epita.fr>
109652         * m4/ftruncate.m4: Check for chsize.
109653         Link with ftruncate.o unconditionally if ftruncate is missing.
109654         This was required when cross-compiling to i586-mingw32msvc.
109656 2001-04-08  Jim Meyering  <meyering@lucent.com>
109658         * lib/getdate.y (get_date): Set tm_isdst to -1 to ensure that it is
109659         recomputed; that's necessary when the offset spans a DST transition.
109660         Patch by David J. MacKenzie.  Reported by Hon-Yin Kok.
109662 2001-04-02  Jim Meyering  <meyering@lucent.com>
109664         * lib/regex.h, regex.c: Update from GNU libc.
109666 2001-03-24  Jim Meyering  <meyering@lucent.com>
109668         * m4/jm-macros.m4: Require autoconf-2.49d.
109670 2001-03-20  Bruno Haible  <haible@clisp.cons.org>
109672         * m4/iconv.m4 (jm_ICONV): Recommend GNU libiconv.
109674 2001-03-19  Paul Eggert  <eggert@twinsun.com>
109676         * lib/version-etc.c (version_etc_copyright): Update to 2001.
109678 2001-03-17  Jim Meyering  <meyering@lucent.com>
109680         * m4/memcmp.m4 (jm_AC_FUNC_MEMCMP): Remove my copy of AC_FUNC_MEMCMP,
109681         now that the version in autoconf is equivalent.
109682         (jm_FUNC_MEMCMP): Adjust to use AC_FUNC_MEMCMP.
109684         * m4/error.m4 (jm_PREREQ_ERROR): Invoke AC_FUNC_STRERROR_R.
109685         Suggestion from Akim Demaille.
109687         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_TEMPNAME.
109688         (jm_PREREQ_TEMPNAME): New function.
109690 2001-03-16  Paul Eggert  <eggert@twinsun.com>
109692         * lib/tempname.c (uint64_t): Define to uintmax_t if
109693         not defined, and if UINT64_MAX is not defined.
109694         Required at least for Vax Ultrix4.3, which doesn't define uint64_t.
109695         Reported by John David Anglin.
109697 2001-03-15  Bruno Haible  <haible@clisp.cons.org>
109699         * lib/localcharset.c (locale_charset): Allow wildcard syntax. Also
109700         resolve alias if codeset is empty.
109701         * lib/config.charset (BeOS): Use wildcard syntax.
109703 2001-03-13  Jim Meyering  <meyering@lucent.com>
109705         * lib/path-concat.c (path_concat)
109706         [FILESYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX]: Don't insert a backslash when
109707         concatenating e.g., `C:' and `foo'.
109708         From Bruno Haible.
109710 2001-03-06  Bruno Haible  <haible@clisp.cons.org>
109712         * lib/localcharset.c (locale_charset): Don't use
109713         setlocale(LC_CTYPE,NULL). Don't return NULL.
109714         * lib/unicodeio.c (print_unicode_char): Simplify accordingly.
109716 2001-03-06  Bruno Haible  <haible@clisp.cons.org>
109718         * lib/config.charset: Update for FreeBSD 4.2 and OSF/1 5.1. Add
109719         support for DOS/DJGPP.
109721 2001-03-01  Paul Eggert  <eggert@twinsun.com>
109723         * m4/jm-macros.m4 (jm_MACROS): Use mkstemp replacement if the system
109724         lacks mkstemp.  Compile our own tempname.c if we compile our own
109725         mkstemp.c, as mkstemp relies on tempname.
109727 2001-03-01  Jim Meyering  <meyering@lucent.com>
109729         * m4/dos.m4 (jm_AC_DOS): Remove extra backslashes, now that
109730         AH_VERBATIM really does output its argument verbatim.
109732 2001-02-28  Paul Eggert  <eggert@twinsun.com>
109734         * lib/Makefile.am (libfetish_a_SOURCES):
109735         Add dup-safer.c, fopen-safer.c.
109736         (noinst_HEADERS): Add stdio-safer.h, unistd-safer.h.
109738         * lib/dup-safer.c, lib/fopen-safer.c, lib/stdio-safer.h:
109739         * lib/unistd-safer.h: New files.
109741 2001-02-25  Paul Eggert  <eggert@twinsun.com>
109743         The mkstemp replacement is taken from glibc 2.2.2, with some
109744         portability fixes for use outside glibc, as follows:
109746         * lib/tempname.c (struct_stat64): New macro.
109747         (direxists, __gen_tempname): Use it.
109748         This avoids a portability problem with Solaris 8.
109750         * lib/tempname.c (<config.h>): Include if HAVE_CONFIG_H.
109751         (<stddef.h>, <stdint.h>, <string.h>):
109752         Include only if STDC_HEADERS || _LIBC.
109753         (<fcntl.h>): Include only if HAVE_FCNTL_H || _LIBC.
109754         (<unistd.h>): Include only if HAVE_UNISTD_H || _LIBC.
109755         (<sys/time.h>): Include only if HAVE_SYS_TIME_H || _LIBC.
109756         (__set_errno): Define this macro if <errno.h> doesn't.
109757         (P_tmpdir, TMP_MAX, __GT_FILE, __GT_BIGFILE, __GT_DIR, __GT_NOCREATE):
109758         Define these macros if <stdio.h> doesn't.
109759         (S_ISDIR, S_IRUSR, S_IWUSR, S_IXUSR):
109760         Define these macros if <sys/stat.h>
109761         doesn't.  Ignore <sys/stat.h> S_ISDIR if STAT_MACROS_BROKEN.
109762         (stat64, __getpid, __gettimeofday, __mkdir, __open, __open64, lxstat64,
109763         __xstat64): Define if not _LIBC.
109764         (__secure_getenv): Define if ! (HAVE___SECURE_GETENV || _LIBC).
109765         (__gen_tempname): Invoke gettimeofday only if
109766         HAVE_GETTIMEOFDAY || _LIBC;
109767         otherwise, fall back on plain "time".
109768         Use macros like S_IRUSR | S_IWUSR rather than octal values like 0600.
109770         * lib/mkstemp.c (__GT_FILE): Define to zero if not defined.
109772         * lib/mkstemp.c, lib/tempname.c: New files, taken from glibc 2.2.2.
109774 2001-02-18  Paul Eggert  <eggert@twinsun.com>
109776         * m4/jm-macros.m4 (jm_CHECK_ALL_HEADERS): Check for sys/resource.h.
109778 2001-02-17  Paul Eggert  <eggert@twinsun.com>
109780         * m4/mbrtowc.m4: New file, defining jm_FUNC_MBRTOWC.
109781         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH):
109782         Use jm_FUNC_MBRTOWC, not AC_CHECK_FUNCS(mbrtowc).
109783         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Likewise.
109785 2001-02-17  Paul Eggert  <eggert@twinsun.com>
109787         * lib/mbswidth.c, quotearg.c (mbrtowc, mbsinit):
109788         Remove workaround macros for hosts that have mbrtowc but not
109789         mbstate_t, as we now insist on proper declarations for both
109790         before using mbrtowc.
109792 2001-02-17  Jim Meyering  <meyering@lucent.com>
109794         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Don't check for
109795         getmntent via AC_CHECK_FUNCS, since that would get a `no' and disrupt
109796         further attempts by AC_FUNC_GETMNTENT to check with e.g., -lgen on
109797         UnixWare 7.1.1.
109799         * m4/mbrtowc.m4 (jm_FUNC_MBRTOWC): Adapt to use AC_CACHE_CHECK etc.,
109800         rather than AC_CACHE_VAL.
109802 2001-02-17  Jim Meyering  <meyering@lucent.com>
109804         * lib/strtoul.c: Sync from GNU libc.  Use double quotes, not <...>
109805         around included file name.
109807         * lib/strnlen.c (__strnlen): Merge in a change from GNU libc.
109809         * lib/strftime.c: Update from GNU libc (the only changes were to
109810         comments).
109812 2001-02-17  Jim Meyering  <meyering@lucent.com>
109814         * lib/regex.c: Update from libc.
109816 2001-02-17  Bruno Haible  <haible@clisp.cons.org>
109818         * lib/mbswidth.h (mbswidth): Also define as macro, to avoid prototype
109819         clash.
109821 2001-02-16  Paul Eggert  <eggert@twinsun.com>
109823         * lib/alloca.c (malloc): Undef before defining, since stdlib.h
109824         may have defined it.  Needed for Encore Umax-3.0.9.16b systems.
109825         Reported by Mark Hounschell via Paul Eggert.
109827 2001-02-07  Jim Meyering  <meyering@lucent.com>
109829         * m4/regex.m4 (jm_INCLUDED_REGEX): Add a test for the latest bug.
109831 2001-02-05  Jim Meyering  <meyering@lucent.com>
109833         * m4/jm-macros.m4: Require autoconf-2.14d (not yet released), because
109834         it includes the patch required for `large file' support with at least
109835         HP-UX's 10.20 /bin/cc.
109837 2001-02-03  Jim Meyering  <meyering@lucent.com>
109839         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Restore prior use of
109840         AS_IF, now that it works once again (mysteriously).
109841         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Likewise.
109843 2001-01-30  Jim Meyering  <meyering@lucent.com>
109845         Don't use filenames that are 8.3-equivalent to "conftest" on DOS.
109846         * m4/chown.m4: Rename conftestchown to conftest.chown.
109847         * m4/rename.m4: s/conftestdir/conftest.d1/ and
109848         s/conftestdir2/conftest.d2/.
109849         * m4/utimes.m4: s/conftestdata/conftest.data/
109850         Inspired by Pavel Roskin's change in autoconf.
109852 2001-01-30  Bruno Haible  <haible@clisp.cons.org>
109854         * lib/config.charset: Update for FreeBSD 4.2.
109856 2001-01-27  Jim Meyering  <meyering@lucent.com>
109858         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Open-code what was
109859         a use of AS_IF.
109860         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Likewise.
109862 2001-01-26  Jim Meyering  <meyering@lucent.com>
109864         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Check for stddef.h, now that
109865         quotearg.c includes it.
109867 2001-01-26  Jim Meyering  <meyering@lucent.com>
109869         * lib/quotearg.c: Include stddef.h.
109870         * lib/quote.c: Include stddef.h.
109871         Reported by Axel Kittenberger.
109873         * lib/xmalloc.c [HAVE_DONE_WORKING_MALLOC_CHECK]: Enclose error-evoking
109874         line in double quotes so that it evokes a better diagnostic.
109875         [HAVE_DONE_WORKING_REALLOC_CHECK]: Likewise.
109876         Reported by Axel Kittenberger.
109878 2001-01-24  Stefan Monnier  <monnier@cs.yale.edu>
109880         * regex.c (mutually_exclusive_p): Don't blindly handle `charset_not'
109881         as if it was a `charset'.
109883 2001-01-21  Bruno Haible  <haible@clisp.cons.org>
109885         * m4/iconv.m4 (jm_ICONV): Also check whether the iconv declaration
109886         has const.
109888 2001-01-21  Bruno Haible  <haible@clisp.cons.org>
109890         * lib/unicodeio.c (print_unicode_char): Cast the second iconv() arg,
109891         to avoid a warning.  Add back 'const' to inptr.
109893 2001-01-20  Jim Meyering  <meyering@lucent.com>
109895         Be sure that headers are checked before used in code compiled
109896         for the type checks.
109897         * m4/jm-macros.m4 (jm_MACROS): Remove all header checks.
109898         In place of that, invoke jm_CHECK_ALL_TYPES.
109899         (jm_CHECK_ALL_HEADERS): New functions with the above checks.
109900         (jm_CHECK_ALL_TYPES): Require jm_CHECK_ALL_HEADERS.
109901         Alan Iwi reported a build failure on an f300-fujitsu-uxpv4.1_ES;
109902         The check for ssize_t was mistakenly run before the test for unistd.h.
109904         The configure-time check for stdbool.h was missing.
109905         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_HASH.
109906         (jm_PREREQ_HASH): New function.
109908 2001-01-17  Jim Meyering  <meyering@lucent.com>
109910         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Use AS_IF, not AS_IFELSE,
109911         for autoconf-2.49c.
109912         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Likewise.
109914 2001-01-16  Jim Meyering  <meyering@lucent.com>
109916         * lib/basename.c: Include <stdio.h>, needed by assert on SunOS 4.
109917         From Bruno Haible.
109919 2001-01-14  Jim Meyering  <meyering@lucent.com>
109921         * m4/rename.m4: Use temporary directories named conftestdir{,2}, not
109922         foo and bar.  Create conftestdir/ in the script, not in the C code.
109923         Remove directories in the script, not in the C code.
109924         Remove conftestdir{,2} before trying to create the directory.
109925         Make the entire configure script fail if the mkdir fails.
109927 2001-01-14  Jim Meyering  <meyering@lucent.com>
109929         * lib/rename.c: New file.  From Volker Borchert.
109930         Include stdlib.h, string.h or strings.h, and xalloc.h.
109931         Use strip_trailing_slashes rather than open-coding it.
109933 2001-01-03  Paul Eggert  <eggert@twinsun.com>
109935         * lib/strftime.c: Sync with glibc time/strftime.c 1.81.
109937 2001-01-03  Jim Meyering  <meyering@lucent.com>
109939         * lib/unicodeio.c (print_unicode_char): Remove `const' from declaration
109940         of local `inptr' to avoid warning with some system declarations of
109941         iconv.
109943 2001-01-02  Volker Borchert  <bt@teknon.de>
109945         * m4/rename.m4: New file.
109946         * m4/jm-macros.m4 (jm_MACROS): Require vb_FUNC_RENAME.
109948 2001-01-01  Jim Meyering  <meyering@lucent.com>
109950         * m4/prereq.m4 (jm_PREREQ_READUTMP): Include utmp.h (if available),
109951         even on systems with utmpx.h.  It's necessary for the declaration of
109952         utmp's ut_user member.  Reported by Andreas Jaeger.
109954         * m4/check-decl.m4 (jm_CHECK_DECLS): Include grp.h and pwd.h if
109955         available. They are required for the declarations of getgrgid and
109956         getpwuid resp.
109957         (_jm_DECL_HEADERS): Check for grp.h and pwd.h.
109958         Reported by Andreas Jaeger.
109960 2001-01-01  Alexandre Duret-Lutz  <duret_g@epita.fr>
109962         * m4/libintl.m4 (AM_GNU_GETTEXT): Define MKINSTALLDIRS by
109963         expanding the value of $ac_aux_dir, as in AM_MISSING_HAS_RUN,
109964         so `make install' also works in VPATH builds.
109966 2000-12-31  Alexandre Duret-Lutz  <duret_g@epita.fr>
109968         * m4/libintl.m4 (AM_WITH_NLS): When using AC_CONFIG_AUX_DIR,
109969         prepend $(top_srcdir) to the value of MKINSTALLDIRS so that it
109970         can be used in subdirectories.
109972 2000-12-29  Paul Eggert  <eggert@twinsun.com>
109974         * lib/modechange.c: Do not assume that mode_t uses the
109975         traditional octal encoding.  E.g. "chmod 1 FOO" should set
109976         the other-execute bit of FOO even if S_IXOTH != 1.
109978         (SUID, SGID, SVTX, RUSR, WUSR, XUSR, RGRP, WGRP, XGRP, ROTH,
109979         WOTH, XOTH, ALLM): New macros.
109980         (S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IWUSR, S_IXUSR,
109981          S_IRGRP, S_IWGRP, S_IXGRP, S_IROTH, S_IWOTH, S_IXOTH):
109982         Use them.
109983         (S_ISGID): Fix typo; it was defaulting to the same value as S_ISUID.
109984         (S_IRWXU, S_IRWXG, S_IRWXO): Specify defaults in terms of the above.
109985         (mode_compile):
109986         No need to use uintmax_t; unsigned long is long enough.
109987         Don't bother to get suffix since we don't use it.
109989 2000-12-26  Jim Meyering  <meyering@lucent.com>
109991         * m4/dos.m4 (jm_AC_DOS): Rewrite (though it's still a stub) to work
109992         better with autoheader.
109994 2000-12-24  Jim Meyering  <meyering@lucent.com>
109996         * lib/hash.c (is_prime): Return explicit boolean values.
109997         (hash_get_first): Return NULL to appease Irix5.6's 89.
109998         Reported by Nelson Beebe.
110000 2000-12-19  Bruno Haible  <haible@clisp.cons.org>
110002         * lib/localcharset.c (locale_charset): Add support for Win32.
110004 2000-12-18  Paul Eggert  <eggert@twinsun.com>
110006         * lib/physmem.h, lib/physmem.c: New files.
110008         * lib/Makefile.am (libfetish_a_SOURCES): Add physmem.c.
110009         (noinst_HEADERS): Add physmem.h.
110011         * lib/xstrtol.c (__xstrtol): Add undocumented suffixes 'g' and
110012         't' for compatibility with Solaris 8 sort.
110014 2000-12-18  Bruno Haible  <haible@clisp.cons.org>
110016         * lib/config.charset: Add support for BeOS.
110018 2000-12-17  Jim Meyering  <meyering@lucent.com>
110020         * m4/dos.m4 (jm_AC_DOS): New file and macro.
110021         * m4/jm-macros.m4 (jm_MACROS): Require jm_AC_DOS.
110023 2000-12-16  Jim Meyering  <meyering@lucent.com>
110025         This bug had a serious impact on chown: `chown N:M FILE' (for integer
110026         N and M) would have treated it like `chown N:N FILE'.
110028         * lib/userspec.c (parse_user_spec): Fix typo: s/u/g/.
110030 2000-12-16  Jim Meyering  <meyering@lucent.com>
110032         * lib/getusershell.c [!SHELLS_FILE && __DJGPP__]: Define
110033         SHELLS_FILE to a file name that's useful on djgpp systems.
110034         Include stdlib.h.
110035         (ADDITIONAL_DEFAULT_SHELLS): Define.
110036         (default_shells): Prepend ADDITIONAL_DEFAULT_SHELLS.
110037         Based mostly on a patch from Prashant TR.
110039 2000-12-16  Bruno Haible  <haible@clisp.cons.org>
110041         * lib/config.charset: Add ISO-8859-3, BIG5HKSCS, GB18030, JOHAB,
110042         VISCII, CP874, CP949, CP950, CP1250, CP1253, CP1254, CP1255, CP1256,
110043         CP1257 to the list of canonical encodings. Rename EUC-CN to GB2312.
110045 2000-12-08  Andreas Schwab  <schwab@suse.de>
110047         * lib/mbswidth.c (mbsnwidth): Don't loop endlessly when called with an
110048         invalid mulitbyte sequence and with the MBSW_ACCEPT_INVALID flag set.
110050 2000-12-07  Jim Meyering  <meyering@lucent.com>
110052         * lib/stripslash.c (ISSLASH): Define.
110053         (strip_trailing_slashes): Use ISSLASH rather than comparing against
110054         `/'.
110055         From Prashant TR.
110057         * lib/dirname.c (FILESYSTEM_PREFIX_LEN): Define.
110058         (dir_name_r): Declare this function as static.
110059         [BACKSLASH_IS_PATH_SEPARATOR]: Fix a bug that'd
110060         manifest itself on a name containing a mix of slashes and
110061         backslashes.
110062         Make this function work with names starting with a DOS-style
110063         drive letter and colon prefix.
110064         (dir_name): Append `.' if necessary.
110065         Based mostly on patches from Prashant TR and Eli Zaretskii.
110067         * lib/dirname.h (dir_name_r): Remove prototype.
110069 2000-12-06  Paul Eggert  <eggert@twinsun.com>
110071         * m4/off_t-format.m4: Remove this file.
110072         * m4/jm-macros.m4 (jm_MACROS): Remove jm_SYS_OFF_T_PRINTF_FORMAT.
110074 2000-12-06  Jim Meyering  <meyering@lucent.com>
110076         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): If we need the
110077         replacement strtoull, we may well need the replacement strtoul, too.
110078         Check for declarations of strtoul and strtoull.
110079         Check for strtol.  Mainly as a cue to cause automake to include
110080         strtol.c -- that file is included by each of strtoul.c and strtoull.c.
110081         Check for limits.h -- strtol.c needs it.
110083 2000-12-05  Jim Meyering  <meyering@lucent.com>
110085         * lib/dirname.c (dir_name_r): Add `const' in a few local declarations.
110087 2000-12-04  Jim Meyering  <meyering@lucent.com>
110089         * lib/path-concat.c: [!HAVE_DECL_MALLOC]: Declare malloc.
110090         Also include memory.h, stdlib.h, unistd.h if appropriate.
110091         Reported by Andreas Jaeger (conflicting declaration of malloc).
110093 2000-12-02  Jim Meyering  <meyering@lucent.com>
110095         * m4/off_t-format.m4 (OFF_T_PRINTF_FORMAT_STRING): New file/macro.
110096         * m4/jm-macros.m4 (jm_MACROS): require it.
110098 2000-12-02  Jim Meyering  <meyering@lucent.com>
110100         * lib/closeout.h: Make idempotent, to avoid some obscure warnings.
110102 2000-12-01  Paul Eggert  <eggert@twinsun.com>
110104         * lib/memrchr.c: Include <config.h> before any system include file.
110106 2000-11-30  Jim Meyering  <meyering@lucent.com>
110108         * m4/jm-macros.m4 (jm_MACROS): Check for stdint.h.
110110 2000-11-30  Jim Meyering  <meyering@lucent.com>
110112         * m4/getloadavg.m4: s/ifval/m4_ifval/ to accommodate new autoconf.
110114 2000-11-29  Paul Eggert  <eggert@twinsun.com>
110116         * lib/dirname.c (dir_name_r): Fix typo: int -> size_t.
110118 2000-11-26  Jim Meyering  <meyering@lucent.com>
110120         * lib/memcoll.c: Include sys/types.h.  From Werner Almesberger.
110122 2000-11-22  Paul Eggert  <eggert@twinsun.com>
110124         * lib/strftime.c (my_strftime): Do not invoke mbrlen with a
110125         size of (size_t) -1; it's not portable.
110127 2000-11-17  Jim Meyering  <meyering@lucent.com>
110129         * lib/strstr.c: Update from GNU libc.
110131 2000-11-17  Akim Demaille  <akim@epita.fr>
110133         * lib/obstack.h: Formatting changes.
110134         (obstack_grow, obstack_grow0): Don't cast WHERE at all: that would
110135         prevent type checking.
110136         (obstack_ptr_grow, obstack_ptr_grow_fast): When assigning, don't
110137         cast the value to (void *): assigning a `foo *' to a `void *'
110138         variable is valid.
110139         (obstack_int_grow, obstack_int_grow_fast): Don't cast AINT to int.
110141 2000-11-16  Jim Meyering  <meyering@lucent.com>
110143         * lib/strverscmp.c: Incorporate weak-alias-related changes from glibc.
110145 2000-11-11  Jim Meyering  <meyering@lucent.com>
110147         * lib/error.c: Add a couple #includes, merging from GNU libc version.
110149 2000-11-10  Jim Meyering  <meyering@lucent.com>
110151         * lib/obstack.h: Update from GNU libc.
110152         * lib/obstack.c: Likewise.
110154 2000-11-08  Bruno Haible  <haible@clisp.cons.org>
110156         * m4/jm-macros.m4 (jm_MACROS): Add test for wcrtomb.
110158 2000-11-06  Paul Eggert  <eggert@twinsun.com>
110160         * lib/getusershell.c (setusershell): Use rewind rather than
110161         fseek/fseeko, to avoid configuration hassles with fseeko.
110162         Don't bother opening SHELLS_FILE if shellstream is NULL;
110163         it's not necessary.
110165 2000-11-05  Jim Meyering  <meyering@lucent.com>
110167         * lib/makepath.h (make_dir): Declare.
110168         * lib/makepath.c (make_dir): Remove `static' attribute.
110169         Tweak a comment.
110171 2000-11-04  Jim Meyering  <meyering@lucent.com>
110173         * m4/regex.m4: Use the `m4_' prefix on `syscmd' and `m4_sysval'.
110175 2000-11-04  Alexandre Duret-Lutz  <duret_g@epita.fr>
110177         * lib/hash.c (hash_get_next): Fix a thinko:  when ENTRY is the
110178         last one in a bucket, advance to the next bucket.
110180 2000-11-02  Vesselin Atanasov  <vesselin@bgnet.bg>
110182         * lib/fnmatch.c: Do not comment out all the code if we are using
110183         the GNU C library, because in some cases we are replacing buggy
110184         code in the GNU C library itself.
110186 2000-10-30  Stefan Monnier  <monnier@cs.yale.edu>
110188         * regex.c (re_iswctype, re_wctype_to_bit): Fix braino.
110189         (regex_compile): Catch bogus \(\1\).
110191 2000-10-30  Paul Eggert  <eggert@twinsun.com>
110193         * lib/fnmatch.c (FOLD): Do not assume that characters are unsigned.
110194         (fnmatch): Fix some FNM_FILE_NAME and FNM_LEADING_DIR bugs,
110195         e.g. fnmatch("d*/*1", "d/s/1", FNM_FILE_NAME) incorrectly yielded zero.
110197 2000-10-30  Paul Eggert  <eggert@twinsun.com>
110199         * lib/error.h, getline.h, modechange.h:
110200         Remove "2000" from Copyright line, as the file hasn't been
110201         changed this year other than in the copyright notice.
110203         * lib/xalloc.h: Add "2000" to Copyright line, as this file
110204         was changed this year.
110206 2000-10-29  Jim Meyering  <meyering@lucent.com>
110208         * m4/fsusage.m4: s/AC_SHELL_IFELSE/AS_IFELSE/ to match autoconf
110209         renaming.
110210         * m4/ls-mntd-fs.m4: Likewise
110212 2000-10-29  Jim Meyering  <meyering@lucent.com>
110214         * lib/xstat.in: Fix grammar in comment.
110216 2000-10-29  Greg Louis  <glouis@dynamicro.on.ca>
110218         * lib/regex.h (__restrict_arr): Move definition out of #ifndef block.
110219         Required because egcs-2.91.66 (aka 1.1.2) defines __restrict, but
110220         doesn't define __restrict_arr.
110222 2000-10-28  Jim Meyering  <meyering@lucent.com>
110224         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_MEMCHR.
110225         (jm_PREREQ_MEMCHR): New function.
110227 2000-10-28  Jim Meyering  <meyering@lucent.com>
110229         * lib/memchr.c: Update from libc.
110230         Adjust for portability:
110231         [HAVE_STDLIB_H]: Include stdlib.h.
110232         [HAVE_BP_SYM_H || _LIBC]: Guard inclusion of bp-sym.h.
110233         Undef __memchr, too.
110234         [!weak_alias]: Define __memchr to memchr.
110236         * lib/regex.c: Update from libc.
110237         * lib/regex.h: Likewise.
110238         * lib/getopt1.c: Likewise.
110239         * lib/memcmp.c: Likewise.
110241         * lib/getusershell.c (setusershell) [HAVE_FSEEKO]: Use fseeko.
110242         Avoid using fseek, when possible -- it's broken by design.
110243         Patch by Ulrich Drepper.
110245 2000-10-27  Stefan Monnier  <monnier@cs.yale.edu>
110247         * regex.c (POP_FAILURE_REG_OR_COUNT, re_match_2_internal)
110248         (re_match_2_internal, re_match_2_internal, re_match_2_internal):
110249         Giving in to popular pressure to shut up the compiler with casts.
110251 2000-10-26  Jim Meyering  <meyering@lucent.com>
110253         * lib/strftime.c: Update from libc.
110255 2000-10-25  Stefan Monnier  <monnier@cs.yale.edu>
110257         * regex.c: More `unsigned char' -> `re_char' changes.
110258         Also change several `int' into `re_wchar_t'.
110259         (PATTERN_STACK_EMPTY, PUSH_PATTERN_OP, POP_PATTERN_OP): Remove.
110260         (PUSH_FAILURE_POINTER): Don't cast any more.
110261         (POP_FAILURE_REG_OR_COUNT): Remove the cast that strips `const'.
110262         We want GCC to complain, since this piece of code makes
110263         re_match non-reentrant, which *should* be fixed.
110264         (GET_BUFFER_SPACE): Use size_t rather than unsigned long.
110265         (EXTEND_BUFFER): Use RETALLOC.
110266         (SET_LIST_BIT): Don't cast.
110267         (re_wchar_t): New type.
110268         (re_iswctype, re_wctype_to_bit): Make it crystal clear to GCC
110269         that those two functions will always properly return.
110270         (IMMEDIATE_QUIT_CHECK): Cast to void.
110271         (analyse_first): Use recursion rather than an explicit stack.
110272         (re_compile_fastmap): Can't fail anymore.
110273         (re_search_2): Don't check re_compile_fastmap for failure.
110274         (PUSH_NUMBER): Renamed from PUSH_FAILURE_COUNT.
110275         Now also sets the new value (passed in a new argument).
110276         (re_match_2_internal): Use it.
110277         Also, use a new var `reg' of type size_t when looping through regs
110278         rather than reuse the inappropriate `mcnt'.
110280 2000-10-25  Jim Meyering  <meyering@lucent.com>
110282         * lib/obstack.c: Update from libc.
110284 2000-10-24  Kenichi Handa  <handa@etl.go.jp>
110286         * regex.c (regex_compile): Change the way of handling a range from
110287         a char less than 256 to a char not less than 256.
110289 2000-10-24  Andrew Innes  <andrewi@gnu.org>
110291         * regex.c (IMMEDIATE_QUIT_CHECK): New macro, which does QUIT on
110292         NT-Emacs only.
110293         (re_match_2_internal): Use IMMEDIATE_QUIT_CHECK instead of QUIT,
110294         so that re_search functions only quit when callers expect them to.
110296 2000-10-23  Jim Meyering  <meyering@lucent.com>
110298         * lib/hard-locale.c (hard_locale): Revert last change -- it was simply
110299         wrong.  That set_locale call must not have any side effects.
110300         From Paul Eggert.
110302 2000-10-22  Jim Meyering  <meyering@lucent.com>
110304         * lib/md5.c (md5_process_block) [OP]: Use `rol', not CYCLIC.
110305         [CYCLIC]: Remove now-unused definition.
110307         * lib/save-cwd.c (O_DIRECTORY): Define, if needed.
110308         (save_cwd) [HAVE_FCHDIR]: Use O_DIRECTORY when opening ".".
110309         Suggestion from Ulrich Drepper.
110311 2000-10-21  Jim Meyering  <meyering@lucent.com>
110313         * m4/check-decl.m4 (jm_CHECK_DECLS): Also check for memrchr.
110314         * m4/prereq.m4 (jm_PREREQ_DIRNAME): New macro.
110315         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memrchr.
110317 2000-10-21  Jim Meyering  <meyering@lucent.com>
110319         * lib/dirname.c (memrchr): Declare if necessary.
110320         (dir_name): Remove the restriction that there be no
110321         trailing slashes.  Now, this code skips past them, effectively
110322         ignoring them.
110323         [TEST_DIRNAME] (main): New unit tests.
110325         * lib/memrchr.c: New file from GNU libc.
110326         Undef __memrchr, too.
110327         [!weak_alias]: Define __memrchr to memrchr.
110328         Guard weak_alias use with `#ifdef weak_alias'.
110330 2000-10-21  Jim Meyering  <meyering@lucent.com>
110332         * lib/dirname.c (dir_name_r): New function, factored out of dir_name.
110333         (dir_name): Use dir_name_r.
110334         * lib/dirname.h (dir_name_r): Declare it.
110336 2000-10-17  Jim Meyering  <meyering@lucent.com>
110338         * lib/quote.h (PARAMS): Define and use.
110339         Reported by Akim Demaille.
110341         * lib/getopt.c: Update from libc.
110343 2000-10-16  Jim Meyering  <meyering@lucent.com>
110345         * lib/hard-locale.c (hard_locale): Use "", not 0 as 2nd arg to
110346         setlocale.
110347         From Jan Fedak.
110349 2000-10-15  Stefan Monnier  <monnier@cs.yale.edu>
110351         * regex.c (WIDE_CHAR_SUPPORT): Define if _LIBC as well.
110353 2000-09-25  Jim Meyering  <meyering@lucent.com>
110355         * lib/md5.h (rol): Define (from GnuPG).
110357         * lib/sha.c: Give credit (GnuPG) where due.
110358         (M): Use rol rather than open-coding it.
110359         Add a FIXME comment.
110361 2000-09-21  Jim Meyering  <meyering@lucent.com>
110363         * lib/userspec.c (parse_user_spec): Remove debugging printf I'd added.
110364         Reported by Michael Stone.
110366 2000-09-20  Jim Meyering  <meyering@lucent.com>
110368         * lib/Makefile.am (libfetish_a_SOURCES): Add sha.c.
110369         (noinst_HEADERS): Add sha.h.
110370         Based on code from Scott G. Miller and from GnuPG.
110372 2000-09-18  Jim Meyering  <meyering@lucent.com>
110374         * m4/getloadavg.m4 (AC_FUNC_GETLOADAVG): Restore the initial value of
110375         LIBS. Otherwise, everyone ends up linking with -lelf for some
110376         configurations.
110377         Reported by Mike Stone.
110379 2000-09-15  Jim Meyering  <meyering@lucent.com>
110381         * lib/regex.c: Update from libc.
110383 2000-09-10  Jim Meyering  <meyering@lucent.com>
110385         * lib/getopt.c (_getopt_internal): Update from glibc.
110387 2000-09-09  Jim Meyering  <meyering@lucent.com>
110389         * lib/quotearg.c: Rename ISASCII to IN_CTYPE_DOMAIN, so people don't
110390         think it should be used as a general replacement for isascii.
110391         * lib/fnmatch.c: Likewise.
110392         * lib/mbswidth.c: Likewise
110393         * lib/regex.c: Likewise.
110395         Don't use atoi.
110396         * lib/userspec.c: Include sys/param.h and limits.h.
110397         Include xstrtol.h.
110398         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Define.
110399         (UID_T_MAX, GID_T_MAX, MAXUID, MAXGID): Define.
110400         (parse_user_spec): Use xstrtoul, not atoi when converting numeric
110401         UID, GID.  Check range.
110403 2000-09-06  Jim Meyering  <meyering@lucent.com>
110405         * lib/getopt.c (_getopt_internal): Update from glibc.
110407 2000-08-30  Jim Meyering  <meyering@lucent.com>
110409         * lib/strftime.c: Merge in changes from GNU libc.
110411 2000-08-26  Jim Meyering  <meyering@lucent.com>
110413         * m4/jm-macros.m4: Use jm_FUNC_FPENDING.
110414         * m4/fpending.m4: New file.
110416 2000-08-26  Jim Meyering  <meyering@lucent.com>
110418         * lib/closeout.c: Include "__fpending.h".
110419         (close_stdout_status): Return right away if there's nothing to flush.
110421         * lib/Makefile.am (noinst_HEADERS): Add __fpending.h.
110422         * lib/__fpending.c: New file.
110423         * lib/__fpending.h: New file.
110425 2000-08-20  Jim Meyering  <meyering@lucent.com>
110427         * m4/check-decl.m4: Include utmp.h `#if HAVE_UTMP_H', rather than
110428         `#if !HAVE_UTMPX_H'.  The latter would lose on systems with neither
110429         utmp.h nor utmpx.h.  Reported by Eli Zaretskii.
110431 2000-08-11  J. David Anglin  <dave@hiauly1.hia.nrc.ca>
110433         Improve fileutils installation on systems where running
110434         programs (like install) can't be unlinked.
110435         * m4/unlink-busy.m4 (jm_FUNC_UNLINK_BUSY_TEXT): New file/macro.
110436         * m4/jm-macros.m4: Use jm_FUNC_UNLINK_BUSY_TEXT.
110438 2000-08-07  Paul Eggert  <eggert@twinsun.com>
110440         Standardize on "memory exhausted" instead of "Memory exhausted"
110441         or "virtual memory exhausted".
110442         * lib/obstack.c (print_and_abort): Use "memory exhausted", not
110443         "virtual memory exhausted".
110444         * lib/same.c (same_name): Invoke xalloc_die instead of printing
110445         our own message.
110446         * lib/userspec.c (parse_user_spec): Likewise.
110447         * lib/bumpalloc.h: comment fix
110448         * lib/same.c, userspec.c: Include xalloc.h.
110450         * lib/xalloc.h (xalloc_msg_memory_exhausted): Now char const[],
110451         not char *const and pointing to a constant array.
110452         * lib/xmalloc.c (xalloc_msg_memory_exhausted): Likewise.
110453         (xrealloc): Comment fix.
110455         * lib/userspec.c (parse_user_spec):
110456         Don't translate a message until just before returning,
110457         to avoid unnecessary translation.
110459 2000-08-07  Jim Meyering  <meyering@lucent.com>
110461         * lib/addext.c, argmatch.c, argmatch.h, backupfile.h, bumpalloc.h,
110462         chown.c, diacrit.h, dirname.h, dup2.c, exclude.h, fileblocks.c,
110463         fnmatch.c, fnmatch.h, fsusage.c, fsusage.h, getdate.h,
110464         getgroups.c, gethostname.c, getopt.h, group-member.c,
110465         hard-locale.c, hash.h, isdir.c, lchown.c, linebuffer.c,
110466         linebuffer.h, long-options.h, malloc.c, md5.c, md5.h, memchr.c,
110467         memcmp.c, memcoll.c, memset.c, mktime.c, modechange.h, obstack.h,
110468         pathmax.h, realloc.c, rmdir.c, safe-read.c, save-cwd.c, stime.c,
110469         stpcpy.c, strcasecmp.c, strcspn.c, strdup.c, stripslash.c,
110470         strstr.c, strtod.c, strtol.c, strtoul.c, strtoull.c, strtoumax.c,
110471         utime.c, version-etc.h, xalloc.h, xstrdup.c, xstrtoumax.c,
110472         yesno.c: Back out Copyright date changes for each file with no change
110473         this year.  This eases coordination with other programs using the same
110474         source code modules.  From Paul Eggert.
110476 2000-08-06  Paul Eggert  <eggert@twinsun.com>
110478         * m4/mbstate_t.m4 (AC_MBSTATE_T): Define mbstate_t to be int,
110479         not char, for compatibility with glibc 2.1.3 strftime.c.
110481 2000-08-03  Greg McGary  <greg@mcgary.org>
110483         * lib/regex.c (SET_HIGH_BOUND, MOVE_BUFFER_POINTER,
110484         ELSE_EXTEND_BUFFER_HIGH_BOUND): New macros.
110485         (EXTEND_BUFFER): Use them.
110487 2000-08-01  Jim Meyering  <meyering@lucent.com>
110489         * lib/dirname.c (ISSLASH): Define.
110490         (BACKSLASH_IS_PATH_SEPARATOR): Define.
110491         (dir_name) [BACKSLASH_IS_PATH_SEPARATOR]: Handle the case in which
110492         both `\' and `/' may be use as path separators.
110493         Based on a patch from Prashant TR.
110495 2000-07-31  Paul Eggert  <eggert@twinsun.com>
110497         * lib/quotearg.c (quotearg_n_options): Don't make the initial
110498         slot vector a constant, since it might get modified.
110500 2000-07-31  Jim Meyering  <meyering@lucent.com>
110502         * lib/xmalloc.c: Use `virtual memory exhausted', not
110503         `Memory exhausted'.
110504         * lib/obstack.c (print_and_abort): Likewise.
110506 2000-07-30  Paul Eggert  <eggert@twinsun.com>
110508         * lib/quotearg.c (quotearg_n_options): Preallocate a slot 0
110509         buffer, so that the caller can always quote one small
110510         component of a "memory exhausted" message in slot 0.
110511         From a suggestion by Jim Meyering.
110513 2000-07-30  Jim Meyering  <meyering@lucent.com>
110515         * lib/makepath.c (make_path): Quote the other instance, too.
110517         * lib/quotearg.c (N_STATIC_SLOTVECS): Define.
110518         (STATIC_BUF_SIZE): Define.
110519         (quotearg_n_options): Use only statically allocated storage when
110520         N < N_STATIC_SLOTVECS and the length of the quoted result is smaller
110521         than STATIC_BUF_SIZE.
110523 2000-07-29  Jim Meyering  <meyering@lucent.com>
110525         * lib/diacrit.c (diacrit_diac): Use __MSDOS__ in favor of MSDOS.
110526         * lib/dirname.c (dir_name): Likewise.
110528         * lib/basename.c (base_name): Use ISSLASH rather than comparing against
110529         `/'.
110531         * lib/dirname.c (dir_name) [MSDOS]: Declare `lim' to be const.
110532         (dir_name): Assert that there are no trailing slashes.
110534 2000-07-29  Bruno Haible  <haible@clisp.cons.org>
110536         * lib/mbswidth.h (mbswidth): Add a flags argument.
110537         (mbswidth): New declaration.
110538         (MBSW_ACCEPT_INVALID, MBSW_ACCEPT_UNPRINTABLE): New macros.
110539         * lib/mbswidth.c (mbswidth): Add a flags argument.
110540         (mbsnwidth): New function.
110542 2000-07-24  Jim Meyering  <meyering@lucent.com>
110544         * lib/mbswidth.c: Remove useless #else.  From Bruno Haible.
110546 2000-07-23  Paul Eggert  <eggert@twinsun.com>
110548         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Check for wcwidth declaration.
110550 2000-07-23  Paul Eggert  <eggert@twinsun.com>
110552         * lib/quotearg.c: Streamline by invoking multibyte code only if needed.
110553         <wchar.h>: Include only if HAVE_MBRTOWC && 1 < MB_LEN_MAX.
110554         (MB_CUR_MAX): Redefine to 1 if ! (HAVE_MBRTOWC && 1 < MB_LEN_MAX).
110555         (quotearg_buffer_restyled): If a unibyte locale, don't bother to
110556         invoke multibyte primitives.
110558 2000-07-23  Paul Eggert  <eggert@twinsun.com>
110560         * lib/quotearg.c:
110561         Include <wchar.h> even if ! (HAVE_MBRTOWC && 1 < MB_LEN_MAX),
110562         so that mbstate_t is always defined.
110564         Do not inspect MB_LEN_MAX, since it's incorrectly defined to
110565         be 1 in at least one GCC installation, and this configuration
110566         error is likely to be common.  Ignoring MB_LEN_MAX hurts
110567         performance on hosts that have mbrtowc but have only unibyte
110568         locales, but I assume these hosts are rare.
110570 2000-07-23  Paul Eggert  <eggert@twinsun.com>
110572         * lib/mbswidth.c (_XOPEN_SOURCE):
110573         Don't define; this causes problems on Solaris 7.
110574         (wcwidth) [!HAVE_DECL_WCWIDTH]: Declare.
110576 2000-07-23  Jim Meyering  <meyering@lucent.com>
110578         * m4/check-decl.m4 (jm_CHECK_DECLS): Check for declarations of these,
110579         too: getgrgid, getpwuid, getuid.
110581 2000-07-23  Jim Meyering  <meyering@lucent.com>
110583         * lib/basename.c (base_name): Add an assertion.
110585 2000-07-23  Bruno Haible  <haible@clisp.cons.org>
110587         * lib/quotearg.c: When the system forces us to redefine mbstate_t,
110588         shadow its mbsinit function.
110590 2000-07-17  Bruno Haible  <haible@clisp.cons.org>
110592         * lib/mbswidth.h: New file.
110593         * lib/mbswidth.c: New file.
110594         * lib/Makefile.am (libfetish_a_SOURCES): Add mbswidth.c.
110595         (noinst_HEADERS): Add mbswidth.h.
110597 2000-07-17  Bruno Haible  <haible@clisp.cons.org>
110599         * lib/config.charset: Add support for FreeBSD. Improve support for
110600         HP-UX and IRIX 6.
110602 2000-07-16  Bruno Haible  <haible@clisp.cons.org>
110604         * m4/mbswidth.m4: New file.
110605         * m4/prereq.m4 (jm_PREREQ): Call jm_PREREQ_MBSWIDTH.
110607 2000-07-15  Jim Meyering  <meyering@lucent.com>
110609         * lib/makepath.c: Include quote.h.
110610         (make_path): Convert "`%s'" in format strings to "%s", and wrap each
110611         corresponding argument in a `quote (...)' call.
110612         Give better diagnostics.
110614         * lib/Makefile.am (libfetish_a_SOURCES): Add quote.c.
110615         (noinst_HEADERS): Add quote.h.
110617         * lib/quote.c (quote, quote_n): New file.  Two functions taken verbatim
110618         from tar's src/misc.c.
110619         * lib/quote.h: New file.  Prototypes for same.
110621 2000-07-14  Paul Eggert  <eggert@twinsun.com>
110623         From a suggestion by Bruno Haible.
110624         * lib/quotearg.c (mbrtowc): Do not use HAVE_WCHAR_H in the definition.
110625         Use defined mbstate_t, not HAVE_MBSTATE_T_OBJECT,
110626         to decide whether to define the BeOS workaround macro;
110627         this adjusts to the change to AC_MBSTATE_T.
110629 2000-07-14  Jim Meyering  <meyering@lucent.com>
110631         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Require
110632         jm_AC_TYPE_UINTMAX_T.
110634 2000-07-13  Paul Eggert  <eggert@twinsun.com>
110636         * lib/quotearg.h (enum quoting style): New enum clocale_quoting_style.
110638         * lib/quotearg.c (quoting_style_args, quoting_style_vals,
110639         quotearg_buffer_restyled): Add support for
110640         clocale_quoting_style.  Undo previous change to
110641         locale_quoting_style behavior, and undo the "{LEFT QUOTATION MARK}"
110642         and "{RIGHT QUOTATION MARK}" msgids.
110644 2000-07-10  Paul Eggert  <eggert@twinsun.com>
110646         From a suggestion by Bruno Haible.
110647         * m4/mbstate_t.m4 (AC_MBSTATE_T):
110648         Renamed from AC_MBSTATE_T_OBJECT.  All uses changed.
110649         Change from a two-part test, which defines both HAVE_MBSTATE_T_OBJECT
110650         and mbstate_t, to a single-part test that simply defines mbstate_t.
110651         * m4/prereq.m4 (jm_PREREQ_QUOTEARG):
110652         s/AC_MBSTATE_T_OBJECT/AC_MBSTATE_T/.
110654 2000-07-10  Jim Meyering  <meyering@lucent.com>
110656         * m4/strerror_r.m4: Mirror the correction made in autoconf.
110658         * m4/gnu-source.m4: Output to confdefs.h directly.
110659         Suggestion from Akim Demaille.
110661 2000-07-09  Paul Eggert  <eggert@twinsun.com>
110663         The old behavior of quoting `like this' doesn't look good with
110664         newer, ISO-style fonts.  See:
110665         http://www.cl.cam.ac.uk/~mgk25/ucs/quotes.html
110667         Instead, quote "like this" by default.  Let the translator
110668         tailor the locale-specific quoting behavior by providing
110669         translations for {LEFT QUOTATION MARK} and {RIGHT QUOTATION MARK}.
110671         * lib/quotearg.c (N_): New macro.
110672         (gettext_default): New function.
110673         (quotearg_buffer_restyled): Use
110674         gettext_default ("{LEFT QUOTATION MARK}", "\"") for left quote, and
110675         gettext_default ("{RIGHT QUOTATION MARK}", "\"") for right quote.
110677 2000-07-09  Jim Meyering  <meyering@lucent.com>
110679         * m4/jm-macros.m4 (jm_MACROS): Add a test to see if -lm is required
110680         to link seq.  If so, set SEQ_LIBM to -lm.  From Bruno Haible.
110682         * m4/gnu-source.m4 (AC__GNU_SOURCE): New file/macro.
110683         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require it.
110685 2000-07-09  Jim Meyering  <meyering@lucent.com>
110687         * lib/Most files: Update copyright dates to include 2000.
110689 2000-07-08  Jim Meyering  <meyering@lucent.com>
110691         * lib/xgethostname.c (ENAMETOOLONG): Define to an unlikely value
110692         if not defined.
110693         (xgethostname): Remove now-unnecessary #ifdef.
110694         Move declaration of `err' into loop where it's used.
110696 2000-07-05  Paul Eggert  <eggert@twinsun.com>
110697         and Bruno Haible  <haible@clisp.cons.org>
110699         * m4/mbstate_t.m4 (AC_MBSTATE_T_OBJECT): Test for mbstate_t
110700         only if the test for an object-type mbstate_t fails.  This
110701         prevents us from mistakenly reporting that mbstate_t is a
110702         system object type after we "#define mbstate_t int" to work
110703         around its lack.
110705 2000-07-05  Paul Eggert  <eggert@twinsun.com>
110706         and Bruno Haible  <haible@clisp.cons.org>
110708         * lib/quotearg.c (mbrtowc): Declare returned type, since BeOS doesn't.
110710 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
110712         * m4/strerror_r.m4 (AC_FUNC_STRERROR_R): Pass a reasonably large buffer
110713         to strerror_r.
110714         Include <ctype.h> for use of isalpha.
110716 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
110718         * lib/xgethostname.c (xgethostname): Protect against the SunOS 5.5 bug
110719         by allocating a larger buffer. Test the gethostname return value for
110720         being >= 0, not == 0, for BeOS.  Don't exhaust memory if gethostname
110721         returns an error and ENAMETOOLONG isn't defined.
110723 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
110725         * lib/quotearg.c (struct quoting_options): Simplify quote_these_too
110726         dimension.
110728 2000-07-04  Jim Meyering  <meyering@lucent.com>
110730         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Use plain old `echo' instead
110731         of the deprecated AC_CHECKING.
110733 2000-07-04  Jim Meyering  <meyering@lucent.com>
110735         * lib/strndup.c: [!HAVE_DECL_STRNLEN]: Declare strnlen.
110736         Reported by Bruno Haible.
110738 2000-07-04  Jim Meyering  <meyering@lucent.com>
110740         * lib/quotearg.c: Make inclusion of <wchar.h> independent of whether
110741         HAVE_MBRTOWC is set.  Required at least for irix-5.6, which
110742         lacks mbrtowc.
110744 2000-07-03  Paul Eggert  <eggert@twinsun.com>
110746         * m4/mbstate_t.m4 (AC_MBSTATE_T_OBJECT): Port to autoconf 2.13.
110747         Add AC_CHECK_HEADERS(stdlib.h), since we use HAVE_STDLIB_H.
110749 2000-07-03  Paul Eggert  <eggert@twinsun.com>
110750         and Bruno Haible  <haible@clisp.cons.org>
110752         * lib/quotearg.c (mbrtowc):
110753         Assign to *pwc, and return 1 only if result is nonzero.
110754         (iswprint): Use ISPRINT when substituting our own mbrtowc.
110756 2000-07-03  Jim Meyering  <meyering@lucent.com>
110758         * m4/check-decl.m4 (AC_CHECK_DECLS): Add strnlen.
110760 2000-07-03  Jim Meyering  <meyering@lucent.com>
110762         * lib/readutmp.h: [HAVE_UTMPX_H]: Include <utmp.h> if HAVE_UTMP_H.
110763         This is necessary to get a definition of e.g., UTMP_FILE on
110764         HP-UX 10.20.
110765         From Bob Proulx.
110767 2000-07-02  Jim Meyering  <meyering@lucent.com>
110769         * m4/mbstate_t.m4: Also define mbstate_t, if necessary.
110771         * m4/chown.m4: Replace each use of AC_SUBST(LIBOBJS)/LIBOBJS=... with
110772         AC_LIBOBJ(function_name).
110773         * m4/chown.m4: Likewise.
110774         * m4/fnmatch.m4: Likewise.
110775         * m4/ftruncate.m4: Likewise.
110776         * m4/getgroups.m4: Likewise.
110777         * m4/getline.m4: Likewise.
110778         * m4/group-member.m4: Likewise.
110779         * m4/jm-macros.m4: Likewise.
110780         * m4/lstat.m4: Likewise.
110781         * m4/malloc.m4: Likewise.
110782         * m4/memcmp.m4: Likewise.
110783         * m4/nanosleep.m4: Likewise.
110784         * m4/putenv.m4: Likewise.
110785         * m4/realloc.m4: Likewise.
110786         * m4/regex.m4: Likewise.
110787         * m4/stat.m4: Likewise.
110788         * m4/strftime.m4: Likewise.
110790 2000-07-02  Jim Meyering  <meyering@lucent.com>
110792         * lib/quotearg.c (mbstate_t): Don't define here.
110794 2000-07-02  Jim Meyering  <meyering@lucent.com>
110796         * lib/nanosleep.c (SIGCONT): Define if not already defined.
110798 2000-07-01  Jim Meyering  <meyering@lucent.com>
110800         * m4/uptime.m4: Put double quotes around use of $cross_compiling.
110802 2000-07-01  Jim Meyering  <meyering@lucent.com>
110804         * m4/ls-mntd-fs.m4: Remove a `FIXME' comment and fix the associated
110805         problem.
110807 2000-07-01  Bruno Haible  <haible@clisp.cons.org>
110809         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Rename BeOS specific
110810         macro from MOUNTED_NEXT_DEV to MOUNTED_FS_STAT_DEV.
110812 2000-07-01  Bruno Haible  <haible@clisp.cons.org>
110814         * lib/mountlist.c: Use MOUNTED_FS_STAT_DEV instead of MOUNTED_NEXT_DEV,
110815         per change in ../m4/ls-mntd-fs.m4.
110816         (read_filesystem_list): Ignore symbolic links.
110818 2000-06-29  Jim Meyering  <meyering@lucent.com>
110820         * lib/same.c: Include <string.h> or <strings.h>, as appropriate,
110821         for declaration of strcmp.
110823         * lib/long-options.c: Include <stdlib.h>, for declaration of exit.
110825         * lib/mountlist.c (fsp_to_string) [HAVE_F_FSTYPENAME_IN_STATFS]:
110826         Avoid warning by casting result to `char *' to remove `const'.
110828 2000-06-28  Jim Meyering  <meyering@lucent.com>
110830         * m4/mbstate_t.m4: Use stdlib.h, not stdio.h.  The latter is not
110831         included by quotearg.c, for which we perform this test.  From
110832         Bruno Haible.
110834 2000-06-27  Bruno Haible  <haible@clisp.cons.org>
110836         * m4/check-decl.m4 (_jm_DECL_HEADERS): Check for utmp.h as well.
110837         * m4/prereq.m4 (jm_PREREQ_READUTMP): Likewise. If either <utmp.h> or
110838         <utmpx.h> exists, put readutmp.o into LIBOBJS.
110840 2000-06-27  Bruno Haible  <haible@clisp.cons.org>
110842         * lib/Makefile.am (libfetish_a_SOURCES): Remove readutmp.c.
110844 2000-06-26  Paul Eggert  <eggert@twinsun.com>
110846         savedir now sets errno on failure and invokes xmalloc to get memory.
110847         Fix a couple of other minor bugs while we're at it.
110849         * lib/savedir.c (<unistd.h>): Do not include; there's no need.
110850         (NAMLEN): Remove macro.
110851         (malloc, realloc): Remove decls.
110852         (stpcpy): Likewise.
110853         ("xalloc.h"): Include.
110854         (NAME_SIZE_DEFAULT): New macro.
110855         (savedir): Use xmalloc / xrealloc to allocate memory.
110856         Use NAME_SIZE_DEFAULT if name_size is negative or overflows to zero.
110857         Skip "" directory entries.
110858         Use strlen to calculate directory entry length, since the old method
110859         is rarely used these days and isn't worth supporting.
110860         Don't use a pointer after freeing it.
110861         Check for integer overflow when calculating allocation size.
110862         Use memcpy to copy entries, instead of stpcpy.
110863         Set errno properly when returning NULL.
110864         Check for readdir error.
110866 2000-06-26  Jim Meyering  <meyering@lucent.com>
110868         * lib/posixtm.c [HAVE_STDLIB_H]: Include stdlib.h, for decl of abort.
110870 2000-06-25  Jim Meyering  <meyering@lucent.com>
110872         * m4/mbstate_t.m4: Include stdio.h before wchar.h to work around
110873         Linux header bug when _XOPEN_SOURCE is defined to 500.
110875 2000-06-25  Bruno Haible  <haible@clisp.cons.org>
110877         * lib/unicodeio.c (print_unicode_char): Work around ansi2knr
110878         deficiency.
110880 2000-06-25  Bruno Haible  <haible@clisp.cons.org>
110882         * lib/getusershell.c (xmalloc, xrealloc): Remove functions.
110883         Include xalloc.h.
110884         Don't include <stdlib.h>.  Don't declare malloc, realloc.
110886 2000-06-24  Jim Meyering  <meyering@lucent.com>
110888         * m4/strerror_r.m4: Revive this file -- to try out an experimental
110889         version of AC_FUNC_STRERROR_R that may work even on BeOS, a system
110890         for which strerror does return char*, but which lacks a conveniently
110891         accessible declaration of the function.  If the compile-test says
110892         strerror_r doesn't work, then resort to a `run'-test that works on
110893         BeOS and segfaults on DEC Unix.
110895 2000-06-24  Jim Meyering  <meyering@lucent.com>
110897         * lib/error.c [!HAVE_DECL_STRERROR_R]: Declare strerror_r.
110899 2000-06-23  Paul Eggert  <eggert@twinsun.com>
110901         * m4/mbstate_t.m4: New file, defining AC_MBSTATE_T_OBJECT.
110902         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Use it.  Add check for iswprint.
110904 2000-06-23  Paul Eggert  <eggert@twinsun.com>
110906         * lib/quotearg.c: Include <wctype.h> after <wchar.h>, for Solaris 2.5.
110907         (mbrtowc, mbstate_t): Define substitutes if
110908         HAVE_MBRTOWC && HAVE_WCHAR_H && !HAVE_MBSTATE_T_OBJECT.
110909         (iswprint): Define to 1 if !defined iswprint && !HAVE_ISWPRINT,
110910         not if ! (HAVE_MBRTOWC && HAVE_WCHAR_H).
110912 2000-06-23  Jim Meyering  <meyering@lucent.com>
110914         * m4/afs.m4: Add missing AC_MSG_RESULT.
110915         Reported by Bruno Haible.
110917         * m4/fsusage.m4: s/AC_MSG_CHECKING/AC_CHECKING/.
110918         Suggestion from Bruno Haible.
110920 2000-06-23  Jim Meyering  <meyering@lucent.com>
110922         * lib/getpass.c: New file, from Bruno Haible.  Required for BeOS.
110924 2000-06-21  Jim Meyering  <meyering@lucent.com>
110926         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add getpass.
110928 2000-06-21  Jim Meyering  <meyering@lucent.com>
110930         * lib/Makefile.am (libfetish_a_SOURCES): Add getstr.c.
110931         (noinst_HEADERS): Add getstr.h.
110933         * lib/getline.c (getstr): Move into a separate file.
110934         * lib/getstr.c (getstr): New file, extracted from getline.c, with
110935         the following changes: new parameter, delim2; both delim[12]
110936         parameters have type `int', not `char'.  The latter would lose
110937         with 8-bit delimiters.
110938         * lib/getstr.h: New file.
110940 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
110942         * lib/xgetcwd.c (xgetcwd): If the required pathname length is smaller
110943         than 1024, return a memory chunk of least possible size, instead
110944         of size PATH_MAX + 2. In the loop, increment the size proportionally.
110945         Use free/xmalloc instead of xrealloc to avoid copying for very long
110946         paths.
110948 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
110950         * lib/path-concat.c (path_concat): Don't access dir[-1] if dir is
110951         the empty string.
110953 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
110955         * lib/canon-host.c (canon_host): Use malloc and memcpy to copy an
110956         address, not strdup.  Include <stdlib.h> and don't declare free().
110958 2000-06-19  Jim Meyering  <meyering@lucent.com>
110960         * lib/getloadavg.c [HAVE_NLIST_H] (NLIST_STRUCT): Define.
110962 2000-06-18  Jim Meyering  <meyering@lucent.com>
110964         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Remove mkdir.
110966         * m4/link-follow.m4 (jm_AC_FUNC_LINK_FOLLOWS_SYMLINK): Change the
110967         `checking whether...' message to be consistent with that of the
110968         lstat test.
110970 2000-06-18  Jim Meyering  <meyering@lucent.com>
110972         * lib/mkdir.c: Remove file, due mainly to copyright incompatibility.
110973         Besides, these days every porting target provides a mkdir function.
110975         * lib/strnlen.c: Include memory.h, string.h, and/or strings.h as
110976         needed. (this snippet comes from src/system.h).
110978 2000-06-16  Bruno Haible  <haible@clisp.cons.org>
110980         * m4/glibc21.m4 (jm_GLIBC21): Define GLIBC21 for Makefiles, not for C.
110982 2000-06-15  Paul Eggert  <eggert@twinsun.com>
110984         * lib/human.c (adjust_value): New function.
110985         (human_readable_inexact): Apply rounding style even when
110986         printing approximate values.
110988 2000-06-14  Paul Eggert  <eggert@twinsun.com>
110990         * lib/human.c (human_readable_inexact): Allow an input block
110991         size that is not a multiple of the output block size, and vice versa.
110992         Reported by Piergiorgio Sartor.
110994 2000-06-14  Paul Eggert  <eggert@twinsun.com>
110996         * lib/getdate.y (get_date): Apply relative times after time
110997         zone indicator, not before.  Reported by Todd A. Jacobs.
110999 2000-06-13  Jim Meyering  <meyering@lucent.com>
111001         * lib/Makefile.am (all-local): Depend on lstat.c and stat.c.
111003         * lib/xstat.in [!HAVE_DECL_FREE]: Declare free in lstat.c.
111005 2000-06-12  Paul Eggert  <eggert@twinsun.com>
111007         * lib/xstat.in: Include <stdlib.h> in lstat, to declare "free".
111009 2000-06-12  Jim Meyering  <meyering@lucent.com>
111011         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Replace with
111012         AC_FUNC_GETLOADAVG from autoconf, and tweak the latter to accept an
111013         optional argument.
111014         * m4/jm-macros.m4: s/AM_FUNC_GETLOADAVG/AC_FUNC_GETLOADAVG/, and supply
111015         the optional argument, `lib'.
111017 2000-06-08  Jim Meyering  <meyering@lucent.com>
111019         * m4/largefile.m4: Remove file (now that it's part of autoconf).
111021 2000-06-04  Paul Eggert  <eggert@twinsun.com>
111023         Rewrite largefile configuration so that we don't need to run
111024         getconf and don't need AC_CANONICAL_HOST.  [I'm leaving the use of
111025         AC_CANONICAL_HOST in configure.in -- jmm]
111027         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS,
111028         AC_SYS_LARGEFILE_SPACE_APPEND): Remove.
111029         (AC_SYS_LARGEFILE_TEST_INCLUDES): New macro.
111030         (AC_SYS_LARGEFILE_MACRO_VALUE): Change arguments from
111031         CODE-TO-SET-DEFAULT to VALUE, INCLUDES, FUNCTION-BODY.
111032         All uses changed.
111033         Instead of inspecting the output of getconf, try to compile the
111034         test program without and with the macro definition.
111035         (AC_SYS_LARGEFILE): Do not require AC_CANONICAL_HOST or check
111036         for getconf.  Instead, check for the needed flags by compiling
111037         test programs.
111039 2000-06-04  Paul Eggert  <eggert@twinsun.com>
111041         * lib/strnlen.c: Include <config.h> if HAVE_CONFIG_H.
111043 2000-06-04  Jim Meyering  <meyering@lucent.com>
111045         * lib/getugroups.c (getugroups): Cast -1 to gid_t, for systems like
111046         SunOS 4.1.4 for which gid_t is an unsigned type.
111048 2000-06-03  Jim Meyering  <meyering@lucent.com>
111050         * m4/prereq.m4 (jm_PREREQ_HUMAN): Use []-quoted list in AC_CHECK_DECLS,
111051         now that autoconf requires that.
111053         * m4/jm-glibc-io.m4: Add a kludge to make autoheader emit the required
111054         #undefs.  E.g., #undef HAVE_DECL_FERROR_UNLOCKED.
111055         Use []-quoted list in AC_CHECK_DECLS, now that autoconf requires that.
111057 2000-06-03  Jim Meyering  <meyering@lucent.com>
111059         * lib/strnlen.c [!HAVE_DECL_MEMCHR]: Declare memchr.
111061 2000-06-03  Bruno Haible  <haible@clisp.cons.org>
111063         * m4/glibc21.m4: New file.
111064         * m4/jm-macros.m4 (jm_MACROS): Call jm_GLIBC21.
111066 2000-06-03  Bruno Haible  <haible@clisp.cons.org>
111068         * lib/Makefile.am (install-exec-local): On systems with glibc-2.1 or
111069         newer, don't install charset.alias.
111070         * lib/config.charset: Change the Linux/glibc rules so they become empty
111071         on glibc-2.1 or newer.
111073 2000-06-02  Jim Meyering  <meyering@lucent.com>
111075         * lib/mountlist.c: Back out last change.  Instead, do this...
111076         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Set the
111077         me_dummy member using the same `ignore'-testing code.
111078         * lib/mountlist.h (ME_DUMMY): Add `autofs' to the list of ignored
111079         fs_type strings.
111080         From Mark D. Roth.
111082 2000-05-29  Jim Meyering  <meyering@lucent.com>
111084         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Ignore
111085         mounts with the `ignore' attribute.  Based on a patch from
111086         Mark D. Roth.
111088 2000-05-28  Jim Meyering  <meyering@lucent.com>
111090         * m4/jm-macros.m4 (AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): Rename from
111091         jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
111092         * m4/stat.m4: Likewise.
111093         * m4/lstat.m4: Likewise.
111094         * m4/lstat-slash.m4: Remove file (absorbed into autoconf).
111096         * m4/jm-macros.m4 (AC_FUNC_STRERROR_R): Rename from jm_FUNC_STRERROR_R.
111097         * m4/strerror_r.m4: Remove file (absorbed into autoconf).
111099 2000-05-26  Jim Meyering  <meyering@lucent.com>
111101         * m4/uptime.m4: Use `$cross_compiling', not `$ac_cv_prog_cc_cross'.
111103 2000-05-24  Jim Meyering  <meyering@lucent.com>
111105         * m4/prereq.m4: Use []-quoted list in AC_CHECK_MEMBERS, now that
111106         autoconf requires that.
111107         * m4/lib-check.m4: Likewise.
111108         * m4/jm-macros.m4: Likewise.
111109         * m4/strftime.m4: Likewise.
111111         * m4/check-decl.m4 (jm_CHECK_DECLS): Use []-quoted list in
111112         AC_CHECK_DECLS, now that autoconf requires that.
111114 2000-05-22  Jim Meyering  <meyering@lucent.com>
111116         * m4/stat.m4: Require jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
111117         * m4/lstat.m4: Likewise.
111119 2000-05-22  Jim Meyering  <meyering@lucent.com>
111121         * lib/makepath.c: Remove old, now-unnecessary `#ifdef __MSDOS__' block.
111123 2000-05-20  Jim Meyering  <meyering@lucent.com>
111125         * m4/prereq.m4 (jm_PREREQ_HUMAN): New macro.
111126         (jm_PREREQ): Use it.
111128 2000-05-18  Jim Meyering  <meyering@lucent.com>
111130         * lib/hash.c (hash_rehash): Fix a nasty bug: copy the free entry list
111131         back, too, since it may have been modified by allocate_entry.
111132         (hash_delete): Rewrite to use neither the assignment operator
111133         nor the comma operator in an if-expression.
111135 2000-05-15  Paul Eggert  <eggert@twinsun.com>
111137         * lib/closeout.c:
111138         <sys/stat.h>, <sys/types.h>, <unistd.h>, (STDOUT_FILENO):
111139         Remove; no longer needed.
111140         "quotearg.h": Add include.
111141         (file_name): Do not bother to explicitly initialize to NULL; it's less
111142         efficient on some hosts.
111143         (close_stdout_status): Remove test as to whether stdout was already
111144         closed; it breaks for the case "echo x | sort >&-".
111145         Quote file name colons.
111146         Do not assume that _("write error") lacks format strings.
111148 2000-05-15  Jim Meyering  <meyering@lucent.com>
111150         * lib/version-etc.c (version_etc_copyright): Update the copyright
111151         string used in all --version output.
111153 2000-05-14  Jim Meyering  <meyering@lucent.com>
111155         * lib/closeout.c (close_stdout_set_file_name): New function.
111156         (close_stdout_status): Use new file-scoped global.
111157         Return right away if fstat says the stdout file descriptor is invalid.
111158         * lib/closeout.h (close_stdout_set_file_name): Declare.
111160 2000-05-10  Jim Meyering  <meyering@lucent.com>
111162         * lib/closeout.c [default_exit_status]: New file-scoped variable.
111163         (close_stdout_set_status): New function.
111164         * lib/closeout.h (close_stdout_set_status): Declare.
111166 2000-05-09  Jim Meyering  <meyering@lucent.com>
111168         * m4/gettext.m4: Rename this...
111169         * m4/libintl.m4: ...to this.
111171 2000-05-08  Jim Meyering  <meyering@lucent.com>
111173         * lib/long-options.c: Don't include closeout.h.
111174         (parse_long_options): Don't call close_stdout for --version.
111176 2000-05-06  Paul Eggert  <eggert@twinsun.com>
111178         * m4/largefile.m4 (AC_SYS_LARGEFILE): Define _XOPEN_SOURCE to
111179         be 500, instead of _GNU_SOURCE to be 1, to work around glibc
111180         2.1.3 bug.  This avoids a clash when files like regex.c define
111181         _GNU_SOURCE.
111183 2000-05-06  Jim Meyering  <meyering@lucent.com>
111185         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add atexit.
111186         (AC_REPLACE_FUNCS): Add strnlen.
111188         * m4/rmdir-errno.m4 (fetish_FUNC_RMDIR_NOTEMPTY): New macro and file.
111189         * m4/jm-macros.m4: Require fetish_FUNC_RMDIR_NOTEMPTY.
111191         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Save and restore LIBS around
111192         AC_SEARCH_LIBS call for nanosleep.
111193         (LIB_NANOSLEEP): Set and AC_SUBST.
111195 2000-05-06  Jim Meyering  <meyering@lucent.com>
111197         * lib/strnlen.c: Undefine __strnlen and strnlen.
111198         [!weak_alias]: Define __strnlen to strnlen.
111200         * lib/atexit.c: New file, from libiberty.
111202 2000-05-06  Jim Meyering  <meyering@lucent.com>
111204         * lib/closeout.c (close_stdout_status): Also check for errors on the
111205         stderr stream.
111207 2000-05-05  Jim Meyering  <meyering@lucent.com>
111209         * m4/jm-macros.m4 (jm_MACROS): Save and restore LIBS around
111210         AC_SEARCH_LIBS call for clock_gettime.
111211         (LIB_CLOCK_GETTIME): Set and AC_SUBST.
111213         * m4/search-libs.m4: Update from autoconf.
111215         su doesn't work on Solaris 2.6.
111216         * m4/lib-check.m4: When checking for struct spwd.sp_pwdp, also include
111217         <shadow.h>.  Reported by Dragos Harabor.
111219 2000-05-05  Bruno Haible  <haible@clisp.cons.org>
111221         * lib/localcharset.c (get_charset_aliases): Use malloc, realloc and
111222         memcpy instead of xmalloc, xrealloc, path_concat.
111223         (locale_charset): Treat empty environment variables as absent.
111224         (DIRECTORY_SEPARATOR, ISSLASH): New macros.
111226 2000-05-04  Jim Meyering  <meyering@lucent.com>
111228         * lib/getopt.c: Update from glibc.
111229         * lib/obstack.c: Likewise.
111230         * lib/obstack.h: Likewise.
111231         * lib/regex.c: Likewise.  NB: K&R compiler support is dropped for this
111232         file
111234         * lib/regex.h: Likewise.
111235         * lib/strndup.c: Likewise.
111236         * lib/strnlen.c: New file, from glibc.
111238 2000-05-03  Jim Meyering  <meyering@lucent.com>
111240         * m4/check-decl.m4 (AC_CHECK_DECLS): Add strndup.
111242 2000-05-02  Paul Eggert  <eggert@twinsun.com>
111244         * m4/largefile.m4 (AC_SYS_LARGEFILE): Define _GNU_SOURCE if
111245         this is needed to make ftello visible (e.g. glibc 2.1.3).  Use
111246         compile-time test, rather than inspecting host and OS, to
111247         decide whether to define _LARGEFILE_SOURCE.
111249 2000-05-01  Jim Meyering  <meyering@lucent.com>
111251         * m4/fsusage.m4: Use AC_MSG_CHECKING instead of obsolete AC_CHECKING.
111253         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Add BeOS support.
111254         Based on a patch from Bruno Haible.
111256 2000-05-01  Jim Meyering  <meyering@lucent.com>
111258         * lib/full-write.c (full_write): Remove `FIXME' part of comment.
111260 2000-04-29  Jim Meyering  <meyering@lucent.com>
111262         * lib/path-concat.c: Declare strdup only if it's not defined.
111263         * lib/canon-host.c: Likewise.
111265 2000-04-28  Jim Meyering  <meyering@lucent.com>
111267         * lib/rpmatch.c [HAVE_LIMITS_H]: Include limits.h before regex.h to
111268         avoid redefinition warning on some systems (HPUX).  Otherwise, regex.h
111269         is included first, then limits.h is included by locale.h by libintl.h.
111270         From John David Anglin.
111272 2000-04-25  Jim Meyering  <meyering@lucent.com>
111274         * lib/makepath.c (S_IRWXUGO): Define.
111275         (make_path): Always perform explicit chmod if MODE specifies any
111276         of the `special' permission bits.  Prompted by a bug report against
111277         install from Mate Wierdl and Joost van Baal.
111279 2000-04-18  Jim Meyering  <meyering@lucent.com>
111281         * m4/prereq.m4 (jm_PREREQ_GETPAGESIZE): New macro.
111282         (jm_PREREQ): Use it.
111284 2000-04-18  Jim Meyering  <meyering@lucent.com>
111286         * lib/README: New file.
111288         * lib/getpagesize.h [!getpagesize && HAVE_OS_H && B_PAGE_SIZE]: Define
111289         getpagesize.  For BeOS.  Based on a patch from Bruno Haible.
111291 2000-04-17  Jim Meyering  <meyering@lucent.com>
111293         Get it right :-)
111294         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Emit the
111295         actual #define via AH_VERBATIM.  Don't need separate AC_DEFINE.
111296         Suggestion from Akim Demaille.
111298 2000-04-17  Jim Meyering  <meyering@lucent.com>
111300         * lib/strftime.c (my_strftime) [strftime]: Declare strftime here, since
111301         the definition of it to rpl_strftime also defined-away the system's
111302         declaration.
111304 2000-04-15  Jim Meyering  <meyering@lucent.com>
111306         Use `C' to denote so-called `contiguous' files, the same way
111307         that tar does.
111308         * lib/filemode.c (S_ISCTG) [!S_ISCTG && S_IFCTG]: Define.
111309         (ftypelet): Use S_ISCTG.
111310         From Michael Deutschmann.
111312 2000-04-14  Jim Meyering  <meyering@lucent.com>
111314         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Use the one-arg
111315         form of AC_DEFINE.  Otherwise, the #ifndef in AH_VERBATIM gets
111316         clobbered.
111318 2000-04-14  Jim Meyering  <meyering@lucent.com>
111320         * lib/strftime.c (my_strftime) [#ifdef strftime]: Declare strftime.
111322 2000-04-13  Jim Meyering  <meyering@lucent.com>
111324         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Use new
111325         AH_VERBATIM to insert required #ifndef into config.h.in.
111326         Suggestion from Akim Demaille.
111328 2000-04-12  Jim Meyering  <meyering@lucent.com>
111330         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Use AC_CHECK_HEADERS, not
111331         `AC_CHECK_HEADER' to check for locale.h.  Thanks to a report from
111332         Christian Krackowizer.
111334         More code moved from ../configure.in into (jm_CHECK_ALL_TYPES).
111335         * m4/jm-macros.m4 (_GNU_SOURCE): Define.
111336         (AC_SYS_LARGEFILE): Require.
111337         (AM_C_PROTOTYPES): Require.
111339 2000-04-08  Jim Meyering  <meyering@lucent.com>
111341         * lib/Makefile.am (charset.alias): Use t-$@, not $@-t so the DOS 8.3
111342         names don't conflict.  Reported by Eli Zaretskii.
111344 2000-04-07  Jim Meyering  <meyering@lucent.com>
111346         * lib/putenv.c: Move inclusion of errno.h so it follows that of
111347         sys/types.h, to work around system header problems on AIX 3.2.5.
111348         From Bruno Haible.
111350 2000-04-07  Bruno Haible  <haible@clisp.cons.org>
111352         * lib/unicodeio.c (print_unicode_char): Avoid triggering Solaris iconv
111353         bug.  Deal with the different error behavior of Irix iconv.
111355 2000-04-05  Paul Eggert  <eggert@twinsun.com>
111357         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Don't use -n32 on
111358         IRIX if the installer said otherwise.
111360 2000-04-05  Jim Meyering  <meyering@lucent.com>
111362         Portability tweaks required for ultrix4.3.
111363         * m4/check-decl.m4 [!HAVE_UTMPX_H] (headers): Include <utmp.h>.
111364         (jm_CHECK_DECLS): Add getutent to the list of functions.
111365         (_jm_DECL_HEADERS): Add utmpx.h.
111366         From John David Anglin.
111368         * m4/strftime.m4: Back out the 2000-04-02 change.
111369         Instead of that change, simply undefine putenv in the test program.
111371 2000-04-05  Jim Meyering  <meyering@lucent.com>
111373         Portability tweaks required for ultrix4.3.
111374         * lib/readutmp.h [HAVE_UTMPX_H && !HAVE_DECL_GETUTENT]: Declare
111375         getutent.
111376         * lib/readutmp.c: Include sys/types.h before sys/stat.h.
111377         * lib/canon-host.c: Declare strdup.
111378         * lib/path-concat.c: Likewise.
111379         From John David Anglin.
111381 2000-04-04  Jim Meyering  <meyering@lucent.com>
111383         Be more DOS 8.3-friendly.
111384         * lib/ref-add.sin: Renamed from ref-add.sed.in.
111385         * lib/ref-del.sin: Renamed from ref-del.sed.in.
111386         * lib/Makefile.am: Reflect renaming.
111387         Reported by Eli Zaretskii.
111389         Use a temporary file name that won't clash with `charset.alias'
111390         in the DOS 8.3 name space.
111391         * lib/Makefile.am (charset_tmp): Define.
111392         (install-exec-local): Use $(charset_tmp) instead of $(charset_alias)-t.
111393         (uninstall-local): Likewise.
111394         Reported by Eli Zaretskii.
111396 2000-04-03  Jim Meyering  <meyering@lucent.com>
111398         * m4/gettext.m4: Fix typo in comment.
111400         * m4/codeset.m4 (AC_CHECK_HEADERS): Add langinfo.h (moved here from
111401         textutils/configure.in).  Suggestion from Paul Eggert.
111402         (AC_CHECK_FUNCS): Add nl_langinfo.  (also from textutils/configure.in)
111404 2000-04-02  Paul Eggert  <eggert@twinsun.com>
111406         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME): Set TZ environment
111407         variable in the shell rather than using putenv, which isn't
111408         portable.  This avoids the configure-time inter-test dependency
111409         on the potentially-renamed putenv function.
111411 2000-03-30  Paul Eggert  <eggert@twinsun.com>
111413         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Include <sys/stat.h>
111414         before checking struct stat.st_blksize, so that
111415         HAVE_STRUCT_STAT_ST_BLKSIZE is defined correctly.
111417 2000-03-29  Paul Eggert  <eggert@twinsun.com>
111419         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Check for strftime,
111420         since strftime.c uses HAVE_STRFTIME to decide whether to use
111421         the underlying strftime.
111423 2000-03-29  Paul Eggert  <eggert@twinsun.com>
111425         * lib/time/strftime.c (my_strftime): Make sure we call the system
111426         strftime, not ourselves, when invoking the underlying strftime.
111428 2000-03-24  Jim Meyering  <meyering@lucent.com>
111430         * lib/Makefile.am (EXTRA_DIST): Add ref-add.sed.in and ref-del.sed.in.
111431         (charset_alias): Define.
111432         (install-exec-local): Factor out common code.
111433         (uninstall-local): Split lines longer than 80.
111434         (ref-add.sed, ref-del.sed): Remove rules... (do the following instead)
111435         (SUFFIXES): Define.
111436         (.sed.in.sed): New rule.  Don't redirect directly to $@.
111437         (CLEANFILES): Add ref-add.sed and ref-del.sed.
111439 2000-03-19  Bruno Haible  <haible@clisp.cons.org>
111441         * lib/config.charset: Output a line containing "Packages using this
111442         file".
111443         * lib/ref-add.sed.in, lib/ref-del.sed.in: New files.
111444         * lib/Makefile.am (install-exec-local, uninstall-local, ref-add.sed,
111445         ref-del.sed): New rules.
111447 2000-03-17  Jim Meyering  <meyering@lucent.com>
111449         * lib/unicodeio.c (<string.h>): Include only #if HAVE_STRING_H.
111450         Otherwise, include <strings.h>
111452 2000-03-17  Bruno Haible  <haible@clisp.cons.org>
111454         * lib/unicodeio.c (utf8_wctomb): New function.
111455         (print_unicode_char): Pass the Unicode character to iconv in UTF-8
111456         format instead of in UCS-4 with platform dependent endianness.
111458 2000-03-10  Jim Meyering  <meyering@lucent.com>
111460         * m4/lib-check.m4: Look for getspnam in -lgen, too.
111461         From Marco Franzen.
111463 2000-03-07  Paul Eggert  <eggert@twinsun.com>
111465         * lib/savedir.c (savedir): Work even if directory size is
111466         negative; this can happen with some screwy NFS configurations.
111468 2000-03-06  Jim Meyering  <meyering@lucent.com>
111470         * lib/localcharset.c (get_charset_aliases): Don't try to free file_name
111471         if it's NULL (because we ran out of memory).  From Bruno Haible.
111473 2000-03-05  Jim Meyering  <meyering@lucent.com>
111475         * lib/localcharset.c ("path-concat.h"): Include.
111476         (get_charset_aliases): Use path_concat instead of ANSI string
111477         concatenation.
111479         * lib/unicodeio.h (PARAMS): Define.
111480         Use it to guard prototype.
111482 2000-03-04  Jim Meyering  <meyering@lucent.com>
111484         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require AC_C_VOLATILE,
111485         for lib/localcharset.c.
111487 2000-03-04  Jim Meyering  <meyering@lucent.com>
111489         * lib/Makefile.am (install-exec-local): Create $(libdir) before
111490         installing into it.
111491         (uninstall-local): Uncomment this rule so `make distcheck' works
111492         once again.
111494         * lib/unicodeio.c (<errno.h>): Include it.
111495         (errno): Declare if not defined.
111497         * lib/localcharset.c: Add Bruno's comment justifying use of volatile.
111499         * lib/config.charset: New version, incorporating remarks from a linux
111500         i18n mailing list.  From Bruno Haible.
111502 2000-03-04  Bruno Haible  <haible@clisp.cons.org>
111504         * m4/codeset.m4: New file.
111505         * m4/iconv.m4: New file.
111506         * m4/jm-macros.m4 (jm_MACROS): Call jm_LANGINFO_CODESET and jm_ICONV.
111508 2000-03-03  Jim Meyering  <meyering@lucent.com>
111510         * m4/regex.m4: Make sure re_compile_pattern accepts patterns like `{1'.
111512 2000-03-02  Jim Meyering  <meyering@lucent.com>
111514         * m4/timespec.m4: Require AC_HEADER_TIME before the cache check so
111515         the messages come out on separate lines.
111517         * m4/jm-glibc-io.m4 (jm_FUNC_GLIBC_UNLOCKED_IO): Use AC_CHECK_DECLS,
111518         rather than jm_CHECK_DECLARATIONS.
111519         * m4/decl.m4: Remove now-unused file.
111521         * m4/check-decl.m4 (AC_CHECK_DECLS): Add getlogin, ttyname, and
111522         geteuid.
111524 2000-03-02  Jim Meyering  <meyering@lucent.com>
111526         * lib/Makefile.am (EXTRA_DIST): Add config.charset.
111528 2000-03-01  Jim Meyering  <meyering@lucent.com>
111530         * lib/localcharset.c: Guard some #includes with `#if HAVE_...'.
111531         * lib/unicodeio.c: Likewise.
111533 2000-03-01  Bruno Haible  <haible@clisp.cons.org>
111535         * lib/config.charset: New file.
111536         * lib/localcharset.c: New file.
111537         * lib/unicodeio.h, lib/unicodeio.c: New files.
111538         * lib/Makefile.am (DEFS): Add -DLIBDIR=...
111539         (libfetish_a_SOURCES): Add localcharset.c and unicodeio.c.
111540         (noinst_HEADERS): Add unicodeio.h.
111541         (all-local, install-exec-local, charset.alias): New targets.
111543 2000-02-28  Paul Eggert  <eggert@twinsun.com>
111545         * lib/quotearg.c (ALERT_CHAR): New macro.
111546         (quotearg_buffer_restyled): Use it.
111548 2000-02-27  Jim Meyering  <meyering@lucent.com>
111550         * m4/check-decl.m4: Add getenv to the list.
111552 2000-02-27  Jim Meyering  <meyering@lucent.com>
111554         * lib/strtoumax.c: Fix typo in decl of strtoul: s/long long/long/.
111555         Guard declaration of strtoull also with `&& HAVE_UNSIGNED_LONG_LONG'.
111557         * lib/backupfile.c: Guard inclusion of stdlib.h with
111558         `#if HAVE_STDLIB_H', not `#if STDC_HEADERS'.
111559         Declare malloc if needed.
111561         * lib/backupfile.c: Use `#if !HAVE_DECL...' instead of
111562         `#ifndef HAVE_DECL..'
111563         now that autoconf always defines the HAVE_DECL_ symbols.
111564         * lib/human.c: Likewise.
111565         * lib/same.c: Likewise.
111566         * lib/strtoumax.c: Likewise.
111568         * lib/backupfile.c: Arrange for cpp to fail if the configure-time
111569         declaration check was not run.
111570         * lib/hash.c: Likewise.
111571         * lib/human.c: Likewise.
111572         * lib/same.c: Likewise.
111573         * lib/strtoumax.c: Likewise.
111575         * lib/userspec.c (parse_user_spec): If there is no `:' but there is a
111576         `.', then first look up the entire `.'-containing string as a login
111577         name.
111579 2000-02-23  Jim Meyering  <meyering@lucent.com>
111581         * m4/check-decl.m4: Now that we have the new AC_CHECK_DECLS, use it
111582         in place of my hack.
111584 2000-02-18  Paul Eggert  <eggert@twinsun.com>
111586         * lib/getdate.y: Handle two-digit years with leading zeros correctly.
111587         (textint): New typedef.
111588         (parser_control): Member year changed from int to textint.
111589         All uses changed.
111590         (YYSTYPE): Removed; replaced by %union with int and textint members.
111591         (tDAY, tDAY_UNIT, tDAYZONE, tHOUR_UNIT, tID, tLOCAL_ZONE, tMERIDIAN,
111592         tMINUTE_UNIT, tMONTH, tMONTH_UNIT tSEC_UNIT, tSNUMBER, tUNUMBER,
111593         tYEAR_UNIT, tZONE, o_merid): Now of type <intval>.
111594         (tSNUMBER, tUNUMBER): Now of type <textintval>.
111595         (date, number, to_year): Use width of number in digits, not its value,
111596         to determine whether it's a 2-digit year, or a 2-digit time.
111597         (yylex): Store number of digits of numeric tokens.
111598         Reported by John Kendall.
111600         (parser_control): Changed from struct parser_control to typedef (for
111601         consistency).  All uses changed.
111603         (tID): Removed; not used.
111604         (yylex): Return '?' for unknown identifiers, rather than (unused) tID.
111606 2000-02-14  Paul Eggert  <eggert@twinsun.com>
111608         * lib/getpagesize.h (getpagesize): Port to VMS for Alpha;
111609         adapted from changes to grep getpagesize.h by Martin P.J. Zinser.
111611 2000-02-12  Jim Meyering  <meyering@lucent.com>
111613         * lib/userspec.c (ISDIGIT): Define it.
111614         (isdigit): Remove definition.
111615         (is_number): Use ISDIGIT, not isdigit.
111616         <libintl.h>: Include.
111617         (_ and N_): Define.
111618         (parse_user_spec): Mark translatable strings.
111620 2000-02-10  Jim Meyering  <meyering@lucent.com>
111622         With these changes, nanosleep.[ch] are finally enough like the other
111623         lib/* replacement files to compile on a few more losing systems.
111625         * lib/nanosleep.h: Don't include config.h.
111626         Remove prototype from declaration of nanosleep.
111627         (PARAMS): Remove now-unneeded definition.
111628         * lib/nanosleep.c: #undef nanosleep.
111629         (rpl_nanosleep): Rename from nanosleep.
111631 2000-02-10  Jim Meyering  <meyering@lucent.com>
111633         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Rename replacement function from
111634         gnu_nanosleep to rpl_nanosleep.
111636 2000-02-09  Jim Meyering  <meyering@lucent.com>
111638         * m4/lib-check.m4 (jm_LIB_CHECK): Fix typo: check for sp_pwdp in
111639         struct spwd, rather than in struct passwd.  Reported by Gaël Quéri.
111641 2000-02-08  Akim Demaille  <akim@epita.fr>
111643         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Quote square brackets with
111644         `[' and `]' and remove uses of `changequote'.
111645         (AC_SYS_LARGEFILE_MACRO_VALUE): Likewise.
111646         (AC_SYS_LARGEFILE): Likewise.
111647         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
111648         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME): Remove now-unnecessary use
111649         of changequote.
111650         * m4/regex.m4 (jm_INCLUDED_REGEX): Likewise.
111651         * m4/readdir.m4 (jm_FUNC_READDIR): Likewise
111652         * m4/memcmp.m4 (jm_AC_FUNC_MEMCMP): Likewise, and add `int' for main.
111653         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Likewise.
111655 2000-02-05  Jim Meyering  <meyering@lucent.com>
111657         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require most macros.
111658         Remove explicit use of AC_HEADER_TIME.  It is required by
111659         jm_CHECK_TYPE_STRUCT_TIMESPEC.  Using AC_HEADER_TIME and
111660         `AC_REQUIRE'ing jm_CHECK_TYPE_STRUCT_TIMESPEC provoked a but
111661         in autoconf whereby the expansion of the latter ended up preceding
111662         the expansion of its prerequisite, AC_HEADER_TIME.
111663         Reported by Volker Borchert.
111665 2000-02-03  Jim Meyering  <meyering@lucent.com>
111667         * m4/prereq.m4 (jm_PREREQ_READUTMP): Check for utmpxname.
111669 2000-02-03  Jim Meyering  <meyering@lucent.com>
111671         * lib/readutmp.c (read_utmp): Guard with `#ifdef UTMP_NAME_FUNCTION',
111672         rather than with `#if HAVE_UTMPNAME'.
111674 2000-02-02  Jim Meyering  <meyering@lucent.com>
111676         * m4/prereq.m4 (jm_PREREQ_ADDEXT): Fix typo that resulted in no
111677         definition of HAVE_PATHCONF: s/AC_CHECK_FUNC/AC_CHECK_FUNCS/.
111678         Reported by Eli Zaretskii.
111680 2000-02-01  Jim Meyering  <meyering@lucent.com>
111682         * lib/readutmp.h (UT_USER): Add parens.  From Andreas Schwab.
111684 2000-01-31  Jim Meyering  <meyering@lucent.com>
111686         * m4/check-decl.m4 (jm_CHECK_DECLS): Add nanosleep to the list of
111687         functions.  Add the time.h and sys/time.h headers along with the
111688         AC_REQUIRE'ment of AC_HEADER_TIME.
111690 2000-01-31  Jim Meyering  <meyering@lucent.com>
111692         * lib/nanosleep.h (nanosleep): Guard declaration with
111693         `#if ! HAVE_DECL_NANOSLEEP'.
111694         Without this, OFS gets a redeclaration error for rpl_nanosleep, due to
111695         the declaration in that vendor's sys/timers.h.
111696         Reported by Christian Krackowizer.
111698         * lib/quotearg.c (ISASCII): Add #undef and move definition to follow
111699         inclusion of wctype.h to work around Solaris 2.6 namespace pollution.
111700         (ISPRINT): Likewise.
111701         Reported by Tom Tromey.
111703 2000-01-30  Jim Meyering  <meyering@lucent.com>
111705         * m4/lib-check.m4: Clean up some kludgy old shadow password tests.
111707         * m4/prereq.m4 (utmp_includes): Define.
111708         Check for ut_user and ut_name members in both struct utmpx
111709         and struct utmp.
111711 2000-01-30  Jim Meyering  <meyering@lucent.com>
111713         * lib/readutmp.c (extract_trimmed_name): Use UT_USER instead of
111714         hard-coding uses of ->ut_name.  The latter doesn't work with new Linux
111715         header files where only utmpx.ut_user is declared.
111717         * lib/readutmp.h (UT_USER): Define.
111719 2000-01-29  Jim Meyering  <meyering@lucent.com>
111721         * m4/lib-check.m4: New file containing library-related checks from
111722         fileutils and sh-utils (textutils had none).
111724 2000-01-28  Jim Meyering  <meyering@lucent.com>
111726         * m4/perl.m4: Change format of warning message to look more like that
111727         from the missing script.  Suggestion from François Pinard.
111729 2000-01-25  Jim Meyering  <meyering@lucent.com>
111731         * m4/timespec.m4: Require AC_HEADER_TIME, and include sys/time.h as
111732         well as time.h in the compile check.
111733         * m4/nanosleep.m4: Require AC_HEADER_TIME rather than simply using it.
111734         Fix typo in cross-compiling case: s/yes/no/.
111736 2000-01-23  Jim Meyering  <meyering@lucent.com>
111738         * m4/jm-macros.m4: Move df-related tests here from
111739         fileutils/configure.in
111741         * m4/ls-mntd-fs.m4: s/list_mounted_fs/ac_list_mounted_fs/
111742         (jm_LIST_MOUNTED_FILESYSTEMS): Take two parameters.
111744         * m4/fsusage.m4: New file.  Extracted from fileutils/configure.in.
111745         s/space/ac_fsusage_space/.
111746         (jm_FILE_SYSTEM_USAGE): Take two parameters.
111748         * m4/ftruncate.m4: New file (derived from part of
111749         fileutils/configure.in).
111750         * m4/jm-macros.m4 (jm_FUNC_FTRUNCATE): AC_REQUIRE it.
111751         (jm_CHECK_ALL_TYPES): Require AC_HEADER_MAJOR and AC_HEADER_DIRENT.
111753         * m4/jm-macros.m4 (OPTIONAL_BIN_PROGS, OPTIONAL_BIN_ZCRIPTS, MAN):
111754         AC_SUBST these here, rather than just in sh-util/configure.in, so
111755         that the now-shared-by-fileutils-and-textutils lib/Makefile.am are
111756         all the same.
111757         (AM_FUNC_OBSTACK): Add (from fileutils/configure.in).
111758         (AC_CHECK_FUNCS): Merge all checks from fileutils, textutils, sh-utils.
111759         (AM_FUNC_STRTOD): Added (from textutils', sh-utils' configure.in).
111760         (AC_SUBST(POW_LIBM)): Likewise.
111761         (AC_SUBST(DF_PROG)): Moved from fileutils/configure.in.
111763 2000-01-23  Jim Meyering  <meyering@lucent.com>
111765         * lib/Makefile.am (libfetish_a_SOURCES): Remove explicit mention of
111766         obstack.c.
111768 2000-01-22  Jim Meyering  <meyering@lucent.com>
111770         * m4/jm-macros.m4: Call AC_PROG_CC_STDC just before AC_C_CONST.
111772         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Add wctype.h.
111774         * m4/jm-macros.m4 (AC_CHECK_HEADERS): Add checks from fileutils'
111775         configure.in
111776         (AC_CHECK_HEADERS): Likewise for sh-utils.
111777         (AC_CHECK_HEADERS): Likewise for textutils.
111778         Merge the three lists of headers.
111780         * m4/prereq.m4 (jm_PREREQ_ADDEXT): New macro.  Parts moved here
111781         from fileutils' configure.in.
111783         * m4/decl.m4: Remove kludgy `test -z $ac_...AC_CHECK_HEADERS(...)'
111784         code. Moved tests into their own function (_jm_DECL_HEADERS) in
111785         check-decl.m4.
111787         * m4/check-decl.m4: Use #if rather than #ifdef.
111788         Add HAVE_DECL_STRTOUL and HAVE_DECL_STRTOULL.
111789         (jm_CHECK_DECLARATIONS): Add strtoul strtoull.
111790         (_jm_DECL_HEADERS): Define new function.
111791         (jm_CHECK_DECLARATIONS): Require it.
111793 2000-01-22  Jim Meyering  <meyering@lucent.com>
111795         * lib/strtoumax.c: [! HAVE_DECL_STRTOUL]: Declare strtoul.
111796         [! HAVE_DECL_STRTOULL]: Declare strtoull.
111797         Required for some AIX systems.  Reported by Christian Krackowizer.
111798         [TESTING] (main): New function.
111800         1997-10-17  Eli Zaretskii  <eliz@is.elta.co.il>
111801         * lib/dirname.c (dir_name): Support for DOS-style file names with drive
111802         letters.
111804         * lib/quotearg.c [HAVE_WCTYPE_H]: Include <wctype.h> for decl of
111805         iswprint.
111807         * lib/strverscmp.c (ISDIGIT): Define.
111808         (strverscmp): Use ISDIGIT, not isdigit.
111810 2000-01-19  Jim Meyering  <meyering@lucent.com>
111812         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Include <sys/time.h>, too.
111813         Use AC_HEADER_TIME.  Volker Borchert reported that OpenBSD-2.3/sparc
111814         defines `struct timespec' in <sys/time.h>
111816         * m4/c-bs-a.m4: Remove uses of changequote altogether.
111817         Thanks to Akim for explaining.
111819 2000-01-17  Paul Eggert  <eggert@twinsun.com>
111821         * lib/nanosleep.c (nanosleep):
111822         Don't use SA_INTERRUPT to decide whether to call sigaction, as
111823         POSIX.1 doesn't require SA_INTERRUPT and some systems
111824         (e.g. Solaris 7) don't define it.  Use SA_NOCLDSTOP instead;
111825         it's been part of POSIX.1 since day 1 (in 1988).
111827 2000-01-17  Jim Meyering  <meyering@lucent.com>
111829         * lib/interlock: Remove unused file.  Reported by François Pinard.
111831 2000-01-16  Paul Eggert  <eggert@twinsun.com>
111833         * lib/quotearg.c (quotearg_buffer_restyled): Do not quote
111834         alert, backslash, formfeed, and vertical tab unnecessarily in
111835         shell quoting style.
111837 2000-01-16  Jim Meyering  <meyering@lucent.com>
111839         * m4/jm-macros.m4: Require jm_FUNC_GROUP_MEMBER, jm_FUNC_PUTENV,
111840         AM_FUNC_ERROR_AT_LINE, jm_FUNC_GNU_STRFTIME, jm_FUNC_MKTIME,
111841         jm_FUNC_GETGROUPS AC_FUNC_VPRINTF, AC_FUNC_ALLOCA,
111842         AM_FUNC_GETLOADAVG, and jm_SYS_PROC_UPTIME.
111844 2000-01-16  Jim Meyering  <meyering@lucent.com>
111846         * m4/c-bs-a.m4: Use `changequote(<<,>>)', rather than `changequote(, )'
111847         because the latter didn't work.
111849 2000-01-15  Jim Meyering  <meyering@lucent.com>
111851         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add gethostname and getusershell.
111852         (AC_REPLACE_FUNCS): Add memcpy and memset.
111853         Add these, too: stime strcspn stpcpy strstr strtol strtoul.
111854         Add strpbrk.
111855         Add these: euidaccess memcmp mkdir rmdir rpmatch strndup strverscmp.
111857 2000-01-12  Jim Meyering  <meyering@lucent.com>
111859         * m4/prereq.m4 (jm_PREREQ_CANON_HOST): New macro.
111860         (jm_PREREQ): Use it.
111861         (jm_PREREQ_READUTMP): New macro.
111862         (jm_PREREQ): Use it.
111864 2000-01-11  Paul Eggert  <eggert@twinsun.com>
111866         Quote multibyte characters correctly.
111867         * m4/c-bs-a.m4: New file.
111868         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): New macro.
111869         (jm_PREREQ): Use it.
111871 2000-01-11  Paul Eggert  <eggert@twinsun.com>
111873         * m4/uintmax_t.m4: Port to autoconf 2.13.
111875 2000-01-08  Jim Meyering  <meyering@ascend.com>
111877         * m4/strerror_r.m4 (jm_FUNC_STRERROR_R): New file/macro.
111878         * m4/jm-macros.m4 (jm_FUNC_STRERROR_R): Require it.
111880 2000-01-04  Jim Meyering  <meyering@ascend.com>
111882         * m4/d-type.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Rename from
111883         jm_STRUCT_DIRENT_D_TYPE.
111884         * m4/d-ino.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_INO): Rename from
111885         jm_STRUCT_DIRENT_D_INO.
111886         * m4/utimbuf.m4 (jm_CHECK_TYPE_STRUCT_UTIMBUF): Rename from
111887         jm_STRUCT_UTIMBUF.
111888         * m4/jm-macros.m4: Reflect s/jm_STRUCT_/jm_CHECK_TYPE_STRUCT_/
111889         renamings.
111890         * m4/utime.m4: Likewise.
111892         * m4/timespec.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC): New file, macro.
111893         * m4/jm-macros.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC): Require it.
111895 2000-01-03  Paul Eggert  <eggert@twinsun.com>
111897         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Search for nanosleep in -lrt
111898         (for Solaris 7) and in -lposix4 (for Solaris 2.5.1).
111900 2000-01-02  Jim Meyering  <meyering@ascend.com>
111902         * m4/search-libs.m4: Escape `$' in $3 of dnl comment.  I no longer
111903         remember if this is necessary.
111905 1999-12-26  Jim Meyering  <meyering@ascend.com>
111907         * m4/jm-macros.m4: Use it here.
111908         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): New file/macro.
111910 1999-12-23  Jim Meyering  <meyering@ascend.com>
111912         * m4/jm-macros.m4: Check for clock_gettime (moved from
111913         fileutils/configure.in)
111914         Check for gettimeofday.
111916 1999-12-20  Jim Meyering  <meyering@ascend.com>
111918         * m4/strftime.m4: Remove kludge, now that I'm using the fixed
111919         autoconf-2.14a-1999-12-20.
111921 1999-12-19  Jim Meyering  <meyering@ascend.com>
111923         * m4/lstat-slash.m4: New file.
111924         * m4/jm-macros.m4: Use the new macro:
111925         jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
111927 1999-12-07  Jim Meyering  <meyering@ascend.com>
111929         * m4/perl.m4: Require that File::Compare be available, too.
111930         Too many systems seem to lack it.
111932         * m4/strftime.m4: Add checks for most of the cpp macros tested in
111933         GNU's strftime.c.  Prompted by a patch from Paul Eggert.
111935 1999-11-18  Paul Eggert  <eggert@twinsun.com>
111937         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Work around a
111938         problem with the QNX 4.25 shell, which doesn't propagate exit
111939         status of failed commands inside shell assignments.
111941 1999-11-17  Jim Meyering  <meyering@ascend.com>
111943         * m4/gettext.m4: Use new AC_CONFIG_LINKS in place of AC_LINK_FILES.
111945 1999-11-07  Jim Meyering  <meyering@ascend.com>
111947         * m4/getloadavg.m4: Add `, 1, [FIXME]' to each use of AC_DEFINE.
111949 1999-11-06  Jim Meyering  <meyering@ascend.com>
111951         * m4/link-follow.m4 (jm_AC_FUNC_LINK_FOLLOWS_SYMLINK): New file/macro.
111952         * m4/jm-macros.m4 (jm_MACROS): Use it here.
111954 1999-11-05  Jim Meyering  <meyering@ascend.com>
111956         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Move some tests from
111957         configure.in of textutils, fileutils, and sh-utils into this one
111958         (shared between those packages) file.
111959         Use `AC_CHECK_MEMBERS((struct stat.st_blksize))' instead of deprecated
111960         AC_STRUCT_ST_BLKSIZE.
111962 1999-11-03  Jim Meyering  <meyering@ascend.com>
111964         * m4/ssize_t.m4: Remove file.  No longer needed since the new version
111965         of AC_CHECK_TYPE checks includes unistd.h.
111966         * m4/jm-macros.m4: Use straight `AC_CHECK_TYPE(ssize_t, int)'.
111967         Suggestion from Akim Demaille.
111969 1999-10-30  Jim Meyering  <meyering@ascend.com>
111971         * m4/uintmax_t.m4: Require 2.14a.  Remove backslash before backtick in
111972         m4-quoted string.
111973         * m4/ls-mntd-fs.m4: Likewise.
111974         * m4/jm-macros.m4: Likewise.  Also, use AC_TYPE_SSIZE_T instead
111975         * m4/jm-winsz1.m4: Likewise.
111977         * m4/const.m4: Remove file, since the fix made it into the experimental
111978         version of autoconf.
111979         * m4/mktime.m4: Likewise.
111981         * m4/check-type.m4: Remove file, now that the latest version of
111982         AC_CHECK_TYPE takes a third arg to specify additional #includes.
111984         * m4/ssize_t.m4: New file, requires experimental version of autoconf.
111985         * m4/jm-macros.m4: Use new AC_TYPE_SSIZE_T instead of my hacked
111986         AC_CHECK_TYPE.
111988 1999-10-04  Jim Meyering  <meyering@ascend.com>
111990         * m4/jm-macros.m4: Don't require autoconf-2.14.1.
111992 1999-09-22  Paul Eggert  <eggert@twinsun.com>
111994         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Work around GCC
111995         2.95.1 bug with HP-UX 10.20.
111997 1999-09-17  Jim Meyering  <meyering@ascend.com>
111999         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add strdup.
112000         Paul Nevai reported a link failure on a NeXT CUBE with NeXTSTEP 3.3
112001         due to missing strdup (against sh-utils-2.0).
112003 1999-08-29  Jim Meyering  <meyering@ascend.com>
112005         * m4/jm-macros.m4: Require jm_BISON.
112006         * m4/bison.m4: New file.
112008 1999-08-17  Paul Eggert  <eggert@twinsun.com>
112010         * m4/largefile.m4 (AC_SYS_LARGEFILE): Fix typo: missing comma
112011         in value for _FILE_OFFSET_BITS, which broke ports to HP-UX 10.20.
112013 1999-08-05  Jim Meyering  <meyering@ascend.com>
112015         * m4/getline.m4: Rename test file from conftestdata to conftest.data
112016         to avoid conflicts with `conftest' on 8+3 filesystems.
112017         Suggestion from Eli Zaretskii.
112019 1999-08-04  Jim Meyering  <meyering@ascend.com>
112021         * m4/jm-macros.m4: Move a 4-line block of code from the configure.in of
112022         fileutils and sh-utils (textutils's getline test was inadequate).
112023         (AM_FUNC_GETLINE): Run this test.
112024         (AC_CHECK_FUNCS): Check for getdelim.
112025         Reported by Bob Proulx.
112027 1999-08-02  Jim Meyering  <meyering@ascend.com>
112029         * m4/jm-macros.m4: Add a comment.
112031 1999-08-01  Paul Eggert  <eggert@twinsun.com>
112033         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Check whether
112034         <inttypes.h> defines strtoumax as a macro (and not as a
112035         function).
112037 1999-08-01  Paul Eggert  <eggert@twinsun.com>
112039         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Make sure
112040         that we can shift, multiply and divide unsigned long long
112041         values; Ultrix cc can't do it.
112043 1999-08-01  Paul Eggert  <eggert@twinsun.com>
112045         * m4/mktime.m4: New file, which is a preview of what should appear
112046         in the next public autoconf release.
112048 1999-08-01  Paul Eggert  <eggert@twinsun.com>
112050         * m4/lfs.m4: Remove this file.
112051         * m4/largefile.m4: New file.  It contains the old contents of
112052         lfs.m4, except that all names with prefix AC_LFS have been
112053         changed to use the prefix AC_SYS_LARGEFILE instead, to be
112054         compatible with future autoconf versions.  Also, some minor m4
112055         quoting problems have been fixed.
112057 1999-08-01  Paul Eggert  <eggert@twinsun.com>
112059         * m4/gettext.m4 (AM_WITH_NLS): Remove unnecessary lines.
112060         Fix typo: $nls_cv_header_intl was misspelled as $nsl_cv_header_intl.
112061         (AM_GNU_GETTEXT): Fix problem with brackets and m4 quoting,
112062         and simplify the shell code.
112064 1999-08-01  Jim Meyering  <meyering@ascend.com>
112066         * m4/mktime.m4 (AC_FUNC_MKTIME): Undefine to avoid syntax errors from
112067         m4.
112069 1999-07-20  Jim Meyering  <meyering@ascend.com>
112071         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memmove.
112073 1999-07-15  Jim Meyering  <meyering@ascend.com>
112075         * m4/jm-macros.m4 (AC_CHECK_FUNCS): Check for getpagesize.
112077 1999-05-22  Jim Meyering  <meyering@ascend.com>
112079         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memchr.
112081 1999-05-20  Jim Meyering  <meyering@ascend.com>
112083         * m4/search-libs.m4 [AC_SEARCH_LIBS]: Quote name in undefine.
112084         Add a colon after each `then' in case $4 is empty.
112086 1999-05-16  Jim Meyering  <meyering@ascend.com>
112088         * m4/search-libs.m4: New file to override autoconf's AC_SEARCH_LIBS.
112090 1999-05-10  Jim Meyering  <meyering@ascend.com>
112092         * m4/jm-mktime.m4: Reflect renaming: AM_FUNC_MKTIME -> AC_FUNC_MKTIME.
112094         * m4/jm-macros.m4: Require 2.14.1, since we use newly-renamed
112095         AC_FUNC_MKTIME.
112097 1999-05-10  Andreas Schwab  <schwab@issan.cs.uni-dortmund.de>
112099         * m4/jm-mktime.m4, putenv.m4: Fix typos in config.h comments.
112101 1999-05-04  Paul Eggert  <eggert@twinsun.com>
112103         * m4/lfs.m4 (AC_LFS): -n32, -o32, and -n64 should be in CFLAGS,
112104         not CPPFLAGS, so that linking works correctly in IRIX.
112106 1999-04-30  Paul Eggert  <eggert@twinsun.com>
112108         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add dup2.
112110 1999-04-20  Paul Eggert  <eggert@twinsun.com>
112112         * m4/uintmax_t.m4 (jm_AC_TYPE_UINTMAX_T): Move unsigned long
112113         long check into new jm_AC_TYPE_UNSIGNED_LONG_LONG macro.
112114         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require
112115         jm_AC_TYPE_UNSIGNED_LONG_LONG.
112116         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): New file/macro.
112118         * m4/lfs.m4: Port to AIX and HP-UX.  Support cross-compilation.
112120 1999-04-20  Jim Meyering  <meyering@ascend.com>
112122         * m4/xstrtoumax.m4: Require jm_AC_TYPE_UNSIGNED_LONG_LONG.
112123         AC_REPLACE xstroull if necessary.  From Paul Eggert.
112124         (AC_CHECK_FUNCS): Remove strtoull, strtoumax, strtouq.
112126 1999-04-18  Jim Meyering  <meyering@ascend.com>
112128         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): New file/macro.
112129         * m4/jm-macros.m4: Use it.
112131 1999-04-06  Jim Meyering  <meyering@ascend.com>
112133         * m4/strftime.m4: Remove test for %f.
112135 1999-03-29  Jim Meyering  <meyering@ascend.com>
112137         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): New macro, contains the
112138         superset of the AC_TYPE_* checks in the textutils, fileutils,
112139         and sh-utils, plus AC_TYPE_PID_T.  Paul Eggert suggested adding
112140         AC_TYPE_PID_T.
112142 1999-03-28  Jim Meyering  <meyering@ascend.com>
112144         * m4/jm-macros.m4: Define GNU_PACKAGE here.
112145         Be sure to AC_SUBST it, once again, so that @GNU_PACKAGE@ is
112146         replaced e.g., in the *.sh files of the sh-utils.
112148 1999-03-20  Jim Meyering  <meyering@ascend.com>
112150         * m4/jm-macros.m4: s/jm_WITH_REGEX/jm_INCLUDED_REGEX/.
112151         * m4/regex.m4 (jm_INCLUDED_REGEX): Rename from jm_WITH_REGEX.
112152         Don't depend on AM_GLIBC.  Suggestions from Alain Magloire.
112154 1999-03-19  Jim Meyering  <meyering@ascend.com>
112156         * m4/jm-winsz1.m4 (jm_WINSIZE_IN_PTEM): New macro.
112158 1999-03-12  Jim Meyering  <meyering@ascend.com>
112160         * m4/jm-macros.m4: Use AC_FUNC_SETVBUF_REVERSED.
112162 1999-03-07  Jim Meyering  <meyering@ascend.com>
112164         * m4/jm-glibc-io.m4: Use only those *_unlocked macros that are
112165         declared.
112167 1999-02-17  Jim Meyering  <meyering@ascend.com>
112169         * m4/gettext.m4 (AM_GNU_GETTEXT): Do `changequote' around use of
112170         brackets in macro definition.  From Eli Zaretskii and Alain Magloire.
112172 1999-02-07  Jim Meyering  <meyering@ascend.com>
112174         * m4/group-member.m4: New file -- extracted from sh-utils'
112175         configure.in.
112177         1999-02-05  Eli Zaretskii  <eliz@is.elta.co.il>
112178         * m4/gettext.m4: Support DOS-style d:/foo/bar absolute file names.
112180 1999-02-06  Jim Meyering  <meyering@ascend.com>
112182         * m4/chown.m4: Use `AC_SUBST(LIBOBJS)' since we set LIBOBJS.
112183         * m4/fnmatch.m4: Likewise.
112184         * m4/getgroups.m4: Likewise.
112185         * m4/lstat.m4: Likewise.
112186         * m4/malloc.m4: Likewise.
112187         * m4/putenv.m4: Likewise.
112188         * m4/realloc.m4: Likewise.
112189         * m4/regex.m4: Likewise.
112190         * m4/stat.m4: Likewise.
112191         * m4/strftime.m4: Likewise.
112192         Suggestion from Alain Magloire.
112194         * m4/chown.m4: Use `.$ac_objext', not `.o'.
112195         * m4/fnmatch.m4: Likewise.
112196         * m4/getgroups.m4: Likewise.
112197         * m4/getline.m4: Likewise.
112198         * m4/lstat.m4: Likewise.
112199         * m4/malloc.m4: Likewise.
112200         * m4/memcmp.m4: Likewise.
112201         * m4/putenv.m4: Likewise.
112202         * m4/realloc.m4: Likewise.
112203         * m4/regex.m4: Likewise.
112204         * m4/stat.m4: Likewise.
112205         * m4/strftime.m4: Likewise.
112206         Suggestion from Alain Magloire.
112208         * m4/jm-macros.m4: Actually invoke jm_WITH_REGEX now that it requires
112209         an argument.
112211         * m4/regex.m4: Add a run-time Test for proper operation of
112212         re_compile_pattern.
112214 1999-01-31  Jim Meyering  <meyering@ascend.com>
112216         * m4/getloadavg.m4: Check for locale.h and the function, setlocale.
112218 1999-01-30  Jim Meyering  <meyering@ascend.com>
112220         * m4/check-type.m4: Use 3-arg form of AC_DEFINE.
112222         * m4/jm-mktime.m4: Make this a wrapper around the official
112223         AM_FUNC_MKTIME rather than my private copy, now that the official one
112224         is up to date.
112225         * m4/mktime.m4: Remove file.
112227         * m4/getloadavg.m4: Use 3-arg form of AC_DEFINE.
112228         * m4/uptime.m4: Likewise.
112229         * m4/uintmax_t.m4: Likewise.
112231 1999-01-28  Jim Meyering  <meyering@ascend.com>
112233         * m4/jm-macros.m4: Use jm_AFS.
112234         * m4/afs.m4: New file (from fileutils' configure.in).
112236         * m4/assert.m4: Use the 3-argument forms of AC_DEFINE* macros.
112237         * m4/chown.m4: Likewise.
112238         * m4/d-ino.m4: Likewise.
112239         * m4/d-type.m4: Likewise.
112240         * m4/fnmatch.m4: Likewise.
112241         * m4/getgroups.m4: Likewise.
112242         * m4/gettext.m4: Likewise.
112243         * m4/jm-mktime.m4: Likewise.
112244         * m4/jm-winsz2.m4: Likewise.
112245         * m4/lcmessage.m4: Likewise.
112246         * m4/ls-mntd-fs.m4: Likewise.
112247         * m4/malloc.m4: Likewise.
112248         * m4/memcmp.m4: Likewise.
112249         * m4/putenv.m4: Likewise.
112250         * m4/realloc.m4: Likewise.
112251         * m4/st_mtim.m4: Likewise.
112252         * m4/strftime.m4: Likewise.
112254 1999-01-16  Jim Meyering  <meyering@ascend.com>
112256         * m4/jm-macros.m4 (ARGMATCH_DIE): Define.
112257         (ARGMATCH_DIE_DECL): Define.
112259 1999-01-12  Jim Meyering  <meyering@ascend.com>
112261         * m4/Makefile.am.in: Rewrite to avoid using fmt.
112262         Reported by Lars Hecking.
112264 1999-01-10  Jim Meyering  <meyering@ascend.com>
112266         * m4/fstypename.m4: Use the new 3-arg form of AC_DEFINE instead of my
112267         gross kludge.
112268         * m4/inttypes_h.m4: Likewise.
112269         * m4/lstat.m4: Likewise.
112270         * m4/malloc.m4: Likewise.
112271         * m4/readdir.m4: Likewise.
112272         * m4/realloc.m4: Likewise.
112273         * m4/st_dm_mode.m4: Likewise.
112274         * m4/stat.m4: Likewise.
112275         * m4/utimbuf.m4: Likewise.
112276         * m4/utimes.m4: Likewise.
112278         * m4/check-decl.m4: Use the new 3-arg form of AC_DEFINE instead of the
112279         AC_CHECK_FUNCS hack.  Now, it's still a hack, but at least the
112280         comments in config.h.in are meaningful.
112282         * m4/jm-macros.m4: Require autoconf-2.13 here.
112284         * m4/regex.m4: By default, don't use the included regex.c on systems
112285         with glibc 2.  Suggestion from Uli Drepper.
112287 1999-01-02  Jim Meyering  <meyering@ascend.com>
112289         * m4/jm-macros.m4: Replace strcasecmp and strncasecmp.
112291 1998-12-18  Jim Meyering  <meyering@ascend.com>
112293         * m4/Makefile.am.in (Makefile.am): Simplify rule.
112294         Based on a suggestion from Lars Hecking.
112296 1998-11-16  Paul Eggert  <eggert@twinsun.com>
112298         * m4/lfs.m4 (AC_LFS): Add support for HP-UX 10.20 and HP-UX 11.
112300 1998-11-16  Jim Meyering  <meyering@ascend.com>
112302         * m4/lfs.m4: Double-quote the `uname...` expression.
112304 1998-11-14  Jim Meyering  <meyering@ascend.com>
112306         * m4/lstat.m4: Correct comment.  POSIX does not permit it to succeed.
112307         * m4/stat.m4: Likewise.
112309 1998-11-03  Jim Meyering  <meyering@ascend.com>
112311         * m4/stat.m4: Rewrite to set HAVE_STAT_EMPTY_STRING_BUG.
112312         * m4/lstat.m4: Rewrite to set HAVE_LSTAT_EMPTY_STRING_BUG.
112314 1998-10-18  Jim Meyering  <meyering@ascend.com>
112316         * m4/check-decl.m4 (jm_CHECK_DECL_LOCALTIME_R): Remove macro.
112318 1998-10-17  Jim Meyering  <meyering@ascend.com>
112320         * m4/decl.m4 (jm_CHECK_DECLARATION): Don't hard-code which headers to
112321         include, though we still hard-code the `require'-like AC_CHECK_HEADERS
112322         calls for those previously hard-coded headers.  Instead, take a new
112323         parameter.
112324         (jm_CHECK_DECLARATIONS): Reflect interface change.
112325         * m4/check-decl.m4 (jm_CHECK_DECLS): Likewise.
112326         (jm_CHECK_DECL_LOCALTIME_R): New macro.
112328         * m4/mktime.m4: Test for spring-forward gap before long-running test.
112330 1998-10-14  Jim Meyering  <meyering@ascend.com>
112332         * m4/mktime.m4: Use the more portable "TZ=PST8PDT,M4.1.0,M10.5.0"
112333         instead of "TZ=America/Vancouver".  From Paul Eggert.
112335 1998-10-11  Jim Meyering  <meyering@ascend.com>
112337         * m4/mktime.m4 (jm_AM_FUNC_MKTIME): New file and macro.
112338         This adds a test for a recently added compatibility fix for mktime.c.
112339         * m4/jm-mktime.m4: Require jm_AM_FUNC_MKTIME, not AM_FUNC_MKTIME.
112341 1998-09-27  Jim Meyering  <meyering@ascend.com>
112343         * m4/jm-macros.m4 (jm_MACROS): Require jm_FUNC_FNMATCH.
112345         * m4/fnmatch.m4 (jm_FUNC_FNMATCH): New file/macro.  Extracted from
112346         ../configure.in, including a change from Gordon Matzigkeit to allow
112347         cross-compiling for the Hurd.
112349         * m4/glibc.m4: New file/macro to test for the GNU C Library
112350         versions 1 and 2.  From Gordon Matzigkeit.
112351         Indent.
112353 1998-09-21  Jim Meyering  <meyering@ascend.com>
112355         * m4/chown.m4: Declare locals: before, after.  From Andries Brouwer.
112357 1998-08-18  Paul Eggert  <eggert@twinsun.com>
112359         Port nanosecond-resolution times to UnixWare 2.1.2 and
112360         pedantic Solaris 2.6.
112362         * m4/st_mtim.m4 (AC_STRUCT_ST_MTIM_NSEC): Renamed from
112363         AC_STRUCT_ST_MTIM.
112364         * m4/st_mtim.m4 (AC_STRUCT_ST_MTIM_NSEC):
112365         Generate name of ns member, instead of just 1 or undef.
112366         Allow for UnixWare 2.1.2 and Solaris 2.6 if in pedantic mode.
112368 1998-08-15  Jim Meyering  <meyering@ascend.com>
112370         * m4/ssize_t.m4 (jm_TYPE_SSIZE_T): Remove file.
112371         * m4/check-type.m4: New file.  Replacement for AC_CHECK_TYPE.
112372         * m4/jm-macros.m4: Use the new AC_CHECK_TYPE(ssize_t, int)
112373         instead of jm_TYPE_SSIZE_T.
112375 1998-08-12  Jim Meyering  <meyering@ascend.com>
112377         * m4/st_dm_mode.m4: New file.  From Johan Danielsson.
112379 1998-08-02  Jim Meyering  <meyering@ascend.com>
112381         * m4/st_mtim.m4: Use hack to avoid having to put #undef HAVE_ST_MTIM
112382         in acconfig.h manually.
112384 1998-07-31  Paul Eggert  <eggert@twinsun.com>
112386         * m4/st_mtim.m4: New file.
112388 1998-07-28  Jim Meyering  <meyering@ascend.com>
112390         * m4/utimes.m4: Undef stat.
112392 1998-07-25  Jim Meyering  <meyering@ascend.com>
112394         * m4/utime.m4 (jm_FUNC_UTIME): New file and macro.
112395         * m4/utimes.m4 (jm_FUNC_UTIMES_NULL): New file and macro.
112397 1998-07-09  Manfred Hollstein  <manfred@s-direktnet.de>
112399         * m4/chown.m4 (jm_FUNC_CHOWN): Add a check to verify that the
112400         uid and gid actually remain unchanged.
112402 1998-07-07  Jim Meyering  <meyering@ascend.com>
112404         * m4/jm-glibc-io.m4: Remove fclose_unlocked.
112406 1998-07-04  Jim Meyering  <meyering@ascend.com>
112408         * m4/regex.m4: Use syscmd, ifelse, and sysval.  Mainly as an exercise
112409         to prove that this macro can be used in packages without regex.c.
112411 1998-07-04  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
112413         * m4/gettext.m4 (AM_WITH_NLS): Remove intl/libintl.h if <libintl.h>
112414         is to be used.
112416 1998-07-03  Jim Meyering  <meyering@ascend.com>
112418         * m4/gettext.m4: Add -lintl if it's found to be necessary.
112420         * m4/gettext.m4: New file -- from gettext-0.10.35.
112421         * m4/lcmessage.m4: Likewise.
112422         * m4/progtest.m4: Likewise.
112424         * m4/regex.m4 (jm_WITH_REGEX): New file and macro.
112425         * m4/jm-macros.m4: Require the new macro.
112427 1998-06-29  Jim Meyering  <meyering@ascend.com>
112429         * m4/fstypename.m4: Include sys/param.h.  NetBSD 1.3.1 requires this
112430         for the definition of NGROUPS (used in a system header included
112431         by sys/mount.h).
112433 1998-06-28  Jim Meyering  <meyering@ascend.com>
112435         * m4/ls-mntd-fs.m4: New file.
112436         * m4/fstypename.m4: New file.
112438         * m4/jm-macros.m4: Require the new macro.
112439         * m4/jm-glibc-io.m4: New file.
112441 1998-05-19  Jim Meyering  <meyering@ascend.com>
112443         * m4/jm-macros.m4: Add jm_FUNC_LCHOWN.
112444         * m4/lchown.m4: New file.
112446         * m4/Makefile.am.in: New file.
112447         * m4/Makefile.am (Makefile.am): Depend on Makefile.am.in.
112449 1998-05-14  Jim Meyering  <meyering@ascend.com>
112451         * m4/Makefile.am (EXTRA_DIST): Add them.
112452         * m4/jm-macros.m4: New file.
112453         * m4/utimbuf.m4: New file.
112455 1998-05-12  Jim Meyering  <meyering@ascend.com>
112457         * m4/Makefile.am (EXTRA_DIST): Add isc-posix.m4.
112459 1998-05-11  Jim Meyering  <meyering@ascend.com>
112461         * m4/isc-posix.m4: New file.
112463 1998-05-10  Jim Meyering  <meyering@ascend.com>
112465         * m4/jm-mktime.m4: Use AM_FUNC_MKTIME, now that it's up to date.
112467 1998-05-09  Jim Meyering  <meyering@ascend.com>
112469         * m4/Makefile.am (EXTRA_DIST): Add ssize_t.m4.
112470         (EXTRA_DIST): Remove mktime.m4, now that the new version is included
112471         with automake.
112473         * m4/ssize_t.m4: New file.
112474         * m4/mktime.m4: Remove file -- the new automake has this now.
112476 1998-04-26  Jim Meyering  <meyering@ascend.com>
112478         * m4/assert.m4: New file.
112479         * m4/Makefile.am (EXTRA_DIST): Add assert.m4.
112481 1998-04-05  Jim Meyering  <meyering@ascend.com>
112483         * m4/prereq.m4 (jm_PREREQ_REGEX): New macro.
112484         (jm_PREREQ): Use it here.
112486 1998-03-23  Jim Meyering  <meyering@eng.ascend.com>
112488         * m4/inttypes_h.m4: Kludges so I don't have to add HAVE_INTTYPES_H
112489         in acconfig.h.
112491 1998-03-15  Jim Meyering  <meyering@eng.ascend.com>
112493         * m4/prereq.m4: New file.
112494         * m4/error.m4: New file.
112495         * m4/Makefile.am (EXTRA_DIST): Add error.m4 and prereq.m4.
112497 1998-02-07  Jim Meyering  <meyering@eng.ascend.com>
112499         * m4/getline.m4: Don't set am_cv_func_working_getline before the
112500         cache-check for the same variable -- that defeated the purpose of
112501         the test; the test program was never run.  This was a problem only
112502         on systems with losing getline functions -- HP-UX 10.20 is one.
112503         Reported by Bjorn Helgaas.
112505 1998-02-06  Jim Meyering  <meyering@eng.ascend.com>
112507         * m4/Makefile.am (EXTRA_DIST): Add perl.m4.
112509 1998-01-10  Jim Meyering  <meyering@na-net.ornl.gov>
112511         * m4/Makefile.am (EXTRA_DIST): Add const.m4.
112513         * m4/const.m4: New file.  Use an initializer in this declaration
112514         typedef int charset[2]; const charset x;
112515         Reported by Bob Glickstein.
112517 1997-12-21  Jim Meyering  <meyering@na-net.ornl.gov>
112519         * m4/chown.m4: Fix reversed types on -1 args to chown.
112520         From Kaveh Ghazi.
112522 1997-12-14  Jim Meyering  <meyering@na-net.ornl.gov>
112524         * m4/check-decl.m4: s/DECLARATION_/DECL_/g.
112525         Add lseek and memchr.
112527         * m4/decl.m4: s/HAVE_DECLARATION_/HAVE_DECL_/g.
112528         T.E.Dickey <dickey@clark.net> said that some older preprocessors
112529         have a 20-character limit on names.
112531 1997-11-30  Jim Meyering  <meyering@na-net.ornl.gov>
112533         * m4/inttypes_h.m4: New file.
112534         * m4/uintmax_t.m4: New file.
112535         * m4/Makefile.am (EXTRA_DIST): Add inttypes_h.m4 and uintmax_t.m4.
112538         -----
112540         Local Variables:
112541         coding: utf-8
112542         End:
112544         Copyright (C) 1997-2017 Free Software Foundation, Inc.
112546         Copying and distribution of this file, with or without
112547         modification, are permitted provided the copyright notice
112548         and this notice are preserved.