1 2010-01-24 Bruno Haible <bruno@clisp.org>
3 Tests for module 'remainder'.
4 * modules/remainder-tests: New file.
5 * tests/test-remainder.c: New file.
7 Tests for module 'pow'.
8 * modules/pow-tests: New file.
9 * tests/test-pow.c: New file.
11 Tests for module 'nextafter'.
12 * modules/nextafter-tests: New file.
13 * tests/test-nextafter.c: New file.
15 Tests for module 'modf'.
16 * modules/modf-tests: New file.
17 * tests/test-modf.c: New file.
19 Tests for module 'logb'.
20 * modules/logb-tests: New file.
21 * tests/test-logb.c: New file.
23 Tests for module 'log1p'.
24 * modules/log1p-tests: New file.
25 * tests/test-log1p.c: New file.
27 Tests for module 'log10'.
28 * modules/log10-tests: New file.
29 * tests/test-log10.c: New file.
31 Tests for module 'log'.
32 * modules/log-tests: New file.
33 * tests/test-log.c: New file.
35 Tests for module 'lgamma'.
36 * modules/lgamma-tests: New file.
37 * tests/test-lgamma.c: New file.
39 Tests for module 'ldexp'.
40 * modules/ldexp-tests: New file.
41 * tests/test-ldexp.c: New file.
43 Tests for module 'jn'.
44 * modules/jn-tests: New file.
45 * tests/test-jn.c: New file.
47 Tests for module 'j1'.
48 * modules/j1-tests: New file.
49 * tests/test-j1.c: New file.
51 Tests for module 'j0'.
52 * modules/j0-tests: New file.
53 * tests/test-j0.c: New file.
55 Tests for module 'hypot'.
56 * modules/hypot-tests: New file.
57 * tests/test-hypot.c: New file.
59 Tests for module 'fmod'.
60 * modules/fmod-tests: New file.
61 * tests/test-fmod.c: New file.
63 Tests for module 'fabs'.
64 * modules/fabs-tests: New file.
65 * tests/test-fabs.c: New file.
67 Tests for module 'exp'.
68 * modules/exp-tests: New file.
69 * tests/test-exp.c: New file.
71 Tests for module 'erfc'.
72 * modules/erfc-tests: New file.
73 * tests/test-erfc.c: New file.
75 Tests for module 'erf'.
76 * modules/erf-tests: New file.
77 * tests/test-erf.c: New file.
79 Tests for module 'cosh'.
80 * modules/cosh-tests: New file.
81 * tests/test-cosh.c: New file.
83 Tests for module 'cos'.
84 * modules/cos-tests: New file.
85 * tests/test-cos.c: New file.
87 Tests for module 'copysign'.
88 * modules/copysign-tests: New file.
89 * tests/test-copysign.c: New file.
91 Tests for module 'cbrt'.
92 * modules/cbrt-tests: New file.
93 * tests/test-cbrt.c: New file.
95 Tests for module 'atan2'.
96 * modules/atan2-tests: New file.
97 * tests/test-atan2.c: New file.
99 Tests for module 'atan'.
100 * modules/atan-tests: New file.
101 * tests/test-atan.c: New file.
103 Tests for module 'asin'.
104 * modules/asin-tests: New file.
105 * tests/test-asin.c: New file.
107 Tests for module 'acos'.
108 * modules/acos-tests: New file.
109 * tests/test-acos.c: New file.
111 2010-01-24 Bruno Haible <bruno@clisp.org>
113 Fix tests for common <math.h> functions.
114 * m4/mathfunc.m4 (gl_MATHFUNC): Take two additional parameters. Use a
115 code snippet that references the function pointer, rather than merely
116 calling the function. Substitute the FUNC_LIBM variable.
117 * m4/sqrt.m4 (gl_FUNC_SQRT): Update gl_MATHFUNC invocation.
118 * modules/acos (configure.ac): Likewise.
119 * modules/asin (configure.ac): Likewise.
120 * modules/atan (configure.ac): Likewise.
121 * modules/atan2 (configure.ac): Likewise.
122 * modules/cbrt (configure.ac): Likewise.
123 * modules/copysign (configure.ac): Likewise.
124 * modules/cos (configure.ac): Likewise.
125 * modules/cosh (configure.ac): Likewise.
126 * modules/erf (configure.ac): Likewise.
127 * modules/erfc (configure.ac): Likewise.
128 * modules/exp (configure.ac): Likewise.
129 * modules/fabs (configure.ac): Likewise.
130 * modules/fmod (configure.ac): Likewise.
131 * modules/hypot (configure.ac): Likewise.
132 * modules/j0 (configure.ac): Likewise.
133 * modules/j1 (configure.ac): Likewise.
134 * modules/jn (configure.ac): Likewise.
135 * modules/ldexp (configure.ac): Likewise.
136 * modules/lgamma (configure.ac): Likewise.
137 * modules/log (configure.ac): Likewise.
138 * modules/log10 (configure.ac): Likewise.
139 * modules/log1p (configure.ac): Likewise.
140 * modules/logb (configure.ac): Likewise.
141 * modules/modf (configure.ac): Likewise.
142 * modules/nextafter (configure.ac): Likewise.
143 * modules/pow (configure.ac): Likewise.
144 * modules/remainder (configure.ac): Likewise.
145 * modules/rint (configure.ac): Likewise.
146 * modules/sin (configure.ac): Likewise.
147 * modules/sinh (configure.ac): Likewise.
148 * modules/tan (configure.ac): Likewise.
149 * modules/tanh (configure.ac): Likewise.
150 * modules/y0 (configure.ac): Likewise.
151 * modules/y1 (configure.ac): Likewise.
152 * modules/yn (configure.ac): Likewise.
154 2010-01-24 Bruno Haible <bruno@clisp.org>
156 Tests: Defeat inlining of math functions by GCC >= 4.3.0.
157 * tests/test-acosl.c (x): New variable.
158 (main): Store argument in x and fetch it from x.
159 * tests/test-asinl.c (x): New variable.
160 (main): Store argument in x and fetch it from x.
161 * tests/test-atanl.c (x): New variable.
162 (main): Store argument in x and fetch it from x.
163 * tests/test-cosl.c (x): New variable.
164 (main): Store argument in x and fetch it from x.
165 * tests/test-expl.c (x): New variable.
166 (main): Store argument in x and fetch it from x.
167 * tests/test-logl.c (x): New variable.
168 (main): Store argument in x and fetch it from x.
169 * tests/test-sinl.c (x): New variable.
170 (main): Store argument in x and fetch it from x.
171 * tests/test-sqrtl.c (x): New variable.
172 (main): Store argument in x and fetch it from x.
173 * tests/test-tanl.c (x): New variable.
174 (main): Store argument in x and fetch it from x.
176 2010-01-24 Bruno Haible <bruno@clisp.org>
178 Provide EXEEXT and srcdir in TESTS_ENVIRONMENT by default.
179 * gnulib-tool (func_emit_tests_Makefile_am): Add EXEEXT and srcdir
180 assignments to the initial TESTS_ENVIRONMENT.
181 * doc/gnulib.texi (Unit test modules): Document it.
182 * modules/acl-tests (Makefile.am): Drop EXEEXT assignment from
184 * modules/btowc-tests (Makefile.am): Likewise.
185 * modules/c-stack-tests (Makefile.am): Likewise.
186 * modules/c-strcase-tests (Makefile.am): Likewise.
187 * modules/copy-file-tests (Makefile.am): Likewise.
188 * modules/mbmemcasecmp-tests (Makefile.am): Likewise.
189 * modules/mbmemcasecoll-tests (Makefile.am): Likewise.
190 * modules/mbrtowc-tests (Makefile.am): Likewise.
191 * modules/mbscasecmp-tests (Makefile.am): Likewise.
192 * modules/mbscasestr-tests (Makefile.am): Likewise.
193 * modules/mbschr-tests (Makefile.am): Likewise.
194 * modules/mbscspn-tests (Makefile.am): Likewise.
195 * modules/mbsinit-tests (Makefile.am): Likewise.
196 * modules/mbsncasecmp-tests (Makefile.am): Likewise.
197 * modules/mbsnrtowcs-tests (Makefile.am): Likewise.
198 * modules/mbspbrk-tests (Makefile.am): Likewise.
199 * modules/mbspcasecmp-tests (Makefile.am): Likewise.
200 * modules/mbsrchr-tests (Makefile.am): Likewise.
201 * modules/mbsrtowcs-tests (Makefile.am): Likewise.
202 * modules/mbsspn-tests (Makefile.am): Likewise.
203 * modules/mbsstr-tests (Makefile.am): Likewise.
204 * modules/nl_langinfo-tests (Makefile.am): Likewise.
205 * modules/unicase/locale-language-tests (Makefile.am): Likewise.
206 * modules/unistdio/u16-vasnprintf-tests (Makefile.am): Likewise.
207 * modules/unistdio/u32-vasnprintf-tests (Makefile.am): Likewise.
208 * modules/unistdio/u8-vasnprintf-tests (Makefile.am): Likewise.
209 * modules/unistdio/ulc-vasnprintf-tests (Makefile.am): Likewise.
210 * modules/uniwbrk/ulc-wordbreaks-tests (Makefile.am): Likewise.
211 * modules/vasnprintf-posix-tests (Makefile.am): Likewise.
212 * modules/wcrtomb-tests (Makefile.am): Likewise.
213 * modules/wcsnrtombs-tests (Makefile.am): Likewise.
214 * modules/wcsrtombs-tests (Makefile.am): Likewise.
215 * modules/quotearg-tests (Makefile.am): Drop EXEEXT and srcdir
216 assignments from TESTS_ENVIRONMENT.
217 * modules/argp-tests (Makefile.am): Drop TESTS_ENVIRONMENT
219 * modules/argp-version-etc-tests (Makefile.am): Likewise.
220 * modules/atexit-tests (Makefile.am): Likewise.
221 * modules/binary-io-tests (Makefile.am): Likewise.
222 * modules/closein-tests (Makefile.am): Likewise.
223 * modules/dprintf-posix-tests (Makefile.am): Likewise.
224 * modules/exclude-tests (Makefile.am): Likewise.
225 * modules/fflush-tests (Makefile.am): Likewise.
226 * modules/fpending-tests (Makefile.am): Likewise.
227 * modules/fprintf-posix-tests (Makefile.am): Likewise.
228 * modules/freadahead-tests (Makefile.am): Likewise.
229 * modules/freadptr-tests (Makefile.am): Likewise.
230 * modules/freadseek-tests (Makefile.am): Likewise.
231 * modules/fseek-tests (Makefile.am): Likewise.
232 * modules/fseeko-tests (Makefile.am): Likewise.
233 * modules/ftell-tests (Makefile.am): Likewise.
234 * modules/ftello-tests (Makefile.am): Likewise.
235 * modules/idpriv-drop-tests (Makefile.am): Likewise.
236 * modules/idpriv-droptemp-tests (Makefile.am): Likewise.
237 * modules/lseek-tests (Makefile.am): Likewise.
238 * modules/parse-duration-tests (Makefile.am): Likewise.
239 * modules/perror-tests (Makefile.am): Likewise.
240 * modules/pipe-filter-gi-tests (Makefile.am): Likewise.
241 * modules/pipe-filter-ii-tests (Makefile.am): Likewise.
242 * modules/pipe-tests (Makefile.am): Likewise.
243 * modules/pread-tests (Makefile.am): Likewise.
244 * modules/printf-posix-tests (Makefile.am): Likewise.
245 * modules/select-tests (Makefile.am): Likewise.
246 * modules/sigpipe-tests (Makefile.am): Likewise.
247 * modules/tsearch-tests (Makefile.am): Likewise.
248 * modules/unicase/ulc-casecmp-tests (Makefile.am): Likewise.
249 * modules/unicase/ulc-casecoll-tests (Makefile.am): Likewise.
250 * modules/uniname/uniname-tests (Makefile.am): Likewise.
251 * modules/uniwidth/width-tests (Makefile.am): Likewise.
252 * modules/vdprintf-posix-tests (Makefile.am): Likewise.
253 * modules/version-etc-tests (Makefile.am): Likewise.
254 * modules/vfprintf-posix-tests (Makefile.am): Likewise.
255 * modules/vprintf-posix-tests (Makefile.am): Likewise.
256 * modules/xalloc-die-tests (Makefile.am): Likewise.
257 * modules/xprintf-posix-tests (Makefile.am): Likewise.
258 * modules/xstrtoimax-tests (Makefile.am): Likewise.
259 * modules/xstrtol-tests (Makefile.am): Likewise.
260 * modules/xstrtoumax-tests (Makefile.am): Likewise.
261 * modules/yesno-tests (Makefile.am): Likewise.
262 Suggested by Jim Meyering.
264 2010-01-24 Bruno Haible <bruno@clisp.org>
267 * doc/gnulib.texi (Writing modules): New chapter.
268 (Miscellaneous Notes): Move sections "Comments" and "Header files" to
271 2010-01-24 Jim Meyering <meyering@redhat.com>
273 maint.mk: do not prepend "./" after filtering
274 * top/maint.mk (_prepend_srcdir_prefix): New variable
275 (VC_LIST_EXCEPT): Use it to avoid prepending (post-filter)
276 "./" when $(srcdir) is ".".
278 define STREQ(a,b) consistently, removing useless parentheses
279 #define STREQ(a, b) (strcmp ((a), (b)) == 0) is over-parenthesized,
280 since the only risk is that "a" or "b" contains an unparenthesized
281 comma, but if either did that, STREQ would have 3 or more arguments.
282 Hence, #define STREQ(a, b) (strcmp (a, b) == 0) is better.
283 * lib/fts.c (STREQ): Remove unnecessary parentheses.
284 * lib/hash-triple.c (STREQ): Likewise.
285 * tests/test-argv-iter.c (STREQ): Use a and b, not s1 and s2.
286 * lib/getugroups.c (STREQ): Likewise.
288 2010-01-23 Jim Meyering <meyering@redhat.com>
290 maint.mk: fix syntax-check in a non-srcdir build directory
291 * top/maint.mk (_dot_escaped_srcdir): Remove erroneous backslash,
292 introduced in my 2010-01-21 commit, a6da6c45. Reported by Eric Blake.
294 2010-01-22 Jim Meyering <meyering@redhat.com>
296 userspec: add unit tests
297 * tests/test-userspec.c: New file.
298 * modules/userspec-tests: Likewise.
300 2010-01-21 Jim Meyering <meyering@redhat.com>
302 maint.mk: handle source file names containing "." robustly
303 * top/maint.mk (_dot_escaped_srcdir): Define.
304 (VC_LIST): Use it in LHS of sed substitution.
306 2010-01-21 Jiri Denemark <jdenemar@redhat.com>
308 maint.mk: fix VC_LIST_EXCEPT for srcdir != builddir
309 * top/maint.mk (VC_LIST_EXCEPT): Preprocess the output of
310 $(VC_LIST) to remove a prefix of '$(srcdir)/', so that it works
311 from a non-srcdir build.
313 2010-01-20 Eric Blake <ebb9@byu.net>
315 warn-on-use: use instead of link-warning
316 * modules/stdio (Depends-on, Makefile.am): Drop link-warning.
317 * modules/unistd (Depends-on, Makefile.am): Likewise.
318 * modules/arpa_inet (Depends-on): Replace link-warning with
320 (Makefile.am): Update rules accordingly.
321 * modules/ctype (Depends-on, Makefile.am): Likewise.
322 * modules/dirent (Depends-on, Makefile.am): Likewise.
323 * modules/fcntl-h (Depends-on, Makefile.am): Likewise.
324 * modules/inttypes (Depends-on, Makefile.am): Likewise.
325 * modules/langinfo (Depends-on, Makefile.am): Likewise.
326 * modules/locale (Depends-on, Makefile.am): Likewise.
327 * modules/math (Depends-on, Makefile.am): Likewise.
328 * modules/search (Depends-on, Makefile.am): Likewise.
329 * modules/signal (Depends-on, Makefile.am): Likewise.
330 * modules/spawn (Depends-on, Makefile.am): Likewise.
331 * modules/stdlib (Depends-on, Makefile.am): Likewise.
332 * modules/string (Depends-on, Makefile.am): Likewise.
333 * modules/strings (Depends-on, Makefile.am): Likewise.
334 * modules/sys_file (Depends-on, Makefile.am): Likewise.
335 * modules/sys_ioctl (Depends-on, Makefile.am): Likewise.
336 * modules/sys_select (Depends-on, Makefile.am): Likewise.
337 * modules/sys_socket (Depends-on, Makefile.am): Likewise.
338 * modules/sys_stat (Depends-on, Makefile.am): Likewise.
339 * modules/sys_times (Depends-on, Makefile.am): Likewise.
340 * modules/sys_utsname (Depends-on, Makefile.am): Likewise.
341 * modules/wchar (Depends-on, Makefile.am): Likewise.
342 * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Check which functions
344 * m4/ctype.m4 (gl_CTYPE_H): Likewise.
345 * m4/dirent_h.m4 (gl_DIRENT_H): Likewise.
346 * m4/fcntl_h.m4 (gl_FCNTL_H): Likewise.
347 * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
348 * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
349 * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
350 * m4/math_h.m4 (gl_MATH_H): Likewise.
351 * m4/search_h.m4 (gl_SEARCH_H): Likewise.
352 * m4/signal_h.m4 (gl_SIGNAL_H): Likewise.
353 * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
354 * m4/stdio_h.m4 (gl_STDIO_H): Likewise.
355 * m4/stdlib_h.m4 (gl_STDLIB_H): Likewise.
356 * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Likewise.
357 * m4/strings_h.m4 (gl_HEADER_STRINGS_H_BODY): Likewise.
358 * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H_DEFAULTS): Likewise.
359 * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Likewise.
360 * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
361 * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
362 * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Likewise.
363 * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
364 * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
365 * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
366 * m4/wchar.m4 (gl_WCHAR_H): Likewise.
367 * lib/arpa_inet.in.h: Use _GL_WARN_ON_USE instead of
369 * lib/ctype.in.h: Likewise.
370 * lib/dirent.in.h: Likewise.
371 * lib/fcntl.in.h: Likewise.
372 * lib/inttypes.in.h: Likewise.
373 * lib/langinfo.in.h: Likewise.
374 * lib/locale.in.h: Likewise.
375 * lib/math.in.h: Likewise.
376 * lib/search.in.h: Likewise.
377 * lib/signal.in.h: Likewise.
378 * lib/spawn.in.h: Likewise.
379 * lib/stdio.in.h: Likewise.
380 * lib/stdlib.in.h: Likewise.
381 * lib/string.in.h: Likewise.
382 * lib/strings.in.h: Likewise.
383 * lib/sys_file.in.h: Likewise.
384 * lib/sys_ioctl.in.h: Likewise.
385 * lib/sys_select.in.h: Likewise.
386 * lib/sys_socket.in.h: Likewise.
387 * lib/sys_stat.in.h: Likewise.
388 * lib/sys_times.in.h: Likewise.
389 * lib/sys_utsname.in.h: Likewise.
390 * lib/unistd.in.h: Likewise.
391 * lib/wchar.in.h: Likewise.
393 2010-01-20 Bruno Haible <bruno@clisp.org>
396 * m4/isnan.m4 (gl_ISNAN): Avoid duplicate -lm in $ISNAN_LIBM.
397 * m4/round.m4 (gl_FUNC_ROUND): Avoid duplicate -lm in $ROUND_LIBM.
398 * m4/roundf.m4 (gl_FUNC_ROUNDF): Avoid duplicate -lm in $ROUNDF_LIBM.
399 * m4/roundl.m4 (gl_FUNC_ROUNDL): Avoid duplicate -lm in $ROUNDL_LIBM.
400 * m4/acosl.m4 (gl_FUNC_ACOSL): Avoid duplicate -lm in $ACOSL_LIBM.
401 * m4/cosl.m4 (gl_FUNC_COSL): Avoid duplicate -lm in $COSL_LIBM.
402 * m4/logl.m4 (gl_FUNC_LOGL): Avoid duplicate -lm in $LOGL_LIBM.
403 * m4/sinl.m4 (gl_FUNC_SINL): Avoid duplicate -lm in $SINL_LIBM.
404 * m4/sqrtl.m4 (gl_FUNC_SQRTL): Avoid duplicate -lm in $SQRTL_LIBM.
405 * m4/tanl.m4 (gl_FUNC_TANL): Avoid duplicate -lm in $TANL_LIBM.
406 * m4/asinl.m4 (gl_FUNC_ASINL): Same change, for consistency.
407 * m4/atanl.m4 (gl_FUNC_ATANL): Likewise.
408 Reported by Paolo Bonzini.
410 2010-01-19 Bruno Haible <bruno@clisp.org>
412 langinfo, nl_langinfo: Relicense under LGPLv2+.
413 * modules/langinfo (License): Change to LGPLv2+.
414 * modules/nl_langinfo (License): Likewise.
415 Patch by David Lutterkort <lutter@redhat.com>.
417 2010-01-19 Bruno Haible <bruno@clisp.org>
419 Avoid compilation error with cc on OSF/1 5.1.
420 * lib/fcntl.in.h: Include <unistd.h> after the #include_next <fcntl.h>
421 statement, not before.
422 Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
424 2010-01-18 Bruno Haible <bruno@clisp.org>
426 Avoid a link error due to the __printf__ symbol.
427 * lib/stdio.in.h (__attribute__): Define to empty also for gcc 2.5.x
429 (__format__, __printf__): Remove definitions.
430 * lib/argp-fmtstream.h: Likewise.
431 * lib/argp.h: Likewise.
432 * lib/error.h: Likewise.
433 * lib/vasnprintf.h: Likewise.
434 * lib/xprintf.h: Likewise.
435 * lib/xvasprintf.h: Likewise.
436 Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
438 2010-01-18 Bruno Haible <bruno@clisp.org>
440 Tests for module 'tanl'.
441 * modules/tanl-tests: New file.
442 * tests/test-tanl.c: New file.
444 Tests for module 'sqrtl'.
445 * modules/sqrtl-tests: New file.
446 * tests/test-sqrtl.c: New file.
448 Tests for module 'sinl'.
449 * modules/sinl-tests: New file.
450 * tests/test-sinl.c: New file.
452 Tests for module 'logl'.
453 * modules/logl-tests: New file.
454 * tests/test-logl.c: New file.
456 Tests for module 'expl'.
457 * modules/expl-tests: New file.
458 * tests/test-expl.c: New file.
460 Tests for module 'cosl'.
461 * modules/cosl-tests: New file.
462 * tests/test-cosl.c: New file.
464 Tests for module 'atanl'.
465 * modules/atanl-tests: New file.
466 * tests/test-atanl.c: New file.
468 Tests for module 'asinl'.
469 * modules/asinl-tests: New file.
470 * tests/test-asinl.c: New file.
472 Tests for module 'acosl'.
473 * modules/acosl-tests: New file.
474 * tests/test-acosl.c: New file.
476 New modules acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl.
477 * lib/math.in.h (acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl,
478 tanl): Use the standard gnulib idiom.
479 * lib/cosl.c: Don't include trigl.c and sincosl.c.
480 * lib/sinl.c: Likewise.
481 * lib/tanl.c: Don't include trigl.c.
482 (kernel_tanl): Make static.
483 * lib/sincosl.c: Include trigl.h first.
484 * lib/trigl.c: Likewise.
485 * m4/acosl.m4: New file.
486 * m4/asinl.m4: New file.
487 * m4/atanl.m4: New file.
488 * m4/cosl.m4: New file.
489 * m4/expl.m4: New file.
490 * m4/logl.m4: New file.
491 * m4/sinl.m4: New file.
492 * m4/sqrtl.m4: New file.
493 * m4/tanl.m4: New file.
494 * m4/mathl.m4: Remove file.
495 * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_* and HAVE_*
496 variables for acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl.
497 Don't initialize GNULIB_MATHL.
498 * modules/acosl: New file.
499 * modules/asinl: New file.
500 * modules/atanl: New file.
501 * modules/cosl: New file.
502 * modules/expl: New file.
503 * modules/logl: New file.
504 * modules/sinl: New file.
505 * modules/sqrtl: New file.
506 * modules/tanl: New file.
507 * modules/math (Makefile.am): Substitute GNULIB_* and HAVE_* variables
508 for acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl. Don't
509 substitute GNULIB_MATHL.
510 * modules/mathl: Rewritten.
511 * doc/posix-functions/acosl.texi: Mention the 'acosl' module.
512 * doc/posix-functions/asinl.texi: Mention the 'asinl' module.
513 * doc/posix-functions/atanl.texi: Mention the 'atanl' module.
514 * doc/posix-functions/cosl.texi: Mention the 'cosl' module.
515 * doc/posix-functions/expl.texi: Mention the 'expl' module.
516 * doc/posix-functions/logl.texi: Mention the 'logl' module.
517 * doc/posix-functions/sinl.texi: Mention the 'sinl' module.
518 * doc/posix-functions/sqrtl.texi: Mention the 'sqrtl' module.
519 * doc/posix-functions/tanl.texi: Mention the 'tanl' module.
521 2010-01-18 Bruno Haible <bruno@clisp.org>
523 sqrt: Make gl_FUNC_SQRT requirable.
524 * m4/sqrt.m4: New file.
525 * modules/sqrt (Files): Add it.
526 (configure.ac): Invoke gl_FUNC_SQRT.
528 2010-01-18 Bruno Haible <bruno@clisp.org>
530 New modules for common <math.h> functions.
531 * m4/mathfunc.m4: New file.
532 * modules/acos: New file.
533 * modules/asin: New file.
534 * modules/atan: New file.
535 * modules/atan2: New file.
536 * modules/cbrt: New file.
537 * modules/copysign: New file.
538 * modules/cos: New file.
539 * modules/cosh: New file.
540 * modules/erf: New file.
541 * modules/erfc: New file.
542 * modules/exp: New file.
543 * modules/fabs: New file.
544 * modules/fmod: New file.
545 * modules/hypot: New file.
546 * modules/j0: New file.
547 * modules/j1: New file.
548 * modules/jn: New file.
549 * modules/ldexp: New file.
550 * modules/lgamma: New file.
551 * modules/log: New file.
552 * modules/log10: New file.
553 * modules/log1p: New file.
554 * modules/logb: New file.
555 * modules/modf: New file.
556 * modules/nextafter: New file.
557 * modules/pow: New file.
558 * modules/remainder: New file.
559 * modules/rint: New file.
560 * modules/sin: New file.
561 * modules/sinh: New file.
562 * modules/sqrt: New file.
563 * modules/tan: New file.
564 * modules/tanh: New file.
565 * modules/y0: New file.
566 * modules/y1: New file.
567 * modules/yn: New file.
568 * doc/posix-functions/acos.texi: Mention the 'acos' module.
569 * doc/posix-functions/asin.texi: Mention the 'asin' module.
570 * doc/posix-functions/atan.texi: Mention the 'atan' module.
571 * doc/posix-functions/atan2.texi: Mention the 'atan2' module.
572 * doc/posix-functions/cbrt.texi: Mention the 'cbrt' module.
573 * doc/posix-functions/copysign.texi: Mention the 'copysign' module.
574 * doc/posix-functions/cos.texi: Mention the 'cos' module.
575 * doc/posix-functions/cosh.texi: Mention the 'cosh' module.
576 * doc/posix-functions/erf.texi: Mention the 'erf' module.
577 * doc/posix-functions/erfc.texi: Mention the 'erfc' module.
578 * doc/posix-functions/exp.texi: Mention the 'exp' module.
579 * doc/posix-functions/fabs.texi: Mention the 'fabs' module.
580 * doc/posix-functions/fmod.texi: Mention the 'fmod' module.
581 * doc/posix-functions/hypot.texi: Mention the 'hypot' module.
582 * doc/posix-functions/j0.texi: Mention the 'j0' module.
583 * doc/posix-functions/j1.texi: Mention the 'j1' module.
584 * doc/posix-functions/jn.texi: Mention the 'jn' module.
585 * doc/posix-functions/ldexp.texi: Mention the 'ldexp' module.
586 * doc/posix-functions/lgamma.texi: Mention the 'lgamma' module.
587 * doc/posix-functions/log.texi: Mention the 'log' module.
588 * doc/posix-functions/log10.texi: Mention the 'log10' module.
589 * doc/posix-functions/log1p.texi: Mention the 'log1p' module.
590 * doc/posix-functions/logb.texi: Mention the 'logb' module.
591 * doc/posix-functions/modf.texi: Mention the 'modf' module.
592 * doc/posix-functions/nextafter.texi: Mention the 'nextafter' module.
593 * doc/posix-functions/pow.texi: Mention the 'pow' module.
594 * doc/posix-functions/remainder.texi: Mention the 'remainder' module.
595 * doc/posix-functions/rint.texi: Mention the 'rint' module.
596 * doc/posix-functions/sin.texi: Mention the 'sin' module.
597 * doc/posix-functions/sinh.texi: Mention the 'sinh' module.
598 * doc/posix-functions/sqrt.texi: Mention the 'sqrt' module.
599 * doc/posix-functions/tan.texi: Mention the 'tan' module.
600 * doc/posix-functions/tanh.texi: Mention the 'tanh' module.
601 * doc/posix-functions/y0.texi: Mention the 'y0' module.
602 * doc/posix-functions/y1.texi: Mention the 'y1' module.
603 * doc/posix-functions/yn.texi: Mention the 'yn' module.
605 2010-01-18 Jim Meyering <meyering@redhat.com>
607 ignore-value: relax license to LGPLv2+
608 * modules/ignore-value (License): Relax to LGPLv2+.
610 getdate: don't leak when TZ contains two or more '"'s
611 * lib/getdate.y (get_date): Don't leak a copy of TZ for each
612 double quote in TZ after the first one.
614 readtokens: do not leak internal token_lengths buffer
615 * lib/readtokens.c (readtokens): Free the local, lengths,
616 when the supplied "token_lengths" parameter is NULL.
618 2010-01-17 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
620 Fix a couple of missing LIBTHREAD link failures on AIX.
621 * modules/git-merge-changelog (git_merge_changelog_LDADD): Add
623 * modules/strsignal-tests (test_strsignal_LDADD): Likewise.
625 Link test-poll against INET_PTON_LIB.
626 * modules/poll-tests (test_poll_LDADD): Add $(INET_PTON_LIB),
627 for inet_pton on Solaris 10.
629 2010-01-17 Bruno Haible <bruno@clisp.org>
631 unistdio/*-sprintf: Fix typo in module description.
632 * modules/unistdio/u8-sprintf (Depends-on): Fix typo.
633 * modules/unistdio/u8-u8-sprintf (Depends-on): Likewise.
634 * modules/unistdio/u16-sprintf (Depends-on): Likewise.
635 * modules/unistdio/u16-u16-sprintf (Depends-on): Likewise.
636 * modules/unistdio/u32-sprintf (Depends-on): Likewise.
637 * modules/unistdio/u32-u32-sprintf (Depends-on): Likewise.
638 * modules/unistdio/ulc-sprintf (Depends-on): Likewise.
639 Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
641 2010-01-17 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
643 gnulib-tool: fix filelist for AIX, HP-UX ksh.
644 * gnulib-tool (func_filter_filelist): Do not quote possibly-empty
645 variables in shell case patterns, for AIX and HP-UX ksh.
647 Split large sed scripts, for HP-UX sed.
648 * modules/stdio: Split sed scripts around 50 sed commands,
649 to avoid HP-UX limit of 99 commands, in the near future.
650 * modules/string: Likewise.
651 * modules/unistd: Likewise.
653 gnulib-tool: avoid writing in the current directory.
654 * gnulib-tool (func_emit_lib_Makefile_am)
655 (func_emit_tests_Makefile_am): Put temporary files in $tmp,
656 not in the current directory, so concurrent gnulib-tool
657 instances do not interfere.
659 2010-01-16 Jim Meyering <meyering@redhat.com>
661 doc: update users.txt
662 * users.txt: Add grep.
663 (diffutils, gzip): Update URLs.
665 2010-01-12 Bruno Haible <bruno@clisp.org>
667 posix_spawn: Avoid test failure on Cygwin.
668 * tests/test-posix_spawn3.c (DATA_FILENAME) [CYGWIN]: Use less risky
670 Reported by Simon Josefsson.
672 2010-01-12 Bruno Haible <bruno@clisp.org>
674 * tests/test-cond.c (main): When skipping the test, show the reason.
676 2010-01-12 Simon Josefsson <simon@josefsson.org>
678 * lib/striconv.c (str_cd_iconv): Avoid if before free.
680 2010-01-12 Simon Josefsson <simon@josefsson.org>
682 * top/maint.mk (VC_LIST_EXCEPT): Filter list through
683 VC_LIST_ALWAYS_EXCLUDE_REGEX.
685 2010-01-12 Eric Blake <ebb9@byu.net>
687 build: guarantee AS_VAR_IF
688 * m4/warnings.m4 (gl_WARN_ADD): Use autoconf name.
689 (gl_AS_VAR_IF): Move...
690 * m4/gnulib-common.m4 (AS_VAR_IF): ...here.
691 Reported by Simon Josefsson.
693 2010-01-12 Simon Josefsson <simon@josefsson.org>
695 * lib/stdio.in.h: Fix typo.
697 2010-01-12 Simon Josefsson <simon@josefsson.org>
699 * m4/gc.m4: Check if linking to libgcrypt also needs linking to
702 2010-01-12 Simon Josefsson <simon@josefsson.org>
704 * tests/test-xalloc-die.sh: Use $EXEEXT.
706 2010-01-12 Simon Josefsson <simon@josefsson.org>
707 Bruno Haible <bruno@clisp.org>
709 getlogin, getlogin_r: Avoid test failure.
710 * tests/test-getlogin.c: Include <stdio.h>.
711 (main): Skip the test when the function fails because stdin is not a
713 * tests/test-getlogin_r.c: Include <stdio.h>.
714 (main): Skip the test when the function fails because stdin is not a
717 2010-01-11 Eric Blake <ebb9@byu.net>
719 tests: avoid more large file warnings
720 * tests/test-fflush.c: Avoid warning about ftell use.
721 * tests/test-fseek.c: Avoid warning about fseek use.
723 2010-01-10 Bruno Haible <bruno@clisp.org>
725 nproc: Work better on Linux when /proc and /sys are not mounted.
726 * lib/nproc.c (num_processors): Use num_processors_via_affinity_mask ()
727 as lower bound when, on glibc/Linux systems,
728 sysconf (_SC_NPROCESSORS_CONF) returns 1.
729 Suggested by Pádraig Brady <P@draigbrady.com>.
730 Reported by Dmitry V. Levin <ldv@altlinux.org>.
733 * lib/nproc.c (num_processors_via_affinity_mask): New function,
734 extracted from num_processors.
735 (num_processors): Call it.
737 2010-01-11 Jim Meyering <meyering@redhat.com>
739 utimecmp: avoid new warning from upcoming gcc-4.5.0
740 * lib/utimecmp.c (BILLION): Define using #define rather than an
741 anonymous enum, to placate upcoming gcc-4.5.0's -Wenum-compare.
743 2010-01-11 Eric Blake <ebb9@byu.net>
745 math: add portability warnings for classification macros
746 * modules/math (Depends-on): Add warn-on-use.
747 (Makefile.am): Provide new substitutions.
748 * m4/math_h.m4 (gl_MATH_H): Require inline.
749 * lib/math.in.h (_GL_WARN_REAL_FLOATING_DECL)
750 (_GL_WARN_REAL_FLOATING_IMPL): New helper macros.
751 (isfinite, isinf, isnan, signbit) [GNULIB_POSIXCHECK]: Use them to
754 unistd: warn on use of environ without module
755 * modules/unistd (Depends-on): Add warn-on-use.
756 (Makefile.am): Provide new substitutions.
757 * m4/unistd_h.m4 (gl_UNISTD_H): Check for inline and environ.
758 * lib/unistd.in.h (environ): Wrap with a warning helper function.
760 stdio: warn on suspicious uses
761 * modules/stdio (Depends-on): Add warn-on-use.
762 (Makefile.am): Provide new substitutions.
763 * m4/stdio_h.m4 (gl_STDIO_H): Check for inline, ftello, and
765 * lib/stdio.in.h (gets): Always warn on use.
766 (fseek, ftell): Adjust when warnings are issued, and honor
767 _GL_NO_LARGE_FILES as a way to silence the warning.
768 * tests/test-fpurge.c [!GNULIB_FSEEK]: Use new means to squelch
769 any warning about large file offsets.
770 * tests/test-freadable.c [!GNULIB_FSEEK]: Likewise.
771 * tests/test-freading.c [!GNULIB_FSEEK]: Likewise.
772 * tests/test-fseeko.c [!GNULIB_FSEEK]: Likewise.
773 * tests/test-ftell.c [!GNULIB_FSEEK]: Likewise.
774 * tests/test-ftello.c [!GNULIB_FSEEK]: Likewise.
775 * tests/test-fwritable.c [!GNULIB_FSEEK]: Likewise.
776 * tests/test-fwriting.c [!GNULIB_FSEEK]: Likewise.
777 * tests/test-getopt.c [!GNULIB_FTELL]: Likewise.
779 warn-on-use: new module
780 * modules/warn-on-use: New file.
781 * build-aux/warn-on-use.h: Likewise.
782 * m4/warn-on-use.m4: Likewise.
783 * MODULES.html.sh (Support for building): Mention it.
785 2010-01-10 Bruno Haible <bruno@clisp.org>
787 Tests for module 'unistr/u32-strdup'.
788 * modules/unistr/u32-strdup-tests: New file.
789 * tests/unistr/test-u32-strdup.c: New file.
791 Tests for module 'unistr/u16-strdup'.
792 * modules/unistr/u16-strdup-tests: New file.
793 * tests/unistr/test-u16-strdup.c: New file.
795 Tests for module 'unistr/u8-strdup'.
796 * modules/unistr/u8-strdup-tests: New file.
797 * tests/unistr/test-u8-strdup.c: New file.
798 * tests/unistr/test-strdup.h: New file.
800 Tests for module 'unistr/u32-strncmp'.
801 * modules/unistr/u32-strncmp-tests: New file.
802 * tests/unistr/test-u32-strncmp.c: New file.
804 Tests for module 'unistr/u16-strncmp'.
805 * modules/unistr/u16-strncmp-tests: New file.
806 * tests/unistr/test-u16-strncmp.c: New file.
808 Tests for module 'unistr/u8-strncmp'.
809 * modules/unistr/u8-strncmp-tests: New file.
810 * tests/unistr/test-u8-strncmp.c: New file.
811 * tests/unistr/test-strncmp.h: New file.
813 Tests for module 'unistr/u32-strcoll'.
814 * modules/unistr/u32-strcoll-tests: New file.
815 * tests/unistr/test-u32-strcoll.c: New file.
817 Tests for module 'unistr/u16-strcoll'.
818 * modules/unistr/u16-strcoll-tests: New file.
819 * tests/unistr/test-u16-strcoll.c: New file.
821 Tests for module 'unistr/u8-strcoll'.
822 * modules/unistr/u8-strcoll-tests: New file.
823 * tests/unistr/test-u8-strcoll.c: New file.
825 Tests for module 'unistr/u32-strcmp'.
826 * modules/unistr/u32-strcmp-tests: New file.
827 * tests/unistr/test-u32-strcmp.c: New file.
828 * tests/unistr/test-u32-strcmp.h: New file.
830 Tests for module 'unistr/u16-strcmp'.
831 * modules/unistr/u16-strcmp-tests: New file.
832 * tests/unistr/test-u16-strcmp.c: New file.
833 * tests/unistr/test-u16-strcmp.h: New file.
835 Tests for module 'unistr/u8-strcmp'.
836 * modules/unistr/u8-strcmp-tests: New file.
837 * tests/unistr/test-u8-strcmp.c: New file.
838 * tests/unistr/test-u8-strcmp.h: New file.
839 * tests/unistr/test-strcmp.h: New file.
841 Tests for module 'unistr/u32-strncat'.
842 * modules/unistr/u32-strncat-tests: New file.
843 * tests/unistr/test-u32-strncat.c: New file.
845 Tests for module 'unistr/u16-strncat'.
846 * modules/unistr/u16-strncat-tests: New file.
847 * tests/unistr/test-u16-strncat.c: New file.
849 Tests for module 'unistr/u8-strncat'.
850 * modules/unistr/u8-strncat-tests: New file.
851 * tests/unistr/test-u8-strncat.c: New file.
852 * tests/unistr/test-strncat.h: New file.
854 Tests for module 'unistr/u32-strcat'.
855 * modules/unistr/u32-strcat-tests: New file.
856 * tests/unistr/test-u32-strcat.c: New file.
858 Tests for module 'unistr/u16-strcat'.
859 * modules/unistr/u16-strcat-tests: New file.
860 * tests/unistr/test-u16-strcat.c: New file.
862 Tests for module 'unistr/u8-strcat'.
863 * modules/unistr/u8-strcat-tests: New file.
864 * tests/unistr/test-u8-strcat.c: New file.
865 * tests/unistr/test-strcat.h: New file.
867 Tests for module 'unistr/u32-stpncpy'.
868 * modules/unistr/u32-stpncpy-tests: New file.
869 * tests/unistr/test-u32-stpncpy.c: New file.
871 Tests for module 'unistr/u16-stpncpy'.
872 * modules/unistr/u16-stpncpy-tests: New file.
873 * tests/unistr/test-u16-stpncpy.c: New file.
875 Tests for module 'unistr/u8-stpncpy'.
876 * modules/unistr/u8-stpncpy-tests: New file.
877 * tests/unistr/test-u8-stpncpy.c: New file.
878 * tests/unistr/test-stpncpy.h: New file.
880 Tests for module 'unistr/u32-strncpy'.
881 * modules/unistr/u32-strncpy-tests: New file.
882 * tests/unistr/test-u32-strncpy.c: New file.
884 Tests for module 'unistr/u16-strncpy'.
885 * modules/unistr/u16-strncpy-tests: New file.
886 * tests/unistr/test-u16-strncpy.c: New file.
888 Tests for module 'unistr/u8-strncpy'.
889 * modules/unistr/u8-strncpy-tests: New file.
890 * tests/unistr/test-u8-strncpy.c: New file.
891 * tests/unistr/test-strncpy.h: New file.
893 Tests for module 'unistr/u32-stpcpy'.
894 * modules/unistr/u32-stpcpy-tests: New file.
895 * tests/unistr/test-u32-stpcpy.c: New file.
897 Tests for module 'unistr/u16-stpcpy'.
898 * modules/unistr/u16-stpcpy-tests: New file.
899 * tests/unistr/test-u16-stpcpy.c: New file.
901 Tests for module 'unistr/u8-stpcpy'.
902 * modules/unistr/u8-stpcpy-tests: New file.
903 * tests/unistr/test-u8-stpcpy.c: New file.
904 * tests/unistr/test-stpcpy.h: New file.
906 Tests for module 'unistr/u32-strcpy'.
907 * modules/unistr/u32-strcpy-tests: New file.
908 * tests/unistr/test-u32-strcpy.c: New file.
910 Tests for module 'unistr/u16-strcpy'.
911 * modules/unistr/u16-strcpy-tests: New file.
912 * tests/unistr/test-u16-strcpy.c: New file.
914 Tests for module 'unistr/u8-strcpy'.
915 * modules/unistr/u8-strcpy-tests: New file.
916 * tests/unistr/test-u8-strcpy.c: New file.
917 * tests/unistr/test-strcpy.h: New file.
919 Tests for module 'unistr/u32-strnlen'.
920 * modules/unistr/u32-strnlen-tests: New file.
921 * tests/unistr/test-u32-strnlen.c: New file.
923 Tests for module 'unistr/u16-strnlen'.
924 * modules/unistr/u16-strnlen-tests: New file.
925 * tests/unistr/test-u16-strnlen.c: New file.
927 Tests for module 'unistr/u8-strnlen'.
928 * modules/unistr/u8-strnlen-tests: New file.
929 * tests/unistr/test-u8-strnlen.c: New file.
930 * tests/unistr/test-strnlen.h: New file.
932 Tests for module 'unistr/u32-strlen'.
933 * modules/unistr/u32-strlen-tests: New file.
934 * tests/unistr/test-u32-strlen.c: New file.
936 Tests for module 'unistr/u16-strlen'.
937 * modules/unistr/u16-strlen-tests: New file.
938 * tests/unistr/test-u16-strlen.c: New file.
940 Tests for module 'unistr/u8-strlen'.
941 * modules/unistr/u8-strlen-tests: New file.
942 * tests/unistr/test-u8-strlen.c: New file.
944 Tests for module 'unistr/u32-prev'.
945 * modules/unistr/u32-prev-tests: New file.
946 * tests/unistr/test-u32-prev.c: New file.
948 Tests for module 'unistr/u16-prev'.
949 * modules/unistr/u16-prev-tests: New file.
950 * tests/unistr/test-u16-prev.c: New file.
952 Tests for module 'unistr/u8-prev'.
953 * modules/unistr/u8-prev-tests: New file.
954 * tests/unistr/test-u8-prev.c: New file.
956 Tests for module 'unistr/u32-next'.
957 * modules/unistr/u32-next-tests: New file.
958 * tests/unistr/test-u32-next.c: New file.
960 Tests for module 'unistr/u16-next'.
961 * modules/unistr/u16-next-tests: New file.
962 * tests/unistr/test-u16-next.c: New file.
964 Tests for module 'unistr/u8-next'.
965 * modules/unistr/u8-next-tests: New file.
966 * tests/unistr/test-u8-next.c: New file.
968 Tests for module 'unistr/u32-strmbtouc'.
969 * modules/unistr/u32-strmbtouc-tests: New file.
970 * tests/unistr/test-u32-strmbtouc.c: New file.
972 Tests for module 'unistr/u16-strmbtouc'.
973 * modules/unistr/u16-strmbtouc-tests: New file.
974 * tests/unistr/test-u16-strmbtouc.c: New file.
976 Tests for module 'unistr/u8-strmbtouc'.
977 * modules/unistr/u8-strmbtouc-tests: New file.
978 * tests/unistr/test-u8-strmbtouc.c: New file.
980 Tests for module 'unistr/u32-strmblen'.
981 * modules/unistr/u32-strmblen-tests: New file.
982 * tests/unistr/test-u32-strmblen.c: New file.
984 Tests for module 'unistr/u16-strmblen'.
985 * modules/unistr/u16-strmblen-tests: New file.
986 * tests/unistr/test-u16-strmblen.c: New file.
988 Tests for module 'unistr/u8-strmblen'.
989 * modules/unistr/u8-strmblen-tests: New file.
990 * tests/unistr/test-u8-strmblen.c: New file.
992 Tests for module 'unistr/u32-cpy-alloc'.
993 * modules/unistr/u32-cpy-alloc-tests: New file.
994 * tests/unistr/test-u32-cpy-alloc.c: New file.
996 Tests for module 'unistr/u16-cpy-alloc'.
997 * modules/unistr/u16-cpy-alloc-tests: New file.
998 * tests/unistr/test-u16-cpy-alloc.c: New file.
1000 Tests for module 'unistr/u8-cpy-alloc'.
1001 * modules/unistr/u8-cpy-alloc-tests: New file.
1002 * tests/unistr/test-u8-cpy-alloc.c: New file.
1003 * tests/unistr/test-cpy-alloc.h: New file.
1005 Tests for module 'unistr/u32-mbsnlen'.
1006 * modules/unistr/u32-mbsnlen-tests: New file.
1007 * tests/unistr/test-u32-mbsnlen.c: New file.
1009 Tests for module 'unistr/u16-mbsnlen'.
1010 * modules/unistr/u16-mbsnlen-tests: New file.
1011 * tests/unistr/test-u16-mbsnlen.c: New file.
1013 Tests for module 'unistr/u8-mbsnlen'.
1014 * modules/unistr/u8-mbsnlen-tests: New file.
1015 * tests/unistr/test-u8-mbsnlen.c: New file.
1017 Tests for module 'unistr/u32-chr'.
1018 * modules/unistr/u32-chr-tests: New file.
1019 * tests/unistr/test-u32-chr.c: New file.
1021 Tests for module 'unistr/u16-chr'.
1022 * modules/unistr/u16-chr-tests: New file.
1023 * tests/unistr/test-u16-chr.c: New file.
1025 Tests for module 'unistr/u8-chr'.
1026 * modules/unistr/u8-chr-tests: New file.
1027 * tests/unistr/test-u8-chr.c: New file.
1028 * tests/unistr/test-chr.h: New file, based on tests/test-memchr.c.
1030 Tests for module 'unistr/u32-cmp2'.
1031 * modules/unistr/u32-cmp2-tests: New file.
1032 * tests/unistr/test-u32-cmp2.c: New file.
1034 Tests for module 'unistr/u16-cmp2'.
1035 * modules/unistr/u16-cmp2-tests: New file.
1036 * tests/unistr/test-u16-cmp2.c: New file.
1038 Tests for module 'unistr/u8-cmp2'.
1039 * modules/unistr/u8-cmp2-tests: New file.
1040 * tests/unistr/test-u8-cmp2.c: New file.
1041 * tests/unistr/test-cmp2.h: New file, based on tests/unistr/test-cmp.h.
1043 Tests for module 'unistr/u32-cmp'.
1044 * modules/unistr/u32-cmp-tests: New file.
1045 * tests/unistr/test-u32-cmp.c: New file.
1047 Tests for module 'unistr/u16-cmp'.
1048 * modules/unistr/u16-cmp-tests: New file.
1049 * tests/unistr/test-u16-cmp.c: New file.
1051 Tests for module 'unistr/u8-cmp'.
1052 * modules/unistr/u8-cmp-tests: New file.
1053 * tests/unistr/test-u8-cmp.c: New file.
1054 * tests/unistr/test-cmp.h: New file, based on tests/test-memcmp.c.
1056 Tests for module 'unistr/u32-set'.
1057 * modules/unistr/u32-set-tests: New file.
1058 * tests/unistr/test-u32-set.c: New file.
1060 Tests for module 'unistr/u16-set'.
1061 * modules/unistr/u16-set-tests: New file.
1062 * tests/unistr/test-u16-set.c: New file.
1064 Tests for module 'unistr/u8-set'.
1065 * modules/unistr/u8-set-tests: New file.
1066 * tests/unistr/test-u8-set.c: New file.
1067 * tests/unistr/test-set.h: New file.
1069 Tests for module 'unistr/u32-move'.
1070 * modules/unistr/u32-move-tests: New file.
1071 * tests/unistr/test-u32-move.c: New file.
1073 Tests for module 'unistr/u16-move'.
1074 * modules/unistr/u16-move-tests: New file.
1075 * tests/unistr/test-u16-move.c: New file.
1077 Tests for module 'unistr/u8-move'.
1078 * modules/unistr/u8-move-tests: New file.
1079 * tests/unistr/test-u8-move.c: New file.
1080 * tests/unistr/test-move.h: New file.
1082 Tests for module 'unistr/u32-cpy'.
1083 * modules/unistr/u32-cpy-tests: New file.
1084 * tests/unistr/test-u32-cpy.c: New file.
1086 Tests for module 'unistr/u16-cpy'.
1087 * modules/unistr/u16-cpy-tests: New file.
1088 * tests/unistr/test-u16-cpy.c: New file.
1090 Tests for module 'unistr/u8-cpy'.
1091 * modules/unistr/u8-cpy-tests: New file.
1092 * tests/unistr/test-u8-cpy.c: New file.
1093 * tests/unistr/test-cpy.h: New file.
1095 2010-01-09 Bruno Haible <bruno@clisp.org>
1097 Tests for module 'unistr/u32-uctomb'.
1098 * modules/unistr/u32-uctomb-tests: New file.
1099 * tests/unistr/test-u32-uctomb.c: New file.
1101 Tests for module 'unistr/u16-uctomb'.
1102 * modules/unistr/u16-uctomb-tests: New file.
1103 * tests/unistr/test-u16-uctomb.c: New file.
1105 Tests for module 'unistr/u8-uctomb'.
1106 * modules/unistr/u8-uctomb-tests: New file.
1107 * tests/unistr/test-u8-uctomb.c: New file.
1109 Tests for module 'unistr/u32-mbtoucr'.
1110 * modules/unistr/u32-mbtoucr-tests: New file.
1111 * tests/unistr/test-u32-mbtoucr.c: New file.
1113 Tests for module 'unistr/u16-mbtoucr'.
1114 * modules/unistr/u16-mbtoucr-tests: New file.
1115 * tests/unistr/test-u16-mbtoucr.c: New file.
1117 Tests for module 'unistr/u8-mbtoucr'.
1118 * modules/unistr/u8-mbtoucr-tests: New file.
1119 * tests/unistr/test-u8-mbtoucr.c: New file.
1121 Tests for module 'unistr/u32-mbtouc'.
1122 * modules/unistr/u32-mbtouc-tests: New file.
1123 * tests/unistr/test-u32-mbtouc.c: New file.
1125 Tests for module 'unistr/u16-mbtouc'.
1126 * modules/unistr/u16-mbtouc-tests: New file.
1127 * tests/unistr/test-u16-mbtouc.c: New file.
1129 Tests for module 'unistr/u8-mbtouc'.
1130 * modules/unistr/u8-mbtouc-tests: New file.
1131 * tests/unistr/test-u8-mbtouc.c: New file.
1133 Tests for module 'unistr/u32-mbtouc-unsafe'.
1134 * modules/unistr/u32-mbtouc-unsafe-tests: New file.
1135 * tests/unistr/test-u32-mbtouc-unsafe.c: New file.
1136 * tests/unistr/test-u32-mbtouc.h: New file.
1138 Tests for module 'unistr/u16-mbtouc-unsafe'.
1139 * modules/unistr/u16-mbtouc-unsafe-tests: New file.
1140 * tests/unistr/test-u16-mbtouc-unsafe.c: New file.
1141 * tests/unistr/test-u16-mbtouc.h: New file.
1143 Tests for module 'unistr/u8-mbtouc-unsafe'.
1144 * modules/unistr/u8-mbtouc-unsafe-tests: New file.
1145 * tests/unistr/test-u8-mbtouc-unsafe.c: New file.
1146 * tests/unistr/test-u8-mbtouc.h: New file.
1148 Tests for module 'unistr/u32-mblen'.
1149 * modules/unistr/u32-mblen-tests: New file.
1150 * tests/unistr/test-u32-mblen.c: New file.
1152 Tests for module 'unistr/u16-mblen'.
1153 * modules/unistr/u16-mblen-tests: New file.
1154 * tests/unistr/test-u16-mblen.c: New file.
1156 Tests for module 'unistr/u8-mblen'.
1157 * modules/unistr/u8-mblen-tests: New file.
1158 * tests/unistr/test-u8-mblen.c: New file.
1160 Tests for module 'unistr/u32-to-u16'.
1161 * modules/unistr/u32-to-u16-tests: New file.
1162 * tests/unistr/test-u32-to-u16.c: New file.
1164 Tests for module 'unistr/u32-to-u8'.
1165 * modules/unistr/u32-to-u8-tests: New file.
1166 * tests/unistr/test-u32-to-u8.c: New file.
1168 Tests for module 'unistr/u16-to-u32'.
1169 * modules/unistr/u16-to-u32-tests: New file.
1170 * tests/unistr/test-u16-to-u32.c: New file.
1172 Tests for module 'unistr/u16-to-u8'.
1173 * modules/unistr/u16-to-u8-tests: New file.
1174 * tests/unistr/test-u16-to-u8.c: New file.
1176 Tests for module 'unistr/u8-to-u32'.
1177 * modules/unistr/u8-to-u32-tests: New file.
1178 * tests/unistr/test-u8-to-u32.c: New file.
1180 Tests for module 'unistr/u8-to-u16'.
1181 * modules/unistr/u8-to-u16-tests: New file.
1182 * tests/unistr/test-u8-to-u16.c: New file.
1184 Tests for module 'unistr/u32-check'.
1185 * modules/unistr/u32-check-tests: New file.
1186 * tests/unistr/test-u32-check.c: New file.
1188 Tests for module 'unistr/u16-check'.
1189 * modules/unistr/u16-check-tests: New file.
1190 * tests/unistr/test-u16-check.c: New file.
1192 Tests for module 'unistr/u8-check'.
1193 * modules/unistr/u8-check-tests: New file.
1194 * tests/unistr/test-u8-check.c: New file.
1196 * tests/unictype/test-categ_byname.c: Include <stdbool.h>.
1197 (category_equals): New function.
1198 (main): Add more tests.
1199 * modules/unictype/category-byname-tests (Depends-on): Add stdbool.
1201 * tests/unictype/test-bidi_byname.c (main): Add more tests.
1203 2010-01-10 Bruno Haible <bruno@clisp.org>
1205 unistr/u*-strcoll: Try harder to distinguish different strings.
1206 * lib/unistr/u-strcoll.h (FUNC): When sl1 and sl2 are the same,
1207 compare s1 and s2 to see if they are different.
1209 2010-01-10 Bruno Haible <bruno@clisp.org>
1211 unistr/u*-stpncpy: Fix the return value.
1212 * lib/unistr.h (u8_stpncpy, u16_stpncpy, u32_stpncpy): Make the
1213 description of the return value consistent with stpncpy in glibc.
1214 * lib/unistr/u-stpncpy.h (FUNC): Return the pointer past the last
1215 written non-NUL unit.
1217 2010-01-10 Bruno Haible <bruno@clisp.org>
1219 unistr/u*-next: Add missing dependencies.
1220 * modules/unistr/u8-next (Depends-on): Add unistr/u8-strmbtouc.
1221 * modules/unistr/u16-next (Depends-on): Add unistr/u16-strmbtouc.
1222 * modules/unistr/u32-next (Depends-on): Add unistr/u32-strmbtouc.
1224 2010-01-10 Bruno Haible <bruno@clisp.org>
1226 unistr/u8-mbsnlen: Fix return value for incomplete character.
1227 * lib/unistr/u8-mbsnlen.c (u8_mbsnlen): Use u8_mbtoucr instead of
1229 * modules/unistr/u8-mbsnlen (Depends-on): Add unistr/u8-mbtoucr.
1230 Remove unistr/u8-mblen.
1231 * lib/unistr/u16-mbsnlen.c (u16_mbsnlen): Use u16_mbtoucr instead of
1233 * modules/unistr/u16-mbsnlen (Depends-on): Add unistr/u16-mbtoucr.
1234 Remove unistr/u16-mblen.
1236 2010-01-10 Bruno Haible <bruno@clisp.org>
1238 wchar: Fix compilation error when <wchar.h> is used from coreutils.
1239 * lib/wchar.in.h: Treat __need_wint_t like __need_mbstate_t.
1240 Reported by Brian Gough <bjg@gnu.org> and
1241 Chris Clayton <chris2553@googlemail.com> via
1242 Mike Frysinger <vapier@gentoo.org> and Jim Meyering <jim@meyering.net>.
1244 2010-01-09 Bruno Haible <bruno@clisp.org>
1246 unistr/u16-to-u32: Reject invalid input.
1247 * lib/unistr/u16-to-u32.c (u16_to_u32): Call u16_mbtoucr instead of
1249 * modules/unistr/u16-to-u32 (Depends-on): Add unistr/u16-mbtoucr.
1250 Remove unistr/u16-mbtouc.
1252 unistr/u16-to-u8: Reject invalid input.
1253 * lib/unistr/u16-to-u8.c (u16_to_u8): Call u16_mbtoucr instead of
1255 * modules/unistr/u16-to-u8 (Depends-on): Add unistr/u16-mbtoucr.
1256 Remove unistr/u16-mbtouc.
1258 unistr/u8-to-u32: Reject invalid input.
1259 * lib/unistr/u8-to-u32.c (u8_to_u32): Call u8_mbtoucr instead of
1261 * modules/unistr/u8-to-u32 (Depends-on): Add unistr/u8-mbtoucr.
1262 Remove unistr/u8-mbtouc.
1264 unistr/u8-to-u16: Reject invalid input.
1265 * lib/unistr/u8-to-u16.c (u8_to_u16): Call u8_mbtoucr instead of
1267 * modules/unistr/u8-to-u16 (Depends-on): Add unistr/u8-mbtoucr.
1268 Remove unistr/u8-mbtouc.
1270 2010-01-09 Bruno Haible <bruno@clisp.org>
1272 Tests for module 'getlogin'.
1273 * modules/getlogin-tests: New file.
1274 * tests/test-getlogin.c: New file.
1276 New module 'getlogin'.
1277 * lib/unistd.in.h (getlogin): New declaration.
1278 * lib/getlogin.c: New file.
1279 * m4/getlogin.m4: New file.
1280 * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETLOGIN,
1282 * modules/unistd (Makefile.am): Substitute GNULIB_GETLOGIN,
1284 * modules/getlogin: New file.
1285 * doc/posix-functions/getlogin.texi: Mention the new module.
1286 Reported by John W. Eaton <jwe@gnu.org>.
1288 2010-01-09 Bruno Haible <bruno@clisp.org>
1290 getlogin_r: Support for native Windows.
1291 * lib/getlogin_r.c: Include <windows.h>
1292 (getlogin_r): Implement for native Windows.
1293 * tests/test-getlogin_r.c (main): Also test with a huge buffer.
1294 Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>
1295 via John W. Eaton <jwe@gnu.org>.
1297 2010-01-09 Bruno Haible <bruno@clisp.org>
1299 getlogin_r: Small fixes.
1300 * lib/getlogin_r.c (getlogin_r): Don't set errno if the function
1302 * m4/getlogin_r.m4 (gl_GETLOGIN_R): Require gl_USE_SYSTEM_EXTENSIONS
1303 before testing whether getlogin_r is declared. No need to set
1304 HAVE_DECL_GETLOGIN_R to 1.
1305 (gl_PREREQ_GETLOGIN_R): Don't check for the getlogin_r declaration.
1307 2010-01-09 Bruno Haible <bruno@clisp.org>
1309 * lib/unistd.in.h (getlogin_r): Add comment.
1311 2010-01-09 Bruno Haible <bruno@clisp.org>
1313 Tests for module 'getlogin_r'.
1314 * modules/getlogin_r-tests: New file.
1315 * tests/test-getlogin_r.c: New file.
1317 2010-01-09 Jim Meyering <meyering@redhat.com>
1319 maint.mk: extend proper_name_utf8-vs-LIBICONV-checking rule
1320 * top/maint.mk (sc_proper_name_utf8_requires_ICONV): Adapt to work
1321 also when $(LIBICONV) is part of LDADD, rather than ${prog}_LDADD.
1323 2010-01-08 Simon Josefsson <simon@josefsson.org>
1325 * lib/dup2.c (rpl_dup2): Improve comment.
1327 2010-01-08 Eric Blake <ebb9@byu.net>
1329 maint.mk: allow packages to add makefile @@ exceptions
1330 * top/maint.mk (_makefile_at_at_check_exceptions): New hook.
1331 (sc_makefile_check): Rename...
1332 (sc_makefile_at_at_check): ...to this, and use hook.
1334 dup2: work around mingw bug
1335 * lib/dup2.c (rpl_dup2): Sanitize return value on mingw.
1336 Reported by Simon Josefsson.
1338 2010-01-07 John W. Eaton <jwe@octave.org> (tiny change)
1340 glob: Fix C++ compilation.
1341 * lib/glob.in.h [__cplusplus]: Define __BEGIN_DECLS and __END_DECLS for
1344 2010-01-07 Bruno Haible <bruno@clisp.org>
1346 Fix indentation of wctype.in.h, broken since 2007-01-06.
1347 * lib/wctype.in.h: Fix indentation of preprocessor directives.
1349 2010-01-07 Bruno Haible <bruno@clisp.org>
1351 mbslen: Avoid collision with system function.
1352 * lib/string.in.h [MirBSD]: Include <wchar.h>.
1353 (mbslen): Undefine first. Alias mbslen to rpl_mbslen.
1354 * m4/mbslen.m4: New file.
1355 * modules/mbslen (Files): Add it.
1356 (configure.ac): Invoke gl_MBSLEN.
1357 * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize HAVE_MBSLEN.
1358 * modules/string (Makefile.am): Substitute HAVE_MBSLEN.
1359 Reported by Nelson H. F. Beebe <beebe@math.utah.edu>
1360 via Ian Beckwith <ianb@erislabs.net>.
1362 2010-01-07 Bruno Haible <bruno@clisp.org>
1364 dirent: Document the last fix.
1365 * doc/posix-headers/dirent.texi: Document the bug of missing 'ino_t'.
1367 2010-01-07 Bruno Haible <bruno@clisp.org>
1369 stdio: Ensure <stdio.h> defines off_t, ssize_t, va_list.
1370 * lib/stdio.in.h: Include <sys/types.h> unconditionally.
1371 * tests/test-stdio.c: Verify that fpos_t, off_t, size_t, ssize_t,
1372 va_list are defined.
1373 * doc/posix-headers/stdio.texi: Document the bug of missing types.
1374 Reported by Eric Blake.
1376 2010-01-07 Bruno Haible <bruno@clisp.org>
1378 xlist, xoset: Fix missing dependency bug, introduced on 2009-12-13.
1379 * modules/xlist (Depends-on): Add 'list',
1380 * modules/xoset (Depends-on): Add 'oset'.
1381 Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
1383 2010-01-07 Bruno Haible <bruno@clisp.org>
1385 * doc/posix-functions/strcasecmp.texi: Clarify the platforms.
1386 * doc/posix-functions/strncasecmp.texi: Likewise.
1388 2010-01-07 Bruno Haible <bruno@clisp.org>
1390 * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Simplify logic.
1392 2010-01-07 John W. Eaton <jwe@octave.org>
1394 wctype: allow C++ use
1395 * lib/wctype.in.h: Add extern "C" block for C++.
1397 2010-01-06 Eric Blake <ebb9@byu.net>
1399 maint.mk: detect incorrect GFDL usage
1400 * top/maint.mk (_GFDL_regexp, sc_GFDL_version): New rule.
1402 2010-01-06 Jim Meyering <meyering@redhat.com>
1403 and Eric Blake <ebb9@byu.net>
1405 maint.mk: ignore multi-line copyright in NEWS
1406 * top/maint.mk (NEWS_hash): Add immunity to multi-line copyright.
1408 2010-01-06 Eric Blake <ebb9@byu.net>
1410 select: add missing dependency
1411 * modules/select-tests (Depends-on): Move sockets dependency...
1412 * modules/select (Depends-on): ...here.
1413 Reported by Ian Beckwith.
1415 doc: regenerate INSTALL
1416 * doc/INSTALL: Reflect recent autoconf update.
1417 * doc/INSTALL.ISO: Likewise.
1418 * doc/INSTALL.UTF-8: Likewise.
1420 pread: fix compilation on glibc
1421 * m4/pread.m4 (gl_FUNC_PREAD): Request all interfaces.
1422 Reported by Ralf Wildenhues.
1424 dirent: fix test failure
1425 * lib/dirent.in.h (includes): Guarantee ino_t.
1426 Reported by Ralf Wildenhues.
1428 2010-01-06 Petr Salinger <Petr.Salinger@seznam.cz> (tiny change)
1430 linkat, renameat: avoid bad free
1431 * lib/at-func2.c (at_func2): Fix typo.
1432 Reported via Ian Beckwith, from http://bugs.debian.org/561117.
1434 2010-01-06 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
1436 cleanup after gl_FUNC_READLINK, for gl_FUNC_SYMLINK test
1437 * m4/readlink.m4 (gl_FUNC_READLINK): Remove conftest.lnk2,
1438 to avoid failure of symlink test later.
1440 2010-01-06 Eric Blake <ebb9@byu.net>
1442 stdio, unistd: guarantee ssize_t
1443 * lib/unistd.in.h (includes): Ensure that types required by POSIX
1444 2008 are exposed when needed.
1445 * lib/stdio.in.h (includes): Likewise.
1446 Reported by Ralf Wildenhues.
1448 2010-01-06 Paolo Bonzini <bonzini@gnu.org>
1450 nl_langinfo: do not call AC_CHECK_FUNC_ONCE inside if.
1451 * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Do not call
1452 AC_CHECK_FUNC_ONCE inside if, do not adjust ac_cv_func_nl_langinfo.
1454 2010-01-06 Jim Meyering <meyering@redhat.com>
1456 readtokens: this module *does* require xalloc.h
1457 It uses only functions that were omitted by the old syntax-check rule.
1458 * lib/readtokens.c: Include "xalloc.h" once again.
1459 * modules/readtokens (Depends-on): Add xalloc.
1460 This reverts part of 0e0f8f12ec241c0f1c1f21f960bb5cf908a0fa3c.
1462 2010-01-05 Eric Blake <ebb9@byu.net>
1464 maint: support 'make announcement' from a VPATH build
1465 * top/maint.mk (announcement): Look for correct NEWS file.
1467 2010-01-05 Aurelien Jarno <aurelien@aurel32.net> (tiny change)
1469 utimens (fdutimens): ignore a negative FD, per contract
1470 * lib/utimens.c (fdutimens) [HAVE_FUTIMENS]: Call futimens only
1471 when we have a valid file descriptor. Otherwise, using a brand
1472 new glibc (with just-patched futimens that now fails with EBADF)
1473 would cause this function to fail with ENOSYS.
1474 Reported by Guillaume Ayoub in http://bugs.debian.org/563726.
1475 See also http://bugzilla.redhat.com/552320.
1477 2010-01-05 Eric Blake <ebb9@byu.net>
1479 strcase: document what it provides
1480 * doc/posix-functions/strcasecmp.texi (strcasecmp): Mention the
1482 * doc/posix-functions/strncasecmp.texi (strncasecmp): Likewise.
1483 Reported by Dilyan Palauzov <Dilyan.Palauzov@aegee.org>.
1485 2010-01-05 Jim Meyering <meyering@redhat.com>
1487 maint: remove useless inclusions of "xalloc.h"
1488 * lib/getloadavg.c: Remove useless inclusion of "xalloc.h".
1489 * lib/readtokens.c: Likewise.
1490 * lib/same.c: Likewise.
1491 * modules/getloadavg (Depends-on): Remove xalloc.
1492 * modules/readtokens: Likewise.
1493 * modules/same: Likewise.
1495 maint.mk: include 4 more function names in alloca.h-checking regexp
1496 * top/maint.mk (sc_prohibit_xalloc_without_use): Use more complete
1497 regexp. Before, we would give a false-positive (saying alloca.h
1498 is included unnecessarily) when the only uses involved omitted symbols.
1500 xalloc.h: use consistent formatting
1501 * lib/xalloc.h: Move declarations to start in the first column.
1503 2010-01-05 Eric Blake <ebb9@byu.net>
1506 * lib/mkdir.c (includes): Drop unused header.
1507 Reported by John W. Eaton.
1509 2010-01-04 Jim Meyering <meyering@redhat.com>
1511 nl_langinfo: avoid configure-time syntax error
1512 * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): When we've already tested
1513 for nl_langinfo.h, AC_CHECK_FUNCS_ONCE([nl_langinfo]) expands to
1514 the empty string. Don't let that provoke a shell syntax error.
1516 regcomp, regexec, fnmatch: avoid array bounds read error
1517 * lib/regcomp.c (build_equiv_class): From glibc:
1518 Use only the low 24 bits of a findidx return value as an index
1519 into the weights array. Patch by Ulrich Drepper:
1520 http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commit;h=b7d1c5fa30
1521 * lib/regexec.c (check_node_accept_bytes): Likewise.
1522 * lib/fnmatch_loop.c (FCT): Likewise.
1524 regcomp: skip collseq lookup when there are no rules
1525 * lib/regcomp.c (lookup_collation_sequence_value): From glibc:
1526 http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commitdiff;h=a532a41df58
1528 regcomp: recognize ill-formed { } expressions
1529 * lib/regcomp.c (parse_dup_op): From glibc:
1530 http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commitdiff;h=a87cd2894cb
1532 regcomp: fix typo in comment
1533 * lib/regcomp.c (duplicate_node_closure): Sync from glibc.
1534 s/satisfy/satisfies/.
1536 regcomp: sync from glibc: remove dead store
1537 * lib/regcomp.c (duplicate_node_closure): Remove useless
1538 search_duplicated_node call and dead store.
1540 regcomp: sync from glibc; always use nl_langinfo
1541 * lib/regcomp.c (init_dfa) [!LIBC]: Always use nl_langinfo (CODESET),
1542 now that gnulib provides it. Recognize UTF8 as well as UTF-8.
1543 * modules/regex (Depends-on): Add nl_langinfo.
1545 2010-01-04 Eric Blake <ebb9@byu.net>
1547 fdopendir: fix configure test
1548 * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Check for existing file.
1550 2010-01-01 Bruno Haible <bruno@clisp.org>
1552 wchar: Remove unused configure check.
1553 * m4/wchar.m4 (gl_WCHAR_H): Don't test whether <wchar.h> is standalone.
1555 2010-01-01 Eric Blake <ebb9@byu.net>
1557 headers: make check of system header explicit
1558 * m4/netdb_h.m4 (gl_HEADER_NETDB): Don't exploit knowledge of
1559 gl_CHECK_NEXT_HEADER internals, but call AC_CHECK_HEADERS_ONCE
1561 * m4/search_h.m4 (gl_SEARCH_H): Likewise.
1562 * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
1563 * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Likewise.
1564 * m4/inttypes.m4 (gl_INTTYPES_H): Likewise, for gt_INTTYPES_PRI
1566 * m4/wchar.m4 (gl_WCHAR_H): Skip followup test if header is
1568 Suggested by Bruno Haible.
1570 2010-01-01 Jim Meyering <meyering@redhat.com>
1572 ChangeLog: tweak to eliminate unnecessary copyright line
1573 * ChangeLog: Remove a copyright line that was mistakenly updated
1574 by today's update-copyright run. Reported by Eric Blake.
1576 test-update-copyright: don't let envvar setting cause test failure
1577 * tests/test-update-copyright.sh: Set UPDATE_COPYRIGHT_MAX_LINE_LENGTH.
1579 2010-01-01 Bruno Haible <bruno@clisp.org>
1581 localename: Avoid gcc warning.
1582 * lib/localename.c (gl_locale_name_thread_unsafe): Don't define this
1583 function if it is not used.
1585 2010-01-01 Jim Meyering <meyering@redhat.com>
1587 update nearly all FSF copyright year lists to include 2010
1588 Use the same procedure as for 2009, outlined in
1589 http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/20081
1591 version-etc: set COPYRIGHT_YEAR to 2010
1592 * lib/version-etc.c (COPYRIGHT_YEAR): Manually update the enum.
1594 2009-12-31 Eric Blake <ebb9@byu.net>
1596 doc: correct availability of cygwin 1.5.x getopt
1597 * doc/posix-functions/optarg.texi (optarg): Cygwin supplies getopt
1599 * doc/posix-functions/opterr.texi (opterr): Likewise.
1600 * doc/posix-functions/optind.texi (optind): Likewise.
1601 * doc/posix-functions/optopt.texi (optopt): Likewise.
1602 * doc/posix-functions/tzname.texi (tzname): Likewise.
1604 openat: update maintainer
1605 * modules/openat (Maintainer): Add myself.
1607 utimens: avoid shadowing warning
1608 * lib/utimens.c (fdutimens, lutimens): Consolidate separate stat
1609 buffers into one, to avoid shadowing, as well as avoiding a
1611 Reported by Jim Meyering.
1613 test-dup2: avoid compiler warning
1614 * tests/test-dup2.c (is_inheritable): Only define if used.
1616 2010-01-01 Bruno Haible <bruno@clisp.org>
1618 vasnprintf: Avoid passing an 'rpl_mbstate_t *' to the system's wcrtomb.
1619 * lib/vasnprintf.c (VASNPRINTF): If GNULIB_defined_mbstate_t is
1620 defined, use wctomb instead of wcrtomb.
1622 2010-01-01 Bruno Haible <bruno@clisp.org>
1624 iconv: Reject native Solaris iconv.
1625 * m4/iconv.m4 (AM_ICONV_LINK): Recognize native Solaris iconv() bug.
1626 * doc/posix-functions/iconv.texi: Document native Solaris iconv() bug.
1628 2009-12-31 Bruno Haible <bruno@clisp.org>
1630 * tests/test-signal.c (main): Remove test of 'SIG'.
1632 2009-12-31 Bruno Haible <bruno@clisp.org>
1634 spawn: Fix incomplete fix.
1635 * lib/spawn.in.h (posix_spawnattr_getflags, posix_spawnattr_setflags,
1636 posix_spawnattr_getpgroup, posix_spawnattr_setpgroup): Correct the link
1637 warnings for GNULIB_POSIXCHECK again.
1638 Reported by Eric Blake.
1640 2009-12-31 Bruno Haible <bruno@clisp.org>
1642 Avoid namespace pollution on glibc systems.
1643 * lib/spawn.in.h: Don't include <sched.h>, <signal.h> on glibc systems.
1644 * lib/sys_times.in.h: Don't include <time.h> on glibc systems.
1645 * lib/wchar.in.h: Don't include <stddef.h>, <stdio.h>, <time.h> on
1648 2009-12-31 Bruno Haible <bruno@clisp.org>
1650 * m4/wchar.m4 (gl_WCHAR_H): Remove gl_STDDEF_H invocation.
1651 (gl_REPLACE_WCHAR_H): Turn into a no-op.
1652 * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): Likewise.
1653 * m4/dirent_h.m4 (gl_REPLACE_DIRENT_H): Likewise.
1654 * m4/locale_h.m4 (gl_REPLACE_LOCALE_H): Likewise.
1655 * m4/spawn_h.m4 (gl_REPLACE_SPAWN_H): Likewise.
1656 * m4/sys_ioctl_h.m4 (gl_REPLACE_SYS_IOCTL_H): Likewise.
1658 2009-12-31 Bruno Haible <bruno@clisp.org>
1660 * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Invoke
1661 gl_CHECK_NEXT_HEADERS before testing ac_cv_header_sys_select_h, not
1664 2009-12-31 Bruno Haible <bruno@clisp.org>
1666 * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H_DEFAULTS): Don't set
1669 2009-12-31 Bruno Haible <bruno@clisp.org>
1671 spawn: Fix misapplied patch.
1672 * lib/spawn.in.h (posix_spawnattr_getflags, posix_spawnattr_setflags,
1673 posix_spawnattr_getpgroup, posix_spawnattr_setpgroup): Correct the link
1674 warnings for GNULIB_POSIXCHECK.
1676 2009-12-31 Bruno Haible <bruno@clisp.org>
1678 times: Update after sys_times changed.
1679 * m4/times.m4: New file, extracted from modules/times. Set HAVE_TIMES.
1680 * modules/times (Files): Add it.
1681 (configure.ac): Invoke gl_FUNC_TIMES.
1683 2009-12-31 Bruno Haible <bruno@clisp.org>
1685 Use AC_C_INLINE where necessary.
1686 * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Require AC_C_INLINE.
1687 * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
1688 * m4/fts.m4 (gl_FUNC_FTS_CORE): Likewise.
1689 * m4/mbchar.m4 (gl_MBCHAR): Likewise.
1690 * m4/mbfile.m4 (gl_MBFILE): Likewise.
1691 * m4/mbiter.m4 (gl_MBITER): Likewise.
1692 * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
1693 * m4/stat.m4 (gl_FUNC_STAT): Likewise.
1694 * m4/wait-process.m4 (gl_WAIT_PROCESS): Likewise.
1695 * modules/u64 (configure.ac): Likewise.
1697 2009-12-31 Bruno Haible <bruno@clisp.org>
1699 Use AC_C_INLINE instead of module 'inline' where possible.
1700 * modules/inline (Description): Clarify purpose.
1701 * m4/count-one-bits.m4 (gl_COUNT_ONE_BITS): Require AC_C_INLINE.
1702 * modules/count-one-bits (Depends-on): Remove inline.
1703 * m4/openat.m4 (gl_PREREQ_OPENAT): Require AC_C_INLINE.
1704 * modules/openat (Depends-on): Remove inline.
1705 * modules/fdutimensat (Depends-on, configure.ac): Require AC_C_INLINE
1706 instead of depending on module 'inline'.
1707 * modules/filevercmp (Depends-on, configure.ac): Likewise.
1708 * modules/unicase/cased (Depends-on, configure.ac): Likewise.
1709 * modules/unicase/ignorable (Depends-on, configure.ac): Likewise.
1710 * modules/unictype/category-of (Depends-on, configure.ac): Likewise.
1711 * modules/unictype/category-test (Depends-on, configure.ac): Likewise.
1712 * modules/unictype/ctype-alnum (Depends-on, configure.ac): Likewise.
1713 * modules/unictype/ctype-alpha (Depends-on, configure.ac): Likewise.
1714 * modules/unictype/ctype-blank (Depends-on, configure.ac): Likewise.
1715 * modules/unictype/ctype-cntrl (Depends-on, configure.ac): Likewise.
1716 * modules/unictype/ctype-digit (Depends-on, configure.ac): Likewise.
1717 * modules/unictype/ctype-graph (Depends-on, configure.ac): Likewise.
1718 * modules/unictype/ctype-lower (Depends-on, configure.ac): Likewise.
1719 * modules/unictype/ctype-print (Depends-on, configure.ac): Likewise.
1720 * modules/unictype/ctype-punct (Depends-on, configure.ac): Likewise.
1721 * modules/unictype/ctype-space (Depends-on, configure.ac): Likewise.
1722 * modules/unictype/ctype-upper (Depends-on, configure.ac): Likewise.
1723 * modules/unictype/ctype-xdigit (Depends-on, configure.ac): Likewise.
1724 * modules/unictype/property-alphabetic (Depends-on, configure.ac):
1726 * modules/unictype/property-ascii-hex-digit (Depends-on,
1727 configure.ac): Likewise.
1728 * modules/unictype/property-bidi-arabic-digit (Depends-on,
1729 configure.ac): Likewise.
1730 * modules/unictype/property-bidi-arabic-right-to-left (Depends-on,
1731 configure.ac): Likewise.
1732 * modules/unictype/property-bidi-block-separator (Depends-on,
1733 configure.ac): Likewise.
1734 * modules/unictype/property-bidi-boundary-neutral (Depends-on,
1735 configure.ac): Likewise.
1736 * modules/unictype/property-bidi-common-separator (Depends-on,
1737 configure.ac): Likewise.
1738 * modules/unictype/property-bidi-control (Depends-on, configure.ac):
1740 * modules/unictype/property-bidi-embedding-or-override (Depends-on,
1741 configure.ac): Likewise.
1742 * modules/unictype/property-bidi-eur-num-separator (Depends-on,
1743 configure.ac): Likewise.
1744 * modules/unictype/property-bidi-eur-num-terminator (Depends-on,
1745 configure.ac): Likewise.
1746 * modules/unictype/property-bidi-european-digit (Depends-on,
1747 configure.ac): Likewise.
1748 * modules/unictype/property-bidi-hebrew-right-to-left (Depends-on,
1749 configure.ac): Likewise.
1750 * modules/unictype/property-bidi-left-to-right (Depends-on,
1751 configure.ac): Likewise.
1752 * modules/unictype/property-bidi-non-spacing-mark (Depends-on,
1753 configure.ac): Likewise.
1754 * modules/unictype/property-bidi-other-neutral (Depends-on,
1755 configure.ac): Likewise.
1756 * modules/unictype/property-bidi-pdf (Depends-on, configure.ac):
1758 * modules/unictype/property-bidi-segment-separator (Depends-on,
1759 configure.ac): Likewise.
1760 * modules/unictype/property-bidi-whitespace (Depends-on,
1761 configure.ac): Likewise.
1762 * modules/unictype/property-combining (Depends-on, configure.ac):
1764 * modules/unictype/property-composite (Depends-on, configure.ac):
1766 * modules/unictype/property-currency-symbol (Depends-on,
1767 configure.ac): Likewise.
1768 * modules/unictype/property-dash (Depends-on, configure.ac): Likewise.
1769 * modules/unictype/property-decimal-digit (Depends-on, configure.ac):
1771 * modules/unictype/property-default-ignorable-code-point (Depends-on,
1772 configure.ac): Likewise.
1773 * modules/unictype/property-deprecated (Depends-on, configure.ac):
1775 * modules/unictype/property-diacritic (Depends-on, configure.ac):
1777 * modules/unictype/property-extender (Depends-on, configure.ac):
1779 * modules/unictype/property-format-control (Depends-on, configure.ac):
1781 * modules/unictype/property-grapheme-base (Depends-on, configure.ac):
1783 * modules/unictype/property-grapheme-extend (Depends-on, configure.ac):
1785 * modules/unictype/property-grapheme-link (Depends-on, configure.ac):
1787 * modules/unictype/property-hex-digit (Depends-on, configure.ac):
1789 * modules/unictype/property-hyphen (Depends-on, configure.ac):
1791 * modules/unictype/property-id-continue (Depends-on, configure.ac):
1793 * modules/unictype/property-id-start (Depends-on, configure.ac):
1795 * modules/unictype/property-ideographic (Depends-on, configure.ac):
1797 * modules/unictype/property-ids-binary-operator (Depends-on,
1798 configure.ac): Likewise.
1799 * modules/unictype/property-ids-trinary-operator (Depends-on,
1800 configure.ac): Likewise.
1801 * modules/unictype/property-ignorable-control (Depends-on,
1802 configure.ac): Likewise.
1803 * modules/unictype/property-iso-control (Depends-on, configure.ac):
1805 * modules/unictype/property-join-control (Depends-on, configure.ac):
1807 * modules/unictype/property-left-of-pair (Depends-on, configure.ac):
1809 * modules/unictype/property-line-separator (Depends-on, configure.ac):
1811 * modules/unictype/property-logical-order-exception (Depends-on,
1812 configure.ac): Likewise.
1813 * modules/unictype/property-lowercase (Depends-on, configure.ac):
1815 * modules/unictype/property-math (Depends-on, configure.ac): Likewise.
1816 * modules/unictype/property-non-break (Depends-on, configure.ac):
1818 * modules/unictype/property-not-a-character (Depends-on, configure.ac):
1820 * modules/unictype/property-numeric (Depends-on, configure.ac):
1822 * modules/unictype/property-other-alphabetic (Depends-on,
1823 configure.ac): Likewise.
1824 * modules/unictype/property-other-default-ignorable-code-point
1825 (Depends-on, configure.ac): Likewise.
1826 * modules/unictype/property-other-grapheme-extend (Depends-on,
1827 configure.ac): Likewise.
1828 * modules/unictype/property-other-id-continue (Depends-on,
1829 configure.ac): Likewise.
1830 * modules/unictype/property-other-id-start (Depends-on, configure.ac):
1832 * modules/unictype/property-other-lowercase (Depends-on, configure.ac):
1834 * modules/unictype/property-other-math (Depends-on, configure.ac):
1836 * modules/unictype/property-other-uppercase (Depends-on, configure.ac):
1838 * modules/unictype/property-paired-punctuation (Depends-on,
1839 configure.ac): Likewise.
1840 * modules/unictype/property-paragraph-separator (Depends-on,
1841 configure.ac): Likewise.
1842 * modules/unictype/property-pattern-syntax (Depends-on, configure.ac):
1844 * modules/unictype/property-pattern-white-space (Depends-on,
1845 configure.ac): Likewise.
1846 * modules/unictype/property-private-use (Depends-on, configure.ac):
1848 * modules/unictype/property-punctuation (Depends-on, configure.ac):
1850 * modules/unictype/property-quotation-mark (Depends-on, configure.ac):
1852 * modules/unictype/property-radical (Depends-on, configure.ac):
1854 * modules/unictype/property-sentence-terminal (Depends-on,
1855 configure.ac): Likewise.
1856 * modules/unictype/property-soft-dotted (Depends-on, configure.ac):
1858 * modules/unictype/property-space (Depends-on, configure.ac): Likewise.
1859 * modules/unictype/property-terminal-punctuation (Depends-on,
1860 configure.ac): Likewise.
1861 * modules/unictype/property-titlecase (Depends-on, configure.ac):
1863 * modules/unictype/property-unassigned-code-value (Depends-on,
1864 configure.ac): Likewise.
1865 * modules/unictype/property-unified-ideograph (Depends-on,
1866 configure.ac): Likewise.
1867 * modules/unictype/property-uppercase (Depends-on, configure.ac):
1869 * modules/unictype/property-variation-selector (Depends-on,
1870 configure.ac): Likewise.
1871 * modules/unictype/property-white-space (Depends-on, configure.ac):
1873 * modules/unictype/property-xid-continue (Depends-on, configure.ac):
1875 * modules/unictype/property-xid-start (Depends-on, configure.ac):
1877 * modules/unictype/property-zero-width (Depends-on, configure.ac):
1879 * modules/unictype/syntax-c-ident (Depends-on, configure.ac): Likewise.
1880 * modules/unictype/syntax-java-ident (Depends-on, configure.ac):
1883 2009-12-31 Bruno Haible <bruno@clisp.org>
1885 Remove unnecessary AC_C_INLINE invocation.
1886 * m4/popen.m4 (gl_PREREQ_POPEN): Don't invoke AC_C_INLINE. Not needed
1889 2009-12-31 Jim Meyering <meyering@redhat.com>
1891 maint.mk: don't require explicit gpg_key_ID in cfg.mk
1892 * top/maint.mk (gpg_key_ID): Derive key ID from signed release tag.
1893 With this change, we can all remove the gpg_key_ID = ... definition
1894 from our respective cfg.mk files.
1896 maint.mk: create announcement template in ~/, not in /tmp
1897 * top/maint.mk (emit_upload_commands): Adjust.
1898 (release-prep): Emit into ~/announce-..., not /tmp/announce-...
1899 Remove temporary file, .ci-msg.
1901 2009-12-31 Eric Blake <ebb9@byu.net>
1903 link-warning: always build headers with link warnings
1904 * modules/arpa_inet (Makefile.am): Always build replacement
1906 * modules/ctype (Makefile.am): Likewise.
1907 * modules/dirent (Makefile.am): Likewise.
1908 * modules/inttypes (Makefile.am): Likewise.
1909 * modules/langinfo (Makefile.am): Likewise.
1910 * modules/locale (Makefile.am): Likewise.
1911 * modules/spawn (Makefile.am): Likewise.
1912 * modules/sys_file (Makefile.am): Likewise.
1913 * modules/sys_ioctl (Makefile.am): Likewise.
1914 * modules/sys_select (Makefile.am): Likewise.
1915 * modules/sys_socket (Makefile.am): Likewise.
1916 * modules/sys_times (Makefile.am): Likewise.
1917 * modules/sys_utsname (Makefile.am): Likewise.
1918 * modules/sys_wait (Makefile.am): Likewise.
1919 * modules/wchar (Makefile.am): Likewise.
1920 * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET)
1921 (gl_ARPA_INET_H_DEFAULTS): Drop unneeded variable.
1922 * m4/ctype.m4 (gl_CTYPE_H_DEFAULTS): Likewise.
1923 * m4/isblank.m4 (gl_FUNC_ISBLANK): Likewise.
1924 * m4/dirent_h.m4 (gl_REPLACE_DIRENT_H, gl_DIRENT_H_DEFAULTS):
1926 * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
1927 * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
1928 * m4/locale_h.m4 (gl_REPLACE_LOCALE_H, gl_LOCALE_H_DEFAULTS):
1930 * m4/spawn_h.m4 (gl_REPLACE_SPAWN_H, gl_SPAWN_H_DEFAULTS):
1932 * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H): Likewise.
1933 * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H, gl_REPLACE_SYS_IOCTL_H)
1934 (gl_SYS_IOCTL_H_DEFAULTS): Likewise.
1935 * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
1936 * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
1937 * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H)
1938 (gl_SYS_UTSNAME_H_DEFAULTS): Likewise.
1939 * m4/wchar.m4 (gl_WCHAR_H, gl_REPLACE_WCHAR_H)
1940 (gl_WCHAR_H_DEFAULTS): Likewise.
1942 2009-12-31 Eric Blake <ebb9@byu.net>
1944 signal, spawn: use link warnings
1945 * lib/signal.in.h (sigset_t): Make unconditional.
1946 (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset)
1947 (sigpending, sigprocmask, sigaction): Add link warnings.
1948 * lib/spawn.in.h (posix_spawn, posix_spawnp, posix_spawnattr_init)
1949 (posix_spawnattr_destroy, posix_spawnattr_getsigdefault)
1950 (posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask)
1951 (posix_spawnattr_setsigmask, posix_spawnattr_getflags)
1952 (posix_spawnattr_setflags, posix_spawnattr_getpgroup)
1953 (posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy)
1954 (posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam)
1955 (posix_spawnattr_setschedparam, posix_spawn_file_actions_init)
1956 (posix_spawn_file_actions_destroy)
1957 (posix_spawn_file_actions_addopen)
1958 (posix_spawn_file_actions_addclose)
1959 (posix_spawwn_file_actions_adddup2): Likewise.
1960 * m4/signal_h.m4 (gl_SIGNAL_H): Guarantee uid_t.
1961 * tests/test-signal.c (main): Enhance test.
1963 spawn: improve wrapper support
1964 * m4/spawn_h.m4 (gl_SPAWN_H): Check for type existence.
1965 (gl_SPAWN_H_DEFAULTS): New defaults.
1966 * modules/spawn (Makefile.am): Substitute them.
1967 * lib/spawn.in.h: (posix_spawnattr_t, posix_spawn_file_actions_t):
1968 Only declare if missing or broken.
1970 sys_times, sys_utsname: use include_next
1971 * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Support wrapping an existing
1973 (gl_SYS_TIMES_H_DEFAULTS): Add another variable.
1974 * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H)
1975 (gl_SYS_UTSNAME_H_DEFAULTS): Likewise.
1976 * modules/sys_times (Depends-on): Add include_next.
1977 (Makefile.am): Substitute additional values.
1978 * modules/sys_utsname (Depends-on, Makefile.am): Likewise.
1979 * lib/sys_times.in.h (includes): Include native header, if
1981 * lib/sys_utsname.in.h (includes): Likewise.
1982 * tests/test-sys_times.c (main): Enhance test.
1984 fdutimensat: revert prior patch
1985 * modules/fdutimensat (Depends-on): Re-add inline; it is needed by
1987 Reported by Bruno Haible.
1989 2009-12-30 Eric Blake <ebb9@byu.net>
1991 sys_wait: drop link-warning dependency
1992 * modules/sys_wait (Depends-on, Makefile.am): Drop unneeded
1993 link-warning efforts.
1994 * lib/sys_wait.in.h: Likewise.
1996 fdutimensat: remove bogus dependency
1997 * modules/fdutimensat (Depends-on): Drop inline.
2000 * lib/unistd.in.h (linkat) [GNULIB_POSIXCHECK]: Fix typo.
2002 2009-12-30 Bruno Haible <bruno@clisp.org>
2004 Fix compilation error with Solaris cc.
2005 * lib/unicase/u8-is-invariant.c: Include <stdbool.h>.
2006 * lib/unicase/u16-is-invariant.c: Likewise.
2007 * lib/unicase/u32-is-invariant.c: Likewise.
2008 Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
2010 2009-12-30 Bruno Haible <bruno@clisp.org>
2013 * tests/test-localename.c (test_locale_name_thread): Skip unavailable
2015 Reported by Simon Josefsson <simon@josefsson.org>.
2017 2009-12-30 Bruno Haible <bruno@clisp.org>
2019 Fix compilation error on most platforms.
2020 * tests/test-localename.c (categories): Define only if HAVE_NEWLOCALE.
2021 Reported by Simon Josefsson <simon@josefsson.org>
2022 and Nelson H. F. Beebe <beebe@math.utah.edu>.
2024 2009-12-30 Eric Blake <ebb9@byu.net>
2026 futimens, utimensat: work around ntfs-3g bug
2027 * lib/utimensat.c (rpl_utimensat): Drop attempts to cache whether
2028 a ctime bug is present, and expand workaround to cover ntfs-3g.
2029 * lib/utimens.c (fdutimens, lutimens): Likewise.
2030 (utimensat_ctime_really, detect_ctime_bug): Drop cache mechanism.
2031 (validate_timespec): Adjust return value.
2032 * m4/futimens.m4 (gl_FUNC_FUTIMENS): Update comment.
2033 * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
2034 Reported by ctrn3e8 <ctrn3e8@gmail.com>.
2036 2009-12-29 Eric Blake <ebb9@byu.net>
2038 link-warning: make usage consistent
2039 * modules/ctype (Depends-on): Add link-warning.
2040 (Makefile.am): Update rules accordingly.
2041 * modules/langinfo (Depends-on, Makefile.am): Likewise.
2042 * modules/locale (Depends-on, Makefile.am): Likewise.
2043 * modules/sys_file (Makefile.am): Likewise.
2044 * modules/getopt-posix (Makefile.am): Delete unused link warning
2046 * lib/ctype.in.h (GL_LINK_WARNING): Ensure definition before use.
2047 * lib/langinfo.in.h (GL_LINK_WARNING): Likewise.
2048 * lib/locale.in.h (GL_LINK_WARNING): Likewise.
2049 * lib/sys_file.in.h (GL_LINK_WARNING): Likewise.
2051 stdio: remove unused variables
2052 * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Remove unused variables.
2053 * m4/fseeko.m4 (gl_FUNC_FSEEKO): Likewise.
2054 * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
2056 tests: test more substitute headers
2057 * modules/ctype-tests: New file.
2058 * modules/dirent-tests: Likewise.
2059 * modules/spawn-tests: Likewise.
2060 * modules/sys_file-tests: Likewise.
2061 * modules/sys_ioctl-tests: Likewise.
2062 * modules/sys_wait-tests: Likewise.
2063 * tests/test-ctype.c: Likewise.
2064 * tests/test-dirent.c: Likewise.
2065 * tests/test-spawn.c: Likewise.
2066 * tests/test-sys_file.c: Likewise.
2067 * tests/test-sys_ioctl.c: Likewise.
2068 * tests/test-sys_wait.c: Likewise.
2069 * m4/spawn_h.m4 (gl_SPAWN_H): Replace header if it is missing.
2070 * lib/sys_file.in.h (LOCK_SH, LOCK_EX, LOCK_UN, LOCK_NB): Provide
2071 whether or not flock is in use.
2073 tests: remove License section from module
2074 * modules/arpa_inet-tests: Remove unneeded section.
2075 * modules/byteswap-tests: Likewise.
2076 * modules/ceilf-tests: Likewise.
2077 * modules/ceill-tests: Likewise.
2078 * modules/crypto/des-tests: Likewise.
2079 * modules/crypto/gc-arcfour-tests: Likewise.
2080 * modules/crypto/gc-arctwo-tests: Likewise.
2081 * modules/crypto/gc-des-tests: Likewise.
2082 * modules/crypto/gc-hmac-md5-tests: Likewise.
2083 * modules/crypto/gc-hmac-sha1-tests: Likewise.
2084 * modules/crypto/gc-md2-tests: Likewise.
2085 * modules/crypto/gc-md4-tests: Likewise.
2086 * modules/crypto/gc-md5-tests: Likewise.
2087 * modules/crypto/gc-pbkdf2-sha1-tests: Likewise.
2088 * modules/crypto/gc-rijndael-tests: Likewise.
2089 * modules/crypto/gc-sha1-tests: Likewise.
2090 * modules/crypto/gc-tests: Likewise.
2091 * modules/crypto/md2-tests: Likewise.
2092 * modules/crypto/md4-tests: Likewise.
2093 * modules/fcntl-h-tests: Likewise.
2094 * modules/floorf-tests: Likewise.
2095 * modules/floorl-tests: Likewise.
2096 * modules/frexp-nolibm-tests: Likewise.
2097 * modules/frexp-tests: Likewise.
2098 * modules/frexpl-nolibm-tests: Likewise.
2099 * modules/frexpl-tests: Likewise.
2100 * modules/getaddrinfo-tests: Likewise.
2101 * modules/inttypes-tests: Likewise.
2102 * modules/isfinite-tests: Likewise.
2103 * modules/isinf-tests: Likewise.
2104 * modules/ldexpl-tests: Likewise.
2105 * modules/locale-tests: Likewise.
2106 * modules/math-tests: Likewise.
2107 * modules/netdb-tests: Likewise.
2108 * modules/netinet_in-tests: Likewise.
2109 * modules/printf-frexp-tests: Likewise.
2110 * modules/printf-frexpl-tests: Likewise.
2111 * modules/priv-set-tests: Likewise.
2112 * modules/random_r-tests: Likewise.
2113 * modules/round-tests: Likewise.
2114 * modules/roundf-tests: Likewise.
2115 * modules/roundl-tests: Likewise.
2116 * modules/search-tests: Likewise.
2117 * modules/select-tests: Likewise.
2118 * modules/signal-tests: Likewise.
2119 * modules/stdbool-tests: Likewise.
2120 * modules/stddef-tests: Likewise.
2121 * modules/stdint-tests: Likewise.
2122 * modules/stdio-tests: Likewise.
2123 * modules/stdlib-tests: Likewise.
2124 * modules/string-tests: Likewise.
2125 * modules/strings-tests: Likewise.
2126 * modules/sys_select-tests: Likewise.
2127 * modules/sys_socket-tests: Likewise.
2128 * modules/sys_stat-tests: Likewise.
2129 * modules/sys_time-tests: Likewise.
2130 * modules/sys_utsname-tests: Likewise.
2131 * modules/sysexits-tests: Likewise.
2132 * modules/time-tests: Likewise.
2133 * modules/trunc-tests: Likewise.
2134 * modules/truncf-tests: Likewise.
2135 * modules/truncl-tests: Likewise.
2136 * modules/tsearch-tests: Likewise.
2137 * modules/unistd-tests: Likewise.
2138 * modules/wchar-tests: Likewise.
2139 * modules/wctype-tests: Likewise.
2141 tests: fix license on several tests
2142 * tests/test-des.c: Update to GPLv3+.
2143 * tests/test-flock.c: Likewise.
2144 * tests/test-fsync.c: Likewise.
2145 * tests/test-futimens.h: Likewise.
2146 * tests/test-gc-arcfour.c: Likewise.
2147 * tests/test-gc-arctwo.c: Likewise.
2148 * tests/test-gc-des.c: Likewise.
2149 * tests/test-gc-hmac-md5.c: Likewise.
2150 * tests/test-gc-hmac-sha1.c: Likewise.
2151 * tests/test-gc-md2.c: Likewise.
2152 * tests/test-gc-md4.c: Likewise.
2153 * tests/test-gc-md5.c: Likewise.
2154 * tests/test-gc-pbkdf2-sha1.c: Likewise.
2155 * tests/test-gc-rijndael.c: Likewise.
2156 * tests/test-gc-sha1.c: Likewise.
2157 * tests/test-gc.c: Likewise.
2158 * tests/test-getcwd.c: Likewise.
2159 * tests/test-link.c: Likewise.
2160 * tests/test-link.h: Likewise.
2161 * tests/test-lutimens.h: Likewise.
2162 * tests/test-md2.c: Likewise.
2163 * tests/test-md4.c: Likewise.
2164 * tests/test-mkdir.h: Likewise.
2165 * tests/test-rename.c: Likewise.
2166 * tests/test-rename.h: Likewise.
2167 * tests/test-safe-alloc.c: Likewise.
2168 * tests/test-utimens-common.h: Likewise.
2169 * tests/test-utimens.h: Likewise.
2171 maint: sync license texts
2172 * config/srclist.txt: Add gpl-1.3.texi, lgpl-1.3.texi.
2173 * doc/gpl-3.0.texi: Revert copyright year update.
2174 * doc/lgpl-3.0.texi: Likewise.
2176 2009-12-29 Jim Meyering <meyering@redhat.com>
2178 update nearly all FSF copyright year lists to include 2009
2179 The files named by the following are exempted:
2180 grep -v '^#' config/srclist.txt|grep -v '^$' | while read src dst; do
2181 test -f "$dst" && { echo "$dst"; continue; }
2182 test -d "$dst" || continue
2183 echo "$dst"/$(basename "$src")
2185 git ls-files tests/unictype >> exempt
2186 In the remaining files, convert to all-interval notation if
2187 - there is already at least one year interval like 2000-2003
2188 - the file is maintained by me
2189 - the file is in lib/uni*/, where that style already prevails
2190 Otherwise, use update-copyright's default.
2192 2009-12-29 Simon Josefsson <simon@josefsson.org>
2193 and Eric Blake <ebb9@byu.net>
2195 tests: don't require debug system() to pass
2196 * tests/test-lstat.h (test_lstat_func): Move debug cleanup...
2197 * tests/test-rmdir.h (test_rmdir_func): Likewise.
2198 * tests/test-unlink.h (test_unlink_func): Likewise.
2199 * tests/test-fstatat.c (main): ...into callers.
2200 * tests/test-lstat.c (main): Likewise.
2201 * tests/test-rmdir.c (main): Likewise.
2202 * tests/test-unlink.c (main): Likewise.
2203 * tests/test-unlinkat.c (main): Likewise.
2204 * tests/test-areadlink-with-size.c (main): Don't require a
2205 debug-only system call to pass, aiding cross-testing to mingw.
2206 * tests/test-areadlink.c (main): Likewise.
2207 * tests/test-areadlinkat-with-size.c (main): Likewise.
2208 * tests/test-areadlinkat.c (main): Likewise.
2209 * tests/test-canonicalize-lgpl.c (main): Likewise.
2210 * tests/test-canonicalize.c (main): Likewise.
2211 * tests/test-chown.c (main): Likewise.
2212 * tests/test-fchownat.c (main): Likewise.
2213 * tests/test-lchown.c (main): Likewise.
2214 * tests/test-fdutimensat.c (main): Likewise.
2215 * tests/test-futimens.c (main): Likewise.
2216 * tests/test-link.c (main): Likewise.
2217 * tests/test-linkat.c (main): Likewise.
2218 * tests/test-mkdir.c (main): Likewise.
2219 * tests/test-mkdirat.c (main): Likewise.
2220 * tests/test-mkfifo.c (main): Likewise.
2221 * tests/test-mkfifoat.c (main): Likewise.
2222 * tests/test-mknod.c (main): Likewise.
2223 * tests/test-readlink.c (main): Likewise.
2224 * tests/test-remove.c (main): Likewise.
2225 * tests/test-rename.c (main): Likewise.
2226 * tests/test-renameat.c (main): Likewise.
2227 * tests/test-symlink.c (main): Likewise.
2228 * tests/test-symlinkat.c (main): Likewise.
2229 * tests/test-utimens.c (main): Likewise.
2230 * tests/test-utimensat.c (main): Likewise.
2232 2009-12-29 Simon Josefsson <simon@josefsson.org>
2234 * modules/selinux-h (selinux/selinux.h, selinux/context.h): Depend
2235 on $(UNUSED_PARAMETER_H) to avoid build failure.
2237 2009-12-28 Jim Meyering <meyering@redhat.com>
2239 update-copyright: you may specify a max. line length other than 72
2240 * build-aux/update-copyright: Honor $UPDATE_COPYRIGHT_MAX_LINE_LENGTH.
2242 maint: use consistent FSF copyright line syntax
2243 * lib/posixtm.c: Add missing comma in FSF copyright line.
2244 * lib/posixtm.h: Likewise.
2245 * lib/getugroups.c: Add missing ", Inc.".
2247 pmccabe2html: emit consistent FSF copyright; remove trailing blanks
2248 * build-aux/pmccabe2html: Insert comma before "Inc." in emitted
2249 FSF copyright line. Remove trailing blanks.
2251 2009-12-28 Eric Blake <ebb9@byu.net>
2253 test-dup2: reduce dependencies
2254 * modules/cloexec (Configure.ac): Set witness.
2255 * modules/dup2-tests (Depends-on): Drop cloexec.
2256 * tests/test-dup2.c (main): Skip portion of test if cloexec module
2258 Suggested by Bruno Haible.
2260 2009-12-26 Bruno Haible <bruno@clisp.org>
2262 Remove an unneeded dependency.
2263 * modules/fseterr (Depends-on): Remove dup2.
2265 2009-12-26 Eric Blake <ebb9@byu.net>
2267 tests: use macros.h in more places
2268 * tests/macros.h (ASSERT): Depend on ASSERT_STREAM.
2269 (ASSERT_STREAM): Provide default of stderr.
2270 * tests/test-dirent-safer.c: Include macros.h, using alternate
2271 stream for assertions.
2272 * tests/test-dup-safer.c: Likewise.
2273 * tests/test-freopen-safer.c: Likewise.
2274 * tests/test-getopt.c: Likewise.
2275 * tests/test-openat-safer.c: Likewise.
2276 * tests/test-pipe.c: Likewise.
2277 * tests/test-popen-safer.c: Likewise.
2278 * modules/dirent-safer-tests (Files): Include macros.h.
2279 * modules/unistd-safer-tests (Files): Likewise.
2280 * modules/freopen-safer-tests (Files): Likewise.
2281 * modules/getopt-posix-tests (Files): Likewise.
2282 * modules/openat-safer-tests (Files): Likewise.
2283 * modules/pipe-tests (Files): Likewise.
2285 2009-12-26 Bruno Haible <bruno@clisp.org>
2287 javacomp: Portability fix.
2288 * m4/javacomp.m4 (gt_JAVACOMP): Fix creation of conftestver.class so
2289 that it also works on Solaris.
2291 2009-12-26 Bruno Haible <bruno@clisp.org>
2293 localename: Fix storage allocation of gl_locale_name_thread's result.
2294 * lib/localename.c (SIZE_BITS, string_hash, struct hash_node,
2295 HASH_TABLE_SIZE, struniq_hash_table, struniq_lock, struniq): Define on
2296 all platforms that have 'uselocale'.
2297 (gl_locale_name_thread_unsafe): New function, extracted from
2298 gl_locale_name_thread.
2299 (gl_locale_name_thread): Call struniq on all platforms that have
2301 * tests/test-localename.c (test_locale_name_thread): Check that the
2302 resulting strings are permanently allocated.
2303 * modules/localename-tests (Depends-on): Add strdup.
2305 2009-12-26 Bruno Haible <bruno@clisp.org>
2307 * tests/test-localename.c (categories): Fill in the strings.
2309 2009-12-26 Jim Meyering <meyering@redhat.com>
2311 isdir: complete the removal of m4/isdir.m4
2312 * modules/isdir (configure.ac): Remove reference to gl_ISDIR.
2314 isdir: clean up, since at least grep still uses it
2315 * lib/isdir.c: Include "isdir.h".
2316 (S_ISDIR): Remove now-unneeded definition.
2317 * modules/isdir (Files): Add lib/isdir.h.
2318 * lib/isdir.h: New file, with declaration.
2319 * m4/isdir.m4: Remove file -- unneeded.
2321 2009-12-25 Bruno Haible <bruno@clisp.org>
2323 selinux-h: Make generated .h files standalone.
2324 * lib/se-context.in.h: Arrange to include _GL_UNUSED_PARAMETER
2325 definition. Use _GL_UNUSED_PARAMETER instead of _GL_UNUSED.
2326 * lib/se-selinux.in.h: Likewise.
2327 * modules/selinux-h (Depends-on): Add unused-parameter.
2328 (Makefile.am): Insert definition of _GL_UNUSED_PARAMETER into
2329 selinux/selinux.h and selinux/context.h.
2330 Suggested by Eric Blake.
2332 2009-12-25 Bruno Haible <bruno@clisp.org>
2334 Move gl_FCNTL_O_FLAGS to a separate .m4 file.
2335 * m4/fcntl-o.m4: New file, extracted from m4/fcntl_h.m4.
2336 * m4/fcntl_h.m4 (gl_FCNTL_O_FLAGS): Remove macro.
2337 * modules/fcntl-h (Files): Add m4/fcntl-o.m4.
2338 * modules/localcharset (Files): Likewise. Remove m4/fcntl_h.m4.
2340 2009-12-24 Bruno Haible <bruno@clisp.org>
2342 openat: Fix warning.
2343 * lib/openat-proc.c: Include <unistd.h>.
2345 2009-12-24 Bruno Haible <bruno@clisp.org>
2347 New module 'unused-parameter'.
2348 * build-aux/unused-parameter.h: New file, extracted from earlier
2350 * modules/unused-parameter: New file.
2351 * lib/unistr.h: Include unused-parameter.h.
2352 (u32_mbtouc_unsafe, u32_mbtouc): Use _GL_UNUSED_PARAMETER instead of
2354 * modules/unistr/base (Depends-on): Add unused-parameter.
2356 2009-12-24 Bruno Haible <bruno@clisp.org>
2358 Add missing dependencies to 'extensions' module.
2359 * m4/extensions.m4: Add comment.
2360 * modules/accept4 (Depends-on): Add extensions.
2361 * modules/dup3 (Depends-on): Likewise.
2362 * modules/fcntl (Depends-on): Likewise.
2363 * modules/futimens (Depends-on): Likewise.
2364 * modules/mknod (Depends-on): Likewise.
2365 * modules/pipe2 (Depends-on): Likewise.
2366 * modules/stat-time (Depends-on): Likewise.
2367 * modules/strcasestr-simple (Depends-on): Likewise.
2368 * modules/strsignal (Depends-on): Likewise.
2369 * modules/utimensat (Depends-on): Likewise.
2370 * modules/localcharset (Depends-on): Likewise. Needed because of
2372 * modules/wcrtomb (Depends-on): Likewise. Needed because of
2374 * modules/wcsnrtombs (Depends-on): Likewise.
2375 * modules/wcsrtombs (Depends-on): Likewise.
2377 2009-12-24 Bruno Haible <bruno@clisp.org>
2379 binary-io: Avoid gcc warning due to SET_BINARY.
2380 * lib/binary-io.h (SET_BINARY): Cast the result to void.
2381 Reported by Jim Meyering <jim@meyering.net>. Suggestion by Eric Blake.
2383 2009-12-24 Bruno Haible <bruno@clisp.org>
2385 Avoid future namespace pollution on glibc systems.
2386 * lib/arpa_inet.in.h: Don't include <sys/socket.h> on glibc systems.
2387 * lib/sys_ioctl.in.h: Don't include <unistd.h> on glibc systems.
2388 * lib/sys_select.in.h: Don't include <sys/time.h> and <string.h> on
2391 2009-12-24 Bruno Haible <bruno@clisp.org>
2393 Refactor common macros used in tests.
2394 * tests/macros.h: New file.
2395 * tests/test-areadlink.c: Include macros.h. Don't include <stdio.h>
2396 and/or <stdlib.h>, if appropriate.
2397 (ASSERT, SIZEOF): Remove macros.
2398 * tests/test-areadlink-with-size.c: Likewise.
2399 * tests/test-areadlinkat.c: Likewise.
2400 * tests/test-areadlinkat-with-size.c: Likewise.
2401 * tests/test-argmatch.c: Likewise.
2402 * tests/test-argv-iter.c: Likewise.
2403 * tests/test-array-mergesort.c: Likewise.
2404 * tests/test-array_list.c: Likewise.
2405 * tests/test-array_oset.c: Likewise.
2406 * tests/test-avltree_list.c: Likewise.
2407 * tests/test-avltree_oset.c: Likewise.
2408 * tests/test-avltreehash_list.c: Likewise.
2409 * tests/test-base64.c: Likewise.
2410 * tests/test-binary-io.c: Likewise.
2411 * tests/test-bitrotate.c: Likewise.
2412 * tests/test-btowc.c: Likewise.
2413 * tests/test-byteswap.c: Likewise.
2414 * tests/test-c-ctype.c: Likewise.
2415 * tests/test-c-stack.c: Likewise.
2416 * tests/test-c-strcasecmp.c: Likewise.
2417 * tests/test-c-strcasestr.c: Likewise.
2418 * tests/test-c-strncasecmp.c: Likewise.
2419 * tests/test-c-strstr.c: Likewise.
2420 * tests/test-canonicalize-lgpl.c: Likewise.
2421 * tests/test-canonicalize.c: Likewise.
2422 * tests/test-carray_list.c: Likewise.
2423 * tests/test-ceilf1.c: Likewise.
2424 * tests/test-ceilf2.c: Likewise.
2425 * tests/test-ceill.c: Likewise.
2426 * tests/test-chown.c: Likewise.
2427 * tests/test-cloexec.c: Likewise.
2428 * tests/test-copy-acl.c: Likewise.
2429 * tests/test-copy-file.c: Likewise.
2430 * tests/test-count-one-bits.c: Likewise.
2431 * tests/test-dprintf-posix.c: Likewise.
2432 * tests/test-dup2.c: Likewise.
2433 * tests/test-dup3.c: Likewise.
2434 * tests/test-duplocale.c: Likewise.
2435 * tests/test-fbufmode.c: Likewise.
2436 * tests/test-fchdir.c: Likewise.
2437 * tests/test-fchownat.c: Likewise.
2438 * tests/test-fcntl-safer.c: Likewise.
2439 * tests/test-fcntl.c: Likewise.
2440 * tests/test-fdopendir.c: Likewise.
2441 * tests/test-fdutimensat.c: Likewise.
2442 * tests/test-fflush2.c: Likewise.
2443 * tests/test-file-has-acl.c: Likewise.
2444 * tests/test-filevercmp.c: Likewise.
2445 * tests/test-flock.c: Likewise.
2446 * tests/test-floorf1.c: Likewise.
2447 * tests/test-floorf2.c: Likewise.
2448 * tests/test-floorl.c: Likewise.
2449 * tests/test-fnmatch.c: Likewise.
2450 * tests/test-fopen.h: Likewise.
2451 * tests/test-fpending.c: Likewise.
2452 * tests/test-fprintf-posix.c: Likewise.
2453 * tests/test-fpurge.c: Likewise.
2454 * tests/test-freadable.c: Likewise.
2455 * tests/test-freadahead.c: Likewise.
2456 * tests/test-freading.c: Likewise.
2457 * tests/test-freadptr.c: Likewise.
2458 * tests/test-freadptr2.c: Likewise.
2459 * tests/test-freadseek.c: Likewise.
2460 * tests/test-freopen.c: Likewise.
2461 * tests/test-frexp.c: Likewise.
2462 * tests/test-frexpl.c: Likewise.
2463 * tests/test-fseek.c: Likewise.
2464 * tests/test-fseeko.c: Likewise.
2465 * tests/test-fstatat.c: Likewise.
2466 * tests/test-fstrcmp.c: Likewise.
2467 * tests/test-fsync.c: Likewise.
2468 * tests/test-ftell.c: Likewise.
2469 * tests/test-ftello.c: Likewise.
2470 * tests/test-func.c: Likewise.
2471 * tests/test-futimens.c: Likewise.
2472 * tests/test-fwritable.c: Likewise.
2473 * tests/test-fwriting.c: Likewise.
2474 * tests/test-getcwd.c: Likewise.
2475 * tests/test-getdate.c: Likewise.
2476 * tests/test-getdelim.c: Likewise.
2477 * tests/test-getdtablesize.c: Likewise.
2478 * tests/test-getgroups.c: Likewise.
2479 * tests/test-getline.c: Likewise.
2480 * tests/test-getndelim2.c: Likewise.
2481 * tests/test-glob.c: Likewise.
2482 * tests/test-hash.c: Likewise.
2483 * tests/test-i-ring.c: Likewise.
2484 * tests/test-iconv-utf.c: Likewise.
2485 * tests/test-iconv.c: Likewise.
2486 * tests/test-idpriv-drop.c: Likewise.
2487 * tests/test-idpriv-droptemp.c: Likewise.
2488 * tests/test-inet_ntop.c: Likewise.
2489 * tests/test-inet_pton.c: Likewise.
2490 * tests/test-isblank.c: Likewise.
2491 * tests/test-isfinite.c: Likewise.
2492 * tests/test-isinf.c: Likewise.
2493 * tests/test-isnan.c: Likewise.
2494 * tests/test-isnand.h: Likewise.
2495 * tests/test-isnanf.h: Likewise.
2496 * tests/test-isnanl.h: Likewise.
2497 * tests/test-lchown.c: Likewise.
2498 * tests/test-ldexpl.c: Likewise.
2499 * tests/test-link.c: Likewise.
2500 * tests/test-linkat.c: Likewise.
2501 * tests/test-linked_list.c: Likewise.
2502 * tests/test-linkedhash_list.c: Likewise.
2503 * tests/test-localename.c: Likewise.
2504 * tests/test-lseek.c: Likewise.
2505 * tests/test-lstat.c: Likewise.
2506 * tests/test-mbmemcasecmp.c: Likewise.
2507 * tests/test-mbmemcasecoll.c: Likewise.
2508 * tests/test-mbrtowc.c: Likewise.
2509 * tests/test-mbscasecmp.c: Likewise.
2510 * tests/test-mbscasestr1.c: Likewise.
2511 * tests/test-mbscasestr2.c: Likewise.
2512 * tests/test-mbscasestr3.c: Likewise.
2513 * tests/test-mbscasestr4.c: Likewise.
2514 * tests/test-mbschr.c: Likewise.
2515 * tests/test-mbscspn.c: Likewise.
2516 * tests/test-mbsinit.c: Likewise.
2517 * tests/test-mbsncasecmp.c: Likewise.
2518 * tests/test-mbsnrtowcs.c: Likewise.
2519 * tests/test-mbspbrk.c: Likewise.
2520 * tests/test-mbspcasecmp.c: Likewise.
2521 * tests/test-mbsrchr.c: Likewise.
2522 * tests/test-mbsrtowcs.c: Likewise.
2523 * tests/test-mbsspn.c: Likewise.
2524 * tests/test-mbsstr1.c: Likewise.
2525 * tests/test-mbsstr2.c: Likewise.
2526 * tests/test-mbsstr3.c: Likewise.
2527 * tests/test-memchr.c: Likewise.
2528 * tests/test-memchr2.c: Likewise.
2529 * tests/test-memcmp.c: Likewise.
2530 * tests/test-memmem.c: Likewise.
2531 * tests/test-memrchr.c: Likewise.
2532 * tests/test-mkdir.c: Likewise.
2533 * tests/test-mkdirat.c: Likewise.
2534 * tests/test-mkfifo.c: Likewise.
2535 * tests/test-mkfifoat.c: Likewise.
2536 * tests/test-mknod.c: Likewise.
2537 * tests/test-nanosleep.c: Likewise.
2538 * tests/test-nl_langinfo.c: Likewise.
2539 * tests/test-obstack-printf.c: Likewise.
2540 * tests/test-open.c: Likewise.
2541 * tests/test-openat.c: Likewise.
2542 * tests/test-pipe-filter-gi1.c: Likewise.
2543 * tests/test-pipe-filter-gi2-main.c: Likewise.
2544 * tests/test-pipe-filter-ii1.c: Likewise.
2545 * tests/test-pipe-filter-ii2-main.c: Likewise.
2546 * tests/test-pipe2.c: Likewise.
2547 * tests/test-popen.h: Likewise.
2548 * tests/test-posixtm.c: Likewise.
2549 * tests/test-pread.c: Likewise.
2550 * tests/test-printf-frexp.c: Likewise.
2551 * tests/test-printf-frexpl.c: Likewise.
2552 * tests/test-printf-posix.c: Likewise.
2553 * tests/test-priv-set.c: Likewise.
2554 * tests/test-quotearg.c: Likewise.
2555 * tests/test-random_r.c: Likewise.
2556 * tests/test-rawmemchr.c: Likewise.
2557 * tests/test-rbtree_list.c: Likewise.
2558 * tests/test-rbtree_oset.c: Likewise.
2559 * tests/test-rbtreehash_list.c: Likewise.
2560 * tests/test-readlink.c: Likewise.
2561 * tests/test-remove.c: Likewise.
2562 * tests/test-rename.c: Likewise.
2563 * tests/test-renameat.c: Likewise.
2564 * tests/test-rmdir.c: Likewise.
2565 * tests/test-round1.c: Likewise.
2566 * tests/test-roundf1.c: Likewise.
2567 * tests/test-roundl.c: Likewise.
2568 * tests/test-safe-alloc.c: Likewise.
2569 * tests/test-sameacls.c: Likewise.
2570 * tests/test-set-mode-acl.c: Likewise.
2571 * tests/test-setenv.c: Likewise.
2572 * tests/test-sigaction.c: Likewise.
2573 * tests/test-signbit.c: Likewise.
2574 * tests/test-sleep.c: Likewise.
2575 * tests/test-snprintf-posix.c: Likewise.
2576 * tests/test-snprintf.c: Likewise.
2577 * tests/test-sprintf-posix.c: Likewise.
2578 * tests/test-stat-time.c: Likewise.
2579 * tests/test-stat.c: Likewise.
2580 * tests/test-strcasestr.c: Likewise.
2581 * tests/test-strchrnul.c: Likewise.
2582 * tests/test-strerror.c: Likewise.
2583 * tests/test-striconv.c: Likewise.
2584 * tests/test-striconveh.c: Likewise.
2585 * tests/test-striconveha.c: Likewise.
2586 * tests/test-strsignal.c: Likewise.
2587 * tests/test-strstr.c: Likewise.
2588 * tests/test-strtod.c: Likewise.
2589 * tests/test-strverscmp.c: Likewise.
2590 * tests/test-symlink.c: Likewise.
2591 * tests/test-symlinkat.c: Likewise.
2592 * tests/test-trunc1.c: Likewise.
2593 * tests/test-trunc2.c: Likewise.
2594 * tests/test-truncf1.c: Likewise.
2595 * tests/test-truncf2.c: Likewise.
2596 * tests/test-truncl.c: Likewise.
2597 * tests/test-uname.c: Likewise.
2598 * tests/test-unlink.c: Likewise.
2599 * tests/test-unlinkat.c: Likewise.
2600 * tests/test-unsetenv.c: Likewise.
2601 * tests/test-usleep.c: Likewise.
2602 * tests/test-utimens.c: Likewise.
2603 * tests/test-utimensat.c: Likewise.
2604 * tests/test-vasnprintf-posix.c: Likewise.
2605 * tests/test-vasnprintf-posix2.c: Likewise.
2606 * tests/test-vasnprintf.c: Likewise.
2607 * tests/test-vasprintf-posix.c: Likewise.
2608 * tests/test-vasprintf.c: Likewise.
2609 * tests/test-vdprintf-posix.c: Likewise.
2610 * tests/test-vfprintf-posix.c: Likewise.
2611 * tests/test-vprintf-posix.c: Likewise.
2612 * tests/test-vsnprintf-posix.c: Likewise.
2613 * tests/test-vsnprintf.c: Likewise.
2614 * tests/test-vsprintf-posix.c: Likewise.
2615 * tests/test-wcrtomb.c: Likewise.
2616 * tests/test-wcsnrtombs.c: Likewise.
2617 * tests/test-wcsrtombs.c: Likewise.
2618 * tests/test-wctype.c: Likewise.
2619 * tests/test-wcwidth.c: Likewise.
2620 * tests/test-xfprintf-posix.c: Likewise.
2621 * tests/test-xmemdup0.c: Likewise.
2622 * tests/test-xprintf-posix.c: Likewise.
2623 * tests/test-xvasprintf.c: Likewise.
2624 * tests/unicase/test-locale-language.c: Likewise.
2625 * tests/unicase/test-mapping-part1.h: Likewise.
2626 * tests/unicase/test-predicate-part1.h: Likewise.
2627 * tests/unicase/test-u8-casecmp.c: Likewise.
2628 * tests/unicase/test-u8-casecoll.c: Likewise.
2629 * tests/unicase/test-u8-casefold.c: Likewise.
2630 * tests/unicase/test-u8-is-cased.c: Likewise.
2631 * tests/unicase/test-u8-is-casefolded.c: Likewise.
2632 * tests/unicase/test-u8-is-lowercase.c: Likewise.
2633 * tests/unicase/test-u8-is-titlecase.c: Likewise.
2634 * tests/unicase/test-u8-is-uppercase.c: Likewise.
2635 * tests/unicase/test-u8-tolower.c: Likewise.
2636 * tests/unicase/test-u8-totitle.c: Likewise.
2637 * tests/unicase/test-u8-toupper.c: Likewise.
2638 * tests/unicase/test-u16-casecmp.c: Likewise.
2639 * tests/unicase/test-u16-casecoll.c: Likewise.
2640 * tests/unicase/test-u16-casefold.c: Likewise.
2641 * tests/unicase/test-u16-is-cased.c: Likewise.
2642 * tests/unicase/test-u16-is-casefolded.c: Likewise.
2643 * tests/unicase/test-u16-is-lowercase.c: Likewise.
2644 * tests/unicase/test-u16-is-titlecase.c: Likewise.
2645 * tests/unicase/test-u16-is-uppercase.c: Likewise.
2646 * tests/unicase/test-u16-tolower.c: Likewise.
2647 * tests/unicase/test-u16-totitle.c: Likewise.
2648 * tests/unicase/test-u16-toupper.c: Likewise.
2649 * tests/unicase/test-u32-casecmp.c: Likewise.
2650 * tests/unicase/test-u32-casecoll.c: Likewise.
2651 * tests/unicase/test-u32-casefold.c: Likewise.
2652 * tests/unicase/test-u32-is-cased.c: Likewise.
2653 * tests/unicase/test-u32-is-casefolded.c: Likewise.
2654 * tests/unicase/test-u32-is-lowercase.c: Likewise.
2655 * tests/unicase/test-u32-is-titlecase.c: Likewise.
2656 * tests/unicase/test-u32-is-uppercase.c: Likewise.
2657 * tests/unicase/test-u32-tolower.c: Likewise.
2658 * tests/unicase/test-u32-totitle.c: Likewise.
2659 * tests/unicase/test-u32-toupper.c: Likewise.
2660 * tests/unicase/test-ulc-casecmp.c: Likewise.
2661 * tests/unicase/test-ulc-casecoll.c: Likewise.
2662 * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
2663 * tests/uniconv/test-u8-conv-to-enc.c: Likewise.
2664 * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
2665 * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
2666 * tests/uniconv/test-u16-conv-from-enc.c: Likewise.
2667 * tests/uniconv/test-u16-conv-to-enc.c: Likewise.
2668 * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
2669 * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
2670 * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
2671 * tests/uniconv/test-u32-conv-to-enc.c: Likewise.
2672 * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
2673 * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
2674 * tests/unictype/test-bidi_byname.c: Likewise.
2675 * tests/unictype/test-bidi_name.c: Likewise.
2676 * tests/unictype/test-bidi_of.c: Likewise.
2677 * tests/unictype/test-bidi_test.c: Likewise.
2678 * tests/unictype/test-block_list.c: Likewise.
2679 * tests/unictype/test-block_of.c: Likewise.
2680 * tests/unictype/test-block_test.c: Likewise.
2681 * tests/unictype/test-categ_and.c: Likewise.
2682 * tests/unictype/test-categ_and_not.c: Likewise.
2683 * tests/unictype/test-categ_byname.c: Likewise.
2684 * tests/unictype/test-categ_name.c: Likewise.
2685 * tests/unictype/test-categ_none.c: Likewise.
2686 * tests/unictype/test-categ_of.c: Likewise.
2687 * tests/unictype/test-categ_or.c: Likewise.
2688 * tests/unictype/test-categ_test_withtable.c: Likewise.
2689 * tests/unictype/test-combining.c: Likewise.
2690 * tests/unictype/test-decdigit.c: Likewise.
2691 * tests/unictype/test-digit.c: Likewise.
2692 * tests/unictype/test-mirror.c: Likewise.
2693 * tests/unictype/test-numeric.c: Likewise.
2694 * tests/unictype/test-pr_byname.c: Likewise.
2695 * tests/unictype/test-pr_test.c: Likewise.
2696 * tests/unictype/test-predicate-part1.h: Likewise.
2697 * tests/unictype/test-scripts.c: Likewise.
2698 * tests/unictype/test-sy_c_ident.c: Likewise.
2699 * tests/unictype/test-sy_java_ident.c: Likewise.
2700 * tests/unilbrk/test-u8-possible-linebreaks.c: Likewise.
2701 * tests/unilbrk/test-u8-width-linebreaks.c: Likewise.
2702 * tests/unilbrk/test-u16-possible-linebreaks.c: Likewise.
2703 * tests/unilbrk/test-u16-width-linebreaks.c: Likewise.
2704 * tests/unilbrk/test-u32-possible-linebreaks.c: Likewise.
2705 * tests/unilbrk/test-u32-width-linebreaks.c: Likewise.
2706 * tests/unilbrk/test-ulc-possible-linebreaks.c: Likewise.
2707 * tests/unilbrk/test-ulc-width-linebreaks.c: Likewise.
2708 * tests/uninorm/test-canonical-decomposition.c: Likewise.
2709 * tests/uninorm/test-compat-decomposition.c: Likewise.
2710 * tests/uninorm/test-composition.c: Likewise.
2711 * tests/uninorm/test-decomposing-form.c: Likewise.
2712 * tests/uninorm/test-decomposition.c: Likewise.
2713 * tests/uninorm/test-u8-nfc.c: Likewise.
2714 * tests/uninorm/test-u8-nfd.c: Likewise.
2715 * tests/uninorm/test-u8-nfkc.c: Likewise.
2716 * tests/uninorm/test-u8-nfkd.c: Likewise.
2717 * tests/uninorm/test-u8-normcmp.c: Likewise.
2718 * tests/uninorm/test-u8-normcoll.c: Likewise.
2719 * tests/uninorm/test-u16-nfc.c: Likewise.
2720 * tests/uninorm/test-u16-nfd.c: Likewise.
2721 * tests/uninorm/test-u16-nfkc.c: Likewise.
2722 * tests/uninorm/test-u16-nfkd.c: Likewise.
2723 * tests/uninorm/test-u16-normcmp.c: Likewise.
2724 * tests/uninorm/test-u16-normcoll.c: Likewise.
2725 * tests/uninorm/test-u32-nfc.c: Likewise.
2726 * tests/uninorm/test-u32-nfd.c: Likewise.
2727 * tests/uninorm/test-u32-nfkc.c: Likewise.
2728 * tests/uninorm/test-u32-nfkd.c: Likewise.
2729 * tests/uninorm/test-u32-normalize-big.c: Likewise.
2730 * tests/uninorm/test-u32-normcmp.c: Likewise.
2731 * tests/uninorm/test-u32-normcoll.c: Likewise.
2732 * tests/uninorm/test-uninorm-filter-nfc.c: Likewise.
2733 * tests/unistdio/test-u8-asnprintf1.c: Likewise.
2734 * tests/unistdio/test-u8-vasnprintf1.c: Likewise.
2735 * tests/unistdio/test-u8-vasnprintf2.c: Likewise.
2736 * tests/unistdio/test-u8-vasnprintf3.c: Likewise.
2737 * tests/unistdio/test-u8-vasprintf1.c: Likewise.
2738 * tests/unistdio/test-u8-vsnprintf1.c: Likewise.
2739 * tests/unistdio/test-u8-vsprintf1.c: Likewise.
2740 * tests/unistdio/test-u16-asnprintf1.c: Likewise.
2741 * tests/unistdio/test-u16-vasnprintf1.c: Likewise.
2742 * tests/unistdio/test-u16-vasnprintf2.c: Likewise.
2743 * tests/unistdio/test-u16-vasnprintf3.c: Likewise.
2744 * tests/unistdio/test-u16-vasprintf1.c: Likewise.
2745 * tests/unistdio/test-u16-vsnprintf1.c: Likewise.
2746 * tests/unistdio/test-u16-vsprintf1.c: Likewise.
2747 * tests/unistdio/test-u32-asnprintf1.c: Likewise.
2748 * tests/unistdio/test-u32-vasnprintf1.c: Likewise.
2749 * tests/unistdio/test-u32-vasnprintf2.c: Likewise.
2750 * tests/unistdio/test-u32-vasnprintf3.c: Likewise.
2751 * tests/unistdio/test-u32-vasprintf1.c: Likewise.
2752 * tests/unistdio/test-u32-vsnprintf1.c: Likewise.
2753 * tests/unistdio/test-u32-vsprintf1.c: Likewise.
2754 * tests/unistdio/test-ulc-asnprintf1.c: Likewise.
2755 * tests/unistdio/test-ulc-vasnprintf1.c: Likewise.
2756 * tests/unistdio/test-ulc-vasnprintf2.c: Likewise.
2757 * tests/unistdio/test-ulc-vasnprintf3.c: Likewise.
2758 * tests/unistdio/test-ulc-vasprintf1.c: Likewise.
2759 * tests/unistdio/test-ulc-vsnprintf1.c: Likewise.
2760 * tests/unistdio/test-ulc-vsprintf1.c: Likewise.
2761 * tests/uniwbrk/test-u8-wordbreaks.c: Likewise.
2762 * tests/uniwbrk/test-u16-wordbreaks.c: Likewise.
2763 * tests/uniwbrk/test-u32-wordbreaks.c: Likewise.
2764 * tests/uniwbrk/test-ulc-wordbreaks.c: Likewise.
2765 * tests/uniwidth/test-u8-strwidth.c: Likewise.
2766 * tests/uniwidth/test-u8-width.c: Likewise.
2767 * tests/uniwidth/test-u16-strwidth.c: Likewise.
2768 * tests/uniwidth/test-u16-width.c: Likewise.
2769 * tests/uniwidth/test-u32-strwidth.c: Likewise.
2770 * tests/uniwidth/test-u32-width.c: Likewise.
2771 * tests/uniwidth/test-uc_width.c: Likewise.
2772 * tests/uniwidth/test-uc_width2.c: Likewise.
2773 * modules/acl-tests (Files): Add tests/macros.h.
2774 * modules/areadlink-tests (Files): Likewise.
2775 * modules/areadlink-with-size-tests (Files): Likewise.
2776 * modules/areadlinkat-tests (Files): Likewise.
2777 * modules/areadlinkat-with-size-tests (Files): Likewise.
2778 * modules/argmatch-tests (Files): Likewise.
2779 * modules/argv-iter-tests (Files): Likewise.
2780 * modules/array-list-tests (Files): Likewise.
2781 * modules/array-mergesort-tests (Files): Likewise.
2782 * modules/array-oset-tests (Files): Likewise.
2783 * modules/avltree-list-tests (Files): Likewise.
2784 * modules/avltree-oset-tests (Files): Likewise.
2785 * modules/avltreehash-list-tests (Files): Likewise.
2786 * modules/base64-tests (Files): Likewise.
2787 * modules/binary-io-tests (Files): Likewise.
2788 * modules/bitrotate-tests (Files): Likewise.
2789 * modules/btowc-tests (Files): Likewise.
2790 * modules/byteswap-tests (Files): Likewise.
2791 * modules/c-ctype-tests (Files): Likewise.
2792 * modules/c-stack-tests (Files): Likewise.
2793 * modules/c-strcase-tests (Files): Likewise.
2794 * modules/c-strcasestr-tests (Files): Likewise.
2795 * modules/c-strstr-tests (Files): Likewise.
2796 * modules/canonicalize-lgpl-tests (Files): Likewise.
2797 * modules/canonicalize-tests (Files): Likewise.
2798 * modules/carray-list-tests (Files): Likewise.
2799 * modules/ceilf-tests (Files): Likewise.
2800 * modules/ceill-tests (Files): Likewise.
2801 * modules/chown-tests (Files): Likewise.
2802 * modules/cloexec-tests (Files): Likewise.
2803 * modules/copy-file-tests (Files): Likewise.
2804 * modules/count-one-bits-tests (Files): Likewise.
2805 * modules/dprintf-posix-tests (Files): Likewise.
2806 * modules/dup2-tests (Files): Likewise.
2807 * modules/dup3-tests (Files): Likewise.
2808 * modules/duplocale-tests (Files): Likewise.
2809 * modules/fbufmode-tests (Files): Likewise.
2810 * modules/fchdir-tests (Files): Likewise.
2811 * modules/fcntl-safer-tests (Files): Likewise.
2812 * modules/fcntl-tests (Files): Likewise.
2813 * modules/fdopendir-tests (Files): Likewise.
2814 * modules/fdutimensat-tests (Files): Likewise.
2815 * modules/fflush-tests (Files): Likewise.
2816 * modules/filevercmp-tests (Files): Likewise.
2817 * modules/flock-tests (Files): Likewise.
2818 * modules/floorf-tests (Files): Likewise.
2819 * modules/floorl-tests (Files): Likewise.
2820 * modules/fnmatch-tests (Files): Likewise.
2821 * modules/fopen-safer-tests (Files): Likewise.
2822 * modules/fopen-tests (Files): Likewise.
2823 * modules/fpending-tests (Files): Likewise.
2824 * modules/fprintf-posix-tests (Files): Likewise.
2825 * modules/fpurge-tests (Files): Likewise.
2826 * modules/freadable-tests (Files): Likewise.
2827 * modules/freadahead-tests (Files): Likewise.
2828 * modules/freading-tests (Files): Likewise.
2829 * modules/freadptr-tests (Files): Likewise.
2830 * modules/freadseek-tests (Files): Likewise.
2831 * modules/freopen-tests (Files): Likewise.
2832 * modules/frexp-nolibm-tests (Files): Likewise.
2833 * modules/frexp-tests (Files): Likewise.
2834 * modules/frexpl-nolibm-tests (Files): Likewise.
2835 * modules/frexpl-tests (Files): Likewise.
2836 * modules/fseek-tests (Files): Likewise.
2837 * modules/fseeko-tests (Files): Likewise.
2838 * modules/fstrcmp-tests (Files): Likewise.
2839 * modules/fsync-tests (Files): Likewise.
2840 * modules/ftell-tests (Files): Likewise.
2841 * modules/ftello-tests (Files): Likewise.
2842 * modules/func-tests (Files): Likewise.
2843 * modules/futimens-tests (Files): Likewise.
2844 * modules/fwritable-tests (Files): Likewise.
2845 * modules/fwriting-tests (Files): Likewise.
2846 * modules/getcwd-tests (Files): Likewise.
2847 * modules/getdate-tests (Files): Likewise.
2848 * modules/getdelim-tests (Files): Likewise.
2849 * modules/getdtablesize-tests (Files): Likewise.
2850 * modules/getgroups-tests (Files): Likewise.
2851 * modules/getline-tests (Files): Likewise.
2852 * modules/getndelim2-tests (Files): Likewise.
2853 * modules/glob-tests (Files): Likewise.
2854 * modules/hash-tests (Files): Likewise.
2855 * modules/i-ring-tests (Files): Likewise.
2856 * modules/iconv-tests (Files): Likewise.
2857 * modules/iconv_open-utf-tests (Files): Likewise.
2858 * modules/idpriv-drop-tests (Files): Likewise.
2859 * modules/idpriv-droptemp-tests (Files): Likewise.
2860 * modules/inet_ntop-tests (Files): Likewise.
2861 * modules/inet_pton-tests (Files): Likewise.
2862 * modules/isblank-tests (Files): Likewise.
2863 * modules/isfinite-tests (Files): Likewise.
2864 * modules/isinf-tests (Files): Likewise.
2865 * modules/isnan-tests (Files): Likewise.
2866 * modules/isnand-nolibm-tests (Files): Likewise.
2867 * modules/isnand-tests (Files): Likewise.
2868 * modules/isnanf-nolibm-tests (Files): Likewise.
2869 * modules/isnanf-tests (Files): Likewise.
2870 * modules/isnanl-nolibm-tests (Files): Likewise.
2871 * modules/isnanl-tests (Files): Likewise.
2872 * modules/lchown-tests (Files): Likewise.
2873 * modules/ldexpl-tests (Files): Likewise.
2874 * modules/link-tests (Files): Likewise.
2875 * modules/linkat-tests (Files): Likewise.
2876 * modules/linked-list-tests (Files): Likewise.
2877 * modules/linkedhash-list-tests (Files): Likewise.
2878 * modules/localename-tests (Files): Likewise.
2879 * modules/lseek-tests (Files): Likewise.
2880 * modules/lstat-tests (Files): Likewise.
2881 * modules/mbmemcasecmp-tests (Files): Likewise.
2882 * modules/mbmemcasecoll-tests (Files): Likewise.
2883 * modules/mbrtowc-tests (Files): Likewise.
2884 * modules/mbscasecmp-tests (Files): Likewise.
2885 * modules/mbscasestr-tests (Files): Likewise.
2886 * modules/mbschr-tests (Files): Likewise.
2887 * modules/mbscspn-tests (Files): Likewise.
2888 * modules/mbsinit-tests (Files): Likewise.
2889 * modules/mbsncasecmp-tests (Files): Likewise.
2890 * modules/mbsnrtowcs-tests (Files): Likewise.
2891 * modules/mbspbrk-tests (Files): Likewise.
2892 * modules/mbspcasecmp-tests (Files): Likewise.
2893 * modules/mbsrchr-tests (Files): Likewise.
2894 * modules/mbsrtowcs-tests (Files): Likewise.
2895 * modules/mbsspn-tests (Files): Likewise.
2896 * modules/mbsstr-tests (Files): Likewise.
2897 * modules/memchr-tests (Files): Likewise.
2898 * modules/memchr2-tests (Files): Likewise.
2899 * modules/memcmp-tests (Files): Likewise.
2900 * modules/memmem-tests (Files): Likewise.
2901 * modules/memrchr-tests (Files): Likewise.
2902 * modules/mkdir-tests (Files): Likewise.
2903 * modules/mkfifo-tests (Files): Likewise.
2904 * modules/mkfifoat-tests (Files): Likewise.
2905 * modules/mknod-tests (Files): Likewise.
2906 * modules/nanosleep-tests (Files): Likewise.
2907 * modules/nl_langinfo-tests (Files): Likewise.
2908 * modules/obstack-printf-tests (Files): Likewise.
2909 * modules/open-tests (Files): Likewise.
2910 * modules/openat-tests (Files): Likewise.
2911 * modules/pipe-filter-gi-tests (Files): Likewise.
2912 * modules/pipe-filter-ii-tests (Files): Likewise.
2913 * modules/pipe2-tests (Files): Likewise.
2914 * modules/popen-safer-tests (Files): Likewise.
2915 * modules/popen-tests (Files): Likewise.
2916 * modules/posixtm-tests (Files): Likewise.
2917 * modules/pread-tests (Files): Likewise.
2918 * modules/printf-frexp-tests (Files): Likewise.
2919 * modules/printf-frexpl-tests (Files): Likewise.
2920 * modules/printf-posix-tests (Files): Likewise.
2921 * modules/priv-set-tests (Files): Likewise.
2922 * modules/quotearg-tests (Files): Likewise.
2923 * modules/random_r-tests (Files): Likewise.
2924 * modules/rawmemchr-tests (Files): Likewise.
2925 * modules/rbtree-list-tests (Files): Likewise.
2926 * modules/rbtree-oset-tests (Files): Likewise.
2927 * modules/rbtreehash-list-tests (Files): Likewise.
2928 * modules/readlink-tests (Files): Likewise.
2929 * modules/remove-tests (Files): Likewise.
2930 * modules/rename-tests (Files): Likewise.
2931 * modules/renameat-tests (Files): Likewise.
2932 * modules/rmdir-tests (Files): Likewise.
2933 * modules/round-tests (Files): Likewise.
2934 * modules/roundf-tests (Files): Likewise.
2935 * modules/roundl-tests (Files): Likewise.
2936 * modules/safe-alloc-tests (Files): Likewise.
2937 * modules/setenv-tests (Files): Likewise.
2938 * modules/sigaction-tests (Files): Likewise.
2939 * modules/signbit-tests (Files): Likewise.
2940 * modules/sleep-tests (Files): Likewise.
2941 * modules/snprintf-posix-tests (Files): Likewise.
2942 * modules/snprintf-tests (Files): Likewise.
2943 * modules/sprintf-posix-tests (Files): Likewise.
2944 * modules/stat-tests (Files): Likewise.
2945 * modules/stat-time-tests (Files): Likewise.
2946 * modules/strcasestr-tests (Files): Likewise.
2947 * modules/strchrnul-tests (Files): Likewise.
2948 * modules/strerror-tests (Files): Likewise.
2949 * modules/striconv-tests (Files): Likewise.
2950 * modules/striconveh-tests (Files): Likewise.
2951 * modules/striconveha-tests (Files): Likewise.
2952 * modules/strsignal-tests (Files): Likewise.
2953 * modules/strstr-tests (Files): Likewise.
2954 * modules/strtod-tests (Files): Likewise.
2955 * modules/strverscmp-tests (Files): Likewise.
2956 * modules/symlink-tests (Files): Likewise.
2957 * modules/symlinkat-tests (Files): Likewise.
2958 * modules/trunc-tests (Files): Likewise.
2959 * modules/truncf-tests (Files): Likewise.
2960 * modules/truncl-tests (Files): Likewise.
2961 * modules/uname-tests (Files): Likewise.
2962 * modules/unicase/cased-tests (Files): Likewise.
2963 * modules/unicase/ignorable-tests (Files): Likewise.
2964 * modules/unicase/locale-language-tests (Files): Likewise.
2965 * modules/unicase/tolower-tests (Files): Likewise.
2966 * modules/unicase/totitle-tests (Files): Likewise.
2967 * modules/unicase/toupper-tests (Files): Likewise.
2968 * modules/unicase/u8-casecmp-tests (Files): Likewise.
2969 * modules/unicase/u8-casecoll-tests (Files): Likewise.
2970 * modules/unicase/u8-casefold-tests (Files): Likewise.
2971 * modules/unicase/u8-is-cased-tests (Files): Likewise.
2972 * modules/unicase/u8-is-casefolded-tests (Files): Likewise.
2973 * modules/unicase/u8-is-lowercase-tests (Files): Likewise.
2974 * modules/unicase/u8-is-titlecase-tests (Files): Likewise.
2975 * modules/unicase/u8-is-uppercase-tests (Files): Likewise.
2976 * modules/unicase/u8-tolower-tests (Files): Likewise.
2977 * modules/unicase/u8-totitle-tests (Files): Likewise.
2978 * modules/unicase/u8-toupper-tests (Files): Likewise.
2979 * modules/unicase/u16-casecmp-tests (Files): Likewise.
2980 * modules/unicase/u16-casecoll-tests (Files): Likewise.
2981 * modules/unicase/u16-casefold-tests (Files): Likewise.
2982 * modules/unicase/u16-is-cased-tests (Files): Likewise.
2983 * modules/unicase/u16-is-casefolded-tests (Files): Likewise.
2984 * modules/unicase/u16-is-lowercase-tests (Files): Likewise.
2985 * modules/unicase/u16-is-titlecase-tests (Files): Likewise.
2986 * modules/unicase/u16-is-uppercase-tests (Files): Likewise.
2987 * modules/unicase/u16-tolower-tests (Files): Likewise.
2988 * modules/unicase/u16-totitle-tests (Files): Likewise.
2989 * modules/unicase/u16-toupper-tests (Files): Likewise.
2990 * modules/unicase/u32-casecmp-tests (Files): Likewise.
2991 * modules/unicase/u32-casecoll-tests (Files): Likewise.
2992 * modules/unicase/u32-casefold-tests (Files): Likewise.
2993 * modules/unicase/u32-is-cased-tests (Files): Likewise.
2994 * modules/unicase/u32-is-casefolded-tests (Files): Likewise.
2995 * modules/unicase/u32-is-lowercase-tests (Files): Likewise.
2996 * modules/unicase/u32-is-titlecase-tests (Files): Likewise.
2997 * modules/unicase/u32-is-uppercase-tests (Files): Likewise.
2998 * modules/unicase/u32-tolower-tests (Files): Likewise.
2999 * modules/unicase/u32-totitle-tests (Files): Likewise.
3000 * modules/unicase/u32-toupper-tests (Files): Likewise.
3001 * modules/unicase/ulc-casecmp-tests (Files): Likewise.
3002 * modules/unicase/ulc-casecoll-tests (Files): Likewise.
3003 * modules/uniconv/u8-conv-from-enc-tests (Files): Likewise.
3004 * modules/uniconv/u8-conv-to-enc-tests (Files): Likewise.
3005 * modules/uniconv/u8-strconv-from-enc-tests (Files): Likewise.
3006 * modules/uniconv/u8-strconv-to-enc-tests (Files): Likewise.
3007 * modules/uniconv/u16-conv-from-enc-tests (Files): Likewise.
3008 * modules/uniconv/u16-conv-to-enc-tests (Files): Likewise.
3009 * modules/uniconv/u16-strconv-from-enc-tests (Files): Likewise.
3010 * modules/uniconv/u16-strconv-to-enc-tests (Files): Likewise.
3011 * modules/uniconv/u32-conv-from-enc-tests (Files): Likewise.
3012 * modules/uniconv/u32-conv-to-enc-tests (Files): Likewise.
3013 * modules/uniconv/u32-strconv-from-enc-tests (Files): Likewise.
3014 * modules/uniconv/u32-strconv-to-enc-tests (Files): Likewise.
3015 * modules/unictype/bidicategory-byname-tests (Files): Likewise.
3016 * modules/unictype/bidicategory-name-tests (Files): Likewise.
3017 * modules/unictype/bidicategory-of-tests (Files): Likewise.
3018 * modules/unictype/bidicategory-test-tests (Files): Likewise.
3019 * modules/unictype/block-list-tests (Files): Likewise.
3020 * modules/unictype/block-of-tests (Files): Likewise.
3021 * modules/unictype/block-test-tests (Files): Likewise.
3022 * modules/unictype/category-C-tests (Files): Likewise.
3023 * modules/unictype/category-Cc-tests (Files): Likewise.
3024 * modules/unictype/category-Cf-tests (Files): Likewise.
3025 * modules/unictype/category-Cn-tests (Files): Likewise.
3026 * modules/unictype/category-Co-tests (Files): Likewise.
3027 * modules/unictype/category-Cs-tests (Files): Likewise.
3028 * modules/unictype/category-L-tests (Files): Likewise.
3029 * modules/unictype/category-Ll-tests (Files): Likewise.
3030 * modules/unictype/category-Lm-tests (Files): Likewise.
3031 * modules/unictype/category-Lo-tests (Files): Likewise.
3032 * modules/unictype/category-Lt-tests (Files): Likewise.
3033 * modules/unictype/category-Lu-tests (Files): Likewise.
3034 * modules/unictype/category-M-tests (Files): Likewise.
3035 * modules/unictype/category-Mc-tests (Files): Likewise.
3036 * modules/unictype/category-Me-tests (Files): Likewise.
3037 * modules/unictype/category-Mn-tests (Files): Likewise.
3038 * modules/unictype/category-N-tests (Files): Likewise.
3039 * modules/unictype/category-Nd-tests (Files): Likewise.
3040 * modules/unictype/category-Nl-tests (Files): Likewise.
3041 * modules/unictype/category-No-tests (Files): Likewise.
3042 * modules/unictype/category-P-tests (Files): Likewise.
3043 * modules/unictype/category-Pc-tests (Files): Likewise.
3044 * modules/unictype/category-Pd-tests (Files): Likewise.
3045 * modules/unictype/category-Pe-tests (Files): Likewise.
3046 * modules/unictype/category-Pf-tests (Files): Likewise.
3047 * modules/unictype/category-Pi-tests (Files): Likewise.
3048 * modules/unictype/category-Po-tests (Files): Likewise.
3049 * modules/unictype/category-Ps-tests (Files): Likewise.
3050 * modules/unictype/category-S-tests (Files): Likewise.
3051 * modules/unictype/category-Sc-tests (Files): Likewise.
3052 * modules/unictype/category-Sk-tests (Files): Likewise.
3053 * modules/unictype/category-Sm-tests (Files): Likewise.
3054 * modules/unictype/category-So-tests (Files): Likewise.
3055 * modules/unictype/category-Z-tests (Files): Likewise.
3056 * modules/unictype/category-Zl-tests (Files): Likewise.
3057 * modules/unictype/category-Zp-tests (Files): Likewise.
3058 * modules/unictype/category-Zs-tests (Files): Likewise.
3059 * modules/unictype/category-and-not-tests (Files): Likewise.
3060 * modules/unictype/category-and-tests (Files): Likewise.
3061 * modules/unictype/category-byname-tests (Files): Likewise.
3062 * modules/unictype/category-name-tests (Files): Likewise.
3063 * modules/unictype/category-none-tests (Files): Likewise.
3064 * modules/unictype/category-of-tests (Files): Likewise.
3065 * modules/unictype/category-or-tests (Files): Likewise.
3066 * modules/unictype/category-test-withtable-tests (Files): Likewise.
3067 * modules/unictype/combining-class-tests (Files): Likewise.
3068 * modules/unictype/ctype-alnum-tests (Files): Likewise.
3069 * modules/unictype/ctype-alpha-tests (Files): Likewise.
3070 * modules/unictype/ctype-blank-tests (Files): Likewise.
3071 * modules/unictype/ctype-cntrl-tests (Files): Likewise.
3072 * modules/unictype/ctype-digit-tests (Files): Likewise.
3073 * modules/unictype/ctype-graph-tests (Files): Likewise.
3074 * modules/unictype/ctype-lower-tests (Files): Likewise.
3075 * modules/unictype/ctype-print-tests (Files): Likewise.
3076 * modules/unictype/ctype-punct-tests (Files): Likewise.
3077 * modules/unictype/ctype-space-tests (Files): Likewise.
3078 * modules/unictype/ctype-upper-tests (Files): Likewise.
3079 * modules/unictype/ctype-xdigit-tests (Files): Likewise.
3080 * modules/unictype/decimal-digit-tests (Files): Likewise.
3081 * modules/unictype/digit-tests (Files): Likewise.
3082 * modules/unictype/mirror-tests (Files): Likewise.
3083 * modules/unictype/numeric-tests (Files): Likewise.
3084 * modules/unictype/property-alphabetic-tests (Files): Likewise.
3085 * modules/unictype/property-ascii-hex-digit-tests (Files): Likewise.
3086 * modules/unictype/property-bidi-arabic-digit-tests (Files): Likewise.
3087 * modules/unictype/property-bidi-arabic-right-to-left-tests (Files):
3089 * modules/unictype/property-bidi-block-separator-tests (Files):
3091 * modules/unictype/property-bidi-boundary-neutral-tests (Files):
3093 * modules/unictype/property-bidi-common-separator-tests (Files):
3095 * modules/unictype/property-bidi-control-tests (Files): Likewise.
3096 * modules/unictype/property-bidi-embedding-or-override-tests (Files):
3098 * modules/unictype/property-bidi-eur-num-separator-tests (Files):
3100 * modules/unictype/property-bidi-eur-num-terminator-tests (Files):
3102 * modules/unictype/property-bidi-european-digit-tests (Files): Likewise.
3103 * modules/unictype/property-bidi-hebrew-right-to-left-tests (Files):
3105 * modules/unictype/property-bidi-left-to-right-tests (Files): Likewise.
3106 * modules/unictype/property-bidi-non-spacing-mark-tests (Files):
3108 * modules/unictype/property-bidi-other-neutral-tests (Files): Likewise.
3109 * modules/unictype/property-bidi-pdf-tests (Files): Likewise.
3110 * modules/unictype/property-bidi-segment-separator-tests (Files):
3112 * modules/unictype/property-bidi-whitespace-tests (Files): Likewise.
3113 * modules/unictype/property-byname-tests (Files): Likewise.
3114 * modules/unictype/property-combining-tests (Files): Likewise.
3115 * modules/unictype/property-composite-tests (Files): Likewise.
3116 * modules/unictype/property-currency-symbol-tests (Files): Likewise.
3117 * modules/unictype/property-dash-tests (Files): Likewise.
3118 * modules/unictype/property-decimal-digit-tests (Files): Likewise.
3119 * modules/unictype/property-default-ignorable-code-point-tests (Files):
3121 * modules/unictype/property-deprecated-tests (Files): Likewise.
3122 * modules/unictype/property-diacritic-tests (Files): Likewise.
3123 * modules/unictype/property-extender-tests (Files): Likewise.
3124 * modules/unictype/property-format-control-tests (Files): Likewise.
3125 * modules/unictype/property-grapheme-base-tests (Files): Likewise.
3126 * modules/unictype/property-grapheme-extend-tests (Files): Likewise.
3127 * modules/unictype/property-grapheme-link-tests (Files): Likewise.
3128 * modules/unictype/property-hex-digit-tests (Files): Likewise.
3129 * modules/unictype/property-hyphen-tests (Files): Likewise.
3130 * modules/unictype/property-id-continue-tests (Files): Likewise.
3131 * modules/unictype/property-id-start-tests (Files): Likewise.
3132 * modules/unictype/property-ideographic-tests (Files): Likewise.
3133 * modules/unictype/property-ids-binary-operator-tests (Files): Likewise.
3134 * modules/unictype/property-ids-trinary-operator-tests (Files):
3136 * modules/unictype/property-ignorable-control-tests (Files): Likewise.
3137 * modules/unictype/property-iso-control-tests (Files): Likewise.
3138 * modules/unictype/property-join-control-tests (Files): Likewise.
3139 * modules/unictype/property-left-of-pair-tests (Files): Likewise.
3140 * modules/unictype/property-line-separator-tests (Files): Likewise.
3141 * modules/unictype/property-logical-order-exception-tests (Files):
3143 * modules/unictype/property-lowercase-tests (Files): Likewise.
3144 * modules/unictype/property-math-tests (Files): Likewise.
3145 * modules/unictype/property-non-break-tests (Files): Likewise.
3146 * modules/unictype/property-not-a-character-tests (Files): Likewise.
3147 * modules/unictype/property-numeric-tests (Files): Likewise.
3148 * modules/unictype/property-other-alphabetic-tests (Files): Likewise.
3149 * modules/unictype/property-other-default-ignorable-code-point-tests
3151 * modules/unictype/property-other-grapheme-extend-tests (Files):
3153 * modules/unictype/property-other-id-continue-tests (Files): Likewise.
3154 * modules/unictype/property-other-id-start-tests (Files): Likewise.
3155 * modules/unictype/property-other-lowercase-tests (Files): Likewise.
3156 * modules/unictype/property-other-math-tests (Files): Likewise.
3157 * modules/unictype/property-other-uppercase-tests (Files): Likewise.
3158 * modules/unictype/property-paired-punctuation-tests (Files): Likewise.
3159 * modules/unictype/property-paragraph-separator-tests (Files): Likewise.
3160 * modules/unictype/property-pattern-syntax-tests (Files): Likewise.
3161 * modules/unictype/property-pattern-white-space-tests (Files): Likewise.
3162 * modules/unictype/property-private-use-tests (Files): Likewise.
3163 * modules/unictype/property-punctuation-tests (Files): Likewise.
3164 * modules/unictype/property-quotation-mark-tests (Files): Likewise.
3165 * modules/unictype/property-radical-tests (Files): Likewise.
3166 * modules/unictype/property-sentence-terminal-tests (Files): Likewise.
3167 * modules/unictype/property-soft-dotted-tests (Files): Likewise.
3168 * modules/unictype/property-space-tests (Files): Likewise.
3169 * modules/unictype/property-terminal-punctuation-tests (Files):
3171 * modules/unictype/property-test-tests (Files): Likewise.
3172 * modules/unictype/property-titlecase-tests (Files): Likewise.
3173 * modules/unictype/property-unassigned-code-value-tests (Files):
3175 * modules/unictype/property-unified-ideograph-tests (Files): Likewise.
3176 * modules/unictype/property-uppercase-tests (Files): Likewise.
3177 * modules/unictype/property-variation-selector-tests (Files): Likewise.
3178 * modules/unictype/property-white-space-tests (Files): Likewise.
3179 * modules/unictype/property-xid-continue-tests (Files): Likewise.
3180 * modules/unictype/property-xid-start-tests (Files): Likewise.
3181 * modules/unictype/property-zero-width-tests (Files): Likewise.
3182 * modules/unictype/scripts-tests (Files): Likewise.
3183 * modules/unictype/syntax-c-ident-tests (Files): Likewise.
3184 * modules/unictype/syntax-c-whitespace-tests (Files): Likewise.
3185 * modules/unictype/syntax-java-ident-tests (Files): Likewise.
3186 * modules/unictype/syntax-java-whitespace-tests (Files): Likewise.
3187 * modules/unilbrk/u8-possible-linebreaks-tests (Files): Likewise.
3188 * modules/unilbrk/u8-width-linebreaks-tests (Files): Likewise.
3189 * modules/unilbrk/u16-possible-linebreaks-tests (Files): Likewise.
3190 * modules/unilbrk/u16-width-linebreaks-tests (Files): Likewise.
3191 * modules/unilbrk/u32-possible-linebreaks-tests (Files): Likewise.
3192 * modules/unilbrk/u32-width-linebreaks-tests (Files): Likewise.
3193 * modules/unilbrk/ulc-possible-linebreaks-tests (Files): Likewise.
3194 * modules/unilbrk/ulc-width-linebreaks-tests (Files): Likewise.
3195 * modules/uninorm/canonical-decomposition-tests (Files): Likewise.
3196 * modules/uninorm/compat-decomposition-tests (Files): Likewise.
3197 * modules/uninorm/composition-tests (Files): Likewise.
3198 * modules/uninorm/decomposing-form-tests (Files): Likewise.
3199 * modules/uninorm/decomposition-tests (Files): Likewise.
3200 * modules/uninorm/filter-tests (Files): Likewise.
3201 * modules/uninorm/nfc-tests (Files): Likewise.
3202 * modules/uninorm/nfd-tests (Files): Likewise.
3203 * modules/uninorm/nfkc-tests (Files): Likewise.
3204 * modules/uninorm/nfkd-tests (Files): Likewise.
3205 * modules/uninorm/u8-normcmp-tests (Files): Likewise.
3206 * modules/uninorm/u8-normcoll-tests (Files): Likewise.
3207 * modules/uninorm/u16-normcmp-tests (Files): Likewise.
3208 * modules/uninorm/u16-normcoll-tests (Files): Likewise.
3209 * modules/uninorm/u32-normcmp-tests (Files): Likewise.
3210 * modules/uninorm/u32-normcoll-tests (Files): Likewise.
3211 * modules/unistdio/u8-asnprintf-tests (Files): Likewise.
3212 * modules/unistdio/u8-vasnprintf-tests (Files): Likewise.
3213 * modules/unistdio/u8-vasprintf-tests (Files): Likewise.
3214 * modules/unistdio/u8-vsnprintf-tests (Files): Likewise.
3215 * modules/unistdio/u8-vsprintf-tests (Files): Likewise.
3216 * modules/unistdio/u16-asnprintf-tests (Files): Likewise.
3217 * modules/unistdio/u16-vasnprintf-tests (Files): Likewise.
3218 * modules/unistdio/u16-vasprintf-tests (Files): Likewise.
3219 * modules/unistdio/u16-vsnprintf-tests (Files): Likewise.
3220 * modules/unistdio/u16-vsprintf-tests (Files): Likewise.
3221 * modules/unistdio/u32-asnprintf-tests (Files): Likewise.
3222 * modules/unistdio/u32-vasnprintf-tests (Files): Likewise.
3223 * modules/unistdio/u32-vasprintf-tests (Files): Likewise.
3224 * modules/unistdio/u32-vsnprintf-tests (Files): Likewise.
3225 * modules/unistdio/u32-vsprintf-tests (Files): Likewise.
3226 * modules/unistdio/ulc-asnprintf-tests (Files): Likewise.
3227 * modules/unistdio/ulc-vasnprintf-tests (Files): Likewise.
3228 * modules/unistdio/ulc-vasprintf-tests (Files): Likewise.
3229 * modules/unistdio/ulc-vsnprintf-tests (Files): Likewise.
3230 * modules/unistdio/ulc-vsprintf-tests (Files): Likewise.
3231 * modules/uniwbrk/u8-wordbreaks-tests (Files): Likewise.
3232 * modules/uniwbrk/u16-wordbreaks-tests (Files): Likewise.
3233 * modules/uniwbrk/u32-wordbreaks-tests (Files): Likewise.
3234 * modules/uniwbrk/ulc-wordbreaks-tests (Files): Likewise.
3235 * modules/uniwidth/u8-strwidth-tests (Files): Likewise.
3236 * modules/uniwidth/u8-width-tests (Files): Likewise.
3237 * modules/uniwidth/u16-strwidth-tests (Files): Likewise.
3238 * modules/uniwidth/u16-width-tests (Files): Likewise.
3239 * modules/uniwidth/u32-strwidth-tests (Files): Likewise.
3240 * modules/uniwidth/u32-width-tests (Files): Likewise.
3241 * modules/uniwidth/width-tests (Files): Likewise.
3242 * modules/unlink-tests (Files): Likewise.
3243 * modules/unsetenv-tests (Files): Likewise.
3244 * modules/usleep-tests (Files): Likewise.
3245 * modules/utimens-tests (Files): Likewise.
3246 * modules/utimensat-tests (Files): Likewise.
3247 * modules/vasnprintf-posix-tests (Files): Likewise.
3248 * modules/vasnprintf-tests (Files): Likewise.
3249 * modules/vasprintf-posix-tests (Files): Likewise.
3250 * modules/vasprintf-tests (Files): Likewise.
3251 * modules/vdprintf-posix-tests (Files): Likewise.
3252 * modules/vfprintf-posix-tests (Files): Likewise.
3253 * modules/vprintf-posix-tests (Files): Likewise.
3254 * modules/vsnprintf-posix-tests (Files): Likewise.
3255 * modules/vsnprintf-tests (Files): Likewise.
3256 * modules/vsprintf-posix-tests (Files): Likewise.
3257 * modules/wcrtomb-tests (Files): Likewise.
3258 * modules/wcsnrtombs-tests (Files): Likewise.
3259 * modules/wcsrtombs-tests (Files): Likewise.
3260 * modules/wctype-tests (Files): Likewise.
3261 * modules/wcwidth-tests (Files): Likewise.
3262 * modules/xmemdup0-tests (Files): Likewise.
3263 * modules/xprintf-posix-tests (Files): Likewise.
3264 * modules/xvasprintf-tests (Files): Likewise.
3266 2009-12-24 Eric Blake <ebb9@byu.net>
3268 test-nanosleep: fix typo
3269 * tests/test-nanosleep.c (SIGNATURE_CHECK): Fix typo in previous
3271 Reported by Bruno Haible.
3273 2009-12-24 Bruno Haible <bruno@clisp.org>
3275 Reduce namespace pollution on glibc systems.
3276 * lib/inttypes.in.h: Don't include <stdint.h> on glibc systems.
3277 * lib/stdlib.in.h: Don't include <stdint.h>, <unistd.h> on glibc
3279 * lib/unistd.in.h: Don't include <stdio.h>, <fcntl.h>, <stdlib.h>,
3280 <getopt.h> on glibc systems.
3281 * lib/fcntl.in.h: Don't include <sys/stat.h>, <unistd.h> on glibc
3283 * lib/fcntl.c: Include <unistd.h> here instead.
3285 2009-12-24 Bruno Haible <bruno@clisp.org>
3287 * lib/stdlib.in.h (includes): Fix typo in today's commit.
3289 2009-12-24 Eric Blake <ebb9@byu.net>
3291 tests: add signature checks
3292 * tests/signature.h (SIGNATURE_CHECK): New file.
3293 * modules/atexit-tests (Files): Use it.
3294 * modules/btowc-tests (Files): Likewise.
3295 * modules/canonicalize-lgpl-tests (Files): Likewise.
3296 * modules/ceilf-tests (Files): Likewise.
3297 * modules/ceill-tests (Files): Likewise.
3298 * modules/chown-tests (Files): Likewise.
3299 * modules/dprintf-posix-tests (Files): Likewise.
3300 * modules/dup2-tests (Files): Likewise.
3301 * modules/dup3-tests (Files): Likewise.
3302 * modules/duplocale-tests (Files): Likewise.
3303 * modules/fchdir-tests (Files): Likewise.
3304 * modules/fcntl-tests (Files): Likewise.
3305 * modules/fdopendir-tests (Files): Likewise.
3306 * modules/fflush-tests (Files): Likewise.
3307 * modules/flock-tests (Files): Likewise.
3308 * modules/floorf-tests (Files): Likewise.
3309 * modules/floorl-tests (Files): Likewise.
3310 * modules/fnmatch-tests (Files): Likewise.
3311 * modules/fopen-tests (Files): Likewise.
3312 * modules/fprintf-posix-tests (Files): Likewise.
3313 * modules/freopen-tests (Files): Likewise.
3314 * modules/frexp-nolibm-tests (Files): Likewise.
3315 * modules/frexp-tests (Files): Likewise.
3316 * modules/frexpl-nolibm-tests (Files): Likewise.
3317 * modules/frexpl-tests (Files): Likewise.
3318 * modules/fseek-tests (Files): Likewise.
3319 * modules/fseeko-tests (Files): Likewise.
3320 * modules/fsync-tests (Files): Likewise.
3321 * modules/ftell-tests (Files): Likewise.
3322 * modules/ftello-tests (Files): Likewise.
3323 * modules/futimens-tests (Files): Likewise.
3324 * modules/getaddrinfo-tests (Files): Likewise.
3325 * modules/getcwd-tests (Files): Likewise.
3326 * modules/getdelim-tests (Files): Likewise.
3327 * modules/getdtablesize-tests (Files): Likewise.
3328 * modules/getgroups-tests (Files): Likewise.
3329 * modules/gethostname-tests (Files): Likewise.
3330 * modules/getline-tests (Files): Likewise.
3331 * modules/getopt-posix-tests (Files): Likewise.
3332 * modules/gettimeofday-tests (Files): Likewise.
3333 * modules/glob-tests (Files): Likewise.
3334 * modules/iconv-tests (Files): Likewise.
3335 * modules/inet_ntop-tests (Files): Likewise.
3336 * modules/inet_pton-tests (Files): Likewise.
3337 * modules/isblank-tests (Files): Likewise.
3338 * modules/lchown-tests (Files): Likewise.
3339 * modules/ldexpl-tests (Files): Likewise.
3340 * modules/link-tests (Files): Likewise.
3341 * modules/linkat-tests (Files): Likewise.
3342 * modules/lseek-tests (Files): Likewise.
3343 * modules/lstat-tests (Files): Likewise.
3344 * modules/mbrtowc-tests (Files): Likewise.
3345 * modules/mbsinit-tests (Files): Likewise.
3346 * modules/mbsnrtowcs-tests (Files): Likewise.
3347 * modules/mbsrtowcs-tests (Files): Likewise.
3348 * modules/memchr-tests (Files): Likewise.
3349 * modules/memcmp-tests (Files): Likewise.
3350 * modules/memmem-tests (Files): Likewise.
3351 * modules/memrchr-tests (Files): Likewise.
3352 * modules/mkdir-tests (Files): Likewise.
3353 * modules/mkfifo-tests (Files): Likewise.
3354 * modules/mkfifoat-tests (Files): Likewise.
3355 * modules/mknod-tests (Files): Likewise.
3356 * modules/nanosleep-tests (Files): Likewise.
3357 * modules/nl_langinfo-tests (Files): Likewise.
3358 * modules/obstack-printf-tests (Files): Likewise.
3359 * modules/open-tests (Files): Likewise.
3360 * modules/openat-tests (Files): Likewise.
3361 * modules/perror-tests (Files): Likewise.
3362 * modules/pipe2-tests (Files): Likewise.
3363 * modules/poll-tests (Files): Likewise.
3364 * modules/popen-tests (Files): Likewise.
3365 * modules/posix_spawn-tests (Files): Likewise.
3366 * modules/posix_spawnp-tests (Files): Likewise.
3367 * modules/pread-tests (Files): Likewise.
3368 * modules/printf-posix-tests (Files): Likewise.
3369 * modules/pty-tests (Files): Likewise.
3370 * modules/random_r-tests (Files): Likewise.
3371 * modules/rawmemchr-tests (Files): Likewise.
3372 * modules/readlink-tests (Files): Likewise.
3373 * modules/remove-tests (Files): Likewise.
3374 * modules/rename-tests (Files): Likewise.
3375 * modules/renameat-tests (Files): Likewise.
3376 * modules/rmdir-tests (Files): Likewise.
3377 * modules/round-tests (Files): Likewise.
3378 * modules/roundf-tests (Files): Likewise.
3379 * modules/roundl-tests (Files): Likewise.
3380 * modules/select-tests (Files): Likewise.
3381 * modules/setenv-tests (Files): Likewise.
3382 * modules/sigaction-tests (Files): Likewise.
3383 * modules/sleep-tests (Files): Likewise.
3384 * modules/snprintf-posix-tests (Files): Likewise.
3385 * modules/snprintf-tests (Files): Likewise.
3386 * modules/sprintf-posix-tests (Files): Likewise.
3387 * modules/stat-tests (Files): Likewise.
3388 * modules/strcasestr-tests (Files): Likewise.
3389 * modules/strchrnul-tests (Files): Likewise.
3390 * modules/strerror-tests (Files): Likewise.
3391 * modules/strsignal-tests (Files): Likewise.
3392 * modules/strstr-tests (Files): Likewise.
3393 * modules/strtod-tests (Files): Likewise.
3394 * modules/strverscmp-tests (Files): Likewise.
3395 * modules/symlink-tests (Files): Likewise.
3396 * modules/symlinkat-tests (Files): Likewise.
3397 * modules/times-tests (Files): Likewise.
3398 * modules/trunc-tests (Files): Likewise.
3399 * modules/truncf-tests (Files): Likewise.
3400 * modules/truncl-tests (Files): Likewise.
3401 * modules/tsearch-tests (Files): Likewise.
3402 * modules/uname-tests (Files): Likewise.
3403 * modules/unlink-tests (Files): Likewise.
3404 * modules/unsetenv-tests (Files): Likewise.
3405 * modules/usleep-tests (Files): Likewise.
3406 * modules/utimensat-tests (Files): Likewise.
3407 * modules/vasprintf-tests (Files): Likewise.
3408 * modules/vdprintf-posix-tests (Files): Likewise.
3409 * modules/vfprintf-posix-tests (Files): Likewise.
3410 * modules/vprintf-posix-tests (Files): Likewise.
3411 * modules/vsnprintf-posix-tests (Files): Likewise.
3412 * modules/vsnprintf-tests (Files): Likewise.
3413 * modules/vsprintf-posix-tests (Files): Likewise.
3414 * modules/wcrtomb-tests (Files): Likewise.
3415 * modules/wcsnrtombs-tests (Files): Likewise.
3416 * modules/wcsrtombs-tests (Files): Likewise.
3417 * modules/wcwidth-tests (Files): Likewise.
3418 * tests/test-isfinite.c (isfinite): Ensure macro declaration.
3419 * tests/test-isinf.c (isinf): Likewise.
3420 * tests/test-isnan.c (isnan): Likewise.
3421 * tests/test-signbit.c (signbit): Likewise.
3422 * tests/test-select.c (FD_CLR, FD_ISSET, FD_SET, FD_ZERO): Ensure
3423 declaration, either as macro or with correct signature.
3424 (select): Ensure function under test is declared with correct
3425 signature in correct header.
3426 * tests/test-atexit.c (atexit): Likewise.
3427 * tests/test-btowc.c (btowc): Likewise.
3428 * tests/test-canonicalize-lgpl.c (realpath)
3429 (canonicalize_file_name): Likewise.
3430 * tests/test-ceilf1.c (ceilf): Likewise.
3431 * tests/test-ceill.c (ceill): Likewise.
3432 * tests/test-chown.c (chown): Likewise.
3433 * tests/test-dprintf-posix.c (dprintf): Likewise.
3434 * tests/test-dup2.c (dup2): Likewise.
3435 * tests/test-dup3.c (dup3): Likewise.
3436 * tests/test-duplocale.c (duplocale): Likewise.
3437 * tests/test-fchdir.c (fchdir): Likewise.
3438 * tests/test-fchownat.c (fchownat): Likewise.
3439 * tests/test-fcntl.c (fcntl): Likewise.
3440 * tests/test-fdopendir.c (fdopendir): Likewise.
3441 * tests/test-fflush.c (fflush): Likewise.
3442 * tests/test-flock.c (flock): Likewise.
3443 * tests/test-floorf1.c (floorf): Likewise.
3444 * tests/test-floorl.c (floorl): Likewise.
3445 * tests/test-fnmatch.c (fnmatch): Likewise.
3446 * tests/test-fopen.c (fopen): Likewise.
3447 * tests/test-fprintf-posix.c (fprintf): Likewise.
3448 * tests/test-freopen.c (freopen): Likewise.
3449 * tests/test-frexp.c (frexp): Likewise.
3450 * tests/test-frexpl.c (frexpl): Likewise.
3451 * tests/test-fseek.c (fseek): Likewise.
3452 * tests/test-fseeko.c (fseeko): Likewise.
3453 * tests/test-fstatat.c (fstatat): Likewise.
3454 * tests/test-fsync.c (fsync): Likewise.
3455 * tests/test-ftell.c (ftell): Likewise.
3456 * tests/test-ftello.c (ftello): Likewise.
3457 * tests/test-futimens.c (futimens): Likewise.
3458 * tests/test-getaddrinfo.c (getaddrinfo, freeaddrinfo)
3459 (gai_strerror): Likewise.
3460 * tests/test-getcwd.c (getcwd): Likewise.
3461 * tests/test-getdelim.c (getdelim): Likewise.
3462 * tests/test-getdtablesize.c (getdtablesize): Likewise.
3463 * tests/test-getgroups.c (getgroups): Likewise.
3464 * tests/test-gethostname.c (gethostname): Likewise.
3465 * tests/test-getline.c (getline): Likewise.
3466 * tests/test-getopt.c (getopt, getopt_long, getopt_long_only):
3468 * tests/test-gettimeofday.c (gettimeofday): Likewise.
3469 * tests/test-glob.c (glob, globfree): Likewise.
3470 * tests/test-iconv.c (iconv, iconv_open, iconv_close): Likewise.
3471 * tests/test-inet_ntop.c (inet_ntop): Likewise.
3472 * tests/test-inet_pton.c (inet_pton): Likewise.
3473 * tests/test-isblank.c (isblank): Likewise.
3474 * tests/test-lchown.c (lchown): Likewise.
3475 * tests/test-ldexpl.c (ldexpl): Likewise.
3476 * tests/test-link.c (link): Likewise.
3477 * tests/test-linkat.c (linkat): Likewise.
3478 * tests/test-lseek.c (lseek): Likewise.
3479 * tests/test-lstat.c (lstat): Likewise.
3480 * tests/test-mbrtowc.c (mbrtowc): Likewise.
3481 * tests/test-mbsinit.c (mbsinit): Likewise.
3482 * tests/test-mbsnrtowcs.c (mbsnrtowcs): Likewise.
3483 * tests/test-mbsrtowcs.c (mbsrtowcs): Likewise.
3484 * tests/test-memchr.c (memchr): Likewise.
3485 * tests/test-memcmp.c (memcmp): Likewise.
3486 * tests/test-memmem.c (memmem): Likewise.
3487 * tests/test-memrchr.c (memrchr): Likewise.
3488 * tests/test-mkdir.c (mkdir): Likewise.
3489 * tests/test-mkdirat.c (mkdirat): Likewise.
3490 * tests/test-mkfifo.c (mkfifo): Likewise.
3491 * tests/test-mkfifoat.c (mkfifoat, mknodat): Likewise.
3492 * tests/test-mknod.c (mknod): Likewise.
3493 * tests/test-nanosleep.c (nanosleep): Likewise.
3494 * tests/test-nl_langinfo.c (nl_langinfo): Likewise.
3495 * tests/test-obstack-printf.c (obstack_printf, obstack_vprintf):
3497 * tests/test-open.c (open): Likewise.
3498 * tests/test-openat.c (openat): Likewise.
3499 * tests/test-perror.c (perror): Likewise.
3500 * tests/test-pipe2.c (pipe2): Likewise.
3501 * tests/test-poll.c (poll): Likewise.
3502 * tests/test-popen.c (popen, pclose): Likewise.
3503 * tests/test-posix_spawn1.c (posix_spawnp, posix_spawnattr_init)
3504 (posix_spawnattr_destroy, posix_spawnattr_setsigmask)
3505 (posix_spawnattr_setflags, posix_spawn_file_actions_init)
3506 (posix_spawn_file_actions_destroy)
3507 (posix_spawn_file_actions_addclose)
3508 (posix_spawn_file_actions_addopen)
3509 (posix_spawn_file_actions_adddup2): Likewise.
3510 * tests/test-posix_spawn3.c (posix_spawn): Likewise.
3511 * tests/test-pread.c (pread): Likewise.
3512 * tests/test-printf-posix.c (printf): Likewise.
3513 * tests/test-pty.c (openpty, forkpty): Likewise.
3514 * tests/test-random_r.c (srandom_r, initstate_r, setstate_r)
3515 (random_r): Likewise.
3516 * tests/test-rawmemchr.c (rawmemchr): Likewise.
3517 * tests/test-readlink.c (readlink): Likewise.
3518 * tests/test-remove.c (remove): Likewise.
3519 * tests/test-rename.c (rename): Likewise.
3520 * tests/test-renameat.c (renameat): Likewise.
3521 * tests/test-rmdir.c (rmdir): Likewise.
3522 * tests/test-round1.c (round): Likewise.
3523 * tests/test-roundf1.c (roundf): Likewise.
3524 * tests/test-roundl.c (roundl): Likewise.
3525 * tests/test-setenv.c (setenv): Likewise.
3526 * tests/test-sigaction.c (sigaction): Likewise.
3527 * tests/test-sleep.c (sleep): Likewise.
3528 * tests/test-snprintf.c (snprintf): Likewise.
3529 * tests/test-sprintf-posix.c (sprintf): Likewise.
3530 * tests/test-stat.c (stat): Likewise.
3531 * tests/test-stpncpy.c (stpncpy): Likewise.
3532 * tests/test-strcasestr.c (strcasestr): Likewise.
3533 * tests/test-strchrnul.c (strchrnul): Likewise.
3534 * tests/test-strerror.c (strerror): Likewise.
3535 * tests/test-strsignal.c (strsignal): Likewise.
3536 * tests/test-strstr.c (strstr): Likewise.
3537 * tests/test-strtod.c (strtod): Likewise.
3538 * tests/test-strverscmp.c (strverscmp): Likewise.
3539 * tests/test-symlink.c (symlink): Likewise.
3540 * tests/test-symlinkat.c (symlinkat, readlinkat): Likewise.
3541 * tests/test-times.c (times): Likewise.
3542 * tests/test-trunc1.c (trunc): Likewise.
3543 * tests/test-truncf1.c (truncf): Likewise.
3544 * tests/test-truncl.c (truncl): Likewise.
3545 * tests/test-tsearch.c (tdelete, tfind, tsearch, twalk):
3547 * tests/test-uname.c (uname): Likewise.
3548 * tests/test-unlink.c (unlink): Likewise.
3549 * tests/test-unlinkat.c (unlinkat): Likewise.
3550 * tests/test-unsetenv.c (unsetenv): Likewise.
3551 * tests/test-usleep.c (usleep): Likewise.
3552 * tests/test-utimensat.c (utimensat): Likewise.
3553 * tests/test-vasprintf.c (asprintf, vasprintf): Likewise.
3554 * tests/test-vdprintf-posix.c (vdprintf): Likewise.
3555 * tests/test-vfprintf-posix.c (vfprintf): Likewise.
3556 * tests/test-vprintf-posix.c (vprintf): Likewise.
3557 * tests/test-vsnprintf.c (vsnprintf): Likewise.
3558 * tests/test-vsprintf-posix.c (vsprintf): Likewise.
3559 * tests/test-wcrtomb.c (wcrtomb): Likewise.
3560 * tests/test-wcsnrtombs.c (wcsnrtombs): Likewise.
3561 * tests/test-wcsrtombs.c (wcsrtombs): Likewise.
3562 * tests/test-wcwidth.c (wcwidth): Likewise.
3564 build: pull in conditional headers during GNULIB_POSIXCHECK
3565 * lib/stdio.in.h (includes): Using GNULIB_POSIXCHECK also requires
3566 definitions from any conditionally-included headers.
3567 * lib/stdlib.in.h (includes): Likewise.
3568 * lib/unistd.in.h (includes): Likewise.
3570 2009-12-24 Bruno Haible <bruno@clisp.org>
3572 * tests/test-argv-iter.c: Include header file being tested immediately
3574 * tests/test-base64.c: Likewise.
3575 * tests/test-flock.c: Likewise.
3576 * tests/test-fsync.c: Likewise.
3577 * tests/test-getdate.c: Likewise.
3578 * tests/test-getndelim2.c: Likewise.
3579 * tests/test-isfinite.c: Likewise.
3580 * tests/test-isinf.c: Likewise.
3581 * tests/test-strerror.c: Likewise.
3582 * tests/test-strsignal.c: Likewise.
3584 2009-12-23 Eric Blake <ebb9@byu.net>
3586 unistd: work around cygwin bug
3587 * lib/unistd.in.h (includes): Pick up headers needed for cygwin.
3588 * doc/posix-functions/unlinkat.texi (unlinkat): Document the bug.
3589 * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
3591 2009-12-23 Bruno Haible <bruno@clisp.org>
3593 localename: More tests.
3594 * tests/test-localename.c (SIZEOF): New macro.
3595 (categories): New variable.
3596 (test_locale_name, test_locale_name_posix, test_locale_name_environ,
3597 test_locale_name_default): Add test w.r.t. thread locale.
3598 (test_locale_name_thread): New function.
3601 localename: Make aware of thread locale.
3602 * lib/localename.h (gl_locale_name_thread): New declaration.
3603 (gl_locale_name, gl_locale_name_posix, gl_locale_name_default): Clarify
3604 behaviour with respect to thread locale.
3605 * lib/localename.c: Include <limits.h>, <stddef.h>, <xlocale.h>,
3606 <langinfo.h>, glthread/lock.h.
3607 (SIZE_BITS): New macro.
3608 (string_hash): New function.
3609 (struct hash_node): New type.
3610 (HASH_TABLE_SIZE): New macro.
3611 (struniq_hash_table, struniq_lock): New variables.
3612 (struniq): New function.
3613 (gl_locale_name_thread): New function.
3614 (gl_locale_name): Invoke it.
3615 * m4/localename.m4 (gl_LOCALENAME): Test for uselocale function.
3616 * modules/localename (Depends-on): Add lock.
3617 Reported by Mike Gran <spk121@yahoo.com>.
3619 2009-12-23 Eric Blake <ebb9@byu.net>
3622 * modules/va-args: New file.
3623 * m4/va-args.m4 (gl_VA_ARGS): Likewise.
3624 * MODULES.html.sh (Core language properties): Mention it.
3626 gnulib-common: prefer _GL_UNUSED over _UNUSED_PARAMETER_
3627 * m4/gnulib-common.m4 (gl_COMMON): Create a more-appropriately
3628 named alias for __attribute__((__unused__)).
3629 * lib/chown.c: Update client.
3630 * lib/fchmodat.c: Likewise.
3631 * lib/fts.c: Likewise.
3632 * lib/getdate.y: Likewise.
3633 * lib/getgroups.c: Likewise.
3634 * lib/getopt.c: Likewise.
3635 * lib/getugroups.c: Likewise.
3636 * lib/mkdir.c: Likewise.
3637 * lib/mkfifo.c: Likewise.
3638 * lib/mkfifoat.c: Likewise.
3639 * lib/mknod.c: Likewise.
3640 * lib/mknodat.c: Likewise.
3641 * lib/readlink.c: Likewise.
3642 * lib/se-context.in.h: Likewise.
3643 * lib/se-selinux.in.h: Likewise.
3644 * lib/sockets.c: Likewise.
3645 * lib/symlink.c: Likewise.
3646 * lib/symlinkat.c: Likewise.
3647 * lib/unicodeio.c: Likewise.
3648 * lib/unistr.h: Likewise.
3649 * tests/test-areadlink.c: Likewise.
3650 * tests/test-areadlinkat.c: Likewise.
3651 * tests/test-filenamecat.c: Likewise.
3652 * tests/test-fseeko.c: Likewise.
3653 * tests/test-ftello.c: Likewise.
3654 * tests/test-getdate.c: Likewise.
3655 * tests/test-getgroups.c: Likewise.
3656 * tests/test-gethostname.c: Likewise.
3657 * tests/test-quotearg.c: Likewise.
3658 * tests/test-version-etc.c: Likewise.
3659 * tests/test-xalloc-die.c: Likewise.
3660 * tests/test-xfprintf-posix.c: Likewise.
3661 * tests/test-xprintf-posix.c: Likewise.
3662 * tests/test-xvasprintf.c: Likewise.
3664 tests: avoid compiler warnings
3665 * tests/test-fcntl.c (main): Delete unused parameters.
3666 * tests/test-freopen-safer.c (main): Likewise.
3667 * tests/test-xalloc-die.c (main): Mark unused parameters.
3668 * tests/test-fseeko.c (main): Likewise.
3669 * tests/test-ftello.c (main): Likewise.
3670 * tests/test-nanosleep.c (main): Avoid declaration warning.
3671 * tests/test-sleep.c (main): Likewise.
3672 * tests/test-unsetenv.c (main): Silence warning about string
3674 * m4/setenv.m4 (gl_FUNC_UNSETENV): Likewise.
3676 2009-12-23 Bruno Haible <bruno@clisp.org>
3678 * tests/test-localename.c (test_locale_name): New function, extracted
3679 from main. Also test mixed situations.
3680 (test_locale_name_posix, test_locale_name_environ,
3681 test_locale_name_default): New functions.
3682 (main): Invoke them all.
3683 * modules/localename-tests (configure.ac): Test for newlocale.
3685 2009-12-23 Bruno Haible <bruno@clisp.org>
3687 unistd: Ensure getcwd gets declared before being overridden.
3688 * lib/unistd.in.h: Conditionally include <io.h>.
3690 2009-12-22 Bruno Haible <bruno@clisp.org>
3692 wchar: Diagnose broken combination of glibc and gcc versions and flags.
3693 * m4/wchar.m4 (gl_WCHAR_H_INLINE_OK): New macro.
3694 (gl_WCHAR_H): Invoke it.
3695 * m4/btowc.m4 (gl_FUNC_BTOWC): Require it.
3696 * doc/posix-headers/wchar.texi: Mention the interoperability problem.
3697 Reported by Karl Berry <karl@freefriends.org>.
3699 2009-12-22 Eric Blake <ebb9@byu.net>
3701 math, unistd: avoid redundant includes
3702 * lib/math.in.h (isnan): No need to re-include <math.h>.
3703 * lib/unistd.in.h (getcwd): Likewise, for <stdlib.h>.
3705 getsubopt: work around cygwin bug
3706 * lib/stdlib.in.h (includes): Move unistd inclusion sooner, to
3707 avoid conflicting with system getsubopt.
3708 * doc/posix-functions/getsubopt.texi (getsubopt): Document the
3711 getopt: synchronize from glibc
3712 * lib/getopt.c (_getopt_initialize, _getopt_internal_r): Swap
3713 parameter order. Adjust all callers.
3714 (_getopt_internal_r, main): Adjust quoting in error messages.
3715 Drop considerations for outdated POSIX 1003.2 error message.
3716 * lib/getopt1.c (_getopt_long_r, _getopt_long_only_r): Adjust
3718 * lib/getopt_int.h (_getopt_internal_r): Adjust prototype.
3720 test-getopt: test stderr behavior
3721 * modules/getopt-posix-tests (Depends-on): Add dup2.
3722 * tests/test-getopt.c (ASSERT): Avoid stderr.
3723 (main): Move stderr to a temporary file.
3724 * tests/test-getopt.h (getopt_loop): No longer manipulate opterr.
3725 Instead, add parameter to inform caller if output occurred.
3726 (test_getopt): Adjust all existing tests to expect silence, and
3727 add new tests of leading ":".
3728 * doc/glibc-functions/getopt_long.texi (getopt_long): Document
3729 glibc shortcomings with leading "-:" or "+:" in optstring.
3730 * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
3732 * doc/posix-functions/getopt.texi (getopt): Likewise.
3734 test-getopt: enhance test
3735 * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Require that getopt_long
3737 * tests/test-getopt.c (OPTIND_MIN): Move...
3738 * tests/test-getopt.h (OPTIND_MIN): ...here.
3739 * tests/test-getopt_long.h (test_getopt_long): Add more coverage.
3740 Require that optind=0 works, since modern BSD supports it in
3741 addition to optreset, and since coreutils expects it.
3742 (test_getopt_long_only): New test.
3743 * doc/glibc-functions/getopt_long.texi (getopt_long): Document
3744 glibc shortcomings with 'W;', and enforcement of optind=0.
3745 * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
3748 2009-12-21 Bruno Haible <bruno@clisp.org>
3750 localename: Improvements for MacOS X and Cygwin.
3751 * lib/localename.h (gl_locale_name_environ): New declaration.
3752 * lib/localename.c (gl_locale_name_environ): New function, extracted from
3753 gl_locale_name_posix. Ignore dummy LANG values on MacOS X and Cygwin.
3754 (gl_locale_name_posix): Invoke it.
3755 (gl_locale_name_default): Add comments. Use Windows native API also on
3758 2009-12-21 Bruno Haible <bruno@clisp.org>
3760 Update list of Win32 locale ids.
3761 * lib/localename.c (LANG_ROMANSH): Renamed from LANG_RHAETO_ROMANCE.
3762 (LANG_SAMI): Renamed from LANG_SAAMI.
3763 (LANG_BASHKIR, LANG_LUXEMBOURGISH, LANG_GREENLANDIC,
3764 LANG_MAPUDUNGUN, LANG_MOHAWK, LANG_BRETON, LANG_OCCITAN, LANG_CORSICAN,
3765 LANG_ALSATIAN, LANG_YAKUT, LANG_KICHE, LANG_KINYARWANDA, LANG_WOLOF,
3766 LANG_DARI, LANG_SCOTTISH_GAELIC): New macros.
3767 (SUBLANG_AFRIKAANS_SOUTH_AFRICA, SUBLANG_ALBANIAN_ALBANIA,
3768 SUBLANG_ALSATIAN_FRANCE, SUBLANG_AMHARIC_ETHIOPIA,
3769 SUBLANG_ARMENIAN_ARMENIA, SUBLANG_ASSAMESE_INDIA,
3770 SUBLANG_BASHKIR_RUSSIA, SUBLANG_BASQUE_BASQUE,
3771 SUBLANG_BELARUSIAN_BELARUS, SUBLANG_BRETON_FRANCE,
3772 SUBLANG_BULGARIAN_BULGARIA, SUBLANG_CAMBODIAN_CAMBODIA,
3773 SUBLANG_CATALAN_SPAIN, SUBLANG_CORSICAN_FRANCE,
3774 SUBLANG_CZECH_CZECH_REPUBLIC, SUBLANG_DANISH_DENMARK,
3775 SUBLANG_DARI_AFGHANISTAN, SUBLANG_DIVEHI_MALDIVES,
3776 SUBLANG_DUTCH_SURINAM, SUBLANG_ESTONIAN_ESTONIA,
3777 SUBLANG_FAEROESE_FAROE_ISLANDS, SUBLANG_FARSI_IRAN,
3778 SUBLANG_FINNISH_FINLAND, SUBLANG_FRISIAN_NETHERLANDS,
3779 SUBLANG_GALICIAN_SPAIN, SUBLANG_GEORGIAN_GEORGIA,
3780 SUBLANG_GREEK_GREECE, SUBLANG_GREENLANDIC_GREENLAND,
3781 SUBLANG_GUJARATI_INDIA, SUBLANG_HAUSA_NIGERIA_LATIN,
3782 SUBLANG_HEBREW_ISRAEL, SUBLANG_HINDI_INDIA, SUBLANG_HUNGARIAN_HUNGARY,
3783 SUBLANG_ICELANDIC_ICELAND, SUBLANG_IGBO_NIGERIA,
3784 SUBLANG_INDONESIAN_INDONESIA, SUBLANG_INUKTITUT_CANADA,
3785 SUBLANG_INUKTITUT_CANADA_LATIN, SUBLANG_IRISH_IRELAND,
3786 SUBLANG_JAPANESE_JAPAN, SUBLANG_KANNADA_INDIA,
3787 SUBLANG_KAZAK_KAZAKHSTAN, SUBLANG_KICHE_GUATEMALA,
3788 SUBLANG_KINYARWANDA_RWANDA, SUBLANG_KONKANI_INDIA,
3789 SUBLANG_KYRGYZ_KYRGYZSTAN, SUBLANG_LAO_LAOS, SUBLANG_LATVIAN_LATVIA,
3790 SUBLANG_LITHUANIAN_LITHUANIA, SUBLANG_LOWER_SORBIAN_GERMANY,
3791 SUBLANG_LUXEMBOURGISH_LUXEMBOURG, SUBLANG_MACEDONIAN_MACEDONIA,
3792 SUBLANG_MALAYALAM_INDIA, SUBLANG_MALTESE_MALTA,
3793 SUBLANG_MAORI_NEW_ZEALAND, SUBLANG_MAPUDUNGUN_CHILE,
3794 SUBLANG_MARATHI_INDIA, SUBLANG_MOHAWK_CANADA, SUBLANG_NEPALI_NEPAL,
3795 SUBLANG_OCCITAN_FRANCE, SUBLANG_ORIYA_INDIA,
3796 SUBLANG_PASHTO_AFGHANISTAN, SUBLANG_POLISH_POLAND,
3797 SUBLANG_ROMANSH_SWITZERLAND, SUBLANG_SAMI_NORTHERN_NORWAY,
3798 SUBLANG_SAMI_NORTHERN_SWEDEN, SUBLANG_SAMI_NORTHERN_FINLAND,
3799 SUBLANG_SAMI_LULE_NORWAY, SUBLANG_SAMI_LULE_SWEDEN,
3800 SUBLANG_SAMI_SOUTHERN_NORWAY, SUBLANG_SAMI_SOUTHERN_SWEDEN,
3801 SUBLANG_SAMI_SKOLT_FINLAND, SUBLANG_SAMI_INARI_FINLAND,
3802 SUBLANG_SANSKRIT_INDIA, SUBLANG_SINHALESE_SRI_LANKA,
3803 SUBLANG_SLOVAK_SLOVAKIA, SUBLANG_SLOVENIAN_SLOVENIA,
3804 SUBLANG_SOTHO_SOUTH_AFRICA, SUBLANG_SWAHILI_KENYA,
3805 SUBLANG_SWEDISH_SWEDEN, SUBLANG_SYRIAC_SYRIA,
3806 SUBLANG_TAGALOG_PHILIPPINES, SUBLANG_TAJIK_TAJIKISTAN,
3807 SUBLANG_TAMIL_INDIA, SUBLANG_TATAR_RUSSIA, SUBLANG_TELUGU_INDIA,
3808 SUBLANG_THAI_THAILAND, SUBLANG_TSWANA_SOUTH_AFRICA,
3809 SUBLANG_TURKISH_TURKEY, SUBLANG_TURKMEN_TURKMENISTAN,
3810 SUBLANG_UKRAINIAN_UKRAINE, SUBLANG_UPPER_SORBIAN_GERMANY,
3811 SUBLANG_VIETNAMESE_VIETNAM, SUBLANG_WELSH_UNITED_KINGDOM,
3812 SUBLANG_WOLOF_SENEGAL, SUBLANG_XHOSA_SOUTH_AFRICA,
3813 SUBLANG_YAKUT_RUSSIA, SUBLANG_YI_PRC, SUBLANG_YORUBA_NIGERIA,
3814 SUBLANG_ZULU_SOUTH_AFRICA): New macros.
3815 (gl_locale_name_from_win32_LANGID): Handle also the territory neutral
3816 locale ids. Add support for Alsatian, Bashkir, Breton, Corsican, Dari,
3817 Greenlandic, K'iche', Kinyarwanda, Luxembourgish, Mapudungun, Mohawk,
3818 Occitan, Scottish Gaelic, Wolof, Yakut. Change language code for Yi.
3819 Add more languages and countries for Sami, Sorbian. Add more countries
3820 for Serbian, Dutch. Add more scripts for Inuktitut. Be more precise
3821 for Pashto. Change country for Syriac, Tswana.
3823 2009-12-21 Eric Blake <ebb9@byu.net>
3825 test-utimens: avoid spurious failure
3826 * tests/test-chown.h (nap): Factor...
3827 * tests/nap.h: ...into new file.
3828 * tests/test-lchown.h (nap): Avoid duplication.
3829 * tests/test-utimens-common.h (nap): Use shared implementation,
3830 necessary on file systems with 1-second resolution.
3831 * modules/chown-tests (Files): Include new file.
3832 * modules/fdutimensat-tests (Files): Likewise.
3833 * modules/futimens-tests (Files): Likewise.
3834 * modules/lchown-tests (Files): Likewise.
3835 * modules/openat-tests (Files): Likewise.
3836 * modules/utimens-tests (Files): Likewise.
3837 * modules/utimensat-tests (Files): Likewise.
3839 2009-12-19 Eric Blake <ebb9@byu.net>
3841 futimens, utimensat: work around Linux bug
3842 * m4/futimens.m4 (gl_FUNC_FUTIMENS): Detect ctime bug.
3843 * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
3844 * lib/utimensat.c (rpl_utimensat): Work around it.
3845 * lib/futimens.c (rpl_futimens): Adjust comment.
3847 utimens: work around Linux ctime bug
3848 * lib/utimens.c (detect_ctime_bug): New helper function.
3849 (update_timespec): Differentiate between workaround needed for
3850 this bug vs. what is needed for systems that lack utimensat.
3851 (fdutimens, lutimens): Work around bug.
3853 utimens: check for ctime update
3854 * tests/test-utimens-common.h (check_ctime): Define.
3855 * tests/test-utimens.h (test_utimens): Expose the Linux bug.
3856 * tests/test-futimens.h (test_futimens): Likewise.
3857 * tests/test-lutimens.h (test_lutimens): Likewise.
3858 * doc/posix-functions/futimens.texi (futimens): Document the bug.
3859 * doc/posix-functions/utimensat.texi (utimensat): Likewise.
3861 2009-12-19 Bruno Haible <bruno@clisp.org>
3863 dprintf-posix: Check against memory leak fixed on 2009-12-15.
3864 * tests/test-dprintf-posix2.sh: New file.
3865 * tests/test-dprintf-posix2.c: New file.
3866 * modules/dprintf-posix-tests (Files): Add them.
3867 (configure.ac): Check for getrlimit and setrlimit.
3868 (Makefile.am): Augment TESTS and CHECK_PROGRAMS.
3870 2009-12-19 Bruno Haible <bruno@clisp.org>
3872 fprintf-posix: Check against memory leak fixed on 2009-12-15.
3873 * tests/test-fprintf-posix3.sh: New file.
3874 * tests/test-fprintf-posix3.c: New file.
3875 * modules/fprintf-posix-tests (Files): Add them.
3876 (Makefile.am): Augment TESTS and CHECK_PROGRAMS.
3878 2009-12-19 Eric Blake <ebb9@byu.net>
3880 dirfd: fix prototype
3881 * lib/dirent.in.h (dirfd): Argument is not const, per POSIX.
3882 * lib/dirfd.c (dirfd): Likewise.
3884 canonicalize: reduce memory usage
3885 * lib/canonicalize.c (canonicalize_filename_mode): Trim the
3887 Reported by Solar Designer <solar@openwall.com>.
3889 2009-12-19 Bruno Haible <bruno@clisp.org>
3891 New module attribute 'Applicability'.
3892 * modules/TEMPLATE-EXTENDED: New field 'Applicability'.
3893 * gnulib-tool: New option --extract-applicability.
3894 (func_usage): Document it.
3895 (sed_extract_prog): Recognize it.
3896 (func_get_applicability): New function.
3897 (func_import): Generalize handling of 'link-warning' module.
3898 * modules/link-warning (Applicability): New section.
3899 * modules/arg-nonnull (Applicability): New section.
3900 Repoted by Simon Josefsson <simon@josefsson.org>.
3902 2009-12-19 Bruno Haible <bruno@clisp.org>
3905 * lib/fflush.c (update_fpos_cache): Don't use fpos_t on Cygwin.
3906 * lib/fseeko.c (rpl_fseeko): Likewise.
3908 2009-12-16 José E. Marchesi <jemarch@gnu.org> (tiny change)
3910 * lib/gl_list.h: Fix typo in comment.
3912 2009-12-16 Eric Blake <ebb9@byu.net>
3914 fcntl: use to simplify other modules
3915 * modules/cloexec (Depends-on): Add fcntl.
3916 * modules/fchdir (Depends-on): Likewise.
3917 * modules/fd-safer-flag (Depends-on): Likewise.
3918 * modules/unistd-safer (Depends-on): Likewise.
3919 * modules/dup3 (configure.ac): Set module indicator.
3920 * m4/fchdir.m4 (gl_FUNC_FCHDIR): Replace fcntl if fchdir is
3922 * lib/fchdir.c (_gl_register_dup): Fix comment.
3923 * lib/cloexec.c (dup_cloexec): Simplify, by relying on fcntl.
3924 * lib/dup-safer.c (dup_safer): Likewise.
3925 * lib/dup-safer-flag.c (dup_safer_flag): Likewise.
3926 * lib/dup3.c (dup3): Likewise.
3927 * tests/test-fchdir.c (main): Enhance test.
3928 Fixes a dup_cloexec bug reported by OndÅ™ej VaÅ¡Ãk.
3930 fcntl: port portions of fcntl to mingw
3931 * m4/fcntl.m4 (gl_FUNC_FCNTL): Also build fcntl.c on mingw.
3932 * lib/fcntl.c (fcntl) <F_DUPFD, F_DUPFD_CLOEXEC, F_GETFD>: Provide
3933 replacement for mingw.
3934 * modules/fcntl (Description): Update.
3935 (Depends-on): Add dup2.
3936 * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Add witness.
3937 * modules/fcntl-h (Makefile.am): Substitute it.
3938 * lib/fcntl.in.h (fcntl): Update declaration.
3939 (F_DUPFD, F_GETFD): New macros, when needed.
3940 * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
3941 * doc/posix-functions/fcntl.texi (fcntl): Likewise.
3942 * tests/test-fcntl.c (check_flags, main): Enhance test for items
3945 fcntl: work around cygwin bug in F_DUPFD
3946 * m4/fcntl.m4 (gl_REPLACE_FCNTL): New macro.
3947 (gl_FUNC_FCNTL): Use it. Test for F_DUPFD bug.
3948 * lib/fcntl.c (rpl_fcntl) <F_DUPFD>: Work around it.
3949 <F_DUPFD_CLOEXEC>: Reduce calls to _gl_register_dup.
3950 * doc/posix-functions/fcntl.texi (fcntl): Document it.
3952 fcntl: support F_DUPFD_CLOEXEC on systems with fcntl
3953 * modules/fcntl (Files): List new files.
3954 (configure.ac): Run a test.
3955 * m4/fcntl.m4 (gl_FUNC_FCNTL): New file.
3956 * lib/fcntl.c (rpl_fcntl): Likewise.
3957 * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Add witness defaults.
3958 (gl_FCNTL_H): Always replace fcntl.h.
3959 * modules/fcntl-h (Makefile.am): Substitute witnesses.
3960 * lib/fcntl.in.h (fcntl): Declare replacement.
3961 (F_DUPFD_CLOEXEC, GNULIB_defined_F_DUPFD_CLOEXEC): New macro when
3962 needed, plus a witness.
3963 * doc/posix-functions/fcntl.texi (fcntl): Document this.
3964 * doc/posix-headers/fcntl.texi (fcntl.h): Likewise.
3965 * tests/test-fcntl.c: New file.
3966 * modules/fcntl-tests: Likewise.
3968 binary-io: avoid potential compilation warning
3969 * lib/binary-io.h [__DJGPP__]: Avoid null preprocessor
3972 fflush: avoid compilation error on NetBSD
3973 * lib/fflush.c (update_fpos_cache): Use a union to safely convert
3974 between off_t and fpos_t, since the latter is sometimes a struct.
3975 * lib/fseeko.c (rpl_fseeko): Likewise.
3976 Reported by Alexander Nasonov <alnsn@yandex.ru>.
3978 2009-12-15 Eric Blake <ebb9@byu.net>
3980 fcntl-h, stdio, sys_ioctl: fix declarations
3981 * lib/stdio.in.h (dprintf): Use of link warning on a variadic
3982 function must not take arguments.
3983 * lib/sys_ioctl.in.h (ioctl): Likewise.
3984 * lib/fcntl.in.h (openat): Likewise. Declare extern.
3985 (open): Add a link warning.
3987 2009-12-15 Jim Meyering <meyering@redhat.com>
3989 areadlink, areadlink-with-size: relax license to LGPLv2+
3990 * modules/areadlink (License): Relax to LGPLv2+.
3991 * modules/areadlink-with-size (License): Likewise.
3993 2009-12-15 Joel E. Denny <jdenny@clemson.edu>
3994 Bruno Haible <bruno@clisp.org>
3996 *printf: Fix memory leak.
3997 * lib/fprintf.c (fprintf): Free memory allocated by vasnprintf.
3998 * lib/vfprintf.c (vfprintf): Likewise.
3999 * lib/dprintf.c (dprintf): Likewise.
4000 * lib/vdprintf.c (vdprintf): Likewise.
4002 2009-12-14 Eric Blake <ebb9@byu.net>
4004 accept4: adjust module dependencies
4005 * modules/accept4 (Depends-on): Use fcntl-h, not fcntl.
4007 utimens: one more try at avoiding compiler warning
4008 * lib/utimens.c (lutimens): Lower scope of result.
4010 2009-12-13 Bruno Haible <bruno@clisp.org>
4012 Move the malloc checking from module 'list' to new module 'xlist'.
4013 * modules/xlist: New file.
4014 * lib/gl_xlist.h: New file.
4015 * lib/gl_xlist.c: New file.
4016 * lib/gl_list.h (gl_list_create_empty, gl_list_create,
4017 gl_list_node_set_value, gl_list_set_at, gl_list_add_first,
4018 gl_list_add_last, gl_list_add_before, gl_list_add_after,
4019 gl_list_nx_add_at, gl_sortedlist_add): Disable declarations.
4020 (gl_list_nx_create_empty, gl_list_nx_create, gl_list_node_nx_set_value,
4021 gl_list_nx_set_at, gl_list_nx_add_first, gl_list_nx_add_last,
4022 gl_list_nx_add_before, gl_list_nx_add_after, gl_list_nx_add_at,
4023 gl_sortedlist_nx_add): New declarations.
4024 (struct gl_list_implementation): Rename and change methods accordingly.
4025 (gl_list_nx_create_empty): Renamed from gl_list_create_empty.
4026 (gl_list_nx_create): Renamed from gl_list_create.
4027 (gl_list_node_nx_set_value): Renamed from gl_list_node_set_value.
4028 (gl_list_nx_set_at): Renamed from gl_list_set_at.
4029 (gl_list_nx_add_first): Renamed from gl_list_add_first.
4030 (gl_list_nx_add_last): Renamed from gl_list_add_last.
4031 (gl_list_nx_add_before): Renamed from gl_list_add_before.
4032 (gl_list_nx_add_after): Renamed from gl_list_add_after.
4033 (gl_list_nx_add_at): Renamed from gl_list_add_at.
4034 (gl_sortedlist_nx_add): Renamed from gl_sortedlist_add.
4035 * lib/gl_list.c (gl_list_nx_create_empty): Renamed from
4036 gl_list_create_empty.
4037 (gl_list_nx_create): Renamed from gl_list_create.
4038 (gl_list_node_nx_set_value): Renamed from gl_list_node_set_value.
4039 (gl_list_nx_set_at): Renamed from gl_list_set_at.
4040 (gl_list_nx_add_first): Renamed from gl_list_add_first.
4041 (gl_list_nx_add_last): Renamed from gl_list_add_last.
4042 (gl_list_nx_add_before): Renamed from gl_list_add_before.
4043 (gl_list_nx_add_after): Renamed from gl_list_add_after.
4044 (gl_list_nx_add_at): Renamed from gl_list_add_at.
4045 (gl_sortedlist_nx_add): Renamed from gl_sortedlist_add.
4046 * lib/gl_array_list.c: Don't include xalloc.h.
4047 (gl_array_nx_create_empty): Renamed from gl_array_create_empty. Return
4048 NULL upon out-of-memory.
4049 (gl_array_nx_create): Renamed from gl_array_create. Return NULL upon
4051 (gl_array_node_nx_set_value): Renamed from gl_array_node_set_value.
4052 Change return type to 'int'.
4053 (gl_array_nx_set_at): Renamed from gl_array_set_at.
4054 (grow): Change return type to 'int'. Return -1 upon out-of-memory.
4055 (gl_array_nx_add_first): Renamed from gl_array_add_first. Return NULL
4057 (gl_array_nx_add_last): Renamed from gl_array_add_last. Return NULL
4059 (gl_array_nx_add_before): Renamed from gl_array_add_before. Return NULL
4061 (gl_array_nx_add_after): Renamed from gl_array_add_after. Return NULL
4063 (gl_array_nx_add_at): Renamed from gl_array_add_at. Return NULL upon
4065 (gl_array_sortedlist_nx_add): Renamed from gl_array_sortedlist_add.
4067 (gl_array_list_implementation): Update.
4068 * lib/gl_carray_list.c: Don't include xalloc.h.
4069 (gl_carray_nx_create_empty): Renamed from gl_carray_create_empty.
4070 Return NULL upon out-of-memory.
4071 (gl_carray_nx_create): Renamed from gl_carray_create. Return NULL upon
4073 (gl_carray_node_nx_set_value): Renamed from gl_carray_node_set_value.
4074 Change return type to 'int'.
4075 (gl_carray_nx_set_at): Renamed from gl_carray_set_at.
4076 (grow): Change return type to 'int'. Return -1 upon out-of-memory.
4077 (gl_carray_nx_add_first): Renamed from gl_carray_add_first. Return NULL
4079 (gl_carray_nx_add_last): Renamed from gl_carray_add_last. Return NULL
4081 (gl_carray_nx_add_at): Renamed from gl_carray_add_at. Return NULL upon
4083 (gl_carray_nx_add_before): Renamed from gl_carray_add_before. Update.
4084 (gl_carray_nx_add_after): Renamed from gl_carray_add_after. Update.
4085 (gl_carray_sortedlist_nx_add): Renamed from gl_carray_sortedlist_add.
4087 (gl_carray_list_implementation): Update.
4088 * lib/gl_anyhash_list2.h (hash_resize): Do nothing upon out-of-memory.
4089 * lib/gl_anylinked_list2.h (gl_linked_nx_create_empty): Renamed from
4090 gl_linked_create_empty. Return NULL upon out-of-memory.
4091 (gl_linked_nx_create): Renamed from gl_linked_create. Return NULL upon
4093 (gl_linked_node_nx_set_value): Renamed from gl_linked_node_set_value.
4094 Change return type to 'int'. Return -1 upon out-of-memory.
4095 (gl_linked_nx_set_at): Renamed from gl_linked_set_at. Return NULL upon
4097 (gl_linked_nx_add_first): Renamed from gl_linked_add_first. Return NULL
4099 (gl_linked_nx_add_last): Renamed from gl_linked_add_last. Return NULL
4101 (gl_linked_nx_add_before): Renamed from gl_linked_add_before. Return
4102 NULL upon out-of-memory.
4103 (gl_linked_nx_add_after): Renamed from gl_linked_add_after. Return NULL
4105 (gl_linked_nx_add_at): Renamed from gl_linked_add_at. Return NULL upon
4107 (gl_linked_sortedlist_nx_add): Renamed from gl_linked_sortedlist_add.
4109 * lib/gl_linked_list.c: Don't include xalloc.h.
4110 (gl_linked_list_implementation): Update.
4111 * lib/gl_linkedhash_list.c: Don't include xalloc.h.
4112 (add_to_bucket): Change return type to 'int'.
4113 (gl_linkedhash_list_implementation): Update.
4114 * lib/gl_anytree_list1.h (free_subtree): New function.
4115 * lib/gl_anytree_list2.h (gl_tree_nx_create_empty): Renamed from
4116 gl_tree_create_empty. Return NULL upon out-of-memory.
4117 (gl_tree_node_nx_set_value): Renamed from gl_tree_node_set_value.
4118 Change return type to 'int'. Return -1 upon out-of-memory.
4119 (gl_tree_nx_set_at): Renamed from gl_tree_set_at. Return NULL upon
4121 (gl_tree_nx_add_at): Renamed from gl_tree_add_at. Update.
4122 (gl_tree_remove_node): New function, moved here from
4123 lib/gl_anyavltree_list2.h and lib/gl_anyrbtree_list2.h.
4124 (gl_tree_sortedlist_nx_add): Renamed from gl_tree_sortedlist_add.
4126 * lib/gl_anyavltree_list2.h (create_subtree_with_contents): Use
4127 malloc, not xmalloc. Return NULL upon out-of-memory.
4128 (gl_tree_nx_create): Renamed from gl_tree_create. Return NULL upon
4130 (gl_tree_remove_node_from_tree): New function, extracted from
4131 gl_tree_remove_node.
4132 (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Return NULL
4134 (gl_tree_nx_add_last): Renamed from gl_tree_add_last. Return NULL upon
4136 (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Return NULL
4138 (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Return NULL
4140 (gl_tree_remove_node): Remove function. Moved to gl_anytree_list2.h.
4141 * lib/gl_anyrbtree_list2.h (create_subtree_with_contents): Use malloc,
4142 not xmalloc. Return NULL upon out-of-memory.
4143 (gl_tree_nx_create): Renamed from gl_tree_create. Return NULL upon
4145 (gl_tree_remove_node_from_tree): New function, extracted from
4146 gl_tree_remove_node.
4147 (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Return NULL
4149 (gl_tree_nx_add_last): Renamed from gl_tree_add_last. Return NULL upon
4151 (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Return NULL
4153 (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Return NULL
4155 (gl_tree_remove_node): Remove function. Moved to gl_anytree_list2.h.
4156 * lib/gl_avltree_list.c: Don't include xalloc.h. Include
4157 gl_anytree_list1.h before gl_anyavltree_list2.h.
4158 (gl_avltree_list_implementation): Update.
4159 * lib/gl_rbtree_list.c: Don't include xalloc.h. Include
4160 gl_anytree_list1.h before gl_anyavltree_list2.h.
4161 (gl_rbtree_list_implementation): Update.
4162 * lib/gl_anytreehash_list1.h (add_to_bucket, add_nodes_to_buckets):
4163 Change return type to 'int'. Return -1 upon out-of-memory. Use
4165 * lib/gl_avltreehash_list.c: Don't include xalloc.h.
4166 (gl_avltreehash_list_implementation): Update.
4167 * lib/gl_rbtreehash_list.c: Don't include xalloc.h.
4168 (gl_rbtreehash_list_implementation): Update.
4169 * modules/array-list (Depends-on): Remove xalloc.
4170 * modules/carray-list (Depends-on): Likewise.
4171 * modules/linked-list (Depends-on): Likewise.
4172 * modules/linkedhash-list (Depends-on): Likewise.
4173 * modules/avltree-list (Depends-on): Likewise.
4174 * modules/rbtree-list (Depends-on): Likewise.
4175 * modules/avltreehash-list (Depends-on): Likewise.
4176 * modules/rbtreehash-list (Depends-on): Likewise.
4178 * modules/xsublist: New file.
4179 * lib/gl_xsublist.h: New file.
4180 * lib/gl_xsublist.c: New file.
4181 * lib/gl_sublist.h (gl_sublist_create): Disable declaration.
4182 (gl_sublist_nx_create): New declaration.
4183 * lib/gl_sublist.c: Don't include xalloc.h.
4184 (gl_sublist_nx_create_empty): Renamed from gl_sublist_create_empty.
4185 (gl_sublist_nx_create_fill): Renamed from gl_sublist_create_fill.
4186 (gl_sublist_node_nx_set_value): Renamed from gl_sublist_node_set_value.
4187 Change return type to 'int'. Return -1 upon out-of-memory.
4188 (gl_sublist_nx_set_at): Renamed from gl_sublist_set_at. Return NULL
4190 (gl_sublist_nx_add_first): Renamed from gl_sublist_add_first. Return
4191 NULL upon out-of-memory.
4192 (gl_sublist_nx_add_last): Renamed from gl_sublist_add_last. Return NULL
4194 (gl_sublist_nx_add_before): Renamed from gl_sublist_add_before. Return
4195 NULL upon out-of-memory.
4196 (gl_sublist_nx_add_after): Renamed from gl_sublist_add_after. Return
4197 NULL upon out-of-memory.
4198 (gl_sublist_nx_add_at): Renamed from gl_sublist_add_at. Return NULL
4200 (gl_sublist_sortedlist_nx_add): Renamed from gl_sublist_sortedlist_add.
4201 (gl_sublist_list_implementation): Update.
4202 (gl_sublist_nx_create): Renamed from gl_sublist_create. Return NULL
4204 * modules/sublist (Depends-on): Remove xalloc.
4206 * tests/test-array_list.c: Use gl_list_nx_* functions where possible.
4207 * tests/test-carray_list.c: Likewise.
4208 * tests/test-linked_list.c: Likewise.
4209 * tests/test-linkedhash_list.c: Likewise.
4210 * tests/test-avltree_list.c: Likewise.
4211 * tests/test-rbtree_list.c: Likewise.
4212 * tests/test-avltreehash_list.c: Likewise.
4213 * tests/test-rbtreehash_list.c: Likewise.
4214 * modules/array-list-tests (Makefile.am): Don't link with @LIBINTL@.
4215 * modules/carray-list-tests (Makefile.am): Likewise.
4216 * modules/linked-list-tests (Makefile.am): Likewise.
4217 * modules/linkedhash-list-tests (Makefile.am): Likewise.
4218 * modules/avltree-list-tests (Makefile.am): Likewise.
4219 * modules/rbtree-list-tests (Makefile.am): Likewise.
4220 * modules/avltreehash-list-tests (Makefile.am): Likewise.
4221 * modules/rbtreehash-list-tests (Makefile.am): Likewise.
4223 * NEWS: Mention the changes.
4225 * lib/clean-temp.c: Include gl_xlist.h.
4226 * modules/clean-temp (Depends-on): Add xlist.
4228 * lib/git-merge-changelog.c: Include gl_xlist.h instead of gl_list.h.
4229 * modules/git-merge-changelog (Depends-on): Add xlist. Remove list.
4231 * tests/test-array_oset.c: Include gl_xlist.h.
4232 * modules/array-oset-tests (Depends-on): Add xlist.
4234 Reported by José E. Marchesi <jemarch@gnu.org>.
4236 2009-12-13 Bruno Haible <bruno@clisp.org>
4238 Move the malloc checking from module 'oset' to new module 'xoset'.
4239 * modules/xoset: New file.
4240 * lib/gl_xoset.h: New file.
4241 * lib/gl_xoset.c: New file.
4242 * lib/gl_oset.h (gl_oset_create_empty, gl_oset_add): Disable
4244 (gl_oset_nx_create_empty, gl_oset_nx_add): New declarations.
4245 (struct gl_oset_implementation): Rename and change methods accordingly.
4246 (gl_oset_nx_create_empty): Renamed from gl_oset_create_empty.
4247 (gl_oset_nx_add): Renamed from gl_oset_add. Change return type to
4248 'int'. Mark as __warn_unused_result__.
4249 * lib/gl_oset.c (gl_oset_nx_create_empty): Renamed from
4250 gl_oset_create_empty.
4251 (gl_oset_nx_add): Renamed from gl_oset_add. Change return type to
4253 * lib/gl_array_oset.c: Don't include xalloc.h.
4254 (gl_array_nx_create_empty): Renamed from gl_array_create_empty. Use
4255 malloc, not xmalloc.
4256 (grow): Change return type to 'int'. Don't call xalloc_die.
4257 (gl_array_nx_add_at): Renamed from gl_array_add_at. Change return type
4259 (gl_array_nx_add): Renamed from gl_array_add. Change return type to
4261 (gl_array_oset_implementation): Update.
4262 * lib/gl_anytree_oset.h (gl_tree_nx_create_empty): Renamed from
4263 gl_tree_create_empty.
4264 (gl_tree_nx_add): Renamed from gl_tree_add. Change return type to
4266 * lib/gl_avltree_oset.c: Don't include xalloc.h.
4267 (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Use malloc, not
4269 (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Use malloc,
4271 (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Use malloc, not
4273 (gl_avltree_oset_implementation): Update.
4274 * lib/gl_rbtree_oset.c: Don't include xalloc.h.
4275 (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Use malloc, not
4277 (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Use malloc,
4279 (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Use malloc, not
4281 (gl_rbtree_oset_implementation): Update.
4282 * modules/array-oset (Depends-on): Remove xalloc.
4283 * modules/avltree-oset (Depends-on): Likewise.
4284 * modules/rbtree-oset (Depends-on): Likewise.
4285 * tests/test-array_oset.c: Use gl_oset_nx_* functions where possible.
4286 * tests/test-avltree_oset.c: Likewise.
4287 * tests/test-rbtree_oset.c: Likewise.
4288 * lib/gl_anytreehash_list1.h (add_to_bucket): Likewise.
4289 * modules/avltree-oset-tests (Makefile.am): Don't link with @LIBINTL@.
4290 * modules/rbtree-oset-tests (Makefile.am): Likewise.
4291 * NEWS: Mention the change.
4293 2009-12-05 Alfred M. Szmidt <ams@gnu.org>
4295 maint.mk: allow a project to override release-prep commands
4296 * top/maint.mk (alpha, beta, stable): Move release-preparatory
4297 commands into a new rule.
4298 (release-prep): New rule.
4299 (release-prep-hook): New overridable variable.
4301 2009-12-13 Bruno Haible <bruno@clisp.org>
4303 * lib/localcharset.c (locale_charset): Fix comment about use of GetACP.
4305 2009-12-13 Jim Meyering <meyering@redhat.com>
4307 maint.mk (null_AM_MAKEFLAGS, built_programs): remove unused definitions
4308 * top/maint.mk (null_AM_MAKEFLAGS, built_programs): Remove definitions.
4310 2009-12-12 Bruno Haible <bruno@clisp.org>
4313 * lib/duplocale.c (rpl_duplocale): Mark categories array as 'const'.
4315 2009-12-12 Karl Berry <karl@gnu.org>
4317 * config/srclist.txt (strtoll.c): tab changes, no more sync.
4319 2009-12-12 Bruno Haible <bruno@clisp.org>
4321 * m4/po.m4: Undo incorrect untabification.
4323 2009-12-12 Bruno Haible <bruno@clisp.org>
4325 c-strtod, c-strtold: Use multithread-safe implementation on MacOS X.
4326 * modules/c-strtod (Depends-on): Add locale.
4327 * modules/c-strtold (Depends-on): Likewise.
4329 2009-12-12 Bruno Haible <bruno@clisp.org>
4331 * lib/localcharset.c (locale_charset): Add comment about use of GetACP.
4333 2009-12-11 Eric Blake <ebb9@byu.net>
4335 setenv: relax requirement in light of POSIX ruling
4336 * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Test handling of "" but
4338 * tests/test-setenv.c (main): Relax test.
4339 * tests/test-unsetenv.c (main): Likewise.
4340 * doc/posix-functions/setenv.texi (setenv): Document this.
4341 * doc/posix-functions/unsetenv.texi (unsetenv): Likewise.
4343 2009-12-11 Bruno Haible <bruno@clisp.org>
4345 New module 'fd-safer-flag'.
4346 * lib/dup-safer-flag.c: New file, extracted from lib/dup-safer.c.
4347 * lib/dup-safer.c (dup_safer_flag): Remove function.
4348 * lib/fd-safer-flag.c: New file, extracted from lib/fd-safer.c.
4349 * lib/fd-safer.c (fd_safer_flag): Remove function.
4350 * lib/unistd-safer.h (dup_safer_flag, fd_safer_flag): Update condition.
4351 * modules/cloexec (configure.ac): Drop indicator macro.
4352 * modules/fd-safer-flag: New file.
4353 * modules/pipe2-safer (Depends-on): Add fd-safer-flag. Remove cloexec.
4354 * modules/stdlib-safer (Depends-on): Add fd-safer-flag.
4355 * modules/unistd-safer-tests (Depends-on): Add fd-safer-flag.
4357 2009-12-11 Bruno Haible <bruno@clisp.org>
4359 Tests for module 'nl_langinfo'.
4360 * modules/nl_langinfo-tests: New file.
4361 * tests/test-nl_langinfo.sh: New file.
4362 * tests/test-nl_langinfo.c: New file.
4364 New module 'nl_langinfo'.
4365 * lib/nl_langinfo.c: New file.
4366 * m4/nl_langinfo.m4: New file.
4367 * modules/nl_langinfo: New file.
4368 * doc/posix-functions/nl_langinfo.texi: Mention the new module.
4370 2009-12-11 Bruno Haible <bruno@clisp.org>
4372 Tests for module 'langinfo'.
4373 * modules/langinfo-tests: New file.
4374 * tests/test-langinfo.c: New file.
4376 New module 'langinfo'.
4377 * lib/langinfo.in.h: New file.
4378 * m4/langinfo_h.m4: New file.
4379 * modules/langinfo: New file.
4380 * doc/posix-headers/langinfo.texi: Mention the new module.
4382 2009-12-11 Bruno Haible <bruno@clisp.org>
4384 * lib/config.charset: Untabify.
4386 2009-12-11 Bruno Haible <bruno@clisp.org>
4388 * modules/unistd-safer (configure.ac): Drop indicator macro.
4390 2009-12-11 Bruno Haible <bruno@clisp.org>
4392 Move pipe2-safer code to its own file.
4393 * lib/pipe2-safer.c: New file, extracted from lib/pipe-safer.c.
4394 * lib/pipe-safer.c (pipe2_safer): Remove function.
4395 * modules/pipe2-safer (Files): Add lib/pipe2-safer.c.
4396 (Makefile.am): Add it to lib_SOURCES.
4398 2009-12-10 Bruno Haible <bruno@clisp.org>
4400 * lib/recvfrom.c (rpl_recvfrom): Allow the from argument to be NULL.
4402 2009-12-10 Bruno Haible <bruno@clisp.org>
4404 Declare which arguments expect non-NULL values, for GCC and clang.
4405 * build-aux/arg-nonnull.h: New file.
4406 * modules/arg-nonnull: New file.
4407 * lib/arpa_inet.in.h (_GL_ARG_NONNULL): New placeholder.
4408 (inet_ntop, inet_pton): Use it.
4409 * lib/dirent.in.h (_GL_ARG_NONNULL): New placeholder.
4410 (closedir, dirfd, opendir, scandir, alphasort): Use it.
4411 * lib/fcntl.in.h (_GL_ARG_NONNULL): New placeholder.
4412 (open, openat): Use it.
4413 * lib/fnmatch.in.h (_GL_ARG_NONNULL): New placeholder.
4415 * lib/getopt.in.h (_GL_ARG_NONNULL): New placeholder.
4416 (getopt, getopt_long, getopt_long_only): Use it.
4417 * lib/glob.in.h (_GL_ARG_NONNULL): New placeholder.
4418 * lib/glob-libc.h (glob, globfree, glob64, globfree64, glob_pattern_p):
4420 * lib/iconv.in.h (_GL_ARG_NONNULL): New placeholder.
4421 (iconv_open): Use it.
4422 * lib/inttypes.in.h (_GL_ARG_NONNULL): New placeholder.
4423 (strtoimax, strtoumax): Use it.
4424 * lib/locale.in.h (_GL_ARG_NONNULL): New placeholder.
4425 (duplocale): Use it.
4426 * lib/math.in.h (_GL_ARG_NONNULL): New placeholder.
4427 (frexp, frexpl): Use it.
4428 * lib/netdb.in.h (_GL_ARG_NONNULL): New placeholder.
4429 (getaddrinfo, freeaddrinfo, getnameinfo): Use it.
4430 * lib/search.in.h (_GL_ARG_NONNULL): New placeholder.
4431 (tsearch, tfind, tdelete, twalk): Use it.
4432 * lib/signal.in.h (_GL_ARG_NONNULL): New placeholder.
4433 (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset,
4434 sigpending): Use it.
4435 * lib/spawn.in.h (_GL_ARG_NONNULL): New placeholder.
4436 (posix_spawn, posix_spawnp, posix_spawnattr_init,
4437 posix_spawnattr_destroy, posix_spawnattr_getsigdefault,
4438 posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask,
4439 posix_spawnattr_setsigmask, posix_spawnattr_getflags,
4440 posix_spawnattr_setflags, posix_spawnattr_getpgroup,
4441 posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy,
4442 posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam,
4443 posix_spawnattr_setschedparam, posix_spawn_file_actions_init,
4444 posix_spawn_file_actions_destroy, posix_spawn_file_actions_addopen,
4445 posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2):
4447 * lib/stdio.in.h (_GL_ARG_NONNULL): New placeholder.
4448 (dprintf, fclose, fopen, fprintf, fpurge, fputc, fputs, freopen,
4449 rpl_fseek, fseeko, rpl_ftell, ftello, fwrite, getdelim, getline,
4450 obstack_printf, obstack_vprintf, popen, printf, putc, puts, remove,
4451 rename, renameat, snprintf, sprintf, asprintf, vasprintf, vdprintf,
4452 vfprintf, vprintf, vsnprintf, vsprintf): Use it.
4453 * lib/stdlib.in.h (_GL_ARG_NONNULL): New placeholder.
4454 (atoll, canonicalize_file_name, getloadavg, getsubopt, mkdtemp,
4455 mkostemp, mkostemps, mkstemp, mkstemps, putenv, srandom_r, initstate_r,
4456 setstate_r, random_r, realpath, rpmatch, setenv, strtod, strtoll,
4457 strtoull, unsetenv): Use it.
4458 * lib/string.in.h (_GL_ARG_NONNULL): New placeholder.
4459 (memchr, memmem, mempcpy, memrchr, rawmemchr, stpcpy, stpncpy,
4460 strchrnul, strdup, strndup, strnlen, strpbrk, strsep, strstr,
4461 strcasestr, strtok_r, mbslen, mbsnlen, mbschr, mbsrchr, mbsstr,
4462 mbscasecmp, mbsncasecmp, mbspcasecmp, mbscasestr, mbscspn, mbspbrk,
4463 mbsspn, mbssep, mbstok_r, strverscmp): Use it.
4464 * lib/strings.in.h (_GL_ARG_NONNULL): New placeholder.
4465 (strcasecmp, strncasecmp): Use it.
4466 * lib/sys_socket.in.h (_GL_ARG_NONNULL): New placeholder.
4467 (rpl_connect, rpl_bind, rpl_getpeername, rpl_getsockname,
4468 rpl_getsockopt, rpl_recv, rpl_send, rpl_recvfrom, rpl_sendto,
4469 rpl_setsockopt): Use it.
4470 * lib/sys_stat.in.h (_GL_ARG_NONNULL): New placeholder.
4471 (fchmodat, fstat, fstatat, lchmod, rpl_lstat, mkdir, mkdirat, mkfifo,
4472 mkfifoat, mknod, mknodat, stat, utimensat): Use it.
4473 * lib/sys_time.in.h (_GL_ARG_NONNULL): New placeholder.
4474 (gettimeofday): Use it.
4475 * lib/sys_times.in.h (_GL_ARG_NONNULL): New placeholder.
4477 * lib/sys_utsname.in.h (_GL_ARG_NONNULL): New placeholder.
4479 * lib/time.in.h (_GL_ARG_NONNULL): New placeholder.
4480 (nanosleep, mktime, localtime_r, gmtime_r, strptime, timegm): Use it.
4481 * lib/unistd.in.h (_GL_ARG_NONNULL): New placeholder.
4482 (chown, euidaccess, faccessat, _gl_register_fd, fchownat,
4483 getdomainname, gethostname, getlogin_r, lchown, link, linkat, pipe2,
4484 pread, readlink, readlinkat, rmdir, symlink, symlinkat, unlink,
4485 unlinkat, write): Use it.
4486 * lib/wchar.in.h (_GL_ARG_NONNULL): New placeholder.
4487 (mbsrtowcs, mbsnrtowcs, wcsrtombs, wcsnrtombs): Use it.
4488 * lib/argv-iter.h: Include arg-nonnull.h.
4489 (_ATTRIBUTE_NONNULL_): Remove macro.
4490 (argv_iter_init_argv, argv_iter_init_stream, argv_iter,
4491 argv_iter_n_args, argv_iter_free): Use _GL_ARG_NONNULL.
4492 * lib/canonicalize-lgpl.c (_GL_ARG_NONNULL): Define, to defeat gcc
4494 * lib/getaddrinfo.c (_GL_ARG_NONNULL): Likewise.
4495 * lib/getdelim.c (_GL_ARG_NONNULL): Likewise.
4496 * lib/glob.c (_GL_ARG_NONNULL): Likewise.
4497 * lib/random_r.c (_GL_ARG_NONNULL): Likewise.
4498 * lib/setenv.c (_GL_ARG_NONNULL): Likewise.
4499 * lib/strtod.c (_GL_ARG_NONNULL): Likewise.
4500 * lib/tsearch.c (_GL_ARG_NONNULL): Likewise.
4501 * lib/unsetenv.c (_GL_ARG_NONNULL): Likewise.
4502 * modules/arpa_inet (Depends-on): Add arg-nonnull.
4503 (Makefile.am): Insert arg-nonnull.h into arpa/inet.h.
4504 * modules/dirent (Depends-on): Add arg-nonnull.
4505 (Makefile.am): Insert arg-nonnull.h into dirent.h.
4506 * modules/fcntl-h (Depends-on): Add arg-nonnull.
4507 (Makefile.am): Insert arg-nonnull.h into fcntl.h.
4508 * modules/fnmatch (Depends-on): Add arg-nonnull.
4509 (Makefile.am): Insert arg-nonnull.h into fnmatch.h.
4510 * modules/getopt-posix (Depends-on): Add arg-nonnull.
4511 (Makefile.am): Insert arg-nonnull.h into getopt.h.
4512 * modules/glob (Depends-on): Add arg-nonnull.
4513 (Makefile.am): Insert arg-nonnull.h into glob.h.
4514 * modules/iconv_open (Depends-on): Add arg-nonnull.
4515 (Makefile.am): Insert arg-nonnull.h into iconv.h.
4516 * modules/inttypes (Depends-on): Add arg-nonnull.
4517 (Makefile.am): Insert arg-nonnull.h into inttypes.h.
4518 * modules/locale (Depends-on): Add arg-nonnull.
4519 (Makefile.am): Insert arg-nonnull.h into locale.h.
4520 * modules/math (Depends-on): Add arg-nonnull.
4521 (Makefile.am): Insert arg-nonnull.h into math.h.
4522 * modules/netdb (Depends-on): Add arg-nonnull.
4523 (Makefile.am): Insert arg-nonnull.h into netdb.h.
4524 * modules/search (Depends-on): Add arg-nonnull.
4525 (Makefile.am): Insert arg-nonnull.h into search.h.
4526 * modules/signal (Depends-on): Add arg-nonnull.
4527 (Makefile.am): Insert arg-nonnull.h into signal.h.
4528 * modules/spawn (Depends-on): Add arg-nonnull.
4529 (Makefile.am): Insert arg-nonnull.h into spawn.h.
4530 * modules/stdio (Depends-on): Add arg-nonnull.
4531 (Makefile.am): Insert arg-nonnull.h into stdio.h.
4532 * modules/stdlib (Depends-on): Add arg-nonnull.
4533 (Makefile.am): Insert arg-nonnull.h into stdlib.h.
4534 * modules/string (Depends-on): Add arg-nonnull.
4535 (Makefile.am): Insert arg-nonnull.h into string.h.
4536 * modules/strings (Depends-on): Add arg-nonnull.
4537 (Makefile.am): Insert arg-nonnull.h into strings.h.
4538 * modules/sys_socket (Depends-on): Add arg-nonnull.
4539 (Makefile.am): Insert arg-nonnull.h into sys/socket.h.
4540 * modules/sys_stat (Depends-on): Add arg-nonnull.
4541 (Makefile.am): Insert arg-nonnull.h into sys/stat.h.
4542 * modules/sys_time (Depends-on): Add arg-nonnull.
4543 (Makefile.am): Insert arg-nonnull.h into sys/time.h.
4544 * modules/sys_times (Depends-on): Add arg-nonnull.
4545 (Makefile.am): Insert arg-nonnull.h into sys/times.h.
4546 * modules/sys_utsname (Depends-on): Add arg-nonnull.
4547 (Makefile.am): Insert arg-nonnull.h into sys/utsname.h.
4548 * modules/time (Depends-on): Add arg-nonnull.
4549 (Makefile.am): Insert arg-nonnull.h into time.h.
4550 * modules/unistd (Depends-on): Add arg-nonnull.
4551 (Makefile.am): Insert arg-nonnull.h into unistd.h.
4552 * modules/wchar (Depends-on): Add arg-nonnull.
4553 (Makefile.am): Insert arg-nonnull.h into wchar.h.
4554 * modules/argv-iter (Depends-on): Add arg-nonnull.
4555 * tests/test-canonicalize.c (null_ptr): New function.
4557 * tests/test-canonicalize-lgpl.c (null_ptr): New function.
4559 * tests/test-memmem.c (null_ptr): New function.
4561 Reported by Jim Meyering.
4563 2009-12-10 Bruno Haible <bruno@clisp.org>
4565 Use spaces for indentation, not tabs.
4566 * lib/**/*.[hcy] except lib/reg*.[hc]: Untabify.
4567 * m4/*.m4: Untabify.
4568 * build-aux/*.h: Untabify.
4569 * tests/**/*.[hc]: Untabify.
4570 * README: New section "Indent with spaces, not TABs", based on
4571 coreutils/HACKING and comments by Pádraig Brady and Paolo Bonzini.
4572 * NEWS: Mention the change.
4574 2009-12-10 Bruno Haible <bruno@clisp.org>
4576 pty test: Fix link error.
4577 * modules/pty-tests (Makefile.am): Add the default LDADD value to
4580 2009-12-07 Simon Josefsson <simon@josefsson.org>
4582 * modules/pty: New file.
4583 * modules/pty-tests: New file.
4584 * m4/pty.m4: New file.
4585 * tests/test-pty.c: New file.
4586 * doc/glibc-headers/pty.texi: Modified.
4587 * doc/glibc-functions/forkpty.texi: Modified.
4588 * doc/glibc-functions/openpty.texi: Modified.
4590 2009-12-10 Bruno Haible <bruno@clisp.org>
4592 Avoid syntax error in C++ mode.
4593 * lib/stdio.in.h (rename): Don't use parameter name 'new'.
4595 2009-12-10 Bruno Haible <bruno@clisp.org>
4597 Use sed with option -e.
4598 * gnulib-tool (func_version, func_emit_copyright_notice,
4599 func_emit_initmacro_end, func_import, func_create_testdir): Pass
4601 * modules/link-warning (Makefile.am): Likewise.
4603 2009-12-10 Jim Meyering <meyering@redhat.com>
4605 mgetgroups: do not write bytes beyond end of malloc'd buffer
4606 * lib/mgetgroups.c: Fix an off-by-one error. When we have no
4607 username, we call getgroups with a one-element-shorter buffer,
4608 but still told it the length was original, max_n_groups.
4610 2009-12-09 Eric Blake <ebb9@byu.net>
4612 cloexec: relax license
4613 * modules/cloexec (Maintainer): Add myself.
4614 (License): Use LGPL, not GPL.
4616 link-warning: optimize generation
4617 * modules/link-warning (Makefile.am): Reduce process usage.
4619 2009-12-09 Bruno Haible <bruno@clisp.org>
4621 * doc/posix-functions/unsetenv.texi: Mention Solaris 10 bug for which a
4622 workaround was added on 2009-11-17.
4624 2009-12-09 Jim Meyering <meyering@redhat.com>
4625 Bruno Haible <bruno@clisp.org>
4627 link-warning: Allow extra lines at the top of build-aux/link-warning.h.
4628 * modules/link-warning (Makefile.am): Make the comment-removing sed
4629 command more robust in the face of bootstrap-prepended comment lines.
4631 2009-12-09 Bruno Haible <bruno@clisp.org>
4633 * lib/mgetgroups.c (mgetgroups): Don't remove duplicates if there is at
4636 2009-12-09 Simon Josefsson <simon@josefsson.org>
4637 Bruno Haible <bruno@clisp.org>
4639 * build-aux/link-warning.h: Add copyright notice.
4640 * modules/link-warning (Makefile.am): Generate link-warning.h from
4641 build-aux/link-warning.h. Update LINK_WARNING_H accordingly.
4642 * NEWS: Mention change in link-warning module.
4643 * modules/arpa_inet (Makefile.am): Add dependency to arpa/inet.h.
4644 * modules/dirent (Makefile.am): Add dependency to dirent.h.
4645 * modules/fcntl-h (Makefile.am): Add dependency to fcntl.h.
4646 * modules/getopt-posix (Makefile.am): Add dependency to getopt.h.
4647 * modules/inttypes (Makefile.am): Add dependency to inttypes.h.
4648 * modules/math (Makefile.am): Add dependency to math.h.
4649 * modules/search (Makefile.am): Add dependency to search.h.
4650 * modules/signal (Makefile.am): Add dependency to signal.h.
4651 * modules/spawn (Makefile.am): Add dependency to spawn.h.
4652 * modules/stdio (Makefile.am): Add dependency to stdio.h.
4653 * modules/stdlib (Makefile.am): Add dependency to stdlib.h.
4654 * modules/string (Makefile.am): Add dependency to string.h.
4655 * modules/strings (Makefile.am): Add dependency to strings.h.
4656 * modules/sys_ioctl (Makefile.am): Add dependency to sys/ioctl.h.
4657 * modules/sys_select (Makefile.am): Add dependency to sys/select.h.
4658 * modules/sys_socket (Makefile.am): Add dependency to sys/socket.h.
4659 * modules/sys_stat (Makefile.am): Add dependency to sys/stat.h.
4660 * modules/sys_times (Makefile.am): Add dependency to sys/times.h.
4661 * modules/sys_utsname (Makefile.am): Add dependency to sys/utsname.h.
4662 * modules/sys_wait (Makefile.am): Add dependency to sys/wait.h.
4663 * modules/unistd (Makefile.am): Add dependency to unistd.h.
4664 * modules/wchar (Makefile.am): Add dependency to wchar.h.
4666 2009-12-09 Bruno Haible <bruno@clisp.org>
4668 fchdir: Optimize away rpl_fstat when possible.
4669 * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set REPLACE_FSTAT only together with
4670 REPLACE_OPEN_DIRECTORY.
4671 * lib/fchdir.c (rpl_fstat): Define only when REPLACE_OPEN_DIRECTORY.
4673 2009-12-09 Bruno Haible <bruno@clisp.org>
4675 * lib/fchdir.c: Update comment.
4677 2009-12-09 Bruno Haible <bruno@clisp.org>
4679 * lib/cloexec.c (set_cloexec_flag): Clarify intent of dup2 call.
4681 2009-12-08 Eric Blake <ebb9@byu.net>
4683 fchdir: avoid memory leak on re-registration.
4684 * lib/fchdir.c (ensure_dirs_slot): Avoid memory leak.
4686 2009-12-08 Jim Meyering <meyering@redhat.com>
4688 init.sh: avoid Solaris 10 /bin/sh portability problem
4689 Solaris 10's /bin/sh does not pass '.' arguments 2.. to the
4691 $ printf 'echo "$@"\n' > f; /bin/sh -c '. ./f bar'
4692 $ printf 'echo "$@"\n' > f; /bin/bash -c '. ./f bar'
4694 tests/init.sh relied on that, accepting a --set-path=DIR argument,
4695 and two tests used that idiom.
4696 * tests/init.sh: Update suggested usage comments.
4697 (path_prepend_): New function, to be used in place
4698 of the --src-path=DIR option.
4699 (setup_): Move PATH-prepending code into path_prepend_.
4700 * tests/test-pread.sh: Adapt to new usage.
4701 * tests/test-xalloc-die.sh: Likewise.
4703 2009-12-08 Simon Josefsson <simon@josefsson.org>
4705 * doc/gnulib.texi (Glibc pty.h): Add.
4706 * doc/glibc-functions/forkpty.texi: Add.
4707 * doc/glibc-functions/openpty.texi: Add.
4708 Suggested by Bruno Haible.
4710 2009-12-08 Eric Blake <ebb9@byu.net>
4712 fchdir: fix logic bugs
4713 * m4/fchdir.m4 (gl_FUNC_FCHDIR): Fix logic bug.
4714 * tests/test-fchdir.c (main): Enhance test.
4715 * lib/fchdir.c (rpl_fstat): Always provide if fchdir replacement
4718 dup2: fix logic bugs
4719 * lib/dup2.c (dup2): Fix logic bugs. Use HAVE_DUP2 rather than
4720 REPLACE_DUP2 to decide when rpl_dup2 is needed.
4721 * m4/dup2.m4 (gl_REPLACE_DUP2): Only define REPLACE_DUP2 when dup2
4723 (gl_FUNC_DUP2): Drop unneeded AC_DEFINE.
4725 2009-12-07 Eric Blake <ebb9@byu.net>
4727 unlink: fix m4 detection
4728 * m4/unlink.m4 (gl_FUNC_UNLINK): Include correct header.
4730 unistd-safer: add unit test
4731 * modules/unistd-safer-tests: New file.
4732 * tests/test-dup-safer.c: Likewise.
4733 * tests/test-cloexec.c (setmode): Avoid compiler warning.
4734 * tests/test-dup2.c (setmode): Likewise.
4735 * lib/cloexec.c (dup_cloexec): Fix mingw compile error.
4737 cloexec: preserve text vs. binary across dup_cloexec
4738 * lib/cloexec.c (dup_cloexec) [W32]: Query and use translation
4740 * modules/dup2-tests (Depends-on): Add binary-io.
4741 * modules/cloexec-tests (Depends-on): Likewise.
4742 * tests/test-dup2.c (setmode, is_mode): New helpers.
4743 (main): Add tests that translation mode is preserved.
4744 * tests/test-cloexec.c (setmode, is_mode, main): Likewise.
4745 Reported by Bruno Haible.
4747 mgetgroups: reduce duplicate listings
4748 * lib/mgetgroups.c (mgetgroups): Reduce duplicates from the
4750 * tests/test-chown.h (test_chown): Simplify client.
4751 * tests/test-lchown.h (test_lchown): Likewise.
4753 2009-12-06 Bruno Haible <bruno@clisp.org>
4755 * lib/cloexec.c (dup_cloexec): Fix handling of _gl_register_dup return
4758 2009-12-06 Bruno Haible <bruno@clisp.org>
4760 * lib/progname.c: Include stdio.h, stdlib.h.
4761 (set_program_name): Reject a NULL argument.
4763 2009-12-05 Eric Blake <ebb9@byu.net>
4765 pipe2-safer: new module
4766 * modules/pipe2-safer: New file.
4767 * lib/unistd-safer.h (pipe2_safer): New prototype.
4768 * lib/unistd--.h (pipe2): New wrapper.
4769 * lib/pipe-safer.c (pipe2_safer): New function.
4770 * modules/pipe (Depends-on): Add pipe2-safer.
4771 * lib/pipe.c (create_pipe) [WIN32]: Let pipe2_safer do the work.
4773 stdlib-safer: preserve cloexec flag for mkostemp[s]
4774 * lib/mkstemp-safer.c (mkostemp_safer, mkostemps_safer): Use new
4777 unistd-safer: allow preservation of cloexec status via flag
4778 * lib/unistd-safer.h (dup_safer_flag, fd_safer_flag): New
4780 * lib/dup-safer.c (dup_safer_flag): New function.
4781 * lib/fd-safer.c (fd_safer_flag): Likewise.
4782 * modules/cloexec (configure.ac): Set witness.
4784 test-dup2: enhance test
4785 * modules/dup2-tests (Depends-on): Add cloexec.
4786 * tests/test-dup2.c (main): Enhance test.
4788 cloexec: add dup_cloexec
4789 * lib/cloexec.h (dup_cloexec): New prototype. Add copyright
4790 header and comments.
4791 * lib/cloexec.c (set_cloexec_flag): Add comments.
4792 (dup_cloexec): New function, with mingw implementation borrowed
4794 * lib/w32spawn.h (dup_noinherit): ...here.
4795 * modules/execute (Depends-on): Add cloexec.
4796 * modules/pipe (Depends-on): Likewise.
4797 * modules/cloexec (Depends-on): Add dup2.
4798 * modules/cloexec-tests (Files): New file.
4799 * tests/test-cloexec.c: Likewise.
4801 test-xalloc-die: fix test for mingw
4802 * modules/xalloc-die-tests (Files): Add tests/init.sh.
4803 * tests/test-xalloc-die.sh: Rewrite to use init.sh. Strip
4804 directory and .exe suffix off argv[0] output.
4806 test-fseeko: fix test for mingw
4807 * tests/test-fseeko.c (fseek): Redefine GL_LINK_WARNING, rather
4808 than undefining fseek, so test will pass on mingw.
4810 2009-12-05 Bruno Haible <bruno@clisp.org>
4812 * lib/progname.h (set_program_name): Clarify specification.
4813 * lib/progname.c (set_program_name): Likewise.
4814 Reported by Jim Meyering.
4816 2009-12-05 Jim Meyering <meyering@redhat.com>
4818 maint.mk: backslash-escape parens in default regexp
4819 * top/maint.mk (news-check-regexp): Now that we're using grep -E,
4820 backslash-escape the literal parentheses.
4822 maint.mk: news-date-check: use grep -E
4823 * top/maint.mk (today): Define a Make variable, not a...
4824 (news-date-check): ...shell variable.
4825 (news-date-regexp): Use the Make variable.
4826 Use grep's -E option. Change the failing diagnostic to mention
4827 the variable, $(news-date-regexp).
4829 2009-12-04 Alfred M. Szmidt <ams@gnu.org>
4831 maintainer-makefile: allow customization of NEWS entry format
4832 * top/maint.mk (news-date-regexp): New overridable variable.
4833 (news-date-check): Use it.
4835 2009-12-04 Eric Blake <ebb9@byu.net>
4837 mgetgroups: add xgetgroups, and avoid ENOSYS failures
4838 * lib/mgetgroups.h (xgetgroups): New prototype.
4839 * lib/mgetgroups.c (xgetgroups): New wrapper.
4840 (mgetgroups): Handle ENOSYS.
4841 * modules/mgetgroups (Depends-on): Add realloc.
4842 Reported by Scott Harrison <scott.gnu.2009@scottrix.co.uk>.
4844 mgetgroups: avoid argument promotion issues with -1
4845 * lib/mgetgroups.c (mgetgroups): A cast is required when checking
4847 * tests/test-chown.h (getegid, test_chown): Likewise.
4848 * tests/test-lchown.h (getegid, test_lchown): Likewise.
4850 2009-12-03 Paolo Bonzini <bonzini@gnu.org>
4852 exclude: Fix header file problems.
4853 * lib/exclude.h: Add multiple inclusion guards and include stdbool.h.
4855 2009-12-01 Jim Meyering <meyering@redhat.com>
4857 fts: fts_open: do not let an empty string cause immediate failure
4858 This is required in support of GNU rm, for which the command
4859 "rm A '' B" must process and remove both A and B, in spite of
4860 the empty string argument.
4861 * lib/fts.c (fts_open): Do not let the presence of an empty string
4862 cause fts_open to fail immediately. Most fts-using tools must be
4863 able to process all arguments, in order, and can be expected to
4864 diagnose such arguments themselves.
4866 2009-11-30 Eric Blake <ebb9@byu.net>
4868 utimens: fix compilation error
4869 * lib/utimens.c (lutimens) [!HAVE_UTIMENSAT && HAVE_LUTIMES]:
4870 Declare variable at right scope.
4872 2009-11-29 Jim Meyering <meyering@redhat.com>
4874 bootstrap: handle perl-5.11's changed --version output
4875 * build-aux/bootstrap (get_version): Handle perl separately,
4876 since perl-5.11's --version output is different.
4878 2009-11-28 Jim Meyering <meyering@redhat.com>
4880 userspec: depend on the inttostr module, too
4881 * modules/userspec (Depends-on): Add inttostr.
4883 userspec: disallow an ID that maps to (uid_t)-1 or (gid_t)-1
4884 * lib/userspec.c (parse_with_separator): Do not accept a user ID
4885 number of MAXUID when it evaluates to (uid_t) -1.
4886 Likewise for group ID. Reported by Matt McCutchen in
4887 <http://savannah.gnu.org/bugs/?28113>
4889 userspec: reformat to use spaces, not TABs
4890 * lib/userspec.c: Expand TABs to spaces.
4891 Add Emacs' "indent-tabs-mode: nil" hint.
4893 2009-11-27 Eric Blake <ebb9@byu.net>
4895 getopt-gnu: flush out another BSD bug
4896 * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Test for the bug.
4897 * tests/test-getopt.c (main): Check POSIXLY_CORRECT first, to
4899 * tests/test-getopt.h (test_getopt): End lists with NULL.
4900 * tests/test-getopt_long.h (test_getopt_long): Likewise.
4901 (test_getopt_long_posix): Enhance test.
4902 * modules/getopt-posix-tests (Depends-on): Add stdbool.
4903 * doc/glibc-functions/getopt_long.texi (getopt_long): Mention
4905 * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
4908 2009-11-27 Simon Josefsson <simon@josefsson.org>
4910 * modules/idpriv-droptemp-tests (Notice): Fix text.
4912 2009-11-27 Jim Meyering <meyering@redhat.com>
4914 test-xalloc-die: avoid spurious failure due to libtool argv difference
4915 In a libtool-enabled project, this test would fail due to a difference
4916 in the emitted program name, e.g.,
4917 -test-xalloc-die: memory exhausted
4918 +/tmp/.../tests/.libs/lt-test-xalloc-die: memory exhausted
4919 Use program to avoid that.
4920 * modules/xalloc-die-tests (Depends-on): Add progname.
4921 * tests/test-xalloc-die.c: Include progname.h".
4922 (program_name): Remove decl.
4923 (main): Call set_program_name.
4924 * tests/test-xalloc-die.sh (compare): Remove unnecessary ${EXE}.
4926 2009-11-26 Richard Jones <rjones@redhat.com>
4928 w32sock: leave win32 error in place.
4929 * lib/w32sock.h (set_winsock_errno): Do not call WSASetLastError.
4931 2009-11-26 Eric Blake <ebb9@byu.net>
4933 init.sh: suggest to use skip_ and fail_ functions in comments
4934 * tests/init.sh: Add a sentence.
4936 2009-11-25 Bruno Haible <bruno@clisp.org>
4938 init.sh: add documentation in comments
4939 * tests/init.sh: Add some developer and user documentation.
4941 2009-11-26 Jim Meyering <meyering@redhat.com>
4943 init.sh: accommodate even those who specify bogus srcdir manually
4944 * tests/init.sh: Normally, srcdir is guaranteed by automake and
4945 configure-time tests to be sanitized, so that there is no need to
4946 use "$srcdir" in Makefile rules and shell scripts. Using $srcdir
4947 (with no double quotes) suffices. However, since tests may be
4948 invoked manually, and since you may explicitly set srcdir to the
4949 name of a directory containing spaces, do quote its uses here.
4950 * tests/test-pread.sh: Likewise.
4951 Suggested by Bruno Haible.
4953 test-pread.sh: avoid diagnostics for those who ignore SIGPIPE
4954 * tests/test-pread.sh: Write no data into the pipe, because
4955 test-pread actually reads none. This avoids a diagnostic,
4956 "bash: echo: write error: Broken pipe", that arises in the unusual
4957 event something is ignoring SIGPIPE, and might be interpreted
4958 as some sort of failure. Reported by Bruno Haible.
4960 2009-11-25 Jim Meyering <meyering@redhat.com>
4962 test-pread: cover failure with ESPIPE and EINVAL
4963 * tests/test-pread.c (main): Test for failure, too.
4964 * tests/test-pread.sh: Invoke with stdin on a pipe.
4965 Suggested by Eric Blake.
4967 pread: improvement and fix
4968 * modules/pread (Depends-on): Depend on lseek, for portability to
4969 e.g., mingw. Suggested by Eric Blake.
4970 * lib/pread.c (__libc_read): Define. Reported by Richard W.M. Jones.
4972 unistd.in.h: correct declaration of pread
4973 * lib/unistd.in.h: Correct type of "buf" parameter: void*, not char*
4974 Reported by Richard W.M. Jones.
4976 test-pread.sh: distribute the test script
4977 * modules/pread-tests (Files): Include test-pread.sh.
4979 test-pread.sh: clean up
4980 * tests/test-pread.sh: Don't refer to $builddir. Just use equivalent ".".
4981 * modules/pread-tests (TESTS_ENVIRONMENT): Don't export builddir.
4982 That is unnecessary, since it's always ".".
4983 Suggestion from Eric Blake.
4985 test-pread.sh: make executable
4986 * tests/test-pread.sh: Set executable bit.
4987 Reported by Eric Blake.
4989 correct typo in test-pread.sh
4990 * tests/test-pread.sh: Add #! line.
4993 * tests/test-pread.c: New file.
4994 * tests/test-pread.sh: Likewise.
4995 * modules/pread-tests: Likewise.
4998 * modules/pread: New file.
4999 * lib/unistd.in.h (pread): Define/declare.
5000 * lib/pread.c (pread): New file.
5001 * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Define defaults.
5002 * modules/unistd (Makefile.am): Substitute witnesses.
5003 * doc/posix-functions/pread.texi (pread): Update.
5004 * MODULES.html.sh: Add pread.
5006 2009-11-25 Jim Meyering <meyering@redhat.com>
5008 tests/init.sh: new file to be used via most *.sh tests
5009 * tests/init.sh: New file.
5011 2009-11-25 Eric Blake <ebb9@byu.net>
5013 utimens: work around older Linux failure with symlinks
5014 * lib/utimens.c (lutimensat_works_really): New variable.
5015 (fdutimens, lutimens): Use it to manage kernels that support
5016 nanosecond times on files, but not on symlinks.
5017 Reported by OndÅ™ej VaÅ¡Ãk.
5019 utimes: fix configure grammar
5020 * m4/utimes.m4 (gl_FUNC_UTIMES): Delete spurious word.
5022 2009-11-25 Paolo Bonzini <bonzini@gnu.org>
5024 regex: Fix fastmap for multibyte character ranges.
5025 * lib/regcomp.c (re_compute_fastmap_iter): Add all multibyte lead
5026 characters when a multibyte character range is included.
5028 2009-11-22 Andy Wingo <wingo@pobox.com>
5030 version-etc: work also with AM_INIT_AUTOMAKE's no-define option
5031 * lib/version-etc.c [!defined PACKAGE]: Define to PACKAGE_TARNAME.
5033 2009-11-24 Bruno Haible <bruno@clisp.org>
5035 doc: Most *_l functions exist in MacOS X 10.5.
5036 * doc/posix-functions/duplocale.texi: Update platforms list.
5037 * doc/posix-functions/freelocale.texi: Likewise.
5038 * doc/posix-functions/newlocale.texi: Likewise.
5039 * doc/posix-functions/uselocale.texi: Likewise.
5040 * doc/posix-functions/isalnum_l.texi: Likewise.
5041 * doc/posix-functions/isalpha_l.texi: Likewise.
5042 * doc/posix-functions/isblank_l.texi: Likewise.
5043 * doc/posix-functions/iscntrl_l.texi: Likewise.
5044 * doc/posix-functions/isdigit_l.texi: Likewise.
5045 * doc/posix-functions/isgraph_l.texi: Likewise.
5046 * doc/posix-functions/islower_l.texi: Likewise.
5047 * doc/posix-functions/isprint_l.texi: Likewise.
5048 * doc/posix-functions/ispunct_l.texi: Likewise.
5049 * doc/posix-functions/isspace_l.texi: Likewise.
5050 * doc/posix-functions/isupper_l.texi: Likewise.
5051 * doc/posix-functions/iswalnum_l.texi: Likewise.
5052 * doc/posix-functions/iswalpha_l.texi: Likewise.
5053 * doc/posix-functions/iswblank_l.texi: Likewise.
5054 * doc/posix-functions/iswcntrl_l.texi: Likewise.
5055 * doc/posix-functions/iswctype_l.texi: Likewise.
5056 * doc/posix-functions/iswdigit_l.texi: Likewise.
5057 * doc/posix-functions/iswgraph_l.texi: Likewise.
5058 * doc/posix-functions/iswlower_l.texi: Likewise.
5059 * doc/posix-functions/iswprint_l.texi: Likewise.
5060 * doc/posix-functions/iswpunct_l.texi: Likewise.
5061 * doc/posix-functions/iswspace_l.texi: Likewise.
5062 * doc/posix-functions/iswupper_l.texi: Likewise.
5063 * doc/posix-functions/iswxdigit_l.texi: Likewise.
5064 * doc/posix-functions/isxdigit_l.texi: Likewise.
5065 * doc/posix-functions/nl_langinfo_l.texi: Likewise.
5066 * doc/posix-functions/strcasecmp_l.texi: Likewise.
5067 * doc/posix-functions/strcoll_l.texi: Likewise.
5068 * doc/posix-functions/strfmon_l.texi: Likewise.
5069 * doc/posix-functions/strftime_l.texi: Likewise.
5070 * doc/posix-functions/strncasecmp_l.texi: Likewise.
5071 * doc/posix-functions/strxfrm_l.texi: Likewise.
5072 * doc/posix-functions/tolower_l.texi: Likewise.
5073 * doc/posix-functions/toupper_l.texi: Likewise.
5074 * doc/posix-functions/towctrans_l.texi: Likewise.
5075 * doc/posix-functions/towlower_l.texi: Likewise.
5076 * doc/posix-functions/towupper_l.texi: Likewise.
5077 * doc/posix-functions/wcscoll_l.texi: Likewise.
5078 * doc/posix-functions/wcsxfrm_l.texi: Likewise.
5079 * doc/posix-functions/wctrans_l.texi: Likewise.
5080 * doc/posix-functions/wctype_l.texi: Likewise.
5081 * doc/glibc-functions/strptime_l.texi: Likewise.
5082 * doc/glibc-functions/strtod_l.texi: Likewise.
5083 * doc/glibc-functions/strtof_l.texi: Likewise.
5084 * doc/glibc-functions/strtol_l.texi: Likewise.
5085 * doc/glibc-functions/strtold_l.texi: Likewise.
5086 * doc/glibc-functions/strtoll_l.texi: Likewise.
5087 * doc/glibc-functions/strtoul_l.texi: Likewise.
5088 * doc/glibc-functions/strtoull_l.texi: Likewise.
5089 * doc/glibc-functions/wcsftime_l.texi: Likewise.
5090 * doc/glibc-functions/wcstod_l.texi: Likewise.
5091 * doc/glibc-functions/wcstof_l.texi: Likewise.
5092 * doc/glibc-functions/wcstol_l.texi: Likewise.
5093 * doc/glibc-functions/wcstold_l.texi: Likewise.
5094 * doc/glibc-functions/wcstoll_l.texi: Likewise.
5095 * doc/glibc-functions/wcstoul_l.texi: Likewise.
5096 * doc/glibc-functions/wcstoull_l.texi: Likewise.
5098 2009-11-24 Bruno Haible <bruno@clisp.org>
5100 duplocale: Fix logic bug.
5101 * lib/duplocale.c: Don't include <langinfo.h>.
5102 (_NL_LOCALE_NAME): Remove macro.
5103 (rpl_duplocale): Use setlocale instead of nl_langinfo.
5104 * tests/test-duplocale.c (main): Also test duplocale after uselocale.
5106 2009-11-23 Jim Meyering <meyering@redhat.com>
5108 test-update-copyright: don't hard-code /usr/bin/perl
5109 * tests/test-update-copyright.sh (YEAR): Use date +%Y, rather than
5110 perl to print the current year. Gilles Espinasse reported that
5111 the replaced use of perl was hard-coded as /usr/bin/perl.
5113 2009-11-23 Bruno Haible <bruno@clisp.org>
5115 duplocale: Add support for glibc 2.3.x.
5116 * lib/duplocale.c (rpl_duplocale): Add fallback code for glibc 2.3.x.
5118 2009-11-22 Bruno Haible <bruno@clisp.org>
5120 vasnprintf: Tiny optimization.
5121 * lib/vasnprintf.c (decimal_point_char): Choose the fast path also on
5124 2009-11-22 Bruno Haible <bruno@clisp.org>
5126 Tests for module 'duplocale'.
5127 * modules/duplocale-tests: New file.
5128 * tests/test-duplocale.c: New file.
5130 New module 'duplocale'.
5131 * m4/duplocale.m4: New file.
5132 * lib/locale.in.h (duplocale): New declaration.
5133 * lib/duplocale.c: New file.
5134 * m4/locale_h.m4 (gl_REPLACE_LOCALE_H, gl_LOCALE_MODULE_INDICATOR,
5135 gl_LOCALE_H_DEFAULTS): New macros.
5136 (gl_LOCALE_H): Require gl_LOCALE_H_DEFAULTS. Invoke
5137 gl_CHECK_NEXT_HEADERS unconditionally. Invoke gl_REPLACE_LOCALE_H.
5138 * modules/locale (Makefile.am): Substitute also GNULIB_DUPLOCALE,
5140 * modules/duplocale: New file.
5141 * doc/posix-functions/duplocale.texi: Mention the glibc bug.
5143 2009-11-22 Bruno Haible <bruno@clisp.org>
5145 * modules/locale-tests (configure.ac): Test for newlocale function.
5146 * tests/test-locale.c: When the system has extended locale functions,
5147 verify that <locale.h> defines locale_t and LC_GLOBAL_LOCALE.
5149 locale: Make locale_t available when possible.
5150 * lib/locale.in.h: Include <xlocale.h> when it exists.
5151 * m4/locale_h.m4 (gl_LOCALE_H): Check for <xlocale.h> and arrange to
5152 replace <locale.h> if it does not define locale_t but <xlocale.h> does.
5153 * modules/locale (Depends-on): Add extensions.
5154 (Makefile.am): Also substitute HAVE_XLOCALE_H.
5155 * doc/posix-headers/locale.texi: Document the problem with locale_t.
5157 2009-11-22 Bruno Haible <bruno@clisp.org>
5160 * m4/dirent_h.m4 (gl_DIRENT_H): Add comment about gl_CHECK_NEXT_HEADERS
5162 * m4/iconv_h.m4 (gl_ICONV_H): Likewise.
5163 * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
5164 * m4/wchar.m4 (gl_WCHAR_H): Likewise.
5166 2009-11-22 Bruno Haible <bruno@clisp.org>
5168 error: account for the possibility of freopen (stdout).
5169 * lib/error.c: Include <unistd.h>.
5170 (flush_stdout): New function, extracted from error and error_at_line.
5171 Determine stdout's fd dynamically.
5172 (error, error_at_line): Invoke flush_stdout.
5173 * m4/error.m4 (gl_PREREQ_ERROR): Require AC_C_INLINE.
5174 * modules/error (Depends-on): Add unistd.
5176 2009-11-22 Bruno Haible <bruno@clisp.org>
5178 diffseq: Add comment.
5179 * lib/diffseq.h (IF_LINT): Add comment about pitfall.
5181 2009-11-22 Jim Meyering <meyering@redhat.com>
5183 c-stack: avoid defining an unused static function
5184 * lib/c-stack.c (find_stack_direction): Do not define this function
5185 when it will not be used.
5187 diffseq: avoid spurious gcc warnings
5188 * lib/diffseq.h (IF_LINT2): Define.
5189 (compareseq): Use it to initialize two members of "part".
5190 This avoids two used-uninitialized warnings.
5192 2009-11-21 Jim Meyering <meyering@redhat.com>
5194 c-stack: avoid "ignoring return value of `write'" warning
5195 * lib/c-stack.c: Include "ignore-value.h".
5196 (die): Explicitly ignore each write return value.
5197 * modules/c-stack (Depends-on): Add ignore-value.
5199 2009-11-21 Bruno Haible <bruno@clisp.org>
5201 diffseq: reduce scope of variable 'best'.
5202 * lib/diffseq.h (diag) [USE_HEURISTIC]: Reduce scope of 'best'
5203 variable, earlier used for two different purposes.
5205 2009-11-21 Jim Meyering <meyering@redhat.com>
5207 diffseq: remove useless assignment to "best"
5208 * lib/diffseq.h (diag) [USE_HEURISTIC]: Remove useless "best = 0"
5209 assignment. At that point "best" is already guaranteed to be zero.
5211 2009-11-20 Eric Blake <ebb9@byu.net>
5213 build: mention ftp redirector in release announcements
5214 * top/maint.mk (gnu_rel_host, url_dir_list): Provide defaults for
5215 values that used to come from cfg.mk; mention FTP redirect URL.
5216 * build-aux/announce-gen: Mention the mirror list.
5217 Suggested by Karl Berry.
5219 nanosleep: improve port to mingw
5220 * lib/nanosleep.c (rpl_nanosleep): Reject invalid arguments.
5221 * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Incorporate LIBSOCKET into
5222 LIB_NANOSLEEP, but only when needed.
5223 * modules/select (Link): Document LIBSOCKET.
5224 * m4/select.m4 (gl_FUNC_SELECT): Ensure LIBSOCKET is defined early
5227 nanosleep: work around cygwin bug
5228 * lib/nanosleep.c (rpl_nanosleep) [HAVE_BUG_BIG_NANOSLEEP]:
5229 Fix logic bug when nanosleep fails. Work around cygwin 1.5.x
5231 (getnow): Delete, not needed.
5232 * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): No longer require
5234 * modules/nanosleep (Depends-on): Add intprops and verify. Drop
5235 clock-time, gettime.
5236 * doc/posix-functions/nanosleep.texi (nanosleep): Document the
5238 * modules/nanosleep-tests: New test.
5239 * tests/test-nanosleep.c: New file.
5241 sleep: work around cygwin bug
5242 * lib/sleep.c (rpl_sleep): Work around the bug.
5243 * m4/sleep.m4 (gl_FUNC_SLEEP): Detect the bug.
5244 (gl_PREREQ_SLEEP): Delete unused macro.
5245 * modules/sleep (Depends-on): Add verify.
5246 * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add default.
5247 * modules/unistd (Makefile.am): Substitute witness.
5248 * lib/unistd.in.h (sleep): Update prototype.
5249 * doc/posix-functions/sleep.texi (sleep): Document the bug.
5250 * tests/test-sleep.c (main) [HAVE_DECL_ALARM]: Test it.
5251 * modules/sleep-tests (Depends-on): Check for alarm.
5253 2009-11-20 Jim Meyering <meyering@redhat.com>
5255 maint.mk: improve sc_prohibit_magic_number_exit
5256 * top/maint.mk (sc_prohibit_magic_number_exit): Tighten regexp
5257 so it does not match uses like System.exit(1).
5258 Add comments showing how to correct all offenders.
5260 2009-11-19 Eric Blake <ebb9@byu.net>
5262 xalloc-die-tests: add missing library
5263 * modules/xalloc-die-tests (Makefile.am): Add LDADD line.
5265 test-xvasprintf: silence compiler warnings
5266 * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Mask
5267 empty string from gcc.
5269 2009-11-19 Jim Meyering <meyering@redhat.com>
5271 xfreopen: new module, from coreutils
5272 * modules/xfreopen: New module.
5273 * lib/xfreopen.c: New file.
5274 * lib/xfreopen.h: New file.
5275 * MODULES.html.sh (File stream based Input/Output"): Add it.
5277 2009-11-19 Eric Blake <ebb9@byu.net>
5279 manywarnings: depend on warnings
5280 * modules/manywarnings (Depends-on): Add warnings.
5282 build: avoid compiler warnings
5283 * lib/select.c (rpl_select): Delete unused variable.
5284 * lib/setsockopt.c (rpl_setsockopt): Avoid incompatible pointer.
5286 2009-11-18 Eric Blake <ebb9@byu.net>
5288 tests: avoid false negative with --with-packager
5289 * tests/test-version-etc.sh: Discard packager information.
5290 * tests/test-argp-version-etc-1.sh: Likewise.
5291 Reported by Mike Frysinger.
5293 utimens: fix regression on Solaris
5294 * m4/utimens.m4 (gl_UTIMENS): Check for BSD bug.
5295 * lib/utimens.c (fdutimens): Revert 2009-11-08 change; Solaris 10
5296 can only change fd timestamps via futimesat. Instead, use an
5297 additional witness macro to avoid BSD bug.
5298 Reported by Jim Meyering.
5300 2009-11-17 Eric Blake <ebb9@byu.net>
5302 usleep: use it to simplify tests
5303 * modules/stat-time-tests (Depends-on): Add usleep.
5304 (configure.ac): Drop usleep check.
5305 * modules/chown-tests (Depends-on, configure.ac): Likewise.
5306 * modules/lchown-tests (Depends-on, configure.ac): Likewise.
5307 * modules/fdutimensat-tests (Depends-on, configure.ac): Likewise.
5308 * modules/futimens-tests (Depends-on, configure.ac): Likewise.
5309 * modules/openat-tests (Depends-on, configure.ac): Likewise.
5310 * modules/utimens-tests (Depends-on, configure.ac): Likewise.
5311 * modules/utimensat-tests (Depends-on, configure.ac): Likewise.
5312 * modules/pipe-filter-gi-tests (Depends-on, configure.ac):
5314 * tests/test-chown.h (nap): Rely on nicer usleep semantics.
5315 * tests/test-lchown.h (nap): Likewise.
5316 * tests/test-pipe-filter-gi2-main.c (small_nap): Likewise.
5317 * tests/test-stat-time.c (nap): Likewise.
5318 * tests/test-utimens-common.h (nap): Update comments.
5321 * modules/usleep: New file.
5322 * m4/usleep.m4 (gl_FUNC_USLEEP): Likewise.
5323 * lib/usleep.c (usleep): Likewise.
5324 * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add defaults.
5325 * modules/unistd (Makefile.am): Substitute witnesses.
5326 * lib/unistd.in.h (usleep): Add declaration.
5327 * doc/pastposix-functions/usleep.texi (usleep): Document this.
5328 * MODULES.html.sh (Date and time): Likewise.
5329 * modules/usleep-tests (Depends-on): New test.
5330 * tests/test-usleep.c: New file.
5332 chown: work around OpenBSD bug
5333 * lib/chown.c (rpl_chown): Work around the bug.
5334 * lib/lchown.c (rpl_lchown): Attempt to do likewise.
5335 * m4/chown.m4 (gl_FUNC_CHOWN): Test for ctime bug.
5336 * m4/lchown.m4 (gl_FUNC_LCHOWN): Check for lchmod.
5337 * modules/chown (Depends-on): Add stdbool.
5338 * modules/lchown (Depends-on): Likewise.
5339 * doc/posix-functions/chown.texi (chown): Document the bug.
5340 * doc/posix-functions/lchown.texi (lchown): Likewise.
5341 * tests/test-lchown.h (test_chown): Relax test.
5343 mkstemp: avoid conflict with C++ keyword template
5344 * lib/mkdtemp.c (mkdtemp): Change spelling of template.
5345 * lib/mkostemp.c (mkostemp): Likewise.
5346 * lib/mkostemps.c (mkostemps): Likewise.
5347 * lib/mkstemp.c (mkstemp): Likewise.
5348 * lib/mkstemps.c (mkstemps): Likewise.
5350 xalloc-die-tests: optimize
5351 * tests/test-xalloc-die.sh: Reduce number of processes.
5353 2009-11-17 Simon Josefsson <simon@josefsson.org>
5355 * gnulib-tool: Support LGPLv3+ licenses in module files. Tiny
5356 patch from ludo@gnu.org (Ludovic Courtès).
5358 2009-11-17 Jim Meyering <meyering@redhat.com>
5360 version-etc: use proper license string
5361 * modules/version-etc (License): Use LGPL, not LGPLv3+.
5362 * modules/version-etc-fsf: Likewise.
5364 2009-11-17 Simon Josefsson <simon@josefsson.org>
5366 * tests/test-xalloc-die.sh: Add license. Check that nothing is
5367 printed to stdout. Deal with EOL differences.
5369 2009-11-17 Eric Blake <ebb9@byu.net>
5371 unsetenv: work around Solaris bug
5372 * m4/setenv.m4 (gl_FUNC_UNSETENV): Check for bug.
5373 * lib/unsetenv.c (rpl_unsetenv): Work around it.
5374 Reported by Jim Meyering.
5376 vasnprintf: avoid compiler warnings
5377 * lib/vasnprintf.c (VASNPRINTF): Avoid shadowing our own local
5379 * lib/printf-args.c (PRINTF_FETCHARGS): Avoid type mismatch.
5381 2009-11-17 Simon Josefsson <simon@josefsson.org>
5383 * modules/xalloc-die-tests (Makefile.am): Drop XFAIL_TESTS
5384 settings since xalloc-die is no longer the self test,
5387 2009-11-17 Jim Meyering <meyering@redhat.com>
5389 test-xalloc-die.sh: make the code agree with the commit log
5390 * tests/test-xalloc-die.sh: Put "." at the front of $PATH, not
5391 at the end, just in case you happen to have a test-xalloc-die
5392 program in some other PATH directory.
5394 test-xalloc-die.sh: fix a portability bug
5395 * tests/test-xalloc-die.sh: Do not invoke via ./test-xalloc-die.
5396 Instead, set PATH to start with "." and invoke via "test-xalloc-die".
5397 Otherwise, argv[0] (as often seen in diagnostics) would be too
5398 system-dependent, sometimes with, and sometimes without the leading "./".
5400 version-etc-fsf: relax license to LGPLv3+
5401 * modules/version-etc-fsf (License): Relax license.
5403 2009-11-16 Eric Blake <ebb9@byu.net>
5405 xalloc-die-tests: avoid printing null pointer
5406 * modules/xalloc-die-tests (Files, Makefile.am): Wrap execution in
5408 * tests/test-xalloc-die.c (program_name): Declare.
5409 * tests/test-xalloc-die.sh (tmpfiles): New file.
5411 setenv, unsetenv: work around various bugs
5412 * lib/setenv.c (setenv) [!HAVE_SETENV]: Resync from glibc.
5413 (setenv) [HAVE_SETENV]: Work around bugs.
5414 * lib/unsetenv.c (unsetenv) [HAVE_UNSETENV]: Work around bugs.
5415 * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE, gl_FUNC_UNSETENV): Check
5417 (gl_FUNC_SETENV): Write in terms of gl_FUNC_SETENV_SEPARATE.
5418 * m4/environ.m4 (gl_ENVIRON): Avoid expand-before-require.
5419 * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Update defaults.
5420 * modules/stdlib (Makefile.am): Update substitutions.
5421 * lib/stdlib.in.h (setenv, unsetenv): Update prototypes.
5422 * doc/posix-functions/setenv.texi (setenv): Document the bugs.
5423 * doc/posix-functions/unsetenv.texi (unsetenv): Likewise.
5424 * modules/setenv-tests: New test.
5425 * modules/unsetenv-tests: Likewise.
5426 * tests/test-setenv.c: New file.
5427 * tests/test-unsetenv.c: Likewise.
5429 2009-11-16 Jim Meyering <meyering@redhat.com>
5431 version-etc: relax license to LGPLv3+
5432 * modules/version-etc (License): Relax license.
5434 better AC_REQUIRE expanded-before-required-warning avoidance
5435 * m4/chown.m4 (gl_FUNC_CHOWN, gl_FUNC_CHOWN_FOLLOWS_SYMLINK): Define
5436 with AC_DEFUN_ONCE, rather than AC_DEFUN, to avoid AC_REQUIRE warnings.
5437 Suggested by Eric Blake. This change also reverts commit 1b712ba8,
5438 which is no longer needed.
5440 2009-11-16 Eric Blake <ebb9@byu.net>
5442 test-freading: clean up temporary file
5443 * tests/test-freading.c (main): Remove file on success, and use
5444 ASSERT more liberally.
5445 Reported by Jim Meyering.
5447 2009-11-16 Jim Meyering <meyering@redhat.com>
5449 avoid new AC_REQUIRE expanded-before-required warnings
5450 * modules/chown (configure.ac): Require gl_FUNC_CHOWN, rather than
5452 * modules/euidaccess (configure.ac): Likewise for gl_FUNC_EUIDACCESS.
5453 * modules/faccessat (configure.ac): Likewise for gl_FUNC_FACCESSAT.
5455 2009-11-15 Simon Josefsson <simon@josefsson.org>
5457 * tests/test-xalloc-die.c: New file.
5458 * modules/xalloc-die-tests: New file.
5459 * gnulib-tool (func_emit_tests_Makefile_am): Also initialize
5460 XFAIL_TESTS so it can be appended by modules.
5462 2009-11-15 Simon Josefsson <simon@josefsson.org>
5464 * lib/gc-pbkdf2-sha1.c: Remove comments from RFC 2898. Reported
5465 by Vladimir 'phcoder' Serbinenko <phcoder@gmail.com>.
5467 2009-11-14 Eric Blake <ebb9@byu.net>
5469 fnmatch: avoid compiler warning
5470 * lib/fnmatch_loop.c (NEW_PATTERN): Coerce addition to unsigned,
5471 to silence compiler warning about mismatch signedness in ?:.
5472 Reported by Robert Millan.
5474 intprops: add double-inclusion guard
5475 * lib/intprops.h: Allow idempotent includes.
5476 Suggested by Bruce Korb.
5478 openat: detect Solaris fchownat bug
5479 * lib/fchownat.c (rpl_fchownat): Work around Solaris bug. Avoid
5480 penalizing glibc chownat when only lchownat is broken.
5481 * m4/openat.m4 (gl_FUNC_FCHOWNAT): Replace fchownat if there are
5482 trailing slash bugs.
5483 * doc/posix-functions/fchownat.texi (fchownat): Document the bug.
5484 * modules/openat-tests (Files): Include more files.
5485 (Depends-on): Add mgetgroups, sleep, stat-time.
5486 (configure.ac): Add additional checks.
5487 (Makefile.am): Build new test.
5488 * tests/test-fchownat.c: New file.
5490 lchown: detect Solaris and FreeBSD bug
5491 * lib/lchown.c (rpl_lchown): Work around bug.
5492 * m4/lchown.m4 (gl_FUNC_LCHOWN): Check for trailing slash bugs.
5493 * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
5494 * modules/unistd (Makefile.am): Populate it.
5495 * lib/unistd.in.h (lchown): Update declaration.
5496 * doc/posix-functions/lchown.texi (lchown): Document the bug.
5497 * modules/lchown-tests: New file.
5498 * tests/test-lchown.h (test_lchown): Likewise.
5499 * tests/test-lchown.c (main): Likewise.
5501 chown: detect Solaris and FreeBSD bug
5502 * lib/chown.c (rpl_chown): Work around bug.
5503 * m4/chown.m4 (gl_FUNC_CHOWN): Check for trailing slash bugs.
5504 (gl_PREREQ_CHOWN): Delete.
5505 * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
5506 * modules/unistd (Makefile.am): Populate it.
5507 * lib/unistd.in.h (chown): Update declaration.
5508 * lib/lchown.c (chown): Update client.
5509 * modules/lchown (Depends-on): Add lstat.
5510 * doc/posix-functions/chown.texi (chown): Document the bug.
5511 * doc/posix-functions/getgroups.texi (getgroups): Document
5513 * modules/chown-tests: New file.
5514 * tests/test-chown.h (test_chown): Likewise.
5515 * tests/test-chown.c (main): Likewise.
5517 2009-11-14 Robert Millan <rmh.grub@aybabtu.com> (tiny change)
5519 gnulib-tool: correctly detect absence of m4 directories
5520 * gnulib-tool: Avoid extra newline on data passed to wc -l.
5522 2009-11-14 Jim Meyering <meyering@redhat.com>
5524 maint.mk: Prohibit inclusion of "xalloc.h" without use.
5525 * top/maint.mk (sc_prohibit_close_stream_without_use): New rule.
5527 2009-11-14 John W. Eaton <jwe@gnu.org>
5529 strftime.h: wrap funtion declaration in extern "C" block
5530 * lib/strftime.h (nstrftime) [__cplusplus]: Wrap declaration.
5532 2009-11-13 Eric Blake <ebb9@byu.net>
5534 getgroups: avoid compiler warning
5535 * lib/getgroups.c (rpl_getgroups): Delete shadowed variable.
5537 getgroups: work around FreeBSD bug
5538 * lib/getgroups.c (rpl_getgroups): Work around the bug.
5539 * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Detect the bug.
5540 * doc/posix-functions/getgroups.texi (getgroups): Document it.
5541 * tests/test-getgroups.c (main): Fix buffer overrun.
5543 getgroups: avoid compilation failure
5544 * lib/getgroups.c (includes): Include <stdint.h> for SIZE_MAX.
5545 * modules/getgroups (Depends-on): Add stdint.
5547 2009-11-13 Jim Meyering <meyering@redhat.com>
5549 test-getgroups: avoid compilation failure
5550 * tests/test-getgroups.c: Include <stdint.h> for use of SIZE_MAX.
5552 2009-11-13 Eric Blake <ebb9@byu.net>
5554 mgetgroups: new module, taken from coreutils
5555 * modules/mgetgroups: New file.
5556 * lib/mgetgroups.h: Likewise.
5557 * lib/mgetgroups.c (mgetgroups): Likewise.
5558 * m4/mgetgroups.m4 (gl_MGETGROUPS): Likewise.
5559 * MODULES.html.sh (Users and groups): Mention it.
5561 getgroups: don't expose GETGROUPS_T to user
5562 * lib/getgroups.c (rpl_getgroups): Change signature. Copy array
5563 an element at a time if GETGROUPS_T is wrong size.
5564 * lib/getugroups.h (getugroups): Change signature.
5565 * lib/unistd.in.h (getgroups): Likewise.
5566 * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Use replacement if
5567 signature needs fixing.
5568 * m4/getugroups.m4 (gl_GETUGROUPS): No longer need
5570 * modules/group-member (Depends-on): Add getgroups.
5571 * lib/group-member.c (group_info, get_group_info): Use gid_t.
5572 (group_member): Rely on getgroups replacement.
5573 * lib/getugroups.c (getugroups): Use gid_t.
5574 * tests/test-getgroups.c (main): Likewise.
5575 * NEWS: Mention the signature change.
5576 * doc/posix-functions/getgroups.texi (getgroups): Mention the
5577 problem with signature.
5578 * doc/glibc-functions/setgroups.texi (setgroups): Mention that
5579 GETGROUPS_T is still useful for setgroups.
5581 getgroups, getugroups: provide stubs for mingw
5582 * lib/getgroups.c (getgroups): Provide ENOSYS stub for mingw.
5583 * lib/getugroups.c (getugroups): Likewise.
5584 * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Check for missing
5585 function. Modernize replacement scheme.
5586 (gl_PREREQ_GETGROUPS): Delete.
5587 * m4/getugroups.m4 (gl_GETUGROUPS): Check for <grp.h>.
5588 * modules/getgroups (configure.ac): Declare witness.
5589 * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add default.
5590 * modules/unistd (Depends-on): Substitute witness.
5591 * lib/unistd.in.h (getgroups): Declare replacement.
5593 getgroups: avoid calling exit
5594 * modules/getgroups (Depends-on): Add malloc-posix and unistd,
5596 * modules/getgroups-tests (Depends-on, Makefile.am): Drop unneeded
5598 * lib/getgroups.c (rpl_getgroups): Fail with ENOMEM rather than
5599 exiting, in the rare case of malloc failure.
5601 getgroups: fix logic error
5602 * lib/getgroups.c (rpl_getgroups): Don't fail if current process
5603 has more than 20 groups.
5604 * modules/getgroups-tests: New test.
5605 * tests/test-getgroups.c: New file.
5607 2009-11-13 Simon Josefsson <simon@josefsson.org>
5609 * tests/test-base64.c: Improve.
5611 2009-11-13 Simon Josefsson <simon@josefsson.org>
5613 * tests/test-xvasprintf.c: Fix memory leak, suggested by Eric
5614 Blake <ebb9@byu.net>.
5616 2009-11-13 Simon Josefsson <simon@josefsson.org>
5618 * tests/test-xvasprintf.c: Add %s%s related checks.
5620 2009-11-12 Eric Blake <ebb9@byu.net>
5622 version-etc: match standards.texi style
5623 * lib/version-etc.c (emit_bug_reporting_address): Drop periods,
5624 and use <> only for URLs.
5626 2009-11-10 Kamil Dudka <kdudka@redhat.com>
5628 fts: do not fail on a submount during traversal
5629 * lib/fts.c (fts_build): Read the stat info again after opening
5630 a directory if the FTS_TIGHT_CYCLE_CHECK flag is set.
5631 Original report at http://bugzilla.redhat.com/501848.
5633 2009-11-12 Jim Meyering <meyering@redhat.com>
5635 bootstrap: sync from coreutils
5636 * build-aux/bootstrap (bootstrap_epilogue): New function.
5637 Use git_modules_config in one more place. This make bootstrap's
5638 --gnulib-srcdir option more useful for testing.
5640 bootstrap: generalize autoheader check
5641 * build-aux/bootstrap: Look for AC_CONFIG_HEADER as well as
5644 2009-11-11 Eric Blake <ebb9@byu.net>
5646 mkfifoat: use new modules for Solaris and BSD bugs
5647 * m4/mkfifoat.m4 (gl_FUNC_MKFIFOAT): Simplify.
5648 * lib/mkfifoat.c (mknodat): Split...
5649 * lib/mknodat.c (mknodat): ...into new file.
5650 * modules/mkfifoat (Files): Ship new file.
5651 (Depends-on): Add mkfifo, mknod.
5652 * modules/mkfifoat-tests (Files): Reuse mkfifo tests.
5653 (Depends-on): Add symlink.
5654 * tests/test-mkfifoat.c (main): Enhance test. Drop portions now
5655 redundant with test_mkfifo.h.
5656 (do_mkfifoat, do_mknodat): New helpers.
5659 * modules/mknod: New file.
5660 * m4/mknod.m4 (gl_FUNC_MKNOD): Likewise.
5661 * lib/mknod.c (mknod): Likewise.
5662 * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Set witness
5664 * modules/sys_stat (Makefile.am): Substitute them.
5665 * lib/sys_stat.in.h (mknod): Declare replacement.
5666 * MODULES.html.sh (Support for systems lacking POSIX:2008):
5668 * doc/posix-functions/mknod.texi (mknod): Likewise.
5669 * modules/mknod-tests: New test.
5670 * tests/test-mknod.c: Likewise.
5673 * modules/mkfifo: New file.
5674 * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Likewise.
5675 * lib/mkfifo.c (mkfifo): Likewise.
5676 * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Set witness
5678 * modules/sys_stat (Makefile.am): Substitute them.
5679 * lib/sys_stat.in.h (mkfifo): Declare replacement.
5680 * MODULES.html.sh (Support for systems lacking POSIX:2008):
5682 * doc/posix-functions/mkfifo.texi (mkfifo): Likewise.
5683 * modules/mkfifo-tests: New test.
5684 * tests/test-mkfifo.h (test_mkfifo): New file, borrowed in part
5685 from test-mkfifoat.c.
5686 * tests/test-mkfifo.c: New file.
5688 readlink: detect FreeBSD bug
5689 * m4/readlink.m4 (gl_FUNC_READLINK): Also detect FreeBSD bug with
5691 * doc/posix-functions/readlink.texi (readlink): Document the bug.
5692 * tests/test-readlink.h (test_readlink): Enhance test.
5694 symlink: detect FreeBSD bug
5695 * m4/symlink.m4 (gl_FUNC_SYMLINK): Also detect FreeBSD bug with
5697 * doc/posix-functions/symlink.texi (symlink): Document the bug.
5698 * tests/test-symlink.h (test_symlink): Enhance test.
5700 2009-11-10 Eric Blake <ebb9@byu.net>
5702 link: detect FreeBSD bug
5703 * m4/link.m4 (gl_FUNC_LINK): Also detect FreeBSD bug with slash on
5705 * doc/posix-functions/link.texi (link): Document the bug.
5706 * tests/test-link.h (test_link): Enhance test.
5707 * tests/test-linkat.c (main): Update caller.
5709 unlink, remove: detect FreeBSD bug
5710 * m4/unlink.m4 (gl_FUNC_UNLINK): Also detect FreeBSD bug with
5712 * doc/posix-functions/unlink.texi (unlink): Document the bug.
5713 * doc/posix-functions/remove.texi (remove): Likewise.
5714 * tests/test-unlink.h (test_unlink): Enhance test.
5715 * tests/test-remove.c (main): Likewise.
5717 2009-11-09 Eric Blake <ebb9@byu.net>
5719 rename: detect FreeBSD bug
5720 * m4/rename.m4 (gl_FUNC_RENAME): Also detect FreeBSD bug with
5722 * modules/renameat-tests (Depends-on): Add filenamecat.
5723 * tests/test-rename.h (test_rename): Allow one more errno.
5724 * tests/test-renameat.c (main): Likewise.
5725 * doc/posix-functions/rename.texi (rename): Document the bug.
5727 open: detect FreeBSD bug
5728 * m4/open.m4 (gl_FUNC_OPEN): Also detect FreeBSD bug with slash on
5730 * doc/posix-functions/open.texi (open): Document the bug.
5731 * doc/posix-functions/utimes.texi (utimes): Likewise.
5732 * tests/test-open.h (test_open): Add parameters, and test symlink
5734 * tests/test-open.c (main): Adjust caller.
5735 * tests/test-fcntl-safer.c (main): Likewise.
5736 * modules/open-tests (Depends-on): Add stdbool, symlink.
5737 * modules/fcntl-safer-tests (Depends-on): Likewise.
5738 * tests/test-openat.c (main): Add test-open tests.
5740 stat: detect FreeBSD bug
5741 * m4/stat.m4 (gl_FUNC_STAT): Also detect FreeBSD bug with slash on
5743 * doc/posix-functions/stat.texi (stat): Document the bug.
5744 * tests/test-stat.h (test_stat_func): Add argument.
5745 * tests/test-stat.c (main): Adjust caller.
5746 * tests/test-fstatat.c (main): Likewise.
5747 * modules/stat-tests (Depends-on): Add stdbool, symlink.
5748 Reported by Jim Meyering.
5750 2009-11-09 James Youngman <jay@gnu.org>
5752 strftime.c: include ignore-value.h only when FPRINTFTIME is defined
5753 * lib/strftime.c: Correct placement of #include "ignore-value.h".
5755 2009-11-08 Jim Meyering <meyering@redhat.com>
5757 utimens: remove invalid futimesat call
5758 * lib/utimens.c (fdutimens): Remove invalid futimesat call.
5759 It used the file descriptor of the target file as the DIR_FD
5760 parameter and NULL as the file name. That caused failure with
5761 errno == EFAULT on FreeBSD-8.0-rc2
5763 2009-11-07 Eric Blake <ebb9@byu.net>
5765 fflush, freadseek: use fseeko, not fseek
5766 * lib/fflush.c (clear_ungetc_buffer_preserving_position)
5767 (clear_ungetc_buffer): Avoid potential problems on large files.
5768 * lib/freadseek.c (freadseek): Likewise.
5769 * modules/freadseek (Depends-on): Add fseeko.
5770 * modules/fseek (configure.ac): Set a witness.
5771 * tests/test-fflush.c (main): Use fseeko.
5772 * tests/test-fpurge.c (fseek): Disable link warning.
5773 * tests/test-freadable.c (fseek): Likewise.
5774 * tests/test-freading.c (fseek): Likewise.
5775 * tests/test-fseeko.c (fseek): Likewise.
5776 * tests/test-ftell.c (fseek): Likewise.
5777 * tests/test-ftello.c (fseek): Likewise.
5778 * tests/test-fwritable.c (fseek): Likewise.
5779 * tests/test-fwriting.c (fseek): Likewise.
5781 2009-11-06 Simon Josefsson <simon@josefsson.org>
5783 * modules/memchr (Depends-on): Drop getpagesize dependency.
5785 2009-11-06 Simon Josefsson <simon@josefsson.org>
5787 * build-aux/pmccabe2html: Disable execute bit. Suggested by
5788 Reported by Ludovic Courtès.
5789 * build-aux/pmccabe2html: Improve example usage.
5790 * build-aux/pmccabe2html: Drop #! header. Doc fix.
5792 2009-11-06 Jim Meyering <meyering@redhat.com>
5794 do-release-commit-and-tag: New module.
5795 Automate the release-commit and tag process.
5796 * build-aux/do-release-commit-and-tag: New script, from coreutils.
5797 * modules/do-release-commit-and-tag: New file.
5798 * MODULES.html.sh (Support for maintaining and releasing): Add it.
5800 2009-11-06 Simon Josefsson <simon@josefsson.org>
5802 * modules/select-tests (test_select_LDADD): Add $(INET_PTON_LIB)
5803 because test-select.c uses inet_pton.
5805 2009-11-06 Simon Josefsson <simon@josefsson.org>
5807 * m4/getaddrinfo.m4: Add content of INET_NTOP_LIB to
5808 GETADDRINFO_LIB. Bump serial number.
5809 * modules/getaddrinfo (Link): Only mention GETADDRINFO_LIB again.
5810 Suggested by Eric Blake <ebb9@byu.net>.
5812 2009-11-05 Eric Blake <ebb9@byu.net>
5814 strtod: detect darwin bug
5815 * m4/strtod.m4 (gl_FUNC_STRTOD): Filter out darwin bug on "nan(".
5816 Reported by Leo Davis.
5818 freopen-safer: new module
5819 * modules/freopen-safer: New module.
5820 * m4/stdio-safer.m4 (gl_FREOPEN_SAFER): New macro.
5821 * lib/freopen-safer.c (freopen_safer): New file.
5822 * lib/stdio-safer.h (freopen_safer): New declaration.
5823 * lib/stdio--.h (freopen): New override.
5824 * MODULES.html.sh (File stream based Input/Output): Mention it.
5825 * doc/posix-functions/freopen.texi (freopen): Mention pitfalls and
5826 freopen-safer module.
5827 * doc/posix-functions/stderr.texi (stderr): Likewise.
5828 * doc/posix-functions/stdin.texi (stdin): Likewise.
5829 * doc/posix-functions/stdout.texi (stdout): Likewise.
5830 * modules/freopen-safer-tests: New test.
5831 * tests/test-reopen-safer.c: New file.
5833 2009-11-05 Jim Meyering <meyering@redhat.com>
5835 maint.mk: Prohibit inclusion of "close-stream.h" without use.
5836 * top/maint.mk (sc_prohibit_close_stream_without_use): New rule.
5838 2009-11-05 Simon Josefsson <simon@josefsson.org>
5840 * modules/pmccabe2html (configure.ac): Check for pmccabe tool.
5842 2009-11-05 Simon Josefsson <simon@josefsson.org>
5844 * modules/getaddrinfo (Link): Add $(INET_NTOP_LIB).
5846 2009-11-05 Simon Josefsson <simon@josefsson.org>
5849 * m4/inet_ntop.m4 (gl_INET_NTOP): Fix test of AC_SEARCH_LIBS result.
5850 * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
5852 2009-11-05 Simon Josefsson <simon@josefsson.org>
5854 * tests/test-func.c: Also test value of __func__.
5856 2009-11-05 Simon Josefsson <simon@josefsson.org>
5858 * tests/test-sys_socket.c: Use smaller constant value, sa_family_t
5859 may be an 8-bit type. Reported by Bruno Haible <bruno@clisp.org>.
5861 2009-11-05 Bruno Haible <bruno@clisp.org>
5864 * m4/inet_ntop.m4 (gl_INET_NTOP): Fix test of AC_SEARCH_LIBS result.
5865 * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
5866 Reported by Brad Hards <bradh@frogmouth.net> via Simon Josefsson.
5868 2009-11-05 Bruno Haible <bruno@clisp.org>
5870 Tests for module 'inet_pton'.
5871 * modules/inet_pton-tests: New file.
5872 * tests/test-inet_pton.c: New file.
5874 2009-11-05 Bruno Haible <bruno@clisp.org>
5876 Tests for module 'inet_ntop'.
5877 * modules/inet_ntop-tests: New file.
5878 * tests/test-inet_ntop.c: New file.
5880 2009-11-04 Eric Blake <ebb9@byu.net>
5882 stdlib-safer: wrap all mkstemp variants
5883 * modules/mkostemp (configure.ac): Set witness.
5884 * modules/mkostemps (configure.ac): Likewise.
5885 * modules/mkstemps (configure.ac): Likewise.
5886 * lib/stdlib-safer.h (mkostemp_safer, mkostemps_safer)
5887 (mkstemps_safer): Wrap more functions.
5888 * lib/stdlib--.h (mkostemp, mkostemps, mkstemps): Default the
5890 * lib/mkstemp-safer.c (mkostemp_safer, mkostemps_safer)
5891 (mkstemps_safer): Implement the wrappers.
5893 mkstemps, mkostemps: new modules
5894 * modules/mkostemps: New module.
5895 * modules/mkstemps: Likewise.
5896 * lib/mkostemps.c (mkostemps): New file.
5897 * lib/mkstemps.c (mkstemps): Likewise.
5898 * m4/mkostemps.m4 (gl_FUNC_MKOSTEMPS): Likewise.
5899 * m4/mkstemps.m4 (gl_FUNC_MKSTEMPS): Likewise.
5900 * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Add witnesses.
5901 * modules/stdlib (Makefile.am): Substitute them.
5902 * lib/stdlib.in.h (mkostemps, mkstemps): Declare them.
5903 * doc/glibc-functions/mkstemps.texi (mkstemps): New file.
5904 * doc/glibc-functions/mkostemps.texi (mkostemps): Likewise.
5905 * doc/gnulib.texi (Glibc stdlib.h): Include them.
5906 * MODULES.html.sh (File system functions): Mention them.
5908 tempname: resync from glibc
5909 * lib/tempname.c (__gen_tempname): Add suffixlen argument. Use
5910 same values for __GT_FILE as glibc. Abort even when assertions
5912 * lib/tempname.h (GT_FILE): Use glibc __GT_FILE, if available, and
5913 match its value otherwise. Allow idempotent inclusion.
5914 * lib/mkdtemp.c (mkdtemp): Adjust caller.
5915 * lib/mkostemp.c (mkostemp): Likewise.
5916 * lib/mkstemp.c (mkstemp): Likewise.
5917 * lib/tmpfile.c (tmpfile): Likewise.
5918 * NEWS: Document this.
5920 utimens: fix use of futimens on older Linux
5921 * lib/utimens.c (fdutimens): Use updated, rather than original,
5922 timespec to avoid bug in older Linux kernel.
5923 Reported by Simon Josefsson.
5925 2009-11-04 Bruno Haible <bruno@clisp.org>
5927 Make num_processors more flexible and consistent.
5928 * lib/nproc.h (enum nproc_query): New type.
5929 (num_processors): Add a 'query' argument.
5930 * lib/nproc.c: Include <stdlib.h>, <sched.h>, c-ctype.h.
5931 (num_processors): Add a 'query' argument. Test the value of the
5932 OMP_NUM_THREADS environment variable if requested. On Linux, NetBSD,
5933 mingw, count the number of CPUs available for the current process.
5934 * m4/nproc.m4 (gl_PREREQ_NPROC): Require AC_USE_SYSTEM_EXTENSIONS.
5935 Check for sched_getaffinity and sched_getaffinity_np.
5936 * modules/nproc (Depends-on): Add c-ctype, extensions.
5937 * NEWS: Mention the change.
5939 2009-11-03 Bruno Haible <bruno@clisp.org>
5941 * NEWS: Document the new library dependencies of inet_ntop, inet_pton.
5943 2009-11-03 Jim Meyering <meyering@redhat.com>
5945 test-getaddrinfo: avoid compilation failure on FreeBSD 7.2
5946 * tests/test-getaddrinfo.c (simple): Test for EAI_NODATA only
5949 2009-11-02 Eric Blake <ebb9@byu.net>
5951 mktime, timegm: share common declaration
5952 * lib/mktime-internal.h: New file.
5953 * lib/mktime.c: Use it rather than open-coding a declaration.
5954 * lib/timegm.c: Likewise.
5955 * modules/mktime (Files): Ship it.
5956 * modules/timegm (Files): Likewise.
5957 Suggested by Bruno Haible.
5959 test-update-copyright: update test to match script changes
5960 * tests/test-update-copyright.sh: Avoid hard-coding perl
5961 location. Don't update *.bak created by earlier runs.
5963 2009-11-02 Paul Eggert <eggert@cs.ucla.edu>
5964 Simon Josefsson <simon@josefsson.org>
5965 Bruno Haible <bruno@clisp.org>
5967 Fix link error on Solaris 8.
5968 * m4/inet_pton.m4 (gl_INET_PTON): Search for the function inet_pton
5969 also in libnsl. Define also INET_PTON_LIB.
5970 * modules/inet_pton (Link): New section.
5972 2009-11-02 Simon Josefsson <simon@josefsson.org>
5973 Bruno Haible <bruno@clisp.org>
5975 * m4/inet_ntop.m4 (gl_INET_NTOP): Define also INET_NTOP_LIB.
5976 * modules/inet_ntop (Link): New section.
5977 Reported by Boyan Kasarov <bkasarov@gmail.com>.
5979 2009-11-02 Eric Blake <ebb9@byu.net>
5981 maint: avoid compiler warnings in m4 macros
5982 * m4/ungetc.m4 (gl_FUNC_UNGETC_WORKS): Avoid unused variable.
5983 * m4/rmdir.m4 (gl_FUNC_RMDIR): Include correct header.
5985 2009-11-02 Simon Josefsson <simon@josefsson.org>
5987 * m4/pmccabe2html.m4: Remove file.
5988 * modules/pmccabe2html: Drop pmccabe2html.m4. Don't call m4
5989 function. Change maintainer.
5990 * build-aux/pmccabe2html: Use /bin/sh with magic instead of
5991 hard-coding path to awk. Tiny patch from ludo@gnu.org (Ludovic
5994 2009-10-31 Eric Blake <ebb9@byu.net>
5996 fseeko: fix m4 regression
5997 * m4/fseeko.m4 (gl_FUNC_FSEEKO): Use modern macro. Fixes
5998 regression from 2009-10-27.
5999 Reported by Ralf Wildenhues.
6001 2009-10-31 Jim Meyering <meyering@redhat.com>
6003 inttostr: aesthetics and improved (compile-time) safety
6004 Define inttype_is_signed rather than inttype_is_unsigned,
6005 since the sole use is via "#if inttype_is_signed".
6006 * lib/imaxtostr.c (inttype_is_signed): Define this, rather than
6007 inttype_is_unsigned.
6008 * lib/offtostr.c (inttype_is_signed): Likewise.
6009 * lib/uinttostr.c (inttype_is_signed): Likewise.
6010 * lib/umaxtostr.c (inttype_is_signed): Likewise.
6011 * lib/inttostr.c (inttostr): Use verify to cross-check the
6012 inttype_is_signed value and the signedness of the actual type.
6013 * modules/inttostr (Depends-on): Add verify.
6015 2009-10-30 Eric Blake <ebb9@byu.net>
6017 build: avoid compiler warnings
6018 * lib/fchmodat.c (lchmod): Mark unused variables.
6019 * lib/getopt.c (_getopt_initialize): Likewise.
6020 * lib/mktime.c (__mktime_internal): Provide prototype.
6021 * lib/inttostr.c (inttostr): Avoid compiler warning even with
6022 older gcc that do not understand #pragma GCC diagnostic.
6023 * lib/uinttostr.c (inttype_is_unsigned): Define.
6024 * lib/umaxtostr.c (inttype_is_unsigned): Likewise.
6026 2009-10-30 Michael Haubenwallner <michael.haubenwallner@salomon.at>
6028 stat: fix compilation on AIX
6029 * lib/sys_stat.in.h (stat): Work with fact that large files on AIX
6030 only see struct stat64.
6032 2009-10-30 Eric Blake <ebb9@byu.net>
6034 exclude: make more robust
6035 * lib/exclude.c (excluded_file_name): Abort on unexpected value,
6036 rather than masking a coding bug.
6037 Suggested by Bruno Haible.
6039 2009-10-30 Jim Meyering <meyering@redhat.com>
6041 perl scripts: remove #!/usr/bin/perl in favor of more portable...
6042 Rather than putting #!/usr/bin/perl on the first line,
6043 start with a variant of what's recommended by "man perlrun" that
6044 invokes the first "perl" program from your shell's search path.
6045 * build-aux/gitlog-to-changelog: Replace #!... as above.
6046 Add a "Local Variables" perl mode setting.
6047 Prompted by a patch from Ludovic Courtès.
6048 Improved by Eric Blake.
6049 * build-aux/useless-if-before-free: Likewise.
6050 * build-aux/announce-gen: Likewise.
6051 * build-aux/update-copyright: Likewise.
6053 2009-10-29 Eric Blake <ebb9@byu.net>
6055 filenamecat-lgpl: adjust clients
6056 * modules/linkat (Depends-on): Use filenamecat-lgpl, not
6058 * modules/renameat (Depends-on): Likewise.
6060 filenamecat: split into filenamecat-lgpl
6061 * modules/filenamecat-lgpl: New module.
6062 * modules/filenamecat (Files): Move library-safe files into
6064 (Depends-on): Add filenamecat-lgpl.
6065 (configure.ac): Declare witness.
6066 * lib/filenamecat.h (file_name_concat): Only declare when using
6068 * lib/filenamecat.c (longest_relative_suffix, mfile_name_concat):
6070 * lib/filenamecat-lgpl.c: ...into new file.
6071 * m4/filenamecat.m4 (gl_FILE_NAME_CONCAT_LGPL): New macro.
6072 (gl_FILE_NAME_CONCAT): Use it.
6073 * MODULES.html.sh (File system functions): Mention new module.
6075 argp: avoid memory leak
6076 * modules/argp (Depends-on): Use dirname-lgpl, not dirname.
6077 * lib/argp-namefrob.h (__argp_base_name): Use last_component, not
6078 base_name, since the latter malloc()s and can call exit().
6079 Leak introduced 2006-07-03.
6081 dirname-lgpl: adjust clients that don't need full dirname
6082 * modules/backupfile (Depends-on): Use dirname-lgpl, not dirname.
6083 * modules/filenamecat (Depends-on): Likewise.
6084 * modules/linkat (Depends-on): Likewise.
6085 * modules/mkancesdirs (Depends-on): Likewise.
6086 * modules/mkdir (Depends-on): Likewise.
6087 * modules/openat (Depends-on): Likewise.
6088 * modules/savewd (Depends-on): Likewise.
6089 * modules/rename (Depends-on): Likewise.
6090 (License): Relax license.
6091 * modules/mkdir-tests (Depends-on): Drop progname.
6092 (Makefile.am): Delete unneeded LDADD.
6093 * modules/rename-tests (Depends-on, Makefile.am): Likewise.
6095 dirname: split into dirname-lgpl
6096 * modules/dirname-lgpl: New module.
6097 * modules/dirname (Files): Move library-safe files into
6099 (Depends-on): Add dirname-lgpl.
6100 (configure.ac): Declare witness.
6101 * modules/double-slash-root (License): Relax license.
6102 * lib/dirname.h (base_name, dir_name): Only declare when using GPL
6104 * lib/dirname.c (dir_len, mdir_name): Move...
6105 * lib/dirname-lgpl.c: ...into new file.
6106 * lib/basename.c (last_component, base_len): Move...
6107 * lib/basename-lgpl.c: ...into new file.
6108 * m4/dirname.m4 (gl_DIRNAME_LGPL): New macro.
6109 (gl_DIRNAME): Use it.
6110 * MODULES.html.sh (Enhancements for POSIX:2008 functions):
6112 * modules/dirname-tests (Depends-on): Add progname.
6113 * tests/test-dirname.c (program_name): Delete.
6115 mkdir: make safe for libraries
6116 * modules/mkdir (Depends-on): Drop xalloc.
6117 * lib/mkdir.c (rpl_mkdir): Fail with ENOMEM rather than calling
6120 tests: avoid some compiler warnings
6121 * tests/test-getaddrinfo.c (simple): Mark static, and allow string
6123 * tests/test-memchr.c (main): Avoid type mismatch.
6124 * tests/test-arpa_inet.c (main): Avoid unused parameters.
6125 * tests/test-base64.c (main): Likewise.
6126 * tests/test-getdelim.c (main): Likewise.
6127 * tests/test-gethostname.c (main): Likewise.
6128 * tests/test-getline.c (main): Likewise.
6129 * tests/test-netinet_in.c (main): Likewise.
6130 * tests/test-select.c (open_server_socket, main): Likewise.
6131 * tests/test-select-stdin.c (main): Likewise.
6132 * tests/test-sockets.c (main): Likewise.
6133 * tests/test-strsignal.c (main): Likewise.
6134 * tests/test-sys_select.c (main): Likewise.
6135 * tests/test-sys_socket.c (main): Likewise.
6136 * tests/test-u64.c (main): Likewise.
6137 * tests/test-xfprintf-posix.c (main): Likewise.
6138 * tests/test-xvasprintf.c (test_xvasprintf, main): Likewise.
6140 sockets: avoid compiler warning
6141 * lib/sockets.c (gl_sockets_startup): Mark unused parameter.
6143 maint: detect usage(1) and other suspicious exits
6144 * top/maint.mk (sc_prohibit_magic_number_exit): New rule.
6146 2009-10-29 Jim Meyering <meyering@redhat.com>
6148 timespec: long-to-int truncation could make timespec_cmp malfunction
6149 * lib/timespec.h (timespec_cmp): Do not interpret a difference of
6150 a multiple of 2^32 nanoseconds as no difference.
6152 2009-10-28 Jim Meyering <meyering@redhat.com>
6154 fprintftime: wrap macro code argument in "do {...} while(0)"
6155 * lib/strftime.c (cpy) [FPRINTFTIME]: The second argument to the
6156 cpy macro must be a statement that can be followed by a semicolon.
6157 Now that the else clause contains a comment and is hence longer
6158 than one line, I require curly braces. That in turn requires
6159 that we wrap this code block in the standard do...while(0).
6161 fprintftime: remove stray semicolon from previous change
6162 * lib/strftime.c (cpy) [FPRINTFTIME]: Remove trailing semicolon.
6164 fprintftime: avoid a warning about ignored fwrite return value
6165 * lib/strftime.c [FPRINTFTIME]: Include "ignore-value.h".
6166 (cpy) [FPRINTFTIME]: Ignore fwrite failure, even though technically,
6168 * modules/fprintftime (Depends-on): Add ignore-value.
6170 exclude: avoid an unwarranted warning
6171 * lib/exclude.c (excluded_file_name): Initialize "rc" before switch.
6173 2009-10-27 Eric Blake <ebb9@byu.net>
6175 fseek: avoid compilation failure when fflush is replaced
6176 * m4/fseek.m4 (gl_REPLACE_FSEEK): New macro.
6177 * m4/fseeko.m4 (gl_REPLACE_FSEEKO): Also replace fseek, if fseek
6179 * lib/stdio.in.h (GNULIB_FSEEKO): Only poison fseek if fseek
6180 module is not in use; since REPLACE_FSEEK worked otherwise.
6181 (GNULIB_FTELLO): Likewise for ftell.
6182 Reported by Ian Beckwith and others.
6184 2009-10-27 Bruno Haible <bruno@clisp.org>
6186 * lib/isnan.c (rpl_isnan[fdl]): Repeat the specification declaration.
6187 Reported by Jim Meyering.
6189 2009-10-27 Jim Meyering <jim@meyering.net>
6190 Bruno Haible <bruno@clisp.org>
6192 Avoid warning despite dropping the return value of fwrite.
6193 * lib/unicodeio.c: Include ignore-value.h.
6194 (fwrite_success_callback): Explicitly ignore fwrite's return value.
6195 * modules/unicodeio (Depends-on): Add ignore-value.
6197 2009-10-26 Eric Blake <ebb9@byu.net>
6199 areadlinkat: fix fallback path
6200 * lib/at-func.c (AT_FUNC_NAME): Avoid signed comparison between
6203 2009-10-22 Pádraig Brady <P@draigBrady.com>
6205 Use a better IO block size for modern systems
6206 * lib/copy-file.c (copy_file_preserving): Used a 32KiB malloced buffer.
6207 * lib/md2.c: Likewise.
6208 * lib/md4.c: Likewise.
6209 * lib/md5.c: Likewise.
6210 * lib/sha1.c: Likewise.
6211 * lib/sha256.c: Likewise.
6212 * lib/sha512.c: Likewise.
6214 2009-10-22 Eric Blake <ebb9@byu.net>
6216 tests: avoid several compiler warnings
6217 * tests/test-getcwd.c (main): Avoid buffer underflow.
6218 * tests/test-getdate.c (main): String literals are not safe with
6219 putenv, so use setenv. Declare unused argument.
6220 * modules/getdate-tests (Depends-on): Add setenv.
6221 * tests/test-argv-iter.c (main): Declare unused argument. Avoid
6222 problems with string literals in char *.
6223 * tests/test-hash.c (main): Avoid shadowing declaration.
6224 (insert_new): Treat string literals as char const *.
6225 * tests/test-getopt.h (test_getopt): Likewise.
6226 (getopt_loop): Alter types to minimize casting elsewhere.
6227 * tests/test-getopt_long.h (test_getopt_long, getopt_long_loop)
6228 (test_getopt_long_posix): Likewise.
6229 (do_getopt_long): Add wrapper to minimize casting.
6230 * tests/test-atexit.c (clear_temp_file): Use void.
6231 * tests/test-areadlink-with-size.c (main): Declare unused
6233 * tests/test-areadlink.c (main): Likewise.
6234 * tests/test-areadlinkat-with-size.c (main): Likewise.
6235 * tests/test-areadlinkat.c (main): Likewise.
6236 * tests/test-canonicalize-lgpl.c (main): Likewise.
6237 * tests/test-canonicalize.c (main): Likewise.
6238 * tests/test-dirent-safer.c (main): Likewise.
6239 * tests/test-dirname.c (main): Likewise.
6240 * tests/test-dup2.c (main): Likewise.
6241 * tests/test-fchdir.c (main): Likewise.
6242 * tests/test-fcntl-h.c (main): Likewise.
6243 * tests/test-fcntl-safer.c (main): Likewise.
6244 * tests/test-fdopendir.c (main): Likewise.
6245 * tests/test-fdutimensat.c (main): Likewise.
6246 * tests/test-fflush.c (main): Likewise.
6247 * tests/test-filenamecat.c (main): Likewise.
6248 * tests/test-filevercmp.c (main): Likewise.
6249 * tests/test-fopen-safer.c (main): Likewise.
6250 * tests/test-fopen.c (main): Likewise.
6251 * tests/test-fpending.c (main): Likewise.
6252 * tests/test-fpurge.c (main): Likewise.
6253 * tests/test-freading.c (main): Likewise.
6254 * tests/test-fstatat.c (main): Likewise.
6255 * tests/test-fsync.c (main): Likewise.
6256 * tests/test-futimens.c (main): Likewise.
6257 * tests/test-getndelim2.c (main): Likewise.
6258 * tests/test-gettimeofday.c (main): Likewise.
6259 * tests/test-getopt.c (main): Likewise.
6260 * tests/test-i-ring.c (main): Likewise.
6261 * tests/test-inttypes.c (main): Likewise.
6262 * tests/test-link.c (main): Likewise.
6263 * tests/test-lstat.c (main): Likewise.
6264 * tests/test-math.c (main): Likewise.
6265 * tests/test-md5.c (main): Likewise.
6266 * tests/test-memchr2.c (main): Likewise.
6267 * tests/test-memrchr.c (main): Likewise.
6268 * tests/test-mkdir.c (main): Likewise.
6269 * tests/test-mkdirat.c (main): Likewise.
6270 * tests/test-mkfifoat.c (main): Likewise.
6271 * tests/test-open.c (main): Likewise.
6272 * tests/test-openat-safer.c (main): Likewise.
6273 * tests/test-openat.c (main): Likewise.
6274 * tests/test-quotearg.c (main): Likewise.
6275 * tests/test-rawmemchr.c (main): Likewise.
6276 * tests/test-readlink.c (main): Likewise.
6277 * tests/test-remove.c (main): Likewise.
6278 * tests/test-rename.c (main): Likewise.
6279 * tests/test-renameat.c (main): Likewise.
6280 * tests/test-rmdir.c (main): Likewise.
6281 * tests/test-sha1.c (main): Likewise.
6282 * tests/test-signal.c (main): Likewise.
6283 * tests/test-sigaction.c (main): Likewise.
6284 * tests/test-stat.c (main): Likewise.
6285 * tests/test-stat-time.c (main): Likewise.
6286 * tests/test-stddef.c (main): Likewise.
6287 * tests/test-stdint.c (main): Likewise.
6288 * tests/test-stdio.c (main): Likewise.
6289 * tests/test-stdlib.c (main): Likewise.
6290 * tests/test-strchrnul.c (main): Likewise.
6291 * tests/test-strerror.c (main): Likewise.
6292 * tests/test-string.c (main): Likewise.
6293 * tests/test-strtod.c (main): Likewise.
6294 * tests/test-strverscmp.c (main): Likewise.
6295 * tests/test-symlink.c (main): Likewise.
6296 * tests/test-symlinkat.c (main): Likewise.
6297 * tests/test-sys_stat.c (main): Likewise.
6298 * tests/test-sys_time.c (main): Likewise.
6299 * tests/test-time.c (main): Likewise.
6300 * tests/test-unistd.c (main): Likewise.
6301 * tests/test-unlink.c (main): Likewise.
6302 * tests/test-unlinkat.c (main): Likewise.
6303 * tests/test-utimens.c (main): Likewise.
6304 * tests/test-utimensat.c (main): Likewise.
6305 * tests/test-version-etc.c (main): Likewise.
6306 * tests/test-wchar.c (main): Likewise.
6307 * tests/test-wctype.c (main): Likewise.
6308 * tests/test-xprintf-posix.c (main): Likewise.
6309 * tests/test-posixtm.c (main): Likewise.
6310 (STREQ): Delete unused macro.
6311 * tests/test-linkat.c (main): Declare unused arguments. Avoid
6313 * tests/test-memchr.c (main): Likewise.
6315 2009-10-21 Eric Blake <ebb9@byu.net>
6317 areadlinkat: avoid failure on older glibc
6318 * lib/at-func.c (AT_FUNC_NAME): Check for explicit FUNC_FAIL,
6319 rather than mis-comparing 0 against FUNC_RESULT of char*.
6321 2009-10-21 Bruno Haible <bruno@clisp.org>
6323 * modules/stpncpy (License): Relicense under LGPLv2+.
6324 Reported by David Lutterkort <lutter@redhat.com>.
6326 2009-10-20 Eric Blake <ebb9@byu.net>
6328 utimensat: work around Solaris 9 bug
6329 * lib/utimens.c (fdutimens, lutimens): Force a stat if platform
6330 has trailing slash bugs.
6331 * tests/test-lutimens.h (test_lutimens): Enhance test.
6332 * tests/test-utimens.h (test_utimens): Likewise.
6333 * doc/posix-functions/utime.texi (utime): Enhance documentation.
6334 * doc/posix-functions/utimes.texi (utimes): Likewise.
6335 * doc/posix-functions/utimensat.texi (utimensat): Likewise.
6336 * doc/glibc-functions/futimesat.texi (futimesat): Likewise.
6337 * doc/glibc-functions/lutimes.texi (lutimes): Likewise.
6338 * doc/posix-functions/futimens.texi (futimens): Likewise.
6340 fdutimensat: new module
6341 * modules/fdutimensat: New file.
6342 * lib/fdutimensat.c (fdutimensat): Likewise.
6343 * lib/utimens.h (fdutimensat, lutimensat): Declare new functions.
6344 * MODULES.html.sh (File system functions): Mention module.
6345 * modules/fdutimensat-tests: New test.
6346 * tests/test-fdutimensat.c: Likewise.
6348 doc: regenerate INSTALL
6349 * doc/INSTALL: Reflect recent autoconf update.
6350 * doc/INSTALL.ISO: Likewise.
6351 * doc/INSTALL.UTF-8: Likewise.
6353 2009-10-20 Pádraig Brady <P@draigBrady.com>
6355 acl: warn if ACL support is not detected
6356 * m4/acl.m4 (gl_FUNC_ACL): Output a warning if ACL support is not found.
6358 2009-10-19 Giuseppe Scrivano <gscrivano@gnu.org>
6360 * lib/nproc.h: Add extern "C" block for C++.
6362 2009-10-18 Reuben Thomas <rrt@sc3d.org>
6363 Bruno Haible <bruno@clisp.org>
6365 * doc/posix-functions/isascii.texi: Document the 2 alternative APIs.
6366 * doc/posix-functions/isalnum.texi: Document the 4 alternative APIs.
6367 * doc/posix-functions/isalpha.texi: Likewise.
6368 * doc/posix-functions/isblank.texi: Likewise.
6369 * doc/posix-functions/iscntrl.texi: Likewise.
6370 * doc/posix-functions/isdigit.texi: Likewise.
6371 * doc/posix-functions/isgraph.texi: Likewise.
6372 * doc/posix-functions/islower.texi: Likewise.
6373 * doc/posix-functions/isprint.texi: Likewise.
6374 * doc/posix-functions/ispunct.texi: Likewise.
6375 * doc/posix-functions/isspace.texi: Likewise.
6376 * doc/posix-functions/isupper.texi: Likewise.
6377 * doc/posix-functions/isxdigit.texi: Likewise.
6379 2009-10-18 Bruno Haible <bruno@clisp.org>
6381 Tests for module 'isblank'.
6382 * modules/isblank-tests: New file.
6383 * tests/test-isblank.c: New file.
6385 New module 'isblank'.
6386 * lib/isblank.c: New file.
6387 * m4/isblank.m4: New file.
6388 * modules/isblank: New file.
6389 * doc/posix-functions/isblank.texi: Mention the new module.
6391 2009-10-18 Bruno Haible <bruno@clisp.org>
6394 * lib/ctype.in.h: New file.
6395 * m4/ctype.m4: New file.
6396 * modules/ctype: New file.
6397 * doc/posix-headers/ctype.texi: Mention the new module.
6399 2009-10-18 Jim Meyering <meyering@redhat.com>
6401 m4: stylistic-only: hoist AC_SUBST to be adjacent to initialization
6402 Declare a variable like LIB_CLOCK_GETTIME to be AC_SUBSTituted
6403 right after its initialization, rather than farther down.
6404 Keeping these in close proximity makes it easier to ensure
6405 that each such variable is initialized. E.g.,
6408 AC_SUBST([LIB_CLOCK_GETTIME])
6410 This change also increments these serial numbers.
6411 * m4/clock_time.m4 (gl_CLOCK_TIME): Hoist AC_SUBST use.
6412 * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
6413 * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
6415 2009-10-18 Bruno Haible <bruno@clisp.org>
6417 Don't let environment variables perturb build.
6418 * m4/gethrxtime.m4 (gl_GETHRXTIME): Initialize LIB_GETHRXTIME here...
6419 (gl_PREREQ_GETHRXTIME): ... not here.
6421 2009-10-18 Bruno Haible <bruno@clisp.org>
6423 Avoid symlink attack in localcharset module.
6424 * lib/localcharset.c: Include <fcntl.h>, <unistd.h>.
6425 (O_NOFOLLOW): Define fallback.
6426 (get_charset_aliases): Don't open the file if it is a symbolic link.
6427 * m4/fcntl_h.m4 (gl_FCNTL_O_FLAGS): New macro, extracted from
6429 (gl_FCNTL_H): Require it.
6430 * m4/localcharset.m4 (gl_LOCALCHARSET): Likewise.
6431 * modules/localcharset (Files): Add m4/fcntl_h.m4.
6432 Reported by Fergal Glynn <fglynn@veracode.com>.
6434 2009-10-18 Bruno Haible <bruno@clisp.org>
6436 Implement nproc for mingw.
6437 * lib/nproc.c: Include <windows.h>
6438 (num_processors): On native Windows platforms, try GetSystemInfo.
6440 2009-10-18 Bruno Haible <bruno@clisp.org>
6442 Implement nproc for IRIX.
6443 * lib/nproc.c: Include <sys/sysmp.h>.
6444 (num_processors): On IRIX systems, try sysmp.
6445 * m4/nproc.m4 (gl_PREREQ_NPROC): Check for sys/sysmp.h and sysmp.
6447 2009-10-18 Bruno Haible <bruno@clisp.org>
6449 Implement nproc for HP-UX.
6450 * lib/nproc.c: Include <sys/pstat.h>
6451 (num_processors): On HP-UX systems, try pstat_getdynamic.
6452 * m4/nproc.m4 (gl_PREREQ_NPROC): Check for sys/pstat.h and
6455 2009-10-18 Giuseppe Scrivano <gscrivano@gnu.org>
6456 Bruno Haible <bruno@clisp.org>
6458 Implement nproc for NetBSD, OpenBSD.
6459 * lib/nproc.c: Include <sys/types.h>, <sys/param.h>, <sys/sysctl.h>.
6460 (ARRAY_SIZE): New macro.
6461 (num_processors): On BSD systems, try sysctl of HW_NCPU.
6462 * m4/nproc.m4: New file.
6463 * modules/nproc (Files): Add m4/nproc.m4.
6464 (configure.ac): Invoke gl_NPROC. Remove AC_LIBOBJ invocation.
6465 (Makefile.am): Instead, augment lib_SOURCES.
6467 2009-10-18 Bruno Haible <bruno@clisp.org>
6469 Fix recognition of sys/sysctl.h on OpenBSD 4.0.
6470 * m4/physmem.m4 (gl_PHYSMEM): Before including sys/sysctl.h, include
6473 2009-10-16 Eric Blake <ebb9@byu.net>
6475 utimensat: new module
6476 * modules/utimensat: New file.
6477 * lib/utimensat.c (utimensat): Likewise.
6478 * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
6479 * lib/utimens.c (utimensat): Avoid recursion into rpl_utimensat,
6480 so we can work around Linux bugs.
6481 * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
6482 * modules/sys_stat (Makefile.am): Substitute them.
6483 * lib/sys_stat.in.h (utimensat): Declare it.
6484 * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
6485 * doc/posix-functions/utimensat.texi (utimensat): Likewise.
6486 * modules/utimensat-tests: New test.
6487 * tests/test-utimensat.c: Likewise.
6489 utimens: let lutimens work on non-symlinks
6490 * lib/utimens.c (lutimens): Fall back to utimens rather than
6491 failing with ENOSYS, when file is not a symlink.
6492 (utimens): Reduce redirection.
6493 * tests/test-lutimens.h (test_lutimens): Update test to cover
6495 * tests/test-utimens.h (test_utimens): Update test to cover
6497 * tests/test-utimens.c (main): Update caller.
6499 utimens: cache whether utimensat syscall works
6500 * lib/utimens.c (utimensat_works_really): New cache variable.
6501 (fdutimens, lutimens): Use it to avoid failing syscall.
6503 test-stat-time, test-utimens: improve portability
6504 * tests/test-stat-time.c (nap): Lengthen delay to 20ms, for
6505 ext4 on alpha, and for cygwin.
6506 * tests/test-utimens-common.h: New file.
6507 (nap): Factor delays into single function.
6508 * tests/test-lutimens.h (test_lutimens): Use new header.
6509 * tests/test-futimens.h (test_futimens): Likewise.
6510 * tests/test-utimens.h (test_utimens): Likewise. Also, force NFS
6511 timestamps to occur from same machine, as was done previously for
6513 * modules/utimens-tests (Files): Ship new file.
6514 * modules/futimens-tests (Files): Likewise.
6515 Reported in part by Jim Meyering.
6517 sys_stat: sort replacement declarations
6518 * lib/sys_stat.in.h: Sort declarations.
6519 * lib/futimens.c (futimens): Fix typo.
6521 2009-10-15 Jim Meyering <meyering@redhat.com>
6523 don't let environment settings perturb build
6524 Setting the envvars, LIB_CLOCK_GETTIME, LIB_EACCESS or LIB_NANOSLEEP
6525 could cause a configure-time and/or build-time malfunction.
6526 Typically, a configure-time function-in-library test is performed
6531 prefix_saved_LIBS=$LIBS
6532 AC_SEARCH_LIBS([FUNC], [LIB_NAME],
6533 [test "$ac_cv_search_FUNC" = "none required" ||
6534 LIB_VAR=$ac_cv_search_FUNC])
6535 LIBS=$prefix_saved_LIBS
6537 However, in each of the files affected by this change, the LIB_VAR=
6538 initialization was omitted. Thus, when set in the environment, its
6539 value would propagate into generated Makefiles when FUNC is not found
6541 * m4/clock_time.m4 (gl_CLOCK_TIME): Initialize AC_SUBST'd var.
6542 * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
6543 * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
6545 2009-10-14 Eric Blake <ebb9@byu.net>
6547 fchdir: avoid infinite recursion in mingw
6548 * lib/fchdir.c (rpl_fstat): Call system fstat, rather than
6551 test-stat-time: port to mingw
6552 * tests/test-stat-time.c (force_unlink): Return a value.
6553 (test_ctime) [W32]: Fix compilation error.
6554 (nap): Don't call usleep with too large an argument. Use
6556 * doc/pastposix-functions/usleep.texi (usleep): Document the
6559 2009-10-13 Jim Meyering <meyering@redhat.com>
6561 use AC_CHECK_FUNCS_ONCE, not AC_CHECK_FUNCS in modules/*
6562 * modules/pipe-filter-gi: Use AC_CHECK_FUNCS_ONCE, not AC_CHECK_FUNCS.
6563 * modules/pipe-filter-ii: Likewise.
6564 * modules/sys_socket-tests: Likewise.
6565 * modules/tsearch-tests: Likewise.
6566 * Makefile (sc_prefer_ac_check_funcs_once): New rule.
6567 (check): Depend on it.
6569 2009-10-12 Eric Blake <ebb9@byu.net>
6571 utimens-tests: port to NFS file systems
6572 * tests/test-utimens.h (test_utimens): Refactor utimecmp
6573 comparisons to avoid spurious failures from timestamp drift
6574 between NFS machines.
6576 2009-10-12 Eric Blake <ebb9@byu.net>
6578 stat-time-tests: minor cleanups
6579 * modules/stat-time-tests (configure.ac): Use AC_CHECK_FUNCS_ONCE.
6580 * tests/test-stat-time.c (nap): Separate assignment from call.
6581 Suggested by Paolo Bonzini and Bruno Haible.
6583 sys_stat: guarantee struct timespec
6584 * lib/sys_stat.in.h (includes): Always include <time.h>
6585 * modules/sys_stat (Depends-on): Add time.
6586 * tests/test-sys_stat.c: Guarantee struct timespec, as well as
6587 mode_t permission values.
6588 * doc/posix-headers/sys_stat.texi (sys/stat.h): Document how to
6589 get at subsecond timestamps.
6591 2009-10-10 Eric Blake <ebb9@byu.net>
6593 futimens: new module
6594 * modules/futimens: New file.
6595 * lib/futimens.c (futimens): Likewise.
6596 * m4/futimens.m4 (gl_FUNC_FUTIMENS): Likewise.
6597 * lib/utimens.c (futimens): Avoid recursion into rpl_futimens, so
6598 we can work around Linux bugs.
6599 * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
6600 * modules/sys_stat (Makefile.am): Substitute them.
6601 * lib/sys_stat.in.h (futimens): Declare it.
6602 * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
6603 * doc/posix-functions/futimens.texi (futimens): Likewise.
6604 * modules/futimens-tests: New test.
6605 * tests/test-futimens.c: Likewise.
6607 utimens: introduce fdutimens
6608 * lib/utimens.h (fdutimens): New prototype.
6609 * lib/utimens.c (gl_futimens): Move guts...
6610 (fdutimens): ...to new interface.
6611 * tests/test-utimens.c (do_fdutimens): Use it.
6613 utimens: add UTIME_NOW and UTIME_OMIT support
6614 * lib/utimens.c (validate_timespec, update_timespec): New helper
6616 (gl_futimens, lutimens): Use them.
6617 * modules/utimens (Depends-on): Add gettime, lstat, stat-time,
6619 (Link): Mention resulting library dependency.
6620 * modules/utimecmp (Link): Likewise.
6621 * modules/utimens-tests (Depends-on): Drop stat-time, stdbool.
6622 (Makefile.am): Pick up library dependency.
6623 * lib/sys_stat.in.h (UTIME_NOW, UTIME_OMIT): Guarantee a
6625 * tests/test-sys_stat.c: Test the definitions.
6626 * doc/posix-headers/sys_stat.texi (sys/stat.h): Document this.
6627 * NEWS: Document library dependency.
6629 utimecmp: support symlink timestamps
6630 * lib/utimecmp.c (utimecmp): Use new interface. Skip effort of
6631 hashing when possible. Use pathconf when available.
6632 (SYSCALL_RESOLUTION): Recognize tighter resolution.
6633 * modules/utimecmp (Depends-on): Add lstat.
6635 utimens: add lutimens interface
6636 * lib/utimens.c (lutimens): New function.
6637 * m4/utimens.m4 (gl_UTIMENS): Check for lutimes.
6638 * lib/utimens.h (lutimens): Declare new interface.
6639 * tests/test-utimens.c (main): Enhance test.
6640 * tests/test-lutimens.h (test_lutimens): New file.
6641 * modules/utimens-tests (Files): Distribute it.
6642 (Depends-on): Add symlink.
6643 (configure.ac): Check for usleep.
6645 utimens: validate futimens usage
6646 * lib/utimens.c (gl_futimens): Require valid fd up front, using
6647 fewer syscalls on failure later on. Avoid compiler warning on
6649 * modules/utimens (Depends-on): Add dup2.
6652 * modules/utimens-tests: New test.
6653 * tests/test-utimens.h: New file.
6654 * tests/test-futimens.h: Likewise.
6655 * tests/test-utimens.c: Likewise.
6657 doc: mention timestamp portability issues
6658 * doc/glibc-functions/lutimes.texi (lutimes): Refer to utimensat
6660 * doc/posix-functions/utime.texi (utime): Likewise.
6661 * doc/posix-functions/utimes.texi (utimes): Likewise.
6662 * doc/glibc-functions/futimes.texi (futimes): Refer to futimens
6664 * doc/posix-functions/futimens.texi (futimens): Mention utimens
6666 * doc/posix-functions/utimensat.texi (utimensat): Likewise.
6667 Mention weakness with symlink timestamps.
6668 * doc/glibc-functions/futimesat.texi (futimesat): New file; refer
6669 to utimensat/futimens instead.
6670 * doc/gnulib.texi (Glibc sys/time.h): Include new file.
6672 test-dup2: enhance test
6673 * tests/test-dup2.c (main): Also check AT_FDCWD.
6675 test-stat-time: avoid more spurious failures
6676 * tests/test-stat-time.c (nap): Wait for 15ms rather than 2ms, for
6677 xfs; and avoid race if the two timestamps cross quantization edge.
6679 relocatable: prefer 'file system' over 'filesystem'
6680 * m4/relocatable-lib.m4 (gl_RELOCATABLE_NOP): Use AS_HELP_STRING.
6681 (gl_RELOCATABLE_LIBRARY_BODY): Fix spelling.
6682 * doc/relocatable-maint.texi (Supporting Relocation): Likewise.
6683 * doc/relocatable.texi (Enabling Relocatability): Likewise.
6684 * lib/relocatable.c (compute_curr_prefix): Likewise.
6686 2009-10-10 Jim Meyering <meyering@redhat.com>
6688 stat-time-tests: check for the usleep function
6689 * modules/stat-time-tests (configure.ac): Now that we test HAVE_USLEEP.
6691 2009-10-10 Bruno Haible <bruno@clisp.org>
6693 * modules/xnanosleep: Put the Link section after the Include section.
6695 2009-10-09 Eric Blake <ebb9@byu.net>
6697 dup2: work around FreeBSD 6.1 bug
6698 * m4/dup2.m4 (gl_FUNC_DUP2): Detect bug.
6699 * doc/posix-functions/dup2.texi (dup2): Document it.
6700 Reported by Nelson H. F. Beebe and Jim Meyering.
6702 test-stat-time: port to buggy NFS clients
6703 * tests/test-stat-time.c (main) [W32]: Reduce ifdefs.
6704 (test_ctime): Also skip test if mtime and ctime are skewed.
6706 maint: prefer 'file system' over 'filesystem'
6707 * doc/posix-functions/fstatat.texi (fstatat): Likewise.
6708 * doc/posix-functions/lstat.texi (lstat): Likewise.
6709 * lib/file-has-acl.c (file_has_acl): Likewise.
6710 * lib/fwriteerror.c [TEST]: Likewise.
6711 * tests/test-areadlink.h (test_areadlink): Likewise.
6712 * tests/test-areadlinkat-with-size.c (main): Likewise.
6713 * tests/test-areadlinkat.c (main): Likewise.
6714 * tests/test-canonicalize-lgpl.c (main): Likewise.
6715 * tests/test-canonicalize.c (main): Likewise.
6716 * tests/test-fstatat.c (main): Likewise.
6717 * tests/test-linkat.c (main): Likewise.
6718 * tests/test-lstat.h (test_lstat_func): Likewise.
6719 * tests/test-mkdir.h (test_mkdir): Likewise.
6720 * tests/test-readlink.h (test_readlink): Likewise.
6721 * tests/test-remove.c (main): Likewise.
6722 * tests/test-rename.h (test_rename): Likewise.
6723 * tests/test-renameat.c (main): Likewise.
6724 * tests/test-rmdir.h (test_rmdir_func): Likewise.
6725 * tests/test-symlink.h (test_symlink): Likewise.
6726 * tests/test-symlinkat.c (main): Likewise.
6727 * tests/test-unlink.h (test_unlink_func): Likewise.
6728 * tests/test-unlinkat.c (main): Likewise.
6730 maint: make realtime library usage explicit
6731 * modules/gethrxtime (Link): Mention LIB_GETHRXTIME.
6732 * modules/gettime (Link): Mention LIB_CLOCK_GETTIME.
6733 * modules/settime (Link): Likewise.
6734 * modules/xnanosleep (Link): Mention LIB_NANOSLEEP.
6736 test-stat-time: speed up execution
6737 * tests/test-stat-time.c (test_ctime) [!W32]: Avoid compiler
6739 (nap): New helper function.
6740 (prepare_test): Use it to reduce sleep time.
6741 (test_mtime, test_ctime, test_birthtime): Allow for subsecond
6743 * modules/stat-time-tests (configure.ac): Check for usleep.
6745 2009-10-09 Jim Meyering <meyering@redhat.com>
6747 selinux-h: always use getfilecon wrappers
6748 * lib/getfilecon.c: New file.
6749 * lib/se-selinux.in.h: Use a better inclusion guard symbol name.
6750 [HAVE_SELINUX_SELINUX_H]: Include-next <selinux/selinux.h>.
6751 [!HAVE_SELINUX_SELINUX_H]: Use better parameter names.
6752 (fgetfilecon): Provide a stub.
6753 * m4/selinux-selinux-h.m4 (gl_HEADERS_SELINUX_SELINUX_H): Don't
6754 AC_SUBST SELINUX_SELINUX_H, since now we're generating that
6755 file unconditionally.
6756 When <selinux/selinux.h> is found, arrange to use wrappers.
6757 * modules/selinux-h (Files): Add getfilecon.c.
6758 (Makefile.am): Substitute include-next-related bits
6759 into the now-always-generated selinux/selinux.h file.
6760 * doc/glibc-functions/lgetfilecon.texi: New file.
6761 * doc/glibc-functions/fgetfilecon.texi: New file.
6762 * doc/glibc-functions/getfilecon.texi: New file.
6763 * doc/glibc-functions/getfilecon-desc.texi: New file.
6764 * doc/gnulib.texi (Glibc selinux/selinux.h): New section, by
6765 which to pull in the new files.
6766 * MODULES.html.sh (Misc): Add selinux-h.
6768 2009-10-08 Jim Meyering <meyering@redhat.com>
6770 unistd: fix comment typo
6771 * lib/unistd.in.h (euidaccess): Fix a comment typo.
6773 2009-10-08 Eric Blake <ebb9@byu.net>
6775 areadlink: use SIZE_MAX consistently
6776 * modules/areadlink (Depends-on): Add stdint.
6777 * modules/areadlink-with-size (Depends-on): Likewise.
6778 * lib/areadlink-with-size.c (includes): Drop stdio, since stdlib
6779 gives NULL; drop sys/types, since unistd gives size_t; and add
6780 stdint for SIZE_MAX.
6781 (SIZE_MAX): Rely on headers.
6782 * lib/areadlinkat-with-size.c (includes): Drop stdio, sys/types,
6784 * lib/areadlink.c (includes): Drop sys/types, and add stdint.
6785 (SIZE_MAX): Likewise.
6786 (INITIAL_BUF_SIZE): Turn into enum.
6787 * lib/areadlinkat.c (INITIAL_BUF_SIZE): Likewise.
6789 2009-10-08 Jim Meyering <meyering@redhat.com>
6791 areadlinkat: avoid compilation failure
6792 * lib/areadlinkat.c: Include <stdint.h> for use of SIZE_MAX.
6793 Fix typo in comment.
6795 2009-10-07 Eric Blake <ebb9@byu.net>
6797 areadlinkat-with-size: new module
6798 * modules/areadlinkat-with-size: New module.
6799 * lib/areadlinkat-with-size.c (areadlinkat_with_size): New file.
6800 * lib/areadlink.h (areadlinkat): Declare it.
6801 * MODULES.html.sh (File system functions): Mention it.
6802 * modules/areadlinkat-with-size-tests: New test.
6803 * tests/test-areadlinkat-with-size.c: New file.
6805 xreadlinkat: new module
6806 * modules/xreadlinkat: New module.
6807 * lib/xreadlinkat.c (xreadlinkat): New file.
6808 * lib/xreadlink.h (xreadlinkat): Declare it.
6809 * MODULES.html.sh (File system functions): Mention it.
6811 areadlinkat: new module
6812 * lib/at-func.c (FUNC_FAIL): New define.
6813 (AT_FUNC_NAME, VALIDATE_FLAG): Use it rather than raw -1.
6814 * modules/areadlinkat: New module.
6815 * lib/linkat.c (areadlinkat): Move...
6816 * lib/areadlinkat.c (areadlinkat): ...to new file.
6817 * lib/areadlink.h (areadlinkat): Declare it.
6818 * modules/linkat (Depends-on): Add areadlinkat.
6819 * MODULES.html.sh (File system functions): Mention it.
6820 * modules/areadlinkat-tests: New test.
6821 * tests/test-areadlinkat.c: New file.
6823 areadlink, areadlink-with-size: add tests
6824 * modules/areadlink-tests: New test.
6825 * modules/areadlink-with-size-tests: Likewise.
6826 * tests/test-areadlink.h: New file.
6827 * tests/test-areadlink.c: Likewise.
6828 * tests/test-areadlink-with-size.c: Likewise.
6830 maint: minor cleanups
6831 * lib/fts.c (ATTRIBUTE_UNUSED): Delete; use gnulib-guaranteed
6832 _UNUSED_PARAMETER_ instead.
6833 * lib/getdate.y (ATTRIBUTE_UNUSED): Likewise.
6834 * lib/utimens.c (ATTRIBUTE_UNUSED): Likewise.
6835 * modules/linkat-tests (Files): Distribute test-link.h.
6837 openat, utimens: whitespace cleanup
6838 * lib/openat.c: Prefer space throughout, rather than mix of 8
6840 * lib/at-func.c: Likewise.
6841 * lib/utimens.c: Likewise.
6843 openat: avoid using wrong fd
6844 * lib/openat.c (openat_permissive): Reject user's fd if saving the
6845 working directory chooses same fd.
6846 * lib/at-func.c (AT_FUNC_NAME): Likewise.
6848 mkdir, mkdirat: fix cygwin 1.5.x bug
6849 * lib/mkdir.c (rpl_mkdir) [FUNC_MKDIR_DOT_BUG]: Work around bug.
6850 * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Move...
6851 * m4/mkdir.m4 (gl_FUNC_MKDIR): ...here, and add check for cygwin
6853 (gl_PREREQ_MKDIR): Delete unused macro.
6854 * modules/mkdir (Files): Track file rename.
6855 (configure.ac): Update macro name.
6856 * modules/openat (Depends-on): Add mkdir.
6857 * doc/posix-functions/mkdir.texi (mkdir): Document the bug.
6859 mkdir, mkdirat: add tests
6860 * modules/mkdir-tests: New test.
6861 * tests/test-mkdir.h: New file.
6862 * tests/test-mkdir.c: Likewise.
6863 * tests/test-mkdirat.c: Likewise.
6864 * modules/openat-tests (Files): Add new files.
6865 (Makefile.am): Run new test.
6867 2009-10-06 Eric Blake <ebb9@byu.net>
6869 doc: tweak *at function documentation
6870 * doc/posix-functions/faccessat.texi (faccessat): Mention
6871 known issue with replacement.
6872 * doc/posix-functions/fchdir.texi (fchdir): Likewise.
6873 * doc/posix-functions/linkat.texi (linkat): Likewise.
6874 * doc/posix-functions/mkfifoat.texi (mkfifoat): Likewise.
6875 * doc/posix-functions/mknodat.texi (mknodat): Likewise.
6876 * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
6877 * doc/posix-functions/renameat.texi (renameat): Likewise.
6878 * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
6880 openat: fix GNU/Hurd bug in unlinkat
6881 * m4/openat.m4 (gl_FUNC_OPENAT): Replace unlinkat if unlink is
6883 * doc/posix-functions/unlink.texi (unlink): Document this.
6884 * doc/posix-functions/unlinkat.texi (unlinkat): Likewise.
6886 fdopendir: fix GNU/Hurd bug
6887 * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Check for Hurd bug in
6888 allowing non-directory fds.
6889 * lib/fdopendir.c (rpl_fdopendir): Work around it.
6890 * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): New witness.
6891 * modules/dirent (Makefile.am): Substitute it.
6892 * lib/dirent.in.h (fdopendir): Declare replacement.
6893 * doc/posix-functions/fdopendir.texi (fdopendir): Document this.
6894 * tests/test-fdopendir.c (main): Test something other than
6895 /dev/null, since on Hurd that behaves like a directory.
6897 test-symlink: port to GNU/Hurd
6898 * tests/test-symlink.h (test_symlink): Relax expected errno.
6900 doc: tweak more cygwin information
6901 * doc/glibc-headers/getopt.texi (getopt.h): Cygwin 1.7 getopt is
6902 now compatible with glibc.
6903 * doc/posix-functions/getopt.texi (getopt): Likewise.
6905 getopt-gnu: add another test
6906 * tests/test-getopt_long.h (test_getopt_long_posix): New test, to
6907 guarantee behavior relied on by m4.
6908 * tests/test-getopt.c (main): Use it.
6909 * modules/getopt-posix-tests (Depends-on): Add setenv.
6910 See http://lists.gnu.org/archive/html/bug-m4/2006-09/msg00028.html.
6912 getopt: fix compilation on darwin
6913 * lib/getopt.in.h (includes): Leave breadcrumbs during system
6915 * lib/unistd.in.h (getopt): Use them to avoid recursive include.
6916 Reported by Ludovic Courtès.
6918 2009-10-06 Bruno Haible <bruno@clisp.org>
6920 * modules/size_max (Description): Discourage its use.
6921 Reported by Simon Josefsson.
6923 2009-10-06 Jim Meyering <meyering@redhat.com>
6925 linkat: avoid compilation failure
6926 * lib/linkat.c: Include <stdint.h> for use of SIZE_MAX.
6928 2009-10-05 Eric Blake <ebb9@byu.net>
6930 linkat: support Linux 2.6.17
6931 * m4/linkat.m4 (gl_FUNC_LINKAT): Default to always replacing
6932 linkat on Linux, but allow cache variable override.
6933 * lib/linkat.c (rpl_linkat): Define override.
6934 * modules/linkat (Depends-on): Add symlinkat.
6935 * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add new default.
6936 * modules/unistd (Makefile.am): Substitute it.
6937 * lib/unistd.in.h (linkat): Declare replacement.
6938 Reported by Pádraig Brady.
6940 quotearg: port test to systems with C.UTF-8 locale
6941 * tests/test-quotearg.c (struct result_strings): Add another
6942 member, differentiating between C.ASCII and C.UTF-8 handling.
6943 (compare_strings): Add parameter.
6944 (main): Adjust all callers.
6946 getopt: avoid clash with FreeBSD _getopt_internal
6947 * lib/getopt.in.h (_getopt_internal): Override the name.
6948 * lib/getopt_int.h (includes): Pick up any overrides.
6949 Reported by Reuben Thomas.
6951 hash: allow C89 compilation
6952 * lib/hash.c (check_tuning): Move declaration before statement.
6953 Reported by Reuben Thomas.
6955 2009-10-05 Karl Berry <karl@gnu.org>
6957 * doc/gnulib.texi: @include execvpe.texi, missing for several days.
6959 2009-10-04 Paolo Bonzini <bonzini@gnu.org>
6960 Bruno Haible <bruno@clisp.org>
6962 * lib/uname.c (uname): Use a table-driven algorithm to compute
6963 Windows NT versions.
6965 2009-10-04 Bruno Haible <bruno@clisp.org>
6967 * lib/progname.c (set_program_name): Also remove the "lt-" prefix from
6968 program_invocation_short_name.
6969 * modules/progname (configure.ac): Test for presence of
6970 program_invocation_short_name.
6971 Reported by Sergey Poznyakoff <gray@gnu.org.ua>.
6973 2009-10-04 Bruno Haible <bruno@clisp.org>
6975 * lib/progname.c (set_program_name): Fix comment.
6976 Reported by Jim Meyering.
6978 2009-10-03 Paolo Bonzini <bonzini@gnu.org>
6979 Bruno Haible <bruno@clisp.org>
6981 * lib/uname.c: Include <string.h>.
6982 (uname): Do only one call to GetVersionEx in the common case.
6984 2009-10-03 Paolo Bonzini <bonzini@gnu.org>
6985 Bruno Haible <bruno@clisp.org>
6987 * lib/uname.c (VER_PLATFORM_WIN32_CE, PROCESSOR_ARCHITECTURE_AMD64,
6988 PROCESSOR_ARCHITECTURE_IA32_ON_WIN64): Define fallbacks.
6989 (uname): Add support for Windows CE and various non-x86 CPU types.
6991 2009-10-03 Bruno Haible <bruno@clisp.org>
6993 * gnulib-tool (func_create_testdir): Conditionally emit AM_PROG_CC_C_O
6994 invocation to tests/configure.ac.
6995 Reported by Ian Beckwith <ianb@erislabs.net>.
6997 2009-10-02 Eric Blake <ebb9@byu.net>
6999 fchdir: avoid compiler warning
7000 * lib/fchdir.c (canonicalize_file_name)
7001 [!HAVE_CANONICALIZE_FILE_NAME]: Avoid compiler warning on mingw.
7003 test-open: support mingw errno values
7004 * tests/test-open.h (test_open): Relax test.
7005 * tests/test-fopen.h (test_fopen): Likewise.
7006 * tests/test-openat-safer.c (main): Likewise.
7008 open: fix opening directory on mingw
7009 * lib/open.c (open) [REPLACE_OPEN_DIRECTORY]: Correct typo.
7011 test-open: on GNU/Hurd, /dev/null is a directory
7012 * tests/test-fopen.h (main): Rename...
7013 (test_fopen): ...to this. Use a guaranteed non-directory when
7014 confirming open behavior on trailing slash.
7015 * tests/test-openat-safer.c (main): Likewise.
7016 * tests/test-open.h (main): Likewise....
7017 (test_open): ...to this.
7018 * tests/test-fopen.c (main): Adjust caller.
7019 * tests/test-fopen-safer.c (main): Likewise.
7020 * tests/test-open.c (main): Likewise.
7021 * tests/test-fcntl-safer.c (main): Likewise.
7022 Reported by Samuel Thibault.
7024 rename, fchdir: don't ignore chdir failure
7025 * lib/fchdir.c (get_name): Abort on unexpected chdir failure.
7026 * lib/rename.c (rpl_rename) [W32]: Likewise.
7027 (rpl_rename) [RENAME_DEST_EXISTS_BUG]: Avoid one case of losing
7028 an empty destination directory if source cannot be renamed,
7029 although there is still possibility for failure.
7030 * doc/posix-functions/rename.texi (rename): Document the race.
7031 Reported by Jim Meyering.
7033 maint: cleanup whitespace in recent commits
7034 * lib/rename.c (rpl_rename): Remove tabs.
7035 * tests/test-link.h (test_link): Likewise.
7036 * lib/fchdir.c (get_name): Likewise.
7037 Reported by Jim Meyering.
7039 2009-10-02 Ben Pfaff <blp@gnu.org>
7041 relocatable-prog-wrapper: Add missing dependency on
7043 * modules/relocatable-prog-wrapper: Add dependency.
7044 Reported by Ian Beckwith <ianb@erislabs.net>.
7046 2009-10-02 Eric Blake <ebb9@byu.net>
7048 renameat: fix Solaris bugs
7049 * m4/renameat.m4 (gl_FUNC_RENAMEAT): Replace renameat if rename
7051 * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): New witness.
7052 * modules/stdio (Makefile.am): Substitute it.
7053 * lib/stdio.in.h (renameat): Declare replacement.
7054 * lib/renameat.c (rpl_renameat): Implement fix.
7056 renameat: new module
7057 * modules/renameat: New file.
7058 * lib/renameat.c (renameat): Likewise.
7059 * m4/renameat.m4 (gl_FUNC_RENAMEAT): Likewise.
7060 * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add witnesses.
7061 * modules/stdio (Makefile.am): Substitute them.
7062 * lib/stdio.in.h (renameat): Declare it.
7063 * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
7064 * doc/posix-functions/renameat.texi (renameat): Likewise.
7065 * modules/renameat-tests: New test.
7066 * tests/test-renameat.c: Likewise.
7068 rename: fix mingw bugs
7069 * lib/rename.c (rpl_rename) [W32]: Fix trailing slash and
7070 directory overwrite bugs.
7072 rename: fix another cygwin 1.5 bug
7073 * m4/rename.m4 (gl_FUNC_RENAME): Split cygwin bugs into two
7075 * lib/rename.c (rpl_rename): Don't penalize NetBSD with
7076 unnecessary cygwin workarounds. Also work around bug with moving
7077 full directory onto an empty one.
7078 * modules/rename (Depends-on): Add canonicalize-lgpl, rmdir.
7080 rename-dest-slash: merge into rename module
7081 * modules/rename-dest-slash (Status): Mark obsolete.
7082 (Depends-on): Add rename.
7083 (Files): Let rename do it all.
7084 * m4/rename.m4 (gl_FUNC_RENAME): Also test for NetBSD bugs,
7085 subsuming the test from gl_FUNC_RENAME_TRAILING_DEST_SLASH...
7086 * m4/rename-dest-slash.m4: ...so this file can be deleted.
7087 * lib/rename-dest-slash.c (rpl_rename_dest_slash): Delete.
7088 * lib/rename.c (rpl_rename): Update comments.
7090 rename: fix cygwin 1.5.x bugs
7091 * m4/rename.m4 (gl_FUNC_RENAME): Detect cygwin bugs.
7092 * lib/rename.c (rpl_rename): Work around them.
7093 * modules/rename (Depends-on): Add same-inode.
7095 rename: fix Solaris 10 bug
7096 * m4/rename.m4 (gl_FUNC_RENAME): Detect Solaris bug.
7097 * lib/rename.c (rpl_rename): Don't cripple POSIX behavior if this
7100 rename: fix Solaris 9 bug
7101 * lib/rename.c (rpl_rename): Rewrite to recognize trailing slash
7102 on non-directory. Avoid calling exit.
7103 * modules/rename (Depends-on): Drop xalloc; add lstat, stdbool,
7105 * modules/rename-tests (Depends-on): Drop lstat.
7106 * m4/rename.m4 (gl_FUNC_RENAME): Detect Solaris bug.
7107 (gl_PREREQ_RENAME): Delete unused macro.
7109 rename-dest-slash: fix NetBSD bug
7110 * lib/rename-dest-slash.c (rpl_rename_dest_slash): Detect hard
7112 * modules/rename-dest-slash (Depends-on): Add same-inode.
7114 rename-tests: new test, exposes several platform bugs
7115 * modules/rename-tests: New file.
7116 * tests/test-rename.h: Likewise.
7117 * tests/test-rename.c: Likewise.
7118 * doc/posix-functions/rename.texi (rename): Improve documentation,
7119 including bugs that will eventually be fixed in gnulib.
7121 2009-10-02 Paolo Bonzini <bonzini@gnu.org>
7123 * lib/uname.c: Include <stdlib.h>
7124 (uname): Assume version info is available.
7126 2009-10-02 Jim Meyering <meyering@redhat.com>
7128 gnu-web-doc-update: correct --help output
7129 * build-aux/gnu-web-doc-update: Make --help output relevant.
7131 gnu-web-doc-update: add standard options
7132 * build-aux/gnu-web-doc-update: Add --help, --version, etc.
7134 gnu-web-doc-update: New module.
7135 Use this script to automatically update the on-line web documentation
7136 for your GNU project at http://www.gnu.org/software/$pkg/manual/
7137 * modules/gnu-web-doc-update: New file, from coreutils.
7138 * build-aux/gnu-web-doc-update: New script.
7140 2009-10-01 Paolo Bonzini <bonzini@gnu.org>
7142 link: LoadLibrary is not needed.
7143 * lib/link.c: Use GetModuleHandle.
7145 2009-10-01 Eric Blake <ebb9@byu.net>
7147 getopt: bump serial number
7148 * m4/getopt.m4: Increment serial number, to account for 2009-09-24
7151 tests: tighten link, rmdir, and remove tests
7152 * tests/test-link.h (includes): No need to use <config.h> here.
7153 Clean up if directory hard link was created, otherwise test for
7155 * tests/test-linkat.c (main): Simplify.
7156 * tests/test-remove.c (main): Enhance test for trailing '.'.
7157 * tests/test-rmdir.h (test_rmdir_func): Likewise.
7159 2009-10-01 Jim Meyering <meyering@redhat.com>
7161 maint.mk: requiring "make major" was annoying, for a "minor" release.
7162 What is intended is "stable", to contrast with alpha and beta,
7163 so require "make stable", not "make major".
7164 * build-aux/announce-gen (%valid_release_types): s/major/stable/.
7165 (get_tool_versions): Likewise.
7166 * top/maint.mk (ALL_RECURSIVE_TARGETS): s/major/stable/
7168 2009-09-30 Ben Pfaff <blp@gnu.org>
7170 Fix broken build of replacement for Windows tmpfile().
7171 * lib/tmpfile.c (tmpfile): Fix call to gen_tempname() to provide
7172 flags argument added along with the 'mkostemp' module.
7174 2009-09-28 Bruno Haible <bruno@clisp.org>
7176 Avoid identifier clash with POSIX function 'remove' defined as a macro.
7177 * lib/gl_list.h (struct gl_list_implementation): Rename field 'remove'
7179 (gl_list_remove): Update.
7180 * lib/gl_list.c (gl_list_remove): Update.
7181 * lib/gl_oset.h (struct gl_oset_implementation): Rename field 'remove'
7183 (gl_oset_remove): Update.
7184 * lib/gl_list.c (gl_oset_remove): Update.
7185 Reported by Eric Blake.
7187 2009-09-28 Eric Blake <ebb9@byu.net>
7189 doc: mention yet more cygwin 1.7 status
7190 * doc/posix-functions/fexecve.texi (fexecve): Now implemented in
7192 * doc/glibc-functions/execvpe.texi (execvpe): New file.
7193 * doc/gnulib.texi (Glibc unistd.h): Mention it.
7195 argp: fix test failure
7196 * lib/argp-help.c (hol_entry_cmp): Don't use _tolower on values
7197 that are not upper-case. Pass correct range to tolower.
7199 2009-09-27 Jim Meyering <meyering@redhat.com>
7201 test-yesno: work around sparc-dash here-document infelicity
7202 Without this change, the literal \177 byte in a here document
7203 would make dash 0.5.5.1-3 access uninitialized memory.
7204 * tests/test-yesno.sh: Don't put the \177 byte in the here document.
7205 Instead, use a marker, "@", and filter through tr to create the desired
7206 contents. Reported as <http://bugs.debian.org/548493> by Kurt Roeckx.
7208 2009-09-27 Bruno Haible <bruno@clisp.org>
7210 Disable untested support for new flavours of ACLs on AIX.
7211 * lib/file-has-acl.c (file_has_acl): Mark newer AIX code as work in
7213 * lib/set-mode-acl.c (qset_acl): Likewise.
7215 2008-12-07 Bruno Haible <bruno@clisp.org>
7217 Add support for new flavours of ACLs on AIX. (Untested.)
7218 * lib/file-has-acl.c [AIX] (acl_nfs4_nontrivial): New function.
7219 (file_has_acl): Add support for newer AIX.
7220 * lib/set-mode-acl.c (qset_acl): Likewise.
7221 * tests/test-sameacls.c (main): Fix use of aclx_get function. Hint by
7222 Rainer Tammer <tammer@tammer.net>.
7224 2009-09-26 Eric Blake <ebb9@byu.net>
7226 argp: fix compilation of getopt
7227 * lib/getopt.in.h (includes): Use different guard than glibc.
7228 Reported by Sergey Poznyakoff.
7230 doc: mention more cygwin 1.7 status
7231 * doc/posix-functions/access.texi (access): Mention cygwin 1.5
7233 * doc/posix-functions/execl.texi (execl): Likewise.
7234 * doc/posix-functions/execle.texi (execle): Likewise.
7235 * doc/posix-functions/execlp.texi (execlp): Likewise.
7236 * doc/posix-functions/execv.texi (execv): Likewise.
7237 * doc/posix-functions/execve.texi (execve): Likewise.
7238 * doc/posix-functions/execvp.texi (execvp): Likewise.
7239 * doc/glibc-functions/canonicalize_file_name.texi
7240 (canonicalize_file_name): Cygwin 1.7 now provides this.
7241 * doc/glibc-functions/euidaccess.texi (euidaccess): Likewise.
7242 * doc/posix-functions/fchmodat.texi (fchmodat): Mention limitation
7243 on AT_SYMLINK_NOFOLLOW.
7245 2009-09-24 Eric Blake <ebb9@byu.net>
7247 test-linkat: make test more robust
7248 * tests/test-linkat.c (main): Avoid collision with EEXIST.
7250 getopt: fix inclusion guards for cygwin
7251 * modules/getopt-posix (Depends-on): Add include-next.
7252 (Makefile.am): Substitute more items in replacement header.
7253 * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Also check for native
7255 * lib/getopt.in.h (includes): Use split inclusion guard, and
7256 prefer <getopt.h> over include <unistd.h> when one is present.
7257 (option): Also override name of 'struct option'.
7259 same-inode: revert prior change; it is not yet ready
7260 * NEWS: Undo mention of this change.
7261 * lib/same-inode.h (same-inode.h): Undo tri-state change.
7262 * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Update caller.
7263 * lib/cycle-check.c (cycle_check): Likewise.
7264 * lib/same.c (same_name): Likewise.
7265 * lib/at-func2.c (at_func2): Likewise.
7267 2009-09-23 Eric Blake <ebb9@byu.net>
7270 * modules/linkat: New file.
7271 * lib/at-func2.c (at_func2): Likewise.
7272 * lib/linkat.c (linkat): Likewise.
7273 * m4/linkat.m4 (gl_FUNC_LINKAT): Likewise.
7274 * lib/openat-priv.h (at_func2): Add declaration.
7275 * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
7276 * modules/unistd (Makefile.am): Substitute them.
7277 * lib/unistd.in.h (linkat): Declare it.
7278 * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
7279 * doc/posix-functions/linkat.texi (linkat): Likewise.
7280 * doc/posix-functions/link.texi (link): Tweak wording.
7281 * tests/test-link.c (main): Move guts...
7282 * tests/test-link.h (test_link): ...into new file.
7283 * modules/linkat-tests: New test.
7284 * tests/test-linkat.c: Likewise.
7285 * modules/link-tests (Files): Ship new file.
7286 (Depends-on): Add stdbool.
7288 dirname: add library-safe mdir_name
7289 * lib/dirname.h (mdir_name): New prototype.
7290 * lib/dirname.c (dir_name): Move guts...
7291 (mdir_name): ...to new function that avoids xalloc_die.
7293 fchdir: another mingw fix
7294 * modules/fchdir (Depends-on): Drop canonicalize-lgpl.
7295 * lib/fchdir.c (get_name): New helper method; skips canonicalize
7296 on mingw (where it has not yet been ported), and make it optional
7298 (_gl_register_fd): Use it.
7300 same-inode: make SAME_INODE tri-state, to port to mingw
7301 * NEWS: Mention this change.
7302 * lib/same-inode.h (same-inode.h): Recognize mingw limitation of
7303 st_ino always being 0.
7304 * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Update caller.
7305 * lib/cycle-check.c (cycle_check): Likewise.
7306 * lib/same.c (same_name): Likewise.
7308 lstat: avoid mingw compilation error
7309 * m4/lstat.m4 (gl_FUNC_LSTAT): Avoid duplicate calls to
7310 AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK, and deal with missing
7312 * lib/lstat.c [!HAVE_LSTAT]: Do nothing if <sys/stat.h> override
7314 * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Let lstat module handle
7315 the checks for lstat.
7316 (gl_SYS_STAT_H_DEFAULTS): Set default for HAVE_LSTAT.
7318 link: fix test failure on Solaris 9
7319 * lib/link.c (rpl_link): Don't assume link will catch bogus
7320 trailing slash on source.
7322 test-symlinkat: enhance test
7323 * tests/test-readlink.c (main): Move guts...
7324 * tests/test-readlink.h (test_readlink): ...into new file.
7325 * tests/test-symlink.c (main): Move guts...
7326 * tests/test-symlink.h (test_symlink): ...into new file.
7327 * tests/test-symlinkat.c (main): Use new files for further
7329 (do_symlink, do_readlink): New helper functions.
7330 * modules/symlink-tests (Files): Ship new file.
7331 (Depends-on): Add stdbool.
7332 * modules/readlink-tests (Files): Ship new file.
7333 (Depends-on): Add stdbool.
7334 * modules/symlinkat-tests (Files): Use new files.
7336 2009-09-23 Eric Blake <ebb9@byu.net>
7338 readlink: document portability issue with symlink length
7339 * doc/posix-functions/lstat.texi (lstat): Mention that some file
7340 systems have bogus st_size on symlinks, and mention the
7341 areadlink-with-size module.
7342 * doc/posix-functions/fstatat.texi (fstatat): Likewise.
7343 * doc/posix-functions/readlink.texi (readlink): Mention the
7344 areadlink module, and ERANGE failure.
7345 * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
7346 * tests/test-readlink.c (main): Relax test for AIX, HP-UX.
7348 readlink: fix Solaris 9 bug with trailing slash
7349 * lib/readlink.c (rpl_readlink): Work around trailing slash bug.
7350 * m4/readlink.m4 (gl_FUNC_READLINK): Detect the bug.
7351 * doc/posix-functions/readlink.texi (readlink): Document this.
7352 * modules/readlink-tests: New test.
7353 * tests/test-readlink.c: Likewise.
7355 readlink: fix cygwin 1.5.x bug with return type
7356 * m4/readlink.m4 (gl_FUNC_READLINK): Require correct signature.
7357 * lib/unistd.in.h (readlink): Use ssize_t.
7358 * lib/readlink.c (readlink): Likewise.
7359 * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
7360 * modules/unistd (Makefile.am): Substitute it.
7361 * lib/unistd.in.h (readlink): Declare replacement.
7362 * doc/posix-functions/readlink.texi (readlink): Document this.
7364 symlink: use throughout gnulib
7365 * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Omit symlink check.
7366 * lib/symlinkat.c (symlinkat) [!HAVE_SYMLINK]: Document why
7367 symlink is not used.
7368 * modules/symlinkat (Depends-on): Add symlink.
7369 * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
7370 * modules/canonicalize-tests (Depends-on): Likewise.
7371 * modules/lstat-tests (Depends-on): Likewise.
7372 * modules/openat-tests (Depends-on): Likewise.
7373 * modules/remove-tests (Depends-on): Likewise.
7374 * modules/rmdir-tests (Depends-on): Likewise.
7375 * modules/unlink-tests (Depends-on): Likewise.
7376 * tests/test-canonicalize-lgpl.c (symlink): Delete stub.
7377 * tests/test-canonicalize.c (symlink): Likewise.
7378 * tests/test-fstatat.c (symlink): Likewise.
7379 * tests/test-lstat.c (symlink): Likewise.
7380 * tests/test-remove.c (symlink): Likewise.
7381 * tests/test-rmdir.c (symlink): Likewise.
7382 * tests/test-unlink.c (symlink): Likewise.
7383 * tests/test-unlinkat.c (symlink): Likewise.
7385 symlink: new module, for Solaris 9 bug
7386 * modules/symlink: New file.
7387 * m4/symlink.m4 (gl_FUNC_SYMLINK): Likewise.
7388 * lib/symlink.c: Likewise.
7389 * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add defaults.
7390 * modules/unistd (Makefile.am): Substitute them.
7391 * lib/unistd.in.h (symlink): Declare replacement.
7392 * MODULES.html.sh (File system functions): Mention it.
7393 * doc/posix-functions/symlink.texi (symlink): Likewise.
7394 * modules/symlink-tests: New test.
7395 * tests/test-symlink.c: Likewise.
7397 2009-09-23 Bruno Haible <bruno@clisp.org>
7399 * gnulib-tool (func_import): Add 'link-warning' to testsrelated_modules
7401 Test case: gnulib-tool --import --with-tests atexit inttypes.
7402 Reported by Pauli Miettinen <pauli.miettinen@cs.helsinki.fi>.
7404 2009-09-23 Bruno Haible <bruno@clisp.org>
7406 * gnulib-tool (func_emit_tests_Makefile_am): Set uses_subdirs in a
7407 subcommand, not in a subshell.
7409 2009-09-22 Eric Blake <ebb9@byu.net>
7411 unistd: sort replacement declarations
7412 * lib/unistd.in.h: Sort declarations.
7414 open, openat: minor optimization
7415 * lib/open.c (open): If open succeeded, len is non-zero.
7416 * lib/openat.c (rpl_openat): Likewise.
7418 link-follow: ensure correct result
7419 * m4/fcntl_h.m4 (gl_FCNTL_H): Clean up temporary file.
7420 * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Likewise, and
7421 distinguish between possible failures.
7423 2009-09-21 Eric Blake <ebb9@byu.net>
7425 fts: avoid compiler warning
7426 * lib/fts.c (dirent_inode_sort_may_be_useful)
7427 (leaf_optimization_applies) [!__linux__]: Mark unused parameters.
7429 2009-09-19 Bruno Haible <bruno@clisp.org>
7431 * lib/progreloc.c (canonicalize_file_name): New declaration.
7433 2009-09-19 Eric Blake <ebb9@byu.net>
7436 * m4/link.m4 (gl_FUNC_LINK): Fix shell quoting.
7438 openat: fix openat bugs on Solaris 9
7439 * lib/openat.c (rpl_openat): Work around Solaris 9 bug.
7440 * m4/openat.m4 (gl_FUNC_OPENAT): Also replace openat on Solaris.
7441 * modules/openat (Depends-on): Add open.
7442 * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Provide new default.
7443 * modules/fcntl-h (Makefile.am): Substitute it.
7444 * lib/fcntl.in.h (openat): Declare replacement.
7445 * doc/posix-functions/openat.texi (openat): Document this.
7447 openat: move fstatat and unlinkat into correct files
7448 * m4/openat.m4 (gl_FUNC_OPENAT): Adjust which files will be
7450 * lib/openat.c (fstatat, unlinkat): Move...
7451 * lib/fstatat.c (fstatat): ...into correct files.
7452 * lib/unlinkat.c (unlinkat): Likewise.
7454 openat: fix unlinkat bugs on Solaris 9
7455 * lib/unlinkat.c (unlinkat): New file.
7456 * modules/openat (Depends-on): Add unlink.
7457 (Files): Distribute it.
7458 * m4/openat.m4 (gl_FUNC_OPENAT): Mark unlinkat for replacement if
7459 trailing slash behavior is broken.
7460 * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
7461 * modules/unistd (Makefile.am): Substitute it.
7462 * lib/unistd.in.h (unlinkat): Declare replacement.
7463 * doc/posix-functions/unlinkat.texi (unlinkat): Document this.
7465 openat: fix fstatat bugs on Solaris 9
7466 * lib/fstatat.c (rpl_fstatat): Copy recent fixes from lstat and
7468 * doc/posix-functions/fstatat.texi (fstatat): Document this.
7470 test-unlinkat: enhance test, to expose Solaris 9 bug
7471 * tests/test-unlink.c (main): Factor guts...
7472 * tests/test-unlink.h (test_rmdir_func): ...into new file.
7473 * tests/test-rmdir.h (test_rmdir_func): Add parameter.
7474 * tests/test-rmdir.c (main): Adjust caller.
7475 * tests/test-unlinkat.c (main): Likewise. Add unlink tests.
7476 (unlinker): New helper function.
7477 (rmdirat): Enhance check.
7478 * modules/rmdir-tests (Depends-on): Add stdbool.
7479 * modules/unlink-tests (Depends-on): Likewise.
7480 (Files): Add test-unlink.h.
7481 * modules/openat-tests (Files): Likewise.
7482 (Depends-on): Add unlinkdir.
7484 test-fstatat: new test, to expose Solaris 9 bugs
7485 * tests/test-stat.c (main): Factor guts...
7486 * tests/test-stat.h (test_stat_func): ...into new file.
7487 * tests/test-lstat.c (main): Factor guts...
7488 * tests/test-lstat.h (test_lstat_func): ...into new file.
7489 * tests/test-fstatat.c: New file.
7490 * modules/stat-tests (Files): Add test-stat.h.
7491 * modules/lstat-tests (Files): Add test-lstat.h.
7492 (Depends-on): Add stdbool.
7493 * modules/openat-tests (Depends-on): Add pathmax.
7494 (Files): Add test-lstat.h, test-stat.h, test-fstatat.c.
7495 (Makefile.am): Run new test.
7497 remove: new module, for mingw and Solaris 9 bugs
7498 * modules/remove: New file.
7499 * lib/remove.c: Likewise.
7500 * m4/remove.m4 (gl_FUNC_REMOVE): Likewise.
7501 * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add witnesses.
7502 * modules/stdio (Makefile.am): Use them.
7503 * lib/stdio.in.h (remove): Declare replacement.
7504 * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
7505 * doc/posix-functions/remove.texi (remove): Likewise.
7506 * modules/remove-tests: New test.
7507 * tests/test-remove.c: Likewise.
7509 unlink: new module, for Solaris 9 bug
7510 * modules/unlink: New file.
7511 * lib/unlink.c: Likewise.
7512 * m4/unlink.m4 (gl_FUNC_UNLINK): Likewise.
7513 * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
7514 * modules/unistd (Makefile.am): Use them.
7515 * lib/unistd.in.h (stat): Declare replacement.
7516 * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
7517 * doc/posix-functions/unlink.texi (unlink): Likewise.
7518 * modules/unlink-tests: New test.
7519 * tests/test-unlink.c: Likewise.
7521 lstat: fix Solaris 9 bug
7522 * lib/lstat.c (lstat): Also check for trailing slash on
7523 non-symlink, non-directories. Use stat module to simplify logic.
7524 * doc/posix-functions/lstat.texi (lstat): Document it.
7525 * modules/lstat-tests (Depends-on): Add errno, same-inode.
7526 (configure.ac): Check for symlink.
7527 * tests/test-lstat.c (main): Add more tests.
7529 stat: add as dependency to other modules
7530 * modules/chown (Depends-on): Add stat.
7531 * modules/euidaccess (Depends-on): Likewise.
7532 * modules/fchdir (Depends-on): Likewise.
7533 * modules/isdir (Depends-on): Likewise.
7534 * modules/link (Depends-on): Likewise.
7535 * modules/lstat (Depends-on): Likewise.
7536 * modules/mkdir-p (Depends-on): Likewise.
7537 * modules/modechange (Depends-on): Likewise.
7538 * modules/open (Depends-on): Likewise.
7539 * modules/readlink (Depends-on): Likewise.
7540 * modules/same (Depends-on): Likewise.
7542 stat: fix Solaris 9 bug
7543 * m4/stat.m4 (gl_FUNC_STAT): Detect Solaris 9 bug with trailing
7545 * lib/stat.c (rpl_stat): Work around it.
7546 * doc/posix-functions/stat.texi (stat): Update documentation.
7548 stat: new module, for mingw bug
7549 * modules/stat: New file.
7550 * lib/stat.c: Likewise.
7551 * m4/stat.m4 (gl_FUNC_STAT): Likewise.
7552 * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
7553 * modules/sys_stat (Makefile.am): Use them.
7554 * lib/sys_stat.in.h (stat): Declare replacement.
7555 * lib/openat.c (fstatat): Deal with lstat and stat being function
7557 * modules/openat (Depends-on): Add inline.
7558 * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
7559 * doc/posix-functions/stat.texi (stat): Likewise.
7560 * modules/stat-tests: New test.
7561 * tests/test-stat.c: Likewise.
7563 2009-09-19 Jim Meyering <meyering@redhat.com>
7565 syntax-check: detect unnecessary inclusion of canonicalize.h
7566 * top/maint.mk (sc_prohibit_canonicalize_without_use): New rule.
7568 2009-09-19 Eric Blake <ebb9@byu.net>
7570 canonicalize-lgpl: adjust clients to use correct header
7571 * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE)
7572 (gl_CANONICALIZE_LGPL): Use correct shell quoting.
7573 * modules/relocatable-prog-wrapper (Files): Drop canonicalize.h.
7574 * lib/fchdir.c (includes): Use <stdlib.h>, not "canonicalize.h".
7575 * lib/progreloc.c (includes): Likewise.
7577 2009-09-19 Jim Meyering <meyering@redhat.com>
7579 test-posixtm.c: correct a comment
7580 * tests/test-posixtm.c: Correct first-line comment.
7581 Spotted by Eric Blake.
7583 2009-09-16 Jim Meyering <meyering@redhat.com>
7585 posixtm-tests: make T const-correct; add a test case
7586 * tests/test-posixtm.c (T): Declare const.
7587 Add a test for -(2^31+1).
7588 Remove useless can-succeed-only-in-2002 test.
7590 posixtm-tests: adjust the sole failing test
7591 * tests/test-posixtm.c: Correct 0000-01-01 00:00:00 test so that
7592 expected output matches what mktime now produces. Cross-checked via
7593 erlang's calendar:datetime_to_gregorian_seconds({{1970,1,1},{0,0,0}})
7595 posixtm: move #ifdef'd tests into a new module
7596 * lib/posixtm.c (posixtime): Remove #ifdef'd tests. Move to...
7597 * tests/test-posixtm.c: ... this new file.
7598 * modules/posixtm-tests: New module.
7600 2009-09-19 Eric Blake <ebb9@byu.net>
7602 openat: simplify use of at-func.c
7603 * lib/at-func.c (includes): Include prerequisites here, to
7604 simplify requirements on client files.
7605 * lib/openat-priv.h: Add double-inclusion guard.
7606 * lib/faccessat.c (includes): Simplify.
7607 * lib/fchmodat.c (includes): Likewise.
7608 * lib/fchownat.c (includes): Likewise.
7609 * lib/mkdirat.c (includes): Likewise.
7610 * lib/mkfifoat.c (includes): Likewise.
7611 * lib/symlinkat.c (includes): Likewise.
7613 openat: allow return of fd 0
7614 * modules/chdir-long (Depends-on): Relax openat-safer to openat.
7615 * modules/save-cwd (Depends-on): Replace fcntl-safer with
7617 * lib/chdir-long.c (includes): Replace "fcntl--.h" with
7618 <fcntl.h>; this module does not leak fds.
7619 * lib/openat.c (includes): Do not use "fcntl_safer"; plain openat
7620 must be allowed to return 0, leaving openat_safer to add the
7622 (openat_permissive): Avoid writing to just-opened fd 2 if
7623 restoring the current directory fails.
7624 * lib/openat-die.c (openat_restore_fail): Add comment.
7625 * lib/save-cwd.c (includes): Make "fcntl--.h" conditional.
7626 (save_cwd): Guarantee safe fd, but without use of open_safer.
7627 * tests/test-openat.c: New test.
7628 * modules/openat-tests (Files, Makefile.am): Distribute and build
7631 relocatable-prog-wrapper: fix build
7632 * modules/relocatable-prog-wrapper (Files): Update name of
7633 canonicalize m4 file, broken on 2009-09-17.
7634 Reported by emad hajjar <aleppos@hotmail.com>.
7636 2009-09-19 Bruno Haible <bruno@clisp.org>
7638 * lib/safe-alloc.h: Use the standard header with GPL copyright.
7639 * lib/safe-alloc.c: Likewise.
7640 Reported by Ian Beckwith <ianb@erislabs.net>.
7642 2009-09-18 Bruno Haible <bruno@clisp.org>
7644 * gnulib-tool: Add advice to "cannot find configure.ac" error message.
7645 Reported by <erobles@sensacd.com.mx>.
7647 2009-09-17 Eric Blake <ebb9@byu.net>
7649 canonicalize: in CAN_ALL_BUT_LAST, allow trailing slash
7650 * lib/canonicalize.c (canonicalize_filename_mode): Skip trailing
7651 slashes when checking if last component is missing.
7652 * tests/test-canonicalize.c (main): Test this.
7654 canonicalize, canonicalize-lgpl: honor // if distinct from /
7655 * modules/canonicalize (Files): Add double-slash-root.m4.
7656 * modules/canonicalize-lgpl (Files): Likewise.
7657 * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE)
7658 (gl_CANONICALIZE_LGPL_SEPARATE): Add dependency.
7659 * lib/canonicalize.c (DOUBLE_SLASH_IS_DISTINCT_ROOT): Provide
7660 fallback definition.
7661 (canonicalize_filename_mode): Use it to protect //.
7662 * lib/canonicalize-lgpl.c (DOUBLE_SLASH_IS_DISTINCT_ROOT)
7663 (__realpath): Likewise.
7664 * tests/test-canonicalize.c (main): Test this.
7665 * tests/test-canonicalize-lgpl.c (main): Likewise.
7666 * modules/canonicalize-tests (Depends-on): Add same-inode.
7667 * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
7669 canonicalize-lgpl: fix glibc bug with trailing slash
7670 * m4/canonicalize-lgpl.m4: Move contents...
7671 * m4/canonicalize.m4: ...here.
7672 (gl_CANONICALIZE_LGPL): Factor realpath check...
7673 (gl_FUNC_REALPATH_WORKS): ...into new macro. Enhance to catch
7674 glibc 2.3.5 bug, fixed 2005-04-27.
7675 (gl_FUNC_CANONICALIZE_FILENAME_MODE): Use it.
7676 (gl_PREREQ_CANONICALIZE_LGPL): Inline...
7677 (gl_CANONICALIZE_LGPL_SEPARATE): ...into this macro.
7678 * modules/canonicalize-lgpl (Files): Manage file rename.
7679 * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide default.
7680 * modules/stdlib (Makefile.am): Substitute witness.
7681 * lib/stdlib.in.h (canonicalize_file_name): Declare if replacement
7683 * lib/canonicalize-lgpl.c: Also compile if canonicalize_file_name
7684 replacement is required.
7685 * lib/canonicalize.c (canonicalize_file_name): Likewise.
7686 * doc/glibc-functions/canonicalize_file_name.texi
7687 (canonicalize_file_name): Document this.
7688 * doc/posix-functions/realpath.texi (realpath): Likewise.
7690 canonicalize-lgpl: reject non-directory with trailing slash
7691 * lib/canonicalize-lgpl.c (__realpath): Synchronize with glibc.
7692 * tests/test-canonicalize-lgpl.c (main): Enhance test. This
7693 catches failures in glibc 2.3.5.
7694 * tests/test-canonicalize.c (main): Likewise.
7696 canonicalize-lgpl: use native realpath if it works
7697 * lib/canonicalize-lgpl.c (realpath): Guard with
7698 FUNC_REALPATH_WORKS.
7699 * lib/stdlib.in.h (realpath): Make declaration optional based on
7701 * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL): Check whether
7702 native realpath works.
7703 * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide default.
7704 * modules/stdlib (Makefile.am): Substitute witness.
7706 canonicalize, canonicalize-lgpl: use <stdlib.h>
7707 * modules/canonicalize-lgpl (Files): Drop canonicalize.h.
7708 (Include): Mention <stdlib.h>.
7709 (configure.ac): Mention functions we provide.
7710 * modules/canonicalize (configure.ac): Likewise.
7711 * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL): Always replace
7712 realpath if canonicalize_file_name is missing.
7713 * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide defaults.
7714 * modules/stdlib (Makefile.am): Substitute witnesses.
7715 * lib/stdlib.in.h (canonicalize_file_name, realpath): Declare.
7716 * lib/canonicalize-lgpl.c (includes): Adjust accordingly.
7717 * lib/canonicalize.h (canonicalize_file_name): Drop declaration.
7718 * NEWS: Document this.
7719 * doc/glibc-functions/canonicalize_file_name.texi
7720 (canonicalize_file_name): Likewise.
7721 * doc/posix-functions/realpath.texi (realpath): Likewise.
7722 * tests/test-canonicalize-lgpl.c (includes): Use <stdlib.h>.
7724 test-canonicalize: consolidate into single C program
7725 * tests/test-canonicalize.sh: Delete; move setup into...
7726 * tests/test-canonicalize.c (main): ...the program, making it
7727 easier to run in debugger. Add some tests.
7728 * modules/canonicalize-tests (Files): Remove unused file.
7729 (Depends-on): Add progname.
7730 (configure.ac, Makefile.am): Simplify.
7732 test-canonicalize-lgpl: consolidate into single C program
7733 * tests/test-canonicalize-lgpl.sh: Delete; move setup into...
7734 * tests/test-canonicalize-lgpl.c (main): ...the program, making it
7735 easier to run in debugger. Add some tests.
7736 * modules/canonicalize-lgpl-tests (Files): Remove unused file.
7737 (configure.ac, Makefile.am): Simplify.
7739 canonicalize: avoid resolvepath
7740 * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE): Delete
7742 * lib/canonicalize.c (includes): Simplify.
7743 (canonicalize_file_name): Drop resolvepath implementation.
7744 * modules/canonicalize (Depends-on): Drop filenamecat.
7746 canonicalize: don't lose errno
7747 * lib/canonicalize.c (canonicalize_filename_mode): Protect errno
7750 canonicalize: simplify errno handling
7751 * lib/canonicalize.c (__set_errno): Delete macro, and use direct
7754 canonicalize, canonicalize-lgpl: update module dependencies
7755 * modules/canonicalize (Depends-on): Add extensions, lstat,
7757 (Files): Drop pathmax.h.
7758 (configure.ac): Adjust macro name.
7759 * modules/canonicalize-lgpl (Depends-on): Add errno, extensions,
7760 lstat, stdlib, sys_stat.
7761 * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Rename...
7762 (gl_FUNC_CANONICALIZE_FILENAME_MODE): ...to this, and require
7764 * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL)
7765 (gl_CANONICALIZE_LGPL_SEPARATE): Require extensions.
7766 (gl_PREREQ_CANONICALIZE_LGPL): Assume unistd.h.
7767 * lib/canonicalize.h (canonicalize_file_name): Use <stdlib.h>
7768 declaration, if available.
7769 * lib/canonicalize-lgpl.c [HAVE_READLINK]: Delete this condition;
7770 we can rely on the readlink module.
7771 (MAXSYMLINKS): Also consult SYMLOOP_MAX.
7772 (includes): Use <unistd.h> unconditionally.
7774 2009-09-17 Eric Blake <ebb9@byu.net>
7776 maint: make Include sections of modules consistent
7777 * modules/alloca: Use only header name; no need to list #include.
7778 * modules/alloca-opt: Likewise.
7779 * modules/arpa_inet: Likewise.
7780 * modules/canon-host: Likewise.
7781 * modules/configmake: Likewise.
7782 * modules/dirent: Likewise.
7783 * modules/eealloc: Likewise.
7784 * modules/environ: Likewise.
7785 * modules/fchdir: Likewise.
7786 * modules/fcntl: Likewise.
7787 * modules/fcntl-h: Likewise.
7788 * modules/gethrxtime: Likewise.
7789 * modules/gettime: Likewise.
7790 * modules/ignore-value: Likewise.
7791 * modules/inet_ntop: Likewise.
7792 * modules/inet_pton: Likewise.
7793 * modules/inttypes: Likewise.
7794 * modules/isnand-nolibm: Likewise.
7795 * modules/isnanf-nolibm: Likewise.
7796 * modules/mbchar: Likewise.
7797 * modules/mbfile: Likewise.
7798 * modules/mbiter: Likewise.
7799 * modules/mbuiter: Likewise.
7800 * modules/netdb: Likewise.
7801 * modules/netinet_in: Likewise.
7802 * modules/nproc: Likewise.
7803 * modules/pagealign_alloc: Likewise.
7804 * modules/poll: Likewise.
7805 * modules/printf-frexp: Likewise.
7806 * modules/pthread: Likewise.
7807 * modules/putenv: Likewise.
7808 * modules/random_r: Likewise.
7809 * modules/relocatable-prog: Likewise.
7810 * modules/search: Likewise.
7811 * modules/select: Likewise.
7812 * modules/selinux-h: Likewise.
7813 * modules/settime: Likewise.
7814 * modules/signal: Likewise.
7815 * modules/size_max: Likewise.
7816 * modules/socklen: Likewise.
7817 * modules/ssize_t: Likewise.
7818 * modules/stdarg: Likewise.
7819 * modules/stdbool: Likewise.
7820 * modules/stddef: Likewise.
7821 * modules/stdint: Likewise.
7822 * modules/stdio: Likewise.
7823 * modules/stdlib: Likewise.
7824 * modules/string: Likewise.
7825 * modules/strings: Likewise.
7826 * modules/sys_file: Likewise.
7827 * modules/sys_ioctl: Likewise.
7828 * modules/sys_select: Likewise.
7829 * modules/sys_socket: Likewise.
7830 * modules/sys_stat: Likewise.
7831 * modules/sys_time: Likewise.
7832 * modules/sys_times: Likewise.
7833 * modules/sys_utsname: Likewise.
7834 * modules/sys_wait: Likewise.
7835 * modules/sysexits: Likewise.
7836 * modules/time: Likewise.
7837 * modules/times: Likewise.
7838 * modules/tmpfile: Likewise.
7839 * modules/trim: Likewise.
7840 * modules/unistd: Likewise.
7841 * modules/wchar: Likewise.
7842 * modules/wctype: Likewise.
7844 2009-09-17 Bruno Haible <bruno@clisp.org>
7846 Make getdate.y compile on QNX and NetBSD 5 / i386.
7847 * m4/getdate.m4 (gl_GETDATE): Conditionally define
7848 TIME_T_FITS_IN_LONG_INT.
7849 * lib/getdate.y (long_time_t): New type.
7850 (relative_time): Change type of 'seconds' field to long_time_t.
7851 (get_date): Update types of local variables. Check against overflow
7852 during conversion from long_time_t to time_t.
7853 Reported by Matt Kraai <kraai@ftbfs.org>
7854 and Hasso Tepper <hasso@netbsd.org>.
7856 2009-09-17 Bruno Haible <bruno@clisp.org>
7858 * modules/COPYING: Update copyright years.
7859 * modules/README: Likeiwse.
7860 * doc/gnulib-intro.texi (Copyright): Use a wildcard year.
7861 Reported by Ian Beckwith <ianb@erislabs.net>.
7863 2009-09-17 Ian Beckwith <ianb@erislabs.net> (tiny change)
7865 * users.txt: Update references for gnuit package.
7867 2009-09-17 Ian Beckwith <ianb@erislabs.net> (tiny change)
7869 * m4/getdelim.m4: Fix typo in copyright line.
7871 2009-09-17 Bruno Haible <bruno@clisp.org>
7873 * lib/atoll.c: Use the standard header with GPL copyright.
7874 * lib/argz.in.h: Likewise.
7875 * lib/glob.c: Likewise.
7876 * lib/glob-libc.h: Likewise.
7877 * lib/random_r.c: Likewise.
7878 * lib/siglist.h: Likewise.
7879 * lib/strsignal.c: Likewise.
7880 Reported by Ian Beckwith <ianb@erislabs.net>.
7882 2009-09-17 Eric Blake <ebb9@byu.net>
7884 rmdir: ensure correct dependency order
7885 * m4/rmdir.m4 (gl_FUNC_RMDIR): Require unistd defaults.
7887 2009-09-17 Bruno Haible <bruno@clisp.org>
7889 Disable assertion that fails on NetBSD 5 / i386.
7890 * lib/mktime.c (ydhms_diff): Disable assertion about time_t size.
7891 Reported by Sam Steingold <sds@gnu.org>
7892 and Hasso Tepper <hasso@netbsd.org>.
7894 2009-09-16 Eric Blake <ebb9@byu.net>
7896 unlinkdir: port to mingw
7897 * m4/unlinkdir.m4 (gl_UNLINKDIR): Add mingw to list of platforms
7898 on which no one can unlink a directory.
7900 stdlib: sort witness names
7901 * modules/stdlib (Makefile.am): Sort replacements.
7902 * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Likewise.
7903 * lib/stdlib.in.h: Likewise.
7905 parse-duration-tests: avoid link failure
7906 * modules/parse-duration-tests (test_parse_duration_LDADD): Add
7908 Reported by Tom G. Christensen.
7910 openat-tests: ensure unlinkat behaves like rmdir
7911 * tests/test-rmdir.c (main): Factor guts...
7912 * tests/test-rmdir.h (test_rmdir_func): ...into new file.
7913 * modules/rmdir-tests (Files): Ship new file.
7914 * modules/openat-tests: New test.
7915 * tests/test-unlinkat.c: Likewise.
7917 rmdir-errno: mark obsolete, it is unsafe for cross-compilation
7918 * modules/rmdir-errno (Status, Notice): Now obsolete.
7920 rmdir: work around cygwin 1.5.x and mingw bugs
7921 * m4/rmdir.m4 (gl_FUNC_RMDIR): Detect the bugs.
7922 * lib/rmdir.c (rmdir): Work around it.
7923 * modules/rmdir (Status, Notice): No longer obsolete.
7924 (Files): Add dos.m4.
7925 (Depends-on): Add unistd.
7926 (configure.ac): Set witnesses.
7927 (License): Relax to LGPLv2+.
7928 * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set defaults.
7929 * modules/unistd (Makefile.am): Substitute witnesses.
7930 * lib/unistd.in.h (rmdir): Declare replacement.
7931 * doc/posix-functions/rmdir.texi (rmdir): Document this.
7932 * modules/rmdir-tests: New tests.
7933 * tests/test-rmdir.c: Likewise.
7935 2009-09-15 Eric Blake <ebb9@byu.net>
7937 fchdir: improve use of replacement functions
7938 * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set appropriate witnesses.
7939 * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add REPLACE_FSTAT.
7940 * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Add REPLACE_OPENDIR,
7942 * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add REPLACE_DUP.
7943 * modules/sys_stat (Makefile.am): Substitute correct witness.
7944 * modules/dirent (Makefile.am): Likewise.
7945 * modules/unistd (Makefile.am): Likewise.
7946 * lib/dirent.in.h (opendir, closedir): Use better witnesses.
7947 * lib/unistd.in.h (dup): Likewise.
7948 * lib/sys_stat.in.h (fstat): Likewise.
7950 maint: ignore gnulib-tool temp files
7951 * .gitignore: Ignore files created during gnulib-tool --test.
7953 2009-09-13 Jim Meyering <meyering@redhat.com>
7955 posixtm: don't reject a time that specify "60" as the number of seconds
7956 * lib/posixtm.c (posixtime): The code to reject invalid dates
7957 would also reject a time specified with the .60 suffix.
7958 But POSIX allows that, in order to accommodate leap seconds.
7960 (main): Adjust tests accordingly.
7961 * modules/posixtm (Depends-on): Add stpcpy.
7963 2009-09-11 Jim Meyering <meyering@redhat.com>
7965 announce-gen: include [$release_type] in emitted Subject:
7966 * build-aux/announce-gen (get_tool_versions): Include [$release_type],
7967 e.g., [stable] in the emitted Subject: line.
7969 2009-09-10 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
7971 Remove obsolete macros from several modules.
7972 * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Replace
7973 obsolete Autoconf macros with their modern counterparts.
7974 * m4/check-math-lib.m4 (gl_CHECK_MATH_LIB): Likewise.
7975 * m4/gc-camellia.m4 (gl_GC_CAMELLIA): Likewise.
7976 * m4/getaddrinfo.m4 (gl_GETADDRINFO): Likewise.
7977 * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Likewise.
7978 * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Likewise.
7979 * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
7980 * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
7981 * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
7982 * m4/poll.m4 (gl_FUNC_POLL): Likewise.
7983 * m4/readline.m4 (gl_FUNC_READLINE): Likewise.
7984 * m4/round.m4 (gl_FUNC_ROUND): Likewise.
7985 * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
7986 * m4/select.m4 (gl_FUNC_SELECT): Likewise.
7987 * m4/sockets.m4 (gl_SOCKETS): Likewise.
7988 * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Likewise.
7989 * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Likewise.
7990 * m4/sysexits.m4 (gl_SYSEXITS): Likewise.
7991 * m4/time_r.m4 (gl_TIME_R): Likewise.
7992 * m4/tsearch.m4 (gl_FUNC_TSEARCH): Likewise.
7993 * m4/vararrays.m4 (AC_C_VARARRAYS): Likewise.
7994 * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
7996 Fix copyright header in build-aux scripts.
7997 * build-aux/git-version-gen: Fix copyright header to match GPLv3
7999 * build-aux/ncftpput-ftp: Likewise.
8000 * build-aux/update-copyright: Likewise.
8002 2009-09-09 Eric Blake <ebb9@byu.net>
8004 test-link: allow Linux choice of errno
8005 * tests/test-link.c (main): Relax test for alternate error.
8007 strndup: fix improper m4 caching
8008 * m4/strndup.m4 (gl_FUNC_STRNDUP): Rework to avoid side effects
8009 inside AC_CACHE_CHECK. Use REPLACE_STRNDUP, not HAVE_STRNDUP.
8010 (gl_PREREQ_STRNDUP): Delete.
8011 * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Update default.
8012 * modules/string (Makefile.am): Substitute it.
8013 * lib/string.in.h (strndup): Modernize prototype.
8015 getcwd: port to mingw
8016 * m4/getcwd.m4 (gl_FUNC_GETCWD): Mingw directories are very
8017 different from the POSIX assumptions made throughout the getcwd
8018 module; fortunately, the mingw getcwd does not need replacement.
8019 (gl_FUNC_GETCWD_NULL): Skip test on mingw.
8020 * modules/getcwd-tests: New test.
8021 * tests/test-getcwd.c: Likewise.
8023 link: fix platform bugs
8024 * m4/link.m4 (gl_FUNC_LINK): Detect Solaris and Cygwin bugs.
8025 * lib/link.c (link): Work around them. Fix related mingw bug.
8026 * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add REPLACE_LINK.
8027 * modules/unistd (Makefile.am): Substitute it.
8028 * lib/unistd.in.h (link): Declare replacement.
8029 * doc/posix-functions/link.texi (link): Document this.
8030 * modules/link (Depends-on): Add strdup-posix, sys_stat.
8032 test-link: consolidate into single C program, test more cases
8033 * tests/test-link.sh: Delete.
8034 * tests/test-link.c: Test more error conditions. Exposes bugs on
8035 at least Cygwin and Solaris.
8036 * modules/link-tests (Files): Remove unused file.
8037 (Depends-on): Add errno, sys_stat.
8038 (Makefile.am): Simplify.
8040 2009-09-08 Bruno Haible <bruno@clisp.org>
8042 Work around towlower, towupper bug on mingw.
8043 * lib/wctype.in.h (towlower, towupper) [__MINGW32__]: New replacements.
8044 * m4/wctype.m4 (gl_WCTYPE_H): Replace <wctype.h> also on mingw.
8045 * doc/posix-functions/towlower.texi: Mention the mingw bug.
8046 * doc/posix-functions/towupper.texi: Likewise.
8047 Reported by Eric Blake.
8049 2009-09-08 Jim Meyering <meyering@redhat.com>
8051 build: don't try to run autoheader if we don't use it
8052 * build-aux/bootstrap: Define AUTOHEADER=true when AC_CONFIG_HEADERS
8053 is not used in configure.ac.
8055 2009-09-08 Eric Blake <ebb9@byu.net>
8057 euidaccess: fix compilation error
8058 * lib/euidaccess.c (includes): Add <fcntl.h>, for AT_EACCESS.
8060 rawmemchr: relax license
8061 * modules/rawmemchr (License): Derived from glibc, so LGPLv2+ is
8063 Reported by Jim Meyering.
8065 mkfifoat: new module
8066 * modules/mkfifoat: New file.
8067 * lib/mkfifoat.c: Likewise.
8068 * m4/mkfifoat.m4 (gl_FUNC_MKFIFOAT): Likewise.
8069 * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
8070 * modules/sys_stat (Makefile.am): Use them.
8071 * lib/sys_stat.in.h (mkfifoat, mknodat): Declare them.
8072 * MODULES.html.sh (File system functions): Mention module.
8073 * doc/posix-functions/mkfifoat.texi (mkfifoat): Likewise.
8074 * doc/posix-functions/mknodat.texi (mknodat): Likewise.
8075 * modules/mkfifoat-tests: New test.
8076 * tests/test-mkfifoat.c: Likewise.
8078 strchrnul: relax license
8079 * modules/strchrnul (License): Derived from glibc, so LGPLv2+ is
8081 Reported by Jim Meyering.
8083 2009-09-08 Eric Blake <ebb9@byu.net>
8085 fstatat: fix compilation on Solaris
8086 * lib/fstatat.c (includes): Add fcntl.h.
8087 Reported by Pádraig Brady.
8089 2009-09-07 Eric Blake <ebb9@byu.net>
8091 rename: modernize replacement
8092 * modules/rename (Depends-on): Add stdio.
8093 (configure.ac): Declare witness.
8094 * m4/rename.m4 (gl_FUNC_RENAME): Ensure dependency order, and let
8095 stdio take care of replacement.
8096 * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add new defaults.
8097 * modules/stdio (Makefile.am): Substitute them.
8098 * lib/stdio.in.h (rename): Declare replacement.
8099 * lib/rename.c (includes): Allow cross-compilation to non-windows
8101 * doc/posix-functions/rename.texi (rename): Improve
8104 stdio: sort witness names
8105 * modules/stdio (Makefile.am): Sort replacements.
8106 * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
8107 * lib/stdio.in.h: Likewise.
8109 getcwd: minor cleanups
8110 * lib/getcwd.c (AT_FDCWD): Delete; rely on <fcntl.h> instead.
8111 (is_ENAMETOOLONG): Delete; ENAMETOOLONG is portable.
8113 openat: provide more convenience names
8114 * modules/faccessat (configure.ac): Add C witness.
8115 * lib/unistd.in.h (readlinkat): Fix typo.
8116 * lib/openat.h (statat, lstatat, accessat, euidaccessat): New
8117 convenience wrappers.
8118 * top/maint.mk (sc_prohibit_openat_without_use): Allow these
8119 wrappers in syntax checks.
8121 2009-09-06 Eric Blake <ebb9@byu.net>
8123 doc: fix comments in recent patches
8124 * lib/faccessat.c: Mention correct function.
8125 * lib/fchmodat.c: Likewise.
8126 * lib/fchownat.c: Likewise.
8127 * lib/symlinkat.c: Likewise.
8128 * doc/posix-headers/fcntl.texi (fcntl.h): Cygwin 1.7 has AT_*
8131 faccessat, symlinkat: continue cleanup of previous patch
8132 * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Ensure dependency order.
8133 * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Likewise.
8134 * modules/unistd (Makefile.am): Substitute GNULIB_READLINKAT.
8135 * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Offer GNULIB_READLINKAT.
8136 * modules/symlinkat (configure.ac): Set GNULIB_READLINKAT.
8137 * lib/unistd.in.h (readlinkat): Declare if GNULIB_READLINKAT is
8140 2009-09-06 Bruno Haible <bruno@clisp.org>
8142 * lib/sys_stat.in.h (fchmodat): Declare if GNULIB_FCHMODAT is set.
8143 (fstatat): Declare if GNULIB_FSTATAT is set.
8144 (mkdirat): Declare if GNULIB_MKDIRAT is set.
8145 * lib/unistd.in.h (fchownat): Declare if GNULIB_FCHOWNAT is set.
8146 (unlinkat): Declare if GNULIB_UNLINKAT is set.
8147 * modules/fcntl-h (Files): Remove m4/openat.m4.
8148 * modules/sys_stat (Files): Remove m4/openat.m4.
8149 (Makefile.am): Substitute GNULIB_FCHMODAT, GNULIB_FSTATAT,
8150 GNULIB_MKDIRAT instead of GNULIB_OPENAT.
8151 * modules/unistd (Files): Remove m4/openat.m4.
8152 (Makefile.am): Substitute GNULIB_FCHOWNAT, GNULIB_UNLINKAT instead of
8154 * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Initialize GNULIB_OPENAT,
8155 HAVE_OPENAT here. Don't require gl_OPENAT_DEFAULTS.
8156 * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize
8157 GNULIB_FCHMODAT, GNULIB_FSTATAT, GNULIB_MKDIRAT, HAVE_FCHMODAT,
8158 HAVE_FSTATAT, HAVE_MKDIRAT, REPLACE_FSTATAT here. Don't require
8160 * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_FCHOWNAT,
8161 GNULIB_UNLINKAT, HAVE_FCHOWNAT, HAVE_UNLINKAT, REPLACE_FCHOWNAT here.
8162 Don't require gl_OPENAT_DEFAULTS.
8163 * m4/openat.m4 (gl_FUNC_OPENAT): Require gl_FCNTL_H_DEFAULTS,
8164 gl_SYS_STAT_H_DEFAULTS, gl_UNISTD_H_DEFAULTS. Set GNULIB_FCHMODAT,
8165 GNULIB_FSTATAT, GNULIB_MKDIRAT, GNULIB_FCHOWNAT, GNULIB_UNLINKAT.
8166 (gl_OPENAT_DEFAULTS): Remove macro.
8168 2009-09-06 Bruno Haible <bruno@clisp.org>
8170 * modules/openat (configure.ac): Remove unneeded witness.
8172 2009-09-06 Bruno Haible <bruno@clisp.org>
8174 Set errno to ENOSYS when a function is entirely unsupported.
8175 * lib/chown.c (rpl_chown) [!HAVE_CHOWN]: Set errno to ENOSYS instead of
8177 * lib/lchown.c (lchown) [!HAVE_CHOWN]: Likewise.
8178 * modules/chown (Depends-on): Remove errno.
8180 2009-09-06 Bruno Haible <bruno@clisp.org>
8182 * doc/posix-headers/fcntl.texi (AT_*): Mention affected platforms.
8184 2009-09-06 Bruno Haible <bruno@clisp.org>
8186 * lib/sys_stat.in.h: Fix preprocessor command indentation.
8188 2009-09-06 Ben Pfaff <blp@gnu.org>
8189 Bruno Haible <bruno@clisp.org>
8191 Work around a glibc bug in strtok_r.
8192 * lib/string.in.h (strtok_r): Replace if REPLACE_STRTOK_R is set.
8193 Undefine if UNDEFINE_STRTOK_R is set.
8194 * lib/strtok_r.c (strtok_r, __strtok_r) [!_LIBC]: Don't undefine.
8195 * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
8196 REPLACE_STRTOK_R and UNDEFINE_STRTOK_R.
8197 * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Check against the glibc bug.
8198 * modules/string (Makefile.am): Substitute REPLACE_STRTOK_R,
8200 * doc/posix-functions/strtok_r.texi: Mention the glibc 2.7 bug.
8202 2009-09-06 Sergey Poznyakoff <gray@gnu.org.ua>
8205 * lib/exclude.c: Include wctype.h
8207 2009-09-06 Akim Demaille <demaille@gostai.com>
8209 bootstrap: improve error message
8210 * build-aux/bootstrap (find_tool): Upon failure, report the list
8212 Honor the initial value of the envvar.
8214 2009-09-05 Eric Blake <ebb9@byu.net>
8216 symlinkat: new module
8217 * modules/symlinkat: New file.
8218 * lib/symlinkat.c: Likewise.
8219 * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Likewise.
8220 * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
8221 * modules/unistd (Makefile.am): Use them.
8222 * lib/unistd.in.h (symlinkat, readlinkat): Declare them.
8223 (faccessat) [GNULIB_POSIXCHECK]: Fix typo.
8224 * lib/at-func.c (FUNC_RESULT): New macro, defaulting to int.
8225 * MODULES.html.sh (File system functions): Mention module.
8226 * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
8227 * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
8228 * modules/symlinkat-tests: New test.
8229 * tests/test-symlinkat.c: Likewise.
8231 test-openat-safer: add more checks
8232 * tests/test-openat-safer.c (main): Check more code paths.
8234 2009-09-05 Jim Meyering <meyering@redhat.com>
8236 syntax-check: detect unnecessary inclusion of openat.h
8237 * top/maint.mk (sc_prohibit_openat_without_use): New rule.
8239 2009-09-05 Bruno Haible <bruno@clisp.org>
8241 Support towlower, towupper.
8242 * doc/posix-functions/towlower.texi: Mention module wctype.
8243 * doc/posix-functions/towupper.texi: Likewise.
8244 * lib/wctype.in.h (towlower, towupper): New functions.
8245 * tests/test-wctype.c: Include stdio.h, stdlib.h.
8246 (ASSERT): New macro.
8248 (main): Test also towlower, towupper. Test WEOF argument.
8249 Reported by Alan Hourihane <alanh@fairlite.co.uk>.
8251 2009-09-05 Bruno Haible <bruno@clisp.org>
8253 Fix conversion behaviour when the input is invalid.
8254 * lib/striconveh.c (mem_cd_iconveh_internal): Fix storing of question
8255 mark occurring in first pass of indirect conversion.
8256 * tests/test-striconveh.c (main): Test conversion of invalid ASCII
8258 Found by clang's static analyzer.
8260 2009-09-05 Bruno Haible <bruno@clisp.org>
8262 * tests/test-striconveh.c (main): Test indirect conversion on platforms
8263 where direct conversion is possible.
8265 2009-09-04 Eric Blake <ebb9@byu.net>
8267 openat: fail with ENOENT on empty name
8268 * lib/openat-proc.c (openat_proc_name): Special-case the empty
8271 link-follow: fix logic bug in prior patch
8272 * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Fix bug that
8273 reversed sense of yes and no in prior patch. Avoid confusing
8274 compilation failure with desired semantics.
8276 link-follow: accomodate mingw and cross-compilation
8277 * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Rename...
8278 (gl_FUNC_LINK_FOLLOWS_SYMLINK): ...to this. Change
8279 cross-compilation results to -1, to make linkat easier to
8280 implement when cross-compiling. Trivially support mingw.
8281 * modules/link-follow (configure.ac): Call new name.
8282 * NEWS: Mention this.
8284 2009-09-03 Eric Blake <ebb9@byu.net>
8286 faccessat: compile replacement
8287 * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Build replacement when
8290 fts: fix compilation error
8291 * lib/fts.c (includes): Re-add "openat.h", for
8292 openat_needs_fchdir.
8294 faccessat: new module
8295 * modules/faccessat: New file.
8296 * lib/faccessat.c: Likewise.
8297 * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Likewise.
8298 * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
8299 * modules/unistd (Makefile.am): Use it.
8300 * lib/unistd.in.h (faccessat): Declare it.
8301 (F_OK, X_OK, W_OK, R_OK): Provide definitions.
8302 * lib/fcntl.in.h (AT_SYMLINK_FOLLOW, AT_EACCESS): Likewise.
8303 * MODULES.html.sh (File system functions): Mention it.
8304 * doc/posix-functions/faccessat.texi (faccessat): Likewise.
8305 * doc/posix-headers/fcntl.texi (fcntl.h): Likewise.
8307 euidaccess: prefer POSIX over non-standard implementation
8308 * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Check for faccessat.
8309 * lib/euidaccess.c (euidaccess): Use it if available.
8311 openat: make template easier to use
8312 * lib/at-func.c (CALL_FUNC): Allow AT_FUNC_USE_F1_COND and
8313 AT_FUNC_F2 to be undefined.
8314 (VALIDATE_FLAG): New macro; use it to reject bad flags.
8315 (AT_FUNC_USE_F1_COND): Change sense to just flag bit.
8316 * lib/fchmodat.c (AT_FUNC_USE_F1_COND): Adjust.
8317 * lib/fchownat.c (AT_FUNC_USE_F1_COND): Likewise.
8318 * lib/openat.c (AT_FUNC_USE_F1_COND) [fstatat, unlinkat]:
8320 * lib/mkdirat.c (AT_FUNC_F2, AT_FUNC_USE_F1_COND): Delete.
8321 * lib/selinux-at.c (AT_FUNC_F2, AT_FUNC_USE_F1_COND)
8322 [getfileconat, lgetfileconat, setfileconat, lsetfileconat]:
8325 openat: declare in POSIX headers
8326 * NEWS: Mention this.
8327 * modules/openat (configure.ac): Declare witnesses.
8328 (Depends-on): Add fcntl-h, sys_stat, unistd.
8329 (Include): Mention correct headers.
8330 * modules/fcntl-h (Depends-on): Add link-warning.
8331 (Files): Add openat.m4.
8332 (Makefile.am): Substitute witnesses.
8333 * modules/sys_stat (Files, Makefile.am): Likewise.
8334 * modules/unistd (Files, Makefile.am): Likewise.
8335 * m4/openat.m4 (gl_FUNC_OPENAT, gl_FUNC_FCHOWNAT): Set witnesses.
8336 (gl_OPENAT_DEFAULTS): New macro.
8337 * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Use it.
8338 * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Likewise.
8339 * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Likewise.
8340 (SYS_STAT_H): Remove unused variable.
8341 * doc/posix-headers/fcntl.texi (fcntl.h): Update content.
8342 * lib/fcntl--.h (includes): Remove unneeded header.
8343 * lib/openat-safer.c (includes): Likewise.
8344 * lib/openat.h (AT_FDCWD, AT_SYMLINK_NOFOLLOW, AT_REMOVEDIR)
8345 (openat, fstatat, unlinkat, mkdirat, fchmodat, fchownat): Move to
8346 appropriate headers.
8347 (__OPENAT_PREFIX): Delete.
8348 * lib/fcntl.in.h (openat): Provide declaration.
8349 (AT_FDCWD): Fix Solaris bug.
8350 (AT_SYMLINK_NOFOLLOW, AT_REMOVEDIR): Provide macros.
8351 * lib/sys_stat.in.h (fstatat, mkdirat): Provide declaration.
8352 * lib/fchmodat.c (includes): Adjust to find declaration.
8353 * lib/fchownat.c (includes): Likewise.
8354 * lib/mkdirat.c (includes): Likewise.
8355 * lib/fstatat.c (includes): Likewise. Ensure original fstatat is
8358 2009-09-02 Eric Blake <ebb9@byu.net>
8360 errno: use consistently
8361 * lib/c-stack.c (ENOTSUP): <errno.h> guarantees a definition.
8362 * lib/canonicalize-lgpl.c (ENAMETOOLONG): Likewise.
8363 * lib/canonicalize.c (ELOOP): Likewise.
8364 * lib/inet_ntop.c (EAFNOSUPPORT): Likewise.
8365 * lib/inet_pton.c (EAFNOSUPPORT): Likewise.
8366 * lib/lchown.c (EOPNOTSUPP): Likewise.
8367 * lib/openat-priv.h (ENOSYS, EOPNOTSUPP): Likewise.
8368 * lib/savewd.c (ESTALE): Likewise.
8369 * lib/settime.c (ENOSYS): Likewise.
8370 * lib/utimens.c (ENOSYS): Likewise.
8371 * lib/xgethostname.c (ENAMETOOLONG): Likewise.
8372 * lib/chdir-safer.c (ELOOP): Likewise.
8373 (chdir_no_follow): Use HAVE_READLINK, not ELOOP, as witness.
8374 * modules/c-stack (Depends-on): Add errno.
8375 * modules/canonicalize (Depends-on): Likewise.
8376 * modules/chdir-safer (Depends-on): Likewise.
8377 * modules/fdopendir (Depends-on): Likewise.
8378 * modules/inet_ntop (Depends-on): Likewise.
8379 * modules/inet_pton (Depends-on): Likewise.
8380 * modules/lchown (Depends-on): Likewise.
8381 * modules/openat (Depends-on): Likewise.
8382 * modules/savewd (Depends-on): Likewise.
8383 * modules/settime (Depends-on): Likewise.
8384 * m4/chdir-safer.m4 (gl_CHDIR_SAFER): Check for readlink.
8386 fts: avoid leaking fds
8387 * modules/fts (Depends-on): Add cloexec.
8388 * lib/fts.c (opendirat, diropen, fts_build): Set close-on-exec
8391 fts: make directory fds more robust
8392 * lib/fts.c (O_DIRECTORY): Let <fcntl.h> take care of this.
8393 (opendirat): Specify O_DIRECTORY, and add fallbacks for safety.
8395 backupfile, chdir-long, fts, savedir: make safer
8396 * lib/backupfile.c (includes): Use "dirent--.h", since
8397 numbered_backup can write to stderr during readdir.
8398 * lib/savedir.c (includes): Likewise.
8399 * lib/chdir-long.c (includes): Use "fcntl--.h", since openat
8400 emulation can write to stderr on failure.
8401 * lib/fts.c (includes) [!_LIBC]: Likewise for opendir and openat.
8402 * lib/getcwd.c: Document why opendir_safer is unused.
8403 * lib/glob.c: Likewise.
8404 * lib/scandir.c: Likewise.
8405 * lib/openat-proc.c: Likewise, for open_safer.
8406 * modules/backupfile (Depends-on): Add dirent-safer.
8407 * modules/savedir (Depends-on): Likewise.
8408 * modules/fts (Depends-on): Add dirent-safer and openat-safer.
8409 * modules/chdir-long (Depends-on): Add openat-safer.
8411 openat-safer: new module
8412 * modules/openat-safer: New file.
8413 * lib/openat-safer.c: Likewise.
8414 * m4/fcntl-safer.m4 (gl_OPENAT_SAFER): New macro.
8415 * lib/fcntl-safer.h (openat_safer): Declare.
8416 * lib/fcntl--.h (openat): Override.
8417 * MODULES.html.sh (File descriptor based I/O): Mention it.
8418 * lib/openat.h: Add double-inclusion guards.
8419 * lib/openat.c (includes): Only include "fcntl-safer.h", not
8420 "fcntl--.h", so we can implement openat.
8421 * modules/openat-safer-tests: New test.
8422 * tests/test-openat-safer.c: New file.
8424 dirent-safer: new module
8425 * modules/dirent-safer: New file.
8426 * lib/dirent--.h: Likewise.
8427 * lib/dirent-safer.h: Likewise.
8428 * lib/opendir-safer.c: Likewise.
8429 * m4/dirent-safer.m4: Likewise.
8430 * MODULES.html.sh (Enhancements for POSIX:2008): Mention it.
8431 * modules/dirent-safer-tests: New test.
8432 * tests/test-dirent-safer.c: New file.
8433 * lib/fdopendir.c (includes): Ensure fdopendir is also safe.
8435 fdopendir: optimize on mingw
8436 * lib/unistd.in.h (_gl_directory_name): New prototype.
8437 * lib/fchdir.c (_gl_directory_name): Implement it.
8438 (fchdir): Use it to simplify implementation.
8439 * lib/fdopendir.c (fdopendir) [REPLACE_FCHDIR]: Use metadata from
8440 fchdir, when available, to avoid calling [f]chdir().
8442 fdopendir: split into its own module
8443 * lib/openat.c (fdopendir): Move...
8444 * lib/fdopendir.c: ...into new file.
8445 * modules/fdopendir: New module.
8446 * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): New file.
8447 * modules/openat (Depends-on): Add fdopendir.
8448 * m4/openat.m4 (gl_FUNC_OPENAT): No longer need to check for
8450 * modules/savedir (Depends-on): Only need fdopendir, not full
8452 * lib/savedir.c (include): Use <dirent.h>, not "openat.h".
8453 * lib/openat.h (fdopendir): Drop prototype.
8454 * lib/dirent.in.h (fdopendir): Provide prototype.
8455 * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Add replacements.
8456 * modules/dirent (Makefile.am): Substitute them.
8457 * MODULES.html.sh (File system functions): Mention it.
8458 * doc/posix-functions/fdopendir.texi (fdopendir): Likewise.
8459 * modules/fdopendir-tests: New file.
8460 * tests/test-fdopendir.c: Likewise.
8462 fchdir: use more consistent macro convention
8463 * lib/fcntl.in.h (_gl_register_fd): Move declaration to unistd.
8464 * lib/sys_stat.in.h (rpl_fstat): Declare via make-time
8465 REPLACE_FCHDIR, rather than relying on config.h macros.
8466 * lib/unistd.in.h (fchdir): Move all fchdir internal declarations
8467 inside a single make-time REPLACE_FCHDIR block, rather than using
8468 the config.h FCHDIR_REPLACEMENT.
8469 * m4/fchdir.m4 (gl_FUNC_FCHDIR): REPLACE_FCHDIR was already
8470 AC_SUBST'd, also AC_DEFINE it. Don't define FCHDIR_REPLACEMENT.
8471 Manage fstat replacement.
8472 * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Pick up
8474 * modules/sys_stat (Files): Add m4/unistd_h.m4.
8475 (Makefile.am): Substitute REPLACE_FCHDIR.
8476 * lib/close.c (rpl_close): Use REPLACE_FCHDIR, not
8478 * lib/dup-safer.c (dup_safer): Likewise.
8479 * lib/dup2.c (rpl_dup2): Likewise.
8480 * lib/dup3.c (rpl_dup3): Likewise.
8481 * lib/open.c (rpl_open): Likewise.
8483 fchdir: simplify error handling, and support dup3
8484 * modules/fchdir (Depends-on): Use strdup-posix, not strdup. Add
8485 stdbool, malloc-posix, realloc-posix.
8486 * lib/fchdir.c (struct dir_info_t): Delete saved_errno.
8487 (ensure_dirs_slot): Return false on allocation failure.
8489 (_gl_register_dup): New function.
8490 (_gl_unregister_fd, rpl_opendir, rpl_dup): Update callers.
8491 (_gl_register_fd): Close fd on allocation failure.
8492 * lib/fcntl.in.h (_gl_register_fd): Update signature.
8493 * lib/unistd.in.h (_gl_register_dup) [FCHDIR_REPLACEMENT]: New
8495 (rpl_dup2_fchdir): Delete prototype.
8496 * lib/open.c (open): Update caller.
8497 * lib/dup2.c (dup2): Track fchdir metadata.
8498 * lib/dup3.c (dup3): Likewise.
8499 * m4/dup2.m4 (gl_REPLACE_DUP2): New macro.
8500 * m4/fchdir.m4 (gl_FUNC_FCHDIR): Use it.
8502 2009-09-02 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
8504 * gnulib-tool (func_create_testdir, func_create_megatestdir): Use
8505 AC_CONFIG_HEADERS instead of AM_CONFIG_HEADER. Use AC_CONFIG_FILES and
8506 don't pass arguments to AC_OUTPUT.
8508 2009-09-02 Bruno Haible <bruno@clisp.org>
8510 * modules/mkdtemp (License): Relicense under LGPLv2+.
8511 Reported by Paolo Bonzini.
8513 2009-09-02 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
8515 Replace uses of obsolete autoconf macros in Jim's modules.
8516 The Autoconf macros AC_TRY_CPP, AC_TRY_COMPILE, AC_TRY_LINK and
8517 AC_TRY_RUN have been obsolete since Autoconf 2.55, and each use
8518 can evoke a warning from autoconf when run with -Wobsolete
8519 enabled. They were declared obsolete for good reasons (see
8520 the `AC_FOO_IFELSE vs AC_TRY_FOO' node in the Autoconf manual,
8521 recently renamed to `AC_ACT_IFELSE vs AC_TRY_ACT'), and we
8522 should not continue using the deprecated macros.
8523 * m4/d-type.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Replace
8524 obsolete Autoconf macros with modern counterparts.
8525 * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
8526 * m4/dos.m4 (gl_AC_DOS): Likewise.
8527 * m4/fpending.m4 (gl_FUNC_FPENDING): Likewise.
8528 * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Likewise.
8529 * m4/getloadavg.m4 (gl_PREREQ_GETLOADAVG): Likewise.
8530 * m4/jm-winsz1.m4 (gl_WINSIZE_IN_PTEM): Likewise.
8531 * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Likewise.
8532 * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Likewise.
8533 * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Likewise.
8534 * m4/mode_t.m4 (gl_PROMOTED_TYPE_MODE_T): Likewise.
8535 * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH):
8537 * m4/rename.m4 (gl_FUNC_RENAME): Likewise.
8538 * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Likewise.
8539 * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Likewise.
8540 * m4/st_dm_mode.m4 (AC_STRUCT_ST_DM_MODE): Likewise.
8541 * m4/stat-time.m4 (gl_STAT_TIME): Likewise.
8542 * m4/utimes-null.m4 (gl_FUNC_UTIMES_NULL): Likewise.
8544 2009-09-01 Eric Blake <ebb9@byu.net>
8546 fchdir: fix off-by-one bug in previous patch
8547 * lib/fchdir.c (rpl_fstat): Use correct bounds.
8548 (_gl_unregister_fd): Delete useless if.
8550 2009-09-01 Daniel P. Berrange <berrange@redhat.com>
8552 maint.mk: sort the list of syntax-check rules
8553 * top/maint.mk (syntax-check-rules): Sort syntax-check rules, so it's
8554 easier to get a sense of progress when the rules are run sequentially
8555 and take a long time.
8557 2009-09-01 Simon Josefsson <simon@josefsson.org>
8559 * modules/arpa_inet: Use $(MKDIR_P) instead of @MKDIR_P@.
8560 * modules/netinet_in: Likewise.
8561 * modules/sys_file: Likewise.
8562 * modules/sys_ioctl: Likewise.
8563 * modules/sys_select: Likewise.
8564 * modules/sys_socket: Likewise.
8565 * modules/sys_stat: Likewise.
8566 * modules/sys_time: Likewise.
8567 * modules/sys_times: Likewise.
8568 * modules/sys_utsname: Likewise.
8569 * modules/sys_wait: Likewise.
8571 2009-09-01 Jim Meyering <meyering@redhat.com>
8573 fts: help ensure that return values are not ignored
8574 * lib/fts_.h (__GNUC_PREREQ): Define.
8575 (__attribute_warn_unused_result__): Define.
8576 (fts_children, fts_close, fts_open, fts_read): Declare with
8577 __attribute_warn_unused_result__.
8579 fts: fts_close now fails also when closing a dir file descriptor fails
8580 * lib/fts.c (fts_close): Detect close failure, not just fchdir failure,
8581 and propagate to caller, along with errno.
8583 announce-gen: correct formatting in --help output
8584 * build-aux/announce-gen (usage): Move the one-line description in
8585 --help output "up", to where it belongs, just after Usage:.
8587 2009-08-31 Eric Blake <ebb9@byu.net>
8589 fchdir: port to mingw
8590 * m4/fchdir.m4 (gl_FUNC_FCHDIR): Check for mingw bug.
8591 * lib/open.c (open) [FCHDIR_REPLACEMENT]: If directories can't be
8592 opened, then use a substitute.
8593 * lib/sys_stat.in.h (fstat) [REPLACE_OPEN_DIRECTORY]: Declare
8595 * lib/fchdir.c (fstat) [REPLACE_OPEN_DIRECTORY]: Implement it.
8596 (_gl_register_fd): No need to check stat if open already filters
8598 (fchdir): Fix error condition to match POSIX.
8599 * modules/fchdir (Depends-on): Add sys_stat.
8600 * doc/posix-functions/open.texi (open): Document the limitation.
8601 * modules/fchdir-tests: New file.
8602 * tests/test-fchdir.c: Likewise.
8604 canonicalize: allow cross-testing from cygwin to mingw
8605 * modules/canonicalize-tests (configure.ac): Define HAVE_SYMLINK.
8606 (Makefile.am): Pass it through TESTS_ENVIRONMENT.
8607 * modules/canonicalize-lgpl-tests (configure.ac, Makefile.am):
8609 * tests/test-canonicalize.sh: Also skip test if 'ln -s' works, but
8610 target does not support symlinks.
8611 * tests/test-canonicalize-lgpl.sh: Likewise.
8613 chown: avoid compilation warning on mingw
8614 * m4/chown.m4 (gl_FUNC_CHOWN): Recognize missing chown.
8615 * lib/chown.c (rpl_chown) [!HAVE_CHOWN]: Always return failure on
8617 * lib/lchown.c (lchown) [!HAVE_CHOWN]: Likewise.
8618 * modules/chown (Depends-on): Add errno.
8620 2009-08-31 Stefano Lattarini <stefano.lattarini@gmail.com> (tiny change)
8622 * gnulib-tool: Fix test whether $CONFIG_SHELL has a working 'echo'
8625 2009-08-31 Jim Meyering <meyering@redhat.com>
8627 canonicalize: remove useless initialization
8628 * lib/canonicalize.c (canonicalize_filename_mode): Remove useless
8629 initialization of local, "end".
8631 2009-08-30 Bruno Haible <bruno@clisp.org>
8633 Fix an unnecessary error on Solaris 10 on NFSv3 file systems.
8634 * lib/set-mode-acl.c (qset_acl) [Solaris 10 new]: Treat EOPNOTSUPP like
8637 2009-08-30 Bruno Haible <bruno@clisp.org>
8639 * tests/test-pipe-filter-ii1.sh: Prefer /usr/xpg6/bin/tr over
8640 /usr/xpg4/bin/tr when it exists.
8641 * tests/test-pipe-filter-gi1.sh: Likewise.
8643 2009-08-30 Bruno Haible <bruno@clisp.org>
8645 Work around deficient /usr/bin/id program on Solaris.
8646 * tests/test-file-has-acl.sh (ID): New variable.
8647 * tests/test-set-mode-acl.sh (ID): Likewise.
8648 * tests/test-copy-acl.sh (ID): Likewise.
8649 * tests/test-copy-file.sh (ID): Likewise.
8651 2009-08-30 Bruno Haible <bruno@clisp.org>
8653 New module 'xstriconveh'.
8654 * lib/xstriconveh.h: New file.
8655 * lib/xstriconveh.c: New file.
8656 * modules/xstriconveh: New file.
8658 2009-08-30 Bruno Haible <bruno@clisp.org>
8660 Make it easier to use mem_cd_iconveh.
8661 * lib/striconveh.h (iconveh_t): New type.
8662 (iconveh_open, iconveh_close): New declarations.
8663 (mem_cd_iconveh, str_cd_iconveh): Replace the three iconv_t arguments
8664 with a single 'const iconveh_t *' argument.
8665 * lib/striconveh.c (iconveh_open, iconveh_close): New functions.
8666 (mem_cd_iconveh, str_cd_iconveh): Replace the three iconv_t arguments
8667 with a single 'const iconveh_t *' argument.
8668 (mem_iconveh, str_iconveh): Use iconveh_open, iconveh_close.
8669 * tests/test-striconveh.c (main): Update.
8670 * NEWS: Mention the change.
8672 2009-08-30 Bruno Haible <bruno@clisp.org>
8674 * doc/posix-functions/iconv_open.texi: Mention indirect conversion
8677 2009-08-30 Bruno Haible <bruno@clisp.org>
8679 Work around iconv_open problem on Solaris.
8680 * lib/iconv_open-solaris.gperf: New file.
8681 * lib/iconv_open.c (ICONV_FLAVOR_SOLARIS): New macro.
8682 * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Also handle Solaris.
8683 * modules/iconv_open (Files): Add lib/iconv_open-solaris.gperf.
8684 (Makefile.am): Add rule for iconv_open-solaris.h. Augment
8685 BUILT_SOURCES, MOSTLYCLEANFILES, MAINTAINERCLEANFILES, EXTRA_DIST.
8686 * doc/posix-functions/iconv_open.texi: Mention the Solaris problem.
8688 2009-08-29 Jim Meyering <meyering@redhat.com>
8690 maint.mk: remove more coreutils-specific targets; XZ_OPT=-9ev
8691 * top/maint.mk (cvs-check): Remove target; it was just an alias
8692 to the better-named vc-diff-check.
8693 (maintainer-distcheck): Remove rule. It was used only from
8694 the (alpha/beta/major) target, and all of its commands but one
8695 were coreutils-specific.
8696 (vc-dist): Remove rule.
8697 (alpha beta major): Run "$(MAKE) distcheck" explicitly.
8698 Run vc-diff-check, not vc-dist.
8699 Run $(MAKE) dist with XZ_OPT=-9ev. Note spelling, with "-".
8701 2009-08-27 Bruno Haible <bruno@clisp.org>
8703 * tests/test-bitrotate.c (main): Remove test that uses a shift count
8706 2009-08-27 Bruno Haible <bruno@clisp.org>
8708 * tests/test-func.c (main): Don't verify sizeof __func__ on SunPRO C
8710 * doc/func.texi: Document the SunPRO C bug.
8712 2009-08-27 Bruno Haible <bruno@clisp.org>
8714 Fix link error on Solaris.
8715 * tests/test-parse-duration.c (xstrdup): Remove function.
8717 2009-08-26 Pádraig Brady <P@draigbrady.com>
8719 ignore-value: handle pointer types, too
8720 * lib/ignore-value.h (__attribute__): Remove definition.
8721 (ignore_value): Remove use of "__attribute__ ((unused))" in favor
8722 of a more concise and more-often effective "(void) i" statement.
8723 (ignore_ptr): New function to suppress warnings from functions that
8724 return pointers, and to make it explicit that one function doesn't
8727 2009-08-25 Bruno Haible <bruno@clisp.org>
8729 dup2: work around a Linux bug.
8730 * m4/dup2.m4 (gl_FUNC_DUP2): Test for the Linux bug.
8731 * lib/dup2.c (rpl_dup2): Correct the return value if it is -EBADF.
8732 * doc/posix-functions/dup2.texi: Mention the Linux bug.
8733 Reported by Simon Josefsson.
8735 2009-08-25 Jim Meyering <meyering@redhat.com>
8737 libguestfs uses gnulib
8738 * users.txt: Add libguestfs.
8740 2009-08-24 Eric Blake <ebb9@byu.net>
8742 dup2, pipe2: fix some recent test failures on cygwin 1.5.x
8743 * lib/pipe2.c (includes): Add binary-io.h.
8744 * lib/dup2.c (rpl_dup2): Correct buggy errno value.
8746 2009-08-24 Bruno Haible <bruno@clisp.org>
8748 Tolerate declared but missing accept4 syscall.
8749 * lib/accept4.c (accept4): Invoke original accept4 function first, if
8751 * lib/sys_socket.in.h (accept4): If the function is already present,
8753 * m4/accept4.m4 (gl_FUNC_ACCEPT4): Remove AC_LIBOBJ invocation.
8754 * modules/accept4 (Makefile.am): Compile accept4.c always.
8755 Reported by Paolo Bonzini and Eric Blake.
8757 2009-08-23 Bruno Haible <bruno@clisp.org>
8759 New module 'accept4'.
8760 * lib/sys_socket.in.h (accept4): New declaration.
8761 * lib/accept4.c: New file.
8762 * m4/accept4.m4: New file.
8763 * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Initialize
8764 GNULIB_ACCEPT4, HAVE_ACCEPT4.
8765 * modules/sys_socket (Makefile.am): Substitute GNULIB_ACCEPT4,
8767 * modules/accept4: New file.
8768 * doc/glibc-functions/accept4.texi: Mention the new module.
8770 2009-08-24 Jim Meyering <meyering@redhat.com>
8772 progname: also set global program_invocation_name, when possible
8773 Before this change, a libtool-enabled program that calls glibc's
8774 error function would report the program name as
8775 "/abs/dir/.libs/lt-program_name" rather than the desired program_name.
8776 * modules/progname (configure.ac): Check for a declaration of
8777 program_invocation_name.
8778 * lib/progname.c: Include <errno.h>.
8779 (set_program_name) [HAVE_DECL_PROGRAM_INVOCATION_NAME]:
8780 Set program_invocation_name.
8782 2009-08-23 Bruno Haible <bruno@clisp.org>
8784 * lib/dup3.c: Include <string.h>.
8786 2009-08-23 Bruno Haible <bruno@clisp.org>
8788 * lib/dup3.c (dup3): Test only once whether the system actually exists.
8789 * lib/pipe2.c (pipe2): Likewise.
8790 Suggested by Eric Blake.
8792 2009-08-23 Bruno Haible <bruno@clisp.org>
8794 Tolerate declared but missing dup3 syscall.
8795 * lib/dup3.c (dup3): Invoke original dup3 function first, if available.
8796 * lib/unistd.in.h (dup3): If the function is already present,
8798 * m4/dup3.m4 (gl_FUNC_DUP3): Remove AC_LIBOBJ invocation.
8799 * modules/dup3 (Makefile.am): Compile dup3.c always.
8800 Reported by Paolo Bonzini.
8802 2009-08-23 Bruno Haible <bruno@clisp.org>
8804 Tolerate declared but missing pipe2 syscall.
8805 * lib/pipe2.c (pipe2): Invoke original pipe2 function first, if
8807 * lib/unistd.in.h (pipe2): If the function is already present,
8809 * m4/pipe2.m4 (gl_FUNC_PIPE2): Remove AC_LIBOBJ invocation.
8810 * modules/pipe2 (Makefile.am): Compile pipe2.c always.
8811 Reported by Paolo Bonzini.
8813 2009-08-23 Bruno Haible <bruno@clisp.org>
8815 * lib/pipe2.c (pipe2): Move #ifs inside function.
8817 2009-08-22 Joel E. Denny <jdenny@clemson.edu>
8819 quotearg: document limitations of quote_these_too
8820 * lib/quotearg.c (quotearg_buffer_restyled): Add comments where
8821 those limitations are created.
8822 * lib/quotearg.h (set_char_quoting): Document that digits and
8823 letters that are special after backslash are not permitted.
8824 (quotearg_char): Cross-reference set_char_quoting documentation.
8826 2009-08-23 Joel E. Denny <jdenny@clemson.edu>
8828 quotearg: implement custom_quoting_style
8829 * lib/quotearg.c: (struct quoting_options): Add left_quote and
8831 (set_custom_quoting): New public function.
8832 (quotearg_buffer_restyled): Add left_quote and right_quote
8833 arguments, handle them very much like locale quoting, and update
8835 (quotearg_n_custom): New public function.
8836 (quotearg_n_custom_mem): New public function.
8837 (quotearg_custom): New public function.
8838 (quotearg_custom_mem): New public function.
8839 * lib/quotearg.h: Prototype and document new public functions.
8840 (enum quoting_style): For escape_quoting_style and
8841 clocale_quoting_style, comment that QA_SPLIT_TRIGRAPHS is
8842 ignored even though they're otherwise like c_quoting_style.
8843 Add custom_quoting_style member and document with comparison to
8844 clocale_quoting_style.
8845 * tests/test-quotearg.c (custom_quotes): New array.
8846 (custom_results): New array.
8847 (main): Extend to test custom quoting.
8849 2009-08-22 Joel E. Denny <jdenny@clemson.edu>
8851 quotearg: fix right quote escaping when it's in quote_these_too
8852 * lib/quotearg.c (quotearg_buffer_restyled): Upon seeing a right
8853 quote, be sure to prepend only one backslash.
8854 * tests/test-quotearg.c (use_quote_double_quotes): New function.
8857 2009-08-22 Joel E. Denny <jdenny@clemson.edu>
8859 quotearg-tests: test escaping of embedded locale quotes
8860 * tests/test-quotearg.c (struct result_strings): Add member for
8862 (LQ_ENC, RQ_ENC, RQ_ESC): New macros.
8863 (inputs): Add new input.
8864 (results_g): Add expected results.
8865 (flag_results): Likewise.
8866 (locale_results): Likewise.
8867 (compare_strings): Check those.
8869 2009-08-23 Bruno Haible <bruno@clisp.org>
8871 Tests for module 'dup3'.
8872 * modules/dup3-tests: New file.
8873 * tests/test-dup3.c: New file.
8876 * lib/unistd.in.h (dup3): New declaration.
8877 * lib/dup3.c: New file.
8878 * m4/dup3.m4: New file.
8879 * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_DUP3 and
8881 * modules/unistd (Makefile.am): Substitute GNULIB_DUP3 and HAVE_DUP3.
8882 * modules/dup3: New file.
8883 * doc/glibc-functions/dup3.texi: Mention the new module.
8885 2009-08-23 Bruno Haible <bruno@clisp.org>
8887 Tweak the dup2 test.
8888 * tests/test-dup2.c (main): Create the test file empty. Verify that an
8889 out-of-range fd yields EBADF. Verify that after writing to /dev/null,
8890 the test file is still empty. Fix argument order of lseek.
8892 2009-08-23 Bruno Haible <bruno@clisp.org>
8894 Avoid test link errors when the modules getopt-gnu, gettext are used.
8895 * modules/getopt-posix-tests (Makefile.am): Define test_getopt_LDADD.
8896 Reported by Tom G. Christensen <tgc@jupiterrise.com>.
8898 2009-08-23 Bruno Haible <bruno@clisp.org>
8900 Fix getdtablesize() on mingw.
8901 * lib/getdtablesize.c (getdtablesize): Implement differently.
8902 * lib/unistd.in.h (getdtablesize): Improve comment.
8904 2009-08-23 Bruno Haible <bruno@clisp.org>
8906 New module 'mkostemp'.
8907 Based on Ulrich Drepper's 2007-08-10 change in glibc.
8908 * lib/stdlib.in.h (mksotemp): New declaration.
8909 * lib/mkostemp.c: New file, from glibc with modifications.
8910 * lib/tempname.h (GT_FILE): Remove outdated comment.
8911 (gen_tempname): Add flags argument.
8912 * lib/tempname.c (__GT_BIGFILE): Remove macro.
8913 (__GT_FILE): Map to 1.
8914 (small_open, large_open): Remove macros.
8915 (__gen_tempname): Add flags argument. Remove code for __GT_BIGFILE.
8916 * lib/mkstemp.c (mkstemp): Update.
8917 * lib/mkdtemp.c (mkdtemp): Likewise.
8918 * m4/mkostemp.m4: New file.
8919 * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_MKOSTEMP,
8921 * modules/stdlib (Makefile.am): Substitute GNULIB_MKOSTEMP,
8923 * modules/mkostemp: New file, based on modules/mkstemp.
8924 * doc/glibc-functions/mkostemp.texi: Mention the new module.
8925 * NEWS: Mention the change.
8927 2009-08-23 Bruno Haible <bruno@clisp.org>
8929 * lib/pipe2.c (pipe2): Support O_TEXT, O_BINARY on all platforms.
8930 Reported by Eric Blake.
8932 2009-08-23 Bruno Haible <bruno@clisp.org>
8934 * lib/pipe2.c (pipe2): Fix test of fcntl's return value.
8935 Reported by Eric Blake.
8937 2009-08-23 Bruno Haible <bruno@clisp.org>
8939 * modules/fchdir (Depends-on): Use fcntl-h instead of fcntl.
8940 * modules/pipe2 (Depends-on): Likewise.
8942 2009-08-23 Eric Blake <ebb9@byu.net>
8944 fcntl-h: add O_TTY_INIT support
8945 * lib/fcntl.in.h (O_TTY_INIT): Support another POSIX macro.
8946 * tests/test-fcntl-h.c (o): Test it.
8947 * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
8949 fcntl-h: rename from fcntl, in preparation for fcntl(2)
8950 * modules/fcntl: Move <fcntl.h> header replacement...
8951 * modules/fcntl-h: ...to new name, so as not to collide with
8952 like-named function.
8953 * tests/test-fcntl.c: Rename...
8954 * tests/test-fcntl-h.c: ...to this. Test FD_CLOEXEC.
8955 * modules/fcntl-tests: Rename...
8956 * modules/fcntl-h-tests: ...to this. Update test file name.
8957 * modules/chdir-long (Depends-on): Update clients.
8958 * modules/chdir-safer (Depends-on): Likewise.
8959 * modules/fcntl-safer (Depends-on): Likewise.
8960 * modules/fts (Depends-on): Likewise.
8961 * modules/mkancesdirs (Depends-on): Likewise.
8962 * modules/mkdir-p (Depends-on): Likewise.
8963 * modules/open (Depends-on): Likewise.
8964 * modules/savewd (Depends-on): Likewise.
8965 * MODULES.html.sh (systems lacking POSIX:2008): Update name.
8966 * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
8968 2009-08-22 Bruno Haible <bruno@clisp.org>
8970 * modules/binary-io (License): Relicense under LGPL.
8971 * modules/pipe2 (License): Likewise.
8973 2009-08-22 Bruno Haible <bruno@clisp.org>
8975 * lib/pipe-filter-ii.c (pipe_filter_ii_execute): Fix test of fcntl's
8977 * lib/pipe-filter-gi.c (filter_init): Likewise.
8978 Reported by Eric Blake.
8980 2009-08-22 Bruno Haible <bruno@clisp.org>
8982 * lib/pipe.c (create_pipe): Use pipe2 instead of _pipe.
8983 * modules/pipe (Depends-on): Add pipe2.
8985 2009-08-22 Bruno Haible <bruno@clisp.org>
8987 Tests for module 'pipe2'.
8988 * modules/pipe2-tests: New file.
8989 * tests/test-pipe2.c: New file.
8992 * lib/unistd.in.h (pipe2): New declaration.
8993 * lib/pipe2.c: New file.
8994 * m4/pipe2.m4: New file.
8995 * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_PIPE2 and
8997 * modules/unistd (Makefile.am): Substitute GNULIB_PIPE2 and HAVE_PIPE2.
8998 * modules/pipe2: New file.
8999 * doc/glibc-functions/pipe2.texi: Mention the new module.
9001 2009-08-22 Bruno Haible <bruno@clisp.org>
9003 Reference some new glibc functions.
9004 * doc/glibc-functions/accept4.texi: New file.
9005 * doc/glibc-functions/dup3.texi: New file.
9006 * doc/glibc-functions/mkostemp.texi: New file.
9007 * doc/glibc-functions/pipe2.texi: New file.
9008 * doc/gnulib.texi (Glibc stdlib.h): Refer to mkostemp.
9009 (Glibc sys/socket.h): Refer to accept4.
9010 (Glibc unistd.h): Refer to dup3, pipe2.
9011 Reported by Eric Blake.
9013 2009-08-22 Jim Meyering <meyering@redhat.com>
9014 Bruno Haible <bruno@clisp.org>
9016 annotate automake snippets with $(AM_V_GEN) and $(AM_V_at)
9017 This makes it so packages using automake-1.11's silent-rules option
9018 can print e.g., a single "GEN configmake.h" line, rather than
9019 the 30+ statements that perform the job. If you want to see the
9020 actual commands, you can still run "make V=1".
9021 * modules/alloca-opt: Add $(AM_V_GEN) and $(AM_V_at) prefixes
9022 so that make output is abbreviated when those variables are defined
9024 * modules/argz: Likewise.
9025 * modules/arpa_inet: Likewise.
9026 * modules/byteswap: Likewise.
9027 * modules/configmake: Likewise.
9028 * modules/dirent: Likewise.
9029 * modules/errno: Likewise.
9030 * modules/fcntl: Likewise.
9031 * modules/float: Likewise.
9032 * modules/fnmatch: Likewise.
9033 * modules/getopt-posix: Likewise.
9034 * modules/glob: Likewise.
9035 * modules/iconv_open: Likewise.
9036 * modules/inttypes: Likewise.
9037 * modules/localcharset: Likewise.
9038 * modules/locale: Likewise.
9039 * modules/math: Likewise.
9040 * modules/netdb: Likewise.
9041 * modules/netinet_in: Likewise.
9042 * modules/poll: Likewise.
9043 * modules/posix_spawnp-tests: Likewise.
9044 * modules/sched: Likewise.
9045 * modules/search: Likewise.
9046 * modules/selinux-h: Likewise.
9047 * modules/signal: Likewise.
9048 * modules/spawn: Likewise.
9049 * modules/stdarg: Likewise.
9050 * modules/stdbool: Likewise.
9051 * modules/stddef: Likewise.
9052 * modules/stdint: Likewise.
9053 * modules/stdio: Likewise.
9054 * modules/stdlib: Likewise.
9055 * modules/string: Likewise.
9056 * modules/strings: Likewise.
9057 * modules/sys_file: Likewise.
9058 * modules/sys_ioctl: Likewise.
9059 * modules/sys_select: Likewise.
9060 * modules/sys_socket: Likewise.
9061 * modules/sys_stat: Likewise.
9062 * modules/sys_time: Likewise.
9063 * modules/sys_times: Likewise.
9064 * modules/sys_utsname: Likewise.
9065 * modules/sys_wait: Likewise.
9066 * modules/sysexits: Likewise.
9067 * modules/time: Likewise.
9068 * modules/unistd: Likewise.
9069 * modules/wchar: Likewise.
9070 * modules/wctype: Likewise.
9072 2009-08-22 Jim Meyering <meyering@redhat.com>
9074 announce-gen: detect write failure
9075 * build-aux/announce-gen: Add Coda at end.
9076 Remove equivalent-but-more-verbose block at top.
9078 2009-08-19 Akim Demaille <demaille@gostai.com>
9080 bootstrap: --help to stdout.
9081 * bootstrap (usage): Don't send --help to stderr.
9082 Use a here doc instead of a long string.
9084 2009-08-21 Eric Blake <ebb9@byu.net>
9086 test-popen-safer: split from test-popen
9087 * tests/test-popen.c (main): Move...
9088 * tests/test-popen.h: ...into new file.
9089 * tests/test-popen-safer2.c: New file.
9090 * modules/popen-tests (Files): Add test-popen.h.
9091 * modules/popen-safer-tests (Files): Add test-popen-safer2.c.
9092 Suggested by Bruno Haible.
9094 test-fcntl-safer: split from test-open
9095 * tests/test-open.c (main): Move...
9096 * tests/test-open.h: ...into new file.
9097 * tests/test-fcntl-safer.c: New file.
9098 * modules/open-tests (Files): Add test-open.h.
9099 * modules/fcntl-safer-tests: New file.
9100 Suggested by Bruno Haible.
9102 test-fopen-safer: split from test-fopen
9103 * tests/test-fopen.c (main): Move...
9104 * tests/test-fopen.h: ...into new file.
9105 * tests/test-fopen-safer.c: New file.
9106 * modules/fopen-tests (Files): Add test-fopen.h.
9107 * modules/fopen-safer-tests: New file.
9108 Suggested by Bruno Haible.
9110 2009-08-21 Paolo Bonzini <bonzini@gnu.org>
9112 popen-safer: test O_CLOEXEC at run-time.
9113 * lib/popen-safer.c: Test O_CLOEXEC at run-time.
9115 2009-08-21 Paolo Bonzini <bonzini@gnu.org>
9117 fcntl: move more flags to the header
9118 * lib/cloexec.c: Do not define FD_CLOEXEC here.
9119 * lib/popen-safer.c: Do not alias O_NOINHERIT to O_CLOEXEC here.
9120 * lib/fcntl.in.h: Do both things here.
9122 2009-08-21 Jim Meyering <meyering@redhat.com>
9124 consistently remove $@-t before redirecting to it
9125 * modules/argz: Remove $@-t and $@ before redirecting to the former.
9126 * modules/alloca-opt: Likewise.
9127 * modules/byteswap: Likewise.
9128 * modules/fnmatch: Likewise.
9129 * modules/getopt-posix: Likewise.
9130 * modules/glob: Likewise.
9131 * modules/poll: Likewise.
9132 * modules/posix_spawnp-tests: Likewise.
9133 * modules/sys_socket: Likewise.
9134 * modules/sysexits: Likewise.
9136 2009-08-21 Eric Blake <ebb9@byu.net>
9138 popen: simplify access to original popen
9139 * lib/popen.c (rpl_popen): No need to worry about popen being a
9141 Reported by Bruno Haible.
9143 2009-08-20 Eric Blake <ebb9@byu.net>
9145 build: avoid some compiler warnings
9146 * lib/selinux-at.h: Use dir_fd, not dirfd, to avoid shadowing.
9147 * lib/exclude.c (fnmatch_pattern_has_wildcards): Use correct
9149 (new_exclude_segment, excluded_file_pattern_p)
9150 (excluded_file_name_p): Reduce scope.
9151 * lib/vasnprintf.c (decimal_point_char): Avoid warning on
9152 old-style declaration.
9154 2009-08-20 Simon Josefsson <simon@josefsson.org>
9156 * tests/test-exclude1.sh: Handle Windows EOL.
9157 * tests/test-exclude2.sh: Likewise.
9158 * tests/test-exclude3.sh: Likewise.
9159 * tests/test-exclude4.sh: Likewise.
9160 * tests/test-exclude5.sh: Likewise.
9161 * tests/test-exclude6.sh: Likewise.
9162 * tests/test-exclude7.sh: Likewise.
9164 2009-08-19 Akim Demaille <demaille@gostai.com>
9166 bootstrap: find sha1sum when named gsha1sum.
9167 * bootstrap (find_tool): New.
9171 2009-08-20 Jim Meyering <meyering@redhat.com>
9173 maint.mk: _header_without_use: fix a quoting bug and remove a bash'ism
9174 * top/maint.mk (_header_without_use): Use "\\\\", not "\\" in the sed
9175 expression that converts "." in a file name to "\." in the resulting
9176 regexp. Start with a dummy statement, so that prior shell variable
9177 definitions are expanded portably. Reported by Simon Josefsson.
9179 2009-08-20 Paolo Bonzini <bonzini@gnu.org>
9181 Fix polling for writeability of a screen buffer.
9182 * lib/poll.c: Distinguish input and screen buffers for the
9183 Win32 implementation.
9184 * lib/select.c: Likewise.
9186 2009-08-19 Eric Blake <ebb9@byu.net>
9188 popen-safer: prevent popen from clobbering std descriptors
9189 * modules/popen-safer: New file.
9190 * lib/popen-safer.c: Likewise.
9191 * m4/stdio-safer.m4 (gl_POPEN_SAFER): New macro.
9192 * lib/stdio--.h (popen): Provide override.
9193 * lib/stdio-safer.h (popen_safer): Provide declaration.
9194 * tests/test-popen.c (includes): Partially test this.
9195 * modules/popen-safer-tests: New file, for more tests.
9196 * tests/test-popen-safer.c: Likewise.
9197 * MODULES.html.sh (file stream based Input/Output): Mention it.
9199 tests: test some of the *-safer modules
9200 * modules/fopen-safer (Depends-on): Add fopen.
9201 * modules/fcntl-safer (Depends-on): Add fcntl.
9202 * modules/stdlib-safer (Depends-on): Add stdlib.
9203 (configure.ac): Set indicator.
9204 * modules/unistd-safer (configure.ac): Likewise.
9205 * modules/tmpfile-safer (configure.ac): Likewise.
9206 (Depends-on): Add tmpfile.
9207 * lib/stdio--.h (fopen, tmpfile): Don't override unless module is
9209 * tests/test-fopen.c (includes): Test safer versions when they are
9211 * tests/test-open.c (includes): Likewise.
9213 popen: fix cygwin 1.5 bug when stdin closed
9214 * doc/posix-functions/popen.texi (popen): Document cygwin bugs.
9215 * modules/popen: New file.
9216 * modules/popen-tests: Likewise.
9217 * tests/test-popen.c: Likewise.
9218 * m4/popen.m4: Likewise.
9219 * lib/popen.c: Likewise.
9220 * lib/stdio.in.h (popen): New declaration.
9221 * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add popen.
9222 * modules/stdio (Makefile.am): Likewise.
9223 * MODULES.html.sh (systems lacking POSIX:2008): Mention it.
9225 2009-08-17 Joel E. Denny <jdenny@clemson.edu>
9227 maint.mk: give full control over update-copyright exclusions
9228 * top/maint.mk (VC_LIST_EXCEPT): Instead of ChangeLog, use
9229 ${VC_LIST_EXCEPT_DEFAULT-ChangeLog} as the default exclusion.
9230 (update-copyright): Don't force inclusion of top-level
9231 ChangeLog. Don't force exclusion of all COPYING files, but make
9232 them the default exclusion instead.
9234 2009-08-16 Bruno Haible <bruno@clisp.org>
9236 Fix test failures on Solaris 10.
9237 * tests/uniconv/test-u8-conv-from-enc.c (main): Disable autodetect_jp
9238 tests when Solaris iconv() is used.
9239 * tests/uniconv/test-u16-conv-from-enc.c (main): Likewise.
9240 * tests/uniconv/test-u32-conv-from-enc.c (main): Likewise.
9241 * tests/uniconv/test-u8-strconv-from-enc.c (main): Likewise.
9242 * tests/uniconv/test-u16-strconv-from-enc.c (main): Likewise.
9243 * tests/uniconv/test-u32-strconv-from-enc.c (main): Likewise.
9245 2009-08-16 Bruno Haible <bruno@clisp.org>
9247 Fix test failures on Solaris 10.
9248 * tests/test-pipe-filter-ii1.sh: Determine the filename of a working
9249 'tr' program and pass it as first argument.
9250 * tests/test-pipe-filter-gi1.sh: Likewise.
9251 * tests/test-pipe-filter-ii1.c (main): Except the filename of a 'tr'
9252 program as first argument.
9253 * tests/test-pipe-filter-gi1.c (main): Likewise.
9255 2009-08-16 Eric Blake <ebb9@byu.net>
9257 fpurge: fix previous commits
9258 * modules/fpurge (Makefile.am): Make replacement conditional,
9259 partially reverting 2007-04-29 change; missed in previous
9261 * m4/fpurge.m4 (gl_FUNC_FPURGE): Also compile fpurge.c when fpurge
9264 2009-08-16 Bruno Haible <bruno@clisp.org>
9266 Clarify fpurge's effect on the file position.
9267 * lib/stdio.in.h (fpurge): Specify the file position after fpurge.
9268 * tests/test-fpurge.c (main): Make a second pass for checking the file
9271 2009-08-16 Bruno Haible <bruno@clisp.org>
9273 * m4/fpurge.m4 (gl_FUNC_FPURGE): Don't compile fpurge.c if only the
9274 declaration of fpurge is missing.
9275 * tests/test-fpurge.c (main): Check that the file has not more contents
9276 than expected. Close the file before removing it.
9278 2009-08-15 Eric Blake <ebb9@byu.net>
9280 fpurge: don't wrap working cygwin implementation
9281 * lib/fpurge.c (fpurge): Fix comment typo.
9282 * m4/fpurge.m4 (gl_FUNC_FPURGE): Detect BSD bug, allowing cygwin
9283 1.7 to avoid replacement.
9284 * tests/test-fpurge.c (main): Enhance test.
9286 2009-08-15 Eric Blake <ebb9@byu.net>
9287 and Jim Meyering <meyering@redhat.com>
9289 test-update-copyright: skip if perl is insufficient
9290 * tests/test-update-copyright.sh: Failure to run maintainer tool
9291 should not cause testsuite failure on cygwin 1.5.
9293 2009-08-14 Eric Blake <ebb9@byu.net>
9295 doc: mention more functions added in cygwin 1.7.0
9296 * doc/posix-headers/limits.texi (limits.h): Update for recent
9298 * doc/posix-headers/wordexp.texi (wordexp.h): Likewise.
9299 * doc/posix-functions/wordexp.texi (wordexp): Likewise.
9300 * doc/posix-functions/wordfree.texi (wordfree): Likewise.
9301 * doc/posix-functions/setlocale.texi (setlocale): Likewise.
9302 * doc/posix-functions/nl_langinfo.texi (nl_langinfo): Likewise.
9304 2009-08-14 Eric Blake <ebb9@byu.net>
9306 maint.mk: simplify update-copyright rule
9307 * top/maint.mk (update-copyright-local): Delete, and document how
9308 to do it in cfg.mk instead.
9309 (update-copyright-exclude-regexp): Delete, and document how to do
9310 it in .x-update-copyright instead.
9311 (update-copyright): Simplify, thanks to VC_LIST_EXCEPT. Don't
9314 2009-08-14 Bruno Haible <bruno@clisp.org>
9316 * m4/wchar.m4 (gl_WCHAR_H): Undo invalid optimization in last commit.
9318 2009-08-14 Joel E. Denny <jdenny@clemson.edu>
9320 maint.mk: support update-copyright-env
9321 * top/maint.mk (update-copyright-env): Define place-holder.
9322 (update-copyright): Expand $(update-copyright-env) before
9323 invoking update-copyright.
9325 2009-08-14 Joel E. Denny <jdenny@clemson.edu>
9327 update-copyright: implement forced reformatting
9328 * build-aux/update-copyright: Implement and document
9329 UPDATE_COPYRIGHT_FORCE.
9330 * tests/test-update-copyright.sh: Test it.
9332 2009-08-14 Eric Blake <ebb9@byu.net>
9333 and Bruno Haible <bruno@clisp.org>
9335 stddef: fix NetBSD 5.0 NULL bug, rather than working around it
9336 * tests/test-locale.c: Revert previous patch related to NULL.
9337 * tests/test-stdio.c: Likewise.
9338 * tests/test-stdlib.c: Likewise.
9339 * tests/test-string.c: Likewise.
9340 * tests/test-unistd.c: Likewise.
9341 * modules/time-tests (Depends-on): Add verify.
9342 * modules/wchar-tests (Depends-on): Likewise.
9343 * tests/test-time.c: Test for NULL compliance.
9344 * tests/test-wchar.c: Likewise.
9345 * modules/locale (Depends-on): Add stddef.
9346 * modules/stdio (Depends-on): Likewise.
9347 * modules/stdlib (Depends-on): Likewise.
9348 * modules/string (Depends-on): Likewise.
9349 * modules/time (Depends-on): Likewise.
9350 * modules/unistd (Depends-on): Likewise.
9351 * modules/wchar (Depends-on): Likewise.
9352 * lib/locale.in.h (includes): Use <stddef.h> to fix NULL.
9353 * lib/stdlib.in.h (includes): Likewise.
9354 * lib/string.in.h (includes): Likewise.
9355 * lib/time.in.h (includes): Likewise.
9356 * lib/unistd.in.h (includes): Likewise.
9357 * m4/locale_h.m4 (gl_LOCALE_H): Replace locale.h if stddef.h was
9359 * m4/wchar.m4 (gl_WCHAR_H): Likewise.
9360 * m4/stddef_h.m4: New file.
9361 * modules/stddef: Likewise.
9362 * lib/stddef.in.h: Likewise.
9363 * modules/stddef-tests: Likewise.
9364 * tests/test-stddef.c: Likewise.
9365 * MODULES.html.sh (Basic types <stddef.h>): Mention new module.
9366 * doc/posix-headers/stddef.texi (stddef.h): Document the bug.
9367 * doc/posix-headers/locale.texi (locale.h): Likewise.
9368 * doc/posix-headers/stdio.texi (stdio.h): Likewise.
9369 * doc/posix-headers/stdlib.texi (stdlib.h): Likewise.
9370 * doc/posix-headers/string.texi (string.h): Likewise.
9371 * doc/posix-headers/time.texi (time.h): Likewise.
9372 * doc/posix-headers/unistd.texi (unistd.h): Likewise.
9373 * doc/posix-headers/wchar.texi (wchar.h): Likewise.
9375 2009-08-14 Eric Blake <ebb9@byu.net>
9377 doc: improve git diff of texinfo files
9378 * .gitattributes: Add rule for *.texi files, with hint on how to
9380 Copied from m4, and based on a report by Bruno Haible.
9382 2009-08-14 Bruno Haible <bruno@clisp.org>
9384 Disable multithread support by default on Cygwin 1.5.x for real.
9385 * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): Fix last commit.
9387 2009-08-14 Joel E. Denny <jdenny@clemson.edu>
9389 update-copyright: much ado about intervals
9390 * build-aux/update-copyright: Implement and document
9391 UPDATE_COPYRIGHT_USE_INTERVALS to control expansion and collapse
9392 of copyright year intervals.
9393 Also, document UPDATE_COPYRIGHT_YEAR.
9394 * tests/test-update-copyright.sh: Test it.
9396 update-copyright: convert 2-digit to 4-digit years
9397 * build-aux/update-copyright: Implement and document.
9398 * tests/test-update-copyright.sh: Update.
9400 2009-08-14 Jim Meyering <meyering@redhat.com>
9402 test-exclude: avoid coreutils "make check" failure
9403 * tests/test-exclude.c (ARGMATCH_DIE_DECL) [ARGMATCH_DIE_DECL]: Define,
9404 just as in test-argmatch.c.
9406 2009-08-13 Eric Blake <ebb9@byu.net>
9408 test-dup2: fix bad assumption
9409 * tests/test-dup2.c (main): Tolerate leaked fds from environment.
9410 Reported by Peter Breitenlohner <peb@mppmu.mpg.de>.
9412 test-version-etc: fix CRLF portability issue
9413 * tests/test-version-etc.sh: Use tr, not sed, as not all sed
9415 * tests/test-argp-version-etc-1.sh: Likewise.
9417 getopt: update client modules
9418 * modules/argp (Depends-on): Use getopt-gnu.
9419 * modules/git-merge-changelog (Depends-on): Likewise.
9420 * modules/long-options (Depends-on): Likewise.
9421 * modules/xstrtol (Depends-on): Likewise.
9423 2009-08-13 Simon Josefsson <simon@josefsson.org>
9425 * tests/test-version-etc.sh: Don't fail on different
9426 project/version. Don't fail on CRLF differences. Rewrite to use
9427 multiple -e instead of multiple sed forks, suggested by Eric Blake
9429 * tests/test-argp-version-etc-1.sh: Likewise.
9431 2009-08-13 Simon Josefsson <simon@josefsson.org>
9433 * tests/test-version-etc.sh: Don't fail on different
9436 2009-08-12 Bruno Haible <bruno@clisp.org>
9438 Tests for modules 'getopt-posix', 'getopt-gnu'.
9439 * modules/getopt-posix-tests: New file.
9440 * tests/test-getopt.c: New file.
9441 * tests/test-getopt.h: New file.
9442 * tests/test-getopt_long.h: New file.
9444 New modules 'getopt-posix', 'getopt-gnu'.
9445 * modules/getopt-gnu: New file, renamed from modules/getopt.
9446 * modules/getopt-posix: New file.
9447 * modules/getopt: Turn into an obsolete alias for getopt-gnu.
9448 * m4/getopt.m4 (gl_FUNC_GETOPT_POSIX, gl_FUNC_GETOPT_GNU): New macros.
9449 (gl_GETOPT): Remove macro.
9450 (gl_GETOPT_CHECK_HEADERS): Do some checks only for gl_FUNC_GETOPT_GNU.
9451 Disable the test against BSD systems that declare optreset. Test
9452 against mingw bug. Test against lack of support of optional arguments
9454 * doc/glibc-headers/getopt.texi: Update module name and list of
9456 * doc/posix-functions/getopt.texi: Mention modules 'getopt-posix' and
9457 'getopt-gnu' and more portability problems.
9458 * NEWS: Mention the changes.
9460 2009-08-12 Bruno Haible <bruno@clisp.org>
9462 Ensure that optarg etc. get declared by <unistd.h>.
9463 * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Require
9464 AC_USE_SYSTEM_EXTENSIONS.
9465 * modules/getopt (Depends-on): Add 'extensions'.
9467 2009-08-12 Bruno Haible <bruno@clisp.org>
9469 Avoid test link errors.
9470 * modules/pipe-filter-ii-tests (Makefile.am): Define
9471 test_pipe_filter_ii1_LDADD and test_pipe_filter_ii2_main_LDADD.
9472 * modules/pipe-filter-gi-tests (Makefile.am): Define
9473 test_pipe_filter_gi1_LDADD and test_pipe_filter_gi2_main_LDADD.
9474 Reported by Tom G. Christensen <tgc@jupiterrise.com>.
9476 2009-08-12 Bruno Haible <bruno@clisp.org>
9478 * m4/getopt.m4 (gl_REPLACE_GETOPT): New macro, was called
9479 gl_GETOPT_SUBSTITUTE before.
9480 (gl_GETOPT): Use it.
9481 * m4/argp.m4 (gl_ARGP): Update.
9482 Reported by Sergey Poznyakoff.
9484 * m4/getopt.m4: Reorder macros.
9485 (gl_GETOPT): Inline gl_GETOPT_SUBSTITUTE.
9486 (gl_GETOPT_SUBSTITUTE): Remove macro.
9488 2009-08-12 Sergey Poznyakoff <gray@gnu.org.ua>
9490 Minor improvement in gitlog-to-changelog
9492 * build-aux/gitlog-to-changelog: New option `--format' makes
9493 output format string configurable.
9495 2009-08-12 Sergey Poznyakoff <gray@gnu.org.ua>
9497 Optimize exclude: use hash tables for non-wildcard patterns.
9499 * lib/exclude.c: Include hash.h and mbuiter.h
9500 (struct exclude_pattern, exclude_segment): New data types.
9501 (struct exclude): Rewrite.
9502 (fnmatch_pattern_has_wildcards): New function.
9503 (new_exclude_segment, free_exclude_segment): New functions.
9504 (excluded_file_pattern_p, excluded_file_name_p): New functions.
9505 (excluded_file_name, add_exclude): Rewrite using new struct exclude.
9506 * lib/exclude.h (is_fnmatch_pattern): New prototype.
9507 * modules/exclude: Depend on hash and mbuiter.
9509 * modules/exclude-tests: New file.
9510 * tests/test-exclude.c: New file.
9511 * tests/test-exclude1.sh: New file.
9512 * tests/test-exclude2.sh: New file.
9513 * tests/test-exclude3.sh: New file.
9514 * tests/test-exclude4.sh: New file.
9515 * tests/test-exclude5.sh: New file.
9516 * tests/test-exclude6.sh: New file.
9517 * tests/test-exclude7.sh: New file.
9519 2009-08-12 Bruno Haible <bruno@clisp.org>
9521 Ensure that getopt() gets declared by <unistd.h>.
9522 * lib/unistd.in.h: Conditionally include getopt.h.
9523 * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): Require gl_UNISTD_H_DEFAULTS.
9524 Set GNULIB_UNISTD_H_GETOPT.
9525 * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
9526 GNULIB_UNISTD_H_GETOPT.
9527 * modules/unistd (Makefile.am): Substitute GNULIB_UNISTD_H_GETOPT.
9529 2009-08-12 Bruno Haible <bruno@clisp.org>
9532 * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS, gl_GETOPT_IFELSE): Use
9533 gl_replace_getopt instead of GETOPT_H.
9535 2009-08-12 Bruno Haible <bruno@clisp.org>
9537 * m4/getopt.m4: Add comments.
9539 2009-08-12 Bruno Haible <bruno@clisp.org>
9541 Disable multithread support by default on Cygwin 1.5.x.
9542 * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): On Cygwin 1.5.x and older,
9543 set gl_use_threads=no if not specified otherwise.
9545 2009-08-11 Bruno Haible <bruno@clisp.org>
9547 Avoid compilation error on NetBSD 5.0.
9548 * tests/test-locale.c: Write sizeof (NULL) instead of sizeof NULL.
9549 * tests/test-stdio.c: Likewise.
9550 * tests/test-stdlib.c: Likewise.
9551 * tests/test-string.c: Likewise.
9552 * tests/test-unistd.c: Likewise.
9553 Reported by Greg Troxel <gdt@ir.bbn.com>
9554 at <https://savannah.gnu.org/support/?106973>.
9556 2009-08-11 Bruno Haible <bruno@clisp.org>
9558 * modules/dup2-tests (Depends-on): Remove close.
9560 Undo 2009-07-19 commit.
9561 * modules/acl-tests (Depends-on): Remove close.
9562 * modules/binary-io-tests (Depends-on): Likewise.
9563 * modules/closein-tests (Depends-on): Likewise.
9564 * modules/flock-tests (Depends-on): Likewise.
9565 * modules/fsync-tests (Depends-on): Likewise.
9566 * modules/lseek-tests (Depends-on): Likewise.
9567 * modules/pipe-tests (Depends-on): Likewise.
9568 * modules/posix_spawn-tests (Depends-on): Likewise.
9569 * modules/posix_spawnp-tests (Depends-on): Likewise.
9570 * modules/stat-time-tests (Depends-on): Likewise.
9571 * modules/yesno-tests (Depends-on): Likewise.
9573 2009-08-10 Bruno Haible <bruno@clisp.org>
9575 * lib/vasnprintf.c (DCHAR_SET): Undefine at the end.
9577 2009-08-10 Bruno Haible <bruno@clisp.org>
9580 * lib/write.c (rpl_write): Cast result of _get_osfhandle.
9582 2009-08-10 Bruno Haible <bruno@clisp.org>
9584 Don't optimize AC_LIBOBJs, as they may appear in different contexts.
9585 * m4/close.m4 (gl_REPLACE_CLOSE): Execute AC_LIBOBJ unconditionally,
9586 not only the first time.
9587 * m4/fclose.m4 (gl_REPLACE_FCLOSE): Likewise.
9588 * m4/open.m4 (gl_REPLACE_OPEN): Likewise.
9589 * m4/strstr.m4 (gl_FUNC_STRSTR): Execute AC_LIBOBJ when REPLACE_STRSTR
9590 is 1, not only the the first time.
9592 2009-08-10 Bruno Haible <bruno@clisp.org>
9594 Make it possible to use module 'gethostname' without module 'close'.
9595 * lib/unistd.in.h (close): Evoke a link error only if
9596 UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS is set.
9597 * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
9598 UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
9599 * modules/unistd (Makefile.am): Substitute
9600 UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
9601 * lib/sys_ioctl.in.h (ioctl): Evoke a link error only if
9602 SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS is set.
9603 * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H_DEFAULTS): Initialize
9604 SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
9605 * modules/sys_ioctl (Makefile.am): Substitute
9606 SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
9607 * modules/socket (configure.ac): On native Windows, set
9608 UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS and
9609 SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
9610 Reported by Sam Steingold <sds@gnu.org>.
9612 2009-08-10 Bruno Haible <bruno@clisp.org>
9614 * m4/close.m4 (gl_FUNC_CLOSE): Add comment.
9615 * modules/ioctl (configure.ac): Likewise.
9617 2009-08-10 Bruno Haible <bruno@clisp.org>
9619 Avoid collision between gnulib wrapper and libintl wrapper.
9620 * lib/stdio-write.c (printf): Don't define if a printf wrapper is
9621 already defined in intl/printf.c.
9622 (vprintf): Test REPLACE_VPRINTF_POSIX, not REPLACE_VFPRINTF_POSIX.
9623 (vfprintf): Test REPLACE_VFPRINTF_POSIX, not REPLACE_VPRINTF_POSIX.
9625 2009-08-09 Bruno Haible <bruno@clisp.org>
9627 Make <sys/select.h> really self-contained, also on Solaris 10.
9628 * lib/sys_select.in.h: Include <string.h>.
9629 * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Test also against
9631 * tests/test-sys_select.c (main): Add check that FD_ZERO can be used.
9632 * doc/posix-headers/sys_select.texi: Mention the Solaris 10 problem.
9633 Reported by Jim Meyering.
9635 2009-08-09 Bruno Haible <bruno@clisp.org>
9637 Avoid warnings from 'aclocal' that are due to a use of macro name
9638 AM_XGETTEXT_OPTION that is not defined in automake.
9639 * modules/argp (configure.ac): Hide use of AM_XGETTEXT_OPTION from
9641 * modules/error (configure.ac): Likewise.
9642 * modules/propername (configure.ac): Likewise.
9643 * modules/vasprintf (configure.ac): Likewise.
9644 * modules/verror (configure.ac): Likewise.
9645 * modules/xprintf (configure.ac): Likewise.
9646 * modules/xvasprintf (configure.ac): Likewise.
9648 2009-08-08 Bruno Haible <bruno@clisp.org>
9650 Avoid compilation error in C++ mode.
9651 * lib/gettimeofday.c (rpl_gettimeofday): Cast timezone argument.
9652 Reported by Sam Steingold <sds@gnu.org>.
9654 2009-08-08 Bruno Haible <bruno@clisp.org>
9656 * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Define HOST_NAME_MAX also
9657 for the various Unix platforms.
9658 * doc/posix-headers/limits.texi: Update platforms list regarding
9660 Reported by Tom G. Christensen <tgc@jupiterrise.com>.
9662 2009-08-07 Jim Meyering <meyering@redhat.com>
9664 selinux-at: fix typo in a comment
9665 * lib/selinux-at.h: s/getfileconat/getfilecon/ in a comment.
9666 Spotted by Paolo Bonzini.
9668 selinux-at: remove redundant m4 code, add documentation
9669 * modules/selinux-at (configure.ac): Remove redundant code.
9670 LIB_SELINUX is already set via the dependent module, selinux-h.
9671 (Include): Add quotes around selinux-at.h.
9672 * lib/selinux-at.h: Add documentation.
9673 Reported by Bruno Haible in
9674 http://marc.info/?l=gnulib-bug&m=124958988300749
9676 2009-08-07 Bruno Haible <bruno@clisp.org>
9678 Avoid link error on MacOS X 10.3 and 10.4.
9679 * lib/argp-ba.c (argp_program_bug_address): Explicitly zero-initialize
9681 * lib/argp-pv.c (argp_program_version): Likewise.
9682 Reported by Simon Josefsson.
9684 2009-08-07 Simon Josefsson <simon@josefsson.org>
9686 * tests/test-version-etc.sh: Use $EXEEXT.
9688 2009-08-06 Joel E. Denny <jdenny@clemson.edu>
9690 update-copyright: update documentation to point to maint.mk
9691 * build-aux/update-copyright: Here.
9693 2009-08-06 Jim Meyering <meyering@redhat.com>
9695 maint.mk: support update-copyright-local
9696 * top/maint.mk (update-copyright-local): Define place-holder.
9697 (update-copyright): Depend on $(update-copyright-local).
9699 2009-08-06 Jim Meyering <meyering@redhat.com>
9701 selinux-at: new module
9702 Initially written for coreutils, this module will soon be
9703 used by findutils, too.
9704 * MODULES.html.sh [Misc]: Add selinux-at.
9705 * lib/selinux-at.h: New file, from coreutils.
9706 * lib/selinux-at.c: Likewise.
9707 * modules/selinux-at: Likewise.
9708 (License): Change from LGPL to GPL, since it depends
9709 on the GPL'd openat module.
9712 * README: Remove references to cogito.
9713 Remove cvs-repo-updating instructions from 2007.
9714 Don't imply that CVS is better if you have limited disk space.
9716 2009-08-05 Joel E. Denny <jdenny@clemson.edu>
9718 update-copyright: support C-style comments
9719 * build-aux/update-copyright: Implement and document.
9720 * tests/test-update-copyright.sh: Test.
9722 2009-08-05 Joel E. Denny <jdenny@clemson.edu>
9724 update-copyright: support omitted "(C)"
9725 * build-aux/update-copyright: Implement and document. Also,
9726 allow variable whitespace before "(C)".
9727 * tests/test-update-copyright.sh: Test.
9729 2009-08-05 Joel E. Denny <jdenny@clemson.edu>
9731 update-copyright: don't trip on non-FSF copyright statements
9732 * build-aux/update-copyright: Fix so that the first correctly
9733 formatted FSF copyright statement is recognized no matter what
9734 appears before it. Update documentation.
9735 * tests/test-update-copyright.sh: Test that.
9737 2009-08-05 Joel E. Denny <jdenny@clemson.edu>
9739 update-copyright: clean up code a little
9740 * build-aux/update-copyright: Append "_re" to the name of any
9741 variable holding a regular expression.
9742 Replace "old" and "new" with "stmt" in variable names.
9743 Do not accept 2-digit UPDATE_COPYRIGHT_YEAR, which was not
9745 Format code more consistently.
9747 2009-08-05 Joel E. Denny <jdenny@clemson.edu>
9749 update-copyright-tests: improve portability
9750 * tests/test-update-copyright.sh: Use cmp if diff cannot handle
9751 -u or /dev/null. Suggested by Jim Meyering and Eric Blake.
9753 2009-08-03 Joel E. Denny <jdenny@clemson.edu>
9755 update-copyright: support @copyright{} and ©
9756 * build-aux/update-copyright: Implement and document.
9757 * tests/test-update-copyright.sh: Test.
9759 2009-08-04 Jim Meyering <meyering@redhat.com>
9761 update-copyright-tests: correctly test EOL=\r\n handling
9762 * tests/test-update-copyright.sh: Put \r at the end of some lines
9763 for the dos-eol tests. Based on a patch by Joel E. Denny.
9765 maint.mk: make update-copyright exclusion list more configurable
9766 * top/maint.mk (update-copyright): Default to excluding COPYING,
9767 but allow an override, in case someone does want to update that file.
9769 maint.mk: don't update copyright date in COPYING
9770 * top/maint.mk (update-copyright): Exclude COPYING.
9772 maint.mk: add a copyright-updating rule
9773 * top/maint.mk (update-copyright): New rule.
9774 Derived from coreutils/Makefile.am.
9776 update-copyright: rename some variables
9777 * build-aux/update-copyright: Rename a few variables for clarity.
9778 Tweak syntax. List Joel E. Denny as coauthor.
9780 2009-08-03 Joel E. Denny <jdenny@clemson.edu>
9782 update-copyright: fix bug for 2-digit last year and add tests
9783 * build-aux/update-copyright: Fix bug.
9784 Use UPDATE_COPYRIGHT_YEAR from environment as current year if
9786 * modules/update-copyright-tests: New
9787 * tests/test-update-copyright.sh: New.
9789 2009-07-31 Joel E. Denny <jdenny@clemson.edu>
9791 update-copyright: handle leading tabs in line prefix
9792 * build-aux/update-copyright: Count leading tabs as 8 spaces
9793 when computing margin. This helps with the formatting of
9794 ChangeLogs, for example.
9795 Fix documentation a little.
9797 2009-07-31 Joel E. Denny <jdenny@clemson.edu>
9799 update-copyright: support EOL=\r\n
9800 * build-aux/update-copyright: Implement that.
9802 2009-07-31 Joel E. Denny <jdenny@clemson.edu>
9804 update-copyright: automatically format copyright statements
9805 * build-aux/update-copyright: Implement that.
9806 Also, be a little more predictable and safer by always failing
9807 when the full copyright format is not perfectly recognized as an
9808 unbroken whole. Discussed at
9809 <http://lists.gnu.org/archive/html/bug-gnulib/2009-07/msg00131.html>.
9810 Rewrite documentation.
9812 2009-08-03 Bruno Haible <bruno@clisp.org>
9814 * m4/iconv.m4 (AM_ICONV): Fix displayed message with autoconf-2.64.
9816 2009-08-02 Bruno Haible <bruno@clisp.org>
9818 Tests for module 'uname'.
9819 * modules/uname-tests: New file.
9820 * tests/test-uname.c: New file.
9823 * lib/uname.c: New file.
9824 * m4/uname.m4: New file.
9825 * modules/uname: New file.
9826 * doc/posix-functions/uname.texi: Mention the new module.
9828 2009-08-02 Bruno Haible <bruno@clisp.org>
9830 Tests for module 'sys_utsname'.
9831 * modules/sys_utsname-tests: New file.
9832 * tests/test-sys_utsname.c: New file.
9834 New module 'sys_utsname'.
9835 * lib/sys_utsname.in.h: New file, based on glibc's <sys/utsname.h>.
9836 * m4/sys_utsname_h.m4: New file.
9837 * modules/sys_utsname: New file.
9838 * doc/posix-headers/sys_utsname.texi: Mention the new module.
9840 2009-08-02 Bruno Haible <bruno@clisp.org>
9842 Implicitly initialize the sockets library.
9843 * lib/gethostname.c: Include sockets.h.
9844 (rpl_gethostname): Invoke gl_sockets_startup.
9845 * lib/socket.c: Include sockets.h.
9846 (rpl_socket): Invoke gl_sockets_startup.
9847 * modules/gethostname (Depends-on): Add sockets.
9848 * modules/socket (Depends-on): Likewise.
9849 * tests/test-poll.c: Don't include sockets.h.
9850 (main): Don't invoke gl_sockets_startup.
9851 * tests/test-select.c: Don't include sockets.h.
9852 (main): Don't invoke gl_sockets_startup.
9854 2009-08-02 Bruno Haible <bruno@clisp.org>
9856 Allow multiple calls to gl_sockets_startup.
9857 * lib/sockets.c (initialized_sockets_version): New variable.
9858 (gl_sockets_startup): Do nothing if already called for this or a higher
9860 (gl_sockets_cleanup): Reset initialized_sockets_version.
9862 2009-08-03 Simon Josefsson <simon@josefsson.org>
9864 * tests/test-argp-version-etc-1.sh: Use EXEEXT. Don't fail on
9865 different project/version.
9867 2009-08-02 Paolo Bonzini <bonzini@gnu.org>
9868 Bruno Haible <bruno@clisp.org>
9870 Tests for module 'pipe-filter-gi'.
9871 * modules/pipe-filter-gi-tests: New file.
9872 * tests/test-pipe-filter-gi1.sh: New file.
9873 * tests/test-pipe-filter-gi1.c: New file.
9874 * tests/test-pipe-filter-gi2.sh: New file.
9875 * tests/test-pipe-filter-gi2-main.c: New file.
9876 * tests/test-pipe-filter-gi2-child.c: New file.
9878 New module 'pipe-filter-gi'.
9879 * lib/pipe-filter-gi.c: New file.
9880 * modules/pipe-filter-gi: New file.
9882 2009-08-02 Bruno Haible <bruno@clisp.org>
9883 Paolo Bonzini <bonzini@gnu.org>
9885 Tests for module 'pipe-filter-ii'.
9886 * modules/pipe-filter-ii-tests: New file.
9887 * tests/test-pipe-filter-ii1.sh: New file.
9888 * tests/test-pipe-filter-ii1.c: New file.
9889 * tests/test-pipe-filter-ii2.sh: New file.
9890 * tests/test-pipe-filter-ii2-main.c: New file.
9891 * tests/test-pipe-filter-ii2-child.c: New file.
9893 New module 'pipe-filter-ii'.
9894 * lib/pipe-filter.h: New file.
9895 * lib/pipe-filter-ii.c: New file.
9896 * lib/pipe-filter-aux.h: New file.
9897 * modules/pipe-filter-ii: New file.
9899 2009-08-02 Simon Josefsson <simon@josefsson.org>
9901 * lib/gc-libgcrypt.c: Change copyright to FSF.
9902 * lib/gc-gnulib.c: Likewise.
9904 2009-08-02 Martin Lambers <marlam@marlam.de> (tiny change)
9906 * lib/gethostname.c: Include limits.h.
9908 2009-08-02 Simon Josefsson <simon@josefsson.org>
9909 Bruno Haible <bruno@clisp.org>
9911 Ensure HOST_NAME_MAX as part of the gethostname module.
9912 * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): On native Windows platforms,
9913 define also HOST_NAME_MAX.
9914 * tests/test-gethostname.c: Include <limits.h>.
9915 (main): Check also HOST_NAME_MAX.
9916 * doc/posix-headers/limits.texi: Document the mingw problem.
9918 2009-08-02 Bruno Haible <bruno@clisp.org>
9920 * lib/gethostname.c (gethostname): Fix handling of large len argument.
9923 2009-03-31 Simon Josefsson <simon@josefsson.org>
9925 * lib/gethostname.c: Add Windows wrapper.
9926 * m4/gethostname.m4: Look for gethostname in -lws2_32.
9927 * modules/gethostname: Depend on sys_socket & errno, for also
9928 added lib/w32sock.h. Add GETHOSTNAME_LIB link directive.
9929 * modules/gethostname-tests: Link to @GETHOSTNAME_LIB@.
9931 2009-07-31 Jim Meyering <meyering@redhat.com>
9933 getloadavg: fix symbol name in comment
9934 * lib/getloadavg.c: Correct a typo I introduced when adding
9935 comments to Matt's change: s/NLIST_POINTER/N_NAME_POINTER/.
9936 Matt Kraai spotted the problem.
9938 2009-07-29 Matt Kraai <mkraai@beckman.com>
9940 getloadavg: check whether n_name is a pointer, for QNX 6.4.1
9941 * lib/getloadavg.c (getloadavg): Use the strcpy-into-nlist.n_name
9942 code also if ! defined N_NAME_POINTER.
9943 * m4/getloadavg.m4 (gl_GETLOADAVG): Add a link-test for N_NAME_POINTER.
9944 This is required on QNX 6.4.1, where /usr/include/nlist.h exists,
9945 but the n_name member is a 12-byte array.
9947 2009-07-29 Joel E. Denny <jdenny@clemson.edu>
9949 update-copyright: generalize comment handling
9950 * build-aux/update-copyright: Handle copyright statements
9951 within more comment styles.
9953 Report any file with an external copyright holder or parse failure.
9955 2009-07-29 Jim Meyering <meyering@redhat.com>
9957 mktime: correct setting of REPLACE_MKTIME
9958 * m4/mktime.m4 (gl_FUNC_MKTIME): Set REPLACE_MKTIME=0, when required.
9960 update-copyright: new module
9961 * modules/update-copyright: New file.
9962 * build-aux/update-copyright: New file.
9963 * MODULES.html.sh (maint+release support): Add update-copyright.
9965 2009-07-27 Bruno Haible <bruno@clisp.org>
9967 Fix compilation error when <ctime> is used and mktime is replaced.
9968 * lib/time.in.h (mktime): New declaration.
9969 * m4/mktime.m4 (gl_FUNC_MKTIME): Require gl_HEADER_TIME_H_DEFAULTS. Set
9970 REPLACE_MKTIME instead of defining mktime in config.h.
9971 * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize REPLACE_MKTIME.
9972 * modules/time (Makefile.am): Substitute REPLACE_MKTIME.
9973 Reported by Ross McFarland <rwmcfa1@neces.com>.
9975 2009-07-27 Bruno Haible <bruno@clisp.org>
9977 * lib/math.in.h (cosl, logl, sinl): Undefine before declaring it.
9978 Reported by Matt Kraai <mkraai@beckman.com>.
9980 2009-07-25 Jim Meyering <meyering@redhat.com>
9982 maint.mk: avoid warnings about missing files
9983 * top/maint.mk (PREV_VERSION): Suppress stderr, to hide a
9984 diagnostic when .prev-version does not exist.
9985 (_cfg_mk): Define, so it can be empty when cfg.mk does not exist.
9986 (syntax-check-rules): Use $(_cfg_mk) to avoid a diagnostic about
9988 Suggestions from Simon Josefsson.
9990 2009-07-25 Bruno Haible <bruno@clisp.org>
9992 * lib/math.in.h (cosl, logl, sinl): Don't declare if they are already
9993 defined as macros. Needed on QNX 6.4.1.
9994 Reported by Matt Kraai <mkraai@beckman.com>.
9996 2009-07-23 Jim Meyering <meyering@redhat.com>
9998 maint.mk: invoke "make dist" with a working value of XZ_OPT
9999 * top/maint.mk (vc-dist): Use no "-" in the value of XZ_OPT.
10001 2009-07-22 Matt Kraai <mkraai@beckman.com> (tiny change)
10003 Make fseeko.c compile on QNX.
10004 * lib/fseeko.c (rpl_fseeko): Use the numerical value of _MWRITE.
10006 2009-07-22 Peter Simons <simons@cryp.to>
10008 C++: wrap md2,md5,sha1,etc. function declarations in extern "C" scope
10009 * lib/md2.h [__cplusplus]: Wrap declarations in extern "C" scope.
10010 * lib/md4.h: Likewise.
10011 * lib/md5.h: Likewise.
10012 * lib/sha1.h: Likewise.
10013 * lib/sha256.h: Likewise.
10014 * lib/sha512.h: Likewise.
10016 tests-sha1: don't assign literal string to 'char *' variable
10017 * tests/test-sha1.c (main): Declare locals with "const" to match
10018 attributes of the right hand side.
10020 2009-07-21 Eric Blake <ebb9@byu.net>
10022 dup2: fix more mingw problems
10023 * lib/dup2.c (rpl_dup2) [_WIN32]: Avoid hanging when duplicating
10025 * doc/posix-functions/dup2.texi (dup2): Document the bug.
10026 * lib/unistd.in.h (dup2) [REPLACE_FCHDIR]: Avoid name collision.
10027 * lib/fchdir.c (dup2): Manage preprocessor macros correctly.
10028 (rpl_dup2_fchdir): Rename from rpl_dup2, and let dup2 module take
10029 care of mingw bugs.
10031 2009-07-21 Jim Meyering <meyering@redhat.com>
10033 vc-list-files: avoid failure when /bin/sh is dash
10034 * build-aux/vc-list-files: Avoid a shell portability problem with dash.
10035 On some Debian based systems, /bin/sh is a symlink to dash, and running
10036 this command would omit the "/" following each 'tests' prefix:
10037 dash -x build-aux/vc-list-files -C . tests
10038 That is because bash and dash work differently:
10039 $ for i in bash dash; do $i -c 'a=odd; a=ok b=$a; echo '$i' $b'; done
10043 2009-07-21 Eric Blake <ebb9@byu.net>
10045 dup2-tests: test previous patch
10046 * modules/dup2-tests: New file.
10047 * tests/test-dup2.c: Likewise.
10048 * tests/test-open.c (main): Avoid unspecified behavior.
10049 * tests/test-pipe.c (child_main): Use dup2 semantics to simplify
10052 dup2: work around mingw and cygwin 1.5 bug
10053 * m4/dup2.m4 (gl_FUNC_DUP2): Detect mingw bug.
10054 * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
10055 * modules/unistd (Makefile.am): Substitute it.
10056 * lib/unistd.in.h (dup2): Declare the replacement.
10057 * lib/dup2.c (dup2) [REPLACE_DUP2]: Implement it.
10058 * doc/posix-functions/dup2.texi (dup2): Document the bugs.
10059 * lib/fchdir.c (rpl_dup2): Don't collide with mingw replacement.
10060 * modules/execute (Depends-on): Add dup2.
10061 * modules/fseterr (Depends-on): Likewise.
10062 * modules/pipe (Depends-on): Likewise.
10063 * modules/posix_spawn-internal (Depends-on): Likewise.
10065 2009-07-21 Bruno Haible <bruno@clisp.org>
10067 * modules/.gitattributes: New file.
10069 2009-07-20 Bruno Haible <bruno@clisp.org>
10071 * tests/test-pipe.c (BACKUP_STDERR_FILENO): New macro.
10074 2009-07-20 Eric Blake <ebb9@byu.net>
10076 test-pipe: make a bit more robust.
10077 * tests/test-pipe.c (myerr): Allow error messages regardless of
10078 what we do to stderr.
10079 (test_pipe): Rearrange to avoid deadlock.
10080 (child_main): Try a larger read, to ensure we avoided deadlock.
10081 * lib/pipe.c (create_pipe) [_WIN32]: Fix comment.
10082 * lib/pipe.h (create_pipe_bidi): Document potential for deadlock
10085 2009-07-19 Jim Meyering <meyering@redhat.com>
10087 fts: avoid false-positive cycle-detection
10088 * lib/fts.c (fts_read): Reinitialize cycle-detection data structures
10089 for each new command line argument.
10091 2009-07-19 Bruno Haible <bruno@clisp.org>
10093 Fix build error on mingw with the modules sys_select and unistd.
10094 * modules/acl-tests (Depends-on): Add close.
10095 * modules/binary-io-tests (Depends-on): Likewise.
10096 * modules/closein-tests (Depends-on): Likewise.
10097 * modules/flock-tests (Depends-on): Likewise.
10098 * modules/fsync-tests (Depends-on): Likewise.
10099 * modules/lseek-tests (Depends-on): Likewise.
10100 * modules/pipe-tests (Depends-on): Likewise.
10101 * modules/posix_spawn-tests (Depends-on): Likewise.
10102 * modules/posix_spawnp-tests (Depends-on): Likewise.
10103 * modules/stat-time-tests (Depends-on): Likewise.
10104 * modules/yesno-tests (Depends-on): Likewise.
10106 2009-07-19 Bruno Haible <bruno@clisp.org>
10108 Unify conditionals.
10109 * lib/pipe.h: Detect native Win32 by looking at _WIN32 and __WIN32__
10110 macros, not at the compiler macros.
10111 * lib/pipe.c: Likewise.
10112 * lib/execute.c: Likewise.
10113 * lib/spawni.c: Likewise.
10115 2009-07-19 Bruno Haible <bruno@clisp.org>
10117 Fix handling of closed stdin/stdout/stderr on mingw.
10118 * lib/w32spawn.h: Include unistd.h.
10119 (dup_noinherit): Return -1 if the old handle is invalid. Allocate new
10120 file descriptor with O_NOINHERIT flag.
10121 (fd_safer_noinherit): New function, based on fd-safer.c.
10122 (dup_safer_noinherit): New function, based on dup-safer.c.
10123 (undup_safer_noinherit): New function.
10124 * lib/execute.c (execute) [WIN32]: Use dup_safer_noinherit instead of
10125 dup_noinherit. Use undup_safer_noinherit instead of dup2 and close.
10126 * lib/pipe.c (create_pipe) [WIN32]: Likewise. Use fd_safer_noinherit
10127 instead of fd_safer.
10128 * tests/test-pipe.c: Include <windows.h>.
10129 (child_main) [WIN32]: Test the handle of STDERR_FILENO, not its close() result.
10131 * tests/test-pipe.c (child_main, parent_main): New functions, extracted
10133 (test_pipe): Pass an extra argument for disambiguation.
10134 (main): Invoke parent_main or child_main.
10136 * tests/test-pipe.c (test_pipe): Pass slave_process = true argument
10139 2009-07-18 Eric Blake <ebb9@byu.net>
10141 test-pipe: fix mingw build
10142 * tests/test-pipe.c (main): Avoid fcntl on mingw.
10144 2009-07-18 Bruno Haible <bruno@clisp.org>
10146 * modules/pipe-tests (Makefile.am): Fix typo.
10148 2009-07-18 Eric Blake <ebb9@byu.net>
10150 error: fix mingw build
10151 * lib/error.c (error, error_at_line): Avoid fcntl on mingw.
10152 Reported by Bruno Haible.
10154 error: avoid undefined use of stdout
10155 * lib/error.c (error, error_at_line): Check that fd 1 is open
10156 before flushing stdout. Avoids a crash on cygwin when libsigsegv
10157 is handling faults and the close_stdout module wants to report the
10158 detection of closed stdout as an error.
10160 2009-07-17 Eric Blake <ebb9@byu.net>
10162 pipe: be robust in face of closed fds
10163 * lib/pipe.c (create_pipe): Closed standard descriptors in parent
10164 should cause child to misbehave.
10165 * modules/pipe-tests: New module.
10166 * tests/test-pipe.c: New file.
10167 * tests/test-pipe.sh: New file.
10168 Reported by Akim Demaille.
10170 2009-07-14 Bruno Haible <bruno@clisp.org>
10172 * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Guess it works on glibc systems.
10173 Reported by anonymous kc.
10175 2009-07-07 Jim Meyering <meyering@redhat.com>
10177 maint.mk: don't look for translatable strings in *.m4 or *.mk
10178 * top/maint.mk (sc_po_check): Skip *.m4 and *.mk files,
10179 when searching for translatable strings.
10181 2009-07-05 Jim Meyering <meyering@redhat.com>
10183 remove superfluous parentheses in STREQ definition
10184 * tests/test-argv-iter.c (STREQ): Remove redundant parentheses.
10185 * lib/getugroups.c (STREQ): Likewise.
10186 * lib/fnmatch.c (STREQ): Likewise.
10187 Spotted by Bruno Haible.
10189 2009-07-04 Jim Meyering <meyering@redhat.com>
10191 argv-iter: new module
10192 * MODULES.html.sh: Add argv-iter.
10193 * lib/argv-iter.c, lib/argv-iter.h: New files.
10194 * modules/argv-iter: New file.
10195 * modules/argv-iter-tests: New file.
10196 * tests/test-argv-iter.c: Test it.
10198 2009-07-04 Bruno Haible <bruno@clisp.org>
10201 * lib/git-merge-changelog.c (compute_mapping): In the case where file1
10202 contains more exact copies of a given entry than file2, leave the extra
10203 copies unpaired rather than aborting.
10204 Reported by Eric Blake.
10206 2009-07-02 Bruno Haible <bruno@clisp.org>
10208 Speedup git-merge-changelog for git cherry-pick.
10209 * lib/git-merge-changelog.c (struct entries_mapping): New type.
10210 (entries_mapping_get): New function, extracted from compute_mapping.
10211 (entries_mapping_reverse_get): New function.
10212 (compute_mapping): Add a 'full' argument. Return the result in a
10213 'struct entries_mapping'.
10214 (main): Update. Access the mappings through entries_mapping_get.
10215 Reported by Eric Blake.
10217 2009-07-02 Bruno Haible <bruno@clisp.org>
10219 * lib/git-merge-changelog.c (compute_mapping): Fix determination of
10222 2009-07-02 Bruno Haible <bruno@clisp.org>
10224 Speed up approximate search for matching ChangeLog entries.
10225 * lib/git-merge-changelog.c (entry_fstrcmp): Add a lower_bound
10226 argument. Call fstrcmp_bounded instead of fstrcmp.
10227 (compute_mapping, try_split_merged_entry, main): Update callers.
10229 2009-07-02 Bruno Haible <bruno@clisp.org>
10231 * lib/git-merge-changelog.c (main): Add comment about git cherry-pick.
10233 2009-06-30 Bruno Haible <bruno@clisp.org>
10235 Reduce the number of uc_is_cased calls.
10236 * lib/unicase.h (casing_suffix_context_t): Add
10237 'first_char_except_ignorable' field.
10238 * lib/unicase/context.h (SCC_FINAL_SIGMA_MASK): Remove macro.
10239 (SCC_MORE_ABOVE_MASK, SCC_BEFORE_DOT_MASK): Update.
10240 * lib/unicase/empty-suffix-context.c (unicase_empty_suffix_context):
10241 Update initializer.
10242 * lib/unicase/u-casemap.h (FUNC): Don't invoke uc_is_cased on
10243 case-ignorable characters.
10244 * lib/unicase/u-ct-totitle.h (FUNC): Likewise.
10245 * lib/unicase/u-suffix-context.h (FUNC2): Don't call uc_is_cased here.
10246 * modules/unicase/u8-suffix-context (Depends-on): Remove unicase/cased.
10247 * modules/unicase/u16-suffix-context (Depends-on): Likewise.
10248 * modules/unicase/u32-suffix-context (Depends-on): Likewise.
10250 2009-06-30 Bruno Haible <bruno@clisp.org>
10252 Tests for module 'unicase/ignorable'.
10253 * modules/unicase/ignorable-tests: New file.
10254 * tests/unicase/test-ignorable.c: New file, generated by
10257 Tests for module 'unicase/cased'.
10258 * modules/unicase/cased-tests: New file.
10259 * tests/unicase/test-cased.c: New file, generated by gen-uni-tables.
10260 * tests/unicase/test-predicate-part1.h: New file, derived from
10261 tests/unictype/test-predicate-part1.h.
10262 * tests/unicase/test-predicate-part2.h: New file, same as
10263 tests/unictype/test-predicate-part2.h.
10265 Fix evaluation of "Before C" condition of FINAL_SIGMA.
10266 * lib/gen-uni-tables.c (is_cased, is_case_ignorable): New functions.
10267 (output_casing_properties): New function.
10269 * lib/unicase/cased.h: New file, generated by gen-uni-tables.
10270 * lib/unicase/cased.c: Include unictype/bitmap.h.
10271 (uc_is_cased): Define through a bitmap lookup.
10272 * lib/unicase/ignorable.h: New file, generated by gen-uni-tables.
10273 * lib/unicase/ignorable.c: Include unictype/bitmap.h.
10274 (uc_is_case_ignorable): Define through a bitmap lookup.
10275 * modules/unicase/cased (Files): Add lib/unicase/cased.h,
10276 lib/unictype/bitmap.h.
10277 (Depends-on): Add inline. Clean up.
10278 * modules/unicase/ignorable (Files): Add lib/unicase/ignorable.h,
10279 lib/unictype/bitmap.h.
10280 (Depends-on): Add inline. Clean up.
10281 * tests/unicase/test-u8-tolower.c (main): Add more tests of FINAL_SIGMA
10283 * tests/unicase/test-u16-tolower.c (main): Likewise.
10284 * tests/unicase/test-u32-tolower.c (main): Likewise.
10286 2009-06-30 Bruno Haible <bruno@clisp.org>
10288 * lib/unicase/u8-casemap.c: Don't include uniwbrk.h.
10289 * lib/unicase/u16-casemap.c: Likewise.
10290 * lib/unicase/u32-casemap.c: Likewise.
10292 2009-06-29 Bruno Haible <bruno@clisp.org>
10294 Define u32_casefold as a wrapper around u32_ct_casefold.
10295 * lib/unicase/u32-casefold.c: Update.
10296 * modules/unicase/u32-casefold (Depends-on): Add
10297 unicase/u32-ct-casefold, unicase/empty-prefix-context,
10298 unicase/empty-suffix-context. Clean up.
10300 Define u16_casefold as a wrapper around u16_ct_casefold.
10301 * lib/unicase/u16-casefold.c: Update.
10302 * modules/unicase/u16-casefold (Depends-on): Add
10303 unicase/u16-ct-casefold, unicase/empty-prefix-context,
10304 unicase/empty-suffix-context. Clean up.
10306 Define u8_casefold as a wrapper around u8_ct_casefold.
10307 * lib/unicase/u-casefold.h (FUNC): Delegate to U_CT_CASEFOLD.
10308 * lib/unicase/u8-casefold.c: Update.
10309 * modules/unicase/u8-casefold (Depends-on): Add unicase/u8-ct-casefold,
10310 unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
10312 Define u32_totitle as a wrapper around u32_ct_totitle.
10313 * lib/unicase/u32-totitle.c: Update.
10314 * modules/unicase/u32-totitle (Depends-on): Add unicase/u32-ct-totitle,
10315 unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
10317 Define u16_totitle as a wrapper around u16_ct_totitle.
10318 * lib/unicase/u16-totitle.c: Update.
10319 * modules/unicase/u16-totitle (Depends-on): Add unicase/u16-ct-totitle,
10320 unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
10322 Define u8_totitle as a wrapper around u8_ct_totitle.
10323 * lib/unicase/u-totitle.h (is_cased, is_case_ignorable): Remove
10325 (FUNC): Delegate to U_CT_TOTITLE.
10326 * lib/unicase/u8-totitle.c: Update.
10327 * modules/unicase/u8-totitle (Depends-on): Add unicase/u8-ct-totitle,
10328 unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
10330 * lib/unicase/u32-tolower.c (u32_tolower): Update u32_casemap
10332 * modules/unicase/u32-tolower (Depends-on): Add
10333 unicase/empty-prefix-context, unicase/empty-suffix-context.
10335 * lib/unicase/u16-tolower.c (u16_tolower): Update u16_casemap
10337 * modules/unicase/u16-tolower (Depends-on): Add
10338 unicase/empty-prefix-context, unicase/empty-suffix-context.
10340 * lib/unicase/u8-tolower.c (u8_tolower): Update u8_casemap invocation.
10341 * modules/unicase/u8-tolower (Depends-on): Add
10342 unicase/empty-prefix-context, unicase/empty-suffix-context.
10344 * lib/unicase/u32-toupper.c (u32_toupper): Update u32_casemap
10346 * modules/unicase/u32-toupper (Depends-on): Add
10347 unicase/empty-prefix-context, unicase/empty-suffix-context.
10349 * lib/unicase/u16-toupper.c (u16_toupper): Update u16_casemap
10351 * modules/unicase/u16-toupper (Depends-on): Add
10352 unicase/empty-prefix-context, unicase/empty-suffix-context.
10354 * lib/unicase/u8-toupper.c (u8_toupper): Update u8_casemap invocation.
10355 * modules/unicase/u8-toupper (Depends-on): Add
10356 unicase/empty-prefix-context, unicase/empty-suffix-context.
10358 New module 'unicase/u32-ct-casefold'.
10359 * lib/unicase/u32-ct-casefold.c: New file.
10360 * modules/unicase/u32-ct-casefold: New file.
10362 New module 'unicase/u16-ct-casefold'.
10363 * lib/unicase/u16-ct-casefold.c: New file.
10364 * modules/unicase/u16-ct-casefold: New file.
10366 New module 'unicase/u8-ct-casefold'.
10367 * lib/unicase/u8-ct-casefold.c: New file.
10368 * lib/unicase/u-ct-casefold.h: New file, derived from
10369 lib/unicase/u-casefold.h.
10370 * modules/unicase/u8-ct-casefold: New file.
10372 New module 'unicase/u32-ct-totitle'.
10373 * lib/unicase/u32-ct-totitle.c: New file.
10374 * modules/unicase/u32-ct-totitle: New file.
10376 New module 'unicase/u16-ct-totitle'.
10377 * lib/unicase/u16-ct-totitle.c: New file.
10378 * modules/unicase/u16-ct-totitle: New file.
10380 New module 'unicase/u8-ct-totitle'.
10381 * lib/unicase/u8-ct-totitle.c: New file.
10382 * lib/unicase/u-ct-totitle.h: New file, derived from
10383 lib/unicase/u-totitle.h.
10384 * modules/unicase/u8-ct-totitle: New file.
10386 New module 'unicase/u32-ct-tolower'.
10387 * lib/unicase/u32-ct-tolower.c: New file.
10388 * modules/unicase/u32-ct-tolower: New file.
10390 New module 'unicase/u16-ct-tolower'.
10391 * lib/unicase/u16-ct-tolower.c: New file.
10392 * modules/unicase/u16-ct-tolower: New file.
10394 New module 'unicase/u8-ct-tolower'.
10395 * lib/unicase/u8-ct-tolower.c: New file.
10396 * modules/unicase/u8-ct-tolower: New file.
10398 New module 'unicase/u32-ct-toupper'.
10399 * lib/unicase/u32-ct-toupper.c: New file.
10400 * modules/unicase/u32-ct-toupper: New file.
10402 New module 'unicase/u16-ct-toupper'.
10403 * lib/unicase/u16-ct-toupper.c: New file.
10404 * modules/unicase/u16-ct-toupper: New file.
10406 New module 'unicase/u8-ct-toupper'.
10407 * lib/unicase/u8-ct-toupper.c: New file.
10408 * modules/unicase/u8-ct-toupper: New file.
10410 Add context arguments to u*_casemap functions.
10411 * lib/unicase/unicasemap.h: Include unicase.h.
10412 (u8_casemap, u16_casemap, u32_casemap): Add prefix_context and
10413 suffix_context arguments.
10414 * lib/unicase/u-casemap.h (is_cased, is_case_ignorable): Remove
10416 (FUNC): Add prefix_context and suffix_context arguments. Use
10417 uc_is_cased and uc_is_case_ignorable.
10418 * lib/unicase/u8-casemap.c: Include caseprop.h and context.h.
10419 * lib/unicase/u16-casemap.c: Likewise.
10420 * lib/unicase/u32-casemap.c: Likewise.
10421 * modules/unicase/u8-casemap (Files): Add lib/unicase/context.h.
10422 (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
10423 * modules/unicase/u16-casemap (Files): Add lib/unicase/context.h.
10424 (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
10425 * modules/unicase/u32-casemap (Files): Add lib/unicase/context.h.
10426 (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
10428 New module 'unicase/u32-suffix-context'.
10429 * lib/unicase/u32-suffix-context.c: New file.
10430 * modules/unicase/u32-suffix-context: New file.
10432 New module 'unicase/u16-suffix-context'.
10433 * lib/unicase/u16-suffix-context.c: New file.
10434 * modules/unicase/u16-suffix-context: New file.
10436 New module 'unicase/u8-suffix-context'.
10437 * lib/unicase/u8-suffix-context.c: New file.
10438 * lib/unicase/u-suffix-context.h: New file.
10439 * modules/unicase/u8-suffix-context: New file.
10441 New module 'unicase/empty-suffix-context'.
10442 * lib/unicase/empty-suffix-context.c: New file.
10443 * modules/unicase/empty-suffix-context: New file.
10445 New module 'unicase/u32-prefix-context'.
10446 * lib/unicase/u32-prefix-context.c: New file.
10447 * modules/unicase/u32-prefix-context: New file.
10449 New module 'unicase/u16-prefix-context'.
10450 * lib/unicase/u16-prefix-context.c: New file.
10451 * modules/unicase/u16-prefix-context: New file.
10453 New module 'unicase/u8-prefix-context'.
10454 * lib/unicase/u8-prefix-context.c: New file.
10455 * lib/unicase/u-prefix-context.h: New file.
10456 * lib/unicase/context.h: New file.
10457 * modules/unicase/u8-prefix-context: New file.
10459 New module 'unicase/empty-prefix-context'.
10460 * lib/unicase/empty-prefix-context.c: New file.
10461 * modules/unicase/empty-prefix-context: New file.
10463 New module 'unicase/ignorable'.
10464 * lib/unicase/ignorable.c: New file.
10465 * modules/unicase/ignorable: New file.
10467 New module 'unicase/cased'.
10468 * lib/unicase/caseprop.h: New file.
10469 * lib/unicase/cased.c: New file.
10470 * modules/unicase/cased: New file.
10472 New functions for case mapping of substrings.
10473 * lib/unicase.h (casing_prefix_context_t): New type.
10474 (unicase_empty_prefix_context): New variable.
10475 (u8_casing_prefix_context, u16_casing_prefix_context,
10476 u32_casing_prefix_context, u8_casing_prefixes_context,
10477 u16_casing_prefixes_context, u32_casing_prefixes_context): New
10479 (casing_suffix_context_t): New type.
10480 (unicase_empty_suffix_context): New variable.
10481 (u8_casing_suffix_context, u16_casing_suffix_context,
10482 u32_casing_suffix_context, u8_casing_suffixes_context,
10483 u16_casing_suffixes_context, u32_casing_suffixes_context,
10484 u8_ct_toupper, u16_ct_toupper, u32_ct_toupper, u8_ct_tolower,
10485 u16_ct_tolower, u32_ct_tolower, u8_ct_totitle, u16_ct_totitle,
10486 u32_ct_totitle, u8_ct_casefold, u16_ct_casefold, u32_ct_casefold): New
10489 2009-06-28 Jim Meyering <meyering@redhat.com>
10491 boostrap: indent only with spaces
10492 * build-aux/bootstrap: Indent only with spaces, never TABs.
10494 bootstrap: split long lines
10495 * build-aux/bootstrap: Keep line length < 80.
10497 bootstrap: sync from coreutils
10498 * build-aux/bootstrap: Honor variables like $ACLOCAL, etc.,
10499 just as autoreconf does. Verify a list of prerequisite
10500 package-name,version-number pairs if defined in bootstrap.conf.
10501 Refer to README-prereq, if prerequisites are not satisfied.
10503 2009-06-27 Eric Blake <ebb9@byu.net>
10505 tests: add test for bogus NULL definition
10506 * tests/test-stdio.c: Ensure POSIX 2008 requirement on NULL.
10507 * tests/test-stdlib.c: Likewise.
10508 * tests/test-string.c: Likewise.
10509 * tests/test-locale.c: Likewise.
10510 * tests/test-unistd.c: Likewise.
10511 * modules/stdio-tests (Depends-on): Add verify.
10512 * modules/stdlib-tests (Depends-on): Likewise.
10513 * modules/string-tests (Depends-on): Likewise.
10514 * modules/locale-tests (Depends-on): Likewise.
10515 * modules/unistd-tests (Depends-on): Likewise.
10517 2009-06-27 Paolo Bonzini <bonzini@gnu.org>
10519 * m4/selinux-context-h (gl_HEADERS_SELINUX_CONTEXT_H): Remove
10520 self-explaining comment.
10521 * m4/selinux-selinux-h: Update serial.
10522 (gl_LIBSELINUX): New macro, adding a warning for missing development
10523 packages to code extracted from...
10524 (gl_HEADERS_SELINUX_SELINUX_H): ... this one. Require gl_LIBSELINUX.
10525 Add warning for missing development packages here, too.
10527 2009-06-26 Paolo Bonzini <bonzini@gnu.org>
10529 * build-aux/bootstrap: Do not use GIT_CONFIG_LOCAL.
10531 2009-06-25 Eric Blake <ebb9@byu.net>
10533 version-etc: fix regression
10534 * lib/version-etc.h (ATTRIBUTE_SENTINEL): Define for new enough
10536 (version_etc): Use it, to catch bugs with trailing NULL.
10537 * lib/version-etc.c (version_etc_arn): Delete unused argument.
10538 (version_etc_va): Fix logic bug.
10539 * modules/version-etc-tests: Add test.
10540 * tests/test-version-etc.c: New file.
10541 * tests/test-version-etc.sh: Likewise.
10543 2009-06-25 Sam Steingold <sds@gnu.org>
10545 * mbrtowc.m4 (gl_MBRTOWC_SANITYCHECK): Include <stdlib.h>, for the
10546 mbtowc declaration.
10548 2009-06-25 Eric Blake <ebb9@byu.net>
10550 fpurge: migrate into <stdio.h>
10551 * lib/fpurge.h: Delete...
10552 * lib/stdio.in.h (fpurge): ...and declare here, instead.
10553 * lib/fpurge.c (fpurge): Change declaring header.
10554 * modules/fpurge (Files): Drop deleted file.
10555 (Depends-on): Add stdio.
10556 (configure.ac): Set witness.
10557 * modules/stdio (Makefile.am): Support fpurge macros.
10558 * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
10559 * m4/fpurge.m4 (gl_FUNC_FPURGE): Set appropriate variables.
10560 * lib/fflush.c: Update client.
10561 * tests/test-fpurge.c: Likewise.
10562 * NEWS: Mention the change.
10564 2009-06-25 Sergey Poznyakoff <gray@gnu.org.ua>
10566 * lib/argp-version-etc.c (program_authors): Add const
10568 * lib/version-etc.c: Fix typos in the comments.
10569 * modules/argp-version-etc: Depends on version-etc.
10571 2009-06-25 Sergey Poznyakoff <gray@gnu.org.ua>
10573 argp-version-etc: new module.
10575 * lib/argp-version-etc.c: New file.
10576 * lib/argp-version-etc.h: New file.
10577 * modules/argp-version-etc: New file.
10578 * modules/argp-version-etc-tests: New file.
10579 * tests/test-argp-version-etc.c: New test.
10580 * tests/test-argp-version-etc-1.sh: New test.
10582 2009-06-25 Sergey Poznyakoff <gray@gnu.org.ua>
10584 Provide additional interfaces and documentation for version-etc
10587 * lib/version-etc.c (version_etc_arn, version_etc_ar): New
10589 * lib/version-etc.h (version_etc_arn, version_etc_ar): New
10592 2009-06-24 Bruno Haible <bruno@clisp.org>
10594 * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Fix description of
10595 HAVE_LIB${NAME} macro.
10596 Reported by Sam Steingold <sds@gnu.org>.
10598 2009-06-23 Simon Josefsson <simon@josefsson.org>
10600 * modules/hash-tests (test_hash_LDADD): Link to libintl when
10603 2009-06-21 Bruno Haible <bruno@clisp.org>
10605 Make two consecutive identical invocations of AC_LIB_HAVE_LINKFLAGS
10607 * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Reset HAVE_LIB${NAME}
10608 together with LIB${NAME}, LTLIB${NAME}.
10609 Reported by Sam Steingold <sds@gnu.org>.
10611 2009-06-20 Jim Meyering <meyering@redhat.com>
10613 tests: make sc_require_test_exit_idiom more generic
10614 * top/maint.mk (Exit_witness_file): New overridable variable.
10615 (sc_require_test_exit_idiom): Don't hard-code tests/test-lib.sh.
10616 Relax test for /^Exit \$fail$$/ to just /^Exit ./.
10618 2009-06-19 Jim Meyering <meyering@redhat.com>
10620 hash: reverse order of src/dst parameters in an internal interface
10621 * lib/hash.c (transfer_entries): Reverse order of parameters to
10622 put DST before SRC. Adjust callers.
10624 tests: test-hash: avoid wholesale duplication
10625 * tests/test-hash.c (main): Don't copy/paste a 60-line loop.
10626 Instead, use a loop and add a single conditional.
10628 tests: test-hash: allow seed selection via a command line argument
10629 * tests/test-hash.c (get_seed): New function.
10632 2009-06-19 Eric Blake <ebb9@byu.net>
10634 hash: avoid memory leak on allocation failure
10635 * lib/hash.c: (hash_rehash): Avoid memory leak on allocation
10636 failure. Factor repeated algorithm...
10637 (transfer_entries): ...into new helper routine.
10638 (hash_delete): React to hash_rehash return value.
10640 hash: reduce memory pressure in hash_rehash no-op case
10641 * lib/hash.c (next_prime): Avoid overflow.
10642 (hash_initialize): Factor bucket size computation...
10643 (compute_bucket_size): ...into new helper function.
10644 (hash_rehash): Use new function and open coding to reduce memory
10645 pressure, and avoid a memory leak in USE_OBSTACK code.
10646 Reported by Jim Meyering.
10648 2009-06-18 Eric Blake <ebb9@byu.net>
10650 hash: make rotation more obvious
10651 * modules/hash (Depends-on): Add bitrotate and stdint.
10652 * lib/bitrotate.h (rotl_sz, rotr_sz): New functions.
10653 * lib/hash.c (headers): Drop limits.h. Add stdint.h.
10654 (SIZE_MAX): Rely on headers for definition.
10655 (hash_string) [USE_DIFF_HASH]: Use rotl_sz.
10656 (raw_hasher): Use rotr_sz.
10657 Suggested by Jim Meyering.
10659 hash: fix memory leak in last patch
10660 * lib/hash.c (hash_rehash): Avoid memory leak.
10662 hash: avoid no-op rehashing
10663 * lib/hash.c (hash_rehash): Recognize useless rehash attempts.
10665 hash: provide default callback functions
10666 * lib/hash.c (raw_hasher, raw_comparator): New functions.
10667 (hash_initialize): Use them as defaults.
10668 * tests/test-hash.c (main): Test this.
10670 hash: minor optimization
10671 * lib/hash.c (hash_lookup, hash_find_entry): Avoid function call
10673 (hash_initialize): Document this promise.
10674 (hash_do_for_each, hash_clear, hash_free): Use C89 syntax.
10675 * tests/test-hash.c (hash_compare_strings): Test this.
10677 2009-06-18 Bruno Haible <bruno@clisp.org>
10679 * m4/strstr.m4 (gl_FUNC_STRSTR): Skip linear time test if strstr is
10680 going to be replaced anyway.
10682 2009-06-18 Bruno Haible <bruno@clisp.org>
10684 * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Invoke AC_LIBOBJ only
10686 (gl_FUNC_STRCASESTR): Skip linear time test if strcasestr is going to
10687 be replaced anyway.
10689 2009-06-18 Eric Blake <ebb9@byu.net>
10691 hash: check for resize before insertion
10692 * lib/hash.c (hash_insert): Check whether bucket usage exceeds
10693 threshold before insertion, so that a pathological hash_rehash
10694 that fills every bucket can still trigger another rehash.
10696 2009-06-18 Jim Meyering <meyering@redhat.com>
10698 hash-tests: add a loop around the small tests
10699 * tests/test-hash.c (main): Repeat small tests with selected
10700 small initial table sizes.
10702 2009-06-17 Eric Blake <ebb9@byu.net>
10704 hash: minor cleanups
10705 * lib/hash.h (hash_entry): Make opaque, by moving...
10706 * lib/hash.c (hash_entry): ...here.
10707 (hash_insert): Clarify restrictions on what can be inserted.
10708 (hash_get_next): Clarify when it is safe to remove an element
10710 (check_tuning): Skip verification when tuning is known safe.
10711 (hash_initialize): Clarify restrictions on tuning.
10713 2009-06-17 Jim Meyering <jim@meyering.net>
10714 and Eric Blake <ebb9@byu.net>
10716 hash-tests: new module
10717 * modules/hash-tests: New file.
10718 * tests/test-hash.c: New file.
10720 2009-06-17 Eric Blake <ebb9@byu.net>
10722 strstr-simple: document new module
10723 * MODULES.html.sh: Document new module.
10725 strstr, strcasestr: replace on platforms with broken memchr
10726 * modules/strstr: Split into...
10727 * modules/strstr-simple: ...new module that does not care about
10728 performance, but does care about glibc bug.
10729 * m4/strstr.m4 (gl_FUNC_STRSTR): Split...
10730 (gl_FUNC_STRSTR_SIMPLE): ...into new macro, which replaces strstr
10731 if platform memchr is broken, per Debian bug 521737.
10732 * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): React to broken
10734 * m4/memchr.m4 (gl_FUNC_MEMCHR): Only expand once.
10735 * doc/posix-functions/strstr.texi (strstr): Document the fix.
10736 * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
10737 * modules/mountlist (Depends-on): Add strstr-simple.
10738 * modules/gen-uni-tables (Depends-on): Likewise.
10739 * modules/argz (Depends-on): Add strstr.
10741 2009-06-17 Bruno Haible <bruno@clisp.org>
10743 * modules/posix_spawn-internal (Depends-on): Add errno.
10745 2009-06-17 Bruno Haible <bruno@clisp.org>
10747 Define missing ESTALE on Interix 3.5.
10748 * lib/errno.in.h (ESTALE): Assign a value if missing.
10749 * lib/strerror.c (rpl_strerror): Handle missing ESTALE and ECANCELED.
10750 * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Also test whether ESTALE is
10752 * doc/posix-headers/errno.texi: Mention the Interix bug.
10753 Reported by Jay Krell <jay.krell@cornell.edu> via Eric Blake.
10755 2009-06-15 Eric Blake <ebb9@byu.net>
10757 memchr, memchr2: add valgrind exception
10758 * lib/memchr.valgrind: New file.
10759 * lib/memchr2.valgrind: New file.
10760 * modules/memchr (Files): Distribute valgrind file.
10761 * modules/memchr2 (Files): Likewise.
10763 docs: memchr is no longer obsolete
10764 * MODULES.html.sh: Move memchr from obsolete to string.h section.
10765 * lib/string.in.h (memchr): Simplify logic.
10767 2009-06-14 Jim Meyering <meyering@redhat.com>
10769 link-follow: fix the "checking..." message to not mention trailing slash
10770 * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): This test has
10771 never considered trailing slashes.
10773 2009-06-14 Bruno Haible <bruno@clisp.org>
10775 * m4/memchr.m4: Mention also the bug on IA-64.
10776 * doc/posix-functions/memchr.texi: Likewise.
10778 2009-06-12 Eric Blake <ebb9@byu.net>
10780 memchr: detect broken x86_64 and alpha implementations
10781 * modules/memchr-tests (Depends-on): Move mmap detection...
10782 * modules/memchr (Depends-on): ...here.
10783 (configure.ac): Set indicator.
10784 * lib/string.in.h (memchr): Declare replacement.
10785 * modules/string (Makefile.am): Trigger replacement.
10786 * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Likewise.
10787 * m4/memchr.m4 (gl_FUNC_MEMCHR): Use mmap to detect platform
10789 * doc/posix-functions/memchr.texi (memchr): Document the bug.
10790 * modules/getpagesize (License): Relax license.
10792 2009-06-11 Bruno Haible <bruno@clisp.org>
10794 * lib/idpriv.h: Add more references.
10796 2009-06-08 Bruno Haible <bruno@clisp.org>
10798 Tests for module 'idpriv-droptemp'.
10799 * modules/idpriv-droptemp-tests: New file.
10800 * tests/test-idpriv-droptemp.sh: New file.
10801 * tests/test-idpriv-droptemp.su.sh: New file.
10802 * tests/test-idpriv-droptemp.c: New file.
10804 New module 'idpriv-droptemp'.
10805 * lib/idpriv-droptemp.c: New file.
10806 * modules/idpriv-droptemp: New file.
10808 2009-06-08 Bruno Haible <bruno@clisp.org>
10810 Tests for module 'idpriv-drop'.
10811 * modules/idpriv-drop-tests: New file.
10812 * tests/test-idpriv-drop.sh: New file.
10813 * tests/test-idpriv-drop.su.sh: New file.
10814 * tests/test-idpriv-drop.c: New file.
10816 New module 'idpriv-drop'.
10817 * lib/idpriv.h: New file.
10818 * lib-idpriv-drop.c: New file.
10819 * m4/idpriv.m4: New file.
10820 * modules/idpriv-drop: New file.
10822 2009-06-08 Bruno Haible <bruno@clisp.org>
10824 * modules/unistdio/u8-vasnprintf (Depends-on): Add memchr.
10825 * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
10826 * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
10827 * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
10828 * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
10829 * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
10830 * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
10832 2009-06-08 Eric Blake <ebb9@byu.net>
10834 test-strstr: use memory fence, when possible
10835 * tests/test-strstr.c (main): Use memory fence, in order to be
10836 more likely to trigger Debian bug 521737.
10837 * modules/strstr-tests (Files): Pull in additional files.
10839 memchr: no longer obsolete, for wider field testing
10840 * modules/memchr (Status, Notice): Delete, this module is no
10842 * modules/vasnprintf (Depends-on): Add memchr.
10844 2009-06-07 Jim Meyering <meyering@redhat.com>
10846 hash: declare some functions with the warn_unused_result attribute
10847 * lib/hash.h (__attribute__, ATTRIBUTE_WUR): Define.
10849 2009-06-07 Bruno Haible <bruno@clisp.org>
10851 * tests/test-alignof.c: Don't test int64_t if it does not exist.
10852 Reported by Eric Blake.
10854 2009-06-06 Eric Blake <ebb9@byu.net>
10856 test-alignof: fix typo with long double
10857 * tests/test-alignof.c (CHECK): Use longdouble typedef to avoid
10860 2009-06-06 Neil Jerram <neil@ossau.uklinux.net> (tiny change)
10862 Escape non-texinfo { and }s.
10863 * doc/ld-output-def.texi (Visual Studio Compatibility): Fix
10866 2009-06-04 Jim Meyering <meyering@redhat.com>
10868 gitlog-to-changelog: don't infloop on an empty commit log
10869 * build-aux/gitlog-to-changelog: Warn about an empty log message.
10870 Reported by Boris Petersen <transacid@centerim.org>.
10872 2009-06-03 Mike Frysinger <vapier@gentoo.org>
10874 version-etc: extend for packagers
10875 Add three new configure options, intended for packagers:
10876 --with-packager="packager name"
10877 --with-packager-version="packager-specific version"
10878 --with-packager-bug-reports="packager bug reporting"
10879 An example with coreutils:
10881 --with-packager=Gentoo \
10882 --with-packager-bug-report=http://bugs.gentoo.org/ \
10883 --with-packager-version="patchset 1.6"
10884 $ ./src/ls --version | head -n2
10885 ls (GNU coreutils) 7.1-dirty
10886 Packaged by Gentoo (patchset 1.6)
10887 Note that the bug reporting info via --help doesn't show up because
10888 coreutils uses its own custom emit_bug_reporting_address() implementation
10889 in src/system.h. If it didn't, it'd look like:
10890 $ ./src/ls --help | tail -n4
10891 Report bugs to <bug-coreutils@gnu.org>.
10892 Report Gentoo bugs to <http://bugs.gentoo.org/>.
10893 GNU coreutils home page: <http://www.gnu.org/software/coreutils/>.
10894 General help using GNU software: <http://www.gnu.org/gethelp/>.
10895 * lib/version-etc.c: Print new information, if provided.
10896 * m4/version-etc.m4: New file.
10897 * modules/version-etc (Files): Add m4/version-etc.m4.
10898 (configure.ac): Add gl_VERSION_ETC.
10900 2009-05-31 Bruno Haible <bruno@clisp.org>
10902 * tests/test-alignof.c: Include <stdint.h>. Check also 'long double'
10904 * modules/alignof-tests (Dependencies): Add stdint.
10905 Reported by Eric Blake.
10907 2009-05-31 Bruno Haible <bruno@clisp.org>
10909 * lib/alignof.h (alignof_slot, alignof_type, alignof): Document
10910 restriction due to compiler bugs.
10911 Reported by Eric Blake.
10913 2009-05-31 Simon Josefsson <simon@josefsson.org>
10914 Bruno Haible <bruno@clisp.org>
10916 Fix test-alignof failure.
10917 * lib/alignof.h (alignof_slot): New macro.
10918 (alignof_type): New macro, with the same semantics as the previous
10920 (alignof): Alias to alignof_slot.
10921 * tests/test-alignof.c (CHECK): Check alignof_slot, not alignof. Also
10922 check that the results are usable as constant expressions.
10924 2009-05-31 Bruno Haible <bruno@clisp.org>
10926 * tests/zerosize-ptr.h (zerosize_ptr): Specify more details.
10927 * tests/test-memchr.c (main): Check that memchr does not read past the
10928 first occurrence of the byte.
10929 * tests/test-strstr.c (main): Update comment.
10930 Suggested by Eric Blake.
10932 2009-05-30 Bruno Haible <bruno@clisp.org>
10934 * doc/ld-output-def.texi (Visual Studio Compatibility): Explain in more
10935 detail how to use dumpbin.
10936 Reported by David Byron <dbyron@dbyron.com>.
10938 2009-06-02 Simon Josefsson <simon@josefsson.org>
10940 * tests/test-parse-duration.sh: Don't use non-portable 'read -u3'.
10942 2009-06-02 Simon Josefsson <simon@josefsson.org>
10944 * m4/manywarnings.m4: Add GCC 4.4 warnings.
10946 2009-05-28 Bruno Haible <bruno@clisp.org>
10948 * gnulib-tool (func_import): Don't do HAVE_CONFIG_H replacements on
10951 2009-05-28 Simon Josefsson <simon@josefsson.org>
10953 * gnulib-tool (func_import): Transform license on build-aux/ files too.
10955 2009-05-27 Simon Josefsson <simon@josefsson.org>
10957 * gnulib-tool (sed_transform_main_lib_file)
10958 (sed_transform_testsrelated_lib_file): : Don't use non-POSIX
10961 2009-05-26 Simon Josefsson <simon@josefsson.org>
10963 * tests/test-strstr.c: Add another self-test.
10964 * tests/test-strstr.c: Rewrite to use malloc/strcpy instead of
10965 strdup. Suggested by Eric Blake <ebb9@byu.net>.
10967 2009-05-23 Bruno Haible <bruno@clisp.org>
10969 * doc/havelib.texi (AC_LIB_HAVE_LINKFLAGS): Update for 2009-04-26
10972 2009-05-21 Bruno Haible <bruno@clisp.org>
10974 Simplify use of mode_t varargs.
10975 * lib/open.c (open): Use PROMOTED_MODE_T instead of a conditional that
10976 uses 'mode_t' or 'int'.
10977 * lib/openat.c (openat): Likewise.
10978 * lib/open-safer.c (open_safer): Likewise.
10979 * m4/mode_t.m4: New file.
10980 * m4/open.m4 (gl_PREREQ_OPEN): Require gl_PROMOTED_TYPE_MODE_T.
10981 * m4/openat.m4 (gl_PREREQ_OPENAT): Likewise.
10982 * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Likewise.
10983 * modules/open (Files): Add m4/mode_t.m4.
10984 * modules/openat (Files): Likewise.
10985 * modules/fcntl-safer (Files): Likewise.
10986 Suggested by Eric Blake.
10988 2009-05-21 Pádraig Brady <P@draigbrady.com>
10990 * doc/glibc-functions/fallocate.texi: New file.
10991 * doc/gnulib.texi: Include it.
10993 2009-05-21 Eric Blake <ebb9@byu.net>
10994 Bruno Haible <bruno@clisp.org>
10996 * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Remove redundant m4_quote
10998 * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
11000 2009-05-21 Eric Blake <ebb9@byu.net>
11001 Bruno Haible <bruno@clisp.org>
11003 Second attempt to work around an AIX 5.3, 6.1 compiler bug with
11004 include_next. Fix of 2008-11-20 commit.
11005 * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Also set
11006 NEXT_AS_FIRST_DIRECTIVE_FOO_H.
11007 * lib/math.in.h: Use NEXT_AS_FIRST_DIRECTIVE_MATH_H instead of
11009 * modules/math (Makefile.am): Substitute NEXT_AS_FIRST_DIRECTIVE_MATH_H
11010 instead of NEXT_MATH_H.
11012 2009-05-21 Bruno Haible <bruno@clisp.org>
11014 Avoid redefinition warnings for SIZE_MAX.
11015 * m4/size_max.m4 (gl_SIZE_MAX): Avoid redefining SIZE_MAX in config.h.
11016 Reported by Simon Josefsson.
11018 2009-05-21 Bruno Haible <bruno@clisp.org>
11020 * m4/size_max.m4 (gl_SIZE_MAX): Use AC_CACHE_CHECK instead of
11023 2009-05-20 Bruno Haible <bruno@clisp.org>
11025 Make zeroptr.h work on mingw.
11026 * tests/zerosize-ptr.h: Test for the presence of <sys/mman.h> and
11028 * modules/memchr-tests (configure.ac): Also test for sys/mman.h.
11029 * modules/memchr2-tests (configure.ac): Likewise.
11030 * modules/memcmp-tests (configure.ac): Likewise.
11031 * modules/memmem-tests (configure.ac): Likewise.
11032 * modules/memrchr-tests (configure.ac): Likewise.
11033 Reported by Simon Josefsson.
11035 2009-05-20 Simon Josefsson <simon@josefsson.org>
11037 * tests/test-glob.c: Include string.h for strcmp prototype.
11039 2009-05-20 Simon Josefsson <simon@josefsson.org>
11041 * modules/getdelim (Depends-on): Add explicit stdint, although it
11042 was implicitly already pulled in via realloc-posix.
11043 * lib/getdelim.c: Get SIZE_MAX from stdint.h.
11045 2009-05-20 Simon Josefsson <simon@josefsson.org>
11047 MinGW and IRIX does not have sa_family_t type. Reported by "Tom
11048 G. Christensen" <tgc@jupiterrise.com>.
11049 * m4/sys_socket_h.m4: Check for sa_family_t.
11050 * lib/sys_socket.in.h: Typedef sa_family_t when needed.
11051 * modules/sys_socket: Substitute HAVE_SA_FAMILY_T.
11052 * tests/test-sys_socket.c: Check that sa_family_t works.
11054 2009-05-18 Eric Blake <ebb9@byu.net>
11056 maint.mk: allow gnulib_dir in VPATH build
11057 * top/maint.mk (gnulib_dir): Make relative to $(srcdir).
11059 2009-05-15 Jim Meyering <meyering@redhat.com>
11061 maint.mk: Give gnulib_dir a default definition.
11062 * top/maint.mk (gnulib_dir): Define to 'gnulib', by default.
11063 Thus, most packages no longer need to specify this variable in cfg.mk
11065 2009-05-14 Tom Prince <tom.prince@ualberta.net> (tiny change)
11067 rename.m4: fix typos that would make non-mingw cross-configure fail
11068 * m4/rename.m4 (gl_FUNC_RENAME): Fix typos.
11070 2009-05-13 Eric Blake <ebb9@byu.net>
11072 mmap-anon: avoid out-of-order autoconf expansion
11073 * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Use correct
11074 SYSTEM_EXTENSIONS macro to silence warnings from autoconf 2.63b.
11075 * modules/memchr-tests (Depends-on): Add extensions.
11076 * modules/memchr2-tests (Depends-on): Add extensions.
11077 * modules/memcmp-tests (Depends-on): Add extensions.
11078 * modules/memmem-tests (Depends-on): Add extensions.
11079 * modules/memrchr-tests (Depends-on): Add extensions.
11081 2009-05-13 Bruno Haible <bruno@clisp.org>
11083 Make some tests ISO C 99 compliant.
11084 * tests/zerosize-ptr.h: New file.
11085 * tests/test-memchr.c: Include zerosize-ptr.h.
11086 (main): Use a zero-size object pointer instead of NULL.
11087 * tests/test-memchr2.c: Include zerosize-ptr.h.
11088 (main): Use a zero-size object pointer instead of NULL.
11089 * tests/test-memcmp.c: Include zerosize-ptr.h.
11090 (main): Use a zero-size object pointer instead of NULL.
11091 * tests/test-memmem.c: Include zerosize-ptr.h.
11092 (main): Use a zero-size object pointer instead of NULL.
11093 * tests/test-memrchr.c: Include zerosize-ptr.h.
11094 (main): Use a zero-size object pointer instead of NULL.
11095 * modules/memchr-tests (Files): Add tests/zerosize-ptr.h,
11097 (Depends-on): Add getpagesize.
11098 (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
11099 * modules/memchr2-tests (Files): Add tests/zerosize-ptr.h,
11101 (Depends-on): Add getpagesize.
11102 (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
11103 * modules/memcmp-tests (Files): Add tests/zerosize-ptr.h,
11105 (Depends-on): Add getpagesize.
11106 (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
11107 * modules/memmem-tests (Files): Add tests/zerosize-ptr.h,
11109 (Depends-on): Add getpagesize.
11110 (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
11111 * modules/memrchr-tests (Files): Add tests/zerosize-ptr.h,
11113 (Depends-on): Add getpagesize.
11114 (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
11116 2009-05-12 Bruno Haible <bruno@clisp.org>
11118 Tests for module 'alignof'.
11119 * modules/alignof-tests: New file.
11120 * tests/test-alignof.c: New file.
11122 2009-05-12 Bruno Haible <bruno@clisp.org>
11125 * lib/alignof.h (alignof): Remove special cases for AIX and HP-UX
11126 vendor compilers that are always correct.
11128 2009-05-12 Bruno Haible <bruno@clisp.org>
11130 Make the MAP_ANONYMOUS detection work on HP-UX 11.
11131 * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Check whether mmap exists, but
11132 not whether its fully works.
11134 2009-05-12 Bruno Haible <bruno@clisp.org>
11136 * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Add comments.
11138 2009-05-12 Jim Meyering <meyering@redhat.com>
11140 * top/maint.mk: Adjust backslash alignment.
11142 2009-05-11 Simon Josefsson <simon@josefsson.org>
11144 * top/maint.mk: Make $(srcdir)/build-aux configurable.
11146 2009-05-11 Eric Blake <ebb9@byu.net>
11148 argp: avoid undefined behavior
11149 * lib/argp-fmtstream.c (weak_alias): Pass correct types to ctype
11152 2009-05-08 Simon Josefsson <simon@josefsson.org>
11154 * tests/test-vc-list-files-git.sh: Do git config of user.email and
11155 user.name to prevent git commit from complaining.
11157 2009-05-10 Bruno Haible <bruno@clisp.org>
11159 * gnulib-tool (func_import, func_create_testdir, copy-file): Change
11160 sed_rewrite_old_files, sed_rewrite_new_files, sed_rewrite_files so that
11161 it rewrites every file name only once.
11162 Reported by Simon Josefsson. Helped by Ralf Wildenhues.
11164 2009-05-08 Bruno Haible <bruno@clisp.org>
11166 * lib/sys_socket.in.h (_SS_PADSIZE): Use a conditional expression
11169 2009-05-08 Simon Josefsson <simon@josefsson.org>
11171 * m4/sys_socket_h.m4: Test for ws2tcpip.h earlier, needed for
11172 sockaddr_storage test.
11174 2009-05-07 Simon Josefsson <simon@josefsson.org>
11176 * modules/sys_socket (Makefile.am): Substitute
11177 HAVE_STRUCT_SOCKADDR_STORAGE. Depend on alignof.
11178 * m4/sys_socket_h.m4: Check for sockaddr_storage.
11179 * lib/sys_socket.in.h (sockaddr_storage): Define when needed.
11180 * tests/test-sys_socket.c: Check sockaddr_storage.
11182 2009-05-08 Bruno Haible <bruno@clisp.org>
11184 New module 'alignof'.
11185 * lib/alignof.h: New file.
11186 * modules/alignof: New file.
11188 2009-05-04 David Bartley <dtbartle@csclub.uwaterloo.ca>
11189 Bruno Haible <bruno@clisp.org>
11191 Fix test-file-has-acl on FreeBSD.
11192 * tests/test-file-has-acl.sh: Also test a directory. On FreeBSD, the
11193 mask is implicitly added.
11194 * tests/test-file-has-acl.c: Include <signal.h>.
11195 (main): Terminate the test after 5 seconds.
11196 * modules/acl-tests (configure.ac): Check for alarm function.
11198 2009-05-04 Bruno Haible <bruno@clisp.org>
11200 Exploit new semantics of AC_DEFUN_ONCE available since 2009-01-26.
11201 * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Remove outdated comment.
11202 * modules/errno (configure.ac): Drop AC_REQUIRE.
11203 * m4/multiarch.m4 (gl_MULTIARCH): Remove outdated comment.
11204 * modules/multiarch (configure.ac): Drop AC_REQUIRE.
11206 2009-05-04 Simon Josefsson <simon@josefsson.org>
11208 * modules/glob-tests: New module.
11209 * tests/test-glob.c: Add.
11211 2009-05-04 Simon Josefsson <simon@josefsson.org>
11213 * modules/fnmatch-tests: New module.
11214 * tests/test-fnmatch.c: Add.
11216 2009-05-04 Eric Blake <ebb9@byu.net>
11218 maint: make the new no-submodule-changes rule VPATH-safe
11219 * top/maint.mk (no-submodule-changes): Don't assume a srcdir build.
11221 2009-05-04 David Bartley <dtbartle@csclub.uwaterloo.ca>
11222 Bruno Haible <bruno@clisp.org>
11224 acl: Fix infinite loop on FreeBSD.
11225 * lib/acl_entries.c (acl_entries) [Linux, FreeBSD]: Fix interpretation
11226 of return value from acl_get_entry.
11227 * lib/file-has-acl.c (acl_access_nontrivial) [Linux, FreeBSD]:
11230 2009-05-03 Bruno Haible <bruno@clisp.org>
11232 * lib/acl-internal.h (acl_entries): Clarify return value.
11233 * lib/acl_entries.c (acl_entries): Likewise.
11235 2009-05-04 David Bartley <dtbartle@csclub.uwaterloo.ca>
11237 Bug fix in acl module.
11238 * lib/set-mode-acl.c: Use correct struct with ACL_SETACL.
11240 2009-05-03 Bruno Haible <bruno@clisp.org>
11242 Create gperf-generated file in the source dir, not in the build dir.
11243 * modules/iconv_open (iconv_open-aix.h, iconv_open-hpux.h,
11244 iconv_open-irix.h, iconv_open-osf.h): Create file in the source tree.
11245 * modules/unicase/locale-language (unicase/locale-languages.h):
11247 * modules/unicase/special-casing (unicase/special-casing-table.h):
11249 * modules/unictype/property-byname (unictype/pr_byname.h): Likewise.
11250 * modules/unictype/scripts (unictype/scripts_byname.h): Likewise.
11251 * modules/uninorm/composition (uninorm/composition-table.h): Likewise.
11252 Reported by Ralf Wildenhues.
11254 2009-05-03 Bruno Haible <bruno@clisp.org>
11256 * modules/fnmatch (Description, configure.ac): Taken from
11258 * modules/fnmatch-posix: Turn into a symbolic reference to the
11259 'fnmatch' module, and deprecate.
11260 * doc/posix-functions/fnmatch.texi: Mention the fnmatch module.
11262 2009-05-03 Bruno Haible <bruno@clisp.org>
11264 * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF,
11265 gl_PREREQ_VASNPRINTF_LONG_DOUBLE): Define through AC_DEFUN_ONCE.
11266 Reported by Ralf Wildenhues.
11268 2009-05-04 Simon Josefsson <simon@josefsson.org>
11270 * m4/fnmatch.m4: Fix fnmatch re-define.
11272 2009-04-27 David Bartley <dtbartle@csclub.uwaterloo.ca>
11274 priv-set: new module and tests; adapt write-any-file
11275 * lib/priv-set.c: New file.
11276 * lib/priv-set.h: New file.
11277 * lib/unlinkdir.c: Make cannot_unlink_dir thread-safe.
11278 * lib/write-any-file.c: Simplify by using priv-set module.
11279 * m4/priv-set.m4: New file.
11280 * modules/priv-set: New file.
11281 * modules/unlinkdir: Add dependency on priv-set module.
11282 * modules/write-any-file: Likewise.
11284 Tests for module 'priv-set'.
11285 * modules/priv-set-tests: New file.
11286 * tests/test-priv-set.c: New file.
11288 2009-05-03 Jim Meyering <meyering@redhat.com>
11289 Bruno Haible <bruno@clisp.org>
11291 * lib/propername.c (proper_name_utf8): Ignore no-op translations;
11292 use the converted UTF-8 variant of the name instead.
11294 2009-05-03 Jim Meyering <meyering@redhat.com>
11296 tests: tighten some getdate tests
11297 * tests/test-getdate.c (main): Tighten tests: require equality,
11298 not just greater than. Set TZ envvar to UTC0.
11300 2009-05-03 Giuseppe Scrivano <gscrivano@gnu.org>
11302 getdate: correctly interpret "next monday" when run on a Monday
11303 * lib/getdate.y (get_date): Correct the calculation of tm_mday so
11304 that e.g., "next tues" (when run on a tuesday) results in a date
11305 that is one week in the future, and not today's date.
11306 I.e., add a week when the wday is the same as the current one.
11307 Reported by Tom Broadhurst in http://savannah.gnu.org/bugs/?25406,
11308 and earlier by Martin Bernreuther and Jan Minář.
11309 * tests/test-getdate.c (main): Check that "next DAY" is always in
11310 the future and that "last DAY" is always in the past.
11312 2009-05-02 Jim Meyering <meyering@redhat.com>
11314 build: ensure that a release build fails when a submodule is unclean
11315 * top/maint.mk (no-submodule-changes): New rule.
11316 (alpha beta major): Depend on it.
11318 2009-05-02 Bruno Haible <bruno@clisp.org>
11320 Remove incompatibility between modules fnmatch-posix and fnmatch-gnu.
11321 * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX, gl_FUNC_FNMATCH_GNU): Use a
11322 shell variable gl_fnmatch_required to detect which variant is
11324 (_AC_FUNC_FNMATCH_IF, _AC_LIBOBJ_FNMATCH): Remove macros. Inlined into
11325 gl_FUNC_FNMATCH_POSIX.
11326 * gnulib-tool (func_create_testdir, func_create_megatestdir): Don't
11327 exclude fnmatch-posix.
11329 2009-05-02 Bruno Haible <bruno@clisp.org>
11331 Relicense mbsrtowcs and strnlen1 under LGPLv2+.
11332 * modules/mbsrtowcs (License): Change to LGPLv2+.
11333 * modules/strnlen1 (License): Likewise.
11334 Reported by Simon Josefsson.
11336 2009-05-02 Bruno Haible <bruno@clisp.org>
11338 * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Say "guessing no" instead of
11340 (gl_FUNC_FNMATCH_POSIX, gl_FUNC_FNMATCH_GNU): Update. Don't assume that
11341 gnulib-tool was called with option --source-base=lib.
11343 2009-05-02 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
11345 Use automake *-local hooks without commands, for extensibility.
11346 * modules/localcharset (Makefile.am): Rename install-exec-local
11347 rule to install-exec-localcharset, and make it a prerequisite of
11348 install-exec-local. Likewise, rename the uninstall-local rule to
11349 uninstall-localcharset, and make it a prerequisite of the former.
11351 2009-05-01 Bruno Haible <bruno@clisp.org>
11353 * lib/wchar.in.h (wcsnrtombs): Define if REPLACE_WCSNRTOMBS is 1.
11354 * m4/wcsnrtombs.m4 (gl_FUNC_WCSRTOMBS): Invoke gl_MBSTATE_T_BROKEN, and
11355 set REPLACE_WCSNRTOMBS if mbstate_t must be replaced.
11356 * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCSNRTOMBS.
11357 * modules/wchar (Makefile.am): Substitute REPLACE_WCSNRTOMBS.
11358 * modules/wcsnrtombs (Files): Add m4/mbrtowc.m4, m4/locale-ja.m4,
11359 m4/locale-zh.m4, m4/codeset.m4.
11361 * m4/wcsrtombs.m4 (gl_FUNC_WCSNRTOMBS): Invoke gl_MBSTATE_T_BROKEN, and
11362 set REPLACE_WCSRTOMBS if mbstate_t must be replaced.
11363 * modules/wcsrtombs (Files): Add m4/mbrtowc.m4, m4/locale-ja.m4,
11366 * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Invoke gl_MBSTATE_T_BROKEN, and set
11367 REPLACE_WCRTOMB if mbstate_t must be replaced.
11368 * modules/wcrtomb (Files): Add m4/mbrtowc.m4.
11369 Reported by Jens Rehsack <rehsack@googlemail.com> via Eric Blake.
11371 2009-05-01 Bruno Haible <bruno@clisp.org>
11373 Avoid compiler warnings when redefining macros defined by <libintl.h>.
11374 * lib/gettext.h [!ENABLE_NLS] (gettext, dgettext, dcgettext, ngettext,
11375 dngettext, dcngettext, textdomain, bindtextdomain,
11376 bind_textdomain_codeset): Undefine before redefining.
11378 2009-04-30 Bruno Haible <bruno@clisp.org>
11380 Fix bug introduced on 2009-04-25.
11381 * lib/math.in.h (gl_signbitf_OPTIMIZED_MACRO,
11382 gl_signbitd_OPTIMIZED_MACRO, gl_signbitl_OPTIMIZED_MACRO): New macros.
11383 * lib/signbitf.c (gl_signbitd): Undefine if gl_signbitf_OPTIMIZED_MACRO
11385 * lib/signbitd.c (gl_signbitd): Undefine if gl_signbitd_OPTIMIZED_MACRO
11387 * lib/signbitl.c (gl_signbitd): Undefine if gl_signbitl_OPTIMIZED_MACRO
11389 Reported by Elbert_Pol <elbert.pol@gmail.com>.
11391 2009-04-28 Bruno Haible <bruno@clisp.org>
11394 * lib/unistr.h (u*_cmp2): Clarify what memcmp2 is.
11395 * lib/uninorm.h (u*_normxfrm): Fix description of return value.
11396 * lib/unicase.h (u*_casexfrm): Likewise.
11397 Reported by Paolo Bonzini.
11399 2009-04-28 Bruno Haible <bruno@clisp.org>
11401 Fix a compilation error.
11402 * lib/mbsrtowcs-state.c (_gl_mbsrtowcs_state): Fix initializer.
11403 * lib/wcsrtombs-state.c (_gl_wcsrtombs_state): Likewise.
11404 Reported by Jim Meyering.
11406 2009-04-27 Bruno Haible <bruno@clisp.org>
11408 New module 'libunistring'.
11409 * modules/libunistring: New file.
11410 * m4/libunistring.m4: New file.
11411 * MODULES.html.sh (Unicode string functions): Add it.
11413 2009-04-27 Eric Blake <ebb9@byu.net>
11415 maint.mk: allow package-specific header to provide <config.h>
11416 * top/maint.mk (sc_require_config_h): New variable.
11417 (sc_require_config_h, sc_require_config_h_first): Use it.
11419 2009-04-27 Simon Josefsson <simon@josefsson.org>
11421 * top/maint.mk (sc_avoid_if_before_free): Except
11422 useless-if-before-free script.
11424 2009-04-27 Eric Blake <ebb9@byu.net>
11426 maintainer-makefile: depend on all required helper scripts
11427 * modules/maintainer-makefile (Depends-on): Add vc-list-files and
11428 useless-if-before-free.
11429 * top/maint.mk (VC_LIST, sc_avoid_if_before_free): Use local
11430 version, rather than assuming gnulib checkout is available.
11431 Reported by Simen Josefsson.
11433 2009-04-26 Bruno Haible <bruno@clisp.org>
11435 Make the lib vs. lib64 recognition work on openSUSE 11 with "gcc -m32".
11436 * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): Ignore paths that end in
11439 2009-04-26 Bruno Haible <bruno@clisp.org>
11441 * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Accept a fifth argument.
11442 * m4/libsigsegv.m4 (gl_LIBSIGSEGV): Simplify by using
11443 AC_LIB_HAVE_LINKFLAGS.
11445 2009-04-26 Bruno Haible <bruno@clisp.org>
11447 Simplify calling convention of u*_conv_from_encoding.
11448 * lib/uniconv.h (u8_conv_from_encoding, u16_conv_from_encoding,
11449 u32_conv_from_encoding): Expect a resultbuf argument and return the
11450 result directly as a pointer.
11451 * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Likewise.
11452 * lib/uniconv/u-conv-from-enc.h (FUNC): Likewise.
11453 * lib/uniconv/u-strconv-from-enc.h (FUNC): Update.
11454 * lib/unicase/ulc-casecmp.c (ulc_u8_casefold): Update.
11455 * lib/unicase/ulc-casexfrm.c (ulc_casexfrm): Update.
11456 * lib/unilbrk/ulc-possible-linebreaks.c (ulc_possible_linebreaks):
11458 * lib/unilbrk/ulc-width-linebreaks.c (ulc_width_linebreaks): Update.
11459 * lib/uniwbrk/ulc-wordbreaks.c (ulc_wordbreaks): Update.
11460 * lib/vasnprintf.c (VASNPRINTF): Update.
11461 * tests/uniconv/test-u8-conv-from-enc.c (main): Update.
11462 * tests/uniconv/test-u16-conv-from-enc.c (main): Update.
11463 * tests/uniconv/test-u32-conv-from-enc.c (main): Update.
11464 * NEWS: Mention the change.
11466 2009-04-26 Bruno Haible <bruno@clisp.org>
11468 Simplify calling convention of u*_conv_to_encoding.
11469 * lib/uniconv.h (u8_conv_to_encoding, u16_conv_to_encoding,
11470 u32_conv_to_encoding): Expect a resultbuf argument and return the
11471 result directly as a pointer.
11472 * lib/uniconv/u8-conv-to-enc.c (u8_conv_to_encoding): Likewise.
11473 * lib/uniconv/u-conv-to-enc.h (FUNC): Likewise. Preserve errno while
11474 freeing scaled_offsets if mem_iconveha failed.
11475 * lib/unicase/u-casexfrm.h (FUNC): Update.
11476 * lib/uninorm/u-normxfrm.h (FUNC): Update.
11477 * lib/vasnprintf.c (VASNPRINTF): Update.
11478 * tests/uniconv/test-u8-conv-to-enc.c (main): Update.
11479 * tests/uniconv/test-u16-conv-to-enc.c (main): Update.
11480 * tests/uniconv/test-u32-conv-to-enc.c (main): Update.
11481 * NEWS: Mention the change.
11483 2009-04-26 Bruno Haible <bruno@clisp.org>
11485 Avoid test failures on AIX and OSF/1.
11486 * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Avoid calling
11488 * lib/uniconv/u8-conv-to-enc.c (u8_conv_to_encoding): Likewise.
11489 * lib/unilbrk/ulc-possible-linebreaks.c (ulc_possible_linebreaks):
11491 * lib/unilbrk/ulc-width-linebreaks.c (ulc_width_linebreaks): Likewise.
11492 * lib/uniwbrk/ulc-wordbreaks.c (ulc_wordbreaks): Likewise.
11493 * lib/uniconv/u-conv-to-enc.h (FUNC): Likewise. Fix memory leak.
11494 * lib/unistr/u-cpy-alloc.h (FUNC): Call malloc(1) instead of malloc(0).
11495 * doc/posix-functions/malloc.texi: Document the portability problem
11496 related to malloc(0).
11498 2009-04-26 Bruno Haible <bruno@clisp.org>
11500 * modules/unistr/u8-cpy-alloc (Depends-on): Add malloc-posix.
11501 * modules/unistr/u16-cpy-alloc (Depends-on): Likewise.
11502 * modules/unistr/u32-cpy-alloc (Depends-on): Likewise.
11504 2009-04-25 Bruno Haible <bruno@clisp.org>
11506 Avoid link error when creating a namespace clean library.
11507 * lib/math.in.h (gl_signbitf, gl_signbitd, gl_signbitl): Don't define
11508 as macro with arguments if already defined as an alias.
11509 * lib/signbitf.c (gl_signbitf): Don't undefine.
11510 * lib/signbitd.c (gl_signbitd): Don't undefine.
11511 * lib/signbitl.c (gl_signbitl): Don't undefine.
11513 2009-04-25 Jim Meyering <meyering@redhat.com>
11515 vc-list-files: fix another quoting bug
11516 * build-aux/vc-list-files: Avoid sed backslash expansion
11517 of pathological directory names.
11519 2009-04-25 Eric Blake <ebb9@byu.net>
11521 vc-list-files: fix shell quoting error
11522 * build-aux/vc-list-files: Protect against $ in $dir. Normalize
11525 2009-04-25 Jim Meyering <meyering@redhat.com>
11527 vc-list-files: restore lost functionality with subdir argument
11528 * build-aux/vc-list-files: When given a non-"." sub-directory
11529 argument, substitute the $dir/ prefix back onto each resulting name.
11530 Otherwise, coreutils' root_tests check would fail.
11532 2009-04-24 Eric Blake <ebb9@byu.net>
11534 vc-list-files: ignore git symlinks
11535 * build-aux/vc-list-files (.git): Use ls-tree and a filter, rather
11536 than ls-files, to ignore git symlinks.
11538 maint.mk: import improvements from m4
11539 * top/maint.mk (VC-tag): Use signing key from cfg.mk.
11540 (move_if_change): Delete unused macro.
11541 (news-date-check, vc-diff-check): Support VPATH builds.
11542 (announcement): Likewise. Split --bootstrap-tools list...
11543 (boostrap-tools): ...into separate list, which can be overridden
11545 (sc_avoid_if_before_free): Point to $(gnulib_dir), rather than
11546 requiring dependency on useless-if-before-free module.
11547 (VC_LIST, VC_LIST_EXCEPT): Likewise for vc-list-files module.
11548 Support VPATH builds.
11550 2009-04-24 Jim Meyering <meyering@redhat.com>
11552 maint.mk: remove coreutils-specific rules and variables
11553 * top/maint.mk (bin, taint-distcheck, coreutils-path-check, t): Remove.
11554 (fake_home, install-transform-check, my-instcheck, pfx, TMPDIR): Remove.
11555 (t_prefix, t_taint, tp, warn_cflags, write_loser, my-distcheck): Remove.
11557 maint.mk: remove obsolete rule
11558 * top/maint.mk (rel-check): Remove rule.
11559 (WGET, WGETFLAGS): Remove now-unused variables.
11561 2009-04-24 Simon Josefsson <simon@josefsson.org>
11563 * top/maint.mk (makefile-check): Renamed to sc_makefile_check for
11566 * modules/vc-list-files-tests (TESTS_ENVIRONMENT): Use
11567 '$(PATH_SEPARATOR)' instead of ':'.
11569 2009-04-24 Simon Josefsson <simon@josefsson.org>
11571 * lib/getopt1.c (main): Use 'const' for static array.
11573 2009-04-24 Simon Josefsson <simon@josefsson.org>
11575 * top/maint.mk: Sync with coreutils.
11576 * NEWS: Explain incompatibilities.
11578 2009-04-22 Yoann Vandoorselaere <yoann.v@prelude-ids.com>
11579 Bruno Haible <bruno@clisp.org>
11581 Fix cross-compilation results.
11582 * m4/btowc.m4 (gl_FUNC_BTOWC): Use no-op statement, rather than empty
11583 statement, as third argument of AC_TRY_RUN.
11584 * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE, gl_MBRTOWC_SANITYCHECK,
11585 gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL):
11587 * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
11588 * m4/wcsrtombs.m4 (gl_WCSRTOMBS_TERMINATION, gl_WCSRTOMBS_NULL):
11590 * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
11591 * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise. Update for AIX 4.3.
11592 * doc/posix-functions/wcrtomb.texi: Mention the bug on AIX 4.3.
11594 2009-04-20 Bruno Haible <bruno@clisp.org>
11596 Avoid test failure on mingw.
11597 * tests/uniwidth/test-uc_width2.sh: Convert newlines in output.
11599 2009-04-20 Bruno Haible <bruno@clisp.org>
11601 Avoid compilation error on mingw.
11602 * modules/localename-tests (Depends-on): Add locale.
11604 2009-04-19 Bruno Haible <bruno@clisp.org>
11606 Support for building a shared library on Windows platforms.
11607 * tests/uninorm/test-nfc.c (n): Don't define if WOE32DLL.
11608 (main): Test the presence of UNINORM_NFC here.
11609 * tests/uninorm/test-nfd.c (n): Don't define if WOE32DLL.
11610 (main): Test the presence of UNINORM_NFD here.
11611 * tests/uninorm/test-nfkc.c (n): Don't define if WOE32DLL.
11612 (main): Test the presence of UNINORM_NFKC here.
11613 * tests/uninorm/test-nfkd.c (n): Don't define if WOE32DLL.
11614 (main): Test the presence of UNINORM_NFKD here.
11616 2009-04-19 Bruno Haible <bruno@clisp.org>
11618 Avoid a compiler warning.
11619 * tests/uninorm/test-u32-normalize-big.c (read_normalization_test_file):
11620 Change type of variable 'sequence'.
11622 2009-04-19 Bruno Haible <bruno@clisp.org>
11624 * modules/configmake (Makefile.am): When the contents of configmake.h
11625 does not change, arrange to preserve its modification time.
11627 2009-04-17 Simon Josefsson <simon@josefsson.org>
11629 * top/maint.mk (PO_DOMAIN): New variable, allows overriding of
11632 2009-04-16 Jim Meyering <meyering@redhat.com>
11634 useless-if-before-free: improve conversion code
11635 * build-aux/useless-if-before-free: Adjust code-in-comment to match
11636 "...!= 0" as well as "...!= NULL". emacs has one of the former.
11638 2009-04-14 Bruno Haible <bruno@clisp.org>
11640 * modules/fcntl (Depends-on): Add extensions.
11641 * m4/fcntl_h.m4 (gl_FCNTL_H): Add a comment.
11643 2009-04-12 Ben Pfaff <blp@gnu.org>
11645 Make fcntl module detect O_NOATIME, O_NOFOLLOW on GNU/Linux.
11646 * m4/fcntl_h.m4 (gl_FCNTL_H): Require AC_USE_SYSTEM_EXTENSIONS.
11648 2009-03-20 Ben Pfaff <blp@gnu.org>
11650 Make rename replace existing destinations on Windows.
11651 * m4/rename.m4: Add test for Mingw.
11652 * lib/rename.c: Add rename replacement that uses MoveFileEx with
11653 MOVEFILE_REPLACE_EXISTING to replace existing destination files.
11654 * doc/posix-functions/rename.texi: Document.
11656 2009-04-10 Bruno Haible <bruno@clisp.org>
11658 New include file "iconveh.h".
11659 * lib/iconveh.h: New file, extracted from lib/striconveh.h.
11660 * lib/striconveh.h: Include it.
11661 (enum iconv_ilseq_handler): Remove definition.
11662 * lib/striconveha.h: Include <stddef.h> and iconveh.h instead of
11664 * lib/striconveha.c: Include striconveh.h.
11665 * lib/uniconv.h: Include iconveh.h instead of striconveh.h.
11666 * modules/striconveh (Files): Add lib/iconveh.h.
11667 * modules/uniconv/base (Files): Add lib/iconveh.h. Remove
11670 2009-04-10 Bruno Haible <bruno@clisp.org>
11672 * lib/uniconv.h: Update comment.
11674 2009-04-10 Bruno Haible <bruno@clisp.org>
11676 * lib/unistr/u8-mbtouc-aux.c: Inside libunistring, define the function
11678 * lib/unistr/u8-mbtouc-unsafe-aux.c: Likewise.
11679 * lib/unistr/u16-mbtouc-aux.c: Likewise.
11680 * lib/unistr/u16-mbtouc-unsafe-aux.c: Likewise.
11681 * lib/unistr/u8-mbtouc.c: Inside libunistring, include
11682 "unistring-notinline.h", so that the function gets defined always.
11683 * lib/unistr/u8-mbtouc-unsafe.c: Likewise.
11684 * lib/unistr/u8-uctomb.c: Likewise.
11685 * lib/unistr/u16-mbtouc.c: Likewise.
11686 * lib/unistr/u16-mbtouc-unsafe.c: Likewise.
11687 * lib/unistr/u16-uctomb.c: Likewise.
11688 * lib/unistr/u32-mbtouc.c: Likewise.
11689 * lib/unistr/u32-mbtouc-unsafe.c: Likewise.
11690 * lib/unistr/u32-uctomb.c: Likewise.
11692 2009-04-10 Bruno Haible <bruno@clisp.org>
11694 Mark 'utime' obsolete.
11695 * modules/utime (Status, Notice): New sections.
11696 Suggested by Jim Meyering.
11698 Fix cross-compile guess for utime test.
11699 * m4/utime.m4 (AC_FUNC_UTIME_NULL): Add definition from newest unstable
11701 * doc/posix-functions/utime.texi: Give more precisions.
11702 Reported by Jan <ipif@ymail.com>.
11704 2009-04-09 Kamil Dudka <kdudka@redhat.com>
11706 filevercmp: correct today's change
11707 * lib/filevercmp.c: Also handle coreutils' test inputs.
11708 * tests/test-filevercmp.c: Add inputs from one of coreutils' test scripts.
11710 Fix regression in 'filevercmp' module. Thanks Sven Joachim
11712 * lib/filevercmp.c: Special handle for "", "." and "..".
11713 * tests/test-filevercmp.c: Enlarge the set suite.
11715 2009-04-07 Jim Meyering <meyering@redhat.com>
11717 useless-if-before-free: show how to remove braced useless free, too
11718 * build-aux/useless-if-before-free: still only in a comment, though.
11720 2009-04-07 Reuben Thomas <rrt@sc3d.org>
11722 maint.mk: import changes to syntax-check macros from coreutils
11723 * top/maint.mk (_prohibit_regexp, _header_without_use): Define.
11724 Use them in the relevant macros.
11726 2009-04-06 Bruno Haible <bruno@clisp.org>
11728 Fix unportable use of bit-fields.
11729 * lib/unicase/special-casing.h (struct special_casing_rule): Change the
11730 bit-field type from 'int' to 'signed int'. Otherwise Solaris cc,
11731 AIX xlc, and OSF/1 cc interpret it as 'unsigned int'.
11733 2009-04-06 Bruno Haible <bruno@clisp.org>
11735 Avoid test failures on AIX and OSF/1.
11736 * tests/unicase/test-u8-casefold.c (check): Account for the possibility
11737 that malloc(0) = NULL.
11738 * tests/unicase/test-u8-tolower.c (check): Likewise.
11739 * tests/unicase/test-u8-totitle.c (check): Likewise.
11740 * tests/unicase/test-u8-toupper.c (check): Likewise.
11741 * tests/unicase/test-u16-casefold.c (check): Likewise.
11742 * tests/unicase/test-u16-tolower.c (check): Likewise.
11743 * tests/unicase/test-u16-totitle.c (check): Likewise.
11744 * tests/unicase/test-u16-toupper.c (check): Likewise.
11745 * tests/unicase/test-u32-casefold.c (check): Likewise.
11746 * tests/unicase/test-u32-tolower.c (check): Likewise.
11747 * tests/unicase/test-u32-totitle.c (check): Likewise.
11748 * tests/unicase/test-u32-toupper.c (check): Likewise.
11749 * tests/uninorm/test-u8-nfc.c (check): Likewise.
11750 * tests/uninorm/test-u8-nfd.c (check): Likewise.
11751 * tests/uninorm/test-u8-nfkc.c (check): Likewise.
11752 * tests/uninorm/test-u8-nfkd.c (check): Likewise.
11753 * tests/uninorm/test-u16-nfc.c (check): Likewise.
11754 * tests/uninorm/test-u16-nfd.c (check): Likewise.
11755 * tests/uninorm/test-u16-nfkc.c (check): Likewise.
11756 * tests/uninorm/test-u16-nfkd.c (check): Likewise.
11757 * tests/uninorm/test-u32-nfc.c (check): Likewise.
11758 * tests/uninorm/test-u32-nfd.c (check): Likewise.
11759 * tests/uninorm/test-u32-nfkc.c (check): Likewise.
11760 * tests/uninorm/test-u32-nfkd.c (check): Likewise.
11762 2009-04-05 Bruno Haible <bruno@clisp.org>
11764 Work around an autoconf limitation.
11765 * gnulib-tool (func_emit_lib_Makefile_am): Omit the "Reproduce by"
11766 comment line if it would be longer than 3 KB.
11768 2009-04-05 Bruno Haible <bruno@clisp.org>
11770 Avoid test failure with libiconv-1.13.
11771 * tests/test-striconveh.c (main): Allow result of libiconv 1.13 as one
11772 of the expected test results.
11774 2009-04-05 Bruno Haible <bruno@clisp.org>
11776 * gnulib-tool (func_emit_lib_Makefile_am): Don't add the library to
11777 noinst_LTLIBRARIES if the Makefile.am in the same directory specifies
11778 that it should be installed.
11780 2009-04-05 Bruno Haible <bruno@clisp.org>
11782 * gnulib-tool: New option --copy-file.
11783 (func_usage): Document it.
11784 (func_dest_tmpfilename): Moved out of func_import.
11785 (func_add_file, func_update_file): New functions, extracted from
11787 (func_import): Update.
11789 2009-04-05 Karl Berry <karl@gnu.org>
11791 * README: prominently mention gnulib-tool.
11792 Rearrange sections so getting the code is near the top.
11794 2009-04-05 Bruno Haible <bruno@clisp.org>
11796 * lib/unicase.h: Mention u*_cmp2.
11797 * lib/unicase/u-casecmp.h (FUNC): Invoke U_CMP2 instead of U_CMP.
11798 * lib/unicase/u8-casecmp.c: Use u8_cmp2 instead of u8_cmp.
11799 * lib/unicase/ulc-casecmp.c: Likewise.
11800 * lib/unicase/u16-casecmp.c: Use u16_cmp2 instead of u16_cmp.
11801 * lib/unicase/u32-casecmp.c: Use u32_cmp2 instead of u32_cmp.
11802 * modules/unicase/u8-casecmp (Depends-on): Add unistr/u8-cmp2, remove
11804 * modules/unicase/ulc-casecmp (Depends-on): Likewise.
11805 * modules/unicase/u16-casecmp (Depends-on): Add unistr/u16-cmp2, remove
11807 * modules/unicase/u32-casecmp (Depends-on): Add unistr/u32-cmp2, remove
11810 * lib/uninorm.h: Mention u*_cmp2.
11811 * lib/uninorm/u-normcmp.h (FUNC): Invoke U_CMP2 instead of U_CMP.
11812 * lib/uninorm/u8-normcmp.c: Use u8_cmp2 instead of u8_cmp.
11813 * lib/uninorm/u16-normcmp.c: Use u16_cmp2 instead of u16_cmp.
11814 * lib/uninorm/u32-normcmp.c: Use u32_cmp2 instead of u32_cmp.
11815 * modules/uninorm/u8-normcmp (Depends-on): Add unistr/u8-cmp2, remove
11817 * modules/uninorm/u16-normcmp (Depends-on): Add unistr/u16-cmp2, remove
11819 * modules/uninorm/u32-normcmp (Depends-on): Add unistr/u32-cmp2, remove
11822 New module 'unistr/u32-cmp2'.
11823 * lib/unistr/u32-cmp2.c: New file.
11824 * modules/unistr/u32-cmp2: New file.
11826 New module 'unistr/u16-cmp2'.
11827 * lib/unistr/u16-cmp2.c: New file.
11828 * modules/unistr/u16-cmp2: New file.
11830 New module 'unistr/u8-cmp2'.
11831 * lib/unistr.h (u8_cmp2, u16_cmp2, u32_cmp2): New declarations.
11832 * lib/unistr/u8-cmp2.c: New file.
11833 * lib/unistr/u-cmp2.h: New file.
11834 * modules/unistr/u8-cmp2: New file.
11836 2009-04-05 Bruno Haible <bruno@clisp.org>
11838 * lib/unictype.h (uc_property_is_valid): New macro.
11839 * tests/unictype/test-pr_byname.c (main): Use it.
11841 * lib/unistr.h: Doc fixes.
11842 * lib/uniconv.h: Doc fixes.
11843 * lib/unictype.h: Doc fixes.
11845 2009-04-03 Paul Eggert <eggert@cs.ucla.edu>
11847 Port coreutils 7.2 to Solaris 8.
11849 * modules/arpa_inet (arpa/inet.h): Depend on arpa_inet.in.h.
11850 * m4/inet_ntop.m4 (gl_INET_NTOP): Search for inet_ntop in -lnsl,
11851 for Solaris 8. This is a bit of a hack, as it means it's the
11852 caller's responsibility to add -lnsl if needed, but most likely it
11853 won't be needed since only getaddrinfo uses this and getaddrinfo
11854 isn't needed on Solaris 8.
11856 * modules/fnmatch (Depends-on): Add mbsrtowcs, to fix a porting
11857 problem to Solaris 8 encountered with coreutils 7.2, which
11858 resulted in a message "fnmatch.c:292: warning: passing argument 4
11859 of 'mbsrtowcs' from incompatible pointer type". Also, add mbsinit
11860 at the suggestion of Bruno Haible, since fnmatch uses mbsinit.
11862 2009-04-03 Simon Josefsson <simon@josefsson.org>
11864 * m4/ld-version-script.m4: Add FIXME comment.
11866 2009-04-02 Simon Josefsson <simon@josefsson.org>
11868 * doc/ld-output-def.texi: Use DLL_VERSION instead of confusing
11869 SOVERSION variable.
11871 2009-04-02 Bruno Haible <bruno@clisp.org>
11873 * Makefile (info, html, dvi, pdf): Combine the rules.
11874 Suggested by Jim Meyering.
11876 2009-04-01 Bruno Haible <bruno@clisp.org>
11878 * Makefile (info, html, dvi, pdf): New targets.
11879 Reported by Reuben Thomas <rrt@sc3d.org>.
11881 2009-04-01 Bruno Haible <bruno@clisp.org>
11883 * doc/gnulib-tool.texi (Invoking gnulib-tool): Document how gnulib-tool
11884 can be put into PATH.
11885 Reported by Reuben Thomas <rrt@sc3d.org>. Suggested by Karl Berry.
11887 2009-04-01 Bruno Haible <bruno@clisp.org>
11889 * doc/lib-symbol-visibility.texi: Follow texinfo style conventions.
11891 2009-04-01 Bruno Haible <bruno@clisp.org>
11893 Rename module 'visibility'.
11894 * modules/lib-symbol-visibility: Renamed from modules/visibility.
11895 * doc/lib-symbol-visibility.texi: Renamed from visibility.texi.
11896 * doc/gnulib.texi: Update.
11897 * MODULES.html.sh (Misc): Update.
11898 * NEWS: Mention the change.
11900 2009-04-01 Simon Josefsson <simon@josefsson.org>
11902 * modules/lib-msvc-compat: New module. Thanks to Bruno Haible
11903 <bruno@clisp.org>, Ralf Wildenhues <Ralf.Wildenhues@gmx.de>, and
11904 Eric Blake <ebb9@byu.net> for review.
11905 * MODULES.html.sh: Add lib-msvc-compat.
11906 * doc/gnulib.texi: Link to new section.
11907 * m4/ld-output-def.m4: New file.
11908 * doc/ld-output-def.texi: New file.
11910 2009-04-01 Simon Josefsson <simon@josefsson.org>
11912 Rename ld-version-script to lib-symbol-versions. Suggested by
11913 Bruno Haible <bruno@clisp.org>.
11914 * modules/ld-version-script: Renamed to lib-symbol-versions.
11915 * doc/ld-version-script.texi: Fix module name.
11916 * MODULES.html.sh: Add lib-symbol-versions.
11918 2009-03-31 Simon Josefsson <simon@josefsson.org>
11920 * modules/u64-tests: New file.
11921 * tests/test-u64.c: New file.
11923 2009-03-04 Simon Josefsson <simon@josefsson.org>
11925 * MODULES.html.sh: Mention u64.
11926 * modules/u64: New module.
11927 * modules/crypto/sha512: Depend on u64 module instead of providing
11930 2009-03-27 Eric Blake <ebb9@byu.net>
11932 test-strerror: make debugging EAI_SYSTEM easier
11933 * modules/getaddrinfo-tests (Depends-on): Add strerror.
11934 * test-getaddrinfo.c (simple) [ENABLE_DEBUGGING]: Report errno if
11935 failure was EAI_SYSTEM.
11937 2009-03-25 Bruno Haible <bruno@clisp.org>
11939 Fix a problem with --enable-relocatable on Solaris 7.
11940 * modules/relocatable-prog-wrapper (Depends-on): Add environ. Needed
11943 2009-03-25 Eric Blake <ebb9@byu.net>
11945 test-sockets: avoid gcc warning
11946 * tests/test-sockets.c (main): Silence compiler warning.
11948 2009-03-25 Paul Eggert <eggert@cs.ucla.edu>
11950 New modules nproc, pthread, contributed by Glen Lenker.
11952 * MODULES.html.sh: Add pthread, nproc.
11953 * lib/nproc.c: New file.
11954 * lib/nproc.h: New file.
11955 * lib/pthread.in.h: New file.
11956 * m4/pthread.m4: New file.
11957 * modules/nproc: New file.
11958 * modules/pthread: New file.
11960 2009-03-24 Simon Josefsson <simon@josefsson.org>
11962 * modules/unicase/locale-language-tests (test_locale_language_LDADD):
11965 2009-03-24 Kamil Dudka <kdudka@redhat.com>
11967 filevercmp: handle simple~ and numbered.~3~ backup suffixes
11968 * lib/filevercmp.c: Handle simple~ and numbered.~3~ backup suffixes.
11969 * tests/test-filevercmp.c: Add tests for backup suffixes.
11971 2009-03-24 Simon Josefsson <simon@josefsson.org>
11973 * modules/stdlib (Depends-on): Add stdint, needed when defining
11974 struct random_data on, for example, HP-UX 10.20. Reported by
11975 Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
11977 2009-03-24 Simon Josefsson <simon@josefsson.org>
11979 * lib/readline.c (readline): Call fflush on stdout after printing
11982 2009-03-20 Bruno Haible <bruno@clisp.org>
11984 Remove dependency from 'close' module to -lws2_32 on native Windows.
11985 * lib/close-hook.h: New file.
11986 * lib/close-hook.c: New file.
11987 * lib/close.c: Include close-hook.h. Don't include <sys/socket.h>,
11989 (_gl_close_fd_maybe_socket): Remove function.
11990 (rpl_close): Invoke execute_all_close_hooks instead of
11991 _gl_close_fd_maybe_socket.
11992 * lib/sockets.c: Include close-hook.h, w32sock.h.
11993 (close_fd_maybe_socket): New function, essentially from lib/close.c.
11994 (close_sockets_hook): New variable.
11995 (gl_sockets_startup): Register close_fd_maybe_socket as a hook.
11996 (gl_sockets_cleanup): Unregister it.
11997 * lib/unistd.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET): Remove macro.
11998 * m4/close.m4 (gl_REPLACE_CLOSE): Undo 2009-02-05 change.
11999 * modules/close-hook: New file.
12000 * modules/close (Files): Remove lib/w32sock.h.
12001 (Depends-on): Add close-hook.
12002 (Link): Remove section.
12003 * modules/sockets (Files): Add lib/w32sock.h.
12004 (Depends-on): Add close-hook.
12005 * modules/sys_socket (configure.ac): Remove gl_MODULE_INDICATOR
12007 * NEWS: Mention that LIB_CLOSE is gone.
12009 2009-03-23 Eric Blake <ebb9@byu.net>
12011 signal-tests: test previous patch
12012 * tests/test-signal.c: New file.
12013 * modules/signal-tests: Likewise.
12015 signal.h: always support 'volatile sig_atomic_t'
12016 * m4/signal_h.m4 (gl_SIGNAL_H): Check for AIX limitation.
12017 (gl_SIGNAL_H_DEFAULTS): Add a default.
12018 * modules/signal (Makefile.am): Substitute if needed.
12019 * lib/signal.in.h (sig_atomic_t): Redefine if needed, so that
12020 users can blindly add volatile.
12021 * doc/posix-headers/signal.texi (signal.h): Document it.
12022 Reported by Matthew Woehlke.
12024 2009-03-23 Jim Meyering <meyering@redhat.com>
12026 pathmax: PATH_MAX: use pathconf only when available
12027 * lib/pathmax.h (PATH_MAX): Select the pathconf-using definition
12028 only if HAVE_PATHCONF is defined. Patch by Sylvain Beucler.
12029 * m4/pathmax.m4 (gl_PATHMAX): Check for pathconf.
12030 This avoids a link failure in a PSP cross-compilation environment
12031 described in http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/17048
12033 * lib/vasnprintf.c (divide): Fix typo in comment.
12035 2009-03-23 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
12037 * gnulib-tool (func_filter_filelist): Fix comment.
12039 2009-03-20 Bruno Haible <bruno@clisp.org>
12041 Make sockets.h self-contained.
12042 * lib/sockets.c: Include sockets.h first.
12043 * lib/sockets.h: Include <sys/socket.h> before using the SOCKET type.
12045 2009-03-19 Eric Blake <ebb9@byu.net>
12047 doc: mention more functions added in cygwin 1.7.0
12048 * doc/posix-functions/log2.texi: Mention recent cygwin 1.7.0
12050 * doc/posix-functions/log2f.texi: Likewise.
12052 2009-03-19 Jim Meyering <meyering@redhat.com>
12054 fsusage: avoid syntax error due to statement-before-declaration
12055 * lib/fsusage.c (get_fs_usage): Put warning-avoidance statement
12056 after all declarations. Reported by Matthew Woehlke in
12057 http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/16231
12059 2009-03-18 Eric Blake <ebb9@byu.net>
12061 build-aux/compile: sync from automake
12062 * build-aux/compile: New file, from automake.
12063 * config/srclist.txt: Mention build-aux/compile.
12065 2009-03-17 Bruno Haible <bruno@clisp.org>
12067 * lib/git-merge-changelog.c: Fix typo in comment.
12068 Reported by Reuben Thomas <rrt@sc3d.org>.
12070 2009-03-17 Reuben Thomas <rrt@sc3d.org>
12072 * m4/regex.m4: update and improve help for
12073 --without-included-regex.
12075 2009-03-17 Simon Josefsson <simon@josefsson.org>
12077 * modules/isnanl-nolibm-tests (Files): Add tests/nan.h to avoid
12078 failure on missing include files.
12080 2009-03-17 Eric Blake <ebb9@byu.net>
12082 doc: mention more functions added in cygwin 1.7.0
12083 * doc/posix-functions/fwprintf.texi: Mention recent cygwin 1.7.0
12085 * doc/posix-functions/fwscanf.texi: Likewise.
12086 * doc/posix-functions/swprintf.texi: Likewise.
12087 * doc/posix-functions/swscanf.texi: Likewise.
12088 * doc/posix-functions/vfwprintf.texi: Likewise.
12089 * doc/posix-functions/vfwscanf.texi: Likewise.
12090 * doc/posix-functions/vswprintf.texi: Likewise.
12091 * doc/posix-functions/vswscanf.texi: Likewise.
12092 * doc/posix-functions/vwprintf.texi: Likewise.
12093 * doc/posix-functions/vwscanf.texi: Likewise.
12094 * doc/posix-functions/wcscasecmp.texi: Likewise.
12095 * doc/posix-functions/wcsdup.texi: Likewise.
12096 * doc/posix-functions/wcsftime.texi: Likewise.
12097 * doc/posix-functions/wcsncasecmp.texi: Likewise.
12098 * doc/posix-functions/wprintf.texi: Likewise.
12099 * doc/posix-functions/wscanf.texi: Likewise.
12100 * doc/glibc-functions/gethostbyname2.texi: Likewise.
12102 2009-03-14 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
12104 maint.mk: really add $(AM_MAKEFLAGS)
12105 * top/maint.mk (init-coverage, build-coverage): `$(AM_MAKEFLAGS)'
12106 was inadvertently omitted in the last commit.
12107 Spotted by Bruno Haible.
12109 maint.mk: use $(MAKE) $(AM_MAKEFLAGS) not make
12110 * top/maint.mk (init-coverage, build-coverage): Use `$(MAKE)
12111 $(AM_MAKEFLAGS)' rather than plain `make'.
12113 gnulib-tool: execute $MAKE not make
12114 * gnulib-tool: Default $MAKE to 'make'.
12115 (func_create_testdir, func_create_megatestdir): Use $MAKE rather
12116 than make. Initialize $MAKE in the do-autobuild script.
12118 gnulib-tool: use $MAKE not make in generated files
12119 * gnulib-tool (func_create_megatestdir): Use $MAKE rather than
12120 make, in generated files. Initialize $MAKE in the do-autobuild
12123 * top/GNUmakefile (_have-git-version-gen): Fix typo.
12125 GNUmakefile: disable parallelism only for multiple, recursive targets
12126 * top/GNUmakefile (ALL_RECURSIVE_TARGETS): New macro; allow user
12127 additions in the Makefile.
12128 (AM_RECURSIVE_TARGETS): New macro, override only if not provided
12130 (.NOTPARALLEL): Only disable parallel builds if multiple targets
12131 are listed on the command line and at least one of them is
12132 listed in $(ALL_RECURSIVE_TARGETS).
12134 2009-03-14 Bruno Haible <bruno@clisp.org>
12136 * modules/unilbrk/u8-possible-linebreaks (Depends-on): Replace
12137 utf8-ucs4-unsafe with unistr/u8-mbtouc-unsafe.
12138 * modules/unilbrk/u8-width-linebreaks (Depends-on): Likewise.
12139 * modules/unilbrk/u16-possible-linebreaks (Depends-on): Replace
12140 utf16-ucs4-unsafe with unistr/u16-mbtouc-unsafe.
12141 * modules/unilbrk/u16-width-linebreaks (Depends-on): Likewise.
12142 * modules/unistr/u8-chr (Depends-on): Replace ucs4-utf8 with
12144 * modules/unistr/u8-strchr (Depends-on): Likewise.
12145 * modules/unistr/u8-strrchr (Depends-on): Likewise.
12146 * modules/unistr/u16-chr (Depends-on): Replace ucs4-utf16 with
12148 * modules/unistr/u16-strchr (Depends-on): Likewise.
12149 * modules/unistr/u16-strrchr (Depends-on): Likewise.
12151 2009-03-12 Bruno Haible <bruno@clisp.org>
12153 Work around select() bug on Interix 3.5.
12154 * lib/sys_select.in.h (select): Also replace if REPLACE_SELECT is 1.
12155 * lib/select.c (rpl_select): Add an implementation for Unix platforms.
12156 * m4/select.m4: New file.
12157 * m4/sys_select_h.m4 (gl_SYS_SELECT_H_DEFAULTS): Initialize REPLACE_SELECT.
12158 * modules/sys_select (Makefile.am): Substitute REPLACE_SELECT.
12159 * modules/select (Files): Add m4/select.m4.
12160 (configure.ac): Move conditional to m4/select.m4. Invoke gl_FUNC_SELECT.
12161 * modules/nanosleep (Depends-on): Add select.
12162 * modules/poll (Depends-on): Likewise.
12163 * doc/posix-functions/select.texi: Mention the Interix bug.
12164 Reported by Markus Duft <mduft@gentoo.org>.
12166 * lib/select.c: Renamed from lib/winsock-select.c.
12167 * modules/select (Files): Add lib/select.c, remove
12168 lib/winsock-select.c.
12169 (configure.ac): Update.
12171 2009-03-12 Jim Meyering <meyering@redhat.com>
12173 avoid gcc warnings about unused macro definitions
12174 * lib/readtokens.c (STREQ): Remove unused definition.
12175 * lib/xmalloc.c (SIZE_MAX): Likewise.
12176 * lib/openat-die.c (N_): Likewise.
12177 * lib/mountlist.c (SIZE_MAX): Remove definition.
12178 Instead, include <stdint.h>.
12179 * lib/readutmp.c: Likewise.
12180 * modules/readutmp (Depends-on): Add stdint.
12181 * modules/mountlist (Depends-on): Add stdint.
12182 * lib/userspec.c (ISDIGIT): Move definition into #if block where used.
12184 2009-03-10 Bruno Haible <bruno@clisp.org>
12186 Tests for module 'mbmemcasecoll'.
12187 * modules/mbmemcasecoll-tests: New file.
12188 * tests/test-mbmemcasecoll1.sh: New file.
12189 * tests/test-mbmemcasecoll2.sh: New file.
12190 * tests/test-mbmemcasecoll3.sh: New file.
12191 * tests/test-mbmemcasecoll.c: New file.
12193 New module 'mbmemcasecoll'.
12194 * lib/mbmemcasecoll.h: New file.
12195 * lib/mbmemcasecoll.c: New file.
12196 * modules/mbmemcasecoll: New file.
12198 * tests/test-mbmemcasecmp.h: New file, extracted from
12199 tests/test-mbmemcasecmp.c.
12200 * tests/test-mbmemcasecmp.c: Include test-mbmemcasecmp.h.
12201 (test_ascii, test_iso_8859_1, test_utf_8): Remove functions.
12203 * modules/mbmemcasecmp-tests (Files): Add tests/test-mbmemcasecmp.h.
12205 2009-03-09 Bruno Haible <bruno@clisp.org>
12207 Tests for module 'mbmemcasecmp'.
12208 * modules/mbmemcasecmp-tests: New file.
12209 * tests/test-mbmemcasecmp1.sh: New file.
12210 * tests/test-mbmemcasecmp2.sh: New file.
12211 * tests/test-mbmemcasecmp3.sh: New file.
12212 * tests/test-mbmemcasecmp.c: New file.
12214 New module 'mbmemcasecmp'.
12215 * lib/mbmemcasecmp.h: New file.
12216 * lib/mbmemcasecmp.c: New file.
12217 * modules/mbmemcasecmp: New file.
12219 2009-03-09 Bruno Haible <bruno@clisp.org>
12221 Tests for module 'unicase/ulc-casecoll'.
12222 * modules/unicase/ulc-casecoll-tests: New file.
12223 * tests/unicase/test-ulc-casecoll1.sh: New file.
12224 * tests/unicase/test-ulc-casecoll2.sh: New file.
12225 * tests/unicase/test-ulc-casecoll.c: New file.
12227 New module 'unicase/ulc-casecoll'.
12228 * lib/unicase.h (ulc_casecoll): New declaration.
12229 * lib/unicase/ulc-casecoll.c: New file.
12230 * modules/unicase/ulc-casecoll: New file.
12232 New module 'unicase/ulc-casexfrm'.
12233 * lib/unicase.h (ulc_casexfrm): New declaration.
12234 * lib/unicase/ulc-casexfrm.c: New file.
12235 * modules/unicase/ulc-casexfrm: New file.
12237 2009-03-09 Bruno Haible <bruno@clisp.org>
12239 Followup to 2008-12-22 commit: Remove unnecessary AC_FUNC_MBRTOWC
12242 * m4/mbscasecmp.m4: Remove file.
12243 * modules/mbscasecmp (Files): Remove it and m4/mbrtowc.m4
12244 (configure.ac): Remove gl_FUNC_MBSCASECMP invocation.
12246 * m4/mbscasestr.m4: Remove file.
12247 * modules/mbscasestr (Files): Remove it and m4/mbrtowc.m4
12248 (configure.ac): Remove gl_FUNC_MBSCASESTR invocation.
12250 * m4/mbschr.m4: Remove file.
12251 * modules/mbschr (Files): Remove it and m4/mbrtowc.m4
12252 (configure.ac): Remove gl_FUNC_MBSCHR invocation.
12254 * m4/mbscspn.m4: Remove file.
12255 * modules/mbscspn (Files): Remove it and m4/mbrtowc.m4
12256 (configure.ac): Remove gl_FUNC_MBSCSPN invocation.
12258 * m4/mbslen.m4: Remove file.
12259 * modules/mbslen (Files): Remove it and m4/mbrtowc.m4
12260 (configure.ac): Remove gl_FUNC_MBSLEN invocation.
12262 * m4/mbsncasecmp.m4: Remove file.
12263 * modules/mbsncasecmp (Files): Remove it and m4/mbrtowc.m4
12264 (configure.ac): Remove gl_FUNC_MBSNCASECMP invocation.
12266 * m4/mbsnlen.m4: Remove file.
12267 * modules/mbsnlen (Files): Remove it and m4/mbrtowc.m4
12268 (configure.ac): Remove gl_FUNC_MBSNLEN invocation.
12270 * m4/mbspbrk.m4: Remove file.
12271 * modules/mbspbrk (Files): Remove it and m4/mbrtowc.m4
12272 (configure.ac): Remove gl_FUNC_MBSPBRK invocation.
12274 * m4/mbspcasecmp.m4: Remove file.
12275 * modules/mbspcasecmp (Files): Remove it and m4/mbrtowc.m4
12276 (configure.ac): Remove gl_FUNC_MBSPCASECMP invocation.
12278 * m4/mbsrchr.m4: Remove file.
12279 * modules/mbsrchr (Files): Remove it and m4/mbrtowc.m4
12280 (configure.ac): Remove gl_FUNC_MBSRCHR invocation.
12282 * m4/mbssep.m4: Remove file.
12283 * modules/mbssep (Files): Remove it and m4/mbrtowc.m4
12284 (configure.ac): Remove gl_FUNC_MBSSEP invocation.
12286 * m4/mbsspn.m4: Remove file.
12287 * modules/mbsspn (Files): Remove it and m4/mbrtowc.m4
12288 (configure.ac): Remove gl_FUNC_MBSSPN invocation.
12290 * m4/mbsstr.m4: Remove file.
12291 * modules/mbsstr (Files): Remove it and m4/mbrtowc.m4
12292 (configure.ac): Remove gl_FUNC_MBSSTR invocation.
12294 * m4/mbstok_r.m4: Remove file.
12295 * modules/mbstok_r (Files): Remove it and m4/mbrtowc.m4
12296 (configure.ac): Remove gl_FUNC_MBSTOK_R invocation.
12298 * m4/mbswidth.m4 (gl_MBSWIDTH): Remove AC_FUNC_MBRTOWC invocation.
12300 * m4/quotearg.m4 (gl_QUOTEARG): Remove mbsinit test and
12301 AC_TYPE_MBSTATE_T, AC_FUNC_MBRTOWC invocations.
12303 * modules/trim (configure.ac): Remove AC_FUNC_MBRTOWC invocation.
12305 2009-03-08 Bruno Haible <bruno@clisp.org>
12307 Tests for module 'unicase/ulc-casecmp'.
12308 * modules/unicase/ulc-casecmp-tests: New file.
12309 * tests/unicase/test-ulc-casecmp1.sh: New file.
12310 * tests/unicase/test-ulc-casecmp2.sh: New file.
12311 * tests/unicase/test-ulc-casecmp.c: New file.
12313 New module 'unicase/ulc-casecmp'.
12314 * lib/unicase.h (ulc_casecmp): New declaration.
12315 * lib/unicase/ulc-casecmp.c: New file.
12316 * lib/unicase/u-casecmp.h (FUNC): Change argument types to
12317 'const SRC_UNIT *'.
12318 * lib/unicase/u8-casecmp.c (SRC_UNIT): Define like UNIT.
12319 * lib/unicase/u16-casecmp.c (SRC_UNIT): Likewise.
12320 * lib/unicase/u32-casecmp.c (SRC_UNIT): Likewise.
12321 * modules/unicase/ulc-casecmp: New file.
12323 Tests for module 'unicase/u32-is-cased'.
12324 * modules/unicase/u32-is-cased-tests: New file.
12325 * tests/unicase/test-u32-is-cased.c: New file.
12327 Tests for module 'unicase/u16-is-cased'.
12328 * modules/unicase/u16-is-cased-tests: New file.
12329 * tests/unicase/test-u16-is-cased.c: New file.
12331 Tests for module 'unicase/u8-is-cased'.
12332 * modules/unicase/u8-is-cased-tests: New file.
12333 * tests/unicase/test-u8-is-cased.c: New file.
12334 * tests/unicase/test-is-cased.h: New file.
12336 New module 'unicase/u32-is-cased'.
12337 * lib/unicase/u32-is-cased.c: New file.
12338 * modules/unicase/u32-is-cased: New file.
12340 New module 'unicase/u16-is-cased'.
12341 * lib/unicase/u16-is-cased.c: New file.
12342 * modules/unicase/u16-is-cased: New file.
12344 New module 'unicase/u8-is-cased'.
12345 * lib/unicase/u8-is-cased.c: New file.
12346 * lib/unicase/u-is-cased.h: New file.
12347 * modules/unicase/u8-is-cased: New file.
12349 Tests for module 'unicase/u32-is-casefolded'.
12350 * modules/unicase/u32-is-casefolded-tests: New file.
12351 * tests/unicase/test-u32-is-casefolded.c: New file.
12353 Tests for module 'unicase/u16-is-casefolded'.
12354 * modules/unicase/u16-is-casefolded-tests: New file.
12355 * tests/unicase/test-u16-is-casefolded.c: New file.
12357 Tests for module 'unicase/u8-is-casefolded'.
12358 * modules/unicase/u8-is-casefolded-tests: New file.
12359 * tests/unicase/test-u8-is-casefolded.c: New file.
12360 * tests/unicase/test-is-casefolded.h: New file.
12362 New module 'unicase/u32-is-casefolded'.
12363 * lib/unicase/u32-is-casefolded.c: New file.
12364 * modules/unicase/u32-is-casefolded: New file.
12366 New module 'unicase/u16-is-casefolded'.
12367 * lib/unicase/u16-is-casefolded.c: New file.
12368 * modules/unicase/u16-is-casefolded: New file.
12370 New module 'unicase/u8-is-casefolded'.
12371 * lib/unicase/u8-is-casefolded.c: New file.
12372 * modules/unicase/u8-is-casefolded: New file.
12374 Tests for module 'unicase/u32-is-titlecase'.
12375 * modules/unicase/u32-is-titlecase-tests: New file.
12376 * tests/unicase/test-u32-is-titlecase.c: New file.
12378 Tests for module 'unicase/u16-is-titlecase'.
12379 * modules/unicase/u16-is-titlecase-tests: New file.
12380 * tests/unicase/test-u16-is-titlecase.c: New file.
12382 Tests for module 'unicase/u8-is-titlecase'.
12383 * modules/unicase/u8-is-titlecase-tests: New file.
12384 * tests/unicase/test-u8-is-titlecase.c: New file.
12385 * tests/unicase/test-is-titlecase.h: New file.
12387 New module 'unicase/u32-is-titlecase'.
12388 * lib/unicase/u32-is-titlecase.c: New file.
12389 * modules/unicase/u32-is-titlecase: New file.
12391 New module 'unicase/u16-is-titlecase'.
12392 * lib/unicase/u16-is-titlecase.c: New file.
12393 * modules/unicase/u16-is-titlecase: New file.
12395 New module 'unicase/u8-is-titlecase'.
12396 * lib/unicase/u8-is-titlecase.c: New file.
12397 * modules/unicase/u8-is-titlecase: New file.
12399 Tests for module 'unicase/u32-is-lowercase'.
12400 * modules/unicase/u32-is-lowercase-tests: New file.
12401 * tests/unicase/test-u32-is-lowercase.c: New file.
12403 Tests for module 'unicase/u16-is-lowercase'.
12404 * modules/unicase/u16-is-lowercase-tests: New file.
12405 * tests/unicase/test-u16-is-lowercase.c: New file.
12407 Tests for module 'unicase/u8-is-lowercase'.
12408 * modules/unicase/u8-is-lowercase-tests: New file.
12409 * tests/unicase/test-u8-is-lowercase.c: New file.
12410 * tests/unicase/test-is-lowercase.h: New file.
12412 New module 'unicase/u32-is-lowercase'.
12413 * lib/unicase/u32-is-lowercase.c: New file.
12414 * modules/unicase/u32-is-lowercase: New file.
12416 New module 'unicase/u16-is-lowercase'.
12417 * lib/unicase/u16-is-lowercase.c: New file.
12418 * modules/unicase/u16-is-lowercase: New file.
12420 New module 'unicase/u8-is-lowercase'.
12421 * lib/unicase/u8-is-lowercase.c: New file.
12422 * modules/unicase/u8-is-lowercase: New file.
12424 Tests for module 'unicase/u32-is-uppercase'.
12425 * modules/unicase/u32-is-uppercase-tests: New file.
12426 * tests/unicase/test-u32-is-uppercase.c: New file.
12428 Tests for module 'unicase/u16-is-uppercase'.
12429 * modules/unicase/u16-is-uppercase-tests: New file.
12430 * tests/unicase/test-u16-is-uppercase.c: New file.
12432 Tests for module 'unicase/u8-is-uppercase'.
12433 * modules/unicase/u8-is-uppercase-tests: New file.
12434 * tests/unicase/test-u8-is-uppercase.c: New file.
12435 * tests/unicase/test-is-uppercase.h: New file.
12437 New module 'unicase/u32-is-uppercase'.
12438 * lib/unicase/u32-is-uppercase.c: New file.
12439 * modules/unicase/u32-is-uppercase: New file.
12441 New module 'unicase/u16-is-uppercase'.
12442 * lib/unicase/u16-is-uppercase.c: New file.
12443 * modules/unicase/u16-is-uppercase: New file.
12445 New module 'unicase/u8-is-uppercase'.
12446 * lib/unicase/u8-is-uppercase.c: New file.
12447 * modules/unicase/u8-is-uppercase: New file.
12449 New module 'unicase/u32-is-invariant'.
12450 * lib/unicase/u32-is-invariant.c: New file.
12451 * modules/unicase/u32-is-invariant: New file.
12453 New module 'unicase/u16-is-invariant'.
12454 * lib/unicase/u16-is-invariant.c: New file.
12455 * modules/unicase/u16-is-invariant: New file.
12457 New module 'unicase/u8-is-invariant'.
12458 * lib/unicase/u8-is-invariant.c: New file.
12459 * lib/unicase/invariant.h: New file.
12460 * lib/unicase/u-is-invariant.h: New file.
12461 * modules/unicase/u8-is-invariant: New file.
12463 Tests for module 'unicase/u32-casecoll'.
12464 * modules/unicase/u32-casecoll-tests: New file.
12465 * tests/unicase/test-u32-casecoll.c: New file.
12467 Tests for module 'unicase/u16-casecoll'.
12468 * modules/unicase/u16-casecoll-tests: New file.
12469 * tests/unicase/test-u16-casecoll.c: New file.
12471 Tests for module 'unicase/u8-casecoll'.
12472 * modules/unicase/u8-casecoll-tests: New file.
12473 * tests/unicase/test-u8-casecoll.c: New file.
12475 New module 'unicase/u32-casecoll'.
12476 * lib/unicase/u32-casecoll.c: New file.
12477 * modules/unicase/u32-casecoll: New file.
12479 New module 'unicase/u16-casecoll'.
12480 * lib/unicase/u16-casecoll.c: New file.
12481 * modules/unicase/u16-casecoll: New file.
12483 New module 'unicase/u8-casecoll'.
12484 * lib/unicase/u8-casecoll.c: New file.
12485 * lib/unicase/u-casecoll.h: New file.
12486 * modules/unicase/u8-casecoll: New file.
12488 New module 'unicase/u32-casexfrm'.
12489 * lib/unicase/u32-casexfrm.c: New file.
12490 * modules/unicase/u32-casexfrm: New file.
12492 New module 'unicase/u16-casexfrm'.
12493 * lib/unicase/u16-casexfrm.c: New file.
12494 * modules/unicase/u16-casexfrm: New file.
12496 New module 'unicase/u8-casexfrm'.
12497 * lib/unicase/u8-casexfrm.c: New file.
12498 * lib/unicase/u-casexfrm.h: New file.
12499 * modules/unicase/u8-casexfrm: New file.
12501 Tests for module 'unicase/u32-casecmp'.
12502 * modules/unicase/u32-casecmp-tests: New file.
12503 * tests/unicase/test-u32-casecmp.c: New file.
12505 Tests for module 'unicase/u16-casecmp'.
12506 * modules/unicase/u16-casecmp-tests: New file.
12507 * tests/unicase/test-u16-casecmp.c: New file.
12509 Tests for module 'unicase/u8-casecmp'.
12510 * modules/unicase/u8-casecmp-tests: New file.
12511 * tests/unicase/test-u8-casecmp.c: New file.
12512 * tests/unicase/test-casecmp.h: New file.
12514 New module 'unicase/u32-casecmp'.
12515 * lib/unicase/u32-casecmp.c: New file.
12516 * modules/unicase/u32-casecmp: New file.
12518 New module 'unicase/u16-casecmp'.
12519 * lib/unicase/u16-casecmp.c: New file.
12520 * modules/unicase/u16-casecmp: New file.
12522 New module 'unicase/u8-casecmp'.
12523 * lib/unicase/u8-casecmp.c: New file.
12524 * lib/unicase/u-casecmp.h: New file.
12525 * modules/unicase/u8-casecmp: New file.
12527 Tests for module 'unicase/u32-casefold'.
12528 * modules/unicase/u32-casefold-tests: New file.
12529 * tests/unicase/test-u32-casefold.c: New file.
12531 Tests for module 'unicase/u16-casefold'.
12532 * modules/unicase/u16-casefold-tests: New file.
12533 * tests/unicase/test-u16-casefold.c: New file.
12535 Tests for module 'unicase/u8-casefold'.
12536 * modules/unicase/u8-casefold-tests: New file.
12537 * tests/unicase/test-u8-casefold.c: New file.
12539 New module 'unicase/u32-casefold'.
12540 * lib/unicase/u32-casefold.c: New file.
12541 * modules/unicase/u32-casefold: New file.
12543 New module 'unicase/u16-casefold'.
12544 * lib/unicase/u16-casefold.c: New file.
12545 * modules/unicase/u16-casefold: New file.
12547 New module 'unicase/u8-casefold'.
12548 * lib/unicase/u8-casefold.c: New file.
12549 * lib/unicase/u-casefold.h: New file.
12550 * modules/unicase/u8-casefold: New file.
12552 New module 'unicase/tocasefold'.
12553 * lib/unicase/casefold.h: New file.
12554 * lib/unicase/tocasefold.c: New file.
12555 * lib/unicase/tocasefold.h: New file, generated by gen-uni-tables.c.
12556 * modules/unicase/tocasefold: New file.
12558 Tests for module 'unicase/u32-totitle'.
12559 * modules/unicase/u32-totitle-tests: New file.
12560 * tests/unicase/test-u32-totitle.c: New file.
12562 Tests for module 'unicase/u16-totitle'.
12563 * modules/unicase/u16-totitle-tests: New file.
12564 * tests/unicase/test-u16-totitle.c: New file.
12566 Tests for module 'unicase/u8-totitle'.
12567 * modules/unicase/u8-totitle-tests: New file.
12568 * tests/unicase/test-u8-totitle.c: New file.
12570 New module 'unicase/u32-totitle'.
12571 * lib/unicase/u32-totitle.c: New file.
12572 * modules/unicase/u32-totitle: New file.
12574 New module 'unicase/u16-totitle'.
12575 * lib/unicase/u16-totitle.c: New file.
12576 * modules/unicase/u16-totitle: New file.
12578 New module 'unicase/u8-totitle'.
12579 * lib/unicase/u8-totitle.c: New file.
12580 * lib/unicase/u-totitle.h: New file.
12581 * modules/unicase/u8-totitle: New file.
12583 Tests for module 'unicase/u32-tolower'.
12584 * modules/unicase/u32-tolower-tests: New file.
12585 * tests/unicase/test-u32-tolower.c: New file.
12587 Tests for module 'unicase/u16-tolower'.
12588 * modules/unicase/u16-tolower-tests: New file.
12589 * tests/unicase/test-u16-tolower.c: New file.
12591 Tests for module 'unicase/u8-tolower'.
12592 * modules/unicase/u8-tolower-tests: New file.
12593 * tests/unicase/test-u8-tolower.c: New file.
12595 New module 'unicase/u32-tolower'.
12596 * lib/unicase/u32-tolower.c: New file.
12597 * modules/unicase/u32-tolower: New file.
12599 New module 'unicase/u16-tolower'.
12600 * lib/unicase/u16-tolower.c: New file.
12601 * modules/unicase/u16-tolower: New file.
12603 New module 'unicase/u8-tolower'.
12604 * lib/unicase/u8-tolower.c: New file.
12605 * modules/unicase/u8-tolower: New file.
12607 Tests for module 'unicase/u32-toupper'.
12608 * modules/unicase/u32-toupper-tests: New file.
12609 * tests/unicase/test-u32-toupper.c: New file.
12611 Tests for module 'unicase/u16-toupper'.
12612 * modules/unicase/u16-toupper-tests: New file.
12613 * tests/unicase/test-u16-toupper.c: New file.
12615 Tests for module 'unicase/u8-toupper'.
12616 * modules/unicase/u8-toupper-tests: New file.
12617 * tests/unicase/test-u8-toupper.c: New file.
12619 New module 'unicase/u32-toupper'.
12620 * lib/unicase/u32-toupper.c: New file.
12621 * modules/unicase/u32-toupper: New file.
12623 New module 'unicase/u16-toupper'.
12624 * lib/unicase/u16-toupper.c: New file.
12625 * modules/unicase/u16-toupper: New file.
12627 New module 'unicase/u8-toupper'.
12628 * lib/unicase/u8-toupper.c: New file.
12629 * modules/unicase/u8-toupper: New file.
12631 New module 'unicase/u32-casemap'.
12632 * lib/unicase/u32-casemap.c: New file.
12633 * modules/unicase/u32-casemap: New file.
12635 New module 'unicase/u16-casemap'.
12636 * lib/unicase/u16-casemap.c: New file.
12637 * modules/unicase/u16-casemap: New file.
12639 New module 'unicase/u8-casemap'.
12640 * lib/unicase/unicasemap.h: New file.
12641 * lib/unicase/u8-casemap.c: New file.
12642 * lib/unicase/u-casemap.h: New file.
12643 * modules/unicase/u8-casemap: New file.
12645 New module 'unicase/special-casing'.
12646 * lib/unicase/special-casing.h: New file.
12647 * lib/unicase/special-casing.c: New file.
12648 * lib/unicase/special-casing-table.gperf: New file, generated by
12650 * modules/unicase/special-casing: New file.
12652 Tests for module 'unicase/locale-language'.
12653 * modules/unicase/locale-language-tests: New file.
12654 * tests/unicase/test-locale-language.sh: New file.
12655 * tests/unicase/test-locale-language.c: New file.
12657 New module 'unicase/locale-language'.
12658 * lib/unicase/locale-language.c: New file.
12659 * lib/unicase/locale-languages.gperf: New file.
12660 * modules/unicase/locale-language: New file.
12662 Generate more tables for case conversion and case folding.
12663 * lib/gen-uni-tables.c (SCC_*): New enum items.
12664 (struct special_casing_rule): New type.
12665 (casing_rules, num_casing_rules, allocated_casing_rules): New
12667 (add_casing_rule, fill_casing_rules): New functions.
12668 (struct casefold_rule): New type.
12669 (casefolding_rules, num_casefolding_rules,
12670 allocated_casefolding_rules): New variables.
12671 (fill_casefolding_rules): New function.
12672 (unicode_casefold): New variable.
12673 (to_casefold, redistribute_casefolding_rules, compare_casing_rules,
12674 sort_casing_rules, output_casing_rules): New functions.
12675 (main): Accept to more arguments: SpecialCasing.txt and
12676 CaseFolding.txt. Invoke fill_casing_rules, fill_casefolding_rules,
12677 redistribute_casefolding_rules, sort_casing_rules, output_casing_rules.
12678 Output mapping for casefolding.
12680 * lib/unicase.h: Include stdbool.h, uninorm.h.
12681 (u8_toupper, u16_toupper, u32_toupper, u8_tolower, u16_tolower,
12682 u32_tolower, u8_totitle, u16_totitle, u32_totitle): Add nf argument.
12683 (u8_casefold, u16_casefold, u32_casefold): Add iso639_language and nf
12685 (u8_casecmp, u16_casecmp, u32_casecmp): Add iso639_language, nf,
12687 (u8_casexfrm, u16_casexfrm, u32_casexfrm): New declarations.
12688 (u8_casecoll, u16_casecoll, u32_casecoll): Add iso639_language, nf,
12690 (u8_is_uppercase, u16_is_uppercase, u32_is_uppercase, u8_is_lowercase,
12691 u16_is_lowercase, u32_is_lowercase, u8_is_titlecase, u16_is_titlecase,
12692 u32_is_titlecase, u8_is_casefolded, u16_is_casefolded,
12693 u32_is_casefolded, u8_is_cased, u16_is_cased, u32_is_cased): New
12695 * modules/unicase/base (Depends-on): Add uninorm/base, stdbool.
12697 2009-03-08 Bruno Haible <bruno@clisp.org>
12699 * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp, u8_normcoll,
12700 u16_normcoll, u32_normcoll): Rename argument 'result' to 'resultp'.
12701 * lib/uninorm/u-normcmp.h (FUNC): Likewise.
12702 * lib/uninorm/u-normcoll.h (FUNC): Likewise.
12704 2009-03-07 Bruno Haible <bruno@clisp.org>
12706 Adjust u*_normcmp, u*_normcoll API.
12707 * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp, u8_normcoll,
12708 u16_normcoll, u32_normcoll): Change failure conventions.
12709 * lib/uninorm/u-normcmp.h (FUNC): Upon failure, store the error code in
12710 errno and return -1.
12711 * lib/uninorm/u-normcoll.h (FUNC): Likewise.
12713 2009-03-07 Bruno Haible <bruno@clisp.org>
12715 Tests for module 'uninorm/u32-normcoll'.
12716 * modules/uninorm/u32-normcoll-tests: New file.
12717 * tests/uninorm/test-u32-normcoll.c: New file.
12719 Tests for module 'uninorm/u16-normcoll'.
12720 * modules/uninorm/u16-normcoll-tests: New file.
12721 * tests/uninorm/test-u16-normcoll.c: New file.
12723 Tests for module 'uninorm/u8-normcoll'.
12724 * modules/uninorm/u8-normcoll-tests: New file.
12725 * tests/uninorm/test-u8-normcoll.c: New file.
12727 2009-03-07 Bruno Haible <bruno@clisp.org>
12729 * tests/uninorm/test-u32-normcmp.h: New file, extracted from
12730 tests/uninorm/test-u32-normcmp.c.
12731 * tests/uninorm/test-u32-normcmp.c: Include it.
12732 (test_nonascii): New function, extracted from main. Add some more
12734 (main): Invoke test_ascii and test_nonascii.
12735 * modules/uninorm/u32-normcmp-tests (Files): Add
12736 tests/uninorm/test-u32-normcmp.h.
12737 (Depends-on): Remove uninorm/u32-normcmp.
12739 * tests/uninorm/test-u16-normcmp.h: New file, extracted from
12740 tests/uninorm/test-u16-normcmp.c.
12741 * tests/uninorm/test-u16-normcmp.c: Include it.
12742 (test_nonascii): New function, extracted from main. Add some more
12744 (main): Invoke test_ascii and test_nonascii.
12745 * modules/uninorm/u16-normcmp-tests (Files): Add
12746 tests/uninorm/test-u16-normcmp.h.
12747 (Depends-on): Remove uninorm/u16-normcmp.
12749 * tests/uninorm/test-u8-normcmp.h: New file, extracted from
12750 tests/uninorm/test-u8-normcmp.c.
12751 * tests/uninorm/test-u8-normcmp.c: Include it.
12752 (test_nonascii): New function, extracted from main. Add some more
12754 (main): Invoke test_ascii and test_nonascii.
12755 * modules/uninorm/u8-normcmp-tests (Files): Add
12756 tests/uninorm/test-u8-normcmp.h.
12757 (Depends-on): Remove uninorm/u8-normcmp.
12759 2009-03-07 Bruno Haible <bruno@clisp.org>
12761 New module 'uninorm/u32-normcoll'.
12762 * lib/uninorm/u32-normcoll.c: New file.
12763 * modules/uninorm/u32-normcoll: New file.
12765 New module 'uninorm/u16-normcoll'.
12766 * lib/uninorm/u16-normcoll.c: New file.
12767 * modules/uninorm/u16-normcoll: New file.
12769 New module 'uninorm/u8-normcoll'.
12770 * lib/uninorm.h (u8_normcoll, u16_normcoll, u32_normcoll): New
12772 * lib/uninorm/u8-normcoll.c: New file.
12773 * lib/uninorm/u-normcoll.h: New file.
12774 * modules/uninorm/u8-normcoll: New file.
12776 New module 'uninorm/u32-normxfrm'.
12777 * lib/uninorm/u32-normxfrm.c: New file.
12778 * modules/uninorm/u32-normxfrm: New file.
12780 New module 'uninorm/u16-normxfrm'.
12781 * lib/uninorm/u16-normxfrm.c: New file.
12782 * modules/uninorm/u16-normxfrm: New file.
12784 New module 'uninorm/u8-normxfrm'.
12785 * lib/uninorm.h (u8_normxfrm, u16_normxfrm, u32_normxfrm): New
12787 * lib/uninorm/u8-normxfrm.c: New file.
12788 * lib/uninorm/u-normxfrm.h: New file.
12789 * modules/uninorm/u8-normxfrm: New file.
12791 2009-03-07 Bruno Haible <bruno@clisp.org>
12793 * modules/uninorm/u8-normcmp (Depends-on): Add uninorm/base.
12794 * modules/uninorm/u16-normcmp (Depends-on): Likewise.
12795 * modules/uninorm/u32-normcmp (Depends-on): Likewise.
12797 2009-03-07 Bruno Haible <bruno@clisp.org>
12799 New module 'memxfrm'.
12800 * lib/memxfrm.h: New file.
12801 * lib/memxfrm.c: New file.
12802 * modules/memxfrm: New file.
12804 2009-03-07 Bruno Haible <bruno@clisp.org>
12806 New module 'memcmp2'.
12807 * lib/memcmp2.h: New file.
12808 * lib/memcmp2.c: New file.
12809 * modules/memcmp2: New file.
12811 2009-03-07 Bruno Haible <bruno@clisp.org>
12813 Tests for module 'uninorm/decomposing-form'.
12814 * modules/uninorm/decomposing-form-tests: New file.
12815 * tests/uninorm/test-decomposing-form.c: New file.
12817 New module 'uninorm/decomposing-form'.
12818 * lib/uninorm.h (uninorm_decomposing_form): New declaration.
12819 * lib/uninorm/normalize-internal.h (struct unicode_normalization_form):
12820 Add 'decomposing_variant' field.
12821 * lib/uninorm/decomposing-form.c: New file.
12822 * lib/uninorm/nfc.c (uninorm_nfc): Update.
12823 * lib/uninorm/nfd.c (uninorm_nfd): Update.
12824 * lib/uninorm/nfkc.c (uninorm_nfkc): Update.
12825 * lib/uninorm/nfkd.c (uninorm_nfkd): Update.
12826 * modules/uninorm/decomposing-form: New file.
12827 * modules/uninorm/nfc (Depends-on): Add uninorm/nfd.
12828 * modules/uninorm/nfkc (Depends-on): Add uninorm/nfkd.
12830 2009-03-07 Bruno Haible <bruno@clisp.org>
12832 * lib/uninorm/u-normcmp.h (FUNC): Use stack=allocated buffers for small
12835 2009-03-06 Bruno Haible <bruno@clisp.org>
12837 Tests for module 'uninorm/u32-normcmp'.
12838 * tests/uninorm/test-u32-normcmp.c: New file.
12839 * modules/uninorm/u32-normcmp-tests: New file.
12841 Tests for module 'uninorm/u16-normcmp'.
12842 * tests/uninorm/test-u16-normcmp.c: New file.
12843 * modules/uninorm/u16-normcmp-tests: New file.
12845 Tests for module 'uninorm/u8-normcmp'.
12846 * tests/uninorm/test-u8-normcmp.c: New file.
12847 * modules/uninorm/u8-normcmp-tests: New file.
12849 New module 'uninorm/u32-normcmp'.
12850 * lib/uninorm/u32-normcmp.c: New file.
12851 * modules/uninorm/u32-normcmp: New file.
12853 New module 'uninorm/u16-normcmp'.
12854 * lib/uninorm/u16-normcmp.c: New file.
12855 * modules/uninorm/u16-normcmp: New file.
12857 New module 'uninorm/u8-normcmp'.
12858 * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp): New
12860 * lib/uninorm/u8-normcmp.c: New file.
12861 * lib/uninorm/u-normcmp.h: New file.
12862 * modules/uninorm/u8-normcmp: New file.
12864 2009-03-06 Bruno Haible <bruno@clisp.org>
12866 * lib/w32spawn.h (dup_noinherit): Add cast, to avoid gcc warning.
12867 Reported by Eric Blake.
12869 2009-03-06 Eric Blake <ebb9@byu.net>
12870 Bruno Haible <bruno@clisp.org>
12872 * lib/spawni.c (__spawni) [WIN32_NATIVE]: Define as a stub.
12873 * modules/posix_spawn-tests (configure.ac): Define POSIX_SPAWN_PORTED
12875 (Makefile.am): Do nothing if POSIX_SPAWN_PORTED is false.
12876 * modules/posix_spawnp-tests (configure.ac): Define POSIX_SPAWN_PORTED
12878 (Makefile.am): Do nothing if POSIX_SPAWN_PORTED is false.
12880 2009-03-06 Eric Blake <ebb9@byu.net>
12882 * lib/execute.c (execute) [WIN32_NATIVE]: Cast arguments of spawnvpe,
12883 to avoid compiler warnings.
12884 * lib/pipe.c (create_pipe) [WIN32_NATIVE]: Likewise.
12886 2009-03-05 Bruno Haible <bruno@clisp.org>
12888 * tests/test-ftell.c (main): Disable test beyond end of file on
12890 Patch by Alan Hourihane <alanh@fairlite.co.uk>.
12892 2009-03-05 Kamil Dudka <kdudka@redhat.com>
12894 * lib/filevercmp.c: Move hidden files up in ordering.
12895 * tests/test-filevercmp.c: Add tests for hidden files.
12897 2009-03-04 Bruno Haible <bruno@clisp.org>
12899 * modules/visibility (Makefile.am): Augment AM_CFLAGS.
12900 * gnulib-tool (func_emit_lib_Makefile_am): Emit initialization of
12902 Reported by Simon Josefsson.
12904 2009-03-03 Bruno Haible <bruno@clisp.org>
12906 * doc/visibility.texi: Recommend to use HAVE_VISIBILITY as a C macro.
12907 Reported by Simon Josefsson.
12909 * doc/ld-version-script.texi: Update node reference.
12911 2009-03-03 Bruno Haible <bruno@clisp.org>
12913 * modules/visibility (License): Change to 'unlimited'.
12914 Suggested by Simon Josefsson.
12916 2009-03-03 Jim Meyering <meyering@redhat.com>
12918 unlinkdir: cannot_unlink_dir may modify process state
12919 * lib/unlinkdir.c (cannot_unlink_dir): Add a comment warning that
12920 it's neither thread-safe nor appropriate for use in a library.
12922 2009-03-03 Eric Blake <ebb9@byu.net>
12924 test-closein: silence test under Darwin
12925 * tests/test-closein.sh: Ignore stderr from cat, since we don't
12926 care if it dies from EPIPE or EBADF.
12928 2009-03-03 Bruno Haible <bruno@clisp.org>
12930 * doc/gnulib.texi: Include visibility.texi and ld-version-script.texi
12932 * doc/visibility.texi: Fix @node and @section.
12934 2009-03-03 Simon Josefsson <simon@josefsson.org>
12936 * doc/gnulib.texi: Link to sections for ld version script and
12938 * doc/visibility.texi: Add @node and @section.
12939 * modules/ld-version-script: New module.
12940 * m4/ld-version-script.m4: New file.
12941 * doc/ld-version-script.texi: New file.
12943 2009-03-02 David Lutterkort <lutter@redhat.com>
12945 * lib/safe-alloc.h (__GNUC_PREREQ): New macro.
12946 Reported by Tom G. Christensen <tgc@jupiterrise.com>.
12948 2009-03-02 Bruno Haible <bruno@clisp.org>
12950 * doc/visibility.texi: Mention libtool's -export-symbols option.
12952 2009-03-02 Jim Meyering <meyering@redhat.com>
12954 announce-gen: new option: --no-print-checksums
12955 * build-aux/announce-gen (usage): Describe it.
12956 (print_checksums): Print a newline here, not in the [*] footnote.
12959 2009-03-01 Bruno Haible <bruno@clisp.org>
12961 Use socklen_t in the native Windows replacements prototypes.
12962 * lib/sys_socket.in.h (rpl_getsockopt, rpl_setsockopt): Use socklen_t
12964 * lib/getsockopt.c (rpl_getsockopt): Likewise.
12965 * lib/setsockopt.c (rpl_setsockopt): Likewise.
12966 * modules/getsockopt (Depends-on): Add socklen.
12967 * modules/setsockopt (Depends-on): Add socklen.
12969 2009-03-01 Bruno Haible <bruno@clisp.org>
12971 * gnulib-tool (sed): Do alias as "sed --posix" if sed's version is at
12974 2009-03-01 Eric Blake <ebb9@byu.net>
12975 Bruno Haible <bruno@clisp.org>
12977 * lib/wait-process.h (wait_subprocess): Describe effect of termsigp on
12979 * lib/wait-process.c (wait_subprocess): Omit error message about
12980 deadly signal sent to the child of termsigp != NULL.
12982 2009-03-01 Eric Blake <ebb9@byu.net>
12984 * lib/wait-process.c (wait_subprocess): Remove unnecessary cast.
12986 2009-03-01 Bruno Haible <bruno@clisp.org>
12988 Avoid a gcc warning.
12989 * tests/test-sched.c (b): Make global.
12990 Reported by Eric Blake.
12992 2009-01-19 Martin Lambers <marlam@marlam.de>
12994 Provide POSIX semantics for socket timeout options on W32.
12995 * lib/setsockopt.c: Convert struct timeval to milliseconds on W32.
12996 * lib/getsockopt.c: Convert milliseconds to struct timeval on W32.
12997 * modules/setsockopt: Depend on sys_time module for struct timeval.
12998 * modules/getsockopt: Depend on sys_time module for struct timeval.
13000 2009-03-01 Simon Josefsson <simon@josefsson.org>
13002 * lib/gai_strerror.c (values): Use EAI_INPROGRESS instead of
13003 __USE_GNU, for consistency with netdb.in.h.
13004 Reported by Alan Hourihane <alanh@fairlite.co.uk>.
13006 2009-03-01 Bruno Haible <bruno@clisp.org>
13008 More support for FreeMiNT.
13009 * lib/fseeko.c (rpl_fseeko): Complete last commit.
13010 Reported by Alan Hourihane <alanh@fairlite.co.uk>.
13012 2009-03-01 Bruno Haible <bruno@clisp.org>
13014 More support for FreeMiNT.
13015 * lib/fpurge.c (fpurge): Correct last commit.
13016 Reported by Alan Hourihane <alanh@fairlite.co.uk>.
13018 2009-03-01 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
13020 Fix unportable awk script in vc-list-files.
13021 * build-aux/vc-list-files: In the replacement awk script, use
13022 substr with a second argument of 1, not zero.
13023 Report by Simon Josefsson.
13025 2009-02-28 Bruno Haible <bruno@clisp.org>
13027 More support for FreeMiNT.
13028 * lib/freading.c (freading) [__MINT__]: Use new macros that were added
13030 * lib/fwriting.c (fwriting): Likewise.
13031 Based on patch by Alan Hourihane <alanh@fairlite.co.uk>.
13033 2009-02-28 Bruno Haible <bruno@clisp.org>
13035 * tests/test-freadseek.c (main): Disable test beyond end of file on
13037 * tests/test-ftello.c (main): Likewise.
13038 Patch by Alan Hourihane <alanh@fairlite.co.uk>.
13040 2009-02-28 Bruno Haible <bruno@clisp.org>
13042 Add tentative support for FreeMiNT.
13043 * lib/fbufmode.c (fbufmode) [__MINT__]: Add conditional code.
13044 * lib/fpurge.c (fpurge): Likewise.
13045 * lib/freadable.c (freadable): Likewise.
13046 * lib/freading.c (freading): Likewise.
13047 * lib/freadptr.c (freadptr): Likewise.
13048 * lib/freadseek.c (freadptrinc): Likewise.
13049 * lib/fseeko.c (rpl_fseeko): Likewise.
13050 * lib/fseterr.c (fseterr): Likewise.
13051 * lib/fwritable.c (fwritable): Likewise.
13052 * lib/fwriting.c (fwriting): Likewise.
13053 * lib/freadahead.c (freadahead): Likewise, based on code by Alan
13055 Reported by Alan Hourihane <alanh@fairlite.co.uk>.
13057 2009-02-28 Bruno Haible <bruno@clisp.org>
13059 * lib/wait-process.h (wait_subprocess): Clarify restriction regarding
13061 Reported by Jim Meyering.
13063 2009-02-28 Bruno Haible <bruno@clisp.org>
13065 * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Separate the two first tests.
13066 Mention the results of these tests on various platforms.
13067 * doc/posix-functions/fprintf.texi: Mention platforms in canonical
13069 * doc/posix-functions/printf.texi: Likewise.
13070 * doc/posix-functions/snprintf.texi: Likewise.
13071 * doc/posix-functions/sprintf.texi: Likewise.
13072 * doc/posix-functions/vfprintf.texi: Likewise.
13073 * doc/posix-functions/vprintf.texi: Likewise.
13074 * doc/posix-functions/vsnprintf.texi: Likewise.
13075 * doc/posix-functions/vsprintf.texi: Likewise.
13076 * doc/glibc-functions/obstack_printf.texi: Likewise.
13077 * doc/glibc-functions/obstack_vprintf.texi: Likewise.
13079 2009-02-28 Bruno Haible <bruno@clisp.org>
13081 * build-aux/po/Makefile.in.in: Update from GNU gettext 0.17.
13082 Reported by Loïc Minier <lool@dooz.org>.
13084 2009-02-27 Bruno Haible <bruno@clisp.org>
13086 * gnulib-tool (func_import): Make the sed expression used to create the
13087 sed script for updating the .gitignore file POSIX compliant.
13088 Reported by Eric Blake.
13090 2009-02-27 Bruno Haible <bruno@clisp.org>
13092 * gnulib-tool (sed): Don't alias as "sed --posix".
13093 Reported by Eric Blake.
13095 2009-02-27 Bruno Haible <bruno@clisp.org>
13097 Avoid test link errors.
13098 * modules/uninorm/nfc-tests (test_u32_nfc_big_LDADD): New variable.
13099 * modules/uninorm/nfd-tests (test_u32_nfd_big_LDADD): New variable.
13100 * modules/uninorm/nfkc-tests (test_u32_nfkc_big_LDADD): New variable.
13101 * modules/uninorm/nfkd-tests (test_u32_nfkd_big_LDADD): New variable.
13102 Reported by Tom G. Christensen <tgc@jupiterrise.com>.
13104 2009-02-27 Bruno Haible <bruno@clisp.org>
13106 Avoid spurious "(cached)" in configure output.
13107 * m4/gnulib-common.m4 (gl_CACHE_VAL_SILENT): New macro.
13108 * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Use it instead of AC_CACHE_VAL.
13109 * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
13110 * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
13111 * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
13112 * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Likewise.
13113 * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
13114 * m4/stdarg.m4 (gl_STDARG_H): Likewise.
13115 Reported by Eric Blake.
13117 2009-02-27 Eric Blake <ebb9@byu.net>
13119 printf: fix regression in previous patch
13120 * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Fix compilation error.
13122 2009-02-27 Bruno Haible <bruno@clisp.org>
13124 * lib/inttypes.in.h: Test merely whether _LP64 is defined, not its
13126 * lib/stdint.in.h: Likewise.
13127 Suggested by Eric Blake. Reported by Peter Bray <pdb_ml@yahoo.com.au>.
13129 2009-02-27 Eric Blake <ebb9@byu.net>
13131 doc: mention more functions added in cygwin 1.7.0
13132 * doc/posix-functions/mbsnrtowcs.texi: Mention recent cygwin 1.7.0
13134 * doc/posix-functions/open_wmemstream.texi: Likewise.
13135 * doc/posix-functions/wcsnlen.texi: Likewise.
13136 * doc/posix-functions/wcsnrtombs.texi: Likewise.
13137 * doc/posix-functions/wcstod.texi: Likewise.
13138 * doc/posix-functions/wcstof.texi: Likewise.
13139 * doc/posix-functions/wcstoimax.texi: Likewise.
13140 * doc/posix-functions/wcstok.texi: Likewise.
13141 * doc/posix-functions/wcstoumax.texi: Likewise.
13143 Detect bug in cygwin 1.5.x *printf on 1-character %ls.
13144 * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Enhance filter.
13145 * doc/posix-functions/fprintf.texi: Update.
13146 * doc/posix-functions/printf.texi: Update.
13147 * doc/posix-functions/snprintf.texi: Update.
13148 * doc/posix-functions/sprintf.texi: Update.
13149 * doc/posix-functions/vfprintf.texi: Update.
13150 * doc/posix-functions/vprintf.texi: Update.
13151 * doc/posix-functions/vsnprintf.texi: Update.
13152 * doc/posix-functions/vsprintf.texi: Update.
13153 * doc/glibc-functions/obstack_printf.texi: Update.
13154 * doc/glibc-functions/obstack_vprintf.texi: Update.
13156 2009-02-26 Eric Blake <ebb9@byu.net>
13158 avoid gcc 3.4.3 bug on long double NaN on Irix 6.5
13159 * tests/nan.h (NaNl): Rewrite as function on Irix, to avoid
13160 compilation bug by using runtime conversion.
13161 * m4/isfinite.m4 (gl_ISFINITE): Likewise.
13162 * m4/isnanl.m4 (gl_FUNC_ISNANL): Likewise.
13163 * modules/ceill-tests (Files): Use nan.h.
13164 * modules/floorl-tests (Files): Likewise.
13165 * modules/frexpl-tests (Files): Likewise.
13166 * modules/isnanl-tests (Files): Likewise.
13167 * modules/ldexpl-tests (Files): Likewise.
13168 * modules/roundl-tests (Files): Likewise.
13169 * modules/truncl-tests (Files): Likewise.
13170 * tests/test-ceill.c (main): Use a working NaN.
13171 * tests/test-floorl.c (main): Likewise.
13172 * tests/test-frexpl.c (main): Likewise.
13173 * tests/test-isnan.c (test_long_double): Likewise.
13174 * tests/test-isnanl.h (main): Likewise.
13175 * tests/test-ldexpl.h (main): Likewise.
13176 * tests/test-roundl.h (main): Likewise.
13177 * tests/test-truncl.h (main): Likewise.
13178 See http://lists.gnu.org/archive/html/bug-gnulib/2009-02/msg00190.html.
13180 2009-02-26 Eric Blake <ebb9@byu.net>
13181 Bruno Haible <bruno@clisp.org>
13183 Work around a *printf bug with %ls on Solaris.
13184 * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Also test whether, when a
13185 precision is specified, sprintf stops converting the wide string
13186 argument when the number of bytes that have been produced by this
13187 conversion equals or exceeds the precision.
13188 * doc/posix-functions/fprintf.texi: Update.
13189 * doc/posix-functions/printf.texi: Update.
13190 * doc/posix-functions/snprintf.texi: Update.
13191 * doc/posix-functions/sprintf.texi: Update.
13192 * doc/posix-functions/vfprintf.texi: Update.
13193 * doc/posix-functions/vprintf.texi: Update.
13194 * doc/posix-functions/vsnprintf.texi: Update.
13195 * doc/posix-functions/vsprintf.texi: Update.
13196 * doc/glibc-functions/obstack_printf.texi: Update.
13197 * doc/glibc-functions/obstack_vprintf.texi: Update.
13199 2009-02-26 Eric Blake <ebb9@byu.net>
13201 stdlib: favor compiler check of random.h
13202 * m4/stdlib_h.m4 (gl_STDLIB_H): Skip preprocessor check. Needed
13203 to avoid an ObjC random.h installed by Swarm.
13205 2009-02-26 Bruno Haible <bruno@clisp.org>
13207 Work around *printf bug with %g directive and 0.0 on HP-UX 10.20.
13208 * m4/printf.m4 (gl_PRINTF_INFINITE): Also test for %g output of -0.0.
13209 Reported by Gary V. Vaughan <gary@gnu.org>.
13211 2009-02-26 Bruno Haible <bruno@clisp.org>
13213 Fix *printf behaviour regarding the %ls directive.
13214 * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): New macro.
13215 * lib/vasnprintf.c (local_wcslen, VASNPRINTF): Handle
13216 NEED_PRINTF_DIRECTIVE_LS.
13217 * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_LS): New macro.
13218 (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
13219 * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
13220 gl_PREREQ_VASNPRINTF_DIRECTIVE_LS and test its result. Invoke
13221 gl_PREREQ_VASNPRINTF_DIRECTIVE_LS.
13222 * m4/dprintf-posix.m4 (gl_FUNC_DPRINTF_POSIX): Likewise.
13223 * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX): Likewise.
13224 * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
13225 * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
13226 * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
13227 * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
13228 * m4/vdprintf-posix.m4 (gl_FUNC_VDPRINTF_POSIX): Likewise.
13229 * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
13230 * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
13231 * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
13232 * doc/posix-functions/fprintf.texi: Update.
13233 * doc/posix-functions/printf.texi: Update.
13234 * doc/posix-functions/snprintf.texi: Update.
13235 * doc/posix-functions/sprintf.texi: Update.
13236 * doc/posix-functions/vfprintf.texi: Update.
13237 * doc/posix-functions/vprintf.texi: Update.
13238 * doc/posix-functions/vsnprintf.texi: Update.
13239 * doc/posix-functions/vsprintf.texi: Update.
13240 * doc/glibc-functions/obstack_printf.texi: Update.
13241 * doc/glibc-functions/obstack_vprintf.texi: Update.
13242 Reported by Eric Blake.
13244 2009-02-25 Bruno Haible <bruno@clisp.org>
13246 * m4/mbrtowc.m4 (gl_MBRTOWC_NUL_RETVAL): Update guess for Solaris 8
13248 Reported by Gary V. Vaughan <gary@gnu.org>.
13250 2009-02-25 Bruno Haible <bruno@clisp.org>
13252 Work around mbrtowc bug in zh_CN.GB18030 locale on Solaris 8.
13253 * m4/mbrtowc.m4 (gl_MBRTOWC_SANITYCHECK): New macro.
13254 (gl_MBSTATE_T_BROKEN): Invoke it. Replace mbstate_t when it says "no".
13255 * doc/posix-functions/mbrtowc.texi: Document the Solaris 8 bug.
13256 Reported by Gary V. Vaughan <gary@gnu.org>.
13258 2009-02-25 Bruno Haible <bruno@clisp.org>
13260 Work around broken INT8_MAX, UINT8_MAX etc. values on HP-UX 11.23.
13261 * m4/stdint.m4 (gl_STDINT_H): Also check whether the expansions of
13262 INT8_MAX, UINT8_MAX etc. contain casts to elementary types.
13263 * doc/posix-headers/stdint.texi: Mention the HP-UX bug.
13264 Reported by Gary V. Vaughan <gary@gnu.org>.
13266 2009-02-25 Eric Blake <ebb9@byu.net>
13268 tests: skip fseek/ftell tests if ungetc is broken
13269 * m4/ungetc.m4: New file.
13270 * modules/fseek-tests: Split test, so ungetc dependency is
13271 separate from rest of test.
13272 * modules/fseeko-tests: Likewise.
13273 * modules/ftell-tests: Likewise.
13274 * modules/ftello-tests: Likewise.
13275 * tests/test-fseek.c (main): Isolate ungetc dependency.
13276 * tests/test-fseeko.c (main): Likewise.
13277 * tests/test-ftell.c (main): Likewise.
13278 * tests/test-ftello.c (main): Likewise.
13279 * tests/test-fseek2.sh: New file.
13280 * tests/test-fseeko2.sh: Likewise.
13281 * tests/test-ftell2.sh: Likewise.
13282 * tests/test-ftello2.sh: Likewise.
13284 2009-02-25 OndÅ™ej VaÅ¡Ãk <ovasik@redhat.com>
13286 test-getaddrinfo: fix usage of skip return code 77
13287 * tests/test-gettaddrinfo.c: Return skip code 77 only
13288 for first occurance of skip (4x77 is not 77)
13290 2009-02-25 Gary V. Vaughan <gary@gnu.org>
13292 strtod: avoid C99 decl-after-statement
13293 * m4/strtod.m4 (gl_FUNC_STRTOD): Rearrange declaration.
13295 2009-02-24 Eric Blake <ebb9@byu.net>
13297 strtod: detect HP-UX 11.31 bug
13298 * m4/strtod.m4 (gl_FUNC_STRTOD): Detect errno handling bug.
13299 Reported by Gary V. Vaughan.
13301 2009-02-23 Bruno Haible <bruno@clisp.org>
13303 Fix invalid read past end of memory block.
13304 * lib/vasnprintf.c (DCHAR_SET): Define.
13305 (local_wcslen): Define only when needed.
13306 (local_strnlen, local_wcsnlen): New functions.
13307 (VASNPRINTF) [!USE_SNPRINTF && HAVE_WCHAR_T]: Implement the %s and %ls
13308 directives that involve a conversion ourselves.
13309 * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Also check for strnlen,
13310 wcsnlen, mbrtowc, wcrtomb.
13311 * tests/test-vasnprintf-posix.c (test_function): Add tests for %.*s.
13312 * tests/test-vasprintf-posix.c (test_function): Likewise.
13313 * tests/test-snprintf-posix.h (test_function): Likewise.
13314 * tests/test-sprintf-posix.h (test_function): Likewise.
13315 Reported by Ben Pfaff <blp@cs.stanford.edu>.
13317 2009-02-22 Bruno Haible <bruno@clisp.org>
13319 Implement new clarified decomposition of Hangul syllables.
13320 * lib/uninorm/decomposition.c (uc_decomposition): For Hangul syllables
13321 of type LTV, return only a pairwise decomposition.
13322 * lib/uninorm/canonical-decomposition.c (uc_canonical_decomposition):
13324 * tests/uninorm/test-decomposition.c (main): Updated expected result.
13325 * tests/uninorm/test-canonical-decomposition.c (main): Likewise.
13326 * tests/uninorm/test-compat-decomposition.c (main): Likewise.
13328 2009-02-22 Bruno Haible <bruno@clisp.org>
13330 * lib/uninorm/u-normalize-internal.h (FUNC): At the end, handle
13331 zero-length results and shrink excess allocated memory.
13332 * tests/uninorm/test-u8-nfc.c (test_u8_nfc): Check empty string result.
13333 * tests/uninorm/test-u8-nfd.c (test_u8_nfd): Likewise.
13334 * tests/uninorm/test-u8-nfkc.c (test_u8_nfkc): Likewise.
13335 * tests/uninorm/test-u8-nfkd.c (test_u8_nfkd): Likewise.
13336 * tests/uninorm/test-u16-nfc.c (test_u16_nfc): Likewise.
13337 * tests/uninorm/test-u16-nfd.c (test_u16_nfd): Likewise.
13338 * tests/uninorm/test-u16-nfkc.c (test_u16_nfkc): Likewise.
13339 * tests/uninorm/test-u16-nfkd.c (test_u16_nfkd): Likewise.
13340 * tests/uninorm/test-u32-nfc.c (test_u32_nfc): Likewise.
13341 * tests/uninorm/test-u32-nfd.c (test_u32_nfd): Likewise.
13342 * tests/uninorm/test-u32-nfkc.c (test_u32_nfkc): Likewise.
13343 * tests/uninorm/test-u32-nfkd.c (test_u32_nfkd): Likewise.
13345 2009-02-21 Bruno Haible <bruno@clisp.org>
13347 * doc/gnulib.texi: Include safe-alloc.texi earlier.
13348 * doc/safe-alloc.texi: Terminate sentences with a period. Use two
13349 spaces after a period. Put a space between a macro name and its
13350 argument list. Trivial rewordings.
13351 * lib/safe-alloc.c: Include safe-alloc.h right after config.h.
13352 * tests/test-safe-alloc.c: Likewise. Include stdlib.h.
13353 (main): Return 0 explicitly.
13355 2009-02-21 Bruno Haible <bruno@clisp.org>
13357 Tests for module 'uninorm/filter'.
13358 * tests/uninorm/test-uninorm-filter-nfc.c: New file.
13359 * modules/uninorm/filter-tests: New file.
13361 New module 'uninorm/filter'.
13362 * lib/uninorm.h (uninorm_filter_create, uninorm_filter_write,
13363 uninorm_filter_flush, uninorm_filter_free): New declarations.
13364 * lib/uninorm/uninorm-filter.c: New file.
13365 * modules/uninorm/filter: New file.
13367 2009-02-21 Bruno Haible <bruno@clisp.org>
13369 Tests for module 'uninorm/nfkc'.
13370 * tests/uninorm/test-nfkc.c: New file.
13371 * tests/uninorm/test-u8-nfkc.c: New file.
13372 * tests/uninorm/test-u16-nfkc.c: New file.
13373 * tests/uninorm/test-u32-nfkc.c: New file.
13374 * tests/uninorm/test-u32-nfkc-big.sh: New file.
13375 * tests/uninorm/test-u32-nfkc-big.c: New file.
13376 * modules/uninorm/nfkc-tests: New file.
13378 New module 'uninorm/nfkc'.
13379 * lib/uninorm/nfkc.c: New file.
13380 * modules/uninorm/nfkc: New file.
13382 Tests for module 'uninorm/nfkd'.
13383 * tests/uninorm/test-nfkd.c: New file.
13384 * tests/uninorm/test-u8-nfkd.c: New file.
13385 * tests/uninorm/test-u16-nfkd.c: New file.
13386 * tests/uninorm/test-u32-nfkd.c: New file.
13387 * tests/uninorm/test-u32-nfkd-big.sh: New file.
13388 * tests/uninorm/test-u32-nfkd-big.c: New file.
13389 * modules/uninorm/nfkd-tests: New file.
13391 New module 'uninorm/nfkd'.
13392 * lib/uninorm/nfkd.c: New file.
13393 * modules/uninorm/nfkd: New file.
13395 Tests for module 'uninorm/nfc'.
13396 * tests/uninorm/test-nfc.c: New file.
13397 * tests/uninorm/test-u8-nfc.c: New file.
13398 * tests/uninorm/test-u16-nfc.c: New file.
13399 * tests/uninorm/test-u32-nfc.c: New file.
13400 * tests/uninorm/test-u32-nfc-big.sh: New file.
13401 * tests/uninorm/test-u32-nfc-big.c: New file.
13402 * modules/uninorm/nfc-tests: New file.
13404 New module 'uninorm/nfc'.
13405 * lib/uninorm/nfc.c: New file.
13406 * modules/uninorm/nfc: New file.
13408 Tests for module 'uninorm/nfd'.
13409 * tests/uninorm/test-nfd.c: New file.
13410 * tests/uninorm/test-u8-nfd.c: New file.
13411 * tests/uninorm/test-u16-nfd.c: New file.
13412 * tests/uninorm/test-u32-nfd.c: New file.
13413 * tests/uninorm/test-u32-nfd-big.sh: New file.
13414 * tests/uninorm/test-u32-nfd-big.c: New file.
13415 * tests/uninorm/test-u32-normalize-big.h: New file.
13416 * tests/uninorm/test-u32-normalize-big.c: New file.
13417 * tests/uninorm/NormalizationTest.txt: New file, created from
13418 Unicode 5.1.0 NormalizationTest.txt.
13419 * modules/uninorm/nfd-tests: New file.
13421 New module 'uninorm/nfd'.
13422 * lib/uninorm/nfd.c: New file.
13423 * modules/uninorm/nfd: New file.
13425 New module 'uninorm/u32-normalize'.
13426 * lib/uninorm/u32-normalize.c: New file.
13427 * modules/uninorm/u32-normalize: New file.
13429 New module 'uninorm/u16-normalize'.
13430 * lib/uninorm/u16-normalize.c: New file.
13431 * modules/uninorm/u16-normalize: New file.
13433 New module 'uninorm/u8-normalize'.
13434 * lib/uninorm/u8-normalize.c: New file.
13435 * lib/uninorm/normalize-internal.h: New file.
13436 * lib/uninorm/u-normalize-internal.h: New file.
13437 * modules/uninorm/u8-normalize: New file.
13439 New module 'uninorm/decompose-internal'.
13440 * lib/uninorm/decompose-internal.c: New file.
13441 * modules/uninorm/decompose-internal: New file.
13443 Tests for module 'uninorm/composition'.
13444 * tests/uninorm/test-composition.c: New file.
13445 * modules/uninorm/composition-tests: New file.
13447 New module 'uninorm/composition'.
13448 * lib/uninorm/composition.c: New file.
13449 * lib/uninorm/composition-table.gperf: New file, generated by
13451 * modules/uninorm/composition: New file.
13453 Tests for module 'uninorm/compat-decomposition'.
13454 * tests/uninorm/test-compat-decomposition.c: New file.
13455 * modules/uninorm/compat-decomposition-tests: New file.
13457 New module 'uninorm/compat-decomposition'.
13458 * lib/uninorm/decompose-internal.h: New file.
13459 * lib/uninorm/compat-decomposition.c: New file.
13460 * modules/uninorm/compat-decomposition: New file.
13462 Tests for module 'uninorm/canonical-decomposition'.
13463 * tests/uninorm/test-canonical-decomposition.c: New file.
13464 * modules/uninorm/canonical-decomposition-tests: New file.
13466 New module 'uninorm/canonical-decomposition'.
13467 * lib/uninorm/canonical-decomposition.c: New file.
13468 * modules/uninorm/canonical-decomposition: New file.
13470 Tests for module 'uninorm/decomposition'.
13471 * tests/uninorm/test-decomposition.c: New file.
13472 * modules/uninorm/decomposition-tests: New file.
13474 New module 'uninorm/decomposition'.
13475 * lib/uninorm/decomposition.c: New file.
13476 * modules/uninorm/decomposition: New file.
13478 New module 'uninorm/decomposition-table'.
13479 * lib/uninorm/decomposition-table.h: New file.
13480 * lib/uninorm/decomposition-table.c: New file.
13481 * lib/uninorm/decomposition-table1.h: New file, generated by
13483 * lib/uninorm/decomposition-table2.h: New file, generated by
13485 * modules/uninorm/decomposition-table: New file.
13487 * lib/gen-uni-tables.c (MAX_DECOMP_LENGTH): New macro.
13488 (UC_DECOMP_*): New enumeration items.
13489 (get_decomposition): New function.
13490 (struct decomp_table): New type.
13491 (output_decomposition, output_decomposition_tables): New functions.
13492 (unicode_composition_exclusions): New variable.
13493 (fill_composition_exclusions, debug_output_composition_tables): New
13495 (main): Accept one more argument. Invoke fill_composition_exclusions.
13496 Output decomposition and composition tables.
13498 New module 'uninorm/base'.
13499 * lib/uninorm.h: New file.
13500 * lib/unictype.h: Update comment.
13501 * modules/uninorm/base: New file.
13503 2009-02-21 David Lutterkort <lutter@redhat.com>
13505 Tests for module 'safe-alloc'.
13506 * tests/test-safe-alloc.c: New file.
13507 * modules/safe-alloc-tests: New file.
13509 New module 'safe-alloc'.
13510 * lib/safe-alloc.h: New file.
13511 * lib/safe-alloc.c: New file.
13512 * m4/safe-alloc.m4: New file.
13513 * modules/safe-alloc: New file.
13514 * doc/safe-alloc.texi: New file.
13515 * doc/gnulib.texi: Include it.
13516 * MODULES.html.sh (Memory management functions <stdlib.h>): Add
13519 2009-02-18 Bruno Haible <bruno@clisp.org>
13521 Fix link error on non-glibc systems.
13522 * modules/uniwbrk/ulc-wordbreaks-tests (test_ulc_wordbreaks_LDADD): New
13524 Reported by Tom G. Christensen <tgc@jupiterrise.com>.
13526 2009-02-18 Jim Meyering <meyering@redhat.com>
13528 fts: avoid used-uninitialized error due to recent change
13529 * lib/fts.c (fts_read): Guard uses of the new member,
13530 parent->fts_n_dirs_remaining, since it's not relevant for
13531 the parent of a directory specified on the command-line.
13533 2009-02-17 James Youngman <jay@gnu.org>
13534 Bruno Haible <bruno@clisp.org>
13536 * m4/include_next.m4: Reformulate comment.
13538 2009-02-16 Jim Meyering <meyering@redhat.com>
13540 fts: add #if guards so that the fts_lgpl module still builds
13541 * lib/fts.c: Guard just-added hash-table-using parts with
13542 #if GNULIB_FTS, so as not to break builds of the fts_lgpl module.
13543 Reported by Simon Josefsson.
13545 2009-02-15 Bruno Haible <bruno@clisp.org>
13547 * modules/array-mergesort-tests: New file.
13548 * tests/test-array-mergesort.c: New file.
13550 New module 'array-mergesort'.
13551 * modules/array-mergesort: New file.
13552 * lib/array-mergesort.h: New file.
13554 2009-02-15 Bruno Haible <bruno@clisp.org>
13556 Fix 2009-02-07 commit.
13557 * lib/gen-uni-tables.c (output_predicate, output_category,
13558 output_combclass, output_bidi_category, output_decimal_digit,
13559 output_digit, output_numeric, output_mirror, output_scripts,
13560 output_ident_category, output_simple_mapping): Fix format directives.
13561 (output_lbp, output_wbp): Don't convert -1 to a size_t implicitly.
13563 2009-02-15 Albert Chin-A-Young <china@thewrittenword.com>
13565 * m4/include_next.m4: Update comment about IBM C 9.0/10.1 bug, now that
13566 fixes are available from IBM.
13568 2009-02-13 Jim Meyering <meyering@redhat.com>
13570 fts: arrange not to stat non-directories in more cases
13571 This makes GNU find (when it doesn't need to stat each file)
13572 *much* more efficient at traversing reiserfs file systems.
13573 * lib/fts_.h (struct ftsent) [fts_n_dirs_remaining]: New member.
13574 (struct FTS) [fts_leaf_optimization_works_ht]: Add member.
13575 * lib/fts.c (fts_close): Free ->fts_leaf_optimization_works_ht.
13576 (S_MAGIC_REISERFS, S_MAGIC_PROC): Define.
13577 (leaf_optimization_applies): New function.
13578 (LCO_hash, LCO_compare): New helper functions.
13579 (link_count_optimize_ok): New function.
13580 (fts_stat): Initialize new member (if dir).
13581 (fts_read): Decrement parent's fts_n_dirs_remaining count if
13582 we've just stat'ed a directory. Skip the stat call when possible.
13584 Note this AFS-related exchange:
13585 http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=143111
13586 and note find's pioctl call in find/fstype.c.
13587 But that is necessary only if you want to enable the
13588 optimization for AFS, and for now, I don't.
13590 fts: move a function definition "up" (no semantic change)
13591 * lib/fts.c (dirent_inode_sort_may_be_useful): Move definition
13592 "up" to precede upcoming use of a related function.
13594 2009-02-11 Jim Meyering <meyering@redhat.com>
13596 fts: correct internal computation of nlinks (optimization-related)
13597 * lib/fts.c (fts_build): ISSET(FTS_NOSTAT) has no bearing on
13598 whether the current entry is a directory, so don't test it.
13600 2009-02-10 Bruno Haible <bruno@clisp.org>
13602 Tests for module 'uniwbrk/ulc-wordbreaks'.
13603 * modules/uniwbrk/ulc-wordbreaks-tests: New file.
13604 * tests/uniwbrk/test-ulc-wordbreaks.sh: New file.
13605 * tests/uniwbrk/test-ulc-wordbreaks.c: New file.
13607 Tests for module 'uniwbrk/u32-wordbreaks'.
13608 * modules/uniwbrk/u32-wordbreaks-tests: New file.
13609 * tests/uniwbrk/test-u32-wordbreaks.c: New file.
13611 Tests for module 'uniwbrk/u16-wordbreaks'.
13612 * modules/uniwbrk/u16-wordbreaks-tests: New file.
13613 * tests/uniwbrk/test-u16-wordbreaks.c: New file.
13615 Tests for module 'uniwbrk/u8-wordbreaks'.
13616 * modules/uniwbrk/u8-wordbreaks-tests: New file.
13617 * tests/uniwbrk/test-u8-wordbreaks.c: New file.
13619 2009-02-10 Bruno Haible <bruno@clisp.org>
13621 * modules/uniwbrk/u8-wordbreaks (Depends-on): Add uniwbrk/wordbreak
13623 * modules/uniwbrk/u16-wordbreaks (Depends-on): Likewise.
13624 * modules/uniwbrk/u32-wordbreaks (Depends-on): Likewise.
13625 * modules/uniwbrk/ulc-wordbreaks (Depends-on): Add localcharset.
13627 2009-02-10 Simon Josefsson <simon@josefsson.org>
13629 * m4/sockets.m4: Call AC_C_INLINE since sockets.h now can use
13630 inline keywords. Reported by Bruno Haible <bruno@clisp.org>.
13632 2009-02-10 Bruno Haible <bruno@clisp.org>
13634 * lib/unilbrk/lbrktables.h: Renamed from lib/unilbrk/tables.h.
13635 * lib/unilbrk/lbrktables.c: Renamed from lib/unilbrk/tables.c.
13636 * modules/unilbrk/tables (Files, Makefile.am, Include): Update.
13637 * lib/unilbrk/u8-possible-linebreaks.c: Update.
13638 * lib/unilbrk/u16-possible-linebreaks.c: Likewise.
13639 * lib/unilbrk/u32-possible-linebreaks.c: Likewise.
13641 2009-02-09 Simon Josefsson <simon@josefsson.org>
13643 * lib/sockets.h (gl_fd_to_handle): New function.
13645 * tests/test-sockets.c: Call gl_fd_to_handle.
13647 2009-02-09 Bruno Haible <bruno@clisp.org>
13649 * doc/havelib.texi: Document the conventions on bi-arch systems.
13651 2009-02-08 Bruno Haible <bruno@clisp.org>
13653 Document the AC_LIB_LINKFLAGS macro.
13654 * doc/havelib.texi: New file, mostly written on 2005-05-24.
13655 * doc/gnulib.texi: Include it.
13657 2009-02-08 Bruno Haible <bruno@clisp.org>
13659 Fix wrong order of sections, compared to TOC.
13660 * doc/gnulib.texi: Include relocatable-maint.texi after the
13661 "Regular expressions" node, not before.
13663 2009-02-08 Bruno Haible <bruno@clisp.org>
13665 Tests for module 'unicase/totitle'.
13666 * modules/unicase/totitle-tests: New file.
13668 Tests for module 'unicase/tolower'.
13669 * modules/unicase/tolower-tests: New file.
13671 Tests for module 'unicase/toupper'.
13672 * modules/unicase/toupper-tests: New file.
13673 * tests/unicase/test-mapping-part1.h: New file.
13674 * tests/unicase/test-mapping-part2.h: New file.
13676 New module 'unicase/totitle'.
13677 * modules/unicase/totitle: New file.
13678 * lib/unicase/totitle.c: New file.
13680 New module 'unicase/tolower'.
13681 * modules/unicase/tolower: New file.
13682 * lib/unicase/tolower.c: New file.
13684 New module 'unicase/toupper'.
13685 * modules/unicase/toupper: New file.
13686 * lib/unicase/toupper.c: New file.
13687 * lib/unicase/simple-mapping.h: New file.
13689 * lib/gen-uni-tables.c (output_simple_mapping_test): New function.
13690 (mapping_table): New structure.
13691 (output_simple_mapping): New function.
13692 (main): Invoke output_simple_mapping_test and output_simple_mapping.
13693 * modules/gen-uni-tables (Description): Update.
13694 * lib/unicase/toupper.h: New file, automatically generated by
13696 * lib/unicase/tolower.h: New file, automatically generated by
13698 * lib/unicase/totitle.h: New file, automatically generated by
13700 * tests/unicase/test-uc_toupper.c: New file, automatically generated by
13702 * tests/unicase/test-uc_tolower.c: New file, automatically generated by
13704 * tests/unicase/test-uc_totitle.c: New file, automatically generated by
13707 New module 'unicase/base'.
13708 * modules/unicase/base: New file.
13709 * lib/unicase.h: New file.
13711 2009-02-08 Bruno Haible <bruno@clisp.org>
13713 New module 'uniwbrk/ulc-wordbreaks'.
13714 * modules/uniwbrk/ulc-wordbreaks: New file.
13715 * lib/uniwbrk/ulc-wordbreaks.c: New file.
13717 New module 'uniwbrk/u32-wordbreaks'.
13718 * modules/uniwbrk/u32-wordbreaks: New file.
13719 * lib/uniwbrk/u32-wordbreaks.c: New file.
13721 New module 'uniwbrk/u16-wordbreaks'.
13722 * modules/uniwbrk/u16-wordbreaks: New file.
13723 * lib/uniwbrk/u16-wordbreaks.c: New file.
13725 New module 'uniwbrk/u8-wordbreaks'.
13726 * modules/uniwbrk/u8-wordbreaks: New file.
13727 * lib/uniwbrk/u8-wordbreaks.c: New file.
13728 * lib/uniwbrk/u-wordbreaks.h: New file.
13730 New module 'uniwbrk/table'.
13731 * modules/uniwbrk/table: New file.
13732 * lib/uniwbrk/wbrktable.h: New file.
13733 * lib/uniwbrk/wbrktable.c: New file.
13735 New module 'uniwbrk/wordbreak-property'.
13736 * modules/uniwbrk/wordbreak-property: New file.
13737 * lib/uniwbrk/wordbreak-property.c: New file.
13739 * lib/gen-uni-tables.c (WBP_*): New enum items.
13740 (get_wbp, debug_output_wbp, debug_output_wbrk_tables): New functions.
13741 (unicode_org_wbp): New variable.
13742 (fill_org_wbp, debug_output_org_wbp, debug_output_org_wbrk_tables):
13744 (wbp_table): New structure.
13745 (output_wbp, output_wbrk_tables): New functions.
13746 (main): Accept additional argument. Invoke fill_org_wbp,
13747 debug_output_wbrk_tables, debug_output_org_wbrk_tables,
13748 output_wbrk_tables.
13749 * modules/gen-uni-tables (Description): Update.
13750 * lib/uniwbrk/wbrkprop.h: New file, automatically generated by
13753 New module 'uniwbrk/base'.
13754 * modules/uniwbrk/base: New file.
13755 * lib/uniwbrk.h: New file.
13757 2009-02-08 Bruno Haible <bruno@clisp.org>
13759 Update to Unicode 5.1.0.
13760 * lib/gen-uni-tables.c (is_property_alphabetic): Include
13762 (is_property_default_ignorable_code_point): Don't include characters
13763 of category Cc or Cs and not-a-characters.
13764 (get_lbp): Assume REVISION_22. Special handling of U+0609, U+060A,
13765 U+0D79, U+109E, U+109F, U+A60C.
13766 * lib/unictype/bidi_of.h: Regenerated.
13767 * lib/unictype/blocks.h: Regenerated.
13768 * lib/unictype/categ_C.h: Regenerated.
13769 * lib/unictype/categ_Cf.h: Regenerated.
13770 * lib/unictype/categ_Cn.h: Regenerated.
13771 * lib/unictype/categ_L.h: Regenerated.
13772 * lib/unictype/categ_Ll.h: Regenerated.
13773 * lib/unictype/categ_Lm.h: Regenerated.
13774 * lib/unictype/categ_Lo.h: Regenerated.
13775 * lib/unictype/categ_Lu.h: Regenerated.
13776 * lib/unictype/categ_M.h: Regenerated.
13777 * lib/unictype/categ_Mc.h: Regenerated.
13778 * lib/unictype/categ_Me.h: Regenerated.
13779 * lib/unictype/categ_Mn.h: Regenerated.
13780 * lib/unictype/categ_N.h: Regenerated.
13781 * lib/unictype/categ_Nd.h: Regenerated.
13782 * lib/unictype/categ_Nl.h: Regenerated.
13783 * lib/unictype/categ_No.h: Regenerated.
13784 * lib/unictype/categ_P.h: Regenerated.
13785 * lib/unictype/categ_Pd.h: Regenerated.
13786 * lib/unictype/categ_Pe.h: Regenerated.
13787 * lib/unictype/categ_Pf.h: Regenerated.
13788 * lib/unictype/categ_Pi.h: Regenerated.
13789 * lib/unictype/categ_Po.h: Regenerated.
13790 * lib/unictype/categ_Ps.h: Regenerated.
13791 * lib/unictype/categ_S.h: Regenerated.
13792 * lib/unictype/categ_Sk.h: Regenerated.
13793 * lib/unictype/categ_Sm.h: Regenerated.
13794 * lib/unictype/categ_So.h: Regenerated.
13795 * lib/unictype/categ_of.h: Regenerated.
13796 * lib/unictype/combining.h: Regenerated.
13797 * lib/unictype/ctype_alnum.h: Regenerated.
13798 * lib/unictype/ctype_alpha.h: Regenerated.
13799 * lib/unictype/ctype_graph.h: Regenerated.
13800 * lib/unictype/ctype_lower.h: Regenerated.
13801 * lib/unictype/ctype_print.h: Regenerated.
13802 * lib/unictype/ctype_punct.h: Regenerated.
13803 * lib/unictype/ctype_upper.h: Regenerated.
13804 * lib/unictype/decdigit.h: Regenerated.
13805 * lib/unictype/digit.h: Regenerated.
13806 * lib/unictype/mirror.h: Regenerated.
13807 * lib/unictype/numeric.h: Regenerated.
13808 * lib/unictype/pr_alphabetic.h: Regenerated.
13809 * lib/unictype/pr_bidi_arabic_digit.h: Regenerated.
13810 * lib/unictype/pr_bidi_arabic_right_to_left.h: Regenerated.
13811 * lib/unictype/pr_bidi_boundary_neutral.h: Regenerated.
13812 * lib/unictype/pr_bidi_eur_num_terminator.h: Regenerated.
13813 * lib/unictype/pr_bidi_left_to_right.h: Regenerated.
13814 * lib/unictype/pr_bidi_non_spacing_mark.h: Regenerated.
13815 * lib/unictype/pr_bidi_other_neutral.h: Regenerated.
13816 * lib/unictype/pr_combining.h: Regenerated.
13817 * lib/unictype/pr_dash.h: Regenerated.
13818 * lib/unictype/pr_decimal_digit.h: Regenerated.
13819 * lib/unictype/pr_default_ignorable_code_point.h: Regenerated.
13820 * lib/unictype/pr_deprecated.h: Regenerated.
13821 * lib/unictype/pr_diacritic.h: Regenerated.
13822 * lib/unictype/pr_extender.h: Regenerated.
13823 * lib/unictype/pr_format_control.h: Regenerated.
13824 * lib/unictype/pr_grapheme_base.h: Regenerated.
13825 * lib/unictype/pr_grapheme_extend.h: Regenerated.
13826 * lib/unictype/pr_grapheme_link.h: Regenerated.
13827 * lib/unictype/pr_id_continue.h: Regenerated.
13828 * lib/unictype/pr_id_start.h: Regenerated.
13829 * lib/unictype/pr_ideographic.h: Regenerated.
13830 * lib/unictype/pr_ignorable_control.h: Regenerated.
13831 * lib/unictype/pr_lowercase.h: Regenerated.
13832 * lib/unictype/pr_math.h: Regenerated.
13833 * lib/unictype/pr_numeric.h: Regenerated.
13834 * lib/unictype/pr_other_alphabetic.h: Regenerated.
13835 * lib/unictype/pr_other_default_ignorable_code_point.h: Regenerated.
13836 * lib/unictype/pr_other_grapheme_extend.h: Regenerated.
13837 * lib/unictype/pr_other_id_continue.h: Regenerated.
13838 * lib/unictype/pr_other_lowercase.h: Regenerated.
13839 * lib/unictype/pr_other_math.h: Regenerated.
13840 * lib/unictype/pr_punctuation.h: Regenerated.
13841 * lib/unictype/pr_sentence_terminal.h: Regenerated.
13842 * lib/unictype/pr_soft_dotted.h: Regenerated.
13843 * lib/unictype/pr_terminal_punctuation.h: Regenerated.
13844 * lib/unictype/pr_unassigned_code_value.h: Regenerated.
13845 * lib/unictype/pr_unified_ideograph.h: Regenerated.
13846 * lib/unictype/pr_uppercase.h: Regenerated.
13847 * lib/unictype/pr_xid_continue.h: Regenerated.
13848 * lib/unictype/pr_xid_start.h: Regenerated.
13849 * lib/unictype/pr_zero_width.h: Regenerated.
13850 * lib/unictype/scripts.h: Regenerated.
13851 * lib/unictype/scripts_byname.gperf: Regenerated.
13852 * lib/unictype/sy_java_ident.h: Regenerated.
13853 * lib/unilbrk/lbrkprop1.h: Regenerated.
13854 * lib/unilbrk/lbrkprop2.h: Regenerated.
13855 * tests/unictype/test-categ_C.c: Regenerated.
13856 * tests/unictype/test-categ_Cf.c: Regenerated.
13857 * tests/unictype/test-categ_Cn.c: Regenerated.
13858 * tests/unictype/test-categ_L.c: Regenerated.
13859 * tests/unictype/test-categ_Ll.c: Regenerated.
13860 * tests/unictype/test-categ_Lm.c: Regenerated.
13861 * tests/unictype/test-categ_Lo.c: Regenerated.
13862 * tests/unictype/test-categ_Lu.c: Regenerated.
13863 * tests/unictype/test-categ_M.c: Regenerated.
13864 * tests/unictype/test-categ_Mc.c: Regenerated.
13865 * tests/unictype/test-categ_Me.c: Regenerated.
13866 * tests/unictype/test-categ_Mn.c: Regenerated.
13867 * tests/unictype/test-categ_N.c: Regenerated.
13868 * tests/unictype/test-categ_Nd.c: Regenerated.
13869 * tests/unictype/test-categ_Nl.c: Regenerated.
13870 * tests/unictype/test-categ_No.c: Regenerated.
13871 * tests/unictype/test-categ_P.c: Regenerated.
13872 * tests/unictype/test-categ_Pd.c: Regenerated.
13873 * tests/unictype/test-categ_Pe.c: Regenerated.
13874 * tests/unictype/test-categ_Pf.c: Regenerated.
13875 * tests/unictype/test-categ_Pi.c: Regenerated.
13876 * tests/unictype/test-categ_Po.c: Regenerated.
13877 * tests/unictype/test-categ_Ps.c: Regenerated.
13878 * tests/unictype/test-categ_S.c: Regenerated.
13879 * tests/unictype/test-categ_Sk.c: Regenerated.
13880 * tests/unictype/test-categ_Sm.c: Regenerated.
13881 * tests/unictype/test-categ_So.c: Regenerated.
13882 * tests/unictype/test-ctype_alnum.c: Regenerated.
13883 * tests/unictype/test-ctype_alpha.c: Regenerated.
13884 * tests/unictype/test-ctype_graph.c: Regenerated.
13885 * tests/unictype/test-ctype_lower.c: Regenerated.
13886 * tests/unictype/test-ctype_print.c: Regenerated.
13887 * tests/unictype/test-ctype_punct.c: Regenerated.
13888 * tests/unictype/test-ctype_upper.c: Regenerated.
13889 * tests/unictype/test-decdigit.h: Regenerated.
13890 * tests/unictype/test-digit.h: Regenerated.
13891 * tests/unictype/test-numeric.h: Regenerated.
13892 * tests/unictype/test-pr_alphabetic.c: Regenerated.
13893 * tests/unictype/test-pr_bidi_arabic_digit.c: Regenerated.
13894 * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Regenerated.
13895 * tests/unictype/test-pr_bidi_boundary_neutral.c: Regenerated.
13896 * tests/unictype/test-pr_bidi_eur_num_terminator.c: Regenerated.
13897 * tests/unictype/test-pr_bidi_left_to_right.c: Regenerated.
13898 * tests/unictype/test-pr_bidi_non_spacing_mark.c: Regenerated.
13899 * tests/unictype/test-pr_bidi_other_neutral.c: Regenerated.
13900 * tests/unictype/test-pr_combining.c: Regenerated.
13901 * tests/unictype/test-pr_dash.c: Regenerated.
13902 * tests/unictype/test-pr_decimal_digit.c: Regenerated.
13903 * tests/unictype/test-pr_default_ignorable_code_point.c: Regenerated.
13904 * tests/unictype/test-pr_deprecated.c: Regenerated.
13905 * tests/unictype/test-pr_diacritic.c: Regenerated.
13906 * tests/unictype/test-pr_extender.c: Regenerated.
13907 * tests/unictype/test-pr_format_control.c: Regenerated.
13908 * tests/unictype/test-pr_grapheme_base.c: Regenerated.
13909 * tests/unictype/test-pr_grapheme_extend.c: Regenerated.
13910 * tests/unictype/test-pr_grapheme_link.c: Regenerated.
13911 * tests/unictype/test-pr_id_continue.c: Regenerated.
13912 * tests/unictype/test-pr_id_start.c: Regenerated.
13913 * tests/unictype/test-pr_ideographic.c: Regenerated.
13914 * tests/unictype/test-pr_ignorable_control.c: Regenerated.
13915 * tests/unictype/test-pr_lowercase.c: Regenerated.
13916 * tests/unictype/test-pr_math.c: Regenerated.
13917 * tests/unictype/test-pr_numeric.c: Regenerated.
13918 * tests/unictype/test-pr_other_alphabetic.c: Regenerated.
13919 * tests/unictype/test-pr_other_default_ignorable_code_point.c:
13921 * tests/unictype/test-pr_other_grapheme_extend.c: Regenerated.
13922 * tests/unictype/test-pr_other_id_continue.c: Regenerated.
13923 * tests/unictype/test-pr_other_lowercase.c: Regenerated.
13924 * tests/unictype/test-pr_other_math.c: Regenerated.
13925 * tests/unictype/test-pr_punctuation.c: Regenerated.
13926 * tests/unictype/test-pr_sentence_terminal.c: Regenerated.
13927 * tests/unictype/test-pr_soft_dotted.c: Regenerated.
13928 * tests/unictype/test-pr_terminal_punctuation.c: Regenerated.
13929 * tests/unictype/test-pr_unassigned_code_value.c: Regenerated.
13930 * tests/unictype/test-pr_unified_ideograph.c: Regenerated.
13931 * tests/unictype/test-pr_uppercase.c: Regenerated.
13932 * tests/unictype/test-pr_xid_continue.c: Regenerated.
13933 * tests/unictype/test-pr_xid_start.c: Regenerated.
13934 * tests/unictype/test-pr_zero_width.c: Regenerated.
13936 Update to Unicode 5.1.0.
13937 * lib/uniwidth/width.c (nonspacing_table_data): Add U+0487,
13938 U+0616..U+061A, U+0A51, U+0A75, U+0B44, U+0B62..U+0B63, U+0C62..U+0C63,
13939 U+0D44, U+0D62..U+0D63, U+1033..U+1035, U+103A, U+103D..U+103E,
13940 U+105E..U+1060, U+1071..U+1074, U+1082, U+1085..U+1086, U+108D,
13941 U+1B80..U+1B81, U+1BA2..U+1BA5, U+1BA8..U+1BA9, U+1C2C..U+1C33,
13942 U+1C36..U+1C37, U+1DCB..U+1DE6, U+2064, U+20F0, U+2DE0..U+2DFF,
13943 U+A66F..U+A672, U+A67C..U+A67D, U+A8C4, U+A926..U+A92D, U+A947..U+A951,
13944 U+AA29..U+AA2E, U+AA31..U+AA32, U+AA35..U+AA36, U+AA43, U+AA4C,
13945 U+FE24..U+FE26, U+101FD. Remove U+1929..U+192B.
13946 (nonspacing_table_ind): Update.
13947 * tests/uniwidth/test-uc_width2.sh: Update expected result.
13949 Update to Unicode 5.1.0.
13950 * lib/uniname/gen-uninames.lisp (main): Add the range 0x1Fxxx to the
13952 * lib/uniname/uniname.c (unicode_character_name,
13953 unicode_name_character): Add the range 0x1Fxxx to the code transform.
13954 * lib/uniname/uninames.h: Regenerated.
13955 * tests/uniname/UnicodeDataNames.txt: Update to Unicode 5.1.0.
13957 2009-02-07 Bruno Haible <bruno@clisp.org>
13959 Merge gen-ctype and gen-lbrk into a single program.
13960 * lib/gen-uni-tables.c: New file, incorporating
13961 lib/unictype/gen-ctype.c and lib/unilbrk/gen-lbrk.c.
13962 Add directory prefixes to the names of the generated files.
13963 * lib/unictype/gen-ctype.c: Remove file.
13964 * lib/unilbrk/gen-lbrk.c: Remove file.
13965 * modules/gen-uni-tables: New file.
13966 * modules/unictype/gen-ctype: Remove file.
13967 * modules/unilbrk/gen-lbrk: Remove file.
13969 2009-02-07 Bruno Haible <bruno@clisp.org>
13971 * lib/unistr.h (u8_strcoll, u16_strcoll, u32_strcoll): New declations.
13973 New module 'unistr/u32-strcoll'.
13974 * modules/unistr/u32-strcoll: New file.
13975 * lib/unistr/u32-strcoll.c: New file.
13977 New module 'unistr/u16-strcoll'.
13978 * modules/unistr/u16-strcoll: New file.
13979 * lib/unistr/u16-strcoll.c: New file.
13981 New module 'unistr/u8-strcoll'.
13982 * modules/unistr/u8-strcoll: New file.
13983 * lib/unistr/u8-strcoll.c: New file.
13984 * lib/unistr/u-strcoll.h: New file.
13986 2009-02-07 Bruno Haible <bruno@clisp.org>
13988 * test-mbrtowc4.sh (LOCALE_ZH_CN): Fix default value.
13989 * test-mbsnrtowcs4.sh (LOCALE_ZH_CN): Likewise.
13990 * test-mbsrtowcs4.sh (LOCALE_ZH_CN): Likewise.
13991 * test-wcrtomb.sh (LOCALE_ZH_CN): Likewise.
13992 * test-wcsnrtombs4.sh (LOCALE_ZH_CN): Likewise.
13993 * test-wcsrtombs4.sh (LOCALE_ZH_CN): Likewise.
13995 2009-02-07 Bruno Haible <bruno@clisp.org>
13998 * lib/unictype/gen-ctype.c (output_predicate, output_category,
13999 output_combclass, output_bidi_category, output_decimal_digit,
14000 output_digit, output_numeric, output_mirror, output_scripts,
14001 output_ident_category): Use proper width specifier in format strings.
14003 2009-02-07 Bruno Haible <bruno@clisp.org>
14005 * doc/posix-functions/dirfd.texi: Clarify situation on mingw. Document
14008 2009-02-07 Jim Meyering <meyering@redhat.com>
14010 regex: avoid compilation failure with upcoming gcc-4.4
14011 * lib/regex_internal.h: Revert e48d8b47fb3eee81d341b71c3e006efe9e3433a7
14012 [workaround for PGC prior to 6.1-2]. Otherwise, we'd get this:
14013 "... error: integer overflow in preprocessor expression".
14015 2009-02-05 Ben Pfaff <blp@gnu.org>
14017 Fix link errors on Windows when close module is used.
14018 * modules/close: Add $(LIB_CLOSE) to Link section.
14019 * m4/close.m4 (gl_REPLACE_CLOSE): Substitute -lws2_32 into
14020 $(LIB_CLOSE) on Windows.
14022 2009-02-05 Jim Meyering <meyering@redhat.com>
14024 still avoid unused-parameter warnings, but do it cleanly
14025 * lib/fsusage.c (UNUSED_PARAM): Remove definition.
14026 (get_fs_usage): Cast to void instead.
14027 * lib/mountlist.c (UNUSED_PARAM): Remove definition.
14028 (dev_from_mount_options, read_file_system_list): Cast to void.
14029 Prompted by Bruno Haible.
14031 2009-02-04 Jim Meyering <meyering@redhat.com>
14033 fsusage.c: correct copyright year
14034 * lib/fsusage.c: Reflect year in which the change is pushed into
14036 avoid misc. warnings
14037 * lib/fsusage.c (UNUSED_PARAM): Define.
14038 (get_fs_usage): Mark parameter "disk" as unused.
14039 * lib/getugroups.c (getgrent): Use "void" in prototype.
14040 * lib/mountlist.c: Mark unused parameters.
14041 (read_file_system_list): Declare a local with "const".
14042 * lib/nanosleep.c (getnow): Declare static.
14043 * lib/strftime.c: Include strftime.h, for declaration of nstrftime.
14045 dirfd: set errno upon failure
14046 * lib/dirfd.c: Include <errno.h>.
14047 Set errno to ENOTSUP when returning -1.
14048 * modules/dirfd (Depends-on): Add errno.
14049 Suggested by John Kodis <kodis@comcast.net>.
14051 2009-02-01 Bruno Haible <bruno@clisp.org>
14053 Don't assume sizeof (long) >= sizeof (void *).
14054 * lib/memcmp.c: Include stdint.h.
14055 (memcmp_bytes): Change argument types to op_t. Change type of srcp1,
14056 srcp2 to 'const byte *'.
14057 (memcmp_common_alignment, memcmp_not_common_alignment): Change argument
14058 types to uintptr_t.
14059 (rpl_memcmp): Change type of srcp1, srcp2 to 'uintptr_t'.
14060 * modules/memcmp (Depends-on): Add stdint.
14061 Reported by Ozkan Sezer <sezeroz@gmail.com>.
14063 2009-01-30 Eric Blake <ebb9@byu.net>
14065 fix more require-before-expand issues
14066 * m4/pmccabe2html.m4 (gl_PMCCABE2HTML): Require, rather than
14067 expand, AC_PROG_AWK.
14068 * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): Use AC_DEFUN_ONCE.
14070 2009-01-28 Eric Blake <ebb9@byu.net>
14072 version-etc: use consistent URL formatting
14073 * lib/version-etc.c (emit_bug_reporting_address, version_etc_va):
14074 Improve formatting. Use fputs for string without %.
14076 2009-01-28 Jim Meyering <meyering@redhat.com>
14078 00gnulib.m4: add m4 quotes in shell comment to avoid autoconf warning
14079 * m4/00gnulib.m4 (AC_DEFUN_ONCE): Add quotes to avoid an
14080 "underquoted definition of NAME" from autoconf-2.59.
14082 2009-01-28 Bruno Haible <bruno@clisp.org>
14084 * doc/gnulib.texi: Add "Obsolete modules" to index.
14086 2009-01-28 Jim Meyering <meyering@redhat.com>
14088 useless-if-before-free: recognize more variants
14089 * build-aux/useless-if-before-free: Also recognize e.g.,
14090 if (NULL != p) free (p);
14092 2009-01-27 Mark McLoughlin <markmc@redhat.com>
14094 test-getaddrinfo: skip (don't fail) this test when there's no network
14095 * tests/test-getaddrinfo.c: Skip test upon failure with EAI_AGAIN,
14096 on the presumption that it means you lack network access.
14098 2009-01-26 Jim Meyering <meyering@redhat.com>
14100 fflush: avoid warnings on modern systems
14101 * lib/fflush.c (rpl_fflush): Move declarations of locals,
14102 pos and result, into scopes where they're used.
14104 2009-01-26 Eric Blake <ebb9@byu.net>
14106 Silence warning reintroduced by recent extensions patch.
14107 * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS)
14108 (gl_USE_SYSTEM_EXTENSIONS): Use AC_DEFUN_ONCE to silence newer
14111 Backport improved autoconf semantics of AC_DEFUN_ONCE.
14112 * m4/00gnulib.m4: New file.
14113 * gnulib-tool (func_get_filelist): Always use it.
14114 * m4/gnulib-common.m4 (gl_COMMON): Force the file to be used.
14115 Reported by Bruno Haible, with suggestions from Paolo Bonzini.
14117 2009-01-25 Bruno Haible <bruno@clisp.org>
14119 Make test-quotearg work on MacOS X and AIX.
14120 * tests/test-quotearg.sh: New file.
14121 * tests/locale/fr/LC_MESSAGES/test-quotearg.po: New file.
14122 * tests/locale/fr/LC_MESSAGES/test-quotearg.mo: New file.
14123 * tests/test-quotearg.c: Include <locale.h> and gettext.h. Don't
14124 include <libintl.h>.
14125 (fake_locale): Remove variable.
14126 (gettext, dgettext, dcgettext): Remove functions.
14127 (main): Instead of setting a fake locale, set a real locale. Call
14128 textdomain and bindtextdomain.
14129 * modules/quotearg-tests (Files): Add the new files.
14130 (Depends-on): Add gettext, setenv, unsetenv.
14131 (configure.ac): Invoke gt_LOCALE_FR and gt_LOCALE_FR_UTF8.
14132 (Makefile.am): Add test-quotearg.sh to TESTS, remove test-quotearg.
14133 Augment TESTS_ENVIRONMENT.
14135 2009-01-25 Bruno Haible <bruno@clisp.org>
14137 * m4/locale-fr.m4 (gt_LOCALE_FR): Remove special code that hid the
14138 fr_FR.ISO8859-1 locale on MacOS X.
14139 * m4/locale-ja.m4 (gt_LOCALE_JA): Remove special code that hid the
14140 ja_JP.eucJP locale on MacOS X.
14141 * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Remove special code that hid the
14142 zh_CN.GB18030 locale on MacOS X.
14144 2009-01-25 Bruno Haible <bruno@clisp.org>
14146 Avoid link errors on MacOS X 10.3.
14147 * lib/mbsrtowcs-state.c (_gl_mbsrtowcs_state): Add initializer.
14148 * lib/wcsrtombs-state.c (_gl_wcsrtombs_state): Likewise.
14150 2009-01-25 Bruno Haible <bruno@clisp.org>
14152 * lib/pipe.c: On Unix, assume HAVE_POSIX_SPAWN and use posix_spawnp.
14153 * m4/pipe.m4 (gl_PIPE): Remove tests for vfork() based code.
14154 * modules/pipe (Files): Remove m4/posix_spawn.m4.
14155 (Depends-on): Add spawn, posix_spawnp, posix_spawn_file_actions_init,
14156 posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2,
14157 posix_spawn_file_actions_addopen, posix_spawn_file_actions_destroy,
14158 posix_spawnattr_init, posix_spawnattr_setsigmask,
14159 posix_spawnattr_setflags, posix_spawnattr_destroy.
14161 * lib/execute.c: On Unix, assume HAVE_POSIX_SPAWN and use posix_spawnp.
14162 * m4/execute.m4 (gl_EXECUTE): Remove tests for vfork() based code.
14163 * modules/execute (Files): Remove m4/posix_spawn.m4.
14164 (Depends-on): Add spawn, posix_spawnp, posix_spawn_file_actions_init,
14165 posix_spawn_file_actions_addopen, posix_spawn_file_actions_destroy,
14166 posix_spawnattr_init, posix_spawnattr_setsigmask,
14167 posix_spawnattr_setflags, posix_spawnattr_destroy.
14169 2009-01-25 Bruno Haible <bruno@clisp.org>
14171 * lib/glthread/threadlib.c: Include <stdlib.h>.
14173 2009-01-25 Bruno Haible <bruno@clisp.org>
14175 * lib/glthread/threadlib.c (dummy): New declaration.
14177 2009-01-25 Bruno Haible <bruno@clisp.org>
14179 * lib/mbrtowc.c (mbrtowc): Distinguish invalid and incomplete
14180 multibyte characters also for the GB18030 encoding. Don't crash when
14181 the encoding is unknown and nstate = 0. Needed on OSF/1 5.1.
14183 2009-01-25 Bruno Haible <bruno@clisp.org>
14185 Avoid redefining 'struct random_data' on OSF/1 5.1.
14186 * lib/stdlib.in.h: Include <random.h> if it exists.
14187 * m4/stdlib_h.m4 (gl_STDLIB_H): Test whether <random.h> exists. Set
14188 HAVE_RANDOM_H. Include <random.h> when testing whether
14189 'struct random_data' exists.
14190 * modules/stdlib (Makefile.am): Substitute HAVE_RANDOM_H.
14192 2009-01-25 Bruno Haible <bruno@clisp.org>
14194 Don't install charset.alias on MacOS X >= 10.3.
14195 * lib/localcharset.c (DARWIN7): New macro.
14196 (get_charset_aliases): Hardcode the result for Darwin7.
14197 * modules/localcharset (install-exec-local): Don't install
14198 charset.alias on MacOS X >= 10.3, if the file does not yet exist.
14200 2009-01-25 Bruno Haible <bruno@clisp.org>
14202 Don't install charset.alias on mingw and Cygwin.
14203 * modules/localcharset (install-exec-local): Don't install
14204 charset.alias on mingw and Cygwin, if the file does not yet exist.
14205 The result for these platforms is hardcoded in localcharset.c.
14207 2009-01-25 Bruno Haible <bruno@clisp.org>
14209 Make it possible again to use AC_GNU_SOURCE together with gnulib.
14210 * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Require AC_GNU_SOURCE
14211 before requiring AC_USE_SYSTEM_EXTENSIONS.
14213 2009-01-25 Jim Meyering <meyering@redhat.com>
14215 c-strtod: avoid warnings
14216 * lib/c-strtod.c (C_STRTOD): Cast nptr to (char *) to avoid
14217 "assignment discards qualifiers from pointer target type" warnings.
14219 2009-01-24 Bruno Haible <bruno@clisp.org>
14221 Add support for non-UTF-8 locales on MacOS X.
14222 * lib/config.charset: Add CP1131, ARMSCII-8, PT154 to the list of
14223 canonical encodings. For Darwin 7 and newer, don't map traditional
14224 encodings to UTF-8.
14225 Reported by Vincent Lefevre <vincent@vinc17.org>
14226 at <http://savannah.gnu.org/bugs/?25235>.
14228 2009-01-24 Bruno Haible <bruno@clisp.org>
14230 * doc/gnulib.texi (Obsolete modules): New section.
14231 Reported by Mike Frysinger <vapier@gentoo.org>.
14233 2009-01-24 Bruno Haible <bruno@clisp.org>
14235 * doc/Makefile (%.pdf): Clarify where to find texmf.cnf.
14238 2009-01-24 Bruno Haible <bruno@clisp.org>
14240 * lib/c-strtod.h (c_strtod, c_strtold): Adjust specification.
14241 Reported by Eric Blake.
14243 2009-01-24 Bruno Haible <bruno@clisp.org>
14245 * lib/c-stack.c (segv_handler): If !HAVE_XSI_STACK_OVERFLOW_HEURISTIC,
14246 set signo = 0 also if info->si_code <= 0. Needed on HP-UX 11.11.
14247 Reported by Gary V. Vaughan <gary@gnu.org>.
14249 2009-01-24 Bruno Haible <bruno@clisp.org>
14251 * lib/c-strtod.h (c_strtod, c_strtold): Add specification.
14253 2009-01-23 Bruno Haible <bruno@clisp.org>
14255 Make c-strtod, c-strtold usable in libraries.
14256 * lib/c-strtod.c: Include string.h instead of xalloc.h.
14257 (C_STRTOD): Call strdup instead of xstrdup.
14258 * modules/c-strtod (Depends-on): Add strdup-posix, remove xalloc.
14259 * modules/c-strtold (Depends-on): Likewise.
14260 * doc/c-strtod.texi: Remove the sentence mentioning xalloc_die.
14261 * NEWS: Mention the change.
14262 Reported by Michael Gold <mgold@ncf.ca>.
14264 2009-01-23 Jim Meyering <meyering@redhat.com>
14266 c-strtod: when ENDPTR is non-NULL, set *ENDPTR in new failure path
14267 * lib/c-strtod.c (C_STRTOD) [LC_ALL_MASKC]: Ensure that when
14268 ENDPTR is non-NULL, *ENDPTR is set to NPTR upon failure.
14270 2009-01-23 Simon Josefsson <simon@josefsson.org>
14272 * lib/version-etc.c: Add emit_bug_reporting_address, inspired by
14274 * lib/version-etc.h: Add prototype for emit_bug_reporting_address.
14275 * modules/version-etc (Description): Update.
14277 2009-01-22 Bruno Haible <bruno@clisp.org>
14279 Cache the C locale object.
14280 * lib/c-strtod.c (c_locale_cache): New variable.
14281 (c_locale): New function.
14282 (C_STRTOD): Use it, and don't call freelocale.
14283 * m4/c-strtod.m4 (gl_C_STRTOD, gl_C_STRTOLD): Require AC_C_INLINE.
14284 Suggested by Paolo Bonzini.
14286 2009-01-21 Bruno Haible <bruno@clisp.org>
14288 * lib/getloadavg.c (getloadavg): Check c_strtod result against error
14289 conditions other than overflow.
14291 2009-01-21 Bruno Haible <bruno@clisp.org>
14293 * lib/c-strtod.c: Include errno.h.
14294 (C_STRTOD): Check against NULL return from newlocale. Preserve errno
14295 value from STRTOD_L and STRTOD.
14297 2009-01-21 Bruno Haible <bruno@clisp.org>
14298 and Jim Meyering <meyering@redhat.com>
14300 nanosleep: skip configure test (fail it) for apple universal builds
14301 * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Require gl_MULTIARCH. In Apple
14302 universal builds, assume that nanosleep does not work.
14303 * modules/nanosleep (Depends-on): Add multiarch.
14305 mktime: skip configure test (fail it) for apple universal builds
14306 * m4/mktime.m4 (AC_FUNC_MKTIME): Require gl_MULTIARCH. In Apple
14307 universal builds, assume that mktime does not work.
14308 * modules/mktime (Depends-on): Add multiarch.
14310 2009-01-21 Eric Blake <ebb9@byu.net>
14312 multiarch: avoid expand-before-require warning
14313 * modules/multiarch (configure.ac): Require, rather than expand,
14315 * m4/multiarch.m4 (gl_MULTIARCH_BODY): Merge...
14316 (gl_MULTIARCH): ...into this macro, and use AC_DEFUN_ONCE to
14317 enforce that all clients require it. Partial reversion of
14320 error: avoid expand-before-require warning
14321 * modules/errno (configure.ac): Require, rather than expand,
14323 * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Merge...
14324 (gl_HEADER_ERRNO_H): ...into this macro, and use AC_DEFUN_ONCE to
14325 enforce that all clients require it.
14327 gnulib-tool: avoid warnings from using obsolete AC_GNU_SOURCE
14328 * gnulib-tool (func_dest_tmpfilename, func_create_testdir): Using
14329 obsolete AC_GNU_SOURCE causes out-of-order expansion; avoid it,
14330 and rely solely on gl_USE_SYSTEM_EXTENSIONS.
14332 2009-01-21 Paolo Bonzini <bonzini@gnu.org>
14335 2009-01-20 Paolo Bonzini <bonzini@gnu.org>
14337 regex: do not depend on obsolete modules.
14338 * modules/regex: Remove memcmp and memmove.
14340 2009-01-20 Bruno Haible <bruno@clisp.org>
14342 Make the 'link' module link on Windows NT 4.
14343 * lib/link.c (_WIN32_WINNT): Don't define.
14344 (CreateHardLinkFuncType): New type.
14345 (CreateHardLinkFunc, initialized): New variables.
14346 (initialize): New function.
14347 (link): Invoke CreateHardLink indirectly through the function pointer.
14349 2009-01-20 Bruno Haible <bruno@clisp.org>
14351 Fix compilation failure on mingw.
14352 * tests/test-link.c (main): Don't assume that EOPNOTSUPP exists.
14354 2009-01-20 Michael Gold <mgold@ncf.ca> (tiny change)
14356 * doc/c-strtod.texi: Mention a couple of restrictions.
14358 2009-01-20 Jim Meyering <meyering@redhat.com>
14360 gettimeofday: move more declarations out of functions
14361 * lib/gettimeofday.c: Move extern declarations of tzset and
14362 gmtime out of containing functions. Prompted by Bruno Haible.
14364 2009-01-20 Paolo Bonzini <bonzini@gnu.org>
14366 regex: do not depend on obsolete modules.
14367 * modules/regex: Remove memcmp and memmove.
14369 2009-01-19 Bruno Haible <bruno@clisp.org>
14371 Don't use AC_REQUIRE([AC_C_BIGENDIAN]).
14372 * modules/uniconv/u16-conv-from-enc (configure.ac): Require
14373 gl_BIGENDIAN, not AC_C_BIGENDIAN.
14374 * modules/uniconv/u16-conv-to-enc (configure.ac): Likewise.
14375 * modules/uniconv/u16-strconv-to-enc (configure.ac): Likewise.
14377 2009-01-19 Bruno Haible <bruno@clisp.org>
14379 * tests/test-link.c: Include <errno.h>.
14380 (main): Exit with code 77 when a hard link cannot be created due to
14382 * tests/test-link.sh: Skip test when a hard link cannot be created due
14383 to the file system.
14384 Suggested by Eric Blake.
14386 2009-01-19 Martin Lambers <marlam@marlam.de>
14388 * modules/link-tests: New file.
14389 * tests/test-link.sh: New file.
14390 * tests/test-link.c: New file.
14392 2009-01-19 Eric Blake <ebb9@byu.net>
14394 doc: mention another function added in cygwin 1.7.0
14395 * doc/glibc-functions/glob_pattern_p.texi (glob_pattern_p):
14396 Another new function in cygwin 1.7.
14398 2009-01-19 Bruno Haible <bruno@clisp.org>
14400 Don't use AC_REQUIRE([AC_C_BIGENDIAN]).
14401 * m4/gnulib-common.m4 (gl_BIGENDIAN): New macro.
14402 * m4/exponentl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Require
14403 gl_BIGENDIAN, not AC_C_BIGENDIAN.
14404 * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
14405 * m4/isinf.m4 (gl_ISINFL_WORKS): Likewise.
14406 * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
14407 * m4/md4.m4 (gl_MD4): Likewise.
14408 * m4/md5.m4 (gl_MD5): Likewise.
14409 * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Likewise.
14410 * m4/sha1.m4 (gl_SHA1): Likewise.
14411 * m4/sha256.m4 (gl_SHA256): Likewise.
14412 * m4/sha512.m4 (gl_SHA512): Likewise.
14414 2009-01-19 Bruno Haible <bruno@clisp.org>
14416 * modules/uniname/uniname-tests (Depends-on): Add progname.
14417 * tests/uniname/test-uninames.c: Include progname.h.
14418 (main): Call set_program_name.
14420 * modules/unistdio/u8-vsprintf-tests (Depends-on): Add progname.
14421 * tests/unistdio/test-u8-vsprintf1.c: Include progname.h.
14422 (main): Call set_program_name.
14424 * modules/unistdio/u8-vsnprintf-tests (Depends-on): Add progname.
14425 * tests/unistdio/test-u8-vsnprintf1.c: Include progname.h.
14426 (main): Call set_program_name.
14428 * modules/unistdio/u16-vsprintf-tests (Depends-on): Add progname.
14429 * tests/unistdio/test-u16-vsprintf1.c: Include progname.h.
14430 (main): Call set_program_name.
14432 * modules/unistdio/u16-vsnprintf-tests (Depends-on): Add progname.
14433 * tests/unistdio/test-u16-vsnprintf1.c: Include progname.h.
14434 (main): Call set_program_name.
14436 * modules/unistdio/u32-vsprintf-tests (Depends-on): Add progname.
14437 * tests/unistdio/test-u32-vsprintf1.c: Include progname.h.
14438 (main): Call set_program_name.
14440 * modules/unistdio/u32-vsnprintf-tests (Depends-on): Add progname.
14441 * tests/unistdio/test-u32-vsnprintf1.c: Include progname.h.
14442 (main): Call set_program_name.
14444 * modules/unistdio/ulc-vsprintf-tests (Depends-on): Add progname.
14445 * tests/unistdio/test-ulc-vsprintf1.c: Include progname.h.
14446 (main): Call set_program_name.
14448 * modules/unistdio/ulc-vsnprintf-tests (Depends-on): Add progname.
14449 * tests/unistdio/test-ulc-vsnprintf1.c: Include progname.h.
14450 (main): Call set_program_name.
14452 2009-01-19 Eric Blake <ebb9@byu.net>
14454 test-unistd: test previous patch
14455 * tests/test-unistd.c: Test *_FILENO macros.
14457 unistd: guarantee STDIN_FILENO here, for OS/2 EMX
14458 * lib/unistd.in.h (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
14459 Guarantee a definition.
14460 * doc/posix-headers/unistd.texi (unistd.h): Document the bug.
14461 * modules/unistd-safer (Depends-on): Add dependency on unistd.
14462 * lib/c-stack.c (STDERR_FILENO): Rely on <unistd.h>.
14463 * lib/dup-safer.c (STDERR_FILENO): Likewise.
14464 * lib/execute.c (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
14466 * lib/fd-safer.c (STDIN_FILENO, STDERR_FILENO): Likewise.
14467 * lib/fopen-safer.c (STDERR_FILENO): Likewise.
14468 * lib/pipe.c (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
14470 * lib/tmpfile-safer.c (STDERR_FILENO): Likewise.
14471 * tests/test-posix_spawn1.c (STDIN_FILENO, STDOUT_FILENO)
14472 (STDERR_FILENO): Likewise.
14473 * tests/test-posix_spawn2.c (STDIN_FILENO, STDOUT_FILENO)
14474 (STDERR_FILENO): Likewise.
14475 * tests/test-posix_spawn3.c (STDIN_FILENO, STDOUT_FILENO)
14476 (STDERR_FILENO): Likewise.
14477 Reported by Elbert Pol.
14479 2009-01-19 Eric Blake <ebb9@byu.net>
14481 doc: mention more functions added in cygwin 1.7.0
14482 * doc/posix-functions/abort.texi (abort): Update wording related
14484 * doc/posix-functions/daylight.texi (daylight): Likewise.
14485 * doc/posix-functions/optarg.texi (optarg): Likewise.
14486 * doc/posix-functions/optarg.texi (opterr): Likewise.
14487 * doc/posix-functions/optarg.texi (optind): Likewise.
14488 * doc/posix-functions/optarg.texi (optopt): Likewise.
14489 * doc/posix-functions/wprintf.texi (wprintf): Cygwin wprintf never
14490 worked in 1.5.x, and was withdrawn in 1.7.
14491 * doc/posix-functions/vwprintf.texi (vwprintf): Likewise.
14492 * doc/posix-functions/fprintf.texi (fprintf): Tighten mention of
14494 * doc/posix-functions/perror.texi (perror): Likewise.
14495 * doc/posix-functions/printf.texi (printf): Likewise.
14496 * doc/posix-functions/snprintf.texi (snprintf): Likewise.
14497 * doc/posix-functions/sprintf.texi (sprintf): Likewise.
14498 * doc/posix-functions/vfprintf.texi (vfprintf): Likewise.
14499 * doc/posix-functions/vprintf.texi (vprintf): Likewise.
14500 * doc/posix-functions/vsnprintf.texi (vsnprintf): Likewise.
14501 * doc/posix-functions/vsprintf.texi (vsprintf): Likewise.
14502 * doc/glibc-functions/obstack_printf.texi (obstack_printf):
14504 * doc/glibc-functions/obstack_vprintf.texi (obstack_vprintf):
14506 * doc/glibc-functions/cfmakeraw.texi (cfmakeraw): Cygwin 1.7 adds
14508 * doc/glibc-functions/in6addr_any.texi (in6addr_any): Likewise.
14509 * doc/glibc-functions/in6addr_loopback.texi (in6addr_loopback):
14511 * doc/glibc-functions/updwtmpx.texi (updwtmpx): Likewise.
14512 * doc/posix-functions/_Exit_C99.texi (_Exit): Likewise.
14513 * doc/posix-functions/confstr.texi (confstr): Likewise.
14514 * doc/posix-functions/dprintf.texi (dprintf): Likewise.
14515 * doc/posix-functions/fgetwc.texi (fgetwc): Likewise.
14516 * doc/posix-functions/fgetws.texi (fgetws): Likewise.
14517 * doc/posix-functions/fputwc.texi (fputwc): Likewise.
14518 * doc/posix-functions/fputws.texi (fputws): Likewise.
14519 * doc/posix-functions/fwide.texi (fwide): Likewise.
14520 * doc/posix-functions/getwc.texi (getwc): Likewise.
14521 * doc/posix-functions/getwchar.texi (getwchar): Likewise.
14522 * doc/posix-functions/putwc.texi (putwc): Likewise.
14523 * doc/posix-functions/putwchar.texi (putwchar): Likewise.
14524 * doc/posix-functions/sigignore.texi (sigignore): Likewise.
14525 * doc/posix-functions/ungetwc.texi (ungetwc): Likewise.
14526 * doc/posix-functions/vdprintf.texi (vdprintf): Likewise.
14527 * doc/posix-functions/wcpcpy.texi (wcpcpy): Likewise.
14528 * doc/posix-functions/wcpncpy.texi (wcpncpy): Likewise.
14529 * doc/posix-functions/wcstol.texi (wcstol): Likewise.
14530 * doc/posix-functions/wcstoll.texi (wcstoll): Likewise.
14531 * doc/posix-functions/wcstoul.texi (wcstoul): Likewise.
14532 * doc/posix-functions/wcstoull.texi (wcstoull): Likewise.
14533 * doc/posix-functions/wcsxfrm.texi (wcsxfrm): Likewise.
14535 2009-01-19 Daniel P. Berrange <berrange@redhat.com>
14537 ioctl: avoid warning: no previous prototype for 'rpl_ioctl'
14538 * lib/ioctl.c: Include <sys/ioctl.h>.
14540 2009-01-19 Simon Josefsson <simon@josefsson.org>
14542 * modules/getdate-tests (Depends-on): Add progname.
14543 * tests/test-getdate.c: Use progname module, to avoid link errors
14544 on non-glibc systems.
14546 2009-01-18 Simon Josefsson <simon@josefsson.org>
14548 * modules/filenamecat-tests (Depends-on): Add progname.
14549 * modules/fstrcmp-tests (Depends-on): Likewise.
14551 * tests/test-filenamecat.c: Use progname module, to avoid link
14552 errors on non-glibc systems.
14553 * tests/test-fstrcmp.c: Likewise.
14555 2009-01-19 Daniel P. Berrange <berrange@redhat.com>
14557 gettimeofday: avoid warning: nested extern declaration of 'localtime'
14558 * lib/gettimeofday.c: Move extern declaration out of function.
14560 2009-01-18 Bruno Haible <bruno@clisp.org>
14562 * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't test for mblen and mbrlen.
14563 * lib/strftime.c (HAVE_MBLEN, HAVE_MBRLEN): Remove macros.
14564 (MULTIBYTE_IS_FORMAT_SAFE): Define to 1 on all platforms except OSF/1.
14566 2009-01-18 Bruno Haible <bruno@clisp.org>
14568 * lib/strftime.c (MEMPCPY): Remove unused macro.
14569 * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't test for mempcpy.
14571 2009-01-18 Martin Lambers <marlam@marlam.de>
14574 * lib/unistd.in.h (link): New declaration.
14575 * lib/link.c: New file.
14576 * m4/link.m4: New file.
14577 * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_LINK,
14579 * modules/unistd (Makefile.am): Substitute GNULIB_LINK, HAVE_LINK.
14580 * modules/link: New file.
14581 * doc/posix-functions/link.texi: Mention the new module.
14583 2009-01-18 Bruno Haible <bruno@clisp.org>
14585 * tests/test-avltree_list.c (main): Call set_program_name.
14586 * tests/test-avltree_oset.c (main): Likewise.
14587 * tests/test-obstack-printf.c: Include progname.h.
14588 (main): Call set_program_name.
14589 * tests/test-quotearg.c: Include progname.h.
14590 (main): Call set_program_name.
14591 * tests/test-xmemdup0.c: Include progname.h.
14592 (main): Call set_program_name.
14594 2009-01-18 Bruno Haible <bruno@clisp.org>
14596 New module 'alphasort'.
14597 * lib/dirent.in.h (alphasort): New declaration.
14598 * lib/alphasort.c: New file, from glibc with modifications.
14599 * m4/alphasort.m4: New file.
14600 * modules/alphasort: New file.
14601 * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_ALPHASORT,
14603 * modules/dirent (Makefile.am): Substitute GNULIB_ALPHASORT,
14605 * doc/posix-functions/alphasort.texi: Mention the new module and the
14606 portability problems.
14608 2009-01-18 Bruno Haible <bruno@clisp.org>
14610 New module 'scandir'.
14611 * lib/dirent.in.h (scandir): New declaration.
14612 * lib/scandir.c: New file, from glibc with modifications.
14613 * m4/scandir.m4: New file.
14614 * modules/scandir: New file.
14615 * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_SCANDIR,
14617 * modules/dirent (Makefile.am): Substitute GNULIB_SCANDIR,
14619 * doc/posix-functions/scandir.texi: Mention the new module and the
14620 portability problems.
14622 2009-01-17 Bruno Haible <bruno@clisp.org>
14624 * gnulib-tool (func_remove_prefix): Escape all dots in the prefix.
14625 Update documentation.
14626 (func_remove_suffix): Escape all dots in the suffix. Update
14628 (func_filter_filelist): Update documentation.
14629 Reported by Ralf Wildenhues.
14631 2009-01-17 Bruno Haible <bruno@clisp.org>
14633 * modules/dprintf-posix-tests: New file.
14634 * tests/test-dprintf-posix.sh: New file.
14635 * tests/test-dprintf-posix.c: New file.
14637 New modules 'dprintf', 'dprintf-posix'.
14638 * lib/stdio.in.h (dprintf): New declaration.
14639 * lib/dprintf.c: New file.
14640 * m4/dprintf.m4: New file.
14641 * m4/dprintf-posix.m4: New file.
14642 * modules/dprintf: New file.
14643 * modules/dprintf-posix: New file.
14644 * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_DPRINTF,
14645 HAVE_DPRINTF, REPLACE_DPRINTF.
14646 * modules/stdio (Makefile.am): Substitute also GNULIB_DPRINTF,
14647 HAVE_DPRINTF, REPLACE_DPRINTF.
14648 * doc/posix-functions/dprintf.texi: Mention the new modules.
14650 2009-01-17 Bruno Haible <bruno@clisp.org>
14652 * modules/vdprintf-posix-tests: New file.
14653 * tests/test-vdprintf-posix.sh: New file.
14654 * tests/test-vdprintf-posix.c: New file.
14656 New modules 'vdprintf', 'vdprintf-posix'.
14657 * lib/stdio.in.h (vdprintf): New declaration.
14658 * lib/vdprintf.c: New file.
14659 * m4/vdprintf.m4: New file.
14660 * m4/vdprintf-posix.m4: New file.
14661 * modules/vdprintf: New file.
14662 * modules/vdprintf-posix: New file.
14663 * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_VDPRINTF,
14664 HAVE_VDPRINTF, REPLACE_VDPRINTF.
14665 * modules/stdio (Makefile.am): Substitute also GNULIB_VDPRINTF,
14666 HAVE_VDPRINTF, REPLACE_VDPRINTF.
14667 * doc/posix-functions/vdprintf.texi: Mention the new modules.
14669 2009-01-17 Bruno Haible <bruno@clisp.org>
14671 Fix replacement of fopen on mingw.
14672 * m4/fopen.m4 (gl_FUNC_FOPEN): Define FOPEN_TRAILING_SLASH_BUG also on
14675 2009-01-17 Bruno Haible <bruno@clisp.org>
14677 Fix compilation error on HP-UX 11.00, present since 2008-09-24.
14678 * lib/fopen.c: Include <sys/types.h> and <sys/types.h>.
14680 2009-01-17 Bruno Haible <bruno@clisp.org>
14682 Avoid test-fflush2.sh failure on mingw.
14683 * tests/test-fflush2.c: Include binary-io.h.
14684 (main): Put standard input into binary mode.
14685 * modules/fflush-tests (Depends-on): Add binary-io.
14687 2009-01-17 Bruno Haible <bruno@clisp.org>
14689 * lib/wchar.in.h: In another particular situation, include only the
14690 system's <wchar.h> file.
14691 (_GL_ALREADY_INCLUDING_WCHAR_H): New macro.
14692 Reported by Albert Chin-A-Young <china@thewrittenword.com>
14693 and Thomas Guyot-Sionnest <dermoth@aei.ca>.
14695 2009-01-17 Bruno Haible <bruno@clisp.org>
14697 Support for stripping executables in --enable-relocatable.
14698 * build-aux/install-reloc: Expect one more argument, or an environment
14699 variable RELOC_STRIP_PROG. If set, strip the destination program and
14701 * m4/relocatable.m4 (gl_RELOCATABLE_BODY): In INSTALL_PROGRAM_ENV, set
14703 * doc/relocatable-maint.texi (Supporting Relocation): Mention the need
14704 to set RELOCATABLE_STRIP.
14705 * NEWS: Mention the new Makefile requirement.
14707 2009-01-17 Bruno Haible <bruno@clisp.org>
14709 * build-aux/install-reloc: Remove debugging information left over by
14710 C compiler on MacOS X.
14712 2009-01-17 Bruno Haible <bruno@clisp.org>
14714 Update use of _NSGetExecutablePath after API change in MacOS X 10.4.
14715 * lib/progreloc.c (find_executable): Fix type of pointer passed to
14716 _NSGetExecutablePath.
14718 2009-01-16 Jim Meyering <meyering@redhat.com>
14720 strerror: avoid warnings about discarding "const"
14721 * lib/strerror.c (rpl_strerror): Instead of returning a const
14722 string from each and every "case", use a variable, and add a single
14723 cast after the switch.
14725 2009-01-16 Albert Chin-A-Young <china@thewrittenword.com>
14727 * lib/arpa_inet.in.h: Add extern "C" block for C++.
14729 2009-01-16 Bruno Haible <bruno@clisp.org>
14731 * m4/printf.m4 (gl_SNPRINTF_SIZE1, gl_VSNPRINTF_ZEROSIZE_C99): Use an
14732 array initializer syntax that also works in C++ mode.
14733 Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
14735 2009-01-16 Jim Meyering <meyering@redhat.com>
14737 poll: suppress a warning
14738 * lib/poll.c: Use #pragma GCC diagnostic ignored "-Wtype-limits"
14739 to ignore "...unsigned expression < 0 is always false" warnings.
14741 2009-01-16 Daniel P. Berrange <berrange@redhat.com>
14743 poll: remove declarations of unused variables
14744 * lib/poll.c (poll) [WIN32_NATIVE]: Remove declarations of unused
14745 sockbuf and optlen.
14747 2009-01-15 Bruno Haible <bruno@clisp.org>
14749 Make fflush-after-ungetc POSIX compliant on BSD systems.
14750 * lib/fflush.c (clear_ungetc_buffer_preserving_position): New function.
14751 (clear_ungetc_buffer): Implement also for other systems.
14752 (rpl_fflush): On glibc systems, invoke
14753 clear_ungetc_buffer_preserving_position. Otherwise, invoke
14754 clear_ungetc_buffer after fetching the stream's position, not before.
14756 2009-01-15 Bruno Haible <bruno@clisp.org>
14758 Make fflush-after-ungetc POSIX compliant on glibc systems.
14759 * m4/fflush.m4 (gl_FUNC_FFLUSH): Test also the behaviour of fflush
14761 * lib/fflush.c (clear_ungetc_buffer): Implement for glibc systems.
14762 (rpl_fflush): On glibc systems, simply call the system's fflush
14763 function after clearing the ungetc buffer.
14764 * lib/fseeko.c (rpl_fseeko): Don't try to lseek past the end of file.
14765 Instead, lseek only to the end of file, then use the system's fseeko
14766 for the rest. On glibc systems, reset the EOF indicator bit.
14768 2009-01-15 Jim Meyering <meyering@redhat.com>
14770 openmp.m4: revert quote-adding change, for portability to older autoconf
14771 * m4/openmp.m4: Remove the quotes added on 2009-01-14.
14772 This reverts part of 42d1eda5dcce2d68deab7a642e7f29bcd7144a0d.
14773 Simon Josefsson noticed the problem when using autoconf-2.61.
14775 2009-01-15 Bruno Haible <bruno@clisp.org>
14777 * tests/test-fflush2.sh: Invoke test-fflush2 twice.
14778 * tests/test-fflush2.c (ASSERT): Always fail.
14779 (main): Add two tests for fflush() after ungetc(), taking into account
14780 the Austin Group's clarification.
14781 Suggested by Eric Blake.
14783 2009-01-15 Albert Chin-A-Young <china@thewrittenword.com>
14785 mktime.m4: remove K&R-style function prototypes
14786 * m4/mktime.m4 (AC_FUNC_MKTIME): Remove K&R-style function prototypes
14787 for the Sun C++ compiler.
14789 2009-01-14 Bruno Haible <bruno@clisp.org>
14791 * lib/stdint.in.h (_GL_JUST_INCLUDE_SYSTEM_WCHAR_H): New macro, defined
14792 while including <wchar.h>.
14793 * lib/wchar.in.h: In two particular situations on HP-UX, include only
14794 the system's <wchar.h> file.
14795 Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
14797 2009-01-14 Bruno Haible <bruno@clisp.org>
14799 * m4/csharp.m4: Don't mention gettext on the serial number line.
14800 * m4/csharpexec.m4: Likewise.
14801 * m4/eaccess.m4: Likewise.
14802 * m4/javaexec.m4: Likewise.
14803 * m4/sig_atomic_t.m4: Likewise.
14804 * m4/tmpdir.m4: Likewise.
14805 * m4/intldir.m4: Bump gettext version.
14806 * m4/lib-ld.m4: Likewise.
14808 2009-01-14 Bruno Haible <bruno@clisp.org>
14810 * lib/progname.c (set_program_name): Add more comments.
14811 Reported by Sergey Poznyakoff <gray@gnu.org.ua>.
14813 2009-01-14 Simon Josefsson <simon@josefsson.org>
14815 * lib/sys_stat.in.h: Include sys/types.h for nlink_t on systems
14816 were sys/stat.h does not define it.
14818 2009-01-14 Jim Meyering <meyering@redhat.com>
14820 many *.m4 files: improve m4 quoting
14821 99% of this change was performed by running the following commands:
14822 git ls-files | grep '\.m4$' | xargs perl -pi \
14823 -e 's/(AC_\w+\()([^[()]+?)([,)])/$1\[$2]$3/g;' \
14824 -e 's/(AC_\w+\((?:\[[^,]+?\], ){1})([^,[()]+?)([,)])/$1\[$2]$3/g;' \
14825 -e 's/(AC_\w+\((?:\[[^,]+?\], ){2})([^,[()]+?)([,)])/$1\[$2]$3/g;' \
14826 -e 's/(AC_\w+\((?:\[[^,]+?\], ){3})([^,[()]+?)([,)])/$1\[$2]$3/g'
14827 perl -pi -e 's/\[\.\.\.\]/.../' m4/onceonly.m4
14828 The remainder were to add Copyright dates, increment serial numbers,
14829 undo some changes in comments, exclude m4/intl.m4, and add quotes
14830 around the "1" in ",1" where the unusual spacing prohibited the
14831 above regexps from doing the job. For more details, see
14832 <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/16175>.
14833 * m4/acl.m4: Modified.
14834 * m4/afs.m4: Likewise.
14835 * m4/alloca.m4: Likewise.
14836 * m4/argp.m4: Likewise.
14837 * m4/argz.m4: Likewise.
14838 * m4/atexit.m4: Likewise.
14839 * m4/bison-i18n.m4: Likewise.
14840 * m4/bison.m4: Likewise.
14841 * m4/byteswap.m4: Likewise.
14842 * m4/c-stack.m4: Likewise.
14843 * m4/c-strtod.m4: Likewise.
14844 * m4/calloc.m4: Likewise.
14845 * m4/canonicalize-lgpl.m4: Likewise.
14846 * m4/chown.m4: Likewise.
14847 * m4/clock_time.m4: Likewise.
14848 * m4/codeset.m4: Likewise.
14849 * m4/copy-file.m4: Likewise.
14850 * m4/csharp.m4: Likewise.
14851 * m4/csharpcomp.m4: Likewise.
14852 * m4/csharpexec.m4: Likewise.
14853 * m4/d-ino.m4: Likewise.
14854 * m4/d-type.m4: Likewise.
14855 * m4/dirfd.m4: Likewise.
14856 * m4/double-slash-root.m4: Likewise.
14857 * m4/eaccess.m4: Likewise.
14858 * m4/eealloc.m4: Likewise.
14859 * m4/environ.m4: Likewise.
14860 * m4/errno_h.m4: Likewise.
14861 * m4/euidaccess.m4: Likewise.
14862 * m4/execute.m4: Likewise.
14863 * m4/fatal-signal.m4: Likewise.
14864 * m4/fchdir.m4: Likewise.
14865 * m4/fcntl_h.m4: Likewise.
14866 * m4/fileblocks.m4: Likewise.
14867 * m4/filenamecat.m4: Likewise.
14868 * m4/findprog.m4: Likewise.
14869 * m4/flexmember.m4: Likewise.
14870 * m4/fnmatch.m4: Likewise.
14871 * m4/fopen.m4: Likewise.
14872 * m4/fpending.m4: Likewise.
14873 * m4/fprintf-posix.m4: Likewise.
14874 * m4/free.m4: Likewise.
14875 * m4/frexp.m4: Likewise.
14876 * m4/frexpl.m4: Likewise.
14877 * m4/fsusage.m4: Likewise.
14878 * m4/ftruncate.m4: Likewise.
14879 * m4/gc-camellia.m4: Likewise.
14880 * m4/gc-random.m4: Likewise.
14881 * m4/gc.m4: Likewise.
14882 * m4/getaddrinfo.m4: Likewise.
14883 * m4/getcwd-abort-bug.m4: Likewise.
14884 * m4/getcwd-path-max.m4: Likewise.
14885 * m4/getdate.m4: Likewise.
14886 * m4/getdomainname.m4: Likewise.
14887 * m4/getgroups.m4: Likewise.
14888 * m4/gethostname.m4: Likewise.
14889 * m4/gethrxtime.m4: Likewise.
14890 * m4/getline.m4: Likewise.
14891 * m4/getloadavg.m4: Likewise.
14892 * m4/getndelim2.m4: Likewise.
14893 * m4/getpass.m4: Likewise.
14894 * m4/gettext.m4: Likewise.
14895 * m4/gettime.m4: Likewise.
14896 * m4/gettimeofday.m4: Likewise.
14897 * m4/gnulib-common.m4: Likewise.
14898 * m4/group-member.m4: Likewise.
14899 * m4/host-os.m4: Likewise.
14900 * m4/iconv.m4: Likewise.
14901 * m4/iconv_open.m4: Likewise.
14902 * m4/inet_ntop.m4: Likewise.
14903 * m4/inet_pton.m4: Likewise.
14904 * m4/inline.m4: Likewise.
14905 * m4/intldir.m4: Likewise.
14906 * m4/intlmacosx.m4: Likewise.
14907 * m4/intmax.m4: Likewise.
14908 * m4/intmax_t.m4: Likewise.
14909 * m4/inttypes.m4: Likewise.
14910 * m4/inttypes_h.m4: Likewise.
14911 * m4/inttypes-pri.m4: Likewise.
14912 * m4/isapipe.m4: Likewise.
14913 * m4/isnand.m4: Likewise.
14914 * m4/isnanf.m4: Likewise.
14915 * m4/isnanl.m4: Likewise.
14916 * m4/javacomp.m4: Likewise.
14917 * m4/javaexec.m4: Likewise.
14918 * m4/jm-winsz1.m4: Likewise.
14919 * m4/jm-winsz2.m4: Likewise.
14920 * m4/lchown.m4: Likewise.
14921 * m4/lcmessage.m4: Likewise.
14922 * m4/ldexpl.m4: Likewise.
14923 * m4/lib-ld.m4: Likewise.
14924 * m4/lib-link.m4: Likewise.
14925 * m4/libsigsegv.m4: Likewise.
14926 * m4/link-follow.m4: Likewise.
14927 * m4/localcharset.m4: Likewise.
14928 * m4/locale-fr.m4: Likewise.
14929 * m4/locale-ja.m4: Likewise.
14930 * m4/locale-tr.m4: Likewise.
14931 * m4/locale-zh.m4: Likewise.
14932 * m4/lock.m4: Likewise.
14933 * m4/longlong.m4: Likewise.
14934 * m4/ls-mntd-fs.m4: Likewise.
14935 * m4/lstat.m4: Likewise.
14936 * m4/malloc.m4: Likewise.
14937 * m4/mathl.m4: Likewise.
14938 * m4/mbrtowc.m4: Likewise.
14939 * m4/mbstate_t.m4: Likewise.
14940 * m4/mbswidth.m4: Likewise.
14941 * m4/memchr.m4: Likewise.
14942 * m4/memcmp.m4: Likewise.
14943 * m4/memcpy.m4: Likewise.
14944 * m4/memmem.m4: Likewise.
14945 * m4/memmove.m4: Likewise.
14946 * m4/mempcpy.m4: Likewise.
14947 * m4/memrchr.m4: Likewise.
14948 * m4/memset.m4: Likewise.
14949 * m4/minmax.m4: Likewise.
14950 * m4/mkdir-slash.m4: Likewise.
14951 * m4/mkdtemp.m4: Likewise.
14952 * m4/mktime.m4: Likewise.
14953 * m4/mmap-anon.m4: Likewise.
14954 * m4/mountlist.m4: Likewise.
14955 * m4/nanosleep.m4: Likewise.
14956 * m4/nls.m4: Likewise.
14957 * m4/nocrash.m4: Likewise.
14958 * m4/open.m4: Likewise.
14959 * m4/openat.m4: Likewise.
14960 * m4/openmp.m4: Likewise.
14961 * m4/pathmax.m4: Likewise.
14962 * m4/perl.m4: Likewise.
14963 * m4/physmem.m4: Likewise.
14964 * m4/pipe.m4: Likewise.
14965 * m4/po.m4: Likewise.
14966 * m4/poll.m4: Likewise.
14967 * m4/posixtm.m4: Likewise.
14968 * m4/posixver.m4: Likewise.
14969 * m4/printf-frexp.m4: Likewise.
14970 * m4/printf-frexpl.m4: Likewise.
14971 * m4/printf-posix.m4: Likewise.
14972 * m4/printf-posix-rpl.m4: Likewise.
14973 * m4/printf.m4: Likewise.
14974 * m4/progtest.m4: Likewise.
14975 * m4/putenv.m4: Likewise.
14976 * m4/readline.m4: Likewise.
14977 * m4/readlink.m4: Likewise.
14978 * m4/readutmp.m4: Likewise.
14979 * m4/realloc.m4: Likewise.
14980 * m4/regex.m4: Likewise.
14981 * m4/relocatable.m4: Likewise.
14982 * m4/relocatable-lib.m4: Likewise.
14983 * m4/rename-dest-slash.m4: Likewise.
14984 * m4/rename.m4: Likewise.
14985 * m4/rmdir-errno.m4: Likewise.
14986 * m4/rmdir.m4: Likewise.
14987 * m4/roundf.m4: Likewise.
14988 * m4/roundl.m4: Likewise.
14989 * m4/rpmatch.m4: Likewise.
14990 * m4/save-cwd.m4: Likewise.
14991 * m4/selinux-selinux-h.m4: Likewise.
14992 * m4/setenv.m4: Likewise.
14993 * m4/settime.m4: Likewise.
14994 * m4/sig2str.m4: Likewise.
14995 * m4/sig_atomic_t.m4: Likewise.
14996 * m4/signalblocking.m4: Likewise.
14997 * m4/signbit.m4: Likewise.
14998 * m4/sigpipe.m4: Likewise.
14999 * m4/sockets.m4: Likewise.
15000 * m4/sockpfaf.m4: Likewise.
15001 * m4/st_dm_mode.m4: Likewise.
15002 * m4/stat-time.m4: Likewise.
15003 * m4/stdbool.m4: Likewise.
15004 * m4/stdint.m4: Likewise.
15005 * m4/stdint_h.m4: Likewise.
15006 * m4/stpcpy.m4: Likewise.
15007 * m4/stpncpy.m4: Likewise.
15008 * m4/strcase.m4: Likewise.
15009 * m4/strchrnul.m4: Likewise.
15010 * m4/strcspn.m4: Likewise.
15011 * m4/strdup.m4: Likewise.
15012 * m4/strftime.m4: Likewise.
15013 * m4/strndup.m4: Likewise.
15014 * m4/strnlen.m4: Likewise.
15015 * m4/strpbrk.m4: Likewise.
15016 * m4/strptime.m4: Likewise.
15017 * m4/strsep.m4: Likewise.
15018 * m4/strtod.m4: Likewise.
15019 * m4/strtoimax.m4: Likewise.
15020 * m4/strtok_r.m4: Likewise.
15021 * m4/strtol.m4: Likewise.
15022 * m4/strtoll.m4: Likewise.
15023 * m4/strtoul.m4: Likewise.
15024 * m4/strtoull.m4: Likewise.
15025 * m4/strtoumax.m4: Likewise.
15026 * m4/strverscmp.m4: Likewise.
15027 * m4/threadlib.m4: Likewise.
15028 * m4/timegm.m4: Likewise.
15029 * m4/tm_gmtoff.m4: Likewise.
15030 * m4/tmpdir.m4: Likewise.
15031 * m4/tmpfile.m4: Likewise.
15032 * m4/tzset.m4: Likewise.
15033 * m4/uintmax_t.m4: Likewise.
15034 * m4/unlinkdir.m4: Likewise.
15035 * m4/unlocked-io.m4: Likewise.
15036 * m4/uptime.m4: Likewise.
15037 * m4/userspec.m4: Likewise.
15038 * m4/utimbuf.m4: Likewise.
15039 * m4/utime.m4: Likewise.
15040 * m4/utimes-null.m4: Likewise.
15041 * m4/utimes.m4: Likewise.
15042 * m4/vararrays.m4: Likewise.
15043 * m4/vasnprintf.m4: Likewise.
15044 * m4/vfprintf-posix.m4: Likewise.
15045 * m4/vprintf-posix.m4: Likewise.
15046 * m4/wait-process.m4: Likewise.
15047 * m4/wchar_t.m4: Likewise.
15048 * m4/wint_t.m4: Likewise.
15049 * m4/write-any-file.m4: Likewise.
15050 * m4/yield.m4: Likewise.
15052 2009-01-13 Bruno Haible <bruno@clisp.org>
15054 Avoid test-copy-file.sh failures when ACL support insufficient.
15055 * modules/copy-file-tests (Makefile.am): Pass USE_ACL in
15057 * tests/test-copy-file.sh: Skip the ACL comparisons if USE_ACL is 0.
15058 Reported by Jim Meyering.
15060 2009-01-13 Bruno Haible <bruno@clisp.org>
15062 * modules/unistdio/u-printf-args (Files): Add m4/stdint_h.m4 and
15063 m4/inttypes_h.m4, needed by m4/intmax_t.m4.
15064 * modules/unistdio/u8-printf-parse (Files): Likewise.
15065 * modules/unistdio/u32-printf-parse (Files): Likewise.
15066 * modules/unistdio/ulc-printf-parse (Files): Likewise.
15068 2009-01-13 Simon Josefsson <simon@josefsson.org>
15070 * modules/unistdio/u16-printf-parse (Files): Add m4/stdint_h.m4
15071 and m4/inttypes_h.m4 too.
15073 2009-01-12 Eric Blake <ebb9@byu.net>
15075 tests: IRIX 6.2 cc can't compile -0.0 into .data
15076 * tests/test-ceill.c (minus_zero): Compute -0.0L at runtime,
15077 rather than at compile-time.
15078 * tests/test-floorl.c (minus_zero): Likewise.
15079 * tests/test-frexpl.c (minus_zero): Likewise.
15080 * tests/test-isnan.c (minus_zerol): Likewise.
15081 * tests/test-isnanl.h (minus_zero): Likewise.
15082 * tests/test-ldexpl.c (minus_zero): Likewise.
15083 * tests/test-roundl.c (minus_zero): Likewise.
15084 * tests/test-signbit.c (minus_zerol): Likewise.
15085 * tests/test-snprintf-posix.h (minus_zerol): Likewise.
15086 * tests/test-sprintf-posix.h (minus_zerol): Likewise.
15087 * tests/test-truncl.c (minus_zero): Likewise.
15088 * tests/test-vasnprintf-posix.c (minus_zerol): Likewise.
15089 * tests/test-vasprintf-posix.c (minus_zerol): Likewise.
15090 Reported by Tom G. Christensen and Nelson H. F. Beebe.
15092 2009-01-09 Paolo Bonzini <bonzini@gnu.org>
15094 regex: fix glibc bug 9697
15095 * lib/regcomp.c (re_compile_fastmap_iter): Rewrite COMPLEX_BRACKET
15098 2009-01-09 Paolo Bonzini <bonzini@gnu.org>
15100 regex: fix glibc bug 697
15101 * lib/regexec.c (prune_impossible_nodes): Handle sifted_states[0]
15102 being NULL also if there are no backreferences.
15104 2009-01-09 Paolo Bonzini <bonzini@gnu.org>
15106 regex: merge glibc changes
15107 * lib/regcomp.c (re_compile_fastmap_iter): Use __mbrtowc.
15108 * lib/regex_internal.c (build_wcs_buffer, build_wcs_upper_buffer,
15109 re_string_skip_chars, re_string_reconstruct): Likewise.
15110 * lib/regex_internal.h [!_LIBC] (__mbrtowc): New #define.
15112 2009-01-07 Jim Meyering <meyering@redhat.com>
15114 poll: filter through cppi
15115 * lib/poll.c: Indent cpp directives to reflect nesting.
15117 2009-01-07 Daniel P. Berrange <berrange@redhat.com>
15119 poll: don't return uninitialized
15120 * lib/poll.c (poll) [WIN32_NATIVE]: Initialize "rc".
15122 2009-01-06 Jeremy Olexa <darkside@gentoo.org> (tiny change)
15124 avoid compile failure on AIX 6.1
15125 * lib/getloadavg.c [HAVE_LIBPERFSTAT]: Include <sys/protosw.h>.
15126 Details in http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/15465
15128 2009-01-04 Jim Meyering <meyering@redhat.com>
15130 remove duplicate inclusion of <stdio.h>
15131 * tests/test-fprintf-posix.c: Likewise.
15132 * tests/test-printf-posix.c: Likewise.
15133 * tests/test-snprintf-posix.c: Likewise.
15134 * tests/test-sprintf-posix.c: Likewise.
15135 * tests/test-vasprintf-posix.c: Likewise.
15136 * tests/test-vfprintf-posix.c: Likewise.
15137 * tests/test-vprintf-posix.c: Likewise.
15138 * tests/test-vsnprintf-posix.c: Likewise.
15139 * tests/test-vsprintf-posix.c: Likewise.
15141 2009-01-03 Jim Meyering <meyering@redhat.com>
15143 gnulib-tool: fix sed-based filtering
15144 * gnulib-tool (func_filter_filelist): Remove extra backslash
15145 in sed_fff_filter definition.
15147 2009-01-02 Jim Meyering <meyering@redhat.com>
15149 strftime: avoid compilation failure on Solaris 2.6
15150 * modules/strftime (Depends-on): Add mbrlen and mbsinit.
15151 * lib/strftime.c [DO_MULTIBYTE]: Include <wchar.h> unconditionally.
15152 Don't #define mbrlen or mbsinit, since now they're guaranteed to
15153 be available. Reported by Tom G. Christensen. Details in
15154 <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/16180>.
15156 2009-01-01 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
15157 Bruno Haible <bruno@clisp.org>
15159 Speed up gnulib-tool by doing more string processing through shell
15161 * gnulib-tool (fast_func_append): New variable.
15162 (func_remove_prefix, func_remove_suffix): New functions.
15163 (fast_func_remove_prefix, fast_func_remove_suffix): New variables.
15164 (func_filter_filelist): New function.
15165 (func_get_dependencies): Use func_remove_suffix instead of sed.
15166 (func_get_automake_snippet): Use func_filter_filelist instead of a
15167 subshell and sed invocation.
15169 2009-01-01 Bruno Haible <bruno@clisp.org>
15171 Fix a security bug.
15172 * gnulib-tool (func_import, import, update): Don't allow the characters
15173 '"', '$', '`', '\' in macro arguments that become part of commands that
15176 2009-01-01 Bruno Haible <bruno@clisp.org>
15178 * gnulib-tool (func_reset_sigpipe): Add more comments.
15180 2009-01-01 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
15182 * gnulib-tool (func_modules_add_dummy, func_emit_lib_Makefile_am,
15183 func_emit_tests_Makefile_am, func_import): Abort loops early if we
15184 already know the answer.
15186 2009-01-01 Jim Meyering <meyering@redhat.com>
15188 * lib/version-etc.c (version_etc_va): Update copyright year.
15190 2008-12-30 Bruno Haible <bruno@clisp.org>
15192 * m4/lib-prefix.m4 (AC_LIB_LINKFLAGS_BODY): Don't overwrite
15193 LIB${NAME}_PREFIX when considering the dependencies of lib${name}.
15194 Reported by Charles Wilson <cygwin@cwilson.fastmail.fm>.
15196 2008-12-29 Eric Blake <ebb9@byu.net>
15198 multiarch: avoid autoconf AC_REQUIRE bug
15199 * m4/multiarch.m4 (gl_MULTIARCH): Split body...
15200 (gl_MULTIARCH_BODY): ...into new macro, to work around bug in Autoconf
15202 Reported by Bruno Haible, and analyzed in
15203 http://lists.gnu.org/archive/html/bug-autoconf/2008-12/msg00039.html
15205 2008-12-29 Bruno Haible <bruno@clisp.org>
15207 * gnulib-tool (func_import): When generating sed-ignore-removed, handle
15208 files in subdirectories correctly.
15209 Reported by Ralf Wildenhues.
15211 2008-12-29 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
15213 * gnulib-tool (func_update_ignorelist): Use 'join - FILE'
15214 rather than 'join FILE -', for Solaris join.
15216 2008-12-29 Bruno Haible <bruno@clisp.org>
15218 * m4/codeset.m4 (AM_LANGINFO_CODESET): More systematic m4 argument
15220 * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
15221 * m4/glibc2.m4 (gt_GLIBC2): Likewise.
15222 * m4/glibc21.m4 (gl_GLIBC21): Likewise.
15223 * m4/iconv.m4 (AM_ICONV_LINK, AM_ICONV): Likewise.
15224 * m4/intdiv0.m4 (gt_INTDIV0): Likewise.
15225 * m4/intlmacosx.m4 (gt_INTL_MACOSX): Likewise.
15226 * m4/intmax.m4 (gt_TYPE_INTMAX_T): Likewise.
15227 * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Likewise.
15228 * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
15229 * m4/lcmessage.m4 (gt_LC_MESSAGES): Likewise.
15230 * m4/nls.m4 (AM_NLS): Likewise.
15231 * m4/po.m4 (AM_PO_SUBDIRS): Likewise.
15232 * m4/printf-posix.m4 (gt_PRINTF_POSIX): Likewise.
15233 * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
15234 * m4/size_max.m4 (gl_SIZE_MAX): Likewise.
15235 * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Likewise.
15236 * m4/threadlib.m4 (gl_THREADLIB_BODY): Likewise.
15237 * m4/uintmax_t.m4 (gl_AC_TYPE_UINTMAX_T): Likewise.
15238 * m4/visibility.m4 (gl_VISIBILITY): Likewise.
15239 * m4/wchar_t.m4 (gt_TYPE_WCHAR_T): Likewise.
15240 * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
15241 * m4/xsize.m4 (gl_XSIZE): Likewise.
15242 Suggested by Jim Meyering.
15244 2008-11-17 Bruce Korb <bkorb@gnu.org>
15246 * lib/parse-duration.h: non-iso form accepts years, months weeks, too
15247 * lib/parse-duration.c: use a switch instead of cascading if's.
15249 2008-12-29 Eric Blake <ebb9@byu.net>
15251 wchar.h: supply WEOF on Irix 5.3
15252 * lib/wchar.in.h (wint_t): Also supply WEOF.
15253 * lib/wctype.in.h (wint_t): Likewise.
15254 * doc/posix-headers/wchar.texi (wchar.h): Document the bug.
15255 * doc/posix-headers/wctype.texi (wctype.h): Likewise.
15256 Reported by Tom G. Christensen.
15258 2008-12-26 Bruno Haible <bruno@clisp.org>
15260 * m4/multiarch.m4 (gl_MULTIARCH): Recognize also the architecture names
15263 2008-12-26 Bruno Haible <bruno@clisp.org>
15265 * lib/stdlib.in.h (struct random_data): Fix indentation of comments.
15267 2008-12-26 Bruno Haible <bruno@clisp.org>
15269 * lib/stdint.in.h: Move the include of <wchar.h> down until after all
15270 the types are defined. Also conditionalize it on __STDC_LIMIT_MACROS,
15271 not __STDC_CONSTANT_MACROS.
15272 Reported by Nelson H. F. Beebe <beebe@math.utah.edu> via Eric Blake.
15274 2008-12-25 Bruno Haible <bruno@clisp.org>
15276 Add support for universal builds to vasnprintf.
15277 * m4/printf.m4 (gl_PRINTF_ENOMEM): Require gl_MULTIARCH. In Apple
15278 universal builds, guess no.
15279 * modules/vasnprintf-posix (Depends-on): Add multiarch.
15280 * modules/vasprintf-posix (Depends-on): Likewise.
15281 * modules/fprintf-posix (Depends-on): Likewise.
15282 * modules/vfprintf-posix (Depends-on): Likewise.
15283 * modules/snprintf-posix (Depends-on): Likewise.
15284 * modules/vsnprintf-posix (Depends-on): Likewise.
15285 * modules/sprintf-posix (Depends-on): Likewise.
15286 * modules/vsprintf-posix (Depends-on): Likewise.
15287 * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
15288 * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
15289 * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
15290 * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
15291 * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
15292 * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
15293 * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
15295 Add support for universal builds to <inttypes.h>.
15296 * lib/inttypes.in.h (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX,
15297 _SCNu64_PREFIX): In Apple
15298 universal builds, define directly, using _LP64.
15299 * m4/inttypes.m4 (gl_INTTYPES_H): In Apple universal builds, set
15300 INT64_MAX_EQ_LONG_MAX and UINT64_MAX_EQ_ULONG_MAX to -1.
15301 * modules/inttypes (Depends-on): Add multiarch.
15302 (Makefile.am): Substitute APPLE_UNIVERSAL_BUILD.
15304 Add support for universal builds to <stdint.h>.
15305 * lib/stdint.in.h (PDFDIFF_MIN, PTRDIFF_MAX, SIZE_MAX): In Apple
15306 universal builds, define directly, using _LP64.
15307 * m4/stdint.m4 (gl_STDINT_TYPE_PROPERTIES): Require gl_MULTIARCH. In
15308 Apple universal builds, don't test for the size and suffix of ptrdiff_t
15310 * modules/stdint (Depends-on): Add multiarch.
15311 (Makefile.am): Substitute APPLE_UNIVERSAL_BUILD.
15313 New module 'multiarch'.
15314 * modules/multiarch: New file.
15315 * m4/multiarch.m4: New file.
15317 2008-12-25 Bruno Haible <bruno@clisp.org>
15319 * gnulib-tool (func_create_testdir): Avoid failure of mv command.
15321 2008-12-25 Bruno Haible <bruno@clisp.org>
15323 * modules/btowc (License): Relicense under LGPLv2+.
15324 * modules/mbsinit (License): Likewise.
15325 * modules/mbrtowc (License): Likewise.
15326 * modules/wcrtomb (License): Likewise.
15327 * modules/streq (License): Likewise.
15328 Reported by David Lutterkort <lutter@redhat.com>.
15330 2008-12-23 Bruno Haible <bruno@clisp.org>
15332 * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Fix conditional and comment.
15334 2008-12-23 Bruno Haible <bruno@clisp.org>
15336 Module getaddrinfo requires linking with $(GETADDRINFO_LIB).
15337 * m4/getaddrinfo.m4 (gl_GETADDRINFO): Put link options into
15338 GETADDRINFO_LIB, not in LIBS.
15339 * modules/getaddrinfo (Link): Set to $(GETADDRINFO_LIB).
15340 * modules/canon-host (Link): Likewise.
15341 * NEWS: Mention the change.
15342 * modules/getaddrinfo-tests (test_getaddrinfo_LDADD): Add the
15345 2008-12-22 Bruno Haible <bruno@clisp.org>
15347 * doc/posix-functions/iswalnum_l.texi: Mention limitation of wchar_t.
15348 * doc/posix-functions/iswalpha_l.texi: Likewise.
15349 * doc/posix-functions/iswblank_l.texi: Likewise.
15350 * doc/posix-functions/iswcntrl_l.texi: Likewise.
15351 * doc/posix-functions/iswctype_l.texi: Likewise.
15352 * doc/posix-functions/iswdigit_l.texi: Likewise.
15353 * doc/posix-functions/iswgraph_l.texi: Likewise.
15354 * doc/posix-functions/iswlower_l.texi: Likewise.
15355 * doc/posix-functions/iswprint_l.texi: Likewise.
15356 * doc/posix-functions/iswpunct_l.texi: Likewise.
15357 * doc/posix-functions/iswspace_l.texi: Likewise.
15358 * doc/posix-functions/iswupper_l.texi: Likewise.
15359 * doc/posix-functions/iswxdigit_l.texi: Likewise.
15360 * doc/posix-functions/mbsnrtowcs.texi: Likewise.
15361 * doc/posix-functions/open_wmemstream.texi: Likewise.
15362 * doc/posix-functions/swscanf.texi: Likewise.
15363 * doc/posix-functions/towctrans_l.texi: Likewise.
15364 * doc/posix-functions/towlower.texi: Likewise.
15365 * doc/posix-functions/towlower_l.texi: Likewise.
15366 * doc/posix-functions/towupper.texi: Likewise.
15367 * doc/posix-functions/towupper_l.texi: Likewise.
15368 * doc/posix-functions/vfwprintf.texi: Likewise.
15369 * doc/posix-functions/vfwscanf.texi: Likewise.
15370 * doc/posix-functions/vswscanf.texi: Likewise.
15371 * doc/posix-functions/vwprintf.texi: Likewise.
15372 * doc/posix-functions/vwscanf.texi: Likewise.
15373 * doc/posix-functions/wcpcpy.texi: Likewise.
15374 * doc/posix-functions/wcpncpy.texi: Likewise.
15375 * doc/posix-functions/wcscasecmp.texi: Likewise.
15376 * doc/posix-functions/wcscasecmp_l.texi: Likewise.
15377 * doc/posix-functions/wcscoll_l.texi: Likewise.
15378 * doc/posix-functions/wcsdup.texi: Likewise.
15379 * doc/posix-functions/wcsncasecmp.texi: Likewise.
15380 * doc/posix-functions/wcsncasecmp_l.texi: Likewise.
15381 * doc/posix-functions/wcsnlen.texi: Likewise.
15382 * doc/posix-functions/wcsnrtombs.texi: Likewise.
15383 * doc/posix-functions/wcsxfrm_l.texi: Likewise.
15384 * doc/posix-functions/wctrans_l.texi: Likewise.
15385 * doc/posix-functions/wctype_l.texi: Likewise.
15386 * doc/glibc-functions/fgetwc_unlocked.texi: Likewise.
15387 * doc/glibc-functions/fgetws_unlocked.texi: Likewise.
15388 * doc/glibc-functions/fputwc_unlocked.texi: Likewise.
15389 * doc/glibc-functions/fputws_unlocked.texi: Likewise.
15390 * doc/glibc-functions/getwc_unlocked.texi: Likewise.
15391 * doc/glibc-functions/getwchar_unlocked.texi: Likewise.
15392 * doc/glibc-functions/putwc_unlocked.texi: Likewise.
15393 * doc/glibc-functions/putwchar_unlocked.texi: Likewise.
15394 * doc/glibc-functions/wcschrnul.texi: Likewise.
15395 * doc/glibc-functions/wcsftime_l.texi: Likewise.
15396 * doc/glibc-functions/wcstod_l.texi: Likewise.
15397 * doc/glibc-functions/wcstof_l.texi: Likewise.
15398 * doc/glibc-functions/wcstol_l.texi: Likewise.
15399 * doc/glibc-functions/wcstold_l.texi: Likewise.
15400 * doc/glibc-functions/wcstoll_l.texi: Likewise.
15401 * doc/glibc-functions/wcstoq.texi: Likewise.
15402 * doc/glibc-functions/wcstoul_l.texi: Likewise.
15403 * doc/glibc-functions/wcstoull_l.texi: Likewise.
15404 * doc/glibc-functions/wcstouq.texi: Likewise.
15405 * doc/glibc-functions/wmempcpy.texi: Likewise.
15407 2008-12-22 Ingo Weinhold <ingo_weinhold@gmx.de> (tiny change)
15408 Eric Blake <ebb9@byu.net>
15409 Paolo Bonzini <bonzini@gnu.org>
15410 Bruno Haible <bruno@clisp.org>
15412 Make c-stack work on Haiku.
15413 * lib/c-stack.c (SA_ONSTACK): Define fallback.
15414 (c_stack_action): Use SA_ONSTACK flag.
15416 2008-12-22 Bruno Haible <bruno@clisp.org>
15418 * m4/locale-fr.m4 (gt_LOCALE_FR_UTF8): Treat Haiku like BeOS.
15420 2008-12-22 Bruno Haible <bruno@clisp.org>
15422 Work around mbrlen() bugs on AIX, HP-UX, OSF/1, Solaris.
15423 * m4/mbrlen.m4 (gl_FUNC_MBRLEN): Set REPLACE_MBRLEN if mbrtowc is
15425 (gl_MBRLEN_INCOMPLETE_STATE, gl_MBRLEN_RETVAL, gl_MBRLEN_NUL_RETVAL):
15427 * lib/wchar.in.h (mbrlen): Override if REPLACE_MBRLEN is set.
15428 * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBRLEN.
15429 * modules/wchar (Makefile.am): Substitute REPLACE_MBRLEN.
15430 * doc/posix-functions/mbrlen.texi: Mention the various platform bugs.
15432 2008-12-22 Bruno Haible <bruno@clisp.org>
15434 * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE): Remove unused variable
15437 2008-12-22 Eric Blake <ebb9@byu.net>
15439 Avoid gcc warnings on cygwin.
15440 * lib/regex_internal.c (re_string_reconstruct) [!RE_ENABLE_I18N]:
15441 Avoid unused variable.
15442 * lib/regexec.c (check_arrival_add_next_nodes) [!RE_ENABLE_I18N]:
15445 2008-12-22 Bruno Haible <bruno@clisp.org>
15447 Remove HAVE_MBRTOWC conditionals.
15448 * lib/mbscasecmp.c: Include mbuiter.h unconditionally.
15449 (mbscasecmp): Assume mbrtowc function.
15450 * lib/mbscasestr.c: Include mbuiter.h unconditionally.
15451 (knuth_morris_pratt_multibyte, mbscasestr): Assume mbrtowc function.
15452 * lib/mbschr.c: Include mbuiter.h unconditionally.
15453 (mbschr): Assume mbrtowc function.
15454 * lib/mbscspn.c: Include mbuiter.h unconditionally.
15455 (mbscspn): Assume mbrtowc function.
15456 * lib/mbslen.c: Include mbuiter.h unconditionally.
15457 (mbslen): Assume mbrtowc function.
15458 * lib/mbsncasecmp.c: Include mbuiter.h unconditionally.
15459 (mbsncasecmp): Assume mbrtowc function.
15460 * lib/mbsnlen.c: Include mbiter.h unconditionally.
15461 (mbsnlen): Assume mbrtowc function.
15462 * lib/mbspbrk.c: Include mbuiter.h unconditionally.
15463 (mbspbrk): Assume mbrtowc function.
15464 * lib/mbspcasecmp.c: Include mbuiter.h unconditionally.
15465 (mbspcasecmp): Assume mbrtowc function.
15466 * lib/mbsrchr.c: Include mbuiter.h unconditionally.
15467 (mbsrchr): Assume mbrtowc function.
15468 * lib/mbssep.c: Include mbuiter.h unconditionally.
15469 (mbssep): Assume mbrtowc function.
15470 * lib/mbsspn.c: Include mbuiter.h unconditionally.
15471 (mbsspn): Assume mbrtowc function.
15472 * lib/mbsstr.c: Include mbuiter.h unconditionally.
15473 (knuth_morris_pratt_multibyte, mbsstr): Assume mbrtowc function.
15474 * lib/mbstok_r.c: Include mbuiter.h unconditionally.
15475 (mbstok_r): Assume mbrtowc function.
15476 * lib/propername.c: Include mbuiter.h unconditionally.
15477 (mbsstr_trimmed_wordbounded): Assume mbrtowc function.
15478 * lib/trim.c: Include mbchar.h, mbiter.h uncondtionally.
15479 (trim2): Assume mbrtowc function.
15480 * lib/mbswidth.c (mbsinit): Remove fallback definition.
15481 (mbsnwidth): Assume mbrtowc function.
15482 * modules/mbswidth (Depends-on): Add mbrtowc, mbsinit.
15483 * lib/quotearg.c (MB_CUR_MAX, mbstate_t, mbrtowc, iswprint): Remove
15484 fallback definitions.
15485 * modules/quotearg (Depends-on): Add mbrtowc, mbsinit.
15487 2008-12-22 Bruno Haible <bruno@clisp.org>
15489 * doc/posix-functions/mbtowc.texi: Mention a glibc bug.
15491 2008-12-22 Paolo Bonzini <bonzini@gnu.org>
15493 * modules/regex: Request emulations for the mb*/wc* functions we need.
15494 * m4/regex.m4: Don't look for those functions here.
15495 * lib/regex_internal.h: Do not check HAVE_WCRTOMB and HAVE_MBRTOWC.
15497 2008-12-22 Bruno Haible <bruno@clisp.org>
15499 * modules/fnmatch (Depends-on): Remove duplicated dependency.
15501 2008-12-21 Bruno Haible <bruno@clisp.org>
15503 Make mbiter.h, mbuiter.h, mbfile.h usable unconditionally.
15504 * modules/mbiter (Depends-on): Add mbrtowc, mbsinit.
15505 (Include): Remove conditionalization.
15506 * modules/mbuiter (Depends-on): Add mbrtowc, mbsinit.
15507 (Include): Remove conditionalization.
15508 * modules/mbfile (Depends-on): Add mbrtowc, mbsinit.
15509 (Include): Remove conditionalization.
15510 * m4/mbiter.m4 (gl_MBITER): Deprecate the use of AC_FUNC_MBRTOWC.
15511 * m4/mbfile.m4 (gl_MBFILE): Likewise.
15512 * NEWS: Mention the change.
15513 Reported by Alan Hourihane <alanh@fairlite.co.uk>
15514 via Sergey Poznyakoff <gray@gnu.org.ua>.
15516 2008-12-21 Bruno Haible <bruno@clisp.org>
15518 * MODULES.html.sh (Extended multibyte and wide character utilities
15519 <wchar.h>): Add btowc, wctob, mbsinit, mbrlen, mbrtowc, mbsrtowcs,
15520 wcrtomb, wcsrtombs.
15521 (Support for systems lacking POSIX:2008): Add accept, bind, close,
15522 connect, fclose, getpeername, getsockname, getsockopt, hostent, listen,
15523 mbsnrtowcs, posix_spawn*, recv, recvfrom, sched, select, send, sendto,
15524 setsockopt, shutdown, socket, spawn, sys_wait, wcsnrtombs, write.
15526 2008-12-21 Bruno Haible <bruno@clisp.org>
15528 * MODULES.html.sh: Change section titles to refer to POSIX:2008.
15530 2008-12-21 Bruno Haible <bruno@clisp.org>
15532 * modules/wcsnrtombs-tests: New file.
15533 * tests/test-wcsnrtombs1.sh: New file.
15534 * tests/test-wcsnrtombs2.sh: New file.
15535 * tests/test-wcsnrtombs3.sh: New file.
15536 * tests/test-wcsnrtombs4.sh: New file.
15537 * tests/test-wcsnrtombs.c: New file.
15539 New module 'wcsnrtombs'.
15540 * lib/wchar.in.h (wcsnrtombs): New declaration.
15541 * lib/wcsnrtombs.c: New file.
15542 * lib/wcsrtombs-state.c: New file.
15543 * lib/wcsrtombs.c: Refer to _gl_wcsrtombs_state.
15544 (internal_state): Remove variable.
15545 * m4/wcsnrtombs.m4: New file.
15546 * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): Add wcsrtombs-state.c to the
15548 * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNRTOMBS,
15550 * modules/wchar (Makefile.am): Substitute GNULIB_WCSNRTOMBS,
15552 * modules/wcsnrtombs: New file.
15553 * modules/wcsrtombs (Files): Add lib/wcsrtombs-state.c.
15554 * doc/posix-functions/wcsnrtombs.texi: Mention the new module.
15556 2008-12-21 Bruno Haible <bruno@clisp.org>
15558 * modules/wcsrtombs-tests: New file.
15559 * tests/test-wcsrtombs1.sh: New file.
15560 * tests/test-wcsrtombs2.sh: New file.
15561 * tests/test-wcsrtombs3.sh: New file.
15562 * tests/test-wcsrtombs4.sh: New file.
15563 * tests/test-wcsrtombs.c: New file.
15565 New module 'wcsrtombs'.
15566 * lib/wchar.in.h (wcsrtombs): New declaration.
15567 * lib/wcsrtombs.c: New file.
15568 * m4/wcsrtombs.m4: New file.
15569 * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSRTOMBS,
15570 HAVE_WCSRTOMBS, REPLACE_WCSRTOMBS.
15571 * modules/wchar (Makefile.am): Substitute GNULIB_WCSRTOMBS,
15572 HAVE_WCSRTOMBS, REPLACE_WCSRTOMBS.
15573 * modules/wcsrtombs: New file.
15574 * doc/posix-functions/wcsrtombs.texi: Mention the new module and the
15577 2008-12-21 Bruno Haible <bruno@clisp.org>
15579 Work around a wcrtomb() bug on Solaris 10 and OSF/1 5.1.
15580 * lib/wchar.in.h (wcrtomb): Override if REPLACE_WCRTOMB is set.
15581 * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Test the return value of wcrtomb
15582 with NULL destination argument in various locales. Set REPLACE_WCRTOMB
15584 * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCRTOMB.
15585 * modules/wchar (Makefile.am): Substitute REPLACE_WCRTOMB.
15586 * modules/wcrtomb (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
15587 m4/locale-zh.m4, m4/codeset.m4.
15588 * doc/posix-functions/wcrtomb.texi: Document the bug.
15590 2008-12-21 Bruno Haible <bruno@clisp.org>
15592 Work around a btowc() bug on IRIX 6.5.
15593 * lib/wchar.in.h (btowc): Override if REPLACE_BTOWC is set.
15594 * m4/btowc.m4 (gl_FUNC_BTOWC): Test whether btowc(EOF) is correct. Set
15595 REPLACE_WTOBC if not.
15596 * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_BTOWC.
15597 * modules/wchar (Makefile.am): Substitute REPLACE_BTOWC.
15598 * doc/posix-functions/btowc.texi: Mention the IRIX bug.
15600 2008-12-21 Bruno Haible <bruno@clisp.org>
15602 * modules/wcrtomb-tests: New file.
15603 * tests/test-wcrtomb.sh: New file.
15604 * tests/test-wcrtomb.c: New file.
15606 New module 'wcrtomb'.
15607 * lib/wchar.in.h (wcrtomb): New declaration.
15608 * lib/wcrtomb.c: New file.
15609 * m4/wcrtomb.m4: New file.
15610 * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCRTOMB,
15612 * modules/wchar (Makefile.am): Substitute GNULIB_WCRTOMB,
15614 * modules/wcrtomb: New file.
15615 * doc/posix-functions/wcrtomb.texi: Mention the new module.
15617 2008-12-21 Bruno Haible <bruno@clisp.org>
15619 * modules/mbrtowc (Files): Add m4/codeset.m4, needed by m4/locale-fr.m4.
15620 * modules/mbsrtowcs (Files): Likewise.
15621 * modules/wctob (Files): Likewise.
15622 * modules/c-strcase-tests (Files): Likewise.
15623 * modules/unistdio/u8-vasnprintf-tests (Files): Likewise.
15624 * modules/unistdio/u16-vasnprintf-tests (Files): Likewise.
15625 * modules/unistdio/u32-vasnprintf-tests (Files): Likewise.
15626 * modules/unistdio/ulc-vasnprintf-tests (Files): Likewise.
15627 * modules/vasnprintf-posix-tests (Files): Likewise.
15629 2008-12-21 William Pursell <bill.pursell@gmail.com>
15631 gitlog-to-changelog: pass all command-line arguments to git-log
15632 * build-aux/gitlog-to-changelog: When producing a ChangeLog,
15633 it is sometimes convenient to filter the commits in various ways.
15634 gitlog-to-changelog only allows --since to specify a start date,
15635 but git-log itself supports many other filtering mechanisms.
15636 At the moment, I want to filter by branch name. Rather than
15637 adding a --branch option to gitlog-to-changelog, it seems more
15638 flexible to simply pass all options directly to git-log and let
15639 git do the work. Notice that this effectively makes --since a
15640 redundant option for gitlog-to-changelog, but removing it would
15641 require current usage to change since calls would then require
15642 an additional '--'.
15644 2008-12-21 Bruno Haible <bruno@clisp.org>
15646 * modules/mbsnrtowcs-tests: New file.
15647 * tests/test-mbsnrtowcs1.sh: New file.
15648 * tests/test-mbsnrtowcs2.sh: New file.
15649 * tests/test-mbsnrtowcs3.sh: New file.
15650 * tests/test-mbsnrtowcs4.sh: New file.
15651 * tests/test-mbsnrtowcs.c: New file.
15653 New module 'mbsnrtowcs'.
15654 * lib/wchar.in.h (mbsnrtowcs): New declaration.
15655 * lib/mbsnrtowcs.c: New file.
15656 * lib/mbsrtowcs-state.c: New file.
15657 * lib/mbsrtowcs.c: Refer to _gl_mbsrtowcs_state.
15658 (internal_state): Remove variable.
15659 * m4/mbsnrtowcs.m4: New file.
15660 * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): Add mbsrtowcs-state.c to the
15662 * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSNRTOWCS,
15663 HAVE_MBSNRTOWCS, REPLACE_MBSNRTOWCS.
15664 * modules/wchar (Makefile.am): Substitute GNULIB_MBSNRTOWCS,
15665 HAVE_MBSNRTOWCS, REPLACE_MBSNRTOWCS.
15666 * modules/mbsnrtowcs: New file.
15667 * modules/mbsrtowcs (Files): Add lib/mbsrtowcs-state.c.
15668 * doc/posix-functions/mbsnrtowcs.texi: Mention the new module and a
15669 portability problem.
15671 2008-12-21 Bruno Haible <bruno@clisp.org>
15673 Work around mbsrtowcs bug.
15674 * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): New macro.
15675 (gl_FUNC_MBSRTOWCS): Invoke it.
15676 * modules/mbsrtowcs (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
15678 * doc/posix-functions/mbsrtowcs.texi: Document the bug.
15680 2008-12-21 Bruno Haible <bruno@clisp.org>
15682 * tests/test-mbsrtowcs.c (main): Execute the loop also for unlimited=1.
15684 2008-12-21 Bruno Haible <bruno@clisp.org>
15686 Update doc for AIX.
15687 * doc/pastposix-functions/wcswcs.texi: Mention that AIX has only a
15688 16-bit wchar_t type.
15689 * doc/posix-functions/btowc.texi: Likewise.
15690 * doc/posix-functions/fgetwc.texi: Likewise.
15691 * doc/posix-functions/fgetws.texi: Likewise.
15692 * doc/posix-functions/fputwc.texi: Likewise.
15693 * doc/posix-functions/fputws.texi: Likewise.
15694 * doc/posix-functions/fwide.texi: Likewise.
15695 * doc/posix-functions/fwprintf.texi: Likewise.
15696 * doc/posix-functions/fwscanf.texi: Likewise.
15697 * doc/posix-functions/getwchar.texi: Likewise.
15698 * doc/posix-functions/getwc.texi: Likewise.
15699 * doc/posix-functions/iswalnum.texi: Likewise.
15700 * doc/posix-functions/iswalpha.texi: Likewise.
15701 * doc/posix-functions/iswblank.texi: Likewise.
15702 * doc/posix-functions/iswcntrl.texi: Likewise.
15703 * doc/posix-functions/iswctype.texi: Likewise.
15704 * doc/posix-functions/iswdigit.texi: Likewise.
15705 * doc/posix-functions/iswgraph.texi: Likewise.
15706 * doc/posix-functions/iswlower.texi: Likewise.
15707 * doc/posix-functions/iswprint.texi: Likewise.
15708 * doc/posix-functions/iswpunct.texi: Likewise.
15709 * doc/posix-functions/iswspace.texi: Likewise.
15710 * doc/posix-functions/iswupper.texi: Likewise.
15711 * doc/posix-functions/iswxdigit.texi: Likewise.
15712 * doc/posix-functions/mbrtowc.texi: Likewise.
15713 * doc/posix-functions/mbsrtowcs.texi: Likewise.
15714 * doc/posix-functions/mbstowcs.texi: Likewise.
15715 * doc/posix-functions/mbtowc.texi: Likewise.
15716 * doc/posix-functions/putwchar.texi: Likewise.
15717 * doc/posix-functions/putwc.texi: Likewise.
15718 * doc/posix-functions/swprintf.texi: Likewise.
15719 * doc/posix-functions/tolower.texi: Likewise.
15720 * doc/posix-functions/toupper.texi: Likewise.
15721 * doc/posix-functions/towctrans.texi: Likewise.
15722 * doc/posix-functions/ungetwc.texi: Likewise.
15723 * doc/posix-functions/vswprintf.texi: Likewise.
15724 * doc/posix-functions/wcrtomb.texi: Likewise.
15725 * doc/posix-functions/wcscat.texi: Likewise.
15726 * doc/posix-functions/wcschr.texi: Likewise.
15727 * doc/posix-functions/wcscmp.texi: Likewise.
15728 * doc/posix-functions/wcscoll.texi: Likewise.
15729 * doc/posix-functions/wcscpy.texi: Likewise.
15730 * doc/posix-functions/wcscspn.texi: Likewise.
15731 * doc/posix-functions/wcsftime.texi: Likewise.
15732 * doc/posix-functions/wcslen.texi: Likewise.
15733 * doc/posix-functions/wcsncat.texi: Likewise.
15734 * doc/posix-functions/wcsncmp.texi: Likewise.
15735 * doc/posix-functions/wcsncpy.texi: Likewise.
15736 * doc/posix-functions/wcspbrk.texi: Likewise.
15737 * doc/posix-functions/wcsrchr.texi: Likewise.
15738 * doc/posix-functions/wcsrtombs.texi: Likewise.
15739 * doc/posix-functions/wcsspn.texi: Likewise.
15740 * doc/posix-functions/wcsstr.texi: Likewise.
15741 * doc/posix-functions/wcstod.texi: Likewise.
15742 * doc/posix-functions/wcstof.texi: Likewise.
15743 * doc/posix-functions/wcstoimax.texi: Likewise.
15744 * doc/posix-functions/wcstok.texi: Likewise.
15745 * doc/posix-functions/wcstold.texi: Likewise.
15746 * doc/posix-functions/wcstoll.texi: Likewise.
15747 * doc/posix-functions/wcstol.texi: Likewise.
15748 * doc/posix-functions/wcstombs.texi: Likewise.
15749 * doc/posix-functions/wcstoull.texi: Likewise.
15750 * doc/posix-functions/wcstoul.texi: Likewise.
15751 * doc/posix-functions/wcstoumax.texi: Likewise.
15752 * doc/posix-functions/wcswidth.texi: Likewise.
15753 * doc/posix-functions/wcsxfrm.texi: Likewise.
15754 * doc/posix-functions/wctob.texi: Likewise.
15755 * doc/posix-functions/wctomb.texi: Likewise.
15756 * doc/posix-functions/wctrans.texi: Likewise.
15757 * doc/posix-functions/wctype.texi: Likewise.
15758 * doc/posix-functions/wcwidth.texi: Likewise.
15759 * doc/posix-functions/wmemchr.texi: Likewise.
15760 * doc/posix-functions/wmemcmp.texi: Likewise.
15761 * doc/posix-functions/wmemcpy.texi: Likewise.
15762 * doc/posix-functions/wmemmove.texi: Likewise.
15763 * doc/posix-functions/wmemset.texi: Likewise.
15764 * doc/posix-functions/wprintf.texi: Likewise.
15765 * doc/posix-functions/wscanf.texi: Likewise.
15767 2008-12-21 Bruno Haible <bruno@clisp.org>
15769 Update doc for HP-UX 11.11.
15770 * doc/posix-functions/btowc.texi: Clarify that the function is missing
15771 in HP-UX version 11.00, not in all versions of HP-UX 11.
15772 * doc/posix-functions/fwide.texi: Likewise.
15773 * doc/posix-functions/fwprintf.texi: Likewise.
15774 * doc/posix-functions/fwscanf.texi: Likewise.
15775 * doc/posix-functions/inet_ntop.texi: Likewise.
15776 * doc/posix-functions/inet_pton.texi: Likewise.
15777 * doc/posix-functions/mbrlen.texi: Likewise.
15778 * doc/posix-functions/mbrtowc.texi: Likewise.
15779 * doc/posix-functions/mbsinit.texi: Likewise.
15780 * doc/posix-functions/mbsrtowcs.texi: Likewise.
15781 * doc/posix-functions/swprintf.texi: Likewise.
15782 * doc/posix-functions/swscanf.texi: Likewise.
15783 * doc/posix-functions/towctrans.texi: Likewise.
15784 * doc/posix-functions/vfwprintf.texi: Likewise.
15785 * doc/posix-functions/vswprintf.texi: Likewise.
15786 * doc/posix-functions/vwprintf.texi: Likewise.
15787 * doc/posix-functions/wcrtomb.texi: Likewise.
15788 * doc/posix-functions/wcsrtombs.texi: Likewise.
15789 * doc/posix-functions/wcsstr.texi: Likewise.
15790 * doc/posix-functions/wctob.texi: Likewise.
15791 * doc/posix-functions/wctrans.texi: Likewise.
15792 * doc/posix-functions/wmemchr.texi: Likewise.
15793 * doc/posix-functions/wmemcmp.texi: Likewise.
15794 * doc/posix-functions/wmemcpy.texi: Likewise.
15795 * doc/posix-functions/wmemmove.texi: Likewise.
15796 * doc/posix-functions/wmemset.texi: Likewise.
15797 * doc/posix-functions/wprintf.texi: Likewise.
15798 * doc/posix-functions/wscanf.texi: Likewise.
15800 2008-12-21 Bruno Haible <bruno@clisp.org>
15802 Work around a portability problem.
15803 * tests/test-mbsrtowcs.c (main): Use a temporary conversion state.
15804 * doc/posix-functions/mbsrtowcs.texi: Document the portability problem.
15806 2008-12-20 Bruno Haible <bruno@clisp.org>
15808 * lib/wchar.in.h (mbsrtowcs): Redefine if REPLACE_MBSRTOWCS is set.
15809 * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): Invoke gl_MBSTATE_T_BROKEN. Set
15810 REPLACE_MBSRTOWCS if mbsrtowcs needs to be overridden.
15811 * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBSRTOWCS.
15812 * modules/wchar (Makefile.am): Substitute REPLACE_MBSRTOWCS.
15814 Work around mbrtowc bugs on AIX, HP-UX, OSF/1, Solaris.
15815 * lib/wchar.in.h (mbstate_t): Redefine also if REPLACE_MBSTATE_T is
15817 (GNULIB_defined_mbstate_t): New macro.
15818 (mbsinit): Redefine if REPLACE_MBSINIT is set.
15819 (mbrtowc): Redefine if REPLACE_MBRTOWC is set.
15820 * lib/mbrtowc.c (rpl_mbrtowc): Add an alternative implementation that
15821 reuses the system's mbrtowc function but works around the bugs.
15822 * m4/mbrtowc.m4 (gl_MBSTATE_T_BROKEN, gl_MBRTOWC_INCOMPLETE_STATE,
15823 gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL): New
15825 (gl_FUNC_MBRTOWC): Invoke them. Set REPLACE_MBRTOWC if mbrtowc needs to
15826 be overridden. Optionally define MBRTOWC_NULL_ARG_BUG,
15827 MBRTOWC_RETVAL_BUG, MBRTOWC_NUL_RETVAL_BUG.
15828 * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Invoke gl_MBSTATE_T_BROKEN. Set
15829 REPLACE_MBSINIT if mbsinit needs to be overridden.
15830 * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBSTATE_T,
15831 REPLACE_MBSINIT, REPLACE_MBRTOWC.
15832 * modules/wchar (Makefile.am): Substitute REPLACE_MBSTATE_T,
15833 REPLACE_MBSINIT, REPLACE_MBRTOWC.
15834 * modules/mbrtowc (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
15836 (Depends): Add mbsinit.
15837 * modules/mbsinit (Depends): Add mbrtowc.
15838 * doc/posix-functions/mbrtowc.texi: Mention the various bugs.
15840 2008-12-20 Bruno Haible <bruno@clisp.org>
15842 * tests/test-mbrtowc.c (main): Change sample string in EUC-JP encoding
15843 so that there are no conversion errors on AIX.
15844 * tests/test-mbsrtowcs.c (main): LIkewise.
15846 2008-12-20 Bruno Haible <bruno@clisp.org>
15848 Work around wctob bug on Solaris <= 9.
15849 * lib/wchar.in.h (wctob): Redefine if REPLACE_WCTOB is set.
15850 * m4/wctob.m4 (gl_FUNC_WCTOB): Test whether wctob works.
15851 * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCTOB.
15852 * modules/wchar (Makefile.am): Substitute REPLACE_WCTOB.
15853 * modules/wctob (Files): Add m4/locale-fr.m4.
15854 * doc/posix-functions/wctob.texi: Mention the Solaris bug.
15856 2008-12-20 Bruno Haible <bruno@clisp.org>
15858 * doc/posix-functions/select.texi: Mention Solaris 2.6 bug with
15860 * tests/test-select-in.sh: Likewise.
15861 Reported by Tom G. Christensen <tgc@jupiterrise.com>.
15863 2008-12-20 Bruno Haible <bruno@clisp.org>
15865 Don't pretend that Cygwin has a ja_JP.EUC-JP locale.
15866 * m4/locale-ja.m4 (gt_LOCALE_JA): Add test for MB_CUR_MAX. Needed on
15869 2008-12-20 Bruno Haible <bruno@clisp.org>
15871 Ensure mbstate_t is defined on HP-UX 11.11.
15872 * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Require
15873 AC_CANONICAL_HOST. On HP-UX, define _XOPEN_SOURCE to 500.
15874 * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Require
15875 AC_USE_SYSTEM_EXTENSIONS.
15876 * modules/fnmatch (Depends-on): Add extensions.
15877 * modules/mbrlen (Depends-on): Likewise.
15878 * modules/mbrtowc (Depends-on): Likewise.
15879 * modules/mbsinit (Depends-on): Likewise.
15880 * modules/mbsrtowcs (Depends-on): Likewise.
15881 * modules/mbswidth (Depends-on): Likewise.
15882 * modules/quotearg (Depends-on): Likewise.
15883 * modules/strftime (Depends-on): Likewise.
15885 2008-12-20 Bruno Haible <bruno@clisp.org>
15887 Ensure wctob is declared on IRIX 6.5.
15888 * lib/wchar.in.h (wctob): Declare also when HAVE_DECL_WCTOB is 0.
15889 * m4/wctob.m4 (gl_FUNC_WCTOB): Set HAVE_DECL_WCTOB instead of
15890 HAVE_WCTOB. Also test whether <wchar.h> declares wctob.
15891 * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize HAVE_DECL_WCTOB instead
15893 * modules/wchar (Makefile.am): Substitute HAVE_DECL_WCTOB instead of
15895 * doc/posix-functions/wctob.texi: Mention missing declaration on IRIX.
15897 2008-12-19 Bruno Haible <bruno@clisp.org>
15899 * modules/mbsrtowcs-tests: New file.
15900 * tests/test-mbsrtowcs1.sh: New file.
15901 * tests/test-mbsrtowcs2.sh: New file.
15902 * tests/test-mbsrtowcs3.sh: New file.
15903 * tests/test-mbsrtowcs4.sh: New file.
15904 * tests/test-mbsrtowcs.c: New file.
15906 New module 'mbsrtowcs'.
15907 * lib/wchar.in.h (mbsrtowcs): New declaration.
15908 * lib/mbsrtowcs.c: New file.
15909 * m4/mbsrtowcs.m4: New file.
15910 * modules/mbsrtowcs: New file.
15911 * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSRTOWCS and
15913 * modules/wchar (Makefile.am): Substitute GNULIB_MBSRTOWCS and
15915 * doc/posix-functions/mbsrtowcs.texi: Document the new module.
15917 2008-12-19 Bruno Haible <bruno@clisp.org>
15919 New module 'mbrlen'.
15920 * lib/wchar.in.h (mbrlen): New declaration.
15921 * lib/mbrlen.c: New file.
15922 * m4/mbrlen.m4: New file.
15923 * modules/mbrlen: New file.
15924 * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBRLEN and
15926 * modules/wchar (Makefile.am): Substitute GNULIB_MBRLEN and
15928 * doc/posix-functions/mbrlen.texi: Document the new module.
15930 2008-12-19 Bruno Haible <bruno@clisp.org>
15932 * lib/mbrtowc.c: Include verify.h. Verify an assumption.
15933 * modules/mbrtowc (Depends-on): Add verify.
15934 Suggested by Paul Eggert.
15936 2008-12-18 Bruno Haible <bruno@clisp.org>
15938 * modules/mbsinit-tests: New file.
15939 * tests/test-mbsinit.sh: New file.
15940 * tests/test-mbsinit.c: New file.
15942 2008-12-18 Bruno Haible <bruno@clisp.org>
15944 * modules/mbrtowc-tests: New file.
15945 * tests/test-mbrtowc1.sh: New file.
15946 * tests/test-mbrtowc2.sh: New file.
15947 * tests/test-mbrtowc3.sh: New file.
15948 * tests/test-mbrtowc4.sh: New file.
15949 * tests/test-mbrtowc.c: New file.
15951 New module 'mbrtowc'.
15952 * lib/wchar.in.h (mbstate_t): Override when the system does not have
15953 mbsinit and mbrtowc.
15954 (mbrtowc): New declaration.
15955 * lib/mbrtowc.c: New file.
15956 * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC, gl_PREREQ_MBRTOWC): New macros.
15957 * modules/mbrtowc: New file.
15958 * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBRTOWC and
15960 * modules/wchar (Makefile.am): Substitute GNULIB_MBRTOWC and
15962 * doc/posix-functions/mbrtowc.texi: Document the new module.
15964 2008-12-18 Bruno Haible <bruno@clisp.org>
15966 New module 'wctob'.
15967 * lib/wchar.in.h (wctob): New declaration.
15968 * lib/wctob.c: New file.
15969 * m4/wctob.m4: New file.
15970 * modules/wctob: New file.
15971 * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCTOB and
15973 * modules/wchar (Makefile.am): Substitute GNULIB_WCTOB and HAVE_WCTOB.
15974 * doc/posix-functions/wctob.texi: Document the new module.
15976 2008-12-18 Bruno Haible <bruno@clisp.org>
15978 * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Invoke gl_REPLACE_WCHAR_H.
15979 * m4/btowc.m4 (gl_FUNC_BTOWC): Likewise.
15981 2008-12-18 Simon Josefsson <simon@josefsson.org>
15983 * lib/flock.c: Use proper #if symbol in check. Reported by "Tom
15984 G. Christensen" <tgc@jupiterrise.com>.
15986 * lib/flock.c: Need to include errno.h. Reported by "Tom
15987 G. Christensen" <tgc@jupiterrise.com>.
15989 * lib/flock.c: Need to include string.h. Reported by "Tom
15990 G. Christensen" <tgc@jupiterrise.com> and Eric Blake
15993 2008-12-18 Bruno Haible <bruno@clisp.org>
15995 * m4/locale-ja.m4: New file, from GNU gettext.
15997 2008-12-17 Bruno Haible <bruno@clisp.org>
15999 * m4/mbrtowc.m4 (AC_FUNC_MBRTOWC): Don't override in autoconf >= 2.60.
16000 Suggested by Eric Blake.
16002 2008-12-17 Bruno Haible <bruno@clisp.org>
16004 * m4/errno_h.m4 (AC_COMPUTE_INT): Provide fallback definition.
16006 2008-12-17 Bruno Haible <bruno@clisp.org>
16008 * lib/mbsinit.c: Include verify.h. Verify an assumption.
16009 * modules/mbsinit (Depends-on): Add verify.
16010 Suggested by Paul Eggert.
16012 2008-12-17 Bruno Haible <bruno@clisp.org>
16014 * m4/mbrtowc.m4 (AC_FUNC_MBRTOWC): Renamed from gl_FUNC_MBRTOWC.
16015 * m4/mbfile.m4 (gl_MBFILE): Use AC_FUNC_MBRTOWC instead of
16017 * m4/mbiter.m4 (gl_MBITER): LIkewise.
16018 * m4/mbscasecmp.m4 (gl_PREREQ_MBSCASECMP): Likewise.
16019 * m4/mbscasestr.m4 (gl_PREREQ_MBSCASESTR): Likewise.
16020 * m4/mbschr.m4 (gl_PREREQ_MBSCHR): Likewise.
16021 * m4/mbscspn.m4 (gl_PREREQ_MBSCSPN): Likewise.
16022 * m4/mbslen.m4 (gl_PREREQ_MBSLEN): Likewise.
16023 * m4/mbsncasecmp.m4 (gl_PREREQ_MBSNCASECMP): Likewise.
16024 * m4/mbsnlen.m4 (gl_PREREQ_MBSNLEN): Likewise.
16025 * m4/mbspbrk.m4 (gl_PREREQ_MBSPBRK): Likewise.
16026 * m4/mbspcasecmp.m4 (gl_PREREQ_MBSPCASECMP): Likewise.
16027 * m4/mbsrchr.m4 (gl_PREREQ_MBSRCHR): Likewise.
16028 * m4/mbssep.m4 (gl_PREREQ_MBSSEP): Likewise.
16029 * m4/mbsspn.m4 (gl_PREREQ_MBSSPN): Likewise.
16030 * m4/mbsstr.m4 (gl_PREREQ_MBSSTR): Likewise.
16031 * m4/mbstok_r.m4 (gl_PREREQ_MBSTOK_R): Likewise.
16032 * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
16033 * m4/quotearg.m4 (gl_QUOTEARG): Likewise.
16034 * modules/trim (configure.ac): Likewise.
16036 2008-12-17 Bruno Haible <bruno@clisp.org>
16038 * modules/btowc-tests: New file.
16039 * tests/test-btowc1.sh: New file.
16040 * tests/test-btowc2.sh: New file.
16041 * tests/test-btowc.c: New file.
16043 New module 'btowc'.
16044 * lib/wchar.in.h (btowc): New declaration.
16045 * lib/btowc.c: New file.
16046 * m4/btowc.m4: New file.
16047 * modules/btowc: New file.
16048 * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_BTOWC and
16050 * modules/wchar (Makefile.am): Substitute GNULIB_BTOWC and HAVE_BTOWC.
16051 * doc/posix-functions/btowc.texi: Document the new module.
16053 2008-12-17 Bruno Haible <bruno@clisp.org>
16055 New module 'mbsinit'.
16056 * lib/wchar.in.h (mbsinit): New declaration.
16057 * lib/mbsinit.c: New file.
16058 * m4/mbsinit.m4: New file.
16059 * modules/mbsinit: New file.
16060 * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSINIT and
16062 * modules/wchar (Makefile.am): Substitute GNULIB_MBSINIT and
16064 * doc/posix-functions/mbsinit.texi: Document the new module.
16066 2008-12-16 Bruno Haible <bruno@clisp.org>
16068 * lib/unistd.in.h: Add comment.
16069 * tests/test-environ.c: Don't include <stdlib.h>.
16071 2008-12-16 Bruno Haible <bruno@clisp.org>
16073 * lib/parse-duration.h (parse_duration): Document return value
16075 * lib/parse-duration.c: Include specification header first. Add
16078 (parse_year_month_day, parse_hour_minute_second): Move side effects
16079 outside of strchr call.
16080 (parse_non_iso8601): Move side effects outside of isspace call.
16081 (parse_duration): Don't test errno is res != BAD_TIME. Remove fprintf
16084 2008-12-16 Bruno Haible <bruno@clisp.org>
16086 * tests/test-parse-duration.sh: Produce no output when the test
16089 2008-12-16 Bruno Haible <bruno@clisp.org>
16091 * tests/test-parse-duration.sh: Fix quoting of $tmp and $tmpf
16094 2008-12-15 Bruno Haible <bruno@clisp.org>
16096 * doc/glibc-functions/fgetxattr.texi: Tweak wording.
16097 * doc/glibc-functions/flistxattr.texi: Likewise.
16098 * doc/glibc-functions/fopencookie.texi: Likewise.
16099 * doc/glibc-functions/fremovexattr.texi: Likewise.
16100 * doc/glibc-functions/fsetxattr.texi: Likewise.
16101 * doc/glibc-functions/getxattr.texi: Likewise.
16102 * doc/glibc-functions/lgetxattr.texi: Likewise.
16103 * doc/glibc-functions/listxattr.texi: Likewise.
16104 * doc/glibc-functions/llistxattr.texi: Likewise.
16105 * doc/glibc-functions/lremovexattr.texi: Likewise.
16106 * doc/glibc-functions/lsetxattr.texi: Likewise.
16107 * doc/glibc-functions/removexattr.texi: Likewise.
16108 * doc/glibc-functions/setxattr.texi: Likewise.
16109 * doc/posix-functions/open_memstream.texi: Likewise.
16111 2008-12-15 Eric Blake <ebb9@byu.net>
16113 Update doc for cygwin 1.7.
16114 * doc/posix-functions/faccessat.texi: Cygwin 1.7 added several new
16116 * doc/posix-functions/fchmodat.texi: Likewise.
16117 * doc/posix-functions/fchownat.texi: Likewise.
16118 * doc/posix-functions/fdopendir.texi: Likewise.
16119 * doc/posix-functions/fmemopen.texi: Likewise.
16120 * doc/posix-functions/freeaddrinfo.texi: Likewise.
16121 * doc/posix-functions/fstatat.texi: Likewise.
16122 * doc/posix-functions/futimens.texi: Likewise.
16123 * doc/posix-functions/gai_strerror.texi: Likewise.
16124 * doc/posix-functions/getaddrinfo.texi: Likewise.
16125 * doc/posix-functions/getnameinfo.texi: Likewise.
16126 * doc/posix-functions/if_freenameindex.texi: Likewise.
16127 * doc/posix-functions/if_indextoname.texi: Likewise.
16128 * doc/posix-functions/if_nameindex.texi: Likewise.
16129 * doc/posix-functions/if_nametoindex.texi: Likewise.
16130 * doc/posix-functions/insque.texi: Likewise.
16131 * doc/posix-functions/linkat.texi: Likewise.
16132 * doc/posix-functions/llrint.texi: Likewise.
16133 * doc/posix-functions/llrintf.texi: Likewise.
16134 * doc/posix-functions/llrintl.texi: Likewise.
16135 * doc/posix-functions/lockf.texi: Likewise.
16136 * doc/posix-functions/lrintl.texi: Likewise.
16137 * doc/posix-functions/mkdirat.texi: Likewise.
16138 * doc/posix-functions/mkfifoat.texi: Likewise.
16139 * doc/posix-functions/mknodat.texi: Likewise.
16140 * doc/posix-functions/mq_close.texi: Likewise.
16141 * doc/posix-functions/mq_getattr.texi: Likewise.
16142 * doc/posix-functions/mq_notify.texi: Likewise.
16143 * doc/posix-functions/mq_open.texi: Likewise.
16144 * doc/posix-functions/mq_receive.texi: Likewise.
16145 * doc/posix-functions/mq_send.texi: Likewise.
16146 * doc/posix-functions/mq_setattr.texi: Likewise.
16147 * doc/posix-functions/mq_timedreceive.texi: Likewise.
16148 * doc/posix-functions/mq_timedsend.texi: Likewise.
16149 * doc/posix-functions/mq_unlink.texi: Likewise.
16150 * doc/posix-functions/open_memstream.texi: Likewise.
16151 * doc/posix-functions/openat.texi: Likewise.
16152 * doc/posix-functions/posix_fadvise.texi: Likewise.
16153 * doc/posix-functions/posix_fallocate.texi: Likewise.
16154 * doc/posix-functions/posix_madvise.texi: Likewise.
16155 * doc/posix-functions/posix_memalign.texi: Likewise.
16156 * doc/posix-functions/posix_openpt.texi: Likewise.
16157 * doc/posix-functions/readlinkat.texi: Likewise.
16158 * doc/posix-functions/remque.texi: Likewise.
16159 * doc/posix-functions/renameat.texi: Likewise.
16160 * doc/posix-functions/rintl.texi: Likewise.
16161 * doc/posix-functions/sem_unlink.texi: Likewise.
16162 * doc/posix-functions/shm_open.texi: Likewise.
16163 * doc/posix-functions/shm_unlink.texi: Likewise.
16164 * doc/posix-functions/signgam.texi: Likewise.
16165 * doc/posix-functions/sigset.texi: Likewise.
16166 * doc/posix-functions/stpcpy.texi: Likewise.
16167 * doc/posix-functions/stpncpy.texi: Likewise.
16168 * doc/posix-functions/strerror.texi: Likewise.
16169 * doc/posix-functions/strtod.texi: Likewise.
16170 * doc/posix-functions/symlinkat.texi: Likewise.
16171 * doc/posix-functions/unlinkat.texi: Likewise.
16172 * doc/posix-functions/utimensat.texi: Likewise.
16173 * doc/glibc-functions/bindresvport.texi: Likewise.
16174 * doc/glibc-functions/dn_expand.texi: Likewise.
16175 * doc/glibc-functions/exp10.texi: Likewise.
16176 * doc/glibc-functions/exp10f.texi: Likewise.
16177 * doc/glibc-functions/fgetxattr.texi: Likewise.
16178 * doc/glibc-functions/flistxattr.texi: Likewise.
16179 * doc/glibc-functions/fopencookie.texi: Likewise.
16180 * doc/glibc-functions/freeifaddrs.texi: Likewise.
16181 * doc/glibc-functions/fremovexattr.texi: Likewise.
16182 * doc/glibc-functions/fsetxattr.texi: Likewise.
16183 * doc/glibc-functions/getifaddrs.texi: Likewise.
16184 * doc/glibc-functions/getxattr.texi: Likewise.
16185 * doc/glibc-functions/lgetxattr.texi: Likewise.
16186 * doc/glibc-functions/listxattr.texi: Likewise.
16187 * doc/glibc-functions/llistxattr.texi: Likewise.
16188 * doc/glibc-functions/lremovexattr.texi: Likewise.
16189 * doc/glibc-functions/lsetxattr.texi: Likewise.
16190 * doc/glibc-functions/pow10.texi: Likewise.
16191 * doc/glibc-functions/pow10f.texi: Likewise.
16192 * doc/glibc-functions/rcmd_af.texi: Likewise.
16193 * doc/glibc-functions/removexattr.texi: Likewise.
16194 * doc/glibc-functions/res_init.texi: Likewise.
16195 * doc/glibc-functions/res_mkquery.texi: Likewise.
16196 * doc/glibc-functions/res_query.texi: Likewise.
16197 * doc/glibc-functions/res_querydomain.texi: Likewise.
16198 * doc/glibc-functions/res_send.texi: Likewise.
16199 * doc/glibc-functions/rresvport_af.texi: Likewise.
16200 * doc/glibc-functions/setxattr.texi: Likewise.
16201 * doc/glibc-functions/strcasestr.texi: Likewise.
16203 2008-12-15 Bruno Haible <bruno@clisp.org>
16205 Fix compilation error on OSF/1 4.0.
16206 * lib/sys_select.in.h: When invoked from OSF/1 <sys/types.h> or
16207 <sys/time.h>, simply delegate to the system header.
16208 Reported by Daniel Richard G. <oss@teragram.com>.
16210 2008-12-15 Bruno Haible <bruno@clisp.org>
16212 * doc/posix-functions/openat.texi: Mention the 'openat' module.
16213 * doc/posix-functions/fchmodat.texi: Likewise.
16214 * doc/posix-functions/fchownat.texi: Likewise.
16215 * doc/posix-functions/fdopendir.texi: Likewise.
16216 * doc/posix-functions/fstatat.texi: Likewise.
16217 * doc/posix-functions/mkdirat.texi: Likewise.
16218 * doc/posix-functions/unlinkat.texi: Likewise.
16220 2008-12-14 Bruno Haible <bruno@clisp.org>
16222 Update doc for POSIX:2008.
16223 * doc/posix-functions/faccessat.texi: New file.
16224 * doc/posix-functions/fchmodat.texi: New file.
16225 * doc/posix-functions/fchownat.texi: New file.
16226 * doc/posix-functions/fdopendir.texi: New file.
16227 * doc/posix-functions/fstatat.texi: New file.
16228 * doc/posix-functions/futimens.texi: New file.
16229 * doc/posix-functions/linkat.texi: New file.
16230 * doc/posix-functions/mkdirat.texi: New file.
16231 * doc/posix-functions/mkfifoat.texi: New file.
16232 * doc/posix-functions/mknodat.texi: New file.
16233 * doc/posix-functions/open_wmemstream.texi: New file.
16234 * doc/posix-functions/openat.texi: New file.
16235 * doc/posix-functions/psiginfo.texi: New file.
16236 * doc/posix-functions/pthread_mutex_consistent.texi: New file.
16237 * doc/posix-functions/pthread_mutexattr_getrobust.texi: New file.
16238 * doc/posix-functions/pthread_mutexattr_setrobust.texi: New file.
16239 * doc/posix-functions/readlinkat.texi: New file.
16240 * doc/posix-functions/renameat.texi: New file.
16241 * doc/posix-functions/strerror_l.texi: New file.
16242 * doc/posix-functions/symlinkat.texi: New file.
16243 * doc/posix-functions/unlinkat.texi: New file.
16244 * doc/posix-functions/utimensat.texi: New file.
16245 * doc/gnulib.texi (Function Substitutes): Add these subsections.
16247 2008-12-14 Bruno Haible <bruno@clisp.org>
16249 Update doc for POSIX:2008.
16250 * doc/posix-functions/alphasort.texi: Renamed from
16251 doc/glibc-functions/alphasort.texi.
16252 * doc/posix-functions/dirfd.texi: Renamed from
16253 doc/glibc-functions/dirfd.texi.
16254 * doc/posix-functions/dprintf.texi: Renamed from
16255 doc/glibc-functions/dprintf.texi.
16256 * doc/posix-functions/duplocale.texi: Renamed from
16257 doc/glibc-functions/duplocale.texi.
16258 * doc/posix-functions/fexecve.texi: Renamed from
16259 doc/glibc-functions/fexecve.texi.
16260 * doc/posix-functions/fmemopen.texi: Renamed from
16261 doc/glibc-functions/fmemopen.texi.
16262 * doc/posix-functions/freelocale.texi: Renamed from
16263 doc/glibc-functions/freelocale.texi.
16264 * doc/posix-functions/getdate_err.texi: Renamed from
16265 doc/glibc-functions/getdate_err.texi.
16266 * doc/posix-functions/isalnum_l.texi: Renamed from
16267 doc/glibc-functions/isalnum_l.texi.
16268 * doc/posix-functions/isalpha_l.texi: Renamed from
16269 doc/glibc-functions/isalpha_l.texi.
16270 * doc/posix-functions/isblank_l.texi: Renamed from
16271 doc/glibc-functions/isblank_l.texi.
16272 * doc/posix-functions/iscntrl_l.texi: Renamed from
16273 doc/glibc-functions/iscntrl_l.texi.
16274 * doc/posix-functions/isdigit_l.texi: Renamed from
16275 doc/glibc-functions/isdigit_l.texi.
16276 * doc/posix-functions/isgraph_l.texi: Renamed from
16277 doc/glibc-functions/isgraph_l.texi.
16278 * doc/posix-functions/islower_l.texi: Renamed from
16279 doc/glibc-functions/islower_l.texi.
16280 * doc/posix-functions/isprint_l.texi: Renamed from
16281 doc/glibc-functions/isprint_l.texi.
16282 * doc/posix-functions/ispunct_l.texi: Renamed from
16283 doc/glibc-functions/ispunct_l.texi.
16284 * doc/posix-functions/isspace_l.texi: Renamed from
16285 doc/glibc-functions/isspace_l.texi.
16286 * doc/posix-functions/isupper_l.texi: Renamed from
16287 doc/glibc-functions/isupper_l.texi.
16288 * doc/posix-functions/iswalnum_l.texi: Renamed from
16289 doc/glibc-functions/iswalnum_l.texi.
16290 * doc/posix-functions/iswalpha_l.texi: Renamed from
16291 doc/glibc-functions/iswalpha_l.texi.
16292 * doc/posix-functions/iswblank_l.texi: Renamed from
16293 doc/glibc-functions/iswblank_l.texi.
16294 * doc/posix-functions/iswcntrl_l.texi: Renamed from
16295 doc/glibc-functions/iswcntrl_l.texi.
16296 * doc/posix-functions/iswctype_l.texi: Renamed from
16297 doc/glibc-functions/iswctype_l.texi.
16298 * doc/posix-functions/iswdigit_l.texi: Renamed from
16299 doc/glibc-functions/iswdigit_l.texi.
16300 * doc/posix-functions/iswgraph_l.texi: Renamed from
16301 doc/glibc-functions/iswgraph_l.texi.
16302 * doc/posix-functions/iswlower_l.texi: Renamed from
16303 doc/glibc-functions/iswlower_l.texi.
16304 * doc/posix-functions/iswprint_l.texi: Renamed from
16305 doc/glibc-functions/iswprint_l.texi.
16306 * doc/posix-functions/iswpunct_l.texi: Renamed from
16307 doc/glibc-functions/iswpunct_l.texi.
16308 * doc/posix-functions/iswspace_l.texi: Renamed from
16309 doc/glibc-functions/iswspace_l.texi.
16310 * doc/posix-functions/iswupper_l.texi: Renamed from
16311 doc/glibc-functions/iswupper_l.texi.
16312 * doc/posix-functions/iswxdigit_l.texi: Renamed from
16313 doc/glibc-functions/iswxdigit_l.texi.
16314 * doc/posix-functions/isxdigit_l.texi: Renamed from
16315 doc/glibc-functions/isxdigit_l.texi.
16316 * doc/posix-functions/mbsnrtowcs.texi: Renamed from
16317 doc/glibc-functions/mbsnrtowcs.texi.
16318 * doc/posix-functions/mkdtemp.texi: Renamed from
16319 doc/glibc-functions/mkdtemp.texi.
16320 * doc/posix-functions/newlocale.texi: Renamed from
16321 doc/glibc-functions/newlocale.texi.
16322 * doc/posix-functions/nl_langinfo_l.texi: Renamed from
16323 doc/glibc-functions/nl_langinfo_l.texi.
16324 * doc/posix-functions/open_memstream.texi: Renamed from
16325 doc/glibc-functions/open_memstream.texi.
16326 * doc/posix-functions/opterr.texi: Renamed from
16327 doc/glibc-functions/opterr.texi.
16328 * doc/posix-functions/optind.texi: Renamed from
16329 doc/glibc-functions/optind.texi.
16330 * doc/posix-functions/optopt.texi: Renamed from
16331 doc/glibc-functions/optopt.texi.
16332 * doc/posix-functions/psignal.texi: Renamed from
16333 doc/glibc-functions/psignal.texi.
16334 * doc/posix-functions/scandir.texi: Renamed from
16335 doc/glibc-functions/scandir.texi.
16336 * doc/posix-functions/sched_get_priority_min.texi: Renamed from
16337 doc/glibc-functions/sched_get_priority_min.texi.
16338 * doc/posix-functions/signgam.texi: Renamed from
16339 doc/glibc-functions/signgam.texi.
16340 * doc/posix-functions/stpcpy.texi: Renamed from
16341 doc/glibc-functions/stpcpy.texi.
16342 * doc/posix-functions/stpncpy.texi: Renamed from
16343 doc/glibc-functions/stpncpy.texi.
16344 * doc/posix-functions/strcasecmp_l.texi: Renamed from
16345 doc/glibc-functions/strcasecmp_l.texi.
16346 * doc/posix-functions/strcoll_l.texi: Renamed from
16347 doc/glibc-functions/strcoll_l.texi.
16348 * doc/posix-functions/strfmon_l.texi: Renamed from
16349 doc/glibc-functions/strfmon_l.texi.
16350 * doc/posix-functions/strftime_l.texi: Renamed from
16351 doc/glibc-functions/strftime_l.texi.
16352 * doc/posix-functions/strncasecmp_l.texi: Renamed from
16353 doc/glibc-functions/strncasecmp_l.texi.
16354 * doc/posix-functions/strndup.texi: Renamed from
16355 doc/glibc-functions/strndup.texi.
16356 * doc/posix-functions/strnlen.texi: Renamed from
16357 doc/glibc-functions/strnlen.texi.
16358 * doc/posix-functions/strsignal.texi: Renamed from
16359 doc/glibc-functions/strsignal.texi.
16360 * doc/posix-functions/strxfrm_l.texi: Renamed from
16361 doc/glibc-functions/strxfrm_l.texi.
16362 * doc/posix-functions/timer_gettime.texi: Renamed from
16363 doc/glibc-functions/timer_gettime.texi.
16364 * doc/posix-functions/tolower_l.texi: Renamed from
16365 doc/glibc-functions/tolower_l.texi.
16366 * doc/posix-functions/toupper_l.texi: Renamed from
16367 doc/glibc-functions/toupper_l.texi.
16368 * doc/posix-functions/towctrans_l.texi: Renamed from
16369 doc/glibc-functions/towctrans_l.texi.
16370 * doc/posix-functions/towlower_l.texi: Renamed from
16371 doc/glibc-functions/towlower_l.texi.
16372 * doc/posix-functions/towupper_l.texi: Renamed from
16373 doc/glibc-functions/towupper_l.texi.
16374 * doc/posix-functions/uselocale.texi: Renamed from
16375 doc/glibc-functions/uselocale.texi.
16376 * doc/posix-functions/vdprintf.texi: Renamed from
16377 doc/glibc-functions/vdprintf.texi.
16378 * doc/posix-functions/wcpcpy.texi:
16379 Renamed from doc/glibc-functions/wcpcpy.texi.
16380 * doc/posix-functions/wcpncpy.texi: Renamed from
16381 doc/glibc-functions/wcpncpy.texi.
16382 * doc/posix-functions/wcscasecmp.texi: Renamed from
16383 doc/glibc-functions/wcscasecmp.texi.
16384 * doc/posix-functions/wcscasecmp_l.texi: Renamed from
16385 doc/glibc-functions/wcscasecmp_l.texi.
16386 * doc/posix-functions/wcscoll_l.texi: Renamed from
16387 doc/glibc-functions/wcscoll_l.texi.
16388 * doc/posix-functions/wcsdup.texi: Renamed from
16389 doc/glibc-functions/wcsdup.texi.
16390 * doc/posix-functions/wcsncasecmp.texi: Renamed from
16391 doc/glibc-functions/wcsncasecmp.texi.
16392 * doc/posix-functions/wcsncasecmp_l.texi: Renamed from
16393 doc/glibc-functions/wcsncasecmp_l.texi.
16394 * doc/posix-functions/wcsnlen.texi: Renamed from
16395 doc/glibc-functions/wcsnlen.texi.
16396 * doc/posix-functions/wcsnrtombs.texi: Renamed from
16397 doc/glibc-functions/wcsnrtombs.texi.
16398 * doc/posix-functions/wcsxfrm_l.texi: Renamed from
16399 doc/glibc-functions/wcsxfrm_l.texi.
16400 * doc/posix-functions/wctrans_l.texi: Renamed from
16401 doc/glibc-functions/wctrans_l.texi.
16402 * doc/posix-functions/wctype_l.texi: Renamed from
16403 doc/glibc-functions/wctype_l.texi.
16404 * doc/gnulib.texi (Function Substitutes): Add these subsections.
16405 (Glibc ctype.h, Glibc dirent.h, Glibc getopt.h, Glibc math.h,
16406 Glibc sched.h, Glibc signal.h, Glibc stdio.h, Glibc stdlib.h,
16407 Glibc string.h, Glibc time.h, Glibc unistd.h, Glibc wchar.h): Remove
16409 (Glibc langinfo.h, Glibc locale.h, Glibc monetary.h, Glibc wctype.h):
16412 2008-12-14 Bruno Haible <bruno@clisp.org>
16414 Update doc for POSIX:2008.
16415 * doc/posix-functions/*.texi: Update URL of POSIX specification.
16417 2008-12-14 Bruno Haible <bruno@clisp.org>
16419 Update doc for POSIX:2008.
16420 * doc/pastposix-functions/bcmp.texi: Renamed from
16421 doc/posix-functions/bcmp.texi.
16422 * doc/pastposix-functions/bcopy.texi: Renamed from
16423 doc/posix-functions/bcopy.texi.
16424 * doc/pastposix-functions/bsd_signal.texi: Renamed from
16425 doc/posix-functions/bsd_signal.texi.
16426 * doc/pastposix-functions/bzero.texi: Renamed from
16427 doc/posix-functions/bzero.texi.
16428 * doc/pastposix-functions/ecvt.texi: Renamed from
16429 doc/posix-functions/ecvt.texi.
16430 * doc/pastposix-functions/fcvt.texi: Renamed from
16431 doc/posix-functions/fcvt.texi.
16432 * doc/pastposix-functions/ftime.texi: Renamed from
16433 doc/posix-functions/ftime.texi.
16434 * doc/pastposix-functions/gcvt.texi: Renamed from
16435 doc/posix-functions/gcvt.texi.
16436 * doc/pastposix-functions/getcontext.texi: Renamed from
16437 doc/posix-functions/getcontext.texi.
16438 * doc/pastposix-functions/gethostbyaddr.texi: Renamed from
16439 doc/posix-functions/gethostbyaddr.texi.
16440 * doc/pastposix-functions/gethostbyname.texi: Renamed from
16441 doc/posix-functions/gethostbyname.texi.
16442 * doc/pastposix-functions/getwd.texi: Renamed from
16443 doc/posix-functions/getwd.texi.
16444 * doc/pastposix-functions/h_errno.texi: Renamed from
16445 doc/posix-functions/h_errno.texi.
16446 * doc/pastposix-functions/index.texi: Renamed from
16447 doc/posix-functions/index.texi.
16448 * doc/pastposix-functions/makecontext.texi: Renamed from
16449 doc/posix-functions/makecontext.texi.
16450 * doc/pastposix-functions/mktemp.texi: Renamed from
16451 doc/posix-functions/mktemp.texi.
16452 * doc/pastposix-functions/pthread_attr_getstackaddr.texi: Renamed from
16453 doc/posix-functions/pthread_attr_getstackaddr.texi.
16454 * doc/pastposix-functions/pthread_attr_setstackaddr.texi: Renamed from
16455 doc/posix-functions/pthread_attr_setstackaddr.texi.
16456 * doc/pastposix-functions/rindex.texi: Renamed from
16457 doc/posix-functions/rindex.texi.
16458 * doc/pastposix-functions/scalb.texi: Renamed from
16459 doc/posix-functions/scalb.texi.
16460 * doc/pastposix-functions/setcontext.texi: Renamed from
16461 doc/posix-functions/setcontext.texi.
16462 * doc/pastposix-functions/swapcontext.texi: Renamed from
16463 doc/posix-functions/swapcontext.texi.
16464 * doc/pastposix-functions/ualarm.texi: Renamed from
16465 doc/posix-functions/ualarm.texi.
16466 * doc/pastposix-functions/usleep.texi: Renamed from
16467 doc/posix-functions/usleep.texi.
16468 * doc/pastposix-functions/vfork.texi: Renamed from
16469 doc/posix-functions/vfork.texi.
16470 * doc/pastposix-functions/wcswcs.texi: Renamed from
16471 doc/posix-functions/wcswcs.texi.
16472 * doc/gnulib.texi (Legacy Function Substitutes): New chapter.
16473 (Function Substitutes): Update.
16475 2008-12-14 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
16477 * modules/relocatable-prog-wrapper (Depends-on): Add errno, needed by
16480 2008-12-14 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
16481 Bruno Haible <bruno@clisp.org>
16483 * modules/unilbrk/tables (Depends-on): Add unilbrk/base.
16485 2008-12-13 Bruno Haible <bruno@clisp.org>
16487 * modules/strtoull (Depends-on): Remove unistd.
16489 2008-12-11 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
16491 * modules/strtoull (Depends-on): Add stdlib.
16493 2008-12-11 Simon Josefsson <simon@josefsson.org>
16495 * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Add more warnings.
16497 2008-12-10 Jim Meyering <meyering@redhat.com>
16499 gl_ASSERT: don't say assertions are disabled when they're not
16500 * m4/assert.m4 (gl_ASSERT): Do not make configure report
16501 "checking whether to enable assertions... no", when they are in
16502 fact enabled. This is solely a bug in the output of configure.
16503 In spite of saying "no", NDEBUG was not defined in that case.
16504 Also, as noted by Eric Blake, leave assertions enabled upon
16505 --enable-assert=INVALID.
16507 2008-12-10 Bruno Haible <bruno@clisp.org>
16509 Change MODULES.html to refer to POSIX:2008 where possible.
16510 * MODULES.html.sh (POSIX2008_URL): New variable.
16511 (posix_headers): Remove sys/timeb, ucontext.
16512 (posix2001_headers): New variable.
16513 (posix_functions): Remove bcmp, bcopy, bsd_signal, bzero, ecvt, fcvt,
16514 ftime, gcvt, getcontext, gethostbyaddr, gethostbyname, getwd, h_errno,
16515 index, makecontext, mktemp, pthread_attr_getstackaddr,
16516 pthread_attr_setstackaddr, rindex, scalb, setcontext, swapcontext,
16517 ualarm, usleep, vfork, wcswcs. Add the new POSIX:2008 functions.
16518 (posix2001_functions): New variable.
16519 (func_module): Use URLs to POSIX:2008 where possible and to POSIX:2001
16522 2008-12-09 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
16524 add missing include to parse-duration.c
16525 * lib/parse-duration.c: #include "xalloc.h", for xstrdup.
16526 * modules/parse-duration (Depends-on): Add xalloc.
16528 fix sed script reading maint.mk
16529 * top/maint.mk (MYSELF): New macro, define as $(srcdir)/$(ME).
16530 (syntax-check-rules): Use it.
16532 2008-12-09 Bruno Haible <bruno@clisp.org>
16534 * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): Add another check, that fails on
16535 MacOS X 10.4/PowerPC.
16536 Reported by Simon Josefsson.
16538 2008-12-08 Jim Meyering <meyering@redhat.com>
16540 work around mingw's lack of some S_IF definitions
16541 * lib/fts.c (S_IFLNK, S_IFSOCK): Define if not already defined.
16542 Reported by Simon Josefsson.
16544 2008-12-08 Bruno Haible <bruno@clisp.org>
16546 * m4/signbitl.m4 (gl_SIGNBIT_TEST_PROGRAM): Add a link check of signbit
16547 applied to variables. Needed on MacOS X 10.4/PowerPC.
16548 Reported by Simon Josefsson.
16550 2008-12-08 William Pursell <bill.pursell@gmail.com> (tiny change)
16551 and Eric Blake <ebb9@byu.net>
16553 assert: honor --enable-assert
16554 * m4/assert.m4 (gl_ASSERT): Synchronize with autoconf 2.64, in
16555 order to honor --enable-assert, rather than treating it as a
16556 synonym for --disable-assert.
16558 2008-12-08 Jim Meyering <meyering@redhat.com>
16560 * lib/posixtm.c: Remove now-useless declaration of mktime.
16562 * build-aux/announce-gen (get_tool_versions): Accept .xz tarballs.
16564 2008-12-07 Bruno Haible <bruno@clisp.org>
16566 * tests/test-lock.c (test_lock, test_rwlock, test_recursive_lock,
16567 test_once): Mark functions as static.
16568 * tests/test-tls.c (test_tls): Likewise.
16570 2008-12-07 Bruno Haible <bruno@clisp.org>
16572 * lib/striconveha.h (uniconv_register_autodetect): Renamed from
16573 iconv_register_autodetect.
16575 2008-12-07 Jim Meyering <meyering@redhat.com>
16577 posixtm.c: avoid a warning
16578 * lib/posixtm.c (posixtime): Don't initialize tm0.
16579 It's no longer needed to placate gcc4's -Wuninitialized,
16580 and the attempt to placate would elicit a new warning.
16582 unicodeio.c: mark unused parameters
16583 * lib/unicodeio.c (exit_failure_callback): Mark unused parameter.
16584 (fallback_failure_callback): Likewise.
16586 2008-12-07 Bruno Haible <bruno@clisp.org>
16588 * gnulib-tool (func_create_testdir): When building the tests
16589 subdirectory, ignore the modules gnumakefile and maintainer-makefile.
16590 Reported by Simon Josefsson.
16592 2008-12-07 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
16594 * doc/manywarnings.texi, doc/gnulib-intro.texi: Fix typos.
16596 2008-12-06 Bruno Haible <bruno@clisp.org>
16598 * lib/c-stack.h (c_stack_action): Clarify possible side effects.
16599 Suggested by Eric Blake.
16601 2008-12-06 Bruno Haible <bruno@clisp.org>
16603 Fix a c-stack test failure on MacOS X.
16604 * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Require
16605 AC_CANONICAL_HOST. Define FAULT_YIELDS_SIGBUS. If set, install a signal
16606 handler for SIGBUS as well.
16607 * lib/c-stack.c (c_stack_action): If FAULT_YIELDS_SIGBUS is set,
16608 install a signal handler for SIGBUS as well.
16609 Reported by Bruce Dugan <bld0401@gmail.com> via Eric Blake.
16611 2008-12-06 Bruno Haible <bruno@clisp.org>
16613 Advocacy documentation.
16614 * doc/gnulib-intro.texi (Benefits): New section.
16615 * doc/gnulib.texi: Update.
16617 2008-12-06 Bruno Haible <bruno@clisp.org>
16619 Document the 'manywarnings' module.
16620 * doc/manywarnings.texi: New file.
16621 * doc/gnulib.texi: Include it.
16623 2008-12-05 Eric Blake <ebb9@byu.net>
16625 tests: silence some gcc warnings
16626 * tests/test-getdate.c (LOG) [!DEBUG]: Mark no-op void.
16627 * tests/uniwidth/test-uc_width2.c (finish_interval): Avoid printf
16630 2008-12-03 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
16631 Bruno Haible <bruno@clisp.org>
16633 * m4/openmp.m4 (AC_OPENMP): Do not define with Autoconf 2.62 or newer.
16635 2008-11-29 Jim Meyering <meyering@redhat.com>
16637 unicodeio.c: mark unused parameters
16638 * lib/unicodeio.c (exit_failure_callback): Mark unused parameter.
16639 (fallback_failure_callback): Likewise.
16642 * lib/fts.c (s_ifmt_shift_bits): Remove function. Not needed after all.
16643 (set_stat_type): Return S_IF*-valued "type" directly.
16644 Prompted by James Youngman's spotting a related bug.
16645 Confirmed by further testing through find.
16647 fts: provide dirent.d_type via FTSENT.fts_statp, when possible
16648 * lib/fts.c (D_TYPE): Define.
16649 (DT_UNKNOWN, DT_BLK, DT_CHR) [HAVE_STRUCT_DIRENT_D_TYPE]: Define.
16650 (DT_DIR, DT_FIFO, DT_LNK, DT_REG, DT_SOCK): Likewise.
16651 (s_ifmt_shift_bits): New function.
16652 (set_stat_type): New function.
16653 (fts_build): When not calling fts_stat, call set_stat_type
16654 to propagate dirent.d_type info to fts_read caller.
16655 * lib/fts_.h (FTSENT) [FTS_DEFER_STAT]: Mention that
16656 fts_statp->st_mode type information may be valid.
16658 2008-11-28 Simon Josefsson <simon@josefsson.org>
16660 * lib/sys_time.in.h: Add extern "C" block for C++. Suggested by
16661 Brian Dessent <brian@dessent.net>. Reported by Sam Steingold
16664 2008-11-20 Bruno Haible <bruno@clisp.org>
16666 Attempt to work around an AIX 5.3, 6.1 compiler bug with include_next.
16667 * lib/math.in.h: Use INCLUDE_NEXT_AS_FIRST_DIRECTIVE instead of
16669 * m4/include_next.m4 (gl_INCLUDE_NEXT): Set also
16670 INCLUDE_NEXT_AS_FIRST_DIRECTIVE.
16671 * modules/math (Makefile.am): Substitute
16672 INCLUDE_NEXT_AS_FIRST_DIRECTIVE instead of INCLUDE_NEXT.
16673 Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
16675 2008-11-18 Alexandre Duret-Lutz <adl@lrde.epita.fr>
16676 Bruno Haible <bruno@clisp.org>
16678 * lib/stdint.in.h: Define all type macros so that their expansion is
16679 a single typedef'ed token. Fixes a compilation failure in Boost which
16680 does "using ::int8_t;".
16682 2008-11-18 Simon Josefsson <simon@josefsson.org>
16684 * m4/manywarnings.m4: New file with gl_MANYWARN_COMPLEMENT and
16685 gl_MANYWARN_ALL_GCC.
16686 * m4/warnings.m4: Removed gl_WARN_SUPPORTED and
16687 gl_WARN_COMPLEMENT. Suggested by Bruno Haible <bruno@clisp.org>.
16688 * modules/manywarnings: New file.
16689 * MODULES.html.sh: Mention manywarnings module.
16691 2008-11-18 Bruno Haible <bruno@clisp.org>
16693 * doc/gnulib-tool.texi (Unit tests): New section.
16695 2008-11-18 Simon Josefsson <simon@josefsson.org>
16697 * top/maint.mk (refresh-po): Fix sed regexp to avoid problems with
16698 paths like 'lib/po/foo.po'.
16700 2008-11-17 Simon Josefsson <simon@josefsson.org>
16702 * m4/warnings.m4: Improve code. Reported by Ralf Wildenhues
16703 <Ralf.Wildenhues@gmx.de> and Paolo Bonzini <bonzini@gnu.org>.
16705 2008-11-17 Simon Josefsson <simon@josefsson.org>
16707 * m4/warnings.m4: Use CPPFLAGS to really check whether the
16710 2008-11-17 Simon Josefsson <simon@josefsson.org>
16712 * m4/warnings.m4: Add gl_WARN_COMPLEMENT and gl_WARN_SUPPORTED.
16714 2008-11-17 Bruce Korb <bkorb@gnu.org>
16716 * modules/parse-duration-tests: New file.
16717 * tests/test-parse-duration.sh: New file.
16718 * tests/test-parse-duration.c: New file.
16720 New module 'parse-duration'.
16721 * lib/parse-duration.h: New file.
16722 * lib/parse-duration.c: New file.
16723 * modules/parse-duration: New file.
16725 2008-11-17 Bruno Haible <bruno@clisp.org>
16727 * tests/test-select-out.sh: Comment out the first pipe test.
16728 Reported by Simon Josefsson.
16730 2008-11-17 Bruno Haible <bruno@clisp.org>
16732 * modules/getaddrinfo (Depends-on): Add servent, hostent.
16733 * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Use gl_SERVENT and
16736 2008-11-17 Bruno Haible <bruno@clisp.org>
16738 * m4/sockets.m4 (gl_SOCKETS): After trying -lsocket, try also
16739 -lnetwork and -lnet. Needed for Haiku and BeOS.
16741 2008-11-16 Bruno Haible <bruno@clisp.org>
16743 * m4/getaddrinfo.m4 (gl_GETADDRINFO): Fix indentation.
16745 2008-11-16 Bruno Haible <bruno@clisp.org>
16747 Avoid test failure on Haiku.
16748 * tests/test-fsync.c: Include <errno.h>.
16749 (main): Don't require that fsync (0) fails.
16751 2008-11-15 Bruno Haible <bruno@clisp.org>
16753 New module 'hostent'.
16754 * modules/hostent: New file.
16755 * m4/hostent.m4: New file, based on code in m4/getaddrinfo.m4.
16757 2008-11-15 Bruno Haible <bruno@clisp.org>
16759 New module 'servent'.
16760 * modules/servent: New file.
16761 * m4/servent.m4: New file, based on code in m4/getaddrinfo.m4.
16763 2008-11-15 Bruno Haible <bruno@clisp.org>
16765 Avoid generating same test program with two different rules.
16766 * modules/frexp-nolibm-tests (Makefile.am): Rename test program from
16767 test-frexp to test-frexp-nolibm.
16768 * modules/frexpl-nolibm-tests (Makefile.am): Rename test program from
16769 test-frexpl to test-frexpl-nolibm.
16771 2008-11-15 Bruno Haible <bruno@clisp.org>
16773 * modules/frexpl-tests (Makefile.am): Link test-frexpl with
16776 2008-11-15 Bruno Haible <bruno@clisp.org>
16778 * lib/netdb.in.h: Activate the definitions also when the system's
16779 <netdb.h> has 'struct addrinfo'.
16780 * m4/netdb_h.m4 (gl_HEADER_NETDB): Replace netdb.h also when it lacks
16781 EAI_OVERFLOW or AI_NUMERICSERV.
16782 * doc/posix-headers/netdb.texi: Document the problem.
16784 2008-11-15 Bruno Haible <bruno@clisp.org>
16786 * tests/test-sched.c: Test also the existence of the SCHED_* macros.
16788 Make the 'sched' module work on platforms where <sched.h> exists but
16789 is incomplete (such as Haiku).
16790 * lib/sched.in.h; Include the system's <sched.h> if it exists.
16791 (SCHED_FIFO, SCHED_RR, SCHED_OTHER): New macros.
16792 * m4/sched_h.m4 (gl_SCHED_H): Test whether <sched.h> exists and also
16793 defines SCHED_FIFO, SCHED_RR, SCHED_OTHER. Set HAVE_SCHED_H,
16794 HAVE_STRUCT_SCHED_PARAM.
16795 * modules/sched (Depends-on): Add include_next.
16796 (Makefile.am): Substitute HAVE_SCHED_H, INCLUDE_NEXT,
16797 PRAGMA_SYSTEM_HEADER, NEXT_SCHED_H, HAVE_STRUCT_SCHED_PARAM.
16798 * doc/posix-headers/sched.texi: Document the issue.
16800 2008-11-13 Jim Meyering <meyering@redhat.com>
16802 test-argp-2: avoid test failure when PACKAGE_BUGREPORT is defined
16803 * tests/test-argp-2.sh: When PACKAGE_BUGREPORT was defined, this
16804 test would fail due to the difference in the Report bugs to ...
16805 line. The expected address is empty, "<>", while the actual
16806 would contain e.g., "<bug-tar@gnu.org>". Filter out any address.
16808 2008-11-12 Bruno Haible <bruno@clisp.org>
16810 lstat: don't compile lstat.c on systems lacking lstat
16811 * m4/lstat.m4 (gl_FUNC_LSTAT): Don't compile lstat.c on systems
16812 which don't have lstat; this is handled by lib/sys_stat.in.h already.
16813 Reported by Daniel P. Berrange via Jim Meyering.
16815 2008-11-12 Jim Meyering <meyering@redhat.com>
16817 * lib/unicodeio.c (unicode_to_mb): Correct spelling of u8_uctomb.
16819 2008-11-12 Simon Josefsson <simon@josefsson.org>
16821 * modules/warnings (configure.ac): Do AC_SUBST([WARN_CFLAGS]) here
16824 2008-11-12 Bruno Haible <bruno@clisp.org>
16826 * lib/unicodeio.c: Include unistr.h.
16827 (utf8_wctomb): Remove function.
16828 (unicode_to_mb): Use utf8_uctomb instead of utf8_wctomb.
16830 2008-11-12 Simon Josefsson <simon@josefsson.org>
16832 * m4/warnings.m4 (gl_WARN_INIT): Remove, suggested by Ralf
16833 Wildenhues <Ralf.Wildenhues@gmx.de> and Bruno Haible
16835 * modules/warnings (configure.ac): Don't call gl_WARN_INIT.
16837 2008-11-12 Simon Josefsson <simon@josefsson.org>
16839 * doc/warnings.texi: New file, from Bruno Haible <bruno@clisp.org>.
16840 * doc/gnulib.texi: Add section for warnings.
16842 2008-11-11 Bruno Haible <bruno@clisp.org>
16844 * lib/sockets.h: Add a comment.
16846 2008-11-11 Karl Berry <karl@gnu.org>
16848 * config/srclist.txt (fdl.texi): add, syncing from gnustandards.
16850 2008-11-11 Eric Blake <ebb9@byu.net>
16852 fdl.texi: avoid git symlinks
16853 * doc/fdl.texi: Copy, rather than link, fdl-1.3.texi.
16855 2008-11-11 Paolo Bonzini <bonzini@gnu.org>
16857 * m4/warnings.m4 (gl_WARN_ADD): Don't AC_SUBST the empty string.
16859 2008-11-11 Paolo Bonzini <bonzini@gnu.org>
16861 * m4/warnings.m4 (gl_WARN_INIT): Substitute WARN_CFLAGS.
16862 (gl_WARN_ADD): Substitute $2 if literal.
16864 2008-11-11 Paolo Bonzini <bonzini@gnu.org>
16866 * m4/warning.m4: Remove.
16868 2008-11-11 Paolo Bonzini <bonzini@gnu.org>
16870 * m4/warnings.m4: Almost complete rewrite. :-)
16872 2008-11-10 Simon Josefsson <simon@josefsson.org>
16874 * modules/warnings: New module.
16875 * m4/warnings.m4: New file.
16876 * MODULES.html.sh: Mention warnings module.
16877 With review improvements from Paolo Bonzini <bonzini@gnu.org> and
16878 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
16880 2008-11-10 Eric Blake <ebb9@byu.net>
16882 fdl.texi: make a symlink to the latest version
16883 * doc/standards.texi: Revert today's earlier change.
16884 * doc/fdl-1.2.texi: Rename from old fdl.texi...
16885 * doc/fdl.texi: ...and replace this with a symlink to the newer
16888 2008-11-10 Bruno Haible <bruno@clisp.org>
16890 * tests/test-select-fd.c (main): Accept the result file name as fourth
16892 * tests/test-select-in.sh: Pass t-select-in.tmp as fourth argument.
16893 * tests/test-select-out.sh: Pass t-select-out.tmp as fourth argument.
16895 2008-11-10 Bruno Haible <bruno@clisp.org>
16897 * lib/netdb.in.h: Use HAVE_STRUCT_ADDRINFO, HAVE_DECL_GETADDRINFO,
16898 HAVE_DECL_FREEADDRINFO, HAVE_DECL_GAI_STRERROR, HAVE_DECL_GETNAMEINFO
16899 as autoconf-substituted macros.
16900 * m4/netdb_h.m4 (gl_NETDB_H_DEFAULTS): Initialize these variables to 1.
16901 * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Require
16902 gl_NETDB_H_DEFAULTS. Set these variables.
16903 * modules/netdb (Makefile.am): Substitute these variables.
16905 2008-11-10 Eric Blake <ebb9@byu.net>
16907 standards.texi: include correct file for FDL 1.3
16908 * doc/standards.texi (GNU Free Documentation License): Change
16909 include file to pull in FDL 1.3, not 1.2.
16911 fdl.texi: revert accidental change to license
16912 * doc/fdl.texi: This is FDL 1.2, not 1.3.
16914 2008-11-10 Bruno Haible <bruno@clisp.org>
16916 * m4/printf.m4 (gl_PRINTF_ENOMEM): Guess yes on Haiku. Use the
16917 cross-compiling guesses also when the native compile gives no result.
16919 2008-11-10 Bruno Haible <bruno@clisp.org>
16921 * lib/spawni.c (__spawni): Force variable into the stack.
16923 2008-11-10 Bruno Haible <bruno@clisp.org>
16925 Add support for Haiku.
16926 * lib/fbufmode.c (fbufmode): Test a symbol that is not only defined on
16927 glibc and BeOS, but also on Haiku.
16928 * lib/fpurge.c (fpurge): Likewise.
16929 * lib/freadable.c (freadable): Likewise.
16930 * lib/freadahead.c (freadahead): Likewise.
16931 * lib/freading.c (freading): Likewise.
16932 * lib/freadptr.c (freadptr): Likewise.
16933 * lib/freadseek.c (freadptrinc): Likewise.
16934 * lib/fseeko.c (rpl_fseeko): Likewise.
16935 * lib/fseterr.c (fseterr): Likewise.
16936 * lib/fwritable.c (fwritable): Likewise.
16937 * lib/fwriting.c (fwriting): Likewise.
16938 Reported by Ingo Weinhold <ingo_weinhold@gmx.de>.
16940 2008-11-10 Ingo Weinhold <ingo_weinhold@gmx.de>
16942 * lib/config.charset: Treat Haiku like BeOS.
16944 2008-11-10 Ingo Weinhold <ingo_weinhold@gmx.de>
16946 * lib/binary-io.h (O_BINARY, O_TEXT): Treat Haiku like BeOS.
16947 * lib/fcntl.in.h (O_BINARY, O_TEXT): Likewise.
16949 2008-11-08 Bruno Haible <bruno@clisp.org>
16951 * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Avoid using AC_CHECK_DECL inside
16954 2008-11-08 Bruno Haible <bruno@clisp.org>
16956 * modules/select-tests (configure.ac): Check for unistd.h, sys/wait.h.
16958 2008-11-08 Bruno Haible <bruno@clisp.org>
16960 * tests/test-select-fd.c: New file.
16961 * tests/test-select-in.sh: New file.
16962 * tests/test-select-out.sh: New file.
16963 * tests/test-select-stdin.c: New file.
16964 * modules/select-tests (Files): Add the new files.
16965 (Depends-on): Add gettimeofday.
16966 (Makefile.am): Add test-select-in.sh, test-select-out.sh to TESTS.
16967 Set TESTS_ENVIRONMENT. Add test-select-fd, test-select-stdin to
16968 check_PROGRAMS. Define test_select_fd_LDADD, test_select_stdin_LDADD.
16970 2008-11-06 Alexander V. Lukyanov <lav@netis.ru>
16971 Bruno Haible <bruno@clisp.org>
16973 * lib/sys_stat.in.h: Enclose function definitions in extern "C".
16975 2008-10-12 Giuseppe Scrivano <gscrivano@gnu.org>
16977 * build-aux/pmccabe2html: Added support for C++ source files.
16979 2008-11-05 Ben Pfaff <blp@gnu.org>
16981 Fix lib/close.c build on Windows.
16982 * modules/close (Files): Add lib/w32sock.h.
16984 2008-11-05 Joel E. Denny <jdenny@ces.clemson.edu>
16986 Accept Bison's NEWS format.
16987 * build-aux/announce-gen (print_news_deltas): Tweak
16990 2008-11-04 Bruno Haible <bruno@clisp.org>
16992 * modules/random_r (Maintainer): Add glibc.
16994 2008-11-04 Simon Josefsson <simon@josefsson.org>
16996 * doc/alloca-opt.texi: Change license to GFDLv1.3+, as suggested
16997 by karl@freefriends.org (Karl Berry).
16998 * doc/alloca.texi: Likewise.
16999 * doc/c-ctype.texi: Likewise.
17000 * doc/c-strcase.texi: Likewise.
17001 * doc/c-strcaseeq.texi: Likewise.
17002 * doc/c-strcasestr.texi: Likewise.
17003 * doc/c-strstr.texi: Likewise.
17004 * doc/c-strtod.texi: Likewise.
17005 * doc/c-strtold.texi: Likewise.
17006 * doc/ctime.texi: Likewise.
17007 * doc/error.texi: Likewise.
17008 * doc/fdl.texi: Likewise.
17009 * doc/gcd.texi: Likewise.
17010 * doc/getdate.texi: Likewise.
17011 * doc/gnulib-intro.texi: Likewise.
17012 * doc/gnulib-tool.texi: Likewise.
17013 * doc/gnulib.texi: Likewise.
17014 * doc/inet_ntoa.texi: Likewise.
17015 * doc/maintain.texi: Likewise.
17016 * doc/make-stds.texi: Likewise.
17017 * doc/quote.texi: Likewise.
17018 * doc/regexprops-generic.texi: Likewise.
17019 * doc/standards.texi: Likewise.
17020 * doc/verify.texi: Likewise.
17021 * doc/visibility.texi: Likewise.
17022 * doc/gnulib.texi (GNU Free Documentation License): Include
17023 fdl-1.3.texi instead of fdl.texi.
17025 2008-11-04 Simon Josefsson <simon@josefsson.org>
17027 * doc/fdl-1.3.texi: New file, from
17028 <http://www.gnu.org/licenses/fdl-1.3.texi>.
17029 * modules/fdl-1.3: Add.
17030 * MODULES.html.sh: Add fdl-1.3.
17032 2008-11-03 Bruno Haible <bruno@clisp.org>
17034 Make determination of absolute name of header file work with AIX xlc.
17035 * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Require
17036 AC_CANONICAL_HOST. On AIX, use "$CPP -C" rather than "$CPP" for
17038 * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
17039 Reported by Gary V. Vaughan <gary@thewrittenword.com>.
17041 2008-11-03 Simon Josefsson <simon@josefsson.org>
17043 * top/maint.mk (COVERAGE_CCOPTS): Use --coverage instead of
17044 -fprofile-arcs -ftest-coverage. Suggested by Ludovic Courtès
17047 2008-11-02 Bruno Haible <bruno@clisp.org>
17049 Mark 'strpbrk' obsolete.
17050 * modules/strpbrk (Status, Notice): New sections.
17051 * modules/strtok_r (Depends-on): Add strpbrk.
17053 2008-11-02 Bruno Haible <bruno@clisp.org>
17055 Mark 'strdup' obsolete.
17056 * modules/strdup (Status, Notice): New sections.
17057 * modules/findprog (Depends-on): Add strdup.
17058 * modules/getaddrinfo (Depends-on): Likewise.
17059 * modules/localename (Depends-on): Likewise.
17060 * modules/relocatable-lib (Depends-on): Likewise.
17061 * modules/relocatable-lib-lgpl (Depends-on): Likewise.
17062 * modules/relocatable-prog (Depends-on): Likewise.
17063 * modules/trim (Depends-on): Likewise.
17064 * modules/unictype/gen-ctype (Depends-on): Likewise.
17065 * modules/unilbrk/gen-lbrk (Depends-on): Likewise.
17067 2008-11-02 Bruno Haible <bruno@clisp.org>
17069 Mark 'strcspn' obsolete.
17070 * modules/strcspn (Status, Notice): New sections.
17072 2008-11-02 Bruno Haible <bruno@clisp.org>
17074 Mark 'rmdir' obsolete.
17075 * modules/rmdir (Status, Notice): New sections.
17076 * modules/clean-temp (Depends-on): Add rmdir.
17077 * modules/openat (Depends-on): Likewise.
17079 2008-11-02 Bruno Haible <bruno@clisp.org>
17081 Mark 'raise' obsolete.
17082 * modules/raise (Status, Notice): New sections.
17083 (Include): Specify <signal.h>.
17084 * modules/stdio (Depends-on): Add raise.
17085 * modules/write (Depends-on): Likewise.
17087 2008-11-02 Bruno Haible <bruno@clisp.org>
17089 Mark 'memset' obsolete.
17090 * modules/memset (Status, Notice): New sections.
17092 2008-11-02 Bruno Haible <bruno@clisp.org>
17094 Mark 'memmove' obsolete.
17095 * modules/memmove (Status, Notice): New sections.
17096 * modules/argp (Depends-on): Add memmove.
17097 * modules/argz (Depends-on): Likewise.
17098 * modules/canonicalize (Depends-on): Likewise.
17099 * modules/canonicalize-lgpl (Depends-on): Likewise.
17100 * modules/fts (Depends-on): Likewise.
17101 * modules/getcwd (Depends-on): Likewise.
17102 * modules/human (Depends-on): Likewise.
17103 * modules/regex (Depends-on): Likewise.
17104 * modules/striconveh (Depends-on): Likewise.
17105 * modules/trim (Depends-on): Likewise.
17106 * modules/unistr/u8-move (Depends-on): Likewise.
17107 * modules/unistr/u16-move (Depends-on): Likewise.
17108 * modules/unistr/u32-move (Depends-on): Likewise.
17110 2008-11-02 Bruno Haible <bruno@clisp.org>
17112 Mark 'memcpy' obsolete.
17113 * modules/memcpy (Status, Notice): New sections.
17115 2008-11-02 Bruno Haible <bruno@clisp.org>
17117 Mark 'memcmp' obsolete.
17118 * modules/memcmp (Status, Notice): New sections.
17119 * modules/argmatch (Depends-on): Add memchr.
17120 * modules/backupfile (Depends-on): Likewise.
17121 * modules/c-strcasestr (Depends-on): Likewise.
17122 * modules/crypto/des (Depends-on): Likewise.
17123 * modules/csharpcomp (Depends-on): Likewise.
17124 * modules/fnmatch (Depends-on): Likewise.
17125 * modules/git-merge-changelog (Depends-on): Likewise.
17126 * modules/isnand (Depends-on): Likewise.
17127 * modules/isnand-nolibm (Depends-on): Likewise.
17128 * modules/isnanf (Depends-on): Likewise.
17129 * modules/isnanf-nolibm (Depends-on): Likewise.
17130 * modules/isnanl (Depends-on): Likewise.
17131 * modules/isnanl-nolibm (Depends-on): Likewise.
17132 * modules/mbchar (Depends-on): Likewise.
17133 * modules/memcoll (Depends-on): Likewise.
17134 * modules/quotearg (Depends-on): Likewise.
17135 * modules/regex (Depends-on): Likewise.
17136 * modules/relocatable-prog (Depends-on): Likewise.
17137 * modules/same (Depends-on): Likewise.
17138 * modules/signbit (Depends-on): Likewise.
17139 * modules/strcasestr-simple (Depends-on): Likewise.
17140 * modules/unictype/gen-ctype (Depends-on): Likewise.
17141 * modules/unilbrk/gen-lbrk (Depends-on): Likewise.
17142 * modules/uniname/uniname (Depends-on): Likewise.
17143 * modules/unistr/u8-cmp (Depends-on): Likewise.
17145 2008-11-02 Bruno Haible <bruno@clisp.org>
17147 Mark 'memchr' obsolete.
17148 * modules/memchr (Status, Notice): New sections.
17149 * modules/argp (Depends-on): Add memchr.
17150 * modules/base64 (Depends-on): Likewise.
17151 * modules/c-strcasestr (Depends-on): Likewise.
17152 * modules/chdir-long (Depends-on): Likewise.
17153 * modules/fnmatch (Depends-on): Likewise.
17154 * modules/getsubopt (Depends-on): Likewise.
17155 * modules/git-merge-changelog (Depends-on): Likewise.
17156 * modules/glob (Depends-on): Likewise.
17157 * modules/strcasestr-simple (Depends-on): Likewise.
17158 * modules/strnlen (Depends-on): Likewise.
17160 2008-11-02 Bruno Haible <bruno@clisp.org>
17162 Mark 'atexit' obsolete.
17163 * modules/atexit (Status, Notice): New sections.
17164 * modules/chdir-long (Depends-on): Add atexit.
17165 * modules/wait-process (Depends-on): Likewise.
17167 2008-11-02 Bruno Haible <bruno@clisp.org>
17169 * gnulib-tool: New option --with-obsolete.
17170 (func_usage): Document it.
17171 (func_modules_transitive_closure): Drop obsolete dependencies if
17172 incobsolete is not true.
17173 (func_import): Read and save the incobsolete variable to the cache.
17175 2008-11-02 Bruno Haible <bruno@clisp.org>
17177 * modules/TEMPLATE-EXTENDED: New field 'Status'.
17178 * gnulib-tool: New option --extract-status.
17179 (func_usage): Document it.
17180 (sed_extract_prog): Recognize it.
17181 (func_get_status): New function.
17183 2008-10-30 Simon Josefsson <simon@josefsson.org>
17185 * modules/sockets (License): Change from LGPL to LGPLv2+.
17187 2008-10-28 Simon Josefsson <simon@josefsson.org>
17189 * top/maint.mk: Add coverage rules, inspired by scripts in gnupdf.
17191 2008-10-28 Simon Josefsson <simon@josefsson.org>
17193 * MODULES.html.sh (Support for systems lacking POSIX:2001):
17194 Mention times and sys_times.
17195 * modules/sys_times, modules/sys_times-tests: New modules.
17196 * modules/times, modules/times-tests: Likewise
17197 * m4/sys_times_h.m4: New file.
17198 * lib/sys_times.in.h: Likewise
17199 * lib/times.c: Likewise.
17200 * tests/test-sys_times.c: Likewise.
17201 * tests/test-times.c: Likewise.
17202 * doc/posix-headers/sys_times.texi: Update.
17203 * doc/posix-functions/times.texi: Update.
17205 2008-10-28 Jim Meyering <meyering@redhat.com>
17207 * modules/tempname (Depends-on): Add lstat.
17209 * modules/lstat (License): Relicense: LGPL -> LGPLv2+.
17211 2008-10-28 Simon Josefsson <simon@josefsson.org>
17213 * gnulib-tool (func_emit_tests_Makefile_am): Revert last commit.
17214 * modules/argp-tests (test_argp_LDADD): Set EXEEXT here instead,
17215 using idiom used elsewhere in gnulib.
17217 2008-10-27 Jim Meyering <meyering@redhat.com>
17219 * modules/gethostname (License): Relicense: LGPL -> LGPLv2+.
17221 2008-10-27 Simon Josefsson <simon@josefsson.org>
17223 * gnulib-tool (func_emit_tests_Makefile_am): Set EXEEXT in
17224 TESTS_ENVIRONMENT, for shell scripts that needs to call built
17226 * tests/test-argp-2.sh: Use $EXEEXT when needed.
17228 2008-10-27 Simon Josefsson <simon@josefsson.org>
17230 * lib/sys_stat.in.h (lstat): Fix declaration for mingw.
17232 2008-10-27 Bruno Haible <bruno@clisp.org>
17234 * tests/test-lstat.c: Include <stdio.h>.
17236 2008-10-27 Simon Josefsson <simon@josefsson.org>
17238 * modules/lstat-tests: New module.
17239 * tests/test-lstat.c: New file.
17241 2008-10-26 Jim Meyering <meyering@redhat.com>
17243 * lib/mkdir.c (rpl_mkdir) [_WIN32...]: Mark mode as an unused parameter.
17245 2008-10-26 Simon Josefsson <simon@josefsson.org>
17246 Bruno Haible <bruno@clisp.org>
17248 Fix a clash between the type DATADIR on Windows and the macro DATADIR.
17249 * modules/configmake (Include): Add a note that the include must come
17250 after all system headers.
17251 * lib/javaversion.c: Include configmake.h after all other includes.
17253 2008-10-26 Bruno Haible <bruno@clisp.org>
17255 * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Set default of
17256 HAVE_STRUCT_RANDOM_DATA to 1.
17257 (gl_STDLIB_H): Simplify.
17259 2008-10-26 Simon Josefsson <simon@josefsson.org>
17261 * m4/stdlib_h.m4: Check for struct random_data. Initialize and
17262 substitute HAVE_STRUCT_RANDOM_DATA.
17263 * lib/stdlib.in.h [!HAVE_STRUCT_RANDOM_DATA]: Provide struct
17265 * modules/stdlib (Makefile.am): Substitute
17266 HAVE_STRUCT_RANDOM_DATA.
17268 2008-10-26 Simon Josefsson <simon@josefsson.org>
17270 * doc/gnulib.texi (@copying): Use GFDLv1.2+.
17271 * doc/gnulib-intro.texi (Copyright): Likewise.
17273 2008-10-26 Simon Josefsson <simon@josefsson.org>
17275 * doc/gnulib.texi (Header files): C++ fixes, based on Bruno's
17278 2008-10-25 Ben Pfaff <blp@cs.stanford.edu>
17279 Bruno Haible <bruno@clisp.org>
17281 * lib/unistd.in.h: Include <winsock2.h>.
17282 (socket, connect,accept, bind, getpeername, getsockname, getsockopt,
17283 listen, recv, send, recvfrom, sendto, setsockopt, shutdown, select):
17284 Provide dummy declarations.
17285 (gethostname): Override.
17286 * lib/sys_socket.in.h (gethostname): Provide dummy declaration.
17287 * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Invoke
17288 gl_PREREQ_SYS_H_WINSOCK2.
17289 * modules/gethostname (Files): Add m4/sys_socket_h.m4.
17290 * doc/posix-functions/gethostname.texi: More details.
17292 2008-10-25 Bruno Haible <bruno@clisp.org>
17294 * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Require
17295 gl_UNISTD_H_DEFAULTS, gl_SYS_IOCTL_H_DEFAULTS only if they exist.
17296 * modules/sys_socket (Files): Remove m4/unistd_h.m4, m4/sys_ioctl_h.m4.
17298 * lib/sys_socket.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET); Move macro from
17300 * lib/unistd.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET); ... to here.
17301 * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Remove invocation of
17302 gl_UNISTD_H_DEFAULTS.
17304 2008-10-25 Eric Blake <ebb9@byu.net>
17306 signbit: avoid spurious compiler failure
17307 * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Move non-constant
17308 declarations inside function.
17310 2008-10-24 Simon Josefsson <simon@josefsson.org>
17311 Bruno Haible <bruno@clisp.org>
17313 * lib/stdlib.in.h (@GNULIB_RANDOM_R@): Include stdint.h.
17314 * modules/random_r (Depends-on): Add stdint.
17316 2008-10-24 Bruno Haible <bruno@clisp.org>
17318 * modules/intprops (License): Change to LGPLv2+, with approval by Paul
17320 * modules/strerror (License): Likewise.
17322 2008-10-24 Jim Meyering <meyering@redhat.com>
17324 sys_socket: fix typo that inhibited expansion of @GNULIB_SEND@
17325 * modules/sys_socket (Depends-on) [Depends-on]: Fix typo.
17327 2008-10-24 Eric Blake <ebb9@byu.net>
17329 getgroups: fix compilation when getgroups is available
17330 * lib/getgroups.c (includes): Include <unistd.h> for getgroups,
17331 but with <config.h> override of getgroups disabled.
17333 2008-10-24 Simon Josefsson <simon@josefsson.org>
17335 * doc/gnulib.texi (Header files): Add note about C++ problems.
17336 Explained by Bruno Haible <bruno@clisp.org>.
17338 2008-10-23 Bruno Haible <bruno@clisp.org>
17340 Define a dummy SA_NODEFER macro on Interix.
17341 * lib/signal.in.h (SA_NODEFER): Define fallback.
17342 Reported by Aleksey Cheusov <cheusov@tut.by> via
17343 Thomas Klausner <wiz@netbsd.org> and Eric Blake.
17345 2008-10-23 Bruno Haible <bruno@clisp.org>
17347 * modules/freadahead (License): Change to LGPLv2+.
17348 Suggested by Simon Josefsson.
17350 2008-10-23 Jim Meyering <meyering@redhat.com>
17352 random_r: new module
17353 * modules/random_r: New file.
17354 * m4/random_r.m4: New file.
17355 * lib/random_r.c: New file, from glibc.
17356 * modules/random_r-tests: New file.
17357 * tests/test-random_r.c: New file.
17358 * lib/stdlib.in.h (srandom_r, initstate_r, setstate_r, random_r):
17360 (RAND_MAX): Define.
17361 * m4/stdlib_h.m4: Define and AC_SUBST GNULIB_RANDOM_R and HAVE_RANDOM_R.
17362 * modules/stdlib: Substitute them, too.
17363 * MODULES.html.sh (Extra functions based on POSIX:2001) [Misc]: Add it.
17364 * doc/glibc-functions/initstate_r.texi: Mention the new module.
17365 * doc/glibc-functions/random_r.texi: Likewise.
17366 * doc/glibc-functions/setstate_r.texi: Likewise.
17367 * doc/glibc-functions/srandom_r.texi: Likewise.
17368 * config/srclist.txt: Mention it.
17370 2008-10-23 David Lutterkort <lutter@redhat.com>
17372 * modules/selinux-h: Search for LIB_SELINUX and mark it as a
17375 2008-10-23 Jim Meyering <meyering@redhat.com>
17377 selinux-h: mark parameters of stub functions as intentionally unused
17378 * lib/se-selinux.in.h: Mark parameters as _UNUSED_PARAMETER_.
17379 * lib/se-context.in.h: Likewise.
17381 2008-10-22 Simon Josefsson <simon@josefsson.org>
17383 * lib/sys_socket.in.h (FD_ISSET): Fix warnings under mingw.
17385 2008-10-22 Simon Josefsson <simon@josefsson.org>
17387 * m4/getgroups.m4: Avoid invoking test with wrong parameters.
17389 2008-10-22 Eric Blake <ebb9@byu.net>
17391 glthread/thread: avoid compiler warning
17392 * lib/glthread/thread.c (gl_thread_exit_func) [USE_WIN32_THREADS]:
17393 Add unreachable abort to silence compiler.
17395 2008-10-22 Eric Blake <ebb9@byu.net>
17397 netdb: also supply struct addrinfo for cygwin 1.5.x
17398 * m4/netdb_h.m4 (gl_HEADER_NETDB): Check for incomplete header on
17400 * lib/netdb.in.h [!HAVE_STRUCT_ADDRINFO]: Also supply contents for
17402 * doc/posix-headers/netdb.texi (netdb.h): Document this.
17404 2008-10-22 Bruno Haible <bruno@clisp.org>
17406 * users.txt: Update entry about pspp.
17408 2008-10-21 Bruno Haible <bruno@clisp.org>
17411 * lib/sys_socket.in.h (_gl_close_fd_maybe_socket): Remove declaration.
17412 * lib/close.c (_gl_close_fd_maybe_socket): Make static.
17415 * lib/ioctl.c (ioctl): Don't undefine.
17416 * lib/socket.c (socket): Don't undefine.
17418 Remove unused module indicator macros.
17419 * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Don't define
17420 GNULIB_$1 as a C macro.
17422 * doc/posix-functions/close.texi: Undo last change.
17423 * doc/posix-functions/ioctl.texi: Merge the two paragraphs about
17426 2008-10-21 Bruno Haible <bruno@clisp.org>
17428 Add gethostname() declaration to <unistd.h>.
17429 * lib/unistd.in.h (gethostname): New declaration.
17430 * lib/gethostname.c: Include <unistd.h>.
17431 * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Require
17432 gl_UNISTD_H_DEFAULTS. Set HAVE_GETHOSTNAME.
17433 * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETHOSTNAME
17434 and HAVE_GETHOSTNAME.
17435 * modules/gethostname (Depends-on): Add unistd.
17436 (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
17437 (Include): Specify <unistd.h>.
17438 * modules/unistd (Makefile.am): Substitute GNULIB_GETHOSTNAME and
17440 * tests/test-gethostname.c: Include <unistd.h> first.
17442 2008-10-21 Bruno Haible <bruno@clisp.org>
17444 * modules/poll-tests (Depends-on): Add sys_ioctl, ioctl.
17445 * modules/select-tests (Depends-on): Likewise.
17446 Reported by Simon Josefsson.
17448 2008-10-21 Simon Josefsson <simon@josefsson.org>
17450 * lib/close.c: Add _gl_close_fd_maybe_socket from winsock.c.
17451 * lib/accept.c: New file, based on winsock.c.
17452 * lib/bind.c: New file, based on winsock.c.
17453 * lib/connect.c: New file, based on winsock.c.
17454 * lib/getpeername.c: New file, based on winsock.c.
17455 * lib/getsockname.c: New file, based on winsock.c.
17456 * lib/getsockopt.c: New file, based on winsock.c.
17457 * lib/ioctl.c: New file, based on winsock.c.
17458 * lib/listen.c: New file, based on winsock.c.
17459 * lib/recv.c: New file, based on winsock.c.
17460 * lib/recvfrom.c: New file, based on winsock.c.
17461 * lib/send.c: New file, based on winsock.c.
17462 * lib/sendto.c: New file, based on winsock.c.
17463 * lib/setsockopt.c: New file, based on winsock.c.
17464 * lib/shutdown.c: New file, based on winsock.c.
17465 * lib/socket.c: New file, based on winsock.c.
17466 * lib/w32sock.h: New file, based on winsock.c.
17467 * lib/winsock.c: Remove file.
17468 * modules/accept: Likewise.
17469 * modules/bind: Likewise.
17470 * modules/connect: Likewise.
17471 * modules/getpeername: Likewise.
17472 * modules/getsockname: Likewise.
17473 * modules/getsockopt: Likewise.
17474 * modules/ioctl: Likewise.
17475 * modules/listen: Likewise.
17476 * modules/recv: Likewise.
17477 * modules/recvfrom: Likewise.
17478 * modules/send: Likewise.
17479 * modules/sendto: Likewise.
17480 * modules/setsockopt: Likewise.
17481 * modules/shutdown: Likewise.
17482 * modules/socket: Use socket.c instead of winsock.c.
17483 * modules/sys_socket: Remove (unneeded?) dependency on winsock.c.
17484 * doc/posix-functions/accept.texi: Doc fix.
17485 * doc/posix-functions/bind.texi: Doc fix.
17486 * doc/posix-functions/close.texi: Doc fix.
17487 * doc/posix-functions/connect.texi: Doc fix.
17488 * doc/posix-functions/getpeername.texi: Doc fix.
17489 * doc/posix-functions/getsockname.texi: Doc fix.
17490 * doc/posix-functions/getsockopt.texi: Doc fix.
17491 * doc/posix-functions/ioctl.texi: Doc fix.
17492 * doc/posix-functions/listen.texi: Doc fix.
17493 * doc/posix-functions/recv.texi: Doc fix.
17494 * doc/posix-functions/recvfrom.texi: Doc fix.
17495 * doc/posix-functions/send.texi: Doc fix.
17496 * doc/posix-functions/sendto.texi: Doc fix.
17497 * doc/posix-functions/setsockopt.texi: Doc fix.
17498 * doc/posix-functions/shutdown.texi: Doc fix.
17499 * doc/posix-functions/socket.texi: Doc fix.
17501 2008-10-20 Bruno Haible <bruno@clisp.org>
17503 Take into account the role of SIGABRT_COMPAT on Windows 2008.
17504 * lib/sigprocmask.c (SIGABRT_COMPAT, SIGABRT_COMPAT_MASK): New macros.
17505 (sigismember, sigaddset, sigdelset, sigfillset, rpl_signal): Handle it
17506 as an alias for SIGABRT.
17507 * lib/sigaction.c (SIGABRT_COMPAT): New macro.
17508 (sigaction): Map it to SIGABRT.
17509 Reported by Ramiro Polla <ramiro.polla@gmail.com> via Eric Blake.
17511 2008-10-20 Bruno Haible <bruno@clisp.org>
17513 * lib/fts.c: Don't include lstat.h.
17514 * lib/openat.c: Include <sys/stat.h> instead of lstat.h.
17516 Move the lstat() declaration to <sys/stat.h>.
17517 * lib/lstat.h: Remove file.
17518 * lib/sys_stat.in.h: Add special invocation convention.
17519 (lstat): New declaration.
17520 * lib/lstat.c (orig_lstat): New function.
17521 (rpl_lstat): Use orig_lstat instead of lstat.
17522 * m4/lstat.m4 (gl_FUNC_LSTAT): Require gl_SYS_STAT_H_DEFAULTS and
17523 AC_C_INLINE. Set REPLACE_LSTAT.
17524 * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize GNULIB_LSTAT
17526 * modules/lstat (Files): Remove lib/lstat.h.
17527 (configure.ac): Invoke gl_SYS_STAT_MODULE_INDICATOR.
17528 (Include): Specify <sys/stat.h> instead of lstat.h.
17529 * modules/sys_stat (Makefile.am): Substitute GNULIB_LSTAT and
17531 * NEWS: Mention the change.
17533 2008-10-20 Bruno Haible <bruno@clisp.org>
17535 * modules/posix_spawn-tests: New file.
17536 * tests/test-posix_spawn3.c: New file.
17538 2008-10-20 Bruno Haible <bruno@clisp.org>
17540 * modules/posix_spawnp-tests (Depends-on): Add sys_wait.
17541 * tests/test-posix_spawn1.c (WTERMSIG, WCOREDUMP, WEXITSTATUS,
17542 WIFSIGNALED, WIFEXITED, WIFSTOPPED): Remove fallback definitions.
17543 * tests/test-posix_spawn2.c (WTERMSIG, WCOREDUMP, WEXITSTATUS,
17544 WIFSIGNALED, WIFEXITED, WIFSTOPPED): Likewise.
17546 2008-10-20 Bruno Haible <bruno@clisp.org>
17548 * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Test against another bug
17549 of posix_spawn on AIX 5.3.
17551 2008-10-20 Bruno Haible <bruno@clisp.org>
17553 * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Make the check on MacOS X.
17555 2008-10-20 Bruno Haible <bruno@clisp.org>
17557 * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Use AC_LANG_SOURCE instead
17558 of AC_LANG_PROGRAM.
17560 2008-10-20 Simon Josefsson <simon@josefsson.org>
17562 * lib/netdb.in.h: Don't define GNU specific constants until they
17563 are supported or needed. Reported by Bruno Haible
17566 2008-10-20 Simon Josefsson <simon@josefsson.org>
17568 * lib/canon-host.c: Include netdb.h instead of getaddrinfo.h.
17570 2008-10-20 Simon Josefsson <simon@josefsson.org>
17572 * lib/getaddrinfo.h: Remove file.
17573 * modules/getaddrinfo: Reflect move from getaddrinfo.h to netdb.h.
17574 * m4/getaddrinfo.m4: Call gl_HEADER_NETDB. Don't check for netdb.h.
17575 * lib/netdb.in.h: Add declarations from getaddrinfo.h.
17576 * m4/netdb_h.m4: Initialize GNULIB_GETADDRINFO to 0.
17577 * modules/netdb: Substitute GNULIB_GETADDRINFO.
17578 * lib/getaddrinfo.c: Include netdb.h instead of getaddrinfo.h.
17579 * tests/test-getaddrinfo.c: Likewise.
17580 * lib/gai_strerror.c: Likewise. Also drop HAVE_NETDB_H check.
17581 * NEWS: Mention change.
17583 2008-10-19 Bruno Haible <bruno@clisp.org>
17585 * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Remove unneeded code.
17587 2008-10-19 Bruno Haible <bruno@clisp.org>
17589 * lib/wait-process.c: Include simply <sys/wait.h>.
17590 (waitpid, WTERMSIG, WCOREDUMP, WEXITSTATUS, WIFSIGNALED, WIFEXITED,
17591 WIFSTOPPED): Remove fallback definitions.
17592 * modules/wait-process (Depends-on): Add sys_wait.
17594 New module 'sys_wait'.
17595 * modules/sys_wait: New file.
17596 * lib/sys_wait.in.h: New file, partially copied from
17597 lib/wait-process.c.
17598 * m4/sys_wait_h.m4: New file.
17599 * doc/posix-headers/sys_wait.texi: Mention the new module.
17601 2008-10-19 Bruno Haible <bruno@clisp.org>
17603 * m4/wait-process.m4 (gl_WAIT_PROCESS): Remove test for unistd.h.
17605 2008-10-19 Bruno Haible <bruno@clisp.org>
17607 Assume that waitpid() fills an 'int' status, not a 'union wait'.
17608 * lib/wait-process.c (WAIT_T): Remove type.
17609 (WTERMSIG, WCOREDUMP, WEXITSTATUS): Define fallbacks using bit masks.
17610 (wait_subprocess): Update.
17612 2008-10-19 Bruno Haible <bruno@clisp.org>
17614 New module 'atoll'.
17615 * modules/atoll: New file.
17616 * lib/stdlib.in.h (atoll): New declaration.
17617 * lib/atoll.c: New file, from glibc with modifications.
17618 * m4/atoll.m4: New file.
17619 * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_ATOLL,
17621 * modules/stdlib (Makefile.am): Substitute GNULIB_ATOLL, HAVE_ATOLL.
17622 * doc/posix-functions/atoll.texi: Mention the new module.
17624 2008-10-19 Bruno Haible <bruno@clisp.org>
17626 Add strtoull() declaration to <stdlib.h>.
17627 * lib/stdlib.in.h (strtoull): New declaration.
17628 * m4/strtoull.m4 (gl_FUNC_STRTOLL): Require gl_STDLIB_H_DEFAULTS.
17630 * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_STRTOULL,
17632 * modules/strtoull (Depends-on): Add stdlib.
17633 (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
17634 * modules/stdlib (Makefile.am): Substitute GNULIB_STRTOULL,
17637 2008-10-19 Bruno Haible <bruno@clisp.org>
17639 Add strtoll() declaration to <stdlib.h>.
17640 * lib/stdlib.in.h (strtoll): New declaration.
17641 * m4/strtoll.m4 (gl_FUNC_STRTOLL): Require gl_STDLIB_H_DEFAULTS.
17643 * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_STRTOLL,
17645 * modules/strtoll (Depends-on): Add stdlib.
17646 (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
17647 * modules/stdlib (Makefile.am): Substitute GNULIB_STRTOLL, HAVE_STRTOLL.
17649 2008-10-19 Bruno Haible <bruno@clisp.org>
17651 * modules/bcopy (Depends-on): Add strings.
17652 (Include): Specify <strings.h>.
17654 2008-10-19 Bruno Haible <bruno@clisp.org>
17656 * doc/posix-functions/atexit.texi: Update doc regarding mingw.
17658 2008-10-19 Bruno Haible <bruno@clisp.org>
17660 * lib/openat-die.c (openat_save_fail, openat_restore_fail): Rename
17661 the parameter from 'errno' to 'errnum'. Fixes a compilation error on
17664 2008-10-19 Bruno Haible <bruno@clisp.org>
17666 * lib/atanl.c: Don't include isnanl.h.
17667 * lib/cosl.c: Likewise.
17668 * lib/ldexpl.c: Likewise.
17669 * lib/logl.c: Likewise.
17670 * lib/sinl.c: Likewise.
17671 * lib/sqrtl.c: Likewise.
17672 * lib/tanl.c: Likewise.
17674 Move the isnanf(), isnand(), isnanl() declarations to <math.h>.
17675 * lib/isnanf.h: Remove file.
17676 * lib/isnand.h: Remove file.
17677 * lib/isnanl.h: Remove file.
17678 * lib/math.in.h: Include the contents of lib/isnanf.h, lib/isnand.h,
17679 lib/isnanl.h. Use HAVE_ISNANF, HAVE_ISNAND, HAVE_ISNANL as substituted
17681 * m4/isnanf.m4 (gl_FUNC_ISNANF): Require gl_MATH_H_DEFAULTS. Set
17682 HAVE_ISNANF, don't define it as a C macro.
17683 * m4/isnand.m4 (gl_FUNC_ISNAND): Require gl_MATH_H_DEFAULTS. Set
17684 HAVE_ISNAND, don't define it as a C macro.
17685 * m4/isnanl.m4 (gl_FUNC_ISNANL): Require gl_MATH_H_DEFAULTS. Set
17686 HAVE_ISNANL, don't define it as a C macro.
17687 * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_ISNAN[FDL] and
17689 * modules/isnanf (Files): Remove lib/isnanf.h.
17690 (Depends-on): Add math.
17691 (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
17692 (Include): Specify <math.h> instead of isnanf.h.
17693 * modules/isnand (Files): Remove lib/isnand.h.
17694 (Depends-on): Add math.
17695 (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
17696 (Include): Specify <math.h> instead of isnand.h.
17697 * modules/isnanl (Files): Remove lib/isnanl.h.
17698 (Depends-on): Add math.
17699 (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
17700 (Include): Specify <math.h> instead of isnanl.h.
17701 * modules/math (Makefile.am): Substitute GNULIB_ISNAN[FDL] and
17703 * tests/test-isnanf.c: Include <math.h> instead of isnanf.h.
17704 * tests/test-isnand.c: Include <math.h> instead of isnand.h.
17705 * tests/test-isnanl.c: Include <math.h> instead of isnanl.h.
17706 * NEWS: Mention the change.
17708 2008-10-18 Bruno Haible <bruno@clisp.org>
17710 Add getusershell(), setusershell(), endusershell() declarations to
17712 * lib/unistd.in.h (getusershell, setusershell, endusershell): New
17714 * lib/getusershell.c: Include unistd.h.
17715 * m4/getusershell.m4 (gl_FUNC_GETUSERSHELL): Require
17716 gl_UNISTD_H_DEFAULTS and AC_USE_SYSTEM_EXTENSIONS. Set
17718 * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETUSERSHELL
17719 and HAVE_GETUSERSHELL.
17720 * modules/getusershell (Depends-on): Add unistd, extensions.
17721 (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
17722 (Include): Specify <unistd.h>.
17723 * modules/unistd (Makefile.am): Substitute GNULIB_GETUSERSHELL and
17726 2008-10-18 Bruno Haible <bruno@clisp.org>
17728 Add a getloadavg() declaration to <stdlib.h>.
17729 * lib/stdlib.in.h; Include <sys/loadavg.h> when needed for the
17730 getloadavg declaration.
17731 (getloadavg): New declaration.
17732 * lib/getloadavg.c: Include <stdlib.h> first.
17733 * m4/getloadavg.m4 (gl_GETLOADAVG): Require gl_STDLIB_H_DEFAULTS and
17734 AC_USE_SYSTEM_EXTENSIONS. Test whether sys/loadavg.h exists. Set
17735 HAVE_SYS_LOADAVG_H and HAVE_DECL_GETLOADAVG.
17736 * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_GETLOADAVG,
17737 HAVE_SYS_LOADAVG_H, HAVE_DECL_GETLOADAVG.
17738 * modules/getloadavg (Depends-on): Add stdlib, extensions.
17739 (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
17740 (Include): Specify <stdlib.h>.
17741 * modules/stdlib (Makefile.am): Substitute GNULIB_GETLOADAVG,
17742 HAVE_SYS_LOADAVG_H, HAVE_DECL_GETLOADAVG.
17744 2008-10-18 Bruno Haible <bruno@clisp.org>
17746 * lib/dirchownmod.c: Don't include lchmod.h.
17748 Move the lchmod() declaration to <sys/stat.h>.
17749 * lib/lchmod.h: Remove file.
17750 * lib/sys_stat.in.h: Add placeholder for GL_LINK_WARNING.
17751 (lchmod): New declaration, moved here from lib/lchown.h.
17752 * m4/lchmod.m4 (gl_FUNC_LCHMOD): Require gl_SYS_STAT_H_DEFAULTS and
17753 AC_USE_SYSTEM_EXTENSIONS. Set HAVE_LCHMOD.
17754 * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize GNULIB_LCHMOD
17756 * modules/lchmod (Files): Remove lib/lchmod.h.
17757 (Depends-on): Add sys_stat, extensions.
17758 (configure.ac): Invoke gl_SYS_STAT_MODULE_INDICATOR.
17759 (Include): Specify <sys/stat.h> instead of lchmod.h.
17760 * modules/sys_stat (Depends-on): Add link-warning.
17761 (Makefile.am): Substitute GNULIB_LCHMOD, HAVE_LCHMOD, and the
17762 definition of GL_LINK_WARNING.
17763 * NEWS: Mention the change.
17765 2008-10-18 Bruno Haible <bruno@clisp.org>
17767 * lib/fchdir.c: Don't include dirfd.h.
17768 * lib/fts.c: Likewise.
17769 * lib/getcwd.c: Likewise.
17770 * lib/glob.c: Likewise.
17772 Move the dirfd() declaration to <dirent.h>.
17773 * lib/dirfd.h: Remove file.
17774 * lib/dirent.in.h: Add placeholder for GL_LINK_WARNING.
17775 (dirfd): New declaration.
17776 * lib/dirfd.c: Include <dirent.h> instead of dirfd.h.
17777 * m4/dirfd.m4 (gl_FUNC_DIRFD): Require gl_DIRENT_H_DEFAULTS and
17778 AC_USE_SYSTEM_EXTENSIONS. Invoke gl_REPLACE_DIRENT_H. Set
17780 * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_DIRFD and
17782 * modules/dirfd (Files): Remove lib/dirfd.h.
17783 (Depends-on): Add dirent, extensions.
17784 (configure.ac): Invoke gl_DIRENT_MODULE_INDICATOR.
17785 (Include): Specify <dirent.h> instead of dirfd.h.
17786 * modules/dirent (Depends-on): Add link-warning.
17787 (Makefile.am): Substitute GNULIB_DIRFD, HAVE_DECL_DIRFD, and
17788 definition of GL_LINK_WARNING.
17789 * NEWS: Mention the change.
17791 2008-10-18 Bruno Haible <bruno@clisp.org>
17793 Move the euidaccess() declaration to <unistd.h>.
17794 * lib/euidaccess.h: Remove file.
17795 * lib/unistd.in.h (euidaccess): New declaration.
17796 * lib/euidaccess.c: Don't include euidaccess.h.
17797 * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Require gl_UNISTD_H_DEFAULTS.
17798 Don't check whether euidaccess is declared. Set HAVE_EUIDACCESS.
17799 * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_EUIDACCESS
17800 and HAVE_EUIDACCESS.
17801 * modules/euidaccess (Files): Remove lib/euidaccess.h.
17802 (Depends-on): Add unistd.
17803 (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
17804 (Include): Specify <unistd.h> instead of euidaccess.h.
17805 * modules/unistd (Makefile.am): Substitute GNULIB_EUIDACCESS and
17807 * NEWS: Mention the change.
17809 2008-10-18 Bruno Haible <bruno@clisp.org>
17811 * lib/xgetdomainname.c: Include <unistd.h> instead of getdomainname.h.
17813 Move the getdomainname() declaration to <unistd.h>.
17814 * lib/getdomainname.h: Remove file.
17815 * lib/unistd.in.h (getdomainname): New declaration.
17816 * lib/getdomainname.c: Include <unistd.h> instead of getdomainname.h.
17817 * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Require
17818 gl_UNISTD_H_DEFAULTS and AC_USE_SYSTEM_EXTENSIONS. Set
17819 HAVE_GETDOMAINNAME.
17820 * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
17821 GNULIB_GETDOMAINNAME and HAVE_GETDOMAINNAME.
17822 * modules/getdomainname (Files): Remove lib/getdomainname.h.
17823 (Depends-on): Add unistd, extensions.
17824 (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
17825 (Includes): Specify <unistd.h> instead of getdomainname.h.
17826 * modules/unistd (Makefile.am): Substitute GNULIB_GETDOMAINNAME and
17827 HAVE_GETDOMAINNAME.
17828 * NEWS: Mention the change.
17830 2008-10-18 Bruno Haible <bruno@clisp.org>
17832 * modules/dirent: New file.
17833 * m4/dirent_h.m4: New file.
17834 * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_DIRENT_H_DEFAULTS.
17835 Invoke gl_REPLACE_DIRENT_H. Don't assign DIRENT_H directly.
17836 * modules/fchdir (Files): Remove lib/dirent.in.h.
17837 (Depends-on): Add dirent.
17838 (Makefile.am): Move rules to modules/dirent.
17839 * doc/posix-headers/dirent.texi: Mention the new module.
17841 2008-10-18 Bruno Haible <bruno@clisp.org>
17843 Avoid -Wunused-parameter warnings in public gnulib header files.
17844 * m4/gnulib-common.m4 (gl_COMMON_BODY): Define _UNUSED_PARAMETER_ as a
17846 * lib/unistr.h (u32_mbtouc_unsafe, u32_mbtouc): Use it.
17848 2008-10-18 Bruno Haible <bruno@clisp.org>
17850 * doc/glibc-functions/dirfd.texi: Mention the module 'dirfd'.
17851 * doc/glibc-functions/error.texi: Mention the module 'error'.
17852 * doc/glibc-functions/euidaccess.texi: Mention the module 'euidaccess'.
17853 * doc/glibc-functions/getdomainname.texi: Mention the module
17855 * doc/glibc-functions/getloadavg.texi: Mention the module 'getloadavg'.
17856 * doc/glibc-functions/getpagesize.texi: Mention the module
17858 * doc/glibc-functions/getusershell.texi: Mention the module
17860 * doc/glibc-functions/isnanl.texi: Mention the module 'isnanl'.
17861 * doc/glibc-functions/lchmod.texi: Mention the module 'lchmod'.
17862 * doc/glibc-functions/mempcpy.texi: Mention the module 'mempcpy'.
17863 * doc/glibc-functions/memrchr.texi: Mention the module 'memrchr'.
17864 * doc/glibc-functions/mkdtemp.texi: Mention the module 'mkdtemp'.
17865 * doc/glibc-functions/rpmatch.texi: Mention the module 'rpmatch'.
17866 * doc/glibc-functions/stpcpy.texi: Mention the module 'stpcpy'.
17867 * doc/glibc-functions/stpncpy.texi: Mention the module 'stpncpy'.
17868 * doc/glibc-functions/strchrnul.texi: Mention the module 'strchrnul'.
17869 * doc/glibc-functions/strndup.texi: Mention the module 'strndup'.
17870 * doc/glibc-functions/strnlen.texi: Mention the module 'strnlen'.
17871 * doc/glibc-functions/strsep.texi: Mention the module 'strsep'.
17872 * doc/glibc-functions/timegm.texi: Mention the module 'timegm'.
17873 * doc/glibc-functions/vasprintf.texi: Mention the module 'vasprintf'.
17875 2008-10-17 Bruno Haible <bruno@clisp.org>
17877 * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): On platforms other than
17878 HP-UX and IRIX, use -0.0L.
17879 * tests/test-ceill.c (minus_zero): Likewise.
17880 * tests/test-floorl.c (minus_zero): Likewise.
17881 * tests/test-frexpl.c (minus_zero): Likewise.
17882 * tests/test-isnan.c (minus_zerol): Likewise.
17883 * tests/test-isnanl.h (minus_zero): Likewise.
17884 * tests/test-ldexpl.c (minus_zero): Likewise.
17885 * tests/test-roundl.c (minus_zero): Likewise.
17886 * tests/test-signbit.c (minus_zerol): Likewise.
17887 * tests/test-snprintf-posix.h (minus_zerol): Likewise.
17888 * tests/test-sprintf-posix.h (minus_zerol): Likewise.
17889 * tests/test-truncl.c (minus_zero): Likewise.
17890 * tests/test-vasnprintf-posix.c (minus_zerol): Likewise.
17891 * tests/test-vasprintf-posix.c (minus_zerol): Likewise.
17892 Reported by Markus Armbruster <armbru@redhat.com> via Jim Meyering
17893 and by Nelson H. F. Beebe <beebe@math.utah.edu> via Eric Blake.
17895 2008-10-17 Bruno Haible <bruno@clisp.org>
17897 Avoid gcc warnings because of #pragma GCC system_header on older gcc.
17898 * lib/arpa_inet.in.h: Encloses reference to PRAGMA_SYSTEM_HEADER so
17899 that it gets activated only for gcc >= 3.0.
17900 * lib/dirent.in.h: Likewise.
17901 * lib/errno.in.h: Likewise.
17902 * lib/fcntl.in.h: Likewise.
17903 * lib/float.in.h: Likewise.
17904 * lib/iconv.in.h: Likewise.
17905 * lib/inttypes.in.h: Likewise.
17906 * lib/locale.in.h: Likewise.
17907 * lib/math.in.h: Likewise.
17908 * lib/netdb.in.h: Likewise.
17909 * lib/netinet_in.in.h: Likewise.
17910 * lib/search.in.h: Likewise.
17911 * lib/signal.in.h: Likewise.
17912 * lib/spawn.in.h: Likewise.
17913 * lib/stdarg.in.h: Likewise.
17914 * lib/stdint.in.h: Likewise.
17915 * lib/stdio.in.h: Likewise.
17916 * lib/stdlib.in.h: Likewise.
17917 * lib/string.in.h: Likewise.
17918 * lib/strings.in.h: Likewise.
17919 * lib/sys_file.in.h: Likewise.
17920 * lib/sys_ioctl.in.h: Likewise.
17921 * lib/sys_select.in.h: Likewise.
17922 * lib/sys_socket.in.h: Likewise.
17923 * lib/sys_stat.in.h: Likewise.
17924 * lib/sys_time.in.h: Likewise.
17925 * lib/sysexits.in.h: Likewise.
17926 * lib/time.in.h: Likewise.
17927 * lib/unistd.in.h: Likewise.
17928 * lib/wchar.in.h: Likewise.
17929 * lib/wctype.in.h: Likewise.
17930 Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
17932 2008-10-17 Jim Meyering <meyering@redhat.com>
17934 ignore-value: don't depend on inline module
17935 * modules/ignore-value (Depends-on): Remove 'inline'.
17936 (configure.ac): Instead, add AC_REQUIRE([AC_C_INLINE]) here.
17937 Suggestion from Bruno Haible.
17939 2008-10-17 Bruno Haible <bruno@clisp.org>
17941 New implementation of condition variables for Win32.
17942 * lib/glthread/cond.h (struct gl_waitqueue_link): New type.
17943 (gl_linked_waitqueue_t): New type.
17944 (gl_cond_t): Use it.
17945 * lib/glthread/cond.c (struct gl_waitqueue_element): New type.
17946 (gl_waitqueue_init, gl_waitqueue_add, gl_waitqueue_remove,
17947 gl_waitqueue_notify_first, gl_waitqueue_notify_all): New functions.
17948 (glthread_cond_init_func, glthread_cond_wait_func,
17949 glthread_cond_timedwait_func, glthread_cond_signal_func,
17950 glthread_cond_broadcast_func, glthread_cond_destroy_func):
17951 Reimplemented on the basis of gl_linked_waitqueue_t.
17952 * lib/glthread/lock.h (gl_carray_waitqueue_t): Renamed from
17954 (gl_rwlock_t): Update.
17955 * lib/glthread/lock.c (gl_waitqueue_t): Alias to gl_carray_waitqueue_t.
17957 2008-10-17 Simon Josefsson <simon@josefsson.org>
17959 * modules/recvfrom (Depends-on): Add dependency on getpeername.
17960 Reported by Yoann Vandoorselaere <yoann@prelude-ids.org>.
17962 2008-10-17 Jim Meyering <meyering@redhat.com>
17964 ignore-value: new module
17965 * modules/ignore-value: New file.
17966 * lib/ignore-value.h: New file.
17967 * MODULES.html.sh (Compiler warning management): New section,
17968 just for this module. More to come.
17970 2008-10-16 Paul Eggert <eggert@cs.ucla.edu>
17972 open-safer.c: avoid 'signed and unsigned in conditional...' warning
17973 * lib/open-safer.c (open_safer): Use an "if/else" statement in place
17974 of the ternary operator. Reported by Reuben Thomas <rrt@sc3d.org>.
17976 2008-10-16 Jim Meyering <meyering@redhat.com>
17978 openat-die.c: avoid 'no previous prototype' warning
17979 * lib/openat-die.c: Include "openat.h".
17980 Reported by Reuben Thomas <rrt@sc3d.org>.
17982 2008-10-16 Simon Josefsson <simon@josefsson.org>
17984 * m4/netdb_h.m4: Assume that if netdb.h exists, it works.
17985 * lib/netdb.in.h: Fix typo.
17986 Reported by Bruno Haible <bruno@clisp.org>
17988 * lib/netdb.in.h: Include sys/socket.h for platforms without
17989 netdb.h, to get structures like hostent on MinGW.
17990 * modules/netdb (Depends-on): Add sys_socket.
17992 2008-10-15 Simon Josefsson <simon@josefsson.org>
17994 * modules/netdb, modules/netdb-tests: New file.
17995 * m4/netdb_h.m4: New file.
17996 * lib/netdb.in.h: Add, currently just an empty file pending
17998 * tests/test-netdb.c: New file.
17999 * doc/posix-headers/netdb.texi: Mention that we replace it if
18001 * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
18004 2008-10-15 Simon Josefsson <simon@josefsson.org>
18006 * doc/gnulib.texi (Getaddrinfo and WINVER): Sync documentation
18009 2008-10-13 Bruno Haible <bruno@clisp.org>
18011 * lib/glthread/cond.c (glthread_cond_wait_func,
18012 glthread_cond_timedwait_func): Add a comment.
18014 2008-10-13 Yoann Vandoorselaere <yoann@prelude-ids.org>
18016 * tests/test-poll.c: Include <sys/ioctl.h>, for ioctl().
18017 * tests/test-select.c: Likewise,
18019 2008-10-13 Bruno Haible <bruno@clisp.org>
18021 * lib/glthread/cond.c (glthread_cond_wait_func,
18022 glthread_cond_timedwait_func): Fix variable name.
18023 Reported by Yoann Vandoorselaere <yoann@prelude-ids.org>.
18025 2008-10-13 Paolo Bonzini <bonzini@gnu.org>
18027 fix getaddrinfo emulation for systems with struct sockaddr.sa_len
18028 * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Detect
18029 struct sockaddr.sa_len.
18030 * lib/getaddrinfo.c (getaddrinfo): Set it if appropriate.
18032 2008-10-13 Simon Josefsson <simon@josefsson.org>
18034 * build-aux/pmccabe2html: Add css and css_url parameters.
18036 2008-10-12 Bruno Haible <bruno@clisp.org>
18038 * tests/test-sameacls.c (main) [AIX]: Clear type argument before
18040 Reported by Rainer Tammer <tammer@tammer.net>.
18042 2008-10-12 Bruno Haible <bruno@clisp.org>
18044 Use msvcrt aware primitives for creation/termination of Win32 threads.
18045 * lib/glthread/thread.c: Include <process.h>.
18046 (glthread_create_func): Use _beginthreadex instead of CreateThread.
18047 (wrapper_func): Update signature.
18048 (gl_thread_exit_func): Use _endthreadex instead of EndThread.
18050 2008-10-11 Yoann Vandoorselaere <yoann@prelude-ids.org>
18051 Bruno Haible <bruno@clisp.org>
18053 Provide a Win32 implementation of the 'cond' module.
18054 * lib/glthread/cond.h [USE_WIN32]: New implementation.
18055 * lib/glthread/cond.c (glthread_cond_init_func,
18056 glthread_cond_wait_func, glthread_cond_timedwait_func,
18057 glthread_cond_signal_func, glthread_cond_broadcast_func,
18058 glthread_cond_destroy_func) [USE_WIN32]: New functions.
18059 * modules/cond (Dependencies): Add gettimeofday.
18061 2008-10-11 Bruno Haible <bruno@clisp.org>
18063 Make sleep work on older versions of mingw.
18064 * m4/sleep.m4 (gl_FUNC_SLEEP): Test whether 'sleep' is declared, not
18065 only whether it exists.
18066 * doc/posix-functions/sleep.texi: Mention the problem with older
18069 2008-10-11 Bruno Haible <bruno@clisp.org>
18071 New module 'shutdown'.
18072 * modules/shutdown: New file.
18073 * lib/sys_socket.in.h (shutdown): New declaration.
18074 * lib/winsock.c (shutdown): New function.
18075 * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Initialize
18077 * modules/sys_socket (Makefile.am): Substitute GNULIB_SHUTDOWN.
18078 * doc/posix-functions/shutdown.texi: Document the new module.
18080 2008-10-11 Jim Meyering <meyering@redhat.com>
18082 * lib/fclose.c: Fix typo in comment: s/close/fclose/.
18084 2008-10-11 Bruno Haible <bruno@clisp.org>
18086 New module 'fclose'.
18087 * modules/fclose: New file.
18088 * lib/stdio.in.h (fclose): New declaration.
18089 * lib/fclose.c: New file.
18090 * m4/fclose.m4: New file.
18091 * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FCLOSE,
18093 * m4/close.m4 (gl_REPLACE_CLOSE): Invoke gl_REPLACE_FCLOSE.
18094 * modules/stdio (Makefile.am): Substitute GNULIB_FCLOSE,
18096 * modules/close (Depends-on): fclose.
18097 * doc/posix-functions/fclose.texi: Mention the problem on Windows.
18099 2008-10-11 Bruno Haible <bruno@clisp.org>
18101 * lib/winsock.c (_gl_close_fd_maybe_socket): If closesocket fails,
18102 set errno and don't call _close.
18104 2008-10-10 Bruno Haible <bruno@clisp.org>
18106 * lib/copy-acl.c (qcopy_acl) [CYGWIN]: Call chmod before setting the
18107 ACL, not afterwards. Fixes test failure on Cygwin.
18109 2008-10-09 Ben Pfaff <blp@gnu.org>
18111 * build-aux/announce-gen: Fix gnulib version related part of usage
18112 message. Die with a useful error message if no tarballs are
18115 2008-10-10 Jim Meyering <meyering@redhat.com>
18117 bootstrap: use git's --depth=N option only if it's supported
18118 * build-aux/bootstrap: Work with git-1.4.4.4, which does not
18119 recognize the --depth option. Reported by Pádraig Brady.
18121 2008-10-09 Bruno Haible <bruno@clisp.org>
18123 New module 'ioctl'.
18124 * modules/ioctl: New file.
18125 * lib/sys_socket.in.h (ioctl): Remove declaration.
18126 * lib/winsock.c: Include <sys/ioctl.h>.
18127 (rpl_ioctl): Define only of the gnulib module 'ioctl' is present.
18128 * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Require
18129 gl_SYS_IOCTL_H_DEFAULTS. Set also SYS_IOCTL_H_HAVE_WINSOCK2_H.
18130 * modules/sys_socket (Files): Add m4/sys_ioctl_h.m4.
18131 * doc/posix-functions/ioctl.texi: Mention the new module.
18133 2008-10-09 Bruno Haible <bruno@clisp.org>
18135 New module 'sys_ioctl'.
18136 * lib/sys_ioctl.in.h: New file.
18137 * m4/sys_ioctl_h.m4: New file.
18138 * modules/sys_ioctl: New file.
18139 * doc/glibc-headers/sys_ioctl.texi: Mention the new module.
18141 2008-10-09 Bruno Haible <bruno@clisp.org>
18143 * lib/sys_socket.in.h (ioctl): Make signature POSIX compliant.
18144 * lib/winsock.c: Include <stdarg.h>.
18145 (rpl_ioctl): Change to second argument 'int' and then varargs.
18147 2008-10-09 Bruno Haible <bruno@clisp.org>
18149 * m4/close.m4 (gl_FUNC_CLOSE): Arrange to replace the close() function
18150 when the sys_socket module is present and the system has <winsock2.h>.
18152 2008-10-09 Bruno Haible <bruno@clisp.org>
18154 * doc/posix-functions/close.texi: Mention module 'close' instead of
18155 module 'sys_socket'.
18157 2008-10-09 Bruno Haible <bruno@clisp.org>
18159 * doc/glibc-headers/sys_ioctl.texi: New file.
18160 * doc/gnulib.texi: Include it.
18162 2008-10-09 Paolo Bonzini <bonzini@gnu.org>
18163 Bruno Haible <bruno@clisp.org>
18165 Combine the two replacements of 'close'.
18166 * lib/sys_socket.in.h (close): Define to a reminder to include
18168 (_gl_close_fd_maybe_socket): New declaration.
18169 (HAVE__GL_CLOSE_FD_MAYBE_SOCKET): New macro.
18170 * lib/winsock.c (close): Remove undefinition.
18171 (_gl_close_fd_maybe_socket): Renamed from rpl_close. Define only when
18172 needed for the gnulib module 'close'.
18173 * lib/unistd.in.h (close): If the gnulib module 'close' is not used,
18174 define to an error symbol or to a warning, if suitable.
18175 * lib/close.c: Include <sys/socket.h>.
18176 (rpl_close): Invoke _gl_close_fd_maybe_socket when gnulib defines it.
18177 * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Set also
18178 UNISTD_H_HAVE_WINSOCK2_H.
18179 (gl_SYS_SOCKET_H_DEFAULTS): Require gl_UNISTD_H_DEFAULTS.
18180 * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
18181 UNISTD_H_HAVE_WINSOCK2_H.
18182 * modules/sys_socket (Files): Add m4/unistd_h.m4.
18183 (configure.ac): Set a module indicator.
18184 (Makefile.am): Substitute GNULIB_CLOSE.
18185 * modules/unistd (Makefile.am): Substitute UNISTD_H_HAVE_WINSOCK2_H.
18186 * modules/poll-tests (Depends-on): Add close.
18187 * modules/select-tests (Depends-on): Likewise.
18189 2008-10-09 Paolo Bonzini <bonzini@gnu.org>
18190 Bruno Haible <bruno@clisp.org>
18192 New module 'close'.
18193 * modules/close: New file.
18194 * lib/unistd.in.h (close): Move declaration out of the
18195 FCHDIR_REPLACEMENT scope.
18196 (_gl_unregister_fd): New declaration.
18197 * lib/close.c: New file.
18198 * lib/fchdir.c (rpl_close): Remove function.
18199 * m4/close.m4: New file.
18200 * m4/fchdir.m4 (gl_FUNC_FCHDIR): When replacing fchdir, also replace
18202 * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_CLOSE and
18204 * modules/unistd (Makefile.am): Substitute GNULIB_CLOSE and
18206 * modules/fchdir (Depends-on): Add close.
18208 2008-10-09 Paolo Bonzini <bonzini@gnu.org>
18209 Bruno Haible <bruno@clisp.org>
18211 * lib/fcntl.in.h (open): Simplify conditionals.
18212 (_gl_register_fd): New declaration.
18213 * lib/fchdir.c (rpl_open): Remove function.
18214 * lib/open.c: When FCHDIR_REPLACEMENT is defined, compile the file
18216 (open): When FCHDIR_REPLACEMENT is defined, invoke _gl_register_fd.
18217 * m4/fchdir.m4 (gl_FUNC_FCHDIR): When replacing fchdir, also replace
18220 2008-10-09 Jim Meyering <meyering@redhat.com>
18222 GNUmakefile: use the more name-space-friendly "_version"
18223 * top/GNUmakefile (_dummy): Update.
18224 (_version): Rename from "version".
18226 2008-10-09 Paolo Bonzini <bonzini@gnu.org>
18227 Bruno Haible <bruno@clisp.org>
18229 * lib/fchdir.c (_gl_unregister_fd): New functions, extracted from
18231 (_gl_register_fd): New function, extracted from rpl_open.
18232 (rpl_close, rpl_closedir): Use _gl_unregister_fd.
18233 (rpl_open, rpl_opendir): Use _gl_register_fd.
18235 2008-10-09 Paolo Bonzini <bonzini@gnu.org>
18237 Fix organization of 'open' replacement.
18238 * m4/open.m4 (gl_REPLACE_OPEN): New macro.
18239 (gl_FUNC_OPEN): Use it.
18240 (gl_PREREQ_OPEN): Add a : to make the body non-empty.
18242 2008-10-08 Bruno Haible <bruno@clisp.org>
18244 * modules/getdate-tests (test_getdata_LDADD): Add LIBINTL.
18246 2008-10-08 Simon Josefsson <simon@josefsson.org>
18248 * m4/sys_socket_h.m4: Don't AC_LIBOBJ(winsock). The file is
18249 AC_LIBOBJ'ed by each gnulib module that needs it (e.g., socket,
18252 2008-10-08 Eric Blake <ebb9@byu.net>
18254 GNUmakefile: add 'make version' target
18255 * top/GNUmakefile (_curr-ver): Split version update rules...
18256 (version): ...into a target.
18258 2008-10-07 Bruno Haible <bruno@clisp.org>
18260 Use a more portable replacement expression for -0.0L.
18261 * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Use -LDBL_MIN * LDBL_MIN
18262 instead of -0.0L. Fix m4 quotation.
18264 * tests/test-signbit.c: Include <float.h>.
18265 (minus_zero): New variable.
18266 (test_signbitl): Use minus_zero instead of -zero.
18267 * modules/signbit-tests (Depends-on): Add float.
18269 * tests/test-ceill.c: Include <float.h>.
18270 (zero): Remove variable.
18271 (minus_zero): New variable.
18272 (main): Use minus_zero instead of -zero.
18273 * modules/ceill-tests (Depends-on): Add float.
18275 * tests/test-floorl.c: Include <float.h>.
18276 (zero): Remove variable.
18277 (minus_zero): New variable.
18278 (main): Use minus_zero instead of -zero.
18279 * modules/floorl-tests (Depends-on): Add float.
18281 * tests/test-roundl.c: Include <float.h>.
18282 (zero): Remove variable.
18283 (minus_zero): New variable.
18284 (main): Use minus_zero instead of -zero.
18285 * modules/roundl-tests (Depends-on): Add float.
18287 * tests/test-truncl.c: Include <float.h>.
18288 (zero): Remove variable.
18289 (minus_zero): New variable.
18290 (main): Use minus_zero instead of -zero.
18291 * modules/truncl-tests (Depends-on): Add float.
18293 * tests/test-frexpl.c (zero): Remove variable.
18294 (minus_zero): New variable.
18295 (main): Use minus_zero instead of -zero.
18296 * modules/frexpl-tests (Depends-on): Add float.
18298 * tests/test-isnan.c (zerol): Remove variable.
18299 (minus_zerol): New variable.
18300 (test_long_double): Use minus_zerol instead of -zerol.
18301 * modules/isnan-tests (Depends-on): Add float.
18303 * tests/test-isnanl.h (zero): Remove variable.
18304 (minus_zero): New variable.
18305 (main): Use minus_zero instead of -zero.
18306 * modules/isnanl-nolibm-tests (Depends-on): Add float.
18307 * modules/isnanl-tests (Depends-on): Add float.
18309 * tests/test-ldexpl.c (zero): Remove variable.
18310 (minus_zero): New variable.
18311 (main): Use minus_zero instead of -zero.
18312 * modules/ldexpl-tests (Depends-on): Add float.
18314 * tests/test-snprintf-posix.h (zerol): Remove variable.
18315 (minus_zerol): New variable.
18316 (test_function): Use minus_zerol instead of -zerol.
18317 * modules/snprintf-posix-tests (Depends-on): Add float.
18318 * modules/vsnprintf-posix-tests (Depends-on): Add float.
18320 * tests/test-sprintf-posix.h (zerol): Remove variable.
18321 (minus_zerol): New variable.
18322 (test_function): Use minus_zerol instead of -zerol.
18323 * modules/sprintf-posix-tests (Depends-on): Add float.
18324 * modules/vsprintf-posix-tests (Depends-on): Add float.
18326 * tests/test-vasnprintf-posix.c (zerol): Remove variable.
18327 (minus_zerol): New variable.
18328 (test_function): Use minus_zerol instead of -zerol.
18329 * modules/vasnprintf-posix-tests (Depends-on): Add float.
18331 * tests/test-vasprintf-posix.c (zerol): Remove variable.
18332 (minus_zerol): New variable.
18333 (test_function): Use minus_zerol instead of -zerol.
18334 * modules/vasprintf-posix-tests (Depends-on): Add float.
18336 2008-10-07 Simon Josefsson <simon@josefsson.org>
18338 * MODULES.html.sh (Support for building documentation): Mention
18339 pmccabe2html. Sort entries.
18341 Add pmccabe2html module, from gnupdf.
18342 * build-aux/pmccabe.css: New file.
18343 * build-aux/pmccabe2html: New file.
18344 * m4/pmccabe2html.m4: New file.
18345 * modules/pmccabe2html: New file.
18347 2008-10-07 Richard W.M. Jones <rjones@redhat.com>
18350 * MODULES.html.sh: Add to list of modules.
18351 * lib/flock.c: flock implementation for Windows and Unix systems
18353 * doc/glibc-functions/flock.texi: Update documentation.
18354 * lib/sys_file.in.h: <sys/file.h> header file.
18355 * m4/flock.m4: M4 macros.
18356 * m4/sys_file_h.m4: M4 macros for replacement sys/file.h.
18357 * modules/flock: flock module.
18358 * modules/flock-tests: flock tests module.
18359 * modules/sys_file: sys/file.h module.
18360 * tests/test-flock.c: test suite for flock.
18362 2008-10-06 Jim Meyering <meyering@redhat.com>
18364 bootstrap: check for LT_INIT more portably still ;-)
18365 * build-aux/bootstrap: Don't rely on \>, since it's not portable.
18366 Spotted by Bruno Haible.
18368 2008-10-06 Eric Blake <ebb9@byu.net>
18370 test-signbit: avoid tripping Irix cc bug on -0.0L
18371 * tests/test-signbit.c (minus_zerol): Delete, and replace with
18372 '-zerol'. This may break on HP-UX/hppa, but at least makes the
18373 entire testsuite consistent and avoids an Irix 6.2 bug.
18375 2008-10-05 Bruno Haible <bruno@clisp.org>
18376 Jim Meyering <jim@meyering.net>
18378 Add an option for ignoring EPIPE during close_stdout.
18379 * lib/closeout.h: Include <stdbool.h>.
18380 (close_stdout_set_ignore_EPIPE): New declaration.
18381 * lib/closeout.c: Include <stdbool.h>.
18382 (ignore_EPIPE): New variable.
18383 (close_stdout_set_ignore_EPIPE): New function.
18384 (close_stdout): Ignore EPIPE error if ignore_EPIPE is set.
18385 * lib/close-stream.c (close_stream): Mention the possible EPIPE
18387 * modules/closeout (Depends-on): Add stdbool.
18389 2008-10-05 Bruno Haible <bruno@clisp.org>
18391 * modules/accept: New file.
18392 * modules/bind: New file.
18393 * modules/connect: New file.
18394 * modules/getpeername: New file.
18395 * modules/getsockname: New file.
18396 * modules/getsockopt: New file.
18397 * modules/listen: New file.
18398 * modules/recv: New file.
18399 * modules/recvfrom: New file.
18400 * modules/send: New file.
18401 * modules/sendto: New file.
18402 * modules/setsockopt: New file.
18403 * modules/socket: New file.
18404 * lib/sys_socket.in.h: Include the GL_LINK_WARNING definition.
18405 (socket, connect, accept, bind, getpeername, getsockname, getsockopt,
18406 listen, recv, send, recvfrom, sendto, setsockopt): Declare only when
18407 the particular module is requested. Add a link warning when the
18408 particular module is not requested.
18409 * lib/winsock.c (rpl_socket, rpl_connect, rpl_accept, rpl_bind,
18410 rpl_getpeername, rpl_getsockname, rpl_getsockopt, rpl_listen, rpl_recv,
18411 rpl_send, rpl_recvfrom, rpl_sendto, rpl_setsockopt): Define only when
18412 the particular module is requested.
18413 * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR,
18414 gl_SYS_SOCKET_H_DEFAULTS): New macros.
18415 (gl_HEADER_SYS_SOCKET): Require gl_SYS_SOCKET_H_DEFAULTS.
18416 * modules/sys_socket (Depends-on): Add link-warning.
18417 (Makeifle.am): Substitute GNULIB_SOCKET, GNULIB_CONNECT, GNULIB_ACCEPT,
18418 GNULIB_BIND, GNULIB_GETPEERNAME, GNULIB_GETSOCKNAME, GNULIB_GETSOCKOPT,
18419 GNULIB_LISTEN, GNULIB_RECV, GNULIB_SEND, GNULIB_RECVFROM,
18420 GNULIB_SENDTO, GNULIB_SETSOCKOPT, and the definition of
18422 * doc/posix-functions/accept.texi: Mention the new module 'accept'.
18423 * doc/posix-functions/bind.texi: Mention the new module 'bind'.
18424 * doc/posix-functions/connect.texi: Mention the new module 'connect'.
18425 * doc/posix-functions/getpeername.texi: Mention the new module
18427 * doc/posix-functions/getsockname.texi: Mention the new module
18429 * doc/posix-functions/getsockopt.texi: Mention the new module
18431 * doc/posix-functions/listen.texi: Mention the new module 'listen'.
18432 * doc/posix-functions/recv.texi: Mention the new module 'recv'.
18433 * doc/posix-functions/recvfrom.texi: Mention the new module 'recvfrom'.
18434 * doc/posix-functions/send.texi: Mention the new module 'send'.
18435 * doc/posix-functions/sendto.texi: Mention the new module 'sendto'.
18436 * doc/posix-functions/setsockopt.texi: Mention the new module
18438 * doc/posix-functions/socket.texi: Mention the new module 'socket'.
18439 * modules/poll-tests (Depends-on): Add socket, bind, getsockopt,
18440 listen, connect, accept.
18441 * modules/select-tests (Depends-on): Likewise.
18443 2008-10-05 Bruno Haible <bruno@clisp.org>
18445 * lib/winsock.c (strerror): Remove unused #undef.
18446 (rpl_close): Remove unused local variable.
18448 * modules/sys_socket (Depends-on); Add errno.
18450 2008-10-05 Bruno Haible <bruno@clisp.org>
18452 * lib/sys_select.in.h: Include the GL_LINK_WARNING definition.
18453 (select): Add a link warning when the 'select' module is not used.
18454 * modules/sys_select (Depends-on): Add link-warning.
18455 (Makefile.am): Substitute the definition of GL_LINK_WARNING.
18456 Suggested by Paolo Bonzini.
18458 2008-10-05 Jim Meyering <meyering@redhat.com>
18460 bootstrap: check for LT_INIT more portably
18461 * build-aux/bootstrap: Avoid using grep -E, since it's not
18462 portable enough. Suggestion from Bruno Haible.
18464 2008-10-05 Bruno Haible <bruno@clisp.org>
18466 * doc/posix-headers/sys_select.texi: Mention 'struct timeval' problem
18467 as being fixed by gnulib.
18469 2008-10-05 Bruno Haible <bruno@clisp.org>
18471 * modules/select-tests: New file, mostly copied from
18472 modules/sys_select-tests.
18473 * tests/test-select.c: New file, mostly copied from
18474 tests/test-sys_select.c.
18475 * tests/test-sys_select.c: Move most of the code to tests/test-select.c.
18476 * modules/sys_select-tests (Depends-on): Remove all dependencies.
18477 (Makefile.am): Remove test_sys_select_LDADD.
18479 * lib/sys_select.in.h (select): If GNULIB_SELECT is not set, define it
18480 to an undefined symbol, for an error message.
18481 * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): New macro.
18482 (gl_SYS_SELECT_H_DEFAULTS): New macro.
18483 (gl_HEADER_SYS_SELECT): Require it. Don't require compilation of
18484 winsock-select.c here.
18485 * modules/sys_select (Files): Remove lib/winsock-select.c.
18486 (Depends-on): Remove alloca.
18487 (Makefile.am): Substitute GNULIB_SELECT.
18488 * modules/select: New file.
18489 * doc/posix-functions/select.texi: Update.
18491 2008-10-05 Bruno Haible <bruno@clisp.org>
18493 * lib/spawn_faction_addclose.c (__sysconf): Use getdtablesize always.
18494 * lib/spawn_faction_adddup2.c (__sysconf): Likewise.
18495 * lib/spawn_faction_addopen.c (__sysconf): Likewise.
18496 * modules/posix_spawn_file_actions_addclose (Depends-on): Add
18498 * modules/posix_spawn_file_actions_adddup2 (Depends-on): Likewise.
18499 * modules/posix_spawn_file_actions_addopen (Depends-on): Likewise.
18501 2008-10-05 Bruno Haible <bruno@clisp.org>
18503 * modules/getdtablesize-tests: New file.
18504 * tests/test-getdtablesize.c: New file.
18506 New module 'getdtablesize'.
18507 * lib/unistd.in.h (getdtablesize): New declaration.
18508 * lib/getdtablesize.c: New file.
18509 * m4/getdtablesize.m4: New file.
18510 * modules/getdtablesize: New file.
18511 * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
18512 GNULIB_GETDTABLESIZE, HAVE_GETDTABLESIZE.
18513 * modules/unistd (Makefile.am): Substitute GNULIB_GETDTABLESIZE,
18514 HAVE_GETDTABLESIZE.
18515 * doc/glibc-functions/getdtablesize.texi: Mention the new module.
18517 2008-10-05 Bruno Haible <bruno@clisp.org>
18519 * modules/sched (Makefile.am): Fix typo.
18520 Reported by Simon Josefsson.
18522 2008-10-05 Jim Meyering <meyering@redhat.com>
18524 bootstrap: check for LT_INIT, too
18525 * build-aux/bootstrap: Both AC_PROG_LIBTOOL and AM_PROG_LIBTOOL
18526 are deprecated. Suggestion from Ralf Wildenhues.
18528 2008-10-05 Bruno Haible <bruno@clisp.org>
18530 * lib/spawn.in.h (POSIX_SPAWN_*): Use the system's values, rather than
18531 overriding them by ours.
18532 (POSIX_SPAWN_USEVFORK): Use the next free bit position.
18534 2008-10-05 Jim Meyering <meyering@redhat.com>
18536 bootstrap: check for AC_PROG_LIBTOOL as well as AM_PROG_LIBTOOL
18537 * build-aux/bootstrap: Check for AC_PROG_LIBTOOL, as well as the
18538 obsolete AM_PROG_LIBTOOL. Spotted by Debarshi Ray <rishi@gnu.org>.
18540 2008-10-04 Bruno Haible <bruno@clisp.org>
18542 * modules/dup2 (License): Change to LGPLv2+.
18543 * modules/sleep (License): Likewise.
18544 * modules/perror (License): Likewise.
18545 * modules/fopen (License): Change to LGPLv2+, with approval by Eric
18547 * modules/signal (License): Likewise.
18548 * modules/sigprocmask (License): Likewise.
18549 * modules/raise (License): Change to LGPLv2+, with approval by Jim
18552 2008-10-04 Bruno Haible <bruno@clisp.org>
18554 * lib/spawn.in.h (POSIX_SPAWN_*): Undefine before redefining.
18555 Reported by Rainer Tammer <tammer@tammer.net>.
18557 2008-10-03 Paolo Bonzini <bonzini@gnu.org>
18558 Bruno Haible <bruno@clisp.org>
18560 * lib/errno.in.h (EWOULDBLOCK) [win32]: Define to EAGAIN.
18561 * lib/winsock.c (set_winsock_errno): Map WSAEWOULDBLOCK to EWOULDBLOCK.
18562 * lib/strerror.c (rpl_strerror): Remove error string for EWOULDBLOCK.
18564 2008-10-03 Kamil Dudka <kdudka@redhat.com>
18566 filevercmp: new module
18567 * lib/filevercmp.h: New function filevercmp comparing version strings.
18568 * lib/filevercmp.c: Implementation of filevercmp function.
18569 * modules/filevercmp: Module metadata.
18570 * tests/test-filevercmp.c: Unit test for new module.
18571 * modules/filevercmp-tests: Unit test metadata.
18572 * MODULES.html.sh: Add filevercmp module.
18574 2008-10-03 Bruno Haible <bruno@clisp.org>
18576 * lib/c-ctype.h: Add comment.
18577 Reported by Jim Meyering.
18579 2008-10-02 Bruno Haible <bruno@clisp.org>
18581 * modules/posix_spawn-internal (Depends-on): Add 'open'.
18583 2008-10-02 Paolo Bonzini <bonzini@gnu.org>
18585 * build-aux/bootstrap: Allow renaming bootstrap, and change the
18586 name of bootstrap.conf accordingly.
18588 2008-10-02 Paolo Bonzini <bonzini@gnu.org>
18590 * build-aux/bootstrap: Install git-merge-changelog configuration
18591 items into .gitconfig if needed.
18593 2008-10-02 Paolo Bonzini <bonzini@gnu.org>
18595 * build-aux/bootstrap: Recognize `gnulib' being a submodule in a
18596 git repository, and initialize/update it accordingly.
18598 2008-10-02 Richard W.M. Jones <rjones@redhat.com>
18600 * modules/fsync-tests: New file.
18601 * tests/test-fsync.c: New file.
18603 New module 'fsync'.
18604 * lib/fsync.c: New file.
18605 * m4/fsync.m4: New file.
18606 * modules/fsync: New file.
18607 * lib/unistd.in.h (fsync): New declaration.
18608 * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Define and AC_SUBST both
18609 GNULIB_FSYNC and HAVE_FSYNC.
18610 * modules/unistd: Substitute GNULIB_FSYNC and HAVE_FSYNC.
18611 * MODULES.html.sh (posix_functions): Add fsync.
18612 * doc/posix-functions/fsync.texi: Mention the new module.
18614 2008-10-02 Jim Meyering <meyering@redhat.com>
18616 fts.c: sync with similar code from coreutils' remove.c
18617 * lib/fts.c (dirent_inode_sort_may_be_useful): Merge from coreutils.
18618 Guard also with "#if defined __linux__", since for now at least,
18619 this code is Linux-kernel-specific.
18621 2008-10-02 Jim Meyering <meyering@redhat.com>
18624 * lib/fts.c: Remove unnecessary "defined" in cpp directive.
18625 Include <sys/vfs.h>, not <sys/statfs.h>.
18627 * m4/fts.m4 (gl_FUNC_FTS_CORE): Fix typo s/vfs/vfs.h/.
18628 Include <sys/vfs.h>, not <sys/statfs.h>.
18630 2008-10-01 Bruno Haible <bruno@clisp.org>
18632 Avoid the broken posix_spawn function on AIX 5.3 and 6.1.
18633 * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): New macro.
18634 (gl_POSIX_SPAWN_BODY): Invoke it. Set REPLACE_POSIX_SPAWN if needed.
18635 * doc/posix-functions/posix_spawn.texi: Mention the AIX bugs.
18636 * doc/posix-functions/posix_spawnp.texi: Likewise.
18637 * m4/execute.m4 (gl_EXECUTE): Invoke gl_POSIX_SPAWN_WORKS, to check
18638 whether posix_spawn actually works.
18639 * m4/pipe.m4 (gl_PIPE): Likewise.
18640 * modules/execute (Files): Add m4/posix_spawn.m4.
18641 * modules/pipe (Files): Add m4/posix_spawn.m4.
18642 Reported and analyzed by Rainer Tammer <tammer@tammer.net>.
18644 2008-10-01 Jim Meyering <meyering@redhat.com>
18646 remove trailing spaces
18648 * lib/poll.c (poll): Likewise.
18649 * lib/sys_socket.in.h (SHUT_RDWR): Likewise.
18650 * lib/winsock.c (rpl_close): Likewise.
18651 * m4/memcmp.m4 (gl_FUNC_MEMCMP): Likewise.
18652 * modules/yield: Likewise.
18653 * tests/test-poll.c (connect_to_socket, poll1): Likewise.
18654 * tests/test-sys_select.c (connect_to_socket): Likewise.
18656 fts.c: adjust a new interface to be more generally useful
18657 * lib/fts.c (dirent_inode_sort_may_be_useful): Take an FD parameter.
18658 (fts_build): Adjust caller.
18660 2008-09-30 Yoann Vandoorselaere <yoann.v@prelude-ids.com>
18662 * modules/cond-tests: New file.
18663 * tests/test-cond.c: New file.
18665 2008-09-30 Yoann Vandoorselaere <yoann.v@prelude-ids.com>
18666 Bruno Haible <bruno@clisp.org>
18668 * modules/cond (Dependencies): Add errno, time.
18669 * lib/glthread/cond.h: Include <time.h>.
18670 (gl_cond_define, gl_cond_define_initialized): Use the same definition
18673 2008-09-30 Yoann Vandoorselaere <yoann.v@prelude-ids.com>
18674 Bruno Haible <bruno@clisp.org>
18676 * m4/thread.m4 (gl_THREAD): Fix detection of pthread_atfork function.
18678 2008-09-30 Yoann Vandoorselaere <yoann.v@prelude-ids.com>
18679 Bruno Haible <bruno@clisp.org>
18681 * modules/tls-tests (Depends-on): Add thread, yield.
18682 (configure.ac): Remove all checks.
18683 (test_tls_LDADD): Use YIELD_LIB instead of LIBSCHED.
18684 * tests/test-tls.c (gl_thread_t, gl_thread_join, gl_thread_yield,
18685 gl_thread_self): Remove definitions. Include glthread/thread.h and
18686 glthread/yield.h instead.
18687 (test_tls): Pass an additional NULL argument to gl_thread_join.
18689 2008-09-30 Yoann Vandoorselaere <yoann.v@prelude-ids.com>
18690 Bruno Haible <bruno@clisp.org>
18692 * modules/lock-tests (Depends-on): Add thread, yield.
18693 (configure.ac): Remove all checks.
18694 (test_lock_LDADD): Use YIELD_LIB instead of LIBSCHED.
18695 * tests/test-lock.c (gl_thread_t, gl_thread_join, gl_thread_yield,
18696 gl_thread_self): Remove definitions. Include glthread/thread.h and
18697 glthread/yield.h instead.
18698 (test_lock, test_rwlock, test_recursive_lock, test_once): Pass an
18699 additional NULL argument to gl_thread_join.
18701 2008-09-30 Bruno Haible <bruno@clisp.org>
18703 Fix the Win32 implementation of the 'thread' module.
18704 * lib/glthread/thread.h [USE_WIN32_THREADS] (gl_thread_t): Change to a
18706 (gl_thread_self): Invoke gl_thread_self_func.
18707 (gl_thread_self_func): New declaration.
18708 * lib/glthread/thread.c [USE_WIN32_THREADS] (self_key): New variable.
18709 (do_init_self_key, init_self_key): New functions.
18710 (struct gl_thread_struct): Renamed from 'struct thread_extra'.
18711 Remove some fields.
18712 (running_threads, running_lock): Remove variables.
18713 (get_current_thread_handle): New function.
18714 (gl_thread_self_func, wrapper_func, glthread_create_func,
18715 glthread_join_func, gl_thread_exit_func): Largely rewritten and
18718 2008-09-30 Bruno Haible <bruno@clisp.org>
18720 * lib/winsock-select.c (win32_poll_handle): Add shortcut for regular
18723 2008-09-30 Jim Meyering <meyering@redhat.com>
18725 fts.m4: correct the test for statfs.f_type
18726 * m4/fts.m4 (gl_FUNC_FTS_CORE): Include <sys/statfs.h>
18727 when checking for statfs.f_type.
18729 2008-09-15 Simon Josefsson <simon@josefsson.org>
18731 tests: avoid some compiler warnings
18732 * tests/test-memchr.c (main): Pass NULL indirectly.
18733 * tests/test-getdate.c (main): Remove unused variable 'ret'.
18735 2008-09-29 OndÅ™ej VaÅ¡Ãk <ovasik@redhat.com>
18737 getdate.y: disallow countable dayshifts like "4 yesterday ago"
18738 * lib/getdate.y (relative_time_table) [tDAY_SHIFT]: New type for
18739 exactly specified dayshifts.
18740 (dayshift): New rule.
18741 (rel): Add dayshift.
18742 (relative_time_table) [tomorrow, yesterday, today, now]:
18743 Use tDAY_SHIFT in place of tDAY_UNIT.
18744 * tests/test-getdate.c: Add tests for now-disallowed countable
18745 dayshifts, e.g., "4 yesterday ago".
18747 2008-09-29 Bruno Haible <bruno@clisp.org>
18749 * tests/test-posix_spawn1.c: Renamed from tests/test-posix_spawn.c.
18750 * tests/test-posix_spawn1.in.sh: Renamed from
18751 tests/test-posix_spawn.in.sh.
18752 * tests/test-posix_spawn2.c: New file.
18753 * tests/test-posix_spawn2.in.sh: New file.
18754 * modules/posix_spawnp-tests (Files): Update.
18755 (Makefile.am): Update. Add test-posix_spawn2 to the tests.
18757 2008-09-29 Bruno Haible <bruno@clisp.org>
18759 Propagate effects of putenv/setenv/unsetenv to child processes.
18760 * lib/execute.c (execute): Use spawnvpe instead of spawnvp.
18761 * lib/pipe.c (create_pipe): Likewise.
18763 2008-09-29 Bruno Haible <bruno@clisp.org>
18765 Enable use of shell scripts as executables in mingw.
18766 * lib/execute.c (execute): When spawnv fails with error ENOEXEC,
18767 run the program as a shell script.
18768 * lib/pipe.c (create_pipe): Likewise.
18769 * lib/w32spawn.h (prepare_spawn): Add a hidden element in front of the
18772 2008-09-29 Eric Blake <ebb9@byu.net>
18774 * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): Fix typo.
18776 2008-08-24 Paolo Bonzini <bonzini@gnu.org>
18778 * doc/posix-functions/accept.texi: Update mingw problems.
18779 * doc/posix-functions/bind.texi: Update mingw problems.
18780 * doc/posix-functions/close.texi: Update mingw problems.
18781 * doc/posix-functions/connect.texi: Update mingw problems.
18782 * doc/posix-functions/getpeername.texi: Update mingw problems.
18783 * doc/posix-functions/getsockname.texi: Update mingw problems.
18784 * doc/posix-functions/getsockopt.texi: Update mingw problems.
18785 * doc/posix-functions/ioctl.texi: Update mingw problems.
18786 * doc/posix-functions/listen.texi: Update mingw problems.
18787 * doc/posix-functions/recv.texi: Update mingw problems.
18788 * doc/posix-functions/recvfrom.texi: Update mingw problems.
18789 * doc/posix-functions/select.texi: Update mingw problems.
18790 * doc/posix-functions/send.texi: Update mingw problems.
18791 * doc/posix-functions/sendto.texi: Update mingw problems.
18792 * doc/posix-functions/setsockopt.texi: Update mingw problems.
18793 * doc/posix-functions/socket.texi: Update mingw problems.
18795 2008-09-29 Paolo Bonzini <bonzini@gnu.org>
18796 Bruno Haible <bruno@clisp.org>
18798 * lib/sys_select.in.h: Include sys/time.h.
18799 * m4/sys_select.h.m4: Test that struct timeval is fully defined.
18800 * modules/sys_select: Depend on sys_time.
18801 * tests/test-sys_select.c: Test that sys/select.h defines struct
18804 2008-09-29 Bruno Haible <bruno@clisp.org>
18806 * lib/sys_socket.in.h: Wrap the definitions in 'extern "C"'.
18807 * lib/sys_select.in.h: Likewise.
18809 2008-09-29 Bruno Haible <bruno@clisp.org>
18811 * lib/winsock.c (rpl_close, rpl_socket): Remove unused variables.
18813 2008-09-29 Bruno Haible <bruno@clisp.org>
18815 * m4/sockets.m4 (gl_SOCKETS): Check also for the need to use -lsocket.
18816 Set LIBSOCKET instead of augmenting LIBS.
18817 * modules/sockets (Link): New section.
18818 * modules/sockets-tests (test_sockets_LDADD): New variable.
18819 * modules/sys_select-tests (test_sys_select_LDADD): New variable.
18820 * modules/poll-tests (test_poll_LDADD): New variable.
18821 * NEWS: Document the change.
18823 2008-09-29 Bruno Haible <bruno@clisp.org>
18825 * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): New macro.
18826 * m4/inet_ntop.m4 (gl_INET_NTOP): Invoke it instead of assigning
18827 ARPA_INET_H directly.
18828 * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
18830 2008-09-28 Bruno Haible <bruno@clisp.org>
18832 * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): New macro, extracted
18833 from gl_HEADER_SYS_SOCKET.
18834 (gl_HEADER_SYS_SOCKET): Invoke it.
18835 * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
18837 2008-09-28 Bruno Haible <bruno@clisp.org>
18839 * doc/posix-headers/sys_select.texi: Mention 'struct timeval' problem.
18840 * tests/test-sys_select.c: Include <sys/time.h>, for struct timeval.
18841 Needed on OSF/1 4.0.
18843 2008-09-28 Bruno Haible <bruno@clisp.org>
18845 Override open more carefully.
18846 * lib/open.c (orig_open): New function.
18847 (rpl_open): Use orig_open instead of open.
18848 * lib/fcntl.in.h: Add special invocation convention.
18849 * m4/open.m4 (gl_PREREQ_OPEN): New macro.
18850 (gl_FUNC_OPEN): Invoke it.
18852 Override freopen more carefully.
18853 * lib/freopen.c (orig_freopen): New function.
18854 (rpl_freopen): Use orig_freopen instead of freopen.
18855 * m4/freopen.m4 (gl_PREREQ_FREOPEN): New macro.
18856 (gl_FUNC_FREOPEN): Invoke it.
18858 Override fopen more carefully.
18859 * lib/fopen.c (orig_fopen): New function.
18860 (rpl_fopen): Use orig_fopen instead of fopen.
18861 * m4/fopen.m4 (gl_PREREQ_FOPEN): New macro.
18862 (gl_FUNC_FOPEN): Invoke it.
18863 Needed on AIX. Reported by Rainer Tammer <tammer@tammer.net>.
18865 2008-09-28 Bruno Haible <bruno@clisp.org>
18867 * lib/pipe.h (create_pipe_out, create_pipe_bidi): Add comment about
18870 2008-09-28 Bruno Haible <bruno@clisp.org>
18872 * tests/test-sigaction.c (handler, main): Disable the check whether
18873 SA_RESETHAND has reverted the installed handler to SIG_DFL. Needed on
18874 glibc systems with LinuxThreads.
18876 2008-09-28 Bruno Haible <bruno@clisp.org>
18878 * doc/posix-functions/freopen.texi: Mention the trailing slash problem.
18880 * lib/stdio.in.h (fopen, freopen): Undefine before redefining. Needed
18882 * lib/fcntl.in.h (open): Likewise.
18883 Reported by Rainer Tammer <tammer@tammer.net>.
18885 2008-09-28 Bruno Haible <bruno@clisp.org>
18887 * modules/posix_spawnp-tests: New file.
18888 * tests/test-posix_spawn.c: New file.
18889 * tests/test-posix_spawn.in.sh: New file.
18891 New module 'posix_spawnp'.
18892 * modules/posix_spawnp: New file.
18893 * lib/spawnp.c: New file, from GNU libc with modifications.
18894 * doc/posix-functions/posix_spawnp.texi: Mention the new module.
18896 New module 'posix_spawn'.
18897 * modules/posix_spawn: New file.
18898 * lib/spawn.c: New file, from GNU libc with modifications.
18899 * doc/posix-functions/posix_spawn.texi: Mention the new module.
18901 New module 'posix_spawnattr_destroy'.
18902 * modules/posix_spawnattr_destroy: New file.
18903 * lib/spawnattr_destroy.c: New file, from GNU libc with modifications.
18904 * doc/posix-functions/posix_spawnattr_destroy.texi: Mention the new
18907 New module 'posix_spawnattr_setsigmask'.
18908 * modules/posix_spawnattr_setsigmask: New file.
18909 * lib/spawnattr_setsigmask.c: New file, from GNU libc with
18911 * doc/posix-functions/posix_spawnattr_setsigmask.texi: Mention the
18914 New module 'posix_spawnattr_getsigmask'.
18915 * modules/posix_spawnattr_getsigmask: New file.
18916 * lib/spawnattr_getsigmask.c: New file, from GNU libc with
18918 * doc/posix-functions/posix_spawnattr_getsigmask.texi: Mention the
18921 New module 'posix_spawnattr_setsigdefault'.
18922 * modules/posix_spawnattr_setsigdefault: New file.
18923 * lib/spawnattr_setdefault.c: New file, from GNU libc with
18925 * doc/posix-functions/posix_spawnattr_setsigdefault.texi: Mention the
18928 New module 'posix_spawnattr_getsigdefault'.
18929 * modules/posix_spawnattr_getsigdefault: New file.
18930 * lib/spawnattr_getdefault.c: New file, from GNU libc with
18932 * doc/posix-functions/posix_spawnattr_getsigdefault.texi: Mention the
18935 New module 'posix_spawnattr_setschedpolicy'.
18936 * modules/posix_spawnattr_setschedpolicy: New file.
18937 * lib/spawnattr_setschedpolicy.c: New file, from GNU libc with
18939 * doc/posix-functions/posix_spawnattr_setschedpolicy.texi: Mention the
18942 New module 'posix_spawnattr_getschedpolicy'.
18943 * modules/posix_spawnattr_getschedpolicy: New file.
18944 * lib/spawnattr_getschedpolicy.c: New file, from GNU libc with
18946 * doc/posix-functions/posix_spawnattr_getschedpolicy.texi: Mention the
18949 New module 'posix_spawnattr_setschedparam'.
18950 * modules/posix_spawnattr_setschedparam: New file.
18951 * lib/spawnattr_setschedparam.c: New file, from GNU libc with
18953 * doc/posix-functions/posix_spawnattr_setschedparam.texi: Mention the
18956 New module 'posix_spawnattr_getschedparam'.
18957 * modules/posix_spawnattr_getschedparam: New file.
18958 * lib/spawnattr_getschedparam.c: New file, from GNU libc with
18960 * doc/posix-functions/posix_spawnattr_getschedparam.texi: Mention the
18963 New module 'posix_spawnattr_setpgroup'.
18964 * modules/posix_spawnattr_setpgroup: New file.
18965 * lib/spawnattr_setpgroup.c: New file, from GNU libc with
18967 * doc/posix-functions/posix_spawnattr_setpgroup.texi: Mention the new
18970 New module 'posix_spawnattr_getpgroup'.
18971 * modules/posix_spawnattr_getpgroup: New file.
18972 * lib/spawnattr_getpgroup.c: New file, from GNU libc with
18974 * doc/posix-functions/posix_spawnattr_getpgroup.texi: Mention the new
18977 New module 'posix_spawnattr_setflags'.
18978 * modules/posix_spawnattr_setflags: New file.
18979 * lib/spawnattr_setflags.c: New file, from GNU libc with modifications.
18980 * doc/posix-functions/posix_spawnattr_setflags.texi: Mention the new
18983 New module 'posix_spawnattr_getflags'.
18984 * modules/posix_spawnattr_getflags: New file.
18985 * lib/spawnattr_getflags.c: New file, from GNU libc with modifications.
18986 * doc/posix-functions/posix_spawnattr_getflags.texi: Mention the new
18989 New module 'posix_spawnattr_init'.
18990 * modules/posix_spawnattr_init: New file.
18991 * lib/spawnattr_init.c: New file, from GNU libc with modifications.
18992 * doc/posix-functions/posix_spawnattr_init.texi: Mention the new
18995 New module 'posix_spawn_file_actions_destroy'.
18996 * modules/posix_spawn_file_actions_destroy: New file.
18997 * lib/spawn_faction_destroy.c: New file, from GNU libc with
18999 * doc/posix-functions/posix_spawn_file_actions_destroy.texi: Mention
19002 New module 'posix_spawn_file_actions_addopen'.
19003 * modules/posix_spawn_file_actions_addopen: New file.
19004 * lib/spawn_faction_addopen.c: New file, from GNU libc with
19006 * doc/posix-functions/posix_spawn_file_actions_addopen.texi: Mention
19009 New module 'posix_spawn_file_actions_adddup2'.
19010 * modules/posix_spawn_file_actions_adddup2: New file.
19011 * lib/spawn_faction_adddup2.c: New file, from GNU libc with
19013 * doc/posix-functions/posix_spawn_file_actions_adddup2.texi: Mention
19016 New module 'posix_spawn_file_actions_addclose'.
19017 * modules/posix_spawn_file_actions_addclose: New file.
19018 * lib/spawn_faction_addclose.c: New file, from GNU libc with
19020 * doc/posix-functions/posix_spawn_file_actions_addclose.texi: Mention
19023 New module 'posix_spawn_file_actions_init'.
19024 * modules/posix_spawn_file_actions_init: New file.
19025 * lib/spawn_faction_init.c: New file, from GNU libc with modifications.
19026 * doc/posix-functions/posix_spawn_file_actions_init.texi: Mention the
19029 New module 'posix_spawn-internal'.
19030 * modules/posix_spawn-internal: New file.
19031 * lib/spawn_int.h: New file, from GNU libc with modifications.
19032 * lib/spawni.c: New file, from GNU libc with modifications.
19033 * m4/posix_spawn.m4: New file.
19035 New module 'spawn'.
19036 * modules/spawn: New file.
19037 * lib/spawn.in.h: New file, from GNU libc with modifications.
19038 * m4/spawn_h.m4: New file.
19039 * doc/posix-headers/spawn.texi: Mention the new module.
19041 2008-09-28 Bruno Haible <bruno@clisp.org>
19043 * modules/sched-tests: New file.
19044 * tests/test-sched.c: New file.
19046 New module 'sched'.
19047 * modules/sched: New file.
19048 * lib/sched.in.h: New file.
19049 * m4/sched_h.m4: New file.
19050 * doc/posix-headers/sched.texi: Mention the new module.
19052 2008-09-27 Eric Blake <ebb9@byu.net>
19054 Fix previous patch, and tweak references to $0.
19055 * posix-modules: Call func_gnulib_dir before using $gnulib_dir.
19056 (func_version, func_gnulib_dir): Don't call this program
19058 (func_gnulib_dir, func_tmpdir, func_fatal_error): Avoid shell bugs
19059 with using $0 in function.
19060 * gnulib-tool (func_gnulib_dir, func_tmpdir): Likewise.
19061 (func_fatal_error): Reuse the name the user invoked us with.
19063 2008-09-27 Bruno Haible <bruno@clisp.org>
19065 * m4/iconv_h.m4 (gl_REPLACE_ICONV_H): New macro.
19066 (gl_ICONV_H_DEFAULTS): Initialize ICONV_H here...
19067 (gl_ICONV_H): Not here.
19068 * m4/iconv_open.m4 (gl_REPLACE_ICONV_OPEN): Invoke gl_REPLACE_ICONV_H
19069 instead of assigning ICONV_H directly.
19071 * m4/wchar.m4 (gl_REPLACE_WCHAR_H): New macro.
19072 * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Invoke it instead of assigning
19075 2008-09-27 Bruno Haible <bruno@clisp.org>
19077 * lib/arpa_inet.in.h: Include the GL_LINK_WARNING anchor.
19078 * modules/arpa_inet (Depends-on): Add link-warning.
19079 (Makefile.am): Insert the definition of GL_LINK-WARNING.
19080 * modules/unistd (Makefile.am): Likewise.
19082 2008-09-26 Bruno Haible <bruno@clisp.org>
19084 * posix-modules (cvsdatestamp, last_checkin_date, version): Remove
19086 (func_version): Essentially copied from gnulib-tool.
19087 (func_exit, func_gnulib_dir, func_tmpdir, func_fatal_error,
19088 func_readlink): Copied from gnulib-tool.
19090 2008-09-26 Bruno Haible <bruno@clisp.org>
19092 * gnulib-tool (func_version): Change directory to $gnulib_dir before
19093 invoking git-version-gen.
19095 2008-09-26 Bruno Haible <bruno@clisp.org>
19097 * posix-modules: Update to directory names changed on 2008-01-19.
19098 Remove commas in output before splitting into words. No more need to
19099 avoid 'ftruncate' since 2007-02-19.
19101 2008-09-26 Bruno Haible <bruno@clisp.org>
19103 * doc/posix-headers/errno.texi: Remove mention of module 'EOVERFLOW'.
19105 2008-09-26 Bruno Haible <bruno@clisp.org>
19107 * lib/fwriteerror.c (do_fwriteerror): Ignore error EPIPE.
19108 * modules/fwriteerror (Depends-on): Add errno.
19110 2008-09-26 Bruno Haible <bruno@clisp.org>
19112 * tests/test-vc-list-files-git.sh: Explain reason for skipping test.
19113 * tests/test-vc-list-files-cvs.sh: Likewise.
19115 2008-09-26 Bruno Haible <bruno@clisp.org>
19117 * doc/posix-headers/sys_resource.texi: Reorder items.
19119 2008-09-26 Jim Meyering <meyering@redhat.com>
19121 fts: tweak inode comparison function
19122 * lib/fts.c (fts_compare_ino): Sort on increasing, not decreasing
19123 inode numbers, as documented.
19125 fts: sort dirent entries on inode number before traversing
19126 This avoids a quadratic, seek-related performance penalty when
19127 operating on a directory containing many entries (measurable at 10k;
19128 3.5 hours at 2 million entries with a cold cache) on certain types
19129 of file systems, including ext3 and ext4, but not tmpfs.
19130 * lib/fts.c (DT_MUST_BE, NOT_AN_INODE_NUMBER, D_INO): Define.
19131 (FTS_INODE_SORT_DIR_ENTRIES_THRESHOLD): Define if not defined.
19132 (S_MAGIC_TMPFS, S_MAGIC_NFS): Define.
19133 (fs_handles_readdir_ordered_dirents_efficiently): New function.
19134 (dirent_inode_sort_may_be_useful, fts_compare_ino): Likewise.
19135 (fts_build): Set the stat.st_ino member from D_INO.
19136 If it is likely to be useful, sort dirent entries on inode number.
19138 * m4/fts.m4 (gl_FUNC_FTS_CORE): Check for fstatfs, sys/vfs.h,
19139 and the struct statfs.f_type member.
19140 * modules/fts (Depends-on): Add d-ino.
19142 2008-09-26 Bruno Haible <bruno@clisp.org>
19144 * modules/sigpipe-die (Depends-on): Add sigpipe.
19146 * lib/stdio.in.h (fprintf, vfprintf, printf, vprintf, fputc, putc,
19147 putchar, fputs, puts, fwrite): Replace when REPLACE_STDIO_WRITE_FUNCS
19148 and GNULIB_STDIO_H_SIGPIPE are set.
19149 * lib/stdio-write.c: New file.
19150 * m4/stdio_h.m4 (gl_STDIO_H): Set GNULIB_FPRINTF, GNULIB_PRINTF,
19151 GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
19152 GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
19153 REPLACE_STDIO_WRITE_FUNCS.
19154 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FPRINTF, GNULIB_PRINTF,
19155 GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
19156 GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
19157 GNULIB_STDIO_H_SIGPIPE, REPLACE_STDIO_WRITE_FUNCS.
19158 * modules/stdio (Files): Add lib/stdio-write.c.
19159 (Makefile.am): Substitute GNULIB_FPRINTF, GNULIB_PRINTF,
19160 GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
19161 GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
19162 GNULIB_STDIO_H_SIGPIPE, REPLACE_STDIO_WRITE_FUNCS.
19163 * m4/fprintf-posix.m4 (gl_REPLACE_FPRINTF): Define
19164 REPLACE_FPRINTF_POSIX.
19165 * m4/printf-posix-rpl.m4 (gl_REPLACE_PRINTF): Define
19166 REPLACE_PRINTF_POSIX.
19167 * m4/vfprintf-posix.m4 (gl_REPLACE_VFPRINTF): Define
19168 REPLACE_VFPRINTF_POSIX.
19169 * m4/vprintf-posix.m4 (gl_REPLACE_VPRINTF): Define
19170 REPLACE_VPRINTF_POSIX.
19171 * doc/posix-functions/fprintf.texi: Mention the sigpipe module and the
19173 * doc/posix-functions/fputc.texi: Likewise.
19174 * doc/posix-functions/fputs.texi: Likewise.
19175 * doc/posix-functions/fwrite.texi: Likewise.
19176 * doc/posix-functions/printf.texi: Likewise.
19177 * doc/posix-functions/putc.texi: Likewise.
19178 * doc/posix-functions/putchar.texi: Likewise.
19179 * doc/posix-functions/puts.texi: Likewise.
19180 * doc/posix-functions/vfprintf.texi: Likewise.
19181 * doc/posix-functions/vprintf.texi: Likewise.
19183 * modules/safe-write (Depends-on): Add write.
19185 * modules/sigpipe-tests: New file.
19186 * tests/test-sigpipe.c: New file.
19187 * tests/test-sigpipe.sh: New file.
19189 * modules/write: New file.
19190 * lib/unistd.in.h: Include <sys/types.h>.
19191 (write): New declaration.
19192 * lib/write.c: New file.
19193 * m4/write.m4: New file.
19194 * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
19195 GNULIB_UNISTD_H_SIGPIPE, GNULIB_WRITE, REPLACE_WRITE.
19196 * modules/unistd (Makefile.am): Substitute GNULIB_UNISTD_H_SIGPIPE,
19197 GNULIB_WRITE, REPLACE_WRITE.
19198 * doc/posix-functions/write.texi: Mention the write, sigpipe modules
19199 and the SIGPIPE issue.
19201 * lib/signal.in.h (SIGPIPE): Define to a replacement value.
19202 (raise): New declaration.
19203 * lib/sigprocmask.c (SIGPIPE_handler): New variable.
19204 (ext_signal): New function.
19205 (rpl_raise): New function.
19206 * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Initialize
19207 GNULIB_SIGNAL_H_SIGPIPE.
19208 * modules/signal (Makefile.am): Substitute GNULIB_SIGNAL_H_SIGPIPE.
19209 * doc/posix-headers/signal.texi: Mention the SIGPIPE issue.
19211 * modules/sigpipe: New file.
19212 * m4/sigpipe.m4: New file.
19214 2008-09-25 Derek Price <derek@ximbiot.com>
19215 Bruno Haible <bruno@clisp.org>
19217 * gnulib-tool (func_import): Report all license incompatibilities, not
19218 just the first one.
19220 2008-09-25 Bruno Haible <bruno@clisp.org>
19222 * gnulib-tool (func_import): When computing the edits, consider not
19223 only the Makefile.ams that exist but also those that will be generated.
19225 2008-09-25 Simon Josefsson <simon@josefsson.org>
19227 * modules/sys_select-tests (Depends-on): Remove sys_select itself,
19228 fixes gnulib-tool --test warning about duplicate dependency.
19230 2008-09-25 Bruno Haible <bruno@clisp.org>
19232 * gnulib-tool: Don't ask the user to perform edits in the generated
19234 (func_emit_lib_Makefile_am): Emit empty SUBDIRS. Execute edits that
19235 apply to the Makefile.am being generated.
19236 (func_emit_tests_Makefile_am): Execute edits that apply to the
19237 Makefile.am being generated.
19238 (func_import): Setup list of Makefile.am edits before emitting the
19239 Makefile.ams, not at the end.
19240 (func_create_testdir): Update.
19241 Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
19243 2008-09-25 Yoann Vandoorselaere <yoann.v@prelude-ids.com>
19245 * gnulib-tool (func_import): Store the --tests-base option in the
19246 comment in gnulib-cache.m4.
19248 2008-09-24 Paolo Bonzini <bonzini@gnu.org>
19250 * NEWS: Document increased portability that sys_select now provides.
19252 * lib/sys_select.in.h: Install select wrapper.
19253 * lib/sys_socket.in.h: Use more descriptive name when there is no
19255 * lib/winsock-select.c: New.
19256 * m4/sys_select_h.m4: Compile lib/winsock-select.c if WinSock is used.
19257 Require gl_HEADER_SYS_SOCKET.
19258 * modules/sys_select: Depend on alloca, add lib/winsock-select.c.
19259 * modules/sys_select-tests: Copy dependencies from modules/poll-tests.
19260 * tests/test-sys_select.c: Add functional tests.
19262 2008-09-24 Eric Blake <ebb9@byu.net>
19264 open, fopen: close fd leak in last patch
19265 * lib/open.c (rpl_open): Close fd before returning error.
19266 * lib/fopen.c (rpl_fopen): Close fd before returning error.
19267 * doc/posix-functions/open.texi (open): Document that Irix also
19269 * doc/posix-functions/fopen.texi (fopen): Likewise.
19270 Reported by Paolo Bonzini.
19272 2008-09-24 Bruno Haible <bruno@clisp.org>
19274 Ensure that a filename ending in a slash cannot be used to access a
19276 * lib/open.c (rpl_open): When the filename ends in a slash, use fstat()
19277 to check whether it's really a directory.
19278 * lib/fopen.c: Include fcntl.h, unistd.h.
19279 (rpl_fopen): When the filename ends in a slash, use open(), fstat(),
19281 * modules/fopen (Depends-on): Add unistd.
19282 * tests/test-open.c (main): Try to open "/dev/null/" as a directory.
19283 * tests/test-fopen.c (main): Likewise.
19284 * doc/posix-functions/open.texi: Mention the HP-UX, Solaris bug.
19285 * doc/posix-functions/fopen.texi: Likewise.
19286 Reported by Eric Blake.
19288 2008-09-23 Eric Blake <ebb9@byu.net>
19290 c-stack: avoid compiler optimizations when provoking overflow
19291 * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Make
19292 recursion harder to optimize, to ensure a stack overflow occurs.
19293 * tests/test-c-stack.c (recurse): Likewise.
19294 Borrowed from libsigsegv.
19296 c-stack: work around Irix sigaltstack bug
19297 * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Check
19298 whether sigaltstack uses wrong end of stack_t (copied in part from
19300 * lib/c-stack.c (c_stack_action) [!HAVE_LIBSIGSEGV]: Work around
19301 Irix bug, without requiring an over-allocation.
19302 * doc/posix-functions/sigaltstack.texi (sigaltstack): Document the
19305 fopen: document mingw bug on directories
19306 * doc/posix-functions/fopen.texi (fopen): Mention mingw bug for
19307 not allowing a stream visiting a directory, even though reading
19308 from such a stream is not portable.
19310 2008-09-23 Paolo Bonzini <bonzini@gnu.org>
19312 * lib/poll.c: Rewrite.
19313 * modules/poll: Depend on alloca.
19315 2008-09-23 Paolo Bonzini <bonzini@gnu.org>
19317 * lib/sys_socket.in.h: Do not implement rpl_setsockopt here,
19318 instead define prototypes for a full set of wrappers. Ensure
19319 that Cygwin does not use the compatibility code, which is only
19321 * lib/winsock.c: New.
19322 * m4/sys_socket_h.m4: Compile lib/winsock.c if WinSock is being used.
19323 * modules/sys_socket: Add lib/winsock.c.
19325 * modules/poll-tests: Add errno and perror.
19326 * tests/test-poll.c: Use ioctl, not ioctlsocket.
19328 2008-09-23 Paolo Bonzini <bonzini@gnu.org>
19330 * tests/test-poll.c: Downgrade minimum needed Winsock version.
19332 2008-09-23 Bruno Haible <bruno@clisp.org>
19334 * doc/posix-functions/*: Add info about functions missing on IRIX 5.3.
19335 * doc/glibc-functions/*: Likewise.
19337 2008-09-23 Simon Josefsson <simon@josefsson.org>
19339 * tests/test-perror.sh (tmpfiles): Cleanup temporary files on
19342 2008-09-22 Eric Blake <ebb9@byu.net>
19343 Bruno Haible <bruno@clisp.org>
19345 vasnprintf: fix x86/glibc regression on printf("%La", 0.0L)
19346 * lib/vasnprintf.c (VASNPRINTF): Support 0.0 on platforms that
19347 supply %A but mishandle pseudo-NaN.
19348 Reported by Simon Josefsson.
19350 2008-09-21 Bruno Haible <bruno@clisp.org>
19352 * tests/test-lock.c (main): Tweak skip message.
19353 * tests/test-tls.c (main): Likewise.
19355 2008-09-21 Bruno Haible <bruno@clisp.org>
19357 * m4/sigaction.m4 (gl_SIGACTION): Remove unnecessary AC_SUBST. Check
19358 whether 'struct sigaction' has sa_sigaction here...
19359 (gl_PREREQ_SIG_HANDLER_H): ... not here.
19360 (gl_PREREQ_SIGACTION): Remove unnecessary AC_SUBST.
19362 2008-09-21 Bruno Haible <bruno@clisp.org>
19364 * MODULES.html.sh (Support for obsolete systems lacking ANSI C 89): New
19366 (Support for systems lacking ANSI C 89): Move stdlib, exit, strtol,
19367 strtoul, memchr, memcmp, memcpy, memmove, memset, strcspn, strpbrk to
19369 (Support for obsolete systems lacking POSIX:2001): New section.
19370 (String handling <string.h>): Move strdup to the new section.
19371 Suggested by Simon Josefsson and Paolo Bonzini.
19373 2008-09-21 Bruno Haible <bruno@clisp.org>
19375 * tests/test-vasnprintf-posix.c (test_function): Allow 3-digit
19376 exponents in %e and %g results on 'long double'. Needed for mingw's
19377 improved *printf functions.
19378 * tests/test-vasprintf-posix.c (test_function): Likewise.
19379 * tests/test-snprintf-posix.h (test_function): Likewise.
19380 * tests/test-sprintf-posix.h (test_function): Likewise.
19381 Reported by Eric Blake.
19383 2008-09-21 Bruno Haible <bruno@clisp.org>
19385 * tests/test-snprintf-posix.h (test_function): Remove useless ASSERTs.
19386 * tests/test-sprintf-posix.h (test_function): Likewise.
19388 2008-09-21 Bruno Haible <bruno@clisp.org>
19390 * modules/getpass (Depends-on): Add strdup-posix.
19392 New module 'strdup-posix'.
19393 * modules/strdup-posix: New file.
19394 * m4/strdup.m4 (gl_FUNC_STRDUP_POSIX): New macro.
19395 * lib/string.in.h (strdup): Replace if REPLACE_STRDUP is 1.
19396 * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
19398 * modules/string (Makefile.am): Substitute REPLACE_STRDUP.
19399 * doc/posix-functions/strdup.texi: Mention module strdup-posix.
19400 * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
19403 * modules/strdup (Depends-on): Remove malloc-posix.
19405 2008-09-20 Bruno Haible <bruno@clisp.org>
19407 * lib/fstrcmp.c: Add data about branch probabilities, from Ralf
19410 2008-09-20 Bruno Haible <bruno@clisp.org>
19412 Ensure that wint_t gets defined on IRIX 5.3.
19413 * lib/wchar.in.h (wint_t): Define if not defined by the system.
19414 * lib/wctype.in.h (wint_t): Likewise.
19415 (__wctype_wint_t): Remove type.
19416 (isw*): Use wint_t instead of __wctype_wint_t.
19417 * m4/wchar.m4 (gl_WCHAR_H): Invoke gt_TYPE_WINT_T and set HAVE_WINT_T.
19418 * modules/wchar (Files): Add m4/wint_t.m4.
19419 (Makefile.am): Substitute HAVE_WINT_T.
19420 * tests/test-wchar.c: Check that wchar_t and wint_t are defined.
19421 * tests/test-wctype.c: Check that wint_t is defined.
19422 * doc/posix-headers/wchar.texi: Mention the IRIX 5 problem.
19423 * doc/posix-headers/wctype.texi: Likewise.
19424 Reported by Tom G. Christensen <tgc@jupiterrise.com>.
19426 2008-09-18 Bruno Haible <bruno@clisp.org>
19428 * gnulib-tool (func_exit): Update comment.
19430 2008-09-18 Simon Josefsson <simon@josefsson.org>
19432 * modules/getaddrinfo (Depends-on): Remove strdup, this module
19433 assumes strdup exists and does not depend on strdup to return
19434 ENOMEM on out of memory conditions.
19436 2008-09-18 Bruno Haible <bruno@clisp.org>
19438 * lib/vasnprintf.c (VASNPRINTF): When printing ±0.0L in
19439 NEED_PRINTF_INFINITE_LONG_DOUBLE case with 'e' format, always use two
19440 digits for the exponent.
19442 2008-09-18 Jim Meyering <meyering@redhat.com>
19443 Bruno Haible <bruno@clisp.org>
19445 * lib/vasnprintf.c (decimal_point_char): Define also if
19446 NEED_PRINTF_INFINITE_LONG_DOUBLE.
19448 2008-09-16 Bruno Haible <bruno@clisp.org>
19449 and Eric Blake <ebb9@byu.net>
19451 vasnprintf: support Irix 5.3
19452 * lib/vasnprintf.c (VASNPRINTF): Also handle -0.0L on platforms
19453 that mishandle long double infinity.
19454 Reported by Tom G. Christensen.
19456 2008-09-16 Bruno Haible <bruno@clisp.org>
19458 * doc/glibc-functions/scandir.texi: Mention the function is missing on
19460 * doc/glibc-functions/alphasort.texi: Likewise.
19461 Reported by Michael Haubenwallner <michael.haubenwallner@salomon.at>.
19463 2008-09-16 Jim Meyering <meyering@redhat.com>
19465 posix-shell.m4: reject opensolaris's "sh (AT&T Research) 1993-12-28 s+"
19466 * m4/posix-shell.m4 (gl_POSIX_SHELL): Reject a shell that lets
19467 a umask modification leak out of a subshell. Otherwise, the
19468 opensolaris /bin/sh would be accepted and thus cause unwarranted
19469 failures in the coreutils test suite.
19471 2008-09-16 Paolo Bonzini <bonzini@gnu.org>
19473 * tests/test-poll.c (connect_to_socket): Allow non-blocking connect
19476 2008-09-16 Jim Meyering <meyering@redhat.com>
19478 avoid spurious test failure when library is built without ACL support
19479 * m4/acl.m4 (USE_ACL): Define as a shell variable, too, for...
19480 * modules/acl-tests (Makefile.am) [TESTS_ENVIRONMENT]: Add USE_ACL.
19481 * tests/test-file-has-acl.sh: Skip if USE_ACL == 0.
19482 * tests/test-copy-acl.sh: Likewise.
19484 2008-09-15 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
19486 * lib/fstrcmp.c (fstrcmp_bounded): Use a second, less quick upper bound
19487 based on character occurrence counts.
19489 2008-09-15 Eric Blake <ebb9@byu.net>
19491 tests: avoid some compiler warnings
19492 * tests/test-memchr.c (main): Pass NULL indirectly.
19493 * tests/test-closein.c (main): Avoid unused variable.
19495 2008-09-15 Bruno Haible <bruno@clisp.org>
19497 * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Test for all the macros that
19498 are missing on OpenBSD 4.0 individually.
19499 Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
19501 2008-09-15 Bruno Haible <bruno@clisp.org>
19503 * doc/posix-headers/errno.texi: Mention the Cygwin problem.
19504 * doc/posix-functions/strerror.texi: Mention also Cygwin.
19505 * doc/posix-functions/perror.texi: Likewise.
19506 * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Test also whether ECANCELED
19508 Reported by Eric Blake.
19510 * lib/errno.in.h: Use replacement values >= 2000.
19511 Reported by Eric Blake.
19513 2008-09-14 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
19515 * lib/fstrcmp.c (EXTRA_CONTEXT_FIELDS): Add field 'edit_count_limit'.
19516 (EARLY_ABORT): Return true when the edit_count has grown too beyond the
19518 (fstrcmp_bounded): Initialize the edit_count_limit. Return 0 when
19519 compareseq was aborted.
19521 2008-09-14 Bruno Haible <bruno@clisp.org>
19523 * lib/fstrcmp.c (EXTRA_CONTEXT_FIELDS): Combine xvec_edit_count and
19525 (NOTE_DELETE, NOTE_INSERT): Increment the combined edit count.
19526 (fstrcmp_bounded): Simplify result computation accordingly.
19528 2008-09-14 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
19530 * lib/fstrcmp.h (fstrcmp_bounded): New declaration.
19531 (fstrcmp): Define in terms of fstrcmp_bounded.
19532 * lib/fstrcmp.c (fstrcmp_bounded): Renamed from fstrcmp. Add
19533 lower_bound argument.
19534 Return quickly if the result is certainly < lower_bound.
19535 * tests/test-fstrcmp.c (check_fstrcmp): Test also fstrcmp_bounded.
19537 2008-09-14 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
19539 * lib/diffseq.h (EARLY_ABORT): New macro.
19540 (compareseq): Change return type to bool. Return true when EARLY_ABORT
19543 2008-09-14 Bruno Haible <bruno@clisp.org>
19545 * modules/perror-tests: New file.
19546 * tests/test-perror.sh: New file.
19547 * tests/test-perror.c: New file.
19549 New module 'perror'.
19550 * lib/stdio.in.h (perror): New declaration.
19551 * lib/perror.c: New file.
19552 * m4/perror.m4: New file.
19553 * modules/perror: New file.
19554 * MODULES.html.sh (Support for systems lacking POSIX:2001): Add perror.
19555 * doc/posix-functions/perror.texi: Mention the perror module.
19556 * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_PERROR,
19558 * modules/stdio (Makefile.am): Substitute GNULIB_PERROR,
19561 2008-09-14 Bruno Haible <bruno@clisp.org>
19563 * modules/stdio (Makefile.am): Reorder to match the order in
19565 * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
19567 2008-09-13 Bruno Haible <bruno@clisp.org>
19569 * lib/sys_socket.in.h (EINPROGRESS, ...): Remove definitions.
19571 2008-09-13 Bruno Haible <bruno@clisp.org>
19573 Extend strerror to cover the added errno values.
19574 * lib/strerror.c: Include errno.h and winsock2.h if it exists.
19575 (rpl_strerror): Provide error messages for the added errno values and
19576 for the WSA* values.
19577 * m4/strerror.m4 (gl_FUNC_STRERROR): Test REPLACE_STRERROR.
19578 (gl_FUNC_STRERROR_SEPARATE): If errno.h is replaced, always replace
19580 (gl_PREREQ_STRERROR): Test whether winsock2.h exists.
19581 * modules/strerror (Depends-on): Add errno.
19582 * doc/posix-functions/strerror.texi: Document the change.
19583 * tests/test-strerror.c (main): Check also the string for ETIMEDOUT
19586 2008-09-13 Bruno Haible <bruno@clisp.org>
19588 * modules/EOVERFLOW: Remove file.
19589 * m4/eoverflow.m4: Remove file.
19590 * modules/EOVERFLOW-tests: Remove file.
19591 * tests/test-EOVERFLOW.c: Remove file.
19592 * modules/fprintf-posix (Depends-on): Replace EOVERFLOW with errno.
19593 * modules/ftell (Depends-on): Likewise.
19594 * modules/getdelim (Depends-on): Likewise.
19595 * modules/getugroups (Depends-on): Likewise.
19596 * modules/poll (Depends-on): Likewise.
19597 * modules/snprintf (Depends-on): Likewise.
19598 * modules/sprintf-posix (Depends-on): Likewise.
19599 * modules/vasnprintf (Depends-on): Likewise.
19600 * modules/vasprintf (Depends-on): Likewise.
19601 * modules/vfprintf-posix (Depends-on): Likewise.
19602 * modules/vsnprintf (Depends-on): Likewise.
19603 * modules/vsprintf-posix (Depends-on): Likewise.
19604 * modules/xvasprintf (Depends-on): Likewise.
19605 * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
19606 * modules/unistdio/u8-vasprintf (Depends-on): Likewise.
19607 * modules/unistdio/u8-vsnprintf (Depends-on): Likewise.
19608 * modules/unistdio/u8-vsprintf (Depends-on): Likewise.
19609 * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
19610 * modules/unistdio/u8-u8-vasprintf (Depends-on): Likewise.
19611 * modules/unistdio/u8-u8-vsnprintf (Depends-on): Likewise.
19612 * modules/unistdio/u8-u8-vsprintf (Depends-on): Likewise.
19613 * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
19614 * modules/unistdio/u16-u16-vasprintf (Depends-on): Likewise.
19615 * modules/unistdio/u16-u16-vsnprintf (Depends-on): Likewise.
19616 * modules/unistdio/u16-u16-vsprintf (Depends-on): Likewise.
19617 * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
19618 * modules/unistdio/u16-vasprintf (Depends-on): Likewise.
19619 * modules/unistdio/u16-vsnprintf (Depends-on): Likewise.
19620 * modules/unistdio/u16-vsprintf (Depends-on): Likewise.
19621 * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
19622 * modules/unistdio/u32-vasprintf (Depends-on): Likewise.
19623 * modules/unistdio/u32-vsnprintf (Depends-on): Likewise.
19624 * modules/unistdio/u32-vsprintf (Depends-on): Likewise.
19625 * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
19626 * modules/unistdio/u32-u32-vasprintf (Depends-on): Likewise.
19627 * modules/unistdio/u32-u32-vsnprintf (Depends-on): Likewise.
19628 * modules/unistdio/u32-u32-vsprintf (Depends-on): Likewise.
19629 * modules/unistdio/ulc-fprintf (Depends-on): Likewise.
19630 * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
19631 * modules/unistdio/ulc-vasprintf (Depends-on): Likewise.
19632 * modules/unistdio/ulc-vfprintf (Depends-on): Likewise.
19633 * modules/unistdio/ulc-vsnprintf (Depends-on): Likewise.
19634 * modules/unistdio/ulc-vsprintf (Depends-on): Likewise.
19635 * MODULES.html.sh: Remove EOVERFLOW.
19636 * NEWS: Mention the change.
19638 2008-09-13 Bruno Haible <bruno@clisp.org>
19640 * modules/errno-tests: New file.
19641 * tests/test-errno.c: New file, incorporating tests/test-EOVERFLOW.c.
19643 * lib/errno.in.h: New file.
19644 * m4/errno_h.m4: New file, borrowing from m4/eoverflow.m4.
19645 * modules/errno: New file.
19646 * doc/posix-headers/errno.texi: Update documentation.
19647 * MODULES.html.sh (Support for systems lacking POSIX:2001): Add errno.
19649 2008-09-13 Bruno Haible <bruno@clisp.org>
19651 * tests/test-poll.c: Use #if for native Windows, rather than testing
19654 2008-09-13 Yoann Vandoorselaere <yoann.v@prelude-ids.com>
19655 Bruno Haible <bruno@clisp.org>
19657 * lib/glob.c: Don't include <pwd.h> on native Windows.
19658 (WINDOWS32): New macro.
19659 (glob) [WINDOW32]: Provide a reasonable replacement for getenv("HOME").
19661 2008-09-13 Bruno Haible <bruno@clisp.org>
19663 * lib/glthread/cond.h [USE_SOLARIS_THREADS]
19664 (ETIMEDOUT): Remove macro.
19665 (glthread_cond_timedwait_multithreaded): New declaration.
19666 (glthread_cond_timedwait): Use it.
19667 * lib/glthread/cond.c [USE_SOLARIS_THREADS]
19668 (glthread_cond_timedwait_multithreaded): New function.
19670 2008-09-12 Paolo Bonzini <bonzini@gnu.org>
19672 * modules/poll-tests: Do not check for io.h.
19673 * tests/test-poll.c: Check for __MSVCRT__ instead.
19675 2008-09-12 Paolo Bonzini <bonzini@gnu.org>
19677 * lib/sys_socket.in.h (EINPROGRESS): Define for Winsock case.
19678 * modules/poll-tests: Add inet_pton, stdbool, sockets.
19679 * tests/test-poll.c: Use them. Use _pipe on Windows.
19681 2008-09-12 Paolo Bonzini <bonzini@gnu.org>
19683 * modules/poll-tests: New.
19684 * tests/test-poll.c: New.
19686 2008-09-12 Eric Blake <ebb9@byu.net>
19688 frexp: test for NetBSD failure on -0.0
19689 * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Enhance test, since some, but
19690 not all, bugs from NetBSD 3.0 have been fixed.
19691 * doc/posix-functions/frexp.texi (frexp): Document bug.
19692 Reported by Thomas Klausner.
19694 signbit: work around bug of HP-UX 10.20 cc with -0.0 literal
19695 * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Rewrite test to avoid
19697 Reported by Jonathan C. Patschke <jp@centtech.com>.
19699 2008-09-11 Yoann Vandoorselaere <yoann.v@prelude-ids.com>
19701 * lib/glthread/cond.h: Use dummy implementation also if
19704 2008-09-11 Yoann Vandoorselaere <yoann.v@prelude-ids.com>
19706 * modules/fnmatch-posix (License): Change to LGPLv2+.
19707 * modules/fnmatch-gnu (License): Likewise.
19709 2008-09-11 Yoann Vandoorselaere <yoann.v@prelude-ids.com>
19711 * lib/poll.c (poll): Fix polling unconnected server sockets on WIN32.
19713 2008-09-11 Jim Meyering <meyering@redhat.com>
19715 * users.txt: Add gtk-vnc.
19717 2008-09-08 Simon Josefsson <simon@josefsson.org>
19719 * tests/test-bitrotate.c: Test 8/16-bit rotates with 0 and maximum
19722 * lib/bitrotate.h: Doc fix, mention that N can be wider than minimally
19723 required for 16-bit and 8-bit rotates.
19724 * lib/bitrotate.h (rotl64, rotr64, rotl32, rotl32, rotl16, rotr16,
19725 rotl8, rotr8): Use UINT64_MAX, UINT32_MAX, UINT16_MAX, and
19726 UINT8_MAX instead of hard-coded constants.
19727 Suggested by Paul Eggert.
19729 2008-09-07 Bruno Haible <bruno@clisp.org>
19731 * tests/test-striconveh.c (main): Check behaviour when converting from
19734 Make striconveh work better with stateful encodings.
19735 * lib/striconveh.c (iconv_carefully, iconv_carefully_1): Don't assume
19736 that iconv does not increment the inptr when returning -1/EINVAL.
19738 2008-09-07 Bruno Haible <bruno@clisp.org>
19740 * build-aux/config.rpath: Update according to libtool-2.2.6.
19741 * build-aux/config.libpath: Likewise.
19743 2008-09-06 Bruno Haible <bruno@clisp.org>
19745 * lib/freadahead.c (freadahead): Add conditional for SLOW_BUT_NO_HACKS.
19746 * lib/freadptr.c (freadptr): Likewise.
19747 * lib/freadseek.c (freadptrinc): Likewise.
19748 Reported by Simon Josefsson.
19750 2008-09-06 Bruno Haible <bruno@clisp.org>
19752 * modules/freadptr (License): Change to LGPLv2+.
19753 * modules/freadseek (License): Likewise.
19754 Suggested by Eric Blake.
19756 * modules/memchr2 (License): Change to LGPLv2+.
19757 Approved by Eric Blake.
19759 2008-09-04 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
19760 Bruno Haible <bruno@clisp.org>
19762 Make gnulib-tool work with native 'sed' on AIX.
19763 * gnulib-tool (sed_noop): New variable.
19764 (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am, func_import,
19765 func_add_or_update, func_create_testdir): Use it to initialize sed
19767 Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
19769 2008-09-04 Albert Chin <bug-gnulib@mlists.thewrittenword.com>
19770 Bruno Haible <bruno@clisp.org>
19772 * m4/include_next.m4 (gl_INCLUDE_NEXT): Add check whether #include_next
19773 also works after #include directives.
19775 2008-09-04 OndÅ™ej VaÅ¡Ãk <ovasik@redhat.com>
19777 getdate.y: reject an out-of-range timezone value
19778 * lib/getdate.y (time_zone_hhmm): Reject any TZ offset that is outside
19779 the range [-24...+24]. When specified with only one or two digits,
19780 * tests/test-getdate.c: Tests for the fix.
19781 * doc/getdate.texi: Document this change.
19783 2008-09-03 Bruno Haible <bruno@clisp.org>
19785 * doc/glibc-functions/strverscmp.texi: Mention the strverscmp module.
19787 2008-09-02 Simon Josefsson <simon@josefsson.org>
19789 * lib/bitrotate.h (rotl64, rotr64): Add. Suggested by Bruce Korb
19790 <bruce.korb@gmail.com> with ideas from Ben Pfaff
19791 <blp@cs.stanford.edu>, Bruno Haible <bruno@clisp.org> and Eric
19792 Blake <ebb9@byu.net>.
19794 * tests/test-bitrotate.c: Add more test vectors.
19796 2008-09-02 Eric Blake <ebb9@byu.net>
19798 vasnprintf-posix: handle large precision via %.*d
19799 * lib/vasnprintf.c (VASNPRINTF): Don't pass precision to snprintf
19800 when handling it ourselves.
19801 * tests/test-vasnprintf-posix.c (test_function): Add test.
19802 * tests/test-snprintf-posix.h (test_function): Likewise.
19803 * tests/test-sprintf-posix.h (test_function): Likewise.
19804 * tests/test-vasprintf-posix.c (test_function): Likewise.
19805 Reported by Alain Guibert.
19807 2008-09-01 Eric Blake <ebb9@byu.net>
19809 c-stack: make configure-time check more robust
19810 * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Check for
19811 successful sigaction call.
19812 Reported by Tom G. Christensen.
19814 2008-09-01 Bruno Haible <bruno@clisp.org>
19816 New module 'findprog-lgpl'.
19817 * modules/findprog-lgpl: New file.
19818 * lib/findprog-lgpl.c: New file.
19819 * lib/findprog.c: Compile nothing in findprog.c if findprog-lgpl.c is
19820 also compiled. Consider the possibly defined symbol IN_FINDPROG_LGPL
19821 to decide whether to use strdup or xstrdup, concatenated_filename or
19822 xconcatenated_filename.
19824 2008-09-01 Bruno Haible <bruno@clisp.org>
19826 Split module 'concat-filename' into 'concat-filename' (LGPL) and
19827 'xconcat-filename' (GPL).
19828 * modules/concat-filename (Depends-on): Add malloc-posix, remove xalloc.
19829 (License): Change to LGPLv2+.
19830 * modules/xconcat-filename: New file.
19831 * lib/concat-filename.h (concatenated_filename): Change specification.
19832 (xconcatenated_filename): New declaration.
19833 * lib/concat-filename.c: Include errno.h, stdlib.h, not xalloc.h.
19834 (concatenated_filename): Use malloc instead of xalloc. Handle out-of-
19836 * lib/xconcat-filename.c: New file.
19837 * NEWS: Mention the change.
19838 * lib/findprog.c: Include concat-filename.h, not filename.h.
19839 (find_in_path): Use xconcatenated_filename instead of
19840 concatenated_filename.
19841 * lib/javacomp.c: Include concat-filename.h, not filename.h.
19842 (is_envjavac_gcj43_usable, is_envjavac_oldgcj_14_14_usable,
19843 is_envjavac_oldgcj_14_13_usable, is_envjavac_nongcj_usable,
19844 is_gcj_present, is_gcj43_usable, is_oldgcj_14_14_usable,
19845 is_oldgcj_14_13_usable, is_javac_usable): Use xconcatenated_filename
19846 instead of concatenated_filename.
19847 * lib/javaexec.c: Include concat-filename.h, not filename.h.
19848 (execute_java_class): Use xconcatenated_filename instead of
19849 concatenated_filename.
19850 * modules/findprog (Depends-on): Add xconcat-filename, remove filename.
19851 * modules/javacomp (Depends-on): Likewise.
19852 * modules/javaexec (Depends-on): Likewise.
19854 2008-09-01 Bruno Haible <bruno@clisp.org>
19856 Split module 'filename' into 'filename' and 'concat-filename'.
19857 * modules/filename: Keep only lib/filename.h.
19858 (License): Change to LGPLv2+.
19859 * modules/concat-filename: New file, extracted from modules/filename.
19860 * lib/filename.h (concatenated_filename): Remove declaration.
19861 * lib/concat-filename.h: New file, extracted from lib/filename.h.
19862 * lib/concat-filename.c: Include concat-filename.h.
19863 * NEWS: Mention the change.
19865 2008-09-01 Simon Josefsson <simon@josefsson.org>
19867 * lib/bitrotate.h (rotl8, rotr8): Add.
19869 * modules/bitrotate (configure.ac): Need
19870 AC_REQUIRE([AC_C_INLINE]).
19871 (Description): Mention stdint.h. Reported by Bruno Haible
19874 * lib/bitrotate.h (rotr16, rotl16): Fix mask value. Reported by
19875 Paolo Bonzini <bonzini@gnu.org>.
19877 2008-08-31 Bruno Haible <bruno@clisp.org>
19879 Assume Solaris specific bi-arch conventions on Solaris systems.
19880 * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): On Solaris in 64-bit
19881 mode, set acl_libdirstem to lib/64. Also set acl_libdirstem2.
19882 * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): If acl_libdirstem does not
19883 work, try acl_libdirstem2 as fallback. Otherwise treat acl_libdirstem2
19884 like acl_libdirstem.
19885 (AC_LIB_LINKFLAGS_FROM_LIBS): Treat acl_libdirstem2 like
19887 * NEWS: Mention the change.
19888 Reported by Ben Taylor <bentaylor.solx86@gmail.com>.
19890 2008-08-31 Jim Meyering <meyering@redhat.com>
19892 * lib/strftime.h: Add comments describing the two added arguments.
19894 remove duplicate #include directives
19895 * lib/chdir-long.c [TEST_CHDIR]: Remove duplicate #include <stdio.h>.
19896 * lib/putenv.c: Remove duplicate #include <stdlib.h>.
19898 2008-08-31 Bruno Haible <bruno@clisp.org>
19900 New module 'sigpipe-die'.
19901 * modules/sigpipe-die: New file.
19902 * lib/sigpipe-die.h: New file.
19903 * lib/sigpipe-die.c: New file.
19904 * MODULES.html.sh (Signal handling): Add sigpipe-die.
19906 2008-08-31 Bruno Haible <bruno@clisp.org>
19908 Don't override previously installed signal handlers.
19909 * lib/fatal-signal.c (saved_sigactions): New variable.
19910 (uninstall_handlers): Reset the signal to the saved handler, not
19911 to SIG_DFL (except when ignored).
19912 (install_handlers): Save the previous handlers.
19914 2008-08-30 Bruno Haible <bruno@clisp.org>
19916 * gnulib-tool (func_reset_sigpipe): New function.
19917 (func_get_automake_snippet, func_modules_transitive_closure,
19918 func_import): Invoke it before a join command that reads from stdin,
19919 to avoid "echo: write error: Broken pipe" error messages on stderr.
19920 Reported by Sam Steingold <sds@gnu.org>.
19922 2008-08-30 Bruno Haible <bruno@clisp.org>
19924 * m4/fopen.m4 (gl_FUNC_FOPEN): Test against bug with trailing slash.
19925 Code copied from m4/open.m4.
19926 * lib/fopen.c (rpl_fopen): Return NULL if the mode specifies write
19927 access and the filename ends in a slash. Code copied from lib/open.c.
19928 * doc/posix-functions/fopen.texi: Document bug with trailing slash.
19929 * tests/test-fopen.c (main): Check against bug with trailing slash.
19931 2008-08-29 Bruno Haible <bruno@clisp.org>
19933 Avoid some "gcc -pedantic" warnings.
19934 * m4/include_next.m4 (gl_INCLUDE_NEXT): Set also PRAGMA_SYSTEM_HEADER.
19935 * lib/arpa_inet.in.h: Use PRAGMA_SYSTEM_HEADER.
19936 * lib/dirent.in.h: Likewise.
19937 * lib/fcntl.in.h: Likewise.
19938 * lib/float.in.h: Likewise.
19939 * lib/iconv.in.h: Likewise.
19940 * lib/inttypes.in.h: Likewise.
19941 * lib/locale.in.h: Likewise.
19942 * lib/math.in.h: Likewise.
19943 * lib/netinet_in.in.h: Likewise.
19944 * lib/search.in.h: Likewise.
19945 * lib/signal.in.h: Likewise.
19946 * lib/stdarg.in.h: Likewise.
19947 * lib/stdint.in.h: Likewise.
19948 * lib/stdio.in.h: Likewise.
19949 * lib/stdlib.in.h: Likewise.
19950 * lib/string.in.h: Likewise.
19951 * lib/strings.in.h: Likewise.
19952 * lib/sys_select.in.h: Likewise.
19953 * lib/sys_socket.in.h: Likewise.
19954 * lib/sys_stat.in.h: Likewise.
19955 * lib/sys_time.in.h: Likewise.
19956 * lib/sysexits.in.h: Likewise.
19957 * lib/time.in.h: Likewise.
19958 * lib/unistd.in.h: Likewise.
19959 * lib/wchar.in.h: Likewise.
19960 * lib/wctype.in.h: Likewise.
19961 * modules/arpa_inet (Makefile.am): Also substitute PRAGMA_SYSTEM_HEADER.
19962 * modules/fchdir (Makefile.am): Likewise.
19963 * modules/fcntl (Makefile.am): Likewise.
19964 * modules/float (Makefile.am): Likewise.
19965 * modules/iconv_open (Makefile.am): Likewise.
19966 * modules/inttypes (Makefile.am): Likewise.
19967 * modules/locale (Makefile.am): Likewise.
19968 * modules/math (Makefile.am): Likewise.
19969 * modules/netinet_in (Makefile.am): Likewise.
19970 * modules/search (Makefile.am): Likewise.
19971 * modules/signal (Makefile.am): Likewise.
19972 * modules/stdarg (Makefile.am): Likewise.
19973 * modules/stdint (Makefile.am): Likewise.
19974 * modules/stdio (Makefile.am): Likewise.
19975 * modules/stdlib (Makefile.am): Likewise.
19976 * modules/string (Makefile.am): Likewise.
19977 * modules/strings (Makefile.am): Likewise.
19978 * modules/sys_select (Makefile.am): Likewise.
19979 * modules/sys_socket (Makefile.am): Likewise.
19980 * modules/sys_stat (Makefile.am): Likewise.
19981 * modules/sys_time (Makefile.am): Likewise.
19982 * modules/sysexits (Makefile.am): Likewise.
19983 * modules/time (Makefile.am): Likewise.
19984 * modules/unistd (Makefile.am): Likewise.
19985 * modules/wchar (Makefile.am): Likewise.
19986 * modules/wctype (Makefile.am): Likewise.
19987 Reported by Reuben Thomas <rrt@sc3d.org>.
19989 2008-08-29 Bruno Haible <bruno@clisp.org>
19991 * m4/include_next.m4 (gl_INCLUDE_NEXT): Don't define HAVE_INCLUDE_NEXT
19994 2008-08-29 Simon Josefsson <simon@josefsson.org>
19996 * MODULES.html.sh (Misc): Add bitrotate.
19998 * modules/bitrotate: New file.
20000 * lib/bitrotate.h: New file.
20002 * modules/bitrotate-tests: New file.
20004 * tests/test-bitrotate.c: New file.
20006 * modules/crypto/gc-arctwo, modules/crypto/arctwo: Add dependency
20007 on the bitrotate module.
20009 * lib/arctwo.c: Use new bitrotate module.
20011 2008-08-29 Jim Meyering <meyering@redhat.com>
20013 bootstrap: merge changes from coreutils
20014 * build-aux/bootstrap (cp_mark_as_generated): Preserve perms
20015 of copied files. Remove a kludge, now that this is fixed.
20016 * build-aux/bootstrap: Fix unportable expr usage. (by Ralf Wildenhues)
20017 * build-aux/bootstrap: Remove $bt and $bt2 also when not using gettext.
20018 * build-aux/bootstrap: Remove coreutils-specific SUBDIRS-related code.
20020 2008-08-29 Bruno Haible <bruno@clisp.org>
20022 * MODULES.html.sh: Remove --cvs-urls option.
20024 2008-08-28 Jose E. Marchesi <jemarch@gnu.org> (tiny change)
20026 maint.mk: adjust to file name change
20027 * top/maint.mk: s/Makefile.cfg/cfg.mk/.
20029 2008-08-28 Jim Meyering <meyering@redhat.com>
20031 * modules/getndelim2 (License): Relicense to LGPLv2+.
20032 Approved by Richard Stallman for the version of 1995, and by
20033 Paul Eggert, Bruno Haible, Eric Blake for their contributions.
20035 2008-08-27 Paolo Bonzini <bonzini@gnu.org>
20037 * lib/getdelim.c (flockfile, funlockfile): Make all of them
20038 dummy if one is not available. Do not touch them if
20039 USE_UNLOCKED_IO, instead letting unlocked-io.h do that.
20040 (getc_maybe_unlocked): New.
20041 * m4/getdelim.m4 (gl_PREREQ_GETDELIM): Check for getc_unlocked.
20043 2008-08-26 Eric Blake <ebb9@byu.net>
20045 doc/INSTALL: resync from autoconf
20046 * doc/Makefile (INSTALL, INSTALL.ISO, INSTALL.UTF-8): Simplify.
20047 (INSTALL_PRELUDE): Delete; this is done more efficiently by
20049 * install.texi [!autoconf]: ...here. Resync from autoconf.
20050 * INSTALL: Regenerate.
20051 * INSTALL.ISO: New file.
20052 * INSTALL.UTF-8: Likewise.
20054 2008-08-26 Jim Meyering <meyering@redhat.com>
20056 GNUmakefile: cfg.mk definitions override default autoreconf-rerun policy
20057 * top/GNUmakefile (_is-dist-target, _is-install-target): Make
20058 these definitions conditional, so that they may be overridden, too.
20060 2008-08-26 Bruno Haible <bruno@clisp.org>
20062 Generate INSTALL file variants with prettier quotes.
20063 * doc/Makefile (INSTALL_PRELUDE): New macro.
20065 (INSTALL.ISO, INSTALL.UTF-8): New rules.
20067 2008-08-26 Bruno Haible <bruno@clisp.org>
20069 Run makeinfo in an English locale.
20070 * doc/Makefile (MAKEINFO): New variable.
20072 2008-08-26 Bruno Haible <bruno@clisp.org>
20074 * doc/Makefile (INSTALL): Use --no-validate instead of --no-warn.
20075 Suggested by Eric Blake.
20077 2008-08-25 Bruno Haible <bruno@clisp.org>
20079 * doc/Makefile (INSTALL): Generate with @firstparagraphindent set.
20081 2008-08-25 Eric Blake <ebb9@byu.net>
20083 c-stack: test that stack overflow can be caught
20084 * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Also check
20085 that platform allows handling stack overflow; at least OS/2 EMX
20086 has sigaltstack, but crashes before transferring control to
20087 handler on stack overflow.
20088 * lib/c-stack.c [HAVE_SIGALTSTACK]: Adjust conditions to also
20089 check for HAVE_STACK_OVERFLOW_HANDLING.
20090 Reported by Elbert Pol.
20092 2008-08-25 Bruno Haible <bruno@clisp.org>
20094 * doc/posix-functions/strftime.texi: Fix description of strftime
20097 2008-08-24 Bruno Haible <bruno@clisp.org>
20099 * tests/uniwidth/test-uc_width2.c: New file.
20100 * tests/uniwidth/test-uc_width2.sh: New file.
20101 * modules/uniwidth/width-tests (Files): Add the new files.
20102 (TESTS): Add uniwidth/test-uc_width2.sh.
20103 (TESTS_ENVIRONMENT): New variable.
20104 (check_PROGRAMS): Add test-uc_width2.
20105 (test_uc_width2_SOURCES): New variable.
20107 Fix uc_width(0x00AB) bug, introduced on 2007-07-08.
20108 * lib/uniwidth/width.c (nonspacing_table_data): Set bit for 0x00AD,
20110 Reported by Alexander V. Lukyanov <lav@netis.ru>.
20112 2008-08-22 Eric Blake <ebb9@byu.net>
20114 test-lock, test-tls: mention why a test is skipped
20115 * tests/test-lock.c (main) [!USE_*_THREADS]: Print why test is
20117 * tests/test-tls.c (main) [!USE_*_THREADS]: Likewise.
20119 count-one-bits: relax license
20120 * modules/count-one-bits (License): Relicense to LGPLv2+.
20121 Suggested by Ludovic Courtès, approved by Ben Pfaff.
20123 2008-08-22 Andreas Schwab <schwab@suse.de>
20125 * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX):
20126 Remove spurious space in assignment.
20128 2008-08-21 Simon Josefsson <simon@josefsson.org>
20130 * m4/autobuild.m4: Use TZ=UTC0 instead of TZ=UTC. Reported by
20131 Paul Eggert <eggert@CS.UCLA.EDU>.
20133 2008-08-20 Paolo Bonzini <bonzini@gnu.org>
20135 * modules/gettext: Add m4/threadlib.m4.
20137 2008-08-19 Eric Blake <ebb9@byu.net>
20139 test-c-stack: fix compilation failure on FreeBSD 5.0
20140 * tests/test-c-stack.c [HAVE_SETRLIMIT]: Include prerequisite
20141 headers before <sys/resource.h>.
20142 * doc/posix-headers/sys_resource.texi (sys/resource.h): Document
20144 Reported by Nelson H. F. Beebe.
20146 strverscmp: migrate from "strverscmp.h" to <string.h>
20147 * modules/string (Makefile.am): Add new hooks.
20148 * modules/strverscmp (Files): Remove strverscmp.h.
20149 (Depends-on): Add string.
20150 (configure.ac): Add indicator.
20151 (Include): Mention new header.
20152 * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Provide new
20154 * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Inform string module of
20156 * lib/strverscmp.h: Delete.
20157 * lib/string.in.h (strverscmp): Provide declaration, when needed.
20158 * tests/test-strverscmp.c (includes): Adjust client.
20159 * lib/check-version.c (includes): Likewise.
20160 * NEWS: Document the change.
20162 strverscmp: add unit test
20163 * modules/strverscmp-tests: New file.
20164 * tests/test-strverscmp.c: Likewise.
20166 2008-08-19 Simon Josefsson <simon@josefsson.org>
20168 * lib/gc-gnulib.c: Indentation cleanup. Add some comments
20169 regarding Windows crypto stuff, from Mono.
20171 2008-08-19 Adam Strzelecki <ono@java.pl> (tiny change)
20173 * lib/gc-gnulib.c: Use CRYPT_VERIFY_CONTEXT. Try to use Intel CSP
20174 if present, for intel RND. Return error on failures.
20176 2008-08-18 Ben Pfaff <blp@gnu.org>
20178 gitlog-to-changelog: give better diagnostic for failed pipe-open
20179 * build-aux/gitlog-to-changelog: Improve error message: suggest
20180 that the version of Git may be too old.
20182 2008-08-18 Simon Josefsson <simon@josefsson.org>
20184 * m4/autobuild.m4: Use TZ=UTC to avoid time zone complexity. Use
20185 ISO 8601 format. Suggested by Greg Troxel <gdt@ir.bbn.com>.
20187 2008-08-18 Bruno Haible <bruno@clisp.org>
20189 * lib/glthread/thread.h [USE_SOLARIS_THREADS]: Use thread_in_use(), not
20192 2008-08-18 Bruno Haible <bruno@clisp.org>
20194 * lib/glthread/threadlib.c: Include <pthread.h>.
20196 2008-08-18 Bruno Haible <bruno@clisp.org>
20198 * lib/glthread/lock.h [USE_SOLARIS_THREADS]: Fix
20199 glthread_recursive_lock_* macros.
20200 * lib/glthread/lock.c (glthread_recursive_lock_destroy_multithreaded):
20203 2008-08-18 Bruno Haible <bruno@clisp.org>
20205 * lib/glthread/thread.c: Avoid forcing a context switch right after
20208 2008-08-17 Bruno Haible <bruno@clisp.org>
20210 * lib/glthread/thread.c: New file, based on code from tests/test-lock.c.
20211 * lib/glthread/thread.h: Provide Win32 specific implementation.
20212 * modules/thread (Files): Add lib/glthread/thread.c.
20213 (Depends-on): Add lock.
20214 (Makefile.am): Add glthread/thread.c to lib_SOURCES.
20216 2008-08-17 Yoann Vandoorselaere <yoann.v@prelude-ids.com>
20218 New module 'yield'.
20219 * modules/yield: New file.
20220 * lib/glthread/yield.h: New file.
20221 * m4/yield.m4: New file.
20222 * MODULES.html.sh (Multithreading): Add yield.
20224 2008-08-17 Yoann Vandoorselaere <yoann.v@prelude-ids.com>
20226 New module 'thread'.
20227 * modules/thread: New file.
20228 * lib/glthread/thread.h: New file.
20229 * m4/thread.m4: New file.
20230 * MODULES.html.sh (Multithreading): Add thread.
20232 2008-08-17 Bruno Haible <bruno@clisp.org>
20234 * lib/glthread/lock.h: Include <stdlib.h> always.
20235 * lib/glthread/tls.h: Likewise.
20236 * lib/glthread/cond.h: Likewise.
20238 2008-08-17 Yoann Vandoorselaere <yoann.v@prelude-ids.com>
20241 * modules/cond: New file.
20242 * lib/glthread/cond.h: New file.
20243 * lib/glthread/cond.c: New file.
20244 * m4/cond.m4: New file.
20245 * MODULES.html.sh (Multithreading): Add cond.
20247 2008-08-16 Eric Blake <ebb9@byu.net>
20249 c-stack: fix regression on Irix 5.3 from 2008-06-21
20250 * m4/c-stack.m4 (gl_PREREQ_C_STACK): Move check for
20252 * m4/sigaction.m4 (gl_PREREQ_SIG_HANDLER_H): ...here.
20253 (gl_PREREQ_SIGACTION): Depend on sig-handler.h prereq's.
20254 * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Set the default.
20255 * modules/signal (Makefile.am): Use the value.
20256 * lib/signal.in.h (sa_sigaction) [HAVE_SIGACTION
20257 && !HAVE_STRUCT_SIGACTION_SA_SIGACTION]: Define.
20258 * doc/posix-headers/signal.texi (signal.h): Document this
20260 * doc/posix-functions/sigaction.texi (sigaction): Likewise.
20261 Reported by Tom G. Christensen.
20263 2008-08-17 Bruno Haible <bruno@clisp.org>
20265 New module 'threadlib'.
20266 * modules/threadlib: New file.
20267 * lib/glthread/threadlib.c: New file, extracted from
20268 lib/glthread/lock.c.
20269 * lib/glthread/lock.c (dummy_thread_func, glthread_in_use): Remove
20271 * m4/threadlib.m4: New file, from m4/lock.m4, renaming gl_LOCK to
20272 gl_THREADLIB and gl_LOCK_EARLY to gl_THREADLIB_EARLY.
20273 * m4/lock.m4 (gl_LOCK_EARLY, gl_LOCK_EARLY_BODY, gl_LOCK_BODY): Remove
20275 (gl_LOCK): Just require gl_THREADLIB and perform checks for lock.h.
20276 (gl_DISABLE_THREADS): Remove macro.
20277 * modules/lock (Files): Remove build-aux/config.rpath.
20278 (Depends-on): Remove havelib. Add threadlib.
20279 (configure.ac-early): Remove section.
20280 * m4/tls.m4 (gl_TLS): Require gl_THREADLIB instead of gl_LOCK.
20281 * modules/tls (Depends-on): Remove lock. Add threadlib.
20282 (Link): New section, copied from threadlib.
20283 * MODULES.html.sh (Multithreading): Add threadlib.
20285 2008-08-14 Bruno Haible <bruno@clisp.org>
20287 * lib/glthread/lock.h (glthread_lock_lock, glthread_lock_unlock,
20288 glthread_lock_destroy, glthread_rwlock_rdlock, glthread_rwlock_wrlock,
20289 glthread_rwlock_unlock, glthread_rwlock_destroy,
20290 glthread_recursive_lock_lock, glthread_recursive_lock_unlock,
20291 glthread_recursive_lock_destroy): Define as macros always.
20292 * lib/glthread/lock.c (glthread_lock_lock_func): Renamed from
20293 glthread_lock_lock.
20294 (glthread_lock_unlock_func): Renamed from glthread_lock_unlock.
20295 (glthread_lock_destroy_func): Renamed from glthread_lock_destroy.
20296 (glthread_rwlock_rdlock_func): Renamed from glthread_rwlock_rdlock.
20297 (glthread_rwlock_wrlock_func): Renamed from glthread_rwlock_wrlock.
20298 (glthread_rwlock_unlock_func): Renamed from glthread_rwlock_unlock.
20299 (glthread_rwlock_destroy_func): Renamed from glthread_rwlock_destroy.
20300 (glthread_recursive_lock_lock_func): Renamed from
20301 glthread_recursive_lock_lock.
20302 (glthread_recursive_lock_unlock_func): Renamed from
20303 glthread_recursive_lock_unlock.
20304 (glthread_recursive_lock_destroy_func): Renamed from
20305 glthread_recursive_lock_destroy.
20307 2008-08-14 Bruno Haible <bruno@clisp.org>
20309 * lib/glthread/lock.h: Renamed from lib/lock.h.
20310 * lib/glthread/lock.c: Renamed from lib/lock.c. Update includes.
20311 * lib/glthread/tls.h: Renamed from lib/tls.h.
20312 * lib/glthread/tls.c: Renamed from lib/tls.c. Update includes.
20313 * lib/fstrcmp.c: Update includes.
20314 * lib/strsignal.c: Update includes.
20315 * modules/lock (Files, Makefile.am): Update.
20316 (Include): Change to "glthread/lock.h".
20317 * modules/tls (Files, Makefile.am): Update.
20318 (Include): Change to "glthread/tls.h".
20319 * tests/test-lock.c: Update includes.
20320 * tests/test-tls.c: Update includes.
20321 * NEWS: Mention the renamed header files.
20323 2008-08-11 Jim Meyering <meyering@redhat.com>
20325 * lib/fts_.h: Fix grammar (insert a missing "is") in a comment.
20327 2008-08-11 Eric Blake <ebb9@byu.net>
20329 test-c-stack: avoid C99-ism
20330 * tests/test-c-stack.c (main): Fix whitespace, move declaration
20332 Reported by Alain Guibert.
20334 2008-08-10 Jim Meyering <meyering@redhat.com>
20336 ensure that return value of uinttostr et al are not ignored
20337 * lib/inttostr.h (__GNUC_PREREQ): Define.
20338 (__attribute_warn_unused_result__): Define.
20339 (offtostr, imaxtostr, umaxtostr, uinttostr): Apply the attribute.
20341 2008-08-07 Paolo Bonzini <bonzini@gnu.org>
20343 * lib/lock.c (glthread_recursive_lock_init_multithreaded)
20344 [!PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: Fix typo.
20346 2008-08-07 Jim Meyering <meyering@redhat.com>
20348 * m4/inet_pton.m4: Fix typo in comment: s/inet_ntop/inet_pton/.
20350 * modules/mkstemp (License): Relicense under LGPLv2+.
20351 * modules/tempname (License): Likewise.
20353 2008-08-06 Bruno Haible <bruno@clisp.org>
20355 * lib/poll.c (poll): Further micro-optimization.
20357 2008-08-06 Jim Meyering <meyering@redhat.com>
20359 inet_pton.c: use locale-independent tolower
20360 * lib/inet_pton.c: Include <c-ctype.h> rather than <ctype.h>.
20361 (inet_pton6): Use c_tolower rather than tolower.
20362 * modules/inet_pton (Depends-on): Add c-ctype.
20364 2008-08-06 Paolo Bonzini <bonzini@gnu.org>
20366 * lib/poll.c (poll): Avoid division when timeout is 0, cache
20367 _SC_OPEN_MAX, avoid repeated access to errno. Check for nfd < 0.
20369 2008-08-06 Jim Meyering <meyering@redhat.com>
20371 * modules/inet_pton (License): Relicense under LGPLv2+.
20373 2008-08-03 Bruno Haible <bruno@clisp.org>
20375 Additional non-aborting API for lock and tls.
20376 * lib/lock.h: Include <errno.h>.
20377 (glthread_lock_init): New macro/function.
20378 (gl_lock_init): Define as wrapper around glthread_lock_init.
20379 (glthread_lock_lock): New macro/function.
20380 (gl_lock_lock): Define as wrapper around glthread_lock_lock.
20381 (glthread_lock_unlock): New macro/function.
20382 (gl_lock_unlock): Define as wrapper around glthread_lock_unlock.
20383 (glthread_lock_destroy): New macro/function.
20384 (gl_lock_destroy): Define as wrapper around glthread_lock_destroy.
20385 (glthread_rwlock_init): New macro/function.
20386 (gl_rwlock_init): Define as wrapper around glthread_rwlock_init.
20387 (glthread_rwlock_rdlock): New macro/function.
20388 (gl_rwlock_rdlock): Define as wrapper around glthread_rwlock_rdlock.
20389 (glthread_rwlock_wrlock): New macro/function.
20390 (gl_rwlock_wrlock): Define as wrapper around glthread_rwlock_wrlock.
20391 (glthread_rwlock_unlock): New macro/function.
20392 (gl_rwlock_unlock): Define as wrapper around glthread_rwlock_unlock.
20393 (glthread_rwlock_destroy): New macro/function.
20394 (gl_rwlock_destroy): Define as wrapper around glthread_rwlock_destroy.
20395 (glthread_recursive_lock_init): New macro/function.
20396 (gl_recursive_lock_init): Define as wrapper around
20397 glthread_recursive_lock_init.
20398 (glthread_recursive_lock_lock): New macro/function.
20399 (gl_recursive_lock_lock): Define as wrapper around
20400 glthread_recursive_lock_lock.
20401 (glthread_recursive_lock_unlock): New macro/function.
20402 (gl_recursive_lock_unlock): Define as wrapper around
20403 glthread_recursive_lock_unlock.
20404 (glthread_recursive_lock_destroy): New macro/function.
20405 (gl_recursive_lock_destroy): Define as wrapper around
20406 glthread_recursive_lock_destroy.
20407 (glthread_once): New macro/function.
20408 (gl_once): Define as wrapper around glthread_once.
20409 Update function declarations.
20410 * lib/lock.c (glthread_rwlock_init_multithreaded): Renamed from
20411 glthread_rwlock_init. Return error code.
20412 (glthread_rwlock_rdlock_multithreaded): Renamed from
20413 glthread_rwlock_rdlock. Return error code.
20414 (glthread_rwlock_wrlock_multithreaded): Renamed from
20415 glthread_rwlock_wrlock. Return error code.
20416 (glthread_rwlock_unlock_multithreaded): Renamed from
20417 glthread_rwlock_unlock. Return error code.
20418 (glthread_rwlock_destroy_multithreaded): Renamed from
20419 glthread_rwlock_destroy. Return error code.
20420 (glthread_recursive_lock_init_multithreaded): Renamed from
20421 glthread_recursive_lock_init. Return error code.
20422 (glthread_recursive_lock_lock_multithreaded): Renamed from
20423 glthread_recursive_lock_lock. Return error code.
20424 (glthread_recursive_lock_unlock_multithreaded): Renamed from
20425 glthread_recursive_lock_unlock. Return error code.
20426 (glthread_recursive_lock_destroy_multithreaded): Renamed from
20427 glthread_recursive_lock_destroy. Return error code.
20428 (glthread_once_call): Make static.
20429 (glthread_once_multithreaded): Renamed from glthread_once.
20430 * lib/tls.h: Include <errno.h>.
20431 (glthread_tls_key_init): New macro/function.
20432 (gl_tls_key_init): Define as wrapper around glthread_tls_key_init.
20433 (glthread_tls_set): New macro/function.
20434 (gl_tls_set): Define as wrapper around glthread_tls_set.
20435 (glthread_tls_key_destroy): New macro/function.
20436 (gl_tls_key_destroy): Define as wrapper around glthread_tls_key_destroy.
20437 Update function declarations.
20438 * lib/tls.c (glthread_tls_get_multithreaded): Renamed from
20440 Suggested by Yoann Vandoorselaere <yoann@prelude-ids.org>.
20442 2008-08-04 Eric Blake <ebb9@byu.net>
20444 gnumakefile: use space, not TAB, outside of targets
20445 * top/GNUmakefile (_dummy): Fix whitespace error in prior edit.
20447 2008-08-02 Jim Meyering <meyering@redhat.com>
20449 getdate.y: avoid locale-dependent date parsing failure
20450 In Turkish locales, getdate would fail to recognize keywords
20451 containing a lowercase "i". The solution is not to rely on
20452 locale-sensitive case-conversion.
20453 * lib/getdate.y: Include <c-ctype.h> rather than <ctype.h>.
20454 (lookup_word): Use c_toupper in place of toupper.
20455 (yylex, get_date): Use c_ prefixed variants of isspace and isalpha, too.
20456 Reported by Vefa Bicakci <bicave@superonline.com> in
20457 <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/14184>.
20458 * modules/getdate (Depends-on): Add c-ctype.
20460 2008-08-02 Bruno Haible <bruno@clisp.org>
20462 * gnulib-tool (func_import): When updating or creating a .gitignore
20463 file, prepend each added line with a slash, and ignore leading slashes
20464 from the existing lines.
20465 Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
20467 2008-08-02 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
20469 Portability fix for GNU make 3.79.1.
20470 * top/GNUmakefile: Avoid 'else COND', which older GNU make
20471 versions do not understand.
20473 2008-08-01 Bruno Haible <bruno@clisp.org>
20475 Work around bug of HP-UX 10.20 cc with -0.0 literal.
20476 * tests/test-isnanf.h (zero): New variable.
20477 (main): Avoid literal -0.0f.
20478 * tests/test-isnand.h (zero): New variable.
20479 (main): Avoid literal -0.0.
20480 * tests/test-isnanl.h (zero): New variable.
20481 (main): Avoid literal -0.0L.
20482 * tests/test-isnan.c (zerof, zerod, zerol): New variables.
20483 (test_float, test_double, test_long_double): Avoid literals -0.0f,
20485 * tests/test-signbit.c (test_signbitf): Avoid literal -0.0f.
20486 (test_signbitd): Avoid literal -0.0.
20487 (test_signbitl): Avoid literal -0.0L.
20488 * tests/test-ceilf1.c (zero): New variable.
20489 (main): Avoid literal -0.0f.
20490 * tests/test-ceill.c (zero): New variable.
20491 (main): Avoid literal -0.0L.
20492 * tests/test-floorf1.c (zero): New variable.
20493 (main): Avoid literal -0.0f.
20494 * tests/test-floorl.c (zero): New variable.
20495 (main): Avoid literal -0.0L.
20496 * tests/test-roundf1.c (zero): New variable.
20497 (main): Avoid literal -0.0f.
20498 * tests/test-round1.c (zero): New variable.
20499 (main): Avoid literal -0.0.
20500 * tests/test-roundl.c (zero): New variable.
20501 (main): Avoid literal -0.0L.
20502 * tests/test-truncf1.c (zero): New variable.
20503 (main): Avoid literal -0.0f.
20504 * tests/test-trunc1.c (zero): New variable.
20505 (main): Avoid literal -0.0.
20506 * tests/test-truncl.c (zero): New variable.
20507 (main): Avoid literal -0.0L.
20508 * tests/test-frexp.c (zero): New variable.
20509 (main): Avoid literal -0.0.
20510 * tests/test-frexpl.c (zero): New variable.
20511 (main): Avoid literal -0.0L.
20512 * tests/test-ldexpl.c (zero): New variable.
20513 (main): Avoid literal -0.0L.
20514 * tests/test-snprintf-posix.h (have_minus_zero): Avoid literal -0.0.
20515 (zerod, zerol): New variables.
20516 (test_function): Avoid literals -0.0, -0.0L.
20517 * tests/test-sprintf-posix.h (have_minus_zero): Avoid literal -0.0.
20518 (zerod, zerol): New variables.
20519 (test_function): Avoid literals -0.0, -0.0L.
20520 * tests/test-vasnprintf-posix.c (have_minus_zero): Avoid literal -0.0.
20521 (zerod, zerol): New variables.
20522 (test_function): Avoid literals -0.0, -0.0L.
20523 * tests/test-vasprintf-posix.c (have_minus_zero): Avoid literal -0.0.
20524 (zerod, zerol): New variables.
20525 (test_function): Avoid literals -0.0, -0.0L.
20526 * tests/test-strtod.c (zero): New variable.
20527 (main): Avoid literal -0.0.
20528 Reported by Jonathan C. Patschke <jp@centtech.com>.
20530 2008-07-31 Jim Meyering <meyering@redhat.com>
20532 sha256.h: correct definition of SHA224_DIGEST_SIZE
20533 * lib/sha256.h (SHA224_DIGEST_SIZE): Define to 28, not 24.
20534 Reported by Paulie Pena IV <paulie4@gmail.com>.
20535 Define as 224 / 8, rather than as a literal.
20536 (SHA256_DIGEST_SIZE): Define as 256/8 rather than equivalent literal.
20537 * lib/sha512.h (SHA384_DIGEST_SIZE): Likewise, define as equiv: 384/8.
20538 (SHA512_DIGEST_SIZE): Likewise, define as equivalent quotient: 512/8.
20540 2008-07-31 Bruno Haible <bruno@clisp.org>
20542 * lib/regex_internal.h (BITSET_WORD_BITS): Make first conditional work
20543 on HP-UX 10.20 with "cc -Ae". Fix second conditional.
20544 Reported by Jonathan Patschke <jp@centtech.com>.
20546 2008-07-31 Bruno Haible <bruno@clisp.org>
20548 * gnulib-tool (func_import): Make change from 2008-06-23 more robust.
20549 Reported by Paolo Bonzini <bonzini@gnu.org>.
20551 2008-07-30 Eric Blake <ebb9@byu.net>
20553 test-strtod: allow compilation without -lm
20554 * tests/test-strtod.c (main): Avoid link dependence on fabs.
20555 Reported by Dennis Clarke <blastwave@gmail.com>.
20557 2008-07-28 Jim Meyering <meyering@redhat.com>
20559 bootstrap: work also when there are no .po files in po/
20560 * build-aux/bootstrap (update_po_files): Complete the change
20561 that I began in bc960df8c789c878f1c1c54a28a3c2648dead8d9.
20563 2008-07-27 Jim Meyering <meyering@redhat.com>
20565 * users.txt: Add zile.
20567 2008-07-26 Ben Pfaff <blp@gnu.org>
20569 Add missing dependencies on new m4/exponent[fdl].m4 files.
20570 * modules/isnanf-nolibm: Add m4/exponentf.m4.
20571 * modules/isnand-nolibm: Add m4/exponentd.m4.
20572 * modules/isnanl-nolibm: Add m4/exponentl.m4.
20573 * modules/signbit-tests: Use m4/exponent[fdl].m4 instead of
20574 m4/isnan[fdl].m4, because the macros actually used moved.
20575 Reported by Jim Meyering.
20577 2008-07-14 Ben Pfaff <blp@gnu.org>
20580 * lib/isinf.c: New file.
20581 * lib/math.in.h: Define isinf macro if we have decided to replace
20583 * m4/isinf.m4: New file.
20584 * m4/math_h.m4: Initialize and substitute variables for isinf
20586 * modules/isinf: New file.
20587 * modules/isinf-tests: New file.
20588 * modules/math: Add substitutions for new module.
20589 * tests/test-isinf.c: New file.
20590 * doc/posix-functions/isinf.texi: Mention new module.
20591 * MODULES.html.sh: Mention new module.
20593 2008-07-14 Ben Pfaff <blp@gnu.org>
20595 Factor out some macros for use by additional modules.
20596 * m4/isnanf.m4 (gl_FLOAT_EXPONENT_LOCATION): Move into new file
20598 * m4/isnand.m4 (gl_DOUBLE_EXPONENT_LOCATION): Move into new file
20600 * m4/isnanl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Move into new
20602 * m4/exponentf.m4: New file.
20603 * m4/exponentd.m4: New file.
20604 * m4/exponentl.m4: New file.
20605 * modules/isnanf: Use new file m4/exponentf.m4.
20606 * modules/isnand: Use new file m4/exponentd.m4.
20607 * modules/isnanl: Use new file m4/exponentl.m4.
20609 2008-07-23 Ulrich Drepper <drepper@redhat.com>
20611 mktime.c: normalize tp->tm_isdst value to -1/0/1.
20612 * lib/mktime.c (__mktime_internal): Normalize tp->tm_isdst value.
20613 Reported by Michael Ringe <Michael.Ringe@gmx.de> in
20614 <http://sourceware.org/bugzilla/show_bug.cgi?id=6723>.
20616 * lib/canonicalize-lgpl.c (__realpath): Avoid buffer overflow after
20617 readlink on platforms without PATH_MAX.
20619 2008-07-21 Eric Blake <ebb9@byu.net>
20621 Warn, not fail, on stale version.
20622 * top/GNUmakefile (_curr-ver): Tone down previous patch.
20624 Don't allow installation with stale devel version number.
20625 * top/GNUmakefile (_is-install-target): New macro.
20626 (_curr-ver): Forbid installation with stale version number.
20628 2008-07-20 Bruno Haible <bruno@clisp.org>
20630 * modules/c-stack-tests (Makefile.am): Add LIBSIGSEGV to
20632 * tests/test-c-stack2.sh: React differently if LIBSIGSEGV is in use.
20634 2008-07-20 Bruno Haible <bruno@clisp.org>
20636 * lib/c-stack.h (c_stack_action): Add documentation.
20637 * lib/c-stack.c (c_stack_action): Remove incomplete documentation.
20639 2008-07-20 Bruno Haible <bruno@clisp.org>
20641 * modules/canonicalize-lgpl (License): Relicense under LGPLv2+.
20642 * modules/readlink (License): Likewise.
20644 2008-07-17 Eric Blake <ebb9@byu.net>
20646 * modules/c-stack (Link): Fix typo.
20648 Make c-stack use libsigsegv, when available.
20649 * modules/c-stack (Depends-on): Add libsigsegv.
20650 * modules/c-stack-tests (Makefile.am): Link with libsigsegv, if
20652 * lib/c-stack.c (SIGSTKSZ): Define fallback.
20653 (segv_handler, overflow_handler, c_stack_action)
20654 [HAVE_LIBSIGSEGV && !HAVE_XSI_STACK_OVERFLOW_HEURISTIC]: Add new
20655 implementation when libsigsegv is available, but only when using
20656 the library is necessary.
20657 * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Add
20658 comment, explaining why XSI check fails on Linux.
20659 (gl_PREREQ_C_STACK): Supply LIBCSTACK, LTLIBCSTACK.
20660 * tests/test-c-stack2.sh: Tweak skip message.
20661 * NEWS: Document new link-time requirements.
20663 2008-07-16 Eric Blake <ebb9@byu.net>
20665 c-stack: Expose false positives when not using libsigsegv.
20666 * modules/c-stack-tests (Files): Expand test.
20667 * tests/test-c-stack.c (main): Add means to conditionally trigger
20668 non-overflow SIGSEGV.
20669 * tests/test-c-stack2.sh: New file.
20671 2008-07-14 Bruno Haible <bruno@clisp.org>
20673 * m4/libsigsegv.m4: Remove unneeded AC_PREREQ.
20674 Reported by Eric Blake.
20676 2008-07-14 Sam Steingold <sds@gnu.org>
20677 Bruno Haible <bruno@clisp.org>
20679 New module libsigsegv.
20680 * modules/libsigsegv: New file.
20681 * m4/libsigsegv.m4: New file, from GNU clisp sigsegv.m4 with
20683 * MODULES.html.sh (Signal handling): New section.
20685 2008-07-14 Bruno Haible <bruno@clisp.org>
20687 * modules/unictype/ctype-* (Description): Add the word "function".
20688 Improves the resulting doc in MODULES.html.
20690 2008-07-12 Ben Pfaff <blp@gnu.org>
20692 Add longlong module.
20693 * modules/longlong: New file.
20695 2008-07-12 Bruno Haible <bruno@clisp.org>
20697 * m4/isnan.m4 (gl_ISNAN): When the replacement is used, set ISNAN_LIBM
20700 2008-07-10 Ben Pfaff <blp@gnu.org>
20703 * doc/posix-functions/isnan.texi: Mention new module.
20704 * lib/math.in.h: Define isnan macro if we have decided to replace
20706 * m4/isnan.m4: New file.
20707 * m4/isnanl.m4 (gl_FUNC_ISNANL): Factor out some code into new
20708 macro gl_BUILD_ISNANL so that isnan.m4 can use that functionality
20710 (gl_FUNC_ISNANL_NO_LIBM): Factor out same code, to reduce
20712 * m4/math_h.m4: Initialize and substitute variables for isnan
20714 * modules/isnan: New file.
20715 * modules/isnan-tests: New file.
20716 * modules/math: Add substitutions for new module.
20717 * tests/test-isnan.c: New file.
20718 * MODULES.html.sh: Mention new module.
20720 2008-07-10 Ben Pfaff <blp@gnu.org>
20723 * lib/isnanf.m4: New file.
20724 * m4/isnanf.m4 (gl_FUNC_ISNANF): New macro.
20725 (gl_HAVE_ISNANF_IN_LIBM): New macro.
20726 (gl_BUILD_ISNANF): New macro used by gl_FUNC_ISNANF,
20727 gl_FUNC_ISNANF_NO_LIBM, and gl_FUNC_ISNAN.
20728 * modules/isnanf: New file.
20729 * modules/isnanf-tests: New file.
20730 * modules/isnanf-nolibm-tests: Add tests/test-isnanf.h to list of
20732 * tests/test-isnanf-nolibm.c: factored most of its contents into
20733 new file tests/test-isnanf.h.
20734 * tests/test-isnanf.h: New file.
20735 * tests/test-isnanf.c: New file.
20736 * MODULES.html.sh: Mention new module.
20737 * doc/glibc-functions/isnanf.texi: Mention new module.
20739 2008-07-10 Ben Pfaff <blp@gnu.org>
20742 * lib/isnand.h: New file.
20743 * m4/isnand.m4 (gl_FUNC_ISNAND): New macro.
20744 (gl_FUNC_ISNAND_NO_LIBM): Split partially into new macro
20745 gl_HAVE_ISNAND_NO_LIBM so that gl_FUNC_ISNAND can use that
20746 functionality also.
20747 (gl_BUILD_ISNAND): New macro used by gl_FUNC_ISNAND,
20748 gl_FUNC_ISNAND_NO_LIBM, and gl_FUNC_ISNAN.
20749 (gl_HAVE_ISNAND_IN_LIBM): New macro.
20750 * modules/isnand: New file.
20751 * modules/isnand-tests: New file.
20752 * modules/isnand-nolibm-tests: Add tests/test-isnand.h to list of
20754 * tests/test-isnand-nolibm.c: factored most of its contents into
20755 new file tests/test-isnand.h.
20756 * tests/test-isnand.h: New file.
20757 * tests/test-isnand.c: New file.
20758 * MODULES.html.sh: Mention new module.
20760 2008-07-10 Ben Pfaff <blp@gnu.org>
20762 * lib/isnanf.h: Rename lib/isnanf-nolibm.h.
20763 * lib/isnand.h: Rename lib/isnand-nolibm.h.
20764 * tests/test-isnanf.c: Rename tests/test-isnanf-nolibm.c.
20765 * tests/test-isnand.c: Rename tests/test-isnand-nolibm.c.
20766 * modules/isnanf-nolibm: Update references to renamed files.
20767 * modules/isnand-nolibm: Likewise.
20768 * modules/isnanf-nolibm-tests: Likewise.
20769 * modules/isnand-nolibm-tests: Likewise.
20770 * lib/frexp.c: Likewise.
20771 * lib/isfinite.c: Likewise.
20772 * lib/signbitd.c: Likewise.
20773 * lib/signbitf.c: Likewise.
20774 * lib/vasnprintf.c: Likewise.
20775 * tests/test-ceilf1.c: Likewise.
20776 * tests/test-ceilf2.c: Likewise.
20777 * tests/test-floorf1.c: Likewise.
20778 * tests/test-floorf2.c: Likewise.
20779 * tests/test-frexp.c: Likewise.
20780 * tests/test-round1.c: Likewise.
20781 * tests/test-round2.c: Likewise.
20782 * tests/test-roundf1.c: Likewise.
20783 * tests/test-strtod.c: Likewise.
20784 * tests/test-trunc1.c: Likewise.
20785 * tests/test-trunc2.c: Likewise.
20786 * tests/test-truncf1.c: Likewise.
20787 * tests/test-truncf2.c: Likewise.
20788 * NEWS: Mention the renamed header files.
20790 2008-07-11 Jim Meyering <meyering@redhat.com>
20792 vc-list-files: make the last-resort awk code more portable
20793 * build-aux/vc-list-files: Don't rely on awk's "sub" command.
20794 /bin/awk from OpenSolaris 11's SUNWesu version 2008.03.22.10.56
20795 does not support it.
20797 2008-07-10 Eric Blake <ebb9@byu.net>
20799 Work with tar's bootstrap.
20800 * gnulib-tool (func_emit_initmacro_end): Use m4_defn in the case
20801 where LIBSOURCES_DIR contains .#bootmp but must not be treated as
20804 2008-07-09 Jim Meyering <meyering@redhat.com>
20806 posix-shell.m4: fix typo that made this test malfunction
20807 * m4/posix-shell.m4: Remove capitalization in variable name.
20809 2008-07-08 Bruno Haible <bruno@clisp.org>
20811 * m4/onceonly.m4: Update comments.
20812 Reported by Ben Pfaff <blp@cs.stanford.edu>.
20814 2008-07-04 Jim Meyering <meyering@redhat.com>
20816 * users.txt: Add vc-dwim.
20817 (bison, coreutils): Use the gitweb URL.
20819 2008-07-03 Jim Meyering <meyering@redhat.com>
20821 * users.txt: Add libffcall. From Sam Steingold.
20823 2008-07-03 OndÅ™ej VaÅ¡Ãk <ovasik@redhat.com>
20825 getdate.y: do not ignore TZ with relative day, month or year offset
20826 * lib/getdate.y (get_date): Move the tz-handling block to follow the
20827 relative-date-handling, since otherwise, the latter would clobber the
20828 sole output (an updated Start value) of the tz-handling block.
20829 * tests/test-getdate.c: Tests for the fix
20831 2008-07-03 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
20833 Recognize 'foo_LIBRARIES += libgnu.a'.
20834 * gnulib-tool (func_emit_lib_Makefile_am): Recognize if a
20835 makefile snippet has already specified an installation location,
20838 2008-07-02 OndÅ™ej VaÅ¡Ãk <ovasik@redhat.com>
20840 getdate.y: factor out common actions
20841 * lib/getdate.y (apply_relative_time, set_hhmmss): New functions.
20842 Use them in place of open-coded actions.
20844 2008-07-01 Simon Josefsson <simon@josefsson.org>
20846 Add self-test for getdate module.
20847 * modules/getdate-tests: New file.
20848 * tests/test-getdate.c: New file.
20850 2008-06-29 Bruno Haible <bruno@clisp.org>
20852 * gnulib-tool (func_import): Put gnulib-comp.m4 into .cvsignore or
20854 Reported by Sylvain Beucler <beuc@beuc.net>.
20856 2008-06-29 Bruno Haible <bruno@clisp.org>
20858 * doc/gnulib-tool.texi (VCS Issues): Mention --no-vc-files option.
20859 * m4/gnulib-tool.m4: Update to match current gnulib-tool.
20861 2008-06-29 Bruno Haible <bruno@clisp.org>
20863 * gnulib-tool (func_import): Recommend to put gnulib-cache.m4 into
20865 Reported by Sylvain Beucler <beuc@beuc.net>.
20867 2008-06-26 Jim Meyering <meyering@redhat.com>
20869 make several modules depend on the "open" module
20870 This provides slightly increased consistency when opening-for-write
20871 the name of a non-directory spelled with a trailing slash.
20872 * modules/chdir-safer: Likewise.
20873 * modules/chown: Likewise.
20874 * modules/clean-temp: Likewise.
20875 * modules/copy-file: Likewise.
20876 * modules/fchdir: Likewise.
20877 * modules/fcntl-safer: Likewise.
20878 * modules/pipe: Likewise.
20879 * modules/utime: Likewise.
20880 Prompted by Eric Blake and Bruno Haible.
20882 2008-06-24 Andreas Schwab <schwab@suse.de>
20884 * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Don't test whether compound
20885 literals can be used as initializers for global variables.
20887 2008-06-23 Eric Blake <ebb9@byu.net>
20889 Make gnulib-cache.m4 easier to diff.
20890 * gnulib-tool (func_import): Allow newlines when reading cached
20891 gl_MODULES, and generate newlines when creating gnulib-cache.m4.
20893 2008-06-23 Bruno Haible <bruno@clisp.org>
20895 * m4/signalblocking.m4 (gl_PREREQ_SIG_HANDLER_H): Remove macro.
20896 (gl_PREREQ_SIGPROCMASK): Don't invoke it.
20897 * m4/sigaction.m4 (gl_PREREQ_SIG_HANDLER_H): New macro, moved here from
20898 m4/signalblocking.m4.
20899 (gl_PREREQ_SIGACTION): Don't invoke it.
20900 * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Invoke
20901 gl_PREREQ_SIG_HANDLER_H.
20902 * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
20903 Don't check for sigaction here.
20905 2008-06-23 Bruno Haible <bruno@clisp.org>
20907 * lib/fatal-signal.c (fatal_signal_handler): Update comment.
20908 (install_handlers): Don't set the SA_RESETHAND flag.
20910 2008-06-23 Bruno Haible <bruno@clisp.org>
20912 * m4/sigaction.m4: Comment fixes.
20913 * lib/signal.in.h: Likewise.
20915 2008-06-23 Eric Blake <ebb9@byu.net>
20918 * tests/test-sigaction.c (MASK_SA_FLAGS): Add missing operator.
20920 Avoid SA_ namespace.
20921 * tests/test-sigaction.c (MASK_SA_FLAGS): Rename from SA_MASK.
20922 Reported by Ralf Wildenhues.
20924 Avoid test failure due to SA_RESTORER.
20925 * tests/test-sigaction.c (SA_MASK): New macro.
20926 (main): Avoid failing due to extension flags being set.
20927 Reported by Jim Meyering.
20929 Revert use of sig-handler.h in sigprocmask.c.
20930 * modules/sigprocmask (Files): Don't rely on sig-handler.h, since
20931 it requires the existence of struct sigaction.
20932 * lib/sigprocmask.c (handler_t): Restore typedef.
20933 (rpl_signal, old_handlers): Use local type.
20935 2008-06-22 Bruno Haible <bruno@clisp.org>
20937 * tests/test-stdint.c: Disable the INTMAX_MAX preprocessor test
20939 Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
20941 2008-06-22 Bruno Haible <bruno@clisp.org>
20943 * doc/posix-functions/siginterrupt.texi: Move note.
20945 * lib/signal.in.h (SA_RESTART): New macro.
20946 * lib/sigaction.c: Update comment.
20948 * m4/sigaction.m4 (gl_SIGACTION): Require gl_SIGNAL_H_DEFAULTS.
20950 * m4/signalblocking.m4 (gl_PREREQ_SIG_HANDLER_H): New macro.
20951 (gl_PREREQ_SIGPROCMASK): Invoke it.
20952 * m4/sigaction.m4 (gl_PREREQ_SIGACTION): Likewise.
20954 * lib/nanosleep.c (rpl_nanosleep): Setup newact only when it is needed.
20956 * lib/sigprocmask.c: Update a comment.
20958 2008-06-21 Eric Blake <ebb9@byu.net>
20960 Use sigaction module rather than signal().
20961 * modules/c-stack (Depends-on): Add sigaction.
20962 * modules/fatal-signal (Depends-on): Likewise.
20963 * modules/nanosleep (Depends-on): Likewise.
20964 * modules/sigprocmask (Files): Add sig-handler.h.
20965 * modules/sigaction (Files): Likewise.
20966 * lib/sig-handler.h (get_handler): New file, suggested by Paul
20968 * lib/c-stack.c (SIGACTION_WORKS): Simplify conditions.
20969 (c_stack_action) [!SIGACTION_WORKS]: Use sigaction, not signal.
20970 * lib/fatal-signal.c (uninstall_handlers, install_handlers)
20971 (init_fatal_signals): Likewise.
20972 * lib/nanosleep.c (rpl_nanosleep): Likewise.
20973 (siginterrupt): Delete fallback.
20974 * lib/sigprocmask.c (handler_t, old_handlers): Use sa_handler_t
20976 * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Drop check for
20979 New module sigaction, for mingw.
20980 * modules/sigaction: New module...
20981 * modules/sigaction-tests: ...and its test.
20982 * m4/sigaction.m4: New file.
20983 * lib/sigaction.c: Likewise.
20984 * tests/test-sigaction.c: Likewise.
20985 * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Add sigaction variables.
20986 * modules/signal (Makefile.am): Likewise.
20987 * lib/signal.in.h (!@HAVE_SIGACTION@): Define replacements when
20989 * doc/posix-headers/signal.texi (signal.h): Mention provided
20991 * doc/posix-functions/siginterrupt.texi (siginterrupt): Mention
20992 that sigaction is preferable.
20993 * doc/posix-functions/sigaction.texi (sigaction): Mention new
20995 * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
20998 Improve robustness of sigprocmask by overriding signal.
20999 * lib/signal.in.h (rpl_signal): Override signal when sigprocmask
21001 * lib/sigprocmask.c (blocked_handler): Reinstall block handler.
21002 (SIGKILL, SIGSTOP): Provide fallbacks.
21003 (rpl_signal): Implement.
21004 (old_handlers, blocked_set): Mark volatile, since sigprocmask and
21005 signal can be called inside handlers.
21007 Fix nanosleep module on mingw.
21008 * modules/nanosleep (Depends-on): Add sys_select.
21009 * lib/nanosleep.c (HAVE_SYS_SELECT_H): Rely on gnulib module.
21011 Fix licensing of sigprocmask.
21012 * modules/raise (License): Relicense as LGPL.
21014 2008-06-21 Bruno Haible <bruno@clisp.org>
21016 * lib/propername.c (proper_name_utf8): Don't use the transliterated
21017 result if it contains question marks.
21018 Reported by Michael Geng <linux@michaelgeng.de>.
21020 2008-06-19 Bruno Haible <bruno@clisp.org>
21023 * doc/gnulib.texi: Include updated-stamp.texi.
21024 * doc/Makefile (GNULIB_TEXI_FILES): New variable.
21025 (updated-stamp.texi): New rule.
21026 (gnulib.info): Depend on it.
21027 * doc/.gitignore: Add updated-stamp.texi.
21028 Based on a patch by Thien-Thi Nguyen <ttn@gnuvola.org>.
21030 2008-06-19 Bruno Haible <bruno@clisp.org>
21032 * doc/Makefile (gnulib.info): Update and simplify dependencies.
21033 Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
21035 2008-06-19 Eric Blake <ebb9@byu.net>
21037 Fix VPATH 'make dist' with GNU make and non-VCS tarball.
21038 * top/GNUmakefile (_curr-ver): Don't use $(srcdir) unnecessarily.
21039 Reported by Stepan Kasal.
21041 2008-06-18 Bruno Haible <bruno@clisp.org>
21043 * lib/fatal-signal.c (init_fatal_signals): Add comment.
21044 Reported by Eric Blake.
21046 2008-06-18 Eric Blake <ebb9@byu.net>
21048 Work around cygwin 1.5.25 strsignal bug.
21049 * tests/test-strsignal.c: Allow for const char *.
21050 * doc/glibc-functions/strsignal.texi (strsignal): Document the bug.
21052 2008-06-18 Simon Josefsson <simon@josefsson.org>
21054 * users.txt: Update URL to article and add author/date
21057 2008-06-17 Bruno Haible <bruno@clisp.org>
21059 New macro gl_DISABLE_THREADS.
21060 * m4/lock.m4 (gl_LOCK_EARLY_BODY): Use value gl_use_threads_default
21061 if the user did not pass --enable-threads or --disable-threads option.
21062 (gl_DISABLE_THREADS): New macro.
21063 Reported by Eric Blake <ebb9@byu.net>.
21065 2008-06-17 Bruno Haible <bruno@clisp.org>
21067 * lib/tls.h (gl_tls_key_init): Evaluate the destructor argument also
21068 when the macro ignores it.
21069 Based on a patch by Eric Blake <ebb9@byu.net>.
21071 2008-06-17 Bruno Haible <bruno@clisp.org>
21073 * modules/tls (License): Change to LGPLv2+.
21074 Reported by Eric Blake.
21076 2008-06-17 Eric Blake <ebb9@byu.net>
21078 Simplify c-stack prerequisites.
21079 * lib/c-stack.c (includes): Remove unused <sys/resource.h>.
21080 * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Posix 200x
21081 no longer requires <ucontext.h> to exist. Optimize setrlimit
21083 (gl_PREREQ_C_STACK): Remove check for unused getcontext and
21086 Move c-stack test into testsuite.
21087 * modules/c-stack-tests: New file.
21088 * lib/c-stack.c [DEBUG]: Move test program...
21089 * tests/test-c-stack.c: ...into this new file. Skip rather than
21090 fail test if sigaltstack is lacking.
21091 * tests/test-c-stack.sh: New driver file.
21093 2008-06-16 Eric Blake <ebb9@byu.net>
21095 Use raise module consistently.
21096 * modules/fatal-signal (Depends-on): Add raise.
21097 * modules/sigprocmask (Depends-on): Likewise.
21098 * lib/fatal-signal.c (fatal_signal_handler): Rely on raise.
21099 * lib/sigprocmask.c (sigprocmask): Likewise.
21100 * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
21101 * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Likewise.
21103 Fix compliance bug in sigpending.
21104 * lib/sigprocmask.c (sigpending): Return pending array via
21105 parameter, not return value.
21107 2008-06-14 Eric Blake <ebb9@byu.net>
21109 Improve obstack-printf test code.
21110 * tests/test-obstack-printf.c (test_function): Fix comment, and
21111 simplify usage of obstack_* in macros. Add a test for coverage.
21112 Reported by Bruno Haible.
21114 2008-06-14 Bruno Haible <bruno@clisp.org>
21116 * lib/obstack_printf.c (obstack_vprintf): Define the stack-allocated
21117 array size as a constant, not as a const variable.
21118 * m4/obstack-printf.m4 (gl_FUNC_OBSTACK_PRINTF): Require
21119 AC_USE_SYSTEM_EXTENSIONS.
21120 * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX): Likewise.
21121 Test whether the obstack_printf function actually exists.
21122 * modules/obstack-printf (Depends-on): Add extensions.
21123 (Include): Remove obstack.h.
21124 * modules/obstack-printf-posix (Depends-on): Add extensions.
21125 (Include): Remove obstack.h.
21127 2008-06-13 Eric Blake <ebb9@byu.net>
21129 Add obstack-printf and obstack-printf-posix modules.
21130 * modules/obstack-printf: New file.
21131 * modules/obstack-printf-posix: Likewise.
21132 * MODULES.html.sh (Misc): Mention them.
21133 * doc/glibc-functions/obstack_printf.texi (obstack_printf):
21135 * doc/glibc-functions/obstack_vprintf.texi (obstack_vprintf):
21137 * modules/stdio (Makefile.am): Accomodate new modules.
21138 * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
21139 * lib/stdio.in.h (rpl_obstack_printf, rpl_obstack_vprintf):
21141 * lib/obstack_printf.c (obstack_printf, obstack_vprintf): New
21143 * m4/obstack-printf.m4 (gl_OBSTACK_PRINTF)
21144 (gl_REPLACE_OBSTACK_PRINTF): New macros
21145 * m4/obstack-printf-posix.m4 (gl_OBSTACK_PRINTF_POSIX): Likewise.
21146 * tests/test-obstack-printf.c: New file.
21147 * modules/obstack-printf-tests: Likewise.
21148 * modules/obstack-printf-posix-tests: Likewise.
21150 2008-06-11 Bruno Haible <bruno@clisp.org>
21152 * m4/open.m4 (gl_FUNC_OPEN): Add test against trailing slash bug.
21153 * lib/open.c: Include errno.h.
21154 (open): Fail when attempting to write to a file that has a trailing
21156 * tests/test-open.c (main): Test against trailing slash bug.
21157 * doc/posix-functions/open.texi: Mention the trailing slash bug.
21159 2008-06-10 Bruno Haible <bruno@clisp.org>
21161 * tests/test-vc-list-files-git.sh: Make double use of 'exit'. Needed
21162 for $? to work inside the trap command, with various /bin/sh-s.
21163 * tests/test-vc-list-files-cvs.sh: Likewise.
21165 2008-06-10 Bruno Haible <bruno@clisp.org>
21167 * lib/acl-internal.h: Don't include gettext.h here.
21168 * lib/set-mode-acl.c: Include gettext.h here.
21169 * lib/copy-acl.c: Likewise.
21171 2008-06-10 Bruno Haible <bruno@clisp.org>
21173 * lib/wait-process.h (wait_subprocess): Add termsigp argument.
21174 * lib/wait-process.c (wait_subprocess): Likewise.
21175 * lib/execute.h (execute): Add termsigp argument.
21176 * lib/execute.c (execute): Likewise.
21177 * lib/csharpcomp.c (compile_csharp_using_pnet,
21178 compile_csharp_using_mono, compile_csharp_using_sscli): Update.
21179 * lib/csharpexec.c (execute_csharp_using_pnet,
21180 execute_csharp_using_mono, execute_csharp_using_sscli): Update.
21181 * lib/javacomp.c (compile_using_envjavac, compile_using_gcj,
21182 compile_using_javac, compile_using_jikes, is_envjavac_gcj,
21183 is_envjavac_gcj43, is_gcj_present, is_gcj_43, is_javac_present,
21184 is_jikes_present): Update.
21185 * lib/javaexec.c (execute_java_class): Update.
21186 * lib/javaversion.c (execute_and_read_line): Update.
21187 * NEWS: Document the changes.
21188 Reported by Eric Blake.
21190 2008-06-10 Eric Blake <ebb9@byu.net>
21192 Add missing include.
21193 * tests/test-strstr.c (includes): Add <signal.h>.
21194 * tests/test-strcasestr.c (includes): Likewise.
21195 * tests/test-memmem.c (includes): Likewise.
21197 2008-06-10 Bruno Haible <bruno@clisp.org>
21199 * lib/wait-process.c (wait_subprocess): Add an assertion.
21201 2008-06-10 Bruno Haible <bruno@clisp.org>
21203 * lib/wait-process.c (wait_subprocess): Try to fix waitid() based code.
21205 2008-06-10 Bruno Haible <bruno@clisp.org>
21207 * tests/test-memmem.c (main): Reset SIGALRM to default handling before
21209 * tests/test-strcasestr.c (main): Likewise.
21210 * tests/test-strstr.c (main): Likewise.
21212 2008-06-09 Bruno Haible <bruno@clisp.org>
21214 Work around the Solaris 10 ACE ACLs ABI change.
21215 * lib/acl-internal.h (acl_nontrivial, acl_ace_nontrivial): Don't
21216 declare if ACL_NO_TRIVIAL is present.
21217 (ACE_ACCESS_ALLOWED_ACE_TYPE, ACE_ACCESS_DENIED_ACE_TYPE,
21218 NEW_ACE_OWNER, NEW_ACE_GROUP, NEW_ACE_IDENTIFIER_GROUP, ACE_EVERYONE,
21219 NEW_ACE_READ_DATA, NEW_ACE_WRITE_DATA, NEW_ACE_EXECUTE): New macros.
21220 * lib/file-has-acl.c (acl_nontrivial, acl_ace_nontrivial): Don't
21221 define if ACL_NO_TRIVIAL is present.
21222 (acl_ace_nontrivial): Detect whether the old or new ABI is in use,
21223 and use the current ABI.
21224 (file_has_acl): Use same #if condition as elsewhere.
21225 * lib/set-mode-acl.c (qset_acl): Detect whether the old or new ABI is
21226 in use, and use the current ABI.
21227 * doc/acl-resources.txt: More doc about newer Solaris 10 versions.
21228 Reported by Jim Meyering.
21230 2008-06-09 Eric Blake <ebb9@byu.net>
21232 Work around environments that (stupidly) ignore SIGALRM.
21233 * m4/strstr.m4 (gl_FUNC_STRSTR): Reset SIGALRM to default handling
21234 before using alarm().
21235 * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
21236 * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
21237 Reported by Ian Beckwith <ianb@erislabs.net>.
21239 Produce autobuild blurb earlier in log.
21240 * modules/autobuild (configure.ac-early): Move AB_INIT here.
21242 2008-06-09 Jim Meyering <meyering@redhat.com>
21243 and OndÅ™ej VaÅ¡Ãk <ovasik@redhat.com>
21245 utimens.c: correct kernel bug work-around
21246 OndÅ™ej VaÅ¡Ãk found that the invalid return value of 280 indicates
21247 failure, not success, and the kernel bug we're trying to work
21248 around affects not just the utimensat call, but also the fallback
21250 * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT]: Simulate failure,
21252 [HAVE_FUTIMENS]: Use the same work-around, here.
21254 2008-06-09 Jim Meyering <meyering@redhat.com>
21256 add more guards around definition of ACE_-related code
21257 * lib/file-has-acl.c (acl_ace_nontrivial): Define only if
21258 ALLOW and ACE_OWNER are also defined.
21260 2008-06-08 Bruno Haible <bruno@clisp.org>
21262 * lib/acl-internal.h: Add me as co-author.
21263 * lib/file-has-acl.c: Likewise.
21264 * lib/set-mode-acl.c: Likewise.
21265 * lib/copy-acl.c: Likewise.
21267 2008-06-08 Bruno Haible <bruno@clisp.org>
21269 Add support for AIX ACLs.
21270 * lib/acl-internal.h (acl_nontrivial): New declaration.
21271 * lib/file-has-acl.c (acl_nontrivial): New function.
21272 (file_has_acl): Add implementation using AIX 4 ACL API.
21273 * lib/set-mode-acl.c (qset_acl): Likewise.
21274 * lib/copy-acl.c (qcopy_acl): Likewise.
21276 2008-06-08 Bruno Haible <bruno@clisp.org>
21278 Add support for HP-UX ACLs.
21279 * lib/acl-internal.h (acl_nontrivial): New declaration.
21280 * lib/file-has-acl.c (acl_nontrivial): New function.
21281 (file_has_acl): Add implementation using HP-UX 11 ACL API.
21282 * lib/set-mode-acl.c (qset_acl): Likewise.
21283 * lib/copy-acl.c (qcopy_acl): Likewise.
21285 2008-06-08 Bruno Haible <bruno@clisp.org>
21287 Add support for Cygwin ACLs.
21288 * lib/acl-internal.h (MODE_INSIDE_ACL): New macro for Solaris-like API.
21289 * lib/set-mode-acl.c (qset_acl) [!MODE_INSIDE_ACL]: Don't optimize away
21290 the chmod_or_fchmod call.
21291 * lib/copy-acl.c (qcopy_acl) [!MODE_INSIDE_ACL]: Likewise.
21293 2008-06-08 Bruno Haible <bruno@clisp.org>
21295 Fix bug with setuid modes in Solaris 10+ code.
21296 * lib/set-mode-acl.c (qset_acl): Call chmod_or_fchmod when acl_set
21297 succeeded, when the mode contains some special bits.
21299 2008-06-08 Bruno Haible <bruno@clisp.org>
21301 Add support for Solaris 7..10 ACLs.
21302 * lib/acl-internal.h (acl_nontrivial, acl_ace_nontrivial): New
21304 * lib/file-has-acl.c (acl_nontrivial, acl_ace_nontrivial): New
21306 (file_has_acl): Add implementation using Solaris 7..10 ACL API.
21307 * lib/set-mode-acl.c (qset_acl): Likewise.
21308 * lib/copy-acl.c (qcopy_acl): Likewise.
21310 2008-06-08 Bruno Haible <bruno@clisp.org>
21312 * lib/acl-internal.h (acl_extended_nontrivial) [MacOS X]: New
21314 * lib/file-has-acl.c (acl_extended_nontrivial) [MacOS X]: New function.
21315 (acl_access_nontrivial): Remove MacOS X case.
21316 (file_has_acl): Use acl_extended_nontrivial.
21317 * lib/copy-acl.c (qcopy_acl): Likewise.
21319 2008-06-08 Bruno Haible <bruno@clisp.org>
21321 * lib/set-mode-acl.c (qset_acl): Trivial code simplifications.
21323 2008-06-08 Jim Meyering <meyering@redhat.com>
21325 * modules/acl (Maintainer): Add Bruno Haible.
21327 2008-06-07 Bruno Haible <bruno@clisp.org>
21329 Improve support for Tru64 ACLs.
21330 * lib/file-has-acl.c (file_has_acl): Don't test the ACL_TYPE_DEFAULT
21333 2008-06-07 Bruno Haible <bruno@clisp.org>
21335 Add support for MacOS X ACLs.
21336 * lib/file-has-acl.c (file_has_acl): Use ACL_TYPE_EXTENDED instead of
21337 ACL_TYPE_ACCESS and ACL_TYPE_DEFAULT.
21338 * lib/set-mode-acl.c (qset_acl): Likewise.
21339 * lib/copy-acl.c (qcopy_acl): Likewise.
21341 2008-06-07 Bruno Haible <bruno@clisp.org>
21343 Fix memory leak introduced on 2008-05-22.
21344 * lib/set-mode-acl.c (qset_acl) [!MODE_INSIDE_ACL]: Free ACLs after
21347 2008-06-07 Bruno Haible <bruno@clisp.org>
21349 * lib/set-mode-acl.c (qset_acl): Use acl_init(), not acl_from_text(),
21350 to construct an empty ACL.
21352 2008-06-07 Bruno Haible <bruno@clisp.org>
21354 * lib/set-mode-acl.c (chmod_or_fchmod): Document return value
21356 * lib/copy-acl.c (qcopy_acl): Trivial code simplifications.
21358 2008-06-07 Bruno Haible <bruno@clisp.org>
21360 * lib/copy-acl.c (qcopy_acl): Make the #if branches independent.
21361 * lib/set-mode-acl.c (qset_acl): Choose better local variable names.
21363 2008-06-07 Bruno Haible <bruno@clisp.org>
21365 * doc/posix-functions/_setjmp.texi: Explain the use of this function
21366 regardless of POSIX.
21367 * doc/posix-functions/_longjmp.texi: Likewise.
21368 * doc/posix-functions/setjmp.texi: Mention HP-UX as not counting as a
21369 SystemV platform in this case.
21371 2008-06-06 Eric Blake <ebb9@byu.net>
21373 Document abort() bugs.
21374 * doc/posix-functions/abort.texi (abort): Mention anomalies.
21376 * doc/posix-functions/setjmp.texi (setjmp): Mingw has setjmp.
21377 * doc/posix-functions/sigsetjmp.texi (sigsetjmp): Cygwin has
21379 * doc/posix-functions/siglongjmp.texi (siglongjmp): Cygwin has
21380 siglongjmp, but only as a macro.
21381 * doc/posix-functions/_longjmp.texi (_longjmp): Mention that this
21383 * doc/posix-functions/_setjmp.texi (_setjmp): Likewise.
21385 Tweak documentation to cover cygwin argz bugs.
21386 * m4/argz.m4 (gl_FUNC_ARGZ): Mention date of last known cygwin
21387 argz bug fix; no code change needed since no cygwin releases
21388 occurred between the last fix and the bug being tested.
21389 * doc/glibc-functions/argz_add.texi (argz_add): Document the argz
21390 module and recently fixed cygwin bugs.
21391 * doc/glibc-functions/argz_add_sep.texi (argz_add_sep): Likewise.
21392 * doc/glibc-functions/argz_append.texi (argz_append): Likewise.
21393 * doc/glibc-functions/argz_count.texi (argz_count): Likewise.
21394 * doc/glibc-functions/argz_create.texi (argz_create): Likewise.
21395 * doc/glibc-functions/argz_create_sep.texi (argz_create_sep):
21397 * doc/glibc-functions/argz_delete.texi (argz_delete): Likewise.
21398 * doc/glibc-functions/argz_extract.texi (argz_extract): Likewise.
21399 * doc/glibc-functions/argz_insert.texi (argz_insert): Likewise.
21400 * doc/glibc-functions/argz_next.texi (argz_next): Likewise.
21401 * doc/glibc-functions/argz_replace.texi (argz_replace): Likewise.
21402 * doc/glibc-functions/argz_stringify.texi (argz_stringify):
21405 Avoid gcc warning on cygwin.
21406 * lib/copy-acl.c (qcopy_acl) [!HAVE_ACL_GET_FILE &&
21407 !ACL_NO_TRIVIAL]: Avoid unused variable.
21409 2008-06-05 Eric Blake <ebb9@byu.net>
21411 Be tolerant of UNKNOWN version in gnulib-tool test dir.
21412 * top/GNUmakefile (_dummy): Warn rather than reconfigure if
21413 git-version-gen fails to come up with a version.
21414 Reported by Simon Josefsson.
21416 2008-06-05 Jim Meyering <meyering@redhat.com>
21417 Paul Eggert <eggert@cs.ucla.edu>
21419 utimens.c: work around a probable Linux kernel bug
21420 * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT]: Work around what
21421 appears to be a kernel bug that causes utimensat to return 280
21422 instead of 0, indicating success.
21424 2008-06-04 Bruno Haible <bruno@clisp.org>
21426 * lib/copy-acl.c (qcopy_acl): Call qset_acl, not set_acl. Fixes
21429 2008-06-04 Bruno Haible <bruno@clisp.org>
21431 * lib/acl-internal.h (acl_access_nontrivial): New declaration.
21432 * lib/file-has-acl.c (acl_access_nontrivial): New function.
21433 (file_has_acl): Use it. Save errno afterwards.
21434 * lib/copy-acl.c (qcopy_acl): Use acl_access_nontrivial.
21436 2008-06-03 Bruno Haible <bruno@clisp.org>
21438 * lib/file-has-acl.c (file_has_acl): Put Solaris 10 code after POSIX-
21439 draft code. Simplify #ifs.
21440 * lib/set-mode-acl.c (qset_acl): Don't test for symlink if !USE_ACL.
21441 Put Solaris code after POSIX-draft code. Fix comments regarding
21442 Solaris 10, HP-UX. Mention Cygwin.
21443 * lib/copy-acl.c (qcopy_acl): Simplify #ifs.
21445 2008-06-03 Eric Blake <ebb9@byu.net>
21447 Provide fallback for older kernels.
21448 * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT, HAVE_FUTIMENS]:
21449 Provide runtime fallback if kernel lacks support.
21450 Reported by Mike Frysinger.
21452 2008-06-02 Bruno Haible <bruno@clisp.org>
21454 * lib/acl-internal.h (ACL_NOT_WELL_SUPPORTED): Include EOPNOTSUPP if
21457 2008-06-02 Bruno Haible <bruno@clisp.org>
21459 * lib/acl_entries.c (acl_entries): Rewrite to use acl_get_entry.
21460 * lib/copy-acl.c (qcopy_acl): Update comment.
21462 2008-06-02 Bruno Haible <bruno@clisp.org>
21464 * lib/acl-entries.h: Enclose most definitions in #ifs for POSIX-draft
21467 2008-06-02 Bruno Haible <bruno@clisp.org>
21469 * tests/test-file-has-acl.sh: Use different code for Cygwin.
21470 * tests/test-set-mode-acl.sh: Likewise.
21471 * tests/test-copy-acl.sh: Likewise.
21472 * tests/test-copy-file.sh: Likewise.
21474 2008-06-02 Bruno Haible <bruno@clisp.org>
21476 * tests/test-file-has-acl.sh: Remove unused code.
21478 2008-06-01 Bruno Haible <bruno@clisp.org>
21480 * lib/copy-acl.c (qcopy_acl): New function, extracted from copy_acl.
21481 (copy_acl): Just a wrapper around qcopy_acl that emits the error
21483 * lib/set-mode-acl.c (qset_acl): Document return value precisely.
21485 2008-06-01 Bruno Haible <bruno@clisp.org>
21487 * m4/acl.m4 (gl_FUNC_ACL): Separate the POSIX-like and the Solaris
21488 tests. Test for libpacl, needed for OSF/1. Test for extended ACLs,
21489 needed for MacOS X. Test for HP-UX API. Test for newer and older AIX
21491 * modules/acl-tests (configure.ac): Remove tests now contained in
21494 2008-06-02 Jim Meyering <meyering@redhat.com>
21496 announce-gen: use a better key-server host name
21497 * build-aux/announce-gen (main): Recommend keys.gnupg.net, since
21498 it may be more consistently reliable. Suggested by Werner Koch
21499 in <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/13717>.
21501 2008-06-01 Bruno Haible <bruno@clisp.org>
21503 * lib/stdio-impl.h (fp_ub): Use fp_. Needed for DragonFly BSD.
21504 Reported by Voroskoi Andras <voroskoi@gmail.com>.
21506 2008-06-01 Voroskoi Andras <voroskoi@gmail.com> (tiny change)
21508 * lib/stdio-impl.h [__DragonFly__]: Fix typo.
21510 2008-06-01 Bruno Haible <bruno@clisp.org>
21513 * tests/test-file-has-acl.sh: New file.
21514 * tests/test-file-has-acl.c: New file.
21515 * tests/test-set-mode-acl.sh: New file.
21516 * tests/test-set-mode-acl.c: New file.
21517 * tests/test-copy-acl.sh: New file, based on tests/test-copy-file.sh.
21518 * tests/test-copy-acl.c: New file.
21519 * modules/acl-tests: New file, based on modules/copy-file-tests.
21520 * modules/copy-file-tests (Files): Remove tests/test-sameacls.c.
21521 (Depends-on): Add acl-tests.
21522 (configure.ac): Remove checks.
21523 (Makefile.am): Don't create test-sameacls program here any more.
21525 2008-06-01 Bruno Haible <bruno@clisp.org>
21527 * tests/test-copy-file.sh: Portability fixes for Solaris, HP-UX, IRIX.
21528 * tests/test-sameacls.c: Include progname.h.
21529 (main): Invoke set_program_name. Portability fixes for MacOS X,
21532 2008-06-01 Bruno Haible <bruno@clisp.org>
21534 * lib/freadahead.c (freadahead) [__DragonFly__]: Use the __sreadahead
21536 Reported by VOROSKOI Andras <voroskoi@gmail.com>.
21538 2008-06-01 Bruno Haible <bruno@clisp.org>
21540 * modules/rpmatch (Depends-on): Add strdup.
21542 2008-06-01 Bruno Haible <bruno@clisp.org>
21544 * lib/pipe.c: Include unistd-safer.h.
21545 (create_pipe): Ensure the returned file descriptors are not in {0,1,2}.
21546 * modules/pipe (Depends-on): Add unistd-safer.
21548 2008-05-30 Simon Josefsson <simon@josefsson.org>
21550 * modules/autobuild (configure.ac): Call AB_INIT.
21552 2008-05-30 Simon Josefsson <simon@josefsson.org>
21554 * tests/test-getaddrinfo.c: Don't print debug messages by default.
21555 Suggested by Bruno Haible <bruno@clisp.org>.
21557 2008-05-30 Simon Josefsson <simon@josefsson.org>
21559 * tests/test-base64.c: Cast size_t to unsigned long when invoking
21560 printf. Use %lu instead of %d. Reported by Bruno Haible
21563 2008-05-29 Eric Blake <ebb9@byu.net>
21565 Prefer new POSIX 200x interfaces over futimesat.
21566 * m4/utimens.m4 (gl_UTIMENS): Check for futimens, utimensat.
21567 * lib/utimens.c (gl_futimens): Use them for nanosecond resolution
21569 [HAVE_BUGGY_NFS_TIME_STAMPS]: Allow C89 compilation.
21571 2008-05-28 Bruno Haible <bruno@clisp.org>
21573 * modules/stpcpy (License): Change to LGPLv2+.
21574 Requested by David Lutterkort <dlutter@redhat.com>.
21576 2008-05-27 Bruno Haible <bruno@clisp.org>
21578 * lib/localename.c (SUBLANG_TIBETAN_BHUTAN): Force value 2. Needed for
21580 Reported by Jose E. Marchesi <jemarch@gnu.org>.
21582 2008-05-27 Bruno Haible <bruno@clisp.org>
21584 * modules/iconv_open (Link): New section, from module 'iconv'.
21585 * modules/striconv (Link): Likewise.
21586 * modules/striconveh (Link): Likewise.
21587 * modules/xstriconv (Link): Likewise.
21588 * modules/unicodeio (Link): Likewise.
21589 * modules/propername (Link): Likewise.
21590 Reported by Jim Meyering.
21592 2008-05-26 Jim Meyering <meyering@redhat.com>
21594 sha256: do not artificially restrict buffer length to be < 2^32
21595 * lib/sha256.h (struct sha256_ctx) [buflen]: Change type from
21596 uint32_t to size_t.
21597 * lib/sha256.c (sha256_conclude_ctx): Change type of a local
21600 avoid unaligned access errors, e.g., on sparc
21601 * lib/sha512.c (sha512_conclude_ctx): Use set_uint64 rather than
21602 direct access through a possibly-unaligned uint64* pointer.
21603 * lib/sha256.c (sha256_conclude_ctx): Use set_uint32 rather than
21604 direct access through a possibly-unaligned uint32* pointer.
21605 Prompted by this patch from Tom "spot" Callaway:
21606 http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/13638
21608 sha512.c: fix typo in comment
21609 * lib/sha512.c (sha512_conclude_ctx): Length is 128-bit, not 64-bit.
21611 2008-05-25 Bruno Haible <bruno@clisp.org>
21613 * lib/set-mode-acl.c: Renamed from lib/acl.c.
21614 * modules/acl (Files): Add lib/set-mode-acl.c, remove lib/acl.c.
21615 (Makefile.am): Update lib_SOURCES.
21617 2008-05-25 Bruno Haible <bruno@clisp.org>
21619 * m4/acl.m4 (gl_FUNC_ACL): Don't set LIB_ACL_TRIVIAL.
21621 2008-05-25 Jim Meyering <meyering@redhat.com>
21623 useless-if-before-free: freed expr may have white-space differences
21624 * build-aux/useless-if-before-free: Recognize cases in which the
21625 freed expression differs from the tested one in embedded white
21626 space, e.g., if (p[i + 1]) free(p[i+1]). Correct thinko in prev:
21627 $1 was used, so we can't make any regexp shy. Improved tests now
21630 useless-if-before-free: accept white space in the expression.
21631 * build-aux/useless-if-before-free: For now, any white space
21632 in the expression must be identical in the free argument.
21634 useless-if-before-free: efficiency tweak
21635 * build-aux/useless-if-before-free: Make the expression-matching
21637 Make the *outer* regexp shy, not the expr-matching one.
21639 update code-in-comment to accept cast of free arg
21640 * build-aux/useless-if-before-free: Update regexp.
21642 2008-05-25 Bruno Haible <bruno@clisp.org>
21644 * tests/test-sameacls.c: Renamed from tests/test-copy-file-sameacls.c.
21645 * modules/copy-file-tests (Files, Makefile.am): Update.
21646 * tests/test-copy-file.c (func_test_copy): Update.
21648 2008-05-24 Andreas Färber <andreas.faerber@web.de> (tiny change)
21650 * lib/stdbool.in.h [__HAIKU__]: Disable __BEOS__ workarounds.
21652 2008-05-23 Bruno Haible <bruno@clisp.org>
21654 Improve support for ACLs on OSF/1.
21655 * lib/acl.c (qset_acl): For OSF/1, use a string that ends in a comma.
21656 Remove fallback for unknown flavors of ACLs.
21658 2008-05-22 Bruno Haible <bruno@clisp.org>
21660 Add support for ACLs on OSF/1.
21661 * lib/acl-internal.h (acl_get_fd, acl_set_fd): New inline function
21663 (acl_free_text): New macro fallback.
21664 * lib/acl_entries.c (acl_entries): Use acl_free_text instead of
21666 * m4/acl.m4 (gl_FUNC_ACL): Look also in libpacl library. Test for
21667 acl_free_text function. Require AC_C_INLINE.
21669 2008-05-22 Bruno Haible <bruno@clisp.org>
21671 Make copy_acl work on MacOS X 10.5.
21672 * lib/acl-internal.h (MODE_INSIDE_ACL): New macro.
21673 (ACL_NOT_WELL_SUPPORTED): On MacOS X, also handle ENOENT.
21674 * lib/acl.c (qset_acl): Add different code branch for !MODE_INSIDE_ACL.
21675 If MODE_INSIDE_ACL, don't assume that every system has the same text
21676 representation for ACLs as FreeBSD.
21677 * lib/copy-acl.c (copy_acl): Add support for platforms with
21679 * lib/file-has-acl.c (file_has_acl): Likewise.
21680 * m4/acl.m4 (gl_FUNC_ACL): Test for some functions that are witness of
21681 FreeBSD, MacOS X, or IRIX, respectively.
21683 2008-05-22 Bruno Haible <bruno@clisp.org>
21685 * lib/acl.h: Don't include <sys/acl.h>.
21686 (GETACLCNT): Move fallback to lib/acl-internal.h.
21687 * lib/acl-internal.h: Include <sys/acl.h> here.
21688 (GETACLCNT): New macro fallback, moved here from lib/acl.h.
21690 2008-05-22 Bruno Haible <bruno@clisp.org>
21692 Split off copy_acl function to separate file.
21693 * lib/copy-acl.c: New file, extracted from lib/acl.c.
21694 * lib/acl.c (copy_acl): Moved function to separate file.
21695 * m4/acl.m4 (gl_FUNC_ACL): Remove unconditional AC_LIBOBJs.
21696 * modules/acl (Files): Add lib/copy-acl.c.
21697 (Makefiles.am): Augment lib_SOURCES.
21699 2008-05-22 Bruno Haible <bruno@clisp.org>
21701 * modules/copy-file-tests: New file.
21702 * tests/test-copy-file.sh: New file.
21703 * tests/test-copy-file.c: New file.
21704 * tests/test-copy-file-sameacls.c: New file.
21706 2008-05-22 Eric Blake <ebb9@byu.net>
21709 * tests/test-memcmp.c (main): Pass NULL indirectly.
21711 2008-05-21 Bruno Haible <bruno@clisp.org>
21713 Add reference doc about ACLs.
21714 * doc/acl-resources.txt: New file.
21715 * doc/acl-cygwin.txt: New file.
21717 2008-05-21 Bruno Haible <bruno@clisp.org>
21719 Avoid one more warning from gcc.
21720 * lib/vasnprintf.c (IF_LINT): Update comments.
21721 (VASNPRINTF): Use it also for the 'prefix' array initializer.
21723 2008-05-21 Jim Meyering <meyering@redhat.com>
21725 avoid a warning from gcc
21726 * lib/vasnprintf.c (IF_LINT): Define.
21727 (scale10_round_decimal_long_double):
21728 Use it to avoid a "may be used uninitialized" warning.
21729 (scale10_round_decimal_double): Likewise.
21731 2008-05-21 Simon Josefsson <simon@josefsson.org>
21733 * m4/memcmp.m4: When cross-compiling, assume memcmp works if it is
21736 2008-05-20 Bruno Haible <bruno@clisp.org>
21738 * tests/test-memcmp.c (main): Test also the sign of the result. Test
21739 against two known bugs; code taken from autoconf's AC_FUNC_MEMCMP.
21741 2008-05-20 Simon Josefsson <simon@josefsson.org>
21743 * modules/memcmp-tests: New file.
21744 * tests/test-memcmp.c: New file.
21746 2008-05-19 Bruno Haible <bruno@clisp.org>
21748 * modules/propername (Notice, configure.ac): Put quoted "..." into
21750 * lib/propername.h: Update comments accordingly.
21751 Reported by Eric Blake.
21753 2008-05-19 Martin Lambers <marlam@marlam.de> (tiny change)
21755 * modules/getpass-gnu (Depends-on): Add fseeko.
21757 2008-05-19 Simon Josefsson <simon@josefsson.org>
21759 * modules/base64-tests: New file.
21761 2008-05-19 Bo Borgerson <gigabo@gmail.com>
21763 * lib/base64.c (base64_decode_ctx): If a decode context structure
21764 was passed in use it to ignore newlines. If a context structure
21765 was _not_ passed in, continue to treat newlines as garbage (this
21766 is the historical behavior). Formerly base64_decode.
21767 (base64_decode_alloc_ctx): Formerly base64_decode_alloc. Now
21768 takes a decode context structure.
21769 * lib/base64.h (base64_decode): Macro for four-argument calls.
21770 (base64_decode_alloc): Likewise.
21771 * lib/base64.c (base64_decode_ctx): If a decode context structure
21772 was passed in use it to ignore newlines. If a context structure
21773 was _not_ passed in, continue to treat newlines as garbage (this
21774 is the historical behavior). Formerly base64_decode.
21775 (base64_decode_alloc_ctx): Formerly base64_decode_alloc. Now
21776 takes a decode context structure.
21777 * lib/base64.h (base64_decode): Macro for four-argument calls.
21778 (base64_decode_alloc): Likewise.
21780 2008-05-19 Jim Meyering <meyering@redhat.com>
21782 avoid a warning from gcc
21783 * lib/trim.c (IF_LINT): Define.
21784 (trim2): Use it to avoid a "may be used uninitialized" warning.
21787 * doc/glibc-functions/getpass.texi (getpass): s/PATH_MAX/PASS_MAX/.
21789 2008-05-19 Bruno Haible <bruno@clisp.org>
21791 * doc/glibc-functions/getpass.texi: Document limits of other
21794 2008-05-19 Simon Josefsson <simon@josefsson.org>
21795 Bruno Haible <bruno@clisp.org>
21797 * doc/glibc-functions/getpass.texi: Document gnulib implementation.
21799 2008-05-18 Bruno Haible <bruno@clisp.org>
21801 * modules/propername: New file, from GNU gettext.
21802 * lib/propername.h: New file, from GNU gettext.
21803 * lib/propername.c: New file, from GNU gettext.
21804 * MODULES.html.sh (Internationalization functions): Add propername.
21806 2008-05-16 Jim Meyering <meyering@redhat.com>
21807 Bruno Haible <bruno@clisp.org>
21809 Avoid some warnings from "gcc -Wshadow".
21810 * lib/vasnprintf.c (exp, remainder): Define to different identifiers.
21812 2008-05-15 Eric Blake <ebb9@byu.net>
21814 Extend previous patch to cygwin 1.7.0.
21815 * m4/memmem.m4 (gl_FUNC_MEMMEM): When cross-compiling, assume a
21816 fast implementation in cygwin >= 1.7.0.
21817 * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
21818 * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
21820 2008-05-15 Bruno Haible <bruno@clisp.org>
21822 * m4/memmem.m4 (gl_FUNC_MEMMEM): When cross-compiling, assume a fast
21823 implementation in glibc >= 2.9.
21824 * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
21825 * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
21827 2008-05-15 Bruno Haible <bruno@clisp.org>
21829 * MODULES.html.sh (Internationalization functions): Remove linebreak.
21830 (Unicode string functions): Add unilbrk/*.
21831 Reported by Karl Berry.
21833 2008-05-15 Eric Blake <ebb9@byu.net>
21835 Fix violation of <stdbool.h> replacement in regex.
21836 * lib/regcomp.c (re_compile_internal): Avoid implicit cast to bool.
21837 * lib/regexec.c (re_search_internal): Likewise.
21838 Reported by Heinrich Mislik <Heinrich.Mislik@univie.ac.at>.
21840 2008-05-15 Jim Meyering <meyering@redhat.com>
21842 avoid distracting test output when git or cvs is not found
21843 * tests/test-vc-list-files-cvs.sh: Suppress 'init' error output.
21844 * tests/test-vc-list-files-git.sh: Likewise.
21846 2008-05-15 Eric Blake <ebb9@byu.net>
21848 Glibc finally accepted the memmem speedup code, bugzilla #5514.
21849 * doc/glibc-functions/memmem.texi (memmem): Mention last broken
21851 * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
21852 * doc/posix-functions/strstr.texi (strstr): Likewise.
21853 * lib/str-two-way.h (MAX): Sychronize with glibc.
21855 2008-05-15 Paolo Bonzini <bonzini@gnu.org>
21857 * lib/regcomp.c (optimize_utf8): Add a note on why we test
21859 (calc_first): Initialize constraint field.
21860 (duplicate_node_closure): Use it instead of special casing ANCHORS.
21862 (duplicate_node): Merge constraint field for all node types.
21863 (calc_eclosure_iter): Look at constraint field for all node types.
21864 * lib/regex_internal.c (create_cd_newstate): Don't look at
21867 2008-05-14 Bruno Haible <bruno@clisp.org>
21869 Help GCC to do better code generation.
21870 * lib/eealloc.h (eemalloc) [GCC >= 3]: Declare with attribute 'malloc'.
21871 * lib/pagealign_alloc.h (pagealign_alloc, pagealign_xalloc): Likewise.
21872 * lib/xalloc.h (ATTRIBUTE_MALLOC): New macro.
21873 (xmalloc, xzalloc, xcalloc, xmemdup, xstrdup, xnmalloc, xcharalloc):
21874 Declare with attribute 'malloc' if supported.
21876 2008-05-14 Lasse Collin <lasse.collin@tukaani.org>
21878 use "echo STR|wc -c" rather than unportable "expr length STR"
21879 * build-aux/mktempd (mktempd): Vendor-supplied expr from at least
21880 OpenBSD 4.3 and Solaris 10 do not honor expr's "length" function.
21882 2008-05-14 Jim Meyering <meyering@redhat.com>
21884 use dd ibs=$n count=1 ... rather than less-portable head -c$n
21885 * build-aux/mktempd (rand_bytes): head's -cN option is not accepted
21886 by Solaris 10's /bin/head or by the one from HP-UX 11.x.
21887 Reported in http://sourceforge.net/forum/message.php?msg_id=4960334
21890 2008-05-14 Eric Blake <ebb9@byu.net>
21892 Avoid quadratic growth in gl_LIBSOURCES.
21893 * gnulib-tool (func_emit_initmacro_done): s/\(m4_append\)_uniq/\1/.
21894 Suggested by Bruno Haible.
21897 * modules/xmemdup0-tests: New file.
21898 * tests/test-xmemdup0.c: Likewise.
21900 2008-05-13 Eric Blake <ebb9@byu.net>
21902 Split xmemdup0 into its own module.
21903 * modules/xmemdup0: New file.
21904 * lib/xmemdup0.h: Likewise.
21905 * lib/xmemdup0.c: Likewise.
21906 * MODULES.html.sh (Memory management functions): Add xmemdup0.
21907 * lib/xalloc.h (xmemdup0): Remove.
21908 * lib/xmalloc.c (xmemdup0): Likewise.
21910 2008-05-13 Eric Blake <ebb9@byu.net>
21911 Bruno Haible <bruno@clisp.org>
21913 Reduce number of forks required during autoconf.
21914 * gnulib-tool (func_emit_initmacro_start): Prepare gl_LIBSOURCES_LIST
21915 and gl_LIBSOURCES_DIR.
21916 (func_emit_initmacro_end): Use them here in a single m4_syscmd...
21917 (func_emit_initmacro_done) <gl_LIBSOURCES>: ...rather than in one
21918 m4_syscmd per file.
21919 <m4_foreach_w>: Move...
21920 * m4/gnulib-common.m4 (m4_foreach_w): ...here.
21922 2008-05-13 Eric Blake <ebb9@byu.net>
21924 * gnulib-tool: Fix various comment typos.
21926 2008-05-12 Bruno Haible <bruno@clisp.org>
21928 Tailor the linebreaking algorithm.
21929 * lib/unilbrk/tables.c (unilbrk_table): Change (IS,AL) entry.
21931 2008-05-12 Bruno Haible <bruno@clisp.org>
21933 Update to Unicode 5.0.0.
21934 * lib/unilbrk/tables.h (LBP_*): Add LBP_WJ, LBP_H2, LBP_H3, LBP_JL,
21935 LBP_JV, LBP_JT. Redistribute values.
21936 (unilbrk_table): Change size.
21937 * lib/unilbrk/tables.c (unilbrk_table): Change size. Update to match
21938 Unicode TR#14 rev. 22.
21939 * lib/unilbrk/gen-lbrk.c (LBP_*): Add LBP_WJ, LBP_H2, LBP_H3, LBP_JL,
21940 LBP_JV, LBP_JT. Redistribute values.
21941 (get_lbp): Update to match Unicode TR#14 rev. 21/22 and Unicode 5.0.0.
21942 (debug_output_lbp, fill_org_lbp, debug_output_org_lbp, output_lbp):
21944 * lib/unilbrk/lbrkprop1.h: Regenerated.
21945 * lib/unilbrk/lbrkprop2.h: Regenerated.
21946 * lib/unilbrk/u8-possible-linebreaks.c (u8_possible_linebreaks):
21947 Change handling of LBP_CM after LBP_ZW. Update for new value of LBP_BK.
21948 * lib/unilbrk/u16-possible-linebreaks.c (u16_possible_linebreaks):
21950 * lib/unilbrk/u32-possible-linebreaks.c (u32_possible_linebreaks):
21952 * tests/unilbrk/test-u8-possible-linebreaks.c (main): Update expected
21954 * tests/unilbrk/test-u16-possible-linebreaks.c (main): Likewise.
21955 * tests/unilbrk/test-u32-possible-linebreaks.c (main): Likewise.
21956 * tests/unilbrk/test-ulc-possible-linebreaks.c (main): Likewise.
21957 * tests/unilbrk/test-u8-width-linebreaks.c (main): Likewise.
21958 * tests/unilbrk/test-u16-width-linebreaks.c (main): Likewise.
21959 * tests/unilbrk/test-u32-width-linebreaks.c (main): Likewise.
21961 2008-05-11 Bruno Haible <bruno@clisp.org>
21963 * lib/unilbrk/gen-lbrk.c (output_lbp): Fix whitespace.
21965 2008-05-11 Bruno Haible <bruno@clisp.org>
21967 * lib/unilbrk/gen-lbrk.c: New file, from GNU gettext (gen-lbrkprop.c).
21968 * modules/unilbrk/gen-lbrk: New file.
21970 2008-05-11 Bruno Haible <bruno@clisp.org>
21972 * m4/sha256.m4 (gl_SHA256): Require AC_C_INLINE.
21973 * m4/sha512.m4 (gl_SHA512): Likewise.
21975 2008-05-11 Jim Meyering <meyering@redhat.com>
21977 New modules: crypto/sha256, crypto/sha512 (from coreutils)
21978 * modules/crypto/sha256: New file.
21979 * modules/crypto/sha512: Likewise.
21980 * lib/sha256.c: Likewise.
21981 * lib/sha256.h: Likewise.
21982 * lib/sha512.c: Likewise.
21983 * lib/sha512.h: Likewise.
21984 * lib/u64.h: Likewise.
21985 * m4/sha256.m4: Likewise.
21986 * m4/sha512.m4: Likewise.
21987 * MODULES.html.sh (Cryptographic computations (low-level)): List them.
21989 2008-05-10 Bruno Haible <bruno@clisp.org>
21991 * MODULES.html.sh (Environment variables <stdlib.h>): Add unsetenv.
21992 (Input/Output <stdio.h>): Add xprintf.
21993 (Signal handling <signal.h>): Add strsignal.
21994 (Cryptographic computations (high-level)): Add crypto/gc-camellia.
21995 (Core language properties): Add func.
21996 (Mathematics <math.h>): Add ceil, floor, frexp-nolibm.
21997 (Support for systems lacking POSIX:2001): Add environ, EOVERFLOW,
21999 (Enhancements for POSIX:2001 functions): Add iconv_open-utf.
22000 (Input/output): New section.
22001 (File system functions): Add openat-die, stat-macros.
22002 (Networking functions): Add sockets.
22003 (Unicode string functions): Add unictype/*.
22004 (Support for building libraries and executables): Add gperf.
22005 (Support for building documentation): Add agpl-3.0.
22006 (Misc): Add nocrash.
22008 2008-05-10 Bruno Haible <bruno@clisp.org>
22010 * modules/unictype/gen-ctype: New file.
22012 2008-05-10 Jim Meyering <meyering@redhat.com>
22014 Make chdir-safer.c more efficient on a system with no symlinks.
22015 * lib/chdir-safer.c (chdir_no_follow): Skip lstat and fstat calls
22016 also if ELOOP is zero. Suggested by Bruno Haible.
22018 Make chdir-safer.c slightly safer.
22019 * lib/chdir-safer.c (chdir_no_follow): Test HAVE_WORKING_O_NOFOLLOW,
22020 not O_NOFOLLOW, in case the latter is nonzero and open ignores it.
22022 Avoid compile failure on systems without ELOOP (like mingw).
22023 * lib/chdir-safer.c (ELOOP): Define if not already defined.
22024 Reported by Bruno Haible.
22026 2008-05-10 Bruno Haible <bruno@clisp.org>
22028 * lib/unilbrk/ulc-common.c: Include c-strcaseeq.h instead of streq.h.
22029 (is_utf8_encoding): Use a case-insensitive comparison.
22030 * modules/unilbrk/ulc-common (Depends-on): Add c-strcaseeq. Remove
22033 2008-05-10 Bruno Haible <bruno@clisp.org>
22035 * lib/unilbrk/ulc-common.c: Don't include <stdlib.h>.
22036 (iconv_string_length, iconv_string_keeping_offsets): Remove functions.
22037 * lib/unilbrk/ulc-common.h (iconv_string_length,
22038 iconv_string_keeping_offsets): Remove declarations.
22039 * lib/unilbrk/ulc-possible-linebreaks.c: Include <string.h>, uniconv.h.
22040 Don't include <iconv.h>, streq.h, xsize.h.
22041 (ulc_possible_linebreaks): Use u8_conv_from_encoding for doing the
22043 * lib/unilbrk/ulc-width-linebreaks.c: Include uniconv.h. Don't include
22044 <iconv.h>, streq.h, xsize.h.
22045 (ulc_width_linebreaks): Use u8_conv_from_encoding for doing the
22047 * modules/unilbrk/ulc-common (Depends-on): Remove iconv.
22048 * modules/unilbrk/ulc-possible-linebreaks (Depends-on): Add
22049 uniconv/u8-conv-from-enc. Remove iconv_open, streq, xsize.
22050 * modules/unilbrk/ulc-width-linebreaks (Depends-on): Likewise.
22052 2008-05-10 Bruno Haible <bruno@clisp.org>
22054 * modules/unilbrk/ulc-width-linebreaks-tests: New file.
22055 * tests/unilbrk/test-ulc-width-linebreaks.c: New file.
22057 * modules/unilbrk/u32-width-linebreaks-tests: New file.
22058 * tests/unilbrk/test-u32-width-linebreaks.c: New file.
22060 * modules/unilbrk/u16-width-linebreaks-tests: New file.
22061 * tests/unilbrk/test-u16-width-linebreaks.c: New file.
22063 * modules/unilbrk/u8-width-linebreaks-tests: New file.
22064 * tests/unilbrk/test-u8-width-linebreaks.c: New file.
22066 * modules/unilbrk/ulc-possible-linebreaks-tests: New file.
22067 * tests/unilbrk/test-ulc-possible-linebreaks.c: New file.
22069 * modules/unilbrk/u32-possible-linebreaks-tests: New file.
22070 * tests/unilbrk/test-u32-possible-linebreaks.c: New file.
22072 * modules/unilbrk/u16-possible-linebreaks-tests: New file.
22073 * tests/unilbrk/test-u16-possible-linebreaks.c: New file.
22075 * modules/unilbrk/u8-possible-linebreaks-tests: New file.
22076 * tests/unilbrk/test-u8-possible-linebreaks.c: New file.
22078 2008-05-10 Bruno Haible <bruno@clisp.org>
22080 Split up 'linebreak' module.
22081 * lib/unilbrk.h: New file, based on lib/linebreak.h.
22082 * lib/unilbrk/lbrkprop1.h: New file, extracted from lib/lbrkprop.h.
22083 * lib/unilbrk/lbrkprop2.h: New file, renamed from lib/lbrkprop.h with
22085 * lib/unilbrk/tables.h: New file, extracted from lib/linebreak.c.
22086 * lib/unilbrk/tables.c: New file, extracted from lib/linebreak.c.
22087 * lib/unilbrk/u8-possible-linebreaks.c: New file, extracted from
22089 * lib/unilbrk/u16-possible-linebreaks.c: New file, extracted from
22091 * lib/unilbrk/u32-possible-linebreaks.c: New file, extracted from
22093 * lib/unilbrk/ulc-common.h: New file, extracted from lib/linebreak.c.
22094 * lib/unilbrk/ulc-common.c: New file, extracted from lib/linebreak.c.
22095 * lib/unilbrk/ulc-possible-linebreaks.c: New file, extracted from
22097 * lib/unilbrk/u8-width-linebreaks.c: New file, extracted from
22099 * lib/unilbrk/u16-width-linebreaks.c: New file, extracted from
22101 * lib/unilbrk/u32-width-linebreaks.c: New file, extracted from
22103 * lib/unilbrk/ulc-width-linebreaks.c: New file, extracted from
22105 * modules/unilbrk/base: New file.
22106 * modules/unilbrk/tables: New file.
22107 * modules/unilbrk/u8-possible-linebreaks: New file.
22108 * modules/unilbrk/u16-possible-linebreaks: New file.
22109 * modules/unilbrk/u32-possible-linebreaks: New file.
22110 * modules/unilbrk/ulc-common: New file.
22111 * modules/unilbrk/ulc-possible-linebreaks: New file.
22112 * modules/unilbrk/u8-width-linebreaks: New file.
22113 * modules/unilbrk/u16-width-linebreaks: New file.
22114 * modules/unilbrk/u32-width-linebreaks: New file.
22115 * modules/unilbrk/ulc-width-linebreaks: New file.
22116 * lib/linebreak.h: Remove file.
22117 * lib/linebreak.c: Remove file.
22118 * m4/linebreak.m4: Remove file.
22119 * modules/linebreak: Remove file.
22120 * NEWS: Mention the changes.
22122 2008-05-09 Eric Blake <ebb9@byu.net>
22125 * lib/xalloc.h (xmemdup0): New prototype and C++ typesafe
22127 * lib/xmalloc.c (xmemdup0): New C implementation.
22129 2008-05-08 Bruno Haible <bruno@clisp.org>
22131 * m4/wctype.m4 (gl_WCTYPE_H): Correct indentation.
22133 2008-05-07 Eric Blake <ebb9@byu.net>
22135 Support cross-compilation of <wctype.h>.
22136 * m4/wctype.m4 (gl_WCTYPE_H): Fix improper nesting in
22139 2008-05-06 Soren Hansen <soren@ubuntu.com> (tiny change)
22141 * build-aux/vc-list-files: Add support for bzr.
22143 2008-05-03 Jim Meyering <meyering@redhat.com>
22145 avoid failed assertion with tight malloc
22146 * tests/test-getndelim2.c: Correct an off-by-one assertion.
22148 2008-05-03 Simon Josefsson <simon@josefsson.org>
22150 * m4/inet_pton.m4: Set HAVE_DECL_INET_PTON to 0 when declarations
22151 are needed from arpa/inet.h.
22152 * m4/inet_ntop.m4: Likewise, for HAVE_DECL_INET_NTOP.
22153 Reported by Bruno Haible.
22155 2008-05-02 Jim Meyering <meyering@redhat.com>
22157 avoid compilation error on FreeBSD 6
22158 * tests/test-getaddrinfo.c [!defined EAI_NODATA] (EAI_NODATA): Define.
22160 2008-05-01 Jim Meyering <meyering@redhat.com>
22162 useless-if-before-free: correct --help's exit status description
22163 * build-aux/useless-if-before-free (usage): Like grep, exit 0
22164 for one or more matches, etc. Reported by Bruno Haible.
22166 vc-list-files: make the stand-alone gnulib test work
22167 * modules/vc-list-files-tests (configure.ac):
22168 Define and AC_SUBST abs_aux_dir.
22169 (Makefile.am) [TESTS_ENVIRONMENT]: Rather than passing
22170 $(abs_top_srcdir) to each script and having each of them
22171 duplicate the work of setting PATH, set PATH here, using
22172 the new variable, abs_aux_dir instead.
22173 * tests/test-vc-list-files-cvs.sh: Don't set PATH here.
22174 * tests/test-vc-list-files-git.sh: Likewise.
22175 Reported by Bruno Haible.
22177 2008-05-01 Bruno Haible <bruno@clisp.org>
22179 * lib/getndelim2.c (getndelim2): Fix newsize computation during
22180 reallocation. Rename 'done' to 'found_delimiter'.
22182 2008-05-01 Jim Meyering <meyering@redhat.com>
22184 vc-list-files: accommodate /bin/sh like the one from Solaris 10
22185 * build-aux/vc-list-files: Use `...`, not $(...).
22187 2008-04-30 Jim Meyering <meyering@redhat.com>
22189 add tests for vc-list-files
22190 * modules/vc-list-files-tests: New module.
22191 * tests/test-vc-list-files-cvs.sh: New file.
22192 * tests/test-vc-list-files-git.sh: New file.
22194 avoid a warning from gcc
22195 * lib/getndelim2.c (IF_LINT): Define.
22196 (getndelim2): Use it to avoid a "may be used uninitialized" warning.
22198 vc-list-files: work properly with build-aux/cvsu, too
22199 * build-aux/vc-list-files: Hoist the "./"-removing code to apply
22200 to all cvs-based clauses.
22202 vc-list-files: work properly in the CVS+awk case, too
22203 * build-aux/vc-list-files: In the CVS+awk case, remove "./" prefix.
22205 vc-list-files: avoid use of ${*-*} that fails when /bin/sh is dash
22206 * build-aux/vc-list-files: Simplify ${*-*} to $dir, since we no longer
22207 take more than one file argument, so . Add quotes, just in case $dir
22208 ever contains a shell meta-character. Prompted by Soren Hansen in
22209 <http://thread.gmane.org/gmane.comp.emulators.libvirt/6221/focus=6240>.
22211 2008-04-29 Eric Blake <ebb9@byu.net>
22213 Optimize getndelim2 to use block operations when possible.
22214 * modules/getndelim2 (Depends-on): Add stdbool, freadptr,
22215 freadseek, and memchr2.
22216 * lib/getndelim2.c (getndelim2): Use them for block reads.
22218 2008-04-29 Bruno Haible <bruno@clisp.org>
22220 * m4/inet_ntop.m4 (gl_INET_NTOP): Require gl_USE_SYSTEM_EXTENSIONS.
22221 * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
22222 * modules/inet_ntop (Depends-on): Add extensions.
22223 * modules/inet_pton (Depends-on): Likewise.
22224 Reported by Simon Josefsson.
22226 2008-04-29 Jim Meyering <meyering@redhat.com>
22228 When the is more than one match in a block, match all of them.
22229 * build-aux/useless-if-before-free: Iterate through each block
22230 until there are no more matches.
22232 Fix broken useless-if-before-free script.
22233 * build-aux/useless-if-before-free: Fix typo: missing "?" after
22234 the expression to match cast of argument to free-like function.
22236 2008-04-29 Eric Blake <ebb9@byu.net>
22239 * lib/getaddrinfo.c (includes): s/"inet_ntop.h"/<arpa/inet.h>/.
22241 2008-04-29 Jim Meyering <meyering@redhat.com>
22243 Avoid test segfault on x86_64 due to lack of inet_ntop declaration.
22244 * tests/test-getaddrinfo.c: Include <arpa/inet.h>, now guaranteed
22245 by gnulib to exist and to declare e.g., inet_ntop.
22246 Don't include "inet_ntop.h", now removed.
22248 * m4/arpa_inet_h.m4: Remove trailing blanks.
22250 2008-04-29 Eric Blake <ebb9@byu.net>
22252 Silence valgrind on safe reads beyond potential array bounds.
22253 * lib/rawmemchr.valgrind: New file.
22254 * lib/strchrnul.valgrind: Likewise.
22255 * modules/rawmemchr (Files): Distribute new file.
22256 * modules/strchrnul (Files): Likewise.
22257 Suggested by Bruno Haible.
22259 2008-04-29 Bruno Haible <bruno@clisp.org>
22261 * lib/arpa_inet.in.h: Include system's <arpa/inet.h> if it exists.
22262 (inet_ntop, inet_pton): Change portability warning's wording.
22263 * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Set HAVE_ARPA_INET_H.
22264 Invoke gl_CHECK_NEXT_HEADERS.
22265 (gl_ARPA_INET_H_DEFAULTS): Initialize ARPA_INET_H.
22266 * m4/inet_ntop.m4 (gl_INET_NTOP): Require gl_ARPA_INET_H_DEFAULTS and
22268 * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
22269 * modules/arpa_inet (Description): No longer only for systems that
22271 (Depends-on): Add include_next.
22272 (Makeile.am): Substitute INCLUDE_NEXT, NEXT_ARPA_INET_H,
22275 2008-04-29 Jim Meyering <meyering@redhat.com>
22277 * modules/mkdir (License): Re-license as LGPLv2+.
22279 2008-04-29 Bruno Haible <bruno@clisp.org>
22281 * modules/rawmemchr (Maintainer): Set to Eric.
22282 * modules/strchrnul (Maintainer): Likewise.
22284 2008-04-29 Simon Josefsson <simon@josefsson.org>
22286 * m4/arpa_inet_h.m4 (gl_ARPA_INET_H_DEFAULTS): Set
22287 HAVE_DECL_INET_NTOP and HAVE_DECL_INET_PTON.
22289 * modules/arpa_inet (arpa/inet.h): Use them.
22291 2008-04-28 Eric Blake <ebb9@byu.net>
22294 * modules/getndelim2-tests: New file.
22295 * tests/test-getndelim2.c: Likewise.
22296 * lib/getndelim2.c (getndelim2): Never return 0. Lock the
22298 * m4/getndelim2.m4 (gl_GETNDELIM2): Check for lock functions.
22300 * MODULES.html.sh: Document new module.
22302 2008-04-20 Bruno Haible <bruno@clisp.org>
22304 * lib/c-stack.c (die): Use raise.
22305 * modules/c-stack (Depends-on): Add raise.
22307 2008-04-28 Bruno Haible <bruno@clisp.org>
22309 Expect rpmatch to be declared.
22310 * lib/yesno.c (rpmatch): Remove declaration.
22313 * lib/stdlib.in.h (rpmatch): New declaration.
22314 * lib/rpmatch.c: Include <stdlib.h> first.
22315 * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Require AC_USE_SYSTEM_EXTENSIONS and
22316 gl_STDLIB_H_DEFAULTS. Set HAVE_RPMATCH.
22317 * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_RPMATCH,
22319 * modules/rpmatch (Depends-on): Add stdlib, extensions.
22320 (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
22321 (Include): Set to <stdlib.h>.
22322 * modules/stdlib (Makefile.am): Substitute GNULIB_RPMATCH and
22324 * NEWS: Document the change.
22326 2008-04-28 Bruno Haible <bruno@clisp.org>
22328 Change rpmatch to use nl_langinfo when appropriate.
22329 * lib/rpmatch.c: Include stdbool.h, string.h, langinfo.h.
22331 (localized_pattern): New function/macro.
22332 (try): Remove match, nomatch arguments. Copy the pattern into safe
22333 memory before caching it.
22334 (rpmatch): Use localized_pattern. Add translator comments.
22335 * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Test for nl_langinfo and YESEXPR.
22336 Suggested by Eric Blake.
22337 * modules/rpmatch (Depends-on): Add stdbool.
22339 2008-04-28 Eric Blake <ebb9@byu.net>
22341 Add rawmemchr module, matching glibc.
22342 * modules/string (Makefile.am): New indicator.
22343 * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Set it.
22344 * lib/string.in.h (rawmemchr): Declare when appropriate.
22345 * modules/rawmemchr: New file.
22346 * m4/rawmemchr.m4: Likewise.
22347 * lib/rawmemchr.c: Likewise.
22348 * modules/rawmemchr-tests: Likewise.
22349 * tests/test-rawmemchr.c: Likewise.
22350 * doc/glibc-functions/rawmemchr.texi (rawmemchr): Document
22352 * modules/strchrnul (Depends-on): Add rawmemchr.
22353 * lib/strchrnul.c (strchrnul): Optimize a corner case.
22355 Whitespace cleanup.
22356 * tests/test-strchrnul.c: Reindent.
22357 * lib/strchrnul.c: Likewise.
22359 Optimize and test strchrnul.
22360 * lib/strchrnul.c (strchrnul): Rewrite to do parallel search.
22361 * modules/strchrnul-tests: New file.
22362 * tests/test-strchrnul.c: Likewise.
22364 Remove intprops dependency.
22365 * modules/memchr (Depends-on): Remove intprops.
22366 * modules/memrchr (Depends-on): Likewise.
22367 * modules/memchr2 (Depends-on): Likewise.
22368 * lib/memchr.c (__memchr): Hand-inline the TYPE_MAXIMUM check.
22369 * lib/memrchr.c (__memrchr): Likewise.
22370 * lib/memrchr2.c (memchr2): Likewise.
22371 Reported by Simon Josefsson.
22373 2008-04-28 Simon Josefsson <simon@josefsson.org>
22375 * m4/sys_socket_h.m4: Move AC_REQUIRE([AC_C_INLINE]) to top.
22376 Suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
22378 2008-04-28 Simon Josefsson <simon@josefsson.org>
22380 * lib/inet_ntop.h, lib/inet_pton.h: Remove files.
22382 * lib/inet_ntop.c: Include arpa/inet.h instead of inet_ntop.h.
22384 * lib/inet_pton.c: Include arpa/inet.h instead of inet_pton.h.
22386 * lib/arpa_inet.in.h [@GNULIB_INET_NTOP@]: Inline inet_ntop.h
22388 [@GNULIB_INET_PTON@]: Inline inet_pton.h declarations.
22390 * m4/inet_pton.m4: Don't check for header files.
22392 * m4/inet_ntop.m4: Don't check for header files.
22394 2008-04-28 Simon Josefsson <simon@josefsson.org>
22396 * m4/sys_socket_h.m4: Require AC_C_INLINE when necessary.
22397 * lib/sys_socket.in.h (setsockopt): Use proper win32 tests (don't
22398 trigger for cygwin).
22399 Reported by Bruno Haible <bruno@clisp.org>.
22401 2008-04-28 Bruno Haible <bruno@clisp.org>
22403 * doc/posix-functions/strdup.texi: Mention mingw problem.
22405 2008-04-27 Bruno Haible <bruno@clisp.org>
22407 * modules/stat-time-tests (Depends-on): Add sleep.
22408 * tests/test-stat-time.c (force_unlink): New function.
22410 (test_mtime): Remove the ctime related tests.
22411 (test_ctime): New function, containing the ctime related tests.
22412 (main): Call test_ctime, except on native Windows platforms.
22414 2008-04-27 Bruno Haible <bruno@clisp.org>
22416 * lib/rpmatch.c (rpmatch): Add some comments.
22417 Reported by James Youngman <jay@gnu.org>.
22419 2008-04-27 Bruno Haible <bruno@clisp.org>
22421 * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Also test the behaviour on
22424 2008-04-27 Bruno Haible <bruno@clisp.org>
22426 Make test-yesno.sh work on mingw.
22427 * tests/test-yesno.sh: Postprocess the output to convert CR/LF to LF.
22428 * tests/test-yesno.c: Include yesno.h first. Include binary-io.h.
22429 (main): Set stdin to binary mode.
22430 * modules/yesno-tests (Depends-on): Add binary-io.
22432 2008-04-27 Bruno Haible <bruno@clisp.org>
22434 Fix 'isfinite' on x86, x86_64, ia64 platforms.
22435 * tests/test-isfinite.c (test_isfinitel): Also test the behavior on
22436 argument that lie outside the IEEE 854 domain.
22437 * m4/isfinite.m4 (gl_ISFINITEL_WORKS): New macro.
22438 (gl_ISFINITE): Use it.
22439 * doc/posix-functions/isfinite.texi: Document the fixed bugs.
22441 2008-04-27 Bruno Haible <bruno@clisp.org>
22443 Allow local renaming in config.h.
22444 * lib/memrchr.c (memrchr): Don't undefine outside libc.
22446 2008-04-27 Bruno Haible <bruno@clisp.org>
22448 * lib/memchr.c (__memchr): Change type of 'i'.
22449 * lib/memchr2.c (memchr2): Likewise.
22451 2008-04-26 Eric Blake <ebb9@byu.net>
22452 and Bruno Haible <bruno@clisp.org>
22454 Optimize and test memrchr.
22455 * modules/memrchr (Depends-on): Add intprops.
22456 * lib/memrchr.c (__memrchr): Avoid false positives in loop.
22457 * modules/memrchr-tests: New file.
22458 * tests/test-memrchr.c: New file.
22460 2008-04-26 Bruno Haible <bruno@clisp.org>
22462 Add tentative support for DragonFly BSD.
22463 * lib/stdio-impl.h: Add macros for DragonFly BSD.
22464 * lib/fbufmode.c (fbufmode): Update conditionals. Use fp_ instead of
22466 * lib/fflush.c (clear_ungetc_buffer, disable_seek_optimization,
22467 restore_seek_optimization, update_fpos_cache, rpl_fflush: Likewise.
22468 * lib/fpurge.c (fpurge): Likewise.
22469 * lib/freadable.c (freaadable): Likewise.
22470 * lib/freadahead.c (freadahead): Likewise.
22471 * lib/freading.c (freading): Likewise.
22472 * lib/freadptr.c (freadptr): Likewise.
22473 * lib/freadseek.c (freadptrinc): Likewise.
22474 * lib/fseeko.c (fseeko): Likewise.
22475 * lib/fseterr.c (fseterr): Likewise.
22476 * lib/fwritable.c (fwritable): Likewise.
22477 * lib/fwriting.c (fwriting): Likewise.
22479 2008-04-26 Bruno Haible <bruno@clisp.org>
22481 * lib/stdio-impl.h: New file.
22482 * lib/fbufmode.c: Include stdio-impl.h.
22483 (fbufmode): Use fp_, remove redundant #defines.
22484 * lib/fflush.c: Include stdio-impl.h.
22485 (clear_ungetc_buffer): Remove redundant #defines.
22486 * lib/fpurge.c: Include stdio-impl.h.
22487 (fpurge): Remove redundant #defines.
22488 * lib/freadable.c: Include stdio-impl.h.
22489 (freadable): Remove redundant #defines.
22490 * lib/freadahead.c: Include stdio-impl.h.
22491 (freadahead): Remove redundant #defines.
22492 * lib/freading.c: Include stdio-impl.h.
22493 (freading): Remove redundant #defines.
22494 * lib/freadptr.c: Include stdio-impl.h.
22495 (freadptr): Remove redundant #defines.
22496 * lib/freadseek.c: Include stdio-impl.h.
22497 (freadptrinc): Remove redundant #defines.
22498 * lib/fseeko.c: Include stdio-impl.h.
22499 (rpl_fseeko): Remove redundant #defines.
22500 * lib/fseterr.c: Include stdio-impl.h.
22501 (fseterr): Remove redundant #defines.
22502 * lib/fwritable.c: Include stdio-impl.h.
22503 (fwritable: Remove redundant #defines.
22504 * lib/fwriting.c: Include stdio-impl.h.
22505 (fwriting): Remove redundant #defines.
22506 * modules/fbufmode (Files): Add lib/stdio-impl.h.
22507 * modules/fflush (Files): Likewise.
22508 * modules/fpurge (Files): Likewise.
22509 * modules/freadable (Files): Likewise.
22510 * modules/freadahead (Files): Likewise.
22511 * modules/freading (Files): Likewise.
22512 * modules/freadptr (Files): Likewise.
22513 * modules/freadseek (Files): Likewise.
22514 * modules/fseeko (Files): Likewise.
22515 * modules/fseterr (Files): Likewise.
22516 * modules/fwritable (Files): Likewise.
22517 * modules/fwriting (Files): Likewise.
22519 2008-04-26 Bruno Haible <bruno@clisp.org>
22521 * lib/fflush.c (clear_ungetc_buffer, disable_seek_optimization,
22522 restore_seek_optimization, update_fpos_cache): New functions, extracted
22524 (rpl_fflush): Use them.
22525 * m4/fflush.m4 (gl_PREREQ_FFLUSH): New macro.
22526 (gl_REPLACE_FFLUSH): Use it.
22528 2008-04-26 Bruno Haible <bruno@clisp.org>
22530 * tests/test-xstrtol.sh: Work around limitation of an old 'tr' program
22532 * tests/test-xstrtoimax.sh: Likewise.
22533 * tests/test-xstrtoumax.sh: Likewise.
22534 Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
22536 2008-04-26 Bruno Haible <bruno@clisp.org>
22538 * modules/memchr-tests: New file.
22539 * tests/test-memchr.c; New file, based on tests/test-memchr2.c.
22541 2008-04-26 Eric Blake <ebb9@byu.net>
22542 Bruno Haible <bruno@clisp.org>
22544 * lib/memchr.c: Include intprops.h.
22545 (__memchr): Optimize parallel detection of matching bytes. Rename local
22546 variables. Add explanatory comments.
22548 2008-04-26 Bruno Haible <bruno@clisp.org>
22550 Fix module 'memchr', broken since 2000-10-28.
22551 * lib/memchr.c: Outside glibc, define memchr, not __memchr.
22553 2008-04-26 Bruno Haible <bruno@clisp.org>
22555 * lib/memchr2.c (memchr2): Rename local variables. Add explanatory
22558 2008-04-25 Eric Blake <ebb9@byu.net>
22560 Use native fstatat on cygwin 1.7.0.
22561 * m4/openat.m4 (gl_FUNC_OPENAT): Make sure lstat check is made
22564 2008-04-23 Eric Blake <ebb9@byu.net>
22566 Improve memchr2 performance.
22567 * lib/memchr2.c (memchr2): Further optimize parallel detection of
22569 * modules/memchr2 (Depends-on): Use intprops.h.
22571 2008-04-23 Simon Josefsson <simon@josefsson.org>
22573 * lib/sys_socket.in.h (setsockopt): Be more type safe by declaring
22574 an inline function instead of a CPP macro. Patch by Ben Pfaff
22575 <blp@cs.stanford.edu>.
22577 2008-04-23 Simon Josefsson <simon@josefsson.org>
22579 * lib/arpa_inet.in.h: New file.
22581 * modules/arpa_inet (Files): Add lib/arpa_inet.in.h.
22582 (Makefile.am): Sed in substitute header file.
22584 * m4/arpa_inet_h.m4: Add gl_ARPA_INET_H_DEFAULTS and
22585 gl_ARPA_INET_MODULE_INDICATOR. Use them.
22587 * modules/inet_ntop (configure.ac): Use
22588 gl_ARPA_INET_MODULE_INDICATOR.
22590 * modules/inet_pton (configure.ac): Use
22591 gl_ARPA_INET_MODULE_INDICATOR.
22593 2008-04-22 Jim Meyering <meyering@redhat.com>
22595 * modules/verify (License): Re-license as LGPLv2+.
22597 2008-04-22 Simon Josefsson <simon@josefsson.org>
22599 * lib/sys_socket.in.h: Define setsockopt macro to cast fourth
22600 parameter to void* as per POSIX standard (MinGW uses char*).
22602 2008-04-21 Bruno Haible <bruno@clisp.org>
22604 * lib/wctype.in.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
22605 iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit):
22606 Define to replacements if REPLACE_ISWCNTRL is 1.
22607 * m4/wctype.m4 (gl_WCTYPE_H): Test whether the isw* functions work.
22608 If not, set WCTYPE_H to nonempty and REPLACE_ISWCNTRL to 1.
22609 * modules/wctype (Makefile.am): Substitute REPLACE_ISWCNTRL.
22610 * doc/posix-functions/iswalnum.texi: Mention the 'wctype' module and
22612 * doc/posix-functions/iswalpha.texi: Likewise.
22613 * doc/posix-functions/iswblank.texi: Likewise.
22614 * doc/posix-functions/iswcntrl.texi: Likewise.
22615 * doc/posix-functions/iswdigit.texi: Likewise.
22616 * doc/posix-functions/iswgraph.texi: Likewise.
22617 * doc/posix-functions/iswlower.texi: Likewise.
22618 * doc/posix-functions/iswprint.texi: Likewise.
22619 * doc/posix-functions/iswpunct.texi: Likewise.
22620 * doc/posix-functions/iswspace.texi: Likewise.
22621 * doc/posix-functions/iswupper.texi: Likewise.
22622 * doc/posix-functions/iswxdigit.texi: Likewise.
22623 Reported by Alain Guibert.
22625 2008-04-21 Bruno Haible <bruno@clisp.org>
22627 * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Fix typo in last commit.
22628 Patch by Alain Guibert.
22630 2008-04-21 Bruno Haible <bruno@clisp.org>
22632 Fix test failures on mingw.
22633 * tests/test-xstrtol.c (print_no_progname): New function.
22634 (main): Install it in error_print_progname hook.
22635 * tests/test-xstrtol.sh: Convert CR/LF to NL in output.
22636 * tests/test-xstrtoimax.sh: Likewise.
22637 * tests/test-xstrtoumax.sh: Likewise.
22639 2008-04-21 Bruno Haible <bruno@clisp.org>
22641 Fix test failure on mingw.
22642 * tests/test-argp-2.sh (func_compare): Remove CRs from sed's output.
22644 2008-04-21 Bruno Haible <bruno@clisp.org>
22646 * lib/localename.c (SUBLANG_TIBETAN_PRC, SUBLANG_TIBETAN_BHUTAN):
22647 Actually assign a value.
22649 2008-04-20 Bruno Haible <bruno@clisp.org>
22651 Fix conflict between modules 'canonicalize' and 'canonicalize-lgpl',
22653 * lib/canonicalize.c (canonicalize_file_name): Elide if the
22654 'canonicalize-lgpl' module is also used.
22655 * lib/canonicalize-lgpl.c: Undo last change.
22656 * modules/canonicalize-lgpl (configure.ac): Invoke gl_MODULE_INDICATOR.
22658 2008-04-20 Bruno Haible <bruno@clisp.org>
22660 * lib/mkdir.c (mkdir): Undefine after the includes, not right after
22661 config.h. Provide _mkdir based fallback for mingw.
22662 * lib/sys_stat.in.h (mkdir): Define through an 'extern' declaration
22663 if REPLACE_MKDIR is 1. Otherwise, test for mingw directly.
22664 * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Require
22665 gl_SYS_STAT_H_DEFAULTS. When doing the replacement, set REPLACE_MKDIR
22666 rather than defining mkdir in config.h.
22667 * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): New macro.
22668 (gl_SYS_STAT_H_DEFAULTS): New macro.
22669 (gl_HEADER_SYS_STAT_H): Require it. Don't set HAVE_DECL_MKDIR and
22670 HAVE_IO_H any more.
22671 * modules/sys_stat (Makefile.am): Substitute REPLACE_MKDIR instead of
22672 HAVE_DECL_MKDIR and HAVE_IO_H.
22674 2008-04-20 Bruno Haible <bruno@clisp.org>
22676 * lib/isapipe.c: Port to native Windows platforms.
22678 2008-04-20 Bruno Haible <bruno@clisp.org>
22680 * lib/gc-gnulib.c: Include <windows.h> before <wincrypt.h>.
22682 2008-04-21 Eric Blake <ebb9@byu.net>
22684 Work around preprocessors that don't handle UINTMAX_MAX.
22685 * lib/memchr2.c (memchr2): Avoid embedded #if.
22686 Reported by Alain Guibert, fix suggested by Bruno Haible.
22688 2008-04-21 Simon Josefsson <simon@josefsson.org>
22690 * doc/posix-functions/strftime.texi (strftime): Explain better
22691 Windows incompatibility. Suggested by Micah Cowan
22692 <micah@cowan.name>.
22694 2008-04-20 Bruno Haible <bruno@clisp.org>
22696 * modules/uniconv/u32-conv-to-enc (Depends-on): Add unistr/u32-mblen,
22699 2008-04-20 Bruno Haible <bruno@clisp.org>
22701 Fix test failure on platforms with non-GNU iconv.
22702 * lib/uniconv/u16-conv-to-enc.c (u16_to_u8_lenient): New function.
22703 (U_TO_U8): Use it, rather than u16_to_u8.
22704 * lib/uniconv/u-conv-to-enc.h (FUNC): Allow an incomplete sequence of
22705 units at the end of the input string.
22706 * modules/uniconv/u16-conv-to-enc (Depends-on): Update.
22708 2008-04-20 Bruno Haible <bruno@clisp.org>
22710 * tests/uniconv/test-u8-conv-to-enc.c (main): Accept result == NULL
22711 when the resulting length is 0.
22712 * tests/uniconv/test-u16-conv-to-enc.c (main): Likewise.
22714 2008-04-20 Bruno Haible <bruno@clisp.org>
22716 * m4/roundf.m4 (gl_FUNC_ROUNDF): Add test whether roundf actually
22718 * doc/posix-functions/roundf.texi: Mention roundf bug on mingw.
22720 2008-04-20 Bruno Haible <bruno@clisp.org>
22722 * tests/test-tsearch.c (main): Don't use initstate if it is missing.
22723 * modules/tsearch-tests (configure.ac): Test for initstate function.
22725 2008-04-20 Bruno Haible <bruno@clisp.org>
22727 * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Also provided a substitute
22728 for nlink_t if missing.
22729 * tests/test-sys_stat.c: Check the existence of the nlink_t type.
22731 2008-04-19 Bruno Haible <bruno@clisp.org>
22733 Work around snprintf bug on Linux libc5.
22734 * m4/printf.m4 (gl_SNPRINTF_SIZE1): New macro.
22735 * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
22737 * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
22738 * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Likewise. Replace snprintf if
22740 * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Likewise.
22741 * lib/vasnprintf.c (USE_SNPRINTF): Set to 0 on Linux libc5 systems.
22742 * modules/snprintf (Files): Add m4/printf.m4.
22743 * modules/vsnprintf (Files): Likewise.
22744 * doc/posix-functions/snprintf.texi: Document Linux libc5 problem.
22745 * doc/posix-functions/vsnprintf.texi: Likewise.
22747 2008-04-19 Bruno Haible <bruno@clisp.org>
22749 * lib/vasnprintf.c (floorlog10l, floorlog10): Reduce maximum error
22750 from 0.0058 to less than 10^-7.
22752 2008-04-19 Bruno Haible <bruno@clisp.org>
22754 Fix rounding when a precision is given.
22755 * lib/vasnprintf.c (is_borderline): New function.
22756 (VASNPRINTF): For %e and %g, consider replacing the digits 10....0 with
22758 * tests/test-vasnprintf-posix.c (test_function): Test rounding with %f,
22760 * tests/test-vasprintf-posix.c (test_function): Likewise.
22761 * tests/test-snprintf-posix.h (test_function): Likewise.
22762 * tests/test-sprintf-posix.h (test_function): Likewise.
22763 * tests/test-fprintf-posix.h (test_function): Test rounding with %f.
22764 * tests/test-printf-posix.h (test_function): Likewise.
22765 * tests/test-printf-posix.output: Update.
22766 Reported by John Darrington <john@darrington.wattle.id.au> via
22767 Ben Pfaff <blp@cs.stanford.edu>.
22769 2008-04-18 Simon Josefsson <simon@josefsson.org>
22771 * doc/posix-functions/strftime.texi (strftime): Clarify platform.
22772 Suggested by Bruno Haible <bruno@clisp.org>.
22774 2008-04-17 Bruno Haible <bruno@clisp.org>
22776 * lib/lock.h (gl_lock_destroy, gl_rwlock_destroy,
22777 gl_recursive_lock_destroy): Provide no-op definitions for the dummy
22779 Patch by Bruce Merry <bmerry@gmail.com>.
22781 2008-04-17 Simon Josefsson <simon@josefsson.org>
22783 * doc/posix-functions/strftime.texi (strftime): Mention that %e
22784 doesn't work under Windows.
22786 2008-04-16 Bruno Haible <bruno@clisp.org>
22788 * lib/localename.c (LANG_MAORI, LANG_QUECHUA, LANG_SOTHO, LANG_UIGHUR):
22790 (SUBLANG_BOSNIAN_BOSNIA_HERZEGOVINA_LATIN,
22791 SUBLANG_BOSNIAN_BOSNIA_HERZEGOVINA_CYRILLIC,
22792 SUBLANG_CROATIAN_CROATIA, SUBLANG_CROATIAN_BOSNIA_HERZEGOVINA_LATIN,
22793 SUBLANG_MONGOLIAN_CYRILLIC_MONGOLIA, SUBLANG_MONGOLIAN_PRC,
22794 SUBLANG_QUECHUA_BOLIVIA, SUBLANG_QUECHUA_ECUADOR, SUBLANG_QUECHUA_PERU,
22795 SUBLANG_RUSSIAN_RUSSIA, SUBLANG_RUSSIAN_MOLDAVIA, SUBLANG_SPANISH_US,
22796 SUBLANG_TIBETAN_PRC, SUBLANG_TIBETAN_BHUTAN, SUBLANG_UIGHUR_PRC): New
22798 (gl_locale_name_from_win32_LANGID): Refine code for Croatian/Bosnian,
22799 Mongolian, Russian, Spanish, Tibetan. Add code for Maori, Quechua,
22800 Northern Sotho, Uighur.
22802 2008-04-16 Bruno Haible <bruno@clisp.org>
22804 * lib/localename.c (SUBLANG_SINDHI_INDIA): New macro.
22805 (SUBLANG_SINDHI_PAKISTAN): Change value from 1 to 2.
22806 (gl_locale_name_from_win32_LANGID): Fix code for Sindhi.
22807 Reported by Daniel Bergström <daniel@octocode.com>.
22809 2007-12-25 KJK::Hyperion <hackbunny@reactos.com>
22810 Bruno Haible <bruno@clisp.org>
22812 * lib/localename.c (gl_locale_name_canonicalize) [WIN32_NATIVE]: New
22814 (gl_locale_name_from_win32_LANGID, gl_locale_name_from_win32_LCID):
22815 New functions, mostly extracted from gl_locale_name_default.
22816 (gl_locale_name_default): Use gl_locale_name_from_win32_LCID.
22818 2008-04-16 Eric Blake <ebb9@byu.net>
22820 Adjust strtod detection to catch glibc 2.7 bug.
22821 * m4/strtod.m4 (gl_FUNC_STRTOD): Test "nan()" behavior.
22822 Reported by John Gatewood Ham.
22824 2008-04-16 Bruno Haible <bruno@clisp.org>
22826 Add tentative support for Linux libc5.
22827 * lib/fbufmode.c (fbufmode) [__GNU_LIBRARY__==1]: Reuse glibc2 code.
22828 * lib/fpurge.c (fpurge): Likewise.
22829 * lib/freadable.c (freadable): Likewise.
22830 * lib/freadahead.c (freadahead): Likewise.
22831 * lib/freading.c (freading): Likewise.
22832 * lib/freadptr.c (freadptr): Likewise.
22833 * lib/freadseek.c (freadptrinc): Likewise.
22834 * lib/fseeko.c (rpl_fseeko): Likewise.
22835 * lib/fseterr.c (fseterr): Likewise.
22836 * lib/fwritable.c (fwritable): Likewise.
22837 * lib/fwriting.c (fwriting): Likewise.
22838 Reported by Alain Guibert <alguibert+bts@free.fr>.
22840 2008-04-15 Bruno Haible <bruno@clisp.org>
22842 * modules/mathl (configure.ac): Define module indicator.
22844 2008-04-15 Bruno Haible <bruno@clisp.org>
22846 * lib/logl.c (logl): Remove unused variables.
22848 2008-04-15 Bruno Haible <bruno@clisp.org>
22850 * lib/uniconv/u-conv-to-enc.h (FUNC): Fix return value when U_TO_U8
22853 2008-04-15 Bruno Haible <bruno@clisp.org>
22855 * lib/trim.c (trim2): Fix argument of isspace() macro.
22857 2008-04-15 Paolo Bonzini <bonzini@gnu.org>
22859 * lib/tanl.c (kernel_tanl): Rename flag to invert, initialize it
22861 * lib/trigl.c (ieee754_rem_pio2l): Fix range checks.
22863 2008-04-14 Bruno Haible <bruno@clisp.org>
22865 * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Fix underquoting of
22866 AC_LANG_PROGRAM argument.
22867 * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Likewise.
22868 * m4/gethrxtime.m4 (gl_ARITHMETIC_HRTIME_T): Likewise.
22869 * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
22870 * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
22871 * m4/math_h.m4 (gl_MATH_H): Likewise.
22872 * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Likewise.
22873 * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
22874 * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Likewise.
22875 * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): Likewise.
22876 * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
22877 * m4/regex.m4 (gl_REGEX): Likewise.
22878 * m4/stdint.m4 (gl_INTEGER_TYPE_SUFFIX): Likewise.
22879 * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET): Likewise.
22880 * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
22881 * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Likewise.
22882 * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
22883 * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
22884 * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
22885 * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
22887 2008-04-14 Jim Meyering <meyering@redhat.com>
22889 test-strtod: fix typos: s/abs/fabs/
22890 * tests/test-strtod.c (main): Use fabs, not narrowing-to-int "abs".
22892 2008-04-13 Bruno Haible <bruno@clisp.org>
22894 Fix conflict between modules 'canonicalize' and 'canonicalize-lgpl'.
22895 * lib/canonicalize-lgpl.c: Elide the contents if the 'canonicalize'
22896 module is also used and while not building the reloc-wrapper.
22898 2008-04-13 Bruno Haible <bruno@clisp.org>
22900 * tests/test-getaddrinfo.c (simple): Ignore EAI_NODATA error.
22902 2008-04-13 Bruno Haible <bruno@clisp.org>
22904 Fix AIX compilation failure introduced on 2008-04-02.
22905 * tests/test-frexp.c (exp): Undefine before redefining.
22906 * tests/test-frexpl.c (exp): Likewise.
22908 2008-04-13 Bruno Haible <bruno@clisp.org>
22910 Work around a HP-UX stdio bug.
22911 * tests/test-ftell.c (main): Disable the fseek/ftell test on HP-UX.
22912 * tests/test-ftello.c (main): Likewise.
22913 * doc/posix-functions/ftell.texi: Mention HP-UX bug.
22914 * doc/posix-functions/ftello.texi: Likewise.
22916 2008-04-13 Bruno Haible <bruno@clisp.org>
22918 Make test-signbit pass on HP-UX/hppa.
22919 * tests/test-signbit.c (minus_zerol): New variable.
22920 (test_signbitl): Use it.
22922 2008-04-13 Bruno Haible <bruno@clisp.org>
22924 Make truncl work on OSF/1 4.0.
22925 * m4/truncl.m4 (gl_FUNC_TRUNCL): Test whether truncl actually works.
22926 Set REPLACE_TRUNCL, not HAVE_DECL_TRUNCL.
22927 * lib/math.in.h (truncl): Test REPLACE_TRUNCL, not HAVE_DECL_TRUNCL.
22928 * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_TRUNCL, not
22930 * modules/math (Makefile.am): Substitute REPLACE_TRUNCL, not
22932 * doc/posix-functions/truncl.texi: Document the OSF/1 4.0 problem.
22934 2008-04-13 Bruno Haible <bruno@clisp.org>
22936 * lib/unictype.h: Remove trailing comma from enumeration definitions.
22938 2008-04-13 Bruno Haible <bruno@clisp.org>
22940 * lib/count-one-bits.h (COUNT_ONE_BITS): Rewrite verification
22941 expression, so as to avoid HP-UX 11 cc compiler bug.
22943 2008-04-13 Bruno Haible <bruno@clisp.org>
22945 * m4/regex.m4 (gl_PREREQ_REGEX): Also check for <libintl.h>.
22947 2008-04-13 Bruno Haible <bruno@clisp.org>
22949 * lib/git-merge-changelog.c: Remove empty declaration outside of
22952 2008-04-13 Bruno Haible <bruno@clisp.org>
22954 * modules/quotearg-tests (Makefile.am): Define test_quotearg_LDADD.
22956 2008-04-13 Bruno Haible <bruno@clisp.org>
22958 * doc/posix-headers/sys_socket.texi: Document the problem on EMX.
22959 * lib/sys_socket.in.h (SHUT_RD, SHUT_WR, SHUT_RDWR): Define if missing.
22960 * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Replace <sys/socket.h>
22961 also if it exists but lacks definitions of the SHUT_* macros.
22962 * modules/sys_socket (Description): Update.
22963 Reported by Elbert Pol <e.pol@chello.nl>.
22965 2008-04-13 Bruno Haible <bruno@clisp.org>
22967 * lib/localcharset.c (OS2): Don't redefine if already defined.
22968 Reported by Elbert Pol <e.pol@chello.nl>.
22970 2008-04-13 Bruno Haible <bruno@clisp.org>
22972 * lib/binary-io.h [__EMX__]: Include <io.h>.
22973 Reported by Elbert Pol <e.pol@chello.nl>.
22975 2008-04-12 Bruno Haible <bruno@clisp.org>
22977 * lib/fpucw.h: Enable the definitions also for x86_64.
22978 Needed for NetBSD/x86_64.
22979 Reported by Thomas Klausner <tk@giga.or.at>.
22981 2008-04-12 Bruno Haible <bruno@clisp.org>
22983 * tests/test-strtod.c: Include isnand.h.
22984 (main): Use isnand instead of isnan.
22985 Reported by Jim Meyering.
22987 2008-04-12 Bruno Haible <bruno@clisp.org>
22989 * m4/isnanf.m4 (gl_ISNANF_WORKS): Add a test for a special NaN.
22990 Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
22992 2008-04-12 Jim Meyering <meyering@redhat.com>
22994 * m4/math_h.m4 (gl_MATH_H): Fix typos.
22996 2008-04-12 Bruno Haible <bruno@clisp.org>
22998 * lib/freadptr.c (freadptr) [__EMX__]: Fix wrong assertion.
22999 Reported by Elbert Pol <e.pol@chello.nl>.
23001 2008-04-12 Eric Blake <ebb9@byu.net>
23003 Work around Solaris 10 math.h bug.
23004 * m4/math_h.m4 (gl_MATH_H): Check for bug.
23005 (gl_MATH_H_DEFAULTS): Set up default.
23006 * modules/math (Makefile.am): Replace new indicators.
23007 * lib/math.in.h (NAN, HUGE_VAL): Provide replacements.
23008 * tests/test-math.c (main): Test this.
23009 * m4/strtod.m4 (gl_FUNC_STRTOD): Don't rely on HUGE_VAL.
23010 * doc/posix-headers/math.texi (math.h): Mention bug.
23011 Reported by Nelson H. F. Beebe and Jim Meyering.
23013 2008-04-11 Bruno Haible <bruno@clisp.org>
23015 Adapt to future versions of Apple GCC.
23016 * lib/argp-fmtstream.h (ARGP_FS_EI): Don't test __GNUC_GNU_INLINE__.
23017 Reported by Peter O'Gorman <peter@pogma.com>.
23019 2008-04-11 Bruno Haible <bruno@clisp.org>
23021 * tests/test-getaddrinfo.c (simple): Ignore EAI_NONAME error.
23023 2008-04-11 Bruno Haible <bruno@clisp.org>
23025 * modules/strsignal-tests (Makefile.am): Define test_strsignal_LDADD.
23027 * modules/getaddrinfo-tests (Makefile.am): Define
23028 test_getaddrinfo_LDADD.
23030 2008-04-11 Bruno Haible <bruno@clisp.org>
23032 * lib/strsignal.c (_sys_siglist): Don't declare if already declared.
23033 (init): Fix syntax error.
23034 * m4/strsignal.m4 (gl_PREREQ_STRSIGNAL): Check whether _sys_siglist
23037 2008-04-11 Bruno Haible <bruno@clisp.org>
23039 * lib/glob.c: Include <stdbool.h>. Needed at least with IRIX cc.
23040 * modules/glob (Depends-on): Add stdbool.
23042 2008-04-11 Bruno Haible <bruno@clisp.org>
23044 * lib/trim.c: Include <string.h>.
23046 2008-04-11 Eric Blake <ebb9@byu.net>
23048 Avoid compile failure on OS/2.
23049 * lib/regex_internal.h (internal_function): Disable optimization
23050 on OS/2 (__EMX__), where it caused compiler error.
23051 Reported by Elbert Pol.
23053 2008-04-11 Bruno Haible <bruno@clisp.org>
23055 Flush the standard error stream before aborting. Needed on mingw.
23056 * tests/test-argmatch.c (ASSERT): Call fflush(stderr) before abort().
23057 * tests/test-array_list.c (ASSERT): Likewise.
23058 * tests/test-array_oset.c (ASSERT): Likewise.
23059 * tests/test-avltree_list.c (ASSERT): Likewise.
23060 * tests/test-avltree_oset.c (ASSERT): Likewise.
23061 * tests/test-avltreehash_list.c (ASSERT): Likewise.
23062 * tests/test-binary-io.c (ASSERT): Likewise.
23063 * tests/test-byteswap.c (ASSERT): Likewise.
23064 * tests/test-c-ctype.c (ASSERT): Likewise.
23065 * tests/test-c-strcasecmp.c (ASSERT): Likewise.
23066 * tests/test-c-strcasestr.c (ASSERT): Likewise.
23067 * tests/test-c-strncasecmp.c (ASSERT): Likewise.
23068 * tests/test-c-strstr.c (ASSERT): Likewise.
23069 * tests/test-canonicalize-lgpl.c (ASSERT): Likewise.
23070 * tests/test-canonicalize.c (ASSERT): Likewise.
23071 * tests/test-carray_list.c (ASSERT): Likewise.
23072 * tests/test-ceilf1.c (ASSERT): Likewise.
23073 * tests/test-ceilf2.c (ASSERT): Likewise.
23074 * tests/test-ceill.c (ASSERT): Likewise.
23075 * tests/test-count-one-bits.c (ASSERT): Likewise.
23076 * tests/test-fbufmode.c (ASSERT): Likewise.
23077 * tests/test-fflush2.c (ASSERT): Likewise.
23078 * tests/test-floorf1.c (ASSERT): Likewise.
23079 * tests/test-floorf2.c (ASSERT): Likewise.
23080 * tests/test-floorl.c (ASSERT): Likewise.
23081 * tests/test-fopen.c (ASSERT): Likewise.
23082 * tests/test-fpending.c (ASSERT): Likewise.
23083 * tests/test-fprintf-posix.c (ASSERT): Likewise.
23084 * tests/test-fpurge.c (ASSERT): Likewise.
23085 * tests/test-freadable.c (ASSERT): Likewise.
23086 * tests/test-freadahead.c (ASSERT): Likewise.
23087 * tests/test-freading.c (ASSERT): Likewise.
23088 * tests/test-freadptr.c (ASSERT): Likewise.
23089 * tests/test-freadptr2.c (ASSERT): Likewise.
23090 * tests/test-freadseek.c (ASSERT): Likewise.
23091 * tests/test-freopen.c (ASSERT): Likewise.
23092 * tests/test-frexp.c (ASSERT): Likewise.
23093 * tests/test-frexpl.c (ASSERT): Likewise.
23094 * tests/test-fseek.c (ASSERT): Likewise.
23095 * tests/test-fseeko.c (ASSERT): Likewise.
23096 * tests/test-fstrcmp.c (ASSERT): Likewise.
23097 * tests/test-ftell.c (ASSERT): Likewise.
23098 * tests/test-ftello.c (ASSERT): Likewise.
23099 * tests/test-func.c (ASSERT): Likewise.
23100 * tests/test-fwritable.c (ASSERT): Likewise.
23101 * tests/test-fwriting.c (ASSERT): Likewise.
23102 * tests/test-getdelim.c (ASSERT): Likewise.
23103 * tests/test-getline.c (ASSERT): Likewise.
23104 * tests/test-i-ring.c (ASSERT): Likewise.
23105 * tests/test-iconv-utf.c (ASSERT): Likewise.
23106 * tests/test-iconv.c (ASSERT): Likewise.
23107 * tests/test-isfinite.c (ASSERT): Likewise.
23108 * tests/test-isnand.c (ASSERT): Likewise.
23109 * tests/test-isnanf.c (ASSERT): Likewise.
23110 * tests/test-isnanl.h (ASSERT): Likewise.
23111 * tests/test-ldexpl.c (ASSERT): Likewise.
23112 * tests/test-linked_list.c (ASSERT): Likewise.
23113 * tests/test-linkedhash_list.c (ASSERT): Likewise.
23114 * tests/test-localename.c (ASSERT): Likewise.
23115 * tests/test-lseek.c (ASSERT): Likewise.
23116 * tests/test-mbscasecmp.c (ASSERT): Likewise.
23117 * tests/test-mbscasestr1.c (ASSERT): Likewise.
23118 * tests/test-mbscasestr2.c (ASSERT): Likewise.
23119 * tests/test-mbscasestr3.c (ASSERT): Likewise.
23120 * tests/test-mbscasestr4.c (ASSERT): Likewise.
23121 * tests/test-mbschr.c (ASSERT): Likewise.
23122 * tests/test-mbscspn.c (ASSERT): Likewise.
23123 * tests/test-mbsncasecmp.c (ASSERT): Likewise.
23124 * tests/test-mbspbrk.c (ASSERT): Likewise.
23125 * tests/test-mbspcasecmp.c (ASSERT): Likewise.
23126 * tests/test-mbsrchr.c (ASSERT): Likewise.
23127 * tests/test-mbsspn.c (ASSERT): Likewise.
23128 * tests/test-mbsstr1.c (ASSERT): Likewise.
23129 * tests/test-mbsstr2.c (ASSERT): Likewise.
23130 * tests/test-mbsstr3.c (ASSERT): Likewise.
23131 * tests/test-memchr2.c (ASSERT): Likewise.
23132 * tests/test-memmem.c (ASSERT): Likewise.
23133 * tests/test-open.c (ASSERT): Likewise.
23134 * tests/test-printf-frexp.c (ASSERT): Likewise.
23135 * tests/test-printf-frexpl.c (ASSERT): Likewise.
23136 * tests/test-printf-posix.c (ASSERT): Likewise.
23137 * tests/test-quotearg.c (ASSERT): Likewise.
23138 * tests/test-rbtree_list.c (ASSERT): Likewise.
23139 * tests/test-rbtree_oset.c (ASSERT): Likewise.
23140 * tests/test-rbtreehash_list.c (ASSERT): Likewise.
23141 * tests/test-round1.c (ASSERT): Likewise.
23142 * tests/test-roundf1.c (ASSERT): Likewise.
23143 * tests/test-roundl.c (ASSERT): Likewise.
23144 * tests/test-signbit.c (ASSERT): Likewise.
23145 * tests/test-sleep.c (ASSERT): Likewise.
23146 * tests/test-snprintf-posix.c (ASSERT): Likewise.
23147 * tests/test-snprintf.c (ASSERT): Likewise.
23148 * tests/test-sprintf-posix.c (ASSERT): Likewise.
23149 * tests/test-stat-time.c (ASSERT): Likewise.
23150 * tests/test-strcasestr.c (ASSERT): Likewise.
23151 * tests/test-strerror.c (ASSERT): Likewise.
23152 * tests/test-striconv.c (ASSERT): Likewise.
23153 * tests/test-striconveh.c (ASSERT): Likewise.
23154 * tests/test-striconveha.c (ASSERT): Likewise.
23155 * tests/test-strsignal.c (ASSERT): Likewise.
23156 * tests/test-strstr.c (ASSERT): Likewise.
23157 * tests/test-strtod.c (ASSERT): Likewise.
23158 * tests/test-trunc1.c (ASSERT): Likewise.
23159 * tests/test-trunc2.c (ASSERT): Likewise.
23160 * tests/test-truncf1.c (ASSERT): Likewise.
23161 * tests/test-truncf2.c (ASSERT): Likewise.
23162 * tests/test-truncl.c (ASSERT): Likewise.
23163 * tests/test-vasnprintf-posix.c (ASSERT): Likewise.
23164 * tests/test-vasnprintf-posix2.c (ASSERT): Likewise.
23165 * tests/test-vasnprintf.c (ASSERT): Likewise.
23166 * tests/test-vasprintf-posix.c (ASSERT): Likewise.
23167 * tests/test-vasprintf.c (ASSERT): Likewise.
23168 * tests/test-vfprintf-posix.c (ASSERT): Likewise.
23169 * tests/test-vprintf-posix.c (ASSERT): Likewise.
23170 * tests/test-vsnprintf-posix.c (ASSERT): Likewise.
23171 * tests/test-vsnprintf.c (ASSERT): Likewise.
23172 * tests/test-vsprintf-posix.c (ASSERT): Likewise.
23173 * tests/test-wcwidth.c (ASSERT): Likewise.
23174 * tests/test-xfprintf-posix.c (ASSERT): Likewise.
23175 * tests/test-xprintf-posix.c (ASSERT): Likewise.
23176 * tests/test-xvasprintf.c (ASSERT): Likewise.
23177 * tests/uniconv/test-u16-conv-from-enc.c (ASSERT): Likewise.
23178 * tests/uniconv/test-u16-conv-to-enc.c (ASSERT): Likewise.
23179 * tests/uniconv/test-u16-strconv-from-enc.c (ASSERT): Likewise.
23180 * tests/uniconv/test-u16-strconv-to-enc.c (ASSERT): Likewise.
23181 * tests/uniconv/test-u32-conv-from-enc.c (ASSERT): Likewise.
23182 * tests/uniconv/test-u32-conv-to-enc.c (ASSERT): Likewise.
23183 * tests/uniconv/test-u32-strconv-from-enc.c (ASSERT): Likewise.
23184 * tests/uniconv/test-u32-strconv-to-enc.c (ASSERT): Likewise.
23185 * tests/uniconv/test-u8-conv-from-enc.c (ASSERT): Likewise.
23186 * tests/uniconv/test-u8-conv-to-enc.c (ASSERT): Likewise.
23187 * tests/uniconv/test-u8-strconv-from-enc.c (ASSERT): Likewise.
23188 * tests/uniconv/test-u8-strconv-to-enc.c (ASSERT): Likewise.
23189 * tests/unictype/test-bidi_byname.c (ASSERT): Likewise.
23190 * tests/unictype/test-bidi_name.c (ASSERT): Likewise.
23191 * tests/unictype/test-bidi_of.c (ASSERT): Likewise.
23192 * tests/unictype/test-bidi_test.c (ASSERT): Likewise.
23193 * tests/unictype/test-block_list.c (ASSERT): Likewise.
23194 * tests/unictype/test-block_of.c (ASSERT): Likewise.
23195 * tests/unictype/test-block_test.c (ASSERT): Likewise.
23196 * tests/unictype/test-categ_and.c (ASSERT): Likewise.
23197 * tests/unictype/test-categ_and_not.c (ASSERT): Likewise.
23198 * tests/unictype/test-categ_byname.c (ASSERT): Likewise.
23199 * tests/unictype/test-categ_name.c (ASSERT): Likewise.
23200 * tests/unictype/test-categ_none.c (ASSERT): Likewise.
23201 * tests/unictype/test-categ_of.c (ASSERT): Likewise.
23202 * tests/unictype/test-categ_or.c (ASSERT): Likewise.
23203 * tests/unictype/test-categ_test_withtable.c (ASSERT): Likewise.
23204 * tests/unictype/test-combining.c (ASSERT): Likewise.
23205 * tests/unictype/test-decdigit.c (ASSERT): Likewise.
23206 * tests/unictype/test-digit.c (ASSERT): Likewise.
23207 * tests/unictype/test-mirror.c (ASSERT): Likewise.
23208 * tests/unictype/test-numeric.c (ASSERT): Likewise.
23209 * tests/unictype/test-pr_byname.c (ASSERT): Likewise.
23210 * tests/unictype/test-pr_test.c (ASSERT): Likewise.
23211 * tests/unictype/test-predicate-part1.h (ASSERT): Likewise.
23212 * tests/unictype/test-scripts.c (ASSERT): Likewise.
23213 * tests/unictype/test-sy_c_ident.c (ASSERT): Likewise.
23214 * tests/unictype/test-sy_java_ident.c (ASSERT): Likewise.
23215 * tests/unistdio/test-u16-asnprintf1.c (ASSERT): Likewise.
23216 * tests/unistdio/test-u16-vasnprintf1.c (ASSERT): Likewise.
23217 * tests/unistdio/test-u16-vasnprintf2.c (ASSERT): Likewise.
23218 * tests/unistdio/test-u16-vasnprintf3.c (ASSERT): Likewise.
23219 * tests/unistdio/test-u16-vasprintf1.c (ASSERT): Likewise.
23220 * tests/unistdio/test-u16-vsnprintf1.c (ASSERT): Likewise.
23221 * tests/unistdio/test-u16-vsprintf1.c (ASSERT): Likewise.
23222 * tests/unistdio/test-u32-asnprintf1.c (ASSERT): Likewise.
23223 * tests/unistdio/test-u32-vasnprintf1.c (ASSERT): Likewise.
23224 * tests/unistdio/test-u32-vasnprintf2.c (ASSERT): Likewise.
23225 * tests/unistdio/test-u32-vasnprintf3.c (ASSERT): Likewise.
23226 * tests/unistdio/test-u32-vasprintf1.c (ASSERT): Likewise.
23227 * tests/unistdio/test-u32-vsnprintf1.c (ASSERT): Likewise.
23228 * tests/unistdio/test-u32-vsprintf1.c (ASSERT): Likewise.
23229 * tests/unistdio/test-u8-asnprintf1.c (ASSERT): Likewise.
23230 * tests/unistdio/test-u8-vasnprintf1.c (ASSERT): Likewise.
23231 * tests/unistdio/test-u8-vasnprintf2.c (ASSERT): Likewise.
23232 * tests/unistdio/test-u8-vasnprintf3.c (ASSERT): Likewise.
23233 * tests/unistdio/test-u8-vasprintf1.c (ASSERT): Likewise.
23234 * tests/unistdio/test-u8-vsnprintf1.c (ASSERT): Likewise.
23235 * tests/unistdio/test-u8-vsprintf1.c (ASSERT): Likewise.
23236 * tests/unistdio/test-ulc-asnprintf1.c (ASSERT): Likewise.
23237 * tests/unistdio/test-ulc-vasnprintf1.c (ASSERT): Likewise.
23238 * tests/unistdio/test-ulc-vasnprintf2.c (ASSERT): Likewise.
23239 * tests/unistdio/test-ulc-vasnprintf3.c (ASSERT): Likewise.
23240 * tests/unistdio/test-ulc-vasprintf1.c (ASSERT): Likewise.
23241 * tests/unistdio/test-ulc-vsnprintf1.c (ASSERT): Likewise.
23242 * tests/unistdio/test-ulc-vsprintf1.c (ASSERT): Likewise.
23243 * tests/uniwidth/test-u16-strwidth.c (ASSERT): Likewise.
23244 * tests/uniwidth/test-u16-width.c (ASSERT): Likewise.
23245 * tests/uniwidth/test-u32-strwidth.c (ASSERT): Likewise.
23246 * tests/uniwidth/test-u32-width.c (ASSERT): Likewise.
23247 * tests/uniwidth/test-u8-strwidth.c (ASSERT): Likewise.
23248 * tests/uniwidth/test-u8-width.c (ASSERT): Likewise.
23249 * tests/uniwidth/test-uc_width.c (ASSERT): Likewise.
23250 Reported by Eric Blake.
23252 2008-04-11 Bruno Haible <bruno@clisp.org>
23254 * lib/wchar.in.h: Tweak comment.
23256 2008-04-11 Bruno Haible <bruno@clisp.org>
23258 Fix __GNUC_STDC_INLINE__ predefine with Apple GCC on MacOS X 10.5.
23259 * gnulib-tool (func_emit_initmacro_start): Emit an invocation of
23261 * m4/gnulib-common.m4 (gl_COMMON, gl_COMMON_BODY): New macros.
23263 2008-04-11 Bruno Haible <bruno@clisp.org>
23265 * modules/git-merge-changelog (git_merge_changelog_LDADD): Add LIBINTL.
23267 2008-04-11 Simon Josefsson <simon@josefsson.org>
23269 * lib/gc-gnulib.c: On Windows, use CryptGenRandom from CSP instead
23270 of attempting to use non-existing /dev/*random. Based on patch
23271 from Adam Strzelecki <ono@java.pl> in
23272 <http://lists.gnu.org/archive/html/help-gsasl/2008-02/msg00000.html>.
23274 2008-04-08 Bruno Haible <bruno@clisp.org>
23276 Add tentative support for emx+gcc.
23277 * lib/fbufmode.c (fbufmode) [__EMX__]: Add conditional code.
23278 * lib/fpurge.c (fpurge): Likewise.
23279 * lib/freadable.c (freadable): Likewise.
23280 * lib/freadahead.c (freadahead): Likewise.
23281 * lib/freading.c (freading): Likewise.
23282 * lib/freadptr.c (freadptr): Likewise.
23283 * lib/freadseek.c (freadptrinc): Likewise.
23284 * lib/fseeko.c (rpl_fseeko): Likewise.
23285 * lib/fseterr.c (fseterr): Likewise.
23286 * lib/fwritable.c (fwritable): Likewise.
23287 * lib/fwriting.c (fwriting): Likewise.
23288 * m4/fpending.m4 (gl_FUNC_FPENDING): Add a variant for emx+gcc.
23290 2008-04-09 Eric Blake <ebb9@byu.net>
23292 Avoid some autoconf warnings.
23293 * m4/regex.m4 (gl_REGEX): s/AC_HELP_STRING/AS_HELP_STRING/.
23294 * m4/acl.m4 (gl_FUNC_ACL): Likewise.
23295 * m4/afs.m4 (gl_AFS): Likewise.
23296 * m4/gc-random.m4 (gl_GC_RANDOM): Likewise.
23297 * m4/include_next.m4 (gl_INCLUDE_NEXT): s/AC_FOREACH/m4_foreach_w/.
23298 * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
23299 * m4/stdint.m4 (gl_STDINT_BITSIZEOF, gl_CHECK_TYPES_SIGNED)
23300 (gl_INTEGER_TYPE_SUFFIX): Likewise.
23301 * m4/onceonly_2_57.m4 (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE)
23302 (AC_CHECK_DECLS_ONCE): Likewise.
23304 * m4/onceonly.m4: ...to this, and delete 2.54 variant, now that
23305 gnulib-tool requires autoconf 2.59 or better.
23306 * gnulib-tool (func_get_filelist): s/\(onceonly\)_2_57.m4/\1.m4/.
23308 2008-04-08 Eric Blake <ebb9@byu.net>
23310 Use 'git describe --match' if present (added in git 1.5.5).
23311 * build-aux/git-version-gen: Limit result to tags that match 'v*'
23314 2008-04-08 Bruno Haible <bruno@clisp.org>
23316 Add tentative support for OpenServer.
23317 * lib/fbufmode.c (fbufmode): Add conditional define for _flag, _base,
23319 * lib/fpurge.c (fpurge): Likewise.
23320 * lib/freadable.c (freadable): Likewise.
23321 * lib/freadahead.c (freadahead): Likewise.
23322 * lib/freading.c (freading): Likewise.
23323 * lib/freadptr.c (freadptr): Likewise.
23324 * lib/freadseek.c (freadptrinc): Likewise.
23325 * lib/fseeko.c (rpl_fseeko): Likewise.
23326 * lib/fseterr.c (fseterr): Likewise.
23327 * lib/fwritable.c (fwritable): Likewise.
23328 * lib/fwriting.c (fwriting): Likewise.
23329 Reported by Roger Cornelius <rac@tenzing.org> and
23330 Brian K. White <brian@aljex.com>.
23332 2008-04-06 Jim Meyering <meyering@redhat.com>
23334 * gnulib-tool (func_add_or_update): s/backuped/backed up/ in diagnostic
23336 2008-04-06 Bruno Haible <bruno@clisp.org>
23338 Avoid possible error with non-ASCII bytes in UTF-8 locales.
23339 * tests/test-fprintf-posix.sh: Use "LC_ALL=C tr" instead of "tr".
23340 * tests/test-printf-posix.sh: Likewise.
23341 * tests/test-vfprintf-posix.sh: Likewise.
23342 * tests/test-vprintf-posix.sh: Likewise.
23343 * tests/test-xprintf-posix.sh: Likewise.
23345 2008-04-06 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
23347 * m4/double-slash-root.m4 (gl_DOUBLE_SLASH_ROOT): Fix quoting,
23348 hide error from 'ls', needed on OS/2.
23349 Report by Elbert Pol <elbert.pol@gmail.com>.
23351 2008-04-04 Eric Blake <ebb9@byu.net>
23353 Make test-fseeko.c failures meaningful.
23354 * tests/test-fseeko.c: Print line number on failure.
23355 * tests/test-fseek.c: Likewise.
23356 Reported by Nelson H. F. Beebe.
23358 Improve strtod bug detection check.
23359 * m4/strtod.m4 (gl_FUNC_STRTOD): Also check for hex-float parsing,
23360 required for Solaris 10.
23361 Reported by Bob Friesenhahn and Nelson H. F. Beebe.
23363 2008-04-04 Bruno Haible <bruno@clisp.org>
23365 * modules/relocatable-prog-wrapper (Files): Add m4/environ.m4. Needed
23368 2008-04-03 Eric Blake <ebb9@byu.net>
23370 Ensure sane .version contents.
23371 * top/GNUmakefile (_dummy): Also delete .version when rebuilding
23373 * build-aux/git-version-gen: Improve documentation.
23375 Make GNU make output nicer.
23376 * top/GNUmakefile [!_have-Makefile]: Add dependency on
23377 MAKECMDGOALS to enforce message for all command line targets. Set
23378 srcdir for use in maint.mk.
23380 Another maintainer tweak.
23381 * top/GNUmakefile (_is-dist-target): Allow maintainer-distcheck as
23382 a target that regenerates version.
23384 2008-04-03 Jim Meyering <meyering@redhat.com>
23386 vc-list-files: don't cause coreutils "make po-check" failure
23387 * build-aux/vc-list-files: Skip postprocessing when $2 is '.'
23389 2008-04-03 Eric Blake <ebb9@byu.net>
23391 Allow VPATH usage of vc-list-files.
23392 * build-aux/vc-list-files (scriptversion): Add timestamp.
23393 (options): Add --help, --version, -C.
23394 (CVS): Support installed cvsu.
23396 2008-04-02 Bruno Haible <bruno@clisp.org>
23398 Avoid some "statement with no effect" warnings from gcc.
23399 * tests/test-wctype.c (main): Explicitly ignore unused values.
23400 Reported by Jim Meyering.
23402 2008-04-02 Jim Meyering <meyering@redhat.com>
23404 Avoid some warnings from "gcc -Wshadow".
23405 * tests/test-frexp.c (exp): Define to a different identifier.
23406 * tests/test-frexpl.c (exp): Likewise.
23408 2008-04-03 Jim Meyering <meyering@redhat.com>
23410 bootstrap: remove dangling *.[ch] symlinks from lib
23411 * build-aux/bootstrap [dangling symlink removal]: Move find's
23412 -depth option to precede all others, to avoid a warning.
23413 Remove *.[ch] files too, and from "$source_base" (usually lib/).
23415 2008-04-02 Bruno Haible <bruno@clisp.org>
23417 Avoid some warnings from "gcc -Wshadow".
23418 * tests/tests-vfprintf-posix.c (my_fprintf): Move after test_function.
23419 * tests/tests-vprintf-posix.c (my_printf): Move after test_function.
23420 * tests/tests-vsnprintf-posix.c (my_snprintf): Move after test_function.
23421 * tests/tests-vsprintf-posix.c (my_sprintf): Move after test_function.
23422 Reported by Jim Meyering.
23424 2008-04-01 Bruno Haible <bruno@clisp.org>
23426 Fix test to work on IRIX 6.5 with cc.
23427 * tests/test-math.c (numeric_equal): New function.
23430 2008-04-01 Bruno Haible <bruno@clisp.org>
23432 * doc/posix-headers/math.texi: Refine documentation of NAN problem.
23434 2008-04-01 Bruno Haible <bruno@clisp.org>
23436 * tests/test-vasnprintf-posix.c: Include nan.h instead of <math.h>.
23437 (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
23438 * modules/vasnprintf-posix-tests (Files): Add tests/nan.h.
23439 (Depends-on): Remove math.
23441 * tests/test-vasprintf-posix.c: Include nan.h instead of <math.h>.
23442 (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
23443 * modules/vasprintf-posix-tests (Files): Add tests/nan.h.
23444 (Depends-on): Remove math.
23446 * tests/test-snprintf-posix.h: Include nan.h instead of <math.h>.
23447 (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
23448 * modules/snprintf-posix-tests (Files): Add tests/nan.h.
23449 (Depends-on): Remove math.
23450 * modules/vsnprintf-posix-tests (Files): Add tests/nan.h.
23451 (Depends-on): Remove math.
23453 * tests/test-sprintf-posix.h: Include nan.h instead of <math.h>.
23454 (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
23455 * modules/sprintf-posix-tests (Files): Add tests/nan.h.
23456 (Depends-on): Remove math.
23457 * modules/vsprintf-posix-tests (Files): Add tests/nan.h.
23458 (Depends-on): Remove math.
23460 * tests/test-round1.c: Include nan.h.
23461 (main): Use NaNd instead of NAN.
23462 * modules/round-tests (Files): Add tests/nan.h.
23464 * tests/test-trunc1.c: Include nan.h.
23465 (main): Use NaNd instead of NAN.
23466 * modules/trunc-tests (Files): Add tests/nan.h.
23468 * tests/test-roundf1.c: Include nan.h.
23469 (main): Use NaNf instead of NAN.
23470 * modules/roundf-tests (Files): Add tests/nan.h.
23472 * tests/test-truncf1.c: Include nan.h.
23473 (main): Use NaNf instead of NAN.
23474 * modules/truncf-tests (Files): Add tests/nan.h.
23476 * tests/test-ceilf1.c: Include nan.h.
23477 (main): Use NaNf instead of NAN.
23478 * modules/ceilf-tests (Files): Add tests/nan.h.
23480 * tests/test-floorf1.c: Include nan.h.
23481 (main): Use NaNf instead of NAN.
23482 * modules/floorf-tests (Files): Add tests/nan.h.
23484 * tests/test-isnanf.c: Include nan.h instead of <math.h>.
23485 (main): Use NaNf instead of NAN.
23486 * modules/isnanf-nolibm-tests (Files): Add tests/nan.h.
23488 * tests/test-isnand.c: Include nan.h instead of <math.h>.
23489 (main): Use NaNd instead of NAN.
23490 * modules/isnand-nolibm-tests (Files): Add tests/nan.h.
23492 * tests/test-frexp.c: Include nan.h.
23493 (main): Use NaNd instead of NAN.
23494 * modules/frexp-tests (Files): Add tests/nan.h.
23496 * lib/isnan.c: Don't include <math.h>.
23497 (FUNC): Don't use NAN macro.
23498 * modules/isnand-nolibm (Depends-on): Remove math.
23499 * modules/isnanf-nolibm (Depends-on): Remove math.
23500 * modules/isnanl (Depends-on): Remove math.
23501 * modules/isnanl-nolibm (Depends-on): Remove math.
23503 * tests/nan.h: New file.
23505 2008-04-01 Eric Blake <ebb9@byu.net>
23508 * tests/test-strtod.c (main): s/FLT_/DBL_/ for minimum and epsilon
23509 values to be the right type.
23511 For now, cater to gnulib strtod inaccuracies.
23512 * tests/test-strtod.c (main): Allow 1-ulp error on expected
23513 fractional results. While not as nice from a QoI perspective, it
23514 is a quicker patch than correctly implementing decimal to binary
23517 2008-03-31 Eric Blake <ebb9@byu.net>
23519 Guarantee a definition of NAN.
23520 * lib/math.in.h (NAN): Define if missing.
23521 * tests/test-math.c (main): Test it.
23522 * doc/posix-headers/math.texi (math.h): Document this.
23523 * lib/isnan.c (rpl_isnand): Use it.
23524 * tests/test-ceilf1.c (NaN): Delete, and use NAN instead.
23525 * tests/test-floorf1.c (NaN): Likewise.
23526 * tests/test-frexp.c (NaN): Likewise.
23527 * tests/test-isnand.c (NaN): Likewise.
23528 * tests/test-isnanf.c (NaN): Likewise.
23529 * tests/test-round1.c (NaN): Likewise.
23530 * tests/test-roundf1.c (NaN): Likewise.
23531 * tests/test-snprintf-posix.h (NaN): Likewise.
23532 * tests/test-sprintf-posix.h (NaN): Likewise.
23533 * tests/test-trunc1.c (NaN): Likewise.
23534 * tests/test-truncf1.c (NaN): Likewise.
23535 * tests/test-vasnprintf-posix.c (NaN): Likewise.
23536 * tests/test-vasprintf-posix.c (NaN): Likewise.
23537 * modules/isnand-nolibm (Depends-on): Add math.
23538 * modules/isnanf-nolibm (Depends-on): Likewise.
23539 * modules/isnanl (Depends-on): Likewise.
23540 * modules/isnanl-nolibm (Depends-on): Likewise.
23541 * modules/snprintf-posix-tests (Depends-on): Likewise.
23542 * modules/sprintf-posix-tests (Depends-on): Likewise.
23543 * modules/vsnprintf-posix-tests (Depends-on): Likewise.
23544 * modules/vsprintf-posix-tests (Depends-on): Likewise.
23545 * modules/vasnprintf-posix-tests (Depends-on): Likewise.
23546 * modules/vasprintf-posix-tests (Depends-on): Likewise.
23548 2008-03-31 Bruno Haible <bruno@clisp.org>
23550 * tests/test-strtod.c (main): Update results for OSF/1 platforms.
23551 * doc/posix-functions/strtod.texi: Likewise.
23553 2008-03-31 Bruno Haible <bruno@clisp.org>
23555 * tests/test-strtod.c (main): Don't use C99 syntax.
23557 2008-03-31 Bruno Haible <bruno@clisp.org>
23559 * tests/test-strtod.c (main): Don't test NAN macro. Needed for Solaris.
23560 Reported by Eric Blake.
23562 2008-03-31 Jim Meyering <meyering@redhat.com>
23564 Don't compare actual signbit return values.
23565 * tests/test-strtod.c (main): Rather, compare only their
23566 zero/non-zero nature.
23568 2008-03-31 Eric Blake <ebb9@byu.net>
23570 More strtod documentation.
23571 * doc/posix-functions/strtod.texi (strtod): Interpret more test
23572 failures as distinct bugs.
23574 2008-03-30 Paul Eggert <eggert@cs.ucla.edu>
23576 * lib/wchar.in.h [defined __need_mbstate_t]: Just include <wchar.h>.
23577 Problem reported by Erik Benada in
23578 <http://lists.gnu.org/archive/html/bug-gnulib/2008-03/msg00249.html>.
23580 2008-03-30 Bruno Haible <bruno@clisp.org>
23582 * tests/test-strtod.c: Add comments about which assertion fails on which
23584 * doc/posix-functions/strtod.texi: Add info about many more platforms.
23586 2008-03-30 Eric Blake <ebb9@byu.net>
23588 Test signbit behavior on zeros.
23589 * tests/test-signbit.c (test_signbitf): Add tests for zero.
23590 (test_signbitd, test_signbitl): Likewise.
23592 More strtod touchups.
23593 * tests/test-strtod.c (main): Ignore tests for signbit on NaN, and
23594 sign of negative underflow, for now. Use .5, not .1.
23595 * doc/posix-functions/strtod.texi (strtod): Mention these
23597 Reported by Jim Meyering.
23599 2008-03-30 Bruno Haible <bruno@clisp.org>
23601 * lib/striconveh.h (mem_iconveh, str_iconveh): Optimize the conversion
23602 from UTF-8 to UTF-8//TRANSLIT in the same way as from UTF-8 to UTF-8.
23604 2008-03-30 Bruno Haible <bruno@clisp.org>
23606 Avoid failure when attempting to return empty iconv results on some
23608 * lib/striconveh.c (mem_cd_iconveh_internal): In the final memory
23609 allocation, don't report ENOMEM when the resulting string is empty.
23611 2008-03-30 Bruno Haible <bruno@clisp.org>
23613 Fix buffer overrun.
23614 * lib/vasnprintf.c (VASNPRINTF): If !USE_SNPRINTF && pad_ourselves:
23615 Don't consider the width for tmp_length. Check count against tmp_length
23616 before doing the padding. Ensure enough allocation during padding.
23618 2008-03-30 Eric Blake <ebb9@byu.net>
23621 * lib/strtod.c (strtod): Avoid compiler warnings.
23622 Reported by Jim Meyering.
23624 2008-03-30 Bruno Haible <bruno@clisp.org>
23626 * lib/unistdio/u-vsprintf.h (EOVERFLOW): Remove fallback.
23627 * modules/unistdio/ulc-vsprintf (Depends-on): Add EOVERFLOW.
23628 * modules/unistdio/u8-vsprintf (Depends-on): Add EOVERFLOW.
23629 * modules/unistdio/u8-u8-vsprintf (Depends-on): Add EOVERFLOW.
23630 * modules/unistdio/u16-vsprintf (Depends-on): Add EOVERFLOW.
23631 * modules/unistdio/u16-u16-vsprintf (Depends-on): Add EOVERFLOW.
23632 * modules/unistdio/u32-vsprintf (Depends-on): Add EOVERFLOW.
23633 * modules/unistdio/u32-u32-vsprintf (Depends-on): Add EOVERFLOW.
23635 * lib/unistdio/u-vsnprintf.h (EOVERFLOW): Remove fallback.
23636 * modules/unistdio/ulc-vsnprintf (Depends-on): Add EOVERFLOW.
23637 * modules/unistdio/u8-vsnprintf (Depends-on): Add EOVERFLOW.
23638 * modules/unistdio/u8-u8-vsnprintf (Depends-on): Add EOVERFLOW.
23639 * modules/unistdio/u16-vsnprintf (Depends-on): Add EOVERFLOW.
23640 * modules/unistdio/u16-u16-vsnprintf (Depends-on): Add EOVERFLOW.
23641 * modules/unistdio/u32-vsnprintf (Depends-on): Add EOVERFLOW.
23642 * modules/unistdio/u32-u32-vsnprintf (Depends-on): Add EOVERFLOW.
23644 * lib/unistdio/u-vasprintf.h (EOVERFLOW): Remove fallback.
23645 * modules/unistdio/ulc-vasprintf (Depends-on): Add EOVERFLOW.
23646 * modules/unistdio/u8-vasprintf (Depends-on): Add EOVERFLOW.
23647 * modules/unistdio/u8-u8-vasprintf (Depends-on): Add EOVERFLOW.
23648 * modules/unistdio/u16-vasprintf (Depends-on): Add EOVERFLOW.
23649 * modules/unistdio/u16-u16-vasprintf (Depends-on): Add EOVERFLOW.
23650 * modules/unistdio/u32-vasprintf (Depends-on): Add EOVERFLOW.
23651 * modules/unistdio/u32-u32-vasprintf (Depends-on): Add EOVERFLOW.
23653 * lib/unistdio/ulc-vfprintf.c (EOVERFLOW): Remove fallback.
23654 * modules/unistdio/ulc-vfprintf (Depends-on): Add EOVERFLOW.
23656 * lib/unistdio/ulc-fprintf.c (EOVERFLOW): Remove fallback.
23657 * modules/unistdio/ulc-fprintf (Depends-on): Add EOVERFLOW.
23659 * lib/xvasprintf.c (EOVERFLOW): Remove fallback.
23660 * modules/xvasprintf (Depends-on): Add EOVERFLOW.
23662 * lib/vsprintf.c (EOVERFLOW): Remove fallback.
23663 * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Drop gl_EOVERFLOW.
23664 * modules/vsprintf-posix (Depends-on): Add EOVERFLOW.
23666 * lib/vsnprintf.c (EOVERFLOW): Remove fallback.
23667 * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Drop gl_EOVERFLOW.
23668 * modules/vsnprintf (Depends-on): Add EOVERFLOW.
23670 * lib/vfprintf.c (EOVERFLOW): Remove fallback.
23671 * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Drop gl_EOVERFLOW.
23672 * modules/vfprintf-posix (Depends-on): Add EOVERFLOW.
23674 * lib/vasprintf.c (EOVERFLOW): Remove fallback.
23675 * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Drop gl_EOVERFLOW.
23676 * modules/vasprintf (Depends-on): Add EOVERFLOW.
23678 * lib/vasnprintf.c (EOVERFLOW): Remove fallback.
23679 * m4/vasnprintf.m4 (gl_FUNC_VASNPRINTF): Drop gl_EOVERFLOW.
23680 * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Drop gl_EOVERFLOW.
23681 * modules/vasnprintf (Files): Remove m4/eoverflow.m4.
23682 (Depends-on): Add EOVERFLOW.
23683 * modules/unistdio/ulc-vasnprintf (Files): Remove m4/eoverflow.m4.
23684 (Depends-on): Add EOVERFLOW.
23685 * modules/unistdio/u8-vasnprintf (Files): Remove m4/eoverflow.m4.
23686 (Depends-on): Add EOVERFLOW.
23687 * modules/unistdio/u8-u8-vasnprintf (Files): Remove m4/eoverflow.m4.
23688 (Depends-on): Add EOVERFLOW.
23689 * modules/unistdio/u16-vasnprintf (Files): Remove m4/eoverflow.m4.
23690 (Depends-on): Add EOVERFLOW.
23691 * modules/unistdio/u16-u16-vasnprintf (Files): Remove m4/eoverflow.m4.
23692 (Depends-on): Add EOVERFLOW.
23693 * modules/unistdio/u32-vasnprintf (Files): Remove m4/eoverflow.m4.
23694 (Depends-on): Add EOVERFLOW.
23695 * modules/unistdio/u32-u32-vasnprintf (Files): Remove m4/eoverflow.m4.
23696 (Depends-on): Add EOVERFLOW.
23698 * lib/sprintf.c (EOVERFLOW): Remove fallback.
23699 * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Drop gl_EOVERFLOW.
23700 * modules/sprintf-posix (Depends-on): Add EOVERFLOW.
23702 * lib/snprintf.c (EOVERFLOW): Remove fallback.
23703 * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Drop gl_EOVERFLOW.
23704 * modules/snprintf (Depends-on): Add EOVERFLOW.
23706 * lib/poll.c (EOVERFLOW): Remove fallback.
23707 * modules/poll (Depends-on): Add EOVERFLOW.
23709 * lib/getugroups.c (EOVERFLOW): Remove fallback.
23710 * modules/getugroups (Depends-on): Add EOVERFLOW.
23712 * lib/getdelim.c (EOVERFLOW): Remove fallback.
23713 * modules/getdelim (Depends-on): Add EOVERFLOW.
23715 * lib/ftell.c (EOVERFLOW): Remove fallback.
23716 * modules/ftell (Depends-on): Add EOVERFLOW.
23718 * lib/fprintf.c (EOVERFLOW): Remove fallback.
23719 * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Drop gl_EOVERFLOW.
23720 * modules/fprintf-posix (Depends-on): Add EOVERFLOW.
23722 * lib/c-stack.c (EOVERFLOW): Remove unused fallback.
23724 * modules/EOVERFLOW-tests: New file.
23725 * tests/test-EOVERFLOW.c: New file.
23727 * modules/EOVERFLOW: New file.
23728 * doc/posix-headers/errno.texi: Mention EOVERFLOW portability problem.
23730 2008-03-30 Bruno Haible <bruno@clisp.org>
23732 Fix bug introduced on 2007-06-10.
23733 * lib/vasnprintf.c (VASNPRINTF): When performing zero-padding, use
23734 spaces instead of 0 digits for 's' also when ENABLE_UNISTDIO.
23736 2008-03-30 Bruno Haible <bruno@clisp.org>
23738 Improve freadseek's efficiency after ungetc.
23739 * lib/freadseek.c: Include freadahead.h.
23740 (freadptrinc): New function, extracted from freadseek.
23741 (freadseek): Use it in a loop. Use freadahead to determine the number
23742 of loop iterations.
23743 * modules/freadseek (Depends-on): Add freadahead.
23744 (configure.ac): Require AC_C_INLINE.
23746 2008-03-30 Bruno Haible <bruno@clisp.org>
23748 * lib/freadseek.c (freadseek): Don't ignore the return value of
23751 2008-03-29 Eric Blake <ebb9@byu.net>
23753 Add hex float support.
23754 * modules/strtod (Depends-on): Add c-ctype.
23755 (Link): Mention POW_LIB.
23756 * lib/strtod.c (strtod): Recognize hex floats. Don't allow
23757 whitespace between 'e' and exponent.
23758 * tests/test-strtod.c (main): Enable hex float tests.
23759 * doc/posix-functions/strtod.texi (strtod): Document what gnulib
23762 Document various strtod bugs, with some fixes.
23763 * doc/posix-functions/strtod.texi (strtod): Document bugs with
23764 "-0x", "inf", "nan", and hex constants.
23765 * doc/posix-functions/atof.texi (atof): Likewise.
23766 * modules/stdlib (Makefile.am): Support strtod.
23767 * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Likewise.
23768 * m4/strtod.m4 (gl_FUNC_STRTOD): Fit in stdlib framework, and
23769 detect additional strtod bugs.
23770 * lib/stdlib.in.h (rpl_strtod): Add declarations.
23771 * lib/strtod.c (strtod): Return -0.0 on negative underflow. Use
23772 bool where appropriate. Parse 'inf' and 'nan'.
23773 * tests/test-strtod.c: New file.
23774 * modules/strtod (Depends-on): Add stdbool, stdlib.
23775 (configure.ac): Turn on module indicator.
23776 * modules/strtod-tests: New module.
23778 2008-03-29 Eric Blake <ebb9@byu.net>
23780 Fix ftell on mingw.
23781 * lib/ftell.c (EOVERFLOW): Define if the system lacks it.
23782 * modules/ftell-tests (Depends-on): Add binary-io.
23783 * modules/ftello-tests (Depends-on): Likewise.
23784 * tests/test-ftell.c (main): Enhance test to cover behavior after
23785 ungetc. Enforce binary mode.
23786 * tests/test-ftello.c (main): Likewise.
23788 Pass test-freadseek on cygwin.
23789 * modules/freadseek (Depends-on): Use freadptr, not freadahead.
23790 * lib/freadseek.c (freadseek): Don't increment beyond bounds of
23793 * tests/test-fflush2.c (main): Fix typo.
23795 2008-03-29 Bruno Haible <bruno@clisp.org>
23797 * tests/test-fflush2.c (main): Temporarily disable the contents of
23799 * m4/fflush.m4 (gl_FUNC_FFLUSH): Add a TODO.
23800 Reported by Eric Blake.
23802 2008-03-28 Simon Josefsson <simon@josefsson.org>
23804 * lib/gc.h (enum Gc_hash): Add GC_SHA224.
23805 (GC_SHA224_DIGEST_SIZE): Add.
23807 * lib/gc-libgcrypt.c (gc_hash_open): Handle SHA-224.
23808 (gc_hash_digest_length): Likewise.
23809 (gc_hash_buffer): Likewise.
23811 2008-03-25 Bruno Haible <bruno@clisp.org>
23813 * doc/gnulib-tool.texi (gettextize and autopoint): Explain in more
23814 detail which gettext release to use.
23815 Reported by Simon Josefsson.
23817 2008-03-26 Jim Meyering <meyering@redhat.com>
23819 gnumakefile: remove file from $(top_builddir), not from $(top_srcdir)
23820 * modules/gnumakefile (clean-GNUmakefile): Also, use
23821 test ... && ... || : syntax rather than if-then ... fi.
23823 gnumakefile: Don't double-quote-expand $(VPATH) value.
23824 * modules/gnumakefile (clean-GNUmakefile): Use single quotes.
23826 2008-03-24 Eric Blake <ebb9@byu.net>
23828 Alter GNUmakefile to install into top directory.
23829 * modules/maintainer-makefile: Split, and add dependency...
23830 * modules/gnumakefile: to this new module.
23831 * build-aux/GNUmakefile: Move...
23832 * top/GNUmakefile: ...here.
23833 * build-aux/maint.mk: Move...
23834 * top/maint.mk: ...here.
23835 * MODULES.html.sh (Support for maintaining...): Document new
23838 2008-03-23 Bruno Haible <bruno@clisp.org>
23840 * gnulib-tool: New options --vc-files, --no-vc-files.
23841 (func_usage): Document them.
23842 (vc_files): New variable.
23843 (func_import): Consider vc_files.
23844 (func_create_testdir): Set vc_files to empty.
23845 Suggested by Jim Meyering and Karl Berry.
23847 2008-03-23 Bruno Haible <bruno@clisp.org>
23849 Fix regex compilation error on HP-UX 11.
23850 * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_TYPE_MBSTATE_T.
23851 * modules/regex (Files): Add m4/mbstate_t.m4.
23852 Reported by Ton Voon <ton.voon@altinity.com>.
23854 2008-03-23 Bruno Haible <bruno@clisp.org>
23856 * doc/gnulib-tool.texi (gettextize and autopoint): New section.
23858 2008-03-23 Eric Blake <ebb9@byu.net>
23859 Bruno Haible <bruno@clisp.org>
23861 Install files from top/ in the destination directory.
23862 * gnulib-tool (func_get_automake_snippet): Synthesize an EXTRA_DIST
23863 augmentation also for the files from top/.
23864 (func_import, func_create_testdir): Rewrite file names:
23865 top/filename -> filename.
23867 2008-03-23 Bruno Haible <bruno@clisp.org>
23869 Tweak "gnulib --version" output.
23870 * gnulib-tool (func_version): Replace "-dirty" suffix with "-modified".
23872 2008-03-23 Bruno Haible <bruno@clisp.org>
23874 Tweak "gnulib --version" output.
23875 * gnulib-tool (func_version): Use date of last commit to ChangeLog,
23876 rather than contents of ChangeLog, when possible.
23878 2008-03-21 Eric Blake <ebb9@byu.net>
23880 More --version tweaks.
23881 * gnulib-tool (func_version): Obey GNU Coding Standards. Output
23882 date of last ChangeLog entry.
23884 2008-03-21 Jim Meyering <meyering@redhat.com>
23886 * build-aux/GNUmakefile (_have-git-version-gen): Split long line.
23888 2008-03-20 Eric Blake <ebb9@byu.net>
23891 * build-aux/GNUmakefile (_have_git-version-gen): Look in correct dir.
23893 2008-03-20 Simon Josefsson <simon@josefsson.org>
23895 * build-aux/GNUmakefile: Make git-version-gen optional. Add
23896 _build-aux variable. Suggested by Eric Blake <ebb9@byu.net>.
23898 2008-03-20 Eric Blake <ebb9@byu.net>
23900 Sync GNUmakefile with coreutils.
23901 * build-aux/GNUmakefile (have-Makefile): Rename...
23902 (_have-Makefile): ...to this, for namespace consideration.
23903 (GNUmakefile.cfg): Include, if present.
23904 (_autoreconf): Define a default.
23905 (_is-dist-target): New rule for rebuilds to pick up intra-release
23907 (maint-cfg.mk): Rename...
23908 (cfg.mk): ...to this.
23910 2008-03-18 Jim Meyering <meyering@redhat.com>
23912 New script and module: mktempd
23913 * MODULES.html.sh (maint+release support): Add mktempd.
23914 * build-aux/mktempd: New file.
23915 * modules/mktempd: New file.
23917 2008-03-15 Jim Meyering <meyering@redhat.com>
23920 * lib/sha1.c, lib/md5.c: 63 != ~63.
23921 Reported by Andreas Schwab.
23923 sha1.c, md5.c: Hoist a redundant expression.
23924 * lib/sha1.c (sha1_process_bytes): AND-off the low bits in
23925 "ctx->buflen" only once, before calling *_process_block.
23926 * lib/md5.c (md5_process_bytes): Likewise.
23928 2008-03-14 Eric Blake <ebb9@byu.net>
23930 Bump copyright year in files generated by gnulib-tool.
23931 * gnulib-tool (func_emit_copyright_notice): Extract copyright from
23932 gnulib-tool, rather than hard-coding it.
23934 Fix 'gnulib-tool --version' output to work with git.
23935 * gnulib-tool (func_gnulib_dir): New function, extracted from...
23936 (startup): ...here.
23937 (func_version): Use it to invoke git-version-gen, rather than
23938 relying on CVS keyword expansion. Modernize wording.
23939 (cvsdatestamp, last_checkin_date, version): Kill unused
23942 2008-03-12 Jim Meyering <meyering@redhat.com>
23944 Recognize optional cast of the argument to free.
23945 * build-aux/useless-if-before-free: Update regexps.
23947 * build-aux/bootstrap (gnulib_tool): Remove trailing blanks.
23949 2008-03-11 Bruno Haible <bruno@clisp.org>
23951 Extend AC_LIB_LINKFLAGS to the situation of several libraries provided
23952 by a single package.
23953 * m4/lib-link.m4 (AC_LIB_FROMPACKAGE): New macro.
23954 (AC_LIB_LINKFLAGS_BODY): Use the information stored by
23955 AC_LIB_FROMPACKAGE. Use AC_ARG_WITH instead of AC_LIB_ARG_WITH.
23956 Reported by Sam Steingold <sds@gnu.org>.
23958 2008-03-12 Sergey Poznyakoff <gray@gnu.org.ua>
23960 * build-aux/bootstrap (version_controlled_file): Adapt for SVN
23963 2008-03-11 Bruno Haible <bruno@clisp.org>
23965 Avoid conflicts between local macro definitions.
23966 * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
23967 AC_LIB_LINKFLAGS_BODY): Use pushdef/popdef instead of define/undefine.
23969 2008-03-10 Peter O'Gorman <bug-gnulib@mlists.thewrittenword.com>
23970 Bruno Haible <bruno@clisp.org>
23972 Make va_copy work with some version of xlc on AIX 5.1.
23973 * lib/stdarg.in.h: New file.
23974 * m4/stdarg.m4 (gl_STDARG_H): Initialize STDARG_H and NEXT_STDARG_H.
23975 On AIX, use a <stdarg.h> file substitute.
23976 * modules/stdarg (Files): Add lib/stdarg.in.h.
23977 (Depends-on): Add include_next.
23978 (Makefile.am): Build a stdarg.h substitute if requested.
23979 * doc/posix-functions/va_copy.texi: Document the platforms lacking it.
23981 2008-03-10 Bruno Haible <bruno@clisp.org>
23983 * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Document a restriction.
23984 * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
23985 Reported by Peter O'Gorman <bug-gnulib@mlists.thewrittenword.com>.
23987 2008-03-10 Bruno Haible <bruno@clisp.org>
23989 * modules/stdlib (Depends-on): Add include_next, remove
23992 2008-03-09 Bruno Haible <bruno@clisp.org>
23994 * lib/freadahead.h (freadahead): Document more precisely.
23995 * lib/freadahead.c (freadahead): When an ungetc is in effect, return
23996 the sum of both buffer sizes.
23997 * tests/test-freadahead.c (main): Also test behaviour after ungetc.
23998 * NEWS: Document the change.
24000 2008-03-09 Bruno Haible <bruno@clisp.org>
24002 Extend freadptr to return also the buffer size.
24003 * lib/freadptr.h (freadptr): Add sizep argument.
24004 * lib/freadptr.c: Include freadptr.h, not freadahead.h.
24005 (freadptr): Add sizep argument. Determine buffer size like freadahead
24007 * tests/test-freadptr.c: Don't include freadahead.h.
24008 (main): Adapt for new calling convention of freadptr.
24009 * tests/test-freadptr2.c: New file, based on tests/test-freadahead.c.
24010 * tests/test-freadptr2.sh: New file, based on tests/test-freadahead.sh.
24011 * modules/freadptr-tests (Files): Add tests/test-freadptr2.c,
24012 tests/test-freadptr2.sh.
24013 (Depends): Remove freadahead.
24014 (TESTS): Add test-freadptr2.sh.
24015 (check_PROGRAMS): Add test-freadptr2.
24017 2008-03-09 Bruno Haible <bruno@clisp.org>
24019 * doc/Makefile (%.pdf): Explain how to remedy the save_size error.
24020 Report and solution by Simon Josefsson.
24022 2008-03-06 Bruno Haible <bruno@clisp.org>
24024 Make fflush after ungetc work on BSD platforms.
24025 * lib/fflush.c (rpl_fflush): Discard ungetc buffer if possible.
24026 * tests/test-fflush2.c: New file.
24027 * tests/test-fflush2.sh: New file.
24028 * modules/fflush-tests (Files): Add tests/test-fflush2.sh,
24029 tests/test-fflush2.c.
24030 (Makefile.am): Build test-fflush2 and run test-fflush2.sh.
24031 * doc/posix-functions/fflush.texi: Document fflush after ungetc bug.
24033 2008-03-06 Eric Blake <ebb9@byu.net>
24035 Likewise for ftello.
24036 * modules/ftello (Dependencies): Add extensions.
24037 * m4/ftello.m4 (gl_FUNC_FTELLO): Require AC_USE_SYSTEM_EXTENSIONS.
24039 2008-03-06 Bruno Haible <bruno@clisp.org>
24041 * modules/fseeko (Dependencies): Add extensions.
24042 * m4/fseeko.m4 (gl_FUNC_FSEEKO): Require AC_USE_SYSTEM_EXTENSIONS.
24043 Needed on glibc systems.
24045 2008-03-06 Bruno Haible <bruno@clisp.org>
24047 * doc/gnulib-tool.texi (@nosuchmodulenote): Avoid line break inside
24049 Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
24051 2008-03-06 Bruno Haible <bruno@clisp.org>
24053 * users.txt: Add libgnupdf.
24055 2008-03-06 Thien-Thi Nguyen <ttn@gnuvola.org> (tiny change)
24057 * doc/gnulib-tool.texi (@nosuchmodulenote): New macro.
24058 (Header File Substitutes, Function Substitutes,
24059 Glibc Header File Substitutes, Glibc Function Substitutes): Use it.
24060 (Build robot for gnulib): Fix typo.
24062 2008-03-06 Bruno Haible <bruno@clisp.org>
24064 * doc/gnulib-tool.texi (VCS Issues): Small updates.
24065 Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
24067 2008-03-06 Bruno Haible <bruno@clisp.org>
24069 * doc/func.texi: New file, extracted from doc/gnulib.texi.
24070 * doc/gnulib.texi: Include it.
24072 2008-03-06 Simon Josefsson <simon@josefsson.org>
24074 * modules/func (License): Change license to unlimited; there was
24075 no LGPL parts in the module anyway.
24077 2008-03-06 Simon Josefsson <simon@josefsson.org>
24079 * modules/__func__: Renamed to modules/func.
24080 * modules/__func__-tests: Renamed to modules/func-tests.
24081 * tests/test-__func__.c: Renamed to tests/test-func.c.
24082 * m4/__func__.m4: Renamed to m4/func.m4.
24083 * doc/gnulib.texi (__func__): Section renamed to func.
24084 Suggested by Eric Blake <ebb9@byu.net>.
24086 2008-03-06 Simon Josefsson <simon@josefsson.org>
24088 * doc/gnulib.texi (__func__): Use C99 terminology when talking
24089 about __func__. Make example self-contained. Suggested by Eric
24090 Blake <ebb9@byu.net>.
24092 * tests/test-__func__.c (main): Avoid extraneous () around __func.
24093 Suggested by Eric Blake <ebb9@byu.net>.
24095 2008-03-06 Simon Josefsson <simon@josefsson.org>
24097 * modules/__func__: New file.
24098 * modules/__func__-tests: New file.
24099 * tests/test-__func__.c: New file.
24100 * m4/__func__.m4: New file.
24101 * doc/gnulib.texi (__func__): Document __func__ module.
24103 2008-03-05 Simon Josefsson <simon@josefsson.org>
24105 * modules/byteswap (License): Re-license as LGPLv2+.
24107 2008-03-05 Simon Josefsson <simon@josefsson.org>
24109 * doc/Makefile: Add pdf target.
24111 2008-03-05 Simon Josefsson <simon@josefsson.org>
24113 * modules/inline (License): Use 'unlimited', since there are only
24114 *.m4 files in this module.
24116 2008-03-03 John E. Malmberg <wb8tyw@qsl.net> (tiny change)
24117 Bruno Haible <bruno@clisp.org>
24119 Add support for HP C 7.1 on OpenVMS 8.3.
24120 * lib/alloca.in.h (alloca): Define as alias for DEC C on VMS.
24122 2008-03-03 John E. Malmberg <wb8tyw@qsl.net> (tiny change)
24124 Update VMS specifics.
24125 * lib/getopt.c [VMS]: Remove include of unixlib.h.
24127 2008-03-02 Jim Meyering <meyering@redhat.com>
24129 Remove the last dependency on the "free" module.
24130 * m4/readutmp.m4 (gl_READUTMP): Don't require gl_FUNC_FREE.
24131 Reported by Bob Proulx.
24133 * lib/getdelim.c (getdelim): Don't leak memory upon failed realloc.
24135 Remove useless "if" tests before free. Deprecate "free" module.
24136 * doc/posix-functions/free.texi: Mention that this
24137 module is no longer useful.
24138 * modules/free (Notice): Say this module is obsolete.
24139 * modules/readutmp (Depends-on): Remove free.
24140 * lib/save-cwd.c (free_cwd): Remove useless "if" before free.
24141 * lib/putenv.c (putenv): Likewise.
24142 * lib/gc-gnulib.c (gc_cipher_close): Likewise.
24143 * lib/getaddrinfo.c (freeaddrinfo): Likewise.
24144 * tests/test-c-strcasestr.c (main): Likewise.
24145 * tests/test-c-strstr.c (main): Likewise.
24146 * tests/test-mbscasestr1.c (main): Likewise.
24147 * tests/test-mbscasestr2.c (main): Likewise.
24148 * tests/test-mbsstr1.c (main): Likewise.
24149 * tests/test-mbsstr2.c (main): Likewise.
24150 * tests/test-memmem.c (main): Likewise.
24151 * tests/test-strcasestr.c (main): Likewise.
24152 * tests/test-striconv.c (main): Likewise.
24153 * tests/test-striconveh.c (main): Likewise.
24154 * tests/test-striconveha.c (main): Likewise.
24155 * tests/test-strstr.c (main): Likewise.
24157 * build-aux/git-version-gen: Adjust a comment and the Usage string.
24159 bootstrap: sync from coreutils again
24160 * build-aux/bootstrap: Remove dangling m4/*.m4 symlinks.
24162 2008-03-01 Jim Meyering <meyering@redhat.com>
24164 bootstrap: sync from coreutils
24165 * build-aux/bootstrap (update_po_files): Copy a .po file into place
24166 also when the target doesn't exist.
24168 2008-03-01 Eric Blake <ebb9@byu.net>
24170 Fix bugs in last patch.
24171 * lib/memchr2.c (memchr2): Fix typo.
24172 * tests/test-memchr2.c: Test previous bug, and don't use GNU
24174 Reported by Bruce Korb.
24176 New module 'memchr2'.
24177 * modules/memchr2: New file.
24178 * modules/memchr2-tests: Likewise.
24179 * lib/memchr2.h: Likewise.
24180 * lib/memchr2.c: Likewise, based on memchr.c.
24181 * tests/test-memchr2.c: New test.
24182 * MODULES.html.sh (String handling): Add memchr2.
24184 2008-02-29 Bruno Haible <bruno@clisp.org>
24186 * modules/freadseek-tests: New file.
24187 * tests/test-freadseek.sh: New file.
24188 * tests/test-freadseek.c: New file.
24190 New module 'freadseek'.
24191 * modules/freadseek: New file.
24192 * lib/freadseek.h: New file.
24193 * lib/freadseek.c: New file.
24194 * MODULES.html.sh (File stream based Input/Output): Add freadseek.
24196 2008-02-29 Sergey Poznyakoff <gray@gnu.org.ua>
24198 * users.txt: Add anubis, cpio, mailfromd, mailutils, radius,
24201 * m4/argp.m4 (gl_ARGP): Use AC_TRY_LINK to test if
24202 program_invocation_name and program_invocation_short_name are
24205 2008-02-28 Bruno Haible <bruno@clisp.org>
24207 * tests/test-freadptr.c: Add a test for behaviour after ungetc.
24208 * tests/test-freadptr.sh: Also test non-seekable stdin.
24210 2008-02-28 Sergey Poznyakoff <gray@gnu.org.ua>
24212 * build-aux/bootstrap (source_base, m4_base)
24213 (doc_base, tests_base): New variables.
24214 (gnulib_tool_options): Do not hardcode base directories, use
24215 the above variables instead.
24217 2008-02-28 Atsushi SAKAI <sakaia@jp.fujitsu.com>
24219 * lib/xsize.h: Fix typo in comment: s/tupe/type/.
24221 2008-02-28 Bruno Haible <bruno@clisp.org>
24223 * modules/freadptr-tests: New file.
24224 * tests/test-freadptr.sh: New file.
24225 * tests/test-freadptr.c: New file.
24227 New module 'freadptr'.
24228 * modules/freadptr: New file.
24229 * lib/freadptr.h: New file.
24230 * lib/freadptr.c: New file.
24231 * MODULES.html.sh (File stream based Input/Output): Add freadptr.
24233 2008-02-26 Karl Berry <karl@freefriends.org>
24236 * libltdl/argz.c (argz_add, argz_count): New functions.
24237 * libltdl/argz.in.h: Declare them.
24238 Report by Juan Manuel Guerrero <juan.guerrero@gmx.de>.
24240 2008-02-22 Bruno Haible <bruno@clisp.org>
24242 * m4/time_r.m4 (gl_TIME_R): Also check that localtime_r's return type
24243 is a pointer type. Needed for HP-UX 10.
24244 * doc/posix-functions/localtime_r.texi: Mention HP-UX 10.
24245 * doc/posix-functions/gmtime_r.texi: Likewise.
24246 Reported by Peter O'Gorman <bug-gnulib@mlists.thewrittenword.com>.
24248 2008-02-24 Bruno Haible <bruno@clisp.org>
24250 * modules/environ-tests: New file.
24251 * tests/test-environ.c: New file.
24253 New module 'environ'.
24254 * modules/environ: New file.
24255 * lib/unistd.in.h (environ): New declaration.
24256 * m4/environ.m4: New file.
24257 (gt_CHECK_VAR_DECL): Moved here from m4/setenv.m4. Undefine gt_cv_var
24259 * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_ENVIRON and
24261 * modules/unistd (Makefile.am): Substitute also GNULIB_ENVIRON and
24263 * doc/posix-functions/environ.texi: Mention module 'environ'. Remove
24264 wrong claim that 'environ' is missing on some systems.
24265 * modules/execute (Depends-on): Add environ.
24266 * lib/execute.c (environ): Remove fallback declaration.
24267 * modules/pipe (Depends-on): Add environ.
24268 * lib/pipe.c (environ): Remove fallback declaration.
24269 * modules/setenv (Depends-on): Add environ.
24270 * lib/setenv.c (environ): Remove fallback declaration.
24271 * modules/unsetenv (Depends-on): Add environ.
24272 * lib/unsetenv.c (environ): Remove fallback declaration.
24273 * m4/setenv.m4 (gt_CHECK_VAR_DECL): Remove macro. Moved to
24275 (gl_PREREQ_SETENV): Require gl_ENVIRON instead of testing for environ.
24276 (gl_PREREQ_UNSETENV): Likewise.
24278 2008-02-24 Bruno Haible <bruno@clisp.org>
24280 * doc/posix-functions/environ.texi: Document the MacOS X problem.
24282 2008-02-20 Bob Proulx <bob@proulx.com>
24284 Enable use of older two part flavor 'git describe'.
24285 * build-aux/git-version-gen: If using the older two part flavor of
24286 git version then recreate the third part now present in the
24287 newer three part flavor of git describe.
24289 2008-02-20 Martin Buchholz <martin@xemacs.org> (tiny change)
24291 * lib/fts.c (fts_build): Typo correction to comment.
24293 2008-02-17 Bruno Haible <bruno@clisp.org>
24295 * lib/git-merge-changelog.c (main) [split_merged_entry]: Avoid
24296 generating no-op conflicts.
24298 2008-02-17 Bruno Haible <bruno@clisp.org>
24301 * lib/git-merge-changelog.c (main): Use the iterator to iterate through
24302 result_entries, rather than an index-based loop.
24304 2008-02-17 Bruno Haible <bruno@clisp.org>
24307 * lib/git-merge-changelog.c (struct entry): New fields 'hashcode',
24309 (entry_create): New function.
24310 (entry_hashcode): Use the cached hashcode if possible.
24311 (read_changelog_file, try_split_merged_entry): Use entry_create.
24313 2008-02-17 Bruno Haible <bruno@clisp.org>
24315 Speed up from O(n^2) to O(n) for long ChangeLog files.
24316 * lib/git-merge-changelog.c: Include gl_rbtreehash_list.h.
24317 (read_changelog_file): Change implementation of entries_reversed list
24319 * modules/git-merge-changelog (Depends-on): Add rbtreehash-list.
24321 2008-02-17 Bruno Haible <bruno@clisp.org>
24323 New option --split-merged-entry.
24324 * lib/git-merge-changelog.c (FSTRCMP_STRICTER_THRESHOLD): New macro.
24325 (find_paragraph_end, try_split_merged_entry): New functions.
24326 (long_options): Add option --split-merged-entry.
24327 (usage): Document option --split-merged-entry.
24328 (main): Implement option --split-merged-entry.
24329 Reported by Eric Blake.
24331 2008-02-17 Bruno Haible <bruno@clisp.org>
24333 * lib/git-merge-changelog.c: Include c-strstr.h.
24334 (main): Support the "git pull --rebase" situation.
24335 * modules/git-merge-changelog (Depends-on): Add c-strstr.
24336 Reported by Eric Blake.
24338 2008-02-16 Eric Blake <ebb9@byu.net>
24340 Avoid doubling \ in common case of "c-maybe" quoting style.
24341 * lib/quotearg.c (quotearg_buffer_restyled): Don't escape \ when
24342 eliding outer quotes.
24343 * lib/quotearg.h: Document this.
24344 * tests/test-quotearg.c (result_strings, inputs, results_g)
24345 (flag_results, locale_results): Test it by adding a new string to
24347 (compare_strings): Test new string.
24349 2008-02-13 Eric Blake <ebb9@byu.net>
24351 Avoid trigraph quoting in default output.
24352 * lib/quotearg.h (enum quoting_flags): Add QA_SPLIT_TRIGRAPHS.
24353 * lib/quotearg.c (quotearg_buffer_restyled): Don't quote trigraphs
24354 unless explicitly requested.
24355 * tests/test-quotearg.c (flag_results, main): Add additional tests.
24357 2008-02-13 Lasse Collin <lasse.collin@tukaani.org>
24359 Don't rely on signed integer overflowing to negative value.
24360 * lib/getugroups.c (getugroups): Include <limits.h>.
24361 Instead, compare against INT_MAX, and increment only if the test passes.
24363 2008-02-13 Jim Meyering <meyering@redhat.com>
24364 and Eric Blake <ebb9@byu.net>
24366 Avoid shadowing warning and compile errors on Linux.
24367 * tests/test-quotearg.c [ENABLE_NLS]: Disable <libintl.h>
24368 forwarding macros on Linux.
24369 (dcgettext): Define a stub, for Linux.
24370 (results_g, main): Avoid warnings.
24372 2008-02-12 Eric Blake <ebb9@byu.net>
24374 Silence warning in last patch.
24375 * lib/quotearg.c (quotearg_buffer_restyled): Add missing const.
24377 Quotearg part 4: add tests, fix c-maybe colon quoting.
24378 * lib/quotearg.h: Improve documentation.
24379 * lib/quotearg.c (quotearg_buffer_restyled): Don't add extra
24380 escapes when adding outer quotes. When quoting trigraphs, use
24381 valid C notation. When quoting NUL, omit extra characters if next
24382 character is not digit. Alter prototype.
24383 (quotearg_buffer, quotearg_alloc_mem, quotearg_n_options): Adjust
24385 * modules/quotearg-tests: New module.
24386 * tests/test-quotearg.c: New test.
24388 2008-02-07 Eric Blake <ebb9@byu.net>
24390 Quotearg part 3: add flag to control outer quote elision.
24391 * lib/quotearg.h (c_maybe_quoting_style): New style.
24392 (enum quoting_flags): Better documentation of flags.
24393 * lib/quotearg.c (quoting_style_args, quoting_style_vals): Add
24395 (quotearg_buffer_restyled): Handle new flag to elide outer
24398 Quotearg part 2: add flag that can control NUL elision.
24399 * lib/quotearg.h (set_quoting_flags): New prototype.
24400 * lib/quotearg.c (struct quoting_options): Add flag field.
24401 (set_quoting_flags): New function.
24402 (quotearg_buffer_restyled): Add flags parameter.
24403 (quotearg_alloc_mem): Set the flag if length cannot be returned.
24404 (quotearg_n_options): Set the flag, since length cannot be
24406 (quoting_options_from_style): Default flags correctly.
24408 Quotearg part 1: more wrappers, restore quotearg_char state.
24409 * lib/quotearg.h (quotearg_alloc_mem, quotearg_n_mem)
24410 (quotearg_mem, quotearg_style_mem, quotearg_char_mem)
24411 (quotearg_colon_mem): New wrappers.
24412 * lib/quotearg.c (quotearg_alloc, quotearg_char): Rewrite...
24413 (quotearg_alloc_mem, quotearg_char_mem): ...in terms of these new
24415 (quotearg_n_mem, quotearg_mem, quotearg_style_mem)
24416 (quotearg_colon_mem): New functions.
24418 2008-02-11 Bruno Haible <bruno@clisp.org>
24420 * modules/git-merge-changelog (Makefile.am): Don't use -L and -l for a
24421 library in the current directory: it does not work with parallel make.
24422 Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
24424 2008-02-11 Bruno Haible <bruno@clisp.org>
24426 * .gitattributes: New file.
24428 2008-02-11 Jim Meyering <meyering@redhat.com>
24430 useless-if-before-free: Fix reversed exit values.
24431 * build-aux/useless-if-before-free: Use correct values
24432 for EXIT_MATCH and EXIT_NO_MATCH.
24434 * build-aux/useless-if-before-free: Close stdout carefully.
24436 2008-02-10 Bruno Haible <bruno@clisp.org>
24438 New module 'git-merge-changelog'.
24439 * modules/git-merge-changelog: New file.
24440 * lib/git-merge-changelog.c: New file.
24442 2008-02-10 Jim Meyering <meyering@redhat.com>
24444 useless-if-before-free: New option: --list (-l).
24446 useless-if-before-free: Don't exit immediately upon open failure.
24447 * build-aux/useless-if-before-free: Exit 2 for errors.
24448 Upon failure to open a file, don't exit immediately.
24449 Rather, just warn and continue with any remaining files.
24451 2008-02-10 Bruno Haible <bruno@clisp.org>
24453 New abstract list operation 'node_set_value'.
24454 * lib/gl_list.h (gl_list_node_set_value): New function.
24455 (struct gl_list_implementation): New field node_set_value.
24456 * lib/gl_list.c (gl_list_node_set_value): New function.
24457 * lib/gl_array_list.c (gl_array_node_set_value): New function.
24458 (gl_array_list_implementation): Update.
24459 * lib/gl_carray_list.c (gl_carray_node_set_value): New function.
24460 (gl_carray_list_implementation): Update.
24461 * lib/gl_anylinked_list2.h (gl_linked_node_set_value): New function.
24462 * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
24463 * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
24464 * lib/gl_anytree_list2.h (gl_tree_node_set_value): New function.
24465 * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
24466 * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
24467 * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
24469 * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Update.
24470 * lib/gl_sublist.c (gl_sublist_node_set_value): New function.
24471 (gl_sublist_list_implementation): Update.
24473 2008-02-10 Bruno Haible <bruno@clisp.org>
24475 * lib/diffseq.h: Write "ELEMENT const" instead of "const ELEMENT".
24476 Needed when ELEMENT is #defined to 'some_type *'.
24478 2008-02-10 Jim Meyering <meyering@redhat.com>
24480 New script and module: useless-if-before-free
24481 * MODULES.html.sh (maint+release support): Add useless-if-before-free.
24482 * build-aux/useless-if-before-free: New file.
24483 * modules/useless-if-before-free: New file.
24485 * build-aux/gitlog-to-changelog: Use committer date, not author date.
24487 xstrtol_error: Fix typo.
24488 * lib/xstrtol-error.c (xstrtol_error): The parameter was unused:
24489 s/exit_failure/exit_status/.
24491 2008-02-09 Jim Meyering <meyering@redhat.com>
24493 New script and module: gitlog-to-changelog
24494 * MODULES.html.sh (maint+release support): Add gitlog-to-changelog.
24495 * modules/gitlog-to-changelog: New file.
24496 * build-aux/gitlog-to-changelog: New file.
24498 2008-02-08 Jim Meyering <meyering@redhat.com>
24500 Avoid two "parameter unused" warnings.
24501 * lib/stat-time.h (get_stat_birthtime_ns, get_stat_birthtime):
24504 Use "git COMMAND", not "git-COMMAND".
24505 * build-aux/bootstrap (version_controlled_file): s/git-rm/git-rm/.
24506 * build-aux/announce-gen (get_tool_versions): Correct a diagnostic.
24507 * build-aux/git-version-gen: Use "git status", not "git-status".
24509 2008-02-07 Bruno Haible <bruno@clisp.org>
24511 * lib/vasnprintf.c (VASNPRINTF): Don't use %n on native Woe32 systems.
24512 Avoids a crash on Windows Vista.
24513 Reported by Adam Strzelecki <ono@java.pl> via
24514 Simon Josefsson <simon@josefsson.org>.
24516 2008-02-06 Bruno Haible <bruno@clisp.org>
24518 Fix *printf behaviour regarding the left-adjust flag on HP-UX 10.20.
24519 * m4/printf.m4 (gl_PRINTF_FLAG_LEFTADJUST): New macro.
24520 * lib/vasnprintf.c (VASNPRINTF): Handle NEED_PRINTF_FLAG_LEFTADJUST.
24521 * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_LEFTADJUST): New macro.
24522 (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
24523 * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
24524 gl_PRINTF_FLAG_LEFTADJUST and test its result. Invoke
24525 gl_PREREQ_VASNPRINTF_FLAG_LEFTADJUST.
24526 * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
24527 * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
24528 * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
24529 * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
24530 * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
24531 * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
24532 * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
24533 * tests/test-vasnprintf-posix.c (test_function): Add testcases for the
24535 * tests/test-snprintf-posix.h (test_function): Likewise.
24536 * tests/test-sprintf-posix.h (test_function): Likewise.
24537 * tests/test-vasprintf-posix.c (test_function): Likewise.
24538 * doc/posix-functions/fprintf.texi: Update.
24539 * doc/posix-functions/printf.texi: Update.
24540 * doc/posix-functions/snprintf.texi: Update.
24541 * doc/posix-functions/sprintf.texi: Update.
24542 * doc/posix-functions/vfprintf.texi: Update.
24543 * doc/posix-functions/vprintf.texi: Update.
24544 * doc/posix-functions/vsnprintf.texi: Update.
24545 * doc/posix-functions/vsprintf.texi: Update.
24546 Reported by Peter Fales <psfales@alcatel-lucent.com>.
24548 2008-02-06 Bruno Haible <bruno@clisp.org>
24550 Fix bug introduced on 2008-01-26.
24551 * lib/isnan.c (FUNC): Set to rpl_isnand, not rpl_isnan.
24553 2008-02-06 Bruno Haible <bruno@clisp.org>
24555 Fix bug introduced on 2007-06-10.
24556 * lib/vasnprintf.c (VASNPRINTF): Perform zero-padding also if
24557 !NEED_PRINTF_FLAG_ZERO.
24559 2008-02-05 Peter O'Gorman <pogma@thewrittenword.com>
24561 getloadavg: use libperfstat on AIX5
24562 * lib/getloadavg.c, m4/getloadavg.m4 [aix]: Use libperfstat
24564 2008-02-03 Bruno Haible <bruno@clisp.org>
24566 * lib/diffseq.h: Add comments about required #includes.
24567 Reported by Michael Biggs <gnulib@doubleplum.net>.
24569 2008-02-01 Bruno Haible <bruno@clisp.org>
24571 * users.txt: Add gnuit.
24573 2008-01-31 Bruno Haible <bruno@clisp.org>
24575 * lib/md4.c (set_uint32): Mark as inline.
24576 * lib/md5.c (set_uint32): Likewise.
24577 * lib/sha1.c (set_uint32): Likewise.
24578 * m4/md4.m4 (gl_MD4): Require AC_C_INLINE.
24579 * m4/md5.m4 (gl_MD5): Likewise.
24580 * m4/sha1.m4 (gl_SHA1): Likewise.
24582 2008-01-31 Jim Meyering <meyering@redhat.com>
24584 Use "sizeof VAR", rather than a literal "4".
24585 * lib/md5.c (md5_read_ctx): Use sizeof ctx->A, not 4.
24586 * lib/md4.c (md4_read_ctx): Likewise.
24587 * lib/sha1.c (sha1_read_ctx): Likewise.
24589 2008-01-31 Simon Josefsson <simon@josefsson.org>
24591 * tests/test-sha1.c: New file, based on test-md5.c.
24593 * modules/crypto/sha1-tests: New file.
24595 2008-01-31 Simon Josefsson <simon@josefsson.org>
24597 * lib/sha1.h (SHA1_DIGEST_SIZE): Define.
24599 2008-01-31 Jim Meyering <meyering@redhat.com>
24601 Prefer "sizeof v" over the equivalent "4".
24602 * lib/md4.c (set_uint32): Use "sizeof v" as memcpy length, not 4.
24603 * lib/md5.c (set_uint32): Likewise.
24604 * lib/sha1.c (set_uint32): Likewise.
24606 2008-01-31 Simon Josefsson <simon@josefsson.org>
24608 * lib/sha1.c (set_uint32): Mark function as static.
24610 2008-01-31 Simon Josefsson <simon@josefsson.org>
24612 md2: clarify comments to say that alignment is not required.
24613 * lib/md2.h: Remove warning about alignment in comment.
24614 * lib/md2.c (md2_read_ctx, md2_finish_ctx): Doc fix, alignment has
24615 never been required.
24617 2008-01-31 Simon Josefsson <simon@josefsson.org>
24619 md4: adapt alignment constraint fix from sha1.
24620 * lib/md4.c (set_uint32): New function, from sha1.c
24621 (md4_read_ctx): Use it.
24622 (md4_finish_ctx): Doc fix.
24623 * lib/md4.h: Doc fix.
24625 2008-01-31 Simon Josefsson <simon@josefsson.org>
24627 md5: adapt alignment constraint fix from sha1.
24628 * lib/md5.c (set_uint32): New function, from sha1.c
24629 (md5_read_ctx): Use it.
24630 (md5_finish_ctx): Doc fix.
24631 * lib/md5.h: Doc fix.
24633 2008-01-30 Peter Palfrader <weasel@debian.org>
24635 sha1: remove the result buffer alignment constraint
24636 * lib/sha1.c (set_uint32): New function.
24637 (sha1_read_ctx): Rewrite to remove the result buffer alignment
24639 (sha1_finish_ctx): Remove comment warning about alignment constraint.
24640 * lib/sha1.h: Likewise.
24642 2008-01-30 Andreas Schwab <schwab@suse.de>
24643 Bruno Haible <bruno@clisp.org>
24645 * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Include <float.h> and ensure a
24646 correct definition of LDBL_MIN_EXP.
24648 2008-01-30 Karl Berry <karl@gnu.org>
24650 * config/srclist-update: try to preserve x bit on updates.
24651 * config/srclistvars.sh: update for karl.
24653 2008-01-29 Jim Meyering <meyering@redhat.com>
24655 vasnprintf.c: Avoid warning about unused label
24656 * lib/vasnprintf.c (VASNPRINTF) [!USE_SNPRINTF]: Guard the
24657 "overflow" label definition and associated code with the
24658 same cpp condition that guards the sole use of that label.
24660 2008-01-26 Bruno Haible <bruno@clisp.org>
24662 * m4/isnanl.m4 (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM,
24663 gl_FUNC_ISNANL_WORKS): Test the GCC >= 4.0 built-in.
24664 * lib/isnanl.h (isnanl): Use the GCC >= 4.0 built-in.
24665 * lib/isnanl-nolibm.h (isnanl): Likewise.
24666 Reported by Paul Eggert <eggert@cs.ucla.edu>.
24668 2008-01-26 Bruno Haible <bruno@clisp.org>
24670 * m4/isnand.m4 (gl_FUNC_ISNAND_NO_LIBM): Test the GCC >= 4.0 built-in.
24671 * lib/isnand.h (isnand): Use the GCC >= 4.0 built-in.
24673 2008-01-26 Bruno Haible <bruno@clisp.org>
24675 * m4/isnanf.m4 (gl_HAVE_ISNANF_NO_LIBM, gl_ISNANF_WORKS): Test the
24676 GCC >= 4.0 built-in.
24677 * lib/isnanf.h (isnanf): Use the GCC >= 4.0 built-in.
24679 2008-01-26 Bruno Haible <bruno@clisp.org>
24681 Rename isnan, applicable to 'double' only, to isnand.
24682 * modules/isnand-nolibm: Renamed from modules/isnan-nolibm.
24683 (Files): Add lib/isnand.h, lib/isnand.c. Remove lib/isnan.h.
24684 (configure.ac): Update.
24685 (Include): Replace "isnan.h" with "isnand.h".
24686 * m4/isnand.m4: Renamed from m4/isnan.m4.
24687 (gl_FUNC_ISNAND_NO_LIBM): Renamed from gl_FUNC_ISNAN_NO_LIBM. Set
24688 HAVE_ISNAND_IN_LIBC instead of HAVE_ISNAN_IN_LIBC. Build isnand.c
24689 instead of isnan.c.
24690 * lib/isnand.h: Renamed from lib/isnan.h. Test HAVE_ISNAND_IN_LIBC
24691 instead of HAVE_ISNAN_IN_LIBC.
24692 (isnand): Renamed from isnan.
24693 * lib/isnand.c: New file.
24694 * modules/isnand-nolibm-tests: Renamed from modules/isnan-nolibm-tests.
24695 (Files): Add tests/test-isnand.c. Remove tests/test-isnan.c.
24696 (Makefile.am): Update.
24697 * tests/test-isnand.c: Renamed from tests/test-isnan.c.
24698 Include isnand.h instead of isnan.h.
24699 (main): Test isnand instead of isnan.
24700 * modules/fprintf-posix (Depends-on): Add isnand-nolibm, remove
24702 * modules/frexp (Depends-on): Likewise.
24703 * modules/frexp-tests (Depends-on): Likewise.
24704 * modules/frexp-nolibm (Depends-on): Likewise.
24705 * modules/frexp-nolibm-tests (Depends-on): Likewise.
24706 * modules/isfinite (Depends-on): Likewise.
24707 * modules/round-tests (Depends-on): Likewise.
24708 * modules/signbit (Depends-on): Likewise.
24709 * modules/signbit-tests (Depends-on): Likewise.
24710 * modules/snprintf-posix (Depends-on): Likewise.
24711 * modules/sprintf-posix (Depends-on): Likewise.
24712 * modules/trunc-tests (Depends-on): Likewise.
24713 * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
24714 * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
24715 * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
24716 * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
24717 * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
24718 * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
24719 * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
24720 * modules/vasnprintf-posix (Depends-on): Likewise.
24721 * modules/vasprintf-posix (Depends-on): Likewise.
24722 * modules/vfprintf-posix (Depends-on): Likewise.
24723 * modules/vsnprintf-posix (Depends-on): Likewise.
24724 * modules/vsprintf-posix (Depends-on): Likewise.
24725 * lib/frexp.c: Include isnand.h instead of isnan.h.
24726 (ISNAN): Set to isnand instead of isnan.
24727 * lib/isfinite.c: Include isnand.h instead of isnan.h.
24728 (gl_isfinited): Use isnand instead of isnan.
24729 * lib/signbitd.c: Include isnand.h instead of isnan.h.
24730 (gl_signbitd): Use isnand instead of isnan.
24731 * lib/vasnprintf.c: Include isnand.h instead of isnan.h.
24732 (is_infinite_or_zero, VASNPRINTF): Use isnand instead of isnan.
24733 * tests/test-frexp.c: Include isnand.h instead of isnan.h.
24734 (main): Use isnand instead of isnan.
24735 * tests/test-round1.c: Include isnand.h.
24736 (main): Use isnand instead of isnan.
24737 * tests/test-round2.c: Include isnand.h instead of isnan.h.
24738 (ISNAN): Set to isnand instead of isnan.
24739 * tests/test-trunc1.c: Include isnand.h.
24740 (main): Use isnand instead of isnan.
24741 * tests/test-trunc2.c: Include isnand.h instead of isnan.h.
24742 (equal): Use isnand instead of isnan.
24743 * MODULES.html.sh (Mathematics <math.h>): Replace isnan-nolibm with
24745 * NEWS: Mention the change.
24747 2008-01-25 Paul Eggert <eggert@cs.ucla.edu>
24748 Bruno Haible <bruno@clisp.org>
24750 * m4/signbit.m4 (gl_SIGNBIT): Require a macro definition. Test whether
24751 the GCC builtins for signbits are present and set
24752 REPLACE_SIGNBIT_USING_GCC if so.
24753 * lib/math.in.h (signbit): Define using GCC builtins if
24754 REPLACE_SIGNBIT_USING_GCC is set.
24755 * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize
24756 REPLACE_SIGNBIT_USING_GCC.
24757 * modules/math (Makefile.am): Substitute REPLACE_SIGNBIT_USING_GCC.
24759 2008-01-25 Jim Meyering <meyering@redhat.com>
24761 Prefer <config.h> over "config.h". See autoconf doc for explanation.
24762 * lib/poll.c: Include <config.h>, not "config.h".
24763 * tests/test-getaddrinfo.c: Likewise.
24765 2008-01-25 Simon Josefsson <simon@josefsson.org>
24767 * modules/sockets-tests: New file.
24769 2008-01-24 Simon Josefsson <simon@josefsson.org>
24771 * modules/sockets: New module, can be used to call WSA_Startup and
24772 WSA_Cleanup when needed.
24774 * lib/sockets.h, lib/sockets.c: New files.
24776 * m4/sockets.m4: New file.
24778 * tests/test-sockets.c: New file.
24780 2008-01-19 Bruno Haible <bruno@clisp.org>
24782 * doc/posix-headers: Renamed from doc/headers.
24783 * doc/posix-functions: Renamed from doc/functions.
24784 * doc/gnulib.texi: Update.
24786 2008-01-19 Bruno Haible <bruno@clisp.org>
24788 * doc/glibc-functions/strcasestr.texi: Include contents of
24789 doc/functions/strcasestr.texi, fixing the list of platforms.
24790 * doc/functions/strcasestr.texi: Remove file.
24792 2008-01-19 Bruno Haible <bruno@clisp.org>
24794 * doc/glibc-functions/memmem.texi: Include contents of
24795 doc/functions/memmem.texi.
24796 * doc/functions/memmem.texi: Remove file.
24798 2008-01-18 Bruno Haible <bruno@clisp.org>
24800 * doc/glibc-functions/*.texi: New files.
24801 * doc/gnulib.texi (Glibc Function Substitutes): Completely rewritten
24802 to use the new files.
24804 2008-01-17 Bruno Haible <bruno@clisp.org>
24806 * tests/test-gethostname.c (main): Fix printf statement.
24808 2008-01-17 Simon Josefsson <simon@josefsson.org>
24810 * modules/gethostname-tests: New file.
24812 * tests/test-gethostname.c: New file.
24814 2008-01-17 Simon Josefsson <simon@josefsson.org>
24816 * lib/gethostname.c: Include string.h unconditionally, strncpy is
24817 used by the UNAME case. Reported by Bruno Haible
24820 2008-01-17 Eric Blake <ebb9@byu.net>
24822 Convert c-strcasestr to be more efficient.
24823 * modules/c-strcasestr (Files): Use Two-Way, not KMP.
24824 (Depends-on): Add c-strcase, remove malloca, strnlen.
24825 * tests/test-c-strcasestr.c (main): Enhance test.
24826 * lib/c-strcasestr.c (c_strcasestr): Rewrite to new algorithm.
24828 2007-01-16 Paolo Bonzini <bonzini@gnu.org>
24830 * build-aux/bootstrap (MSGID_BUGS_ADDRESS): New overridable variable.
24831 Use it in creating po/Makevars.
24833 2008-01-15 Simon Josefsson <simon@josefsson.org>
24835 * lib/gc-libgcrypt.c (gc_init): Disable secure memory by default.
24836 Applications that requires it should initialize libgcrypt
24839 2008-01-16 Simon Josefsson <simon@josefsson.org>
24841 * lib/gethostname.c [!HAVE_UNAME]: Need string.h for strcpy.
24843 2008-01-15 Paul Eggert <eggert@cs.ucla.edu>
24845 Fix problem with getdate on mingw32 reported by Simon Josefsson
24846 in <http://lists.gnu.org/archive/html/bug-gnulib/2008-01/msg00192.html>.
24847 * lib/getdate.y (get_date): Check "HAVE_DECL_TZNAME", not "defined
24848 tzname", when deciding whether to declare tzname.
24849 * lib/strftime.c (tzname): Likewise.
24851 2008-01-15 Bruno Haible <bruno@clisp.org>
24853 Work around a MacOS X 10.5 bug in frexpl().
24854 * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Also check denormalized numbers.
24855 * doc/functions/frexpl.texi: Document the bug.
24856 Reported by Elias Pipping <pipping@gentoo.org>.
24858 2008-01-14 Eric Blake <ebb9@byu.net>
24860 Touch up previous patch.
24861 * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Fix typo.
24862 * doc/functions/strcasestr.texi (strcasestr): Document OpenBSD bug.
24864 Convert strcasestr module to use Two-Way algorithm.
24865 * modules/strcasestr-simple: New module, based on the old
24866 strcasestr, but with Two-Way rather than KMP.
24867 * modules/strcasestr (Depends-on): Change to strcasestr-simple.
24868 * lib/string.in.h (rpl_strcasestr): Declare.
24869 * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Check for linear
24871 * lib/strcasestr.c (strcasestr): Simplify, and avoid malloc.
24872 * modules/string (Makefile.am): Support strcasestr.
24873 * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Likewise.
24874 * modules/strcasestr-tests (Depends-on): Check for alarm.
24875 * tests/test-strcasestr.c: Augment test.
24876 * lib/str-two-way.h: Clean up stray macro.
24877 * NEWS: Document new module.
24878 * MODULES.html.sh (string handling): Likewise.
24879 * doc/functions/strcasestr.texi: New file.
24880 * doc/gnulib.texi (Function Substitutes): New node. Move memmem
24881 here, since it is not a POSIX function.
24883 2008-01-14 Colin Watson <cjwatson@debian.org>
24884 Bruno Haible <bruno@clisp.org>
24886 * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Also check whether strsignal
24887 works fine; if not, set REPLACE_STRSIGNAL.
24888 (gl_PREREQ_STRSIGNAL): Require AC_DECL_SYS_SIGLIST.
24889 * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
24891 * lib/string.in.h (strsignal): Consider REPLACE_STRSIGNAL.
24892 * modules/string (Makefile.am): Substitute REPLACE_STRSIGNAL.
24893 * tests/test-strsignal.c (main): Check out-of-range signal numbers.
24895 2008-01-14 Bruno Haible <bruno@clisp.org>
24897 * modules/strsignal (Include): Change to <string.h>.
24899 2008-01-14 Colin Watson <cjwatson@debian.org>
24901 * modules/argp (Notice): Add a notice recommending to change
24903 (configure.ac): Invoke AM_XGETTEXT_OPTION if it exists.
24905 2008-01-13 Colin Watson <cjwatson@debian.org>
24907 * modules/strsignal-tests: New file.
24908 * tests/test-strsignal.c: New file.
24910 * lib/strsignal.c: New file, from glibc with modifications.
24911 * lib/siglist.h: New file, from glibc with modifications.
24912 * lib/string.in.h (strsignal): New declaration.
24913 * m4/strsignal.m4: New file.
24914 * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
24915 GNULIB_STRSIGNAL and HAVE_DECL_STRSIGNAL.
24916 * modules/strsignal: New file.
24917 * modules/string (Makefile.am): Substitute GNULIB_STRSIGNAL and
24918 HAVE_DECL_STRSIGNAL.
24920 2008-01-13 Bruno Haible <bruno@clisp.org>
24922 * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Check that the
24923 locale encoding is not ASCII. Needed for OpenBSD 4.0.
24924 * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
24925 * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
24927 2008-01-13 Bruno Haible <bruno@clisp.org>
24929 * lib/argp-fmtstream.h (__attribute__): Don't redefine if
24930 __STRICT_ANSI__ is set: it's not needed by any version of gcc.
24931 * lib/argp.h (__attribute__): Likewise.
24932 * lib/c-stack.c (__attribute__): Likewise.
24933 * lib/error.h (__attribute__): Likewise.
24934 * lib/fts.c (__attribute__): Likewise.
24935 * lib/openat.h (__attribute__): Likewise.
24936 * lib/stdio.in.h (__attribute__): Likewise.
24937 * lib/string.in.h (__attribute__): Likewise.
24938 * lib/utimens.c (__attribute__): Likewise.
24939 * lib/vasnprintf.h (__attribute__): Likewise.
24940 * lib/xalloc.h (__attribute__): Likewise.
24941 * lib/xprintf.h (__attribute__): Likewise.
24942 * lib/xstrtol.h (__attribute__): Likewise.
24943 * lib/xvasprintf.h (__attribute__): Likewise.
24945 2008-01-12 Bruno Haible <bruno@clisp.org>
24947 * doc/gnulib.texi (Glibc Header File Substitutes): New chapter.
24948 * doc/glibc-headers/a.out.texi: New file.
24949 * doc/glibc-headers/aliases.texi: New file.
24950 * doc/glibc-headers/alloca.texi: New file.
24951 * doc/glibc-headers/ar.texi: New file.
24952 * doc/glibc-headers/argp.texi: New file.
24953 * doc/glibc-headers/argz.texi: New file.
24954 * doc/glibc-headers/byteswap.texi: New file.
24955 * doc/glibc-headers/crypt.texi: New file.
24956 * doc/glibc-headers/endian.texi: New file.
24957 * doc/glibc-headers/envz.texi: New file.
24958 * doc/glibc-headers/err.texi: New file.
24959 * doc/glibc-headers/error.texi: New file.
24960 * doc/glibc-headers/execinfo.texi: New file.
24961 * doc/glibc-headers/fpu_control.texi: New file.
24962 * doc/glibc-headers/fstab.texi: New file.
24963 * doc/glibc-headers/fts.texi: New file.
24964 * doc/glibc-headers/getopt.texi: New file.
24965 * doc/glibc-headers/ieee754.texi: New file.
24966 * doc/glibc-headers/ifaddrs.texi: New file.
24967 * doc/glibc-headers/libintl.texi: New file.
24968 * doc/glibc-headers/mcheck.texi: New file.
24969 * doc/glibc-headers/mntent.texi: New file.
24970 * doc/glibc-headers/obstack.texi: New file.
24971 * doc/glibc-headers/paths.texi: New file.
24972 * doc/glibc-headers/printf.texi: New file.
24973 * doc/glibc-headers/pty.texi: New file.
24974 * doc/glibc-headers/resolv.texi: New file.
24975 * doc/glibc-headers/shadow.texi: New file.
24976 * doc/glibc-headers/sysexits.texi: New file.
24977 * doc/glibc-headers/ttyent.texi: New file.
24979 2008-01-12 Jim Meyering <meyering@redhat.com>
24981 announce-gen: emit Gnulib's git-based version string.
24982 * build-aux/announce-gen: Remove option: --gnulib-snapshot-time-stamp=S.
24983 New option --gnulib-version=V, where V is expected to be
24984 the output of running git describe in the gnulib directory.
24985 (get_tool_versions): Request feedback on xdelta. I suspect it's
24986 not useful, and plan to stop publishing an xdelta file with each
24989 * build-aux/announce-gen: Also check for lzma-compressed files.
24991 2008-01-11 Bruno Haible <bruno@clisp.org>
24993 * tests/test-memmem.c (main): Increase maximum allowed time.
24994 * tests/test-strstr.c (main): Likewise.
24996 2008-01-11 Bruno Haible <bruno@clisp.org>
24998 * doc/functions/memmem.texi: Add more precisions about platforms.
24999 * doc/functions/strstr.texi: Likewise.
25001 2008-01-10 Eric Blake <ebb9@byu.net>
25003 * m4/strstr.m4: Delete cruft from copy-n-paste.
25004 Reported by Bruno Haible.
25006 2008-01-10 Bruno Haible <bruno@clisp.org>
25008 Make c-strstr rely on strstr.
25009 * lib/c-strstr.c: Don't include str-kmp.h.
25010 (c_strstr): Define in terms of strstr.
25011 * modules/c-strstr (Files): Remove lib/str-kmp.h.
25012 (Depends-on): Remove stdbool, malloca, strnlen. Add strstr.
25014 2008-01-10 Bruno Haible <bruno@clisp.org>
25016 * doc/gnulib.texi (String Functions in C Locale): New section.
25017 * doc/c-ctype.texi: New file.
25018 * doc/c-strcase.texi: New file.
25019 * doc/c-strcaseeq.texi: New file.
25020 * doc/c-strcasestr.texi: New file.
25021 * doc/c-strstr.texi: New file.
25022 * doc/c-strtod.texi: New file.
25023 * doc/c-strtold.texi: New file.
25025 2008-01-10 Eric Blake <ebb9@byu.net>
25027 * lib/relocatable.h: Fix a comment.
25029 2008-01-10 Eric Blake <ebb9@byu.net>
25031 Share two-way algorithm.
25032 * lib/str-two-way.h: New file, merged from...
25033 * lib/memmem.c: ...here...
25034 * lib/strstr.c: ...and here.
25035 * modules/memmem (Files): Use it.
25036 * modules/strstr (Files): Likewise.
25038 Avoid quadratic strstr implementations.
25039 * lib/strstr.c: New file.
25040 * m4/strstr.m4: Likewise.
25041 * modules/strstr: Likewise.
25042 * modules/strstr-tests: Likewise.
25043 * tests/test-strstr.c: Likewise.
25044 * lib/string.in.h (rpl_strstr): Declare.
25045 (memmem) [GNULIB_POSIXCHECK]: Document speed issue.
25046 * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Support strstr.
25047 * modules/string (Makefile.am): Likewise.
25048 * MODULES.html.sh (string handling): Mention new module.
25049 * doc/functions/strstr.texi (strstr): Document the bug.
25051 2008-01-10 Bruno Haible <bruno@clisp.org>
25053 * lib/relocatable.h (relocate): State whether result is freshly
25055 * lib/relocatable.c (relocate): Return a freshly allocated string
25056 instead of a pointer to a privately held string.
25057 Reported by Sylvain Beucler <beuc@gnu.org>.
25059 2008-01-10 Colin Watson <cjwatson@debian.org>
25061 * lib/canonicalize-lgpl.c [!_LIBC]: Fix typo in #if directive:
25062 s/S_ISNLK/S_ISLNK/.
25064 2008-01-09 Bruno Haible <bruno@clisp.org>
25066 * doc/functions/memmem.texi: Use the same structure as snprintf.texi
25068 * m4/memmem.m4 (gl_FUNC_MEMMEM): Say "guessing no" instead of "no"
25069 if it's only a guess.
25070 * modules/memmem: Simplify by depending on memmem-simple.
25072 2008-01-09 Bruno Haible <bruno@clisp.org>
25074 Work around OpenBSD 4.0 tdelete() bug.
25075 * m4/tsearch.m4 (gl_FUNC_TSEARCH): Also check tdelete's return value.
25076 * lib/search.in.h: If REPLACE_TSEARCH is 1, define tsearch etc. as
25077 macros and don't redefine the enum values.
25078 * m4/search_h.m4 (gl_SEARCH_H_DEFAULTS): Initialize REPLACE_TSEARCH.
25079 * modules/search (Makefile.am): Also substitute REPLACE_TSEARCH.
25080 * doc/functions/tdelete.texi: Document the OpenBSD 4.0 bug.
25082 2008-01-09 Bruno Haible <bruno@clisp.org>
25084 * tests/test-wcwidth.c: Include <string.h> and localcharset.h.
25085 (main): Don't perform the tests if setlocale did not install a UTF-8
25086 locale. Needed on OpenBSD 4.0.
25087 * modules/wcwidth-tests (Depends-on): Add localcharset.
25089 2008-01-09 Paul Eggert <eggert@cs.ucla.edu>
25091 gl_FUNC_ALLOCA no longer defines HAVE_ALLOCA_H unconditionally.
25092 See <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00149.html>.
25093 * NEWS: announce this.
25094 * m4/alloca.m4 (gl_FUNC_ALLOCA): Don't define HAVE_ALLOCA_H.
25096 2008-01-09 Simon Josefsson <simon@josefsson.org>
25097 and Eric Blake <ebb9@byu.net>
25099 Add memmem-simple module.
25100 * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): New macro.
25101 (gl_FUNC_MEMMEM): Separate performance from presence checks.
25102 * modules/memmem-simple: New file.
25103 * modules/memmem (Description): Tweak.
25104 * MODULES.html.sh (string handling): Mention new module.
25105 * doc/functions/memmem.texi (memmem): Distinguish which flaws are
25106 addressed by memmem-simple.
25107 * NEWS: Document the difference.
25109 2008-01-09 Eric Blake <ebb9@byu.net>
25111 Give gcc some memmem optimization hints.
25112 * lib/string.in.h (memmem, memrchr, strchrnul, strnlen, strpbrk)
25113 (strcasestr): Declare as pure.
25114 * modules/memmem (Maintainer): Claim my implementation.
25116 2008-01-09 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
25118 Support AIX 6.1 and higher.
25119 * build-aux/config.libpath: Likewise.
25120 * build-aux/config.rpath: Likewise.
25122 2008-01-08 Jim Meyering <meyering@redhat.com>
25123 Bruno Haible <bruno@clisp.org>
25125 * lib/printf-parse.c (PRINTF_PARSE): Handle a size specifier "q"
25126 on MacOS X and a size specifier "I64" on mingw. Needed for PRIdMAX.
25127 Reported by Peter Fales in
25128 <http://lists.gnu.org/archive/html/bug-coreutils/2007-12/msg00148.html>.
25130 2008-01-08 Bruno Haible <bruno@clisp.org>
25132 * modules/unictype/category-of (Depends-on): Add
25133 unictype/category-none.
25134 * modules/unictype/category-and-tests (Depends-on): Add
25135 unictype/category-{L,N,Lu,Nd}.
25136 * modules/unictype/category-and-not-tests (Depends-on): Likewise.
25137 * modules/unictype/category-or-tests (Depends-on): Add
25138 unictype/category-{L,N}.
25139 * modules/unictype/category-name-tests (Depends-on): Add
25140 unictype/category-{Z,Nl}.
25141 Reported by Simon Josefsson.
25143 2008-01-08 Bruno Haible <bruno@clisp.org>
25145 * lib/str-kmp.h (knuth_morris_pratt_unibyte): Document the calling
25147 * lib/mbsstr.c (knuth_morris_pratt_multibyte): Likewise.
25148 * lib/mbscasestr.c (knuth_morris_pratt_multibyte): Likewise.
25149 Reported by Peter Miller <millerp@canb.auug.org.au>.
25151 2008-01-08 Eric Blake <ebb9@byu.net>
25153 Rewrite memmem to guarantee linear complexity without malloc.
25154 * lib/memmem.c (memmem): Use Two-Way rather than
25155 Knuth-Morris-Pratt, to allow O(1) space usage.
25156 (critical_factorization, two_way_short_needle)
25157 (two_way_long_needle): New functions.
25158 (knuth_morris_pratt): Delete.
25159 * modules/memmem (Depends-on): No longer need malloca or stdbool.
25161 * tests/test-memmem.c (main): Add tests for periodic needle and
25162 sublinear performance.
25163 * doc/functions/memmem.texi (memmem): Document other deficiencies
25164 in cygwin and older glibc.
25166 2008-01-08 Bruno Haible <bruno@clisp.org>
25168 * modules/memmem-tests (Makefile.am): Remove TESTS_ENVIRONMENT
25171 2008-01-08 Mike Frysinger <vapier@gentoo.org>
25173 Add a configure time option: --disable-acl.
25174 * m4/acl.m4 (gl_FUNC_ACL): Wrap all ACL logic in a call to
25175 AC_ARG_ENABLE(acl).
25177 2008-01-06 Simon Josefsson <simon@josefsson.org>
25179 * tests/test-localename.c: Don't include obsolete "setenv.h".
25181 * modules/localename-tests (Depends-on): Need unsetenv.
25183 2008-01-08 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
25185 * DEPENDENCIES: Require Texinfo version 4.6 or newer.
25187 2008-01-06 Colin Watson <cjwatson@debian.org>
25189 * users.txt: Add man-db.
25191 2008-01-07 Bruno Haible <bruno@clisp.org>
25193 * doc/gnulib-intro.texi (Library vs Reusable Code): Restore the
25194 previous section name.
25196 2008-01-07 Bruno Haible <bruno@clisp.org>
25198 * lib/progname.c (set_program_name): Don't strip off a leading
25199 "lt-" prefix outside a .libs directory.
25200 Suggested by Paul Eggert.
25202 2008-01-01 Sylvain Beucler <beuc@gnu.org>
25203 Bruno Haible <bruno@clisp.org>
25205 Improve memory cleanup in 'relocatable' module.
25206 * lib/relocatable.h (compute_curr_prefix): Change return type to
25208 * lib/relocatable.c (compute_curr_prefix): Change return type to
25209 'char *'. Free curr_installdir after use.
25210 (relocate): Free curr_prefix_better after use.
25211 * lib/progreloc.c (prepare_relocate): Free curr_prefix after use.
25213 2008-01-01 Bruno Haible <bruno@clisp.org>
25215 * tests/test-wcwidth.c (main): Relax test of U+2060. Avoids a test
25216 failure on older glibc systems.
25217 Reported by Peter Fales <psfales@alcatel-lucent.com>.
25219 2008-01-05 Eric Blake <ebb9@byu.net>
25221 Avoid quadratic system memmem.
25222 * m4/memmem.m4 (gl_FUNC_MEMMEM): Check for quadratic memmem.
25223 Reported by Ralf Wildenhues.
25225 Fix memmem test for mingw.
25226 * modules/memmem-tests (configure.ac): Check for alarm.
25227 * tests/test-memmem.c (main): Avoid alarm on platforms that lack
25229 * doc/functions/memmem.texi: New file.
25230 * doc/gnulib.texi (Function Substitutes): Add memmem.
25231 Reported by Bruno Haible.
25233 2008-01-04 Bruno Haible <bruno@clisp.org>
25235 * m4/strcase.m4 (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP):
25236 Require gl_HEADER_STRINGS_H_DEFAULTS, not
25237 gl_HEADER_STRING_H_DEFAULTS.
25239 2008-01-04 Eric Blake <ebb9@byu.net>
25241 Shorten duration of memmem test.
25242 * tests/test-memmem.c (main): Use alarm to declare failure if test
25243 is taking too long.
25244 Reported by Ralf Wildenhues.
25246 2007-12-21 Simon Josefsson <simon@josefsson.org>
25248 * modules/relocatable-prog-wrapper (Depends-on): Add intprops and
25249 string, needed by strerror.
25251 2008-01-03 Colin Watson <cjwatson@debian.org>
25252 Bruno Haible <bruno@clisp.org>
25254 * doc/gnulib-tool.texi (Localization): New section.
25256 2008-01-02 Bruno Haible <bruno@clisp.org>
25258 * lib/memmem.c (knuth_morris_pratt, memmem): Change all 'char *'
25259 variables to 'unsigned char *' type.
25260 Reported by Paul Eggert.
25262 2008-01-02 Jim Meyering <jim@meyering.net>
25264 * lib/version-etc.c (COPYRIGHT_YEAR): Increase for new year.
25266 2007-12-31 Jim Meyering <jim@meyering.net>
25268 Avoid use of private FTS type name.
25269 * lib/fts.c (fts_sort): Use FTSENT rather than "struct _ftsent".
25271 2007-12-30 Karl Berry <karl@gnu.org>
25273 * doc/gnulib.texi (Library vs. Reusable Code): remove period, to
25274 work around defect in Texinfo and/or the standalone Info browser.
25276 2007-12-30 Bruno Haible <bruno@clisp.org>
25278 Unify 5 copies of the KMP code.
25279 * lib/str-kmp.h: New file.
25280 * lib/c-strcasestr.c: Include str-kmp.h.
25281 (knuth_morris_pratt): Remove function.
25282 (c_strcasestr): Update.
25283 * lib/c-strstr.c: Include str-kmp.h.
25284 (knuth_morris_pratt): Remove function.
25285 (c_strcasestr): Update.
25286 * lib/mbscasestr.c: Include str-kmp.h.
25287 (knuth_morris_pratt_unibyte): Remove function.
25288 * lib/mbsstr.c: Include str-kmp.h.
25289 (knuth_morris_pratt_unibyte): Remove function.
25290 * lib/strcasestr.c: Include str-kmp.h.
25291 (knuth_morris_pratt): Remove function.
25292 (strcasestr): Update.
25293 * modules/c-strcasestr (Files): Add lib/str-kmp.h.
25294 * modules/c-strstr (Files): Likewise.
25295 * modules/mbscasestr (Files): Likewise.
25296 * modules/mbsstr (Files): Likewise.
25297 * modules/strcasestr (Files): Likewise.
25298 Suggested by Paul Eggert.
25300 2007-12-30 Bruno Haible <bruno@clisp.org>
25302 * lib/xmalloca.c (xmmalloca): Don't define if HAVE_ALLOCA is not
25305 2007-12-30 Bruno Haible <bruno@clisp.org>
25307 * lib/xmalloca.h: Include xalloc.h.
25308 (xnmalloca): New macro.
25310 2007-12-30 Bruno Haible <bruno@clisp.org>
25312 * lib/malloca.h (nmalloca): New macro.
25313 * lib/c-strcasestr.c (knuth_morris_pratt): Use it.
25314 * lib/c-strstr.c (knuth_morris_pratt): Likewise.
25315 * lib/mbscasestr.c (knuth_morris_pratt_unibyte,
25316 knuth_morris_pratt_multibyte): Likewise.
25317 * lib/mbsstr.c (knuth_morris_pratt_unibyte,
25318 knuth_morris_pratt_multibyte): Likewise.
25319 * lib/memmem.c (knuth_morris_pratt): Likewise.
25320 * lib/strcasestr.c (knuth_morris_pratt): Likewise.
25322 2007-12-25 Bruno Haible <bruno@clisp.org>
25324 Fixup after 2007-10-17 commit. Ensure that 'glob' stays under LGPLv2+.
25325 * lib/glob.c: Don't include openat.h.
25326 (link_exists2_p): Add back the code that deals with the
25327 !GLOB_ALTDIRFUNC case.
25328 (link_exists_p) [!_LIBC && !HAVE_FSTATAT]: Just call link_exists2_p and
25329 let it do the filename concatenation.
25330 * m4/glob.m4 (gl_PREREQ_GLOB): Add check for fstatat.
25331 * modules/glob (Depends-on): Remove openat.
25333 2007-12-31 Bruno Haible <bruno@clisp.org>
25335 * modules/dirfd (License): Change to LGPLv2+.
25336 Approved by Jim Meyering.
25338 2007-12-29 Paul Eggert <eggert@cs.ucla.edu>
25340 * lib/memmem.c (knuth_morris_pratt): Check for size_t overflow
25341 when multiplying M by sizeof (size_t).
25343 2007-12-10 Martin Lambers <marlam@marlam.de>
25345 Override getpagesize on mingw.
25346 * lib/getpagesize.c: New file.
25347 * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Enable replacement on mingw.
25348 * modules/getpagesize (Files): Add lib/getpagesize.c.
25349 * lib/unistd.in.h (getpagesize): Declare if we are using a replacement.
25350 * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
25351 REPLACE_GETPAGESIZE.
25352 * modules/unistd (Makefile.am): Substitute REPLACE_GETPAGESIZE.
25354 2007-12-25 Bruno Haible <bruno@clisp.org>
25356 * modules/localcharset (Notice): New field.
25357 (configure.ac): Define LOCALCHARSET_TESTS_ENVIRONMENT.
25358 Suggested by Ben Pfaff <blp@cs.stanford.edu>.
25360 2007-12-25 Paul Eggert <eggert@cs.ucla.edu>
25361 Bruno Haible <bruno@clisp.org>
25363 Avoid using the syntax symbol() in formatted documentation.
25364 * MODULES.html.sh (func_module): When replacing symbol() with a
25365 hyperlink, remove the parentheses. Show an error if some remain.
25366 Recognize and render the '...' syntax.
25367 * doc/alloca-opt.texi: Remove parentheses from symbol reference.
25368 Rework. Add paragraph about GCC's inlining.
25369 * doc/alloca.texi: Likewise.
25370 * doc/error.texi: Remove parentheses from symbol reference.
25371 * doc/gnulib-intro.texi: Likewise.
25372 * doc/gnulib.texi (alloca, alloca-opt): New nodes.
25373 * modules/fnmatch (Description): Reword to say "the ... function".
25374 * modules/full-read (Description): Likewise.
25375 * modules/full-write (Description): Likewise.
25376 * modules/safe-read (Description): Likewise.
25377 * modules/safe-write (Description): Likewise.
25378 * modules/strchrnul (Description): Likewise.
25379 * modules/trim (Description): Likewise.
25380 * modules/error (Description): Remove parentheses from symbol
25382 * modules/verror (Description): Likewise.
25383 Reported by Karl Berry.
25385 2007-12-25 Bruno Haible <bruno@clisp.org>
25387 Fixup after 2007-10-16 commit.
25388 * lib/glob.c (glob_in_dir): Don't use ISO C99 syntax.
25390 2007-12-24 Bruno Haible <bruno@clisp.org>
25392 Make --enable-relocatable work with DESTDIR.
25393 * build-aux/install-reloc: Accept another argument 'destdir'. Use it
25394 to compute installdir from destprog.
25395 * m4/relocatable.m4 (gl_RELOCATABLE_BODY): In INSTALL_PROGRAM_ENV,
25396 also set the RELOC_DESTDIR variable.
25397 Reported by Левашев Иван <octagram@bluebottle.com>.
25399 2007-12-24 Bruno Haible <bruno@clisp.org>
25401 Fix link error due to xalloc_die().
25402 * lib/progreloc.c: When NO_XMALLOC is defined, use areadlink instead
25404 * lib/relocwrapper.c: Update comments.
25405 * build-aux/install-reloc: Remove xreadlink.c from file list.
25406 * modules/relocatable-prog-wrapper (Files): Remove xreadlink.h and
25408 Reported by Левашев Иван <octagram@bluebottle.com>.
25410 2007-12-24 Bruno Haible <bruno@clisp.org>
25412 Split setenv module into setenv and unsetenv. Get rid of setenv.h.
25413 * lib/setenv.h: Remove file.
25414 * lib/stdlib.in.h (setenv, unsetenv): New declarations, moved here from
25416 * modules/setenv (Files): Remove lib/setenv.h, lib/unsetenv.c.
25417 (Depends-on): Add stdlib.
25418 (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR. Don't invoke
25420 (Include): Replace setenv.h with <stdlib.h>.
25421 * modules/unsetenv: New file.
25422 * lib/setenv.c: Include <stdlib.h> first, after alloca.h.
25423 * lib/unsetenv.c: Include <stdlib.h> first.
25424 * m4/setenv.m4 (gl_FUNC_SETENV, gl_FUNC_SETENV_SEPARATE): Require
25425 gl_STDLIB_H_DEFAULTS. Conditionally set HAVE_SETENV to 0.
25426 (gl_FUNC_UNSETENV): Require gl_STDLIB_H_DEFAULTS. Conditionally set
25427 HAVE_UNSETENV to 0. Set VOID_UNSETENV as an AC_SUBSTed variable.
25428 * modules/stdlib (Makefile.am): Substitute also GNULIB_SETENV,
25429 HAVE_SETENV, GNULIB_UNSETENV, HAVE_UNSETENV, VOID_UNSETENV.
25430 * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_SETENV,
25431 HAVE_SETENV, GNULIB_UNSETENV, HAVE_UNSETENV, VOID_UNSETENV.
25432 * doc/functions/unsetenv.texi: Update.
25433 * modules/xsetenv (Depends-on): Add unsetenv.
25434 * modules/getdate (Depends-on): Likewise.
25435 * lib/xsetenv.h: Include <stdlib.h> instead of setenv.h.
25436 * lib/xsetenv.c: Don't include setenv.h.
25437 * lib/getdate.y: Likewise.
25438 * lib/relocwrapper.c: Likewise.
25439 * modules/relocatable-prog-wrapper (Files): Remove lib/setenv.h.
25440 (Depends-on): Add stdlib.
25441 * NEWS: Mention the changes.
25442 Reported by Левашев Иван <octagram@bluebottle.com>.
25444 2007-12-23 Bruno Haible <bruno@clisp.org>
25446 * lib/memmem.c (memmem): Use lowercase variable names. Tab
25449 2007-12-23 Bruno Haible <bruno@clisp.org>
25451 * lib/c-strcasestr.c: Add more comments.
25452 * lib/c-strstr.c: Likewise.
25453 * lib/mbscasestr.c: Likewise.
25454 * lib/mbsstr.c: Likewise.
25455 * lib/strcasestr.c: Likewise.
25456 * lib/memmem.c: Likewise.
25458 2007-12-23 Bruno Haible <bruno@clisp.org>
25460 * tests/test-memmem.c: Include <string.h> first.
25462 2007-12-22 Bruno Haible <bruno@clisp.org>
25464 * gnulib-tool (func_create_testdir): Change $auxdir while generating
25465 the contents of $testsbase.
25466 Reported by Ralf Wildenhues.
25468 2007-12-22 Bruno Haible <bruno@clisp.org>
25470 * gnulib-tool (func_emit_tests_Makefile_am): Replace local_ldadd with
25471 two variables local_ldadd_before, local_ldadd_last.
25473 2007-12-20 Eric Blake <ebb9@byu.net>
25475 Work around circular library issue when cross-compiling.
25476 * lib/progname.c (set_program_name): Use strncmp, not memcmp, so
25477 that progname.o does not need to pull in rpl_memcmp.
25479 2007-12-19 Eric Blake <ebb9@byu.net>
25481 Fix memmem to avoid O(n^2) worst-case complexity.
25482 * lib/memmem.c (knuth_morris_pratt): New function.
25483 (memmem): Use it if first few naive iterations fail.
25484 * m4/memmem.m4 (gl_FUNC_MEMMEM): Detect cygwin bug.
25485 * modules/memcmp (License): Set to LGPLv2+, not LGPL.
25486 * modules/memchr (License): Likewise.
25487 * modules/memmem (Depends-on): Add memcmp, memchr, stdbool, and
25489 * tests/test-memmem.c: Rewrite, borrowing ideas from
25490 test-mbsstr1.c; the old version wouldn't even compile!
25491 * modules/memmem-tests: New file.
25492 * lib/string.in.h (rpl_memmem): Add declaration.
25493 * modules/string (Makefile.am): Substitute REPLACE_MEMMEM.
25494 * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Default for
25497 2007-12-18 Paul Eggert <eggert@cs.ucla.edu>
25499 Fix problem with _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H on VMS.
25500 * lib/stdint.in.h (_GL_JUST_INCLUDE_SYSTEM_INTTYPES_H): Define
25501 before any system include files, and undef after them all. This
25502 should fix a problem on VMS reported by John E. Malmberg in
25503 <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00118.html>.
25505 2007-12-17 Eric Blake <ebb9@byu.net>
25507 Revert addition of verify, for BSD/OS.
25508 * lib/fseeko.c [!HAVE_FSEEKO]: Allow off_t > long, even though it
25509 can't handle large files, for the sake of obsolete platforms.
25510 * modules/fseeko (Depends-on): Remove verify.
25511 * doc/functions/fseeko.texi (fseeko): Document BSD/OS limitation.
25512 * doc/functions/ftello.texi (ftello): Likewise.
25513 * doc/functions/fgetpos.texi (fgetpos): Likewise.
25514 Reported by Larry Jones.
25516 2007-12-17 Petr Salinger <Petr.Salinger@seznam.cz>
25518 getcwd.c: Use a more readable witness: HAVE_OPENAT_SUPPORT
25519 * lib/getcwd.c: Define and use HAVE_OPENAT_SUPPORT, in place of AT_FDCWD.
25521 2007-12-17 Jim Meyering <meyering@redhat.com>
25523 Port to GNU/kFreeBSD - FreeBSD kernel + GNU libc,
25524 which has no openat syscall, yet <fcntl.h> does define AT_FDCWD.
25525 * lib/getcwd.c: Undef AT_FDCWD if there is no openat function.
25526 * modules/getcwd (Depends-on): Add openat.
25527 Reported by Petr Salinger.
25529 2007-12-17 Bruno Haible <bruno@clisp.org>
25531 * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Use GL_NOCRASH to
25532 avoid a segmentation fault of the configure test on x86_64 systems.
25534 2007-12-15 Jim Meyering <meyering@redhat.com>
25536 * build-aux/gnupload (GPG): Don't hard-code absolute name of gpg binary.
25538 2007-12-13 Eric Blake <ebb9@byu.net>
25540 Another fseek test.
25541 * tests/test-fseek.c (main): Also test ungetc handling.
25542 * tests/test-fseeko.c (main): Likewise.
25543 * modules/fseeko (Depends-on): Add verify.
25544 * lib/fseeko.c [!HAVE_FSEEKO]: Verify that off_t is not too
25546 Reported by Larry Jones.
25548 Fix fseeko on mingw.
25549 * lib/fseeko.c (rpl_fseeko) [_IOERR]: Reset EOF flag on successful
25552 Beef up fseek tests.
25553 * tests/test-fseek.c (main): Also test eof handling.
25554 * tests/test-fseeko.c (main): Likewise.
25555 Reported by Larry Jones.
25557 2007-12-13 Larry Jones <lawrence.jones@siemens.com> (tiny change)
25559 Fix fseeko on BSD-based platforms.
25560 * lib/fseeko.c (rpl_fseeko) [__sferror]: Reset EOF flag on
25563 2007-12-12 Eric Blake <ebb9@byu.net>
25565 Allow circular dependency of separate libtests.a
25566 * gnulib-tool (func_emit_tests_Makefile_am): Add AM_LIBTOOLFLAGS
25569 2007-12-11 Eric Blake <ebb9@byu.net>
25571 Fix bug with -0.0L in previous patch.
25572 * lib/isnan.c (rpl_isnanl): Make robust to -0.0L and pad bits.
25573 * tests/test-isnan.c (main): Also test on zeroes.
25574 * tests/test-isnanf.c (main): Likewise.
25575 * tests/test-isnanl.h (main): Likewise.
25577 Detect pseudo-denormals on x86 even when cross-compiling.
25578 * lib/isnan.c (rpl_isnanl) [!KNOWN_EXPBIT0_LOCATION
25579 && USE_LONG_DOUBLE && x86]: Add one more check to filter out
25580 invalid bit patterns that happen to satisfy ==.
25582 Avoid link failures with separate libtests.a.
25583 * gnulib-tool (func_emit_tests_Makefile_am): Also list local_ldadd
25584 last, to satisfy circular dependencies.
25586 2007-12-11 Eric Blake <ebb9@byu.net>
25587 and Bruno Haible <bruno@clisp.org>
25589 Fix OpenBSD 4.0 <float.h> handling of long double.
25590 * m4/float_h.m4 (gl_FLOAT_H): Also claim OpenBSD is broken.
25591 * lib/float.in.h [__OpenBSD__]: Add fixes for OpenBSD.
25592 * doc/headers/float.texi (float.h): Document OpenBSD bug.
25594 2007-12-11 Jim Meyering <meyering@redhat.com>
25596 * users.txt: Add libvirt.
25598 Support versions of autoconf prior to 2.59c.
25599 * gnulib-tool (func_emit_initmacro_done): Define m4_foreach_w
25600 if it is not already defined.
25602 2007-12-09 Bruno Haible <bruno@clisp.org>
25604 Let 'gnulib-tool --import' collect sources needed for the tests in
25605 tests/ rather than in lib/.
25606 * gnulib-tool (func_emit_tests_Makefile_am): Accept use_libtests
25607 argument. If true, add rules to generate libtests.a, and put libtests.a
25608 into $(LDADD). Consider source files in subdirectories and set
25610 (func_emit_initmacro_start, func_emit_initmacro_end,
25611 func_emit_initmacro_done): Pass all arguments explicitly.
25612 (func_import): Determine two module lists main_modules,
25613 testsrelated_modules. Determine use_libtests. Determine two variables
25614 sed_transform_main_lib_file, sed_transform_testsrelated_lib_file
25615 instead of just sed_transform_lib_file. Determine two variables
25616 main_files and testsrelated_files. Compute 'files' as the union of
25617 both. Adjust sed_rewrite_old_files, sed_rewrite_new_files,
25618 func_add_or_update. In the generated gnulib-comp.m4, collect the
25619 object files for tests/ in different variables than those for lib/.
25620 Substitute LIBTESTS_LIBDEPS.
25621 (func_create_testdir): Combine the uses_subdirs results from
25622 func_emit_lib_Makefile_am and from func_emit_tests_Makefile_am.
25624 2007-12-09 Bruno Haible <bruno@clisp.org>
25626 * gnulib-tool (func_emit_tests_Makefile_am): Expand references to
25627 the build-aux directory.
25629 2007-12-09 Bruno Haible <bruno@clisp.org>
25631 * gnulib-tool (func_emit_tests_Makefile_am): Remove redundant code
25632 introduced on 2006-09-09.
25634 2007-12-07 Jim Meyering <meyering@redhat.com>
25636 Let these macros work also with autoconf-2.59.
25637 * m4/getline.m4 (gl_FUNC_GETLINE): Require only autoconf-2.59. 2.60
25638 is not needed, since gnulib now permits use of AC_CHECK_DECLS_ONCE.
25639 * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
25641 2007-12-06 Jim Meyering <meyering@redhat.com>
25643 Avoid a configure-time syntax error in gl_FUNC_ACL.
25644 * m4/acl.m4 (gl_FUNC_ACL): Be careful to check for the acl_trivial
25645 function in each branch, before testing the cache variable.
25647 2007-12-04 Eric Blake <ebb9@byu.net>
25649 Make scripts executable.
25650 * build-aux/config.guess: Add execute permissions.
25651 * build-aux/config.sub: Likewise.
25652 * build-aux/gendocs.sh: Likewise.
25654 Fix frexp on mingw.
25655 * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Detect mingw bug when
25657 * doc/functions/frexp.texi (frexp): Document the bug.
25659 Make cygwin fseeko check more reliable.
25660 * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET) [__CYGWIN__]: Use cygwin
25661 version numbers, rather than unrelated feature check.
25662 * doc/functions/fseeko.texi (fseeko): Tweak failure report.
25663 * doc/functions/ftello.texi (ftello): Likewise.
25664 Reported by Bruno Haible.
25666 * m4/strerror.m4: Bump version number.
25668 2007-12-03 Bruno Haible <bruno@clisp.org>
25670 * doc/functions/mprotect.texi: Mention the mingw problem.
25672 2007-12-03 Eric Blake <ebb9@byu.net>
25674 * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Ensure
25675 REPLACE_STRERROR is initialized before this macro.
25677 2007-12-03 Paul Eggert <eggert@cs.ucla.edu>
25679 Add support for Solaris 10 ACLs. Also, ACLs are Gnulib, not Autoconf.
25680 * modules/acl (configure.ac): Rename AC_FUNC_ACL to gl_FUNC_ACL.
25681 * m4/acl.m4 (gl_FUNC_ACL): Renamed from AC_FUNC_ACL. On Solaris,
25682 put -lsec in even for programs other than 'ls'. This fixes a problem
25683 for gettext reported by Bruno Haible in
25684 <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00007.html>.
25685 * lib/acl.c (copy_acl, qset_acl) [USE_ACL && defined ACL_NO_TRIVIAL]:
25686 Add support for Solaris 10. This isn't efficient, but should get the
25689 2007-12-03 James Youngman <jay@gnu.org>
25691 * doc/regexprops-generic.texi: change "an close-group" to "a
25692 close-group" and "illegal" to "not allowed".
25694 2007-11-23 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
25696 * lib/unictype/pr_byname.c: Include unictype/pr_byname.h instead of
25697 pr_byname.h. Needed for the rare case when the maintainer has done
25698 "make maintainer-clean" in the source directory and then attempts a
25699 build outside the source directory.
25700 * lib/unictype/scripts.c: Include unictype/scripts_byname.h instead of
25703 2007-12-02 Martin Lambers <marlam@marlam.de>
25704 Bruno Haible <bruno@clisp.org>
25706 * lib/getpagesize.h: Remove file.
25707 * lib/unistd.in.h: Include declaration of getpagesize here.
25708 * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Renamed from gl_GETPAGESIZE.
25709 Invoke gl_UNISTD_H_DEFAULTS. Set HAVE_GETPAGESIZE, HAVE_OS_H,
25711 * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETPAGESIZE,
25712 HAVE_GETPAGESIZE, HAVE_OS_H, HAVE_SYS_PARAM_H.
25713 * modules/getpagesize (Files): Remove lib/getpagesize.h.
25714 (Depends-on): Add unistd.
25715 (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
25716 (Include): Use <unistd.h> instead of getpagesize.h.
25717 * modules/unistd (Makefile.am): Substitute also GNULIB_GETPAGESIZE,
25718 HAVE_GETPAGESIZE, HAVE_OS_H, HAVE_SYS_PARAM_H.
25719 * m4/pagealign_alloc.m4 (gl_PREREQ_PAGEALIGN_ALLOC): Remove
25720 gl_GETPAGESIZE invocation, already handled by module dependency.
25721 * lib/pagealign_alloc.c: Don't include getpagesize.h.
25723 2007-12-02 Bruno Haible <bruno@clisp.org>
25725 * modules/strings-tests: New file.
25726 * tests/test-strings.c: New file.
25728 Move declarations of str{,n}casecmp from <string.h> to <strings.h>.
25729 * lib/strings.in.h: New file.
25730 * lib/string.in.h (strcasecmp, strncasecmp): Remove declarations.
25731 * m4/strings_h.m4: New file.
25732 * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Remove initialization
25733 of HAVE_STRCASECMP, HAVE_DECL_STRNCASECMP.
25734 * modules/strings: New file.
25735 * modules/string (Makefile.am): Update.
25736 * modules/strcase (Include): Mention <strings.h>, not <string.h>.
25737 Reported by Karl Berry.
25739 2007-12-01 Eric Blake <ebb9@byu.net>
25741 * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET) [__CYGWIN__]: Rewrite to
25742 accomodate fix in cygwin 1.5.25.
25744 2007-12-01 Jim Meyering <meyering@redhat.com>
25746 Fix a bug that inhibited much of the utf8-optimization in regcomp.c.
25747 * lib/regcomp.c (optimize_utf8): Fix a typo, s/idx/ctx_type/,
25748 that would inhibit utf8-optimization of a regexp containing line-
25749 or buffer-anchors, e.g., `^', `$'.
25751 2007-11-30 Bruno Haible <bruno@clisp.org>
25753 * lib/lock.h (gl_recursive_lock_init) [PTHREAD &&
25754 PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: Call
25755 glthread_recursive_lock_init.
25756 * lib/lock.c (glthread_recursive_lock_init)
25757 [PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: New function.
25758 Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
25760 2007-11-28 Paul Eggert <eggert@cs.ucla.edu>
25762 New function qset_acl, like set_acl but with syscall semantics.
25763 * lib/acl.h (qset_acl): New decl.
25764 * lib/acl.c (qset_acl): New function.
25765 (set_acl): Use new function. Use more-consistent diagnostics.
25767 2007-11-28 Jim Meyering <meyering@redhat.com>
25769 * modules/physmem (License): Change from GPL to LGPLv2+.
25771 2007-11-26 Bruno Haible <bruno@clisp.org>
25773 * lib/vasnprintf.c (decode_long_double): Don't abort if the
25774 'long double' type has excess precision.
25775 Reported by Jim Meyering in
25776 <http://lists.gnu.org/archive/html/bug-gnulib/2007-11/msg00120.html>.
25778 2007-11-25 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
25780 * doc/fdl.texi, doc/gpl-3.0.texi, doc/lgpl-3.0.texi:
25781 Sync from <http://gnu.org/licenses>.
25782 * modules/agpl-3.0, doc/agpl-3.0.texi: New module,
25783 with license text from same location.
25784 * doc/maintain.texi, doc/standards.texi: Sync from
25785 <http://savannah.gnu.org/projects/gnustandards>.
25787 2007-11-22 OndÅ™ej VaÅ¡Ãk <ovasik@redhat.com>
25788 and Jim Meyering <meyering@redhat.com>
25790 Adjust getdate' grammar to accept a slightly more regular language.
25791 E.g., accept "YYYYMMDD +N days" as well as "YYYYMMDD N days".
25792 Before, the former was rejected.
25793 * lib/getdate.y (digits_to_date_time): New function, factored
25795 (number): ...here. Just call digits_to_date_time.
25796 (hybrid): New non-terminal to handle an <unsigned number,
25797 signed relative offset> sequence consistently.
25799 2007-11-18 Jim Meyering <meyering@redhat.com>
25801 Pull my changes from coreutils:
25802 bootstrap: fix typo to enable use of $gnulib_tool_option_extras.
25803 * build-aux/bootstrap (gnulib_tool_options): Add a space before the
25804 use of $gnulib_tool_option_extras, so that it's separated from the
25805 preceding argument.
25807 Fix bootstrap failure to handle files like lib/uniwidth/cjk.h.
25808 * build-aux/bootstrap (cp_mark_as_generated): Create any required
25809 parent destination directories before copying a file into place.
25811 2007-11-18 Sergey Poznyakoff <gray@gnu.org.ua>
25813 bootstrap: work also with 4-argument variant of AC_INIT
25814 * build-aux/bootstrap (gnulib_extra_files): Adjust sed command.
25816 2007-11-16 Paul Eggert <eggert@cs.ucla.edu>
25818 Port test-getaddrinfo to Solaris.
25819 Problem reported by Bruno Haible in
25820 <http://lists.gnu.org/archive/html/bug-gnulib/2007-03/msg00171.html>.
25821 * tests/test-getaddrinfo.c (simple): Add a comment asking for an
25822 explanation of setting 'hints'.
25823 Don't reject an implementation merely because it returns EAI_SERVICE.
25824 (EAI_SERVICE): Define to 0 if not defined.
25826 2007-11-15 Paul Eggert <eggert@cs.ucla.edu>
25828 The license of gnu-make and posix-shell is now "GPLed build tool".
25829 * modules/gnu-make (License): Likewise.
25830 * modules/posix-shell (License): Likewise.
25832 New module posix-shell, for determining a POSIX shell
25833 or perhaps something that is close enough to a POSIX shell.
25834 * m4/posix-shell.m4: New file.
25835 * modules/posix-shell: New file.
25837 * MODULES.html.sh: Mention new module.
25839 New module gnu-make, for determining whether we're using GNU Make.
25840 * m4/gnu-make.m4: New file.
25841 * modules/gnu-make: New file.
25842 * MODULES.html.sh: Mention new module.
25844 2007-11-14 Jim Meyering <meyering@redhat.com>
25846 Define a sometimes-link-required function using ARGMATCH_DIE_DECL.
25847 * tests/test-argmatch.c (ARGMATCH_DIE_DECL): When defined,
25848 use this macro to create a function _definition_.
25849 Remove useless "#undef ARGMATCH_DIE".
25851 2007-11-14 Bruno Haible <bruno@clisp.org>
25853 * lib/config.charset: Update for OpenBSD 4.1.
25854 Reported and helped by Ben Pfaff <blp@cs.stanford.edu>.
25856 2007-11-12 Paul Eggert <eggert@cs.ucla.edu>
25858 Document 64-bit #if problems in stdint.texi.
25859 * doc/headers/stdint.texi (stdint.h): Mention problems with
25860 64-bit-#if, and how to work around them.
25862 Don't insist on 'long long int' support in the preprocessor. It
25863 breaks too many things. For example, PRIdMAX still uses a 'long
25864 long int' format with the latest Sun compiler, even though
25865 HAVE_LONG_LONG_INT isn't defined due to that compiler's
25866 preprocessor problem. This causes the latest coreutils to dump
25867 core on Solaris 10 sparc with the Sun C compiler.
25868 Instead, fix the 2007-10-16 problem in a different way, by evaluating
25869 the troublesome expressions at configure-time, not at #if-time.
25870 * m4/longlong.m4 (_AC_TYPE_LONG_LONG_SNIPPET): Don't test the
25872 * m4/inttypes.m4 (gl_INTTYPES_H): Move the #if checks into
25873 compile-time C checks, done at 'configure'-time.
25874 (gl_INTTYPES_CHECK_LONG_LONG_INT_CONDITION): New macro.
25875 * modules/inttypes (Makefile): Substitute the new symbols that
25876 gl_INTTYPES_H now generates.
25877 * lib/inttypes.in.h: Don't use constants wider than 'long' in #if.
25879 2007-11-12 Bruno Haible <bruno@clisp.org>
25881 Tests for Unicode character classification functions.
25883 * modules/unictype/bidicategory-byname-tests: New file.
25884 * modules/unictype/bidicategory-name-tests: New file.
25885 * modules/unictype/bidicategory-of-tests: New file.
25886 * modules/unictype/bidicategory-test-tests: New file.
25887 * modules/unictype/block-list-tests: New file.
25888 * modules/unictype/block-of-tests: New file.
25889 * modules/unictype/block-test-tests: New file.
25890 * modules/unictype/category-C-tests: New file.
25891 * modules/unictype/category-Cc-tests: New file.
25892 * modules/unictype/category-Cf-tests: New file.
25893 * modules/unictype/category-Cn-tests: New file.
25894 * modules/unictype/category-Co-tests: New file.
25895 * modules/unictype/category-Cs-tests: New file.
25896 * modules/unictype/category-L-tests: New file.
25897 * modules/unictype/category-Ll-tests: New file.
25898 * modules/unictype/category-Lm-tests: New file.
25899 * modules/unictype/category-Lo-tests: New file.
25900 * modules/unictype/category-Lt-tests: New file.
25901 * modules/unictype/category-Lu-tests: New file.
25902 * modules/unictype/category-M-tests: New file.
25903 * modules/unictype/category-Mc-tests: New file.
25904 * modules/unictype/category-Me-tests: New file.
25905 * modules/unictype/category-Mn-tests: New file.
25906 * modules/unictype/category-N-tests: New file.
25907 * modules/unictype/category-Nd-tests: New file.
25908 * modules/unictype/category-Nl-tests: New file.
25909 * modules/unictype/category-No-tests: New file.
25910 * modules/unictype/category-P-tests: New file.
25911 * modules/unictype/category-Pc-tests: New file.
25912 * modules/unictype/category-Pd-tests: New file.
25913 * modules/unictype/category-Pe-tests: New file.
25914 * modules/unictype/category-Pf-tests: New file.
25915 * modules/unictype/category-Pi-tests: New file.
25916 * modules/unictype/category-Po-tests: New file.
25917 * modules/unictype/category-Ps-tests: New file.
25918 * modules/unictype/category-S-tests: New file.
25919 * modules/unictype/category-Sc-tests: New file.
25920 * modules/unictype/category-Sk-tests: New file.
25921 * modules/unictype/category-Sm-tests: New file.
25922 * modules/unictype/category-So-tests: New file.
25923 * modules/unictype/category-Z-tests: New file.
25924 * modules/unictype/category-Zl-tests: New file.
25925 * modules/unictype/category-Zp-tests: New file.
25926 * modules/unictype/category-Zs-tests: New file.
25927 * modules/unictype/category-and-not-tests: New file.
25928 * modules/unictype/category-and-tests: New file.
25929 * modules/unictype/category-byname-tests: New file.
25930 * modules/unictype/category-name-tests: New file.
25931 * modules/unictype/category-none-tests: New file.
25932 * modules/unictype/category-of-tests: New file.
25933 * modules/unictype/category-or-tests: New file.
25934 * modules/unictype/category-test-withtable-tests: New file.
25935 * modules/unictype/combining-class-tests: New file.
25936 * modules/unictype/ctype-alnum-tests: New file.
25937 * modules/unictype/ctype-alpha-tests: New file.
25938 * modules/unictype/ctype-blank-tests: New file.
25939 * modules/unictype/ctype-cntrl-tests: New file.
25940 * modules/unictype/ctype-digit-tests: New file.
25941 * modules/unictype/ctype-graph-tests: New file.
25942 * modules/unictype/ctype-lower-tests: New file.
25943 * modules/unictype/ctype-print-tests: New file.
25944 * modules/unictype/ctype-punct-tests: New file.
25945 * modules/unictype/ctype-space-tests: New file.
25946 * modules/unictype/ctype-upper-tests: New file.
25947 * modules/unictype/ctype-xdigit-tests: New file.
25948 * modules/unictype/decimal-digit-tests: New file.
25949 * modules/unictype/digit-tests: New file.
25950 * modules/unictype/mirror-tests: New file.
25951 * modules/unictype/numeric-tests: New file.
25952 * modules/unictype/property-alphabetic-tests: New file.
25953 * modules/unictype/property-ascii-hex-digit-tests: New file.
25954 * modules/unictype/property-bidi-arabic-digit-tests: New file.
25955 * modules/unictype/property-bidi-arabic-right-to-left-tests: New file.
25956 * modules/unictype/property-bidi-block-separator-tests: New file.
25957 * modules/unictype/property-bidi-boundary-neutral-tests: New file.
25958 * modules/unictype/property-bidi-common-separator-tests: New file.
25959 * modules/unictype/property-bidi-control-tests: New file.
25960 * modules/unictype/property-bidi-embedding-or-override-tests: New file.
25961 * modules/unictype/property-bidi-eur-num-separator-tests: New file.
25962 * modules/unictype/property-bidi-eur-num-terminator-tests: New file.
25963 * modules/unictype/property-bidi-european-digit-tests: New file.
25964 * modules/unictype/property-bidi-hebrew-right-to-left-tests: New file.
25965 * modules/unictype/property-bidi-left-to-right-tests: New file.
25966 * modules/unictype/property-bidi-non-spacing-mark-tests: New file.
25967 * modules/unictype/property-bidi-other-neutral-tests: New file.
25968 * modules/unictype/property-bidi-pdf-tests: New file.
25969 * modules/unictype/property-bidi-segment-separator-tests: New file.
25970 * modules/unictype/property-bidi-whitespace-tests: New file.
25971 * modules/unictype/property-byname-tests: New file.
25972 * modules/unictype/property-combining-tests: New file.
25973 * modules/unictype/property-composite-tests: New file.
25974 * modules/unictype/property-currency-symbol-tests: New file.
25975 * modules/unictype/property-dash-tests: New file.
25976 * modules/unictype/property-decimal-digit-tests: New file.
25977 * modules/unictype/property-default-ignorable-code-point-tests: New file.
25978 * modules/unictype/property-deprecated-tests: New file.
25979 * modules/unictype/property-diacritic-tests: New file.
25980 * modules/unictype/property-extender-tests: New file.
25981 * modules/unictype/property-format-control-tests: New file.
25982 * modules/unictype/property-grapheme-base-tests: New file.
25983 * modules/unictype/property-grapheme-extend-tests: New file.
25984 * modules/unictype/property-grapheme-link-tests: New file.
25985 * modules/unictype/property-hex-digit-tests: New file.
25986 * modules/unictype/property-hyphen-tests: New file.
25987 * modules/unictype/property-id-continue-tests: New file.
25988 * modules/unictype/property-id-start-tests: New file.
25989 * modules/unictype/property-ideographic-tests: New file.
25990 * modules/unictype/property-ids-binary-operator-tests: New file.
25991 * modules/unictype/property-ids-trinary-operator-tests: New file.
25992 * modules/unictype/property-ignorable-control-tests: New file.
25993 * modules/unictype/property-iso-control-tests: New file.
25994 * modules/unictype/property-join-control-tests: New file.
25995 * modules/unictype/property-left-of-pair-tests: New file.
25996 * modules/unictype/property-line-separator-tests: New file.
25997 * modules/unictype/property-logical-order-exception-tests: New file.
25998 * modules/unictype/property-lowercase-tests: New file.
25999 * modules/unictype/property-math-tests: New file.
26000 * modules/unictype/property-non-break-tests: New file.
26001 * modules/unictype/property-not-a-character-tests: New file.
26002 * modules/unictype/property-numeric-tests: New file.
26003 * modules/unictype/property-other-alphabetic-tests: New file.
26004 * modules/unictype/property-other-default-ignorable-code-point-tests: New file.
26005 * modules/unictype/property-other-grapheme-extend-tests: New file.
26006 * modules/unictype/property-other-id-continue-tests: New file.
26007 * modules/unictype/property-other-id-start-tests: New file.
26008 * modules/unictype/property-other-lowercase-tests: New file.
26009 * modules/unictype/property-other-math-tests: New file.
26010 * modules/unictype/property-other-uppercase-tests: New file.
26011 * modules/unictype/property-paired-punctuation-tests: New file.
26012 * modules/unictype/property-paragraph-separator-tests: New file.
26013 * modules/unictype/property-pattern-syntax-tests: New file.
26014 * modules/unictype/property-pattern-white-space-tests: New file.
26015 * modules/unictype/property-private-use-tests: New file.
26016 * modules/unictype/property-punctuation-tests: New file.
26017 * modules/unictype/property-quotation-mark-tests: New file.
26018 * modules/unictype/property-radical-tests: New file.
26019 * modules/unictype/property-sentence-terminal-tests: New file.
26020 * modules/unictype/property-soft-dotted-tests: New file.
26021 * modules/unictype/property-space-tests: New file.
26022 * modules/unictype/property-terminal-punctuation-tests: New file.
26023 * modules/unictype/property-test-tests: New file.
26024 * modules/unictype/property-titlecase-tests: New file.
26025 * modules/unictype/property-unassigned-code-value-tests: New file.
26026 * modules/unictype/property-unified-ideograph-tests: New file.
26027 * modules/unictype/property-uppercase-tests: New file.
26028 * modules/unictype/property-variation-selector-tests: New file.
26029 * modules/unictype/property-white-space-tests: New file.
26030 * modules/unictype/property-xid-continue-tests: New file.
26031 * modules/unictype/property-xid-start-tests: New file.
26032 * modules/unictype/property-zero-width-tests: New file.
26033 * modules/unictype/scripts-tests: New file.
26034 * modules/unictype/syntax-c-ident-tests: New file.
26035 * modules/unictype/syntax-c-whitespace-tests: New file.
26036 * modules/unictype/syntax-java-ident-tests: New file.
26037 * modules/unictype/syntax-java-whitespace-tests: New file.
26038 * tests/unictype/test-bidi_byname.c: New file.
26039 * tests/unictype/test-bidi_name.c: New file.
26040 * tests/unictype/test-bidi_of.c: New file.
26041 * tests/unictype/test-bidi_test.c: New file.
26042 * tests/unictype/test-block_list.c: New file.
26043 * tests/unictype/test-block_of.c: New file.
26044 * tests/unictype/test-block_test.c: New file.
26045 * tests/unictype/test-categ_and.c: New file.
26046 * tests/unictype/test-categ_and_not.c: New file.
26047 * tests/unictype/test-categ_byname.c: New file.
26048 * tests/unictype/test-categ_name.c: New file.
26049 * tests/unictype/test-categ_none.c: New file.
26050 * tests/unictype/test-categ_of.c: New file.
26051 * tests/unictype/test-categ_or.c: New file.
26052 * tests/unictype/test-categ_test_withtable.c: New file.
26053 * tests/unictype/test-combining.c: New file.
26054 * tests/unictype/test-decdigit.c: New file.
26055 * tests/unictype/test-digit.c: New file.
26056 * tests/unictype/test-mirror.c: New file.
26057 * tests/unictype/test-numeric.c: New file.
26058 * tests/unictype/test-pr_byname.c: New file.
26059 * tests/unictype/test-pr_test.c: New file.
26060 * tests/unictype/test-predicate-part1.h: New file.
26061 * tests/unictype/test-predicate-part2.h: New file.
26062 * tests/unictype/test-scripts.c: New file.
26063 * tests/unictype/test-sy_c_ident.c: New file.
26064 * tests/unictype/test-sy_java_ident.c: New file.
26066 * tests/unictype/test-categ_C.c: New file, generated by gen-ctype.c
26068 * tests/unictype/test-categ_Cc.c: Likewise.
26069 * tests/unictype/test-categ_Cf.c: Likewise.
26070 * tests/unictype/test-categ_Cn.c: Likewise.
26071 * tests/unictype/test-categ_Co.c: Likewise.
26072 * tests/unictype/test-categ_Cs.c: Likewise.
26073 * tests/unictype/test-categ_L.c: Likewise.
26074 * tests/unictype/test-categ_Ll.c: Likewise.
26075 * tests/unictype/test-categ_Lm.c: Likewise.
26076 * tests/unictype/test-categ_Lo.c: Likewise.
26077 * tests/unictype/test-categ_Lt.c: Likewise.
26078 * tests/unictype/test-categ_Lu.c: Likewise.
26079 * tests/unictype/test-categ_M.c: Likewise.
26080 * tests/unictype/test-categ_Mc.c: Likewise.
26081 * tests/unictype/test-categ_Me.c: Likewise.
26082 * tests/unictype/test-categ_Mn.c: Likewise.
26083 * tests/unictype/test-categ_N.c: Likewise.
26084 * tests/unictype/test-categ_Nd.c: Likewise.
26085 * tests/unictype/test-categ_Nl.c: Likewise.
26086 * tests/unictype/test-categ_No.c: Likewise.
26087 * tests/unictype/test-categ_P.c: Likewise.
26088 * tests/unictype/test-categ_Pc.c: Likewise.
26089 * tests/unictype/test-categ_Pd.c: Likewise.
26090 * tests/unictype/test-categ_Pe.c: Likewise.
26091 * tests/unictype/test-categ_Pf.c: Likewise.
26092 * tests/unictype/test-categ_Pi.c: Likewise.
26093 * tests/unictype/test-categ_Po.c: Likewise.
26094 * tests/unictype/test-categ_Ps.c: Likewise.
26095 * tests/unictype/test-categ_S.c: Likewise.
26096 * tests/unictype/test-categ_Sc.c: Likewise.
26097 * tests/unictype/test-categ_Sk.c: Likewise.
26098 * tests/unictype/test-categ_Sm.c: Likewise.
26099 * tests/unictype/test-categ_So.c: Likewise.
26100 * tests/unictype/test-categ_Z.c: Likewise.
26101 * tests/unictype/test-categ_Zl.c: Likewise.
26102 * tests/unictype/test-categ_Zp.c: Likewise.
26103 * tests/unictype/test-categ_Zs.c: Likewise.
26104 * tests/unictype/test-ctype_alnum.c: Likewise.
26105 * tests/unictype/test-ctype_alpha.c: Likewise.
26106 * tests/unictype/test-ctype_blank.c: Likewise.
26107 * tests/unictype/test-ctype_cntrl.c: Likewise.
26108 * tests/unictype/test-ctype_digit.c: Likewise.
26109 * tests/unictype/test-ctype_graph.c: Likewise.
26110 * tests/unictype/test-ctype_lower.c: Likewise.
26111 * tests/unictype/test-ctype_print.c: Likewise.
26112 * tests/unictype/test-ctype_punct.c: Likewise.
26113 * tests/unictype/test-ctype_space.c: Likewise.
26114 * tests/unictype/test-ctype_upper.c: Likewise.
26115 * tests/unictype/test-ctype_xdigit.c: Likewise.
26116 * tests/unictype/test-decdigit.h: Likewise.
26117 * tests/unictype/test-digit.h: Likewise.
26118 * tests/unictype/test-numeric.h: Likewise.
26119 * tests/unictype/test-pr_alphabetic.c: Likewise.
26120 * tests/unictype/test-pr_ascii_hex_digit.c: Likewise.
26121 * tests/unictype/test-pr_bidi_arabic_digit.c: Likewise.
26122 * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Likewise.
26123 * tests/unictype/test-pr_bidi_block_separator.c: Likewise.
26124 * tests/unictype/test-pr_bidi_boundary_neutral.c: Likewise.
26125 * tests/unictype/test-pr_bidi_common_separator.c: Likewise.
26126 * tests/unictype/test-pr_bidi_control.c: Likewise.
26127 * tests/unictype/test-pr_bidi_embedding_or_override.c: Likewise.
26128 * tests/unictype/test-pr_bidi_eur_num_separator.c: Likewise.
26129 * tests/unictype/test-pr_bidi_eur_num_terminator.c: Likewise.
26130 * tests/unictype/test-pr_bidi_european_digit.c: Likewise.
26131 * tests/unictype/test-pr_bidi_hebrew_right_to_left.c: Likewise.
26132 * tests/unictype/test-pr_bidi_left_to_right.c: Likewise.
26133 * tests/unictype/test-pr_bidi_non_spacing_mark.c: Likewise.
26134 * tests/unictype/test-pr_bidi_other_neutral.c: Likewise.
26135 * tests/unictype/test-pr_bidi_pdf.c: Likewise.
26136 * tests/unictype/test-pr_bidi_segment_separator.c: Likewise.
26137 * tests/unictype/test-pr_bidi_whitespace.c: Likewise.
26138 * tests/unictype/test-pr_combining.c: Likewise.
26139 * tests/unictype/test-pr_composite.c: Likewise.
26140 * tests/unictype/test-pr_currency_symbol.c: Likewise.
26141 * tests/unictype/test-pr_dash.c: Likewise.
26142 * tests/unictype/test-pr_decimal_digit.c: Likewise.
26143 * tests/unictype/test-pr_default_ignorable_code_point.c: Likewise.
26144 * tests/unictype/test-pr_deprecated.c: Likewise.
26145 * tests/unictype/test-pr_diacritic.c: Likewise.
26146 * tests/unictype/test-pr_extender.c: Likewise.
26147 * tests/unictype/test-pr_format_control.c: Likewise.
26148 * tests/unictype/test-pr_grapheme_base.c: Likewise.
26149 * tests/unictype/test-pr_grapheme_extend.c: Likewise.
26150 * tests/unictype/test-pr_grapheme_link.c: Likewise.
26151 * tests/unictype/test-pr_hex_digit.c: Likewise.
26152 * tests/unictype/test-pr_hyphen.c: Likewise.
26153 * tests/unictype/test-pr_id_continue.c: Likewise.
26154 * tests/unictype/test-pr_id_start.c: Likewise.
26155 * tests/unictype/test-pr_ideographic.c: Likewise.
26156 * tests/unictype/test-pr_ids_binary_operator.c: Likewise.
26157 * tests/unictype/test-pr_ids_trinary_operator.c: Likewise.
26158 * tests/unictype/test-pr_ignorable_control.c: Likewise.
26159 * tests/unictype/test-pr_iso_control.c: Likewise.
26160 * tests/unictype/test-pr_join_control.c: Likewise.
26161 * tests/unictype/test-pr_left_of_pair.c: Likewise.
26162 * tests/unictype/test-pr_line_separator.c: Likewise.
26163 * tests/unictype/test-pr_logical_order_exception.c: Likewise.
26164 * tests/unictype/test-pr_lowercase.c: Likewise.
26165 * tests/unictype/test-pr_math.c: Likewise.
26166 * tests/unictype/test-pr_non_break.c: Likewise.
26167 * tests/unictype/test-pr_not_a_character.c: Likewise.
26168 * tests/unictype/test-pr_numeric.c: Likewise.
26169 * tests/unictype/test-pr_other_alphabetic.c: Likewise.
26170 * tests/unictype/test-pr_other_default_ignorable_code_point.c: Likewise.
26171 * tests/unictype/test-pr_other_grapheme_extend.c: Likewise.
26172 * tests/unictype/test-pr_other_id_continue.c: Likewise.
26173 * tests/unictype/test-pr_other_id_start.c: Likewise.
26174 * tests/unictype/test-pr_other_lowercase.c: Likewise.
26175 * tests/unictype/test-pr_other_math.c: Likewise.
26176 * tests/unictype/test-pr_other_uppercase.c: Likewise.
26177 * tests/unictype/test-pr_paired_punctuation.c: Likewise.
26178 * tests/unictype/test-pr_paragraph_separator.c: Likewise.
26179 * tests/unictype/test-pr_pattern_syntax.c: Likewise.
26180 * tests/unictype/test-pr_pattern_white_space.c: Likewise.
26181 * tests/unictype/test-pr_private_use.c: Likewise.
26182 * tests/unictype/test-pr_punctuation.c: Likewise.
26183 * tests/unictype/test-pr_quotation_mark.c: Likewise.
26184 * tests/unictype/test-pr_radical.c: Likewise.
26185 * tests/unictype/test-pr_sentence_terminal.c: Likewise.
26186 * tests/unictype/test-pr_soft_dotted.c: Likewise.
26187 * tests/unictype/test-pr_space.c: Likewise.
26188 * tests/unictype/test-pr_terminal_punctuation.c: Likewise.
26189 * tests/unictype/test-pr_titlecase.c: Likewise.
26190 * tests/unictype/test-pr_unassigned_code_value.c: Likewise.
26191 * tests/unictype/test-pr_unified_ideograph.c: Likewise.
26192 * tests/unictype/test-pr_uppercase.c: Likewise.
26193 * tests/unictype/test-pr_variation_selector.c: Likewise.
26194 * tests/unictype/test-pr_white_space.c: Likewise.
26195 * tests/unictype/test-pr_xid_continue.c: Likewise.
26196 * tests/unictype/test-pr_xid_start.c: Likewise.
26197 * tests/unictype/test-pr_zero_width.c: Likewise.
26198 * tests/unictype/test-sy_c_whitespace.c: Likewise.
26199 * tests/unictype/test-sy_java_whitespace.c: Likewise.
26201 2007-11-12 Bruno Haible <bruno@clisp.org>
26203 Unicode character classification functions.
26204 * lib/unictype.h: New file.
26205 * modules/unictype/base: New file.
26206 * modules/unictype/category-L: New file.
26207 * modules/unictype/category-Lu: New file.
26208 * modules/unictype/category-Ll: New file.
26209 * modules/unictype/category-Lt: New file.
26210 * modules/unictype/category-Lm: New file.
26211 * modules/unictype/category-Lo: New file.
26212 * modules/unictype/category-M: New file.
26213 * modules/unictype/category-Mn: New file.
26214 * modules/unictype/category-Mc: New file.
26215 * modules/unictype/category-Me: New file.
26216 * modules/unictype/category-N: New file.
26217 * modules/unictype/category-Nd: New file.
26218 * modules/unictype/category-Nl: New file.
26219 * modules/unictype/category-No: New file.
26220 * modules/unictype/category-P: New file.
26221 * modules/unictype/category-Pc: New file.
26222 * modules/unictype/category-Pd: New file.
26223 * modules/unictype/category-Ps: New file.
26224 * modules/unictype/category-Pe: New file.
26225 * modules/unictype/category-Pi: New file.
26226 * modules/unictype/category-Pf: New file.
26227 * modules/unictype/category-Po: New file.
26228 * modules/unictype/category-S: New file.
26229 * modules/unictype/category-Sm: New file.
26230 * modules/unictype/category-Sc: New file.
26231 * modules/unictype/category-Sk: New file.
26232 * modules/unictype/category-So: New file.
26233 * modules/unictype/category-Z: New file.
26234 * modules/unictype/category-Zs: New file.
26235 * modules/unictype/category-Zl: New file.
26236 * modules/unictype/category-Zp: New file.
26237 * modules/unictype/category-C: New file.
26238 * modules/unictype/category-Cc: New file.
26239 * modules/unictype/category-Cf: New file.
26240 * modules/unictype/category-Cs: New file.
26241 * modules/unictype/category-Co: New file.
26242 * modules/unictype/category-Cn: New file.
26243 * modules/unictype/category-or: New file.
26244 * modules/unictype/category-of: New file.
26245 * modules/unictype/category-test: New file.
26246 * modules/unictype/category-test-withtable: New file.
26247 * modules/unictype/category-byname: New file.
26248 * modules/unictype/category-none: New file.
26249 * modules/unictype/category-and: New file.
26250 * modules/unictype/category-and-not: New file.
26251 * modules/unictype/category-name: New file.
26252 * modules/unictype/combining-class: New file.
26253 * modules/unictype/category-all: New file.
26254 * modules/unictype/bidicategory-all: New file.
26255 * modules/unictype/bidicategory-byname: New file.
26256 * modules/unictype/bidicategory-name: New file.
26257 * modules/unictype/bidicategory-of: New file.
26258 * modules/unictype/bidicategory-test: New file.
26259 * modules/unictype/decimal-digit: New file.
26260 * modules/unictype/digit: New file.
26261 * modules/unictype/numeric: New file.
26262 * modules/unictype/mirror: New file.
26263 * modules/unictype/property-white-space: New file.
26264 * modules/unictype/property-alphabetic: New file.
26265 * modules/unictype/property-other-alphabetic: New file.
26266 * modules/unictype/property-not-a-character: New file.
26267 * modules/unictype/property-default-ignorable-code-point: New file.
26268 * modules/unictype/property-other-default-ignorable-code-point: New
26270 * modules/unictype/property-deprecated: New file.
26271 * modules/unictype/property-logical-order-exception: New file.
26272 * modules/unictype/property-variation-selector: New file.
26273 * modules/unictype/property-private-use: New file.
26274 * modules/unictype/property-unassigned-code-value: New file.
26275 * modules/unictype/property-uppercase: New file.
26276 * modules/unictype/property-other-uppercase: New file.
26277 * modules/unictype/property-lowercase: New file.
26278 * modules/unictype/property-other-lowercase: New file.
26279 * modules/unictype/property-titlecase: New file.
26280 * modules/unictype/property-soft-dotted: New file.
26281 * modules/unictype/property-id-start: New file.
26282 * modules/unictype/property-other-id-start: New file.
26283 * modules/unictype/property-id-continue: New file.
26284 * modules/unictype/property-other-id-continue: New file.
26285 * modules/unictype/property-xid-start: New file.
26286 * modules/unictype/property-xid-continue: New file.
26287 * modules/unictype/property-pattern-white-space: New file.
26288 * modules/unictype/property-pattern-syntax: New file.
26289 * modules/unictype/property-join-control: New file.
26290 * modules/unictype/property-grapheme-base: New file.
26291 * modules/unictype/property-grapheme-extend: New file.
26292 * modules/unictype/property-other-grapheme-extend: New file.
26293 * modules/unictype/property-grapheme-link: New file.
26294 * modules/unictype/property-bidi-control: New file.
26295 * modules/unictype/property-bidi-left-to-right: New file.
26296 * modules/unictype/property-bidi-hebrew-right-to-left: New file.
26297 * modules/unictype/property-bidi-arabic-right-to-left: New file.
26298 * modules/unictype/property-bidi-european-digit: New file.
26299 * modules/unictype/property-bidi-eur-num-separator: New file.
26300 * modules/unictype/property-bidi-eur-num-terminator: New file.
26301 * modules/unictype/property-bidi-arabic-digit: New file.
26302 * modules/unictype/property-bidi-common-separator: New file.
26303 * modules/unictype/property-bidi-block-separator: New file.
26304 * modules/unictype/property-bidi-segment-separator: New file.
26305 * modules/unictype/property-bidi-whitespace: New file.
26306 * modules/unictype/property-bidi-non-spacing-mark: New file.
26307 * modules/unictype/property-bidi-boundary-neutral: New file.
26308 * modules/unictype/property-bidi-pdf: New file.
26309 * modules/unictype/property-bidi-embedding-or-override: New file.
26310 * modules/unictype/property-bidi-other-neutral: New file.
26311 * modules/unictype/property-hex-digit: New file.
26312 * modules/unictype/property-ascii-hex-digit: New file.
26313 * modules/unictype/property-ideographic: New file.
26314 * modules/unictype/property-unified-ideograph: New file.
26315 * modules/unictype/property-radical: New file.
26316 * modules/unictype/property-ids-binary-operator: New file.
26317 * modules/unictype/property-ids-trinary-operator: New file.
26318 * modules/unictype/property-zero-width: New file.
26319 * modules/unictype/property-space: New file.
26320 * modules/unictype/property-non-break: New file.
26321 * modules/unictype/property-iso-control: New file.
26322 * modules/unictype/property-format-control: New file.
26323 * modules/unictype/property-dash: New file.
26324 * modules/unictype/property-hyphen: New file.
26325 * modules/unictype/property-punctuation: New file.
26326 * modules/unictype/property-line-separator: New file.
26327 * modules/unictype/property-paragraph-separator: New file.
26328 * modules/unictype/property-quotation-mark: New file.
26329 * modules/unictype/property-sentence-terminal: New file.
26330 * modules/unictype/property-terminal-punctuation: New file.
26331 * modules/unictype/property-currency-symbol: New file.
26332 * modules/unictype/property-math: New file.
26333 * modules/unictype/property-other-math: New file.
26334 * modules/unictype/property-paired-punctuation: New file.
26335 * modules/unictype/property-left-of-pair: New file.
26336 * modules/unictype/property-combining: New file.
26337 * modules/unictype/property-composite: New file.
26338 * modules/unictype/property-decimal-digit: New file.
26339 * modules/unictype/property-numeric: New file.
26340 * modules/unictype/property-diacritic: New file.
26341 * modules/unictype/property-extender: New file.
26342 * modules/unictype/property-ignorable-control: New file.
26343 * modules/unictype/property-test: New file.
26344 * modules/unictype/property-byname: New file.
26345 * modules/unictype/property-all: New file.
26346 * modules/unictype/scripts: New file.
26347 * modules/unictype/scripts-all: New file.
26348 * modules/unictype/block-of: New file.
26349 * modules/unictype/block-test: New file.
26350 * modules/unictype/block-list: New file.
26351 * modules/unictype/block-all: New file.
26352 * modules/unictype/syntax-c-whitespace: New file.
26353 * modules/unictype/syntax-java-whitespace: New file.
26354 * modules/unictype/syntax-c-ident: New file.
26355 * modules/unictype/syntax-java-ident: New file.
26356 * modules/unictype/ctype-alnum: New file.
26357 * modules/unictype/ctype-alpha: New file.
26358 * modules/unictype/ctype-cntrl: New file.
26359 * modules/unictype/ctype-digit: New file.
26360 * modules/unictype/ctype-graph: New file.
26361 * modules/unictype/ctype-lower: New file.
26362 * modules/unictype/ctype-print: New file.
26363 * modules/unictype/ctype-punct: New file.
26364 * modules/unictype/ctype-space: New file.
26365 * modules/unictype/ctype-upper: New file.
26366 * modules/unictype/ctype-xdigit: New file.
26367 * modules/unictype/ctype-blank: New file.
26368 * lib/unictype/bidi_byname.c: New file.
26369 * lib/unictype/bidi_name.c: New file.
26370 * lib/unictype/bidi_of.c: New file.
26371 * lib/unictype/bidi_test.c: New file.
26372 * lib/unictype/bitmap.h: New file.
26373 * lib/unictype/block_test.c: New file.
26374 * lib/unictype/blocks.c: New file.
26375 * lib/unictype/categ_C.c: New file.
26376 * lib/unictype/categ_Cc.c: New file.
26377 * lib/unictype/categ_Cf.c: New file.
26378 * lib/unictype/categ_Cn.c: New file.
26379 * lib/unictype/categ_Co.c: New file.
26380 * lib/unictype/categ_Cs.c: New file.
26381 * lib/unictype/categ_L.c: New file.
26382 * lib/unictype/categ_Ll.c: New file.
26383 * lib/unictype/categ_Lm.c: New file.
26384 * lib/unictype/categ_Lo.c: New file.
26385 * lib/unictype/categ_Lt.c: New file.
26386 * lib/unictype/categ_Lu.c: New file.
26387 * lib/unictype/categ_M.c: New file.
26388 * lib/unictype/categ_Mc.c: New file.
26389 * lib/unictype/categ_Me.c: New file.
26390 * lib/unictype/categ_Mn.c: New file.
26391 * lib/unictype/categ_N.c: New file.
26392 * lib/unictype/categ_Nd.c: New file.
26393 * lib/unictype/categ_Nl.c: New file.
26394 * lib/unictype/categ_No.c: New file.
26395 * lib/unictype/categ_P.c: New file.
26396 * lib/unictype/categ_Pc.c: New file.
26397 * lib/unictype/categ_Pd.c: New file.
26398 * lib/unictype/categ_Pe.c: New file.
26399 * lib/unictype/categ_Pf.c: New file.
26400 * lib/unictype/categ_Pi.c: New file.
26401 * lib/unictype/categ_Po.c: New file.
26402 * lib/unictype/categ_Ps.c: New file.
26403 * lib/unictype/categ_S.c: New file.
26404 * lib/unictype/categ_Sc.c: New file.
26405 * lib/unictype/categ_Sk.c: New file.
26406 * lib/unictype/categ_Sm.c: New file.
26407 * lib/unictype/categ_So.c: New file.
26408 * lib/unictype/categ_Z.c: New file.
26409 * lib/unictype/categ_Zl.c: New file.
26410 * lib/unictype/categ_Zp.c: New file.
26411 * lib/unictype/categ_Zs.c: New file.
26412 * lib/unictype/categ_and.c: New file.
26413 * lib/unictype/categ_and_not.c: New file.
26414 * lib/unictype/categ_byname.c: New file.
26415 * lib/unictype/categ_name.c: New file.
26416 * lib/unictype/categ_none.c: New file.
26417 * lib/unictype/categ_of.c: New file.
26418 * lib/unictype/categ_or.c: New file.
26419 * lib/unictype/categ_test.c: New file.
26420 * lib/unictype/combining.c: New file.
26421 * lib/unictype/ctype_alnum.c: New file.
26422 * lib/unictype/ctype_alpha.c: New file.
26423 * lib/unictype/ctype_blank.c: New file.
26424 * lib/unictype/ctype_cntrl.c: New file.
26425 * lib/unictype/ctype_digit.c: New file.
26426 * lib/unictype/ctype_graph.c: New file.
26427 * lib/unictype/ctype_lower.c: New file.
26428 * lib/unictype/ctype_print.c: New file.
26429 * lib/unictype/ctype_punct.c: New file.
26430 * lib/unictype/ctype_space.c: New file.
26431 * lib/unictype/ctype_upper.c: New file.
26432 * lib/unictype/ctype_xdigit.c: New file.
26433 * lib/unictype/decdigit.c: New file.
26434 * lib/unictype/digit.c: New file.
26435 * lib/unictype/identsyntaxmap.h: New file.
26436 * lib/unictype/mirror.c: New file.
26437 * lib/unictype/numeric.c: New file.
26438 * lib/unictype/pr_alphabetic.c: New file.
26439 * lib/unictype/pr_ascii_hex_digit.c: New file.
26440 * lib/unictype/pr_bidi_arabic_digit.c: New file.
26441 * lib/unictype/pr_bidi_arabic_right_to_left.c: New file.
26442 * lib/unictype/pr_bidi_block_separator.c: New file.
26443 * lib/unictype/pr_bidi_boundary_neutral.c: New file.
26444 * lib/unictype/pr_bidi_common_separator.c: New file.
26445 * lib/unictype/pr_bidi_control.c: New file.
26446 * lib/unictype/pr_bidi_embedding_or_override.c: New file.
26447 * lib/unictype/pr_bidi_eur_num_separator.c: New file.
26448 * lib/unictype/pr_bidi_eur_num_terminator.c: New file.
26449 * lib/unictype/pr_bidi_european_digit.c: New file.
26450 * lib/unictype/pr_bidi_hebrew_right_to_left.c: New file.
26451 * lib/unictype/pr_bidi_left_to_right.c: New file.
26452 * lib/unictype/pr_bidi_non_spacing_mark.c: New file.
26453 * lib/unictype/pr_bidi_other_neutral.c: New file.
26454 * lib/unictype/pr_bidi_pdf.c: New file.
26455 * lib/unictype/pr_bidi_segment_separator.c: New file.
26456 * lib/unictype/pr_bidi_whitespace.c: New file.
26457 * lib/unictype/pr_byname.c: New file.
26458 * lib/unictype/pr_byname.gperf: New file.
26459 * lib/unictype/pr_combining.c: New file.
26460 * lib/unictype/pr_composite.c: New file.
26461 * lib/unictype/pr_currency_symbol.c: New file.
26462 * lib/unictype/pr_dash.c: New file.
26463 * lib/unictype/pr_decimal_digit.c: New file.
26464 * lib/unictype/pr_default_ignorable_code_point.c: New file.
26465 * lib/unictype/pr_deprecated.c: New file.
26466 * lib/unictype/pr_diacritic.c: New file.
26467 * lib/unictype/pr_extender.c: New file.
26468 * lib/unictype/pr_format_control.c: New file.
26469 * lib/unictype/pr_grapheme_base.c: New file.
26470 * lib/unictype/pr_grapheme_extend.c: New file.
26471 * lib/unictype/pr_grapheme_link.c: New file.
26472 * lib/unictype/pr_hex_digit.c: New file.
26473 * lib/unictype/pr_hyphen.c: New file.
26474 * lib/unictype/pr_id_continue.c: New file.
26475 * lib/unictype/pr_id_start.c: New file.
26476 * lib/unictype/pr_ideographic.c: New file.
26477 * lib/unictype/pr_ids_binary_operator.c: New file.
26478 * lib/unictype/pr_ids_trinary_operator.c: New file.
26479 * lib/unictype/pr_ignorable_control.c: New file.
26480 * lib/unictype/pr_iso_control.c: New file.
26481 * lib/unictype/pr_join_control.c: New file.
26482 * lib/unictype/pr_left_of_pair.c: New file.
26483 * lib/unictype/pr_line_separator.c: New file.
26484 * lib/unictype/pr_logical_order_exception.c: New file.
26485 * lib/unictype/pr_lowercase.c: New file.
26486 * lib/unictype/pr_math.c: New file.
26487 * lib/unictype/pr_non_break.c: New file.
26488 * lib/unictype/pr_not_a_character.c: New file.
26489 * lib/unictype/pr_numeric.c: New file.
26490 * lib/unictype/pr_other_alphabetic.c: New file.
26491 * lib/unictype/pr_other_default_ignorable_code_point.c: New file.
26492 * lib/unictype/pr_other_grapheme_extend.c: New file.
26493 * lib/unictype/pr_other_id_continue.c: New file.
26494 * lib/unictype/pr_other_id_start.c: New file.
26495 * lib/unictype/pr_other_lowercase.c: New file.
26496 * lib/unictype/pr_other_math.c: New file.
26497 * lib/unictype/pr_other_uppercase.c: New file.
26498 * lib/unictype/pr_paired_punctuation.c: New file.
26499 * lib/unictype/pr_paragraph_separator.c: New file.
26500 * lib/unictype/pr_pattern_syntax.c: New file.
26501 * lib/unictype/pr_pattern_white_space.c: New file.
26502 * lib/unictype/pr_private_use.c: New file.
26503 * lib/unictype/pr_punctuation.c: New file.
26504 * lib/unictype/pr_quotation_mark.c: New file.
26505 * lib/unictype/pr_radical.c: New file.
26506 * lib/unictype/pr_sentence_terminal.c: New file.
26507 * lib/unictype/pr_soft_dotted.c: New file.
26508 * lib/unictype/pr_space.c: New file.
26509 * lib/unictype/pr_terminal_punctuation.c: New file.
26510 * lib/unictype/pr_test.c: New file.
26511 * lib/unictype/pr_titlecase.c: New file.
26512 * lib/unictype/pr_unassigned_code_value.c: New file.
26513 * lib/unictype/pr_unified_ideograph.c: New file.
26514 * lib/unictype/pr_uppercase.c: New file.
26515 * lib/unictype/pr_variation_selector.c: New file.
26516 * lib/unictype/pr_white_space.c: New file.
26517 * lib/unictype/pr_xid_continue.c: New file.
26518 * lib/unictype/pr_xid_start.c: New file.
26519 * lib/unictype/pr_zero_width.c: New file.
26520 * lib/unictype/scripts.c: New file.
26521 * lib/unictype/sy_c_ident.c: New file.
26522 * lib/unictype/sy_c_whitespace.c: New file.
26523 * lib/unictype/sy_java_ident.c: New file.
26524 * lib/unictype/sy_java_whitespace.c: New file.
26526 * lib/unictype/bidi_of.h: New file, generated by gen-ctype.c for
26528 * lib/unictype/blocks.h: Likewise.
26529 * lib/unictype/categ_C.h: Likewise.
26530 * lib/unictype/categ_Cc.h: Likewise.
26531 * lib/unictype/categ_Cf.h: Likewise.
26532 * lib/unictype/categ_Cn.h: Likewise.
26533 * lib/unictype/categ_Co.h: Likewise.
26534 * lib/unictype/categ_Cs.h: Likewise.
26535 * lib/unictype/categ_L.h: Likewise.
26536 * lib/unictype/categ_Ll.h: Likewise.
26537 * lib/unictype/categ_Lm.h: Likewise.
26538 * lib/unictype/categ_Lo.h: Likewise.
26539 * lib/unictype/categ_Lt.h: Likewise.
26540 * lib/unictype/categ_Lu.h: Likewise.
26541 * lib/unictype/categ_M.h: Likewise.
26542 * lib/unictype/categ_Mc.h: Likewise.
26543 * lib/unictype/categ_Me.h: Likewise.
26544 * lib/unictype/categ_Mn.h: Likewise.
26545 * lib/unictype/categ_N.h: Likewise.
26546 * lib/unictype/categ_Nd.h: Likewise.
26547 * lib/unictype/categ_Nl.h: Likewise.
26548 * lib/unictype/categ_No.h: Likewise.
26549 * lib/unictype/categ_P.h: Likewise.
26550 * lib/unictype/categ_Pc.h: Likewise.
26551 * lib/unictype/categ_Pd.h: Likewise.
26552 * lib/unictype/categ_Pe.h: Likewise.
26553 * lib/unictype/categ_Pf.h: Likewise.
26554 * lib/unictype/categ_Pi.h: Likewise.
26555 * lib/unictype/categ_Po.h: Likewise.
26556 * lib/unictype/categ_Ps.h: Likewise.
26557 * lib/unictype/categ_S.h: Likewise.
26558 * lib/unictype/categ_Sc.h: Likewise.
26559 * lib/unictype/categ_Sk.h: Likewise.
26560 * lib/unictype/categ_Sm.h: Likewise.
26561 * lib/unictype/categ_So.h: Likewise.
26562 * lib/unictype/categ_Z.h: Likewise.
26563 * lib/unictype/categ_Zl.h: Likewise.
26564 * lib/unictype/categ_Zp.h: Likewise.
26565 * lib/unictype/categ_Zs.h: Likewise.
26566 * lib/unictype/categ_of.h: Likewise.
26567 * lib/unictype/combining.h: Likewise.
26568 * lib/unictype/ctype_alnum.h: Likewise.
26569 * lib/unictype/ctype_alpha.h: Likewise.
26570 * lib/unictype/ctype_blank.h: Likewise.
26571 * lib/unictype/ctype_cntrl.h: Likewise.
26572 * lib/unictype/ctype_digit.h: Likewise.
26573 * lib/unictype/ctype_graph.h: Likewise.
26574 * lib/unictype/ctype_lower.h: Likewise.
26575 * lib/unictype/ctype_print.h: Likewise.
26576 * lib/unictype/ctype_punct.h: Likewise.
26577 * lib/unictype/ctype_space.h: Likewise.
26578 * lib/unictype/ctype_upper.h: Likewise.
26579 * lib/unictype/ctype_xdigit.h: Likewise.
26580 * lib/unictype/decdigit.h: Likewise.
26581 * lib/unictype/digit.h: Likewise.
26582 * lib/unictype/mirror.h: Likewise.
26583 * lib/unictype/numeric.h: Likewise.
26584 * lib/unictype/pr_alphabetic.h: Likewise.
26585 * lib/unictype/pr_ascii_hex_digit.h: Likewise.
26586 * lib/unictype/pr_bidi_arabic_digit.h: Likewise.
26587 * lib/unictype/pr_bidi_arabic_right_to_left.h: Likewise.
26588 * lib/unictype/pr_bidi_block_separator.h: Likewise.
26589 * lib/unictype/pr_bidi_boundary_neutral.h: Likewise.
26590 * lib/unictype/pr_bidi_common_separator.h: Likewise.
26591 * lib/unictype/pr_bidi_control.h: Likewise.
26592 * lib/unictype/pr_bidi_embedding_or_override.h: Likewise.
26593 * lib/unictype/pr_bidi_eur_num_separator.h: Likewise.
26594 * lib/unictype/pr_bidi_eur_num_terminator.h: Likewise.
26595 * lib/unictype/pr_bidi_european_digit.h: Likewise.
26596 * lib/unictype/pr_bidi_hebrew_right_to_left.h: Likewise.
26597 * lib/unictype/pr_bidi_left_to_right.h: Likewise.
26598 * lib/unictype/pr_bidi_non_spacing_mark.h: Likewise.
26599 * lib/unictype/pr_bidi_other_neutral.h: Likewise.
26600 * lib/unictype/pr_bidi_pdf.h: Likewise.
26601 * lib/unictype/pr_bidi_segment_separator.h: Likewise.
26602 * lib/unictype/pr_bidi_whitespace.h: Likewise.
26603 * lib/unictype/pr_combining.h: Likewise.
26604 * lib/unictype/pr_composite.h: Likewise.
26605 * lib/unictype/pr_currency_symbol.h: Likewise.
26606 * lib/unictype/pr_dash.h: Likewise.
26607 * lib/unictype/pr_decimal_digit.h: Likewise.
26608 * lib/unictype/pr_default_ignorable_code_point.h: Likewise.
26609 * lib/unictype/pr_deprecated.h: Likewise.
26610 * lib/unictype/pr_diacritic.h: Likewise.
26611 * lib/unictype/pr_extender.h: Likewise.
26612 * lib/unictype/pr_format_control.h: Likewise.
26613 * lib/unictype/pr_grapheme_base.h: Likewise.
26614 * lib/unictype/pr_grapheme_extend.h: Likewise.
26615 * lib/unictype/pr_grapheme_link.h: Likewise.
26616 * lib/unictype/pr_hex_digit.h: Likewise.
26617 * lib/unictype/pr_hyphen.h: Likewise.
26618 * lib/unictype/pr_id_continue.h: Likewise.
26619 * lib/unictype/pr_id_start.h: Likewise.
26620 * lib/unictype/pr_ideographic.h: Likewise.
26621 * lib/unictype/pr_ids_binary_operator.h: Likewise.
26622 * lib/unictype/pr_ids_trinary_operator.h: Likewise.
26623 * lib/unictype/pr_ignorable_control.h: Likewise.
26624 * lib/unictype/pr_iso_control.h: Likewise.
26625 * lib/unictype/pr_join_control.h: Likewise.
26626 * lib/unictype/pr_left_of_pair.h: Likewise.
26627 * lib/unictype/pr_line_separator.h: Likewise.
26628 * lib/unictype/pr_logical_order_exception.h: Likewise.
26629 * lib/unictype/pr_lowercase.h: Likewise.
26630 * lib/unictype/pr_math.h: Likewise.
26631 * lib/unictype/pr_non_break.h: Likewise.
26632 * lib/unictype/pr_not_a_character.h: Likewise.
26633 * lib/unictype/pr_numeric.h: Likewise.
26634 * lib/unictype/pr_other_alphabetic.h: Likewise.
26635 * lib/unictype/pr_other_default_ignorable_code_point.h: Likewise.
26636 * lib/unictype/pr_other_grapheme_extend.h: Likewise.
26637 * lib/unictype/pr_other_id_continue.h: Likewise.
26638 * lib/unictype/pr_other_id_start.h: Likewise.
26639 * lib/unictype/pr_other_lowercase.h: Likewise.
26640 * lib/unictype/pr_other_math.h: Likewise.
26641 * lib/unictype/pr_other_uppercase.h: Likewise.
26642 * lib/unictype/pr_paired_punctuation.h: Likewise.
26643 * lib/unictype/pr_paragraph_separator.h: Likewise.
26644 * lib/unictype/pr_pattern_syntax.h: Likewise.
26645 * lib/unictype/pr_pattern_white_space.h: Likewise.
26646 * lib/unictype/pr_private_use.h: Likewise.
26647 * lib/unictype/pr_punctuation.h: Likewise.
26648 * lib/unictype/pr_quotation_mark.h: Likewise.
26649 * lib/unictype/pr_radical.h: Likewise.
26650 * lib/unictype/pr_sentence_terminal.h: Likewise.
26651 * lib/unictype/pr_soft_dotted.h: Likewise.
26652 * lib/unictype/pr_space.h: Likewise.
26653 * lib/unictype/pr_terminal_punctuation.h: Likewise.
26654 * lib/unictype/pr_titlecase.h: Likewise.
26655 * lib/unictype/pr_unassigned_code_value.h: Likewise.
26656 * lib/unictype/pr_unified_ideograph.h: Likewise.
26657 * lib/unictype/pr_uppercase.h: Likewise.
26658 * lib/unictype/pr_variation_selector.h: Likewise.
26659 * lib/unictype/pr_white_space.h: Likewise.
26660 * lib/unictype/pr_xid_continue.h: Likewise.
26661 * lib/unictype/pr_xid_start.h: Likewise.
26662 * lib/unictype/pr_zero_width.h: Likewise.
26663 * lib/unictype/scripts.h: Likewise.
26664 * lib/unictype/scripts_byname.gperf: Likewise.
26665 * lib/unictype/sy_c_ident.h: Likewise.
26666 * lib/unictype/sy_c_whitespace.h: Likewise.
26667 * lib/unictype/sy_java_ident.h: Likewise.
26668 * lib/unictype/sy_java_whitespace.h: Likewise.
26670 * lib/unictype/Makefile: New file.
26671 * lib/unictype/gen-ctype.c: New file, based on gen-unicode-ctype.c in
26673 * lib/unictype/3level.h: New file, copied from glibc.
26674 * lib/unictype/3levelbit.h: New file.
26676 2007-11-11 Bruno Haible <bruno@clisp.org>
26678 * modules/gperf: New file.
26679 * modules/iconv_open (Depends-on): Add it.
26680 (Makefile.am): Remove the GPERF definition.
26682 2007-11-11 Bruno Haible <bruno@clisp.org>
26684 * m4/round.m4 (gl_FUNC_ROUND): Test against NetBSD 3.0 bug.
26685 * doc/functions/round.texi: Mention the NetBSD 3.0 bug.
26687 2007-11-11 Bruno Haible <bruno@clisp.org>
26689 * tests/test-argmatch.c (ARGMATCH_DIE): Undefine.
26690 (usage): Remove function.
26692 2007-11-11 Bruno Haible <bruno@clisp.org>
26694 * m4/roundf.m4 (gl_FUNC_ROUNDF): Use gl_FUNC_FLOORF_LIBS and
26695 gl_FUNC_CEILF_LIBS.
26696 * m4/round.m4 (gl_FUNC_ROUND): Use gl_FUNC_FLOOR_LIBS and
26698 * m4/roundl.m4 (gl_FUNC_ROUNDL): Use gl_FUNC_FLOORL_LIBS and
26699 gl_FUNC_CEILL_LIBS.
26700 * modules/roundf (Files): Add m4/floorf.m4, m4/ceilf.m4.
26701 * modules/round (Files): Add m4/floor.m4, m4/ceil.m4.
26702 * modules/roundl (Files): Add m4/floorl.m4, m4/ceill.m4.
26704 2007-11-11 Bruno Haible <bruno@clisp.org>
26706 * m4/roundf.m4 (gl_FUNC_ROUNDF): Handle the case that floorf and
26707 roundf were declared but do not exist on functions.
26708 * m4/roundl.m4 (gl_FUNC_ROUNDL): Handle the case that floorl and
26709 roundl were declared but do not exist on functions.
26710 * lib/round.c (HAVE_FLOOR_AND_CEIL): Use HAVE_FLOORF_AND_CEILF and
26711 HAVE_FLOORL_AND_CEILL, respectively.
26712 Needed for Sun C on Solaris 10.
26714 2007-11-11 Bruno Haible <bruno@clisp.org>
26716 * m4/roundf.m4 (gl_FUNC_ROUNDF): Set REPLACE_ROUNDF instead of
26717 HAVE_DECL_ROUNDF. Remove redundant AC_SUBST.
26718 * m4/round.m4 (gl_FUNC_ROUND): Set REPLACE_ROUND instead of
26719 HAVE_DECL_ROUND. Remove redundant AC_SUBST.
26720 * m4/roundl.m4 (gl_FUNC_ROUNDL): Set REPLACE_ROUNDL instead of
26721 HAVE_DECL_ROUNDL. Remove redundant AC_SUBST.
26722 * lib/math.in.h (roundf): Use REPLACE_ROUNDF instead of
26724 (round): Use REPLACE_ROUND instead of HAVE_DECL_ROUND.
26725 (roundl): Use REPLACE_ROUNDL instead of HAVE_DECL_ROUNDL.
26726 * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_ROUND* instead
26727 of HAVE_DECL_ROUND*.
26728 * modules/math (Makefile.am): Update.
26730 2007-11-10 Bruno Haible <bruno@clisp.org>
26732 * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Use same check for
26733 ptrdiff_t as m4/intl.m4.
26735 2007-11-10 Jim Meyering <meyering@redhat.com>
26737 Avoid link failure for the argmatch test.
26738 * tests/test-argmatch.c (usage): Define function to avoid a link
26739 failure: argmatch_die requires a usage function.
26741 2007-11-09 Bruno Haible <bruno@clisp.org>
26743 * doc/functions/snprintf.texi: Mention BeOS deficiency.
26744 * doc/functions/vsnprintf.texi: Likewise.
26745 * lib/vasnprintf.c (VASNPRINTF): Ensure that we never call snprintf
26746 with a size argument < 2.
26748 2007-11-09 Bruno Haible <bruno@clisp.org>
26750 * lib/vasnprintf.c (VASNPRINTF): Increase reallocation of snprintf
26751 buffer. Fixes an inefficiency introduced on 2007-11-03.
26753 2007-11-09 Bruno Haible <bruno@clisp.org>
26755 * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8) [BeOS]: Make this test return
26756 none instead of tr_TR. Fixes a failure of test-c-strcasecmp.c.
26758 2007-11-08 Jim Meyering <meyering@redhat.com>
26760 Change cache variable name prefix "jm_" to "gl_" everywhere.
26761 * m4/d-type.m4, m4/jm-winsz1.m4, m4/jm-winsz2.m4, m4/link-follow.m4:
26762 * m4/putenv.m4, m4/strtoimax.m4, m4/strtoumax.m4, m4/unlink-busy.m4:
26763 * m4/uptime.m4: s/gl_/jm_/
26765 2007-11-07 Bruno Haible <bruno@clisp.org>
26767 Update to GNU gettext 0.17.
26768 * m4/intl.m4: Update to GNU gettext 0.17.
26769 * m4/po.m4: Likewise.
26770 * modules/gettext (Files): Remove m4/ulonglong.m4.
26771 (configure.ac): Require gettext infrastructure from version 0.17.
26773 2007-11-06 Bruno Haible <bruno@clisp.org>
26775 * lib/fbufmode.c (fbufmode) [QNX]: Use numerical values for flags; the
26776 symbolic values are not defined in a public header.
26777 * lib/freadable.c (freadable) [QNX]: Likewise.
26778 * lib/freadahead.c (freadahead) [QNX]: Likewise.
26779 * lib/freading.c (freading) [QNX]: Likewise.
26780 * lib/fseterr.c (fseterr) [QNX]: Likewise.
26781 * lib/fwritable.c (fwritable) [QNX]: Likewise.
26782 * lib/fwriting.c (fwriting) [QNX]: Likewise.
26783 * lib/fpurge.c (fpurge) [QNX]: Likewise. Add a return statement.
26784 Reported by Alain Magloire.
26786 * m4/fpending.m4 (gl_FUNC_FPENDING): Add a variant for QNX.
26788 2007-11-05 Bruno Haible <bruno@clisp.org>
26790 * lib/vasnprintf.c (VASNPRINTF): Expand the NEED_PRINTF_DIRECTIVE_A
26791 code when NEED_PRINTF_LONG_DOUBLE or NEED_PRINTF_DOUBLE is set.
26792 Needed on Cygwin, where !NEED_PRINTF_DIRECTIVE_A && NEED_PRINTF_DOUBLE.
26793 Reported by Eric Blake.
26795 2007-10-27 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
26796 Bruno Haible <bruno@clisp.org>
26798 * modules/malloc (configure.ac): Define GNULIB_MALLOC_GNU always.
26799 * modules/realloc (configure.ac): Define GNULIB_REALLOC_GNU always.
26800 * lib/realloc.c (SYSTEM_MALLOC_GLIBC_COMPATIBLE): New macro.
26801 (malloc): Undefine also before including <stdlib.h>.
26802 (rpl_realloc): Turn malloc(0) into malloc(1) if necessary.
26803 Needed on OSF/1 4.0.
26805 2007-11-05 Jim Meyering <meyering@redhat.com>
26807 git-version-gen: sync from coreutils.
26808 * build-aux/git-version-gen: Add comments.
26809 Change the first '-' to '.' in the snapshot version string,
26810 e.g., 6.9-377-08144 -> 6.9.377-08144
26811 Remove first parameter.
26812 Don't declare a version "-dirty" merely because a time
26815 2007-11-04 Bruno Haible <bruno@clisp.org>
26817 * lib/lock.h: Protect all macro definitions containing an 'if'
26818 statement through a "do { ... } while (0)".
26819 * lib/tls.h: Likewise.
26821 2007-11-04 Bruno Haible <bruno@clisp.org>
26823 * lib/vasnprintf.c (DCHAR_IS_TCHAR, DCHAR_CPY): Undefine at the end.
26825 2007-11-04 Bruno Haible <bruno@clisp.org>
26827 * m4/printf.m4 (gl_PRINTF_ENOMEM): Use GL_NOCRASH.
26828 * modules/fprintf-posix (Depends-on): Add nocrash.
26829 * modules/snprintf-posix (Depends-on): Likewise.
26830 * modules/sprintf-posix (Depends-on): Likewise.
26831 * modules/vasnprintf-posix (Depends-on): Likewise.
26832 * modules/vasprintf-posix (Depends-on): Likewise.
26833 * modules/vfprintf-posix (Depends-on): Likewise.
26834 * modules/vsnprintf-posix (Depends-on): Likewise.
26835 * modules/vsprintf-posix (Depends-on): Likewise.
26836 * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
26837 * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
26838 * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
26839 * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
26840 * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
26841 * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
26842 * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
26844 2007-11-04 Bruno Haible <bruno@clisp.org>
26846 * modules/nocrash: New file.
26847 * m4/nocrash.m4: New file, taken from GNU clisp. Code taken from
26848 GNU libsigsegv, with permission of GNU libsigsegv's copyright holders.
26850 2007-11-04 Bruno Haible <bruno@clisp.org>
26852 * tests/test-vasnprintf-posix.c (test_function): Add some tests of
26853 precision handling.
26854 * tests/test-vasprintf-posix.c (test_function): Likewise.
26855 * tests/test-snprintf-posix.h (test_function): Likewise.
26856 * tests/test-sprintf-posix.h (test_function): Likewise.
26858 Fix *printf behaviour for large precisions on mingw and BeOS.
26859 * m4/printf.m4 (gl_PRINTF_PRECISION): New macro.
26860 * lib/vasnprintf.c (VASNPRINTF): Handle NEED_PRINTF_UNBOUNDED_PRECISION.
26861 * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_PRECISION): New macro.
26862 (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
26863 * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
26864 gl_PRINTF_PRECISION and test its result. Invoke
26865 gl_PREREQ_VASNPRINTF_PRECISION.
26866 * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
26867 * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
26868 * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
26869 * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
26870 * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
26871 * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
26872 * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
26873 * doc/functions/fprintf.texi: Update.
26874 * doc/functions/printf.texi: Update.
26875 * doc/functions/snprintf.texi: Update.
26876 * doc/functions/sprintf.texi: Update.
26877 * doc/functions/vfprintf.texi: Update.
26878 * doc/functions/vprintf.texi: Update.
26879 * doc/functions/vsnprintf.texi: Update.
26880 * doc/functions/vsprintf.texi: Update.
26882 2007-11-04 Bruno Haible <bruno@clisp.org>
26884 * lib/vasnprintf.c (scale10_round_decimal_decoded): Fix shift loop.
26886 2007-11-04 Bruno Haible <bruno@clisp.org>
26888 * modules/relocatable-prog (Files): Add m4/lib-ld.m4.
26889 Reported by Sylvain Beucler <beuc@gnu.org>.
26891 2007-11-03 Bruno Haible <bruno@clisp.org>
26893 * tests/test-fprintf-posix2.sh: New file.
26894 * tests/test-fprintf-posix2.c: New file.
26895 * modules/fprintf-posix-tests (Files): Add them.
26896 (TESTS): Add test-fprintf-posix2.sh.
26897 (configure.ac): Check for getrlimit and setrlimit.
26898 (check_PROGRAMS): Add test-fprintf-posix2.
26900 * tests/test-printf-posix2.sh: New file.
26901 * tests/test-printf-posix2.c: New file.
26902 * modules/printf-posix-tests (Files): Add them.
26903 (TESTS): Add test-printf-posix2.sh.
26904 (configure.ac): Check for getrlimit and setrlimit.
26905 (check_PROGRAMS): Add test-printf-posix2.
26907 Fix *printf behaviour in out-of-memory situations on MacOS X and *BSD.
26908 * m4/printf.m4 (gl_PRINTF_ENOMEM): New macro.
26909 * lib/vasnprintf.c: Implement NEED_PRINTF_DOUBLE.
26910 (decode_double): New function, copied from decode_long_double.
26911 (scale10_round_decimal_decoded): New function, extracted from
26912 scale10_round_decimal_long_double.
26913 (scale10_round_decimal_long_double): Use it.
26914 (scale10_round_decimal_double): New function.
26915 (floorlog10): New function.
26916 (VASNPRINTF): Handle NEED_PRINTF_DOUBLE case.
26917 * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_ENOMEM): New macro.
26918 (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
26919 * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
26920 gl_PRINTF_ENOMEM and test its result. Invoke
26921 gl_PREREQ_VASNPRINTF_ENOMEM.
26922 * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
26923 * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
26924 * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
26925 * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
26926 * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
26927 * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
26928 * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
26929 * modules/fprintf-posix (Depends-on): Add frexp-nolibm.
26930 * modules/snprintf-posix (Depends-on): Likewise.
26931 * modules/sprintf-posix (Depends-on): Likewise.
26932 * modules/vasnprintf-posix (Depends-on): Likewise.
26933 * modules/vasprintf-posix (Depends-on): Likewise.
26934 * modules/vfprintf-posix (Depends-on): Likewise.
26935 * modules/vsnprintf-posix (Depends-on): Likewise.
26936 * modules/vsprintf-posix (Depends-on): Likewise.
26937 * doc/functions/fprintf.texi: Update.
26938 * doc/functions/printf.texi: Update.
26939 * doc/functions/snprintf.texi: Update.
26940 * doc/functions/sprintf.texi: Update.
26941 * doc/functions/vfprintf.texi: Update.
26942 * doc/functions/vprintf.texi: Update.
26943 * doc/functions/vsnprintf.texi: Update.
26944 * doc/functions/vsprintf.texi: Update.
26946 2007-11-03 Bruno Haible <bruno@clisp.org>
26948 * modules/frexp-nolibm-tests: New file.
26950 * modules/frexp-nolibm: New file.
26951 * m4/frexp.m4 (gl_FUNC_FREXP_NO_LIBM): New macro.
26953 2007-11-03 Bruno Haible <bruno@clisp.org>
26955 * lib/vasnprintf.c (VASNPRINTF): Don't assume that snprintf's return
26956 value is C99 compliant.
26957 Needed for OSF/1 5.1.
26959 2007-11-03 Bruno Haible <bruno@clisp.org>
26961 Fix out-of-memory handling of vasnprintf.
26962 * lib/printf-parse.c: Include <errno.h>.
26963 (PRINTF_PARSE): When failing, set errno to EINVAL or ENOMEM.
26964 * lib/vasnprintf.c (VASNPRINTF): When PRINTF_PARSE fails, assume errno
26967 2007-11-02 Eric Blake <ebb9@byu.net>
26969 Fix tests on cygwin.
26970 * modules/xprintf-posix-tests (Makefile.am): Link against -lintl.
26972 2007-11-01 Bruno Haible <bruno@clisp.org>
26974 * lib/stdlib.in.h (putenv): Remove the "not POSIX compliant everywhere"
26976 * doc/functions/putenv.texi: Clarify that the 'putenv' module is not
26977 needed for POSIX compatibility.
26979 2007-11-01 Paul Eggert <eggert@cs.ucla.edu>
26981 * m4/putenv.m4 (gl_FUNC_PUTENV): Also mention that we're checking
26982 for compatibility with GNU.
26984 2007-11-01 Bruno Haible <bruno@clisp.org>
26986 * lib/putenv.c: Include <stdlib.h>. Remove rpl_putenv declaration.
26987 (putenv): Renamed from rpl_putenv. Change argument type from
26988 'const char *' to 'char *'.
26989 * m4/putenv.m4 (gl_FUNC_PUTENV): Require gl_STDLIB_H_DEFAULTS. Instead
26990 of defining putenv in config.h, just set REPLACE_PUTENV.
26991 * modules/putenv (Depends-on): Add stdlib.
26992 (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
26993 (Include): Use <stdlib.h>.
26994 * lib/stdlib.in.h (putenv): New declaration.
26995 * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_PUTENV and
26997 * modules/stdlib (Makefile.am): Substitute GNULIB_PUTENV and
26999 Needed for MacOS X 10.5.0.
27000 Reported by Peter O'Gorman <peter@pogma.com>.
27002 2007-11-01 Jim Meyering <meyering@redhat.com>
27004 Treat an empty date string exactly like "0".
27005 * lib/getdate.y (get_date): Once any isspace or TZ= prefix is consumed,
27006 if the remaining date string (to be parsed) is empty, use "0".
27007 Reported by Mischa Molhoek and discussed in this thread:
27008 <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/11726>.
27010 2007-10-31 Bruno Haible <bruno@clisp.org>
27012 * m4/intmax_t.m4 (gl_AC_TYPE_INTMAX_T, gt_AC_TYPE_INTMAX_T): Use
27013 AC_TYPE_LONG_LONG_INT instead of gl_AC_TYPE_LONG_LONG.
27014 * m4/uintmax_t.m4 (gl_AC_TYPE_UINTMAX_T): Use
27015 AC_TYPE_UNSIGNED_LONG_LONG_INT instead of gl_AC_TYPE_UNSIGNED_LONG_LONG.
27016 * m4/longlong.m4 (gl_AC_TYPE_LONG_LONG): Remove macro.
27017 * m4/ulonglong.m4 (gl_AC_TYPE_UNSIGNED_LONG_LONG): Remove macro.
27019 2007-10-31 Bruno Haible <bruno@clisp.org>
27021 * m4/longlong.m4 (_AC_TYPE_LONG_LONG_SNIPPET): New macro, extracted
27022 from AC_TYPE_LONG_LONG_INT and AC_TYPE_UNSIGNED_LONG_LONG_INT.
27023 (AC_TYPE_LONG_LONG_INT): Use it.
27024 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Moved here from m4/ulonglong.m4. Use
27026 * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Remove macro; moved
27028 * modules/stdint (Files): Remove m4/ulonglong.m4.
27029 * modules/strtoull (Files): Use m4/longlong.m4 instead of
27031 * modules/strtoumax (Files): Likewise.
27033 2007-10-30 Bruno Haible <bruno@clisp.org>
27035 * modules/xvasprintf-posix: New file.
27036 Suggested by Eric Blake.
27038 2007-10-30 Bruno Haible <bruno@clisp.org>
27040 * modules/xprintf-posix-tests: New file.
27041 * tests/test-xprintf-posix.sh: New file.
27042 * tests/test-xprintf-posix.c: New file.
27043 * tests/test-xfprintf-posix.c: New file.
27045 * modules/xprintf-posix: New file.
27047 2007-10-30 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
27049 * modules/fbufmode-tests (MOSTLYCLEANFILES): Remove temp files.
27050 * modules/freadable-tests (MOSTLYCLEANFILES): Likewise.
27051 * modules/fwritable-tests (MOSTLYCLEANFILES): Likewise.
27053 2007-10-29 Bruno Haible <bruno@clisp.org>
27055 * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Rename the cache variable to
27056 contain the special marker '_cv_'.
27057 * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
27058 * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
27059 * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
27060 * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Likewise.
27061 * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
27062 Reported by Ralf Wildenhues.
27064 2007-10-29 Bruno Haible <bruno@clisp.org>
27066 * gnulib-tool (func_import): When --lgpl is not specified, set
27067 sed_transform_lib_file to convert LGPL and GPLv2+ copyright headers to
27069 Reported by Simon Josefsson.
27071 2007-10-28 Bruno Haible <bruno@clisp.org>
27073 * lib/math.in.h: Test REPLACE_ISFINITE instead of HAVE_DECL_ISFINITE.
27074 * m4/isfinite.m4 (gl_ISFINITE): Initialize REPLACE_ISFINITE instead of
27075 HAVE_DECL_ISFINITE.
27076 * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Update.
27077 * modules/math (Makefile.am): Substitute REPLACE_ISFINITE instead of
27078 HAVE_DECL_ISFINITE.
27080 2007-10-28 Bruno Haible <bruno@clisp.org>
27082 * lib/stdint.in.h (_STDINT_MAX): Subtract 1 from an unused signed
27083 integer shift in the signed case. Fixes warnings with OSF/1 5.1 cc.
27085 2007-10-28 Bruno Haible <bruno@clisp.org>
27087 Fix link errors with Sun C 5.0 on Solaris 10.
27088 * m4/floorf.m4 (gl_FUNC_FLOORF): Consider also the case that the
27089 function is declared but not present in the compiler's libm.
27090 * m4/floorl.m4 (gl_FUNC_FLOORL): Likewise.
27091 * m4/ceilf.m4 (gl_FUNC_CEILF): Likewise.
27092 * m4/ceill.m4 (gl_FUNC_CEILL: Likewise.
27093 * lib/math.in.h: Test REPLACE_CEILF instead of HAVE_DECL_CEILF.
27094 Test REPLACE_CEILL instead of HAVE_DECL_CEILL.
27095 Test REPLACE_FLOORF instead of HAVE_DECL_FLOORF.
27096 Test REPLACE_FLOORL instead of HAVE_DECL_FLOORL.
27097 * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Update.
27098 * modules/math (Makefile.am): Substitute REPLACE_CEILF instead of
27099 HAVE_DECL_CEILF, REPLACE_CEILL instead of HAVE_DECL_CEILL,
27100 REPLACE_FLOORF instead of HAVE_DECL_FLOORF, REPLACE_FLOORL instead of
27103 2007-10-28 Bruno Haible <bruno@clisp.org>
27105 * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): New macro, extracted from
27106 gl_FUNC_FLOORL. Cache the result.
27107 (gl_FUNC_FLOORL): Use it.
27108 * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): New macro, extracted from
27109 gl_FUNC_CEILL. Cache the result.
27110 (gl_FUNC_CEILL): Use it.
27112 * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): New macro, extracted from
27113 gl_FUNC_FLOOR. Cache the result.
27114 (gl_FUNC_FLOOR): Use it.
27115 * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): New macro, extracted from
27116 gl_FUNC_CEIL. Cache the result.
27117 (gl_FUNC_CEIL): Use it.
27119 * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): New macro, extracted from
27120 gl_FUNC_FLOORF. Cache the result.
27121 (gl_FUNC_FLOORF): Use it.
27122 * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): New macro, extracted from
27123 gl_FUNC_CEILF. Cache the result.
27124 (gl_FUNC_CEILF): Use it.
27126 2007-10-28 Bruno Haible <bruno@clisp.org>
27128 * gnulib-tool: Allow specifying the LGPL version number through
27129 --lgpl=2 or --lgpl=3.
27130 (func_usage): Document --lgpl with argument.
27131 Handle --lgpl=... arguments.
27132 (func_import): Recognize also gl_LGPL calls with an argument. When
27133 --lgpl=2 is used and the module's license is just LGPL, report an
27134 error. Set sed_transform_lib_file according to the lgpl variable. In
27135 the generated files, use --lgpl or gl_LGPL invocations with argument,
27137 * doc/gnulib-intro.texi (Copyright): Explain how to get modules under
27139 * doc/gnulib-tool.texi (Modified imports): Update explanation of
27142 2007-10-28 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
27143 Bruno Haible <bruno@clisp.org>
27145 * lib/unistr.h (u8_uctomb_aux): Declare also if !HAVE_INLINE.
27146 (u16_uctomb_aux): Likewise.
27147 * lib/unistr/u8-uctomb-aux.c (u8_uctomb_aux): Define also if
27149 * lib/unistr/u16-uctomb-aux.c (u16_uctomb_aux): Likewise
27151 2007-10-28 Bruno Haible <bruno@clisp.org>
27153 * modules/error: Add a notice recommending to change XGETTEXT_OPTIONS.
27154 Invoke AM_GETTEXT_OPTION if it exists.
27155 * modules/vasprintf: Likewise.
27156 * modules/verror: Likewise.
27157 * modules/xprintf: Likewise.
27158 * modules/xvasprintf: Likewise.
27160 2007-10-27 Ben Pfaff <blp@gnu.org>
27162 * lib/math.in.h: Define isfinite macro and prototypes for
27163 gl_isfinitef, gl_isfinited, gl_isfinitel if we are providing
27165 * m4/math_h.m4: New substitutions for isfinite module.
27166 * lib/isfinite.c: New file.
27167 * m4/isfinite.m4: New file.
27168 * modules/math: Replace isfinite-related @VARS@ in math.in.h.
27169 * modules/isfinite: New file.
27170 * modules/isfinite-tests: New file.
27171 * tests/tests-isfinite.c: New file.
27172 * doc/functions/isfinite.texi: Mention isfinite module.
27173 * MODULES.html.sh: Mention new module.
27175 2007-10-27 Ben Pfaff <blp@gnu.org>
27177 Ralf Wildenhues reported that Tru64 4.0D declares the round
27178 functions but does not have definitions.
27179 * m4/check-math-lib.m4 (gl_CHECK_MATH_LIB): If the target function
27180 cannot be found in any library, set the output variable to
27181 "missing" instead of "".
27182 * m4/round.m4: Also use our substitute if we cannot find round in
27183 any library, even if it is declared.
27184 * m4/roundf.m4: Likewise for roundf.
27185 * m4/roundl.m4: Likewise for roundl.
27186 * lib/math.in.h: Undefine roundf, round, roundl before defining
27187 their replacements, to allow for hypothetical systems where these
27188 may be defined as macros but not available in libraries.
27190 2007-10-27 Bruno Haible <bruno@clisp.org>
27192 * doc/gnulib.texi: Invoke @firstparagraphindent.
27193 * doc/gnulib-tool.texi (Simple update): Mention possible incompatible
27195 (Source changes): New section.
27197 2007-10-26 Bruno Haible <bruno@clisp.org>
27199 * m4/gnulib-common.m4 (AC_C_RESTRICT): New overriding definition,
27200 borrowed from autoconf.
27202 2007-10-26 Bruno Haible <bruno@clisp.org>
27204 * lib/strerror.c (rpl_strerror): Return "Unknown error ..." also if
27205 strerror returned the empty string. Needed on HP-UX 11.00.
27207 2007-10-24 Micah Cowan <micah@cowan.name>
27209 Remove vestiges of cvs-gnulib-checkout process. Now we use git.
27210 * build-aux/bootstrap: Remove support for now-unnecessary option,
27211 --cvs-user, and envvars CVS_USER, CVS_RSH.
27213 2007-10-24 Jim Meyering <meyering@redhat.com>
27215 Avoid diagnostics from sha1sum when there is no cached checksum.
27216 * build-aux/bootstrap (update_po_files): Skip the sha1sum check
27217 if the po.s1 file hasn't been created yet.
27219 * build-aux/bootstrap: Sync from coreutils:
27220 2007-10-24 Jim Meyering <meyering@redhat.com>
27221 Get gnulib from the git repository, not from an obsolete cvs one.
27222 * build-aux/bootstrap: Suggestion from Micah Cowan.
27223 2007-10-04 Jim Meyering <jim@meyering.net>
27224 * build-aux/bootstrap (slurp): Adapt to _.h -> .in.h name change.
27225 (update_po_files): Work also when there are no .po files in po/.
27227 2007-10-24 Paul Eggert <eggert@cs.ucla.edu>
27229 * README: Append ".git" to git and cg examples.
27230 Problem reported by Benoit Sigoure.
27232 2007-10-23 Micah Cowan <micah@cowan.name>
27234 * users.txt: Add wget.
27236 2007-10-23 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
27238 Fix linking of some unistdio tests on FreeBSD.
27239 * modules/unistdio/u16-vsnprintf-tests
27240 (test_u16_vsprintf1_LDADD): Add @LIBINTL@.
27241 * modules/unistdio/u16-vsprintf-tests
27242 (test_u16_vsnprintf1_LDADD): Likewise.
27243 * modules/unistdio/u32-vsnprintf-tests
27244 (test_u32_vsnprintf1_LDADD): Likewise.
27245 * modules/unistdio/u32-vsprintf-tests
27246 (test_u32_vsprintf1_LDADD): Likewise.
27247 * modules/unistdio/u8-vsnprintf-tests
27248 (test_u8_vsnprintf1_LDADD): Likewise.
27249 * modules/unistdio/u8-vsprintf-tests
27250 (test_u8_vsprintf1_LDADD): Likewise.
27251 * modules/unistdio/ulc-vsnprintf-tests
27252 (test_ulc_vsnprintf1_LDADD): Likewise.
27253 * modules/unistdio/ulc-vsprintf-tests
27254 (test_ulc_vsprintf1_LDADD): Likewise.
27256 Fix linking of some uniconv tests on FreeBSD.
27257 * modules/uniconv/u16-conv-from-enc-tests
27258 (test_u16_conv_from_enc_LDADD): Link $(LDADD) before @LIBICONV@.
27259 * modules/uniconv/u16-conv-to-enc-tests
27260 (test_u16_conv_to_enc_LDADD): Likewise.
27261 * modules/uniconv/u16-strconv-from-enc-tests
27262 (test_u16_strconv_from_enc_LDADD): Likewise.
27263 * modules/uniconv/u16-strconv-to-enc-tests
27264 (test_u16_strconv_to_enc_LDADD): Likewise.
27265 * modules/uniconv/u32-conv-from-enc-tests
27266 (test_u32_conv_from_enc_LDADD): Likewise.
27267 * modules/uniconv/u32-conv-to-enc-tests
27268 (test_u32_conv_to_enc_LDADD): Likewise.
27269 * modules/uniconv/u32-strconv-from-enc-tests
27270 (test_u32_strconv_from_enc_LDADD): Likewise.
27271 * modules/uniconv/u32-strconv-to-enc-tests
27272 (test_u32_strconv_to_enc_LDADD): Likewise.
27273 * modules/uniconv/u8-conv-from-enc-tests
27274 (test_u8_conv_from_enc_LDADD): Likewise.
27275 * modules/uniconv/u8-conv-to-enc-tests
27276 (test_u8_conv_to_enc_LDADD): Likewise.
27277 * modules/uniconv/u8-strconv-from-enc-tests
27278 (test_u8_strconv_from_enc_LDADD): Likewise.
27279 * modules/uniconv/u8-strconv-to-enc-tests
27280 (test_u8_strconv_to_enc_LDADD): Likewise.
27282 2007-10-22 Bruno Haible <bruno@clisp.org>
27284 * lib/stdint.in.h: Add check that intmax_t and uintmax_t have the same
27287 2007-10-22 Eric Blake <ebb9@byu.net>
27289 Tweak x*printf documentation.
27290 * lib/xprintf.c (xprintf, xvprintf, xfprintf, xvfprintf): Adjust
27291 variable name and comments.
27292 Suggested by Bruno Haible.
27294 2007-10-22 Bruno Haible <bruno@clisp.org>
27296 * lib/acl.c (copy_acl): Fix file name in comment.
27298 2007-10-22 Paul Eggert <eggert@cs.ucla.edu>
27300 Fix Tru64 problem with stdbool.h.
27301 * lib/stdbool.in.h (false, true):
27302 [! (defined __cplusplus || defined __BEOS__) && !defined __GNUC__]:
27303 Don't declare as an enum in this situation; it runs afoul of Tru64.
27304 Problem reported by Steven M. Schweda in
27305 <http://lists.gnu.org/archive/html/bug-autoconf/2007-10/msg00019.html>.
27307 2007-10-22 Eric Blake <ebb9@byu.net>
27309 Also wrap vf?printf.
27310 * lib/xprintf.h (xvprintf, xvfprintf): New declarations.
27311 * lib/xprintf.c (xprintf, xfprintf): Work for C89.
27312 (xvprintf, xvfprintf): New functions.
27314 2007-10-22 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
27316 * modules/fstrcmp-tests (test_fstrcmp_LDADD): New, add
27317 @LIBINTL@ for FreeBSD 6.2, $(LIBTHREAD) for AIX 4.3.3.
27319 * lib/uniconv/u16-conv-to-enc.c (U_MBLEN): Define.
27320 * lib/uniconv/u32-conv-to-enc.c (U_MBLEN): Likewise.
27322 2007-10-22 Paul Eggert <eggert@cs.ucla.edu>
27324 * lib/acl.c (copy_acl): Adjust to IRIX 6.5. Problem reported
27327 2007-10-22 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
27330 [defined (__osf__) && (defined (__alpha) || defined (__alpha__)]:
27331 Undef `sys' after including sys/table.h, for Tru64 4.0D.
27333 * tests/test-i-ring.c: Work for C89.
27335 2007-10-22 Bruno Haible <bruno@clisp.org>
27337 * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Use -1ull, not
27338 -1u, in preprocessor expression, so that we don't test for the bug
27339 in HP-UX 11.00 cpp. Testing for this bug caused problems; see
27340 <http://lists.gnu.org/archive/html/bug-gnulib/2007-10/msg00329.html>.
27342 2007-10-22 Eric Blake <ebb9@byu.net>
27344 * tests/test-yesno.sh: Silence stderr during test.
27346 2007-10-22 Simon Josefsson <simon@josefsson.org>
27348 * modules/crypto/gc-camellia: New file.
27350 * m4/gc-camellia.m4: New file.
27352 * lib/gc-libgcrypt.c (gc_cipher_open): Support Camellia.
27354 * lib/gc.h (enum Gc_cipher): Add GC_CAMELLIA128, GC_CAMELLIA256.
27356 2007-10-22 Simon Josefsson <simon@josefsson.org>
27358 * build-aux/maint.mk (gzip_rsyncable): Don't fail if gzip sends
27359 --help to stdout. Reported by sms@antinode.org (Steven
27362 2007-10-22 Simon Josefsson <simon@josefsson.org>
27364 * users.txt: Fix link to libksba.
27366 2007-10-21 Ben Pfaff <blp@gnu.org>
27368 * modules/roundf-tests: Add dependency on floorf, ceilf to allow
27369 round.c roundf implementation that depends on floorf and ceilf to
27370 be tested unconditionally.
27372 2007-10-21 Ben Pfaff <blp@gnu.org>
27374 * m4/check-libm-func.m4: Removed.
27375 * m4/check-math-lib.m4: New file.
27376 * m4/round.m4: Rewrite to use gl_CHECK_MATH_LIB.
27377 * m4/roundf.m4: Ditto, and fix lack of HAVE_DECL_ROUNDF
27378 definition and lack of AC_LIBOBJ([roundf]).
27379 * m4/roundl.m4: Ditto, and similarly for roundl.
27380 * modules/round: Reference new m4 file.
27381 * modules/roundf: Ditto.
27382 * modules/roundl: Ditto.
27383 * tests/test-round2.c (main): Use ROUND instead of round.
27384 Bug report from Bruno Haible.
27386 2007-10-21 Bruno Haible <bruno@clisp.org>
27388 * lib/printf-parse.c: Don't assume <stdint.h> exists in IN_LIBASPRINTF
27391 2007-10-21 Bruno Haible <bruno@clisp.org>
27393 * tests/test-wcwidth.c (main): Allow negative result for some control
27396 * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Check also the width of U+200B.
27397 Needed on OSF/1 5.1.
27399 2007-10-21 Bruno Haible <bruno@clisp.org>
27401 * tests/test-floorf1.c: Include isnanf.h.
27402 (main): Use isnanf() instead of isnan().
27403 * tests/test-ceilf1.c: Include isnanf.h.
27404 (main): Use isnanf() instead of isnan().
27405 * tests/test-truncf1.c: Include isnanf.h.
27406 (main): Use isnanf() instead of isnan().
27407 * tests/test-roundf1.c: Include isnanf.h.
27408 (main): Use isnanf() instead of isnan().
27410 2007-10-21 Eric Blake <ebb9@byu.net>
27412 * users.txt: Update URL for m4.
27414 2007-10-21 Bruno Haible <bruno@clisp.org>
27416 * users.txt: Add clisp. Update URLs to Simon Josefsson's projects.
27418 2007-10-21 Bruno Haible <bruno@clisp.org>
27420 * gnulib-tool (func_create_megatestdir): Determine the cvsdate from
27421 Git's management files if the CVS files are not present.
27423 2007-10-20 Bruno Haible <bruno@clisp.org>
27425 * lib/count-one-bits.h (COUNT_ONE_BITS): Use the builtin also for
27428 2007-10-20 Ben Pfaff <blp@gnu.org>
27430 * lib/math.in.h: Declare round, roundf, roundl if we are providing
27432 * m4/math_h.m4: New substitutions for round, roundf, roundl modules.
27433 * lib/round.c: New file.
27434 * lib/roundf.c: New file.
27435 * lib/roundl.c: New file.
27436 * m4/round.m4: New file.
27437 * m4/roundf.m4: New file.
27438 * m4/roundl.m4: New file.
27439 * m4/check-libm-func-m4: New file.
27440 * modules/math: Replace round, roundf, roundl related @VARS@ in
27442 * modules/round: New file.
27443 * modules/round-tests: New file.
27444 * modules/roundf: New file.
27445 * modules/roundf-tests: New file.
27446 * modules/roundl: New file.
27447 * modules/roundl-tests: New file.
27448 * tests/test-round1.c: New file.
27449 * tests/test-round2.c: New file.
27450 * tests/test-roundf1.c: New file.
27451 * tests/test-roundf2.c: New file.
27452 * tests/test-roundl.c: New file.
27453 * doc/functions/round.texi: Mention round module.
27454 * doc/functions/roundf.texi: Mention roundf module.
27455 * doc/functions/roundl.texi: Mention roundl module.
27456 * MODULES.html.sh: Mention new modules.
27457 Thanks to Bruno Haible for suggestions.
27459 2007-10-20 Jim Meyering <meyering@redhat.com>
27461 * lib/xprintf.c: Include <config.h> unconditionally.
27463 Change xprintf's license to GPL.
27464 * modules/xprintf (License): s/LGPL/GPL/, since this module
27465 depends on modules (exit and exitfail) which are GPL.
27466 Suggestion from Bruno Haible.
27469 * lib/xprintf.c (xprintf, xfprintf): Use va_end.
27470 Use a clearer diagnostic.
27471 Patch from Bruno Haible.
27473 2007-10-20 Bruno Haible <bruno@clisp.org>
27475 * lib/vasnprintf.c (VASNPRINTF): Don't report overflow if the available
27476 length is INT_MAX and sizeof (DCHAR_T) > sizeof (TCHAR_T).
27477 Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
27479 2007-10-20 Bruno Haible <bruno@clisp.org>
27481 * tests/test-floorf2.c (correct_result_p): Don't rely on excess
27482 precision in the comparison result > x - 1 or similar.
27483 * tests/test-ceilf2.c (correct_result_p): Likewise.
27484 * tests/test-truncf2.c (correct_result_p): Likewise.
27485 * tests/test-trunc2.c (correct_result_p): Likewise.
27486 Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
27488 2007-10-20 Bruno Haible <bruno@clisp.org>
27490 * modules/ceil: New file.
27491 * m4/ceil.m4: New file.
27492 * doc/functions/ceil.texi: Mention the 'ceil' module.
27494 2007-10-20 Bruno Haible <bruno@clisp.org>
27496 * modules/floor: New file.
27497 * m4/floor.m4: New file.
27498 * doc/functions/floor.texi: Mention the 'floor' module.
27500 2007-10-20 Bruno Haible <bruno@clisp.org>
27502 * modules/ceilf-tests (Depends-on): Add fprintf-posix. Needed for use
27504 * modules/floorf-tests (Depends-on): Likewise.
27505 * modules/truncf-tests (Depends-on): Likewise.
27506 * modules/trunc-tests (Depends-on): Likewise.
27507 Reported by Ben Pfaff.
27509 2007-10-19 Jim Meyering <meyering@redhat.com>
27511 * lib/xprintf.c (xprintf, xfprintf): Test err < 0, not just "err".
27512 Don't bother testing specific errno values. Just test ferror.
27514 New module: xprintf
27515 * modules/xprintf, lib/xprintf.c, lib/xprintf.h: New files.
27517 2007-10-19 Bruno Haible <bruno@clisp.org>
27519 * modules/csharpexec (Makefile.am): Use @FOO@ syntax instead of $(FOO)
27521 * modules/javaexec (Makefile.am): Likewise.
27522 * modules/relocatable-prog (Makefile.am): Likewise.
27523 Suggested by Jim Meyering.
27525 2007-10-18 Bruno Haible <bruno@clisp.org>
27527 * lib/vasnprintf.c (VASNPRINTF): Don't use %n on glibc >= 2.3 systems.
27528 Reported by Jim Meyering.
27530 2007-10-18 Eric Blake <ebb9@byu.net>
27532 * modules/filenamecat-tests (Makefile.am): Link against -lintl.
27534 2007-10-18 Bruno Haible <bruno@clisp.org>
27536 * m4/printf.m4 (gl_PRINTF_DIRECTIVE_N, gl_SNPRINTF_DIRECTIVE_N): Put
27537 the format string into writable memory. Needed in Fortify conditions.
27539 2007-10-18 Colin Watson <cjwatson@debian.org> (tiny change)
27540 Bruno Haible <bruno@clisp.org>
27542 * lib/trim.c: Include config.h unconditionally. Include trim.h always.
27543 Include ctype.h always. Include stdlib.h, not mbuiter.h, for MB_CUR_MAX.
27544 * modules/trim (Depends-on): Add mbchar.
27545 (configure.ac): Add gl_FUNC_MBRTOWC.
27546 (Makefile.am): Augment lib_SOURCES.
27548 2007-10-17 Paul Eggert <eggert@cs.ucla.edu>
27550 Modify glob.c to use fstatat and dirfd, to simplify it.
27551 Suggested by Eric Blake.
27552 * lib/glob.c (__fxstatat64) [!_LIBC]: New macro.
27553 Don't include <stdbool.h>; not used.
27554 (link_exists2_p, glob_in_dir) [!_LIBC]: No longer a special case.
27555 (link_exists_p): Simplify implementation, since we can now assume
27557 * modules/glob (Depends-on): Add dirfd, openat. Remove stdbool.
27559 2007-10-17 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
27561 * gnulib-tool (func_get_dependencies): Fix sed script to
27564 2007-10-17 Bruno Haible <bruno@clisp.org>
27566 * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): On Cygwin, don't
27567 allow locale names without encoding suffix.
27568 * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
27569 * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
27571 2007-10-16 Bruno Haible <bruno@clisp.org>
27573 * lib/getcwd.c (__getcwd): Define with explicit rpl_ prefix.
27574 * lib/getgroups.c (getgroups): Likewise.
27575 * lib/gettimeofday.c (localtime, gmtime, tzset): Likewise.
27577 2007-10-16 Bruno Haible <bruno@clisp.org>
27579 * modules/absolute-header (License): Change from LGPL to LGPLv2+.
27580 * modules/malloc-posix (License): Likewise.
27581 * modules/realloc-posix (License): Likewise.
27582 * modules/calloc-posix (License): Likewise.
27583 * modules/intprops (License): Change from GPL to LGPL, with
27584 Paul Eggert's approval.
27586 2007-10-16 Paul Eggert <eggert@cs.ucla.edu>
27588 Merge glibc changes into lib/glob.c.
27590 * lib/glob.c (glob_in_dir): Sync with glibc/posix/glob.c, dated
27591 2007-10-15 04:59:03 UTC. Here are the changes:
27593 2007-10-14 Ulrich Drepper <drepper@redhat.com>
27595 * lib/glob.c: Reimplement link_exists_p to use fstatat64.
27597 * lib/glob.c: Add some branch prediction throughout.
27599 2007-10-07 Ulrich Drepper <drepper@redhat.com>
27602 * lib/glob.c (glob): Recognize patterns starting \/.
27604 2007-02-14 Jakub Jelinek <jakub@redhat.com>
27607 * lib/glob.c (attribute_hidden): Define if not defined.
27608 (glob): Unescape dirname, filename or username when needed and not
27609 GLOB_NOESCAPE. Handle \/ correctly. Handle GLOB_MARK if filename
27610 is NULL. Handle unescaped [ in pattern without closing ].
27611 Don't pass GLOB_CHECK down to recursive glob for directories.
27612 (__glob_pattern_type): New function.
27613 (__glob_pattern_p): Implement using __glob_pattern_type.
27614 (glob_in_dir): Handle GLOB_NOCHECK patterns containing no meta
27615 characters and backslashes if not GLOB_NOESCAPE or unterminated [.
27616 Remove unreachable code.
27618 2006-09-30 Ulrich Drepper <drepper@redhat.com>
27620 * lib/glob.c (glob_in_dir): Add some comments and asserts to
27621 explain why there are no leaks.
27623 2006-09-25 Jakub Jelinek <jakub@redhat.com>
27626 * lib/glob.c (glob_in_dir): Don't alloca one struct globlink at a
27627 time, rather allocate increasingly bigger arrays of pointers, if
27628 possible with alloca, if too large with malloc.
27630 2007-10-16 Paul Eggert <eggert@cs.ucla.edu>
27632 Check for 64-bit int errors in HP-UX 10.20 preprocessor.
27633 Problem reported by H.Merijn Brand in
27634 <http://lists.gnu.org/archive/html/bug-tar/2007-10/msg00018.html>.
27635 * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Check preprocessor too.
27636 * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Likewise.
27638 2007-10-15 Bruno Haible <bruno@clisp.org>
27640 * lib/fchdir.c (close, open, closedir, opendir, dup, dup2): Define
27641 with explicit rpl_ prefix.
27642 * lib/fopen.c (fopen): Likewise.
27643 * lib/freopen.c (freopen): Likewise.
27644 * lib/iconv.c (iconv): Likewise.
27645 * lib/iconv_close.c (iconv_close): Likewise.
27647 2007-10-15 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
27649 * m4/iconv_open (gl_FUNC_ICONV_OPEN_UTF): Fix cache variable name.
27651 2007-10-15 Bruno Haible <bruno@clisp.org>
27653 * m4/getaddrinfo.m4 (gl_GETADDRINFO, gl_PREREQ_GETADDRINFO): Use
27654 <stddef.h> instead of <stdlib.h> since we only need NULL.
27655 Reported by Ben Pfaff <blp@cs.stanford.edu>.
27657 2007-10-15 Bruno Haible <bruno@clisp.org>
27659 * doc/gnulib-tool.texi (Initial import): Swap order of -I directives.
27660 Replace paragraph talking about LIBOBJS.
27661 Reported by Colin Watson <cjwatson@debian.org>.
27663 2007-10-15 Bruno Haible <bruno@clisp.org>
27665 * m4/getaddrinfo.m4 (gl_GETADDRINFO, gl_PREREQ_GETADDRINFO): Include
27666 <stdlib.h> before using NULL.
27668 2007-10-15 Simon Josefsson <simon@josefsson.org>
27670 * m4/getaddrinfo.m4: Use NULL rather than 0 for pointers.
27671 Reported by Albert Chin <china@thewrittenword.com>.
27673 2007-10-14 Bruno Haible <bruno@clisp.org>
27675 * modules/iconv_open-utf-tests: New file.
27676 * tests/test-iconv-utf.c: New file.
27678 Enhance iconv_open to support UTF-16BE, UTF-16LE, UTF-32BE, UTF-32LE.
27679 * modules/iconv_open-utf: New file.
27680 * lib/iconv.in.h (_ICONV_UTF8_UTF*, _ICONV_UTF*_UTF8): New macros.
27681 (iconv, iconv_close): New declarations.
27682 * lib/iconv_open.c: Include c-strcase.h. Don't require ICONV_FLAVOR to
27684 (iconv_open): Add special handling of conversion between UTF-8 and
27685 UTF-{16,32}{BE,LE}.
27686 * lib/iconv.c: New file, incorporating code from GNU libiconv 1.11.
27687 * lib/iconv_close.c: New file.
27688 * m4/iconv_open.m4 (gl_REPLACE_ICONV_OPEN): New macro, extracted from
27689 gl_FUNC_ICONV_OPEN.
27690 (gl_FUNC_ICONV_OPEN): Use it.
27691 (gl_FUNC_ICONV_OPEN_UTF): New macro.
27692 * m4/iconv_h.m4 (gl_ICONV_H_DEFAULTS): Initialize also REPLACE_ICONV
27693 and REPLACE_ICONV_UTF.
27694 * modules/iconv_open (Depends-on): Add c-strcase.
27695 (Makefile.am): Substitute also REPLACE_ICONV, REPLACE_ICONV_UTF,
27697 * doc/functions/iconv_open.texi: Mention the iconv_open-utf module.
27699 2007-10-13 Albert Chin <china@thewrittenword.com>
27700 Bruno Haible <bruno@clisp.org>
27702 * m4/getaddrinfo.m4 (gl_GETADDRINFO): Perform the test for getaddrinfo
27703 through a link check that includes <netdb.h>. Needed for OSF/1 5.1.
27705 2007-10-13 Bruno Haible <bruno@clisp.org>
27707 * lib/argp-fmtstream.h (ARGP_FS_EI): If __GNUC_STDC_INLINE__ is
27708 defined, use the ISO C99 inline semantics.
27709 * lib/argp.h (ARGP_EI): Likewise.
27711 2007-10-13 Bruno Haible <bruno@clisp.org>
27713 Handle 'inline' change in gcc 4.3.0.
27714 * lib/argp-fmtstream.h (argp_fmtstream_putc, argp_fmtstream_puts,
27715 argp_fmtstream_write, argp_fmtstream_set_lmargin,
27716 argp_fmtstream_set_rmargin, argp_fmtstream_set_wmargin,
27717 argp_fmtstream_point): Disable 'extern' declaration if the function
27718 definition is going to be provided inline.
27719 (ARGP_FS_EI): If __GNUC_STDC_INLINE__ is defined, use the GNU C inline
27720 semantics, not the ISO C99 inline semantics.
27721 * lib/argp.h (argp_usage, _option_is_short, _option_is_end): Disable
27722 'extern' declaration if the function definition is going to be provided
27724 (ARGP_EI): Don't assume GNU C. If __GNUC_STDC_INLINE__ is defined, use
27725 the GNU C inline semantics, not the ISO C99 inline semantics. With
27726 GCC 4.2, avoid a warning.
27728 2007-10-13 Bruno Haible <bruno@clisp.org>
27730 * lib/freading.h (freading): Enable the use of __freading for
27732 * lib/freading.c (freading): Likewise.
27734 2007-10-12 Paul Eggert <eggert@cs.ucla.edu>
27736 * lib/argp-fmtstream.h (ARGP_FS_EI): Work around GCC 4.2.1 diagnostic
27737 "warning: C99 inline functions are not supported; using GNU89".
27739 2007-10-12 Bruno Haible <bruno@clisp.org>
27741 * lib/ceil.c (FUNC): Avoid rounding errors for values near a power
27743 * tests/test-ceilf2.c: New file.
27744 * modules/ceilf-tests: (Files, Depends-on, Makefile.am): Add new test.
27746 * tests/test-ceilf1.c: Renamed from tests/test-ceilf.c.
27747 * modules/ceilf-tests: Update.
27749 2007-10-12 Bruno Haible <bruno@clisp.org>
27751 * lib/floor.c (FUNC): Avoid rounding errors for values near a power
27753 * tests/test-floorf2.c: New file.
27754 * modules/floorf-tests: (Files, Depends-on, Makefile.am): Add new test.
27756 * tests/test-floorf1.c: Renamed from tests/test-floorf.c.
27757 * modules/floorf-tests: Update.
27759 2007-10-12 Bruno Haible <bruno@clisp.org>
27761 * tests/test-trunc2.c: New file.
27762 * modules/trunc-tests: (Files, Depends-on, Makefile.am): Add new test.
27764 * tests/test-trunc1.c: Renamed from tests/test-trunc.c.
27765 * modules/trunc-tests: Update.
27767 2007-10-12 Bruno Haible <bruno@clisp.org>
27769 * lib/trunc.c (FUNC): Avoid rounding errors for values near a power
27771 * tests/test-truncf2.c: New file.
27772 * modules/truncf-tests: (Files, Depends-on, Makefile.am): Add new test.
27774 * tests/test-truncf1.c: Renamed from tests/test-truncf.c.
27775 * modules/truncf-tests: Update.
27777 2007-10-11 Eric Blake <ebb9@byu.net>
27779 Don't claim strerror is broken on Interix.
27780 * doc/functions/strerror.texi (strerror): Known broken systems are
27781 now Solaris 8, and not Interix.
27782 * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): No longer filter out
27783 Interix on cross-compile.
27784 Reported by Martin Koeppe in
27785 http://lists.gnu.org/archive/html/bug-gnulib/2007-10/msg00005.html.
27787 2007-10-11 Bruno Haible <bruno@clisp.org>
27789 * modules/i-ring-tests: New file.
27790 * tests/test-i-ring.c: Renamed from lib/i-ring-test.c. Use ASSERT
27793 2007-10-11 Bruno Haible <bruno@clisp.org>
27795 * modules/filenamecat-tests: New file.
27796 * tests/test-filenamecat.c: New file, extracted from lib/filenamecat.c.
27797 * lib/filenamecat.c: Remove test code.
27799 2007-10-11 Paul Eggert <eggert@cs.ucla.edu>
27801 Simplify and modernize strerror substitute, partly to fix Solaris 8 bug.
27803 * lib/strerror.c: Include <string.h> always, to test interface,
27804 and to remove the need for the dummy.
27805 Include intprops.h to compute width instead of doing it ourselves
27806 and missing a CHAR_BIT declaration, which broke tar 1.19 on Solaris 8.
27807 (strerror): Define it to return NULL if there's no system strerror.
27808 (rpl_strerror): Use INT_STRLEN_BOUND to compute bound.
27809 Omit !HAVE_STRERROR code. We don't need to worry about supporting
27810 ancient pre-strerror Unix systems well any more. Saying "unknown
27811 system error" is enough.
27812 * lib/string.in.h (strerror): Simplify the ifdef to reflect the
27813 simpler strerror.c implementation.
27814 * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE, gl_PREREQ_STDERROR):
27815 Simplify the tests to reflect the simpler strerror implementation.
27816 * modules/strerror (Depends-on): Add intprops.
27818 2007-10-09 Eric Blake <ebb9@byu.net>
27820 Silence test-fpending.
27821 * modules/fpending-tests (Files): Add wrapper script.
27822 * tests/test-fpending.sh: New file.
27824 2007-10-09 Bruno Haible <bruno@clisp.org>
27826 * MODULES.html.sh (func_module): Don't create a hyperlink for
27827 function names like 'printf_frexp'.
27828 (Misc): Add crc, memxor.
27829 (Characteristics of floating types): New section.
27830 (Mathematics): Add ceilf, ceill, floorf, floorl, frexpl-nolibm,
27831 isnanf-nolibm, signbit, trunc, truncf, truncl.
27832 (Enhancements for ISO C 99 functions): New subsection Input/output.
27833 (Support for systems lacking POSIX:2001): Add arpa_inet, calloc-posix,
27834 fcntl, fopen, freopen, fseek, fseeko, ftell, ftello, iconv_open,
27835 locale, malloc-posix, netinet_in, open, realloc-posix, signal, sleep.
27836 (Compatibility checks for POSIX:2001 functions): Add clock-time.
27837 (Enhancements for POSIX:2001 functions): Add chdir-long.
27838 (File system functions): Add areadlink, chdir-safer, read-file.
27839 Remove cycle-check.
27840 (File system as inode set): New section.
27841 (Date and time): Add gethrxtime.
27842 (Multithreading): Add openmp.
27843 (Internationalization functions): Add localename.
27844 (Unicode string functions): Add unistr/u*-mbsnlen.
27845 (Support for maintaining and releasing projects): Add git-version-gen.
27846 (Lone files): Remove directories.
27848 2007-10-08 Ben Pfaff <blp@gnu.org>
27850 * lib/xmalloca.h: Fix typo in comment.
27852 2007-10-08 Paul Eggert <eggert@cs.ucla.edu>
27854 * lib/xnanosleep.c (xnanosleep): Don't assume GCC 4.3.0 behavior
27855 when avoiding problems with integer overflow. Use a portable test
27858 2007-10-08 Simon Josefsson <simon@josefsson.org>
27860 * modules/dummy (License): Change to LGPLv2+.
27861 * modules/float (License): Likewise
27862 * modules/realloc (License): Likewise
27863 * modules/stdlib (License): Likewise
27865 2007-10-07 Bruno Haible <bruno@clisp.org>
27867 * trunc.c (TWO_MANT_DIG): Change type to DOUBLE.
27868 * floor.c (TWO_MANT_DIG): Likewise.
27869 * ceil.c (TWO_MANT_DIG): Likewise.
27870 Reported by Ben Pfaff.
27872 2007-10-07 Bruno Haible <bruno@clisp.org>
27874 Avoid gcc warnings "declaration of 'exp' shadows a global declaration".
27875 * lib/math.in.h (frexp, frexpl): Change parameter name to 'expptr'.
27876 * lib/frexp.c (FUNC): Likewise.
27877 * lib/printf-frexp.h (printf_frexp): Likewise.
27878 * lib/printf-frexpl.h (printf_frexpl): Likewise.
27879 * lib/printf-frexp.c (FUNC): Likewise.
27880 Suggested by Jim Meyering.
27882 2007-10-07 Jim Meyering <meyering@redhat.com>
27884 Make xnanosleep's integer overflow test more robust.
27885 * lib/xnanosleep.c (xnanosleep): Declare a temporary to be "volatile",
27886 so that gcc-4.3.0 doesn't optimize away this test for overflow.
27888 2007-10-07 Bruno Haible <bruno@clisp.org>
27890 * NEWS: Mention the license change.
27892 * doc/gnulib-intro.texi (Copyright): Update the meaning of the license
27893 abbreviations in the modules files.
27895 Change copyright notice from GPLv2+ to GPLv3+.
27896 * README: Change copyright notice.
27897 * MODULES.html.sh: Likewise.
27898 * build-aux/bootstrap.conf: Likewise.
27899 * build-aux/config.libpath: Likewise.
27900 * build-aux/csharpcomp.sh.in: Likewise.
27901 * build-aux/csharpexec.sh.in: Likewise.
27902 * build-aux/install-reloc: Likewise.
27903 * build-aux/javacomp.sh.in: Likewise.
27904 * build-aux/javaexec.sh.in: Likewise.
27905 * build-aux/ldd.sh.in: Likewise.
27906 * build-aux/reloc-ldflags: Likewise.
27907 * build-aux/relocatable.sh.in: Likewise.
27908 * build-aux/x-to-1.in: Likewise.
27909 * check-module: Likewise.
27910 * config/srclistvars.sh: Likewise.
27911 * gnulib-tool: Likewise.
27912 * lib/acl-internal.h: Likewise.
27913 * lib/acl.c: Likewise.
27914 * lib/acl.h: Likewise.
27915 * lib/acl_entries.c: Likewise.
27916 * lib/areadlink-with-size.c: Likewise.
27917 * lib/areadlink.c: Likewise.
27918 * lib/areadlink.h: Likewise.
27919 * lib/argmatch.c: Likewise.
27920 * lib/argmatch.h: Likewise.
27921 * lib/argp-ba.c: Likewise.
27922 * lib/argp-eexst.c: Likewise.
27923 * lib/argp-fmtstream.c: Likewise.
27924 * lib/argp-fmtstream.h: Likewise.
27925 * lib/argp-fs-xinl.c: Likewise.
27926 * lib/argp-help.c: Likewise.
27927 * lib/argp-namefrob.h: Likewise.
27928 * lib/argp-parse.c: Likewise.
27929 * lib/argp-pin.c: Likewise.
27930 * lib/argp-pv.c: Likewise.
27931 * lib/argp-pvh.c: Likewise.
27932 * lib/argp-xinl.c: Likewise.
27933 * lib/argp.h: Likewise.
27934 * lib/at-func.c: Likewise.
27935 * lib/atanl.c: Likewise.
27936 * lib/backupfile.c: Likewise.
27937 * lib/backupfile.h: Likewise.
27938 * lib/basename.c: Likewise.
27939 * lib/binary-io.h: Likewise.
27940 * lib/byteswap.in.h: Likewise.
27941 * lib/c-stack.c: Likewise.
27942 * lib/c-stack.h: Likewise.
27943 * lib/c-strcasestr.c: Likewise.
27944 * lib/c-strcasestr.h: Likewise.
27945 * lib/c-strstr.c: Likewise.
27946 * lib/c-strstr.h: Likewise.
27947 * lib/c-strtod.c: Likewise.
27948 * lib/calloc.c: Likewise.
27949 * lib/canon-host.c: Likewise.
27950 * lib/canon-host.h: Likewise.
27951 * lib/canonicalize-lgpl.c: Likewise.
27952 * lib/canonicalize.c: Likewise.
27953 * lib/canonicalize.h: Likewise.
27954 * lib/ceil.c: Likewise.
27955 * lib/ceilf.c: Likewise.
27956 * lib/ceill.c: Likewise.
27957 * lib/chdir-long.c: Likewise.
27958 * lib/chdir-long.h: Likewise.
27959 * lib/chdir-safer.c: Likewise.
27960 * lib/chdir-safer.h: Likewise.
27961 * lib/chown.c: Likewise.
27962 * lib/classpath.c: Likewise.
27963 * lib/classpath.h: Likewise.
27964 * lib/clean-temp.c: Likewise.
27965 * lib/clean-temp.h: Likewise.
27966 * lib/cloexec.c: Likewise.
27967 * lib/close-stream.c: Likewise.
27968 * lib/closein.c: Likewise.
27969 * lib/closein.h: Likewise.
27970 * lib/closeout.c: Likewise.
27971 * lib/closeout.h: Likewise.
27972 * lib/concat-filename.c: Likewise.
27973 * lib/copy-file.c: Likewise.
27974 * lib/copy-file.h: Likewise.
27975 * lib/count-one-bits.h: Likewise.
27976 * lib/crc.c: Likewise.
27977 * lib/crc.h: Likewise.
27978 * lib/creat-safer.c: Likewise.
27979 * lib/csharpcomp.c: Likewise.
27980 * lib/csharpcomp.h: Likewise.
27981 * lib/csharpexec.c: Likewise.
27982 * lib/csharpexec.h: Likewise.
27983 * lib/cycle-check.c: Likewise.
27984 * lib/cycle-check.h: Likewise.
27985 * lib/diacrit.c: Likewise.
27986 * lib/diacrit.h: Likewise.
27987 * lib/diffseq.h: Likewise.
27988 * lib/dirchownmod.c: Likewise.
27989 * lib/dirent.in.h: Likewise.
27990 * lib/dirfd.c: Likewise.
27991 * lib/dirfd.h: Likewise.
27992 * lib/dirname.c: Likewise.
27993 * lib/dirname.h: Likewise.
27994 * lib/dummy.c: Likewise.
27995 * lib/dup-safer.c: Likewise.
27996 * lib/dup2.c: Likewise.
27997 * lib/eealloc.h: Likewise.
27998 * lib/error.c: Likewise.
27999 * lib/error.h: Likewise.
28000 * lib/euidaccess.c: Likewise.
28001 * lib/exclude.c: Likewise.
28002 * lib/exclude.h: Likewise.
28003 * lib/execute.c: Likewise.
28004 * lib/execute.h: Likewise.
28005 * lib/exitfail.c: Likewise.
28006 * lib/exitfail.h: Likewise.
28007 * lib/expl.c: Likewise.
28008 * lib/fatal-signal.c: Likewise.
28009 * lib/fatal-signal.h: Likewise.
28010 * lib/fbufmode.c: Likewise.
28011 * lib/fbufmode.h: Likewise.
28012 * lib/fchdir.c: Likewise.
28013 * lib/fchmodat.c: Likewise.
28014 * lib/fchownat.c: Likewise.
28015 * lib/fcntl--.h: Likewise.
28016 * lib/fcntl-safer.h: Likewise.
28017 * lib/fcntl.in.h: Likewise.
28018 * lib/fd-safer.c: Likewise.
28019 * lib/fflush.c: Likewise.
28020 * lib/file-has-acl.c: Likewise.
28021 * lib/file-set.c: Likewise.
28022 * lib/file-type.c: Likewise.
28023 * lib/file-type.h: Likewise.
28024 * lib/fileblocks.c: Likewise.
28025 * lib/filemode.c: Likewise.
28026 * lib/filemode.h: Likewise.
28027 * lib/filename.h: Likewise.
28028 * lib/filenamecat.c: Likewise.
28029 * lib/filenamecat.h: Likewise.
28030 * lib/findprog.c: Likewise.
28031 * lib/findprog.h: Likewise.
28032 * lib/float.in.h: Likewise.
28033 * lib/floor.c: Likewise.
28034 * lib/floorf.c: Likewise.
28035 * lib/floorl.c: Likewise.
28036 * lib/fopen-safer.c: Likewise.
28037 * lib/fopen.c: Likewise.
28038 * lib/fpending.c: Likewise.
28039 * lib/fpending.h: Likewise.
28040 * lib/fprintf.c: Likewise.
28041 * lib/fprintftime.h: Likewise.
28042 * lib/fpucw.h: Likewise.
28043 * lib/fpurge.c: Likewise.
28044 * lib/fpurge.h: Likewise.
28045 * lib/freadable.c: Likewise.
28046 * lib/freadable.h: Likewise.
28047 * lib/freadahead.c: Likewise.
28048 * lib/freadahead.h: Likewise.
28049 * lib/freading.c: Likewise.
28050 * lib/freading.h: Likewise.
28051 * lib/free.c: Likewise.
28052 * lib/freopen.c: Likewise.
28053 * lib/frexp.c: Likewise.
28054 * lib/frexpl.c: Likewise.
28055 * lib/fseek.c: Likewise.
28056 * lib/fseterr.c: Likewise.
28057 * lib/fseterr.h: Likewise.
28058 * lib/fstatat.c: Likewise.
28059 * lib/fstrcmp.c: Likewise.
28060 * lib/fstrcmp.h: Likewise.
28061 * lib/fsusage.c: Likewise.
28062 * lib/fsusage.h: Likewise.
28063 * lib/ftell.c: Likewise.
28064 * lib/ftello.c: Likewise.
28065 * lib/fts-cycle.c: Likewise.
28066 * lib/fts.c: Likewise.
28067 * lib/fts_.h: Likewise.
28068 * lib/full-read.c: Likewise.
28069 * lib/full-read.h: Likewise.
28070 * lib/full-write.c: Likewise.
28071 * lib/full-write.h: Likewise.
28072 * lib/fwritable.c: Likewise.
28073 * lib/fwritable.h: Likewise.
28074 * lib/fwriteerror.c: Likewise.
28075 * lib/fwriteerror.h: Likewise.
28076 * lib/fwriting.c: Likewise.
28077 * lib/fwriting.h: Likewise.
28078 * lib/gcd.c: Likewise.
28079 * lib/gcd.h: Likewise.
28080 * lib/getcwd.c: Likewise.
28081 * lib/getdate.h: Likewise.
28082 * lib/getdate.y: Likewise.
28083 * lib/getdomainname.c: Likewise.
28084 * lib/getdomainname.h: Likewise.
28085 * lib/getgroups.c: Likewise.
28086 * lib/gethostname.c: Likewise.
28087 * lib/gethrxtime.c: Likewise.
28088 * lib/gethrxtime.h: Likewise.
28089 * lib/getloadavg.c: Likewise.
28090 * lib/getndelim2.c: Likewise.
28091 * lib/getndelim2.h: Likewise.
28092 * lib/getnline.c: Likewise.
28093 * lib/getnline.h: Likewise.
28094 * lib/getopt.c: Likewise.
28095 * lib/getopt.in.h: Likewise.
28096 * lib/getopt1.c: Likewise.
28097 * lib/getopt_int.h: Likewise.
28098 * lib/getpagesize.h: Likewise.
28099 * lib/getsubopt.c: Likewise.
28100 * lib/gettime.c: Likewise.
28101 * lib/getugroups.c: Likewise.
28102 * lib/getugroups.h: Likewise.
28103 * lib/getusershell.c: Likewise.
28104 * lib/gl_anyavltree_list1.h: Likewise.
28105 * lib/gl_anyavltree_list2.h: Likewise.
28106 * lib/gl_anyhash_list1.h: Likewise.
28107 * lib/gl_anyhash_list2.h: Likewise.
28108 * lib/gl_anylinked_list1.h: Likewise.
28109 * lib/gl_anylinked_list2.h: Likewise.
28110 * lib/gl_anyrbtree_list1.h: Likewise.
28111 * lib/gl_anyrbtree_list2.h: Likewise.
28112 * lib/gl_anytree_list1.h: Likewise.
28113 * lib/gl_anytree_list2.h: Likewise.
28114 * lib/gl_anytree_oset.h: Likewise.
28115 * lib/gl_anytreehash_list1.h: Likewise.
28116 * lib/gl_anytreehash_list2.h: Likewise.
28117 * lib/gl_array_list.c: Likewise.
28118 * lib/gl_array_list.h: Likewise.
28119 * lib/gl_array_oset.c: Likewise.
28120 * lib/gl_array_oset.h: Likewise.
28121 * lib/gl_avltree_list.c: Likewise.
28122 * lib/gl_avltree_list.h: Likewise.
28123 * lib/gl_avltree_oset.c: Likewise.
28124 * lib/gl_avltree_oset.h: Likewise.
28125 * lib/gl_avltreehash_list.c: Likewise.
28126 * lib/gl_avltreehash_list.h: Likewise.
28127 * lib/gl_carray_list.c: Likewise.
28128 * lib/gl_carray_list.h: Likewise.
28129 * lib/gl_linked_list.c: Likewise.
28130 * lib/gl_linked_list.h: Likewise.
28131 * lib/gl_linkedhash_list.c: Likewise.
28132 * lib/gl_linkedhash_list.h: Likewise.
28133 * lib/gl_list.c: Likewise.
28134 * lib/gl_list.h: Likewise.
28135 * lib/gl_oset.c: Likewise.
28136 * lib/gl_oset.h: Likewise.
28137 * lib/gl_rbtree_list.c: Likewise.
28138 * lib/gl_rbtree_list.h: Likewise.
28139 * lib/gl_rbtree_oset.c: Likewise.
28140 * lib/gl_rbtree_oset.h: Likewise.
28141 * lib/gl_rbtreehash_list.c: Likewise.
28142 * lib/gl_rbtreehash_list.h: Likewise.
28143 * lib/gl_sublist.c: Likewise.
28144 * lib/gl_sublist.h: Likewise.
28145 * lib/group-member.c: Likewise.
28146 * lib/group-member.h: Likewise.
28147 * lib/hard-locale.c: Likewise.
28148 * lib/hard-locale.h: Likewise.
28149 * lib/hash-pjw.c: Likewise.
28150 * lib/hash-pjw.h: Likewise.
28151 * lib/hash-triple.c: Likewise.
28152 * lib/hash.c: Likewise.
28153 * lib/hash.h: Likewise.
28154 * lib/human.c: Likewise.
28155 * lib/human.h: Likewise.
28156 * lib/i-ring.c: Likewise.
28157 * lib/i-ring.h: Likewise.
28158 * lib/idcache.c: Likewise.
28159 * lib/imaxabs.c: Likewise.
28160 * lib/imaxdiv.c: Likewise.
28161 * lib/inet_pton.c: Likewise.
28162 * lib/inet_pton.h: Likewise.
28163 * lib/intprops.h: Likewise.
28164 * lib/inttostr.c: Likewise.
28165 * lib/inttostr.h: Likewise.
28166 * lib/inttypes.in.h: Likewise.
28167 * lib/isapipe.c: Likewise.
28168 * lib/isdir.c: Likewise.
28169 * lib/isnan.c: Likewise.
28170 * lib/isnan.h: Likewise.
28171 * lib/isnanf.c: Likewise.
28172 * lib/isnanf.h: Likewise.
28173 * lib/isnanl-nolibm.h: Likewise.
28174 * lib/isnanl.c: Likewise.
28175 * lib/isnanl.h: Likewise.
28176 * lib/javacomp.c: Likewise.
28177 * lib/javacomp.h: Likewise.
28178 * lib/javaexec.c: Likewise.
28179 * lib/javaexec.h: Likewise.
28180 * lib/javaversion.c: Likewise.
28181 * lib/javaversion.h: Likewise.
28182 * lib/javaversion.java: Likewise.
28183 * lib/lbrkprop.h: Likewise.
28184 * lib/lchmod.h: Likewise.
28185 * lib/lchown.c: Likewise.
28186 * lib/ldexpl.c: Likewise.
28187 * lib/linebreak.c: Likewise.
28188 * lib/linebreak.h: Likewise.
28189 * lib/linebuffer.c: Likewise.
28190 * lib/linebuffer.h: Likewise.
28191 * lib/locale.in.h: Likewise.
28192 * lib/logl.c: Likewise.
28193 * lib/long-options.c: Likewise.
28194 * lib/long-options.h: Likewise.
28195 * lib/lstat.c: Likewise.
28196 * lib/lstat.h: Likewise.
28197 * lib/math.in.h: Likewise.
28198 * lib/mbchar.c: Likewise.
28199 * lib/mbchar.h: Likewise.
28200 * lib/mbfile.h: Likewise.
28201 * lib/mbiter.h: Likewise.
28202 * lib/mbscasecmp.c: Likewise.
28203 * lib/mbscasestr.c: Likewise.
28204 * lib/mbschr.c: Likewise.
28205 * lib/mbscspn.c: Likewise.
28206 * lib/mbslen.c: Likewise.
28207 * lib/mbsncasecmp.c: Likewise.
28208 * lib/mbsnlen.c: Likewise.
28209 * lib/mbspbrk.c: Likewise.
28210 * lib/mbspcasecmp.c: Likewise.
28211 * lib/mbsrchr.c: Likewise.
28212 * lib/mbssep.c: Likewise.
28213 * lib/mbsspn.c: Likewise.
28214 * lib/mbsstr.c: Likewise.
28215 * lib/mbstok_r.c: Likewise.
28216 * lib/mbswidth.c: Likewise.
28217 * lib/mbswidth.h: Likewise.
28218 * lib/mbuiter.h: Likewise.
28219 * lib/memcasecmp.c: Likewise.
28220 * lib/memcasecmp.h: Likewise.
28221 * lib/memchr.c: Likewise.
28222 * lib/memcmp.c: Likewise.
28223 * lib/memcoll.c: Likewise.
28224 * lib/memcoll.h: Likewise.
28225 * lib/memcpy.c: Likewise.
28226 * lib/memrchr.c: Likewise.
28227 * lib/mkancesdirs.c: Likewise.
28228 * lib/mkdir-p.c: Likewise.
28229 * lib/mkdir-p.h: Likewise.
28230 * lib/mkdir.c: Likewise.
28231 * lib/mkdirat.c: Likewise.
28232 * lib/mkdtemp.c: Likewise.
28233 * lib/mkstemp-safer.c: Likewise.
28234 * lib/mkstemp.c: Likewise.
28235 * lib/modechange.c: Likewise.
28236 * lib/modechange.h: Likewise.
28237 * lib/mountlist.c: Likewise.
28238 * lib/mountlist.h: Likewise.
28239 * lib/mpsort.c: Likewise.
28240 * lib/nanosleep.c: Likewise.
28241 * lib/obstack.c: Likewise.
28242 * lib/obstack.h: Likewise.
28243 * lib/open-safer.c: Likewise.
28244 * lib/open.c: Likewise.
28245 * lib/openat-die.c: Likewise.
28246 * lib/openat-priv.h: Likewise.
28247 * lib/openat-proc.c: Likewise.
28248 * lib/openat.c: Likewise.
28249 * lib/openat.h: Likewise.
28250 * lib/pagealign_alloc.c: Likewise.
28251 * lib/pagealign_alloc.h: Likewise.
28252 * lib/physmem.c: Likewise.
28253 * lib/physmem.h: Likewise.
28254 * lib/pipe-safer.c: Likewise.
28255 * lib/pipe.c: Likewise.
28256 * lib/pipe.h: Likewise.
28257 * lib/posixtm.c: Likewise.
28258 * lib/posixtm.h: Likewise.
28259 * lib/posixver.c: Likewise.
28260 * lib/printf-frexp.c: Likewise.
28261 * lib/printf-frexp.h: Likewise.
28262 * lib/printf-frexpl.c: Likewise.
28263 * lib/printf-frexpl.h: Likewise.
28264 * lib/printf.c: Likewise.
28265 * lib/progname.c: Likewise.
28266 * lib/progname.h: Likewise.
28267 * lib/progreloc.c: Likewise.
28268 * lib/putenv.c: Likewise.
28269 * lib/quote.c: Likewise.
28270 * lib/quote.h: Likewise.
28271 * lib/quotearg.c: Likewise.
28272 * lib/quotearg.h: Likewise.
28273 * lib/raise.c: Likewise.
28274 * lib/readline.c: Likewise.
28275 * lib/readline.h: Likewise.
28276 * lib/readlink.c: Likewise.
28277 * lib/readtokens.c: Likewise.
28278 * lib/readtokens.h: Likewise.
28279 * lib/readtokens0.c: Likewise.
28280 * lib/readtokens0.h: Likewise.
28281 * lib/readutmp.c: Likewise.
28282 * lib/readutmp.h: Likewise.
28283 * lib/realloc.c: Likewise.
28284 * lib/relocwrapper.c: Likewise.
28285 * lib/rename-dest-slash.c: Likewise.
28286 * lib/rename.c: Likewise.
28287 * lib/rmdir.c: Likewise.
28288 * lib/rpmatch.c: Likewise.
28289 * lib/safe-read.c: Likewise.
28290 * lib/safe-read.h: Likewise.
28291 * lib/safe-write.c: Likewise.
28292 * lib/safe-write.h: Likewise.
28293 * lib/same-inode.h: Likewise.
28294 * lib/same.c: Likewise.
28295 * lib/same.h: Likewise.
28296 * lib/save-cwd.c: Likewise.
28297 * lib/save-cwd.h: Likewise.
28298 * lib/savedir.c: Likewise.
28299 * lib/savedir.h: Likewise.
28300 * lib/savewd.c: Likewise.
28301 * lib/savewd.h: Likewise.
28302 * lib/search.in.h: Likewise.
28303 * lib/setenv.c: Likewise.
28304 * lib/setenv.h: Likewise.
28305 * lib/settime.c: Likewise.
28306 * lib/sh-quote.c: Likewise.
28307 * lib/sh-quote.h: Likewise.
28308 * lib/sig2str.c: Likewise.
28309 * lib/sig2str.h: Likewise.
28310 * lib/signal.in.h: Likewise.
28311 * lib/signbitd.c: Likewise.
28312 * lib/signbitf.c: Likewise.
28313 * lib/signbitl.c: Likewise.
28314 * lib/sigprocmask.c: Likewise.
28315 * lib/sincosl.c: Likewise.
28316 * lib/sleep.c: Likewise.
28317 * lib/sprintf.c: Likewise.
28318 * lib/sqrtl.c: Likewise.
28319 * lib/stat-time.h: Likewise.
28320 * lib/stdio--.h: Likewise.
28321 * lib/stdio-safer.h: Likewise.
28322 * lib/stdlib--.h: Likewise.
28323 * lib/stdlib-safer.h: Likewise.
28324 * lib/stdlib.in.h: Likewise.
28325 * lib/stpcpy.c: Likewise.
28326 * lib/stpncpy.c: Likewise.
28327 * lib/strchrnul.c: Likewise.
28328 * lib/strcspn.c: Likewise.
28329 * lib/strerror.c: Likewise.
28330 * lib/strftime.c: Likewise.
28331 * lib/strftime.h: Likewise.
28332 * lib/striconveh.c: Likewise.
28333 * lib/striconveh.h: Likewise.
28334 * lib/striconveha.c: Likewise.
28335 * lib/striconveha.h: Likewise.
28336 * lib/stripslash.c: Likewise.
28337 * lib/strnlen1.c: Likewise.
28338 * lib/strnlen1.h: Likewise.
28339 * lib/strtod.c: Likewise.
28340 * lib/strtoimax.c: Likewise.
28341 * lib/strtok_r.c: Likewise.
28342 * lib/strtol.c: Likewise.
28343 * lib/strtoll.c: Likewise.
28344 * lib/strtoul.c: Likewise.
28345 * lib/strtoull.c: Likewise.
28346 * lib/sysexits.in.h: Likewise.
28347 * lib/tempname.c: Likewise.
28348 * lib/tempname.h: Likewise.
28349 * lib/timespec.h: Likewise.
28350 * lib/tls.c: Likewise.
28351 * lib/tls.h: Likewise.
28352 * lib/tmpdir.c: Likewise.
28353 * lib/tmpdir.h: Likewise.
28354 * lib/tmpfile-safer.c: Likewise.
28355 * lib/tmpfile.c: Likewise.
28356 * lib/trigl.c: Likewise.
28357 * lib/trigl.h: Likewise.
28358 * lib/trim.c: Likewise.
28359 * lib/trim.h: Likewise.
28360 * lib/trunc.c: Likewise.
28361 * lib/truncf.c: Likewise.
28362 * lib/truncl.c: Likewise.
28363 * lib/tsearch.c: Likewise.
28364 * lib/unicodeio.c: Likewise.
28365 * lib/unicodeio.h: Likewise.
28366 * lib/unistd--.h: Likewise.
28367 * lib/unistd-safer.h: Likewise.
28368 * lib/unistdio/ulc-fprintf.c: Likewise.
28369 * lib/unistdio/ulc-vfprintf.c: Likewise.
28370 * lib/unlinkdir.c: Likewise.
28371 * lib/unlinkdir.h: Likewise.
28372 * lib/unlocked-io.h: Likewise.
28373 * lib/unsetenv.c: Likewise.
28374 * lib/userspec.c: Likewise.
28375 * lib/utime.c: Likewise.
28376 * lib/utimecmp.c: Likewise.
28377 * lib/utimecmp.h: Likewise.
28378 * lib/utimens.c: Likewise.
28379 * lib/verify.h: Likewise.
28380 * lib/verror.c: Likewise.
28381 * lib/verror.h: Likewise.
28382 * lib/version-etc-fsf.c: Likewise.
28383 * lib/version-etc.c: Likewise.
28384 * lib/version-etc.h: Likewise.
28385 * lib/vfprintf.c: Likewise.
28386 * lib/vprintf.c: Likewise.
28387 * lib/vsprintf.c: Likewise.
28388 * lib/w32spawn.h: Likewise.
28389 * lib/wait-process.c: Likewise.
28390 * lib/wait-process.h: Likewise.
28391 * lib/wcwidth.c: Likewise.
28392 * lib/write-any-file.c: Likewise.
28393 * lib/xalloc-die.c: Likewise.
28394 * lib/xalloc.h: Likewise.
28395 * lib/xasprintf.c: Likewise.
28396 * lib/xgetcwd.c: Likewise.
28397 * lib/xgetcwd.h: Likewise.
28398 * lib/xgetdomainname.c: Likewise.
28399 * lib/xgetdomainname.h: Likewise.
28400 * lib/xgethostname.c: Likewise.
28401 * lib/xmalloc.c: Likewise.
28402 * lib/xmalloca.c: Likewise.
28403 * lib/xmalloca.h: Likewise.
28404 * lib/xmemcoll.c: Likewise.
28405 * lib/xnanosleep.c: Likewise.
28406 * lib/xreadlink.c: Likewise.
28407 * lib/xreadlink.h: Likewise.
28408 * lib/xsetenv.c: Likewise.
28409 * lib/xsetenv.h: Likewise.
28410 * lib/xstriconv.c: Likewise.
28411 * lib/xstriconv.h: Likewise.
28412 * lib/xstrndup.c: Likewise.
28413 * lib/xstrndup.h: Likewise.
28414 * lib/xstrtod.c: Likewise.
28415 * lib/xstrtod.h: Likewise.
28416 * lib/xstrtol-error.c: Likewise.
28417 * lib/xstrtol.c: Likewise.
28418 * lib/xstrtol.h: Likewise.
28419 * lib/xtime.h: Likewise.
28420 * lib/xvasprintf.c: Likewise.
28421 * lib/xvasprintf.h: Likewise.
28422 * lib/yesno.c: Likewise.
28423 * lib/yesno.h: Likewise.
28424 * posix-modules: Likewise.
28425 * tests/test-alloca-opt.c: Likewise.
28426 * tests/test-arcfour.c: Likewise.
28427 * tests/test-arctwo.c: Likewise.
28428 * tests/test-argmatch.c: Likewise.
28429 * tests/test-argp-2.sh: Likewise.
28430 * tests/test-argp.c: Likewise.
28431 * tests/test-arpa_inet.c: Likewise.
28432 * tests/test-array_list.c: Likewise.
28433 * tests/test-array_oset.c: Likewise.
28434 * tests/test-atexit.c: Likewise.
28435 * tests/test-avltree_list.c: Likewise.
28436 * tests/test-avltree_oset.c: Likewise.
28437 * tests/test-avltreehash_list.c: Likewise.
28438 * tests/test-base64.c: Likewise.
28439 * tests/test-binary-io.c: Likewise.
28440 * tests/test-byteswap.c: Likewise.
28441 * tests/test-c-ctype.c: Likewise.
28442 * tests/test-c-strcasecmp.c: Likewise.
28443 * tests/test-c-strcasestr.c: Likewise.
28444 * tests/test-c-strncasecmp.c: Likewise.
28445 * tests/test-c-strstr.c: Likewise.
28446 * tests/test-canonicalize-lgpl.c: Likewise.
28447 * tests/test-canonicalize.c: Likewise.
28448 * tests/test-carray_list.c: Likewise.
28449 * tests/test-ceilf.c: Likewise.
28450 * tests/test-ceill.c: Likewise.
28451 * tests/test-count-one-bits.c: Likewise.
28452 * tests/test-crc.c: Likewise.
28453 * tests/test-dirname.c: Likewise.
28454 * tests/test-fbufmode.c: Likewise.
28455 * tests/test-fcntl.c: Likewise.
28456 * tests/test-fflush.c: Likewise.
28457 * tests/test-floorf.c: Likewise.
28458 * tests/test-floorl.c: Likewise.
28459 * tests/test-fopen.c: Likewise.
28460 * tests/test-fprintf-posix.c: Likewise.
28461 * tests/test-fprintf-posix.h: Likewise.
28462 * tests/test-fpurge.c: Likewise.
28463 * tests/test-freadable.c: Likewise.
28464 * tests/test-freadahead.c: Likewise.
28465 * tests/test-freading.c: Likewise.
28466 * tests/test-freopen.c: Likewise.
28467 * tests/test-frexp.c: Likewise.
28468 * tests/test-frexpl.c: Likewise.
28469 * tests/test-fseek.c: Likewise.
28470 * tests/test-fseeko.c: Likewise.
28471 * tests/test-fseterr.c: Likewise.
28472 * tests/test-fstrcmp.c: Likewise.
28473 * tests/test-ftell.c: Likewise.
28474 * tests/test-ftello.c: Likewise.
28475 * tests/test-fwritable.c: Likewise.
28476 * tests/test-fwriting.c: Likewise.
28477 * tests/test-getaddrinfo.c: Likewise.
28478 * tests/test-getpass.c: Likewise.
28479 * tests/test-gettimeofday.c: Likewise.
28480 * tests/test-hmac-md5.c: Likewise.
28481 * tests/test-hmac-sha1.c: Likewise.
28482 * tests/test-iconv.c: Likewise.
28483 * tests/test-iconvme.c: Likewise.
28484 * tests/test-inttypes.c: Likewise.
28485 * tests/test-isnan.c: Likewise.
28486 * tests/test-isnanf.c: Likewise.
28487 * tests/test-isnanl-nolibm.c: Likewise.
28488 * tests/test-isnanl.c: Likewise.
28489 * tests/test-isnanl.h: Likewise.
28490 * tests/test-ldexpl.c: Likewise.
28491 * tests/test-linked_list.c: Likewise.
28492 * tests/test-linkedhash_list.c: Likewise.
28493 * tests/test-locale.c: Likewise.
28494 * tests/test-localename.c: Likewise.
28495 * tests/test-lock.c: Likewise.
28496 * tests/test-lseek.c: Likewise.
28497 * tests/test-malloca.c: Likewise.
28498 * tests/test-math.c: Likewise.
28499 * tests/test-mbscasecmp.c: Likewise.
28500 * tests/test-mbscasestr1.c: Likewise.
28501 * tests/test-mbscasestr2.c: Likewise.
28502 * tests/test-mbscasestr3.c: Likewise.
28503 * tests/test-mbscasestr4.c: Likewise.
28504 * tests/test-mbschr.c: Likewise.
28505 * tests/test-mbscspn.c: Likewise.
28506 * tests/test-mbsncasecmp.c: Likewise.
28507 * tests/test-mbspbrk.c: Likewise.
28508 * tests/test-mbspcasecmp.c: Likewise.
28509 * tests/test-mbsrchr.c: Likewise.
28510 * tests/test-mbsspn.c: Likewise.
28511 * tests/test-mbsstr1.c: Likewise.
28512 * tests/test-mbsstr2.c: Likewise.
28513 * tests/test-mbsstr3.c: Likewise.
28514 * tests/test-md5.c: Likewise.
28515 * tests/test-memmem.c: Likewise.
28516 * tests/test-netinet_in.c: Likewise.
28517 * tests/test-open.c: Likewise.
28518 * tests/test-printf-frexp.c: Likewise.
28519 * tests/test-printf-frexpl.c: Likewise.
28520 * tests/test-printf-posix.c: Likewise.
28521 * tests/test-printf-posix.h: Likewise.
28522 * tests/test-rbtree_list.c: Likewise.
28523 * tests/test-rbtree_oset.c: Likewise.
28524 * tests/test-rbtreehash_list.c: Likewise.
28525 * tests/test-read-file.c: Likewise.
28526 * tests/test-rijndael.c: Likewise.
28527 * tests/test-search.c: Likewise.
28528 * tests/test-signbit.c: Likewise.
28529 * tests/test-sleep.c: Likewise.
28530 * tests/test-snprintf-posix.c: Likewise.
28531 * tests/test-snprintf-posix.h: Likewise.
28532 * tests/test-snprintf.c: Likewise.
28533 * tests/test-sprintf-posix.c: Likewise.
28534 * tests/test-sprintf-posix.h: Likewise.
28535 * tests/test-stat-time.c: Likewise.
28536 * tests/test-stdbool.c: Likewise.
28537 * tests/test-stdint.c: Likewise.
28538 * tests/test-stdio.c: Likewise.
28539 * tests/test-stdlib.c: Likewise.
28540 * tests/test-stpncpy.c: Likewise.
28541 * tests/test-strcasestr.c: Likewise.
28542 * tests/test-striconv.c: Likewise.
28543 * tests/test-striconveh.c: Likewise.
28544 * tests/test-striconveha.c: Likewise.
28545 * tests/test-string.c: Likewise.
28546 * tests/test-sys_select.c: Likewise.
28547 * tests/test-sys_socket.c: Likewise.
28548 * tests/test-sys_stat.c: Likewise.
28549 * tests/test-sys_time.c: Likewise.
28550 * tests/test-sysexits.c: Likewise.
28551 * tests/test-time.c: Likewise.
28552 * tests/test-tls.c: Likewise.
28553 * tests/test-trunc.c: Likewise.
28554 * tests/test-truncf.c: Likewise.
28555 * tests/test-truncl.c: Likewise.
28556 * tests/test-unistd.c: Likewise.
28557 * tests/test-vasnprintf-posix.c: Likewise.
28558 * tests/test-vasnprintf-posix2.c: Likewise.
28559 * tests/test-vasnprintf.c: Likewise.
28560 * tests/test-vasprintf-posix.c: Likewise.
28561 * tests/test-vasprintf.c: Likewise.
28562 * tests/test-verify.c: Likewise.
28563 * tests/test-vfprintf-posix.c: Likewise.
28564 * tests/test-vprintf-posix.c: Likewise.
28565 * tests/test-vsnprintf-posix.c: Likewise.
28566 * tests/test-vsnprintf.c: Likewise.
28567 * tests/test-vsprintf-posix.c: Likewise.
28568 * tests/test-wchar.c: Likewise.
28569 * tests/test-wctype.c: Likewise.
28570 * tests/test-wcwidth.c: Likewise.
28571 * tests/test-xstrtol.c: Likewise.
28572 * tests/test-xvasprintf.c: Likewise.
28573 * tests/uniconv/test-u16-conv-from-enc.c: Likewise.
28574 * tests/uniconv/test-u16-conv-to-enc.c: Likewise.
28575 * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
28576 * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
28577 * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
28578 * tests/uniconv/test-u32-conv-to-enc.c: Likewise.
28579 * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
28580 * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
28581 * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
28582 * tests/uniconv/test-u8-conv-to-enc.c: Likewise.
28583 * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
28584 * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
28585 * tests/uniname/test-uninames.c: Likewise.
28586 * tests/unistdio/test-u16-asnprintf1.c: Likewise.
28587 * tests/unistdio/test-u16-asnprintf1.h: Likewise.
28588 * tests/unistdio/test-u16-printf1.h: Likewise.
28589 * tests/unistdio/test-u16-vasnprintf1.c: Likewise.
28590 * tests/unistdio/test-u16-vasnprintf2.c: Likewise.
28591 * tests/unistdio/test-u16-vasnprintf3.c: Likewise.
28592 * tests/unistdio/test-u16-vasprintf1.c: Likewise.
28593 * tests/unistdio/test-u16-vsnprintf1.c: Likewise.
28594 * tests/unistdio/test-u16-vsprintf1.c: Likewise.
28595 * tests/unistdio/test-u32-asnprintf1.c: Likewise.
28596 * tests/unistdio/test-u32-asnprintf1.h: Likewise.
28597 * tests/unistdio/test-u32-printf1.h: Likewise.
28598 * tests/unistdio/test-u32-vasnprintf1.c: Likewise.
28599 * tests/unistdio/test-u32-vasnprintf2.c: Likewise.
28600 * tests/unistdio/test-u32-vasnprintf3.c: Likewise.
28601 * tests/unistdio/test-u32-vasprintf1.c: Likewise.
28602 * tests/unistdio/test-u32-vsnprintf1.c: Likewise.
28603 * tests/unistdio/test-u32-vsprintf1.c: Likewise.
28604 * tests/unistdio/test-u8-asnprintf1.c: Likewise.
28605 * tests/unistdio/test-u8-asnprintf1.h: Likewise.
28606 * tests/unistdio/test-u8-printf1.h: Likewise.
28607 * tests/unistdio/test-u8-vasnprintf1.c: Likewise.
28608 * tests/unistdio/test-u8-vasnprintf2.c: Likewise.
28609 * tests/unistdio/test-u8-vasnprintf3.c: Likewise.
28610 * tests/unistdio/test-u8-vasprintf1.c: Likewise.
28611 * tests/unistdio/test-u8-vsnprintf1.c: Likewise.
28612 * tests/unistdio/test-u8-vsprintf1.c: Likewise.
28613 * tests/unistdio/test-ulc-asnprintf1.c: Likewise.
28614 * tests/unistdio/test-ulc-asnprintf1.h: Likewise.
28615 * tests/unistdio/test-ulc-printf1.h: Likewise.
28616 * tests/unistdio/test-ulc-vasnprintf1.c: Likewise.
28617 * tests/unistdio/test-ulc-vasnprintf2.c: Likewise.
28618 * tests/unistdio/test-ulc-vasnprintf3.c: Likewise.
28619 * tests/unistdio/test-ulc-vasprintf1.c: Likewise.
28620 * tests/unistdio/test-ulc-vsnprintf1.c: Likewise.
28621 * tests/unistdio/test-ulc-vsprintf1.c: Likewise.
28622 * tests/uniwidth/test-u16-strwidth.c: Likewise.
28623 * tests/uniwidth/test-u16-width.c: Likewise.
28624 * tests/uniwidth/test-u32-strwidth.c: Likewise.
28625 * tests/uniwidth/test-u32-width.c: Likewise.
28626 * tests/uniwidth/test-u8-strwidth.c: Likewise.
28627 * tests/uniwidth/test-u8-width.c: Likewise.
28628 * tests/uniwidth/test-uc_width.c: Likewise.
28629 * config/srclist-update: Likewise.
28630 (fixlicense): Update to GPLv3+.
28632 Change copyright notice from LGPLv2.1+ to LGPLv3+.
28633 * tests/test-tsearch.c: Change copyright notice.
28635 Change copyright notice from LGPLv2.0+ to LGPLv3+.
28636 * lib/c-strcaseeq.h: Change copyright notice.
28637 * lib/streq.h: Likewise.
28638 * lib/uniconv.h: Likewise.
28639 * lib/uniconv/u-conv-from-enc.h: Likewise.
28640 * lib/uniconv/u-conv-to-enc.h: Likewise.
28641 * lib/uniconv/u-strconv-from-enc.h: Likewise.
28642 * lib/uniconv/u-strconv-to-enc.h: Likewise.
28643 * lib/uniconv/u16-conv-from-enc.c: Likewise.
28644 * lib/uniconv/u16-conv-to-enc.c: Likewise.
28645 * lib/uniconv/u16-strconv-from-enc.c: Likewise.
28646 * lib/uniconv/u16-strconv-from-locale.c: Likewise.
28647 * lib/uniconv/u16-strconv-to-enc.c: Likewise.
28648 * lib/uniconv/u16-strconv-to-locale.c: Likewise.
28649 * lib/uniconv/u32-conv-from-enc.c: Likewise.
28650 * lib/uniconv/u32-conv-to-enc.c: Likewise.
28651 * lib/uniconv/u32-strconv-from-enc.c: Likewise.
28652 * lib/uniconv/u32-strconv-from-locale.c: Likewise.
28653 * lib/uniconv/u32-strconv-to-enc.c: Likewise.
28654 * lib/uniconv/u32-strconv-to-locale.c: Likewise.
28655 * lib/uniconv/u8-conv-from-enc.c: Likewise.
28656 * lib/uniconv/u8-conv-to-enc.c: Likewise.
28657 * lib/uniconv/u8-strconv-from-enc.c: Likewise.
28658 * lib/uniconv/u8-strconv-from-locale.c: Likewise.
28659 * lib/uniconv/u8-strconv-to-enc.c: Likewise.
28660 * lib/uniconv/u8-strconv-to-locale.c: Likewise.
28661 * lib/uniname.h: Likewise.
28662 * lib/uniname/uniname.c: Likewise.
28663 * lib/unistdio.h: Likewise.
28664 * lib/unistdio/u-asnprintf.h: Likewise.
28665 * lib/unistdio/u-asprintf.h: Likewise.
28666 * lib/unistdio/u-printf-args.c: Likewise.
28667 * lib/unistdio/u-printf-args.h: Likewise.
28668 * lib/unistdio/u-printf-parse.h: Likewise.
28669 * lib/unistdio/u-snprintf.h: Likewise.
28670 * lib/unistdio/u-sprintf.h: Likewise.
28671 * lib/unistdio/u-vasprintf.h: Likewise.
28672 * lib/unistdio/u-vsnprintf.h: Likewise.
28673 * lib/unistdio/u-vsprintf.h: Likewise.
28674 * lib/unistdio/u16-asnprintf.c: Likewise.
28675 * lib/unistdio/u16-asprintf.c: Likewise.
28676 * lib/unistdio/u16-printf-parse.c: Likewise.
28677 * lib/unistdio/u16-snprintf.c: Likewise.
28678 * lib/unistdio/u16-sprintf.c: Likewise.
28679 * lib/unistdio/u16-u16-asnprintf.c: Likewise.
28680 * lib/unistdio/u16-u16-asprintf.c: Likewise.
28681 * lib/unistdio/u16-u16-snprintf.c: Likewise.
28682 * lib/unistdio/u16-u16-sprintf.c: Likewise.
28683 * lib/unistdio/u16-u16-vasnprintf.c: Likewise.
28684 * lib/unistdio/u16-u16-vasprintf.c: Likewise.
28685 * lib/unistdio/u16-u16-vsnprintf.c: Likewise.
28686 * lib/unistdio/u16-u16-vsprintf.c: Likewise.
28687 * lib/unistdio/u16-vasnprintf.c: Likewise.
28688 * lib/unistdio/u16-vasprintf.c: Likewise.
28689 * lib/unistdio/u16-vsnprintf.c: Likewise.
28690 * lib/unistdio/u16-vsprintf.c: Likewise.
28691 * lib/unistdio/u32-asnprintf.c: Likewise.
28692 * lib/unistdio/u32-asprintf.c: Likewise.
28693 * lib/unistdio/u32-printf-parse.c: Likewise.
28694 * lib/unistdio/u32-snprintf.c: Likewise.
28695 * lib/unistdio/u32-sprintf.c: Likewise.
28696 * lib/unistdio/u32-u32-asnprintf.c: Likewise.
28697 * lib/unistdio/u32-u32-asprintf.c: Likewise.
28698 * lib/unistdio/u32-u32-snprintf.c: Likewise.
28699 * lib/unistdio/u32-u32-sprintf.c: Likewise.
28700 * lib/unistdio/u32-u32-vasnprintf.c: Likewise.
28701 * lib/unistdio/u32-u32-vasprintf.c: Likewise.
28702 * lib/unistdio/u32-u32-vsnprintf.c: Likewise.
28703 * lib/unistdio/u32-u32-vsprintf.c: Likewise.
28704 * lib/unistdio/u32-vasnprintf.c: Likewise.
28705 * lib/unistdio/u32-vasprintf.c: Likewise.
28706 * lib/unistdio/u32-vsnprintf.c: Likewise.
28707 * lib/unistdio/u32-vsprintf.c: Likewise.
28708 * lib/unistdio/u8-asnprintf.c: Likewise.
28709 * lib/unistdio/u8-asprintf.c: Likewise.
28710 * lib/unistdio/u8-printf-parse.c: Likewise.
28711 * lib/unistdio/u8-snprintf.c: Likewise.
28712 * lib/unistdio/u8-sprintf.c: Likewise.
28713 * lib/unistdio/u8-u8-asnprintf.c: Likewise.
28714 * lib/unistdio/u8-u8-asprintf.c: Likewise.
28715 * lib/unistdio/u8-u8-snprintf.c: Likewise.
28716 * lib/unistdio/u8-u8-sprintf.c: Likewise.
28717 * lib/unistdio/u8-u8-vasnprintf.c: Likewise.
28718 * lib/unistdio/u8-u8-vasprintf.c: Likewise.
28719 * lib/unistdio/u8-u8-vsnprintf.c: Likewise.
28720 * lib/unistdio/u8-u8-vsprintf.c: Likewise.
28721 * lib/unistdio/u8-vasnprintf.c: Likewise.
28722 * lib/unistdio/u8-vasprintf.c: Likewise.
28723 * lib/unistdio/u8-vsnprintf.c: Likewise.
28724 * lib/unistdio/u8-vsprintf.c: Likewise.
28725 * lib/unistdio/ulc-asnprintf.c: Likewise.
28726 * lib/unistdio/ulc-asprintf.c: Likewise.
28727 * lib/unistdio/ulc-printf-parse.c: Likewise.
28728 * lib/unistdio/ulc-snprintf.c: Likewise.
28729 * lib/unistdio/ulc-sprintf.c: Likewise.
28730 * lib/unistdio/ulc-vasnprintf.c: Likewise.
28731 * lib/unistdio/ulc-vasprintf.c: Likewise.
28732 * lib/unistdio/ulc-vsnprintf.c: Likewise.
28733 * lib/unistdio/ulc-vsprintf.c: Likewise.
28734 * lib/unistr.h: Likewise.
28735 * lib/unistr/u-cpy-alloc.h: Likewise.
28736 * lib/unistr/u-cpy.h: Likewise.
28737 * lib/unistr/u-endswith.h: Likewise.
28738 * lib/unistr/u-move.h: Likewise.
28739 * lib/unistr/u-set.h: Likewise.
28740 * lib/unistr/u-startswith.h: Likewise.
28741 * lib/unistr/u-stpcpy.h: Likewise.
28742 * lib/unistr/u-stpncpy.h: Likewise.
28743 * lib/unistr/u-strcat.h: Likewise.
28744 * lib/unistr/u-strcpy.h: Likewise.
28745 * lib/unistr/u-strcspn.h: Likewise.
28746 * lib/unistr/u-strdup.h: Likewise.
28747 * lib/unistr/u-strlen.h: Likewise.
28748 * lib/unistr/u-strncat.h: Likewise.
28749 * lib/unistr/u-strncpy.h: Likewise.
28750 * lib/unistr/u-strnlen.h: Likewise.
28751 * lib/unistr/u-strpbrk.h: Likewise.
28752 * lib/unistr/u-strspn.h: Likewise.
28753 * lib/unistr/u-strstr.h: Likewise.
28754 * lib/unistr/u-strtok.h: Likewise.
28755 * lib/unistr/u16-check.c: Likewise.
28756 * lib/unistr/u16-chr.c: Likewise.
28757 * lib/unistr/u16-cmp.c: Likewise.
28758 * lib/unistr/u16-cpy-alloc.c: Likewise.
28759 * lib/unistr/u16-cpy.c: Likewise.
28760 * lib/unistr/u16-endswith.c: Likewise.
28761 * lib/unistr/u16-mblen.c: Likewise.
28762 * lib/unistr/u16-mbsnlen.c: Likewise.
28763 * lib/unistr/u16-mbtouc-aux.c: Likewise.
28764 * lib/unistr/u16-mbtouc-unsafe-aux.c: Likewise.
28765 * lib/unistr/u16-mbtouc-unsafe.c: Likewise.
28766 * lib/unistr/u16-mbtouc.c: Likewise.
28767 * lib/unistr/u16-mbtoucr.c: Likewise.
28768 * lib/unistr/u16-move.c: Likewise.
28769 * lib/unistr/u16-next.c: Likewise.
28770 * lib/unistr/u16-prev.c: Likewise.
28771 * lib/unistr/u16-set.c: Likewise.
28772 * lib/unistr/u16-startswith.c: Likewise.
28773 * lib/unistr/u16-stpcpy.c: Likewise.
28774 * lib/unistr/u16-stpncpy.c: Likewise.
28775 * lib/unistr/u16-strcat.c: Likewise.
28776 * lib/unistr/u16-strchr.c: Likewise.
28777 * lib/unistr/u16-strcmp.c: Likewise.
28778 * lib/unistr/u16-strcpy.c: Likewise.
28779 * lib/unistr/u16-strcspn.c: Likewise.
28780 * lib/unistr/u16-strdup.c: Likewise.
28781 * lib/unistr/u16-strlen.c: Likewise.
28782 * lib/unistr/u16-strmblen.c: Likewise.
28783 * lib/unistr/u16-strmbtouc.c: Likewise.
28784 * lib/unistr/u16-strncat.c: Likewise.
28785 * lib/unistr/u16-strncmp.c: Likewise.
28786 * lib/unistr/u16-strncpy.c: Likewise.
28787 * lib/unistr/u16-strnlen.c: Likewise.
28788 * lib/unistr/u16-strpbrk.c: Likewise.
28789 * lib/unistr/u16-strrchr.c: Likewise.
28790 * lib/unistr/u16-strspn.c: Likewise.
28791 * lib/unistr/u16-strstr.c: Likewise.
28792 * lib/unistr/u16-strtok.c: Likewise.
28793 * lib/unistr/u16-to-u32.c: Likewise.
28794 * lib/unistr/u16-to-u8.c: Likewise.
28795 * lib/unistr/u16-uctomb-aux.c: Likewise.
28796 * lib/unistr/u16-uctomb.c: Likewise.
28797 * lib/unistr/u32-check.c: Likewise.
28798 * lib/unistr/u32-chr.c: Likewise.
28799 * lib/unistr/u32-cmp.c: Likewise.
28800 * lib/unistr/u32-cpy-alloc.c: Likewise.
28801 * lib/unistr/u32-cpy.c: Likewise.
28802 * lib/unistr/u32-endswith.c: Likewise.
28803 * lib/unistr/u32-mblen.c: Likewise.
28804 * lib/unistr/u32-mbsnlen.c: Likewise.
28805 * lib/unistr/u32-mbtouc-unsafe.c: Likewise.
28806 * lib/unistr/u32-mbtouc.c: Likewise.
28807 * lib/unistr/u32-mbtoucr.c: Likewise.
28808 * lib/unistr/u32-move.c: Likewise.
28809 * lib/unistr/u32-next.c: Likewise.
28810 * lib/unistr/u32-prev.c: Likewise.
28811 * lib/unistr/u32-set.c: Likewise.
28812 * lib/unistr/u32-startswith.c: Likewise.
28813 * lib/unistr/u32-stpcpy.c: Likewise.
28814 * lib/unistr/u32-stpncpy.c: Likewise.
28815 * lib/unistr/u32-strcat.c: Likewise.
28816 * lib/unistr/u32-strchr.c: Likewise.
28817 * lib/unistr/u32-strcmp.c: Likewise.
28818 * lib/unistr/u32-strcpy.c: Likewise.
28819 * lib/unistr/u32-strcspn.c: Likewise.
28820 * lib/unistr/u32-strdup.c: Likewise.
28821 * lib/unistr/u32-strlen.c: Likewise.
28822 * lib/unistr/u32-strmblen.c: Likewise.
28823 * lib/unistr/u32-strmbtouc.c: Likewise.
28824 * lib/unistr/u32-strncat.c: Likewise.
28825 * lib/unistr/u32-strncmp.c: Likewise.
28826 * lib/unistr/u32-strncpy.c: Likewise.
28827 * lib/unistr/u32-strnlen.c: Likewise.
28828 * lib/unistr/u32-strpbrk.c: Likewise.
28829 * lib/unistr/u32-strrchr.c: Likewise.
28830 * lib/unistr/u32-strspn.c: Likewise.
28831 * lib/unistr/u32-strstr.c: Likewise.
28832 * lib/unistr/u32-strtok.c: Likewise.
28833 * lib/unistr/u32-to-u16.c: Likewise.
28834 * lib/unistr/u32-to-u8.c: Likewise.
28835 * lib/unistr/u32-uctomb.c: Likewise.
28836 * lib/unistr/u8-check.c: Likewise.
28837 * lib/unistr/u8-chr.c: Likewise.
28838 * lib/unistr/u8-cmp.c: Likewise.
28839 * lib/unistr/u8-cpy-alloc.c: Likewise.
28840 * lib/unistr/u8-cpy.c: Likewise.
28841 * lib/unistr/u8-endswith.c: Likewise.
28842 * lib/unistr/u8-mblen.c: Likewise.
28843 * lib/unistr/u8-mbsnlen.c: Likewise.
28844 * lib/unistr/u8-mbtouc-aux.c: Likewise.
28845 * lib/unistr/u8-mbtouc-unsafe-aux.c: Likewise.
28846 * lib/unistr/u8-mbtouc-unsafe.c: Likewise.
28847 * lib/unistr/u8-mbtouc.c: Likewise.
28848 * lib/unistr/u8-mbtoucr.c: Likewise.
28849 * lib/unistr/u8-move.c: Likewise.
28850 * lib/unistr/u8-next.c: Likewise.
28851 * lib/unistr/u8-prev.c: Likewise.
28852 * lib/unistr/u8-set.c: Likewise.
28853 * lib/unistr/u8-startswith.c: Likewise.
28854 * lib/unistr/u8-stpcpy.c: Likewise.
28855 * lib/unistr/u8-stpncpy.c: Likewise.
28856 * lib/unistr/u8-strcat.c: Likewise.
28857 * lib/unistr/u8-strchr.c: Likewise.
28858 * lib/unistr/u8-strcmp.c: Likewise.
28859 * lib/unistr/u8-strcpy.c: Likewise.
28860 * lib/unistr/u8-strcspn.c: Likewise.
28861 * lib/unistr/u8-strdup.c: Likewise.
28862 * lib/unistr/u8-strlen.c: Likewise.
28863 * lib/unistr/u8-strmblen.c: Likewise.
28864 * lib/unistr/u8-strmbtouc.c: Likewise.
28865 * lib/unistr/u8-strncat.c: Likewise.
28866 * lib/unistr/u8-strncmp.c: Likewise.
28867 * lib/unistr/u8-strncpy.c: Likewise.
28868 * lib/unistr/u8-strnlen.c: Likewise.
28869 * lib/unistr/u8-strpbrk.c: Likewise.
28870 * lib/unistr/u8-strrchr.c: Likewise.
28871 * lib/unistr/u8-strspn.c: Likewise.
28872 * lib/unistr/u8-strstr.c: Likewise.
28873 * lib/unistr/u8-strtok.c: Likewise.
28874 * lib/unistr/u8-to-u16.c: Likewise.
28875 * lib/unistr/u8-to-u32.c: Likewise.
28876 * lib/unistr/u8-uctomb-aux.c: Likewise.
28877 * lib/unistr/u8-uctomb.c: Likewise.
28878 * lib/unitypes.h: Likewise.
28879 * lib/uniwidth.h: Likewise.
28880 * lib/uniwidth/cjk.h: Likewise.
28881 * lib/uniwidth/u16-strwidth.c: Likewise.
28882 * lib/uniwidth/u16-width.c: Likewise.
28883 * lib/uniwidth/u32-strwidth.c: Likewise.
28884 * lib/uniwidth/u32-width.c: Likewise.
28885 * lib/uniwidth/u8-strwidth.c: Likewise.
28886 * lib/uniwidth/u8-width.c: Likewise.
28887 * lib/uniwidth/width.c: Likewise.
28889 2007-10-07 Bruno Haible <bruno@clisp.org>
28891 * lib/inttypes.in.h: Change copyright notice from LGPL to GPL.
28892 The file is still under LGPL (see modules/inttypes).
28894 2007-10-06 Bruno Haible <bruno@clisp.org>
28896 * modules/trunc (Dependencies): Add 'extensions'.
28897 * m4/trunc.m4 (gl_FUNC_TRUNC): Require gl_USE_SYSTEM_EXTENSIONS.
28898 Reported by Ben Pfaff <blp@gnu.org>.
28900 2007-10-06 Bruno Haible <bruno@clisp.org>
28902 * modules/freopen-tests: New file.
28903 * tests/test-freopen.c: New file.
28905 * modules/fopen-tests: New file.
28906 * tests/test-fopen.c: New file.
28908 * modules/fopen: New file.
28909 * lib/fopen.c: New file.
28910 * m4/fopen.m4: New file.
28911 * modules/freopen: New file.
28912 * lib/freopen.c: New file.
28913 * m4/freopen.m4: New file.
28914 * lib/stdio.in.h (fopen, freopen): New declarations.
28915 * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize also GNULIB_FOPEN,
28916 GNULIB_FREOPEN, REPLACE_FOPEN, REPLACE_FREOPEN.
28917 * modules/stdio (Makefile.am): Substitute also GNULIB_FOPEN,
28918 GNULIB_FREOPEN, REPLACE_FOPEN, REPLACE_FREOPEN.
28919 * doc/functions/fopen.texi: Mention the 'fopen' module.
28920 * doc/functions/freopen.texi: Mention the 'freopen' module.
28922 2007-10-06 Bruno Haible <bruno@clisp.org>
28924 * modules/open-tests: New file.
28925 * tests/test-open.c: New file.
28927 * modules/open: New file.
28928 * lib/open.c: New file.
28929 * m4/open.m4: New file.
28930 * lib/fchdir.c (open): If the gnulib module 'open' is used, do what
28932 * lib/fcntl.in.h (open): Declare also if replaced by the 'open' module.
28933 * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR, gl_FCNTL_H_DEFAULTS): New
28935 (gl_FCNTL_H): Require gl_FCNTL_H_DEFAULTS.
28936 * modules/fcntl (Makefile.am): Also substitute GNULIB_OPEN and
28938 * doc/functions/open.texi: Mention the 'open' module.
28940 2007-10-04 Bruno Haible <bruno@clisp.org>
28942 * modules/ceill-tests: New file.
28943 * tests/test-ceill.c: New file.
28945 * modules/ceill: New file.
28946 * lib/ceill.c: Replace entire file.
28947 * m4/ceill.m4: New file.
28948 * lib/math.in.h (ceill): Replace declaration.
28949 * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEILL.
28950 * modules/math (Makefile.am): Substitute also GNULIB_CEILL.
28951 * doc/functions/ceill.texi: Mention the 'ceill' module.
28952 * modules/mathl (Files): Remove lib/ceill.c.
28953 (Depends-on): Add ceill.
28955 2007-10-04 Bruno Haible <bruno@clisp.org>
28957 * modules/ceilf-tests: New file.
28958 * tests/test-ceilf.c: New file.
28960 * modules/ceilf: New file.
28961 * lib/ceil.c: New file.
28962 * lib/ceilf.c: New file.
28963 * m4/ceilf.m4: New file.
28964 * lib/math.in.h (ceilf): New declaration.
28965 * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEILF and
28967 * modules/math (Makefile.am): Substitute also GNULIB_CEILF and
28969 * doc/functions/ceilf.texi: Mention the 'ceilf' module.
28971 2007-10-04 Bruno Haible <bruno@clisp.org>
28973 * modules/floorl-tests: New file.
28974 * tests/test-floorl.c: New file.
28976 * modules/floorl: New file.
28977 * lib/floorl.c: Replace entire file.
28978 * m4/floorl.m4: New file.
28979 * lib/math.in.h (floorl): Replace declaration.
28980 * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOORL.
28981 * modules/math (Makefile.am): Substitute also GNULIB_FLOORL.
28982 * doc/functions/floorl.texi: Mention the 'floorl' module.
28983 * modules/mathl (Files): Remove lib/floorl.c.
28984 (Depends-on): Add floorl.
28986 2007-10-04 Bruno Haible <bruno@clisp.org>
28988 * modules/floorf-tests: New file.
28989 * tests/test-floorf.c: New file.
28991 * modules/floorf: New file.
28992 * lib/floor.c: New file.
28993 * lib/floorf.c: New file.
28994 * m4/floorf.m4: New file.
28995 * lib/math.in.h (floorf): New declaration.
28996 * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOORF and
28998 * modules/math (Makefile.am): Substitute also GNULIB_FLOORF and
29000 * doc/functions/floorf.texi: Mention the 'floorf' module.
29002 2007-10-04 Benoit Sigoure <tsuna@lrde.epita.fr>
29003 Bruno Haible <bruno@clisp.org>
29005 Advertise for the Git server instead of the CVS server.
29006 * doc/gnulib-intro.texi (Steady Development): Mention the Git
29007 repository instead of the CVS one.
29008 * doc/gnulib-tool.texi (VCS Issues): Renamed from "CVS Issues". Talk
29009 about all VCS systems generically.
29010 * doc/gnulib.texi (Introduction): Capitalize `Git'.
29012 2007-10-04 Bruno Haible <bruno@clisp.org>
29014 * doc/gnulib.texi (Function Substitutes): Explain what an absent module
29016 Reported by Benoît Sigoure <tsuna@lrde.epita.fr>.
29018 2007-10-04 Bruno Haible <bruno@clisp.org>
29020 * modules/truncl-tests: New file.
29021 * tests/test-truncl.c: New file.
29023 * modules/truncl: New file.
29024 * lib/truncl.c: New file.
29025 * m4/truncl.m4: New file.
29026 * lib/math.in.h (truncl): New declaration.
29027 * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNCL and
29029 * modules/math (Makefile.am): Substitute also GNULIB_TRUNCL and
29031 * doc/functions/truncl.texi: Mention the 'truncl' module.
29033 2007-10-04 Bruno Haible <bruno@clisp.org>
29035 * modules/truncf-tests: New file.
29036 * tests/test-truncf.c: New file.
29038 * modules/truncf: New file.
29039 * lib/trunc.c: Make paramerizable through USE_* macros.
29040 * lib/truncf.c: New file.
29041 * m4/truncf.m4: New file.
29042 * lib/math.in.h (truncf): New declaration.
29043 * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNCF and
29045 * modules/math (Makefile.am): Substitute also GNULIB_TRUNCF and
29047 * doc/functions/truncf.texi: Mention the 'truncf' module.
29049 2007-10-03 Bruno Haible <bruno@clisp.org>
29051 * gnulib-tool (func_get_automake_snippet): Synthesize an EXTRA_DIST
29052 augmentation also for tests modules.
29053 * modules/argp-tests (Makefile.am): Remove EXTRA_DIST augmentation.
29054 * modules/atexit-tests (Makefile.am): Likewise.
29055 * modules/binary-io-tests (Makefile.am): Likewise.
29056 * modules/c-strcase-tests (Makefile.am): Likewise.
29057 * modules/canonicalize-lgpl-tests (Makefile.am): Likewise.
29058 * modules/canonicalize-tests (Makefile.am): Likewise.
29059 * modules/closein-tests (Makefile.am): Likewise.
29060 * modules/fprintf-posix-tests (Makefile.am): Likewise.
29061 * modules/freadahead-tests (Makefile.am): Likewise.
29062 * modules/fseek-tests (Makefile.am): Likewise.
29063 * modules/fseeko-tests (Makefile.am): Likewise.
29064 * modules/ftell-tests (Makefile.am): Likewise.
29065 * modules/ftello-tests (Makefile.am): Likewise.
29066 * modules/isnanl-nolibm-tests (Makefile.am): Likewise.
29067 * modules/isnanl-tests (Makefile.am): Likewise.
29068 * modules/lseek-tests (Makefile.am): Likewise.
29069 * modules/mbscasecmp-tests (Makefile.am): Likewise.
29070 * modules/mbscasestr-tests (Makefile.am): Likewise.
29071 * modules/mbschr-tests (Makefile.am): Likewise.
29072 * modules/mbscspn-tests (Makefile.am): Likewise.
29073 * modules/mbsncasecmp-tests (Makefile.am): Likewise.
29074 * modules/mbspbrk-tests (Makefile.am): Likewise.
29075 * modules/mbspcasecmp-tests (Makefile.am): Likewise.
29076 * modules/mbsrchr-tests (Makefile.am): Likewise.
29077 * modules/mbsspn-tests (Makefile.am): Likewise.
29078 * modules/mbsstr-tests (Makefile.am): Likewise.
29079 * modules/printf-posix-tests (Makefile.am): Likewise.
29080 * modules/snprintf-posix-tests (Makefile.am): Likewise.
29081 * modules/sprintf-posix-tests (Makefile.am): Likewise.
29082 * modules/tsearch-tests (Makefile.am): Likewise.
29083 * modules/uniname/uniname-tests (Makefile.am): Likewise.
29084 * modules/unistdio/u16-vasnprintf-tests (Makefile.am): Likewise.
29085 * modules/unistdio/u32-vasnprintf-tests (Makefile.am): Likewise.
29086 * modules/unistdio/u8-vasnprintf-tests (Makefile.am): Likewise.
29087 * modules/unistdio/ulc-vasnprintf-tests (Makefile.am): Likewise.
29088 * modules/vasnprintf-posix-tests (Makefile.am): Likewise.
29089 * modules/vfprintf-posix-tests (Makefile.am): Likewise.
29090 * modules/vprintf-posix-tests (Makefile.am): Likewise.
29091 * modules/vsnprintf-posix-tests (Makefile.am): Likewise.
29092 * modules/vsprintf-posix-tests (Makefile.am): Likewise.
29093 * modules/xstrtoimax-tests (Makefile.am): Likewise.
29094 * modules/xstrtol-tests (Makefile.am): Likewise.
29095 * modules/xstrtoumax-tests (Makefile.am): Likewise.
29096 * modules/yesno-tests (Makefile.am): Likewise.
29098 2007-10-03 Bruno Haible <bruno@clisp.org>
29100 * modules/trunc-tests: New file.
29101 * tests/test-trunc.c: New file.
29103 * modules/trunc: New file.
29104 * lib/trunc.c: New file.
29105 * m4/trunc.m4: New file.
29106 * lib/math.in.h (trunc): New declaration.
29107 * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNC and
29109 * modules/math (Makefile.am): Substitute also GNULIB_TRUNC and
29111 * doc/functions/trunc.texi: Mention the 'trunc' module.
29113 2007-10-03 Bruno Haible <bruno@clisp.org>
29115 * tests/test-fpending.c: New file, mostly copied
29116 from coreutils/lib/t-fpending.c.
29117 * modules/fpending-tests: New file.
29119 2007-10-03 Bruno Haible <bruno@clisp.org>
29121 Port the stdio extensions to QNX (untested).
29122 * lib/fseterr.c (fseterr): Add support for QNX.
29123 * lib/fbufmode.c (fbufmode): Likewise.
29124 * lib/freadable.c (freadable): Likewise.
29125 * lib/fwritable.c (fwritable): Likewise.
29126 * lib/freading.c (freading): Likewise.
29127 * lib/fwriting.c (fwriting): Likewise.
29128 * lib/freadahead.c (freadahed): Likewise.
29129 * lib/fpurge.c (fpurge): Likewise.
29130 * lib/fseeko.c (rpl_fseeko): Likewise.
29132 2007-10-03 Bruno Haible <bruno@clisp.org>
29133 Jim Meyering <jim@meyering.net>
29134 Eric Blake <ebb9@byu.net>
29136 * doc/relocatable.texi: Use @command instead of @program.
29138 2007-10-02 Jim Meyering <jim@meyering.net>
29140 Perform one more "_.h" -> ".in.h" substitution.
29141 * modules/unistd (Makefile.am) [unistd.h]: Use unistd.h.in
29142 instead of unistd_.h here, too.
29144 2007-10-01 Bruno Haible <bruno@clisp.org>
29146 * gnulib-tool (func_emit_initmacro_done): Special case for alloca.c.
29147 Needed for the alloca-opt module.
29149 2007-09-30 Bruno Haible <bruno@clisp.org>
29151 * lib/alloca.in.h: Renamed from lib/alloca_.h.
29152 * modules/alloca-opt (Files, Makefile.am): Use alloca.in.h instead of
29154 * lib/argz.in.h: Renamed from lib/argz_.h.
29155 * modules/argz (Files, Makefile.am): Use argz.in.h instead of argz_.h.
29156 * lib/byteswap.in.h: Renamed from lib/byteswap_.h.
29157 * modules/byteswap (Files, Makefile.am): Use byteswap.in.h instead of
29159 * lib/dirent.in.h: Renamed from lib/dirent_.h.
29160 * modules/fchdir (Files, Makefile.am): Use dirent.in.h instead of
29162 * lib/fcntl.in.h: Renamed from lib/fcntl_.h.
29163 * modules/fcntl (Files, Makefile.am): Use fcntl.in.h instead of
29165 * lib/float.in.h: Renamed from lib/float_.h.
29166 * modules/float (Files, Makefile.am): Use float.in.h instead of
29168 * lib/fnmatch.in.h: Renamed from lib/fnmatch_.h.
29169 * modules/fnmatch (Files, Makefile.am): Use fnmatch.in.h instead of
29171 * lib/getopt.in.h: Renamed from lib/getopt_.h.
29172 * modules/getopt (Files, Makefile.am): Use getopt.in.h instead of
29174 * lib/glob.in.h: Renamed from lib/glob_.h.
29175 * modules/glob (Files, Makefile.am): Use glob.in.h instead of glob_.h.
29176 * lib/iconv.in.h: Renamed from lib/iconv_.h.
29177 * modules/iconv_open (Files, Makefile.am): Use iconv.in.h instead of
29179 * lib/inttypes.in.h: Renamed from lib/inttypes_.h.
29180 * modules/inttypes (Files, Makefile.am): Use inttypes.in.h instead of
29182 * lib/locale.in.h: Renamed from lib/locale_.h.
29183 * modules/locale (Files, Makefile.am): Use locale.in.h instead of
29185 * lib/math.in.h: Renamed from lib/math_.h.
29186 * modules/math (Files, Makefile.am): Use math.in.h instead of math_.h.
29187 * lib/netinet_in.in.h: Renamed from lib/netinet_in_.h.
29188 * modules/netinet_in (Files, Makefile.am): Use netinet_in.in.h instead
29189 of netinet_in_.h. Add dependency.
29190 * lib/poll.in.h: Renamed from lib/poll_.h.
29191 * modules/poll (Files, Makefile.am): Use poll.in.h instead of poll_.h.
29192 * lib/search.in.h: Renamed from lib/search_.h.
29193 * modules/search (Files, Makefile.am): Use search.in.h instead of
29195 * lib/signal.in.h: Renamed from lib/signal_.h.
29196 * modules/signal (Files, Makefile.am): Use signal.in.h instead of
29198 * lib/stdbool.in.h: Renamed from lib/stdbool_.h.
29199 * modules/stdbool (Files, Makefile.am): Use stdbool.in.h instead of
29201 * lib/stdint.in.h: Renamed from lib/stdint_.h.
29202 * modules/stdint (Files, Makefile.am): Use stdint.in.h instead of
29204 * lib/stdio.in.h: Renamed from lib/stdio_.h.
29205 * modules/stdio (Files, Makefile.am): Use stdio.in.h instead of
29207 * lib/stdlib.in.h: Renamed from lib/stdlib_.h.
29208 * modules/stdlib (Files, Makefile.am): Use stdlib.in.h instead of
29210 * lib/string.in.h: Renamed from lib/string_.h.
29211 * modules/string (Files, Makefile.am): Use string.in.h instead of
29213 * doc/gnulib-tool.texi (Initial import): Update.
29214 * lib/sys_select.in.h: Renamed from lib/sys_select_.h.
29215 * modules/sys_select (Files, Makefile.am): Use sys_select.in.h instead
29216 of sys_select_.h. Add dependency.
29217 * lib/sys_socket.in.h: Renamed from lib/sys_socket_.h.
29218 * modules/sys_socket (Files, Makefile.am): Use sys_socket.in.h instead
29220 * lib/sys_stat.in.h: Renamed from lib/sys_stat_.h.
29221 * modules/sys_stat (Files, Makefile.am): Use sys_stat.in.h instead of
29223 * lib/sys_time.in.h: Renamed from lib/sys_time_.h.
29224 * modules/sys_time (Files, Makefile.am): Use sys_time.in.h instead of
29226 * lib/sysexits.in.h: Renamed from lib/sysexits_.h.
29227 * modules/sysexits (Files, Makefile.am): Use sysexits.in.h instead of
29229 * lib/time.in.h: Renamed from lib/time_.h.
29230 * modules/time (Files, Makefile.am): Use time.in.h instead of time_.h.
29231 * lib/unistd.in.h: Renamed from lib/unistd_.h.
29232 * modules/unistd (Files, Makefile.am): Use unistd.in.h instead of
29234 * lib/wchar.in.h: Renamed from lib/wchar_.h.
29235 * modules/wchar (Files, Makefile.am): Use wchar.in.h instead of
29237 * lib/wctype.in.h: Renamed from lib/wctype_.h.
29238 * modules/wctype (Files, Makefile.am): Use wctype.in.h instead of
29240 * build-aux/bootstrap (slurp): Update.
29241 * lib/.cppi-disable: Update.
29243 2007-09-30 Bruno Haible <bruno@clisp.org>
29245 * tests/test-getaddrinfo.c (AF_UNSPEC): Provide a fallback definition.
29248 2007-09-30 Bruno Haible <bruno@clisp.org>
29250 * modules/dirname-tests (check_PROGRAMS): Renamed from noinst_PROGRAMS.
29252 2007-09-29 Bruno Haible <bruno@clisp.org>
29254 * lib/stdio_.h (getdelim, getline): Add identifiers. Doc tweak.
29256 2007-09-29 Bruno Haible <bruno@clisp.org>
29258 * lib/xreadlink.c (xreadlink): Simplify to a wrapper around areadlink.
29259 * modules/xreadlink (Depends-on): Add areadlink, remove readlink etc.
29260 * build-aux/install-reloc: Compile also areadlink.c.
29261 * modules/relocatable-prog-wrapper (Files): Add lib/areadlink.[hc].
29263 2007-09-29 Bruno Haible <bruno@clisp.org>
29265 * gnulib-tool (func_emit_initmacro_done): Indentation.
29267 2007-09-29 Bruno Haible <bruno@clisp.org>
29269 * README: Add CVS checkout update instructions.
29270 Info from Bob Proulx <bob@proulx.com>.
29272 2007-09-28 Eric Blake <ebb9@byu.net>
29274 Provide move-if-change.
29275 * build-aux/move-if-change: New file, based on best practice
29276 rather than any canonical upstream location.
29278 2007-09-28 Jim Meyering <jim@meyering.net>
29280 Fix canonicalize loop-detection corner case.
29281 Do not attempt to stat the symlink values stored via seen_triple.
29282 Without this, coreutils' tests/misc/readlink-fp-loop test would fail
29283 on linux-2.6.18, (but not 2.6.22).
29284 * lib/canonicalize.c (seen_triple): Use triple_compare_ino_str, not
29285 triple_compare. The former compares dev,ino,filename, while the latter
29286 would actually stat dirname(filename) when dev and ino were equal.
29287 * lib/hash-triple.c: Install <string.h>.
29289 (triple_compare_ino_str): New function.
29290 * lib/hash-triple.h (triple_compare_ino_str): Declare it.
29292 2007-09-28 Eric Blake <ebb9@byu.net>
29294 Enforce that AC_REPLACE_FUNCS files exist.
29295 * gnulib-tool (func_emit_initmacro_done): Make AC_LIBSOURCES
29296 override check for typos.
29298 Fix test-closein on Solaris 10.
29299 * tests/test-closein.c (main): Don't assume stdin can be inherited
29300 closed on all systems.
29301 * tests/test-closein.sh: Likewise.
29302 Reported by Piotr Tarnowski.
29304 2007-09-28 Jim Meyering <jim@meyering.net>
29306 * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Fix typo in comment.
29308 2007-09-27 Jim Meyering <jim@meyering.net>
29310 canonicalize: Avoid a false-positive cycle failure.
29311 * modules/canonicalize (Depends-on): Add file-set and hash-triple.
29312 Sort. Remove cycle-check.
29313 * lib/canonicalize.c: Include file-set.h and hash-triple.h,
29315 (seen_triple): New function.
29316 (canonicalize_filename_mode): Use it instead of cycle-check.
29317 * tests/test-canonicalize.c: Add a test for this bug.
29318 * tests/test-canonicalize.sh: Set up and run the test.
29320 New module, file-set, from coreutils.
29321 * modules/file-set: Define it.
29322 * lib/file-set.c, lib/file-set.h: Implement.
29324 New module, hash-triple, from coreutils.
29325 * modules/hash-triple: Define it.
29326 * lib/hash-triple.c, lib/hash-triple.h: Implement.
29328 2007-09-25 Eric Blake <ebb9@byu.net>
29330 Fix strerror on Interix.
29331 * lib/string_.h (strerror): Declare replacement.
29332 * doc/functions/strerror.texi (strerror): Document the Interix
29334 * modules/string (Makefile.am): Support new hooks.
29335 * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Add new hooks.
29336 * m4/strerror.m4 (gl_FUNC_STRERROR): Defer to
29337 gl_FUNC_STRERROR_SEPARATE.
29338 (gl_FUNC_STRERROR_SEPARATE): Check for Interix bug.
29339 * lib/strerror.c (rpl_strerror): Provide replacement.
29340 * modules/strerror (Depends-on): Add string.
29341 (configure.ac): Detect use of module.
29342 * tests/test-strerror.c: New file.
29343 * modules/strerror-tests: New test module.
29344 * modules/argp (Depends-on): Add strerror.
29345 * modules/error (Depends-on): Likewise.
29346 Reported by Martin Koeppe.
29348 2007-09-24 Bruno Haible <bruno@clisp.org>
29350 * README: Update git instructions.
29352 2007-09-24 Eric Blake <ebb9@byu.net>
29354 Revert fpending breakage from 2007-09-08.
29355 * m4/fpending.m4 (gl_FUNC_FPENDING): Don't require existence of
29358 2007-09-24 Jim Meyering <jim@meyering.net>
29360 filenamecat.c: Add a test.
29361 * lib/filenamecat.c (main) [TEST_FILE_NAME_CONCAT]: Add a test
29362 showing how the function works when DIR is the empty string.
29364 2007-09-21 Simon Josefsson <simon@josefsson.org>
29366 * tests/test-canonicalize.sh: Turn on executable bit.
29368 2007-09-19 Eric Blake <ebb9@byu.net>
29370 * README: Update CVS instructions.
29372 2007-09-18 Bruno Haible <bruno@clisp.org>
29374 * modules/areadlink: New file.
29375 * lib/areadlink.h (areadlink): New declaration.
29376 * lib/areadlink.c: New file, based on lib/xreadlink.c.
29378 2007-09-17 Jim Meyering <jim@meyering.net>
29380 * lib/savewd.c (ESTALE) [!defined]: Define.
29381 Reported to be required on Interix by Martin Koeppe.
29383 2007-09-17 Bruno Haible <bruno@clisp.org>
29385 * gnulib-tool (func_version): Use $version.
29387 2007-09-16 Bruno Haible <bruno@clisp.org>
29389 * m4/printf.m4 (gl_PRINTF_LONG_DOUBLE, gl_PRINTF_INFINITE,
29390 gl_PRINTF_INFINITE_LONG_DOUBLE): Increase buf's size from 100 to 10000.
29391 Needed on glibc-2.6.1 with -fstack-protector -D_FORTIFY_SOURCE=2.
29392 Reported by Greg Schafer <gschafer@zip.com.au>.
29394 2007-09-15 Bruno Haible <bruno@clisp.org>
29396 * gnulib-tool (sed): Try a little harder to make bash understand the
29398 Reported by Bruce Korb <bruce.korb@gmail.com>.
29400 2007-09-13 Eric Blake <ebb9@byu.net>
29402 * ChangeLog: Remove conflict markers.
29404 2007-09-13 Simon Josefsson <simon@josefsson.org>
29406 * lib/gc-gnulib.c (gc_hash_open): Catch NULL calloc return value.
29407 Reported by Bruno Haible <bruno@clisp.org>.
29409 2007-09-12 Bruno Haible <bruno@clisp.org>
29411 * m4/lock.m4: Don't provide an AC_USE_SYSTEM_EXTENSIONS definition.
29412 (gl_LOCK_EARLY_BODY): Use AC_GNU_SOURCE when AC_USE_SYSTEM_EXTENSIONS
29415 2007-09-12 Eric Blake <ebb9@byu.net>
29417 Track CVS Autoconf on AC_USE_SYSTEM_EXTENSIONS.
29418 * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Update to CVS
29419 Autoconf definition.
29420 * modules/euidaccess (Depends-on): Add extensions, for
29421 AC_USE_SYSTEM_EXTENSIONS with autoconf <= 2.59.
29422 * modules/fnmatch (Depends-on): Likewise.
29423 * modules/getaddrinfo (Depends-on): Likewise.
29424 * modules/getdelim (Depends-on): Likewise.
29425 * modules/getline (Depends-on): Likewise.
29426 * modules/getsubopt (Depends-on): Likewise.
29427 * modules/gettext (Depends-on): Likewise.
29428 * modules/group-member (Depends-on): Likewise.
29429 * modules/mbchar (Depends-on): Likewise.
29430 * modules/memmem (Depends-on): Likewise.
29431 * modules/mempcpy (Depends-on): Likewise.
29432 * modules/memrchr (Depends-on): Likewise.
29433 * modules/pagealign_alloc (Depends-on): Likewise.
29434 * modules/readutmp (Depends-on): Likewise.
29435 * modules/stpcpy (Depends-on): Likewise.
29436 * modules/stpncpy (Depends-on): Likewise.
29437 * modules/strchrnul (Depends-on): Likewise.
29438 * modules/strndup (Depends-on): Likewise.
29439 * modules/strsep (Depends-on): Likewise.
29440 * modules/strverscmp (Depends-on): Likewise.
29441 * modules/vasprintf (Depends-on): Likewise.
29442 * modules/wcwidth (Depends-on): Likewise.
29443 * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): AC_GNU_SOURCE will be
29444 obsolete in Autoconf 2.62; use AC_USE_SYSTEM_EXTENSIONS instead.
29445 * m4/fnmatch.m4 (gl_FUNC_FNMATCH_GNU): Likewise.
29446 * m4/getaddrinfo.m4 (gl_PREREQ_GETADDR_INFO): Likewise.
29447 * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
29448 * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
29449 * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Likewise.
29450 * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
29451 * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER): Likewise.
29452 * m4/mbchar.m4 (gl_MBCHAR): Likewise.
29453 * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
29454 * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Likewise.
29455 * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Likewise.
29456 * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Likewise.
29457 * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC): Likewise.
29458 * m4/readutmp.m4 (gl_READUTMP): Likewise.
29459 * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
29460 * m4/stpcpy.m4 (gl_FUNC_STPCPY): Likewise.
29461 * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
29462 * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Likewise.
29463 * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
29464 * m4/strnlen.m4 (gl_FUNC_STRNLEN): Likewise.
29465 * m4/strsep.m4 (gl_FUNC_STRSEP): Likewise.
29466 * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Likewise.
29467 * m4/vasprintf.m4 (gl_PREREQ_VASPRINTF_H): Likewise.
29468 * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
29469 * m4/lock.m4 (gl_LOCK_EARLY_BODY): Likewise, but provide fallback,
29470 so that lock.m4 can be used in gettext without extensions module.
29472 2007-09-11 Bruno Haible <bruno@clisp.org>
29474 * m4/isc-posix.m4: Remove file.
29475 Suggested by Eric Blake.
29477 2007-09-11 Eric Blake <ebb9@byu.net>
29479 * ChangeLog: Restore lines accidentally truncated 2007-04-06.
29481 2007-09-10 Bruno Haible <bruno@clisp.org>
29483 * posix-modules: Fix typo in error message.
29484 Reported by Matt <mkraai@beckman.com>.
29486 2007-09-09 Bruno Haible <bruno@clisp.org>
29488 * doc/functions/getdelim.texi: Update list of platforms lacking the
29490 * doc/functions/getline.texi: Likewise.
29492 2007-09-09 Jim Meyering <jim@meyering.net>
29494 * lib/hash.c (hash_initialize): Detect calloc failure.
29495 Reported by Bruno Haible.
29497 2007-09-09 Bruno Haible <bruno@clisp.org>
29499 * lib/canonicalize-lgpl.c (__realpath): Set errno to ENOMEM when
29500 malloc or realloc fails.
29502 2007-09-09 Bruno Haible <bruno@clisp.org>
29504 * modules/getcwd (Depends-on): Add malloc-posix.
29505 * modules/glob (Depends-on): Likewise.
29506 * modules/putenv (Depends-on): Likewise.
29507 * modules/strdup (Depends-on): Likewise.
29508 * modules/getdelim (Depends-on): Add realloc-posix.
29509 * modules/read-file (Depends-on): Likewise.
29511 2007-09-09 Bruno Haible <bruno@clisp.org>
29513 * m4/malloc.m4 (gl_CHECK_MALLOC_POSIX): New macro.
29514 (gl_FUNC_MALLOC_POSIX): Require it.
29515 * m4/realloc.m4 (gl_FUNC_REALLOC_POSIX): Likewise.
29516 * m4/calloc.m4 (gl_FUNC_CALLOC_POSIX): Likewise.
29517 * modules/realloc (Files): Add m4/malloc.m4.
29518 * modules/calloc (Files): Likewise.
29520 2007-09-09 Bruno Haible <bruno@clisp.org>
29522 * modules/malloc-posix: New file.
29523 * modules/malloc (Depends-on): Add malloc-posix.
29524 * lib/malloc.c: Include errno.h.
29525 (rpl_malloc): Merge the requirements of a glibc-compatible malloc
29526 and a POSIX-compatible malloc into a single function. Set ENOMEM
29527 when returning NULL.
29528 * m4/malloc.m4: New file.
29529 * doc/functions/malloc.texi: Mention the malloc-posix module.
29530 * lib/stdlib_.h (malloc): New declaration.
29531 * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
29532 GNULIB_MALLOC_POSIX and HAVE_MALLOC_POSIX.
29533 * modules/stdlib (stdlib.h): Substitute also GNULIB_MALLOC_POSIX
29534 and HAVE_MALLOC_POSIX.
29536 2007-09-09 Bruno Haible <bruno@clisp.org>
29538 * modules/realloc-posix: New file.
29539 * modules/realloc (Depends-on): Add realloc-posix.
29540 * lib/realloc.c: Include errno.h.
29541 (rpl_realloc): Merge the requirements of a glibc-compatible realloc
29542 and a POSIX-compatible realloc into a single function. Set ENOMEM
29543 when returning NULL.
29544 * m4/realloc.m4: New file.
29545 * doc/functions/realloc.texi: Mention the realloc-posix module.
29546 * lib/stdlib_.h (realloc): New declaration.
29547 * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
29548 GNULIB_REALLOC_POSIX and HAVE_REALLOC_POSIX.
29549 * modules/stdlib (stdlib.h): Substitute also GNULIB_REALLOC_POSIX
29550 and HAVE_REALLOC_POSIX.
29552 2007-09-09 Bruno Haible <bruno@clisp.org>
29554 * modules/calloc-posix: New file.
29555 * modules/calloc (Depends-on): Add calloc-posix.
29556 * lib/calloc.c: Include errno.h.
29557 (rpl_calloc): Merge the requirements of a glibc-compatible calloc
29558 and a POSIX-compatible calloc into a single function. Set ENOMEM
29559 when returning NULL.
29560 * m4/calloc.m4 (gl_FUNC_CALLOC_POSIX): New macro.
29561 * doc/functions/calloc.texi: Mention the calloc-posix module.
29562 * lib/stdlib_.h (calloc): New declaration.
29563 * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
29564 GNULIB_CALLOC_POSIX and HAVE_CALLOC_POSIX.
29565 * modules/stdlib (stdlib.h): Substitute also GNULIB_CALLOC_POSIX
29566 and HAVE_CALLOC_POSIX.
29568 2007-09-09 Bruno Haible <bruno@clisp.org>
29570 Allow for modules to show an arbitrary notice.
29571 * modules/TEMPLATE-EXTENDED: Add 'Notice' field.
29572 * gnulib-tool: New option --extract-notice.
29573 (func_usage): Document it.
29574 (sed_extract_prog): Update.
29575 (func_get_notice): New function.
29576 (func_modules_notice): New function.
29577 (func_import, func_create_testdir): Invoke it.
29578 Suggested by Jim Meyering.
29580 2007-09-09 Bruno Haible <bruno@clisp.org>
29582 * gnulib-tool: New options --verbose, --quiet.
29583 (func_usage): Document them.
29584 (verbose): New variable.
29585 (func_execute_command): New function.
29586 (func_import): Don't show the module list and the file list if
29588 (func_create_testdir): Likewise. Use func_execute_command.
29589 (func_create_megatestdir): Use func_execute_command.
29591 2007-09-08 Bruno Haible <bruno@clisp.org>
29593 * gnulib-tool (func_import): Prefer rsync over wget when available,
29594 for fetching the PO files.
29596 2007-09-08 Bruno Haible <bruno@clisp.org>
29598 * posix-modules: New file. Portions copied from gnulib-tool.
29599 * doc/gnulib.texi (POSIX Substitutes Library): New chapter.
29601 2007-09-08 Jim Meyering <jim@meyering.net>
29603 Rename __fpending.c -> fpending.c and __fpending.h -> fpending.h
29604 * lib/fpending.h: Rename from __fpending.h.
29605 * lib/fpending.c: Rename from __fpending.c.
29606 Include "fpending.h", not "__fpending.h".
29607 * lib/__fpending.h, lib/__fpending.c: Remove files.
29608 * modules/fpending (Files): Reflect new file names.
29609 * lib/close-stream.c: Include "fpending.h", not "__fpending.h".
29611 2007-09-08 Bruno Haible <bruno@clisp.org>
29613 * m4/inttypes-h.m4: Remove stub file.
29615 2007-09-07 Simon Josefsson <simon@josefsson.org>
29617 * doc/headers/stdint.texi: Discuss #include_next issue.
29619 2007-09-06 Paul Eggert <eggert@cs.ucla.edu>
29621 * build-aux/bootstrap: Remove obsolete comment about wget --help.
29623 2007-09-06 Yoann Vandoorselaere <yoann.v@prelude-ids.com>
29625 * m4/time_h.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Fix misspelling
29628 2007-09-03 Jim Meyering <jim@meyering.net>
29630 New module: git-version-gen.
29631 * modules/git-version-gen: New file.
29633 Import changes from coreutils for bootstrap script.
29635 * build-aux/bootstrap (WGET_COMMAND): Remove code to set this variable.
29637 bootstrap: uses rsync to download the .po files
29638 * build-aux/bootstrap (po_download_command_format): New global.
29639 (download_po_files): Use rsync.
29640 (update_po_files): Don't remove .po files after download,
29641 so future rsync runs can take advantage of the copies.
29643 * build-aux/bootstrap (gnulib_tool): Make sha1sum check quietly.
29645 Solve the unnecessary-.po-file-regeneration problem once and for all.
29646 * build-aux/bootstrap (download_po_files): New function, renamed from
29647 get_translations. Now, downloads, but doesn't update LINGUAS.
29648 (update_po_files): New function.
29650 bootstrap: Ignore more.
29651 * build-aux/bootstrap (symlink_to_dir): Add a directory name like
29652 uniwidth to e.g., lib/.gitignore.
29653 (slurp): Handle the sys_stat_.h -> sys mapping, too.
29655 * build-aux/bootstrap: New setting: vc_ignore.
29656 (insert_sorted_if_absent): Create $file if absent.
29657 Adapt to new, possibly empty, list: $vc_ignore.
29659 bootstrap: generate more ignorable names
29660 * build-aux/bootstrap (slurp): When generating ignorable names,
29661 also map .sin to .sed, .gperf to .c, and .y to .c.
29663 2007-09-03 Jim Meyering <jim@meyering.net>
29665 * build-aux/git-version-gen: New file, from coreutils. For details, see
29666 http://git.sv.gnu.org/gitweb/?p=coreutils.git;a=commitdiff;h=bfe49f506
29668 2007-09-02 Bruno Haible <bruno@clisp.org>
29670 Fix mis-recognition of 'mcs' on QNX 6.
29671 * m4/csharpcomp.m4 (gt_CSHARPCOMP): Test whether the "mcs --version"
29672 output contains the string "Mono".
29673 * lib/csharpcomp.c (compile_csharp_using_mono): Likewise.
29674 Reported by <kraai@ftbfs.org> at <https://savannah.gnu.org/bugs/?18337>.
29676 2007-09-01 Bruno Haible <bruno@clisp.org>
29678 Fix collision between uniwidth/* and linebreak modules.
29679 * lib/linebreak.h (locale_charset, uc_width, u8_width, u16_width,
29680 u32_width): Remove declarations.
29681 * lib/linebreak.c: Include uniwidth.h, uniwidth/cjk.h, streq.h.
29682 (u32_mbtouc_unsafe, streq9, streq8, streq7, streq6, streq5, streq4,
29683 streq3, streq2, streq1, streq0): Remove functions.
29684 (STREQ): Remove macro.
29685 (is_cjk_encoding): Remove function.
29686 (nonspacing_table_data, nonspacing_table_ind): Remove constants.
29687 (uc_width, u8_width, u16_width, u32_width): Remove functions.
29688 * modules/linebreak (Depends-on): Add streq, uniwidth/width.
29689 * NEWS: Document the change.
29691 2007-09-01 Bruno Haible <bruno@clisp.org>
29693 * lib/streq.h: Add double-inclusion guard.
29695 2007-09-01 Karl Berry <karl@gnu.org>
29697 * MODULES.html.sh: Rename mreadlink_with_size to areadlink_with_size.
29699 2007-08-28 Jim Meyering <jim@meyering.net>
29701 Rename mreadlink_with_size to areadlink_with_size.
29702 * NEWS: Document the change.
29703 * lib/mreadlink-with-size.c (mreadlink_with_size): Rename this to...
29704 * lib/areadlink-with-size.c (areadlink_with_size): ...this.
29705 * lib/mreadlink.h: Rename this to...
29706 * lib/areadlink.h: ...this.
29707 * modules/mreadlink-with-size: Rename this to...
29708 * modules/areadlink-with-size: ...this.
29709 * lib/canonicalize.c: Reflect the renaming.
29710 * modules/canonicalize: Likewise.
29712 2007-08-26 Bruno Haible <bruno@clisp.org>
29714 * gnulib-tool (func_import): When deciding which files to remove,
29715 consider also dangling symbolic links.
29716 Reported by Eric Blake.
29718 2007-08-26 Bruno Haible <bruno@clisp.org>
29720 * gnulib-tool (func_ln_if_changed): Use "test -h", not "test -L".
29722 2007-08-23 Simon Josefsson <simon@josefsson.org>
29724 * lib/readline.c: Don't include getline.h, the prototype is now
29727 2007-08-23 Jim Meyering <jim@meyering.net>
29730 * lib/getdelim.c (getdelim): Don't bother to save/restore errno
29731 around the funlockfile call, since funlockfile never sets errno.
29732 Don't set errno upon failed realloc.
29734 2007-08-22 Eric Blake <ebb9@byu.net>
29737 * lib/getdelim.c (getdelim): Revert regression that required *n to
29738 be 0 when *lineptr is NULL. Preserve errno across funlockfile.
29739 * m4/getdelim.m4 (gl_FUNC_GETDELIM): Check for declaration of
29740 getdelim, rather than whether implementation is missing.
29741 * m4/getline.m4 (gl_FUNC_GETLINE): Likewise for getline.
29742 * lib/stdio_.h (getline): Also declare if replacement is
29744 * doc/functions/getdelim.texi: New file.
29745 * doc/functions/getline.texi: Likewise.
29746 * doc/gnulib.texi (Function Substitutes): Add new files.
29747 Reported by Bruno Haible.
29749 2007-08-22 Ludovic Courtès <ludo@gnu.org>
29751 * users.txt: Add Guile.
29753 2007-08-22 Eric Blake <ebb9@byu.net>
29755 * tests/test-getdelim.c (main): Use remove, not unlink.
29756 * tests/test-getline.c (main): Likewise.
29758 Move getline and getdelim into stdio.h, per POSIX 200x.
29759 * modules/getline (Files): Remove getline.h.
29760 (Depends-on): Add stdio.
29761 (configure.ac): Add module indicator.
29762 * modules/getdelim (Files): Remove getdelim.h.
29763 (Depends-on): Add stdio.
29764 (configure.ac): Add module indicator.
29765 * modules/stdio (Makefile.am): Work with new indicators.
29766 * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add new defaults.
29767 * m4/getdelim.m4 (gl_FUNC_GETDELIM): Work with stdio needs.
29768 * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
29769 * lib/getdelim.h: Delete.
29770 * lib/getline.h: Delete.
29771 * lib/stdio_.h (getdelim, getline): Declare.
29772 * modules/getdelim-tests: New module.
29773 * modules/getline-tests: Likewise.
29774 * tests/test-getdelim.c: New file.
29775 * tests/test-getline.c: Likewise.
29776 * NEWS: Document the change.
29777 * lib/getline.c: Update choice of header.
29778 * lib/csharpcomp.c: Likewise.
29779 * lib/getpass.c: Likewise.
29780 * lib/javacomp.c: Likewise.
29781 * lib/javaversion.c: Likewise.
29782 * lib/yesno.c: Likewise.
29783 * lib/getdelim.c: Likewise.
29784 (getdelim): Set errno on failure, and avoid memory leak.
29786 2007-08-19 Bruno Haible <bruno@clisp.org>
29788 * modules/closein (Depends-on): Add freadahead.
29789 * lib/closein.c: Include freadahead.h.
29790 (close_stdin): Skip the fseeko and fflush calls if freadahead(stdin)
29793 2007-08-19 Bruno Haible <bruno@clisp.org>
29795 * modules/freadahead-tests: New file.
29796 * tests/test-freadahead.sh: New file.
29797 * tests/test-freadahead.c: New file.
29799 * modules/freadahead: New file.
29800 * lib/freadahead.h: New file.
29801 * lib/freadahead.c: New file.
29802 * MODULES.html.sh (File stream based Input/Output): Add freadahead,
29803 fbufmode, fpurge, freadable, fwritable.
29805 2007-08-19 Eric Blake <ebb9@byu.net>
29807 Test yesno in combination with closein.
29808 * lib/yesno.c (yesno): Document use of stdin.
29809 * modules/yesno-tests (Files): New module.
29810 * tests/test-yesno.c (main): New file.
29811 * tests/test-yesno.sh: Likewise.
29813 2007-08-19 Bruno Haible <bruno@clisp.org>
29815 * lib/fbufmode.c (fbufmode): Add tentative support for Solaris/AMD64.
29816 * lib/fseeko.c (rpl_fseeko): Likewise.
29817 * lib/fseterr.c (fseterr): Likewise.
29819 2007-08-19 Bruno Haible <bruno@clisp.org>
29821 * tests/test-lseek.c (main): Disable a test for BeOS.
29822 * doc/functions/lseek.texi: Document the BeOS bug.
29824 2007-08-19 Bruno Haible <bruno@clisp.org>
29825 Eric Blake <ebb9@byu.net>
29827 * lib/lseek.c: Include <sys/stat.h>.
29828 (rpl_lseek): Add workaround code also for Unix platforms.
29830 * m4/lseek.m4 (gl_FUNC_LSEEK): When cross-compiling, fail on BeOS.
29831 * doc/functions/lseek.texi: Document BeOS definiency.
29833 2007-08-18 Bruno Haible <bruno@clisp.org>
29835 * modules/fstrcmp-tests: New file.
29836 * tests/test-fstrcmp.c: New file.
29838 2007-08-18 Bruno Haible <bruno@clisp.org>
29840 * modules/fstrcmp: New file, from GNU gettext with modifications.
29841 * lib/fstrcmp.h: New file, from GNU gettext.
29842 * lib/fstrcmp.c: New file, from GNU gettext.
29843 * MODULES.html.sh (String handling): Add fstrcmp.
29845 2007-08-18 Bruno Haible <bruno@clisp.org>
29847 * lib/diffseq.h (struct context): Change type of 'heuristic' field to
29849 (diag, compareseq): Remove const from the ctxt argument.
29850 (USE_HEURISTIC): Undefine at the end.
29852 2007-08-18 Jim Meyering <jim@meyering.net>
29854 New file: lib/idcache.h
29855 * NEWS: Mention the addition.
29856 * modules/idcache (Files): Add lib/idcache.h
29857 * lib/idcache.c: Include "idcache.h".
29858 Don't include <sys/types.h>.
29859 Add a FIXME comment.
29860 Move file-scoped "static" declarations to the top.
29861 * lib/idcache.h: New file. Include <sys/types.h> here, instead.
29863 2007-08-17 Bruno Haible <bruno@clisp.org>
29864 and Paul Eggert <eggert@cs.ucla.edu>
29866 * MODULES.html.sh: Add diffseq.
29867 * modules/diffseq: New file.
29868 * lib/diffseq.h: New file, from GNU gettext with a few minor changes,
29869 extracted from GNU gettext's fstrcmp.c and GNU diff's analyze.c.
29871 2007-08-15 Paul Eggert <eggert@cs.ucla.edu>
29873 Import changes from coreutils for bootstrap script.
29875 2007-07-21 Paul Eggert <eggert@cs.ucla.edu>
29877 * build-aux/bootstrap (slurp): Work even in environments where
29878 "ls" defaults to "ls -A". Put in a FIXME, though, since the
29879 current code does not slurp files whose names start with ".", and
29880 this looks like it might be a troublesome area.
29882 2007-07-11 Jim Meyering <jim@meyering.net>
29884 If there's a GPL vN copyright comment, require that N == 3.
29886 2007-07-08 Jim Meyering <jim@meyering.net>
29888 Run the coreutils-specific code only if tests/Makefile.am.in exists.
29889 * build-aux/bootstrap (mam_template): Move definition out of loop.
29891 Create symlinks for gl/{lib,m4}/*, just as for gnulib/{lib,m4}/*.
29893 * build-aux/bootstrap (symlink_to_dir): Rename function from
29894 symlink_to_gnulib. Add a directory parameter. Update all
29896 (cp_mark_as_generated): Also check for -- and link to -- files in
29899 2007-07-08 Jim Meyering <jim@meyering.net>
29901 Adapt to deeper hierarchy in gnulib.
29902 * build-aux/bootstrap (symlink_to_dir): If the destination
29903 directory doesn't exist, create it. This is required at least for
29904 "lib/uniwidth/cjk.h".
29906 2007-05-15 Jim Meyering <jim@meyering.net>
29908 * build-aux/bootstrap: Now that generated Makefile.am files
29909 are no longer under version control, they must be created at
29912 2007-08-14 Ben Pfaff <blp@gnu.org>
29914 * lib/count-one-bits.h: Add comments. From Bruno Haible.
29916 2007-08-14 Paul Eggert <eggert@cs.ucla.edu>
29918 * lib/count-one-bits.h: Don't include <limits.h>; no longer needed
29919 given the changes below.
29920 (COUNT_ONE_BITS): Use 'verify' rather than 'verify_true'. Work
29921 even on hosts that have padding bits beyond the supported 64.
29923 2007-08-10 Paul Eggert <eggert@cs.ucla.edu>
29925 * NEWS: In xstrtol, remove STRTOL_FATAL_ERROR and add xstrtol_fatal.
29926 * lib/xstrtol.h: Don't include exitfail.h; that's now internal to
29927 xstrtol.c. Include getopt.h, since xstrtol_fatal's signature
29929 (xstrtol_error): Remove.
29930 (xstrtol_fatal): New decl, replacing the functionality of xstrtol_error
29931 but with a different signature.
29932 (ATTRIBUTE_NORETURN, __attribute__): New macros.
29933 * lib/xstrtol-error.c: Include exitfail.h.
29934 (xstrtol_fatal): New function, with a different signature from the
29935 old xstrtol_error, so that the caller need not worry about passing
29936 in an exit status, or about storage management of the option argument.
29937 (xstrtol_error): Now a static function. Redo signature to
29938 implement xstrtol_fatal. Output the correct number of hyphens in
29939 front of the option so that the caller need not worry about
29940 storage management.
29942 (_): Remove; not used now.
29943 * modules/xstrtol: Depend on getopt.
29944 * tests/test-xstrtol.c (main): Use new xstrtol_error function instead
29945 of old STRTOL_FATAL_ERROR macro.
29946 * tests/test-xstrtol.sh (t-xstrtol.xo): Adjust to match new behavior
29948 * tests/test-xstrtoimax.sh (t-xstrtoimax.xo): Likewise.
29949 * tests/test-xstrtoumax.sh (t-xstrtoumax.xo): Likewise.
29951 2007-08-08 Eric Blake <ebb9@byu.net>
29953 * lib/xstrtol-error.c: Add missing include.
29955 Move xstrtol messages into gnulib domain, when --pobase is used.
29956 * lib/xstrtol.h (_STRTOL_ERROR): Move messages out of macro...
29957 * lib/xstrtol-error.c (xstrtol_error): ...into new file.
29958 * modules/xstrtol (Files): Distribute new file.
29959 * m4/xstrtol.m4 (gl_XSTRTOL): Build new file.
29960 * lib/xstrtol.c (TESTING_XSTRTO): Move tests...
29961 * tests/test-xstrtol.c: ...into new file.
29962 * tests/test-xstrtoul.c: Also test xstrtoul.
29963 * tests/test-xstrtoimax.c: Also test xstrtoimax.
29964 * tests/test-xstrtoumax.c: Also test xstrtoumax.
29965 * tests/test-xstrtol.sh: Drive the tests.
29966 * tests/test-xstrtoimax.sh: Likewise.
29967 * tests/test-xstrtoumax.sh: Likewise.
29968 * modules/xstrtol-tests: New module.
29969 * modules/xstrtoimax-tests: Likewise.
29970 * modules/xstrtoumax-tests: Likewise.
29972 2007-08-08 Jim Meyering <jim@meyering.net>
29974 New function: mfile_name_concat.
29975 * lib/filenamecat.c (mfile_name_concat): New function, just like
29976 file_name_concat, but return NULL upon failure rather than exiting
29978 * lib/filenamecat.h: Declare it.
29980 2007-08-07 Bruno Haible <bruno@clisp.org>
29982 * m4/inttypes.m4 (gl_INTTYPES_H): Use GL_TRIGGER_STDC_LIMIT_MACROS
29983 instead of __STDC_LIMIT_MACROS_TRIGGER. This avoids a redefinition
29985 Reported by Eric Blake.
29987 2007-08-07 Simon Josefsson <simon@josefsson.org>
29989 * modules/crypto/arctwo (License): Use the synonymous term "LGPLv2+".
29990 * modules/crypto/arcfour (License): Likewise.
29991 * modules/crypto/des-tests (License): Likewise.
29992 * modules/crypto/gc-arctwo-tests (License): Likewise.
29993 * modules/crypto/gc-des-tests (License): Likewise.
29994 * modules/crypto/gc-hmac-md5-tests (License): Likewise.
29995 * modules/crypto/gc-hmac-sha1-tests (License): Likewise.
29996 * modules/crypto/gc-md2-tests (License): Likewise.
29997 * modules/crypto/gc-md4-tests (License): Likewise.
29998 * modules/crypto/gc-md5-tests (License): Likewise.
29999 * modules/crypto/gc-pbkdf2-sha1-tests (License): Likewise.
30000 * modules/crypto/gc-rijndael-tests (License): Likewise.
30001 * modules/crypto/gc-sha1-tests (License): Likewise.
30002 * modules/crypto/gc-tests (License): Likewise.
30003 * modules/crypto/hmac-md5 (License): Likewise.
30004 * modules/crypto/hmac-sha1 (License): Likewise.
30005 * modules/crypto/md2-tests (License): Likewise.
30006 * modules/crypto/md4-tests (License): Likewise.
30007 * modules/crypto/md5 (License): Likewise.
30008 * modules/crypto/rijndael (License): Likewise.
30009 * modules/crypto/sha1 (License): Likewise.
30010 * modules/memxor (License): Likewise.
30012 2007-08-06 Paul Eggert <eggert@cs.ucla.edu>
30013 and Bruno Haible <bruno@clisp.org>
30015 * NEWS: Describe interface changes to human, xstrtol.
30016 * lib/human.h: Include <xstrtol.h>.
30017 (human_options): Return enum strtol_error, not int. Remove
30018 bool arg; take int * instead.
30019 * lib/human.c: Don't include "gettext.h".
30020 (_): Remove; no longer used.
30021 Don't include <xstrtol.h>, since human.h does it.
30022 (human_options): Adjust to abovementioned interface changes.
30023 Do not report error to stderr; that's now the caller's
30025 * lib/xstrtol.c (main) [defined TESTING_XSTRTO]: Adjust to
30027 * lib/xstrtol.h (_STRTOL_ERROR): Take Option, Arg rather than
30028 Str, Argument_type_string. All uses changed. Put " argument"
30029 in diagnostics to make them clearer. Change wording of suffix
30030 message for clarity.
30031 (STRTOL_FATAL_ERROR): Take Option, Arg rather than Str,
30032 Argument_type_string.
30033 (STRTOL_FATAL_WARN): Remove; no longer used.
30034 * modules/human (Depends-on): Remove gettext-h.
30036 2007-08-06 Simon Josefsson <simon@josefsson.org>
30038 * build-aux/maint.mk, build-aux/GNUmakefile: Relicense to GPLv3+.
30040 2007-07-31 Bruno Haible <bruno@clisp.org>
30042 * m4/stdint.m4 (gl_STDINT_H): Test whether WCHAR_MIN and WCHAR_MAX
30043 are defined by <stdint.h> (as opposed to <wchar.h>, as on Dragonfly).
30044 Reported by Joerg Sonnenberger <joerg@britannica.bec.de>.
30046 2007-07-31 Bruno Haible <bruno@clisp.org>
30048 * lib/fflush.c (rpl_fflush): On BSD systems, use the __SNPT flag.
30049 Suggested by Joerg Sonnenberger <joerg@britannica.bec.de>.
30051 2007-07-30 Bruno Haible <bruno@clisp.org>
30053 * modules/base64 (License): Use the synonymous term "LGPLv2+".
30054 * modules/c-ctype (License): Likewise.
30055 * modules/c-strcase (License): Likewise.
30056 * modules/check-version (License): Likewise.
30057 * modules/iconv (License): Likewise.
30058 * modules/iconv_open (License): Likewise.
30059 * modules/read-file (License): Likewise.
30060 * modules/striconv (License): Likewise.
30061 * modules/strverscmp (License): Likewise.
30062 * modules/vasprintf (License): Likewise.
30063 * modules/crypto/des (License): Likewise.
30064 * modules/crypto/gc (License): Likewise.
30065 * modules/crypto/gc-arcfour (License): Likewise.
30066 * modules/crypto/gc-arctwo (License): Likewise.
30067 * modules/crypto/gc-des (License): Likewise.
30068 * modules/crypto/gc-hmac-md5 (License): Likewise.
30069 * modules/crypto/gc-hmac-sha1 (License): Likewise.
30070 * modules/crypto/gc-md2 (License): Likewise.
30071 * modules/crypto/gc-md4 (License): Likewise.
30072 * modules/crypto/gc-md5 (License): Likewise.
30073 * modules/crypto/gc-pbkdf2-sha1 (License): Likewise.
30074 * modules/crypto/gc-random (License): Likewise.
30075 * modules/crypto/gc-rijndael (License): Likewise.
30076 * modules/crypto/gc-sha1 (License): Likewise.
30077 * modules/crypto/md2 (License): Likewise.
30078 * modules/crypto/md4 (License): Likewise.
30080 2007-07-30 Jim Meyering <jim@meyering.net>
30082 * lib/fts.c (fts_read): Upon failure to chdir into a subdirectory,
30083 set fts_info to FTS_DNR, not to FTS_ERR, so that the caller knows
30084 it has valid stat data. This bug would cause du not to count the
30085 sizes of inaccessible directories.
30086 Patch by Bryan Mason <bmason@redhat.com>, via Jose Maria Plans
30087 in <http://bugzilla.redhat.com/250077>.
30089 2007-07-25 Peter O'Gorman <peter@pogma.com>
30090 Bruno Haible <bruno@clisp.org>
30092 * m4/include_next.m4 (gl_INCLUDE_NEXT): Test whether #include_next
30093 really works. Needed because AIX 4.3 "xlc -E" doesn't understand
30094 #include_next, gives a diagnostic about it, but reports no error in
30096 Reported by Gary V. Vaughan <gary@thewrittenword.com>.
30098 2007-07-24 Ben Pfaff <blp@gnu.org>
30100 Improve name: "count-one-bits" is better than "popcount".
30101 * MODULES.html.sh: Update name.
30102 * lib/popcount.h: Renamed lib/count-one-bits.h.
30103 (popcount): Renamed count_one_bits.
30104 (popcountl): Renamed count_one_bits_l.
30105 (popcountll): Renamed count_one_bits_ll.
30106 * m4/popcount.m4: Renamed m4/count-one-bits.m4.
30107 * modules/popcount: Renamed module/count-one-bits.
30108 * modules/popcount-tests: Renamed module/count-one-bits-tests.
30109 * tests/test-popcount.c: Renamed tests/test-count-one-bits.c.
30111 2007-07-23 Ben Pfaff <blp@gnu.org>
30113 * lib/popcount.h (popcount32): Reduce size of constants, to allow
30114 better code generation, and add U to large constants to avoid
30115 warnings, in non-GCC case.
30116 Suggested by Bruno Haible.
30118 2007-07-23 Ben Pfaff <blp@gnu.org>
30120 * lib/popcount.h: Use verify_true instead of if...abort.
30121 * modules/popcount: Depend on verify module.
30122 Suggested by Jim Meyering.
30124 2007-07-23 Bruno Haible <bruno@clisp.org>
30126 * gnulib-tool (func_import): Create a .cvsignore file also when the
30127 directory is not yet in CVS but the toplevel directory is. When
30128 creating a .cvsignore file, add ".deps" and ".dirstamp" to it.
30129 Reported by Karl Berry.
30131 2007-07-22 Ben Pfaff <blp@gnu.org>
30133 * lib/popcount.h: Use faster, branchless algorithm for non-GCC
30135 Suggested by Eric Blake.
30137 2007-07-22 Ben Pfaff <blp@gnu.org>
30139 New module: popcount.
30140 * MODULES.html.sh: Add popcount.
30141 * modules/popcount: New file.
30142 * modules/popcount-tests: New file.
30143 * tests/test-popcount.c: New file.
30144 * lib/popcount.h: New file.
30145 * m4/popcount.m4: New file.
30147 2007-07-22 Paul Eggert <eggert@cs.ucla.edu>
30149 * build-aux/announce-gen: Update to GPLv3.
30151 * build-aux/config.guess: Update from config.
30153 2007-07-21 Bruno Haible <bruno@clisp.org>
30155 * lib/error.c (_) [ENABLE_NLS]: Define to gettext.
30156 * lib/verror.c (_) [ENABLE_NLS]: Likewise.
30158 2007-07-20 Jim Meyering <jim@meyering.net>
30160 * check-module: Diagnose a self-dependency.
30162 2007-07-19 Bruno Haible <bruno@clisp.org>
30164 * gnulib-tool (func_import): Don't abort if pobase or po_domain is
30166 Reported by Eric Blake.
30168 2007-07-18 Bruno Haible <bruno@clisp.org>
30170 * gnulib-tool: New options --po-base, --po-domain.
30171 (func_usage): Document them.
30172 (pobase, po_domain): New variables.
30173 (func_emit_lib_Makefile_am): Augment AM_CPPFLAGS, defining
30174 DEFAULT_TEXT_DOMAIN.
30175 (func_emit_po_Makevars, func_emit_po_POTFILES_in): New functions.
30176 (func_import): Consider pobase and po_domain. Create a po/ directory.
30177 (func_create_testdir): Set pobase and po_domain to empty.
30178 * build-aux/po/Makefile.in.in: New file, from GNU gettext 0.16.1.
30179 * build-aux/po/remove-potcdate.sin: New file, from GNU gettext 0.16.1.
30181 2007-07-18 Bruno Haible <bruno@clisp.org>
30183 * gnulib-tool (func_get_automake_snippet): Synthesize also an
30184 EXTRA_DIST augmentation for files in build-aux/.
30186 2007-07-16 Bruno Haible <bruno@clisp.org>
30188 * modules/lseek (License): Use the synonymous term "LGPLv2+".
30189 * modules/getdelim (License): Likewise.
30191 2007-07-16 Yoann Vandoorselaere <yoann.v@prelude-ids.com>
30193 * modules/arpa_inet (License): Use the synonymous term LGPLv2+.
30194 * modules/d-type (License): Likewise.
30195 * modules/extensions (License): Likewise.
30196 * modules/fnmatch (License): Likewise.
30197 * modules/fseeko (License): Likewise.
30198 * modules/getaddrinfo (License): Likewise.
30199 * modules/getline (License): Likewise.
30200 * modules/getlogin_r (License): Likewise.
30201 * modules/getpass (License): Likewise.
30202 * modules/gettimeofday (License): Likewise.
30203 * modules/glob (License): Likewise.
30204 * modules/inet_ntop (License): Likewise.
30205 * modules/malloc (License): Likewise.
30206 * modules/malloca (License): Likewise.
30207 * modules/memmem (License): Likewise.
30208 * modules/mempcpy (License): Likewise.
30209 * modules/memset (License): Likewise.
30210 * modules/minmax (License): Likewise.
30211 * modules/mktime (License): Likewise.
30212 * modules/netinet_in (License): Likewise.
30213 * modules/pathmax (License): Likewise.
30214 * modules/poll (License): Likewise.
30215 * modules/regex (License): Likewise.
30216 * modules/snprintf (License): Likewise.
30217 * modules/stdbool (License): Likewise.
30218 * modules/stdint (License): Likewise.
30219 * modules/stdio (License): Likewise.
30220 * modules/strcase (License): Likewise.
30221 * modules/strcasestr (License): Likewise.
30222 * modules/strdup (License): Likewise.
30223 * modules/string (License): Likewise.
30224 * modules/strndup (License): Likewise.
30225 * modules/strnlen (License): Likewise.
30226 * modules/strpbrk (License): Likewise.
30227 * modules/strptime (License): Likewise.
30228 * modules/strsep (License): Likewise.
30229 * modules/sys_select (License): Likewise.
30230 * modules/sys_socket (License): Likewise.
30231 * modules/sys_stat (License): Likewise.
30232 * modules/sys_time (License): Likewise.
30233 * modules/time (License): Likewise.
30234 * modules/time_r (License): Likewise.
30235 * modules/timegm (License): Likewise.
30236 * modules/unistd (License): Likewise.
30237 * modules/vsnprintf (License): Likewise.
30238 * modules/wctype (License): Likewise.
30240 2007-07-16 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
30242 * modules/argz (License): LGPLv2+.
30244 2007-07-15 Karl Berry <karl@gnu.org>
30246 * doc/gnulib.texi: revise node structure per new fdl.texi.
30248 2007-07-14 Bruno Haible <bruno@clisp.org>
30250 * lib/uniname/gen-uninames.lisp (main): Emit a "do not edit" line to
30252 * lib/uniname/uninames.h: Regenerated.
30254 2007-07-14 Karl Berry <karl@gnu.org>
30256 * doc/*gpl*.texi, doc/fdl.texi: new versions, consistently
30257 omitting sectioning and index commands.
30259 2007-07-13 Bruno Haible <bruno@clisp.org>
30261 New gnulib-tool option --more-symlinks.
30262 * gnulib-tool (func_usage): Document --more-symlinks.
30263 (do_copyrights): New variable.
30264 Recognize option --more-symlinks.
30265 (func_import): Don't add a copyright notice transform to
30266 sed_transform_lib_file if do_copyrights is empty.
30268 2007-07-13 Bruno Haible <bruno@clisp.org>
30270 * lib/vasnprintf.c (decimal_point_char): Define also if
30271 (NEED_PRINTF_LONG_DOUBLE || NEED_PRINTF_INFINITE_DOUBLE)
30272 && !NEED_PRINTF_DIRECTIVE_A.
30273 Reported by Clemens Koller <clemens.koller@anagramm.de> via
30274 Gary V. Vaughan <gary@gnu.org>.
30276 2007-07-13 Paul Eggert <eggert@cs.ucla.edu>
30278 * lib/inttypes_.h: Undo previous change, since it was fixed
30279 in a different way in the 2007-07-02 fix to m4/inttypes.m4.
30281 2007-07-13 Bruno Haible <bruno@clisp.org>
30283 * lib/stdint_.h: Fix typo: _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H was
30284 misspelled as _GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H.
30286 2007-07-13 Jim Meyering <jim@meyering.net>
30288 df: Don't fail for Tru64's "file-on-file mount".
30289 * m4/fsusage.m4 (gl_FSUSAGE): Reject Tru64's buggy statvfs,
30290 so we fall through and use statfs instead. Details here:
30291 <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/10878>
30292 Reported by Albert Chin.
30294 2007-07-13 Bruno Haible <bruno@clisp.org>
30296 * modules/alloca-opt (License): Use the synonymous term "LGPLv2+".
30297 * modules/configmake (License): Likewise.
30298 * modules/gettext (License): Likewise.
30299 * modules/gettext-h (License): Likewise.
30300 * modules/include_next (License): Likewise.
30301 * modules/link-warning (License): Likewise.
30302 * modules/localcharset (License): Likewise.
30303 * modules/localename (License): Likewise.
30304 * modules/lock (License): Likewise.
30305 * modules/relocatable-lib-lgpl (License): Likewise.
30306 * modules/size_max (License): Likewise.
30307 * modules/vasnprintf (License): Likewise.
30308 * modules/wchar (License): Likewise.
30309 * modules/xsize (License): Likewise.
30311 2007-07-13 Bruno Haible <bruno@clisp.org>
30313 * gnulib-tool (func_import): Treat LGPLv2 as synonymous to LGPL.
30314 (func_create_testdir): Handle copying terms "GPLv2+" and "LGPLv2+".
30316 2007-07-12 Bruno Haible <bruno@clisp.org>
30318 * doc/gnulib-intro.texi (Copyright): Clarify the license abbreviations
30319 in the modules files.
30321 2007-07-11 Karl Berry <karl@gnu.org>
30323 * MODULES.html.sh (func_module): use
30324 sed -e '\|^'"${includefile}"'$|d'
30325 instead of /.../d, to avoid errors on $includefile's containing /.
30327 2007-07-10 Sergey Poznyakoff <gray@gnu.org.ua>
30329 * gnulib-tool (func_import): Avoid duplication of --avoid
30331 (func_dest_tmpfilename,func_create_testdir): Translate `-' in file
30332 names to `_' in variable names.
30334 2007-07-10 Eric Blake <ebb9@byu.net>
30336 * lib/version-etc.c (version_etc_va): Default to GPLv3+.
30337 * NEWS: Document this change.
30339 2007-07-08 Bruno Haible <bruno@clisp.org>
30341 Update to Unicode 5.0.
30342 * lib/uniwidth/width.c (nonspacing_table_data): Add U+00AD,
30343 U+0350..U+035F, U+05A2, U+05BA, U+05C5, U+05C7, U+0600..U+0603,
30344 U+0610..U+0615, U+0656..U+065E, U+07EB..U+07F3, U+0A01, U+0AE2..U+0AE3,
30345 U+0CBC. Remove U+0CBF, U+0CC6. Add U+0CE2..U+0CE3, U+135F,
30346 U+17B4..U+17B5, U+17DD. Remove U+180E. Add U+1920..U+1922,
30347 U+1927..U+192B, U+1932, U+1939..U+193B, U+1A17..U+1A18, U+1B00..U+1B03,
30348 U+1B34, U+1B36..U+1B3A, U+1B3C, U+1B42, U+1B6B..U+1B73, U+1DC0..U+1DCA,
30349 U+1DFE..U+1DFF, U+20EB..U+20EF, U+A802, U+A806, U+A80B, U+A825..U+A826,
30350 U+10A01..U+10A03, U+10A05..U+10A06, U+10A0C..U+10A0F, U+10A38..U+10A3A,
30351 U+10A3F, U+1D242..U+1D244.
30352 (nonspacing_table_ind): Update.
30353 (uc_width): Assign width 0 to U+E0100..U+E01EF. Assign width 1 to
30354 U+4DC0..U+4DFF. Assign width 2 to U+2329..U+232A, U+FE10..U+FE1F.
30356 2007-07-08 Bruno Haible <bruno@clisp.org>
30358 Update to Unicode 5.0.
30359 * lib/uniname/gen-uninames.lisp (main): Add the range 0x12xxx to the
30360 code transform. Extend the name index field of unicode_name_to_code and
30361 unicode_code_to_name from 16 to 24 bits.
30362 * lib/uniname/uniname.c (unicode_character_name,
30363 unicode_name_character): Add the range 0x12xxx to the code transform.
30364 * lib/uniname/uninames.h: Regenerated.
30365 * tests/uniname/UnicodeDataNames.txt: Update to Unicode 5.0.
30367 2007-07-07 Bruno Haible <bruno@clisp.org>
30369 * modules/wcwidth-tests: New file.
30370 * tests/test-wcwidth.c: New file.
30372 Work around MacOS X wcwidth() bug.
30373 * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Test against MacOS X 10.3 bug.
30374 * lib/wcwidth.c: Include localcharset.h, streq.h, uniwidth.h.
30375 (rpl_wcwidth): Special-case the UTF-8 locales. Fall back to the
30376 original wcwidth in non-UTF-8 locales.
30377 * modules/wcwidth (Depends-on): Add localcharset, streq,
30379 * doc/functions/wcwidth.texi: Update.
30381 2007-07-07 Bruno Haible <bruno@clisp.org>
30383 * lib/wchar_.h: Include the GL_LINK_WARNING macro.
30384 (wcwidth): New declaration.
30385 * m4/wchar.m4 (gl_WCHAR_MODULE_INDICATOR, gl_WCHAR_H_DEFAULTS): New
30387 (gl_WCHAR_H): Require gl_WCHAR_H_DEFAULTS. Don't set WCHAR_H to empty
30388 here. Prepare for creating <wchar.h> unconditionally.
30389 * modules/wchar (Depends-on): Add link-warning.
30390 (Makefile.am): Substitute also GNULIB_WCWIDTH, HAVE_DECL_WCWIDTH,
30391 REPLACE_WCWIDTH, and GL_LINK_WARNING.
30392 * lib/wcwidth.h: Remove file.
30393 * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Require gl_WCHAR_H_DEFAULTS. Set
30394 HAVE_DECL_WCWIDTH, REPLACE_WCWIDTH, WCHAR_H.
30395 * modules/wcwidth (Files): Remove lib/wcwidth.h.
30396 (configure.ac): Invoke gl_WCHAR_MODULE_INDICATOR.
30397 (Include): Replace wcwidth.h with <wchar.h>.
30398 * lib/wcwidth.c: Include <wchar.h> instead of wcwidth.h.
30399 * lib/mbchar.h: Don't include wcwidth.h.
30400 * lib/mbswidth.c: Likewise.
30401 * NEWS: Mention the change.
30403 2007-07-07 Bruno Haible <bruno@clisp.org>
30405 * lib/wcwidth.c: New file, extracted from lib/wcwidth.h.
30406 * lib/wcwidth.h: Don't include wctype.h. Replace inline function
30407 definition with an external declaration.
30408 * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Use wcwidth.c when wcwidth is not
30409 defined as a function. Remove AC_C_INLINE requirement.
30410 * modules/wcwidth (Files): Add lib/wcwidth.c.
30411 (Makefile.am): Remove redundant statement.
30413 2007-07-07 Bruno Haible <bruno@clisp.org>
30415 * MODULES.html.sh (Unicode string functions): Add the new modules.
30417 * tests/uniwidth/test-u32-strwidth.c: New file.
30418 * modules/uniwidth/u32-strwidth-tests: New file.
30420 * lib/uniwidth/u32-strwidth.c: New file.
30421 * modules/uniwidth/u32-strwidth: New file.
30423 * tests/uniwidth/test-u16-strwidth.c: New file.
30424 * modules/uniwidth/u16-strwidth-tests: New file.
30426 * lib/uniwidth/u16-strwidth.c: New file.
30427 * modules/uniwidth/u16-strwidth: New file.
30429 * tests/uniwidth/test-u8-strwidth.c: New file.
30430 * modules/uniwidth/u8-strwidth-tests: New file.
30432 * lib/uniwidth/u8-strwidth.c: New file.
30433 * modules/uniwidth/u8-strwidth: New file.
30435 * tests/uniwidth/test-u32-width.c: New file.
30436 * modules/uniwidth/u32-width-tests: New file.
30438 * lib/uniwidth/u32-width.c: New file.
30439 * modules/uniwidth/u32-width: New file.
30441 * tests/uniwidth/test-u16-width.c: New file.
30442 * modules/uniwidth/u16-width-tests: New file.
30444 * lib/uniwidth/u16-width.c: New file.
30445 * modules/uniwidth/u16-width: New file.
30447 * tests/uniwidth/test-u8-width.c: New file.
30448 * modules/uniwidth/u8-width-tests: New file.
30450 * lib/uniwidth/u8-width.c: New file.
30451 * modules/uniwidth/u8-width: New file.
30453 * tests/uniwidth/test-uc_width.c: New file.
30454 * modules/uniwidth/width-tests: New file.
30456 * lib/uniwidth/width.c: New file, from GNU libiconv.
30457 * lib/uniwidth/cjk.h: New file, from GNU libiconv.
30458 * modules/uniwidth/width: New file.
30460 * lib/uniwidth.h: New file, from GNU libiconv.
30461 * modules/uniwidth/base: New file.
30463 2007-07-07 Bruno Haible <bruno@clisp.org>
30465 * lib/uniname.h: New file, from GNU gettext.
30466 * lib/uniname/gen-uninames.lisp: New file, from GNU gettext.
30467 * lib/uniname/uninames.h: New file, from GNU gettext.
30468 * lib/uniname/uniname.c: New file, from GNU gettext.
30469 * tests/uniname/test-uninames.sh: New file.
30470 * tests/uniname/test-uninames.c: New file, from GNU gettext.
30471 * tests/uniname/UnicodeDataNames.txt: New file, from GNU gettext.
30472 * modules/uniname/base: New file.
30473 * modules/uniname/uniname: New file.
30474 * modules/uniname/uniname-tests: New file.
30475 * MODULES.html.sh (Unicode string functions): Add the new modules.
30477 2007-07-06 Bruno Haible <bruno@clisp.org>
30479 * doc/Makefile (TEXI2HTML): Specify a --reference-limit.
30481 2007-07-06 Bruno Haible <bruno@clisp.org>
30483 * lib/sys_time_.h: Use a recursion-safe inclusion guard rather than
30484 a split double-inclusion guard. Needed for cygwin, where <sys/time.h>
30485 includes <cygwin/sys_time.h> which includes <sys/select.h> which
30486 include <sys/time.h>.
30487 Reported by Eric Blake.
30489 2007-07-06 Eric Blake <ebb9@byu.net>
30491 Fix testing canonicalize on cygwin.
30492 * modules/canonicalize-lgpl-tests (test_canonicalize_lgpl_LDADD):
30493 Revert patch from 2007-06-19.
30494 * tests/test-canonicalize-lgpl.c (main): Instead, skip test when
30495 canonicalize module is also in use.
30496 * tests/test-canonicalize.c: New file.
30497 * tests/test-canonicalize.sh: Likewise.
30498 * modules/canonicalize-tests: Likewise.
30500 2007-07-06 Jim Meyering <jim@meyering.net>
30502 * lib/getugroups.c (getugroups): Detect getgrent failure.
30503 Adjust comment to reflect reality: this function may return -1.
30505 2007-07-05 Sergey Poznyakoff <gray@gnu.org.ua>
30507 * build-aux/bootstrap (TP_URL,get_translations): Update to use
30508 the new TP address.
30510 (gnulib_mk): New variable.
30512 2007-07-05 Jim Meyering <jim@meyering.net>
30514 Don't let endgrent clobber errno, no matter how improbable.
30515 * lib/getugroups.c (getugroups): Save and restore errno around
30518 Close the group DB even when failing with 2^31 or more members.
30519 * lib/getugroups.c (getugroups): Don't return without calling endgrent.
30521 2007-07-04 Jim Meyering <jim@meyering.net>
30523 * lib/getugroups.h: New file.
30524 * lib/getugroups.c: Include "getugroups.h".
30525 Remove uses of "register" keyword.
30526 Move local variable, "cp", down into scope where used.
30527 Give "username" parameter the "const" attribute.
30528 * modules/getugroups (Files): Add lib/getugroups.h
30530 2007-07-04 Karl Berry <karl@gnu.org>
30532 * MODULES.html.sh (func_all_modules): Complete rename of
30533 gpl/lgpl to gpl-2.0 and lgpl-2.1, and add gpl-3.0.
30535 2007-07-02 Bruno Haible <bruno@clisp.org>
30537 * m4/inttypes.m4 (gl_INTTYPES_H): Define __STDC_LIMIT_MACROS in C++
30538 mode, when inttypes.h comes from gnulib.
30539 Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
30541 2007-07-02 Simon Josefsson <simon@josefsson.org>
30543 * NEWS: Mention lgpl module name change.
30545 * modules/lgpl-2.1: Renamed from lgpl.
30547 * NEWS: Mention gpl module name change.
30549 * modules/gpl-3.0: New file, based on gpl-2.0.
30551 * modules/gpl-2.0: Renamed from gpl.
30553 * modules/gpl: Fix filename, doc/gpl.texi is now found at
30556 2007-07-02 Paul Eggert <eggert@cs.ucla.edu>
30558 * lib/inttypes_.h [defined __cplusplus&&!defined __STDC_LIMIT_MACROS]:
30559 #define __STDC_LIMIT_MACROS temporarily while including
30560 <stdint.h>, so that __STDC_LIMIT_MACROS is defined.
30561 Problem reported by Joel E. Denny in
30562 <http://lists.gnu.org/archive/html/bug-gnulib/2007-07/msg00008.html>.
30564 2007-07-01 Bruno Haible <bruno@clisp.org>
30566 * lib/unistdio.h: New file.
30567 * lib/unistdio/u-asnprintf.h: New file.
30568 * lib/unistdio/u-asprintf.h: New file.
30569 * lib/unistdio/u-printf-args.c: New file.
30570 * lib/unistdio/u-printf-args.h: New file.
30571 * lib/unistdio/u-printf-parse.h: New file.
30572 * lib/unistdio/u-snprintf.h: New file.
30573 * lib/unistdio/u-sprintf.h: New file.
30574 * lib/unistdio/u-vasprintf.h: New file.
30575 * lib/unistdio/u-vsnprintf.h: New file.
30576 * lib/unistdio/u-vsprintf.h: New file.
30577 * lib/unistdio/ulc-asnprintf.c: New file.
30578 * lib/unistdio/ulc-asprintf.c: New file.
30579 * lib/unistdio/ulc-fprintf.c: New file, based on lib/fprintf.c.
30580 * lib/unistdio/ulc-printf-parse.c: New file.
30581 * lib/unistdio/ulc-snprintf.c: New file.
30582 * lib/unistdio/ulc-sprintf.c: New file.
30583 * lib/unistdio/ulc-vasnprintf.c: New file.
30584 * lib/unistdio/ulc-vasprintf.c: New file.
30585 * lib/unistdio/ulc-vfprintf.c: New file, based on lib/vfprintf.c.
30586 * lib/unistdio/ulc-vsnprintf.c: New file.
30587 * lib/unistdio/ulc-vsprintf.c: New file.
30588 * lib/unistdio/u8-asnprintf.c: New file.
30589 * lib/unistdio/u8-asprintf.c: New file.
30590 * lib/unistdio/u8-printf-parse.c: New file.
30591 * lib/unistdio/u8-snprintf.c: New file.
30592 * lib/unistdio/u8-sprintf.c: New file.
30593 * lib/unistdio/u8-vasnprintf.c: New file.
30594 * lib/unistdio/u8-vasprintf.c: New file.
30595 * lib/unistdio/u8-vsnprintf.c: New file.
30596 * lib/unistdio/u8-vsprintf.c: New file.
30597 * lib/unistdio/u8-u8-asnprintf.c: New file.
30598 * lib/unistdio/u8-u8-asprintf.c: New file.
30599 * lib/unistdio/u8-u8-snprintf.c: New file.
30600 * lib/unistdio/u8-u8-sprintf.c: New file.
30601 * lib/unistdio/u8-u8-vasnprintf.c: New file.
30602 * lib/unistdio/u8-u8-vasprintf.c: New file.
30603 * lib/unistdio/u8-u8-vsnprintf.c: New file.
30604 * lib/unistdio/u8-u8-vsprintf.c: New file.
30605 * lib/unistdio/u16-asnprintf.c: New file.
30606 * lib/unistdio/u16-asprintf.c: New file.
30607 * lib/unistdio/u16-printf-parse.c: New file.
30608 * lib/unistdio/u16-snprintf.c: New file.
30609 * lib/unistdio/u16-sprintf.c: New file.
30610 * lib/unistdio/u16-vasnprintf.c: New file.
30611 * lib/unistdio/u16-vasprintf.c: New file.
30612 * lib/unistdio/u16-vsnprintf.c: New file.
30613 * lib/unistdio/u16-vsprintf.c: New file.
30614 * lib/unistdio/u16-u16-asnprintf.c: New file.
30615 * lib/unistdio/u16-u16-asprintf.c: New file.
30616 * lib/unistdio/u16-u16-snprintf.c: New file.
30617 * lib/unistdio/u16-u16-sprintf.c: New file.
30618 * lib/unistdio/u16-u16-vasnprintf.c: New file.
30619 * lib/unistdio/u16-u16-vasprintf.c: New file.
30620 * lib/unistdio/u16-u16-vsnprintf.c: New file.
30621 * lib/unistdio/u16-u16-vsprintf.c: New file.
30622 * lib/unistdio/u32-asnprintf.c: New file.
30623 * lib/unistdio/u32-asprintf.c: New file.
30624 * lib/unistdio/u32-printf-parse.c: New file.
30625 * lib/unistdio/u32-snprintf.c: New file.
30626 * lib/unistdio/u32-sprintf.c: New file.
30627 * lib/unistdio/u32-vasnprintf.c: New file.
30628 * lib/unistdio/u32-vasprintf.c: New file.
30629 * lib/unistdio/u32-vsnprintf.c: New file.
30630 * lib/unistdio/u32-vsprintf.c: New file.
30631 * lib/unistdio/u32-u32-asnprintf.c: New file.
30632 * lib/unistdio/u32-u32-asprintf.c: New file.
30633 * lib/unistdio/u32-u32-snprintf.c: New file.
30634 * lib/unistdio/u32-u32-sprintf.c: New file.
30635 * lib/unistdio/u32-u32-vasnprintf.c: New file.
30636 * lib/unistdio/u32-u32-vasprintf.c: New file.
30637 * lib/unistdio/u32-u32-vsnprintf.c: New file.
30638 * lib/unistdio/u32-u32-vsprintf.c: New file.
30639 * tests/unistdio/test-ulc-asnprintf1.c: New file.
30640 * tests/unistdio/test-ulc-asnprintf1.h: New file.
30641 * tests/unistdio/test-ulc-printf1.h: New file.
30642 * tests/unistdio/test-ulc-vasnprintf1.c: New file.
30643 * tests/unistdio/test-ulc-vasnprintf2.c: New file.
30644 * tests/unistdio/test-ulc-vasnprintf2.sh: New file.
30645 * tests/unistdio/test-ulc-vasnprintf3.c: New file.
30646 * tests/unistdio/test-ulc-vasnprintf3.sh: New file.
30647 * tests/unistdio/test-ulc-vasprintf1.c: New file.
30648 * tests/unistdio/test-ulc-vsnprintf1.c: New file.
30649 * tests/unistdio/test-ulc-vsprintf1.c: New file.
30650 * tests/unistdio/test-u8-asnprintf1.c: New file.
30651 * tests/unistdio/test-u8-asnprintf1.h: New file.
30652 * tests/unistdio/test-u8-printf1.h: New file.
30653 * tests/unistdio/test-u8-vasnprintf1.c: New file.
30654 * tests/unistdio/test-u8-vasnprintf2.c: New file.
30655 * tests/unistdio/test-u8-vasnprintf2.sh: New file.
30656 * tests/unistdio/test-u8-vasnprintf3.c: New file.
30657 * tests/unistdio/test-u8-vasnprintf3.sh: New file.
30658 * tests/unistdio/test-u8-vasprintf1.c: New file.
30659 * tests/unistdio/test-u8-vsnprintf1.c: New file.
30660 * tests/unistdio/test-u8-vsprintf1.c: New file.
30661 * tests/unistdio/test-u16-asnprintf1.c: New file.
30662 * tests/unistdio/test-u16-asnprintf1.h: New file.
30663 * tests/unistdio/test-u16-printf1.h: New file.
30664 * tests/unistdio/test-u16-vasnprintf1.c: New file.
30665 * tests/unistdio/test-u16-vasnprintf2.c: New file.
30666 * tests/unistdio/test-u16-vasnprintf2.sh: New file.
30667 * tests/unistdio/test-u16-vasnprintf3.c: New file.
30668 * tests/unistdio/test-u16-vasnprintf3.sh: New file.
30669 * tests/unistdio/test-u16-vasprintf1.c: New file.
30670 * tests/unistdio/test-u16-vsnprintf1.c: New file.
30671 * tests/unistdio/test-u16-vsprintf1.c: New file.
30672 * tests/unistdio/test-u32-asnprintf1.c: New file.
30673 * tests/unistdio/test-u32-asnprintf1.h: New file.
30674 * tests/unistdio/test-u32-printf1.h: New file.
30675 * tests/unistdio/test-u32-vasnprintf1.c: New file.
30676 * tests/unistdio/test-u32-vasnprintf2.c: New file.
30677 * tests/unistdio/test-u32-vasnprintf2.sh: New file.
30678 * tests/unistdio/test-u32-vasnprintf3.c: New file.
30679 * tests/unistdio/test-u32-vasnprintf3.sh: New file.
30680 * tests/unistdio/test-u32-vasprintf1.c: New file.
30681 * tests/unistdio/test-u32-vsnprintf1.c: New file.
30682 * tests/unistdio/test-u32-vsprintf1.c: New file.
30683 * modules/unistdio/base: New file.
30684 * modules/unistdio/u-printf-args: New file.
30685 * modules/unistdio/ulc-asnprintf: New file.
30686 * modules/unistdio/ulc-asprintf: New file.
30687 * modules/unistdio/ulc-fprintf: New file.
30688 * modules/unistdio/ulc-printf-parse: New file.
30689 * modules/unistdio/ulc-snprintf: New file.
30690 * modules/unistdio/ulc-sprintf: New file.
30691 * modules/unistdio/ulc-vasnprintf: New file.
30692 * modules/unistdio/ulc-vasprintf: New file.
30693 * modules/unistdio/ulc-vfprintf: New file.
30694 * modules/unistdio/ulc-vsnprintf: New file.
30695 * modules/unistdio/ulc-vsprintf: New file.
30696 * modules/unistdio/u8-asnprintf: New file.
30697 * modules/unistdio/u8-asprintf: New file.
30698 * modules/unistdio/u8-printf-parse: New file.
30699 * modules/unistdio/u8-snprintf: New file.
30700 * modules/unistdio/u8-sprintf: New file.
30701 * modules/unistdio/u8-vasnprintf: New file.
30702 * modules/unistdio/u8-vasprintf: New file.
30703 * modules/unistdio/u8-vsnprintf: New file.
30704 * modules/unistdio/u8-vsprintf: New file.
30705 * modules/unistdio/u8-u8-asnprintf: New file.
30706 * modules/unistdio/u8-u8-asprintf: New file.
30707 * modules/unistdio/u8-u8-snprintf: New file.
30708 * modules/unistdio/u8-u8-sprintf: New file.
30709 * modules/unistdio/u8-u8-vasnprintf: New file.
30710 * modules/unistdio/u8-u8-vasprintf: New file.
30711 * modules/unistdio/u8-u8-vsnprintf: New file.
30712 * modules/unistdio/u8-u8-vsprintf: New file.
30713 * modules/unistdio/u16-asnprintf: New file.
30714 * modules/unistdio/u16-asprintf: New file.
30715 * modules/unistdio/u16-printf-parse: New file.
30716 * modules/unistdio/u16-snprintf: New file.
30717 * modules/unistdio/u16-sprintf: New file.
30718 * modules/unistdio/u16-vasnprintf: New file.
30719 * modules/unistdio/u16-vasprintf: New file.
30720 * modules/unistdio/u16-vsnprintf: New file.
30721 * modules/unistdio/u16-vsprintf: New file.
30722 * modules/unistdio/u16-u16-asnprintf: New file.
30723 * modules/unistdio/u16-u16-asprintf: New file.
30724 * modules/unistdio/u16-u16-snprintf: New file.
30725 * modules/unistdio/u16-u16-sprintf: New file.
30726 * modules/unistdio/u16-u16-vasnprintf: New file.
30727 * modules/unistdio/u16-u16-vasprintf: New file.
30728 * modules/unistdio/u16-u16-vsnprintf: New file.
30729 * modules/unistdio/u16-u16-vsprintf: New file.
30730 * modules/unistdio/u32-asnprintf: New file.
30731 * modules/unistdio/u32-asprintf: New file.
30732 * modules/unistdio/u32-printf-parse: New file.
30733 * modules/unistdio/u32-snprintf: New file.
30734 * modules/unistdio/u32-sprintf: New file.
30735 * modules/unistdio/u32-vasnprintf: New file.
30736 * modules/unistdio/u32-vasprintf: New file.
30737 * modules/unistdio/u32-vsnprintf: New file.
30738 * modules/unistdio/u32-vsprintf: New file.
30739 * modules/unistdio/u32-u32-asnprintf: New file.
30740 * modules/unistdio/u32-u32-asprintf: New file.
30741 * modules/unistdio/u32-u32-snprintf: New file.
30742 * modules/unistdio/u32-u32-sprintf: New file.
30743 * modules/unistdio/u32-u32-vasnprintf: New file.
30744 * modules/unistdio/u32-u32-vasprintf: New file.
30745 * modules/unistdio/u32-u32-vsnprintf: New file.
30746 * modules/unistdio/u32-u32-vsprintf: New file.
30747 * modules/unistdio/ulc-asnprintf-tests: New file.
30748 * modules/unistdio/ulc-vasnprintf-tests: New file.
30749 * modules/unistdio/ulc-vasprintf-tests: New file.
30750 * modules/unistdio/ulc-vsnprintf-tests: New file.
30751 * modules/unistdio/ulc-vsprintf-tests: New file.
30752 * modules/unistdio/u8-asnprintf-tests: New file.
30753 * modules/unistdio/u8-vasnprintf-tests: New file.
30754 * modules/unistdio/u8-vasprintf-tests: New file.
30755 * modules/unistdio/u8-vsnprintf-tests: New file.
30756 * modules/unistdio/u8-vsprintf-tests: New file.
30757 * modules/unistdio/u16-asnprintf-tests: New file.
30758 * modules/unistdio/u16-vasnprintf-tests: New file.
30759 * modules/unistdio/u16-vasprintf-tests: New file.
30760 * modules/unistdio/u16-vsnprintf-tests: New file.
30761 * modules/unistdio/u16-vsprintf-tests: New file.
30762 * modules/unistdio/u32-asnprintf-tests: New file.
30763 * modules/unistdio/u32-vasnprintf-tests: New file.
30764 * modules/unistdio/u32-vasprintf-tests: New file.
30765 * modules/unistdio/u32-vsnprintf-tests: New file.
30766 * modules/unistdio/u32-vsprintf-tests: New file.
30767 * MODULES.html.sh (Unicode string functions): Add the new modules.
30769 2007-07-01 Bruno Haible <bruno@clisp.org>
30771 * lib/sprintf.c (sprintf): Limit the available length estimation,
30772 to avoid address wraparound.
30773 * lib/vsprintf.c (vsprintf): Likewise.
30774 * modules/sprintf-posix (Dependencies): Add stdint.
30775 * modules/vsprintf-posix (Dependencies): Likewise.
30777 2007-07-01 Bruno Haible <bruno@clisp.org>
30779 * gnulib-tool (self_abspathname): Determine PATH_SEPARATOR and handle
30780 Windows PATH as well. Conservative double-quoting. Comments.
30782 2007-07-01 Bruno Haible <bruno@clisp.org>
30783 Eric Blake <ebb9@byu.net>
30784 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
30786 * gnulib-tool (self_abspathname): Fix algorithm to cope with
30787 empty components in $PATH, denoting '.'.
30789 2007-07-01 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
30791 * gnulib-tool: Fix indentation.
30792 (func_create_megatestdir): Likewise.
30793 Report by Bruno Haible.
30795 2007-06-30 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
30797 Sync from Automake.
30798 * build-aux/gnupload: Fix shell portability issues with for loops.
30799 Report by Karl Berry.
30801 2007-06-29 Simon Josefsson <simon@josefsson.org>
30803 * build-aux/maint.mk (POURL): Use translationproject.org.
30805 2007-06-27 Simon Josefsson <simon@josefsson.org>
30806 Bruno Haible <bruno@clisp.org>
30808 * m4/getaddrinfo.m4 (gl_GETADDRINFO): Require gl_HEADER_SYS_SOCKET
30809 before using HAVE_WS2TCPIP_H. Check for gai_strerror through an
30810 explicit link test, rather than AC_REPLACE_FUNCS - for mingw.
30811 (gl_PREREQ_GETADDRINFO): Require gl_HEADER_SYS_SOCKET before using
30812 HAVE_SYS_SOCKET_H and HAVE_WS2TCPIP_H.
30814 2007-06-27 Bruno Haible <bruno@clisp.org>
30816 * build-aux/config.rpath: Upgrade to libtool-1.5.24.
30817 * build-aux/config.libpath: Upgrade to libtool-1.5.24.
30819 2007-06-26 Karl Berry <karl@gnu.org>
30821 * MODULES.html.sh: remove xreadlink-with-size.
30823 2007-06-23 Paul Eggert <eggert@cs.ucla.edu>
30825 * lib/time_.h: Port to Solaris 8 with Sun Studio 11, using a
30826 method that I hope also handles the double-include problem noted
30828 <http://lists.gnu.org/archive/html/bug-gnulib/2007-05/msg00186.html>.
30830 2007-06-23 Bruno Haible <bruno@clisp.org>
30832 * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
30833 Don't let the 'mostlyclean' target fail if the last subdirectory could
30835 Reported by Karl Berry.
30837 2007-06-23 Bruno Haible <bruno@clisp.org>
30839 * gnulib-tool (echo): Add a speedier workaround for ksh.
30840 * tests/test-echo.sh: Likewise.
30842 2007-06-23 Bruno Haible <bruno@clisp.org>
30844 * gnulib-tool (echo): Add workarounds also for bash versions < 2.04.
30845 * tests/test-echo.sh: Likewise.
30847 2007-06-23 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
30849 * gnulib-tool (IFS): Initialize early, so we don't set it to
30851 (self_abspathname): Rewrite algorithm to set it, reindent.
30852 (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am)
30853 (func_create_megatestdir): Merge some sed scripts.
30855 2007-06-23 Paul Eggert <eggert@cs.ucla.edu>
30857 * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Check some typos
30858 exposed by Sun Studio 11 cc on Solaris 8.
30860 2007-06-22 Bruno Haible <bruno@clisp.org>
30862 * gnulib-tool (echo): Ensure the echo primitive does not interpret
30864 * tests/test-echo.sh: New file.
30866 2007-06-22 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
30868 * gnulib-tool (func_add_or_update, func_create_testdir): Do not
30869 simplify `sed_replace_build_aux' scripts, they are portable but
30870 echoing them with `echo' is not.
30871 Report and analysis by Fernando Ferreira <fernando.prog@netcabo.pt>.
30873 2007-06-21 Karl Berry <karl@gnu.org>
30875 * config/srclist.txt: guess we can't handle the licenses via
30876 srclist at the moment.
30878 2007-06-21 Paul Eggert <eggert@cs.ucla.edu>
30880 * MODULES.html.sh: Add include_next.
30881 * modules/include_next: New file.
30883 2007-06-20 Paul Eggert <eggert@cs.ucla.edu>
30885 * m4/include_next.m4 (gl_INCLUDE_NEXT): Define and AC_SUBST
30887 (gl_CHECK_NEXT_HEADERS): New macro.
30888 * m4/fcntl_h.m4 (gl_FCNTL_H): use gl_CHECK_NEXT_HEADERS instead of
30889 the obsolescent gl_ABSOLUTE_HEADER.
30890 * m4/fchdir.m4 (gl_FUNC_FCHDIR): Likewise.
30891 * m4/float_h.m4 (gl_FLOAT_H): Likewise.
30892 * m4/iconv_h.m4 (gl_ICONV_H): Likewise.
30893 * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
30894 * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
30895 * m4/math_h.m4 (gl_MATH_H): Likewise.
30896 * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Likewise.
30897 * m4/search_h.m4 (gl_SEARCH_H): Likewise.
30898 * m4/signal_h.m4 (gl_SIGNAL_H): Likewise.
30899 * m4/stdint.m4 (gl_STDINT_H): Likewise.
30900 * m4/stdio_h.m4 (gl_STDIO_H): Likewise.
30901 * m4/stdlib_h.m4 (gl_STDLIB_H): Likewise.
30902 * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Likewise.
30903 * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
30904 * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
30905 * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Likewise.
30906 * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Likewise.
30907 * m4/sysexits.m4 (gl_SYSEXITS): Likewise.
30908 * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Likewise.
30909 * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
30910 * m4/wchar.m4 (gl_WCHAR_H): Likewise.
30911 * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
30912 * m4/inttypes.m4 (gl_INTTYPES_H): Define
30913 _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H to avoid the problem of unclean
30914 builds, since ABSOLUTE_INTTYPES_H is no longer being defined.
30915 * m4/stdint.m4 (gl_STDINT_H): Likewise, for
30916 _GL_JUST_INCLUDE_SYSTEM_STDINT_H.
30917 * lib/fcntl_.h: Use @INCLUDE_NEXT@ @NEXT_foo_H@
30918 rather than @HAVE_INCLUDE_NEXT@ and @ABSOLUTE_foo_H@.
30919 * lib/float_.h: Likewise.
30920 * lib/inttypes_.h: Likewise.
30921 * lib/math_.h: Likewise.
30922 * lib/search_.h: Likewise.
30923 * lib/signal_.h: Likewise.
30924 * lib/stdint_.h: Likewise.
30925 * lib/stdio_.h: Likewise.
30926 * lib/stdlib_.h: Likewise.
30927 * lib/string_.h: Likewise.
30928 * lib/sys_stat_.h: Likewise.
30929 * lib/sys_time_.h: Likewise.
30930 * lib/time_.h: Likewise.
30931 * lib/unistd_.h: Likewise.
30932 * lib/wchar_.h: Likewise.
30933 * lib/wctype_.h: Likewise.
30934 * lib/dirent_.h: Likewise.
30935 * lib/iconv_.h: Likewise.
30936 * lib/locale_.h: Likewise.
30937 * lib/netinet_in_.h: Likewise.
30938 * lib/sys_select_.h: Likewise.
30939 * lib/sys_socket_.h: Likewise.
30940 * lib/sysexits_.h: Likewise.
30941 * modules/fcntl (Depends-on): Depend on include_next, not
30943 (Makefile): Substitute INCLUDE_NEXT and NEXT_foo_H, not
30944 HAVE_INCLUDE_NEXT and ABSOLUTE_foo_H.
30945 * modules/fchdir: Likewise.
30946 * modules/float: Likewise.
30947 * modules/iconv_open: Likewise.
30948 * modules/inttypes: Likewise.
30949 * modules/locale: Likewise.
30950 * modules/math: Likewise.
30951 * modules/netinet_in: Likewise.
30952 * modules/search: Likewise.
30953 * modules/signal: Likewise.
30954 * modules/stdint: Likewise.
30955 * modules/stdio: Likewise.
30956 * modules/stdlib: Likewise.
30957 * modules/string: Likewise.
30958 * modules/sys_select: Likewise.
30959 * modules/sys_socket: Likewise.
30960 * modules/sys_stat: Likewise.
30961 * modules/sys_time: Likewise.
30962 * modules/sysexits: Likewise.
30963 * modules/time: Likewise.
30964 * modules/unistd: Likewise.
30965 * modules/wchar: Likewise.
30966 * modules/wctype: Likewise.
30967 * modules/sys_stat: Change maintainer to "all".
30968 * modules/unistd: Likewise.
30970 2007-06-20 Karl Berry <karl@gnu.org>
30972 * config/srclist.txt: track www changes in license files.
30974 2007-06-20 Sergey Poznyakoff <gray@gnu.org.ua>
30976 * build-aux/bootstrap: Remove stray dot.
30977 Make sure build_aux settings are honored when linking
30978 gnulib_extra_files.
30980 2007-06-19 Eric Blake <ebb9@byu.net>
30982 * modules/canonicalize-lgpl-tests (test_canonicalize_lgpl_LDADD):
30983 Allow compilation on cygwin.
30985 2007-06-19 Jim Meyering <jim@meyering.net>
30987 xreadlink-with-size: Remove module. No longer used.
30988 Ex-callers now use xreadlink or mreadlink-with-size.
30989 * modules/xreadlink-with-size: Remove module.
30990 * lib/xreadlink-with-size.c: Remove file.
30991 * lib/xreadlink.h (xreadlink_with_size): Remove prototype.
30992 (xreadlink): Remove inaccurate comment. The one in xreadlink.c,
30993 just before the function definition *is* accurate.
30995 Eliminate one way canonicalize_filename_mode could exit.
30996 * lib/canonicalize.c (canonicalize_filename_mode):
30997 Use mreadlink_with_size, not xreadlink_with_size.
30999 2007-06-18 Paul Eggert <eggert@cs.ucla.edu>
31001 Detect porting problems to FreeBSD/arm, which has time_t wider than
31002 long int. Original problem reported for GNU diff by Xin Li in
31003 <http://lists.gnu.org/archive/html/bug-gnu-utils/2007-06/msg00091.html>.
31004 * modules/getdate (Depends-on): Add intprops, verify.
31005 * lib/getdate.y: Include intprops.h, verify.h. Verify that time_t
31006 is an integer type no wider than long int.
31008 2007-06-18 Jim Meyering <jim@meyering.net>
31010 New module: mreadlink-with-size.
31011 * MODULES.html.sh: Add mreadlink-with-size.
31012 * modules/mreadlink-with-size: New module
31013 * modules/canonicalize (Depends-on): Depend on mreadlink-with-size,
31014 not xreadlink-with-size.
31015 * lib/mreadlink-with-size.c, lib/mreadlink.h: New files.
31017 2007-06-16 Bruno Haible <bruno@clisp.org>
31019 * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Catch the MacOS X 10.4 bug.
31020 * doc/functions/frexpl.texi: Document the MacOS X 10.4 bug.
31021 Reported by Gary V. Vaughan <gary@gnu.org>.
31023 2007-06-15 Paul Eggert <eggert@cs.ucla.edu>
31025 Revamp lchown so that it lives in unistd.h where it belongs.
31026 * lib/lchown.h: Remove.
31027 * lib/dirchownmod.c: Don't include lib/lchown.h.
31028 * lib/fchownat.c: Likewise.
31029 * lib/openat.c: Likewise.
31030 * lib/lchown.c (REPLACE_CHOWN): Define to 0 if the system chown
31031 does not follow symlinks.
31032 (EOPNOTSUPP): Define if not defined.
31033 * lib/unistd_.h (chown): Do not replace if REPLADE_CHOWN
31035 (lchown): New decl.
31036 * m4/lchown.m4 (gl_FUNC_LCHOWN): Require gl_UNISTD_H_DEFAULTS.
31037 Do not check for lchown decl.
31038 Set REPLACE_LCHOWN.
31039 * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set GNULIB_LCHOWN,
31041 * modules/chown: Make it clear it follows symlinks.
31042 * modules/lchown: Make it clear it doesn't follow symlinks.
31043 (Files): Remove lib/lchown.h
31044 (Depends-on): Add unistd.
31045 (configure.ac): Add gl_UNISTD_MODULE_INDICATOR([lchown]).
31046 (Include): Include <unistd.h>, not "lchown.h".
31047 * modules/unistd (unistd.h): Substitude GNULIB_LCHOWN and
31050 2007-06-15 Jim Meyering <jim@meyering.net>
31052 Change license (GPL to LGPL) of fsusage and dependents.
31053 * modules/fsusage (License): Change to LGPL.
31054 * modules/full-read (License): Likewise.
31055 * modules/full-write (License): Likewise.
31056 * modules/safe-read (License): Likewise.
31057 * modules/safe-write (License): Likewise.
31059 2007-06-14 Ben Pfaff <blp@gnu.org>
31061 Missing part of allocsa -> malloca transition.
31062 * modules/relocatable-prog-wrapper: gl_ALLOCSA should be
31065 2007-06-12 Bruno Haible <bruno@clisp.org>
31067 * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Guess no when cross-compiling
31068 to ia64, x86_64, i386.
31069 Reported by Eric Blake.
31071 2007-06-12 Bruno Haible <bruno@clisp.org>
31073 * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Guess no also when
31074 cross-compiling to x86_64.
31076 2007-06-12 Paul Eggert <eggert@cs.ucla.edu>
31078 * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Fix POSIX sed portability
31079 glitch reported by Ralf Wildenhues in
31080 <http://lists.gnu.org/archive/html/bug-gnulib/2007-06/msg00114.html>.
31082 * m4/regex.m4 (gl_REGEX): Catch a bug with [[:alnum:]_-] reported by
31085 2007-06-11 Bruno Haible <bruno@clisp.org>
31087 * lib/printf-args.c (PRINTF_FETCHARGS) [ENABLE_UNISTDIO]: Fix NULL
31088 replacement string.
31089 Reported by Eric Blake.
31091 2007-06-10 Bruno Haible <bruno@clisp.org>
31093 Prepare vasnprintf code for use with Unicode strings.
31094 * lib/printf-args.h (PRINTF_FETCHARGS): New macro.
31095 (arg_type) [ENABLE_UNISTDIO]: Define TYPE_U8_STRING, TYPE_U16_STRING,
31097 (argument) [ENABLE_UNISTDIO]: Add a_u8_string, a_u16_string,
31098 a_u32_string variants.
31099 (PRINTF_FETCHARGS): Renamed from printf_fetchargs.
31100 * lib/printf-args.c: Don't include config.h and the specification
31101 header if PRINTF_FETCHARGS is already defined.
31102 (PRINTF_FETCHARGS): Renamed from printf_fetchargs.
31103 (PRINTF_FETCHARGS) [ENABLE_UNISTDIO]: Add code for TYPE_U8_STRING,
31104 TYPE_U16_STRING, TYPE_U32_STRING.
31105 * lib/printf-parse.h [ENABLE_UNISTDIO] (u8_directive, u8_directives,
31106 u16_directive, u16_directives, u32_directive, u32_directives): New
31108 (ulc_printf_parse, u8_printf_parse, u16_printf_parse, u32_printf_parse):
31110 * lib/printf-parse.c: Don't include config.h and the specification
31111 header if PRINTF_PARSE is already defined. Eliminate the set of
31112 parameters for WIDE_CHAR_VERSION; the user of this file must provide
31113 them now. Include c-ctype.h.
31114 (PRINTF_PARSE) [ENABLE_UNISTDIO]: Add code implementing the 'U'
31115 directive and CHAR_T_ONLY_ASCII.
31116 * lib/vasnprintf.c: Don't include config.h and the specification header
31117 if VASNPRINTF is already defined.
31118 (DCHAR_IS_TCHAR, DCHAR_CPY): New macros.
31119 (VASNPRINTF): Use PRINTF_FETCHARGS instead of printf_fetchargs. Use
31120 DCHAR_CPY. Handle the case that DCHAR_T and FCHAR_T are not the same
31121 type. Handle the case that TCHAR_T and FCHAR_T are not of the same
31122 size. Handle the case that DCHAR_T and TCHAR_T are not the same type,
31123 add a conversion from TCHAR_T[] to DCHAR_T[], and rework the padding
31125 (VASNPRINTF) [ENABLE_UNISTDIO]: Implement the 'U' directive. Enable
31126 pad_ourselves also in this case, with the 'c' and 's' directives, and
31127 with a different notion of "width".
31128 * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): New macros.
31130 2007-06-10 Bruno Haible <bruno@clisp.org>
31132 * modules/unistr/u32-mbsnlen: New file.
31133 * lib/unistr/u32-mbsnlen.c: New file.
31135 * modules/unistr/u16-mbsnlen: New file.
31136 * lib/unistr/u16-mbsnlen.c: New file.
31138 * modules/unistr/u8-mbsnlen: New file.
31139 * lib/unistr/u8-mbsnlen.c: New file.
31141 * lib/unistr.h (u8_mbsnlen, u16_mbsnlen, u32_mbsnlen): New
31144 2007-06-10 Bruno Haible <bruno@clisp.org>
31146 * lib/string_.h (mbsnlen): New declaration.
31147 * lib/mbsnlen.c: New file.
31148 * m4/mbsnlen.m4: New file.
31149 * modules/mbsnlen: New file.
31150 * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Set GNULIB_MBSNLEN.
31151 * modules/string (string.h): Substitute GNULIB_MBSNLEN.
31152 * MODULES.html.sh (Internationalization functions): Add mbsnlen.
31154 2007-06-10 Bruno Haible <bruno@clisp.org>
31156 * lib/mbslen.c: Include <stdlib.h>, needed for MB_CUR_MAX.
31158 2007-06-10 Bruno Haible <bruno@clisp.org>
31160 * lib/mbiter.h: Include <stddef.h>, needed for ptrdiff_t.
31161 * lib/mbuiter.h: Likewise.
31163 2007-06-10 Bruno Haible <bruno@clisp.org>
31165 * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Check for _snprintf
31168 2007-06-10 Karl Berry <karl@gnu.org>
31170 * config/srclist.txt: remove gettext entries, Bruno prefers
31171 to update individually.
31173 2007-06-10 Bruno Haible <bruno@clisp.org>
31175 * lib/vasnprintf.c (VASNPRINTF) [!USE_SNPRINTF]: Remove variable
31176 'maxlen'. Ensure only length + width bytes are allocated, not
31177 length + 1 + width.
31179 2007-06-09 Bruno Haible <bruno@clisp.org>
31181 * lib/vasnprintf.c (FCHAR_T, DCHAR_T, TCHAR_T): New macros.
31182 (CHAR_T): Remove macro.
31183 (VASNPRINTF): Update.
31185 2007-06-09 Bruno Haible <bruno@clisp.org>
31187 * MODULES.html.sh (Unicode string functions): Add the new modules.
31189 * modules/uniconv/u32-conv-to-enc: New file.
31190 * lib/uniconv/u32-conv-to-enc.c: New file.
31191 * modules/uniconv/u32-conv-to-enc-tests: New file.
31192 * tests/uniconv/test-u32-conv-to-enc.c: New file.
31194 * modules/uniconv/u16-conv-to-enc: New file.
31195 * lib/uniconv/u16-conv-to-enc.c: New file.
31196 * lib/uniconv/u-conv-to-enc.h: New file.
31197 * modules/uniconv/u16-conv-to-enc-tests: New file.
31198 * tests/uniconv/test-u16-conv-to-enc.c: New file.
31200 * modules/uniconv/u8-conv-to-enc: New file.
31201 * lib/uniconv/u8-conv-to-enc.c: New file.
31202 * modules/uniconv/u8-conv-to-enc-tests: New file.
31203 * tests/uniconv/test-u8-conv-to-enc.c: New file.
31205 * lib/uniconv.h (u8_conv_to_encoding, u16_conv_to_encoding,
31206 u32_conv_to_encoding): New declarations.
31208 2007-06-09 Bruno Haible <bruno@clisp.org>
31210 * tests/uniconv/test-u32-strconv-to-enc.c (main): Remove unused code.
31212 2007-06-09 Bruno Haible <bruno@clisp.org>
31214 Rename 'allocsa' -> 'malloca', 'freesa' -> 'freea'.
31215 * modules/malloca: Renamed from modules/allocsa, updated.
31216 * lib/malloca.h: Renamed from lib/allocsa.h, updated.
31217 * lib/malloca.c: Renamed from lib/allocsa.c, updated.
31218 * lib/malloca.valgrind: Renamed from lib/allocsa.valgrind, updated.
31219 * m4/malloca.m4: Renamed from m4/allocsa.m4, updated.
31220 * modules/malloca-tests: Renamed from modules/allocsa-tests, updated.
31221 * tests/test-malloca.c: Renamed from tests/test-allocsa.c, updated.
31222 * modules/xmalloca: Renamed from modules/xallocsa, updated.
31223 * lib/xmalloca.h: Renamed from lib/xallocsa.h, updated.
31224 * lib/xmalloca.c: Renamed from lib/xallocsa.c, updated.
31225 * modules/c-strcasestr (Depends-on): Update.
31226 * lib/c-strcasestr.c: Update.
31227 * modules/c-strstr (Depends-on): Update.
31228 * lib/c-strstr.c: Update.
31229 * modules/canonicalize-lgpl (Depends-on): Update.
31230 * lib/canonicalize-lgpl.c: Update.
31231 * modules/clean-temp (Depends-on): Update.
31232 * lib/clean-temp.c: Update.
31233 * modules/csharpcomp (Depends-on): Update.
31234 * lib/csharpcomp.c: Update.
31235 * modules/csharpexec (Depends-on): Update.
31236 * lib/csharpexec.c: Update.
31237 * modules/javacomp (Depends-on): Update.
31238 * lib/javacomp.c: Update.
31239 * modules/javaexec (Depends-on): Update.
31240 * lib/javaexec.c: Update.
31241 * modules/mbscasestr (Depends-on): Update.
31242 * lib/mbscasestr.c: Update.
31243 * modules/mbsstr (Depends-on): Update.
31244 * lib/mbsstr.c: Update.
31245 * modules/setenv (Depends-on): Update.
31246 * lib/setenv.c: Update.
31247 * modules/strcasestr (Depends-on): Update.
31248 * lib/strcasestr.c: Update.
31249 * modules/striconveha (Depends-on): Update.
31250 * lib/striconveha.c: Update.
31251 * modules/relocatable-prog-wrapper (Files): Update.
31252 * lib/relocwrapper.c: Update.
31253 * build-aux/install-reloc: Update.
31254 * MODULES.html.sh (Memory management functions <stdlib.h>): Update.
31256 2007-06-08 Bruno Haible <bruno@clisp.org>
31259 * lib/fbufmode.c (fbufmode): Add special code for uClibc.
31260 * lib/fpurge.c (fpurge): Likewise.
31261 * lib/freading.c (freading): Likewise.
31262 * lib/fseeko.c (rpl_fseeko): Likewise.
31263 * lib/fseterr.c (fseterr): Likewise.
31264 * lib/fwriting.c (fwriting): Likewise.
31265 * tests/test-fflush.c (main): Avoid a failure on uClibc.
31267 2007-06-08 Bruno Haible <bruno@clisp.org>
31269 * m4/intlmacosx.m4: New file, extracted from gettext.m4.
31270 * m4/gettext.m4 (gt_INTL_MACOSX): Remove macro, moved to intlmacosx.m4.
31271 * modules/gettext (Files): Add m4/intlmacosx.m4.
31273 2007-06-07 Bruno Haible <bruno@clisp.org>
31275 * modules/localename-tests: New file.
31276 * tests/test-localename.c: New file.
31278 New module 'localename'.
31279 * lib/localename.h: New file.
31280 * lib/localename.c: New file, from GNU gettext.
31281 * m4/localename.m4: New file.
31282 * modules/localename: New file.
31284 2007-06-07 Bruno Haible <bruno@clisp.org>
31286 Work around the lack of <wchar.h> on some builds of uClibc.
31287 * doc/headers/wchar.texi: Update.
31288 * lib/wchar_.h: Include <wchar.h> only if it exists.
31289 * m4/wchar.m4 (gl_WCHAR_H): Check for <wchar.h>. Set HAVE_WCHAR_H.
31290 * m4/stdint.m4 (gl_STDINT_H): Check for <wchar.h>.
31291 (gl_STDINT_TYPE_PROPERTIES): Don't try to include <wchar.h> if it
31293 * modules/wchar (wchar.h): Substitute HAVE_WCHAR_H.
31294 * modules/mbfile (Depends-on): Add wchar.
31295 * modules/mbiter (Depends-on): Likewise.
31296 * modules/mbuiter (Depends-on): Likewise.
31297 Reported by Simon Josefsson.
31299 2007-06-06 Paul Eggert <eggert@cs.ucla.edu>
31301 Work around problem reported by Steven M. Schweda in
31302 <http://lists.gnu.org/archive/html/bug-tar/2007-06/msg00002.html>:
31303 Tru64 5.1B with the Compaq compiler environment installed declares
31304 an 'isblank' function but does not define it in the C library.
31305 * lib/fnmatch.c (isblank): Check for HAVE_ISBLANK, too.
31306 * lib/regex_internal.h (isblank): Likewise.
31307 * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for isblank existence.
31308 * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
31310 2007-06-05 Bruno Haible <bruno@clisp.org>
31312 Fix *printf so that it recognizes non-IEEE numbers on i386, x86_64,
31314 * modules/printf-safe: New file.
31315 * modules/fprintf-posix (Depends-on): Add printf-safe.
31316 * modules/printf-posix (Depends-on): Likewise.
31317 * modules/snprintf-posix (Depends-on): Likewise.
31318 * modules/sprintf-posix (Depends-on): Likewise.
31319 * modules/vasnprintf-posix (Depends-on): Likewise.
31320 * modules/vasprintf-posix (Depends-on): Likewise.
31321 * modules/vfprintf-posix (Depends-on): Likewise.
31322 * modules/vprintf-posix (Depends-on): Likewise.
31323 * modules/vsnprintf-posix (Depends-on): Likewise.
31324 * modules/vsprintf-posix (Depends-on): Likewise.
31325 * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Require
31326 AC_C_BIGENDIAN. Define CHECK_PRINTF_SAFE if printf-safe is used. Test
31327 non-IEEE numbers on i386, x86_64, ia64. When cross-compiling, guess
31328 "no" on i386, x86_64, ia64.
31329 * tests/test-snprintf-posix.h (LDBL80_WORDS): New macro.
31330 (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
31331 on i386, x86_64, ia64.
31332 * tests/test-sprintf-posix.h (LDBL80_WORDS): New macro.
31333 (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
31334 on i386, x86_64, ia64.
31335 * tests/test-vasnprintf-posix.c: Include float.h.
31336 (LDBL80_WORDS): New macro.
31337 (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
31338 on i386, x86_64, ia64.
31339 * tests/test-vasprintf-posix.c: Include float.h.
31340 (LDBL80_WORDS): New macro.
31341 (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
31342 on i386, x86_64, ia64.
31343 * tests/test-snprintf-posix.c: Include float.h.
31344 * tests/test-sprintf-posix.c: Likewise.
31345 * tests/test-vsnprintf-posix.c: Likewise.
31346 * tests/test-vsprintf-posix.c: Likewise.
31348 2007-06-05 Bruno Haible <bruno@clisp.org>
31350 Fix isnanl so that it recognizes non-IEEE numbers on i386, x86_64, ia64.
31351 * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Require AC_C_BIGENDIAN. Test
31352 non-IEEE numbers on i386, x86_64, ia64.
31353 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Require AC_C_BIGENDIAN.
31354 * lib/isnan.c (FUNC): Add special code for i386, x86_64, ia64.
31355 * tests/test-isnanl.h: Include float.h.
31356 (main): Check also non-IEEE numbers on i386, x86_64, ia64.
31358 2007-06-05 Bruno Haible <bruno@clisp.org>
31360 * lib/vasnprintf.c (VASNPRINTF): Do the extra handling of NaN and Inf
31361 also the %a / %A. Handle the %a / %A code before this extra handling.
31363 2007-06-05 Bruno Haible <bruno@clisp.org>
31365 * lib/vasnprintf.c [NEED_PRINTF_LONG_DOUBLE ||
31366 NEED_PRINTF_INFINITE_LONG_DOUBLE]: Include fpucw.h.
31368 2007-06-05 Bruno Haible <bruno@clisp.org>
31370 * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE): Fix
31371 typo in variable name.
31373 2007-06-05 Eric Blake <ebb9@byu.net>
31375 * m4/lseek.m4 (gl_FUNC_LSEEK): Work when cross-compiling.
31376 Reported by Simon Josefsson.
31378 2007-06-04 Bruno Haible <bruno@clisp.org>
31380 Avoid test failures on some PowerPC platforms.
31381 * tests/test-printf-frexpl.c (MIN_NORMAL_EXP, MIN_SUBNORMAL_EXP):
31382 Define differently for PowerPC.
31383 * tests/test-frexpl.c (MIN_NORMAL_EXP): Likewise.
31384 Reported by Gary V. Vaughan <gary@gnu.org>.
31386 2007-06-02 Bruno Haible <bruno@clisp.org>
31388 Fix test-stdint failure on FreeBSD/ia64.
31389 * m4/stdint.m4 (gl_STDINT_H): Check the values of PTRDIFF_MIN,
31390 PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX, SIZE_MAX, WCHAR_MIN,
31391 WCHAR_MAX, WINT_MIN, WINT_MAX entirely, not only for plausibility.
31392 * doc/headers/stdint.texi: Update.
31394 2007-06-01 Bruno Haible <bruno@clisp.org>
31396 * tests/test-binary-io.c (main): Pass a third argument to open().
31397 Reported by Gary V. Vaughan <gary@gnu.org>.
31399 2007-06-01 Bruno Haible <bruno@clisp.org>
31401 * doc/functions/frexpl.texi: Update for mingw.
31403 2007-06-01 Bruno Haible <bruno@clisp.org>
31405 * tests/test-lseek.c (main): Disable test of errno for invalid third
31407 * doc/functions/lseek.texi: Update.
31408 Reported by Gary V. Vaughan <gary@gnu.org>.
31410 2007-05-28 Bruno Haible <bruno@clisp.org>
31412 * m4/intl.m4 (AM_INTL_SUBDIR): Substitute variables WOE32, WINDRES.
31414 2007-05-31 Eric Blake <ebb9@byu.net>
31416 * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Guess no on mingw when
31419 2007-05-30 Eric Blake <ebb9@byu.net>
31420 and Bruno Haible <bruno@clisp.org>
31422 Work around mingw test failures exposed by m4-1.4.9b.
31423 * m4/stdint.m4 (gl_STDINT_H): Detect mingw bug.
31424 * tests/test-unistd.c: Disable uid_t and git_t tests for the
31427 2007-05-30 Bruno Haible <bruno@clisp.org>
31429 * tests/test-lseek.c: Explicitly close file descriptors 0 and 1 before
31430 assuming that they are closed. Needed on HP-UX 11.
31432 2007-05-29 Bruno Haible <bruno@clisp.org>
31434 Fix a problem with #include_next.
31435 * lib/dirent_.h: Split the double-inclusion guard.
31436 * lib/fcntl_.h: Likewise.
31437 * lib/float_.h: Likewise.
31438 * lib/iconv_.h: Likewise.
31439 * lib/inttypes_.h: Likewise.
31440 * lib/locale_.h: Likewise.
31441 * lib/math_.h: Likewise.
31442 * lib/netinet_in_.h: Likewise.
31443 * lib/search_.h: Likewise.
31444 * lib/signal_.h: Likewise.
31445 * lib/stdint_.h: Likewise.
31446 * lib/stdio_.h: Likewise.
31447 * lib/stdlib_.h: Likewise.
31448 * lib/string_.h: Likewise.
31449 * lib/sys_select_.h: Likewise.
31450 * lib/sys_socket_.h: Likewise.
31451 * lib/sys_stat_.h: Likewise.
31452 * lib/sys_time_.h: Likewise.
31453 * lib/sysexits_.h: Likewise.
31454 * lib/time_.h: Likewise.
31455 * lib/unistd_.h: Likewise.
31456 * lib/wchar_.h: Likewise.
31457 * lib/wctype_.h: Likewise.
31459 2007-05-29 Bruno Haible <bruno@clisp.org>
31461 * tests/test-unistd.c: Disable the tests for useconds_t and intptr_t
31464 2007-05-29 Bruno Haible <bruno@clisp.org>
31466 * m4/isnan.m4 (gl_DOUBLE_EXPONENT_LOCATION): Silence the AC_C_BIGENDIAN
31468 Reported by Eric Blake.
31470 2007-05-29 Bruno Haible <bruno@clisp.org>
31472 * m4/isnanf.m4 (gl_FLOAT_EXPONENT_LOCATION): Fix typo in cross-
31475 2007-05-29 Eric Blake <ebb9@byu.net>
31476 Bruno Haible <bruno@clisp.org>
31478 * m4/isnanf.m4 (gl_FUNC_ISNANF_NO_LIBM): Avoid syntax error on
31481 2007-05-28 Eric Blake <ebb9@byu.net>
31483 * modules/closein-tests (test_closein_LDADD): Support test on
31484 cygwin with libtool.
31486 2007-05-28 Bruno Haible <bruno@clisp.org>
31488 * tests/uniconv/test-u16-conv-from-enc.c: Remove #ifdef HAVE_CONFIG_H.
31489 * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
31490 * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
31491 * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
31492 * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
31493 * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
31494 * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
31495 * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
31496 * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
31498 2007-05-28 Eric Blake <ebb9@byu.net>
31500 Unconditionally include <config.h> in unit tests.
31501 * tests/test-alloca-opt.c: Remove #ifdef HAVE_CONFIG_H.
31502 * tests/test-allocsa.c, tests/test-arcfour.c,
31503 tests/test-arctwo.c, tests/test-argmatch.c, tests/test-argp.c,
31504 tests/test-array_list.c, tests/test-array_oset.c,
31505 tests/test-atexit.c, test-avltree_list.c, test-avltree_oset.c,
31506 test-avltreehash_list.c, test-base64.c, test-binary-io.c,
31507 test-c-ctype.c, test-c-strcasecmp.c, test-c-strcasestr.c,
31508 test-c-strncasecmp.c, test-c-strstr.c, test-canonicalize-lgpl.c,
31509 test-carray_list.c, test-crc.c, test-des.c, test-dirname.c,
31510 test-fflush.c, test-fprintf-posix.c, test-gc-arcfour.c,
31511 test-gc-arctwo.c, test-gc-des.c, test-gc-hmac-md5.c,
31512 test-gc-hmac-sha1.c, test-gc-md2.c, test-gc-md4.c, test-gc-md5.c,
31513 test-gc-pbkdf2-sha1.c, test-gc-rijndael.c, test-gc-sha1.c,
31514 test-gc.c, test-getpass.c, test-hmac-md5.c, test-hmac-sha1.c,
31515 test-iconv.c, test-linked_list.c, test-linkedhash_list.c,
31516 test-lock.c, test-mbscasecmp.c, test-mbscasestr1.c,
31517 test-mbscasestr2.c, test-mbscasestr3.c, test-mbscasestr4.c,
31518 test-mbschr.c, test-mbscspn.c, test-mbsncasecmp.c, test-mbspbrk.c,
31519 test-mbspcasecmp.c, test-mbsrchr.c, test-mbsspn.c, test-mbsstr1.c,
31520 test-mbsstr2.c, test-mbsstr3.c, test-md2.c, test-md4.c,
31521 test-md5.c, test-memmem.c, test-printf-posix.c,
31522 test-rbtree_list.c, test-rbtree_oset.c, test-rbtreehash_list.c,
31523 test-read-file.c, test-rijndael.c, test-snprintf-posix.c,
31524 test-snprintf.c, test-sprintf-posix.c, test-stdint.c,
31525 test-strcasestr.c, test-striconv.c, test-striconveh.c,
31526 test-striconveha.c, test-tls.c, test-vasnprintf-posix.c,
31527 test-vasnprintf-posix2.c, test-vasnprintf.c,
31528 test-vasprintf-posix.c, test-vasprintf.c, test-verify.c,
31529 test-vfprintf-posix.c, test-vprintf-posix.c,
31530 test-vsnprintf-posix.c, test-vsnprintf.c, test-vsprintf-posix.c,
31531 test-xvasprintf.c: Likewise.
31533 2007-05-28 Bruno Haible <bruno@clisp.org>
31535 * gnulib-tool (func_import): Remember the --with-tests command-line
31536 option through the macro gl_WITH_TESTS in the gnulib-cache.m4.
31537 Reported by Eric Blake.
31539 2007-05-28 Bruno Haible <bruno@clisp.org>
31541 * modules/ftell-tests: New file.
31542 * tests/test-ftell.c: New file, based on tests/test-ftello.c.
31543 * tests/test-ftell.sh: New file, based on tests/test-ftello.sh.
31545 * lib/ftell.c: New file.
31546 * modules/ftell: New file.
31547 * m4/ftell.m4: New file.
31548 * doc/functions/ftell.texi: Update.
31549 * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FTELL,
31551 * lib/stdio_.h (rpl_ftell): New declaration.
31552 * modules/stdio (Makefile.am): Substitute also GNULIB_FTELL,
31555 2007-05-28 Eric Blake <ebb9@byu.net>
31557 * lib/allocsa.h (safe_alloca): Avoid compiler warning.
31559 2007-05-28 Bruno Haible <bruno@clisp.org>
31561 * modules/fseek-tests: New file.
31562 * tests/test-fseek.c: New file, based on tests/test-fseeko.c.
31563 * tests/test-fseek.sh: New file, based on tests/test-fseeko.sh.
31565 * lib/fseek.c: New file.
31566 * modules/fseek: New file.
31567 * m4/fseek.m4: New file.
31568 * doc/functions/fseek.texi: Update.
31569 * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FSEEK,
31571 * lib/stdio_.h (rpl_fseek): New declaration.
31572 * modules/stdio (Makefile.am): Substitute also GNULIB_FSEEK,
31575 2007-05-28 Bruno Haible <bruno@clisp.org>
31577 * lib/stdio_.h (fflush): More comments.
31579 2007-05-28 Bruno Haible <bruno@clisp.org>
31581 * m4/lseek.m4 (gl_FUNC_LSEEK): When not cross-compiling, perform a real
31584 2007-05-28 Eric Blake <ebb9@byu.net>
31586 Improve lseek module.
31587 * lib/lseek.c (rpl_lseek): Detect EBADF on mingw.
31588 * lib/unistd_.h (lseek): Scale back link warning message.
31589 * tests/test-lseek.c: Beef up test.
31590 * tests/test-lseek.sh: Exercise more facets of lseek.
31591 Reported by Bruno Haible.
31593 2007-05-28 Bruno Haible <bruno@clisp.org>
31595 * tests/test-unistd.c: Test all the types that <unistd.h> is expected
31598 2007-05-27 Bruno Haible <bruno@clisp.org>
31600 * m4/iconv.m4 (AM_ICONV_LINK): Fix 2007-03-31 patch.
31602 2007-05-27 Bruno Haible <bruno@clisp.org>
31604 * modules/openmp: New file.
31605 * m4/openmp.m4: New file, taken from autoconf's CVS with changes by
31608 2007-05-26 Bruno Haible <bruno@clisp.org>
31610 * modules/chdir-long (Depends-on): Add fchdir.
31611 * modules/chdir-safer (Depends-on): Likewise.
31612 * modules/fts (Depends-on): Likewise.
31613 * modules/fts-lgpl (Depends-on): Likewise.
31614 * modules/openat (Depends-on): Likewise.
31615 * modules/savewd (Depends-on): Likewise.
31617 2007-05-24 Eric Blake <ebb9@byu.net>
31619 Fix lseek on mingw.
31620 * modules/lseek: New module.
31621 * m4/lseek.m4: New file.
31622 * lib/lseek.c: New file.
31623 * modules/lseek-tests: New file.
31624 * tests/test-lseek.c: New file.
31625 * tests/test-lseek.sh: New file.
31626 * MODULES.html.sh: Document lseek module.
31627 * modules/fflush (Depends-on): Add lseek, fseeko.
31628 * modules/fseeko (Depends-on): Likewise.
31629 * modules/ftello (Depends-on): Likewise.
31630 * m4/fseeko.m4 (gl_FUNC_FSEEKO): Replace fseek[o] if lseek is
31632 * m4/ftello.m4 (gl_FUNC_FTELLO): Replace ftell[o] if lseek is
31634 * m4/fflush.m4 (gl_REPLACE_FFLUSH): Trigger fseeko module.
31635 * lib/fseeko.c (rpl_fseeko): Quit early on non-seekable files.
31636 * lib/ftello.c (rpl_ftello): Likewise.
31637 * tests/test-fseeko.c (main): Test this.
31638 * tests/test-fseeko.sh: Likewise.
31639 * tests/test-ftello.c (main): Likewise.
31640 * tests/test-ftello.sh: Likewise.
31641 * lib/stdio_.h (fseek, ftell): Simplify, since missing fseeko now
31642 implies replacing fseek.
31643 * modules/stdio (Makefile.am): No longer need HAVE_FSEEKO,
31645 * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add lseek info.
31646 * modules/unistd (Makefile.am): Likewise.
31647 * lib/unistd_.h (lseek): Declare a replacement.
31648 * doc/functions/lseek.texi (lseek): Document this fix.
31649 * doc/functions/fseek.texi (fseek): Likewise.
31650 * doc/functions/ftell.texi (ftell): Likewise.
31652 2007-05-24 Bruno Haible <bruno@clisp.org>
31654 * tests/test-vasnprintf-posix.c (test_function): Allow up to 50 bytes
31655 in the printed representation of a NaN.
31656 * tests/test-vasprintf-posix.c (test_function): Likewise.
31657 * tests/test-snprintf-posix.h (test_function): Likewise.
31658 * tests/test-sprintf-posix.h (test_function): Likewise.
31659 Reported by Eric Blake.
31661 2007-05-23 Eric Blake <ebb9@byu.net>
31663 Fix fseeko/ftello on cygwin 1.5.24.
31664 * doc/functions/fseeko.texi (fseeko): Document the fix.
31665 * doc/functions/ftello.texi (ftello): Document the fix.
31666 * doc/functions/stdin.texi (stdin): Document the cygwin bug.
31667 * doc/functions/stdout.text (stdout): New file.
31668 * doc/functions/stderr.text (stderr): New file.
31669 * doc/gnulib.texi (Function Substitutes): Use new files.
31670 * tests/test-fseeko.c (main): Check for broken fseeko on cygwin
31672 * tests/test-ftello.c (main): Likewise for ftello.
31673 * tests/test-fseeko.sh: New file.
31674 * tests/test-ftello.sh: New file.
31675 * modules/fseeko-tests (Makefile.am): Ensure test-fseeko is run
31676 with seekable stdin.
31677 * modules/ftello-tests (Makefile.am): Likewise for test-ftello.
31678 * m4/fseeko.m4 (gl_FUNC_FSEEKO): Detect the cygwin bug.
31679 (gl_REPLACE_FSEEKO): New macro.
31680 * m4/ftello.m4 (gl_FUNC_FTELLO, gl_REPLACE_FTELLO): Likewise.
31681 * modules/fseeko (Files): Distribute fseeko.c.
31682 * modules/ftello (Files): Distribute ftello.c.
31683 * lib/fseeko.c (rpl_fseeko) [__CYGWIN__]: Convert stdin to 64-bit
31685 * lib/ftello.c (rpl_ftello): New file.
31686 * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Allow replacement of
31688 (gl_STDIN_LARGE_OFFSET): New macro.
31689 * modules/stdio (Makefile.am): Perform the replacement.
31690 * lib/stdio_.h (rpl_fseeko, rpl_ftello): Define when needed.
31692 2007-05-23 Bruno Haible <bruno@clisp.org>
31694 * lib/stdio_.h (fseeko, ftello): Provide a link warning only if
31695 GNULIB_POSIXCHECK is defined.
31697 2007-05-21 Bruno Haible <bruno@clisp.org>
31699 * m4/printf.m4 (gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE):
31700 Check also the output for NaN arguments. When cross-compiling, guess
31702 * lib/vasnprintf.c: Update comments.
31703 * tests/test-vasnprintf-posix.c (strisnan): New function.
31704 (test_function): Use it.
31705 * tests/test-vasprintf-posix.c (strisnan): New function.
31706 (test_function): Use it.
31707 * tests/test-snprintf-posix.h (strisnan): New function.
31708 (test_function): Use it.
31709 * tests/test-sprintf-posix.h (strisnan): New function.
31710 (test_function): Use it.
31711 Reported by Eric Blake.
31713 2007-05-20 Bruno Haible <bruno@clisp.org>
31715 * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Add test for large finite
31716 numbers that fails on BeOS.
31717 * doc/functions/frexpl.texi: Update.
31719 2007-05-20 Jim Meyering <jim@meyering.net>
31721 * NEWS: Mention the incompatible change (s/futimens/gl_futimens/)
31722 forced upon us by glibc-2.6.
31724 2007-05-20 Bruno Haible <bruno@clisp.org>
31726 Fix *printf result for NaN, Inf on AIX, Solaris, OSF/1.
31727 * m4/printf.m4 (gl_PRINTF_INFINITE): Update cross-compiling guesses.
31728 (gl_PRINTF_INFINITE_LONG_DOUBLE): New macro.
31729 * lib/vasnprintf.c: Use NEED_PRINTF_INFINITE_DOUBLE instead of
31730 NEED_PRINTF_INFINITE.
31731 (is_infinitel): New function.
31732 (VASNPRINTF): Handle NEED_PRINTF_INFINITE_LONG_DOUBLE case.
31733 * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE_DOUBLE): Renamed from
31734 gl_PREREQ_VASNPRINTF_INFINITE.
31735 (gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE): New macro.
31736 * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
31737 gl_PRINTF_INFINITE_LONG_DOUBLE and test its result. Invoke
31738 gl_PREREQ_VASNPRINTF_INFINITE_DOUBLE and
31739 gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE instead of
31740 gl_PREREQ_VASNPRINTF_INFINITE.
31741 * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
31742 * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
31743 * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
31744 * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
31745 * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
31746 * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
31747 * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
31748 * doc/functions/fprintf.texi: Update.
31749 * doc/functions/printf.texi: Update.
31750 * doc/functions/snprintf.texi: Update.
31751 * doc/functions/sprintf.texi: Update.
31752 * doc/functions/vfprintf.texi: Update.
31753 * doc/functions/vprintf.texi: Update.
31754 * doc/functions/vsnprintf.texi: Update.
31755 * doc/functions/vsprintf.texi: Update.
31757 2007-05-20 Bruno Haible <bruno@clisp.org>
31759 * m4/frexpl.m4 (gl_FUNC_FREXPL_NO_LIBM): Set REPLACE_FREXPL if frexpl
31760 was not found in libc.
31761 * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
31763 2007-05-20 Bruno Haible <bruno@clisp.org>
31765 * tests/test-vasnprintf-posix.c (test_function): Allow NaN to be
31766 printed as "-nan" instead of "nan".
31767 * tests/test-vasprintf-posix.c (test_function): Likewise.
31768 * tests/test-snprintf-posix.h (test_function): Likewise.
31769 * tests/test-sprintf-posix.h (test_function): Likewise.
31770 Needed for HP-UX 11.
31772 2007-05-20 Jim Meyering <jim@meyering.net>
31774 Fix buggy test for the fchownat-deref bug.
31775 * m4/openat.m4 (gl_FUNC_FCHOWNAT_DEREF_BUG): Create the dangling
31776 symlink required for the run-test. Without it, this test would
31777 always declare that fchownat doesn't work, and client code would
31778 unnecessarily use the replacement function with fixed libc.
31779 (gl_FUNC_FCHOWNAT): Eliminate a variable that wasn't initialized.
31780 Reported by Greg Schafer.
31782 2007-05-19 Bruno Haible <bruno@clisp.org>
31784 * m4/isnanf.m4 (gl_ISNANF_WORKS): New macro.
31785 (gl_FUNC_ISNANF_NO_LIBM): Invoke it.
31786 * lib/isnan.c (FUNC): Use run-time expressions for SGI compiler.
31787 Needed for IRIX 6.5 and Solaris 2.5.1.
31789 2007-05-19 Bruno Haible <bruno@clisp.org>
31791 * tests/test-vasnprintf-posix.c (have_minus_zero): New function.
31792 (test_function): Skip tests involving -0.0 on platforms where
31794 * tests/test-vasprintf-posix.c (have_minus_zero): New function.
31795 (test_function): Skip tests involving -0.0 on platforms where
31797 * tests/test-snprintf-posix.h (have_minus_zero): New function.
31798 (test_function): Skip tests involving -0.0 on platforms where
31800 * tests/test-sprintf-posix.h (have_minus_zero): New function.
31801 (test_function): Skip tests involving -0.0 on platforms where
31803 * tests/test-fprintf-posix.h (test_function): Remove all -0.0 related
31805 * tests/test-printf-posix.h (test_function): Likewise.
31806 * tests/test-printf-posix.output: Remove all -0.0 related results.
31807 Needed for IRIX 6.5.
31809 2007-05-19 Bruno Haible <bruno@clisp.org>
31811 * tests/test-vasnprintf-posix.c (test_function): Allow NaN to be
31812 printed as "nan0x7fffffff" instead of "nan".
31813 * tests/test-vasprintf-posix.c (test_function): Likewise.
31814 * tests/test-snprintf-posix.h (test_function): Likewise.
31815 * tests/test-sprintf-posix.h (test_function): Likewise.
31816 * tests/test-fprintf-posix.h (NaN): Remove macro.
31817 (test_function): Remove all NaN related tests.
31818 * tests/test-printf-posix.h (NaN): Remove macro.
31819 (test_function): Remove all NaN related tests.
31820 * tests/test-printf-posix.output: Remove all NaN related results.
31821 Needed for IRIX 6.5.
31823 2007-05-19 Bruno Haible <bruno@clisp.org>
31825 * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Fix C89 syntax error in test code.
31826 * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Likewise.
31828 2007-05-19 Bruno Haible <bruno@clisp.org>
31830 * lib/float_.h: New file.
31831 * m4/float_h.m4: New file.
31832 * modules/float: New file.
31833 * modules/isnanl (Dependencies): Add float.
31834 * modules/isnanl-nolibm (Dependencies): Likewise.
31835 * modules/mathl (Dependencies): Likewise.
31836 * modules/printf-frexpl (Dependencies): Likewise.
31837 * modules/signbit (Dependencies): Likewise.
31838 * modules/vasnprintf (Dependencies): Likewise.
31839 * doc/headers/float.texi: Update.
31841 2007-05-19 Jim Meyering <jim@meyering.net>
31843 * lib/utimens.c (gl_futimens): Rename from futimens,
31844 now that glibc-2.6 declares futimens.
31845 * lib/utimens.h: Likewise.
31847 2007-05-19 Bruno Haible <bruno@clisp.org>
31849 Avoid test failures on mingw.
31850 * tests/test-fprintf-posix.sh: Convert CR/LF to LF in output.
31851 * tests/test-printf-posix.sh: Likewise.
31852 * tests/test-vfprintf-posix.sh: Likewise.
31853 * tests/test-vprintf-posix.sh: Likewise.
31855 2007-05-19 Bruno Haible <bruno@clisp.org>
31857 Fix *printf result for NaN, Inf, -0.0 on mingw.
31858 * m4/printf.m4 (gl_PRINTF_INFINITE): New macro.
31859 * lib/vasnprintf.c: Include math.h and isnan.h.
31860 (is_infinite_or_zero): New function.
31861 (VASNPRINTF): Fix also the handling of infinite or zero 'double'
31862 values in the %f, %F, %e, %E, %g, %G directives.
31863 * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE): New macro.
31864 * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
31865 gl_PRINTF_INFINITE and test its result. Invoke
31866 gl_PREREQ_VASNPRINTF_INFINITE.
31867 * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
31868 * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
31869 * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
31870 * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
31871 * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
31872 * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
31873 * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
31874 * doc/functions/fprintf.texi: Update.
31875 * doc/functions/printf.texi: Update.
31876 * doc/functions/snprintf.texi: Update.
31877 * doc/functions/sprintf.texi: Update.
31878 * doc/functions/vfprintf.texi: Update.
31879 * doc/functions/vprintf.texi: Update.
31880 * doc/functions/vsnprintf.texi: Update.
31881 * doc/functions/vsprintf.texi: Update.
31883 2007-05-19 Bruno Haible <bruno@clisp.org>
31885 * lib/vasnprintf.c (convert_to_decimal): Add an extra_zeroes argument.
31886 (scale10_round_decimal_long_double): Inline scale10_round_long_double.
31887 Instead of multiplying with 10^k, set extra_zeroes to k.
31888 (scale10_round_long_double): Remove function.
31890 2007-05-18 Bruno Haible <bruno@clisp.org>
31892 * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_ZERO]: Fix logic bug
31893 introduced on 2007-05-06.
31895 2007-05-18 Bruno Haible <bruno@clisp.org>
31897 * tests/test-vasnprintf-posix.c (test_function): Also test the %e and
31899 * tests/test-vasprintf-posix.c (test_function): Likewise.
31900 * tests/test-snprintf-posix.h (test_function): Likewise.
31901 * tests/test-sprintf-posix.h (test_function): Likewise.
31903 2007-05-18 Bruno Haible <bruno@clisp.org>
31905 * tests/test-vasnprintf-posix.c (SIZEOF): New macro.
31906 (strmatch): New function.
31907 (test_function): Test the %f directive on numbers of various exponents.
31908 * tests/test-vasprintf-posix.c (SIZEOF): New macro.
31909 (strmatch): New function.
31910 (test_function): Test the %f directive on numbers of various exponents.
31911 * tests/test-snprintf-posix.h (strmatch): New function.
31912 (test_function): Test the %f directive on numbers of various exponents.
31913 * tests/test-sprintf-posix.h (strmatch): New function.
31914 (test_function): Test the %f directive on numbers of various exponents.
31915 * tests/test-snprintf-posix.c (SIZEOF): New macro.
31916 * tests/test-sprintf-posix.c (SIZEOF): New macro.
31917 * tests/test-vsnprintf-posix.c (SIZEOF): New macro.
31918 * tests/test-vsprintf-posix.c (SIZEOF): New macro.
31920 2007-05-18 Bruno Haible <bruno@clisp.org>
31922 Add support for 'long double' number output.
31923 * m4/printf.m4 (gl_PRINTF_LONG_DOUBLE): New macro.
31924 * lib/vasnprintf.c: Include math.h and float+.h.
31925 (mp_limb_t): New type.
31926 (GMP_LIMB_BITS): New macro.
31927 (mp_twolimb_t): New type.
31928 (GMP_TWOLIMB_BITS): New macro.
31930 (multiply, divide, convert_to_decimal, decode_long_double,
31931 scale10_round_long_double, scale10_round_decimal_long_double,
31932 floorlog10l): New functions.
31933 (VASNPRINTF) [NEED_PRINTF_LONG_DOUBLE]: Implement 'long double' support
31934 for the %f, %F, %e, %E, %g, %G directives.
31935 * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_LONG_DOUBLE): New macro.
31936 * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
31937 gl_PRINTF_LONG_DOUBLE and test its result. Invoke
31938 gl_PREREQ_VASNPRINTF_LONG_DOUBLE.
31939 * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
31940 * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
31941 * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
31942 * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
31943 * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
31944 * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
31945 * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
31946 * modules/fprintf-posix (Depends-on): Add frexpl-nolibm.
31947 * modules/snprintf-posix (Depends-on): Likewise.
31948 * modules/sprintf-posix (Depends-on): Likewise.
31949 * modules/vasnprintf-posix (Depends-on): Likewise.
31950 * modules/vasprintf-posix (Depends-on): Likewise.
31951 * modules/vfprintf-posix (Depends-on): Likewise.
31952 * modules/vsnprintf-posix (Depends-on): Likewise.
31953 * modules/vsprintf-posix (Depends-on): Likewise.
31954 * modules/vasnprintf (Files): Add lib/float+.h.
31955 * doc/functions/fprintf.texi: Update.
31956 * doc/functions/printf.texi: Update.
31957 * doc/functions/snprintf.texi: Update.
31958 * doc/functions/sprintf.texi: Update.
31959 * doc/functions/vfprintf.texi: Update.
31960 * doc/functions/vprintf.texi: Update.
31961 * doc/functions/vsnprintf.texi: Update.
31962 * doc/functions/vsprintf.texi: Update.
31964 2007-05-18 Bruno Haible <bruno@clisp.org>
31966 * lib/vasnprintf.c (USE_SNPRINTF): Define to 0 on BeOS.
31968 2007-05-18 Bruno Haible <bruno@clisp.org>
31970 * lib/vasnprintf.c (VASNPRINTF) [WIN32]: Use %I64d instead of %lld
31971 for printing 64-bit integers. Needed for mingw.
31973 2007-05-18 Bruno Haible <bruno@clisp.org>
31975 * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Invoke
31976 gl_FUNC_FREXPL_WORKS.
31977 * modules/printf-frexpl (Files): Add m4/frexpl.m4.
31979 2007-05-18 Bruno Haible <bruno@clisp.org>
31981 * modules/frexpl-nolibm-tests: New file.
31983 * modules/frexpl-nolibm: New file.
31984 * m4/frexpl.m4 (gl_FUNC_FREXPL_NO_LIBM): New macro.
31986 2007-05-17 Paul Eggert <eggert@cs.ucla.edu>
31988 * lib/dirent_.h: Prefer #include_next <foo.h> to #include
31989 @ABSOLUTE_FOO_H@ if @HAVE_INCLUDE_NEXT@. This works better with
31990 GCC 4.2, which otherwise issues a lot of warnings.
31991 * lib/iconv_.h, lib/locale_.h, lib/netinet_in_.h, lib/sys_select_.h:
31992 * lib/sys_socket_.h, lib/sys_stat_.h, lib/sysexits_.h, lib/unistd_.h:
31994 * modules/fchdir (dirent.h): Substitute @HAVE_INCLUDE_NEXT@.
31995 * modules/iconv_open (iconv.h): Likewise.
31996 * modules/locale (locale.h): Likewise.
31997 * modules/netinet_in (netinet/in.h): Likewise.
31998 * modules/sys_select (sys_select.h): Likewise.
31999 * modules/sys_socket (sys/socket.h): Likewise.
32000 * modules/sys_stat (sys/stat.h): Likewise.
32001 * modules/sysexits (sysexits.h): Likewise.
32002 * modules/unistd (unistd.h): Likewise.
32004 2007-05-17 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
32006 * modules/closein-tests (Makefile.am): Distribute
32009 2007-05-17 Bruno Haible <bruno@clisp.org>
32011 * tests/test-printf-posix.output: Renamed from
32012 tests/test-fprintf-posix.out.
32013 * modules/fprintf-posix-tests: Update.
32014 * modules/printf-posix-tests: Update.
32015 * modules/vfprintf-posix-tests: Update.
32016 * modules/vprintf-posix-tests: Update.
32017 * tests/test-fprintf-posix.sh: Update.
32018 * tests/test-printf-posix.sh: Update.
32019 * tests/test-vfprintf-posix.sh: Update.
32020 * tests/test-vprintf-posix.sh: Update.
32021 Reported by Ralf Wildenhues.
32023 2007-05-16 Paul Eggert <eggert@cs.ucla.edu>
32025 * lib/fcntl_.h: Prefer #include_next <foo.h> to #include
32026 @ABSOLUTE_FOO_H@ if @HAVE_INCLUDE_NEXT@. This works better with
32027 GCC 4.2, which otherwise issues a lot of warnings.
32028 * lib/inttypes_.h, lib/math_.h, lib/search_.h, lib/signal_.h:
32029 * lib/stdint_.h, lib/stdio_.h, lib/stdlib_.h, lib/string_.h:
32030 * lib/sys_time_.h, lib/time_.h, lib/wchar_.h, lib/wctype_.h: Likewise.
32031 * lib/stdlib_.h: Don't bother with #pragma GCC system_header, as
32032 it should no longer be needed.
32033 * lib/string_.h: Likewise.
32034 * modules/absolute-header (HAVE_INCLUDE_NEXT): New 'make' define.
32035 * modules/fcntl (fcntl.h): Substitute @HAVE_INCLUDE_NEXT@.
32036 * modules/inttypes (inttypes.h): Likewise.
32037 * modules/math (math.h): Likewise.
32038 * modules/search (search.h): Likewise.
32039 * modules/signal (signal.h): Likewise.
32040 * modules/stdint (stdint.h): Likewise.
32041 * modules/stdio (stdio.h): Likewise.
32042 * modules/stdlib (stdlib.h): Likewise.
32043 * modules/string (string.h): Likewise.
32044 * modules/sys_time (sys/time.h): Likewise.
32045 * modules/time (time.h): Likewise.
32046 * modules/wchar (wchar.h): Likewise.
32047 * modules/wctype (wtype.h): Likewise.
32049 2007-05-16 Thien-Thi Nguyen <ttn@gnuvola.org> (tiny change)
32051 * doc/gnulib-tool.texi (CVS Issues): Fix typo.
32053 2007-05-13 Bruno Haible <bruno@clisp.org>
32055 * stpcpy.m4 (gl_FUNC_STPCPY): Require AC_C_RESTRICT.
32056 * stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
32057 * strsep.m4 (gl_FUNC_STRSEP): Likewise.
32058 * strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
32059 (gl_PREREQ_STRTOK_R): Don't require it here.
32061 2007-05-13 Bruno Haible <bruno@clisp.org>
32063 * lib/stdlib_.h (mkdtemp, mkstemp): Comment out argument name. Needed
32064 when used in C++ mode.
32066 2007-05-12 Bruno Haible <bruno@clisp.org>
32068 * lib/linebuffer.h: Tweak doc.
32069 * lib/linebuffer.c: Likewise.
32071 2007-05-12 James Youngman <jay@gnu.org>
32073 * lib/linebuffer.c (readlinebuffer_delim): New function,
32074 like readlinebuffer, but use a caller-specified delimiter.
32075 (readlinebuffer): Just call readlinebuffer_delim with '\n'
32077 * lib/linebuffer.h (readlinebuffer_delim): Declare it.
32079 2007-05-12 Sergey Poznyakoff <gray@gnu.org.ua>
32081 * m4/openat.m4 (gl_FUNC_OPENAT): Do not require openat-die.
32082 * modules/openat (Files): Remove openat-die.c.
32083 (Depends-on): Add openat-die.
32084 * modules/openat-die: New module.
32086 2007-05-06 Bruno Haible <bruno@clisp.org>
32088 * m4/printf.m4 (gl_PRINTF_FLAG_GROUPING, gl_VSNPRINTF_ZEROSIZE_C99):
32089 Update with info about Cygwin.
32090 * doc/functions/fprintf.texi: Update.
32091 * doc/functions/printf.texi: Update.
32092 * doc/functions/snprintf.texi: Update.
32093 * doc/functions/sprintf.texi: Update.
32094 * doc/functions/vfprintf.texi: Update.
32095 * doc/functions/vprintf.texi: Update.
32096 * doc/functions/vsnprintf.texi: Update.
32097 * doc/functions/vsprintf.texi: Update.
32098 Reported by Eric Blake.
32100 2007-05-06 Bruno Haible <bruno@clisp.org>
32102 * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_ZERO]: Perform the
32103 padding ourselves for the floating-point directives.
32104 * m4/printf.m4 (gl_PRINTF_FLAG_ZERO): New macro.
32105 * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_ZERO): New macro.
32106 * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
32107 gl_PRINTF_FLAG_ZERO and test its result. Invoke
32108 gl_PREREQ_VASNPRINTF_FLAG_ZERO.
32109 * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
32110 * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Likewise.
32111 * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
32112 * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
32113 * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
32114 * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
32115 * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
32116 * tests/test-snprintf-posix.h (test_function): Also check the width
32117 and some flags in the %f directive.
32118 * tests/test-sprintf-posix.h (test_function): Likewise.
32119 * tests/test-vasnprintf-posix.c (test_function): Likewise.
32120 * tests/test-vasprintf-posix.c (test_function): Likewise.
32121 * doc/functions/fprintf.texi: Update.
32122 * doc/functions/printf.texi: Update.
32123 * doc/functions/snprintf.texi: Update.
32124 * doc/functions/sprintf.texi: Update.
32125 * doc/functions/vfprintf.texi: Update.
32126 * doc/functions/vprintf.texi: Update.
32127 * doc/functions/vsnprintf.texi: Update.
32128 * doc/functions/vsprintf.texi: Update.
32130 2007-05-06 Bruno Haible <bruno@clisp.org>
32132 * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_GROUPING]: Don't
32133 pass the ' flag character to sprintf or snprintf.
32134 * m4/printf.m4 (gl_PRINTF_FLAG_GROUPING): New macro.
32135 * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_GROUPING): New macro.
32136 * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
32137 gl_PRINTF_FLAG_GROUPING and test its result. Invoke
32138 gl_PREREQ_VASNPRINTF_FLAG_GROUPING.
32139 * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
32140 * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Likewise.
32141 * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
32142 * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
32143 * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
32144 * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
32145 * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
32146 * tests/test-snprintf-posix.h (test_function): Also check the grouping
32148 * tests/test-sprintf-posix.h (test_function): Likewise.
32149 * tests/test-vasnprintf-posix.c (test_function): Likewise.
32150 * tests/test-vasprintf-posix.c (test_function): Likewise.
32151 * doc/functions/fprintf.texi: Update.
32152 * doc/functions/printf.texi: Update.
32153 * doc/functions/snprintf.texi: Update.
32154 * doc/functions/sprintf.texi: Update.
32155 * doc/functions/vfprintf.texi: Update.
32156 * doc/functions/vprintf.texi: Update.
32157 * doc/functions/vsnprintf.texi: Update.
32158 * doc/functions/vsprintf.texi: Update.
32160 2007-05-01 Bruno Haible <bruno@clisp.org>
32162 * tests/test-argp-2.sh (func_compare): Drop .exe suffix.
32164 2007-05-03 Paul Eggert <eggert@cs.ucla.edu>
32166 * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Use better
32167 comment for D_INO_IN_DIRENT. Problem reported by James Youngman.
32169 2007-05-02 Paul Eggert <eggert@cs.ucla.edu>
32171 * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Test whether
32172 readdir returns garbage in d_ino. Problem reported by Kaz Sasayama in
32173 <http://lists.gnu.org/archive/html/bug-gnulib/2007-05/msg00021.html>.
32175 2007-05-02 Sergey Poznyakoff <gray@gnu.org.ua>
32177 * lib/argp-help.c (struct hol_entry): New member `ord'.
32178 (HOL_ENTRY_PTRCMP): Use ord for comparison
32179 (hol_sort): Initialize ord.
32181 2007-05-01 Bruno Haible <bruno@clisp.org>
32183 * doc/functions/_Exit_C99.texi: Renamed from doc/functions/_Exit.texi.
32184 Reported by Eric Blake.
32185 * doc/gnulib.texi (Function Substitutes): Update.
32187 2007-05-01 Bruno Haible <bruno@clisp.org>
32189 * doc/functions.texi: Remove file, now redundant through
32190 doc/functions/*.texi.
32192 2007-05-01 Bruno Haible <bruno@clisp.org>
32194 * modules/argp (Depends-on): Add sleep.
32196 2007-05-01 Bruno Haible <bruno@clisp.org>
32198 * modules/sleep-tests: New file.
32199 * tests/test-sleep.c: New file.
32201 * modules/sleep: New file.
32202 * lib/sleep.c: New file.
32203 * m4/sleep.m4: New file.
32204 * lib/unistd_.h (sleep): New declaration.
32205 * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_SLEEP,
32207 * modules/unistd (Makefile.am): Substitute GNULIB_SLEEP, HAVE_SLEEP.
32208 * doc/functions/sleep.texi: Document the sleep module.
32210 2007-05-01 Bruno Haible <bruno@clisp.org>
32212 * lib/sigprocmask.h: Remove file.
32213 * lib/signal_.h: Incorporate the previous contents of sigprocmask.h.
32214 * lib/sigprocmask.c: Include <signal.h> instead of sigprocmask.h.
32215 * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Substitute GNULIB_SIGPROCMASK,
32216 HAVE_POSIX_SIGNALBLOCKING, HAVE_SIGSET_T.
32217 * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Require
32218 gl_SIGNAL_H_DEFAULTS. Set HAVE_POSIX_SIGNALBLOCKING as a shell variable.
32219 (gl_PREREQ_SIGPROCMASK): Require gl_SIGNAL_H_DEFAULTS. Set
32220 HAVE_SIGSET_T as a shell variable.
32221 * modules/signal (Makefile.am): Substitute GNULIB_SIGPROCMASK,
32222 HAVE_POSIX_SIGNALBLOCKING, HAVE_SIGSET_T into signal.h.
32223 * modules/sigprocmask (Files): Remove lib/sigprocmask.h.
32224 (Depends-on): Add signal. Remove verify.
32225 (configure.ac): Invoke gl_SIGNAL_MODULE_INDICATOR.
32226 (Include): Mention <signal.h> instead of sigprocmask.h.
32227 * NEWS: Mention the change.
32228 * lib/fatal-signal.c: Don't include sigprocmask.h.
32230 2007-05-01 Bruno Haible <bruno@clisp.org>
32232 * modules/signal: New file.
32233 * lib/signal_.h: New file.
32234 * m4/signal_h.m4: New file.
32236 2007-05-01 Bruno Haible <bruno@clisp.org>
32238 * lib/wctype_.h: Test HAVE_ISWCNTRL at configure time.
32239 * m4/wctype.m4 (gl_WCTYPE_H): Substitute HAVE_ISWCNTRL.
32240 * modules/wctype (Makefile.am): Substitute HAVE_ISWCNTRL instead of
32241 HAVE_WCTYPE_CTMP_BUG into wctype.h.
32243 2007-05-01 Bruno Haible <bruno@clisp.org>
32245 * lib/sys_stat_.h: Test HAVE_LSTAT, HAVE_DECL_MKDIR, HAVE_IO_H at
32247 * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Substitute HAVE_LSTAT,
32248 HAVE_DECL_MKDIR, HAVE_IO_H via AC_SUBST.
32249 * modules/sys_stat (Makefile.am): Substitute their values into
32252 2007-05-01 Bruno Haible <bruno@clisp.org>
32254 * lib/glob_.h: Test HAVE_SYS_CDEFS_H at configure time.
32255 * m4/glob.m4 (gl_PREREQ_GLOB): Substitute HAVE_SYS_CDEFS_H via AC_SUBST.
32256 * modules/glob (Makefile.am): Put HAVE_SYS_CDEFS_H value into glob.h.
32258 2007-05-01 Bruno Haible <bruno@clisp.org>
32260 * doc/header/assert.texi: Undo last change: don't mention the gnulib
32261 'assert' module here.
32263 2007-05-01 Bruno Haible <bruno@clisp.org>
32265 * doc/functions/*.texi: New files.
32266 * doc/functions/google-ranking.txt: New file.
32267 * doc/gnulib.texi (Function Substitutes): New chapter.
32268 (ctime, inet_ntoa): Remove sections.
32269 * doc/ctime.texi: Remove file.
32270 * doc/inet_ntoa.texi: Remove file.
32271 * doc/Makefile (gnulib.info, gnulib.html, gnulib.dvi): Update
32273 (%.info): New rule, specifying a --reference-limit.
32275 2007-05-01 Bruno Haible <bruno@clisp.org>
32277 * MODULES.html.sh (posix_functions): Remove 'exec', 'toc'.
32279 2007-05-01 Bruno Haible <bruno@clisp.org>
32281 * modules/mkdir (Depends-on): Add sys_stat, because sys_stat provides
32282 the portability of 'mkdir' to mingw systems.
32284 2007-05-01 Bruno Haible <bruno@clisp.org>
32286 * doc/headers/google-ranking.txt: New file.
32288 2007-04-30 Eric Blake <ebb9@byu.net>
32290 Prefer fseeko to fseek.
32291 * modules/getpass (Depends-on): Add fseeko.
32292 * lib/getpass.c (getpass): Use fseeko, not fseek.
32294 2007-04-30 Sergey Poznyakoff <gray@gnu.org.ua>
32296 * lib/argp-help.c (hol_entry_cmp): Option sorting algorithm
32297 assumes the sorting is stable, while most qsort implementations
32298 are not. Use argument addresses to ensure they never compare as
32301 * tests/test-argp-2.sh (usage-indent test): Fix output
32302 (func_compare): Restore diff options
32303 * tests/test-argp.c: Restore #include "progname.h"
32305 2007-04-29 Bruno Haible <bruno@clisp.org>
32307 * m4/printf.m4 (gl_VSNPRINTF_ZEROSIZE_C99): New macro.
32308 * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
32309 gl_VSNPRINTF_ZEROSIZE_C99. Test gl_cv_func_vsnprintf_zerosize_c99.
32310 * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
32311 * modules/snprintf-posix-tests (Files): Add tests/test-snprintf.c.
32312 (configure.ac): Define CHECK_SNPRINTF_POSIX.
32313 (TESTS, check_PROGRAMS): Add test-snprintf.
32314 * modules/vsnprintf-posix-tests (Files): Add tests/test-vsnprintf.c.
32315 (configure.ac): Define CHECK_VSNPRINTF_POSIX.
32316 (TESTS, check_PROGRAMS): Add test-vsnprintf.
32317 * tests/test-snprintf.c (main) [!CHECK_SNPRINTF_POSIX]: Disable
32318 assertions that fail on HP-UX, OSF/1, or IRIX.
32319 * tests/test-vsnprintf.c (main) [!CHECK_VSNPRINTF_POSIX]: Likewise.
32321 2007-04-29 Bruno Haible <bruno@clisp.org>
32323 * MODULES.html.sh (posix_functions): Remove 'contents'.
32325 2007-04-29 Karl Berry <karl@gnu.org>
32327 * config/srclist.txt (gendocs_template_min): new entry.
32329 2007-04-29 Bruno Haible <bruno@clisp.org>
32331 Work around fpurge bug on BSD systems.
32332 * modules/fpurge (Makefile.am): Compile fpurge.c unconditionally.
32333 * m4/fpurge.m4 (gl_FUNC_FPURGE): Don't invoke AC_LIBOBJ.
32334 * lib/fpurge.h (fpurge): Don't handle __fpurge wrapper here. Define
32335 fpurge to rpl_fpurge if the system already has this function.
32336 * lib/fpurge.c (fpurge): Handle also the __fpurge wrapper case and
32337 the case where the system already has this function. Correct invariants
32339 * lib/fseeko.c (rpl_fseeko): Update recognition of preceding fflush on
32342 2007-04-29 Sergey Poznyakoff <gray@gnu.org.ua>
32344 * lib/argp-help.c (hol_cluster_cmp): Reverse comparison. Change
32345 proposed by Sven Verdoolaege.
32347 * tests/test-argp.c: Fix option ordering. Test deeply clustered
32349 * tests/test-argp-2.sh (func_compare): Use diff instead of cmp.
32350 (usage and help tests): Update
32352 2007-04-29 Bruno Haible <bruno@clisp.org>
32354 * tests/test-fflush.c (main): Use a file of size 17, not 10.
32355 Print more information in case of failure. Disable a test on BeOS.
32357 2007-04-29 Bruno Haible <bruno@clisp.org>
32359 * tests/**/test-*.[hc] (ASSERT): Use fprintf to show the line number.
32360 This helps debugging on systems on which no gdb is available.
32362 2007-04-29 Bruno Haible <bruno@clisp.org>
32364 * lib/freading.h: Improve comments.
32365 * lib/fwriting.h: Likewise.
32366 * tests/test-freading.c (main): Don't check freading immediately after
32367 repositioning. Needed for glibc.
32369 2007-04-29 Bruno Haible <bruno@clisp.org>
32371 * lib/freading.c (freading): Trivial simplification.
32373 2007-04-28 Bruno Haible <bruno@clisp.org>
32375 * tests/test-fwriting.c (main): Also test the interaction between
32376 fflush and fwriting.
32377 * modules/fwriting-tests (Depends-on): Add fflush.
32379 * tests/test-freading.c (main): Also test the interaction between
32380 fflush and freading.
32381 * modules/freading-tests (Depends-on): Add fflush.
32383 2007-04-28 Bruno Haible <bruno@clisp.org>
32385 * lib/stdio_.h (fseek, ftell): Provide link warnings suggesting to use
32387 Suggested by Eric Blake.
32389 2007-04-28 Jim Meyering <jim@meyering.net>
32391 Avoid false-negative in gl_STDINT_H's C99 conformance test.
32392 * m4/stdint.m4 (gl_STDINT_H): When checking whether stdint.h conforms
32393 to C99, include all of gl_STDINT_INCLUDES, not just <stddef.h>.
32395 2007-04-27 Eric Blake <ebb9@byu.net>
32397 * doc/headers/assert.texi (assert.h): Document assert module use.
32399 2007-04-27 Bruno Haible <bruno@clisp.org>
32401 * doc/headers/*.texi: New files.
32402 * doc/gnulib.texi (Header File Substitutes): New chapter.
32403 * doc/Makefile (gnulib.info, gnulib.html, gnulib.dvi): Specify
32405 (standards.info ,standards.html, standards.dvi): Update dependencies.
32406 (mostlyclean, clean): New targets.
32408 2007-04-27 Bruno Haible <bruno@clisp.org>
32410 * lib/sysexits_.h: Renamed from lib/sysexit_.h.
32411 * modules/sysexits (Files, Makefile.am): Update.
32413 * lib/sys_socket_.h: Renamed from lib/socket_.h.
32414 * modules/sys_socket (Files, Makefile.am): Update.
32416 * lib/sys_stat_.h: Renamed from lib/stat_.h.
32417 * modules/sys_stat (Files, Makefile.am): Update.
32419 2007-04-27 Eric Blake <ebb9@byu.net>
32421 * lib/freading.h: Improve comments.
32422 * lib/fwriting.h: Likewise.
32423 * lib/fflush.c: Likewise.
32425 Fix closein for mingw.
32426 * modules/closein-tests: Add tests for closein.
32427 * tests/test-closein.c: New file.
32428 * tests/test-closein.sh: Likewise.
32429 * lib/unistd_.h [!SEEK_CUR]: Mingw also needs stdlib.h for _exit.
32430 * lib/closein.c (close_stdin): Don't fflush non-seekable streams.
32432 2007-04-27 Bruno Haible <bruno@clisp.org>
32434 * lib/inttypes_.h [_DECC]: Don't use #include_next if the compiler
32436 * lib/math_.h [__DECC]: Likewise.
32437 * lib/stdio_.h [__DECC]: Likewise.
32438 * lib/stdlib_.h [__DECC]: Likewise.
32439 * lib/string_.h [__DECC]: Likewise.
32440 * lib/time_.h [__DECC]: Likewise.
32441 * lib/wchar_.h [__DECC]: Likewise.
32442 * lib/wctype_.h [__DECC]: Likewise.
32444 2007-04-27 Bruno Haible <bruno@clisp.org>
32446 * tests/test-fbufmode.c (main): Relax test, to avoid failure on mingw.
32448 2007-04-27 Bruno Haible <bruno@clisp.org>
32450 * lib/fflush.c: Add comments.
32451 * modules/fpurge-tests (Depends-on): Add fflush.
32452 * modules/freadable-tests (Depends-on): Likewise.
32453 * modules/fwritable-tests (Depends-on): Likewise.
32455 2007-04-27 Charles Wilson <libtool@cwilson.fastmail.fm>
32457 * m4/argz.m4 (gl_FUNC_ARGZ): Use !HAVE_WORKING_ARGZ instead of
32458 SYSTEM_ARGZ_IS_BROKEN. Also, minor stylistic improvements.
32459 Report by Bruno Haible <bruno@clisp.org>.
32461 2007-04-26 Eric Blake <ebb9@byu.net>
32463 Fix fflush on mingw.
32464 * modules/fflush (Depends-on): Add freading.
32465 * lib/fflush.c (rpl_fflush): Use freading to avoid losing buffered
32468 2007-04-26 Eric Blake <ebb9@byu.net>
32469 and Bruno Haible <bruno@clisp.org>
32471 Implement freading and fwriting.
32472 * lib/freading.c: New file.
32473 * lib/freading.h: Likewise.
32474 * m4/freading.m4: Likewise.
32475 * modules/freading: Likewise.
32476 * modules/freading-tests: Likewise.
32477 * tests/test-freading.c: Likewise.
32478 * lib/fwriting.c: New file.
32479 * lib/fwriting.h: Likewise.
32480 * m4/fwriting.m4: Likewise.
32481 * modules/fwriting: Likewise.
32482 * modules/fwriting-tests: Likewise.
32483 * tests/test-fwriting.c: Likewise.
32484 * MODULES.html.sh (File stream based Input/Output): Mention them.
32486 2007-04-26 Bruno Haible <bruno@clisp.org>
32488 * lib/stdio_.h (fseeko, ftello): Check that off_t has the same size as
32489 'long' when we assume it.
32490 Suggested by Eric Blake.
32492 2007-04-26 Bruno Haible <bruno@clisp.org>
32494 Ensure fseeko, ftello are declared on glibc systems.
32495 * modules/fflush (configure.ac-early): Require AC_FUNC_FSEEKO.
32496 * modules/fseeko (configure.ac-early): Likewise.
32497 * modules/ftello (configure.ac-early): Likewise.
32498 * m4/fflush.m4 (gl_REPLACE_FFLUSH): Don't define HAVE_FSEEKO, rely on
32499 AC_FUNC_FSEEKO for this.
32500 * m4/fseeko.m4 (gl_FUNC_FSEEKO): Inline gl_CHECK_FSEEKO.
32501 (gl_CHECK_FSEEKO): Remove macro.
32503 2007-04-26 Bruno Haible <bruno@clisp.org>
32505 * tests/test-fflush.c (main): Also check the ftell result after
32506 fflush and fseek/fseeko.
32507 * lib/fflush.c (rpl_fflush): For BSD implementations, update the
32508 file descriptor position cache in the stream.
32509 * lib/fseeko.c (rpl_fseeko): Likewise.
32511 2007-04-26 Bruno Haible <bruno@clisp.org>
32513 * modules/fflush-tests (Depends-on): Add fseeko.
32515 2007-04-25 Charles Wilson <libtool@cwilson.fastmail.fm>
32516 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
32518 * lib/argz_.h: ensure error_t definition is obtained in same
32519 mechanism system argz.h would have.
32520 * m4/argz.m4 (gl_FUNC_ARGZ): add new test to check if $host's
32521 argz facilities are known bad. Err on the side of caution if
32524 2007-04-25 Eric Blake <ebb9@byu.net>
32526 * lib/fpurge.c (includes): Use stdlib.h for free.
32527 * tests/test-fflush.c (main): Also test fflush-fseeko.
32529 2007-04-25 Bruno Haible <bruno@clisp.org>
32531 Make fflush+fseek POSIX-compliant on FreeBSD and MacOS X.
32532 * lib/fseeko.c: New file.
32533 * lib/stdio_.h: Include <sys/types.h> when off_t is needed.
32534 (fseeko, fseek): Define to replacements if REPLACE_FFLUSH.
32535 * m4/fseeko.m4 (gl_CHECK_FSEEKO): New macro, extracted from
32537 (gl_FUNC_FSEEKO): Invoke it.
32538 * m4/fflush.m4 (gl_REPLACE_FFLUSH): Arrange to compile fseeko.c. Invoke
32539 gl_CHECK_FSEEKO. Define HAVE_FSEEKO.
32540 * modules/fflush (Files): Add lib/fseeko.c, m4/fseeko.m4.
32542 2007-04-25 Bruno Haible <bruno@clisp.org>
32544 * modules/fflush (Depends-on): Add ftello.
32546 2007-04-25 Bruno Haible <bruno@clisp.org>
32548 * modules/ftello-tests: New file.
32549 * tests/test-ftello.c: New file.
32551 * modules/ftello: New file.
32552 * m4/ftello.m4: New file.
32553 * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FTELLO,
32555 * lib/stdio_.h (ftello): New declaration.
32556 * modules/stdio (Makefile.am): Substitute also GNULIB_FTELLO,
32559 2007-04-25 Bruno Haible <bruno@clisp.org>
32561 * modules/fseeko-tests: New file.
32562 * tests/test-fseeko.c: New file.
32564 * modules/fseeko: New file.
32565 * m4/fseeko.m4: New file.
32566 * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FSEEKO,
32568 * lib/stdio_.h (fseeko): New declaration.
32569 * modules/stdio (Makefile.am): Substitute also GNULIB_FSEEKO,
32572 2007-04-25 Bruno Haible <bruno@clisp.org>
32574 * lib/stdio_.h (fflush): Add support for GNULIB_POSIXCHECK.
32576 2007-04-25 Bruno Haible <bruno@clisp.org>
32578 * lib/unistd_.h: Include <stdio.h> if needed to get the SEEK_* macros.
32579 * tests/test-stdio.c: Check that the various SEEK_* macros are defined.
32580 * tests/test-unistd.c: Likewise.
32581 * tests/test-fcntl.c: Likewise.
32583 2007-04-23 Eric Blake <ebb9@byu.net>
32585 * lib/fflush.c: Fix missing include.
32586 Reported by Bruno Haible.
32588 2007-04-23 Bruno Haible <bruno@clisp.org>
32590 * lib/fpurge.c (fpurge) [glibc, BSD]: Free a malloc()ed ungetc buffer.
32591 Reported by Eric Blake.
32593 2007-04-23 Bruno Haible <bruno@clisp.org>
32595 * lib/fbufmode.c (fbufmode): Port to Solaris/SPARC64.
32597 2007-04-23 Bruno Haible <bruno@clisp.org>
32599 * lib/fseterr.c (fseterr): Don't hardcode the value of _IOERR.
32601 2007-04-23 Bruno Haible <bruno@clisp.org>
32603 * tests/test-fbufmode.c (main): Be prepared to a failure of setvbuf.
32604 Needed on HP-UX 11.
32606 2007-04-16 Eric Blake <ebb9@byu.net>
32608 Make fflush rely on fpurge.
32609 * lib/fflush.c (rpl_fflush): Rely on fpurge module, rather than
32610 open coding all variants.
32611 * modules/fflush (Depends-on): Add fpurge and unistd.
32612 * modules/fflush-tests (Depends-on): Unistd is no longer extra.
32613 * m4/fflush.m4 (gl_REPLACE_FFLUSH): Simplify.
32615 Fix --with-tests compilation on cygwin.
32616 * modules/argmatch-tests (Makefile.am): List gnulib library first
32618 * modules/argp-tests (Makefile.am): Likewise.
32619 * modules/array-list-tests (Makefile.am): Likewise.
32620 * modules/array-oset-tests (Makefile.am): Likewise.
32621 * modules/avltree-list-tests (Makefile.am): Likewise.
32622 * modules/avltree-oset-tests (Makefile.am): Likewise.
32623 * modules/avltreehash-list-tests (Makefile.am): Likewise.
32624 * modules/carray-list-tests (Makefile.am): Likewise.
32625 * modules/dirname-tests (Makefile.am): Likewise.
32626 * modules/frexp-tests (Makefile.am): Likewise.
32627 * modules/isnanl-tests (Makefile.am): Likewise.
32628 * modules/linked-list-tests (Makefile.am): Likewise.
32629 * modules/linkedhash-list-tests (Makefile.am): Likewise.
32630 * modules/lock-tests (Makefile.am): Likewise.
32631 * modules/rbtree-list-tests (Makefile.am): Likewise.
32632 * modules/rbtree-oset-tests (Makefile.am): Likewise.
32633 * modules/rbtreehash-list-tests (Makefile.am): Likewise.
32634 * modules/tls-tests (Makefile.am): Likewise.
32635 * modules/tsearch-tests (Makefile.am): Likewise.
32636 * modules/xvasprintf-tests (Makefile.am): Likewise.
32638 Fix fpurge for cygwin.
32639 * lib/fpurge.c (fpurge): Fix order of operation flub, and return a
32641 * modules/fpurge-tests (Depends-on): Clean up trash.
32643 2007-04-16 Simon Josefsson <simon@josefsson.org>
32645 * lib/gc-libgcrypt.c (gc_hash_open): Shut up compiler warnings.
32647 * m4/autobuild.m4: Re-indent.
32649 2007-04-13 Bruno Haible <bruno@clisp.org>
32651 * modules/fpurge-tests: New file.
32652 * tests/test-fpurge.c: New file.
32654 * modules/fpurge: New file.
32655 * lib/fpurge.h: New file.
32656 * lib/fpurge.c: New file.
32657 * m4/fpurge.m4: New file.
32659 2007-04-13 Bruno Haible <bruno@clisp.org>
32661 * modules/fbufmode-tests: New file.
32662 * tests/test-fbufmode.c: New file.
32664 * modules/fbufmode: New file.
32665 * lib/fbufmode.h: New file.
32666 * lib/fbufmode.c: New file.
32667 * m4/fbufmode.m4: New file.
32669 2007-04-13 Bruno Haible <bruno@clisp.org>
32671 * modules/fwritable-tests: New file.
32672 * tests/test-fwritable.c: New file.
32674 * modules/fwritable: New file.
32675 * lib/fwritable.h: New file.
32676 * lib/fwritable.c: New file.
32677 * m4/fwritable.m4: New file.
32679 2007-04-13 Bruno Haible <bruno@clisp.org>
32681 * modules/freadable-tests: New file.
32682 * tests/test-freadable.c: New file.
32684 * modules/freadable: New file.
32685 * lib/freadable.h: New file.
32686 * lib/freadable.c: New file.
32687 * m4/freadable.m4: New file.
32689 2007-04-13 Bruno Haible <bruno@clisp.org>
32691 * modules/fflush-tests (Makefile.am): Remove EXTRA_DIST. Augment
32694 2007-04-13 Paul Eggert <eggert@cs.ucla.edu>
32696 * build-aux/bootstrap (gnulib_tool_option_extras): New var, used by
32697 gzip bootstrap.conf to avoid dragging in i18n machinery.
32698 (gnulib_tool_option): Use it.
32700 2007-04-13 Bruno Haible <bruno@clisp.org>
32702 * tests/test-vasnprintf-posix.c (test_function): Add tests for %f and
32704 * tests/test-vasprintf-posix.c (test_function): Likewise.
32705 * tests/test-snprintf-posix.h (test_function): Likewise.
32706 * tests/test-sprintf-posix.h (test_function): Likewise.
32707 * tests/test-fprintf-posix.h (test_function): Likewise.
32708 * tests/test-printf-posix.h (test_function): Likewise.
32709 * tests/test-fprintf-posix.out: Likewise.
32711 2007-04-13 Bruno Haible <bruno@clisp.org>
32713 * modules/lock-tests (configure.ac): For LIBSCHED, try also -lposix4.
32714 * modules/tls-tests (configure.ac): Likewise.
32715 Reported by Arto C. Nirkko <anirkko@insel.ch>.
32717 2007-04-13 Bruno Haible <bruno@clisp.org>
32719 * lib/tls.c (glthread_tls_get): Fix return type.
32720 Patch by Arto C. Nirkko <anirkko@insel.ch>.
32722 2007-04-12 Eric Blake <ebb9@byu.net>
32724 * modules/gettime (Depends-on): Remove gettime.
32725 Reported by Dmitry V. Levin.
32727 2007-04-12 Bruno Haible <bruno@clisp.org>
32729 * modules/fflush (Include): Mention <stdio.h>.
32730 * modules/strtoimax (Include): Mention <inttypes.h>.
32731 * modules/strtoumax (Include): Likewise.
32733 2007-04-12 Eric Blake <ebb9@byu.net>
32735 * .cvsignore: New file.
32736 * .gitignore: Likewise.
32738 2007-04-12 Bruno Haible <bruno@clisp.org>
32740 * modules/iconv-tests (test_iconv_LDADD): Mention -liconv after LDADD,
32741 not before, since $(LDADD) often contains libgnu.a.
32742 * modules/striconv-tests (test_striconv_LDADD): Likewise.
32743 * modules/striconveh-tests (test_striconveh_LDADD): Likewise.
32744 * modules/striconveha-tests (test_striconveha_LDADD): Likewise.
32747 2007-04-12 Eric Blake <ebb9@byu.net>
32749 Work around glibc's failure to flush stdin on fclose.
32750 * lib/closein.c (close_stdin): Flush stdin before closing.
32752 Work around glibc's failure to reset seekable stdin on exit.
32753 * modules/closein: New module.
32754 * lib/closein.c: New file.
32755 * lib/closein.h: Likewise.
32756 * m4/closein.m4: Likewise.
32757 * MODULES.html.sh (File stream based Input/Output): Document it.
32759 2007-04-12 Simon Josefsson <simon@josefsson.org>
32761 * gnulib-tool: Rename generated 'autobuild' script to
32762 'do-autobuild' in --create-megatestdir output.
32764 * doc/gnulib.texi (Build robot for gnulib): Fix.
32766 2007-04-12 Simon Josefsson <simon@josefsson.org>
32768 * modules/sysexits (Depends-on): Add absolute-header.
32770 2007-04-12 Eric Blake <ebb9@byu.net>
32772 No need to preserve errno on success.
32773 * lib/fflush.c (rpl_fflush): Simplify errno tracking.
32774 Reported by Bruno Haible.
32776 2007-04-12 Simon Josefsson <simon@josefsson.org>
32778 * MODULES.html.sh (Support for maintaining and releasing
32779 projects): Add autobuild. Suggested by Eric Blake <ebb9@byu.net>.
32781 2007-04-12 Simon Josefsson <simon@josefsson.org>
32783 * gnulib-tool (func_modules_add_dummy): Respect --avoid=dummy.
32785 2007-04-12 Simon Josefsson <simon@josefsson.org>
32787 * modules/autobuild: New module.
32789 * m4/autobuild.m4: New file.
32791 2007-04-11 Bruno Haible <bruno@clisp.org>
32793 * lib/vasnprintf.c (VASNPRINTF): Implement the %F directive using the
32794 %f directive, if NEED_PRINTF_DIRECTIVE_F is defined.
32795 * m4/printf.m4 (gl_PRINTF_DIRECTIVE_F): New macro.
32796 * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_F): New macro.
32797 * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
32798 gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
32799 gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
32800 * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
32801 gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
32802 gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
32803 * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Invoke
32804 gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
32805 gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
32806 * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Invoke
32807 gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
32808 gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
32809 * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Invoke
32810 gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
32811 gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
32812 * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Invoke
32813 gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
32814 gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
32815 * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Invoke
32816 gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
32817 gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
32818 * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Invoke
32819 gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
32820 gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
32821 Reported by Eric Blake.
32823 2007-04-11 Bruno Haible <bruno@clisp.org>
32825 * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Fix test. It always failed.
32827 2007-04-10 Bruno Haible <bruno@clisp.org>
32829 * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Add a test for correct result
32830 for NaN and Infinity. Needed on FreeBSD 6.1.
32831 * tests/test-vasnprintf-posix.c (test_function): Undo last change
32832 regarding results for "%010a" of Infinity and NaN.
32833 * tests/test-vasprintf-posix.c (test_function): Likewise.
32834 * tests/test-snprintf-posix.h (test_function): Likewise.
32835 * tests/test-sprintf-posix.h (test_function): Likewise.
32836 * tests/test-fprintf-posix.h (test_function): Likewise.
32837 * tests/test-printf-posix.h (test_function): Likewise.
32838 * tests/test-fprintf-posix.out: Likewise.
32840 2007-04-10 Bruno Haible <bruno@clisp.org>
32842 * modules/locale-tests: New file.
32843 * tests/test-locale.c: New file.
32845 * modules/locale: New file.
32846 * lib/locale_.h: New file.
32847 * m4/locale_h.m4: New file.
32849 2007-04-10 Paul Eggert <eggert@cs.ucla.edu>
32850 Bruno Haible <bruno@clisp.org>
32852 * m4/signbit.m4 (gl_SIGNBIT): When the sign bit position could not
32853 be determined, test for availability of the copysignf, copysign,
32854 copysignl functions.
32855 * lib/signbitf.c (gl_signbitf): Use copysignf if available in libc.
32856 * lib/signbitd.c (gl_signbitd): Use copysign if available in libc.
32857 * lib/signbitl.c (gl_signbitl): Use copysignl if available in libc.
32859 2007-04-09 Eric Blake <ebb9@byu.net>
32861 * lib/stdio_.h [REPLACE_FFLUSH]: Declare rpl_fflush.
32862 * modules/stdio (Makefile.am): Support fflush.
32863 * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
32864 * modules/fflush: New file.
32865 * lib/fflush.c: Likewise.
32866 * m4/fflush.m4: Likewise.
32867 * modules/fflush-tests: New test.
32868 * tests/test-fflush.c: Likewise.
32869 * MODULES.html.sh (Input/output <stdio.h>): Document new module.
32871 2007-04-06 Bruno Haible <bruno@clisp.org>
32873 * lib/vasnprintf.c: Include <math.h>. Don't include float+.h.
32874 (VASNPRINTF): Use signbit for faster determination whether to print a
32876 * modules/vasnprintf (Files): Remove lib/float+.h.
32877 * modules/fprintf-posix (Depends-on): Add signbit.
32878 * modules/snprintf-posix (Depends-on): Likewise.
32879 * modules/sprintf-posix (Depends-on): Likewise.
32880 * modules/vasnprintf-posix (Depends-on): Likewise.
32881 * modules/vasprintf-posix (Depends-on): Likewise.
32882 * modules/vfprintf-posix (Depends-on): Likewise.
32883 * modules/vsnprintf-posix (Depends-on): Likewise.
32884 * modules/vsprintf-posix (Depends-on): Likewise.
32886 2007-04-06 Bruno Haible <bruno@clisp.org>
32888 * tests/test-frexp.c (main): Test also the sign bit of zero results.
32889 * tests/test-frexpl.c (main): Likewise.
32890 * tests/test-ldexpl.c (main): Likewise.
32891 * modules/frexp-tests (Depends-on): Add signbit.
32892 * modules/frexpl-tests (Depdends-on): Likewise.
32893 * modules/ldexpl-tests (Depdends-on): Likewise.
32895 2007-04-06 Bruno Haible <bruno@clisp.org>
32897 * modules/signbit-tests: New file.
32898 * tests/test-signbit.c: New file.
32900 * modules/signbit: New file.
32901 * lib/signbitf.c: New file.
32902 * lib/signbitd.c: New file.
32903 * lib/signbitl.c: New file.
32904 * m4/signbit.m4: New file.
32905 * lib/math_.h (gl_signbitf, gl_signbitd, gl_signbitl): New declarations.
32906 (signbit): New macro.
32907 * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_SIGNBIT and
32909 * modules/math (Makefile.am) Substibute also GNULIB_SIGNBIT and
32910 REPLACE_FREXPL into math.h.
32912 2007-04-06 Bruno Haible <bruno@clisp.org>
32914 * modules/isnanf-nolibm-tests: New file.
32915 * tests/test-isnanf.c: New file.
32917 * modules/isnanf-nolibm: New file.
32918 * lib/isnanf.h: New file.
32919 * lib/isnanf.c: New file.
32920 * lib/isnan.c: Consider the USE_FLOAT macro.
32921 * m4/isnanf.m4: New file.
32923 2007-04-06 Bruno Haible <bruno@clisp.org>
32925 * modules/gettext-h (configure.ac): AC_SUBST LIBINTL and LTLIBINTL.
32926 (Link): New section.
32928 * modules/canonicalize-lgpl-tests (Makefile.am): Undo last change.
32930 2007-04-06 Bruno Haible <bruno@clisp.org>
32932 Assume the 'long double' type.
32933 * m4/longdouble.m4: Remove file.
32934 * config/srclist.txt: Don't mention longdouble.m4.
32935 * lib/allocsa.h: Assume HAVE_LONG_DOUBLE to be true.
32936 * lib/float+.h: Likewise.
32937 * lib/frexp.c: Likewise.
32938 * lib/printf-args.h: Likewise.
32939 * lib/printf-args.c: Likewise.
32940 * lib/printf-frexp.c: Likewise.
32941 * lib/printf-parse.c: Likewise.
32942 * lib/vasnprintf.c: Likewise.
32943 * m4/allocsa.m4: Remove gt_TYPE_LONGDOUBLE invocation.
32944 * m4/intl.m4: Likewise.
32945 * m4/isnanl.m4: Likewise.
32946 * m4/printf.m4: Likewise.
32947 * m4/printf-frexpl.m4: Likewise.
32948 * m4/vasnprintf.m4: Likewise.
32949 * modules/allocsa (Files): Remove m4/longdouble.m4.
32950 * modules/gettext (Files): Likewise.
32951 * modules/relocatable-prog-wrapper (Files): Likewise.
32952 * modules/vasnprintf (Files): Likewise.
32953 * modules/isnanl (Files): Likewise.
32954 (Include): Simplify.
32955 * modules/isnanl-nolibm (Files): Remove m4/longdouble.m4.
32956 (Include): Simplify.
32957 * modules/printf-frexpl (Files): Remove m4/longdouble.m4.
32958 (Include): Simplify.
32959 * modules/snprintf-posix-tests (Files): Remove m4/longdouble.m4.
32960 (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
32961 * modules/sprintf-posix-tests (Files): Remove m4/longdouble.m4.
32962 (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
32963 * modules/vasnprintf-posix-tests (Files): Remove m4/longdouble.m4.
32964 (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
32965 * modules/vasprintf-posix-tests (Files): Remove m4/longdouble.m4.
32966 (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
32967 * modules/vsnprintf-posix-tests (Files): Remove m4/longdouble.m4.
32968 (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
32969 * modules/vsprintf-posix-tests (Files): Remove m4/longdouble.m4.
32970 (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
32971 * tests/test-isnanl-nolibm.c: Assume HAVE_LONG_DOUBLE to be true.
32972 * tests/test-isnanl.c: Likewise.
32973 * tests/test-snprintf-posix.h: Likewise.
32974 * tests/test-sprintf-posix.h: Likewise.
32975 * tests/test-vasnprintf-posix.c: Likewise.
32976 * tests/test-vasnprintf-posix2.c: Likewise.
32977 * tests/test-vasprintf-posix.c: Likewise.
32979 2007-04-06 Bruno Haible <bruno@clisp.org>
32981 Fix problem with Compaq (ex-DEC) Desktop C compiler on Tru64.
32982 * lib/math_.h [__DECC]: Include the overridden include file through
32983 #include_next, outside the double-inclusion guard.
32984 * lib/stdio_.h [__DECC]: Likewise.
32985 * lib/stdlib_.h [__DECC]: Likewise.
32986 * lib/string_.h [__DECC]: Likewise.
32987 * lib/time_.h [__DECC]: Likewise.
32988 * lib/wchar_.h [__DECC]: Likewise.
32989 * lib/wctype_.h [__DECC]: Likewise.
32990 * lib/inttypes_.h [__DECC]: Likewise.
32991 Reported by Albert Chin <china@thewrittenword.com> in
32992 <http://lists.gnu.org/archive/html/bug-gnulib/2007-04/msg00088.html>.
32994 2007-04-04 Eric Blake <ebb9@byu.net>
32996 * m4/stdint.m4 (gl_STDINT_H): Detect WINT_MAX bug in cygwin
32999 2007-04-04 Bruno Haible <bruno@clisp.org>
33001 * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Add a test for correct
33002 rounding. Don't assume that FreeBSD 6 and NetBSD 4 pass this test.
33004 2007-04-04 Bruno Haible <bruno@clisp.org>
33006 * tests/test-vasnprintf-posix.c (test_function): Allow two possible
33007 results for "%010a" of Infinity and NaN.
33008 * tests/test-vasprintf-posix.c (test_function): Likewise.
33009 * tests/test-snprintf-posix.h (test_function): Likewise.
33010 * tests/test-sprintf-posix.h (test_function): Likewise.
33011 * tests/test-fprintf-posix.h (test_function): Remove these tests.
33012 * tests/test-printf-posix.h (test_function): Likewise.
33013 * tests/test-fprintf-posix.out: Update.
33014 Needed for FreeBSD 6.1.
33016 2007-04-04 Bruno Haible <bruno@clisp.org>
33018 * DEPENDENCIES: Remove mentions of tar and gzip, since they are not
33019 directly used by the gnulib modules nor by gnulib-tool.
33021 2007-04-04 Paul Eggert <eggert@cs.ucla.edu>
33023 * DEPENDENCIES: Give overall description of version dependency
33024 desirability. Use more-typical names for apps.
33025 Add shell, coreutils, diffutils, grep, tar, gzip.
33027 2007-04-04 Simon Josefsson <simon@josefsson.org>
33029 * MODULES.html.sh: Rename crypto modules. Remove iconvme.
33031 2007-04-04 Karl Berry <karl@gnu.org>
33033 * MODULES.html.sh (func_module): missing '.
33035 2007-04-03 Bruno Haible <bruno@clisp.org>
33037 * modules/argmatch-tests (Makefile.am): New variable
33038 test_argmatch_LDADD.
33039 * modules/argp-tests (Makefile.am): New variable test_argp_LDADD.
33040 * modules/array-list-tests (Makefile.am): New variable
33041 test_array_list_LDADD.
33042 * modules/array-oset-tests (Makefile.am): New variable
33043 test_array_oset_LDADD.
33044 * modules/avltree-list-tests (Makefile.am): New variable
33045 test_avltree_list_LDADD.
33046 * modules/avltree-oset-tests (Makefile.am): New variable
33047 test_avltree_oset_LDADD.
33048 * modules/avltreehash-list-tests (Makefile.am): New variable
33049 test_avltreehash_list_LDADD.
33050 * modules/canonicalize-lgpl-tests (Makefile.am): New variable
33051 test_canonicalize_lgpl_LDADD.
33052 * modules/carray-list-tests (Makefile.am): New variable
33053 test_carray_list_LDADD.
33054 * modules/dirname-tests (Makefile.am): New variable
33055 test_dirname_LDADD.
33056 * modules/linked-list-tests (Makefile.am): New variable
33057 test_linked_list_LDADD.
33058 * modules/linkedhash-list-tests (Makefile.am): New variable
33059 test_linkedhash_list_LDADD.
33060 * modules/rbtree-list-tests (Makefile.am): New variable
33061 test_rbtree_list_LDADD.
33062 * modules/rbtree-oset-tests (Makefile.am): New variable
33063 test_rbtree_oset_LDADD.
33064 * modules/rbtreehash-list-tests (Makefile.am): New variable
33065 test_rbtreehash_list_LDADD.
33066 * modules/xvasprintf-tests (Makefile.am): New variable
33067 test_xvasprintf_LDADD.
33068 Reported by Eric Blake.
33070 2007-04-03 Eric Blake <ebb9@byu.net>
33072 * DEPENDENCIES: Weaken m4 requirements.
33074 2007-04-03 Bruno Haible <bruno@clisp.org>
33076 * modules/frexp-tests (configure.ac): Remove AC_SUBST.
33077 * modules/isnanl-tests (configure.ac): Likewise.
33079 2007-04-03 Ben Pfaff <blp@gnu.org>
33081 * modules/iconv_open: Add $(srcdir)/ to source directory
33082 references in Makefile fragments that call gperf, to fix VPATH
33085 2007-04-03 Bruno Haible <bruno@clisp.org>
33087 * modules/ldexpl (Depends-on): Add isnanl, remove isnanl-nolibm.
33088 * lib/ldexpl.c: Undo last change.
33090 2007-04-03 Bruno Haible <bruno@clisp.org>
33092 * modules/printf-frexpl (Depends-on): Undo last change.
33093 (Files): Add m4/ldexpl.m4.
33095 2007-04-03 Bruno Haible <bruno@clisp.org>
33097 * m4/isnanl.m4 (gl_FUNC_ISNANL): Substitute ISNANL_LIBM.
33098 * modules/isnanl (Link): New section.
33100 * m4/frexp.m4 (gl_FUNC_FREXP): Substitute FREXP_LIBM.
33101 * modules/frexp (Link): New section.
33103 * m4/frexpl.m4 (gl_FUNC_FREXPL): Substitute FREXPL_LIBM.
33104 * modules/frexpl (Link): New section.
33106 * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Substitute LDEXPL_LIBM.
33107 * modules/ldexpl (Link): New section.
33109 2007-04-03 Bruno Haible <bruno@clisp.org>
33111 * modules/TEMPLATE-EXTENDED: New file.
33112 * gnulib-tool (func_all_modules, func_verify_module): Exclude it.
33114 2007-04-03 Bruno Haible <bruno@clisp.org>
33116 * DEPENDENCIES: New file.
33117 Suggested by Simon Josefsson.
33119 2007-04-03 Bruno Haible <bruno@clisp.org>
33121 * doc/gnulib.texi: Escape @.
33123 2007-04-03 James Youngman <jay@gnu.org>
33124 and Paul Eggert <eggert@cs.ucla.edu>
33126 * lib/stat-time.h (get_stat_birthtime): Check for zero-valued
33127 birthtime on all systems that have birthtime, not just those which
33128 use st_birthtimensec rather than st_birthtim. Putting zero in
33129 st_birthtim.tv_sec is how (for example) FreeBSD/x86 6.1 indicates
33130 that the birth time is not available for files on an NFS mount.
33132 2007-04-03 Simon Josefsson <simon@josefsson.org>
33134 * modules/memxor: Move back from crypto/, suggested by Bruno.
33135 * modules/crypto/hmac-sha1: Fix memxor dependency.
33137 * modules/crypto/gc: Moved from ../.
33139 2007-04-02 Eric Blake <ebb9@byu.net>
33141 * lib/ldexpl.c (includes): Avoid libm.
33143 * modules/printf-frexpl (Depends-on): Depend on ldexpl.
33145 2007-04-02 Bruno Haible <bruno@clisp.org>
33147 * lib/sysexit_.h (EX_OK): Disable the EX_OK definition from <unistd.h>
33150 2007-04-02 Bruno Haible <bruno@clisp.org>
33152 * m4/intdiv0.m4 (gt_INTDIV0): Avoid performing the test for real on
33153 x86 or x86_64 platforms running MacOS X.
33154 Reported by Ryan Schmidt <@ryandesign.com>.
33156 2007-04-02 Bruno Haible <bruno@clisp.org>
33158 * m4/intdiv0.m4 (gt_INTDIV0): When cross-compiling, treat x86_64 like
33161 2007-04-01 Simon Josefsson <simon@josefsson.org>
33163 * modules/crypto/arcfour: Moved from ../.
33164 * modules/crypto/arcfour-tests: Moved from ../.
33165 * modules/crypto/arctwo: Moved from ../.
33166 * modules/crypto/arctwo-tests: Moved from ../.
33167 * modules/crypto/des: Moved from ../.
33168 * modules/crypto/des-tests: Moved from ../.
33169 * modules/crypto/gc-arcfour: Moved from ../.
33170 * modules/crypto/gc-arcfour-tests: Moved from ../.
33171 * modules/crypto/gc-arctwo: Moved from ../.
33172 * modules/crypto/gc-arctwo-tests: Moved from ../.
33173 * modules/crypto/gc-des: Moved from ../.
33174 * modules/crypto/gc-des-tests: Moved from ../.
33175 * modules/crypto/gc-hmac-md5: Moved from ../.
33176 * modules/crypto/gc-hmac-md5-tests: Moved from ../.
33177 * modules/crypto/gc-hmac-sha1: Moved from ../.
33178 * modules/crypto/gc-hmac-sha1-tests: Moved from ../.
33179 * modules/crypto/gc-md2: Moved from ../.
33180 * modules/crypto/gc-md2-tests: Moved from ../.
33181 * modules/crypto/gc-md4: Moved from ../.
33182 * modules/crypto/gc-md4-tests: Moved from ../.
33183 * modules/crypto/gc-md5: Moved from ../.
33184 * modules/crypto/gc-md5-tests: Moved from ../.
33185 * modules/crypto/gc-pbkdf2-sha1: Moved from ../.
33186 * modules/crypto/gc-pbkdf2-sha1-tests: Moved from ../.
33187 * modules/crypto/gc-random: Moved from ../.
33188 * modules/crypto/gc-rijndael: Moved from ../.
33189 * modules/crypto/gc-rijndael-tests: Moved from ../.
33190 * modules/crypto/gc-sha1: Moved from ../.
33191 * modules/crypto/gc-sha1-tests: Moved from ../.
33192 * modules/crypto/gc-tests: Moved from ../.
33193 * modules/crypto/hmac-md5: Moved from ../.
33194 * modules/crypto/hmac-md5-tests: Moved from ../.
33195 * modules/crypto/hmac-sha1: Moved from ../.
33196 * modules/crypto/hmac-sha1-tests: Moved from ../.
33197 * modules/crypto/md2: Moved from ../.
33198 * modules/crypto/md2-tests: Moved from ../.
33199 * modules/crypto/md4: Moved from ../.
33200 * modules/crypto/md4-tests: Moved from ../.
33201 * modules/crypto/md5: Moved from ../.
33202 * modules/crypto/md5-tests: Moved from ../.
33203 * modules/crypto/memxor: Moved from ../.
33204 * modules/crypto/rijndael: Moved from ../.
33205 * modules/crypto/rijndael-tests: Moved from ../.
33206 * modules/crypto/sha1: Moved from ../.
33208 2007-03-30 James Youngman <jay@gnu.org>
33210 * tests/test-stat-time.c (prepare_test): use chmod() rather than
33211 rename() to change the ctime of a file (because ctime is unaffected
33212 by rename on jfs2 on AIX 5.1).
33213 (main): Start by doing cleanup, in case a previous run failed leaving
33216 2007-03-31 Bruno Haible <bruno@clisp.org>
33218 Support old proprietary implementations of iconv.
33219 * modules/iconv_open: New file.
33220 * lib/iconv_.h: New file.
33221 * m4/iconv_h.m4: New file.
33222 * lib/iconv_open.c: New file.
33223 * lib/iconv_open-aix.gperf: New file.
33224 * lib/iconv_open-hpux.gperf: New file.
33225 * lib/iconv_open-irix.gperf: New file.
33226 * lib/iconv_open-osf.gperf: New file.
33227 * m4/iconv_open.m4: New file.
33228 * modules/linebreak (Depends-on): Add iconv_open.
33229 * modules/striconv (Depends-on): Likewise.
33230 * modules/striconveh (Depends-on): Likewise.
33231 * modules/unicodeio (Depends-on): Likewise.
33232 * lib/striconveh.h (mem_cd_iconveh, str_cd_iconveh): Allow cd to be
33234 * lib/striconveh.c (mem_cd_iconveh_internal): Use an indirect
33235 conversion if cd is (iconv_t)(-1).
33236 (mem_iconveh, str_iconveh): Don't fail just because a direct conversion
33239 2007-03-31 Bruno Haible <bruno@clisp.org>
33241 * tests/test-striconveha.c (main): Don't expect "autodetect_jp" to
33242 work on Solaris either. Protect also second use of "autodetect_jp".
33244 2007-03-31 Bruno Haible <bruno@clisp.org>
33246 * m4/frexpl.m4 (gl_FUNC_FREXPL): Set HAVE_DECL_FREXPL to 0 when
33247 the function is not present.
33249 2007-03-31 Bruno Haible <bruno@clisp.org>
33251 * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Set HAVE_DECL_LDEXPL to 0 when
33252 the function is not present.
33254 2007-03-31 Bruno Haible <bruno@clisp.org>
33256 * m4/iconv.m4 (AM_ICONV_LINK): Fix 2007-03-29 patch. Test also against
33257 a bug in HP-UX iconv_open().
33259 2007-03-31 Bruno Haible <bruno@clisp.org>
33261 * MODULES.html.sh (func_module): Don't show gnulib-common.m4.
33262 (Mathematics <math.h>): New section, add fpieee.
33263 (Input/output <stdio.h>): Add fseterr.
33264 (Mathematics <math.h>): New section, add printf-frexp.
33265 (Container data structures): Add sublist.
33266 (Core language properties): Add fpucw, inline.
33267 (Functions for greatest-width integer types <inttypes.h>): Add
33268 imaxabs, imaxdiv, inttypes.
33269 (Mathematics <math.h>): Add frexp, frexpl, isnan-nolibm, isnanl,
33270 isnanl-nolibm, ldexp.
33271 (Mathematics <math.h>): New section, add printf-frexpl.
33272 (Support for systems lacking POSIX:2001): Add fprintf-posix,
33273 printf-posix, snprintf-posix, sprintf-posix, string, search, socklen,
33274 sys_select, sys_socket, vasnprintf-posix, vasprintf-posix,
33275 vfprintf-posix, vprintf-posix, vsnprintf-posix, vsprintf-posix.
33276 (Unicode string functions): Add unistr/u*-mbtoucr.
33277 (Java): Add javacomp-script, javaexec-script.
33278 (C#): Add csharpcomp-script, csharpexec-script.
33279 (Support for building libraries and executables): Add havelib,
33281 (Support for maintaining and releasing projects): Renamed from
33282 'Support for maintaining and release projects'. Add announce-gen.
33284 2007-03-31 Bruno Haible <bruno@clisp.org>
33286 * README: Talk primarily about git.
33287 (git and CVS): Renamed from CVS.
33288 * doc/gnulib.texi (Introduction, Build robot for gnulib): Mention that
33289 gnulib is available through git.
33290 * doc/gnulib-tool.texi (CVS Issues): Mention git and svn as well.
33292 2007-03-30 Bruno Haible <bruno@clisp.org>
33294 * lib/alloca_.h: Change prefix of double-inclusion guard macro to _GL_.
33295 * lib/poll_.h: Likewise.
33296 * lib/stat_.h: Likewise.
33297 * lib/sys_time_.h: Likewise.
33298 * lib/sysexit_.h: Likewise.
33299 * lib/glob_.h: Prefix double-inclusion guard macro with _GL_.
33300 * lib/stdbool_.h: Likewise.
33301 * lib/byteswap_.h: Add double-inclusion guard.
33303 2007-03-30 Sergey Poznyakoff <gray@mirddin.farlep.net>
33305 * lib/sysexit_.h: Prefix double-inclusion guard macro with _GNULIB.
33307 2007-03-30 Karl Berry <karl@gnu.org>
33309 * config/srclist-update: double space after USA in the license
33310 substitution, since that's how it's usually (?) written.
33312 2007-03-30 Paul Eggert <eggert@cs.ucla.edu>
33314 * lib/write-any-file.c (can_write_any_file): Fix else-else bug
33315 reported by Bruno Haible.
33317 2007-03-29 Bruno Haible <bruno@clisp.org>
33319 * m4/iconv.m4 (AM_ICONV_LINK): Require AC_CANONICAL_HOST. Test against
33320 a bug in AIX iconv().
33322 2007-03-29 Bruno Haible <bruno@clisp.org>
33324 * modules/ldexpl-tests: New file.
33325 * tests/test-ldexpl.c: New file.
33327 2007-03-29 Bruno Haible <bruno@clisp.org>
33329 * lib/ldexpl.c: Include fpucw.h.
33330 (ldexpl): Use BEGIN/END_LONG_DOUBLE_ROUNDING. Skip the last unneeded
33332 * modules/ldexpl (Depends-on): Add fpucw.
33334 2007-03-29 Bruno Haible <bruno@clisp.org>
33336 * modules/ldexpl: New file.
33337 * m4/ldexpl.m4: New file.
33338 * lib/math_.h (ldexpl): Define to a replacement if REPLACE_LDEXPL is
33340 * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize also GNULIB_LDEXPL,
33342 * modules/math (Makefile.am): Substitute also GNULIB_LDEXPL,
33344 * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Invoke
33345 gl_FUNC_LDEXPL_WORKS.
33346 * m4/mathl.m4 (gl_FUNC_LONG_DOUBLE_MATH): Remove test for ldexpl.
33347 * modules/mathl (Files): Remove lib/ldexpl.c.
33348 (Depends-on): Add ldexpl.
33350 2007-03-29 Bruno Haible <bruno@clisp.org>
33352 * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Declare frexpl.
33354 2007-03-29 Bruno Haible <bruno@clisp.org>
33356 * tests/test-striconveh.c (main): Don't assume that a direct conversion
33357 between ISO-8859-1 and ISO-8859-2 is possible. Needed for OSF/1, IRIX
33358 and possibly also HP-UX.
33359 * tests/test-striconveha.c (main): Don't expect "autodetect_jp" to
33360 work on AIX, IRIX, HP-UX, OSF/1.
33361 * tests/uniconv/test-u16-conv-from-enc.c (main): Likewise.
33362 * tests/uniconv/test-u16-strconv-from-enc.c (main): Likewise.
33363 * tests/uniconv/test-u32-conv-from-enc.c (main): Likewise.
33364 * tests/uniconv/test-u32-strconv-from-enc.c (main): Likewise.
33365 * tests/uniconv/test-u8-conv-from-enc.c (main): Likewise.
33366 * tests/uniconv/test-u8-strconv-from-enc.c (main): Likewise.
33368 2007-03-29 Bruno Haible <bruno@clisp.org>
33370 * tests/test-stat-time.c: Include <fcntl.h>, not <sys/fcntl.h>.
33372 2007-03-29 Paul Eggert <eggert@cs.ucla.edu>
33374 * lib/acl-internal.h (acl_get_fd, acl_set_fd): undef before defining,
33375 to work around a problem on OSF/1 5.1 reported by Bruno Haible.
33377 2007-03-29 Eric Blake <ebb9@byu.net>
33379 * lib/acl-internal.h: Remove redundant include.
33380 (ACL_NOT_WELL_SUPPORTED): Also filter on EBUSY, returned by
33381 Cygwin when a file is locked.
33383 2007-03-29 Bruno Haible <bruno@clisp.org>
33385 * lib/vasprintf.c [IN_LIBASPRINTF]: Include different specification
33387 * lib/asprintf.c [IN_LIBASPRINTF]: Likewise.
33389 2007-03-29 Paul Eggert <eggert@cs.ucla.edu>
33391 * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Don't bother to
33392 try to remove a parent directory if the child couldn't be removed
33393 (except for the first rmdir, which could fail because the child
33394 doesn't exist). Problem reported by Jeff Blaine in
33395 <http://lists.gnu.org/archive/html/bug-tar/2007-03/msg00014.html>.
33397 2007-03-28 Bruno Haible <bruno@clisp.org>
33399 * lib/striconveh.c (utf8conv_carefully): New function.
33400 (mem_cd_iconveh_internal): Invoke it.
33402 2007-03-28 Bruno Haible <bruno@clisp.org>
33404 * lib/striconveh.c (mem_cd_iconveh_internal): Use u8_mbtoucr instead
33405 of u8_mbtouc in order to distinguish invalid and incomplete UTF-8
33407 * modules/striconveh (Depends-on): Add unistr/u8-mbtoucr. Replace
33408 utf8-ucs4 with unistr/u8-mbtouc. Replace ucs4-utf8 with
33411 2007-03-28 Bruno Haible <bruno@clisp.org>
33413 * modules/unistr/u8-mbtoucr: New file.
33414 * lib/unistr/u8-mbtoucr.c: New file.
33415 * modules/unistr/u16-mbtoucr: New file.
33416 * lib/unistr/u16-mbtoucr.c: New file.
33417 * modules/unistr/u16-mbtoucr: New file.
33418 * lib/unistr/u16-mbtoucr.c: New file.
33419 * lib/unistr.h (u8_mbtoucr, u16_mbtoucr, u32_mbtoucr): New declarations.
33421 2007-03-27 Simon Josefsson <simon@josefsson.org>
33422 Bruno Haible <bruno@clisp.org>
33424 * m4/vasprintf.m4: Convert AC_SUBST into shell variable for
33425 REPLACE_VASPRINTF. Set HAVE_VASPRINTF. Add
33426 AC_REQUIRE([gl_STDIO_H_DEFAULTS]).
33428 * m4/stdio_h.m4: Add stubs for vasprintf too.
33430 * modules/stdio: Support vasprintf in sed command.
33432 * modules/vasprintf: Depend on stdio for prototypes. Remove
33433 vasprintf.h. Add stdio module indicator.
33435 * lib/stdio_.h: Declare asprintf and vasprintf, based on
33438 * lib/vasprintf.h: File removed.
33440 * lib/asprintf.c: Use stdio.h instead of vasprintf.h.
33441 * lib/vasprintf.c: Ditto.
33442 * lib/xvasprintf.c: Ditto.
33443 * tests/test-vasprintf-posix.c: Ditto.
33444 * tests/test-vasprintf.c: Ditto.
33446 2007-03-27 Bruno Haible <bruno@clisp.org>
33448 Make vasnprintf multithread-safe.
33449 * lib/vasnprintf.c (decimal_point_char): New function.
33450 (VASNPRINTF): Use it.
33451 Suggested by Simon Josefsson.
33453 2007-03-27 Eric Blake <ebb9@byu.net>
33455 Support sub-second birthtime on cygwin.
33456 * m4/stat-time.m4 (gl_STAT_BIRTHTIME): Also check for st_birthtim.
33457 * lib/stat-time.h (STAT_TIMESPEC): Adjust comments.
33458 (get_stat_birthtime): Also work with st_birthtim.
33460 2007-03-27 Paul Eggert <eggert@cs.ucla.edu>
33462 * lib/stat-time.h (USE_BIRTHTIME): Remove.
33463 (get_stat_atime_ns, get_stat_ctime_ns, get_stat_mtime_ns):
33464 (get_stat_birthtime_ns): Do not try to use "spare" fields.
33465 (get_stat_birthtime_ns): Simplify compile-time tests.
33466 (get_stat_birthtime): Change the API to look like
33467 get_stat_mtime etc., except return a negative tv_nsec on error.
33468 * m4/stat-time.m4 (gl_STAT_TIME, gl_STAT_BIRTHTIME):
33469 Don't check for "spare" fields.
33470 (gl_STAT_BIRTHTIME): Don't check for struct stat.st_birthtimespec.tv_sec
33471 or for struct stat.st_birthtime, as these tests aren't used.
33472 * tests/test-stat-time.c (test_birthtime): Adjust to new API.
33474 2007-03-27 Bruno Haible <bruno@clisp.org>
33476 * lib/stat-time.h: Include <sys/stat.h>.
33478 2007-03-27 James Youngman <jay@gnu.org>
33480 * lib/stat-time.h (get_stat_birthtime): New function for
33481 retrieving st_birthtime as provided by UFS2 (hence *BSD).
33482 * m4/stat-time.m4 (gl_STAT_BIRTHTIME): Probe for st_birthtime
33484 * modules/stat-time (configure.ac): call gl_STAT_BIRTHTIME.
33485 * modules/stat-time-test: New file.
33486 * tests/test-stat-time.c: New test, devised by Bruno Haible.
33488 2007-03-26 Bruno Haible <bruno@clisp.org>
33490 Better support of signalling NaNs.
33491 * lib/atanl.c: Include isnanl.h.
33492 (atanl): Perform test for NaN at the beginning of the function and
33493 through a call to isnanl.
33494 * lib/cosl.c: Include isnanl.h.
33495 (cosl): Perform test for NaN at the beginning of the function and
33496 through a call to isnanl.
33497 * lib/ldexpl.c: Include isnanl.h.
33498 (ldexpl): Perform test for NaN through a call to isnanl.
33499 * lib/logl.c: Include isnanl.h.
33500 (logl): Perform test for NaN at the beginning of the function and
33501 through a call to isnanl.
33502 * lib/sinl.c: Include isnanl.h.
33503 (sinl): Perform test for NaN at the beginning of the function and
33504 through a call to isnanl.
33505 * lib/sqrtl.c: Include isnanl.h.
33506 (sqrtl): Perform test for NaN at the beginning of the function and
33507 through a call to isnanl.
33508 * lib/tanl.c: Include isnanl.h.
33509 (tanl): Perform test for NaN at the beginning of the function and
33510 through a call to isnanl.
33511 * lib/trigl.c (ieee754_rem_pio2l): Remove test for NaN.
33512 * modules/mathl (Depends-on): Add isnanl.
33514 2007-03-26 Eric Blake <ebb9@byu.net>
33516 * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): Fix
33517 regression in logic sense of previous patch.
33519 2007-03-26 Bruno Haible <bruno@clisp.org>
33521 * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): Don't use
33522 unportable shell command "if ! ...".
33523 Reported by Ralf Wildenhues.
33525 2007-03-25 Bruno Haible <bruno@clisp.org>
33527 * lib/sysexit_,h: If HAVE_SYSEXITS_H is defined, include the original
33528 <sysexits.h> file, and only add EX_CONFIG.
33529 * m4/sysexits.m4 (gl_SYSEXITS): If <sysexits.h> exists, check its
33530 absolute file name and whether it is sufficient. Substitute also
33531 HAVE_SYSEXITS_H and ABSOLUTE_SYSEXITS_H.
33532 * modules/sysexits (Makefile.am): Substitute HAVE_SYSEXITS_H and
33533 ABSOLUTE_SYSEXITS_H into sysexits.h.
33535 2007-03-25 Bruno Haible <bruno@clisp.org>
33537 * lib/getaddrinfo.c (getaddrinfo): Don't access hints->ai_flags when
33540 2007-03-25 Bruno Haible <bruno@clisp.org>
33542 * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Add a cast.
33543 * lib/uniconv/u8-strconv-to-enc.c (u8_strconv_to_encoding): Likewise.
33545 2007-03-25 Bruno Haible <bruno@clisp.org>
33547 * lib/vasnprintf.c: Include langinfo.h.
33548 (VASNPRINTF): Prefer nl_langinfo over localeconv, since it's more
33550 * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): New macro.
33551 * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke it.
33552 * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
33553 * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
33554 * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
33555 * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
33556 * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
33557 * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX: Likewise.
33558 * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
33559 Reported by Simon Josefsson.
33561 2007-03-25 Bruno Haible <bruno@clisp.org>
33563 * lib/printf-parse.c [!IN_LIBINTL]: Include <stdint.h>, for intmax_t.
33564 (PRINTF_PARSE): Make the support for size specifier 'j' unconditional.
33565 * modules/vasnprintf (Depends-on): Add stdint.
33567 2007-03-25 Bruno Haible <bruno@clisp.org>
33569 * modules/fpieee: New file.
33570 * m4/fpieee.m4: New file.
33571 * modules/isnan-nolibm (Depends-on): Add fpieee.
33572 * modules/isnanl-nolibm (Depends-on): Add fpieee.
33573 * modules/isnanl (Depends-on): Add fpieee.
33575 2007-03-25 Bruno Haible <bruno@clisp.org>
33577 * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Test also finite numbers.
33579 2007-03-25 Bruno Haible <bruno@clisp.org>
33581 Avoid test failures on IRIX 6.5.
33582 * tests/test-frexpl.c (MIN_NORMAL_EXP): New macro.
33584 * tests/test-printf-frexpl.c (MIN_NORMAL_EXP, MIN_SUBNORMAL_EXP): New
33588 2007-03-25 Bruno Haible <bruno@clisp.org>
33590 * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): New macro.
33591 (gl_FUNC_FREXPL): Invoke it. Set REPLACE_FREXPL to 1 if it frexpl
33592 exists but doesn't work.
33593 * lib/math_.h (frexpl): Define as a replacement macro if REPLACE_FREXPL
33594 is set. Don't provide a prototype if REPLACE_FREXPL is not set.
33595 * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_FREXPL.
33596 * modules/math (Makefile.am) Substibute also REPLACE_FREXPL into math.h.
33598 2007-03-25 Bruno Haible <bruno@clisp.org>
33600 * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Add check whether frexp(inf)
33601 returns inf. Needed on IRIX 6.5.
33603 2007-03-25 Bruno Haible <bruno@clisp.org>
33605 * tests/test-frexpl.c: Include isnanl-nolibm.h.
33606 (main): Use isnanl instead of x != x idiom.
33607 * modules/frexpl-tests (Depends-on): Add isnanl-nolibm.
33609 * tests/test-frexp.c: Include isnan.h.
33610 (main): Use isnan instead of x != x idiom.
33611 * modules/frexp-tests (Depends-on): Add isnan-nolibm.
33613 2007-03-25 Bruno Haible <bruno@clisp.org>
33615 * tests/test-frexp.c (NaN): New function/macro.
33616 (main): Use it instead of 0.0 / 0.0.
33617 * tests/test-isnan.c (NaN): New function/macro.
33618 (main): Use it instead of 0.0 / 0.0.
33619 * tests/test-vasnprintf-posix.c (NaN): New function/macro.
33620 (test_function): Use it instead of 0.0 / 0.0.
33621 * tests/test-vasprintf-posix.c (NaN): New function/macro.
33622 (test_function): Use it instead of 0.0 / 0.0.
33623 * tests/test-snprintf-posix.h (NaN): New function/macro.
33624 (test_function): Use it instead of 0.0 / 0.0.
33625 * tests/test-sprintf-posix.h (NaN): New function/macro.
33626 (test_function): Use it instead of 0.0 / 0.0.
33627 * tests/test-fprintf-posix.h (NaN): New function/macro.
33628 (test_function): Use it instead of 0.0 / 0.0.
33629 * tests/test-printf-posix.h (NaN): New function/macro.
33630 (test_function): Use it instead of 0.0 / 0.0.
33632 * lib/isnan.c (FUNC): Work around a DEC C compiler bug.
33634 2007-03-25 Bruno Haible <bruno@clisp.org>
33636 * lib/glob_.h: Include <sys/stat.h>. Avoids warnings on AIX 5.1.
33638 2007-03-25 Bruno Haible <bruno@clisp.org>
33640 * lib/regexec.c (merge_state_with_log): Make static.
33642 2007-03-25 Bruno Haible <bruno@clisp.org>
33644 * lib/trigl.c (kernel_rem_pio2): Make static.
33646 2007-03-25 Bruno Haible <bruno@clisp.org>
33648 * lib/sincosl.c (sincosl_table): Make static.
33650 2007-03-25 Bruno Haible <bruno@clisp.org>
33652 * lib/argp.h (__restrict): Define to empty, rather than to 'restrict',
33653 if the compiler does not support C99.
33655 2007-03-25 Bruno Haible <bruno@clisp.org>
33657 * modules/time (Makefile.am): Ensure all rule action lines start with a
33660 2007-03-24 Bruno Haible <bruno@clisp.org>
33662 * modules/tsearch-tests: New file.
33663 * tests/test-tsearch.sh: New file.
33664 * tests/test-tsearch.c: New file, mostly copied from glibc.
33666 * modules/search-tests: New file.
33667 * tests/test-search.c: New file.
33669 * modules/search: New file.
33670 * lib/search_.h: New file, incorporating lib/tsearch.h.
33671 * m4/search_h.m4: New file.
33672 * lib/tsearch.h: Remove file.
33673 * lib/tsearch.c: Include search.h instead of tsearch.h.
33674 * m4/tsearch.m4 (gl_FUNC_TSEARCH): Require gl_SEARCH_H_DEFAULTS. Set
33676 * modules/tsearch (Files): Remove lib/tsearch.h.
33677 (Depends-on): Add search.
33678 (configure.ac): Invoke gl_SEARCH_MODULE_INDICATOR.
33679 (Include): Change tsearch.h into search.h.
33681 2007-03-24 Bruno Haible <bruno@clisp.org>
33683 * modules/fpucw: New file.
33684 * lib/fpucw.h: New file.
33685 * lib/frexp.c: Include fpucw.h.
33686 (DECL_ROUNDING, BEGIN_ROUNDING, END_ROUNDING): New macros.
33688 * lib/printf-frexp.c: Include fpucw.h.
33689 (DECL_ROUNDING, BEGIN_ROUNDING, END_ROUNDING): New macros.
33691 * lib/vasnprintf.c: Include fpucw.h.
33692 (VASNPRINTF): Invoke BEGIN/END_LONG_DOUBLE_ROUNDING around the
33693 'long double' calculations.
33694 * tests/test-frexpl.c: Include fpucw.h.
33695 (main): Invoke BEGIN_LONG_DOUBLE_ROUNDING.
33696 * tests/test-printf-frexpl.c: Include fpucw.h.
33697 (main): Invoke BEGIN_LONG_DOUBLE_ROUNDING.
33698 * modules/frexpl (Depends-on): Add fpucw.
33699 * modules/printf-frexpl (Depends-on): Likewise.
33700 * modules/fprintf-posix (Depends-on): Likewise.
33701 * modules/snprintf-posix (Depends-on): Likewise.
33702 * modules/sprintf-posix (Depends-on): Likewise.
33703 * modules/vasnprintf-posix (Depends-on): Likewise.
33704 * modules/vasprintf-posix (Depends-on): Likewise.
33705 * modules/vfprintf-posix (Depends-on): Likewise.
33706 * modules/vsnprintf-posix (Depends-on): Likewise.
33707 * modules/vsprintf-posix (Depends-on): Likewise.
33708 * modules/frexpl-tests (Depends-on): Likewise.
33709 * modules/printf-frexpl-tests (Depends-on): Likewise.
33711 2007-03-24 Bruno Haible <bruno@clisp.org>
33713 * lib/float+.h: New file.
33714 * lib/isnan.c: Include float+.h.
33716 (FUNC): Compare only SIZE bytes of the value.
33717 * lib/vasnprintf.c: Include float+.h.
33718 (VASNPRINTF): When comparing agains +0.0L or +0.0, compare only
33719 SIZEOF_LDBL or SIZEOF_DBL bytes.
33720 * modules/isnan-nolibm (Files): Add lib/float+.h.
33721 * modules/isnanl-nolibm (Files): Add lib/float+.h.
33722 * modules/isnanl (Files): Add lib/float+.h.
33723 * modules/vasnprintf (Files): Add lib/float+.h.
33725 2007-03-24 Bruno Haible <bruno@clisp.org>
33727 * lib/vasnprintf.c [!HAVE_LONG_DOUBLE]: Include printf-frexp.h. Don't
33728 include isnanl-nolibm.h.
33730 2007-03-24 Bruno Haible <bruno@clisp.org>
33732 * tests/test-read-file.c (main): Don't produce spurious output for
33733 expected situations. Make the test fail if it encountered unexpected
33736 2007-03-24 Bruno Haible <bruno@clisp.org>
33738 * m4/locale-fr.m4 (gt_LOCALE_FR): Remove the special-casing of NetBSD,
33739 since its fr_FR.ISO8859-1 locale wouldn't pass the tests.
33741 2007-03-24 Bruno Haible <bruno@clisp.org>
33743 * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Fix last change.
33745 2007-03-24 Bruno Haible <bruno@clisp.org>
33747 * modules/unistr/base (Depends-on): Remove utf8-ucs4-unsafe,
33748 utf16-ucs4-unsafe, utf8-ucs4, utf16-ucs4, ucs4-utf8, ucs4-utf16.
33750 * modules/unistr/u8-mbtouc: Add source files from module utf8-ucs4.
33751 * modules/utf8-ucs4: Turn into a symbolic link to module
33754 * modules/unistr/u8-mbtouc-unsafe: Add source files from module
33756 * modules/utf8-ucs4-unsafe: Turn into a symbolic link to module
33757 unistr/u8-mbtouc-unsafe.
33759 * modules/unistr/u16-mbtouc: Add source files from module utf16-ucs4.
33760 * modules/utf16-ucs4: Turn into a symbolic link to module
33763 * modules/unistr/u16-mbtouc-unsafe: Add source files from module
33765 * modules/utf16-ucs4-unsafe: Turn into a symbolic link to module
33766 unistr/u16-mbtouc-unsafe.
33768 * modules/unistr/u8-uctomb: Add source files from module utf4-utf8.
33769 * modules/ucs4-utf8: Turn into a symbolic link to module
33772 * modules/unistr/u16-uctomb: Add source files from module utf4-utf16.
33773 * modules/ucs4-utf16: Turn into a symbolic link to module
33776 2007-03-24 Bruno Haible <bruno@clisp.org>
33778 * lib/unistr/u8-mbtouc-aux.c: Renamed from lib/unistr/utf8-ucs4.c.
33779 Enable the function only if HAVE_INLINE.
33780 * lib/unistr/u8-mbtouc-unsafe-aux.c: Renamed from
33781 lib/unistr/utf8-ucs4-unsafe.c. Enable the function only if HAVE_INLINE.
33782 * lib/unistr/u16-mbtouc-aux.c: Renamed from lib/unistr/utf16-ucs4.c.
33783 Enable the function only if HAVE_INLINE.
33784 * lib/unistr/u16-mbtouc-unsafe-aux.c: Renamed from
33785 lib/unistr/utf16-ucs4-unsafe.c. Enable the function only if HAVE_INLINE.
33786 * lib/unistr/u8-uctomb-aux.c: Renamed from lib/unistr/ucs4-utf8.c.
33787 Enable the function only if HAVE_INLINE.
33788 * lib/unistr/u16-uctomb-aux.c: Renamed from lib/unistr/ucs4-utf16.c.
33789 Enable the function only if HAVE_INLINE.
33790 * modules/utf8-ucs4: Update.
33791 * modules/utf8-ucs4-unsafe: Update.
33792 * modules/utf16-ucs4: Update.
33793 * modules/utf16-ucs4-unsafe: Update.
33794 * modules/ucs4-utf8: Update.
33795 * modules/ucs4-utf16: Update.
33797 2007-03-24 Bruno Haible <bruno@clisp.org>
33799 * lib/utf8-ucs4.h: Remove file.
33800 * lib/utf8-ucs4-unsafe.h: Remove file.
33801 * lib/utf16-ucs4.h: Remove file.
33802 * lib/utf16-ucs4-unsafe.h: Remove file.
33803 * lib/ucs4-utf8.h: Remove file.
33804 * lib/ucs4-utf16.h: Remove file.
33805 * lib/unistr.h: Include their previous contents.
33806 * m4/utf-ucs4.m4: Remove file.
33807 * m4/ucs4-utf.m4: Remove file.
33808 * modules/utf8-ucs4 (Files): Remove lib/utf8-ucs4.h.
33809 (Depends-on): Add unistr/base.
33810 (configure.ac): Remove gl_UTF_UCS4.
33811 (Makefile.am): Update.
33812 (Include): Change to unistr.h.
33813 * modules/utf8-ucs4-unsafe (Files): Remove lib/utf8-ucs4-unsafe.h.
33814 (Depends-on): Add unistr/base.
33815 (configure.ac): Remove gl_UTF_UCS4.
33816 (Makefile.am): Update.
33817 (Include): Change to unistr.h.
33818 * modules/utf16-ucs4 (Files): Remove lib/utf16-ucs4.h.
33819 (Depends-on): Add unistr/base.
33820 (configure.ac): Remove gl_UTF_UCS4.
33821 (Makefile.am): Update.
33822 (Include): Change to unistr.h.
33823 * modules/utf16-ucs4-unsafe (Files): Remove lib/utf16-ucs4-unsafe.h.
33824 (Depends-on): Add unistr/base.
33825 (configure.ac): Remove gl_UTF_UCS4.
33826 (Makefile.am): Update.
33827 (Include): Change to unistr.h.
33828 * modules/ucs4-utf8 (Files): Remove lib/ucs4-utf8.h.
33829 (Depends-on): Add unistr/base.
33830 (configure.ac): Remove gl_UCS4_UTF.
33831 (Makefile.am): Update.
33832 (Include): Change to unistr.h.
33833 * modules/ucs4-utf16 (Files): Remove lib/ucs4-utf16.h.
33834 (Depends-on): Add unistr/base.
33835 (configure.ac): Remove gl_UCS4_UTF.
33836 (Makefile.am): Update.
33837 (Include): Change to unistr.h.
33838 * lib/unistr/utf8-ucs4.c: Include unistr.h instead of utf8-ucs4.h.
33839 * lib/unistr/utf8-ucs4-unsafe.c: Include unistr.h instead of
33840 utf8-ucs4-unsafe.h.
33841 * lib/unistr/utf16-ucs4.c: Include unistr.h instead of utf16-ucs4.h.
33842 * lib/unistr/utf16-ucs4-unsafe.c: Include unistr.h instead of
33843 utf16-ucs4-unsafe.h.
33844 * lib/unistr/ucs4-utf8.c: Include unistr.h instead of ucs4-utf8.h.
33845 * lib/unistr/ucs4-utf16.c: Include unistr.h instead of ucs4-utf16.h.
33846 * lib/unistr/u8-chr.c: Don't include ucs4-utf8.h.
33847 * lib/unistr/u8-strchr.c: Likewise.
33848 * lib/unistr/u8-strrchr.c: Likewise.
33849 * lib/unistr/u16-chr.c: Don't include ucs4-utf16.h.
33850 * lib/unistr/u16-strchr.c: Likewise.
33851 * lib/unistr/u16-strrchr.c: Likewise.
33852 * lib/striconveh.c: Update.
33853 * lib/linebreak.c: Update.
33855 2007-03-24 Bruno Haible <bruno@clisp.org>
33857 * lib/argp-help.c (fill_in_uparams, canon_doc_option): Cast the
33858 arguments of isspace, isalpha, isalnum, isdigit to 'unsigned char'.
33860 2007-03-22 Bruno Haible <bruno@clisp.org>
33862 * lib/strptime.c (__strptime_internal): Use ANSI C syntax.
33864 2007-03-23 Paul Eggert <eggert@cs.ucla.edu>
33866 * MODULES.html.sh (File system functions): New module write-any-file.
33867 * modules/write-any-file, lib/write-any-file.c, lib/write-any-file.h:
33868 * m4/write-any-file.m4: New files.
33870 2007-03-23 Eric Blake <ebb9@byu.net>
33872 * gnulib-tool: Rearrange space-tab sequences, since some editors
33875 2007-03-23 Eric Blake <ebb9@byu.net>
33877 * lib/version-etc.c (version_etc_va): Update license wording to
33878 be more concise. Recommended by Richard Stallman.
33880 2007-03-22 Bruno Haible <bruno@clisp.org>
33882 * lib/poll.c (MSG_PEEK): New fallback definition.
33884 2007-03-22 Bruno Haible <bruno@clisp.org>
33886 * modules/sys_socket-tests (configure.ac): Check for shutdown function.
33887 * tests/test-sys_socket.c (a): Test only if shutdown() exists.
33889 Fixes a compilation error on BeOS.
33891 2007-03-22 Bruno Haible <bruno@clisp.org>
33893 * modules/frexpl-tests: New file.
33894 * tests/test-frexpl.c: New file.
33896 * modules/frexpl: New file.
33897 * m4/frexpl.m4: New file.
33898 * modules/math (Makefile.am): Also substitute GNULIB_FREXPL into math.h.
33899 * lib/math_.h (frexpl): Test GNULIB_FREXPL instead of GNULIB_MATHL.
33900 * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FREXPL.
33901 * modules/mathl (Files): Remove lib/frexpl.c, lib/frexp.c.
33902 (Depends-on): Add frexpl. Remove isnanl-nolibm.
33903 * m4/mathl.m4 (gl_FUNC_LONG_DOUBLE_MATH): Don't test for frexpl.
33905 2007-03-22 Bruno Haible <bruno@clisp.org>
33907 * lib/frexpl.c: Share code with lib/frexp.c.
33908 * modules/mathl (Files): Add lib/frexp.c.
33909 (Depends-on): Add isnanl-nolibm.
33911 2007-03-22 Bruno Haible <bruno@clisp.org>
33913 * modules/printf-frexp (Files): Add m4/frexp.m4.
33914 * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Define HAVE_FREXP_IN_LIBC
33915 only if the found frexp function actually works.
33917 2007-03-22 Bruno Haible <bruno@clisp.org>
33919 * lib/frexp.c: Remove older implementation that uses divisions.
33921 2007-03-21 Bruno Haible <bruno@clisp.org>
33923 * modules/frexp-tests: New file.
33924 * tests/test-frexp.c: New file.
33926 * modules/frexp: New file.
33927 * lib/frexp.c: New file.
33928 * m4/frexp.m4: New file.
33929 * lib/math_.h (frexp): New declaration.
33930 * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Also initialize GNULIB_FREXP and
33932 * modules/math (math.h): Also substitute GNULIB_FREXP, REPLACE_FREXP.
33934 2007-03-21 Bruno Haible <bruno@clisp.org>
33936 * modules/isnanl-tests: New file.
33937 * tests/test-isnanl.c: New file.
33939 * modules/isnanl: New file.
33940 * lib/isnanl.h: New file.
33941 * m4/isnanl.m4 (gl_FUNC_ISNANL): New macro.
33942 (gl_FUNC_ISNANL_NO_LIBM): Invoke gl_HAVE_ISNANL_NO_LIBM,
33943 gl_FUNC_ISNANL_WORKS.
33944 (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM, gl_FUNC_ISNANL_WORKS):
33947 2007-03-21 Bruno Haible <bruno@clisp.org>
33949 * modules/isnanl-nolibm (Files): Add lib/isnanl-nolibm.h, remove
33952 * lib/isnanl-nolibm.h: Renamed from lib/isnanl.h.
33953 * lib/vasnprintf.c: Update.
33954 * modules/isnanl-nolibm-tests (Files): Add tests/test-isnanl-nolibm.c,
33955 tests/test-isnanl.h, remove tests/test-isnanl.c.
33956 (Makefile.am): Update.
33957 * tests/test-isnanl-nolibm.c: New file.
33958 * tests/test-isnanl.h: New file.
33959 * tests/test-isnanl.c: Remove file.
33961 2007-03-21 Jim Meyering <jim@meyering.net>
33963 When trying to open ".", treat ESTALE like EACCES.
33964 * lib/savewd.c (savewd_save): Resort to forking not just upon
33965 failure with EACCES, but also when errno is ESTALE.
33967 2007-03-20 Bruno Haible <bruno@clisp.org>
33969 * lib/string_.h (strndup): Enable declaration also if HAVE_STRNDUP.
33970 Needed on AIX 5.1. Reported by Matthew Woehlke.
33972 2007-03-19 Paul Eggert <eggert@cs.ucla.edu>
33974 Suggestions by Bruno Haible:
33975 * lib/acl-internal.h: Include "gettext.h" rather than rolling
33977 (ACL_NOT_WELL_SUPPORTED): Parenthesize arg when used.
33978 * modules/acl (Depends-on): Add gettext.
33980 2007-03-19 Bruno Haible <bruno@clisp.org>
33982 * modules/iconvme: Remove file.
33983 * lib/iconvme.h: Remove file.
33984 * lib/iconvme.c: Remove file.
33985 * m4/iconvme.m4: Remove file.
33987 2007-03-19 Bruno Haible <bruno@clisp.org>
33989 * doc/relocatable-maint.texi: Break long shell script line.
33990 Suggested by Thien-Thi Nguyen <ttn@gnuvola.org>.
33992 2007-03-19 Paul Eggert <eggert@cs.ucla.edu>
33994 Add limited support for Solaris 10 ZFS-style ACLs: just enough to
33995 handle file_has_acl.
33996 * lib/acl-internal.h, lib/acl_entries.c, lib/file-has-acl.c: New files.
33997 * lib/acl.c: Move header inclusions and related macro defns into
33998 lib/acl-internal.h.
33999 (S_ISLNK): Remove defn, since that's now done for us.
34000 (file_has_acl): Move to lib/file-has-acl.c.
34001 Call acl_trivial if available. This is the crucial part of the fix.
34002 (acl_entries): Move to lib/acl_entries.c. Now extern, since it's
34003 shared within the library. Rewrite a bit, partly to make it compatible
34004 with the GNU coding style.
34005 * m4/acl.m4 (AC_FUNC_ACL): Add AC_LIBOBJ([file-has-acl]).
34006 Remove unnecessary double-quotes.
34007 Don't test for acl_to_text; the build will catch that.
34008 Replace acl_entries if it doesn't exist and it is needed.
34009 Check for -lsec and acl_trivial (as used on Solaris 10).
34010 * modules/acl (Files): Add lib/acl-internal.h, lib/acl_entries.c,
34011 lib/file-has-acl.c.
34012 (Depends-on): Add sys_stat, for S_ISLNK.
34014 2007-03-19 Ben Pfaff <blp@gnu.org>
34016 * doc/gnulib.texi: Fix typos.
34017 Suggested by Thien-Thi Nguyen <ttn@gnuvola.org>.
34019 2007-03-19 Paul Eggert <eggert@cs.ucla.edu>
34021 * lib/getcwd.c (__getcwd): Remove redundant comparison of buf to NULL.
34022 If size is zero here, buf must be zero.
34024 2007-03-19 Simon Josefsson <simon@josefsson.org>
34026 * des.c: Remove weak_keys_chksum. Reported by Bruno Haible
34029 2007-03-18 Bruno Haible <bruno@clisp.org>
34031 * lib/vasnprintf.c (VASNPRINTF): Undo first part of last patch.
34032 Suggested by Eric Blake.
34034 2007-03-18 Ben Pfaff <blp@gnu.org>
34036 * doc/relocatable.texi: Recommend using as prefix a directory
34037 that does not exist and will never be created. Based on
34038 discussion with Bruno Haible, Ralf Wildenhues, Matthew Woehlke,
34041 2007-03-17 Bruno Haible <bruno@clisp.org>
34043 * lib/fchownat.c: Include lchown.h.
34045 2007-03-17 Bruno Haible <bruno@clisp.org>
34047 Fix endless loop when the given allocated size was > INT_MAX.
34048 * lib/vasnprintf.c (EOVERFLOW): New fallback definition.
34049 (VASNPRINTF): Fail with EOVERFLOW when the given allocated size is
34050 larger than INT_MAX, or when it grow to a value larger than INT_MAX.
34051 * lib/vsprintf.c (vsprintf): Don't pass a size > INT_MAX to vasnprintf.
34052 * lib/sprintf.c (sprintf): Likewise.
34054 2007-03-17 Bruno Haible <bruno@clisp.org>
34056 * tests/test-argp-2.sh (func_compare): Output a context diff.
34058 2007-03-17 Bruno Haible <bruno@clisp.org>
34060 * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Check also the
34061 locale's decimal-point character.
34063 2007-03-17 Bruno Haible <bruno@clisp.org>
34065 * lib/vasnprintf.c (VASNPRINTF): Clear out the memory used for arg_mem
34066 before comparing it. Needed because on some platforms (e.g. x86) a
34067 'long double' occupies less bytes than sizeof (long double).
34069 2007-03-17 Bruno Haible <bruno@clisp.org>
34071 * tests/test-crc.c (main): Make printf statements 64-bit clean.
34072 * tests/test-gc-pbkdf2-sha1.c (main): Likewise.
34073 * tests/test-getaddrinfo.c (simple): Likewise.
34074 * tests/test-read-file.c (main): Likewise.
34076 2007-03-17 Bruno Haible <bruno@clisp.org>
34078 * tests/test-dirname.c (main): Make printf statements 64-bit clean.
34080 2007-03-17 Bruno Haible <bruno@clisp.org>
34082 * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Remove
34085 2007-03-17 Bruno Haible <bruno@clisp.org>
34087 * tests/test-c-strcasecmp.c: Include c-strcase.h.
34088 * tests/test-c-strncasecmp.c: Likewise.
34090 2007-03-17 Bruno Haible <bruno@clisp.org>
34092 * modules/stdlib (Depends-on): Add unistd.
34093 * lib/stdlib_.h: Include <unistd.h> if mkstemp is desired.
34094 Needed for MacOS X 10.3.
34096 2007-03-17 Bruno Haible <bruno@clisp.org>
34098 * lib/unistr/u-strdup.h: Include <stdlib.h>.
34100 2007-03-17 Bruno Haible <bruno@clisp.org>
34102 * lib/unistr/u-cpy-alloc.h: Include <stdlib.h>.
34104 2007-03-17 Bruno Haible <bruno@clisp.org>
34106 * gnulib-tool (func_import): Update .cvsignore and .gitignore files
34107 to reflect files copied from gnulib (with or without modifications).
34108 Suggested by Jim Meyering.
34110 2007-03-17 Eric Blake <ebb9@byu.net>
34112 * NEWS: Document stdlib change from 2007-02-18.
34114 2007-03-17 Jim Meyering <jim@meyering.net>
34116 Detect use of AC_CONFIG_AUX_DIR also when its argument is quoted.
34117 * build-aux/bootstrap: Put ""s around use of $build_aux, in case
34118 someone uses a name containing shell meta-characters.
34119 Reported by Alfred M. Szmidt.
34121 * build-aux/bootstrap: Don't use \> in grep regexp. For HP-UX.
34123 2007-03-16 Alfred M. Szmidt <ams@gnu.org>
34125 * build-aux/bootstrap (with_gettext): New variable. Run autopoint
34126 and copy gettext configuration files only if configure.ac contains
34127 a use of AM_GNU_GETTEXT_VERSION.
34129 2007-03-16 Alfred M. Szmidt <ams@gnu.org>
34131 * build-aux/bootstrap (gnulib_name): New variable.
34132 (gnulib_tool_options): Use it.
34134 2007-03-13 Simon Josefsson <simon@josefsson.org>
34136 * tests/test-des.c: Use new namespace.
34138 2007-03-15 Bruno Haible <bruno@clisp.org>
34140 * lib/dummy.c (gl_dummy_symbol): Renamed from 'dummy'.
34141 Reported by James Youngman <jay@gnu.org>.
34143 2007-03-15 Bruno Haible <bruno@clisp.org>
34145 * lib/glob.c (glob): Add 'restrict' so that prototype matches the
34146 declared prototype. Needed with cc on OSF/1 5.1.
34148 2007-03-15 Bruno Haible <bruno@clisp.org>
34150 * lib/gl_list.h (gl_listelement_dispose_fn): New type.
34151 (gl_list_create_empty, gl_list_create): Add dispose_fn argument.
34152 (struct gl_list_implementation): Add dispose_fn argument to the
34153 'create_empty', 'create' methods.
34154 (struct gl_list_impl_base): Add field 'dispose_fn'.
34155 * lib/gl_list.c (gl_list_create_empty, gl_list_create): Add dispose_fn
34157 * lib/gl_array_list.c (gl_array_create_empty, gl_array_create): Add
34158 dispose_fn argument.
34159 (gl_array_remove_node, gl_array_remove_at, gl_array_list_free): Call
34160 dispose_fn on the dropped values.
34161 * lib/gl_carray_list.c (gl_carray_create_empty, gl_carray_create): Add
34162 dispose_fn argument.
34163 (gl_carray_remove_at, gl_carray_list_free): Call dispose_fn on the
34165 * lib/gl_anyavltree_list2.h (gl_tree_create): Add dispose_fn argument.
34166 (gl_tree_remove_node): Call dispose_fn on the dropped value.
34167 * lib/gl_anyrbtree_list2.h (gl_tree_create): Add dispose_fn argument.
34168 (gl_tree_remove_node): Call dispose_fn on the dropped value.
34169 * lib/gl_anytree_list2.h (gl_tree_create_empty): Add dispose_fn
34171 (gl_tree_list_free): Call dispose_fn on the dropped values.
34172 * lib/gl_anytreehash_list2.h (gl_tree_list_free): Call dispose_fn on
34173 the dropped values.
34174 * lib/gl_anylinked_list2.h (gl_linked_create_empty, gl_linked_create):
34175 Add dispose_fn argument.
34176 (gl_linked_remove_node, gl_linked_remove_at, gl_linked_list_free):
34177 Call dispose_fn on the dropped values.
34178 * lib/gl_sublist.c (gl_sublist_create_empty, gl_sublist_create_fill):
34179 Add dispose_fn argument.
34180 (gl_sublist_create): Initialize the 'dispose_fn' field.
34181 * lib/clean-temp.c (create_temp_dir, register_fd): Update.
34182 * tests/test-array_list.c (main): Update.
34183 * tests/test-carray_list.c (main): Update.
34184 * tests/test-avltree_list.c (main): Update.
34185 * tests/test-rbtree_list.c (main): Update.
34186 * tests/test-avltreehash_list.c (main): Update.
34187 * tests/test-rbtreehash_list.c (main): Update.
34188 * tests/test-linked_list.c (main): Update.
34189 * tests/test-linkedhash_list.c (main): Update.
34190 * tests/test-array_oset.c (main): Update.
34192 2007-03-15 Bruno Haible <bruno@clisp.org>
34194 * lib/gl_oset.h (gl_setelement_dispose_fn): New type.
34195 (gl_oset_create_empty): Add dispose_fn argument.
34196 (struct gl_oset_implementation): Add dispose_fn argument to
34197 'create_empty' method.
34198 (struct gl_oset_impl_base): Add dispose_fn field.
34199 * lib/gl_oset.c (gl_oset_create_empty): Add dispose_fn argument.
34200 * lib/gl_array_oset.c (gl_array_create_empty): Add dispose_fn argument.
34201 (gl_array_remove_at, gl_array_free): Call dispose_fn on the dropped
34203 * lib/gl_anytree_oset.h (gl_tree_create_empty): Add dispose_fn argument.
34204 (gl_tree_oset_free): Call dispose_fn on the dropped values.
34205 * lib/gl_avltree_oset.c (gl_tree_remove_node): Call dispose_fn on the
34207 * lib/gl_rbtree_oset.c (gl_tree_remove_node): Call dispose_fn on the
34209 * tests/test-array_oset.c (main): Update.
34210 * tests/test-avltree_oset.c (main): Update.
34211 * tests/test-rbtree_oset.c (main): Update.
34212 * lib/gl_anytreehash_list1.h (add_to_bucket): Update.
34214 2007-03-13 Bruno Haible <bruno@clisp.org>
34216 * tests/test-stdbool.c (i): Update after last patch.
34218 2007-03-12 Bruno Haible <bruno@clisp.org>
34220 * lib/quotearg.c: Include <wctype.h> early, before the definition of
34221 the iswprint macro. Needed on Solaris 2.5.1.
34223 2007-03-12 Bruno Haible <bruno@clisp.org>
34225 * tests/test-printf-frexp.c (main): Declare x as volatile.
34227 2007-03-12 Simon Josefsson <simon@josefsson.org>
34229 * doc/gnulib.texi (Build robot for gnulib): New section.
34231 2007-03-12 Jim Meyering <jim@meyering.net>
34233 * build-aux/bootstrap: New file.
34234 * build-aux/bootstrap.conf: New file, from coreutils.
34236 2007-03-11 Bruno Haible <bruno@clisp.org>
34238 * m4/cycle-check.m4 (gl_CYCLE_CHECK): Require AC_C_INLINE.
34240 2007-03-12 Simon Josefsson <simon@josefsson.org>
34242 * lib/des.h, lib/des.c, lib/gc-gnulib.c: Use gl_ namespace, to
34243 avoid collisions with 'des_setkey'. Reported by Bruno Haible
34244 <bruno@clisp.org>. Also change 'tripledes_' to '3des_'.
34246 2007-03-11 Bruno Haible <bruno@clisp.org>
34248 * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): If the test program fails to
34249 compile, set LOCALE_TR_UTF8 to 'none' instead of empty.
34251 2007-03-11 Bruno Haible <bruno@clisp.org>
34253 * lib/stdint_.h (INT64_MIN, INTMAX_MIN): Avoid using the ~INT..._MAX
34254 formula. Needed for SunPRO C 5.0.
34256 2007-03-11 Bruno Haible <bruno@clisp.org>
34258 * modules/long-options (Depends-on): Add getopt.
34260 2007-03-11 Bruno Haible <bruno@clisp.org>
34262 * modules/modechange (Depends-on): Add stdbool.
34264 2007-03-11 Bruno Haible <bruno@clisp.org>
34266 * modules/i-ring (Depends-on): Add stdbool.
34268 2007-03-11 Bruno Haible <bruno@clisp.org>
34270 * modules/gc-des (Depends-on): Add stdbool.
34272 2007-03-11 Bruno Haible <bruno@clisp.org>
34274 * m4/mktime.m4 (gl_PREREQ_MKTIME): Require AC_C_INLINE.
34276 2007-03-11 Bruno Haible <bruno@clisp.org>
34278 * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Require AC_C_RESTRICT.
34280 2007-03-11 Bruno Haible <bruno@clisp.org>
34282 * lib/unistr/u32-mbtouc-unsafe.c (u32_mbtouc_unsafe): Fix syntax error.
34284 2007-03-11 Bruno Haible <bruno@clisp.org>
34286 * lib/vasnprintf.c (sprintf): Undefine.
34288 2007-03-11 Bruno Haible <bruno@clisp.org>
34290 * lib/isnan.c (rpl_isnan, rpl_isnanl): Work around bug regarding
34291 initializers in SunPRO C and Compaq C compilers.
34293 2007-03-11 Bruno Haible <bruno@clisp.org>
34295 * lib/gl_array_oset.c (gl_array_iterator_next): Make pointer
34296 decrementing code ANSI C compliant.
34298 2007-03-11 Bruno Haible <bruno@clisp.org>
34300 * lib/dummy.c [__sun]: Define a dummy variable, not just a typedef.
34301 Needed for Solaris 2.5.1 ranlib and SunPRO C 5.0.
34303 2007-03-11 Bruno Haible <bruno@clisp.org>
34305 * tests/test-stdbool.c (s, d, e, xlcbug): Disable checks that gnulib's
34306 <stdbool.h> substitute doesn't pass.
34308 2007-03-11 Bruno Haible <bruno@clisp.org>
34310 * lib/vasnprintf.c (snprintf): Undefine. Avoids an endless recursion.
34312 2007-03-11 Bruno Haible <bruno@clisp.org>
34314 * gnulib-tool (func_create_megatestdir): Create also an autobuild
34315 script, for submission to autobuild.josefsson.org.
34317 2007-03-10 Bruno Haible <bruno@clisp.org>
34319 * modules/canonicalize-lgpl-tests: New file.
34320 * tests/test-canonicalize-lgpl.sh: New file.
34321 * tests/test-canonicalize-lgpl.c: New file.
34323 * modules/c-strcase-tests: New file.
34324 * tests/test-c-strcase.sh: New file.
34325 * tests/test-c-strcasecmp.c: New file.
34326 * tests/test-c-strncasecmp.c: New file.
34328 * modules/atexit-tests: New file.
34329 * tests/test-atexit.sh: New file.
34330 * tests/test-atexit.c: New file.
34332 2007-03-10 Bruno Haible <bruno@clisp.org>
34334 * tests/test-binary-io.sh: Use temporary filenames that are not so
34335 likely to clash with those of other tests (in a parallel make).
34336 * tests/test-binary-io.c: Likewise.
34338 2007-03-10 Bruno Haible <bruno@clisp.org>
34340 * lib/fseterr.c (fseterr): Port to Solaris/SPARC64. Deactivate the
34341 fallback; use #error instead.
34342 Suggested by Simon Josefsson.
34344 2007-03-10 Bruno Haible <bruno@clisp.org>
34346 * gnulib-tool (func_create_testdir): Treat MOSTLYCLEANFILES like
34347 CLEANFILES. Put spaces in each line of $cleaned_files, not only the
34348 first and the last.
34350 2007-03-10 Bruno Haible <bruno@clisp.org>
34352 * lib/stdint_.h (uint_least64_t): Fix typo in last patch.
34354 2007-03-10 Bruno Haible <bruno@clisp.org>
34356 * modules/snprintf-posix-tests (EXTRA_DIST): New variable. Needed for
34358 * modules/sprintf-posix-tests (EXTRA_DIST): Likewise.
34359 * modules/vsnprintf-posix-tests (EXTRA_DIST): Likewise.
34360 * modules/vsprintf-posix-tests (EXTRA_DIST): Likewise.
34362 2007-03-10 Bruno Haible <bruno@clisp.org>
34364 * modules/allocsa-tests (test_allocsa_SOURCES): Remove redundant
34366 * modules/dirname-tests (test_dirname_SOURCES): Remove redundant
34369 2007-03-09 Eric Blake <ebb9@byu.net>
34370 and Matthew Woehlke <mw_triad@users.sourceforge.net> (tiny change)
34372 * lib/stdint_.h (int64_t, uint64_t): Don't undefine if 64-bit
34373 types are not being provided by gnulib.
34374 (GL_INT64_T, GL_UINT64_T): New witnesses of whether gnulib 64-bit
34375 types are supported.
34377 2007-03-10 Bruno Haible <bruno@clisp.org>
34379 * lib/stdio_.h (__attribute__): New macro.
34380 (fprintf, vfprintf, printf, vprintf, snprintf, vsnprintf, sprintf,
34381 vsprintf): Specify __attribute__ __format__ for GCC.
34382 Suggested by Eric Blake.
34384 2007-03-09 Bruno Haible <bruno@clisp.org>
34386 * modules/printf-posix-tests: New file.
34387 * tests/test-printf-posix.sh: New file.
34388 * tests/test-printf-posix.c: New file.
34390 * modules/printf-posix: New file.
34391 * lib/printf.c: New file.
34392 * m4/printf-posix-rpl.m4: New file.
34393 * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_PRINTF_POSIX,
34395 * lib/stdio_.h (printf): New declaration.
34396 (format, __format__, ____printf____, ____scanf____, ____strftime____,
34397 ____strfmon____): New macros.
34398 * modules/stdio (Makefile.am): Substitute also GNULIB_PRINTF_POSIX,
34401 2007-03-09 Bruno Haible <bruno@clisp.org>
34403 * tests/test-vasnprintf-posix2.sh: New file.
34404 * tests/test-vasnprintf-posix2.c: New file.
34405 * modules/vasnprintf-posix-tests (Files): Add them and m4/locale-fr.m4.
34406 (configure.ac): Invoke gt_LOCALE_FR and gt_LOCALE_FR_UTF8.
34407 (Makefile.am): Activate test-vasnprintf-posix2.sh.
34409 * lib/vasnprintf.c (VASNPRINTF): For the 'a' and 'A' directives, use
34410 a locale dependent decimal point, rather than always '.'.
34412 2007-03-09 Eric Blake <ebb9@byu.net>
34414 * lib/stdlib_.h (EXIT_FAILURE): GNU code expects this to be 1, in
34415 spite of platforms like Tandem/NSK that define it to -1.
34417 2007-03-08 Bruno Haible <bruno@clisp.org>
34419 * modules/vprintf-posix-tests: New file.
34420 * tests/test-vprintf-posix.sh: New file.
34421 * tests/test-vprintf-posix.c: New file.
34422 * tests/test-printf-posix.h: New file.
34424 * modules/vprintf-posix: New file.
34425 * lib/vprintf.c: New file.
34426 * m4/vprintf-posix.m4: New file.
34427 * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VPRINTF_POSIX,
34429 * lib/stdio_.h (vprintf): New declaration.
34430 * modules/stdio (Makefile.am): Substitute also GNULIB_VPRINTF_POSIX,
34433 2007-03-08 Bruno Haible <bruno@clisp.org>
34435 * modules/fprintf-posix-tests: New file.
34436 * tests/test-fprintf-posix.sh: New file.
34437 * tests/test-fprintf-posix.c: New file.
34439 * modules/fprintf-posix: New file.
34440 * lib/fprintf.c: New file.
34441 * m4/fprintf-posix.m4: New file.
34442 * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FPRINTF_POSIX,
34444 * lib/stdio_.h (fprintf): New declaration.
34445 * modules/stdio (Makefile.am): Substitute also GNULIB_FPRINTF_POSIX,
34448 2007-03-08 Bruno Haible <bruno@clisp.org>
34450 * modules/vfprintf-posix-tests: New file.
34451 * tests/test-vfprintf-posix.sh: New file.
34452 * tests/test-vfprintf-posix.c: New file.
34453 * tests/test-fprintf-posix.h: New file.
34454 * tests/test-fprintf-posix.out: New file.
34456 * modules/vfprintf-posix: New file.
34457 * lib/vfprintf.c: New file.
34458 * m4/vfprintf-posix.m4: New file.
34459 * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VFPRINTF_POSIX,
34461 * lib/stdio_.h (vfprintf): New declaration.
34462 * modules/stdio (Makefile.am): Substitute also GNULIB_VFPRINTF_POSIX,
34465 2007-03-08 Bruno Haible <bruno@clisp.org>
34467 * lib/stdio_.h: Treat __need___FILE like __need_FILE.
34469 2007-03-08 Bruno Haible <bruno@clisp.org>
34471 * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Use 'case' statements
34472 instead of 'expr' invocations.
34473 * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
34474 * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
34475 * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
34476 * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
34477 * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
34478 Suggested by Paul Eggert.
34480 2007-03-08 Bruno Haible <bruno@clisp.org>
34482 * modules/fseterr-tests: New file.
34483 * tests/test-fseterr.c: New file.
34485 * modules/fseterr: New file.
34486 * lib/fseterr.h: New file.
34487 * lib/fseterr.c: New file.
34489 2007-03-08 Bruno Haible <bruno@clisp.org>
34491 * lib/fnmatch_.h: Convert tabs in the middle of lines to spaces.
34492 * lib/getopt_.h: Likewise.
34493 * lib/mbswidth.h: Likewise.
34494 * lib/setenv.h: Likewise.
34495 * lib/vasnprintf.h: Likewise.
34496 * lib/vasprintf.h: Likewise.
34497 * lib/verror.h: Likewise.
34498 * lib/xsetenv.h: Likewise.
34499 * lib/xvasprintf.h: Likewise.
34501 2007-03-08 Jim Meyering <jim@meyering.net>
34503 * users.txt: Add parted.
34505 * ChangeLog: Restore 1500 lines mistakenly removed from the end.
34507 2007-03-07 Bruno Haible <bruno@clisp.org>
34509 * m4/printf.m4: Make the shell script snippets copy&pastable.
34511 2007-03-02 Bruno Haible <bruno@clisp.org>
34513 * lib/netinet_in_.h: New file.
34514 * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Test whether netinet/in.h
34515 is self-contained. Set ABSOLUTE_NETINET_IN_H, HAVE_NETINET_IN_H.
34516 * modules/netinet_in (Files): Add lib/netinet_in_.h.
34517 (Depends-on): Add absolute-header.
34518 (Makefile.am): Substitute ABSOLUTE_NETINET_IN_H, HAVE_NETINET_IN_H
34521 2007-03-03 Bruno Haible <bruno@clisp.org>
34523 * lib/sys_select_.h: New file.
34524 * m4/sys_socket_h.m4 (gl_HEADER_SYS_SELECT): Test whether sys/select.h
34525 is self-contained. Set ABSOLUTE_SYS_SELECT_H, HAVE_SYS_SELECT_H.
34526 * modules/sys_select (Files): Add lib/sys_select_.h.
34527 (Depends-on): Add absolute-header.
34528 (Makefile.am): Substitute ABSOLUTE_SYS_SELECT_H, HAVE_SYS_SELECT_H
34531 2007-03-02 Bruno Haible <bruno@clisp.org>
34533 * lib/socket_.h: If sys/socket.h exists, include that and <sys/types.h>
34534 before it. Turn HAVE_WINSOCK2_H and HAVE_WS2TCPIP_H into configute-time
34536 * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Test also whether
34537 <sys/socket.h> is self-contained. Set ABSOLUTE_SYS_SOCKET_H,
34538 HAVE_SYS_SOCKET_H, HAVE_WINSOCK2_H, HAVE_WS2TCPIP_H.
34539 * modules/sys_socket (Depends-on): Add absolute-header.
34540 (Makefile.am): Substitute ABSOLUTE_SYS_SOCKET_H, HAVE_SYS_SOCKET_H,
34541 HAVE_WINSOCK2_H, HAVE_WS2TCPIP_H into sys/socket.h.
34542 (Include): Remove requirement of inclusion of <sys/types.h>.
34544 2007-03-02 Bruno Haible <bruno@clisp.org>
34546 * lib/byteswap_.h (bswap_32): Fix formula.
34548 2007-03-06 Bruno Haible <bruno@clisp.org>
34550 * modules/sprintf-posix-tests: New file.
34551 * tests/test-sprintf-posix.c: New file.
34553 * modules/sprintf-posix: New file.
34554 * lib/sprintf.c: New file.
34555 * m4/sprintf-posix.m4: New file.
34556 * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_SPRINTF_POSIX,
34558 * lib/stdio_.h (sprintf): New declaration.
34559 * modules/stdio (Makefile.am): Substitute also GNULIB_SPRINTF_POSIX,
34562 2007-03-06 Bruno Haible <bruno@clisp.org>
34564 * modules/vsprintf-posix-tests: New file.
34565 * tests/test-vsprintf-posix.c: New file.
34566 * tests/test-sprintf-posix.h: New file.
34568 * modules/vsprintf-posix: New file.
34569 * lib/vsprintf.c: New file.
34570 * m4/vsprintf-posix.m4: New file.
34571 * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VSPRINTF_POSIX,
34573 * lib/stdio_.h (vsprintf): New declaration.
34574 * modules/stdio (Makefile.am): Substitute also GNULIB_VSPRINTF_POSIX,
34577 2007-03-06 Bruno Haible <bruno@clisp.org>
34579 * modules/vsnprintf (Depend-on): Remove minmax.
34581 2007-03-06 Bruno Haible <bruno@clisp.org>
34583 * modules/snprintf-posix-tests: New file.
34584 * tests/test-snprintf-posix.c: New file.
34586 * modules/snprintf-posix: New file.
34587 * m4/snprintf-posix.m4: New file.
34588 * m4/snprintf.m4 (gl_REPLACE_SNPRINTF): New macro, extracted from
34590 (gl_FUNC_SNPRINTF): Invoke it.
34591 * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also REPLACE_SNPRINTF.
34592 * lib/stdio_.h (snprintf): Define as a replacement if REPLACE_SNPRINTF
34594 * modules/stdio (Makefile.am): Substitute also REPLACE_SNPRINTF.
34596 2007-03-06 Bruno Haible <bruno@clisp.org>
34598 * modules/vsnprintf-posix-tests: New file.
34599 * tests/test-vsnprintf-posix.c: New file.
34600 * tests/test-snprintf-posix.h: New file.
34602 * modules/vsnprintf-posix: New file.
34603 * m4/vsnprintf-posix.m4: New file.
34604 * m4/vsnprintf.m4 (gl_REPLACE_VSNPRINTF): New macro, extracted from
34606 (gl_FUNC_VSNPRINTF): Invoke it.
34607 * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also REPLACE_VSNPRINTF.
34608 * lib/stdio_.h (vsnprintf): Define as a replacement if
34609 REPLACE_VSNPRINTF is set.
34610 * modules/stdio (Makefile.am): Substitute also REPLACE_VSNPRINTF.
34612 2007-03-06 Bruno Haible <bruno@clisp.org>
34614 * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): Test for vasnprintf here.
34615 * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): ... not here.
34617 2007-03-06 Bruno Haible <bruno@clisp.org>
34619 * lib/math_.h (acosl): Declare also if HAVE_DECL_ACOSL is set.
34620 (asinl): Declare also if HAVE_DECL_ASINL is set.
34621 (atanl): Declare also if HAVE_DECL_ATANL is set.
34622 (ceill): Declare also if HAVE_DECL_CEILL is set.
34623 (cosl): Declare also if HAVE_DECL_COSL is set.
34624 (expl): Declare also if HAVE_DECL_EXPL is set.
34625 (floorl): Declare also if HAVE_DECL_FLOORL is set.
34626 (frexpl): Declare also if HAVE_DECL_FREXPL is set.
34627 (ldexpl): Declare also if HAVE_DECL_LDEXPL is set.
34628 (logl): Declare also if HAVE_DECL_LOGL is set.
34629 (sinl): Declare also if HAVE_DECL_SINL is set.
34630 (sqrtl): Declare also if HAVE_DECL_SQRTL is set.
34631 (tanl): Declare also if HAVE_DECL_TANL is set.
34632 * modules/math (Makefile.am): Substitute the values of HAVE_DECL_*.
34633 * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Set HAVE_DECL_* to 1.
34634 * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Fix tests for the
34635 declaration of frexpl, ldexpl.
34636 * modules/printf-frexpl (Depends-on): Add math.
34637 * lib/printf-frexp.c (frexpl, ldexpl): Undo last change.
34639 2007-03-05 Bruno Haible <bruno@clisp.org>
34641 * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Also test whether
34642 frexpl and ldexpl are declared.
34643 * lib/printf-frexp.c (frexpl, ldexpl): Provide fallback declarations.
34645 2007-03-05 Bruno Haible <bruno@clisp.org>
34647 * gnulib-tool (func_get_automake_snippet): Don't synthesize an
34648 EXTRA_lib_SOURCES augmentation for the relocatable-prog-wrapper module.
34650 2007-03-05 Bruno Haible <bruno@clisp.org>
34652 * lib/stdio_.h: Include <stddef.h>.
34654 2007-03-05 Bruno Haible <bruno@clisp.org>
34656 * m4/printf.m4 (gl_SNPRINTF_DIRECTIVE_N): New macro.
34658 2007-03-05 Bruno Haible <bruno@clisp.org>
34660 * m4/printf.m4: Update with info about OpenBSD 3.9, HP-UX 10.20,
34661 NetBSD 4, from Ralf Wildenhues.
34663 2007-03-04 Bruno Haible <bruno@clisp.org>
34665 * lib/vasprintf.h: Update #if logic for the case when the functions
34666 exist but are overridden.
34668 2007-03-04 Bruno Haible <bruno@clisp.org>
34670 * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Exclude two buggy
34671 implementations: glibc-2.4 and MacOS X 10.3.
34672 * tests/test-vasnprintf-posix.c (test_function): Test also the case
34673 that exhibits the bugs in glibc-2.4 and MacOS X 10.3.
34674 * tests/test-vasprintf-posix.c (test_function): Likewise.
34676 2007-03-04 Bruno Haible <bruno@clisp.org>
34678 * modules/vasprintf-posix-tests: New file.
34679 * tests/test-vasprintf-posix.c: New file.
34681 * modules/vasprintf-posix: New file.
34682 * lib/vasprintf.h (asprintf, vasprintf): Rename if REPLACE_VASPRINTF is
34684 * m4/vasprintf-posix.m4: New file.
34685 * m4/vasprintf.m4 (gl_REPLACE_VASPRINTF): New macro, extracted from
34687 (gl_FUNC_VASPRINTF): Invoke it.
34688 * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): Define REPLACE_VASNPRINTF
34690 * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Not here.
34692 2007-03-04 Bruno Haible <bruno@clisp.org>
34694 * lib/sys_time_.h: Rename GETTIMEOFDAY_REPLACEMENT to
34695 REPLACE_GETTIMEOFDAY.
34696 * modules/sys_time (Makefile.am): Likewise.
34697 * m4/sys_time_h.m4: Likewise.
34698 * m4/gettimeofday.m4: Likewise.
34700 2007-03-04 Bruno Haible <bruno@clisp.org>
34702 * modules/vasnprintf-posix-tests: New file.
34703 * tests/test-vasnprintf-posix.c: New file.
34705 * modules/vasnprintf-posix: New file.
34706 * lib/vasnprintf.c: Include isnan.h, isnanl.h, printf-frexp.h,
34708 (VASNPRINTF): Handle the 'a' and 'A' directives here, if needed.
34709 * lib/vasnprintf.h (asnprintf, vasnprintf): Rename if
34710 REPLACE_VASNPRINTF is defined.
34711 * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): New macro, extracted from
34712 gl_FUNC_VASNPRINTF.
34713 (gl_FUNC_VASNPRINTF): Invoke it.
34714 * m4/vasnprintf-posix.m4: New file.
34715 * m4/printf.m4: New file.
34717 2007-03-04 Bruno Haible <bruno@clisp.org>
34719 Compile progreloc.c only if --enable-relocatable is specified.
34720 * m4/relocatable.m4 (gl_RELOCATABLE): Arrange to compile progreloc.c
34721 if --enable-relocatable was specified.
34722 * modules/relocatable-prog (Makefile.am): Remove progreloc.c from
34725 2007-03-04 Jim Meyering <jim@meyering.net>
34727 * lib/acl.c (ACL_NOT_WELL_SUPPORTED): New macro.
34728 Use it consistently, rather than enumerating errno constants.
34730 2007-03-04 Bruno Haible <bruno@clisp.org>
34732 * modules/xvasprintf-tests: New file.
34733 * tests/test-xvasprintf.c: New file.
34735 * modules/vasprintf-tests: New file.
34736 * tests/test-vasprintf.c: New file.
34738 * modules/vasnprintf-tests: New file.
34739 * tests/test-vasnprintf.c: New file.
34741 * modules/vsnprintf-tests: New file.
34742 * tests/test-vsnprintf.c: New file.
34744 * modules/snprintf-tests: New file.
34745 * tests/test-snprintf.c: New file.
34747 2007-03-04 Bruno Haible <bruno@clisp.org>
34749 Compile relocatable.c only if --enable-relocatable is specified.
34750 * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY_BODY): Renamed from
34751 gl_RELOCATABLE_LIBRARY.
34752 (gl_RELOCATABLE_LIBRARY, gl_RELOCATABLE_LIBRARY_SEPARATE): New macros.
34753 * m4/relocatable.m4 (gl_RELOCATABLE): Invoke gl_RELOCATABLE_LIBRARY.
34754 (gl_RELOCATABLE_BODY): Require gl_RELOCATABLE_LIBRARY_BODY instead of
34755 gl_RELOCATABLE_LIBRARY.
34756 * modules/relocatable-lib (configure.ac): Invoke gl_RELOCATABLE_LIBRARY.
34757 (Makefile.am): Remove lib_SOURCES.
34758 * modules/relocatable-lib-lgpl (configure.ac): Invoke
34759 gl_RELOCATABLE_LIBRARY.
34760 (Makefile.am): Remove lib_SOURCES.
34761 * modules/relocatable-prog (Makefile.am): Don't compile relocatable.c
34763 * modules/relocatable-prog-wrapper (configure.ac): Invoke
34764 gl_RELOCATABLE_LIBRARY_SEPARATE instead of gl_RELOCATABLE_LIBRARY.
34766 2007-03-04 Bruno Haible <bruno@clisp.org>
34768 * modules/argmatch-tests: New file.
34769 * tests/test-argmatch.c: New file.
34771 * tests/test-allocsa.c (main): Halve the number of loop runs.
34773 * modules/alloca-opt-tests: New file.
34774 * tests/test-alloca-opt.c: New file.
34776 2007-03-04 Jim Meyering <jim@meyering.net>
34778 Work around difference between Linux ACLs and Solaris 10 ZFS.
34779 * lib/acl.c (set_acl): Revert to using chmod_or_fchmod also
34782 2007-03-03 Bruno Haible <bruno@clisp.org>
34784 * modules/relocatable-prog (Depends-on): Add back progreloc's
34785 dependencies: canonicalize-lgpl, xalloc, xreadlink, stdbool, unistd.
34787 2007-03-03 Bruno Haible <bruno@clisp.org>
34789 * modules/relocatable-lib-lgpl: Renamed from modules/relocatable-lib.
34790 * modules/relocatable-lib: New file.
34792 2007-03-03 Bruno Haible <bruno@clisp.org>
34794 * modules/relocatable-prog: Renamed from modules/relocatable.
34795 * doc/relocatable-maint.texi: Talk about module 'relocatable-prog'.
34797 2007-03-03 Bruno Haible <bruno@clisp.org>
34799 * modules/relocatable-script (Files): Add doc/relocatable.texi,
34800 m4/relocatable-lib.m4.
34801 (Depends-on): Remove 'relocatable'.
34802 (configure.ac): Add gl_RELOCATABLE_NOP.
34804 2007-03-03 Bruno Haible <bruno@clisp.org>
34806 * modules/relocatable-prog-wrapper: New file.
34807 * modules/relocatable (Depends-on): Add it. Remove all other
34808 dependencies except progname.
34809 (Files): Remove build-aux/install-reloc, lib/relocwrapper.c.
34811 * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): New macro.
34812 (gl_FUNC_STRERROR): Nop.
34813 * lib/strerror.c: Compile the file only if !HAVE_STRERROR.
34815 * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): New macro.
34816 * lib/setenv.c: Compile the file only if _LIBC || !HAVE_SETENV.
34818 * m4/readlink.m4 (gl_FUNC_READLINK_SEPARATE): New macro.
34819 (gl_FUNC_READLINK): Update.
34821 * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL_SEPARATE): New macro.
34823 2007-03-03 Bruno Haible <bruno@clisp.org>
34825 * lib/xreadlink.c: Include <unistd.h> unconditionally.
34826 * modules/xreadlink (Depends-on): Add unistd.
34827 * modules/xreadlink-with-size (Depends-on): Likewise.
34829 2007-03-03 Bruno Haible <bruno@clisp.org>
34831 * m4/setenv.m4 (gl_FUNC_SETENV, gl_FUNC_UNSETENV): New macros,
34832 extracted from gt_FUNC_SETENV.
34833 (gt_FUNC_SETENV): Remove macro.
34834 * modules/setenv (configure.ac): Add gl_FUNC_SETENV, gl_FUNC_UNSETENV,
34835 remove gt_FUNC_SETENV.
34837 2007-03-03 Bruno Haible <bruno@clisp.org>
34839 * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY): Define
34840 ENABLE_RELOCATABLE here.
34841 * m4/relocatable.m4 (gl_RELOCATABLE_BODY): Don't define it here.
34843 2007-03-03 Bruno Haible <bruno@clisp.org>
34845 * modules/rbtreehash-list-tests (Depends-on): Add progname.
34846 * tests/test-rbtreehash_list.c: Include progname.h.
34847 (main): Call set_program_name.
34849 * modules/rbtree-oset-tests (Depends-on): Add progname.
34850 * tests/test-rbtree_oset.c: Include progname.h.
34851 (main): Call set_program_name.
34853 * modules/rbtree-list-tests (Depends-on): Add progname.
34854 * tests/test-rbtree_list.c: Include progname.h.
34855 (main): Call set_program_name.
34857 * modules/linked-list-tests (Depends-on): Add progname.
34858 * tests/test-linked_list.c: Include progname.h.
34859 (main): Call set_program_name.
34861 2007-03-03 Bruno Haible <bruno@clisp.org>
34863 * lib/glob-libc.h (_Restrict_): New macro, copied from lib/regex.h.
34864 All uses of __restrict changed to _Restrict_.
34865 * lib/glob_.h (__restrict): Remove macro.
34867 2007-03-02 Bruno Haible <bruno@clisp.org>
34869 * modules/gettext (configure.ac): Require gettext infrastructure
34870 from version 0.16.1.
34872 2007-03-02 Bruno Haible <bruno@clisp.org>
34874 * modules/linkedhash-list-tests (Depends-on): Add progname.
34875 * tests/test-linkedhash_list.c: Include progname.h.
34876 (main): Call set_program_name.
34878 * modules/carray-list-tests (Depends-on): Add progname.
34879 * tests/test-carray_list.c: Include progname.h.
34880 (main): Call set_program_name.
34882 * modules/avltreehash-list-tests (Depends-on): Add progname.
34883 * tests/test-avltreehash_list.c: Include progname.h.
34884 (main): Call set_program_name.
34886 * modules/avltree-oset-tests (Depends-on): Add progname.
34887 * tests/test-avltree_oset.c: Include progname.h.
34888 (main): Call set_program_name.
34890 * modules/avltree-list-tests (Depends-on): Add progname.
34891 * tests/test-avltree_list.c: Include progname.h.
34892 (main): Call set_program_name.
34894 * modules/array-oset-tests (Depends-on): Add progname.
34895 * tests/test-array_oset.c: Include progname.h.
34896 (main): Call set_program_name.
34898 * modules/array-list-tests (Depends-on): Add progname.
34899 * tests/test-array_list.c: Include progname.h.
34900 (main): Call set_program_name.
34902 * modules/argp-tests (Depends-on): Add progname.
34903 * tests/test-argp.c: Include argp.h first. Include progname.h.
34904 (main): Call set_program_name.
34906 2007-03-02 Paul Eggert <eggert@cs.ucla.edu>
34908 * doc/gnulib-tool.texi (Initial import): Reword description of
34909 _FILE_OFFSET_BITS and _GNU_SOURCE, since they sometimes have a
34910 limited effect even if defined after the first system include.
34912 2007-03-01 Bruno Haible <bruno@clisp.org>
34914 * build-aux/config.libpath: Update to libtool-1.5.22.
34915 Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
34917 2007-03-01 Bruno Haible <bruno@clisp.org>
34919 * doc/relocatable-maint.texi: Recommend to set foo_CPPFLAGS, not
34921 Reported by Ralf Wildenhues.
34923 2007-03-01 Bruno Haible <bruno@clisp.org>
34925 * build-aux/install-reloc: Remove object files left over by some
34927 Reported by Ralf Wildenhues.
34929 2007-03-01 Bruno Haible <bruno@clisp.org>
34931 * build-aux/install-reloc: Break long lines.
34933 2007-03-01 Bruno Haible <bruno@clisp.org>
34935 * doc/relocatable.texi: Document that it may not work on OpenBSD.
34936 Reported by Ralf Wildenhues.
34938 2007-03-01 Bruno Haible <bruno@clisp.org>
34940 * doc/gnulib-tool.texi (Initial import): Remove paragraph about
34941 include ordering constraints.
34943 2007-03-01 Paul Eggert <eggert@cs.ucla.edu>
34945 Followup to the 2007-02-12 patch, using suggestions from Bruno Haible in
34946 <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00136.html>.
34947 * doc/gnulib-tool.texi (Initial import): Mention _FILE_OFFSET_BITS
34948 as another example.
34949 * lib/time_.h: Fix misspelling.
34950 * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
34951 Require gl_HEADER_TIME_H_DEFAULTS.
34952 * m4/strptime.m4 (gl_FUNC_STRPTIME): Likewise.
34953 * m4/time_r.m4 (gl_TIME_R): Likewise.
34954 * m4/timegm.m4 (gl_FUNC_TIMEGM): Likewise.
34956 2007-03-01 Bruno Haible <bruno@clisp.org>
34958 * m4/utimecmp.m4 (gl_UTIMECMP): Don't require gl_TIMESPEC.
34959 * m4/utimens.m4 (gl_UTIMENS): Likewise.
34961 2007-03-01 Jim Meyering <jim@meyering.net>
34963 * modules/xreadlink (Maintainer): Add my name.
34964 * modules/xreadlink-with-size (Depends-on): Alphabetize.
34966 2007-02-26 Ben Pfaff <blp@cs.stanford.edu>
34967 Bruno Haible <bruno@clisp.org>
34969 * build-aux/install-reloc: Compile also c-ctype.c.
34970 * build-aux/relocatable.sh.in: New file.
34971 * doc/relocatable.texi: New file.
34972 * doc/relocatable-maint.texi: New file.
34973 * doc/gnulib.texi: Include relocatable-maint.texi.
34974 * lib/progreloc.c: Include unistd.h unconditionally.
34975 * lib/relocwrapper.c: Include unistd.h unconditionally.
34977 (add_dotbin): Use c_tolower.
34978 * m4/relocatable-lib.m4: New file, extracted from m4/relocatable.m4.
34979 (gl_RELOCATABLE_LIBRARY): Renamed from AC_RELOCATABLE_LIBRARY.
34980 (gl_RELOCATABLE_NOP): Renamed from AC_RELOCATABLE_NOP.
34981 * m4/relocatable.m4 (AC_RELOCATABLE_LIBRARY, AC_RELOCATABLE_NOP): Move
34982 to m4/relocatable-lib.m4.
34983 (gl_RELOCATABLE): Renamed from AC_RELOCATABLE. Set also
34984 RELOCATABLE_CONFIG_H_DIR, RELOCATABLE_SRC_DIR, RELOCATABLE_BUILD_DIR.
34985 (gl_RELOCATABLE_BODY): Renamed from AC_RELOCATABLE_BODY. Don't
34986 require obsolete macro AC_EXEEXT. Don't check for unistd.h. Don't set
34987 SET_RELOCATABLE. Instead set RELOCATABLE_LDFLAGS, INSTALL_PROGRAM_ENV.
34988 * modules/relocatable: New file.
34989 * modules/relocatable-lib: New file.
34990 * modules/relocatable-script: New file.
34992 2007-02-28 Bruno Haible <bruno@clisp.org>
34994 Import --enable-relocatable infrastructure.
34995 * build-aux/config.libpath: New file, from GNU gettext.
34996 * build-aux/install-reloc: New file, from GNU gettext.
34997 * build-aux/reloc-ldflags: New file, from GNU gettext.
34998 * lib/relocatable.h: New file, from GNU gettext.
34999 * lib/relocatable.c: New file, from GNU gettext.
35000 * lib/relocwrapper.c: New file, from GNU gettext.
35001 * m4/relocatable.m4: New file, from GNU gettext.
35003 2007-02-28 Bruno Haible <bruno@clisp.org>
35005 * MODULES.html.sh (File system functions): Add xreadlink-with-size.
35007 * modules/xreadlink: New file, from GNU gettext with modifications.
35008 * lib/xreadlink.c: New file, from GNU gettext.
35009 * lib/xreadlink.h: Add comments.
35010 (xreadlink): New declaration.
35012 * modules/xreadlink-with-size: Renamed from modules/xreadlink.
35013 (Files): Remove m4/xreadlink.m4. Replace lib/xreadlink.c with
35014 lib/xreadlink-with-size.c.
35015 (configure.ac): Remove gl_XREADLINK invocation.
35016 (Makefile.am): Augment lib_SOURCES.
35017 * m4/xreadlink.m4: Remove file.
35018 * lib/xreadlink-with-size.c: Renamed from lib/xreadlink.c.
35019 (xreadlink_with_size): Renamed from xreadink.
35020 * lib/xreadlink.h (xreadlink_with_size): Renamed from xreadink.
35021 * modules/canonicalize (Depends-on): Replace xreadlink with
35022 xreadlink-with-size.
35023 * lib/canonicalize.c (canonicalize_filename_mode): Update.
35025 2007-02-25 Jim Meyering <jim@meyering.net>
35027 * build-aux/announce-gen: When complaining about excess arguments,
35030 2007-02-25 Paul Eggert <eggert@cs.ucla.edu>
35032 * README: Document signed integer overflow situation more
35035 2007-02-25 Bruno Haible <bruno@clisp.org>
35037 * lib/vasnprintf.c (VASNPRINTF): Fix estimate of size needed for a
35038 'a' or 'A' conversion.
35040 2007-02-25 Bruno Haible <bruno@clisp.org>
35042 * modules/filename: Renamed from modules/pathname.
35043 (Files): Replace lib/pathname.h with lib/filename.h. Replace
35044 lib/concatpath.c with lib/concat-filename.c.
35045 (Makefile.am): Update.
35046 (Include): Replace pathname.h with filename.h.
35047 * lib/filename.h: Renamed from lib/pathname.h.
35048 (concatenated_filename): Renamed from concatenated_pathname.
35049 * lib/concat-filename.c: Renamed from lib/concatpath.c.
35050 (concatenated_filename): Renamed from concatenated_pathname.
35051 * lib/findprog.c: Include filename.h instead of pathname.h.
35052 (find_in_path): Update.
35053 * lib/javacomp.c: Include filename.h instead of pathname.h.
35054 (is_envjavac_gcj43_usable, is_envjavac_oldgcj_14_14_usable,
35055 is_envjavac_oldgcj_14_13_usable, is_envjavac_nongcj_usable,
35056 is_gcj_present, is_gcj43_usable, is_oldgcj_14_14_usable,
35057 is_oldgcj_14_13_usable, is_javac_usable): Update.
35058 * lib/javaexec.c: Include filename.h instead of pathname.h.
35059 (execute_java_class): Update.
35060 * modules/findprog: Update.
35061 * modules/javacomp: Update.
35062 * modules/javaexec: Update.
35063 * MODULES.html.sh (File system functions): Add 'filename', remove
35066 2007-02-25 Bruno Haible <bruno@clisp.org>
35068 * modules/printf-frexpl-tests: New file.
35069 * tests/test-printf-frexpl.c: New file.
35071 * modules/printf-frexpl: New file.
35072 * lib/printf-frexpl.h: New file.
35073 * lib/printf-frexpl.c: New file.
35074 * m4/printf-frexpl.m4: New file.
35076 2007-02-25 Bruno Haible <bruno@clisp.org>
35078 * modules/printf-frexp-tests: New file.
35079 * tests/test-printf-frexp.c: New file.
35081 * modules/printf-frexp: New file.
35082 * lib/printf-frexp.h: New file.
35083 * lib/printf-frexp.c: New file.
35084 * m4/printf-frexp.m4: New file.
35086 2007-02-25 Bruno Haible <bruno@clisp.org>
35088 Assume automake >= 1.10 for the tests.
35089 * modules/arcfour-tests (TESTS): Remove $(EXEEXT) suffix.
35090 * modules/arctwo-tests: Likewise.
35091 * modules/argp-tests: Likewise.
35092 * modules/avltree-list-tests: Likewise.
35093 * modules/avltree-oset-tests: Likewise.
35094 * modules/avltreehash-list-tests: Likewise.
35095 * modules/carray-list-tests: Likewise.
35096 * modules/crc-tests: Likewise.
35097 * modules/des-tests: Likewise.
35098 * modules/gc-arcfour-tests: Likewise.
35099 * modules/gc-arctwo-tests: Likewise.
35100 * modules/gc-des-tests: Likewise.
35101 * modules/gc-hmac-md5-tests: Likewise.
35102 * modules/gc-hmac-sha1-tests: Likewise.
35103 * modules/gc-md2-tests: Likewise.
35104 * modules/gc-md4-tests: Likewise.
35105 * modules/gc-md5-tests: Likewise.
35106 * modules/gc-pbkdf2-sha1-tests: Likewise.
35107 * modules/gc-rijndael-tests: Likewise.
35108 * modules/gc-sha1-tests: Likewise.
35109 * modules/gc-tests: Likewise.
35110 * modules/getaddrinfo-tests: Likewise.
35111 * modules/hmac-md5-tests: Likewise.
35112 * modules/hmac-sha1-tests: Likewise.
35113 * modules/linked-list-tests: Likewise.
35114 * modules/linkedhash-list-tests: Likewise.
35115 * modules/lock-tests: Likewise.
35116 * modules/md2-tests: Likewise.
35117 * modules/md4-tests: Likewise.
35118 * modules/md5-tests: Likewise.
35119 * modules/rbtree-list-tests: Likewise.
35120 * modules/rbtree-oset-tests: Likewise.
35121 * modules/rbtreehash-list-tests: Likewise.
35122 * modules/read-file-tests: Likewise.
35123 * modules/rijndael-tests: Likewise.
35124 * modules/stdint-tests: Likewise.
35125 * modules/tls-tests: Likewise.
35127 2007-02-24 Bruno Haible <bruno@clisp.org>
35129 * lib/isnanl.h (isnanl): Define through isnan if isnan is a macro.
35130 * m4/isnan.m4 (gl_FUNC_ISNAN_NO_LIBM): Don't check for isnan as a
35131 function; instead check whether isnan with a double argument links.
35132 * m4/isnanl.m4 (gl_FUNC_ISNANL_NO_LIBM): Don't check for isnanl as a
35133 function; instead check whether isnan with a 'long double' argument
35135 Reported by Eric Blake <ebb9@byu.net>.
35137 2007-02-24 Bruno Haible <bruno@clisp.org>
35139 * lib/isnan.c: Support the 'long double' case if USE_LONG_DOUBLE is
35141 * lib/isnanl.c: Remove all code. Just include isnan.c.
35142 * modules/isnanl-nolibm (Files): Add lib/isnan.c.
35144 2007-02-25 Jim Meyering <jim@meyering.net>
35146 Avoid conflicting types for 'unsetenv' on FreeBSD.
35147 * lib/putenv.c (_unsetenv): Rename from "unsetenv", to avoid
35148 conflicting with FreeBSD's (5.0 and 6.1) function declaration
35151 2007-02-24 Bruno Haible <bruno@clisp.org>
35153 * modules/isnanl-nolibm-tests: New file.
35154 * tests/test-isnanl.c: New file.
35156 * modules/isnanl-nolibm: New file.
35157 * lib/isnanl.h: New file.
35158 * lib/isnanl.c: New file.
35159 * m4/isnanl.m4: New file.
35161 2007-02-24 Bruno Haible <bruno@clisp.org>
35163 * modules/isnan-nolibm-tests: New file.
35164 * tests/test-isnan.c: New file.
35166 * modules/isnan-nolibm: New file.
35167 * lib/isnan.h: New file.
35168 * lib/isnan.c: New file.
35169 * m4/isnan.m4: New file.
35171 2007-02-24 Bruno Haible <bruno@clisp.org>
35173 * lib/frexpl.c (frexpl): Correct return values for x = 1.0L. Don't
35174 assume that an exponent fits in 20 bits.
35176 2007-02-24 Jim Meyering <jim@meyering.net>
35178 * m4/regex.m4: Update the description of the configure-time option,
35179 --without-included-regex, to state accurately what the defaults are,
35180 and perhaps to give people an idea why using this option is risky.
35182 2007-02-24 Paul Eggert <eggert@cs.ucla.edu>
35184 * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Check for a nanosleep that
35185 loops on small arguments. This attempts to avoid the problem
35186 Bruno Haible reported for AIX 4.3.2 in
35187 <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00309.html>.
35189 2007-02-23 Bruno Haible <bruno@clisp.org>
35191 * m4/perl.m4 (gl_PERL): Require version 5.005, not 5.003.
35192 Needed for help2man.
35194 2007-02-23 Karl Berry <karl@gnu.org>
35196 * doc/gnulib-tool.texi (CVS Issues): mention that when foo_.h
35197 exists, foo.h should be cvs-ignored, not committed.
35199 2007-02-23 Eric Blake <ebb9@byu.net>
35201 * lib/getdate.h (includes): Include <time.h>, not "timespec.h".
35202 * lib/stat-time.h (includes): Likewise.
35203 * lib/utimecmp.c (includes): Likewise.
35204 * lib/utimens.h (includes): Likewise.
35205 * lib/getdate.y (includes): Also include "timespec.h" for use
35206 internal to the module.
35207 * modules/utimens (Depends-on): Revert yesterday's patch.
35208 * modules/nanosleep (Depends-on): Add missing dependency.
35210 2007-02-22 Bruno Haible <bruno@clisp.org>
35212 * lib/glob.c: Don't include getlogin_r.h.
35214 2007-02-22 Jim Meyering <jim@meyering.net>
35216 * modules/utimens (Depends-on): Add timespec, required for
35217 utimens.h's inclusion of timespec.h.
35219 2007-02-21 Paul Eggert <eggert@cs.ucla.edu>
35221 * lib/getcwd.c (__getcwd): Undo previous change; it mishandled
35222 long unreadable paths in GNU/Linux. Problem reported by Andreas
35224 <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00261.html>.
35225 I'll try to think of a better way to fix the Solaris problem.
35227 * lib/getcwd.c (__getcwd): Don't assume getcwd (NULL, 0) works
35228 like glibc; on Solaris 10, it fails with errno == EINVAL.
35229 POSIX says the behavior is unspecified if the first argument is NULL,
35230 so play it safe and never pass NULL to the system getcwd.
35232 2007-02-21 Jim Meyering <jim@meyering.net>
35234 * lib/gettimeofday.c (rpl_gettimeofday): Remove declaration
35235 of gettimeofday. It would conflict with the one now always
35236 provided via sys_time_.h. Reported by Matthew Woehlke, as
35237 an IRIX 6.5 build failure.
35239 2007-02-20 Paul Eggert <eggert@cs.ucla.edu>
35241 Minor fixups to port to Solaris 10 with Sun C 5.8.
35242 * lib/getcwd.c [!_LIBC]: Include dirfd.h, since we use dirfd.
35243 * modules/getcwd (Depends-on): Add dirfd.
35244 * lib/putenv.c (putenv): #undef it.
35245 (rpl_putenv): New decl.
35246 (malloc, free): Include <stdlib.h> rather than prototyping separately.
35248 2007-02-20 Bruno Haible <bruno@clisp.org>
35250 * modules/stdio-tests: New file.
35251 * tests/test-stdio.c: New file.
35253 * modules/vsnprintf (Files): Remove lib/vsnprintf.h.
35254 (Depends-on): Add stdio.
35255 (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
35256 (Include): Use <stdio.h> instead of vsnprintf.h.
35257 * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Require gl_STDIO_H_DEFAULTS. Set
35258 HAVE_DECL_VSNPRINTF.
35259 * lib/vsnprintf.c: Include <stdio.h> instead of vsnprintf.h.
35261 * modules/snprintf (Files): Remove lib/snprintf.h.
35262 (Depends-on): Add stdio.
35263 (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
35264 (Include): Use <stdio.h> instead of snprintf.h.
35265 * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Require gl_STDIO_H_DEFAULTS. Set
35266 HAVE_DECL_SNPRINTF.
35267 * lib/snprintf.c: Include <stdio.h> instead of snprintf.h.
35268 * lib/getaddrinfo.c: Likewise.
35270 * modules/stdio: New file.
35271 * lib/stdio_.h: New file, incorporating snprintf.h and vsnprintf.h.
35272 * lib/snprintf.h: Remove file.
35273 * lib/vsnprintf.h: Remove file.
35274 * lib/.cppi-disable: Remove snprintf.h.
35275 * m4/stdio_h.m4: New file.
35276 * MODULES.html.sh (Support for systems lacking ISO C 99): Add stdio.
35278 2007-02-20 Jim Meyering <jim@meyering.net>
35280 * lib/ftruncate.c [HAVE_CHSIZE]: Document that this code is
35281 used by e.g., mingw. From Bruno Haible.
35283 2007-02-19 Bruno Haible <bruno@clisp.org>
35285 * lib/string_.h: Use "#pragma GCC system_header" to suppress some gcc
35287 Reported by Ben Pfaff <blp@cs.stanford.edu>.
35289 2007-02-19 Bruno Haible <bruno@clisp.org>
35291 * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Don't request a complaint mail
35294 2007-02-19 Bruno Haible <bruno@clisp.org>
35296 * lib/stdlib_.h: Use "#pragma GCC system_header" to suppress some gcc
35298 Reported by Joel E. Denny <jdenny@ces.clemson.edu> via Paul Eggert.
35300 2007-02-19 Jim Meyering <jim@meyering.net>
35302 Don't use FD after a successful "fdopendir (fd)".
35303 * lib/getcwd.c (__getcwd) [AT_FDCWD]: fdopendir (fd) usually closes fd.
35304 Reset it by calling dirfd on the just-obtained DIR*.
35306 * m4/ftruncate.m4: Adjust comment to give this module a 3-year reprieve.
35307 Prompted by a report from Bruno Haible that mingw lacks ftruncate.
35309 2007-02-18 Bruno Haible <bruno@clisp.org>
35311 * lib/readlink.c: Include <unistd.h>.
35312 * m4/readlink.m4 (gl_FUNC_READLINK): Require gl_UNISTD_H_DEFAULTS. Set
35314 * modules/readlink (Depends-on): Add unistd.
35315 (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
35316 (Include): Add <unistd.h>.
35318 * lib/getlogin_r.h: Remove file.
35319 * lib/getlogin_r.c: Include <unistd.h> instead of getlogin_r.h.
35320 * m4/getlogin_r.m4 (gl_GETLOGIN_R_SUBSTITUTE): Remove macro.
35321 (gl_GETLOGIN_R): Inline it here. Require gl_UNISTD_H_DEFAULTS. Set
35322 HAVE_DECL_GETLOGIN_R.
35323 * modules/getlogin_r (Files): Remove lib/getlogin_r.h.
35324 (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
35325 (Include): Use <unistd.h> instead of getlogin_r.h.
35327 * lib/getcwd.h: Remove file.
35328 * lib/getcwd.c: Include <unistd.h> instead of getcwd.h.
35329 * lib/xgetcwd.c: Likewise.
35330 * m4/getcwd.m4 (gl_FUNC_GETCWD): Require gl_UNISTD_H_DEFAULTS. Set
35331 REPLACE_GETCWD. Don't define __GETCWD_PREFIX.
35332 * modules/getcwd (Files): Remove lib/getcwd.h.
35333 (Depends-on): Add unistd.
35334 (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
35335 (Include): Use <unistd.h> instad of getcwd.h.
35337 * lib/ftruncate.c: Include <unistd.h> first.
35338 * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Require gl_UNISTD_H_DEFAULTS.
35339 Set HAVE_FTRUNCATE.
35340 * modules/ftruncate (Depends-on): Add unistd.
35341 (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
35343 * lib/fchdir.c: Include <unistd.h> first.
35344 * lib/dirent_.h: Test REPLACE_FCHDIR, not FCHDIR_REPLACEMENT.
35345 * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_UNISTD_H_DEFAULTS instead
35346 of gl_HEADER_UNISTD_DEFAULTS. Set REPLACE_FCHDIR. Don't set UNISTD_H.
35347 * modules/fchdir (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
35348 (Makefile.am): Substitute also REPLACE_FCHDIR into dirent.h.
35350 * lib/dup2.c: Include <unistd.h> first.
35351 * m4/dup2.m4 (gl_FUNC_DUP2): Require gl_UNISTD_H_DEFAULTS. Set
35353 * modules/dup2 (Depends-on): Add unistd.
35354 (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
35356 * lib/chown.c: Include <unistd.h> first. Undefine chown later.
35357 * m4/chown.m4 (gl_FUNC_CHOWN): Require gl_UNISTD_H_DEFAULTS. Set
35358 REPLACE_CHOWN. Don't define chown as a macro here.
35359 * modules/chown (Depends-on): Add unistd.
35360 (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
35362 * lib/unistd_.h: Test HAVE_UNISTD_H determined at configure time.
35363 Add definition for GL_LINK_WARNING.
35364 (chown, dup2): New declarations.
35365 (fchdir): Test REPLACE_FCHDIR, not FCHDIR_REPLACEMENT. Provide optional
35367 (ftruncate): New declaration.
35368 (getcwd): New declaration, taken from old getcwd.h.
35369 (getlogin_r): New declaration, taken from old getlogin_r.h.
35370 (readlink): New declaration.
35371 * m4/unistd_h.m4 (gl_UNISTD_H): Renamed from gl_HEADER_UNISTD. Don't
35372 set UNISTD_H. Inline gl_PREREQ_UNISTD. Set HAVE_UNISTD_H.
35373 (gl_PREREQ_UNISTD): Remove macro.
35374 (gl_UNISTD_MODULE_INDICATOR): New macro.
35375 (gl_UNISTD_H_DEFAULTS): Renamed from gl_HEADER_UNISTD_DEFAULTS. Set
35376 many new variables. Don't set UNISTD_H.
35377 * modules/unistd (Description): Change.
35378 (Depends-on): Add link-warning.
35379 (configure.ac): Update.
35380 (Makefile.am): Create unistd.h always. Substitute many new variables
35383 2007-02-18 Bruno Haible <bruno@clisp.org>
35385 * lib/stdlib_.h (getsubopt): New declaration, copied from getsubopt.h.
35386 * modules/stdlib (stdlib.h): Also substitute GNULIB_GETSUBOPT and
35388 * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Also initialize
35389 GNULIB_GETSUBOPT and HAVE_GETSUBOPT.
35390 * lib/getsubopt.h: Remove file.
35391 * modules/getsubopt (Files): Remove lib/getsubopt.h.
35392 (Depends-on): Add stdlib.
35393 (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
35394 (Includes): Use <stdlib.h> instead of getsubopt.h.
35395 * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Require gl_STDLIB_H_DEFAULTS.
35396 Set HAVE_GETSUBOPT.
35397 * lib/getsubopt.c: Don't include getsubopt.h.
35399 2007-02-18 Bruno Haible <bruno@clisp.org>
35401 * modules/fchdir (Depends-on): Add dup2.
35403 2007-02-18 Bruno Haible <bruno@clisp.org>
35405 * lib/stdlib_.h: Handle glibc's special invocation convention
35408 2007-02-18 Bruno Haible <bruno@clisp.org>
35410 * modules/stdlib-tests: New file.
35411 * tests/test-stdlib.c: New file.
35413 * modules/mkstemp (Files): Remove lib/mkstemp.h.
35414 (Depends-on): Add stdlib.
35415 (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
35416 (Includes): Use <stdlib.h> instead of mkstemp.h.
35417 * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Require gl_STDLIB_H_DEFAULTS. Set
35418 REPLACE_MKSTEMP. Remove definition of __MKSTEMP_PREFIX.
35419 * lib/mkstemp.c: Don't include mkstemp.h.
35420 * lib/mkstemp-safer.c: Include <stdlib.h> instead of mkstemp.h.
35421 * lib/stdlib--.h: Don't include mkstemp.h.
35423 * modules/mkdtemp (Files): Remove lib/mkdtemp.h.
35424 (Depends-on): Add stdlib.
35425 (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
35426 (Includes): Use <stdlib.h> instead of mkdtemp.h.
35427 * m4/mkdtemp.m4 (gt_FUNC_MKDTEMP): Require gl_STDLIB_H_DEFAULTS. Set
35429 * lib/mkdtemp.c: Don't include mkdtemp.h.
35430 * lib/clean-temp.c: Don't include mkdtemp.h.
35432 * modules/exit (Files): Remove lib/exit.h.
35433 (Depends-on): Add stdlib.
35434 (Makefile.am): Remove lib_SOURCES.
35435 (Include): Use <stdlib.h> instead of exit.h.
35436 * lib/argmatch.c: Don't include exit.h.
35437 * lib/execute.c: Likewise.
35438 * lib/pagealign_alloc.c: Likewise.
35439 * lib/pipe.c: Likewise.
35440 * lib/wait-process.c: Likewise.
35441 * lib/copy-file.c: Include <stdlib.h> instead of exit.h.
35442 * lib/exitfail.c: Likewise.
35443 * lib/savewd.c: Likewise.
35444 * lib/xsetenv.c: Likewise.
35446 * modules/stdlib: New file.
35447 * lib/stdlib_.h: New file, incorporating exit.h, mkdtemp.h, mkstemp.h
35448 and extra comments about mkstemp().
35449 * lib/exit.h: Remove file.
35450 * lib/mkdtemp.h: Remove file.
35451 * lib/mkstemp.h: Remove file.
35452 * m4/stdlib_h.m4: New file.
35453 * MODULES.html.sh (Support for systems lacking ANSI C 89): Add stdlib.
35455 2007-02-18 Bruno Haible <bruno@clisp.org>
35457 * modules/math-tests: New file.
35458 * tests/test-math.c: New file.
35460 * modules/math: New file.
35461 * modules/mathl (Files): Remove lib/mathl.h.
35462 (Depends-on): Add math.
35463 (Makefile.am): Don't mention mathl.h.
35464 (Include): Use <math.h> instead of mathl.h.
35465 * lib/math_.h: New file.
35466 * lib/mathl.h: Remove file.
35467 * lib/acosl.c: Include <config.h> and <math.h> first. Don't include
35469 * lib/asinl.c: Likewise.
35470 * lib/atanl.c: Likewise.
35471 * lib/ceill.c: Likewise.
35472 * lib/cosl.c: Likewise.
35473 * lib/expl.c: Likewise.
35474 * lib/floorl.c: Likewise.
35475 * lib/frexpl.c: Likewise.
35476 * lib/ldexpl.c: Likewise.
35477 * lib/logl.c: Likewise.
35478 * lib/sincosl.c: Likewise.
35479 * lib/sinl.c: Likewise.
35480 * lib/sqrtl.c: Likewise.
35481 * lib/tanl.c: Likewise.
35482 * lib/trigl.c: Likewise.
35483 * m4/math_h.m4: New file.
35484 * MODULES.html.sh (Mathematics): Add math.
35486 2007-02-17 Bruno Haible <bruno@clisp.org>
35488 * modules/wctype-tests: New file.
35489 * tests/test-wctype.c: New file.
35491 * modules/wchar-tests: New file.
35492 * tests/test-wchar.c: New file.
35494 * modules/unistd-tests: New file.
35495 * tests/test-unistd.c: New file.
35497 * modules/time-tests: New file.
35498 * tests/test-time.c: New file.
35500 * modules/sysexits-tests: New file.
35501 * tests/test-sysexits.c: New file.
35503 * modules/sys_time-tests: New file.
35504 * tests/test-sys_time.c: New file.
35506 * modules/sys_stat-tests: New file.
35507 * tests/test-sys_stat.c: New file.
35509 * modules/sys_socket-tests: New file.
35510 * tests/test-sys_socket.c: New file.
35512 * modules/sys_select-tests: New file.
35513 * tests/test-sys_select.c: New file.
35515 * modules/string-tests: New file.
35516 * tests/test-string.c: New file.
35518 * modules/stdbool-tests: New file.
35519 * tests/test-stdbool.c: New file.
35521 * modules/netinet_in-tests: New file.
35522 * tests/test-netinet_in.c: New file.
35524 * modules/inttypes-tests: New file.
35525 * tests/test-inttypes.c: New file.
35527 * modules/fcntl-tests: New file.
35528 * tests/test-fcntl.c: New file.
35530 * modules/byteswap-tests: New file.
35531 * tests/test-byteswap.c: New file.
35533 * modules/arpa_inet-tests: New file.
35534 * tests/test-arpa_inet.c: New file.
35536 2007-02-17 Bruno Haible <bruno@clisp.org>
35538 * lib/inttypes_.h: Add definition for GL_LINK_WARNING.
35539 (imaxabs, imaxdiv, strtoimax, strtoumax): Don't declare the function
35540 if the corresponding module is not enabled. Emit link warnings if
35541 the function is used nevertheless.
35542 * m4/inttypes.m4 (gl_INTTYPES_H): Never use the existing <inttypes.h>.
35543 Don't AC_SUBST HAVE_DECL_IMAXABS, HAVE_DECL_IMAXDIV,
35544 HAVE_DECL_STRTOIMAX, HAVE_DECL_STRTOUMAX.
35545 (gl_INTTYPES_MODULE_INDICATOR, gl_INTTYPES_H_DEFAULTS): New macros.
35546 * modules/inttypes (Depends-on): Add link-warning.
35547 (Makefile.am): Copy the contents of build-aux/link-warning.h into
35548 inttypes.h. Substitute also GNULIB_IMAXABS, GNULIB_IMAXDIV,
35549 GNULIB_STRTOIMAX, GNULIB_STRTOUMAX.
35550 * modules/imaxabs (configure.ac): Invoke gl_INTTYPES_MODULE_INDICATOR.
35551 * modules/imaxdiv (configure.ac): Likewise.
35552 * modules/strtoimax (configure.ac): Likewise.
35553 * modules/strtoumax (configure.ac): Likewise.
35555 2007-02-17 Bruno Haible <bruno@clisp.org>
35557 * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Include the contents of
35558 gl_STRING_MODULE_INDICATOR_DEFAULTS.
35559 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Remove macro.
35560 (gl_HEADER_STRING_H_BODY, gl_STRING_MODULE_INDICATOR): Update.
35562 2007-02-17 Bruno Haible <bruno@clisp.org>
35564 * modules/link-warning: New file.
35565 * build-aux/link-warning.h: New file, extracted from lib/string_.h.
35566 * lib/string_.h (GL_LINK_WARNING): Remove definition.
35567 * modules/string (Depends-on): Add link-warning.
35568 (Makefile.am): Copy the contents of build-aux/link-warning.h into
35570 * MODULES.html.sh (Support for building libraries and executables): Add
35573 2007-02-17 Bruno Haible <bruno@clisp.org>
35575 * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strcasecmp,
35576 strncasecmp, strchr, strchrnul, strdup, strndup, strnlen, strcspn,
35577 strpbrk, strspn, strrchr, strsep, strstr, strcasestr, strtok_r): Break
35580 2007-02-17 Ben Pfaff <blp@cs.stanford.edu>
35581 Bruno Haible <bruno@clisp.org>
35583 * modules/tmpfile: New file.
35584 * lib/tmpfile.c: New file.
35585 * m4/tmpfile.m4: New file.
35586 * MODULES.html.sh (func_all_modules): New section "Input/output".
35588 2007-02-15 Bruno Haible <bruno@clisp.org>
35590 * lib/clean-temp.c [WIN32 && !CYGWIN]: Include <windows.h>.
35591 (supports_delete_on_close): New function.
35592 (open_temp, fopen_temp): Use _O_TEMPORARY when supported.
35594 2007-02-14 Bruno Haible <bruno@clisp.org>
35596 * modules/mbspcasecmp-tests: New file.
35597 * tests/test-mbspcasecmp.sh: New file.
35598 * tests/test-mbspcasecmp.c: New file.
35600 New module mbspcasecmp.
35601 * modules/mbspcasecmp: New file.
35602 * lib/mbspcasecmp.c: New file.
35603 * lib/string_.h (strncasecmp): Change warning message.
35604 (mbspcasecmp): New declaration.
35605 * m4/mbspcasecmp.m4: New file.
35606 * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
35607 GNULIB_MBSPCASECMP.
35608 * modules/string (string.h): Also substitute GNULIB_MBSPCASECMP.
35609 * MODULES.html.sh (Internationalization functions): Add mbspcasecmp.
35611 2007-02-14 Bruno Haible <bruno@clisp.org>
35613 * modules/mbsncasecmp-tests: New file.
35614 * tests/test-mbsncasecmp.sh: New file.
35615 * tests/test-mbsncasecmp.c: New file.
35617 New module mbsncasecmp.
35618 * modules/mbsncasecmp: New file.
35619 * lib/mbsncasecmp.c: New file.
35620 * lib/string_.h (mbsncasecmp): New declaration.
35621 * m4/mbsncasecmp.m4: New file.
35622 * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
35623 GNULIB_MBSNCASECMP.
35624 * modules/string (string.h): Also substitute GNULIB_MBSNCASECMP.
35625 * MODULES.html.sh (Internationalization functions): Add mbsncasecmp.
35627 2007-02-14 Paul Eggert <eggert@cs.ucla.edu>
35629 * lib/exclude.c (FNM_EXTMATCH): Define if system does not.
35630 Verify that it doesn't overlap with our flags.
35631 (fnmatch_no_wildcards): Don't use strcasecmp or strncasecmp, which
35632 do not have the desired effect in multibyte locales; instead, use
35634 * modules/exclude (Depends-on): Depend on mbscasecmp, not strcase.
35635 Add dependency on xalloc. Depend on fnmatch, not fnmatch-gnu, since
35636 we don't require GNU fnmatch ourselves (if our users require it, they
35637 should do so explicitly).
35639 Fix regex code so it doesn't rely on strcasecmp.
35640 * lib/regex_internal.h: Include <langinfo.h> only if _LIBC is defined.
35641 Otherwise, include gnulib's langinfo.h.
35642 * lib/regcomp.c (init_dfa): Don't use strcasecmp, as it can have
35643 undesirable behavior in non-C locales. Instead, rely on localecharset.
35644 * m4/regex.m4 (gl_PREREQ_REGEX): Don't require AM_LANGINFO_CODESET.
35645 * modules/regex (FILES): Remove m4/codeset.m4.
35646 (Depends-on): Add localcharset. Remove strcase.
35648 2007-02-13 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
35650 * m4/unlinkdir.m4 (gl_UNLINKDIR): Fix m4 quoting bug.
35651 * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Likewise.
35653 2007-02-13 Bruno Haible <bruno@clisp.org>
35655 * m4/intdiv0.m4 (gt_INTDIV0): Assume ANSI C. Fix underquoting bug.
35656 Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
35658 2007-02-12 Bruno Haible <bruno@clisp.org>
35660 * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strchrnul,
35661 strdup, strndup, strnlen, strpbrk, strsep, strtok_r): If
35662 GNULIB_POSIXCHECK and the gnulib module not enabled, provoke a link-
35663 time warning rather than a link error.
35665 2007-02-12 Bruno Haible <bruno@clisp.org>
35667 * m4/locale-fr.m4 (gt_LOCALE_FR): Fix m4 quoting bug.
35668 * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
35669 Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
35671 2007-02-12 Paul Eggert <eggert@cs.ucla.edu>
35673 * lib/string_.h (strncasecmp): Fix typo: this macro takes 3
35676 2007-02-12 Paul Eggert <eggert@cs.ucla.edu>
35678 New module 'time', so that apps can include <time.h> as per
35679 POSIX and GNU instead of separate include files like time_r.h
35680 and timegm.h. This implementation tries out a simpler approach
35681 for replacing decls in standard include files (as compared to
35682 the string module), somewhat as an experiment.
35684 * config/srclist.txt: Comment out mktime.c for now.
35685 * doc/gnulib-tool.texi (Initial import): Don't use time_r as an example
35686 since it doesn't apply any more. Use generic wording instead.
35687 * MODULES.html.sh (Support for systems lacking POSIX:2001): New module
35689 * lib/time_.h, m4/time_h.m4, modules/time: New files.
35690 * lib/strptime.h, lib/time_r.h, lib/timegm.h: Remove.
35691 * lib/mktime.c: Include config.h depending on _LIBC, not HAVE_CONFIG_H.
35692 Don't include <sys/types.h>; no longer needed since we assume C89.
35693 * lib/mktime.c: Don't include "time_r.h"; no longer needed.
35694 * lib/strftime.c: Likewise.
35695 * lib/time_r.c: Likewise.
35696 * lib/nanosleep.c (nanosleep): #undef after include files, not before.
35697 * lib/nanosleep.c: Include <time.h> first, to check interface.
35698 * lib/strptime.c: Likewise.
35699 * lib/time_r.c: Likewise.
35700 * lib/timegm.c: Likewise.
35701 * lib/strptime.c: Don't include strptime.h or time_r.h; no longer
35703 * lib/timegm.c: Don't include timegm.h; no longer needed.
35704 * lib/timespec.h: Don't include <sys/time.h> before <time.h>;
35705 time.h now handles any problems in that area.
35706 (struct timespec, nanosleep): Remove; time.h now arranges for these.
35707 * lib/xnanosleep.c: Don't include timespec.h; no longer needed now
35708 that time.h defines struct timespec.
35709 * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Check that nanosleep is declared.
35710 Set REPLACE_NANOSLEEP. Don't AC_DEFINE nanosleep; the time module now
35712 * m4/strptime.m4 (gl_FUNC_STPRTIME): Set REPLACE_STRPTIME.
35713 * m4/time_r.m4 (gl_TIME_R): Don't define HAVE_TIME_R_POSIX; no longer
35714 needed. Set REPLACE_LOCALTIME.
35715 * m4/timegm.m4 (gl_FUNC_TIMEGM): Set REPLACE_TIMEGM.
35716 * m4/timespec.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Move to time_h.m4.
35717 (gl_TIMESPEC): Don't check for sys/time.h or struct timespec or
35718 nanosleep; time_h.m4 now does that. Don't require
35719 gl_USE_SYSTEM_EXTENSIONS; no longer needed directly, and the time
35720 module handles this now.
35721 * modules/getdate (Depends-on): Remove timespec. Add time.
35722 * modules/nanosleep (Depends-on): Likewise.
35723 * modules/stat-time (Depends-on): Likewise.
35724 * modules/nanosleep (Include): Include time.h, not timespec.h.
35725 * modules/strptime (Files): Remove lib/strptime.h.
35726 (Depends-on): Add extensions, time.
35727 (Include): Include time.h, not strptime.h.
35728 * modules/time_r (Files): Remove lib/time_r.h.
35729 (Depends-on): Add time.
35730 (Include): Include time.h, not time_r.h.
35731 * modules/timegm: Likewise.
35732 * modules/timespec (Description): Now does timespec-related decls
35733 of our own, instead of struct timespec itself.
35734 (Depends-on): Add time; remove extensions.
35735 (Maintainer): Add self.
35736 * modules/utimecmp (Depends-on): Add time; remove timespec.
35737 * modules/utimens (Depends-on): Likewise.
35738 * modules/xnanosleep (Depends-on): Likewise.
35740 2007-02-11 Bruno Haible <bruno@clisp.org>
35742 * lib/c-strstr.c: Include allocsa.h.
35743 (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
35744 * lib/c-strcasestr.c: Include allocsa.h.
35745 (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
35746 * lib/strcasestr.c: Include allocsa.h.
35747 (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
35748 * lib/mbsstr.c: Include allocsa.h.
35749 (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): Use
35750 allocsa/freesa instead of malloc/free.
35751 * lib/mbscasestr.c: Include allocsa.h.
35752 (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): Use
35753 allocsa/freesa instead of malloc/free.
35754 * modules/c-strstr (Depends-on): Add allocsa.
35755 * modules/c-strcasestr (Depends-on): Likewise.
35756 * modules/strcasestr (Depends-on): Likewise.
35757 * modules/mbsstr (Depends-on): Likewise.
35758 * modules/mbscasestr (Depends-on): Likewise.
35760 2007-02-11 Bruno Haible <bruno@clisp.org>
35762 * lib/mbsspn.c (mbsspn): Fix bug. Remove unnecessary strlen call.
35764 * modules/mbsspn-tests: New file.
35765 * tests/test-mbsspn.sh: New file.
35766 * tests/test-mbsspn.c: New file.
35768 2007-02-11 Bruno Haible <bruno@clisp.org>
35770 * lib/mbspbrk.c (mbspbrk): Remove unneeded cast.
35772 * modules/mbspbrk-tests: New file.
35773 * tests/test-mbspbrk.sh: New file.
35774 * tests/test-mbspbrk.c: New file.
35776 2007-02-11 Bruno Haible <bruno@clisp.org>
35778 * lib/mbscspn.c (mbscspn): Remove unnecessary strlen call and
35781 * modules/mbscspn-tests: New file.
35782 * tests/test-mbscspn.sh: New file.
35783 * tests/test-mbscspn.c: New file.
35785 2007-02-11 Bruno Haible <bruno@clisp.org>
35787 * modules/mbscasecmp-tests: New file.
35788 * tests/test-mbscasecmp.sh: New file.
35789 * tests/test-mbscasecmp.c: New file.
35791 2007-02-11 Bruno Haible <bruno@clisp.org>
35793 Ensure O(n) worst-case complexity of mbscasestr.
35794 * lib/mbscasestr.c: Include stdbool.h.
35795 (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): New
35797 (mbscasestr): Add some bookkeeping. Invoke knuth_morris_pratt_* when
35798 the bookkeeping indicates that it's worth it.
35799 * modules/mbscasestr (Depends-on): Add stdbool, mbslen, strnlen.
35801 * modules/mbscasestr-tests: New file.
35802 * tests/test-mbscasestr1.c: New file.
35803 * tests/test-mbscasestr2.sh: New file.
35804 * tests/test-mbscasestr2.c: New file.
35805 * tests/test-mbscasestr3.sh: New file.
35806 * tests/test-mbscasestr3.c: New file.
35807 * tests/test-mbscasestr4.sh: New file.
35808 * tests/test-mbscasestr4.c: New file.
35809 * m4/locale-tr.m4: New file.
35811 2007-02-11 Bruno Haible <bruno@clisp.org>
35813 Ensure O(n) worst-case complexity of mbsstr.
35814 * lib/mbsstr.c: Include stdbool.h.
35815 (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): New
35817 (mbsstr): Add some bookkeeping. Invoke knuth_morris_pratt_* when the
35818 bookkeeping indicates that it's worth it.
35819 * modules/mbsstr (Depends-on): Add stdbool, mbslen, strnlen.
35821 * modules/mbsstr-tests: New file.
35822 * tests/test-mbsstr1.c: New file.
35823 * tests/test-mbsstr2.sh: New file.
35824 * tests/test-mbsstr2.c: New file.
35825 * tests/test-mbsstr3.sh: New file.
35826 * tests/test-mbsstr3.c: New file.
35827 * m4/locale-fr.m4: New file.
35829 2007-02-11 Bruno Haible <bruno@clisp.org>
35831 * lib/mbsrchr.c (mbsrchr): Fix bug.
35833 * modules/mbsrchr-tests: New file.
35834 * tests/test-mbsrchr.sh: New file.
35835 * tests/test-mbsrchr.c: New file.
35837 2007-02-11 Bruno Haible <bruno@clisp.org>
35839 * lib/mbschr.c (mbschr): Fix bug.
35841 * modules/mbschr-tests: New file.
35842 * tests/test-mbschr.sh: New file.
35843 * tests/test-mbschr.c: New file.
35844 * m4/locale-zh.m4: New file.
35846 2007-02-11 Bruno Haible <bruno@clisp.org>
35848 Support for copying multibyte string iterators.
35849 * lib/mbiter.h: Include <string.h>.
35850 (mbiter_multi_copy): New function.
35851 (mbi_copy): New macro.
35852 * lib/mbuiter.h: Include <string.h>.
35853 (mbuiter_multi_copy): New function.
35854 (mbui_copy): New macro.
35856 2007-02-11 Bruno Haible <bruno@clisp.org>
35859 * modules/mbslen: New file.
35860 * lib/mbslen.c: New file.
35861 * lib/string_.h (mbslen): New declaration.
35862 * m4/mbslen.m4: New file.
35863 * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
35865 * modules/string (string.h): Also substitute GNULIB_MBSLEN.
35866 * MODULES.html.sh (Internationalization functions): Add mbslen.
35868 2007-02-11 Bruno Haible <bruno@clisp.org>
35870 Ensure O(n) worst-case complexity of strcasestr substitute.
35871 * lib/strcasestr.c: Include stdbool.h.
35872 (knuth_morris_pratt): New function.
35873 (strcasestr): Add some bookkeeping. Invoke knuth_morris_pratt when the
35874 bookkeeping indicates that it's worth it.
35875 * modules/strcasestr (Depends-on): Add stdbool, strnlen.
35877 * modules/strcasestr-tests: New file.
35878 * tests/test-strcasestr.c: New file.
35880 2007-02-11 Bruno Haible <bruno@clisp.org>
35882 Ensure O(n) worst-case complexity of c_strcasestr.
35883 * lib/c-strcasestr.c: Include stdbool.h, string.h.
35884 (knuth_morris_pratt): New function.
35885 (c_strcasestr): Add some bookkeeping. Invoke knuth_morris_pratt when
35886 the bookkeeping indicates that it's worth it.
35887 * modules/c-strcasestr (Depends-on): Add stdbool, strnlen.
35889 * modules/c-strcasestr-tests: New file.
35890 * tests/test-c-strcasestr.c: New file.
35892 2007-02-11 Bruno Haible <bruno@clisp.org>
35894 Ensure O(n) worst-case complexity of c_strstr.
35895 * lib/c-strstr.c: Include stdbool.h, string.h.
35896 (knuth_morris_pratt): New function.
35897 (c_strstr): Add some bookkeeping. Invoke knuth_morris_pratt when the
35898 bookkeeping indicates that it's worth it.
35899 * modules/c-strstr (Depends-on): Add stdbool, strnlen.
35901 * lib/c-strstr.c: Complete rewrite for maintainability.
35903 * modules/c-strstr-tests: New file.
35904 * tests/test-c-strstr.c: New file.
35906 2007-02-11 Bruno Haible <bruno@clisp.org>
35908 * m4/javacomp.m4 (gt_JAVACOMP): Work around a 'tr' bug in coreutils
35909 5.2.1 and earlier, whereby \055 was treated just like the range
35911 Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
35913 2007-02-08 Bruno Haible <bruno@clisp.org>
35915 * modules/regex (Depends-on): Add stdbool.
35916 Reported by Dalibor Topic <robilad@kaffe.org>.
35918 2007-02-05 Paul Eggert <eggert@cs.ucla.edu>
35920 * m4/regex.m4 (gl_REGEX): Check for glibc bug #3957.
35921 Prefer returning from main to exiting from it.
35922 Remove unnecessary parens after sizeof.
35924 2007-02-05 Bruno Haible <bruno@clisp.org>
35927 * modules/mbssep: New file.
35928 * lib/mbssep.c: New file.
35929 * lib/string_.h (strsep): Add a conditional link warning.
35930 (mbssep): New declaration.
35931 * m4/mbssep.m4: New file.
35932 * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
35934 * modules/string (string.h): Also substitute GNULIB_MBSSEP.
35935 * MODULES.html.sh (Internationalization functions): Add mbssep.
35937 2007-02-05 Bruno Haible <bruno@clisp.org>
35939 * lib/strsep.c (strsep): Fix actions in case of no delimiters.
35940 Optimize search in case of 1 delimiter.
35942 2007-02-05 Paolo Bonzini <bonzini@gnu.org>
35944 * lib/acl.h: Include sys/types.h before sys/acl.h.
35946 2007-02-05 Paolo Bonzini <bonzini@gnu.org>
35948 Merge upstream fix for glibc bugzilla #3957:
35950 2007-02-05 Jakub Jelinek <jakub@redhat.com>
35952 * lib/regcomp.c (parse_bracket_exp): Set '\n' bit rather than '\0'
35953 bit for RE_HAT_LISTS_NOT_NEWLINE.
35954 (build_charclass_op): Remove bogus comment.
35956 2007-02-05 Simon Josefsson <simon@josefsson.org>
35958 * lib/gc.h, lib/gc-libgcrypt.c: Support SHA-256/384/512.
35960 2007-02-04 Paul Eggert <eggert@cs.ucla.edu>
35962 * lib/getsubopt.c [!_LIBC]: Include config.h and getsubopt.h.
35963 * lib/memmem.c [!defined _LIBC]: Include config.h.
35965 2007-02-04 Bruno Haible <bruno@clisp.org>
35967 * lib/string_.h (GL_LINK_WARNING2): Put the word "warning:" into the
35970 2007-02-04 Bruno Haible <bruno@clisp.org>
35972 New module mbstok_r.
35973 * modules/mbstok_r: New file.
35974 * lib/mbstok_r.c: New file.
35975 * lib/string_.h (strtok_r): Change argument names to match the
35976 comments. Add a conditional link warning.
35977 (mbstok_r): New declaration.
35978 * m4/mbstok_r.m4: New file.
35979 * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
35981 * modules/string (string.h): Also substitute GNULIB_MBSTOK_R.
35982 * MODULES.html.sh (Internationalization functions): Add mbstok_r.
35984 2007-02-04 Bruno Haible <bruno@clisp.org>
35987 * modules/mbsspn: New file.
35988 * lib/mbsspn.c: New file.
35989 * lib/string_.h (strspn): Add a conditional link warning.
35990 (mbsspn): New declaration.
35991 * m4/mbsspn.m4: New file.
35992 * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
35994 * modules/string (string.h): Also substitute GNULIB_MBSSPN.
35995 * MODULES.html.sh (Internationalization functions): Add mbsspn.
35997 2007-02-04 Bruno Haible <bruno@clisp.org>
35999 New module mbspbrk.
36000 * modules/mbspbrk: New file.
36001 * lib/mbspbrk.c: New file.
36002 * lib/string_.h (strpbrk): Add a conditional link warning.
36003 (mbspbrk): New declaration.
36004 * m4/mbspbrk.m4: New file.
36005 * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
36007 * modules/string (string.h): Also substitute GNULIB_MBSPBRK.
36008 * MODULES.html.sh (Internationalization functions): Add mbspbrk.
36010 2007-02-04 Bruno Haible <bruno@clisp.org>
36012 New module mbscspn.
36013 * modules/mbscspn: New file.
36014 * lib/mbscspn.c: New file.
36015 * lib/string_.h (strcspn): Add a conditional link warning.
36016 (mbscspn): New declaration.
36017 * m4/mbscspn.m4: New file.
36018 * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
36020 * modules/string (string.h): Also substitute GNULIB_MBSCSPN.
36021 * MODULES.html.sh (Internationalization functions): Add mbscspn.
36023 2007-02-04 Bruno Haible <bruno@clisp.org>
36025 New module mbscasestr, reduced goal of strcasestr.
36026 * modules/mbscasestr: New file.
36027 * lib/mbscasestr.c: New file, copied from lib/strcasestr.c.
36028 (mbscasestr): Renamed from strcasestr.
36029 * lib/strcasestr.c: Don't include mbuiter.h.
36030 (strcasestr): Remove support for multibyte locales.
36031 * lib/string_.h (strcasestr): Don`t rename. Declare only if missing.
36032 Change the conditional link warning.
36033 (mbscasestr): New declaration.
36034 * m4/mbscasestr.m4: New file.
36035 * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Enable the replacement only if
36036 the system does not have strcasestr. Set HAVE_STRCASESTR instead of
36037 REPLACE_STRCASESTR.
36038 (gl_PREREQ_STRCASESTR): Don't require gl_FUNC_MBRTOWC.
36039 * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
36040 HAVE_STRCASESTR instead of REPLACE_STRCASESTR.
36041 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize GNULIB_MBSCASESTR.
36042 * modules/string (string.h): Also substitute GNULIB_MBSCASESTR.
36043 Substitute HAVE_STRCASESTR instead of REPLACE_STRCASESTR.
36044 * modules/strcasestr (Files): Remove m4/mbrtowc.m4.
36045 (Depends-on): Remove mbuiter.
36046 * MODULES.html.sh (Internationalization functions): Add mbscasestr.
36048 2007-02-04 Bruno Haible <bruno@clisp.org>
36050 Simplify handling of strncasecmp.
36051 * lib/string_.h (strncasecmp): Remove test for GNULIB_STRCASE. Change
36052 the conditional link warning.
36053 * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
36054 HAVE_STRCASECMP, not REPLACE_STRCASECMP.
36055 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Don't initialize GNULIB_STRCASE.
36056 * modules/strcase (configure.ac): Don't invoke
36057 gl_STRING_MODULE_INDICATOR.
36058 * modules/string (string.h): Don't substitute GNULIB_STRCASE.
36060 2007-02-04 Bruno Haible <bruno@clisp.org>
36062 New module mbscasecmp, reduced goal of strcasecmp.
36063 * modules/mbscasecmp: New file.
36064 * lib/mbscasecmp.c: New file, copied from lib/strcasecmp.c.
36065 (mbscasecmp): Renamed from strcasecmp.
36066 * lib/strcasecmp.c: Don't include mbuiter.h.
36067 (strcasecmp): Remove support for multibyte locales.
36068 * lib/string_.h (strcasecmp): Don`t rename. Declare only if missing.
36069 Change the conditional link warning.
36070 (mbscasecmp): New declaration.
36071 * m4/mbscasecmp.m4: New file.
36072 * m4/strcase.m4 (gl_FUNC_STRCASECMP): Enable the replacement only if
36073 the system lacks strcasecmp. Set HAVE_STRCASECMP instead of
36074 REPLACE_STRCASECMP.
36075 (gl_PREREQ_STRCASECMP): Don't require gl_FUNC_MBRTOWC.
36076 * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
36078 * modules/string (string.h): Also substitute GNULIB_MBSCASECMP.
36079 Substitute HAVE_STRCASECMP instead of REPLACE_STRCASECMP.
36080 * modules/strcase (Files): Remove m4/mbrtowc.m4.
36081 (Depends-on): Remove mbuiter.
36082 * MODULES.html.sh (Internationalization functions): Add mbscasecmp.
36084 2007-02-04 Bruno Haible <bruno@clisp.org>
36086 New module mbsstr. Remove module strstr.
36087 * modules/mbsstr: New file.
36088 * modules/strstr: Remove file.
36089 * lib/mbsstr.c: Renamed from lib/strstr.c.
36090 (mbsstr): Renamed from strstr.
36091 * lib/string_.h (strstr): Remove declaration. Change the conditional
36093 (mbsstr): New declaration.
36094 * m4/mbsstr.m4: New file.
36095 * m4/strstr.m4: Remove file.
36096 * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Don't initialize
36098 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize GNULIB_MBSSTR.
36099 Don't initialize GNULIB_STRSTR.
36100 * modules/string (string.h): Also substitute GNULIB_MBSSTR. Don't
36101 substitute GNULIB_STRSTR and REPLACE_STRSTR.
36102 * MODULES.html.sh (Internationalization functions): Add mbsstr.
36103 (Support for systems lacking ANSI C 89): Remove strstr.
36105 2007-02-04 Bruno Haible <bruno@clisp.org>
36107 New module mbsrchr.
36108 * modules/mbsrchr: New file.
36109 * lib/mbsrchr.c: New file.
36110 * lib/string_.h (strrchr): Add a conditional link warning.
36111 (mbsrchr): New declaration.
36112 * m4/mbsrchr.m4: New file.
36113 * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
36115 * modules/string (string.h): Also substitute GNULIB_MBSRCHR.
36116 * MODULES.html.sh (Internationalization functions): Add mbsrchr.
36118 2007-02-04 Bruno Haible <bruno@clisp.org>
36121 * modules/mbschr: New file.
36122 * lib/mbschr.c: New file.
36123 * lib/string_.h (strchr): Add a conditional link warning.
36124 (mbschr): New declaration.
36125 * m4/mbschr.m4: New file.
36126 * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
36128 * modules/string (string.h): Also substitute GNULIB_MBSCHR.
36129 * MODULES.html.sh (Internationalization functions): Add mbschr.
36131 2007-02-04 Paul Eggert <eggert@cs.ucla.edu>
36133 * lib/stdbool_.h: Mention that bool bit-fields aren't supported.
36135 * modules/stdarg (configure.ac-early): Require AC_PROG_CC_STDC.
36137 2007-02-04 Bruno Haible <bruno@clisp.org>
36139 New module description section 'configure.ac-early'.
36140 * gnulib-tool (sed_extract_prog): Recognize configure.ac-early.
36141 (func_get_autoconf_early_snippet): New function.
36142 (func_import, func_create_testdir): Use it. Remove special cases for
36143 modules 'extensions' and 'lock'.
36144 * modules/extensions (configure.ac-early): Require
36145 gl_USE_SYSTEM_EXTENSIONS.
36146 * modules/lock (configure.ac-early): Require gl_LOCK_EARLY.
36148 2007-02-04 Bruno Haible <bruno@clisp.org>
36150 Make use of gcj-4.3's -fsource and -ftarget option.
36151 * m4/javacomp.m4 (gt_JAVACOMP): Test whether gcj is in version >= 4.3,
36152 and if so try the options -fsource and -ftarget.
36153 * lib/javacomp.c (compile_using_gcj): Add fsource_option,
36154 source_version, ftarget_option, target_version arguments.
36155 (is_envjavac_gcj43, is_envjavac_gcj43_usable): New functions.
36156 (is_envjavac_oldgcj_14_14_usable): Renamed from
36157 is_envjavac_gcj_14_14_usable.
36158 (is_envjavac_oldgcj_14_13_usable): Renamed from
36159 is_envjavac_gcj_14_13_usable.
36160 (is_gcj_present): Update.
36161 (is_gcj_43, is_gcj43_usable): New functions.
36162 (is_oldgcj_14_14_usable): Renamed from is_gcj_14_14_usable. Update.
36163 (is_oldgcj_14_13_usable): Renamed from is_gcj_14_13_usable. Update.
36164 (compile_java_class): Test whether gcj is in version >= 4.3, and if so
36165 try the options -fsource and -ftarget.
36167 2007-02-03 Paul Eggert <eggert@cs.ucla.edu>
36169 * lib/xalloc.h (x2nrealloc): Fix an unlikely bug in the overflow
36170 checking code. Set N = ceil (1.5 * N) rather than to a slightly
36173 2007-02-03 Jim Meyering <jim@meyering.net>
36175 Give tools a better chance to allocate space for very large buffers.
36176 * lib/xalloc.h (x2nrealloc): Use 3/2, not 2, as buffer size factor.
36178 Make pwd and readlink work also when run with an unreadable parent dir
36179 on systems with openat support.
36180 * lib/getcwd.c (__getcwd) [HAVE_PARTLY_WORKING_GETCWD]: Use the system
36181 provided getcwd function, even when we have openat support.
36182 Reported by Dmitry V. Levin in <http://bugzilla.redhat.com/227168>.
36184 2007-02-02 Bruno Haible <bruno@clisp.org>
36186 * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strchrnul,
36187 strdup, strndup, strnlen, strpbrk, strsep, strtok_r): Provoke a link
36188 error only if GNULIB_POSIXCHECK is defined. Needed to avoid artificial
36189 portability problems if one of these functions is only used on specific
36191 Reported by Paul Eggert.
36193 2007-02-02 Paul Eggert <eggert@cs.ucla.edu>
36195 Avoid mempcpy in the regex code, as the string.h mempcpy stuff
36196 is causing more trouble than it's curing.
36197 * lib/regex_internal.h (__mempcpy): Remove.
36198 * lib/regcomp.c (regerror): Rewrite to avoid the need for mempcpy
36199 (and make the code a tad smaller to boot).
36200 * m4/regex.m4 (gl_PREREQ_REGEX): Don't check for mempcpy.
36202 2007-02-02 Jim Meyering <jim@meyering.net>
36204 * modules/arpa_inet: Put AC_PROG_MKDIR_P in the configure.ac:
36205 section, not in the Makefile.am: one.
36207 2007-02-02 Eric Blake <ebb9@byu.net>
36209 * lib/strchrnul.c: Always include config.h first.
36211 * modules/mountlist (Depends-on): Revert 2007-01-31 change,
36212 gnulib strstr is not necessary here.
36214 2007-02-02 Simon Josefsson <simon@josefsson.org>
36216 * m4/socklen.m4: Fix typo.
36218 2007-02-02 Eric Blake <ebb9@byu.net>
36220 * modules/arpa_inet (Makefile.am): Use MKDIR_P to avoid races.
36221 * modules/netinet_in (Makefile.am): Likewise.
36223 2007-02-01 Bruno Haible <bruno@clisp.org>
36225 * lib/string_.h (GL_LINK_WARNING): New macro.
36226 (strcasecmp, strstr, strcasestr): If provided by the system,
36227 conditionally define as a macro that leads to a warning instead of to
36229 (strncasecmp): Conditionally define as a macro that leads to a warning.
36231 2007-02-01 Karl Berry <karl@gnu.org>
36233 * config/srclist.txt (strtok_r.c): lose sync, no more strtok_r.h.
36235 2007-02-01 Bruno Haible <bruno@clisp.org>
36237 * MODULES.html.sh (Unicode string functions): Update after 2007-01-27
36240 2007-02-01 Eric Blake <ebb9@byu.net>
36242 * modules/regex (Depends-on): Revert dependence on mempcpy.
36243 * lib/regex_internal.h [! _LIBC && !__mempcpy]: Undo string
36244 module's definition of mempcpy.
36245 Reported by Paul Eggert.
36247 2007-02-01 Paul Eggert <eggert@cs.ucla.edu>
36249 * lib/string_.h: If the gnulib module XYZ is not present, undefine
36250 the symbol XYZ before redefining it. This fixes a problem with
36251 programs that don't use XYZ, when compiled on systems that define
36252 XYZ to something else.
36254 2007-01-31 Paul Eggert <eggert@cs.ucla.edu>
36256 * lib/mkdir-p.c (make_dir_parents): Close a race condition that
36257 occurs when "mkdir -m foo" creates a setgid directory that is (1)
36258 writeable to group or other and (2) is intended to have a special
36259 mode bit that is set or cleared. In such a case, the directory
36260 should be neither group- nor other-writeable until the special
36261 mode bits are right.
36263 2007-01-31 Eric Blake <ebb9@byu.net>
36265 * modules/mountlist (Depends-on): Add strstr.
36267 * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Correct m4 usage
36269 * modules/string (Makefile.am): Remove redundant replacement.
36270 * modules/regex (Depends-on): Add mempcpy.
36272 2007-01-31 Bruno Haible <bruno@clisp.org>
36274 New module description field 'Link'.
36275 * gnulib-tool (func_usage): Document --extract-link-directive.
36276 (sed_extract_prog): Recognize 'Link' directive.
36277 (func_get_link_directive): New function.
36278 (func_import): Show summary of link directives.
36279 Handle --extract-link-directive option.
36280 * modules/acl (Link): New section.
36281 * modules/clock-time (Link): New section.
36282 * modules/euidaccess (Link): New section.
36283 * modules/gettext (Link): New section.
36284 * modules/iconv (Link): New section.
36285 * modules/lock (Link): New section.
36286 * modules/nanosleep (Link): New section.
36287 * modules/readline (Link): New section.
36289 2007-01-27 Bruno Haible <bruno@clisp.org>
36291 Enforce the use of gnulib modules for unportable <string.h> functions.
36292 * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): New macro.
36293 (gl_STRING_MODULE_INDICATOR_DEFAULTS): New macro.
36294 (gl_HEADER_STRING_H_BODY): Require it.
36295 * lib/string_.h: If the gnulib module XYZ is not present, redefine
36296 the symbol XYZ to one that gives a link error.
36297 * modules/string (Makefile.am): Also substitute the GNULIB_* variables.
36298 * modules/memmem (configure.ac): Invoke gl_STRING_MODULE_INDICATOR.
36299 * modules/mempcpy (configure.ac): Likewise.
36300 * modules/memrchr (configure.ac): Likewise.
36301 * modules/stpcpy (configure.ac): Likewise.
36302 * modules/stpncpy (configure.ac): Likewise.
36303 * modules/strcase (configure.ac): Likewise.
36304 * modules/strcasestr (configure.ac): Likewise.
36305 * modules/strchrnul (configure.ac): Likewise.
36306 * modules/strdup (configure.ac): Likewise.
36307 * modules/strndup (configure.ac): Likewise.
36308 * modules/strnlen (configure.ac): Likewise.
36309 * modules/strpbrk (configure.ac): Likewise.
36310 * modules/strsep (configure.ac): Likewise.
36311 * modules/strstr (configure.ac): Likewise.
36312 * modules/strtok_r (configure.ac): Likewise.
36314 2007-01-31 Jean-Louis Martineau <martineau@zmanda.com> (tiny change)
36316 * lib/gai_strerror.c (values): Add EAI_OVERFLOW.
36318 2007-01-30 Jim Meyering <jim@meyering.net>
36320 * lib/mpsort.c (mpsort): Remove spurious "return" in void function.
36322 2007-01-29 Bruno Haible <bruno@clisp.org>
36324 * lib/allocsa.h: Use '#if HAVE_*' instead of '#ifdef HAVE_*'.
36325 * lib/execute.c: Likewise.
36326 * lib/pipe.c: Likewise.
36327 * lib/printf-args.h: Likewise.
36328 * lib/printf-args.c: Likewise.
36329 * lib/printf-parse.c: Likewise.
36330 * lib/vasnprintf.c: Likewise.
36332 2007-01-29 Eric Blake <ebb9@byu.net>
36334 * lib/memrchr.c: Assume <string.h> unconditionally, to pull in
36337 2007-01-29 Paul Eggert <eggert@cs.ucla.edu>
36339 * lib/strptime.h (strptime): Use 'restrict' for args where
36340 POSIX requires this.
36341 * lib/strptime.c (strptime): Likewise.
36342 Change license notice from LGPL to GPL, since gnulib-tool will
36343 change this as needed.
36344 Include <config.h> if _LIBC is not defined, not if HAVE_CONFIG_H is
36346 Include "strptime.h" first, to check interface.
36347 Do not #undef _LIBC and _NL_CURRENT.
36348 Do not include <stdlib.h>; no longer needed.
36349 Include "time_r.h" and declare ptime_locale_status
36350 only if _LIBC is not defined.
36351 (__P): Remove unused macro.
36352 (match_string): Bring back glibc version, but use it only if _LIBC
36354 (__strptime_internal): Compile tm_gmtoff code if _LIBC is defined, too.
36355 Remove unnecessary assertion and abort() call.
36356 Use #ifdef _NL_CURRENT rather than #if 0, for benefit of glibc.
36357 * m4/strptime.m4: Fix serial number comment.
36358 (gl_FUNC_STRPTIME): Require AC_C_RESTRICT, gl_TM_GMTOFF.
36359 * modules/strptime (Files): Add m4/tm_gmtoff.m4.
36360 (Depends-on): Add time_r.
36362 2007-01-29 Bruno Haible <bruno@clisp.org>
36364 * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
36366 * modules/strptime (Depends-on): Add stdbool.
36367 * lib/strptime.h: Include <time.h> always. Add comments.
36369 2007-01-29 Yoann Vandoorselaere <yoann@prelude-ids.org>
36371 * modules/strptime: New file.
36372 * lib/strptime.h: New file.
36373 * lib/strptime.c: New file.
36374 * m4/strptime.m4: New file.
36376 2007-01-28 Paul Eggert <eggert@cs.ucla.edu>
36378 * MODULES.html.sh: New module mpsort.
36379 * lib/mpsort.c, lib/mpsort.h, m4/mpsort.m4, modules/mpsort: New files.
36381 * lib/regex.h (_Restrict_): Renamed from __restrict, to avoid
36382 a circularity problem with HP-UX ia64 reported by Bob Proulx in
36383 <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00394.html>.
36385 (_Restrict_arr_): Renamed from __restrict_arr, for similar reasons.
36387 * lib/regcomp.c, lib/regexec.c: Change all uses from __restrict
36389 * lib/regexec.c (regexec): Declare pmatch with _Restrict_arr_, so that
36390 the parameter matches the prototype.
36392 2007-01-28 Jim Meyering <jim@meyering.net>
36394 * modules/sys_time (Makefile.am) [MOSTLYCLEANFILES]: Do use
36395 sys/time.h here, reverting that part of the previous patch:
36396 <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/8959>.
36398 2007-01-28 Bruno Haible <bruno@clisp.org>
36400 * modules/sys_time (Makefile.am): Build sys/time.h only when it's the
36401 value of $(SYS_TIME_H).
36402 [MOSTLYCLEANFILES]: Now that sys/time.h is created only when needed,
36403 remove it conditionally, too. [added by Jim Meyering]
36404 * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Set SYS_TIME_H.
36405 * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY):
36406 (gl_FUNC_GETTIMEOFDAY_CLOBBER): Set SYS_TIME_H when setting
36407 GETTIMEOFDAY_REPLACEMENT to 1.
36409 2007-01-28 Bruno Haible <bruno@clisp.org>
36411 * m4/unistd_h.m4 (gl_HEADER_UNISTD_DEFAULTS): New macro.
36412 (gl_HEADER_UNISTD): Require it. Don't set UNISTD_H to empty here.
36413 * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_HEADER_UNISTD_DEFAULTS.
36414 Set UNISTD_H instead of UNISTD_H2.
36415 * modules/fchdir (BUILT_SOURCES): Drop $(UNISTD_H2).
36417 2007-01-28 Bruno Haible <bruno@clisp.org>
36419 * modules/mbchar (Makefile.am): Add mbchar.c to lib_SOURCES.
36420 * m4/mbchar.m4 (gl_MBCHAR): Remove AC_LIBOBJ invocation.
36422 2007-01-28 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
36424 * gnulib-tool (func_emit_lib_Makefile_am, func_add_or_update)
36425 (func_create_testdir): Ensure C locale for `grep' and `tr'
36427 (func_create_megatestdir): Avoid one `grep'. Fix bug in
36428 ACLOCAL_AMFLAGS parsing state machine.
36430 2007-01-27 Bruno Haible <bruno@clisp.org>
36432 * modules/unistr/base: Update.
36434 2007-01-27 Bruno Haible <bruno@clisp.org>
36436 Rename u32-mbtouc -> u32-mbtouc-unsafe, u32-mbtouc-safe -> u32-mbtouc,
36437 u32_mbtouc -> u32_mbtouc_unsafe, u32_mbtouc_safe -> u32_mbtouc.
36438 * modules/unistr/u32-mbtouc-unsafe: Renamed from
36439 modules/unistr/u32-mbtouc.
36440 * lib/unistr/u32-mbtouc-unsafe.c: Renamed from lib/unistr/u32-mbtouc.c.
36441 * lib/unistr.h: Update.
36442 * lib/linebreak.c: Update.
36443 * modules/unistr/u32-mbtouc: Renamed from
36444 modules/unistr/u32-mbtouc-safe.
36445 * lib/unistr/u32-mbtouc.c: Renamed from lib/unistr/u32-mbtouc-safe.c.
36446 * lib/unistr.h: Update.
36447 * lib/unistr/u32-to-u8.c: Update.
36448 * lib/unistr/u32-to-u16.c: Update.
36450 2007-01-27 Bruno Haible <bruno@clisp.org>
36452 Rename utf16-ucs4 -> utf16-ucs4-unsafe, utf16-ucs4-safe -> utf16-ucs4,
36453 u16_mbtouc -> u16_mbtouc_unsafe, u16_mbtouc_safe -> u16_mbtouc.
36454 * modules/utf16-ucs4-unsafe: Renamed from modules/utf16-ucs4.
36455 * lib/utf16-ucs4-unsafe.h: Renamed from lib/utf16-ucs4.h.
36456 * lib/unistr/utf16-ucs4-unsafe.c: Renamed from lib/unistr/utf16-ucs4.c.
36457 * modules/unistr/u16-mbtouc-unsafe: Renamed from
36458 modules/unistr/u16-mbtouc.
36459 * lib/unistr/u16-mbtouc-unsafe.c: Renamed from lib/unistr/u16-mbtouc.c.
36460 * lib/unistr.h: Update.
36461 * lib/linebreak.c: Update.
36462 * modules/linebreak: Update.
36463 * modules/utf16-ucs4: Renamed from modules/utf16-ucs4-safe.
36464 * lib/utf16-ucs4.h: Renamed from lib/utf16-ucs4-safe.h.
36465 * lib/unistr/utf16-ucs4.c: Renamed from lib/unistr/utf16-ucs4-safe.c.
36466 * modules/unistr/u16-mbtouc: Renamed from
36467 modules/unistr/u16-mbtouc-safe.
36468 * lib/unistr/u16-mbtouc.c: Renamed from lib/unistr/u16-mbtouc-safe.c.
36469 * lib/unistr.h: Update.
36470 * lib/unistr/u16-to-u8.c: Update.
36471 * modules/unistr/u16-to-u8: Update.
36472 * lib/unistr/u16-to-u32.c: Update.
36473 * modules/unistr/u16-to-u32: Update.
36475 2007-01-27 Bruno Haible <bruno@clisp.org>
36477 Rename utf8-ucs4 -> utf8-ucs4-unsafe, utf8-ucs4-safe -> utf8-ucs4,
36478 u8_mbtouc -> u8_mbtouc_unsafe, u8_mbtouc_safe -> u8_mbtouc.
36479 * modules/utf8-ucs4-unsafe: Renamed from modules/utf8-ucs4.
36480 * lib/utf8-ucs4-unsafe.h: Renamed from lib/utf8-ucs4.h.
36481 * lib/unistr/utf8-ucs4-unsafe.c: Renamed from lib/unistr/utf8-ucs4.c.
36482 * modules/unistr/u8-mbtouc-unsafe: Renamed from
36483 modules/unistr/u8-mbtouc.
36484 * lib/unistr/u8-mbtouc-unsafe.c: Renamed from lib/unistr/u8-mbtouc.c.
36485 * lib/unistr.h: Update.
36486 * lib/striconveh.c: Update.
36487 * modules/striconveh: Update.
36488 * lib/linebreak.c: Update.
36489 * modules/linebreak: Update.
36490 * modules/utf8-ucs4: Renamed from modules/utf8-ucs4-safe.
36491 * lib/utf8-ucs4.h: Renamed from lib/utf8-ucs4-safe.h.
36492 * lib/unistr/utf8-ucs4.c: Renamed from lib/unistr/utf8-ucs4-safe.c.
36493 * modules/unistr/u8-mbtouc: Renamed from modules/unistr/u8-mbtouc-safe.
36494 * lib/unistr/u8-mbtouc.c: Renamed from lib/unistr/u8-mbtouc-safe.c.
36495 * lib/unistr.h: Update.
36496 * lib/striconveh.c: Update.
36497 * modules/striconveh: Update.
36498 * lib/unistr/u8-to-u16.c: Update.
36499 * modules/unistr/u8-to-u16: Update.
36500 * lib/unistr/u8-to-u32.c: Update.
36501 * modules/unistr/u8-to-u32: Update.
36503 2007-01-27 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
36506 * lib/argz.c: Do not include strings.h nor memory.h, include
36507 string.h unconditionally. Patch by Simon Josefsson.
36509 2007-01-27 Bruno Haible <bruno@clisp.org>
36511 * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): New macro, extracted
36512 from gl_HEADER_STRING_H_BODY.
36513 (gl_HEADER_STRING_H_BODY): Require it.
36514 * m4/memmem.m4 (gl_FUNC_MEMMEM): Require gl_HEADER_STRING_H_DEFAULTS.
36515 * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Likewise.
36516 * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Likewise.
36517 * m4/stpcpy.m4 (gl_FUNC_STPCPY): Likewise.
36518 * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
36519 * m4/strcase.m4 (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP): Likewise.
36520 * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
36521 * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Likewise.
36522 * m4/strdup.m4 (gl_FUNC_STRDUP): Likewise.
36523 * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
36524 * m4/strnlen.m4 (gl_FUNC_STRNLEN): Likewise.
36525 * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Likewise.
36526 * m4/strsep.m4 (gl_FUNC_STRSEP): Likewise.
36527 * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
36528 * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
36530 2007-01-27 Bruno Haible <bruno@clisp.org>
36532 * gnulib-tool (func_emit_lib_Makefile_am): If $for_test is true, turn
36533 check_PROGRAMS into noinst_PROGRAMS.
36534 (func_emit_tests_Makefile_am): Likewise. Also don't initialize
36535 check_PROGRAMS in this case.
36536 (func_import): Set for_test to false.
36537 (func_create_testdir): Set for_test to true.
36539 2007-01-27 Yoann Vandoorselaere <yoann.v@prelude-ids.com>
36540 Bruno Haible <bruno@clisp.org>
36542 * modules/strcasestr (Files): Remove lib/strcasestr.h.
36543 (Depends-on): Add string.
36544 (Includes): Use <string.h> instead of strcasestr.h.
36545 * modules/string (Makefile.am): Also substitute the value of
36546 REPLACE_STRCASESTR.
36547 * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Don't define strcasestr here;
36548 assume strcasestr is declared in <string.h> not <strings.h>. Also
36549 set REPLACE_STRCASESTR.
36550 * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Provide a default value for
36551 REPLACE_STRCASESTR.
36552 * lib/strcasestr.h: Remove file.
36553 * lib/strcasestr.c: Include <string.h> instead of strcasestr.h.
36554 * lib/string_.h (strcasestr): New declaration.
36556 2007-01-27 Bruno Haible <bruno@clisp.org>
36558 * lib/string_.h: Use 'extern'.
36560 2007-01-27 Jim Meyering <jim@meyering.net>
36562 * lib/regex_internal.c (re_string_reconstruct): Remove declaration
36563 of set-but-not-used local, "q".
36565 * lib/mempcpy.c: Include <config.h> before <string.h>.
36566 This fixes a compilation error on HP-UX, due to the system's
36567 "restrict"-using mempcpy prototype.
36569 2007-01-26 Bruno Haible <bruno@clisp.org>
36571 Small optimization.
36572 * lib/javacomp.c: Include c-strstr.h.
36573 (is_envjavac_gcj): Use c_strstr instead of strstr.
36574 * modules/javacomp (Depends-on): Add c-strstr, remove strstr.
36576 2007-01-26 Bruno Haible <bruno@clisp.org>
36578 * MODULES.html.sh (Unicode string functions): Add the new modules.
36580 * modules/uniconv/u32-strconv-to-locale: New file.
36581 * lib/uniconv/u32-strconv-to-locale.c: New file.
36583 * modules/uniconv/u16-strconv-to-locale: New file.
36584 * lib/uniconv/u16-strconv-to-locale.c: New file.
36586 * modules/uniconv/u8-strconv-to-locale: New file.
36587 * lib/uniconv/u8-strconv-to-locale.c: New file.
36589 * modules/uniconv/u32-strconv-from-locale: New file.
36590 * lib/uniconv/u32-strconv-from-locale.c: New file.
36592 * modules/uniconv/u16-strconv-from-locale: New file.
36593 * lib/uniconv/u16-strconv-from-locale.c: New file.
36595 * modules/uniconv/u8-strconv-from-locale: New file.
36596 * lib/uniconv/u8-strconv-from-locale.c: New file.
36598 * modules/uniconv/u32-strconv-to-enc: New file.
36599 * lib/uniconv/u32-strconv-to-enc.c: New file.
36600 * modules/uniconv/u32-strconv-to-enc-tests: New file.
36601 * tests/uniconv/test-u32-strconv-to-enc.c: New file.
36603 * modules/uniconv/u16-strconv-to-enc: New file.
36604 * lib/uniconv/u16-strconv-to-enc.c: New file.
36605 * lib/uniconv/u-strconv-to-enc.h: New file.
36606 * modules/uniconv/u16-strconv-to-enc-tests: New file.
36607 * tests/uniconv/test-u16-strconv-to-enc.c: New file.
36609 * modules/uniconv/u8-strconv-to-enc: New file.
36610 * lib/uniconv/u8-strconv-to-enc.c: New file.
36611 * modules/uniconv/u8-strconv-to-enc-tests: New file.
36612 * tests/uniconv/test-u8-strconv-to-enc.c: New file.
36614 * modules/uniconv/u32-strconv-from-enc: New file.
36615 * lib/uniconv/u32-strconv-from-enc.c: New file.
36616 * modules/uniconv/u32-strconv-from-enc-tests: New file.
36617 * tests/uniconv/test-u32-strconv-from-enc.c: New file.
36619 * modules/uniconv/u16-strconv-from-enc: New file.
36620 * lib/uniconv/u16-strconv-from-enc.c: New file.
36621 * modules/uniconv/u16-strconv-from-enc-tests: New file.
36622 * tests/uniconv/test-u16-strconv-from-enc.c: New file.
36624 * modules/uniconv/u8-strconv-from-enc: New file.
36625 * lib/uniconv/u8-strconv-from-enc.c: New file.
36626 * lib/uniconv/u-strconv-from-enc.h: New file.
36627 * modules/uniconv/u8-strconv-from-enc-tests: New file.
36628 * tests/uniconv/test-u8-strconv-from-enc.c: New file.
36630 * modules/uniconv/u32-conv-from-enc: New file.
36631 * lib/uniconv/u32-conv-from-enc.c: New file.
36632 * modules/uniconv/u32-conv-from-enc-tests: New file.
36633 * tests/uniconv/test-u32-conv-from-enc.c: New file.
36635 * modules/uniconv/u16-conv-from-enc: New file.
36636 * lib/uniconv/u16-conv-from-enc.c: New file.
36637 * lib/uniconv/u-conv-from-enc.h: New file.
36638 * modules/uniconv/u16-conv-from-enc-tests: New file.
36639 * tests/uniconv/test-u16-conv-from-enc.c: New file.
36641 * modules/uniconv/u8-conv-from-enc: New file.
36642 * lib/uniconv/u8-conv-from-enc.c: New file.
36643 * modules/uniconv/u8-conv-from-enc-tests: New file.
36644 * tests/uniconv/test-u8-conv-from-enc.c: New file.
36646 * modules/uniconv/base: New file.
36647 * lib/uniconv.h: New file.
36649 2007-01-26 Paul Eggert <eggert@cs.ucla.edu>
36651 * doc/gnulib-tool.texi (Initial import): Update to match current
36652 behavior with strdup module.
36653 * lib/.cppi-disable: Remove strcase.h, strdup.h, strndup.h, strnlen.h.
36654 * lib/memmem.h: Remove; all uses removed. This is now done
36656 * lib/mempcpy.h: Likewise.
36657 * lib/memrchr.h: Likewise.
36658 * lib/stpcpy.h: Likewise.
36659 * lib/stpncpy.h: Likewise.
36660 * lib/strcase.h: Likewise.
36661 * lib/strchrnul.h: Likewise.
36662 * lib/strdup.h: Likewise.
36663 * lib/strndup.h: Likewise.
36664 * lib/strnlen.h: Likewise.
36665 * lib/strpbrk.h: Likewise.
36666 * lib/strsep.h: Likewise.
36667 * lib/strstr.h: Likewise.
36668 * lib/strtok_r.h: Likewise.
36669 * lib/string_.h: New file.
36670 * lib/argp-namefrob.h: Don't include no-longer-existent include files.
36671 Rely on <string.h> instead.
36672 * lib/canon-host.c: Likewise.
36673 * lib/chdir-long.c: Likewise.
36674 * lib/concatpath.c: Likewise.
36675 * lib/exclude.c: Likewise.
36676 * lib/fchdir.c: Likewise.
36677 * lib/getaddrinfo.c: Likewise.
36678 * lib/getcwd.c: Likewise.
36679 * lib/getsubopt.c: Likewise.
36680 * lib/glob.c: Likewise.
36681 * lib/hard-locale.c: Likewise.
36682 * lib/iconvme.c: Likewise.
36683 * lib/javacomp.c: Likewise.
36684 * lib/mempcpy.c: Likewise.
36685 * lib/memrchr.c: Likewise.
36686 * lib/regex_internal.h: Likewise.
36687 * lib/stpncpy.c: Likewise.
36688 * lib/strcasecmp.c: Likewise.
36689 * lib/strchrnul.c: Likewise.
36690 * lib/strdup.c: Likewise.
36691 * lib/striconv.c: Likewise.
36692 * lib/striconveh.c: Likewise.
36693 * lib/striconveha.c: Likewise.
36694 * lib/strncasecmp.c: Likewise.
36695 * lib/strndup.c: Likewise.
36696 * lib/strnlen.c: Likewise.
36697 * lib/strsep.c: Likewise.
36698 * lib/strstr.c: Likewise.
36699 * lib/strtok_r.c: Likewise.
36700 * lib/userspec.c: Likewise.
36701 * lib/w32spawn.h: Likewise.
36702 * lib/xstrndup.c: Likewise.
36703 * lib/mountlist.c (strstr): Remove decl.
36704 * m4/string_h.m4: New file.
36705 * m4/memmem.m4 (gl_FUNC_MEMMEM): Set HAVE_DECL_MEMMEM if necessary.
36706 * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Set HAVE_MEMPCPY if necessary.
36707 * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Set HAVE_MEMRCHR
36708 * m4/stpcpy.m4 (gl_FUNC_STPCPY): Set HAVE_STPCPY if necessary.
36709 * m4/stpncpy.m4 (gl_PREREQ_STPNCPY): Set HAVE_STPNCPY if necessary.
36710 * m4/strcase.m4 (gl_FUNC_STRCASECMP):
36711 Set REPLACE_STRCASECMP if necessary.
36712 (gl_FUNC_STRNCASECMP): Set HAVE_DECL_STRNCASECMP if necessary.
36713 * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Set HAVE_STRCHRNUL if necessary.
36714 * m4/strdup.m4 (gl_FUNC_STRDUP): Set HAVE_DECL_STRDUP if necessary.
36715 * m4/strndup.m4 (gl_FUNC_STRNDUP): Set HAVE_DECL_STRNLEN and
36716 HAVE_DECL_STRDUP if necessary.
36717 (gl_PREREQ_STRNLEN): Don't bother to check for strnlen decl,
36718 since gl_FUNC_STRNDUP does that now.
36719 * m4/strnlen.m4 (gl_FUNC_STRNLEN): Set HAVE_DECL_STRNLEN if necessary.
36720 Check for decl here...
36721 (gl_PREREQ_STRNLEN): ... not here.
36722 * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Set HAVE_STRPBRK if necessary.
36723 * m4/strsep.m4 (gl_FUNC_STRSEP): Set HAVE_STRSEP if necessary.
36724 * m4/strstr.m4 (gl_FUNC_STRSTR): Set REPLACE_STRSTR if necessary.
36725 * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Set HAVE_DECL_STRTOK_R if
36727 * modules/string: New file.
36728 * modules/memmem (Files): Remove special-purpose include file.
36729 (Depends-on): Add string.
36730 (Include): Include <string.h>, not the removed file.
36731 * modules/mempcpy: Likewise.
36732 * modules/memrchr: Likewise.
36733 * modules/stpcpy: Likewise.
36734 * modules/stpncpy: Likewise.
36735 * modules/strcase: Likewise.
36736 * modules/strchrnul: Likewise.
36737 * modules/strdup: Likewise.
36738 * modules/strndup: Likewise.
36739 * modules/strnlen: Likewise.
36740 * modules/strpbrk: Likewise.
36741 * modules/strsep: Likewise.
36742 * modules/strstr: Likewise.
36743 * modules/strtok_r: Likewise.
36744 * tests/test-dirname.c: Don't include "strdup.h", since
36745 <string.h> now suffices.
36746 * tests/test-memmem.c: Don't include "memmem.h", since
36747 <string.h> now suffices.
36749 2007-01-25 Bruno Haible <bruno@clisp.org>
36751 * lib/striconveh.c (mem_cd_iconveh_internal): Ignore *lengthp if
36754 * lib/unistr/u16-to-u8.c (u16_to_u8): Fix u8_uctomb invocation.
36755 * lib/unistr/u32-to-u8.c (u32_to_u8): Likewise.
36756 * lib/unistr/u8-to-u16.c (u8_to_u16): Fix u16_uctomb invocation.
36757 * lib/unistr/u32-to-u16.c (u32_to_u16): Likewise.
36759 * modules/unistr/u8-to-u16 (Depends-on): Add missing modules.
36760 * modules/unistr/u8-to-u32 (Depends-on): Add missing modules.
36761 * modules/unistr/u16-to-u8 (Depends-on): Add missing modules.
36762 * modules/unistr/u16-to-u32 (Depends-on): Add missing modules.
36763 * modules/unistr/u32-to-u8 (Depends-on): Add missing modules.
36764 * modules/unistr/u32-to-u16 (Depends-on): Add missing modules.
36766 2007-01-24 Bruno Haible <bruno@clisp.org>
36768 Don't AC_REQUIRE autoconf macros that invoke AC_LIBOBJ. See
36769 <http://lists.gnu.org/archive/html/bug-gnulib/2006-10/msg00279.html>.
36770 * m4/argp.m4 (gl_ARGP): Invoke, don't require, gl_GETOPT_SUBSTITUTE.
36771 * m4/fts.m4 (gl_FUNC_FTS, gl_FUNC_FTS_LGPL): Invoke, don't require,
36773 (gl_FUNC_FTS_CORE): Invoke, don't require, gl_FUNC_OPENAT.
36774 * m4/lstat.m4 (gl_FUNC_LSTAT): Invoke, don't require,
36775 AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
36776 * m4/memcmp.m4 (gl_FUNC_MEMCMP): Invoke, don't require, AC_FUNC_MEMCMP.
36777 * m4/mktime.m4 (gl_FUNC_MKTIME): Invoke, don't require, AC_FUNC_MKTIME.
36778 * m4/openat.m4 (gl_FUNC_OPENAT): Invoke, don't require,
36780 * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME): Invoke, don't require,
36782 * m4/strtod.m4 (gl_FUNC_STRTOD): Invoke, don't require, AC_FUNC_STRTOD.
36783 Reported by Ralf Wildenhues.
36785 2007-01-24 Bruno Haible <bruno@clisp.org>
36787 Drop AC_REQUIRE calls that are redundant with the module dependencies.
36788 * m4/canon-host.m4 (gl_PREREQ_CANON_HOST): Don't require
36790 * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Don't require AM_STDBOOL_H,
36791 gl_FUNC_MEMPCPY, gl_FUNC_OPENAT, gl_FUNC_MEMRCHR.
36792 * m4/openat.m4 (gl_PREREQ_OPENAT): Don't require gl_SAVE_CWD.
36794 2007-01-24 Paul Eggert <eggert@cs.ucla.edu>
36796 * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Add test for glibc bug 361.
36797 Don't use 'exit'; just return from 'main'.
36798 (_AC_LIBOBJ_FNMATCH): Check for headers and functions just once.
36800 * lib/fnmatch_.h: Readjust white space and comments to match
36801 glibc, to avoid spurious diffs.
36803 2007-01-23 Paul Eggert <eggert@cs.ucla.edu>
36805 * lib/fnmatch_loop.c (internal_fnmatch) [!_LIBC]: #if-out the
36806 2004-12-01 change by Jakub Jelinek, since this code won't compile
36807 if !LIBC. Problem reported by Bob Proulx.
36809 2007-01-23 Bruno Haible <bruno@clisp.org>
36811 * lib/striconveh.c: Include c-strcaseeq.h.
36812 (mem_iconveh, str_iconveh): Use STRCASEEQ instead of c_strcasecmp.
36813 * modules/striconveh (Depends-on): Add c-strcaseeq.
36815 2007-01-23 Bruno Haible <bruno@clisp.org>
36817 * MODULES.html.sh (String handling): Add streq, c-strcaseeq.
36819 * modules/c-strcaseeq: New file.
36820 * lib/c-strcaseeq.h: New file.
36822 * modules/streq: New file.
36823 * lib/streq.h: New file.
36825 2007-01-23 Bruno Haible <bruno@clisp.org>
36827 * modules/striconveha-tests: New file.
36828 * tests/test-striconveha.c: New file.
36830 * lib/striconveha.h: Include <stdbool.h>.
36831 (mem_iconveha, str_iconveha): Add 'transliterate' argument.
36832 * lib/striconveha.c: Include allocsa.h, strdup.h, c-strcase.h.
36833 (mem_iconveha_notranslit): Renamed from mem_iconveha.
36834 (mem_iconveha): New function.
36835 (str_iconveha_notranslit): Renamed from str_iconveha.
36836 (str_iconveha): New function.
36837 * modules/striconveha (Depends-on): Add stdbool, allocsa, strdup,
36840 2007-01-23 Bruno Haible <bruno@clisp.org>
36842 * lib/striconveha.c (mem_iconveha): Fix endless recursion. Try all
36843 encodings without forgiving before trying any encoding with handler.
36844 (str_iconveha): Try all encodings without forgiving before trying any
36845 encoding with handler.
36847 2007-01-23 Paul Eggert <eggert@cs.ucla.edu>
36849 Import the following changes from libc.
36851 2005-10-14 Ulrich Drepper <drepper@redhat.com>
36853 * lib/fnmatch_loop.c: Adjust for changed secondary hash function.
36855 2004-12-01 Jakub Jelinek <jakub@redhat.com>
36857 * lib/fnmatch_loop.c (internal_fnmatch): Clear is_seqval after
36858 normal_bracket label.
36860 2004-09-01 Jakub Jelinek <jakub@redhat.com>
36863 * lib/fnmatch_loop.c (FCT): For backslash between brackets, branch
36864 to normal_bracket after fetching the next character.
36866 2007-01-22 Bruno Haible <bruno@clisp.org>
36868 * lib/striconveh.h (mem_cd_iconveh, mem_iconveh): Add 'offsets'
36870 * lib/striconveh.c (iconv_carefully_1): New function.
36871 (mem_cd_iconveh_internal, mem_cd_iconveh, mem_iconveh): Add 'offsets'
36873 (str_cd_iconveh): Update.
36874 * lib/striconveha.h (mem_iconveha): Add 'offsets' argument.
36875 * lib/striconveha.c (mem_iconveha): Add 'offsets' argument.
36876 * tests/test-striconveh.c (MAGIC): New macro.
36877 (new_offsets): New function.
36878 (main): Test call with and without offsets.
36880 2007-01-22 Bruno Haible <bruno@clisp.org>
36882 * modules/sys_stat (Makefile.am): Use @MKDIR_P@ instead of $(MKDIR_P).
36883 * modules/sys_select (Makefile.am): Likewise.
36884 * modules/sys_socket (Makefile.am): Likewise.
36885 * modules/sys_time (Makefile.am): Likewise.
36887 2007-01-22 Paul Eggert <eggert@cs.ucla.edu>
36889 * modules/gettimeofday (License): Change from GPL to LGPL, since
36890 gettimeofday is a library function.
36892 2007-01-22 Yoann Vandoorselaere <yoann.v@prelude-ids.com>
36894 * lib/poll.c (rpl_poll): Don't check against FD_SETSIZE under Win32.
36896 2007-01-21 Bruno Haible <bruno@clisp.org>
36898 * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): New macro.
36900 2007-01-21 Bruno Haible <bruno@clisp.org>
36902 * modules/striconveha: New file.
36903 * lib/striconveha.h: New file.
36904 * lib/striconveha.c: New file.
36905 * MODULES.html.sh (Internationalization functions): Add striconveha.
36906 * lib/striconv.c (str_iconv): Optimize the case of an empty input
36908 * lib/striconveh.c (mem_iconveh, str_iconveh): Likewise.
36910 2007-01-21 Bruno Haible <bruno@clisp.org>
36912 * lib/striconv.c (str_iconv): Guarantee errno is set when strdup fails.
36913 * lib/striconveh.c (str_iconveh): Likewise.
36915 2007-01-21 Bruno Haible <bruno@clisp.org>
36917 * lib/striconveh.h (mem_iconveh): New declaration.
36918 * lib/striconveh.c (mem_iconveh): New function.
36919 * tests/test-striconveh.c (main): Add tests for mem_iconveh.
36921 2007-01-21 Bruno Haible <bruno@clisp.org>
36923 * lib/xstriconv.h (xmem_cd_iconv): Change specification.
36925 * lib/striconveh.h (mem_cd_iconveh): Change specification.
36926 * lib/striconveh.c (mem_cd_iconveh): Don't free the user-supplied
36927 original result buffer.
36928 (str_cd_iconveh): Update.
36929 * tests/test-striconveh.c (main): Update.
36931 * lib/striconv.h (mem_cd_iconv): Change specification.
36932 * lib/striconv.c (mem_cd_iconv): Don't free the user-supplied original
36934 (str_cd_iconv): Update.
36935 * tests/test-striconv.c (main): Update.
36937 2007-01-21 Bruno Haible <bruno@clisp.org>
36939 * gnulib-tool: Fix test whether sed is GNU sed supporting --posix.
36941 2007-01-20 Jim Meyering <jim@meyering.net>
36943 * lib/userspec.c (parse_with_separator): If a user or group string
36944 starts with "+", skip the corresponding name-to-ID look-up, since
36945 such a look-up must fail: user and group names may not include "+".
36947 2007-01-19 Paul Eggert <eggert@cs.ucla.edu>
36949 * lib/poll.c: Include sys/time.h and time.h unconditionally,
36950 since we now assume the sys_time module.
36951 * m4/poll.m4 (gl_PREREQ_POLL): Don't require AC_HEADER_TIME or
36952 check for sys/time.h; no longer needed.
36953 * modules/poll (Depends-on): Depend on sys_time.
36955 2007-01-18 Bruno Haible <bruno@clisp.org>
36957 * m4/mktime.m4 (AC_FUNC_MKTIME): Remove test for <sys/time.h>.
36958 * m4/strftime.m4 (gl_FUNC_STRFTIME): Likewise.
36960 * m4/tempname.m4 (gl_PREREQ_TEMPNAME): Remove tests for sys/time.h and
36963 * tests/test-gettimeofday.c: Include <time.h>.
36964 (dummy): Remove variable.
36966 * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Renamed from
36967 gl_HEADER_SYS_TIME_H.
36968 (gl_HEADER_SYS_TIME_H): New macro.
36970 * lib/sys_time_.h: Test GETTIMEOFDAY_REPLACEMENT instead of
36971 HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
36972 * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY,
36973 gl_FUNC_GETTIMEOFDAY_CLOBBER): Set GETTIMEOFDAY_REPLACEMENT instead of
36974 HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
36975 * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H): Initialize
36976 GETTIMEOFDAY_REPLACEMENT instead of HAVE_GETTIMEOFDAY_POSIX_SIGNATURE
36977 and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
36978 * modules/sys_time (sys/time.h): Substitute GETTIMEOFDAY_REPLACEMENT
36979 instead of HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and
36980 GETTIMEOFDAY_CLOBBERS_LOCALTIME.
36982 * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Undo the
36983 last change; it caused a compilation error when cross-compiling to
36986 2007-01-18 Jim Meyering <jim@meyering.net>
36988 Use "$(MKDIR_P) sys", not race-prone "test -d sys || mkdir sys".
36989 * modules/sys_stat (Makefile.am): Use "$(MKDIR_P) sys", rather
36990 than the race-prone "test -d sys || mkdir sys".
36991 (configure.ac): Use AC_PROG_MKDIR_P.
36992 * modules/sys_select: Likewise.
36993 * modules/sys_socket: Likewise.
36994 * modules/sys_time: Likewise.
36996 2007-01-18 Eric Blake <ebb9@byu.net>
36998 * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Also
36999 replace gettimeofday.
37000 * lib/gettimeofday.c (rpl_gettimeofday): Declare with replacement
37001 name, to avoid infinite recursion.
37003 2007-01-17 Paul Eggert <eggert@cs.ucla.edu>
37005 * MODULES.html.sh (Support for systems lacking POSIX:2001): New
37007 * lib/gethrxtime.c: Include <sys/time.h>, since we can no longer
37008 assume timespec.h defines struct timeval.
37009 * lib/settime.c: Likewise.
37010 * lib/utimens.c: Likewise.
37011 * lib/gettime.c (gettime): Remove test against HAVE_GETTIMEOFDAY,
37012 since we now assume the gettimeofday module.
37013 * lib/tempname.c (__gen_tempname): Likewise.
37014 * lib/gettimeofday.h: Remove.
37015 * lib/gettimeofday.c: Include <sys/time.h> instead of "gettimeofday.h".
37016 Don't include <sys/types.h> and <stdlib.h>; shouldn't be needed.
37017 Include <time.h>, for 'time()'.
37018 (localtime_buffer_addr): Also use this workaround if
37019 TZSET_CLOBBERS_LOCALTIME. Set to a dummy static variable by default,
37020 to simplify the uses. All uses changed.
37021 (localtime, gmtime, tzset, gettimeofday): Reformat slightly so
37022 that #undef is inside {}, and 'const' follows type name consistently.
37023 (tzset): Define replacement only if TZSET_CLOBBERS_LOCALTIME.
37024 (gettimeofday): Do not use the maximum possible value for
37025 tv->tv_usec, since that might break usages other than ls.c.
37026 Instead, we'll leave ls.c alone. This undoes today's patch
37027 by Bruno. Add a compile-time warning for 1s-clock resolution;
37028 we've never observed the problem but might as well keep the
37030 * lib/nanosleep.c: Include timespec.h first, for interface check.
37031 * lib/nanosleep.c: Include <sys/time.h> unconditionally, since we
37032 now assume the sys_time module.
37033 * lib/tempname.c: Likewise.
37034 * lib/timespec.h: Likewise.
37035 * lib/nanosleep.c: Don't worry about TIME_WITH_SYS_TIME; no longer
37037 * lib/strftime.c: Likewise.
37038 * lib/timespec.h: Likewise.
37039 * lib/posixtm.c: Include posixtm.h first, for interface check.
37040 Don't worry about TM_IN_SYS_TIME; that's wayyy obsolete.
37041 * lib/posixtm.h: Include stdbool.h and time.h, for proper interface.
37042 * lib/strftime.c: Don't include <sys/types.h>; shouldn't be needed.
37043 * lib/sys_time_.h: New file.
37044 * lib/timespec.h (struct timespec): Use long int, not long.
37045 * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY):
37046 (gl_FUNC_GETTIMEOFDAY_CLOBBER, gl_PREREQ_GETTIMEOFDAY):
37047 Remove obsolescent call to AC_HEADER_TIME.
37048 * m4/mktime.m4 (AC_FUNC_MKTIME): Likewise.
37049 * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
37050 * m4/strftime.m4 (gl_FUNC_STRFTIME): Likewise.
37051 * m4/timespec.m4 (gl_TIMESPEC, gl_CHECK_TYPE_STRUCT_TIMESPEC):
37053 * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Likewise.
37054 * m4/utimbuf.m4 (gl_CHECK_TYPE_STRUCT_UTIMBUF): Likewise.
37055 * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Move sys/time.h tests
37056 into the sys_time module. Check for gettimeofday just once.
37057 Prefix our variables with gl_, not with ac_ or jm_. Tighten test
37058 for gettimeofday signature to just check the signature. Merely
37059 compile it, since linking doesn't test signature. Improve test for
37060 whether gettimeofday.o is actually needed.
37061 (gl_FUNC_GETTIMEOFDAY_CLOBBER): Renamed from
37062 AC_FUNC_GETTIMEOFDAY_CLOBBER. All uses changed. Use
37063 AC_RUN_IFELSE rather than AC_TRY_RUN. If clobbering, set
37064 and define GETTIMEOFDAY_CLOBBERS_LOCALTIME.
37065 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Don't define
37066 GETTIMEOFDAY_CLOBBERS_LOCALTIME; that's gl_FUNC_GETTIMEOFDAY_CLOBBER's
37067 job. Don't define tzset; that's gl_FUNC_TZSET_CLOBBER's job.
37068 * m4/mktime.m4 (AC_FUNC_MKTIME): Just include <time.h> rather
37069 than worrying about sys/time.h.
37070 * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
37071 Don't bother worrying about TIME_WITH_SYS_TIME.
37072 * m4/stat-time.m4 (gl_STAT_TIME): Likewise.
37073 * m4/posixtm.m4 (gl_POSIXTM): Remove obsolescent call to AC_STRUCT_TM.
37074 * m4/sys_time_h.m4: New file.
37075 * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Require gl_HEADER_SYS_TIME_H.
37076 Don't include sys/time.h. Return from main rather than exiting.
37077 Define TZSET_CLOBBERS_LOCALTIME, for consistency with other names;
37079 * modules/gethrxtime (Depends-on): Add sys_time.
37080 * modules/gettime (Depends-on): Likewise.
37081 * modules/gettimeofday (Depends-on): Likewise.
37082 * modules/nanosleep (Depends-on): Likewise.
37083 * modules/settime (Depends-on): Likewise.
37084 * modules/tempname (Depends-on): Likewise.
37085 * modules/utimens (Depends-on): Likewise.
37086 * modules/gettimeofday (Files): Remove lib/gettimeofday.h.
37087 (Include:) Change back to <sys/time.h>.
37088 (Maintainer:) Add self.
37089 * modules/sys_time: New file.
37090 * modules/tempname (Depends-on): Add gettimeofday.
37091 * tests/test-gettimeofday.c: Include <sys/time.h>
37092 rather than gettimeofday.h.
37094 2007-01-17 Bruno Haible <bruno@clisp.org>
37096 * gnulib-tool (func_get_license): Revert last patch. Instead, let
37097 the license default to GPL.
37098 (func_create_testdir): Don't complain if a module is LGPL and its
37099 tests module depends on GPLed modules.
37101 2007-01-17 Bruno Haible <bruno@clisp.org>
37103 * lib/gettimeofday.c (gettimeofday): Add code for the case
37104 HAVE_GETTIMEOFDAY && !GETTIMEOFDAY_CLOBBERS_LOCALTIME. Use the
37105 maximum possible value for tv->tv_usec, rather than the minimum one.
37107 2005-10-08 Martin Lambers <marlam@marlam.de>
37108 2005-10-08 Paul Eggert <eggert@cs.ucla.edu>
37109 2007-01-16 Bruno Haible <bruno@clisp.org>
37111 * modules/gettimeofday (Files): Add lib/gettimeofday.h.
37112 (configure.ac): Remove AC_FUNC_GETTIMEOFDAY_CLOBBER. Add
37113 gl_FUNC_GETTIMEOFDAY.
37114 (Include): Add gettimeofday.h.
37115 * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): New macro.
37116 (AC_FUNC_GETTIMEOFDAY_CLOBBER): Don't invoke gl_PREREQ_GETTIMEOFDAY.
37117 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Define
37118 GETTIMEOFDAY_CLOBBERS_LOCALTIME. Invoke gl_PREREQ_GETTIMEOFDAY here.
37119 (gl_PREREQ_GETTIMEOFDAY): Check for <sys/timeb.h> and _ftime.
37120 * lib/gettimeofday.h: New file.
37121 * lib/gettimeofday.c: Include <sys/timeb.h>.
37122 (localtime_buffer_addr, rpl_localtime, rpl_gmtime, rpl_tzset): Define
37123 only if GETTIMEOFDAY_CLOBBERS_LOCALTIME.
37124 (rpl_gettimeofday) [!HAVE_GETTIMEOFDAY]: Use _ftime() when available;
37125 fall back on time().
37127 * tests/test-gettimeofday.c: New file.
37128 * modules/gettimeofday-tests: New file.
37130 2007-01-16 Eric Blake <ebb9@byu.net>
37132 * modules/fnmatch (Depends-on): Depend on wchar.
37133 * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Assume <wchar.h>.
37134 * m4/fnmatch.m4: Likewise.
37135 * modules/mbchar (Makefile.am): Assume <wchar.h>.
37136 * m4/mbchar.m4: Likewise.
37137 * modules/mbswidth (Depends-on): Depend on wchar.
37138 * lib/mbswidth.c: Assume <wchar.h>.
37139 * m4/mbswidth.m4: Likewise.
37140 * modules/quotearg (Depends-on): Depend on wchar.
37141 * lib/quotearg.c: Assume <wchar.h>.
37142 * m4/quotearg.m4: Likewise.
37143 * modules/regex (Depends-on): Depend on wchar.
37144 * lib/regex_internal.h: Assume <wchar.h>.
37145 * m4/regex.m4: Likewise.
37146 * modules/stdint (Depends-on): Depend on wchar.
37147 * lib/stdint_.h [!defined WCHAR_MIN]: Assume <wchar.h>.
37148 * m4/stdint.m4: Likewise.
37149 * tests/test-stdint.c [HAVE_WINT_T]: Likewise.
37150 * modules/strftime (Depends-on): Depend on wchar.
37151 * lib/strftime.c (DO_MULTIBYTE): Assume <wchar.h>.
37152 * modules/strtol (Depends-on): Depend on wchar.
37153 * lib/strtol.c: Assume <wchar.h>.
37154 * modules/wcwidth (Depends-on): Depend on wchar.
37155 * lib/wcwidth.h: Assume <wchar.h>.
37156 * m4/wcwidth.m4: Likewise.
37158 2007-01-16 Bruno Haible <bruno@clisp.org>
37160 * modules/csharpexec-script: New, created from...
37161 * modules/csharpexec: ... this.
37163 2007-01-16 Paolo Bonzini <bonzini@gnu.org>
37165 * modules/javaexec-script: New, created from...
37166 * modules/javaexec: ... this.
37168 2007-01-16 Yoann Vandoorselaere <yoann.v@prelude-ids.com>
37170 * modules/poll (Dependencies): Add sys_select.
37172 2007-01-15 Jim Meyering <jim@meyering.net>
37174 * m4/readutmp.m4 (gl_READUTMP): Work around AIX 4.3 struct-
37175 redefinition bug when using both <utmp.h> and <utmpx.h> headers.
37176 * lib/readutmp.h: Likewise. Reported by Daniel Richard G. in
37177 <http://article.gmane.org/gmane.comp.gnu.core-utils.bugs/9415>.
37179 2007-01-15 Bruno Haible <bruno@clisp.org>
37181 * modules/striconveh: New file.
37182 * lib/striconveh.h: New file.
37183 * lib/striconveh.c: New file.
37184 * MODULES.html.sh (Internationalization functions): Add striconveh.
37186 * modules/striconveh-tests: New file.
37187 * tests/test-striconveh.c: New file.
37189 2007-01-15 Bruno Haible <bruno@clisp.org>
37191 * lib/striconv.c (str_cd_iconv): Use the first algorithm if iconv is
37192 not from GNU libiconv or GNU libc.
37194 2007-01-15 Bruno Haible <bruno@clisp.org>
37196 * doc/gnulib-intro.texi (Copyright): Explain the different license
37197 terms for module descriptions, autoconf macros, tests, documentation.
37199 2007-01-14 Bruno Haible <bruno@clisp.org>
37201 * modules/striconv-tests: New file.
37202 * tests/test-striconv.c: New file.
37204 2007-01-14 Bruno Haible <bruno@clisp.org>
37206 * modules/iconv-tests: New file.
37207 * tests/test-iconv.c: New file.
37209 2007-01-14 Bruno Haible <bruno@clisp.org>
37211 * gnulib-tool (func_get_license): For test modules, use the license of
37214 2007-01-14 Bruno Haible <bruno@clisp.org>
37216 * modules/iconv (Include): Clarify that <iconv.h> can only be included
37217 if iconv is found to exist.
37219 2007-01-14 Bruno Haible <bruno@clisp.org>
37221 * modules/c-ctype-tests: New file.
37222 * tests/test-c-ctype.c: New file.
37224 2007-01-14 Bruno Haible <bruno@clisp.org>
37226 * modules/binary-io-tests: New file.
37227 * tests/test-binary-io.sh: New file.
37228 * tests/test-binary-io.c: New file.
37230 2007-01-14 Bruno Haible <bruno@clisp.org>
37232 * modules/array-oset-tests: New file.
37233 * tests/test-array_oset.c: New file.
37235 2007-01-14 Bruno Haible <bruno@clisp.org>
37237 * modules/array-list-tests: New file.
37238 * tests/test-array_list.c: New file.
37240 2007-01-14 Bruno Haible <bruno@clisp.org>
37242 * gnulib-tool (func_create_testdir): Don't unnecessarily run configure
37244 Reported by Simon Josefsson in
37245 <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00139.html>
37247 2007-01-14 Bruno Haible <bruno@clisp.org>
37249 * modules/allocsa-tests: New file.
37250 * tests/test-allocsa.c: New file.
37252 2007-01-14 Bruno Haible <bruno@clisp.org>
37254 * modules/fchdir (Depends-on): Add absolute-header.
37255 * modules/unistd (Depends-on): Likewise.
37257 2006-12-30 Bruno Haible <bruno@clisp.org>
37259 * modules/fchdir: New file.
37260 * modules/unistd (Files): Add lib/unistd_.h.
37261 (Makefile.am): Generate unistd.h from unistd_.h.
37262 * lib/fchdir.c: New file.
37263 * lib/dirent_.h: New file.
37264 * lib/unistd_.h: New file.
37265 * lib/fcntl_.h (open) [FCHDIR_REPLACEMENT]: New replacement.
37266 * m4/fchdir.m4: New file.
37267 * m4/unistd_h.m4 (gl_PREREQ_UNISTD): New macro.
37268 (gl_HEADER_UNISTD): Invoke it.
37269 * lib/dup-safer.c (dup_safer) [FCHDIR_REPLACEMENT]: Use the dup
37271 * lib/backupfile.c (opendir, closedir): Undefine.
37272 * lib/chown.c (open, close): Undefine.
37273 * lib/clean-temp.c (open, close): Undefine.
37274 * lib/copy-file.c (open, close): Undefine.
37275 * lib/execute.c (open, close): Undefine.
37276 * lib/fsusage.c (open, close): Undefine.
37277 * lib/gc-gnulib.c (open, close): Undefine.
37278 * lib/getcwd.c (opendir, closedir): Undefine.
37279 * lib/glob.c (opendir, closedir): Undefine.
37280 * lib/javacomp.c (open, close): Undefine.
37281 * lib/mountlist.c (open, close, opendir, closedir): Undefine.
37282 * lib/openat-proc.c (open, close): Undefine.
37283 * lib/pagealign_alloc.c (open, close): Undefine.
37284 * lib/pipe.c (open, close): Undefine.
37285 * lib/progreloc.c (open, close): Undefine.
37286 * lib/savedir.c (opendir, closedir): Undefine.
37287 * lib/utime.c (open, close): Undefine.
37288 * MODULES.html.sh (Support for systems lacking POSIX:2001): Add fchdir.
37290 2007-01-10 Bruno Haible <bruno@clisp.org>
37292 * lib/striconv.c (mem_cd_iconv): Align the temporary buffer.
37294 2007-01-12 Eric Blake <ebb9@byu.net>
37296 Provide a robust <wchar.h>. Further simplifications are now
37297 possible in other modules, but not included here.
37298 * modules/wchar: New module.
37299 * m4/wchar.m4: New file.
37300 * lib/wchar_.h: Likewise.
37301 * modules/mbchar (Depends-on): Depend on wchar, as the first use
37303 * MODULES.html.sh (Extended multibyte and wide character utilities):
37306 2007-01-12 Paul Eggert <eggert@cs.ucla.edu>
37308 * lib/xreadlink.c (SYMLINK_MAX) [!defined SYMLINK_MAX]: Define
37309 to a reasonable default for memory allocation.
37310 (xreadlink): Don't allocate a huge buffer, to work around a buggy
37311 file system that reports garbage st_size values for symlinks.
37312 Problem reported by Liyang Hu.
37314 2007-01-11 Simon Josefsson <simon@josefsson.org>
37316 * gnulib-tool (func_all_modules): Exclude all .* files (e.g.,
37317 Emacs .#* auto-save files).
37319 2007-01-11 Bruno Haible <bruno@clisp.org>
37321 * gnulib-tool (func_all_modules): Exclude all files inside the CVS
37324 2007-01-10 Paul Eggert <eggert@cs.ucla.edu>
37326 Use @...@ consistently in lib/wctype_.h.
37327 * lib/wctype_.h [HAVE_WINT_T]: Go back to using @...@, but rely
37328 on it being set to 1 or 0.
37329 * m4/wctype.m4 (gl_WCTYPE_H): Set HAVE_WINT_T to 1 or 0, and
37330 go back to AC_SUBSTing it.
37331 * modules/wctype (Makefile.am): Undo previous change.
37333 2007-01-10 Eric Blake <ebb9@byu.net>
37335 * lib/wctype_.h [HAVE_WINT_T]: Rely on AC_DEFINE.
37336 * m4/wctype.m4 (gl_WCTYPE_H): No need to AC_SUBST(HAVE_WINT_T).
37337 * modules/wctype (Makefile.am): Likewise.
37338 Reported by Chris McGuire.
37340 2007-01-10 Jim Meyering <jim@meyering.net>
37342 fts.c: a small readability/maintainability improvement
37343 * lib/fts.c (fts_read): Make this code slightly more readable and
37344 maintainable by hoisting the "sp->fts_cur = p" assignments to
37345 immediately follow the statements that set P. Derived from
37346 the patch by Miloslav Trmac in http://bugzilla.redhat.com/222089.
37348 2007-01-10 Eric Blake <ebb9@byu.net>
37350 * lib/wctype_.h [HAVE_WINT_T]: Include <stddef.h> before
37351 <wchar.h>, to work around BSDI bug in BSD/OS 4.0.1.
37352 * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
37353 * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
37354 Reported by Chris McGuire.
37356 2007-01-09 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
37358 * gnulib-tool (func_all_modules): Use POSIX conforming escaping
37361 2007-01-09 Bruno Haible <bruno@clisp.org>
37363 * MODULES.html.sh: Accept options --cvs-urls, --git-urls.
37364 (repo_url_prefix, repo_url_suffix, repo_url_suffix_repl): New
37366 (func_module): Use them.
37368 2007-01-09 Bruno Haible <bruno@clisp.org>
37370 * modules/unistr/base: New file.
37371 * lib/unistr.h: New file.
37373 * modules/unistr/u8-to-u16: New file.
37374 * lib/unistr/u8-to-u16.c: New file.
37376 * modules/unistr/u8-to-u32: New file.
37377 * lib/unistr/u8-to-u32.c: New file.
37379 * modules/unistr/u16-to-u8: New file.
37380 * lib/unistr/u16-to-u8.c: New file.
37382 * modules/unistr/u16-to-u32: New file.
37383 * lib/unistr/u16-to-u32.c: New file.
37385 * modules/unistr/u32-to-u8: New file.
37386 * lib/unistr/u32-to-u8.c: New file.
37388 * modules/unistr/u32-to-u16: New file.
37389 * lib/unistr/u32-to-u16.c: New file.
37391 * modules/unistr/u8-check: New file.
37392 * modules/unistr/u16-check: New file.
37393 * modules/unistr/u32-check: New file.
37394 * lib/unistr/u8-check.c: New file.
37395 * lib/unistr/u16-check.c: New file.
37396 * lib/unistr/u32-check.c: New file.
37398 * modules/unistr/u8-chr: New file.
37399 * modules/unistr/u16-chr: New file.
37400 * modules/unistr/u32-chr: New file.
37401 * lib/unistr/u8-chr.c: New file.
37402 * lib/unistr/u16-chr.c: New file.
37403 * lib/unistr/u32-chr.c: New file.
37405 * modules/unistr/u8-cmp: New file.
37406 * modules/unistr/u16-cmp: New file.
37407 * modules/unistr/u32-cmp: New file.
37408 * lib/unistr/u8-cmp.c: New file.
37409 * lib/unistr/u16-cmp.c: New file.
37410 * lib/unistr/u32-cmp.c: New file.
37412 * modules/unistr/u8-cpy: New file.
37413 * modules/unistr/u16-cpy: New file.
37414 * modules/unistr/u32-cpy: New file.
37415 * lib/unistr/u8-cpy.c: New file.
37416 * lib/unistr/u16-cpy.c: New file.
37417 * lib/unistr/u32-cpy.c: New file.
37418 * lib/unistr/u-cpy.h: New file.
37420 * modules/unistr/u8-cpy-alloc: New file.
37421 * modules/unistr/u16-cpy-alloc: New file.
37422 * modules/unistr/u32-cpy-alloc: New file.
37423 * lib/unistr/u8-cpy-alloc.c: New file.
37424 * lib/unistr/u16-cpy-alloc.c: New file.
37425 * lib/unistr/u32-cpy-alloc.c: New file.
37426 * lib/unistr/u-cpy-alloc.h: New file.
37428 * modules/unistr/u8-endswith: New file.
37429 * modules/unistr/u16-endswith: New file.
37430 * modules/unistr/u32-endswith: New file.
37431 * lib/unistr/u8-endswith.c: New file.
37432 * lib/unistr/u16-endswith.c: New file.
37433 * lib/unistr/u32-endswith.c: New file.
37434 * lib/unistr/u-endswith.h: New file.
37436 * modules/unistr/u8-mblen: New file.
37437 * modules/unistr/u16-mblen: New file.
37438 * modules/unistr/u32-mblen: New file.
37439 * lib/unistr/u8-mblen.c: New file.
37440 * lib/unistr/u16-mblen.c: New file.
37441 * lib/unistr/u32-mblen.c: New file.
37443 * modules/unistr/u8-mbtouc: New file.
37444 * modules/unistr/u16-mbtouc: New file.
37445 * modules/unistr/u32-mbtouc: New file.
37446 * lib/unistr/u8-mbtouc.c: New file.
37447 * lib/unistr/u16-mbtouc.c: New file.
37448 * lib/unistr/u32-mbtouc.c: New file.
37450 * modules/unistr/u8-mbtouc-safe: New file.
37451 * modules/unistr/u16-mbtouc-safe: New file.
37452 * modules/unistr/u32-mbtouc-safe: New file.
37453 * lib/unistr/u8-mbtouc-safe.c: New file.
37454 * lib/unistr/u16-mbtouc-safe.c: New file.
37455 * lib/unistr/u32-mbtouc-safe.c: New file.
37457 * modules/unistr/u8-move: New file.
37458 * modules/unistr/u16-move: New file.
37459 * modules/unistr/u32-move: New file.
37460 * lib/unistr/u8-move.c: New file.
37461 * lib/unistr/u16-move.c: New file.
37462 * lib/unistr/u32-move.c: New file.
37463 * lib/unistr/u-move.h: New file.
37465 * modules/unistr/u8-next: New file.
37466 * modules/unistr/u16-next: New file.
37467 * modules/unistr/u32-next: New file.
37468 * lib/unistr/u8-next.c: New file.
37469 * lib/unistr/u16-next.c: New file.
37470 * lib/unistr/u32-next.c: New file.
37472 * modules/unistr/u8-prev: New file.
37473 * modules/unistr/u16-prev: New file.
37474 * modules/unistr/u32-prev: New file.
37475 * lib/unistr/u8-prev.c: New file.
37476 * lib/unistr/u16-prev.c: New file.
37477 * lib/unistr/u32-prev.c: New file.
37479 * modules/unistr/u8-set: New file.
37480 * modules/unistr/u16-set: New file.
37481 * modules/unistr/u32-set: New file.
37482 * lib/unistr/u8-set.c: New file.
37483 * lib/unistr/u16-set.c: New file.
37484 * lib/unistr/u32-set.c: New file.
37485 * lib/unistr/u-set.h: New file.
37487 * modules/unistr/u8-startswith: New file.
37488 * modules/unistr/u16-startswith: New file.
37489 * modules/unistr/u32-startswith: New file.
37490 * lib/unistr/u8-startswith.c: New file.
37491 * lib/unistr/u16-startswith.c: New file.
37492 * lib/unistr/u32-startswith.c: New file.
37493 * lib/unistr/u-startswith.h: New file.
37495 * modules/unistr/u8-stpcpy: New file.
37496 * modules/unistr/u16-stpcpy: New file.
37497 * modules/unistr/u32-stpcpy: New file.
37498 * lib/unistr/u8-stpcpy.c: New file.
37499 * lib/unistr/u16-stpcpy.c: New file.
37500 * lib/unistr/u32-stpcpy.c: New file.
37501 * lib/unistr/u-stpcpy.h: New file.
37503 * modules/unistr/u8-stpncpy: New file.
37504 * modules/unistr/u16-stpncpy: New file.
37505 * modules/unistr/u32-stpncpy: New file.
37506 * lib/unistr/u8-stpncpy.c: New file.
37507 * lib/unistr/u16-stpncpy.c: New file.
37508 * lib/unistr/u32-stpncpy.c: New file.
37509 * lib/unistr/u-stpncpy.h: New file.
37511 * modules/unistr/u8-strcat: New file.
37512 * modules/unistr/u16-strcat: New file.
37513 * modules/unistr/u32-strcat: New file.
37514 * lib/unistr/u8-strcat.c: New file.
37515 * lib/unistr/u16-strcat.c: New file.
37516 * lib/unistr/u32-strcat.c: New file.
37517 * lib/unistr/u-strcat.h: New file.
37519 * modules/unistr/u8-strchr: New file.
37520 * modules/unistr/u16-strchr: New file.
37521 * modules/unistr/u32-strchr: New file.
37522 * lib/unistr/u8-strchr.c: New file.
37523 * lib/unistr/u16-strchr.c: New file.
37524 * lib/unistr/u32-strchr.c: New file.
37526 * modules/unistr/u8-strcmp: New file.
37527 * modules/unistr/u16-strcmp: New file.
37528 * modules/unistr/u32-strcmp: New file.
37529 * lib/unistr/u8-strcmp.c: New file.
37530 * lib/unistr/u16-strcmp.c: New file.
37531 * lib/unistr/u32-strcmp.c: New file.
37533 * modules/unistr/u8-strcpy: New file.
37534 * modules/unistr/u16-strcpy: New file.
37535 * modules/unistr/u32-strcpy: New file.
37536 * lib/unistr/u8-strcpy.c: New file.
37537 * lib/unistr/u16-strcpy.c: New file.
37538 * lib/unistr/u32-strcpy.c: New file.
37539 * lib/unistr/u-strcpy.h: New file.
37541 * modules/unistr/u8-strcspn: New file.
37542 * modules/unistr/u16-strcspn: New file.
37543 * modules/unistr/u32-strcspn: New file.
37544 * lib/unistr/u8-strcspn.c: New file.
37545 * lib/unistr/u16-strcspn.c: New file.
37546 * lib/unistr/u32-strcspn.c: New file.
37547 * lib/unistr/u-strcspn.h: New file.
37549 * modules/unistr/u8-strdup: New file.
37550 * modules/unistr/u16-strdup: New file.
37551 * modules/unistr/u32-strdup: New file.
37552 * lib/unistr/u8-strdup.c: New file.
37553 * lib/unistr/u16-strdup.c: New file.
37554 * lib/unistr/u32-strdup.c: New file.
37555 * lib/unistr/u-strdup.h: New file.
37557 * modules/unistr/u8-strlen: New file.
37558 * modules/unistr/u16-strlen: New file.
37559 * modules/unistr/u32-strlen: New file.
37560 * lib/unistr/u8-strlen.c: New file.
37561 * lib/unistr/u16-strlen.c: New file.
37562 * lib/unistr/u32-strlen.c: New file.
37563 * lib/unistr/u-strlen.h: New file.
37565 * modules/unistr/u8-strmblen: New file.
37566 * modules/unistr/u16-strmblen: New file.
37567 * modules/unistr/u32-strmblen: New file.
37568 * lib/unistr/u8-strmblen.c: New file.
37569 * lib/unistr/u16-strmblen.c: New file.
37570 * lib/unistr/u32-strmblen.c: New file.
37572 * modules/unistr/u8-strmbtouc: New file.
37573 * modules/unistr/u16-strmbtouc: New file.
37574 * modules/unistr/u32-strmbtouc: New file.
37575 * lib/unistr/u8-strmbtouc.c: New file.
37576 * lib/unistr/u16-strmbtouc.c: New file.
37577 * lib/unistr/u32-strmbtouc.c: New file.
37579 * modules/unistr/u8-strncat: New file.
37580 * modules/unistr/u16-strncat: New file.
37581 * modules/unistr/u32-strncat: New file.
37582 * lib/unistr/u8-strncat.c: New file.
37583 * lib/unistr/u16-strncat.c: New file.
37584 * lib/unistr/u32-strncat.c: New file.
37585 * lib/unistr/u-strncat.h: New file.
37587 * modules/unistr/u8-strncmp: New file.
37588 * modules/unistr/u16-strncmp: New file.
37589 * modules/unistr/u32-strncmp: New file.
37590 * lib/unistr/u8-strncmp.c: New file.
37591 * lib/unistr/u16-strncmp.c: New file.
37592 * lib/unistr/u32-strncmp.c: New file.
37594 * modules/unistr/u8-strncpy: New file.
37595 * modules/unistr/u16-strncpy: New file.
37596 * modules/unistr/u32-strncpy: New file.
37597 * lib/unistr/u8-strncpy.c: New file.
37598 * lib/unistr/u16-strncpy.c: New file.
37599 * lib/unistr/u32-strncpy.c: New file.
37600 * lib/unistr/u-strncpy.h: New file.
37602 * modules/unistr/u8-strnlen: New file.
37603 * modules/unistr/u16-strnlen: New file.
37604 * modules/unistr/u32-strnlen: New file.
37605 * lib/unistr/u8-strnlen.c: New file.
37606 * lib/unistr/u16-strnlen.c: New file.
37607 * lib/unistr/u32-strnlen.c: New file.
37608 * lib/unistr/u-strnlen.h: New file.
37610 * modules/unistr/u8-strpbrk: New file.
37611 * modules/unistr/u16-strpbrk: New file.
37612 * modules/unistr/u32-strpbrk: New file.
37613 * lib/unistr/u8-strpbrk.c: New file.
37614 * lib/unistr/u16-strpbrk.c: New file.
37615 * lib/unistr/u32-strpbrk.c: New file.
37616 * lib/unistr/u-strpbrk.h: New file.
37618 * modules/unistr/u8-strrchr: New file.
37619 * modules/unistr/u16-strrchr: New file.
37620 * modules/unistr/u32-strrchr: New file.
37621 * lib/unistr/u8-strrchr.c: New file.
37622 * lib/unistr/u16-strrchr.c: New file.
37623 * lib/unistr/u32-strrchr.c: New file.
37625 * modules/unistr/u8-strspn: New file.
37626 * modules/unistr/u16-strspn: New file.
37627 * modules/unistr/u32-strspn: New file.
37628 * lib/unistr/u8-strspn.c: New file.
37629 * lib/unistr/u16-strspn.c: New file.
37630 * lib/unistr/u32-strspn.c: New file.
37631 * lib/unistr/u-strspn.h: New file.
37633 * modules/unistr/u8-strstr: New file.
37634 * modules/unistr/u16-strstr: New file.
37635 * modules/unistr/u32-strstr: New file.
37636 * lib/unistr/u8-strstr.c: New file.
37637 * lib/unistr/u16-strstr.c: New file.
37638 * lib/unistr/u32-strstr.c: New file.
37639 * lib/unistr/u-strstr.h: New file.
37641 * modules/unistr/u8-strtok: New file.
37642 * modules/unistr/u16-strtok: New file.
37643 * modules/unistr/u32-strtok: New file.
37644 * lib/unistr/u8-strtok.c: New file.
37645 * lib/unistr/u16-strtok.c: New file.
37646 * lib/unistr/u32-strtok.c: New file.
37647 * lib/unistr/u-strtok.h: New file.
37649 * modules/unistr/u8-uctomb: New file.
37650 * modules/unistr/u16-uctomb: New file.
37651 * modules/unistr/u32-uctomb: New file.
37652 * lib/unistr/u8-uctomb.c: New file.
37653 * lib/unistr/u16-uctomb.c: New file.
37654 * lib/unistr/u32-uctomb.c: New file.
37656 * MODULES.html.sh (Unicode string functions): Add the new modules.
37658 2007-01-08 Bruno Haible <bruno@clisp.org>
37660 * gnulib-tool (func_all_modules): Use find, not ls, to traverse the
37661 modules directory. Filter out CVS, ChangeLog, COPYING, README also from
37664 2007-01-08 Karl Berry <karl@gnu.org>
37666 * doc/error.texi: mention that main() fns must set program_name
37667 when progname is used.
37669 2007-01-08 Paul Eggert <eggert@cs.ucla.edu>
37671 * m4/wctype.m4 (gl_WCTYPE_H): Compute ABSOLUTE_WCTYPE_H even if
37672 WCTYPE_H is empty, for the benefit of builds from non-distclean
37673 directories. Problem reported by Eric Blake in
37674 <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00157.html>.
37676 2007-01-08 Bruno Haible <bruno@clisp.org>
37678 * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Remove
37679 PROVIDE_CANONICALIZE_FILENAME_MODE macro definition.
37680 * lib/canonicalize.h: Test GNULIB_CANONICALIZE instead of
37681 PROVIDE_CANONICALIZE_FILENAME_MODE.
37682 * modules/canonicalize (configure.ac): Use gl_MODULE_INDICATOR.
37684 2007-01-08 Bruno Haible <bruno@clisp.org>
37686 * m4/fts.m4 (gl_FUNC_FTS_LGPL): Remove _LGPL_PACKAGE macro definition.
37687 * lib/fts_.h (_LGPL_PACKAGE): Remove macro.
37688 Use !GNULIB_FTS instead of _LGPL_PACKAGE.
37689 * lib/fts.c: Likewise.
37690 * modules/fts (configure.ac): Use gl_MODULE_INDICATOR.
37692 2006-12-25 Bruno Haible <bruno@clisp.org>
37694 * modules/utf8-ucs4-safe: New file.
37695 * lib/utf8-ucs4-safe.h: New file.
37696 * lib/unistr/utf8-ucs4-safe.c: New file.
37698 * modules/utf16-ucs4-safe: New file.
37699 * lib/utf16-ucs4-safe.h: New file.
37700 * lib/unistr/utf16-ucs4-safe.c: New file.
37702 * MODULES.html.sh (Unicode string functions): Add the new modules.
37704 2007-01-08 Bruno Haible <bruno@clisp.org>
37706 * modules/utf8-ucs4 (Files, lib_SOURCES): Add unistr/utf8-ucs4.c.
37707 (Depends-on): Add unitypes.
37708 * lib/utf8-ucs4.h: Add double-inclusion guard. Include unitypes.h.
37709 (u8_mbtouc_aux): Move out to separate file.
37710 (u8_mbtouc): Use ucs4_t, uint8_t types.
37711 * lib/unistr/utf8-ucs4.c: New file.
37713 * modules/utf16-ucs4 (Files, lib_SOURCES): Add unistr/utf16-ucs4.c.
37714 (Depends-on): Add unitypes.
37715 * lib/utf16-ucs4.h: Add double-inclusion guard. Include unitypes.h.
37716 (u16_mbtouc_aux): Move out to separate file.
37717 (u16_mbtouc): Use ucs4_t, uint16_t types.
37718 * lib/unistr/utf16-ucs4.c: New file.
37720 * modules/ucs4-utf8 (Files, lib_SOURCES): Add unistr/ucs4-utf8.c.
37721 (Depends-on): Add unitypes.
37722 * lib/ucs4-utf8.h: Add double-inclusion guard. Include unitypes.h.
37723 (u8_uctomb_aux): Move out to separate file.
37724 (u8_uctomb): Use ucs4_t, uint8_t types.
37725 * lib/unistr/ucs4-utf8.c: New file.
37727 * modules/ucs4-utf16 (Files, lib_SOURCES): Add unistr/ucs4-utf16.c.
37728 (Depends-on): Add unitypes.
37729 * lib/ucs4-utf16.h: Add double-inclusion guard. Include unitypes.h.
37730 (u16_uctomb_aux): Move out to separate file.
37731 (u16_uctomb): Use ucs4_t, uint16_t types.
37732 * lib/unistr/ucs4-utf16.c: New file.
37734 2006-12-25 Bruno Haible <bruno@clisp.org>
37736 * modules/unitypes: New file.
37737 * lib/unitypes.h: New file.
37738 * MODULES.html.sh (func_all_modules): New section "Unicode string
37739 functions". Move ucs4-utf8, ucs4-utf16, utf8-ucs4, utf16-ucs4 to
37740 this section. Add unitypes.
37742 2007-01-08 Bruno Haible <bruno@clisp.org>
37744 Avoid variable names that conflict with those from libtool.
37745 * m4/lib-link.m4 (AC_LIB_RPATH, AC_LIB_LINKFLAGS_BODY,
37746 AC_LIB_LINKFLAGS_FROM_LIBS): Rename libext to acl_libext,
37747 shlibext to acl_shlibext, libname_spec to acl_libname_spec,
37748 library_names_spec to acl_library_names_spec, hardcode_* to
37750 Reported by Ralf Wildenhues.
37752 2007-01-08 Bruno Haible <bruno@clisp.org>
37754 * m4/gc-arcfour.m4 (gl_GC_ARCFOUR): Remove GC_USE_ARCFOUR macro
37756 * m4/gc-arctwo.m4 (gl_GC_ARCTWO): Remove GC_USE_ARCTWO macro
37758 * m4/gc-des.m4 (gl_GC_DES): Remove GC_USE_DES macro definition.
37759 * m4/gc-hmac-md5.m4 (gl_GC_HMAC_MD5): Remove GC_USE_HMAC_MD5 macro
37761 * m4/gc-hmac-sha1.m4 (gl_GC_HMAC_SHA1): Remove GC_USE_HMAC_SHA1 macro
37763 * m4/gc-md2.m4 (gl_GC_MD2): Remove GC_USE_MD2 macro definition.
37764 * m4/gc-md4.m4 (gl_GC_MD4): Remove GC_USE_MD4 macro definition.
37765 * m4/gc-md5.m4 (gl_GC_MD5): Remove GC_USE_MD5 macro definition.
37766 * m4/gc-random.m4 (gl_GC_RANDOM): Remove GC_USE_RANDOM macro
37768 * m4/gc-rijndael.m4 (gl_GC_RIJNDAEL): Remove GC_USE_RIJNDAEL macro
37770 * m4/gc-sha1.m4 (gl_GC_SHA1): Remove GC_USE_SHA1 macro definition.
37771 * lib/gc-gnulib.c: Use GNULIB_GC_<algorithm> instead of
37772 GC_USE_<algorithm>.
37773 * lib/gc-libgcrypt.c: Likewise.
37774 * modules/gc-arcfour (configure.ac): Use gl_MODULE_INDICATOR.
37775 * modules/gc-arctwo (configure.ac): Likewise.
37776 * modules/gc-des (configure.ac): Likewise.
37777 * modules/gc-hmac-md5 (configure.ac): Likewise.
37778 * modules/gc-hmac-sha1 (configure.ac): Likewise.
37779 * modules/gc-md2 (configure.ac): Likewise.
37780 * modules/gc-md4 (configure.ac): Likewise.
37781 * modules/gc-md5 (configure.ac): Likewise.
37782 * modules/gc-random (configure.ac): Likewise.
37783 * modules/gc-rijndael (configure.ac): Likewise.
37784 * modules/gc-sha1 (configure.ac): Likewise.
37786 2007-01-08 Bruno Haible <bruno@clisp.org>
37788 * m4/close-stream.m4 (gl_CLOSE_STREAM): Remove GNULIB_CLOSE_STREAM
37790 * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Remove GNULIB_FCNTL_SAFER macro
37792 * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Remove GNULIB_FOPEN_SAFER macro
37794 * modules/close-stream (configure.ac): Invoke gl_MODULE_INDICATOR.
37795 * modules/fcntl-safer (configure.ac): Likewise.
37796 * modules/fopen-safer (configure.ac): Likewise.
37797 * modules/fwriteerror (configure.ac): Likewise. Remove explicit
37798 GNULIB_FWRITEERROR macro definition.
37800 2007-01-08 Bruno Haible <bruno@clisp.org>
37802 * m4/gnulib-common.m4: New file.
37803 * gnulib-tool (func_get_autoconf_snippet): Undo last change.
37804 (func_get_filelist): Add m4/gnulib-common.m4.
37806 2007-01-08 Bruno Haible <bruno@clisp.org>
37808 * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Simplify the sorting
37811 2007-01-08 Jim Meyering <jim@meyering.net>
37813 Use a more robust test for a "can't happen" condition.
37814 * lib/fts.c (fts_read): Revert the change of 2006-11-22, since it
37815 narrowed the st_size value. Presuming the "can't happen" condition
37816 is true, that narrowing could conceivably convert an invalid st_size
37817 value into a valid one. Instead, use a change based on Matthew
37818 Woehlke's original patch.
37820 Slight readability improvement: use an assert-like macro
37821 in place of literal "abort ()" uses.
37822 * lib/fts.c (fts_assert): Define.
37823 (fts_set_stat_required, cwd_advance_fd, fts_read, fd_ring_check):
37824 Use this macro instead of a bare 'abort'.
37826 2007-01-05 Paul Eggert <eggert@cs.ucla.edu>
37828 Don't worry about using IRIX 5.3's wctype.h broken definitions;
37829 simply work around them.
37830 * lib/wctype_.h: Remove test for HAVE_WCTYPE_CTMP_BUG.
37831 (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph, iswlower):
37832 (iswprint, iswpunct, iswspace, iswupper, iswxdigit): Undef before
37834 Don't bother to define as macros, since the standard doesn't require it.
37835 * m4/wctype.m4 (WCTYPE_H, ABSOLUTE_WCTYPE_H): Simplify, since we no
37836 longer worry about IRIX 5.3.
37837 (HAVE_WCTYPE_CTMP_BUG): Remove.
37839 2007-01-04 Paul Eggert <eggert@cs.ucla.edu>
37841 * lib/wctype_.h (_ctmp_) [HAVE_WCTYPE_CTMP_BUG]: Now of type wchar_t,
37842 not wint_t. Also, include <ctype.h>, to fix another IRIX bug.
37843 * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
37844 Problems reported by Georg Schwarz for IRIX 5.3.
37846 * gnulib-tool (autoconf_minversion): Take the maximum version number
37847 found, not the minimum. Problem reported by James Youngman.
37849 2007-01-03 Karl Berry <karl@gnu.org>
37851 * doc/error.texi: new file, explaining interaction with progname.
37852 * doc/gnulib.texi: include it. Update copyright.
37854 2007-01-03 Simon Josefsson <simon@josefsson.org>
37856 * gnulib-tool (func_create_testdir): Run AC_CANONICAL_BUILD and
37857 AC_CANONICAL_HOST, to improve autobuild outputs.
37859 2007-01-03 Paolo Bonzini <bonzini@gnu.org>
37860 Yoann Vandoorselaere <yoann.v@prelude-ids.com>
37862 * lib/poll.c (poll): Use recv on Mac OS X to distinguish connected
37863 sockets, server sockets, and other file descriptors. Count errors
37864 to compute the return value. Reorder the code a bit to be easier
37865 to follow. Don't set event bits that were not requested (except
37866 POLLERR and POLLHUP).
37868 2007-01-01 Bruno Haible <bruno@clisp.org>
37870 * modules/lchmod (Include): Require lchmod.h, not lchown.h.
37872 2007-01-03 Jim Meyering <jim@meyering.net>
37874 * modules/fts-lgpl (Depends-on): Add i-ring. Reported by Bruno Haible.
37876 2007-01-02 Bruno Haible <bruno@clisp.org>
37878 * modules/settime (Include): Require timespec.h.
37879 * modules/nanosleep (Include): Likewise.
37881 2007-01-01 Bruno Haible <bruno@clisp.org>
37883 * gnulib-tool (func_emit_copyright_notice): Bump year.
37884 (func_get_autoconf_snippet): Emit a GNULIB_<modulename> macro.
37886 2007-01-01 Bruno Haible <bruno@clisp.org>
37888 Improve support for OpenBSD.
37889 * build-aux/config.rpath (libname_spec): Export.
37890 (library_names_spec): New variable. Export.
37891 * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Extract libname_spec and
37892 library_names_spec from the config.rpath output. Locate shared library
37893 through the name pattern in library_names_spec.
37895 2007-01-01 Eric Blake <ebb9@byu.net>
37897 * lib/version-etc.c (COPYRIGHT_YEAR): Bump for new year.
37899 2006-12-30 Paul Eggert <eggert@cs.ucla.edu>
37901 * gnulib-tool (SORT): Remove, since we no longer assume GNU sort.
37902 Rewrite so as not to assume GNU sort or "tail -1". Also, don't
37903 assume the C locale, and avoid an "eval" that could cause trouble.
37904 Problem with SORT reported by Bob Proulx.
37906 * lib/getpagesize.h (getpagesize) [defined __amigaos4__]:
37907 Define. Trivial patch from Henning Nielsen Lund, originally
37908 sent to bug-grep@gnu.org today.
37910 2006-12-29 Paul Eggert <eggert@cs.ucla.edu>
37912 * lib/acl.h: Include sys/types.h and sys/stat.h, for mode_t and
37913 struct stat. Problem reported by Henning Nielsen Lund.
37914 * lib/acl.c: Include acl.h first, to check interface. Don't
37915 bother to include sys/types.h and sys/stat.h again.
37917 2006-12-28 Paul Eggert <eggert@cs.ucla.edu>
37919 Import the following change from libc; problem reported by
37922 2005-10-13 Ulrich Drepper <drepper@redhat.com>
37925 * lib/argp.h: Remove __NTH for __argp_usage inline function.
37927 2006-12-28 Jim Meyering <jim@meyering.net>
37929 * build-aux/announce-gen: Do not assume that the package
37930 builds any of tar.gz, tar.bz2, and .xdelta files.
37931 Suggestion from Simon Josefsson.
37933 2006-12-28 Simon Josefsson <simon@josefsson.org>
37935 * modules/announce-gen: New file.
37937 2006-12-27 Paul Eggert <eggert@cs.ucla.edu>
37939 * lib/mbchar.h: Just include <wctype.h>; the wctype module
37940 handles its gotchas now.
37941 * lib/mbswidth.c: Likewise.
37942 * lib/wcwidth.h: Likewise.
37943 * m4/mbchar.m4 (gl_MBCHAR): Don't bother checking for wctype.h
37944 and iswcntrl; the wctype module does this stuff now.
37945 * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
37946 * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
37947 * modules/mbchar (Depends-on): Add wctype.
37948 * modules/mbswidth (Depends-on): Likewise.
37949 * modules/wcwidth (Depends-on): Likewise.
37951 2006-12-27 Eric Blake <ebb9@byu.net>
37953 * lib/fnmatch.c: Reinstate inclusion of <wchar.h>, since this
37954 module uses more than what <wctype.h> is required to provide.
37956 2006-12-26 Eric Blake <ebb9@byu.net>
37958 * gnulib-tool (sed_extract_prog): Avoid space-tab.
37960 2006-12-26 Eric Blake <ebb9@byu.net>
37962 * modules/absolute-header: New module.
37963 * modules/fcntl (Depends-on): Depend on it.
37964 * modules/inttypes (Depends-on): Likewise.
37965 * modules/stdint (Depends-on): Likewise.
37966 * modules/sys_stat (Depends-on): Likewise.
37967 * modules/wctype (Depends-on): Likewise.
37968 * MODULES.html.sh (Support for building libraries and
37969 executables): Document it.
37971 2006-12-25 Paul Eggert <eggert@cs.ucla.edu>
37973 * gnulib-tool (SED): Remove, undoing previous change.
37974 The problem was that it broke coreutils on Solaris, because
37975 "sed --posix" leaked into a makefile.
37976 (sed): New alias, if 'alias' and GNU sed.
37978 2006-12-24 Jim Meyering <jim@meyering.net>
37980 Work around an fchownat bug in glibc-2.4:
37981 http://lists.ubuntu.com/archives/ubuntu-users/2006-September/093218.html
37982 This bug would cause "chown -RP ... DIR" to follow symlinks in DIR,
37983 in spite of the -P option.
37984 * m4/openat.m4 (gl_FUNC_FCHOWNAT, gl_FUNC_FCHOWNAT_DEREF_BUG):
37986 (gl_PREREQ_OPENAT): Require gl_FUNC_FCHOWNAT.
37987 * modules/openat (Files): Add lib/fchownat.c.
37988 * lib/openat.c (fchownat): Don't define here. Move to...
37989 * lib/fchownat.c: ...this new file.
37991 2006-12-23 Paul Eggert <eggert@cs.ucla.edu>
37993 Fix bug reported by Bruno Haible in
37994 <http://lists.gnu.org/archive/html/bug-gnulib/2006-12/msg00228.html>
37995 where quotearg.c didn't compile on Mac OS X 10.2 because it
37996 lacks <wchar.h> and wint_t.
37997 * lib/wctype_.h (__wctype_wint_t): New type.
37998 Include <stdio.h>, <time.h>, <wchar.h> only if HAVE_WINT_T.
37999 (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph):
38000 (iswlower, iswprint, iswpunct, iswspace, iswupper, ixwxdigit):
38001 Arg is now of type __wctype_wint_t, not wint_t.
38002 * m4/wctype.m4 (gl_WCTYPE_H): Require gt_TYPE_WINT_T, and
38003 substitute HAVE_WINT_T.
38004 * modules/wctype (Files): Add m4/wint_t.m4.
38005 (wctype.h): Substitute HAVE_WINT_T.
38007 2006-12-23 Bruno Haible <bruno@clisp.org>
38009 * lib/safe-read.h [C++]: Wrap declarations in extern "C".
38011 2006-12-23 Bruno Haible <bruno@clisp.org>
38013 * lib/canonicalize-lgpl.c (__realpath): Test HAVE_READLINK instead of
38015 Needed because gnulib's sys/stat.h replacement defines S_ISLNK on
38018 2006-12-22 Bruno Haible <bruno@clisp.org>
38020 * lib/copy-file.c: Include acl.h.
38021 (copy_file_preserving) [USE_ACL]: Use copy_acl instead of chmod.
38022 Close the file descriptors only after being done with copy_acl.
38023 * modules/copy-file (Depends-on): Add acl.
38025 2006-12-22 Bruno Haible <bruno@clisp.org>
38027 * gnulib-tool (SED): New variable.
38028 Use $SED instead of sed everywhere.
38030 2006-12-22 Bruno Haible <bruno@clisp.org>
38032 * modules/no-c++: New file.
38033 * m4/no-c++.m4: New file.
38034 * MODULES.html.sh (Support for building libraries and executables):
38037 2006-12-22 Paul Eggert <eggert@cs.ucla.edu>
38039 * m4/mktime.m4 (AC_FUNC_MKTIME): Sync from Autoconf.
38040 Include <limits.h>, and use its INT_MAX to rewrite the
38041 j loop so that it does not overflow 'int'. Problem reported by
38043 <http://lists.gnu.org/archive/html/bug-gnulib/2006-12/msg00084.html>.
38044 Play it safe by shifting left by 1 rather than multiplying by 2,
38045 as GCC is less likely to optimize this away when the value
38046 is signed (when it assumes overflow leads to undefined behavior).
38047 Also, don't assume time_t uses two's complement.
38049 2006-12-21 Paul Eggert <eggert@cs.ucla.edu>
38051 * MODULES.html.sh: New module wctype.
38052 * lib/wctype_.h, m4/wctype.m4, modules/wctype: New files.
38053 * lib/fnmatch.c: Don't bother to include <wchar.h> before
38054 <wctype.h>, since the new wctype module should fix this.
38055 * lib/quotearg.c: Include <wctype.h> unconditionally, since
38056 the wctype module should arrange for it.
38057 * lib/regex_internal.h: Likewise.
38058 * m4/quotearg.m4 (gl_QUOTEARG): Don't check for wctype.h or iswprint,
38059 since the wctype module should handle this now.
38060 * m4/regex.m4 (gl_PREREQ_REGEX): Don't check for wctype.h.
38061 * modules/fnmatch (Depends-on): Add wctype.
38062 * modules/quotearg (Depends-on): Likewise.
38063 * modules/regex (Depends-on): Likewise.
38065 2006-12-19 Bruno Haible <bruno@clisp.org>
38067 * lib/strdup.h [C++]: Wrap definitions in extern "C".
38068 Suggested by Lorenzo Bettini <bettini@dsi.unifi.it>.
38070 2006-12-19 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
38072 * modules/savewd (Depends-on): Fix dependency on fcntl.
38074 2006-12-18 Paul Eggert <eggert@cs.ucla.edu>
38076 * m4/stdint.m4 (gl_STDINT_H): Set STDINT_H to empty if stdint.h
38077 conforms to C99, rather than relying on the user's environment
38078 setting of STDINT_H.
38080 2006-12-18 Paul Eggert <eggert@cs.ucla.edu>
38081 and Eric Blake <ebb9@byu.net>
38083 * lib/dirname.h (DOUBLE_SLASH_IS_DISTINCT_ROOT): Default to 0, not 1.
38084 This is more consistent with the other defines here.
38085 * m4/double-slash-root.m4 (gl_DOUBLE_SLASH_ROOT):
38086 Port to z/OS. Problem reported by Paul Gilmartin.
38087 Change local vars to use gl_ prefix rather than ac_.
38088 Don't define DOUBLE_SLASH_IS_DISTINCT_ROOT to 0, for consistency
38089 with other defines.
38090 * modules/double-slash-root: New module.
38091 * modules/dirname (Files): Remove m4/double-slash-root.m4.
38092 (Depends-on): Add double-slash-root.
38093 * MODULES.html.sh (File system functions): Mention new module.
38095 2006-12-14 Paul Eggert <eggert@cs.ucla.edu>
38097 * lib/yesno.c [!ENABLE_NLS]: Don't include getline.h.
38098 (yesno) [!ENABLE_NLS]: Don't invoke getline or rpmatch.
38099 This is for the benefit of gzip, which doesn't do i18n.
38101 2006-12-12 Jim Meyering <jim@meyering.net>
38103 * m4/acl.m4 (gl_ACL_GET_FILE): Fix logic error.
38104 Reported by Andreas Schwab <schwab@suse.de>.
38106 2006-12-12 Bruno Haible <bruno@clisp.org>
38108 Merge these changes.
38109 2006-09-05 Bruno Haible <bruno@clisp.org>
38110 * lib/iconvme.c (iconv_string): No need to save and restore errno when
38111 iconv_alloc succeeded.
38112 (iconv_alloc): Don't assume that malloc() or realloc(), when failing,
38113 sets errno to ENOMEM. (malloc on GNU/kFreeBSD doesn't.) No need to
38114 test for " && dest " at the end - dest is always != NULL there. Call
38115 iconv with 4xNULL arguments initially, to reset the state. Call iconv
38116 with 2xNULL arguments, also to flush the state storage. Handle the
38117 IRIX iconv behaviour. Realloc the final result, to throw away unused
38120 2006-12-11 Paul Eggert <eggert@cs.ucla.edu>
38122 * m4/openat.m4 (gl_FUNC_OPENAT): Don't compile mkdirat
38123 and fchmodat unconditionally, since glibc 2.4 has them.
38124 Problem reported by Arkadiusz Miskiewicz.
38126 2006-12-10 Bruno Haible <bruno@clisp.org>
38128 * gnulib-tool (func_import): Show the include files only for those
38129 modules that are copied and specified.
38130 Reported by Karl Berry.
38132 2006-12-08 Jim Meyering <jim@meyering.net>
38134 * build-aux/announce-gen ($VERSION): Don't use of $Revision...$.
38135 Instead, use Emacs' time-stamp write hook. Note that the time is UTC.
38137 * build-aux/announce-gen: Add two new options, both optional:
38138 --bootstrap-tools=TOOL_LIST
38139 a comma-separated list of tools, e.g.,
38140 autoconf,automake,bison,gnulib
38141 --gnulib-snapshot-date=DATE
38142 if gnulib is in the bootstrap tool list,
38143 then report this as the snapshot date.
38144 If not specified, use the current date/time.
38145 If you specify a date here, be sure it's UTC.
38147 2006-12-05 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
38149 * tests/test-argp-2.sh: Fix test to match actual output.
38150 (func_compare): Fix sed script to be portable.
38152 2006-12-05 Paul Eggert <eggert@cs.ucla.edu>
38154 * lib/utimens.c (futimens) [HAVE_BUGGY_NFS_TIME_STAMPS]: Add a
38155 workaround for this case. It is not autoconfigured now; offhand
38156 it's hard to see how to autoconfigure it.
38158 2006-12-03 Paul Eggert <eggert@cs.ucla.edu>
38160 * lib/mkdir-p.c (make_dir_parents): Fix race condition when making
38161 a directory that is about to be chowned. Such a directory's
38162 initial file permissions should permit the owner only and this
38163 should not be changed until after the chown, since the group and
38164 other bits would be incorrect if they granted permission before
38167 Fix porting problem for iswctype reported by Georg Schwarz in:
38168 http://lists.gnu.org/archive/html/bug-coreutils/2006-12/msg00017.html
38169 * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Require HAVE_ISWCTYPE, too.
38170 * lib/regex_internal.h (RE_ENABLE_I18N): Likewise.
38171 * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for iswctype, too.
38172 * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
38174 2006-12-03 Jim Meyering <jim@meyering.net>
38176 * lib/fts.c (fts_load): Don't set sp->fts_dev here, since
38177 p->fts_statp may not yet be defined.
38178 (fts_read): Instead, set it in the caller, once p->fts_statp is
38179 sure to be defined, and corresponds to a top-level directory.
38180 This bug made du -x fail. Here's the coreutils test case:
38181 http://git.sv.gnu.org/gitweb/?p=coreutils.git;a=commit;h=ba45154d8e9f
38182 Reported by Mike Frysinger.
38184 2006-12-01 Jim Meyering <jim@meyering.net>
38186 * modules/savewd (Depends-on): Add fcntl_h to avoid self-test
38187 build failure due to missing definition of HAVE_WORKING_O_NOFOLLOW.
38188 Reported by Simon Josefsson.
38190 2006-11-30 Jim Meyering <jim@meyering.net>
38192 * m4/warning.m4: Use the all-permissive copyright notice
38193 recommended by RMS (rather than LGPL).
38194 * m4/vararrays.m4: Likewise.
38195 * m4/flexmember.m4: Likewise.
38197 2006-11-29 Bruno Haible <bruno@clisp.org>
38199 * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
38200 noinst_LIBRARIES. Augment noinst_LIBRARIES and noinst_LTLIBRARIES
38202 Reported by Simon Josefsson <simon@josefsson.org>.
38204 2006-11-28 James Youngman <jay@gnu.org>
38206 * README: Advise users that they might find the bug-gnulib@gnu.org
38207 and autotools-announce@gnu.org mailing lists useful.
38209 2006-11-28 Bruno Haible <bruno@clisp.org>
38211 * m4/ptrdiff_max.m4: Remove file.
38213 2006-11-21 Bruno Haible <bruno@clisp.org>
38215 * m4/eoverflow.m4 (gl_EOVERFLOW): Use AC_COMPUTE_INT instead of
38217 (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
38218 * m4/ptrdiff_max.m4 (gl_PTRDIFF_MAX): Use AC_COMPUTE_INT instead of
38220 (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
38221 * m4/size_max.m4 (gl_SIZE_MAX): Use AC_COMPUTE_INT instead of
38223 (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
38225 2006-11-28 Jim Meyering <jim@meyering.net>
38227 * lib/regcomp.c (parse_branch): Rename local, exp->expr, to avoid
38228 warning from "gcc -Wshadow" about shadowing the builtin.
38230 2006-11-27 Bruno Haible <bruno@clisp.org>
38232 * m4/stdint.m4 (gl_STDINT_BITSIZEOF): Use AC_COMPUTE_INT instead of
38234 (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
38236 2006-11-27 Bruno Haible <bruno@clisp.org>
38237 Paul Eggert <eggert@cs.ucla.edu>
38239 * lib/regex.h (__restrict_arr): Redo logic of #if, for clarity.
38241 2006-11-26 Bruno Haible <bruno@clisp.org>
38243 * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
38244 noinst_LTLIBRARIES.
38246 2006-11-27 Paul Eggert <eggert@cs.ucla.edu>
38247 Bruno Haible <bruno@clisp.org>
38249 * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Define to 0
38250 if compiling with "gcc -ansi".
38252 2006-11-26 Paul Eggert <eggert@cs.ucla.edu>
38254 Fix some incompatibilities with gcc -ansi -pedantic.
38255 * lib/regex.h (__restrict_arr): Don't use the [restrict] syntax
38256 if compiling pedantically with GCC, unless it's C99 or later.
38257 Don't trust sys/cdefs.h's definition of __restrict_arr, either, as
38258 it mishandles gcc -ansi -pedantic as well.
38259 * lib/regex_internal.h (re_token_t): Don't use enum bitfields
38261 * lib/regexec.c (check_node_accept_bytes): Don't use auto
38262 initializers for struct if -pedantic, unless it's C99 or later.
38264 2006-11-25 Nix <nix@esperi.org.uk> (tiny change)
38266 * m4/fcntl_h.m4 (gl_FCNTL_H): Test the atime, not the mtime.
38267 Don't close an fd more than once. Identical atimes indicate
38268 success, not failure.
38270 2006-11-22 Robinson Mittmann <bob@hoplon.com> (tiny change)
38272 * lib/sincosl.c (kernel_sinl): Fix typo in threshold.
38274 2006-11-23 Jim Meyering <jim@meyering.net>
38276 * build-aux/announce-gen: New file. From coreutils.
38278 2006-11-22 Jim Meyering <jim@meyering.net>
38280 Work around a compile-time error from the HP-UX 11.00 /bin/cc.
38281 * lib/fts.c (enum Fts_stat): Give this previously-anon enum a name.
38282 (fts_read): Use a temporary to narrow the overused st_size member
38283 before using it in a switch statement. Reported by Matthew Woehlke.
38285 * m4/clock_time.m4 (gl_CLOCK_TIME): Quote AC_SUBST argument.
38286 * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
38288 2006-11-20 Bruno Haible <bruno@clisp.org>
38290 * gettext.m4 (AM_GNU_GETTEXT): Revert 2005-07-28 patch: Use
38291 changequote instead of pairs of brackets.
38292 Reported by Andreas Schwab <schwab@suse.de>.
38294 2006-11-21 Jim Meyering <jim@meyering.net>
38296 * lib/fts.c (fts_safe_changedir): Move a declaration "up",
38297 so as to remain compatible with older compilers.
38298 Patch from Michael Deutschmann.
38300 2006-11-20 Paul Eggert <eggert@cs.ucla.edu>
38302 * MODULES.html.sh (File system functions): Add openat.
38304 * lib/openat.h (rpl_fstatat): New macro, if
38305 [HAVE_OPENAT && ! LSTAT_FOLLOWS_SLASHED_SYMLINK.
38306 (fstatat): Define to rpl_fstatat under the same conditions,
38307 unless COMPILING_FSTATAT.
38308 * m4/openat.m4 (gl_FUNC_OPENAT): Compile fstatat.c too, if fstatat
38309 seems to have the bug.
38310 * lib/fstatat.c: New file.
38311 * modules/openat (Files): Add it.
38313 2006-11-20 Bruno Haible <bruno@clisp.org>
38315 * Makefile: New file.
38317 2006-11-20 Jim Meyering <jim@meyering.net>
38319 The beginnings of syntax-related checks for gnulib.
38320 * lib/Makefile: New file.
38321 * lib/t-idcache: New script. Ensure that the two halves of
38322 idcache.c stay in sync.
38324 * lib/idcache.c: Adjust comments in user- and group- portions to
38325 be more accurate, and to be consistent with one another.
38327 2006-11-20 Jim Meyering <jim@meyering.net>
38329 * lib/idcache.c: Restore most of the 2006-11-06 patch, so as to
38330 continue using the flexible array member (thus, this module performs
38331 half as many malloc calls), with the addition that...
38332 (getgroup, getuser): Consistently record a non-match via an empty
38333 "name" string, and map an empty string match to a NULL return value.
38334 * modules/idcache (Depends-on): Re-add flexmember.
38336 * lib/idcache.c (getuser): Remove all uses of the register keyword.
38337 (getuidbyname, getgroup, getgidbyname): Likewise.
38339 Use cleaner syntax: NULL rather than 0.
38340 * lib/idcache.c (getuidbyname, getgidbyname): Return NULL, not 0.
38342 2006-11-20 Paul Eggert <eggert@cs.ucla.edu>
38344 * lib/idcache.c: Undo most recent patch, dated 2006-11-06.
38345 It mishandled the case where the group was missing.
38346 Problem reported by Greg Schafer.
38347 * modules/idcache: Likewise.
38349 2006-11-18 Jim Meyering <jim@meyering.net>
38351 * check-module (%exempt_header): Add exception for some
38352 conditionally-included headers.
38354 * modules/i-ring (Depends-on): Add verify.
38355 (License): Change to LGPL.
38357 2006-11-16 Paul Eggert <eggert@cs.ucla.edu>
38359 * modules/getaddinfo (Depends-on): Remove inttostr; add snprintf.
38360 * lib/getaddrinfo.c: Include snprintf.h rather than intprops.h
38361 and inttostr.h. Use snprintf rather than uinttostr, so that
38362 LGPLed code doesn't depend on GPLed.
38364 2006-11-17 Paul Eggert <eggert@cs.ucla.edu>
38366 * modules/inline (License): Change from GPL to LGPL.
38368 2006-11-17 Jim Meyering <jim@meyering.net>
38370 * modules/d-type (License): Switch to LGPL.
38372 2006-11-15 Bruno Haible <bruno@clisp.org>
38374 * m4/alloca.m4 (gl_FUNC_ALLOCA): Fix the AC_CACHE_CHECK message.
38376 2006-11-15 Eric Blake <ebb9@byu.net>
38378 * m4/allocsa.m4 (gl_ALLOCSA): Don't invoke macro already picked up by
38379 the module dependency.
38381 2006-11-15 Yoann Vandoorselaere <yoann.v@prelude-ids.com>
38382 Bruno Haible <bruno@clisp.org>
38384 * gnulib-tool (func_create_testdir): Add license consistency check.
38386 2006-11-15 Eric Blake <ebb9@byu.net>
38388 * m4/alloca.m4 (gl_FUNC_ALLOCA): Use AC_CACHE_CHECK to avoid a
38389 random "(cached)" in configure output.
38391 2006-11-14 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
38393 * m4/inttypes.m4 (gl_INTTYPES_H): Use AC_CACHE_CHECK so that the
38394 test for conforming inttypes.h is both announced and cached.
38396 * MODULES.html.sh (seen_modules, seen_files): New variables.
38397 (func_module): Rewrite to use a few less gnulib-tool and sed
38398 invocations. Avoid a couple of quadratic algorithms for ...
38399 (missed_modules, missed_files): ... these, with ...
38400 (func_append, func_tmpdir): ... these new functions, from
38401 gnulib-tool. Analogously, install traps for cleanup.
38403 * tests/test-gc.c (main): Remove unused variables.
38404 * tests/test-read-file.c: Include stdlib.h, for 'free'.
38406 2006-11-14 Paul Eggert <eggert@cs.ucla.edu>
38408 * modules/inttostr (License): Change to LGPL.
38410 2006-11-14 Eric Blake <ebb9@byu.net>
38412 * modules/tempname (License): Change to LGPL.
38414 2006-11-14 Eric Blake <ebb9@byu.net>
38416 * doc/functions.texi (Function Portability): *printf functions on
38417 Cygwin now understand all POSIX size specifiers.
38419 2006-11-14 Bruno Haible <bruno@clisp.org>
38421 * modules/c-ctype (License): Change to LGPL.
38423 2006-11-12 Bruno Haible <bruno@clisp.org>
38425 * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
38426 AC_LIB_LINKFLAGS_BODY): Also set a LIB${NAME}_PREFIX variable. Needed
38427 for GNOME libraries, for which the include files are installed in
38428 subdirectories of $prefix/include.
38430 2006-11-12 Bruno Haible <bruno@clisp.org>
38432 * m4/lib-link.m4: Require at least autoconf-2.54.
38433 (AC_LIB_LINKFLAGS_BODY) [autoconf < 2.61]: Turn dots into the library
38434 name to underscores for the --with option.
38436 2006-11-13 Bruno Haible <bruno@clisp.org>
38438 * gnulib-tool (func_create_testdir): Set gl_source_base correctly in
38439 the tests directory.
38440 Reported by Ralf Wildenhues.
38442 2006-11-13 Bruno Haible <bruno@clisp.org>
38444 * gnulib-tool (func_emit_initmacro_start): Also override AC_LIBSOURCES.
38445 (func_emit_initmacro_end): Undo the override here.
38446 (func_emit_initmacro_done): Emit a definition for gl_LIBSOURCES.
38447 Works around the famous automake error in coreutils.
38449 2006-11-13 Eric Blake <ebb9@byu.net>
38451 * lib/gl_anytree_oset.h (gl_tree_search_atleast): Return the
38452 element, not its node.
38454 2006-11-12 Bruno Haible <bruno@clisp.org>
38456 * gnulib-tool (func_emit_lib_Makefile_am): Replace occurrences of
38457 '$(top_srcdir)/build-aux/', taking into account the real auxdir.
38459 2006-11-12 Bruno Haible <bruno@clisp.org>
38461 * gnulib-tool: New option --local-symlink.
38462 (func_usage): Document it.
38463 (lsymbolic): New variable.
38464 (func_import, func_create_testdir): If --symlink was not specified,
38465 test whether --local-symlink was specified and the file comes from
38466 the local_gnulib_dir.
38468 2006-11-12 Bruno Haible <bruno@clisp.org>
38470 * gnulib-tool (func_ln): New function.
38471 (func_ln_if_changed, func_create_testdir): Use it instead of "ln -s".
38473 2006-11-12 Bruno Haible <bruno@clisp.org>
38475 Finish support for source files in subdirectories.
38476 * gnulib-tool (func_emit_lib_Makefile_am): If some of the source files
38477 are in subdirectories, set uses_subdirs and add 'subdir-objects' to
38479 (func_import, func_create_testdir): Invoke AM_PROG_CC_C_O in this case.
38481 2006-11-12 Bruno Haible <bruno@clisp.org>
38483 * gnulib-tool (func_get_automake_snippet): Synthesize also an
38484 EXTRA_lib_SOURCES augmentation.
38485 (func_emit_lib_Makefile_am): Initialize EXTRA_lib..._SOURCES to empty.
38487 2006-11-12 Jim Meyering <jim@meyering.net>
38489 Make fts (in FTS_CWDFD mode) more efficient by caching a few open
38490 file descriptors. This also averts a failure on systems with
38491 native openat support when a traversed directory lacks "x" access.
38492 * lib/fts_.h: Include "i-ring.h"
38493 (struct FTS) [fts_fd_ring]: New member.
38494 * lib/fts.c (RESTORE_INITIAL_CWD): Also call fd_ring_clear.
38495 (FCHDIR): Add parentheses.
38496 (fd_ring_check, fd_ring_print) [!FTS_DEBUG]: Define away.
38497 (cwd_advance_fd): Add a 3rd parameter. Adjust all callers.
38498 When descending, rather than simply closing the previous
38499 fts_cwd_fd value, push that file descriptor onto the ring.
38500 (same_fd, fd_ring_print, fd_ring_check) [FTS_DEBUG]: New functions.
38501 (fts_open): Initialize the new fd_ring member.
38502 (fts_close): Clear the ring.
38503 (fts_safe_changedir): When possible, use our new fd_ring to skip
38504 the diropen and fstat and dev/ino comparison that would normally
38505 accompany a virtual `chdir ("..")'.
38507 * modules/fts (Depends-on): Add i-ring.
38508 * modules/i-ring: New module.
38509 * lib/i-ring.c, lib/i-ring.h, lib/i-ring-test.c: New files.
38510 * m4/i-ring.m4: New file.
38512 2006-11-12 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
38514 * gnulib-tool (func_create_testdir): Fix replacement of
38515 `build-aux' in configure.ac. Run autotools in gltests
38517 (func_create_testdir, func_create_megatestdir, test): There is
38518 no need for '--force' in most autotool invocations in a new
38519 tree. Actually fail the whole test if any of the tools, or the
38520 configure or make stages fail.
38522 Sync from Automake.
38523 * build-aux/gnupload: Revert last change. Add pointer to upload
38524 instructions of the GNU Maintenance Instructions.
38525 Suggestion by Karl Berry.
38527 2006-11-10 Jim Meyering <jim@meyering.net>
38529 * lib/fts.c [FTS_DEBUG]: Don't try to print a pointer via %s.
38531 2006-11-09 Paul Eggert <eggert@cs.ucla.edu>
38533 * lib/gettext.h (dgettext, dcgettext, ngettext) [! ENABLE_NLS]:
38534 (dngettext, dcngettext, bindtextdomain) [! ENABLE_NLS]:
38535 (bind_textdomain_codeset) [! ENABLE_NLS]:
38536 Evaluate all the arguments. That way, callers get compatible behavior
38537 if the arguments have side effects. Also, it avoids some GCC
38538 diagnostics in some cases; Joel E. Denny reported problems when Bison
38539 was configured with --enable-gcc-warnigs.
38541 2006-11-10 Jim Meyering <jim@meyering.net>
38543 * m4/inline.m4 (gl_INLINE): Check with the compiler, not cpp, so that
38544 relevant options in CFLAGS (like -O, -fno-inline) are taken into
38547 2006-11-10 Jim Meyering <jim@meyering.net>
38549 * modules/inline: New file/module.
38550 * modules/xalloc (Files): Remove m4/inline.m4.
38551 (Depends-on): Add inline, instead.
38552 * modules/oset: Likewise.
38553 * modules/list: Likewise.
38555 2006-11-09 Paul Eggert <eggert@cs.ucla.edu>
38557 * lib/stdint_.h (uintmax_t): Fix typo: int64_t -> uint64_t.
38558 Problem reported by Matthew Woehlke.
38560 2006-11-09 Bruno Haible <bruno@clisp.org>
38562 * lib/tempname.c (gen_tempname): Remove variant that invokes
38564 * m4/tempname.m4 (gl_FUNC_GEN_TEMPNAME): Don't test for
38567 2006-11-08 Bruno Haible <bruno@clisp.org>
38569 * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Set ac_cv_type_long_long_int
38570 to 'yes' instead of 'cross-compiling'.
38572 2006-11-08 Paul Eggert <eggert@cs.ucla.edu>
38574 * lib/quotearg.h (quotearg_free): New decl.
38575 * lib/quotearg.c (quotearg_free): New function.
38576 (slot0, nslots, slotvec0, slotvec):
38577 Now file-scope so that quotearg_free can get at them.
38579 2006-11-08 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
38581 Sync from Automake.
38582 * build-aux/gnupload: Add missing 'gnu' to example URL.
38583 Report by Karl Berry.
38585 2006-11-08 Bruno Haible <bruno@clisp.org>
38587 * m4/inline.m4 (gl_INLINE): Also test __NO_INLINE__.
38588 Suggested by Paul Eggert.
38590 2006-11-08 Jim Meyering <jim@meyering.net>
38592 * lib/fts.c [!_LGPL_PACKAGE]: Don't include fcntl--.h twice.
38593 It's already included if !_LIBC.
38594 (fts_safe_changedir): Add a comment.
38596 2006-11-07 Paul Eggert <eggert@cs.ucla.edu>
38598 * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Detect bug in
38599 Tandem NonStop Kernel (OSS) cc -O circa 2004, reported by
38602 * lib/xalloc.h (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): Move
38603 definitions up, to avoid colliding with change below.
38604 (static_inline) [HAVE_INLINE]: New macro.
38605 (xnmalloc, xnrealloc, x2nrealloc, xcharalloc):
38606 Provide extern decls when !HAVE_INLINE. Do not define unless
38607 static_inline is defined, either by us or by xmalloc.c. Use
38608 static_inline rather than static inline.
38609 (XCALLOC): Optimize sizeof(T) = 1 case.
38610 * lib/xmalloc.c (static_inline) [!HAVE_INLINE]: New macro.
38612 2006-11-07 Bruno Haible <bruno@clisp.org>
38614 * lib/xalloc.h (XNMALLOC): Restore optimization of sizeof(T) = 1 case.
38615 * m4/xalloc.m4 (gl_PREREQ_XALLOC): Require gl_INLINE instead of
38617 * modules/xalloc (Files): Add m4/inline.m4.
38619 2006-11-07 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
38621 * README: Fix typo.
38622 * doc/gnulib.texi (Miscellaneous Notes): Likewise, rename...
38623 (Miscellanous Notes): ...from this.
38625 2006-11-07 Paul Eggert <eggert@cs.ucla.edu>
38627 * m4/flexmember.m4 (AC_C_FLEXIBLE_ARRAY_MEMBER):
38628 Mention that offsetof should be used instead of sizeof.
38631 2006-11-07 Bruno Haible <bruno@clisp.org>
38633 * lib/w32spawn.h (prepare_spawn): Use XNMALLOC instead of xmalloc.
38635 2006-11-06 Paul Eggert <eggert@cs.ucla.edu>
38637 Simplify xmalloc expressions. Add overflow check in xmalloc arguments.
38638 * lib/gl_anyavltree_list2.h (create_subtree_with_contents):
38639 (gl_tree_create, gl_tree_add_first, gl_tree_add_last):
38640 (gl_tree_add_before, gl_tree_add_after):
38641 Use XMALLOC instead of xmalloc, and XCALLOC instead of xzalloc.
38642 * lib/gl_anyhash_list2.h (hash_resize): Likewise.
38643 * lib/gl_anylinked_list2.h (gl_linked_create_empty, gl_linked_create):
38644 (gl_linked_add_first, gl_linked_add_last, gl_linked_add_before):
38645 (gl_linked_add_after, gl_linked_add_at): Likewise.
38646 * lib/gl_anyrbtree_list2.h (create_subtree_with_contents):
38647 (gl_tree_create, gl_tree_add_first, gl_tree_add_last):
38648 (gl_tree_add_before, gl_tree_add_after): Likewise.
38649 * lib/gl_anytree_list2.h (gl_tree_create_empty): Likewise.
38650 * lib/gl_anytree_oset.h (gl_tree_create_empty): Likewise.
38651 * lib/gl_anytreehash_list1.h (add_to_bucket): Likewise.
38653 2006-11-06 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
38655 * lib/gl_oset.h: Use C comment style, not C++ comment style.
38657 2006-11-06 Bruno Haible <bruno@clisp.org>
38659 * m4/inline.m4: New file.
38660 * m4/gl_list.m4 (gl_LIST): Require gl_INLINE.
38661 * modules/list (Files): Add m4/inline.m4.
38662 * modules/oset (Files): Likewise.
38664 2006-11-06 Paul Eggert <eggert@cs.ucla.edu>
38666 * lib/idcache.c: Include <stddef.h>, for offsetof.
38667 (struct userid.name): Change from char * to a flexible array member.
38669 * modules/idcache (Depends-on): Add flexmember.
38671 * MODULES.html.sh (Core language properties): New module flexmember.
38672 * modules/flexmember, m4/flexmember.m4: New files.
38674 * lib/xalloc.h (xnmalloc, xnrealloc, x2nrealloc): Now static
38675 inline functions that are identical with the old xnmalloc_inline,
38676 xnrealloc_inline, x2nrealloc_inline of lib/xmalloc.c. This is so
38677 that we can avoid some unnecessary integer multiplications and
38678 divisions in the common case where the element size is known at
38680 (XNMALLOC) [HAVE_INLINE]: Remove special case, which is no longer
38682 (xnboundedmalloc): Remove.
38683 (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): Use lower-case letters for
38684 arguments, for consistency with rest of this header.
38685 (xcharalloc): Rewrite using XNMALLOC.
38686 * lib/xmalloc.c (xnmalloc_inline, xnmalloc, xnrealloc_inline):
38687 (xnrealloc, x2nrealloc_inline, x2nrealloc): Remove. The *_inline
38688 versions have been moved to lib/xalloc.h and renamed to be the
38689 non-*_inline versions.
38690 (xmalloc, xrealloc): Implement without reference to the xnmalloc
38691 and xnrealloc functions, since those functions are now inline and
38693 (x2realloc): Invoke x2realloc, not x2realloc_inline, to accommodate
38694 renaming described above.
38695 * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Remove AC_C_INLINE since
38696 xmalloc.c no longer uses inline directly. gl_PREREQ_XALLOC now
38697 captures the dependency in AC_C_INLINE.
38699 New module canonicalize-lgpl, proposed by Charles Wilson in
38700 <http://lists.gnu.org/archive/html/bug-gnulib/2006-11/msg00020.html>
38701 with a few small changes afterwards.
38702 * MODULES.html.sh (File system functions): New module
38704 * lib/canonicalize.h: Add comments for canonicalize_filename_mode
38705 and canonicalize_file_name.
38706 * lib/canonicalize-lgpl.c, m4/canonicalize-lgpl.m4:
38707 * modules/canonicalize-lgpl: New files.
38709 2006-11-05 Bruno Haible <bruno@clisp.org>
38711 * gnulib-tool (func_import, func_create_testdir): Create directories
38712 also for files in subdirectories of lib/.
38714 2006-11-05 Bruno Haible <bruno@clisp.org>
38716 * lib/gl_array_list.c (gl_array_iterator_next): Make pointer decrement
38719 2006-11-03 Bruno Haible <bruno@clisp.org>
38721 Simplify xmalloc expressions. Add overflow check in xmalloc arguments.
38722 * m4/xalloc.m4 (gl_PREREQ_XALLOC): Require AC_C_INLINE.
38723 * lib/xalloc.h (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): New macros.
38724 (xnboundedmalloc): New inline function.
38725 * lib/classpath.c (new_classpath): Use XNMALLOC instead of xmalloc.
38726 * lib/clean-temp.c (create_temp_dir): Use XNMALLOC, XMALLOC instead of
38728 * lib/concatpath.c (concatenated_pathname): Use XNMALLOC instead of
38730 * lib/fatal-signal.c (at_fatal_signal): Use XNMALLOC instead of xmalloc.
38731 * lib/findprog.c (find_in_path): Use XNMALLOC instead of xmalloc.
38732 * lib/gl_array_list.c (gl_array_create_empty): Use XMALLOC instead of
38734 (gl_array_create): Use XNMALLOC, XMALLOC instead of xmalloc.
38735 * lib/gl_array_oset.c (gl_array_create_empty): Use XNMALLOC instead of
38737 * lib/gl_avltree_oset.c (gl_tree_add_first, gl_tree_add_before,
38738 gl_tree_add_after): Use XMALLOC instead of xmalloc.
38739 * lib/gl_carray_list.c (gl_carray_create_empty): Use XMALLOC instead of
38741 (gl_carray_create): Use XNMALLOC, XMALLOC instead of xmalloc.
38742 * lib/gl_rbtree_oset.c (gl_tree_add_first, gl_tree_add_before,
38743 gl_tree_add_after): Use XMALLOC instead of xmalloc.
38744 * lib/gl_sublist.c (gl_sublist_create): Use XMALLOC instead of xmalloc.
38745 * lib/pagealign_alloc.c (new_memnode): Use XMALLOC instead of xmalloc.
38746 * lib/sh-quote.c (shell_quote_argv): Use XNMALLOC instead of xmalloc.
38747 * lib/xvasprintf.c (xstrcat): Use XNMALLOC instead of xmalloc.
38749 2006-11-03 Bruno Haible <bruno@clisp.org>
38751 * lib/c-ctype.h [C++]: Define functions without name mangling.
38752 * lib/fwriteerror.h [C++]: Likewise.
38753 * lib/gcd.h [C++]: Likewise.
38754 * lib/linebreak.h [C++]: Likewise.
38756 2006-11-03 Paul Eggert <eggert@cs.ucla.edu>
38758 * lib/canonicalize.h: (canonicalize_mode_t, CAN_EXISTING):
38759 (CAN_ALL_BUT_LAST, CAN_MISSING, canonicalize_filename_mode):
38760 Define only if PROVIDE_CANONICALIZE_FILENAME_MODE is defined.
38761 * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME):
38762 Check for functions and headers just once.
38763 Check for declaration of canonicalize_file_name.
38764 Define PROVIDE_CANONICALIZE_FILENAME_MODE.
38766 2006-11-02 Charles Wilson <cygwin@cwilson.fastmail.fm>
38768 * gnulib-tool (func_import): Fix typo in actioncmd.
38770 2006-11-02 Bruno Haible <bruno@clisp.org>
38772 * gnulib-tool (func_get_automake_snippet): Interpret a backslash-
38773 newline sequence in the Makefile.am snippet as a space, like "make"
38775 Reported by Roger Persson <perrog@gmail.com>.
38777 2006-11-01 Bruno Haible <bruno@clisp.org>
38779 * m4/strcase.m4 (gl_FUNC_STRNCASECMP): Check whether strncasecmp is
38780 already declared in <string.h>.
38781 * lib/strcase.h (strncasecmp): Don't declare it if yes.
38783 2006-11-01 Bruno Haible <bruno@clisp.org>
38785 * m4/strcase.m4 (gl_FUNC_STRCASECMP): Don't define strcasecmp here.
38786 * lib/strcase.h: Include <string.h>.
38787 (strcasecmp): Define to rpl_strcasecmp here.
38789 2006-11-01 Bruno Haible <bruno@clisp.org>
38791 * lib/printf-parse.c (PRINTF_PARSE): Cast malloc/realloc results.
38793 2006-11-01 Eric Blake <ebb9@byu.net>
38795 * lib/mkstemp-safer.c (mkstemp_safer): Allow C++ compilation.
38797 * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Allow C++ configuration.
38799 2006-10-29 Bruno Haible <bruno@clisp.org>
38801 Make it compile in C++ mode.
38802 * lib/full-write.c (full_rw): Add a cast.
38804 2006-11-01 Bruno Haible <bruno@clisp.org>
38806 * gnulib-tool (func_get_automake_snippet): Change sed_combine_lines to
38807 be POSIX compliant.
38808 Reported by Roger Persson <perrog@gmail.com>.
38810 2006-11-01 Eric Blake <ebb9@byu.net>
38812 * lib/getopt_.h: Fix comments.
38814 2006-10-31 Eric Blake <ebb9@byu.net>
38816 * modules/tmpdir (Depends-on): Add sys_stat.
38817 * modules/mkdtemp (Depends-on): Add tempname, drop unistd.
38818 * lib/mkdtemp.c (gen_tempname): Remove; tempname covers this.
38819 * lib/tmpdir.c (S_ISDIR): Simplify, thanks to sys_stat.
38820 * m4/mkdtemp.m4 (gl_PREREQ_MKDTEMP): Simplify, thanks to
38823 2006-10-31 Paul Eggert <eggert@cs.ucla.edu>
38825 Avoid some C++ diagnostics reported by Bruno Haible.
38826 * lib/quotearg.c (clone_quoting_options): Use xmemdup rather than
38828 (quotearg_alloc): Use xcharalloc rather than xmalloc.
38829 (struct slotvec): Move to top level.
38830 (quotearg_n_options): Rewrite to avoid xmalloc.
38831 * lib/xalloc.h (xcharalloc): New function.
38832 * (xrealloc, xnrealloc, x2realloc, x2nrealloc, xmemdup):
38833 [defined __cplusplus]: Add function template that provides result
38834 type propagation. This part of the change is from Bruno Haible.
38836 2006-10-29 Bruno Haible <bruno@clisp.org>
38838 Make it compile in C++ mode.
38839 * lib/striconv.c (mem_cd_iconv): Cast malloc/realloc result.
38840 * lib/strnlen1.c (strnlen1): Cast memchr result.
38841 * lib/mbchar.h (mb_copy): Rename arguments to 'new_mbc', 'old_mbc'.
38842 * lib/clean-temp.c (string_equals, string_hash): Add casts.
38843 (create_temp_dir): Rename local variable 'template'.
38844 (compile_csharp_using_sscli): Add cast.
38845 * lib/fatal-signal.c (at_fatal_signal): Cast xmalloc result.
38846 * lib/findprog.c (find_in_path): Likewise.
38847 * lib/linebreak.c (mbs_width_linebreaks): Cast malloc result.
38848 * lib/wait-process.c (register_slave_subprocess): Likewise.
38850 2006-10-22 Bruno Haible <bruno@clisp.org>
38852 * modules/tsearch: New file.
38853 * lib/tsearch.h: New file.
38854 * lib/tsearch.c: New file, from glibc-2.5 with small modifications.
38855 * m4/tsearch.m4: New file.
38856 * MODULES.html.sh (Support for systems lacking POSIX:2001): Add tsearch.
38858 2006-10-29 Eric Blake <ebb9@byu.net>
38860 * lib/arcfour.c: Assume config.h.
38861 * lib/arctwo.c: Likewise.
38862 * lib/base64.c: Likewise.
38863 * lib/check-version.c: Likewise.
38864 * lib/crc.c: Likewise.
38865 * lib/des.c: Likewise.
38866 * lib/gc-gnulib.c: Likewise.
38867 * lib/gc-libgcrypt.c: Likewise.
38868 * lib/gc-pbkdf2-sha1.c: Likewise.
38869 * lib/getaddrinfo.c: Likewise.
38870 * lib/getdelim.c: Likewise.
38871 * lib/getline.c: Likewise.
38872 * lib/hmac-md5.c: Likewise.
38873 * lib/hmac-sha1.c: Likewise.
38874 * lib/iconvme.c: Likewise.
38875 * lib/md2.c: Likewise.
38876 * lib/md4.c: Likewise.
38877 * lib/memxor.c: Likewise.
38878 * lib/read-file.c: Likewise.
38879 * lib/readline.c: Likewise.
38880 * lib/rijndael-alg-fst.c: Likewise.
38881 * lib/rijndael-api-fst.c: Likewise.
38882 * lib/xgetdomainname.c: Likewise.
38884 2006-10-28 Eric Blake <ebb9@byu.net>
38886 * lib/xstrndup.c: Assume config.h.
38888 2006-10-27 Paul Eggert <eggert@cs.ucla.edu>
38890 Move stat.h-substitute stuff from lib/stat-macros.h to lib/stat_.h.
38891 stat-macros.h is now for our own macros, whereas stat_h is for
38892 macros in the <sys/stat.h> name space.
38893 * lib/stat-macros.h: Remove copyright notice, as this file is now tiny.
38894 (STAT_MACROS_H): Remove.
38895 (S_IFMT, S_ISBLK, S_ISCHR, S_ISDIR, S_ISFIFO, S_ISLNK, S_ISNAM):
38896 (S_ISMPB, S_ISMPC, S_ISNWK, S_ISREG, S_ISSOCK, S_ISDOOR, S_ISPORT):
38897 (S_TYPEISMQ, S_TYPEISTMO, S_TYPEISSEM, S_TYPEISSHM, S_ISCTG, S_ISOFD):
38898 (S_ISOFL, S_ISWHT, S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IRGRP):
38899 (S_IROTH, S_IWUSR, S_IWGRP, S_IWOTH, S_IXUSR, S_IXGRP, S_IXOTH):
38900 (S_IRWXU, S_IRWXG, S_IRWXO, S_IXUGO, S_IRWXUGO):
38901 Move these macros to ...
38902 * lib/stat_.h: here. Don't include stat-macros.h.
38903 * lib/canonicalize.c: Don't include stat-macros.h.
38904 * lib/chown.c: Likewise.
38905 * lib/euidaccess.c: Likewise.
38906 * lib/file-type.c: Likewise.
38907 * lib/filemode.c: Likewise.
38908 * lib/glob.c: Likewise.
38909 * lib/isapipe.c: Likewise.
38910 * lib/lchown.c: Likewise.
38911 * lib/lstat.c: Likewise.
38912 * lib/mkdir-p.c: Likewise.
38913 * lib/rmdir.c: Likewise.
38914 * m4/lchown.m4 (gl_FUNC_LCHOWN): Don't require gl_STAT_MACROS.
38915 * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Don't check for io.h
38916 unless mkdir isn't declared, to speed up 'configure'.
38917 Always create sys/stat.h, since it's unlikely any real sys/stat.h
38918 would define all the S_* symbols.
38919 * modules/canonicalize (Depends-on):
38920 Depend on sys_stat, not stat-macros.
38921 * modules/chown: Likewise.
38922 * modules/euidaccess: Likewise.
38923 * modules/filemode: Likewise.
38924 * modules/file-type: Likewise.
38925 * modules/glob: Likewise.
38926 * modules/isapipe: Likewise.
38927 * modules/lchown: Likewise.
38928 * modules/lstat: Likewise.
38929 * modules/mkancesdirs: Likewise.
38930 * modules/rmdir: Likewise.
38931 * modules/mkdir-p (Depends-on): Also depend on sys_stat.
38932 * modules/modechange: Likewise.
38933 * modules/stat-macros (Files): Remove m4/stat-macros.m4.
38934 (configure.ac): Remove gl_STAT_MACROS.
38935 * modules/sys_stat (Depends-on): Remove stat-macros.
38937 2006-10-27 Bruno Haible <bruno@clisp.org>
38939 * m4/signed.m4: Remove file.
38940 * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_ARGS_: Remove bh_C_SIGNED
38942 * modules/vasnprintf (Files): Remove m4/signed.m4.
38944 2006-10-27 Bruno Haible <bruno@clisp.org>
38946 Update to GNU gettext 0.16.
38947 * modules/gettext (Files): Add m4/intl.m4, m4/intldir.m4. Remove
38948 m4/inttypes-h.m4, m4/signed.m4.
38949 * m4/gettext.m4: Update to GNU gettext 0.16.
38950 * m4/intl.m4: New file, from GNU gettext.
38951 * m4/intldir.m4: New file, from GNU gettext.
38952 * config/srclist.txt: Update
38954 2006-10-27 Eric Blake <ebb9@byu.net>
38956 * MODULES.html.sh: Document tempname.
38957 * modules/mkstemp (Depends-on): Add tempname, and drop transitive
38959 (Files): Move lib/tempname.c...
38960 * modules/tempname: ...to this new module.
38961 * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Remove tempname checks.
38962 (gl_PREREQ_TEMPNAME): Move...
38963 * m4/tempname.m4: ...to this new file.
38964 * lib/mkstemp.c (includes) [!_LIBC]: Use tempname.h.
38965 * modules/sys_stat (Depends-on): Add stat-macros.
38966 * lib/stat_.h (includes): Pick up stat macros.
38967 * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Replace <sys/stat.h>
38968 if stat macros are broken.
38969 * lib/tempname.c (includes): No need to include "stat-macros.h".
38970 (__gen_tempname) [!_LIBC]: Expose as gen_tempname.
38971 (direxists, __path_search) [!_LIBC]: Don't compile these in
38972 gnulib; the tmpdir module covers that.
38973 * lib/tempname.h: New file.
38975 2006-10-26 Paul Eggert <eggert@cs.ucla.edu>
38977 * COPYING: Explain how gnulib-tool converts licence headers.
38978 Almost all wording by Eric Blake.
38980 2006-10-25 Paul Eggert <eggert@cs.ucla.edu>
38982 * lib/mbchar.h (is_basic_table): Make read-only.
38983 * lib/mbchar.c (is_basic_table): Likewise.
38984 Reported by John Darrington.
38986 2006-10-25 Bruno Haible <bruno@clisp.org>
38988 * lib/progname.h (set_program_name): Undefine before defining.
38990 2006-10-25 Bruno Haible <bruno@clisp.org>
38992 * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Define to
38993 false for non-gcc C++ compilers.
38994 Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
38996 2006-10-24 Bruno Haible <bruno@clisp.org>
38998 * lib/striconv.c (mem_cd_iconv, str_cd_iconv): Treat all non-GNU
38999 iconv implementations like Irix iconv.
39001 2006-10-24 Paul Eggert <eggert@cs.ucla.edu>
39003 * modules/vararrays: New file.
39004 * m4/vararrays.m4: New file, taken from diffutils.
39005 * MODULES.html.sh: New module vararrays.
39007 2006-10-24 Karl Berry <karl@gnu.org>
39009 * doc/gnulib-intro.texi: --- instead of --; non-naive naive.
39010 Don't call GNU Unix.
39012 2006-10-24 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
39014 * users.txt: Add Libtool.
39018 2006-10-24 Paul Eggert <eggert@cs.ucla.edu>
39020 * lib/argz.c: Remove check for HAVE_CONFIG_H, to conform
39021 to gnulib's policy of including config.h unconditionally.
39023 2006-10-24 Bruno Haible <bruno@clisp.org>
39025 * modules/wcwidth (Files): Add m4/wint_t.m4.
39026 * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Require gt_TYPE_WINT_T.
39027 * lib/wcwidth.h (iswprint): Use 'int' if 'wint_t' is not defined.
39029 2006-10-24 Paul Eggert <eggert@cs.ucla.edu>
39031 * lib/getdate.y (yyerror): Make the arguments pointer-to-const,
39032 to pacify GCC with some -W flags enabled. Problem reported by
39035 2006-10-24 Jim Meyering <jim@meyering.net>
39037 * MODULES.html.sh: Remove uinttostr. It's not a module.
39038 Reported by Karl Berry.
39040 2006-10-23 Bruno Haible <bruno@clisp.org>
39042 * lib/fts.c (fts_build): Move variable declaration, for C89 compliance.
39044 2006-10-24 Bruno Haible <bruno@clisp.org>
39046 * lib/gl_list.h: Use C comment style, not C++ comment style.
39048 2006-10-23 Eric Blake <ebb9@byu.net>
39050 * lib/getaddrinfo.c (includes): Add missing include.
39052 2006-10-23 Bruno Haible <bruno@clisp.org>
39053 Paul Eggert <eggert@cs.ucla.edu>
39055 Ability to rename obstack_free.
39056 * lib/obstack.h (__obstack_free): New macro. Declare instead of
39058 (obstack_free): Invoke the __obstack_free macro.
39059 * lib/obstack.c (obstack_free): Use __obstack_free macro.
39061 2006-10-23 Bruno Haible <bruno@clisp.org>
39062 Paul Eggert <eggert@cs.ucla.edu>
39064 * lib/argp.h (argp_parse, __argp_parse): Comment out the identifiers
39065 __argc, __argv from the declaration. (They are defined as macros on
39068 2006-10-22 Bruno Haible <bruno@clisp.org>
39070 * doc/gnulib-intro.texi: New file.
39071 * doc/gnulib.texi: Include it.
39073 2006-10-21 Bruno Haible <bruno@clisp.org>
39075 * doc/gnulib.texi: Split the chapter "Gnulib" into 3 chapters
39076 "Introduction", "Miscellanous Notes", "Particular Modules".
39078 2006-10-21 Bruno Haible <bruno@clisp.org>
39080 * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
39081 Change mostlyclean-local rule to avoid sh syntax error from bash
39082 versions 2.00..2.05 when $(MOSTLYCLEANDIRS) is empty.
39084 2006-10-23 Jim Meyering <jim@meyering.net>
39086 * lib/getaddrinfo.c (getnameinfo): Use new lightweight uinttostr,
39087 in place of snprintf.
39089 * modules/inttostr (Files): Add lib/uinttostr.c.
39090 * lib/uinttostr.c (inttostr): New file/function.
39091 * lib/inttostr.h (uinttostr): Declare.
39092 * m4/inttostr.m4: Add AC_LIBOBJ([uinttostr]).
39093 * MODULES.html.sh (Numeric conversion functions <stdlib.h>):
39095 * modules/getaddrinfo (Depends-on): Remove snprintf. Add inttostr.
39097 2006-10-21 Paul Eggert <eggert@cs.ucla.edu>
39099 * lib/canonicalize.c (ELOOP): Define if not already defined.
39100 Problem reported by Bruno Haible in
39101 <http://lists.gnu.org/archive/html/bug-gnulib/2006-10/msg00282.html>.
39103 2006-10-21 Paul Eggert <eggert@cs.ucla.edu>
39105 * lib/stdint_.h [defined _AIX]: Don't include <sys/types.h>.
39106 Problem reported by Perry Smith and Ville Laurikari.
39108 * lib/getndelim2.c (SSIZE_MAX): Use same defn that getdelim.c
39111 2006-10-19 Bruno Haible <bruno@clisp.org>
39113 * lib/getndelim2.c (SSIZE_MAX): Provide fallback definition. Needed
39116 2006-10-19 Bruno Haible <bruno@clisp.org>
39118 * lib/openat-priv.h (EOPNOTSUPP): Provide fallback definition.
39121 2006-10-19 Bruno Haible <bruno@clisp.org>
39123 * m4/size_max.m4 (gl_SIZE_MAX): Cache the result.
39125 2006-10-19 Bruno Haible <bruno@clisp.org>
39127 * m4/allocsa.m4 (gl_ALLOCSA): Invoke gl_FUNC_ALLOCA, don't AC_REQUIRE
39130 2006-10-19 Bruno Haible <bruno@clisp.org>
39132 * m4/alloca.m4 (gl_FUNC_ALLOCA): Cache the result of the AC_EGREP_CPP
39135 2006-10-19 Bruno Haible <bruno@clisp.org>
39137 * gnulib-tool (func_create_testdir): Don't include ftruncate and
39138 mountlist by default.
39140 2006-10-16 Bruno Haible <bruno@clisp.org>
39142 * lib/c-strstr.c: Include c-strstr.h.
39144 2006-10-18 Charles Wilson <cygwin@cwilson.fastmail.fm>
39146 * gnulib-tool: Don't clobber $sourcebase when $local_gnulib_dir ends
39149 2006-10-18 Bruno Haible <bruno@clisp.org>
39151 * lib/lock.h [C++]: Wrap definitions in extern "C".
39153 2006-10-18 Bruno Haible <bruno@clisp.org>
39155 * gnulib-tool (func_emit_initmacro_end): Remove duplicates from the
39158 2006-10-18 Bruno Haible <bruno@clisp.org>
39160 * lib/findprog.c (find_in_path): Avoid "gcc -Wwrite-strings" warning.
39162 2006-10-19 Paul Eggert <eggert@cs.ucla.edu>
39164 * lib/xstrtol.h: Include gettext.h.
39165 (_STRTOL_ERROR): Wrap English-language formats inside gettext.
39166 Problem reported by Eric Blake.
39167 * modules/xstrtol (Depends-on): Add gettext-h.
39169 2006-10-19 Paul Eggert <eggert@cs.ucla.edu> (tiny change)
39171 * lib/strftime.c (advance): New macro.
39172 (add): Use it to avoid adding 0 to a FILE *. FILE can be an
39173 incomplete type, so you can't add 0 to it. Problem and patch
39174 reported by Eelco Dolstra for dietlibc.
39176 2006-10-18 Jim Meyering <jim@meyering.net>
39178 * lib/readutmp.c (desirable_utmp_entry): Use "bool" as the
39179 type for a local, and rename it: s/up/user_proc/.
39181 2006-10-18 Sergey Poznyakoff <gray@gnu.org.ua>
39183 * lib/readutmp.c (desirable_utmp_entry): Implement new flag:
39184 READ_UTMP_USER_PROCESS.
39185 * lib/readutmp.h (READ_UTMP_USER_PROCESS): New flag
39187 2006-10-17 Paul Eggert <eggert@cs.ucla.edu>
39189 * lib/localcharset.c: Do not check HAVE_SETLOCALE.
39190 * m4/localcharset.m4 (gl_LOCALCHARSET): Don't check for setlocale.
39192 2006-10-17 Eric Blake <ebb9@byu.net>
39194 * lib/sigprocmask.c (sigprocmask): Fix typo.
39196 * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Fix typo.
39198 * modules/clean-temp (Makefile.am): Don't add to make output...
39199 (configure.ac): ...instead define SIGNAL_SAFE_LIST inside
39202 2006-10-17 Bruno Haible <bruno@clisp.org>
39204 * lib/gettext.h (gettext, ngettext, pgettext, npgettext): Define
39205 differently if DEFAULT_TEXT_DOMAIN is set.
39207 2006-10-16 Bruno Haible <bruno@clisp.org>
39209 * lib/clean-temp.c: Include fwriteerror.h.
39211 2006-10-16 Bruno Haible <bruno@clisp.org>
39213 * getndelim2.m4 (gl_GETNDELIM2): Remove 2003-10-23 hack.
39215 2006-10-16 Bruno Haible <bruno@clisp.org>
39217 * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Also test for sigset_t.
39218 * lib/sigprocmask.h: Include <sys/types.h>.
39219 (sigset_t): Use the system's definition if present.
39221 2006-10-17 Eric Blake <ebb9@byu.net>
39223 * lib/xvasprintf.c (includes): Assume config.h.
39224 * lib/xasprintf.c (includes): Likewise.
39226 2006-10-16 Paul Eggert <eggert@cs.ucla.edu>
39228 * lib/fsusage.c (PROPAGATE_ALL_ONES): Don't assume uintmax_t is
39229 at least as wide as intmax_t.
39231 2006-10-16 Alexandre Duret-Lutz <adl@gnu.org>
39233 (Imported from Automake.)
39234 * build-aux/gnupload: Update to version 1.1 of directive file.
39236 2006-10-16 Eric Blake <ebb9@byu.net>
39238 * modules/configmake (Makefile.am): Add pkglibexecdir support, to
39239 match Automake 1.10a.
39241 2006-10-14 Bruno Haible <bruno@clisp.org>
39243 * modules/sigprocmask: New file.
39244 * lib/sigprocmask.h: New file.
39245 * lib/sigprocmask.c: New file.
39246 * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Renamed from
39247 gt_SIGNALBLOCKING. When not defining HAVE_POSIX_SIGNALBLOCKING,
39248 request sigprocmask.o.
39249 (gl_PREREQ_SIGPROCMASK): New macro.
39250 * modules/fatal-signal (Files): Remove m4/signalblocking.m4.
39251 (Depends-on): Add sigprocmask.
39252 * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Don't require
39253 gt_SIGNALBLOCKING. Test for 'raise' only once.
39254 * lib/fatal-signal.c: Include sigprocmask.h.
39255 (fatal_signal_set, init_fatal_signal_set, block_fatal_signals,
39256 unblock_fatal_signals): Define always.
39257 * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
39260 2006-10-14 Paul Eggert <eggert@cs.ucla.edu>
39262 Sync from Automake.
39263 * build-aux/install-sh (posix_mkdir): Reject FreeBSD 6.1 mkdir -p -m,
39264 which incorrectly sets the mode of an existing destination
39265 directory. In some cases the unpatched install-sh could do the
39266 equivalent of "chmod 777 /" or "chmod 0 /" on a buggy FreeBSD
39267 system. We hope this is rare in practice, but it's clearly worth
39268 fixing. Problem reported by Alex Unleashed in
39269 <http://lists.gnu.org/archive/html/bug-autoconf/2006-10/msg00012.html>.
39270 Also, don't bother to check for -m bugs unless we're using -m;
39271 suggested by Stepan Kasal.
39273 2006-10-14 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
39275 Sync from Automake.
39276 * build-aux/depcomp (gcc3): Put dependency extraction flags before the
39277 `-c' flag, so they appear at the same position as in %FASTDEP%
39278 mode in depend2.am. Fixes build failure for FreeBSD's c89,
39279 which ignores unknown options only after the first non-option.
39280 Bug report against M4 by Nelson H. F. Beebe.
39282 2006-10-13 Jim Meyering <jim@meyering.net>
39284 Fix a bug in yesterday's change.
39285 * lib/fts.c (fts_open): When using FTS_XDEV|FTS_NOSTAT,
39286 p->fts_statp->st_dev would be used uninitialized.
39287 Ensures that we always call fts_stat on the very first entry.
39288 Miklos Szeredi reported that find -xdev stopped working.
39290 2006-10-12 Bruno Haible <bruno@clisp.org>
39292 * gnulib-tool (func_get_automake_snippet): Append an automatically
39293 computed EXTRA_DIST augmentation.
39294 * modules/acl (Makefile.am): Remove EXTRA_DIST augmentation.
39295 * modules/alloca-opt (Makefile.am): Likewise.
39296 * modules/allocsa (Makefile.am): Likewise.
39297 * modules/arcfour (Makefile.am): Likewise.
39298 * modules/arctwo (Makefile.am): Likewise.
39299 * modules/argmatch (Makefile.am): Likewise.
39300 * modules/argz (Makefile.am): Likewise.
39301 * modules/atexit (Makefile.am): Likewise.
39302 * modules/backupfile (Makefile.am): Likewise.
39303 * modules/byteswap (Makefile.am): Likewise.
39304 * modules/c-strtod (Makefile.am): Likewise.
39305 * modules/c-strtold (Makefile.am): Likewise.
39306 * modules/calloc (Makefile.am): Likewise.
39307 * modules/canon-host (Makefile.am): Likewise.
39308 * modules/canonicalize (Makefile.am): Likewise.
39309 * modules/chdir-long (Makefile.am): Likewise.
39310 * modules/chdir-safer (Makefile.am): Likewise.
39311 * modules/check-version (Makefile.am): Likewise.
39312 * modules/chown (Makefile.am): Likewise.
39313 * modules/cloexec (Makefile.am): Likewise.
39314 * modules/close-stream (Makefile.am): Likewise.
39315 * modules/closeout (Makefile.am): Likewise.
39316 * modules/crc (Makefile.am): Likewise.
39317 * modules/csharpexec (Makefile.am): Likewise.
39318 * modules/cycle-check (Makefile.am): Likewise.
39319 * modules/des (Makefile.am): Likewise.
39320 * modules/dev-ino (Makefile.am): Likewise.
39321 * modules/dirfd (Makefile.am): Likewise.
39322 * modules/dirname (Makefile.am): Likewise.
39323 * modules/dup2 (Makefile.am): Likewise.
39324 * modules/eealloc (Makefile.am): Likewise.
39325 * modules/error (Makefile.am): Likewise.
39326 * modules/euidaccess (Makefile.am): Likewise.
39327 * modules/exclude (Makefile.am): Likewise.
39328 * modules/exitfail (Makefile.am): Likewise.
39329 * modules/fcntl-safer (Makefile.am): Likewise.
39330 * modules/fcntl (Makefile.am): Likewise.
39331 * modules/file-type (Makefile.am): Likewise.
39332 * modules/fileblocks (Makefile.am): Likewise.
39333 * modules/filemode (Makefile.am): Likewise.
39334 * modules/filenamecat (Makefile.am): Likewise.
39335 * modules/fnmatch (Makefile.am): Likewise.
39336 * modules/fopen-safer (Makefile.am): Likewise.
39337 * modules/fpending (Makefile.am): Likewise.
39338 * modules/fprintftime (Makefile.am): Likewise.
39339 * modules/free (Makefile.am): Likewise.
39340 * modules/fsusage (Makefile.am): Likewise.
39341 * modules/ftruncate (Makefile.am): Likewise.
39342 * modules/fts (Makefile.am): Likewise.
39343 * modules/gc-arcfour (Makefile.am): Likewise.
39344 * modules/gc-des (Makefile.am): Likewise.
39345 * modules/gc-hmac-md5 (Makefile.am): Likewise.
39346 * modules/gc-hmac-sha1 (Makefile.am): Likewise.
39347 * modules/gc-md4 (Makefile.am): Likewise.
39348 * modules/gc-pbkdf2-sha1 (Makefile.am): Likewise.
39349 * modules/gc-sha1 (Makefile.am): Likewise.
39350 * modules/gc (Makefile.am): Likewise.
39351 * modules/getaddrinfo (Makefile.am): Likewise.
39352 * modules/getcwd (Makefile.am): Likewise.
39353 * modules/getdelim (Makefile.am): Likewise.
39354 * modules/getdomainname (Makefile.am): Likewise.
39355 * modules/getgroups (Makefile.am): Likewise.
39356 * modules/gethostname (Makefile.am): Likewise.
39357 * modules/gethrxtime (Makefile.am): Likewise.
39358 * modules/getline (Makefile.am): Likewise.
39359 * modules/getloadavg (Makefile.am): Likewise.
39360 * modules/getlogin_r (Makefile.am): Likewise.
39361 * modules/getndelim2 (Makefile.am): Likewise.
39362 * modules/getopt (Makefile.am): Likewise.
39363 * modules/getpagesize (Makefile.am): Likewise.
39364 * modules/getpass-gnu (Makefile.am): Likewise.
39365 * modules/getpass (Makefile.am): Likewise.
39366 * modules/getsubopt (Makefile.am): Likewise.
39367 * modules/gettime (Makefile.am): Likewise.
39368 * modules/gettimeofday (Makefile.am): Likewise.
39369 * modules/getugroups (Makefile.am): Likewise.
39370 * modules/getusershell (Makefile.am): Likewise.
39371 * modules/glob (Makefile.am): Likewise.
39372 * modules/group-member (Makefile.am): Likewise.
39373 * modules/hard-locale (Makefile.am): Likewise.
39374 * modules/hash (Makefile.am): Likewise.
39375 * modules/hmac-md5 (Makefile.am): Likewise.
39376 * modules/hmac-sha1 (Makefile.am): Likewise.
39377 * modules/human (Makefile.am): Likewise.
39378 * modules/idcache (Makefile.am): Likewise.
39379 * modules/imaxabs (Makefile.am): Likewise.
39380 * modules/imaxdiv (Makefile.am): Likewise.
39381 * modules/inet_ntop (Makefile.am): Likewise.
39382 * modules/inet_pton (Makefile.am): Likewise.
39383 * modules/intprops (Makefile.am): Likewise.
39384 * modules/inttostr (Makefile.am): Likewise.
39385 * modules/inttypes (Makefile.am): Likewise.
39386 * modules/isapipe (Makefile.am): Likewise.
39387 * modules/javaversion (Makefile.am): Likewise.
39388 * modules/lchmod (Makefile.am): Likewise.
39389 * modules/lchown (Makefile.am): Likewise.
39390 * modules/localcharset (Makefile.am): Likewise.
39391 * modules/long-options (Makefile.am): Likewise.
39392 * modules/lstat (Makefile.am): Likewise.
39393 * modules/malloc (Makefile.am): Likewise.
39394 * modules/mathl (Makefile.am): Likewise.
39395 * modules/mbchar (Makefile.am): Likewise.
39396 * modules/md2 (Makefile.am): Likewise.
39397 * modules/md4 (Makefile.am): Likewise.
39398 * modules/md5 (Makefile.am): Likewise.
39399 * modules/memcasecmp (Makefile.am): Likewise.
39400 * modules/memchr (Makefile.am): Likewise.
39401 * modules/memcmp (Makefile.am): Likewise.
39402 * modules/memcoll (Makefile.am): Likewise.
39403 * modules/memcpy (Makefile.am): Likewise.
39404 * modules/memmem (Makefile.am): Likewise.
39405 * modules/memmove (Makefile.am): Likewise.
39406 * modules/mempcpy (Makefile.am): Likewise.
39407 * modules/memrchr (Makefile.am): Likewise.
39408 * modules/memset (Makefile.am): Likewise.
39409 * modules/memxor (Makefile.am): Likewise.
39410 * modules/mkancesdirs (Makefile.am): Likewise.
39411 * modules/mkdir-p (Makefile.am): Likewise.
39412 * modules/mkdir (Makefile.am): Likewise.
39413 * modules/mkdtemp (Makefile.am): Likewise.
39414 * modules/mkstemp (Makefile.am): Likewise.
39415 * modules/mktime (Makefile.am): Likewise.
39416 * modules/modechange (Makefile.am): Likewise.
39417 * modules/mountlist (Makefile.am): Likewise.
39418 * modules/nanosleep (Makefile.am): Likewise.
39419 * modules/obstack (Makefile.am): Likewise.
39420 * modules/openat (Makefile.am): Likewise.
39421 * modules/pagealign_alloc (Makefile.am): Likewise.
39422 * modules/pathmax (Makefile.am): Likewise.
39423 * modules/physmem (Makefile.am): Likewise.
39424 * modules/poll (Makefile.am): Likewise.
39425 * modules/posixtm (Makefile.am): Likewise.
39426 * modules/posixver (Makefile.am): Likewise.
39427 * modules/putenv (Makefile.am): Likewise.
39428 * modules/quote (Makefile.am): Likewise.
39429 * modules/quotearg (Makefile.am): Likewise.
39430 * modules/raise (Makefile.am): Likewise.
39431 * modules/read-file (Makefile.am): Likewise.
39432 * modules/readline (Makefile.am): Likewise.
39433 * modules/readlink (Makefile.am): Likewise.
39434 * modules/readtokens (Makefile.am): Likewise.
39435 * modules/readutmp (Makefile.am): Likewise.
39436 * modules/realloc (Makefile.am): Likewise.
39437 * modules/regex (Makefile.am): Likewise.
39438 * modules/rename-dest-slash (Makefile.am): Likewise.
39439 * modules/rename (Makefile.am): Likewise.
39440 * modules/rijndael (Makefile.am): Likewise.
39441 * modules/rmdir (Makefile.am): Likewise.
39442 * modules/rpmatch (Makefile.am): Likewise.
39443 * modules/safe-read (Makefile.am): Likewise.
39444 * modules/safe-write (Makefile.am): Likewise.
39445 * modules/same-inode (Makefile.am): Likewise.
39446 * modules/same (Makefile.am): Likewise.
39447 * modules/save-cwd (Makefile.am): Likewise.
39448 * modules/savedir (Makefile.am): Likewise.
39449 * modules/setenv (Makefile.am): Likewise.
39450 * modules/settime (Makefile.am): Likewise.
39451 * modules/sha1 (Makefile.am): Likewise.
39452 * modules/sig2str (Makefile.am): Likewise.
39453 * modules/snprintf (Makefile.am): Likewise.
39454 * modules/stat-macros (Makefile.am): Likewise.
39455 * modules/stat-time (Makefile.am): Likewise.
39456 * modules/stdbool (Makefile.am): Likewise.
39457 * modules/stdint (Makefile.am): Likewise.
39458 * modules/stdlib-safer (Makefile.am): Likewise.
39459 * modules/stpcpy (Makefile.am): Likewise.
39460 * modules/stpncpy (Makefile.am): Likewise.
39461 * modules/strcase (Makefile.am): Likewise.
39462 * modules/strcasestr (Makefile.am): Likewise.
39463 * modules/strchrnul (Makefile.am): Likewise.
39464 * modules/strcspn (Makefile.am): Likewise.
39465 * modules/strdup (Makefile.am): Likewise.
39466 * modules/strerror (Makefile.am): Likewise.
39467 * modules/strftime (Makefile.am): Likewise.
39468 * modules/strndup (Makefile.am): Likewise.
39469 * modules/strnlen (Makefile.am): Likewise.
39470 * modules/strpbrk (Makefile.am): Likewise.
39471 * modules/strsep (Makefile.am): Likewise.
39472 * modules/strstr (Makefile.am): Likewise.
39473 * modules/strtod (Makefile.am): Likewise.
39474 * modules/strtoimax (Makefile.am): Likewise.
39475 * modules/strtok_r (Makefile.am): Likewise.
39476 * modules/strtol (Makefile.am): Likewise.
39477 * modules/strtoll (Makefile.am): Likewise.
39478 * modules/strtoul (Makefile.am): Likewise.
39479 * modules/strtoull (Makefile.am): Likewise.
39480 * modules/strtoumax (Makefile.am): Likewise.
39481 * modules/strverscmp (Makefile.am): Likewise.
39482 * modules/sys_socket (Makefile.am): Likewise.
39483 * modules/sys_stat (Makefile.am): Likewise.
39484 * modules/sysexits (Makefile.am): Likewise.
39485 * modules/time_r (Makefile.am): Likewise.
39486 * modules/timegm (Makefile.am): Likewise.
39487 * modules/timespec (Makefile.am): Likewise.
39488 * modules/tmpfile-safer (Makefile.am): Likewise.
39489 * modules/trim (Makefile.am): Likewise.
39490 * modules/unistd-safer (Makefile.am): Likewise.
39491 * modules/unlinkdir (Makefile.am): Likewise.
39492 * modules/unlocked-io (Makefile.am): Likewise.
39493 * modules/userspec (Makefile.am): Likewise.
39494 * modules/utime (Makefile.am): Likewise.
39495 * modules/utimecmp (Makefile.am): Likewise.
39496 * modules/utimens (Makefile.am): Likewise.
39497 * modules/vasnprintf (Makefile.am): Likewise.
39498 * modules/vasprintf (Makefile.am): Likewise.
39499 * modules/vsnprintf (Makefile.am): Likewise.
39500 * modules/xalloc (Makefile.am): Likewise.
39501 * modules/xgetcwd (Makefile.am): Likewise.
39502 * modules/xnanosleep (Makefile.am): Likewise.
39503 * modules/xreadlink (Makefile.am): Likewise.
39504 * modules/xstrtod (Makefile.am): Likewise.
39505 * modules/xstrtol (Makefile.am): Likewise.
39506 * modules/xstrtold (Makefile.am): Likewise.
39507 * modules/yesno (Makefile.am): Likewise.
39508 * modules/getdate (Makefile.am): Don't add getdate.h to EXTRA_DIST.
39510 2006-10-12 Paul Eggert <eggert@cs.ucla.edu>
39512 * modules/error (Makefile.am): Distribute files through
39513 EXTRA_DIST, not lib_SOURCES.
39515 2006-10-12 Eric Blake <ebb9@byu.net>
39517 * modules/error (Makefile.am): Distribute files in /lib.
39518 * modules/obstack (Makefile.am): Likewise.
39520 2006-10-12 Bruno Haible <bruno@clisp.org>
39522 * modules/acl (Makefile.am): Distribute all files in lib/ through
39524 * modules/arcfour (Makefile.am): Likewise.
39525 * modules/arctwo (Makefile.am): Likewise.
39526 * modules/argmatch (Makefile.am): Likewise.
39527 * modules/argz (Makefile.am): Likewise.
39528 * modules/atexit (Makefile.am): Likewise.
39529 * modules/backupfile (Makefile.am): Likewise.
39530 * modules/c-strtod (Makefile.am): Likewise.
39531 * modules/c-strtold (Makefile.am): Likewise.
39532 * modules/calloc (Makefile.am): Likewise.
39533 * modules/canon-host (Makefile.am): Likewise.
39534 * modules/canonicalize (Makefile.am): Likewise.
39535 * modules/chdir-long (Makefile.am): Likewise.
39536 * modules/chdir-safer (Makefile.am): Likewise.
39537 * modules/check-version (Makefile.am): Likewise.
39538 * modules/chown (Makefile.am): Likewise.
39539 * modules/cloexec (Makefile.am): Likewise.
39540 * modules/close-stream (Makefile.am): Likewise.
39541 * modules/closeout (Makefile.am): Likewise.
39542 * modules/crc (Makefile.am): Likewise.
39543 * modules/cycle-check (Makefile.am): Likewise.
39544 * modules/des (Makefile.am): Likewise.
39545 * modules/dirfd (Makefile.am): Likewise.
39546 * modules/dirname (Makefile.am): Likewise.
39547 * modules/dup2 (Makefile.am): Likewise.
39548 * modules/euidaccess (Makefile.am): Likewise.
39549 * modules/exclude (Makefile.am): Likewise.
39550 * modules/exitfail (Makefile.am): Likewise.
39551 * modules/fcntl-safer (Makefile.am): Likewise.
39552 * modules/file-type (Makefile.am): Likewise.
39553 * modules/fileblocks (Makefile.am): Likewise.
39554 * modules/filemode (Makefile.am): Likewise.
39555 * modules/filenamecat (Makefile.am): Likewise.
39556 * modules/fnmatch (Makefile.am): Likewise.
39557 * modules/fopen-safer (Makefile.am): Likewise.
39558 * modules/fpending (Makefile.am): Likewise.
39559 * modules/fprintftime (Makefile.am): Likewise.
39560 * modules/free (Makefile.am): Likewise.
39561 * modules/fsusage (Makefile.am): Likewise.
39562 * modules/ftruncate (Makefile.am): Likewise.
39563 * modules/fts (Makefile.am): Likewise.
39564 * modules/gc (Makefile.am): Likewise.
39565 * modules/gc-pbkdf2-sha1 (Makefile.am): Likewise.
39566 * modules/getaddrinfo (Makefile.am): Likewise.
39567 * modules/getcwd (Makefile.am): Likewise.
39568 * modules/getdelim (Makefile.am): Likewise.
39569 * modules/getdomainname (Makefile.am): Likewise.
39570 * modules/getgroups (Makefile.am): Likewise.
39571 * modules/gethostname (Makefile.am): Likewise.
39572 * modules/gethrxtime (Makefile.am): Likewise.
39573 * modules/getline (Makefile.am): Likewise.
39574 * modules/getloadavg (Makefile.am): Likewise.
39575 * modules/getlogin_r (Makefile.am): Likewise.
39576 * modules/getopt (Makefile.am): Likewise.
39577 * modules/getpass (Makefile.am): Likewise.
39578 * modules/getpass-gnu (Makefile.am): Likewise.
39579 * modules/getsubopt (Makefile.am): Likewise.
39580 * modules/gettime (Makefile.am): Likewise.
39581 * modules/gettimeofday (Makefile.am): Likewise.
39582 * modules/getugroups (Makefile.am): Likewise.
39583 * modules/getusershell (Makefile.am): Likewise.
39584 * modules/glob (Makefile.am): Likewise.
39585 * modules/group-member (Makefile.am): Likewise.
39586 * modules/hard-locale (Makefile.am): Likewise.
39587 * modules/hash (Makefile.am): Likewise.
39588 * modules/hmac-md5 (Makefile.am): Likewise.
39589 * modules/hmac-sha1 (Makefile.am): Likewise.
39590 * modules/human (Makefile.am): Likewise.
39591 * modules/idcache (Makefile.am): Likewise.
39592 * modules/imaxabs (Makefile.am): Likewise.
39593 * modules/imaxdiv (Makefile.am): Likewise.
39594 * modules/inet_ntop (Makefile.am): Likewise.
39595 * modules/inet_pton (Makefile.am): Likewise.
39596 * modules/inttostr (Makefile.am): Likewise.
39597 * modules/isapipe (Makefile.am): Likewise.
39598 * modules/lchown (Makefile.am): Likewise.
39599 * modules/long-options (Makefile.am): Likewise.
39600 * modules/lstat (Makefile.am): Likewise.
39601 * modules/malloc (Makefile.am): Likewise.
39602 * modules/mathl (Makefile.am): Likewise.
39603 * modules/mbchar (Makefile.am): Likewise.
39604 * modules/md2 (Makefile.am): Likewise.
39605 * modules/md4 (Makefile.am): Likewise.
39606 * modules/md5 (Makefile.am): Likewise.
39607 * modules/memcasecmp (Makefile.am): Likewise.
39608 * modules/memchr (Makefile.am): Likewise.
39609 * modules/memcmp (Makefile.am): Likewise.
39610 * modules/memcoll (Makefile.am): Likewise.
39611 * modules/memcpy (Makefile.am): Likewise.
39612 * modules/memmem (Makefile.am): Likewise.
39613 * modules/memmove (Makefile.am): Likewise.
39614 * modules/mempcpy (Makefile.am): Likewise.
39615 * modules/memrchr (Makefile.am): Likewise.
39616 * modules/memset (Makefile.am): Likewise.
39617 * modules/memxor (Makefile.am): Likewise.
39618 * modules/mkancesdirs (Makefile.am): Likewise.
39619 * modules/mkdir (Makefile.am): Likewise.
39620 * modules/mkdir-p (Makefile.am): Likewise.
39621 * modules/mkdtemp (Makefile.am): Likewise.
39622 * modules/mkstemp (Makefile.am): Likewise.
39623 * modules/mktime (Makefile.am): Likewise.
39624 * modules/modechange (Makefile.am): Likewise.
39625 * modules/mountlist (Makefile.am): Likewise.
39626 * modules/nanosleep (Makefile.am): Likewise.
39627 * modules/openat (Makefile.am): Likewise.
39628 * modules/pagealign_alloc (Makefile.am): Likewise.
39629 * modules/physmem (Makefile.am): Likewise.
39630 * modules/poll (Makefile.am): Likewise.
39631 * modules/posixtm (Makefile.am): Likewise.
39632 * modules/posixver (Makefile.am): Likewise.
39633 * modules/putenv (Makefile.am): Likewise.
39634 * modules/quote (Makefile.am): Likewise.
39635 * modules/quotearg (Makefile.am): Likewise.
39636 * modules/raise (Makefile.am): Likewise.
39637 * modules/read-file (Makefile.am): Likewise.
39638 * modules/readline (Makefile.am): Likewise.
39639 * modules/readlink (Makefile.am): Likewise.
39640 * modules/readtokens (Makefile.am): Likewise.
39641 * modules/readutmp (Makefile.am): Likewise.
39642 * modules/realloc (Makefile.am): Likewise.
39643 * modules/regex (Makefile.am): Likewise.
39644 * modules/rename (Makefile.am): Likewise.
39645 * modules/rename-dest-slash (Makefile.am): Likewise.
39646 * modules/rijndael (Makefile.am): Likewise.
39647 * modules/rmdir (Makefile.am): Likewise.
39648 * modules/rpmatch (Makefile.am): Likewise.
39649 * modules/safe-read (Makefile.am): Likewise.
39650 * modules/safe-write (Makefile.am): Likewise.
39651 * modules/same (Makefile.am): Likewise.
39652 * modules/save-cwd (Makefile.am): Likewise.
39653 * modules/savedir (Makefile.am): Likewise.
39654 * modules/setenv (Makefile.am): Likewise.
39655 * modules/settime (Makefile.am): Likewise.
39656 * modules/sha1 (Makefile.am): Likewise.
39657 * modules/sig2str (Makefile.am): Likewise.
39658 * modules/snprintf (Makefile.am): Likewise.
39659 * modules/stdlib-safer (Makefile.am): Likewise.
39660 * modules/stpcpy (Makefile.am): Likewise.
39661 * modules/stpncpy (Makefile.am): Likewise.
39662 * modules/strcase (Makefile.am): Likewise.
39663 * modules/strcasestr (Makefile.am): Likewise.
39664 * modules/strchrnul (Makefile.am): Likewise.
39665 * modules/strcspn (Makefile.am): Likewise.
39666 * modules/strdup (Makefile.am): Likewise.
39667 * modules/strerror (Makefile.am): Likewise.
39668 * modules/strftime (Makefile.am): Likewise.
39669 * modules/strndup (Makefile.am): Likewise.
39670 * modules/strnlen (Makefile.am): Likewise.
39671 * modules/strpbrk (Makefile.am): Likewise.
39672 * modules/strsep (Makefile.am): Likewise.
39673 * modules/strstr (Makefile.am): Likewise.
39674 * modules/strtod (Makefile.am): Likewise.
39675 * modules/strtoimax (Makefile.am): Likewise.
39676 * modules/strtok_r (Makefile.am): Likewise.
39677 * modules/strtol (Makefile.am): Likewise.
39678 * modules/strtoll (Makefile.am): Likewise.
39679 * modules/strtoul (Makefile.am): Likewise.
39680 * modules/strtoull (Makefile.am): Likewise.
39681 * modules/strtoumax (Makefile.am): Likewise.
39682 * modules/strverscmp (Makefile.am): Likewise.
39683 * modules/time_r (Makefile.am): Likewise.
39684 * modules/timegm (Makefile.am): Likewise.
39685 * modules/tmpfile-safer (Makefile.am): Likewise.
39686 * modules/unistd-safer (Makefile.am): Likewise.
39687 * modules/unlinkdir (Makefile.am): Likewise.
39688 * modules/userspec (Makefile.am): Likewise.
39689 * modules/utime (Makefile.am): Likewise.
39690 * modules/utimecmp (Makefile.am): Likewise.
39691 * modules/utimens (Makefile.am): Likewise.
39692 * modules/vasnprintf (Makefile.am): Likewise.
39693 * modules/vasprintf (Makefile.am): Likewise.
39694 * modules/vsnprintf (Makefile.am): Likewise.
39695 * modules/xalloc (Makefile.am): Likewise.
39696 * modules/xgetcwd (Makefile.am): Likewise.
39697 * modules/xnanosleep (Makefile.am): Likewise.
39698 * modules/xreadlink (Makefile.am): Likewise.
39699 * modules/xstrtod (Makefile.am): Likewise.
39700 * modules/xstrtol (Makefile.am): Likewise.
39701 * modules/xstrtold (Makefile.am): Likewise.
39702 * modules/yesno (Makefile.am): Likewise.
39704 2006-10-12 Jim Meyering <jim@meyering.net>
39706 * m4/getloadavg.m4: Revert the change below.
39708 * m4/getloadavg.m4 (gl_GETLOADAVG): Test for the existence of
39709 lib/getloadavg.c using "ls -L", not "test -f". The latter would
39710 fail with a symlink, which is what coreutils' ./bootstrap now
39711 creates by default.
39713 2006-10-12 Bruno Haible <bruno@clisp.org>
39715 * lib/inttypes_.h (_LONG_LONG_FORMAT_PREFIX): Don't define for MSVC or
39717 (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX, _SCNu64_PREFIX): Handle
39718 MSVC and mingw explicitly.
39720 2006-10-11 Simon Josefsson <jas@extundo.com>
39721 Bruno Haible <bruno@clisp.org>
39723 Add support for multiple gnulib-tool invocations in the scope of a
39724 single configure.ac file.
39725 * gnulib-tool (func_emit_lib_Makefile_am): In the _LIBADD variable,
39726 use a private [LT]LIBOBJS variant. Define a _DEPENDENCIES variable
39727 with the same contents as the _LIBADD variable.
39728 (func_emit_initmacro_start, func_emit_initmacro_end,
39729 func_emit_initmacro_done): New functions.
39730 (func_import, func_create_testdir): Invoke them. Allow the identifiers
39731 gl_LIBOBJS and gl_LTLIBOBJS.
39733 2006-10-11 Bruno Haible <bruno@clisp.org>
39735 * gnulib-tool (GETTEXTPATH, AUTOHEADER, AUTOPOINT): New variables.
39736 (func_create_testdir): Don't create po/Makefile.am, don't invoke
39737 autoreconf. Instead, invoke autopoint explicitly but move back the
39738 *.m4 files from gnulib.
39740 2006-10-11 Bruno Haible <bruno@clisp.org>
39742 * gnulib-tool (func_usage): Make module names after --create-testdir
39744 (func_create_testdir): If no module was specified, use nearly all
39747 2006-10-12 Jim Meyering <jim@meyering.net>
39749 Big performance improvement for fts-based tools that use FTS_NOSTAT.
39750 Avoid spurious inode-mismatch problems on non-POSIX file systems.
39751 Details: http://article.gmane.org/gmane.comp.lib.gnulib.bugs/7416
39752 * lib/fts_.h (FTS_DEFER_STAT): Define new flag.
39753 (FTS_OPTIONMASK): Extend the mask to reflect this addition.
39754 * lib/fts.c (DT_IS_KNOWN, DT_MUST_BE): Define.
39755 (FTS_NO_STAT_REQUIRED, FTS_STAT_REQUIRED): Define.
39756 (fts_set_stat_required): New function.
39757 (fts_open): Defer the calls to fts_stat, if possible or requested.
39758 Move the code that maps a command-line fts_info value FTS_DOT to FTS_D
39759 into fts_stat itself.
39760 (fts_read): Perform any required (deferred) fts_stat call.
39761 (fts_build): Likewise, for the directory we're about to open and read.
39762 In the readdir loop, carefully decide whether each entry will require
39763 an eventual call to fts_stat, using dirent.d_type info if available.
39764 (fts_stat): Move the test for whether to honor FTS_COMFOLLOW on
39765 a command line argument into this function. Update all callers.
39766 Map a return value of FTS_DOT to FTS_D for a command line argument.
39767 * modules/fts (Depends-on): Add d-type. Alphabetize.
39768 Thanks to Miklos Szeredi for his tenacity and for the initial
39769 bug report about "find" failing on a FUSE-based file system.
39771 * lib/fts.c (fts_open): Use consistent indentation.
39773 2006-10-12 Paul Eggert <eggert@cs.ucla.edu>
39775 * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Renamed from
39776 gl_USE_SYSTEM_EXTENSIONS, to fix a coreutils bootstrap failure
39777 reported by Jim Meyering. All uses of cache variables renamed
39778 to match Autoconf's.
39779 (gl_USE_SYSTEM_EXTENSIONS): New macro, which simply requires
39782 * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH):
39783 Fix misspelling in diagnostic.
39785 2006-10-11 Paul Eggert <eggert@cs.ucla.edu>
39787 * lib/mkdir-p.c (HAVE_FCHMOD): Define to false if not already
39788 defined. Problem reported by Matthew Woehlke.
39790 * lib/inttypes_.h (_LONG_LONG_FORMAT_PREFIX): New macro.
39791 Add support for Tandem NonStop R series.
39792 (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX, _SCNu64_PREFIX):
39795 * lib/rename-dest-slash.c: Include stdbool.h but not string.h.
39796 (has_trailing_slash): Omit size arg; all callers changed.
39797 Omit 'inline', since it doesn't help performance and we'd
39798 need to configure it.
39799 Don't count //, ///, etc. as having a trailing slash.
39800 As a side effect, this removes a C99ism reported by Matthew Woehlke.
39801 (rpl_rename_dest_slash): On failure, use rename's errno rather
39802 than (in some cases) an incorrect or junk errno.
39803 Simplify code by removing need to compute length; this does
39804 cause it to make two passes instead of one over the file name,
39807 * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Undo previous
39808 change, since Autoconf's version may no longer be appropriate now
39809 that we are using CVS Autoconf's version. Add support for Tandem.
39811 2006-10-11 Paul Eggert <eggert@cs.ucla.edu>
39812 Bruno Haible <bruno@clisp.org>
39814 * lib/allocsa.h (sa_alignment_longlong, sa_alignment_max): Test
39815 HAVE_LONG_LONG_INT instead of HAVE_LONG_LONG.
39816 * m4/allocsa.m4 (gl_ALLOCSA): Invoke AC_TYPE_LONG_LONG_INT instead of
39817 gl_AC_TYPE_LONG_LONG.
39819 * lib/printf-args.h (arg_type, argument): Test HAVE_LONG_LONG_INT
39820 instead of HAVE_LONG_LONG.
39821 * lib/printf-args.c (printf_fetchargs): Likewise.
39822 * lib/printf-parse.c (PRINTF_PARSE): Likewise.
39823 * lib/vasnprintf.c (VASNPRINTF): Likewise.
39824 * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_ARGS, gl_PREREQ_PRINTF_PARSE,
39825 gl_PREREQ_VASNPRINTF): Invoke AC_TYPE_LONG_LONG_INT instead of
39826 gl_AC_TYPE_LONG_LONG.
39828 2006-10-11 Bruno Haible <bruno@clisp.org>
39830 * m4/longlong.m4: Add comments.
39831 * m4/ulonglong.m4: Likewise.
39833 2006-10-10 Bruno Haible <bruno@clisp.org>
39835 Make it possible to #define stpcpy, strdup to aliases.
39836 * lib/stpcpy.c (stpcpy) [!_LIBC]: Don't undefine.
39837 * lib/strdup.c (strdup) [!_LIBC]: Don't undefine.
39839 2006-10-10 Bruno Haible <bruno@clisp.org>
39841 Make it possible to #define gcd to an alias.
39842 * lib/gcd.c: Include config.h.
39844 2006-10-10 Bruno Haible <bruno@clisp.org>
39846 Make it possible to #define c_isascii to an alias.
39847 * lib/c-ctype.h: Don't define the macros if NO_C_CTYPE_MACROS is
39848 defined. Undefine the macros before defining them, to avoid gcc
39850 * lib/c-ctype.c: Include config.h. Don't undefine the macros; instead,
39851 define NO_C_CTYPE_MACROS early.
39853 2006-10-10 Bruno Haible <bruno@clisp.org>
39855 Make it possible to #define set_program_name to an alias.
39856 * lib/progname.c: Don't undefine set_program_name; instead, undefine
39857 ENABLE_RELOCATABLE early.
39859 2006-10-10 Paul Eggert <eggert@cs.ucla.edu>
39861 Port to Tandem NSK OSS, which has 64-bit signed int but at most
39862 32-bit unsigned int. Problem reported by Matthew Woehlke in:
39863 http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00062.html
39864 More generally, don't assume that 64-bit signed int is available
39865 if unsigned int is, and vice versa.
39866 * lib/inttypes_.h (_PRIu64_PREFIX, _SCNu64_PREFIX): Depend on
39867 unsigned symbols, not on their signed counterparts.
39868 * lib/stdint_.h (uint64_t, uint_least64_t, uint_fast64_t, uintmax_t):
39869 (UINT64_MAX, UINT_LEAST64_MAX, UINT_FAST64_MAX, UINTMAX_MAX):
39870 (UINT64_C, UINTMAX_C):
39872 * lib/strtoimax.c (strtoll): Depend on signed symbols, not their
39873 unsigned counterparts.
39874 (Have_long_long, Unsigned): New macros.
39875 (Int): Renamed from INT.
39876 (strtoimax): Use the new macros.
39877 * m4/stdint.m4 (gl_STDINT_H): Require AC_TYPE_UNSIGNED_LONG_LONG_INT
39878 and substitute HAVE_UNSIGNED_LONG_LONG_INT.
39879 * modules/inttypes (inttypes.h): Substitute
39880 HAVE_UNSIGNED_LONG_LONG_INT.
39881 * modules/stdint (stdint.h): Likewise.
39882 (Files): Add m4/ulonglong.m4.
39884 2006-10-10 Bruno Haible <bruno@clisp.org>
39886 Fix a gcc -Wshadow warning.
39887 * lib/gl_anyhash_list2.h (hash_resize): Rename local variable 'index'
39889 * lib/gl_anylinked_list2.h (gl_linked_search_from_to,
39890 gl_linked_indexof_from_to): Likewise.
39891 * lib/gl_linkedhash_list.c (add_to_bucket, remove_from_bucket):
39893 * lib/gl_anytreehash_list1.h (add_to_bucket, remove_from_bucket):
39895 * lib/gl_anytreehash_list2.h (gl_tree_search_from_to): Likewise.
39896 Reported by Eric Blake.
39898 2006-10-09 Paul Eggert <eggert@cs.ucla.edu>
39900 * lib/filemode.h [HAVE_DECL_STRMODE]: Include unistd.h too,
39901 for NetBSD. Problem reported by Bruno Haible.
39903 2006-10-09 Jim Meyering <jim@meyering.net>
39905 * lib/lchown.c: Include <sys/stat.h> before "stat-macros.h".
39906 Patch from Bruno Haible.
39908 2006-10-09 Jim Meyering <jim@meyering.net>
39910 * lib/fts-cycle.c (leave_dir): When "leaving" a top level directory due
39911 to FTS_SKIP, don't copy the parent's uninitialized dev/ino values.
39912 Trigger with e.g., mkdir d && valgrind ./chmod u+rwx d d
39914 2006-10-08 Paul Eggert <eggert@cs.ucla.edu>
39916 Don't include <config.h> twice; this doesn't work in some cases,
39917 e.g., when config.h has "#define intmax_t long long int" and
39918 we include <config.h>, <inttypes.h>, <config.h> in that order.
39919 Problem reported by Matthew Woehlke in:
39920 http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00073.html
39921 * lib/fprintftime.c: Don't include config.h or fprintftime.h.
39922 * lib/fts-cycle.c: Don't include config.h.
39923 * lib/strftime.c: Include fprintftime.h if FPRINTFTIME is defined.
39924 * lib/xstrtoimax.c: Remove copyright notice since it's short tnow.
39925 Don't include config.h or xstrtol.h. Define STRTOL_T_MINIMUM
39926 and STRTOL_T_MAXIMUM unconditionally, since we now assume gnulib
39928 * lib/xstrtoumax.c: Likewise.
39929 * lib/xstrtol.c: Include config.h and xstrtol.h after defining
39930 __strtol and the like, so that this module is more like its siblings.
39931 (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM) [! defined STRTOL_T_MINIMUM]:
39932 Remove; no longer needed now that we assume gnulib inttypes.h.
39934 2006-10-08 Bruno Haible <bruno@clisp.org>
39936 * doc/gnulib-tool.texi: Emphasize the drawbacks of the --symlink
39939 2006-10-07 Jim Meyering <jim@meyering.net>
39941 * modules/inttypes (inttypes.h): Revert what seems to have been
39942 an inadvertent part of today's change: use "|", not "/" in the
39943 substitution for the "/"-containing string, $(ABSOLUTE_INTTYPES_H).
39945 2006-10-07 Bruno Haible <bruno@clisp.org>
39947 * modules/sublist: New file.
39949 2006-10-07 Bruno Haible <bruno@clisp.org>
39951 * modules/alloca-opt (alloca.h): Add a "DO NOT EDIT" comment.
39952 * modules/argz (argz.h): Likewise.
39953 * modules/arpa_inet (arpa/inet.h): Likewise.
39954 * modules/byteswap (byteswap.h): Likewise.
39955 * modules/configmake (configmake.h): Likewise.
39956 * modules/fcntl (fcntl.h): Likewise.
39957 * modules/fnmatch (fnmatch.h): Likewise.
39958 * modules/getopt (getopt.h): Likewise.
39959 * modules/glob (glob.h): Likewise.
39960 * modules/inttypes (inttypes.h): Likewise.
39961 * modules/netinet_in (netinet/in.h): Likewise.
39962 * modules/poll (poll.h): Likewise.
39963 * modules/stdbool (stdbool.h): Likewise.
39964 * modules/stdint (stdint.h): Likewise.
39965 * modules/sys_select (sys/select.h): Likewise.
39966 * modules/sys_socket (sys/socket.h): Likewise.
39967 * modules/sys_stat (sys/stat.h): Likewise.
39968 * modules/sysexits (sysexits.h): Likewise.
39969 * modules/unistd (unistd.h): Likewise.
39970 * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
39971 Add a "DO NOT EDIT" comment to the generated file.
39972 (func_import): Likewise for gnulib-comp.m4.
39974 2006-10-07 Bruno Haible <bruno@clisp.org>
39976 * lib/gl_sublist.h: New file.
39977 * lib/gl_sublist.c: New file.
39979 2006-10-06 Paul Eggert <eggert@cs.ucla.edu>
39981 * lib/mkancesdirs.c (mkancesdirs): Pass to MAKE_DIR both the full file
39982 name (relative to the original working directory) and the file
39983 name component (relative to the temporary working directory). All
39985 * lib/mkancesdirs.h (mkancesdirs): Adjust prototype to match.
39986 * lib/mkdir-p.c (make_dir_parents): Likewise.
39987 * lib/mkdir-p.h (make_dir_parents): Likewise.
39989 2006-10-06 Eric Blake <ebb9@byu.net>
39991 Define several macros for use by the clean-temp module.
39992 * m4/close-stream.m4 (gl_CLOSE_STREAM): Define GNULIB_CLOSE_STREAM.
39993 * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Define GNULIB_FCNTL_SAFER.
39994 * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Define GNULIB_FOPEN_SAFER.
39996 * lib/clean-temp.h (close_stream_temp): New declaration.
39997 * lib/clean-temp.c (includes): Pull in headers according to what
39998 other modules are in use.
39999 (close_stream_temp) [GNULIB_CLOSE_STREAM]: New function.
40001 2006-10-06 Bruno Haible <bruno@clisp.org>
40003 * lib/javacomp.c (write_temp_file): Use fopen_temp, fwriteerror_temp
40004 instead of fopen, fwriteerror.
40006 2006-10-06 Bruno Haible <bruno@clisp.org>
40008 * lib/clean-temp.h (cleanup_temp_file, cleanup_temp_subdir,
40009 cleanup_temp_dir_contents, cleanup_temp_dir): Change return type to
40011 * lib/clean-temp.c (do_unlink, do_rmdir, cleanup_temp_file,
40012 cleanup_temp_subdir, cleanup_temp_dir_contents, cleanup_temp_dir):
40013 Return an error indicator.
40014 Suggested by Eric Blake.
40016 2006-10-06 Bruno Haible <bruno@clisp.org>
40018 * lib/clean-temp.c (PATH_MAX): Provide a fallback for GNU Hurd.
40019 Reported by Eric Blake.
40021 2006-10-06 Bruno Haible <bruno@clisp.org>
40023 * modules/closeout (Description): Mention stderr too.
40025 2006-10-06 Bruno Haible <bruno@clisp.org>
40026 and Paul Eggert <eggert@cs.ucla.edu>
40028 * lib/closeout.c (close_stdout): Also close stderr.
40029 * lib/closeout.h: Update comment.
40031 2006-10-05 Paul Eggert <eggert@cs.ucla.edu>
40033 Fix some Darwin-7.9.0 porting problems reported by Bruno Haible in
40034 <http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00063.html>.
40035 * lib/dirchownmod.c: Include lchown.h.
40036 * lib/lchown.c: Don't include files that lchown.h now includes.
40037 Don't declare chown, since lchown.h now does that.
40038 * lib/lchown.h: Include errno.h, sys/types.h, unistd.h.
40039 (lchown): Define to rpl_chown if lchown is declared but
40040 does not exist. Declare using a prototype if lchown is not
40041 declared. Add a copyright notice.
40042 * lib/mkstemp.h: Include <unistd.h>.
40043 * lib/openat.c: Include lchown.h.
40045 * lib/fcntl_.h (O_NOFOLLOW): Don't depend on O_NOFOLLOW_IS_INEFFECTIVE;
40046 we now test for that separately.
40047 * lib/fts.c (fts_safe_changedir): Inspect HAVE_WORKING_O_NOFOLLOW
40048 rather than O_NOFOLLOW, when testing whether it's possible to
40049 avoid a race condition reliably.
40050 * lib/savewd.c (savewd_chdir): Likewise.
40052 Remove macros that are no longer needed now that stdint.h is
40054 * lib/fsusage.c (UINTMAX_MAX): Remove.
40055 * lib/human.c (SIZE_MAX, UINTMAX_MAX): Remove.
40056 * lib/utimecmp.c (SIZE_MAX): Remove.
40058 * m4/lchown.m4 (gl_FUNC_LCHOWN): Check whether lchown is declared.
40060 * m4/fcntl_h.m4 (gl_FCNTL_H): Define HAVE_WORKING_O_NOFOLLOW instead
40061 of O_NOFOLLOW_IS_INEFFECTIVE. Define HAVE_WORKING_O_NOATIME if
40064 2006-10-05 Bruno Haible <bruno@clisp.org>
40066 * lib/gl_list.h (gl_sortedlist_search_from_to,
40067 gl_sortedlist_indexof_from_to): New declarations.
40068 (gl_list_implementation): New fields sortedlist_search_from_to,
40069 sortedlist_indexof_from_to.
40070 (gl_sortedlist_search_from_to, gl_sortedlist_indexof_from_to): New
40072 * lib/gl_list.c (gl_sortedlist_search_from_to,
40073 gl_sortedlist_indexof_from_to): New functions.
40074 * lib/gl_array_list.c (gl_array_sortedlist_indexof_from_to): New
40076 (gl_array_sortedlist_indexof, gl_array_sortedlist_search): Use it.
40077 (gl_array_sortedlist_search_from_to): New function.
40078 (gl_array_list_implementation): Update.
40079 * lib/gl_carray_list.c (gl_carray_sortedlist_indexof_from_to): New
40081 (gl_carray_sortedlist_indexof, gl_carray_sortedlist_search): Use it.
40082 (gl_carray_sortedlist_search_from_to): New function.
40083 (gl_carray_list_implementation): Update.
40084 * lib/gl_anylinked_list2.h (gl_linked_sortedlist_search_from_to,
40085 gl_linked_sortedlist_indexof_from_to): New functions.
40086 * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
40087 * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
40088 * lib/gl_anytree_list2.h (gl_tree_sortedlist_search_from_to,
40089 gl_tree_sortedlist_indexof_from_to): New functions.
40090 * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
40091 * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
40093 * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
40094 * lib/gl_rbtreehash_list.c (gl_avltreehash_list_implementation):
40097 2006-10-05 Bruno Haible <bruno@clisp.org>
40099 * lib/gl_list.h (gl_list_search_from, gl_list_search_from_to,
40100 gl_list_indexof_from, gl_list_indexof_from_to): New declarations.
40101 (struct gl_list_implementation): Add fields search_from_to,
40102 indexof_from_to. Remove fields search, indexof.
40103 (gl_list_search): Use the search_from_to method.
40104 (gl_list_search_from, gl_list_search_from_to): New functions.
40105 (gl_list_indexof): Use the indexof_from_to method.
40106 (gl_list_indexof_from, gl_list_indexof_from_to): New functions.
40107 * lib/gl_list.c (gl_list_search): Use the search_from_to method.
40108 (gl_list_search_from, gl_list_search_from_to): New functions.
40109 (gl_list_indexof): Use the indexof_from_to method.
40110 (gl_list_indexof_from, gl_list_indexof_from_to): New functions.
40111 * lib/gl_array_list.c (gl_array_indexof_from_to): Renamed from
40112 gl_array_indexof. Add start_index, end_index arguments.
40113 (gl_array_search_from_to): Renamed from gl_array_search. Add
40114 start_index, end_index arguments.
40115 (gl_array_remove, gl_array_list_implementation): Update.
40116 * lib/gl_carray_list.c (gl_carray_indexof_from_to): Renamed from
40117 gl_carray_indexof. Add start_index, end_index arguments.
40118 (gl_carray_search_from_to): Renamed from gl_carray_search. Add
40119 start_index, end_index arguments.
40120 (gl_carray_remove, gl_carray_list_implementation): Update.
40121 * lib/gl_anylinked_list2.h (gl_linked_search_from_to): Renamed from
40122 gl_linked_search. Add start_index, end_index arguments.
40123 (gl_linked_indexof_from_to): Renamed from gl_linked_indexof. Add
40124 start_index, end_index arguments.
40125 (gl_linked_remove): Update.
40126 * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
40127 * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
40128 * lib/gl_anytree_list1.h (iterstack_item_t): Change type of 'rightp'
40130 * lib/gl_anytree_list2.h (gl_tree_search_from_to): Renamed from
40131 gl_tree_search. Add start_index, end_index arguments.
40132 (gl_tree_indexof_from_to): Renamed from gl_tree_indexof. Add
40133 start_index, end_index arguments.
40134 (gl_tree_remove): Update.
40135 * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
40136 * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
40137 * lib/gl_anytreehash_list1.h (compare_position_threshold): New
40139 * lib/gl_anytreehash_list2.h (gl_tree_search_from_to): Renamed from
40140 gl_tree_search. Add start_index, end_index arguments.
40141 (gl_tree_indexof_from_to): Renamed from gl_tree_indexof. Add
40142 start_index, end_index arguments.
40143 * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
40145 * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Update.
40147 2006-10-05 Bruno Haible <bruno@clisp.org>
40149 * modules/fwriteerror (configure.ac): Define GNULIB_FWRITEERROR.
40151 * lib/clean-temp.h (open_temp, fopen_temp, close_temp, fclose_temp,
40152 fwriteerror_temp): New declarations.
40153 * lib/clean-temp.c (uintptr_t): Provide fallback definition.
40154 (descriptors): New variable.
40155 (cleanup): First, close the descriptors.
40156 (register_fd, unregister_fd, open_temp, fopen_temp, close_temp,
40157 fclose_temp, fwriteerror_temp): New functions.
40159 2006-10-04 Jim Meyering <jim@meyering.net>
40161 * lib/fts.c (fts_open): Tiny comment change.
40163 2006-10-04 Bruno Haible <bruno@clisp.org>
40165 Make it possible to invoke AC_GNU_SOURCE after gl_LOCK_EARLY.
40166 * m4/lock.m4 (gl_LOCK_EARLY_BODY): New macro, extracted code from
40168 (gl_LOCK_EARLY): Require gl_LOCK_EARLY_BODY, not gl_LOCK_BODY.
40169 (gl_LOCK_BODY): Remove settings of CPPFLAGS, now done in
40170 gl_LOCK_EARLY_BODY.
40171 (gl_LOCK): Require gl_LOCK_BODY.
40173 2006-10-04 Bruno Haible <bruno@clisp.org>
40175 * lib/gl_oset.h (gl_setelement_threshold_fn): New type.
40176 (gl_oset_search_atleast): New declaration.
40177 (struct gl_oset_implementation): Add field 'search_atleast'.
40178 (gl_oset_search_atleast): New inline function.
40179 * lib/gl_oset.c (gl_oset_search_atleast): New function.
40180 * lib/gl_array_oset.c (gl_array_search_atleast): New function.
40181 (gl_array_oset_implementation): Update.
40182 * lib/gl_anytree_oset.h (gl_tree_search_atleast): New function.
40183 * lib/gl_avltree_oset.c (gl_avltree_oset_implementation): Update.
40184 * lib/gl_rbtree_oset.c (gl_rbtree_oset_implementation): Update.
40186 2006-10-04 Bruno Haible <bruno@clisp.org>
40188 * lib/fatal-signal.c (fatal_signals) [WOE32]: Add the SIGBREAK signal.
40190 2006-10-03 Bruno Haible <bruno@clisp.org>
40192 * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Renamed
40193 from gl_avltreehash_list_implementation.
40195 2006-10-03 Bruno Haible <bruno@clisp.org>
40197 * lib/gl_oset.c (gl_oset_add): Fix return type.
40199 2006-10-02 Paolo Bonzini <bonzini@gnu.org> (tiny change)
40201 * lib/quotearg.c (mbstate_t) [!HAVE_MBRTOWC]: #define to int.
40203 2006-10-02 Eric Blake <ebb9@byu.net>
40205 * modules/strnlen (Depends-on): Add extensions.
40207 2006-10-02 Eric Blake <ebb9@byu.net>
40209 * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Use autoconf's
40210 definition in 2.60+.
40212 2006-10-02 Dmitry V. Levin <ldv@altlinux.org>
40214 * lib/fts.c (fts_close, fts_build, fts_palloc): Remove redundant
40217 2006-10-02 Bruno Haible <bruno@clisp.org>
40219 * gnulib-tool (func_emit_lib_Makefile_am): Don't add no-dependencies
40220 to the AUTOMAKE_OPTIONS.
40221 Reported by Jim Meyering.
40223 2006-09-29 Paul Eggert <eggert@cs.ucla.edu>
40225 Work around bug in Solaris 10 /proc file system:
40226 /proc/self/fd/NNN/.. isn't the parent directory of
40227 the directory whose file descriptor is NNN. This needs to
40228 be worked around at run time, not compile time, since a
40229 program might be built on Solaris 8, where things work, and
40231 * lib/openat-priv.h (BUILD_PROC_NAME): Remove. All callers changed
40232 to use the following interface instead:
40233 (OPENAT_BUFFER_SIZE): New macro.
40234 (openat_proc_name): New function.
40235 * lib/at-func.c (AT_FUNC_NAME): Adjust to above changes.
40236 * lib/openat.c (openat_permissive, openat_needs_fchdir, fdopendir):
40238 * lib/openat-proc.c: New file.
40239 * modules/openat (Files): Add lib/openat-proc.c.
40240 (Depends-on): Add same-inode, stdbool.
40241 * m4/openat.m4 (gl_FUNC_OPENAT): Add AC_LIBOBJ(openat-proc).
40243 2006-09-29 Bruno Haible <bruno@clisp.org>
40245 * lib/fwriteerror.h (fwriteerror_no_ebadf): New declaration.
40246 * lib/(do_fwriteerror): Renamed from fwriteerror. Add ignore_ebadf
40247 argument. Set stdout_closed before testing for ferror, not after.
40248 (fwriteerror, fwriteerror_no_ebadf): New functions.
40250 2006-09-28 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
40252 * m4/intmax.m4 (gt_TYPE_INTMAX_T): Avoid unused variables warning.
40254 2006-09-28 Paolo Bonzini <bonzini@gnu.org>
40256 * lib/poll.c (rpl_poll) [__APPLE__]: Use FIONREAD instead of MSG_PEEK.
40257 * m4/poll.m4: Look for sys/ioctl.h and sys/filio.h.
40259 2006-09-28 Jim Meyering <jim@meyering.net>
40261 * lib/mkdir-p.c: Include "dirchownmod.h", not "dirchownmod.c".
40262 Include <unistd.h>.
40264 2006-09-28 Bruno Haible <bruno@clisp.org>
40266 * modules/avltreehash-list (Depends-on): Add stdint, remove size_max.
40267 * modules/linkedhash-list (Depends-on): Likewise.
40268 * modules/rbtreehash-list (Depends-on): Likewise.
40270 2006-09-28 Bruno Haible <bruno@clisp.org>
40272 * lib/strndup.h: Simplify the redefinition of strndup.
40273 (_GL_CONCAT, _GL_XCONCAT, __STRNDUP_ID): Remove macros.
40274 * m4/strndup.m4 (gl_FUNC_STRNDUP): Don't define __STRNDUP_PREFIX.
40276 2006-09-28 Bruno Haible <bruno@clisp.org>
40278 * lib/gl_avltreehash_list.c: Include <stdint.h> instead of size_max.h.
40279 * lib/gl_linkedhash_list.c: Likewise.
40280 * lib/gl_rbtreehash_list.c: Likewise.
40282 2006-09-27 Paul Eggert <eggert@cs.ucla.edu>
40284 * lib/canon-host.c (canon_host_r): Work around bug in Darwin 7.9.0
40287 * lib/__fpending.h: Don't include <stdio_ext.h> unless
40288 HAVE_DECL___FPENDING. This avoids a bug with lsbcc, where
40289 it causes <stdio_ext.h> to cause a compile-time error.
40290 Problem reported by Nelson H. F. Beebe.
40291 * lib/getpass.c: Likewise, except for HAVE_DECL___FSETLOCKING instead
40292 of HAVE_DECL___PENDING.
40294 * m4/fpending.m4 (gl_FUNC_FPENDING): Check for stdio_ext at most once.
40295 * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for __fsetlocking's
40298 2006-09-27 Jim Meyering <jim@meyering.net>
40300 This file could end up with a definition for a function
40301 named __strndup, rather than rpl_strndup on a system with
40302 incomplete weak_alias support.
40303 * lib/strndup.c (strndup): Rename from __strndup.
40304 Remove #defines that used to map __strndup to strndup.
40305 Don't use K&R prototypes.
40306 Remove LIBC-related code, since this file is not sync'd with glibc.
40307 * lib/strndup.h: Revamp, accordingly.
40308 * m4/strndup.m4: Modernize.
40310 2006-09-26 Paul Eggert <eggert@cs.ucla.edu>
40312 * modules/savewd (Depends-on): Add 'raise'.
40313 * lib/savewd.c: Include <signal.h>, for 'raise'.
40315 2006-09-26 Jim Meyering <jim@meyering.net>
40317 * m4/acl.m4 (AC_FUNC_ACL): Disable ACL support altogether
40318 when we detect Darwin 8.7.0's acl_get_file bug.
40319 Rearrange to perform the new (below) run-test while $LIBS
40320 contains any acl-related library. Set USE_ACL at the end.
40321 (gl_ACL_GET_FILE): New function.
40323 2006-09-26 Eric Blake <ebb9@byu.net>
40325 * lib/verror.c: Include <config.h> unconditionally.
40327 2006-09-25 Paul Eggert <eggert@cs.ucla.edu>
40329 * modules/clock-time (Maintainer): Add self.
40330 * modules/getlogin_r (Depends-on): Add extensions.
40332 2006-09-25 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
40334 * modules/clock-time: New module.
40335 * modules/nanosleep (Depends-on): Add clock-time.
40336 * modules/gethrxtime (Depends-on): Likewise.
40337 * modules/gettime (Depends-on): Likewise.
40338 * modules/settime (Depends-on): Likewise.
40340 * modules/fts-lgpl: Depend on openat.
40341 * modules/mkancesdirs: Depend on savewd.
40342 * modules/mkdir-p: Likewise.
40344 2006-09-25 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
40346 * m4/host-os.m4 (gl_HOST_OS): Require AC_CANONICAL_HOST.
40348 * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Rename cache variable from
40349 `gl_have_arbitrary_file_name_length_limit' to
40350 `gl_cv_have_arbitrary_file_name_length_limit', so that caching
40351 actually works between configure runs.
40353 2006-09-25 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
40354 Bruno Haible <bruno@clisp.org>
40356 * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Include <string.h>.
40358 2006-09-25 Jim Meyering <jim@meyering.net>
40360 * m4/fcntl_h.m4 (gl_FCNTL_H): Fix typo in test for failed open.
40361 This typo caused coreutils/tests/dd/misc to fail on Darwin 8.7.0.
40363 2006-09-25 Eric Blake <ebb9@byu.net>
40365 * gnulib-tool (func_import, func_create_testdir): Fix typos in
40366 exec's in 2006-09-18 patch when shuffling fds.
40368 2006-09-25 Bruno Haible <bruno@clisp.org>
40370 * m4/getloadavg.m4 (gl_GETLOADAVG): Fix directory in error message.
40371 Reported by Jim Meyering.
40373 2006-09-24 Jim Meyering <jim@meyering.net>
40375 * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Don't use '>' to
40376 compare a pointer against a literal "0". That caused failures with
40377 at least HP-UX's hpcc.
40379 2006-09-22 Simon Josefsson <jas@extundo.com>
40383 * modules/gc-hmac-sha1:
40384 * modules/gc-hmac-md5:
40386 * modules/gc-arcfour: Distribute more files.
40388 2006-09-22 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
40390 * lib/gl_anylinked_list2.h [lint] (gl_linked_iterator)
40391 (gl_linked_iterator_from_to): Initialize struct completely.
40392 * lib/gl_anytree_list2.h [lint] (gl_tree_iterator): Likewise.
40393 (gl_tree_iterator_from_to): Likewise
40394 * lib/gl_anytree_oset.h [lint] (gl_tree_iterator): Likewise.
40395 * lib/gl_array_list.c [lint] (gl_array_iterator)
40396 (gl_array_iterator_from_to): Likewise.
40397 * lib/gl_array_oset.c [lint] (gl_array_iterator): Likewise.
40398 * lib/gl_carray_list.c [lint] (gl_carray_iterator)
40399 (gl_carray_iterator_from_to): Likewise.
40401 * lib/gc-gnulib.c [GC_USE_HMAC_SHA1]: include hmac.h for hmac_sha1.
40402 * lib/md4.c (md4_process_block): Remove unused variable.
40403 * lib/rijndael-api-fst.c (rijndaelBlockDecrypt): GCC suggests
40404 parentheses for clarity.
40406 2006-09-22 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
40408 * modules/bison-i18n (Depends-on): Add gettext.
40410 2006-09-22 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
40412 * m4/fsusage.m4 (gl_STATFS_TRUNCATES): Avoid unused variable.
40413 * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Likewise.
40414 * m4/jm-winsz1.m4 (gl_HEADER_TIOCGWINSZ_IN_TERMIOS_H): Likewise;
40415 also add missing comma that caused broken test.
40416 * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Include
40417 stdlib.h, for `abort'.
40418 * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Avoid unused
40420 * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Check for and
40421 include unistd.h if present, for `rmdir'.
40422 * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): Avoid unused
40424 * m4/putenv.m4 (gl_FUNC_PUTENV): Rewrite using AC_RUN_IFELSE, and
40425 in the process include standard headers for prototypes.
40426 * m4/readutmp.m4 (gl_READUTMP): Require AC_GNU_SOURCE, so utmpxname
40427 gets declared on GNU/Linux.
40428 * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Check for and include
40429 unistd.h, for `rmdir'.
40430 * m4/time_r.m4 (gl_TIME_R): Avoid unused variables.
40432 * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Avoid expression that is
40434 * m4/strndup.m4 (gl_FUNC_STRNDUP): include stdlib.h, for `free'.
40436 * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Avoid gcc -Wall warnings.
40438 2006-09-22 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
40440 * gnulib-tool (func_version): Create output all at once. This
40441 may help avoid triggering unnecessary SIGPIPEs, and at any
40442 rate it doesn't hurt.
40444 2006-09-22 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
40445 Bruno Haible <bruno@clisp.org>
40447 * m4/lock.m4 (gl_LOCK_BODY): Avoid unused variables warning.
40448 * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
40449 * m4/signed.m4 (bh_C_SIGNED): Likewise.
40451 * m4/vasprintf.m4 (gl_PREREQ_VASPRINTF_H): New macro.
40452 (gl_FUNC_VASPRINTF): Invoke it.
40454 2006-09-22 Bruno Haible <bruno@clisp.org>
40456 * m4/getloadavg.m4 (gl_GETLOADAVG): Expect the directory of
40457 getloadavg.c as first argument.
40459 2006-09-22 Bruno Haible <bruno@clisp.org>
40461 * gnulib-tool (func_import, func_create_testdir): Set gl_source_base
40462 at the beginning of the gl_INIT macro.
40463 * modules/getloadavg (configure.ac): Pass $gl_source_base to
40466 2006-09-22 Bruno Haible <bruno@clisp.org>
40468 * gnulib-tool (func_create_megatestdir): Don't include the config-h
40470 Suggested by Ralf Wildenhues.
40472 2006-09-20 Paul Eggert <eggert@cs.ucla.edu>
40474 Import this patch from libc:
40476 2006-09-06 Jakub Jelinek <jakub@redhat.com>
40478 * lib/regex_internal.c (re_string_reconstruct): Handle
40479 offset < pstr->valid_raw_len && pstr->offsets_needed case.
40480 Ensure no bytes read before raw_mbs array. Pass a saved copy of
40481 pstr->valid_len - 1 rather than pstr->valid_raw_len - 1 to
40482 re_string_context_at.
40484 * m4/regex.m4 (gl_REGEX): Check for locale.h, since the test
40486 (gl_PREREQ_REGEX): Don't check for locale.h any more, since
40487 gl_REGEX now does it for us.
40488 (gl_REGEX): Add test taken from
40489 http://sourceware.org/ml/libc-hacker/2006-09/msg00008.html.
40491 * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Require AC_SYS_LARGEFILE.
40492 Check that large offsets work. Modernize Autoconf usages.
40493 Prefer "yes" to mean a good thing rather than a bad.
40494 Don't put "#define mkstemp" in config.h, as this might interfere
40495 with standard system headers that "#define mkstemp mkstemp64".
40497 * modules/mkstemp (Depends-on): Add extensions, so that
40498 mkstemp is visible on some platforms.
40499 (Makefile.am): Add mkstemp.h to EXTRA_DIST.
40500 (Include): Change to "mkstemp.h" from <stdlib.h>.
40501 (Files): Add mkstemp.h.
40503 * lib/mkstemp.h: New file, since some standard headers
40505 * lib/mkstemp.c: Revamp to put the !_LIBC code together.
40506 Include "mkstemp.h".
40507 Make the _LIBC code resemble glibc original more,
40508 e.g., use K&R style.
40509 * lib/mkstemp-safer.c: Include "mkstemp.h" instead of <stdlib.h>.
40510 (mkstemp): Remove, since mkstemp.h does this for us.
40511 * lib/stdlib--.h: Include mkstemp.h.
40513 Import this patch from libc:
40515 2006-04-07 Ulrich Drepper <drepper@redhat.com>
40517 * lib/tempname.c (__gen_tempname): Change attempts_min
40518 into a macro. Use preprocessor to decide how to initialize
40519 attempts [Coverity CID 67].
40521 2006-09-20 Bruno Haible <bruno@clisp.org>
40523 * lib/mkdtemp.c: Import from libc.
40524 2006-04-07 Ulrich Drepper <drepper@redhat.com>
40525 * sysdeps/posix/tempname.c (__gen_tempname): Change
40526 attempts_min into a macro. Use preprocessor to decide how to
40527 initialize attempts [Coverity CID 67].
40528 2001-11-27 Paul Eggert <eggert@twinsun.com>
40529 * sysdeps/posix/tempname.c (__gen_tempname): Try at least
40530 ATTEMPTS_MIN or TMP_MAX times, whichever is greater.
40532 2006-09-19 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
40534 * gnulib-tool (func_exit): New function, to allow to pass the
40535 exit status portably through the trap. Use everywhere.
40536 (--help, --version): Signal a write error.
40537 (trap): catch SIGPIPE, for write errors.
40538 Exit at the end of the trap, with the correct exit status.
40540 2006-09-19 Karl Berry <karl@gnu.org>
40542 * doc/gnulib.texi: note about the license texinfo files.
40544 2006-09-19 Eric Blake <ebb9@byu.net>
40546 * gnulib-tool: Avoid space-tab.
40548 2006-09-18 Paul Eggert <eggert@cs.ucla.edu>
40550 * lib/getaddrinfo.c (getaddrinfo) [defined HAVE_IPV6]: Fix typo
40551 that prevented coreutils 6.1 from building. Problem reported
40552 by Petter Reinholdtsen.
40554 2006-09-18 Paul Eggert <eggert@cs.ucla.edu>
40556 * gnulib-tool (avoidlist): Fix typo that broke options like
40557 --avoid=lock that are used by coreutils bootstrap.
40559 2006-09-18 Mark D. Baushke <mdb@gnu.org>
40561 * m4/inttypes.m4 (gl_INTTYPES_H): Quote "test" args
40562 more systematically.
40564 2006-09-18 Jim Meyering <jim@meyering.net>
40566 * lib/savewd.c (savewd_restore): Don't shadow: s/status/child_status/.
40568 2006-09-18 Bruno Haible <bruno@clisp.org>
40570 * modules/inttypes (Files): Remove m4/inttypes-h.m4.
40572 2006-09-18 Bruno Haible <bruno@clisp.org>
40574 * m4/inttypes-h.m4 (gl_HEADER_INTTYPES_H): Remove macro.
40575 * m4/inttypes-pri.m4: Require autoconf >= 2.52.
40576 (gt_INTTYPES_PRI): Invoke AC_CHECK_HEADERS on inttypes.h. Test
40577 ac_cv_header_inttypes_h instead of gl_cv_header_inttypes_h.
40578 * m4/gettext.m4: Require autoconf >= 2.52.
40579 (gt_INTL_SUBDIR_CORE): Invoke AC_CHECK_HEADERS on inttypes.h.
40580 * m4/inttypes.m4 (gl_INTTYPES_H): Test ac_cv_header_inttypes_h instead
40581 of gl_cv_header_inttypes_h.
40583 2006-09-18 Bruno Haible <bruno@clisp.org>
40585 * lib/javaversion.c: Include configmake.h.
40587 2006-09-18 Bruno Haible <bruno@clisp.org>
40589 * gnulib-tool (func_import, func_create_testdir): Use exec tricks to
40590 avoid that the while loops be executed in a subshell.
40592 2006-09-18 Bruno Haible <bruno@clisp.org>
40594 * MODULES.html.sh (func_module): Break long lines.
40595 Suggested by Bruce Korb <bkorb@gnu.org>.
40597 2006-09-17 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
40599 Speed up by a factor of 1.12.
40600 * gnulib-tool (nl): New variable.
40601 (func_import): Rewrite include directive extraction to only read each
40604 2006-09-17 Bruno Haible <bruno@clisp.org>
40606 * modules/javaversion (Makefile.am): Remove DEFS setting.
40607 (Depends-on): Add configmake, for PKGDATADIR definition.
40609 2006-09-17 Bruno Haible <bruno@clisp.org>
40611 * gnulib-tool (func_create_testdir): Rewrite all files at once.
40613 2006-09-17 Bruno Haible <bruno@clisp.org>
40615 * gnulib-tool (func_append): New function, stolen from libtool.m4.
40616 (func_modules_transitive_closure, func_modules_add_dummy,
40617 func_modules_to_filelist, func_import, func_create_testdir,
40618 func_create_megatestdir, ...): Use it wherever possible.
40619 Suggested by Ralf Wildenhues.
40621 2006-09-16 Karl Berry <karl@gnu.org>
40623 * doc/fdl.texi (ADDENDUM): switch to @heading from @appendixsubsec,
40624 to avoid sectioning errors.
40625 * doc/lgpl.texi, gpl.texi (Copying): downcase @unnumbered title.
40626 [ifinfo]: blank line after @center-ed titles.
40627 * doc/lgpl.texi (Library Copying): Rename main node to GNU LGPL.
40628 Spell FSF address consistently with others.
40629 (These changes approved by rms.)
40631 2006-09-15 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
40633 Speed up by a factor of 1.61.
40634 * gnulib-tool (func_modules_transitive_closure): Rewrite to not check
40635 already checked module names again.
40637 2006-09-15 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
40639 Speed up by a factor of 1.13.
40640 * gnulib-tool (func_import): Rewrite all old_files at once; likewise
40641 for new_files, and the input to func_add_or_update.
40643 2006-09-15 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
40645 * gnulib-tool (func_all_modules, func_modules_to_filelist, func_import,
40646 func_create_testdir, ...): Change 'sort | uniq' to 'sort -u'.
40648 2006-09-15 Paul Eggert <eggert@cs.ucla.edu>
40650 * modules/mkancesdirs (Depends-on): Add fcntl.
40651 * modules/savewd: New file.
40652 * MODULES.html.sh (File system functions): Add savewd.
40654 * modules/configmake (Makefile.am): Add support for the
40655 Automake-supplied PKGLIBDIR, PKGINCLUDEDIR, PKGDATADIR.
40657 2006-09-15 Paul Eggert <eggert@cs.ucla.edu>
40659 * m4/savewd.m4: New file.
40661 2006-09-15 Paul Eggert <eggert@cs.ucla.edu>
40663 * lib/dirchownmod.c: Don't include fcntl.h; no longer needed.
40664 (dirchownmod): New arg FD. All callers changed.
40665 Use FD rather than opening the directory ourself, as opening is
40666 now the caller's responsibility.
40667 * lib/dirchownmod.h: Likewise.
40668 * lib/mkancesdirs.c: Include <sys/types.h>, for portability to older
40669 hosts that require <sys/types.h> before <sys/stat.h>. Include
40670 fcntl.h, savewd.h, and unistd.h, not dirname.h and stat-macros.h.
40671 (test_dir): Remove.
40672 (mkancesdirs): Return length of prefix of FILE that has already
40673 been made, or -2 if there is a child doing the work. Redo
40674 algorithm so that it is O(N) rather than O(N**2). Optimize away
40675 ".", and treat ".." specially since it might stray back into
40676 already-created areas. Use a subprocess if necessary. New arg
40677 WD; all users changed. MAKE_DIR function should now return 1
40678 if it creates a directory that is not readable. Return -2 if
40679 a child process is spun off.
40680 * lib/mkancesdirs.h: Include <stddef.h>, for ptrdiff_t.
40681 Adjust signature to match code.
40682 * lib/mkdir-p.c: Include dirname.h, for IS_ABSOLUTE_FILE_NAME.
40683 (make_dir_parents): Use a subprocess if necessary. New arg WD;
40685 * lib/savewd.c, lib/savewd.h: New files.
40687 2006-09-15 Jim Meyering <jim@meyering.net>
40689 * modules/rename-dest-slash: New module.
40690 * MODULES.html.sh (posix_compat): Add it here.
40692 * modules/rename: Reflect vb_FUNC_RENAME -> gl_FUNC_RENAME change.
40694 2006-09-15 Jim Meyering <jim@meyering.net>
40696 * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH): New
40699 * m4/rename.m4 (gl_FUNC_RENAME): Rename from vb_FUNC_RENAME.
40701 2006-09-15 Jim Meyering <jim@meyering.net>
40703 * lib/rename-dest-slash.c (has_trailing_slash): Use
40704 FILE_SYSTEM_PREFIX_LEN, for non-POSIX systems.
40705 (rpl_rename_dest_slash): Perform the cheaper trailing slash
40706 test before testing whether SRC is a directory.
40707 Suggestions from Bruno Haible.
40709 Avoid a warning about an unused variable.
40710 * lib/regex_internal.c (re_dfa_add_node): Move declaration of "type"
40711 into the #ifdef block where it's used.
40713 * lib/rename-dest-slash.c: New file.
40715 2006-09-14 Bruno Haible <bruno@clisp.org>
40717 * lib/allocsa.c: Include <config.h> unconditionally.
40718 * lib/asnprintf.c: Likewise.
40719 * lib/asprintf.c: Likewise.
40720 * lib/c-strcasecmp.c: Likewise.
40721 * lib/c-strcasestr.c: Likewise.
40722 * lib/c-strncasecmp.c: Likewise.
40723 * lib/c-strstr.c: Likewise.
40724 * lib/classpath.c: Likewise.
40725 * lib/clean-temp.c: Likewise.
40726 * lib/concatpath.c: Likewise.
40727 * lib/copy-file.c: Likewise.
40728 * lib/csharpcomp.c: Likewise.
40729 * lib/csharpexec.c: Likewise.
40730 * lib/execute.c: Likewise.
40731 * lib/fatal-signal.c: Likewise.
40732 * lib/findprog.c: Likewise.
40733 * lib/fwriteerror.c: Likewise.
40734 * lib/gl_array_list.c: Likewise.
40735 * lib/gl_array_oset.c: Likewise.
40736 * lib/gl_avltree_list.c: Likewise.
40737 * lib/gl_avltree_oset.c: Likewise.
40738 * lib/gl_avltreehash_list.c: Likewise.
40739 * lib/gl_carray_list.c: Likewise.
40740 * lib/gl_linked_list.c: Likewise.
40741 * lib/gl_linkedhash_list.c: Likewise.
40742 * lib/gl_list.c: Likewise.
40743 * lib/gl_oset.c: Likewise.
40744 * lib/gl_rbtree_list.c: Likewise.
40745 * lib/gl_rbtree_oset.c: Likewise.
40746 * lib/gl_rbtreehash_list.c: Likewise.
40747 * lib/imaxabs.c: Likewise.
40748 * lib/imaxdiv.c: Likewise.
40749 * lib/javacomp.c: Likewise.
40750 * lib/javaexec.c: Likewise.
40751 * lib/javaversion.c: Likewise.
40752 * lib/linebreak.c: Likewise.
40753 * lib/localcharset.c: Likewise.
40754 * lib/lock.c: Likewise.
40755 * lib/mbchar.c: Likewise.
40756 * lib/mbswidth.c: Likewise.
40757 * lib/mkdtemp.c: Likewise.
40758 * lib/pipe.c: Likewise.
40759 * lib/printf-args.c: Likewise.
40760 * lib/printf-parse.c: Likewise.
40761 * lib/progname.c: Likewise.
40762 * lib/progreloc.c: Likewise.
40763 * lib/readlink.c: Likewise.
40764 * lib/sh-quote.c: Likewise.
40765 * lib/stpcpy.c: Likewise.
40766 * lib/stpncpy.c: Likewise.
40767 * lib/strcasecmp.c: Likewise.
40768 * lib/strcasestr.c: Likewise.
40769 * lib/strcspn.c: Likewise.
40770 * lib/striconv.c: Likewise.
40771 * lib/strncasecmp.c: Likewise.
40772 * lib/strnlen1.c: Likewise.
40773 * lib/strstr.c: Likewise.
40774 * lib/strtok_r.c: Likewise.
40775 * lib/tls.c: Likewise.
40776 * lib/tmpdir.c: Likewise.
40777 * lib/unicodeio.c: Likewise.
40778 * lib/unsetenv.c: Likewise.
40779 * lib/vasnprintf.c: Likewise.
40780 * lib/vasprintf.c: Likewise.
40781 * lib/wait-process.c: Likewise.
40782 * lib/xallocsa.c: Likewise.
40783 * lib/xsetenv.c: Likewise.
40784 * lib/xstriconv.c: Likewise.
40786 2006-09-13 Simon Josefsson <jas@extundo.com>
40788 * m4/getdate.m4: Don't AC_LIBOBJ([getdate]), automake takes care of
40789 that internally, suggested by Ralf Wildenhues
40790 <Ralf.Wildenhues@gmx.de>.
40792 2006-09-13 Simon Josefsson <jas@extundo.com>
40794 * gnulib-tool (func_emit_lib_Makefile_am): Use $(LIBOBJS), not
40796 Suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
40798 2006-09-13 Paul Eggert <eggert@cs.ucla.edu>
40800 * lib/_fpending.c: Include <config.h> unconditionally, since we no
40801 longer worry about uses that don't define HAVE_CONFIG_H.
40802 * lib/acl.c, lib/alloca.c, lib/argmatch.c, lib/atexit.c:
40803 * lib/backupfile.c, lib/basename.c, lib/c-stack.c, lib/c-strtod.c:
40804 * lib/calloc.c,lib/ canon-host.c, lib/canonicalize.c, lib/chdir-long.c:
40805 * lib/chdir-safer.c, lib/chown.c, lib/cloexec.c, lib/close-stream.c:
40806 * lib/closeout.c, lib/creat-safer.c, lib/cycle-check.c, lib/diacrit.c:
40807 * lib/dirchownmod.c, lib/dirfd.c, lib/dirname.c, lib/dup-safer.c:
40808 * lib/dup2.c, lib/error.c, lib/euidaccess.c, lib/exclude.c:
40809 * lib/exitfail.c, lib/fchmodat.c, lib/fchown-stub.c, lib/fd-safer.c:
40810 * lib/file-type.c, lib/fileblocks.c, lib/filemode.c, lib/filenamecat.c:
40811 * lib/fnmatch.c, lib/fopen-safer.c, lib/fprintftime.c, lib/free.c:
40812 * lib/fsusage.c, lib/ftruncate.c, lib/fts-cycle.c, lib/fts.c:
40813 * lib/full-write.c, lib/gai_strerror.c, lib/getcwd.c, lib/getdate.y:
40814 * lib/getdomainname.c, lib/getgroups.c, lib/gethostname.c:
40815 * lib/gethrxtime.c, lib/getloadavg.c, lib/getlogin_r.c:
40816 * lib/getndelim2.c, lib/getnline.c, lib/getopt.c, lib/getopt1.c:
40817 * lib/getpass.c, lib/gettime.c, lib/gettimeofday.c, lib/getugroups.c:
40818 * lib/getusershell.c, lib/glob.c, lib/group-member.c:
40819 * lib/hard-locale.c, lib/hash-pjw.c, lib/hash.c, lib/human.c:
40820 * lib/idcache.c, lib/inet_ntop.c, lib/inet_pton.c, lib/inttostr.c:
40821 * lib/isdir.c, lib/lchown.c, lib/linebuffer.c, lib/long-options.c:
40822 * lib/lstat.c, lib/malloc.c, lib/md5.c, lib/memcasecmp.c, lib/memchr.c:
40823 * lib/memcmp.c, lib/memcoll.c, lib/memcpy.c, lib/memmove.c:
40824 * lib/memrchr.c, lib/mkancesdirs.c, lib/mkdir-p.c, lib/mkdir.c:
40825 * lib/mkdirat.c, lib/mkstemp-safer.c, lib/mkstemp.c, lib/modechange.c:
40826 * lib/mountlist.c, lib/nanosleep.c, lib/obstack.c, lib/open-safer.c:
40827 * lib/openat-die.c, lib/openat.c, lib/pagealign_alloc.c, lib/physmem.c:
40828 * lib/pipe-safer.c, lib/posixtm.c, lib/posixver.c, lib/putenv.c:
40829 * lib/quote.c, lib/quotearg.c, lib/raise.c, lib/readtokens.c:
40830 * lib/readtokens0.c, lib/readutmp.c, lib/realloc.c, lib/regex.c:
40831 * lib/rename.c, lib/rmdir.c, lib/rpmatch.c, lib/safe-read.c:
40832 * lib/same.c, lib/save-cwd.c, lib/savedir.c, lib/setenv.c:
40833 * lib/settime.c, lib/sha1.c, lib/sig2str.c, lib/snprintf.c:
40834 * lib/strdup.c, lib/strerror.c, lib/strftime.c, lib/stripslash.c:
40835 * lib/strndup.c, lib/strnlen.c, lib/strpbrk.c, lib/strtod.c:
40836 * lib/strtoimax.c, lib/strtol.c, lib/strverscmp.c, lib/tempname.c:
40837 * lib/time_r.c, lib/timegm.c, lib/tmpfile-safer.c, lib/unlinkdir.c:
40838 * lib/userspec.c, lib/utime.c, lib/utimecmp.c, lib/utimens.c:
40839 * lib/version-etc-fsf.c, lib/version-etc.c, lib/xalloc-die.c:
40840 * lib/xgetcwd.c, lib/xgethostname.c, lib/xmalloc.c, lib/xmemcoll.c:
40841 * lib/xnanosleep.c, lib/xreadlink.c, lib/xstrtod.c, lib/xstrtoimax.c:
40842 * lib/xstrtol.c, lib/xstrtoumax.c, lib/yesno.c:
40845 2006-09-13 Eric Blake <ebb9@byu.net>
40847 * lib/getopt.c: Fix typo in last commit.
40849 2006-09-12 Sergey Poznyakoff <gray@gnu.org.ua>
40851 * lib/argp-help.c (argp_doc): Make sure NULL is not passed to
40854 2006-09-12 Jim Meyering <jim@meyering.net>
40856 * lib/nanosleep.c: Include <sys/types.h> before sys/select.h, to avoid
40857 compilation failure (due to use of pid_t in latter) on NetBSD 1.6.
40858 Reported by Nelson H. F. Beebe.
40860 2006-09-10 Sergey Poznyakoff <gray@gnu.org.ua>
40862 * lib/argp-parse.c (__argp_parse) [!_LIBC]: Make sure
40863 program_invocation_name and program_invocation_short_name are
40865 * lib/argp-namefrob.h: Move declarations of program_invocation_name
40866 and program_invocation_short_name to argp.h, so they are visible
40868 * lib/argp.h: Likewise
40870 2006-09-10 Bruno Haible <bruno@clisp.org>
40872 * modules/mkdtemp (Files): Remove m4/ulonglong.m4, m4/stdint_h.m4,
40873 m4/inttypes_h.m4, m4/uintmax_t.m4.
40875 2006-09-10 Bruno Haible <bruno@clisp.org>
40877 * m4/mkdtemp.m4 (gl_PREREQ_MKDTEMP): Don't require
40878 gl_AC_TYPE_UINTMAX_T.
40880 2006-09-10 Bruno Haible <bruno@clisp.org>
40882 * lib/mkdtemp.c: Include <stdint.h> always. Don't include <inttypes.h>.
40884 2006-09-09 Sergey Poznyakoff <gray@gnu.org.ua>
40886 * lib/argp.h (struct argp): Document the N_("..") "\v" N_("..")
40887 convention. Text proposed by Bruno Haible.
40888 (struct argp_option): Document the use of N_() wrappers.
40890 * lib/argp-help.c (argp_doc): Split the untranslated doc string on
40891 '\v', and translate the two parts separately, instead of feeding
40892 the whole string to gettext. This allows to exclude
40893 '\v' from the strings visible to the translator by writing doc
40894 strings as N_("..") "\v" N_("..").
40896 2006-09-09 Paul Eggert <eggert@cs.ucla.edu>
40898 * config/srclist.txt: Undo latest change; the bug was fixed.
40900 2006-09-09 Bruno Haible <bruno@clisp.org>
40902 * gnulib-tool (func_emit_lib_Makefile_am): Eliminate lib_LDFLAGS
40903 assignments if building a library without libtool.
40904 (func_emit_tests_Makefile_am): Likewise. Handle lib_* variables as
40905 in func_emit_lib_Makefile_am.
40906 (func_import): When building a static library libfoo.a, arrange to
40907 define variables LIBFOO_LIBDEPS and LIBFOO_LTLIBDEPS.
40908 (func_create_testdir): Likewise.
40909 * modules/gc (configure.ac, Makefile.am): If building statically,
40910 augment gl_libdeps and gl_ltlibdeps instead of lib_LDFLAGS.
40911 * modules/iconvme (configure.ac, Makefile.am): Likewise.
40912 * modules/striconv (configure.ac, Makefile.am): Likewise.
40913 Based on a suggestion by Ralf Wildenhues.
40915 2006-09-08 Paul Eggert <eggert@cs.ucla.edu>
40917 * m4/mktime.m4 (AC_FUNC_MKTIME): Sync from Autoconf.
40918 Check for unistd.h too, since Autoconf doesn't assume POSIX.
40921 2006-09-08 Paul Eggert <eggert@cs.ucla.edu>
40922 Add year_2050_test to catch glibc bug 2821
40923 <http://sourceware.org/bugzilla/show_bug.cgi?id=2821>.
40925 2006-08-15 Paul Eggert <eggert@cs.ucla.edu>
40926 Prefer #ifdef to #if.
40928 2006-04-02 Paul Eggert <eggert@cs.ucla.edu>
40929 Return from 'main' instead of calling 'exit'.
40931 2006-09-08 Paul Eggert <eggert@cs.ucla.edu>
40933 * lib/mktime.c (guess_time_tm): Fix bug where mktime
40934 returned the maximum time_t value rather than (time_t) -1.
40935 Problem originally reported by William Bardwell
40936 <http://sourceware.org/bugzilla/show_bug.cgi?id=2821>.
40938 * lib/isapipe.h (HAVE_FIFO_PIPES) [!defined HAVE_FIFO_PIPES]:
40940 * lib/isapipe.c (HAVE_FIFO_PIPES) [!defined HAVE_FIFO_PIPES]:
40943 2006-09-08 Paul Eggert <eggert@cs.ucla.edu>
40945 * config/srclist.txt: Temporarily comment out mktime.c until glibc bug
40948 2006-09-08 Jim Meyering <jim@meyering.net>
40950 Don't make generated files read-only. That would bother too many
40951 people. However, do retain the ability to work when targets are
40952 read-only: remove the destination and temporary files before writing
40953 them (when generated via sed or echo), or by using the -f option for
40954 both cp and mv commands. Suggestion to use -f from Paul Eggert.
40955 * modules/alloca-opt, modules/argz, modules/arpa_inet:
40956 * modules/byteswap, modules/configmake, modules/fcntl:
40957 * modules/fnmatch, modules/getopt, modules/glob, modules/inttypes:
40958 * modules/localcharset, modules/netinet_in, modules/poll:
40959 * modules/stdbool, modules/stdint, modules/sys_select:
40960 * modules/sys_socket, modules/sys_stat, modules/sysexits:
40962 2006-09-08 Jim Meyering <jim@meyering.net>
40964 Avoid new build failure on FreeBSD 6.0.
40965 * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Include
40966 <sys/param.h> when testing whether getmntinfo uses statvfs. Patch by
40967 Pavel Tsekov, in <http://savannah.gnu.org/bugs/?17643>.
40969 2006-09-07 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
40971 * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Don't use plain echo.
40973 2006-09-07 Jim Meyering <jim@meyering.net>
40975 Fix global typo in last change: use chmod u-w, not chmod u-x.
40976 Spotted by Paul Eggert and Bruce Korb.
40977 * modules/alloca-opt, modules/argz, modules/arpa_inet:
40978 * modules/byteswap, modules/configmake, modules/fcntl:
40979 * modules/fnmatch, modules/getopt, modules/glob, modules/inttypes:
40980 * modules/localcharset, modules/netinet_in, modules/poll:
40981 * modules/stdbool, modules/stdint, modules/sys_select:
40982 * modules/sys_socket, modules/sys_stat, modules/sysexits:
40984 2006-09-06 Jim Meyering <jim@meyering.net>
40986 Make generated files be read-only.
40987 * modules/alloca-opt (Makefile.am): Work also when $@ is read-only.
40988 Ensure that each generated file is now read-only.
40989 * modules/argz: Likewise.
40990 * modules/arpa_inet: Likewise.
40991 * modules/byteswap: Likewise.
40992 * modules/configmake: Likewise.
40993 * modules/fcntl: Likewise.
40994 * modules/fnmatch: Likewise.
40995 * modules/getopt: Likewise.
40996 * modules/glob: Likewise.
40997 * modules/inttypes: Likewise.
40998 * modules/netinet_in: Likewise.
40999 * modules/poll: Likewise.
41000 * modules/stdbool: Likewise.
41001 * modules/stdint: Likewise.
41002 * modules/sys_select: Likewise.
41003 * modules/sys_socket: Likewise.
41004 * modules/sys_stat: Likewise.
41005 * modules/sysexits: Likewise.
41006 * modules/localcharset: Same as above, but continue using temporary
41007 file named "t-$@" (why different?) rather than the "$@-t" used
41010 * modules/sysexits (Makefile.am): Replace literal occurrences
41011 of "sysexit.h" more readable, and more consistent, "$@".
41013 2006-09-06 Bruno Haible <bruno@clisp.org>
41015 * modules/striconv: New file.
41016 * modules/xstriconv: New file.
41017 * MODULES.html.sh (Internationalization functions): Add striconv,
41020 2006-09-06 Bruno Haible <bruno@clisp.org>
41022 * modules/gc (Makefile.am): Augment lib_LDFLAGS, not lib_LIBADD.
41023 * modules/iconvme (Makefile.am): Likewise. Also handle the case of
41024 not using libtool correctly.
41026 2006-09-06 Bruno Haible <bruno@clisp.org>
41028 * lib/striconv.h: New file.
41029 * lib/striconv.c: New file, merging iconvme.c with GNU gettext's
41031 * lib/xstriconv.h: New file.
41032 * lib/xstriconv.c: New file.
41034 2006-09-06 Bruno Haible <bruno@clisp.org>
41036 * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
41039 2006-09-05 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
41041 * lib/argz_.h: Sync from Libtool.
41043 2006-09-04 George Bosilca <bosilca@cs.utk.edu>
41044 and Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
41046 * lib/libltdl/argz_.h: It's __cplusplus, not _cplusplus.
41048 2006-09-05 Davide Angelocola <davide.angelocola@tiscali.it>
41050 * modules/trim: New file.
41052 2006-09-05 Davide Angelocola <davide.angelocola@tiscali.it>
41054 * lib/trim.h: New file.
41055 * lib/trim.c: New file.
41057 2006-09-05 Bruno Haible <bruno@clisp.org>
41059 * MODULES.html.sh (String handling): Add trim.
41061 2006-09-04 Karl Berry <karl@gnu.org>
41063 * config/srclist.txt (signed.m4, gettext.m4): changes not propagated
41064 until next release.
41066 2006-09-03 Bruno Haible <bruno@clisp.org>
41068 * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Locate mingw shared libraries
41071 2006-09-01 Paul Eggert <eggert@cs.ucla.edu>
41073 * m4/getloadavg.m4 (gl_GETLOADAVG): Use CONFIGURING_GETLOADAVG,
41074 not gl_GETLOADAVG. Omit unneeded semicolons.
41075 Problems reported by Ralf Wildenhues in
41076 <http://lists.gnu.org/archive/html/bug-gnulib/2006-09/msg00000.html>.
41077 (gl_PREREQ_GETLOADAVG): Use AC_DEFUN, not m4_define. Put
41078 at the end, which is the usual gnulib style.
41080 * m4/fstypename.m4 (gl_FSTYPENAME): Use AC_CHECK_MEMBERS instead
41081 of doing all the work ourselves.
41082 * m4/fsusage.m4 (gl_PREREQ_FSUSAGE_EXTRA): Don't check for
41083 sys/statvfs.h since the code doesn't use HAVE_SYS_STATVFS_H.
41085 2006-09-01 Paul Eggert <eggert@cs.ucla.edu>
41087 * lib/getloadavg.c: Use CONFIGURING_GETLOADAVG, not gl_GETLOADAVG.
41088 Problem reported by Ralf Wildenhues in
41089 <http://lists.gnu.org/archive/html/bug-gnulib/2006-09/msg00000.html>.
41091 * lib/mountlist.c: All uses of HAVE_F_FSTYPENAME_IN_STATFS replaced by
41092 HAVE_STRUCT_STATFS_F_FSTYPENAME.
41094 2006-09-01 Paul Eggert <eggert@cs.ucla.edu>
41096 * gnulib-tool (func_emit_lib_Makefile_am): Fix typos in
41097 yesterday's patch by changing test -n to test -z.
41099 2006-08-31 Paul Eggert <eggert@cs.ucla.edu>
41101 * modules/getloadavg (Files): Add m4/getloadavg.m4.
41102 (configure.ac): AC_FUNC_GETLOADAVG -> gl_GETLOADAVG, as
41103 the former is now obsolescent.
41105 * modules/chdir-long (Depends-on): Add fcntl.
41107 2006-08-31 Paul Eggert <eggert@cs.ucla.edu>
41109 * m4/fnmatch.m4: Add comment that Autoconf AC_FUNC_FNMATCH is
41110 obsolescent, and programs should use gnulib instead.
41111 * m4/getloadavg.m4: New file, with contents taken from Autoconf
41112 but with prefixes changed.
41114 2006-08-31 Paul Eggert <eggert@cs.ucla.edu>
41116 * lib/getloadavg.c [defined gl_GETLOADAVG]: Don't include config.h
41117 or stdbool.h, because they might not exist while configuring.
41119 * lib/chdir-long.c: Include <fcntl.h>, for O_DIRECTORY.
41120 Don't include unistd.h or limits.h; not needed, since chdir-long.h
41122 (O_DIRECTORY): Remove.
41124 2006-08-31 Eric Blake <ebb9@byu.net>
41126 * gnulib-tool: Don't let emacs change spaces to TAB.
41128 2006-08-31 Bruno Haible <bruno@clisp.org>
41130 * gnulib-tool: When calling func_import more than once, do it in a
41132 Reported by Eric Blake <ebb9@byu.net>.
41134 2006-08-31 Bruno Haible <bruno@clisp.org>
41136 * gnulib-tool (nl): Remove variable.
41137 (sed_transform_lib_file): Use more robust test for config-h module.
41138 (func_import): Fix typo in 2006-08-25 patch.
41140 2006-08-31 Bruno Haible <bruno@clisp.org>
41142 * gnulib-tool (func_emit_lib_Makefile_am): When --makefile-name was
41143 specified, augment Makefile.am variables instead of assigning them.
41145 2006-08-30 Paul Eggert <eggert@cs.ucla.edu>
41147 Work around a bug in both the Linux and SunOS 64-bit kernels:
41148 nanosleep mishandles sleeps for longer than 2**31 seconds.
41149 Problem reported by Frank v Waveren in
41150 <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00298.html>.
41151 * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Require gl_CLOCK_TIME.
41152 Check for nanosleep bug.
41153 (LIB_NANOSLEEP): Append clock_gettime library if needed.
41155 2006-08-30 Paul Eggert <eggert@cs.ucla.edu>
41157 Work around a bug in both the Linux and SunOS 64-bit kernels:
41158 nanosleep mishandles sleeps for longer than 2**31 seconds.
41159 Problem reported by Frank v Waveren in
41160 <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00298.html>.
41161 * lib/nanosleep.c (BILLION): New constant.
41162 (getnow) [HAVE_BUG_BIG_NANOSLEEP]: New functions.
41163 (rpl_nanosleep) [HAVE_BUG_BIG_NANOSLEEP]: Completely new
41166 2006-08-30 Paul Eggert <eggert@cs.ucla.edu>
41168 * modules/nanosleep (Depends-on): Add gettime.
41170 2006-08-30 Paul Eggert <eggert@cs.ucla.edu>
41171 and Simon Josefsson <jas@extundo.com>
41172 and Oskar Liljeblad <oskar@osk.mine.nu>
41174 * MODULES.html.sh (Support for building documentation): Add gpl, lgpl.
41175 * gnulib-tool (func_import): New license type 'unmodifiable license
41177 * modules/fdl: Use it. Longer description.
41178 * module/gpl, module/lgpl: New files.
41180 2006-08-30 Jim Meyering <jim@meyering.net>
41182 * lib/isapipe.c (isapipe): Rename local s/fd/fd_pair/ to avoid
41183 shadowing the parameter.
41185 2006-08-29 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
41189 2006-08-28 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
41191 * lib/libltdl/argz.c: Use `#ifdef HAVE_CONFIG_H', to facilitate code
41192 sharing with gnulib. Report by Eric Blake.
41194 2006-08-29 Paul Eggert <eggert@cs.ucla.edu>
41196 * modules/isapipe: New file.
41197 * MODULES.html.sh (File descriptor based Input/Output): Add isapipe.
41199 2006-08-29 Paul Eggert <eggert@cs.ucla.edu>
41201 * modules/configmake (Makefile.am): Add a comment, and omit
41202 the CONFIGMAKE_ prefix from generated macro names. Suggested
41205 2006-08-29 Paul Eggert <eggert@cs.ucla.edu>
41207 * m4/isapipe.m4: New file.
41209 2006-08-29 Paul Eggert <eggert@cs.ucla.edu>
41211 * lib/isapipe.c, lib/isapipe.h: New files.
41213 2006-08-29 Jim Meyering <jim@meyering.net>
41215 * modules/configmake (Makefile.am): Make configmake.h depend on
41216 Makefile. Otherwise, a stale configmake.h could hang around.
41218 2006-08-29 Eric Blake <ebb9@byu.net>
41220 * lib/error.c (error_at_line, print_errno_message): Match libc, after
41221 resolution of upstream bug 3044.
41223 2006-08-29 Bruno Haible <bruno@clisp.org>
41225 * modules/localcharset (Depends-on): Add configmake.
41226 (Makefile.am): Remove setting of LIBDIR through DEFS.
41228 2006-08-29 Bruno Haible <bruno@clisp.org>
41230 * lib/localcharset.c: Include configmake.h in order to get LIBDIR
41233 2006-08-28 Paul Eggert <eggert@cs.ucla.edu>
41235 * modules/fcntl: New file.
41236 * modules/chdir-safer (Depends-on): Add fcntl.
41237 * modules/fts: Likewise.
41238 * modules/mkdir-p: Likewise.
41240 * modules/stdint (Makefile.am): Do not substitute ABSOLUTE_INTTYPES_H.
41241 This undoes the most recent change, since we're now addressing the
41242 problem in a different way.
41244 * gnulib-tool (emit_lib_Makefile_am): Don't put $makefile_name
41245 into output, since the output might be called Makefile.am even
41246 if $makefile_name is something different.
41247 (func_import): Use $makefile_am rather than
41248 ${makefile_name-Makefile.am}, to fix a bug where makefile_name was
41251 * modules/inttypes (Files): Add m4/inttypes-h.m4.
41253 2006-08-28 Paul Eggert <eggert@cs.ucla.edu>
41255 * m4/inttypes.m4 (gl_INTTYPES_H): Move ABSOLUTE_INTTYPES_H code here...
41256 * m4/stdint.m4 (gl_STDINT_H): ... from here. This undoes the most
41257 recent change to stdint.m4, since we're now addressing the problem in a
41260 2006-08-28 Paul Eggert <eggert@cs.ucla.edu>
41262 * m4/fcntl_h.m4: New file.
41264 2006-08-28 Paul Eggert <eggert@cs.ucla.edu>
41266 * lib/fcntl_.h: New file.
41267 * lib/chdir-safer.c (O_DIRECTORY, O_NOFOLLOW): Remove, now that we have
41269 * lib/dirchownmod.c: Likewise.
41270 * lib/fts.c: Likewise.
41272 * lib/inttypes_.h [defined _GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H]:
41273 Include @ABSOLUTE_INTTYPES_H@ if available, but do nothing else.
41274 * lib/stdint_.h (_GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H): Define
41275 just before including <inttypes.h>, to avoid circular inclusion.
41277 2006-08-28 Jim Meyering <jim@meyering.net>
41279 * doc/visibility.texi: Actually read and correct the grammar of the
41280 sentence affected by yesterday's change.
41282 2006-08-28 Eric Blake <ebb9@byu.net>
41284 * modules/inttypes (Makefile.am): Fix sed error when inttypes.h
41287 2006-08-28 Eric Blake <ebb9@byu.net>
41289 * m4/inttypes.m4 (gl_INTTYPES_H): Fix missing #endif.
41291 2006-08-28 Eric Blake <ebb9@byu.net>
41293 * m4/codeset.m4 (AM_LANGINFO_CODESET): Avoid compiler warning.
41295 2006-08-28 Bruno Haible <bruno@clisp.org>
41297 * modules/c-strstr: New file, from GNU gettext.
41298 * MODULES.html.sh (String handling): Add c-strstr.
41300 2006-08-28 Bruno Haible <bruno@clisp.org>
41302 * m4/inttypes.m4 (gl_INTTYPES_H): Don't test for the existence of SCNX*
41304 Reported by Eric Blake.
41306 2006-08-28 Bruno Haible <bruno@clisp.org>
41308 * lib/vasnprintf.c (EOVERFLOW): Remove definition.
41309 (VASNPRINTF): Return a string of length > INT_MAX without failing.
41310 * lib/vasprintf.c: Include errno.h, limits.h.
41311 (EOVERFLOW): New fallback definition.
41312 (vasprintf): Test here whether the string length is > INT_MAX.
41313 * lib/vsnprintf.c: Include errno.h, limits.h.
41314 (EOVERFLOW): New fallback definition.
41315 (vsnprintf): Fix bug when generated string was too long for the buffer.
41316 Test here whether the string length is > INT_MAX.
41318 2006-08-28 Bruno Haible <bruno@clisp.org>
41320 * lib/inttypes_.h (SCNX*): Remove definitions.
41321 Reported by Eric Blake.
41323 2006-08-28 Bruno Haible <bruno@clisp.org>
41325 * lib/c-strstr.h: New file, from GNU gettext.
41326 * lib/c-strstr.c: New file, from GNU gettext.
41328 2006-08-28 Bruno Haible <bruno@clisp.org>
41330 * gnulib-tool: Reorder some statements.
41332 2006-08-28 Bruno Haible <bruno@clisp.org>
41334 * gnulib-tool: New option --makefile-name.
41335 (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Use
41337 (func_import): Write $makefile_name to the cache file, and read it from
41338 there unless explicitly specified. Use $makefile_name as file name
41339 instead of Makefile.am. Adjust the recommendations accordingly.
41341 2006-08-28 Bruno Haible <bruno@clisp.org>
41343 * gnulib-tool (func_verify_module): Check against misapplying patch.
41345 2006-08-28 Bruno Haible <bruno@clisp.org>
41347 * gnulib-tool (func_relativize, func_relconcat): New functions.
41348 Give an error if --local-dir is given with --update.
41349 Remove trailing slashes from $local_gnulib_dir.
41350 (func_import): Store the relativized $local_gnulib_dir in
41351 gnulib-cache.m4, and read it from there if not specified explicitly.
41353 2006-08-28 Bruno Haible <bruno@clisp.org>
41355 * gnulib-tool (func_get_tests_module): Don't assume that $gnulib_dir
41356 is the current directory. Respect also $local_gnulib_dir.
41358 2006-08-28 Bruno Haible <bruno@clisp.org>
41359 Simon Josefsson <jas@extundo.com>
41362 * lib/getaddrinfo.c (PF_INET, PF_UNSPEC): New macros.
41364 2006-08-27 Jim Meyering <jim@meyering.net>
41366 * doc/visibility.texi: Remove duplicate word: "pointer".
41368 2006-08-26 Bruno Haible <bruno@clisp.org>
41370 * modules/inttypes (Files): Add lib/inttypes_.h, remove lib/inttypes.h.
41371 Add m4/inttypes.m4, remove m4/_inttypes_h.m4 and m4/include_next.m4.
41372 (Makefile.am): Create inttypes.h from inttypes_.h.
41373 * modules/stdint (Makefile.am): Substitute also ABSOLUTE_INTTYPES_H.
41375 * modules/imaxabs: New file.
41377 * modules/imaxdiv: New file.
41379 2006-08-26 Bruno Haible <bruno@clisp.org>
41381 * m4/inttypes.m4: New file.
41382 * m4/_inttypes_h.m4: Remove file.
41383 * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Also AC_SUBST
41385 * m4/stdint.m4 (gl_STDINT_H): Define also ABSOLUTE_INTTYPES_H.
41387 * m4/imaxabs.m4: New file.
41389 * m4/imaxdiv.m4: New file.
41391 2006-08-26 Bruno Haible <bruno@clisp.org>
41393 * lib/inttypes_.h: New file.
41394 * lib/inttypes.h: Remove file.
41395 * lib/stdint_.h: Include <inttypes.h> through its absolute filename.
41397 * lib/imaxabs.c: New file.
41399 * lib/imaxdiv.c: New file.
41401 2006-08-25 Paul Eggert <eggert@cs.ucla.edu>
41403 New config-h module, so that "make" output needn't be cluttered
41404 by -DHAVE_CONFIG_H.
41405 * MODULES.html.sh (Support for building libraries and executables):
41407 * modules/config-h: New file.
41408 * gnulib-tool (nl, sed_transform_lib_file): New vars.
41409 (func_import): Turn "#ifdef HAVE_CONFIG_H" to "#if 1" if
41410 the config-h module is used.
41412 New configmake module, so that "make" output needn't be cluttered
41413 by fluff like '-DLIBDIR=\"/usr/local/lib\"'.
41414 * MODULES.html.sh (Support for building libraries and executables):
41416 * modules/configmake: New file.
41418 2006-08-25 Paul Eggert <eggert@cs.ucla.edu>
41420 * m4/config-h.m4: New file.
41422 2006-08-24 Paul Eggert <eggert@cs.ucla.edu>
41424 * config/srclist.txt: Add elisp-comp.
41426 2006-08-24 Paul Eggert <eggert@cs.ucla.edu>
41428 * MODULES.html.sh (Support for building libraries and executables):
41430 * build-aux/elisp-comp: New file.
41431 * modules/elisp-comp: New file.
41433 2006-08-24 Bruno Haible <bruno@clisp.org>
41435 * gnulib-tool (func_create_testdir): Use non-default values of
41436 sourcebase and m4base.
41438 2006-08-24 Bruno Haible <bruno@clisp.org>
41440 * MODULES.html.sh (Compatibility checks for POSIX:2001 functions: Fix
41443 2006-08-23 Paul Eggert <eggert@cs.ucla.edu>
41445 * modules/openat (Depends-on): Add lchown.
41447 2006-08-23 Bruno Haible <bruno@clisp.org>
41449 * gnulib-tool (func_import, func_create_testdir): Emit an invocation
41450 of gl_LOCK_EARLY instead of gl_LOCK.
41452 2006-08-23 Bruno Haible <bruno@clisp.org>
41454 * m4/lock.m4 (gl_LOCK_BODY): Change the default value of gl_use_threads
41456 Reported by Stephen Cartwright <sgcartwr@ucalgary.ca>.
41458 2006-08-23 Bruno Haible <bruno@clisp.org>
41460 * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Don't consider BeOS statvfs
41463 * m4/lock.m4 (gl_LOCK_EARLY): Renamed from gl_LOCK.
41464 (gl_LOCK_BODY): Remove gl_PREREQ_LOCK invocation.
41465 (gl_LOCK): New macro.
41467 2006-08-22 Simon Josefsson <jas@extundo.com>
41469 * modules/gc-md5 (Makefile.am): Need to add md5.h, after changes
41472 2006-08-22 Simon Josefsson <jas@extundo.com>
41474 * MODULES.html.sh: Add "Support for maintaining and release
41477 * build-aux/gnupload: New file, from coreutils.
41479 2006-08-22 Paul Eggert <eggert@cs.ucla.edu>
41481 Avoid the need for AC_LIBSOURCES in m4 macros.
41482 * modules/arcfour (EXTRA_DIST): Add arcfour.h.
41483 * modules/arctwo (EXTRA_DIST): Add arctwo.h.
41484 * modules/check-version (EXTRA_DIST): Add check-version.h.
41485 * modules/crc (EXTRA_DIST): Add crc.h.
41486 * modules/des (EXTRA_DIST): Add des.h.
41487 * modules/gc (EXTRA_DIST): Add gc.h.
41488 * modules/getdelim (EXTRA_DIST): Add getdelim.h.
41489 * modules/getline (EXTRA_DIST): Add getline.h.
41490 * modules/getlogin_r (EXTRA_DIST): Add getlogin_r.h.
41491 * modules/hmac-md5 (EXTRA_DIST): Add hmac.h.
41492 * modules/hmac-sha1 (EXTRA_DIST): Add hmac.h.
41493 * modules/md2 (EXTRA_DIST): Add md2.h.
41494 * modules/md4 (EXTRA_DIST): Add md4.h.
41495 * modules/pagealign_alloc (EXTRA_DIST): Add pagealign_alloc.h.
41496 * modules/read-file (EXTRA_DIST): Add read-file.h.
41497 * modules/readline (EXTRA_DIST): Add readline.h.
41498 * modules/rijndael (EXTRA_DIST): Add rijndael-alg-fst.h,
41499 rijndael-api-fst.h.
41501 2006-08-22 Paul Eggert <eggert@cs.ucla.edu>
41503 * m4/rijndael.m4 (gl_ARCFOUR):
41504 * m4/arctwo.m4 (gl_ARCTWO):
41505 * m4/check-version.m4 (gl_CHECK_VERSION):
41506 * m4/crc.m4 (gl_CRC):
41507 * m4/des.m4 (gl_DES):
41508 * m4/gc-pbkdf2-sha1.m4 (gl_GC_PBKDF2_SHA1):
41509 * m4/gc.m4 (gl_GC):
41510 * m4/getdelim.m4 (gl_FUNC_GETDELIM):
41511 * m4/getline.m4 (gl_FUNC_GETLINE):
41512 * m4/getlogin_r.m4 (gl_GETLOGIN_R_SUBSTITUTE):
41513 * m4/hmac-md5.m4 (gl_HMAC_MD5):
41514 * m4/hmac-sha1.m4 (gl_HMAC_SHA1):
41515 * m4/md2.m4 (gl_MD2):
41516 * m4/md4.m4 (gl_MD4):
41517 * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC):
41518 * m4/read-file.m4 (gl_FUNC_READ_FILE):
41519 * m4/readline.m4 (gl_FUNC_READLINE):
41520 * m4/rijndael.m4 (gl_RIJNDAEL):
41521 Don't use AC_LIBSOURCES; instead, rely on the files in ../modules/
41522 to get the necessary .h files and whatnot.
41524 2006-08-22 Paul Eggert <eggert@cs.ucla.edu>
41526 * config/srclist.txt: Remove gnupload, since coreutils now syncs from
41527 gnulib rather than the other way around.
41528 * config/srclistvars.sh (COREUTILS): Remove.
41530 2006-08-22 Jim Meyering <jim@meyering.net>
41532 * modules/mkdir-p (Makefile.am): Fix typo: s/lib+SOURCES/lib_SOURCES/.
41534 * modules/getpass-gnu (Makefile.am): Add getpass.h to EXTRA_DIST.
41536 2006-08-22 Eric Blake <ebb9@byu.net>
41538 * modules/regexprops-generic: New file.
41539 * MODULES.html.sh (Support for building documentation): List it.
41541 2006-08-22 Eric Blake <ebb9@byu.net>
41543 * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Avoid compiler warning.
41544 * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
41545 * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Likewise.
41546 * m4/intmax_t.m4 (gt_AC_TYPE_INTMAX_T): Likewise.
41548 2006-08-22 Bruno Haible <bruno@clisp.org>
41550 * gnulib-tool (func_emit_lib_Makefile_am): Don't treat lib_LIBRARIES
41551 and lib_LTLIBRARIES like the other lib_* variables.
41553 2006-08-22 Bruno Haible <bruno@clisp.org>
41555 * build-aux/x-to-1.in: New file, from GNU gettext.
41557 2006-08-22 Bruno Haible <bruno@clisp.org>
41559 * m4/readutmp.m4 (gl_READUTMP): Compile readutmp.c only if <utmp.h> or
41562 2006-08-22 Bruno Haible <bruno@clisp.org>
41564 * lib/readutmp.h: Skip most definitions if neither <utmp.h> nor
41567 2006-08-21 Paul Eggert <eggert@cs.ucla.edu>
41570 * lib/dirchownmod.c (dirchownmod): Don't use fchmod if it doesn't
41572 Problem reported by Bruno Haible.
41574 2006-08-21 Paul Eggert <eggert@cs.ucla.edu>
41576 Avoid the need for AC_LIBSOURCES in m4 macros.
41577 * modules/acl (EXTRA_DIST): Add acl.h.
41578 * modules/argmatch (Files): Add m4/argmatch.m4.
41579 (configure.ac): Add gl_ARGMATCH.
41580 (EXTRA_DIST): Renamed from lib_SOURCES, for
41581 consistency with the other modules. Remove argmatch.c.
41582 * modules/backupfile (EXTRA_DIST): Add backupfile.h.
41583 * modules/c-strtod (EXTRA_DIST): Add c-strtod.h.
41584 * modules/c-strtold (EXTRA_DIST): Add c-strtod.c, c-strtod.h.
41585 * modules/canonhost (EXTRA_DIST): Add c-canonhost.h.
41586 * modules/canonicalize (EXTRA_DIST): Add canonicalize.h.
41587 * modules/chdir-long (EXTRA_DIST): Add chdir-long.h.
41588 * modules/chdir-safer (EXTRA_DIST): Add chdir-safer.h.
41589 * modules/cloexec (EXTRA_DIST): Add cloexec.h.
41590 * modules/close-stream (EXTRA_DIST): Add close-stream.h.
41591 * modules/closeout (EXTRA_DIST): Add closeout.h.
41592 * modules/cycle-check (EXTRA_DIST): Add cycle-check.h.
41593 * modules/dev-ino (EXTRA_DIST): Add dev-ino.h.
41594 * modules/dirfd (EXTRA_DIST): Add dirfd.h.
41595 * modules/dirname (EXTRA_DIST): Renamed from lib_SOURCES. Add
41596 dirname.h; remove basename.c and stripslash.c.
41597 * modules/exclude (EXTRA_DIST): Add exclude.h.
41598 * modules/exitfail (EXTRA_DIST): Add exitfail.h.
41599 * modules/fcntl-safer (EXTRA_DIST): Add fcntl-safer.h fcntl--.h.
41600 * modules/file-type (EXTRA_DIST): Add file-type.h.
41601 * modules/filemode (EXTRA_DIST): Add filemode.h.
41602 * modules/filenamecat (EXTRA_DIST): Add filenamecat.h.
41603 * modules/fopen-safer (EXTRA_DIST): Add stdio-safer.h stdio--.h.
41604 * modules/fpending (EXTRA_DIST): Add __fpending.h.
41605 * modules/fprintftime (EXTRA_DIST): Add fprintftime.h.
41606 * modules/fsusage (EXTRA_DIST): Add fsusage.h.
41607 * modules/fts (EXTRA_DIST): Add fts_.h fts-cycle.c.
41608 * modules/getcwd (EXTRA_DIST): Add getcwd.h.
41609 * modules/getdate (EXTRA_DIST): Add getdate.c.
41610 * modules/gethrxtime (EXTRA_DIST): Add gethrxtime.h xtime.h.
41611 * modules/getpagesize (EXTRA_DIST): Add getpagesize.h.
41612 * modules/getpass (EXTRA_DIST): Add getpass.h.
41613 * modules/glob (EXTRA_DIST): Add glob_.h glob-libc.h.
41614 * modules/group-member (EXTRA_DIST): Add group-member.h.
41615 * modules/hard-locale (EXTRA_DIST): Add hard-locale.h.
41616 * modules/hash (EXTRA_DIST): Add hash.h.
41617 * modules/human (EXTRA_DIST): Add human.h.
41618 * modules/inttypes (EXTRA_DIST): Add inttypes.h.
41619 * modules/lchmod (EXTRA_DIST): Add lchmod.h.
41620 * modules/lchown (EXTRA_DIST): Add lchown.h.
41621 * modules/long-options (EXTRA_DIST): Add long-options.h.
41622 * modules/lstat (EXTRA_DIST): Add lstat.h.
41623 * modules/md5 (EXTRA_DIST): Add memcasecmp.h.
41624 * modules/memcoll (EXTRA_DIST): Add memcoll.h.
41625 * modules/mempcpy (EXTRA_DIST): Add mempcpy.h.
41626 * modules/memrchr (EXTRA_DIST): Add memrchr.h.
41627 * modules/memxor (EXTRA_DIST): Add memxor.h.
41628 * modules/mkancesdirs (EXTRA_DIST): Add mkancesdirs.h.
41629 * modules/mkdir-p (EXTRA_DIST): Add modechange.h.
41630 * modules/mountlist (EXTRA_DIST): Add mountlist.h.
41631 * modules/openat (EXTRA_DIST): Add at-func.c openat.h openat-priv.h.
41632 * modules/pathmax (EXTRA_DIST): Add pathmax.h.
41633 * modules/physmem (EXTRA_DIST): Add physmem.h.
41634 * modules/posixtm (EXTRA_DIST): Add posixtm.h.
41635 * modules/posixver (EXTRA_DIST): Add posixver.h.
41636 * modules/quote (EXTRA_DIST): Add quote.h.
41637 * modules/quotearg (EXTRA_DIST): Add quotearg.h.
41638 * modules/readtokens (EXTRA_DIST): Add readtokens.h.
41639 * modules/readutmp (EXTRA_DIST): Add readutmp.h.
41640 * modules/regex (EXTRA_DIST): Add regcomp.c regex.h regex_internal.c
41641 regex_internal.h regexec.c.
41642 * modules/safe-read (EXTRA_DIST): Add safe-read.h.
41643 * modules/safe-write (EXTRA_DIST): Add safe-write.h.
41644 * modules/same (EXTRA_DIST): Add same.h.
41645 * modules/same-inode (EXTRA_DIST): Add same-inode.h.
41646 * modules/save-cwd (EXTRA_DIST): Add save-cwd.h.
41647 * modules/savedir (EXTRA_DIST): Add savedir.h.
41648 * modules/sha1 (EXTRA_DIST): Add sha1.h.
41649 * modules/sig2str (EXTRA_DIST): Add sig2str.h.
41650 * modules/stat-macros (EXTRA_DIST): Add stat-macros.h.
41651 * modules/stat-time (EXTRA_DIST): Add stat-time.h.
41652 * modules/stdlib-safer (EXTRA_DIST): Add stdlib-safer.h stdlib--.h.
41653 * modules/strdup (EXTRA_DIST): Add strdup.h.
41654 * modules/strftime (EXTRA_DIST): Add strftime.h.
41655 * modules/strndup (EXTRA_DIST): Add strndup.h.
41656 * modules/strnlen (EXTRA_DIST): Add strnlen.h.
41657 * modules/strverscmp (EXTRA_DIST): Add strverscmp.h.
41658 * modules/time_r (EXTRA_DIST): Add time_r.h.
41659 * modules/timespec (EXTRA_DIST): Add timespec.h.
41660 * modules/tmpfile-safer (EXTRA_DIST): Add stdio-safer.h stdio--.h.
41661 * modules/unistd-safer (EXTRA_DIST): Add unistd-safer.h unistd--.h.
41662 * modules/unlinkdir (EXTRA_DIST): Add unlinkdir.h.
41663 * modules/unlocked-io (EXTRA_DIST): Add unlocked-io.h.
41664 * modules/userspec (EXTRA_DIST): Add userspec.h.
41665 * modules/utimecmp (EXTRA_DIST): Add utimecmp.h.
41666 * modules/utimens (EXTRA_DIST): Add utimens.h.
41667 * modules/xalloc (EXTRA_DIST): Add xalloc.h.
41668 * modules/xgetcwd (EXTRA_DIST): Add xgetcwd.h.
41669 * modules/xnanosleep (EXTRA_DIST): Add xnanosleep.h.
41670 * modules/xreadlink (EXTRA_DIST): Add xreadlink.h.
41671 * modules/xstrtod (EXTRA_DIST): Add xstrtod.h.
41672 * modules/xstrtol (EXTRA_DIST): Add xstrtol.h.
41673 * modules/xstrtold (EXTRA_DIST): Add xstrtod.c xstrtod.h.
41674 * modules/yesno (EXTRA_DIST): Add yesno.h.
41676 2006-08-21 Paul Eggert <eggert@cs.ucla.edu>
41678 * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Check for fchmod.
41680 * m4/argmatch.m4: New file, from coreutils with AC_LIBSOURCES removed.
41681 * m4/dev-ino.m4, same-inode.m4: Remove.
41683 * m4/_inttypes_h.m4 (gl_INTTYPES_H):
41684 * m4/acl.m4 (AC_FUNC_ACL):
41685 * m4/backupfile.m4 (gl_BACKUPFILE):
41686 * m4/c-strtod.m4 (gl_C99_STRTOLD):
41687 * m4/canon-host.m4 (gl_CANON_HOST):
41688 * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME):
41689 * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG):
41690 * m4/chdir-safer.m4 (gl_CHDIR_SAFER):
41691 * m4/cloexec.m4 (gl_CLOEXEC):
41692 * m4/close-stream.m4 (gl_CLOSE_STREAM):
41693 * m4/closeout.m4 (gl_CLOSEOUT):
41694 * m4/dirfd.m4 (gl_FUNC_DIRFD):
41695 * m4/dirname.m4 (gl_DIRNAME):
41696 * m4/exclude.m4 (gl_EXCLUDE):
41697 * m4/exitfail.m4 (gl_EXITFAIL):
41698 * m4/fcntl-safer.m4 (gl_FCNTL_SAFER):
41699 * m4/file-type.m4 (gl_FILE_TYPE):
41700 * m4/filemode.m4 (gl_FILEMODE):
41701 * m4/filenamecat.m4 (gl_FILE_NAME_CONCAT):
41702 * m4/fpending.m4 (gl_FUNC_FPENDING):
41703 * m4/fprintftime.m4 (gl_FPRINTFTIME):
41704 * m4/fts.m4 (gl_FUNC_FTS):
41705 * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL):
41706 * m4/getdate.m4 (gl_GETDATE):
41707 * m4/gethrxtime.m4 (gl_GETHRXTIME):
41708 * m4/getpagesize.m4 (gl_GETPAGESIZE):
41709 * m4/getpass.m4 (gl_FUNC_GETPASS):
41710 * m4/gettime.m4 (gl_GETTIME):
41711 * m4/getugroups.m4 (gl_GETUGROUPS):
41712 * m4/glob.m4 (gl_GLOB_SUBSTITUTE):
41713 * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER):
41714 * m4/hard-locale.m4 (gl_HARD_LOCALE):
41715 * m4/hash.m4 (gl_HASH):
41716 * m4/idcache.m4 (gl_IDCACHE):
41717 * m4/lchmod.m4 (gl_FUNC_LCHMOD):
41718 * m4/lchown.m4 (gl_FUNC_LCHOWN):
41719 * m4/long-options.m4 (gl_LONG_OPTIONS):
41720 * m4/lstat.m4 (gl_FUNC_LSTAT):
41721 * m4/md5.m4 (gl_MD5):
41722 * m4/memcasecmp.m4 (gl_MEMCASECMP):
41723 * m4/memcoll.m4 (gl_MEMCOLL):
41724 * m4/mempcpy.m4 (gl_FUNC_MEMPCPY):
41725 * m4/memrchr.m4 (gl_FUNC_MEMRCHR):
41726 * m4/memxor.m4 (gl_MEMXOR):
41727 * m4/mkancesdirs.m4 (gl_MKANCESDIRS):
41728 * m4/mkdir-p.m4 (gl_MKDIR_PARENTS):
41729 * m4/modechange.m4 (gl_MODECHANGE):
41730 * m4/mountlist.m4 (gl_MOUNTLIST):
41731 * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
41732 * m4/openat.m4 (gl_FUNC_OPENAT):
41733 * m4/pathmax.m4 (gl_PATHMAX):
41734 * m4/physmem.m4 (gl_PHYSMEM):
41735 * m4/posixtm.m4 (gl_POSIXTM):
41736 * m4/posixver.m4 (gl_POSIXVER):
41737 * m4/quote.m4 (gl_QUOTE):
41738 * m4/quotearg.m4 (gl_QUOTEARG):
41739 * m4/readtokens.m4 (gl_READTOKENS):
41740 * m4/readutmp.m4 (gl_READUTMP):
41741 * m4/regex.m4 (gl_REGEX):
41742 * m4/safe-read.m4 (gl_SAFE_READ):
41743 * m4/safe-write.m4 (gl_SAFE_WRITE):
41744 * m4/same.m4 (gl_SAME):
41745 * m4/save-cwd.m4 (gl_SAVE_CWD):
41746 * m4/savedir.m4 (gl_SAVEDIR):
41747 * m4/settime.m4 (gl_SETTIME):
41748 * m4/sha1.m4 (gl_SHA1):
41749 * m4/sig2str.m4 (gl_FUNC_SIG2STR):
41750 * m4/stat-macros.m4 (gl_STAT_MACROS):
41751 * m4/stat-time.m4 (gl_STAT_TIME):
41752 * m4/stdio-safer.m4 (gl_FOPEN_SAFER):
41753 * m4/stdlib-safer.m4 (gl_STDLIB_SAFER):
41754 * m4/strdup.m4 (gl_FUNC_STRDUP):
41755 * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME):
41756 * m4/strndup.m4 (gl_FUNC_STRNDUP):
41757 * m4/strnlen.m4 (gl_FUNC_STRNLEN):
41758 * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP):
41759 * m4/time_r.m4 (gl_TIME_R):
41760 * m4/timespec.m4 (gl_TIMESPEC):
41761 * m4/unistd-safer.m4 (gl_UNISTD_SAFER):
41762 * m4/unlinkdir.m4 (gl_UNLINKDIR):
41763 * m4/unlocked-io.m4 (gl_FUNC_GLIBC_UNLOCKED_IO):
41764 * m4/userspec.m4 (gl_USERSPEC):
41765 * m4/utimecmp.m4 (gl_UTIMECMP):
41766 * m4/utimens.m4 (gl_UTIMENS):
41767 * m4/xalloc.m4 (gl_XALLOC):
41768 * m4/xgetcwd.m4 (gl_XGETCWD):
41769 * m4/xnanosleep.m4 (gl_XNANOSLEEP):
41770 * m4/xreadlink.m4 (gl_XREADLINK):
41771 * m4/xstrtod.m4 (gl_XSTRTOD):
41772 * m4/yesno.m4 (gl_YESNO):
41773 Don't use AC_LIBSOURCES; instead, rely on the files in ../modules/
41774 to get the necessary .h files and whatnot.
41776 2006-08-21 Mark D. Baushke <mdb@gnu.org>
41777 Bruno Haible <bruno@clisp.org>
41779 * gnulib-tool (func_verify_module): Work around Sun's non-POSIX 1003.2
41780 /bin/sh understanding of '!' conditional negation.
41782 2006-08-21 Jim Meyering <jim@meyering.net>
41784 * modules/openat (Depends-on): Really alphabetize.
41786 * modules/acl (Depends-on): Add error and quote.
41788 * check-module (find_included_lib_files): Add at-func.c to the
41789 ok-to-include-more-than-once white list.
41791 * modules/openat (Depends-on): Add lstat. Alphabetize.
41793 2006-08-21 Bruno Haible <bruno@clisp.org>
41795 * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
41796 Emit a pkgdata_DATA variable only if some snippets add contents to it.
41797 Reported by Martin Lambers <marlam@marlam.de>.
41799 2006-08-21 Bruno Haible <bruno@clisp.org>
41801 * gnulib-tool (func_emit_lib_Makefile_am): If the snippets already
41802 specify an installation location, don't emit a noinst_LIBRARIES or
41803 noinst_LTLIBRARIES assignment.
41805 2006-08-21 Bruno Haible <bruno@clisp.org>
41808 * modules/mbchar (Include): Don't test HAVE_WCTYPE_H any more, since
41809 BeOS has mbrtowc() but no <wctype.h>.
41811 2006-08-21 Bruno Haible <bruno@clisp.org>
41814 * m4/mbchar.m4 (gl_MBCHAR): Compile mbchar.c also if <wctype.h> doesn't
41817 2006-08-21 Bruno Haible <bruno@clisp.org>
41820 * lib/mbchar.h: Include <wctype.h> only if it exists.
41822 2006-08-20 Paul Eggert <eggert@cs.ucla.edu>
41824 Remove files that are no longer needed by their respective modules.
41825 * m4/obstack.m4: Remove.
41826 * m4/strerror_r.m4: Remove.
41827 * m4/uint32_t.m4: Remove.
41828 * m4/uintptr_t.m4: Remove.
41829 * m4/ullong_max.m4: Remove.
41830 * m4/xstrtoimax.m4: Remove.
41831 * m4/xstrtoumax.m4: Remove.
41833 * m4/cycle-check.m4 (gl_CYCLE_CHECK): Do not require
41834 gl_AC_TYPE_UINTMAX_T, gl_STRUCT_DEV_INO, or gl_SAME_INODE, since gnulib
41835 dependencies now capture this.
41837 * m4/cycle-check.m4 (gl_CYCLE_CHECK):
41838 Do not use AC_LIBSOURCES, since gnulib modules now do this.
41839 * m4/fsusage.m4 (gl_FSUSAGE): Likewise.
41840 * m4/human.m4 (gl_HUMAN): Likewise.
41841 * m4/inttostr.m4 (gl_INTTOSTR): Likewise.
41842 * m4/xstrtol.m4 (gl_XSTRTOL): Likewise.
41844 * m4/filemode.m4 (gl_FILEMODE): Require AC_STRUCT_ST_DM_MODE.
41846 * m4/filemode.m4 (gl_PREREQ_FSUSAGE_EXTRA): Do not require
41847 gl_AC_TYPE_INTMAX_T or gl_AC_TYPE_UINTMAX_T, since we now require
41849 * m4/human.m4 (gl_HUMAN): Likewise.
41850 * m4/inttostr.m4 (gl_PREREQ_INTTOSTR): Likewise.
41851 * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Likewise.
41852 * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Likewise.
41853 * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Likewise.
41854 * m4/xstrtol (gl_XSTRTOL): Likewise.
41856 * m4/gethrxtime.m4 (gl_XTIME): gl_AC_TYPE_LONG_LONG ->
41857 AC_TYPE_LONG_LONG_INT.
41858 * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Likewise.
41859 * m4/strtoll.m4 (gl_FUNC_STRTOLL): Likewise.
41860 * m4/strtoull.m4 (gl_FUNC_STRTOULL): Likewise, for unsigned long.
41861 * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Likewise.
41863 * m4/human.m4 (gl_HUMAN): Do not require AM_STDBOOL_H since we depend
41866 * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL_H, gl_PREREQ_XSTRTOL): Remove.
41867 (gl_PREREQ_XSTRTOUL): Remove.
41869 * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Check for hasmntopt.
41871 * m4/posixver.m4: Fix comment since head -1 now works even in POSIX
41874 2006-08-20 Paul Eggert <eggert@cs.ucla.edu>
41876 Add and change modules to make it easier for coreutils to use
41878 * modules/backupfile (Files): Remove m4/d-ino.m4.
41879 (Depends-on): Add d-ino.
41880 * modules/cycle-check (Depends-on): Add stdint.
41881 (lib_SOURCES): Add cycle-check.h.
41882 * modules/d-ino: New module.
41883 * modules/d-type: New module.
41884 * modules/error (Files): Remove m4/strerror_r.m4.
41885 * modules/filemode (Files): Add m4/st_dm_mode.m4.
41886 * modules/fsuage (Files): Remove m4/ulonglong.m4, m4/stdint_h.m4,
41887 m4/inttypes_h.m4, m4/uintmax_t.m4.
41888 (Depends-on): Add stdint.
41889 (lib_SOURCES): Add fsusage.h.
41890 * modules/getcwd (Files): Remove d-ino.m4.
41891 (Depends-on): Add d-ino.
41892 * modules/getndelim2 (Depends-on): Add stdint.
41893 * modules/glob (Files): Remove m4/d-type.m4.
41894 (Depends-on): Add d-type.
41895 * modules/host-os: New module.
41896 * modules/human (Files): Remove m4/ulonglong.m4, m4/stdint_h.m4,
41897 m4/inttypes_h.m4, m4/uintmax_t.m4.
41898 * Depends-on: Add stdint.
41899 (lib_SOURCES): Add human.h.
41900 * modules/inttostr (Files): Remove m4/intmax_t.m4,
41901 m4/inttostr.m4, m4/inttypes_h.m4, m4/longlong.m4, m4/stdint_h.m4,
41902 m4/uintmax_t.m4, m4/ulonglong.m4.
41903 (Depends-on): Add stdint.
41904 (EXTRA_DIST): Add inttostr.h.
41905 * modules/lchmod: New module.
41906 * modules/link-follow: New module.
41907 * modules/mkdir-p (Files): Remove lib/lchmod.h, m4/lchmod.m4.
41908 (Depends-on): Add lchmod.
41909 * modules/mkstemp (Files): Remove m4/ulonglong.m4,
41910 m4/stdint_h.m4, m4/inttypes_h.m4, m4/uintmax_t.m4.
41911 (Depends-on): Add stdint.
41912 * modules/obstack (Files): Remove m4/inttypes_h.m4, m4/obstack.m4,
41913 m4/stdint_h.m4, m4/uintmax_t.m4, m4/ulonglong.m4.
41914 (Depends-on): Add stdint.
41915 (configure.ac): Change gl_OBSTACK to AC_FUNC_OBSTACK.
41916 * modules/perl: New module.
41917 * modules/regex (Depends-on): Add stdint.
41918 * modules/rmdir-errno: New module.
41919 * modules/strtoimax (Files): Remove m4/stdint_h.m4, m4/inttypes_h.m4,
41921 (Depends-on): Add stdint.
41922 * modules/strtoumax (Files): Remove m4/stdint_h.m4, m4/inttypes_h.m4,
41924 (Depends-on): Add stdint.
41925 * modules/unlink-busy: New module.
41926 * modules/utimecmp (Depends-on): Add stdint.
41927 * modules/uptime: New module.
41928 * modules/winsz-ioctl: New module.
41929 * modules/winsz-termios: New module.
41930 * modules/xnanosleep (Depends-on): Add nanosleep.
41931 * modules/ullong_max: Remove.
41932 * modules/xstrtoimax (Files): Remove m4/xstrtoimax.m4.
41933 (configure.ac): Remove gl_XSTRTOIMAX; no action needed now.
41934 * modules/xstrtol (Files): Remove m4/ulonglong.m4, m4/longlong.m4,
41935 m4/stdint_h.m4, m4/inttypes_h.m4, m4/uintmax_t.m4, m4/intmax_t.m4.
41936 (Depends-on): Add inttypes.
41937 (lib_SOURCES): Add xstrtol.h.
41938 * modules/xstrtoumax (Files): Remove m4/xstrtoumax.m4.
41939 (configure.ac): Remove gl_XSTRTOUMAX; no action needed now.
41940 * MODULES.html.sh: Move 'assert' into the assert section.
41941 Move 'dummy' into the linking section.
41943 Add section for compatibility checks for POSIX:2001 functions,
41944 and put d-ino, d-type, link-follow, rmdir-errno, unlink-busy,
41945 winsz-ioctl, and winsz-termios into it.
41947 Add top-level Misc section and put host-os, perl, and uptime
41950 2006-08-20 Paul Eggert <eggert@cs.ucla.edu>
41952 * lib/cycle-check.h: Include <stdint.h> unconditionally, since we
41953 now assume the stdint module. Do not include inttypes.h.
41954 * lib/fsusage.h: Likewise.
41955 * lib/getndelim2.c: Likewise.
41956 * lib/human.h: Likewise.
41957 * lib/inttostr.h: Likewise.
41958 * lib/obstack.c: Likewise.
41959 * lib/regex_internal.h: Likewise.
41960 * lib/tempname.c: Likewise.
41961 * lib/utimecmp.c: Likewise.
41962 * lib/xstrtol.h: Likewise.
41964 * lib/stat_.h: Fix typo: HAVE_FUNC_LSTAT -> HAVE_LSTAT.
41966 * lib/strtoimax.c: Adjust to macro name changes in Autoconf,
41967 e.g., HAVE_LONG_LONG -> HAVE_LONG_LONG_INT.
41968 * lib/xtime.h: Likewise.
41970 2006-08-19 Paul Eggert <eggert@cs.ucla.edu>
41972 * modules/openat (Files): Add lib/fchmodat.c.
41973 Fixes problem reported by Jay Youngman.
41975 2006-08-19 Paul Eggert <eggert@cs.ucla.edu>
41977 * lib/fchmodat.c: New file, from coreutils. This was inadvertently
41978 omitted in the 2006-08-17 update. Problem reported by Jay Youngman.
41980 2006-08-18 Paul Eggert <eggert@cs.ucla.edu>
41981 Bruno Haible <bruno@clisp.org>
41983 * m4/bison-i18n.m4 (BISON_I18N): Also handle the case where yacc exists
41984 and is a script that invokes bison. Tighten the code. Add comments.
41986 2006-08-18 Jim Meyering <jim@meyering.net>
41988 * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Also check for
41989 CLOCK_REALTIME, since gethrxtime may revert to using clock_gettime via
41990 gettime.c. Gabor Z. Papp reported that gethrxtime-using programs
41991 failed to link due to unresolved clock_gettime on a linux-2.4.x system.
41993 2006-08-18 Bruno Haible <bruno@clisp.org>
41995 * modules/bison-i18n: New file.
41996 * MODULES.html.sh (Internationalization functions): Add it.
41998 2006-08-18 Bruno Haible <bruno@clisp.org>
42000 * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Also check for
42001 sys/statvfs.h. When getmntinfo was found, check its declaration and
42002 set either MOUNTED_GETMNTINFO or MOUNTED_GETMNTINFO2 depending on it.
42004 2006-08-18 Bruno Haible <bruno@clisp.org>
42006 * m4/bison-i18n.m4: New file, from bison.
42008 2006-08-18 Bruno Haible <bruno@clisp.org>
42010 * lib/mountlist.c [MOUNTED_GETMNTINFO2]: Include sys/statvfs.h.
42011 (ME_DUMMY): Treat "kernfs" as a dummy.
42012 (read_file_system_list) [MOUNTED_GETMNTINFO2]: Implement.
42014 2006-08-17 Paul Eggert <eggert@cs.ucla.edu>
42016 Update from coreutils.
42018 2006-08-15 Jim Meyering <jim@meyering.net>
42020 * m4/openat.m4 (gl_FUNC_OPENAT): Add at-func.c via AC_LIBSOURCES.
42022 2006-01-17 Jim Meyering <jim@meyering.net>
42024 * m4/fts.m4 (gl_FUNC_FTS_CORE): Depend on gl_FUNC_OPENAT.
42026 2006-01-11 Jim Meyering <jim@meyering.net>
42028 * m4/openat.m4 (gl_FUNC_OPENAT): Require and compile fchmodat.c.
42029 Check for the lchmod function.
42031 2006-08-17 Paul Eggert <eggert@cs.ucla.edu>
42033 Update from coreutils.
42035 * lib/__fpending.h: Add copyright notice.
42036 * lib/fprintftime.h: Likewise.
42037 * lib/savedir.c: Use (C) in copyright notice.
42038 * lib/savedir.h: Likewise.
42040 2006-08-15 Jim Meyering <jim@meyering.net>
42042 * lib/at-func.c: New file, with the logic of all emulated at-functions.
42043 * lib/openat-priv.h: Include <errno.h> and define ENOSYS,
42044 in support of the EXPECTED_ERRNO macro.
42045 * lib/openat.c (fstatat, unlinkat, fchownat): Remove function
42046 definitions. Instead, define the appropriate symbols and include
42048 * lib/mkdirat.c (mkdirat): Likewise.
42049 * lib/fchmodat.c (fchmodat): Likewise.
42050 (ENOSYS): Remove definition.
42051 * lib/openat.c: Don't include <errno.h>, now that "openat-priv.h" does
42052 it. Don't include "unistd--.h" -- it wasn't ever used.
42054 2006-01-17 Jim Meyering <jim@meyering.net>
42056 Rewrite fts.c not to change the current working directory,
42057 by using openat, fstatat, fdopendir, etc..
42059 * lib/fts.c [! _LIBC]: Include "openat.h" and "unistd--.h".
42060 (HAVE_OPENAT_SUPPORT): Define.
42061 [_LIBC] (fchdir): Don't undef or define; no longer used.
42062 (FCHDIR): Define in terms of cwd_advance_fd rather than fchdir.
42063 Now, this `function' always succeeds, and consumes its file descriptor
42064 parameter -- so callers must not close such FDs. Update callers.
42065 (diropen_fd, opendirat, cwd_advance_fd): New functions.
42066 (diropen): Add parameter, SP. Adjust all callers.
42067 Implement using diropen_fd, rather than open.
42068 (fts_open): Initialize new member, fts_cwd_fd.
42069 Remove fts_rft-setting code.
42070 (fts_close): Close fts_cwd_fd, if necessary.
42071 (__opendir2): Define in terms of opendir or opendirat,
42072 depending on whether the FST_NOCHDIR flag is set.
42073 (fts_build): Since fts_safe_changedir consumes its FD, and since
42074 this code must do `closedir(dirp)', dup the dirfd(dirp) argument,
42075 and close the dup'd file descriptor upon failure.
42076 (fts_stat): Use fstatat(...AT_SYMLINK_NOFOLLOW) in place of lstat.
42077 (fts_safe_changedir): Tweak semantics to reflect that this function
42078 now calls cwd_advance_fd and hence consumes its FD argument.
42079 * lib/fts_.h [struct FTS] (fts_cwd_fd): New member.
42080 [struct FTS] (fts_rft): Remove now-unused member.
42081 [struct FTS] (fts_cycle.state): Improve comment.
42083 * lib/openat.c (openat_needs_fchdir): New function.
42084 * lib/openat.h (openat_needs_fchdir): Declare it.
42086 2006-08-16 Paul Eggert <eggert@cs.ucla.edu>
42088 * lib/memcoll.c (memcoll): Set errno = 0 in the shortcut case, too.
42089 Problem and fix reported by Pádraig Brady in
42090 <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00099.html>.
42092 2006-08-15 Paul Eggert <eggert@cs.ucla.edu>
42094 * modules/cycle-check (configure.ac): Add gl_CYCLE_CHECK.
42096 2006-08-15 Paul Eggert <eggert@cs.ucla.edu>
42098 * lib/memcoll.c (memcoll): Optimize for the common case where the
42099 arguments are bytewise equal.
42101 2006-08-15 Paul Eggert <eggert@cs.ucla.edu>
42103 * doc/regexprops-generic.texi: Add a copyright notice.
42105 2006-08-15 Bruno Haible <bruno@clisp.org>
42107 * modules/tmpdir (License): Change to LGPL.
42109 2006-08-15 Bruno Haible <bruno@clisp.org>
42111 * gnulib-tool (func_all_modules, func_verify_module): COPYING is not a
42114 2006-08-14 Simon Josefsson <jas@extundo.com>
42116 * config/srclist.txt: Add gnupload.
42118 2006-08-14 Paul Eggert <eggert@cs.ucla.edu>
42120 Change copyright notice from LGPL 2 to GPL 2, since that's the
42121 standard form used in the gnulib repository.
42122 * tests/test-lock.c: Likewise.
42123 * tests/test-stdint.c: Likewise.
42124 * tests/test-tls.c: Likewise.
42126 * users.txt: Add bison, diffutils, libprelude, prelude-lml,
42127 prelude-manager. User shorter URLs for GNU projects, without '?'.
42128 Add copyright notice.
42130 * check-module: Add copyright notice. Output a copyright
42131 notice if "--version" is specified.
42132 * modules/COPYING: New file.
42133 * tests/test-getaddrinfo.c: Add copyright notice.
42134 * tests/test-verify.c: Likewise.
42136 2006-08-14 Paul Eggert <eggert@cs.ucla.edu>
42138 Change copyright notice from LGPL 2 to GPL 2, since that's the
42139 standard form used in the gnulib repository.
42140 * lib/lock.c: LGPL -> GPL.
42141 * lib/lock.h: Likewise.
42142 * lib/strnlen1.c: Likewise.
42143 * lib/strnlen1.h: Likewise.
42144 * lib/tls.c: Likewise.
42145 * lib/tls.h: Likewise.
42146 * lib/tmpdir.c: Likewise.
42148 * lib/TODO: Remove; this belongs only in coreutils.
42150 2006-08-14 Paul Eggert <eggert@cs.ucla.edu>
42152 Add copyright notices to long-enough files that lack them, since
42153 otherwise the files aren't clearly free. Use the same notice that
42154 getdate.texi already uses.
42155 * doc/alloca-opt.texi: Add copyright notice.
42156 * doc/alloca.texi: Likewise.
42157 * doc/ctime.texi: Likewise.
42158 * doc/functions.texi: Likewise.
42159 * doc/gcd.texi: Likewise.
42160 * doc/gnulib-tool.texi: Likewise.
42161 * doc/inet_ntoa.texi: Likewise.
42162 * doc/visibility.texi: Likewise.
42164 * doc/getdate.texi: Update FDL version from 1.1 to 1.2.
42165 * doc/quote.texi: Add copyright notice.
42167 * doc/solaris-versions: Add SunOS 5.10, SunOS 1.x, SunOS 4.0, SunOS
42168 4.0.x, SunOS 4.1.1.1, SunOS 4.1.1_U1, SunOS 4.1.3B. SunOS 4.1.3
42169 was Solaris 1.1A. Remove space before B in Solaris 1.1.1B.
42170 Mention SunOS 5.11. Mention that everything before SunOS 5.7
42171 is now obsolete, and give a pointer to the Sun list.
42172 Add copyright notice.
42174 2006-08-14 Paul Eggert <eggert@cs.ucla.edu>
42176 * config/srclistvars.sh: Add copyright notice.
42178 2006-08-14 Eric Blake <ebb9@byu.net>
42180 Import the following change from libc:
42182 2006-08-12 Ulrich Drepper <drepper@redhat.com>
42185 * lib/misc/error.c: Add space between program name and message if file
42188 2006-08-12 Karl Berry <karl@gnu.org>
42190 * config/srclist.txt (ssize_t.m4, sig_atomic_t.m4, signalblocking.m4):
42191 remove, these originate in gnulib now.
42193 2006-08-11 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
42195 * doc/Makefile (standards.info standards.html standards.dvi):
42196 Also depend on make-stds.texi.
42198 2006-08-11 Paul Eggert <eggert@cs.ucla.edu>
42200 * lib/pipe-safer.c (pipe_safer): Fix misspelling: HAVE_FUNC_PIPE ->
42201 HAVE_PIPE. Fix a file descriptor leak when fd_safer fails.
42203 * lib/regex_internal.c (re_string_skip_chars): Don't assume WEOF fits
42204 in wchar_t. Problem reported by Eric Blake.
42206 * lib/snprintf.c (snprintf): memcpy LEN bytes, not SIZE - 1, when
42207 LEN is smaller than SIZE. Suggested by Bruno Haible.
42208 Also, help the compiler to keep LEN in a register.
42210 2006-08-11 Eric Blake <ebb9@byu.net>
42212 * users.txt: Sort. Add tar.
42214 2006-08-11 Bruno Haible <bruno@clisp.org>
42216 * users.txt: New file.
42218 2006-08-11 Bruno Haible <bruno@clisp.org>
42220 * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Include <stdio.h> and <time.h>
42221 before <wchar.h>. Needed for OSF/1 and BSD/OS.
42223 2006-08-10 Paul Eggert <eggert@cs.ucla.edu>
42225 * modules/snprintf (Depends-on): Remove minmax.
42226 (Maintainer): Add self and Bruno.
42228 2006-08-10 Paul Eggert <eggert@cs.ucla.edu>
42230 * lib/.cppi-disable: Add snprintf.h, socket_.h.
42231 * lib/snprintf.c: Include <errno.h> and <limits.h>.
42232 (EOVERFLOW): Define if the system does not.
42233 Do not include "minmax.h"; it wasn't used.
42234 (snprintf): Don't assume size_t promotes to an unsigned type.
42235 Fix bug when generated string was too long for the buffer: the
42236 buffer's contents are supposed to be the initial prefix of the
42237 output. Don't assume vasnprintf returns EOVERFLOW if the size
42238 exceeds INT_MAX; do the check ourselves.
42240 Import the following changes from libc:
42242 2006-06-02 Jakub Jelinek <jakub@redhat.com>
42244 * lib/posix/regex_internal.c (re_string_skip_chars): If no character
42245 has been converted at all, set *last_wc to WEOF. If mbrtowc failed,
42246 set wc to the byte which couldn't be converted.
42247 (re_string_reconstruct): Don't clear valid_raw_len before calling
42248 re_string_skip_chars. If wc is WEOF after re_string_skip_chars, set
42249 tip_context using re_string_context_at.
42251 2006-05-02 Ulrich Drepper <drepper@redhat.com>
42253 * lib/posix/regex.h: g++ still cannot handled [restrict].
42255 2006-04-21 Ulrich Drepper <drepper@redhat.com>
42257 * lib/posix/regex.h: Remove special handling for VMS.
42259 2006-08-10 Jim Meyering <jim@meyering.net>
42261 * modules/same-inode: New module.
42262 * modules/dev-ino: New module.
42263 * modules/cycle-check: Depend on these modules, rather than simply
42264 including their .h files.
42265 (Makefile.am): Don't list cycle-check.[ch] here, now that they're
42266 required via m4/cycle-check.m4.
42267 * modules/same: Depend on new same-inode module, rather than
42268 including same-inode.h.
42269 * modules/chdir-safer: New file.
42271 * modules/chown (Depends-on): Add stat-macros.
42273 2006-08-10 Jim Meyering <jim@meyering.net>
42275 * m4/cycle-check.m4: New file.
42276 Require gl_STRUCT_DEV_INO and gl_SAME_INODE.
42277 * m4/dev-ino.m4, m4/same-inode.m4: New files.
42279 2006-08-10 Eric Blake <ebb9@byu.net>
42281 * modules/verror (Depends-on): Remove bogus gl_VERROR that snuck
42282 in from original proposal.
42284 2006-08-10 Eric Blake <ebb9@byu.net>
42285 and Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
42287 * gnulib-tool (func_import): Detect unexpanded macros in gnulib
42290 2006-08-10 Bruno Haible <bruno@clisp.org>
42292 * gnulib-tool (func_create_testdir): Detect unexpanded macros here
42295 2006-08-09 Paul Eggert <eggert@cs.ucla.edu>
42297 Sync from coreutils.
42299 2006-07-19 Mike Frysinger <vapier@gentoo.org>
42301 * lib/mountlist.c [ME_REMOTE]: Filter out cifs.
42302 Reported by Toralf Förster in <http://bugs.gentoo.org/141012>.
42304 2006-08-09 Paul Eggert <eggert@cs.ucla.edu>
42306 * modules/restrict: Remove; no longer needed now that we assume
42307 Autoconf 2.59 or later.
42308 * MODULES.html.sh: Remove 'restrict'.
42309 * modules/argp (Depends-on): Remove 'restrict'.
42310 * modules/base64 (Depends-on): Likewise.
42311 * modules/gc (Depends-on): Likewise.
42312 * modules/getaddrinfo (Depends-on): Likewise.
42313 * modules/glob (Depends-on): Likewise.
42314 * modules/inet_ntop (Depends-on): Likewise.
42315 * modules/inet_pton (Depends-on): Likewise.
42316 * modules/memxor (Depends-on): Likewise.
42317 * modules/regex (Depends-on): Likewise.
42318 * modules/strtok_r (Depends-on): Likewise.
42319 * modules/time_r (Depends-on): Likewise.
42321 2006-08-09 Paul Eggert <eggert@cs.ucla.edu>
42323 * m4/argp.m4 (gl_ARGP): Require AC_C_RESTRICT.
42324 * m4/gc.m4 (gl_PREREQ_GC): Likewise.
42325 * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
42326 * m4/inet_ntop.m4 (gl_PREREQ_INET_NTOP): Likewise.
42327 * m4/inet_pton.m4 (gl_PREREQ_INET_PTON): Likewise.
42328 * m4/memxor.m4 (gl_MEMXOR): Likewise.
42329 * m4/restrict.m4: Remove; no longer needed. All remaining uses of
42330 gl_C_RESTRICT replaced by AC_C_RESTRICT.
42332 Merge from coreutils.
42333 * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_C_RESTRICT, not
42334 gl_C_RESTRICT, now that we assume Autoconf 2.59 or later.
42335 * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
42336 * m4/time_r.m4 (gl_TIME_R): Likewise.
42338 2006-08-09 Karl Berry <karl@gnu.org>
42340 * config/srclist.txt: no more gettext-tools, per Bruno.
42342 2006-08-08 Eric Blake <ebb9@byu.net>
42344 * modules/verror: New module.
42345 * MODULES.html.sh: Document it.
42347 2006-08-08 Eric Blake <ebb9@byu.net>
42349 * lib/verror.h, lib/verror.c: New files.
42351 2006-08-08 Eric Blake <ebb9@byu.net>
42353 * lib/verror.c (verror_at_line): Work around glibc bug 2997, so that
42354 verror_at_line output complies with GNU Coding Standards even when
42357 2006-08-07 Bruno Haible <bruno@clisp.org>
42359 * lib/allocsa.h (sa_alignof) [_AIX]: Also consider 'long long' in newer
42361 Reported by Ralf Wildenhues.
42363 2006-08-07 Bruno Haible <bruno@clisp.org>
42365 * gnulib-tool (func_create_testdir): Wrap the set of autoconf snippets
42366 in an AC_DEFUN. Needed so that the autoconf snippets can use
42369 2006-08-06 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
42371 * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
42372 Initialize pkgdata_DATA.
42373 * modules/javaversion (Makefile.am): Add to pkgdata_DATA, rather than
42376 2006-08-06 Eric Blake <ebb9@byu.net>
42378 * lib/error.h: Fold in some upstream changes from glibc.
42379 * lib/error.c: Likewise.
42381 2006-08-04 Bruno Haible <bruno@clisp.org>
42383 * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
42384 Make the mostlyclean-local rule depend on mostlyclean-generic.
42385 Reported by Jim Meyering. Solution suggested by Ralf Wildenhues.
42387 2006-07-31 Bruno Haible <bruno@clisp.org>
42389 * m4/localcharset.m4 (gl_LOCALCHARSET): Remove tests for <stddef.h>,
42390 <stdlib.h>, <string.h>.
42392 2006-07-30 Bruno Haible <bruno@clisp.org>
42394 * modules/readlink (License): Change to LGPL.
42396 2006-07-30 Bruno Haible <bruno@clisp.org>
42398 * modules/javaversion (Makefile.am): Distribute javaversion.java and
42399 javaversion.class. Also install javaversion.class in $(pkgdatadir) and
42400 set PKGDATADIR to point to it.
42402 2006-07-30 Bruno Haible <bruno@clisp.org>
42404 * modules/csharpexec (configure.ac): Comment out macro invocation.
42405 * modules/javaexec (configure.ac): Likewise.
42406 * modules/javacomp-script (configure.ac): Likewise.
42408 * modules/csharpcomp-script (configure.ac): Use AC_REQUIRE.
42410 2006-07-30 Bruno Haible <bruno@clisp.org>
42412 * modules/clean-temp (Depends-on): Add linkedhash-list, remove
42415 2006-07-30 Bruno Haible <bruno@clisp.org>
42417 * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Assume <string.h> exists.
42419 2006-07-30 Bruno Haible <bruno@clisp.org>
42421 * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
42422 Initialize MOSTLYCLEANFILES to core and *.stackdump, so that core dumps
42425 2006-07-29 Bruno Haible <bruno@clisp.org>
42427 Make it possible for gnulib-tool to work with locally modified or
42428 augmented gnulib repositories.
42429 * gnulib-tool (func_usage): Document --local-dir option.
42430 (local_gnulib_dir): New variable.
42431 Handle --local-dir option.
42432 (func_lookup_file): New function.
42433 (func_all_modules, func_verify_module): Look also in $local_gnulib_dir.
42434 (func_get_description, func_get_filelist, func_get_description,
42435 func_get_filelist, func_get_dependencies, func_get_autoconf_snippet,
42436 func_get_automake_snippet, func_get_include_directive,
42437 func_get_license, func_get_maintainer): Use func_lookup_file.
42438 (func_import, func_create_testdir): Use func_lookup_file.
42440 2006-07-29 Bruno Haible <bruno@clisp.org>
42442 * modules/setenv (Depends-on): Add unistd.
42444 2006-07-29 Bruno Haible <bruno@clisp.org>
42446 * lib/setenv.c: Undo unintended modification done on 2006-02-27.
42448 2006-07-29 Bruno Haible <bruno@clisp.org>
42450 * lib/localcharset.c: Assume <stddef.h>, <stdlib.h>, <string.h> exist.
42452 2006-07-29 Bruno Haible <bruno@clisp.org>
42454 * gnulib-tool (import, update): If there is no Makefile.am, look at
42455 aclocal.m4, instead of bailing out.
42457 2006-07-29 Bruno Haible <bruno@clisp.org>
42459 * gnulib-tool (func_usage): Revert most of the 2006-07-15 change.
42460 Categorize the options by when they are useful.
42462 2006-07-29 Bruno Haible <bruno@clisp.org>
42464 * gnulib-tool (func_usage): Document option --no-libtool.
42465 Handle option --no-libtool.
42466 (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Update
42467 for changed semantics of $libtool variable.
42468 (func_import): Likewise. If libtool is not used, show this through
42469 an option --no-libtool.
42470 (func_create_testdir): Update.
42472 2006-07-29 Bruno Haible <bruno@clisp.org>
42474 * gnulib-tool (func_import): Extend error message about missing
42477 2006-07-29 Bruno Haible <bruno@clisp.org>
42479 * gnulib-tool (func_import): Don't create the $docbase directory if
42480 there is no file to store there.
42482 2006-07-29 Bruno Haible <bruno@clisp.org>
42484 * gnulib-tool (autoconf_minversion): If a --dir option is given and
42485 relevant, look for configure.ac there, not in the current directory.
42486 Also use a simple search for AC_PREREQ, not "autoconf --trace".
42488 2006-07-29 Bruno Haible <bruno@clisp.org>
42490 * gnulib-tool (SORT): New variable.
42491 (func_usage): Undocument --assume-autoconf option.
42492 Remove --assume-autoconf option handling.
42493 (autoconf_minversion): Determine from the contents of configure.ac.
42494 (func_import): Remove autoconf_minversion handling.
42495 Suggested by Eric Blake.
42497 2006-07-29 Bruno Haible <bruno@clisp.org>
42499 * doc/gnulib-tool.texi (gl_LIBTOOL): Mention --no-libtool option.
42501 2006-07-29 Bruno Haible <bruno@clisp.org>
42503 * config/srclist.txt (*setenv.[ch]): Remove rules.
42505 2006-07-28 Yoann Vandoorselaere <yoann.v@prelude-ids.com>
42507 * m4/inet_pton.m4, inet_ntop.m4: Check for netinet/in.h too.
42509 2006-07-28 Yoann Vandoorselaere <yoann.v@prelude-ids.com>
42511 * lib/inet_ntop.h, inet_pton.h: Need to include netinet/in.h before
42514 2006-07-28 Simon Josefsson <jas@extundo.com>
42516 * modules/inet_ntop (Depends-on): Depend on arpa_inet.
42517 * modules/inet_pton (Depends-on): Likewise.
42519 2006-07-28 Simon Josefsson <jas@extundo.com>
42521 * m4/netinet_in_h.m4: New file.
42523 2006-07-28 Simon Josefsson <jas@extundo.com>
42525 * lib/inet_ntop.h, inet_pton.h: No need to guard netinet/in.h
42528 2006-07-28 Simon Josefsson <jas@extundo.com>
42530 * lib/inet_ntop.h, inet_pton.h: No need to guard arpa/inet.h
42533 2006-07-28 Paul Eggert <eggert@cs.ucla.edu>
42535 * lib/modechange.c (mode_compile): Numeric modes now affect setuid and
42536 setgid on directories only if they set these bits.
42537 * lib/modechange.h: Remove obsolete comment about masks.
42539 2006-07-28 Eric Blake <ebb9@byu.net>
42541 * lib/regex_internal.h (struct re_dfa_t) [!_LIBC]: Avoid invalid C89
42544 2006-07-28 Bruno Haible <bruno@clisp.org>
42546 * lib/inet_ntop.h, inet_pton.h: Use #if HAVE* instead of #ifdef HAVE*.
42548 2006-07-28 Bruno Haible <bruno@clisp.org>
42550 * m4/mbchar.m4 (gl_MBCHAR): Also test for iswcntrl.
42552 2006-07-28 Bruno Haible <bruno@clisp.org>
42554 * lib/mbchar.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
42555 iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit):
42557 Avoids link error on FreeBSD 4.x.
42558 Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
42560 * lib/wcwidth.h (iswprint): Assume an ASCII compatible wide character
42562 * lib/mbswidth.c (iswcntrl): Likewise.
42564 2006-07-27 Bruno Haible <bruno@clisp.org>
42566 * m4/stdint.m4 (gl_STDINT_H): Define __STDC_CONSTANT_MACROS during the
42569 2006-07-27 Bruno Haible <bruno@clisp.org>
42571 * lib/stdint_.h (INT*_C, UINT*_C) [C++]: Define these if
42572 __STDC_CONSTANT_MACROS is defined, not if __STDC_LIMIT_MACROS is
42575 2006-07-26 Eric Blake <ebb9@byu.net>
42577 * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Check for missing pipe.
42579 2006-07-26 Eric Blake <ebb9@byu.net>
42581 * lib/mkstemp-safer.c [! HAVE_MKSTEMP]: Add prototype for platforms
42582 like mingw that lack mkstemp.
42583 * lib/pipe-safer.c (pipe_safer) [!HAVE_FUNC_PIPE]: Provide fallback to
42584 avoid compilation warning on mingw.
42586 2006-07-26 Bruno Haible <bruno@clisp.org>
42588 * m4/stdint.m4 (gl_STDINT_H): Also verify the existence of the macros
42589 INT*_MIN, INT_LEAST*_MAX, INT_LEAST*_MIN, UINT_LEAST*_MAX,
42590 INT_FAST*_MIN, INTPTR_MIN.
42592 2006-07-25 Bruno Haible <bruno@clisp.org>
42594 * modules/version-etc (Depends-on): Add stdarg.
42596 2006-07-25 Bruno Haible <bruno@clisp.org>
42598 * m4/stdint.m4 (gl_INTEGER_TYPE_SUFFIX): Avoid 'eval' in front of
42601 2006-07-25 Bruno Haible <bruno@clisp.org>
42603 * lib/version-etc.c (version_etc_va): Use va_copy, assumed to be
42604 defined in <stdarg.h> or config.h.
42606 2006-07-24 Paul Eggert <eggert@cs.ucla.edu>
42608 * m4/stdio-safer.m4 (gl_FOPEN_SAFER, gl_TMPFILE_SAFER): New macros.
42609 (gl_STDIO_SAFER): Remove.
42611 2006-07-24 Paul Eggert <eggert@cs.ucla.edu>
42613 * MODULES.html.sh (File stream based Input/Output):
42614 Add fopen-safer, tmpfile-safer; remove stdio-safer.
42615 * modules/getusershell (Depends-on): Change stdio-safer to fopen-safer.
42616 * modules/fopen-safer, modules/tmpfile-safer: New files.
42617 * modules/stdio-safer: Remove.
42619 2006-07-24 Bruno Haible <bruno@clisp.org>
42621 * modules/tmpdir: New file.
42622 * MODULES.html.sh (File system functions): Add it.
42624 2006-07-24 Bruno Haible <bruno@clisp.org>
42626 * modules/javacomp (Depends-on): Add unistd, javaversion, binary-io,
42627 getline, pathname, fwriteerror, clean-temp, xvasprintf, strstr.
42629 2006-07-24 Bruno Haible <bruno@clisp.org>
42631 * modules/clean-temp: New file.
42633 2006-07-24 Bruno Haible <bruno@clisp.org>
42635 * m4/tmpdir.m4: New file, from GNU gettext.
42637 2006-07-24 Bruno Haible <bruno@clisp.org>
42639 * lib/tmpdir.h: New file, from GNU gettext.
42640 * lib/tmpdir.c: New file, from GNU gettext.
42642 2006-07-24 Bruno Haible <bruno@clisp.org>
42644 * lib/clean-temp.h: New file, from GNU gettext.
42645 * lib/clean-temp.c: New file, from GNU gettext.
42647 2006-07-23 Eric Blake <ebb9@byu.net>
42649 * modules/stdio-safer (Files): Add tmpfile-safer.c.
42650 (Depends-on): Add binary-io.
42652 2006-07-23 Eric Blake <ebb9@byu.net>
42654 * m4/stdio-safer.m4 (gl_STDIO_SAFER): Add tmpfile-safer.c.
42656 2006-07-23 Eric Blake <ebb9@byu.net>
42658 * lib/tmpfile-safer.c: New file.
42659 * lib/stdio-safer.h (fopen_safer): Add prototype.
42660 * lib/stdio--.h (tmpfile): Make safer.
42662 2006-07-23 Bruno Haible <bruno@clisp.org>
42664 * lib/gl_anylinked_list2.h (ASYNCSAFE): New macro.
42665 (gl_linked_add_first, gl_linked_add_last, gl_linked_add_before,
42666 gl_linked_add_after, gl_linked_add_at, gl_linked_remove_node,
42667 gl_linked_remove_at): Use it.
42669 2006-07-22 Yoann Vandoorselaere <yoann.v@prelude-ids.com>
42670 and Simon Josefsson <jas@extundo.com>
42672 * lib/getaddrinfo.h (AI_PASSIVE): Make sure it is defined.
42674 * lib/getaddrinfo.c (getaddrinfo): Support AI_PASSIVE.
42676 2006-07-22 Paul Eggert <eggert@cs.ucla.edu>
42678 * modules/close-stream: New file.
42679 * modules/closeout (Description): Make it clear that it exits
42680 with a diagnostic on error.
42681 (Depends-on): Add close-stream. Remove fpending, stdbool.
42682 * MODULES.html.sh (File stream based Input/Output): Add close-stream.
42684 2006-07-22 Paul Eggert <eggert@cs.ucla.edu>
42686 * m4/close-stream.m4: New file.
42688 2006-07-22 Paul Eggert <eggert@cs.ucla.edu>
42690 * lib/close-stream.c, lib/close-stream.h: New files.
42692 2006-07-22 Bruno Haible <bruno@clisp.org>
42694 Merge from GNU gettext 0.15.
42696 2006-05-01 Bruno Haible <bruno@clisp.org>
42698 * build-aux/javacomp.sh.in: Update for changed javacomp.m4.
42700 2006-07-22 Bruno Haible <bruno@clisp.org>
42702 * modules/javaversion: New file.
42703 * MODULES.html.sh (Java): Add javaversion.
42705 2006-03-12 Bruno Haible <bruno@clisp.org>
42707 * build-aux/javaexec.sh.in: Update for changed javaexec.m4.
42709 2005-12-04 Bruno Haible <bruno@clisp.org>
42711 * build-aux/csharpexec.sh.in: Add support for 'clix' launcher
42714 2006-06-21 Bruno Haible <bruno@clisp.org>
42716 Avoid warnings from recent versions of mcs.
42717 * build-aux/csharpcomp.sh.in (options_mcs): Don't use options
42718 -o, -L, -r any more. Use options documented since mcs-1.0
42719 instead. Similarly for -g.
42721 2005-12-04 Bruno Haible <bruno@clisp.org>
42723 * build-aux/csharpcomp.sh.in: Suffix for resources is
42724 .resources, not .resource.
42726 2005-07-09 Bruno Haible <bruno@clisp.org>
42728 * build-aux/csharpcomp.sh.in (options_csc): For -l option,
42730 Reported by Mark Junker <mjscod@gmx.de>.
42732 2006-07-22 Bruno Haible <bruno@clisp.org>
42734 * modules/gettext: Upgrade to gettext-0.15.
42735 (Files): Remove m4/isc-posix.m4. Add m4/lock.m4,
42737 Replace m4/inttypes.m4 with m4/inttypes-h.m4.
42739 2006-07-22 Bruno Haible <bruno@clisp.org>
42741 Merge from GNU gettext 0.15.
42743 2006-03-25 Bruno Haible <bruno@clisp.org>
42745 * lib-link.m4 (AC_LIB_LINKFLAGS_FROM_LIBS): New macro.
42747 2006-07-21 Bruno Haible <bruno@clisp.org>
42749 * javacomp.m4 (gt_JAVACOMP): Convert target_version "null" to
42752 2006-05-09 Bruno Haible <bruno@clisp.org>
42754 * javacomp.m4 (gt_JAVACOMP): On Cygwin, set
42755 CLASSPATH_SEPARATOR to a semicolon. Use CLASSPATH_SEPARATOR
42756 for the conftestver execution.
42758 2006-05-01 Bruno Haible <bruno@clisp.org>
42760 * javacomp.m4 (gt_JAVACOMP): Accept a source-version and an
42761 optional target-version argument. Verify that the compiler
42762 groks source of the specified source-version, or add -source
42763 option as necessary. Verify that the compiler produces
42764 bytecode in the specified target-version, or add -target and
42765 -source options as necessary. Make the result of the test
42766 available as variable CONF_JAVAC. Also log error output in
42769 2006-03-11 Bruno Haible <bruno@clisp.org>
42771 * javacomp.m4 (gt_JAVACOMP): Treat gcj-4.x like gcj-3.x.
42773 2006-05-09 Bruno Haible <bruno@clisp.org>
42775 * javaexec.m4 (gt_JAVAEXEC): On Cygwin, set
42776 CLASSPATH_SEPARATOR to a semicolon.
42778 2006-03-12 Bruno Haible <bruno@clisp.org>
42780 * javaexec.m4 (gt_JAVAEXEC): Make the result of the test
42781 available as variable CONF_JAVA, for subsequent autoconf
42782 tests. Also log error output in config.log.
42784 2006-07-19 Bruno Haible <bruno@clisp.org>
42786 * getline.m4 (AM_FUNC_GETLINE): When cross-compiling, assume
42787 that getline works on glibc2 systems. Needed to avoid trouble
42789 Reported by Nils Magnus Larsgard <nmlarsgaard@atmel.no>.
42791 2005-12-04 Bruno Haible <bruno@clisp.org>
42793 * csharpexec.m4 (gt_CSHARPEXEC): Add support for 'clix'
42794 launcher (untested).
42796 2005-12-04 Bruno Haible <bruno@clisp.org>
42798 * csharpcomp.m4 (gt_CSHARPCOMP): Also set CSHARPCOMPFLAGS.
42800 2006-07-22 Bruno Haible <bruno@clisp.org>
42802 * gettext.m4: Update from GNU gettext-0.15.
42803 * nls.m4: Likewise.
42805 * inttypes-pri.m4: Likewise.
42806 * inttypes-h.m4: Renamed from inttypes.m4.
42807 (gl_HEADER_INTTYPES_H): Renamed from gt_HEADER_INTTYPES_H.
42809 2006-07-22 Bruno Haible <bruno@clisp.org>
42811 Merge from GNU gettext 0.15.
42813 2005-07-05 Bruno Haible <bruno@clisp.org>
42815 * printf-args.c (printf_fetchargs): Work around broken
42816 definition of wint_t on mingw.
42818 2005-02-12 Bruno Haible <bruno@clisp.org>
42820 * xallocsa.h: Add extern "C" for C++.
42822 2006-05-17 Bruno Haible <bruno@clisp.org>
42824 Cygwin portability.
42825 * progreloc.c (WIN32_NATIVE): Renamed from WIN32.
42827 2006-04-30 Bruno Haible <bruno@clisp.org>
42829 * progreloc.c: Include <mach-o/dyld.h> if available.
42830 (find_executable): Use _NSGetExecutablePath when possible.
42832 2006-05-06 Charles Wilson <cygwin@cwilson.fastmail.fm>
42834 * progreloc.c (maybe_executable) [CYGWIN]: Use the access()
42837 2005-12-29 Bruno Haible <bruno@clisp.org>
42839 * progreloc.c (set_program_name_and_installdir): Fix
42842 2005-12-04 Bruno Haible <bruno@clisp.org>
42844 Cygwin portability.
42845 * progreloc.c: Include <windows.h> also on Cygwin.
42846 (find_executable): Add support for Cygwin.
42847 (set_program_name_and_installdir): Handle also platforms with
42850 2006-07-11 Bruno Haible <bruno@clisp.org>
42852 * javacomp.c: Fix a comment.
42853 Reported by Jim Meyering.
42855 2006-04-30 Bruno Haible <bruno@clisp.org>
42857 * javacomp.h (compile_java_class): Add source_version,
42858 target_version arguments.
42859 * javacomp.c: Rewritten to choose only a compiler that
42860 respects the specified source_version and target_version.
42862 2006-06-27 Bruno Haible <bruno@clisp.org>
42864 Assume correct S_ISDIR macro.
42865 * mkdtemp.c: Remove test of STAT_MACROS_BROKEN.
42867 2006-07-22 Bruno Haible <bruno@clisp.org>
42869 * javaversion.h: New file, from GNU gettext.
42870 * javaversion.c: New file, from GNU gettext.
42871 * javaversion.java: New file, from GNU gettext.
42872 * javaversion.class: New file, from GNU gettext.
42874 2006-05-17 Bruno Haible <bruno@clisp.org>
42876 Cygwin portability.
42877 * javaexec.c (execute_java_class): Test for jview program
42880 2006-04-09 Bruno Haible <bruno@clisp.org>
42882 * fatal-signal.c: Don't include string.h.
42883 (at_fatal_signal): Use a copying loop instead of memcpy.
42885 2005-12-04 Bruno Haible <bruno@clisp.org>
42887 * csharpexec.c: Add support for 'clix' launcher (untested).
42888 (execute_csharp_using_sscli): New function.
42889 (execute_csharp_program): Call it.
42891 2006-06-21 Bruno Haible <bruno@clisp.org>
42893 Avoid warnings from recent versions of mcs.
42894 * csharpcomp.c (compile_csharp_using_mono): Don't use options
42895 -o, -L, -r any more. Use options documented since mcs-1.0
42896 instead. Similarly for -g.
42898 2005-07-09 Bruno Haible <bruno@clisp.org>
42900 * csharpcomp.c (compile_csharp_using_sscli): For -l option,
42902 Reported by Mark Junker <mjscod@gmx.de>.
42904 2006-06-17 Bruno Haible <bruno@clisp.org>
42906 * config.charset: Update for NetBSD 3.0.
42908 2006-05-17 Bruno Haible <bruno@clisp.org>
42910 Cygwin portability.
42911 * localcharset.c (WIN32_NATIVE): Renamed from WIN32.
42913 2006-05-16 Bruno Haible <bruno@clisp.org>
42915 * localcharset.c [CYGWIN]: Include <windows.h>.
42916 (get_charset_aliases): For Cygwin, return the same CPxxx
42917 aliases list as under WIN32.
42918 (locale_charset) [CYGWIN]: Try to retrieve the encoding from
42919 the environment variables. Fall back to GetACP().
42921 2006-04-05 Bruno Haible <bruno@clisp.org>
42923 * config.charset: Update Juan Manuel Guerrero's address.
42925 2005-02-12 Bruno Haible <bruno@clisp.org>
42927 * allocsa.h: Add extern "C" for C++.
42929 2005-02-10 Bruno Haible <bruno@clisp.org>
42931 * allocsa.h (sa_alignof): Define differently with AIX xlc, to
42932 avoid a bug of this compiler on AIX 3.2.5 dealing with enums.
42934 2006-07-22 Bruno Haible <bruno@clisp.org>
42936 * gettext.h: Update to GNU gettext-0.15.
42938 2006-07-22 Bruno Haible <bruno@clisp.org>
42940 * config/srclist.txt: Resync printf-args.c, vasnprintf.c,
42941 localcharset.c, mkdtemp.c, config.rpath, lib-ld.m4, lib-link.m4,
42942 lib-prefix.m4, longdouble.m4, ssize_t.m4.
42944 2006-07-21 Eric Blake <ebb9@byu.net>
42946 * modules/stdlib-safer: New file.
42947 * MODULES.html.sh (File stream based Input/Output): Add
42950 2006-07-21 Eric Blake <ebb9@byu.net>
42952 * lib/stdlib-safer.h: New file from coreutils, required by
42955 2006-07-20 Paul Eggert <eggert@cs.ucla.edu>
42957 * gnulib-tool (func_usage): Document --assume-autoconf='latest-stable'.
42959 2006-07-20 Bruno Haible <bruno@clisp.org>
42961 * gnulib-tool: Recognize new option --assume-autoconf.
42962 (autoconf_minversion): New variable.
42963 (func_get_filelist): Use it to decide whether to add onceonly_2_57.m4.
42965 2006-07-20 Bruno Haible <bruno@clisp.org>
42967 * MODULES.html.sh (func_all_modules): Add a missing func_begin_table.
42969 2006-07-19 Derek R. Price <derek@ximbiot.com>
42971 * lib/getaddrinfo.h: Don't define unimplemented AI_* flags.
42972 Reindent and repaginate.
42974 2006-07-19 Derek Price <derek@ximbiot.com>
42976 * doc/gnulib.texi (Libtool and Windows): Eliminate passive voice.
42979 2006-07-17 Bruno Haible <bruno@clisp.org>
42981 * modules/list: New file.
42982 * modules/array-list: New file.
42983 * modules/carray-list, modules/carray-list-tests: New files.
42984 * modules/linked-list, modules/linked-list-tests: New files.
42985 * modules/avltree-list, modules/avltree-list-tests: New files.
42986 * modules/rbtree-list, modules/rbtree-list-tests: New files.
42987 * modules/linkedhash-list, modules/linkedhash-list-tests: New files.
42988 * modules/avltreehash-list, modules/avltreehash-list-tests: New files.
42989 * modules/rbtreehash-list, modules/rbtreehash-list-tests: New files.
42990 * modules/oset: New file.
42991 * modules/array-oset: New file.
42992 * modules/avltree-oset, modules/avltree-oset-tests: New files.
42993 * modules/rbtree-oset, modules/rbtree-oset-tests: New files.
42994 * tests/test-carray_list.c: New file.
42995 * tests/test-linked_list.c: New file.
42996 * tests/test-avltree_list.c: New file.
42997 * tests/test-rbtree_list.c: New file.
42998 * tests/test-linkedhash_list.c: New file.
42999 * tests/test-avltreehash_list.c: New file.
43000 * tests/test-rbtreehash_list.c: New file.
43001 * tests/test-avltree_oset.c: New file.
43002 * tests/test-rbtree_oset.c: New file.
43003 * MODULES.html.sh (Container data structures): New section.
43005 2006-07-17 Bruno Haible <bruno@clisp.org>
43007 * m4/gl_list.m4: New file.
43009 2006-07-17 Bruno Haible <bruno@clisp.org>
43011 * lib/gl_list.h: New file.
43012 * lib/gl_list.c: New file.
43013 * lib/gl_array_list.h: New file.
43014 * lib/gl_array_list.c: New file.
43015 * lib/gl_carray_list.h: New file.
43016 * lib/gl_carray_list.c: New file.
43017 * lib/gl_linked_list.h: New file.
43018 * lib/gl_linked_list.c: New file.
43019 * lib/gl_anylinked_list1.h: New file.
43020 * lib/gl_anylinked_list2.h: New file.
43021 * lib/gl_avltree_list.h: New file.
43022 * lib/gl_avltree_list.c: New file.
43023 * lib/gl_anyavltree_list1.h: New file.
43024 * lib/gl_anyavltree_list2.h: New file.
43025 * lib/gl_rbtree_list.h: New file.
43026 * lib/gl_rbtree_list.c: New file.
43027 * lib/gl_anyrbtree_list1.h: New file.
43028 * lib/gl_anyrbtree_list2.h: New file.
43029 * lib/gl_anytree_list1.h: New file.
43030 * lib/gl_anytree_list2.h: New file.
43031 * lib/gl_linkedhash_list.h: New file.
43032 * lib/gl_linkedhash_list.c: New file.
43033 * lib/gl_anyhash_list1.h: New file.
43034 * lib/gl_anyhash_list2.h: New file.
43035 * lib/gl_avltreehash_list.h: New file.
43036 * lib/gl_avltreehash_list.c: New file.
43037 * lib/gl_rbtreehash_list.h: New file.
43038 * lib/gl_rbtreehash_list.c: New file.
43039 * lib/gl_anytreehash_list1.h: New file.
43040 * lib/gl_anytreehash_list2.h: New file.
43042 * lib/gl_oset.h: New file.
43043 * lib/gl_oset.c: New file.
43044 * lib/gl_array_oset.h: New file.
43045 * lib/gl_array_oset.c: New file.
43046 * lib/gl_avltree_oset.h: New file.
43047 * lib/gl_avltree_oset.c: New file.
43048 * lib/gl_rbtree_oset.h: New file.
43049 * lib/gl_rbtree_oset.c: New file.
43050 * lib/gl_anytree_oset.h: New file.
43052 2006-07-16 Paul Eggert <eggert@cs.ucla.edu>
43054 * m4/mkancesdirs.m4: New file.
43055 * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Mention dirchownmod.c,
43056 dirchownmod.h. Don't require AC_FUNC_ALLOCA, gl_AFS, gl_CHDIR_SAFER;
43057 no longer needed. Require gl_FUNC_LCHOWN, since dirchownmod.c needs
43060 2006-07-16 Paul Eggert <eggert@cs.ucla.edu>
43062 * lib/dirchownmod.c, lib/dirchownmod.h, lib/mkancesdirs.c:
43063 * lib/mkancesdirs.h: New files.
43064 * lib/mkdir-p.c: Don't include alloca.h, stdio.h, sys/types.h,
43065 unistd.h, string.h, chdir-safer.h, dirname.h, lchmod.h, lchown.h,
43066 save-cwd.h. Instead, include dirchownmod.h and mkancesdirs.h.
43067 (make_dir_parents): New args MAKE_ANCESTOR, OPTIONS, ANNOUNCE,
43068 MODE_BITS. Remove options VERBOSE_FMT_STRING, CWD_ERRNO. All
43069 callers changed. Revamp internals significantly, by not
43070 attempting to create directories that are temporarily more
43071 permissive than the final results. Do not attempt to use
43072 save_cwd/restore_cwd; it isn't worth it for mkdir and install.
43073 This removes some race conditions, fixes some bugs, and simplifies
43074 things. Use new dirchownmod function to do owner and mode changes.
43075 * lib/mkdir-p.h: Likewise.
43076 * lib/modechange.c (octal_to_mode): New function.
43077 (struct mode_change): New member mentioned.
43078 (make_node_op_equals): New arg mentioned. All callers changed.
43079 (mode_compile): Keep track of which mode bits the user has explicitly
43081 (mode_adjust): New arg DIR, so that we implement the X op correctly.
43082 New arg PMODE_BITS, to keep track of which mode bits the user
43083 mentioned; it treats S_ISUID and S_ISGID speciall.
43084 All callers changed.
43085 * lib/modechange.h: Likewise.
43087 2006-07-16 Paul Eggert <eggert@cs.ucla.edu>
43089 * MODULES.html.sh: Add mkancestors.
43090 * modules/mkancesdirs: New module.
43091 * modules/mkdir-p (Files): Remove lib/chdir-safer.c, lib/chdir-safer.h,
43092 lib/same-inode.h, m4/afs.m4, m4/chdir-safer.m4.
43093 The chdir-safer and afs files are now orphans; I'll remove them
43094 unless someone speaks up.
43095 Add lib/dirchownmod.c, lib/dirchownmod.h.
43096 (Depends-on): Remove alloca, chown, save-cwd, dirname.
43097 Add lchown, mkancesdirs.
43098 (Maintainer): Add self.
43100 2006-07-15 Karl Berry <karl@gnu.org>
43102 * gnulib-tool: help message wording/arrangement.
43104 2006-07-14 Simon Josefsson <jas@extundo.com>
43106 * doc/gnulib.texi (Libtool and Windows): New section.
43108 2006-07-12 Simon Josefsson <jas@extundo.com>
43110 * modules/gendocs (License): Fix license, approved by Karl.
43112 2006-07-12 Eric Blake <ebb9@byu.net>
43114 * MODULES.html.sh: Add gendocs.
43116 2006-07-11 Eric Blake <ebb9@byu.net>
43118 * modules/fdl: New module, to install doc/fdl.texi.
43119 * MODULES.html.sh: Add new section for documentation modules.
43120 * gnulib-tool: Avoid space-tab.
43121 (--doc-base): New option, to manage files from doc.
43123 2006-07-11 Eric Blake <ebb9@byu.net>
43125 * m4/absolute-header.m4: Fix comments to match recent change.
43127 2006-07-11 Eric Blake <ebb9@byu.net>
43129 * gnulib-tool: List --doc-base before --tests-base.
43131 2006-07-11 Derek R. Price <derek@ximbiot.com>
43133 * lib/glob.c: s/NAMLEN/_D_EXACT_NAMLEN/.
43135 2006-07-11 Bruno Haible <bruno@clisp.org>
43137 * README: Mention where to put documentation.
43139 2006-07-10 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
43141 * doc/functions.texi, gnulib-tool.texi, gnulib.texi: Fix some typos.
43143 2006-07-10 Paul Eggert <eggert@cs.ucla.edu>
43145 * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Like today's change
43148 2006-07-10 Paul Eggert <eggert@cs.ucla.edu>
43150 * m4/stdint.m4 (gl_STDINT_H): Like yesterday's change to
43151 absolute-header.m4. Also, set ABSOLUTE_STDINT_H to a string
43152 "no/such/file/stdint.h" when there is no such file, so that
43153 the resulting C code can be parsed by dodgy compilers.
43154 Problems reported by Bob Proulx.
43156 2006-07-10 Derek R. Price <derek@ximbiot.com>
43158 * lib/backupfile.c, dirfd.h, fts.c, getcwd.c, glob.c, glob_.h:
43159 Ignore the obsolescent !HAVE_DIRENT_H case. Consolidate NAMLEN
43160 macros into the GNU _D_EXACT_NAMLEN.
43161 * lib/savedir.c: Likewise.
43162 (savedirstream): Use _D_EXACT_NAMLEN in preference to strlen.
43164 2006-07-10 Derek R. Price <derek@ximbiot.com>
43165 and Paul Eggert <eggert@cs.ucla.edu>
43167 * m4/backupfile.m4, d-ino.m4, d-type.m4, dirfd.m4, fts.m4, getcwd.m4:
43169 Ignore the obsolescent !HAVE_DIRENT_H case. Consolidate NAMLEN
43170 macros into the GNU _D_EXACT_NAMLEN.
43172 2006-07-09 Paul Eggert <eggert@cs.ucla.edu>
43174 * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Use "" rather than <>
43175 around the absolute name, to work around a problem with the HP-UX
43176 11.23 native C compiler, reported by Bob Proulx.
43178 2006-07-09 Paul Eggert <eggert@cs.ucla.edu>
43180 * doc/maintain.texi, make-stds.texi: Sync from
43181 <http://savannah.gnu.org/projects/gnustandards>.
43183 2006-07-09 Paul Eggert <eggert@cs.ucla.edu>
43185 * build-aux/depcomp, build-aux/install-sh: Sync from Automake.
43187 2006-07-09 Jim Meyering <jim@meyering.net>
43189 * m4/glob.m4: Remove a doubled word in a comment.
43191 2006-07-09 Jim Meyering <jim@meyering.net>
43193 * lib/argp-pv.c: Remove a doubled word in a comment.
43194 * lib/check-version.c (check_version): Likewise.
43195 * lib/javacomp.c (compile_java_class): Likewise.
43197 2006-07-08 Paul Eggert <eggert@cs.ucla.edu>
43199 * gnulib-tool (func_get_filelist): Don't echo m4/onceonly_2_57.m4,
43200 for the benefit of people using Autoconf 2.60. If you want to
43201 support older Autoconf versions you can copy m4/onceonly_2_57.m4
43202 (or m4/onceonly.m4, if pre-2.57) manually.
43204 2006-07-08 Jim Meyering <jim@meyering.net>
43206 * m4/link-follow.m4: Remove one of two adjacent "whether"s in a
43208 * m4/getopt.m4: Remove one of two adjacent "your"s in a comment.
43209 * m4/regex.m4 (gl_REGEX): Remove one of two adjacent "the"s in a
43212 2006-07-08 Jim Meyering <jim@meyering.net>
43214 * lib/getndelim2.h (getndelim2): Remove doubled "after" in comment.
43216 2006-07-07 Simon Josefsson <jas@extundo.com>
43218 * tests/test-crc.c: Change expected crc value, the test vector
43219 were probably computed using the old broken crc.c?
43221 2006-07-06 Simon Josefsson <jas@extundo.com>
43223 * modules/sys_socket (Files): Add m4/sockpfaf.m4 (this module is
43224 now the canonical place for the M4 file).
43226 * modules/getaddrinfo (Files): Remove m4/sockpfaf.m4, we get it
43227 from the sys_socket dependency now.
43229 * modules/inet_pton (Files): Ditto.
43231 * modules/inet_ntop (Files): Ditto.
43233 2006-07-06 Ralf Wildenhues <Ralf.Wildenhues@gmx.de> (tiny change)
43235 * modules/getusershell (configure.ac): Use gl_FUNC_GETUSERSHELL,
43236 not gl_PREREQ_GETUSERSHELL.
43238 2006-07-06 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
43240 * m4/_inttypes_h.m4 (gl_INTTYPES_H): Use AC_CHECK_DECLS_ONCE
43241 with only one argument, for Autoconf 2.60.
43242 * m4/fileblocks.m4 (gl_PREREQ_FILEBLOCKS): AC_CHECK_DECLS_ONCE may
43243 expand to nothing, so add a shell command to avoid syntax error.
43244 * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
43246 2006-07-06 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
43248 * lib/strtod.c (strtod): cast the argument of tolower to unsigned char.
43250 2006-07-06 Paul Eggert <eggert@cs.ucla.edu>
43252 * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Don't check for getenv decl;
43253 no longer needed. Check for isblank decl.
43254 * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Don't check for getenv decl.
43255 * m4/regex.m4 (gl_PREREQ_REGEX): Dheck for isblank decl instead
43258 2006-07-06 Paul Eggert <eggert@cs.ucla.edu>
43260 * lib/getloadavg.c: Use __VMS, not VMS.
43261 * lib/getopt.c: Likewise.
43262 * lib/getpagesize.h: Likewise.
43263 * lib/glob.c: Remove most VMS cruft; it hasn't been tested for a while
43264 and probably does not work.
43266 2006-07-06 Paul Eggert <eggert@cs.ucla.edu>
43268 * lib/.cppi-disable: Add wcwidth.
43269 * lib/fnmatch.c (ISBLANK): Remove. All uses changed to isblank.
43270 (isblank) [! (defined isblank || HAVE_DECL_ISBLANK)]: New macro.
43271 (ISGRAPH): Remove. All uses changed to isgraph.
43272 (FOLD) [!defined _LIBC]: Remove special case.
43273 * lib/getdate.y (lookup_word): Remove no-longer-needed call to islower.
43274 * lib/regex_internal.h (isblank): Depend on HAVE_DECL_ISBLANK, not
43276 * lib/strftime.c (TOLOWER, TOUPPER) [!defined _LIBC]: Remove special
43279 2006-07-06 Jim Hyslop <jhyslop@dreampossible.ca> (tiny change)
43281 * lib/getaddrinfo.c: Changes to compile under MSVC6: changed
43282 '#if WIN32_NATIVE' to '#ifdef' & moved WSAAPI macro inside
43283 brackets. Other minor changes to suppress some compiler
43286 2006-07-06 Derek R. Price <derek@ximbiot.com>
43287 and Paul Eggert <eggert@cs.ucla.edu>
43289 * m4/backupfile.m4 (gl_BACKUPFILE): Check for dirent.h, instead
43290 of invoking obsolescent AC_HEADER_DIRENT macro.
43291 * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Likewise.
43292 * m4/d-type.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Likewise.
43293 * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
43294 * m4/fts.m4 (gl_FUNC_FTS_CORE): Likewise.
43295 * m4/getcwd.m4 (gl_PREREQ_GETCWD): Likewise.
43296 * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
43297 * m4/savedir.m4 (gl_SAVEDIR): Likewise.
43298 * m4/readdir.m4: Remove; no longer needed.
43300 2006-07-06 Derek R. Price <derek@ximbiot.com>
43301 and Paul Eggert <eggert@cs.ucla.edu>
43303 * lib/backupfile.c [HAVE_DIRENT_H && ! HAVE_NDIR_H]:
43304 Don't worry about this obsolete case any more.
43305 (HAVE_DIR): Remove. All uses removed; we now assume you can read
43307 * lib/dirfd.h [HAVE_DIRENT_H && ! HAVE_NDIR_H]: Don't
43308 worry about this obsolete case any more.
43309 * lib/fts.c: Likewise.
43310 * lib/getcwd.c: Likewise.
43311 * lib/glob.h: Likewise.
43312 * lib/savedir.c: Likewise.
43314 2006-07-05 Paul Eggert <eggert@cs.ucla.edu>
43316 * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Use AC_CHECK_DECLS_ONCE
43317 rather than AC_CHECK_DECLS for strtoimax and strtoumax.
43318 * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Remove; no longer
43321 * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
43322 * m4/strtoul.m4 (gl_PREREQ_STRTOUL): Likewise.
43323 * m4/exclude.m4 (gl_EXCLUDE): Don't check for isascii; no longer
43325 * m4/getdate.m4 (gl_GETDATE): Likewise.
43326 * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Likewise.
43327 * m4/memcasecmp.m4 (gl_MEMCASECMP): Likewise.
43328 * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
43329 * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
43330 * m4/strtoul.m4 (gl_PREREQ_STRTOUL): Likewise.
43331 * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
43332 * m4/exclude.m4 (gl_EXCLUDE): Don't require AC_C_INLINE; no longer
43335 2006-07-05 Paul Eggert <eggert@cs.ucla.edu>
43337 * lib/memcasecmp.c: Include <limits.h>.
43338 (memcasecmp): Don't assume UCHAR_MAX <= INT_MAX.
43339 * lib/strtod.c (strtod): Don't assume isspace works on negative chars.
43340 Don't assume isdigit succeeds only on '0' through '9'.
43342 2006-07-05 Eric Blake <ebb9@byu.net>
43344 * modules/getaddrinfo (Depends-on): Add snprintf.
43346 2006-07-05 Eric Blake <ebb9@byu.net>
43348 * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Use gl_HEADER_SYS_SOCKET
43349 to avoid 'header present but could not be compiled' on cygwin.
43351 2006-07-05 Eric Blake <ebb9@byu.net>
43353 * lib/getaddrinfo.h (NI_NUMERICHOST, NI_NUMERICSERV): Define if
43354 missing from netdb.h.
43355 * lib/getaddrinfo.c (includes): Include inet_ntop and snprintf.
43357 2006-07-05 Derek R. Price <derek@ximbiot.com>
43359 * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Don't require AC_HEADER_STDC;
43361 * m4/exclude.m4 (gl_EXCLUDE): Likewise.
43362 * m4/getdate.m4 (gl_GETDATE): Likewise.
43363 * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Likewise.
43364 * m4/memcasecmp.m4 (gl_MEMCASECMP): Likewise.
43365 * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
43366 * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
43367 * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
43369 2006-07-05 Derek R. Price <derek@ximbiot.com>
43371 * lib/exclude.c (IN_CTYPE_DOMAIN, is_space): Remove; no longer needed.
43372 All uses of is_space replaced by isspace.
43373 * lib/exit.h: Don't talk about STDC_HEADERS.
43374 * lib/fnmatch.c (ISASCII): Remove; no longer needed. All uses removed.
43375 (ISPRINT, ISDIGIT, ISALNUM, ISALPHA, ISCNTRL, ISLOWER, ISPUNCT):
43376 (ISSPACE, ISUPPER, ISXDIGIT): Remove; no longer needed. All uses
43377 replaced by isprint etc.
43378 * lib/getdate.y (IN_CTYPE_DOMAIN, ISSPACE, ISALPHA, ISLOWER): Likewise.
43379 * lib/getusershell.c (IN_CTYPE_DOMAIN, ISSPACE): Likewise.
43380 * lib/memcasecmp.c (IN_CTYPE_DOMAIN, ISLOWER, TOUPPER): Likewise.
43381 * lib/strtod.c (IN_CTYPE_DOMAIN, ISSPACE, ISDIGIT, TOLOWER): Likewise.
43382 * lib/strtol.c (IN_CTYPE_DOMAIN): Likewise.
43383 * lib/xstrtol.c (IN_CTYPE_DOMAIN, ISSPACE): Likewise.
43385 2006-07-05 Bruno Haible <bruno@clisp.org>
43387 * m4/strndup.m4 (gl_FUNC_STRNDUP): When cross-compiling, check whether
43388 the function exists, before testing against AIX.
43389 Reported by Martin Lambers <marlam@marlam.de>.
43391 2006-07-04 Paul Eggert <eggert@cs.ucla.edu>
43393 * modules/cycle-check (lib_SOURCES): Add same-inode.h.
43394 From Mark D. Baushke.
43396 2006-07-04 Paul Eggert <eggert@cs.ucla.edu>
43398 * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Prepend three slashes
43399 to the absolute name, not just one, to bypass Sun C 5.8's
43400 "warning: #include of /usr/include/... may be non-portable".
43402 2006-07-04 Eric Blake <ebb9@byu.net>
43404 * modules/dirname-tests: New test module.
43405 * tests/test-dirname.c: New file, replacing dirname.c
43406 TEST_DIRNAME section that was recently deleted.
43408 2006-07-04 Bruno Haible <bruno@clisp.org>
43410 Assume ANSI C header files and <ctype.h> functions.
43411 * lib/mbswidth.c (IN_CTYPE_DOMAIN, ISPRINT, ISCNTRL): Remove macros.
43412 (mbsnwidth): Use isprint, iscntrl instead.
43414 2006-07-03 Paul Eggert <eggert@cs.ucla.edu>
43416 Merge from coreutils.
43417 * MODULES.html.sh: Add xstrtold.
43418 * modules/xstrtold: New file.
43419 * modules/cycle-check (Files): Add lib/same-inode.h.
43420 * modules/dirname (Files): Add m4/double-slash-root.m4.
43421 * modules/getcwd (Files): Add m4/getcwd-abort-bug.m4.
43422 * modules/mkdir-p (Files): Add lib/same-inode.h.
43423 * modules/same (Files): Add lib/same-inode.h.
43425 2006-07-03 Paul Eggert <eggert@cs.ucla.edu>
43427 * m4/absolute-header.m4: Renamed from full-header-path.m4.
43428 This is to keep the terminology clean; POSIX talks about
43429 "absolute pathnames", not "full pathnames", but the GNU
43430 Coding Standards say to use "path" for something else;
43431 so use "absolute" to keep both sides happy.
43432 (gl_ABSOLUTE_HEADER): Renamed from gl_FULL_HEADER_PATH.
43433 Set gl_absolute_header, not gl_full_header_path.
43434 Set gl_cv_absolute_<header>, not gl_full_path_<header>.
43435 Define ABSOLUTE_<HEADER>, not FULL_PATH_<HEADER>.
43438 Merge from coreutils.
43440 2006-06-30 Paul Eggert <eggert@cs.ucla.edu>
43442 * m4/c-strtod.m4 (gl_C_STRTOLD): Add c-strtod.c to LIBSOURCES.
43443 Require gl_USE_SYSTEM_EXTENSIONS, not gl_C_STRTOD, since we don't
43444 want to require the building of c-strtod.o.
43445 * m4/lib-check.m4 (cu_LIB_CHECK): Remove SEQ_LIBM, since seq no longer
43446 needs -lm directly.
43447 * m4/xstrtod.m4 (gl_XSTRTOLD): New macro.
43449 2006-06-19 Paul Eggert <eggert@cs.ucla.edu>
43451 * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Prefer binutils's
43452 --as-needed option if available. Problem reported by Albert Chin in
43453 <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00114.html>.
43454 However, use -Wl,--as-needed, not bare --as-needed, since HP-UX 11.11
43455 cc merely issues a bunch of annoying warnings for --as-needed
43456 (this problem was reported by Bob Proulx). Also, try linking with
43457 -lm to detect a bug in binutils 2.16 (this problem was reported
43458 by Ralf Wildenhues).
43460 2006-06-18 Jim Meyering <jim@meyering.net>
43462 Test for a bug that causes glibc's getcwd to suffer a failed assertion.
43463 * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): New file and
43465 * m4/getcwd.m4 (gl_FUNC_GETCWD): If we detect support for getcwd_null,
43466 also check for glibc-2.4's abort-inducing bug.
43468 * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Fix typo.
43469 Low-probability clean-up should be to use rmdir to get rid of
43470 the just-created directory, not unlink.
43472 * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): If ftruncate is missing, make
43473 configure fail, and request a bug report to inform us about it.
43474 Add a comment that, barring reports to the contrary, in 2007 we'll
43475 assume ftruncate is universally available.
43477 2006-04-17 Paul Eggert <eggert@cs.ucla.edu>
43479 * m4/filemode.m4 (gl_FILEMODE): Check for strmode declaration.
43481 2006-03-12 Jim Meyering <jim@meyering.net>
43483 * m4/chdir-safer.m4 (gl_CHDIR_SAFER): Add same-inode.h to the list.
43484 * m4/cycle-check.m4 (gl_CYCLE_CHECK): Likewise.
43485 * m4/same.m4 (gl_SAME): Likewise.
43486 * m4/root-dev-ino.m4 (gl_ROOT_DEV_INO): Likewise.
43488 2006-03-11 Eric Blake <ebb9@byu.net>
43490 * m4/double-slash-root.m4: New file, provides gl_DOUBLE_SLASH_ROOT.
43491 * m4/dirname.m4 (gl_DIRNAME): Use gl_DOUBLE_SLASH_ROOT.
43492 * m4/dos.m4 (FILE_SYSTEM_PREFIX_LEN): Move from here to dirname.h.
43493 (FILE_SYSTEM_DRIVE_PREFIX_CAN_BE_RELATIVE): New define.
43495 2006-07-03 Paul Eggert <eggert@cs.ucla.edu>
43497 * lib/stdint_.h: Include <sys/types.h> after @FULL_PATH_STDINT_H@, for
43498 MacOS X 10.4.6. Don't mention <sys/int_types.h>. Problems
43499 reported by Mark D. Baushke, one in
43500 <http://lists.gnu.org/archive/html/bug-gnulib/2006-07/msg00015.html>.
43502 Merge from coreutils.
43504 * lib/.cppi-disable: Add stdint_.h.
43505 * lib/.cvsignore: Add stdint.h.
43507 2006-06-30 Paul Eggert <eggert@cs.ucla.edu>
43509 * lib/xstrtod.c (XSTRTOD, DOUBLE): New macros, so that we can support
43510 both double and long double versions.
43511 (XSTRTOD): Renamed from xstrtod. Use DOUBLE internally.
43512 * lib/xstrtold.c: New file.
43513 * lib/xstrtod.h (xstrtold): New decl.
43515 2006-05-22 Paul Eggert <eggert@cs.ucla.edu>
43517 * lib/filemode.c (setst): Remove.
43518 (strmode): Rewrite to avoid setst. This makes the code shorter,
43519 (arguably) clearer, and the generated code is a bit smaller on my
43520 Debian GNU/Linux stable x86 host.
43522 2006-04-17 Paul Eggert <eggert@cs.ucla.edu>
43524 * lib/filemode.c: Include "filemode.h" first, to test the interface.
43525 Assume that filemode.h includes sys/types.h and sys/stat.h.
43526 (HAVE_ST_DM_MODE): New macro, moved here from ls.c.
43527 (ftypelet): Reorder to put common cases first, for efficiency.
43528 Add 'P', 'w'. Remove 'M', since it's now the caller's responsibility
43530 (strmode): Renamed from mode_string, and now stores 12 bytes instead
43531 of 10, for compatibility with FreeBSD. All callers changed.
43532 (filemodestring): Now stores 12 bytes instead of 10, and sets file
43533 types that can't be deduced solely from st_mode. First arg is now a
43535 * lib/filemode.h (HAVE_DECL_STRMODE): Include <string.h> for strmode.
43536 (strmode): Renamed from mode_string.
43537 (filemodestring): New decl.
43538 * lib/stat-macros.h: Don't undef S_ISDOOR, since it's never buggy.
43539 (S_ISDOOR): Don't bother with S_IFDOOR, since that code is never
43541 (S_ISPORT, S_ISWHT): New macros, if not already defined.
43543 2006-04-12 Paul Eggert <eggert@cs.ucla.edu>
43545 * lib/fsusage.c: Don't include <inttypes.h> or <stdint.h>, since
43546 fsusage.h now does that. Include fsusage.h first, to test interface.
43547 Prefer statvfs if it works, since it's blessed by POSIX. Attempt
43548 at most one method (the old code could have generated decls that
43549 didn't conform to C89, not that this was ever exercised).
43550 * lib/fsusage.h: Include <inttypes.h> and <stdint.h> if they exist.
43552 2006-03-19 Jim Meyering <jim@meyering.net>
43554 Work even in a chroot where d_ino values for entries in "/"
43555 don't match the stat.st_ino values for the same names.
43556 * lib/getcwd.c (__getcwd): When no d_ino value matches the target inode
43557 number, iterate through all entries again, using lstat instead.
43558 Reported by Kenshi Muto in http://bugs.debian.org/355810, and by
43559 Zouhir Hafidi in https://bugzilla.redhat.com/bugzilla/190656.
43561 * lib/getcwd.c (__getcwd): Clarify a comment.
43562 Use memcpy in place of a call to strcpy.
43564 2006-03-12 Jim Meyering <jim@meyering.net>
43566 * lib/fts-cycle.c (leave_dir): If cycle-check's saved dev-ino pair
43567 matches that of the current directory (which we're about to chdir ".."
43568 out of), then save the dev-ino of the parent, instead.
43570 * lib/same-inode.h (SAME_INODE): New file/macro.
43571 * lib/chdir-safer.c (SAME_INODE): Remove definition.
43572 Include "same-inode.h", instead.
43573 * lib/same.c: Likewise.
43574 * lib/cycle-check.h: Include "same-inode.h".
43575 (CYCLE_CHECK_REFLECT_CHDIR_UP): Define.
43576 * lib/cycle-check.c (SAME_INODE): Remove definition.
43577 * lib/root-dev-ino.h: Include "same-inode.h".
43579 2006-03-11 Eric Blake <ebb9@byu.net>
43581 * lib/same.c (same_name): s/base_name/last_component/
43582 * lib/backupfile.c (check_extension, numbered_backup): Likewise.
43583 * lib/filenamecat.c (file_name_concat): Likewise.
43585 2006-03-11 Eric Blake <ebb9@byu.net>,
43586 Paul Eggert <eggert@cs.ucla.edu>
43588 * lib/dirname.h (FILE_SYSTEM_PREFIX_LEN): Move here from dos.m4.
43589 [FILE_SYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX]: Don't treat 1: as a
43591 (IS_ABSOLUTE_FILE_NAME): Treat all drive letters as absolute on
43592 platforms like cygwin with FILE_SYSTEM_DRIVE_PREFIX_IS_ABSOLUTE.
43593 (last_component): New method.
43594 * lib/dirname.c (dir_len): Determine when drive letters need a
43595 subsequent slash. Preserve // when it is special.
43596 (dir_name): Don't append dot when drive letter is absolute.
43597 [TEST_DIRNAME]: Move into a full-blown gnulib test.
43598 * lib/basename.c (base_name): New semantics - malloc the result.
43599 Preserve // when it is special. Preserve relative files that look
43600 like drive letters.
43601 (base_len): Preserve // when it is special.
43602 (last_component): New method, similar to old base_name semantics.
43603 * lib/stripslash.c (strip_trailing_slashes): Use last_component, not
43604 base_name. Strip redundant slashes from ///.
43606 2006-07-03 Jim Meyering <jim@meyering.net>
43608 * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Abort if this
43609 macro is used before the first cycle_check call.
43611 2006-07-03 Eric Blake <ebb9@byu.net>
43613 * modules/dirname (Depends-on): Add xstrndup.
43615 2006-07-02 Paul Eggert <eggert@cs.ucla.edu>
43617 * m4/stdint.m4 (gl_STDINT_H): Use more-mnemonic identifiers for
43618 test cases, so that config.log is a bit easier to follow.
43620 2006-07-02 Paul Eggert <eggert@cs.ucla.edu>
43622 * lib/stdint_.h (intmax_t, uintmax_t): Prefer long to long long if
43623 both are 64 bits, since this seems to be the tradition, and this
43624 prevents gcc -Wformat from warning about usages with PRIuMAX. If
43625 we ever run into a host that prefers long long to long in this
43626 case, we'll need another configure-time test. Problem reported by
43629 2006-07-02 Eric Blake <ebb9@byu.net>
43631 * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Simplify by using AC_CHECK_DECLS.
43633 2006-07-01 Paul Eggert <eggert@cs.ucla.edu>
43635 * modules/inttypes (Depends-on): No longer depends on stdint.
43636 * modules/stdint (Description): Say more about assumptions.
43637 Say that the fast types might differ. Say macros are used.
43638 (Files): Remove m4/size_max.m4, m4/wchar_t.m4. Add m4/longlong.m4.
43639 (Makefile.am): Revise list of substituted symbols to match
43641 * modules/stdint-tests (Files): Add m4/wchar_t.m4, m4/wint_t.m4.
43642 (configure.ac): Add gt_TYPE_WCHAR_T, gt_TYPE_WINT_T.
43643 * tests/test-stdint.c (verify_same_types)
43644 [! (__GNUC__ >= 2 && DO_PEDANTIC)]: Put in a decl, so that
43645 the code conforms to C99/C89.
43646 Test for WCHAR_MIN and WCHAR_MAX only if HAVE_WCHAR_T.
43647 Test for WINT_MIN and WINT_MAX only if HAVE_WINT_T.
43649 2006-07-01 Paul Eggert <eggert@cs.ucla.edu>
43651 * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Backport from Autoconf 2.60,
43652 but fix a bug, by requiring at least 64 bits.
43653 * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Likewise.
43654 * m4/longlong.m4 (gl_AC_TYPE_LONG_LONG): Now just call
43655 AC_TYPE_LONG_LONG_INT. This macro is obsolete and will go soon.
43656 * m4/ulonglong.m4 (gl_AC_TYPE_UNSIGNED_LONG_LONG) Likewise.
43658 * m4/stdint.m4 (gl_STDINT_H): Rewrite to accommodate stdint_.h
43659 changes. Make 2.59 a prerequisite. Check and substitute for
43660 HAVE_LONG_LONG_INT. Rely on Autoconf to check for stdint.h and
43661 inttypes.h. Do not use special include files; just use the
43662 defaults. Check for sys/inttypes.h and sys/bitypes.h in the usual
43663 way now. Remove no-longer-needed tests for HAVE_LONG_64BIT,
43664 HAVE_LONG_LONG_64BIT, int8_t, int16_t, int32_t, int64_t, uint8_t,
43665 uint16_t, uint32_t uint64_t, int_least8_t, int_least16_t,
43666 int_least32_t, int_least64_t, uint_least8_t, uint_least16_t,
43667 uint_least32_t, uint_least64_t, int_fast8_t, int_fast16_t,
43668 int_fast32_t, int_fast64_t, uint_fast8_t uint_fast16_t,
43669 uint_fast32_t, uint_fast64_t, intptr_t, uintptr_t, intmax_t,
43670 uintmax_t, INT8_MIN, INT8_MAX, UINT8_MAX, INT16_MIN, INT16_MAX,
43671 UINT16_MAX, INT32_MIN, INT32_MAX, UINT32_MAX, INT64_MIN,
43672 INT64_MAX, UINT64_MAX, INT_LEAST8_MIN, INT_LEAST8_MAX,
43673 UINT_LEAST8_MAX, INT_LEAST16_MIN, INT_LEAST16_MAX,
43674 UINT_LEAST16_MAX, INT_LEAST32_MIN, INT_LEAST32_MAX,
43675 UINT_LEAST32_MAX, INT_LEAST64_MIN, INT_LEAST64_MAX,
43676 UINT_LEAST64_MAX, INT_FAST8_MIN, INT_FAST8_MAX, UINT_FAST8_MAX,
43677 INT_FAST16_MIN, INT_FAST16_MAX, UINT_FAST16_MAX, INT_FAST32_MIN,
43678 INT_FAST32_MAX, UINT_FAST32_MAX, INT_FAST64_MIN, INT_FAST64_MAX,
43679 UINT_FAST64_MAX, INTPTR_MIN, INTPTR_MAX, UINTPTR_MAX, INTMAX_MIN,
43680 INTMAX_MAX, UINTMAX_MAX, PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN,
43681 SIG_ATOMIC_MAX, SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN,
43682 WINT_MAX. Check for C99 conformance more strictly, by detecting
43683 bugs in glibc 2.4, Solaris 10, and OpenBSD 3.9. On the other hand do
43684 not check for things that C99 does not require, e.g., int8_t. If
43685 a test isn't needed unless <stdint.h> isn't working, and is
43686 unlikely to be needed for any other reason, then don't do it
43687 unless <stdint.h> isn't working. Do not check for ptrdiff_t or
43688 size_t, since we assume C89 freestanding at least. Do not check
43689 for sig_atomic_t, wchar_t, or wint_t, since the code now does
43690 the right thing even if the types are not defined. Instead use:
43691 (gl_STDINT_TYPE_PROPERTIES): New macro.
43692 (gl_HEADER_STDINT_H, gl_HEADER_INTTYPES_H): Remove. Don't bother
43693 testing whether <sys/types.h> clashes, as Autoconf does this for
43694 us now. All uses removed.
43695 (gl_STDINT_CHECK_TYPES, gl_STDINT_MISSING_BOUND):
43696 (gl_STDINT_MISSING_BOUNDS, gl_STDINT_MISSING_BOUNDS2):
43697 (gl_CHECK_TYPE_SAME):
43698 Remove; no longer needed.
43699 (gl_STDINT_BITSIZEOF): Don't bother to check whether the type
43700 exists, since we'll return 0 anyway in that case.
43701 (gl_INTEGER_TYPE_SUFFIX, gl_STDINT_INCLUDES): New macros.
43703 2006-07-01 Paul Eggert <eggert@cs.ucla.edu>
43705 * lib/stdint_.h (_GL_STDINT_H): Renamed from _STDINT_H, to avoid
43706 possible collision with system files.
43707 (<stdio.h>, <time.h>, <wchar.h>) [defined __cplusplus && ! defined
43708 __STDC_CONSTANT_MACROS)]: Do not include, since we don't need
43709 WCHAR_MIN and WCHAR_MAX in this case.
43710 (<stddef.h>): Do not include; no longer needed.
43711 (<sys/types.h>): Include if @HAVE_SYS_TYPES_H@, not if
43712 (defined(__OpenBSD__) || defined(__bsdi__) || defined(__sgi)).
43713 (<sys/inttypes.h>): Include if @HAVE_SYS_INTTYPES_H@ &&
43714 !@HAVE_INTTYPES_H@, not if (defined(__FreeBSD__)
43715 && (__FreeBSD__ >= 3) && (__FreeBSD__ <= 4)).
43716 (__STDINT_H__) [@HAVE_STDINT_H@ && defined __sgi && ! defined
43717 __c99]: Define, to work around IRIX <stdint.h> incompatibility.
43718 (@FULL_PATH_STDINT_H@) [!(defined(__sgi) && @HAVE_INTTYPES_H@ &&
43719 !defined(__c99))]: Include in this case too, since it's harmless
43721 (<inttypes.h>) [@HAVE_INTTYPES_H@]: Include, since it's no longer
43722 dangerous to do so.
43723 (@FULL_PATH_INTTYPES_H@) [(defined(__hpux) || defined(_AIX)) &&
43724 @HAVE_INTTYPES_H@]: Do not include, since we now include <inttypes.h>.
43725 (_STDINT_MIN, _STDINT_MAX): New macros.
43726 (int8_t, uint8_t, int16_t, uint16_t, int32_t, uint32_t, int64_t):
43727 (uint64_t, int_least8_t, uint_least8_t, int_least16_t):
43728 (uint_least16_t, int_least32_t, uint_least32_t, int_least64_t):
43729 (uint_least64_t, int_fast8_t, uint_fast8_t, int_fast16_t):
43730 (uint_fast16_t, int_fast32_t, uint_fast32_t, int_fast64_t):
43731 (uint_fast64_t, intptr_t, uintptr_t, intmax_t, uintmax_t): Now
43732 macros, not typedefs; this simplifies things quite a bit.
43733 Use long int for all types narrower than int64_t.
43734 (intmax_t, uintmax_t, INTMAX_C, UINTMAX_C):
43735 Define in terms of long long int or int64_t or long int,
43736 not int64_t or int32_t. This saves some compile-time testing.
43737 (INT8_MIN, INT8_MAX, UINT8_MAX, INT16_MIN, INT16_MAX, UINT16_MAX):
43738 (INT32_MIN, INT32_MAX, UINT32_MAX, INT64_MIN, INT64_MAX):
43739 (UINT64_MAX, INT_LEAST8_MIN, INT_LEAST8_MAX, UINT_LEAST8_MAX):
43740 (INT_LEAST16_MIN, INT_LEAST16_MAX, UINT_LEAST16_MAX):
43741 (INT_LEAST32_MIN, INT_LEAST32_MAX, UINT_LEAST32_MAX):
43742 (INT_LEAST64_MIN, INT_LEAST64_MAX, UINT_LEAST64_MAX, INT_FAST8_MIN):
43743 (INT_FAST8_MAX, UINT_FAST8_MAX, INT_FAST16_MIN, INT_FAST16_MAX):
43744 (UINT_FAST16_MAX, INT_FAST32_MIN, INT_FAST32_MAX, UINT_FAST32_MAX):
43745 (INT_FAST64_MIN, INT_FAST64_MAX, UINT_FAST64_MAX, INTPTR_MIN):
43746 (INTPTR_MAX, UINTPTR_MAX, INTMAX_MIN, INTMAX_MAX, UINTMAX_MAX):
43747 (PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX):
43748 (SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN, WINT_MAX):
43749 undef any previous version and define our own version, for
43750 simplicity and consistency with the new macros for types.
43751 (PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX):
43752 (SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN, WINT_MAX):
43753 Simplify definitions by using _STDINT_MIN and _STDINT_MAX
43754 where appropriate. Rely on new symbols @PTRDIFF_T_SUFFIX@,
43755 @SIG_ATOMIC_T_SUFFIX@, @SIZE_T_SUFFIX@, @WCHAR_T_SUFFIX@,
43756 @WINT_T_SUFFIX@ to keep things simple here.
43757 (UINT8_C, UINT16_C, UINT32_C, INT64_C, UINT64_C):
43758 Simplify by assuming typical 8/16/32/64 host, since we're
43759 already doing that elsewhere anyway.
43760 Use (LONG_MAX >> 31 >> 31 == 1) rather than @HAVE_LONG_64BIT@,
43761 and assume long long int is 64 bits if available. This
43762 speeds up 'configure'.
43764 2006-07-01 Eric Blake <ebb9@byu.net>
43766 * m4/stdarg.m4 (gl_STDARG_H): Use proper AH_VERBATIM.
43767 Reported by Andreas Buening.
43769 2006-07-01 Eric Blake <ebb9@byu.net>
43771 * m4/stdarg.m4 (gl_STDARG_H): Properly parenthesize gl_va_copy.
43773 2006-06-30 Jim Hyslop <jhyslop@dreampossible.ca> (tiny change)
43775 * lib/getaddrinfo.c: fixed typo
43777 2006-06-29 Jim Meyering <jim@meyering.net>
43779 * modules/strftime (Maintainer): Add my name, since with the
43780 FPRINTFTIME changes strftime.c has forked from glibc.
43782 2006-06-29 Eric Blake <ebb9@byu.net>
43784 * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Use AC_C_INLINE.
43786 2006-06-29 Eric Blake <ebb9@byu.net>
43788 * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): New file.
43790 2006-06-29 Eric Blake <ebb9@byu.net>
43792 * lib/stat_.h: New file.
43794 2006-06-29 Eric Blake <ebb9@byu.net>
43796 * lib/stat_.h (rpl_mkdir): Declare inline, to avoid warnings about
43797 unused static function.
43799 2006-06-29 Eric Blake <ebb9@byu.net>
43801 * doc/functions.texi (Function Portability): Document missing lstat
43804 2006-06-29 Eric Blake <ebb9@byu.net>
43806 * MODULES.html.sh: Add sys_stat.
43807 * modules/sys_stat: New module.
43808 * modules/mkstemp (Depends-on): Add sys_stat.
43810 2006-06-29 Derek R. Price <derek@ximbiot.com>
43812 * m4/strftime.m4: Don't call AC_FUNC_STRFTIME.
43814 2006-06-29 Derek R. Price <derek@ximbiot.com>
43816 * m4/c-bs-a.m4: Removed.
43818 2006-06-29 Derek R. Price <derek@ximbiot.com>
43820 * lib/strftime.c: Assume strftime() exists.
43822 2006-06-29 Derek Price <derek@ximbiot.com>
43824 * modules/c-bs-a: Removed - \a is C89.
43825 * MODULES.html.sh: Remove c-bs-a.
43827 2006-06-29 Bruno Haible <bruno@clisp.org>
43829 * modules/wcwidth (License): Change to LGPL.
43831 2006-06-28 Simon Josefsson <jas@extundo.com>
43833 * tests/test-getaddrinfo.c: Test getnameinfo too. Call WSAStartup
43836 * modules/getaddrinfo (Depends-on): Add inet_ntop, needed by
43839 2006-06-28 Simon Josefsson <jas@extundo.com>
43841 * m4/getaddrinfo.m4: Look for getnameinfo prototypes too.
43843 2006-06-28 Simon Josefsson <jas@extundo.com>
43845 * lib/getaddrinfo.c: Try to load ws2_32.dll on Windows, to find the
43846 functions there. It will succeed on Windows XP, but on Windows
43847 2000 and (presumably) earlier, it will fail, and use the internal
43849 (use_win32_p): New function.
43850 (getaddrinfo): Use strtoul on servname, to support numeric ports.
43851 Support AI_NUMERICSERV to disable getservbyname.
43852 (getnameinfo): New function, only supports
43853 NI_NUMERICHOST|NI_NUMERICSERV for now.
43855 * lib/getaddrinfo.h: Test and check for AI_* flags separately, MinGW
43856 only have some of them. Add AI_NUMERICSERV. Add prototype for
43859 2006-06-28 Eric Blake <ebb9@byu.net>
43861 * modules/wcwidth: New file.
43862 * modules/mbchar (Depends-on): Add wcwidth.
43863 * modules/mbswidth (Depends-on): Add wcwidth.
43864 * MODULES.html.sh: Add wcwidth.
43866 2006-06-28 Eric Blake <ebb9@byu.net>
43868 * m4/mbswidth.m4 (gl_MBSDWIDTH): Move wcwidth from here...
43869 * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): ...to this new file.
43871 2006-06-28 Eric Blake <ebb9@byu.net>
43873 * lib/xvasprintf.h: Fix comments.
43875 2006-06-28 Eric Blake <ebb9@byu.net>
43877 * lib/mbchar.h (wcwidth): Include wcwidth.h.
43878 * lib/mbswidth.c (wcwidth): Move from here...
43879 * lib/wcwidth.h: ...to this new file.
43881 2006-06-28 Derek R. Price <derek@ximbiot.com>
43883 * m4/savedir.m4: Remove AC_FUNC_CLOSEDIR_VOID requirement.
43885 * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Don't require AC_C_CONST, since
43887 * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME): Likewise.
43889 2006-06-28 Derek R. Price <derek@ximbiot.com>
43891 * lib/savedir.c (CLOSEDIR): Remove. All uses changed to closedir.
43892 Autoconf 2.60 says this stuff was obsolete.
43894 2006-06-28 Bruno Haible <bruno@clisp.org>
43896 * modules/wcwidth (Files): Add m4/wchar_t.m4.
43898 2006-06-28 Bruno Haible <bruno@clisp.org>
43900 * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Also require AC_C_INLINE and
43903 2006-06-28 Bruno Haible <bruno@clisp.org>
43905 * lib/wcwidth.h: Declare nothing if !HAVE_WCHAR_T. Provide a fallback
43906 declaration for wcwidth.
43907 * lib/mbswidth.c: Restore the includes of <wchar.h> and <wctypes.h>.
43909 2006-06-28 Bruno Haible <bruno@clisp.org>
43911 * lib/mkdtemp.c [MINGW]: Include <io.h>.
43912 (mkdir): Define using _mkdir.
43914 2006-06-28 Bruno Haible <bruno@clisp.org>
43916 * lib/getaddrinfo.h: Fix POSIX URL.
43917 * lib/getaddrinfo.c (WIN32_NATIVE): New macro. Use it instead of
43919 (use_win32_p): Make static.
43920 (getaddrinfo): Reject service name if it is empty or does not consist
43921 solely of decimal digits, or if its value is > 65535.
43922 (getnameinfo): Remove useless casts.
43924 2006-06-27 Simon Josefsson <jas@extundo.com>
43926 * modules/sys_select: New file, suggested by Bruno Haible, Paul
43927 Eggert and Martin Lambers.
43929 2006-06-27 Simon Josefsson <jas@extundo.com>
43931 * m4/sys_select_h.m4: New file, suggested by Bruno Haible, Paul
43932 Eggert and Martin Lambers.
43934 2006-06-27 Bruno Haible <bruno@clisp.org>
43936 * m4/stdint.m4 (gl_STDINT_BITSIZEOF): For nonexistent types, set the
43937 result to 0, not to empty.
43938 Reported by Martin Neitzel <neitzel@sco.gaertner.de>.
43940 2006-06-27 Bruno Haible <bruno@clisp.org>
43942 * lib/stdint_.h (intmax_t, uintmax_t): Undefine before typedef.
43944 2006-06-26 Simon Josefsson <jas@extundo.com>
43946 * m4/inet_ntop.m4: Don't check for sys/types.h, we assume it is
43949 2006-06-26 Paul Eggert <eggert@cs.ucla.edu>
43951 * lib/base64.c (B64): Use _ as the formal parameter, not x, to avoid
43952 bug in IBM C V6 for AIX. Problem reported by Larry Jones in
43953 <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00181.html>.
43955 2006-06-26 Mark D. Baushke <mdb@gnu.org>
43957 * m4/stdint.m4 (gl_STDINT_H): Treat BSD/OS like OpenBSD.
43959 2006-06-26 Bruno Haible <bruno@clisp.org>
43961 * modules/stdint (Makefile.am): Also substitute HAVE_WCHAR_H.
43963 2006-06-26 Bruno Haible <bruno@clisp.org>
43965 * m4/stdint.m4 (gl_STDINT_H): Test also for <wchar.h>.
43967 2006-06-26 Bruno Haible <bruno@clisp.org>
43969 * m4/stdint.m4 (gl_STDINT_H): Don't include <stdint.h> when using the
43970 SGI C compiler in pre-C99 mode.
43971 Suggested by Mark D. Baushke and Larry Jones.
43973 2006-06-26 Bruno Haible <bruno@clisp.org>
43975 * lib/stdint_.h: Include <wchar.h> if necessary for WCHAR_MIN or
43977 Reported by Mark D. Baushke and Larry Jones.
43979 2006-06-26 Bruno Haible <bruno@clisp.org>
43981 * lib/stdint_.h: Don't include <stdint.h> when using the SGI C compiler
43983 Suggested by Mark D. Baushke and Larry Jones.
43985 2006-06-23 Simon Josefsson <jas@extundo.com>
43986 Bruno Haible <bruno@clisp.org>
43988 * gnulib-tool (func_emit_lib_Makefile_am): Define MOSTLYCLEANDIRS.
43989 Emit mostlyclean-local rule.
43990 (func_emit_tests_Makefile_am): Likewise.
43991 * modules/sys_socket (Makefile.am): Use MOSTLYCLEANDIRS.
43993 2006-06-23 Mark D. Baushke <mdb@gnu.org>
43995 * lib/stdint_.h: Treat BSD/OS like OpenBSD.
43997 2006-06-23 Bruno Haible <bruno@clisp.org>
43999 * tests/test-stdint.c: Update to match ISO C 99 Technical
44002 2006-06-23 Bruno Haible <bruno@clisp.org>
44004 * m4/stdint.m4 (gl_STDINT_H): Treat IRIX like OpenBSD.
44006 2006-06-23 Bruno Haible <bruno@clisp.org>
44008 * lib/stdint_.h: Treat IRIX like OpenBSD.
44010 2006-06-23 Bruno Haible <bruno@clisp.org>
44012 * lib/stdint_.h (UINT8_C, UINT16_C, UINT32_C): Define according to
44013 ISO C 99 Technical Corrigendum 1.
44015 2006-06-22 Simon Josefsson <jas@extundo.com>
44017 * m4/sockpfaf.m4: Include winsock2.h too, to make it work under
44020 2006-06-22 Paul Eggert <eggert@cs.ucla.edu>
44022 * lib/glob.c (collated_compare): Remove 'const' uses that weren't
44023 needed. Some compiler complained about some of them. Problem reported
44025 <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00172.html>.
44027 2006-06-21 Simon Josefsson <jas@extundo.com>
44029 * tests/test-getaddrinfo.c: New file.
44031 * modules/getaddrinfo-tests: New file.
44033 * MODULES.html.sh: Add inet_pton.
44035 * modules/inet_pton: New file.
44037 2006-06-21 Simon Josefsson <jas@extundo.com>
44039 * m4/getaddrinfo.m4: Don't define WINVER. Look for gethostbyname in
44040 -lws2_32 too. Fixes getaddrinfo on Windows 2000, with the price
44041 of using the (limited) gnulib implementation on Windows XP.
44043 * m4/inet_pton.m4: New file.
44045 2006-06-21 Simon Josefsson <jas@extundo.com>
44047 * lib/getaddrinfo.c (getaddrinfo): Set ai_family in the return
44050 * lib/socket_.h: Don't define WINVER.
44052 * lib/inet_pton.h, inet_pton.c: New file, taken from glibc but
44053 slightly modified to work in gnulib.
44055 2006-06-21 Simon Josefsson <jas@extundo.com>
44057 * doc/gnulib.texi (Windows sockets): Add.
44059 2006-06-21 Paul Eggert <eggert@cs.ucla.edu>
44061 * lib/read-file.c (fread_file): Start with buffer allocation of
44062 0 bytes rather than 1 byte; this simplifies the code.
44063 Don't invoke feof; it's not needed. Refactor to avoid duplicate
44064 code to free buffer and save/restore errno.
44065 (internal_read_file): Remove unused local.
44067 2006-06-20 Paul Eggert <eggert@cs.ucla.edu>
44069 * lib/openat.c (openat): Use ?:, not if, to work around GCC bug 4210
44070 <http://gcc.gnu.org/bugzilla/show_bug.cgi?id=4210>.
44071 Problem reported by Denis Excoffier in
44072 <http://lists.gnu.org/archive/html/bug-tar/2006-06/msg00023.html>.
44074 2006-06-19 Yoann Vandoorselaere <yoann.v@prelude-ids.com>
44076 * modules/sys_socket, modules/socklen: Include sys/types since
44077 FreeBSD 4.x's sys/socket.h needs it.
44079 2006-06-19 Simon Josefsson <jas@extundo.com>
44081 * lib/inet_ntop.c: Always build inet_ntop4, since inet_ntop6 calls it.
44083 2006-06-19 Paul Eggert <eggert@cs.ucla.edu>
44085 * lib/alloca_.h (alloca) [defined alloca]: Don't define or declare.
44087 2006-06-19 Bruno Haible <bruno@clisp.org>
44089 * m4/stdint.m4 (gl_STDINT_H): Enclose the values of FULL_PATH_STDINT_H
44090 and FULL_PATH_INTTYPES_H in angle brackets.
44091 Reported by Mark D. Baushke <mdb@gnu.org>.
44093 2006-06-17 Eric Blake <ebb9@byu.net>
44095 * m4/rmdir-errno.m4 (gl_FUNC_FMDIR_NOTEMPTY): Assume errno.h declares
44098 2006-06-17 Bruno Haible <bruno@clisp.org>
44100 * m4/stdint.m4 (gl_STDINT_H) [FreeBSD >= 5]: Don't include
44103 2006-06-17 Bruno Haible <bruno@clisp.org>
44105 * m4/setenv.m4 (gl_PREREQ_SETENV, gl_PREREQ_UNSETENV): Remove test
44106 whether errno is declared. Assume <errno.h> declares errno.
44108 2006-06-17 Bruno Haible <bruno@clisp.org>
44110 * lib/stdint_.h [FreeBSD >= 5]: Don't include <sys/inttypes.h>.
44112 2006-06-17 Bruno Haible <bruno@clisp.org>
44114 * lib/stdint_.h (_UINT8_T, _UINT32_T, _UINT64_T): New macros. Fixes a
44115 problem on Solaris 2.5.1.
44117 2006-06-16 Eric Blake <ebb9@byu.net>
44119 * lib/unsetenv.c [!defined errno]: Assume errno.h declares errno.
44120 * lib/unicodeio.c [!defined errno]: Likewise.
44121 * lib/strtol.c [!defined errno]: Likewise.
44122 * lib/strtod.c [!defined errno]: Likewise.
44124 2006-06-15 Eric Blake <ebb9@byu.net>
44126 * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Work in spite of -Werror.
44128 2006-06-15 Eric Blake <ebb9@byu.net>
44130 * config/srclist.txt (ssize_t.m4): Lose sync.
44132 2006-06-15 Bruno Haible <bruno@clisp.org>
44134 * modules/stdint (Files): Include m4/full-header-path.m4,
44135 m4/size_max.m4, m4/wchar_t.m4.
44136 (Makefile.am): Many more substitutions.
44137 * modules/stdint-tests: New file.
44138 * tests/test-stdint.c: New file.
44140 2006-06-15 Bruno Haible <bruno@clisp.org>
44142 * m4/stdint.m4 (gl_STDINT_H): Rewritten to produce a complete stdint.h.
44143 (gl_HEADER_STDINT_H, gl_HEADER_INTTYPES_H, gl_STDINT_CHECK_TYPES,
44144 gl_STDINT_MISSING_BOUND, gl_STDINT_MISSING_BOUNDS,
44145 gl_STDINT_MISSING_BOUNDS2, gl_STDINT_BITSIZEOF, gl_CHECK_TYPES_SIGNED,
44146 gl_CHECK_TYPE_SAME): New macros.
44148 2006-06-15 Bruno Haible <bruno@clisp.org>
44150 * m4/size_max.m4 (gl_SIZE_MAX): Make it work also when cross-compiling.
44152 2006-06-15 Bruno Haible <bruno@clisp.org>
44154 * lib/stdint_.h: Rewritten to be fully auto-configured.
44155 Fixes bug on HP-UX/IA64.
44157 2006-06-11 Paul Eggert <eggert@cs.ucla.edu>
44159 * lib/getdate.y (__attribute__): Don't define if already defined.
44160 Problem reported by Larry Jones.
44161 * lib/utimens.c (__attribute__): Likewise.
44163 2006-06-04 Paul Eggert <eggert@cs.ucla.edu>
44165 * lib/regexec.c (group_nodes_into_DFAstates): Fix a buffer overrun
44166 reported by Andreas Schwab.
44168 2006-05-30 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
44169 Bruno Haible <bruno@clisp.org>
44171 * m4/strndup.m4 (gl_FUNC_STRNDUP): Replace the AC_REPLACE_FUNCS with a
44172 check for the declaration of strnlen and a run test that exposes the
44173 AIX 5.1 strnlen bug. In the failure case, #define strndup to
44176 2006-05-30 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
44177 Bruno Haible <bruno@clisp.org>
44179 * lib/strndup.c (strndup) [!_LIBC]: Don't undefine macro definition.
44181 2006-05-28 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
44183 * m4/c-strtod.m4 (gl_C99_STRTOLD): Use a link test rather than a
44184 compile test, for Tru64 4.0D.
44186 2006-05-28 Karl Berry <karl@gnu.org>
44188 * config/srclist.txt (printf-args.c): lose sync.
44190 2006-05-26 Martin Lambers <marlam@marlam.de>
44192 * lib/getpass.c: Updates the test for the native W32 API, and adds
44193 missing includes, thus fixing compilation warnings.
44195 2006-05-25 Sergey Poznyakoff <gray@gnu.org.ua>
44197 * lib/exclude.c (exclude_fnmatch): New function.
44198 (excluded_file_name): Call exclude_fnmatch.
44199 * lib/exclude.h (excluded_file_name): New prototype
44201 2006-05-25 Paul Eggert <eggert@cs.ucla.edu>
44203 * lib/tempname.c (small_open, large_open): New macros.
44204 (__open, __open64) [!_LIBC]: Remove.
44205 (__gen_tempname): Use small_open and large_open instead of __open
44206 and __open64. This fixes a portability bug on HP-UX 11.11i
44207 reported by Simon Wing-Tang in
44208 <http://lists.gnu.org/archive/html/bug-coreutils/2006-05/msg00114.html>.
44210 2006-05-24 Bruno Haible <bruno@clisp.org>
44212 * lib/printf-args.c (printf_fetchargs): Turn NULL pointers for
44213 TYPE_STRING and TYPE_WIDE_STRING into a non-NULL replacement.
44214 Reported by Thorsten Maerz <torte@netztorte.de> via
44215 Aaron Stone <aaron@serendipity.cx>.
44217 2006-05-19 Paul Eggert <eggert@cs.ucla.edu>
44219 * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Rename cache variables to use
44220 gl_ rather than jm_. Link, don't run, so that cross-compiles are
44221 allowed. Check that resulting type is arithmetic. Move AC_REQUIRE
44222 and AC_CHECK_HEADERS_ONCE outside of AC_CACHE_CHECK, since they're
44223 not really conditional on the cache.
44224 (gl_PREREQ_NANOSLEEP): Check for sys/select.h.
44226 2006-05-19 Paul Eggert <eggert@cs.ucla.edu>
44228 * lib/nanosleep.c [HAVE_SYS_SELECT_H]: Include <sys/select.h>.
44229 Use the usual Autoconf way to include <time.h> and/or sys/time.h.
44230 (my_usleep): Don't mishandle maximum value.
44232 2006-05-19 Jim Meyering <jim@meyering.net>
44234 * lib/getugroups.c: Correct an outdated comment. From Bruno Haible.
44236 2006-05-17 Bruno Haible <bruno@clisp.org>
44238 Cygwin portability.
44239 * lib/classpath.c (PATH_SEPARATOR) [CYGWIN]: Define as ':'.
44241 2006-05-17 Bruno Haible <bruno@clisp.org>
44243 * lib/stdint_.h: Fix recognition of Cygwin.
44245 2006-05-15 Bruno Haible <bruno@clisp.org>
44247 * build-aux/config.rpath: Improve support for Sun C 5.9 on Linux, based
44248 on libtool patch by Ralf Wildenhues.
44250 2006-05-14 Paul Eggert <eggert@cs.ucla.edu>
44252 * m4/stdbool.m4 (AC_HEADER_STDBOOL): Fix overly-picky
44253 test for C99 conformance; (bool) 0.5 is an integer constant
44254 expression, but (bool) -0.5 is not. Problem reported by Fedor
44255 Sergeev in <http://forum.sun.com/jive/thread.jspa?threadID=96202>.
44257 2006-05-11 Simon Josefsson <jas@extundo.com>
44259 * m4/xvasprintf.m4: Fix obvious typo.
44261 2006-05-11 Jim Meyering <jim@meyering.net>
44263 * lib/sha1.c (sha1_buffer): Correct comment: s/MD5/SHA1/. From
44266 2006-05-10 Simon Josefsson <jas@extundo.com>
44268 * lib/md4.c: Typo fix, update copyright years.
44269 (K1, K2): Don't use L because it turn computations into 64-bit on
44272 2006-05-10 Paul Eggert <eggert@cs.ucla.edu>
44274 * lib/crc.c (crc32_update): Remove unnecessary L suffix.
44275 * lib/md4.c (rol): Cast right-shift arg to uint32_t to prevent
44276 unwanted sign propagation, e.g., on hosts with 64-bit int.
44277 There still are some problems with reeelly weird theoretical hosts
44278 (e.g., 33-bit int) but it's not worth worrying about now.
44279 * lib/sha1.c (rol): Likewise.
44280 (K1, K2, K3, K4): Remove unnecessary L suffix.
44282 2006-05-10 Bruno Haible <bruno@clisp.org>
44284 * lib/des.c: Cast to avoid warnings.
44286 2006-05-09 Bruno Haible <bruno@clisp.org>
44288 * modules/xvasprintf (Files): Add m4/xvasprintf.m4.
44289 (Depends-on): Depend also on xsize, stdarg.
44290 (configure.ac): Add gl_XVASPRINTF.
44292 2006-05-09 Bruno Haible <bruno@clisp.org>
44294 * m4/xvasprintf.m4: New file.
44296 2006-05-09 Bruno Haible <bruno@clisp.org>
44298 * lib/xvasprintf.c: Include limits.h, string.h, xsize.h.
44299 (EOVERFLOW): Define fallback value.
44300 (xstrcat): New function.
44301 (xvasprintf): Recognize the special case of a string concatenation.
44303 2006-05-08 Eric Blake <ebb9@byu.net>
44305 * gnulib-tool (func_version): Base copyright year on CVS date.
44306 (func_emit_copyright_notice): New function.
44307 (func_emit_lib_Makefile_am): Use it.
44308 (func_emit_tests_Makefile_am): Likewise.
44309 (func_import): Likewise.
44311 2006-05-08 Bruno Haible <bruno@clisp.org>
44313 * modules/stdarg: New file.
44314 * MODULES.html.sh (func_all_modules): Add section for <stdarg.h>.
44316 2006-05-08 Bruno Haible <bruno@clisp.org>
44318 * m4/stdarg.m4: New file, from GNU gettext.
44320 2006-05-08 Bruno Haible <bruno@clisp.org>
44322 * config/srclist.txt (build-aux/config.rpath): different from latest
44325 2006-05-08 Bruno Haible <bruno@clisp.org>
44327 * build-aux/config.rpath: Add support for Sun C 5.9 on Linux.
44329 2006-05-05 Jim Meyering <jim@meyering.net>
44331 * m4/warning.m4: New file, derived from bison's file by the same name.
44333 2006-05-03 Bruno Haible <bruno@clisp.org>
44335 * lib/stdint_.h: Shorter URL.
44336 * lib/inttypes.h: Likewise.
44338 2006-05-02 Paul Eggert <eggert@cs.ucla.edu>
44340 * modules/inttypes (Maintainer): Change from Derek Price to 'all'.
44342 2006-05-02 Paul Eggert <eggert@cs.ucla.edu>
44344 * lib/verify.h: Document the internals better. Most of this change
44345 was written by Bruno Haible.
44347 2006-05-02 Paul Eggert <eggert@cs.ucla.edu>
44349 * doc/verify.texi: New file, partly based on a proposal by
44352 2006-05-02 Bruno Haible <bruno@clisp.org>
44354 * m4/full-header-path.m4 (gl_FULL_HEADER_PATH): Move the include_next
44356 * m4/_inttypes_h.m4 (gl_INTTYPES_H): ... to here.
44358 2006-04-29 Bruno Haible <bruno@clisp.org>
44360 * lib/gcd.c: Use WORD_T and GCD instead of unsigned long and gcd.
44361 Suggested by Oskar Liljeblad <oskar@osk.mine.nu>.
44363 2006-04-29 Bruno Haible <bruno@clisp.org>
44365 * gnulib-tool: Make --update option actually work.
44367 2006-04-29 Bruno Haible <bruno@clisp.org>
44369 * doc/gcd.texi: New file.
44370 * doc/gnulib.texi: Include it.
44372 2006-04-25 Paul Eggert <eggert@cs.ucla.edu>
44374 * lib/getdate.y (get_date): When adding relative date, start with the
44375 initial time, not with the result of the first mktime call.
44377 2006-04-25 Bruno Haible <bruno@clisp.org>
44379 * gnulib-tool (func_import): Output the include directives in three
44380 blocks, sorted separately.
44381 Reported by Ben Pfaff <blp@cs.stanford.edu>.
44383 2006-04-24 Paul Eggert <eggert@cs.ucla.edu>
44385 * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Use prototype
44386 to define main with arguments, for C++. Reported by Eric Blake.
44387 * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC):
44388 Prefer 'int main ()' to 'int main (void)', for C++.
44389 * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
44390 * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Specify a return type
44391 for 'main', for C99 and C++.
44393 2006-04-24 Paul Eggert <eggert@cs.ucla.edu>
44395 * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Use return, not exit.
44396 Don't assume that exit status -1 is valid.
44397 * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
44398 * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
44399 * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Likewise.
44400 * m4/readdir.m4 (GL_FUNC_READDIR): Include <stdlib.h>.
44401 * m4/rename.m4 (vb_FUNC_RENAME): Likewise.
44402 * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Use AC_RUN_IFELSE,
44403 not AC_TRY_RUN. Use return, not exit. Don't assume that
44404 functions can be used without declaring them, or that you can
44405 exit with status -1.
44406 * m4/utimes-null.m4 (gl_FUNC_UTIMES_NULL): Likewise.
44408 2006-04-24 Karl Berry <karl@gnu.org>
44410 * config/srclist.txt (longdouble.m4): sync lost.
44412 2006-04-24 Eric Blake <ebb9@byu.net>
44414 * m4/strerror_r.m4 (AC_FUNC_STRERROR_R): Avoid unused variable warning.
44416 2006-04-24 Bruno Haible <bruno@clisp.org>
44418 * m4/poll.m4 (gl_FUNC_POLL): When cross-compiling, reject also the
44419 poll() implementation in AIX.
44420 Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
44422 2006-04-24 Bruno Haible <bruno@clisp.org>
44424 * m4/poll.m4 (gl_FUNC_POLL): Rearrange code, so that POLL_H gets
44425 assigned exactly once.
44427 2006-04-23 Claudio Fontana <claudio@gnu.org>
44428 Bruno Haible <bruno@clisp.org>
44430 * modules/gettext (Makefile.am): Add a -I flag for <libintl.h>.
44431 * gnulib-tool (func_emit_lib_Makefile_am): Emit empty default value
44434 2006-04-23 Bruno Haible <bruno@clisp.org>
44436 * modules/copy-file: Depend on unistd.
44437 * modules/execute: Likewise.
44438 * modules/fatal-signal: Likewise.
44439 * modules/findprog: Likewise.
44440 * modules/mkdtemp : Likewise.
44441 * modules/pipe: Likewise.
44442 * modules/wait-process: Likewise.
44444 2006-04-23 Bruno Haible <bruno@clisp.org>
44446 * lib/fwriteerror.c (fwriteerror): Call fclose also when an error
44447 condition was already detected.
44448 Reported by Ben Pfaff <blp@cs.stanford.edu>.
44450 2006-04-23 Bruno Haible <bruno@clisp.org>
44452 * lib/copy-file.c: Include <unistd.h> unconditionally.
44453 * lib/execute.c: Likewise.
44454 * lib/fatal-signal.c: Likewise.
44455 * lib/findprog.c: Likewise.
44456 * lib/mkdtemp.c: Likewise.
44457 * lib/pipe.h: Likewise.
44458 * lib/pipe.c: Likewise.
44459 * lib/wait-process.h: Likewise.
44461 2006-04-23 Bruno Haible <bruno@clisp.org>
44463 * gnulib-tool (func_usage): Fix --import description. Document
44465 (func_import): Create temporary file in a temporary directory, if
44466 --dry-run is specified. Silence errors from 'grep' when there are no
44467 m4 files in $m4dir.
44468 (func_create_testdir): Silence errors from 'grep' when there are no
44469 m4 files in $m4dir.
44470 Reported by Karl Berry <karl@freefriends.org>.
44472 2006-04-20 Bruno Haible <bruno@clisp.org>
44474 * m4/argp.m4 (gl_ARGP): Don't call AC_CHECK_DECLS_ONCE with more than
44475 one argument, so that the code will be portable to Autoconf 2.60.
44476 * m4/getlogin_r.m4 (gl_PREREQ_GETLOGIN_R): Likewise.
44477 * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
44478 * m4/unlocked-io.m4 (gl_FUNC_GLIBC_UNLOCKED_IO): Likewise.
44480 2006-04-19 Derek Price <derek@ximbiot.com>
44481 Eric Blake <ebb9@byu.net>
44483 * m4/full-header-path.m4 (gl_FULL_HEADER_PATH): Use </full/path.h>
44484 rather than "/full/path.h". Update comment to match. Shorten &
44485 generalize m4_translit call via AS_TR_CPP.
44487 2006-04-19 Derek Price <derek@ximbiot.com>
44488 Eric Blake <ebb9@byu.net>
44490 * lib/inttypes.h: Correct grammar in comment.
44492 2006-04-18 Derek Price <derek@ximbiot.com>
44493 Paul Eggert <eggert@cs.ucla.edu>
44495 * modules/inttypes: New file.
44496 * modules/strtoimax, modules/strtoumax: Depend on inttypes.
44498 2006-04-18 Derek Price <derek@ximbiot.com>
44499 Paul Eggert <eggert@cs.ucla.edu>
44501 * m4/_inttypes_h.m4, m4/full-header-path.m4, m4/include_next.m4:
44504 2006-04-18 Derek Price <derek@ximbiot.com>
44505 Paul Eggert <eggert@cs.ucla.edu>
44507 * lib/inttypes.h: New file.
44508 * lib/strtoimax.c: Assume <inttypes.h>.
44510 2006-04-15 Paul Eggert <eggert@cs.ucla.edu>
44512 * lib/utimens.c (futimens): glibc futimesat messes up if /proc
44513 isn't mounted. Problem reported by Kir Kolyshkin.
44515 2006-04-13 Paul Eggert <eggert@cs.ucla.edu>
44517 * lib/regcomp.c (init_dfa): Don't use wchar_t or wctype_t if
44518 RE_ENABLE_I18N is not defined. Problem reported by Mark D. Baushke via
44520 * lib/regex.h (RE_DUP_MAX): Update comment to match current
44523 2006-04-12 Eric Blake <ebb9@byu.net>
44525 * modules/time_r (Makefile.am): Remove lib_SOURCES line, as this
44526 is now done automatically by the corresponding Autoconf macro.
44528 2006-04-11 Paul Eggert <eggert@cs.ucla.edu>
44530 * m4/time_r.m4 (gl_TIME_R): Add AC_LIBSOURCES for time_r.c and
44533 2006-04-09 Paul Eggert <eggert@cs.ucla.edu>
44535 Merge regex changes from libc, removing some of our
44536 POSIX-conformance changes that were rejected and redoing them in a
44537 less-intrusive way.
44539 * lib/regcomp.c (re_compile_internal, init_dfa):
44540 Length arg is now size_t, not Idx. All uses changed.
44541 (peek_token): Forward decl now says internal_function.
44542 (__re_error_msgid, __re_error_msgid_idx):
44543 Now static rather than extern with attribute_hidden.
44544 (re_compile_pattern) [!defined _LIBC]: Use K&R-style defn.
44545 For some reason libc prefers K&R style defns for external functions.
44546 (regerror) [!defined _LIBC]: Likewise.
44547 (re_set_syntax, re_compile_fastmap, regcomp, regfree, re_comp):
44548 (seek_collating_symbol_entry, lookup_collation_sequence_value):
44549 (build_range_exp, build_collating_symbol):
44550 Use K&R-style defn.
44551 (re_compile_fastmap): Use '\0' to memset, not 0.
44552 (utf8_sb_map): Make the calculations more obvious.
44553 (init_dfa, parse_bracket_exp, build_charclass_op):
44554 Call calloc and cast result, as glibc does.
44555 (init_word_char, fetch_token, peek_token, peek_token_bracket):
44556 (build_range_exp, build_collating_symbol):
44557 Now internal functions.
44559 * lib/regex.c [!defined _LIBC]: Allow compiling with C++ compilers.
44561 * lib/regex.h (__USE_GNU_REGEX): New macro. Don't depend on
44562 _REGEX_SOURCE any more; depend on _GNU_SOURCE instead.
44563 Don't depend on VMS; depend on __VMS instead, for POSIX
44564 namespace cleanness.
44565 (regoff_t): Define to ssize_t, not long int.
44567 Remove the REG_ macros named below. Instead, make the old names
44568 (e.g., RE_BACKSLASH_ESCAPE_IN_LISTS) visible only if
44570 (REG_BACKSLASH_ESCAPE_IN_LISTS):
44571 (REG_BK_PLUS_QM, REG_CHAR_CLASSES, REG_CONTEXT_INDEP_ANCHORS):
44572 (REG_CONTEXT_INDEP_OPS, REG_CONTEXT_INVALID_OPS):
44573 (REG_DOT_NEWLINE, REG_DOT_NOT_NULL, REG_HAT_LISTS_NOT_NEWLINE):
44574 (REG_INTERVALS, REG_LIMITED_OPS, REG_NEWLINE_ALT):
44575 (REG_NO_BK_BRACES, REG_NO_BK_PARENS, REG_NO_BK_REFS):
44576 (REG_NO_BK_VBAR, REG_NO_EMPTY_RANGES):
44577 (REG_UNMATCHED_RIGHT_PAREN_ORD, REG_NO_POSIX_BACKTRACKING):
44578 (REG_NO_GNU_OPS, REG_DEBUG, REG_INVALID_INTERVAL_ORD):
44579 (REG_IGNORE_CASE, REG_CARET_ANCHORS_HERE):
44580 (REG_CONTEXT_INVALID_DUP, REG_NO_SUB, REG_SYNTAX_EMACS):
44581 (REG_SYNTAX_AWK, REG_SYNTAX_GNU_AWK, REG_SYNTAX_POSIX_AWK):
44582 (REG_SYNTAX_GREP, REG_SYNTAX_EGREP, REG_SYNTAX_POSIX_EGREP):
44583 (REG_SYNTAX_ED, REG_SYNTAX_SED, _REG_SYNTAX_POSIX_COMMON):
44584 (REG_SYNTAX_POSIX_BASIC, REG_SYNTAX_POSIX_MINIMAL_BASIC):
44585 (REG_SYNTAX_POSIX_EXTENDED, REG_SYNTAX_POSIX_MINIMAL_EXTENDED):
44586 (REG_DUP_MAX, REG_UNALLOCATED, REG_REALLOCATE, REG_FIXED):
44588 Remove. All uses replaced by the old RE_* names.
44589 (RE_BACKSLASH_ESCAPE_IN_LISTS):
44590 (RE_BK_PLUS_QM, RE_CHAR_CLASSES, RE_CONTEXT_INDEP_ANCHORS):
44591 (RE_CONTEXT_INDEP_OPS, RE_CONTEXT_INVALID_OPS):
44592 (RE_DOT_NEWLINE, RE_DOT_NOT_NULL, RE_HAT_LISTS_NOT_NEWLINE):
44593 (RE_INTERVALS, RE_LIMITED_OPS, RE_NEWLINE_ALT):
44594 (RE_NO_BK_BRACES, RE_NO_BK_PARENS, RE_NO_BK_REFS):
44595 (RE_NO_BK_VBAR, RE_NO_EMPTY_RANGES):
44596 (RE_UNMATCHED_RIGHT_PAREN_ORD, RE_NO_POSIX_BACKTRACKING):
44597 (RE_NO_GNU_OPS, RE_DEBUG, RE_INVALID_INTERVAL_ORD):
44598 (RE_IGNORE_CASE, RE_CARET_ANCHORS_HERE):
44599 (RE_CONTEXT_INVALID_DUP, RE_NO_SUB):
44600 Don't bother having these macros be independent of each others'
44601 values, since they no longer exist in the POSIX name space.
44603 Rename the following member names back to their old names,
44604 unless !__USE_GNU_REGEX. All uses changed back.
44605 (buffer): Renamed from re_buffer.
44606 (allocated): Renamed from re_allocated.
44607 (used): Renamed from re_used.
44608 (syntax): Renamed from re_syntax.
44609 (fastmap): Renamed from re_fastmap.
44610 (translate): Renamed from re_translate.
44611 (can_be_null): Renamed from re_can_be_null.
44612 (regs_allocated): Renamed from re_regs_allocated.
44613 (fastmap_accurate): Renamed from re_fastmap_accurate.
44614 (no_sub): Renamed from re_no_sub.
44615 (not_bol): Renamed from re_not_bol.
44616 (not_eol): Renamed from re_not_eol.
44617 (newline_anchor): Renamed from re_newline_anchor.
44618 (num_regs): Renamed from rm_num_regs.
44619 (start): Renamed from rm_start.
44620 (end): Renamed from rm_end.
44622 (free_state): Move up a bit.
44624 * lib/regex_internal.h (inline) [__GNUC__ < 3 && defined _LIBC]:
44625 #define to be empty.
44626 (ASCII_CHARS): New macro, replacing all uses of 0x80 and/or SBC_MAX / 2
44627 when that is what is intended.
44628 (SBC_MAX): Define to UCHAR_MAX + 1, not 256.
44629 (__re_error_msgid, __re_error_msgid_idx): Remove decls; not needed.
44631 (re_xmalloc, re_calloc, re_xrealloc, re_x2realloc): Remove.
44632 All uses changed back to re_malloc, etc. It's now the caller's
44633 responsibility to check for overflow; all callers changed.
44634 (re_alloc_oversized, re_x2alloc_oversized, re_xnmalloc, re_xnrealloc):
44635 (re_x2nrealloc): Remove.
44636 (free_state): Remove decl.
44638 * lib/regexc.c (regexec, re_match, re_search, re_match_2, re_search_2):
44639 (re_set_registers, re_exec):
44640 Use K&R-style defn.
44642 2006-01-31 Roland McGrath <roland@redhat.com>
44644 * lib/regcomp.c (calc_eclosure_iter): Remove dead variables.
44645 Reported by Mike Frysinger <vapier@gentoo.org>.
44647 2006-01-15 Andreas Jaeger <aj@suse.de>
44650 * lib/regex_internal.c (re_string_reconstruct): Adjust for
44651 build_wcs_upper_buffer change.
44652 (build_wcs_upper_buffer): Change return type.
44654 2005-12-10 Ulrich Drepper <drepper@redhat.com>
44656 * lib/regex_internal.h: Include <stdint.h> if available.
44658 2005-12-06 Paolo Bonzini <bonzini@gnu.org>
44660 * lib/regex_internal.h (SIZE_MAX): Provide a default definition.
44662 2005-10-14 Ulrich Drepper <drepper@redhat.com>
44664 * lib/regcomp.c: Adjust for changed secondary hash function.
44666 2005-09-30 Ulrich Drepper <drepper@redhat.com>
44668 * lib/regex.h: Pretty printing.
44669 Clean up namespace a bit.
44671 2005-09-30 Jakub Jelinek <jakub@redhat.com>
44673 * lib/regexec.c (update_cur_sifted_state, check_arrival,
44674 check_arrival_add_next_nodes): Avoid using uninitialized variable.
44676 2005-09-06 Paul Eggert <eggert@cs.ucla.edu>
44677 Ulrich Drepper <drepper@redhat.com>
44680 * lib/regex_internal.h (bitset_t): Renamed from bitset. All uses
44682 (bitset_word_t): Renamed from bitset_word. All uses changed.
44684 2005-09-22 Ulrich Drepper <drepper@redhat.com>
44687 * lib/regex.h: Define RE_TRANSLATE_TYPE as unsigned char *.
44688 * lib/regcomp.c: Remove unnecessary uses of
44689 unsigned RE_TRANSLATE_TYPE.
44690 * lib/regex_internal.h: Likewise.
44691 * lib/regex_internal.c: Likewise.
44692 * lib/regexec.c: Likewise.
44693 Based on a patch by Stepan Kasal <kasal@ucw.cz>.
44695 2005-09-07 Ulrich Drepper <drepper@redhat.com>
44697 * lib/regexec.c (find_recover_state): Remove unnecessary
44699 (transit_state_bkref): Make DFA a const pointer.
44700 (get_subexp): Likewise.
44701 (check_arrival): Likewise.
44702 (update_cur_sifted_state): Likewise.
44703 (re_search_internal): Likewise.
44704 (prune_impossible_nodes): Likewise.
44705 (acquire_init_state_context): Likewise.
44706 (proceed_next_node): Likewise.
44707 (set_regs): Likewise.
44708 (free_fail_stack_return): Likewise.
44709 (check_arrival_expand_ecl): Mark DFA parameter as const.
44710 (check_arrival_expand_ecl_sub): Likewise.
44711 (check_subexp_limits): Likewise.
44712 (sub_epsilon_src_nodes): Likewise.
44713 (add_epsilon_src_nodes): Likewise.
44714 (merge_state_array): Likewise.
44715 (update_regs): Likewise.
44716 (build_trtable): Likewise.
44717 (sift_states_backward): Mark MCTX parameter as const.
44718 (build_sifted_states): Likewise.
44719 (update_cur_sifted_state): Likewise.
44720 (sift_states_mkref): Likewise.
44721 (check_arrival_expand_ecl): Mark eclosure as const.
44722 (check_dst_limits_calc_pos_1): Likewise.
44723 * lib/regex_internal.h (re_match_context_t): Make dfa a const
44726 2005-09-06 Ulrich Drepper <drepper@redhat.com>
44728 * lib/regexec.c (merge_state_with_log): Define dfa as const pointer.
44729 (transit_state_sb): Likewise.
44730 (transit_state_mb): Likewise.
44731 (sift_states_iter_mb): Likewise.
44732 (check_arrival_add_next_nodes): Likewise.
44733 (check_node_accept_bytes): Change first parameter to pointer-to-const.
44734 [_LIBC] (re_search_2_stub): Use mempcpy.
44736 * lib/regex_internal.c (re_string_reconstruct): Avoid calling
44737 mbrtowc for very simple UTF-8 case.
44739 * lib/regex_internal.c (re_acquire_state): Make DFA pointer arg
44740 a pointer-to-const.
44741 (re_acquire_state_context): Likewise.
44742 * lib/regex_internal.h: Adjust prototypes.
44744 * lib/regex.c: Prevent using C++ compilers.
44746 * lib/regex_internal.c (re_acquire_state): Minor code rearrangement.
44747 (re_acquire_state_context): Likewise.
44749 2006-04-09 Paul Eggert <eggert@cs.ucla.edu>
44751 * modules/regex (Depends-on): Add ssize_t.
44753 2006-04-09 Paul Eggert <eggert@cs.ucla.edu>
44755 * m4/regex.m4 (gl_REGEX): Check for new glibc interface to
44758 2006-04-09 Paul Eggert <eggert@cs.ucla.edu>
44760 * doc/gnulib-tool.texi (Modified imports): pathname -> file name.
44762 2006-03-29 Mark D. Baushke <mdb@gnu.org>
44763 Bruno Haible <bruno@clisp.org>
44765 * lib/stdint_.h: On OpenBSD, don't redefine types already included in
44766 <sys/types.h> and <inttypes.h>.
44768 2006-03-25 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
44770 * m4/argz.m4 (gl_FUNC_ARGZ): If we define `error_t', also define
44771 `__error_t_defined', so argp.h will not typedef the former.
44773 2006-03-25 Paul Eggert <eggert@cs.ucla.edu>
44775 * m4/regex.m4 (gl_REGEX): Don't insist on REG_SYNTAX_POSIX_EGREP,
44776 REG_SYNTAX_EMACS, and REG_IGNORE_CASE. Settle for the traditional
44777 glibc names. Even if glibc is changed to conform to POSIX, the
44778 traditional names will be available anyway, since regex depends on
44779 the extensions module. Also, fix a longstanding typo in the
44780 implementation of Spencer ERE test #75 from grep 2.3. Problems
44781 reported by Emanuele Giaquinta. Also, change sense of cached
44782 variable, so that the message makes sense.
44784 2006-03-24 Simon Josefsson <jas@extundo.com>
44786 * lib/base64.c: Fix problems reported by Eric Blake <ebb9@byu.net>,
44787 including some doc fixes.
44788 (base64_encode_alloc): Fix +1 bug on allocation failures.
44790 2006-03-24 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
44792 * lib/base64.c (base64_encode): Do not read past end of array with
44793 unsanitized input on systems with CHAR_BIT > 8.
44795 2006-03-24 Eric Blake <ebb9@byu.net>
44797 * lib/time_r.c (copy_string_result): Remove, as it is no longer used.
44799 2006-03-22 Karl Berry <karl@gnu.org>
44801 * config/srclist.txt (*setenv.[ch]): get from coreutils.
44802 * config/srclistvars.sh (COREUTILS): new var.
44804 2006-03-17 Jim Meyering <jim@meyering.net>
44806 * m4/regex.m4 (gl_REGEX): Fix typo in last change:
44807 s/_REGEX_WIDE_OFFSETS/_REGEX_LARGE_OFFSETS/.
44809 2006-03-16 Paul Eggert <eggert@cs.ucla.edu>
44811 * m4/regex.m4 (gl_REGEX): Don't check for off_t, since the code
44812 no longer needs it. Instead, check that regoff_t is as least
44813 as wide as ptrdiff_t.
44815 Don't define _REGEX_WIDE_OFFSETS unless using the included regex,
44816 so that our regex.h stays compatible with the installed regex.
44817 This is helpful for installers who configure --without-included-regex.
44818 Problem reported by Emanuele Giaquinta.
44820 2006-03-16 Paul Eggert <eggert@cs.ucla.edu>
44822 * lib/regex.h (regoff_t) [defined _REGEX_LARGE_OFFSETS]:
44823 Typedef to long int, not to off_, as POSIX will likely change
44826 2006-03-15 Eric Blake <ebb9@byu.net>
44828 * m4/dirfd.m4 (gl_FUNC_DIRFD): Use AC_REQUIRE for AC_HEADER_DIRENT.
44830 2006-03-13 Sergey Poznyakoff <gray@gnu.org.ua>
44832 * lib/argp-help.c (validate_uparams): Fix typo
44833 * lib/argp-parse.c (argp_default_options): Consistently begin help
44834 messages with a lowercase letter.
44836 2006-03-11 Paul Eggert <eggert@cs.ucla.edu>
44838 * lib/time_r.h (asctime_r, ctime_r): Remove. These functions can
44839 overrun buffers and shouldn't be used (much as gets shouldn't be
44841 * lib/time_r.c (asctime_r, ctime_r): Likewise.
44843 2006-03-08 Simon Josefsson <jas@extundo.com>
44845 * m4/gc-random.m4: Permit 'no' as variable values and fix warnings,
44846 suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
44848 2006-03-08 Simon Josefsson <jas@extundo.com>
44850 * m4/gc-random.m4: Call AC_CANONICAL_HOST and use $host_os instead of
44851 $target, suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
44853 2006-03-08 Simon Josefsson <jas@extundo.com>
44855 * lib/gc-gnulib.c (randomize): Don't open files called 'no', they
44856 signal that configure disabled the device.
44858 2006-03-08 Simon Josefsson <jas@extundo.com>
44860 * build-aux/maint.mk: Fix refresh-po, to handle no translated
44863 2006-03-07 Simon Josefsson <jas@extundo.com>
44865 * modules/getopt (Depends-on): Add unistd.
44867 * modules/unistd: New file.
44869 2006-03-07 Simon Josefsson <jas@extundo.com>
44871 * modules/gc-random: New file.
44873 2006-03-07 Simon Josefsson <jas@extundo.com>
44875 * m4/unistd_h.m4: New file.
44877 2006-03-07 Simon Josefsson <jas@extundo.com>
44879 * m4/readline.m4 (gl_FUNC_READLINE): Rewrite the cached part of the
44880 test to be side-effect free by storing the result in the cache
44881 variable gl_cv_lib_readline, and moving the assignment of
44882 LIBREADLINE and LTLIBREADLINE outside the COMMANDS-TO-SET-IT.
44883 From Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
44885 2006-03-07 Simon Josefsson <jas@extundo.com>
44887 * m4/gc-random.m4: New file, mostly from gc.m4. Warn instead of
44888 error on missing devices (the functions will return an error).
44890 * m4/gc.m4: Move random stuff to gc-random.m4
44892 2006-03-07 Simon Josefsson <jas@extundo.com>
44894 * lib/unistd_.h: New file.
44896 2006-03-07 Simon Josefsson <jas@extundo.com>
44898 * lib/gc-libgcrypt.c, gc-gnulib.c: Use GC_USE_RANDOM.
44900 2006-03-07 Paul Eggert <eggert@cs.ucla.edu>
44902 * m4/unistd_h.m4 (gl_HEADER_UNISTD): Rename, to match modules file.
44903 Problem reported by Juan Manuel Guerrero.
44905 2006-03-07 Paul Eggert <eggert@cs.ucla.edu>
44907 * lib/c-stack.c: Include unistd.h unconditionally, since we now assume
44909 * lib/getlogin_r.c: Likewise.
44910 * lib/getlogin_r.h: Likewise.
44911 * lib/glob.c: Likewise.
44912 * lib/pagealign_alloc.c: Likewise.
44913 * lib/unistd_.h: Remove; no longer needed.
44915 2006-03-07 Paul Eggert <eggert@cs.ucla.edu>
44917 * MODULES.html.sh (Support for systems lacking POSIX:2001):
44919 * modules/c-stack (Depends-on): Add unistd.
44920 * modules/getlogin_r: Likewise.
44921 * modules/glob: Likewise.
44922 * modules/pagealign_alloc: Likewise.
44923 * modules/unistd (Files): Remove lib/unistd_.h.
44924 (EXTRA_DIST): Remove.
44925 (unistd.h): Create using 'echo' rather than 'cp', so that we don't
44927 (MOSTLYCLEANFILES): Remove unistd.h-t.
44929 2006-03-03 Simon Josefsson <jas@extundo.com>
44931 * build-aux/maint.mk: Add several syntax checks from CoreUtils.
44933 2006-03-03 Simon Josefsson <jas@extundo.com>
44935 * build-aux/maint.mk: Add refresh-po rule, based on ideas from
44938 2006-03-03 Simon Josefsson <jas@extundo.com>
44940 * build-aux/maint.mk: Add indent target.
44942 2006-03-03 Ralf Wildenhues <Ralf.Wildenhues@gmx.de> (tiny change)
44944 * m4/poll.m4 (gl_FUNC_POLL): If we deem poll(2) unacceptable, use
44945 our replacement poll.h in any case, to avoid a differing
44946 declaration from a system header. Seen on AIX.
44948 2006-03-01 Simon Josefsson <jas@extundo.com>
44950 * lib/readline.c: Fix typo, tiny patch from Stepan Kasal
44953 2006-03-01 Paul Eggert <eggert@cs.ucla.edu>
44955 * modules/gettime (Depends-on): Add extensions module.
44956 * modules/nanosleep (Depends-on): Likewise.
44957 * modules/settime (Depends-on): Likewise.
44959 2006-03-01 Paul Eggert <eggert@cs.ucla.edu>
44961 * m4/clock_time.m4 (gl_CLOCK_TIME): Require gl_USE_SYSTEM_EXTENSIONS,
44962 not merely AC_GNU_SOURCE, for the benefit of Solaris 10 when compiled
44964 * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
44965 * m4/timespec.m4 (gl_TIMESPEC): Likewise.
44967 * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Use "=" with "test",
44968 not "==". Reported by Ralf Wildenhues.
44970 2006-03-01 Karl Berry <karl@gnu.org>
44972 * doc/Copyright/request-*: new files, synced from gnuorg.
44974 2006-03-01 Karl Berry <karl@gnu.org>
44976 * config/srclist.txt (Copyright/*): new entries.
44978 2006-02-28 Simon Josefsson <jas@extundo.com>
44980 * lib/getopt.c: Protect #include of unistd.h, for MSVS.
44982 2006-02-27 Simon Josefsson <jas@extundo.com>
44984 * lib/base64.h: Indent #define's. From Jim Meyering
44985 <jim@meyering.net>.
44987 2006-02-27 Jim Meyering <jim@meyering.net>
44989 Revert the change of 2006-02-24, so these files can continue
44990 to be sync'd from gettext.
44991 * lib/mkdtemp.c, setenv.c, unsetenv.c: *Un*-normalize inclusion
44994 2006-02-26 Paul Eggert <eggert@cs.ucla.edu>
44996 * modules/intprops: New file.
44997 * MODULES.html.sh (Numeric conversion functions <stdlib.h>):
44999 * modules/getloadavg (Files): Remove lib/intprops.h.
45000 (Depends-on): Add intprops.
45001 * modules/human: Likewise.
45002 * modules/inttostr: Likewise.
45003 * modules/openat: Likewise.
45004 * modules/sig2str: Likewise.
45005 * modules/userspec: Likewise.
45006 * modules/utimecmp: Likewise.
45007 * modules/xnanosleep: Likewise.
45008 * modules/xstrtol: Likewise.
45010 2006-02-24 Ralf Wildenhues <Ralf.Wildenhues@gmx.de> (tiny changes)
45012 * modules/xstrtod: Omit xstrtod.h, xstrtod.c; they're in LIB_SOURCES.
45013 * modules/lock-tests (TESTS): Use $(EXEEXT).
45014 * modules/tls-tests: Likewise.
45015 * modules/argp-tests: Likewise.
45016 (check_PROGRAMS): New var, replacing...
45017 (noinst_PROGRAMS, test_argp_SOURCES): Remove.
45019 2006-02-24 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
45021 * lib/mkdtemp.c, lib/setenv.c, lib/unsetenv.c: Normalize inclusion of
45024 2006-02-24 Paul Eggert <eggert@cs.ucla.edu>
45026 * lib/glob.c: Say "invalid" rather than "illegal" in comments.
45028 2006-02-22 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
45030 Sync from coreutils.
45031 * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Require gl_FUNC_LCHMOD and
45034 2006-02-22 Jim Meyering <jim@meyering.net>
45036 Sync from coreutils.
45037 * m4/chdir-safer.m4: New file.
45039 2006-02-20 Paul Eggert <eggert@cs.ucla.edu>
45041 * lib/getcwd.c (AT_FDCWD): Work around a bug in Solaris 9 and 10, where
45042 AT_FDCWD exceeds INT_MAX.
45043 * lib/openat.h (AT_FDCWD): Likewise.
45045 2006-02-17 Eric Blake <address@hidden>
45047 * m4/getaddrinfo.m4 (gl_GETADDRINFO): Fix caching error.
45049 2006-02-16 Simon Josefsson <jas@extundo.com>
45051 * modules/getaddrinfo (Depends-on): Add sys_socket.
45053 2006-02-15 Simon Josefsson <jas@extundo.com>
45055 * build-aux/maint.mk: Add dsyntax-check rule.
45057 2006-02-15 Eric Blake <ebb9@byu.net>
45059 * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Don't attempt using
45060 winsock2.h or ws2tcpip.h when sys/socket.h is present. Fixes
45061 'present but cannot compile' warnings on cygwin.
45062 * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Use gl_HEADER_SYS_SOCKET. Don't
45063 use ws2tcpip.h if sys/socket.h works.
45064 * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Use gl_HEADER_SYS_SOCKET.
45065 (gl_GETADDRINFO): Don't use ws2tcpip.h when sys/socket.h is present.
45067 2006-02-14 Simon Josefsson <jas@extundo.com>
45069 * modules/maintainer-makefile (Files): Rename.
45071 * build-aux/GNUmakefile: Rename Makefile.maint to maint.mk
45072 and (the local) Makefile.cfg to maint-cfg.mk.
45074 * build-aux/Makefile.maint, build-aux/maint.mk: Renamed the former
45077 * modules/maintainer-makefile: New module.
45079 * build-aux/Makefile.maint: New file, from GNU CoreUtils, although
45080 severaly stripped to make it possible to build it up from scratch
45081 with reliable tests.
45083 * build-aux/GNUmakefile: New file, from GNU CoreUtils with some
45084 fixes to permit overriding the default actions when configure and
45085 makefile are not available.
45087 2006-02-14 Paul Eggert <eggert@cs.ucla.edu>
45089 Sync from coreutils.
45090 * modules/lstat (Depends-on): Don't depend on xalloc.
45091 (License): Change from GPL to LGPL, since this is now simply a
45092 replacement for a libc function.
45094 2006-02-14 Jim Meyering <jim@meyering.net>
45096 Sync from coreutils.
45098 Eliminate the unwelcome (albeit unlikely) possibility of xmalloc
45099 failure on deficient systems, and simplify gnulib lgpl dependencies.
45100 * lib/lstat.c (rpl_lstat): Rewrite to use stat() in place of the
45101 xmalloc/lstat combination. Based on a patch from Bruno Haible.
45103 * lib/xalloc-die.c: Remove unused definition of N_.
45105 2006-02-14 Jim Meyering <jim@meyering.net>
45107 Sync from coreutils.
45108 * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): Invoke
45109 AC_CHECK_FUNCS(getmntent) unconditionally so that tests of
45110 $ac_cv_func_getmntent (e.g., in gl_LIST_MOUNTED_FILE_SYSTEMS) need not
45111 double-quote uses of that variable, to accommodate the rare case in
45112 which getmntent is available in none of the libraries checked. This
45113 happens at least on FreeBSD 5.0.
45115 2006-02-13 Simon Josefsson <jas@extundo.com>
45117 * gnulib-tool (Usage): Fix --import, from
45118 karl@freefriends.org (Karl Berry).
45120 2006-02-13 Sergey Poznyakoff <gray@gnu.org.ua>
45122 * lib/argp-fmtstream.c: Restore another bugfix lost on 2005-12-12
45124 2006-02-07 Sergey Poznyakoff <gray@gnu.org.ua>
45126 * lib/argp-namefrob.h: Restore changes accidentally lost during the
45127 "autoupdate" on 2005-12-12.
45129 2006-02-07 Paul Eggert <eggert@cs.ucla.edu>
45131 * modules/closeout (Depends-on): Remove atexit.
45133 2006-02-07 Paul Eggert <eggert@cs.ucla.edu>
45135 * lib/closeout.c (close_stdout): Don't assume 'bool' converts nonzero
45136 ints to 0 or 1, as this isn't true for the stdbool.h substitute.
45138 2006-02-05 Paul Eggert <eggert@cs.ucla.edu>
45140 * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Don't #define
45141 __EXTENSIONS__ if this causes compilation to fail. Problem
45142 reported by Nelson H. F. Beebe with Solaris 10 and Sun C 5.7
45143 c89 -D_XOPEN_SOURCE -D_XOPEN_SOURCE_EXTENDED.
45145 2006-01-27 Paul Eggert <eggert@cs.ucla.edu>
45147 * lib/fnmatch.c (L_): Renamed from L, to work around a bug in
45148 Mac OS X 10.3.9 with GCC 3 reported by Claudio Fontana in
45149 <http://lists.gnu.org/archive/html/bug-gnulib/2006-01/msg00074.html>.
45152 2006-01-26 Simon Josefsson <jas@extundo.com>
45154 * lib/socket_.h: Set WINVER to 0x0501, to make sure getaddrinfo
45155 prototype is visible on mingw32.
45157 * lib/getaddrinfo.h: Define EAI_ADDRFAMILY and EAI_SYSTEM if not set,
45160 * lib/gai_strerror.c, getaddrinfo.h: Protect netdb.h #include (for
45163 2006-01-26 Paul Eggert <eggert@cs.ucla.edu>
45165 * lib/fts.c (diropen): Open with O_NOCTTY | O_NONBLOCK too. Don't
45166 attempt to open for write; this always fails, at least on POSIX
45167 hosts. This reinstates the 2006-01-09 change, which was
45168 inadvertently removed.
45170 2006-01-26 Bruno Haible <bruno@clisp.org>
45172 * gnulib-tool (func_import): Use "trap 'exit $?' instead of "trap :".
45173 Reported by Paul Eggert.
45175 2006-01-26 Bruno Haible <bruno@clisp.org>
45176 Paul Eggert <eggert@cs.ucla.edu>
45178 * lib/stdbool_.h (_Bool)
45179 [(! (defined __cplusplus || defined __BEOS__)
45180 && !defined __GNUC__
45181 && !(defined __HP_cc || defined __xlc__
45182 || (defined __SUNPRO_C && (__SUNPRO_C < 0x550 || __STDC__ == 1))
45183 || defined __sgi))]:
45184 #define to signed char in these cases too; this simplifies
45185 the code (so that we don't have to worry about HP-UX, AIX, SunPRO,
45186 etc., separately) and makes it more conservative.
45188 2006-01-25 Simon Josefsson <jas@extundo.com>
45190 * m4/getaddrinfo.m4: Look for getaddrinfo inside ws2tcip.h and
45191 -lws2_32. Protect sys/socket.h and netdb.h #include's. Include
45192 ws2tcpip.h with WINVER=0x0501. All for mingw32.
45194 2006-01-25 Sergey Poznyakoff <gray@gnu.org.ua>
45196 * lib/argp-namefrob.h: Bugfix. Remove stray #
45198 2006-01-25 Paul Eggert <eggert@cs.ucla.edu>
45200 * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check for xlc bug if __GCC__ too,
45201 so that we test the test.
45202 Check for yet another HP-UX cc bug involving *bool |= bool.
45204 2006-01-25 Karl Berry <karl@gnu.org>
45206 * config/srclist.txt (vasnprintf.c): sync lost.
45208 2006-01-25 Jim Meyering <jim@meyering.net>
45210 Sync from the stable (b5) branch of coreutils:
45212 * lib/fts.c (fts_children): Don't let close() clobber errno from
45215 * lib/fts.c (fts_stat): When following a symlink-to-directory,
45216 don't necessarily interpret stat-fails+lstat-succeeds as indicating
45217 a dangling symlink. That can also happen at least for ELOOP.
45218 The fix: return FTS_SLNONE only when the stat errno is ENOENT.
45219 FYI, this bug predates the inclusion of fts.c in coreutils.
45221 * lib/fts.c (fts_open): Put new maxarglen declaration and uses
45222 in their own block, so pre-c99 compilers don't object.
45224 Avoid the double-free (first in fts_read, second in fts_close) that
45225 would occur when an `active' directory is made inaccessible (e.g.,
45226 via chmod a-x) during a traversal.
45227 * lib/fts.c (fts_read): After a failed fchdir, update sp->fts_cur
45228 before returning. Reproduce this failure by
45229 mkdir -p a/b; cd a; chmod a-x . b
45230 Reported by Stavros Passas.
45232 2006-01-25 Jim Meyering <jim@meyering.net>
45234 * lib/fileblocks.c: Remove more useless parentheses.
45235 * lib/readutmp.h: Likewise.
45237 2006-01-25 Bruno Haible <bruno@clisp.org>
45239 * lib/stdbool_.h (_Bool) [IRIX cc]: Define as 'signed char', to avoid
45241 Reported by Paul Eggert.
45243 2006-01-25 Bruno Haible <bruno@clisp.org>
45245 * gnulib-tool (func_import): Use "trap :" instead of "trap -" to get
45246 rid of a trap command. For Solaris sh.
45247 Reported by Mark D. Baushke <mdb@gnu.org>.
45249 2006-01-24 Simon Josefsson <jas@extundo.com>
45251 * lib/socket_.h (SHUT_WR, SHUT_RDWR): Don't hardcode, suggested by
45254 2006-01-24 Karl Berry <karl@gnu.org>
45256 * config/srclist.txt (argp-namefrob.h): sync lost.
45258 2006-01-24 Jim Meyering <jim@meyering.net>
45260 * modules/openat (Files): Add lib/intprops.h.
45261 From Mark D. Baushke.
45263 2006-01-24 Jim Meyering <jim@meyering.net>
45265 * m4/openat.m4 (gl_FUNC_OPENAT): Add AC_LIBSOURCES([intprops.h]).
45266 Reported by Mark D. Baushke.
45268 2006-01-24 Jim Meyering <jim@meyering.net>
45270 * lib/socket_.h: Remove useless parentheses in uses of cpp `defined'.
45272 2006-01-24 Bruno Haible <bruno@clisp.org>
45274 * modules/strnlen (Maintainer): Change from glibc to all.
45276 2006-01-24 Bruno Haible <bruno@clisp.org>
45278 * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check for IBM and HP-UX bugs.
45279 Patch by Paul Eggert.
45281 2006-01-24 Bruno Haible <bruno@clisp.org>
45283 * lib/stdbool_.h (_Bool) [__cplusplus]: Don't define if the compiler
45285 Report and patch by Albert Chin-A-Young <china@thewrittenword.com> on
45288 * lib/stdbool_.h (_Bool) [HP-UX cc, AIX cc,xlc]: Define as
45289 'signed char' to avoid problems with the built-in _Bool type.
45290 Reported by Paul Eggert on 2005-11-26.
45292 2006-01-24 Bruno Haible <bruno@clisp.org>
45294 * gnulib-tool (func_import): Avoid constructing complicated sed
45295 expressions inside backquote.
45296 Report and solution by Mark D. Baushke <mdb@gnu.org>.
45298 2006-01-23 Ulrich Drepper <drepper@redhat.com>
45300 These changes imported from libc.
45301 * lib/getopt.c: Use __fxprintf instead of inline stream orientation
45302 test and two separate function calls.
45303 * lib/strndup.c (__strndup): Add libc_hidden_def.
45305 2006-01-23 Simon Josefsson <jas@extundo.com>
45307 * modules/lock-tests: Use check_PROGRAMS instead of noinst_PROGRAMS.
45308 Remove the test_*_SOURCES variable: automake infers it by default.
45309 * modules/tls-tests: Likewise.
45311 2006-01-23 Paul Eggert <eggert@cs.ucla.edu>
45313 Work around porting bugs reported by Dieter in
45314 <http://lists.gnu.org/archive/html/bug-bison/2006-01/msg00049.html>.
45315 * lib/getopt.c (_NOPROTO): Remove; no longer needed.
45316 Include <stdlib.h> and <unistd.h> in all environments; it's safe now.
45317 Include "getopt.h" first, to check interface.
45318 (getenv): Declare only if defined HAVE_DECL_GETENV &&
45320 * lib/strndup.c [!_LIBC]: Include "strndup.h" to get prototype.
45321 (__strndup): Revert to K&R-style function dfns, the glibc style.
45322 * lib/strnlen.c: Don't claim it's taken from glibc; it's not.
45323 (strnlen, __strnlen): Remove #defines and #undefs; not needed.
45324 Include strnlen.h first, to get prototype properly.
45325 (strnlen): Renamed from __strnlen.
45328 2006-01-23 Paul Eggert <eggert@cs.ucla.edu>
45330 * m4/getopt.m4 (gl_PREREQ_GETOPT): Check for getenv decl.
45332 2006-01-23 Paul Eggert <eggert@cs.ucla.edu>
45334 * config/srclist.txt: Adjust to reflect glibc reorganization.
45335 This affects only comments.
45337 2006-01-22 Ralf Wildenhues <Ralf.Wildenhues@gmx.de> (tiny change)
45339 * gnulib-tool, build-aux/csharpcomp.sh.in: Do not pass `-q' to mktemp.
45340 Reported by Bruce Korb <bkorb@gnu.org>.
45342 2006-01-22 Paul Eggert <eggert@cs.ucla.edu>
45344 * lib/quotearg.c (quotearg_buffer_restyled): Add "default: break;"
45345 to pacify gcc -Wswitch-default.
45347 2006-01-22 Bruno Haible <bruno@clisp.org>
45349 * lib/vasnprintf.c (VASNPRINTF): In the computation of the size of the
45350 temporary buffer for sprintf, take into account the precision also
45351 for 'd', 'i', 'u', 'o', 'x', 'X'.
45353 2006-01-21 Sergey Poznyakoff <gray@gnu.org.ua>
45355 * modules/argp-tests: New module
45356 * tests/test-argp.c: New file
45357 * tests/test-argp-2.sh: New file
45359 2006-01-21 Sergey Poznyakoff <gray@gnu.org.ua>
45361 * lib/argp-help.c (usage_long_opt): Do not print DOC options.
45362 (__argp_base_name): Removed
45363 * lib/argp-namefrob.h (__argp_basename): Removed definition. Was a
45365 (__argp_base_name): Provide macro definition or extern declaration
45366 depending on the configuration
45368 2006-01-20 Simon Josefsson <jas@extundo.com>
45370 * modules/inet_ntop (Depends-on): Depend on sys_socket.
45372 2006-01-20 Simon Josefsson <jas@extundo.com>
45374 * lib/inet_ntop.h: Unconditionally include sys/socket.h.
45376 2006-01-20 Paul Eggert <eggert@cs.ucla.edu>
45378 * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Use -Wl,-z,ignore
45379 rather than -Xlinker -z -Xlinker ignore, as it's more portable.
45380 Suggested by Bruno Haible.
45382 2006-01-20 Karl Berry <karl@gnu.org>
45384 * config/srclist.txt (argp-fmtstream.h, localcharset.c): comment out
45385 until changes propagate, I guess.
45387 2006-01-19 Simon Josefsson <jas@extundo.com>
45389 * m4/socklen.m4: Look in ws2tcpip.h too, for mingw32.
45391 2006-01-19 Simon Josefsson <jas@extundo.com>
45393 * lib/socket_.h: Map SHUT_RD, SHUT_WR, SHUT_RDWR correctly.
45395 2006-01-19 Simon Josefsson <jas@extundo.com>
45397 * gnulib-tool: Set check_PROGRAMS.
45399 * modules/arcfour-tests, modules/arctwo-tests, modules/crc-tests,
45400 modules/des-tests, modules/gc-arcfour-tests,
45401 modules/gc-arctwo-tests, modules/gc-des-tests,
45402 modules/gc-hmac-md5-tests, modules/gc-hmac-sha1-tests,
45403 modules/gc-md2-tests, modules/gc-md4-tests, modules/gc-md5-tests,
45404 modules/gc-pbkdf2-sha1-tests, modules/gc-rijndael-tests,
45405 modules/gc-sha1-tests, modules/gc-tests, modules/hmac-md5-tests,
45406 modules/hmac-sha1-tests, modules/md2-tests, modules/md4-tests,
45407 modules/md5-tests, modules/readline, modules/rijndael-tests: Use
45408 check_PROGRAMS instead of noinst_PROGRAMS to be able to remove
45411 2006-01-18 Simon Josefsson <jas@extundo.com>
45413 * modules/socklen (Depends-on): Depend on sys_socket.
45415 2006-01-18 Simon Josefsson <jas@extundo.com>
45417 * modules/arcfour-tests, modules/arctwo-tests, modules/crc-tests,
45418 modules/des-tests, modules/gc-arcfour-tests,
45419 modules/gc-arctwo-tests, modules/gc-des-tests,
45420 modules/gc-hmac-md5-tests, modules/gc-hmac-sha1-tests,
45421 modules/gc-md2-tests, modules/gc-md4-tests, modules/gc-md5-tests,
45422 modules/gc-pbkdf2-sha1-tests, modules/gc-rijndael-tests,
45423 modules/gc-sha1-tests, modules/gc-tests, modules/hmac-md5-tests,
45424 modules/hmac-sha1-tests, modules/md2-tests, modules/md4-tests,
45425 modules/md5-tests, modules/readline, modules/rijndael-tests: Add
45426 $(EXEEXT) to automake TESTS variable, for mingw32.
45428 2006-01-17 Simon Josefsson <jas@extundo.com>
45430 * modules/socklen (Include): Need sys/socket.h.
45432 2006-01-17 Bruno Haible <bruno@clisp.org>
45434 * modules/ssize_t (Include): Add <sys/types.h>.
45436 2006-01-16 Paul Eggert <eggert@cs.ucla.edu>
45438 * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Don't use ldd, as
45439 it's not portable and it doesn't work with cross-compiles.
45440 Problem reported by Bruno Haible. Fix missing-$ typo in
45441 'test "gl_cv_ignore_unused_libraries" ...' that prevented
45442 -zignore from being used with Sun's C compiler.
45444 2006-01-12 Simon Josefsson <jas@extundo.com>
45446 * lib/base64.c: Fix warning, reported by Bruno Haible
45447 <bruno@clisp.org> and patch by Paul Eggert <eggert@CS.UCLA.EDU>.
45449 2006-01-12 Bruno Haible <bruno@clisp.org>
45451 * modules/ldd: New file.
45452 * build-aux/ldd.sh.in: New file.
45453 * MODULES.html.sh (Support for building libraries and executables): Add
45456 2006-01-12 Bruno Haible <bruno@clisp.org>
45458 * m4/ldd.m4: New file.
45460 2006-01-12 Bruno Haible <bruno@clisp.org>
45462 * gnulib-tool (func_import, func_create_testdir): Don't go into an
45463 endless loop while replacing $auxdir with build-aux.
45465 2006-01-11 Simon Josefsson <jas@extundo.com>
45467 * lib/stdint_.h (SIZE_MAX): Add missing (.
45469 2006-01-11 Paul Eggert <eggert@cs.ucla.edu>
45471 Sync from coreutils.
45472 * lib/md5.c: Fix commentary typos.
45473 (alignof, UNALIGNED_P): No need for a GCC-specific version.
45474 * lib/md5.h (__attribute__): Remove; unused.
45475 * lib/sha1.c: Fix commentary to match md5 better.
45476 * lib/sha1.h (struct sha1_ctx): Use a word buffer, not a byte buffer,
45477 so that we don't need to worry about alignment. All uses changed.
45478 This merges the 2005-10-28 md5 change into sha1.
45480 2006-01-11 Jim Meyering <jim@meyering.net>
45482 Sync from coreutils.
45483 * lib/md5.c (OP): Fix spacing.
45485 2006-01-11 Bruno Haible <bruno@clisp.org>
45487 Ensure automatic ordering between gl_LOCK and gl_ARGP.
45488 * m4/lock.m4 (gl_LOCK_BODY): Renamed from gl_LOCK.
45489 (gl_LOCK): New macro, requiring gl_LOCK_BODY.
45491 2006-01-11 Bruno Haible <bruno@clisp.org>
45493 Ensure automatic ordering between gl_LOCK and gl_ARGP.
45494 * gnulib-tool (func_import, func_create_testdir): Put gl_LOCK into
45495 the "early" section as well.
45497 2006-01-11 Bruno Haible <bruno@clisp.org>
45499 Avoid "ar: no archive members specified" error on MacOS X.
45500 * gnulib-tool (func_modules_add_dummy): New function.
45501 (func_import, func_create_testdir): Invoke it.
45503 2006-01-11 Bruno Haible <bruno@clisp.org>
45505 * gnulib-tool (func_import, func_create_testdir): Replace build-aux
45506 with $auxdir in AC_CONFIG_FILES statements.
45508 2006-01-11 Bruno Haible <bruno@clisp.org>
45510 * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
45511 Initialize also noinst_HEADERS to empty.
45513 2006-01-11 Bruno Haible <bruno@clisp.org>
45515 * gnulib-tool (AUTOMAKEPATH, AUTOCONF, ACLOCAL, AUTOMAKE): New
45517 (func_create_megatestdir): Call aclocal, autoconf, automake here, not
45520 2006-01-11 Bruno Haible <bruno@clisp.org>
45522 * gnulib-tool (AUTOCONF, ACLOCAL, AUTOMAKE, AUTORECONF): Make
45523 overridable by the user.
45524 Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
45526 2006-01-10 Simon Josefsson <jas@extundo.com>
45528 * modules/sys_socket: New file.
45530 2006-01-10 Simon Josefsson <jas@extundo.com>
45532 * m4/sys_socket_h.m4: New file.
45534 2006-01-10 Simon Josefsson <jas@extundo.com>
45536 * lib/socket_.h: New file.
45538 2006-01-10 Paul Eggert <eggert@cs.ucla.edu>
45540 * modules/readutmp (Maintainer): Add myself.
45542 2006-01-10 Paul Eggert <eggert@cs.ucla.edu>
45544 * m4/memcoll.m4 (gl_MEMCOLL): Don't require AC_FUNC_MEMCMP, undoing
45545 the 2002-12-31 change. Problem and fix reported by Bruno Haible.
45546 People who are still concerned with buggy memcmp implementations
45547 can invoke gl_FUNC_MEMCMP themselves.
45549 2006-01-10 Paul Eggert <eggert@cs.ucla.edu>
45551 * lib/regex_internal.h (BITSET_WORD_BITS):
45552 Work around a bug in 64-bit PGC (before version 6.1-2), where the
45553 preprocessor mishandles large unsigned values as if they were signed.
45554 Problem reported by Claudio Fontana in
45555 <http://lists.gnu.org/archive/html/bug-gnulib/2005-12/msg00061.html>.
45557 2006-01-10 Jim Meyering <jim@meyering.net>
45559 Avoid the double-free (first in fts_read, second in fts_close) that
45560 would occur when an `active' directory is made inaccessible (e.g.,
45561 via chmod a-x) during a traversal.
45562 * lib/fts.c (fts_read): After a failed fchdir, update sp->fts_cur
45563 before returning. Reproduce this failure by
45564 mkdir -p a/b; cd a; chmod a-x . b
45565 Reported by Stavros Passas.
45567 Sync from coreutils.
45568 * lib/sha1.c: Tweak grammar in a comment.
45570 2006-01-10 Jim Meyering <jim@meyering.net>
45572 * m4/fpending.m4: Also include <stdio.h>, for Dragonfly.
45573 Patch by Joerg Sonnenberger.
45575 2006-01-10 Bruno Haible <bruno@clisp.org>
45577 * modules/readutmp: Depend on module free.
45578 * modules/strtok_r: Depend on module restrict.
45580 2006-01-10 Bruno Haible <bruno@clisp.org>
45582 * modules/gettext (configure.ac): Add an invocation of
45583 AM_GNU_GETTEXT_VERSION. Needed since autoreconf is used by gnulib-tool.
45585 2006-01-10 Bruno Haible <bruno@clisp.org>
45587 * m4/localcharset.m4 (gl_LOCALCHARSET): Also test for getc_unlocked.
45588 Reported by Werner Lemberg <wl@gnu.org>.
45590 2006-01-10 Bruno Haible <bruno@clisp.org>
45592 * lib/localcharset.c: Update from GNU gettext.
45594 2006-01-10 Bruno Haible <bruno@clisp.org>
45596 * lib/argp.h (__const): Remove macro. Use const instead.
45597 * lib/argp-fmtstream.h (__const): Likewise.
45598 * lib/glob_.h (__const): Remove macro.
45599 * lib/glob-libc.h: Use const instead of __const.
45601 2006-01-10 Bruno Haible <bruno@clisp.org>
45603 * gnulib-tool (func_emit_tests_Makefile_am): Emit an empty SUBDIR
45605 Needed to avoid an automake error regarding the 'gettext' module.
45607 2006-01-09 Simon Josefsson <jas@extundo.com>
45609 * modules/inet_ntop (Depends-on): Add restrict.
45611 2006-01-09 Simon Josefsson <jas@extundo.com>
45613 * modules/gc-rijndael-tests (License): Put under LGPL.
45615 * modules/gc-des-tests (License): Likewise.
45617 * modules/gc-arcfour-tests (License): Likewise.
45619 * modules/gc-arctwo-tests (License): Likewise.
45621 * modules/gc-pbkdf2-sha1-tests (License): Likewise.
45623 * modules/gc-hmac-sha1-tests (Files): Likewise.
45625 * modules/gc-hmac-md5-tests (License): Likewise.
45627 * modules/gc-sha1-tests (License): Likewise.
45629 * modules/gc-md5-tests (License): Likewise.
45631 * modules/gc-md4-tests (License): Likewise.
45633 * modules/gc-md2-tests (License): Likewise.
45635 * modules/gc-tests (License): Likewise.
45637 * modules/des-tests (License): Likewise.
45639 * modules/md4-tests (License): Likewise.
45641 * modules/md2-tests (License): Likewise.
45643 2006-01-09 Paul Eggert <eggert@cs.ucla.edu>
45645 Sync from coreutils:
45647 * MODULES.html.sh (build_lib): New section, with new lib-ignore module.
45648 * modules/lib-ignore: New file.
45649 * modules/mkdir-p (Files): Add chdir-safer.c, chdir-safer.h, lchmod.h,
45650 chdir-safer.m4, lchmod.m4.
45651 * modules/openat: Add mkdirat.c, openat-priv.h.
45653 2006-01-09 Paul Eggert <eggert@cs.ucla.edu>
45655 Sync from coreutils.
45656 * m4/lib-ignore.m4: New file.
45657 * m4/lchmod.m4: New file.
45659 2006-01-09 Paul Eggert <eggert@cs.ucla.edu>
45661 Sync from coreutils.
45662 * lib/chdir-long.c (cdb_free): Don't bother trying to open directory
45663 for write access: POSIX says that must fail.
45664 * lib/fts.c (diropen): Likewise.
45665 * lib/save-cwd.c (save_cwd): Likewise.
45666 * lib/chdir-long.c (cdb_free): Open with O_NOCTTY | O_NONBLOCK as
45667 well, for minor improvements on hosts that lack O_DIRECTORY.
45668 * lib/chown.c (rpl_chown) [CHOWN_MODIFIES_SYMLINK]:
45669 Don't try O_WRONLY unless O_RDONLY failed wth EACCES.
45670 Fall back on chown if open failed with EACCES.
45672 * lib/gettime.c (gettime) [!defined OK_TO_USE_1S_CLOCK]:
45673 Report an error at compile-time if only a 1-second nominal clock
45674 resolution is found.
45676 * lib/lchmod.h: New file.
45677 * lib/mkdir-p.c: Include lchmod.h, lchown.h.
45678 (make_dir_parents): Use lchown rather than chown, and
45679 lchmod rather than chmod.
45681 * lib/mountlist.c (ME_DUMMY): "none" and "proc" file systems are
45682 dummies too. Problem with "none" reported by Bob Proulx. Problem with
45683 "proc" reported by n0dalus.
45685 * lib/mountlist.c: Include <limits.h>.
45686 (dev_from_mount_options)
45687 [defined MOUNTED_GETMNTENT1 || defined MOUNTED_GETMNTENT2]:
45688 New function. It no longer assumes "dev=" has the System V meaning
45689 on Linux (since it doesn't). It also parses "dev=" more carefully.
45690 (read_file_system_list)
45691 [defined MOUNTED_GETMNTENT1 || defined MOUNTED_GETMNTENT2]: Use it.
45692 MOUNTED_GETMNTENT2 is new here; the code didn't used to look for
45695 * lib/posixtm.h (PDS_PRE_2000): New macro.
45696 * lib/posixtm.c (year): Arg is now syntax_bits rather than
45697 allow_century. All usages changed. Reject dates outside the range
45698 1969-1999 if PDS_PRE_2000 is used.
45700 2006-01-09 Paul Eggert <eggert@cs.ucla.edu>
45702 Sync from coreutils.
45703 * doc/getdate.texi (General date syntax): Invalid dates are rejected.
45704 (Time of day items): Mention the possibility of leap seconds.
45705 Problem reported by Dr. David Alan Gilbert.
45707 2006-01-09 Jim Meyering <jim@meyering.net>
45709 Sync from coreutils.
45711 * lib/version-etc.c (COPYRIGHT_YEAR): Update to 2006.
45713 * lib/chdir-safer.h, lib/chdir-safer.c: New files.
45715 * lib/modechange.c (mode_compile): Reject an invalid mode string
45716 that starts with an octal digit. From Andreas Gruenbacher.
45718 * lib/openat.c: Include "fcntl--.h" and "unistd--.h", to map open
45719 and dup to open_safer and dup_safer, respectively.
45720 (openat_permissive): Fix typo in comment.
45722 * lib/openat.c: Don't include <stdlib.h>, <unistd.h>, <fcntl.h>,
45723 "gettext.h"; either no longer needed or are guaranteed by openat.h.
45724 (_): Remove; no longer needed.
45725 (openat): Renamed from rpl_openat; no need for rpl_openat
45726 since openat.h renames openat for us.
45727 Replace most of the body with a call to openat_permissive,
45728 to avoid duplicate code.
45729 Port to (probably hypothetical) environments were mode_t is
45731 (openat_permissive): Require mode arg, so that we can check
45732 types better. Put it just after flags. Change cwd failure
45733 indicator from pointer-to-bool to pointer-to-errno-value.
45734 All callers changed.
45735 Invoke openat_save_fail and/or openat_restore_fail if
45736 cwd_errno is null, so that openat can call us.
45737 (openat_permissive, fdopendir, fstatat, unlinkat):
45738 Simplify errno handling to avoid some duplicate code,
45739 as it's OK to set errno on success.
45740 * lib/openat.h: Revamp code so that function macros depend on
45741 __OPENAT_PREFIX only, not also on AT_FDCWD.
45742 (openat_ro): Remove. Caller changed to use openat_permissive.
45743 (openat_permissive): Now a macro, if not a function.
45744 (openat_restore_fail, openat_save_fail): Now always functions,
45745 since mkdirat needs them even if __OPENAT_PREFIX is defined.
45747 * lib/openat-priv.h: New file, defining macros used by mkdirat.c
45749 * lib/mkdirat.c: Include openat-priv.h.
45750 Remove definitions of macros defined therein.
45751 * lib/openat.c: Likewise.
45753 * lib/mkdirat.c (mkdirat): New file and function.
45754 * lib/openat.h (mkdirat): Declare.
45756 * lib/openat.c (fdopendir): Don't change errno when returning non-NULL.
45758 * lib/openat.h (openat_permissive): Declare.
45759 (openat_ro): Define.
45761 * lib/openat.c (EXPECTED_ERRNO): New macro.
45762 (openat_permissive): New function -- used in remove.c rewrite.
45763 (all functions): Set errno just before returning, only if there
45764 was an actual failure.
45765 Use EXPECTED_ERRNO rather than comparing against only ENOTDIR.
45767 Emulate openat-family functions using Linux's procfs, if possible.
45768 Idea and some code based on Ulrich Drepper's glibc changes.
45770 * lib/openat.c: (BUILD_PROC_NAME): New macro.
45771 Include <stdio.h>, <string.h>, "alloca.h" and "intprops.h".
45772 (rpl_openat): Emulate by trying to open /proc/self/fd/%d/%s,
45773 before falling back on save_cwd and restore_cwd.
45774 (fdopendir, fstatat, unlinkat): Likewise.
45776 * lib/openat.c (fstatat, unlinkat): Perform the syscall directly,
45777 skipping the save_cwd...restore_cwd overhead, if FILE is absolute.
45779 * lib/openat.c (rpl_openat): Use the promoted type (int), not mode_t,
45780 as second argument to va_arg. Otherwise, some versions of gcc
45781 warn that `if this code is reached, the program will abort'.
45783 2006-01-09 Jim Meyering <jim@meyering.net>
45785 Sync from coreutils.
45786 * m4/openat.m4 (gl_FUNC_OPENAT): Require and compile mkdirat.c.
45787 Require openat-priv.h.
45789 2006-01-09 Bruno Haible <bruno@clisp.org>
45791 * modules/strnlen (Include): Use strnlen.h.
45793 2006-01-09 Bruno Haible <bruno@clisp.org>
45795 * m4/stdint.m4 (gl_STDINT_H): Also test for <sys/bitypes.h>.
45797 2006-01-09 Bruno Haible <bruno@clisp.org>
45799 * lib/sysexit_.h (EX_OK): New macro.
45800 Suggested by Martin Lambers <marlam@marlam.de>.
45802 2006-01-09 Bruno Haible <bruno@clisp.org>
45804 * lib/stdint_.h: On Linux libc4 and libc5, include <sys/bitypes.h> and
45805 don't define _STDINT_H_NEED_SIGNED_INT_TYPES.
45807 2006-01-09 Bruno Haible <bruno@clisp.org>
45809 * lib/stdint_.h (SIZE_MAX): Write the value without involving negative
45812 2006-01-09 Bruno Haible <bruno@clisp.org>
45814 * lib/javacomp.sh.in: Move to ../build-aux/javacomp.sh.in.
45815 * lib/javaexec.sh.in: Move to ../build-aux/javaexec.sh.in.
45816 * lib/csharpcomp.sh.in: Move to ../build-aux/csharpcomp.sh.in.
45817 * lib/csharpexec.sh.in: Move to ../build-aux/csharpexec.sh.in.
45819 2006-01-09 Bruno Haible <bruno@clisp.org>
45821 * build-aux/javacomp.sh.in: New file, moved from lib/.
45822 * modules/javacomp-script (Files): Update.
45823 (configure.ac): Add AC_CONFIG_FILES invocation.
45824 (EXTRA_DIST): Remove variable.
45826 * build-aux/javaexec.sh.in: New file, moved from lib/.
45827 * modules/javaexec (Files): Update.
45828 (configure.ac): Add AC_CONFIG_FILES invocation.
45829 (EXTRA_DIST): Remove javaexec.sh.in.
45831 * build-aux/csharpcomp.sh.in: New file, moved from lib/.
45832 * modules/csharpcomp-script (Files): Update.
45833 (configure.ac): Add AC_CONFIG_FILES invocation.
45834 (EXTRA_DIST): Remove variable.
45836 * build-aux/csharpexec.sh.in: New file, moved from lib/.
45837 * modules/csharpexec (Files): Update.
45838 (configure.ac): Add AC_CONFIG_FILES invocation.
45839 (EXTRA_DIST): Remove csharpexec.sh.in.
45841 2006-01-09 Andreas Gruenbacher <agruen@suse.de>
45843 Sync from coreutils.
45845 Add POSIX ACL support
45846 * lib/acl.h (copy_acl, set_acl): Add declarations.
45847 * lib/acl.c (acl_entries): Add fallback implementation for POSIX ACL
45848 systems other than Linux.
45849 (chmod_or_fchmod): New function: use fchmod when possible,
45850 and chmod otherwise.
45851 (file_has_acl): Add a POSIX ACL implementation, with a
45852 Linux-specific subcase.
45853 (copy_acl): Add: copy an acl and S_ISUID, S_ISGID, and
45854 S_ISVTX from one file to another. Fall back to fchmod/chmod when
45855 acls are unsupported.
45856 (set_acl): Add: set a file's acl and S_ISUID, S_ISGID, and
45857 S_ISVTX to a defined value. Fall back to fchmod/chmod when acls
45860 2006-01-09 Andreas Gruenbacher <agruen@suse.de>
45862 Sync from coreutils.
45863 * m4/acl.m4 (AC_FUNC_ACL): Add POSIX ACL and Linux-specific acl tests.
45865 2006-01-07 Bruno Haible <bruno@clisp.org>
45867 * gnulib-tool (func_import): Add an AC_PROG_RANLIB dependency to
45870 2006-01-04 Paul Eggert <eggert@cs.ucla.edu>
45872 * lib/strftime.c (tzname): Don't declare if it is already #defined.
45873 Problem reported for Mingw by Mark Junker.
45875 2006-01-04 Paul Eggert <eggert@cs.ucla.edu>
45877 * README: Gnulib normally doesn't generate a tarball.
45879 2006-01-03 Paul Eggert <eggert@cs.ucla.edu>
45881 * lib/xtime.h (xtime_make, xtime_nonnegative_nsec, xtime_nsec): Use
45882 long int, not int, for nanosecond counts, so that people who are
45883 used to POSIX struct timespec won't be surprised. Reported by Jim
45886 2005-12-28 Bruno Haible <bruno@clisp.org>
45888 * build-aux/config.rpath: Update from GNU gettext.
45890 2005-12-16 Jim Meyering <jim@meyering.net>
45892 * modules/fprintftime: New module.
45893 * MODULES.html.sh (Date and time <time.h>): Add fprintftime.
45895 2005-12-16 Jim Meyering <jim@meyering.net>
45897 * m4/fprintftime.m4: New file.
45899 2005-12-16 Jim Meyering <jim@meyering.net>
45901 * lib/fprintftime.c, lib/fprintftime.h: New files.
45903 2005-12-15 Simon Josefsson <jas@extundo.com>
45905 * modules/socklen (configure.ac): Fix M4 macro name, to align with
45908 2005-12-10 Sergey Poznyakoff <gray@gnu.org.ua>
45910 * m4/argp.m4: Define HAVE_DECL_PROGRAM_INVOCATION_NAME and
45911 HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME
45913 2005-12-10 Sergey Poznyakoff <gray@gnu.org.ua>
45915 * lib/argp-fmtstream.c (__argp_fmtstream_update): Fix coredump
45916 * lib/argp-help.c (fill_in_uparams): Check if the constructed
45917 struct uparams is valid. Fall back to the default values if it is
45920 2005-12-09 Sergey Poznyakoff <gray@gnu.org.ua>
45922 * modules/argp (Files): Add argp-pin.c
45923 (Depends-on): dirname
45924 (lib_SOURCES): Add argp-pin.c
45926 2005-12-09 Sergey Poznyakoff <gray@gnu.org.ua>
45928 * m4/argp.m4: Check if program_invocation_name and
45929 program_invocation_short_name are declared and define appropriate
45930 macros if they are not.
45932 2005-12-09 Sergey Poznyakoff <gray@gnu.org.ua>
45934 * lib/argp-help.c (__argp_base_name): New function
45935 (__argp_short_program_name): Rewrite using __argp_base_name
45936 * lib/argp-namefrob.h: Define program_invocation_name and
45937 program_invocation_short_name if requested
45938 (__argp_base_name): Add prototype
45939 * lib/argp-parse.c (argp_def): Use gettext wrappers
45940 (argp_default_parser): Use __argp_base_name
45941 * lib/argp-pin.c: New file. Defines program_invocation_name and
45942 program_invocation_short_name on systems that lack them.
45944 2005-12-07 Paul Eggert <eggert@cs.ucla.edu>
45946 * m4/stat-time.m4 (gl_STAT_TIME): Add check for
45947 TYPEOF_STRUCT_STAT_ST_ATIM_IS_STRUCT_TIMESPEC, to fix IRIX 5.3
45948 porting problem reported by Georg Schwarz in
45949 <http://lists.gnu.org/archive/html/bug-coreutils/2005-12/msg00083.html>.
45951 2005-12-07 Paul Eggert <eggert@cs.ucla.edu>
45953 * lib/stat-time.h (STATE_TIMESPEC, STAT_TIMESPEC_NS): Add check for
45954 TYPEOF_STRUCT_STAT_ST_ATIM_IS_STRUCT_TIMESPEC, to fix IRIX 5.3
45955 porting problem reported by Georg Schwarz in
45956 <http://lists.gnu.org/archive/html/bug-coreutils/2005-12/msg00083.html>.
45958 2005-12-05 Bruno Haible <bruno@clisp.org>
45960 * lib/csharpcomp.sh.in (options_csc): For -l option, add a .dll suffix.
45961 * lib/csharpcomp.c (compile_csharp_using_sscli): Likewise.
45962 Reported by Mark Junker <mjscod@gmx.de>.
45964 2005-12-02 Paul Eggert <eggert@cs.ucla.edu>
45966 * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Renamed from gl_SOCKLEN_T.
45967 Use implementation from Albert Chin, with some
45968 comments/corrections by Stepan Kasal and myself.
45970 2005-12-02 Bruno Haible <bruno@clisp.org>
45972 * gnulib-tool (func_import): Accept GPLed build tool modules when
45974 * modules/csharpcomp-script: New file.
45975 * modules/csharpcomp: Depend on it.
45976 * modules/javacomp-script: New file.
45977 * modules/javacomp: Depend on it.
45978 Suggested by Simon Josefsson.
45980 2005-12-01 Paul Eggert <eggert@cs.ucla.edu>
45982 * m4/regex.m4 (gl_REGEX): Check whether off_t can be used in a switch
45983 statement, to work around an HP-UX 10.20 compiler bug reported by
45986 2005-11-29 Paul Eggert <eggert@cs.ucla.edu>
45988 * modules/savedir (Depends-on): Add openat.
45990 2005-11-29 Paul Eggert <eggert@cs.ucla.edu>
45992 * lib/stdint_.h (intmax_t) [defined intmax_t]: Do not declare.
45993 (uintmax_t) [defined uintmax_t]: Do not declare.
45994 (SIZE_MAX) [defined SIZE_MAX]: Do not define.
45995 This works around a problem if intmax_t.m4 and/or uintmax_t.m4
45996 and/or size_max.m4 are also used. Problem reported by Mark D. Baushke.
45997 (SIZE_MAX): Define to ((size_t) -1), not (~(size_t)0), for the
45998 sake of portability to weird hosts that C allows (though we don't
45999 know of any practical examples).
46001 * lib/savedir.h (fdsavedir): New decl.
46002 * lib/savedir.c (fdsavedir, savedirstream): New functions; the latter
46003 contains most of the former guts of savedir.
46004 (savedir): Use savedirstream.
46005 Include "openat.h".
46007 2005-11-25 Paul Eggert <eggert@cs.ucla.edu>
46009 * modules/obstack (Files): Add m4/ulonglong.m4.
46010 Problem reported by Davide Angelocola.
46012 2005-11-15 Paul Eggert <eggert@cs.ucla.edu>
46014 * lib/xstrtod.c: Don't bother with #pragma STDC FENV_ACCESS ON, as
46015 coreutils no longer futzes with rounding modes.
46017 2005-11-14 Jim Meyering <jim@meyering.net>
46019 * lib/mkstemp-safer.c: Include <config.h>, required for possible
46020 replacement of mkstemp.
46022 2005-11-10 Simon Josefsson <jas@extundo.com>
46024 * lib/readline.c: Remove EOL.
46026 2005-11-10 Paul Eggert <eggert@cs.ucla.edu>
46028 * modules/gethrxtime (Depends-on): Add gettime.
46030 2005-11-10 Paul Eggert <eggert@cs.ucla.edu>
46032 * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Don't require AC_HEADER_TIME
46033 or gettimeofday; no longer needed.
46035 2005-11-10 Paul Eggert <eggert@cs.ucla.edu>
46037 * lib/gethrxtime.c: Include "timespec.h" rather than the sys/time /
46039 (gethrxtime) [! (HAVE_NANOUPTIME
46040 || (defined CLOCK_MONOTONIC && HAVE_CLOCK_GETTIME)
46041 || HAVE_MICROUPTIME)]: Fall back on gettime rather than rolling
46042 our own approximation.
46044 2005-11-08 Eric Blake <ebb9@byu.net>
46046 * lib/inet_ntop.h: Use #if !, not #ifndef, for AC_CHECK_DECLS.
46048 2005-11-08 Eric Blake <ebb9@byu.net>
46050 * lib/getaddrinfo.h: Use #if !, not #ifndef, for AC_CHECK_DECLS.
46052 2005-11-04 Bruno Haible <bruno@clisp.org>
46054 * gnulib-tool: Implement --update mode.
46056 2005-10-30 Paul Eggert <eggert@cs.ucla.edu>
46058 Fix porting problem reported by Theodoros V. Kalamatianos.
46059 * lib/utimens.c (futimens) [HAVE_WORKING_UTIMES && HAVE_FUTIMES]:
46060 Don't assume that futimes failing means we must fail.
46062 2005-10-30 Paul Eggert <eggert@cs.ucla.edu>
46064 * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Revamp wording and local
46065 variables to suggest the intended function of the PATH_MAX check.
46067 2005-10-30 Kean Johnston <jkj@sco.com>
46069 Trivial changes to support SCO systems.
46070 * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Check for MAXPATHLEN as well
46072 * m4/fpending.m4 (gl_FUNC_FPENDING): Correct check for SCO systems,
46073 where __ptr is null when no I/O is pending.
46075 2005-10-29 Paul Eggert <eggert@cs.ucla.edu>
46077 * lib/getcwd.c (__getcwd): Don't assume that system calls after readdir
46078 leave errno alone. Problem reported by Dmitry V. Levin.
46080 2005-10-28 Simon Josefsson <jas@extundo.com>
46082 * tests/test-gc-md4.c, tests/test-gc-md5.c, tests/test-gc-sha1.c:
46085 * tests/test-gc-md2.c, tests/test-md2.c: New files.
46087 * modules/md2, modules/md2-tests: New files.
46089 2005-10-28 Simon Josefsson <jas@extundo.com>
46091 * m4/inet_ntop.m4: More tests.
46093 * m4/gc-md2.m4, md2.m4: New file.
46095 2005-10-28 Simon Josefsson <jas@extundo.com>
46097 * lib/inet_ntop.h, inet_ntop.c: Make it work under mingw32: Add
46098 "restrict" keywords, as per POSIX. Protect the function
46099 declaration around HAVE_DECL_INET_NTOP rather than HAVE_INET_NTOP.
46100 Don't use K&R prototypes. Check the sprintf return values.
46101 Re-define EAFNOSUPPORT if not present. Indent.
46103 * lib/md5.h, md5.c: Simplify buffer handling visavi alignment,
46104 suggested by Bruno Haible <bruno@clisp.org>.
46106 * lib/gc-gnulib.c, gc-libgcrypt.c: Check calloc return value.
46108 * lib/gc.h: Add MD2 and RMD160 length defines. Add prototypes.
46110 * lib/gc-libgcrypt.c: Add MD2 (which is not available through
46113 * lib/gc-gnulib.c: Add MD2. Implement gc_hash_* API.
46115 * lib/md2.h, lib/md2.c: New files.
46117 2005-10-28 Paul Eggert <eggert@cs.ucla.edu>
46119 * lib/savedir.c (savedir): Don't assume that xrealloc etc. leave
46120 errno alone. Problem reported by Frederic Jolliton.
46122 2005-10-27 Paul Eggert <eggert@cs.ucla.edu>
46124 * modules/verify (License): Change from GPL to LGPL. This is a
46125 tiny module and there are apparently near-equivalents that are
46126 under the BSD license.
46128 2005-10-24 Simon Josefsson <jas@extundo.com>
46130 * modules/sha1: Relicense to LGPL.
46132 2005-10-24 Simon Josefsson <jas@extundo.com>
46134 * lib/md4.h: Shrink buffer size, now that we changed the type.
46136 2005-10-23 Simon Josefsson <jas@extundo.com>
46138 * gnulib-tool (func_import): Fix --tests-base.
46140 2005-10-22 Simon Josefsson <jas@extundo.com>
46142 * modules/arcfour (Depends-on): Need stdint.
46144 2005-10-22 Simon Josefsson <jas@extundo.com>
46146 * m4/gc.m4: Don't be fooled by --disable-*random-device parameters,
46147 suggested by Bruno Haible <bruno@clisp.org>. Fix error messages.
46149 2005-10-22 Simon Josefsson <jas@extundo.com>
46151 * lib/md4.h, md4.c: Simplify buffer handling visavi alignment,
46152 suggested by Bruno Haible <bruno@clisp.org>.
46154 2005-10-22 Simon Josefsson <jas@extundo.com>
46156 * lib/crc.h: Include stddef.h, for size_t.
46158 2005-10-22 Simon Josefsson <jas@extundo.com>
46160 * lib/arcfour.h, arcfour.c: Use fixed size indices in the
46161 arcfour_context struct (simplify test vector testing in GNU
46164 2005-10-21 Simon Josefsson <jas@extundo.com>
46166 * modules/des, modules/des-tests: New files.
46168 * modules/gc-des, modules/gc-des-tests: New files.
46170 * tests/test-des.c, tests/test-gc-des.c: New file.
46172 2005-10-21 Simon Josefsson <jas@extundo.com>
46174 * modules/arctwo, modules/arctwo-tests: New files.
46176 * tests/test-arctwo.c: New file.
46178 * modules/gc-arctwo, modules/gc-arctwo-tests: New files.
46180 * tests/test-gc-arctwo.c: New file.
46182 2005-10-21 Simon Josefsson <jas@extundo.com>
46184 * m4/gc.m4: Don't use libgcrypt if gcrypt.h isn't found, suggested by
46185 Bruno Haible <bruno@clisp.org>.
46187 * m4/gc-des.m4: New file.
46189 2005-10-21 Simon Josefsson <jas@extundo.com>
46191 * m4/arctwo.m4: New file.
46193 * m4/gc-arctwo.m4: New file.
46195 2005-10-21 Simon Josefsson <jas@extundo.com>
46197 * lib/rijndael-api-fst.c: Fix bugs in CBC mode for more than one
46200 2005-10-21 Simon Josefsson <jas@extundo.com>
46202 * lib/hmac-md5.c (hmac_md5): Add comments, suggested by Bruno Haible
46205 * lib/hmac-sha1.c (hmac_sha1): Likewise.
46207 * lib/crc.c (crc32_update): Actually use crc parameter, suggested by
46208 Bruno Haible <bruno@clisp.org>.
46210 * lib/crc.h: Include stdint.h directly, suggested by Bruno Haible
46213 2005-10-21 Simon Josefsson <jas@extundo.com>
46215 * lib/gc-libgcrypt.c (gc_cipher_open): Handle ECB.
46217 2005-10-21 Simon Josefsson <jas@extundo.com>
46219 * lib/gc-gnulib.c: Support ARCTWO in CBC mode.
46221 2005-10-21 Simon Josefsson <jas@extundo.com>
46223 * lib/des.h, lib/des.c: New files.
46225 * lib/gc-gnulib.c: Support DES.c
46227 2005-10-21 Simon Josefsson <jas@extundo.com>
46229 * lib/arctwo.h, lib/arctwo.c: New files.
46231 * lib/gc-gnulib.c: Support ARCTWO.
46233 2005-10-21 Simon Josefsson <jas@extundo.com>
46235 * lib/arctwo.h (arctwo_setkey): Protect variable in CPP macro,
46236 suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
46238 2005-10-21 Simon Josefsson <jas@extundo.com>
46240 * gnulib-tool (func_import, func_create_testdir): Define automake
46241 conditional GL_COND_LIBTOOL if libtool is used (to be used by modules
46242 Makefile.am snippet),
46243 suggested by Bruno Haible <bruno@clisp.org>.
46245 * modules/gc (Makefile.am): Use it.
46247 2005-10-21 Bruno Haible <bruno@clisp.org>
46249 * gnulib-tool (func_import, func_create_testdir): Add quoting to last
46252 2005-10-19 Simon Josefsson <jas@extundo.com>
46254 * tests/test-gc-rijndael.c: New file.
46256 * modules/gc-rijndael, modules/gc-rijndael-test: New files.
46258 2005-10-19 Simon Josefsson <jas@extundo.com>
46260 * tests/test-gc-md4.c, tests/test-gc-md5.c: Test gc_hash_buffer
46263 2005-10-19 Simon Josefsson <jas@extundo.com>
46265 * tests/test-gc-arcfour.c: New file.
46267 * modules/gc-arcfour, modules/gc-arcfour-tests: New files.
46269 2005-10-19 Simon Josefsson <jas@extundo.com>
46271 * modules/gc-md4, modules/gc-md4-tests: New file.
46273 * tests/test-gc-md4.c: New file.
46275 2005-10-19 Simon Josefsson <jas@extundo.com>
46277 * m4/gc-md4.m4: New file.
46279 2005-10-19 Simon Josefsson <jas@extundo.com>
46281 * m4/gc-hmac-md5.m4, gc-hmac-sha1.m4, gc-md4.m4,
46282 gc-md5.m4, gc-sha1.m4: Fix typo, suggested by Stepan Kasal
46285 2005-10-19 Simon Josefsson <jas@extundo.com>
46287 * m4/gc-arcfour.m4: New file.
46289 * m4/gc-rijndael.m4: New file.
46291 2005-10-19 Simon Josefsson <jas@extundo.com>
46293 * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Support MD4.
46295 2005-10-19 Simon Josefsson <jas@extundo.com>
46297 * lib/gc-gnulib.c: Support ARCFOUR.
46299 2005-10-19 Simon Josefsson <jas@extundo.com>
46301 * lib/gc-gnulib.c: Implement gc_cipher_* API, currently only with AES
46304 * lib/gc.h: Add ECB enum type.
46306 * lib/hmac-md5.c, hmac-sha1.c: Include memxor.h.
46308 2005-10-18 Simon Josefsson <jas@extundo.com>
46310 * tests/test-md5.c: New file.
46312 * modules/md5-tests: New file.
46314 2005-10-18 Simon Josefsson <jas@extundo.com>
46316 * tests/test-md4.c: New file.
46318 * modules/md4, modules/md4-tests: New files.
46320 2005-10-18 Simon Josefsson <jas@extundo.com>
46322 * m4/md4.m4: New file.
46324 2005-10-18 Simon Josefsson <jas@extundo.com>
46326 * lib/md4.h, lib/md4.c: New files, based on md5.?.
46328 2005-10-17 Stepan Kasal <kasal@ucw.cz>
46330 * gnulib-tool (func_create_testdir): Omit the second check whether
46331 BUILT_SOURCES in nonempty.
46333 2005-10-17 Simon Josefsson <jas@extundo.com>
46335 * tests/test-rijndael.c: New file.
46337 2005-10-17 Simon Josefsson <jas@extundo.com>
46339 * modules/sha1: Depend on stdint instead of md5.
46341 * modules/md5: Depend on stdint, remove uint32_t.
46343 2005-10-17 Simon Josefsson <jas@extundo.com>
46345 * modules/gc-sha1-tests: New file.
46347 * tests/test-gc-sha1.c: New file.
46349 2005-10-17 Simon Josefsson <jas@extundo.com>
46351 * m4/md5.m4: Remove call to uint32_t.m4.
46353 2005-10-17 Simon Josefsson <jas@extundo.com>
46355 * lib/sha1.c: Use uint32_t instead of md5_uint32.t
46357 * lib/sha1.h: Use stdint.h and uint32_t instead of md5_uint32 from
46360 * lib/md5.c: Use uin32_t. Fix non-gcc UNALIGNED_P macro.
46362 * lib/md5.h: Use stdint.h and uint32_t. Doc fix.
46364 2005-10-17 Simon Josefsson <jas@extundo.com>
46366 * lib/gc.h, gc-libgcrypt.c: Add more hash types/functions.
46368 2005-10-17 Simon Josefsson <jas@extundo.com>
46370 * lib/gc.h, gc-libgcrypt.c: Add ciphers.
46372 2005-10-17 Simon Josefsson <jas@extundo.com>
46374 * lib/gc-libgcrypt.c (gc_hmac_sha1): Fix assert.
46376 * lib/gc.h (gc_nonce, gc_pseudo_random, gc_random): Add prototypes.
46378 2005-10-17 Bruno Haible <bruno@clisp.org>
46380 * m4/stdbool.m4 (AC_HEADER_STDBOOL): Change the return statement so
46381 that it can also be used in a test.
46383 2005-10-16 Bruno Haible <bruno@clisp.org>
46385 * gnulib-tool (func_emit_tests_Makefile_am): Also define
46386 TESTS_ENVIRONMENT, so that individual tests can augment it.
46388 * gnulib-tool (func_create_testdir): Use an intermediate target for
46389 building $(BUILT_SOURCES). Needed because BUILT_SOURCES can contain
46390 macros, like $(ALLOCA_H), which cannot be passed through the command
46393 2005-10-15 Simon Josefsson <jas@extundo.com>
46395 * modules/rijndael-tests: New file.
46397 * modules/rijndael: New file.
46399 2005-10-15 Simon Josefsson <jas@extundo.com>
46401 * m4/rijndael.m4: New file.
46403 2005-10-15 Simon Josefsson <jas@extundo.com>
46405 * lib/rijndael-api-fst.h, lib/rijndael-api-fst.c: New files.
46407 * lib/rijndael-alg-fst.h, lib/rijndael-alg-fst.c: New files.
46409 2005-10-14 Simon Josefsson <jas@extundo.com>
46411 * tests/test-arcfour.c: New file.
46413 * modules/arcfour, modules/arcfour-tests: New files.
46415 2005-10-14 Simon Josefsson <jas@extundo.com>
46417 * m4/arcfour.m4: New file.
46419 2005-10-14 Simon Josefsson <jas@extundo.com>
46421 * lib/arcfour.h, lib/arcfour.c: New files.
46423 2005-10-14 Roland McGrath <roland@redhat.com>
46425 Import from libc. [BZ #1331]
46426 * lib/obstack.h [!__STDC__] (obstack_int_grow_fast): Fix misnamed
46428 Reported by Matej Vela <vela@debian.org>.
46430 2005-10-14 Paul Eggert <eggert@cs.ucla.edu>
46432 * lib/obstack.c [defined _LIBC && defined USE_IN_LIBIO]: Don't
46433 include <wchar.h>; no longer needed.
46435 2005-10-14 Paul Eggert <eggert@cs.ucla.edu>
46437 * config/srclist.txt: Add glibc bug 321 for obstack.c, obstack.h.
46439 2005-10-14 Jakub Jelinek <jakub@redhat.com>
46440 and Ulrich Drepper <drepper@redhat.com>
46443 * lib/obstack.c (print_and_abort) [defined _LIBC]: Use __fxprintf
46444 instead of inline stream orientation test and two separate
46445 function calls. Pay no attention to USE_IN_LIBIO.
46447 2005-10-13 Simon Josefsson <jas@extundo.com>
46449 * modules/gc-hmac-md5-tests: New file.
46451 * tests/test-gc-hmac-sha1.c: New file.
46453 * tests/test-gc.c (main): Remove MD5 and HMAC-MD5 tests.
46455 * modules/gc-hmac-md5-tests: New file.
46457 * tests/test-gc-md5.c: New file.
46459 * modules/gc-md5-tests: New file.
46461 2005-10-13 Simon Josefsson <jas@extundo.com>
46463 * lib/gc-pbkdf2-sha1.c (gc_pbkdf2_sha1): Optimize CEIL computation.
46464 Move memory allocation outside of loop.
46466 2005-10-13 Paul Eggert <eggert@cs.ucla.edu>
46468 * lib/mkdir-p.c (make_dir_parents): Don't report an error if an
46469 intermediate directory is in a read-only file system. Problem
46470 reported by Eric Blake.
46472 2005-10-13 Oskar Liljeblad <oskar@osk.mine.nu>
46474 * modules/human (Depends-on): Depend on xstrtoumax, not xstrtol.
46476 2005-10-12 Simon Josefsson <jas@extundo.com>
46478 * tests/test-hmac-sha1.c: New file.
46480 * modules/hmac-sha1-tests: New file.
46482 * modules/hmac-sha1: New file.
46484 2005-10-12 Simon Josefsson <jas@extundo.com>
46486 * modules/gc-sha1: New file.
46488 2005-10-12 Simon Josefsson <jas@extundo.com>
46490 * modules/gc-pbkdf2-sha1, modules/gc-pbkdf2-sha1-tests: New files.
46492 * tests/test-gc-pbkdf2-sha1.c: New file.
46494 2005-10-12 Simon Josefsson <jas@extundo.com>
46496 * modules/gc-md5, modules/gc-hmac-md5: New files.
46498 * modules/gc (Files): Remove md5, memxor and hmac files.
46500 2005-10-12 Simon Josefsson <jas@extundo.com>
46502 * m4/gc-pbkdf2-sha1.m4: New file.
46504 * m4/gc-hmac-sha1.m4: New file.
46506 * m4/gc-sha1: New file.
46508 * m4/hmac-sha1.m4: New file.
46510 2005-10-12 Simon Josefsson <jas@extundo.com>
46512 * m4/gc-md5.m4, m4/gc-hmac-md5.m4: New files.
46514 * m4/gc.m4: Don't call gl_MD5, gl_MEMXOR or gl_HMAC_MD5.
46516 2005-10-12 Simon Josefsson <jas@extundo.com>
46518 * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Use Gc_rc for return types,
46519 suggested by Bruno Haible <bruno@clisp.org>.
46521 2005-10-12 Simon Josefsson <jas@extundo.com>
46523 * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Support SHA-1.
46525 2005-10-12 Simon Josefsson <jas@extundo.com>
46527 * lib/gc-pbkdf2-sha1.c: New file.
46529 * lib/gc.h: Add gc_pbkdf2_sha1 prototype.
46531 2005-10-12 Simon Josefsson <jas@extundo.com>
46533 * lib/gc-libgcrypt.c (gc_hmac_sha1): New function.
46535 * lib/gc-gnulib.c (gc_hmac_sha1): New function.
46537 2005-10-12 Simon Josefsson <jas@extundo.com>
46539 * lib/gc-gnulib.c: Condition MD5 and HMAC-MD5 use on GC_USE_MD5 and
46540 GC_USE_HMAC_MD5, respectively.
46542 * lib/gc-libgcrypt.c (gc_md5): Fix assert call.
46543 (gc_md5): Fix typo.
46545 * lib/gc.h (gc_hash_buffer): Use gc_hash in prototype.
46547 * lib/gc-libgcrypt.c (gc_hash_buffer): Ditto.
46549 * lib/gc-gnulib.c (gc_hash_buffer): Ditto.
46551 2005-10-12 Bruno Haible <bruno@clisp.org>
46553 * m4/stdbool.m4 (gl_STDBOOL_H): Define as an alias of AM_STDBOOL_H.
46554 Reported by Stepan Kasal <kasal@ucw.cz>.
46556 2005-10-11 Simon Josefsson <jas@extundo.com>
46558 * tests/test-crc.c: New file.
46560 * modules/crc, modules/crc-tests: New files.
46562 2005-10-11 Simon Josefsson <jas@extundo.com>
46564 * m4/crc.m4: New file.
46566 2005-10-11 Simon Josefsson <jas@extundo.com>
46568 * lib/gc.h: Add gc_hash and gc_hash_buffer.
46570 * lib/gc-gnulib.c (gc_hash_buffer): Add. Reorder #include's.
46572 * lib/gc-libgcrypt.c (gc_hash_buffer): Add.
46574 2005-10-11 Simon Josefsson <jas@extundo.com>
46576 * lib/crc.h, lib/crc.c: New files.
46578 * lib/gc.h (gc_hash_buffer): Add doc.
46580 2005-10-11 Bruno Haible <bruno@clisp.org>
46582 * modules/c-strcasestr: New file.
46583 * MODULES.html.sh (String handling <string.h>): Add c-strcasestr.
46585 2005-10-11 Bruno Haible <bruno@clisp.org>
46587 * modules/c-strcase: New file.
46588 * MODULES.html.sh (String handling <string.h>): Add c-strcase.
46590 2005-10-11 Bruno Haible <bruno@clisp.org>
46592 * lib/strcasecmp.c: Include limits.h.
46593 (strcasecmp): Avoid integer overflow on exotic platforms.
46594 * lib/strncasecmp.c: Include limits.h.
46595 (strncasecmp): Avoid integer overflow on exotic platforms.
46596 Reported by Paul Eggert.
46598 2005-10-11 Bruno Haible <bruno@clisp.org>
46600 * lib/c-strcasestr.h: New file, from GNU gettext.
46601 * lib/c-strcasestr.c: New file, from GNU gettext.
46603 2005-10-11 Bruno Haible <bruno@clisp.org>
46605 * lib/c-strcase.h: New file, from GNU gettext.
46606 * lib/c-strcasecmp.c: New file, from GNU gettext.
46607 * lib/c-strncasecmp.c: New file, from GNU gettext.
46609 2005-10-10 Paul Eggert <eggert@cs.ucla.edu>
46611 * modules/mempcpy (License): GPL -> LGPL.
46612 * modules/strchrnul (License): Likewise.
46613 * modules/sysexits (License): Likewise.
46615 2005-10-08 Simon Josefsson <jas@extundo.com>
46617 * config/srclist.txt: Bug 1423 is closed, but 1439 remains.
46619 2005-10-07 Simon Josefsson <jas@extundo.com>
46621 * m4/memxor.m4: Remove gl_C_RESTRICT call.
46623 2005-10-06 Simon Josefsson <jas@extundo.com>
46625 * tests/test-hmac-md5.c: New file.
46627 * modules/hmac-md5-tests: New file.
46629 * modules/hmac-md5: New file.
46631 2005-10-06 Simon Josefsson <jas@extundo.com>
46633 * m4/hmac-md5.m4: New file.
46635 * m4/memxor.m4: Require gl_C_RESTRICT.
46637 2005-10-06 Simon Josefsson <jas@extundo.com>
46639 * lib/memxor.c (memxor): Avoid casts and warnings.
46641 2005-10-06 Simon Josefsson <jas@extundo.com>
46643 * lib/hmac-md5.c: New file.
46645 * lib/hmac.h: New file.
46647 2005-10-06 Paul Eggert <eggert@cs.ucla.edu>
46649 * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check that bool
46650 promotes to int, not unsigned int, to catch the AIX 5.3
46653 2005-10-05 Simon Josefsson <jas@extundo.com>
46655 * modules/memxor: New file.
46657 * modules/iconv (Files): Move config.rpath to havelib, it is used
46660 * modules/havelib (Files): Add config.rpath.
46662 2005-10-05 Simon Josefsson <jas@extundo.com>
46664 * m4/memxor.m4: New file.
46666 2005-10-05 Simon Josefsson <jas@extundo.com>
46668 * lib/memxor.c (memxor): Fix compiler error.
46670 * lib/md5.h (MD5_DIGEST_SIZE, MD5_BLOCK_SIZE): Add, see also
46671 <http://sourceware.org/bugzilla/show_bug.cgi?id=1423>.
46673 * lib/memxor.h, lib/memxor.c: New files.
46675 * lib/getaddrinfo.h: Don't protect sys/types.h with HAVE_SYS_TYPES_H,
46676 we assume all systems have it, suggested by Jim Meyering
46677 <jim@meyering.net>. Remove HAVE_SYS_SOCKET_H test too, to see if
46678 any systems lack sys/socket.h; mingw32 is known to lack it, but we
46679 don't support it yet anyway. Also remove HAVE_NETDB_H test, for
46682 2005-10-05 Simon Josefsson <jas@extundo.com>
46684 * config/srclist.txt: Add glibc bug 1423 for md5.h.
46686 2005-10-05 Paul Eggert <eggert@cs.ucla.edu>
46688 * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Don't check for
46689 sys/socket.h, netdb.h, sys/types.h; the checks areno longer
46690 needed, since the source code now assumes these .h files.
46692 2005-10-05 Derek Price <derek@ximbiot.com>
46694 * lib/getdelim.c (SIZE_MAX): New macro, if not already defined.
46696 2005-10-05 Bruno Haible <bruno@clisp.org>
46698 * modules/stdint (License): Change to LGPL.
46700 2005-10-04 Simon Josefsson <jas@extundo.com>
46702 * lib/getaddrinfo.h: Move sys/types.h include first, reported by "Mark
46703 D. Baushke" <mdb@gnu.org>.
46705 2005-10-04 Bruno Haible <bruno@clisp.org>
46707 * lib/verify.h (verify_true): Provide alternative definition for C++.
46709 2005-10-03 Paul Eggert <eggert@cs.ucla.edu>
46711 * lib/getdelim.c: Include getdelim.h first. Include <limits.h>.
46712 (SSIZE_MAX): New macro, if not already defined.
46713 (getdelim): Fix buffer overrun on 64-bit hosts with lines longer
46716 2005-10-02 Paul Eggert <eggert@cs.ucla.edu>
46718 Sync from coreutils.
46719 * m4/openat.m4 (gl_FUNC_OPENAT): Check for fdopendir.
46720 * m4/ullong_max.m4 (gl_ULLONG_MAX): Simplify so that it merely
46721 defines ULONG_MAX_LT_ULLONG_MAX. Thomas M.Ott reports that
46722 ULLONG_MAX doesn't work with 2.7.2.1.
46724 2005-10-02 Paul Eggert <eggert@cs.ucla.edu>
46726 * modules/xreadlink (Makefile.am): Remove lib_SOURCES.
46729 * modules/exclude (Depends-on): Depend on verify.
46730 * modules/strtoimax (Depends-on): Likewise.
46731 * modules/utimecmp (Depends-on): Likewise.
46733 2005-10-02 Paul Eggert <eggert@cs.ucla.edu>
46735 * lib/exclude.c: Include verify.h.
46736 (verify): Remove. All callers changed to use verify.h's version.
46737 * lib/strtoimax.c: Likewise.
46738 * lib/utimecmp.c: Likewis.e
46740 Sync from coreutils.
46741 * lib/.cppi-disable: Add getaddrinfo.h, getdelim.h, getline.h,
46742 getpass.c, mbchar.h, mbuiter.h, strcase.h, strnlen.h, strnlen1.h.
46743 * lib/.cvsignore: Add fts.h, search.h, t-fpending.
46744 * lib/settime.c (settime): Fix { typo in previous patch. Also, don't
46745 bother returning ENOSYS if settimeofday or stime fails; just let
46746 them return whatever errno they want to return.
46747 * lib/utimens.c: Include unistd.h, for dup2.
46748 (futimens): Fix typo: HAVE_FUTIMESAT was misspelled in an #if.
46749 (futimens) [! HAVE_FUTIMESAT]: If !file, set errno before returning -1.
46751 2005-10-02 Jim Meyering <jim@meyering.net>
46753 Sync from coreutils.
46754 * m4/utimes.m4 (gl_FUNC_UTIMES): Detect the version of utimes
46755 from glibc-2.2.5 that fails for read-only files.
46757 2005-10-02 Jim Meyering <jim@meyering.net>
46759 Sync from coreutils.
46760 * lib/fts-cycle.c [HAVE_CONFIG_H]: Include <config.h>.
46761 * lib/openat-die.c: Use `#ifdef HAVE_CONFIG_H', not
46762 `#if HAVE_CONFIG_H'.
46763 * lib/openat.c (fdopendir): Do not define if HAVE_FDOPENDIR.
46764 Remove AT_FDCWD test.
46765 Do not consume the fd unless successful.
46766 * lib/openat.h (fdopendir): Do not define if HAVE_FDOPENDIR.
46767 * lib/settime.c (settime): Move the HAVE_STIME block `up' into an #elif
46768 block, so that we don't even try to compile it if settimeofday is
46769 available. This works around a compilation failure on OSF1 V5.1,
46770 due to stime requiring a `long int*' while tv_sec is `int'.
46772 2005-10-02 Alfred M. Szmidt <ams@gnu.org>
46774 Sync from coreutils.
46775 * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Compare $gl_have_path...
46776 against `yes', rather than just testing for nonempty.
46778 2005-10-01 Simon Josefsson <jas@extundo.com>
46780 * m4/getaddrinfo.m4: Include sys/types.h for sys/socket.h, on FreeBSD
46783 * m4/getaddrinfo.m4: Use AC_GNU_SOURCE, GNU only declare getaddrinfo
46784 as an (POSIX) extension. Check for sys/types.h, sys/socket.h, and
46785 netdb.h too, needed by getaddrinfo.h. Check if getaddrinfo,
46786 freeaddrinfo and gai_strerror are declared by the POSIX headers.
46787 Check if struct addrinfo is declared.
46789 2005-10-01 Simon Josefsson <jas@extundo.com>
46791 * lib/getaddrinfo.h: Protect #include's of sys/socket.h and netdb.h.
46792 Only define struct addrinfo if !HAVE_STRUCT_ADDRINFO. Protect
46793 AI_* and EAI_* definitions. Protect function declarations.
46795 2005-10-01 Jim Meyering <jim@meyering.net>
46797 Sync from coreutils.
46799 * m4/getaddrinfo.m4 (gl_GETADDRINFO): Look for getservbyname in these
46800 libraries [inet nsl socket xnet]. Nelson Beebe reported that with
46801 native cc on Solaris 7, getaddrinfo.c requires -lsocket.
46802 * m4/getaddrinfo.m4 (gl_GETADDRINFO): Check for gethostbyname
46803 in the inet and nsl libraries. Required on Solaris 5.7.
46805 2005-10-01 Jim Meyering <jim@meyering.net>
46807 Sync from coreutils.
46808 * m4/getaddrinfo.m4 (gl_GETADDRINFO): Check for gethostbyname
46809 in the inet and nsl libraries. Required on Solaris 5.7.
46811 2005-10-01 Eric Blake <ebb9@byu.net> (tiny change)
46813 * lib/getdelim.c (getdelim): Remove unused variables.
46815 2005-09-29 Paul Eggert <eggert@cs.ucla.edu>
46817 * lib/xtime.h (XTIME_PRECISION): Now of type int, not long long int,
46818 so that the code works even with ancient cpp. Portability problem
46819 with GCC 2.7.2.1 reported by Thomas M.Ott.
46821 2005-09-27 Paul Eggert <eggert@cs.ucla.edu>
46823 * modules/regex (Depends-on): Add strcase.
46825 * modules/gethostname (Licence): Change from GPL to LGPL, since
46826 gethostname.c is a trivial implementation of a standard library
46828 * modules/poll (License): Change from GPL to LGPL, since it's
46829 derived from LGPL code.
46831 2005-09-27 Jim Meyering <jim@meyering.net>
46833 * lib/getcwd.c: Change #ifdef<TAB>HAVE_CONFIG_H to #ifdef
46836 * lib/intprops.h (signed_type_or_expr__): Define.
46837 (INT_STRLEN_BOUND) [__GNUC__]: Use a slightly tighter bound
46838 for unsigned types.
46840 2005-09-26 Paul Eggert <eggert@cs.ucla.edu>
46842 * lib/verify.h (verify_expr): Remove, replacing with:
46843 (verify_true): New macro that returns true instead of void.
46844 (verify_type__): Remove.
46845 (verify): Use verify_true rather than verify_type__.
46847 2005-09-26 Bruno Haible <bruno@clisp.org>
46849 * modules/mbchar (Include): Mention that HAVE_WCHAR_H && HAVE_WCTYPE_H
46851 (lib_SOURCES): Remove mbchar.c.
46852 * modules/mbfile (Include): Mention that HAVE_MBRTOWC is necessary.
46853 (Files): Add m4/mbrtowc.m4.
46854 * modules/mbiter: Likewise.
46855 * modules/mbuiter: Likewise.
46857 2005-09-26 Bruno Haible <bruno@clisp.org>
46859 * m4/mbchar.m4 (gl_MBCHAR): Check for wchar.h and wctype.h. Don't
46860 compile mbchar.c if they are not both present.
46861 * m4/mbfile.m4 (gl_MBFILE): Require gl_FUNC_MBRTOWC.
46862 * m4/mbiter.m4 (gl_MBITER): Likewise.
46863 * m4/strstr.m4 (gl_PREREQ_STRSTR): Use AC_REQUIRE.
46864 * m4/strcasestr.m4 (gl_PREREQ_STRCASESTR): Likewise.
46865 * m4/strcase.m4 (gl_PREREQ_STRCASECMP): Likewise.
46867 2005-09-25 Jim Meyering <jim@meyering.net>
46869 * modules/inet_ntop (Depends-on): Add socklen, since inet_ntop.c
46870 also uses socklen_t.
46872 2005-09-24 Paul Eggert <eggert@cs.ucla.edu>
46874 * lib/utimens.c (ENOSYS): Define if not already defined.
46875 (futimens): Support having a null PATH if the file descriptor
46878 * lib/regex_internal.h (__GNUC_PREREQ, always_inline, inline, pure):
46880 (__attribute): Define to empty unless GCC 3.1 or later.
46881 This works around a core dump on OpenBSD 3.4, which has GCC
46882 2.95.3, which dumps core when given __attribute__(()). It also
46883 simplifies other tests, since we really don't want to bother with
46884 worrying about which ancient version of GCC supported what.
46885 Original problem reported by Yoann Vandoorselaere, with part of
46886 the fix suggested by Derek Price.
46888 2005-09-24 Jim Meyering <jim@meyering.net>
46890 * lib/verify.h (verify_type__): Use `unsigned int' as the bitfield type
46891 so we can once again use a positive bitfield width of 1 -- now we
46892 don't have to explain why we were using a bitfield width of 2.
46894 2005-09-23 Paul Eggert <eggert@cs.ucla.edu>
46896 * m4/regex.m4 (gl_REGEX): If replacing, define regcomp to rpl_regcomp,
46897 and similarly for the other external symbols. Problem reported
46900 * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Catch Sun Studio 10u1 on Linux
46901 bug reported by Jim Meyering.
46903 * m4/utimens.m4 (gl_UTIMENS): Check for futimesat.
46904 * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Undo previous change;
46905 not needed, since socklen is a prerequisite module.
46907 2005-09-23 Paul Eggert <eggert@cs.ucla.edu>
46909 * lib/getaddrinfo.c [HAVE_NETINET_IN_H]: Include <netinet/in.h>.
46910 Problem reported by Eric Blake.
46911 (getaddrinfo): Initialize se so that it's not garbage.
46912 Redo internal storage allocation so that it doesn't make unportable
46913 assumptions about alignment.
46916 * lib/utimens.c (futimens): Use futimesat if available.
46917 Prefer it to futimes since it doesn't have the futimes bug.
46919 * lib/verify.h (GL_CONCAT0, GL_CONCAT): Remove.
46920 (verify): Don't use the __LINE__ trick, as it doesn't work in general.
46921 Instead, declare a function that returns a pointer to an array,
46922 and use verify_type__ to declare the size of the array.
46923 Problem and germ of a solution reported by Bruno Haible.
46924 (verify_type__): Use 2, not 1, for bitfield size, to avoid
46925 a warning with Irix 6.5 cc. Problem reported by Bruno Haible.
46927 2005-09-23 Jim Meyering <jim@meyering.net>
46929 Sync from coreutils.
46930 Correct build failure (socklen_t not defined) on at least
46931 mips-sgi-irix6.5 and alphaev67-dec-osf5.1.
46932 * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Require gl_SOCKLEN_T.
46934 2005-09-23 Jim Meyering <jim@meyering.net>
46936 * modules/getaddrinfo (Depends-on): Add socklen.
46938 2005-09-23 Bruno Haible <bruno@clisp.org>
46940 * tests/test-verify.c: New file.
46942 2005-09-22 Paul Eggert <eggert@cs.ucla.edu>
46944 Sync from coreutils.
46946 * modules/argmatch (Depends-on): Add verify.
46947 * modules/getloadavg (Depends-on): Depend on fcntl-safer, not
46949 * modules/save-cwd (Depends-on): Likewise.
46951 * modules/openat (Files): Add lib/openat-die.c.
46952 (Depends-on): Remove error, exitfail.
46955 * modules/verify: New file.
46956 * MODULES.html.sh (Diagnostics <assert.h>): New section,
46957 with "verify" module.
46959 2005-09-22 Paul Eggert <eggert@cs.ucla.edu>
46961 Sync from coreutils.
46963 * m4/backupfile.m4, calloc.m4, chown.m4, cloexec.m4, dup2.m4:
46964 * m4/fileblocks.m4, free.m4, ftruncate.m4, getcwd.m4, getpagesize.m4:
46965 * m4/getugroups.m4, group-member.m4, idcache.m4, link-follow.m4:
46966 * m4/mkstemp.m4, mktime.m4, mountlist.m4, nanosleep.m4, pathmax.m4:
46967 * m4/physmem.m4, posixver.m4, putenv.m4, safe-read.m4, same.m4:
46968 * m4/save-cwd.m4, stdio-safer.m4, unistd-safer.m4, unlinkdir.m4:
46969 * m4/userspec.m4, xgetcwd.m4, xreadlink.m4:
46970 Don't bother checking for string.h, stdlib.h, unistd.h.
46971 * m4/fts.m4 (gl_FUNC_FTS_CORE): Don't require
46972 AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK; that's now the lstat
46974 * m4/jm-macros.m4 (gl_MACROS): Likewise.
46975 * m4/prereq.m4 (gl_PREREQ): Add gl_FUNC_LSTAT.
46977 * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): New macro.
46978 (gl_GETDATE): Use it.
46980 * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Don't bother checking for unistd.h.
46982 2005-09-22 Paul Eggert <eggert@cs.ucla.edu>
46984 Sync from coreutils.
46986 * lib/.cppi-disable: Add regcomp.c, regex_internal.c, regex_internal.h,
46988 * lib/argmatch.h: Include verify.h
46989 (ARGMATCH_VERIFY): Use verify rather than rolling our own.
46990 (ARGMATCH_ASSERT): Remove; unused.
46991 * lib/canonicalize.c: Assume STDC_HEADERS.
46992 * lib/exclude.c: Include "strcase.h".
46993 * lib/regex_internal.h [!defined _LIBC]: Likewise.
46994 * lib/getusershell.c: Include stdio--.h rather than stdio.h
46996 (getusershell): Call fopen, not fopen_safer.
46997 * lib/save-cwd.c: Include fcntl--.h rather than fcntl.h.
46998 Do not include unistd-safer.h.
46999 (save_cwd): Don't call fd_safer; no longer needed
47000 now that we include fcntl--.h.
47002 * lib/getdate.y (relative_time): New type.
47003 (RELATIVE_TIME_0): New constant.
47004 (parser_control): Use relative_time instead of doing it ourselves.
47005 (%union): Add new relative_time rel member.
47006 (tYEAR_UNIT, tMONTH_UNIT, tHOUR_UNIT, tMINUTE_UNIT, tSEC_UNIT):
47008 (relunit, relunit_snumber): Now of type rel.
47009 (zone, rel, relunit, get_date): Adjust to above changes.
47011 * lib/getloadavg.c: Include fcntl--.h rather than fcntl.h.
47012 Do not include unistd-safer.h.
47013 (getloadavg): Don't call fd_safer; no longer needed
47014 now that we include fcntl--.h.
47016 * lib/mkdir-p.c (ENOSYS): Define to EEXIST if not defined.
47017 (make_dir_parents): Treat ENOSYS like EEXIST.
47019 Improve quality of diagnostics on restore_cwd failure.
47020 * lib/mkdir-p.h (make_dir): Remove. All uses replaced by mkdir.
47021 (make_dir_parents): Last arg is now int * (for errno), not bool *.
47022 * lib/mkdir-p.c (make_dir, make_dir_parents): Likewise.
47023 Rewrite "mkdir -p" algorithm to avoid the need for "stat"
47024 each time through the loop. Do not diagnose restore_cwd failure;
47025 that is the caller's job (and perhaps the caller does not care).
47027 * lib/mkdir-p.c (CLEANUP_CWD, CLEANUP): Remove.
47028 (make_dir_parents): Revamp to avoid need for CLEANUP_CWD, CLEANUP.
47029 If the file already exists but is not a directory, don't bother
47030 to try to make its parents.
47031 Close potential file descriptor leak if we can't chdir("/") (!).
47032 Don't always return true if chdir($PWD) fails; return true only
47033 if the requested action was done successfully (except for the
47035 Don't log final directory unless we actually made it.
47036 Refactor to avoid duplicate code to fix up permissions.
47037 Don't attempt to fix up parent permissions if chdir($PWD) fails.
47039 * lib/strftime.c (my_strftime): Rewrite the previous change slightly,
47040 to make it a bit faster and (I hope) clearer.
47041 * lib/strftime.c (my_strftime): Add support for %:z, %::z, %:::z.
47042 Fix bug in formats like %2N.
47044 * lib/verify.h: New file.
47046 2005-09-22 Paul Eggert <eggert@cs.ucla.edu>
47048 Sync from coreutils.
47049 * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Check for netinet/in.h.
47051 2005-09-22 Jim Meyering <jim@meyering.net>
47053 Sync from coreutils.
47055 * m4/lstat.m4 (gl_FUNC_LSTAT):
47056 Use AC_LIBSOURCES to require lstat.c and lstat.h.
47057 Remove obsolete comment.
47058 * m4/xreadlink.m4: Use AC_LIBSOURCES and AC_LIBOBJ.
47059 * m4/xstrtod.m4: Likewise.
47061 * m4/openat.m4 (gl_FUNC_OPENAT): Add openat-die.c.
47063 2005-09-22 Jim Meyering <jim@meyering.net>
47065 Sync from coreutils.
47067 * lib/backupfile.c: Use ARGMATCH_VERIFY, just in case.
47069 * lib/posixtm.c (posixtime) [lint]: Initialize *all* of tm0, not just
47070 the .tm_year member, since otherwise gcc-4.0 would now warn about
47071 tm_zone, tm_gmtoff, tm_isdst, tm_yday, tm_wday.
47073 * lib/quotearg.c (quotearg_n_options): Change code to be suboptimal, in
47074 order to avoid an unsuppressible warning from gcc on 64-bit systems.
47076 * lib/getdate.y (get_date): Undo part of the 2005-04-04 change, so that
47077 the command "date -d'2005-03-27 +1 day'" succeeds once again, even
47078 when run in a time zone for which daylight savings time is in effect
47079 for the starting date.
47081 * lib/mkdir-p.c (make_dir_parents): Don't let a failed chdir($PWD)
47082 stop us from restricting permissions of just-created absolute-named
47084 * lib/mkdir-p.c (CLEANUP_CWD): Return *true*, not false when failing
47085 to restore initial working directory.
47086 * lib/mkdir-p.c (make_dir_parents): New parameter:
47087 different_working_dir, to tell caller if/when we change the working
47088 directory and are unable to return to the initial one.
47089 * lib/mkdir-p.h (make_dir_parents): Update prototype.
47090 * lib/mkdir-p.c (CLEANUP_CWD): Change one more `return 1' to
47091 `return false'. This fixes a bug introduced on 2004-07-30.
47093 * lib/openat.c (fdopendir): Be sure to close the supplied
47094 file descriptor before returning. This makes our replacement
47095 implementation a little closer to Solaris's, where fdopendir
47096 ties the file descriptor to the returned DIR* pointer.
47097 * lib/openat.c (unlinkat): New function.
47098 * lib/openat.h (unlinkat): Add prototype.
47099 * lib/openat-die.c (openat_save_fail): Rename from openat_save_die.
47100 (openat_restore_fail): Rename from openat_restore_die.
47101 * lib/openat.c, openat.h: Reflect s/_die/_fail/ renaming.
47103 Provide an alternative to exiting immediately upon save_cwd or
47104 restore_cwd failure. Now, an application can arrange e.g.,
47105 to perform a longjump in that case.
47106 * lib/openat.c: Include dirname.h.
47107 Use IS_ABSOLUTE_FILE_NAME rather than testing for leading slash.
47108 (rpl_openat, fdopendir, fstatat): Call openat_save_die
47109 and openat_restore_die rather than calling error directly.
47110 Don't include "error.h" or "exitfail.h"; they're no longer needed.
47112 * lib/openat-die.c (openat_save_die, openat_restore_die): New file.
47113 * lib/openat.h (openat_save_die, openat_restore_die): Declare and
47116 * lib/strftime.c [FPRINTFTIME] (fprintftime): Provide a new interface:
47117 size_t fprintftime (FILE *fp, char const *fmt, struct tm const *tm,
47118 int utc, int nanoseconds);
47120 date should not have to allocate a megabyte of virtual memory to
47121 handle a format argument like +%1048575T. When implemented with
47122 strftime, it must allocate such a buffer, use strftime to fill it
47123 in, print it, then free it.
47124 With fprintftime, it simply prints everything and exits.
47125 With no need for memory allocation, that's one fewer way to fail.
47126 * lib/strftime.c (my_strftime): Parse the colons of %:::z *after* the
47127 optional field width, not before, so we accept %9:z, not %:9z.
47128 (my_strftime): Be sure to use L_('x') for literals.
47130 * lib/backupfile.c, lib/canon-host.c, lib/canonicalize.c, lib/chown.c:
47131 * lib/cloexec.c, lib/dup-safer.c, lib/dup2.c, lib/euidaccess.c:
47132 * lib/fd-safer.c, lib/fileblocks.c, lib/fopen-safer.c, lib/fsusage.c:
47133 * lib/ftruncate.c, lib/getcwd.c, lib/getcwd.h, lib/getloadavg.c:
47134 * lib/getopt_.h, lib/getpagesize.h, lib/getugroups.c:
47135 * lib/group-member.c, lib/human.h, lib/idcache.c, lib/mkdir-p.c:
47136 * lib/mountlist.c, lib/nanosleep.c, lib/pathmax.h, lib/physmem.c:
47137 * lib/posixver.c, lib/putenv.c, lib/raise.c, lib/safe-read.c:
47138 * lib/same.c, lib/save-cwd.c, lib/setenv.c, lib/settime.c:
47139 * lib/tempname.c, lib/unlinkdir.c, lib/unsetenv.c, lib/userspec.c:
47140 * lib/xgethostname.c, lib/xreadlink.c:
47141 Assume HAVE_UNISTD_H, i.e., include <unistd.h> unconditionally.
47143 * lib/chown.c, lib/cloexec.c, lib/dup-safer.c, lib/dup2.c:
47144 * lib/fsusage.c, lib/getcwd.c, lib/getloadavg.c, lib/mountlist.c:
47145 * lib/openat.h, lib/save-cwd.c, lib/tempname.c:
47146 Assume HAVE_FCNTL_H (i.e., include <fcntl.h> unconditionally,
47147 and don't include <sys/file.h>).
47149 2005-09-22 Eric Blake <ebb9@byu.net> (tiny change)
47151 Sync from coreutils.
47153 * lib/getloadavg.c (getloadavg) [__CYGWIN__]: Port to cygwin.
47154 [__linux__]: Allocate a big enough buffer for /proc/loadavg.
47155 [!LDAV_DONE]: Avoid unused variable warning.
47157 2005-09-21 Bruno Haible <bruno@clisp.org>
47159 * lib/unicodeio.h (unicode_to_mb): New declaration.
47161 2005-09-20 Derek Price <derek@ximbiot.com>
47163 * lib/getaddrinfo.c: Don't include <netdb.h> included from
47166 2005-09-20 Bruno Haible <bruno@clisp.org>
47168 * gnulib-tool: Remove trailing slashes from the values specified for
47169 --source-base, --m4-base, --tests-base, --aux-dir.
47170 Suggested by Simon Josefsson <jas@extundo.com>.
47172 2005-09-20 Bruno Haible <bruno@clisp.org>
47174 * gnulib-tool (func_all_modules, func_modules_transitive_closure,
47175 func_modules_to_filelist, func_import, func_create_testdir): Make all
47176 sorting results locale-independent, so that gnulib-cache.m4 doesn't
47177 change when gnulib-tool is invoked in a different locale.
47179 2005-09-19 Simon Josefsson <jas@extundo.com>
47181 * m4/socklen.m4: Fix typo.
47183 2005-09-19 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
47185 Use a consistent style for including <config.h>.
47186 * lib/__fpending.c, lib/acl.c, lib/argmatch.c, lib/argp-help.c,
47187 lib/argp-parse.c, lib/argp-pvh.c, lib/backupfile.c, lib/basename.c,
47188 lib/c-stack.c, lib/calloc.c, lib/check-version.c, lib/cloexec.c,
47189 lib/closeout.c, lib/copy-file.c, lib/creat-safer.c, lib/cycle-check.c,
47190 lib/dirfd.c, lib/dirname.c, lib/dup-safer.c, lib/dup2.c,
47191 lib/euidaccess.c, lib/exclude.c, lib/exitfail.c, lib/fatal-signal.c,
47192 lib/fd-safer.c, lib/file-type.c, lib/fileblocks.c, lib/filemode.c,
47193 lib/filenamecat.c, lib/findprog.c, lib/fnmatch.c, lib/fopen-safer.c,
47194 lib/free.c, lib/fsusage.c, lib/ftruncate.c, lib/full-write.c,
47195 lib/fwriteerror.c, lib/getaddrinfo.c, lib/getcwd.c, lib/getdelim.c,
47196 lib/getline.c, lib/getlogin_r.c, lib/getndelim2.c, lib/getnline.c,
47197 lib/getopt1.c, lib/getpass.c, lib/group-member.c, lib/hard-locale.c,
47198 lib/hash-pjw.c, lib/hash.c, lib/human.c, lib/idcache.c,
47199 lib/inet_ntop.c, lib/isdir.c, lib/long-options.c, lib/malloc.c,
47200 lib/memcasecmp.c, lib/memcmp.c, lib/memcoll.c, lib/memcpy.c,
47201 lib/memmove.c, lib/mkdir-p.c, lib/modechange.c, lib/mountlist.c,
47202 lib/open-safer.c, lib/physmem.c, lib/pipe-safer.c, lib/pipe.c,
47203 lib/poll.c, lib/posixver.c, lib/progname.c, lib/progreloc.c,
47204 lib/putenv.c, lib/quote.c, lib/quotearg.c, lib/readline.c,
47205 lib/readlink.c, lib/realloc.c, lib/regex.c, lib/rename.c, lib/rmdir.c,
47206 lib/rpmatch.c, lib/safe-read.c, lib/same.c, lib/save-cwd.c,
47207 lib/savedir.c, lib/sig2str.c, lib/strcspn.c, lib/strerror.c,
47208 lib/stripslash.c, lib/strncasecmp.c, lib/strndup.c, lib/strnlen.c,
47209 lib/strnlen1.c, lib/strsep.c, lib/strstr.c, lib/strtod.c,
47210 lib/strtoimax.c, lib/strtol.c, lib/strverscmp.c, lib/tempname.c,
47211 lib/time_r.c, lib/userspec.c, lib/utimecmp.c, lib/version-etc-fsf.c,
47212 lib/version-etc.c, lib/wait-process.c, lib/xalloc-die.c, lib/xgetcwd.c,
47213 lib/xmalloc.c, lib/xmemcoll.c, lib/xnanosleep.c, lib/xreadlink.c,
47214 lib/xsetenv.c, lib/xstrndup.c, lib/xstrtoimax.c, lib/xstrtol.c,
47215 lib/xstrtoumax.c, lib/yesno.c:
47216 Standardize inclusion of config.h.
47217 * lib/__fpending.h, lib/dirfd.h, lib/getdate.h, lib/human.h,
47218 lib/inttostr.h: Removed inclusion of config.h from header files.
47219 * lib/inttostr.c: Adjusted in-tree users.
47220 * lib/timespec.h: Remove superfluous warning to include config.h.
47221 * lib/atexit.c, lib/chdir-long.c, lib/chown.c, lib/fchown-stub.c,
47222 lib/getgroups.c, lib/gettimeofday.c, lib/lchown.c, lib/lstat.c,
47223 lib/mkdir.c, lib/mkstemp.c, lib/nanosleep.c, lib/openat.c, lib/raise.c,
47224 lib/readtokens0.c, lib/readutmp.c, lib/unlinkdir.c: Guard inclusion of
47225 config.h with HAVE_CONFIG_H.
47227 2005-09-19 Jim Meyering <jim@meyering.net>
47229 * modules/pathmax (License): Change to LGPL.
47231 2005-09-19 Derek Price <derek@ximbiot.com>
47233 * config/srclist.txt: glibc's glob.h is now in lib/glob-libc.h.
47235 2005-09-19 Bruno Haible <bruno@clisp.org>
47237 * gnulib-tool (import): Provide default for --tests-base.
47239 2005-09-19 Bruno Haible <bruno@clisp.org>
47241 * doc/quote.texi: New file, extracted from gnulib.texi.
47242 * doc/ctime.texi: New file, extracted from gnulib.texi.
47243 * doc/inet_ntoa.texi: New file, extracted from gnulib.texi.
47244 * doc/gnulib-tool.texi: New file, extracted from gnulib.texi.
47245 * doc/gnulib.texi: Include them.
47247 2005-09-18 Bruno Haible <bruno@clisp.org>
47250 * gnulib-tool (func_readlink): New function.
47251 (func_ln_if_changed): Use it.
47253 2005-09-18 Bruno Haible <bruno@clisp.org>
47255 * gnulib-tool: Support --with-tests also with --import.
47256 (func_emit_tests_Makefile_am): Use variables $m4base and $testsbase.
47257 (func_import): Use variables $testsbase and $inctests. Emit a
47258 gl_TESTS_BASE form into gnulib-cache.m4. Create $testsbase/Makefile.am.
47259 Remind the user to add AC_CONFIG_FILES($testsdir/Makefile) and
47260 SUBDIRS += $testsdir.
47261 (func_create_testdir): Update.
47263 2005-09-18 Bruno Haible <bruno@clisp.org>
47265 * gnulib-tool: Revise --dry-run implementation. Use variable $doit
47266 instead of $dry_run.
47267 (func_cp_if_changed, func_mv_if_changed): Remove functions.
47268 (func_ln_if_changed): Don't handle dry-run here.
47269 (func_import): In dry-run mode, detect more precisely which actions
47270 would be performed, and don't use "...ing" verbs.
47272 2005-09-18 Bruno Haible <bruno@clisp.org>
47274 * gnulib-tool (func_tmpdir): New function, taken from GNU gettextize.
47275 (func_import): Use join on two temporary files instead of three nested
47276 loops, in order to determine which files are new or old.
47278 2005-09-18 Bruno Haible <bruno@clisp.org>
47280 * gnulib-tool (func_import): Comment out code that spits out the
47281 new files with --dry-run.
47283 2005-09-18 Bruno Haible <bruno@clisp.org>
47285 * doc/gnulib.texi (Invoking gnulib-tool): 50% rewritten.
47287 2005-09-16 Paul Eggert <eggert@cs.ucla.edu>
47289 * lib/stat-time.h: New file.
47290 * lib/timespec.h (ST_TIME_CMP_NS, ST_TIME_CMP, ATIME_CMP, CTIME_CMP):
47291 (MTIME_CMP, TIMESPEC_NS): Remove. Now done by stat-time.h,
47292 in a different way.
47293 (timespec_cmp): New function.
47294 * lib/utimecmp.c: Include stat-time.h.
47295 (SYSCALL_RESOLUTION): Depend on whether various struct stat
47296 members exist, not on the obsolescent ST_MTIM_NSEC.
47297 (utimecmp): Use the new stat-time functions rater than TIMESPEC_NS.
47299 2005-09-16 Paul Eggert <eggert@cs.ucla.edu>
47301 * config/srclist.txt: Remove glibc bug 1033 and uncomment mktime.c.
47303 2005-09-16 Paul Eggert <eggert@cs.ucla.edu>
47305 * MODULES.html.sh (File system functions): Add stat-time.
47306 * modules/stat-time: New file.
47307 * modules/timespec (Files): Remove m4/st_mtim.m4; this
47308 is now done in a different way, by the stat-time module.
47309 * modules/utimecmp (Depends-on): Add stat-time.
47311 2005-09-15 Paul Eggert <eggert@cs.ucla.edu>
47313 * m4/st_mtim.m4: Remove. Superseded by...
47314 * m4/stat-time.m4: New file.
47315 * m4/timespec.m4 (gl_TIMESPEC): Require AC_C_INLINE.
47316 Do not invoke AC_STRUCT_ST_MTIM_NSEC; no longer needed.
47318 2005-09-15 Derek Price <derek@ximbiot.com>
47320 * m4/strstr.m4 (gl_FUNC_STRSTR): Don't define strstr here.
47322 2005-09-15 Derek Price <derek@ximbiot.com>
47324 * lib/regex_internal.h: Blank `pure' for GNUC < 3.
47325 * lib/regex_internal.c: Ditto, using this...
47326 (__GNUC_PREREQ): ...new macro.
47327 * lib/regcomp.c, regexec.c: Blank `always_inline' for GNUC < 3.1
47329 (__GNUC_PREREQ): ...this new macro.
47331 * lib/strstr.h: Include string.h. Define strstr as a macro here.
47333 2005-09-15 Derek Price <derek@ximbiot.com>
47334 Paul Eggert <eggert@cs.ucla.edu>
47336 * lib/regcomp.c, regexec.c, regex_internal.c: Back out previous
47337 changes, consolidating in...
47338 * lib/regex_internal.h: ...this file.
47340 2005-09-13 Jim Meyering <jim@meyering.net>
47342 * lib/canon-host.c: Filter through gnu indent and reword comments
47344 * lib/canon-host.h (ch_strerror_r): Tweak cpp indentation and spacing.
47346 2005-09-13 Derek Price <derek@ximbiot.com>
47348 * lib/canon-host.c (canon_host_r): Set *cherror on memory allocation
47350 Reported by Jim Meyering <jim@meyering.net>.
47352 2005-09-12 Ralf Wildenhues <Ralf.Wildenhues@gmx.de> (tiny change)
47354 * lib/base64.c: Typo.
47355 (base64_encode): Put b64str in initialized data section.
47357 2005-09-12 Paul Eggert <eggert@cs.ucla.edu>
47359 Merge glibc and coreutils changes into gnulib, plus a few
47361 * lib/md5.c: Use #error rather than a string.
47362 (CYCLIC): New macro, from glibc source. Use it instead of rol.
47363 * lib/md5.h (__GNUC_PREREQ, __THROW): Define if not defined already.
47364 (__attribute__): Define to empty for non recent-GCC.
47365 (__md5_buffer, __md5_finish_ctx, __md5_init_ctx, __md5_process_block):
47366 (__md5_process_bytes, __md5_read_ctx, __md5_stream):
47367 Renamed from their non-__ counterparts, with new macros replacing
47368 them if not _LIBC. Add __THROW attribute.
47370 (struct md5_ctx): Align buffer if using GCC.
47371 * lib/sha1.h (struct sha1_ctx): Likewise.
47372 * lib/sha1.c (SWAP): Renamed from the NOTSWAP. All uses changed.
47373 The old name was backwards.
47374 (NOTSWAP): Remove; not used.
47375 (rol): New macro, moved here from md5.h.
47376 (sha1_process_block): Remove a FIXME that doesn't make sense.
47378 2005-09-12 Derek Price <derek@ximbiot.com>
47380 Return usable errors from canon-host.
47381 * lib/canon-host.h: New file.
47382 * lib/canon-host.c (canon_host): Wrap...
47383 (canon_host_r): ...this new function, which now relies exclusively on
47385 (ch_strerror): New function.
47386 (last_cherror): New global.
47387 * lib/getaddrinfo.c: Move include of getaddrinfo.h first to test
47389 (getaddrinfo): Add AI_CANONNAME functionality. Don't do arithmetic on
47391 (freeaddrinfo): Free ai->ai_canonname when set.
47393 2005-09-12 Derek Price <derek@ximbiot.com>
47395 Make canon-host require getaddrinfo.
47396 * m4/canon-host.m4 (gl_CANON_HOST): Remove most dependencies.
47397 AC_LIBSOURCE canon-host.h. Call...
47398 (gl_PREREQ_CANON_HOST): ...this new function, which requires
47400 * m4/getaddrinfo.m4 (gl_GETADDRINFO): Compile gai_strerror when needed.
47402 2005-09-12 Derek Price <derek@ximbiot.com>
47404 * modules/canon-host: Add canon-host.h. Depend on getaddrinfo. Make
47406 * modules/getaddrinfo: Add link to opengroup spec. Depend on strdup.
47408 2005-09-12 Derek Price <derek@ximbiot.com>
47410 * lib/gai_strerror.c: Include config.h when available. Include
47411 getaddrinfo.h before other headers to test interface.
47412 Reported by Larry Jones <lawrence.jones@ugs.com>.
47414 2005-09-12 Derek Price <derek@ximbiot.com>
47415 Paul Eggert <eggert@cs.ucla.edu>
47417 * modules/glob (Files): Add glob-libc.h.
47419 2005-09-12 Derek Price <derek@ximbiot.com>
47420 Paul Eggert <eggert@cs.ucla.edu>
47422 * m4/glob.m4 (gl_GLOB_SUBSTITUTE): AC_LIBSOURCES for glob.c,
47423 glob_.h, glob-libc.h.
47424 (gl_PREREQ_GLOB): Remove _SYS_CDEFS_H hack; no longer needed.
47426 2005-09-12 Derek Price <derek@ximbiot.com>
47427 Paul Eggert <eggert@cs.ucla.edu>
47429 * lib/glob-libc.h: Renamed from glob_.h. The new version is
47430 taken from libc's glob.h, except with '#ifdef __GLOB_GNULIB'
47431 protecting things that should be done only in gnulib contexts.
47432 * lib/glob_.h: New file, containing only the glob things needed for
47434 (GLOB_PREFIX): Remove. All uses changed to look for __GLOB_GNULIB.
47435 (__GLOB_CONCAT, __GLOB_XCONCAT, __GLOB_ID): Remove; no longer needed.
47436 (glob, globfree, glob_pattern_p): Now defined simply in terms of
47437 rpl_glob, rpl_globfree, rpl_glob_pattern_p.
47438 (__GLOB_GNULIB): New macro, to keep the glob.h changes clearer
47439 and to respect the namespace rules better.
47441 2005-09-08 Simon Josefsson <jas@extundo.com>
47443 * modules/socklen: New file.
47445 2005-09-08 Simon Josefsson <jas@extundo.com>
47447 * m4/socklen.m4: New file.
47449 2005-09-08 Paul Eggert <eggert@cs.ucla.edu>
47451 * modules/utimens (Files): Add m4/utimbuf.m4, since
47452 m4/utimens.m4 requires gl_CHECK_TYPE_STRUCT_UTIMBUF.
47453 Reported by Sergey Poznyakoff.
47455 2005-09-08 Paul Eggert <eggert@cs.ucla.edu>
47457 * lib/glob.c (glob, globfree, __glob_pattern_p): Use old-style function
47458 definitions, since that's the preferred style in glibc.
47459 Fix a minor spacing issue, and update copyright notice to match
47462 2005-09-08 Paul Eggert <eggert@cs.ucla.edu>
47464 * config/srclist.txt: Remove glibc bug 1061; it's been fixed.
47466 2005-09-06 Simon Josefsson <jas@extundo.com>
47468 * lib/getpass.c (getpass): Fix typo, test for HAVE_TCSETATTR and not
47469 TCSETATTR. Reported by Derek Price <derek@ximbiot.com>.
47471 2005-09-06 Paul Eggert <eggert@cs.ucla.edu>
47473 * lib/regex_internal.h (bitset_not): Add parens to avoid gcc -Wall
47476 2005-09-06 Paul Eggert <eggert@cs.ucla.edu>
47478 * config/srclist.txt: Add glibc bug 1302.
47480 2005-09-05 Paul Eggert <eggert@cs.ucla.edu>
47482 Change bitset word type from unsigned int to unsigned long int,
47483 as this has better performance on typical 64-bit hosts.
47484 Port bitset code to hosts with unusual word sizes.
47485 * lib/regcomp.c (build_equiv_class, build_charclass, build_range_exp):
47486 (build_collating_symbol):
47487 Prefer bitset to re_bitset_ptr_t in prototypes, when the actual
47488 argument is a bitset. This is merely a style issue, but it makes
47489 it clearer that an entire array is expected.
47490 (re_compile_fastmap_iter, init_dfa, init_word_char, optimize_subexps):
47491 * lib/regcomp.c (lower_subexp, parse_bracket_exp, built_charclass_op):
47492 Port to the case where bitset_word is not the same as unsigned int.
47493 * lib/regex_internal.h (bitset_set, bitset_clear, bitset_contain):
47494 (bitset_not, bitset_merge, bitset_set_all, bitset_mask):
47496 * lib/regexec.c (check_dst_limits_calc_pos_1,
47497 check_subexp_matching_top):
47498 (build_trtable, group_nodes_into_DFAstates):
47500 * lib/regcomp.c (re_compile_fastmap_iter, utf8_sb_map, optimize_utf8):
47501 Don't assume that SBC_MAX is a multiple of BITSET_WORD_BITS.
47502 * lib/regex_internal.h (bitset_set_all, bitset_not): Likewise.
47503 * lib/regexec.c (group_nodes_into_DFAstates): Likewise.
47504 * lib/regcomp.c (utf8_sb_map): Don't assume UINT_MAX == 0xffffffff.
47505 * lib/regcomp.c (optimize_subexps, lower_subexp):
47506 Work even if bitset_word has holes in its bitwise representation.
47507 * lib/regex_internal.h (BITSET_WORD_BITS): Likewise.
47508 * lib/regexec.c (check_dst_limits_calc_pos_1,
47509 check_subexp_matching_top):
47511 * lib/regex_internal.c (re_string_reconstruct):
47512 Don't assume UCHAR_MAX == 255.
47513 * lib/regex_internal.h (bitset_set_all): Likewise.
47514 * lib/regex_internal.h (BITSET_WORD_BITS): Renamed from UINT_BITS.
47516 (BITSET_WORDS): Renamed from BITSET_UINTS. All uses changed.
47517 (bitset_word): New type, replacing 'unsigned int' for bitset uses.
47519 (BITSET_WORD_MAX): New macro.
47520 (bitset_set, bitset_clear, bitset_contain, bitset_empty):
47521 (bitset_set_all, bitset_copy): Now inline functions, not macros.
47522 (bitset_empty, bitset_copy):
47523 Prefer sizeof (bitset) to multiplying it out ourselves.
47524 (bitset_not_merge): Remove; unused.
47525 (bitset_contain): Return bool, not unsigned int with one bit on.
47526 All callers changed.
47527 * lib/regexec.c (build_trtable): Don't assume bitset has no stricter
47528 alignment than re_node_set; do this by defining a new internal
47529 type struct dests_alloc and using it to allocate memory.
47531 2005-09-05 Bruno Haible <bruno@clisp.org>
47533 * gnulib-tool (func_import): Fix comparison in handling of symbolic
47536 2005-09-04 Martin Lambers <marlam@marlam.de> (tiny change)
47538 * modules/size_max (Makefile.am): Add size_max.h
47540 2005-09-04 Derek Price <derek@ximbiot.com>
47542 * gnulib-tool (func_import): Fix reversed $symbolic logic.
47544 2005-09-03 Simon Josefsson <jas@extundo.com>
47546 * gnulib-tool: Fix typo.
47548 2005-09-03 Simon Josefsson <jas@extundo.com>
47550 * config/srclist.txt: Add glibc bug 1293.
47552 2005-09-03 Derek Price <derek@ximbiot.com>
47554 * m4/getlogin_r (gl_GETLOGIN_R): Fix cut & paste error.
47555 From Larry Jones <lawrence.jones@ugs.com>.
47557 2005-09-02 Simon Josefsson <jas@extundo.com>
47559 * modules/socklen: New file.
47561 2005-09-02 Simon Josefsson <jas@extundo.com>
47563 * modules/havelib: New module.
47565 * modules/gettext, modules/iconv, modules/lock, modules/readline:
47568 2005-09-02 Paul Eggert <eggert@cs.ucla.edu>
47570 Check for arithmetic overflow when calculating sizes, to prevent
47571 some buffer-overflow issues. These patches are conservative, in the
47572 sense that when I couldn't determine whether an overflow was possible,
47573 I inserted a run-time check.
47574 * lib/regex_internal.h (re_xmalloc, re_xrealloc, re_x2realloc): New
47576 (SIZE_MAX) [!defined SIZE_MAX]: New macro.
47577 (re_alloc_oversized, re_x2alloc_oversized, re_xnmalloc):
47578 (re_xnrealloc, re_x2nrealloc): New inline functions.
47579 * lib/regcomp.c (init_dfa, analyze, build_range_exp,
47580 parse_bracket_exp):
47581 (build_equiv_class, build_charclass): Check for arithmetic overflow
47582 in size expression calculations.
47583 * lib/regex_internal.c (re_string_realloc_buffers):
47584 (build_wcs_upper_buffer, re_node_set_add_intersect):
47585 (re_node_set_init_union, re_node_set_insert, re_node_set_insert_last):
47586 (re_dfa_add_node, register_state): Likewise.
47587 * lib/regexec.c (re_search_stub, re_copy_regs, re_search_internal):
47588 (prune_impossible_nodes, push_fail_stack, set_regs, check_arrival):
47589 (build_trtable, extend_buffers, match_ctx_init, match_ctx_add_entry):
47590 (match_ctx_add_subtop, match_ctx_add_sublast): Likewise.
47592 2005-09-02 Paul Eggert <eggert@cs.ucla.edu>
47594 * modules/inttostr (Files): Add m4/inttypes_h.m4, m4/stdint_h.m4,
47595 m4/ulonglong.m4. Problem reported by Martin Lambers.
47597 2005-09-02 Bruno Haible <bruno@clisp.org>
47599 Support for lib vs. lib64 distinction on biarch platforms.
47600 * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): New macro.
47601 (AC_LIB_PREFIX): Require it. Use $acl_libdirstem instead of 'lib'.
47602 * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Likewise.
47604 2005-09-02 Bruno Haible <bruno@clisp.org>
47606 * gnulib-tool (import): In the other first-use case, provide defaults
47609 2005-09-02 Bruno Haible <bruno@clisp.org>
47611 * config/srclist.txt: lib-link.m4 and lib-prefix.m4 currently have
47612 patches not yet found in the latest gettext release.
47614 2005-09-01 Paul Eggert <eggert@cs.ucla.edu>
47616 * lib/glob.c (GET_LOGIN_NAME_MAX): Renamed from LOGIN_NAME_MAX,
47617 to avoid a collision with bits/local_lim.h in glibc.
47618 All uses changed. Problem reported by Dmitry V. Levin in
47619 <http://sources.redhat.com/bugzilla/show_bug.cgi?id=1060>.
47621 * lib/regex_internal.c (build_wcs_upper_buffer): Fix portability
47622 bugs in int versus size_t comparisons.
47623 (re_string_context_at): Fix bug where the code assumed that
47626 Use bool where appropriate.
47627 * lib/regcomp.c (re_set_fastmap): ICASE arg is bool, not int.
47628 All callers changed.
47629 (calc_eclosure_iter): Likewise, for ROOT arg.
47630 (parse_bracket_element): Likewise, for ACCEPT_HYPHEN arg.
47631 (build_charclass_op): Likewise, for NON_MATCH arg.
47632 * lib/regex_internal.c (re_string_allocate, re_string_construct):
47633 (re_string_construct_common): Likewise, for ICASE arg.
47634 * lib/regexec.c (re_search_2_stub, re_search_stub):
47635 Likewise, for RET_LEN arg.
47636 (check_matching): Likewise, for FL_LONGEST_MATCH arg.
47637 (set_regs): Likewise, for FL_BACKTRACK arg.
47638 * lib/regcomp.c (re_compile_fastmap_iter, optimize_utf8):
47639 (duplicate_node_closure, calc_inveclosure, calc_eclosure):
47640 (calc_eclosure_iter, parse_bracket_exp):
47641 Use bool for internal variables that are booleans.
47642 * lib/regexec.c (re_search_internal, check_matching,
47643 proceed_next_node):
47644 (set_regs, build_sifted_states, sift_states_bkref):
47645 (check_arrival_add_next_nodes, check_arrival_expand_ecl_sub):
47646 (expand_bkref_cache, build_trtable, group_nodes_into_DFAstates):
47647 (find_collation_sequence_value):
47649 * lib/regex_internal.c (re_node_set_insert, re_node_set_insert_last):
47650 (re_node_set_compare):
47651 Return bool, not int. All callers changed.
47652 * lib/regexec.c (check_halt_node_context, check_dst_limits):
47653 (build_trtable, check_node_accept): Likewise.
47654 * lib/regex_internal.h: Include stdbool.h.
47656 Fix bugs uncovered when converting to bool.
47657 * lib/regcomp.c (calc_eclosure_iter): Check for storage allocation
47658 failure instead of charging ahead blindly.
47659 * lib/regex_internal.c (register_state): Likewise.
47660 * lib/regexec.c (re_search_2_stub): Use simpler method than boolean
47661 for freeing internal storage.
47662 (group_nodes_into_DFA_states): Use unsigned int, not int, for
47663 bitset pieces used as boolean, to avoid undefined behavior
47664 on hosts that do int overflow checking.
47666 2005-09-01 Paul Eggert <eggert@cs.ucla.edu>
47668 * config/srclist.txt: Add glibc bugs 1285-1287.
47670 2005-09-01 Jim Meyering <jim@meyering.net>
47672 * m4/lchown.m4: Require gl_FUNC_CHOWN, for the definition of
47673 CHOWN_MODIFIES_SYMLINK, which is used by lchown.c.
47674 Require gl_STAT_MACROS, too.
47676 2005-09-01 Bruno Haible <bruno@clisp.org>
47678 * gnulib-tool (import): In the first-use case, provide defaults.
47680 2005-09-01 Bruno Haible <bruno@clisp.org>
47682 * gnulib-tool (func_import): Remove the .tmp files.
47684 2005-09-01 Bruno Haible <bruno@clisp.org>
47686 * gnulib-tool (func_import): Fix handling of symbolic links.
47688 2005-08-31 Paul Eggert <eggert@cs.ucla.edu>
47690 On 64-bit hosts (where size_t is 64 bits and int is 32 bits), the
47691 old glibc regex code mishandles strings longer than 2**31 bytes.
47692 This patch fixes this when the regex code is used in gnulib
47693 (i.e., outside glibc).
47695 This patch should not affect the use of the regex code inside
47696 glibc. No doubt this problem also needs to be handled for glibc
47697 as well, but the result will be an incompatible change to the
47698 glibc ABI, and the old ABI will have to be supported too. That
47699 can be the the subject for another patch.
47701 * lib/regex.h (_REGEX_LARGE_OFFSETS): New feature-test macro,
47702 governing whether the rest of this patch is active. By default,
47703 the macro is disabled and the patch has no effect.
47704 (regoff_t) [defined _REGEX_LARGE_OFFSETS]: Define to off_t, not int.
47705 (__re_idx_t, __re_size_t, __re_long_size_t): New types.
47706 (struct re_pattern_buffer, re_search, re_search_2, re_match):
47707 (re_match_2, re_set_registers): Use the new types.
47708 * lib/regex_internal.h (Idx, re_hashval_t): New types.
47709 (REG_MISSING, REG_ERROR, REG_VALID_INDEX, REG_VALID_NONZERO_INDEX):
47711 (re_node_set, re_charset_t, re_token_t, re_string_realloc_buffers):
47712 (re_string_context_at, bin_tree_t, re_dfastate_t):
47713 (struct re_state_table_entry, state_array_t, re_sub_match_last_t):
47714 (re_sub_match_top_t, re_match_context_t, re_sift_context_t):
47715 (struct re_fail_stack_ent_t, struct re_fail_stack_t, struct re_dfa_t):
47716 (re_string_char_size_at, re_string_wchar_at):
47717 (re_string_elem_size_at):
47718 Use the new types and macros to port to 64-bit hosts.
47719 Use unsigned types for internal values, so that the code
47720 mostly works even for arrays larger than SSIZE_MAX.
47721 * lib/regcomp.c (re_compile_internal, init_dfa, duplicate_node):
47722 (search_duplicated_node, calc_eclosure_iter, fetch_number):
47723 (parse_reg_exp, parse_branch, parse_expression, parse_sub_exp):
47724 (build_equiv_class, build_charclass, re_compile_fastmap_iter):
47725 (free_dfa_content, create_initial_state, optimize_utf8, analyze):
47726 (optimize_subexps, calc_first, link_nfa_nodes, duplicate_node_closure):
47727 (calc_inveclosure, parse_dup_op, build_range_exp):
47728 (build_collating_symbol, parse_bracket_exp, build_charclass_op):
47729 (fetch_number, create_token_tree, mark_opt_subexp):
47731 * lib/regex_internal.c (re_string_construct_common,
47732 create_ci_newstate):
47733 (create_cd_newstate, re_string_allocate, re_string_construct):
47734 (re_string_realloc_buffers, build_wcs_upper_buffer):
47735 (re_string_skip_chars, build_upper_buffer, re_string_translate_buffer):
47736 (re_string_reconstruct, re_string_peek_byte_case):
47737 (re_string_fetch_byte_case, re_string_context_at):
47738 (re_node_set_alloc, re_node_set_init_1, re_node_set_init_2):
47739 (re_node_set_init_copy, re_node_set_add_intersect):
47740 (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
47741 (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
47742 (re_node_set_remove_at, re_dfa_add_node, calc_state_hash):
47743 (re_acquire_state, re_acquire_state_context, register_state):
47745 * lib/regex.c (match_ctx_init, match_ctx_add_entry,
47746 search_cur_bkref_entry):
47747 (match_ctx_add_subtop, match_ctx_add_sublast, sift_ctx_init):
47748 (re_search_internal, re_search_2_stub, re_search_stub)
47749 (re_copy_regs, check_matching, check_halt_state_context, update_regs):
47750 (push_fail_stack, sift_states_iter_mb, build_sifted_states):
47751 (update_cur_sifted_state, check_dst_limits):
47752 (check_dst_limits_calc_pos_1, check_dst_limits_calc_pos):
47753 (check_subexp_limits, sift_states_bkref, merge_state_array):
47754 (check_subexp_matching_top, get_subexp, get_subexp_sub):
47755 (find_subexp_node, check_arrival, check_arrival_add_next_nodes):
47756 (check_arrival_expand_ecl, check_arrival_expand_ecl_sub):
47757 (expand_bkref_cache, check_node_accept_bytes):
47758 (group_nodes_into_DFAstates, check_node_accept, regexec, re_match):
47759 (re_search, re_match_2, re_search_2, prune_impossible_nodes):
47760 (acquire_init_state_context, check_halt_node_context):
47761 (proceed_next_node, pop_fail_stack, set_regs, free_fail_stack_return):
47762 (sift_states_backward, clean_state_log_if_needed):
47763 (sub_epsilon_src_nodes, add_epsilone_src_nodes, merge_state_with_log):
47764 (find_recover_state, transit_state_sb, transit_state_mb):
47765 (transit_state_bkref, build_trtable, match_ctx_clean):
47767 * lib/regcomp.c (parse_dup_op): Add an extra test if Idx is unsigned,
47768 to work around an assumption that REG_MISSING is negative.
47770 * lib/regcomp.c (re_comp) [defined _REGEX_RE_COMP || defined _LIBC]:
47771 (seek_collating_symbol_entry) [defined _LIBC]:
47772 (lookup_collation_sequence_value) [defined _LIBC]:
47773 (build_range_exp, build_collating_symbol) [defined _LIBC]:
47774 Use prototypes rather than old-style function definitions.
47775 * lib/regexec.c (re_exec) [defined _REGEX_RE_COMP || defined _LIBC]:
47776 (transit_state_sb) [0]:
47777 (find_collation_sequence_value) [defined _LIBC]: Likewise.
47779 * lib/regexec.c (re_search_internal): Simplify update of rm_so and
47782 * lib/regcomp.c (re_compile_fastmap_iter, init_dfa, init_word_char):
47783 (optimize_subexps, lower_subexp):
47784 Don't assume 1<<31 has defined behavior on hosts with 32-bit int,
47785 since the signed shift might overflow. Use 1u<<31 instead.
47786 * lib/regex_internal.h (bitset_set, bitset_clear, bitset_contain):
47788 * lib/regexec.c (check_dst_limits_calc_pos_1,
47789 check_subexp_matching_top): Likewise.
47791 * lib/regcomp.c (optimize_subexps, lower_subexp):
47792 Use CHAR_BIT rather than 8, for clarity.
47793 * lib/regexec.c (check_dst_limits_calc_pos_1):
47794 (check_subexp_matching_top): Likewise.
47795 * lib/regcomp.c (init_dfa): Make table_size unsigned, so that we don't
47796 have to worry about portability issues when shifting it left.
47797 Remove no-longer-needed test for table_size > 0.
47798 * lib/regcomp.c (parse_sub_exp): Do not shift more bits than there are
47799 in a word, as the resulting behavior is undefined.
47800 * lib/regexec.c (check_dst_limits_calc_pos_1): Likewise;
47801 in one case, a <= should have been an <, and in another case the
47802 whole test was missing.
47803 * lib/regex_internal.h (BYTE_BITS): Remove. All uses changed to
47804 the standard name CHAR_BIT.
47805 * lib/regexec.c (match_ctx_add_entry): Don't assume that ~0 == -1;
47806 this is not true on one's complement and signed-magnitude hosts.
47808 * lib/regex_internal.h (re_sub_match_top_t): Remove unused member
47810 (struct re_dfa_t): Remove unused member states_alloc.
47811 * lib/regcomp.c (init_dfa): Don't initialize unused members.
47813 2005-08-31 Paul Eggert <eggert@cs.ucla.edu>
47815 * m4/regex.m4 (gl_REGEX): Require AC_SYS_LARGEFILE, Define
47816 _REGEX_LARGE_OFFSETS). Test for regoff_t/off_t bug in 64-bit
47817 and large-file glibc and in 32-bit large-file Solaris.
47819 2005-08-31 Paul Eggert <eggert@cs.ucla.edu>
47821 * lib/regex_internal.c (re_string_reconstruct): Don't assume buffer
47822 lengths fit in regoff_t; this isn't true if regoff_t is the same
47824 * lib/regex.c (re_search_internal): 5th arg is LAST_START
47825 (= START + RANGE) instead of RANGE. This avoids overflow
47826 problems when regoff_t is the same width as size_t.
47827 All callers changed.
47828 (re_search_2_stub): Check for overflow when adding the
47829 sizes of the two strings.
47830 (re_search_stub): Check for overflow when adding START
47831 to RANGE; if it occurs, substitute the extreme value.
47833 2005-08-31 Paul Eggert <eggert@cs.ucla.edu>
47835 * config/srclist.txt: Add glibc bugs 1273, 1278-1282, 1284.
47837 2005-08-31 Jim Meyering <jim@meyering.net>
47839 * lib/regcomp.c (search_duplicated_node): Make first pointer arg
47840 a pointer-to-const.
47841 * lib/regex_internal.c (create_ci_newstate, create_cd_newstate):
47842 (register_state): Likewise.
47843 * lib/regexec.c (search_cur_bkref_entry, check_dst_limits):
47844 (check_dst_limits_calc_pos_1, check_dst_limits_calc_pos):
47845 (group_nodes_into_DFAstates): Likewise.
47847 2005-08-31 Jim Meyering <jim@meyering.net>
47849 * check-module: Add a FIXME comment.
47851 2005-08-31 Eric Blake <ebb9@byu.net>
47853 * modules/unistd-safer (Files): Add unistd--.h.
47854 * modules/stdio-safer (Files): Add stdio--.h.
47856 2005-08-31 Derek Price <derek@ximbiot.com>
47858 * lib/getdelim.c (getdelim): Return EOF on EOF.
47859 Reported by Larry Jones <lawrence.jones@ugs.com>.
47861 2005-08-31 Bruno Haible <bruno@clisp.org>
47863 Avoid unnecessary diffs in the generated lib/Makefile.am.
47864 * gnulib-tool (func_emit_lib_Makefile_am): Don't write the cmd into
47865 the generated files.
47866 (func_import): Don't set cmd.
47868 2005-08-31 Bruno Haible <bruno@clisp.org>
47870 * lib/strstr.c: Include <stddef.h>, for NULL.
47871 * lib/strcasestr.c: Likewise.
47872 Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
47874 2005-08-31 Bruno Haible <bruno@clisp.org>
47876 * gnulib-tool: New option --macro-prefix.
47877 (func_import): Use macro_prefix.
47878 (import): Handle option --macro-prefix.
47880 2005-08-31 Bruno Haible <bruno@clisp.org>
47882 * gnulib-tool (import): Rename most ac_* variables to cached_*.
47883 Also use new variables cached_lgpl, cached_libtool.
47885 2005-08-31 Bruno Haible <bruno@clisp.org>
47887 * gnulib-tool (func_import): Require AC_GNU_SOURCE etc. instead of
47888 always instantiating them.
47890 2005-08-31 Bruno Haible <bruno@clisp.org>
47892 * gnulib-tool (func_import): Read the previous cached settings
47893 from gnulib-cache.m4 and gnulib-comp.m4. Remove files that were
47894 earlier added by gnulib but are now dropped. Warn when a gnulib file
47895 overwrites a non-gnulib file.
47897 2005-08-31 Bruno Haible <bruno@clisp.org>
47899 * gnulib-tool (func_import): Generate two files gnulib-cache.m4 and
47900 gnulib-comp.m4 instead of a single gnulib.m4, to make it easy for
47901 projects that don't keep autogenerated files in CVS. Put into
47902 actioncmd only the specified modules, not the transitive closure.
47904 2005-08-31 Bruno Haible <bruno@clisp.org>
47906 * gnulib-tool (func_import): Fix defaulting of $libname and $libtool.
47907 Create directories that shall be filled.
47908 (import): Don't look for gl_* macros in configure.ac. Recurse across
47909 all directories containing a gnulib-cache.m4 files, if meaningful.
47911 2005-08-31 Bruno Haible <bruno@clisp.org>
47913 * gnulib-tool (func_import): Emit also a stub for gl_LIBTOOL.
47914 (import): Set seen_libtool when we see gl_LIBTOOL.
47916 2005-08-31 Bruno Haible <bruno@clisp.org>
47918 * gnulib-tool (func_import): Also copy m4/gnulib-tool.m4. Omit
47919 declaration macro definitions from generated gnulib.m4.
47921 2005-08-30 Oskar Liljeblad <oskar@osk.mine.nu>
47923 * lib/iconvme.h: Add prototype for iconv_alloc.
47925 2005-08-29 Simon Josefsson <jas@extundo.com>
47927 * lib/iconvme.c: Fix errno.
47929 2005-08-29 Bruno Haible <bruno@clisp.org>
47931 * gnulib-tool: Enclose all occurrences of $destdir in "...", so
47932 that it works when the directory contains spaces.
47934 2005-08-29 Bruno Haible <bruno@clisp.org>
47936 * gnulib-tool (import): Avoid unnecessary spaces in $avoidlist.
47938 2005-08-29 Bruno Haible <bruno@clisp.org>
47940 * gnulib-tool (func_import): Emit more comments into gnulib.m4.
47943 2005-08-29 Bruno Haible <bruno@clisp.org>
47944 and Stepan Kasal <kasal@ucw.cz>
47946 * check-module: If more parameters are given, check each of them
47947 separately; add more exceptions, as noted by Jim Meyering.
47948 (check_module): New procedure.
47949 (%exempt_header): Now contains all exceptions.
47951 2005-08-29 Ben Pfaff <blp@cs.stanford.edu>
47953 * modules/byteswap (Makefile.am): Fix rule to not assume GNU make.
47955 2005-08-29 Oskar Liljeblad <oskar@osk.mine.nu>
47957 * lib/iconvme.c: Split iconv_string into iconv_alloc.
47959 2005-08-28 Bruno Haible <bruno@clisp.org>
47961 * m4/gnulib-tool.m4: New file.
47963 2005-08-27 Jim Meyering <jim@meyering.net>
47965 * modules/unistd-safer (Files): Add pipe-safer.c.
47966 * modules/fcntl-safer (Files): Add creat-safer.c.
47968 2005-08-27 Jim Meyering <jim@meyering.net>
47970 * m4/stdlib-safer.m4: New file. From coreutils.
47971 * m4/stdio-safer.m4 (gl_STDIO_SAFER): Add stdio--.h.
47972 * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Add creat-safer.c to the
47973 AC_LIBSOURCES list and arrange to compile it via AC_LIBOBJ.
47974 * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Likewise, add pipe-safer.c.
47975 Add pipe-safer.c and unistd--.h to the AC_LIBSOURCES list.
47977 2005-08-27 Jim Meyering <jim@meyering.net>
47979 * lib/fopen-safer.c: Merge minor changes from coreutils.
47980 * lib/dup-safer.c: Likewise.
47981 * lib/fd-safer.c: Likewise.
47983 Merge from coreutils.
47984 * lib/stdio--.h: New file.
47985 * lib/stdlib--.h: New file.
47986 * lib/mkstemp-safer.c: New file.
47988 GNU tar needs these.
47989 * lib/pipe-safer.c: New file.
47990 * lib/creat-safer.c: New file.
47991 * lib/fcntl--.h (creat): Define to creat_safer.
47992 * lib/fcntl-safer.h: Include <sys/types.h> and declare creat_safer.
47993 * lib/unistd--.h (pipe): Define to pipe_safer.
47994 * lib/unistd-safer.h: Declare pipe_safer.
47996 2005-08-26 Simon Josefsson <jas@extundo.com>
47998 * lib/getpass.c: Use _WIN32 instead of WIN32, suggested by Bruno
47999 Haible <bruno@clisp.org>.
48001 2005-08-26 Paul Eggert <eggert@cs.ucla.edu>
48003 * lib/regex_internal.h: Remove all references to
48004 RE_NO_INTERNAL_PROTOTYPES; no longer neeeded now that we assume C89
48006 (bitset_not, bitset_merge, bitset_not_merge):
48007 (bitset_mask, re_string_allocate, re_string_construct):
48008 (re_string_reconstruct, re_string_destruct, re_string_elem_size_at):
48009 (re_string_char_size_at, re_string_wchar_at, re_string_peek_byte_case):
48010 (re_string_fetch_byte_case, re_node_set_alloc, re_node_set_init_1):
48011 (re_node_set_init_2, re_node_set_init_copy, re_node_set_add_intersect):
48012 (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
48013 (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
48014 (re_node_set_remove_at, re_dfa_add_node, re_acquire_state):
48015 (re_acquire_state_context):
48016 Remove unnecessary forward decls.
48017 (re_string_char_size_at, re_string_wchar_at, re_string_elem_size_at):
48018 Put __attribute at function definition,
48019 now that the function decl has been removed.
48020 * lib/regex_internal.c (re_string_peek_byte_case):
48021 (re_string_fetch_byte_case, re_node_set_compare, re_node_set_contains):
48024 2005-08-25 Stepan Kasal <kasal@ucw.cz>
48026 * m4/regex.m4: Add AC_PREREQ(2.50).
48027 (gl_REGEX): If --with-included-regex was given, skip the autodetection.
48029 2005-08-25 Simon Josefsson <jas@extundo.com>
48031 * m4/getpass.m4: Check for termios.h, tcgetattr, tcsetattr, and
48034 2005-08-25 Simon Josefsson <jas@extundo.com>
48036 * lib/getpass.c: Add WIN32 implementation. Conditionalize use of
48037 termios.h, tcgetattr, tcsetattr and __fsetlocking. Remove some
48038 GLIBC specific code.
48040 2005-08-25 Paul Eggert <eggert@cs.ucla.edu>
48042 Make regex safe for g++. This fixes one real bug (an "err"
48043 that should have been "*err"). g++ problem reported by
48045 * lib/regex_internal.h (re_calloc): New macro, consistent with
48046 re_malloc etc. All callers of calloc changed to use re_calloc.
48047 * lib/regex_internal.c (build_wcs_upper_buffer): Return reg_errcode_t,
48048 not int. All callers changed.
48049 * lib/regcomp.c (re_compile_fastmap_iter): Don't use
48050 alloca (mb_cur_max); just use an array of size MB_LEN_MAX.
48051 * lib/regexec.c (push_fail_stack): Use re_realloc, not realloc.
48052 (find_recover_state): Change "err" to "*err"; this fixes what
48053 appears to be a real bug.
48054 (check_arrival_expand_ecl_sub): Be consistent about reg_errcode_t
48057 2005-08-25 Paul Eggert <eggert@cs.ucla.edu>
48059 * modules/regex (Depends-on): Add malloc, since the code
48060 assumes that !malloc(0) means failure.
48062 2005-08-25 Paul Eggert <eggert@cs.ucla.edu>
48064 * lib/regexec.c (set_regs): Don't alloca with an unbounded size.
48066 alloca modernization/simplification for regex.
48067 * lib/regex.c: Remove portability cruft for alloca. This no longer
48068 needs to be at the start of the file, and can be moved into
48069 regex_internal.h and simplified.
48070 * lib/regex_internal.h: Include <alloca.h>.
48071 (__libc_use_alloca) [!defined _LIBC]: New macro.
48072 * lib/regexec.c (build_trtable): Remove "#ifdef _LIBC", since the code
48073 now works outside glibc.
48075 2005-08-25 Paul Eggert <eggert@cs.ucla.edu>
48077 * config/srclist.txt: Add glibc bugs 1241, 1245.
48079 2005-08-25 Jim Meyering <jim@meyering.net>
48081 * lib/open-safer.c: Include <config.h>.
48082 Otherwise, we'd lose LARGEFILE support in any file using
48085 2005-08-25 Bruno Haible <bruno@clisp.org>
48087 * m4/minmax.m4: Require autoconf 2.52.
48088 (gl_MINMAX_IN_HEADER): Add comments. Use m4_pushdef/m4_popdef instead
48089 of define/undefine. Use AS_TR_SH and AS_TR_CPP as more robust
48090 alternatives of translit over the alphabet.
48091 Based on a patch from Stepan Kasal <kasal@ucw.cz>.
48093 2005-08-24 Simon Josefsson <jas@extundo.com>
48095 * tests/test-getpass.c: New file.
48097 2005-08-24 Paul Eggert <eggert@cs.ucla.edu>
48099 * m4/regex.m4 (gl_REGEX): Use POSIX-compliant spellings when testing
48100 for GNU regex features.
48102 2005-08-24 Paul Eggert <eggert@cs.ucla.edu>
48104 * lib/regcomp.c (regerror): 2nd arg is 'restrict', as per POSIX.
48105 * lib/regex.h (regerror): Likewise.
48107 * lib/regex.c: Do not include <sys/types.h>, as POSIX no longer
48108 requires this. (The code never needed it.)
48110 * lib/regcomp.c, regex_internal.c, regex_internal.h, regexec.c:
48111 All uses of recently-renamed identifiers changed to use the new,
48112 POSIX-compliant names. The code will build and run just fine
48113 without these changes, but it's better to eat our own dog food
48114 and use the standard-conforming names.
48116 * lib/regex.h: Fix a multitude of POSIX name space violations.
48117 These changes have an effect only for programs that define
48118 _POSIX_C_SOURCE, _POSIX_SOURCE, or _XOPEN_SOURCE; they
48119 do not change anything for programs compiled in the normal way.
48120 Also, there is no effect on the ABI.
48122 (_REGEX_SOURCE): New macro.
48123 Do not include <stddef.h> if _XOPEN_SOURCE and VMS are both
48124 defined and _GNU_SOURCE is not; this fixes a name space violation.
48126 Rename the following macros to obey POSIX requirements.
48127 The old names are still visible as macros if _REGEX_SOURCE is defined.
48128 (REG_BACKSLASH_ESCAPE_IN_LISTS): renamed from
48129 RE_BACKSLASH_ESCAPE_IN_LISTS.
48130 (REG_BK_PLUS_QM): renamed from RE_BK_PLUS_QM.
48131 (REG_CHAR_CLASSES): renamed from RE_CHAR_CLASSES.
48132 (REG_CONTEXT_INDEP_ANCHORS): renamed from RE_CONTEXT_INDEP_ANCHORS.
48133 (REG_CONTEXT_INDEP_OPS): renamed from RE_CONTEXT_INDEP_OPS.
48134 (REG_CONTEXT_INVALID_OPS): renamed from RE_CONTEXT_INVALID_OPS.
48135 (REG_DOT_NEWLINE): renamed from RE_DOT_NEWLINE.
48136 (REG_DOT_NOT_NULL): renamed from RE_DOT_NOT_NULL.
48137 (REG_HAT_LISTS_NOT_NEWLINE): renamed from RE_HAT_LISTS_NOT_NEWLINE.
48138 (REG_INTERVALS): renamed from RE_INTERVALS.
48139 (REG_LIMITED_OPS): renamed from RE_LIMITED_OPS.
48140 (REG_NEWLINE_ALT): renamed from RE_NEWLINE_ALT.
48141 (REG_NO_BK_BRACES): renamed from RE_NO_BK_BRACES.
48142 (REG_NO_BK_PARENS): renamed from RE_NO_BK_PARENS.
48143 (REG_NO_BK_REFS): renamed from RE_NO_BK_REFS.
48144 (REG_NO_BK_VBAR): renamed from RE_NO_BK_VBAR.
48145 (REG_NO_EMPTY_RANGES): renamed from RE_NO_EMPTY_RANGES.
48146 (REG_UNMATCHED_RIGHT_PAREN_ORD): renamed from
48147 RE_UNMATCHED_RIGHT_PAREN_ORD.
48148 (REG_NO_POSIX_BACKTRACKING): renamed from RE_NO_POSIX_BACKTRACKING.
48149 (REG_NO_GNU_OPS): renamed from RE_NO_GNU_OPS.
48150 (REG_DEBUG): renamed from RE_DEBUG.
48151 (REG_INVALID_INTERVAL_ORD): renamed from RE_INVALID_INTERVAL_ORD.
48152 (REG_IGNORE_CASE): renamed from RE_ICASE. This renaming is a bit
48153 unusual, since we can't clash with the POSIX REG_ICASE.
48154 (REG_CARET_ANCHORS_HERE): renamed from RE_CARET_ANCHORS_HERE.
48155 (REG_CONTEXT_INVALID_DUP): renamed from RE_CONTEXT_INVALID_DUP.
48156 (REG_NO_SUB): renamed from RE_NO_SUB.
48157 (REG_SYNTAX_EMACS): renamed from RE_SYNTAX_EMACS.
48158 (REG_SYNTAX_AWK): renamed from RE_SYNTAX_AWK.
48159 (REG_SYNTAX_GNU_AWK): renamed from RE_SYNTAX_GNU_AWK.
48160 (REG_SYNTAX_POSIX_AWK): renamed from RE_SYNTAX_POSIX_AWK.
48161 (REG_SYNTAX_GREP): renamed from RE_SYNTAX_GREP.
48162 (REG_SYNTAX_EGREP): renamed from RE_SYNTAX_EGREP.
48163 (REG_SYNTAX_POSIX_EGREP): renamed from RE_SYNTAX_POSIX_EGREP.
48164 (REG_SYNTAX_ED): renamed from RE_SYNTAX_ED.
48165 (REG_SYNTAX_SED): renamed from RE_SYNTAX_SED.
48166 (_REG_SYNTAX_POSIX_COMMON): renamed from _RE_SYNTAX_POSIX_COMMON.
48167 (REG_SYNTAX_POSIX_BASIC): renamed from RE_SYNTAX_POSIX_BASIC.
48168 (REG_SYNTAX_POSIX_MINIMAL_BASIC): renamed from
48169 RE_SYNTAX_POSIX_MINIMAL_BASIC.
48170 (REG_SYNTAX_POSIX_EXTENDED): renamed from RE_SYNTAX_POSIX_EXTENDED.
48171 (REG_SYNTAX_POSIX_MINIMAL_EXTENDED): renamed from
48172 RE_SYNTAX_POSIX_MINIMAL_EXTENDED.
48173 (REG_DUP_MAX): renamed from RE_DUP_MAX. No need to undef it.
48174 (REG_UNALLOCATED): Renamed from REGS_UNALLOCATED.
48175 (REG_REALLOCATE): Renamed from REGS_REALLOCATE.
48176 (REG_FIXED): Renamed from REGS_FIXED.
48177 (REG_NREGS): Renamed from RE_NREGS.
48179 (REG_ICASE, REG_NEWLINE, REG_NOSUB): Do not depend on the values
48180 of other REG_* macros, since POSIX says the user is allowed to
48181 #undef these macros selectively.
48183 (reg_errcode_t): Update comment stating what other tables need
48186 Rename the following enum values to obey POSIX requirements.
48187 The old names are still visible as macros.
48188 (_REG_ENOSYS): Renamed from REG_ENOSYS. Define even if _XOPEN_SOURCE
48189 is not defined, since GNU is supposed to be a superset of POSIX as
48190 much as possible, and since we want reg_errcode_t to be a signed
48191 type for implementation consistency.
48192 (_REG_NOERROR): Renamed from REG_NOERROR.
48193 (_REG_NOMATCH): Renamed from REG_NOMATCH.
48194 (_REG_BADPAT): Renamed from REG_BADPAT.
48195 (_REG_ECOLLATE): Renamed from REG_ECOLLATE.
48196 (_REG_ECTYPE): Renamed from REG_ECTYPE.
48197 (_REG_EESCAPE): Renamed from REG_EESCAPE.
48198 (_REG_ESUBREG): Renamed from REG_ESUBREG.
48199 (_REG_EBRACK): Renamed from REG_EBRACK.
48200 (_REG_EPAREN): Renamed from REG_EPAREN.
48201 (_REG_EBRACE): Renamed from REG_EBRACE.
48202 (_REG_BADBR): Renamed from REG_BADBR.
48203 (_REG_ERANGE): Renamed from REG_ERANGE.
48204 (_REG_ESPACE): Renamed from REG_ESPACE.
48205 (_REG_BADRPT): Renamed from REG_BADRPT.
48206 (_REG_EEND): Renamed from REG_EEND.
48207 (_REG_ESIZE): Renamed from REG_ESIZE.
48208 (_REG_ERPAREN): Renamed from REG_ERPAREN.
48209 (REG_ENOSYS, REG_NOERROR, REG_NOMATCH, REG_BADPAT, REG_ECOLLATE):
48210 (REG_ECTYPE, REG_EESCAPE, REG_ESUBREG, REG_EBRACK, REG_EPAREN):
48211 (REG_EBRACE, REG_BADBR, REG_ERANGE, REG_ESPACE, REG_BADRPT, REG_EEND):
48212 (REG_ESIZE, REG_ERPAREN): Now macros, not enum constants.
48214 (_REG_RE_NAME, _REG_RM_NAME): New macros.
48215 (REG_TRANSLATE_TYPE): Renamed from RE_TRANSLATE_TYPE. All uses
48216 changed. But support the old name if the new one is not defined
48217 and if _REGEX_SOURCE.
48219 Change the following member names in struct re_pattern_buffer.
48220 The old names are still supported if !_REGEX_SOURCE.
48221 The new names are always supported, regardless of _REGEX_SOURCE.
48222 (re_buffer): Renamed from buffer.
48223 (re_allocated): Renamed from allocated.
48224 (re_used): Renamed from used.
48225 (re_syntax): Renamed from syntax.
48226 (re_fastmap): Renamed from fastmap.
48227 (re_translate): Renamed from translate.
48228 (re_can_be_null): Renamed from can_be_null.
48229 (re_regs_allocated): Renamed from regs_allocated.
48230 (re_fastmap_accurate): Renamed from fastmap_accurate.
48231 (re_no_sub): Renamed from no_sub.
48232 (re_not_bol): Renamed from not_bol.
48233 (re_not_eol): Renamed from not_eol.
48234 (re_newline_anchor): Renamed from newline_anchor.
48236 Change the following member names in struct re_registers.
48237 The old names are still supported if !_REGEX_SOURCE.
48238 The new names are always supported, regardless of _REGEX_SOURCE.
48239 (rm_num_regs): Renamed from num_regs.
48240 (rm_start): Renamed from start.
48241 (rm_end): Renamed from end.
48243 (re_set_syntax, re_compile_pattern, re_compile_fastmap):
48244 (re_search, re_search_2, re_match, re_match_2, re_set_registers):
48245 Prepend __ to parameter names.
48247 Undo yesterday's changes.
48249 2005-08-24 Paul Eggert <eggert@cs.ucla.edu>
48251 * config/srclist.txt: Remove glibc bug 1233 and add 1236, which
48252 supersedes it. Add glibc bugs 1237, 1238, 1240. Comment out
48255 2005-08-24 Jim Meyering <jim@meyering.net>
48257 Sync from coreutils.
48258 * m4/fcntl-safer.m4: New file.
48260 * m4/xgetcwd.m4: Use AC_LIBSOURCES and AC_LIBOBJ to indicate source
48261 and object files for this module.
48263 2005-08-24 Jim Meyering <jim@meyering.net>
48265 Sync from coreutils.
48266 * lib/fcntl--.h, lib/fcntl-safer.h, lib/open-safer.c: New files.
48268 2005-08-24 Jim Meyering <jim@meyering.net>
48270 * modules/xgetcwd (Makefile.am): Remove `lib_SOURCES += ...' line,
48271 now that xgetcwd.m4 requires xgetcwd.c and xgetcwd.h.
48273 2005-08-24 Jim Meyering <jim@meyering.net>
48275 * modules/fcntl-safer: New module.
48276 * modules/fts (Depends-on): Add fcntl-safer.
48277 * MODULES.html.sh (File descriptor based Input/Output):
48280 2005-08-24 Bruno Haible <bruno@clisp.org>
48282 Support for unit test modules.
48283 * modules/README: Mention tests modules.
48284 * modules/TEMPLATE-TESTS: New file.
48285 * gnulib-tool: New options --extract-tests-module, --with-tests and
48286 --tests-base (unused for the moment).
48287 (testsbase, inctests): New variables.
48288 (func_all_modules): Exclude TEMPLATE-TESTS and *-tests.
48289 (func_verify_module): Exclude TEMPLATE-TESTS.
48290 (func_verify_nontests_module, func_verify_tests_module): New functions.
48291 (func_get_dependencies): Add implicit dependency for tests modules.
48292 (func_get_tests_module): New function.
48293 (func_modules_transitive_closure): When --with-tests was specified,
48294 include the unit tests as well, unless explicitly avoided.
48295 (func_emit_lib_Makefile_am): Ignore the tests modules here.
48296 (func_emit_tests_Makefile_am): New function.
48297 (func_create_testdir): When --with-tests was specified, emit a
48299 * MODULES.html.sh (Future developments): Update.
48301 2005-08-24 Bruno Haible <bruno@clisp.org>
48303 * modules/tls-tests: New file.
48304 * tests/test-tls.c: New file, from GNU gettext.
48306 2005-08-24 Bruno Haible <bruno@clisp.org>
48308 * modules/lock-tests: New file.
48309 * tests/test-lock.c: New file, from GNU gettext.
48311 2005-08-24 Bruno Haible <bruno@clisp.org>
48313 * lib/lock.h: Add multiple inclusion guard.
48314 * lib/tls.h: Add multiple inclusion guard.
48316 2005-08-24 Bruno Haible <bruno@clisp.org>
48318 * gnulib-tool: Add support for the --aux-dir option to
48319 --create-testdir, --create-megatestdir, --test, --megatest.
48320 (func_create_testdir, func_create_megatestdir): Optionally emit a
48321 AC_CONFIG_AUX_DIR directive.
48322 (create-testdir, create-megatestdir, test, megatest): Provide a
48323 default value for $auxdir.
48325 2005-08-24 Bruno Haible <bruno@clisp.org>
48327 * gnulib-tool (import): Use compound statement instead of subshell
48330 2005-08-24 Bruno Haible <bruno@clisp.org>
48332 * gnulib-tool (import): Change --aux-dir default to "build-aux".
48334 2005-08-24 Bruno Haible <bruno@clisp.org>
48336 * gnulib-tool (func_version): Update.
48338 2005-08-24 Bruno Haible <bruno@clisp.org>
48340 * gnulib-tool (func_import, func_create_testdir,
48341 func_create_megatestdir): Quote all autoconf macro arguments.
48343 2005-08-24 Bruno Haible <bruno@clisp.org>
48345 * gnulib-tool (func_create_megatestdir): Call autoreconf without the
48346 option --force, because --force causes the aclocal.m4 of each
48347 subdirectory to be newer than the corresponding config.h.in.
48349 2005-08-23 Paul Eggert <eggert@cs.ucla.edu>
48351 * m4/regex.m4 (gl_INCLUDED_REGEX): Remove; no longer used.
48352 All contents moved to gl_REGEX.
48353 (gl_REGEX): Don't bother checking whether lib/regex.c exists;
48354 assume that it does.
48356 2005-08-23 Paul Eggert <eggert@cs.ucla.edu>
48358 * lib/regex.h (REG_NOSYS)
48359 [!defined _XOPEN_SOURCE && 200112L <= _POSIX_C_SOURCE]:
48360 Define, since POSIX requires it as of 2001.
48362 [! (defined _XOPEN_SOURCE || 200112L <= _POSIX_C_SOURCE)]:
48363 New private symbol, used to keep the enum signed in all cases.
48364 * lib/regex.h (RE_NO_EMPTY_RANGES): Fix doc bug reported by James
48366 <http://lists.gnu.org/archive/html/bug-gnulib/2005-07/msg00132.html>.
48368 * lib/regex_internal.c (re_string_skip_chars, register_state):
48370 Remove forward decls; no longer needed now that we use prototypes.
48371 * lib/regexec.c (acquire_init_state_context, check_halt_node_context):
48372 (proceed_next_node, pop_fail_stack, sub_epsilon_src_nodes):
48373 (clean_state_log_if_needed): Likewise.
48375 2005-08-23 Paul Eggert <eggert@cs.ucla.edu>
48377 * config/srclist.txt: Add glibc bugs 1231-1233.
48379 2005-08-20 Paul Eggert <eggert@cs.ucla.edu>
48381 Fix problems reported by Sam Steingold in
48382 <http://lists.gnu.org/archive/html/bug-gnulib/2005-08/msg00007.html>.
48383 * lib/regexec.c (sift_states_bkref): Fix portability bug: the code
48384 assumed that reg_errcode_t is a signed type, which is not
48385 necessarily true if _XOPEN_SOURCE is not defined.
48386 * lib/regex_internal.c (calc_state_hash): Put 'inline' before type,
48387 since some compilers warn about it otherwise.
48389 2005-08-20 Paul Eggert <eggert@cs.ucla.edu>
48391 * lib/regcomp.c (create_initial_state): Remove duplicate decl.
48392 (init_word_char, create_initial_state, duplicate_node_closure):
48393 (fetch_token, peek_token_bracket, build_range_exp):
48394 (build_collating_symbol): Remove forward decls; no longer needed
48395 now that we use prototypes.
48398 (re_compile_pattern, re_set_syntax, re_compile_fastmap):
48399 (re_compile_fastmap_iter, regcomp, regerror, regfree):
48400 (re_compile_internal, init_dfa, init_word_char, free_workarea_compile):
48401 (create_initial_state, optimize_utf8, analyze, postorder, preorder):
48402 (optimize_subexps, lower_subexps, lower_subexp, calc_first, calc_next):
48403 (link_nfa_nodes, duplicate_node_closure, search_duplicated_node):
48404 (duplicate_node, calc_inveclosure, calc_eclosure, calc_eclosure_iter):
48405 (fetch_token, peek_token, peek_token_bracket, parse, parse_reg_exp):
48406 (parse_branch, parse_expression, parse_sub_exp, parse_dup_op):
48407 (build_range_exp, build_collating_symbol, parse_bracket_exp):
48408 (parse_bracket_element, parse_bracket_symbol, build_equiv_class):
48409 (build_charclass, build_charclass_op, fetch_number, create_tree):
48410 (create_token_tree, mark_opt_subexp, duplicate_tree):
48411 Use prototypes rather than old-style definitions.
48413 * lib/regex_internal.c:
48414 (re_string_allocate, re_string_construct, re_string_realloc_buffers):
48415 (re_string_construct_common, build_wcs_buffer, build_wcs_upper_buffer):
48416 (re_string_skip_chars, build_upper_buffer, re_string_translate_buffer):
48417 (re_string_reconstruct, re_string_peek_byte_case):
48418 (re_string_fetch_byte_case, re_string_destruct, re_string_context_at):
48419 (re_node_set_alloc, re_node_set_init_1, re_node_set_init_2):
48420 (re_node_set_init_copy, re_node_set_add_intersect):
48421 (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
48422 (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
48423 (re_node_set_remove_at, re_dfa_add_node, calc_state_hash):
48424 (re_acquire_state, re_acquire_state_context, register_state):
48425 (create_ci_newstate, create_cd_newstate, free_state):
48427 * lib/regexec.c (regexec, re_match, re_search, re_match_2,
48429 (re_search_2_stub, re_search_stub, re_copy_regs, re_set_registers):
48430 (re_search_internal, prune_impossible_nodes):
48431 (acquire_init_state_context, check_matching, static):
48432 (check_halt_node_context, check_halt_state_context, proceed_next_node):
48433 (push_fail_stack, pop_fail_stack, set_regs, free_fail_stack_return):
48434 (update_regs, sift_states_backward, build_sifted_states):
48435 (clean_state_log_if_needed, merge_state_array):
48436 (update_cur_sifted_state, add_epsilon_src_nodes):
48437 (sub_epsilon_src_nodes, check_dst_limits, check_dst_limits_calc_pos_1):
48438 (check_dst_limits_calc_pos, check_subexp_limits, sift_states_bkref):
48439 (sift_states_iter_mb, transit_state, merge_state_with_log, static):
48440 (find_recover_state, check_subexp_matching_top, transit_state_mb):
48441 (transit_state_bkref, get_subexp, get_subexp_sub, find_subexp_node):
48442 (check_arrival, check_arrival_add_next_nodes):
48443 (check_arrival_expand_ecl, check_arrival_expand_ecl_sub):
48444 (expand_bkref_cache, build_trtable, group_nodes_into_DFAstates):
48445 (check_node_accept_bytes, check_node_accept, extend_buffers):
48446 (match_ctx_init, match_ctx_clean, match_ctx_free, match_ctx_add_entry):
48447 (search_cur_bkref_entry, match_ctx_add_subtop, match_ctx_add_sublast):
48451 * lib/regex_internal.h:
48452 (re_string_allocate, re_string_construct, re_string_reconstruct):
48453 (re_string_realloc_buffers, build_wcs_buffer, build_wcs_upper_buffer):
48454 (build_upper_buffer, re_string_translate_buffer, re_string_destruct):
48455 (re_string_elem_size_at, re_string_char_size_at, re_string_wchar_at):
48456 (re_string_context_at, re_string_peek_byte_case):
48457 (re_string_fetch_byte_case): Declare even if RE_NO_INTERNAL_PROTOTYPES
48458 is defined, since we now use prototypes always.
48460 * lib/regex.h (_RE_ARGS): Remove. No longer needed, since we assume
48461 C89 or better. All uses removed.
48463 2005-08-20 Paul Eggert <eggert@cs.ucla.edu>
48465 * config/srclist.txt: Add glibc bugs 1220-1227.
48467 2005-08-20 Jim Meyering <jim@meyering.net>
48469 * lib/regexec.c (regexec, re_search_stub) [!_LIBC]: Omit declaration
48470 of unused local, dfa.
48472 2005-08-20 Bruno Haible <bruno@clisp.org>
48474 * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_GNU_SOURCE.
48476 2005-08-19 Paul Eggert <eggert@cs.ucla.edu>
48478 * lib/regex_internal.c (re_string_realloc_buffers, re_node_set_insert):
48479 (re_node_set_insert_last, re_dfa_add_node):
48480 Rename local variables to avoid GCC shadowing warnings.
48482 2005-08-19 Paul Eggert <eggert@cs.ucla.edu>
48484 * lib/regex_internal.c (re_acquire_state, re_acquire_state_context)
48485 [defined lint]: Suppress bogus uninitialized-variable warnings.
48487 * lib/regcomp.c (duplicate_node): Return new index, not an error code,
48488 and let the caller return REG_ESPACE if out of space. This
48489 removes an uninitialied-variable warning with GCC 4.0.1, and also
48490 avoids taking the address of a local variable. All callers
48493 2005-08-19 Paul Eggert <eggert@cs.ucla.edu>
48495 * config/srclist.txt: Comment out $LIBCSRC/posix/regex_internal.c,
48496 $LIBCSRC/posix/regexec.c.
48497 Add glibc bug 1217 for regcomp.c.
48499 2005-08-19 Jim Meyering <jim@meyering.net>
48501 * lib/regexec.c (proceed_next_node): Redo local variables to
48502 avoid GCC shadowing warnings.
48504 2005-08-18 Bruno Haible <bruno@clisp.org>
48506 * lib/strstr.c (strstr): Fix return value in multibyte case.
48507 * lib/strcasestr.c (strcasestr): Likewise.
48509 2005-08-17 Paul Eggert <eggert@cs.ucla.edu>
48511 * lib/regex.h: Remove useless space-before-tab. From coreutils.
48513 2005-08-17 Jim Meyering <jim@meyering.net>
48515 Make the %s format (seconds since the epoch) work for a negative
48516 number and when used with a zero-padded field width, e.g. %015s.
48518 * lib/strftime.c (my_strftime): Move the `do_number_sign_and_padding'
48519 label so that it precedes the code to set `digits'. Otherwise,
48520 %0Ns wouldn't work. Before this change, `date -d @-22 +%05s' would
48521 print `00-22'. Now, it prints `-0022', as it should.
48523 2005-08-17 Bruno Haible <bruno@clisp.org>
48525 * modules/strstr (Files): Add m4/mbrtowc.m4.
48526 (Depends-on): Add mbuiter.
48528 2005-08-17 Bruno Haible <bruno@clisp.org>
48530 * modules/strcasestr: New file.
48531 * MODULES.html.sh (String handling, based on ANSI C 89): Add
48534 2005-08-17 Bruno Haible <bruno@clisp.org>
48536 * modules/strcase (Depends-on): Add mbuiter. Remove strnlen1, mbchar.
48538 2005-08-17 Bruno Haible <bruno@clisp.org>
48540 * modules/mbuiter: New file.
48541 * MODULES.html.sh (Extended multibyte and wide character utilities):
48544 2005-08-17 Bruno Haible <bruno@clisp.org>
48546 * m4/strstr.m4 (gl_FUNC_STRSTR): Use the replacement function always.
48547 (gl_PREREQ_STRSTR): Use gl_FUNC_MBRTOWC.
48549 2005-08-17 Bruno Haible <bruno@clisp.org>
48551 * m4/strcasestr.m4: New file.
48553 2005-08-17 Bruno Haible <bruno@clisp.org>
48555 * lib/strstr.h: Ignore HAVE_STRSTR, always declare the gnulib function.
48556 * lib/strstr.c: Completely rewritten, with multibyte locale support.
48558 2005-08-17 Bruno Haible <bruno@clisp.org>
48560 * lib/strcasestr.h: New file.
48561 * lib/strcasestr.c: New file.
48563 2005-08-17 Bruno Haible <bruno@clisp.org>
48565 * lib/strcasecmp.c: Use mbuiter.h.
48567 2005-08-17 Bruno Haible <bruno@clisp.org>
48569 * lib/mbuiter.h: New file.
48571 2005-08-16 Paul Eggert <eggert@cs.ucla.edu>
48573 * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Do not override the results
48574 of gl_GETOPT_SUBSTITUTE. That way, if both gl_GETOPT_SUBSTITUTE
48575 and gl_GETOPT are both invoked via different paths (as happens
48576 with GNU tar CVS because it uses both argp and getopt), the former
48579 2005-08-16 Bruno Haible <bruno@clisp.org>
48581 * modules/tls: New file.
48582 * MODULES.html.sh (Multithreading): Add tls.
48584 2005-08-16 Bruno Haible <bruno@clisp.org>
48586 * modules/strnlen1: New file.
48587 * MODULES.html.sh (String handling): Add strnlen1.
48589 2005-08-16 Bruno Haible <bruno@clisp.org>
48591 * modules/strcase (Files): Add m4/mbrtowc.m4.
48592 (Depends-on): Add strnlen1, mbchar.
48594 2005-08-16 Bruno Haible <bruno@clisp.org>
48596 * modules/mbiter: New file.
48597 * MODULES.html.sh (Extended multibyte and wide character utilities):
48600 2005-08-16 Bruno Haible <bruno@clisp.org>
48602 * modules/mbfile: New file.
48603 * MODULES.html.sh (Extended multibyte and wide character utilities):
48606 2005-08-16 Bruno Haible <bruno@clisp.org>
48608 * modules/mbchar: New file.
48609 * MODULES.html.sh (Extended multibyte and wide character utilities):
48612 2005-08-16 Bruno Haible <bruno@clisp.org>
48614 * m4/tls.m4: New file, from GNU gettext.
48616 2005-08-16 Bruno Haible <bruno@clisp.org>
48618 * m4/strcase.m4 (gl_FUNC_STRCASECMP): Use the replacement function
48620 (gl_PREREQ_STRCASECMP): Use gl_FUNC_MBRTOWC.
48622 2005-08-16 Bruno Haible <bruno@clisp.org>
48624 * m4/mbiter.m4: New file.
48626 2005-08-16 Bruno Haible <bruno@clisp.org>
48628 * m4/mbfile.m4: New file.
48630 2005-08-16 Bruno Haible <bruno@clisp.org>
48632 * m4/mbchar.m4: New file.
48634 2005-08-16 Bruno Haible <bruno@clisp.org>
48636 * lib/tls.h: New file, from GNU gettext.
48637 * lib/tls.c: New file, from GNU gettext.
48639 2005-08-16 Bruno Haible <bruno@clisp.org>
48641 * lib/strnlen1.h: New file.
48642 * lib/strnlen1.c: New file.
48644 2005-08-16 Bruno Haible <bruno@clisp.org>
48646 * lib/strcasecmp.c (struct mbiter_multi): Remove at_end field.
48647 (mbi_init): Update.
48648 (mbi_avail, mbi_advance): Let the iteration end before the terminating
48649 NUL byte, not after it.
48651 2005-08-16 Bruno Haible <bruno@clisp.org>
48653 * lib/strcase.h (strcasecmp): Add note in comments.
48654 * lib/strncasecmp.c: Use code from strcasecmp.c.
48655 * lib/strcasecmp.c: Use mbchar module. Define private mbiter variant.
48656 (strcasecmp): Work correctly in multibyte locales.
48658 2005-08-16 Bruno Haible <bruno@clisp.org>
48660 * lib/mbiter.h: New file.
48662 2005-08-16 Bruno Haible <bruno@clisp.org>
48664 * lib/mbfile.h: New file.
48666 2005-08-16 Bruno Haible <bruno@clisp.org>
48668 * lib/mbchar.h: New file.
48669 * lib/mbchar.c: New file.
48671 2005-08-16 Bruno Haible <bruno@clisp.org>
48673 * lib/mbchar.h (mb_cmp, mb_casecmp): Order the invalid characters after
48674 the valid ones. Makes the comparison operations transitive:
48675 cmp (a, b) < 0 && cmp (b, c) < 0 ==> cmp (a, c) < 0.
48676 * lib/strcasecmp.c (strcasecmp): Use mb_casecmp.
48678 2005-08-15 Simon Josefsson <jas@extundo.com>
48680 * modules/ssize_t (License): Change to 'unlimited'.
48682 * gnulib-tool (sed_extract_prog): Recognize 'unlimited' license.
48684 2005-08-15 Paul Eggert <eggert@cs.ucla.edu>
48686 * config/srclist.txt: Comment out $LIBCSRC/posix/regex.h.
48687 Add comments for each pending glibc patch.
48689 2005-08-15 Bruno Haible <bruno@clisp.org>
48691 * lib/regex.h (__restrict_arr): Don't define to __restrict if
48692 __cplusplus is defined.
48694 2005-08-14 Jim Meyering <jim@meyering.net>
48696 Sync from coreutils.
48698 * lib/fts-cycle.c (setup_dir, enter_dir, leave_dir, free_dir):
48699 Use the hash-table-based cycle-detection code not just when
48700 FTS_TIGHT_CYCLE_CHECK if specified, but also with FTS_LOGICAL.
48701 Reported by James Youngman in
48702 <http://lists.gnu.org/archive/html/bug-gnulib/2005-08/msg00011.html>.
48703 * lib/fts_.h: Mention that with FTS_LOGICAL, we use
48704 FTS_TIGHT_CYCLE_CHECK.
48705 * lib/fts.c (fts_cross_check) [FTS_DEBUG]:
48706 s/active_dir_ht/fts_cycle.ht/. This lets us compile with -DFTS_DEBUG,
48708 * lib/fts.c [! _LIBC]: Include "lstat.h" rather than rolling our own.
48709 * lib/fts.c (fd_safer): Remove decl.
48710 Include fcntl--.h rather than unistd-safer.h
48711 (fts_safe_changedir): Don't call fd_safer; no longer needed
48712 now that we include fcntl--.h.
48714 2005-08-12 Simon Josefsson <jas@extundo.com>
48716 * modules/getndelim2: Use ssize_t module.
48717 * modules/getnline: Likewise.
48718 * modules/safe-read: Likewise.
48719 * modules/xreadlink: Likewise.
48721 * modules/ssize_t: New file.
48723 2005-08-12 Simon Josefsson <jas@extundo.com>
48725 * m4/readline.m4: Look for termcap, curses or ncurses if required.
48727 2005-08-12 Simon Josefsson <jas@extundo.com>
48729 * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
48732 2005-08-12 Simon Josefsson <jas@extundo.com>
48734 * MODULES.html.sh (Extra functions based on ANSI C 89: Misc): Add
48735 readline, getdelim and check_version.
48736 (Support for systems lacking ISO C 99: Sizes of integer types):
48739 2005-08-12 Bruno Haible <bruno@clisp.org>
48741 * m4/readline.m4 (gl_FUNC_READLINE): Look for ncurses first.
48743 2005-08-11 Simon Josefsson <jas@extundo.com>
48745 * modules/readline: New file.
48747 * modules/strnlen (Files): Add strnlen.h.
48749 2005-08-11 Simon Josefsson <jas@extundo.com>
48751 * m4/readline.m4: New file.
48753 2005-08-11 Simon Josefsson <jas@extundo.com>
48755 * lib/readline.h, readline.c: New file.
48757 2005-08-11 Simon Josefsson <jas@extundo.com>
48759 * doc/gnulib.texi (Initial import, Finishing touches): Mention
48762 2005-08-11 Bruno Haible <bruno@clisp.org>
48764 * lib/strnlen.h (strnlen): Change parameter name to match comment.
48766 2005-08-10 Stepan Kasal <kasal@ucw.cz>
48768 * m4/onceonly_2_57.m4: Really require Autoconf 2.57.
48770 2005-08-10 Simon Josefsson <jas@extundo.com>
48772 * tests/test-iconvme.c: New file.
48774 2005-08-10 Simon Josefsson <jas@extundo.com>
48776 * m4/strnlen.m4: New file.
48778 * m4/strndup.m4: Don't check for strnlen declaration, done in
48781 2005-08-10 Simon Josefsson <jas@extundo.com>
48783 * lib/strndup.c: Use strnlen.h.
48785 * lib/strnlen.h: New file.
48787 2005-08-08 Ralf Wildenhues <Ralf.Wildenhues@gmx.de> (tiny change)
48791 2005-08-02 Simon Josefsson <jas@extundo.com>
48793 * modules/readline: New file.
48795 2005-08-02 Simon Josefsson <jas@extundo.com>
48797 * modules/getdelim: New file.
48799 * modules/getline: Rewrite, don't use getndelim2.
48801 2005-08-02 Simon Josefsson <jas@extundo.com>
48803 * m4/getline.m4: Separate out getdelim stuff into separate module.
48805 * m4/getdelim.m4: New file.
48807 2005-08-02 Simon Josefsson <jas@extundo.com>
48809 * lib/getline.h, getline.c: Rewrite.
48811 * lib/getdelim.h, lib/getdelim.c: New files, ported from glibc.
48813 2005-07-31 Bruno Haible <bruno@clisp.org>
48815 * lib/lock.h (gl_lock_initializer): New macro.
48816 (gl_lock_define_initialized): Use it.
48817 (gl_rwlock_initializer): New macro.
48818 (gl_rwlock_define_initialized): Use it.
48819 (gl_recursive_lock_initializer): New macro.
48820 (gl_recursive_lock_define_initialized): Use it.
48822 2005-07-30 Karl Berry <karl@gnu.org>
48824 * doc/gnulib.texi (Initial import): mention -I$(top_builddir)/lib.
48825 Report from Ben Pfaff, regarding getopt.
48827 2005-07-26 Paul Eggert <eggert@cs.ucla.edu>
48829 Add support to getopt for Emacs, which doesn't use LIBOBJS in the
48831 * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE_HEADER): New macro.
48832 (gl_GETOPT_SUBSTITUTE): Use it. Invoke gl_PREREQ_GETOPT.
48833 (gl_GETOPT_IFELSE, gl_GETOPT_CHECK_HEADERS): New macros.
48834 (gl_GETOPT): Use the new macros. Most of the implementation
48835 is moved to the new macros. This is for programs like Emacs
48836 that don't want all the functionality of gl_GETOPT.
48838 2005-07-26 Bruno Haible <bruno@clisp.org>
48840 * m4/lock.m4: Update from GNU gettext.
48842 2005-07-26 Bruno Haible <bruno@clisp.org>
48844 * lib/lock.h: Update from GNU gettext.
48845 * lib/lock.c: Update from GNU gettext.
48847 2005-07-25 Paul Eggert <eggert@cs.ucla.edu>
48849 * m4/regex.m4 (gl_INCLUDED_REGEX): Use AC_RUN_IFELSE instead of the
48850 obsolescent AC_TRY_RUN. Include the default includes files, for
48853 2005-07-24 Bruno Haible <bruno@clisp.org>
48855 * modules/visibility: New file.
48856 * MODULES.html.sh (Misc): Add visibility.
48858 2005-07-24 Bruno Haible <bruno@clisp.org>
48860 * m4/visibility.m4: New file.
48862 2005-07-24 Bruno Haible <bruno@clisp.org>
48864 * doc/visibility.texi: New file.
48866 2005-07-22 Bruno Haible <bruno@clisp.org>
48868 * modules/alloca-opt (Makefile.am): Remove explicit dependency on
48869 $(ALLOCA_H), redundant through BUILT_SOURCES.
48870 * modules/argz (Makefile.am): Remove explicit dependency on $(ARGZ_H),
48871 redundant through BUILT_SOURCES.
48872 * modules/byteswap (Makefile.am): Remove explicit dependency on
48873 $(BYTESWAP_H), redundant through BUILT_SOURCES.
48874 * modules/fnmatch (Makefile.am): Remove explicit dependency on
48875 $(FNMATCH_H), redundant through BUILT_SOURCES.
48876 * modules/getopt (Makefile.am): Remove explicit dependency on
48877 $(GETOPT_H), redundant through BUILT_SOURCES.
48878 * modules/glob (Makefile.am): Remove explicit dependency on $(GLOB_H),
48879 redundant through BUILT_SOURCES.
48880 * modules/poll (Makefile.am): Remove explicit dependency on $(POLL_H),
48881 redundant through BUILT_SOURCES.
48882 * modules/stdbool (Makefile.am): Remove explicit dependency on
48883 $(STDBOOL_H), redundant through BUILT_SOURCES.
48884 * modules/stdint (Makefile.am): Remove explicit dependency on
48885 $(STDINT_H), redundant through BUILT_SOURCES.
48886 * modules/sysexits (Makefile.am): Add $(SYSEXITS_H) to BUILT_SOURCES.
48887 Remove explicit dependency on $(SYSEXITS_H).
48888 Reported by Alexandre Duret-Lutz <adl@src.lip6.fr>.
48890 2005-07-18 Simon Josefsson <jas@extundo.com>
48892 * lib/check-version.c (check_version): Accept identical versions too.
48894 2005-07-18 Bruno Haible <bruno@clisp.org>
48896 * modules/lock: New file.
48897 * MODULES.html.sh (Multithreading): New section.
48899 2005-07-18 Bruno Haible <bruno@clisp.org>
48901 * m4/lock.m4: New file, from GNU gettext.
48903 2005-07-18 Bruno Haible <bruno@clisp.org>
48905 * lib/lock.h: New file, from GNU gettext.
48906 * lib/lock.c: New file, from GNU gettext.
48908 2005-07-18 Bruno Haible <bruno@clisp.org>
48910 * lib/lock.h (gl_once_t): New type.
48911 (gl_once_define, gl_once): New macros.
48912 * lib/lock.c (fresh_once): New variable.
48913 (glthread_once, glthread_once_call, glthread_once_singlethreaded): New
48916 2005-07-16 Simon Josefsson <jas@extundo.com>
48918 * doc/gnulib.texi (Library version handling): Add ELF symbol collision
48919 workaround, suggested by Bruno.
48921 2005-07-15 Paul Eggert <eggert@cs.ucla.edu>
48923 * modules/xalloc (Depends-on): Add xalloc-die.
48924 * modules/xvasprintf (Depends-on): Add xalloc-die.
48926 2005-07-15 Paul Eggert <eggert@cs.ucla.edu>
48928 * lib/quotearg.c: Add translator comment suggested by Bruno Haible,
48929 with a minor change.
48931 2005-07-15 Bruno Haible <bruno@clisp.org>
48933 * m4/poll.m4 (gl_FUNC_POLL): Check against MacOS X 10.4 poll() bug.
48934 When using lib/poll.c, define poll as rpl_poll.
48936 2005-07-14 Paul Eggert <eggert@cs.ucla.edu>
48938 * modules/argp (Depends-on): Remove unlocked-io.
48940 2005-07-14 Derek Price <derek@ximbiot.com>
48942 * m4/glob.m4 (gl_GLOB): Cache glob interface check result. Add check
48943 for glob symlink bug.
48945 2005-07-14 Bruno Haible <bruno@clisp.org>
48947 * m4/argp.m4 (gl_ARGP): Remove invocation of gl_FUNC_GLIBC_UNLOCKED_IO.
48948 Instead, test for *_unlocked function declarations directly.
48950 2005-07-11 Simon Josefsson <jas@extundo.com>
48952 * modules/size_max: New file.
48954 * modules/xsize: Depend on size_max module for size_max.m4.
48956 2005-07-11 Simon Josefsson <jas@extundo.com>
48958 * lib/size_max.h: New file.
48960 2005-07-11 Paul Eggert <eggert@cs.ucla.edu>
48962 * lib/version-etc-fsf.c (version_etc_copyright): Parameterize the
48963 copyright symbol and the year.
48964 * lib/version-etc.c (COPYRIGHT_YEAR): New constant.
48965 (version_etc_va): Use parameterized copyright notice.
48966 Reword to conform to the current GNU coding standards.
48968 2005-07-11 Karl Berry <karl@gnu.org>
48970 * doc/gnulib.texi (Quoting): new node.
48971 (Initial import): more info, from Patrice.
48973 2005-07-11 Bruno Haible <bruno@clisp.org>
48975 * gnulib-tool (func_usage): Document option --avoid.
48976 (Command line options): Handle --avoid.
48977 (func_acceptable): New function.
48978 (func_modules_transitive_closure): Use it.
48980 2005-07-11 Bruno Haible <bruno@clisp.org>
48982 * MODULES.html.sh: Use shortcut URLs to the www.opengroup.org site.
48983 Reported by Jim Meyering.
48985 2005-07-10 Bruno Haible <bruno@clisp.org>
48987 * m4/size_max.m4 (gl_SIZE_MAX): Cast ~(size_t)0 back to size_t.
48988 Needed when size_t is smaller than 'unsigned int'.
48989 Reported by Paul Eggert.
48991 2005-07-09 Sergey Poznyakoff <gray@gnu.org.ua>
48993 * modules/argp (Depends-on): Add unlocked-io
48995 2005-07-09 Sergey Poznyakoff <gray@gnu.org.ua>
48997 * lib/argp-namefrob.h: Include unlocked-io.h. Removed unnecessary
49000 2005-07-08 Paul Eggert <eggert@cs.ucla.edu>
49002 * config/srclist.txt: Comment out regcomp.c, since we have a porting
49005 2005-07-08 Eric Blake <ebb9@byu.net> (tiny change)
49006 and Paul Eggert <eggert@cs.ucla.edu>
49008 * lib/regcomp.c (init_dfa, build_range_exp): Store __btowc value
49009 in wint_t, not wchar_t. Remove now-unnecessary cast.
49011 2005-07-07 Paul Eggert <eggert@cs.ucla.edu>
49013 * modules/regex (Files): Add lib/regex_internal.c,
49014 lib/regex_internal.h, lib/regexec.c, lib/regcomp.c, m4/codeset.m4.
49015 (Depends-on): Add extensions.
49016 (Makefile.am): Remove lib_SOURCES; now done by m4 code.
49018 2005-07-07 Paul Eggert <eggert@cs.ucla.edu>
49020 * m4/backupfile.m4 (gl_BACKUPFILE): Use AC_CHECK_FUNCS_ONCE on
49022 * m4/same.m4 (gl_SAME): Likewise.
49023 Require AC_SYS_LONG_FILE_NAMES; bug reported by Gerrit P. Haase.
49025 * m4/regex.m4: Adjust to new libc regex implementation.
49026 (gl_INCLUDED_REGEX): Add AC_LIBSOURCES for
49027 all the .c and .h parts of (the new) regex.
49028 Quote the m4 stuff better.
49029 Check for RE_ICASE bug of old gnulib.
49030 Check for REG_STARTEND of recent libc.
49031 Rename local variables from jm_* to gl_*.
49032 Quote operand of "test -f".
49033 Say "recent enough" version of libc, not "version 2".
49034 (gl_PREREQ_REGEX): Remove AC_FUNC_ALLOCA, since alloca is a
49035 prerequisite module. Remove AC_HEADER_STDC; no longer needed.
49036 Check for locale.h, isblank, mbrtowc, wcrtomb, wcscoll.
49037 Remove check for btowc, isascii.
49038 Require AM_LANGINFO_CODESET.
49040 2005-07-07 Paul Eggert <eggert@cs.ucla.edu>
49042 * lib/regex.c, regex.h: Sync from libc.
49043 * lib/regcomp.c, lib/regexec_internal.c, lib/regex_internal.h:
49045 New files, synced from libc, except that regex_internal.h
49046 currently has a small porting fix.
49048 2005-07-07 Paul Eggert <eggert@cs.ucla.edu>
49050 * config/srclist.txt: Add regcomp.c, regex.c, regex.h,
49051 regex_internal.c, regexec.c.
49052 Add regex_internal.h too, but as a comment, since the libc version
49053 is currently broken in gnulib mode.
49055 2005-07-06 Paul Eggert <eggert@cs.ucla.edu>
49057 Support programs like Emacs that use gnulib but not gettext.
49058 * MODULES.html.sh (Internationalization functions): Add gettext-h.
49059 * modules/gettext-h: New file.
49060 * modules/gettext (Files): Remove lib/gettext.h.
49061 (Depends-on): Add gettext-h.
49062 (Makefile.am): Remove lib_SOURCES.
49063 * modules/argmatch, modules/c-stack, modules/closeout:
49064 * modules/copy-file, modules/csharpcomp, modules/csharpexec:
49065 * modules/execute, modules/file-type, modules/getaddrinfo:
49066 * modules/getopt, modules/human, modules/javacomp:
49067 * modules/javaexec, modules/mkdir-p, modules/obstack:
49068 * modules/openat, modules/pagealign_alloc, modules/pipe:
49069 * modules/quotearg, modules/regex, modules/rpmatch:
49070 * modules/unicodeio, modules/userspec, modules/version-etc:
49071 * modules/wait-process, modules/xalloc-die, modules/xmemcoll:
49073 Depend on gettext-h, not gettext.
49075 2005-07-05 Paul Eggert <eggert@cs.ucla.edu>
49077 * gnulib-tool (func_import): Add support for 'public domain' license.
49078 * modules/alloca, modules/atexit, modules/memmove:
49079 Now public domain, not GPL.
49080 * modules/dup2, modules/getpagesize, modules/malloc, modules/memset:
49081 * modules/realloc, modules/strerror, modules/strtod:
49084 2005-07-05 Bruno Haible <bruno@clisp.org>
49086 * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): Upgrade to version from current
49087 autoconf CVS. Needed for mingw.
49089 2005-07-03 Paul Eggert <eggert@cs.ucla.edu>
49091 Remove the dependency of the strftime module on the tzset module.
49092 * modules/strftime (Depends-on): Remove dependency on tzset.
49094 2005-07-03 Paul Eggert <eggert@cs.ucla.edu>
49096 Remove the dependency of the strftime module on the tzset module.
49097 * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't require
49098 gl_FUNC_TZSET_CLOBBER.
49100 2005-07-03 Paul Eggert <eggert@cs.ucla.edu>
49102 Remove the dependency of the strftime module on the tzset module.
49103 * lib/strftime.c (my_strftime)
49104 [! defined _LIBC && ! HAVE_RUN_TZSET_TEST]:
49105 Copy the input structure, to work around some of the bug with
49106 Solaris 2.5.1 and Solaris 2.6. If you still care about these old
49107 Solaris releases, you should also use the tzset module, but we won't
49108 require it as a dependency any more since we don't want LGPLed code
49109 to depend on GPLed code.
49111 2005-07-02 Jim Meyering <jim@meyering.net>
49113 * m4/chown.m4, cloexec.m4, dup2.m4, fsusage.m4:
49114 * m4/getcwd-path-max.m4, getcwd.m4, mkstemp.m4, mountlist.m4:
49115 * m4/pagealign_alloc.m4, save-cwd.m4, unistd-safer.m4:
49116 Don't check for fcntl.h, and don't test for HAVE_FCNTL_H.
49118 2005-07-02 Jim Meyering <jim@meyering.net>
49120 * lib/backupfile.c (backup_args): Change a `0' to NULL.
49122 2005-07-01 Paul Eggert <eggert@cs.ucla.edu>
49124 * lib/xnanosleep.c: Include timespec.h, since OpenBSD 3.4 <time.h>
49125 declares only 'struct timespec;' (!).
49127 2005-07-01 Jim Meyering <jim@meyering.net>
49129 * lib/chown.c, cloexec.c, dup-safer.c, dup2.c, fsusage.c, getcwd.c:
49130 * lib/getloadavg.c, mountlist.c, openat.h, pagealign_alloc.c:
49131 * lib/save-cwd.c, tempname.c:
49132 Assume HAVE_FCNTL_H (i.e., include <fcntl.h> unconditionally,
49133 and don't include <sys/file.h>).
49135 2005-06-29 Jim Meyering <jim@meyering.net>
49137 * lib/mkdir-p.c (make_dir_parents): Don't apply sizeof to a hard-coded
49138 type name. Use the variable name instead.
49139 * lib/idcache.c (getuser, getuidbyname, getgroup, getgidbyname):
49142 2005-06-28 Simon Josefsson <jas@extundo.com>
49144 * modules/check-version (Files): Add check-version.m4.
49146 2005-06-28 Simon Josefsson <jas@extundo.com>
49148 * m4/check-version.m4: New file, suggested by Jim Meyering
49149 <jim@meyering.net>.
49151 2005-06-28 Simon Josefsson <jas@extundo.com>
49153 * lib/check-version.h, lib/check-version.c: New files.
49155 2005-06-28 Simon Josefsson <jas@extundo.com>
49157 * lib/base64.c (base64_encode): Indent. Rename 'b64' to avoid
49158 collision with global variable. Better indentation. Don't
49159 increment buffer pointer beyond buffer end. Based on comments
49160 from Paul Eggert <eggert@cs.ucla.edu>.
49162 * lib/base64.h: Indent.
49164 2005-06-28 Simon Josefsson <jas@extundo.com>
49166 * doc/gnulib.texi (Library version handling): New section.
49168 2005-06-28 Jim Meyering <jim@meyering.net>
49170 * check-module (find_included_lib_files): Hard-code another
49171 pair of exceptions: fts.c includes fts-cycle.c and unistd-safer.h
49172 but modules/fts-lgpl (correctly) does not list those files.
49174 * modules/canonicalize (Files): Add lib/pathmax.h.
49176 2005-06-25 Simon Josefsson <jas@extundo.com>
49178 * modules/check-version: New file.
49180 2005-06-24 Paul Eggert <eggert@cs.ucla.edu>
49182 * lib/canon-host.c (canon-host): Append trailing "," to 0 in
49183 initializer of struct addrinfo, as an indication that we don't
49184 care how many members the structure has.
49186 2005-06-24 Derek Price <derek@ximbiot.com>
49187 and Bruno Haible <bruno@clisp.org>
49189 Remove stat module & update lstat.
49190 * m4/lstat.m4 (gl_FUNC_LSTAT): Drop AC_FUNC_LSTAT in favor of
49191 AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
49192 * m4/stat.m4: Remove this file.
49194 2005-06-24 Derek Price <derek@ximbiot.com>
49195 and Bruno Haible <bruno@clisp.org>
49197 Remove stat module & update lstat.
49198 * lib/stat.c: Remove this file...
49199 (slash_aware_lstat): ...moving this content and its support...
49200 * lib/lstat.c (rpl_lstat): ...into here.
49201 * lib/lstat.h: New file.
49203 2005-06-24 Derek Price <derek@ximbiot.com>
49204 and Bruno Haible <bruno@clisp.org>
49206 Remove stat module & update lstat.
49207 * config/srclist.txt (libc sources): Remove stat.
49209 2005-06-24 Derek Price <derek@ximbiot.com>
49210 and Bruno Haible <bruno@clisp.org>
49212 Remove stat module & update lstat.
49213 * MODULES.html.sh (stat): Remove.
49214 * MODULES.html: Regenerated.
49215 * modules/lstat (Description): Correct function name.
49216 (Files): Add "lstat.h".
49217 (Depends-on): Remove stat, add xalloc, stat-macros.
49218 * modules/stat: Remove this file.
49219 (Include): Add "lstat.h", remove <sys/stat.h>.
49221 2005-06-23 Paul Eggert <eggert@cs.ucla.edu>
49223 * lib/mktime.c: Include <string.h> even if !DEBUG. (From glibc.)
49224 (ranged_convert): Don't save conversion in a temporary struct.
49225 This causes a warning with GCC 4.0.0, and anyway in the typical
49226 case it's not worth the extra 100 bytes or so of code.
49227 (ranged_convert, __mktime_internal): When calling a function via a
49228 pointer P, use P () rather than (*P) (), as we now assume C89 or
49231 2005-06-22 Paul Eggert <eggert@cs.ucla.edu>
49233 * lib/readutmp.c (desirable_utmp_entry): Fix bug where "who -b" and
49234 "who -r" failed to give output. Problem reported by Tim Waugh.
49236 * lib/xmalloc.c (HAVE_GNU_CALLOC): New constant.
49237 (xcalloc): Use it to avoid needless tests.
49238 Problem reported by Jim Meyering.
49240 2005-06-20 Derek Price <derek@ximbiot.com>
49242 * m4/bison.m4: Note that precious decls of YACC & YFLAGS will be
49243 unnecessary for Autoconfs > 2.59c.
49245 2005-06-16 Sergey Poznyakoff <gray@Mirddin.farlep.net>
49247 * lib/argp.h (__option_is_short): Check upper limit of
49248 __key. Isprint() requires its argument to have the value
49249 of an unsigned char or EOF.
49251 2005-06-16 Jim Meyering <jim@meyering.net>
49253 * lib/calloc.c (rpl_calloc): Allocate a 1-byte buffer (not 1xS or Nx1)
49254 when either N or S is zero.
49256 2005-06-16 Derek Price <derek@ximbiot.com>
49258 * m4/bison.m4: Declare YACC & YFLAGS precious.
49260 2005-06-10 Paul Eggert <eggert@cs.ucla.edu>
49262 * lib/fnmatch.c (fnmatch): If there is an encoding error in a
49263 multibyte string or pattern, fall back on unibyte matching.
49264 Problem reported by James Youngman.
49266 2005-06-08 Bruno Haible <bruno@clisp.org>
49268 * modules/csharpcomp: New file.
49269 * MODULES.html.sh (C#): Add csharpcomp.
49271 2005-06-08 Bruno Haible <bruno@clisp.org>
49273 * m4/csharpcomp.m4: New file, from GNU gettext.
49275 2005-06-08 Bruno Haible <bruno@clisp.org>
49277 * lib/csharpcomp.h: New file, from GNU gettext.
49278 * lib/csharpcomp.c: New file, from GNU gettext.
49279 * lib/csharpcomp.sh.in: New file, from GNU gettext.
49281 2005-06-08 Bruno Haible <bruno@clisp.org>
49283 * lib/binary-io.h (fileno): Undefine before defining it. Avoids a gcc
49286 2005-06-07 Derek Price <derek@ximbiot.com>
49289 * lib/glob_.h: Indent nested #ifdef.
49291 2005-06-02 Paul Eggert <eggert@cs.ucla.edu>
49293 Sync from coreutils.
49294 Use "file name" when talking about file names, instead of "filename"
49295 or "path", as per the GNU coding standards.
49296 * lib/mkdir-p.c: Renamed from makepath.c.
49297 (make_dir_parents): Renamed from make_path. All callers changed.
49298 * lib/mkdir-p.h: Likewise. All includers changed.
49299 * lib/filenamecat.c: Renamed from path-concat.c.
49300 (file_name_concat): Renamed from path_concat. All callers changed.
49301 [TEST_FILE_NAME_CONCAT]: Renamed from TEST_PATH_CONCAT.
49302 * lib/filenamecat.h: Likewise. All includers changed.
49303 * lib/acl.c: Don't use "path" or "filename" to mean "file name"
49304 in comments or local variable names.
49305 * lib/basename.c: Likewise.
49306 * lib/canonicalize.c, canonicalize.h: Likewise.
49307 * lib/dirname.c, dirname.h: Likewise.
49308 * lib/euidaccess.c: Likewise.
49309 * lib/exclude.c: Likewise
49310 * lib/fnmatch_.h, fnmatch_loop.c: Likewise.
49311 * lib/fsusage.c, fsuage.h: Likewise.
49312 * lib/fts.c, fts_.h: Likewise.
49313 * lib/getcwd.c: Likewise.
49314 * lib/getloadavg.c: Likewise.
49315 * lib/mkstemp.c: Likewise.
49316 * lib/mountlist.c, mountlist.h: Likewise.
49317 * lib/openat.c, openat.h: Likewise.
49318 * lib/readlink-stub.c: Likewise.
49319 * lib/readutmp.c, readutmp.h: Likewise.
49320 * lib/rename.c: Likewise.
49321 * lib/rmdir.c: Likewise.
49322 * lib/same.c: Likewise.
49323 * lib/savedir.c: Likewise.
49324 * lib/stripslash.c: Likewise.
49325 * lib/tempname.c: Likewise.
49326 * lib/xreadlink.c: Likewise.
49327 * lib/exclude.c (excluded_file_name): Renamed from excluded_filename.
49329 * lib/exclude.h: Likewise.
49331 * lib/euidaccess.c (getuid, getgid, getuid, getegid)
49332 [!defined _POSIX_VERSION]: Remove decls; not needed these days.
49333 * lib/idcache.c (getpwuid, getpwnam, getgrgid, getgrnam)
49334 [!defined _POSIX_VERSION]: Remove decls; not needed these days.
49335 * lib/pathmax.h: Include <limits.h> unconditionally, since other
49336 files have been getting away with it for years (MORE/BSD 4.3
49338 * lib/userspec.c (getpwnam, getgrnam, getgrgid)
49339 [!defined _POSIX_VERSION]: Remove decls; not needed these days.
49341 * lib/pathmax.h (_POSIX_PATH_MAX) [!defined _POSIX_PATH_MAX]:
49342 Define to 256, not 255, as per modern POSIX.
49344 2005-06-02 Paul Eggert <eggert@cs.ucla.edu>
49346 Sync from coreutils.
49347 Use "file name" when talking about file names, instead of "filename"
49348 or "path", as per the GNU coding standards.
49349 * MODULES.html.sh: mkdir-p renamed from makepath.
49350 filenamecat renamed from path-concat.
49351 * modules/filenamecat: Renamed from modules/path-concat.
49352 (Files): filenamecat.h and filenamecat.c renamed from
49353 path-concat.h and path-concat.c.
49354 (configure.ac): gl_FILE_NAME_CONCAT, not gl_PATH_CONCAT.
49355 (Include): filenamecat.h, not path-concat.h.
49356 * modules/mkdir-p: Renamed from modules/makepath.
49357 (Files): mkdir-p.h and mkdir-p.c renamed from makepath.h and
49359 (configure.ac): gl_MKDIR_PARENTS, not gl_MAKEPATH.
49360 (Include): mkdir-p.h, not makepath.h.
49362 2005-06-02 Paul Eggert <eggert@cs.ucla.edu>
49364 Sync from coreutils.
49365 * m4/mkdir-p.m4: Renamed from makepath.m4.
49366 (gl_MKDIR_PARENTS): Renamed from gl_MAKEPATH. All uses changed.
49367 Rename files from makepath.c to mkdir-p.c, and from
49368 makepath.h to mkdir-p.h.
49369 * m4/filenamecat.m4: Renamed from path-concat.m4.
49370 (gl_FILE_NAME_CONCAT): Renamed from gl_PATH_CONCAT. All uses changed.
49371 Rename files from path-concat.c to filenamecat.c,
49372 and from path-concat.h to filenamecat.h.
49373 * m4/getcwd-path-max.m4: Don't use "path" or "filename" to mean
49374 "file name" in local variables or comments.
49375 * m4/rename.m4: Likewise.
49377 2005-06-01 Bruno Haible <bruno@clisp.org>
49379 * modules/csharpexec: New file.
49380 * MODULES.html.sh (C#): New section.
49382 2005-06-01 Bruno Haible <bruno@clisp.org>
49384 * m4/csharp.m4: New file, from GNU gettext.
49385 * m4/csharpexec.m4: New file, from GNU gettext.
49387 2005-06-01 Bruno Haible <bruno@clisp.org>
49389 * lib/csharpexec.h: New file, from GNU gettext.
49390 * lib/csharpexec.c: New file, from GNU gettext.
49391 * lib/csharpexec.sh.in: New file, from GNU gettext.
49393 2005-05-31 Derek Price <derek@ximbiot.com>
49394 Paul Eggert <eggert@cs.ucla.edu>
49397 * m4/glob.m4: s/MISSING_SYS_CDEFS_H/_SYS_CDEFS_H/ and comment.
49399 2005-05-31 Derek Price <derek@ximbiot.com>
49400 Paul Eggert <eggert@cs.ucla.edu>
49403 * lib/glob_.h: s/MISSING_SYS_CDEFS_H/_SYS_CDEFS_H/ and comment.
49405 2005-05-29 Derek Price <derek@ximbiot.com>
49407 * config/srclist.txt (glob_.h, glob.c): Add these files.
49409 2005-05-29 Derek Price <derek@ximbiot.com>
49411 * MODULES.html.sh: Add glob to Enhanced POSIX.2001 section.
49412 * modules/glob: New file.
49413 * modules/getlogin_r: Add link to POSIX spec in description.
49415 2005-05-29 Derek Price <derek@ximbiot.com>
49416 Paul Eggert <eggert@cs.ucla.edu>
49418 * m4/glob.m4: New file.
49420 2005-05-29 Derek Price <derek@ximbiot.com>
49421 Paul Eggert <eggert@cs.ucla.edu>
49423 * lib/glob_.h, lib/glob.c: New files.
49425 2005-05-27 Paul Eggert <eggert@cs.ucla.edu>
49427 * modules/fts (Files): Remove m4/inttypes-pri.m4.
49428 * modules/fts-lgpl (Depends-on): Remove gettext.
49430 2005-05-27 Paul Eggert <eggert@cs.ucla.edu>
49432 * m4/fts.m4 (gl_FUNC_FTS_CORE): Don't check for inttypes.h or stdint.h,
49433 and don't require gt_INTTYPES_PRI.
49435 2005-05-27 Paul Eggert <eggert@cs.ucla.edu>
49437 * lib/getlogin_r.c (getlogin_r): Don't set errno to 0 on return.
49439 * lib/fts.c: Don't worry about debugging on pre-C99-compatible hosts;
49440 the configuration hassle isn't worth it.
49441 Include inttypes.h and stdint.h unconditionally if FTS_DEBUG.
49442 (LONGEST_MODIFIER, PRIuMAX): Remove.
49444 2005-05-27 Bruno Haible <bruno@clisp.org>
49446 * lib/getlogin_r.h: Remove second include of <stddef.h>.
49448 2005-05-26 Paul Eggert <eggert@cs.ucla.edu>
49450 * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Define
49451 _POSIX_PTHREAD_SEMANTICS for Solaris.
49453 2005-05-25 Derek Price <derek@ximbiot.com>
49455 * MODULES.html.sh: Add getlogin_r to POSIX.2001 support section.
49457 2005-05-25 Derek Price <derek@ximbiot.com>
49458 Paul Eggert <eggert@cs.ucla.edu>
49460 * modules/getlogin_r, m4/getlogin_r.m4: New files.
49461 * lib/getlogin_r.c, getlogin_r.h: New files.
49463 2005-05-25 Bruno Haible <bruno@clisp.org>
49464 Derek Price <derek@ximbiot.com>
49466 * lib/getlogin_r.h: Simplify API documentation.
49468 2005-05-23 Derek Price <derek@ximbiot.com>
49470 * modules/minmax (Files): Add m4/minmax.m4.
49471 (configure.ac): Add gl_MINMAX.
49473 2005-05-22 Paul Eggert <eggert@cs.ucla.edu>
49475 * lib/fts.c (fd_safer) [_LGPL_PACKAGE]: New static function,
49476 so that unistd-safer.h (GPL'ed code) need not be included.
49478 2005-05-22 Bruno Haible <bruno@clisp.org>
49480 * m4/minmax.m4: New file.
49481 Based on a patch by Derek Price <derek@ximbiot.com>.
49483 2005-05-22 Bruno Haible <bruno@clisp.org>
49485 * lib/stdint_.h (_STDINT_H_HAVE_INT64): New macro. Use it in #ifdefs.
49486 (INT64_MIN): Fix definition.
49487 Suggested by Paul Eggert <eggert@cs.ucla.edu>.
49489 * lib/stdint_.h (_STDINT_H_NEED_SIGNED_INT_TYPES): Renamed from
49490 NEED_SIGNED_INT_TYPES.
49492 * lib/stdint_.h (_STDINT_H_HAVE_SYSTEM_INTTYPES): Renamed from
49493 HAVE_SYSTEM_INTTYPES.
49495 2005-05-22 Bruno Haible <bruno@clisp.org>
49497 * lib/minmax.h: Include <limits.h> only when it defines MIN, MAX.
49498 Also include <sys/param.h> if it defines MIN, MAX.
49499 Based on a patch by Derek Price <derek@ximbiot.com>.
49501 2005-05-21 Jim Meyering <jim@meyering.net>
49503 * modules/fts (Files): Add m4/inttypes-pri.m4.
49504 (Depends-on): Add lstat and remove gettext. Alphabetize.
49506 2005-05-20 Paul Eggert <eggert@cs.ucla.edu>
49509 * lib/fts.c: Don't include "cycle-check.h" or "hash.h".
49510 (setup_dir, free_dir): New functions.
49511 (enter_dir, leave_dir): Define trivial
49512 alternatives of _LGPL_PACKAGE. Move to fts-cycle.c if !_LGPL_PACKAGE.
49513 (HT_INITIAL_SIZE, ENTER_DIR): Remove. All uses removed.
49514 (LEAVE_DIR): Fix typo: pass Fts and Ent to leave_dir.
49515 (struct Active_dir, AD_compare, AD_hash, enter_dir, leave_dir):
49516 Move to fts-cycle.c.
49517 (fts_open): Use setup_dir.
49518 (fts_close): Use free_dir.
49519 (fts_read): Have just one copy of the ENTER_DIR code rather than three.
49520 This adds a label and some gotos, but the alternatives were messier.
49521 Check for memory allocation failure when entering a dir.
49522 (fts_stat) [_LGPL_PACKAGE]: Bring back glibc cycle detection code.
49523 * lib/fts_.h (_LGPL_PACKAGE) [defined _LIBC]: New macro.
49524 (FTS): New member fts_cycle, that is a union that contains the
49525 old active_dir_ht and cycle_state. All uses changed to mention
49526 fts_cycle.ht and fts_cycle.state.
49527 * lib/fts-cycle.c: New file, containing GPL'ed code migrated out of
49528 fts.c, with the following changes:
49529 (setup_dir, free_dir): New functions.
49530 (enter_dir): Now returns bool. Return true if successful, false
49531 if memory exhausted. All callers changed.
49532 Do not bother partly cleaning up on
49533 memory allocation failure; that is free_dir's job.
49534 However, free ad if hash_insert fails, to avoid memory leak.
49535 (enter_dir, leave_dir): Accommodate change to FTS by inspecting
49536 fts->fts_options to see which union member to use.
49538 2005-05-20 Paul Eggert <eggert@cs.ucla.edu>
49540 * m4/fts.m4 (gl_FUNC_FTS_CORE): Renamed from gl_FUNC_FTS.
49541 (gl_FUNC_FTS, gl_FUNC_FTS_LGPL): New macros.
49543 2005-05-20 Paul Eggert <eggert@cs.ucla.edu>
49545 * MODULES.html.sh (File system functions): Add fts, fts-lgpl.
49547 2005-05-20 Jim Meyering <jim@meyering.net>
49549 * lib/unlinkdir.h (cannot_unlink_dir) [UNLINK_CANNOT_UNLINK_DIR]:
49550 Now a macro, to pacify GCC.
49552 2005-05-20 Eric Blake <ebb9@byu.net> (tiny change)
49554 * m4/chown.m4 (gl_FUNC_CHOWN): Correct sense of test for honoring IDs
49557 2005-05-20 Eric Blake <ebb9@byu.net> (tiny change)
49559 * lib/chown.c (rpl_chown): Return -1 on failure.
49561 2005-05-18 Paul Eggert <eggert@cs.ucla.edu>
49563 * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME]):
49564 Don't check for stddef.h.
49565 * m4/fts.m4 (gl_FUNC_FTS): Don't require AC_HEADER_STDC, as we
49566 don't use its results.
49567 Don't check for fcntl.h, stddef.h, stdlib.h, string.h, unistd.h,
49568 since we include them unconditionally. Don't require
49569 AM_STDBOOL_H, since stdbool is a prerequisite.
49570 Don't require AC_C_CONST, AC_TYPE_SIZE_T or check for ptrdiff_t
49571 since we assume C89 or better.
49572 Don't require AC_FUNC_CLOSEDIR_VOID, AC_FUNC_LSTAT, or AC_FUNC_STAT,
49573 as we don't use their results.
49574 Don't check for fchdir, memmove, memset, strrchr, as we use
49575 them unconditionally.
49576 * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER): Don't define
49577 GETTIMEOFDAY_CLOBBERS_LOCALTIME_BUFFER, since nobody uses it.
49579 2005-05-18 Paul Eggert <eggert@cs.ucla.edu>
49581 * lib/canonicalize.c: Include canonicalize.h first, to test interface.
49582 Include <stddef.h> unconditionally, since we assume C89 now.
49583 All uses of PTR_INT_TYPE replaced by ptrdiff_t.
49584 * lib/fts.c: Include fts_.h first, to check interface.
49585 Do not include intprops.h; no longer needed.
49586 Include cycle-check.h and hash.h, since fts_.h no longer does.
49587 Remove unnecessary casts of closedir to void.
49588 (fts_build): Use a simpler method (not involving TYPE_SIGNED) to
49589 decide whether to decrement nlinks.
49590 * lib/fts_.h: Do not include hash.h or cycle-check.h; no longer needed.
49591 (FTS): Use struct hash_table * instead of Hash_table, so that
49592 we no longer need to include hash.h here.
49594 2005-05-18 Jim Meyering <jim@meyering.net>
49596 * modules/dirfd (License): Change to LGPL. Most of the code
49597 is already in the public domain.
49599 2005-05-18 Jim Meyering <jim@meyering.net>
49601 * m4/fts.m4 (AC_LIBSOURCES): Add intprops.h to the list.
49602 Reported by Yoann Vandoorselaere.
49604 2005-05-17 Jim Meyering <jim@meyering.net>
49606 * m4/fts.m4: New file, from coreutils.
49608 2005-05-17 Jim Meyering <jim@meyering.net>
49610 * lib/fts.c, lib/fts_.h: New files, from coreutils.
49612 2005-05-14 Paul Eggert <eggert@cs.ucla.edu>
49614 Sync from coreutils.
49615 * m4/unlinkdir.m4: New file.
49617 2005-05-14 Paul Eggert <eggert@cs.ucla.edu>
49619 Sync from coreutils.
49620 * lib/unlinkdir.c, lib/unlinkdir.h: New files.
49621 * lib/gethrxtime.c, lib/gethrxtime.h, lib/getpass.h, lib/mountlist.h,
49622 lib/path-concat.c, lib/regex.h, lib/unlocked-io.h, lib/xtime.h:
49623 White space changes only.
49624 * lib/makepath.c (make_path): Port to hosts where leading "//" is
49626 * lib/yesno.c: Include getline.h, not ctype.h.
49627 (yesno): Don't remove leading white space; POSIX doesn't allow it.
49628 Use getline to remove arbitrary restriction on response length.
49630 2005-05-14 Paul Eggert <eggert@cs.ucla.edu>
49632 * config/srclist-update: Spell out "Street" in FSF postal
49633 mail address; this is the style the FSF seems to prefer.
49635 * build-aux/depcomp, build-aux/install-sh, build-aux/mdate-sh,
49636 build-aux/missing, build-aux/mkinstalldirs: Sync from Automake;
49637 this updates FSF postal mail address.
49639 Sync from coreutils.
49640 * modules/unlinkdir: New file.
49641 * modules/yesno (Depends-on): Add getline.
49642 * MODULES.html.sh (File system functions): Add unlinkdir.
49644 2005-05-13 Paul Eggert <eggert@cs.ucla.edu>
49646 * lib/byteswap_.h, lib/getsubopt.h, lib/iconvme.h, lib/strsep.c,
49648 Change the initial comment to refer to GPL, not LGPL.
49649 gnulib-tool will change it to LGPL as needed.
49651 * lib/__fpending.c, lib/acl.c, lib/acl.h, lib/alloca_.h, lib/allocsa.c,
49652 lib/allocsa.h, lib/argmatch.c, lib/argmatch.h, lib/argp-ba.c,
49653 lib/argp-eexst.c, lib/argp-fmtstream.c, lib/argp-fmtstream.h,
49654 lib/argp-fs-xinl.c, lib/argp-help.c, lib/argp-namefrob.h,
49655 lib/argp-parse.c, lib/argp-pv.c, lib/argp-pvh.c, lib/argp-xinl.c,
49656 lib/argp.h, lib/argz.c, lib/argz_.h, lib/asnprintf.c, lib/asprintf.c,
49657 lib/atanl.c, lib/backupfile.c, lib/backupfile.h, lib/base64.c,
49658 lib/base64.h, lib/basename.c, lib/binary-io.h, lib/byteswap_.h,
49659 lib/c-ctype.c, lib/c-ctype.h, lib/c-stack.c, lib/c-stack.h,
49660 lib/c-strtod.c, lib/calloc.c, lib/canon-host.c, lib/canonicalize.c,
49661 lib/canonicalize.h, lib/ceill.c, lib/chdir-long.c, lib/chdir-long.h,
49662 lib/chown.c, lib/classpath.c, lib/classpath.h, lib/cloexec.c,
49663 lib/closeout.c, lib/closeout.h, lib/concatpath.c, lib/config.charset,
49664 lib/copy-file.c, lib/copy-file.h, lib/cycle-check.c, lib/cycle-check.h,
49665 lib/diacrit.c, lib/diacrit.h, lib/dirfd.c, lib/dirfd.h, lib/dirname.c,
49666 lib/dirname.h, lib/dummy.c, lib/dup-safer.c, lib/dup2.c, lib/eealloc.h,
49667 lib/error.c, lib/error.h, lib/euidaccess.c, lib/exclude.c,
49668 lib/exclude.h, lib/execute.c, lib/execute.h, lib/exit.h,
49669 lib/exitfail.c, lib/exitfail.h, lib/expl.c, lib/fatal-signal.c,
49670 lib/fatal-signal.h, lib/fd-safer.c, lib/file-type.c, lib/file-type.h,
49671 lib/fileblocks.c, lib/filemode.c, lib/filemode.h, lib/findprog.c,
49672 lib/findprog.h, lib/floorl.c, lib/fnmatch.c, lib/fnmatch_.h,
49673 lib/fnmatch_loop.c, lib/fopen-safer.c, lib/free.c, lib/frexpl.c,
49674 lib/fsusage.c, lib/fsusage.h, lib/full-read.c, lib/full-read.h,
49675 lib/full-write.c, lib/full-write.h, lib/fwriteerror.c,
49676 lib/fwriteerror.h, lib/gai_strerror.c, lib/gcd.c, lib/gcd.h,
49677 lib/getaddrinfo.c, lib/getaddrinfo.h, lib/getcwd.c, lib/getcwd.h,
49678 lib/getdate.h, lib/getdate.y, lib/getdomainname.c, lib/getdomainname.h,
49679 lib/getgroups.c, lib/gethostname.c, lib/gethrxtime.c, lib/gethrxtime.h,
49680 lib/getline.c, lib/getline.h, lib/getloadavg.c, lib/getndelim2.c,
49681 lib/getndelim2.h, lib/getnline.c, lib/getnline.h, lib/getopt.c,
49682 lib/getopt1.c, lib/getopt_.h, lib/getopt_int.h, lib/getpagesize.h,
49683 lib/getpass.c, lib/getpass.h, lib/getsubopt.c, lib/getsubopt.h,
49684 lib/gettext.h, lib/gettime.c, lib/gettimeofday.c, lib/getugroups.c,
49685 lib/getusershell.c, lib/group-member.c, lib/group-member.h,
49686 lib/hard-locale.c, lib/hard-locale.h, lib/hash-pjw.c, lib/hash-pjw.h,
49687 lib/hash.c, lib/hash.h, lib/human.c, lib/human.h, lib/iconvme.c,
49688 lib/iconvme.h, lib/idcache.c, lib/inet_ntop.h, lib/intprops.h,
49689 lib/inttostr.c, lib/inttostr.h, lib/isdir.c, lib/javacomp.c,
49690 lib/javacomp.h, lib/javacomp.sh.in, lib/javaexec.c, lib/javaexec.h,
49691 lib/javaexec.sh.in, lib/lbrkprop.h, lib/lchown.c, lib/ldexpl.c,
49692 lib/linebreak.c, lib/linebreak.h, lib/linebuffer.c, lib/linebuffer.h,
49693 lib/localcharset.c, lib/localcharset.h, lib/logl.c, lib/long-options.c,
49694 lib/long-options.h, lib/lstat.c, lib/makepath.c, lib/makepath.h,
49695 lib/malloc.c, lib/mathl.h, lib/mbswidth.c, lib/mbswidth.h, lib/md5.c,
49696 lib/md5.h, lib/memcasecmp.c, lib/memcasecmp.h, lib/memchr.c,
49697 lib/memcmp.c, lib/memcoll.c, lib/memcoll.h, lib/memcpy.c, lib/memmem.c,
49698 lib/memmem.h, lib/mempcpy.c, lib/mempcpy.h, lib/memrchr.c,
49699 lib/memrchr.h, lib/memset.c, lib/minmax.h, lib/mkdir.c, lib/mkdtemp.c,
49700 lib/mkdtemp.h, lib/mkstemp.c, lib/mktime.c, lib/modechange.c,
49701 lib/modechange.h, lib/mountlist.c, lib/mountlist.h, lib/nanosleep.c,
49702 lib/obstack.c, lib/obstack.h, lib/openat.c, lib/openat.h,
49703 lib/pagealign_alloc.c, lib/pagealign_alloc.h, lib/path-concat.c,
49704 lib/path-concat.h, lib/pathmax.h, lib/pathname.h, lib/physmem.c,
49705 lib/physmem.h, lib/pipe.c, lib/pipe.h, lib/poll.c, lib/poll_.h,
49706 lib/posixtm.c, lib/posixtm.h, lib/posixver.c, lib/printf-args.c,
49707 lib/printf-args.h, lib/printf-parse.c, lib/printf-parse.h,
49708 lib/progname.c, lib/progname.h, lib/progreloc.c, lib/putenv.c,
49709 lib/quote.c, lib/quote.h, lib/quotearg.c, lib/quotearg.h, lib/raise.c,
49710 lib/readlink.c, lib/readtokens.c, lib/readtokens.h, lib/readtokens0.c,
49711 lib/readtokens0.h, lib/readutmp.c, lib/readutmp.h, lib/realloc.c,
49712 lib/ref-add.sin, lib/ref-del.sin, lib/regex.c, lib/regex.h,
49713 lib/rename.c, lib/rmdir.c, lib/rpmatch.c, lib/safe-read.c,
49714 lib/safe-read.h, lib/safe-write.c, lib/safe-write.h, lib/same.c,
49715 lib/same.h, lib/save-cwd.c, lib/save-cwd.h, lib/savedir.c,
49716 lib/savedir.h, lib/setenv.c, lib/setenv.h, lib/settime.c,
49717 lib/sh-quote.c, lib/sh-quote.h, lib/sha1.c, lib/sha1.h, lib/sig2str.c,
49718 lib/sig2str.h, lib/sincosl.c, lib/snprintf.c, lib/snprintf.h,
49719 lib/sqrtl.c, lib/stat-macros.h, lib/stat.c, lib/stdbool_.h,
49720 lib/stdint_.h, lib/stdio-safer.h, lib/stpcpy.c, lib/stpcpy.h,
49721 lib/stpncpy.c, lib/stpncpy.h, lib/strcase.h, lib/strcasecmp.c,
49722 lib/strchrnul.c, lib/strchrnul.h, lib/strcspn.c, lib/strdup.c,
49723 lib/strdup.h, lib/strerror.c, lib/strftime.c, lib/strftime.h,
49724 lib/stripslash.c, lib/strndup.c, lib/strndup.h, lib/strnlen.c,
49725 lib/strpbrk.c, lib/strpbrk.h, lib/strsep.c, lib/strsep.h, lib/strstr.c,
49726 lib/strstr.h, lib/strtod.c, lib/strtoimax.c, lib/strtok_r.c,
49727 lib/strtok_r.h, lib/strtol.c, lib/strtoll.c, lib/strtoul.c,
49728 lib/strtoull.c, lib/strverscmp.c, lib/strverscmp.h, lib/sysexit_.h,
49729 lib/tempname.c, lib/time_r.c, lib/time_r.h, lib/timegm.c, lib/timegm.h,
49730 lib/timespec.h, lib/trigl.c, lib/trigl.h, lib/ucs4-utf16.h,
49731 lib/ucs4-utf8.h, lib/unicodeio.c, lib/unicodeio.h, lib/unistd-safer.h,
49732 lib/unlocked-io.h, lib/unsetenv.c, lib/userspec.c, lib/utf16-ucs4.h,
49733 lib/utf8-ucs4.h, lib/utime.c, lib/utimecmp.c, lib/utimecmp.h,
49734 lib/utimens.c, lib/vasnprintf.c, lib/vasnprintf.h, lib/vasprintf.c,
49735 lib/vasprintf.h, lib/version-etc-fsf.c, lib/version-etc.c,
49736 lib/version-etc.h, lib/vsnprintf.c, lib/vsnprintf.h, lib/w32spawn.h,
49737 lib/wait-process.c, lib/wait-process.h, lib/xalloc-die.c, lib/xalloc.h,
49738 lib/xallocsa.c, lib/xallocsa.h, lib/xasprintf.c, lib/xgetcwd.c,
49739 lib/xgetcwd.h, lib/xgetdomainname.c, lib/xgetdomainname.h,
49740 lib/xgethostname.c, lib/xmalloc.c, lib/xmemcoll.c, lib/xnanosleep.c,
49741 lib/xreadlink.c, lib/xreadlink.h, lib/xsetenv.c, lib/xsetenv.h,
49742 lib/xsize.h, lib/xstrndup.c, lib/xstrndup.h, lib/xstrtod.c,
49743 lib/xstrtod.h, lib/xstrtoimax.c, lib/xstrtol.c, lib/xstrtol.h,
49744 lib/xstrtoumax.c, lib/xtime.h, lib/xvasprintf.c, lib/xvasprintf.h,
49745 lib/yesno.c, lib/yesno.h:
49746 Update FSF postal mail address.
49748 2005-05-13 Paul Eggert <eggert@cs.ucla.edu>
49750 * MODULES.html.sh, README, gnulib-tool, tests/test-base64.c,
49751 tests/test-memmem.c, tests/test-stpncpy.c:
49752 Update FSF postal mail address.
49754 2005-05-13 Bruno Haible <bruno@clisp.org>
49756 * lib/stdint_.h (int64_t, uint64_t, int_least64_t, uint_least64_t,
49757 int_fast64_t, uint_fast64_t, intmax_t, uintmax_t, INT64_MIN, INT64_MAX,
49758 UINT64_MAX, INT_LEAST64_MIN, INT_LEAST64_MAX, UINT_LEAST64_MAX,
49759 INT_FAST64_MIN, INT_FAST64_MAX, UINT_FAST64_MAX, INTMAX_MIN,
49760 INTMAX_MAX, UINTMAX_MAX, INT64_C, UINT64_C, INTMAX_C, UINTMAX_C):
49761 Add support for 64-bit integers in the MSVC compiler.
49763 2005-05-12 Sergey Poznyakoff <gray@Mirddin.farlep.net>
49765 * modules/getdate (Makefile.am): Add getdate.c to EXTRA_DIST
49767 2005-05-12 Eric Blake <ebb9@byu.net> (tiny change)
49769 * gnulib-tool (func_import): Sort and uniquify recommended includes.
49771 2005-05-11 Paul Eggert <eggert@cs.ucla.edu>
49773 * doc/getdate.texi (General date syntax): Don't say that date
49774 date --iso-8601=ns generates acceptable dates; it doesn't yet.
49775 Problem reported by Nic Ferrier.
49777 2005-05-10 Yoann Vandoorselaere <yoann.v@prelude-ids.com>
49779 * lib/getaddrinfo.c: Don't fail when SOCK_STREAM or SOCK_DGRAM are
49780 specified in ai_socktype. Fix invalid ai_protocol
49781 check. ai_protocol is usually set to 0 or depending on
49782 ai_family/ai_socktype to IPPROTO_TCP / IPPROTO_UDP. Checking for
49783 SOCK_STREAM / SOCK_DGRAM in ai_protocol was invalid. Set
49784 ai_socktype / ai_protocol in the returned addrinfo structure.
49786 2005-05-10 Simon Josefsson <jas@extundo.com>
49788 * m4/getaddrinfo.m4: Look in libnsl/libsocket for getaddrinfo, from
49789 Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
49791 2005-05-10 Karl Berry <karl@gnu.org>
49793 * doc/fdl.texi, gpl.texi, lgpl.texi, COPYING: update FSF address
49794 (from http://www.gnu.org/licenses).
49795 * doc/COPYING.LIB: also rename to COPYING.LESSER.
49796 * doc/COPYING.DOC: remove; per rms, only needed in doc files, so
49799 2005-05-10 Karl Berry <karl@gnu.org>
49801 * config/srclist.txt (COPYING.LESSER): rename from COPYING.LIB.
49802 (COPYING.DOC): remove.
49804 * config/srclist-update: new FSF address.
49806 2005-05-10 Derek Price <derek@ximbiot.com>
49808 * m4/getopt.m4 (gl_GETOPT): Check for Solaris 10 bug, not decl, when
49811 2005-05-09 Yoann Vandoorselaere <yoann.v@prelude-ids.com>
49812 Bruno Haible <bruno@clisp.org>
49814 * modules/inet_ntop: New file.
49815 * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
49818 2005-05-09 Yoann Vandoorselaere <yoann.v@prelude-ids.com>
49819 Bruno Haible <bruno@clisp.org>
49821 * m4/inet_ntop.m4: New file.
49823 2005-05-09 Yoann Vandoorselaere <yoann.v@prelude-ids.com>
49824 Bruno Haible <bruno@clisp.org>
49826 * lib/inet_ntop.h: New file.
49827 * lib/inet_ntop.c: New file, from glibc with modifications.
49829 2005-05-09 Paul Eggert <eggert@cs.ucla.edu>
49831 * modules/time_r (License): Change to LGPL.
49832 * modules/extensions (License): Change to LGPL. Actually,
49833 the license is more permissive than that, but currently gnulib-tool
49834 doesn't know how to handle more-permissive licenses.
49836 * modules/stat-macros (Depends-on): Don't depend on stat-macros (!).
49837 Problem reported by Dave Love.
49839 2005-05-08 Jim Meyering <jim@meyering.net>
49841 * lib/classpath.c (PATH_SEPARATOR): Remove insignificant trailing
49844 2005-05-06 Paul Eggert <eggert@cs.ucla.edu>
49846 * modules/argmatch (Depends-on): Add stdbool.
49847 * modules/backupfile (Depends-on): Likewise.
49848 * modules/chdir-long (Depends-on): Likewise.
49849 * modules/closeout (Depends-on): Likewise.
49850 * modules/cycle-check (Depends-on): Likewise.
49851 * modules/dirname (Depends-on): Likewise.
49852 * modules/fnmatch (Depends-on): Likewise.
49853 * modules/fsusage (Depends-on): Likewise.
49854 * modules/fwriteerror (Depends-on): Likewise.
49855 * modules/getcwd (Depends-on): Likewise.
49856 * modules/getloadavg (Depends-on): Likewise.
49857 * modules/hard-locale (Depends-on): Likewise.
49858 * modules/makepath (Depends-on): Likewise.
49859 * modules/mountlist (Depends-on): Likewise.
49860 * modules/nanosleep (Depends-on): Likewise.
49861 * modules/posixtm (Depends-on): Likewise.
49862 * modules/quotearg (Depends-on): Likewise.
49863 * modules/readtokens (Depends-on): Likewise.
49864 * modules/readtokens0 (Depends-on): Likewise.
49865 * modules/readutmp (Depends-on): Likewise.
49866 * modules/save-cwd (Depends-on): Likewise.
49867 * modules/strftime (Depends-on): Likewise.
49868 * modules/userspec (Depends-on): Likewise.
49869 * modules/utimecmp (Depends-on): Likewise.
49870 * modules/xgetcwd (Depends-on): Likewise.
49871 * modules/xnanosleep (Depends-on): Likewise.
49872 * modules/xstrtod (Depends-on): Likewise.
49873 * modules/yesno (Depends-on): Likewise.
49875 2005-05-05 Paul Eggert <eggert@cs.ucla.edu>
49877 * m4/getopt.m4 (gl_GETOPT): Check for Solaris 10 getopt, and avoid
49880 2005-05-01 Paul Eggert <eggert@cs.ucla.edu>
49882 Merge from coreutils. Among other things,
49883 add bulletproofing for cases where stdin, stdout, or stderr are closed.
49884 * lib/fd-safer.c: New file.
49885 * lib/fcntl-safer.h, open-safer.c: Remove.
49886 * lib/chdir-long.c: Fix comment "fetish" -> "coreutils".
49887 * lib/dup-safer.c: Include unistd-safer.h first.
49888 Don't include errno.h.
49889 (dup_safer) [!defined F_DUPFD]: Let fd_safer do the real work.
49890 * lib/file-type.h: Don't assume invoker included sys/stat.h first.
49891 * lib/file-type.c: Rely on file-type.h change.
49892 * lib/getloadavg.c: Include unistd-safer.h.
49893 (getloadavg): Use safer open.
49894 * lib/getusershell.c: Include "stdio-safer.h".
49895 (getusershell): Use safer fopen.
49896 * lib/long-options.c (long_options): Use NULL rather than 0.
49897 * lib/modechange.h (mode_free): Remove; all callers changed to invoke
49899 * lib/modechange.c: Likewise.
49900 xstrtol.h, stdbool.h, stddef.h: Don't include; no longer needed.
49901 (MODE_DONE): New constant.
49902 (struct mode_change): Remove 'next' member.
49903 (make_node_op_equals): New function; like the old one of the
49904 same name, except it allocates an array.
49905 (mode_compile, mode_create_from_ref): Use it.
49906 (mode_compile): Allocate result as an array, not a linked list.
49907 Parse octal string ourself, so that we catch mistakes like "+0".
49908 (mode_adjust): Arg is an array, not a linked list.
49909 * lib/modechange.c: Include stat-macros.h, xalloc.h.
49910 (S_ISDIR, S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IWUSR, S_IXUSR):
49911 (S_IRGRP, S_IWGRP, S_IXGRP, S_IROTH, S_IWOTH, S_IXOTH, S_IRXWU):
49912 (S_IRWXG, S_IRWXO, CHMOD_MODE_BITS):
49913 Remove. This is now stat-macros.h's job.
49914 (talloc): Remove. All callers replaced by xalloc, so that
49915 our invokers don't have to worry about reporting memory failures.
49916 (make_node_op_equals): Remove.
49917 (MODE_ORDINARY_CHAGE, MODE_X_IF_ANY_X, MODE_COPY_EXISTING):
49919 (struct mode_change): Moved here from modechange.h.
49920 (mode_append_entry): Remove.
49921 (mode_compile): Remove MASKED_OPS arg, since it encouraged
49922 apps to have incorrect behavior. Use simpler algorithm for head
49923 and tail. Don't futz with umask; that's now the job of mode_adjust.
49924 Detect more invalid usages rather than having somewhat-random behavior.
49925 Don't insert an "a=" action, as that leads to incorrect behavior.
49926 (mode_compile, mode_create_from_ref): Return NULL on error instead
49927 of an enum, since now there's only one way to have an error. All
49929 (mode_adjust): Accept new arg UMASK_VALUE, and interpret it
49930 at the correct time. Simplify calculation of "+u" and its ilk.
49931 Don't mishandle "+X".
49932 (mode_free): Remove "register" and localize decls.
49933 * lib/modechange.h (MODE_X_IF_ANY_X, MODE_COPY_EXISTING):
49934 (struct mode_change): Move to modechange.c; callers don't
49935 need to see this stuff.
49936 (MODE_MASK_EQUALS, MODE_MASK_PLUS, MODE_MASK_MINUS, MODE_MASK_ALL):
49937 (MODE_INVALID, MODE_MEMORY_EXHAUSTED, MODE_BAD_REFERENCE): Remove.
49938 (mode_change, mode_adjust): Reflect the new signatures noted above.
49939 * lib/nanosleep.c (rpl_nanosleep): Include "timespec.h" before macros
49940 that might redefine system include files.
49941 (siginterrupt) [!HAVE_SIGINTERRUPT]: New macro.
49942 (my_usleep): Use NULL rather than (void *) 0.
49943 (rpl_nanosleep) [!defined SA_NOCLDSTOP]:
49944 Use siginterrupt to specify that system calls should be interrupted.
49945 (rpl_nanosleep): Move initialization of suspended closer to call of
49947 * lib/readutmp.h (read_utmp): New arg OPTIONS. All uses changed.
49948 * lib/readutmp.c: Likewise. Include signal.h, stdbool.h.
49949 (desirable_utmp_entry): New function.
49950 (read_utmp) [defined UTMP_NAME_FUNCTION]: Redo memory allocation
49951 using x2nrealloc, to simplify logic.
49952 (read_utmp) [!defined UTMP_NAME_FUNCTION]: Check for overflow in
49953 size calculation. Do not assume utmp file is a regular file.
49954 * lib/readutmp.h (UT_PID): Moved here from ../src/who.c.
49955 (READ_UTMP_CHECK_PIDS): New constant.
49956 * lib/save-cwd.c: Include unistd-safer.h.
49957 (save_cwd): Use fd_safer.
49958 * lib/tempname.c (S_ISDIR, S_IRUSR, S_IRUSR, S_IWUSR, S_IXUSR): Remove.
49959 [!_LIBC] Include "stat-macros.h" instead.
49960 * lib/unistd-safer.h (fd_safer): New decl.
49962 2005-05-01 Paul Eggert <eggert@cs.ucla.edu>
49964 * modules/getloadavg (Depends-on): Add unistd-safer.
49965 * modules/getusershell (Depends-on): Add stdio-safer.
49966 * modules/lstat (Depends-on): Remove xalloc.
49967 * modules/mkstemp (Depends-on): Add stat-macros.
49968 * modules/modechange (Depends-on): Remove xstrtol.
49969 Add stat-macros, xalloc.
49970 * modules/save-cwd (Depends-on): Add unistd-safer.
49971 * modules/stdio-safer (Makefile.am): Remove lib_SOURCES.
49972 * modules/unistd-safer (Files): Add lib/fd-safer.c
49973 (Makefile.am): Remove lib_SOURCES.
49975 * MODULES.html.sh (Enhancements for POSIX:2001 functions):
49976 Remove fcntl-safer; unistd-safer supersedes it.
49978 2005-05-01 Paul Eggert <eggert@cs.ucla.edu>
49980 * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Don't require
49982 * m4/lchown.m4 (gl_FUNC_CHOWN): Likewise.
49983 (gl_PREREQ_CHOWN): Remove.
49984 * m4/lstat.m4 (gl_FUNC_LSTAT): Require AC_FUNC_LSTAT instead of calling
49985 it. Don't require AC_HEADER_STAT.
49986 (gl_PREREQ_LSTAT): Remove.
49987 * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Check stdint.h only once.
49988 Don't require AC_HEADER_STAT.
49989 * m4/rmdir.m4 (gl_FUNC_RMDIR): Don't require AC_HEADER_STAT.
49990 (gl_PREREQ_RMDIR): Remove.
49991 * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Don't
49992 mention stat-macros.h or AC_HEADER_STAT, since we'll make
49993 the stat-macros module a prerequisite.
49994 * m4/file-type.m4 (gl_FILE_TYPE): Likewise.
49995 * m4/filemode.m4 (gl_FILEMODE): Likewise.
49996 * m4/makepath.m4 (gl_MAKEPATH): Likewise.
49997 * m4/modechange.m4 (gl_MODECHANGE): Likewise.
49998 * m4/clock_time.m4 (gl_CLOCK_TIME): Use gl_ rather than fetish_ for
50000 * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Renamed from
50001 fetish_FUNC_RMDIR_NOTEMPTY. All uses changed. Use gl_ for
50003 * m4/fcntl-safer.m4: Remove.
50004 * m4/stdio-safer.m4 (gl_STDIO_SAFER): Use AC_LIBSOURCES and AC_LIBOBJ.
50005 * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Likewise.
50006 Invoke gl_PREREQ_FD_SAFER.
50007 (gl_PREREQ_FD_SAFER): New macro.
50008 * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Check for siginterrupt.
50009 * m4/readutmp.m4 (gl_READUTMP): Require AC_C_INLINE.
50010 Use AC_CHECK_HEADERS_ONCE and AC_CHECK_FUNCS_ONCE when possible.
50011 Remove duplicate call to AC_LIBOBJ(readutmp).
50012 (gl_PREREQ_READUTMP): Remove. All uses inlined.
50014 * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Check for message, not for
50015 MAP_ANON. Problem reported by Moriyoshi Koizumi to bug-cvs.
50017 2005-05-01 Paul Eggert <eggert@cs.ucla.edu>
50019 * MODULES.html.sh (Misc): Add byteswap.
50021 2005-05-01 Oskar Liljeblad <oskar@osk.mine.nu>
50023 * modules/getcwd (Depends-on): Add extensions.
50024 * modules/openat (Depends-on): Likewise.
50026 2005-05-01 Oskar Liljeblad <oskar@osk.mine.nu>
50028 * modules/byteswap: New file.
50030 2005-05-01 Oskar Liljeblad <oskar@osk.mine.nu>
50032 * m4/byteswap.m4: New file.
50034 2005-05-01 Oskar Liljeblad <oskar@osk.mine.nu>
50036 * lib/byteswap_.h: New file.
50038 2005-04-25 Karl Berry <karl@gnu.org>
50040 * m4/gettext.m4: Update from GNU gettext 0.14.4.
50042 2005-04-25 Albert Chin <china@thewrittenword.com>
50044 * lib/regex.c: Include <stdio.h>, as a workaround to a Compaq Desktop
50047 2005-04-21 Oskar Liljeblad <oskar@osk.mine.nu>
50049 * gnulib-tool (Options): Add -s for --symlink/--symbolic.
50050 (func_ln_if_changed) Remove forcibly for no error message
50051 in case file does not exist.
50053 2005-04-19 Simon Josefsson <jas@extundo.com>
50055 * gnulib-tool (Options): Make --symlink mean --symbolic.
50057 2005-04-18 Oskar Liljeblad <oskar@osk.mine.nu>
50059 * doc/gnulib.texi (Initial import): Fix. Mention --aux-dir.
50061 2005-04-16 Simon Josefsson <jas@extundo.com>
50063 * modules/getpass-gnu (Makefile.am): Don't mention getpass.h.
50065 2005-04-15 Simon Josefsson <jas@extundo.com>
50067 * m4/getpass.m4 (gl_FUNC_GETPASS): Use AC_LIBSOURCES.
50069 2005-04-15 Simon Josefsson <jas@extundo.com>
50071 * gnulib-tool: Rename --symlink to --symbolic.
50073 2005-04-15 Oskar Liljeblad <oskar@osk.mine.nu>
50075 * gnulib-tool: Add -s, --symlink option to gnulib-tool to make
50076 symbolic links to files instead of copying/moving. Add --aux-dir,
50077 specifying directory relative --dir where auxiliary build tools
50080 2005-04-14 Bruno Haible <bruno@clisp.org>
50082 * modules/allocsa (License): Change to LGPL.
50083 Requested by Yoann Vandoorselaere <yoann@prelude-ids.org>.
50085 2005-04-13 Paul Eggert <eggert@cs.ucla.edu>
50087 * lib/getdate.y (zone): Allow relunit_snumber after tZONE, so
50088 that "UTC +1 second" continues to work. Problem reported
50089 by Dmitry V. Levin.
50090 (relunit_snumber): New rule.
50093 2005-04-12 Paul Eggert <eggert@cs.ucla.edu>
50095 * lib/getdate.y (universal_time_zone_table): New constant.
50096 (time_zone_table): Remove GMT, UT, UTC entries; they're now in
50097 universal_time_zone_table.
50098 (lookup_zone): Prefer universal_time_zone_table to
50099 local_time_zone_table, so that "GMT" time stamps are allowed in
50100 London during the summer. Problem reported by Ian Abbott.
50102 2005-04-12 Jim Meyering <jim@meyering.net>
50104 * lib/human.c (humblock): Set *options even when returning due to
50105 xstrtoumax conversion failure. Thanks to a used-uninitialized
50106 warning from gcc-4.
50108 2005-04-09 Jim Meyering <jim@meyering.net>
50110 * lib/posixtm.c (posixtime) [lint]: Avoid spurious warning from gcc-4's
50111 -Wuninitialized: initialize tm0.tm_year.
50113 2005-04-04 Paul Eggert <eggert@cs.ucla.edu>
50115 * lib/getdate.y (parser_control): rels_seen is now a boolean, not a
50116 count, since there's no maximum. All uses changed.
50117 Add member dsts_seen.
50118 (local_zone): Accumulate dsts_seen rather than relying on tm_isdst
50120 (get_date): Initialize dsts_seen, and check that it doesn't go over 1.
50121 Use pc_rels_seen to decide whther a date is absolute.
50123 * lib/getdate.y (number): Don't overwrite year.
50124 (get_date): Initialize pc.year.digits to 0, not 4, to enable above
50127 2005-04-02 Simon Josefsson <jas@extundo.com>
50129 * lib/getaddrinfo.h: Fix OpenBSD compilation failure, inspired by tiny
50130 patch from Yoann Vandoorselaere <yoann@prelude-ids.org>.
50132 2005-03-28 Eric Blake <ebb9@byu.net> (tiny change)
50134 * m4/getcwd-path-max.m4: Return success on systems such as Cygwin
50135 where no absolute path name can be longer than PATH_MAX.
50137 2005-03-27 Jim Meyering <jim@meyering.net>
50139 * lib/argmatch.c: Clarify comment: null-terminated -> NULL-terminated.
50141 2005-03-26 Paul Eggert <eggert@cs.ucla.edu>
50143 * lib/intprops.h (INT_STRLEN_BOUND, INT_BUFSIZE_BOUND):
50144 "one's complement" -> "ones' complement" in comment, as per Knuth.
50145 "value of type" -> "type or expression" in comment.
50146 * lib/mktime.c, strftime.c: Propagate intprops.h comment nits.
50148 2005-03-26 Jim Meyering <jim@meyering.net>
50151 * lib/intprops.h: Add the apostrophe in `(one|two)'s complement'.
50152 Correct typos: s/or/of/.
50154 2005-03-26 Jim Meyering <jim@meyering.net>
50156 * modules/check-include-files: Move to ../ and rename to...
50157 * check-module: ...this.
50159 2005-03-25 Jim Meyering <jim@meyering.net>
50161 * modules/xvasprintf (Files): Add xalloc.h.
50163 2005-03-23 Paul Eggert <eggert@cs.ucla.edu>
50165 * modules/gettext (Files): config/config.rpath ->
50166 build-aux/config.rpath
50167 * modules/iconv (Files): Likewise.
50168 Problem reported by Oskar Liljeblad.
50170 2005-03-23 Jim Meyering <jim@meyering.net>
50172 * modules/check-include-files: New script to check for
50173 missing dependencies, multiple includes, etc.
50175 * modules/c-strtold (Depends-on): Add xalloc.
50176 * modules/c-strtod (Depends-on): Add xalloc.
50177 * modules/hash (Depends-on): Add xalloc.
50178 (Files): Remove lib/xalloc.h.
50180 * modules/gethrxtime (Files): Add lib/gethrxtime.h.
50181 * modules/userspec (Files): Add lib/inttostr.h.
50183 2005-03-23 Jim Meyering <jim@meyering.net>
50185 * lib/canonicalize.c: Remove duplicate `#include "stat-macros.h"'.
50187 2005-03-22 Jim Meyering <jim@meyering.net>
50189 * modules/stat-macros: New module.
50190 * modules/canonicalize, modules/euidaccess, modules/file-type,
50191 * modules/filemode, modules/lchown, modules/makepath,
50192 * modules/rmdir, modules/stat: Depend on new stat-macros module
50193 rather than listing lib/stat-macros.h manually.
50194 Don't add stat-macros.h to lib_SOURCES or list it in Files: section.
50196 2005-03-22 Jim Meyering <jim@meyering.net>
50198 * m4/stat-macros.m4 (gl_STAT_MACROS): New file/macro.
50200 2005-03-22 Bruno Haible <bruno@clisp.org>
50202 * config/srclist.txt: Replace target directory 'config' with
50204 * config/config.guess, config.sub, config.rpath, depcomp, install-sh:
50205 * config/mdate-sh, missing, mkinstalldirs, texinfo.tex: Move to
50208 2005-03-21 Paul Eggert <eggert@cs.ucla.edu>
50210 * modules/chdir-long (Depends-on): Add mempcpy.
50212 * modules/acl, modules/backupfile, modules/c-strtod,
50213 modules/c-strtold, modules/canon-host, modules/canonicalize,
50214 modules/cloexec, modules/closeout, modules/dirfd, modules/dirname,
50215 modules/exclude, modules/exitfail, modules/file-type,
50216 modules/filemode, modules/fpending, modules/fsusage, modules/getcwd,
50217 modules/getdate, modules/getline, modules/getpagesize,
50218 modules/getpass, modules/getugroups, modules/group-member,
50219 modules/hard-locale, modules/hash, modules/human, modules/idcache,
50220 modules/inttostr, modules/long-options, modules/makepath,
50221 modules/md5, modules/memcasecmp, modules/memcoll,
50222 modules/modechange, modules/mountlist, modules/path-concat,
50223 modules/pathmax, modules/physmem, modules/posixtm, modules/posixver,
50224 modules/quote, modules/quotearg, modules/readtokens, modules/readutmp,
50225 modules/safe-read, modules/safe-write, modules/same, modules/savedir,
50226 modules/settime, modules/sha1, modules/sig2str, modules/strdup,
50227 modules/strftime, modules/strndup, modules/strverscmp,
50228 modules/timespec, modules/unlocked-io, modules/userspec,
50229 modules/utimecmp, modules/utimens, modules/xalloc, modules/xstrtol,
50231 Remove lib_SOURCES line from Makefile.am section, as this is now
50232 done automatically by the corresponding Autoconf macro.
50234 2005-03-21 Jim Meyering <jim@meyering.net>
50236 Changes imported from coreutils.
50238 * lib/cycle-check.c: Don't include xalloc.h.
50240 * lib/path-concat.c: Don't include assert.h.
50241 (path_concat): Remove assertion that would have triggered
50242 for ABASE starting with more than one slash.
50243 Reported by Andreas Schwab.
50245 * lib/path-concat.c (path_concat): Set *BASE_IN_RESULT
50246 properly when ABASE is an absolute file name.
50247 Correct the description of this function.
50248 Include <assert.h>.
50249 Add an assertion and a test driver.
50250 This fixes a bug introduced on 2004-07-02.
50251 Andreas Schwab reported the resulting failure of cp --parents:
50252 http://lists.gnu.org/archive/html/bug-coreutils/2005-01/msg00130.html
50254 2005-03-21 Jim Meyering <jim@meyering.net>
50256 * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Invoke gl_FUNC_MEMRCHR.
50257 * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Check for memrchr decl.
50259 2005-03-21 Jim Meyering <jim@meyering.net>
50260 and Paul Eggert <eggert@cs.ucla.edu>
50262 * m4/acl.m4, m4/backupfile.m4, m4/c-strtod.m4, m4/canon-host.m4,
50263 m4/canonicalize.m4, m4/cloexec.m4, m4/closeout.m4, m4/dirfd.m4,
50264 m4/dirname.m4, m4/exclude.m4, m4/exitfail.m4, m4/file-type.m4,
50265 m4/filemode.m4, m4/fpending.m4, m4/fsusage.m4, m4/getcwd.m4,
50266 m4/getdate.m4, m4/getline.m4, m4/getpagesize.m4, m4/getpass.m4,
50267 m4/getugroups.m4, m4/group-member.m4, m4/hard-locale.m4, m4/hash.m4,
50268 m4/human.m4, m4/idcache.m4, m4/inttostr.m4, m4/long-options.m4,
50269 m4/makepath.m4, m4/md5.m4, m4/memcasecmp.m4, m4/memcoll.m4,
50270 m4/modechange.m4, m4/mountlist.m4, m4/nanosleep.m4, m4/path-concat.m4,
50271 m4/pathmax.m4, m4/physmem.m4, m4/posixtm.m4, m4/posixver.m4,
50272 m4/quote.m4, m4/quotearg.m4, m4/readtokens.m4, m4/readutmp.m4,
50273 m4/safe-read.m4, m4/safe-write.m4, m4/same.m4, m4/savedir.m4,
50274 m4/settime.m4, m4/sha1.m4, m4/sig2str.m4, m4/strdup.m4, m4/strftime.m4,
50275 m4/strndup.m4, m4/strverscmp.m4, m4/timespec.m4, m4/unlocked-io.m4,
50276 m4/userspec.m4, m4/utimecmp.m4, m4/utimens.m4, m4/xalloc.m4,
50277 m4/xnanosleep.m4, m4/xstrtol.m4, m4/yesno.m4:
50278 Use AC_LIBSOURCES and AC_LIBOBJ to indicate source and object files
50281 2005-03-18 Paul Eggert <eggert@cs.ucla.edu>
50283 * lib/strftime.c (my_strftime): If the underlying strftime returns 0
50284 (which shouldn't happen), generate nothing instead of returning 0
50285 immediately, so that nstrftime (NULL, ...) doesn't return 0.
50287 2005-03-16 Bruno Haible <bruno@clisp.org>
50289 * modules/stdint (Makefile.am): Use HAVE_LONG_LONG_64BIT instead of
50290 HAVE_LONGLONG_64BIT.
50292 2005-03-16 Bruno Haible <bruno@clisp.org>
50294 * m4/stdint.m4 (gl_STDINT_H): Define HAVE_LONG_LONG_64BIT instead of
50295 HAVE_LONGLONG_64BIT.
50297 2005-03-16 Bruno Haible <bruno@clisp.org>
50299 * lib/stdint_.h: Use HAVE_LONG_LONG_64BIT instead of
50300 HAVE_LONGLONG_64BIT.
50302 2005-03-15 Paul Eggert <eggert@cs.ucla.edu>
50304 * lib/strftime.c (my_strftime): Prepend space to format so that we can
50305 reliably distinguish strftime failure from empty output on POSIX
50308 2005-03-15 Paul Eggert <eggert@cs.ucla.edu>
50310 * lib/iconvme.c (SIZE_MAX): New macro, if not already defined.
50311 (iconv_string): Don't guess a size-zero buffer, as that might cause
50312 buffer overrun. Instead, avoid multiplying by MB_LEN_MAX if the
50313 result would be 'too large', where 'too large' is (heuristically)
50314 the square root of SIZE_MAX, divided by MB_LEN_MAX to allay
50315 overflow concerns. This will prevent some unwanted malloc failures
50316 when the inputs are very large.
50318 2005-03-15 Karl Berry <karl@gnu.org>
50320 * config/srclist.txt (config.rpath): from gettext.
50321 * config/config.rpath: update.
50323 2005-03-15 Bruno Haible <bruno@clisp.org>
50325 * lib/regex.c (byte_re_match_2_internal): Rename local variable 'not'
50328 * lib/regex.c (byte_re_match_2_internal): Reduce scope of same_str_p
50331 * lib/regex.c (EXTEND_BUFFER, regcomp): Cast the realloc/malloc
50334 2005-03-14 Simon Josefsson <jas@extundo.com>
50336 * lib/timegm.h: Use proper prototype CPP guards, reported by Dave Love
50339 2005-03-14 Paul Eggert <eggert@cs.ucla.edu>
50341 * lib/mktime.c (TYPE_TWOS_COMPLEMENT, TYPE_ONES_COMPLEMENT,
50342 TYPE_SIGNED_MAGNITUDE, TYPE_MINIMUM, TYPE_MAXIMUM): Sync from
50344 * lib/strtol.c: Likewise.
50346 2005-03-14 Jim Meyering <jim@meyering.net>
50348 * lib/strftime.c (my_strftime) [HAVE_STRFTIME && ! (_NL_CURRENT
50349 && HAVE_STRUCT_ERA_ENTRY)]: Initialize the first byte of ubuf[]
50350 to be nonzero so that we (and caller) can detect the difference
50351 between a valid zero-length expansion and an error return, even
50352 when the underlying strftime fails before writing anything into
50355 2005-03-14 Bruno Haible <bruno@clisp.org>
50357 * m4/lib-link.m4, gettext.m4, nls.m4, po.m4:
50358 Update from GNU gettext 0.14.3.
50360 2005-03-10 Jim Meyering <jim@meyering.net>
50362 * m4/save-cwd.m4 (gl_SAVE_CWD): Check for fchdir.
50364 2005-03-10 Jim Meyering <jim@meyering.net>
50366 * lib/save-cwd.c [!HAVE_FCHDIR]: Define open, fchdir, and chdir_long
50367 so that this module works on systems without fchdir.
50369 2005-03-09 Paul Eggert <eggert@cs.ucla.edu>
50371 Factor int-properties macros into a single file, except for
50372 glibc-related files.
50373 * lib/intprops.h: New file.
50374 * lib/getloadavg.c: Include it instead of limits.h.
50375 (INT_STRLEN_BOUND): Remove.
50376 * lib/human.c: Include intprops.h.
50377 (group_number): Use INT_STRLEN_BOUND instead of rolling it ourself.
50378 * lib/human.h (LONGEST_HUMAN_READABLE): Use 146/485 rather than
50380 * lib/inttostr.h: Include intprops.h instead of limits.h.
50381 (INT_STRLEN_BOUND, INT_BUFSIZE_BOUND): Remove.
50382 * lib/mktime.c (TYPE_IS_INTEGER, TYPE_TWOS_COMPLEMENT): New macros,
50383 for consistency with intprops.h.
50384 (time_t_is_integer, twos_complement_arithmetic): Use them.
50385 * lib/sig2str.h: Include <signal.h>, intprops.h.
50386 (INT_STRLEN_BOUND): Remove.
50387 * lib/strftime.c (TYPE_SIGNED): Remove.
50388 (INT_STRLEN_BOUND): Switch to same implementation as intprops.h.
50389 * lib/strtol.c: Adjust comments to match intprops.h.
50390 * lib/userspec.c: Include intprops.h.
50391 (TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Remove.
50392 * lib/utimecmp.c, xnanosleep.c, xstrtol.c: Likewise.
50393 * lib/utimecmp.c (utimecmp): Use TYPE_IS_INTEGER, TYPE_TWOS_COMPLEMENT
50394 instead of rolling our own expressions.
50395 * lib/xstrtol.c: Include xstrtol.h first, to test interface.
50397 * lib/strftime.c: Include <stdbool.h>. Use bool where appropriate,
50399 (my_strftime): Do not mishandle years close to INT_MAX, by doing
50400 the right thing even if adding 1900 would overflow. Similarly
50401 for tm_mon + 1 and tm_yday + 1.
50402 Make %Y always equivalent to %C%y, and similarly for %G and %g.
50403 (DO_NUMBER, DO_NUMBER_SPACEPAD): Set digits to d, not a conditional.
50404 (DO_SIGNED_NUMBER): New macro.
50405 (my_strftime) [HAVE_TZNAME]: Don't dump core if tp->tm_dst > 1.
50407 2005-03-07 Bruno Haible <bruno@clisp.org>
50409 * m4/mmap-anon.m4 (MAP_FILE, MAP_FAILED): Remove definitions.
50411 2005-03-07 Bruno Haible <bruno@clisp.org>
50413 * lib/pagealign_alloc.c (MAP_FILE, MAP_FAILED): Define fallbacks.
50415 2005-03-04 Derek R. Price <derek@ximbiot.com>
50417 * gnulib-tool (func_cp_if_changed, func_mv_if_changed): New functions.
50418 (func_import): Only replace files via --import when they have actually
50421 2005-03-03 Derek R. Price <derek@ximbiot.com>
50423 * m4/mmap-anon.m4: New file.
50424 * m4/pagealign_alloc.m4: New file.
50426 2005-03-03 Derek R. Price <derek@ximbiot.com>
50427 Bruno Haible <bruno@clisp.org>
50429 * modules/pagealign_alloc: New file.
50430 * MODULES.html.sh (Memory management functions): Add pagealign_alloc.
50432 2005-03-03 Derek R. Price <derek@ximbiot.com>
50433 Bruno Haible <bruno@clisp.org>
50435 * lib/pagealign_alloc.h: New file.
50436 * lib/pagealign_alloc.c: New file.
50438 2005-03-03 Bruno Haible <bruno@clisp.org>
50440 * m4/inttypes.m4, isc-posix.m4, once-only.m4:
50441 Use an all-permissive copyright notice, recommended by RMS.
50443 2005-03-02 Bruno Haible <bruno@clisp.org>
50445 * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Undo the replacement here. Because
50446 of AIX, the replacement has to be done only after <string.h> is
50447 included, therefore not in config.h. stpncpy.h does the replacement,
50448 and stpncpy.c uses it.
50450 2005-03-02 Bruno Haible <bruno@clisp.org>
50452 * lib/stpncpy.h (stpncpy): Define as a macro without arguments, so that
50455 2005-03-01 Paul Eggert <eggert@cs.ucla.edu>
50457 Remove workaround for bug in Linux kernel 2.6.8 or thereabouts.
50458 The workaround isn't strictly needed for POSIX conformance, and
50459 it's too much of a pain to configure and maintain. We'll ask
50460 people to fix their kernels instead.
50461 * lib/xnanosleep.c: Don't include gethrxtime.h or xtime.h.
50462 (NANOSLEEP_BUG_WORKAROUND): Remove.
50463 (xnanosleep): Remove the workaround.
50465 2005-03-01 Paul Eggert <eggert@cs.ucla.edu>
50467 * modules/gettime (Makefile.am): Remove lib_SOURCES line.
50468 Reported by Derek Price.
50469 (Include): Add "timespec.h".
50471 * modules/xnanosleep (Depends-on): Remove gethrxtime.
50473 2005-03-01 Paul Eggert <eggert@cs.ucla.edu>
50475 * m4/xnanosleep.m4 (gl_XNANOSLEEP): Remove configuration attempting
50476 to detect nanosleep bug.
50478 2005-03-01 Bruno Haible <bruno@clisp.org>
50480 * lib/vasnprintf.c (EOVERFLOW): Define to a fallback if needed.
50482 2005-02-26 Paul Eggert <eggert@cs.ucla.edu>
50484 * modules/gethrxtime: New file.
50485 * modules/xnanosleep (Files): Add m4/xnanosleep.m4.
50486 (Depends-on): Add gethrxtime.
50487 (configure.ac): Add gl_XNANOSLEEP.
50488 (Makefile.am): Remove lib_SOURCES line.
50490 2005-02-25 Paul Eggert <eggert@cs.ucla.edu>
50492 * m4/gethrxtime.m4, m4/xnanosleep.m4: New files.
50493 * m4/gettime.m4 (gl_GETTIME): Check for nanotime.
50495 2005-02-25 Paul Eggert <eggert@cs.ucla.edu>
50497 * lib/gethrxtime.h, lib/gethrxtime.c, lib/xtime.h: New files.
50498 * lib/timespec.h (gettime): Return void, since it always
50499 succeeds now. All uses changed.
50500 * lib/gettime.c (gettime) Likewise.
50501 [HAVE_NANOTIME]: Prefer nanotime.
50502 Assume gettimeofday succeeds, as POSIX requires.
50503 Assime time () succeeds, since other code already does.
50504 * lib/xnanosleep.c: Include xtime.h and gethrxtime.h, not xalloc.h.
50505 (timespec_subtract): Remove.
50506 (NANOSLEEP_BUG_WORKAROUND): New constant.
50507 (xnanosleep): Use gethrxtime rather than gettime; this simplifies
50508 things considerably. Use it only on GNU/Linux hosts, since the
50509 workaround shouldn't be needed elsewhere.
50511 2005-02-24 Bruno Haible <bruno@clisp.org>
50513 * modules/gettext (Files): Add m4/glibc2.m4.
50515 2005-02-24 Bruno Haible <bruno@clisp.org>
50517 * m4/gettext.m4, intdiv0.m4, intmax.m4, inttypes-pri.m4, lcmessage.m4:
50518 * m4/lib-link.m4, lib-prefix.m4, nls.m4, po.m4, printf-posix.m4:
50520 Update from GNU gettext 0.14.2.
50521 * m4/glibc2.m4: New file, from GNU gettext 0.14.2.
50523 2005-02-24 Bruno Haible <bruno@clisp.org>
50525 * lib/localcharset.c: Update from GNU gettext 0.14.2.
50526 * lib/config.charset: Update from GNU gettext 0.14.2.
50528 2005-02-24 Bruno Haible <bruno@clisp.org>
50530 * lib/gettext.h: Update from GNU gettext 0.14.2.
50532 2005-02-23 Simon Josefsson <jas@extundo.com>
50534 * m4/iconvme.m4: New file.
50536 2005-02-23 Jim Meyering <jim@meyering.net>
50538 * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Revert yesteday's
50540 Thanks to Bruno Haible for catching it.
50542 2005-02-22 Simon Josefsson <jas@extundo.com>
50544 * modules/iconvme: New file.
50546 * MODULES.html.sh: Add iconvme.
50548 2005-02-22 Simon Josefsson <jas@extundo.com>
50550 * lib/iconvme.h, lib/iconvme.c: New files, from libc.
50552 2005-02-22 Simon Josefsson <jas@extundo.com>
50554 * config/srclist.txt: Sync iconvme.h, iconvme.c from libc.
50556 2005-02-22 Jim Meyering <jim@meyering.net>
50558 * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Fix typo:
50561 2005-02-20 Neil Conway <neilc@samurai.com>
50563 * lib/xgethostname.c (xgethostname): Check for ENOMEM, which is
50564 returned by OSX/Darwin if the specified buffer is not large
50565 enough for the hostname.
50567 2005-02-03 Sergey Poznyakoff <gray@Mirddin.farlep.net>
50569 * lib/argp-help.c (__argp_help): Create a fake struct argp_state and
50570 pass it to _help, otherwise the latter coredumps trying to
50571 dereference state.root_argp.
50573 2005-02-03 Paul Eggert <eggert@cs.ucla.edu>
50575 * modules/chdir-long (Depends-on): Add memrchr.
50576 * modules/memrchr (Files): Add lib/memrchr.h.
50577 (Include): "memrchr.h".
50579 2005-02-03 Paul Eggert <eggert@cs.ucla.edu>
50581 * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Add AC_LIBSOURCES, for memrchr.h.
50583 2005-02-03 Paul Eggert <eggert@cs.ucla.edu>
50585 * lib/memrchr.h: New file.
50586 * lib/chdir-long.c: Include it.
50587 * lib/memrchr.c [!defined _LIBC]: Include it rather than <string.h>
50588 Don't bother including stddef.h.
50590 2005-02-01 Paul Eggert <eggert@cs.ucla.edu>
50592 * lib/mountlist.h (MOUNTLIST_H_): New macro, to protect against double
50594 Include <sys/types.h>, for dev_t.
50595 (ME_DUMMY, ME_REMOTE): Move from here....
50596 * lib/mountlist.c (ME_DUMMY, ME_REMOTE): To here.
50597 (ME_DUMMY): Count "subfs" as a dummy. Problem reported by
50599 Include mountlist.h first, to test the interface.
50601 2005-01-29 Bruno Haible <bruno@clisp.org>
50603 * lib/progname.c (program_name): Initialize.
50604 Needed when linking statically on MacOS X.
50606 2005-01-28 Paul Eggert <eggert@cs.ucla.edu>
50608 Sync from coreutils.
50609 * modules/getloadavg (Files): Remove m4/getloadavg.m4.
50610 (Depends-on): Add c-strtod.
50611 (configure.ac): Replace gl_FUNC_GETLOADAVG with AC_FUNC_GETLOADAVG.
50613 2005-01-28 Paul Eggert <eggert@cs.ucla.edu>
50615 Sync from coreutils.
50616 * m4/getloadavg.m4, glibc.m4, search-libs.m4: Remove.
50618 Remove files that are specific to coreutils.
50619 * m4/check-decl.m4, jm-macros.m4, lib-check.m4, prereq.m4: Remove.
50621 2005-01-28 Bruno Haible <bruno@clisp.org>
50623 * modules/javacomp: New file.
50624 * MODULES.html.sh (Java): Add javacomp.
50626 2005-01-28 Bruno Haible <bruno@clisp.org>
50628 * m4/javacomp.m4: New file, from GNU gettext.
50630 2005-01-28 Bruno Haible <bruno@clisp.org>
50632 * lib/javacomp.sh.in: New file, from GNU gettext.
50633 * lib/javacomp.h: New file, from GNU gettext.
50634 * lib/javacomp.c: New file, from GNU gettext.
50636 2005-01-26 Simon Josefsson <jas@extundo.com>
50638 * lib/gai_strerror.c: Use GPL in header.
50640 2005-01-26 Bruno Haible <bruno@clisp.org>
50642 * modules/javaexec: New file.
50643 * MODULES.html.sh (Java): Add javaexec.
50645 2005-01-26 Bruno Haible <bruno@clisp.org>
50647 * m4/javaexec.m4: New file, from GNU gettext.
50649 2005-01-26 Bruno Haible <bruno@clisp.org>
50651 * lib/javaexec.sh.in: New file, from GNU gettext.
50652 * lib/javaexec.h: New file, from GNU gettext.
50653 * lib/javaexec.c: New file, from GNU gettext.
50655 2005-01-24 Sergey Poznyakoff <gray@Mirddin.farlep.net>
50657 * modules/lchown (Depends-on): Remove lchown.h
50659 2005-01-24 Sergey Poznyakoff <gray@Mirddin.farlep.net>
50661 * m4/sysexits.m4 (gl_SYSEXITS): Reverted logic. SYSEXITS_H
50662 must be defined if the header file was not found, in order
50663 to provide a replacement. Reported by Todd Vierling <tv@duh.org>
50665 2005-01-24 Sergey Poznyakoff <gray@Mirddin.farlep.net>
50667 * lib/argp-help.c (hol_entry_help): Avoid using non-constant
50668 initializers for struct pentry_state.
50669 (__argp_error): Check return value of __asprintf
50670 (__argp_failure): Translate error message
50672 * lib/argp-parse.c: Removed braces around the expansion of N_()
50674 2005-01-23 Paul Eggert <eggert@cs.ucla.edu>
50676 * m4/acl.m4, afs.m4, alloca.m4, argp.m4, assert.m4, atexit.m4,
50677 backupfile.m4, base64.m4, bison.m4, c-bs-a.m4, c-stack.m4,
50678 c-strtod.m4, calloc.m4, canon-host.m4, canonicalize.m4,
50679 clock_time.m4, cloexec.m4, closeout.m4, d-ino.m4, d-type.m4,
50680 dirfd.m4, dirname.m4, dos.m4, dup2.m4, error.m4, euidaccess.m4,
50681 exclude.m4, exitfail.m4, extensions.m4, fcntl-safer.m4,
50682 file-type.m4, fileblocks.m4, filemode.m4, fnmatch.m4, fpending.m4,
50683 free.m4, fstypename.m4, fsusage.m4, ftruncate.m4, getaddrinfo.m4,
50684 getcwd-path-max.m4, getcwd.m4, getdate.m4, getdomainname.m4,
50685 getgroups.m4, gethostname.m4, getline.m4, getndelim2.m4,
50686 getnline.m4, getopt.m4, getpagesize.m4, getpass.m4, getsubopt.m4,
50687 gettime.m4, gettimeofday.m4, getugroups.m4, getusershell.m4,
50688 group-member.m4, hard-locale.m4, hash.m4, host-os.m4, human.m4,
50689 idcache.m4, inttostr.m4, isdir.m4, jm-winsz1.m4, jm-winsz2.m4,
50690 link-follow.m4, long-options.m4, ls-mntd-fs.m4, lstat.m4,
50691 makepath.m4, mathl.m4, md5.m4, memcasecmp.m4, memchr.m4,
50692 memcmp.m4, memcoll.m4, memcpy.m4, memmem.m4, memmove.m4,
50693 memrchr.m4, memset.m4, mkdir-slash.m4, mkstemp.m4, mktime.m4,
50694 modechange.m4, mountlist.m4, nanosleep.m4, obstack.m4,
50695 path-concat.m4, pathmax.m4, perl.m4, physmem.m4, poll.m4,
50696 posixtm.m4, posixver.m4, putenv.m4, quote.m4, quotearg.m4,
50697 readdir.m4, readtokens.m4, readutmp.m4, regex.m4, rename.m4,
50698 restrict.m4, rmdir-errno.m4, rmdir.m4, rpmatch.m4, same.m4,
50699 savedir.m4, settime.m4, sha1.m4, sig2str.m4, snprintf.m4,
50700 sockpfaf.m4, st_dm_mode.m4, st_mtim.m4, stat.m4, stdint.m4,
50701 stdio-safer.m4, strchrnul.m4, strdup.m4, strerror.m4,
50702 strerror_r.m4, strftime.m4, strndup.m4, strnlen.m4, strsep.m4,
50703 strtod.m4, strtoimax.m4, strtok_r.m4, strtol.m4, strtoll.m4,
50704 strtoul.m4, strtoull.m4, strtoumax.m4, strverscmp.m4, sysexits.m4,
50705 time_r.m4, timegm.m4, timespec.m4, tm_gmtoff.m4, tzset.m4,
50706 uint32_t.m4, uintptr_t.m4, unistd-safer.m4, unlink-busy.m4,
50707 unlocked-io.m4, uptime.m4, userspec.m4, utimbuf.m4, utime.m4,
50708 utimecmp.m4, utimens.m4, utimes-null.m4, vsnprintf.m4, xalloc.m4,
50709 xgetcwd.m4, xreadlink.m4, xstrndup.m4, xstrtod.m4, xstrtoimax.m4,
50710 xstrtol.m4, xstrtoumax.m4, yesno.m4:
50711 Use an all-permissive copyright notice, recommended by RMS.
50713 2005-01-21 Paul Eggert <eggert@cs.ucla.edu>
50715 * modules/chdir-long (Depends-on): Remove mempcpy.
50717 2005-01-21 Jim Meyering <jim@meyering.net>
50719 * lib/openat.h (AT_SYMLINK_NOFOLLOW): Define to 4096, so it's the
50720 same value as for Solaris 9.
50722 * lib/chdir-long.c (chdir_long): Rewrite to remove limitation on
50723 component length. This included changing the parameter to be
50724 of type `char *' rather than `char const *'.
50725 * lib/chdir-long.h (chdir_long): Update prototype.
50727 * lib/openat.c (fdopendir, fstatat): New functions.
50728 * lib/openat.h: Include headers required for use of DIR and struct
50730 [AT_SYMLINK_NOFOLLOW]: Define.
50731 (fdopendir, fstatat): Add prototypes.
50733 2005-01-21 Bruno Haible <bruno@clisp.org>
50735 * modules/classpath: New file.
50736 * MODULES.html.sh (Java): Add classpath.
50738 2005-01-21 Bruno Haible <bruno@clisp.org>
50740 * lib/classpath.h: New file, from GNU gettext.
50741 * lib/classpath.c: New file, from GNU gettext.
50743 2005-01-20 Simon Josefsson <jas@extundo.com>
50745 * modules/version-etc-fsf: New file.
50747 2005-01-20 Simon Josefsson <jas@extundo.com>
50749 * lib/version-etc-fsf.c: New file, with version_etc_copyright.
50750 * lib/version-etc.c: Remove version_etc_copyright.
50751 * lib/version-etc.h (version_etc_copyright): Use [] instead of * in
50752 prototype, suggested by Paul Eggert <eggert@CS.UCLA.EDU>.
50754 2005-01-20 Simon Josefsson <jas@extundo.com>
50756 * lib/base64.h (isbase64): Add.
50758 * lib/base64.c (isb64): Rename to isbase64, use to_uchar instead of
50759 using a unsigned prototype, don't inline.
50760 (base64_decode): Use it.
50762 2005-01-20 Paul Eggert <eggert@cs.ucla.edu>
50764 * m4/save-cwd.m4 (gl_SAVE_CWD): Remove check for fcntl; we now assume
50767 2005-01-20 Paul Eggert <eggert@cs.ucla.edu>
50769 * lib/save-cwd.c (save_cwd): Remove code to support the case
50770 where fchdir is missing or flaky.
50772 2005-01-20 Paul Eggert <eggert@cs.ucla.edu>
50774 * MODULES.html.sh (Command-line arguments): Add version-etc-fsf.
50776 2005-01-19 Paul Eggert <eggert@cs.ucla.edu>
50778 * modules/mempcpy (Makefile.am): Remove mention of mempcpy.h;
50779 AC_LIBSOURCES now does this.
50780 * MODULES.html.sh (Sizes of integer types <limits.h>): New element,
50781 with new ullong_max module.
50783 2005-01-19 Bruno Haible <bruno@clisp.org>
50785 * modules/sh-quote: New file.
50786 * MODULES.html.sh (Executing programs): Add sh-quote.
50788 2005-01-19 Bruno Haible <bruno@clisp.org>
50790 * lib/sh-quote.h: New file, from GNU gettext.
50791 * lib/sh-quote.c: New file, from GNU gettext.
50793 2005-01-18 Paul Eggert <eggert@cs.ucla.edu>
50795 Merge from coreutils.
50796 * m4/ullong_max.m4: New file.
50797 * m4/jm-macros.m4 (gl_MACROS): Require gl_ULLONG_MAX.
50798 (gl_MACROS): Assume localeconv exists.
50800 2005-01-18 Paul Eggert <eggert@cs.ucla.edu>
50802 Merge changes from coreutils, as described below in several
50803 changelogs dated today.
50805 * lib/save-cwd.c: Include "save-cwd.h" before other include files.
50806 (O_DIRECTORY): Remove; not needed here, since "." must be
50807 a directory. All uses removed.
50808 (save_cwd): Use __sgi || __sun, not sun || __sun. __sun is
50809 universal on Suns, and we also need to test for IRIX.
50810 Revamp code to use 'if' rather than '#if'.
50811 Avoid unnecessary comparison of cwd->desc to 0.
50813 * lib/utimens.c (futimens): Robustify the previous patch, by checking
50814 for known valid error numbers rather than observed invalid ones.
50816 2005-01-18 Paul Eggert <eggert@cs.ucla.edu>
50818 * modules/ullong_max: New file.
50820 * modules/chdir-long, modules/openat: New files.
50821 * modules/save-cwd (Depends-on): Depend on chdir-long.
50822 (Makefile.am): Remove lib_SOURCES; now handled by AC_LIBSOURCES.
50824 2005-01-18 Jim Meyering <jim@meyering.net>
50826 Merge from coreutils.
50827 * m4/chdir-long.m4, m4/openat.m4: New files.
50828 * m4/save-cwd.m4 (gl_SAVE_CWD): Add AC_LIBSOURCES for save-cwd.c,
50829 save-cwd.h. Add AC_LIBOBJ for save-cwd.
50830 * m4/chown.m4 (gl_FUNC_CHOWN): When cross-compiling, assume that chown
50831 is sane and DOES follow symlinks. Besides, testing 20 different
50832 systems found no broken chown implementations.
50833 Prompted by a change in rsync's copy of this macro.
50834 * m4/jm-macros.m4 (gl_MACROS): Require gl_FUNC_CHDIR_LONG.
50836 * m4/lchown.m4 (gl_FUNC_LCHOWN): Use AC_LIBSOURCES.
50838 * m4/utimes.m4: Work around tests/touch/empty-file failure on a system
50839 (sparc64, Linux-2.4.28, glibc-2.3.3) that didn't honor utimes'
50840 NULL-means-set-to-current-time semantics.
50841 Remove temporary file immediately, rather than waiting
50842 for configure's at-exit trap code to do it.
50844 2005-01-18 Jim Meyering <jim@meyering.net>
50846 * lib/version-etc.c (version_etc_copyright): Update copyright date.
50848 * lib/utimens.c (futimens): Account for the fact that futimes
50849 can also fail with errno == ENOSYS or errno == ENOENT.
50850 Patch from Dmitry V. Levin.
50852 Change the name of the robust chdir function from chdir to chdir_long.
50853 * lib/save-cwd.c: Include chdir-long.h rather than chdir.h.
50854 (restore_cwd): Use chdir_long, not chdir.
50855 * lib/chdir-long.c: Renamed from chdir.c.
50856 * lib/chdir-long.h: Renamed from chdir.h.
50857 [!defined PATH_MAX]: Define chdir_long to chdir on systems like the
50860 2005-01-18 Bruno Haible <bruno@clisp.org>
50862 * m4/allocsa.m4, m4/codeset.m4, m4/copy-file.m4, m4/eaccess.m4:
50863 * m4/eealloc.m4, m4/eoverflow.m4, m4/execute.m4, m4/fatal-signal.m4:
50864 * m4/findprog.m4, m4/glibc21.m4, m4/iconv.m4, m4/intmax_t.m4:
50865 * m4/inttypes_h.m4, m4/lib-ld.m4, m4/lib-link.m4, m4/lib-prefix.m4:
50866 * m4/linebreak.m4, m4/localcharset.m4, m4/longdouble.m4:
50867 * m4/longlong.m4, m4/mbrtowc.m4, m4/mbstate_t.m4, m4/mbswidth.m4:
50868 * m4/mkdtemp.m4, m4/pipe.m4, m4/readlink.m4, m4/safe-read.m4:
50869 * m4/safe-write.m4, m4/setenv.m4, m4/sig_atomic_t.m4:
50870 * m4/signalblocking.m4, m4/signed.m4, m4/size_max.m4, m4/ssize_t.m4:
50871 * m4/stdbool.m4, m4/stdint_h.m4, m4/stpcpy.m4, m4/stpncpy.m4:
50872 * m4/strcase.m4, m4/strcspn.m4, m4/strpbrk.m4, m4/strstr.m4:
50873 * m4/ucs4-utf.m4, m4/uintmax_t.m4, m4/ulonglong.m4, m4/unicodeio.m4:
50874 * m4/utf-ucs4.m4, m4/vasnprintf.m4, m4/vasprintf.m4:
50875 * m4/wait-process.m4, m4/wchar_t.m4, m4/wint_t.m4, m4/xsize.m4:
50876 Use an all-permissive copyright notice, recommended by RMS.
50878 2005-01-18 Bob Proulx <bob@proulx.com>
50880 * lib/obstack.c [DEFAULT_ALIGNMENT]: Use an intermediate type to
50881 simplify offsetof() macro construct to avoid compile failure with
50882 native HP-UX 11.0 ANSI C compiler.
50884 2005-01-17 Bruno Haible <bruno@clisp.org>
50886 * lib/stpncpy.c: Remove HAVE_STPNCPY and gnu_stpncpy renaming,
50887 redundant because stpncpy.m4 takes care of it.
50889 2005-01-17 Bruno Haible <bruno@clisp.org>
50891 * lib/progreloc.c: Include xalloc.h instead of xmalloc.h.
50893 2005-01-17 Bruno Haible <bruno@clisp.org>
50895 * lib/progreloc.c (xstrdup): Define as strdup if no xmalloc should be
50898 2005-01-17 Bruno Haible <bruno@clisp.org>
50900 * lib/fwriteerror.h (fwriteerror): Change specification to include
50902 * lib/fwriteerror.c: Include <stdbool.h>.
50903 (fwriteerror): At the end, close the file stream. Record whether
50904 stdout was already closed.
50906 2005-01-17 Bruno Haible <bruno@clisp.org>
50908 * lib/execute.c (environ): Declare if needed.
50909 * lib/pipe.c (environ): Likewise.
50910 Reported by Michael Schloh von Bennewitz <michael.schloh@cw.com>.
50912 2005-01-11 Sergey Poznyakoff <gray@Mirddin.farlep.net>
50914 * modules/argp: Depend on vsnprintf
50916 2005-01-10 Jim Meyering <jim@meyering.net>
50918 * modules/closeout (Depends-on): Add atexit.
50920 2005-01-06 Bruno Haible <bruno@clisp.org>
50922 * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Rename stpncpy to gnu_stpncpy here.
50924 2005-01-04 Paul Eggert <eggert@cs.ucla.edu>
50926 * lib/human.c (SIZE_MAX, UINTMAX_MAX): Move these conditional
50927 definitions to be after all include files, to avoid collisions.
50928 Problem reported by Bob Proulx.
50930 2005-01-04 Jim Meyering <jim@meyering.net>
50932 Changes imported from coreutils.
50933 * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Rather than using "conftestXXXXXX"
50934 as the mkstemp template, use a temporary directory and an
50935 8.3-friendly template to avoid trouble on systems like DJGPP.
50936 Reported by Juan M. Guerrero via Stepan Kasal.
50937 * m4/(gl_FUNC_MKSTEMP): Include <unistd.h> for the declaration of
50938 close. Remove the temporary directory right away, rather than waiting
50939 for configure's at-exit trap code to do it.
50940 Suggestion from Stepan Kasal.
50942 2005-01-01 Simon Josefsson <jas@extundo.com>
50944 * gnulib-tool: Print #include directives when --import'ing.
50946 2004-12-28 Simon Josefsson <jas@extundo.com>
50948 * tests/test-base64.c: Include required header files. Remove
50951 2004-12-28 Paul Eggert <eggert@cs.ucla.edu>
50953 * modules/error (Depends-on): Remove gettext.
50955 2004-12-28 Paul Eggert <eggert@cs.ucla.edu>
50957 * lib/error.c [!_LIBC && !ENABLE_NLS]: Do not include "gettext.h";
50958 not needed. This removes a dependency on the gettext module.
50959 [defined _LIBC]: Do not include <libintl.h>; not needed.
50961 2004-12-24 Paul Eggert <eggert@cs.ucla.edu>
50963 * m4/c-strtod.m4 (gl_C99_STRTOLD): New macro.
50964 (gl_C_STRTOD): Use it instead of AC_CHECK_DECLS_ONCE(strtold).
50966 2004-12-24 Paul Eggert <eggert@cs.ucla.edu>
50968 * lib/c-strtod.c (STRTOD): Depend on HAVE_C99_STRTOLD, not
50971 2004-12-23 Paul Eggert <eggert@cs.ucla.edu>
50973 * modules/getdate (Depends-on): Remove alloca-opt.
50975 2004-12-23 Paul Eggert <eggert@cs.ucla.edu>
50977 * m4/getdate.m4 (gl_GETDATE): Remove AC_FUNC_ALLOCA.
50979 2004-12-23 Paul Eggert <eggert@cs.ucla.edu>
50981 * lib/argp-parse.c: Include <stddef.h>.
50982 (alignof, alignto): New macros.
50983 (parser_init): Don't assume that void * is aligned sufficiently
50986 * lib/getdate.y (YYSTACK_USE_ALLOCA): Define to 0, since there's no
50987 need to extend the stack.
50988 (YYINITDEPTH): New macro, so that the initial stack isn't overly
50991 2004-12-22 Sergey Poznyakoff <gray@Mirddin.farlep.net>
50993 * lib/argp-parse.c (parser_init): Avoid arithmetics on void pointers.
50995 2004-12-19 Paul Eggert <eggert@cs.ucla.edu>
50997 * modules/regex (lib_SOURCES): Remove regex.c, undoing previous
50998 (2004-10-24) change. Apparently this was a false alarm.
51000 * modules/getdate: Depend on alloca-opt, not alloca.
51002 2004-12-19 Paul Eggert <eggert@cs.ucla.edu>
51004 * lib/alloca_.h: Conditionalize on _GNULIB_ALLOCA_H, not _ALLOCA_H.
51005 Remove now-obsolete comment about AIX.
51006 * lib/getdate.y: Include <alloca.h> only if HAVE_ALLOCA.
51007 (YYSTACK_USE_ALLOCA): Define to 0 if !HAVE_ALLOCA.
51008 (YYMAXDEPTH): New macro.
51010 2004-12-18 Simon Josefsson <jas@extundo.com>
51012 * modules/alloca: Depend on alloca-opt, instead of duplicating it.
51014 2004-12-18 Bruno Haible <bruno@clisp.org>
51016 * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Also test for sigaction.
51018 2004-12-18 Bruno Haible <bruno@clisp.org>
51020 * lib/fatal-signal.c (fatal_signals): Make non-const.
51021 (init_fatal_signals): New function.
51022 (uninstall_handlers, install_handlers): Ignore signals that were set to
51024 (at_fatal_signal): Call init_fatal_signals.
51025 (init_fatal_signal_set): Likewise. Ignore signals that were set to
51027 Reported by Paul Eggert.
51029 2004-12-18 Bruno Haible <bruno@clisp.org>
51031 * doc/alloca.texi: New file.
51032 * doc/alloca-opt.texi: New file.
51034 2004-12-17 Jim Meyering <jim@meyering.net>
51036 * config/install-sh: Use `(exit N); exit N', not `(exit N); exit'.
51037 Otherwise, install-sh could exit with improper exit status when
51038 exiting via a trapped interrupt. Thanks to a report from Bob Proulx.
51040 2004-12-16 Simon Josefsson <jas@extundo.com>
51042 * tests/test-base64.c: Add license.
51044 2004-12-15 Stepan Kasal <address@hidden>
51046 * gnulib-tool (func_emit_lib_Makefile_am): Shorten a long sed command.
51048 2004-12-12 Paul Eggert <eggert@cs.ucla.edu>
51050 * modules/getcwd (Files): Add m4/d-ino.m4.
51051 Suggested by Mark D. Baushke.
51053 2004-12-08 Paul Eggert <eggert@cs.ucla.edu>
51055 * lib/getdate.y (textint): New member "negative".
51056 (time_zone_hhmm): New function.
51057 Expect 14 shift-reduce conflicts, not 13.
51058 (o_colon_minutes): New rule.
51059 (time, zone): Use it to add support for +HH:MM, UTC+HH:MM.
51060 (yylex): Set the "negative" member of signed numbers.
51062 2004-12-08 Paul Eggert <eggert@cs.ucla.edu>
51064 * doc/getdate.texi (Time of day items, Time zone items):
51065 Describe new formats +00:00, UTC+00:00.
51067 2004-12-07 Paul Eggert <eggert@cs.ucla.edu>
51069 * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): Fix typo in previous change:
51070 spurious "-l"s. Problem reported by Stepan Kasal.
51072 2004-12-06 Paul Eggert <eggert@cs.ucla.edu>
51074 * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): New macro, to work around bug
51075 in Autoconf 2.59. Problem reported by Mark D. Baushke.
51077 2004-12-04 Simon Josefsson <jas@extundo.com>
51079 * modules/getaddrinfo (License): Add LGPL, reported by Yoann
51080 Vandoorselaere <yoann@prelude-ids.org>.
51082 2004-12-04 Paul Eggert <eggert@cs.ucla.edu>
51084 Changes imported from coreutils.
51085 * m4/hard-locale.m4 (gl_HARD_LOCALE): Assume locale.h and setlocale
51087 * m4/human.m4 (gl_HUMAN): Assume locale.h and localeconv exist.
51089 2004-12-04 Paul Eggert <eggert@cs.ucla.edu>
51091 Changes imported from coreutils.
51092 * lib/hard-locale.c: Assume <locale.h> exists.
51093 Include "strdup.h".
51094 (GLIBC_VERSION): New macro.
51095 (hard_locale): Assume setlocale exists.
51096 Rewrite to avoid #ifdef.
51097 Use strdup rather than malloc + strcpy.
51098 * lib/human.c: Assume <locale.h> exists.
51099 (human_readable): Assume localeconv exists.
51101 2004-12-04 Paul Eggert <eggert@cs.ucla.edu>
51103 * modules/hard-locale (Depends-on): Add strdup.
51105 2004-12-01 Jakub Jelinek <jakub@redhat.com>
51107 * lib/mktime.c (__mktime_internal): If SEC_REQUESTED != SEC,
51108 convert T2, not T. (Imported from libc.)
51110 2004-11-30 Simon Josefsson <jas@extundo.com>
51112 * modules/restrict (License): Change to LGPL.
51114 2004-11-30 Simon Josefsson <jas@extundo.com>
51116 * m4/restrict.m4: Add copyright and copying conditions.
51118 2004-11-30 Simon Josefsson <jas@extundo.com>
51120 * m4/base64.m4: New file.
51122 2004-11-30 Simon Josefsson <jas@extundo.com>
51124 * MODULES.html.sh (Extra functions based on ANSI C 89): Add
51127 * tests/test-base64.c: New file.
51129 * modules/base64: New file.
51131 2004-11-30 Paul Eggert <eggert@cs.ucla.edu>
51133 * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX):
51134 Define HAVE_PARTLY_WORKING_GETCWD if getcwd is partly working.
51136 * m4/readutmp.m4 (gl_READUTMP): Don't check for sys/param.h.
51138 2004-11-30 Paul Eggert <eggert@cs.ucla.edu>
51140 * lib/getcwd.c (is_ENAMETOOLONG): New macro.
51141 (__getcwd.c): Don't restore errno; glibc doesn't.
51142 [HAVE_PARTLY_WORKING_GETCWD && !defined AT_FDCWD]: Try system getcwd
51143 first, falling back to our code only if its results look suspicious.
51144 Ensure that the resulting buffer is only as large as necessary.
51146 * lib/readutmp.c: Include readutmp.h first.
51147 Include <errno.h>, since readutmp.h no longer does that.
51148 * lib/readutmp.h: Don't include <errno.h>,
51149 <sys/param.h>, <time.h>; not needed to establish interface.
51150 (errno): Remove decl.
51151 (HAVE_STRUCT_XTMP_UT_TYPE): Remove; no longer needed.
51152 (UT_TYPE_EQ, UT_TYPE_NOT_DEFINED, UT_TYPE_BOOT_TIME,
51153 UT_TYPE_USER_PROCESS, IS_USER_PROCESS): New macros.
51155 2004-11-28 Simon Josefsson <jas@extundo.com>
51157 * lib/base64.h, base64.c: New file.
51159 2004-11-27 Paul Eggert <eggert@cs.ucla.edu>
51161 * lib/getcwd.h: New file, which I forgot to check in on 2004-11-25.
51163 2004-11-26 Paul Eggert <eggert@cs.ucla.edu>
51165 * modules/getcwd (Files): Add lib/getcwd.h, m4/getcwd.m4.
51166 (Depends-on): Remove pathmax, same. Add mempcpy.
51167 (configure.ac): GL_FUNC_GETCWD_PATH_MAX -> gl_FUNC_GETCWD.
51168 (Makefile.am): Append getcwd.h to lib_SOURCES.
51169 (Include): Add getcwd.h.
51170 (Maintainer): Change from Jim Meyering to "all, glibc",
51171 since getdate now uses intended-for-glibc code.
51172 * modules/xgetcwd (Files): Remove m4/getcwd.m4.
51173 (Depends-on): Depend on getcwd. Do not depend on pathmax.
51175 2004-11-25 Paul Eggert <eggert@cs.ucla.edu>
51177 Fix problems reported by Scott S. Tinsley for HP-UX 11.11 using
51178 HP's ANSI C compiler.
51179 * lib/fsusage.c (statvfs) [HAVE_SYS_STATVFS_H]: Remove decl.
51180 Declaring int functions causes warnings on some modern systems and
51181 shouldn't be needed to compile on ancient ones.
51182 * lib/same.c (MIN) [defined MIN]: Don't define, since it's already
51185 * lib/getcwd.c: Replace by a copy of glibc/sysdeps/posix/getcwd.c, but
51186 with the following changes.
51187 (__set_errno): Parenthesize properly.
51188 Include <stdbool.h>.
51189 (MIN, MAX, MATCHING_INO): New macros.
51190 (__getcwd): Define with prototype, not K&R form.
51191 Use heuristics to allocate default buffer on stack if possible.
51192 If AT_FDCWD is defined, use openat and fstatat to avoid O(N**2)
51193 behavior, and to avoid the PATH_MAX limit when computing
51195 Use MATCHING_INO to compare inode number to file.
51196 Check for arithmetic overflow in size calculations.
51197 Fix bug in reallocation of dot array that caused getcwd to fail
51198 on directories nested deeper than 75.
51199 Be more careful about saving errno on error.
51200 Do not use realloc; use only free+malloc, as this is a bit
51201 more flexible and avoids a needless copy operation.
51202 Do not inspect st_dev and st_ino for symbolic links; POSIX
51203 doesn't specify the latter.
51204 Check for closedir errors.
51205 Avoid needless casts.
51206 Use "#ifdef weak_alias" around weak_alias, to be like other
51208 The following changes to getcwd.c have effect only when used in
51209 gnulib; they have no effect inside glibc proper.
51210 (#pragma alloca) [defined _AIX && !defined __GNUC__]: Remove,
51211 as alloca isn't used.
51212 (alloca, __alloca): Likewise.
51213 [!_LIBC]: Include "getcwd.h", "mempcpy.h".
51214 Include <stddef.h>, <stdlib.h>, <string.h>, <limits.h>
51215 unconditionally, as gnulib assumes C89 or better.
51216 Do not include <sys/param.h>.
51217 (errno) [!defined __GNU_LIBRARY__ && !defined STDC_HEADERS]: Remove
51218 no-longer-necessary 'extern int errno' decl; gnulib assumes C89 or
51220 (NULL) [!defined NULL]: Remove; we assume C89 or better.
51221 Include <dirent.h> in a way that is compatible with modern Autoconf.
51222 (_D_ALLOC_NAMELEN, _D_EXACT_NAMLEN):
51223 New macros, if not already defined.
51224 Include <unistd.h> if _LIBC, not if __GNU_LIBRARY__.
51225 Use "_LIBC", not "defined _LIBC", for consistency.
51226 (HAVE_MEMPCPY): Remove; no longer needed now that gnulib has
51228 (__lstat, __closedir, __opendir, __readdir) [!_LIBC]: New macros.
51229 (GETCWD_RETURN_TYPE): Remove. All uses replaced by char *.
51230 * lib/xgetcwd.c: David MacKenzie's old code was removed, so give
51231 credit only to Jim Meyering and adjust the copyright dates.
51232 Do not include <limits.h>, <stdio.h>, <sys/types.h>,
51233 <stdlib.h>, <unistd.h>, "pathmax.h".
51234 Instead, include "xgetcwd.h" (first) and "getcwd.h".
51235 (INITIAL_BUFFER_SIZE): Remove.
51236 (xgetcwd): Rely on getcwd, since we now depend on a reliable one.
51238 2004-11-25 Paul Eggert <eggert@cs.ucla.edu>
51240 * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Renamed from
51241 GL_FUNC_GETCWD_PATH_MAX for consistency. All uses changed.
51242 Use the _ONCE methods, for efficiency.
51243 Check for fcntl.h. In test program, include <errno.h>
51244 and <fcntl.h> if available. Remove old K&R cruft from
51245 test program. Check for common errors in GNU/Linux,
51246 OpenBSD, and Solaris. Just set gl_cv_func_getcwd_path_max;
51247 don't do AC_LIBOBJ, as that's getcwd.m4's job.
51248 * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Renamed from
51249 AC_FUNC_GETCWD_NULL. All used changed. Change cache variable
51251 (gl_FUNC_GETCWD, gl_PREREQ_GETCWD): New macros. Revamp to
51252 accommodate new getcwd.c.
51253 * m4/jm-macros.m4 (gl_MACROS): Don't require GL_FUNC_GETCWD_PATH_MAX.
51254 * m4/prereq.m4 (gl_PREREQ): Add gl_FUNC_MEMPCPY.
51255 * m4/xgetcwd.m4 (gl_XGETCWD): Replace with gl_FUNC_GETCWD, since
51256 that's all we need now.
51258 2004-11-23 Sergey Poznyakoff <gray@Mirddin.farlep.net>
51260 * m4/argp.m4 (gl_ARGP): Require gl_GETOPT_SUBSTITUTE unconditionally:
51261 argp-parse.c depends on getopt internals, that means we should
51262 always use our getopt, to be on the safe side.
51263 * m4/getopt.m4 (gl_GETOPT): Check if GETOPT_H is already set, in
51264 order not to spoil the result of an eventual previous invocation
51265 of gl_GETOPT_SUBSTITUTE.
51267 2004-11-23 Sergey Poznyakoff <gray@Mirddin.farlep.net>
51269 * lib/getopt_.h: Re-addition of __getopt_argv_const caused
51270 redefinition warnings. To avoid them, include the defines
51271 in `#if !defined __need_getopt ... #endif'. The only place
51272 where __getopt_argv_const is used is in definitions
51273 of getopt_long and getopt_long_only below, which are as well
51274 protected by `#ifndef __need_getopt'.
51275 [defined __GETOPT_PREFIX && !defined __need_getopt]: Undef
51276 __need_getopt after including <stdio.h> and <unistd.h> These
51277 headers might have defined it.
51279 2004-11-23 Paul Eggert <eggert@cs.ucla.edu>
51281 * m4/utimens.m4 (gl_UTIMENS): Check for futimes function.
51283 2004-11-23 Paul Eggert <eggert@cs.ucla.edu>
51285 * lib/utimens.c (__attribute__, ATTRIBUTE_UNUSED): New macros.
51286 (futimens): New function, which uses futimes if available.
51287 (futimens, utimens): Support timespec==NULL, with same semantics
51288 as utime and utimens.
51289 * lib/utimens.h (futimens): New decl.
51291 2004-11-23 Jim Meyering <jim@meyering.net>
51293 * lib/getopt_.h: Remove trailing blanks.
51295 2004-11-23 Jim Meyering <jim@meyering.net>
51297 * lib/__fpending.c: Add comment.
51299 2004-11-22 Paul Eggert <eggert@cs.ucla.edu>
51301 * modules/canonicalize (Depends-on): Add xreadlink.
51302 Problem reported by James Youngman.
51304 2004-11-20 Paul Eggert <eggert@cs.ucla.edu>
51306 * lib/getopt_.h (__GETOPT_CONCAT, __GETOPT_XCONCAT, __GETOPT_ID):
51308 (getopt, getopt_long, getopt_long_only, optarg, opterr, optind,
51309 optopt): Use them instead of invoking ## directly; otherwise, the
51310 symbols will be __GETOPT_PREFIXgetopt rather than rpl_getopt.
51312 2004-11-19 Bruno Haible <bruno@clisp.org>
51314 * lib/strtok_r.c: Move comments from here...
51315 * lib/strtok_r.h: ... to here.
51317 2004-11-17 Paul Eggert <eggert@cs.ucla.edu>
51319 * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Check for buggy calloc
51320 implementations that mishandle size_t overflow.
51322 2004-11-17 Paul Eggert <eggert@cs.ucla.edu>
51324 * lib/realloc.c (rpl_realloc): Call 'free' if n==0, since realloc
51325 might fail. Problem reported by Yoann Vandoorselaere.
51326 * lib/calloc.c (rpl_calloc): Defend against buggy calloc
51327 implementations that mishandle size_t overflow.
51329 2004-11-16 Paul Eggert <eggert@cs.ucla.edu>
51331 * modules/canon-host (Depends-on): Add strdup.
51333 2004-11-16 Paul Eggert <eggert@cs.ucla.edu>
51335 * m4/canon-host.m4 (gl_CANON_HOST): Check for getaddrinfo.
51337 2004-11-16 Paul Eggert <eggert@cs.ucla.edu>
51339 * lib/canon-host.c: Include "strdup.h".
51340 (canon_host): Use getaddrinfo if available, so that IPv6 works.
51341 Use strdup instead of malloc/strcpy to duplicate strings.
51343 * lib/human.h (LONGEST_HUMAN_READABLE): Add 1 for space before unit.
51344 (human_space_before_unit): New constant.
51345 * lib/human.c (human_readable): Support it.
51347 * lib/xgetcwd.c: Include <limits.h>, for PATH_MAX.
51348 (xgetcwd): Set errno correctly when failing.
51349 Work around Solaris 9 bug: getcwd sets errno==ERANGE even though
51350 the failure is actually due to a PATH_MAX problem.
51352 Further getopt changes to make it more likely that glibc will
51353 buy the changes back.
51354 * lib/getopt.c (POSIXLY_CORRECT): New constant.
51355 (getopt): Use it, so to preserve glibc semantic
51356 * lib/getopt1.c (getopt_long, getopt_long_only): Arg is char * const *
51357 when compiling for libc.
51358 * lib/getopt_.h (__getopt_argv_const): Bring it back.
51359 (getopt_long, getopt_long_only): Use it.
51361 * lib/getopt.c (_getopt_initialize, _getopt_internal_r,
51362 _getopt_internal): New arg POSIXLY_CORRECT. All callers changed.
51363 (getopt): Argv is now char * const *, as per standard.
51364 (_getopt_internal_r, _getopt_internal): Argv is now char **,
51365 not char *__getopt_argv_const *.
51366 * lib/getopt1.c (getopt_long, _getopt_long_r, getopt_long_only,
51367 _getopt_long_only_r): Likewise.
51368 * lib/getopt_.h (getopt, getopt_long, geopt_long_only): Likewise.
51369 * lib/getopt_int.h (_getopt_internal, _getopt_internal_r,
51370 _getopt_long_r, _getopt_long_only_r): Likewise.
51371 * lib/getopt_.h (__getopt_argv_const): Remove.
51372 (getopt): Argv is now char * const *, as per standard.
51374 * lib/getdate.y (tORDINAL): New token.
51375 (day, relunit): Allow it for relative times.
51376 (relative_time_table): Use tORDINAL for ordinals.
51378 2004-11-16 Paul Eggert <eggert@cs.ucla.edu>
51380 * doc/getdate.texi (General date syntax): "next" is 1, not 2.
51381 Document that "second" isn't allowed as an ordinal number.
51383 2004-11-16 Jim Meyering <jim@meyering.net>
51385 * modules/closeout (Depends-on): Add fpending.
51387 2004-11-15 Jim Meyering <jim@meyering.net>
51389 * lib/closeout.c: Include "__fpending.h" once again.
51390 Include <stdbool.h>.
51391 (close_stdout): Don't fail just because stdout was closed initially,
51392 since some programs don't write to stdout in the normal course of
51393 operation (other than --version and --help), and we don't want this
51394 function to make e.g. `touch file >&-' fail.
51395 But do fail if it was closed and someone has tried to write to it.
51396 E.g., `printf foo >&-' must fail.
51398 2004-11-13 Jim Meyering <jim@meyering.net>
51400 * m4/jm-macros.m4: Do require gl_FUNC_FPENDING.
51402 2004-11-12 Simon Josefsson <jas@extundo.com>
51404 * config/srclist.txt: Add strtok_r.c, glibc bought our changes, but a
51405 small doc fix is still pending.
51407 2004-11-11 Simon Josefsson <jas@extundo.com>
51409 * modules/strtok_r: New file.
51411 * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
51414 2004-11-11 Simon Josefsson <jas@extundo.com>
51416 * m4/strtok_r.m4: New file.
51418 * m4/getopt.m4: Replace opterr.
51420 2004-11-11 Simon Josefsson <jas@extundo.com>
51422 * lib/strtok_r.h, strtok_r.c: New file.
51424 2004-11-11 Paul Eggert <eggert@cs.ucla.edu>
51426 * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): Define __GETOPT_PREFIX instead
51427 of replacing opterr, getopt, etc. This should handle the
51428 powerpc-apple-darwin5.5 problem recently noted by Simon Josefsson.
51430 2004-11-11 Paul Eggert <eggert@cs.ucla.edu>
51432 * lib/getopt_.h (__getopt_argv_const): New macro, to be used so that
51433 we can stop lying to compilers about the constness of argv when we
51434 are compiled outside glibc.
51435 (getopt, getopt_long, getopt_long_only): Use it.
51436 * lib/getopt.c (_getopt_initialize, _getopt_internal_r,
51437 _getopt_internal, getopt): Likewise.
51438 * lib/getopt1.c (getopt_long, _getopt_long_r, getopt_long_only,
51439 _getopt_long_only_r): Likewise.
51440 * lib/getopt_int.h (_getopt_internal, _getopt_internal_r,
51441 _getopt_long_r, _getopt_long_only_r): Likewise.
51443 * lib/getopt_.h [defined __GETOPT_PREFIX && !defined __need_getopt]:
51444 Include <stdlib.h> and <stdio.h>, and <unistd.h> if available.
51445 Then rename getopt to __GETOPT_PREFIX##getopt, and so forth for
51446 the other external symbols.
51447 (getopt) [!defined __GNU_LIBRARY]: Use prototype, not old-style
51448 declaration, since the above renaming now works around collisions.
51450 2004-11-11 Jim Meyering <jim@meyering.net>
51452 * lib/linebreak.c: Remove trailing blanks.
51453 * lib/alloca_.h: Likewise.
51454 * lib/acosl.c: Likewise.
51455 * lib/euidaccess.c: Likewise.
51456 * lib/allocsa.h: Likewise.
51458 2004-11-10 Simon Josefsson <jas@extundo.com>
51460 * m4/getaddrinfo.m4: New file.
51462 2004-11-10 Simon Josefsson <jas@extundo.com>
51464 * lib/getaddrinfo.h, lib/getaddrinfo.c: New files.
51466 2004-11-10 Simon Josefsson <jas@extundo.com>
51468 * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
51471 * modules/getaddrinfo: New file.
51473 2004-11-10 Paul Eggert <eggert@cs.ucla.edu>
51475 * m4/prereq.m4 (gl_PREREQ): Require gt_FUNC_SETENV.
51477 2004-11-10 Paul Eggert <eggert@cs.ucla.edu>
51479 * lib/mktime.c (SHR): New macro, which is a portable
51480 substitute for >> that should work even on Crays.
51481 (TIME_T_MIDPOINT, ydhms_diff, __mktime_internal): Use it.
51482 Problem reported by Mark D. Baushke in
51483 <http://lists.gnu.org/archive/html/bug-gnulib/2004-11/msg00071.html>.
51484 * lib/getdate.y (SHR): Likewise.
51486 * lib/strftime.c (SHR): Likewise.
51488 * lib/quotearg.c (struct quoting_options): Use unsigned int for
51489 quote_these_too, so that right shifts are well defined. All uses
51492 2004-11-10 Jim Meyering <jim@meyering.net>
51494 Ensure that no close failure goes unreported.
51495 * lib/closeout.c (close_stdout): Always close stdout. I.e., don't
51496 return early when it seems there's nothing to flush.
51497 Don't include __fpending.h.
51499 2004-11-10 Jim Meyering <jim@meyering.net>
51501 * modules/closeout (Depends-on): Remove fpending.
51503 2004-11-10 Jim Meyering <jim@meyering.net>
51505 * m4/jm-macros.m4 (gl_MACROS): Don't require gl_FUNC_FPENDING.
51507 2004-11-09 Paul Eggert <eggert@cs.ucla.edu>
51509 * m4/strftime.m4 (_gl_STRFTIME_PREREQS): Remove. Move its body to
51511 (gl_FUNC_STRFTIME): Use AC_CHECK_FUNCS_ONCE and AC_CHECK_HEADERS_ONCE
51512 and AC_REQUIRE when possible, to avoid duplicate checks.
51513 Check for <wchar.h>.
51515 2004-11-09 Paul Eggert <eggert@cs.ucla.edu>
51517 * lib/strftime.c (DO_MULTIBYTE): Check for wchar.h, too.
51519 2004-11-09 Bruno Haible <bruno@clisp.org>
51521 * m4/sockpfaf.m4: New file.
51523 2004-11-05 Bruno Haible <bruno@clisp.org>
51525 * lib/readlink.c: Include stddef.h, needed for size_t on Woe32.
51526 Reported by Mark D. Baushke <mdb@cvshome.org>.
51528 2004-11-04 Bruno Haible <bruno@clisp.org>
51530 2004-09-11 Bruno Haible <bruno@clisp.org>
51531 * allocsa.valgrind: New file.
51532 2004-02-06 Bruno Haible <bruno@clisp.org>
51533 * allocsa.h (sa_alignof): Define differently with HP-UX cc, to
51534 avoid a bug of this cc on HP-UX 10.20 dealing with enums.
51535 Reported by Christopher Seip <chris.seip@hp.com>.
51537 2004-11-04 Bruno Haible <bruno@clisp.org>
51539 * modules/allocsa (Files): Add lib/allocsa.valgrind.
51540 (Makefile.am): Distribute it.
51542 2004-11-03 Paul Eggert <eggert@cs.ucla.edu>
51544 * lib/xreadlink.c (xreadlink): AIX and HP-UX readlink return -1
51545 with errno == ERANGE if the buffer is too small.
51546 Problem reported by Mark D. Baushke.
51548 2004-11-03 Albert Chin <china@thewrittenword.com>
51549 Paul Eggert <eggert@cs.ucla.edu>
51551 * m4/uint32_t.m4 (gl_AC_TYPE_UINT32_T): When determining uint32_t
51552 equivalent, substitute $ac_type for equivalent type rather than
51553 blindly using uint32_t *always* which won't work if uint32_t is not
51554 available. Define _UINT32_T to work around typedef of uint32_t if
51555 <sys/sched.h>, <pthread.h>, or <semaphore.h> used on Solaris
51558 2004-11-02 Paul Eggert <eggert@cs.ucla.edu>
51560 * m4/jm-macros.m4: Sync from coreutils.
51561 (gl_MACROS): Check for mbrlen, for pathchk.
51562 (gl_CHECK_ALL_TYPES): Require AC_TYPE_MBSTATE_T, for pathchk.
51564 2004-11-02 Paul Eggert <eggert@cs.ucla.edu>
51566 * lib/xreadlink.c (MAXSIZE): New macro.
51567 (xreadlink): Use it instead of SSIZE_MAX. Ensure initial buffer
51568 size does not exceed MAXSIZE. Avoid cast.
51569 As suggested by Mark D. Baushke in
51570 <http://lists.gnu.org/archive/html/bug-gnulib/2004-11/msg00009.html>,
51571 if readlink fails with buffer size just under MAXSIZE, try again
51574 2004-11-02 Paul Eggert <eggert@cs.ucla.edu>
51576 * config/srclist.txt: Add mktime.c; glibc bought all our changes.
51578 2004-11-02 Derek R. Price <derek@ximbiot.com>
51579 and Paul Eggert <eggert@cs.ucla.edu>
51581 * lib/getdate.y [!TEST]: Include <stdio.h>, since we use sprintf now.
51582 (get_date): Overparenthesize to avoid GCC warning.
51584 2004-11-02 Bruno Haible <bruno@clisp.org>
51586 * m4/setenv.m4 (gt_FUNC_SETENV): Define VOID_UNSETENV if unsetenv()
51589 2004-11-02 Bruno Haible <bruno@clisp.org>
51591 * lib/setenv.h (unsetenv): Define as a macro if the system's unsetenv()
51592 function returns void.
51594 2004-11-01 Paul Eggert <eggert@cs.ucla.edu>
51596 * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for declarations of
51597 fflush_unlocked, flockfile, funlockfile, funlockfile,
51598 fputs_unlocked, putc_unlocked.
51600 2004-11-01 Paul Eggert <eggert@cs.ucla.edu>
51602 * lib/getpass.c (fflush_unlocked, flockfile, funlockfile)
51603 (funlockfile, fputs_unlocked, putc_unlocked): Don't define if
51606 2004-10-29 Paul Eggert <eggert@cs.ucla.edu>
51608 * modules/getdate (Files): Add doc/getdate.texi.
51609 (Depends-on): Add setenv, xalloc.
51611 2004-10-29 Paul Eggert <eggert@cs.ucla.edu>
51613 * lib/getdate.y: Add support for TZ="foo" within a date string.
51614 Fix some bugs near time_t boundaries. Reject dates with
51615 out-of-range components, e.g., "Sept 31".
51616 Include <stdlib.h>, "setenv.h", "xalloc.h".
51617 (ISDIGIT_LOCALE): Remove; unused.
51618 Note that the TZ and time functions used here are not reentrant.
51619 (mktime_ok, get_tz): New functions.
51620 (TZBUFSIZE): New constant.
51621 (get_date): Parse leading TZ="foo". Reject out-of-range components;.
51622 This requires that we sometimes generate our own TZ="XXX..." setting.
51624 2004-10-29 Paul Eggert <eggert@cs.ucla.edu>
51626 * doc/getdate.texi: New file, from coreutils with modifications for
51627 the new TZ parsing.
51629 2004-10-27 Derek R. Price <derek@ximbiot.com>
51631 * lib/mktime.c (not_equal_tm): Remove redundant check.
51633 2004-10-24 Paul Eggert <eggert@cs.ucla.edu>
51635 * modules/regex (lib_SOURCES): Add regex.c.
51636 Reported by James Youngman in
51637 <http://lists.gnu.org/archive/html/bug-gnulib/2004-10/msg00199.html>.
51639 2004-10-24 Paul Eggert <eggert@cs.ucla.edu>
51641 * lib/getdate.y: Use Bison 1.875 features, and some minor
51642 code cleanups. This change does not affect semantics.
51643 Don't include <stdlib.h>; no longer needed.
51644 Don't include unlocked-io.h; only the "#if TEST" code uses
51645 stdio, and performance isn't crucial there.
51646 (PC, YYLEX_PARAM, YYPARSE_PARAM): Remove; replaced by
51647 Bison 1.875 features as described below.
51648 All uses of "PC." replaced by "pc->".
51649 (YYSTYPE): Add a forward declaration.
51650 (yylex, yyerror): Use full prototypes in forward decls.
51651 Use "%pure-parser" rather than obsolescent "%pure_parser".
51652 Use %parse-param and %lex-param instead of obsolescent
51653 YYPARSE_PARAM and YYLEX_PARAM.
51654 (meridian_table, month_and_day_table, time_units_table,
51655 relative_time_table, time_zone_table, military_table,
51656 lookup_zone, lookup_word, get_date):
51657 Use NULL instead of 0 where appropriate.
51658 (to_hour): Avoid abort (), to avoid a dependency on
51660 (yyerror, yylex): Now accepts parser_control * arg.
51661 (main) [TEST]: Use '\0' rather than 0 for char.
51663 2004-10-22 Paul Eggert <eggert@cs.ucla.edu>
51665 * m4/getpagesize.m4 (gl_GETPAGESIZE): Check for <sys/param.h>.
51667 2004-10-22 Paul Eggert <eggert@cs.ucla.edu>
51669 * lib/getpagesize.c (getpagesize): Don't assume <sys/param.h> exists.
51670 It's now the caller's responsibility to handle the case where
51671 !HAVE_GETPAGESIZE && !defined getpagesize.
51673 * lib/mktime.c (leapyear): Arg is long int, not int.
51675 2004-10-18 Paul Eggert <eggert@cs.ucla.edu>
51677 * lib/argp-fs-xinl.c, argp-xinl.c: Update from glibc.
51679 2004-10-17 Paul Eggert <eggert@cs.ucla.edu>
51681 * gnulib-tool (func_emit_lib_Makefile_am): Fix typo: a $ was
51682 missing. Problem reported by James Youngman.
51684 2004-10-16 Simon Josefsson <jas@extundo.com>
51686 * gnulib-tool: Fix comments. Fix parse problem.
51687 (func_emit_lib_Makefile_am): Don't hard code a in libgl_a_SOURCES.
51689 2004-10-15 Paul Eggert <eggert@cs.ucla.edu>
51691 * m4/getopt.m4 (gl_GETOPT): Detect and reject the incompatible BSD
51692 implementation of getopt_long. Problem reported by Alexander Taler in:
51693 http://lists.gnu.org/archive/html/bug-gnulib/2004-10/msg00103.html
51695 2004-10-15 Bruno Haible <bruno@clisp.org>
51697 * gnulib-tool: Untabify. Initialize supplied_libname.
51698 (func_usage): More homogenous output.
51699 (func_modules_transitive_closure, func_modules_to_filelist,
51700 func_emit_lib_Makefile_am): New functions.
51701 (func_import): New function, extracted from big case statement. Use
51702 func_get_license, func_modules_transitive_closure,
51703 func_modules_to_filelist, func_emit_lib_Makefile_am. Initialize
51704 opt_lgpl. Don't use test -a, as it's not portable.
51705 (func_create_testdir): Use func_modules_transitive_closure,
51706 func_modules_to_filelist, func_emit_lib_Makefile_am.
51708 2004-10-15 Bruno Haible <bruno@clisp.org>
51710 * gnulib-tool (func_import): Let gl_INIT define LTALLOCA when needed.
51712 2004-10-15 Bruno Haible <bruno@clisp.org>
51714 * gnulib-tool (func_emit_lib_Makefile_am): Add markers to separate
51715 the portions belonging to each module.
51716 Suggested by Derek Robert Price <derek@ximbiot.com>.
51718 2004-10-12 Simon Josefsson <jas@extundo.com>
51720 * lib/getpass.c (fflush_unlocked, flockfile, funlockfile)
51721 (fputs_unlocked, putc_unlocked) [!_LIBCS && !USE_UNLOCKED_IO]: Map
51724 2004-10-11 Yoann Vandoorselaere <yoann@prelude-ids.org>
51726 * modules/vsnprintf: New file.
51728 2004-10-11 Yoann Vandoorselaere <yoann@prelude-ids.org>
51730 * m4/vsnprintf.m4: New file.
51732 2004-10-11 Yoann Vandoorselaere <yoann@prelude-ids.org>
51734 * lib/vsnprintf.h: New file.
51735 * lib/vsnprintf.c: New file.
51737 2004-10-11 Bruno Haible <bruno@clisp.org>
51739 * MODULES.html.sh (Support for systems lacking ISO C 99): Add
51742 2004-10-10 Paul Eggert <eggert@cs.ucla.edu>
51744 * config/srclistvars.sh: Add GNUSTANDARDS (for eggert only).
51746 2004-10-07 Bruno Haible <bruno@clisp.org>
51748 * lib/snprintf.c (snprintf): Avoid a memory allocation if the result
51749 fits into the provided buffer.
51751 2004-10-06 Paul Eggert <eggert@cs.ucla.edu>
51753 * lib/diacrit.c, diacrit.h: Add GPL notice.
51755 * lib/atanl.c, logl.c: Add GPL notice, to match glibc's added LGPL
51757 * lib/atanl.c (atanl): Keep the code as similar to glibc as possible.
51758 * lib/logl.c (logl): Keep the code as similar to glibc as possible.
51759 This avoids a potential constant-folding bug.
51761 2004-10-05 Bruno Haible <bruno@clisp.org>
51763 * m4/strsep.m4 (gl_FUNC_STRSEP): Require AC_GNU_SOURCE. Don't check
51764 for the declaration of strsep.
51766 2004-10-05 Bruno Haible <bruno@clisp.org>
51768 * lib/strsep.h: Don't declare strsep() if HAVE_STRSEP.
51770 2004-10-04 Simon Josefsson <jas@extundo.com>
51772 * modules/memmem: New file.
51773 * tests/test-memmem.c: New file.
51774 * MODULES.html.sh (Extra functions based on ANSI C 89): Add memmem.
51776 2004-10-04 Simon Josefsson <jas@extundo.com>
51778 * m4/memmem.m4: New file.
51780 2004-10-04 Simon Josefsson <jas@extundo.com>
51782 * lib/memmem.h: New file.
51783 * lib/memmem.c: New file, taken from glibc.
51785 2004-10-04 Simon Josefsson <jas@extundo.com>
51787 * lib/error.c, md5.c, regex.c: Use '#if USE_UNLOCKED_IO' instead of
51788 '#ifdef USE_UNLOCKED_IO'.
51790 2004-10-04 Simon Josefsson <jas@extundo.com>
51792 * config/srclist.txt: Add memmem from glibc.
51794 2004-10-04 Paul Eggert <eggert@cs.ucla.edu>
51796 * modules/xalloc (Files, Makefile.am): Remove xstrdup.c.
51798 * modules/argmatch, modules/argp, modules/closeout, modules/error,
51799 modules/exclude, modules/getdate, modules/getline,
51800 modules/getndelim2, modules/getpass, modules/getpass-gnu,
51801 modules/getusershell, modules/linebuffer, modules/md5,
51802 modules/mountlist, modules/posixtm, modules/readtokens,
51803 modules/readutmp, modules/regex, modules/sha1,
51804 modules/version-etc, modules/yesno:
51805 Remove dependency on unlocked-io.
51807 2004-10-04 Paul Eggert <eggert@cs.ucla.edu>
51809 * m4/xalloc.m4 (gl_PREREQ_XSTRDUP): Remove. All uses removed.
51811 * m4/unlocked-io.m4: Add copyright notice.
51812 (gl_FUNC_GLIBC_UNLOCKED_IO): Define USE_UNLOCKED_IO.
51814 2004-10-04 Paul Eggert <eggert@cs.ucla.edu>
51816 * lib/xalloc.h (xmemdup): Renamed from xclone. All uses changed.
51817 * lib/xmalloc.c (xmemdup): Likewise.
51818 * lib/xalloc.h (CCLONE, CLONE, NEW, XCALLOC, XMALLOC, XREALLOC,
51819 XFREE): Remove these long-obsolescent macros.
51820 * lib/xmalloc.c (xstrdup): Implementation moved here from xstrdup.c
51821 * lib/xstrdup.c: Remove.
51823 * lib/regex.c (re_comp): Cast gettext return value to char *,
51824 Problem reported by Martin Neitzel via Mark D. Baushke.
51826 2004-10-04 Paul Eggert <eggert@cs.ucla.edu>
51828 * lib/argmatch.c, closeout.c, error.c, exclude.c, getdate.y,
51829 getndelim2.c, getpass.c, getusershell.c, linebuffer.c,
51830 md5.c, mountlist.c, posixtm.c, readtokens.c, readutmp.c,
51831 regex.c, sha1.c, version-etc.c, yesno.c:
51832 Include "unlocked-io.h" only if USE_UNLOCKED_IO.
51833 * lib/unlocked-io.h: Don't worry about USE_UNLOCKED_IO; that's now
51834 the includer's responsibility.
51836 Sync from coreutils.
51838 * lib/modechange.c (mode_compile): Don't decrement a pointer that
51839 points to the start of a string, as the C Standard says the
51840 resulting behavior is undefined.
51842 * lib/backupfile.h (enum backuptype): Rename none -> no_backups,
51843 simple -> simple_backups, numbered_existing ->
51844 numbered_existing_backups, numbered -> numbered_backups
51845 to avoid shadowing problems. All uses changed.
51846 * lib/argmatch.c (enum backuptype) [defined TEST]: Likewise.
51847 * lib/backupfile.c (check_extension, numbered_backup):
51848 Rename locals to avoid shadowing 'basename'.
51849 * lib/backupfile.h (VALID_BACKUP_TYPE): Don't evaluate arg more than
51852 * lib/.cppi-disable: Add getopt_.h, getopt_int.h.
51853 * lib/.cvsignore: Add getopt.h.
51855 2004-10-04 Bruno Haible <bruno@clisp.org>
51857 * modules/README: New file.
51858 * gnulib-tool (func_all_modules, func_verify_module): modules/README is
51861 2004-10-02 Jim Meyering <jim@meyering.net>
51863 * lib/dirfd.h, getpagesize.h: Add copyright notice.
51865 2004-10-01 Yoann Vandoorselaere <yoann@prelude-ids.org>
51867 * modules/strsep: New file.
51869 2004-10-01 Yoann Vandoorselaere <yoann@prelude-ids.org>
51871 * m4/strsep.m4: New file.
51873 2004-10-01 Yoann Vandoorselaere <yoann@prelude-ids.org>
51875 * lib/strsep.h: New file.
51876 * lib/strsep.c: New file.
51878 2004-10-01 Simon Josefsson <jas@extundo.com>
51880 * lib/snprintf.c (snprintf): Handle size==0.
51882 2004-10-01 Simon Josefsson <jas@extundo.com>
51883 Bruno Haible <bruno@clisp.org>
51885 * lib/snprintf.c: Include <stdarg.h>, <stdlib.h>, <string.h>.
51886 (snprintf): Declare 'args'.
51888 2004-10-01 Paul Eggert <eggert@cs.ucla.edu>
51890 * lib/snprintf.c: Remove comments as to why each header is needed.
51892 2004-10-01 Bruno Haible <bruno@clisp.org>
51894 * MODULES.html.sh: Add strsep.
51896 2004-09-30 Simon Josefsson <jas@extundo.com>
51898 * modules/snprintf: New file.
51900 2004-09-30 Simon Josefsson <jas@extundo.com>
51902 * m4/snprintf.m4: New file.
51904 2004-09-30 Simon Josefsson <jas@extundo.com>
51906 * lib/snprintf.h, lib/snprintf.c: New files.
51908 2004-09-30 Sergey Poznyakoff <gray@Mirddin.farlep.net>
51910 * lib/argp-help.c (canon_doc_option): Fixed coredump if *name==NULL
51911 (hol_entry_help): Never translate an empty string.
51912 Do not translate option tag (opt->name) if OPTION_NO_TRANS is set
51913 * lib/argp.h (OPTION_NO_TRANS): New option.
51915 2004-09-30 Paul Eggert <eggert@cs.ucla.edu>
51917 * modules/argp (Maintainer): Replace Simon Josefsson
51918 by Sergey Poznyakoff.
51920 2004-09-30 Paul Eggert <eggert@cs.ucla.edu>
51922 * config/srclist.txt: Comment-out argp/argp.h, until we get the argp
51923 changes merged back into glibc.
51925 2004-09-30 Paul Eggert <eggert@cs.ucla.edu>
51927 * MODULES.html.sh (Support for systems lacking ISO C 99): Add snprintf.
51929 2004-09-29 Oskar Liljeblad <oskar@osk.mine.nu>
51931 * lib/xvasprintf.c: Include xalloc.h.
51932 (xvasprintf): Use xalloc_die, not xmalloc_die.
51934 2004-09-29 Bruno Haible <bruno@clisp.org>
51936 * modules/alloca-opt: New file, derived from modules/alloca.
51937 * modules/allocsa: Depend on alloca-opt instead of alloca.
51938 * modules/setenv: Likewise.
51939 * modules/vasnprintf: Likewise.
51940 * MODULES.html.sh: Add alloca-opt.
51942 2004-09-28 Simon Josefsson <jas@extundo.com>
51944 * gnulib-tool: New parameter --lgpl, to asseert that modules are
51945 LGPL, and to replace license template from GPL to LGPL.
51947 2004-09-28 Paul Eggert <eggert@cs.ucla.edu>
51949 * modules/dummy: Change license to LGPL.
51951 2004-09-28 Paul Eggert <eggert@cs.ucla.edu>
51953 * lib/dummy.c: Change copyright notice to FSF, and license to GPL.
51955 2004-09-24 Simon Josefsson <jas@extundo.com>
51957 * modules/minmax (License): Change from GPL to LGPL.
51959 2004-09-23 Simon Josefsson <jas@extundo.com>
51961 * gnulib-tool (--import): Typo.
51963 2004-09-23 Simon Josefsson <jas@extundo.com>
51965 * gnulib-tool (--import): Make sure *.m4 end up in m4/ by default.
51967 2004-09-22 Bruno Haible <bruno@clisp.org>
51969 * modules/*: Add 'License' field.
51970 * gnulib-tool: Accept --extract-license option.
51971 (func_get_license): New function.
51973 2004-09-21 Bruno Haible <bruno@clisp.org>
51975 * modules/vasnprintf (Files): Add m4/stdint_h.m4, m4/inttypes_h.m4.
51976 Reported by Simon Josefsson.
51978 2004-09-20 Paul Eggert <eggert@cs.ucla.edu>
51980 * modules/inttostr (Files): Add m4/longlong.m4, since it uses
51981 gl_AC_TYPE_LONG_LONG.
51983 2004-09-20 Paul Eggert <eggert@cs.ucla.edu>
51985 * config/srclist.txt: Add getsubopt.c, since libc bought our changes.
51987 2004-09-18 Simon Josefsson <jas@extundo.com>
51988 and Paul Eggert <eggert@cs.ucla.edu>
51990 * gnulib-tool: Replace various ad-hoc automake/autoconf/aclocal
51991 calls with autoreconf. Define GL_LIB.
51993 2004-09-14 Karl Berry <karl@gnu.org>
51995 * config/srclist.txt: unsync setenv.c, sigh.
51997 2004-09-13 Paul Eggert <eggert@cs.ucla.edu>
51999 * lib/argp-pvh.c (argp_program_version_hook): Provide initial value.
52000 Problem reported by Bruno Haible in:
52001 http://lists.gnu.org/archive/html/bug-tar/2004-09/msg00023.html
52003 2004-09-13 Paul Eggert <eggert@cs.ucla.edu>
52005 * config/srclist.txt: Comment out argp-pvh.c.
52007 2004-09-11 Paul Eggert <eggert@cs.ucla.edu>
52009 * lib/mempcpy.h: Wrap the entire include file inside #ifndef mempcpy,
52010 in case some system header has #define'd it. Problem reported by
52011 Soeren D. Schulze in
52012 <http://lists.gnu.org/archive/html/bug-gnulib/2004-09/msg00017.html>.
52014 2004-09-09 Karl Berry <karl@gnu.org>
52016 * regex.[ch]: delete from the root. These were supposed to be
52017 synced with emacs cvs, but this has not happened for about
52018 a year, and anyway nothing else uses emacs regex.[ch].
52019 bug-gnulib mail from Jeff Bailey, 9 Sep 2004 15:49:24 -0700.
52020 lib/regex[.ch] is untouched.
52022 2004-09-09 Bruno Haible <bruno@clisp.org>
52024 * modules/vasnprintf (Files): Add m4/eoverflow.m4.
52026 2004-09-09 Bruno Haible <bruno@clisp.org>
52028 * m4/eoverflow.m4: New file, taken from GNU libiconv eilseq.m4 with
52030 * m4/vasnprintf.m4 (gl_FUNC_VASNPRINTF): Require gl_EOVERFLOW.
52032 2004-09-08 Oskar Liljeblad <oskar@osk.mine.nu>
52034 * modules/xvasprintf: New file.
52035 * MODULES.html.sh (Extra functions based on ANSI C 89): Add vasprintf.
52037 2004-09-08 Oskar Liljeblad <oskar@osk.mine.nu>
52039 * lib/xvasprintf.h: New file.
52040 * lib/xvasprintf.c: New file.
52041 * lib/xasprintf.c: New file.
52043 2004-09-08 Bruno Haible <bruno@clisp.org>
52045 * m4/stdint.m4: New file, taken from GNU clisp with modifications.
52047 2004-09-08 Bruno Haible <bruno@clisp.org>
52049 * lib/vasnprintf.c (VASNPRINTF): Signal EOVERFLOW if the resulting
52050 length is > INT_MAX.
52051 * lib/vasprintf.c (vasprintf): Don't test for length > INT_MAX any
52054 2004-09-08 Bruno Haible <bruno@clisp.org>
52056 * lib/stdint_.h: New file, taken from GNU clisp.
52058 2004-09-08 Bruno Haible <bruno@clisp.org>
52059 Oskar Liljeblad <oskar@osk.mine.nu>
52061 * modules/stdint: New file.
52062 * MODULES.html.sh (Support for systems lacking ISO C 99): Add stdint.
52064 2004-08-19 Paul Eggert <eggert@cs.ucla.edu>
52066 Import from coreutils.
52067 * lib/userspec.c: Don't use <alloca.h>, so that we don't use alloca on
52068 strings on unbounded length. alloca's performance benefits aren't
52069 that important here.
52070 (V_STRDUP): Remove.
52071 (parse_with_separator): New function, with most of the internals
52072 of the old parse_user_spec. Allow user to omit both user and group,
52073 for compatibility with FreeBSD.
52074 Clone only the user name, not the entire spec.
52075 Do not set *uid, *gid unless entirely successful.
52076 Avoid memory leak in some failing cases.
52077 Fix regression for USER.GROUP reported by Dmitry V. Levin in
52078 <http://lists.gnu.org/archive/html/bug-coreutils/2004-08/msg00102.html>
52079 (parse_user_spec): Rewrite to use parse_with_separator.
52081 2004-08-19 Paul Eggert <eggert@cs.ucla.edu>
52083 * modules/userspec: Don't depend on alloca.
52085 2004-08-19 Paul Eggert <eggert@cs.ucla.edu>
52087 * m4/userspec.m4 (gl_USERSPEC): Don't require AC_FUNC_ALLOCA.
52089 2004-08-17 Paul Eggert <eggert@cs.ucla.edu>
52091 * MODULES.html.sh: Add xalloc-die, c-strtod, c-strtold, raise,
52092 readtokens0, getcwd, fcntl-safer, canonicalize, cycle-check,
52093 utimecmp, utimens, xnanosleep. Rename sha to sha1.
52095 2004-08-16 Simon Josefsson <jas@extundo.com>
52097 * gnulib-tool: Use sed instead of autoconf --trace, inspired by
52098 libtoolize behaviour by "Gary V. Vaughan" <gary@gnu.org>.
52099 Add --dry-run for --import.
52100 Let user provided command line parameters override configure.ac
52103 2004-08-12 Simon Josefsson <jas@extundo.com>
52105 * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): New macro,
52106 as discussed with Paul Eggert in threads rooted at
52107 <http://lists.gnu.org/archive/html/bug-gnulib/2004-06/msg00039.html>
52109 <http://lists.gnu.org/archive/html/bug-gnulib/2004-07/msg00001.html>.
52110 Before, the test was empty, and relied on ELIDE_CODE in source
52112 (gl_PREREQ_GETOPT): New macro.
52113 (gl_GETOPT): Use them.
52115 2004-08-12 Simon Josefsson <jas@extundo.com>
52117 * lib/getopt.c, getopt1.c: Remove ELIDE_CODE hack.
52118 * lib/getopt_.h: Renamed from getopt.h.
52120 2004-08-12 Simon Josefsson <jas@extundo.com>
52122 * gnulib-tool: Add --source-base, --m4-base, --libtool options.
52123 Change default library name from libfoo to libgnu.
52124 Now, if you have a configure.ac that says:
52127 gl_MODULES(error getopt etcetera)
52129 you can import all you need by running:
52130 ../gnulib/gnulib-tool --import
52132 * modules/getopt (Files): Rename getopt.h to getopt_.h.
52133 (Makefile.am): Rewrite, use logic from argz.
52134 (Include): Use <getopt.h> instead of "getopt.h".
52136 2004-08-12 Paul Eggert <eggert@cs.ucla.edu>
52138 * modules/argp (Files): Add m4/unlocked-io.m4.
52139 (Depends-on): Add extensions.
52141 2004-08-12 Paul Eggert <eggert@cs.ucla.edu>
52143 * m4/argp.m4 (gl_ARGP): Do not check for argp.h or argp_parse; nobody
52144 uses HAVE_ARGP_H or HAVE_ARGP_PARSE.
52145 Require gl_FUNC_GLIBC_UNLOCKED_IO, gl_USE_SYSTEM_EXTENSIONS.
52146 Check for program_invocation_name, program_invocation_short_name,
52147 flockfile, funlockfile, features.h, _getopt_long_only_r.
52149 2004-08-12 Paul Eggert <eggert@cs.ucla.edu>
52151 * lib/argp-help.c, argp-parse.c: Use "gettext.h" instead of
52152 its complicated substitute.
52153 * lib/argp-help.c: Include <errno.h>, for program_invocation_short_name
52154 and program_invocation_name.
52155 (__argp_basename) [!_LIBC]: Remove; the only use was
52156 replaced by its body.
52157 (__argp_short_program_name): Change condition from
52158 !defined __argp_short_program_name to
52159 ! (defined _LIBC || HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME),
52160 to match argp-namefrob.h.
52161 (__argp_failure): Don't assume strerror_r returns char *.
52162 * lib/argp-parse.c (N_): Define unconditionally.
52163 (argp_default_options): Fill out initializers with 0 to avoid
52166 2004-08-12 Paul Eggert <eggert@cs.ucla.edu>
52168 * config/srclist.txt: Remove getopt.c, getopt.h (renamed to getopt_.h),
52171 2004-08-11 Paul Eggert <eggert@cs.ucla.edu>
52173 Merge from coreutils.
52175 * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for wmemchr and wmemcpy.
52177 * m4/obstack.m4 (gl_PREREQ_OBSTACK): Require
52178 gl_AC_HEADER_INTTYPES_H, gl_AC_HEADER_STDINT_H, gl_AC_TYPE_UINTMAX_T.
52180 2004-08-11 Paul Eggert <eggert@cs.ucla.edu>
52182 Merge from coreutils.
52184 * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Don't set to 1 if missing
52185 wmemchr or wmemcpy. Problem reported by Robert Dahlem
52186 for Reliant Unix 5.43.
52188 * lib/obstack.c: Include <inttypes.h> and <stdint.h> if available.
52189 (union fooround): Use uintmax_t, not long int.
52190 The rest is a merge from libc:
52191 [defined _LIBC]: Include <shlib-compat.h>.
52192 (_obstack) [defined _LIBC]: Remove after 2.3.4.
52194 * lib/settime.c (settime): Recode to avoid warning with
52197 * lib/strverscmp.c: Convert to UTF-8.
52199 2004-08-11 Paul Eggert <eggert@cs.ucla.edu>
52201 * modules/obstack (Files): Add m4/inttypes_h.m4, m4/stdint_h.m4,
52204 2004-08-09 Paul Eggert <eggert@cs.ucla.edu>
52206 * modules/xalloc-die: New file.
52207 * modules/xalloc: Remove dependencies on error, gettext, exitfail.
52209 * modules/md5 (Files): Add m4/uint32_t.m4.
52210 * modules/sha1: Renamed from modules/sha.
52212 Rename lib/sha.h to lib/sha1.h.
52213 Rename lib/sha.c to lib/sha1.c.
52214 Rename m4/sha.m4 to m4/sha1.m4.
52215 (lib_SOURCES): Likewise.
52216 (configure.ac): Rename gl_SHA to gl_SHA1.
52217 (Include): sha.h -> sha1.h.
52219 2004-08-09 Paul Eggert <eggert@cs.ucla.edu>
52221 * m4/uint32_t.m4, m4/uintptr_t.m4: New files.
52222 * m4/sha1.m4: Renamed from sha.m4.
52223 (gl_SHA1): Renamed from gl_SHA. All uses changed.
52225 2004-08-09 Paul Eggert <eggert@cs.ucla.edu>
52227 * lib/obstack.h (obstack_empty_p):
52228 Don't assume that chunk->contents is suitably aligned.
52229 * lib/obstack.c (_obstack_begin, _obstack_begin_1, _obstack_newchunk):
52230 Likewise. Problem reported by Benno in
52231 <http://sources.redhat.com/ml/libc-alpha/2004-08/msg00055.html>.
52233 * lib/chown.c (rpl_chown): Work even if the file is writeable but not
52234 readable. This could be improved further but it'd take some work.
52236 2004-08-08 Simon Josefsson <jas@extundo.com>
52238 * modules/xgethostname (Depends-on): Remove exit and error (not
52241 * modules/getpass-gnu: Add getpass.h.
52242 (Depends-on): Add stdbool.
52243 * modules/getpass: Add getpass.h.
52245 2004-08-08 Simon Josefsson <jas@extundo.com>
52247 * m4/getpass.m4 (gl_FUNC_GETPASS, gl_FUNC_GETPASS_GNU):
52248 Check getpass declaration.
52250 2004-08-08 Simon Josefsson <jas@extundo.com>
52252 * lib/xgethostname.c: Don't include error.h (not used).
52254 * lib/getpass.h: Add.
52255 * lib/getpass.c: Include getpass.h first.
52257 2004-08-08 Paul Eggert <eggert@cs.ucla.edu>
52259 * lib/xalloc-die.c: New file.
52260 * lib/xalloc.h (xalloc_fail_func, xalloc_msg_memory_exhausted): Remove.
52262 * lib/xmalloc.c (xalloc_fail_func, xalloc_msg_memory_exhausted):
52263 Likewise. Move inclusions of gettext.h, error.h, exitfail.h to
52265 (_, N_, xalloc_die): Move to xalloc-die.c.
52266 * lib/userspec.c (parse_user_spaec): Use xstrdup rather than strdup,
52267 so that we needn't mess with xalloc_msg_memory_exhausted.
52269 * lib/sha1.h: Renamed from sha.h.
52270 (SHA1_H): Renamed from _SHA_H.
52271 (sha1_ctx): Renamed from sha_ctx.
52272 (sha1_init_ctx): Renamed from sha_init_ctx.
52273 (sha1_process_block): Renamed from sha_process_block.
52274 (sha1_process_bytes): Renamed from sha_process_bytes.
52275 (sha1_finish_ctx): Renamed from sha_finish_ctx.
52276 (sha1_read_ctx): Renamed from sha_read_ctx.
52277 (sha1_stream): Renamed from sha_stream.
52278 (sha1_buffer): Renamed from sha_buffer.
52279 * lib/sha1.c: Likewise; renamed from sha.c.
52280 Do not include <sys/types.h>.
52281 Include <stddef.h> rather than <stdlib.h>.
52283 2004-08-08 Bruno Haible <bruno@clisp.org>
52285 * lib/pathname.h (FILE_SYSTEM_PREFIX_LEN): Renamed from
52286 FILESYSTEM_PREFIX_LEN.
52287 * lib/progreloc.c: Likewise.
52288 * lib/concatpath.c (concatenated_pathname): Use FILE_SYSTEM_PREFIX_LEN.
52290 2004-08-06 Simon Josefsson <jas@extundo.com>
52292 * modules/progname (Depends-on): Don't depend on stdbool.
52294 2004-08-06 Simon Josefsson <jas@extundo.com>
52296 * modules/getsubopt: New file.
52297 * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
52300 2004-08-06 Paul Eggert <eggert@cs.ucla.edu>
52302 More merge from coreutils.
52304 * m4/utimens.m4, m4/utimecmp.m4: New files.
52305 * m4/backupfile.m4, euidacces.m4, acl.m4, afs.m4, calloc.m4, dirfd.m4,
52306 fsusage.m4, jm-macros.m4, ls-mntd-fs.m4, md5.m4, mountlist.m4,
52307 prereq.m4, sha.m4: Import changes from coreutils.
52309 2004-08-06 Paul Eggert <eggert@cs.ucla.edu>
52311 More merge from coreutils.
52312 * modules/raise, modules/readtokens0, modules/utimens:
52313 * modules/utimecmp, module/xnanosleep: New files.
52314 * modules/strftime: Add lib/strftime.h.
52315 Change include from <time.h> to "strftime.h".
52316 * modules/yesno: Add lib/yesno.h.
52317 * modules/backupfile: Remove lib/addext.c.
52318 * modules/euidaccess: Add stat-macros.h.
52319 * modules/canonicalize, modules/euidaccess,
52320 modules/filemode, modules/lchown, modules/makepath,
52321 modules/rmdir, modules/stat: Likewise.
52323 2004-08-06 Paul Eggert <eggert@cs.ucla.edu>
52326 * lib/argp-help.c (make_hol, hol_append): Don't assume that
52327 SIZE_MAX is a valid preprocessor constant.
52328 (__argp_basename): Change from "#ifndef _LIBC"
52329 to "#ifndef __argp_short_program_name", so that
52330 we don't compile these functions for tar.
52332 More merges from coreutils.
52333 * lib/raise.c, lib/readtokens0.h, lib/readtokens0.c, lib/strftime.h:
52334 * lib/utimens.h, lib/utimens.c, lib/utimecmp.h, lib/utimecmp.c:
52335 * lib/xnanosleep.h, lib/xnanosleep.c, lib/yesno.h: New files.
52336 * lib/addext.c: Remove; no longer needed.
52337 * lib/yesno.c, lib/argmatch.h, lib/argmatch.c, lib/backupfile.h,
52338 lib/backupfile.c, lib/euidaccess.c, lib/filemode.c, lib/closeout.c,
52339 lib/dup2.c, lib/exclude.c, lib/fileblocks.c, lib/filemode.c,
52340 lib/fnmatch.c, lib/fnmtahc_loop.c, lib/fopen-safer.c, lib/fsusage.c,
52341 lib/fsusage.h, lib/ftruncate.c, lib/full-write.c, lib/getdate.y,
52342 lib/getloadavg.c, lib/getugroups.c, lib/hard-locale.c,
52343 lib/hard-locale.h, lib/hash.c, lib/human.c, lib/human.h, lib/lchown.c,
52344 lib/lchown.h, lib/makepath.c, lib/makepath.h, lib/md5.c, lib/md5.h,
52345 lib/memchr.c, lib/memcoll.c, lib/memrchr.c, lib/modechange.c,
52346 lib/modechange.h, lib/mountlist.c, lib/mountlist.h, lib/nanosleep.c,
52347 lib/posixtm.c, lib/putenv.c, quotearg.c, lib/quotearg.h,
52348 lib/readtokens.c, lib/readutmp.c, lib/readutmp.h, lib/rmdir.c,
52349 lib/safe-read.c, lib/save-cwd.c, lib/savedir.c, lib/setenv.c,
52350 lib/sig2str.c, lib/stat.c, lib/strtoimax.c, lib/strverscmp.c,
52351 lib/userspec.c, lib/utime.c, lib/version-etc.c., lib/xgethostname.c,
52352 lib/xmemcoll.c, lib/xreadlink.c, lib/xstrtod.c, lib/xstrtod.h,
52353 lib/xstrtoimax.c, lib/xstrtol.c, lib/xstrtol.h, lib/xstrtoumax.c:
52354 Import changes from coreutils.
52356 2004-08-05 Simon Josefsson <jas@extundo.com>
52358 * m4/strdup.m4: Always run gl_PREREQ_STRDUP, since strdup.h need it.
52360 2004-08-05 Simon Josefsson <jas@extundo.com>
52362 * m4/getsubopt.m4: New file.
52364 2004-08-05 Paul Eggert <eggert@cs.ucla.edu>
52366 Merge from coreutils.
52368 * m4/c-strtod.m4, m4/canonicalize.m4, m4/fcntl-safer.m4:
52369 * m4/getcwd-path-max.m4: New files.
52371 * m4/dos.m4 (gl_AC_DOS): filesystem -> file system renaming.
52372 FILESYSTEM_PREFIX_LEN ->
52373 FILE_SYSTEM_PREFIX_LEN.
52374 FILESYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX ->
52375 FILE_SYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX.
52376 FILESYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR ->
52377 FILE_SYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR.
52379 * m4/path-concat.m4 (gl_PATH_CONCAT): Don't require gl_AC_DOS, the
52380 prerequisite modules now handle the DOS stuff.
52381 Don't check for unistd.h.
52383 2004-08-05 Paul Eggert <eggert@cs.ucla.edu>
52385 Merge from coreutils.
52387 * lib/.gdb-history: Remove; this doesn't belong here.
52389 * lib/c-strtod.c, lib/c-strtod.h, lib/c-strtold.c, lib/cycle-check.c:
52390 * lib/cycle-check.h, lib/dev-ino.h, lib/canonicalize.h:
52391 * lib/canonicalize.c, lib/fcntl-safer.h, lib/fcntl-safer.c:
52392 * lib/getcwd.c: New files.
52394 * lib/dirname.h: Include <stdbool.h>.
52395 (FILE_SYSTEM_PREFIX_LEN): Renamed from FILESYSTEM_PREFIX_LEN,
52396 for consistency with POSIX terminology. All uses changed.
52397 (IS_ABSOLUTE_FILE_NAME, IS_RELATIVE_FILE_NAME): New macros.
52398 (strip_trailing_slashes): Use bool for booleans.
52399 * lib/stripslash.c (strip_trailing_slashes): Likewise.
52401 * lib/error.c: Work around bug in OpenBSD 3.4 sterror_r: it
52402 sometimes returns a positive errno value even when it succeeds.
52403 (print_errno_message) [!LIBC]: Fall back on strerror if
52404 __strerror_r fails.
52406 * lib/path-concat.c (mempcpy): Don't define if a system header defines
52407 it. Don't include stdio.h, stdlib.h, unistd.h, strdup.h.
52408 (longest_relative_suffix): New function.
52409 (path_concat): Use it. Assume first argument is not NULL.
52410 Port to DOS. Omit redundant separators.
52411 Report an error instead of returning NULL.
52412 Use mempcpy instead of memcpy.
52413 (xpath_concat): Remove: not declared or used.
52415 * lib/same.h: Include <stdbool.h>
52416 (same_name): Return bool, not int.
52417 * lib/same.c (same_name): Likewise.
52418 (errno): Don't declare; we assume C89 or better now.
52420 * lib/stat-macros (S_ISCTG, S_ISOFD, S_ISOFL): New macros,
52421 if not already defined.
52423 * lib/xgetcwd.c (errno): Don't declare; we assume C89 or better now.
52424 * lib/dup-safer.c (errno): Likewise.
52426 2004-08-05 Paul Eggert <eggert@cs.ucla.edu>
52428 Merge from coreutils.
52429 * modules/c-strtod, modules/c-strtold, modules/canonicalize:
52430 * modules/cycle-check, modules/fcntl-safer, modules/getcwd: New files.
52431 * modules/path-concat: Don't depend on strdup.
52433 2004-08-03 Simon Josefsson <jas@extundo.com>
52435 * lib/strdup.h: Only use HAVE_DECL_STRDUP if defined.
52436 * lib/progname.h: Don't include stdbool.h.
52438 2004-08-03 Paul Eggert <eggert@cs.ucla.edu>
52440 * modules/fatal: Remove, as the "fatal" module wasn't used or working.
52441 * MODULES.html.sh (func_all_modules): Remove fatal.
52443 2004-08-03 Paul Eggert <eggert@cs.ucla.edu>
52445 * m4/fatal.m4: Remove, as the "fatal" module wasn't used or working.
52447 2004-08-03 Paul Eggert <eggert@cs.ucla.edu>
52449 * lib/fatal.c, fatal.h: Remove as the "fatal" module wasn't used or
52452 2004-08-02 Simon Josefsson <jas@extundo.com>
52454 * lib/getsubopt.h: New file, with comments from Bruno Haible.
52455 * lib/getsubopt.c: New file, from glibc, but slightly modified based on
52456 suggestions from Paul Eggert <eggert@cs.ucla.edu>.
52458 2004-08-01 Simon Josefsson <jas@extundo.com>
52460 * lib/xgetdomainname.c: Include stdlib.h, for free().
52462 2004-07-19 Bruno Haible <bruno@clisp.org>
52464 * MODULES.html.sh (func_all_modules): Add dummy.
52466 2004-07-16 Simon Josefsson <jas@extundo.com>
52468 * modules/dummy: New file.
52470 2004-07-16 Simon Josefsson <jas@extundo.com>
52472 * lib/dummy.c: New file.
52474 2004-07-16 Bruno Haible <bruno@clisp.org>
52476 * lib/backupfile.h: Add extern "C" for C++.
52477 * lib/closeout.h: Likewise.
52478 * lib/copy-file.h: Likewise.
52479 * lib/findprog.h: Likewise.
52480 * lib/full-write.h: Likewise.
52481 * lib/pathname.h: Likewise.
52482 * lib/progname.h: Likewise.
52483 * lib/stpcpy.h: Likewise.
52484 * lib/stpncpy.h: Likewise.
52485 * lib/strcase.h: Likewise.
52486 * lib/strstr.h: Likewise.
52487 * lib/xalloc.h: Likewise.
52489 * lib/mbswidth.h: Add extern "C" for C++.
52490 Reported by Albert Chin-A-Young <china@thewrittenword.com>.
52492 2004-07-13 Robert Millan <robertmh@gnu.org>
52494 * m4/host-os.m4: s/KNetBSD/kNetBSD/g and s/KFreeBSD/kFreeBSD/g.
52496 2004-07-09 Simon Josefsson <jas@extundo.com>
52498 * lib/getndelim2.c: Include stddef.h, for ptrdiff_t. (FreeBSD 4.9
52499 failed without this.)
52501 2004-07-09 Paul Eggert <eggert@cs.ucla.edu>
52503 * modules/chown (Files): Add lib/fchown-stub.c, since
52504 gl_PREREQ_CHOWN invokes AC_LIBOBJ(fchown-stub).
52506 2004-07-09 Paul Eggert <eggert@cs.ucla.edu>
52508 * lib/fchown-stub.c: New file.
52510 2004-06-24 Jim Meyering <jim@meyering.net>
52512 * lib/obstack.h (obstack_base): Cast to (void *), per documentation.
52514 2004-06-22 Paul Eggert <eggert@cs.ucla.edu>
52516 * modules/argz: Omit "#include".
52518 * MODULES.html.sh (func_all_modules): Add calloc, to match
52519 2004-06-01 addition of calloc module.
52521 2004-06-22 Paul Eggert <eggert@cs.ucla.edu>
52523 * m4/argz.m4: New file, which is autoupdated from libtool.
52525 2004-06-22 Paul Eggert <eggert@cs.ucla.edu>
52527 * lib/argz.c, lib/argz_.h: New files, which are autoupdated from
52530 2004-06-22 Paul Eggert <eggert@cs.ucla.edu>
52532 * config/srclist-update: Don't insist on "USA." before the
52533 close-comment, as libtool omits the period and puts the */ on a
52535 * config/srclist.txt: Add argz.c, argz_.h, argz.m4.
52536 * config/srclistvars.sh: Add LIBTOOL (for eggert only).
52538 2004-06-22 Gary V. Vaughan <gary@gnu.org>
52540 * modules/argz: New file.
52541 * MODULES.html.sh (func_all_modules): Add argz.
52543 2004-06-12 Jim Meyering <jim@meyering.net>
52544 and Paul Eggert <eggert@cs.ucla.edu>
52546 * modules/hash (Files): Add lib/xalloc.h.
52547 * modules/pipe (Depends-on): Add wait-process.
52548 * modules/stat (Depends-on): Add xalloc.
52549 * modules/userspec (Files): Add lib/userspec.h.
52552 Upgrade from gettext-0.13.
52553 * modules/gettext (Files): Add m4/intmax.m4, m4/longdouble.m4,
52554 m4/longlong.m4, m4/printf-posix.m4, m4/signed.m4, m4/size_max.m4,
52555 m4/wchar_t.m4, m4/wint_t.m4, m4/xsize.m4.
52557 2004-06-10 Jim Meyering <jim@meyering.net>
52559 * lib/calloc.c: New file.
52561 2004-06-06 Paul Eggert <eggert@cs.ucla.edu>
52563 * lib/getdate.y (yylex): Allow space between sign and number.
52564 Problem reported by Dan Jacobson.
52566 2004-06-01 Paul Eggert <eggert@cs.ucla.edu>
52568 Merge from coreutils CVS.
52570 * m4/backupfile.m4, dirname.m4, human.m4, inttypes.m4, longlong.m4,
52571 makepath.m4, memchr.m4, memcmp.m4, mountlist.m4, path-concat.m4,
52572 putenv.m4, quotearg.m4, readutmp.m4, strtoimax.m4, strtoll.m4,
52573 strtoull.m4, strtoumax.m4, ulonglong.m4, vasnprintf.m4,
52574 xstrtol.m4: Fix copyright date and/or serial number.
52576 * m4/chown.m4 (gl_PREREQ_CHOWN): Check for fcntl.h.
52577 See if we need an fchown replacement.
52578 (gl_FUNC_CHOWN_FOLLOWS_SYMLINK): New macro.
52579 (gl_FUNC_CHOWN): Require gl_FUNC_CHOWN_FOLLOWS_SYMLINK,
52580 and use the replacement function if we detect either defect.
52582 * m4/prereq.m4 (gl_PREREQ): Add gl_ALLOCSA, gl_CLOEXEC, gl_INTTOSTR,
52585 2004-06-01 Paul Eggert <eggert@cs.ucla.edu>
52586 and Jim Meyering <jim@meyering.net>
52588 Merge from coreutils CVS.
52590 * lib/stat-macros.h: New file, with contents from file-type.h
52591 and coreutils' system.h.
52592 * lib/file-type.c: Include "stat-macros.h".
52593 * lib/file-type.h (file_type): Move all macro definitions to new file,
52596 * lib/chown.c (rpl_chown) [CHOWN_FAILS_TO_HONOR_ID_OF_NEGATIVE_ONE]:
52597 Wrap old code with this conditional.
52598 [CHOWN_MODIFIES_SYMLINK]: Try to work around a chown
52599 function that does not dereference symlinks.
52600 * lib/lchown.c (lchown) [CHOWN_MODIFIES_SYMLINK]: Just call chown.
52602 * lib/xreadlink.c: Include xreadlink.h first, to catch .h file
52603 dependency problems.
52604 (xreadlink): Accept new arg SIZE, for efficiency.
52605 All decls and uses changed.
52606 * lib/xreadlink.h: Include <stddef.h>, for size_t.
52608 * lib/.cppi-disable: Add alloca_.h, allocsa.h, exit.h, getndelim2.h,
52609 gettext.h, localcharset.h, strdup.h, strndup.h, strtoul.c, time_r.h.
52611 * lib/.cvsignore: Add alloca.h, fnmatch.h, poll.h, stdbool.h,
52614 2004-06-01 Jim Meyering <jim@meyering.net>
52616 * m4/calloc.m4: New file.
52618 2004-05-31 Paul Eggert <eggert@cs.ucla.edu>
52620 * m4/stdbool.m4 (AC_HEADER_STDBOOL): Detect _Bool bug in HP aC++/ANSI
52621 C B3910B A.05.55 [Dec 04 2003]. Problem reported by Jim Meyering.
52622 Also, fix a typo in a diagnostic.
52624 2004-05-30 Paul Eggert <eggert@cs.ucla.edu>
52626 * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Do not require AC_FUNC_MALLOC
52627 or AC_FUNC_REALLOC.
52629 2004-05-30 Paul Eggert <eggert@cs.ucla.edu>
52631 * lib/xmalloc.c (HAVE_MALLOC, HAVE_REALLOC): Do not require these
52632 macros to be defined.
52633 (xnmalloc_inline, xnrealloc_inline, xcalloc): Do not die if
52634 the allocator returns NULL because the requested size is zero.
52636 2004-05-20 Paul Eggert <eggert@cs.ucla.edu>
52638 * lib/malloc/obstack.c (_obstack) [defined _LIBC]: Bring back this
52639 var. Add comment explaining why libc still defines it. This
52640 merges the following patch from glibc:
52641 http://sources.redhat.com/ml/libc-alpha/2004-05/msg00157.html
52643 2004-05-20 Andreas Schwab <schwab@suse.de>
52645 * m4/free.m4: Replace free if it not known to work, not the other
52648 2004-05-19 Paul Eggert <eggert@cs.ucla.edu>
52650 * lib/obstack.c (_obstack): Remove unused variable. It hasn't been
52651 present in glibc since revision 1.1 of this file.
52652 * lib/obstack.h (_obstack_free, obstack_1grow, obstack_1grow_fast,
52653 obstack_alignment_mask, obstack_alloc, obstack_base,
52654 obstack_blank, obstack_blank_fast, obstack_chunk_size,
52655 obstack_copy, obstack_copy0, obstack_finish, obstack_grow,
52656 obstack_grow0, obstack_init, obstack_int_grow,
52657 obstack_int_grow_fast, obstack_make_room, obstack_memory_used,
52658 obstack_next_free, obstack_object_size, obstack_ptr_grow,
52659 obstack_ptr_grow_fast, obstack_room): Remove declarations of
52660 nonexistent functions.
52662 2004-05-18 Karl Berry <karl@gnu.org>
52664 * config/srclist.txt: break link for vasnprintf.c.
52666 2004-05-17 Paul Eggert <eggert@cs.ucla.edu>
52668 Port obstack to the AS/400, where pointers are 16 bytes wide and
52669 you cannot cast an integer to a valid pointer. This patch is
52670 currently waiting to be integrated into glibc; see
52671 <http://sources.redhat.com/ml/libc-alpha/2004-05/msg00073.html>.
52673 * lib/obstack.h (__PTR_TO_INT, __INT_TO_PTR): Remove.
52674 All uses of __INT_TO_PTR (PTR_TO_INT ...) replaced by __PTR_ALIGN.
52675 (__BPTR_ALIGN, __PTR_ALIGN): New macros.
52676 (struct obstack): temp member is now a union of a pointer and
52677 an integer, instead of an integer. All integer uses changed.
52678 This does not affect the physical layout of struct obstack,
52679 except on hosts (like the AS/400) where the size or alignment of
52680 void * is greater than that of ptrdiff_t.
52681 (obstack_finish) [! (defined __GNUC__ && defined __STDC__ &&
52682 __STDC__)]: Store temporary in pointer member of union, not
52684 * lib/obstack.c: Include <stddef.h>, for offsetof.
52685 (struct fooalign): Remove; it doesn't need a name.
52686 (union fooround): Change double to long double, and add void *.
52687 (DEFAULT_ALIGNMENT): Use offsetof to compute.
52688 (DEFAULT_ALIGNMENT, DEFAULT_ROUNDING): Now an enum constant,
52689 not a macro. Hence the values are always int; so remove all
52690 casts-to-int in uses.
52692 2004-05-17 Paul Eggert <eggert@cs.ucla.edu>
52694 * config/srclist.txt: Break link for argp-help.c and argp-parse.c until
52695 we can get this patch merged into glibc.
52697 2004-05-17 Derek R. Price <derek@ximbiot.com>
52698 Paul Eggert <eggert@cs.ucla.edu>
52700 * m4/argp: Depend on alloca.
52702 2004-05-17 Derek R. Price <derek@ximbiot.com>
52703 Paul Eggert <eggert@cs.ucla.edu>
52705 * lib/argp-help.c, argp-parse.c: Assume <alloca.h> rather than
52708 2004-05-17 Bruno Haible <bruno@clisp.org>
52710 * lib/vasnprintf.c (VASNPRINTF): Correctly handle the case of a
52711 precision that consists of a '.' followed by an empty digit string.
52712 Patch by Tor Lillqvist <tml@iki.fi>.
52714 2004-05-16 Paul Eggert <eggert@cs.ucla.edu>
52716 * m4/alloca.m4 (gl_FUNC_ALLOCA): Define HAVE_ALLOCA_H always,
52717 for backward compatibility with older code. We need our own
52718 alloca.h if _AIX is defined. Define HAVE_ALLOCA if we discover
52719 it under some other name, and our alloca.h will define it.
52721 2004-05-16 Paul Eggert <eggert@cs.ucla.edu>
52722 Derek Price <derek@ximbiot.com>
52724 * lib/alloca.c: Include <alloca.h>, to get our interface.
52725 * lib/alloca_.h: Use __alloca on AIX, so that we don't have to
52726 include <alloca.h> first. Use C89 prototype for alloca; this
52727 requires including <stddef.h> for size_t. Use extern "C" if C++.
52728 Use #elif for simplicity, since we can assume C89 now.
52729 Don't try to source the system alloca.h since it will not be found
52730 and to prevent recursively including its replacement.
52731 * lib/fnmatch.c: Include <alloca.h> instead of opencoding.
52732 * lib/regex.c: Likewise.
52734 2004-05-16 Derek Price <derek@ximbiot.com>
52735 Paul Eggert <eggert@cs.ucla.edu>
52737 getline cleanup. This changes the getndelim2 API: both order of
52738 arguments, and meaning of delim2 (now uses EOF, not 0, to indicate
52741 * lib/getline.c: Don't include stddef.h or stdio.h, since our
52742 interface does that.
52743 (getline): Always use getdelim, so that we don't have two
52744 copies of this code.
52745 * lib/getndelim2.c: Include <limits.h>, <inttypes.h>, <stdint.h>
52747 (PTRDIFF_MAX, SIZE_MAX, SSIZE_MAX): Define if not defined.
52748 (GETNDELIM2_MAXIMUM): New macro.
52749 (getndelim2): Reorder arguments. delim==EOF now means no delimiter,
52750 instead of the old practice of delim2==0. All callers changed.
52751 Return -1 on overflow, instead of returning junk.
52752 Do not set *linesize unless allocation succeeds.
52753 * lib/getndelim2.h: Do not include stddef.h; no longer needed, now
52754 that we include sys/types.h.
52755 * lib/getnline.h: Likewise.
52756 * lib/getndelim2.h (GETNLINE_NO_LIMIT): New macro.
52757 (getndelim2): Reorder arguments.
52758 * lib/getnline.c (getnline, getndelim):
52759 Don't discard the NMAX argument.
52760 (getnline): Invoke getndelim, to avoid code duplication.
52761 * lib/getnline.h (GETNLINE_NO_LIMIT): New macro, used instead
52762 of (size_t) -1 by callers of the getnline family.
52764 2004-05-13 Paul Eggert <eggert@cs.ucla.edu>
52766 * m4/gettime.m4 (gl_GETTIME): Require gl_TIMESPEC.
52767 Check for gettimeofday.
52768 * m4/settime.m4 (gl_SETTIME): Require gl_TIMESPEC.
52769 Check for settimeofday, stime.
52771 2004-05-13 Paul Eggert <eggert@cs.ucla.edu>
52773 * lib/nanosleep.c (suspended): Change its type from int to
52774 sig_atomic_t volatile.
52775 (first_call): Make it private to rpl_nanosleep, and have it
52776 be zero initially as that's a bit faster.
52777 (my_usleep): Round up fractional times instead of truncating them,
52778 as this is the usual meaning for 'sleep'.
52780 * lib/gettime.c (gettime): Fall back on `time' if `gettimeofday'
52782 * lib/settime.c: Include <unistd.h>, for stime (on Solaris 8, anyway).
52783 (ENOSYS): Define if not defined.
52784 (settime): Fall back on stime if it exists and settimeofday fails.
52785 But don't bother with fallbacks if a method fails with errno == EPERM.
52787 2004-05-11 Jim Meyering <jim@meyering.net>
52789 Prior to this change, the save_cwd caller required read access to the
52790 current directory on most systems (ones with the fchdir function).
52792 * lib/save-cwd.c (save_cwd) [HAVE_FCHDIR]: If opening `.' read-only
52793 fails, try write-only, and finally, resort to using xgetcwd.
52795 2004-05-06 Paul Eggert <eggert@cs.ucla.edu>
52797 * lib/obstack.c, obstack.h: Import changes from libc.
52799 2004-04-28 Bruno Haible <bruno@clisp.org>
52801 * lib/findprog.c (find_in_path): Treat Cygwin like Windows, since it
52802 also implicitly appends .exe to executables.
52803 * lib/localcharset.c (ISSLASH): Treat Cygwin like Windows, since it now
52804 accepts Windows pathnames.
52805 * lib/pathname.h (ISSLASH, IS_PATH_WITH_DIR, FILESYSTEM_PREFIX_LEN):
52806 Treat Cygwin like Windows, since it now accepts Windows pathnames.
52807 * lib/progreloc.c (ISSLASH, IS_PATH_WITH_DIR, FILESYSTEM_PREFIX_LEN):
52808 Treat Cygwin like Windows, since it now accepts Windows pathnames.
52809 Reported by Derek Robert Price <derek@ximbiot.com>.
52811 2004-04-21 Karl Berry <karl@gnu.org>
52813 * config/srclist.txt (localcharset.c): break sync.
52815 2004-04-20 Paul Eggert <eggert@twinsun.com>
52817 * m4/host-os.m4: Add a copyright notice.
52819 2004-04-20 Jim Meyering <jim@meyering.net>
52821 Change UTILS_ to gl_ in AC_DEFINE'd names.
52822 Change utils_- and jm_-prefixed variables, too.
52823 * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Renamed from
52824 UTILS_FUNC_MKDIR_TRAILING_SLASH.
52825 * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Renamed from UTILS_FUNC_MKSTEP.
52827 * m4/dirfd.m4 (gl_FUNC_DIRFD): Rename from UTILS_FUNC_DIRFD.
52828 Don't emit trailing blanks.
52829 Also rename jm_-prefixed variables to have gl_ prefix.
52831 * m4/host-os.m4 (gl_HOST_OS): Rename from UTILS_HOST_OS.
52832 Also rename jm_-prefixed variables to have gl_ prefix.
52834 * m4/jm-macros.m4: Reflect the renamings.
52835 * m4/prereq.m4: Likewise.
52837 2004-04-20 Jim Meyering <jim@meyering.net>
52839 * lib/getndelim2.c (getndelim2): Upon realloc failure, don't leak
52842 2004-04-20 Jim Meyering <jim@meyering.net>
52843 Bruno Haible <bruno@clisp.org>
52845 * lib/localcharset.c (get_charset_aliases) [!VMS && !WIN32]: Don't leak
52846 memory when realloc fails.
52848 2004-04-19 Jim Meyering <jim@meyering.net>
52850 * m4/readutmp.m4 (gl_PREREQ_READUTMP): Require gl_FUNC_FREE,
52851 now that readutmp.c may call `free (0)'.
52853 2004-04-19 Bruno Haible <bruno@clisp.org>
52855 * m4/mbrtowc.m4: Change jm_ to gl_ in cache variables as well.
52856 * m4/inttypes_h.m4: Likewise.
52857 * m4/stdint_h.m4: Likewise.
52858 * m4/intmax_t.m4: Likewise.
52859 * m4/uintmax_t.m4: Likewise.
52861 2004-04-18 Jim Meyering <jim@meyering.net>
52863 * m4/prereq.m4: Don't forbid jm_ prefix.
52865 * m4/afs.m4, m4/allocsa.m4, m4/assert.m4, m4/backupfile.m4:
52866 * m4/bison.m4, m4/check-decl.m4, m4/chown.m4, m4/d-ino.m4:
52867 * m4/d-type.m4, m4/dirname.m4, m4/dos.m4, m4/error.m4, m4/fpending.m4:
52868 * m4/fstypename.m4, m4/fsusage.m4, m4/ftruncate.m4, m4/getdate.m4:
52869 * m4/getgroups.m4, m4/gettext.m4, m4/glibc21.m4, m4/group-member.m4:
52870 * m4/human.m4, m4/intmax.m4, m4/intmax_t.m4, m4/inttostr.m4:
52871 * m4/inttypes.m4, m4/inttypes_h.m4, m4/jm-macros.m4, m4/jm-winsz1.m4:
52872 * m4/jm-winsz2.m4, m4/lchown.m4, m4/lib-check.m4, m4/link-follow.m4:
52873 * m4/localcharset.m4, m4/longlong.m4, m4/ls-mntd-fs.m4, m4/lstat.m4:
52874 * m4/makepath.m4, m4/mbrtowc.m4, m4/mbswidth.m4, m4/memchr.m4:
52875 * m4/memcmp.m4, m4/mkdtemp.m4, m4/mkstemp.m4, m4/mountlist.m4:
52876 * m4/nanosleep.m4, m4/path-concat.m4, m4/perl.m4, m4/prereq.m4:
52877 * m4/putenv.m4, m4/quotearg.m4, m4/regex.m4, m4/stat.m4:
52878 * m4/stdint_h.m4, m4/strftime.m4, m4/strtoimax.m4, m4/strtoll.m4:
52879 * m4/strtoull.m4, m4/strtoumax.m4, m4/timespec.m4, m4/uintmax_t.m4:
52880 * m4/ulonglong.m4, m4/unlink-busy.m4, m4/unlocked-io.m4, m4/uptime.m4,
52881 * m4/utimbuf.m4, m4/utime.m4, m4/utimes-null.m4, m4/vasnprintf.m4:
52882 * m4/xstrtoimax.m4, m4/xstrtol.m4, m4/xstrtoumax.m4:
52883 Change jm_ to gl_ in AC_DEFINE'd names. Update all uses.
52885 2004-04-18 Jim Meyering <jim@meyering.net>
52887 * lib/readutmp.c (read_utmp) [UTMP_NAME_FUNCTION]: Upon realloc
52888 failure, don't leak memory and do call END_UTMP_ENT.
52890 2004-04-16 Jim Meyering <jim@meyering.net>
52892 * m4/prereq.m4 (jm_PREREQ_STAT): Remove macro. It is specific to
52893 coreutils' stat program.
52894 (gl_PREREQ): Don't require jm_PREREQ_STAT.
52896 2004-04-11 Paul Eggert <eggert@twinsun.com>
52898 * lib/inttostr.h: Include <limits.h> unconditionally, since we assume
52900 (CHAR_BIT): Remove, since we assume C89.
52901 Include <stdint.h> if available, as per current Autoconf CVS advice.
52903 2004-03-31 Jim Meyering <jim@meyering.net>
52905 * m4/prereq.m4: Require AC_FUNC_MALLOC, not jm_FUNC_MALLOC.
52906 Require AC_FUNC_REALLOC, not jm_FUNC_REALLOC.
52907 * m4/xalloc.m4: Likewise.
52909 2004-03-30 Paul Eggert <eggert@twinsun.com>
52911 Merge from coreutils.
52913 * m4/inttostr.m4: New file.
52914 * m4/getdate.m4 (gl_GETDATE): Remove time-related stuff.
52915 Require AM_STDBOOL_H and gl_TIMESPEC instead.
52916 Require gl_CLOCK_TIME.
52917 * m4/clock_time.m4 (gl_CLOCK_TIME): Require AC_GNU_SOURCE.
52919 2004-03-30 Paul Eggert <eggert@twinsun.com>
52921 * lib/cloexec.h, cloexec.c (set_cloexec_flag): Return int
52922 not bool, to be more consistent with Unix conventions.
52923 Suggested by Bruno Haible.
52925 Merge from coreutils.
52927 * lib/imaxtostr.c, lib/inttostr.c, lib/inttostr.h, lib/offtostr.c:
52928 * lib/umaxtostr.c: New files.
52930 * lib/getdate.h: Include stdbool.h, and timespec.h instead of
52931 the usual <time.h> dance.
52932 (get_date): Change signature to support fractional time stamps.
52933 All callers changed.
52934 * lib/getdate.y: Include "getdate.h" first, as we can now
52935 assume C89 and don't need to worry about 'const'.
52936 Similarly, include "unlocked-io.h" near start, not in middle.
52937 Include <limits.h>.
52938 (textint.value): Use long int rather than int.
52939 (textint.digits): Use size_t rather than int.
52940 (BILLION, LOG10_BILLION): New constants.
52941 (parser_control): New member rel_ns. Members day_ordinal,
52942 time_zone, month, day, hour, minutes, rel_year, rel_month,
52943 rel_day, rel_hour, rel_minutes, rel_seconds
52944 are now long int, not int. Member seconds is now struct timespec,
52945 not int. New member timespec_seen. Members dates_seen, days_seen,
52946 local_zones_seen, rels_seen, times_seen, zones_seen are now size_t,
52948 (%union.intval): Now long int, not int.
52949 New member timespec.
52950 (tSDECIMAL_NUMBER, tUDECIMAL_NUMBER): New tokens.
52951 (seconds, signed_seconds, unsigned_seconds): New nonterminals.
52952 (spec): Now is a timespec or an item list.
52953 (timespec, items): New nonterminals.
52954 (time, rel, relunit, number, get_date):
52955 Add support for fractional seconds.
52956 (time): Fix bug: seconds weren't cleared in "00:00 +0000" syntax.
52957 (gmtime, localtime, mktime): Remove decls; not needed with C89.
52958 (to_hour): First arg is now long int, not int.
52959 (to_year): Returns long int, not int.
52960 Don't treat year -70 like 70.
52961 (tm_diff): Returns long int, not int.
52962 (lookup_word): Use bool instead of int when appropriate.
52963 (yylex): Use size_t for count, not int.
52964 Detect overflow when parsing large integer constants.
52965 Add support for fractions.
52966 (get_date): Make pointers 'const' if possible.
52967 Use more-portable code to detect integer overflow.
52968 (main) [TEST]: Adjust to above changes. Test for localtime failure.
52969 Don't use ctime; it's not reliable if the year has >4 digits.
52971 * lib/human.c (humblock): Inspect BLOCKSIZE if BLOCK_SIZE isn't set.
52972 This is for compatibility with BSD.
52974 * lib/timespec.h (ST_TIME_CMP_NS, ST_TIME_CMP): Define.
52975 (ATIME_CMP, CTIME_CMP, MTIME_CMP, TIMESPEC_NS): Likewise.
52976 From coreutils' system.h.
52978 * lib/userspec.c: Don't include "posixver.h".
52979 (parse_user_spec): Fall back on USER.GROUP parsing, regardless
52980 of POSIX version, as POSIX 1003.1-2001 allows that behavior as a
52981 compatible extension. Simplify code by removing a boolean int
52982 that was always nonzero if a string was nonnull.
52984 2004-03-30 Jim Meyering <jim@meyering.net>
52986 Merge from coreutils.
52988 Avoid a configure-time warning about sys/ucred.h on OSF V4.0.
52989 * m4/ls-mntd-fs.m4: Test for sys/ucred.h separately, since
52990 on some systems one must include <grp.h> before it.
52991 Reported by Christian Krackowizer.
52993 2004-03-30 Jim Meyering <jim@meyering.net>
52995 Merge from coreutils.
52997 * lib/mountlist.c [HAVE_SYS_UCRED_H]: Include grp.h before sys/ucred.h.
52999 * lib/readtokens.c (readtoken): Don't leak 64 bytes when reading
53000 an empty input stream.
53002 * lib/readtokens.c: Include <stdbool.h>.
53003 (readtoken): Use `size_t' rather than int/long.
53004 All callers adjusted.
53005 Use `bool' rather than `int' where appropriate.
53006 Use memset rather than an explicit loop.
53007 Use x2nrealloc rather than xrealloc.
53008 Allow the use of `\0' as a delimiter.
53009 (readtokens): Likewise.
53010 * lib/readtokens.h (readtoken, readtokens): Update prototypes.
53012 2004-03-30 Jim Meyering <jim@meyering.net>
53014 * m4/realloc.m4: Remove file, since now it does no more than
53015 AC_REQUIRE([AC_FUNC_REALLOC]), and that can be done via
53016 the `configure.ac' section of module/realloc.
53017 * m4/malloc.m4: Likewise, but for AC_FUNC_MALLOC.
53019 2004-03-30 Bruno Haible <bruno@clisp.org>
53021 * lib/getloadavg.c (getloadavg): Don't assume setlocale returns
53024 2004-03-29 Paul Eggert <eggert@twinsun.com>
53026 Merge changes to getloadavg.c from coreutils and Emacs.
53028 * lib/getloadavg.c [!defined HAVE_SETLOCALE] (setlocale):
53029 Define to an expression, not to the empty string.
53030 Include cloexec.h and xalloc.h.
53031 (getloadavg): Restore LC_NUMERIC locale after setting it temporarily.
53032 Use set_cloexec_flag rather than rolling our own.
53033 * lib/cloexec.c, lib/cloexec.h: New files.
53035 2004-03-29 Paul Eggert <eggert@twinsun.com>
53037 * m4/cloexec.m4: New file.
53039 2004-03-18 Paul Eggert <eggert@twinsun.com>
53041 * lib/getopt.h: Sync with libc CVS.
53043 2004-03-18 Paul Eggert <eggert@twinsun.com>
53044 Bruno Haible <bruno@clisp.org>
53046 * m4/mbswidth.m4 (gl_MBSWIDTH): Also test whether <wchar.h> declares
53049 2004-03-18 Paul Eggert <eggert@twinsun.com>
53050 Bruno Haible <bruno@clisp.org>
53052 * lib/mbswidth.h: Include <wchar.h> only if
53053 HAVE_DECL_MBSWIDTH_IN_WCHAR_H, not on all platforms that have
53055 * lib/mbswidth.c: Include <stdio.h> and <time.h> before <wchar.h>.
53057 2004-03-09 Paul Eggert <eggert@twinsun.com>
53059 * lib/argp-parse.c, getopt.c, getopt.h, getopt1.c:
53060 Sync with libc CVS.
53061 * lib/getopt_int.h: New file, also synced from libc.
53063 2004-03-09 Paul Eggert <eggert@twinsun.com>
53065 * config/srclistvars.sh: Add GNUWWWLICENSES for eggert.
53066 * config/srclist.txt: Sync getopt with libc. Add getopt_int.h.
53067 Bring back getopt.c, getopt.h, getopt1.c.
53069 2004-03-07 Paul Eggert <eggert@twinsun.com>
53071 * m4/c-stack.m4 (gl_PREREQ_C_STACK): Renamed from jm_PREREQ_C_STACK.
53072 All uses changed. Check for sa_sigaction member; this fixes
53073 a bug first reported by Jason Andrade in
53074 <http://mail.gnu.org/archive/html/bug-textutils/2003-03/msg00027.html>.
53076 2004-03-07 Paul Eggert <eggert@twinsun.com>
53078 * lib/c-stack.c (SIGACTION_WORKS): New macro. Use it instead of long
53079 '#if' expressions. Unlike the code it replaces, it does not
53080 depend on (defined _SC_PAGESIZE). However, it does depend on
53081 HAVE_STRUCT_SIGACTION_SA_SIGACTION; this last change fixes a bug
53082 first reported by Jason Andrade in
53083 <http://mail.gnu.org/archive/html/bug-textutils/2003-03/msg00027.html>.
53085 2004-02-25 Simon Josefsson <jas@extundo.com>
53087 * m4/strdup.m4 (gl_PREREQ_STRDUP): Check whether strdup is declared.
53089 2004-02-25 Simon Josefsson <jas@extundo.com>
53091 * lib/strdup.h: New file.
53092 * lib/strdup.c: Include it.
53093 * lib/path-concat.c: Include strdup.h. Drop strdup declaration.
53094 * lib/userspec.c: Include strdup.h. Drop strdup declaration.
53096 2004-02-23 Karl Berry <karl@gnu.org>
53098 * doc/maintain.texi, doc/standards.texi, doc/make-stds.texi: new files
53099 (from fencepost.gnu.org:/gd/gnuorg).
53101 2004-02-23 Karl Berry <karl@gnu.org>
53103 * config/srclistvars.sh (GNUORG) [karl]: redefine.
53104 * config/srclist.txt: add maintain/standards documents.
53106 2004-02-18 Bruno Haible <bruno@clisp.org>
53108 * m4/xsize.m4 (gl_XSIZE): Require AC_C_INLINE.
53109 Reported by Derek Robert Price <derek@ximbiot.com>.
53111 2004-02-16 Karl Berry <karl@gnu.org>
53113 * config/mkinstalldirs, install-sh: update from automake.
53115 2004-02-06 Karl Berry <karl@gnu.org>
53117 * m4/po.m4: update from gettext 0.14.1.
53119 2004-02-06 Karl Berry <karl@gnu.org>
53121 * lib/config.charset: update from gettext 0.14.1.
53123 2004-02-05 Paul Eggert <eggert@twinsun.com>
53125 Add comments and code, prompted by suggestions from Bruno Haible
53127 * lib/quotearg.h (quotearg_alloc): New decl. Improve the comments
53128 describing the enum quoting_style values.
53129 * lib/quotearg.c (quotearg_alloc): New function.
53130 (quotearg_buffer_restyled): Treat lone { and } as special.
53131 Treat = as special. Work around bug with older shells
53132 that "see" a '\' that is really the 2nd byte of a multibyte char.
53133 Quote empty string with shell_quoting_style.
53135 2004-02-03 Bruno Haible <bruno@clisp.org>
53137 * m4/pipe.m4: New file, from GNU gettext.
53139 2004-02-03 Bruno Haible <bruno@clisp.org>
53141 * lib/pipe.h: New file, from GNU gettext.
53142 * lib/pipe.c: New file, from GNU gettext.
53144 2004-01-27 Bruno Haible <bruno@clisp.org>
53146 * m4/execute.m4: New file, from GNU gettext.
53148 2004-01-27 Bruno Haible <bruno@clisp.org>
53150 * lib/execute.h: New file, from GNU gettext.
53151 * lib/execute.c: New file, from GNU gettext.
53152 * lib/w32spawn.h: New file, from GNU gettext.
53154 2004-01-24 Paul Eggert <eggert@twinsun.com>
53156 Merge from diffutils.
53158 * lib/file-type.c (file_type): Add typed memory objects.
53159 * lib/file-type.h (S_TYPEISTMO): New macro.
53161 * lib/c-stack.h (c_stack_action): Remove argv argument.
53162 * lib/c-stack.c (c_stack_action): Likewise. All uses changed.
53163 (die): Don't calculate message unless segv_action returns.
53164 (get_stack_location, min_address_from_argv, max_address_from_argv,
53165 volatile stack_base, volatile_stack_size): Remove.
53166 (segv_handler): If ! HAVE_XSI_STACK_OVERFLOW_HEURISTIC, assume
53167 that every segmentation violation is a stack overflow. (Ouch!)
53168 See Debian bug 136249 (still outstanding) for more info about why
53169 HAVE_XSI_STACK_OVERFLOW_HEURISTIC fails on Linux kernels.
53171 2004-01-24 Paul Eggert <eggert@twinsun.com>
53173 Exit-status fix from coreutils.
53175 Use exit_failure consistently in place of EXIT_FAILURE,
53176 so that program exit statuses are consistent on failure.
53178 * lib/argmatch.c (ARGMATCH_DIE) [! defined ARGMATCH_DIE]:
53179 Include "exitfail.h", and use exit_failure rather than EXIT_FAILURE.
53180 * lib/argmatch.h: Comment fix to match the above.
53181 * lib/obstack.c (obstack_exit_failure) [!defined _LIBC]:
53182 Now a macro referring to exit_failure, instead of a separate
53183 variable. Include "exitfail.h" to get it.
53184 * lib/xstrtol.h: Include "exitfail.h".
53185 (STRTOL_FATAL_ERROR): Exit with status exit_failure, not 2.
53187 * lib/long-options.c (parse_long_options): Use prototype
53188 for usage function arg. Pass it EXIT_SUCCESS rather than 0,
53191 2004-01-21 Jim Meyering <jim@meyering.net>
53193 * lib/mktime.c (__mktime_internal) [!_LIBC]: Define to mktime_internal
53194 so as not to conflict with a different-sized __mktime_internal
53195 function in GNU libc.
53196 * lib/timegm.c (__mktime_internal) [!_LIBC]: Likewise.
53197 Problem building statically-linked `ls' reported by Michael Brunnbauer.
53199 2004-01-20 Karl Berry <karl@gnu.org>
53201 * config/config.guess: update from config.
53203 * config/srclistvars.sh: GNUWWWLICENSES for karl.
53205 2004-01-20 Bruno Haible <bruno@clisp.org>
53207 Safer stack allocation.
53208 * lib/setenv.c: Include allocsa.h.
53209 (alloca): Remove fallback definition.
53210 (freea): Remove macro.
53211 (__add_to_environ) [!_LIBC]: Use allocsa instead of alloca. Use freesa
53214 2004-01-20 Bruno Haible <bruno@clisp.org>
53216 * m4/eealloc.m4: New file, from GNU gettext.
53218 2004-01-20 Bruno Haible <bruno@clisp.org>
53220 * m4/allocsa.m4: New file, from GNU gettext.
53222 2004-01-20 Bruno Haible <bruno@clisp.org>
53224 * lib/xallocsa.h: New file, from GNU gettext.
53225 * lib/xallocsa.c: New file, from GNU gettext.
53227 2004-01-20 Bruno Haible <bruno@clisp.org>
53229 * lib/wait-process.c: On Windows, include windows.h. Needed on mingw.
53231 2004-01-20 Bruno Haible <bruno@clisp.org>
53233 * lib/wait-process.c (wait_subprocess): Add ignore_sigpipe argument.
53234 * lib/wait-process.c (wait_subprocess): Likewise. Handle SIGPIPE
53237 2004-01-20 Bruno Haible <bruno@clisp.org>
53239 * lib/wait-process.c (wait_process): Disable the 2003-10-31 waitid()
53242 2004-01-20 Bruno Haible <bruno@clisp.org>
53244 * lib/wait-process.c (cleanup_slaves): Use ANSI C declaration.
53246 2004-01-20 Bruno Haible <bruno@clisp.org>
53248 * lib/eealloc.h: New file.
53250 2004-01-20 Bruno Haible <bruno@clisp.org>
53252 * lib/binary-io.h: Avoid warnings on Cygwin.
53254 2004-01-20 Bruno Haible <bruno@clisp.org>
53256 * lib/allocsa.h: New file, from GNU gettext.
53257 * lib/allocsa.c: New file, from GNU gettext.
53259 2004-01-18 Karl Berry <karl@gnu.org>
53261 * doc/gpl.texi, doc/lgpl.texi: new files.
53263 2004-01-18 Karl Berry <karl@gnu.org>
53265 * config/srclistvars.sh (GNUWWWLICENSES): new variable.
53266 * config/srclist.txt ({fdl,gpl,lgpl}.text): get from there.
53268 2004-01-15 Paul Eggert <eggert@twinsun.com>
53270 Merge from coreutils.
53272 * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Check for uintptr_t.
53273 * m4/posixver.m4 (gl_POSIXVER): Require gl_DEFAULT_POSIX2_VERSION.
53274 (gl_DEFAULT_POSIX2_VERSION): Move
53275 the documentation from 'configure' into 'config.hin',
53276 so that 'configure --help' isn't burdened by it and
53277 we don't have to worry about its formatting there.
53278 Reword the documentation so that it's more succinct
53279 and can be run together into a single paragraph.
53280 * m4/same.m4 (gl_SAME): Check for pathconf.
53282 2004-01-15 Paul Eggert <eggert@twinsun.com>
53284 Merge from coreutils.
53286 * lib/posixver.c: Include posixver.h.
53288 * lib/same.c: Include <stdbool.h>, <limits.h>.
53289 (_POSIX_NAME_MAX): Define if not defined.
53291 (same_name): If file names are silently truncated, report
53292 that the file names are the same if they are the same after
53293 the silent truncation.
53295 * lib/xstrtod.h (xstrtod): Accept an extra arg, specifying the
53296 conversion function.
53297 * lib/xstrtod.c (xstrtod): Likewise. All callers changed to
53298 include c-strtod.h and use c_strtod. Don't include stdlib.h; no
53301 2004-01-15 Jim Meyering <jim@meyering.net>
53303 Merge from coreutils.
53305 * m4/clock_time.m4 (gl_CLOCK_TIME): Don't set LIB_CLOCK_GETTIME
53306 if no library is required.
53307 * m4/jm-macros.m4: Don't require UTILS_SYS_OPEN_MAX.
53308 * m4/jm-macros.m4 (jm_MACROS): Require gl_FUNC_FREE.
53309 * m4/jm-macros.m4 (jm_MACROS): Require autoconf-2.58.
53310 (AC_LANG_SOURCE): Remove definition, now that we require autoconf-2.58.
53311 * m4/jm-macros.m4 (jm_MACROS): Don't require AC_FUNC_FTW.
53312 * m4/lib-check.m4 (jm_LIB_CHECK): Do not set LIB_CRYPT to the
53313 value, $ac_cv_search_crypt, if it's "none required".
53314 * m4/posixver.m4 (gl_DEFAULT_POSIX2_VERSION): New macro.
53315 * m4/prereq.m4 (jm_PREREQ): Require AC_FUNC_GETLOADAVG,
53316 not gl_FUNC_GETLOADAVG.
53317 * m4/prereq.m4 (jm_PREREQ): Require gl_READTOKENS, gl_MD5, gl_MAKEPATH,
53318 gl_LONG_OPTIONS, and gl_IDCACHE, gl_GETUGROUPS.
53320 2004-01-15 Jim Meyering <jim@meyering.net>
53322 Merge from coreutils.
53324 * lib/md5.h (rol) [__GNUC__ && __i386__]: Don't use `asm' code. These
53325 days, gcc-3.x does better all by itself. Patch from Dean Gaudet:
53326 http://mail.gnu.org/archive/html/bug-coreutils/2003-11/msg00144.html
53328 * lib/posixver.c (DEFAULT_POSIX2_VERSION): Use definition of new,
53329 optional configure-time default.
53331 * lib/version-etc.c (version_etc_copyright): Update copyright date.
53333 * lib/xreadlink.c (xreadlink): Correct outdated comment.
53335 2004-01-15 Alexandre Duret-Lutz <adl@gnu.org>
53337 Merge from coreutils.
53339 * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Do not set LIB_NANOSLEEP to the
53340 value, $ac_cv_search_nanosleep, if it's "none required".
53342 2004-01-14 Paul Eggert <eggert@twinsun.com>
53344 * lib/fnmatch_loop.c (ALLOCA_LIMIT): Remove macro, which collided
53345 with like-named macro in fnmatch.c.
53346 (EXT): Use an internal constant instead.
53348 Merge fnmatch patches from glibc.
53349 * lib/fnmatch.c (mbsinit): Remove define.
53350 Add libc_hidden_ver (__fnmatch, fnmatch).
53351 * lib/fnmatch_loop.c (FCT): Cast to int32_t and UCHAR when appropriate.
53352 Adjust to renaming of collseq_table_lookup to __collseq_table_lookup.
53354 2004-01-14 Karl Berry <karl@gnu.org>
53356 * config/install-sh: update from automake.
53358 2004-01-13 Karl Berry <karl@gnu.org>
53360 * config/install-sh: update from automake.
53362 2004-01-09 Karl Berry <karl@gnu.org>
53364 * config/install-sh: update from automake.
53366 2004-01-05 Karl Berry <karl@gnu.org>
53368 * config/config.{sub,guess}: update from config.
53370 2003-12-31 Karl Berry <karl@gnu.org>
53372 * config/depcomp: update from automake.
53374 2003-12-14 Karl Berry <karl@gnu.org>
53376 * lib/config.charset: update from gettext-runtime.
53378 2003-12-03 Paul Eggert <eggert@twinsun.com>
53380 * lib/getgroups.c (getgroups): xmalloc takes one argument, not two.
53381 Bug reported by Alfred M. Szmidt.
53383 2003-12-03 Bruno Haible <bruno@clisp.org>
53385 * m4/gettext.m4: Upgrade from gettext-0.13.
53386 * m4/po.m4: Upgrade from gettext-0.13.
53387 * m4/size_max.m4 (gl_SIZE_MAX): Don't use the _ONCE macros here.
53388 * m4/intmax.m4: New file, from gettext-0.13.
53389 * m4/printf-posix.m4: New file, from gettext-0.13.
53391 2003-11-29 Karl Berry <karl@gnu.org>
53393 * lib/argp-{help.c,parse.c,namefrob.h}, argp.h: update from libc.
53395 2003-11-25 Paul Eggert <eggert@twinsun.com>
53396 Bruno Haible <bruno@clisp.org>
53398 * lib/printf-parse.h: Don't include sys/types.h.
53399 (ARG_NONE): New macro.
53400 (char_directive): Change type of *arg_index fields to size_t.
53401 * lib/printf-parse.c: Don't include sys/types.h.
53402 (SSIZE_MAX): Remove macro.
53403 (PRINTF_PARSE): Change the type of the arg_index variables to size_t.
53404 Remove unnecessary overflow check.
53405 * lib/vasnprintf.c (VASNPRINTF): Update for type change of *arg_index
53408 2003-11-25 Bruno Haible <bruno@clisp.org>
53410 * modules/vasnprintf (Files): Remove m4/ssize_t.m4.
53412 2003-11-25 Bruno Haible <bruno@clisp.org>
53414 * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Don't require
53417 2003-11-24 Paul Eggert <eggert@twinsun.com>
53419 * modules/alloca: Remove dependency on xalloc.
53421 2003-11-24 Paul Eggert <eggert@twinsun.com>
53423 * lib/alloca.c: Remove dependency on xalloc module.
53424 (xalloc_die): Remove.
53425 (memory_full) [!defined emacs]: New macro.
53426 [!defined emacs]: Don't include xalloc.h.
53427 (alloca): Invoke memory_full, not xalloc_die, if malloc fails or
53428 address arithmetic overflows. Change datatypes a bit to avoid
53431 2003-11-22 Jim Meyering <jim@meyering.net>
53433 * lib/xmalloc.c (x2nrealloc_inline): Fix typos in comments:
53436 2003-11-21 Karl Berry <karl@gnu.org>
53438 * config/config.{sub,guess}: update from config.
53440 2003-11-18 Karl Berry <karl@gnu.org>
53442 * config/config.{sub,guess}: update from config.
53444 * config/(printf-{parse,args}.[ch]): sync broken, sigh.
53446 2003-11-17 Paul Eggert <eggert@twinsun.com>
53448 * README: Mention that S+T cannot overflow if S is the size of
53449 an existing object and T is sufficiently small.
53451 2003-11-17 Jim Meyering <jim@meyering.net>
53453 On systems without utime and without a utimes function capable of
53454 dealing with a NULL struct utimbuf* argument, this utime replacement
53455 could -- in unusual circumstances -- leak a file descriptor.
53456 * lib/utime.c: Include <unistd.h> and <errno.h>.
53457 (utime_null): Be sure to close `fd' and to preserve errno.
53458 Reported by Geoff Collyer via Arnold Robbins.
53460 2003-11-17 Bruno Haible <bruno@clisp.org>
53462 * modules/vasnprintf (Files): Add m4/ssize_t.m4.
53463 (Depends-on): Add xsize.
53465 2003-11-17 Bruno Haible <bruno@clisp.org>
53467 * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Require gt_TYPE_SSIZE_T.
53469 2003-11-17 Bruno Haible <bruno@clisp.org>
53471 * lib/vasnprintf.c (alloca): Remove fallback definition.
53472 (freea): Remove definition.
53473 (VASNPRINTF): Use alloca only for small sizes, say <= 4000 bytes.
53474 Reported by Paul Eggert.
53476 2003-11-16 Paul Eggert <eggert@twinsun.com>
53477 Bruno Haible <bruno@clisp.org>
53479 Protect against address arithmetic overflow.
53480 * lib/printf-args.h: Include stddef.h.
53481 (arguments): Change type of field 'count' to size_t.
53482 * lib/printf-args.c (printf_fetchargs): Use size_t instead of
53483 'unsigned int' where appropriate.
53484 * lib/printf-parse.h: Include sys/types.h.
53485 (char_directive): Change type of *arg_index fields to ssize_t.
53486 (char_directives): Change type of fields 'count', max_*_length to
53488 * lib/printf-parse.c: Include sys/types.h and xsize.h.
53489 (SSIZE_MAX): Define fallback value.
53490 (PRINTF_PARSE): Use size_t instead of 'unsigned int' and ssize_t
53491 instead of 'int' where appropriate. Check a_allocated, d_allocated
53492 against overflow. Reject %m$ argument numbers > SSIZE_MAX + 1.
53493 * lib/vasnprintf.c: Include xsize.h.
53494 (VASNPRINTF): Use size_t instead of 'unsigned int' where appropriate.
53495 Check alloca, malloc, realloc, ENSURE_ALLOCATION arguments against
53496 overflow. Avoid wraparound when converting a width or precision from
53499 2003-11-16 Bruno Haible <bruno@clisp.org>
53501 Update from GNU gettext.
53502 * lib/printf-parse.c: Generalize to it can be compiled for wide
53504 (PRINTF_PARSE, CHAR_T, DIRECTIVE, DIRECTIVES): New macros.
53505 * lib/vasnprintf.c: Generalize to it can be compiled for wide strings.
53506 (VASNPRINTF, CHAR_T, DIRECTIVE, DIRECTIVES, PRINTF_PARSE, USE_SNPRINTF,
53507 SNPRINTF): New macros.
53508 Don't include <alloca.h> if the file is used inside libintl.
53509 (local_wcslen): New function, for Solaris 2.5.1.
53510 (VASNPRINTF): Use it instead of wcslen.
53512 2003-11-16 Bruno Haible <bruno@clisp.org>
53514 * lib/xsize.h (xmax): New function.
53515 (xsum, xsum3, xsum4): Declare as "pure" functions.
53517 2003-11-12 Paul Eggert <eggert@twinsun.com>
53519 * modules/xalloc (Files): Undo latest change, since xalloc.h
53520 no longer needs SIZE_MAX or PTRDIFF_MAX.
53522 2003-11-12 Paul Eggert <eggert@twinsun.com>
53524 * m4/xalloc.m4 (gl_PREREQ_XALLOC): Do not require gl_SIZE_MAX or
53527 2003-11-12 Paul Eggert <eggert@twinsun.com>
53529 * lib/xstrtol.c (__xstrtol): Remove "break" immediately after
53530 "return", to pacify some unknown compiler. Problem reported
53531 by Joerg Schilling.
53533 2003-11-12 Paul Eggert <eggert@twinsun.com>
53535 * lib/xalloc.h: Do not include <limits.h> or <stdint.h>.
53536 (xalloc_oversized): Use sizeof (ptrdiff_t) and sizeof (size_t) for
53537 the heuristic, rather than PTRDIFF_MAX and SIZE_MAX. This
53538 heuristic is just as accurate as far as we know, and it removes a
53539 dependency on size_max.m4 and ptrdiff_max.m4.
53541 2003-11-11 Bruno Haible <bruno@clisp.org>
53543 * modules/xsize (Files): Add m4/size_max.m4.
53544 * modules/xalloc (Files): Add m4/size_max.m4, m4/ptrdiff_max.m4.
53546 2003-11-11 Bruno Haible <bruno@clisp.org>
53548 * m4/size_max.m4: New file.
53549 * m4/ptrdiff_max.m4: New file.
53550 * m4/xsize,m4 (gl_XSIZE): Require gl_SIZE_MAX.
53551 * m4/xalloc.m4 (gl_PREREQ_XALLOC): New macro.
53552 (gl_XALLOC): Invoke it.
53554 2003-11-11 Bruno Haible <bruno@clisp.org>
53556 * lib/xsize.h (SIZE_MAX): Remove fallback definition.
53557 * lib/xalloc.h: Include limits.h. Assume SIZE_MAX and PTRDIFF_MAX are
53560 2003-11-10 Paul Eggert <eggert@twinsun.com>
53562 * lib/xalloc.h (xalloc_oversized): [! (defined PTRDIFF_MAX &&
53563 PTRDIFF_MAX < SIZE_MAX)]: Fix off-by-one error that would have
53564 rejected some allocations of exactly SIZE_MAX - 2 bytes.
53566 [defined PTRDIFF_MAX && PTRDIFF_MAX < SIZE_MAX]: Use SIZE_MAX,
53567 not (size_t) -1, since it's defined here.
53569 2003-11-09 Karl Berry <karl@gnu.org>
53571 * config/mkinstalldirs, depcomp, mdate-sh: update from automake.
53573 2003-11-06 Paul Eggert <eggert@twinsun.com>
53575 * lib/xalloc.h [HAVE_STDINT_H]: Include <stdint.h>.
53576 (xalloc_oversized) [! (PTRDIFF_MAX < SIZE_MAX)]:
53577 Reject sizes of exactly SIZE_MAX bytes.
53578 * lib/xreadlink.c: Include "xalloc.h" before checking whether SIZE_MAX
53579 is defined, since "xalloc.h" now defines SIZE_MAX on modern hosts.
53581 2003-11-05 Bruno Haible <bruno@clisp.org>
53583 * lib/xsize.h: Include limits.h, to avoid a possible collision with
53584 SIZE_MAX defined in <limits.h> on Solaris.
53586 2003-11-04 Jim Meyering <jim@meyering.net>
53588 * modules/sysexits: Use the `$(VAR)' notation for AC_SUBST'd
53589 variable names, rather than @VAR@.
53590 * modules/poll: Likewise.
53592 2003-11-04 Bruno Haible <bruno@clisp.org>
53594 * modules/xsize: New file.
53595 * modules/linebreak: Depend on xsize.
53596 * MODULES.html.sh (func_all_modules): Add xsize.
53598 2003-11-04 Bruno Haible <bruno@clisp.org>
53600 * m4/xsize.m4: New file.
53602 2003-11-04 Bruno Haible <bruno@clisp.org>
53604 * lib/xsize.h: New file.
53605 * lib/linebreak.c: Include xsize.h.
53606 (mbs_possible_linebreaks, mbs_width_linebreaks): Check malloc()
53607 argument for overflow.
53608 Suggested by Paul Eggert.
53610 2003-11-03 Karl Berry <karl@gnu.org>
53612 * config/config.{guess,sub}: update from config.
53614 2003-11-03 Jim Meyering <jim@meyering.net>
53616 * modules/userspec (lib_SOURCES): Add userspec.h.
53617 (Include): Add "userspec.h".
53618 Improve description.
53620 2003-11-03 Jim Meyering <jim@meyering.net>
53622 * lib/userspec.c: Include "userspec.h".
53623 * lib/userspec.h: New file.
53625 2003-11-03 Bruno Haible <bruno@clisp.org>
53627 * m4/wait-process.m4 (gl_WAIT_PROCESS): Also check for waitid.
53629 2003-11-03 Bruno Haible <bruno@clisp.org>
53631 * lib/wait-process.c (wait_process): Use waitid with WNOWAIT if
53632 available, to avoid (extremely rare) race condition.
53633 Suggested by Paul Eggert.
53635 2003-11-02 Karl Berry <karl@gnu.org>
53637 * config/srclist.txt (vasprintf.c): sync broken, sigh.
53639 2003-10-31 Paul Eggert <eggert@twinsun.com>
53641 * lib/mountlist.h (struct mount_entry.me_type_malloced): New member.
53642 * lib/mountlist.c (SIZE_MAX): Define if not defined already.
53643 (read_filesystem_list): Set and use me_type_malloced.
53644 Use "sizeof *me" rather than "sizeof (struct mount_entry)" (or
53645 whatever the type happens to be), for brevity and consistency.
53646 Check for size calculation overflow on Alphas running OSF/1.
53648 2003-10-31 Jim Meyering <jim@meyering.net>
53650 * lib/hash.c: Include "xalloc.h" for use of xalloc_oversized.
53652 * lib/linebuffer.c: Include <string.h> for declaration of memset.
53654 2003-10-30 Paul Eggert <eggert@twinsun.com>
53655 Bruno Haible <bruno@clisp.org>
53657 * lib/vasprintf.c: Include <limits.h>, <stdlib.h>.
53658 (vasprintf): Fail if the resulting length doesn't fit in an 'int'.
53660 2003-10-30 Paul Eggert <eggert@cs.ucla.edu>
53662 * m4/host-os.m4 (UTILS_HOST_OS): Change netbsd*-gnu pattern back to
53663 netbsd*-gnu*. Suggested by Robert Millan.
53665 2003-10-29 Paul Eggert <eggert@twinsun.com>
53667 * modules/group-member: Depend on stdbool.
53669 2003-10-29 Paul Eggert <eggert@twinsun.com>
53671 * m4/xalloc.m4 (gl_XALLOC): Undo previous change.
53673 2003-10-29 Paul Eggert <eggert@twinsun.com>
53675 * m4/host-os.m4 (UTILS_HOST_OS): Resurrect netbsd*-gnu. Add comments
53676 to it, and to knetbsd*-gnu and kfreebsd*-gnu. Remove the '*' from
53677 after the 'gnu' in these cases. This fixes some bugs in the
53678 previous change, and is based on suggestions by Robert Millan.
53680 2003-10-29 Paul Eggert <eggert@twinsun.com>
53682 * lib/xalloc.h (xalloc_oversized): Now a macro, not a function,
53683 so that it works even if SIZE_MAX < N. Do not include <stdbool.h>;
53685 * lib/quotearg.c (quotearg_n_options): Use it.
53686 * lib/group-member.c: Include <stdbool.h>.
53687 (free_group_info): Arg is now const *; don't free arg.
53688 (get_group_info): Now returns bool and accepts struct group_info *,
53689 rather than returning a malloc'ed struct group_info *.
53690 All uses changed. Check for overflow in internal size calculation.
53692 * lib/getusershell.c (readname): Simplify the code by using x2nrealloc
53693 rather than xmalloc/xrealloc.
53694 * lib/linebuffer.c (initbuffer, readlinebuffer): Simplify the code by
53695 using x2realloc rather than xmalloc/xrealloc. Also, fix a C
53696 conformance bug: the old code used a pointer after freeing the
53697 storage that it addressed.
53698 * lib/hash.c (hash_initialize): Simplify the code by using
53699 xalloc_oversized rather than doing it by hand.
53700 * lib/getgroups.c (getgroups): Don't use xrealloc, since we don't need
53701 the buffer preserved. Use free and xmalloc instead.
53702 * lib/quotearg.c (quotearg_n_options): Likewise.
53703 Use a simpler test for size overflow. Don't use xalloc_oversized
53704 because unsigned int might be wider than size_t (!); this suggests
53705 that we should switch from unsigned int to size_t for slot numbers.
53707 2003-10-28 Paul Eggert <eggert@twinsun.com>
53709 * m4/host-os.m4 (UTILS_HOST_OS): Identify GNU/KFreeBSD and
53710 GNU/KNetBSD. These implementations use glibc atop the FreeBSD and
53711 NetBSD kernels. Requested by Richard Stallman.
53713 2003-10-27 Paul Eggert <eggert@twinsun.com>
53715 * lib/exclude.c (new_exclude): Use xzalloc rather than xmalloc
53716 to allocate the returned structure. Do not allocate a subarray,
53717 as x2nrealloc will do that.
53718 (add_exclude): Use x2nrealloc to reallocate ex->exclude,
53719 instead of xnrealloc.
53720 (add_exclude_file): Use x2realloc instead of malloc + xnrealloc.
53722 2003-10-27 Bruno Haible <bruno@clisp.org>
53724 * lib/stdbool_.h: Better support for BeOS.
53726 2003-10-26 Paul Eggert <eggert@twinsun.com>
53728 * m4/xalloc.m4 (gl_XALLOC): Requore AC_C_INLINE, since xalloc.h
53731 2003-10-26 Paul Eggert <eggert@twinsun.com>
53733 * lib/xalloc.h (xalloc_oversized): New static inline function, for
53734 callers that want to do their own size-overflow checking. Include
53735 <stdbool.h>, since xalloc_oversized returns bool.
53736 * lib/xalloc.c (array_size_overflow): Remove. All callers changed
53737 to use xalloc_oversized.
53739 Add two functions x2realloc, x2nrealloc, for programs that grow
53740 arrays dynamically by doubling their sizes.
53741 * lib/xalloc.h (x2realloc, x2nrealloc): New decls.
53742 * lib/xmalloc.c (x2nrealloc_inline, x2nrealloc, x2realloc):
53745 Port to C99 semantics for 'inline' of external functions.
53746 Bug reported by Bruno Haible.
53747 * lib/xmalloc.c (xnmalloc_inline): New static inline function,
53748 with the old contents of xnmalloc.
53749 (xnmalloc, xmalloc): Use it.
53750 (xnrealloc_inline): New static inline function,
53751 with the old contents of xnrealloc.
53752 (xnrealloc, xrealloc): Use it.
53754 * lib/alloc.c (alloca): xmalloc cannot return NULL, so don't test for
53757 2003-10-26 Karl Berry <karl@gnu.org>
53759 * config/srclist.txt (COPYING.DOC): no longer available from
53760 /gd/gnuorg; don't know where the ultimate source is.
53762 2003-10-25 Paul Eggert <eggert@twinsun.com>
53764 Fix several address-calculation bugs in the hash modules,
53765 plus some minor code cleanup.
53767 * lib/hash.h: Include <stdbool.h>, for bool.
53768 * lib/hash.c: Don't include <stdbool.h>, since hash.h does it now.
53769 * lib/hash.h (Hash_hasher, hash_get_n_buckets, hash_get_n_buckets_used,
53770 hash_get_n_entries, hash_get_max_bucket_length,
53771 hash_get_entries, hash_do_for_each, hash_string, hash_initialize,
53772 hash_rehash): Use size_t rather than unsigned.
53773 * lib/hash.c (struct hash_table, hash_get_n_buckets,
53774 hash_get_n_buckets_used, hash_get_n_entries,
53775 hash_get_max_bucket_length, hash_table_ok, hash_print_statistics,
53776 hash_get_entries, hash_do_for_each, hash_string, is_prime,
53777 next_prime, hash_initialize, hash_rehash, hash_delete, hash_print):
53779 (SIZE_MAX): Define if not defined.
53780 (hash_get_max_bucket_length, hash_table_ok, hash_lookup,
53781 hash_get_first, hash_get_next, hash_get_entries, hash_do_for_each,
53783 Use const * when possible.
53784 (hash_string): Use (unsigned char) *P rather than *(unsigned char *) P.
53785 (check_tuning): Fix bug: if tuning parameters were very close to
53786 0 or 1, rounding errors could have caused subscript violations.
53787 (hash_initialize, allocate_entry, hash_print): Remove unnecessary cast.
53788 (hash_initialize): Add 'fail:' label
53789 to free table and return NULL, and use it to simplify code.
53790 Use calloc rather than clearing the storage ourself.
53791 (hash_initialize, hash_rehash): Check for arithmetic overflow in
53792 buffer size calculations.
53793 * lib/hash-pjw.h (hash_pjw): Use size_t, not unsigned.
53794 Include <stddef.h>, for size_t.
53795 * lib/hash-pjw.c (hash_pjw): Likewise.
53796 Switch to method described by Bruno Haible.
53797 Include <limits.h>, for CHAR_BIT.
53798 (SIZE_BITS): New macro.
53800 2003-10-23 Paul Eggert <eggert@twinsun.com>
53802 * m4/getline.m4 (AM_FUNC_GETLINE):
53803 Don't include getndelim2.o twice into LIBOBJS; this breaks on some
53804 hosts. Problem reported by Derek Robert Price in
53805 <http://mail.gnu.org/archive/html/bug-gnulib/2003-10/msg00092.html>.
53806 This patch can be withdrawn after Autoconf 2.58 is required for gnulib.
53807 * m4/getndelim2.m4 (gl_GETNDELIM2): Likewise.
53809 2003-10-21 Paul Eggert <eggert@twinsun.com>
53811 * lib/getndelim2.c (getndelim2): When size calculation overflows,
53812 ceiling the allocation at NMAX bytes rather than silently
53813 discarding input bytes before NMAX is reached. This makes
53814 a difference only if NMAX exceeds SIZE_MAX / 2.
53816 * lib/obstack.c: Merge from glibc.
53817 [defined _LIBC]: Include <obstack.h>, not "obstack.h".
53818 Add libc_hidden_def (_obstack_newchunk).
53819 (_obstack_free) [! defined _LIBC]: Remove.
53820 [defined _LIBC]: Make a strong alias from obstack_free, rather than
53821 a clone of the function body.
53822 (fputs) [defined _LIBC && defined USE_IN_LIBIO]: Remove.
53823 [defined _LIBC && !defined USE_IN_LIBIO]: Include <libio/iolibio.h>.
53825 * lib/obstack.h: Indenting cleanup, to make it easier to merge with
53827 (obstack_grow, obstack_grow0): Remove unnecessary parentheses around
53830 * lib/obstack.h (obstack_1grow_fast): Properly parenthesize arg.
53831 (obstack_ptr_grow_fast, obstack_int_grow_fast):
53832 Don't use lvalue casts, as GCC plans to remove support for them
53833 in GCC 3.5. Reported by Joseph S. Myers. This bug
53834 was also present in the non-GCC version, indicating that this
53835 code had always been buggy and had never been widely used.
53836 (obstack_1grow, obstack_ptr_grow, obstack_int_grow, obstack_blank):
53837 Use the fast variant of each macro, rather than copying the
53838 definiens of the fast variant; that way, we'll be more likely to
53839 catch future bugs in the fast variants.
53841 2003-10-20 Bruno Haible <bruno@clisp.org>
53843 * modules/wait-process: New file.
53844 * MODULES.html.sh (func_all_modules): Add wait-process.
53846 2003-10-20 Bruno Haible <bruno@clisp.org>
53848 * m4/wait-process.m4: New file.
53850 2003-10-20 Bruno Haible <bruno@clisp.org>
53852 * lib/wait-process.h: New file, from GNU gettext.
53853 * lib/wait-process.c: New file, from GNU gettext.
53855 2003-10-19 Jim Meyering <jim@meyering.net>
53857 * lib/vasnprintf.c (vasnprintf): Work around losing snprintf on
53860 2003-10-18 Karl Berry <karl@gnu.org>
53862 * config/config.guess: update from config.
53864 2003-10-16 Paul Eggert <eggert@twinsun.com>
53866 * lib/getgroups.c: Include <errno.h>, <stdlib.h>.
53867 (getgroups): First arg is int, not size_t.
53868 Don't let 'free' mangle errno.
53870 2003-10-16 Paul Eggert <eggert@twinsun.com>
53872 * README: Mention that gnulib assumes that (foo *) NULL + 0 == NULL.
53874 2003-10-16 Karl Berry <karl@gnu.org>
53876 * config/config.{guess,sub}: update from config.
53878 2003-10-16 Jim Meyering <jim@meyering.net>
53880 * lib/xmalloc.c: Include <string.h>, for declarations of memset and
53883 2003-10-15 Paul Eggert <eggert@twinsun.com>
53885 * lib/exclude.c: Do not include <inttypes.h> or <stdint.h>.
53886 (SIZE_MAX): Remove.
53887 (new_exclude, add_exclude_file): Initial size no longer needs to
53889 (add_exclude, add_exclude_file): Use xnrealloc instead of rolling
53890 our own address arithmetic overflow checking.
53892 * lib/fnmatch.c (SIZE_MAX): Define if standard headers don't.
53893 (fnmatch): Do not alloca more than 2000 wide characters;
53894 instead, use malloc for large buffers.
53895 Check for address arithmetic overflow, and return -1
53896 with errno set to ENOMEM in that case.
53897 * lib/fnmatch_loop.c (ALLOCA_LIMIT): New macro.
53898 (NEW_PATTERN): Do not alloca more than 8000 bytes;
53899 instead, return -1. Check for address arithmetic overflow.
53901 2003-10-14 Paul Eggert <eggert@twinsun.com>
53903 Handle invalid suffixes and overflow independently, so that
53904 callers can treat them independently as needed. Fix some bugs in
53905 suffix handling, e.g., "100k@" was not diagnosed as an invalid
53906 suffix for a human-readable blocksize. The major caller-visible
53907 change is the addition of a new
53908 LONGINT_INVALID_SUFFIX_CHAR_WITH_OVERFLOW enum value, indicating
53909 that both overflow and suffix chars were found.
53911 * lib/human.c (humblock): Don't check separately for invalid suffix
53912 char; that is xstrtoumax's job (now that its bug is fixed).
53913 * lib/xstrtoimax.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM) [defined
53914 INTMAX_MAX]: New macros.
53915 * lib/xstrtol.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM, TYPE_MINIMUM,
53916 TYPE_MAXIMUM): New macros.
53917 (bkm_scale, bkm_scale_by_power): Return strtol_error, not int.
53918 (bkm_scale, bkm_scale_by_power, __xstrtol): Return maximal values
53919 if overflow occurs, as it's what __strtol does and it's more useful
53921 (__xstrtol): If __strtol reports some error other than ERANGE,
53922 reflect it to the caller as LONGINT_INVALID. If it reports
53923 ERANGE, continue the rest of parsing, and report LONGINT_OVERFLOW
53924 | LONGINT_INVALID_SUFFIX_CHAR if both errors occur.
53925 * lib/xstrtol.h (LONGINT_INVALID_SUFFIX_CHAR_WITH_OVERFLOW): New enum
53927 (_STRTOL_ERROR): Handle it. Abort when given unknown error codes.
53928 * lib/xstrtoul.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM): New macros.
53929 * lib/xstrtoumax.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM)
53930 [defined UINTMAX_MAX]: New macros.
53932 2003-10-14 Bruno Haible <bruno@clisp.org>
53934 * modules/fatal-signal: Add m4/sig_atomic_t.m4 to file list.
53936 2003-10-14 Bruno Haible <bruno@clisp.org>
53938 * m4/sig_atomic_t: New file, from GNU gettext.
53939 * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Require gt_TYPE_SIG_ATOMIC_T.
53941 2003-10-14 Bruno Haible <bruno@clisp.org>
53943 * lib/fatal-signal.h: Improved comments. Suggested by Paul Eggert.
53944 * lib/fatal-signal.c: Use sig_atomic_t. Suggested by Paul Eggert.
53945 Also use volatile where needed.
53947 2003-10-12 Paul Eggert <eggert@twinsun.com>
53949 * modules/xalloc: Do not depend on 'exit'. Depend on 'stdbool'.
53950 Change maintainer from Bruno Haible to 'all'.
53952 2003-10-12 Paul Eggert <eggert@twinsun.com>
53954 * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Require AC_C_INLINE.
53956 2003-10-12 Paul Eggert <eggert@twinsun.com>
53958 * lib/xalloc.h (xnmalloc, xzalloc, xnrealloc, xclone): New decls.
53959 (XMALLOC, XCALLOC, XREALLOC, XFREE, CCLONE, CLONE): Deprecate,
53960 and define in terms of the other primitives.
53961 * lib/xmalloc.c: Include stdbool.h; do not include exit.h.
53962 (SIZE_MAX): Define if not already defined.
53963 (array_size_overflow): New function.
53964 (xalloc_die): Abort instead of exiting if 'error' returns.
53965 (xnmalloc, xnrealloc, xzalloc, xclone): New functions.
53966 (xmalloc, xrealloc): Use them.
53967 (xcalloc): Check for address arithmetic overflow.
53968 * lib/xstrdup.c (xstrdup): Use xclone, since memcpy should be
53969 a bit faster than strcpy.
53971 2003-10-10 Simon Josefsson <jas@extundo.com>
53973 * modules/argp (Depends-on): Add restrict and strcase.
53975 2003-10-10 Simon Josefsson <jas@extundo.com>
53977 * m4/argp.m4: Add AC_C_INLINE.
53979 2003-10-08 Paul Eggert <eggert@twinsun.com>
53981 Merge getpass from libc, plus a few fixes.
53983 * lib/getpass.c (HAVE_STDIO_EXT) [_LIBC]: Define to 1.
53984 Include <stdbool.h>.
53985 Include <stdio_ext.h> if HAVE_STDIO_H, otherwise define
53986 __fsetlocking to empty.
53987 [_LIBC]: Do not include "getline.h" or "unlocked-io.h", but
53988 do include <bits/libc-lock.h>.
53989 Do not include <fcntl.h>; not needed.
53990 [_LIBC]: Include <wchar.h>.
53991 (NOTCANCEL_MODE): New macro.
53992 (flockfile, funlockfile) [_LIBC]: New macros.
53993 (__libc_cleanup_push, __libc_cleanup_pop, __getline, __tcgetattr)
53994 [!_LIBC]: New macros.
53995 (call_fclose): New function.
53996 (getpass): Use it. Save tty stream separately; this simplifies the
53997 code and makes it more reliable if stdin happens to equal stdout.
53998 Invoke __fsetlocking on tty.
53999 Handle thread cancellation if needed.
54000 Namespace cleanup (use __tcgetattr, __getline).
54001 Use bool for Booleans.
54002 [USE_IN_LIBIO]: Handle wide streams.
54003 [!_LIBC]: Unconditionally do the fseek, since we don't know what
54004 stream might go where.
54006 * lib/unlocked-io.h: Include <stdio.h>, so that the caller
54007 doesn't have to include <stdio.h> before us.
54008 (clearerr_unlocked, feof_unlocked, ferror_unlocked,
54009 fflush_unlocked, fgets_unlocked, fputc_unlocked, fputs_unlocked,
54010 fread_unlocked, fwrite_unlocked, getc_unlocked, getchar_unlocked,
54011 putc_unlocked, putchar_unlocked): Define to the unlocked counterpart
54012 if not declared, so that we can use getpass.c code from libc without
54014 (flockfile, ftrylockfile, funlockfile): New macros.
54016 2003-10-08 Paul Eggert <eggert@twinsun.com>
54018 * modules/getpass: Depend on stdbool.
54020 2003-10-08 Paul Eggert <eggert@twinsun.com>
54022 * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for stdio_ext.h.
54024 2003-10-07 Karl Berry <karl@gnu.org>
54026 * config/config.{guess,sub}: update from config.
54028 2003-10-06 Jim Meyering <jim@meyering.net>
54029 Bruno Haible <bruno@clisp.org>
54031 This lets translators provide better translations for the
54032 "Written by ..." part of --version output.
54033 * lib/version-etc.h: Include stdarg.h.
54034 (version_etc_copyright): Declare as readonly.
54035 (version_etc): Make this function variadic with a NULL-terminated list
54036 of author name strings.
54037 (version_etc_va): New declaration.
54038 * lib/version-etc.c: Include stdarg.h, stdlib.h.
54039 (version_etc_copyright): Declare as readonly.
54040 (version_etc_va): New function. Provide a different translatable string
54041 for each possible number of authors < 10. Abbreviate when there are 10
54043 (version_etc): Make this function variadic. Call version_etc_va.
54044 Suggestion from Gary V. Vaughan.
54046 * lib/long-options.h (parse_long_options): Change prototype: the
54047 authors string is moved to the end and becomes variadic.
54048 * lib/long-options.c: Include stdarg.h.
54049 (parse_long_options): Make this function variadic, too.
54050 Call version_etc_va, not version_etc.
54052 2003-10-06 Bruno Haible <bruno@clisp.org>
54054 * modules/version-etc-2: Remove file.
54055 * MODULES.html.sh (func_all_modules): Remove version-etc-2.
54057 2003-10-06 Bruno Haible <bruno@clisp.org>
54059 * modules/fatal-signal: New file.
54060 * MODULES.html.sh (func_all_modules): Add fatal-signal.
54062 2003-10-06 Bruno Haible <bruno@clisp.org>
54064 * m4/fatal-signal.m4: New file.
54065 * m4/signalblocking.m4: New file, from GNU gettext.
54067 2003-10-06 Bruno Haible <bruno@clisp.org>
54069 * lib/version-etc-2.h: Remove file.
54070 * lib/version-etc-2.c: Remove file.
54072 2003-10-06 Bruno Haible <bruno@clisp.org>
54074 * lib/fatal-signal.h: New file, from GNU gettext.
54075 * lib/fatal-signal.c: New file, from GNU gettext.
54077 2003-10-05 Paul Eggert <eggert@twinsun.com>
54079 * README: Rework advice for preventing empty .o files.
54080 Don't recommend ELIDE constructs. Recommend <stddef.h>,
54083 2003-10-04 Karl Berry <karl@gnu.org>
54085 * lib/argp*: update from libc.
54087 2003-10-04 Karl Berry <karl@gnu.org>
54089 * config/config.{guess,sub}: update from config.
54091 2003-10-02 Bruno Haible <bruno@clisp.org>
54093 * modules/lchown (Include): Add lchown.h.
54094 * modules/time_r (Include): Use "..." syntax.
54095 * modules/xgetdomainname (Include): Add xgetdomainname.h.
54097 2003-10-01 Simon Josefsson <jas@extundo.com>
54099 * MODULES.html.sh (func_all_modules): Move gethostname from section
54100 'based on' to section 'lacking' POSIX:2001.
54102 2003-10-01 Larry Jones <lawrence.jones@eds.com>
54104 * lib/getpass.c (getpass): Use a no-op fseek when switching from input
54105 to output mode on the same stream.
54107 2003-09-29 Paul Eggert <eggert@twinsun.com>
54109 * lib/strftime.c (tm_diff) [! HAVE_TM_GMTOFF]:
54110 Fix arg typo in previous patch.
54112 2003-09-28 Jim Meyering <jim@meyering.net>
54114 * lib/error.c: Correct cpp indentation.
54116 2003-09-27 Paul Eggert <eggert@twinsun.com>
54118 * modules/free: New file.
54120 2003-09-27 Paul Eggert <eggert@twinsun.com>
54122 * m4/free.m4: New file.
54124 2003-09-27 Paul Eggert <eggert@twinsun.com>
54126 * lib/minmax.h (MIN, MAX)
54127 [__STDC__ && defined __GNUC__ && __GNUC__ >= 2]:
54128 Omit the special code that used __typeof__, since we worry that
54129 it could be more trouble than it's worth. See:
54130 http://mail.gnu.org/archive/html/bug-gnulib/2003-01/msg00090.html
54131 http://mail.gnu.org/archive/html/bug-gnulib/2003-01/msg00095.html
54133 * lib/free.c: New file.
54135 2003-09-27 Oskar Liljeblad <oskar@osk.mine.nu>
54137 Trivial fixes to Makefile.am parts of module listings.
54138 * modules/strstr: Append strstr.h to lib_SOURCES.
54139 * modules/strcase: Likewise, for strcase.h.
54141 2003-09-27 Karl Berry <karl@gnu.org>
54143 * config/mkinstalldirs: update from automake.
54145 2003-09-26 Paul Eggert <eggert@twinsun.com>
54147 * lib/error.c (SIZE_MAX) [!defined SIZE_MAX]: Define.
54148 (error_tail): Do not loop, reallocating temporary buffer, since
54149 the output cannot contain more wide characters than the input
54150 contains bytes, the size must be big enough already. This avoids
54151 one potential size overflow calculation. Check for size overflow
54152 when calculating temporary buffer size. Free temporary buffer
54153 when done, if it was allocated with malloc; this plugs a memory
54154 leak. Remove casts from void * to pointers, that are no longer
54155 needed now that we're assuming C89 or better.
54157 Merge error changes from glibc.
54159 * lib/error.c, error.h: Update copyright notice header to match glibc.
54160 * lib/error.c [defined _LIBC]: Include <errno.h>, <bits/libc-lock.h>.
54161 (error, error_at_line) [defined _LIBC && defined __libc_ptf_call]:
54162 Disable cancellation while printing error.
54163 * lib/error.h: Prepend __ to parameter names.
54165 2003-09-26 Jim Meyering <jim@meyering.net>
54167 * lib/error.c (error_tail): Move some declarations
54168 into inner scope where the local variables are used.
54170 2003-09-26 Bruno Haible <bruno@clisp.org>
54172 * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Add comments about the AIX
54174 Don't define stpncpy through config.h; it's now done through stpncpy.h.
54176 2003-09-26 Bruno Haible <bruno@clisp.org>
54178 * lib/stpncpy.h (gnu_stpncpy): New declaration.
54179 (stpncpy): Define as alias for gnu_stpncpy.
54180 * lib/stpncpy.c [!_LIBC]: Define gnu_stpncpy, not stpncpy.
54182 2003-09-25 Simon Josefsson <jas@extundo.com>
54184 * lib/xgetdomainname.h: New file.
54185 * lib/xgetdomainname.c: New file.
54187 2003-09-25 Simon Josefsson <jas@extundo.com>
54188 Bruno Haible <bruno@clisp.org>
54190 * modules/getdomainname: New file.
54191 * modules/xgetdomainname: New file.
54192 * MODULES.html.sh (func_all_modules): Add getdomainname,
54195 2003-09-25 Simon Josefsson <jas@extundo.com>
54196 Bruno Haible <bruno@clisp.org>
54198 * m4/getdomainname.m4: New file.
54200 2003-09-25 Simon Josefsson <jas@extundo.com>
54201 Bruno Haible <bruno@clisp.org>
54203 * lib/getdomainname.h: New file.
54204 * lib/getdomainname.c: New file.
54206 2003-09-25 Karl Berry <karl@gnu.org>
54208 * lib/argp-fmtstream.c, argp-help.c: update from libc.
54210 2003-09-25 Karl Berry <karl@gnu.org>
54212 * config/install-sh: update from automake.
54214 2003-09-25 Bruno Haible <bruno@clisp.org>
54216 * modules/version-etc-2: New file, from modules/version-etc with
54218 * MODULES.html.sh (func_all_modules): Add version-etc-2.
54220 2003-09-25 Bruno Haible <bruno@clisp.org>
54222 * lib/version-etc-2.h: New file, from version-etc.h with modifications.
54223 * lib/version-etc-2.c: New file, from version-etc.c with modifications.
54225 2003-09-24 Simon Josefsson <jas@extundo.com>
54227 * modules/xgethostname: Add xgethostname.h.
54229 2003-09-24 Paul Eggert <eggert@twinsun.com>
54231 * lib/linebuffer.c (freebuffer): Don't free the argument, just
54232 the buffer associated with the argument. Bug reported by
54235 2003-09-24 Paul Eggert <eggert@twinsun.com>
54237 * README: Document assumptions that 'int' is at least 32 bits
54238 wide, that integer arithmetic is 2's complement without overflow,
54239 that there are no holes in integer values, that adding sizes of
54240 two nonoverlapping objects can't overflow, and that all-bits-zero
54241 yields scalar zero. Fix spelling and capitalization typos.
54243 2003-09-19 Karl Berry <karl@gnu.org>
54245 * lib/argp.h: update from libc.
54247 2003-09-17 Paul Eggert <eggert@twinsun.com>
54249 * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Call AC_BEFORE first,
54250 to avoid spurious warnings like "AC_RUN_IFELSE was called before
54251 gl_USE_SYSTEM_EXTENSIONS" from autoreconf.
54253 2003-09-17 Paul Eggert <eggert@twinsun.com>
54255 * gnulib-tool: Use "test -h", not "test -L", for portability
54256 to Solaris 8 /bin/sh. (This bug is fixed in Solaris 9.)
54257 (tags_regexp): Remove, since \| doesn't conform to POSIX.
54258 (sed_extract_prog): Issue s commands one-by-one, rather than
54259 using \| in one s command.
54261 2003-09-16 Paul Eggert <eggert@twinsun.com>
54263 * lib/linebuffer.c (readlinebuffer): Return NULL immediately upon
54264 input error, instead of returning NULL the next time we are called
54265 (and therefore losing track of errno).
54267 2003-09-16 Bruno Haible <bruno@clisp.org>
54269 * gnulib-tool (func_create_testdir): Warn about duplicated
54272 2003-09-15 Paul Eggert <eggert@twinsun.com>
54274 * modules/argmatch, modules/fatal, modules/obstack,
54275 modules/xalloc, modules/xgethostname: Sort dependencies by
54276 importance, not alphabetically.
54278 2003-09-15 Paul Eggert <eggert@twinsun.com>
54280 * lib/getndelim2.c (getndelim2): Don't trash errno when a read
54281 fails, so that the caller gets the proper errno.
54283 * lib/readutmp.c (read_utmp): Likewise.
54284 Check for fstat error. Close stream and free storage
54287 2003-09-14 Karl Berry <karl@gnu.org>
54289 * config/srclist.txt (strdup.c): disable for c89 changes.
54291 2003-09-14 Jim Meyering <jim@meyering.net>
54293 * lib/getloadavg.c: Correct cpp indentation.
54294 * lib/strdup.c: Likewise.
54295 * lib/vasnprintf.c: Likewise.
54297 2003-09-14 Bruno Haible <bruno@clisp.org>
54299 * modules/fwriteerror: New file.
54300 * MODULES.html.sh (func_all_modules): Add fwriteerror.
54302 2003-09-14 Bruno Haible <bruno@clisp.org>
54304 * lib/fwriteerror.h: New file.
54305 * lib/fwriteerror.c: New file.
54307 2003-09-12 Paul Eggert <eggert@twinsun.com>
54309 * modules/argmatch, modules/exitfail, modules/fatal, modules/obstack,
54310 modules/xgethostname, modules/xalloc: Depend on exit.
54312 2003-09-12 Paul Eggert <eggert@twinsun.com>
54314 * m4/error.m4: Require AC_FUNC_STRERROR_R rather than invoking it.
54316 * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Require AC_AIX
54317 and AC_MINIX, too, so that their extensions are available.
54319 * m4/prereq.m4 (jm_PREREQ_ADDEXT): Remove. All uses removed.
54320 This macro has been superseded by gl_BACKUPFILE.
54322 More patches to assume C89 or better.
54324 * m4/error.m4 (gl_ERROR): Don't check for vprintf.
54326 * m4/check-decl.m4 (jm_CHECK_DECLS): Include <string.h>, <stdlib.h>
54328 * m4/closeout.m4 (gl_CLOSEOUT): Don't check for stdlib.h.
54329 * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER):
54330 Include <string.h>, <stdlib.h> unconditionally.
54331 * m4/lstat.m4 (gl_PREREQ_LSTAT): Don't check for stdlib.h, free.
54332 * m4/readdir.m4 (GL_FUNC_READDIR): Don't check for string.h.
54333 * m4/readutmp.m4 (gl_PREREQ_READUTMP): Don't check for standard C
54334 headers or for string.h.
54335 * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Don't check for stdlib.h
54338 * m4/mkstemp.m4 (jm_PREREQ_TEMPNAME): Do not require standard C
54340 * m4/strdup.m4 (gl_PREREQ_STRDUP): Likewise.
54341 * m4/userspec.m4 (gl_USERSPEC): Likewise.
54342 * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Likewise.
54343 * m4/xstrtod.m4 (gl_XSTRTOD): Likewise.
54344 * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
54345 * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't check for limits.h,
54347 (jm_FUNC_GNU_STRFTIME): Don't require standard C headers.
54348 * m4/strtod.m4 (gl_FUNC_STRTOD): Do not check for float.h.
54349 * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Do not check for stdlib.h,
54351 * m4/strtol.m4 (gl_FUNC_STRTOL): Do not check for limits.h.
54352 * m4/userspec.m4 (gl_USERSPEC): Do not check for string.h.
54353 * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Do not check for string.h, strtol,
54356 2003-09-12 Paul Eggert <eggert@twinsun.com>
54358 * lib/argmatch.c, fatal.c, xgethostname.c, xmalloc.c: Include exit.h.
54359 * lib/obstack.c [!defined _LIBC]: Likewise.
54360 * lib/argmatch.c (EXIT_FAILURE): Remove; now done by exit.h
54361 * lib/exitfail.c, fatal.c, xgethostname.c, xmalloc.c: Likewise.
54362 * lib/exitfail.c: Don't include stdlib.h; no longer needed.
54364 More changes to assume C89 or better.
54366 * lib/error.c (error_tail): Assume vprintf.
54368 * lib/argmatch.c (getenv): Remove decl.
54369 * lib/progreloc.c (get_full_program_name): Define via prototype.
54370 * lib/setenv.c (clearenv): Likewise.
54371 * lib/stpncpy.c: Do not include <string.h> or <sys/types.h>; not
54373 * lib/strdup.c: Include <stdlib.h>, <string.h> unconditionally.
54374 (malloc, memcpy): Remove decls.
54375 * lib/strftime.c (HAVE_LIMITS_H, STDC_HEADERS) [defined _LIBC]: Remove.
54376 (HAVE_MEMCPY) [defined emacs && !defined HAVE_BCOPY]: Remove.
54377 Include <limits.h>, <stddef.h>, <stdlib.h>, <string.h> unconditionally.
54378 (memcpy): Remove macro.
54379 (MEMCPY) [!defined COMPILE_WIDE]: Define to memcpy unconditionally.
54380 (__P): Remove. All uses removed.
54381 (PTR): Remove. All uses changed to void *.
54382 (CHAR_BIT, NULL): Remove.
54383 (spaces, zeros, memset_space, memset_zero)
54384 [!defined memset && !defined HAVE_MEMSET && !defined _LIBC]:
54386 (LOCALE_PARAM, LOCALE_PARAM_DECL): Remove.
54387 (memcpy_lowcase, memcpy_uppcase, tm_diff, iso_week_days):
54388 Define with prototype.
54389 Remove now-unnecessary prototype decl.
54390 (extra_args_spec): Assume ANSI C. All uses changed.
54391 (extra_args_spec_iso): Remove.
54392 (my_strftime, emacs_strftimeu): Define via prototype.
54393 * lib/strtod.c: Include <float.h>, <stdlib.h>, <string.h>
54395 (DBL_MAX, DBL_MIN, HUGE_VAL, NULL): Remove decls.
54396 * lib/strtoimax.c: Include <stdlib.h> unconditionally.
54397 (strtoul, strtol): Remove decls.
54398 * lib/strtol.c (STDC_HEADERS, HAVE_LIMITS_H, NULL, ULONG_MAX,
54400 Include <limits.h>, <stddef.h>, <stdlib.h>, <string.h> unconditionally.
54401 (LOCALE_PARAM_DECL): Remove. All uses changed to LOCALE_PARAM_PROTO.
54402 (LOCALE_PARAM_PROTO): New macro.
54403 (INTERNAL, INTERNAL1, WEAKNAME): Assume ANSI C, not K&R.
54404 (INTERNAL (strtol), strtol): Define with a prototype.
54405 (PARAMS): Remove. All uses removed.
54406 * lib/tempname.c: Include <string.h> unconditionally.
54407 * lib/userspec.c: Include <stdlib.h>, <string.h> unconditionally.
54408 * lib/xgethostname.c (main): Define with a prototype.
54409 * lib/xmalloc.c: Include "xalloc.h" first, to check interface.
54410 Include <stdlib.h> unconditionally.
54411 (calloc, malloc, realloc, free): Remove decls.
54412 * lib/xstrtod.c: Include "xstrtod.h" first, to check interface.
54413 Include <stdlib.h> unconditionally. Sort include file names.
54415 (xstrtod): Define with a prototype.
54416 * lib/xstrtol.c: Include <stdlib.h>, <string.h> unconditionally.
54417 (strtol, strtoul): Remove decls.
54419 2003-09-11 Paul Eggert <eggert@twinsun.com>
54421 More patches to assume C89 or better.
54422 * m4/strndup.m4 (gl_PREREQ_STRNDUP): Remove STDC_HEADERS check.
54423 * m4/strnlen.m4 (gl_PREREQ_STRNLEN): Don't check for memory.h,
54424 string.h, memchr, STDC_HEADERS.
54426 2003-09-11 Paul Eggert <eggert@twinsun.com>
54428 * lib/strndup.c: Don't include <stdio.h>, <sys/types.h>.
54429 Include <stdlib.h>, <string.h> unconditionally.
54430 Remove now-unnecessary cast to char *.
54431 * lib/strnlen.c: Include <string.h> unconditionally.
54432 * lib/yesno.c (yesno): Define with a prototype.
54434 2003-09-11 Bruno Haible <bruno@clisp.org>
54436 * config/srclist.txt (setenv.c, unsetenv.c): Disable for the moment.
54438 2003-09-10 Jim Meyering <jim@meyering.net>
54440 * lib/error.c: Correct indentation of cpp directives.
54442 2003-09-10 Bruno Haible <bruno@clisp.org>
54444 * m4/strcspn.m4 (gl_PREREQ_STRCSPN): Remove <string.h> check.
54445 * m4/strpbrk.m4 (gl_PREREQ_STRPBRK): Remove <string.h> check.
54446 * m4/strstr.m4 (gl_PREREQ_STRSTR): Remove <string.h> check.
54447 * m4/unicodeio.m4 (gl_UNICODEIO): Remove <string.h> check.
54448 * m4/setenv.m4 (gl_PREREQ_SETENV, gl_PREREQ_UNSETENV): Remove
54449 <stdlib.h> and <string.h> checks.
54450 * m4/xreadlink.m4 (gl_XREADLINK): Remove <stdlib.h> check.
54451 * m4/yesno.m4 (gl_YESNO): Remove <stdlib.h> check.
54453 2003-09-10 Bruno Haible <bruno@clisp.org>
54455 * lib/strcspn.c: Include <string.h> unconditionally.
54456 * lib/strpbrk.c: Include <string.h> unconditionally.
54457 * lib/strstr.c: Include <string.h> unconditionally.
54458 * lib/unicodeio.c: Include <string.h> unconditionally.
54459 * lib/setenv.c: Include <stdlib.h> and <string.h> unconditionally.
54460 * lib/unsetenv.c: Likewise.
54461 * lib/xreadlink.c: Include <stdlib.h> unconditionally.
54462 * lib/yesno.c: Include <stdlib.h> unconditionally.
54463 (rpmatch): Add prototype.
54465 2003-09-09 Paul Eggert <eggert@twinsun.com>
54467 More patches to assume C89 or better.
54468 * m4/getcwd.m4 (AC_FUNC_GETCWD_NULL): Don't check for stdlib.h.
54469 * m4/getopt.m4 (gl_GETOPT): Don't check for string.h.
54470 * m4/getugroups.m4 (gl_GETUGROUPS): Do not check for standard C headers
54472 * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Do not check for
54474 * m4/group-member.m4 (gl_PREREQ_GROUP_MEMBER): Do not require standard
54476 * m4/hard-locale.m4 (gl_HARD_LOCALE): Do not check for stdlib.h,
54478 * m4/hash.m4 (gl_HASH): Do not check for stdlib.h, malloc, free.
54479 * m4/human.m4 (gl_HUMAN): Do not check for stdlib.h, string.h, getenv.
54480 * m4/idcache.m4 (gl_IDCACHE): Do not check for standard C headers,
54482 * m4/long-options.m4 (gl_LONG_OPTIONS): Do not check for stdlib.h.
54483 * m4/makepath.m4 (gl_MAKEPATH): Do not check for string.h or standard
54485 * m4/md5.m4 (gl_MD5): Don't check for limits.h, standard C headers,
54487 * m4/sha.m4 (gl_SHA): Don't check for standard Cheaders, memcpy.
54488 * m4/memchr.m4 (jm_PREREQ_MEMCHR): Don't check for limits.h, stdlib.h.
54489 * m4/memcmp.m4 (gl_PREREQ_MEMCMP): Don't check for string.h.
54490 * m4/memcoll.m4 (gl_MEMCOLL): Likewise.
54491 * m4/memrchr.c (gl_PREREQ_MEMRCHR): Don't check for limits.h.
54492 * m4/mkdir-slash.m4 (gl_PREREQ_MKDIR): Don't check for stdlib.h,
54494 * m4/mktime.m4 (gl_PREREQ_MKTIME): Don't check for standard C headers.
54495 * m4/modechange.m4 (gl_MODECHANGE): Don't check for standard C headers.
54496 * m4/mountlist.m4 (gl_PREREQ_MOUNTLIST_EXTRA): Don't check for standard
54497 C headers, or for string.h.
54498 * m4/obstack.m4 (gl_OBSTACK): Don't check for stddefe.h, string.h.
54499 (gl_PREREQ_OBSTACK): Don't check for stdlib.h.
54500 * m4/path-concat.m4 (gl_PATH_CONCAT): Don't check for standard C
54501 headers, memory.h, stdlib.h, string.h, strings.h.
54502 * m4/posixtm.m4 (gl_POSIXTM): Don't check for stdlib.h, string.h.
54503 * m4/posixver.m4 (gl_POSIXVER): Don't check for getenv.
54504 * m4/putenv.m4 (gl_PREREQ_PUTENV): Don't check for string.h, memcpy,
54506 * m4/readtokens.m4 (gl_READTOKENS): Don't check for standard C
54507 headers, memory.h, string.h.
54508 * m4/regex.m4 (jm_PREREQ_REGEX): Do not check for limits.h, string.h.
54509 * m4/rename.m4 (gl_PREREQ_RENAME): Do not check for stdlib.h, string.h,
54511 * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Don't check for standard C
54513 * m4/same.m4 (gl_SAME): Don't check for stdlib.h, string.h, free.
54514 * m4/save-cwd.m4 (gl_SAVE_CWD): Don't check for standard C headers.
54515 * m4/savedir.m4 (gl_SAVEDIR): Don't check for standard C headers.
54516 * m4/strchrnul.m4 (gl_PREREQ_STRCHRNUL): Don't check for string.h.
54517 * m4/xgetcwd.m4 (gl_XGETCWD): Don't check for stdlib.h.
54519 2003-09-09 Paul Eggert <eggert@twinsun.com>
54523 * lib/acosl.c (main): Use a prototype.
54524 * lib/asinl.c, cosl.c, expl.c, frexpl.c, ldexpl.c, sinl.c,
54527 * lib/getloadavg.c (getloadavg, main): Define via prototypes.
54529 * lib/getopt.h (struct option.name): Assume C89, and use 'const'.
54530 (getopt, etopt_long, getopt_long_only, _getopt_internal)
54531 [defined __GNU_LIBRARY__]: Assume C89, so we can always declare
54533 * lib/getopt.c (const): Remove macro.
54534 Include <string.h> unconditionally.
54535 (my_index): Remove; all uses changed to strchr.
54536 (strlen): Remove decl.
54537 (exchange): Remove forward decl; no longer needed.
54538 (exchange, _getopt_initialize, _getopt_internal, getopt, main):
54539 Define with prototype.
54540 * lib/getopt1.c (const): Remove macro.
54541 (getopt_long, getopt_long_only, main): Define with prototype.
54543 * lib/getugroups.c: Include <string.h> unconditionally.
54545 * lib/getusershell.c: Include <stdlib.h> unconditionally.
54546 (getusershell, setusershell, endusershell, readname, main):
54547 Define with prototypes.
54549 * lib/group-member.c: Include group-member.h first.
54550 Include <stdlib.h> unconditionally.
54552 * lib/hard-locale.c: Include hard-locale.h first.
54553 Include <stdlib.h>, <string.h> unconditionally.
54555 * lib/hash.c (free, malloc): Remove decls.
54556 Include <stdlib.h> unconditionally.
54558 * lib/human.c: Include <stdlib.h>, <string.h> unconditionally.
54559 (getenv): Do not declare.
54561 * lib/idcache.c: Include <string.h> unconditionally.
54563 * lib/long-options.c: Include long-options.h first, to test interface.
54564 Include <stdlib.h> unconditionally.
54566 * lib/makepath.c: Include makepath.h first, to test interface.
54567 Include <stdlib.h> and <string.h> unconditionally.
54569 * lib/linebuffer.c: Include <stdlib.h>.
54570 (free): Remove decl.
54572 * lib/malloc.c: Include <stdlib.h>, for malloc; don't bother with
54573 stddef.h. rpl_malloc returns void *, not char *.
54574 * lib/realloc.c (rpl_realloc): Likewise. Also, define with a
54577 * lib/md5.h: Include <limits.h> unconditionally.
54578 (UINT_MAX_32_BITS): Don't worry about non-__STDC__ case.
54579 (__P): Remove; all uses removed.
54580 * lib/md5.c: Include "md5.h" first.
54581 (md5_init_ctx, md5_read_ctx, md5_finish_ctx, md5_stream,
54582 md5_buffer, md5_process_bytes, md5_process_block):
54583 Define with prototypes.
54584 * lib/sha.h (__P): Remove all uses. (It wasn't defined??)
54585 * lib/sha.c: Include "sha.h" first.
54586 Include <stdlib.h>, <string.h> unconditionally.
54588 * lib/memchr.c (__ptr_t): Remove; all uses changed to void *.
54589 * lib/memcmp.c (__ptr_t): Likewise.
54590 * lib/memrchr.c (__ptr_t): Likewise.
54591 * lib/memchr.c, memcmp.c, memcoll.c, memrchr.c:
54592 Include <string.h> unconditionally.
54593 * lib/memchr.c, memrchr.c: Include <limits.h> unconditionally.
54594 * lib/memchr.c: Include <stdlib.h> unconditionally.
54595 * lib/memchr.c (LONG_MAX): Remove.
54596 * lib/memrchr.c (LONG_MAX): Likewise.
54597 * lib/memchr.c (__memchr): Define via a prototype.
54598 * lib/memrchr.c (__memrchr): Likewise.
54599 * lib/memcmp.c (__P): Remove, and remove all uses.
54600 (memcmp_bytes, memcmp_common_alignment, memcmp_not_common_alignment):
54601 Remove forward decls; no longer needed.
54602 * lib/memcpy.c, memmove.c, memset.c: Include <stddef.h>.
54603 Use types required by C89 in prototype.
54605 * lib/mkdir.c: Include <stdlib.h>, <string.h> unconditionally.
54606 * lib/savedir.c: Likewise.
54607 * lib/mkdir.c (free): Remove decl.
54608 * lib/rmdir.c (rmdir): Define with a prototype.
54609 * lib/savedir.c: Include savedir.h first, to test interface.
54611 * lib/mktime.c (STDC_HEADERS): Remove.
54612 Include <stdlib.h>, <string.h> unconditionally.
54614 * lib/modechange.c: Include <stdlib.h> unconditionally.
54615 (malloc): Remove decl.
54617 * lib/mountlist.c: Include <stdlib.h>, <string.h> unconditionally.
54618 (free): Remove decl.
54620 * lib/obstack.h (PTR_INT_TYPE) [!defined __PTRDIFF_TYPE__]:
54621 Define to ptrdiff_t, without bothering to check HAVE_STDDEF_H.
54622 (This type really should be intptr_t, but that's a C99ism.)
54623 (_obstack_memcpy): Remove: all uses changed to memcpy.
54624 Include <string.h> unconditionally.
54625 (struct obstack): Assume __STDC__ for types of members
54626 chunkfun, freefun, extra_arg.
54627 (_obstack_newchunk, _obstack_free, _obstack_begin, _obstack_begin_1,
54628 _obstack_memory_used, obstack_alloc_failed_handler, obstack_init,
54629 obstack_begin, obstack_specify_allocation,
54630 obstack_specify_allocation_with_arg, obstack_chunkfun,
54631 obstack_freefun, obstack_free) [! (defined __STDC__ && __STDC__)]:
54632 Remove unprototyped decls and the macros that use them.
54633 * lib/obstack.c (POINTER): Remove. All uses changed to void *.
54634 (obstack_alloc_failed_handler, CALL_CHUNKFUN, CALL_FREEFUN,
54635 _obstack_begin, _obstack_begin_1, _obstack_allocated_p)
54636 (defined __STDC__ && __STDC__)]:
54637 Remove nonprototyped code.
54638 Include <stdlib.h> unconditionally.
54639 (_obstack_begin, _obstack_begin_1, _obstack_newchunk,
54640 _obstack_allocated_p, _obstack_free, obstack_free,
54641 _obstack_memory_used, print_and_abort):
54642 Define using prototypes.
54643 (obstack_1grow, obstack_1grow_fast, obstack_alloc, obstack_base,
54644 obstack_blank, obstack_blank_fast, obstack_copy, obstack_copy0,
54645 obstack_finish, obstack_grow, obstack_grow0, obstack_make_room,
54646 obstack_next_free, obstack_object_size, obstack_room) [0]:
54647 Remove unused, unprototyped code.
54649 * lib/path-concat.c: Include <stdlib.h>, <string.h> unconditionally.
54651 * lib/physmem.c (physmem_total, physmem_available, main): Define
54654 * lib/posixtm.c: Include <stdlib.h>, <string.h> unconditionally.
54655 (main): Define with a prototype.
54657 * lib/posixver.c (getenv): Remove decl.
54659 * lib/putenv.c (malloc): Returns void *, not char *.
54660 Include <string.h> unconditionally.
54661 (strchr, memcpy, NULL): Do not define.
54663 * lib/readtokens.c: Include readtokens.h first, to test interface.
54664 Include <stdlib.h>, <string.h> unconditionally.
54665 (init_tokenbuffer): Define with a prototype.
54667 * lib/regex.c (PARAMS): Remove. All uses removed.
54668 All uses of _RE_ARGS removed, too.
54669 Include <stddef.h>, <stdlib.h>, <string.h>, <limits.h>
54671 (bzero): Assume memset exists.
54672 (memcmp, memcpy, NULL): Remove.
54673 (SIGN_EXTEND_CHAR): Remove; all uses replaced by casts to signed
54674 char, or assignments to local vars of type signed char.
54675 (init_syntax_once, PREFIX(extract_number_and_incr),
54676 PREFIX(print_partial_compiled_pattern),
54677 PREFIX(print_compiled_pattern), PREFIX(print_double_string),
54678 convert_mbs_to_wcs, print_fastmap, re_set_syntax,
54679 PREFIX(regex_grow_registers), PREFIX(regex_compile),
54680 PREFIX(store_op1), PREFIX(store_op2), PREFIX(insert_op1),
54681 PREFIX(insert_op2), PREFIX(at_begline_loc_p),
54682 PREFIX(at_endline_loc_p), group_in_compile_stack, insert_space,
54683 wcs_compile_range, byte_compile_range, truncate_wchar,
54684 PREFIX(re_compile_fastmap), re_compile_fastmap, re_set_registers,
54685 re_search, re_search_2, PREFIX(re_search_2), re_match, re_match_2,
54686 count_mbs_length, wcs_re_match_2_internal,
54687 byte_re_match_2_internal, PREFIX(group_match_null_string_p),
54688 PREFIX(alt_match_null_string_p),
54689 PREFIX(common_op_match_null_string_p), PREFIX(bcmp_translate),
54690 re_compile_pattern, re_comp, re_exec, regcomp, regexec, regerror,
54691 regfree, PREFIX(extract_number)): Define with prototype. Remove
54692 now-unnecessary declaration, if any.
54693 (byte_compile_range, PREFIX(regex_compile), re_comp, re_exec,
54695 Remove now-unnecessary casts among pointer types.
54696 * lib/regex.h (_RE_ARGS): Remove. All uses removed.
54698 * lib/rename.c: Include <stdlib.h>, <string.h> unconditionally.
54699 (free): Remove decl.
54701 * lib/rpmatch.c: Include <stdlib.h> unconditionally.
54703 * lib/same.c: Include <stdlib.h>, <string.h> unconditionally.
54704 (free): Remove decl.
54706 * lib/save-cwd.c: Include <stdlib.h> unconditionally.
54707 * lib/xgetcwd.c: Likewise.
54709 * lib/stat.c: Include <stdlib.h>, <string.h> unconditionally.
54710 (free): Remove decl.
54712 * lib/strchrnul.c (strchrnul): Define with a prototype.
54713 Fix bug: c_in was not converted to char before searching.
54715 The following changes are not K&R related:
54717 * lib/group-member.h: Include <sys/types.h>, so that this file is
54719 * lib/makepath.h: Likewise.
54721 * lib/getusershell.c (readname, default_index, line_size, readname):
54722 Use size_t, not int, for sizes.
54723 (readname): If the size overflows, report an error instead of
54726 2003-09-09 Paul Eggert <eggert@twinsun.com>
54728 * config/srclist.txt: Do not get getopt.h, getopt1.c, or regex.h from
54731 2003-09-09 Paul Eggert <eggert@twinsun.com>
54733 * README: New section: portability guidelines.
54735 2003-09-09 Derek Robert Price <derek@ximbiot.com>
54737 * m4/getndelim2.m4 (gl_PREREQ_GETNDELIM2): Assume stdlib.h per the
54740 2003-09-09 Derek Robert Price <derek@ximbiot.com>
54742 * lib/getndelim2.c: Assume stdlib.h per the C89 spec.
54744 2003-09-08 Paul Eggert <eggert@twinsun.com>
54746 Assume C89 or better; remove K&R cruft.
54747 A few of these changes were first proposed by Derek Robert Price
54748 in <http://mail.gnu.org/archive/html/bug-gnulib/2003-07/msg00105.html>.
54750 * lib/addext.c: Include <string.h> unconditionally.
54751 * lib/backupfile.c: Include <string.h>, <stdlib.h> unconditionally.
54752 Don't declare getenv or malloc.
54754 * lib/alloca.c: Include <string.h>, <stdlib.h> unconditionally.
54755 (POINTER_TYPE, pointer): Remove; all uses changed to void *.
54757 (find_stack_direction, alloca): Use prototypes.
54759 * lib/atexit.c (atexit): Define using a prototype.
54761 * lib/basename.c, dirname.c, stripslash.c:
54762 Include <string.h> unconditionally.
54764 * lib/bcopy.c: Include <stddef.h>.
54765 (bcopy): Define with prototype, using 'const' and 'void' and 'size_t'.
54767 * lib/canon-host.c: Include <stdlib.h>, <string.h> unconditionally.
54769 * lib/error.h (error, error_at_line, error_print_progname)
54770 [! (defined (__STDC__) && __STDC__)]: Remove decls.
54771 * lib/error.c: Include error.h first, to check interface.
54772 Include <stdarg.h>, <stdlib.h>, <string.h> unconditionally.
54773 (VA_START): Remove; all uses changeed to va_start.
54774 (exit, strerror): Remove decls.
54775 (error_print_progname): Prototype uncondionally.
54776 Don't include <errno.h>; no longer needed.
54777 (private_strerror): Remove.
54778 (error_tail): Always define.
54779 (error, error_at_line): Assume C89 or better; always use prototypes.
54780 * lib/fatal.c: Include "fatal.h" first, to test interface.
54781 Include <stdarg.h>, <stdlib.h>, <string.h> unconditionally.
54782 (VA_START): Remove; all uses changed to va_start.
54783 [! (HAVE_VPRINTF || HAVE_DOPRNT || _LIBC)]: Remove support for
54785 (exit): Remove decl.
54786 (fatal): Prototype unconditionally. Assume va_start works.
54787 Abort at end, to pacify gcc.
54789 * lib/euidaccess.c (main): Define with a prototype.
54791 * lib/exclude.c: Include <stdlib.h>, <string.h> unconditionally.
54793 * lib/exitfail.c: Include <stdlib.h> unconditionally.
54795 * lib/fnmatch_.h (__P): Remove. All uses changed to assume
54797 * lib/fnmatch.c: Include fnmatch.h first, to test interface.
54798 Include <string.h>, <stddef.h>, <stdlib.h> unconditionally.
54799 (getenv): Remove decl.
54800 (fnmatch): Define using a prototype.
54801 * lib/fnmatch_loop.c (FCT): Remove forward decl; no longer needed.
54802 (FCT): Define using a prototype.
54804 * lib/getdate.y: Include <stdlib.h>, <string.h> unconditionally.
54806 * lib/gethostname.c: Include <stddef.h>.
54807 (gethostname): Define with prototype. Length is size_t, not int.
54809 2003-09-08 Paul Eggert <eggert@twinsun.com>
54811 Assume C89 or better; remove K&R cruft.
54812 * m4/alloca.m4 (gl_PREREQ_ALLOCA): Don't check for stdlib.h, string.h.
54813 * m4/backupfile.m4 (gl_BACKUPFILE): Don't check for stdlib.h,
54814 string.h, getenv, malloc.
54815 * m4/dirname.m4 (gl_DIRNAME): Don't check for string.h or C standard
54817 * m4/canon-host.m4 (gl_CANON_HOST): Don't check for string.h, stdlib.h.
54818 * m4/error.m4 (jm_PREREQ_ERROR): Do not require STDC headers, and
54819 do not check for strerror.
54820 * m4/exclude.m4: Do not check for stdlib.h, string.h, strings.h.
54821 * m4/exitfail.m4 (gl_EXITFAIL): Do not check for stdlib.h.
54822 * m4/fatal.m4 (gl_FATAL): Do not require STDC headers, and
54823 do not check for doprnt or vprintf.
54824 * m4/fnmatch.m4 (gl_PREREQ_FNMATCH_EXTRA): Remove. All uses removed.
54825 * m4/getdate.m4 (gl_GETDATE): Don't check for stdlib.h or string.h.
54827 2003-09-08 Paul Eggert <eggert@twinsun.com>
54829 * lib/getversion.c: Remove; was migrated to backupfile.c in 1997.
54830 getversion.c should have been removed then, but was accidentally
54833 * lib/utime.c [!HAVE_UTIMES_NULL]: Include <sys/stat.h>, <fcntl.h>.
54834 (utime_null): Fix typo: 'st' was sometimes called 'sb'.
54836 2003-09-08 Karl Berry <karl@gnu.org>
54838 * config/config.sub, config.guess, srclistvars.sh: update from savannah
54839 config, forget about prep.
54841 * config/depcomp, missing: update from automake.
54843 2003-09-07 Paul Eggert <eggert@twinsun.com>
54845 * modules/time_r: Depend on 'restrict'. Fix from Simon Josefsson in
54846 <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00028.html>.
54848 2003-09-07 Paul Eggert <eggert@twinsun.com>
54850 * lib/time_r.c (gmtime_r, localtime_r): Fix silly typo: missing arg to
54851 copy_tm_result. Bug reported by Simon Josefsson in
54852 <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00028.html>.
54854 2003-09-06 Paul Eggert <eggert@twinsun.com>
54856 * m4/time_r.m4: New file.
54857 * m4/mktime.m4 (gl_PREREQ_MKTIME): Remove check for limits.h.
54858 * m4/timegm.m4 (gl_FUNC_TIMEGM): Assume that timegm is buggy if mktime
54859 is. Check for timegm declaration.
54860 (gl_PREREQ_TIMEGM): Require gl_FUNC_MKTIME.
54861 Do not check for gmtime_r.
54862 Replace mktime if __mktime_internal does not exist and if mktime
54863 hasn't been replaced already.
54865 2003-09-06 Paul Eggert <eggert@twinsun.com>
54867 * lib/time_r.c, lib/time_r.h: New files.
54869 * lib/mktime.c (my_mktime_localtime_r): Remove; all uses changed to
54871 (__localtime_r) [!defined _LIBC]: New macro. Include <time_r.h>.
54872 (__mktime_internal) [!defined _LIBC]: Now extern, not static.
54874 * lib/strftime.c (my_strftime_gmtime_r): Remove; all uses changed to
54876 (my_strftime_localtime_r): Remove; all uses changed to __localtime_r.
54877 (__gtime_r, __localtime_r) [!HAVE_TM_GMTOFF]: New macros.
54878 Include <time_r.h>.
54880 * lib/timegm.c: Switch to glibc implementation, with the following
54882 [defined HAVE_CONFIG_H]: Include <config.h>.
54883 [!defined _LIBC]: Include "timegm.h" rather than <time.h>.
54884 (__mktime_internal) [!defined _LIBC]: New decl.
54885 (__gmtime_r) [!defined _LIBC]: New macro and function.
54886 (timegm): Use a prototype, since gnulib assumes C89.
54887 Do not bother declaring tmp to be const, as it's not really usefu.
54888 * lib/timegm.h: Hoist "#include <time.h>" out of #ifdef.
54889 (timegm): Declare only if HAVE_DECL_TIMEGM.
54891 2003-09-06 Paul Eggert <eggert@twinsun.com>
54893 * MODULES.html.sh (func_all_modules): Add time_r.
54894 * modules/time_r: New file.
54895 * modules/mktime, modules/strftime, modules/timegm: Depend on time_r.
54896 * modules/timegm: Depend on mktime. Change maintainer to "all, glibc".
54898 2003-09-03 Paul Eggert <eggert@twinsun.com>
54900 * lib/human.c (human_readable): Fix bug that rounded 10501 to 10k.
54901 Bug reported by Lute Kamstra in
54902 <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00003.html>.
54904 * lib/getdate.y (relative_time_table): Use tDAY_UNIT for "tomorrow",
54905 "yesterday", "today", and "now" rather than tMINUTE_UNIT. Of
54906 course with correspondingly smaller numbers for tomorrow and
54907 yesterday. From Tadayoshi Funaba. Originally installed into
54908 sh-utils on 1999-08-07, but the patch got lost (I guess during the
54911 2003-08-31 Simon Josefsson <jas@extundo.com>
54913 * modules/timegm: New file.
54914 * MODULES.html.sh (func_all_modules): Add timegm.
54916 2003-08-31 Simon Josefsson <jas@extundo.com>
54918 * m4/timegm.m4: New file.
54920 2003-08-31 Simon Josefsson <jas@extundo.com>
54922 * lib/timegm.h: New file.
54923 * lib/timegm.c: New file. Based on
54924 wget-1.8.2/src/http.c:mktime_from_utc.
54926 2003-08-31 Karl Berry <karl@gnu.org>
54928 * lib/argp.h: update from libc.
54930 2003-08-28 Bruno Haible <bruno@clisp.org>
54932 * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Remove AC_DEFINE of fnmatch here.
54933 This avoids havoc on compilers for which '#define fnmatch rpl_fnmatch'
54934 followed by '#define fnmatch fnmatch_posix' gives an error.
54936 2003-08-28 Bruno Haible <bruno@clisp.org>
54938 * lib/binary-io.h: Undefine O_BINARY before defining it. This avoids a
54939 warning on QNX, which defines O_BINARY to 000000.
54941 2003-08-27 Jim Meyering <jim@meyering.net>
54943 * m4/mkstemp.m4: Require that the system mkstemp be able to create
54944 70 temporary files, not just 30. Tru64 V4.0F's mkstemp function
54945 would fail after 32. Reported by Danny Levinson. Details here:
54946 http://mail.gnu.org/archive/html/bug-coreutils/2003-08/msg00124.html
54948 2003-08-24 Bruno Haible <bruno@clisp.org>
54950 * lib/binary-io.h: Include <stdio.h>, to avoid a compilation error when
54951 MSVC7 <stdio.h> is included later.
54953 2003-08-22 Simon Josefsson <jas@extundo.com>
54955 * modules/strndup (Makefile.am): Add strndup.h to lib_SOURCES.
54957 2003-08-20 Karl Berry <karl@gnu.org>
54959 * m4/lib-ld.m4: serial 1003 from gettext, no changes besides serial.
54961 2003-08-20 Bruno Haible <bruno@clisp.org>
54963 * modules/progname: New file.
54964 * MODULES.html.sh (func_all_modules): Add progname.
54966 2003-08-20 Bruno Haible <bruno@clisp.org>
54968 * lib/progname.h: New file, from GNU gettext.
54969 * lib/progname.c: New file, from GNU gettext.
54970 * lib/progreloc.c: New file, from GNU gettext.
54972 2003-08-19 Jim Meyering <jim@meyering.net>
54974 * m4/lib-ld.m4: Revert yesterday's change, per Bruno's request here:
54975 http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00155.html
54977 2003-08-19 Bruno Haible <bruno@clisp.org>
54979 * m4/xalloc.m4 (gl_PREREQ_XSTRDUP): Don't check for <string.h> any
54982 2003-08-19 Bruno Haible <bruno@clisp.org>
54984 * lib/xstrdup.c: Assume <string.h> exists.
54986 2003-08-18 Paul Eggert <eggert@twinsun.com>
54988 * modules/stdbool: Add BUILT_SOURCES. Prefer $@ to target name
54991 2003-08-18 Jim Meyering <jim@meyering.net>
54993 * m4/getloadavg.m4: Use [\t ], not [ \t] (where \t is a literal TAB).
54994 * m4/lib-ld.m4: Likewise.
54996 2003-08-18 Jim Meyering <jim@meyering.net>
54998 * lib/setenv.h: Indent nested cpp directive.
54999 * lib/vasnprintf.c: Remove trailing blanks.
55001 2003-08-17 Simon Josefsson <jas@extundo.com>
55003 * modules/xstrndup: New file.
55004 * MODULES.html.sh (func_all_modules): Add xstrndup.
55006 2003-08-17 Simon Josefsson <jas@extundo.com>
55008 * modules/argp: Fix autoconf macro name. Add more dependencies.
55010 2003-08-17 Simon Josefsson <jas@extundo.com>
55012 * m4/xstrndup.m4: New file.
55014 2003-08-17 Simon Josefsson <jas@extundo.com>
55016 * m4/argp.m4: New file.
55018 2003-08-17 Simon Josefsson <jas@extundo.com>
55019 Bruno Haible <bruno@clisp.org>
55021 * lib/xstrndup.h: New file.
55022 * lib/xstrndup.c: New file.
55024 2003-08-17 Bruno Haible <bruno@clisp.org>
55026 * modules/strndup (Files, Include): Add lib/strndup.h.
55028 2003-08-17 Bruno Haible <bruno@clisp.org>
55030 * modules/euidaccess (Files): Add lib/euidaccess.h.
55032 2003-08-17 Bruno Haible <bruno@clisp.org>
55034 * lib/strndup.h: New file.
55036 2003-08-17 Bruno Haible <bruno@clisp.org>
55038 * gnulib-tool (func_create_testdir): Handle gl_USE_SYSTEM_EXTENSIONS
55039 like AC_GNU_SOURCE.
55040 * modules/extensions (configure.ac): Comment out the invocation of
55041 gl_USE_SYSTEM_EXTENSIONS.
55043 2003-08-16 Paul Eggert <eggert@twinsun.com>
55045 Merges from coreutils, etc.
55046 * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Insert ':' to prevent a syntax
55047 error in gl_FUNC_MATCH. This fixes a bug I introduced on 2003-05-28.
55048 * m4/readlink.m4 (gl_PREREQ_READLINK): Renamed from gl_PREREQ_READLINE,
55050 * m4/host-os.m4 (UTILS_HOST_OS): Add GNU/NetBSD, GNU/FreeBSD.
55051 * m4/hash.m4 (gl_HASH): Use AM_STDBOOL_H, not AC_HEADER_STDBOOL.
55053 2003-08-16 Paul Eggert <eggert@twinsun.com>
55055 Document merge from coreutils.
55056 * modules/alloca: Append $(ALLOCA_H) to BUILT_SOURCES.
55057 * modules/fnmatch: Append $(FNMATCH_H) to BUILT_SOURCES.
55058 * modules/utime: Add m4/utimes-null.m4.
55060 2003-08-16 Paul Eggert <eggert@twinsun.com>
55062 * lib/regex.h, strdup.c, strtoll.c, strtoul.c: Do not normalize white
55063 space, undoing this 2003-08-12 change:
55064 <http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00080.html>
55066 2003-08-16 Paul Eggert <eggert@twinsun.com>
55068 * config/srclist.txt: Get regex.h, strdup.c, strtoll.c,
55069 strtoul.c from libc, undoing this 2003-08-12 change:
55070 <http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00080.html>
55072 2003-08-16 Jim Meyering <jim@meyering.net>
55074 Merges from coreutils.
55075 * m4/readdir.m4 (GL_FUNC_READDIR): Change name to have GL_ (not jm_)
55076 prefix. Adjust cache variables similarly. Create 500 rather than
55077 just 300 files, to exercise bug on Darwin6.5, too.
55078 * m4/perl.m4 (jm_PERL): Use $am_missing_run, not undefined
55080 * m4/jm-winsz1.m4: Require AC_SYS_POSIX_TERMIOS, not
55081 AM_SYS_POSIX_TERMIOS.
55082 Reported by mkc@mathdogs.com.
55083 Also change use of $am_cv_sys_posix_termios
55084 to $ac_cv_sys_posix_termios. Reported by Andreas Schwab.
55085 * m4/getgroups.m4 (jm_FUNC_GETGROUPS): Rewrite to use AC_FUNC_GETGROUPS
55086 and (if needed) to call AC_LIBOBJ and to set GETGROUPS_LIB.
55087 * m4/fsusage.m4 [__GLIBC__]: GNU libc's statvfs stats each mount point
55088 in /proc/mounts until it finds one with matching device number. This
55089 is unnecessary when the FILE argument *is* a mount point. No stat call
55090 is necessary in that case. So, disable the statvfs-testing code on
55091 systems with GNU libc. Reported by Andrei Gaponenko via Tim Waugh
55092 as RedHat bug# 84846.
55093 * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Limit stack size
55094 to 1MB, so as not to render systems with no stack size limit (e.g.,
55095 linux-2.2.x) unusable. Suggestion and code from Bruno Haible.
55096 Include <unistd.h>. On some systems,
55097 it is required for the definition of _SC_PAGESIZE.
55099 2003-08-16 Jim Meyering <jim@meyering.net>
55101 Merge from coreutils.
55102 * lib/xstrtoimax.c: #else #if -> #elif.
55103 * lib/xstrtoumax.c: Likewise.
55105 2003-08-16 Jim Meyering <jim@meyering.net>
55107 * m4/utimes.m4 (gl_FUNC_UTIMES): New file.
55108 * m4/utimes.m4: Removed.
55109 * m4/utimes-null.m4: Renamed from utimes.m4.
55111 * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Limit stack size
55112 to 1MB, so as not to render systems with no stack size limit (e.g.,
55113 linux-2.2.x) unusable. Suggestion and code from Bruno Haible.
55114 Include <unistd.h>. On some systems,
55115 it is required for the definition of _SC_PAGESIZE.
55117 2003-08-16 Jim Meyering <jim@meyering.net>
55118 and Paul Eggert <eggert@cs.ucla.edu>
55120 Merges from coreutils, etc.
55122 * m4/jm-macros.m4 (AC_LANG_SOURCE(C)): New macro, undefine, then define
55123 using the latest version from cvs. This avoids problems with #line
55124 directives using a vendor (Sun) compiler.
55125 (jm_MACROS): Bump prerequisite from 2.52g to 2.57.
55126 Don't set GETGROUPS_LIB here; now it's
55127 done via getgroups.m4's wrapper function.
55128 AC_SUBST OPTIONAL_BIN_PROGS, OPTIONAL_BIN_ZCRIPTS, and MAN here,
55129 rather than just in sh-util/configure.in, so that the
55130 now-shared-by-fileutils-and-textutils lib/Makefile.am are all the
55132 Use AC_CONFIG_LIBOBJ_DIR(lib) to tell the new
55133 AC_FUNC_GETLOADAVG where to find getloadavg.c.
55134 Require AC_FUNC_FTW, gt_INTTYPES_PRI, gl_CLOCK_TIME,
55135 UTILS_SYS_OPEN_MAX, GL_FUNC_GETCWD_PATH_MAX, GL_FUNC_READDIR,
55136 gl_FSUSAGE, gl_MOUNTLIST, AC_FUNC_CANONICALIZE_FILE_NAME.
55137 Remove code that is now done by the newly-required macros.
55138 Append $(EXEEXT) to DF_PROG.
55139 AC_LIBOBJ fchdir-stub if fchdir doesn't exist; similarly for fchown.
55140 Do not invoke or require the following here,
55141 since prereq.m4 or some gnulib .m4 now does this for us:
55142 gl_REGEX, UTILS_FUNC_MKDIR_TRAILING_SLASH, jm_BISON, gl_FUNC_MKTIME,
55143 jm_FUNC_LSTAT, jm_FUNC_STAT, jm_FUNC_REALLOC, jm_FUNC_MALLOC,
55144 jm_FUNC_NANOSLEEP, jm_FUNC_READDIR, jm_FUNC_MEMCMP,
55145 jm_FUNC_GLIBC_UNLOCKED_IO, AC_FUNC_FNMATCH_GNU, jm_FUNC_PUTENV,
55146 jm_AC_PREREQ_XSTRTOUMAX, jm_AC_PREREQ_XSTRTOIMAX,
55147 AC_FUNC_ERROR_AT_LINE, jm_FUNC_GNU_STRFTIME, AC_FUNC_VPRINTF,
55148 vb_FUNC_RENAME, UTILS_FUNC_MKSTEP, jm_FUNC_UTIME, AM_FUNC_GETLINE,
55150 Do not replace the following functions, as this is now the job
55151 of some gnulib .m4: strcasecmp, strncasecmp, dup2, gethostname,
55152 getusershell, sig2str, strcspn, stpcpy, strstr, strtol, strtoul
55153 strpbrk, euidaccess, memcmp, rmdir, rpmatch, strndup, strverscmp,
55154 atexit getpass, strdup, getpagesize.
55156 Do not check for the following functions, as this is now the job
55157 of some gnulib .m4: bcopy, canonicalize_file_name, fchdir, ftime,
55158 getcwd, getmntinfo, resolvepath. But check for sysctl, setreuid,
55160 (jm_CHECK_ALL_HEADERS): Do not check for fenv.h.
55161 Check for sys/sysctl.h.
55162 (jm_CHECK_ALL_TYPES): Do not require AC_STRUCT_TM, AC_STRUCT_TIMEZONE,
55163 jm_CHECK_TYPE_STRUCT_TIMESPEC. Invoke gt_TYPE_SSIZE_T instead
55164 of checking for ssize_t ourselves.
55166 * m4/prereq.m4 (jm_PREREQ): Don't invoke macros; AC_REQUIRE them.
55167 Require every macro that gnulib/modules/* suggests for us.
55168 (jm_PREREQ_ADDEXT): New macro.
55169 (jm_PREREQ_STAT): Check for 'struct statfs' on Ultrix 4.4.
55170 Require jm_AC_TYPE_LONG_LONG instead of invoking it.
55172 * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): New macro.
55173 (gl_PHYSMEM): Use it.
55174 Also check for `table' function.
55175 Check for new headers and functions.
55176 Add check for sys/sysmp.h.
55177 With suggestions from Kaveh Ghazi.
55178 Ignore headers that are present but cannot be compiled. This
55179 avoids spurious warnings on Solaris 9 sparc with Forte Developer 7
55182 2003-08-15 Paul Eggert <eggert@twinsun.com>
55184 Document merge from coreutils.
55185 * modules/userspec: Depend on posixver.
55186 * modules/strftime: Depend on tzset.
55188 2003-08-15 Paul Eggert <eggert@twinsun.com>
55190 * lib/config.charset, ref-add.sin, ref-del.sin: Use three spaces,
55191 rather than tab, after '#' in shell-script copyright notices.
55192 Suggested by Bruno Haible.
55194 2003-08-15 Paul Eggert <eggert@twinsun.com>
55196 * config/srclist-update: Use three spaces, rather than tab, after '#'
55197 in shell-script copyright notices. Suggested by Bruno Haible.
55198 Remove unnecessary parenthesization in regular expression.
55200 2003-08-15 Jim Meyering <jim@meyering.net>
55202 Merge from coreutils.
55203 * lib/xgethostname.c: Include <stdlib.h>.
55204 (xghostname): Don't exit for anything other than memory-related
55205 failure; just return NULL.
55206 * lib/userspec.c: Include "posixver.h".
55207 (parse_user_spec): Accept `.' as a separator only
55208 in pre-POSIX-200112 mode.
55209 * lib/strtoimax.c: Use #elif rather than #else #if.
55210 * lib/strftime.c (my_strftime) [!_LIBC && HAVE_TZNAME && HAVE_TZSET]:
55211 Remove function, now that we can rely on a working tzset function.
55212 [!_LIBC]: Ensure that the required autoconf test has been run.
55213 [!defined _NL_CURRENT && HAVE_STRFTIME]:
55214 Use underlying_strftime for %r.
55215 * lib/sha.c: Merge in some clean-up and optimization changes from
55217 * lib/sha.c (sha_stream) [BLOCKSIZE]: Move definition to top of file.
55218 Ensure that it is a multiple of 64.
55219 Rearrange loop exit tests so as to avoid performing an
55220 additional fread after encountering an error or EOF.
55221 * lib/realloc.c: Update copyright date.
55223 2003-08-15 Jim Meyering <jim@meyering.net>
55224 and Paul Eggert <eggert@twinsun.com>
55226 Merge from coreutils.
55227 * lib/readutmp.h (HAVE_UTMPX_H): Undef if struct utmp has the ut_exit
55228 member but strut utmpx does not. Needed for AIX 4.3.3.
55229 (UT_EXIT_E_TERMINATION, UT_EXIT_E_EXIT): Define.
55231 2003-08-15 Jim Meyering <jim@meyering.net>
55232 and Paul Eggert <eggert@cs.ucla.edu>
55234 Merges from coreutils, etc.
55235 * m4/strftime.m4 (_jm_STRFTIME_PREREQS):
55236 Require gl_FUNC_TZSET_CLOBBER.
55237 * m4/readutmp.m4 (gl_READUTMP): Check for ut_exit.ut_exit,
55238 ut_exit.e_exit, ut_exit.ut_termination, and ut_exit.e_termination
55241 2003-08-14 Paul Eggert <eggert@twinsun.com>
55243 Help the merge from coreutils.
55244 * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): New macro.
55245 (AC_FUNC_GETTIMEOFDAY_CLOBBER): Use it.
55246 * m4/tzset.m4: Use it too.
55248 2003-08-14 Paul Eggert <eggert@twinsun.com>
55250 * modules/tzset: New file.
55252 2003-08-14 Jim Meyering <jim@meyering.net>
55254 Merges from coreutils.
55255 * modules/fnmatch: Use the `$(FNMATCH_H)' notation for AC_REPLACED
55256 variable names, rather than @FNMATCH_H@.
55257 * modules/alloca: Likewise for $(ALLOCA_H).
55259 * modules/fnmatch (fnmatch.h): Use `$@' in the commands, in place of
55260 the three copies of the literal target, `fnmatch.h'.
55261 * modules/alloca (alloca.h): Likewise.
55263 2003-08-14 Jim Meyering <jim@meyering.net>
55265 Merge from coreutils.
55266 * m4/tzset.m4: New file.
55267 * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Move the
55268 MOUNTED_VMOUNT test to precede the MOUNTED_GETMNTENT1 tests, since
55269 otherwise, AIX 5.1 systems would end up using the latter.
55270 MOUNTED_GETMNTENT1 support is inadequate on such systems: 1) detecting
55271 whether a file system is remote doesn't work 2) the MOUNTED_VMOUNT
55272 code reports the HOSTNAME:/MOUNT_POINT, while the MOUNTED_GETMNTENT1
55273 code reports merely /MOUNT_POINT. Reported by Mike Jetzer.
55275 2003-08-14 Jim Meyering <jim@meyering.net>
55277 Merge from coreutils.
55278 * lib/obstack.h: Whitespace changes.
55279 * lib/mountlist.c: Remove anachronistic casts of xmalloc, xrealloc,
55280 and xcalloc return values.
55281 (read_filesystem_list) [MOUNTED_GETFSSTAT]:
55282 Use MNT_NOWAIT, rather than MNT_WAIT. Otherwise, `df DIR' could
55283 hang on OSF/1 5.1 for DIR on both local and remote file systems.
55284 Reported by (and fix confirmed by) Nelson H. F. Beebe.
55285 (read_filesystem_list) [MOUNTED_VMOUNT]: Detect any
55287 Use mntctl's return value to drive the entry-processing loop, since
55288 we can't rely on the value of the vmt_length member in the last
55289 entry. On some systems doing so could result in exhausting
55290 virtual memory. Based in part on a patch from Mike Jetzer.
55292 2003-08-14 Jim Meyering <jim@meyering.net>
55293 and Paul Eggert <eggert@twinsun.com>
55295 Merges from coreutils, plus other fixes.
55296 * lib/physmem.c: Merge in portability changes from gcc/libiberty
55297 to support AIX, IRIX, Tru64, and Windows. See the ChangeLog there
55298 for credits and details. Thanks to Kaveh Ghazi for helping
55299 to keep these files in sync.
55300 (ARRAY_SIZE): Define it.
55301 (physmem_total, physmem_available): Add comments. From Kaveh Ghazi.
55302 * lib/memcasecmp.c: Remove unnecessary parentheses after 'defined'.
55303 (memcasecmp): Don't assume size_t fits in unsigned int.
55304 Remove casts and duplicate code.
55305 * lib/md5.c: Include <string.h> and <stdlib.h> unconditionally.
55306 (memcpy): Remove definition.
55307 Merge in some clean-up and optimization changes from glibc.
55308 [BLOCKSIZE]: Move definition to top of file.
55309 Ensure that it is a multiple of 64.
55310 Rearrange loop exit tests so as to avoid performing an
55311 additional fread after encountering an error or EOF.
55312 * lib/md5.h (md5_uintptr): Define.
55313 * lib/makepath.c (CLEANUP_CWD): Report an error if we failed to
55314 return to the initial working directory. Preserve errno
55316 * lib/idcache.c: Include "xalloc.h".
55317 (xmalloc, xrealloc): Remove decls.
55318 (getuser): Remove casts no longer required in C89.
55319 * lib/human.c: Include stdio.h, for sprintf.
55320 * lib/group-member.c: Include "xalloc.h".
55321 (xmalloc, xrealloc): Remove decls.
55322 (get_group_info): Remove casts no longer required in C89.
55323 * lib/getusershell.c (readname): Remove casts no longer required in
55325 * lib/gettimeofday.c (rpl_gmtime, rpl_tzset): New functions.
55326 * lib/getline.c: Whitespace fix, from coreutils.
55328 2003-08-13 Paul Eggert <eggert@twinsun.com>
55330 * m4/exclude.m4 (gl_EXCLUDE): Require AC_C_INLINE, AC_HEADER_STDC.
55333 * m4/gettext.m4, iconv.m4, intdiv0.m4, inttypes-pri.m4, lib-link.m4,
55334 lib-prefix.m4, longdouble.m4, po.m4, progtest.m4, signed.m4:
55335 Undo previous (whitespace-only) change.
55337 2003-08-13 Paul Eggert <eggert@twinsun.com>
55339 * lib/exclude.c: Include <ctype.h>
55340 (IN_CTYPE_DOMAIN): New macro.
55341 (is_space): New fn.
55342 (add_exclude_file): If LINE_END is a space, ignore trailing spaces
55345 * lib/argp-help.c, argp-parse.c, config.charset, getopt.h:
55346 Undo previous (whitespace-only) change.
55348 2003-08-13 Paul Eggert <eggert@twinsun.com>
55350 * config/srclist-update: Change update back to the old behavior,
55351 leaving whitespace alone. Use one 'sed' command rather than a
55353 (fixlicense): Now a variable, not a function.
55354 (remove_trailing_blanks): Remove.
55355 (fixfile): Don't invoke unexpand or cat, or remove trailing blanks.
55356 * config/config.guess, config.sub, install-sh, missing, texinfo.tex:
55357 Undo previous (whitespace-only) change.
55359 2003-08-12 Paul Eggert <eggert@twinsun.com>
55361 Merge from coreutils.
55362 * modules/euidaccess: Add lib_SOURCES, include for new
55365 2003-08-12 Paul Eggert <eggert@twinsun.com>
55367 * m4/gettext.m4, iconv.m4, intdiv0.m4, inttypes-pri.m4, lib-link.m4,
55368 lib-prefix.m4, longdouble.m4, po.m4, progtest.m4, signed.m4:
55369 Normalize leading white space and remove trailing white space.
55371 Merge from coreutils
55372 * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Check for euidaccess decl.
55374 * m4/lib-ld.m4, lib-link.m4, lib-prefix.m4: Regenerate from gettext
55375 0.12.1. These files are now being upgraded automatically by
55376 ../config/srclist-update.
55378 2003-08-12 Paul Eggert <eggert@twinsun.com>
55380 * lib/argp-help.c, argp-parse.c, config.charset, getopt.h:
55381 Normalize leading white space and remove trailing white space.
55382 * lib/ref-add.sin, ref-del.sin: Use '#' before empty line in copyright
55383 notice, as per ../config/srclist-update.
55385 Merge from coreutils.
55386 * lib/euidaccess.h: New file.
55387 * lib/euidaccess.c: Include it.
55388 * lib/.cppi-disable: Add printf-args.h, printf-parse.h, stdbool_.h,
55389 vasnprintf.h, vasprintf.h. Remove strdup.c, gettext.h.
55390 * lib/regex.h, strdup.c, strtoll.c, strtoul.c: Normalize white space.
55392 2003-08-12 Paul Eggert <eggert@twinsun.com>
55394 * config/srclist-update: Add copyright notice.
55395 (remove_id_lines, remove_trailing_blanks): New constants.
55396 (fixfile): Use them to normalize spacing a bit in copied files.
55397 * config/config.guess, config.sub, install-sh, missing, texinfo.tex:
55398 Normalize leading white space and remove trailing white space.
55400 * config/texinfo.tex: Sync with texinfo.
55402 * config/srclist.txt: Don't get regex.h, strdup.c, strtoll.c,
55403 strtoul.c from libc, to merge coreutils whitespace changes.
55405 * config/srclist.txt: Get the following m4 files from gettext:
55406 codeset.m4, gettext.m4, glibc21.m4, iconv.m4, intdiv0.m4,
55407 inttypes-pri.m4, lcmessage.m4, lib-ld.m4, lib-link.m4, lib-prefix.m4,
55408 longdouble.m4, nls.m4, po.m4, progtest.m4, signed.m4, wchar_t.m4,
55411 2003-08-12 Karl Berry <karl@gnu.org>
55413 * config/srclist.txt: can't sync vasnprintf.c any more, changes have
55416 2003-08-11 Paul Eggert <eggert@twinsun.com>
55418 * modules/gnu-source, m4/gnu-source.m4:
55419 Remove; we're assuming Autoconf 2.54 or later now.
55420 Suggested by Bruno Haible.
55421 * MODULES.html.sh (func_all_modules): Remove gnu-source.
55423 2003-08-11 Bruno Haible <bruno@clisp.org>
55425 * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Also check for wcslen.
55427 2003-08-11 Bruno Haible <bruno@clisp.org>
55429 * lib/vasnprintf.c (local_wcslen): New function, for Solaris 2.5.1.
55430 (vasnprintf): Use it instead of wcslen.
55432 2003-08-11 Bruno Haible <bruno@clisp.org>
55434 * lib/stdbool_.h (_Bool): Undo last change; instead use a negative enum
55435 value to ensure that _Bool promotes to int. Use #define for _Bool when
55436 using the Solaris C compiler. Adds comments suggested by Paul Eggert.
55438 2003-08-10 Karl Berry <karl@gnu.org>
55440 * lib/regex.h: update from libc (whitespace fix).
55442 2003-08-09 Paul Eggert <eggert@twinsun.com>
55444 Merge some files from coreutils. These changes were
55445 originally made by Jim Meyering.
55446 * lib/acl.c: Include <sys/types.h> before <sys/stat.h>;
55447 many older Unixes require this.
55448 * lib/alloca.c (alloca): Remove cast to argument of free;
55449 no longer needed in C89.
55450 * lib/alloca_.h, regex.h: Fix white space to match
55451 what GNU indent does.
55453 2003-08-09 Paul Eggert <eggert@twinsun.com>
55455 * m4/regex.m4 (jm_INCLUDED_REGEX): Change "\201" to "\371";
55456 apparently Emacs's Unicode mode got confused before my 2003-08-05
55459 2003-08-08 Paul Eggert <eggert@twinsun.com>
55461 * m4/extensions.m4: New file.
55462 * m4/timespec.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC):
55463 Require gl_USE_SYSTEM_EXTENSIONS.
55464 * m4/unlocked-io.m4 (jm_FUNC_GLIBC_UNLOCKED_IO):
55465 Require gl_USE_SYSTEM_EXTENSIONS rather than AC_GNU_SOURCE.
55467 2003-08-08 Paul Eggert <eggert@twinsun.com>
55469 * MODULES.html.sh (func_all_modules): Add extensions, gnu-source.
55470 * modules/extensions, modules/gnu-source: New files.
55471 * modules/timespec, modules/unlocked-io: Depend on extensions.
55473 2003-08-07 Paul Eggert <eggert@twinsun.com>
55475 * modules/restrict: New file.
55476 * MODULES.html.sh (func_all_modules): Add restrict.
55477 * modules/regex: Depend on restrict.
55479 2003-08-07 Paul Eggert <eggert@twinsun.com>
55481 * m4/restrict.m4: New file.
55482 * m4/regex.m4 (jm_PREREQ_REGEX): Add gl_C_RESTRICT.
55484 2003-08-07 Bruno Haible <bruno@clisp.org>
55486 * modules/getndelim2 (Makefile.am): Add the files to EXTRA_DIST, not
55487 lib_SOURCES, because getndelim2.m4 now uses AC_LIBOBJ(getndelim2).
55489 2003-08-07 Bruno Haible <bruno@clisp.org>
55491 * m4/getndelim2.m4 (gl_GETNDELIM2): Use AC_LIBOBJ(getndelim2). This
55492 makes the module 'getndelim2' compatible with the module 'getline'.
55494 2003-08-05 Paul Eggert <eggert@twinsun.com>
55496 * m4/regex.m4 (jm_INCLUDED_REGEX): Replace a single non-ASCII
55497 byte with "\201" to avoid glitches when editing that source file
55498 with multi-gnome-terminal.
55500 2003-08-05 Paul Eggert <eggert@twinsun.com>
55502 * lib/bumpalloc.h: Remove.
55504 2003-08-05 Paul Eggert <eggert@twinsun.com>
55506 * MODULES.html.sh (func_all_modules): Remove bumpalloc.
55507 * modules/bumpalloc: Remove.
55509 2003-08-04 Paul Eggert <eggert@twinsun.com>
55511 * lib/getloadavg.c: Change copyright notice and spacing to conform to
55514 Merge from coreutils.
55515 * lib/error.c [!USE_IN_LIBIO]: Omit this case; assume USE_IN_LIBIO is
55517 * lib/getdate.y (date): Also accept dates like May-23-2003; suggestion
55518 from Karl Berry, implemented by Jim Meyering.
55519 * lib/getgroups.c: Include "xalloc.h" instead of declaring xalloc fns;
55520 from Dmitry V. Levin.
55521 Remove anachronistic cast of xrealloc.
55522 * lib/fnmatch_.h (__const): Remove. Use 'const'.
55523 * lib/fnmatch_loop.c (NEW_PATTERN): Cast alloca return value to proper
55524 type. Otherwise, it wouldn't compile with at least /bin/cc on
55525 ymp-cray-unicos9.0.2.X.
55526 Combine two mostly-identical uses of alloca into one.
55527 Thanks to the Cray-Cyber project for access to a Cray Y-MP.
55529 2003-08-04 Dave Love <d.love@dl.ac.uk>
55533 * lib/getloadavg.c: Check `__unix' as well as `unix'. Use #ifdef, not
55534 #if. Check HAVE_LIBKSTAT as well as LOAD_AVE_TYPE. Check
55535 F_SETFD, not FD_SETFD. Use HAVE_STRUCT_NLIST_N_UN_N_NAME, not
55536 obsolete NLIST_NAME_UNION.
55537 [__GNU__]: Undef BSD and FSCALE.
55538 [!NLIST_STRUCT]: Remove conditional definition of NLIST_STRUCT.
55540 2003-08-03 Paul Eggert <eggert@twinsun.com>
55542 * lib/stdbool_.h (_Bool): Make it signed char, instead of
55543 an enum type, so that it's guaranteed to promote to int. See:
55544 <http://mail.gnu.org/archive/html/bug-gnulib/2003-07/msg00124.html>
55546 2003-08-03 Karl Berry <karl@gnu.org>
55548 * config/depcomp: update from automake.
55550 2003-07-31 Paul Eggert <eggert@twinsun.com>
55552 * lib/strerror.c: Include config.h, limits.h. Declare sprintf.
55553 (strerror): Don't assume that a printable int fits in 14 bytes.
55555 2003-07-31 Bruno Haible <bruno@clisp.org>
55557 * modules/getpass-gnu: New file.
55558 * MODULES.html.sh (func_all_modules): Add getpass-gnu.
55560 2003-07-31 Bruno Haible <bruno@clisp.org>
55562 * m4/getpass.m4 (gl_FUNC_GETPASS_GNU): New macro.
55564 2003-07-24 Karl Berry <karl@gnu.org>
55566 * config/missing: update from automake.
55568 2003-07-24 Derek Robert Price <derek@ximbiot.com>
55569 Bruno Haible <bruno@clisp.org>
55571 * lib/getline.h (getline, getdelim): Change return type to ssize_t.
55572 * lib/getline.c (getline, getdelim): Likewise.
55573 Remove _GNU_SOURCE define; now it's defined in config.h through
55576 2003-07-23 Karl Berry <karl@gnu.org>
55578 * config/config.sub: update from prep.
55580 2003-07-22 Paul Eggert <eggert@twinsun.com>
55582 * modules/xalloc (Depends-on): Add exitfail.
55583 * modules/xmemcoll: Likewise.
55585 2003-07-22 Paul Eggert <eggert@twinsun.com>
55587 * lib/xalloc.h (XCALLOC, XREALLOC, CCLONE): Fix under- and
55588 over-parenthesization in macros.
55590 Sync with coreutils.
55592 * lib/xalloc.h (XMALLOC, XCALLOC, XREALLOC): Remove casts not
55595 Use `exit_failure' for xalloc and xmemcoll instead of their own
55596 private exit-failure variables.
55597 * lib/xalloc.h (xalloc_exit_failure): Remove.
55598 * lib/xmalloc.c: Likewise. Include exitfail.h.
55599 (xalloc_die): Use exit_failure instead of xalloc_exit_failure.
55600 * lib/xmemcoll.h (xmemcoll_exit_failure): Remove.
55601 * lib/xmemcoll.c: Likewise. Include exitfail.h.
55602 (xmemcoll): Use exit_failure instead of xalloc_exit_failure.
55604 2003-07-20 Jim Meyering <jim@meyering.net>
55606 * modules/closeout (Depends-on): Add exitfail.
55607 Suggestion from Bruno Haible.
55609 2003-07-19 Karl Berry <karl@gnu.org>
55611 * config/config.sub: update from prep.
55613 2003-07-18 Paul Eggert <eggert@twinsun.com>
55615 * lib/closeout.h (close_stdout_set_status, close_stdout_status):
55617 * lib/closeout.c: Likewise. Include "closeout.h" right after config.h,
55618 to test that it can stand by itself. Include "exitfail.h".
55619 Clients should set exit_failure instead.
55620 (EXIT_FAILURE): Remove; no longer needed. Do not include <stdlib.h>.
55622 2003-07-18 Bruno Haible <bruno@clisp.org>
55624 * modules/getndelim2: New file.
55625 * modules/getline: Share files with module getndelim2.
55626 * modules/getnline: Depend on getndelim2 instead of sharing files with
55627 it. Add getnline.c to lib_SOURCES.
55628 * MODULES.html.sh (func_all_modules): Add getndelim2.
55630 2003-07-18 Bruno Haible <bruno@clisp.org>
55632 * m4/getndelim2.m4: New file.
55633 * m4/getline.m4 (AM_FUNC_GETLINE): Add AC_LIBOBJ of getndelim2.c and
55634 invoke gl_PREREQ_GETNDELIM2.
55635 (gl_PREREQ_GETLINE): Drop AC_HEADER_STDC, now done by
55636 gl_PREREQ_GETNDELIM2.
55637 * m4/getnline.m4 (gl_GETNLINE): Drop AC_HEADER_STDC, now done by
55640 2003-07-18 Bruno Haible <bruno@clisp.org>
55642 * lib/getndelim2.h: New file.
55643 * lib/getndelim2.c: Make into a module of its own. Include config.h,
55645 (getndelim2): Make non-static. Change return type to ssize_t.
55646 * lib/getline.h: Change argument names.
55647 * lib/getline.c: Include getndelim2.h instead of getndelim2.c.
55648 * lib/getnline.c: Include getndelim2.h.
55650 2003-07-18 Andreas Schwab <schwab@suse.de>
55652 * lib/memcoll.c (memcoll) [!HAVE_STRCOLL]: Clear errno.
55654 2003-07-17 Karl Berry <karl@gnu.org>
55656 * config/config.sub: update from prep.
55658 2003-07-17 Bruno Haible <bruno@clisp.org>
55660 * modules/getnline: New file.
55661 * modules/getline: Add lib/getndelim2.c to source file list.
55662 * MODULES.html.sh (func_all_modules): Add getnline.
55664 2003-07-17 Bruno Haible <bruno@clisp.org>
55666 * m4/getnline.m4: New file.
55668 2003-07-17 Bruno Haible <bruno@clisp.org>
55670 * m4/Makefile.am.in: Remove file.
55671 * m4/Makefile.am: Remove file.
55672 * m4/Makefile.in: Remove file.
55674 2003-07-17 Bruno Haible <bruno@clisp.org>
55676 * lib/getnline.h: New file.
55677 * lib/getnline.c: New file.
55678 * lib/getndelim2.c: New file, extracted from getline.c.
55679 (getndelim2): Renamed from getdelim2, with added nmax argument.
55680 * lib/getline.c: Include getndelim2.c.
55681 (getdelim2): Moved out to getndelim2.c.
55682 (getline, getdelim): Update.
55684 2003-07-17 Bruno Haible <bruno@clisp.org>
55686 * lib/Makefile.am: Remove file.
55687 * lib/Makefile.in: Remove file.
55689 2003-07-17 Bruno Haible <bruno@clisp.org>
55691 * configure.in: Remove file.
55692 * Makefile.in: Remove file.
55694 2003-07-17 Bruno Haible <bruno@clisp.org>
55696 * MODULES.html.sh: Put the </BODY> right before </HTML>.
55698 2003-07-16 Karl Berry <karl@gnu.org>
55700 * config/srclist-update: was running fixlicense twice, which caused
55701 texinfo.tex to be nullified for some reason. Simplify,
55702 $gplsrc is no longer needed as far as I can see?
55704 2003-07-16 Jim Meyering <jim@meyering.net>
55706 * modules/save-cwd: Depend on xgetcwd. From Derek Price.
55708 2003-07-15 Paul Eggert <eggert@twinsun.com>
55710 * config/srclist.txt: Get the following files from gettext-runtime/intl
55711 instead: config.charset, localcharset.c, localcharset.h, ref-add.sin,
55712 ref-del.sin. From Bruno Haible.
55713 * config/srclist-update (fixfile): Change grep pattern again, since the
55714 previous fix didn't work (there was another trailing $). Use
55715 '[$]' to escape the $s.
55717 2003-07-15 Karl Berry <karl@gnu.org>
55719 * lib/vasnprintf.c: update from gettext.
55721 2003-07-15 Karl Berry <karl@gnu.org>
55723 * config/srclist-update (fixfile): Change grep pattern, since 'Id'
55724 gets expanded when surrounded by '$'.
55726 2003-07-15 Jim Meyering <jim@meyering.net>
55728 * modules/save-cwd: Don't depend on error. From Derek Price.
55730 2003-07-15 Jim Meyering <jim@meyering.net>
55732 * lib/makepath.c (make_path): Enclose diagnostic in _(...).
55734 2003-07-14 Simon Josefsson <jas@extundo.com>
55736 * modules/mempcpy: New file.
55737 * MODULES.html.sh (func_all_modules): Add mempcpy.
55739 2003-07-14 Simon Josefsson <jas@extundo.com>
55741 * m4/mempcpy.m4: New file.
55743 2003-07-14 Simon Josefsson <jas@extundo.com>
55745 * lib/mempcpy.h: New file.
55746 * lib/mempcpy.c: New file.
55748 2003-07-14 Paul Eggert <eggert@twinsun.com>
55750 * modules/getdate, modules/posixtm: Depend on mktime.
55752 2003-07-14 Paul Eggert <eggert@twinsun.com>
55754 * lib/ceill.c, expl.c, floorl.c, frexpl.c, ldexpl.c, mathl.h,
55755 sincosl.c, sqrtl.c, trigl.c, trigl.h, poll.c, poll_.h, mkstemp.c,
55756 unicodeio.c, unicodeio.h, unlocked-io.h:
55757 Switch from LGPL to GPL.
55759 2003-07-14 Paul Eggert <eggert@twinsun.com>
55761 * lib/asnprintf.c, asprintf.c, config.charset, gettext.h,
55762 localcharset.c, localcharset.h, mkdtemp.c, printf-args.c,
55763 printf-args.h, printf-parse.c, printf-parse.h, ref-add.sin,
55764 ref-del.sin, setenv.c, unsetenv.c, vasnprintf.c, vasnprintf.h,
55765 vasprintf.c, vasprintf.h: Regenerate. These files are now being
55766 updated automatically by ../config/srclist-update. This changes
55767 their license from LPGL to GPL.
55769 2003-07-14 Paul Eggert <eggert@twinsun.com>
55771 * config/srclist.txt: Add tons more gettext files. $GETTEXT is now
55772 assumed to refer to the root of the most recent stable gettext version.
55773 * config/srclistvars.sh: Add defaults for eggert.
55774 * config/srclist-update: Convert LGPL to GPL in shell scripts, too.
55775 Match "This program" as well as "The program". This is needed
55778 2003-07-14 Jim Meyering <jim@meyering.net>
55780 Don't emit diagnostics. Let callers do that.
55781 * lib/save-cwd.c: Don't include "error.h".
55782 (save_cwd): Don't call error. Ensure that errno is valid
55783 when returning nonzero.
55785 * lib/save-cwd.h (restore_cwd): Update prototype.
55786 * lib/save-cwd.c (restore_cwd): Remove two parameters.
55787 Simplify. Don't call error upon failure. Let callers do that.
55788 (save_cwd): Mention that Irix 5.3 has the same problem as SunOS 4
55789 when auditing is enabled. But don't bother updating the #if.
55791 2003-07-11 Alexandre Duret-Lutz <adl@gnu.org>
55793 * lib/obstack.h (__INT_TO_PTR): Revert change of 2003-03-13;
55794 it breaks C++ compilation.
55795 [!__GNUC__ || !__STDC__] (obstack_finish): Cast result to void*.
55797 2003-07-10 Simon Josefsson <jas@extundo.com>
55799 * modules/strchrnul (Makefile.am): Add strchrnul.h.
55801 2003-07-10 Jim Meyering <jim@meyering.net>
55803 * m4/clock_time.m4: Remove trailing blank.
55804 * m4/intmax_t.m4: Likewise.
55806 2003-07-10 Jim Meyering <jim@meyering.net>
55808 * lib/vasnprintf.c: Remove trailing blanks.
55809 Make cpp indentation consistent.
55811 2003-07-09 Paul Eggert <eggert@twinsun.com>
55813 * lib/alloca_.h, euidaccess.c, getpass.c, memrchr.c, obstack.h,
55814 posixver.c, strftime.c, strnlen.c, strverscmp.c:
55815 Switch from LGPL to GPL.
55817 2003-07-09 Paul Eggert <eggert@twinsun.com>
55819 * config/srclist.txt: Sort sublists. Add
55820 $LIBCSRC/sysdeps/generic/strtoul.c. In comments, add more libc files
55821 that differ from gnulib for one reason or another; we'd like this list
55822 to be smaller but for now let's document what we have.
55824 2003-07-08 Paul Eggert <eggert@twinsun.com>
55826 * config/srclist-update: Port to POSIX 1003.1-2001 hosts by avoiding
55827 the use of GNU extensions. Change "x=`eval echo $x`" to the shorter
55828 and sweeter "eval x=$x".
55829 * config/srclist.txt: Get lib/argp* from glibc.
55831 2003-07-07 Paul Eggert <eggert@twinsun.com>
55833 * lib/mktime.c: Fix some boundary cases and remove need for floating
55836 Issue a compile-time diagnostic if time_t is floating point, or if
55837 two's complement arithmetic is not in effect, or if arithmetic
55838 right shift does not propagate the sign. These assumptions were
55839 all in the original code but they weren't checked.
55841 (TIME_T_MIDPOINT, verify): New macros.
55842 (__isleap): Remove; it has integer overflow problems.
55843 (leapyear): New function, without those problems.
55844 (ydhms_tm_diff): Remove; splitting into two parts.
55845 (ydhms_diff): New function, containing the arithmetic part of
55846 the old ydhms_tm_diff function. Issue a compile-time
55847 diagnostic if we are not using C99 integer division.
55848 Avoid casts when possible.
55849 (guess_time_tm): New function, containing the checking part of
55850 the old ydhms_tm_diff function. Return the new value, rather than
55851 the difference between it and the old. Accept a new argument T
55852 so that *T specifies the old value. Check for overflow in the result.
55854 (__mktime_internal): Use a time_t offset, not a long int offset.
55855 This undoes the 2003-06-04 change, which is no longer needed now
55856 that we have better overflow checking.
55857 (localtime_offset): Likewise.
55859 (__mktime_internal): Avoid harmful overflow on hosts where time_t
55860 and long are 64-bit but int is only 32-bit.
55861 (ydhms_diff): Use long int to store year1 and yday1.
55862 Issue a compile-time diagnostic if long int is not wide enough.
55864 (__mktime_internal): Use long int to store adjusted year and yday.
55865 Use plain C rather than preprocessor commands, if that doesn't
55867 Check for overflow (and try to repair) after each probe
55868 rather than checking only at the very end. This avoids some bugs
55869 (e.g., southern hemisphere, behind GMT, and GMT offset at minimum time
55870 does not equal GMT offset at maximum time).
55871 Use integer to check for overflow rather than floating point; this
55872 is more portable to non-IEEE hosts, and is a tad faster.
55873 When we detect that we are oscillating between two values,
55874 don't check whether tm_isdst has the requested value, since
55875 we already know the answer. When tm_isdst has the wrong value,
55876 use a different heuristic to find the right one, based on the
55877 extreme values actually observed in practice in tz2003a,
55878 rather than the (overly optimistic) "previous 3 calendar quarters".
55880 (not_equal_tm, print_tm, check_result): Use "const T" rather than
55881 "T const" to accommodate glibc style.
55882 (check_result): Use less-confusing report format. "long" -> "long int.
55884 Don't loop if the iteration overflows time_t.
55885 Allow a negative step in the iteration.
55887 2003-07-06 Karl Berry <karl@gnu.org>
55889 * config/depcomp: update from automake.
55890 * config/config.sub: update from prep.
55892 2003-07-03 Karl Berry <karl@gnu.org>
55894 * config/config.guess: update from prep.
55896 2003-07-01 Paul Eggert <eggert@twinsun.com>
55898 * m4/xreadlink.m4 (gl_XREADLINK): Don't check for sys/types.h, since
55899 xreadlink.c now includes it unconditionally.
55901 2003-07-01 Paul Eggert <eggert@twinsun.com>
55903 * lib/xreadlink.c: Include <sys/types.h> unconditionally, instead of
55904 having it depend on HAVE_SYS_TYPES_H.
55906 2003-07-01 Bruno Haible <bruno@clisp.org>
55908 * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Don't include <unistd.h>.
55909 <sys/types.h> should be sufficient.
55910 Reported by Paul Eggert.
55912 2003-06-26 Karl Berry <karl@gnu.org>
55914 * config/depcomp: update from automake.
55916 2003-06-26 Bruno Haible <bruno@clisp.org>
55918 * modules/human: Depend on module stdbool.
55920 2003-06-25 Bruno Haible <bruno@clisp.org>
55922 * modules/readlink: New file.
55923 * modules/xreadlink: Depend on it.
55924 * MODULES.html.sh (func_all_modules): Add readlink.
55926 2003-06-25 Bruno Haible <bruno@clisp.org>
55928 * m4/readlink.m4: New file.
55930 2003-06-25 Bruno Haible <bruno@clisp.org>
55932 * lib/readlink.c: New file.
55934 2003-06-22 Karl Berry <karl@gnu.org>
55936 * config/srclist.txt: update mkinstalldirs from automake.
55937 * config/mkinstalldirs: update.
55939 2003-06-22 Bruno Haible <bruno@clisp.org>
55941 Portability to mingw32.
55942 * m4/ssize_t.m4: New file, from GNU gettext.
55943 * m4/safe-read.m4 (gl_PREREQ_SAFE_READ): Require gt_TYPE_SSIZE_T.
55944 * m4/xreadlink.m4 (gl_XREADLINK): Require gt_TYPE_SSIZE_T.
55946 2003-06-22 Bruno Haible <bruno@clisp.org>
55948 * modules/safe-read: Add m4/ssize_t.m4.
55949 * modules/xreadlink: Add m4/ssize_t.m4.
55951 2003-06-20 Bruno Haible <bruno@clisp.org>
55953 Assume C89, so PARAMS isn't needed.
55954 * lib/unicodeio.h (PARAMS): Remove.
55955 * lib/unicodeio.c: Don't use PARAMS.
55957 2003-06-18 Karl Berry <karl@gnu.org>
55959 * config/config.{guess,sub}: update from prep.
55961 2003-06-18 Jim Meyering <jim@meyering.net>
55963 Merge changes from coreutils.
55964 * lib/readutmp.c: Include <string.h> and <stdlib.h> unconditionally.
55965 Remove explicit declarations of xmalloc and realloc.
55967 (read_utmp): Remove anachronistic cast of xmalloc.
55969 2003-06-17 Paul Eggert <eggert@twinsun.com>
55971 Assume C89, so PARAMS isn't needed.
55972 * lib/backupfile.h (PARAMS): Remove. All uses removed.
55973 * lib/closeout.h, lib/dirname.h, lib/filemode.h, lib/fsusage.h,
55974 lib/getdate.h, lib/getline.h, lib/group-member.h, lib/hard-locale.h,
55975 lib/hash.h, lib/linebuffer.h, lib/long-options.h, lib/makepath.h,
55976 lib/memcasecmp.h, lib/memcoll.h, lib/modechange.h, lib/mountlist.h,
55977 lib/path-concat.h, lib/physmem.h, lib/posixtm.h, lib/quote.h,
55978 lib/readutmp.h, lib/same.h, lib/save-cwd.h, lib/savedir.h,
55979 lib/stdio-safer.h, lib/strtoimax.c, lib/strverscmp.h,
55980 lib/unistd-safer.h, lib/version-etc.h, lib/xalloc.h, lib/xreadlink.h,
55981 lib/xstrtod.h, lib/xstrtol.h: Likewise.
55982 * lib/filemode.h, lib/hard-locale.h, lib/memcoll.h, lib/modechange.h,
55983 lib/physmem.h, lib/same.h, lib/strverscmp.h: Do not include config.h;
55984 no longer needed. Anyway, config.h should always be included before any
55987 2003-06-11 Simon Josefsson <jas@extundo.com>
55989 * modules/sysexits: New file.
55990 * MODULES.html.sh (func_all_modules): Add sysexits.
55992 2003-06-11 Simon Josefsson <jas@extundo.com>
55994 * lib/sysexit_.h: New file.
55996 2003-06-11 Derek Price <derek@ximbiot.com>
55998 * lib/stat.c [LSTAT]: Compile/use slash_aware_lstat only if it is
56001 2003-06-11 Bruno Haible <bruno@clisp.org>
56003 * m4/sysexits.m4: New file.
56005 2003-06-10 Simon Josefsson <jas@extundo.com>
56007 * lib/argp.h: New file, from glibc.
56008 * lib/argp-ba.c: New file, from glibc.
56009 * lib/argp-eexst.c: New file, from glibc.
56010 * lib/argp-fmtstream.c: New file, from glibc.
56011 * lib/argp-fmtstream.h: New file, from glibc.
56012 * lib/argp-fs-xinl.c: New file, from glibc.
56013 * lib/argp-help.c: New file, from glibc.
56014 * lib/argp-namefrob.h: New file, from glibc.
56015 * lib/argp-parse.c: New file, from glibc.
56016 * lib/argp-pv.c: New file, from glibc.
56017 * lib/argp-pvh.c: New file, from glibc.
56018 * lib/argp-xinl.c: New file, from glibc.
56020 2003-06-10 Simon Josefsson <jas@extundo.com>
56022 * modules/strchrnul: New file.
56024 2003-06-10 Simon Josefsson <jas@extundo.com>
56026 * modules/argp: New file.
56028 2003-06-10 Simon Josefsson <jas@extundo.com>
56030 * m4/strchrnul.m4: New file.
56032 2003-06-10 Simon Josefsson <jas@extundo.com>
56034 * lib/strchrnul.h: New file.
56035 * lib/strchrnul.c: New file.
56037 2003-06-10 Bruno Haible <bruno@clisp.org>
56039 * MODULES.html.sh (func_all_modules): Add strchrnul and argp.
56041 2003-06-07 Karl Berry <karl@gnu.org>
56043 * config/config.{guess,sub}: update from prep.
56045 2003-06-07 Jim Meyering <jim@meyering.net>
56047 * modules/strtod: Use $(...) notation, not @...@ for
56048 AC_REPLACE'd variables.
56049 * modules/localcharset: Likewise.
56051 2003-06-07 Jim Meyering <jim@meyering.net>
56053 * lib/readtokens.h: Put `Free Software Foundation, Inc.'
56054 in place of my name in the copyright comment.
56055 Remove definition and uses of __P.
56058 * lib/stat.c: Don't declare xmalloc explicitly.
56059 Instead, include "xalloc.h".
56060 * lib/readtokens.c (readtokens): Remove anachronistic casts of xmalloc,
56061 xrealloc, and xcalloc return values.
56062 * lib/xgetcwd.c (xgetcwd): Include "xgetcwd.h".
56064 * lib/xgetcwd.h: Remove definition/uses of PARAMS.
56066 2003-06-07 Bruno Haible <bruno@clisp.org>
56068 * modules/poll (Makefile.am): Use explicit creation rule for poll.h, to
56069 avoid AC_CONFIG_LINKS.
56070 * modules/fnmatch (Makefile.am): Use explicit creation rule for
56071 fnmatch.h, to avoid AC_CONFIG_LINKS.
56072 * modules/alloca (Makefile.am): Make creation of alloca.h Ctrl-C safe.
56074 2003-06-07 Bruno Haible <bruno@clisp.org>
56076 * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH, gl_FUNC_FNMATCH_POSIX,
56077 gl_FUNC_FNMATCH_GNU): Set FNMATCH_H instead of invoking
56078 AC_CONFIG_LINKS. Needed to allow for a different name of the lib
56080 * m4/poll.m4 (gl_FUNC_POLL): Set POLL_H instead of invoking
56081 AC_CONFIG_LINKS. Needed to allow for a different name of the lib
56084 2003-06-06 Jim Meyering <jim@meyering.net>
56086 Merge from coreutils.
56087 * lib/same.c: (same_name): Declare *_basename locals to be `const'.
56088 Consolidate declarations and initializations of *_base* locals.
56090 Merge from coreutils.
56091 This avoids a core dump on systems without GNU putenv,
56092 when running `env -u SOME_ALREADY_UNSET_VARIABLE'.
56093 * lib/putenv.c (__set_errno, LOCK, UNLOCK): Define.
56094 (unsetenv): New static function, from GNU libc.
56095 (rpl_putenv): Use it.
56097 * lib/modechange.c: Remove trailing blanks.
56099 Merge from coreutils.
56100 * lib/fsusage.c: Remove declaration of statfs.
56101 It conflicted with one from OSF/1 5.1 in <sys/mount.h>.
56103 * lib/posixtm.c: Include <stdbool.h> unconditionally.
56105 2003-06-06 Jim Meyering <jim@meyering.net>
56107 * lib/stdbool_.h: Renamed from stdbool.h.in.
56109 2003-06-06 Jim Meyering <jim@meyering.net>
56110 Bruno Haible <bruno@clisp.org>
56112 * modules/stdbool: Reflect renaming: stdbool.h.in -> stdbool_.h.
56113 Adjust Makefile.am snippet not to redirect directly to target.
56114 Use $(STDBOOL_H) notation, not @STDBOOL_H@ for AC_REPLACE'd variables.
56116 2003-06-05 Paul Eggert <eggert@twinsun.com>
56118 * lib/mktime.c (__mktime_internal): When resolving a tm_isdst
56119 mismatch, look in future quarters as well as past. This fixes a
56120 bug when processing fall-backwards gaps immediately after a long
56121 period of daylight-saving time.
56123 * lib/mktime.c: Assume freestanding C89 or better.
56124 (HAVE_LIMITS_H): Remove. Assume it's 1.
56125 (__P): Remove; not used.
56126 (CHAR_BIT, INT_MIN, INT_MAX): Remove; <limits.h> defines them.
56127 (mktime, not_equal_tm, print_tm, check_result,
56128 main): Use prototypes. Use const * where appropriate.
56129 (main): Fix typo in testing code that uncovered by above changes.
56130 (Local Variables): Remove -DHAVE_LIMITS_H from compile-command.
56132 2003-06-04 Paul Eggert <eggert@twinsun.com>
56134 * m4/human.m4 (gl_HUMAN): Require AM_STDBOOL_H. Check for
56135 locale.h, localeconv. This merges changes from coreutils.
56137 * m4/mktime.m4 (AC_FUNC_MKTIME): New macro, taken from Autoconf CVS.
56138 It can be removed after the next Autoconf is released.
56139 * m4/exclude.m4 (gl_EXCLUDE): Don't check for sys/types.h; no loner
56142 2003-06-04 Paul Eggert <eggert@twinsun.com>
56144 * lib/mktime.c: Fix Debian bug 177940
56145 <http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=177940>.
56146 (localtime_offset): Now long int, not time_t, because we want it
56147 to be guaranteed to be signed. All uses changed.
56148 (__mktime_internal): If overflow would occur when adding offset,
56151 Merge 'human' changes from coreutils. Rewrite to support
56152 locale-specific notations like thousands separators.
56153 * lib/human.c: Simplify authorship notice.
56154 Include human.h immediately after config.h.
56155 <sys/types.h>, <stdio.h>: Do not include; no longer needed.
56156 <limits.h>: Do not include, since human.h does.
56157 (SIZE_MAX, UINTMAX_MAX): New macros.
56158 <strings.h>: Include if HAVE_STRINGS_H, not if !HAVE_STRING_H.
56159 <locale.h>: Include if HAVE_LOCALE_H and HAVE_LOCALECONV.
56160 (HUMAN_READABLE_SUFFIX_LENGTH_MAX): New macro.
56161 (power_letter): Renamed from suffixes.
56162 (generate_suffix_backwards): Remove.
56163 (adjust_value): Now takes int style (because of human.h changes)
56164 and long double value (for greater precision on some platforms).
56165 (group_number): New function.
56166 (human_readable): Use it. Use integer options, not enum.
56167 Put the options before the sizes in the arg list.
56168 Support all the new options.
56169 The old human_readable function has been removed;
56170 use inttostr.h instead.
56171 (human_readable, default_block_size, humblock):
56172 Use uintmax_t, not int, for block sizes.
56173 (human_readable_inexact, block_size_types): Remove.
56174 (block_size_opts): New constant.
56175 (human_options): Renamed from human_block_size, with new signature
56176 that allows block sizes up to UINTMAX_MAX. All callers changed.
56177 * lib/human.h: Add copyright and authorship notice.
56178 Include <limits.h> and <stdbool.h> unconditionally.
56179 (PARAMS): Remove. All uses removed.
56180 (LONGEST_HUMAN_READABLE): Add support for thousands separator.
56181 (enum human_inexact_style): Remove tag; now a nameless enum.
56182 (human_floor, human_ceiling, human_round_to_even): Now have
56183 values 2, 0, 1 rather than -1, 1, 0.
56184 (human_group_digits, human_suppress_point_zero, human_autoscale,
56185 human_base_1024, human_SI, human_B): New constants.
56186 (human_readable_inexact, human_block_size): Remove.
56187 (human_readable): Size args are now uintmax_t, not int.
56188 (human_options): New decl.
56190 * lib/exclude.c: (new_exclude, add_exclude): Remove casts that are
56191 unnecessary now that we assume C89 or better. This change
56192 imported from coreutils.
56194 * lib/mktime.c (__mktime_internal): Do not reject negative timestamps
56195 arbitrarily. This is the same patch as 2003-05-28, but it got lost
56196 in the 2003-05-30 sync from glibc.
56198 .h files should stand alone, but we shouldn't include <sys/types.h>
56199 if we can get away with just <stddef.h>.
56201 * lib/__fpending.h, addext.c, backupfile.c, exclude.c, getline.c,
56202 malloc.c, putenv.c, realloc.c, strcasecmp.c: Include <stddef.h>
56203 rather than <sys/types.h>, as we merely need size_t.
56204 * lib/dirname.h, memcoll.h, xalloc.h, xmemcoll.h: Include <stddef.h>,
56206 * lib/hash.h, linebuffer.h, readtokens.h, stdio-safer.h, version-etc.h:
56207 Include <stdio.h>, to get FILE.
56208 * lib/memcasecmp.c: Don't include <sys/types.h>, as we can assume
56209 memcasecmp.h has included <stddef.h> and all we need is size_t.
56210 * lib/memcoll.c: Include "memcoll.h", which gets us size_t and checks
56211 our interface, instead of including <sys/types.h>
56213 2003-06-04 Paul Eggert <eggert@twinsun.com>
56215 * config/srclist.txt ($LIBCSRC/time/mktime.c lib gpl): Comment out for
56216 now, as glibc mktime is buggy on non-glibc systems.
56218 2003-06-03 Karl Berry <karl@gnu.org>
56220 * config/config.sub: update from prep.
56222 2003-06-02 Paul Eggert <eggert@twinsun.com>
56225 Fix some minor time-related bugs with POSIX time arguments.
56226 Some valid time stamps were being rejected (notably -1, and
56227 time stamps before 1900 on 64-bit hosts). And some invalid
56228 time stamps were being accepted, e.g. September 31.
56230 * lib/posixtm.h (posixtime): Return bool instead of time_t, so
56231 that we can return (time_t) -1 successfully.
56232 * lib/posixtm.c: Likewise.
56233 [HAVE_STDBOOL_H]: Include <stdbool.h>.
56234 (bool, false, true) [!HAVE_STDBOOL_H]: New type.
56235 (t): Remove static var.
56236 (year, posix_time_parse): Now takes struct tm * arg to modify, instead
56237 of static var. All uses changed.
56238 (year): Do not reject years before 1900; they can occur with
56240 (posix_time_parse): Do not check for out-of-range components;
56241 that is now the caller's responsibility, since our checks were
56242 only approximations.
56243 (posixtime): Use mktime to check for out-of-range components,
56244 since it knows them exactly.
56245 If mktime returns (time_t) -1, check whether an error actually occurred
56246 by invoking localtime on -1.
56247 (main) [TEST_POSIXTIME]: Check for input data errors, and report
56248 posixtime failures better.
56249 Improve the test data (in comments only).
56251 2003-06-02 Karl Berry <karl@gnu.org>
56253 * config/mkinstalldirs (version): new variable.
56254 (--version): new option.
56255 (usage): improve message.
56257 2003-05-30 Karl Berry <karl@gnu.org>
56259 * lib/mktime.c: update from libc.
56261 2003-05-30 Bruno Haible <bruno@clisp.org>
56263 * modules/gettext: Add files m4/nls.m4 and m4/po.m4.
56264 * config/config.rpath: Upgrade to gettext-0.12.1.
56266 2003-05-30 Bruno Haible <bruno@clisp.org>
56268 * m4/gettext.m4: Upgrade to gettext-0.12.1.
56269 * m4/nls.m4: New file, from gettext-0.12.1.
56270 * m4/po.m4: New file, from gettext-0.12.1.
56271 * m4/progtest.m4: Upgrade to gettext-0.12.1.
56273 2003-05-30 Bruno Haible <bruno@clisp.org>
56275 * lib/config.charset: Upgrade to gettext-0.12.1 and libiconv-1.9.1.
56276 * lib/localcharset.h: Likewise.
56277 * lib/localcharset.c: Likewise.
56279 2003-05-29 Karl Berry <karl@gnu.org>
56281 * config/config.rpath: update from gettext.
56283 2003-05-28 Paul Eggert <eggert@twinsun.com>
56285 Assume the headers required for C89 freestanding compilers.
56286 * m4/backupfile.m4 (gl_BACKUPFILE): Don't check for limits.h.
56287 * m4/fsusage.m4 (gl_PREREQ_FSUSAGE_EXTRA): Likewise.
56288 * m4/human.m4 (gl_HUMAN): Likewise.
56289 * m4/pathmax.m4 (gl_PATHMAX): Likewise.
56290 * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Likewise.
56291 * m4/userspec.m4 (gl_USERSPEC): Likewise.
56292 * m4/xreadlink.m4 (gl_XREADLINK): Likewise.
56293 * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
56294 * m4/quote.m4 (gl_QUOTE): Don't check for stddef.h.
56296 2003-05-28 Paul Eggert <eggert@twinsun.com>
56298 Assume the headers required for C89 freestanding compilers.
56299 * lib/addext.c, lib/backupfile.c, lib/fsusage.c, lib/human.c,
56300 lib/pathmax.h, lib/rpmatch.c, lib/userspec.c, lib/xreadlink.c,
56301 lib/xstrtol.c: Include <limits.h> without checking for HAVE_LIMITS_H.
56302 * lib/backupfile.c, lib/fsusage.c, lib/hash.c, lib/human.c,
56303 lib/safe-read.c, lib/userspec.c, lib/xstrtol.c (CHAR_BIT): Don't
56304 define, since <limits.h> is guaranteed to do that.
56305 * lib/fatal.c: Include <stdarg.h> without checking for __STDC__.
56306 * lib/exclude.c: Include <stdbool.h> unconditionally.
56307 * lib/tempname.c: Include <stddef.h> unconditionally.
56308 * lib/hash.c: Include <limits.h>, since we no longer define CHAR_BIT.
56309 * lib/modechange.c, rpmatch.c (NULL): Don't define, since
56310 <stddef.h> does that.
56311 * lib/quote.c: Dont include <stddef.h> or <sys/types.h>; not needed.
56312 * lib/safe-read.c (INT_MAX): Don't define, since <limits.h> does that.
56313 * lib/safe-read.c (TYPE_MINIMUM, TYPE_MAXIMUM): Remove; no longer
56315 * lib/xstrtol.c: Likewise.
56316 * lib/safe-read.c: Remove TYPE_SIGNED; no longer needed.
56317 * lib/savedir.c: Include <stddef.h> instead of defining NULL.
56319 * lib/addext.c (addext): Use assignment rather than cast, to avoid
56320 warnings on some platforms.
56322 * lib/mktime.c (__mktime_internal): Do not reject negative timestamps
56325 2003-05-26 Jim Meyering <jim@meyering.net>
56327 Merge in a change from coreutils:
56328 * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Test the cache variable, not one
56329 that is guaranteed to be `no'. Use `no_such_member' to indicate
56330 that condition, rather than `-1' which is slightly misleading.
56331 Change the name of the cache variable to have the gl_ prefix.
56332 Prompted by a patch from Richard Dawe for DJGPP.
56334 2003-05-24 Karl Berry <karl@gnu.org>
56336 * config/config.guess: update from prep.
56338 2003-05-22 Karl Berry <karl@gnu.org>
56340 * gnulib-tool (func_usage): =LIBRARY not =libRARY in help msg.
56342 2003-05-20 Karl Berry <karl@gnu.org>
56344 * config/config.guess: update from prep.
56346 2003-05-18 Karl Berry <karl@gnu.org>
56348 * config/srclistvars.sh (TEXMF): use TEXMFROOT instead, since TEXMF
56349 might actually be set by the user.
56351 * config/depcomp, install-sh, mdate-sh: update from automake.
56353 2003-05-17 Bruno Haible <bruno@clisp.org>
56355 * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Fix a quoting bug leading to an
56356 invalid expansion for AC_EGREP_CPP.
56357 * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Likewise.
56358 * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Likewise.
56359 Suggested by Akim Demaille <akim@epita.fr> in
56360 http://mail.gnu.org/archive/html/bug-autoconf/2003-05/threads.html
56362 2003-05-12 Jim Meyering <jim@meyering.net>
56364 * lib/strftime.c (my_strftime): Let the `-' (no-pad) flag affect
56365 the space-padded-by-default conversion specifiers, %e, %k, %l.
56367 2003-05-12 Bruno Haible <bruno@clisp.org>
56369 * lib/linebreak.c (iconv_string_length): Don't return -1 just because
56370 the string is longer than 4 KB.
56372 2003-05-11 Karl Berry <karl@gnu.org>
56374 * config/config.{guess,sub}: update from prep.
56376 2003-05-09 Bruno Haible <bruno@clisp.org>
56378 * modules/error: Add m4/strerror_r.m4 to file list.
56380 2003-05-03 Bruno Haible <bruno@clisp.org>
56382 Upgrade to Unicode-4.0.
56383 * lib/linebreak.c (nonspacing_table_data): Change width of U+00AD,
56384 U+0350..U+0357, U+035D..U+035F, U+0600..U+0603, U+0610..U+0615,
56385 U+0656..U+0658, U+0A01, U+0AE2..U+0AE3, U+0CBC, U+17B4..U+17B5,
56386 U+17DD, U+1920..U+1922, U+1927..U+192B, U+1932, U+1939..U+193B
56387 from 1 to 0. Change width of U+0CBF, U+0CC6, U+180E from 0 to 1.
56388 (uc_width): Change width of U+4DC0..U+4DFF from 2 to 1. Change width
56389 of U+2A6D7..U+2F7FF, U+2FA1E..U+2FFFD, U+30000..U+3FFFD from 1 to 2.
56390 Change width of U+E0100..U+E01EF from 1 to 0.
56392 2003-04-25 Jim Meyering <jim@meyering.net>
56394 * lib/copy-file.c (copy_file_preserving): Declare buf_size to be
56395 of type size_t, not int.
56397 2003-04-25 Bruno Haible <bruno@clisp.org>
56399 * lib/copy-file.c: Include <stddef.h>, for size_t.
56401 2003-04-21 Paul Eggert <eggert@twinsun.com>
56403 * m4/error.m4 (gl_ERROR): Do not put under dynamic conditions some
56404 code which expansion is under static control. Patch imported from
56405 Akim Demaille's patch to Bison; see
56406 <http://mail.gnu.org/archive/html/bison-patches/2003-03/msg00057.html>.
56408 2003-04-14 Bruno Haible <bruno@clisp.org>
56410 * m4/error.m4 (jm_PREREQ_ERROR): Use AC_FUNC_VPRINTF.
56412 2003-04-11 Jim Meyering <jim@meyering.net>
56414 Merge changes from Coreutils.
56416 2003-03-22 Jim Meyering <jim@meyering.net>
56418 * lib/strftime.c (widen): Cast alloca return value to proper type.
56420 2003-01-19 Ulrich Drepper <drepper@redhat.com>
56423 * lib/strftime.c (my_strftime): Handle very large width
56424 specifications for numeric values correctly. Improve checks for
56427 2003-01-19 Jim Meyering <jim@meyering.net>
56429 * lib/strftime.c (widen) [COMPILE_WIDE]: Merge nearly-identical
56431 (nl_get_alt_digit) [! defined my_strftime]: Define.
56432 (my_strftime) [_NL_CURRENT]: Merge nearly-identical uses of
56433 _nl_get_alt_digit and _nl_get_walt_digit.
56435 * lib/strftime.c (my_strftime): Merge in locale-related changes from
56436 libc. These changes have no effect outside of _LIBC.
56438 2003-04-10 Bruno Haible <bruno@clisp.org>
56440 * modules/findprog: New file.
56441 * MODULES.html.sh (func_all_modules): Add it.
56443 2003-04-10 Bruno Haible <bruno@clisp.org>
56445 * m4/findprog.m4: New file.
56446 * m4/eaccess.m4: New file.
56448 2003-04-10 Bruno Haible <bruno@clisp.org>
56450 * lib/findprog.h: New file, from GNU gettext.
56451 * lib/findprog.c: New file, from GNU gettext.
56453 2003-04-05 Jim Meyering <jim@meyering.net>
56455 Merge changes from Coreutils.
56457 * lib/exclude.h (PARAMS): Remove definition and uses.
56458 * lib/exclude.c: Remove uses of `PARAMS'.
56460 * lib/dirname.c [TEST_DIRNAME]: Update build instructions for test.
56461 Add test-cases for DOS filenames. Declare program_name.
56462 (main): Set up program_name. Patch by Rich Dawe.
56464 * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Detect any
56466 Use mntctl's return value to drive the entry-processing loop, since
56467 we can't rely on the value of the vmt_length member in the last
56468 entry. On some systems doing so could result in exhausting
56469 virtual memory. Based in part on a patch from Mike Jetzer.
56471 2003-04-04 Bruno Haible <bruno@clisp.org>
56473 * modules/linebreak: New file.
56474 * MODULES.html.sh (func_all_modules): Add it.
56476 2003-04-04 Bruno Haible <bruno@clisp.org>
56478 * m4/linebreak.m4: New file.
56480 2003-04-04 Bruno Haible <bruno@clisp.org>
56482 * lib/linebreak.h: New file, from GNU gettext.
56483 * lib/linebreak.c: New file, from GNU gettext with slight
56485 * lib/lbrkprop.h: New file, from GNU gettext.
56487 2003-04-03 Bruno Haible <bruno@clisp.org>
56489 * modules/utf8-ucs4: New file.
56490 * modules/utf16-ucs4: New file.
56491 * modules/ucs4-utf8: New file.
56492 * modules/ucs4-utf16: New file.
56493 * MODULES.html.sh (func_all_modules): Add them.
56495 2003-04-03 Bruno Haible <bruno@clisp.org>
56497 * m4/utf-ucs4.m4: New file.
56498 * m4/ucs4-utf.m4: New file.
56500 2003-04-03 Bruno Haible <bruno@clisp.org>
56502 * lib/utf8-ucs4.h: New file, from GNU gettext.
56503 * lib/utf16-ucs4.h: New file, from GNU gettext.
56504 * lib/ucs4-utf8.h: New file, from GNU gettext.
56505 * lib/ucs4-utf16.h: New file, from GNU gettext.
56507 2003-04-02 Bruno Haible <bruno@clisp.org>
56509 * modules/binary-io: New file.
56510 * MODULES.html.sh (func_all_modules): Add it.
56512 2003-04-02 Bruno Haible <bruno@clisp.org>
56514 * lib/binary-io.h: New file, from GNU gettext.
56516 2003-04-01 Bruno Haible <bruno@clisp.org>
56518 * modules/pathname: New file.
56519 * MODULES.html.sh (func_all_modules): Add it.
56521 2003-04-01 Bruno Haible <bruno@clisp.org>
56523 * lib/pathname.h: New file, from GNU gettext.
56524 * lib/concatpath.c: New file, from GNU gettext.
56526 2003-03-30 Bruno Haible <bruno@clisp.org>
56528 * m4/copy-file.m4 (gl_COPY_FILE): Add check for chown().
56530 2003-03-30 Bruno Haible <bruno@clisp.org>
56532 * lib/copy-file.c (copy_file_preserving): Don't set owner if the
56533 function chown() doesn't exist.
56535 2003-03-28 Bruno Haible <bruno@clisp.org>
56537 * modules/copy-file: New file.
56538 * MODULES.html.sh (func_all_modules): Add it.
56540 2003-03-28 Bruno Haible <bruno@clisp.org>
56542 * m4/copy-file.m4: New file.
56544 2003-03-28 Bruno Haible <bruno@clisp.org>
56546 * lib/copy-file.h: New file, from GNU gettext.
56547 * lib/copy-file.c: New file, from GNU gettext.
56549 2003-03-18 Jim Meyering <jim@meyering.net>
56551 * lib/quote.c (quote_n): Fix typo in comment.
56553 2003-03-18 Bruno Haible <bruno@clisp.org>
56555 * m4/onceonly.m4: Use m4_defn instead of defn, for better error
56557 * m4/onceonly_2_57.m4: Likewise.
56559 2003-03-17 Bruno Haible <bruno@clisp.org>
56561 * m4/onceonly.m4: Require autoconf 2.54 or newer.
56562 (m4_quote): Remove macro.
56563 * m4/onceonly_2_57.m4: Require autoconf 2.54 or newer.
56565 2003-03-14 Jim Meyering <jim@meyering.net>
56567 Merge changes from Coreutils.
56568 * lib/obstack.h (obstack_object_size): Declare temporary, __o,
56569 to be const, in order to avoid warnings.
56570 (obstack_room): Likewise.
56571 (obstack_empty_p): Likewise.
56573 2003-03-14 Bruno Haible <bruno@clisp.org>
56575 * m4/onceonly_2_57.m4 (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE,
56576 AC_CHECK_DECLS_ONCE): Quote AC_FOREACH variable-expansions properly.
56578 2003-03-13 Paul Eggert <eggert@twinsun.com>
56580 Merge changes from Bison.
56581 * lib/obstack.h: (__INT_TO_PTR) [__STDC__]: Cast result to
56582 (void *) to avoid diagnostic with native c89 on SGI IRIX 6.5
56583 when compiling Bison 1.875's `bitset bset = obstack_alloc
56584 (bobstack, bytes);'. Problem reported by Nelson H. F. Beebe.
56585 * lib/hash.c: Include <stdbool.h> unconditionally.
56587 2003-03-13 Paul Eggert <eggert@twinsun.com>
56589 * m4/onceonly.m4 (m4_quote): New macro.
56590 (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE, AC_CHECK_DECLS_ONCE):
56591 Quote AC_FOREACH variable-expansions properly.
56593 2003-03-13 Paul Eggert <eggert@twinsun.com>
56595 * doc/COPYING.DOC, fdl.texi: Sync with latest FSF version.
56597 2003-03-09 Paul Eggert <eggert@twinsun.com>
56599 * lib/argmatch.c (EXIT_FAILURE): Define if the system doesn't.
56600 Reported by Bruce Becker; see:
56601 http://mail.gnu.org/archive/html/bug-bison/2003-03/msg00017.html
56603 2003-03-03 Paul Eggert <eggert@twinsun.com>
56604 Bruno Haible <bruno@clisp.org>
56606 * lib/mbswidth.h: Include <wchar.h>. Needed for UnixWare 7.1.1.
56607 Reported by John Hughes, see
56608 http://mail.gnu.org/archive/html/bug-bison/2003-02/msg00030.html
56610 2003-02-20 Bruno Haible <bruno@clisp.org>
56612 * MODULES.html.sh (func_all_modules): Add poll.
56614 2003-02-19 Paolo Bonzini <bonzini@gnu.org>
56616 * modules/poll: New file.
56618 2003-02-19 Paolo Bonzini <bonzini@gnu.org>
56620 * lib/poll_.h: New file.
56621 * lib/poll.c: New file.
56623 2003-02-19 Paolo Bonzini <bonzini@gnu.org>
56625 * m4/poll.m4: New file.
56627 2003-02-18 Paolo Bonzini <bonzini@gnu.org>
56629 * modules/mathl: New file.
56631 2003-02-18 Paolo Bonzini <bonzini@gnu.org>
56633 * lib/mathl.h: New file.
56634 * lib/acosl.c: New file.
56635 * lib/asinl.c: New file.
56636 * lib/atanl.c: New file.
56637 * lib/ceill.c: New file.
56638 * lib/cosl.c: New file.
56639 * lib/expl.c: New file.
56640 * lib/floorl.c: New file.
56641 * lib/frexpl.c: New file.
56642 * lib/ldexpl.c: New file.
56643 * lib/logl.c: New file.
56644 * lib/sincosl.c: New file.
56645 * lib/sinl.c: New file.
56646 * lib/sqrtl.c: New file.
56647 * lib/tanl.c: New file.
56648 * lib/trigl.c: New file.
56649 * lib/trigl.h: New file.
56651 2003-02-18 Paolo Bonzini <bonzini@gnu.org>
56653 * m4/mathl.m4: New file.
56655 2003-02-18 Bruno Haible <bruno@clisp.org>
56657 * MODULES.html.sh (func_all_modules): Add mathl.
56659 2003-02-17 Bruno Haible <bruno@clisp.org>
56661 * modules/mkdtemp: New module.
56662 * MODULES.html.sh (func_all_modules): Add it.
56664 2003-02-17 Bruno Haible <bruno@clisp.org>
56666 * m4/mkdtemp.m4: New file, from GNU gettext with modifications.
56668 2003-02-17 Bruno Haible <bruno@clisp.org>
56670 * lib/mkdtemp.h: New file, from GNU gettext.
56671 * lib/mkdtemp.c: New file, from GNU gettext.
56673 2003-02-02 Jim Meyering <jim@meyering.net>
56675 * m4/regex.m4 (jm_INCLUDED_REGEX): Detect broken re_search in
56678 2003-01-31 Bruno Haible <bruno@clisp.org>
56680 * m4/rename.m4 (vb_FUNC_RENAME): Add a redirection from 'rename' to
56682 * m4/strnlen.m4 (gl_FUNC_STRNLEN): Add a redirection from 'strnlen' to
56684 * m4/strtod.m4 (gl_FUNC_STRTOD): Add a redirection from 'strtod' to
56686 * m4/utime.m4 (jm_FUNC_UTIME): Add a redirection from 'utime' to
56689 2003-01-31 Bruno Haible <bruno@clisp.org>
56691 * lib/rename.c: #undef rename before defining rpl_rename.
56692 * lib/strnlen.c: #undef strnlen, define rpl_strnlen instead of strnlen.
56694 2003-01-30 Bruno Haible <bruno@clisp.org>
56696 * modules/vasnprintf, modules/vasprintf: New modules.
56697 * MODULES.html.sh (func_all_modules): Add them.
56699 2003-01-30 Bruno Haible <bruno@clisp.org>
56701 * m4/signed.m4: New file, from GNU gettext.
56702 * m4/longdouble.m4: New file, from GNU gettext.
56703 * m4/wchar_t.m4: New file, from GNU gettext.
56704 * m4/wint_t.m4: New file, from GNU gettext.
56705 * m4/vasnprintf.m4: New file.
56706 * m4/vasprintf.m4: New file.
56708 2003-01-30 Bruno Haible <bruno@clisp.org>
56710 * lib/printf-args.h: New file, from GNU gettext.
56711 * lib/printf-args.c: New file, from GNU gettext.
56712 * lib/printf-parse.h: New file, from GNU gettext.
56713 * lib/printf-parse.c: New file, from GNU gettext.
56714 * lib/vasnprintf.h: New file, from GNU gettext.
56715 * lib/vasnprintf.c: New file, from GNU gettext.
56716 * lib/asnprintf.c: New file, from GNU gettext.
56717 * lib/vasprintf.h: New file, from GNU gettext with modifications.
56718 * lib/vasprintf.c: New file, from GNU gettext.
56719 * lib/asprintf.c: New file, from GNU gettext.
56721 2003-01-29 Bruno Haible <bruno@clisp.org>
56723 * modules/stpncpy: New module.
56724 * MODULES.html.sh (func_all_modules): Add it.
56726 2003-01-29 Bruno Haible <bruno@clisp.org>
56728 * m4/stpncpy.m4: New file.
56730 2003-01-29 Bruno Haible <bruno@clisp.org>
56732 * lib/stpncpy.h: New file, from GNU gettext with modifications.
56733 * lib/stpncpy.c: New file, from GNU gettext with modifications.
56735 2003-01-28 Bruno Haible <bruno@clisp.org>
56737 * modules/c-ctype: New module.
56738 * MODULES.html.sh (func_all_modules): Add it.
56740 2003-01-28 Bruno Haible <bruno@clisp.org>
56742 * lib/c-ctype.h: New file, from GNU gettext, with changes suggested by
56744 * lib/c-ctype.c: New file, from GNU gettext, with changes suggested by
56747 2003-01-27 Bruno Haible <bruno@clisp.org>
56749 * modules/xsetenv: New module.
56750 * MODULES.html.sh (func_all_modules): Add it.
56752 2003-01-27 Bruno Haible <bruno@clisp.org>
56754 * lib/xsetenv.h: New file, from GNU gettext.
56755 * lib/xsetenv.c: New file, from GNU gettext.
56757 2003-01-23 Jim Meyering <jim@meyering.net>
56759 * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Correct typo: s/-1/no/ that kept this
56760 from working on systems without dirfd (at least Irix and OSF1/Tru64).
56762 2003-01-23 Bruno Haible <bruno@clisp.org>
56764 * modules/minmax: New module.
56765 * MODULES.html.sh (func_all_modules): Add it.
56767 2003-01-23 Bruno Haible <bruno@clisp.org>
56769 * lib/minmax.h: New file, from GNU gettext, with comments from Paul
56772 2003-01-22 Bruno Haible <bruno@clisp.org>
56774 * modules/exit: New module.
56775 * MODULES.html.sh (func_all_modules): Add it.
56777 2003-01-22 Bruno Haible <bruno@clisp.org>
56779 * lib/exit.h: New file, from GNU gettext.
56781 2003-01-19 Bruno Haible <bruno@clisp.org>
56783 * gnulib-tool: Recognize option --extract-maintainer.
56784 (func_get_maintainer): New function.
56785 * modules/*: Add Maintainer entry.
56787 2003-01-16 Jim Meyering <jim@meyering.net>
56789 * m4/regex.m4: The `regex' struct is both input and output.
56790 Initialize it before each use. Patch by Tim Waugh.
56792 2003-01-16 Bruno Haible <bruno@clisp.org>
56794 * MODULES.html.sh: Add a table of contents. Add the module name as
56795 leftmost column. Add hyperlinks.
56797 2003-01-15 Bruno Haible <bruno@clisp.org>
56799 * m4/md5.m4 (gl_MD5): Require AC_C_INLINE.
56801 2003-01-15 Bruno Haible <bruno@clisp.org>
56803 * m4/longlong.m4 (jm_AC_TYPE_LONG_LONG): Also test the LL suffix.
56804 * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Also test the ULL
56807 2003-01-15 Bruno Haible <bruno@clisp.org>
56809 * m4/alloca.m4 (gl_FUNC_ALLOCA): Invoke AC_EGREP_CPP prerequisites.
56811 2003-01-15 Bruno Haible <bruno@clisp.org>
56813 * lib/stpcpy.h (stpcpy): Use ANSI C function declarations.
56814 * lib/strcase.h (strcasecmp, strncasecmp): Likewise.
56816 2003-01-14 Jim Meyering <jim@meyering.net>
56818 * lib/same.c (same_name): Tweak a comment.
56820 2003-01-14 Bruno Haible <bruno@clisp.org>
56822 * lib/same.c (same_name): Reorder tests so as to avoid calling stat()
56823 when a string comparison is sufficient.
56825 2003-01-14 Bruno Haible <bruno@clisp.org>
56827 * lib/readtokens.c (readtoken): Cast character to 'unsigned char', not
56830 2003-01-14 Bruno Haible <bruno@clisp.org>
56832 * lib/hash-pjw.c: Add comment about low quality of this function.
56834 2003-01-13 Bruno Haible <bruno@clisp.org>
56836 * modules/stpcpy: Distribute lib/stpcpy.h.
56837 * modules/setenv: Depend on alloca. Distribute lib/setenv.h.
56839 2003-01-13 Bruno Haible <bruno@clisp.org>
56841 * modules/*: Add a description.
56842 * modules/strpbrk: Fix Makefile.am snippet.
56843 * modules/strtoimax: Fix dependencies.
56844 * modules/strtoumax: Likewise.
56846 2003-01-13 Bruno Haible <bruno@clisp.org>
56848 * gnulib-tool (func_create_testdir): Substitute lib_OBJECTS.
56849 * modules/alloca (Makefile.am): All object files depend on alloca.h.
56850 * modules/stdbool (Makefile.am): All object files depend on stdbool.h.
56852 2003-01-13 Bruno Haible <bruno@clisp.org>
56854 * gnulib-tool (func_create_testdir): Store config/* files in the main
56856 * config.rpath: Move to ...
56857 * config/config.rpath: ... here.
56858 * modules/gettext: Contains config/config.rpath, not config.rpath.
56859 * modules/iconv: Likewise.
56861 2003-01-12 Paul Eggert <eggert@twinsun.com>
56863 Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
56864 to avoid collisions with libcurses and libreadline.
56866 * m4/getstr.m4: Remove.
56867 * m4/getline.m4 (gl_PREREQ_GETLINE): Require AC_HEADER_STDC.
56869 2003-01-12 Paul Eggert <eggert@twinsun.com>
56871 Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
56872 to avoid collisions with libcurses and libreadline.
56874 * lib/Makefile.am (libfetish_a_SOURCES): Remove getstr.c, getstr.h.
56875 * lib/getstr.h, getstr.c: Remove.
56876 * lib/getline.c: Include "getline.h", to check interface.
56877 Move body of old getstr.c here: this defines MIN_CHUNK and
56878 declares getdelim2, which is renamed from getstr.
56879 (getline, getdelim): Adjust to renaming of getstr -> getdelim2.
56881 * lib/linebuffer.c (readlinebuffer): Renamed from readline.
56883 * lib/linebuffer.h: Likewise.
56884 (readline): Remove backward-compatibility macro.
56886 2003-01-12 Paul Eggert <eggert@twinsun.com>
56888 Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
56889 to avoid collisions with libcurses and libreadline.
56891 * MODULES.html.sh: Remove getstr.
56892 * modules/getline: Depend on unlocked-io, not getstr.
56894 2003-01-12 Jim Meyering <jim@meyering.net>
56896 * lib/makepath.c: Don't test HAVE_ERRNO_H. It's not necessary.
56898 2003-01-10 Bruno Haible <bruno@clisp.org>
56900 * modules/alloca: Change Makefile.am requirements. Simplify Include
56901 requirements. Add lib/alloca_.h to file list.
56903 2003-01-10 Bruno Haible <bruno@clisp.org>
56905 * m4/alloca.m4 (gl_FUNC_ALLOCA): Also define ALLOCA_H.
56907 2003-01-10 Bruno Haible <bruno@clisp.org>
56909 * lib/alloca_.h: New file.
56910 * lib/getdate.y: Unconditionally include alloca.h.
56911 * lib/makepath.c: Likewise.
56912 * lib/setenv.c: Likewise.
56913 * lib/userspec.c: Likewise.
56915 2003-01-09 Karl Berry <karl@gnu.org>
56917 * MODULES.html.sh: include `dirname $0` in PATH, to find
56920 2003-01-09 Bruno Haible <bruno@clisp.org>
56922 * modules/stdbool: Change configure.ac, Makefile.am requirements.
56923 Simplify Include requirements. Add lib/stdbool.h.in to file list.
56925 2003-01-09 Bruno Haible <bruno@clisp.org>
56927 * m4/stdbool.m4 (AM_STDBOOL_H): New macro.
56929 2003-01-09 Bruno Haible <bruno@clisp.org>
56931 * lib/stdbool.h.in: New file.
56933 2003-01-09 Bruno Haible <bruno@clisp.org>
56935 * gnulib-tool (func_all_modules): Ignore files ending in ~.
56936 * MODULES.html.sh: Likewise.
56938 2003-01-08 Jim Meyering <jim@meyering.net>
56940 * lib/full-write.c: Undefine and define-away `const' after inclusion
56941 of errno.h, not before. Suggestion from Bruno Haible.
56943 2003-01-08 Bruno Haible <bruno@clisp.org>
56945 * modules/full-read: Depend on full-write.
56947 2003-01-08 Bruno Haible <bruno@clisp.org>
56949 * lib/safe-read.c: Include specification header first, to ensure its
56951 * lib/full-write.c: Likewise.
56953 2003-01-07 Jim Meyering <jim@meyering.net>
56955 * lib/full-write.c: Rework so that it may serve to define full_read,
56957 * lib/full-read.c: Simply #define FULL_READ and include full-write.c.
56959 2003-01-07 Bruno Haible <bruno@clisp.org>
56961 * lib/strtoimax.c: Include <stdint.h> as an alternative to
56963 * lib/xstrtol.h: Likewise.
56964 * lib/xstrtoimax.c: Likewise.
56965 * lib/xstrtoumax.c: Likewise.
56966 * lib/human.h: Likewise.
56968 * lib/tempname.c: Include <inttypes.h> too. Avoids a compilation error
56969 on systems that have <inttypes.h> but not <stdint.h>.
56971 2003-01-07 Bruno Haible <bruno@clisp.org>
56973 * MODULES.html.sh: Add copyright notice.
56974 (missed_files): Omit CVS directory entries.
56975 (func_module): Make it work with sed-3.02.
56976 * MODULES.txt: Remove file.
56978 2003-01-06 Jim Meyering <jim@meyering.net>
56980 * lib/version-etc.c: Update year in translatable copyright string.
56982 2003-01-03 Karl Berry <karl@gnu.org>
56984 * config/config.{guess,sub}: update from prep.
56986 2003-01-02 Karl Berry <karl@gnu.org>
56988 * doc/COPYING.DOC: belatedly updated to 1.2.
56990 2003-01-01 Karl Berry <karl@gnu.org>
56992 * gnulib-tool (func_verify_module): report module name $module in
56993 error message, not $1.
56994 * gnulib-tool (create-testdir): don't complain if destdir couldn't
56995 be created, only if it doesn't exist.
56996 * gnulib-tool (last_checkin_date): don't expand the $Date here.
56998 2002-12-31 Paul Eggert <eggert@twinsun.com>
57000 * m4/memcoll.m4 (gl_MEMCOLL): Require AC_FUNC_MEMCMP.
57002 2002-12-31 Paul Eggert <eggert@twinsun.com>
57004 * lib/memcoll.c (memcoll): Fall back on a simple algorithm using
57005 memcmp if strcoll doesn't work.
57007 2002-12-31 Bruno Haible <bruno@clisp.org>
57009 * lib/utime.c (utime_null): No need to call ftruncate if the file was
57012 2002-12-31 Bruno Haible <bruno@clisp.org>
57014 * lib/memcoll.c (STRCOLL): New macro.
57017 2002-12-31 Bruno Haible <bruno@clisp.org>
57019 * lib/localcharset.h: New file.
57020 * lib/localcharset.c: Include it.
57021 * lib/unicodeio.c: Likewise.
57023 2002-12-31 Bruno Haible <bruno@clisp.org>
57025 * lib/getstr.h (getstr): Define, to avoid clash with libcurses.
57026 * lib/linebuffer.h (readline): Define, to avoid clash with libreadline.
57028 2002-12-31 Bruno Haible <bruno@clisp.org>
57030 * lib/getline.h: Include <stddef.h>, for size_t.
57032 * lib/unicodeio.h: Include <stddef.h>, for size_t.
57033 * lib/unicodeio.c: Don't include <stddef.h>.
57035 2002-12-31 Bruno Haible <bruno@clisp.org>
57037 * lib/getdate.y (get_date): Test HAVE_STRUCT_TM_TM_ZONE, not
57040 2002-12-24 Karl Berry <karl@gnu.org>
57042 * config/config.guess: update from prep.
57044 2002-12-24 Bruno Haible <bruno@clisp.org>
57046 General infrasructure.
57047 * m4/README: Rewritten.
57048 * m4/onceonly.m4: New file.
57049 * m4/onceonly_2_57.m4: New file.
57052 * m4/atexit.m4: New file.
57055 * m4/strtod.m4: New file.
57058 * m4/strtol.m4: New file.
57061 * m4/strtoul.m4: New file.
57064 * m4/memchr.m4: New file.
57067 * m4/memcmp.m4 (gl_PREREQ_MEMCMP): New macro.
57068 (jm_FUNC_MEMCMP): Invoke it.
57071 * m4/memcpy.m4: New file.
57074 * m4/memmove.m4: New file.
57077 * m4/memset.m4: New file.
57080 * m4/strcspn.m4: New file.
57083 * m4/strpbrk.m4: New file.
57086 * m4/strstr.m4: New file.
57089 * m4/strerror.m4: New file.
57092 * m4/mktime.m4: Renamed from jm-mktime.m4.
57093 (gl_PREREQ_MKTIME): New macro.
57094 (gl_FUNC_MKTIME): Renamed from jm_FUNC_MKTIME. Invoke gl_PREREQ_MKTIME.
57097 * m4/malloc.m4 (gl_PREREQ_MALLOC): New macro.
57098 (jm_FUNC_MALLOC): Use AC_FUNC_MALLOC. Invoke gl_PREREQ_MALLOC.
57099 Don't define HAVE_DONE_WORKING_MALLOC_CHECK, since nothing uses it.
57102 * m4/realloc.m4 (gl_PREREQ_REALLOC): New macro.
57103 (jm_FUNC_REALLOC): Use AC_FUNC_REALLOC. Invoke gl_PREREQ_REALLOC.
57104 Don't define HAVE_DONE_WORKING_REALLOC_CHECK, since nothing uses it.
57107 * m4/tm_gmtoff.m4: New file, extracted from strftime.m4.
57108 * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Use AC_FUNC_STRFTIME.
57109 Don't test for bcopy (we are not emacs). Invoke AC_TYPE_MBSTATE_T and
57111 (_jm_STRFTIME_PREREQS, jm_FUNC_GNU_STRFTIME): Use onceonly macros.
57114 * m4/xalloc.m4: New file.
57117 * m4/alloca.m4: New file.
57120 * m4/putenv.m4 (gl_PREREQ_PUTENV): New macro.
57121 (jm_FUNC_PUTENV): Invoke it.
57124 * m4/setenv.m4 (gt_FUNC_SETENV): New macro.
57125 (gt_CHECK_VAR_DECL): Fix quoting error that led to infinite loop in m4
57126 when invoked twice.
57127 (gt_PREREQ_SETENV, gt_PREREQ_UNSETENV): New macros, replacing old
57131 * m4/memrchr.m4: New file.
57134 * m4/stpcpy.m4: New file.
57137 * m4/strcase.m4: New file.
57140 * m4/strdup.m4: New file.
57143 * m4/strnlen.m4: New file.
57146 * m4/strndup.m4: New file.
57149 * m4/xstrtod.m4: New file.
57152 * m4/xstrtol.m4: New file.
57155 * m4/getdate.m4: New file.
57157 Module unlocked-io.
57158 * m4/unlocked-io.m4: Renamed from jm-glibc-io.m4.
57159 (jm_FUNC_GLIBC_UNLOCKED_IO): Invoke AC_GNU_SOURCE. Use onceonly macros.
57160 * m4/jm-glibc-io.m4n: Remove file.
57162 Module long-options.
57163 * m4/long-options.m4: New file.
57166 * m4/md5.m4: New file.
57169 * m4/sha.m4: New file.
57172 * m4/getstr.m4: New file.
57175 * m4/getline.m4 (gl_PREREQ_GETLINE): New macro.
57176 (AM_FUNC_GETLINE): Invoke AC_GNU_SOURCE. Use <stdlib.h>, not
57177 <sys/types.h>, for size_t. Use the function name gnu_getline, not
57178 simply getline. Infoke gl_PREREQ_GETLINE.
57181 * m4/obstack.m4: New file.
57184 * m4/hash.m4: New file.
57187 * m4/readtokens.m4: New file.
57190 * m4/strverscmp.m4: New file.
57193 * m4/stdbool.m4 (AC_HEADER_STDBOOL): Add test for _Bool. Needed for
57197 * m4/strtoll.m4: New file.
57200 * m4/strtoull.m4: New file.
57203 * m4/strtoimax.m4: New file.
57206 * m4/strtoumax.m4: New file.
57209 * m4/xstrtoimax.m4 (jm_XSTRTOIMAX): Renamed from
57210 jm_AC_PREREQ_XSTRTOIMAX.
57211 Moved the strtol prerequisites to strtol.m4.
57212 Moved the strtoll prerequisites to strtoll.m4.
57213 Moved the strtoimax prerequisites to strtoimax.m4.
57216 * m4/xstrtoumax.m4 (jm_XSTRTOUMAX): Renamed from
57217 jm_AC_PREREQ_XSTRTOUMAX.
57218 Moved the strtoul prerequisites to strtoul.m4.
57219 Moved the strtoull prerequisites to strtoull.m4.
57220 Moved the strtoumax prerequisites to strtoumax.m4.
57223 * m4/chown.m4 (gl_PREREQ_CHOWN): New macro.
57224 (jm_FUNC_CHOWN): Use AC_FUNC_CHOWN. Invoke gl_PREREQ_CHOWN.
57227 * m4/dup2.m4: New file.
57230 * m4/ftruncate.m4 (gl_PREREQ_FTRUNCATE): New macro.
57231 (jm_FUNC_FTRUNCATE): Use AC_REPLACE_FUNCS. Invoke gl_PREREQ_FTRUNCATE.
57234 * m4/getgroups.m4 (gl_PREREQ_GETGROUPS): New macro.
57235 (jm_FUNC_GETGROUPS): Use AC_FUNC_GETGROUPS. Invoke gl_PREREQ_GETGROUPS.
57237 Module gettimeofday.
57238 * m4/gettimeofday.m4 (gl_PREREQ_GETTIMEOFDAY): New macro.
57239 (AC_FUNC_GETTIMEOFDAY_CLOBBER): Use onceonly macros. Invoke
57240 gl_PREREQ_GETTIMEOFDAY.
57243 * m4/mkdir-slash.m4 (gl_PREREQ_MKDIR): New macro.
57244 (UTILS_FUNC_MKDIR_TRAILING_SLASH): Invoke gl_PREREQ_MKDIR.
57247 * m4/mkstemp.m4 (gl_PREREQ_MKSTEMP): New macro.
57248 (jm_PREREQ_TEMPNAME): New macro, from prereq.m4. Also invoke
57249 jm_AC_TYPE_UINTMAX_T.
57250 (UTILS_FUNC_MKSTEMP): Invoke gl_PREREQ_MKSTEMP and jm_PREREQ_TEMPNAME.
57253 * m4/stat.m4 (gl_PREREQ_STAT): New macro.
57254 (jm_FUNC_STAT): Use AC_FUNC_STAT. Invoke gl_PREREQ_STAT.
57257 * m4/lstat.m4 (gl_PREREQ_LSTAT): New macro.
57258 (jm_FUNC_LSTAT): Use AC_FUNC_LSTAT. Invoke gl_PREREQ_LSTAT.
57261 * m4/timespec.m4 (gl_TIMESPEC): New macro.
57262 (jm_CHECK_TYPE_STRUCT_TIMESPEC): Add check for <sys/time.h>.
57263 * m4/st_mtim.m4: Indentation.
57266 * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): New macro.
57267 (jm_FUNC_NANOSLEEP): Add check for <sys/time.h>. Invoke
57268 gl_PREREQ_NANOSLEEP.
57271 * m4/regex.m4 (jm_PREREQ_REGEX): New macro.
57272 (jm_INCLUDED_REGEX): Invoke jm_PREREQ_REGEX.
57273 (gl_REGEX): New macro.
57276 * m4/rename.m4 (gl_PREREQ_RENAME): New macro.
57277 (vb_FUNC_RENAME): Invoke gl_PREREQ_RENAME.
57280 * m4/rmdir.m4: New file.
57283 * m4/utimbuf.m4 (jm_CHECK_TYPE_STRUCT_UTIMBUF): Use onceonly macros.
57284 * m4/utime.m4 (gl_PREREQ_UTIME): New macro.
57285 (jm_FUNC_UTIME): Invoke gl_PREREQ_UTIME.
57288 * m4/dirname.m4: New file.
57291 * m4/getopt.m4: New file.
57293 Module unistd-safer.
57294 * m4/unistd-safer.m4: New file.
57297 * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Include <stdlib.h>, for exit()
57299 (gl_PREREQ_FNMATCH_EXTRA): New macro.
57300 (gl_FUNC_FNMATCH_POSIX): New macro.
57301 (gl_FUNC_FNMATCH_GNU): Renamed from AC_FUNC_FNMATCH_GNU. Invoke
57302 gl_PREREQ_FNMATCH_EXTRA. Use the function name gnu_fnmatch, not
57306 * m4/exclude.m4: New file.
57309 * m4/human.m4: New file.
57315 * m4/backupfile.m4: New file.
57316 * m4/d-ino.m4: Indentation.
57319 * m4/fsusage.m4 (gl_FSUSAGE): New macro.
57320 (jm_STATFS_TRUNCATES): New macro, from coreutils-4.5.4/configure.ac.
57321 (gl_PREREQ_FSUSAGE_EXTRA): New macro.
57324 * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Invoke some AC_EGREP_CPP
57328 * m4/euidaccess.m4: New file.
57331 * m4/file-type.m4: New file.
57334 * m4/fileblocks.m4: New file.
57337 * m4/filemode.m4: New file.
57340 * m4/isdir.m4: New file.
57343 * m4/lchown.m4 (gl_PREREQ_LCHOWN): New macro.
57344 (jm_FUNC_LCHOWN): Invoke gl_PREREQ_LCHOWN.
57347 * m4/makepath.m4: New file.
57350 * m4/modechange.m4: New file.
57353 * m4/mountlist.m4: New file.
57354 * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Use onceonly macros.
57357 Module path-concat.
57358 * m4/path-concat.m4: New file.
57361 * m4/pathmax.m4: New file.
57364 * m4/same.m4: New file.
57367 * m4/save-cwd.m4: New file.
57370 * m4/savedir.m4: New file.
57373 * m4/xgetcwd.m4: New file.
57374 * m4/getcwd.m4 (AC_FUNC_GETCWD_NULL): Use onceonly macros.
57377 * m4/xreadlink.m4: New file.
57380 * m4/safe-read.m4: New file.
57383 * m4/safe-write.m4: New file.
57386 * m4/closeout.m4: New file.
57388 Module stdio-safer.
57389 * m4/stdio-safer.m4: New file.
57392 * m4/getpass.m4: New file.
57395 * m4/getugroups.m4: New file.
57397 Module group-member.
57398 * m4/group-member.m4 (gl_PREREQ_GROUP_MEMBER): New macro.
57399 (jm_FUNC_GROUP_MEMBER): Invoke AC_GNU_SOURCE, gl_PREREQ_GROUP_MEMBER.
57402 * m4/idcache.m4: New file.
57405 * m4/userspec.m4: New file.
57408 * m4/clock_time.m4: New file.
57409 * m4/gettime.m4: New file.
57412 * m4/settime.m4: New file.
57415 * m4/posixtm.m4: New file.
57417 Module gethostname.
57418 * m4/gethostname.m4: New file.
57421 * m4/canon-host.m4: New file.
57424 * m4/codeset.m4: New file, from gettext-0.11.5.
57425 * m4/gettext.m4: New file, from gettext-0.11.5.
57426 * m4/glibc21.m4: New file, from gettext-0.11.5.
57427 * m4/iconv.m4: New file, from gettext-0.11.5.
57428 * m4/intdiv0.m4: New file, from gettext-0.11.5.
57429 * m4/inttypes-pri.m4: New file, from gettext-0.11.5.
57430 * m4/inttypes.m4: New file, from gettext-0.11.5.
57431 * m4/inttypes_h.m4: New file, from gettext-0.11.5 with modifications.
57432 * m4/isc-posix.m4: New file, from gettext-0.11.5.
57433 * m4/lcmessage.m4: New file, from gettext-0.11.5.
57434 * m4/lib-ld.m4: New file, from gettext-0.11.5.
57435 * m4/lib-link.m4: New file, from gettext-0.11.5.
57436 * m4/lib-prefix.m4: New file, from gettext-0.11.5.
57437 * m4/progtest.m4: New file, from gettext-0.11.5.
57438 * m4/stdint_h.m4: New file, from gettext-0.11.5 with modifications.
57439 * m4/uintmax_t.m4: New file, from gettext-0.11.5 with modifications.
57440 * m4/ulonglong.m4: New file, from gettext-0.11.5 with modifications.
57442 Module localcharset.
57443 * m4/localcharset.m4: New file.
57445 Module hard-locale.
57446 * m4/hard-locale.m4: New file.
57449 * m4/mbswidth.m4 (gl_MBSWIDTH): Renamed from jm_PREREQ_MBSWIDTH. Use
57451 * m4/mbrtowc.m4: Add comment.
57454 * m4/memcasecmp.m4: New file.
57457 * m4/memcoll.m4: New file.
57460 * m4/unicodeio.m4: New file.
57463 * m4/rpmatch.m4: New file.
57466 * m4/yesno.m4: New file.
57469 * m4/exitfail.m4: New file.
57472 * m4/c-stack.m4 (gl_C_STACK): New macro.
57473 (jm_PREREQ_C_STACK): Check for <sys/time.h>. Use onceonly macros.
57476 * m4/error.m4 (gl_ERROR): New macro.
57477 (jm_PREREQ_ERROR): Use onceonly macros.
57480 * m4/fatal.m4: New file.
57483 * m4/getloadavg.m4 (AC_FUNC_GETLOADAVG): Use onceonly macros.
57484 (gl_FUNC_GETLOADAVG, gl_PREREQ_GETLOADAVG): New macros.
57486 Module getpagesize.
57487 * m4/getpagesize.m4: New file.
57489 Module getusershell.
57490 * m4/getusershell.m4: New file.
57493 * m4/physmem.m4: New file.
57496 * m4/posixver.m4: New file.
57499 * m4/quotearg.m4: New file.
57502 * m4/quote.m4: New file.
57505 * m4/readutmp.m4: New file, based on jm_PREREQ_READUTMP from prereq.m4.
57508 * m4/sig2str.m4: New file.
57511 * m4/longlong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Remove, moved to
57513 * m4/intmax_t.m4: New file.
57514 * m4/d-type.m4: Indentation.
57515 * m4/jm-macros.m4: Update.
57516 * m4/prereq.m4 (jm_PREREQ): Update.
57517 (jm_PREREQ_ADDEXT): Remove, obsoleted by backupfile.m4.
57518 (jm_PREREQ_CANON_HOST): Remove, obsoleted by canon-host.m4.
57519 (jm_PREREQ_DIRNAME): Remove, obsoleted by dirname.m4.
57520 (jm_PREREQ_EXCLUDE): Remove, obsoleted by exclude.m4.
57521 (jm_PREREQ_GETPAGESIZE): Remove, obsoleted by getpagesize.m4.
57522 (jm_PREREQ_HARD_LOCALE): Remove, obsoleted by hard-locale.m4.
57523 (jm_PREREQ_HASH): Remove, obsoleted by hash.m4.
57524 (jm_PREREQ_HUMAN): Remove, obsoleted by human.m4.
57525 (jm_PREREQ_MEMCHR): Remove, obsoleted by memchr.m4.
57526 (jm_PREREQ_PHYSMEM): Remove, obsoleted by physmem.m4.
57527 (jm_PREREQ_POSIXVER): Remove, obsoleted by posixver.m4.
57528 (jm_PREREQ_QUOTEARG): Remove, obsoleted by quotearg.m4.
57529 (jm_PREREQ_READUTMP): Remove, obsoleted by readutmp.m4.
57530 (jm_PREREQ_REGEX): Remove, obsoleted by regex.m4.
57531 (jm_PREREQ_STRNLEN): Remove, obsoleted by strnlen.m4.
57532 (jm_PREREQ_TEMPNAME): Remove, obsoleted by mkstemp.m4.
57533 (jm_PREREQ_XGETCWD): Remove, obsoleted by xgetcwd.m4.
57534 (jm_PREREQ_XREADLINK): Remove, obsoleted by xreadlink.m4.
57535 * m4/readdir.m4 (jm_FUNC_READDIR): Use onceonly macros.
57537 2002-12-24 Bruno Haible <bruno@clisp.org>
57539 * MODULES.txt: Update according to m4/ changes.
57542 * config.rpath: New file, from gettext-0.11.5.
57544 * modules/*: New module descriptions.
57545 * gnulib-tool: New file.
57546 * MODULES.html.sh: New file.
57548 2002-12-21 Karl Berry <karl@gnu.org>
57550 * doc/fdl.texi: update to version 1.2.
57552 2002-12-19 Karl Berry <karl@gnu.org>
57554 * config/config.guess: update from prep.
57556 2002-12-18 Bruno Haible <bruno@clisp.org>
57558 * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't test for localtime_r.
57559 * m4/jm-mktime.m4 (jm_FUNC_MKTIME): Likewise.
57561 2002-12-17 Bruno Haible <bruno@clisp.org>
57563 * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Remove checks for limits.h,
57564 stdlib.h, string.h.
57566 2002-12-17 Bruno Haible <bruno@clisp.org>
57568 * lib/canon-host.c (strdup): Remove unused declaration.
57570 * lib/fsusage.c: Include full_read.h.
57571 (get_fs_usage): Use full_read instead of safe_read.
57573 * lib/utime.c (utime_null): Use SAFE_READ_ERROR.
57575 2002-12-12 Karl Berry <karl@gnu.org>
57577 * config/config.guess: update from prep.
57579 2002-12-11 Bruno Haible <bruno@clisp.org>
57581 * m4/setenv.m4: New file, from gettext-0.11.5.
57583 2002-12-11 Bruno Haible <bruno@clisp.org>
57585 * lib/setenv.h: Rewritten to cope with systems that have setenv() but
57587 * lib/setenv.c, unsetenv.c: Taken from glibc-2.2.4 with the following
57590 2002-12-11 Bruno Haible <bruno@clisp.org>
57592 * setenv.c (alloca): Fall back to malloc.
57593 (freea): New macro.
57594 (setenv): Use freea() to free memory allocated with alloca().
57596 2002-11-13 Bruno Haible <bruno@clisp.org>
57598 * setenv.c (compar_fn_t, __add_to_environ, setenv): Use ANSI C
57599 function declarations.
57600 * unsetenv.c (unsetenv): Likewise.
57602 2002-03-04 Bruno Haible <bruno@clisp.org>
57604 Portability to AIX 4.3.3.
57605 * unsetenv.c: New file, extracted from setenv.c.
57606 * setenv.c: Move the unsetenv() function to unsetenv.c.
57608 2001-12-20 Bruno Haible <bruno@clisp.org>
57610 * setenv.c (__add_to_environ): Don't call realloc(NULL,...),
57611 use malloc instead. For SunOS 4.
57613 2001-12-11 Bruno Haible <bruno@clisp.org>
57615 * setenv.c: Declare alloca.
57616 (compar_fn_t): New typedef.
57617 (KNOWN_VALUE, STORE_VALUE): Use it.
57619 * lib/Makefile.am (libfetish_a_SOURCES): Add setenv.c, unsetenv.c,
57622 2002-12-10 Paul Eggert <eggert@twinsun.com>
57624 Port exclude.c and exclude.h to more non-GNU systems, e.g. Solaris 7.
57625 * lib/exclude.h (EXCLUDE_ANCHORED, EXCLUDE_INCLUDE, EXCLUDE_WILDCARDS):
57626 Choose values that are less likely to collide with system fnmatch
57628 * lib/exclude.c (FNM_CASEFOLD, FNM_LEADING_DIR): Define to 0 if not
57629 defined (e.g., a pure POSIX system).
57630 (EXCLUDE_macros_do_not_collide_with_FNM_macros): Use FNM_PATHNAME
57631 instead of FNM_FILE_NAME, for compatibility with pure POSIX sytems.
57633 2002-12-06 Paul Eggert <eggert@twinsun.com>
57635 Undo the 2001-07-02 change for jm-glibc-io, as it was too much of
57636 a pain in practice to deal with generated m4 files. This change
57637 goes together with the 2002-12-04 unlocked-io.h change in ../lib.
57639 * m4/Makefile.am.in (Makefile.am): Don't mention jm-glibc-io.m4n
57640 and jm-glibc-io.m4, as they are no longer a special case.
57641 * m4/jm-glibc-io.m4: Rename from jm-glibc-io.m4n, and remove the
57642 kludge and the auto-generation stuff. Check only whether the
57643 functions are declared, not whether they exist, since older hosts
57644 that don't declare the functions can't use the optimization anyway.
57646 2002-12-06 Jim Meyering <jim@meyering.net>
57648 * lib/error.c: Be consistent: change `#ifndef _LIBC' to `#if !_LIBC'.
57650 Merge in changes from libc's misc/error.c, in preparation
57651 for the merge of gnulib's changes back into libc.
57653 * lib/error.c (_): Define only if not already defined.
57654 Move definition to follow all #include directives.
57655 Include unlocked-io.h only if !_LIBC.
57656 [_LIBC]: Include <libio/libioP.h>.
57657 [USE_IN_LIBIO]: Include <libio/iolibio.h>
57658 (fflush): Tweak definition to use INTUSE.
57661 2002-12-05 Paul Eggert <eggert@twinsun.com>
57663 * lib/alloca.c [defined emacs]: Include "lisp.h".
57664 (xalloc_die) [defined emacs]: New macro.
57665 (free) [defined emacs && defined EMACS_FREE]: Define to EMACS_FREE.
57666 [! defined emacs]: Include <xalloc.h>.
57667 (POINTER_TYPE) [!defined POINTER_TYPE]: New macro.
57668 (pointer): Typedef to POINTER_TYPE *.
57669 (malloc): Remove decl; we now always use xmalloc.
57670 (alloca): Use old-style definition, since Emacs needs this.
57671 Check for arithmetic overflow when computing combined size.
57673 2002-12-04 Paul Eggert <eggert@twinsun.com>
57675 Do not generate unlocked-io.h automatically, since it's easier to
57676 maintain it by hand.
57678 * lib/unlocked-io.h: New file, from GNU diffutils,
57679 but with proper copyright notice and attribution.
57680 * lib/gen-uio: Remove.
57681 * lib/Makefile.am: Add copyright notice.
57682 (libfetish_a_SOURCES): Add unlocked-io.h.
57683 (BUILT_SOURCES, all-local): Remove unlocked-io.h.
57684 (DISTCLEANFILES, io_functions): Remove macros.
57685 (EXTRA_DIST): Remove gen_uio.
57686 (unlocked-io.h): Remove rule.
57688 2002-12-04 Jim Meyering <jim@meyering.net>
57690 Reflect the fact that stat.c and lstat.c are no longer generated.
57691 * lib/Makefile.am (BUILT_SOURCES): Remove stat.c and lstat.c.
57692 (DISTCLEANFILES): Likewise.
57693 (EXTRA_DIST): Likewise.
57694 (all_local): Don't depend on stat.c or lstat.c.
57695 (stat.c, lstat.c): Remove rules.
57696 (EXTRA_DIST): Remove xstat.in.
57698 * lib/xstat.in: Remove file. Contents moved into stat.c.
57699 * lib/stat.c: New file. Contents mostly from xstat.in.
57700 * lib/stat.c: Rework so that it may serve to define rpl_lstat, too.
57701 * lib/lstat.c: New file. Simply #define LSTAT and include stat.c.
57703 * lib/safe-read.c: Rework so that it may serve to define safe_write,
57705 * lib/safe-write.c: Simply #define SAFE_WRITE and include safe-read.c.
57707 2002-12-03 Jim Meyering <jim@meyering.net>
57709 * lib/safe-read.c, safe-write.c: Change variable names and comments,
57710 but not semantics, to minimize the differences between these two files.
57711 (safe_read): Change comment to mention SAFE_READ_ERROR.
57713 * lib/safe-read.c (IS_EINTR): Define.
57714 (safe_read): Use IS_EINTR in place of in-function cpp directives.
57716 2002-12-02 Jim Meyering <jim@meyering.net>
57718 * lib/safe-read.c (EINTR): Define.
57719 (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Define.
57720 (INT_MAX): Provide fallback.
57721 (safe_read): Rewrite to iterate IFF the read fails with EINTR.
57723 * lib/safe-read.h (SAFE_READ_ERROR): Define.
57725 2002-12-02 Bruno Haible <bruno@clisp.org>
57727 * lib/safe-write.c (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM):
57728 Define, taken from safe-read.c.
57729 (INT_MAX): Provide fallback.
57730 (safe_write): Rewrite to iterate IFF the write fails with EINTR.
57731 * lib/safe-write.h (SAFE_WRITE_ERROR): Define.
57733 * lib/safe-read.c (EINTR): Remove definition.
57734 (safe_read): Don't use EINTR if it is absent.
57736 2002-12-01 Jim Meyering <jim@meyering.net>
57738 * lib/safe-read.c: (safe_read): Also exit the loop when read returns
57740 (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM, INT_MAX): Define.
57742 2002-11-27 Paul Eggert <eggert@twinsun.com>
57744 * lib/hash.c (hash_lookup, hash_get_first, hash_get_next,
57745 hash_find_entry, hash_rehash): Replace `if (limit <= value) abort ();'
57746 with `if (! (value < limit)) abort ();', for readability.
57748 2002-11-26 Karl Berry <karl@gnu.org>
57750 * lib/strdup.c: copy from libc again, with jim's ok.
57751 * lib/.cppi-disable: re-add strdup.c
57753 2002-11-25 Karl Berry <karl@gnu.org>
57755 * lib/strtoll.c: copy from libc, meaning we now #include <strtol.c>
57756 instead of "strtol.c".
57758 2002-11-25 Karl Berry <karl@gnu.org>
57760 * config/install-sh: update from automake for variable quoting, $0 in
57763 * config/srclist.txt ($LIBCSRC/time/mktime.c lib gpl): new entry.
57764 * config/srclist.txt ($LIBCSRC/sysdeps/generic/strtoll.c lib gpl): new
57767 2002-11-25 Jim Meyering <jim@meyering.net>
57769 * lib/mktime.c: Sync from libc, now that it has the latest fix.
57771 2002-11-24 Karl Berry <karl@gnu.org>
57773 * lib/error.c, getopt.c, getopt.h, getopt1.c, obstack.c, regex.c,
57774 regex.h, strdup.c, strtoll.c, tempname.c: change license to gpl.
57776 2002-11-24 Jim Meyering <jim@meyering.net>
57778 Update from coreutils:
57780 * lib/mktime.c: Merge in changes from libc.
57782 Avoid a link-time failure on some Linux systems.
57783 * lib/mktime.c (STATIC): Define to be empty (_LIBC) or `static'
57785 (__mon_yday): Declare with the STATIC attribute.
57786 (__mktime_internal): Likewise.
57787 Based on a report from Greg Schafer.
57789 2002-11-23 Jim Meyering <jim@meyering.net>
57791 * lib/sig2str.c (str2signum, sig2str): Avoid a warning from gcc:
57792 Use `unsigned', not `int', as type of index.
57794 * lib/xstat.in [@BEGIN_LSTAT_ONLY@]: Include <string.h>.
57796 * lib/fsusage.c: Remove unneeded parentheses around operands of
57799 2002-11-22 Paul Eggert <eggert@twinsun.com>
57801 * lib/quotearg.h: Allow multiple inclusion by surrounding with
57802 "#ifndef QUOTEARG_H_". Include <stddef.h>, for size_t,
57803 so that we can be included first.
57804 (PARAMS): Remove; we now assume C89 or later. All uses removed.
57805 * lib/quotearg.c: Include quotearg.h immediately after config.h.
57806 No need to include stddef.h or sys/types.h any more.
57807 Surround local include files with "", not "<>".
57808 Assume HAVE_LIMITS_H unconditionally, as we assume C89.
57809 Similarly, assume HAVE_C_BACKSLASH_A, CHAR_BIT, UCHAR_MAX, UINT_MAX,
57810 HAVE_STDLIB_H, HAVE_STRING_H, STDC_HEADERS.
57811 (HAVE_MBSINIT): Undef if !HAVE_MBRTOWC.
57812 (mbsinit): Define to 1 if !defined mbsinit && !HAVE_MBSINIT.
57813 (ISPRINT): Remove; no longer needed now that we assume C89.
57815 (clone_quoting_options, quotearg_buffer, quotearg_n_options):
57818 (quotearg_buffer_restyled, quotearg_n, quotearg_n_style,
57819 quotearg_char): Use SIZE_MAX rather than
57820 (size_t) -1 when we are talking about "infinity".
57822 (quotearg_buffer_restyled): Fix bug when quoting trigraphs.
57824 2002-11-22 Paul Eggert <eggert@twinsun.com>
57826 * lib/hash.c: Avoid use of <assert.h>, as the GNU Coding Standards
57827 hint that one should use `if (! x) abort ();' rather than `assert
57828 (x);', and anyway it's one less thing to worry about configuring.
57829 (hash_lookup, hash_get_first, hash_get_next, hash_find_entry,
57830 hash_rehash, hash_insert): Use abort rather than assert.
57832 2002-11-22 Bruno Haible <bruno@clisp.org>
57834 * lib/safe-read.h: Assume C89. Add comments.
57835 (safe_read): Change return type to size_t.
57836 * lib/safe-read.c (safe_read): Change return type to size_t. Handle
57837 byte counts > SSIZE_MAX correctly.
57838 * lib/safe-write.h: New file.
57839 * lib/safe-write.c: New file.
57840 * lib/full-read.h: New file.
57841 * lib/full-read.c: New file.
57842 * lib/full-write.h: Assume C89. Add comments.
57843 * lib/full-write.c: Include safe-write.h.
57844 (full_write): Rewritten to use safe_write.
57845 Suggested by Jim Meyering and Paul Eggert.
57847 2002-11-21 Jim Meyering <jim@meyering.net>
57849 * lib/strdup.c (strdup): Tweak comment and initial #if/#include.
57851 Merge in changes from the coreutils.
57853 2002-09-25 Paul Eggert <eggert@twinsun.com>
57854 * lib/fsusage.c [! HAVE_INTTYPES_H && HAVE_STDINT_H] Include
57856 (UINTMAX_MAX) [!defined UINTMAX_MAX]: New macro.
57857 (PROPAGATE_ALL_ONES): Work even if X is unsigned and narrower than
57858 int. Work more efficiently if X is the same width as uintmax_t.
57859 Do not compare X to -1, to avoid bogus compiler warning.
57860 (get_fs_usage): (uintmax_t) -1 -> UINTMAX_MAX to avoid a cast.
57861 Don't assume that f_frsize and f_bsize are the same type.
57863 * lib/mountlist.c: #undef MNT_IGNORE before defining it, to avoid
57864 warning on FreeBSD.
57866 * lib/makepath.c (make_path): Restore umask *before* creating the final
57868 (make_path): Minor reformatting.
57870 * lib/xmalloc.c: Adjust to work with new autoconf macros,
57871 AC_FUNC_MALLOC and AC_FUNC_REALLOC: test #ifndef
57872 HAVE_MALLOC/HAVE_REALLOC.
57874 * lib/mountlist.h (ME_DUMMY): Don't count entries of type `auto' as
57875 dummy ones. At least on GNU/Linux systems, `auto' means something
57877 From Michael Stone.
57879 2002-11-21 Bruno Haible <bruno@clisp.org>
57881 Remove case insensitive option matching.
57882 * lib/argmatch.h (argcasematch): Remove declaration.
57883 (ARGCASEMATCH): Remove macro.
57884 (__xargmatch_internal): Remove case_sensitive argument.
57885 (XARGMATCH): Update.
57886 (XARGCASEMATCH): Remove macro.
57887 * lib/argmatch.c (argmatch): Renamed from __argmatch_internal. Remove
57888 case_sensitive argument.
57889 (argcasematch): Remove function.
57890 (__xargmatch_internal): Remove case_sensitive argument.
57891 (main): Use XARGMATCH instead of XARGCASEMATCH.
57893 * lib/xmalloc.c: Change compile-time error message. Add comment about
57894 required autoconf version.
57896 2002-11-20 Paul Eggert <eggert@twinsun.com>
57898 Merge argmatch cleanups from Bison. Assume C89.
57900 * lib/argmatch.c: Include config.h here, not in argmatch.h.
57901 Include stdlib.h, for EXIT_FAILURE.
57902 Always include <string.h>, since we assume C89.
57903 (EXIT_FAILURE): Remove pre-C89 bug workaround.
57904 * lib/argmatch.h: Do not include <config.h> or <sys/types.h>.
57905 Include <stddef.h> instead, since it's all we need for size_t.
57906 (PARAMS): Remove. All uses removed.
57907 (ARRAY_CARDINALITY): Do not bother to #undef.
57908 (ARRAY_CARDINALITY, ARGMATCH, ARGCASEMATCH, invalid_arg,
57909 ARGMATCH_VALID, XARGMATCH, XARGCASEMATCH):
57910 Remove unnecessary parentheses.
57911 (ARGMATCH_VALID, XARGMATCH, XARGCASEMATCH):
57912 Insert necessary parentheses.
57913 (ARGMATCH_CONSTRAINT, ARGMATCH_VERIFY): New macros.
57914 (ARGMATCH_ASSERT): Use ARGMATCH_CONSTRAINT.
57916 2002-11-19 Bruno Haible <bruno@clisp.org>
57918 * lib/mbswidth.c: Include mbswidth.h right at the beginning.
57919 * lib/mbswidth.h: Include <stddef.h>, for size_t.
57921 * lib/mbswidth.h (PARAMS): Remove macro.
57922 (mbswidth, mbsnwidth): Use ANSI C function declarations.
57923 * lib/mbswidth.c (mbswidth, mbsnwidth): Likewise.
57925 * lib/gcd.h (PARAMS): Remove macro.
57926 (gcd): Use ANSI C function declarations.
57927 * lib/gcd.c (gcd): Likewise.
57929 2002-11-15 Bruno Haible <bruno@clisp.org>
57931 * lib/strcspn.c: Include <stddef.h>.
57932 (strcspn): Use ANSI C function declaration. Change return type to
57934 * lib/strpbrk.c: Minimize diffs to glibc. Include <stddef.h>.
57935 (strpbrk): Use NULL.
57936 * lib/strpbrk.h (PARAMS): Remove macro.
57937 (strpbrk): Use ANSI C function declaration.
57938 * lib/strstr.c: Don't include <sys/types.h>.
57939 * lib/strstr.h (PARAMS): Remove macro.
57940 (strstr): Use ANSI C function declarations.
57942 2002-11-14 Karl Berry <karl@gnu.org>
57944 * config/mkinstalldirs: `do' on separate line, instead of
57947 2002-11-06 Bruno Haible <bruno@clisp.org>
57949 * lib/gcd.h (gcd): Change argument type to 'unsigned long'.
57950 * lib/gcd.c (gcd): Likewise.
57952 2002-11-05 Bruno Haible <bruno@clisp.org>
57954 * lib/gcd.h: New file, from gettext-0.11.5.
57955 * lib/gcd.c: New file, from gettext-0.11.5.
57957 2002-11-05 Bruno Haible <bruno@clisp.org>
57959 * lib/error.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
57960 * lib/getopt.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
57961 * lib/obstack.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
57962 * lib/regex.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
57964 * lib/argmatch.c: Include gettext.h instead of <locale.h> and
57966 * lib/makepath.c: Include gettext.h instead of <locale.h> and
57969 * lib/closeout.c: Include gettext.h instead of <libintl.h>.
57970 * lib/human.c: Include gettext.h instead of <libintl.h>.
57971 * lib/quotearg.c: Include gettext.h instead of <libintl.h>.
57972 * lib/rpmatch.c: Include gettext.h instead of <libintl.h>.
57973 * lib/unicodeio.c: Include gettext.h instead of <libintl.h>.
57974 * lib/userspec.c: Include gettext.h instead of <libintl.h>.
57975 * lib/version-etc.c: Include gettext.h instead of <libintl.h>.
57976 * lib/xmalloc.c: Include gettext.h instead of <libintl.h>.
57977 (textdomain): Remove definition.
57978 * lib/xmemcoll.c: Include gettext.h instead of <libintl.h>.
57980 * lib/long-options.c: Remove include of <libintl.h> and definition of
57982 * lib/same.c: Remove include of <libintl.h> and definition of _.
57984 2002-11-04 Owen Taylor <otaylor@redhat.com>
57986 * lib/config.charset: A few additions for Solaris.
57988 2002-11-04 Bruno Haible <haible@clisp.cons.org>
57990 Make it possible to build libcharset with CC=gcc CFLAGS="-x c++".
57991 * lib/localcharset.c (locale_charset): Declare as extern "C".
57993 2002-11-04 Bruno Haible <haible@clisp.cons.org>
57995 * lib/config.charset: msdos in uk_UA uses CP1125.
57997 2002-11-04 Bruno Haible <bruno@clisp.org>
57999 * lib/stpcpy.h: New file, from GNU gettext-0.11.5.
58000 * lib/strcase.h: New file, from GNU gettext-0.11.5.
58001 * lib/strpbrk.h: New file, from GNU gettext-0.11.5.
58002 * lib/strstr.h: New file, from GNU gettext-0.11.5.
58003 * lib/xgetcwd.h: New file, from GNU gettext-0.11.5.
58005 2002-11-04 Bruno Haible <bruno@clisp.org>
58007 * lib/localcharset.c (locale_charset): Don't return an empty string.
58009 2002-11-04 Bruno Haible <bruno@clisp.org>
58011 * lib/localcharset.c (get_charset_aliases): Add more Windows specific
58014 2002-11-04 Bruno Haible <bruno@clisp.org>
58016 * lib/config.charset: Update for newest glibc. Add canonical names
58017 ISO-8859-14, KOI8-T, TCVN5712-1, GEORGIAN-PS.
58019 2002-11-04 Bruno Haible <bruno@clisp.org>
58021 * lib/config.charset: Add support for NetBSD.
58023 2002-11-04 Bruno Haible <bruno@clisp.org>
58025 * lib/config.charset [msdosdjgpp]: For Russian, use CP866.
58027 2002-11-01 Bruno Haible <bruno@clisp.org>
58029 * configure.in: Add AC_CONFIG_AUX_DIR call.
58030 (AC_OUTPUT): Add m4/Makefile, lib/Makefile. Remove doc/Makefile,
58032 * Makefile.in (subdirs): Add m4, lib. Remove doc, test.
58034 2002-09-28 Karl Berry <karl@gnu.org>
58036 * config/srclist.txt: can't copy install-sh/mkinstalldirs from
58037 installed automake until the next release, since changes have been
58040 2002-09-25 Karl Berry <karl@gnu.org>
58042 * lib/strdup.c: copy from libc/string (via ../config/srclist*).
58043 * lib/getopt*: copy from libc/posix.
58044 * lib/gettext.h: copy from gettext.
58045 * lib/.cppi-disable: add strdup.c, gettext.h.
58047 2002-09-25 Karl Berry <karl@gnu.org>
58049 * config/srclist.txt: enable gettext.h check.
58050 * config/config.{guess,sub}: update from prep.
58051 * config/depcomp, install-sh, mdate-sh, missing, mkinstalldirs: update
58052 from automake 1.6.3.
58055 2002-08-23 Stefan Monnier <monnier@cs.yale.edu>
58057 * regex.c (PATFETCH): Remove the translating fetch.
58058 (PATFETCH_RAW): Rename to PATFETCH.
58059 (set_image_of_range): New fun.
58060 (SET_RANGE_TABLE_WORK_AREA): Use it.
58061 (regex_compile): Don't translate the pattern chars so eagerly.
58062 Only do it when inserting an `exactn' bytecode or when handling
58064 (mutually_exclusive_p): Avoid empty statement.
58066 2002-07-06 Jim Meyering <meyering@lucent.com>
58068 * m4/README: Don't mention Makefile.am.in.
58069 Outline how I've tested changes to .m4 files. Yep, it's a pain.
58071 2002-07-01 Jim Meyering <meyering@lucent.com>
58073 * lib/c-stack.c: Include sys/time.h.
58074 From Volker Borchert.
58076 2002-06-26 Paul Eggert <eggert@twinsun.com>
58078 * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for btowc.
58080 2002-06-26 Paul Eggert <eggert@twinsun.com>
58082 * lib/fnmatch.c, fnmatch_loop.c (WIDE_CHAR_SUPPORT):
58083 New macro. Use it uniformly instead of
58084 (defined HAVE_WCTYPE_H && defined HAVE_WCHAR_H).
58085 It also uses HAVE_BTOWC, to fix a porting bug on Solaris 2.5.1
58086 reported by Vin Shelton.
58088 2002-06-22 Paul Eggert <eggert@twinsun.com>
58090 * lib/c-stack.h (segv_handler, c_stack_action) [! defined SA_SIGINFO]:
58091 Do not assume SA_SIGINFO behavior.
58092 Bug reported by Jim Meyering on NetBSD 1.5.2.
58094 2002-06-22 Jim Meyering <meyering@lucent.com>
58096 * m4/c-stack.m4: New file, from diffutils-2.8.2.
58097 * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_C_STACK.
58099 * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Don't require AC__GNU_SOURCE,
58100 now that configure.ac uses AC_GNU_SOURCE.
58101 (jm_MACROS): Rename: jm_FUNC_FNMATCH to AC_FUNC_FNMATCH_GNU.
58102 * m4/prereq.m4 (jm_PREREQ_EXCLUDE): Likewise, wrt jm_FUNC_FNMATCH.
58104 Update to latest tools. Suggestions from Paul Eggert.
58105 * m4/stdbool.m4: New file, from diffutils-2.8.2.
58106 * m4/gnu-source.m4: Update from diffutils-2.8.2.
58107 * m4/fnmatch.m4: Likewise.
58108 * m4/prereq.m4: Change each use of AC_CHECK_HEADERS(stdbool.h)
58109 to AC_HEADER_STDBOOL
58111 2002-06-22 Jim Meyering <meyering@lucent.com>
58113 * lib/fnmatch.c (ISASCII, ISPRINT): Undefine, to avoid warning about
58114 redefinition due to Solaris 2.6's definition in /usr/include/sys/euc.h.
58116 2002-06-22 Jim Meyering <meyering@lucent.com>
58118 * lib/c-stack.c, lib/c-stack.h: New files, from diffutils-2.8.2.
58120 * lib/exitfail.c, exitfail.h: Likewise.
58121 * lib/Makefile.am (libfetish_a_SOURCES): Add exitfail.c and exitfail.h.
58123 * lib/Makefile.am (libfetish_a_SOURCES): Add fnmatch_.h in place
58125 (EXTRA_DIST): Add fnmatch_loop.c.
58126 (libfetish_a_SOURCES): Add c-stack.c and c-stack.h.
58128 * lib/fnmatch_loop.c: New file, from diffutils-2.8.2.
58129 * lib/fnmatch.c: Update from diffutils-2.8.2.
58130 * lib/fnmatch_.h: New file. From diffutils-2.8.2.
58131 * lib/fnmatch.h: Remove file.
58133 2002-06-21 Jim Meyering <meyering@lucent.com>
58135 * m4/c-bs-a.m4: Add comment, from diffutils-2.8.2.
58136 * m4/mbrtowc.m4: Likewise.
58138 * m4/mbstate_t.m4: Update from diffutils-2.8.2.
58139 * m4/mbswidth.m4: Reflect name change:
58140 s/AC_MBSTATE_T/AC_TYPE_MBSTATE_T.
58141 * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Likewise.
58143 * m4/lib-link.m4: Update from gettext-0.11.2.
58144 * m4/gettext.m4: Likewise.
58146 * m4/jm-macros.m4 (jm_CHECK_ALL_HEADERS): Check for hurd.h.
58147 From Alfred M. Szmidt.
58149 2002-06-18 Paul Eggert <eggert@twinsun.com>
58151 * lib/file-type.h: Report an error if neither S_ISREG nor
58152 S_IFREG is defined, instead of using a test specific to glibc
58153 2.2. This should be safe, since POSIX requires S_ISREG and
58154 Unix Version 7 had S_IFREG. We don't need to check for
58155 <sys/types.h> since we don't use any symbols that it defines.
58157 2002-06-15 Richard Dawe <richdawe@bigfoot.com>
58159 * lib/Makefile.am (lstat.c, stat.c, .sin.sed): Use t-$@, rather than
58160 $@-t, so that each temporary file name is unique and valid in the first
58161 8 characters, for operation under DOS.
58163 2002-06-15 Paul Eggert <eggert@twinsun.com>
58165 * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Check for st_author.
58167 2002-06-15 Jim Meyering <meyering@lucent.com>
58169 Work even with DJGPP 2.03, which lacks support for symlinks.
58171 * lib/xstat.in (S_ISLNK): Define to 0 if neither S_ISLNK nor S_IFLNK
58173 * lib/lchown.c (S_ISLNK): Likewise.
58175 2002-06-15 Jim Meyering <meyering@lucent.com>
58177 * lib/file-type.h (FILE_TYPE_H): Guard entire contents with #ifndef.
58178 For GNU libc 2.2 and newer, ensure that <sys/types.h> and <sys/stat.h>
58179 have been included before this file.
58181 2002-06-14 Jim Meyering <meyering@lucent.com>
58183 * lib/file-type.h: Use the version from diffutils-2.8.2.
58184 * lib/file-type.c: Likewise.
58186 2002-06-07 Jim Meyering <meyering@lucent.com>
58188 * m4/prereq.m4 (jm_PREREQ_STAT): Check for sys/param.h and sys/mount.h.
58189 They're needed at least for NetBSD 1.5.2.
58190 ($statxfs_includes): Include those same headers.
58191 ($statxfs_includes): Include sys/vfs.h if available.
58192 ($statxfs_includes): Likewise for sys/statvfs.h.
58193 Check for the following members in both structs statfs and statvfs:
58194 f_basetype, f_type, f_fsid.__val, f_namemax, f_namelen.
58196 2002-06-01 Jim Meyering <meyering@lucent.com>
58198 * m4/d-type.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Rename macro:
58199 s/D_TYPE_IN_DIRENT/HAVE_STRUCT_DIRENT_D_TYPE/.
58201 2002-05-28 Jim Meyering <meyering@lucent.com>
58203 * m4/readdir.m4 (jm_FUNC_READDIR): Undefine `mkdir', not `rmdir'.
58204 Reported by Volker Borchert.
58206 2002-05-27 Jim Meyering <meyering@lucent.com>
58208 Fix a problem seen only on nonconforming systems whereby ls.c's
58209 use of localtime, and then of gettimeofday would cause trouble:
58210 the localtime call used to initialize rpl_gettimeofday's save
58211 mechanism would clobber ls's current local time information so
58212 that in any long listing the first file would always be listed
58213 with date 1970-01-01. Analysis by Volker Borchert.
58215 * lib/gettimeofday.c (localtime): Undefine.
58216 (rpl_localtime): New function.
58218 2002-05-27 Jim Meyering <meyering@lucent.com>
58220 * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER): Also replace
58223 * m4/readdir.m4 (jm_FUNC_READDIR): Undefine `rmdir' so we don't try to
58224 use the replacement function; it wouldn't resolve at link time.
58225 Reported by Volker Borchert.
58227 2002-05-22 Jim Meyering <meyering@lucent.com>
58229 * lib/Makefile.am (libfetish_a_SOURCES): Add file-type.c and
58231 * lib/file-type.h: New file.
58232 * lib/file-type.c (file_type): New file/function. Extracted from
58235 2002-04-30 Jim Meyering <meyering@lucent.com>
58237 * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_STAT.
58239 2002-04-29 Paul Eggert <eggert@twinsun.com>
58241 * m4/prereq.m4 (jm_PREREQ_SIG2STR): Remove; all callers changed.
58243 2002-04-29 Paul Eggert <eggert@twinsun.com>
58245 * m4/prereq.m4 (jm_PREREQ_HARD_LOCALE): Check for stdlib.h.
58246 Do not check for alloca.h (no longer used) or stdbool.h (was never
58247 used?). Add AM_C_PROTOTYPES since hard-locale.h uses it.
58249 2002-04-29 Paul Eggert <eggert@twinsun.com>
58251 * lib/hard-locale.c: Upgrade to version used in GNU Diffutils 2.8.1.
58253 2002-04-29 Jim Meyering <meyering@lucent.com>
58255 * m4/jm-macros.m4 (jm_MACROS): Remove use of AC_FUNC_STRNLEN.
58256 * m4/prereq.m4: Add jm_PREREQ_STRNLEN.
58257 Use AC_FUNC_STRNLEN here instead.
58259 * m4/jm-macros.m4: Don't AC_REQUIRE([AC_PROG_CC_STDC]).
58260 With autoconf-2.53a, it's part of AC_PROG_CC.
58262 2002-04-28 Paul Eggert <eggert@twinsun.com>
58264 * m4/jm-macros.m4 (jm_MACROS): Add AC_REPLACE_FUNCS(sig2str).
58265 * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_SIG2STR.
58267 2002-04-28 Paul Eggert <eggert@twinsun.com>
58269 * lib/sig2str.h, lib/sig2str.c: New files.
58270 * lib/Makefile.am (libfetish_a_SOURCES): Add sig2str.h.
58272 2002-04-28 Paul Eggert <eggert@twinsun.com>
58274 * lib/sig2str.h (SIGNUM_BOUND): Do not use WTERMSIG, to avoid
58275 depending on <sys/wait.h> and WTERMSIG. Default to 64 instead
58276 of 127, since 64 is the largest conceivable number for ancient
58278 * lib/sig2str.c: Do not include <sys/wait.h>; no longer needed.
58280 2002-04-28 Jim Meyering <meyering@lucent.com>
58282 * lib/sig2str.c (WTERMSIG): Remove definition (unused).
58284 2002-04-24 Jim Meyering <meyering@lucent.com>
58286 * m4/prereq.m4 (jm_PREREQ_HARD_LOCALE): New macro.
58287 (jm_PREREQ): Use it.
58289 * m4/getloadavg.m4: Check for these headers: locale.h unistd.h
58290 mach/mach.h fcntl.h.
58291 Check for this function: setlocale.
58293 2002-04-24 Jim Meyering <meyering@lucent.com>
58295 * lib/gettext.h: New file, from Gettext.
58296 * lib/Makefile.am (INCLUDES): Remove -I../intl.
58297 (libfetish_a_SOURCES): Add gettext.h.
58299 2002-04-16 Jim Meyering <meyering@lucent.com>
58301 * m4/prereq.m4 (jm_PREREQ_READUTMP): Also check for these members:
58302 ut_pid, ut_id, ut_exit.
58304 2002-04-16 Jim Meyering <meyering@lucent.com>
58306 * lib/readutmp.h (UT_TYPE): Remove definition (now in who.c).
58307 (HAVE_STRUCT_XTMP_UT_EXIT, HAVE_STRUCT_XTMP_UT_ID): Define.
58308 (HAVE_STRUCT_XTMP_UT_PID, HAVE_STRUCT_XTMP_UT_TYPE): Define.
58310 2002-04-12 Jim Meyering <meyering@lucent.com>
58312 * m4/ls-mntd-fs.m4 (checking for getmntinfo function...): Remove
58313 now-bogus check for f_type in sys/mount.h. Instead, just test for the
58314 existence of the getmntinfo function. Needed for Darwin 5.3.
58316 * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Also detect when dirfd is a macro.
58317 This is necessary at least on Darwin 5.3.
58319 * m4/jm-macros.m4: Don't AC_REPLACE(strnlen), now that we use
58320 AC_FUNC_STRNLEN. Otherwise, we'd end up putting two copies of
58321 strnlen.o in the library, and that makes some versions of ranlib
58324 2002-04-12 Jim Meyering <meyering@lucent.com>
58326 * lib/dirfd.h (dirfd): Elide prototype if dirfd is a macro.
58328 2002-04-09 Jim Meyering <meyering@lucent.com>
58330 * m4/malloc.m4: (jm_FUNC_MALLOC): Change the `checking ...' message
58331 to be more precise. Rather than saying we're checking whether the
58332 function `works', say what we're testing.
58333 * m4/realloc.m4 (jm_FUNC_REALLOC): Likewise.
58334 Reported by Bruno Haible.
58336 2002-03-10 Jim Meyering <meyering@lucent.com>
58338 * lib/makepath.c (make_path): Remove a comma from a diagnostic.
58339 Suggestion from Santiago Vila.
58341 2002-03-08 Jim Meyering <meyering@lucent.com>
58343 * lib/rename.c: Mention that this wrapper is needed also on
58344 mips-dec-ultrix4.4 systems.
58346 2002-03-02 Jim Meyering <meyering@lucent.com>
58348 * lib/gettime.c (gettime): Test HAVE_CLOCK_GETTIME,
58349 not HAVE_CLOCK_SETTIME.
58351 2002-02-27 Paul Eggert <eggert@twinsun.com>
58353 * m4/jm-macros.m4 (jm_MACROS): Do not replace stime; no longer used.
58354 Check for clock_settime.
58356 2002-02-27 Paul Eggert <eggert@twinsun.com>
58358 * lib/nanosleep.h: Rename to....
58359 * lib/timespec.h: New name for nanosleep.h. All uses changed.
58361 * lib/gettime.c: New file.
58362 * lib/settime.c: New file.
58363 * lib/stime.c: Remove.
58365 * lib/Makefile.am (libfetish_a_SOURCES): Add gettime.c, settime.c,
58366 timespec.h. Remove nanosleep.h.
58368 2002-02-25 Paul Eggert <eggert@twinsun.com>
58370 * m4/acl.m4: New file.
58371 * m4/jm-macros.m4 (jm_MACROS): Require AC_FUNC_ACL.
58372 Do not check for acl or sys/acl.h, as AC_FUNC_ACL does that now.
58374 2002-02-25 Paul Eggert <eggert@twinsun.com>
58376 * lib/acl.c, lib/acl.h: New files.
58377 * lib/Makefile.am (libfetish_a_SOURCES): Add acl.h, acl.c.
58379 2002-02-24 Jim Meyering <meyering@lucent.com>
58381 * lib/strnlen.c (strnlen): Define-away/undef so that an inconsistent
58382 prototype in string.h (on at least AIX4.3.2.0 w/gcc-2.95.3) doesn't
58383 cause trouble. Reported by Nelson Beebe.
58385 2002-02-23 Paul Eggert <eggert@twinsun.com>
58387 * lib/path-concat.c (xpath_concat): Reorder code to pacify
58388 compilers that don't know that xalloc_die never returns.
58390 2002-02-20 Jim Meyering <meyering@lucent.com>
58392 * lib/getdate.c: Regenerate using bison-1.33.
58394 2002-02-17 Jim Meyering <meyering@lucent.com>
58396 * config/config.guess (main): Don't use `head -1'; it's no longer
58397 portable. Use `sed 1q' instead.
58399 2002-02-16 gettextize <bug-gnu-gettext@gnu.org>
58401 * m4/codeset.m4: Upgrade to gettext-0.11.
58402 * m4/gettext.m4: Upgrade to gettext-0.11.
58403 * m4/glibc21.m4: Upgrade to gettext-0.11.
58404 * m4/iconv.m4: Upgrade to gettext-0.11.
58405 * m4/isc-posix.m4: Upgrade to gettext-0.11.
58406 * m4/lcmessage.m4: Upgrade to gettext-0.11.
58407 * m4/lib-ld.m4: New file, from gettext-0.11.
58408 * m4/lib-link.m4: New file, from gettext-0.11.
58409 * m4/lib-prefix.m4: New file, from gettext-0.11.
58410 * m4/progtest.m4: Upgrade to gettext-0.11.
58412 2002-02-15 Paul Eggert <eggert@twinsun.com>
58414 * m4/prereq.m4 (jm_PREREQ_POSIXVER): New macro.
58415 (jm_PREREQ): Use it.
58417 2002-02-15 Paul Eggert <eggert@twinsun.com>
58419 * lib/posixver.c, lib/posixver.h: New files.
58420 * lib/Makefile.am (libfetish_a_SOURCES): Add them.
58422 2002-02-02 Paul Eggert <eggert@twinsun.com>
58423 Bruno Haible <bruno@clisp.org>
58425 * lib/unicodeio.h (print_unicode_char): Add exit_on_error argument.
58426 (fwrite_success_callback): New declaration.
58427 * lib/unicodeio.c (unicode_to_mb): New function, extracted from
58428 print_unicode_char. Call failure callback instead of error.
58429 (fwrite_success_callback): New function.
58430 (exit_failure_callback): New function.
58431 (fallback_failure_callback): New function.
58432 (print_unicode_char): Call unicode_to_mb.
58434 2002-01-26 Jim Meyering <meyering@lucent.com>
58436 * m4/jm-macros.m4 (jm_MACROS): Require autoconf-2.52g.
58437 * m4/strnlen.m4: Remove file, now that it's part of autoconf.
58439 2002-01-26 Jim Meyering <meyering@lucent.com>
58441 * lib/Makefile.am (getdate$U.o): Depend on unlocked-io.h.
58443 2002-01-22 Paul Eggert <eggert@twinsun.com>
58445 * m4/jm-macros.m4 (jm_MACROS): Require AC_FUNC_FSEEKO.
58447 2002-01-22 Jim Meyering <meyering@lucent.com>
58449 * lib/Makefile.am (Makefile): Don't depend on $(BUILT_SOURCES).
58450 Otherwise, some versions of automake would omit the rule that makes
58451 Makefile from Makefile.in.
58453 2002-01-21 Paul Eggert <eggert@twinsun.com>
58455 * lib/xmemcoll.h, lib/xmemcoll.c: New files.
58456 * lib/Makefile.am (libfetish_a_SOURCES): Add them.
58457 * lib/memcoll.c: Include errno.h, and declare errno if not defined.
58458 (memcoll): Set errno to zero if there is no error.
58460 * lib/quotearg.c (quotearg_buffer_restyled):
58461 Fix bug with quoting buffers containing NUL when backslashing escapes.
58462 This bug was exposed by the other changes in this patch.
58463 (quotearg_n_options): New arg ARGSIZE.
58464 All callers changed.
58465 (quoting_options_from_style): New function.
58466 (quotearg_n_style): Use it.
58467 (quotearg_n_style_mem): New function.
58469 * lib/quotearg.h (quotearg_n_style_mem): New function.
58471 2002-01-19 Jim Meyering <meyering@lucent.com>
58473 * m4/jm-macros.m4 (jm_MACROS): Use AC_FUNC_STRNLEN.
58474 Remove useless quotes: DF_PROG="df".
58475 * m4/strnlen.m4: New file.
58477 2002-01-16 Paul Eggert <eggert@twinsun.com>
58479 * lib/backupfile.c (ISDIGIT): Comment fix.
58480 * lib/getdate.y (ISDIGIT): Likewise.
58481 * lib/posixtm.c (ISDIGIT, year): Likewise.
58482 * lib/strverscmp.c (ISDIGIT): Likewise.
58483 * lib/userspec.c (ISDIGIT): Likewise.
58485 2002-01-16 Jim Meyering <meyering@lucent.com>
58487 * lib/getdate.y: Add three semicolons, each just before a closing
58488 brace. Bison (as of version 1.31) no longer papers over that mistake.
58490 2002-01-05 Jim Meyering <meyering@lucent.com>
58492 * lib/version-etc.c (version_etc_copyright): Update copyright year.
58494 2001-12-19 Paul Eggert <eggert@twinsun.com>
58496 * lib/closeout.c (close_stdout_status): If ferror (stdout), do
58497 not silently exit merely because the output buffer happens to
58498 have nothing pending.
58500 2001-12-18 Paul Eggert <eggert@twinsun.com>
58502 See the big note in ../ChangeLog.
58503 * lib/human.c (suffixes): Prefer K to k for 1024.
58504 (generate_suffix_backwards): New function.
58505 (human_readable_inexact): Use it.
58506 * lib/xstrtol.c (__xstrtol): If there is no number but there
58507 is a valid suffix, assume 1. "MB" now means decimal, "MiB" binary.
58508 Accept 'K' as well as 'k'.
58510 2001-12-15 Jim Meyering <meyering@lucent.com>
58512 * lib/regex.h (__restrict_arr): Update from libc.
58514 * lib/mountlist.h (ME_REMOTE): Recognize file systems of type smbfs
58515 as `remote' if the name starts with `//'. Suggested by Michael Stone.
58518 2001-12-14 Jim Meyering <meyering@lucent.com>
58520 * m4/jm-macros.m4 (jm_MACROS): Check for iswspace.
58521 Suggestion from Bruno Haible.
58523 2001-12-10 Jim Meyering <meyering@lucent.com>
58525 * lib/linebuffer.c: Remove explicit declarations of xmalloc and
58526 xrealloc, Instead, include "xalloc.h".
58527 (initbuffer): Don't cast xmalloc return value to char*.
58528 (readline): Reword comment.
58529 Don't cast xrealloc return value to char*
58530 Return NULL, not 0.
58532 2001-12-09 Jim Meyering <meyering@lucent.com>
58534 * lib/modechange.c (mode_compile): Add cast to avoid pedantic warning
58535 about `signed and unsigned type in conditional expression'.
58536 * lib/posixtm.c (posix_time_parse): Likewise.
58538 * lib/xreadlink.c (xreadlink): Add cast to avoid a pedantic warning.
58540 * lib/readtokens.c (readtoken): Declare an index to be of type unsigned
58541 to avoid a pedantic warning.
58543 * lib/getstr.c: Don't include assert.h.
58544 (getstr): Remove warning-evoking assertions.
58545 Return -1 if offset parameter is out of bounds.
58546 Change the type of a local from int to size_t.
58548 * lib/strftime.c (my_strftime_localtime_r): Include this function
58549 definition in the `#if ! HAVE_TM_GMTOFF' block.
58551 * lib/xgethostname.c: Remove declarations of xmalloc and xrealloc.
58552 Include xalloc.h instead.
58554 2001-12-02 Jim Meyering <meyering@lucent.com>
58556 * lib/tempname.c: Don't declare getenv, thus reverting the change of
58557 2001-11-18. It's no longer necessary, now that stdlib.h is always
58560 * lib/regex.c [!__BOUNDED_POINTERS__]: Define away __bounded,
58561 __unbounded, and __ptrvalue. Reported by Uwe H. Steinfeld.
58563 2001-11-30 Akim Demaille <akim@epita.fr>
58565 * lib/xstrdup.c: Include xalloc.h, so that xstrdup is declared
58566 before being defined.
58568 2001-11-27 Paul Eggert <eggert@twinsun.com>
58570 * lib/quotearg.h (quotearg_n, quotearg_n_style):
58571 First arg is int, not unsigned.
58572 * lib/quotearg.c (quotearg_n, quotearg_n_style): Likewise.
58573 (SIZE_MAX, UINT_MAX): New macros.
58574 (quotearg_n_options): Abort if N is negative.
58575 Avoid overflow check on hosts where size_t is 64 bits and int
58576 is 32 bits, as overflow is impossible there.
58577 Fix off-by-one typo that caused unnecessary reallocation.
58579 2001-11-27 Jim Meyering <meyering@lucent.com>
58581 * lib/tempname.c: Merge with version from libc.
58582 * lib/regex.c: Likewise.
58584 * lib/tempname.c: Include stdlib.h unconditionally. On some old
58585 systems for which STDC_HEADERS is 0, it was not included, resulting in
58586 a warning about an integer-to-pointer conversion problem with getenv.
58587 Reported by Volker Borchert.
58589 2001-11-26 Jim Meyering <meyering@lucent.com>
58591 * lib/gtod.h: Remove file.
58592 * lib/Makefile.am (libfetish_a_SOURCES): Remove gtod.h.
58593 * lib/gettimeofday.c: Don't include gtod.h.
58594 (GTOD_init): Remove function.
58595 (rpl_gettimeofday): Do its job here instead, rather than aborting.
58596 Suggestion from Volker Borchert.
58598 2001-11-23 Jim Meyering <meyering@lucent.com>
58600 * lib/hash.h (struct hash_table): Don't define here. Merely declare
58602 * lib/hash.c (struct hash_table): Define it here instead.
58604 2001-11-22 Jim Meyering <meyering@lucent.com>
58606 * lib/hash.h: Bracket contents of file with #ifndef HASH_H_ ... #endif.
58608 2001-11-20 Jim Meyering <meyering@lucent.com>
58610 * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Update comment to reflect that
58611 SunOS 4.1.4 and Solaris 2.5.1 lose, too.
58613 2001-11-19 Jim Meyering <meyering@lucent.com>
58615 * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Don't bother with a temporary
58616 directory. Use "conftestXXXXXX" as the template.
58617 Suggestion from Paul Eggert.
58619 * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Close each descriptor
58620 immediately, so the test doesn't mistakenly hit the max-open-files
58623 2001-11-18 Paul Eggert <eggert@twinsun.com>
58625 * lib/tempname.c (TMP_MAX): Remove; no longer needed.
58626 (TEMPORARIES): New macro.
58627 (__gen_tempname): Use TEMPORARIES rather than TMP_MAX. This
58628 removes an artificial limitation (e.g. HP-UX 10.20, where
58631 2001-11-18 Jim Meyering <meyering@lucent.com>
58633 * m4/prereq.m4 (jm_PREREQ_TEMPNAME): Check for declaration of getenv.
58635 2001-11-18 Jim Meyering <meyering@lucent.com>
58637 * lib/tempname.c [!HAVE_DECL_GETENV]: Declare getenv to avoid warning
58640 * lib/Makefile.am (Makefile): Depend on $(BUILT_SOURCES), so those
58641 files will be created before anything else.
58643 2001-11-17 Paul Eggert <eggert@twinsun.com>
58645 * m4/jm-winsz1.m4 (jm_WINSIZE_IN_PTEM): Do not define
58646 WINSIZE_IN_PTEM if <termios.h> defines struct winsize.
58648 2001-11-17 Jim Meyering <meyering@lucent.com>
58650 * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): New file and macro.
58651 Prompted by a report from Bob Proulx.
58653 * m4/jm-macros.m4 (jm_MACROS): Don't test for mkstemp here.
58654 Instead, require UTILS_FUNC_MKSTEMP.
58656 2001-11-17 Jim Meyering <meyering@lucent.com>
58658 * m4/jm-macros.m4 (jm_MACROS): Remove code to set POW_LIBM.
58659 Now, that's done as part of AC_FUNC_STRTOD.
58661 2001-11-17 Jim Meyering <meyering@lucent.com>
58663 * lib/modechange.c (mode_adjust): Fix error introduced on 1999-04-26
58664 that made e.g., `chmod a=,o=w,g=o F' cause F to be group readable
58665 rather than group writable. Patch by Juan F. Codagnone.
58667 * lib/readtokens.c: Remove explicit declarations of xmalloc and
58668 xrealloc, Instead, include "xalloc.h".
58670 * lib/mountlist.c: Include unlocked-io.h after all system headers.
58671 Remove explicit declarations of xmalloc, xrealloc,
58672 and xstrdup. Instead, include "xalloc.h".
58674 * lib/argmatch.c, closeout.c, error.c, exclude.c: Include
58676 * lib/fatal.c, getdate.y, getpass.c, getstr.c, getusershell.c:
58678 * lib/mountlist.c, posixtm.c, readtokens.c, readutmp.c: Likewise.
58680 * lib/regex.c, sha.c, version-etc.c, yesno.c: Likewise.
58681 Reported by Padraig Brady.
58683 * lib/mkstemp.c: #undef mkstemp.
58685 (rpl_mkstemp): Rename from mkstemp.
58688 2001-11-16 Jim Meyering <meyering@lucent.com>
58690 * lib/physmem.c [HAVE_SYS_PSTAT_H]: Include <sys/pstat.h>.
58691 (physmem_total) [HAVE_PSTAT_GETSTATIC]: If sysconf couldn't be used to
58692 determine the amount of total physical memory, use pstat_getstatic.
58693 HPUX-11 doesn't define _SC_PHYS_PAGES.
58694 (physmem_available) [HAVE_PSTAT_GETSTATIC && HAVE_PSTAT_GETDYNAMIC]:
58695 If sysconf couldn't be used to determine the amount of available
58696 physical memory, use both pstat_getstatic and pstat_getdynamic.
58697 Based on a patch from Bob Proulx.
58699 2001-11-10 Jim Meyering <meyering@lucent.com>
58701 * m4/prereq.m4 (jm_PREREQ_PHYSMEM): New function.
58702 (jm_PREREQ): Use it.
58704 2001-11-09 Jim Meyering <meyering@lucent.com>
58706 * m4/jm-macros.m4: Require autoconf-2.52f.
58707 (AC_FUNC_ERROR_AT_LINE, AC_FUNC_OBSTACK, AC_FUNC_STRTOD):
58708 Use these AC_-prefixed names, not the AM_-prefixed ones.
58710 * m4/afs.m4 (jm_AFS): Quote the body. Patch by Akim Demaille.
58712 2001-11-05 Jim Meyering <meyering@lucent.com>
58714 * lib/xstat.in (slash_aware_lstat): Correct a misleading comment.
58716 2001-11-04 Jim Meyering <meyering@lucent.com>
58718 * m4/fpending.m4: Remove unused cruft that saved, set, and restored
58721 2001-11-03 Jim Meyering <meyering@lucent.com>
58723 * m4/jm-glibc-io.m4n (jm_FUNC_GLIBC_UNLOCKED_IO): Quote first arg
58726 * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Rework so dirfd.c doesn't have to
58727 know the name of the variable in the macro definition.
58729 2001-11-03 Jim Meyering <meyering@lucent.com>
58731 * lib/argmatch.h (ARGMATCH_TO_ARGUMENT): Remove casts of first two args
58732 in argmatch_to_argument call.
58734 * lib/dirfd.c (dirfd): Reflect the fact that DIR_TO_FD now takes an
58737 * lib/hash.c (hash_clear): Fix a bug that could lead to an infloop or
58738 e.g., a fault due to an attempt to free a NULL pointer.
58740 2001-11-01 Jim Meyering <meyering@lucent.com>
58742 * m4/dirfd.m4 (UTILS_FUNC_DIRFD): New macro.
58743 * m4/jm-macros.m4 (jm_MACROS): Require UTILS_FUNC_DIRFD.
58745 2001-11-01 Jim Meyering <meyering@lucent.com>
58747 * lib/dirfd.c, lib/dirfd.h: New files.
58748 * lib/Makefile.am (libfetish_a_SOURCES): Add dirfd.h.
58750 * lib/hash.c (hash_print) [TESTING]: Clean up.
58752 2001-10-22 Paul Eggert <eggert@twinsun.com>
58754 * lib/hard-locale.c (alloca): Define to __builtin_alloca if __GNUC__,
58755 to avoid a warning if -Wall.
58757 2001-10-22 Jeff Bailey <jbailey@outpost.dnsalias.org>
58760 * doc/*: Add COPYING, COPYING.LIB, COPYING.DOC, fdl.texi
58761 (per RMS's instructions, this is now the canonical source)
58762 * lgpl/, gpl/: New directories.
58764 2001-10-21 Paul Eggert <eggert@twinsun.com>
58766 * lib/regex.c (uintptr_t): Remove macro and decl; it's config.h's job.
58768 2001-10-21 Jim Meyering <meyering@lucent.com>
58770 * lib/obstack.c (_): Honor the setting of ENABLE_NLS. Otherwise,
58771 this code would end up calling gettext even in packages built
58772 with --disable-nls.
58773 * lib/getopt.c (_): Likewise.
58774 * lib/regex.c (_): Likewise.
58776 2001-10-20 Paul Eggert <eggert@twinsun.com>
58778 * m4/error.m4 (jm_PREREQ_ERROR):
58779 Do not invoke AC_CHECK_FUNCS with strerror_r, as
58780 AC_FUNC_STRERROR_R does that.
58781 Check for strerror declaration.
58783 * m4/strerror_r.m4: Add copyright notice, as nontrivial m4 files
58784 are supposed to have them these days.
58785 (AC_FUNC_STRERROR_R): Always do char* test, so that it gets cached.
58786 Merge changes from latest Autoconf CVS.
58787 Rename ac_cv_func_strerror_r_works to ac_cv_func_strerror_r_char_p,
58788 and rename HAVE_WORKING_STRERROR_R to STRERROR_R_CHAR_P, since
58789 POSIX decided to standardize on the int flavor of strerror_r.
58791 2001-10-20 Paul Eggert <eggert@twinsun.com>
58793 * lib/error.c (strerror_r): Do not declare unless !_LIBC.
58794 Do not check for HAVE_DECL_STRERROR_R missing unless STRERROR_R_CHAR_P.
58795 Use strerror_r that is only a macro, even if it is not a function.
58796 (strerror): Check for HAVE_DECL_STRERROR before declaring.
58797 (private_strerror): Use prototypes, not old-style function definition.
58798 (print_errno_message): New function.
58799 Support the POSIX 'int'-flavored strerror_r, as well as the traditional
58800 char*-flavored one.
58801 (error_tail, error, error_at_line): Use it.
58803 2001-10-11 Jim Meyering <meyering@lucent.com>
58805 * lib/argmatch.c (argmatch_invalid): Use quotearg_n_style (0, ...
58806 and quote_n (1, ... to avoid clobbering a buffer.
58808 2001-10-05 Jim Meyering <meyering@lucent.com>
58810 * lib/Makefile.am: (libfetish_a_SOURCES): Add hash-pjw.c and
58812 * lib/hash-pjw.c: New file (factored out of fileutils' remove.c).
58813 * lib/hash-pjw.h: New file.
58815 2001-09-30 Jim Meyering <meyering@lucent.com>
58817 * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): See if
58818 `struct fsstat' has the `f_fstypename' member.
58819 Use that to define FS_TYPE, which is now used to make
58820 the getfsstat link test tighter.
58822 2001-09-30 Jim Meyering <meyering@lucent.com>
58824 * lib/mountlist.c [MOUNTED_GETFSSTAT]:
58825 Include <sys/ucred.h>, for Apple Darwin.
58826 Include sys/mount.h and sys/fs_types.h only if available.
58828 (read_filesystem_list): Use FS_TYPE.
58830 2001-09-29 Paul Eggert <eggert@twinsun.com>
58832 * lib/exclude.c (excluded_filename): 0 -> false, since it's
58835 2001-09-29 Jim Meyering <meyering@lucent.com>
58837 * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS)
58838 [one-argument getmntent function]): Include stdio.h before mntent.h.
58839 SunOS 4.1.x needs it for the declaration of `FILE'.
58840 Patch by Volker Borchert.
58842 * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS)
58843 Check for these headers: sys/param.h sys/ucred.h sys/mount.h
58844 sys/fs_types.h, and make the link-test for getfsstat guard #include
58845 directives with appropriate #if HAVE_*_H tests so that we can
58846 detect getfsstat on Apple Darwin1.3.7 systems.
58847 Reported by Nelson Beebe.
58848 Fix harmless typo in cache variable name: s/getsstat/getfsstat/.
58850 2001-09-28 Paul Eggert <eggert@twinsun.com>
58852 Fix bug reported by Petter Reinholdtsen for HP-UX 10.20, which
58853 #defines strtoimax. Also treat the other strto* functions
58856 * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX):
58857 Check for strtoul and strtoumax,
58858 as those declarations are made even in the signed case.
58859 * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX):
58860 Likewise, for strtol and strtoimax.
58862 2001-09-28 Paul Eggert <eggert@twinsun.com>
58864 Fix bug reported by Petter Reinholdtsen for HP-UX 10.20, which
58865 #defines strtoimax. Also treat the other strto* functions
58868 * lib/xstrtol.c (strtol): Do not declare if HAVE_DECL_STRTOL.
58869 (strtoul): Do not declare if HAVE_DECL_STRTOUL.
58870 (strtoimax, strtoumax): Do not declare if already defined as a macro.
58872 2001-09-26 Jim Meyering <meyering@lucent.com>
58874 Most macros in unlocked-io.h had the wrong number of arguments.
58875 * lib/gen-uio: New script.
58876 (USE_UNLOCKED_IO): Define to 1 if not already defined.
58877 * lib/unlocked-io.hin: Remove file.
58878 * lib/Makefile.am (unlocked-io.h): Rewrite to use a separate script,
58879 rather than trying to embed it here.
58880 (EXTRA_DIST): Add gen-uio. Remove unlocked-io.hin
58881 Reported by Padraig Brady.
58883 2001-09-25 Volker Borchert <bt@teknon.de>
58885 * lib/gettimeofday.c (rpl_gettimeofday): Declare local variable
58888 2001-09-24 Jim Meyering <meyering@lucent.com>
58890 * m4/gettext.m4: Use the version from gettext-0.10.40, not CVS.
58892 2001-09-23 Jim Meyering <meyering@lucent.com>
58894 * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Add a compile-test
58895 instead of the mere test for existence of mntent.h. The latter
58896 would get a false-positive on AIX 3.4 systems.
58897 In the outer getmntent if-block, don't die if neither of the getmntent
58898 tests succeeds. Instead, just fall through and continue with the
58901 2001-09-23 Jim Meyering <meyering@lucent.com>
58903 * lib/mountlist.c: Remove useless parentheses in #if directives.
58904 (MOUNTED) [!defined MOUNTED]: Define to _PATH_MOUNTED, for when
58905 the deprecated MOUNTED symbol is no longer defined in mntent.h.
58907 2001-09-22 Jim Meyering <meyering@lucent.com>
58909 * m4/gettext.m4: New file. From gettext.
58910 * m4/lcmessage.m4: Sync with gettext -- this changes only comments.
58911 * m4/progtest.m4: Likewise
58912 * m4/isc-posix.m4: Decrement serial number to sync with gettext.
58913 * m4/glibc21.m4: Likewise.
58915 * m4/libintl.m4: Remove. No longer used.
58917 2001-09-22 Jim Meyering <meyering@lucent.com>
58919 * lib/localcharset.c: Update from latest gettext.
58920 * lib/config.charset: Likewise.
58922 2001-09-20 Jim Meyering <meyering@lucent.com>
58924 * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX): Check for declaration of
58926 * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Check for declaration of
58929 2001-09-20 Jim Meyering <meyering@lucent.com>
58931 * lib/xstrtol.c (strtoimax): Guard declaration with
58932 `#if !HAVE_DECL_STRTOIMAX', rather than just `#ifndef strtoimax'.
58933 The latter fails because some systems (at least rs6000-ibm-aix4.3.3.0)
58934 have their own, conflicting declaration of strtoimax in sys/inttypes.h.
58935 (strtoumax): Likewise, for completeness (it wasn't necessary).
58937 2001-09-17 Paul Eggert <eggert@twinsun.com>
58939 * lib/strtoimax.c (HAVE_LONG_LONG):
58940 Redefine to HAVE_UNSIGNED_LONG_LONG if unsigned.
58941 (strtoimax): Use sizeof (long), not sizeof strtol (ptr, endptr, base),
58942 to work around bug in IBM C compiler.
58944 2001-09-17 Jim Meyering <meyering@lucent.com>
58946 * m4/chown.m4, fstypename.m4, getgroups.m4, gettimeofday.m4,
58947 * m4/jm-mktime.m4, lstat.m4, malloc.m4, memcmp.m4, mkdir-slash.m4,
58948 * m4/nanosleep.m4, putenv.m4, readdir.m4, realloc.m4, rename.m4,
58949 * m4/st_dm_mode.m4, stat.m4, strerror_r.m4, timespec.m4, utimbuf.m4,
58950 * m4/utimes.m4: Use AC_DEFINE rather than AC_DEFINE_UNQUOTED,
58951 whenever the right hand side need not be expanded by the shell.
58953 2001-09-16 Paul Eggert <eggert@twinsun.com>
58955 * m4/fnmatch.m4 (jm_FUNC_FNMATCH): Remove test for GNU C
58956 library. It's not correct, as some older glibcs are buggy.
58957 fnmatch wasn't fixed until glibc 2.2.
58959 Use AC_DEFINE, not AC_DEFINE_UNQUOTED, as there's no
58960 special shell magic here.
58962 2001-09-16 Jim Meyering <meyering@lucent.com>
58964 * m4/mkdir-slash.m4 (UTILS_FUNC_MKDIR_TRAILING_SLASH): New file/macro.
58965 * m4/jm-macros.m4: Require it.
58967 2001-09-16 Jim Meyering <meyering@lucent.com>
58969 * lib/mkdir.c: New file.
58971 2001-09-15 Jim Meyering <meyering@lucent.com>
58973 * m4/jm-macros.m4: Check for help2man.
58975 2001-09-11 Jim Meyering <meyering@lucent.com>
58977 * m4/host-os.m4 (UTILS_HOST_OS): New file/macro.
58978 The body, by Paul Eggert, was moved here from configure.in.
58979 * m4/jm-macros.m4: Require UTILS_HOST_OS.
58981 2001-09-04 Paul Eggert <eggert@twinsun.com>
58983 * m4/prereq.m4 (jm_PREREQ_XREADLINK): New macro.
58984 (jm_PREREQ): Use it.
58986 2001-09-04 Paul Eggert <eggert@twinsun.com>
58988 * lib/xreadlink.c (xreadlink): Omit size_t* arg. All uses changed.
58989 Use ssize_t, not int, to store result of readlink.
58990 Check for ssize_t overflow as well as size_t overflow,
58991 as POSIX says the result of readlink is implementation-defined
58992 when ssize_t overflows.
58993 Remove unnecessary cast to char*.
58994 Use free+malloc instead of realloc, as the storage doesn't need
58995 to be preserved and it's clearer and can be more efficient that way.
58996 (SIZE_MAX, SSIZE_MAX): New macros, if <limits.h> doesn't declare.
58997 * lib/xreadlink.h (xreadlink): Update prototype.
58999 2001-09-04 Paul Eggert <eggert@twinsun.com>
59001 * lib/xgetcwd.c: Revert some of the previous change; intead,
59002 fix the HAVE_GETCWD_NULL code to behave more like the
59003 !HAVE_GETCWD_NULL code used to.
59005 Include "xalloc.h".
59006 (xgetcwd): Do not return NULL when memory is exhausted; instead,
59009 2001-09-03 Paul Eggert <eggert@twinsun.com>
59011 * m4/prereq.m4 (jm_PREREQ_XGETCWD): Check for limits.h and
59012 sys/param.h, as pathmax.h includes them.
59014 2001-09-03 Paul Eggert <eggert@twinsun.com>
59016 * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_XGETCWD.
59017 (jm_PREREQ_XGETCWD): New macro.
59019 * m4/getcwd.m4: New file.
59021 2001-09-03 Paul Eggert <eggert@twinsun.com>
59023 * lib/xgetcwd.c: Fix the !HAVE_GETCWD_NULL code to behave more
59024 like the HAVE_GETCWD_NULL code.
59025 Include pathmax.h if not HAVE_GETCWD.
59026 Do not include xalloc.h.
59027 (INITIAL_BUFFER_SIZE): New symbol.
59028 Do not use xmalloc / xrealloc, since the caller is responsible for
59029 handling errors. Preserve errno around `free' during failure.
59030 Do not overrun buffer when using getwd.
59032 2001-09-03 Paul Eggert <eggert@twinsun.com>
59034 * lib/xgetcwd.c (xgetcwd): Use HAVE_GETCWD_NULL, not (defined
59035 __GLIBC__ && __GLIBC__ >= 2), to decide whether to use
59038 2001-09-03 Paul Eggert <eggert@twinsun.com>
59040 * lib/exclude.c (fnmatch_no_wildcards): Fix confusion between
59041 usage of FNM_CASEFOLD and FNM_LEADING_DIR. The bug was
59042 spotted by Jim Meyering.
59044 2001-09-03 Jim Meyering <meyering@lucent.com>
59046 * lib/xreadlink.c (xreadlink): Preserve errno around `free' during
59049 2001-09-02 Jim Meyering <meyering@lucent.com>
59051 * lib/error.c: Update from GNU libc.
59053 2001-09-01 Jim Meyering <meyering@lucent.com>
59055 * m4/jm-macros.m4 (jm_MACROS): Check for canonicalize_file_name.
59058 2001-09-01 Jim Meyering <meyering@lucent.com>
59060 * lib/xreadlink.c: New file.
59061 * lib/xreadlink.h: New file.
59062 * lib/Makefile.am (libfetish_a_SOURCES): Add xreadlink.c and
59065 * lib/regex.c (uintptr_t) [!_LIBC]: Define to private_uintptr_t, so it
59066 doesn't conflict with sparc Solaris 7's definition in
59067 /usr/include/sys/int_types.h.
59069 * lib/exclude.c: Use `""', not `<>' to #include non-system header
59071 (fnmatch_no_wildcards): Rewrite not to use function names, strcasecmp
59072 and strncasecmp as r-values. Unixware didn't have declarations.
59074 2001-08-31 Paul Eggert <eggert@twinsun.com>
59076 * lib/xstrtol.h: Add copyright notice.
59077 (_DECLARE_XSTRTOL): Improve quality of diagnostic for
59078 LONGINT_INVALID_SUFFIX_CHAR.
59080 2001-08-31 Paul Eggert <eggert@twinsun.com>
59082 * lib/xstrtol.c (strtoimax): New decl.
59084 2001-08-31 Paul Eggert <eggert@twinsun.com>
59086 * lib/xgetcwd.c: Don't include pathmax.h.
59087 Include stdlib.h and unistd.h if available.
59089 (xmalloc, xstrdup, free): Remove decls.
59090 (xgetcwd): Don't assume sizes fit in unsigned.
59091 Check for overflow when computing sizes.
59092 Simplify reallocation code.
59094 2001-08-31 Paul Eggert <eggert@twinsun.com>
59096 * lib/savedir.c (savedir): Remove size parameter, as POSIX says that
59097 a directory's st_size can have an arbitrary value, so the old
59098 usage could waste an arbitrary amount of memory. All uses
59100 * lib/savedir.h: Update prototype.
59102 2001-08-31 Paul Eggert <eggert@twinsun.com>
59104 * lib/Makefile.am (libfetish_a_SOURCES): Remove strtoxmax.c.
59106 * lib/strtoimax.c: Renamed from strtoxmax.c, removing the
59109 Also, make the following further changes to make this file's
59110 configuration more similar to that of strtol.c:
59111 (UNSIGNED): Renamed from STRTOUXMAX_UNSIGNED. All uses changed.
59112 (strtoumax, uintmax_t, strtoull, strtol): Remove.
59113 (intmax_t, strtoimax, strtol, strtoll): New macros, if UNSIGNED.
59114 (strtoimax): Renamed from strtoumax. All uses of unsigned values
59115 changed to signed values.
59117 And make the following changes as well:
59118 Fix copyright notice, as 1999 was missing.
59119 (verify): New macro.
59120 (strtoimax): Check sizes at compile-time, not run-time.
59121 Prefer strtol to strtoll if both work.
59122 (main): Remove; it was not that useful and was a pain to maintain.
59124 * lib/strtoumax.c: Include strtoimax.c, not strtouxmax.c.
59126 2001-08-31 Jim Meyering <meyering@lucent.com>
59128 * lib/xgetcwd.c (xgetcwd): Reorganize to avoid some duplication.
59129 Use an initial, malloc'd, buffer of length 128 rather than
59130 a statically allocated one of length 1024.
59132 2001-08-30 Paul Eggert <eggert@twinsun.com>
59134 Simplify code, partly by assuming autoconf 2.52 semantics.
59136 * m4/Makefile.am (EXTRA_DIST): Remove uintmax_t.m4.
59138 * m4/inttypes.m4 (AC_PREREQ): Bump to 2.52.
59139 (jm_AC_HEADER_INTTYPES_H): Remove; now done by autoconf in 2.52.
59141 (jm_AC_TYPE_INTMAX_T, jm_AC_TYPE_UINTMAX_T):
59142 Move AC_REQUIRE to next-to-top level, to avoid confusion.
59143 Use 2.52's AC_CHECK_TYPE instead of merely looking for the header.
59144 * m4/prereq.m4 (jm_PREREQ_HUMAN): Don't require
59145 jm_AC_HEADER_INTTYPES_H.
59146 * m4/jm-macros.m4 (jm_MACROS): Likewise.
59148 * m4/uintmax_t.m4: Remove, as it duplicates inttypes.m4.
59150 * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX):
59151 Quote first arg of AC_DEFUN.
59152 Require jm_AC_TYPE_UINTMAX_T and jm_AC_TYPE_UNSIGNED_LONG_LONG
59153 since they are needed to parse the include file even if we need
59154 only xstrtoimax. Simplify logic behind the args to AC_REPLACE.
59155 * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Likewise,
59156 but with opposite signedness.
59158 2001-08-30 Paul Eggert <eggert@twinsun.com>
59160 Merge 'exclude' changes from tar 1.13.22.
59161 This fixes one or two unlikely storage allocation overflow bugs,
59162 but doesn't change user-visible behavior otherwise.
59164 2001-08-30 Paul Eggert <eggert@twinsun.com>
59166 * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_EXCLUDE.
59167 (jm_PREREQ_EXCLUDE): New macro.
59169 2001-08-30 Paul Eggert <eggert@twinsun.com>
59171 * lib/quotearg.c: BSD/OS 4.1 wchar.h requires FILE and struct
59174 2001-08-30 Paul Eggert <eggert@twinsun.com>
59176 * lib/hash.c: Remove '2001' from copyright notice.
59178 2001-08-30 Paul Eggert <eggert@twinsun.com>
59180 * lib/full-write.h: New file.
59181 * lib/Makefile.am (libfetish_a_SOURCES): Add full-write.h.
59182 * lib/full-write.c: Correct credits, as cccp.c no longer
59183 exists and anyway it was so heavily changed from the old cccp
59184 code as to be unrecognizable. Include full-write.h.
59185 (full_write) Return size_t, with short writes meaning failure.
59186 All callers changed. This fixes a bug with large buffers
59188 * lib/utime.c: Include full-write.h.
59190 2001-08-30 Paul Eggert <eggert@twinsun.com>
59192 * lib/exclude.c (bool): Declare, perhaps by including stdbool.h.
59193 (<sys/types.h>): Include only if HAVE_SYS_TYPES_H.
59194 (<stdlib.h>, <string.h>, <strings.h>, <inttypes.h>, <stdint.h>):
59195 Include if available.
59196 (<xalloc.h>): Include
59197 (SIZE_MAX): Define if <stdint.h> or <inttypes.h> doesn't.
59198 (verify): New macro. Use it to verify that EXCLUDE macros do not
59199 collide with FNM macros.
59200 (struct patopts): New struct.
59201 (struct exclude): Use it, as exclude patterns now come with options.
59202 (new_exclude): Support above changes.
59203 (new_exclude, add_exclude_file):
59204 Initial size must now be a power of two to simplify overflow checking.
59205 (free_exclude, fnmatch_no_wildcards): New function.
59206 (excluded_filename): No longer requires options arg, as the options
59207 are determined by add_exclude. Now returns bool, not int.
59208 (excluded_filename, add_exclude):
59209 Add support for the fancy new exclusion options.
59210 (add_exclude, add_exclude_file): Now takes int options arg.
59211 Check for arithmetic overflow when computing sizes.
59212 (add_exclude_file): xrealloc might modify errno, so don't
59213 realloc until after errno might be used.
59215 * lib/exclude.h (EXCLUDE_ANCHORED, EXCLUDE_INCLUDE,EXCLUDE_WILDCARDS):
59217 (free_exclude): New decl.
59218 (add_exclude, add_exclude_file): Now takes int options arg.
59219 (excluded_filename): No longer requires options arg, as the options
59220 are determined by add_exclude. Now returns bool, not int.
59222 2001-08-30 Paul Eggert <eggert@twinsun.com>
59224 * lib/alloca.c (alloca): Arg is of type size_t, not unsigned.
59226 2001-08-27 Jim Meyering <meyering@lucent.com>
59228 * lib/Makefile.am (libfetish_a_SOURCES): Add strtoxmax.c
59230 * lib/version-etc.c (N_): Remove definition.
59231 Revert most of last change.
59232 Instead, simply don't mark the `Copyright...' string for translation.
59233 Based on advice from Paul Eggert.
59235 * lib/strtoxmax.c: Tweak comment.
59237 2001-08-26 Jim Meyering <meyering@lucent.com>
59239 * m4/jm-macros.m4: Require jm_AC_PREREQ_XSTRTOIMAX.
59241 * m4/xstrtoimax.m4: New file.
59242 * m4/xstrtoumax.m4: Add comments explaining why we
59243 AC_REPLACE_FUNCS(strtol).
59245 2001-08-26 Jim Meyering <meyering@lucent.com>
59247 * lib/version-etc.c (version_etc_copyright_fmt): Replace literal year
59248 of copyright with `%s' so translators don't get an untranslated
59250 (COPYRIGHT_YEAR): Define.
59251 (version_etc): Use fprintf rather than fputs.
59252 Suggestion from Ulrich Drepper.
59254 * lib/Makefile.am (libfetish_a_SOURCES): Add xstrtoimax.c.
59256 * lib/strtoll.c: New file, from GNU libc.
59257 * lib/xstrtoimax.c: New file.
59259 * lib/xstrtol.h: Add xstrtoimax.
59260 * lib/strtoumax.c: New file. Simply include "strtoumax.c".
59261 * lib/strtoimax.c: New file. Likewise, but first define
59264 * lib/strtoumax.c: Factor to work both for unsigned and signed types,
59266 * lib/strtoxmax.c: ... then renamed to this.
59268 2001-08-18 Paul Eggert <eggert@twinsun.com>
59270 * m4/inttypes.m4: Add AC_PREREQ(2.13).
59271 (jm_AC_HEADER_INTTYPES_H): Test for intmax_t, too.
59272 (jm_AC_TYPE_INTMAX_T): New macro.
59273 (jm_AC_TYPE_UINTMAX_T): Moved here from uintmax_t.m4.
59275 * m4/longlong.m4 (jm_AC_TYPE_LONG_LONG): New macro.
59277 * m4/longlong.m4: Renamed from ulonglong.m4.
59278 * m4/inttypes.m4: Renamed from inttypes_h.m4.
59279 * m4/uintmax_t.m4: Removed.
59281 2001-08-13 Paul Eggert <eggert@twinsun.com>
59283 * lib/Makefile.am (unlocked-io.h): Do not append "_unlocked" twice.
59284 Port to Solaris 8, where 'sed' requires a space after the 'r'
59285 command, and where sh dislikes "$/". Clean up the spacing a bit.
59286 Redirect output to $tmp just once.
59288 2001-08-12 Paul Eggert <eggert@sic.twinsun.com>
59290 * lib/addext.c (<errno.h>): Include.
59291 (errno): Declare if not defined.
59292 (addext): Work correctly when pathconf returns -1 and leaves
59293 errno alone because there is no limit. Also, work even if
59294 pathconf returns a value greater than SIZE_MAX.
59296 2001-08-12 Jim Meyering <meyering@lucent.com>
59298 * m4/afs.m4, assert.m4, bison.m4, check-decl.m4, chown.m4, d-ino.m4,
59299 d-type.m4, dos.m4, error.m4, fnmatch.m4, fpending.m4, fstypename.m4,
59300 fsusage.m4, ftruncate.m4, getgroups.m4, glibc.m4, gnu-source.m4,
59301 group-member.m4, jm-glibc-io.m4, jm-macros.m4, jm-mktime.m4,
59302 jm-winsz1.m4, jm-winsz2.m4, lchown.m4, lib-check.m4, libintl.m4,
59303 link-follow.m4, ls-mntd-fs.m4, lstat.m4, malloc.m4, mbrtowc.m4,
59304 mbstate_t.m4, mbswidth.m4, memcmp.m4, nanosleep.m4, perl.m4,
59305 prereq.m4, putenv.m4, readdir.m4, realloc.m4, regex.m4, rename.m4,
59306 rmdir-errno.m4, search-libs.m4, st_dm_mode.m4, st_mtim.m4, stat.m4,
59307 strftime.m4, timespec.m4, unlink-busy.m4, uptime.m4, utimbuf.m4,
59308 utime.m4, utimes.m4, xstrtoumax.m4:
59309 Quote the first argument in each use of AC_DEFUN.
59311 2001-08-12 Jim Meyering <meyering@lucent.com>
59313 * lib/xgetcwd.c (xgetcwd) [defined __GLIBC__ && __GLIBC__ >= 2]:
59314 Simply `return getcwd (NULL, 0);'.
59315 [! (defined __GLIBC__ && __GLIBC__ >= 2)]:
59316 Use 1300 as initial value for length, not PATH_MAX.
59318 * lib/pathmax.h: Clean up cpp syntax.
59320 2001-08-12 Jim Meyering <meyering@lucent.com>
59322 * lib/gettimeofday.c: New file.
59323 * lib/gtod.h: New file.
59324 * lib/Makefile.am (libfetish_a_SOURCES): Add gtod.h.
59326 2001-08-05 Jim Meyering <meyering@lucent.com>
59328 * m4/jm-macros.m4: Require autoconf-2.52.
59330 2001-08-04 Jim Meyering <meyering@lucent.com>
59332 * lib/error.h (__attribute__): Remove `|| __STRICT_ANSI__' from #if
59333 stmt, to get in sync with glibc.
59335 2001-08-03 Paul Eggert <eggert@twinsun.com>
59337 The following changes are from gettext 0.10.39 as maintained by
59340 * lib/mbswidth.h (MBSW_REJECT_UNPRINTABLE, MBSW_REJECT_INVALID):
59341 Renamed from MBSW_ACCEPT_UNPRINTABLE and MBSW_ACCEPT_INVALID
59342 with inverted sense. All uses changed.
59344 * lib/mbswidth.c: Don't include <limits.h>.
59345 Include <stdlib.h> and <string.h> unconditionally.
59346 (iswcntrl, mbsinit, ISCNTRL): New macros.
59347 (mbsnwidth): Use K&R style function declarations.
59348 Don't bother checking for MB_LEN_MAX == 1, since the compiler
59349 can optimize it when MB_CUR_MAX == 1.
59350 The width of control characters is zero, not 1.
59352 2001-08-03 Paul Eggert <eggert@twinsun.com>
59354 The following changes are from gettext 0.10.39 as maintained by
59355 Bruno Haible, except that getline.m4 continues to use AC_LIBOBJ.
59357 * m4/codeset.m4: Upgrade to serial AM1.
59358 (AM_LANGINFO_CODESET): Renamed from jm_LANGINFO_CODESET;
59359 all uses changed. Quote first arg of AC_DEFUN.
59360 (am_cv_langinfo_codeset): Renamed from jm_cv_langinfo_codeset.
59362 * m4/iconv.m4: Upgrade to serial AM2.
59363 (AM_ICONV): Renamed from jm_ICONV; all uses changed.
59364 Add --with-libconv-prefix.
59365 Quote first arg of AC_DEFUN. Add description for ICONV_CONST.
59366 (am_cv_func_iconv): Renamed from jm_cv_func_iconv.
59367 (am_cv_lib_iconv): Renamed from jm_cv_lib_iconv.
59368 (am_cv_proto_iconv): Renamed from jm_cv_proto_iconv.
59369 * m4/jm-macros.m4 (jm_MACROS): Reflect s/jm_/AM_/ renamings.
59371 * m4/c-bs-a.m4 (AC_C_BACKSLASH_A): Quote first arg of AC_DEFUN.
59372 * m4/getline.m4 (AM_FUNC_GETLINE): Likewise.
59373 * m4/glibc21.m4 (jm_GLIBC21): Likewise.
59374 * m4/inttypes_h.m4 (jm_AC_HEADER_INTTYPES_H): Likewise.
59375 * m4/isc-posix.m4 (AC_ISC_POSIX): Likewise.
59376 * m4/lcmessage.m4 (AM_LC_MESSAGES): Likewise.
59377 * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
59378 * m4/uintmax_t.m4 (jm_AC_TYPE_UINTMAX_T): Likewise.
59379 * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Likewise.
59381 * m4/getline.m4 (AM_FUNC_GETLINE): Don't bother checking for
59384 * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): If not found, print "no",
59385 not the default value.
59387 2001-06-25 Bruno Haible <haible@clisp.cons.org>
59388 * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Don't require AM_C_PROTOTYPES.
59389 Also check for mbsinit. Needed for SCO 3.2v5.0.2.
59390 Also include <string.h>; this is where AIX 3.2.5 declares wcwidth.
59391 Also check for iswcntrl, used for wcwidth fallback.
59392 Use AC_TRY_COMPILE to emulate AC_CHECK_DECLS, for portability
59395 2001-08-03 Jim Meyering <meyering@lucent.com>
59397 * m4/mbrtowc.m4 (jm_FUNC_MBRTOWC): Use `#include', not `@%:@include',
59398 as it was in the original. Reported by Paul Eggert.
59400 2001-07-16 Jim Meyering <meyering@lucent.com>
59402 * m4/gettimeofday.m4: New file.
59403 Prompted by a report from Bernhard Baehr.
59405 2001-07-15 Jim Meyering <meyering@lucent.com>
59407 * m4/Makefile.am.in (Makefile.am): Remove most of the unlocked-io.h
59408 stuff. Now it's in ../Makefile.cfg.
59410 2001-07-15 Jim Meyering <meyering@lucent.com>
59412 * lib/Makefile.am (EXTRA_DIST): Add unlocked-io.hin.
59413 (BUILT_SOURCES): Add unlocked-io.h.
59414 (io_functions): Define.
59415 (unlocked-io.h): New rule.
59416 (DISTCLEANFILES): Add unlocked-io.h.
59417 (all-local): Depend on unlocked-io.h, to ensure it is created.
59419 * lib/unlocked-io.hin: New file
59421 * lib/regex.c: Update from glibc.
59423 2001-07-05 Jim Meyering <meyering@lucent.com>
59425 * lib/Makefile.am (noinst_HEADERS): Remove definition, per new automake
59427 (libfetish_a_SOURCES): Put all .h files here instead.
59428 Remove a thus-exposed (better checks in automake) duplicate and
59429 two unnecessary .h files.
59431 2001-07-04 Jim Meyering <meyering@lucent.com>
59433 * m4/Makefile.am.in (glibc-io.struct): New target. Rework the code
59434 that generates jm-glibc-io.m4 so that it doesn't trigger any make
59437 2001-07-02 Jim Meyering <meyering@lucent.com>
59439 The following changes were prompted by suggestions from Bruno Haible.
59441 * m4/jm-glibc-io.m4n: New file, the template from which jm-glibc-io.m4
59443 * m4/Makefile.am.in (Makefile.am): Include jm-glibc-io.m4n in emitted
59444 definition of EXTRA_DIST.
59445 (Makefile.am): Emit the dependency, `all-local: jm-glibc-io.m4' to
59446 ensure that the generated file is created/updated whenever the list
59447 of $(unlocked_functions) is changed.
59448 (jm-glibc-io.m4): New rule.
59449 (unlocked-io.h): New rule -- currently unused.
59451 2001-06-24 Jim Meyering <meyering@lucent.com>
59453 * m4/regex.m4 (jm_INCLUDED_REGEX): Use a quadrigraph to represent an
59454 unmatched right bracket, rather than kludging it with an extra,
59455 falsely-matching quote in a comment. Patch by Akim Demaille.
59457 2001-06-11 Jim Meyering <meyering@lucent.com>
59459 * lib/regex.c: Update from GNU libc.
59461 2001-05-27 Jim Meyering <meyering@lucent.com>
59463 * m4/prereq.m4 (jm_PREREQ_READUTMP): Check for ut_type in struct utmpx.
59464 Check for ut_type in struct utmp.
59466 2001-05-27 Jim Meyering <meyering@lucent.com>
59468 * lib/readutmp.h (UT_TYPE): Define.
59470 2001-05-24 Jim Meyering <meyering@lucent.com>
59472 * lib/argmatch.c: Include "quote.h".
59473 (argmatch_invalid): Remove explicit `' quotes. Instead, use the
59474 quote function. Reported by Göran Uddeborg.
59476 2001-05-22 Jim Meyering <meyering@lucent.com>
59478 * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't use AC_LIBOBJ(strftime),
59479 now that we use the package-supplied version unconditionally.
59480 (jm_FUNC_STRFTIME): Don't replace strftime, for the same reason.
59482 2001-05-21 Jim Meyering <meyering@lucent.com>
59484 * m4/regex.m4: Change a couple backticks to single quotes to avoid
59485 shell syntax errors.
59487 2001-05-21 Alexandre Duret-Lutz <duret_g@epita.fr>
59489 * m4/dos.m4 (jm_AC_DOS): Check for _WIN32, __WIN32__, and __MSDOS__.
59491 2001-05-20 Paul Eggert <eggert@twinsun.com>
59493 * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME):
59494 Don't bother to check library strftime, since
59495 we'll be using our own my_strftime function anyway.
59496 Define my_strftime instead of strftime.
59498 2001-05-20 Alexandre Duret-Lutz <duret_g@epita.fr>
59500 * lib/dirname.c (dir_name): Compute append_dot using path, not newpath
59501 which is not yet declared.
59503 2001-05-15 Jim Meyering <meyering@lucent.com>
59505 * m4/regex.m4: Use proper quoting so brackets appear in the test
59507 Reported by, and with help from, Bruno Haible.
59509 2001-05-13 Jim Meyering <meyering@lucent.com>
59511 * m4/jm-macros.m4 (major_t, minor_t): Define to unsigned int if
59514 2001-05-11 Paul Eggert <eggert@twinsun.com>
59516 dirname code cleanup. base_name now behaves more compatibly
59517 with POSIX basename when given file names that have trailing
59518 slashes, and similarly for dir_name. Add new primitives
59519 base_len and dir_len. Put the directory-name-related decls
59522 * lib/addext.c (ISSLASH, base_name): Remove; now in dirname.h.
59523 * lib/backupfile.c (base_name): Likewise.
59524 * lib/basename.c (FILESYSTEM_PREFIX_LEN, PARAMS, ISSLASH): Likewise.
59525 * lib/dirname.c (FILESYSTEM_PREFIX_LEN, ISSLASH): Likewise.
59526 * lib/makepath.c (strip_trailing_slashes): Likewise.
59527 * lib/path-concat.c (DIRECTORY_SEPARATOR, FILESYSTEM_PREFIX_LEN,
59528 ISSLASH): Likewise.
59529 * lib/rename.c (strip_trailing_slashes): Likewise.
59530 * lib/same.c (base_name): Likewise.
59531 * lib/stripslash.c (ISSLASH): Likewise.
59533 * lib/addext.c: Include <dirname.h> after size_t is defined.
59534 * lib/backupfile.c: Likewise.
59536 * lib/addext.c (addext): Use base_len to trim redundant
59537 trailing slashes instead of doing it ourselves.
59538 But do not trim the last slash if it is not redundant.
59540 * lib/backupfile.c (find_backup_file_name,
59541 max_backup_version): Use base_len instead of rolling it ourselves.
59542 Handle the case of "" and (on DOS) "C:" correctly.
59544 * lib/basename.c: Do not include <stdio.h>, <assert.h>; no longer
59545 needed. Include <string.h>, <dirname.h>.
59546 (base_name): Allow file names ending in slashes, other than names
59547 that are all slashes. In this case, return the basename followed
59548 by the slashes. This is more general, and can be used in places
59549 where the original base_name purposely had an assertion failure.
59550 (base_len): New function.
59552 * lib/dirname.c: Include <string.h> instead of <stdlib.h>.
59553 Do not include <assert.h>; no longer needed.
59555 (memrchr): Remove decl.
59556 (dir_name_r): Remove.
59557 (dir_len): Renamed from dirlen. All callers changed.
59558 Rewrite in terms of base_name, for simplicity and consistency.
59559 (dir_name): Never return NULL. All callers changed.
59560 Do not include <stdlib.h> in test program; no longer needed.
59561 return 0; is fine for test program.
59563 * lib/dirname.h (DIRECTORY_SEPARATOR, ISSLASH, FILESYSTEM_PREFIX_LEN):
59565 (base_name, base_len, dir_len, strip_trailing_slashes): New decls.
59567 * lib/path-concat.c (path_concat): Use base_len to compute
59568 base length, not strlen; this means we cannot rely on memcpy
59571 * lib/same.c (STREQ): Remove.
59572 (same_name): Handle the case where the basename ends in trailing '/'.
59574 * lib/stripslash.c (strip_trailing_slashes): Return nonzero if
59575 a slash was stripped. Do not strip the last slash after a
59576 file system prefix.
59578 2001-05-11 Paul Eggert <eggert@twinsun.com>
59580 * lib/Makefile.am (libfetish_a_SOURCES):
59581 Add strftime.c, since we now compile it on all hosts.
59583 * lib/strftime.c (my_strftime):
59584 Define to nstrftime if emacs, but only if my_strftime is not defined.
59585 (extra_args, extra_args_spec, extra_args_spec_iso): Rename from
59586 ut_argument, ut_argument_spec, ut_argument_spec_iso, respectively.
59587 Add one more extra argument: a nanoseconds value.
59590 (my_strftime function): Add %N format.
59591 (emacs_strftimeu): Renamed from emacs_strftime,
59592 with extra ut argument.
59594 2001-05-09 Paul Eggert <eggert@twinsun.com>
59596 * m4/jm-macros.m4 (jm_MACROS): Do not check for fseeko; no longer used.
59598 2001-04-21 Jim Meyering <meyering@lucent.com>
59600 * m4/rmdir-errno.m4: Write to a new file, so that a restrictive umask
59603 2001-04-21 Alexandre Duret-Lutz <duret_g@epita.fr>
59605 * m4/ftruncate.m4: Check for chsize.
59606 Link with ftruncate.o unconditionally if ftruncate is missing.
59607 This was required when cross-compiling to i586-mingw32msvc.
59609 2001-04-08 Jim Meyering <meyering@lucent.com>
59611 * lib/getdate.y (get_date): Set tm_isdst to -1 to ensure that it is
59612 recomputed; that's necessary when the offset spans a DST transition.
59613 Patch by David J. MacKenzie. Reported by Hon-Yin Kok.
59615 2001-04-02 Jim Meyering <meyering@lucent.com>
59617 * lib/regex.h, regex.c: Update from GNU libc.
59619 2001-03-24 Jim Meyering <meyering@lucent.com>
59621 * m4/jm-macros.m4: Require autoconf-2.49d.
59623 2001-03-20 Bruno Haible <haible@clisp.cons.org>
59625 * m4/iconv.m4 (jm_ICONV): Recommend GNU libiconv.
59627 2001-03-19 Paul Eggert <eggert@twinsun.com>
59629 * lib/version-etc.c (version_etc_copyright): Update to 2001.
59631 2001-03-17 Jim Meyering <meyering@lucent.com>
59633 * m4/memcmp.m4 (jm_AC_FUNC_MEMCMP): Remove my copy of AC_FUNC_MEMCMP,
59634 now that the version in autoconf is equivalent.
59635 (jm_FUNC_MEMCMP): Adjust to use AC_FUNC_MEMCMP.
59637 * m4/error.m4 (jm_PREREQ_ERROR): Invoke AC_FUNC_STRERROR_R.
59638 Suggestion from Akim Demaille.
59640 * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_TEMPNAME.
59641 (jm_PREREQ_TEMPNAME): New function.
59643 2001-03-16 Paul Eggert <eggert@twinsun.com>
59645 * lib/tempname.c (uint64_t): Define to uintmax_t if
59646 not defined, and if UINT64_MAX is not defined.
59647 Required at least for Vax Ultrix4.3, which doesn't define uint64_t.
59648 Reported by John David Anglin.
59650 2001-03-15 Bruno Haible <haible@clisp.cons.org>
59652 * lib/localcharset.c (locale_charset): Allow wildcard syntax. Also
59653 resolve alias if codeset is empty.
59654 * lib/config.charset (BeOS): Use wildcard syntax.
59656 2001-03-13 Jim Meyering <meyering@lucent.com>
59658 * lib/path-concat.c (path_concat)
59659 [FILESYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX]: Don't insert a backslash when
59660 concatenating e.g., `C:' and `foo'.
59663 2001-03-06 Bruno Haible <haible@clisp.cons.org>
59665 * lib/localcharset.c (locale_charset): Don't use
59666 setlocale(LC_CTYPE,NULL). Don't return NULL.
59667 * lib/unicodeio.c (print_unicode_char): Simplify accordingly.
59669 2001-03-06 Bruno Haible <haible@clisp.cons.org>
59671 * lib/config.charset: Update for FreeBSD 4.2 and OSF/1 5.1. Add
59672 support for DOS/DJGPP.
59674 2001-03-01 Paul Eggert <eggert@twinsun.com>
59676 * m4/jm-macros.m4 (jm_MACROS): Use mkstemp replacement if the system
59677 lacks mkstemp. Compile our own tempname.c if we compile our own
59678 mkstemp.c, as mkstemp relies on tempname.
59680 2001-03-01 Jim Meyering <meyering@lucent.com>
59682 * m4/dos.m4 (jm_AC_DOS): Remove extra backslashes, now that
59683 AH_VERBATIM really does output its argument verbatim.
59685 2001-02-28 Paul Eggert <eggert@twinsun.com>
59687 * lib/Makefile.am (libfetish_a_SOURCES):
59688 Add dup-safer.c, fopen-safer.c.
59689 (noinst_HEADERS): Add stdio-safer.h, unistd-safer.h.
59691 * lib/dup-safer.c, lib/fopen-safer.c, lib/stdio-safer.h:
59692 * lib/unistd-safer.h: New files.
59694 2001-02-25 Paul Eggert <eggert@twinsun.com>
59696 The mkstemp replacement is taken from glibc 2.2.2, with some
59697 portability fixes for use outside glibc, as follows:
59699 * lib/tempname.c (struct_stat64): New macro.
59700 (direxists, __gen_tempname): Use it.
59701 This avoids a portability problem with Solaris 8.
59703 * lib/tempname.c (<config.h>): Include if HAVE_CONFIG_H.
59704 (<stddef.h>, <stdint.h>, <string.h>):
59705 Include only if STDC_HEADERS || _LIBC.
59706 (<fcntl.h>): Include only if HAVE_FCNTL_H || _LIBC.
59707 (<unistd.h>): Include only if HAVE_UNISTD_H || _LIBC.
59708 (<sys/time.h>): Include only if HAVE_SYS_TIME_H || _LIBC.
59709 (__set_errno): Define this macro if <errno.h> doesn't.
59710 (P_tmpdir, TMP_MAX, __GT_FILE, __GT_BIGFILE, __GT_DIR, __GT_NOCREATE):
59711 Define these macros if <stdio.h> doesn't.
59712 (S_ISDIR, S_IRUSR, S_IWUSR, S_IXUSR):
59713 Define these macros if <sys/stat.h>
59714 doesn't. Ignore <sys/stat.h> S_ISDIR if STAT_MACROS_BROKEN.
59715 (stat64, __getpid, __gettimeofday, __mkdir, __open, __open64, lxstat64,
59716 __xstat64): Define if not _LIBC.
59717 (__secure_getenv): Define if ! (HAVE___SECURE_GETENV || _LIBC).
59718 (__gen_tempname): Invoke gettimeofday only if
59719 HAVE_GETTIMEOFDAY || _LIBC;
59720 otherwise, fall back on plain "time".
59721 Use macros like S_IRUSR | S_IWUSR rather than octal values like 0600.
59723 * lib/mkstemp.c (__GT_FILE): Define to zero if not defined.
59725 * lib/mkstemp.c, lib/tempname.c: New files, taken from glibc 2.2.2.
59727 2001-02-18 Paul Eggert <eggert@twinsun.com>
59729 * m4/jm-macros.m4 (jm_CHECK_ALL_HEADERS): Check for sys/resource.h.
59731 2001-02-17 Paul Eggert <eggert@twinsun.com>
59733 * m4/mbrtowc.m4: New file, defining jm_FUNC_MBRTOWC.
59734 * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH):
59735 Use jm_FUNC_MBRTOWC, not AC_CHECK_FUNCS(mbrtowc).
59736 * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Likewise.
59738 2001-02-17 Paul Eggert <eggert@twinsun.com>
59740 * lib/mbswidth.c, quotearg.c (mbrtowc, mbsinit):
59741 Remove workaround macros for hosts that have mbrtowc but not
59742 mbstate_t, as we now insist on proper declarations for both
59743 before using mbrtowc.
59745 2001-02-17 Jim Meyering <meyering@lucent.com>
59747 * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Don't check for
59748 getmntent via AC_CHECK_FUNCS, since that would get a `no' and disrupt
59749 further attempts by AC_FUNC_GETMNTENT to check with e.g., -lgen on
59752 * m4/mbrtowc.m4 (jm_FUNC_MBRTOWC): Adapt to use AC_CACHE_CHECK etc.,
59753 rather than AC_CACHE_VAL.
59755 2001-02-17 Jim Meyering <meyering@lucent.com>
59757 * lib/strtoul.c: Sync from GNU libc. Use double quotes, not <...>
59758 around included file name.
59760 * lib/strnlen.c (__strnlen): Merge in a change from GNU libc.
59762 * lib/strftime.c: Update from GNU libc (the only changes were to
59765 2001-02-17 Jim Meyering <meyering@lucent.com>
59767 * lib/regex.c: Update from libc.
59769 2001-02-17 Bruno Haible <haible@clisp.cons.org>
59771 * lib/mbswidth.h (mbswidth): Also define as macro, to avoid prototype
59774 2001-02-16 Paul Eggert <eggert@twinsun.com>
59776 * lib/alloca.c (malloc): Undef before defining, since stdlib.h
59777 may have defined it. Needed for Encore Umax-3.0.9.16b systems.
59778 Reported by Mark Hounschell via Paul Eggert.
59780 2001-02-07 Jim Meyering <meyering@lucent.com>
59782 * m4/regex.m4 (jm_INCLUDED_REGEX): Add a test for the latest bug.
59784 2001-02-05 Jim Meyering <meyering@lucent.com>
59786 * m4/jm-macros.m4: Require autoconf-2.14d (not yet released), because
59787 it includes the patch required for `large file' support with at least
59788 HP-UX's 10.20 /bin/cc.
59790 2001-02-03 Jim Meyering <meyering@lucent.com>
59792 * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Restore prior use of
59793 AS_IF, now that it works once again (mysteriously).
59794 * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Likewise.
59796 2001-01-30 Jim Meyering <meyering@lucent.com>
59798 Don't use filenames that are 8.3-equivalent to "conftest" on DOS.
59799 * m4/chown.m4: Rename conftestchown to conftest.chown.
59800 * m4/rename.m4: s/conftestdir/conftest.d1/ and
59801 s/conftestdir2/conftest.d2/.
59802 * m4/utimes.m4: s/conftestdata/conftest.data/
59803 Inspired by Pavel Roskin's change in autoconf.
59805 2001-01-30 Bruno Haible <haible@clisp.cons.org>
59807 * lib/config.charset: Update for FreeBSD 4.2.
59809 2001-01-27 Jim Meyering <meyering@lucent.com>
59811 * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Open-code what was
59813 * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Likewise.
59815 2001-01-26 Jim Meyering <meyering@lucent.com>
59817 * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Check for stddef.h, now that
59818 quotearg.c includes it.
59820 2001-01-26 Jim Meyering <meyering@lucent.com>
59822 * lib/quotearg.c: Include stddef.h.
59823 * lib/quote.c: Include stddef.h.
59824 Reported by Axel Kittenberger.
59826 * lib/xmalloc.c [HAVE_DONE_WORKING_MALLOC_CHECK]: Enclose error-evoking
59827 line in double quotes so that it evokes a better diagnostic.
59828 [HAVE_DONE_WORKING_REALLOC_CHECK]: Likewise.
59829 Reported by Axel Kittenberger.
59831 2001-01-24 Stefan Monnier <monnier@cs.yale.edu>
59833 * regex.c (mutually_exclusive_p): Don't blindly handle `charset_not'
59834 as if it was a `charset'.
59836 2001-01-21 Bruno Haible <haible@clisp.cons.org>
59838 * m4/iconv.m4 (jm_ICONV): Also check whether the iconv declaration
59841 2001-01-21 Bruno Haible <haible@clisp.cons.org>
59843 * lib/unicodeio.c (print_unicode_char): Cast the second iconv() arg,
59844 to avoid a warning. Add back 'const' to inptr.
59846 2001-01-20 Jim Meyering <meyering@lucent.com>
59848 Be sure that headers are checked before used in code compiled
59849 for the type checks.
59850 * m4/jm-macros.m4 (jm_MACROS): Remove all header checks.
59851 In place of that, invoke jm_CHECK_ALL_TYPES.
59852 (jm_CHECK_ALL_HEADERS): New functions with the above checks.
59853 (jm_CHECK_ALL_TYPES): Require jm_CHECK_ALL_HEADERS.
59854 Alan Iwi reported a build failure on an f300-fujitsu-uxpv4.1_ES;
59855 The check for ssize_t was mistakenly run before the test for unistd.h.
59857 The configure-time check for stdbool.h was missing.
59858 * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_HASH.
59859 (jm_PREREQ_HASH): New function.
59861 2001-01-17 Jim Meyering <meyering@lucent.com>
59863 * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Use AS_IF, not AS_IFELSE,
59864 for autoconf-2.49c.
59865 * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Likewise.
59867 2001-01-16 Jim Meyering <meyering@lucent.com>
59869 * lib/basename.c: Include <stdio.h>, needed by assert on SunOS 4.
59872 2001-01-14 Jim Meyering <meyering@lucent.com>
59874 * m4/rename.m4: Use temporary directories named conftestdir{,2}, not
59875 foo and bar. Create conftestdir/ in the script, not in the C code.
59876 Remove directories in the script, not in the C code.
59877 Remove conftestdir{,2} before trying to create the directory.
59878 Make the entire configure script fail if the mkdir fails.
59880 2001-01-14 Jim Meyering <meyering@lucent.com>
59882 * lib/rename.c: New file. From Volker Borchert.
59883 Include stdlib.h, string.h or strings.h, and xalloc.h.
59884 Use strip_trailing_slashes rather than open-coding it.
59886 2001-01-03 Paul Eggert <eggert@twinsun.com>
59888 * lib/strftime.c: Sync with glibc time/strftime.c 1.81.
59890 2001-01-03 Jim Meyering <meyering@lucent.com>
59892 * lib/unicodeio.c (print_unicode_char): Remove `const' from declaration
59893 of local `inptr' to avoid warning with some system declarations of
59896 2001-01-02 Volker Borchert <bt@teknon.de>
59898 * m4/rename.m4: New file.
59899 * m4/jm-macros.m4 (jm_MACROS): Require vb_FUNC_RENAME.
59901 2001-01-01 Jim Meyering <meyering@lucent.com>
59903 * m4/prereq.m4 (jm_PREREQ_READUTMP): Include utmp.h (if available),
59904 even on systems with utmpx.h. It's necessary for the declaration of
59905 utmp's ut_user member. Reported by Andreas Jaeger.
59907 * m4/check-decl.m4 (jm_CHECK_DECLS): Include grp.h and pwd.h if
59908 available. They are required for the declarations of getgrgid and
59910 (_jm_DECL_HEADERS): Check for grp.h and pwd.h.
59911 Reported by Andreas Jaeger.
59913 2001-01-01 Alexandre Duret-Lutz <duret_g@epita.fr>
59915 * m4/libintl.m4 (AM_GNU_GETTEXT): Define MKINSTALLDIRS by
59916 expanding the value of $ac_aux_dir, as in AM_MISSING_HAS_RUN,
59917 so `make install' also works in VPATH builds.
59919 2000-12-31 Alexandre Duret-Lutz <duret_g@epita.fr>
59921 * m4/libintl.m4 (AM_WITH_NLS): When using AC_CONFIG_AUX_DIR,
59922 prepend $(top_srcdir) to the value of MKINSTALLDIRS so that it
59923 can be used in subdirectories.
59925 2000-12-29 Paul Eggert <eggert@twinsun.com>
59927 * lib/modechange.c: Do not assume that mode_t uses the
59928 traditional octal encoding. E.g. "chmod 1 FOO" should set
59929 the other-execute bit of FOO even if S_IXOTH != 1.
59931 (SUID, SGID, SVTX, RUSR, WUSR, XUSR, RGRP, WGRP, XGRP, ROTH,
59932 WOTH, XOTH, ALLM): New macros.
59933 (S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IWUSR, S_IXUSR,
59934 S_IRGRP, S_IWGRP, S_IXGRP, S_IROTH, S_IWOTH, S_IXOTH):
59936 (S_ISGID): Fix typo; it was defaulting to the same value as S_ISUID.
59937 (S_IRWXU, S_IRWXG, S_IRWXO): Specify defaults in terms of the above.
59939 No need to use uintmax_t; unsigned long is long enough.
59940 Don't bother to get suffix since we don't use it.
59942 2000-12-26 Jim Meyering <meyering@lucent.com>
59944 * m4/dos.m4 (jm_AC_DOS): Rewrite (though it's still a stub) to work
59945 better with autoheader.
59947 2000-12-24 Jim Meyering <meyering@lucent.com>
59949 * lib/hash.c (is_prime): Return explicit boolean values.
59950 (hash_get_first): Return NULL to appease Irix5.6's 89.
59951 Reported by Nelson Beebe.
59953 2000-12-19 Bruno Haible <haible@clisp.cons.org>
59955 * lib/localcharset.c (locale_charset): Add support for Win32.
59957 2000-12-18 Paul Eggert <eggert@twinsun.com>
59959 * lib/physmem.h, lib/physmem.c: New files.
59961 * lib/Makefile.am (libfetish_a_SOURCES): Add physmem.c.
59962 (noinst_HEADERS): Add physmem.h.
59964 * lib/xstrtol.c (__xstrtol): Add undocumented suffixes 'g' and
59965 't' for compatibility with Solaris 8 sort.
59967 2000-12-18 Bruno Haible <haible@clisp.cons.org>
59969 * lib/config.charset: Add support for BeOS.
59971 2000-12-17 Jim Meyering <meyering@lucent.com>
59973 * m4/dos.m4 (jm_AC_DOS): New file and macro.
59974 * m4/jm-macros.m4 (jm_MACROS): Require jm_AC_DOS.
59976 2000-12-16 Jim Meyering <meyering@lucent.com>
59978 This bug had a serious impact on chown: `chown N:M FILE' (for integer
59979 N and M) would have treated it like `chown N:N FILE'.
59981 * lib/userspec.c (parse_user_spec): Fix typo: s/u/g/.
59983 2000-12-16 Jim Meyering <meyering@lucent.com>
59985 * lib/getusershell.c [!SHELLS_FILE && __DJGPP__]: Define
59986 SHELLS_FILE to a file name that's useful on djgpp systems.
59988 (ADDITIONAL_DEFAULT_SHELLS): Define.
59989 (default_shells): Prepend ADDITIONAL_DEFAULT_SHELLS.
59990 Based mostly on a patch from Prashant TR.
59992 2000-12-16 Bruno Haible <haible@clisp.cons.org>
59994 * lib/config.charset: Add ISO-8859-3, BIG5HKSCS, GB18030, JOHAB,
59995 VISCII, CP874, CP949, CP950, CP1250, CP1253, CP1254, CP1255, CP1256,
59996 CP1257 to the list of canonical encodings. Rename EUC-CN to GB2312.
59998 2000-12-08 Andreas Schwab <schwab@suse.de>
60000 * lib/mbswidth.c (mbsnwidth): Don't loop endlessly when called with an
60001 invalid mulitbyte sequence and with the MBSW_ACCEPT_INVALID flag set.
60003 2000-12-07 Jim Meyering <meyering@lucent.com>
60005 * lib/stripslash.c (ISSLASH): Define.
60006 (strip_trailing_slashes): Use ISSLASH rather than comparing against
60010 * lib/dirname.c (FILESYSTEM_PREFIX_LEN): Define.
60011 (dir_name_r): Declare this function as static.
60012 [BACKSLASH_IS_PATH_SEPARATOR]: Fix a bug that'd
60013 manifest itself on a name containing a mix of slashes and
60015 Make this function work with names starting with a DOS-style
60016 drive letter and colon prefix.
60017 (dir_name): Append `.' if necessary.
60018 Based mostly on patches from Prashant TR and Eli Zaretskii.
60020 * lib/dirname.h (dir_name_r): Remove prototype.
60022 2000-12-06 Paul Eggert <eggert@twinsun.com>
60024 * m4/off_t-format.m4: Remove this file.
60025 * m4/jm-macros.m4 (jm_MACROS): Remove jm_SYS_OFF_T_PRINTF_FORMAT.
60027 2000-12-06 Jim Meyering <meyering@lucent.com>
60029 * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): If we need the
60030 replacement strtoull, we may well need the replacement strtoul, too.
60031 Check for declarations of strtoul and strtoull.
60032 Check for strtol. Mainly as a cue to cause automake to include
60033 strtol.c -- that file is included by each of strtoul.c and strtoull.c.
60034 Check for limits.h -- strtol.c needs it.
60036 2000-12-05 Jim Meyering <meyering@lucent.com>
60038 * lib/dirname.c (dir_name_r): Add `const' in a few local declarations.
60040 2000-12-04 Jim Meyering <meyering@lucent.com>
60042 * lib/path-concat.c: [!HAVE_DECL_MALLOC]: Declare malloc.
60043 Also include memory.h, stdlib.h, unistd.h if appropriate.
60044 Reported by Andreas Jaeger (conflicting declaration of malloc).
60046 2000-12-02 Jim Meyering <meyering@lucent.com>
60048 * m4/off_t-format.m4 (OFF_T_PRINTF_FORMAT_STRING): New file/macro.
60049 * m4/jm-macros.m4 (jm_MACROS): require it.
60051 2000-12-02 Jim Meyering <meyering@lucent.com>
60053 * lib/closeout.h: Make idempotent, to avoid some obscure warnings.
60055 2000-12-01 Paul Eggert <eggert@twinsun.com>
60057 * lib/memrchr.c: Include <config.h> before any system include file.
60059 2000-11-30 Jim Meyering <meyering@lucent.com>
60061 * m4/jm-macros.m4 (jm_MACROS): Check for stdint.h.
60063 2000-11-30 Jim Meyering <meyering@lucent.com>
60065 * m4/getloadavg.m4: s/ifval/m4_ifval/ to accommodate new autoconf.
60067 2000-11-29 Paul Eggert <eggert@twinsun.com>
60069 * lib/dirname.c (dir_name_r): Fix typo: int -> size_t.
60071 2000-11-26 Jim Meyering <meyering@lucent.com>
60073 * lib/memcoll.c: Include sys/types.h. From Werner Almesberger.
60075 2000-11-22 Paul Eggert <eggert@twinsun.com>
60077 * lib/strftime.c (my_strftime): Do not invoke mbrlen with a
60078 size of (size_t) -1; it's not portable.
60080 2000-11-17 Jim Meyering <meyering@lucent.com>
60082 * lib/strstr.c: Update from GNU libc.
60084 2000-11-17 Akim Demaille <akim@epita.fr>
60086 * lib/obstack.h: Formatting changes.
60087 (obstack_grow, obstack_grow0): Don't cast WHERE at all: that would
60088 prevent type checking.
60089 (obstack_ptr_grow, obstack_ptr_grow_fast): When assigning, don't
60090 cast the value to (void *): assigning a `foo *' to a `void *'
60092 (obstack_int_grow, obstack_int_grow_fast): Don't cast AINT to int.
60094 2000-11-16 Jim Meyering <meyering@lucent.com>
60096 * lib/strverscmp.c: Incorporate weak-alias-related changes from glibc.
60098 2000-11-11 Jim Meyering <meyering@lucent.com>
60100 * lib/error.c: Add a couple #includes, merging from GNU libc version.
60102 2000-11-10 Jim Meyering <meyering@lucent.com>
60104 * lib/obstack.h: Update from GNU libc.
60105 * lib/obstack.c: Likewise.
60107 2000-11-08 Bruno Haible <haible@clisp.cons.org>
60109 * m4/jm-macros.m4 (jm_MACROS): Add test for wcrtomb.
60111 2000-11-06 Paul Eggert <eggert@twinsun.com>
60113 * lib/getusershell.c (setusershell): Use rewind rather than
60114 fseek/fseeko, to avoid configuration hassles with fseeko.
60115 Don't bother opening SHELLS_FILE if shellstream is NULL;
60116 it's not necessary.
60118 2000-11-05 Jim Meyering <meyering@lucent.com>
60120 * lib/makepath.h (make_dir): Declare.
60121 * lib/makepath.c (make_dir): Remove `static' attribute.
60124 2000-11-04 Jim Meyering <meyering@lucent.com>
60126 * m4/regex.m4: Use the `m4_' prefix on `syscmd' and `m4_sysval'.
60128 2000-11-04 Alexandre Duret-Lutz <duret_g@epita.fr>
60130 * lib/hash.c (hash_get_next): Fix a thinko: when ENTRY is the
60131 last one in a bucket, advance to the next bucket.
60133 2000-11-02 Vesselin Atanasov <vesselin@bgnet.bg>
60135 * lib/fnmatch.c: Do not comment out all the code if we are using
60136 the GNU C library, because in some cases we are replacing buggy
60137 code in the GNU C library itself.
60139 2000-10-30 Stefan Monnier <monnier@cs.yale.edu>
60141 * regex.c (re_iswctype, re_wctype_to_bit): Fix braino.
60142 (regex_compile): Catch bogus \(\1\).
60144 2000-10-30 Paul Eggert <eggert@twinsun.com>
60146 * lib/fnmatch.c (FOLD): Do not assume that characters are unsigned.
60147 (fnmatch): Fix some FNM_FILE_NAME and FNM_LEADING_DIR bugs,
60148 e.g. fnmatch("d*/*1", "d/s/1", FNM_FILE_NAME) incorrectly yielded zero.
60150 2000-10-30 Paul Eggert <eggert@twinsun.com>
60152 * lib/error.h, getline.h, modechange.h:
60153 Remove "2000" from Copyright line, as the file hasn't been
60154 changed this year other than in the copyright notice.
60156 * lib/xalloc.h: Add "2000" to Copyright line, as this file
60157 was changed this year.
60159 2000-10-29 Jim Meyering <meyering@lucent.com>
60161 * m4/fsusage.m4: s/AC_SHELL_IFELSE/AS_IFELSE/ to match autoconf
60163 * m4/ls-mntd-fs.m4: Likewise
60165 2000-10-29 Jim Meyering <meyering@lucent.com>
60167 * lib/xstat.in: Fix grammar in comment.
60169 2000-10-29 Greg Louis <glouis@dynamicro.on.ca>
60171 * lib/regex.h (__restrict_arr): Move definition out of #ifndef block.
60172 Required because egcs-2.91.66 (aka 1.1.2) defines __restrict, but
60173 doesn't define __restrict_arr.
60175 2000-10-28 Jim Meyering <meyering@lucent.com>
60177 * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_MEMCHR.
60178 (jm_PREREQ_MEMCHR): New function.
60180 2000-10-28 Jim Meyering <meyering@lucent.com>
60182 * lib/memchr.c: Update from libc.
60183 Adjust for portability:
60184 [HAVE_STDLIB_H]: Include stdlib.h.
60185 [HAVE_BP_SYM_H || _LIBC]: Guard inclusion of bp-sym.h.
60186 Undef __memchr, too.
60187 [!weak_alias]: Define __memchr to memchr.
60189 * lib/regex.c: Update from libc.
60190 * lib/regex.h: Likewise.
60191 * lib/getopt1.c: Likewise.
60192 * lib/memcmp.c: Likewise.
60194 * lib/getusershell.c (setusershell) [HAVE_FSEEKO]: Use fseeko.
60195 Avoid using fseek, when possible -- it's broken by design.
60196 Patch by Ulrich Drepper.
60198 2000-10-27 Stefan Monnier <monnier@cs.yale.edu>
60200 * regex.c (POP_FAILURE_REG_OR_COUNT, re_match_2_internal)
60201 (re_match_2_internal, re_match_2_internal, re_match_2_internal):
60202 Giving in to popular pressure to shut up the compiler with casts.
60204 2000-10-26 Jim Meyering <meyering@lucent.com>
60206 * lib/strftime.c: Update from libc.
60208 2000-10-25 Stefan Monnier <monnier@cs.yale.edu>
60210 * regex.c: More `unsigned char' -> `re_char' changes.
60211 Also change several `int' into `re_wchar_t'.
60212 (PATTERN_STACK_EMPTY, PUSH_PATTERN_OP, POP_PATTERN_OP): Remove.
60213 (PUSH_FAILURE_POINTER): Don't cast any more.
60214 (POP_FAILURE_REG_OR_COUNT): Remove the cast that strips `const'.
60215 We want GCC to complain, since this piece of code makes
60216 re_match non-reentrant, which *should* be fixed.
60217 (GET_BUFFER_SPACE): Use size_t rather than unsigned long.
60218 (EXTEND_BUFFER): Use RETALLOC.
60219 (SET_LIST_BIT): Don't cast.
60220 (re_wchar_t): New type.
60221 (re_iswctype, re_wctype_to_bit): Make it crystal clear to GCC
60222 that those two functions will always properly return.
60223 (IMMEDIATE_QUIT_CHECK): Cast to void.
60224 (analyse_first): Use recursion rather than an explicit stack.
60225 (re_compile_fastmap): Can't fail anymore.
60226 (re_search_2): Don't check re_compile_fastmap for failure.
60227 (PUSH_NUMBER): Renamed from PUSH_FAILURE_COUNT.
60228 Now also sets the new value (passed in a new argument).
60229 (re_match_2_internal): Use it.
60230 Also, use a new var `reg' of type size_t when looping through regs
60231 rather than reuse the inappropriate `mcnt'.
60233 2000-10-25 Jim Meyering <meyering@lucent.com>
60235 * lib/obstack.c: Update from libc.
60237 2000-10-24 Kenichi Handa <handa@etl.go.jp>
60239 * regex.c (regex_compile): Change the way of handling a range from
60240 a char less than 256 to a char not less than 256.
60242 2000-10-24 Andrew Innes <andrewi@gnu.org>
60244 * regex.c (IMMEDIATE_QUIT_CHECK): New macro, which does QUIT on
60246 (re_match_2_internal): Use IMMEDIATE_QUIT_CHECK instead of QUIT,
60247 so that re_search functions only quit when callers expect them to.
60249 2000-10-23 Jim Meyering <meyering@lucent.com>
60251 * lib/hard-locale.c (hard_locale): Revert last change -- it was simply
60252 wrong. That set_locale call must not have any side effects.
60255 2000-10-22 Jim Meyering <meyering@lucent.com>
60257 * lib/md5.c (md5_process_block) [OP]: Use `rol', not CYCLIC.
60258 [CYCLIC]: Remove now-unused definition.
60260 * lib/save-cwd.c (O_DIRECTORY): Define, if needed.
60261 (save_cwd) [HAVE_FCHDIR]: Use O_DIRECTORY when opening ".".
60262 Suggestion from Ulrich Drepper.
60264 2000-10-21 Jim Meyering <meyering@lucent.com>
60266 * m4/check-decl.m4 (jm_CHECK_DECLS): Also check for memrchr.
60267 * m4/prereq.m4 (jm_PREREQ_DIRNAME): New macro.
60268 * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memrchr.
60270 2000-10-21 Jim Meyering <meyering@lucent.com>
60272 * lib/dirname.c (memrchr): Declare if necessary.
60273 (dir_name): Remove the restriction that there be no
60274 trailing slashes. Now, this code skips past them, effectively
60276 [TEST_DIRNAME] (main): New unit tests.
60278 * lib/memrchr.c: New file from GNU libc.
60279 Undef __memrchr, too.
60280 [!weak_alias]: Define __memrchr to memrchr.
60281 Guard weak_alias use with `#ifdef weak_alias'.
60283 2000-10-21 Jim Meyering <meyering@lucent.com>
60285 * lib/dirname.c (dir_name_r): New function, factored out of dir_name.
60286 (dir_name): Use dir_name_r.
60287 * lib/dirname.h (dir_name_r): Declare it.
60289 2000-10-17 Jim Meyering <meyering@lucent.com>
60291 * lib/quote.h (PARAMS): Define and use.
60292 Reported by Akim Demaille.
60294 * lib/getopt.c: Update from libc.
60296 2000-10-16 Jim Meyering <meyering@lucent.com>
60298 * lib/hard-locale.c (hard_locale): Use "", not 0 as 2nd arg to
60302 2000-10-15 Stefan Monnier <monnier@cs.yale.edu>
60304 * regex.c (WIDE_CHAR_SUPPORT): Define if _LIBC as well.
60306 2000-09-25 Jim Meyering <meyering@lucent.com>
60308 * lib/md5.h (rol): Define (from GnuPG).
60310 * lib/sha.c: Give credit (GnuPG) where due.
60311 (M): Use rol rather than open-coding it.
60312 Add a FIXME comment.
60314 2000-09-21 Jim Meyering <meyering@lucent.com>
60316 * lib/userspec.c (parse_user_spec): Remove debugging printf I'd added.
60317 Reported by Michael Stone.
60319 2000-09-20 Jim Meyering <meyering@lucent.com>
60321 * lib/Makefile.am (libfetish_a_SOURCES): Add sha.c.
60322 (noinst_HEADERS): Add sha.h.
60323 Based on code from Scott G. Miller and from GnuPG.
60325 2000-09-18 Jim Meyering <meyering@lucent.com>
60327 * m4/getloadavg.m4 (AC_FUNC_GETLOADAVG): Restore the initial value of
60328 LIBS. Otherwise, everyone ends up linking with -lelf for some
60330 Reported by Mike Stone.
60332 2000-09-15 Jim Meyering <meyering@lucent.com>
60334 * lib/regex.c: Update from libc.
60336 2000-09-10 Jim Meyering <meyering@lucent.com>
60338 * lib/getopt.c (_getopt_internal): Update from glibc.
60340 2000-09-09 Jim Meyering <meyering@lucent.com>
60342 * lib/quotearg.c: Rename ISASCII to IN_CTYPE_DOMAIN, so people don't
60343 think it should be used as a general replacement for isascii.
60344 * lib/fnmatch.c: Likewise.
60345 * lib/mbswidth.c: Likewise
60346 * lib/regex.c: Likewise.
60349 * lib/userspec.c: Include sys/param.h and limits.h.
60351 (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Define.
60352 (UID_T_MAX, GID_T_MAX, MAXUID, MAXGID): Define.
60353 (parse_user_spec): Use xstrtoul, not atoi when converting numeric
60354 UID, GID. Check range.
60356 2000-09-06 Jim Meyering <meyering@lucent.com>
60358 * lib/getopt.c (_getopt_internal): Update from glibc.
60360 2000-08-30 Jim Meyering <meyering@lucent.com>
60362 * lib/strftime.c: Merge in changes from GNU libc.
60364 2000-08-26 Jim Meyering <meyering@lucent.com>
60366 * m4/jm-macros.m4: Use jm_FUNC_FPENDING.
60367 * m4/fpending.m4: New file.
60369 2000-08-26 Jim Meyering <meyering@lucent.com>
60371 * lib/closeout.c: Include "__fpending.h".
60372 (close_stdout_status): Return right away if there's nothing to flush.
60374 * lib/Makefile.am (noinst_HEADERS): Add __fpending.h.
60375 * lib/__fpending.c: New file.
60376 * lib/__fpending.h: New file.
60378 2000-08-20 Jim Meyering <meyering@lucent.com>
60380 * m4/check-decl.m4: Include utmp.h `#if HAVE_UTMP_H', rather than
60381 `#if !HAVE_UTMPX_H'. The latter would lose on systems with neither
60382 utmp.h nor utmpx.h. Reported by Eli Zaretskii.
60384 2000-08-11 J. David Anglin <dave@hiauly1.hia.nrc.ca>
60386 Improve fileutils installation on systems where running
60387 programs (like install) can't be unlinked.
60388 * m4/unlink-busy.m4 (jm_FUNC_UNLINK_BUSY_TEXT): New file/macro.
60389 * m4/jm-macros.m4: Use jm_FUNC_UNLINK_BUSY_TEXT.
60391 2000-08-07 Paul Eggert <eggert@twinsun.com>
60393 Standardize on "memory exhausted" instead of "Memory exhausted"
60394 or "virtual memory exhausted".
60395 * lib/obstack.c (print_and_abort): Use "memory exhausted", not
60396 "virtual memory exhausted".
60397 * lib/same.c (same_name): Invoke xalloc_die instead of printing
60399 * lib/userspec.c (parse_user_spec): Likewise.
60400 * lib/bumpalloc.h: comment fix
60401 * lib/same.c, userspec.c: Include xalloc.h.
60403 * lib/xalloc.h (xalloc_msg_memory_exhausted): Now char const[],
60404 not char *const and pointing to a constant array.
60405 * lib/xmalloc.c (xalloc_msg_memory_exhausted): Likewise.
60406 (xrealloc): Comment fix.
60408 * lib/userspec.c (parse_user_spec):
60409 Don't translate a message until just before returning,
60410 to avoid unnecessary translation.
60412 2000-08-07 Jim Meyering <meyering@lucent.com>
60414 * lib/addext.c, argmatch.c, argmatch.h, backupfile.h, bumpalloc.h,
60415 chown.c, diacrit.h, dirname.h, dup2.c, exclude.h, fileblocks.c,
60416 fnmatch.c, fnmatch.h, fsusage.c, fsusage.h, getdate.h,
60417 getgroups.c, gethostname.c, getopt.h, group-member.c,
60418 hard-locale.c, hash.h, isdir.c, lchown.c, linebuffer.c,
60419 linebuffer.h, long-options.h, malloc.c, md5.c, md5.h, memchr.c,
60420 memcmp.c, memcoll.c, memset.c, mktime.c, modechange.h, obstack.h,
60421 pathmax.h, realloc.c, rmdir.c, safe-read.c, save-cwd.c, stime.c,
60422 stpcpy.c, strcasecmp.c, strcspn.c, strdup.c, stripslash.c,
60423 strstr.c, strtod.c, strtol.c, strtoul.c, strtoull.c, strtoumax.c,
60424 utime.c, version-etc.h, xalloc.h, xstrdup.c, xstrtoumax.c,
60425 yesno.c: Back out Copyright date changes for each file with no change
60426 this year. This eases coordination with other programs using the same
60427 source code modules. From Paul Eggert.
60429 2000-08-06 Paul Eggert <eggert@twinsun.com>
60431 * m4/mbstate_t.m4 (AC_MBSTATE_T): Define mbstate_t to be int,
60432 not char, for compatibility with glibc 2.1.3 strftime.c.
60434 2000-08-03 Greg McGary <greg@mcgary.org>
60436 * lib/regex.c (SET_HIGH_BOUND, MOVE_BUFFER_POINTER,
60437 ELSE_EXTEND_BUFFER_HIGH_BOUND): New macros.
60438 (EXTEND_BUFFER): Use them.
60440 2000-08-01 Jim Meyering <meyering@lucent.com>
60442 * lib/dirname.c (ISSLASH): Define.
60443 (BACKSLASH_IS_PATH_SEPARATOR): Define.
60444 (dir_name) [BACKSLASH_IS_PATH_SEPARATOR]: Handle the case in which
60445 both `\' and `/' may be use as path separators.
60446 Based on a patch from Prashant TR.
60448 2000-07-31 Paul Eggert <eggert@twinsun.com>
60450 * lib/quotearg.c (quotearg_n_options): Don't make the initial
60451 slot vector a constant, since it might get modified.
60453 2000-07-31 Jim Meyering <meyering@lucent.com>
60455 * lib/xmalloc.c: Use `virtual memory exhausted', not
60456 `Memory exhausted'.
60457 * lib/obstack.c (print_and_abort): Likewise.
60459 2000-07-30 Paul Eggert <eggert@twinsun.com>
60461 * lib/quotearg.c (quotearg_n_options): Preallocate a slot 0
60462 buffer, so that the caller can always quote one small
60463 component of a "memory exhausted" message in slot 0.
60464 From a suggestion by Jim Meyering.
60466 2000-07-30 Jim Meyering <meyering@lucent.com>
60468 * lib/makepath.c (make_path): Quote the other instance, too.
60470 * lib/quotearg.c (N_STATIC_SLOTVECS): Define.
60471 (STATIC_BUF_SIZE): Define.
60472 (quotearg_n_options): Use only statically allocated storage when
60473 N < N_STATIC_SLOTVECS and the length of the quoted result is smaller
60474 than STATIC_BUF_SIZE.
60476 2000-07-29 Jim Meyering <meyering@lucent.com>
60478 * lib/diacrit.c (diacrit_diac): Use __MSDOS__ in favor of MSDOS.
60479 * lib/dirname.c (dir_name): Likewise.
60481 * lib/basename.c (base_name): Use ISSLASH rather than comparing against
60484 * lib/dirname.c (dir_name) [MSDOS]: Declare `lim' to be const.
60485 (dir_name): Assert that there are no trailing slashes.
60487 2000-07-29 Bruno Haible <haible@clisp.cons.org>
60489 * lib/mbswidth.h (mbswidth): Add a flags argument.
60490 (mbswidth): New declaration.
60491 (MBSW_ACCEPT_INVALID, MBSW_ACCEPT_UNPRINTABLE): New macros.
60492 * lib/mbswidth.c (mbswidth): Add a flags argument.
60493 (mbsnwidth): New function.
60495 2000-07-24 Jim Meyering <meyering@lucent.com>
60497 * lib/mbswidth.c: Remove useless #else. From Bruno Haible.
60499 2000-07-23 Paul Eggert <eggert@twinsun.com>
60501 * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Check for wcwidth declaration.
60503 2000-07-23 Paul Eggert <eggert@twinsun.com>
60505 * lib/quotearg.c: Streamline by invoking multibyte code only if needed.
60506 <wchar.h>: Include only if HAVE_MBRTOWC && 1 < MB_LEN_MAX.
60507 (MB_CUR_MAX): Redefine to 1 if ! (HAVE_MBRTOWC && 1 < MB_LEN_MAX).
60508 (quotearg_buffer_restyled): If a unibyte locale, don't bother to
60509 invoke multibyte primitives.
60511 2000-07-23 Paul Eggert <eggert@twinsun.com>
60514 Include <wchar.h> even if ! (HAVE_MBRTOWC && 1 < MB_LEN_MAX),
60515 so that mbstate_t is always defined.
60517 Do not inspect MB_LEN_MAX, since it's incorrectly defined to
60518 be 1 in at least one GCC installation, and this configuration
60519 error is likely to be common. Ignoring MB_LEN_MAX hurts
60520 performance on hosts that have mbrtowc but have only unibyte
60521 locales, but I assume these hosts are rare.
60523 2000-07-23 Paul Eggert <eggert@twinsun.com>
60525 * lib/mbswidth.c (_XOPEN_SOURCE):
60526 Don't define; this causes problems on Solaris 7.
60527 (wcwidth) [!HAVE_DECL_WCWIDTH]: Declare.
60529 2000-07-23 Jim Meyering <meyering@lucent.com>
60531 * m4/check-decl.m4 (jm_CHECK_DECLS): Check for declarations of these,
60532 too: getgrgid, getpwuid, getuid.
60534 2000-07-23 Jim Meyering <meyering@lucent.com>
60536 * lib/basename.c (base_name): Add an assertion.
60538 2000-07-23 Bruno Haible <haible@clisp.cons.org>
60540 * lib/quotearg.c: When the system forces us to redefine mbstate_t,
60541 shadow its mbsinit function.
60543 2000-07-17 Bruno Haible <haible@clisp.cons.org>
60545 * lib/mbswidth.h: New file.
60546 * lib/mbswidth.c: New file.
60547 * lib/Makefile.am (libfetish_a_SOURCES): Add mbswidth.c.
60548 (noinst_HEADERS): Add mbswidth.h.
60550 2000-07-17 Bruno Haible <haible@clisp.cons.org>
60552 * lib/config.charset: Add support for FreeBSD. Improve support for
60555 2000-07-16 Bruno Haible <haible@clisp.cons.org>
60557 * m4/mbswidth.m4: New file.
60558 * m4/prereq.m4 (jm_PREREQ): Call jm_PREREQ_MBSWIDTH.
60560 2000-07-15 Jim Meyering <meyering@lucent.com>
60562 * lib/makepath.c: Include quote.h.
60563 (make_path): Convert "`%s'" in format strings to "%s", and wrap each
60564 corresponding argument in a `quote (...)' call.
60565 Give better diagnostics.
60567 * lib/Makefile.am (libfetish_a_SOURCES): Add quote.c.
60568 (noinst_HEADERS): Add quote.h.
60570 * lib/quote.c (quote, quote_n): New file. Two functions taken verbatim
60571 from tar's src/misc.c.
60572 * lib/quote.h: New file. Prototypes for same.
60574 2000-07-14 Paul Eggert <eggert@twinsun.com>
60576 From a suggestion by Bruno Haible.
60577 * lib/quotearg.c (mbrtowc): Do not use HAVE_WCHAR_H in the definition.
60578 Use defined mbstate_t, not HAVE_MBSTATE_T_OBJECT,
60579 to decide whether to define the BeOS workaround macro;
60580 this adjusts to the change to AC_MBSTATE_T.
60582 2000-07-14 Jim Meyering <meyering@lucent.com>
60584 * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Require
60585 jm_AC_TYPE_UINTMAX_T.
60587 2000-07-13 Paul Eggert <eggert@twinsun.com>
60589 * lib/quotearg.h (enum quoting style): New enum clocale_quoting_style.
60591 * lib/quotearg.c (quoting_style_args, quoting_style_vals,
60592 quotearg_buffer_restyled): Add support for
60593 clocale_quoting_style. Undo previous change to
60594 locale_quoting_style behavior, and undo the "{LEFT QUOTATION MARK}"
60595 and "{RIGHT QUOTATION MARK}" msgids.
60597 2000-07-10 Paul Eggert <eggert@twinsun.com>
60599 From a suggestion by Bruno Haible.
60600 * m4/mbstate_t.m4 (AC_MBSTATE_T):
60601 Renamed from AC_MBSTATE_T_OBJECT. All uses changed.
60602 Change from a two-part test, which defines both HAVE_MBSTATE_T_OBJECT
60603 and mbstate_t, to a single-part test that simply defines mbstate_t.
60604 * m4/prereq.m4 (jm_PREREQ_QUOTEARG):
60605 s/AC_MBSTATE_T_OBJECT/AC_MBSTATE_T/.
60607 2000-07-10 Jim Meyering <meyering@lucent.com>
60609 * m4/strerror_r.m4: Mirror the correction made in autoconf.
60611 * m4/gnu-source.m4: Output to confdefs.h directly.
60612 Suggestion from Akim Demaille.
60614 2000-07-09 Paul Eggert <eggert@twinsun.com>
60616 The old behavior of quoting `like this' doesn't look good with
60617 newer, ISO-style fonts. See:
60618 http://www.cl.cam.ac.uk/~mgk25/ucs/quotes.html
60620 Instead, quote "like this" by default. Let the translator
60621 tailor the locale-specific quoting behavior by providing
60622 translations for {LEFT QUOTATION MARK} and {RIGHT QUOTATION MARK}.
60624 * lib/quotearg.c (N_): New macro.
60625 (gettext_default): New function.
60626 (quotearg_buffer_restyled): Use
60627 gettext_default ("{LEFT QUOTATION MARK}", "\"") for left quote, and
60628 gettext_default ("{RIGHT QUOTATION MARK}", "\"") for right quote.
60630 2000-07-09 Jim Meyering <meyering@lucent.com>
60632 * m4/jm-macros.m4 (jm_MACROS): Add a test to see if -lm is required
60633 to link seq. If so, set SEQ_LIBM to -lm. From Bruno Haible.
60635 * m4/gnu-source.m4 (AC__GNU_SOURCE): New file/macro.
60636 * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require it.
60638 2000-07-09 Jim Meyering <meyering@lucent.com>
60640 * lib/Most files: Update copyright dates to include 2000.
60642 2000-07-08 Jim Meyering <meyering@lucent.com>
60644 * lib/xgethostname.c (ENAMETOOLONG): Define to an unlikely value
60646 (xgethostname): Remove now-unnecessary #ifdef.
60647 Move declaration of `err' into loop where it's used.
60649 2000-07-05 Paul Eggert <eggert@twinsun.com>
60650 and Bruno Haible <haible@clisp.cons.org>
60652 * m4/mbstate_t.m4 (AC_MBSTATE_T_OBJECT): Test for mbstate_t
60653 only if the test for an object-type mbstate_t fails. This
60654 prevents us from mistakenly reporting that mbstate_t is a
60655 system object type after we "#define mbstate_t int" to work
60658 2000-07-05 Paul Eggert <eggert@twinsun.com>
60659 and Bruno Haible <haible@clisp.cons.org>
60661 * lib/quotearg.c (mbrtowc): Declare returned type, since BeOS doesn't.
60663 2000-07-05 Bruno Haible <haible@clisp.cons.org>
60665 * m4/strerror_r.m4 (AC_FUNC_STRERROR_R): Pass a reasonably large buffer
60667 Include <ctype.h> for use of isalpha.
60669 2000-07-05 Bruno Haible <haible@clisp.cons.org>
60671 * lib/xgethostname.c (xgethostname): Protect against the SunOS 5.5 bug
60672 by allocating a larger buffer. Test the gethostname return value for
60673 being >= 0, not == 0, for BeOS. Don't exhaust memory if gethostname
60674 returns an error and ENAMETOOLONG isn't defined.
60676 2000-07-05 Bruno Haible <haible@clisp.cons.org>
60678 * lib/quotearg.c (struct quoting_options): Simplify quote_these_too
60681 2000-07-04 Jim Meyering <meyering@lucent.com>
60683 * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Use plain old `echo' instead
60684 of the deprecated AC_CHECKING.
60686 2000-07-04 Jim Meyering <meyering@lucent.com>
60688 * lib/strndup.c: [!HAVE_DECL_STRNLEN]: Declare strnlen.
60689 Reported by Bruno Haible.
60691 2000-07-04 Jim Meyering <meyering@lucent.com>
60693 * lib/quotearg.c: Make inclusion of <wchar.h> independent of whether
60694 HAVE_MBRTOWC is set. Required at least for irix-5.6, which
60697 2000-07-03 Paul Eggert <eggert@twinsun.com>
60699 * m4/mbstate_t.m4 (AC_MBSTATE_T_OBJECT): Port to autoconf 2.13.
60700 Add AC_CHECK_HEADERS(stdlib.h), since we use HAVE_STDLIB_H.
60702 2000-07-03 Paul Eggert <eggert@twinsun.com>
60703 and Bruno Haible <haible@clisp.cons.org>
60705 * lib/quotearg.c (mbrtowc):
60706 Assign to *pwc, and return 1 only if result is nonzero.
60707 (iswprint): Use ISPRINT when substituting our own mbrtowc.
60709 2000-07-03 Jim Meyering <meyering@lucent.com>
60711 * m4/check-decl.m4 (AC_CHECK_DECLS): Add strnlen.
60713 2000-07-03 Jim Meyering <meyering@lucent.com>
60715 * lib/readutmp.h: [HAVE_UTMPX_H]: Include <utmp.h> if HAVE_UTMP_H.
60716 This is necessary to get a definition of e.g., UTMP_FILE on
60720 2000-07-02 Jim Meyering <meyering@lucent.com>
60722 * m4/mbstate_t.m4: Also define mbstate_t, if necessary.
60724 * m4/chown.m4: Replace each use of AC_SUBST(LIBOBJS)/LIBOBJS=... with
60725 AC_LIBOBJ(function_name).
60726 * m4/chown.m4: Likewise.
60727 * m4/fnmatch.m4: Likewise.
60728 * m4/ftruncate.m4: Likewise.
60729 * m4/getgroups.m4: Likewise.
60730 * m4/getline.m4: Likewise.
60731 * m4/group-member.m4: Likewise.
60732 * m4/jm-macros.m4: Likewise.
60733 * m4/lstat.m4: Likewise.
60734 * m4/malloc.m4: Likewise.
60735 * m4/memcmp.m4: Likewise.
60736 * m4/nanosleep.m4: Likewise.
60737 * m4/putenv.m4: Likewise.
60738 * m4/realloc.m4: Likewise.
60739 * m4/regex.m4: Likewise.
60740 * m4/stat.m4: Likewise.
60741 * m4/strftime.m4: Likewise.
60743 2000-07-02 Jim Meyering <meyering@lucent.com>
60745 * lib/quotearg.c (mbstate_t): Don't define here.
60747 2000-07-02 Jim Meyering <meyering@lucent.com>
60749 * lib/nanosleep.c (SIGCONT): Define if not already defined.
60751 2000-07-01 Jim Meyering <meyering@lucent.com>
60753 * m4/uptime.m4: Put double quotes around use of $cross_compiling.
60755 2000-07-01 Jim Meyering <meyering@lucent.com>
60757 * m4/ls-mntd-fs.m4: Remove a `FIXME' comment and fix the associated
60760 2000-07-01 Bruno Haible <haible@clisp.cons.org>
60762 * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Rename BeOS specific
60763 macro from MOUNTED_NEXT_DEV to MOUNTED_FS_STAT_DEV.
60765 2000-07-01 Bruno Haible <haible@clisp.cons.org>
60767 * lib/mountlist.c: Use MOUNTED_FS_STAT_DEV instead of MOUNTED_NEXT_DEV,
60768 per change in ../m4/ls-mntd-fs.m4.
60769 (read_filesystem_list): Ignore symbolic links.
60771 2000-06-29 Jim Meyering <meyering@lucent.com>
60773 * lib/same.c: Include <string.h> or <strings.h>, as appropriate,
60774 for declaration of strcmp.
60776 * lib/long-options.c: Include <stdlib.h>, for declaration of exit.
60778 * lib/mountlist.c (fsp_to_string) [HAVE_F_FSTYPENAME_IN_STATFS]:
60779 Avoid warning by casting result to `char *' to remove `const'.
60781 2000-06-28 Jim Meyering <meyering@lucent.com>
60783 * m4/mbstate_t.m4: Use stdlib.h, not stdio.h. The latter is not
60784 included by quotearg.c, for which we perform this test. From
60787 2000-06-27 Bruno Haible <haible@clisp.cons.org>
60789 * m4/check-decl.m4 (_jm_DECL_HEADERS): Check for utmp.h as well.
60790 * m4/prereq.m4 (jm_PREREQ_READUTMP): Likewise. If either <utmp.h> or
60791 <utmpx.h> exists, put readutmp.o into LIBOBJS.
60793 2000-06-27 Bruno Haible <haible@clisp.cons.org>
60795 * lib/Makefile.am (libfetish_a_SOURCES): Remove readutmp.c.
60797 2000-06-26 Paul Eggert <eggert@twinsun.com>
60799 savedir now sets errno on failure and invokes xmalloc to get memory.
60800 Fix a couple of other minor bugs while we're at it.
60802 * lib/savedir.c (<unistd.h>): Do not include; there's no need.
60803 (NAMLEN): Remove macro.
60804 (malloc, realloc): Remove decls.
60805 (stpcpy): Likewise.
60806 ("xalloc.h"): Include.
60807 (NAME_SIZE_DEFAULT): New macro.
60808 (savedir): Use xmalloc / xrealloc to allocate memory.
60809 Use NAME_SIZE_DEFAULT if name_size is negative or overflows to zero.
60810 Skip "" directory entries.
60811 Use strlen to calculate directory entry length, since the old method
60812 is rarely used these days and isn't worth supporting.
60813 Don't use a pointer after freeing it.
60814 Check for integer overflow when calculating allocation size.
60815 Use memcpy to copy entries, instead of stpcpy.
60816 Set errno properly when returning NULL.
60817 Check for readdir error.
60819 2000-06-26 Jim Meyering <meyering@lucent.com>
60821 * lib/posixtm.c [HAVE_STDLIB_H]: Include stdlib.h, for decl of abort.
60823 2000-06-25 Jim Meyering <meyering@lucent.com>
60825 * m4/mbstate_t.m4: Include stdio.h before wchar.h to work around
60826 Linux header bug when _XOPEN_SOURCE is defined to 500.
60828 2000-06-25 Bruno Haible <haible@clisp.cons.org>
60830 * lib/unicodeio.c (print_unicode_char): Work around ansi2knr
60833 2000-06-25 Bruno Haible <haible@clisp.cons.org>
60835 * lib/getusershell.c (xmalloc, xrealloc): Remove functions.
60837 Don't include <stdlib.h>. Don't declare malloc, realloc.
60839 2000-06-24 Jim Meyering <meyering@lucent.com>
60841 * m4/strerror_r.m4: Revive this file -- to try out an experimental
60842 version of AC_FUNC_STRERROR_R that may work even on BeOS, a system
60843 for which strerror does return char*, but which lacks a conveniently
60844 accessible declaration of the function. If the compile-test says
60845 strerror_r doesn't work, then resort to a `run'-test that works on
60846 BeOS and segfaults on DEC Unix.
60848 2000-06-24 Jim Meyering <meyering@lucent.com>
60850 * lib/error.c [!HAVE_DECL_STRERROR_R]: Declare strerror_r.
60852 2000-06-23 Paul Eggert <eggert@twinsun.com>
60854 * m4/mbstate_t.m4: New file, defining AC_MBSTATE_T_OBJECT.
60855 * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Use it. Add check for iswprint.
60857 2000-06-23 Paul Eggert <eggert@twinsun.com>
60859 * lib/quotearg.c: Include <wctype.h> after <wchar.h>, for Solaris 2.5.
60860 (mbrtowc, mbstate_t): Define substitutes if
60861 HAVE_MBRTOWC && HAVE_WCHAR_H && !HAVE_MBSTATE_T_OBJECT.
60862 (iswprint): Define to 1 if !defined iswprint && !HAVE_ISWPRINT,
60863 not if ! (HAVE_MBRTOWC && HAVE_WCHAR_H).
60865 2000-06-23 Jim Meyering <meyering@lucent.com>
60867 * m4/afs.m4: Add missing AC_MSG_RESULT.
60868 Reported by Bruno Haible.
60870 * m4/fsusage.m4: s/AC_MSG_CHECKING/AC_CHECKING/.
60871 Suggestion from Bruno Haible.
60873 2000-06-23 Jim Meyering <meyering@lucent.com>
60875 * lib/getpass.c: New file, from Bruno Haible. Required for BeOS.
60877 2000-06-21 Jim Meyering <meyering@lucent.com>
60879 * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add getpass.
60881 2000-06-21 Jim Meyering <meyering@lucent.com>
60883 * lib/Makefile.am (libfetish_a_SOURCES): Add getstr.c.
60884 (noinst_HEADERS): Add getstr.h.
60886 * lib/getline.c (getstr): Move into a separate file.
60887 * lib/getstr.c (getstr): New file, extracted from getline.c, with
60888 the following changes: new parameter, delim2; both delim[12]
60889 parameters have type `int', not `char'. The latter would lose
60890 with 8-bit delimiters.
60891 * lib/getstr.h: New file.
60893 2000-06-21 Bruno Haible <haible@clisp.cons.org>
60895 * lib/xgetcwd.c (xgetcwd): If the required pathname length is smaller
60896 than 1024, return a memory chunk of least possible size, instead
60897 of size PATH_MAX + 2. In the loop, increment the size proportionally.
60898 Use free/xmalloc instead of xrealloc to avoid copying for very long
60901 2000-06-21 Bruno Haible <haible@clisp.cons.org>
60903 * lib/path-concat.c (path_concat): Don't access dir[-1] if dir is
60906 2000-06-21 Bruno Haible <haible@clisp.cons.org>
60908 * lib/canon-host.c (canon_host): Use malloc and memcpy to copy an
60909 address, not strdup. Include <stdlib.h> and don't declare free().
60911 2000-06-19 Jim Meyering <meyering@lucent.com>
60913 * lib/getloadavg.c [HAVE_NLIST_H] (NLIST_STRUCT): Define.
60915 2000-06-18 Jim Meyering <meyering@lucent.com>
60917 * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Remove mkdir.
60919 * m4/link-follow.m4 (jm_AC_FUNC_LINK_FOLLOWS_SYMLINK): Change the
60920 `checking whether...' message to be consistent with that of the
60923 2000-06-18 Jim Meyering <meyering@lucent.com>
60925 * lib/mkdir.c: Remove file, due mainly to copyright incompatibility.
60926 Besides, these days every porting target provides a mkdir function.
60928 * lib/strnlen.c: Include memory.h, string.h, and/or strings.h as
60929 needed. (this snippet comes from src/system.h).
60931 2000-06-16 Bruno Haible <haible@clisp.cons.org>
60933 * m4/glibc21.m4 (jm_GLIBC21): Define GLIBC21 for Makefiles, not for C.
60935 2000-06-15 Paul Eggert <eggert@twinsun.com>
60937 * lib/human.c (adjust_value): New function.
60938 (human_readable_inexact): Apply rounding style even when
60939 printing approximate values.
60941 2000-06-14 Paul Eggert <eggert@twinsun.com>
60943 * lib/human.c (human_readable_inexact): Allow an input block
60944 size that is not a multiple of the output block size, and vice versa.
60945 Reported by Piergiorgio Sartor.
60947 2000-06-14 Paul Eggert <eggert@twinsun.com>
60949 * lib/getdate.y (get_date): Apply relative times after time
60950 zone indicator, not before. Reported by Todd A. Jacobs.
60952 2000-06-13 Jim Meyering <meyering@lucent.com>
60954 * lib/Makefile.am (all-local): Depend on lstat.c and stat.c.
60956 * lib/xstat.in [!HAVE_DECL_FREE]: Declare free in lstat.c.
60958 2000-06-12 Paul Eggert <eggert@twinsun.com>
60960 * lib/xstat.in: Include <stdlib.h> in lstat, to declare "free".
60962 2000-06-12 Jim Meyering <meyering@lucent.com>
60964 * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Replace with
60965 AC_FUNC_GETLOADAVG from autoconf, and tweak the latter to accept an
60967 * m4/jm-macros.m4: s/AM_FUNC_GETLOADAVG/AC_FUNC_GETLOADAVG/, and supply
60968 the optional argument, `lib'.
60970 2000-06-08 Jim Meyering <meyering@lucent.com>
60972 * m4/largefile.m4: Remove file (now that it's part of autoconf).
60974 2000-06-04 Paul Eggert <eggert@twinsun.com>
60976 Rewrite largefile configuration so that we don't need to run
60977 getconf and don't need AC_CANONICAL_HOST. [I'm leaving the use of
60978 AC_CANONICAL_HOST in configure.in -- jmm]
60980 * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS,
60981 AC_SYS_LARGEFILE_SPACE_APPEND): Remove.
60982 (AC_SYS_LARGEFILE_TEST_INCLUDES): New macro.
60983 (AC_SYS_LARGEFILE_MACRO_VALUE): Change arguments from
60984 CODE-TO-SET-DEFAULT to VALUE, INCLUDES, FUNCTION-BODY.
60986 Instead of inspecting the output of getconf, try to compile the
60987 test program without and with the macro definition.
60988 (AC_SYS_LARGEFILE): Do not require AC_CANONICAL_HOST or check
60989 for getconf. Instead, check for the needed flags by compiling
60992 2000-06-04 Paul Eggert <eggert@twinsun.com>
60994 * lib/strnlen.c: Include <config.h> if HAVE_CONFIG_H.
60996 2000-06-04 Jim Meyering <meyering@lucent.com>
60998 * lib/getugroups.c (getugroups): Cast -1 to gid_t, for systems like
60999 SunOS 4.1.4 for which gid_t is an unsigned type.
61001 2000-06-03 Jim Meyering <meyering@lucent.com>
61003 * m4/prereq.m4 (jm_PREREQ_HUMAN): Use []-quoted list in AC_CHECK_DECLS,
61004 now that autoconf requires that.
61006 * m4/jm-glibc-io.m4: Add a kludge to make autoheader emit the required
61007 #undefs. E.g., #undef HAVE_DECL_FERROR_UNLOCKED.
61008 Use []-quoted list in AC_CHECK_DECLS, now that autoconf requires that.
61010 2000-06-03 Jim Meyering <meyering@lucent.com>
61012 * lib/strnlen.c [!HAVE_DECL_MEMCHR]: Declare memchr.
61014 2000-06-03 Bruno Haible <haible@clisp.cons.org>
61016 * m4/glibc21.m4: New file.
61017 * m4/jm-macros.m4 (jm_MACROS): Call jm_GLIBC21.
61019 2000-06-03 Bruno Haible <haible@clisp.cons.org>
61021 * lib/Makefile.am (install-exec-local): On systems with glibc-2.1 or
61022 newer, don't install charset.alias.
61023 * lib/config.charset: Change the Linux/glibc rules so they become empty
61024 on glibc-2.1 or newer.
61026 2000-06-02 Jim Meyering <meyering@lucent.com>
61028 * lib/mountlist.c: Back out last change. Instead, do this...
61029 * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Set the
61030 me_dummy member using the same `ignore'-testing code.
61031 * lib/mountlist.h (ME_DUMMY): Add `autofs' to the list of ignored
61035 2000-05-29 Jim Meyering <meyering@lucent.com>
61037 * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Ignore
61038 mounts with the `ignore' attribute. Based on a patch from
61041 2000-05-28 Jim Meyering <meyering@lucent.com>
61043 * m4/jm-macros.m4 (AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): Rename from
61044 jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
61045 * m4/stat.m4: Likewise.
61046 * m4/lstat.m4: Likewise.
61047 * m4/lstat-slash.m4: Remove file (absorbed into autoconf).
61049 * m4/jm-macros.m4 (AC_FUNC_STRERROR_R): Rename from jm_FUNC_STRERROR_R.
61050 * m4/strerror_r.m4: Remove file (absorbed into autoconf).
61052 2000-05-26 Jim Meyering <meyering@lucent.com>
61054 * m4/uptime.m4: Use `$cross_compiling', not `$ac_cv_prog_cc_cross'.
61056 2000-05-24 Jim Meyering <meyering@lucent.com>
61058 * m4/prereq.m4: Use []-quoted list in AC_CHECK_MEMBERS, now that
61059 autoconf requires that.
61060 * m4/lib-check.m4: Likewise.
61061 * m4/jm-macros.m4: Likewise.
61062 * m4/strftime.m4: Likewise.
61064 * m4/check-decl.m4 (jm_CHECK_DECLS): Use []-quoted list in
61065 AC_CHECK_DECLS, now that autoconf requires that.
61067 2000-05-22 Jim Meyering <meyering@lucent.com>
61069 * m4/stat.m4: Require jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
61070 * m4/lstat.m4: Likewise.
61072 2000-05-22 Jim Meyering <meyering@lucent.com>
61074 * lib/makepath.c: Remove old, now-unnecessary `#ifdef __MSDOS__' block.
61076 2000-05-20 Jim Meyering <meyering@lucent.com>
61078 * m4/prereq.m4 (jm_PREREQ_HUMAN): New macro.
61079 (jm_PREREQ): Use it.
61081 2000-05-18 Jim Meyering <meyering@lucent.com>
61083 * lib/hash.c (hash_rehash): Fix a nasty bug: copy the free entry list
61084 back, too, since it may have been modified by allocate_entry.
61085 (hash_delete): Rewrite to use neither the assignment operator
61086 nor the comma operator in an if-expression.
61088 2000-05-15 Paul Eggert <eggert@twinsun.com>
61091 <sys/stat.h>, <sys/types.h>, <unistd.h>, (STDOUT_FILENO):
61092 Remove; no longer needed.
61093 "quotearg.h": Add include.
61094 (file_name): Do not bother to explicitly initialize to NULL; it's less
61095 efficient on some hosts.
61096 (close_stdout_status): Remove test as to whether stdout was already
61097 closed; it breaks for the case "echo x | sort >&-".
61098 Quote file name colons.
61099 Do not assume that _("write error") lacks format strings.
61101 2000-05-15 Jim Meyering <meyering@lucent.com>
61103 * lib/version-etc.c (version_etc_copyright): Update the copyright
61104 string used in all --version output.
61106 2000-05-14 Jim Meyering <meyering@lucent.com>
61108 * lib/closeout.c (close_stdout_set_file_name): New function.
61109 (close_stdout_status): Use new file-scoped global.
61110 Return right away if fstat says the stdout file descriptor is invalid.
61111 * lib/closeout.h (close_stdout_set_file_name): Declare.
61113 2000-05-10 Jim Meyering <meyering@lucent.com>
61115 * lib/closeout.c [default_exit_status]: New file-scoped variable.
61116 (close_stdout_set_status): New function.
61117 * lib/closeout.h (close_stdout_set_status): Declare.
61119 2000-05-09 Jim Meyering <meyering@lucent.com>
61121 * m4/gettext.m4: Rename this...
61122 * m4/libintl.m4: ...to this.
61124 2000-05-08 Jim Meyering <meyering@lucent.com>
61126 * lib/long-options.c: Don't include closeout.h.
61127 (parse_long_options): Don't call close_stdout for --version.
61129 2000-05-06 Paul Eggert <eggert@twinsun.com>
61131 * m4/largefile.m4 (AC_SYS_LARGEFILE): Define _XOPEN_SOURCE to
61132 be 500, instead of _GNU_SOURCE to be 1, to work around glibc
61133 2.1.3 bug. This avoids a clash when files like regex.c define
61136 2000-05-06 Jim Meyering <meyering@lucent.com>
61138 * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add atexit.
61139 (AC_REPLACE_FUNCS): Add strnlen.
61141 * m4/rmdir-errno.m4 (fetish_FUNC_RMDIR_NOTEMPTY): New macro and file.
61142 * m4/jm-macros.m4: Require fetish_FUNC_RMDIR_NOTEMPTY.
61144 * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Save and restore LIBS around
61145 AC_SEARCH_LIBS call for nanosleep.
61146 (LIB_NANOSLEEP): Set and AC_SUBST.
61148 2000-05-06 Jim Meyering <meyering@lucent.com>
61150 * lib/strnlen.c: Undefine __strnlen and strnlen.
61151 [!weak_alias]: Define __strnlen to strnlen.
61153 * lib/atexit.c: New file, from libiberty.
61155 2000-05-06 Jim Meyering <meyering@lucent.com>
61157 * lib/closeout.c (close_stdout_status): Also check for errors on the
61160 2000-05-05 Jim Meyering <meyering@lucent.com>
61162 * m4/jm-macros.m4 (jm_MACROS): Save and restore LIBS around
61163 AC_SEARCH_LIBS call for clock_gettime.
61164 (LIB_CLOCK_GETTIME): Set and AC_SUBST.
61166 * m4/search-libs.m4: Update from autoconf.
61168 su doesn't work on Solaris 2.6.
61169 * m4/lib-check.m4: When checking for struct spwd.sp_pwdp, also include
61170 <shadow.h>. Reported by Dragos Harabor.
61172 2000-05-05 Bruno Haible <haible@clisp.cons.org>
61174 * lib/localcharset.c (get_charset_aliases): Use malloc, realloc and
61175 memcpy instead of xmalloc, xrealloc, path_concat.
61176 (locale_charset): Treat empty environment variables as absent.
61177 (DIRECTORY_SEPARATOR, ISSLASH): New macros.
61179 2000-05-04 Jim Meyering <meyering@lucent.com>
61181 * lib/getopt.c: Update from glibc.
61182 * lib/obstack.c: Likewise.
61183 * lib/obstack.h: Likewise.
61184 * lib/regex.c: Likewise. NB: K&R compiler support is dropped for this
61187 * lib/regex.h: Likewise.
61188 * lib/strndup.c: Likewise.
61189 * lib/strnlen.c: New file, from glibc.
61191 2000-05-03 Jim Meyering <meyering@lucent.com>
61193 * m4/check-decl.m4 (AC_CHECK_DECLS): Add strndup.
61195 2000-05-02 Paul Eggert <eggert@twinsun.com>
61197 * m4/largefile.m4 (AC_SYS_LARGEFILE): Define _GNU_SOURCE if
61198 this is needed to make ftello visible (e.g. glibc 2.1.3). Use
61199 compile-time test, rather than inspecting host and OS, to
61200 decide whether to define _LARGEFILE_SOURCE.
61202 2000-05-01 Jim Meyering <meyering@lucent.com>
61204 * m4/fsusage.m4: Use AC_MSG_CHECKING instead of obsolete AC_CHECKING.
61206 * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Add BeOS support.
61207 Based on a patch from Bruno Haible.
61209 2000-05-01 Jim Meyering <meyering@lucent.com>
61211 * lib/full-write.c (full_write): Remove `FIXME' part of comment.
61213 2000-04-29 Jim Meyering <meyering@lucent.com>
61215 * lib/path-concat.c: Declare strdup only if it's not defined.
61216 * lib/canon-host.c: Likewise.
61218 2000-04-28 Jim Meyering <meyering@lucent.com>
61220 * lib/rpmatch.c [HAVE_LIMITS_H]: Include limits.h before regex.h to
61221 avoid redefinition warning on some systems (HPUX). Otherwise, regex.h
61222 is included first, then limits.h is included by locale.h by libintl.h.
61223 From John David Anglin.
61225 2000-04-25 Jim Meyering <meyering@lucent.com>
61227 * lib/makepath.c (S_IRWXUGO): Define.
61228 (make_path): Always perform explicit chmod if MODE specifies any
61229 of the `special' permission bits. Prompted by a bug report against
61230 install from Mate Wierdl and Joost van Baal.
61232 2000-04-18 Jim Meyering <meyering@lucent.com>
61234 * m4/prereq.m4 (jm_PREREQ_GETPAGESIZE): New macro.
61235 (jm_PREREQ): Use it.
61237 2000-04-18 Jim Meyering <meyering@lucent.com>
61239 * lib/README: New file.
61241 * lib/getpagesize.h [!getpagesize && HAVE_OS_H && B_PAGE_SIZE]: Define
61242 getpagesize. For BeOS. Based on a patch from Bruno Haible.
61244 2000-04-17 Jim Meyering <meyering@lucent.com>
61247 * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Emit the
61248 actual #define via AH_VERBATIM. Don't need separate AC_DEFINE.
61249 Suggestion from Akim Demaille.
61251 2000-04-17 Jim Meyering <meyering@lucent.com>
61253 * lib/strftime.c (my_strftime) [strftime]: Declare strftime here, since
61254 the definition of it to rpl_strftime also defined-away the system's
61257 2000-04-15 Jim Meyering <meyering@lucent.com>
61259 Use `C' to denote so-called `contiguous' files, the same way
61261 * lib/filemode.c (S_ISCTG) [!S_ISCTG && S_IFCTG]: Define.
61262 (ftypelet): Use S_ISCTG.
61263 From Michael Deutschmann.
61265 2000-04-14 Jim Meyering <meyering@lucent.com>
61267 * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Use the one-arg
61268 form of AC_DEFINE. Otherwise, the #ifndef in AH_VERBATIM gets
61271 2000-04-14 Jim Meyering <meyering@lucent.com>
61273 * lib/strftime.c (my_strftime) [#ifdef strftime]: Declare strftime.
61275 2000-04-13 Jim Meyering <meyering@lucent.com>
61277 * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Use new
61278 AH_VERBATIM to insert required #ifndef into config.h.in.
61279 Suggestion from Akim Demaille.
61281 2000-04-12 Jim Meyering <meyering@lucent.com>
61283 * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Use AC_CHECK_HEADERS, not
61284 `AC_CHECK_HEADER' to check for locale.h. Thanks to a report from
61285 Christian Krackowizer.
61287 More code moved from ../configure.in into (jm_CHECK_ALL_TYPES).
61288 * m4/jm-macros.m4 (_GNU_SOURCE): Define.
61289 (AC_SYS_LARGEFILE): Require.
61290 (AM_C_PROTOTYPES): Require.
61292 2000-04-08 Jim Meyering <meyering@lucent.com>
61294 * lib/Makefile.am (charset.alias): Use t-$@, not $@-t so the DOS 8.3
61295 names don't conflict. Reported by Eli Zaretskii.
61297 2000-04-07 Jim Meyering <meyering@lucent.com>
61299 * lib/putenv.c: Move inclusion of errno.h so it follows that of
61300 sys/types.h, to work around system header problems on AIX 3.2.5.
61303 2000-04-07 Bruno Haible <haible@clisp.cons.org>
61305 * lib/unicodeio.c (print_unicode_char): Avoid triggering Solaris iconv
61306 bug. Deal with the different error behavior of Irix iconv.
61308 2000-04-05 Paul Eggert <eggert@twinsun.com>
61310 * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Don't use -n32 on
61311 IRIX if the installer said otherwise.
61313 2000-04-05 Jim Meyering <meyering@lucent.com>
61315 Portability tweaks required for ultrix4.3.
61316 * m4/check-decl.m4 [!HAVE_UTMPX_H] (headers): Include <utmp.h>.
61317 (jm_CHECK_DECLS): Add getutent to the list of functions.
61318 (_jm_DECL_HEADERS): Add utmpx.h.
61319 From John David Anglin.
61321 * m4/strftime.m4: Back out the 2000-04-02 change.
61322 Instead of that change, simply undefine putenv in the test program.
61324 2000-04-05 Jim Meyering <meyering@lucent.com>
61326 Portability tweaks required for ultrix4.3.
61327 * lib/readutmp.h [HAVE_UTMPX_H && !HAVE_DECL_GETUTENT]: Declare
61329 * lib/readutmp.c: Include sys/types.h before sys/stat.h.
61330 * lib/canon-host.c: Declare strdup.
61331 * lib/path-concat.c: Likewise.
61332 From John David Anglin.
61334 2000-04-04 Jim Meyering <meyering@lucent.com>
61336 Be more DOS 8.3-friendly.
61337 * lib/ref-add.sin: Renamed from ref-add.sed.in.
61338 * lib/ref-del.sin: Renamed from ref-del.sed.in.
61339 * lib/Makefile.am: Reflect renaming.
61340 Reported by Eli Zaretskii.
61342 Use a temporary file name that won't clash with `charset.alias'
61343 in the DOS 8.3 name space.
61344 * lib/Makefile.am (charset_tmp): Define.
61345 (install-exec-local): Use $(charset_tmp) instead of $(charset_alias)-t.
61346 (uninstall-local): Likewise.
61347 Reported by Eli Zaretskii.
61349 2000-04-03 Jim Meyering <meyering@lucent.com>
61351 * m4/gettext.m4: Fix typo in comment.
61353 * m4/codeset.m4 (AC_CHECK_HEADERS): Add langinfo.h (moved here from
61354 textutils/configure.in). Suggestion from Paul Eggert.
61355 (AC_CHECK_FUNCS): Add nl_langinfo. (also from textutils/configure.in)
61357 2000-04-02 Paul Eggert <eggert@twinsun.com>
61359 * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME): Set TZ environment
61360 variable in the shell rather than using putenv, which isn't
61361 portable. This avoids the configure-time inter-test dependency
61362 on the potentially-renamed putenv function.
61364 2000-03-30 Paul Eggert <eggert@twinsun.com>
61366 * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Include <sys/stat.h>
61367 before checking struct stat.st_blksize, so that
61368 HAVE_STRUCT_STAT_ST_BLKSIZE is defined correctly.
61370 2000-03-29 Paul Eggert <eggert@twinsun.com>
61372 * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Check for strftime,
61373 since strftime.c uses HAVE_STRFTIME to decide whether to use
61374 the underlying strftime.
61376 2000-03-29 Paul Eggert <eggert@twinsun.com>
61378 * lib/time/strftime.c (my_strftime): Make sure we call the system
61379 strftime, not ourselves, when invoking the underlying strftime.
61381 2000-03-24 Jim Meyering <meyering@lucent.com>
61383 * lib/Makefile.am (EXTRA_DIST): Add ref-add.sed.in and ref-del.sed.in.
61384 (charset_alias): Define.
61385 (install-exec-local): Factor out common code.
61386 (uninstall-local): Split lines longer than 80.
61387 (ref-add.sed, ref-del.sed): Remove rules... (do the following instead)
61388 (SUFFIXES): Define.
61389 (.sed.in.sed): New rule. Don't redirect directly to $@.
61390 (CLEANFILES): Add ref-add.sed and ref-del.sed.
61392 2000-03-19 Bruno Haible <haible@clisp.cons.org>
61394 * lib/config.charset: Output a line containing "Packages using this
61396 * lib/ref-add.sed.in, lib/ref-del.sed.in: New files.
61397 * lib/Makefile.am (install-exec-local, uninstall-local, ref-add.sed,
61398 ref-del.sed): New rules.
61400 2000-03-17 Jim Meyering <meyering@lucent.com>
61402 * lib/unicodeio.c (<string.h>): Include only #if HAVE_STRING_H.
61403 Otherwise, include <strings.h>
61405 2000-03-17 Bruno Haible <haible@clisp.cons.org>
61407 * lib/unicodeio.c (utf8_wctomb): New function.
61408 (print_unicode_char): Pass the Unicode character to iconv in UTF-8
61409 format instead of in UCS-4 with platform dependent endianness.
61411 2000-03-10 Jim Meyering <meyering@lucent.com>
61413 * m4/lib-check.m4: Look for getspnam in -lgen, too.
61414 From Marco Franzen.
61416 2000-03-07 Paul Eggert <eggert@twinsun.com>
61418 * lib/savedir.c (savedir): Work even if directory size is
61419 negative; this can happen with some screwy NFS configurations.
61421 2000-03-06 Jim Meyering <meyering@lucent.com>
61423 * lib/localcharset.c (get_charset_aliases): Don't try to free file_name
61424 if it's NULL (because we ran out of memory). From Bruno Haible.
61426 2000-03-05 Jim Meyering <meyering@lucent.com>
61428 * lib/localcharset.c ("path-concat.h"): Include.
61429 (get_charset_aliases): Use path_concat instead of ANSI string
61432 * lib/unicodeio.h (PARAMS): Define.
61433 Use it to guard prototype.
61435 2000-03-04 Jim Meyering <meyering@lucent.com>
61437 * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require AC_C_VOLATILE,
61438 for lib/localcharset.c.
61440 2000-03-04 Jim Meyering <meyering@lucent.com>
61442 * lib/Makefile.am (install-exec-local): Create $(libdir) before
61443 installing into it.
61444 (uninstall-local): Uncomment this rule so `make distcheck' works
61447 * lib/unicodeio.c (<errno.h>): Include it.
61448 (errno): Declare if not defined.
61450 * lib/localcharset.c: Add Bruno's comment justifying use of volatile.
61452 * lib/config.charset: New version, incorporating remarks from a linux
61453 i18n mailing list. From Bruno Haible.
61455 2000-03-04 Bruno Haible <haible@clisp.cons.org>
61457 * m4/codeset.m4: New file.
61458 * m4/iconv.m4: New file.
61459 * m4/jm-macros.m4 (jm_MACROS): Call jm_LANGINFO_CODESET and jm_ICONV.
61461 2000-03-03 Jim Meyering <meyering@lucent.com>
61463 * m4/regex.m4: Make sure re_compile_pattern accepts patterns like `{1'.
61465 2000-03-02 Jim Meyering <meyering@lucent.com>
61467 * m4/timespec.m4: Require AC_HEADER_TIME before the cache check so
61468 the messages come out on separate lines.
61470 * m4/jm-glibc-io.m4 (jm_FUNC_GLIBC_UNLOCKED_IO): Use AC_CHECK_DECLS,
61471 rather than jm_CHECK_DECLARATIONS.
61472 * m4/decl.m4: Remove now-unused file.
61474 * m4/check-decl.m4 (AC_CHECK_DECLS): Add getlogin, ttyname, and
61477 2000-03-02 Jim Meyering <meyering@lucent.com>
61479 * lib/Makefile.am (EXTRA_DIST): Add config.charset.
61481 2000-03-01 Jim Meyering <meyering@lucent.com>
61483 * lib/localcharset.c: Guard some #includes with `#if HAVE_...'.
61484 * lib/unicodeio.c: Likewise.
61486 2000-03-01 Bruno Haible <haible@clisp.cons.org>
61488 * lib/config.charset: New file.
61489 * lib/localcharset.c: New file.
61490 * lib/unicodeio.h, lib/unicodeio.c: New files.
61491 * lib/Makefile.am (DEFS): Add -DLIBDIR=...
61492 (libfetish_a_SOURCES): Add localcharset.c and unicodeio.c.
61493 (noinst_HEADERS): Add unicodeio.h.
61494 (all-local, install-exec-local, charset.alias): New targets.
61496 2000-02-28 Paul Eggert <eggert@twinsun.com>
61498 * lib/quotearg.c (ALERT_CHAR): New macro.
61499 (quotearg_buffer_restyled): Use it.
61501 2000-02-27 Jim Meyering <meyering@lucent.com>
61503 * m4/check-decl.m4: Add getenv to the list.
61505 2000-02-27 Jim Meyering <meyering@lucent.com>
61507 * lib/strtoumax.c: Fix typo in decl of strtoul: s/long long/long/.
61508 Guard declaration of strtoull also with `&& HAVE_UNSIGNED_LONG_LONG'.
61510 * lib/backupfile.c: Guard inclusion of stdlib.h with
61511 `#if HAVE_STDLIB_H', not `#if STDC_HEADERS'.
61512 Declare malloc if needed.
61514 * lib/backupfile.c: Use `#if !HAVE_DECL...' instead of
61515 `#ifndef HAVE_DECL..'
61516 now that autoconf always defines the HAVE_DECL_ symbols.
61517 * lib/human.c: Likewise.
61518 * lib/same.c: Likewise.
61519 * lib/strtoumax.c: Likewise.
61521 * lib/backupfile.c: Arrange for cpp to fail if the configure-time
61522 declaration check was not run.
61523 * lib/hash.c: Likewise.
61524 * lib/human.c: Likewise.
61525 * lib/same.c: Likewise.
61526 * lib/strtoumax.c: Likewise.
61528 * lib/userspec.c (parse_user_spec): If there is no `:' but there is a
61529 `.', then first look up the entire `.'-containing string as a login
61532 2000-02-23 Jim Meyering <meyering@lucent.com>
61534 * m4/check-decl.m4: Now that we have the new AC_CHECK_DECLS, use it
61535 in place of my hack.
61537 2000-02-18 Paul Eggert <eggert@twinsun.com>
61539 * lib/getdate.y: Handle two-digit years with leading zeros correctly.
61540 (textint): New typedef.
61541 (parser_control): Member year changed from int to textint.
61543 (YYSTYPE): Removed; replaced by %union with int and textint members.
61544 (tDAY, tDAY_UNIT, tDAYZONE, tHOUR_UNIT, tID, tLOCAL_ZONE, tMERIDIAN,
61545 tMINUTE_UNIT, tMONTH, tMONTH_UNIT tSEC_UNIT, tSNUMBER, tUNUMBER,
61546 tYEAR_UNIT, tZONE, o_merid): Now of type <intval>.
61547 (tSNUMBER, tUNUMBER): Now of type <textintval>.
61548 (date, number, to_year): Use width of number in digits, not its value,
61549 to determine whether it's a 2-digit year, or a 2-digit time.
61550 (yylex): Store number of digits of numeric tokens.
61551 Reported by John Kendall.
61553 (parser_control): Changed from struct parser_control to typedef (for
61554 consistency). All uses changed.
61556 (tID): Removed; not used.
61557 (yylex): Return '?' for unknown identifiers, rather than (unused) tID.
61559 2000-02-14 Paul Eggert <eggert@twinsun.com>
61561 * lib/getpagesize.h (getpagesize): Port to VMS for Alpha;
61562 adapted from changes to grep getpagesize.h by Martin P.J. Zinser.
61564 2000-02-12 Jim Meyering <meyering@lucent.com>
61566 * lib/userspec.c (ISDIGIT): Define it.
61567 (isdigit): Remove definition.
61568 (is_number): Use ISDIGIT, not isdigit.
61569 <libintl.h>: Include.
61570 (_ and N_): Define.
61571 (parse_user_spec): Mark translatable strings.
61573 2000-02-10 Jim Meyering <meyering@lucent.com>
61575 With these changes, nanosleep.[ch] are finally enough like the other
61576 lib/* replacement files to compile on a few more losing systems.
61578 * lib/nanosleep.h: Don't include config.h.
61579 Remove prototype from declaration of nanosleep.
61580 (PARAMS): Remove now-unneeded definition.
61581 * lib/nanosleep.c: #undef nanosleep.
61582 (rpl_nanosleep): Rename from nanosleep.
61584 2000-02-10 Jim Meyering <meyering@lucent.com>
61586 * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Rename replacement function from
61587 gnu_nanosleep to rpl_nanosleep.
61589 2000-02-09 Jim Meyering <meyering@lucent.com>
61591 * m4/lib-check.m4 (jm_LIB_CHECK): Fix typo: check for sp_pwdp in
61592 struct spwd, rather than in struct passwd. Reported by Gaël Quéri.
61594 2000-02-08 Akim Demaille <akim@epita.fr>
61596 * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Quote square brackets with
61597 `[' and `]' and remove uses of `changequote'.
61598 (AC_SYS_LARGEFILE_MACRO_VALUE): Likewise.
61599 (AC_SYS_LARGEFILE): Likewise.
61600 * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
61601 * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME): Remove now-unnecessary use
61603 * m4/regex.m4 (jm_INCLUDED_REGEX): Likewise.
61604 * m4/readdir.m4 (jm_FUNC_READDIR): Likewise
61605 * m4/memcmp.m4 (jm_AC_FUNC_MEMCMP): Likewise, and add `int' for main.
61606 * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Likewise.
61608 2000-02-05 Jim Meyering <meyering@lucent.com>
61610 * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require most macros.
61611 Remove explicit use of AC_HEADER_TIME. It is required by
61612 jm_CHECK_TYPE_STRUCT_TIMESPEC. Using AC_HEADER_TIME and
61613 `AC_REQUIRE'ing jm_CHECK_TYPE_STRUCT_TIMESPEC provoked a but
61614 in autoconf whereby the expansion of the latter ended up preceding
61615 the expansion of its prerequisite, AC_HEADER_TIME.
61616 Reported by Volker Borchert.
61618 2000-02-03 Jim Meyering <meyering@lucent.com>
61620 * m4/prereq.m4 (jm_PREREQ_READUTMP): Check for utmpxname.
61622 2000-02-03 Jim Meyering <meyering@lucent.com>
61624 * lib/readutmp.c (read_utmp): Guard with `#ifdef UTMP_NAME_FUNCTION',
61625 rather than with `#if HAVE_UTMPNAME'.
61627 2000-02-02 Jim Meyering <meyering@lucent.com>
61629 * m4/prereq.m4 (jm_PREREQ_ADDEXT): Fix typo that resulted in no
61630 definition of HAVE_PATHCONF: s/AC_CHECK_FUNC/AC_CHECK_FUNCS/.
61631 Reported by Eli Zaretskii.
61633 2000-02-01 Jim Meyering <meyering@lucent.com>
61635 * lib/readutmp.h (UT_USER): Add parens. From Andreas Schwab.
61637 2000-01-31 Jim Meyering <meyering@lucent.com>
61639 * m4/check-decl.m4 (jm_CHECK_DECLS): Add nanosleep to the list of
61640 functions. Add the time.h and sys/time.h headers along with the
61641 AC_REQUIRE'ment of AC_HEADER_TIME.
61643 2000-01-31 Jim Meyering <meyering@lucent.com>
61645 * lib/nanosleep.h (nanosleep): Guard declaration with
61646 `#if ! HAVE_DECL_NANOSLEEP'.
61647 Without this, OFS gets a redeclaration error for rpl_nanosleep, due to
61648 the declaration in that vendor's sys/timers.h.
61649 Reported by Christian Krackowizer.
61651 * lib/quotearg.c (ISASCII): Add #undef and move definition to follow
61652 inclusion of wctype.h to work around Solaris 2.6 namespace pollution.
61653 (ISPRINT): Likewise.
61654 Reported by Tom Tromey.
61656 2000-01-30 Jim Meyering <meyering@lucent.com>
61658 * m4/lib-check.m4: Clean up some kludgy old shadow password tests.
61660 * m4/prereq.m4 (utmp_includes): Define.
61661 Check for ut_user and ut_name members in both struct utmpx
61664 2000-01-30 Jim Meyering <meyering@lucent.com>
61666 * lib/readutmp.c (extract_trimmed_name): Use UT_USER instead of
61667 hard-coding uses of ->ut_name. The latter doesn't work with new Linux
61668 header files where only utmpx.ut_user is declared.
61670 * lib/readutmp.h (UT_USER): Define.
61672 2000-01-29 Jim Meyering <meyering@lucent.com>
61674 * m4/lib-check.m4: New file containing library-related checks from
61675 fileutils and sh-utils (textutils had none).
61677 2000-01-28 Jim Meyering <meyering@lucent.com>
61679 * m4/perl.m4: Change format of warning message to look more like that
61680 from the missing script. Suggestion from François Pinard.
61682 2000-01-25 Jim Meyering <meyering@lucent.com>
61684 * m4/timespec.m4: Require AC_HEADER_TIME, and include sys/time.h as
61685 well as time.h in the compile check.
61686 * m4/nanosleep.m4: Require AC_HEADER_TIME rather than simply using it.
61687 Fix typo in cross-compiling case: s/yes/no/.
61689 2000-01-23 Jim Meyering <meyering@lucent.com>
61691 * m4/jm-macros.m4: Move df-related tests here from
61692 fileutils/configure.in
61694 * m4/ls-mntd-fs.m4: s/list_mounted_fs/ac_list_mounted_fs/
61695 (jm_LIST_MOUNTED_FILESYSTEMS): Take two parameters.
61697 * m4/fsusage.m4: New file. Extracted from fileutils/configure.in.
61698 s/space/ac_fsusage_space/.
61699 (jm_FILE_SYSTEM_USAGE): Take two parameters.
61701 * m4/ftruncate.m4: New file (derived from part of
61702 fileutils/configure.in).
61703 * m4/jm-macros.m4 (jm_FUNC_FTRUNCATE): AC_REQUIRE it.
61704 (jm_CHECK_ALL_TYPES): Require AC_HEADER_MAJOR and AC_HEADER_DIRENT.
61706 * m4/jm-macros.m4 (OPTIONAL_BIN_PROGS, OPTIONAL_BIN_ZCRIPTS, MAN):
61707 AC_SUBST these here, rather than just in sh-util/configure.in, so
61708 that the now-shared-by-fileutils-and-textutils lib/Makefile.am are
61710 (AM_FUNC_OBSTACK): Add (from fileutils/configure.in).
61711 (AC_CHECK_FUNCS): Merge all checks from fileutils, textutils, sh-utils.
61712 (AM_FUNC_STRTOD): Added (from textutils', sh-utils' configure.in).
61713 (AC_SUBST(POW_LIBM)): Likewise.
61714 (AC_SUBST(DF_PROG)): Moved from fileutils/configure.in.
61716 2000-01-23 Jim Meyering <meyering@lucent.com>
61718 * lib/Makefile.am (libfetish_a_SOURCES): Remove explicit mention of
61721 2000-01-22 Jim Meyering <meyering@lucent.com>
61723 * m4/jm-macros.m4: Call AC_PROG_CC_STDC just before AC_C_CONST.
61725 * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Add wctype.h.
61727 * m4/jm-macros.m4 (AC_CHECK_HEADERS): Add checks from fileutils'
61729 (AC_CHECK_HEADERS): Likewise for sh-utils.
61730 (AC_CHECK_HEADERS): Likewise for textutils.
61731 Merge the three lists of headers.
61733 * m4/prereq.m4 (jm_PREREQ_ADDEXT): New macro. Parts moved here
61734 from fileutils' configure.in.
61736 * m4/decl.m4: Remove kludgy `test -z $ac_...AC_CHECK_HEADERS(...)'
61737 code. Moved tests into their own function (_jm_DECL_HEADERS) in
61740 * m4/check-decl.m4: Use #if rather than #ifdef.
61741 Add HAVE_DECL_STRTOUL and HAVE_DECL_STRTOULL.
61742 (jm_CHECK_DECLARATIONS): Add strtoul strtoull.
61743 (_jm_DECL_HEADERS): Define new function.
61744 (jm_CHECK_DECLARATIONS): Require it.
61746 2000-01-22 Jim Meyering <meyering@lucent.com>
61748 * lib/strtoumax.c: [! HAVE_DECL_STRTOUL]: Declare strtoul.
61749 [! HAVE_DECL_STRTOULL]: Declare strtoull.
61750 Required for some AIX systems. Reported by Christian Krackowizer.
61751 [TESTING] (main): New function.
61753 1997-10-17 Eli Zaretskii <eliz@is.elta.co.il>
61754 * lib/dirname.c (dir_name): Support for DOS-style file names with drive
61757 * lib/quotearg.c [HAVE_WCTYPE_H]: Include <wctype.h> for decl of
61760 * lib/strverscmp.c (ISDIGIT): Define.
61761 (strverscmp): Use ISDIGIT, not isdigit.
61763 2000-01-19 Jim Meyering <meyering@lucent.com>
61765 * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Include <sys/time.h>, too.
61766 Use AC_HEADER_TIME. Volker Borchert reported that OpenBSD-2.3/sparc
61767 defines `struct timespec' in <sys/time.h>
61769 * m4/c-bs-a.m4: Remove uses of changequote altogether.
61770 Thanks to Akim for explaining.
61772 2000-01-17 Paul Eggert <eggert@twinsun.com>
61774 * lib/nanosleep.c (nanosleep):
61775 Don't use SA_INTERRUPT to decide whether to call sigaction, as
61776 POSIX.1 doesn't require SA_INTERRUPT and some systems
61777 (e.g. Solaris 7) don't define it. Use SA_NOCLDSTOP instead;
61778 it's been part of POSIX.1 since day 1 (in 1988).
61780 2000-01-17 Jim Meyering <meyering@lucent.com>
61782 * lib/interlock: Remove unused file. Reported by François Pinard.
61784 2000-01-16 Paul Eggert <eggert@twinsun.com>
61786 * lib/quotearg.c (quotearg_buffer_restyled): Do not quote
61787 alert, backslash, formfeed, and vertical tab unnecessarily in
61788 shell quoting style.
61790 2000-01-16 Jim Meyering <meyering@lucent.com>
61792 * m4/jm-macros.m4: Require jm_FUNC_GROUP_MEMBER, jm_FUNC_PUTENV,
61793 AM_FUNC_ERROR_AT_LINE, jm_FUNC_GNU_STRFTIME, jm_FUNC_MKTIME,
61794 jm_FUNC_GETGROUPS AC_FUNC_VPRINTF, AC_FUNC_ALLOCA,
61795 AM_FUNC_GETLOADAVG, and jm_SYS_PROC_UPTIME.
61797 2000-01-16 Jim Meyering <meyering@lucent.com>
61799 * m4/c-bs-a.m4: Use `changequote(<<,>>)', rather than `changequote(, )'
61800 because the latter didn't work.
61802 2000-01-15 Jim Meyering <meyering@lucent.com>
61804 * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add gethostname and getusershell.
61805 (AC_REPLACE_FUNCS): Add memcpy and memset.
61806 Add these, too: stime strcspn stpcpy strstr strtol strtoul.
61808 Add these: euidaccess memcmp mkdir rmdir rpmatch strndup strverscmp.
61810 2000-01-12 Jim Meyering <meyering@lucent.com>
61812 * m4/prereq.m4 (jm_PREREQ_CANON_HOST): New macro.
61813 (jm_PREREQ): Use it.
61814 (jm_PREREQ_READUTMP): New macro.
61815 (jm_PREREQ): Use it.
61817 2000-01-11 Paul Eggert <eggert@twinsun.com>
61819 Quote multibyte characters correctly.
61820 * m4/c-bs-a.m4: New file.
61821 * m4/prereq.m4 (jm_PREREQ_QUOTEARG): New macro.
61822 (jm_PREREQ): Use it.
61824 2000-01-11 Paul Eggert <eggert@twinsun.com>
61826 * m4/uintmax_t.m4: Port to autoconf 2.13.
61828 2000-01-08 Jim Meyering <meyering@ascend.com>
61830 * m4/strerror_r.m4 (jm_FUNC_STRERROR_R): New file/macro.
61831 * m4/jm-macros.m4 (jm_FUNC_STRERROR_R): Require it.
61833 2000-01-04 Jim Meyering <meyering@ascend.com>
61835 * m4/d-type.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Rename from
61836 jm_STRUCT_DIRENT_D_TYPE.
61837 * m4/d-ino.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_INO): Rename from
61838 jm_STRUCT_DIRENT_D_INO.
61839 * m4/utimbuf.m4 (jm_CHECK_TYPE_STRUCT_UTIMBUF): Rename from
61841 * m4/jm-macros.m4: Reflect s/jm_STRUCT_/jm_CHECK_TYPE_STRUCT_/
61843 * m4/utime.m4: Likewise.
61845 * m4/timespec.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC): New file, macro.
61846 * m4/jm-macros.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC): Require it.
61848 2000-01-03 Paul Eggert <eggert@twinsun.com>
61850 * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Search for nanosleep in -lrt
61851 (for Solaris 7) and in -lposix4 (for Solaris 2.5.1).
61853 2000-01-02 Jim Meyering <meyering@ascend.com>
61855 * m4/search-libs.m4: Escape `$' in $3 of dnl comment. I no longer
61856 remember if this is necessary.
61858 1999-12-26 Jim Meyering <meyering@ascend.com>
61860 * m4/jm-macros.m4: Use it here.
61861 * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): New file/macro.
61863 1999-12-23 Jim Meyering <meyering@ascend.com>
61865 * m4/jm-macros.m4: Check for clock_gettime (moved from
61866 fileutils/configure.in)
61867 Check for gettimeofday.
61869 1999-12-20 Jim Meyering <meyering@ascend.com>
61871 * m4/strftime.m4: Remove kludge, now that I'm using the fixed
61872 autoconf-2.14a-1999-12-20.
61874 1999-12-19 Jim Meyering <meyering@ascend.com>
61876 * m4/lstat-slash.m4: New file.
61877 * m4/jm-macros.m4: Use the new macro:
61878 jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
61880 1999-12-07 Jim Meyering <meyering@ascend.com>
61882 * m4/perl.m4: Require that File::Compare be available, too.
61883 Too many systems seem to lack it.
61885 * m4/strftime.m4: Add checks for most of the cpp macros tested in
61886 GNU's strftime.c. Prompted by a patch from Paul Eggert.
61888 1999-11-18 Paul Eggert <eggert@twinsun.com>
61890 * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Work around a
61891 problem with the QNX 4.25 shell, which doesn't propagate exit
61892 status of failed commands inside shell assignments.
61894 1999-11-17 Jim Meyering <meyering@ascend.com>
61896 * m4/gettext.m4: Use new AC_CONFIG_LINKS in place of AC_LINK_FILES.
61898 1999-11-07 Jim Meyering <meyering@ascend.com>
61900 * m4/getloadavg.m4: Add `, 1, [FIXME]' to each use of AC_DEFINE.
61902 1999-11-06 Jim Meyering <meyering@ascend.com>
61904 * m4/link-follow.m4 (jm_AC_FUNC_LINK_FOLLOWS_SYMLINK): New file/macro.
61905 * m4/jm-macros.m4 (jm_MACROS): Use it here.
61907 1999-11-05 Jim Meyering <meyering@ascend.com>
61909 * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Move some tests from
61910 configure.in of textutils, fileutils, and sh-utils into this one
61911 (shared between those packages) file.
61912 Use `AC_CHECK_MEMBERS((struct stat.st_blksize))' instead of deprecated
61913 AC_STRUCT_ST_BLKSIZE.
61915 1999-11-03 Jim Meyering <meyering@ascend.com>
61917 * m4/ssize_t.m4: Remove file. No longer needed since the new version
61918 of AC_CHECK_TYPE checks includes unistd.h.
61919 * m4/jm-macros.m4: Use straight `AC_CHECK_TYPE(ssize_t, int)'.
61920 Suggestion from Akim Demaille.
61922 1999-10-30 Jim Meyering <meyering@ascend.com>
61924 * m4/uintmax_t.m4: Require 2.14a. Remove backslash before backtick in
61926 * m4/ls-mntd-fs.m4: Likewise.
61927 * m4/jm-macros.m4: Likewise. Also, use AC_TYPE_SSIZE_T instead
61928 * m4/jm-winsz1.m4: Likewise.
61930 * m4/const.m4: Remove file, since the fix made it into the experimental
61931 version of autoconf.
61932 * m4/mktime.m4: Likewise.
61934 * m4/check-type.m4: Remove file, now that the latest version of
61935 AC_CHECK_TYPE takes a third arg to specify additional #includes.
61937 * m4/ssize_t.m4: New file, requires experimental version of autoconf.
61938 * m4/jm-macros.m4: Use new AC_TYPE_SSIZE_T instead of my hacked
61941 1999-10-04 Jim Meyering <meyering@ascend.com>
61943 * m4/jm-macros.m4: Don't require autoconf-2.14.1.
61945 1999-09-22 Paul Eggert <eggert@twinsun.com>
61947 * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Work around GCC
61948 2.95.1 bug with HP-UX 10.20.
61950 1999-09-17 Jim Meyering <meyering@ascend.com>
61952 * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add strdup.
61953 Paul Nevai reported a link failure on a NeXT CUBE with NeXTSTEP 3.3
61954 due to missing strdup (against sh-utils-2.0).
61956 1999-08-29 Jim Meyering <meyering@ascend.com>
61958 * m4/jm-macros.m4: Require jm_BISON.
61959 * m4/bison.m4: New file.
61961 1999-08-17 Paul Eggert <eggert@twinsun.com>
61963 * m4/largefile.m4 (AC_SYS_LARGEFILE): Fix typo: missing comma
61964 in value for _FILE_OFFSET_BITS, which broke ports to HP-UX 10.20.
61966 1999-08-05 Jim Meyering <meyering@ascend.com>
61968 * m4/getline.m4: Rename test file from conftestdata to conftest.data
61969 to avoid conflicts with `conftest' on 8+3 filesystems.
61970 Suggestion from Eli Zaretskii.
61972 1999-08-04 Jim Meyering <meyering@ascend.com>
61974 * m4/jm-macros.m4: Move a 4-line block of code from the configure.in of
61975 fileutils and sh-utils (textutils's getline test was inadequate).
61976 (AM_FUNC_GETLINE): Run this test.
61977 (AC_CHECK_FUNCS): Check for getdelim.
61978 Reported by Bob Proulx.
61980 1999-08-02 Jim Meyering <meyering@ascend.com>
61982 * m4/jm-macros.m4: Add a comment.
61984 1999-08-01 Paul Eggert <eggert@twinsun.com>
61986 * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Check whether
61987 <inttypes.h> defines strtoumax as a macro (and not as a
61990 1999-08-01 Paul Eggert <eggert@twinsun.com>
61992 * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Make sure
61993 that we can shift, multiply and divide unsigned long long
61994 values; Ultrix cc can't do it.
61996 1999-08-01 Paul Eggert <eggert@twinsun.com>
61998 * m4/mktime.m4: New file, which is a preview of what should appear
61999 in the next public autoconf release.
62001 1999-08-01 Paul Eggert <eggert@twinsun.com>
62003 * m4/lfs.m4: Remove this file.
62004 * m4/largefile.m4: New file. It contains the old contents of
62005 lfs.m4, except that all names with prefix AC_LFS have been
62006 changed to use the prefix AC_SYS_LARGEFILE instead, to be
62007 compatible with future autoconf versions. Also, some minor m4
62008 quoting problems have been fixed.
62010 1999-08-01 Paul Eggert <eggert@twinsun.com>
62012 * m4/gettext.m4 (AM_WITH_NLS): Remove unnecessary lines.
62013 Fix typo: $nls_cv_header_intl was misspelled as $nsl_cv_header_intl.
62014 (AM_GNU_GETTEXT): Fix problem with brackets and m4 quoting,
62015 and simplify the shell code.
62017 1999-08-01 Jim Meyering <meyering@ascend.com>
62019 * m4/mktime.m4 (AC_FUNC_MKTIME): Undefine to avoid syntax errors from
62022 1999-07-20 Jim Meyering <meyering@ascend.com>
62024 * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memmove.
62026 1999-07-15 Jim Meyering <meyering@ascend.com>
62028 * m4/jm-macros.m4 (AC_CHECK_FUNCS): Check for getpagesize.
62030 1999-05-22 Jim Meyering <meyering@ascend.com>
62032 * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memchr.
62034 1999-05-20 Jim Meyering <meyering@ascend.com>
62036 * m4/search-libs.m4 [AC_SEARCH_LIBS]: Quote name in undefine.
62037 Add a colon after each `then' in case $4 is empty.
62039 1999-05-16 Jim Meyering <meyering@ascend.com>
62041 * m4/search-libs.m4: New file to override autoconf's AC_SEARCH_LIBS.
62043 1999-05-10 Jim Meyering <meyering@ascend.com>
62045 * m4/jm-mktime.m4: Reflect renaming: AM_FUNC_MKTIME -> AC_FUNC_MKTIME.
62047 * m4/jm-macros.m4: Require 2.14.1, since we use newly-renamed
62050 1999-05-10 Andreas Schwab <schwab@issan.cs.uni-dortmund.de>
62052 * m4/jm-mktime.m4, putenv.m4: Fix typos in config.h comments.
62054 1999-05-04 Paul Eggert <eggert@twinsun.com>
62056 * m4/lfs.m4 (AC_LFS): -n32, -o32, and -n64 should be in CFLAGS,
62057 not CPPFLAGS, so that linking works correctly in IRIX.
62059 1999-04-30 Paul Eggert <eggert@twinsun.com>
62061 * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add dup2.
62063 1999-04-20 Paul Eggert <eggert@twinsun.com>
62065 * m4/uintmax_t.m4 (jm_AC_TYPE_UINTMAX_T): Move unsigned long
62066 long check into new jm_AC_TYPE_UNSIGNED_LONG_LONG macro.
62067 * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require
62068 jm_AC_TYPE_UNSIGNED_LONG_LONG.
62069 * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): New file/macro.
62071 * m4/lfs.m4: Port to AIX and HP-UX. Support cross-compilation.
62073 1999-04-20 Jim Meyering <meyering@ascend.com>
62075 * m4/xstrtoumax.m4: Require jm_AC_TYPE_UNSIGNED_LONG_LONG.
62076 AC_REPLACE xstroull if necessary. From Paul Eggert.
62077 (AC_CHECK_FUNCS): Remove strtoull, strtoumax, strtouq.
62079 1999-04-18 Jim Meyering <meyering@ascend.com>
62081 * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): New file/macro.
62082 * m4/jm-macros.m4: Use it.
62084 1999-04-06 Jim Meyering <meyering@ascend.com>
62086 * m4/strftime.m4: Remove test for %f.
62088 1999-03-29 Jim Meyering <meyering@ascend.com>
62090 * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): New macro, contains the
62091 superset of the AC_TYPE_* checks in the textutils, fileutils,
62092 and sh-utils, plus AC_TYPE_PID_T. Paul Eggert suggested adding
62095 1999-03-28 Jim Meyering <meyering@ascend.com>
62097 * m4/jm-macros.m4: Define GNU_PACKAGE here.
62098 Be sure to AC_SUBST it, once again, so that @GNU_PACKAGE@ is
62099 replaced e.g., in the *.sh files of the sh-utils.
62101 1999-03-20 Jim Meyering <meyering@ascend.com>
62103 * m4/jm-macros.m4: s/jm_WITH_REGEX/jm_INCLUDED_REGEX/.
62104 * m4/regex.m4 (jm_INCLUDED_REGEX): Rename from jm_WITH_REGEX.
62105 Don't depend on AM_GLIBC. Suggestions from Alain Magloire.
62107 1999-03-19 Jim Meyering <meyering@ascend.com>
62109 * m4/jm-winsz1.m4 (jm_WINSIZE_IN_PTEM): New macro.
62111 1999-03-12 Jim Meyering <meyering@ascend.com>
62113 * m4/jm-macros.m4: Use AC_FUNC_SETVBUF_REVERSED.
62115 1999-03-07 Jim Meyering <meyering@ascend.com>
62117 * m4/jm-glibc-io.m4: Use only those *_unlocked macros that are
62120 1999-02-17 Jim Meyering <meyering@ascend.com>
62122 * m4/gettext.m4 (AM_GNU_GETTEXT): Do `changequote' around use of
62123 brackets in macro definition. From Eli Zaretskii and Alain Magloire.
62125 1999-02-07 Jim Meyering <meyering@ascend.com>
62127 * m4/group-member.m4: New file -- extracted from sh-utils'
62130 1999-02-05 Eli Zaretskii <eliz@is.elta.co.il>
62131 * m4/gettext.m4: Support DOS-style d:/foo/bar absolute file names.
62133 1999-02-06 Jim Meyering <meyering@ascend.com>
62135 * m4/chown.m4: Use `AC_SUBST(LIBOBJS)' since we set LIBOBJS.
62136 * m4/fnmatch.m4: Likewise.
62137 * m4/getgroups.m4: Likewise.
62138 * m4/lstat.m4: Likewise.
62139 * m4/malloc.m4: Likewise.
62140 * m4/putenv.m4: Likewise.
62141 * m4/realloc.m4: Likewise.
62142 * m4/regex.m4: Likewise.
62143 * m4/stat.m4: Likewise.
62144 * m4/strftime.m4: Likewise.
62145 Suggestion from Alain Magloire.
62147 * m4/chown.m4: Use `.$ac_objext', not `.o'.
62148 * m4/fnmatch.m4: Likewise.
62149 * m4/getgroups.m4: Likewise.
62150 * m4/getline.m4: Likewise.
62151 * m4/lstat.m4: Likewise.
62152 * m4/malloc.m4: Likewise.
62153 * m4/memcmp.m4: Likewise.
62154 * m4/putenv.m4: Likewise.
62155 * m4/realloc.m4: Likewise.
62156 * m4/regex.m4: Likewise.
62157 * m4/stat.m4: Likewise.
62158 * m4/strftime.m4: Likewise.
62159 Suggestion from Alain Magloire.
62161 * m4/jm-macros.m4: Actually invoke jm_WITH_REGEX now that it requires
62164 * m4/regex.m4: Add a run-time Test for proper operation of
62165 re_compile_pattern.
62167 1999-01-31 Jim Meyering <meyering@ascend.com>
62169 * m4/getloadavg.m4: Check for locale.h and the function, setlocale.
62171 1999-01-30 Jim Meyering <meyering@ascend.com>
62173 * m4/check-type.m4: Use 3-arg form of AC_DEFINE.
62175 * m4/jm-mktime.m4: Make this a wrapper around the official
62176 AM_FUNC_MKTIME rather than my private copy, now that the official one
62178 * m4/mktime.m4: Remove file.
62180 * m4/getloadavg.m4: Use 3-arg form of AC_DEFINE.
62181 * m4/uptime.m4: Likewise.
62182 * m4/uintmax_t.m4: Likewise.
62184 1999-01-28 Jim Meyering <meyering@ascend.com>
62186 * m4/jm-macros.m4: Use jm_AFS.
62187 * m4/afs.m4: New file (from fileutils' configure.in).
62189 * m4/assert.m4: Use the 3-argument forms of AC_DEFINE* macros.
62190 * m4/chown.m4: Likewise.
62191 * m4/d-ino.m4: Likewise.
62192 * m4/d-type.m4: Likewise.
62193 * m4/fnmatch.m4: Likewise.
62194 * m4/getgroups.m4: Likewise.
62195 * m4/gettext.m4: Likewise.
62196 * m4/jm-mktime.m4: Likewise.
62197 * m4/jm-winsz2.m4: Likewise.
62198 * m4/lcmessage.m4: Likewise.
62199 * m4/ls-mntd-fs.m4: Likewise.
62200 * m4/malloc.m4: Likewise.
62201 * m4/memcmp.m4: Likewise.
62202 * m4/putenv.m4: Likewise.
62203 * m4/realloc.m4: Likewise.
62204 * m4/st_mtim.m4: Likewise.
62205 * m4/strftime.m4: Likewise.
62207 1999-01-16 Jim Meyering <meyering@ascend.com>
62209 * m4/jm-macros.m4 (ARGMATCH_DIE): Define.
62210 (ARGMATCH_DIE_DECL): Define.
62212 1999-01-12 Jim Meyering <meyering@ascend.com>
62214 * m4/Makefile.am.in: Rewrite to avoid using fmt.
62215 Reported by Lars Hecking.
62217 1999-01-10 Jim Meyering <meyering@ascend.com>
62219 * m4/fstypename.m4: Use the new 3-arg form of AC_DEFINE instead of my
62221 * m4/inttypes_h.m4: Likewise.
62222 * m4/lstat.m4: Likewise.
62223 * m4/malloc.m4: Likewise.
62224 * m4/readdir.m4: Likewise.
62225 * m4/realloc.m4: Likewise.
62226 * m4/st_dm_mode.m4: Likewise.
62227 * m4/stat.m4: Likewise.
62228 * m4/utimbuf.m4: Likewise.
62229 * m4/utimes.m4: Likewise.
62231 * m4/check-decl.m4: Use the new 3-arg form of AC_DEFINE instead of the
62232 AC_CHECK_FUNCS hack. Now, it's still a hack, but at least the
62233 comments in config.h.in are meaningful.
62235 * m4/jm-macros.m4: Require autoconf-2.13 here.
62237 * m4/regex.m4: By default, don't use the included regex.c on systems
62238 with glibc 2. Suggestion from Uli Drepper.
62240 1999-01-02 Jim Meyering <meyering@ascend.com>
62242 * m4/jm-macros.m4: Replace strcasecmp and strncasecmp.
62244 1998-12-18 Jim Meyering <meyering@ascend.com>
62246 * m4/Makefile.am.in (Makefile.am): Simplify rule.
62247 Based on a suggestion from Lars Hecking.
62249 1998-11-16 Paul Eggert <eggert@twinsun.com>
62251 * m4/lfs.m4 (AC_LFS): Add support for HP-UX 10.20 and HP-UX 11.
62253 1998-11-16 Jim Meyering <meyering@ascend.com>
62255 * m4/lfs.m4: Double-quote the `uname...` expression.
62257 1998-11-14 Jim Meyering <meyering@ascend.com>
62259 * m4/lstat.m4: Correct comment. POSIX does not permit it to succeed.
62260 * m4/stat.m4: Likewise.
62262 1998-11-03 Jim Meyering <meyering@ascend.com>
62264 * m4/stat.m4: Rewrite to set HAVE_STAT_EMPTY_STRING_BUG.
62265 * m4/lstat.m4: Rewrite to set HAVE_LSTAT_EMPTY_STRING_BUG.
62267 1998-10-18 Jim Meyering <meyering@ascend.com>
62269 * m4/check-decl.m4 (jm_CHECK_DECL_LOCALTIME_R): Remove macro.
62271 1998-10-17 Jim Meyering <meyering@ascend.com>
62273 * m4/decl.m4 (jm_CHECK_DECLARATION): Don't hard-code which headers to
62274 include, though we still hard-code the `require'-like AC_CHECK_HEADERS
62275 calls for those previously hard-coded headers. Instead, take a new
62277 (jm_CHECK_DECLARATIONS): Reflect interface change.
62278 * m4/check-decl.m4 (jm_CHECK_DECLS): Likewise.
62279 (jm_CHECK_DECL_LOCALTIME_R): New macro.
62281 * m4/mktime.m4: Test for spring-forward gap before long-running test.
62283 1998-10-14 Jim Meyering <meyering@ascend.com>
62285 * m4/mktime.m4: Use the more portable "TZ=PST8PDT,M4.1.0,M10.5.0"
62286 instead of "TZ=America/Vancouver". From Paul Eggert.
62288 1998-10-11 Jim Meyering <meyering@ascend.com>
62290 * m4/mktime.m4 (jm_AM_FUNC_MKTIME): New file and macro.
62291 This adds a test for a recently added compatibility fix for mktime.c.
62292 * m4/jm-mktime.m4: Require jm_AM_FUNC_MKTIME, not AM_FUNC_MKTIME.
62294 1998-09-27 Jim Meyering <meyering@ascend.com>
62296 * m4/jm-macros.m4 (jm_MACROS): Require jm_FUNC_FNMATCH.
62298 * m4/fnmatch.m4 (jm_FUNC_FNMATCH): New file/macro. Extracted from
62299 ../configure.in, including a change from Gordon Matzigkeit to allow
62300 cross-compiling for the Hurd.
62302 * m4/glibc.m4: New file/macro to test for the GNU C Library
62303 versions 1 and 2. From Gordon Matzigkeit.
62306 1998-09-21 Jim Meyering <meyering@ascend.com>
62308 * m4/chown.m4: Declare locals: before, after. From Andries Brouwer.
62310 1998-08-18 Paul Eggert <eggert@twinsun.com>
62312 Port nanosecond-resolution times to UnixWare 2.1.2 and
62313 pedantic Solaris 2.6.
62315 * m4/st_mtim.m4 (AC_STRUCT_ST_MTIM_NSEC): Renamed from
62317 * m4/st_mtim.m4 (AC_STRUCT_ST_MTIM_NSEC):
62318 Generate name of ns member, instead of just 1 or undef.
62319 Allow for UnixWare 2.1.2 and Solaris 2.6 if in pedantic mode.
62321 1998-08-15 Jim Meyering <meyering@ascend.com>
62323 * m4/ssize_t.m4 (jm_TYPE_SSIZE_T): Remove file.
62324 * m4/check-type.m4: New file. Replacement for AC_CHECK_TYPE.
62325 * m4/jm-macros.m4: Use the new AC_CHECK_TYPE(ssize_t, int)
62326 instead of jm_TYPE_SSIZE_T.
62328 1998-08-12 Jim Meyering <meyering@ascend.com>
62330 * m4/st_dm_mode.m4: New file. From Johan Danielsson.
62332 1998-08-02 Jim Meyering <meyering@ascend.com>
62334 * m4/st_mtim.m4: Use hack to avoid having to put #undef HAVE_ST_MTIM
62335 in acconfig.h manually.
62337 1998-07-31 Paul Eggert <eggert@twinsun.com>
62339 * m4/st_mtim.m4: New file.
62341 1998-07-28 Jim Meyering <meyering@ascend.com>
62343 * m4/utimes.m4: Undef stat.
62345 1998-07-25 Jim Meyering <meyering@ascend.com>
62347 * m4/utime.m4 (jm_FUNC_UTIME): New file and macro.
62348 * m4/utimes.m4 (jm_FUNC_UTIMES_NULL): New file and macro.
62350 1998-07-09 Manfred Hollstein <manfred@s-direktnet.de>
62352 * m4/chown.m4 (jm_FUNC_CHOWN): Add a check to verify that the
62353 uid and gid actually remain unchanged.
62355 1998-07-07 Jim Meyering <meyering@ascend.com>
62357 * m4/jm-glibc-io.m4: Remove fclose_unlocked.
62359 1998-07-04 Jim Meyering <meyering@ascend.com>
62361 * m4/regex.m4: Use syscmd, ifelse, and sysval. Mainly as an exercise
62362 to prove that this macro can be used in packages without regex.c.
62364 1998-07-04 Andreas Schwab <schwab@issan.informatik.uni-dortmund.de>
62366 * m4/gettext.m4 (AM_WITH_NLS): Remove intl/libintl.h if <libintl.h>
62369 1998-07-03 Jim Meyering <meyering@ascend.com>
62371 * m4/gettext.m4: Add -lintl if it's found to be necessary.
62373 * m4/gettext.m4: New file -- from gettext-0.10.35.
62374 * m4/lcmessage.m4: Likewise.
62375 * m4/progtest.m4: Likewise.
62377 * m4/regex.m4 (jm_WITH_REGEX): New file and macro.
62378 * m4/jm-macros.m4: Require the new macro.
62380 1998-06-29 Jim Meyering <meyering@ascend.com>
62382 * m4/fstypename.m4: Include sys/param.h. NetBSD 1.3.1 requires this
62383 for the definition of NGROUPS (used in a system header included
62386 1998-06-28 Jim Meyering <meyering@ascend.com>
62388 * m4/ls-mntd-fs.m4: New file.
62389 * m4/fstypename.m4: New file.
62391 * m4/jm-macros.m4: Require the new macro.
62392 * m4/jm-glibc-io.m4: New file.
62394 1998-05-19 Jim Meyering <meyering@ascend.com>
62396 * m4/jm-macros.m4: Add jm_FUNC_LCHOWN.
62397 * m4/lchown.m4: New file.
62399 * m4/Makefile.am.in: New file.
62400 * m4/Makefile.am (Makefile.am): Depend on Makefile.am.in.
62402 1998-05-14 Jim Meyering <meyering@ascend.com>
62404 * m4/Makefile.am (EXTRA_DIST): Add them.
62405 * m4/jm-macros.m4: New file.
62406 * m4/utimbuf.m4: New file.
62408 1998-05-12 Jim Meyering <meyering@ascend.com>
62410 * m4/Makefile.am (EXTRA_DIST): Add isc-posix.m4.
62412 1998-05-11 Jim Meyering <meyering@ascend.com>
62414 * m4/isc-posix.m4: New file.
62416 1998-05-10 Jim Meyering <meyering@ascend.com>
62418 * m4/jm-mktime.m4: Use AM_FUNC_MKTIME, now that it's up to date.
62420 1998-05-09 Jim Meyering <meyering@ascend.com>
62422 * m4/Makefile.am (EXTRA_DIST): Add ssize_t.m4.
62423 (EXTRA_DIST): Remove mktime.m4, now that the new version is included
62426 * m4/ssize_t.m4: New file.
62427 * m4/mktime.m4: Remove file -- the new automake has this now.
62429 1998-04-26 Jim Meyering <meyering@ascend.com>
62431 * m4/assert.m4: New file.
62432 * m4/Makefile.am (EXTRA_DIST): Add assert.m4.
62434 1998-04-05 Jim Meyering <meyering@ascend.com>
62436 * m4/prereq.m4 (jm_PREREQ_REGEX): New macro.
62437 (jm_PREREQ): Use it here.
62439 1998-03-23 Jim Meyering <meyering@eng.ascend.com>
62441 * m4/inttypes_h.m4: Kludges so I don't have to add HAVE_INTTYPES_H
62444 1998-03-15 Jim Meyering <meyering@eng.ascend.com>
62446 * m4/prereq.m4: New file.
62447 * m4/error.m4: New file.
62448 * m4/Makefile.am (EXTRA_DIST): Add error.m4 and prereq.m4.
62450 1998-02-07 Jim Meyering <meyering@eng.ascend.com>
62452 * m4/getline.m4: Don't set am_cv_func_working_getline before the
62453 cache-check for the same variable -- that defeated the purpose of
62454 the test; the test program was never run. This was a problem only
62455 on systems with losing getline functions -- HP-UX 10.20 is one.
62456 Reported by Bjorn Helgaas.
62458 1998-02-06 Jim Meyering <meyering@eng.ascend.com>
62460 * m4/Makefile.am (EXTRA_DIST): Add perl.m4.
62462 1998-01-10 Jim Meyering <meyering@na-net.ornl.gov>
62464 * m4/Makefile.am (EXTRA_DIST): Add const.m4.
62466 * m4/const.m4: New file. Use an initializer in this declaration
62467 typedef int charset[2]; const charset x;
62468 Reported by Bob Glickstein.
62470 1997-12-21 Jim Meyering <meyering@na-net.ornl.gov>
62472 * m4/chown.m4: Fix reversed types on -1 args to chown.
62475 1997-12-14 Jim Meyering <meyering@na-net.ornl.gov>
62477 * m4/check-decl.m4: s/DECLARATION_/DECL_/g.
62478 Add lseek and memchr.
62480 * m4/decl.m4: s/HAVE_DECLARATION_/HAVE_DECL_/g.
62481 T.E.Dickey <dickey@clark.net> said that some older preprocessors
62482 have a 20-character limit on names.
62484 1997-11-30 Jim Meyering <meyering@na-net.ornl.gov>
62486 * m4/inttypes_h.m4: New file.
62487 * m4/uintmax_t.m4: New file.
62488 * m4/Makefile.am (EXTRA_DIST): Add inttypes_h.m4 and uintmax_t.m4.
62497 Copyright (C) 1997-2010 Free Software Foundation, Inc.
62499 Copying and distribution of this file, with or without
62500 modification, are permitted provided the copyright notice
62501 and this notice are preserved.